cf 1.0.0-beta.10 → 1.0.0-beta.12
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/bin/cf +1 -1
- package/dist/abuse-reports-Cy9RcWPu.mjs +24 -0
- package/dist/{access-D4DN4XZF.mjs → access-DwJm1qet.mjs} +1 -1
- package/dist/account-tags-d0RkEw6s.mjs +15 -0
- package/dist/accounts-BSd4b-1j.mjs +138 -0
- package/dist/{acm-OQqE8FMc.mjs → acm-BfI0p2sX.mjs} +8 -8
- package/dist/addressing-lfeJf7YB.mjs +93 -0
- package/dist/agent-context-DFEgYjEQ.mjs +2 -0
- package/dist/agent-memory-CP1qpn-y.mjs +34 -0
- package/dist/ai-audit-B_tSl78A.mjs +6 -0
- package/dist/ai-gateway-CJaUlfGc.mjs +82 -0
- package/dist/ai-jFzFBANM.mjs +29 -0
- package/dist/ai-search-PTlpY1T9.mjs +79 -0
- package/dist/ai-security-CKGE547U.mjs +10 -0
- package/dist/alerting-CuxoqG3S.mjs +56 -0
- package/dist/analytics-NPND7aHB.mjs +20 -0
- package/dist/analytics_engine-BoapM9wd.mjs +4 -0
- package/dist/ansi-styles-kSC6bEIq.mjs +2 -0
- package/dist/{api-security-CSuYMpMO.mjs → api-security-Nk_bg-Kg.mjs} +61 -61
- package/dist/{argo-DMfNmOV4.mjs → argo-DYfLQhd2.mjs} +5 -5
- package/dist/artifacts-BS6cEqCB.mjs +43 -0
- package/dist/{audit-logs-BrjNuiLx.mjs → audit-logs-x5tLqeX2.mjs} +2 -2
- package/dist/auth-AobvBmz4.mjs +2 -0
- package/dist/auth-CBtzZ3Sw.mjs +2 -0
- package/dist/auth-CKotxfap.mjs +2 -0
- package/dist/auth-token-CtguMdmF.mjs +8 -0
- package/dist/autoconfig-PfnbLuEO.mjs +532 -0
- package/dist/{banner-ClclgnBn.mjs → banner-D03JEqRs.mjs} +1 -1
- package/dist/basin-catalog-Ddi-t3q9.mjs +46 -0
- package/dist/billing-CDMc4tvX.mjs +23 -0
- package/dist/bot-management-UrCM3P8K.mjs +9 -0
- package/dist/botnet-feed-CVwRm42k.mjs +11 -0
- package/dist/brand-protection-DfNf5REj.mjs +27 -0
- package/dist/browser-run-DVaiBLYX.mjs +46 -0
- package/dist/build-BKPVP5ip.mjs +2 -0
- package/dist/build-C4giET85.mjs +2 -0
- package/dist/builds-BG5DHqU3.mjs +71 -0
- package/dist/cache-C05hHXUp.mjs +45 -0
- package/dist/{certificate-authorities-D_uAJH9B.mjs → certificate-authorities-DyCFmZwR.mjs} +3 -3
- package/dist/cf-B9aqZZKD.mjs +18 -0
- package/dist/chunk-AUSY7DKT-BJX6Fdc4.mjs +312 -0
- package/dist/chunk-FT2NMTJB-DQ7s3x7Q.mjs +361 -0
- package/dist/chunk-KKDV4JPS-D3kwd1Nq.mjs +2 -0
- package/dist/chunk-U6NEESU5-DqqRCaWH.mjs +2 -0
- package/dist/chunk-WMOON6TZ-C0dmPHpM.mjs +2 -0
- package/dist/{cli-BeXSqJAj.mjs → cli-D9qlPB-6.mjs} +1 -1
- package/dist/cli-exit-CstFZ1eJ.mjs +2 -0
- package/dist/{client-certificates-DqFcK_s1.mjs → client-certificates-B-m8rfM9.mjs} +7 -7
- package/dist/{client-side-security-DJXZ1XAu.mjs → client-side-security-M4oIUqID.mjs} +15 -15
- package/dist/cloud-connector-B63Dwn6n.mjs +6 -0
- package/dist/cloudflared-B48cfu95.mjs +2 -0
- package/dist/cloudforce-one-Dlc1GNFy.mjs +447 -0
- package/dist/{command-xU78ACNA.mjs → command-BQpXcGKV.mjs} +1 -1
- package/dist/{command-DUafPVUr.mjs → command-BWlpCtHe.mjs} +1 -1
- package/dist/{command-BOLlvEan.mjs → command-BlGILcTA.mjs} +1 -1
- package/dist/{command-K1-DZFJS.mjs → command-CKQlxypn.mjs} +1 -1
- package/dist/{command-C__qB2mo.mjs → command-CRl00uA2.mjs} +1 -1
- package/dist/{command-DZookrfw.mjs → command-CUkXxZsc.mjs} +1 -1
- package/dist/command-CXxh5Hce.mjs +2 -0
- package/dist/{command-BCag-xjk.mjs → command-CzvlHvov.mjs} +1 -1
- package/dist/{command-DxSJy_ym.mjs → command-DBaNgfA4.mjs} +1 -1
- package/dist/command-DEQSv-S1.mjs +2 -0
- package/dist/{command-BrHTpaji.mjs → command-DyE8v4sd.mjs} +1 -1
- package/dist/command-Rv2MR-eh.mjs +2 -0
- package/dist/{command-B6DqnUwt.mjs → command-SS1z_t68.mjs} +1 -1
- package/dist/{command-6YTtWltE.mjs → command-VuxpEvmH.mjs} +1 -1
- package/dist/{command-DzHL5LKI.mjs → command-ZBQ1WITj.mjs} +1 -1
- package/dist/{completions-Cm9brGAI.mjs → completions-lf50FBGm.mjs} +2 -2
- package/dist/connector-interrupts-DHN1KtUE.mjs +6 -0
- package/dist/connector-telemetry-events-CHg7FmXh.mjs +6 -0
- package/dist/connector-telemetry-snapshots-CSifYi9r.mjs +6 -0
- package/dist/connectors-0UwPUav-.mjs +15 -0
- package/dist/containers-DRzgE46U.mjs +375 -0
- package/dist/containers-DuIsM7lM.mjs +78 -0
- package/dist/{content-scan-C_ROsbTJ.mjs → content-scan-COyTz0Wb.mjs} +8 -8
- package/dist/{context-CEOHpZgd.mjs → context-Bwkz4Lm_.mjs} +2 -2
- package/dist/{cps-BPQqyL2E.mjs → cps-B7_BJaAU.mjs} +3 -3
- package/dist/{csamScanner-D-oO5cxT.mjs → csamScanner-jez2EYXC.mjs} +3 -3
- package/dist/ct-alerting-CACDrY0E.mjs +5 -0
- package/dist/{custom-certificates-DvnFBZdJ.mjs → custom-certificates-BBd92YlF.mjs} +8 -8
- package/dist/{custom-csrs-BZ8TXbuQ.mjs → custom-csrs-DTwBiNMX.mjs} +6 -6
- package/dist/{custom-hostnames-CTqf-KlT.mjs → custom-hostnames-DIWlqvN9.mjs} +15 -15
- package/dist/custom-nameservers-DISy8v8u.mjs +9 -0
- package/dist/custom-pages-BHXO_NFv.mjs +21 -0
- package/dist/d1-MvAQMvvo.mjs +89 -0
- package/dist/{dcv-delegation-yOtz90qE.mjs → dcv-delegation-Buq0hcm_.mjs} +2 -2
- package/dist/delegate.mjs +1 -1
- package/dist/{deploy-C4p6SzLH.mjs → deploy-BS47vZvJ.mjs} +1 -1
- package/dist/deploy-context-Cfushp8j.mjs +56 -0
- package/dist/{deploy-input-DTjBGloL.mjs → deploy-input-BAhS5LYx.mjs} +1 -1
- package/dist/{dev-BML-bpNU.mjs → dev-D8FGPKRt.mjs} +2 -2
- package/dist/diagnostics-ChDfJ-Gv.mjs +15 -0
- package/dist/{dialog-BlUXJKbA.mjs → dialog-CL1Zy4pn.mjs} +1 -1
- package/dist/discover-DIDEGKo3.mjs +2 -0
- package/dist/discover-P20XeGBF.mjs +2 -0
- package/dist/{dist-DW47TUGh.mjs → dist-8rP3V95o.mjs} +5 -5
- package/dist/dist-CYFkGHYv.mjs +487 -0
- package/dist/dls-8D00tqvC.mjs +17 -0
- package/dist/{dns-C9sUPsNt.mjs → dns-C-A5pwf3.mjs} +68 -68
- package/dist/{dns-firewall-EDiT-Zli.mjs → dns-firewall-DIiF4pro.mjs} +9 -9
- package/dist/dot-prop-IITUZ2XW-BnPfnQkb.mjs +2 -0
- package/dist/dotenv-DpXaxfho.mjs +4 -0
- package/dist/dry-run-DmsbOMF1.mjs +2 -0
- package/dist/durable-objects-CnIqbj84.mjs +6 -0
- package/dist/{email-auth-BgvoEHJk.mjs → email-auth-v97Md32E.mjs} +3 -3
- package/dist/{email-routing-Bggn219w.mjs → email-routing-I29RG4hb.mjs} +24 -24
- package/dist/{email-security-_t7rzrzd.mjs → email-security-BCarmbky.mjs} +86 -86
- package/dist/email-sending-CsHk2HAJ.mjs +47 -0
- package/dist/error-sanitization-BWnGnB73.mjs +2 -0
- package/dist/error-sanitization-C_a2LxOK.mjs +2 -0
- package/dist/errors-_sob7Ihu.mjs +3 -0
- package/dist/fieldExtractors-GIVe9jZa.mjs +9 -0
- package/dist/{firewall-CZEN8iA_.mjs → firewall-DpgFqJr3.mjs} +19 -19
- package/dist/flagship-BVaXXlsX.mjs +28 -0
- package/dist/{fraud-9_9hobAh.mjs → fraud-B5GQdEF2.mjs} +3 -3
- package/dist/{generate-CLqGOlOx.mjs → generate-CeeWW3eX.mjs} +1 -1
- package/dist/generate-D80-1GnZ.mjs +2 -0
- package/dist/{google-tag-gateway-O_N0vHRY.mjs → google-tag-gateway-C4O61lp-.mjs} +3 -3
- package/dist/gt-3bcLGJ7V.mjs +3 -0
- package/dist/{healthchecks-Bt3Gw_JZ.mjs → healthchecks-BwYMnKSF.mjs} +12 -12
- package/dist/{hostnames-DdOube3R.mjs → hostnames-DhrGRFeI.mjs} +6 -6
- package/dist/{hyperdrive-C14NAh9l.mjs → hyperdrive-DAA8Fazg.mjs} +10 -10
- package/dist/iam-sRKDU2Z3.mjs +52 -0
- package/dist/images-DXdekLVs.mjs +71 -0
- package/dist/index.mjs +1 -1
- package/dist/init-j47MT4Qe.mjs +39 -0
- package/dist/intel-CnVeSjIS.mjs +76 -0
- package/dist/interactive-Dqv0RWVU.mjs +42 -0
- package/dist/interactive-Wpd3FcDc.mjs +2 -0
- package/dist/{ips-PT_uQKAf.mjs → ips-COCUG8mk.mjs} +2 -2
- package/dist/k2-CmHkArHL.mjs +13 -0
- package/dist/{keyless-certificates-BHvas2q1.mjs → keyless-certificates-l2_S__h3.mjs} +7 -7
- package/dist/keys-CDZreums.mjs +4 -0
- package/dist/kv-DkpKVimq.mjs +15 -0
- package/dist/{lazy-command-glNW3jzf.mjs → lazy-command-_vZGz6mv.mjs} +1 -1
- package/dist/{leaked-credential-checks-De9hI1rl.mjs → leaked-credential-checks-edbapECI.mjs} +10 -10
- package/dist/lifecycle-oud60haK.mjs +2 -0
- package/dist/{load-balancers-Cs6bUHS1.mjs → load-balancers-C5YMvhXD.mjs} +40 -40
- package/dist/{local-B5oRPTEN.mjs → local-C0lQ9sTg.mjs} +1 -1
- package/dist/local-D5L5Bwju.mjs +2 -0
- package/dist/{local-runtime-CZnegFEM.mjs → local-runtime-DtnWXN0a.mjs} +1 -1
- package/dist/login-BrjOuHKu.mjs +5 -0
- package/dist/login-DeOM4v0L.mjs +2 -0
- package/dist/logo-matches-CF8321pb.mjs +6 -0
- package/dist/logos-Bd8xNRKW.mjs +7 -0
- package/dist/logpush-BYk3qqwY.mjs +46 -0
- package/dist/logs-Jcj2NN8H.mjs +36 -0
- package/dist/magic-cloud-networking-Dgdb9H0f.mjs +71 -0
- package/dist/magic-network-monitoring-CxVU4MZB.mjs +36 -0
- package/dist/magic-transit-KDyfUgTv.mjs +383 -0
- package/dist/managed-defense-CxaDeNUd.mjs +18 -0
- package/dist/{managed-transforms-CCpUz4TY.mjs → managed-transforms-C7rT5E-x.mjs} +5 -5
- package/dist/{matches-BSiYXs99.mjs → matches-BtKqG8T9.mjs} +3 -3
- package/dist/{mcp-CCMiS75R.mjs → mcp-QDd1Iyc0.mjs} +17 -17
- package/dist/mesh-DtrIzl5z.mjs +26 -0
- package/dist/metadata-Df5kCWJv.mjs +2 -0
- package/dist/{migrate-BJ9Go_wP.mjs → migrate-DHlfR_gZ.mjs} +1 -1
- package/dist/{monetization-CFf_lb6x.mjs → monetization-pLalYYMI.mjs} +11 -11
- package/dist/mtls-certificates-DYA9Wu-c.mjs +13 -0
- package/dist/network-DrJxPWXQ.mjs +50 -0
- package/dist/{network-interconnects-YiRUBbjx.mjs → network-interconnects-D73MlYG8.mjs} +19 -19
- package/dist/{oauth-cNZUky3h.mjs → oauth-B08YQ4xq.mjs} +2 -2
- package/dist/{oauth-DxGgIwFc.mjs → oauth-TGbM1Q0V.mjs} +1 -1
- package/dist/oauth-clients-CkPDLFd-.mjs +16 -0
- package/dist/{oauth-scopes-xl-pcWdg.mjs → oauth-scopes-VgliqcQe.mjs} +2 -2
- package/dist/observability-CvN9oxAo.mjs +80 -0
- package/dist/open-PCXX3ZDZ-D55O2jpQ.mjs +4 -0
- package/dist/{organization-Dbom1gTR.mjs → organization-DIwqRBBV.mjs} +16 -16
- package/dist/{organizations-OUMVsuen.mjs → organizations-Dk0D9ukm.mjs} +2 -2
- package/dist/{origin-ca-certificates-B3-T0-Nn.mjs → origin-ca-certificates-BSFqMTn-.mjs} +5 -5
- package/dist/{origin-post-quantum-encryption-CGB6AfPa.mjs → origin-post-quantum-encryption-BOKWKDTY.mjs} +3 -3
- package/dist/{origin-tls-client-auth-CgzzfAWr.mjs → origin-tls-client-auth-BzE3WpcN.mjs} +16 -16
- package/dist/output-BGqhvqe2.mjs +2 -0
- package/dist/{page-rules-B9BQKU4_.mjs → page-rules-BKaU37cM.mjs} +8 -8
- package/dist/pages-2Xg-lrMf.mjs +54 -0
- package/dist/pay-per-crawl-5-KTQXRr.mjs +65 -0
- package/dist/pay-per-use-sGebKzNK.mjs +6 -0
- package/dist/pipelines-BM-T7mMK.mjs +44 -0
- package/dist/precursor-DmQ32-Sp.mjs +4 -0
- package/dist/previews-DDQ9ACDJ.mjs +4 -0
- package/dist/{progress-A61dRbXl.mjs → progress-BYVZuEcG.mjs} +1 -1
- package/dist/{prompt-CGUzvBgY.mjs → prompt-F5wxc8zq.mjs} +1 -1
- package/dist/queries-DPBkVynK.mjs +9 -0
- package/dist/queues-CCXRs98q.mjs +57 -0
- package/dist/r2-BKuBSW8h.mjs +125 -0
- package/dist/{radar-CU4T02Ag.mjs → radar-Gv1yFoRX.mjs} +150 -150
- package/dist/raw-fetch-DyYWa923.mjs +2 -0
- package/dist/realtime-CVl-rvgx.mjs +172 -0
- package/dist/registrar-sandbox-cmOYDnkp.mjs +56 -0
- package/dist/registrar-swlnh22i.mjs +43 -0
- package/dist/{registry-Cg5lP8oo.mjs → registry-C20J1MW0.mjs} +1 -1
- package/dist/reporting-Bgwsvol1.mjs +14 -0
- package/dist/request-headers-CUee83pa.mjs +2 -0
- package/dist/request-tracers-BBiJvVDz.mjs +4 -0
- package/dist/resolve-DvxgnWjL.mjs +2 -0
- package/dist/resolve-qwL1LmKN.mjs +2 -0
- package/dist/resource-sharing-C1JiYLbl.mjs +40 -0
- package/dist/resource-tagging-C9VOSlDR.mjs +4 -0
- package/dist/rules-BDunCGMj.mjs +18 -0
- package/dist/{rulesets-HOOnxHZZ.mjs → rulesets-BMGxrnv9.mjs} +20 -20
- package/dist/rum-B7XiECe9.mjs +30 -0
- package/dist/run-CrZgB8L_.mjs +2 -0
- package/dist/run-nNxXb_Cv.mjs +2 -0
- package/dist/schema-DC0kdqgV.mjs +2 -0
- package/dist/schema-flags-BUZR9SLd.mjs +5 -0
- package/dist/scim-CORcs2wK.mjs +18 -0
- package/dist/secrets-store-BoZQaFey.mjs +24 -0
- package/dist/security-insights-DblK_6sg.mjs +40 -0
- package/dist/{security-txt-Fnl3LdSn.mjs → security-txt-Dl7RPnRb.mjs} +5 -5
- package/dist/{session-CZTuHcbm.mjs → session-BWe9et4K.mjs} +1 -1
- package/dist/shared-0N31BXkY.mjs +2 -0
- package/dist/{smart-shield-DB0E7cZI.mjs → smart-shield-DX0-8ruu.mjs} +13 -13
- package/dist/snippets-BFN-Lg3K.mjs +20 -0
- package/dist/source-mXUcrTVw.mjs +6 -0
- package/dist/spawn-DZ9A-xXb.mjs +10 -0
- package/dist/{spectrum-DtG0jYjE.mjs → spectrum-HYWLWB0X.mjs} +12 -12
- package/dist/{speed-B-RiNHGK.mjs → speed-Dj0YhfRe.mjs} +13 -13
- package/dist/src-CAiZlihY.mjs +117 -0
- package/dist/{ssl-DBVpCZAM.mjs → ssl-BQL1fNtD.mjs} +17 -17
- package/dist/startup-profile-0X5ebbng.mjs +29 -0
- package/dist/startup-profile-CXnsF4c7.mjs +2 -0
- package/dist/state-BA2CanJ_.mjs +2 -0
- package/dist/{state-BaGRaYow.mjs → state-Dy6-rKNd.mjs} +1 -1
- package/dist/stream-DKv2TtZN.mjs +102 -0
- package/dist/submit-Byt2KBGI.mjs +4 -0
- package/dist/{tags--eph7JbN.mjs → tags-BIBsdG68.mjs} +2 -2
- package/dist/telemetry-DBXOMuLh.mjs +2 -0
- package/dist/{telemetry-51etasAu.mjs → telemetry-bu3txnIR.mjs} +1 -1
- package/dist/{tenant-Bj-He2xO.mjs → tenant-Bs4Ac4n3.mjs} +5 -5
- package/dist/{tenant-custom-nameservers-B5IIIwbz.mjs → tenant-custom-nameservers-DcaELeCE.mjs} +4 -4
- package/dist/{theme-BIWQFmZ0.mjs → theme-CQ_TYifs.mjs} +2 -2
- package/dist/{tools-BJZ0DDlL.mjs → tools-BbTX7rlM.mjs} +1 -1
- package/dist/tunnels-DWcrz9Sf.mjs +29 -0
- package/dist/turnstile-2MIGp2ce.mjs +33 -0
- package/dist/{ui-BQxRjahW.mjs → ui-YmjF66Ct.mjs} +1 -1
- package/dist/update-check-B-CvDAUz.mjs +2 -0
- package/dist/update-check-CfB0PNTY.mjs +2 -0
- package/dist/update-check-worker.mjs +1 -1
- package/dist/url-info-B8udoxlx.mjs +4 -0
- package/dist/{url-normalization-BpGDUUQc.mjs → url-normalization-C6AdWtaE.mjs} +5 -5
- package/dist/url-scanner-Dg0c_yVb.mjs +16 -0
- package/dist/{user-B6P5_OjP.mjs → user-BLZ-0Bgv.mjs} +51 -51
- package/dist/values-BUK-m0Jg.mjs +4 -0
- package/dist/vectorize-DEUSEQXY.mjs +32 -0
- package/dist/version-BZNc7Y3t.mjs +2 -0
- package/dist/waiting-rooms-BycGk2Y0.mjs +53 -0
- package/dist/{web-assets-yaKxN4w_.mjs → web-assets-CLZdWOmN.mjs} +35 -35
- package/dist/{web3-Bu9c_QAt.mjs → web3-DjeavuLg.mjs} +15 -15
- package/dist/workers-C_SfyU-v.mjs +38 -0
- package/dist/workers-builds-COn5Ne5G.mjs +14 -0
- package/dist/workers-for-platforms-tchCXwNF.mjs +42 -0
- package/dist/{workers-vpc-C1oUHHqk.mjs → workers-vpc-CKts8Av0.mjs} +7 -7
- package/dist/workflows-BibtWuOx.mjs +43 -0
- package/dist/{wrangler-migration-CJEb9hY3.mjs → wrangler-migration-BpJqCFAa.mjs} +1 -1
- package/dist/zaraz-BvQZB0YY.mjs +22 -0
- package/dist/zero-trust-FStq4uhn.mjs +821 -0
- package/dist/{zone-uJwRLSnn.mjs → zone-tymlghWb.mjs} +2 -2
- package/dist/{zones-Dpofsnth.mjs → zones-Bz6dgT9_.mjs} +47 -47
- package/package.json +25 -21
- package/dist/abuse-reports-BhSTEz7h.mjs +0 -24
- package/dist/account-tags-BWEIZLID.mjs +0 -15
- package/dist/accounts-ZQvIqGJz.mjs +0 -138
- package/dist/addressing-DCFm17JQ.mjs +0 -93
- package/dist/agent-context-GRiQ4zRU.mjs +0 -2
- package/dist/agent-memory-BtfPt2me.mjs +0 -34
- package/dist/ai-B0_sZbmy.mjs +0 -29
- package/dist/ai-audit-DaubuhYF.mjs +0 -6
- package/dist/ai-gateway-CJ-1Dzzr.mjs +0 -82
- package/dist/ai-search-Dywa1kqX.mjs +0 -79
- package/dist/ai-security-2wxMPqKS.mjs +0 -10
- package/dist/alerting-yad9DYRv.mjs +0 -56
- package/dist/analytics-DKNw2fVc.mjs +0 -20
- package/dist/analytics_engine-BA3kF46s.mjs +0 -4
- package/dist/ansi-styles-eKEZXVwN.mjs +0 -2
- package/dist/artifacts-Cb3hwClm.mjs +0 -43
- package/dist/auth-BBlAI8HG.mjs +0 -2
- package/dist/auth-BIr56Mbx.mjs +0 -8
- package/dist/autoconfig-DPUztTL2.mjs +0 -511
- package/dist/basin-catalog-BLsQhJP4.mjs +0 -46
- package/dist/billing-CRwD7oQS.mjs +0 -23
- package/dist/bot-management-CyW8F8Wm.mjs +0 -9
- package/dist/botnet-feed-BBKsxf3Y.mjs +0 -11
- package/dist/brand-protection-DSeD8LXl.mjs +0 -27
- package/dist/browser-run-BAcUTwB4.mjs +0 -46
- package/dist/build-B5UYMEQH.mjs +0 -2
- package/dist/build-DLZ9gBNA.mjs +0 -2
- package/dist/builds-W1HEG7Bv.mjs +0 -71
- package/dist/cache-B7E_PXUp.mjs +0 -45
- package/dist/cf-Bh_fTFIj.mjs +0 -18
- package/dist/chunk-FT2NMTJB-1VFYM1Ro.mjs +0 -97
- package/dist/chunk-KKDV4JPS-DdzLLtnl.mjs +0 -2
- package/dist/chunk-U6NEESU5-BhF4rnpx.mjs +0 -2
- package/dist/chunk-WMOON6TZ-D_ToS88f.mjs +0 -2
- package/dist/cli-exit-Dqoo6Jgb.mjs +0 -2
- package/dist/cloud-connector-Czg1GdQi.mjs +0 -6
- package/dist/cloudflared-DGuau-lC.mjs +0 -2
- package/dist/cloudforce-one-B1IhIZcp.mjs +0 -447
- package/dist/command-CAtsHc1V.mjs +0 -2
- package/dist/command-DfffeX-k.mjs +0 -2
- package/dist/command-TCklVvOY.mjs +0 -2
- package/dist/connector-interrupts-D93KTMkw.mjs +0 -6
- package/dist/connector-telemetry-events-D6CmKR14.mjs +0 -6
- package/dist/connector-telemetry-snapshots-WO9IUk0e.mjs +0 -6
- package/dist/connectors-DNT6GTW3.mjs +0 -15
- package/dist/containers-Btx7vCDP.mjs +0 -78
- package/dist/containers-Ce7IO-Ia.mjs +0 -239
- package/dist/ct-alerting-CnTRE1Fb.mjs +0 -5
- package/dist/custom-nameservers-B0CpnUVg.mjs +0 -9
- package/dist/custom-pages-DcoSGN56.mjs +0 -21
- package/dist/d1-m7UfzBzl.mjs +0 -41
- package/dist/diagnostics-hOvnx5DT.mjs +0 -15
- package/dist/discover-C5aiI6u0.mjs +0 -2
- package/dist/discover-DwczTkRX.mjs +0 -2
- package/dist/dist-BuCJ_55d.mjs +0 -366
- package/dist/dist-C3s9SXTd.mjs +0 -48
- package/dist/dls-v6DyEWTd.mjs +0 -17
- package/dist/dot-prop-IITUZ2XW-BilKo4kO.mjs +0 -2
- package/dist/dotenv-CcQjGlV0.mjs +0 -4
- package/dist/dry-run-Bq0JAsbX.mjs +0 -2
- package/dist/durable-objects-C01phVwL.mjs +0 -6
- package/dist/email-sending-_dKCs2VF.mjs +0 -47
- package/dist/error-sanitization-CJ5OLJrh.mjs +0 -2
- package/dist/error-sanitization-hmi1CqE5.mjs +0 -2
- package/dist/fieldExtractors-Cm5QnkE0.mjs +0 -9
- package/dist/flagship-B_SAI_ZL.mjs +0 -28
- package/dist/generate-BPqoDbck.mjs +0 -2
- package/dist/gt-DmcMNPX6.mjs +0 -2
- package/dist/iam-DUW7neMx.mjs +0 -52
- package/dist/images-B9dnr1z0.mjs +0 -71
- package/dist/init-BGcAIvV7.mjs +0 -39
- package/dist/intel-BQpZMck3.mjs +0 -76
- package/dist/interactive-C-o16XQs.mjs +0 -32
- package/dist/interactive-SgAjen2z.mjs +0 -2
- package/dist/k2-nPYti7Y0.mjs +0 -13
- package/dist/keys-O5kAW9ox.mjs +0 -4
- package/dist/kv-BUP_ZLM_.mjs +0 -15
- package/dist/lifecycle-C7tAC1Mn.mjs +0 -2
- package/dist/local-Bj-l0TP6.mjs +0 -2
- package/dist/login-C5nSIS-T.mjs +0 -2
- package/dist/login-CUup7w0e.mjs +0 -5
- package/dist/logo-matches-BkQKdu4Z.mjs +0 -6
- package/dist/logos-C_sv-boo.mjs +0 -7
- package/dist/logpush-NUcyMKHi.mjs +0 -46
- package/dist/logs-BZT4PlqZ.mjs +0 -36
- package/dist/magic-cloud-networking-DQnSdmgA.mjs +0 -71
- package/dist/magic-network-monitoring-pHTU6aS8.mjs +0 -36
- package/dist/magic-transit-5302bQNh.mjs +0 -383
- package/dist/managed-defense-8OEfDzuO.mjs +0 -18
- package/dist/mesh-DKBGTlCD.mjs +0 -26
- package/dist/metadata-C33s4rc-.mjs +0 -2
- package/dist/mtls-certificates-DsF3NFNs.mjs +0 -13
- package/dist/network-Bm0qYRqY.mjs +0 -50
- package/dist/oauth-clients-CP6alY0_.mjs +0 -16
- package/dist/observability-Bp71PtlD.mjs +0 -80
- package/dist/open-PCXX3ZDZ-BKRik1gi.mjs +0 -4
- package/dist/output-CvQFJkvi.mjs +0 -2
- package/dist/pages-DZPdyuT4.mjs +0 -54
- package/dist/pay-per-crawl-CnveMVDi.mjs +0 -65
- package/dist/pay-per-use-Bpxe8PHv.mjs +0 -6
- package/dist/pipelines-CHev3o5G.mjs +0 -44
- package/dist/precursor-C9PK9Bue.mjs +0 -4
- package/dist/previews-BIMI1dTz.mjs +0 -4
- package/dist/queries-f-btyefs.mjs +0 -9
- package/dist/queues-kLNdeb3q.mjs +0 -57
- package/dist/r2-D_awYx2p.mjs +0 -125
- package/dist/raw-fetch-CvkmFO23.mjs +0 -2
- package/dist/realtime-C0dvcBBM.mjs +0 -172
- package/dist/registrar-CHc-4vcf.mjs +0 -43
- package/dist/registrar-sandbox-Dq8LV2AI.mjs +0 -56
- package/dist/reporting-4u21g6Dk.mjs +0 -14
- package/dist/request-headers-D31kdxrQ.mjs +0 -2
- package/dist/request-tracers-CupJ_83j.mjs +0 -4
- package/dist/resolve-BCTrtcx7.mjs +0 -2
- package/dist/resolve-PZuJ878-.mjs +0 -2
- package/dist/resource-sharing-CO-Lh-u7.mjs +0 -40
- package/dist/resource-tagging-D0R5SzR6.mjs +0 -4
- package/dist/rules-BsmKzB9H.mjs +0 -18
- package/dist/rum-wcLEvVJl.mjs +0 -30
- package/dist/run-CIJTelJL.mjs +0 -2
- package/dist/run-quhbAvQi.mjs +0 -2
- package/dist/schema-GdBsV4P7.mjs +0 -2
- package/dist/schema-flags-D8vL2oiF.mjs +0 -5
- package/dist/scim-BkdJmAS8.mjs +0 -18
- package/dist/sdk-BCzcRJCi.mjs +0 -3
- package/dist/secrets-store-CHs0oYA0.mjs +0 -24
- package/dist/security-insights-vsl-4xFa.mjs +0 -40
- package/dist/shared-BS30oCf8.mjs +0 -2
- package/dist/snippets-CFaF_NyG.mjs +0 -20
- package/dist/source-38bULAR8.mjs +0 -6
- package/dist/spawn-B0Sl8lUu.mjs +0 -10
- package/dist/src-CM3XaB4p.mjs +0 -109
- package/dist/startup-profile-CLmojOrn.mjs +0 -2
- package/dist/startup-profile-CR7GMuLx.mjs +0 -17
- package/dist/state-CpXhcMdX.mjs +0 -2
- package/dist/stream-cAdBvpS1.mjs +0 -102
- package/dist/submit-Bkd7l2rK.mjs +0 -4
- package/dist/telemetry-Q3_UmwHj.mjs +0 -2
- package/dist/tunnels-CgtuRpcD.mjs +0 -29
- package/dist/turnstile-Bmcnrzw7.mjs +0 -33
- package/dist/update-check-BqSpgzHk.mjs +0 -2
- package/dist/update-check-DC0qP_8z.mjs +0 -2
- package/dist/url-info-DhVehaT8.mjs +0 -4
- package/dist/url-scanner-DiLdqsQk.mjs +0 -16
- package/dist/values-Cxx4Lxrd.mjs +0 -4
- package/dist/vectorize-YyxVpql-.mjs +0 -32
- package/dist/version-C0pInAZ9.mjs +0 -2
- package/dist/waiting-rooms-BdahlCdD.mjs +0 -53
- package/dist/workers-5GgoGA2e.mjs +0 -38
- package/dist/workers-builds-h-1FJjE1.mjs +0 -14
- package/dist/workers-for-platforms-CV9iRrp9.mjs +0 -42
- package/dist/workflows-dtMlkj1-.mjs +0 -43
- package/dist/zaraz-838AbMEX.mjs +0 -22
- package/dist/zero-trust-CYt-eELJ.mjs +0 -821
- /package/dist/{Page-CjJht2qT.mjs → Page-BShsqCXr.mjs} +0 -0
- /package/dist/{alerts-DY_7Nknx.mjs → alerts-BSON-vFh.mjs} +0 -0
- /package/dist/{args-CXgkQKK7.mjs → args-CfbYkeXd.mjs} +0 -0
- /package/dist/{autorag-K396-M2S.mjs → autorag-kNrLiqDX.mjs} +0 -0
- /package/dist/{body-parser-hh2avzkz.mjs → body-parser-DkHKPkJ7.mjs} +0 -0
- /package/dist/{brands-DeLbFxSt.mjs → brands-bBJgbbOH.mjs} +0 -0
- /package/dist/{browser-extension-C1zmKFDG.mjs → browser-extension-C1_fcw7h.mjs} +0 -0
- /package/dist/{clear-CRfI7WS7.mjs → clear-BW9vLgI3.mjs} +0 -0
- /package/dist/{cli-types-DoVT5q_M.mjs → cli-types-9oYmRTHJ.mjs} +0 -0
- /package/dist/{connector-telemetry-events-latest-D8p_dR8s.mjs → connector-telemetry-events-latest-BQdOvbWh.mjs} +0 -0
- /package/dist/{connector-telemetry-snapshots-latest-COFmzmlk.mjs → connector-telemetry-snapshots-latest-CtdN_dGu.mjs} +0 -0
- /package/dist/{delegate-B6LetRpZ.mjs → delegate-Tgfxa-MZ.mjs} +0 -0
- /package/dist/{domain-info-aiwP60Fo.mjs → domain-info-BkcBcyfF.mjs} +0 -0
- /package/dist/{health-Bz33n-_F.mjs → health-CTaCeVyC.mjs} +0 -0
- /package/dist/{input-validation-Dk52b0me.mjs → input-validation-D7z60HJH.mjs} +0 -0
- /package/dist/{internal-BHrJbbdA.mjs → internal-BYS7hO8c.mjs} +0 -0
- /package/dist/{live-MeJQXIei.mjs → live-BJE_YWE1.mjs} +0 -0
- /package/dist/{project-settings-DO6njFg_.mjs → project-settings-nBMEx1f-.mjs} +0 -0
- /package/dist/{r2-data-catalog-2jQrdAdo.mjs → r2-data-catalog-BRo-Rx2I.mjs} +0 -0
- /package/dist/{rate-limit-analytics-CU55zqCU.mjs → rate-limit-analytics-BiRyU0Xd.mjs} +0 -0
- /package/dist/{rate-limits-CZ-qHDPK.mjs → rate-limits-Cr2zpncO.mjs} +0 -0
- /package/dist/{ready-BOpbZ1pN.mjs → ready-B3pLxnjc.mjs} +0 -0
- /package/dist/{recent-submissions-KDqD2HyS.mjs → recent-submissions-JLOvuZq-.mjs} +0 -0
- /package/dist/{refute-DkF4XIMw.mjs → refute-Dp3VodMn.mjs} +0 -0
- /package/dist/{scan-logo-DQkf6glG.mjs → scan-logo-3Zr6CDJB.mjs} +0 -0
- /package/dist/{scan-page-CMOJ_E0n.mjs → scan-page-CxeudOzj.mjs} +0 -0
- /package/dist/{search-Bre1Zwn3.mjs → search-B_P5ZTQj.mjs} +0 -0
- /package/dist/{signed-url-24ZbX4yV.mjs → signed-url-D5RwvrQq.mjs} +0 -0
- /package/dist/{submission-info-BmkbZVqM.mjs → submission-info-_t78q2OE.mjs} +0 -0
- /package/dist/{total-queries-j8OAF_cE.mjs → total-queries-CPrKEciQ.mjs} +0 -0
- /package/dist/{tracked-domains-fe3EWYmF.mjs → tracked-domains-CTRItgFT.mjs} +0 -0
- /package/dist/{verify-CKgZYvln.mjs → verify-5KcvRk-q.mjs} +0 -0
package/dist/src-CM3XaB4p.mjs
DELETED
|
@@ -1,109 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env node
|
|
2
|
-
import{i as e,n as t}from"./source-38bULAR8.mjs";import{n,t as r}from"./ansi-styles-eKEZXVwN.mjs";import{t as i}from"./lazy-command-glNW3jzf.mjs";import{n as a}from"./metadata-C33s4rc-.mjs";import{r as o}from"./theme-BIWQFmZ0.mjs";import{t as s}from"./agent-context-GRiQ4zRU.mjs";import{t as c}from"./args-CXgkQKK7.mjs";import{t as l}from"./cli-exit-Dqoo6Jgb.mjs";import{n as u,t as d}from"./dotenv-CcQjGlV0.mjs";import{r as f}from"./sdk-BCzcRJCi.mjs";import{at as p}from"./dist-BuCJ_55d.mjs";import{n as m}from"./version-C0pInAZ9.mjs";import{n as h,t as g}from"./banner-ClclgnBn.mjs";import{n as ee,t as _}from"./session-CZTuHcbm.mjs";import{t as v}from"./ui-BQxRjahW.mjs";import{i as y}from"./local-B5oRPTEN.mjs";import{a as te}from"./project-settings-DO6njFg_.mjs";import{a as ne,n as re,t as b}from"./lifecycle-C7tAC1Mn.mjs";import{createRequire as x}from"node:module";import{setTimeout as S}from"node:timers/promises";import{notStrictEqual as ie,strictEqual as C}from"assert";import{basename as ae,dirname as oe,extname as se,join as ce,normalize as le,relative as ue,resolve as w}from"path";import{readFileSync as de,readdirSync as fe,statSync as pe,writeFile as T}from"fs";import{format as me,inspect as he}from"util";import{fileURLToPath as ge}from"url";import{readFileSync as _e,readdirSync as ve}from"node:fs";const ye={right:Ce,center:we};var be=class{constructor(e){this.width=e.width,this.wrap=e.wrap??!0,this.rows=[]}span(...e){let t=this.div(...e);t.span=!0}resetOutput(){this.rows=[]}div(...e){if(e.length===0&&this.div(``),this.wrap&&this.shouldApplyLayoutDSL(...e)&&typeof e[0]==`string`)return this.applyLayoutDSL(e[0]);let t=e.map(e=>typeof e==`string`?this.colFromString(e):e);return this.rows.push(t),t}shouldApplyLayoutDSL(...e){return e.length===1&&typeof e[0]==`string`&&/[\t\n]/.test(e[0])}applyLayoutDSL(e){let t=e.split(`
|
|
3
|
-
`).map(e=>e.split(` `)),n=0;return t.forEach(e=>{e.length>1&&D.stringWidth(e[0])>n&&(n=Math.min(Math.floor(this.width*.5),D.stringWidth(e[0])))}),t.forEach(e=>{this.div(...e.map((t,r)=>({text:t.trim(),padding:this.measurePadding(t),width:r===0&&e.length>1?n:void 0})))}),this.rows[this.rows.length-1]}colFromString(e){return{text:e,padding:this.measurePadding(e)}}measurePadding(e){let t=D.stripAnsi(e);return[0,t.match(/\s*$/)[0].length,0,t.match(/^\s*/)[0].length]}toString(){let e=[];return this.rows.forEach(t=>{this.rowToString(t,e)}),e.filter(e=>!e.hidden).map(e=>e.text).join(`
|
|
4
|
-
`)}rowToString(e,t){return this.rasterize(e).forEach((n,r)=>{let i=``;n.forEach((n,a)=>{let{width:o}=e[a],s=this.negatePadding(e[a]),c=n;if(s>D.stringWidth(n)&&(c+=` `.repeat(s-D.stringWidth(n))),e[a].align&&e[a].align!==`left`&&this.wrap){let t=ye[e[a].align];c=t(c,s),D.stringWidth(c)<s&&(c+=` `.repeat((o||0)-D.stringWidth(c)-1))}let l=e[a].padding||[0,0,0,0];l[3]&&(i+=` `.repeat(l[3])),i+=xe(e[a],c,`| `),i+=c,i+=xe(e[a],c,` |`),l[1]&&(i+=` `.repeat(l[1])),r===0&&t.length>0&&(i=this.renderInline(i,t[t.length-1]))}),t.push({text:i.replace(/ +$/,``),span:e.span})}),t}renderInline(e,t){let n=e.match(/^ */),r=n?n[0].length:0,i=t.text,a=D.stringWidth(i.trimRight());return t.span?this.wrap?r<a?e:(t.hidden=!0,i.trimRight()+` `.repeat(r-a)+e.trimLeft()):(t.hidden=!0,i+e):e}rasterize(e){let t=[],n=this.columnWidths(e),r;return e.forEach((e,i)=>{e.width=n[i],r=this.wrap?D.wrap(e.text,this.negatePadding(e),{hard:!0}).split(`
|
|
5
|
-
`):e.text.split(`
|
|
6
|
-
`),e.border&&(r.unshift(`.`+`-`.repeat(this.negatePadding(e)+2)+`.`),r.push(`'`+`-`.repeat(this.negatePadding(e)+2)+`'`)),e.padding&&(r.unshift(...Array(e.padding[0]||0).fill(``)),r.push(...Array(e.padding[2]||0).fill(``))),r.forEach((e,n)=>{t[n]||t.push([]);let r=t[n];for(let e=0;e<i;e++)r[e]===void 0&&r.push(``);r.push(e)})}),t}negatePadding(e){let t=e.width||0;return e.padding&&(t-=(e.padding[3]||0)+(e.padding[1]||0)),e.border&&(t-=4),t}columnWidths(e){if(!this.wrap)return e.map(e=>e.width||D.stringWidth(e.text));let t=e.length,n=this.width,r=e.map(e=>{if(e.width)return t--,n-=e.width,e.width}),i=t?Math.floor(n/t):0;return r.map((t,n)=>t===void 0?Math.max(i,E(e[n])):t)}};function xe(e,t,n){return e.border?/[.']-+[.']/.test(t)?``:t.trim().length===0?` `:n:``}function E(e){let t=e.padding||[],n=1+(t[3]||0)+(t[1]||0);return e.border?n+4:n}function Se(){return typeof process==`object`&&process.stdout&&process.stdout.columns?process.stdout.columns:80}function Ce(e,t){e=e.trim();let n=D.stringWidth(e);return n<t?` `.repeat(t-n)+e:e}function we(e,t){e=e.trim();let n=D.stringWidth(e);return n>=t?e:` `.repeat(t-n>>1)+e}let D;function Te(e,t){return D=t,new be({width:e?.width||Se(),wrap:e?.wrap})}const Ee=[161,161,164,164,167,168,170,170,173,174,176,180,182,186,188,191,198,198,208,208,215,216,222,225,230,230,232,234,236,237,240,240,242,243,247,250,252,252,254,254,257,257,273,273,275,275,283,283,294,295,299,299,305,307,312,312,319,322,324,324,328,331,333,333,338,339,358,359,363,363,462,462,464,464,466,466,468,468,470,470,472,472,474,474,476,476,593,593,609,609,708,708,711,711,713,715,717,717,720,720,728,731,733,733,735,735,768,879,913,929,931,937,945,961,963,969,1025,1025,1040,1103,1105,1105,8208,8208,8211,8214,8216,8217,8220,8221,8224,8226,8228,8231,8240,8240,8242,8243,8245,8245,8251,8251,8254,8254,8308,8308,8319,8319,8321,8324,8364,8364,8451,8451,8453,8453,8457,8457,8467,8467,8470,8470,8481,8482,8486,8486,8491,8491,8531,8532,8539,8542,8544,8555,8560,8569,8585,8585,8592,8601,8632,8633,8658,8658,8660,8660,8679,8679,8704,8704,8706,8707,8711,8712,8715,8715,8719,8719,8721,8721,8725,8725,8730,8730,8733,8736,8739,8739,8741,8741,8743,8748,8750,8750,8756,8759,8764,8765,8776,8776,8780,8780,8786,8786,8800,8801,8804,8807,8810,8811,8814,8815,8834,8835,8838,8839,8853,8853,8857,8857,8869,8869,8895,8895,8978,8978,9312,9449,9451,9547,9552,9587,9600,9615,9618,9621,9632,9633,9635,9641,9650,9651,9654,9655,9660,9661,9664,9665,9670,9672,9675,9675,9678,9681,9698,9701,9711,9711,9733,9734,9737,9737,9742,9743,9756,9756,9758,9758,9792,9792,9794,9794,9824,9825,9827,9829,9831,9834,9836,9837,9839,9839,9886,9887,9919,9919,9926,9933,9935,9939,9941,9953,9955,9955,9960,9961,9963,9969,9972,9972,9974,9977,9979,9980,9982,9983,10045,10045,10102,10111,11094,11097,12872,12879,57344,63743,65024,65039,65533,65533,127232,127242,127248,127277,127280,127337,127344,127373,127375,127376,127387,127404,917760,917999,983040,1048573,1048576,1114109],De=[12288,12288,65281,65376,65504,65510],Oe=[4352,4447,8986,8987,9001,9002,9193,9196,9200,9200,9203,9203,9725,9726,9748,9749,9776,9783,9800,9811,9855,9855,9866,9871,9875,9875,9889,9889,9898,9899,9917,9918,9924,9925,9934,9934,9940,9940,9962,9962,9970,9971,9973,9973,9978,9978,9981,9981,9989,9989,9994,9995,10024,10024,10060,10060,10062,10062,10067,10069,10071,10071,10133,10135,10160,10160,10175,10175,11035,11036,11088,11088,11093,11093,11904,11929,11931,12019,12032,12245,12272,12287,12289,12350,12353,12438,12441,12543,12549,12591,12593,12686,12688,12773,12783,12830,12832,12871,12880,42124,42128,42182,43360,43388,44032,55203,63744,64255,65040,65049,65072,65106,65108,65126,65128,65131,94176,94180,94192,94198,94208,101589,101631,101662,101760,101874,110576,110579,110581,110587,110589,110590,110592,110882,110898,110898,110928,110930,110933,110933,110948,110951,110960,111355,119552,119638,119648,119670,126980,126980,127183,127183,127374,127374,127377,127386,127488,127490,127504,127547,127552,127560,127568,127569,127584,127589,127744,127776,127789,127797,127799,127868,127870,127891,127904,127946,127951,127955,127968,127984,127988,127988,127992,128062,128064,128064,128066,128252,128255,128317,128331,128334,128336,128359,128378,128378,128405,128406,128420,128420,128507,128591,128640,128709,128716,128716,128720,128722,128725,128728,128732,128735,128747,128748,128756,128764,128992,129003,129008,129008,129292,129338,129340,129349,129351,129535,129648,129660,129664,129674,129678,129734,129736,129736,129741,129756,129759,129770,129775,129784,131072,196605,196608,262141],ke=(e,t)=>{let n=0,r=Math.floor(e.length/2)-1;for(;n<=r;){let i=Math.floor((n+r)/2),a=i*2;if(t<e[a])r=i-1;else if(t>e[a+1])n=i+1;else return!0}return!1},Ae=19968,[je,Me]=Ne(Oe);function Ne(e){let t=e[0],n=e[1];for(let r=0;r<e.length;r+=2){let i=e[r],a=e[r+1];if(Ae>=i&&Ae<=a)return[i,a];a-i>n-t&&(t=i,n=a)}return[t,n]}const Pe=e=>e<161||e>1114109?!1:ke(Ee,e),Fe=e=>e<12288||e>65510?!1:ke(De,e),Ie=e=>e>=je&&e<=Me?!0:e<4352||e>262141?!1:ke(Oe,e);function Le(e){if(!Number.isSafeInteger(e))throw TypeError(`Expected a code point, got \`${typeof e}\`.`)}function Re(e,{ambiguousAsWide:t=!1}={}){return Le(e),Fe(e)||Ie(e)||t&&Pe(e)?2:1}var ze=e(t(((e,t)=>{t.exports=()=>/[#*0-9]\uFE0F?\u20E3|[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23ED-\u23EF\u23F1\u23F2\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB\u25FC\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692\u2694-\u2697\u2699\u269B\u269C\u26A0\u26A7\u26AA\u26B0\u26B1\u26BD\u26BE\u26C4\u26C8\u26CF\u26D1\u26E9\u26F0-\u26F5\u26F7\u26F8\u26FA\u2702\u2708\u2709\u270F\u2712\u2714\u2716\u271D\u2721\u2733\u2734\u2744\u2747\u2757\u2763\u27A1\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B55\u3030\u303D\u3297\u3299]\uFE0F?|[\u261D\u270C\u270D](?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?|[\u270A\u270B](?:\uD83C[\uDFFB-\uDFFF])?|[\u23E9-\u23EC\u23F0\u23F3\u25FD\u2693\u26A1\u26AB\u26C5\u26CE\u26D4\u26EA\u26FD\u2705\u2728\u274C\u274E\u2753-\u2755\u2795-\u2797\u27B0\u27BF\u2B50]|\u26D3\uFE0F?(?:\u200D\uD83D\uDCA5)?|\u26F9(?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?(?:\u200D[\u2640\u2642]\uFE0F?)?|\u2764\uFE0F?(?:\u200D(?:\uD83D\uDD25|\uD83E\uDE79))?|\uD83C(?:[\uDC04\uDD70\uDD71\uDD7E\uDD7F\uDE02\uDE37\uDF21\uDF24-\uDF2C\uDF36\uDF7D\uDF96\uDF97\uDF99-\uDF9B\uDF9E\uDF9F\uDFCD\uDFCE\uDFD4-\uDFDF\uDFF5\uDFF7]\uFE0F?|[\uDF85\uDFC2\uDFC7](?:\uD83C[\uDFFB-\uDFFF])?|[\uDFC4\uDFCA](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDFCB\uDFCC](?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDCCF\uDD8E\uDD91-\uDD9A\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF43\uDF45-\uDF4A\uDF4C-\uDF7C\uDF7E-\uDF84\uDF86-\uDF93\uDFA0-\uDFC1\uDFC5\uDFC6\uDFC8\uDFC9\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF8-\uDFFF]|\uDDE6\uD83C[\uDDE8-\uDDEC\uDDEE\uDDF1\uDDF2\uDDF4\uDDF6-\uDDFA\uDDFC\uDDFD\uDDFF]|\uDDE7\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEF\uDDF1-\uDDF4\uDDF6-\uDDF9\uDDFB\uDDFC\uDDFE\uDDFF]|\uDDE8\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDEE\uDDF0-\uDDF7\uDDFA-\uDDFF]|\uDDE9\uD83C[\uDDEA\uDDEC\uDDEF\uDDF0\uDDF2\uDDF4\uDDFF]|\uDDEA\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDED\uDDF7-\uDDFA]|\uDDEB\uD83C[\uDDEE-\uDDF0\uDDF2\uDDF4\uDDF7]|\uDDEC\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEE\uDDF1-\uDDF3\uDDF5-\uDDFA\uDDFC\uDDFE]|\uDDED\uD83C[\uDDF0\uDDF2\uDDF3\uDDF7\uDDF9\uDDFA]|\uDDEE\uD83C[\uDDE8-\uDDEA\uDDF1-\uDDF4\uDDF6-\uDDF9]|\uDDEF\uD83C[\uDDEA\uDDF2\uDDF4\uDDF5]|\uDDF0\uD83C[\uDDEA\uDDEC-\uDDEE\uDDF2\uDDF3\uDDF5\uDDF7\uDDFC\uDDFE\uDDFF]|\uDDF1\uD83C[\uDDE6-\uDDE8\uDDEE\uDDF0\uDDF7-\uDDFB\uDDFE]|\uDDF2\uD83C[\uDDE6\uDDE8-\uDDED\uDDF0-\uDDFF]|\uDDF3\uD83C[\uDDE6\uDDE8\uDDEA-\uDDEC\uDDEE\uDDF1\uDDF4\uDDF5\uDDF7\uDDFA\uDDFF]|\uDDF4\uD83C\uDDF2|\uDDF5\uD83C[\uDDE6\uDDEA-\uDDED\uDDF0-\uDDF3\uDDF7-\uDDF9\uDDFC\uDDFE]|\uDDF6\uD83C\uDDE6|\uDDF7\uD83C[\uDDEA\uDDF4\uDDF8\uDDFA\uDDFC]|\uDDF8\uD83C[\uDDE6-\uDDEA\uDDEC-\uDDF4\uDDF7-\uDDF9\uDDFB\uDDFD-\uDDFF]|\uDDF9\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDED\uDDEF-\uDDF4\uDDF7\uDDF9\uDDFB\uDDFC\uDDFF]|\uDDFA\uD83C[\uDDE6\uDDEC\uDDF2\uDDF3\uDDF8\uDDFE\uDDFF]|\uDDFB\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDEE\uDDF3\uDDFA]|\uDDFC\uD83C[\uDDEB\uDDF8]|\uDDFD\uD83C\uDDF0|\uDDFE\uD83C[\uDDEA\uDDF9]|\uDDFF\uD83C[\uDDE6\uDDF2\uDDFC]|\uDF44(?:\u200D\uD83D\uDFEB)?|\uDF4B(?:\u200D\uD83D\uDFE9)?|\uDFC3(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?|\uDFF3\uFE0F?(?:\u200D(?:\u26A7\uFE0F?|\uD83C\uDF08))?|\uDFF4(?:\u200D\u2620\uFE0F?|\uDB40\uDC67\uDB40\uDC62\uDB40(?:\uDC65\uDB40\uDC6E\uDB40\uDC67|\uDC73\uDB40\uDC63\uDB40\uDC74|\uDC77\uDB40\uDC6C\uDB40\uDC73)\uDB40\uDC7F)?)|\uD83D(?:[\uDC3F\uDCFD\uDD49\uDD4A\uDD6F\uDD70\uDD73\uDD76-\uDD79\uDD87\uDD8A-\uDD8D\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA\uDECB\uDECD-\uDECF\uDEE0-\uDEE5\uDEE9\uDEF0\uDEF3]\uFE0F?|[\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDC8F\uDC91\uDCAA\uDD7A\uDD95\uDD96\uDE4C\uDE4F\uDEC0\uDECC](?:\uD83C[\uDFFB-\uDFFF])?|[\uDC6E-\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4\uDEB5](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD74\uDD90](?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?|[\uDC00-\uDC07\uDC09-\uDC14\uDC16-\uDC25\uDC27-\uDC3A\uDC3C-\uDC3E\uDC40\uDC44\uDC45\uDC51-\uDC65\uDC6A\uDC79-\uDC7B\uDC7D-\uDC80\uDC84\uDC88-\uDC8E\uDC90\uDC92-\uDCA9\uDCAB-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDDA4\uDDFB-\uDE2D\uDE2F-\uDE34\uDE37-\uDE41\uDE43\uDE44\uDE48-\uDE4A\uDE80-\uDEA2\uDEA4-\uDEB3\uDEB7-\uDEBF\uDEC1-\uDEC5\uDED0-\uDED2\uDED5-\uDED8\uDEDC-\uDEDF\uDEEB\uDEEC\uDEF4-\uDEFC\uDFE0-\uDFEB\uDFF0]|\uDC08(?:\u200D\u2B1B)?|\uDC15(?:\u200D\uD83E\uDDBA)?|\uDC26(?:\u200D(?:\u2B1B|\uD83D\uDD25))?|\uDC3B(?:\u200D\u2744\uFE0F?)?|\uDC41\uFE0F?(?:\u200D\uD83D\uDDE8\uFE0F?)?|\uDC68(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDC68\uDC69]\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFC-\uDFFF])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFC-\uDFFF]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFD-\uDFFF]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFD\uDFFF]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFE])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFE]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?))?|\uDC69(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?[\uDC68\uDC69]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?|\uDC69\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?))|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFC-\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFC-\uDFFF]|\uDEEF\u200D\uD83D\uDC69\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFD-\uDFFF]|\uDEEF\u200D\uD83D\uDC69\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF]|\uDEEF\u200D\uD83D\uDC69\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFD\uDFFF]|\uDEEF\u200D\uD83D\uDC69\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFB-\uDFFE])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFE]|\uDEEF\u200D\uD83D\uDC69\uD83C[\uDFFB-\uDFFE])))?))?|\uDD75(?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?(?:\u200D[\u2640\u2642]\uFE0F?)?|\uDE2E(?:\u200D\uD83D\uDCA8)?|\uDE35(?:\u200D\uD83D\uDCAB)?|\uDE36(?:\u200D\uD83C\uDF2B\uFE0F?)?|\uDE42(?:\u200D[\u2194\u2195]\uFE0F?)?|\uDEB6(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?)|\uD83E(?:[\uDD0C\uDD0F\uDD18-\uDD1F\uDD30-\uDD34\uDD36\uDD77\uDDB5\uDDB6\uDDBB\uDDD2\uDDD3\uDDD5\uDEC3-\uDEC5\uDEF0\uDEF2-\uDEF8](?:\uD83C[\uDFFB-\uDFFF])?|[\uDD26\uDD35\uDD37-\uDD39\uDD3C-\uDD3E\uDDB8\uDDB9\uDDCD\uDDCF\uDDD4\uDDD6-\uDDDD](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDDDE\uDDDF](?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD0D\uDD0E\uDD10-\uDD17\uDD20-\uDD25\uDD27-\uDD2F\uDD3A\uDD3F-\uDD45\uDD47-\uDD76\uDD78-\uDDB4\uDDB7\uDDBA\uDDBC-\uDDCC\uDDD0\uDDE0-\uDDFF\uDE70-\uDE7C\uDE80-\uDE8A\uDE8E-\uDEC2\uDEC6\uDEC8\uDECD-\uDEDC\uDEDF-\uDEEA\uDEEF]|\uDDCE(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?|\uDDD1(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1|\uDDD1\u200D\uD83E\uDDD2(?:\u200D\uD83E\uDDD2)?|\uDDD2(?:\u200D\uD83E\uDDD2)?))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFC-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFC-\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFD-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFD\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFE]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFE])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFE])))?))?|\uDEF1(?:\uD83C(?:\uDFFB(?:\u200D\uD83E\uDEF2\uD83C[\uDFFC-\uDFFF])?|\uDFFC(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFD-\uDFFF])?|\uDFFD(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])?|\uDFFE(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFD\uDFFF])?|\uDFFF(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFE])?))?)/g}))(),1);const Be=new Intl.Segmenter,Ve=/^\p{Default_Ignorable_Code_Point}$/u;function He(e,t={}){if(typeof e!=`string`||e.length===0)return 0;let{ambiguousIsNarrow:r=!0,countAnsiEscapeCodes:i=!1}=t;if(i||(e=n(e)),e.length===0)return 0;let a=0,o={ambiguousAsWide:!r};for(let{segment:t}of Be.segment(e)){let e=t.codePointAt(0);if(!(e<=31||e>=127&&e<=159)&&!(e>=8203&&e<=8207||e===65279)&&!(e>=768&&e<=879||e>=6832&&e<=6911||e>=7616&&e<=7679||e>=8400&&e<=8447||e>=65056&&e<=65071)&&!(e>=55296&&e<=57343)&&!(e>=65024&&e<=65039)&&!Ve.test(t)){if((0,ze.default)().test(t)){a+=2;continue}a+=Re(e,o)}}return a}const Ue=new Set([`\x1B`,``]),We=`]8;;`,Ge=e=>`${Ue.values().next().value}[${e}m`,Ke=e=>`${Ue.values().next().value}${We}${e}`,qe=e=>e.split(` `).map(e=>He(e)),Je=(e,t,r)=>{let i=[...t],a=!1,o=!1,s=He(n(e.at(-1)));for(let[t,n]of i.entries()){let c=He(n);if(s+c<=r?e[e.length-1]+=n:(e.push(n),s=0),Ue.has(n)&&(a=!0,o=i.slice(t+1,t+1+4).join(``)===We),a){o?n===`\x07`&&(a=!1,o=!1):n===`m`&&(a=!1);continue}s+=c,s===r&&t<i.length-1&&(e.push(``),s=0)}!s&&e.at(-1).length>0&&e.length>1&&(e[e.length-2]+=e.pop())},Ye=e=>{let t=e.split(` `),n=t.length;for(;n>0&&!(He(t[n-1])>0);)n--;return n===t.length?e:t.slice(0,n).join(` `)+t.slice(n).join(``)},Xe=(e,t,n={})=>{if(n.trim!==!1&&e.trim()===``)return``;let i=``,a,o,s=qe(e),c=[``];for(let[r,i]of e.split(` `).entries()){n.trim!==!1&&(c[c.length-1]=c.at(-1).trimStart());let e=He(c.at(-1));if(r!==0&&(e>=t&&(n.wordWrap===!1||n.trim===!1)&&(c.push(``),e=0),(e>0||n.trim===!1)&&(c[c.length-1]+=` `,e++)),n.hard&&s[r]>t){let n=t-e,a=1+Math.floor((s[r]-n-1)/t);Math.floor((s[r]-1)/t)<a&&c.push(``),Je(c,i,t);continue}if(e+s[r]>t&&e>0&&s[r]>0){if(n.wordWrap===!1&&e<t){Je(c,i,t);continue}c.push(``)}if(e+s[r]>t&&n.wordWrap===!1){Je(c,i,t);continue}c[c.length-1]+=i}n.trim!==!1&&(c=c.map(e=>Ye(e)));let l=c.join(`
|
|
7
|
-
`),u=[...l],d=0;for(let[e,t]of u.entries()){if(i+=t,Ue.has(t)){let{groups:e}=RegExp(`(?:\\[(?<code>\\d+)m|\\${We}(?<uri>.*))`).exec(l.slice(d))||{groups:{}};if(e.code!==void 0){let t=Number.parseFloat(e.code);a=t===39?void 0:t}else e.uri!==void 0&&(o=e.uri.length===0?void 0:e.uri)}let n=r.codes.get(Number(a));u[e+1]===`
|
|
8
|
-
`?(o&&(i+=Ke(``)),a&&n&&(i+=Ge(n))):t===`
|
|
9
|
-
`&&(a&&n&&(i+=Ge(a)),o&&(i+=Ke(o))),d+=t.length}return i};function Ze(e,t,n){return String(e).normalize().replaceAll(`\r
|
|
10
|
-
`,`
|
|
11
|
-
`).split(`
|
|
12
|
-
`).map(e=>Xe(e,t,n)).join(`
|
|
13
|
-
`)}function Qe(e){return Te(e,{stringWidth:He,stripAnsi:n,wrap:Ze})}function $e(e,t){let n=w(`.`,e),r;for(pe(n).isDirectory()||(n=oe(n));;){if(r=t(n,fe(n)),r)return w(n,r);if(n=oe(r=n),r===n)break}}
|
|
14
|
-
/**
|
|
15
|
-
* @license
|
|
16
|
-
* Copyright (c) 2016, Contributors
|
|
17
|
-
* SPDX-License-Identifier: ISC
|
|
18
|
-
*/
|
|
19
|
-
function et(e){if(e!==e.toLowerCase()&&e!==e.toUpperCase()||(e=e.toLowerCase()),e.indexOf(`-`)===-1&&e.indexOf(`_`)===-1)return e;{let t=``,n=!1,r=e.match(/^-+/);for(let i=r?r[0].length:0;i<e.length;i++){let r=e.charAt(i);n&&(n=!1,r=r.toUpperCase()),i!==0&&(r===`-`||r===`_`)?n=!0:r!==`-`&&r!==`_`&&(t+=r)}return t}}function tt(e,t){let n=e.toLowerCase();t||=`-`;let r=``;for(let i=0;i<e.length;i++){let a=n.charAt(i),o=e.charAt(i);a!==o&&i>0?r+=`${t}${n.charAt(i)}`:r+=o}return r}function nt(e){return e==null?!1:typeof e==`number`||/^0x[0-9a-f]+$/i.test(e)?!0:/^0[^.]/.test(e)?!1:/^[-]?(?:\d+(?:\.\d*)?|\.\d+)(e[-+]?\d+)?$/.test(e)}
|
|
20
|
-
/**
|
|
21
|
-
* @license
|
|
22
|
-
* Copyright (c) 2016, Contributors
|
|
23
|
-
* SPDX-License-Identifier: ISC
|
|
24
|
-
*/
|
|
25
|
-
function rt(e){if(Array.isArray(e))return e.map(e=>typeof e==`string`?e:e+``);e=e.trim();let t=0,n=null,r=null,i=null,a=[];for(let o=0;o<e.length;o++){if(n=r,r=e.charAt(o),r===` `&&!i){n!==` `&&t++;continue}r===i?i=null:(r===`'`||r===`"`)&&!i&&(i=r),a[t]||(a[t]=``),a[t]+=r}return a}
|
|
26
|
-
/**
|
|
27
|
-
* @license
|
|
28
|
-
* Copyright (c) 2016, Contributors
|
|
29
|
-
* SPDX-License-Identifier: ISC
|
|
30
|
-
*/
|
|
31
|
-
var O;(function(e){e.BOOLEAN=`boolean`,e.STRING=`string`,e.NUMBER=`number`,e.ARRAY=`array`})(O||={});
|
|
32
|
-
/**
|
|
33
|
-
* @license
|
|
34
|
-
* Copyright (c) 2016, Contributors
|
|
35
|
-
* SPDX-License-Identifier: ISC
|
|
36
|
-
*/
|
|
37
|
-
let k;var it=class{constructor(e){k=e}parse(e,t){let n=Object.assign({alias:void 0,array:void 0,boolean:void 0,config:void 0,configObjects:void 0,configuration:void 0,coerce:void 0,count:void 0,default:void 0,envPrefix:void 0,narg:void 0,normalize:void 0,string:void 0,number:void 0,__:void 0,key:void 0},t),r=rt(e),i=typeof e==`string`,a=at(Object.assign(Object.create(null),n.alias)),o=Object.assign({"boolean-negation":!0,"camel-case-expansion":!0,"combine-arrays":!1,"dot-notation":!0,"duplicate-arguments-array":!0,"flatten-duplicate-arrays":!0,"greedy-arrays":!0,"halt-at-non-option":!1,"nargs-eats-options":!1,"negation-prefix":`no-`,"parse-numbers":!0,"parse-positional-numbers":!0,"populate--":!1,"set-placeholder-key":!1,"short-option-groups":!0,"strip-aliased":!1,"strip-dashed":!1,"unknown-options-as-args":!1},n.configuration),s=Object.assign(Object.create(null),n.default),c=n.configObjects||[],l=n.envPrefix,u=o[`populate--`],d=u?`--`:`_`,f=Object.create(null),p=Object.create(null),m=n.__||k.format,h={aliases:Object.create(null),arrays:Object.create(null),bools:Object.create(null),strings:Object.create(null),numbers:Object.create(null),counts:Object.create(null),normalize:Object.create(null),configs:Object.create(null),nargs:Object.create(null),coercions:Object.create(null),keys:[]},g=/^-([0-9]+(\.[0-9]+)?|\.[0-9]+)$/,ee=RegExp(`^--`+o[`negation-prefix`]+`(.+)`);[].concat(n.array||[]).filter(Boolean).forEach(function(e){let t=typeof e==`object`?e.key:e,n=Object.keys(e).map(function(e){return{boolean:`bools`,string:`strings`,number:`numbers`}[e]}).filter(Boolean).pop();n&&(h[n][t]=!0),h.arrays[t]=!0,h.keys.push(t)}),[].concat(n.boolean||[]).filter(Boolean).forEach(function(e){h.bools[e]=!0,h.keys.push(e)}),[].concat(n.string||[]).filter(Boolean).forEach(function(e){h.strings[e]=!0,h.keys.push(e)}),[].concat(n.number||[]).filter(Boolean).forEach(function(e){h.numbers[e]=!0,h.keys.push(e)}),[].concat(n.count||[]).filter(Boolean).forEach(function(e){h.counts[e]=!0,h.keys.push(e)}),[].concat(n.normalize||[]).filter(Boolean).forEach(function(e){h.normalize[e]=!0,h.keys.push(e)}),typeof n.narg==`object`&&Object.entries(n.narg).forEach(([e,t])=>{typeof t==`number`&&(h.nargs[e]=t,h.keys.push(e))}),typeof n.coerce==`object`&&Object.entries(n.coerce).forEach(([e,t])=>{typeof t==`function`&&(h.coercions[e]=t,h.keys.push(e))}),n.config!==void 0&&(Array.isArray(n.config)||typeof n.config==`string`?[].concat(n.config).filter(Boolean).forEach(function(e){h.configs[e]=!0}):typeof n.config==`object`&&Object.entries(n.config).forEach(([e,t])=>{(typeof t==`boolean`||typeof t==`function`)&&(h.configs[e]=t)})),pe(n.key,a,n.default,h.arrays),Object.keys(s).forEach(function(e){(h.aliases[e]||[]).forEach(function(t){s[t]=s[e]})});let _=null;Se();let v=[],y=Object.assign(Object.create(null),{_:[]}),te={};for(let e=0;e<r.length;e++){let t=r[e],n=t.replace(/^-{3,}/,`---`),i,a,s,c,l,u;if(t!==`--`&&/^-/.test(t)&&_e(t))ne(t);else if(n.match(/^---+(=|$)/)){ne(t);continue}else if(t.match(/^--.+=/)||!o[`short-option-groups`]&&t.match(/^-.+=/))c=t.match(/^--?([^=]+)=([\s\S]*)$/),c!==null&&Array.isArray(c)&&c.length>=3&&(T(c[1],h.arrays)?e=b(e,c[1],r,c[2]):T(c[1],h.nargs)===!1?x(c[1],c[2],!0):e=re(e,c[1],r,c[2]));else if(t.match(ee)&&o[`boolean-negation`])c=t.match(ee),c!==null&&Array.isArray(c)&&c.length>=2&&(a=c[1],x(a,T(a,h.arrays)?[!1]:!1));else if(t.match(/^--.+/)||!o[`short-option-groups`]&&t.match(/^-[^-]+/))c=t.match(/^--?(.+)/),c!==null&&Array.isArray(c)&&c.length>=2&&(a=c[1],T(a,h.arrays)?e=b(e,a,r):T(a,h.nargs)===!1?(l=r[e+1],l!==void 0&&(!l.match(/^-/)||l.match(g))&&!T(a,h.bools)&&!T(a,h.counts)||/^(true|false)$/.test(l)?(x(a,l),e++):x(a,ye(a))):e=re(e,a,r));else if(t.match(/^-.\..+=/))c=t.match(/^-([^=]+)=([\s\S]*)$/),c!==null&&Array.isArray(c)&&c.length>=3&&x(c[1],c[2]);else if(t.match(/^-.\..+/)&&!t.match(g))l=r[e+1],c=t.match(/^-(.\..+)/),c!==null&&Array.isArray(c)&&c.length>=2&&(a=c[1],l!==void 0&&!l.match(/^-/)&&!T(a,h.bools)&&!T(a,h.counts)?(x(a,l),e++):x(a,ye(a)));else if(t.match(/^-[^-]+/)&&!t.match(g)){s=t.slice(1,-1).split(``),i=!1;for(let n=0;n<s.length;n++){if(l=t.slice(n+2),s[n+1]&&s[n+1]===`=`){u=t.slice(n+3),a=s[n],T(a,h.arrays)?e=b(e,a,r,u):T(a,h.nargs)===!1?x(a,u):e=re(e,a,r,u),i=!0;break}if(l===`-`){x(s[n],l);continue}if(/[A-Za-z]/.test(s[n])&&/^-?\d+(\.\d*)?(e-?\d+)?$/.test(l)&&T(l,h.bools)===!1){x(s[n],l),i=!0;break}if(s[n+1]&&s[n+1].match(/\W/)){x(s[n],l),i=!0;break}else x(s[n],ye(s[n]))}a=t.slice(-1)[0],!i&&a!==`-`&&(T(a,h.arrays)?e=b(e,a,r):T(a,h.nargs)===!1?(l=r[e+1],l!==void 0&&(!/^(-|--)[^-]/.test(l)||l.match(g))&&!T(a,h.bools)&&!T(a,h.counts)||/^(true|false)$/.test(l)?(x(a,l),e++):x(a,ye(a))):e=re(e,a,r))}else if(t.match(/^-[0-9]$/)&&t.match(g)&&T(t.slice(1),h.bools))a=t.slice(1),x(a,ye(a));else if(t===`--`){v=r.slice(e+1);break}else if(o[`halt-at-non-option`]){v=r.slice(e);break}else ne(t)}ce(y,!0),ce(y,!1),ae(y),se(),w(y,h.aliases,s,!0),le(y),o[`set-placeholder-key`]&&ue(y),Object.keys(h.counts).forEach(function(e){de(y,e.split(`.`))||x(e,0)}),u&&v.length&&(y[d]=[]),v.forEach(function(e){y[d].push(e)}),o[`camel-case-expansion`]&&o[`strip-dashed`]&&Object.keys(y).filter(e=>e!==`--`&&e.includes(`-`)).forEach(e=>{delete y[e]}),o[`strip-aliased`]&&[].concat(...Object.keys(a).map(e=>a[e])).forEach(e=>{o[`camel-case-expansion`]&&e.includes(`-`)&&delete y[e.split(`.`).map(e=>et(e)).join(`.`)],delete y[e]});function ne(e){let t=C(`_`,e);(typeof t==`string`||typeof t==`number`)&&y._.push(t)}function re(e,t,n,r){let i,a=T(t,h.nargs);if(a=typeof a!=`number`||isNaN(a)?1:a,a===0)return E(r)||(_=Error(m(`Argument unexpected for: %s`,t))),x(t,ye(t)),e;let s=+!E(r);if(o[`nargs-eats-options`])n.length-(e+1)+s<a&&(_=Error(m(`Not enough arguments following: %s`,t))),s=a;else{for(i=e+1;i<n.length&&(!n[i].match(/^-[^0-9]/)||n[i].match(g)||_e(n[i]));i++)s++;s<a&&(_=Error(m(`Not enough arguments following: %s`,t)))}let c=Math.min(s,a);for(!E(r)&&c>0&&(x(t,r),c--),i=e+1;i<c+e+1;i++)x(t,n[i]);return e+c}function b(e,t,n,r){let a=[],c=r||n[e+1],l=T(t,h.nargs);if(T(t,h.bools)&&!/^(true|false)$/.test(c))a.push(!0);else if(E(c)||E(r)&&/^-/.test(c)&&!g.test(c)&&!_e(c)){if(s[t]!==void 0){let e=s[t];a=Array.isArray(e)?e:[e]}}else{E(r)||a.push(ie(t,r,!0));for(let r=e+1;r<n.length&&!(!o[`greedy-arrays`]&&a.length>0||l&&typeof l==`number`&&a.length>=l||(c=n[r],/^-/.test(c)&&!g.test(c)&&!_e(c)));r++)e=r,a.push(ie(t,c,i))}return typeof l==`number`&&(l&&a.length<l||isNaN(l)&&a.length===0)&&(_=Error(m(`Not enough arguments following: %s`,t))),x(t,a),e}function x(e,t,n=i){/-/.test(e)&&o[`camel-case-expansion`]&&S(e,e.split(`.`).map(function(e){return et(e)}).join(`.`));let r=ie(e,t,n),a=e.split(`.`);fe(y,a,r),h.aliases[e]&&h.aliases[e].forEach(function(e){fe(y,e.split(`.`),r)}),a.length>1&&o[`dot-notation`]&&(h.aliases[a[0]]||[]).forEach(function(t){let n=t.split(`.`),i=[].concat(a);i.shift(),n=n.concat(i),(h.aliases[e]||[]).includes(n.join(`.`))||fe(y,n,r)}),T(e,h.normalize)&&!T(e,h.arrays)&&[e].concat(h.aliases[e]||[]).forEach(function(e){Object.defineProperty(te,e,{enumerable:!0,get(){return t},set(e){t=typeof e==`string`?k.normalize(e):e}})})}function S(e,t){h.aliases[e]&&h.aliases[e].length||(h.aliases[e]=[t],f[t]=!0),h.aliases[t]&&h.aliases[t].length||S(t,e)}function ie(e,t,n){n&&(t=ct(t)),(T(e,h.bools)||T(e,h.counts))&&typeof t==`string`&&(t=t===`true`);let r=Array.isArray(t)?t.map(function(t){return C(e,t)}):C(e,t);return T(e,h.counts)&&(E(r)||typeof r==`boolean`)&&(r=ot()),T(e,h.normalize)&&T(e,h.arrays)&&(r=Array.isArray(t)?t.map(e=>k.normalize(e)):k.normalize(t)),r}function C(e,t){return!o[`parse-positional-numbers`]&&e===`_`||!T(e,h.strings)&&!T(e,h.bools)&&!Array.isArray(t)&&(nt(t)&&o[`parse-numbers`]&&Number.isSafeInteger(Math.floor(parseFloat(`${t}`)))||!E(t)&&T(e,h.numbers))&&(t=Number(t)),t}function ae(e){let t=Object.create(null);w(t,h.aliases,s),Object.keys(h.configs).forEach(function(n){let r=e[n]||t[n];if(r)try{let e=null,t=k.resolve(k.cwd(),r),i=h.configs[n];if(typeof i==`function`){try{e=i(t)}catch(t){e=t}if(e instanceof Error){_=e;return}}else e=k.require(t);oe(e)}catch(t){t.name===`PermissionDenied`?_=t:e[n]&&(_=Error(m(`Invalid JSON config file: %s`,r)))}})}function oe(e,t){Object.keys(e).forEach(function(n){let r=e[n],i=t?t+`.`+n:n;typeof r==`object`&&r&&!Array.isArray(r)&&o[`dot-notation`]?oe(r,i):(!de(y,i.split(`.`))||T(i,h.arrays)&&o[`combine-arrays`])&&x(i,r)})}function se(){c!==void 0&&c.forEach(function(e){oe(e)})}function ce(e,t){if(l===void 0)return;let n=typeof l==`string`?l:``,r=k.env();Object.keys(r).forEach(function(i){if(n===``||i.lastIndexOf(n,0)===0){let a=i.split(`__`).map(function(e,t){return t===0&&(e=e.substring(n.length)),et(e)});(t&&h.configs[a.join(`.`)]||!t)&&!de(e,a)&&x(a.join(`.`),r[i])}})}function le(e){let t,n=new Set;Object.keys(e).forEach(function(r){if(!n.has(r)&&(t=T(r,h.coercions),typeof t==`function`))try{let i=C(r,t(e[r]));[].concat(h.aliases[r]||[],r).forEach(t=>{n.add(t),e[t]=i})}catch(e){_=e}})}function ue(e){return h.keys.forEach(t=>{~t.indexOf(`.`)||e[t]===void 0&&(e[t]=void 0)}),e}function w(e,t,n,r=!1){Object.keys(n).forEach(function(i){de(e,i.split(`.`))||(fe(e,i.split(`.`),n[i]),r&&(p[i]=!0),(t[i]||[]).forEach(function(t){de(e,t.split(`.`))||fe(e,t.split(`.`),n[i])}))})}function de(e,t){let n=e;o[`dot-notation`]||(t=[t.join(`.`)]),t.slice(0,-1).forEach(function(e){n=n[e]||{}});let r=t[t.length-1];return typeof n==`object`?r in n:!1}function fe(e,t,n){let r=e;o[`dot-notation`]||(t=[t.join(`.`)]),t.slice(0,-1).forEach(function(e){e=st(e),typeof r==`object`&&r[e]===void 0&&(r[e]={}),typeof r[e]!=`object`||Array.isArray(r[e])?(Array.isArray(r[e])?r[e].push({}):r[e]=[r[e],{}],r=r[e][r[e].length-1]):r=r[e]});let i=st(t[t.length-1]),a=T(t.join(`.`),h.arrays),s=Array.isArray(n),c=o[`duplicate-arguments-array`];!c&&T(i,h.nargs)&&(c=!0,(!E(r[i])&&h.nargs[i]===1||Array.isArray(r[i])&&r[i].length===h.nargs[i])&&(r[i]=void 0)),n===ot()?r[i]=ot(r[i]):Array.isArray(r[i])?c&&a&&s?r[i]=o[`flatten-duplicate-arrays`]?r[i].concat(n):(Array.isArray(r[i][0])?r[i]:[r[i]]).concat([n]):!c&&!!a==!!s?r[i]=n:r[i]=r[i].concat([n]):r[i]===void 0&&a?r[i]=s?n:[n]:c&&!(r[i]===void 0||T(i,h.counts)||T(i,h.bools))?r[i]=[r[i],n]:r[i]=n}function pe(...e){e.forEach(function(e){Object.keys(e||{}).forEach(function(e){h.aliases[e]||(h.aliases[e]=[].concat(a[e]||[]),h.aliases[e].concat(e).forEach(function(t){if(/-/.test(t)&&o[`camel-case-expansion`]){let n=et(t);n!==e&&h.aliases[e].indexOf(n)===-1&&(h.aliases[e].push(n),f[n]=!0)}}),h.aliases[e].concat(e).forEach(function(t){if(t.length>1&&/[A-Z]/.test(t)&&o[`camel-case-expansion`]){let n=tt(t,`-`);n!==e&&h.aliases[e].indexOf(n)===-1&&(h.aliases[e].push(n),f[n]=!0)}}),h.aliases[e].forEach(function(t){h.aliases[t]=[e].concat(h.aliases[e].filter(function(e){return t!==e}))}))})})}function T(e,t){let n=[].concat(h.aliases[e]||[],e),r=Object.keys(t),i=n.find(e=>r.includes(e));return i?t[i]:!1}function me(e){let t=Object.keys(h);return[].concat(t.map(e=>h[e])).some(function(t){return Array.isArray(t)?t.includes(e):t[e]})}function he(e,...t){return[].concat(...t).some(function(t){let n=e.match(t);return n&&me(n[1])})}function ge(e){if(e.match(g)||!e.match(/^-[^-]+/))return!1;let t=!0,n,r=e.slice(1).split(``);for(let i=0;i<r.length;i++){if(n=e.slice(i+2),!me(r[i])){t=!1;break}if(r[i+1]&&r[i+1]===`=`||n===`-`||/[A-Za-z]/.test(r[i])&&/^-?\d+(\.\d*)?(e-?\d+)?$/.test(n)||r[i+1]&&r[i+1].match(/\W/))break}return t}function _e(e){return o[`unknown-options-as-args`]&&ve(e)}function ve(e){return e=e.replace(/^-{3,}/,`--`),e.match(g)||ge(e)?!1:!he(e,/^-+([^=]+?)=[\s\S]*$/,ee,/^-+([^=]+?)$/,/^-+([^=]+?)-$/,/^-+([^=]+?\d+)$/,/^-+([^=]+?)\W+.*$/)}function ye(e){return!T(e,h.bools)&&!T(e,h.counts)&&`${e}`in s?s[e]:be(xe(e))}function be(e){return{[O.BOOLEAN]:!0,[O.STRING]:``,[O.NUMBER]:void 0,[O.ARRAY]:[]}[e]}function xe(e){let t=O.BOOLEAN;return T(e,h.strings)?t=O.STRING:T(e,h.numbers)?t=O.NUMBER:T(e,h.bools)?t=O.BOOLEAN:T(e,h.arrays)&&(t=O.ARRAY),t}function E(e){return e===void 0}function Se(){Object.keys(h.counts).find(e=>T(e,h.arrays)?(_=Error(m(`Invalid configuration: %s, opts.count excludes opts.array.`,e)),!0):T(e,h.nargs)?(_=Error(m(`Invalid configuration: %s, opts.count excludes opts.narg.`,e)),!0):!1)}return{aliases:Object.assign({},h.aliases),argv:Object.assign(te,y),configuration:o,defaulted:Object.assign({},p),error:_,newAliases:Object.assign({},f)}}};function at(e){let t=[],n=Object.create(null),r=!0;for(Object.keys(e).forEach(function(n){t.push([].concat(e[n],n))});r;){r=!1;for(let e=0;e<t.length;e++)for(let n=e+1;n<t.length;n++)if(t[e].filter(function(e){return t[n].indexOf(e)!==-1}).length){t[e]=t[e].concat(t[n]),t.splice(n,1),r=!0;break}}return t.forEach(function(e){e=e.filter(function(e,t,n){return n.indexOf(e)===t});let t=e.pop();t!==void 0&&typeof t==`string`&&(n[t]=e)}),n}function ot(e){return e===void 0?1:e+1}function st(e){return e===`__proto__`?`___proto___`:e}function ct(e){return typeof e==`string`&&(e[0]===`'`||e[0]===`"`)&&e[e.length-1]===e[0]?e.substring(1,e.length-1):e}const lt=process&&process.env&&process.env.YARGS_MIN_NODE_VERSION?Number(process.env.YARGS_MIN_NODE_VERSION):20,ut=(process==null?void 0:process.versions)?.node??(process==null?void 0:process.version)?.slice(1);if(ut&&Number(ut.match(/^([^.]+)/)[1])<lt)throw Error(`yargs parser supports a minimum Node.js version of ${lt}. Read our version support policy: https://github.com/yargs/yargs-parser#supported-nodejs-versions`);const dt=process?process.env:{},ft=x?x(import.meta.url):void 0,pt=new it({cwd:process.cwd,env:()=>dt,format:me,normalize:le,resolve:w,require:e=>{if(ft!==void 0)return ft(e);if(e.match(/\.json$/))return JSON.parse(de(e,`utf8`));throw Error(`only .json config files are supported in ESM`)}}),mt=function(e,t){return pt.parse(e.slice(),t).argv};mt.detailed=function(e,t){return pt.parse(e.slice(),t)},mt.camelCase=et,mt.decamelize=tt,mt.looksLikeNumber=nt;function ht(){return+!gt()}function gt(){return _t()&&!process.defaultApp}function _t(){return!!process.versions.electron}function vt(e){return e.slice(ht()+1)}function yt(){return process.argv[ht()]}var bt={fs:{readFileSync:de,writeFile:T},format:me,resolve:w,exists:e=>{try{return pe(e).isFile()}catch{return!1}}};let A;var xt=class{constructor(e){e||={},this.directory=e.directory||`./locales`,this.updateFiles=typeof e.updateFiles==`boolean`?e.updateFiles:!0,this.locale=e.locale||`en`,this.fallbackToLanguage=typeof e.fallbackToLanguage==`boolean`?e.fallbackToLanguage:!0,this.cache=Object.create(null),this.writeQueue=[]}__(...e){if(typeof arguments[0]!=`string`)return this._taggedLiteral(arguments[0],...arguments);let t=e.shift(),n=function(){};return typeof e[e.length-1]==`function`&&(n=e.pop()),n||=function(){},this.cache[this.locale]||this._readLocaleFile(),!this.cache[this.locale][t]&&this.updateFiles?(this.cache[this.locale][t]=t,this._enqueueWrite({directory:this.directory,locale:this.locale,cb:n})):n(),A.format.apply(A.format,[this.cache[this.locale][t]||t].concat(e))}__n(){let e=Array.prototype.slice.call(arguments),t=e.shift(),n=e.shift(),r=e.shift(),i=function(){};typeof e[e.length-1]==`function`&&(i=e.pop()),this.cache[this.locale]||this._readLocaleFile();let a=r===1?t:n;this.cache[this.locale][t]&&(a=this.cache[this.locale][t][r===1?`one`:`other`]),!this.cache[this.locale][t]&&this.updateFiles?(this.cache[this.locale][t]={one:t,other:n},this._enqueueWrite({directory:this.directory,locale:this.locale,cb:i})):i();let o=[a];return~a.indexOf(`%d`)&&o.push(r),A.format.apply(A.format,o.concat(e))}setLocale(e){this.locale=e}getLocale(){return this.locale}updateLocale(e){this.cache[this.locale]||this._readLocaleFile();for(let t in e)Object.prototype.hasOwnProperty.call(e,t)&&(this.cache[this.locale][t]=e[t])}_taggedLiteral(e,...t){let n=``;return e.forEach(function(e,r){let i=t[r+1];n+=e,i!==void 0&&(n+=`%s`)}),this.__.apply(this,[n].concat([].slice.call(t,1)))}_enqueueWrite(e){this.writeQueue.push(e),this.writeQueue.length===1&&this._processWriteQueue()}_processWriteQueue(){let e=this,t=this.writeQueue[0],n=t.directory,r=t.locale,i=t.cb,a=this._resolveLocaleFile(n,r),o=JSON.stringify(this.cache[r],null,2);A.fs.writeFile(a,o,`utf-8`,function(t){e.writeQueue.shift(),e.writeQueue.length>0&&e._processWriteQueue(),i(t)})}_readLocaleFile(){let e={},t=this._resolveLocaleFile(this.directory,this.locale);try{A.fs.readFileSync&&(e=JSON.parse(A.fs.readFileSync(t,`utf-8`)))}catch(n){if(n instanceof SyntaxError&&(n.message=`syntax error in `+t),n.code===`ENOENT`)e={};else throw n}this.cache[this.locale]=e}_resolveLocaleFile(e,t){let n=A.resolve(e,`./`,t+`.json`);if(this.fallbackToLanguage&&!this._fileExistsSync(n)&&~t.lastIndexOf(`_`)){let r=A.resolve(e,`./`,t.split(`_`)[0]+`.json`);this._fileExistsSync(r)&&(n=r)}return n}_fileExistsSync(e){return A.exists(e)}};function St(e,t){A=t;let n=new xt(e);return{__:n.__.bind(n),__n:n.__n.bind(n),setLocale:n.setLocale.bind(n),getLocale:n.getLocale.bind(n),updateLocale:n.updateLocale.bind(n),locale:n.locale}}const Ct=e=>St(e,bt);var wt=e(t(((e,t)=>{t.exports=function(e){if(e===void 0&&(e=2),e>=Error.stackTraceLimit)throw TypeError("getCallerFile(position) requires position be less then Error.stackTraceLimit but position was: `"+e+"` and Error.stackTraceLimit was: `"+Error.stackTraceLimit+"`");var t=Error.prepareStackTrace;Error.prepareStackTrace=function(e,t){return t};var n=Error().stack;if(Error.prepareStackTrace=t,typeof n==`object`&&n)return n[e]?n[e].getFileName():void 0}}))(),1);const Tt=ge(import.meta.url),Et=Tt.substring(0,Tt.lastIndexOf(`node_modules`)),Dt=x(import.meta.url);var Ot={assert:{notStrictEqual:ie,strictEqual:C},cliui:Qe,findUp:$e,getEnv:e=>process.env[e],inspect:he,getProcessArgvBin:yt,mainFilename:Et||process.cwd(),Parser:mt,path:{basename:ae,dirname:oe,extname:se,relative:ue,resolve:w,join:ce},process:{argv:()=>process.argv,cwd:process.cwd,emitWarning:(e,t)=>process.emitWarning(e,t),execPath:()=>process.execPath,exit:e=>{process.exit(e)},nextTick:process.nextTick,stdColumns:process.stdout.columns===void 0?null:process.stdout.columns},readFileSync:_e,readdirSync:ve,require:Dt,getCallerFile:()=>{let e=(0,wt.default)(3);return e.match(/^file:\/\//)?ge(e):e},stringWidth:He,y18n:Ct({directory:w(Tt,`../../../locales`),updateFiles:!1})};function j(e,t,n,r){n.assert.notStrictEqual(e,t,r)}function kt(e,t){t.assert.strictEqual(typeof e,`string`)}function At(e){return Object.keys(e)}function M(e){return!!e&&!!e.then&&typeof e.then==`function`}var N=class e extends Error{constructor(t){super(t||`yargs error`),this.name=`YError`,Error.captureStackTrace&&Error.captureStackTrace(this,e)}};function jt(e){let t=e.replace(/\s{2,}/g,` `).split(/\s+(?![^[]*]|[^<]*>)/),n=/\.*[\][<>]/g,r=t.shift();if(!r)throw Error(`No command found in: ${e}`);let i={cmd:r.replace(n,``),demanded:[],optional:[]};return t.forEach((e,r)=>{let a=!1;e=e.replace(/\s/g,``),/\.+[\]>]/.test(e)&&r===t.length-1&&(a=!0),/^\[/.test(e)?i.optional.push({cmd:e.replace(n,``).split(`|`),variadic:a}):i.demanded.push({cmd:e.replace(n,``).split(`|`),variadic:a})}),i}const Mt=[`first`,`second`,`third`,`fourth`,`fifth`,`sixth`];function P(e,t,n){function r(){return typeof e==`object`?[{demanded:[],optional:[]},e,t]:[jt(`cmd ${e}`),t,n]}try{let e=0,[t,n,i]=r(),a=[].slice.call(n);for(;a.length&&a[a.length-1]===void 0;)a.pop();let o=i||a.length;if(o<t.demanded.length)throw new N(`Not enough arguments provided. Expected ${t.demanded.length} but received ${a.length}.`);let s=t.demanded.length+t.optional.length;if(o>s)throw new N(`Too many arguments provided. Expected max ${s} but received ${o}.`);t.demanded.forEach(t=>{let n=Nt(a.shift());t.cmd.filter(e=>e===n||e===`*`).length===0&&Pt(n,t.cmd,e),e+=1}),t.optional.forEach(t=>{if(a.length===0)return;let n=Nt(a.shift());t.cmd.filter(e=>e===n||e===`*`).length===0&&Pt(n,t.cmd,e),e+=1})}catch(e){console.warn(e.stack)}}function Nt(e){return Array.isArray(e)?`array`:e===null?`null`:typeof e}function Pt(e,t,n){throw new N(`Invalid ${Mt[n]||`manyith`} argument. Expected ${t.join(` or `)} but received ${e}.`)}var Ft=class{constructor(e){this.globalMiddleware=[],this.frozens=[],this.yargs=e}addMiddleware(e,t,n=!0,r=!1){if(P(`<array|function> [boolean] [boolean] [boolean]`,[e,t,n],arguments.length),Array.isArray(e)){for(let r=0;r<e.length;r++){if(typeof e[r]!=`function`)throw Error(`middleware must be a function`);let i=e[r];i.applyBeforeValidation=t,i.global=n}Array.prototype.push.apply(this.globalMiddleware,e)}else if(typeof e==`function`){let i=e;i.applyBeforeValidation=t,i.global=n,i.mutates=r,this.globalMiddleware.push(e)}return this.yargs}addCoerceMiddleware(e,t){let n=this.yargs.getAliases();return this.globalMiddleware=this.globalMiddleware.filter(e=>{let r=[...n[t]||[],t];return e.option?!r.includes(e.option):!0}),e.option=t,this.addMiddleware(e,!0,!0,!0)}getMiddleware(){return this.globalMiddleware}freeze(){this.frozens.push([...this.globalMiddleware])}unfreeze(){let e=this.frozens.pop();e!==void 0&&(this.globalMiddleware=e)}reset(){this.globalMiddleware=this.globalMiddleware.filter(e=>e.global)}};function It(e){return e?e.map(e=>(e.applyBeforeValidation=!1,e)):[]}function Lt(e,t,n,r){return n.reduce((e,n)=>{if(n.applyBeforeValidation!==r)return e;if(n.mutates){if(n.applied)return e;n.applied=!0}if(M(e))return e.then(e=>Promise.all([e,n(e,t)])).then(([e,t])=>Object.assign(e,t));{let r=n(e,t);return M(r)?r.then(t=>Object.assign(e,t)):Object.assign(e,r)}},e)}function Rt(e,t,n=e=>{throw e}){try{let n=zt(e)?e():e;return M(n)?n.then(e=>t(e)):t(n)}catch(e){return n(e)}}function zt(e){return typeof e==`function`}const Bt=/(^\*)|(^\$0)/;var Vt=class{constructor(e,t,n,r){this.requireCache=new Set,this.handlers={},this.aliasMap={},this.frozens=[],this.shim=r,this.usage=e,this.globalMiddleware=n,this.validation=t}addDirectory(e,t,n,r){r||={},this.requireCache.add(n);let i=this.shim.path.resolve(this.shim.path.dirname(n),e),a=this.shim.readdirSync(i,{recursive:!!r.recurse});Array.isArray(r.extensions)||(r.extensions=[`js`]);let o=typeof r.visit==`function`?r.visit:e=>e;for(let e of a){let n=e.toString();if(r.exclude){let e=!1;if(e=typeof r.exclude==`function`?r.exclude(n):r.exclude.test(n),e)continue}if(r.include){let e=!1;if(e=typeof r.include==`function`?r.include(n):r.include.test(n),!e)continue}let a=!1;for(let e of r.extensions)n.endsWith(e)&&(a=!0);if(a){let e=this.shim.path.join(i,n),r=t(e),a=Object.create(null,Object.getOwnPropertyDescriptors({...r}));if(o(a,e,n)){if(this.requireCache.has(e))continue;this.requireCache.add(e),a.command||=this.shim.path.basename(e,this.shim.path.extname(e)),this.addHandler(a)}}}}addHandler(e,t,n,r,i,a){let o=[],s=It(i);if(r||=(()=>{}),Array.isArray(e))if(Wt(e))[e,...o]=e;else for(let t of e)this.addHandler(t);else if(qt(e)){let t=Array.isArray(e.command)||typeof e.command==`string`?e.command:null;if(t===null)throw Error(`No command name given for module: ${this.shim.inspect(e)}`);e.aliases&&(t=[].concat(t,e.aliases)),this.addHandler(t,this.extractDesc(e),e.builder,e.handler,e.middlewares,e.deprecated);return}else if(Ut(n)){this.addHandler([e].concat(o),t,n.builder,n.handler,n.middlewares,n.deprecated);return}if(typeof e==`string`){let i=jt(e);o=o.map(e=>jt(e).cmd);let c=!1,l=[i.cmd].concat(o).filter(e=>Bt.test(e)?(c=!0,!1):!0);l.length===0&&c&&l.push(`$0`),c&&(i.cmd=l[0],o=l.slice(1),e=e.replace(Bt,i.cmd)),o.forEach(e=>{this.aliasMap[e]=i.cmd}),t!==!1&&this.usage.command(e,t,c,o,a),this.handlers[i.cmd]={original:e,description:t,handler:r,builder:n||{},middlewares:s,deprecated:a,demanded:i.demanded,optional:i.optional},c&&(this.defaultCommand=this.handlers[i.cmd])}}getCommandHandlers(){return this.handlers}getCommands(){return Object.keys(this.handlers).concat(Object.keys(this.aliasMap))}hasDefaultCommand(){return!!this.defaultCommand}runCommand(e,t,n,r,i,a){let o=this.handlers[e]||this.handlers[this.aliasMap[e]]||this.defaultCommand,s=t.getInternalMethods().getContext(),c=s.commands.slice(),l=!e;e&&(s.commands.push(e),s.fullCommands.push(o.original));let u=this.applyBuilderUpdateUsageAndParse(l,o,t,n.aliases,c,r,i,a);return M(u)?u.then(e=>this.applyMiddlewareAndGetResult(l,o,e.innerArgv,s,i,e.aliases,t)):this.applyMiddlewareAndGetResult(l,o,u.innerArgv,s,i,u.aliases,t)}applyBuilderUpdateUsageAndParse(e,t,n,r,i,a,o,s){let c=t.builder,l=n;if(Gt(c)){n.getInternalMethods().getUsageInstance().freeze();let u=c(n.getInternalMethods().reset(r),s);if(M(u))return u.then(r=>(l=vr(r)?r:n,this.parseAndUpdateUsage(e,t,l,i,a,o)))}else Kt(c)&&(n.getInternalMethods().getUsageInstance().freeze(),l=n.getInternalMethods().reset(r),Object.keys(t.builder).forEach(e=>{l.option(e,c[e])}));return this.parseAndUpdateUsage(e,t,l,i,a,o)}parseAndUpdateUsage(e,t,n,r,i,a){e&&n.getInternalMethods().getUsageInstance().unfreeze(!0),this.shouldUpdateUsage(n)&&n.getInternalMethods().getUsageInstance().usage(this.usageFromParentCommandsCommandHandler(r,t),t.description);let o=n.getInternalMethods().runYargsParserAndExecuteCommands(null,void 0,!0,i,a);return M(o)?o.then(e=>({aliases:n.parsed.aliases,innerArgv:e})):{aliases:n.parsed.aliases,innerArgv:o}}shouldUpdateUsage(e){return!e.getInternalMethods().getUsageInstance().getUsageDisabled()&&e.getInternalMethods().getUsageInstance().getUsage().length===0}usageFromParentCommandsCommandHandler(e,t){let n=Bt.test(t.original)?t.original.replace(Bt,``).trim():t.original,r=e.filter(e=>!Bt.test(e));return r.push(n),`$0 ${r.join(` `)}`}handleValidationAndGetResult(e,t,n,r,i,a,o,s){if(!a.getInternalMethods().getHasOutput()){let t=a.getInternalMethods().runValidation(i,s,a.parsed.error,e);n=Rt(n,e=>(t(e),e))}if(t.handler&&!a.getInternalMethods().getHasOutput()){a.getInternalMethods().setHasOutput();let r=!!a.getOptions().configuration[`populate--`];a.getInternalMethods().postProcess(n,r,!1,!1),n=Lt(n,a,o,!1),n=Rt(n,e=>{let n=t.handler(e);return M(n)?n.then(()=>e):e}),e||a.getInternalMethods().getUsageInstance().cacheHelpMessage(),M(n)&&!a.getInternalMethods().hasParseCallback()&&n.catch(e=>{try{a.getInternalMethods().getUsageInstance().fail(null,e)}catch{}})}return e||(r.commands.pop(),r.fullCommands.pop()),n}applyMiddlewareAndGetResult(e,t,n,r,i,a,o){let s={};if(i)return n;o.getInternalMethods().getHasOutput()||(s=this.populatePositionals(t,n,r,o));let c=this.globalMiddleware.getMiddleware().slice(0).concat(t.middlewares),l=Lt(n,o,c,!0);return M(l)?l.then(n=>this.handleValidationAndGetResult(e,t,n,r,a,o,c,s)):this.handleValidationAndGetResult(e,t,l,r,a,o,c,s)}populatePositionals(e,t,n,r){t._=t._.slice(n.commands.length);let i=e.demanded.slice(0),a=e.optional.slice(0),o={};for(this.validation.positionalCount(i.length,t._.length);i.length;){let e=i.shift();this.populatePositional(e,t,o)}for(;a.length;){let e=a.shift();this.populatePositional(e,t,o)}return t._=n.commands.concat(t._.map(e=>``+e)),this.postProcessPositionals(t,o,this.cmdToParseOptions(e.original),r),o}populatePositional(e,t,n){let r=e.cmd[0];e.variadic?n[r]=t._.splice(0).map(String):t._.length&&(n[r]=[String(t._.shift())])}cmdToParseOptions(e){let t={array:[],default:{},alias:{},demand:{}},n=jt(e);return n.demanded.forEach(e=>{let[n,...r]=e.cmd;e.variadic&&(t.array.push(n),t.default[n]=[]),t.alias[n]=r,t.demand[n]=!0}),n.optional.forEach(e=>{let[n,...r]=e.cmd;e.variadic&&(t.array.push(n),t.default[n]=[]),t.alias[n]=r}),t}postProcessPositionals(e,t,n,r){let i=Object.assign({},r.getOptions());i.default=Object.assign(n.default,i.default);for(let e of Object.keys(n.alias))i.alias[e]=(i.alias[e]||[]).concat(n.alias[e]);i.array=i.array.concat(n.array),i.config={};let a=[];if(Object.keys(t).forEach(e=>{t[e].map(t=>{i.configuration[`unknown-options-as-args`]&&(i.key[e]=!0),a.push(`--${e}`),a.push(t)})}),!a.length)return;let o=Object.assign({},i.configuration,{"populate--":!1}),s=this.shim.Parser.detailed(a,Object.assign({},i,{configuration:o}));if(s.error)r.getInternalMethods().getUsageInstance().fail(s.error.message,s.error);else{let n=Object.keys(t);Object.keys(t).forEach(e=>{n.push(...s.aliases[e])}),Object.keys(s.argv).forEach(i=>{n.includes(i)&&(t[i]||(t[i]=s.argv[i]),!this.isInConfigs(r,i)&&!this.isDefaulted(r,i)&&Object.prototype.hasOwnProperty.call(e,i)&&Object.prototype.hasOwnProperty.call(s.argv,i)&&(Array.isArray(e[i])||Array.isArray(s.argv[i]))?e[i]=[].concat(e[i],s.argv[i]):e[i]=s.argv[i])})}}isDefaulted(e,t){let{default:n}=e.getOptions();return Object.prototype.hasOwnProperty.call(n,t)||Object.prototype.hasOwnProperty.call(n,this.shim.Parser.camelCase(t))}isInConfigs(e,t){let{configObjects:n}=e.getOptions();return n.some(e=>Object.prototype.hasOwnProperty.call(e,t))||n.some(e=>Object.prototype.hasOwnProperty.call(e,this.shim.Parser.camelCase(t)))}runDefaultBuilderOn(e){if(!this.defaultCommand)return;if(this.shouldUpdateUsage(e)){let t=Bt.test(this.defaultCommand.original)?this.defaultCommand.original:this.defaultCommand.original.replace(/^[^[\]<>]*/,`$0 `);e.getInternalMethods().getUsageInstance().usage(t,this.defaultCommand.description)}let t=this.defaultCommand.builder;if(Gt(t))return t(e,!0);Ut(t)||Object.keys(t).forEach(n=>{e.option(n,t[n])})}extractDesc({describe:e,description:t,desc:n}){for(let r of[e,t,n]){if(typeof r==`string`||r===!1)return r;j(r,!0,this.shim)}return!1}freeze(){this.frozens.push({handlers:this.handlers,aliasMap:this.aliasMap,defaultCommand:this.defaultCommand})}unfreeze(){let e=this.frozens.pop();j(e,void 0,this.shim),{handlers:this.handlers,aliasMap:this.aliasMap,defaultCommand:this.defaultCommand}=e}reset(){return this.handlers={},this.aliasMap={},this.defaultCommand=void 0,this.requireCache=new Set,this}};function Ht(e,t,n,r){return new Vt(e,t,n,r)}function Ut(e){return typeof e==`object`&&!!e.builder&&typeof e.handler==`function`}function Wt(e){return e.every(e=>typeof e==`string`)}function Gt(e){return typeof e==`function`}function Kt(e){return typeof e==`object`}function qt(e){return typeof e==`object`&&!Array.isArray(e)}function Jt(e={},t=()=>!0){let n={};return At(e).forEach(r=>{t(r,e[r])&&(n[r]=e[r])}),n}function Yt(e){typeof process>`u`||[process.stdout,process.stderr].forEach(t=>{let n=t;n._handle&&n.isTTY&&typeof n._handle.setBlocking==`function`&&n._handle.setBlocking(e)})}function Xt(e){return typeof e==`boolean`}function Zt(e,t){let n=t.y18n.__,r={},i=[];r.failFn=function(e){i.push(e)};let a=null,o=null,s=!0;r.showHelpOnFail=function(t=!0,n){let[i,c]=typeof t==`string`?[!0,t]:[t,n];return e.getInternalMethods().isGlobalContext()&&(o=c),a=c,s=i,r};let c=!1;r.fail=function(t,n){let l=e.getInternalMethods().getLoggerInstance();if(i.length)for(let e=i.length-1;e>=0;--e){let a=i[e];if(Xt(a)){if(n)throw n;if(t)throw Error(t)}else a(t,n,r)}else{if(e.getExitProcess()&&Yt(!0),!c){c=!0,s&&(e.showHelp(`error`),l.error()),(t||n)&&l.error(t||n);let r=a||o;r&&((t||n)&&l.error(``),l.error(r))}if(n||=new N(t),e.getExitProcess())return e.exit(1);if(e.getInternalMethods().hasParseCallback())return e.exit(1,n);throw n}};let l=[],u=!1;r.usage=(e,t)=>e===null?(u=!0,l=[],r):(u=!1,l.push([e,t||``]),r),r.getUsage=()=>l,r.getUsageDisabled=()=>u,r.getPositionalGroupName=()=>n(`Positionals:`);let d=[];r.example=(e,t)=>{d.push([e,t||``])};let f=[];r.command=function(e,t,n,r,i=!1){n&&(f=f.map(e=>(e[2]=!1,e))),f.push([e,t||``,n,r,i])},r.getCommands=()=>f;let p={};r.describe=function(e,t){Array.isArray(e)?e.forEach(e=>{r.describe(e,t)}):typeof e==`object`?Object.keys(e).forEach(t=>{r.describe(t,e[t])}):p[e]=t},r.getDescriptions=()=>p;let m=[];r.epilog=e=>{m.push(e)};let h=!1,g;r.wrap=e=>{h=!0,g=e},r.getWrap=()=>t.getEnv(`YARGS_DISABLE_WRAP`)?null:(h||=(g=b(),!0),g);let ee=`__yargsString__:`;r.deferY18nLookup=e=>ee+e,r.help=function(){if(y)return y;v();let i=e.customScriptName?e.$0:t.path.basename(e.$0),a=e.getDemandedOptions(),o=e.getDemandedCommands(),s=e.getDeprecatedOptions(),c=e.getGroups(),h=e.getOptions(),g=[];g=g.concat(Object.keys(p)),g=g.concat(Object.keys(a)),g=g.concat(Object.keys(o)),g=g.concat(Object.keys(h.default)),g=g.filter(ne),g=Object.keys(g.reduce((e,t)=>(t!==`_`&&(e[t]=!0),e),{}));let b=r.getWrap(),x=t.cliui({width:b,wrap:!!b});if(!u){if(l.length)l.forEach(e=>{x.div({text:`${e[0].replace(/\$0/g,i)}`}),e[1]&&x.div({text:`${e[1]}`,padding:[1,0,0,0]})}),x.div();else if(f.length){let e=null;e=o._?`${i} <${n(`command`)}>\n`:`${i} [${n(`command`)}]\n`,x.div(`${e}`)}}if(f.length>1||f.length===1&&!f[0][2]){x.div(n(`Commands:`));let t=e.getInternalMethods().getContext(),r=t.commands.length?`${t.commands.join(` `)} `:``;e.getInternalMethods().getParserConfiguration()[`sort-commands`]===!0&&(f=f.sort((e,t)=>e[0].localeCompare(t[0])));let a=i?`${i} `:``;f.forEach(e=>{let t=`${a}${r}${e[0].replace(/^\$0 ?/,``)}`;x.span({text:t,padding:[0,2,0,2],width:_(f,b,`${i}${r}`)+4},{text:e[1]});let o=[];e[2]&&o.push(`[${n(`default`)}]`),e[3]&&e[3].length&&o.push(`[${n(`aliases:`)} ${e[3].join(`, `)}]`),e[4]&&(typeof e[4]==`string`?o.push(`[${n(`deprecated: %s`,e[4])}]`):o.push(`[${n(`deprecated`)}]`)),o.length?x.div({text:o.join(` `),padding:[0,0,0,2],align:`right`}):x.div()}),x.div()}let S=(Object.keys(h.alias)||[]).concat(Object.keys(e.parsed.newAliases)||[]);g=g.filter(t=>!e.parsed.newAliases[t]&&S.every(e=>(h.alias[e]||[]).indexOf(t)===-1));let ie=n(`Options:`);c[ie]||(c[ie]=[]),te(g,h.alias,c,ie);let C=e=>/^--/.test(tn(e)),ae=Object.keys(c).filter(e=>c[e].length>0).map(e=>({groupName:e,normalizedKeys:c[e].filter(ne).map(e=>{if(S.includes(e))return e;for(let t=0,n;(n=S[t])!==void 0;t++)if((h.alias[n]||[]).includes(e))return n;return e})})).filter(({normalizedKeys:e})=>e.length>0).map(({groupName:e,normalizedKeys:t})=>({groupName:e,normalizedKeys:t,switches:t.reduce((t,n)=>(t[n]=[n].concat(h.alias[n]||[]).map(t=>e===r.getPositionalGroupName()?t:(/^[0-9]$/.test(t)?h.boolean.includes(n)?`-`:`--`:t.length>1?`--`:`-`)+t).sort((e,t)=>C(e)===C(t)?0:C(e)?1:-1).join(`, `),t),{})}));if(ae.filter(({groupName:e})=>e!==r.getPositionalGroupName()).some(({normalizedKeys:e,switches:t})=>!e.every(e=>C(t[e])))&&ae.filter(({groupName:e})=>e!==r.getPositionalGroupName()).forEach(({normalizedKeys:e,switches:t})=>{e.forEach(e=>{C(t[e])&&(t[e]=$t(t[e],4))})}),ae.forEach(({groupName:t,normalizedKeys:i,switches:o})=>{x.div(t),i.forEach(t=>{let i=o[t],c=p[t]||``,l=null;c.includes(ee)&&(c=n(c.substring(16))),h.boolean.includes(t)&&(l=`[${n(`boolean`)}]`),h.count.includes(t)&&(l=`[${n(`count`)}]`),h.string.includes(t)&&(l=`[${n(`string`)}]`),h.normalize.includes(t)&&(l=`[${n(`string`)}]`),h.array.includes(t)&&(l=`[${n(`array`)}]`),h.number.includes(t)&&(l=`[${n(`number`)}]`);let u=[t in s?(e=>typeof e==`string`?`[${n(`deprecated: %s`,e)}]`:`[${n(`deprecated`)}]`)(s[t]):null,l,t in a?`[${n(`required`)}]`:null,h.choices&&h.choices[t]?`[${n(`choices:`)} ${r.stringifiedValues(h.choices[t])}]`:null,re(h.default[t],h.defaultDescription[t])].filter(Boolean).join(` `);x.span({text:tn(i),padding:[0,2,0,2+en(i)],width:_(o,b)+4},c);let d=e.getInternalMethods().getUsageConfiguration()[`hide-types`]===!0;u&&!d?x.div({text:u,padding:[0,0,0,2],align:`right`}):x.div()}),x.div()}),d.length&&(x.div(n(`Examples:`)),d.forEach(e=>{e[0]=e[0].replace(/\$0/g,i)}),d.forEach(e=>{e[1]===``?x.div({text:e[0],padding:[0,2,0,2]}):x.div({text:e[0],padding:[0,2,0,2],width:_(d,b)+4},{text:e[1]})}),x.div()),m.length>0){let e=m.map(e=>e.replace(/\$0/g,i)).join(`
|
|
38
|
-
`);x.div(`${e}\n`)}return x.toString().replace(/\s*$/,``)};function _(e,n,r){let i=0;return Array.isArray(e)||(e=Object.values(e).map(e=>[e])),e.forEach(e=>{i=Math.max(t.stringWidth(r?`${r} ${tn(e[0])}`:tn(e[0]))+en(e[0]),i)}),n&&(i=Math.min(i,parseInt((n*.5).toString(),10))),i}function v(){let t=e.getDemandedOptions(),n=e.getOptions();(Object.keys(n.alias)||[]).forEach(i=>{n.alias[i].forEach(a=>{p[a]&&r.describe(i,p[a]),a in t&&e.demandOption(i,t[a]),n.boolean.includes(a)&&e.boolean(i),n.count.includes(a)&&e.count(i),n.string.includes(a)&&e.string(i),n.normalize.includes(a)&&e.normalize(i),n.array.includes(a)&&e.array(i),n.number.includes(a)&&e.number(i)})})}let y;r.cacheHelpMessage=function(){y=this.help()},r.clearCachedHelpMessage=function(){y=void 0},r.hasCachedHelpMessage=function(){return!!y};function te(e,t,n,r){let i=[],a=null;return Object.keys(n).forEach(e=>{i=i.concat(n[e])}),e.forEach(e=>{a=[e].concat(t[e]),a.some(e=>i.indexOf(e)!==-1)||n[r].push(e)}),i}function ne(t){return e.getOptions().hiddenOptions.indexOf(t)<0||e.parsed.argv[e.getOptions().showHiddenOpt]}r.showHelp=t=>{let n=e.getInternalMethods().getLoggerInstance();t||=`error`,(typeof t==`function`?t:n[t])(r.help())},r.functionDescription=e=>[`(`,e.name?t.Parser.decamelize(e.name,`-`):n(`generated-value`),`)`].join(``),r.stringifiedValues=function(e,t){let n=``,r=t||`, `,i=[].concat(e);return!e||!i.length||i.forEach(e=>{n.length&&(n+=r),n+=JSON.stringify(e)}),n};function re(e,t){let r=`[${n(`default:`)} `;if(e===void 0&&!t)return null;if(t)r+=t;else switch(typeof e){case`string`:r+=`"${e}"`;break;case`object`:r+=JSON.stringify(e);break;default:r+=e}return`${r}]`}function b(){return t.process.stdColumns?Math.min(80,t.process.stdColumns):80}let x=null;r.version=e=>{x=e},r.showVersion=t=>{let n=e.getInternalMethods().getLoggerInstance();t||=`error`,(typeof t==`function`?t:n[t])(x)},r.reset=function(e){return a=null,c=!1,l=[],u=!1,m=[],d=[],f=[],p=Jt(p,t=>!e[t]),r};let S=[];return r.freeze=function(){S.push({failMessage:a,failureOutput:c,usages:l,usageDisabled:u,epilogs:m,examples:d,commands:f,descriptions:p})},r.unfreeze=function(e=!1){let t=S.pop();t&&(e?(p={...t.descriptions,...p},f=[...t.commands,...f],l=[...t.usages,...l],d=[...t.examples,...d],m=[...t.epilogs,...m]):{failMessage:a,failureOutput:c,usages:l,usageDisabled:u,epilogs:m,examples:d,commands:f,descriptions:p}=t)},r}function Qt(e){return typeof e==`object`}function $t(e,t){return Qt(e)?{text:e.text,indentation:e.indentation+t}:{text:e,indentation:t}}function en(e){return Qt(e)?e.indentation:0}function tn(e){return Qt(e)?e.text:e}var nn=class{constructor(e,t,n,r){this.yargs=e,this.usage=t,this.command=n,this.shim=r,this.completionKey=`get-yargs-completions`,this.aliases=null,this.customCompletionFunction=null,this.indexAfterLastReset=0,this.zshShell=(this.shim.getEnv(`SHELL`)?.includes(`zsh`)||this.shim.getEnv(`ZSH_NAME`)?.includes(`zsh`))??!1}defaultCompletion(e,t,n,r){let i=this.command.getCommandHandlers();for(let t=0,n=e.length;t<n;++t)if(i[e[t]]&&i[e[t]].builder){let n=i[e[t]].builder;if(Gt(n)){this.indexAfterLastReset=t+1;let e=this.yargs.getInternalMethods().reset();return n(e,!0),e.argv}}let a=[];this.commandCompletions(a,e,n),this.optionCompletions(a,e,t,n),this.choicesFromOptionsCompletions(a,e,t,n),this.choicesFromPositionalsCompletions(a,e,t,n),r(null,a)}commandCompletions(e,t,n){let r=this.yargs.getInternalMethods().getContext().commands;!n.match(/^-/)&&r[r.length-1]!==n&&!this.previousArgHasChoices(t)&&this.usage.getCommands().forEach(n=>{let r=jt(n[0]).cmd;if(t.indexOf(r)===-1)if(!this.zshShell)e.push(r);else{let t=n[1]||``;e.push(r.replace(/:/g,`\\:`)+`:`+t)}})}optionCompletions(e,t,n,r){if((r.match(/^-/)||r===``&&e.length===0)&&!this.previousArgHasChoices(t)){let n=this.yargs.getOptions(),i=this.yargs.getGroups()[this.usage.getPositionalGroupName()]||[];Object.keys(n.key).forEach(a=>{let o=!!n.configuration[`boolean-negation`]&&n.boolean.includes(a);!i.includes(a)&&!n.hiddenOptions.includes(a)&&!this.argsContainKey(t,a,o)&&this.completeOptionKey(a,e,r,o&&!!n.default[a])})}}choicesFromOptionsCompletions(e,t,n,r){if(this.previousArgHasChoices(t)){let n=this.getPreviousArgChoices(t);n&&n.length>0&&e.push(...n.map(e=>e.replace(/:/g,`\\:`)))}}choicesFromPositionalsCompletions(e,t,n,r){if(r===``&&e.length>0&&this.previousArgHasChoices(t))return;let i=this.yargs.getGroups()[this.usage.getPositionalGroupName()]||[],a=Math.max(this.indexAfterLastReset,this.yargs.getInternalMethods().getContext().commands.length+1),o=i[n._.length-a-1];if(!o)return;let s=this.yargs.getOptions().choices[o]||[];for(let t of s)t.startsWith(r)&&e.push(t.replace(/:/g,`\\:`))}getPreviousArgChoices(e){if(e.length<1)return;let t=e[e.length-1],n=``;if(!t.startsWith(`-`)&&e.length>1&&(n=t,t=e[e.length-2]),!t.startsWith(`-`))return;let r=t.replace(/^-+/,``),i=this.yargs.getOptions(),a=[r,...this.yargs.getAliases()[r]||[]],o;for(let e of a)if(Object.prototype.hasOwnProperty.call(i.key,e)&&Array.isArray(i.choices[e])){o=i.choices[e];break}if(o)return o.filter(e=>!n||e.startsWith(n))}previousArgHasChoices(e){let t=this.getPreviousArgChoices(e);return t!==void 0&&t.length>0}argsContainKey(e,t,n){let r=t=>e.indexOf((/^[^0-9]$/.test(t)?`-`:`--`)+t)!==-1;if(r(t)||n&&r(`no-${t}`))return!0;if(this.aliases){for(let e of this.aliases[t])if(r(e))return!0}return!1}completeOptionKey(e,t,n,r){let i=e;if(this.zshShell){let t=this.usage.getDescriptions(),n=((this===null||this===void 0?void 0:this.aliases)?.[e])?.find(e=>{let n=t[e];return typeof n==`string`&&n.length>0}),r=n?t[n]:void 0,a=t[e]??r??``;i=`${e.replace(/:/g,`\\:`)}:${a.replace(`__yargsString__:`,``).replace(/(\r\n|\n|\r)/gm,` `)}`}let a=!(e=>/^--/.test(e))(n)&&(e=>/^[^0-9]$/.test(e))(e)?`-`:`--`;t.push(a+i),r&&t.push(a+`no-`+i)}customCompletion(e,t,n,r){if(j(this.customCompletionFunction,null,this.shim),an(this.customCompletionFunction)){let e=this.customCompletionFunction(n,t);return M(e)?e.then(e=>{this.shim.process.nextTick(()=>{r(null,e)})}).catch(e=>{this.shim.process.nextTick(()=>{r(e,void 0)})}):r(null,e)}else if(on(this.customCompletionFunction))return this.customCompletionFunction(n,t,(i=r)=>this.defaultCompletion(e,t,n,i),e=>{r(null,e)});else return this.customCompletionFunction(n,t,e=>{r(null,e)})}getCompletion(e,t){let n=e.length?e[e.length-1]:``,r=this.yargs.parse(e,!0),i=this.customCompletionFunction?r=>this.customCompletion(e,r,n,t):r=>this.defaultCompletion(e,r,n,t);return M(r)?r.then(i):i(r)}generateCompletionScript(e,t){let n=this.zshShell?`#compdef {{app_name}}
|
|
39
|
-
###-begin-{{app_name}}-completions-###
|
|
40
|
-
#
|
|
41
|
-
# yargs command completion script
|
|
42
|
-
#
|
|
43
|
-
# Installation: {{app_path}} {{completion_command}} >> ~/.zshrc
|
|
44
|
-
# or {{app_path}} {{completion_command}} >> ~/.zprofile on OSX.
|
|
45
|
-
#
|
|
46
|
-
_{{app_name}}_yargs_completions()
|
|
47
|
-
{
|
|
48
|
-
local reply
|
|
49
|
-
local si=$IFS
|
|
50
|
-
IFS=$'
|
|
51
|
-
' reply=($(COMP_CWORD="$((CURRENT-1))" COMP_LINE="$BUFFER" COMP_POINT="$CURSOR" {{app_path}} --get-yargs-completions "\${words[@]}"))
|
|
52
|
-
IFS=$si
|
|
53
|
-
if [[ \${#reply} -gt 0 ]]; then
|
|
54
|
-
_describe 'values' reply
|
|
55
|
-
else
|
|
56
|
-
_default
|
|
57
|
-
fi
|
|
58
|
-
}
|
|
59
|
-
if [[ "'\${zsh_eval_context[-1]}" == "loadautofunc" ]]; then
|
|
60
|
-
_{{app_name}}_yargs_completions "$@"
|
|
61
|
-
else
|
|
62
|
-
compdef _{{app_name}}_yargs_completions {{app_name}}
|
|
63
|
-
fi
|
|
64
|
-
###-end-{{app_name}}-completions-###
|
|
65
|
-
`:`###-begin-{{app_name}}-completions-###
|
|
66
|
-
#
|
|
67
|
-
# yargs command completion script
|
|
68
|
-
#
|
|
69
|
-
# Installation: {{app_path}} {{completion_command}} >> ~/.bashrc
|
|
70
|
-
# or {{app_path}} {{completion_command}} >> ~/.bash_profile on OSX.
|
|
71
|
-
#
|
|
72
|
-
_{{app_name}}_yargs_completions()
|
|
73
|
-
{
|
|
74
|
-
local cur_word args type_list
|
|
75
|
-
|
|
76
|
-
cur_word="\${COMP_WORDS[COMP_CWORD]}"
|
|
77
|
-
args=("\${COMP_WORDS[@]}")
|
|
78
|
-
|
|
79
|
-
# ask yargs to generate completions.
|
|
80
|
-
# see https://stackoverflow.com/a/40944195/7080036 for the spaces-handling awk
|
|
81
|
-
mapfile -t type_list < <({{app_path}} --get-yargs-completions "\${args[@]}")
|
|
82
|
-
mapfile -t COMPREPLY < <(compgen -W "$( printf '%q ' "\${type_list[@]}" )" -- "\${cur_word}" |
|
|
83
|
-
awk '/ / { print "\\""$0"\\"" } /^[^ ]+$/ { print $0 }')
|
|
84
|
-
|
|
85
|
-
# if no match was found, fall back to filename completion
|
|
86
|
-
if [ \${#COMPREPLY[@]} -eq 0 ]; then
|
|
87
|
-
COMPREPLY=()
|
|
88
|
-
fi
|
|
89
|
-
|
|
90
|
-
return 0
|
|
91
|
-
}
|
|
92
|
-
complete -o bashdefault -o default -F _{{app_name}}_yargs_completions {{app_name}}
|
|
93
|
-
###-end-{{app_name}}-completions-###
|
|
94
|
-
`,r=this.shim.path.basename(e);return e.match(/\.js$/)&&(e=`./${e}`),n=n.replace(/{{app_name}}/g,r),n=n.replace(/{{completion_command}}/g,t),n.replace(/{{app_path}}/g,e)}registerFunction(e){this.customCompletionFunction=e}setParsed(e){this.aliases=e.aliases}};function rn(e,t,n,r){return new nn(e,t,n,r)}function an(e){return e.length<3}function on(e){return e.length>3}function sn(e,t){if(e.length===0)return t.length;if(t.length===0)return e.length;let n=[],r;for(r=0;r<=t.length;r++)n[r]=[r];let i;for(i=0;i<=e.length;i++)n[0][i]=i;for(r=1;r<=t.length;r++)for(i=1;i<=e.length;i++)t.charAt(r-1)===e.charAt(i-1)?n[r][i]=n[r-1][i-1]:r>1&&i>1&&t.charAt(r-2)===e.charAt(i-1)&&t.charAt(r-1)===e.charAt(i-2)?n[r][i]=n[r-2][i-2]+1:n[r][i]=Math.min(n[r-1][i-1]+1,Math.min(n[r][i-1]+1,n[r-1][i]+1));return n[t.length][e.length]}const cn=[`$0`,`--`,`_`];function ln(e,t,n){let r=n.y18n.__,i=n.y18n.__n,a={};a.nonOptionCount=function(n){let r=e.getDemandedCommands(),a=n._.length+(n[`--`]?n[`--`].length:0)-e.getInternalMethods().getContext().commands.length;r._&&(a<r._.min||a>r._.max)&&(a<r._.min?r._.minMsg===void 0?t.fail(i(`Not enough non-option arguments: got %s, need at least %s`,`Not enough non-option arguments: got %s, need at least %s`,a,a.toString(),r._.min.toString())):t.fail(r._.minMsg?r._.minMsg.replace(/\$0/g,a.toString()).replace(/\$1/,r._.min.toString()):null):a>r._.max&&(r._.maxMsg===void 0?t.fail(i(`Too many non-option arguments: got %s, maximum of %s`,`Too many non-option arguments: got %s, maximum of %s`,a,a.toString(),r._.max.toString())):t.fail(r._.maxMsg?r._.maxMsg.replace(/\$0/g,a.toString()).replace(/\$1/,r._.max.toString()):null)))},a.positionalCount=function(e,n){n<e&&t.fail(i(`Not enough non-option arguments: got %s, need at least %s`,`Not enough non-option arguments: got %s, need at least %s`,n,n+``,e+``))},a.requiredArguments=function(e,n){let r=null;for(let t of Object.keys(n))(!Object.prototype.hasOwnProperty.call(e,t)||e[t]===void 0)&&(r||={},r[t]=n[t]);if(r){let e=[];for(let t of Object.keys(r)){let n=r[t];n&&e.indexOf(n)<0&&e.push(n)}let n=e.length?`\n${e.join(`
|
|
95
|
-
`)}`:``;t.fail(i(`Missing required argument: %s`,`Missing required arguments: %s`,Object.keys(r).length,Object.keys(r).join(`, `)+n))}},a.unknownArguments=function(n,r,o,s,c=!0){let l=e.getInternalMethods().getCommandInstance().getCommands(),u=[],d=e.getInternalMethods().getContext();if(Object.keys(n).forEach(t=>{!cn.includes(t)&&!Object.prototype.hasOwnProperty.call(o,t)&&!Object.prototype.hasOwnProperty.call(e.getInternalMethods().getParseContext(),t)&&!a.isValidAndSomeAliasIsNotNew(t,r)&&u.push(t)}),c&&(d.commands.length>0||l.length>0||s)&&n._.slice(d.commands.length).forEach(e=>{l.includes(``+e)||u.push(``+e)}),c){let t=e.getDemandedCommands()._?.max||0,r=d.commands.length+t;r<n._.length&&n._.slice(r).forEach(e=>{e=String(e),!d.commands.includes(e)&&!u.includes(e)&&u.push(e)})}u.length&&t.fail(i(`Unknown argument: %s`,`Unknown arguments: %s`,u.length,u.map(e=>e.trim()?e:`"${e}"`).join(`, `)))},a.unknownCommands=function(n){let r=e.getInternalMethods().getCommandInstance().getCommands(),a=[],o=e.getInternalMethods().getContext();return(o.commands.length>0||r.length>0)&&n._.slice(o.commands.length).forEach(e=>{r.includes(``+e)||a.push(``+e)}),a.length>0?(t.fail(i(`Unknown command: %s`,`Unknown commands: %s`,a.length,a.join(`, `))),!0):!1},a.isValidAndSomeAliasIsNotNew=function(t,n){if(!Object.prototype.hasOwnProperty.call(n,t))return!1;let r=e.parsed.newAliases;return[t,...n[t]].some(e=>!Object.prototype.hasOwnProperty.call(r,e)||!r[t])},a.limitedChoices=function(n){let i=e.getOptions(),a={};if(!Object.keys(i.choices).length)return;Object.keys(n).forEach(e=>{cn.indexOf(e)===-1&&Object.prototype.hasOwnProperty.call(i.choices,e)&&[].concat(n[e]).forEach(t=>{i.choices[e].indexOf(t)===-1&&t!==void 0&&(a[e]=(a[e]||[]).concat(t))})});let o=Object.keys(a);if(!o.length)return;let s=r(`Invalid values:`);o.forEach(e=>{s+=`\n ${r(`Argument: %s, Given: %s, Choices: %s`,e,t.stringifiedValues(a[e]),t.stringifiedValues(i.choices[e]))}`}),t.fail(s)};let o={};a.implies=function(t,r){P(`<string|object> [array|number|string]`,[t,r],arguments.length),typeof t==`object`?Object.keys(t).forEach(e=>{a.implies(e,t[e])}):(e.global(t),o[t]||(o[t]=[]),Array.isArray(r)?r.forEach(e=>a.implies(t,e)):(j(r,void 0,n),o[t].push(r)))},a.getImplied=function(){return o};function s(e,t){let n=Number(t);return t=isNaN(n)?t:n,typeof t==`number`?t=e._.length>=t:t.match(/^--no-.+/)?(t=t.match(/^--no-(.+)/)[1],t=!Object.prototype.hasOwnProperty.call(e,t)):t=Object.prototype.hasOwnProperty.call(e,t),t}a.implications=function(e){let n=[];if(Object.keys(o).forEach(t=>{let r=t;(o[t]||[]).forEach(t=>{let i=r,a=t;i=s(e,i),t=s(e,t),i&&!t&&n.push(` ${r} -> ${a}`)})}),n.length){let e=`${r(`Implications failed:`)}\n`;n.forEach(t=>{e+=t}),t.fail(e)}};let c={};a.conflicts=function(t,n){P(`<string|object> [array|string]`,[t,n],arguments.length),typeof t==`object`?Object.keys(t).forEach(e=>{a.conflicts(e,t[e])}):(e.global(t),c[t]||(c[t]=[]),Array.isArray(n)?n.forEach(e=>a.conflicts(t,e)):c[t].push(n))},a.getConflicting=()=>c,a.conflicting=function(i){Object.keys(i).forEach(e=>{c[e]&&c[e].forEach(n=>{n&&i[e]!==void 0&&i[n]!==void 0&&t.fail(r(`Arguments %s and %s are mutually exclusive`,e,n))})}),e.getInternalMethods().getParserConfiguration()[`strip-dashed`]&&Object.keys(c).forEach(e=>{c[e].forEach(a=>{a&&i[n.Parser.camelCase(e)]!==void 0&&i[n.Parser.camelCase(a)]!==void 0&&t.fail(r(`Arguments %s and %s are mutually exclusive`,e,a))})})},a.recommendCommands=function(e,n){n=n.sort((e,t)=>t.length-e.length);let i=null,a=1/0;for(let t=0,r;(r=n[t])!==void 0;t++){let t=sn(e,r);t<=3&&t<a&&(a=t,i=r)}i&&t.fail(r(`Did you mean %s?`,i))},a.reset=function(e){return o=Jt(o,t=>!e[t]),c=Jt(c,t=>!e[t]),a};let l=[];return a.freeze=function(){l.push({implied:o,conflicting:c})},a.unfreeze=function(){let e=l.pop();j(e,void 0,n),{implied:o,conflicting:c}=e},a}let un=[],dn;function fn(e,t,n,r){dn=r;let i={};if(Object.prototype.hasOwnProperty.call(e,`extends`)){if(typeof e.extends!=`string`)return i;let a=/\.json|\..*rc$/.test(e.extends),o=null;if(a)o=mn(t,e.extends);else try{o=import.meta.resolve(e.extends)}catch{return e}pn(o),un.push(o),i=a?JSON.parse(dn.readFileSync(o,`utf8`)):r.require(e.extends),delete e.extends,i=fn(i,dn.path.dirname(o),n,dn)}return un=[],n?hn(i,e):Object.assign({},i,e)}function pn(e){if(un.indexOf(e)>-1)throw new N(`Circular extended configurations: '${e}'.`)}function mn(e,t){return dn.path.resolve(e,t)}function hn(e,t){let n={};function r(e){return e&&typeof e==`object`&&!Array.isArray(e)}Object.assign(n,e);for(let i of Object.keys(t))r(t[i])&&r(n[i])?n[i]=hn(e[i],t[i]):n[i]=t[i];return n}var F=function(e,t,n,r,i){if(r===`m`)throw TypeError(`Private method is not writable`);if(r===`a`&&!i)throw TypeError(`Private accessor was defined without a setter`);if(typeof t==`function`?e!==t||!i:!t.has(e))throw TypeError(`Cannot write private member to an object whose class did not declare it`);return r===`a`?i.call(e,n):i?i.value=n:t.set(e,n),n},I=function(e,t,n,r){if(n===`a`&&!r)throw TypeError(`Private accessor was defined without a getter`);if(typeof t==`function`?e!==t||!r:!t.has(e))throw TypeError(`Cannot read private member from an object whose class did not declare it`);return n===`m`?r:n===`a`?r.call(e):r?r.value:t.get(e)},L,gn,_n,R,z,vn,B,yn,bn,V,xn,H,U,W,G,Sn,Cn,K,q,wn,Tn,J,En,Dn,On,Y,kn,X,An,jn,Mn,Z,Nn,Q,$;function Pn(e){return(t=[],n=e.process.cwd(),r)=>{let i=new _r(t,n,r,e);return Object.defineProperty(i,`argv`,{get:()=>i.parse(),enumerable:!0}),i.help(),i.version(),i}}const Fn=Symbol(`copyDoubleDash`),In=Symbol(`copyDoubleDash`),Ln=Symbol(`deleteFromParserHintObject`),Rn=Symbol(`emitWarning`),zn=Symbol(`freeze`),Bn=Symbol(`getDollarZero`),Vn=Symbol(`getParserConfiguration`),Hn=Symbol(`getUsageConfiguration`),Un=Symbol(`guessLocale`),Wn=Symbol(`guessVersion`),Gn=Symbol(`parsePositionalNumbers`),Kn=Symbol(`pkgUp`),qn=Symbol(`populateParserHintArray`),Jn=Symbol(`populateParserHintSingleValueDictionary`),Yn=Symbol(`populateParserHintArrayDictionary`),Xn=Symbol(`populateParserHintDictionary`),Zn=Symbol(`sanitizeKey`),Qn=Symbol(`setKey`),$n=Symbol(`unfreeze`),er=Symbol(`validateAsync`),tr=Symbol(`getCommandInstance`),nr=Symbol(`getContext`),rr=Symbol(`getHasOutput`),ir=Symbol(`getLoggerInstance`),ar=Symbol(`getParseContext`),or=Symbol(`getUsageInstance`),sr=Symbol(`getValidationInstance`),cr=Symbol(`hasParseCallback`),lr=Symbol(`isGlobalContext`),ur=Symbol(`postProcess`),dr=Symbol(`rebase`),fr=Symbol(`reset`),pr=Symbol(`runYargsParserAndExecuteCommands`),mr=Symbol(`runValidation`),hr=Symbol(`setHasOutput`),gr=Symbol(`kTrackManuallySetKeys`);var _r=class{constructor(e=[],t,n,r){this.customScriptName=!1,this.parsed=!1,L.set(this,void 0),gn.set(this,void 0),_n.set(this,{commands:[],fullCommands:[]}),R.set(this,null),z.set(this,null),vn.set(this,`show-hidden`),B.set(this,null),yn.set(this,!0),bn.set(this,{}),V.set(this,!0),xn.set(this,[]),H.set(this,void 0),U.set(this,{}),W.set(this,!1),G.set(this,null),Sn.set(this,!0),Cn.set(this,void 0),K.set(this,``),q.set(this,void 0),wn.set(this,void 0),Tn.set(this,{}),J.set(this,null),En.set(this,null),Dn.set(this,{}),On.set(this,{}),Y.set(this,void 0),kn.set(this,!1),X.set(this,void 0),An.set(this,!1),jn.set(this,!1),Mn.set(this,!1),Z.set(this,void 0),Nn.set(this,{}),Q.set(this,null),$.set(this,void 0),F(this,X,r,`f`),F(this,Y,e,`f`),F(this,gn,t,`f`),F(this,wn,n,`f`),F(this,H,new Ft(this),`f`),this.$0=this[Bn](),this[fr](),F(this,L,I(this,L,`f`),`f`),F(this,Z,I(this,Z,`f`),`f`),F(this,$,I(this,$,`f`),`f`),F(this,q,I(this,q,`f`),`f`),I(this,q,`f`).showHiddenOpt=I(this,vn,`f`),F(this,Cn,this[In](),`f`),I(this,X,`f`).y18n.setLocale(`en_US`)}addHelpOpt(e,t){return P(`[string|boolean] [string]`,[e,t],arguments.length),I(this,G,`f`)&&(this[Ln](I(this,G,`f`)),F(this,G,null,`f`)),e===!1&&t===void 0?this:(F(this,G,typeof e==`string`?e:`help`,`f`),this.boolean(I(this,G,`f`)),this.describe(I(this,G,`f`),t||I(this,Z,`f`).deferY18nLookup(`Show help`)),this)}help(e,t){return this.addHelpOpt(e,t)}addShowHiddenOpt(e,t){if(P(`[string|boolean] [string]`,[e,t],arguments.length),e===!1&&t===void 0)return this;let n=typeof e==`string`?e:I(this,vn,`f`);return this.boolean(n),this.describe(n,t||I(this,Z,`f`).deferY18nLookup(`Show hidden options`)),I(this,q,`f`).showHiddenOpt=n,this}showHidden(e,t){return this.addShowHiddenOpt(e,t)}alias(e,t){return P(`<object|string|array> [string|array]`,[e,t],arguments.length),this[Yn](this.alias.bind(this),`alias`,e,t),this}array(e){return P(`<array|string>`,[e],arguments.length),this[qn](`array`,e),this[gr](e),this}boolean(e){return P(`<array|string>`,[e],arguments.length),this[qn](`boolean`,e),this[gr](e),this}check(e,t){return P(`<function> [boolean]`,[e,t],arguments.length),this.middleware((t,n)=>Rt(()=>e(t,n.getOptions()),n=>(n?(typeof n==`string`||n instanceof Error)&&I(this,Z,`f`).fail(n.toString(),n):I(this,Z,`f`).fail(I(this,X,`f`).y18n.__(`Argument check failed: %s`,e.toString())),t),e=>(I(this,Z,`f`).fail(e.message?e.message:e.toString(),e),t)),!1,t),this}choices(e,t){return P(`<object|string|array> [string|array]`,[e,t],arguments.length),this[Yn](this.choices.bind(this),`choices`,e,t),this}coerce(e,t){if(P(`<object|string|array> [function]`,[e,t],arguments.length),Array.isArray(e)){if(!t)throw new N(`coerce callback must be provided`);for(let n of e)this.coerce(n,t);return this}else if(typeof e==`object`){for(let t of Object.keys(e))this.coerce(t,e[t]);return this}if(!t)throw new N(`coerce callback must be provided`);let n=e;return I(this,q,`f`).key[n]=!0,I(this,H,`f`).addCoerceMiddleware((e,r)=>{let i=[n,...r.getAliases()[n]??[]].filter(t=>Object.prototype.hasOwnProperty.call(e,t));return i.length===0?e:Rt(()=>t(e[i[0]]),t=>(i.forEach(n=>{e[n]=t}),e),e=>{throw new N(e.message)})},n),this}conflicts(e,t){return P(`<string|object> [string|array]`,[e,t],arguments.length),I(this,$,`f`).conflicts(e,t),this}config(e=`config`,t,n){return P(`[object|string] [string|function] [function]`,[e,t,n],arguments.length),typeof e==`object`&&!Array.isArray(e)?(e=fn(e,I(this,gn,`f`),this[Vn]()[`deep-merge-config`]||!1,I(this,X,`f`)),I(this,q,`f`).configObjects=(I(this,q,`f`).configObjects||[]).concat(e),this):(typeof t==`function`&&(n=t,t=void 0),this.describe(e,t||I(this,Z,`f`).deferY18nLookup(`Path to JSON config file`)),(Array.isArray(e)?e:[e]).forEach(e=>{I(this,q,`f`).config[e]=n||!0}),this)}completion(e,t,n){return P(`[string] [string|boolean|function] [function]`,[e,t,n],arguments.length),typeof t==`function`&&(n=t,t=void 0),F(this,z,e||I(this,z,`f`)||`completion`,`f`),!t&&t!==!1&&(t=`generate completion script`),this.command(I(this,z,`f`),t),n&&I(this,R,`f`).registerFunction(n),this}command(e,t,n,r,i,a){return P(`<string|array|object> [string|boolean] [function|object] [function] [array] [boolean|string]`,[e,t,n,r,i,a],arguments.length),I(this,L,`f`).addHandler(e,t,n,r,i,a),this}commands(e,t,n,r,i,a){return this.command(e,t,n,r,i,a)}commandDir(e,t){P(`<string> [object]`,[e,t],arguments.length);let n=I(this,wn,`f`)||I(this,X,`f`).require;return I(this,L,`f`).addDirectory(e,n,I(this,X,`f`).getCallerFile(),t),this}count(e){return P(`<array|string>`,[e],arguments.length),this[qn](`count`,e),this[gr](e),this}default(e,t,n){return P(`<object|string|array> [*] [string]`,[e,t,n],arguments.length),n&&(kt(e,I(this,X,`f`)),I(this,q,`f`).defaultDescription[e]=n),typeof t==`function`&&(kt(e,I(this,X,`f`)),I(this,q,`f`).defaultDescription[e]||(I(this,q,`f`).defaultDescription[e]=I(this,Z,`f`).functionDescription(t)),t=t.call()),this[Jn](this.default.bind(this),`default`,e,t),this}defaults(e,t,n){return this.default(e,t,n)}demandCommand(e=1,t,n,r){return P(`[number] [number|string] [string|null|undefined] [string|null|undefined]`,[e,t,n,r],arguments.length),typeof t!=`number`&&(n=t,t=1/0),this.global(`_`,!1),I(this,q,`f`).demandedCommands._={min:e,max:t,minMsg:n,maxMsg:r},this}demand(e,t,n){return Array.isArray(t)?(t.forEach(e=>{j(n,!0,I(this,X,`f`)),this.demandOption(e,n)}),t=1/0):typeof t!=`number`&&(n=t,t=1/0),typeof e==`number`?(j(n,!0,I(this,X,`f`)),this.demandCommand(e,t,n,n)):Array.isArray(e)?e.forEach(e=>{j(n,!0,I(this,X,`f`)),this.demandOption(e,n)}):typeof n==`string`?this.demandOption(e,n):(n===!0||n===void 0)&&this.demandOption(e),this}demandOption(e,t){return P(`<object|string|array> [string]`,[e,t],arguments.length),this[Jn](this.demandOption.bind(this),`demandedOptions`,e,t),this}deprecateOption(e,t){return P(`<string> [string|boolean]`,[e,t],arguments.length),I(this,q,`f`).deprecatedOptions[e]=t,this}describe(e,t){return P(`<object|string|array> [string]`,[e,t],arguments.length),this[Qn](e,!0),I(this,Z,`f`).describe(e,t),this}detectLocale(e){return P(`<boolean>`,[e],arguments.length),F(this,yn,e,`f`),this}env(e){return P(`[string|boolean]`,[e],arguments.length),e===!1?delete I(this,q,`f`).envPrefix:I(this,q,`f`).envPrefix=e||``,this}epilogue(e){return P(`<string>`,[e],arguments.length),I(this,Z,`f`).epilog(e),this}epilog(e){return this.epilogue(e)}example(e,t){return P(`<string|array> [string]`,[e,t],arguments.length),Array.isArray(e)?e.forEach(e=>this.example(...e)):I(this,Z,`f`).example(e,t),this}exit(e,t){F(this,W,!0,`f`),F(this,B,t,`f`),I(this,V,`f`)&&I(this,X,`f`).process.exit(e)}exitProcess(e=!0){return P(`[boolean]`,[e],arguments.length),F(this,V,e,`f`),this}fail(e){if(P(`<function|boolean>`,[e],arguments.length),typeof e==`boolean`&&e!==!1)throw new N(`Invalid first argument. Expected function or boolean 'false'`);return I(this,Z,`f`).failFn(e),this}getAliases(){return this.parsed?this.parsed.aliases:{}}async getCompletion(e,t){return P(`<array> [function]`,[e,t],arguments.length),t?I(this,R,`f`).getCompletion(e,t):new Promise((t,n)=>{I(this,R,`f`).getCompletion(e,(e,r)=>{e?n(e):t(r)})})}getDemandedOptions(){return P([],0),I(this,q,`f`).demandedOptions}getDemandedCommands(){return P([],0),I(this,q,`f`).demandedCommands}getDeprecatedOptions(){return P([],0),I(this,q,`f`).deprecatedOptions}getDetectLocale(){return I(this,yn,`f`)}getExitProcess(){return I(this,V,`f`)}getGroups(){return Object.assign({},I(this,U,`f`),I(this,On,`f`))}getHelp(){if(F(this,W,!0,`f`),!I(this,Z,`f`).hasCachedHelpMessage()){if(!this.parsed){let e=this[pr](I(this,Y,`f`),void 0,void 0,0,!0);if(M(e))return e.then(()=>I(this,Z,`f`).help())}let e=I(this,L,`f`).runDefaultBuilderOn(this);if(M(e))return e.then(()=>I(this,Z,`f`).help())}return Promise.resolve(I(this,Z,`f`).help())}getOptions(){return I(this,q,`f`)}getStrict(){return I(this,An,`f`)}getStrictCommands(){return I(this,jn,`f`)}getStrictOptions(){return I(this,Mn,`f`)}global(e,t){return P(`<string|array> [boolean]`,[e,t],arguments.length),e=[].concat(e),t===!1?e.forEach(e=>{I(this,q,`f`).local.includes(e)||I(this,q,`f`).local.push(e)}):I(this,q,`f`).local=I(this,q,`f`).local.filter(t=>e.indexOf(t)===-1),this}group(e,t){P(`<string|array> <string>`,[e,t],arguments.length);let n=I(this,On,`f`)[t]||I(this,U,`f`)[t];I(this,On,`f`)[t]&&delete I(this,On,`f`)[t];let r={};return I(this,U,`f`)[t]=(n||[]).concat(e).filter(e=>r[e]?!1:r[e]=!0),this}hide(e){return P(`<string>`,[e],arguments.length),I(this,q,`f`).hiddenOptions.push(e),this}implies(e,t){return P(`<string|object> [number|string|array]`,[e,t],arguments.length),I(this,$,`f`).implies(e,t),this}locale(e){return P(`[string]`,[e],arguments.length),e===void 0?(this[Un](),I(this,X,`f`).y18n.getLocale()):(F(this,yn,!1,`f`),I(this,X,`f`).y18n.setLocale(e),this)}middleware(e,t,n){return I(this,H,`f`).addMiddleware(e,!!t,n)}nargs(e,t){return P(`<string|object|array> [number]`,[e,t],arguments.length),this[Jn](this.nargs.bind(this),`narg`,e,t),this}normalize(e){return P(`<array|string>`,[e],arguments.length),this[qn](`normalize`,e),this}number(e){return P(`<array|string>`,[e],arguments.length),this[qn](`number`,e),this[gr](e),this}option(e,t){if(P(`<string|object> [object]`,[e,t],arguments.length),typeof e==`object`)Object.keys(e).forEach(t=>{this.options(t,e[t])});else{typeof t!=`object`&&(t={}),this[gr](e),I(this,Q,`f`)&&(e===`version`||t?.alias===`version`)&&this[Rn]([`"version" is a reserved word.`,`Please do one of the following:`,'- Disable version with `yargs.version(false)` if using "version" as an option',"- Use the built-in `yargs.version` method instead (if applicable)",`- Use a different option key`,`https://yargs.js.org/docs/#api-reference-version`].join(`
|
|
96
|
-
`),void 0,`versionWarning`),I(this,q,`f`).key[e]=!0,t.alias&&this.alias(e,t.alias);let n=t.deprecate||t.deprecated;n&&this.deprecateOption(e,n);let r=t.demand||t.required||t.require;r&&this.demand(e,r),t.demandOption&&this.demandOption(e,typeof t.demandOption==`string`?t.demandOption:void 0),t.conflicts&&this.conflicts(e,t.conflicts),`default`in t&&this.default(e,t.default),t.implies!==void 0&&this.implies(e,t.implies),t.nargs!==void 0&&this.nargs(e,t.nargs),t.config&&this.config(e,t.configParser),t.normalize&&this.normalize(e),t.choices&&this.choices(e,t.choices),t.coerce&&this.coerce(e,t.coerce),t.group&&this.group(e,t.group),(t.boolean||t.type===`boolean`)&&(this.boolean(e),t.alias&&this.boolean(t.alias)),(t.array||t.type===`array`)&&(this.array(e),t.alias&&this.array(t.alias)),(t.number||t.type===`number`)&&(this.number(e),t.alias&&this.number(t.alias)),(t.string||t.type===`string`)&&(this.string(e),t.alias&&this.string(t.alias)),(t.count||t.type===`count`)&&this.count(e),typeof t.global==`boolean`&&this.global(e,t.global),t.defaultDescription&&(I(this,q,`f`).defaultDescription[e]=t.defaultDescription),t.skipValidation&&this.skipValidation(e);let i=t.describe||t.description||t.desc,a=I(this,Z,`f`).getDescriptions();(!Object.prototype.hasOwnProperty.call(a,e)||typeof i==`string`)&&this.describe(e,i),t.hidden&&this.hide(e),t.requiresArg&&this.requiresArg(e)}return this}options(e,t){return this.option(e,t)}parse(e,t,n){P(`[string|array] [function|boolean|object] [function]`,[e,t,n],arguments.length),this[zn](),e===void 0&&(e=I(this,Y,`f`)),typeof t==`object`&&(F(this,En,t,`f`),t=n),typeof t==`function`&&(F(this,J,t,`f`),t=!1),t||F(this,Y,e,`f`),I(this,J,`f`)&&F(this,V,!1,`f`);let r=this[pr](e,!!t),i=this.parsed;return I(this,R,`f`).setParsed(this.parsed),M(r)?r.then(e=>(I(this,J,`f`)&&I(this,J,`f`).call(this,I(this,B,`f`),e,I(this,K,`f`)),e)).catch(e=>{throw I(this,J,`f`)&&I(this,J,`f`)(e,this.parsed.argv,I(this,K,`f`)),e}).finally(()=>{this[$n](),this.parsed=i}):(I(this,J,`f`)&&I(this,J,`f`).call(this,I(this,B,`f`),r,I(this,K,`f`)),this[$n](),this.parsed=i,r)}parseAsync(e,t,n){let r=this.parse(e,t,n);return M(r)?r:Promise.resolve(r)}parseSync(e,t,n){let r=this.parse(e,t,n);if(M(r))throw new N(`.parseSync() must not be used with asynchronous builders, handlers, or middleware`);return r}parserConfiguration(e){return P(`<object>`,[e],arguments.length),F(this,Tn,e,`f`),this}pkgConf(e,t){P(`<string> [string]`,[e,t],arguments.length);let n=null,r=this[Kn](t||I(this,gn,`f`));return r[e]&&typeof r[e]==`object`&&(n=fn(r[e],t||I(this,gn,`f`),this[Vn]()[`deep-merge-config`]||!1,I(this,X,`f`)),I(this,q,`f`).configObjects=(I(this,q,`f`).configObjects||[]).concat(n)),this}positional(e,t){P(`<string> <object>`,[e,t],arguments.length);let n=[`default`,`defaultDescription`,`implies`,`normalize`,`choices`,`conflicts`,`coerce`,`type`,`describe`,`desc`,`description`,`alias`];t=Jt(t,(e,t)=>e===`type`&&![`string`,`number`,`boolean`].includes(t)?!1:n.includes(e));let r=I(this,_n,`f`).fullCommands[I(this,_n,`f`).fullCommands.length-1],i=r?I(this,L,`f`).cmdToParseOptions(r):{array:[],alias:{},default:{},demand:{}};return At(i).forEach(n=>{let r=i[n];Array.isArray(r)?r.indexOf(e)!==-1&&(t[n]=!0):r[e]&&!(n in t)&&(t[n]=r[e])}),this.group(e,I(this,Z,`f`).getPositionalGroupName()),this.option(e,t)}recommendCommands(e=!0){return P(`[boolean]`,[e],arguments.length),F(this,kn,e,`f`),this}required(e,t,n){return this.demand(e,t,n)}require(e,t,n){return this.demand(e,t,n)}requiresArg(e){return P(`<array|string|object> [number]`,[e],arguments.length),typeof e==`string`&&I(this,q,`f`).narg[e]||this[Jn](this.requiresArg.bind(this),`narg`,e,NaN),this}showCompletionScript(e,t){return P(`[string] [string]`,[e,t],arguments.length),e||=this.$0,I(this,Cn,`f`).log(I(this,R,`f`).generateCompletionScript(e,t||I(this,z,`f`)||`completion`)),this}showHelp(e){if(P(`[string|function]`,[e],arguments.length),F(this,W,!0,`f`),!I(this,Z,`f`).hasCachedHelpMessage()){if(!this.parsed){let t=this[pr](I(this,Y,`f`),void 0,void 0,0,!0);if(M(t))return t.then(()=>{I(this,Z,`f`).showHelp(e)}),this}let t=I(this,L,`f`).runDefaultBuilderOn(this);if(M(t))return t.then(()=>{I(this,Z,`f`).showHelp(e)}),this}return I(this,Z,`f`).showHelp(e),this}scriptName(e){return this.customScriptName=!0,this.$0=e,this}showHelpOnFail(e,t){return P(`[boolean|string] [string]`,[e,t],arguments.length),I(this,Z,`f`).showHelpOnFail(e,t),this}showVersion(e){return P(`[string|function]`,[e],arguments.length),I(this,Z,`f`).showVersion(e),this}skipValidation(e){return P(`<array|string>`,[e],arguments.length),this[qn](`skipValidation`,e),this}strict(e){return P(`[boolean]`,[e],arguments.length),F(this,An,e!==!1,`f`),this}strictCommands(e){return P(`[boolean]`,[e],arguments.length),F(this,jn,e!==!1,`f`),this}strictOptions(e){return P(`[boolean]`,[e],arguments.length),F(this,Mn,e!==!1,`f`),this}string(e){return P(`<array|string>`,[e],arguments.length),this[qn](`string`,e),this[gr](e),this}terminalWidth(){return P([],0),I(this,X,`f`).process.stdColumns}updateLocale(e){return this.updateStrings(e)}updateStrings(e){return P(`<object>`,[e],arguments.length),F(this,yn,!1,`f`),I(this,X,`f`).y18n.updateLocale(e),this}usage(e,t,n,r){if(P(`<string|null|undefined> [string|boolean] [function|object] [function]`,[e,t,n,r],arguments.length),t!==void 0){if(j(e,null,I(this,X,`f`)),(e||``).match(/^\$0( |$)/))return this.command(e,t,n,r);throw new N(`.usage() description must start with $0 if being used as alias for .command()`)}else return I(this,Z,`f`).usage(e),this}usageConfiguration(e){return P(`<object>`,[e],arguments.length),F(this,Nn,e,`f`),this}version(e,t,n){let r=`version`;if(P(`[boolean|string] [string] [string]`,[e,t,n],arguments.length),I(this,Q,`f`)&&(this[Ln](I(this,Q,`f`)),I(this,Z,`f`).version(void 0),F(this,Q,null,`f`)),arguments.length===0)n=this[Wn](),e=r;else if(arguments.length===1){if(e===!1)return this;n=e,e=r}else arguments.length===2&&(n=t,t=void 0);return F(this,Q,typeof e==`string`?e:r,`f`),t||=I(this,Z,`f`).deferY18nLookup(`Show version number`),I(this,Z,`f`).version(n||void 0),this.boolean(I(this,Q,`f`)),this.describe(I(this,Q,`f`),t),this}wrap(e){return P(`<number|null|undefined>`,[e],arguments.length),I(this,Z,`f`).wrap(e),this}[(L=new WeakMap,gn=new WeakMap,_n=new WeakMap,R=new WeakMap,z=new WeakMap,vn=new WeakMap,B=new WeakMap,yn=new WeakMap,bn=new WeakMap,V=new WeakMap,xn=new WeakMap,H=new WeakMap,U=new WeakMap,W=new WeakMap,G=new WeakMap,Sn=new WeakMap,Cn=new WeakMap,K=new WeakMap,q=new WeakMap,wn=new WeakMap,Tn=new WeakMap,J=new WeakMap,En=new WeakMap,Dn=new WeakMap,On=new WeakMap,Y=new WeakMap,kn=new WeakMap,X=new WeakMap,An=new WeakMap,jn=new WeakMap,Mn=new WeakMap,Z=new WeakMap,Nn=new WeakMap,Q=new WeakMap,$=new WeakMap,Fn)](e){if(!e._||!e[`--`])return e;e._.push.apply(e._,e[`--`]);try{delete e[`--`]}catch{}return e}[In](){return{log:(...e)=>{this[cr]()||console.log(...e),F(this,W,!0,`f`),I(this,K,`f`).length&&F(this,K,I(this,K,`f`)+`
|
|
97
|
-
`,`f`),F(this,K,I(this,K,`f`)+e.join(` `),`f`)},error:(...e)=>{this[cr]()||console.error(...e),F(this,W,!0,`f`),I(this,K,`f`).length&&F(this,K,I(this,K,`f`)+`
|
|
98
|
-
`,`f`),F(this,K,I(this,K,`f`)+e.join(` `),`f`)}}}[Ln](e){At(I(this,q,`f`)).forEach(t=>{if((e=>e===`configObjects`)(t))return;let n=I(this,q,`f`)[t];Array.isArray(n)?n.includes(e)&&n.splice(n.indexOf(e),1):typeof n==`object`&&delete n[e]}),delete I(this,Z,`f`).getDescriptions()[e]}[Rn](e,t,n){I(this,bn,`f`)[n]||(I(this,X,`f`).process.emitWarning(e,t),I(this,bn,`f`)[n]=!0)}[zn](){I(this,xn,`f`).push({options:I(this,q,`f`),configObjects:I(this,q,`f`).configObjects.slice(0),exitProcess:I(this,V,`f`),groups:I(this,U,`f`),strict:I(this,An,`f`),strictCommands:I(this,jn,`f`),strictOptions:I(this,Mn,`f`),completionCommand:I(this,z,`f`),output:I(this,K,`f`),exitError:I(this,B,`f`),hasOutput:I(this,W,`f`),parsed:this.parsed,parseFn:I(this,J,`f`),parseContext:I(this,En,`f`)}),I(this,Z,`f`).freeze(),I(this,$,`f`).freeze(),I(this,L,`f`).freeze(),I(this,H,`f`).freeze()}[Bn](){let e=``,t;return t=/\b(node|iojs|electron)(\.exe)?$/.test(I(this,X,`f`).process.argv()[0])?I(this,X,`f`).process.argv().slice(1,2):I(this,X,`f`).process.argv().slice(0,1),e=t.map(e=>{let t=this[dr](I(this,gn,`f`),e);return e.match(/^(\/|([a-zA-Z]:)?\\)/)&&t.length<e.length?t:e}).join(` `).trim(),I(this,X,`f`).getEnv(`_`)&&I(this,X,`f`).getProcessArgvBin()===I(this,X,`f`).getEnv(`_`)&&(e=I(this,X,`f`).getEnv(`_`).replace(`${I(this,X,`f`).path.dirname(I(this,X,`f`).process.execPath())}/`,``)),e}[Vn](){return I(this,Tn,`f`)}[Hn](){return I(this,Nn,`f`)}[Un](){if(!I(this,yn,`f`))return;let e=I(this,X,`f`).getEnv(`LC_ALL`)||I(this,X,`f`).getEnv(`LC_MESSAGES`)||I(this,X,`f`).getEnv(`LANG`)||I(this,X,`f`).getEnv(`LANGUAGE`)||`en_US`;this.locale(e.replace(/[.:].*/,``))}[Wn](){return this[Kn]().version||`unknown`}[Gn](e){let t=e[`--`]?e[`--`]:e._;for(let e=0,n;(n=t[e])!==void 0;e++)I(this,X,`f`).Parser.looksLikeNumber(n)&&Number.isSafeInteger(Math.floor(parseFloat(`${n}`)))&&(t[e]=Number(n));return e}[Kn](e){let t=e||`*`;if(I(this,Dn,`f`)[t])return I(this,Dn,`f`)[t];let n={};try{let t=e||I(this,X,`f`).mainFilename;I(this,X,`f`).path.extname(t)&&(t=I(this,X,`f`).path.dirname(t));let r=I(this,X,`f`).findUp(t,(e,t)=>{if(t.includes(`package.json`))return`package.json`});j(r,void 0,I(this,X,`f`)),n=JSON.parse(I(this,X,`f`).readFileSync(r,`utf8`))}catch{}return I(this,Dn,`f`)[t]=n||{},I(this,Dn,`f`)[t]}[qn](e,t){t=[].concat(t),t.forEach(t=>{t=this[Zn](t),I(this,q,`f`)[e].push(t)})}[Jn](e,t,n,r){this[Xn](e,t,n,r,(e,t,n)=>{I(this,q,`f`)[e][t]=n})}[Yn](e,t,n,r){this[Xn](e,t,n,r,(e,t,n)=>{I(this,q,`f`)[e][t]=(I(this,q,`f`)[e][t]||[]).concat(n)})}[Xn](e,t,n,r,i){if(Array.isArray(n))n.forEach(t=>{e(t,r)});else if((e=>typeof e==`object`)(n))for(let t of At(n))e(t,n[t]);else i(t,this[Zn](n),r)}[Zn](e){return e===`__proto__`?`___proto___`:e}[Qn](e,t){return this[Jn](this[Qn].bind(this),`key`,e,t),this}[$n](){var e,t,n,r,i,a,o,s,c,l,u,d;let f=I(this,xn,`f`).pop();j(f,void 0,I(this,X,`f`));let p;e=this,t=this,n=this,r=this,i=this,a=this,o=this,s=this,c=this,l=this,u=this,d=this,{options:{set value(t){F(e,q,t,`f`)}}.value,configObjects:p,exitProcess:{set value(e){F(t,V,e,`f`)}}.value,groups:{set value(e){F(n,U,e,`f`)}}.value,output:{set value(e){F(r,K,e,`f`)}}.value,exitError:{set value(e){F(i,B,e,`f`)}}.value,hasOutput:{set value(e){F(a,W,e,`f`)}}.value,parsed:this.parsed,strict:{set value(e){F(o,An,e,`f`)}}.value,strictCommands:{set value(e){F(s,jn,e,`f`)}}.value,strictOptions:{set value(e){F(c,Mn,e,`f`)}}.value,completionCommand:{set value(e){F(l,z,e,`f`)}}.value,parseFn:{set value(e){F(u,J,e,`f`)}}.value,parseContext:{set value(e){F(d,En,e,`f`)}}.value}=f,I(this,q,`f`).configObjects=p,I(this,Z,`f`).unfreeze(),I(this,$,`f`).unfreeze(),I(this,L,`f`).unfreeze(),I(this,H,`f`).unfreeze()}[er](e,t){return Rt(t,t=>(e(t),t))}getInternalMethods(){return{getCommandInstance:this[tr].bind(this),getContext:this[nr].bind(this),getHasOutput:this[rr].bind(this),getLoggerInstance:this[ir].bind(this),getParseContext:this[ar].bind(this),getParserConfiguration:this[Vn].bind(this),getUsageConfiguration:this[Hn].bind(this),getUsageInstance:this[or].bind(this),getValidationInstance:this[sr].bind(this),hasParseCallback:this[cr].bind(this),isGlobalContext:this[lr].bind(this),postProcess:this[ur].bind(this),reset:this[fr].bind(this),runValidation:this[mr].bind(this),runYargsParserAndExecuteCommands:this[pr].bind(this),setHasOutput:this[hr].bind(this)}}[tr](){return I(this,L,`f`)}[nr](){return I(this,_n,`f`)}[rr](){return I(this,W,`f`)}[ir](){return I(this,Cn,`f`)}[ar](){return I(this,En,`f`)||{}}[or](){return I(this,Z,`f`)}[sr](){return I(this,$,`f`)}[cr](){return!!I(this,J,`f`)}[lr](){return I(this,Sn,`f`)}[ur](e,t,n,r){return n||M(e)?e:(t||(e=this[Fn](e)),(this[Vn]()[`parse-positional-numbers`]||this[Vn]()[`parse-positional-numbers`]===void 0)&&(e=this[Gn](e)),r&&(e=Lt(e,this,I(this,H,`f`).getMiddleware(),!1)),e)}[fr](e={}){F(this,q,I(this,q,`f`)||{},`f`);let t={};t.local=I(this,q,`f`).local||[],t.configObjects=I(this,q,`f`).configObjects||[];let n={};return t.local.forEach(t=>{n[t]=!0,(e[t]||[]).forEach(e=>{n[e]=!0})}),Object.assign(I(this,On,`f`),Object.keys(I(this,U,`f`)).reduce((e,t)=>{let r=I(this,U,`f`)[t].filter(e=>!(e in n));return r.length>0&&(e[t]=r),e},{})),F(this,U,{},`f`),[`array`,`boolean`,`string`,`skipValidation`,`count`,`normalize`,`number`,`hiddenOptions`].forEach(e=>{t[e]=(I(this,q,`f`)[e]||[]).filter(e=>!n[e])}),[`narg`,`key`,`alias`,`default`,`defaultDescription`,`config`,`choices`,`demandedOptions`,`demandedCommands`,`deprecatedOptions`].forEach(e=>{t[e]=Jt(I(this,q,`f`)[e],e=>!n[e])}),t.envPrefix=I(this,q,`f`).envPrefix,F(this,q,t,`f`),F(this,Z,I(this,Z,`f`)?I(this,Z,`f`).reset(n):Zt(this,I(this,X,`f`)),`f`),F(this,$,I(this,$,`f`)?I(this,$,`f`).reset(n):ln(this,I(this,Z,`f`),I(this,X,`f`)),`f`),F(this,L,I(this,L,`f`)?I(this,L,`f`).reset():Ht(I(this,Z,`f`),I(this,$,`f`),I(this,H,`f`),I(this,X,`f`)),`f`),I(this,R,`f`)||F(this,R,rn(this,I(this,Z,`f`),I(this,L,`f`),I(this,X,`f`)),`f`),I(this,H,`f`).reset(),F(this,z,null,`f`),F(this,K,``,`f`),F(this,B,null,`f`),F(this,W,!1,`f`),this.parsed=!1,this}[dr](e,t){return I(this,X,`f`).path.relative(e,t)}[pr](e,t,n,r=0,i=!1){let a=!!n||i;e||=I(this,Y,`f`),I(this,q,`f`).__=I(this,X,`f`).y18n.__,I(this,q,`f`).configuration=this[Vn]();let o=!!I(this,q,`f`).configuration[`populate--`],s=Object.assign({},I(this,q,`f`).configuration,{"populate--":!0}),c=I(this,X,`f`).Parser.detailed(e,Object.assign({},I(this,q,`f`),{configuration:{"parse-positional-numbers":!1,...s}})),l=Object.assign(c.argv,I(this,En,`f`)),u,d=c.aliases,f=!1,p=!1;Object.keys(l).forEach(e=>{e===I(this,G,`f`)&&l[e]?f=!0:e===I(this,Q,`f`)&&l[e]&&(p=!0)}),l.$0=this.$0,this.parsed=c,r===0&&I(this,Z,`f`).clearCachedHelpMessage();try{if(this[Un](),t)return this[ur](l,o,!!n,!1);I(this,G,`f`)&&[I(this,G,`f`)].concat(d[I(this,G,`f`)]||[]).filter(e=>e.length>1).includes(``+l._[l._.length-1])&&(l._.pop(),f=!0),F(this,Sn,!1,`f`);let s=I(this,L,`f`).getCommands(),m=I(this,R,`f`)?.completionKey?[I(this,R,`f`)?.completionKey,...this.getAliases()[I(this,R,`f`)?.completionKey]??[]].some(e=>Object.prototype.hasOwnProperty.call(l,e)):!1,h=f||m||i;if(l._.length){if(s.length){let e;for(let t=r||0,a;l._[t]!==void 0;t++)if(a=String(l._[t]),s.includes(a)&&a!==I(this,z,`f`)){let e=I(this,L,`f`).runCommand(a,this,c,t+1,i,f||p||i);return this[ur](e,o,!!n,!1)}else if(!e&&a!==I(this,z,`f`)){e=a;break}!I(this,L,`f`).hasDefaultCommand()&&I(this,kn,`f`)&&e&&!h&&I(this,$,`f`).recommendCommands(e,s)}I(this,z,`f`)&&l._.includes(I(this,z,`f`))&&!m&&(I(this,V,`f`)&&Yt(!0),this.showCompletionScript(),this.exit(0))}if(I(this,L,`f`).hasDefaultCommand()&&!h){let e=I(this,L,`f`).runCommand(null,this,c,0,i,f||p||i);return this[ur](e,o,!!n,!1)}if(m){I(this,V,`f`)&&Yt(!0),e=[].concat(e);let t=e.slice(e.indexOf(`--${I(this,R,`f`).completionKey}`)+1);return I(this,R,`f`).getCompletion(t,(e,t)=>{if(e)throw new N(e.message);(t||[]).forEach(e=>{I(this,Cn,`f`).log(e)}),this.exit(0)}),this[ur](l,!o,!!n,!1)}if(I(this,W,`f`)||(f?(I(this,V,`f`)&&Yt(!0),a=!0,this.showHelp(e=>{I(this,Cn,`f`).log(e),this.exit(0)})):p&&(I(this,V,`f`)&&Yt(!0),a=!0,I(this,Z,`f`).showVersion(`log`),this.exit(0))),!a&&I(this,q,`f`).skipValidation.length>0&&(a=Object.keys(l).some(e=>I(this,q,`f`).skipValidation.indexOf(e)>=0&&l[e]===!0)),!a){if(c.error)throw new N(c.error.message);if(!m){let e=this[mr](d,{},c.error);n||(u=Lt(l,this,I(this,H,`f`).getMiddleware(),!0)),u=this[er](e,u??l),M(u)&&!n&&(u=u.then(()=>Lt(l,this,I(this,H,`f`).getMiddleware(),!1)))}}}catch(e){if(e instanceof N)I(this,Z,`f`).fail(e.message,e);else throw e}return this[ur](u??l,o,!!n,!0)}[mr](e,t,n,r){let i={...this.getDemandedOptions()};return a=>{if(n)throw new N(n.message);I(this,$,`f`).nonOptionCount(a),I(this,$,`f`).requiredArguments(a,i);let o=!1;I(this,jn,`f`)&&(o=I(this,$,`f`).unknownCommands(a)),I(this,An,`f`)&&!o?I(this,$,`f`).unknownArguments(a,e,t,!!r):I(this,Mn,`f`)&&I(this,$,`f`).unknownArguments(a,e,{},!1,!1),I(this,$,`f`).limitedChoices(a),I(this,$,`f`).implications(a),I(this,$,`f`).conflicting(a)}}[hr](){F(this,W,!0,`f`)}[gr](e){if(typeof e==`string`)I(this,q,`f`).key[e]=!0;else for(let t of e)I(this,q,`f`).key[t]=!0}};function vr(e){return!!e&&typeof e.getInternalMethods==`function`}const yr=Pn(Ot),br=[{command:i(`abuse-reports`,`Submit and track abuse reports for phishing, malware, and other policy violations on Cloudflare-proxied sites`,()=>import(`./abuse-reports-BhSTEz7h.mjs`),null),hideCommand:!1},{command:i(`access`,`Access protected applications and services`,()=>import(`./access-D4DN4XZF.mjs`),null),hideCommand:!1},{command:i(`account-tags`,`account-tags`,()=>import(`./account-tags-BWEIZLID.mjs`),null),hideCommand:!1},{command:i(`accounts`,`Account settings, members, roles, subscriptions, and API tokens for your Cloudflare account`,()=>import(`./accounts-ZQvIqGJz.mjs`),null),hideCommand:!1},{command:i(`acm`,`acm`,()=>import(`./acm-OQqE8FMc.mjs`),null),hideCommand:!0},{command:i(`addressing`,`addressing`,()=>import(`./addressing-DCFm17JQ.mjs`),null),hideCommand:!1},{command:i(`agent-memory`,`agent-memory`,()=>import(`./agent-memory-BtfPt2me.mjs`),null),hideCommand:!1},{command:i(`ai`,`ai`,()=>import(`./ai-B0_sZbmy.mjs`),null),hideCommand:!1},{command:i(`ai-audit`,`ai-audit`,()=>import(`./ai-audit-DaubuhYF.mjs`),null),hideCommand:!1},{command:i(`ai-gateway`,`Proxy, cache, rate-limit, and observe requests to AI providers — OpenAI, Anthropic, Workers AI, and more`,()=>import(`./ai-gateway-CJ-1Dzzr.mjs`),null),hideCommand:!1},{command:i(`ai-search`,`Managed search-as-a-service: crawl, index, and query content with AI-powered relevance and chat completions`,()=>import(`./ai-search-Dywa1kqX.mjs`),null),hideCommand:!1},{command:i(`ai-security`,`Detect prompt injection, PII, and unsafe topics in traffic to your AI applications`,()=>import(`./ai-security-2wxMPqKS.mjs`),null),hideCommand:!0},{command:i(`alerting`,`alerting`,()=>import(`./alerting-yad9DYRv.mjs`),null),hideCommand:!0},{command:i(`alerts`,`alerts`,()=>import(`./alerts-DY_7Nknx.mjs`),null),hideCommand:!0},{command:i(`analytics`,`Zone-level traffic analytics — dashboard summaries, per-colo breakdowns, and Argo latency metrics`,()=>import(`./analytics-DKNw2fVc.mjs`),null),hideCommand:!1},{command:i(`analytics_engine`,`analytics_engine`,()=>import(`./analytics_engine-BA3kF46s.mjs`),null),hideCommand:!0},{command:i(`api-security`,`api-security`,()=>import(`./api-security-CSuYMpMO.mjs`),null),hideCommand:!0},{command:i(`argo`,`Network optimization features that speed up and improve reliability of traffic to your origins`,()=>import(`./argo-DMfNmOV4.mjs`),null),hideCommand:!0},{command:i(`artifacts`,`artifacts`,()=>import(`./artifacts-Cb3hwClm.mjs`),null),hideCommand:!1},{command:i(`audit-logs`,`audit-logs`,()=>import(`./audit-logs-BrjNuiLx.mjs`),null),hideCommand:!0},{command:i(`autorag`,`autorag`,()=>import(`./autorag-K396-M2S.mjs`),null),hideCommand:!0},{command:i(`basin-catalog`,`Iceberg-compatible data catalog for R2 — organize objects into tables and namespaces for SQL query engines`,()=>import(`./basin-catalog-BLsQhJP4.mjs`),null),hideCommand:!1},{command:i(`billing`,`Account billing profiles and usage data for Cloudflare subscriptions and add-on services`,()=>import(`./billing-CRwD7oQS.mjs`),null),hideCommand:!1},{command:i(`bot-management`,`bot-management`,()=>import(`./bot-management-CyW8F8Wm.mjs`),null),hideCommand:!0},{command:i(`botnet-feed`,`Botnet threat intelligence feeds — IP and ASN-level data on known command-and-control infrastructure`,()=>import(`./botnet-feed-BBKsxf3Y.mjs`),null),hideCommand:!0},{command:i(`brand-protection`,`brand-protection`,()=>import(`./brand-protection-DSeD8LXl.mjs`),null),hideCommand:!0},{command:i(`brands`,`brands`,()=>import(`./brands-DeLbFxSt.mjs`),null),hideCommand:!0},{command:i(`browser-extension`,`browser-extension`,()=>import(`./browser-extension-C1zmKFDG.mjs`),null),hideCommand:!0},{command:i(`browser-run`,`browser-run`,()=>import(`./browser-run-BAcUTwB4.mjs`),null),hideCommand:!1},{command:i(`builds`,`Build and deploy Workers from connected repositories, then inspect build status and logs.`,()=>import(`./builds-W1HEG7Bv.mjs`),null),hideCommand:!1},{command:i(`cache`,`Purge cached content and configure Cache Reserve, tiered caching, and variant serving`,()=>import(`./cache-B7E_PXUp.mjs`),null),hideCommand:!1},{command:i(`certificate-authorities`,`certificate-authorities`,()=>import(`./certificate-authorities-D_uAJH9B.mjs`),null),hideCommand:!0},{command:i(`clear`,`clear`,()=>import(`./clear-CRfI7WS7.mjs`),null),hideCommand:!0},{command:i(`client-certificates`,`client-certificates`,()=>import(`./client-certificates-DqFcK_s1.mjs`),null),hideCommand:!0},{command:i(`client-side-security`,`Client-Side Security — monitor JavaScript, connections, and cookies on your pages for supply-chain attacks`,()=>import(`./client-side-security-DJXZ1XAu.mjs`),null),hideCommand:!0},{command:i(`cloud-connector`,`Route traffic from Cloudflare directly to cloud provider services (AWS, Azure, GCP) without origin servers`,()=>import(`./cloud-connector-Czg1GdQi.mjs`),null),hideCommand:!1},{command:i(`cloudforce-one`,`Detection rule management APIs`,()=>import(`./cloudforce-one-B1IhIZcp.mjs`),null),hideCommand:!1},{command:i(`connector-interrupts`,`connector-interrupts`,()=>import(`./connector-interrupts-D93KTMkw.mjs`),null),hideCommand:!0},{command:i(`connector-telemetry-events`,`connector-telemetry-events`,()=>import(`./connector-telemetry-events-D6CmKR14.mjs`),null),hideCommand:!0},{command:i(`connector-telemetry-events-latest`,`connector-telemetry-events-latest`,()=>import(`./connector-telemetry-events-latest-D8p_dR8s.mjs`),null),hideCommand:!0},{command:i(`connector-telemetry-snapshots`,`connector-telemetry-snapshots`,()=>import(`./connector-telemetry-snapshots-WO9IUk0e.mjs`),null),hideCommand:!0},{command:i(`connector-telemetry-snapshots-latest`,`connector-telemetry-snapshots-latest`,()=>import(`./connector-telemetry-snapshots-latest-COFmzmlk.mjs`),null),hideCommand:!0},{command:i(`connectors`,`connectors`,()=>import(`./connectors-DNT6GTW3.mjs`),null),hideCommand:!0},{command:i(`containers`,`Deploy and manage Containers applications on Cloudflare's global network`,()=>import(`./containers-Btx7vCDP.mjs`),null),hideCommand:!1},{command:i(`content-scan`,`Malicious uploads detection, scan uploaded content in HTTP requests for malware and malicious payloads`,()=>import(`./content-scan-C_ROsbTJ.mjs`),null),hideCommand:!0},{command:i(`cps`,`cps`,()=>import(`./cps-BPQqyL2E.mjs`),null),hideCommand:!1},{command:i(`csamScanner`,`csamScanner`,()=>import(`./csamScanner-D-oO5cxT.mjs`),null),hideCommand:!0},{command:i(`ct-alerting`,`ct-alerting`,()=>import(`./ct-alerting-CnTRE1Fb.mjs`),null),hideCommand:!0},{command:i(`custom-certificates`,`custom-certificates`,()=>import(`./custom-certificates-DvnFBZdJ.mjs`),null),hideCommand:!0},{command:i(`custom-csrs`,`custom-csrs`,()=>import(`./custom-csrs-BZ8TXbuQ.mjs`),null),hideCommand:!1},{command:i(`custom-hostnames`,`custom-hostnames`,()=>import(`./custom-hostnames-CTqf-KlT.mjs`),null),hideCommand:!0},{command:i(`custom-nameservers`,`custom-nameservers`,()=>import(`./custom-nameservers-B0CpnUVg.mjs`),null),hideCommand:!1},{command:i(`custom-pages`,`Manage custom error and challenge pages and their assets for accounts and zones`,()=>import(`./custom-pages-DcoSGN56.mjs`),null),hideCommand:!1},{command:i(`d1`,`D1 is Cloudflare's managed, serverless database with SQLite's SQL semantics, built-in disaster recovery, and Worker and HTTP API access.`,()=>import(`./d1-m7UfzBzl.mjs`),null),hideCommand:!1},{command:i(`dcv-delegation`,`dcv-delegation`,()=>import(`./dcv-delegation-yOtz90qE.mjs`),null),hideCommand:!0},{command:i(`diagnostics`,`Network diagnostic tools — traceroutes from Cloudflare's edge and endpoint health checks`,()=>import(`./diagnostics-hOvnx5DT.mjs`),null),hideCommand:!0},{command:i(`dls`,`dls`,()=>import(`./dls-v6DyEWTd.mjs`),null),hideCommand:!0},{command:i(`dns`,`dns`,()=>import(`./dns-C9sUPsNt.mjs`),null),hideCommand:!1},{command:i(`dns-firewall`,`dns-firewall`,()=>import(`./dns-firewall-EDiT-Zli.mjs`),null),hideCommand:!0},{command:i(`domain-info`,`domain-info`,()=>import(`./domain-info-aiwP60Fo.mjs`),null),hideCommand:!0},{command:i(`durable-objects`,`durable-objects`,()=>import(`./durable-objects-C01phVwL.mjs`),null),hideCommand:!1},{command:i(`email-auth`,`email-auth`,()=>import(`./email-auth-BgvoEHJk.mjs`),null),hideCommand:!0},{command:i(`email-routing`,`Route incoming email to verified destination addresses or Workers with routing rules, catch-all behavior, and managed DNS records`,()=>import(`./email-routing-Bggn219w.mjs`),null),hideCommand:!1},{command:i(`email-security`,`Cloud email security — investigate threats, manage allow/block policies, and detect phishing`,()=>import(`./email-security-_t7rzrzd.mjs`),null),hideCommand:!1},{command:i(`email-sending`,`Send transactional email and manage sending subdomains and their DNS configuration`,()=>import(`./email-sending-_dKCs2VF.mjs`),null),hideCommand:!1},{command:i(`fieldExtractors`,`fieldExtractors`,()=>import(`./fieldExtractors-Cm5QnkE0.mjs`),null),hideCommand:!0},{command:i(`firewall`,`Legacy firewall rules, zone lockdowns, access rules, user-agent blocking, and WAF packages`,()=>import(`./firewall-CZEN8iA_.mjs`),null),hideCommand:!1},{command:i(`flagship`,`flagship`,()=>import(`./flagship-B_SAI_ZL.mjs`),null),hideCommand:!1},{command:i(`fraud`,`fraud`,()=>import(`./fraud-9_9hobAh.mjs`),null),hideCommand:!0},{command:i(`google-tag-gateway`,`Google Tag Gateway operations`,()=>import(`./google-tag-gateway-O_N0vHRY.mjs`),null),hideCommand:!0},{command:i(`health`,`health`,()=>import(`./health-Bz33n-_F.mjs`),null),hideCommand:!0},{command:i(`healthchecks`,`Standalone health checks that monitor origin server availability from Cloudflare's edge`,()=>import(`./healthchecks-Bt3Gw_JZ.mjs`),null),hideCommand:!0},{command:i(`hostnames`,`hostnames`,()=>import(`./hostnames-DdOube3R.mjs`),null),hideCommand:!0},{command:i(`hyperdrive`,`Accelerate access to existing databases by caching queries and pooling connections at the edge`,()=>import(`./hyperdrive-C14NAh9l.mjs`),null),hideCommand:!1},{command:i(`iam`,`Identity and access management — permission groups, resource groups, user groups, and SSO connectors`,()=>import(`./iam-DUW7neMx.mjs`),null),hideCommand:!0},{command:i(`images`,`Store, resize, and deliver optimized images globally — variants, signing keys, and direct uploads`,()=>import(`./images-B9dnr1z0.mjs`),null),hideCommand:!1},{command:i(`intel`,`Threat intelligence lookups — IP reputation, domain info, ASN details, WHOIS, and indicator feeds`,()=>import(`./intel-BQpZMck3.mjs`),null),hideCommand:!1},{command:i(`internal`,`internal`,()=>import(`./internal-BHrJbbdA.mjs`),null),hideCommand:!0},{command:i(`ips`,`ips`,()=>import(`./ips-PT_uQKAf.mjs`),null),hideCommand:!0},{command:i(`k2`,`Durable, ordered event streams that you produce records to and consume from with subscriptions`,()=>import(`./k2-nPYti7Y0.mjs`),null),hideCommand:!1},{command:i(`keyless-certificates`,`keyless-certificates`,()=>import(`./keyless-certificates-BHvas2q1.mjs`),null),hideCommand:!0},{command:i(`keys`,`keys`,()=>import(`./keys-O5kAW9ox.mjs`),null),hideCommand:!1},{command:i(`kv`,`kv`,()=>import(`./kv-BUP_ZLM_.mjs`),null),hideCommand:!1},{command:i(`leaked-credential-checks`,`Detect compromised credentials in login requests by checking against known breach databases`,()=>import(`./leaked-credential-checks-De9hI1rl.mjs`),null),hideCommand:!0},{command:i(`live`,`live`,()=>import(`./live-MeJQXIei.mjs`),null),hideCommand:!0},{command:i(`load-balancers`,`Distribute traffic across origin pools with health monitoring, geo-steering, and failover`,()=>import(`./load-balancers-Cs6bUHS1.mjs`),null),hideCommand:!1},{command:i(`logo-matches`,`logo-matches`,()=>import(`./logo-matches-BkQKdu4Z.mjs`),null),hideCommand:!0},{command:i(`logos`,`logos`,()=>import(`./logos-C_sv-boo.mjs`),null),hideCommand:!0},{command:i(`logpush`,`logpush`,()=>import(`./logpush-NUcyMKHi.mjs`),null),hideCommand:!1},{command:i(`logs`,`Log control, retention, and raw log access — CMB config, ray ID lookups, and received fields`,()=>import(`./logs-BZT4PlqZ.mjs`),null),hideCommand:!1},{command:i(`magic-cloud-networking`,`magic-cloud-networking`,()=>import(`./magic-cloud-networking-DQnSdmgA.mjs`),null),hideCommand:!0},{command:i(`magic-network-monitoring`,`Flow-based network traffic monitoring with configurable alerting rules and VPC flow ingestion`,()=>import(`./magic-network-monitoring-pHTU6aS8.mjs`),null),hideCommand:!1},{command:i(`magic-transit`,`DDoS-protected network transit — GRE/IPsec tunnels, static routes, Magic WAN sites, connectors, and packet captures`,()=>import(`./magic-transit-5302bQNh.mjs`),null),hideCommand:!0},{command:i(`managed-defense`,`managed-defense`,()=>import(`./managed-defense-8OEfDzuO.mjs`),null),hideCommand:!1},{command:i(`managed-transforms`,`managed-transforms`,()=>import(`./managed-transforms-CCpUz4TY.mjs`),null),hideCommand:!0},{command:i(`matches`,`matches`,()=>import(`./matches-BSiYXs99.mjs`),null),hideCommand:!0},{command:i(`mcp`,`mcp`,()=>import(`./mcp-CCMiS75R.mjs`),null),hideCommand:!1},{command:i(`mesh`,`mesh`,()=>import(`./mesh-DKBGTlCD.mjs`),null),hideCommand:!0},{command:i(`monetization`,`monetization`,()=>import(`./monetization-CFf_lb6x.mjs`),null),hideCommand:!1},{command:i(`mtls-certificates`,`mtls-certificates`,()=>import(`./mtls-certificates-DsF3NFNs.mjs`),null),hideCommand:!0},{command:i(`network`,`network`,()=>import(`./network-Bm0qYRqY.mjs`),null),hideCommand:!0},{command:i(`network-interconnects`,`Physical and virtual private interconnects between your infrastructure and Cloudflare's network`,()=>import(`./network-interconnects-YiRUBbjx.mjs`),null),hideCommand:!0},{command:i(`oauth-clients`,`oauth-clients`,()=>import(`./oauth-clients-CP6alY0_.mjs`),null),hideCommand:!0},{command:i(`oauth-scopes`,`oauth-scopes`,()=>import(`./oauth-scopes-xl-pcWdg.mjs`),null),hideCommand:!0},{command:i(`observability`,`observability`,()=>import(`./observability-Bp71PtlD.mjs`),null),hideCommand:!1},{command:i(`organization`,`organization`,()=>import(`./organization-Dbom1gTR.mjs`),null),hideCommand:!1},{command:i(`organizations`,`Multi-user organizations that group accounts, members, and shared settings under a single entity`,()=>import(`./organizations-OUMVsuen.mjs`),null),hideCommand:!1},{command:i(`origin-ca-certificates`,`origin-ca-certificates`,()=>import(`./origin-ca-certificates-B3-T0-Nn.mjs`),null),hideCommand:!0},{command:i(`origin-post-quantum-encryption`,`Enable post-quantum key exchange for connections between Cloudflare and your origin server`,()=>import(`./origin-post-quantum-encryption-CGB6AfPa.mjs`),null),hideCommand:!0},{command:i(`origin-tls-client-auth`,`origin-tls-client-auth`,()=>import(`./origin-tls-client-auth-CgzzfAWr.mjs`),null),hideCommand:!0},{command:i(`page-rules`,`page-rules`,()=>import(`./page-rules-B9BQKU4_.mjs`),null),hideCommand:!0},{command:i(`pages`,`Full-stack application hosting with Git-integrated builds, preview deployments, and custom domains`,()=>import(`./pages-DZPdyuT4.mjs`),null),hideCommand:!1},{command:i(`pay-per-crawl`,`pay-per-crawl`,()=>import(`./pay-per-crawl-CnveMVDi.mjs`),null),hideCommand:!1},{command:i(`pay-per-use`,`pay-per-use`,()=>import(`./pay-per-use-Bpxe8PHv.mjs`),null),hideCommand:!1},{command:i(`pipelines`,`Ingest, transform, and route event streams into R2, analytics, or other destinations in real time`,()=>import(`./pipelines-CHev3o5G.mjs`),null),hideCommand:!1},{command:i(`precursor`,`Precursor settings for a zone`,()=>import(`./precursor-C9PK9Bue.mjs`),null),hideCommand:!0},{command:i(`queries`,`queries`,()=>import(`./queries-f-btyefs.mjs`),null),hideCommand:!0},{command:i(`queues`,`Reliable message queuing between Workers — produce, consume, and batch-process messages at scale`,()=>import(`./queues-kLNdeb3q.mjs`),null),hideCommand:!1},{command:i(`r2`,`S3-compatible object storage with zero egress fees — buckets, lifecycle rules, event notifications, and data migration`,()=>import(`./r2-D_awYx2p.mjs`),null),hideCommand:!1},{command:i(`r2-data-catalog`,`Iceberg-compatible data catalog for R2 — organize objects into tables and namespaces for SQL query engines`,()=>import(`./r2-data-catalog-2jQrdAdo.mjs`),null),hideCommand:!1},{command:i(`radar`,`Internet-wide traffic intelligence — BGP, DNS, HTTP trends, attack data, and network quality insights`,()=>import(`./radar-CU4T02Ag.mjs`),null),hideCommand:!0},{command:i(`rate-limit-analytics`,`rate-limit-analytics`,()=>import(`./rate-limit-analytics-CU55zqCU.mjs`),null),hideCommand:!1},{command:i(`rate-limits`,`Legacy per-zone rate limiting rules — prefer Advanced Rate Limiting in Rulesets for new configurations`,()=>import(`./rate-limits-CZ-qHDPK.mjs`),null),hideCommand:!0},{command:i(`ready`,`ready`,()=>import(`./ready-BOpbZ1pN.mjs`),null),hideCommand:!0},{command:i(`realtime`,`Real-time audio, video, and data services on Cloudflare's global network`,()=>import(`./realtime-C0dvcBBM.mjs`),null),hideCommand:!1},{command:i(`recent-submissions`,`recent-submissions`,()=>import(`./recent-submissions-KDqD2HyS.mjs`),null),hideCommand:!0},{command:i(`refute`,`refute`,()=>import(`./refute-DkF4XIMw.mjs`),null),hideCommand:!0},{command:i(`registrar`,`registrar`,()=>import(`./registrar-CHc-4vcf.mjs`),null),hideCommand:!1},{command:i(`registrar-sandbox`,`registrar-sandbox`,()=>import(`./registrar-sandbox-Dq8LV2AI.mjs`),null),hideCommand:!1},{command:i(`reporting`,`reporting`,()=>import(`./reporting-4u21g6Dk.mjs`),null),hideCommand:!1},{command:i(`request-tracers`,`Trace how a request would be processed through Cloudflare's rules and configuration pipeline`,()=>import(`./request-tracers-CupJ_83j.mjs`),null),hideCommand:!0},{command:i(`resource-sharing`,`Share Cloudflare resources (zones, accounts) across organizations with granular access controls`,()=>import(`./resource-sharing-CO-Lh-u7.mjs`),null),hideCommand:!1},{command:i(`resource-tagging`,`resource-tagging`,()=>import(`./resource-tagging-D0R5SzR6.mjs`),null),hideCommand:!1},{command:i(`rules`,`Resources used by Cloudflare rules and rulesets`,()=>import(`./rules-BsmKzB9H.mjs`),null),hideCommand:!1},{command:i(`rulesets`,`rulesets`,()=>import(`./rulesets-HOOnxHZZ.mjs`),null),hideCommand:!1},{command:i(`rum`,`Real User Measurement (Web Analytics) — track page loads, Core Web Vitals, and visitor metrics`,()=>import(`./rum-wcLEvVJl.mjs`),null),hideCommand:!0},{command:i(`scan-logo`,`scan-logo`,()=>import(`./scan-logo-DQkf6glG.mjs`),null),hideCommand:!0},{command:i(`scan-page`,`scan-page`,()=>import(`./scan-page-CMOJ_E0n.mjs`),null),hideCommand:!0},{command:i(`scim`,`SCIM 2.0 provisioning — manage users, groups, and identity provider sync for your account`,()=>import(`./scim-BkdJmAS8.mjs`),null),hideCommand:!0},{command:i(`search`,`search`,()=>import(`./search-Bre1Zwn3.mjs`),null),hideCommand:!0},{command:i(`secrets-store`,`Centralized secret management — store API keys, tokens, and credentials for use across Workers and other products`,()=>import(`./secrets-store-CHs0oYA0.mjs`),null),hideCommand:!1},{command:i(`security-insights`,`security-insights`,()=>import(`./security-insights-vsl-4xFa.mjs`),null),hideCommand:!1},{command:i(`security-txt`,`Manage the /.well-known/security.txt file that tells security researchers how to report vulnerabilities`,()=>import(`./security-txt-Fnl3LdSn.mjs`),null),hideCommand:!1},{command:i(`signed-url`,`signed-url`,()=>import(`./signed-url-24ZbX4yV.mjs`),null),hideCommand:!0},{command:i(`smart-shield`,`Smart Shield settings, health checks, and cache reserve management`,()=>import(`./smart-shield-DB0E7cZI.mjs`),null),hideCommand:!0},{command:i(`snippets`,`snippets`,()=>import(`./snippets-CFaF_NyG.mjs`),null),hideCommand:!1},{command:i(`spectrum`,`Proxy and protect arbitrary TCP/UDP applications through Cloudflare's network with DDoS mitigation`,()=>import(`./spectrum-DtG0jYjE.mjs`),null),hideCommand:!0},{command:i(`speed`,`Observatory speed tests — run Lighthouse audits, track performance trends, and schedule recurring tests`,()=>import(`./speed-B-RiNHGK.mjs`),null),hideCommand:!1},{command:i(`ssl`,`SSL/TLS certificate management — certificate packs, Universal SSL, verification, and TLS mode recommendations`,()=>import(`./ssl-DBVpCZAM.mjs`),null),hideCommand:!0},{command:i(`stream`,`Video encoding, storage, and delivery — upload, live-stream, clip, caption, and embed video at scale`,()=>import(`./stream-cAdBvpS1.mjs`),null),hideCommand:!1},{command:i(`submission-info`,`submission-info`,()=>import(`./submission-info-BmkbZVqM.mjs`),null),hideCommand:!0},{command:i(`submit`,`submit`,()=>import(`./submit-Bkd7l2rK.mjs`),null),hideCommand:!0},{command:i(`tags`,`tags`,()=>import(`./tags--eph7JbN.mjs`),null),hideCommand:!1},{command:i(`tenant`,`tenant`,()=>import(`./tenant-Bj-He2xO.mjs`),null),hideCommand:!1},{command:i(`tenant-custom-nameservers`,`tenant-custom-nameservers`,()=>import(`./tenant-custom-nameservers-B5IIIwbz.mjs`),null),hideCommand:!0},{command:i(`total-queries`,`total-queries`,()=>import(`./total-queries-j8OAF_cE.mjs`),null),hideCommand:!0},{command:i(`tracked-domains`,`tracked-domains`,()=>import(`./tracked-domains-fe3EWYmF.mjs`),null),hideCommand:!0},{command:i(`tunnels`,`tunnels`,()=>import(`./tunnels-CgtuRpcD.mjs`),null),hideCommand:!0},{command:i(`turnstile`,`CAPTCHA-free bot verification widgets that protect forms and APIs without degrading user experience`,()=>import(`./turnstile-Bmcnrzw7.mjs`),null),hideCommand:!0},{command:i(`url-info`,`url-info`,()=>import(`./url-info-DhVehaT8.mjs`),null),hideCommand:!0},{command:i(`url-normalization`,`url-normalization`,()=>import(`./url-normalization-BpGDUUQc.mjs`),null),hideCommand:!0},{command:i(`url-scanner`,`Scan URLs for phishing, malware, and other threats — submit scans and retrieve detailed results`,()=>import(`./url-scanner-DiLdqsQk.mjs`),null),hideCommand:!0},{command:i(`user`,`Your Cloudflare user profile, invitations, organizations, billing, and personal API tokens`,()=>import(`./user-B6P5_OjP.mjs`),null),hideCommand:!1},{command:i(`values`,`values`,()=>import(`./values-Cxx4Lxrd.mjs`),null),hideCommand:!1},{command:i(`vectorize`,`Globally distributed vector database for building semantic search, recommendations, and RAG applications on Workers`,()=>import(`./vectorize-YyxVpql-.mjs`),null),hideCommand:!1},{command:i(`verify`,`verify`,()=>import(`./verify-CKgZYvln.mjs`),null),hideCommand:!0},{command:i(`waiting-rooms`,`Virtual queues that throttle traffic to your site during peak demand with customizable waiting pages`,()=>import(`./waiting-rooms-BdahlCdD.mjs`),null),hideCommand:!1},{command:i(`web-assets`,`web-assets`,()=>import(`./web-assets-yaKxN4w_.mjs`),null),hideCommand:!0},{command:i(`web3`,`web3`,()=>import(`./web3-Bu9c_QAt.mjs`),null),hideCommand:!0},{command:i(`workers`,`workers`,()=>import(`./workers-5GgoGA2e.mjs`),null),hideCommand:!1},{command:i(`workers-builds`,`workers-builds`,()=>import(`./workers-builds-h-1FJjE1.mjs`),null),hideCommand:!0},{command:i(`workers-for-platforms`,`workers-for-platforms`,()=>import(`./workers-for-platforms-CV9iRrp9.mjs`),null),hideCommand:!1},{command:i(`workers-vpc`,`workers-vpc`,()=>import(`./workers-vpc-C1oUHHqk.mjs`),null),hideCommand:!1},{command:i(`workflows`,`Durable, multi-step workflows that run on Workers with automatic retries and state persistence`,()=>import(`./workflows-dtMlkj1-.mjs`),null),hideCommand:!1},{command:i(`zaraz`,`Server-side tag manager — load third-party tools (analytics, pixels, etc.) from Cloudflare's edge without client-side JS`,()=>import(`./zaraz-838AbMEX.mjs`),null),hideCommand:!0},{command:i(`zero-trust`,`Cloudflare's SASE platform — secure access, device posture, DLP, tunnels, gateway policies, and network segmentation`,()=>import(`./zero-trust-CYt-eELJ.mjs`),null),hideCommand:!1},{command:i(`zone`,`zone`,()=>import(`./zone-uJwRLSnn.mjs`),null),hideCommand:!1},{command:i(`zones`,`Zones are domains on Cloudflare — list, create, and configure domain settings`,()=>import(`./zones-Dpofsnth.mjs`),null),hideCommand:!1}];function xr(e){return typeof e==`object`&&!!e&&`schemas`in e&&typeof e.schemas==`object`&&e.schemas!==null&&!Array.isArray(e.schemas)}function Sr(e,t){if(!t)return e;let n=a(import.meta.url,`schemas.json`,xr);return!n||!Object.hasOwn(n.schemas,t)?e:`${e}\n\n${o.italic(`To inspect the exact API request, run ${o.code(`cf schema ${t}`)}`)}`}const Cr=[{kind:`root`,command:`auth`,describe:`Manage authentication and profiles`,dir:`auth`,load:()=>import(`./auth-BBlAI8HG.mjs`),telemetry:{command:`auth`,recordArgs:!1}},{kind:`root`,command:`login`,describe:!1,dir:`login`,load:()=>import(`./login-C5nSIS-T.mjs`),telemetry:null},{kind:`root`,command:`build`,describe:`Build a project for Cloudflare`,dir:`build`,load:()=>import(`./build-DLZ9gBNA.mjs`),telemetry:{command:`build`,classification:{safeFlags:[]}}},{kind:`root`,command:`complete [shell]`,describe:`Generate and handle shell completions`,dir:`completions`,load:()=>import(`./completions-Cm9brGAI.mjs`),telemetry:null},{kind:`root`,command:`deploy`,describe:`Deploy a project to Cloudflare`,dir:`deploy`,load:()=>import(`./deploy-C4p6SzLH.mjs`),telemetry:{command:`deploy`,classification:{safeFlags:[`dry-run`,`prebuilt`,`containers-rollout`]}}},{kind:`root`,command:`dev [implArgs..]`,describe:`Run the project's Cloudflare dev server`,dir:`dev`,load:()=>import(`./dev-BML-bpNU.mjs`),telemetry:{command:`dev`,recordArgs:!1}},{kind:`root`,command:`init [directory]`,describe:`Create a new Cloudflare project or set up an existing one`,dir:`init`,load:()=>import(`./init-BGcAIvV7.mjs`),telemetry:{command:`init`,classification:{safeFlags:[`install`,`package-manager`]}}},{kind:`root`,command:`migrate [path]`,describe:`Migrate a Wrangler project to cf`,dir:`migrate`,load:()=>import(`./migrate-BJ9Go_wP.mjs`),telemetry:{command:`migrate`,recordArgs:!1}},{kind:`root`,command:`cli`,describe:`Discover commands and configure the cf CLI`,dir:`cli`,load:()=>import(`./cli-BeXSqJAj.mjs`),telemetry:{command:`cli`,recordArgs:!1}},{kind:`root`,command:`previews`,describe:`Manage Worker Previews`,dir:`previews`,load:()=>import(`./previews-BIMI1dTz.mjs`),telemetry:{command:`previews`,recordArgs:!1}},{kind:`root`,command:`schema [command..]`,describe:`Show API schema details for a command`,dir:`schema`,load:()=>import(`./schema-GdBsV4P7.mjs`),telemetry:{command:`schema`,classification:{safeFlags:[`list`]}}},{kind:`root`,command:`tools`,describe:!1,dir:`tools`,load:()=>import(`./tools-BJZ0DDlL.mjs`),telemetry:{command:`tools`,classification:{safeFlags:[`text`]}}},{kind:`leafOverride`,emitKey:`ai/run`,dir:`ai/run`},{kind:`leafOverride`,emitKey:`registrar/registrations/create`,dir:`registrar/registrations/create`},{kind:`leaf`,parent:`workers/versions`,name:`create`,dir:`workers/versions/create`},{kind:`leaf`,parent:`containers`,name:`build`,dir:`containers/build`},{kind:`leaf`,parent:`containers`,name:`push`,dir:`containers/push`},{kind:`leaf`,parent:`containers/images`,name:`list`,dir:`containers/images/list`},{kind:`leaf`,parent:`containers/images`,name:`delete`,dir:`containers/images/delete`},{kind:`leaf`,parent:`containers`,name:`ssh`,dir:`containers/ssh`},{kind:`leaf`,parent:`pages`,name:`deploy`,dir:`pages/deploy`},{kind:`leaf`,parent:`workers`,name:`check`,dir:`workers/check`},{kind:`leaf`,parent:`workers`,name:`types`,dir:`workers/types`},{kind:`parentOverride`,parent:`access`,describe:`Access protected applications and services`,expose:!0},{kind:`leaf`,parent:`access`,name:`login`,dir:`access/login`},{kind:`leaf`,parent:`access`,name:`token`,dir:`access/token`},{kind:`leaf`,parent:`access`,name:`ssh-config`,dir:`access/ssh-config`},{kind:`leaf`,parent:`access`,name:`ssh-gen`,dir:`access/ssh-gen`},{kind:`leaf`,parent:`access`,name:`tcp`,dir:`access/tcp`},{kind:`leaf`,parent:`access`,name:`curl`,dir:`access/curl`},{kind:`leaf`,parent:`tunnels`,name:`diag`,dir:`tunnels/diag`},{kind:`leaf`,parent:`tunnels`,name:`login`,dir:`tunnels/login`},{kind:`leaf`,parent:`tunnels`,name:`quick-start`,dir:`tunnels/quick-start`},{kind:`leaf`,parent:`tunnels`,name:`ready`,dir:`tunnels/ready`},{kind:`leaf`,parent:`tunnels`,name:`run`,dir:`tunnels/run`},{kind:`leaf`,parent:`tunnels`,name:`tail`,dir:`tunnels/tail`},{kind:`subgroup`,parent:`d1`,name:`migrations`,dir:`d1/migrations`,describe:`Create, list, and apply D1 database migrations`},{kind:`subgroup`,parent:`workers`,name:`triggers`,dir:`workers/triggers`,describe:`Manage triggers (Routes, Workflows, Cron triggers etc.)`}];function wr(){return Cr.filter(e=>e.kind===`root`)}function Tr(e){return e.command.split(/\s+/)[0]??e.command}function Er(e){try{let t=new URL(e);return`${t.pathname.replace(/^\/client\/v\d+/,``)}${t.search}`}catch{return e}}function Dr(e){if(_(m),e instanceof f){let t=e.statusCode,n=e.body,r=t===void 0?`Envelope Error`:kr(t),i=[];if(n){let e=n;Array.isArray(e.errors)&&(i=e.errors)}let a=e.rawResponse?.url?`HTTP ${Er(e.rawResponse.url)}`:void 0,s=t===void 0?r:`${t} ${r}`,c=a?`${s} · ${a}`:s,l=o.muted(c),u=``;return i.length>0?u=i.map((e,t)=>{let n=typeof e.code==`number`?o.error(o.bold(`[${e.code}]`)):o.error(o.bold(`[error]`)),r=o.bold(e.message??``);return t===i.length-1?`${n} ${r}\n${l}`:`${n} ${r}`}).join(`
|
|
99
|
-
|
|
100
|
-
`):(u=o.error(o.bold(e.message||c)),e.message&&c&&(u+=`\n${l}`)),console.error(v(u,void 0,{title:`APIError`,rawMessage:!0})),t===401?console.error(`
|
|
101
|
-
`+h(`Try running: cf auth login`)):t===403&&console.error(`
|
|
102
|
-
`+h(`Check your API token permissions`)),e}if(e instanceof p){let t=e.status===void 0?``:`${e.status} ${kr(e.status)}`.trim(),n=t?o.muted(t):``,r=e.notes??[],i;if(r.length>0){let t=typeof e.code==`number`?o.error(o.bold(`[${e.code}]`)):o.error(o.bold(`[error]`));i=r.map((e,i)=>{let a=o.bold(e.text),s=i===0?`${t} ${a}`:a;return i===r.length-1&&n?`${s}\n${n}`:s}).join(`
|
|
103
|
-
|
|
104
|
-
`)}else{let t=o.error(o.bold(e.message));i=n?`${t}\n${n}`:t}return console.error(v(i,void 0,{title:`APIError`,rawMessage:!0})),e.status===401?console.error(`
|
|
105
|
-
`+h(`Try running: cf auth login`)):e.status===403&&console.error(`
|
|
106
|
-
`+h(`Check your API token permissions`)),e}if(e instanceof Error){let t=process.env.DEBUG&&e.stack?Or(e.stack):void 0;return console.error(v(e.message,t)),e}return console.error(v(`An unexpected error occurred`,String(e))),e}function Or(e){return e.replace(/[A-Za-z0-9_-]{40,}/g,`[REDACTED]`)}function kr(e){return{400:`Bad Request`,401:`Unauthorized`,403:`Forbidden`,404:`Not Found`,405:`Method Not Allowed`,409:`Conflict`,422:`Unprocessable Entity`,429:`Too Many Requests`,500:`Internal Server Error`,502:`Bad Gateway`,503:`Service Unavailable`,504:`Gateway Timeout`}[e]??``}const Ar={quiet:{type:`boolean`,alias:`q`,description:`Suppress non-essential output`,global:!0,default:!1},zone:{type:`string`,alias:`z`,description:`Zone ID or domain name (overrides CLOUDFLARE_ZONE_ID)`,global:!0},profile:{type:`string`,description:`Use a specific auth profile`,requiresArg:!0,global:!0},mode:{type:`string`,alias:`m`,description:`Mode used to evaluate project configuration`,requiresArg:!0,global:!0,coerce:e=>{if(Array.isArray(e))throw Error(`--mode can only be specified once.`);if(e===``)throw Error(`--mode requires a non-empty value.`);return e}},local:{type:`boolean`,description:`Use local resource simulations`,global:!0,default:!1},"persist-to":{type:`string`,description:`Directory holding local persisted state (default: ~/.config/cloudflare/state)`,requiresArg:!0,global:!0}};function jr(e){return Object.entries(Ar).some(([t,n])=>{if(n.type===`boolean`)return!1;let r=n.alias;return[t,...Array.isArray(r)?r:r===void 0?[]:[r]].some(t=>e===(t.length===1?`-${t}`:`--${t}`))})}const Mr=wr().map(e=>i(e.command,e.describe,e.load,e.telemetry)),Nr=new Set(wr().map(Tr)),Pr=[`=== STOP: AGENT COMMAND DISCOVERY ===`,`AGENTS: Do not explore commands by chaining nested --help calls.`,`Your first port of call and the best way to discover commands is:`,`AGENTS: Keep cf cli search queries anonymous; describe the action and resource type only.`,`Never include names, email addresses, domains, account or resource IDs, tokens, or other identifying values.`,` cf cli search "<describe the task you want to accomplish>"`,`It returns five compact JSON matches with short descriptions. Pick the best match instead of repeating similar searches.`,"Run `<discovered command> --help` for detailed command help.","For API request details, replace the result's leading `cf` with `cf schema`.",`=== END AGENT COMMAND DISCOVERY ===`].join(`
|
|
107
|
-
`);function Fr(e){return s().isAgentic?`${Pr}\n${e}`:e}function Ir(e,t){return Fr(Sr(e,t))}async function Lr(e=!1){if(!process.stderr.isTTY||e||c(process.argv.slice(2))||Br()===`complete`)return;let{readState:t,updateState:n}=await import(`./state-CpXhcMdX.mjs`);t().completions?.prompted||(process.stderr.write(o.muted("Tip: run `cf complete <bash|zsh|fish>` to install shell completions.\n")),n({completions:{prompted:!0}}))}let Rr;function zr(){return Rr??=import(`./telemetry-51etasAu.mjs`),Rr}function Br(e=process.argv.slice(2)){return Vr(e,1)[0]}function Vr(e=process.argv.slice(2),t=2){let n=[];for(let r=0;r<e.length&&n.length<t;r++){let t=e[r];if(t===void 0||t===`--`)break;if(jr(t)){r++;continue}t.startsWith(`-`)||n.push(t)}return n}async function Hr(e=!1){if(!process.stderr.isTTY)return;let t=process.argv.slice(2);if(e||c(t)||t.includes(`--help`)||t.includes(`-h`)||Kr(Vr(t).join(` `)))return;let{getBannerLastShown:n,getTelemetryDispatcher:r,setBannerLastShown:i}=await zr();r().enabled&&n()!==m&&(process.stderr.write(o.muted("Cloudflare collects anonymous cf usage telemetry. Run `cf cli telemetry disable` to opt out.\n")),i(m))}async function Ur(){try{await Promise.race([b(),S(1e3,void 0,{ref:!1})])}catch{}}function Wr(e){return e instanceof Error&&e.message.startsWith(`Unknown command:`)}function Gr(e){try{let t=e.getInternalMethods().getContext().commands;return!Array.isArray(t)||t.length===0||!t.every(e=>typeof e==`string`)?void 0:t.join(` `)}catch{return}}function Kr(e){let[t,n]=e.split(` `);return t===`complete`||t===`cli`&&n===`telemetry`}async function qr(e,t){if(ne()||e instanceof l)return;let n=Wr(e)?void 0:t;if(!(n===void 0&&!Wr(e)||Kr(n??Vr().join(` `))))try{let{getTelemetryDispatcher:t,UNKNOWN_COMMAND_EVENT:r}=await zr(),{sanitizeError:i}=await import(`./error-sanitization-hmi1CqE5.mjs`),a=t(),o={command:n??r,sanitizedArgs:{},argsUsed:[],argsCombination:``};a.sendCommandEvent(`cf command started`,o),a.sendCommandEvent(`cf command finished`,{...o,outcome:`error`,durationMs:0,...i(e)})}catch{}}async function Jr(e){if(!(!e||Kr(e)))try{let{getTelemetryDispatcher:t}=await zr();t().sendAdhocEvent(`cf help shown`,{command:e})}catch{}}function Yr(e){let t=process.argv.slice(2),n=t.indexOf(`--`),r=n===-1?t:t.slice(0,n);return!r.includes(`--version`)&&!r.includes(`-v`)?!1:(console.log(g(m,e)),!0)}function Xr(e){if(process.argv.slice(2).length>0)return!1;let t=[g(m,e),``,`The Cloudflare CLI — manage your account, zones, and developer platform.`,``,`${o.bold(`Get started:`)}`,` ${o.code(`cf auth login`)} ${o.muted(`Authenticate with Cloudflare`)}`,` ${o.code(`cf --help`)} ${o.muted(`Browse all commands`)}`,` ${o.code(`cf <command> --help`)} ${o.muted(`Per-command help`)}`,` ${o.code(`cf migrate`)} ${o.muted(`Migrate a Wrangler project to cf`)}`,` ${o.code(`cf complete bash`)} ${o.muted(`Install shell completions`)}`,``,`${o.bold(`Docs:`)} ${o.brand(`https://developers.cloudflare.com/`)}`,``];return console.log(t.join(`
|
|
108
|
-
`)),!0}function Zr(e=!1,t){let n=process.argv.slice(2),r=n.indexOf(`--`),i=r===-1?n:n.slice(0,r);i.length!==0&&(i.includes(`--version`)||i.includes(`-v`)||Br(i)!==`complete`&&_(m,{quiet:e||c(i),update:t}))}async function Qr(){let e=process.argv.slice(2);if(c(e)||Br(e)===`complete`||(e.length===0||e.includes(`--version`)||e.includes(`-v`)?process.stdout.isTTY!==!0:process.stderr.isTTY!==!0))return;let{isCI:t}=await import(`./interactive-SgAjen2z.mjs`);if(t)return;let{getUpdateNotice:n,maybeStartBackgroundUpdateCheck:r}=await import(`./update-check-BqSpgzHk.mjs`),i=!1;return{notice:n(m),start(){i||(i=!0,r())}}}function $r(e,t={}){let{onCommandResolved:n,onHelpShown:r,updateCheck:i}=t,a,s=e=>o.brand(e),c=e.indexOf(`--`),l=(c===-1?e:e.slice(0,c)).some(e=>e===`--local`||e===`--no-local`||e.startsWith(`--local=`)),f=yr(e).scriptName(`cf`).parserConfiguration({"sort-commands":!0}).wrap(process.stdout.columns||80).usage(`$0 <command> [options]`).usage(`
|
|
109
|
-
The Cloudflare CLI - manage your Cloudflare resources`).updateStrings({"Commands:":s(`Commands`),"Options:":s(`Options`),"Positionals:":s(`Positionals`),"Examples:":s(`Examples`)}).help(`help`,`Show help`).alias(`h`,`help`).options(Ar).group([...Object.keys(Ar),`help`,`version`],s(`Global flags`));for(let e of Mr)f.command(e);for(let e of br)e.hideCommand?f.command({...e.command,describe:!1}):f.command(e.command);f.middleware(async e=>{Zr(e.quiet,i?.notice),i?.start();let t=Gr(f);t!==void 0&&n?.(t);try{await Hr(e.quiet)}catch{}try{await Lr(e.quiet)}catch{}te(e.mode);let r=String(e._[0]??``);if(!e.help&&(r===`dev`&&l||e.local&&Nr.has(r)))throw Error(`--local is not supported by cf ${r}.`);if(e.persistTo===``)throw Error(`--persist-to requires a non-empty directory.`);if(e.persistTo!==void 0&&!e.local)throw Error(`--persist-to can only be used with --local.`);if(t!==void 0&&u(t,e.local)&&(a=await d(e)),!e.local){let{resolveProfile:t}=await import(`./oauth-DxGgIwFc.mjs`);ee(t(e.profile))}}).demandCommand(1,`You need to specify a command`).strictCommands().strictOptions().recommendCommands().version(m).alias(`v`,`version`).epilogue(`For more information, visit https://developers.cloudflare.com/`).exitProcess(!1).fail((e,t,a)=>{Zr(!1,i?.notice),i?.start();let o=Gr(f);if(o!==void 0&&n?.(o),t)throw t;let s=/^Did you mean (.+)\?$/.exec(e)?.[1];if(!(s&&!a.getCommands().some(([e])=>e.split(` `)[0]===s))){if(e===`Please specify a subcommand`){o!==void 0&&r?.(o),a.showHelp(`log`);return}throw a.showHelp(`error`),Error(e)}});let p=f.showHelp.bind(f);f.showHelp=e=>p(t=>{let i=Gr(f);i!==void 0&&n?.(i),r?.(i??`cf`);let a=Ir(t,i);typeof e==`function`?e(a):e===`log`?console.log(a):console.error(a)});let h=f.getHelp.bind(f);return f.getHelp=async()=>Ir(await h(),Gr(f)),{cli:f,dispose:()=>{a?.(),a=void 0}}}async function ei(e){let t=process.argv;process.argv=[`node`,`cf`,...e];try{await ti()}finally{process.argv=t}}async function ti(){te(void 0),re();let e=await Qr();if(Yr(e?.notice)||Xr(e?.notice))throw e?.start(),new l(0);let t,n,{cli:r,dispose:i}=$r(vt(process.argv),{onCommandResolved:e=>{t=e},onHelpShown:e=>{n=e},updateCheck:e}),a=vt(process.argv),o=a.indexOf(`--`),s=o===-1?a:a.slice(0,o);if(s.includes(`--help`)||s.includes(`-h`)){Zr(!1,e?.notice),e?.start();try{await Lr()}catch{}}try{await r.parse(vt(process.argv)),await Jr(n)}catch(e){if(e instanceof l)throw e;if(t===void 0){try{await Hr()}catch{}try{await Lr()}catch{}}throw await qr(e,t??Gr(r)),Dr(e)}finally{i(),await y(),await Ur()}}export{ti as n,ei as r,$r as t};
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env node
|
|
2
|
-
import{i as e,n as t,r as n}from"./source-38bULAR8.mjs";import{At as r,B as i}from"./dist-BuCJ_55d.mjs";import{n as a,o}from"./chunk-KKDV4JPS-DdzLLtnl.mjs";import{createRequire as s}from"node:module";import{readFile as c}from"node:fs/promises";import{gzipSync as l}from"node:zlib";import{randomUUID as u}from"node:crypto";import{clearTimeout as d,setTimeout as f}from"node:timers";import{Miniflare as p,convertV4MiniflareOptions as m}from"miniflare";var h=t(((e,t)=>{let n=[`nodebuffer`,`arraybuffer`,`fragments`],r=typeof Blob<`u`;r&&n.push(`blob`),t.exports={BINARY_TYPES:n,CLOSE_TIMEOUT:3e4,EMPTY_BUFFER:Buffer.alloc(0),GUID:`258EAFA5-E914-47DA-95CA-C5AB0DC85B11`,hasBlob:r,kForOnEventAttribute:Symbol(`kIsForOnEventAttribute`),kListener:Symbol(`kListener`),kStatusCode:Symbol(`status-code`),kWebSocket:Symbol(`websocket`),NOOP:()=>{}}})),g=t(((e,t)=>{let{EMPTY_BUFFER:r}=h(),i=Buffer[Symbol.species];function a(e,t){if(e.length===0)return r;if(e.length===1)return e[0];let n=Buffer.allocUnsafe(t),a=0;for(let t=0;t<e.length;t++){let r=e[t];n.set(r,a),a+=r.length}return a<t?new i(n.buffer,n.byteOffset,a):n}function o(e,t,n,r,i){for(let a=0;a<i;a++)n[r+a]=e[a]^t[a&3]}function s(e,t){for(let n=0;n<e.length;n++)e[n]^=t[n&3]}function c(e){return e.length===e.buffer.byteLength?e.buffer:e.buffer.slice(e.byteOffset,e.byteOffset+e.length)}function l(e){if(l.readOnly=!0,Buffer.isBuffer(e))return e;let t;return e instanceof ArrayBuffer?t=new i(e):ArrayBuffer.isView(e)?t=new i(e.buffer,e.byteOffset,e.byteLength):(t=Buffer.from(e),l.readOnly=!1),t}if(t.exports={concat:a,mask:o,toArrayBuffer:c,toBuffer:l,unmask:s},!process.env.WS_NO_BUFFER_UTIL)try{let e=n(`bufferutil`);t.exports.mask=function(t,n,r,i,a){a<48?o(t,n,r,i,a):e.mask(t,n,r,i,a)},t.exports.unmask=function(t,n){t.length<32?s(t,n):e.unmask(t,n)}}catch{}})),_=t(((e,t)=>{let n=Symbol(`kDone`),r=Symbol(`kRun`);t.exports=class{constructor(e){this[n]=()=>{this.pending--,this[r]()},this.concurrency=e||1/0,this.jobs=[],this.pending=0}add(e){this.jobs.push(e),this[r]()}[r](){if(this.pending!==this.concurrency&&this.jobs.length){let e=this.jobs.shift();this.pending++,e(this[n])}}}})),v=t(((e,t)=>{let r=n(`zlib`),i=g(),a=_(),{kStatusCode:o}=h(),s=Buffer[Symbol.species],c=Buffer.from([0,0,255,255]),l=Symbol(`permessage-deflate`),u=Symbol(`total-length`),d=Symbol(`callback`),f=Symbol(`buffers`),p=Symbol(`error`),m;t.exports=class{constructor(e){this._options=e||{},this._threshold=this._options.threshold===void 0?1024:this._options.threshold,this._maxPayload=this._options.maxPayload|0,this._isServer=!!this._options.isServer,this._deflate=null,this._inflate=null,this.params=null,m||=new a(this._options.concurrencyLimit===void 0?10:this._options.concurrencyLimit)}static get extensionName(){return`permessage-deflate`}offer(){let e={};return this._options.serverNoContextTakeover&&(e.server_no_context_takeover=!0),this._options.clientNoContextTakeover&&(e.client_no_context_takeover=!0),this._options.serverMaxWindowBits&&(e.server_max_window_bits=this._options.serverMaxWindowBits),this._options.clientMaxWindowBits?e.client_max_window_bits=this._options.clientMaxWindowBits:this._options.clientMaxWindowBits??(e.client_max_window_bits=!0),e}accept(e){return e=this.normalizeParams(e),this.params=this._isServer?this.acceptAsServer(e):this.acceptAsClient(e),this.params}cleanup(){if(this._inflate&&=(this._inflate.close(),null),this._deflate){let e=this._deflate[d];this._deflate.close(),this._deflate=null,e&&e(Error(`The deflate stream was closed while data was being processed`))}}acceptAsServer(e){let t=this._options,n=e.find(e=>!(t.serverNoContextTakeover===!1&&e.server_no_context_takeover||e.server_max_window_bits&&(t.serverMaxWindowBits===!1||typeof t.serverMaxWindowBits==`number`&&t.serverMaxWindowBits>e.server_max_window_bits)||typeof t.clientMaxWindowBits==`number`&&!e.client_max_window_bits));if(!n)throw Error(`None of the extension offers can be accepted`);return t.serverNoContextTakeover&&(n.server_no_context_takeover=!0),t.clientNoContextTakeover&&(n.client_no_context_takeover=!0),typeof t.serverMaxWindowBits==`number`&&(n.server_max_window_bits=t.serverMaxWindowBits),typeof t.clientMaxWindowBits==`number`?n.client_max_window_bits=t.clientMaxWindowBits:(n.client_max_window_bits===!0||t.clientMaxWindowBits===!1)&&delete n.client_max_window_bits,n}acceptAsClient(e){let t=e[0];if(this._options.clientNoContextTakeover===!1&&t.client_no_context_takeover)throw Error(`Unexpected parameter "client_no_context_takeover"`);if(!t.client_max_window_bits)typeof this._options.clientMaxWindowBits==`number`&&(t.client_max_window_bits=this._options.clientMaxWindowBits);else if(this._options.clientMaxWindowBits===!1||typeof this._options.clientMaxWindowBits==`number`&&t.client_max_window_bits>this._options.clientMaxWindowBits)throw Error(`Unexpected or invalid parameter "client_max_window_bits"`);return t}normalizeParams(e){return e.forEach(e=>{Object.keys(e).forEach(t=>{let n=e[t];if(n.length>1)throw Error(`Parameter "${t}" must have only a single value`);if(n=n[0],t===`client_max_window_bits`){if(n!==!0){let e=+n;if(!Number.isInteger(e)||e<8||e>15)throw TypeError(`Invalid value for parameter "${t}": ${n}`);n=e}else if(!this._isServer)throw TypeError(`Invalid value for parameter "${t}": ${n}`)}else if(t===`server_max_window_bits`){let e=+n;if(!Number.isInteger(e)||e<8||e>15)throw TypeError(`Invalid value for parameter "${t}": ${n}`);n=e}else if(t===`client_no_context_takeover`||t===`server_no_context_takeover`){if(n!==!0)throw TypeError(`Invalid value for parameter "${t}": ${n}`)}else throw Error(`Unknown parameter "${t}"`);e[t]=n})}),e}decompress(e,t,n){m.add(r=>{this._decompress(e,t,(e,t)=>{r(),n(e,t)})})}compress(e,t,n){m.add(r=>{this._compress(e,t,(e,t)=>{r(),n(e,t)})})}_decompress(e,t,n){let a=this._isServer?`client`:`server`;if(!this._inflate){let e=`${a}_max_window_bits`,t=typeof this.params[e]==`number`?this.params[e]:r.Z_DEFAULT_WINDOWBITS;this._inflate=r.createInflateRaw({...this._options.zlibInflateOptions,windowBits:t}),this._inflate[l]=this,this._inflate[u]=0,this._inflate[f]=[],this._inflate.on(`error`,b),this._inflate.on(`data`,y)}this._inflate[d]=n,this._inflate.write(e),t&&this._inflate.write(c),this._inflate.flush(()=>{let e=this._inflate[p];if(e){this._inflate.close(),this._inflate=null,n(e);return}let r=i.concat(this._inflate[f],this._inflate[u]);this._inflate._readableState.endEmitted?(this._inflate.close(),this._inflate=null):(this._inflate[u]=0,this._inflate[f]=[],t&&this.params[`${a}_no_context_takeover`]&&this._inflate.reset()),n(null,r)})}_compress(e,t,n){let a=this._isServer?`server`:`client`;if(!this._deflate){let e=`${a}_max_window_bits`,t=typeof this.params[e]==`number`?this.params[e]:r.Z_DEFAULT_WINDOWBITS;this._deflate=r.createDeflateRaw({...this._options.zlibDeflateOptions,windowBits:t}),this._deflate[u]=0,this._deflate[f]=[],this._deflate.on(`data`,v)}this._deflate[d]=n,this._deflate.write(e),this._deflate.flush(r.Z_SYNC_FLUSH,()=>{if(!this._deflate)return;let e=i.concat(this._deflate[f],this._deflate[u]);t&&(e=new s(e.buffer,e.byteOffset,e.length-4)),this._deflate[d]=null,this._deflate[u]=0,this._deflate[f]=[],t&&this.params[`${a}_no_context_takeover`]&&this._deflate.reset(),n(null,e)})}};function v(e){this[f].push(e),this[u]+=e.length}function y(e){if(this[u]+=e.length,this[l]._maxPayload<1||this[u]<=this[l]._maxPayload){this[f].push(e);return}this[p]=RangeError(`Max payload size exceeded`),this[p].code=`WS_ERR_UNSUPPORTED_MESSAGE_LENGTH`,this[p][o]=1009,this.removeListener(`data`,y),this.reset()}function b(e){if(this[l]._inflate=null,this[p]){this[d](this[p]);return}e[o]=1007,this[d](e)}})),y=t(((e,t)=>{let{isUtf8:r}=n(`buffer`),{hasBlob:i}=h(),a=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,1,1,1,1,1,0,0,1,1,0,1,1,0,1,1,1,1,1,1,1,1,1,1,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,1,0,1,0];function o(e){return e>=1e3&&e<=1014&&e!==1004&&e!==1005&&e!==1006||e>=3e3&&e<=4999}function s(e){let t=e.length,n=0;for(;n<t;)if(!(e[n]&128))n++;else if((e[n]&224)==192){if(n+1===t||(e[n+1]&192)!=128||(e[n]&254)==192)return!1;n+=2}else if((e[n]&240)==224){if(n+2>=t||(e[n+1]&192)!=128||(e[n+2]&192)!=128||e[n]===224&&(e[n+1]&224)==128||e[n]===237&&(e[n+1]&224)==160)return!1;n+=3}else if((e[n]&248)==240){if(n+3>=t||(e[n+1]&192)!=128||(e[n+2]&192)!=128||(e[n+3]&192)!=128||e[n]===240&&(e[n+1]&240)==128||e[n]===244&&e[n+1]>143||e[n]>244)return!1;n+=4}else return!1;return!0}function c(e){return i&&typeof e==`object`&&typeof e.arrayBuffer==`function`&&typeof e.type==`string`&&typeof e.stream==`function`&&(e[Symbol.toStringTag]===`Blob`||e[Symbol.toStringTag]===`File`)}if(t.exports={isBlob:c,isValidStatusCode:o,isValidUTF8:s,tokenChars:a},r)t.exports.isValidUTF8=function(e){return e.length<24?s(e):r(e)};else if(!process.env.WS_NO_UTF_8_VALIDATE)try{let e=n(`utf-8-validate`);t.exports.isValidUTF8=function(t){return t.length<32?s(t):e(t)}}catch{}})),b=t(((e,t)=>{let{Writable:r}=n(`stream`),i=v(),{BINARY_TYPES:a,EMPTY_BUFFER:o,kStatusCode:s,kWebSocket:c}=h(),{concat:l,toArrayBuffer:u,unmask:d}=g(),{isValidStatusCode:f,isValidUTF8:p}=y(),m=Buffer[Symbol.species];t.exports=class extends r{constructor(e={}){super(),this._allowSynchronousEvents=e.allowSynchronousEvents===void 0?!0:e.allowSynchronousEvents,this._binaryType=e.binaryType||a[0],this._extensions=e.extensions||{},this._isServer=!!e.isServer,this._maxBufferedChunks=e.maxBufferedChunks|0,this._maxFragments=e.maxFragments|0,this._maxPayload=e.maxPayload|0,this._skipUTF8Validation=!!e.skipUTF8Validation,this[c]=void 0,this._bufferedBytes=0,this._buffers=[],this._compressed=!1,this._payloadLength=0,this._mask=void 0,this._fragmented=0,this._masked=!1,this._fin=!1,this._opcode=0,this._totalPayloadLength=0,this._messageLength=0,this._fragments=[],this._errored=!1,this._loop=!1,this._state=0}_write(e,t,n){if(this._opcode===8&&this._state==0)return n();if(this._maxBufferedChunks>0&&this._buffers.length>=this._maxBufferedChunks){n(this.createError(RangeError,`Too many buffered chunks`,!1,1008,`WS_ERR_TOO_MANY_BUFFERED_PARTS`));return}this._bufferedBytes+=e.length,this._buffers.push(e),this.startLoop(n)}consume(e){if(this._bufferedBytes-=e,e===this._buffers[0].length)return this._buffers.shift();if(e<this._buffers[0].length){let t=this._buffers[0];return this._buffers[0]=new m(t.buffer,t.byteOffset+e,t.length-e),new m(t.buffer,t.byteOffset,e)}let t=Buffer.allocUnsafe(e);do{let n=this._buffers[0],r=t.length-e;e>=n.length?t.set(this._buffers.shift(),r):(t.set(new Uint8Array(n.buffer,n.byteOffset,e),r),this._buffers[0]=new m(n.buffer,n.byteOffset+e,n.length-e)),e-=n.length}while(e>0);return t}startLoop(e){this._loop=!0;do switch(this._state){case 0:this.getInfo(e);break;case 1:this.getPayloadLength16(e);break;case 2:this.getPayloadLength64(e);break;case 3:this.getMask();break;case 4:this.getData(e);break;case 5:case 6:this._loop=!1;return}while(this._loop);this._errored||e()}getInfo(e){if(this._bufferedBytes<2){this._loop=!1;return}let t=this.consume(2);if(t[0]&48){e(this.createError(RangeError,`RSV2 and RSV3 must be clear`,!0,1002,`WS_ERR_UNEXPECTED_RSV_2_3`));return}let n=(t[0]&64)==64;if(n&&!this._extensions[i.extensionName]){e(this.createError(RangeError,`RSV1 must be clear`,!0,1002,`WS_ERR_UNEXPECTED_RSV_1`));return}if(this._fin=(t[0]&128)==128,this._opcode=t[0]&15,this._payloadLength=t[1]&127,this._opcode===0){if(n){e(this.createError(RangeError,`RSV1 must be clear`,!0,1002,`WS_ERR_UNEXPECTED_RSV_1`));return}if(!this._fragmented){e(this.createError(RangeError,`invalid opcode 0`,!0,1002,`WS_ERR_INVALID_OPCODE`));return}this._opcode=this._fragmented}else if(this._opcode===1||this._opcode===2){if(this._fragmented){e(this.createError(RangeError,`invalid opcode ${this._opcode}`,!0,1002,`WS_ERR_INVALID_OPCODE`));return}this._compressed=n}else if(this._opcode>7&&this._opcode<11){if(!this._fin){e(this.createError(RangeError,`FIN must be set`,!0,1002,`WS_ERR_EXPECTED_FIN`));return}if(n){e(this.createError(RangeError,`RSV1 must be clear`,!0,1002,`WS_ERR_UNEXPECTED_RSV_1`));return}if(this._payloadLength>125||this._opcode===8&&this._payloadLength===1){e(this.createError(RangeError,`invalid payload length ${this._payloadLength}`,!0,1002,`WS_ERR_INVALID_CONTROL_PAYLOAD_LENGTH`));return}}else{e(this.createError(RangeError,`invalid opcode ${this._opcode}`,!0,1002,`WS_ERR_INVALID_OPCODE`));return}if(!this._fin&&!this._fragmented&&(this._fragmented=this._opcode),this._masked=(t[1]&128)==128,this._isServer){if(!this._masked){e(this.createError(RangeError,`MASK must be set`,!0,1002,`WS_ERR_EXPECTED_MASK`));return}}else if(this._masked){e(this.createError(RangeError,`MASK must be clear`,!0,1002,`WS_ERR_UNEXPECTED_MASK`));return}this._payloadLength===126?this._state=1:this._payloadLength===127?this._state=2:this.haveLength(e)}getPayloadLength16(e){if(this._bufferedBytes<2){this._loop=!1;return}this._payloadLength=this.consume(2).readUInt16BE(0),this.haveLength(e)}getPayloadLength64(e){if(this._bufferedBytes<8){this._loop=!1;return}let t=this.consume(8),n=t.readUInt32BE(0);if(n>2**21-1){e(this.createError(RangeError,`Unsupported WebSocket frame: payload length > 2^53 - 1`,!1,1009,`WS_ERR_UNSUPPORTED_DATA_PAYLOAD_LENGTH`));return}this._payloadLength=n*2**32+t.readUInt32BE(4),this.haveLength(e)}haveLength(e){if(this._payloadLength&&this._opcode<8&&(this._totalPayloadLength+=this._payloadLength,this._totalPayloadLength>this._maxPayload&&this._maxPayload>0)){e(this.createError(RangeError,`Max payload size exceeded`,!1,1009,`WS_ERR_UNSUPPORTED_MESSAGE_LENGTH`));return}this._masked?this._state=3:this._state=4}getMask(){if(this._bufferedBytes<4){this._loop=!1;return}this._mask=this.consume(4),this._state=4}getData(e){let t=o;if(this._payloadLength){if(this._bufferedBytes<this._payloadLength){this._loop=!1;return}t=this.consume(this._payloadLength),this._masked&&(this._mask[0]|this._mask[1]|this._mask[2]|this._mask[3])!==0&&d(t,this._mask)}if(this._opcode>7){this.controlMessage(t,e);return}if(this._compressed){this._state=5,this.decompress(t,e);return}if(t.length){if(this._maxFragments>0&&this._fragments.length>=this._maxFragments){e(this.createError(RangeError,`Too many message fragments`,!1,1008,`WS_ERR_TOO_MANY_BUFFERED_PARTS`));return}this._messageLength=this._totalPayloadLength,this._fragments.push(t)}this.dataMessage(e)}decompress(e,t){this._extensions[i.extensionName].decompress(e,this._fin,(e,n)=>{if(e)return t(e);if(n.length){if(this._messageLength+=n.length,this._messageLength>this._maxPayload&&this._maxPayload>0){t(this.createError(RangeError,`Max payload size exceeded`,!1,1009,`WS_ERR_UNSUPPORTED_MESSAGE_LENGTH`));return}if(this._maxFragments>0&&this._fragments.length>=this._maxFragments){t(this.createError(RangeError,`Too many message fragments`,!1,1008,`WS_ERR_TOO_MANY_BUFFERED_PARTS`));return}this._fragments.push(n)}this.dataMessage(t),this._state===0&&this.startLoop(t)})}dataMessage(e){if(!this._fin){this._state=0;return}let t=this._messageLength,n=this._fragments;if(this._totalPayloadLength=0,this._messageLength=0,this._fragmented=0,this._fragments=[],this._opcode===2){let r;r=this._binaryType===`nodebuffer`?l(n,t):this._binaryType===`arraybuffer`?u(l(n,t)):this._binaryType===`blob`?new Blob(n):n,this._allowSynchronousEvents?(this.emit(`message`,r,!0),this._state=0):(this._state=6,setImmediate(()=>{this.emit(`message`,r,!0),this._state=0,this.startLoop(e)}))}else{let r=l(n,t);if(!this._skipUTF8Validation&&!p(r)){e(this.createError(Error,`invalid UTF-8 sequence`,!0,1007,`WS_ERR_INVALID_UTF8`));return}this._state===5||this._allowSynchronousEvents?(this.emit(`message`,r,!1),this._state=0):(this._state=6,setImmediate(()=>{this.emit(`message`,r,!1),this._state=0,this.startLoop(e)}))}}controlMessage(e,t){if(this._opcode===8){if(e.length===0)this._loop=!1,this.emit(`conclude`,1005,o),this.end();else{let n=e.readUInt16BE(0);if(!f(n)){t(this.createError(RangeError,`invalid status code ${n}`,!0,1002,`WS_ERR_INVALID_CLOSE_CODE`));return}let r=new m(e.buffer,e.byteOffset+2,e.length-2);if(!this._skipUTF8Validation&&!p(r)){t(this.createError(Error,`invalid UTF-8 sequence`,!0,1007,`WS_ERR_INVALID_UTF8`));return}this._loop=!1,this.emit(`conclude`,n,r),this.end()}this._state=0;return}this._allowSynchronousEvents?(this.emit(this._opcode===9?`ping`:`pong`,e),this._state=0):(this._state=6,setImmediate(()=>{this.emit(this._opcode===9?`ping`:`pong`,e),this._state=0,this.startLoop(t)}))}createError(e,t,n,r,i){this._loop=!1,this._errored=!0;let a=new e(n?`Invalid WebSocket frame: ${t}`:t);return Error.captureStackTrace(a,this.createError),a.code=i,a[s]=r,a}}})),x=t(((e,t)=>{let{Duplex:r}=n(`stream`),{randomFillSync:i}=n(`crypto`),{types:{isUint8Array:a}}=n(`util`),o=v(),{EMPTY_BUFFER:s,kWebSocket:c,NOOP:l}=h(),{isBlob:u,isValidStatusCode:d}=y(),{mask:f,toBuffer:p}=g(),m=Symbol(`kByteLength`),_=Buffer.alloc(4),b=8*1024,x,S=b;t.exports=class e{constructor(e,t,n){this._extensions=t||{},n&&(this._generateMask=n,this._maskBuffer=Buffer.alloc(4)),this._socket=e,this._firstFragment=!0,this._compress=!1,this._bufferedBytes=0,this._queue=[],this._state=0,this.onerror=l,this[c]=void 0}static frame(e,t){let n,r=!1,a=2,o=!1;t.mask&&(n=t.maskBuffer||_,t.generateMask?t.generateMask(n):(S===b&&(x===void 0&&(x=Buffer.alloc(b)),i(x,0,b),S=0),n[0]=x[S++],n[1]=x[S++],n[2]=x[S++],n[3]=x[S++]),o=(n[0]|n[1]|n[2]|n[3])===0,a=6);let s;typeof e==`string`?(!t.mask||o)&&t[m]!==void 0?s=t[m]:(e=Buffer.from(e),s=e.length):(s=e.length,r=t.mask&&t.readOnly&&!o);let c=s;s>=65536?(a+=8,c=127):s>125&&(a+=2,c=126);let l=Buffer.allocUnsafe(r?s+a:a);return l[0]=t.fin?t.opcode|128:t.opcode,t.rsv1&&(l[0]|=64),l[1]=c,c===126?l.writeUInt16BE(s,2):c===127&&(l[2]=l[3]=0,l.writeUIntBE(s,4,6)),!t.mask||(l[1]|=128,l[a-4]=n[0],l[a-3]=n[1],l[a-2]=n[2],l[a-1]=n[3],o)?[l,e]:r?(f(e,n,l,a,s),[l]):(f(e,n,e,0,s),[l,e])}close(t,n,r,i){let o;if(t===void 0)o=s;else if(typeof t!=`number`||!d(t))throw TypeError(`First argument must be a valid error code number`);else if(n===void 0||!n.length)o=Buffer.allocUnsafe(2),o.writeUInt16BE(t,0);else{let e=Buffer.byteLength(n);if(e>123)throw RangeError(`The message must not be greater than 123 bytes`);if(o=Buffer.allocUnsafe(2+e),o.writeUInt16BE(t,0),typeof n==`string`)o.write(n,2);else if(a(n))o.set(n,2);else throw TypeError(`Second argument must be a string or a Uint8Array`)}let c={[m]:o.length,fin:!0,generateMask:this._generateMask,mask:r,maskBuffer:this._maskBuffer,opcode:8,readOnly:!1,rsv1:!1};this._state===0?this.sendFrame(e.frame(o,c),i):this.enqueue([this.dispatch,o,!1,c,i])}ping(t,n,r){let i,a;if(typeof t==`string`?(i=Buffer.byteLength(t),a=!1):u(t)?(i=t.size,a=!1):(t=p(t),i=t.length,a=p.readOnly),i>125)throw RangeError(`The data size must not be greater than 125 bytes`);let o={[m]:i,fin:!0,generateMask:this._generateMask,mask:n,maskBuffer:this._maskBuffer,opcode:9,readOnly:a,rsv1:!1};u(t)?this._state===0?this.getBlobData(t,!1,o,r):this.enqueue([this.getBlobData,t,!1,o,r]):this._state===0?this.sendFrame(e.frame(t,o),r):this.enqueue([this.dispatch,t,!1,o,r])}pong(t,n,r){let i,a;if(typeof t==`string`?(i=Buffer.byteLength(t),a=!1):u(t)?(i=t.size,a=!1):(t=p(t),i=t.length,a=p.readOnly),i>125)throw RangeError(`The data size must not be greater than 125 bytes`);let o={[m]:i,fin:!0,generateMask:this._generateMask,mask:n,maskBuffer:this._maskBuffer,opcode:10,readOnly:a,rsv1:!1};u(t)?this._state===0?this.getBlobData(t,!1,o,r):this.enqueue([this.getBlobData,t,!1,o,r]):this._state===0?this.sendFrame(e.frame(t,o),r):this.enqueue([this.dispatch,t,!1,o,r])}send(e,t,n){let r=this._extensions[o.extensionName],i=t.binary?2:1,a=t.compress,s,c;typeof e==`string`?(s=Buffer.byteLength(e),c=!1):u(e)?(s=e.size,c=!1):(e=p(e),s=e.length,c=p.readOnly),this._firstFragment?(this._firstFragment=!1,a&&r&&r.params[r._isServer?`server_no_context_takeover`:`client_no_context_takeover`]&&(a=s>=r._threshold),this._compress=a):(a=!1,i=0),t.fin&&(this._firstFragment=!0);let l={[m]:s,fin:t.fin,generateMask:this._generateMask,mask:t.mask,maskBuffer:this._maskBuffer,opcode:i,readOnly:c,rsv1:a};u(e)?this._state===0?this.getBlobData(e,this._compress,l,n):this.enqueue([this.getBlobData,e,this._compress,l,n]):this._state===0?this.dispatch(e,this._compress,l,n):this.enqueue([this.dispatch,e,this._compress,l,n])}getBlobData(t,n,r,i){this._bufferedBytes+=r[m],this._state=2,t.arrayBuffer().then(t=>{if(this._socket.destroyed){let e=Error(`The socket was closed while the blob was being read`);process.nextTick(C,this,e,i);return}this._bufferedBytes-=r[m];let a=p(t);n?this.dispatch(a,n,r,i):(this._state=0,this.sendFrame(e.frame(a,r),i),this.dequeue())}).catch(e=>{process.nextTick(w,this,e,i)})}dispatch(t,n,r,i){if(!n){this.sendFrame(e.frame(t,r),i);return}let a=this._extensions[o.extensionName];this._bufferedBytes+=r[m],this._state=1,a.compress(t,r.fin,(t,n)=>{if(this._socket.destroyed){let e=Error(`The socket was closed while data was being compressed`);C(this,e,i);return}this._bufferedBytes-=r[m],this._state=0,r.readOnly=!1,this.sendFrame(e.frame(n,r),i),this.dequeue()})}dequeue(){for(;this._state===0&&this._queue.length;){let e=this._queue.shift();this._bufferedBytes-=e[3][m],Reflect.apply(e[0],this,e.slice(1))}}enqueue(e){this._bufferedBytes+=e[3][m],this._queue.push(e)}sendFrame(e,t){e.length===2?(this._socket.cork(),this._socket.write(e[0]),this._socket.write(e[1],t),this._socket.uncork()):this._socket.write(e[0],t)}};function C(e,t,n){typeof n==`function`&&n(t);for(let n=0;n<e._queue.length;n++){let r=e._queue[n],i=r[r.length-1];typeof i==`function`&&i(t)}}function w(e,t,n){C(e,t,n),e.onerror(t)}})),S=t(((e,t)=>{let{kForOnEventAttribute:n,kListener:r}=h(),i=Symbol(`kCode`),a=Symbol(`kData`),o=Symbol(`kError`),s=Symbol(`kMessage`),c=Symbol(`kReason`),l=Symbol(`kTarget`),u=Symbol(`kType`),d=Symbol(`kWasClean`);var f=class{constructor(e){this[l]=null,this[u]=e}get target(){return this[l]}get type(){return this[u]}};Object.defineProperty(f.prototype,`target`,{enumerable:!0}),Object.defineProperty(f.prototype,`type`,{enumerable:!0});var p=class extends f{constructor(e,t={}){super(e),this[i]=t.code===void 0?0:t.code,this[c]=t.reason===void 0?``:t.reason,this[d]=t.wasClean===void 0?!1:t.wasClean}get code(){return this[i]}get reason(){return this[c]}get wasClean(){return this[d]}};Object.defineProperty(p.prototype,`code`,{enumerable:!0}),Object.defineProperty(p.prototype,`reason`,{enumerable:!0}),Object.defineProperty(p.prototype,`wasClean`,{enumerable:!0});var m=class extends f{constructor(e,t={}){super(e),this[o]=t.error===void 0?null:t.error,this[s]=t.message===void 0?``:t.message}get error(){return this[o]}get message(){return this[s]}};Object.defineProperty(m.prototype,`error`,{enumerable:!0}),Object.defineProperty(m.prototype,`message`,{enumerable:!0});var g=class extends f{constructor(e,t={}){super(e),this[a]=t.data===void 0?null:t.data}get data(){return this[a]}};Object.defineProperty(g.prototype,`data`,{enumerable:!0}),t.exports={CloseEvent:p,ErrorEvent:m,Event:f,EventTarget:{addEventListener(e,t,i={}){for(let a of this.listeners(e))if(!i[n]&&a[r]===t&&!a[n])return;let a;if(e===`message`)a=function(e,n){let r=new g(`message`,{data:n?e:e.toString()});r[l]=this,_(t,this,r)};else if(e===`close`)a=function(e,n){let r=new p(`close`,{code:e,reason:n.toString(),wasClean:this._closeFrameReceived&&this._closeFrameSent});r[l]=this,_(t,this,r)};else if(e===`error`)a=function(e){let n=new m(`error`,{error:e,message:e.message});n[l]=this,_(t,this,n)};else if(e===`open`)a=function(){let e=new f(`open`);e[l]=this,_(t,this,e)};else return;a[n]=!!i[n],a[r]=t,i.once?this.once(e,a):this.on(e,a)},removeEventListener(e,t){for(let i of this.listeners(e))if(i[r]===t&&!i[n]){this.removeListener(e,i);break}}},MessageEvent:g};function _(e,t,n){typeof e==`object`&&e.handleEvent?e.handleEvent.call(e,n):e.call(t,n)}})),C=t(((e,t)=>{let{tokenChars:n}=y();function r(e,t,n){e[t]===void 0?e[t]=[n]:e[t].push(n)}function i(e){let t=Object.create(null),i=Object.create(null),a=!1,o=!1,s=!1,c,l,u=-1,d=-1,f=-1,p=0;for(;p<e.length;p++)if(d=e.charCodeAt(p),c===void 0)if(f===-1&&n[d]===1)u===-1&&(u=p);else if(p!==0&&(d===32||d===9))f===-1&&u!==-1&&(f=p);else if(d===59||d===44){if(u===-1)throw SyntaxError(`Unexpected character at index ${p}`);f===-1&&(f=p);let n=e.slice(u,f);d===44?(r(t,n,i),i=Object.create(null)):c=n,u=f=-1}else throw SyntaxError(`Unexpected character at index ${p}`);else if(l===void 0)if(f===-1&&n[d]===1)u===-1&&(u=p);else if(d===32||d===9)f===-1&&u!==-1&&(f=p);else if(d===59||d===44){if(u===-1)throw SyntaxError(`Unexpected character at index ${p}`);f===-1&&(f=p),r(i,e.slice(u,f),!0),d===44&&(r(t,c,i),i=Object.create(null),c=void 0),u=f=-1}else if(d===61&&u!==-1&&f===-1)l=e.slice(u,p),u=f=-1;else throw SyntaxError(`Unexpected character at index ${p}`);else if(o){if(n[d]!==1)throw SyntaxError(`Unexpected character at index ${p}`);u===-1?u=p:a||=!0,o=!1}else if(s)if(n[d]===1)u===-1&&(u=p);else if(d===34&&u!==-1)s=!1,f=p;else if(d===92)o=!0;else throw SyntaxError(`Unexpected character at index ${p}`);else if(d===34&&e.charCodeAt(p-1)===61)s=!0;else if(f===-1&&n[d]===1)u===-1&&(u=p);else if(u!==-1&&(d===32||d===9))f===-1&&(f=p);else if(d===59||d===44){if(u===-1)throw SyntaxError(`Unexpected character at index ${p}`);f===-1&&(f=p);let n=e.slice(u,f);a&&=(n=n.replace(/\\/g,``),!1),r(i,l,n),d===44&&(r(t,c,i),i=Object.create(null),c=void 0),l=void 0,u=f=-1}else throw SyntaxError(`Unexpected character at index ${p}`);if(u===-1||s||d===32||d===9)throw SyntaxError(`Unexpected end of input`);f===-1&&(f=p);let m=e.slice(u,f);return c===void 0?r(t,m,i):(l===void 0?r(i,m,!0):a?r(i,l,m.replace(/\\/g,``)):r(i,l,m),r(t,c,i)),t}function a(e){return Object.keys(e).map(t=>{let n=e[t];return Array.isArray(n)||(n=[n]),n.map(e=>[t].concat(Object.keys(e).map(t=>{let n=e[t];return Array.isArray(n)||(n=[n]),n.map(e=>e===!0?t:`${t}=${e}`).join(`; `)})).join(`; `)).join(`, `)}).join(`, `)}t.exports={format:a,parse:i}})),w=t(((e,t)=>{let r=n(`events`),i=n(`https`),a=n(`http`),o=n(`net`),s=n(`tls`),{randomBytes:c,createHash:l}=n(`crypto`),{Duplex:u,Readable:d}=n(`stream`),{URL:f}=n(`url`),p=v(),m=b(),_=x(),{isBlob:w}=y(),{BINARY_TYPES:T,CLOSE_TIMEOUT:E,EMPTY_BUFFER:D,GUID:O,kForOnEventAttribute:k,kListener:A,kStatusCode:j,kWebSocket:M,NOOP:N}=h(),{EventTarget:{addEventListener:P,removeEventListener:F}}=S(),{format:I,parse:L}=C(),{toBuffer:R}=g(),z=Symbol(`kAborted`),B=[8,13],V=[`CONNECTING`,`OPEN`,`CLOSING`,`CLOSED`],H=/^[!#$%&'*+\-.0-9A-Z^_`|a-z~]+$/;var U=class e extends r{constructor(t,n,r){super(),this._binaryType=T[0],this._closeCode=1006,this._closeFrameReceived=!1,this._closeFrameSent=!1,this._closeMessage=D,this._closeTimer=null,this._errorEmitted=!1,this._extensions={},this._paused=!1,this._protocol=``,this._readyState=e.CONNECTING,this._receiver=null,this._sender=null,this._socket=null,t===null?(this._autoPong=r.autoPong,this._closeTimeout=r.closeTimeout,this._isServer=!0):(this._bufferedAmount=0,this._isServer=!1,this._redirects=0,n===void 0?n=[]:Array.isArray(n)||(typeof n==`object`&&n?(r=n,n=[]):n=[n]),W(this,t,n,r))}get binaryType(){return this._binaryType}set binaryType(e){T.includes(e)&&(this._binaryType=e,this._receiver&&(this._receiver._binaryType=e))}get bufferedAmount(){return this._socket?this._socket._writableState.length+this._sender._bufferedBytes:this._bufferedAmount}get extensions(){return Object.keys(this._extensions).join()}get isPaused(){return this._paused}get onclose(){return null}get onerror(){return null}get onopen(){return null}get onmessage(){return null}get protocol(){return this._protocol}get readyState(){return this._readyState}get url(){return this._url}setSocket(t,n,r){let i=new m({allowSynchronousEvents:r.allowSynchronousEvents,binaryType:this.binaryType,extensions:this._extensions,isServer:this._isServer,maxBufferedChunks:r.maxBufferedChunks,maxFragments:r.maxFragments,maxPayload:r.maxPayload,skipUTF8Validation:r.skipUTF8Validation}),a=new _(t,this._extensions,r.generateMask);this._receiver=i,this._sender=a,this._socket=t,i[M]=this,a[M]=this,t[M]=this,i.on(`conclude`,ee),i.on(`drain`,te),i.on(`error`,ne),i.on(`message`,re),i.on(`ping`,ie),i.on(`pong`,ae),a.onerror=oe,t.setTimeout&&t.setTimeout(0),t.setNoDelay&&t.setNoDelay(),n.length>0&&t.unshift(n),t.on(`close`,se),t.on(`data`,$),t.on(`end`,ce),t.on(`error`,le),this._readyState=e.OPEN,this.emit(`open`)}emitClose(){if(!this._socket){this._readyState=e.CLOSED,this.emit(`close`,this._closeCode,this._closeMessage);return}this._extensions[p.extensionName]&&this._extensions[p.extensionName].cleanup(),this._receiver.removeAllListeners(),this._readyState=e.CLOSED,this.emit(`close`,this._closeCode,this._closeMessage)}close(t,n){if(this.readyState!==e.CLOSED){if(this.readyState===e.CONNECTING){J(this,this._req,`WebSocket was closed before the connection was established`);return}if(this.readyState===e.CLOSING){this._closeFrameSent&&(this._closeFrameReceived||this._receiver._writableState.errorEmitted)&&this._socket.end();return}this._readyState=e.CLOSING,this._sender.close(t,n,!this._isServer,e=>{e||(this._closeFrameSent=!0,(this._closeFrameReceived||this._receiver._writableState.errorEmitted)&&this._socket.end())}),Q(this)}}pause(){this.readyState===e.CONNECTING||this.readyState===e.CLOSED||(this._paused=!0,this._socket.pause())}ping(t,n,r){if(this.readyState===e.CONNECTING)throw Error(`WebSocket is not open: readyState 0 (CONNECTING)`);if(typeof t==`function`?(r=t,t=n=void 0):typeof n==`function`&&(r=n,n=void 0),typeof t==`number`&&(t=t.toString()),this.readyState!==e.OPEN){Y(this,t,r);return}n===void 0&&(n=!this._isServer),this._sender.ping(t||D,n,r)}pong(t,n,r){if(this.readyState===e.CONNECTING)throw Error(`WebSocket is not open: readyState 0 (CONNECTING)`);if(typeof t==`function`?(r=t,t=n=void 0):typeof n==`function`&&(r=n,n=void 0),typeof t==`number`&&(t=t.toString()),this.readyState!==e.OPEN){Y(this,t,r);return}n===void 0&&(n=!this._isServer),this._sender.pong(t||D,n,r)}resume(){this.readyState===e.CONNECTING||this.readyState===e.CLOSED||(this._paused=!1,this._receiver._writableState.needDrain||this._socket.resume())}send(t,n,r){if(this.readyState===e.CONNECTING)throw Error(`WebSocket is not open: readyState 0 (CONNECTING)`);if(typeof n==`function`&&(r=n,n={}),typeof t==`number`&&(t=t.toString()),this.readyState!==e.OPEN){Y(this,t,r);return}let i={binary:typeof t!=`string`,mask:!this._isServer,compress:!0,fin:!0,...n};this._extensions[p.extensionName]||(i.compress=!1),this._sender.send(t||D,i,r)}terminate(){if(this.readyState!==e.CLOSED){if(this.readyState===e.CONNECTING){J(this,this._req,`WebSocket was closed before the connection was established`);return}this._socket&&(this._readyState=e.CLOSING,this._socket.destroy())}}};Object.defineProperty(U,`CONNECTING`,{enumerable:!0,value:V.indexOf(`CONNECTING`)}),Object.defineProperty(U.prototype,`CONNECTING`,{enumerable:!0,value:V.indexOf(`CONNECTING`)}),Object.defineProperty(U,`OPEN`,{enumerable:!0,value:V.indexOf(`OPEN`)}),Object.defineProperty(U.prototype,`OPEN`,{enumerable:!0,value:V.indexOf(`OPEN`)}),Object.defineProperty(U,`CLOSING`,{enumerable:!0,value:V.indexOf(`CLOSING`)}),Object.defineProperty(U.prototype,`CLOSING`,{enumerable:!0,value:V.indexOf(`CLOSING`)}),Object.defineProperty(U,`CLOSED`,{enumerable:!0,value:V.indexOf(`CLOSED`)}),Object.defineProperty(U.prototype,`CLOSED`,{enumerable:!0,value:V.indexOf(`CLOSED`)}),[`binaryType`,`bufferedAmount`,`extensions`,`isPaused`,`protocol`,`readyState`,`url`].forEach(e=>{Object.defineProperty(U.prototype,e,{enumerable:!0})}),[`open`,`error`,`close`,`message`].forEach(e=>{Object.defineProperty(U.prototype,`on${e}`,{enumerable:!0,get(){for(let t of this.listeners(e))if(t[k])return t[A];return null},set(t){for(let t of this.listeners(e))if(t[k]){this.removeListener(e,t);break}typeof t==`function`&&this.addEventListener(e,t,{[k]:!0})}})}),U.prototype.addEventListener=P,U.prototype.removeEventListener=F,t.exports=U;function W(e,t,n,r){let o={allowSynchronousEvents:!0,autoPong:!0,closeTimeout:E,protocolVersion:B[1],maxBufferedChunks:1024*1024,maxFragments:128*1024,maxPayload:100*1024*1024,skipUTF8Validation:!1,perMessageDeflate:!0,followRedirects:!1,maxRedirects:10,...r,socketPath:void 0,hostname:void 0,protocol:void 0,timeout:void 0,method:`GET`,host:void 0,path:void 0,port:void 0};if(e._autoPong=o.autoPong,e._closeTimeout=o.closeTimeout,!B.includes(o.protocolVersion))throw RangeError(`Unsupported protocol version: ${o.protocolVersion} (supported versions: ${B.join(`, `)})`);let s;if(t instanceof f)s=t;else try{s=new f(t)}catch{throw SyntaxError(`Invalid URL: ${t}`)}s.protocol===`http:`?s.protocol=`ws:`:s.protocol===`https:`&&(s.protocol=`wss:`),e._url=s.href;let u=s.protocol===`wss:`,d=s.protocol===`ws+unix:`,m;if(s.protocol!==`ws:`&&!u&&!d?m=`The URL's protocol must be one of "ws:", "wss:", "http:", "https:", or "ws+unix:"`:d&&!s.pathname?m=`The URL's pathname is empty`:s.hash&&(m=`The URL contains a fragment identifier`),m){let t=SyntaxError(m);if(e._redirects===0)throw t;G(e,t);return}let h=u?443:80,g=c(16).toString(`base64`),_=u?i.request:a.request,v=new Set,y;if(o.createConnection=o.createConnection||(u?q:K),o.defaultPort=o.defaultPort||h,o.port=s.port||h,o.host=s.hostname.startsWith(`[`)?s.hostname.slice(1,-1):s.hostname,o.headers={...o.headers,"Sec-WebSocket-Version":o.protocolVersion,"Sec-WebSocket-Key":g,Connection:`Upgrade`,Upgrade:`websocket`},o.path=s.pathname+s.search,o.timeout=o.handshakeTimeout,o.perMessageDeflate&&(y=new p({...o.perMessageDeflate,isServer:!1,maxPayload:o.maxPayload}),o.headers[`Sec-WebSocket-Extensions`]=I({[p.extensionName]:y.offer()})),n.length){for(let e of n){if(typeof e!=`string`||!H.test(e)||v.has(e))throw SyntaxError(`An invalid or duplicated subprotocol was specified`);v.add(e)}o.headers[`Sec-WebSocket-Protocol`]=n.join(`,`)}if(o.origin&&(o.protocolVersion<13?o.headers[`Sec-WebSocket-Origin`]=o.origin:o.headers.Origin=o.origin),(s.username||s.password)&&(o.auth=`${s.username}:${s.password}`),d){let e=o.path.split(`:`);o.socketPath=e[0],o.path=e[1]}let b;if(o.followRedirects){if(e._redirects===0){e._originalIpc=d,e._originalSecure=u,e._originalHostOrSocketPath=d?o.socketPath:s.host;let t=r&&r.headers;if(r={...r,headers:{}},t)for(let[e,n]of Object.entries(t))r.headers[e.toLowerCase()]=n}else if(e.listenerCount(`redirect`)===0){let t=d?e._originalIpc?o.socketPath===e._originalHostOrSocketPath:!1:e._originalIpc?!1:s.host===e._originalHostOrSocketPath;(!t||e._originalSecure&&!u)&&(delete o.headers.authorization,delete o.headers.cookie,t||delete o.headers.host,o.auth=void 0)}o.auth&&!r.headers.authorization&&(r.headers.authorization=`Basic `+Buffer.from(o.auth).toString(`base64`)),b=e._req=_(o),e._redirects&&e.emit(`redirect`,e.url,b)}else b=e._req=_(o);o.timeout&&b.on(`timeout`,()=>{J(e,b,`Opening handshake has timed out`)}),b.on(`error`,t=>{b===null||b[z]||(b=e._req=null,G(e,t))}),b.on(`response`,i=>{let a=i.headers.location,s=i.statusCode;if(a&&o.followRedirects&&s>=300&&s<400){if(++e._redirects>o.maxRedirects){J(e,b,`Maximum redirects exceeded`);return}b.abort();let i;try{i=new f(a,t)}catch{G(e,SyntaxError(`Invalid URL: ${a}`));return}W(e,i,n,r)}else e.emit(`unexpected-response`,b,i)||J(e,b,`Unexpected server response: ${i.statusCode}`)}),b.on(`upgrade`,(t,n,r)=>{if(e.emit(`upgrade`,t),e.readyState!==U.CONNECTING)return;b=e._req=null;let i=t.headers.upgrade;if(i===void 0||i.toLowerCase()!==`websocket`){J(e,n,`Invalid Upgrade header`);return}let a=l(`sha1`).update(g+O).digest(`base64`);if(t.headers[`sec-websocket-accept`]!==a){J(e,n,`Invalid Sec-WebSocket-Accept header`);return}let s=t.headers[`sec-websocket-protocol`],c;if(s===void 0?v.size&&(c=`Server sent no subprotocol`):v.size?v.has(s)||(c=`Server sent an invalid subprotocol`):c=`Server sent a subprotocol but none was requested`,c){J(e,n,c);return}s&&(e._protocol=s);let u=t.headers[`sec-websocket-extensions`];if(u!==void 0){if(!y){J(e,n,`Server sent a Sec-WebSocket-Extensions header but no extension was requested`);return}let t;try{t=L(u)}catch{J(e,n,`Invalid Sec-WebSocket-Extensions header`);return}let r=Object.keys(t);if(r.length!==1||r[0]!==p.extensionName){J(e,n,`Server indicated an extension that was not requested`);return}try{y.accept(t[p.extensionName])}catch{J(e,n,`Invalid Sec-WebSocket-Extensions header`);return}e._extensions[p.extensionName]=y}e.setSocket(n,r,{allowSynchronousEvents:o.allowSynchronousEvents,generateMask:o.generateMask,maxBufferedChunks:o.maxBufferedChunks,maxFragments:o.maxFragments,maxPayload:o.maxPayload,skipUTF8Validation:o.skipUTF8Validation})}),o.finishRequest?o.finishRequest(b,e):b.end()}function G(e,t){e._readyState=U.CLOSING,e._errorEmitted=!0,e.emit(`error`,t),e.emitClose()}function K(e){return e.path=e.socketPath,o.connect(e)}function q(e){return e.path=void 0,!e.servername&&e.servername!==``&&(e.servername=o.isIP(e.host)?``:e.host),s.connect(e)}function J(e,t,n){e._readyState=U.CLOSING;let r=Error(n);Error.captureStackTrace(r,J),t.setHeader?(t[z]=!0,t.abort(),t.socket&&!t.socket.destroyed&&t.socket.destroy(),process.nextTick(G,e,r)):(t.destroy(r),t.once(`error`,e.emit.bind(e,`error`)),t.once(`close`,e.emitClose.bind(e)))}function Y(e,t,n){if(t){let n=w(t)?t.size:R(t).length;e._socket?e._sender._bufferedBytes+=n:e._bufferedAmount+=n}if(n){let t=Error(`WebSocket is not open: readyState ${e.readyState} (${V[e.readyState]})`);process.nextTick(n,t)}}function ee(e,t){let n=this[M];n._closeFrameReceived=!0,n._closeMessage=t,n._closeCode=e,n._socket[M]!==void 0&&(n._socket.removeListener(`data`,$),process.nextTick(Z,n._socket),e===1005?n.close():n.close(e,t))}function te(){let e=this[M];e.isPaused||e._socket.resume()}function ne(e){let t=this[M];t._socket[M]!==void 0&&(t._socket.removeListener(`data`,$),process.nextTick(Z,t._socket),t.close(e[j])),t._errorEmitted||(t._errorEmitted=!0,t.emit(`error`,e))}function X(){this[M].emitClose()}function re(e,t){this[M].emit(`message`,e,t)}function ie(e){let t=this[M];t._autoPong&&t.pong(e,!this._isServer,N),t.emit(`ping`,e)}function ae(e){this[M].emit(`pong`,e)}function Z(e){e.resume()}function oe(e){let t=this[M];t.readyState!==U.CLOSED&&(t.readyState===U.OPEN&&(t._readyState=U.CLOSING,Q(t)),this._socket.end(),t._errorEmitted||(t._errorEmitted=!0,t.emit(`error`,e)))}function Q(e){e._closeTimer=setTimeout(e._socket.destroy.bind(e._socket),e._closeTimeout)}function se(){let e=this[M];if(this.removeListener(`close`,se),this.removeListener(`data`,$),this.removeListener(`end`,ce),e._readyState=U.CLOSING,!this._readableState.endEmitted&&!e._closeFrameReceived&&!e._receiver._writableState.errorEmitted&&this._readableState.length!==0){let t=this.read(this._readableState.length);e._receiver.write(t)}e._receiver.end(),this[M]=void 0,clearTimeout(e._closeTimer),e._receiver._writableState.finished||e._receiver._writableState.errorEmitted?e.emitClose():(e._receiver.on(`error`,X),e._receiver.on(`finish`,X))}function $(e){this[M]._receiver.write(e)||this.pause()}function ce(){let e=this[M];e._readyState=U.CLOSING,e._receiver.end(),this.end()}function le(){let e=this[M];this.removeListener(`error`,le),this.on(`error`,N),e&&(e._readyState=U.CLOSING,this.destroy())}})),T=t(((e,t)=>{w();let{Duplex:r}=n(`stream`);function i(e){e.emit(`close`)}function a(){!this.destroyed&&this._writableState.finished&&this.destroy()}function o(e){this.removeListener(`error`,o),this.destroy(),this.listenerCount(`error`)===0&&this.emit(`error`,e)}function s(e,t){let n=!0,s=new r({...t,autoDestroy:!1,emitClose:!1,objectMode:!1,writableObjectMode:!1});return e.on(`message`,function(t,n){let r=!n&&s._readableState.objectMode?t.toString():t;s.push(r)||e.pause()}),e.once(`error`,function(e){s.destroyed||(n=!1,s.destroy(e))}),e.once(`close`,function(){s.destroyed||s.push(null)}),s._destroy=function(t,r){if(e.readyState===e.CLOSED){r(t),process.nextTick(i,s);return}let a=!1;e.once(`error`,function(e){a=!0,r(e)}),e.once(`close`,function(){a||r(t),process.nextTick(i,s)}),n&&e.terminate()},s._final=function(t){if(e.readyState===e.CONNECTING){e.once(`open`,function(){s._final(t)});return}e._socket!==null&&(e._socket._writableState.finished?(t(),s._readableState.endEmitted&&s.destroy()):(e._socket.once(`finish`,function(){t()}),e.close()))},s._read=function(){e.isPaused&&e.resume()},s._write=function(t,n,r){if(e.readyState===e.CONNECTING){e.once(`open`,function(){s._write(t,n,r)});return}e.send(t,r)},s.on(`end`,a),s.on(`error`,o),s}t.exports=s})),E=t(((e,t)=>{let{tokenChars:n}=y();function r(e){let t=new Set,r=-1,i=-1,a=0;for(;a<e.length;a++){let o=e.charCodeAt(a);if(i===-1&&n[o]===1)r===-1&&(r=a);else if(a!==0&&(o===32||o===9))i===-1&&r!==-1&&(i=a);else if(o===44){if(r===-1)throw SyntaxError(`Unexpected character at index ${a}`);i===-1&&(i=a);let n=e.slice(r,i);if(t.has(n))throw SyntaxError(`The "${n}" subprotocol is duplicated`);t.add(n),r=i=-1}else throw SyntaxError(`Unexpected character at index ${a}`)}if(r===-1||i!==-1)throw SyntaxError(`Unexpected end of input`);let o=e.slice(r,a);if(t.has(o))throw SyntaxError(`The "${o}" subprotocol is duplicated`);return t.add(o),t}t.exports={parse:r}})),D=t(((e,t)=>{let r=n(`events`),i=n(`http`),{Duplex:a}=n(`stream`),{createHash:o}=n(`crypto`),s=C(),c=v(),l=E(),u=w(),{CLOSE_TIMEOUT:d,GUID:f,kWebSocket:p}=h(),m=/^[+/0-9A-Za-z]{22}==$/;t.exports=class extends r{constructor(e,t){if(super(),e={allowSynchronousEvents:!0,autoPong:!0,maxBufferedChunks:1024*1024,maxFragments:128*1024,maxPayload:100*1024*1024,skipUTF8Validation:!1,perMessageDeflate:!1,handleProtocols:null,clientTracking:!0,closeTimeout:d,verifyClient:null,noServer:!1,backlog:null,server:null,host:null,path:null,port:null,WebSocket:u,...e},e.port==null&&!e.server&&!e.noServer||e.port!=null&&(e.server||e.noServer)||e.server&&e.noServer)throw TypeError(`One and only one of the "port", "server", or "noServer" options must be specified`);if(e.port==null?e.server&&(this._server=e.server):(this._server=i.createServer((e,t)=>{let n=i.STATUS_CODES[426];t.writeHead(426,{"Content-Length":n.length,"Content-Type":`text/plain`}),t.end(n)}),this._server.listen(e.port,e.host,e.backlog,t)),this._server){let e=this.emit.bind(this,`connection`);this._removeListeners=g(this._server,{listening:this.emit.bind(this,`listening`),error:this.emit.bind(this,`error`),upgrade:(t,n,r)=>{this.handleUpgrade(t,n,r,e)}})}e.perMessageDeflate===!0&&(e.perMessageDeflate={}),e.clientTracking&&(this.clients=new Set,this._shouldEmitClose=!1),this.options=e,this._state=0}address(){if(this.options.noServer)throw Error(`The server is operating in "noServer" mode`);return this._server?this._server.address():null}close(e){if(this._state===2){e&&this.once(`close`,()=>{e(Error(`The server is not running`))}),process.nextTick(_,this);return}if(e&&this.once(`close`,e),this._state!==1)if(this._state=1,this.options.noServer||this.options.server)this._server&&(this._removeListeners(),this._removeListeners=this._server=null),this.clients&&this.clients.size?this._shouldEmitClose=!0:process.nextTick(_,this);else{let e=this._server;this._removeListeners(),this._removeListeners=this._server=null,e.close(()=>{_(this)})}}shouldHandle(e){if(this.options.path){let t=e.url.indexOf(`?`);if((t===-1?e.url:e.url.slice(0,t))!==this.options.path)return!1}return!0}handleUpgrade(e,t,n,r){t.on(`error`,y);let i=e.headers[`sec-websocket-key`],a=e.headers.upgrade,o=+e.headers[`sec-websocket-version`];if(e.method!==`GET`){x(this,e,t,405,`Invalid HTTP method`);return}if(a===void 0||a.toLowerCase()!==`websocket`){x(this,e,t,400,`Invalid Upgrade header`);return}if(i===void 0||!m.test(i)){x(this,e,t,400,`Missing or invalid Sec-WebSocket-Key header`);return}if(o!==13&&o!==8){x(this,e,t,400,`Missing or invalid Sec-WebSocket-Version header`,{"Sec-WebSocket-Version":`13, 8`});return}if(!this.shouldHandle(e)){b(t,400);return}let u=e.headers[`sec-websocket-protocol`],d=new Set;if(u!==void 0)try{d=l.parse(u)}catch{x(this,e,t,400,`Invalid Sec-WebSocket-Protocol header`);return}let f=e.headers[`sec-websocket-extensions`],p={};if(this.options.perMessageDeflate&&f!==void 0){let n=new c({...this.options.perMessageDeflate,isServer:!0,maxPayload:this.options.maxPayload});try{let e=s.parse(f);e[c.extensionName]&&(n.accept(e[c.extensionName]),p[c.extensionName]=n)}catch{x(this,e,t,400,`Invalid or unacceptable Sec-WebSocket-Extensions header`);return}}if(this.options.verifyClient){let a={origin:e.headers[`${o===8?`sec-websocket-origin`:`origin`}`],secure:!!(e.socket.authorized||e.socket.encrypted),req:e};if(this.options.verifyClient.length===2){this.options.verifyClient(a,(a,o,s,c)=>{if(!a)return b(t,o||401,s,c);this.completeUpgrade(p,i,d,e,t,n,r)});return}if(!this.options.verifyClient(a))return b(t,401)}this.completeUpgrade(p,i,d,e,t,n,r)}completeUpgrade(e,t,n,r,i,a,l){if(!i.readable||!i.writable)return i.destroy();if(i[p])throw Error(`server.handleUpgrade() was called more than once with the same socket, possibly due to a misconfiguration`);if(this._state>0)return b(i,503);let u=[`HTTP/1.1 101 Switching Protocols`,`Upgrade: websocket`,`Connection: Upgrade`,`Sec-WebSocket-Accept: ${o(`sha1`).update(t+f).digest(`base64`)}`],d=new this.options.WebSocket(null,void 0,this.options);if(n.size){let e=this.options.handleProtocols?this.options.handleProtocols(n,r):n.values().next().value;e&&(u.push(`Sec-WebSocket-Protocol: ${e}`),d._protocol=e)}if(e[c.extensionName]){let t=e[c.extensionName].params,n=s.format({[c.extensionName]:[t]});u.push(`Sec-WebSocket-Extensions: ${n}`),d._extensions=e}this.emit(`headers`,u,r),i.write(u.concat(`\r
|
|
3
|
-
`).join(`\r
|
|
4
|
-
`)),i.removeListener(`error`,y),d.setSocket(i,a,{allowSynchronousEvents:this.options.allowSynchronousEvents,maxBufferedChunks:this.options.maxBufferedChunks,maxFragments:this.options.maxFragments,maxPayload:this.options.maxPayload,skipUTF8Validation:this.options.skipUTF8Validation}),this.clients&&(this.clients.add(d),d.on(`close`,()=>{this.clients.delete(d),this._shouldEmitClose&&!this.clients.size&&process.nextTick(_,this)})),l(d,r)}};function g(e,t){for(let n of Object.keys(t))e.on(n,t[n]);return function(){for(let n of Object.keys(t))e.removeListener(n,t[n])}}function _(e){e._state=2,e.emit(`close`)}function y(){this.destroy()}function b(e,t,n,r){n||=i.STATUS_CODES[t],r={Connection:`close`,"Content-Type":`text/html`,"Content-Length":Buffer.byteLength(n),...r},e.once(`finish`,e.destroy),e.end(`HTTP/1.1 ${t} ${i.STATUS_CODES[t]}\r\n`+Object.keys(r).map(e=>`${e}: ${r[e]}`).join(`\r
|
|
5
|
-
`)+`\r
|
|
6
|
-
\r
|
|
7
|
-
`+n)}function x(e,t,n,r,i,a){if(e.listenerCount(`wsClientError`)){let r=Error(i);Error.captureStackTrace(r,x),e.emit(`wsClientError`,r,n,t)}else b(n,r,i,a)}})),O=i();T(),C(),v(),b(),x(),E();var k=e(w(),1);D(),s(import.meta.url||(typeof __filename==`string`?__filename:`/`));var A=1e4,j={esm:`ESModule`,commonjs:`CommonJS`,"compiled-wasm":`CompiledWasm`,buffer:`Data`,text:`Text`,python:`PythonModule`,"python-requirement":`PythonRequirement`};async function M(e){if(typeof e!=`string`)return e;let t=await c(e),n=t.findIndex(e=>e===10);return await new O.Response(t,{headers:{"Content-Type":`multipart/form-data; boundary=${Uint8Array.prototype.slice.call(t,2,n).toString()}`}}).formData()}o(M,`parseWorkerBundle`);async function N(e){let t=[];for(let n of e.values())n instanceof Blob&&n.type!==`application/source-map`&&t.push(n);let n=new Blob(t);return{size:n.size,gzipSize:l(await n.arrayBuffer()).byteLength}}o(N,`getBundleSize`);function P(e){let t=new Map(e.nodes.map(e=>[e.id,e])),n=e.samples??[],r=e.timeDeltas??[],i=0,a=0,o=0;for(let[e,s]of r.entries()){i+=s;let r=t.get(n[e]??0)?.callFrame.functionName;r===`(idle)`?a+=s:r===`(garbage collector)`&&(o+=s)}return{profileWindow:e.endTime-e.startTime,sampledTime:i,activeTime:i-a,garbageCollectionTime:o,idleTime:a,sampleCount:n.length}}o(P,`summarizeStartupProfile`);async function F(e){let t=await M(e),n=JSON.parse(t.get(`metadata`));if(typeof n.main_module!=`string`)throw new r(`Startup profiling does not support service-worker format Workers. Refer to https://developers.cloudflare.com/workers/reference/migrate-to-module-workers/ for migration guidance.`,{telemetryMessage:`startup profiling service worker format unsupported`});let i=await I(t,n.bindings),a=new p(m({name:`profiler`,compatibilityDate:typeof n.compatibility_date==`string`?n.compatibility_date:void 0,compatibilityFlags:Array.isArray(n.compatibility_flags)?n.compatibility_flags:void 0,...i.options,modulesRoot:`/`,modules:[{type:`ESModule`,path:u(),contents:`
|
|
8
|
-
async function startup() {
|
|
9
|
-
await import(${JSON.stringify(n.main_module)});
|
|
10
|
-
}
|
|
11
|
-
export default {
|
|
12
|
-
async fetch() {
|
|
13
|
-
await startup();
|
|
14
|
-
return new Response("ok");
|
|
15
|
-
}
|
|
16
|
-
}
|
|
17
|
-
`},...await J(t)],inspectorPort:0,handleStructuredLogs:o(()=>void 0,`handleStructuredLogs`)})),s=new AbortController,c=f(()=>{s.abort(new r(`Worker startup profiling timed out after ${A/1e3} seconds.`,{telemetryMessage:`startup profiling timed out`}))},A),l,h=o(e=>s.abort(e instanceof Error?e:Error(`Worker startup profiler inspector error: ${String(e)}`)),`onInspectorError`),g=o(()=>s.abort(Error(`The Worker startup profiler inspector connection closed.`)),`onInspectorClose`);try{await U(a.ready,s.signal);let e=await U(a.getInspectorURL(),s.signal);l=new k.default(new URL(`/core:user:profiler`,e.href)),l.on(`error`,h),l.on(`close`,g),await W(l,s.signal),await G(l,1,`Profiler.enable`,s.signal),await G(l,2,`Profiler.start`,s.signal);let t=await U(a.dispatchFetch(`https://example.com`,{signal:s.signal}),s.signal);if(await U(t.text(),s.signal),!t.ok&&i.unsupportedBindings.length>0){let e=` The upload contains bindings that cannot be reproduced locally during startup profiling: ${i.unsupportedBindings.map(e=>`${JSON.stringify(e.name)} (${JSON.stringify(e.type)})`).join(`, `)}.`;throw new r(`Worker startup profiling failed during module evaluation (status ${t.status}).${e}`,{telemetryMessage:`startup profiling module evaluation failed`})}let n=await G(l,3,`Profiler.stop`,s.signal);if(n?.profile===void 0)throw Error(`Inspector command Profiler.stop returned no profile.`);return n.profile}finally{try{await a.dispose()}finally{try{l!==void 0&&(l.off(`error`,h),l.off(`close`,g),l.readyState!==k.default.CLOSED&&(l.once(`error`,()=>void 0),l.terminate()))}finally{d(c)}}}}o(F,`analyseBundle`);async function I(e,t){let n={},r,i={},a={},o={},s={},c={},l,u={},d={},f={},p=[],m={},h={},g,_={},v,y={},b={},x={},S={},C={},w={},T={},E={},D,O={},k,A={},j={},M={},N=[];for(let P of Array.isArray(t)?t:[]){if(!R(P)){N.push({name:`<unknown>`,type:`unknown`});continue}let t=P;if(L(t)){E[t.name]=z();continue}switch(t.type){case`plain_text`:case`secret_text`:c[t.name]=t.text;break;case`json`:c[t.name]=t.json;break;case`text_blob`:c[t.name]=await V(e,t);break;case`data_blob`:u[t.name]=await B(e,t);break;case`kv_namespace`:_[t.name]={id:t.namespace_id};break;case`d1`:d[t.name]={id:t.id};break;case`r2_bucket`:C[t.name]={id:t.bucket_name};break;case`queue`:S[t.name]={queueName:t.queue_name,deliveryDelay:t.delivery_delay};break;case`service`:E[t.name]=z(),N.push(t);break;case`assets`:E[t.name]=z();break;case`browser`:l={binding:t.name};break;case`ai`:r={binding:t.name};break;case`images`:g={binding:t.name};break;case`stream`:D={binding:t.name};break;case`version_metadata`:k=t.name;break;case`ai_search_namespace`:a[t.name]={namespace:t.namespace};break;case`ai_search`:i[t.name]={instance_name:t.instance_name};break;case`agent_memory`:n[t.name]={namespace:t.namespace};break;case`media`:v={binding:t.name};break;case`send_email`:{let e={name:t.name,allowed_sender_addresses:t.allowed_sender_addresses};t.destination_address===void 0?t.allowed_destination_addresses===void 0?p.push(e):p.push({...e,allowed_destination_addresses:t.allowed_destination_addresses}):p.push({...e,destination_address:t.destination_address});break}case`durable_object_namespace`:case`workflow`:N.push(t);break;case`vectorize`:O[t.name]={index_name:t.index_name};break;case`analytics_engine`:o[t.name]={dataset:t.dataset??`dataset`};break;case`dispatch_namespace`:f[t.name]={namespace:t.namespace};break;case`mtls_certificate`:y[t.name]={certificate_id:t.certificate_id};break;case`pipelines`:t.stream===void 0?t.pipeline===void 0?N.push(t):b[t.name]={pipeline:t.pipeline}:b[t.name]={stream:t.stream};break;case`k2`:x[t.name]={stream:t.stream};break;case`secrets_store_secret`:T[t.name]={store_id:t.store_id,secret_name:t.secret_name};break;case`artifacts`:s[t.name]={namespace:t.namespace};break;case`unsafe_hello_world`:h[t.name]={enable_timer:t.enable_timer};break;case`flagship`:m[t.name]={app_id:t.app_id};break;case`ratelimit`:w[t.name]={namespace_id:t.namespace_id,simple:t.simple};break;case`vpc_service`:j[t.name]={service_id:t.service_id};break;case`vpc_network`:t.tunnel_id===void 0?t.network_id===void 0?N.push(t):A[t.name]={network_id:t.network_id}:A[t.name]={tunnel_id:t.tunnel_id};break;case`worker_loader`:M[t.name]={};break;case`inherit`:N.push(t);break;case`wasm_module`:N.push(t);break;case`hyperdrive`:N.push(t);break;case`logfwdr`:N.push(t);break;case`analytics`:N.push(t);break;default:{let e=t;N.push(e)}}}return{options:{agentMemory:n,ai:r,aiSearchInstances:i,aiSearchNamespaces:a,analyticsEngineDatasets:o,artifacts:s,bindings:c,browserRendering:l,dataBlobBindings:u,d1Databases:d,dispatchNamespaces:f,email:{send_email:p},flagship:m,helloWorld:h,images:g,kvNamespaces:_,media:v,mtlsCertificates:y,pipelines:b,k2:x,queueProducers:S,r2Buckets:C,ratelimits:w,secretsStoreSecrets:T,serviceBindings:E,stream:D,vectorize:O,versionMetadata:k,vpcNetworks:A,vpcServices:j,workerLoaders:M},unsupportedBindings:N}}o(I,`convertWorkerBundleBindings`);function L(e){switch(e.type){case`browser`:case`ai`:case`images`:case`kv_namespace`:case`workflow`:case`queue`:case`r2_bucket`:case`d1`:case`vectorize`:return e.raw===!0;default:return!1}}o(L,`isRawWorkerBinding`);function R(e){return typeof e==`object`&&!!e&&`name`in e&&typeof e.name==`string`&&`type`in e&&typeof e.type==`string`}o(R,`isNamedWorkerBinding`);function z(){return()=>new O.Response(`Binding calls are unavailable during startup profiling.`,{status:503})}o(z,`createOfflineFetcherBinding`);async function B(e,t){let n=H(e,t);return n instanceof Blob?new Uint8Array(await n.arrayBuffer()):new TextEncoder().encode(n)}o(B,`getBinaryBindingPart`);async function V(e,t){let n=H(e,t);return n instanceof Blob?await n.text():n}o(V,`getTextBindingPart`);function H(e,t){let n=e.get(t.part);if(n===null)throw new r(`Startup profiling could not find multipart part ${JSON.stringify(t.part)} for binding ${JSON.stringify(t.name)}.`,{telemetryMessage:`startup profiling binding part missing`});return n}o(H,`getBindingPart`);async function U(e,t){if(t.aborted)throw t.reason;return await new Promise((n,r)=>{let i=o(()=>r(t.reason),`onAbort`);t.addEventListener(`abort`,i,{once:!0}),e.then(n,r).finally(()=>{t.removeEventListener(`abort`,i)})})}o(U,`waitForPromise`);async function W(e,t){if(t.aborted)throw t.reason;return await new Promise((n,r)=>{let i=o(()=>{e.off(`open`,a),e.off(`error`,s),e.off(`close`,c),t.removeEventListener(`abort`,l)},`cleanup`),a=o(()=>{i(),n()},`onOpen`),s=o(e=>{i(),r(e)},`onError`),c=o(()=>{i(),r(Error(`The Worker startup profiler inspector connection closed.`))},`onClose`),l=o(()=>{i(),r(t.reason)},`onAbort`);e.once(`open`,a),e.once(`error`,s),e.once(`close`,c),t.addEventListener(`abort`,l,{once:!0})})}o(W,`waitForInspectorOpen`);async function G(e,t,n,r){if(r.aborted)throw r.reason;return await new Promise((i,a)=>{let s=o(()=>{e.off(`message`,c),r.removeEventListener(`abort`,l)},`cleanup`),c=o(e=>{let r;try{r=JSON.parse(e.toString())}catch(e){s(),a(e);return}if(r.id===t){if(s(),r.error!=null){a(Error(`Inspector command ${n} failed: ${r.error.message??`error ${r.error.code??`unknown`}`}`));return}i(r.result)}},`onMessage`),l=o(()=>{s(),a(r.reason)},`onAbort`);e.on(`message`,c),r.addEventListener(`abort`,l,{once:!0});try{e.send(JSON.stringify({id:t,method:n,params:{}}),e=>{e&&(s(),a(e))})}catch(e){s(),a(e)}})}o(G,`sendInspectorCommand`);async function K(e){return e instanceof Blob?new Uint8Array(await e.arrayBuffer()):e}o(K,`getEntryValue`);function q(e){if(e instanceof Blob)try{return j[a(e.type)]}catch{throw Error(`Unable to determine module type for ${e.type} mime type`)}return`Text`}o(q,`getModuleType`);async function J(e){return await Promise.all([...e.entries()].filter(e=>e[1]instanceof Blob&&e[1].type!==`application/source-map`).map(async([e,t])=>({type:q(t),path:e,contents:await K(t)})))}o(J,`convertWorkerBundleToModules`);export{P as i,N as n,M as r,F as t};
|
package/dist/state-CpXhcMdX.mjs
DELETED