cf 1.0.0-beta.13 → 1.0.0-beta.14
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/_meta/commands.json +1562 -1776
- package/dist/_meta/hand-written-commands.json +342 -22
- package/dist/_meta/schemas.json +611 -956
- package/dist/abuse-reports-CVv52Q2w.mjs +24 -0
- package/dist/access-k1QjF5rE.mjs +2 -0
- package/dist/{account-tags-CaXDDeZ4.mjs → account-tags-RhvWOkOf.mjs} +4 -4
- package/dist/{accounts-BALwxDQY.mjs → accounts--3lrEkmu.mjs} +9 -15
- package/dist/{acm-CP9EaXQN.mjs → acm-BJxINEcu.mjs} +2 -2
- package/dist/{addressing-DRlaxqrI.mjs → addressing-BqByG9JW.mjs} +55 -43
- package/dist/{agent-memory-vGhlfZBx.mjs → agent-memory-D4dQMGbh.mjs} +2 -2
- package/dist/{ai-CJtbWfB9.mjs → ai-CRkQ4pjC.mjs} +1 -1
- package/dist/{ai-audit-C0BJNqZZ.mjs → ai-audit-fMSn4c5L.mjs} +1 -1
- package/dist/{ai-gateway-BQtv3U3x.mjs → ai-gateway-CbhvQK4L.mjs} +4 -4
- package/dist/ai-search-CvVSnOA0.mjs +79 -0
- package/dist/{ai-security-CFTaYk_X.mjs → ai-security-Z_qpI92I.mjs} +1 -1
- package/dist/{alerting-1hun27JC.mjs → alerting-CpbCB8br.mjs} +3 -3
- package/dist/{analytics-DXUSjvzT.mjs → analytics-DkY9dOP1.mjs} +3 -3
- package/dist/{analytics_engine-CQsnL09C.mjs → analytics_engine-DE_jvlx_.mjs} +1 -1
- package/dist/{api-security-BXhrfR6-.mjs → api-security-BHnOU5MM.mjs} +25 -25
- package/dist/{argo-LPUCTnee.mjs → argo-DhC5L_aN.mjs} +3 -3
- package/dist/{artifacts-Dt6easua.mjs → artifacts-CrIupY7P.mjs} +3 -3
- package/dist/{audit-logs-CVznAM2Z.mjs → audit-logs-BjeBxTox.mjs} +1 -1
- package/dist/{auth-eQr-kQCH.mjs → auth-BNYfOMl0.mjs} +1 -1
- package/dist/{auth-CGLsxbc6.mjs → auth-CAWalgW0.mjs} +1 -1
- package/dist/auth-DOwC01PW.mjs +2 -0
- package/dist/{auth-token-pNQrX_9O.mjs → auth-token-Dop0wLCw.mjs} +1 -1
- package/dist/{autoconfig-sD7Frryg.mjs → autoconfig-RQ3HS4m1.mjs} +1 -1
- package/dist/{basin-catalog-ZQICw-zF.mjs → basin-catalog-DZ7QV-_N.mjs} +3 -3
- package/dist/{billing-Dy1-dV_B.mjs → billing-BFyte9fL.mjs} +3 -3
- package/dist/bot-management-DXcbV3am.mjs +9 -0
- package/dist/{botnet-feed-xb98Cj3Y.mjs → botnet-feed-bGGp_cwX.mjs} +1 -1
- package/dist/{brand-protection-Ck3okE2k.mjs → brand-protection-DN36XkxH.mjs} +2 -2
- package/dist/{browser-run-DJGJSzFX.mjs → browser-run-hHD1RT43.mjs} +3 -3
- package/dist/build-BhpWYgNm.mjs +2 -0
- package/dist/{build-HmSXqjGn.mjs → build-CCe7IrWT.mjs} +1 -1
- package/dist/{builds-CYxcZtkG.mjs → builds-6aO61R9R.mjs} +4 -4
- package/dist/{cache-D9tSfovH.mjs → cache-C5YJpMqi.mjs} +6 -6
- package/dist/{certificate-authorities-CpiveTFC.mjs → certificate-authorities-CbqDAktQ.mjs} +1 -1
- package/dist/{cf-BxsXrVeh.mjs → cf-oRSQKirD.mjs} +1 -1
- package/dist/{chunk-DSGVRFIS-C1_SEtRK.mjs → chunk-DSGVRFIS-CPI5cYtB.mjs} +1 -1
- package/dist/{chunk-NDZDTP46-Bjx_wtJe.mjs → chunk-NDZDTP46-Civns3WA.mjs} +1 -1
- package/dist/{cli-DeJc9U8z.mjs → cli-ht4q6i2y.mjs} +1 -1
- package/dist/{client-certificates-CF6YZyvP.mjs → client-certificates-balaN_my.mjs} +1 -1
- package/dist/{client-side-security-BLoe9kS5.mjs → client-side-security-3_4Ermmg.mjs} +3 -3
- package/dist/{cloud-connector-DXRUHsjt.mjs → cloud-connector-avx27sLw.mjs} +1 -1
- package/dist/{cloudflared--1Ws1RJy.mjs → cloudflared-D83U8Yn3.mjs} +1 -1
- package/dist/{cloudforce-one-CBLxXi6v.mjs → cloudforce-one-CXdeqJ9l.mjs} +126 -168
- package/dist/{command-Dh7RmjFu.mjs → command-9VAc7b30.mjs} +1 -1
- package/dist/{command-Cu7dcaHT.mjs → command-B_Ixlz8Q.mjs} +1 -1
- package/dist/{command-oNVwyjGB.mjs → command-BtDY_MKv.mjs} +1 -1
- package/dist/{command-CG6RvZs0.mjs → command-CUNMrMou.mjs} +1 -1
- package/dist/{command-D3fyhdy-.mjs → command-Ckb9FufU.mjs} +1 -1
- package/dist/{command-BDe67N_n.mjs → command-CtVUNm__.mjs} +1 -1
- package/dist/{command-DUhX8Dcr.mjs → command-CyJQ40fc.mjs} +1 -1
- package/dist/{command-UiHLJ8Ji.mjs → command-DPX9sJVi.mjs} +1 -1
- package/dist/{command-BlIb6RR2.mjs → command-DXaRn1ls.mjs} +1 -1
- package/dist/{command-CcuLC6CJ.mjs → command-DjEJaOwV.mjs} +1 -1
- package/dist/{command-_rqD0hXF.mjs → command-DtgJilOK.mjs} +1 -1
- package/dist/{command-BvfKhMl7.mjs → command-OHov3PEc.mjs} +1 -1
- package/dist/{command-DwXiDOeH.mjs → command-OWe3v69l.mjs} +1 -1
- package/dist/{command-83uVfXh9.mjs → command-SmWD-MeI.mjs} +1 -1
- package/dist/{completions-D06AO7A8.mjs → completions-CuqAO3N_.mjs} +1 -1
- package/dist/{connector-interrupts-DelTmNyw.mjs → connector-interrupts-ftd10Du-.mjs} +1 -1
- package/dist/{connector-telemetry-events-BwxR3G8d.mjs → connector-telemetry-events-TwDZYdEM.mjs} +1 -1
- package/dist/{connector-telemetry-snapshots-Bqq-hrpJ.mjs → connector-telemetry-snapshots-CZxkOuC3.mjs} +1 -1
- package/dist/{connectors-D-m3rEpk.mjs → connectors-6lVSr-fd.mjs} +1 -1
- package/dist/containers-Dqs_ZnO2.mjs +78 -0
- package/dist/containers-ncw3bd3a.mjs +376 -0
- package/dist/{content-scan-W0BNzbQp.mjs → content-scan-BWFbqfQ0.mjs} +3 -3
- package/dist/{context-q7UaYK69.mjs → context-BBLtgdR1.mjs} +1 -1
- package/dist/{cps-BZ6hqRb5.mjs → cps-C5phNoVU.mjs} +2 -2
- package/dist/{csamScanner-Bo1t3CLh.mjs → csamScanner-BwZNZu0A.mjs} +3 -3
- package/dist/{ct-alerting-E03faC7p.mjs → ct-alerting-DPp3qLqO.mjs} +1 -1
- package/dist/{custom-certificates-CUySSPzi.mjs → custom-certificates-pfpZcr06.mjs} +5 -5
- package/dist/{custom-csrs-gNpWkJPQ.mjs → custom-csrs-DrvGRAkl.mjs} +2 -2
- package/dist/{custom-hostnames-abGBAbx7.mjs → custom-hostnames-wGtmFbz1.mjs} +3 -3
- package/dist/{custom-nameservers-BgNXol1P.mjs → custom-nameservers-HTG6MPKv.mjs} +1 -1
- package/dist/{custom-pages-DMKX3aoD.mjs → custom-pages-DqEHBSVt.mjs} +2 -2
- package/dist/d1-EQMUlHTJ.mjs +94 -0
- package/dist/{dcv-delegation-B5YUEWu0.mjs → dcv-delegation-D6nj0Z5N.mjs} +1 -1
- package/dist/{deploy-CWNm1-5v.mjs → deploy-B22sEVHd.mjs} +1 -1
- package/dist/{deploy-context-Dr6bxNcB.mjs → deploy-context-DmG9rgPO.mjs} +1 -1
- package/dist/{deploy-input-Cc0_2QlW.mjs → deploy-input-BCjcuP6u.mjs} +1 -1
- package/dist/{dev-ZA8itQE7.mjs → dev-ClhhXuNU.mjs} +1 -1
- package/dist/diagnostics-tqHjq-Pl.mjs +15 -0
- package/dist/dist-DmRM6WSZ.mjs +449 -0
- package/dist/{dls-DIl16mLp.mjs → dls-BEHj4X9T.mjs} +1 -1
- package/dist/{dns-firewall-BZwJXHLj.mjs → dns-firewall-zwbkutyf.mjs} +1 -1
- package/dist/{dns-QUpgljRG.mjs → dns-n4mfYBZg.mjs} +3 -3
- package/dist/{durable-objects-BCj4ykpU.mjs → durable-objects-CQ2dHhho.mjs} +1 -1
- package/dist/{email-auth-DlHIYhCk.mjs → email-auth-DOi6yOt3.mjs} +1 -1
- package/dist/{email-routing-UKVS4DYy.mjs → email-routing-WcSPt22u.mjs} +5 -5
- package/dist/{email-security-CZjfRIg0.mjs → email-security-BXu3OGay.mjs} +15 -15
- package/dist/{email-sending-Dquc880C.mjs → email-sending-B9zTlIjt.mjs} +2 -2
- package/dist/{fieldExtractors-BbwDRquU.mjs → fieldExtractors-B37m2lKW.mjs} +1 -1
- package/dist/{firewall--mTfDnCJ.mjs → firewall-CRtYO0Ha.mjs} +5 -5
- package/dist/{flagship-cfoSwwM9.mjs → flagship-DvTFZSay.mjs} +3 -3
- package/dist/{fraud-Dcsq3EYK.mjs → fraud-uSyibsit.mjs} +5 -5
- package/dist/{google-tag-gateway-DPKSkZQi.mjs → google-tag-gateway-BFXiiokq.mjs} +1 -1
- package/dist/hand-written-dry-run-B82fRl2N.mjs +2 -0
- package/dist/{healthchecks-D78hIIBC.mjs → healthchecks-27u7b7Jb.mjs} +5 -5
- package/dist/{hostnames-sF999-6H.mjs → hostnames-DvaUSzsj.mjs} +1 -1
- package/dist/hyperdrive-BzJvPdu6.mjs +37 -0
- package/dist/{iam-Bvg_PayW.mjs → iam-Dl3cU9GI.mjs} +1 -1
- package/dist/{images-DI_lEZ4L.mjs → images-C2OkI1j7.mjs} +6 -6
- package/dist/index.mjs +1 -1
- package/dist/{init-1w_mcgk3.mjs → init-Da8pe296.mjs} +1 -1
- package/dist/{intel-BxElBUMP.mjs → intel-DoB1g_K7.mjs} +2 -2
- package/dist/{ips-DWoaKxi7.mjs → ips-BRt68epr.mjs} +1 -1
- package/dist/{k2-tFjaftl-.mjs → k2-_eq5ZY2t.mjs} +1 -1
- package/dist/{keyless-certificates-BrvxHU4J.mjs → keyless-certificates-DaO2yqYu.mjs} +2 -2
- package/dist/{keys-DcwTYKRf.mjs → keys-7BQ3Zq6Y.mjs} +1 -1
- package/dist/{kv-htXS-7uP.mjs → kv-BTYCXKML.mjs} +4 -4
- package/dist/{lazy-command-BDiIwpss.mjs → lazy-command-CDWwCsD2.mjs} +1 -1
- package/dist/{leaked-credential-checks-bvGrLOmQ.mjs → leaked-credential-checks-CPHOK_dE.mjs} +1 -1
- package/dist/load-balancers-Bu9pd2SV.mjs +76 -0
- package/dist/{local-DlT72Xpn.mjs → local-BcPM4I0s.mjs} +1 -1
- package/dist/local-BundUuDT.mjs +2 -0
- package/dist/{local-runtime-CokO6qaX.mjs → local-runtime-BHKyRlCP.mjs} +1 -1
- package/dist/{login-Ccw-mYwT.mjs → login-BBYC_BtH.mjs} +1 -1
- package/dist/{login-BGF_I_LT.mjs → login-D2uoWhWh.mjs} +1 -1
- package/dist/{logo-matches-tE8LTKgg.mjs → logo-matches-Bc1DQ4-g.mjs} +1 -1
- package/dist/{logos-Bj845Mcw.mjs → logos-X5B8z7Iv.mjs} +1 -1
- package/dist/{logpush-Cs8JdvKi.mjs → logpush-C2ENi1et.mjs} +3 -3
- package/dist/{logs-C92XZvNu.mjs → logs-BKDz7kBW.mjs} +1 -1
- package/dist/{magic-cloud-networking-hNp5MMw-.mjs → magic-cloud-networking-B60Gld8A.mjs} +6 -6
- package/dist/{magic-network-monitoring-68GuWAnv.mjs → magic-network-monitoring-CxXI3Y-H.mjs} +4 -4
- package/dist/{magic-transit-DNd7gu4j.mjs → magic-transit-ZCSaCbl8.mjs} +171 -168
- package/dist/{managed-defense-B_wCAuFD.mjs → managed-defense-DrxMb7xi.mjs} +1 -1
- package/dist/{managed-transforms-DZdxHPOh.mjs → managed-transforms-AI7KrRU1.mjs} +1 -1
- package/dist/{matches-B65CkflD.mjs → matches-rPMLS3Ip.mjs} +1 -1
- package/dist/{mcp-DrJW5ayK.mjs → mcp-DXUMvEWt.mjs} +4 -4
- package/dist/{mesh-DfVzYTn1.mjs → mesh-MmBCQ37q.mjs} +2 -2
- package/dist/{monetization-BGaI8CMO.mjs → monetization-DQE5VtUO.mjs} +2 -2
- package/dist/{mtls-certificates-BsU2emDD.mjs → mtls-certificates-DwkEb-Hy.mjs} +1 -1
- package/dist/{network-BEMD8P0U.mjs → network-BcfobxQY.mjs} +1 -1
- package/dist/{network-interconnects-DMu_fcbo.mjs → network-interconnects-BU3tN_Ab.mjs} +10 -6
- package/dist/{o11y-C1a4gDGF.mjs → o11y-BBv7nedp.mjs} +13 -13
- package/dist/{oauth-Bj5Ne1o8.mjs → oauth-BUr8bPwo.mjs} +1 -1
- package/dist/{oauth-clients-p4Etdqy_.mjs → oauth-clients-qWVImhHE.mjs} +3 -3
- package/dist/{oauth-mspHHU5U.mjs → oauth-n8um6MFk.mjs} +1 -1
- package/dist/{oauth-scopes-B2IabFza.mjs → oauth-scopes-CdeIgJIx.mjs} +1 -1
- package/dist/organization-CJeOVWH7.mjs +71 -0
- package/dist/{organizations-5S6xEp7T.mjs → organizations-BpfoqZcG.mjs} +1 -1
- package/dist/{origin-ca-certificates-_VJAoK1D.mjs → origin-ca-certificates-Bimf07RF.mjs} +2 -2
- package/dist/{origin-post-quantum-encryption-GcldDsT2.mjs → origin-post-quantum-encryption-CM-If38w.mjs} +2 -2
- package/dist/{origin-tls-client-auth-DZHld9fA.mjs → origin-tls-client-auth-BPwYPhc9.mjs} +1 -1
- package/dist/{page-rules-o1tAMMsD.mjs → page-rules-DOeekMrj.mjs} +4 -4
- package/dist/pages-Bn0Sg1ay.mjs +54 -0
- package/dist/{pay-per-crawl-BsnOxGYU.mjs → pay-per-crawl-qJpseNNx.mjs} +1 -1
- package/dist/{pay-per-use-BXWMCSyE.mjs → pay-per-use-C1MWKJ4O.mjs} +3 -3
- package/dist/pipelines-rCwXQw6S.mjs +44 -0
- package/dist/{precursor-B6DjBib6.mjs → precursor-Bk8Pp6jT.mjs} +2 -2
- package/dist/previews-BEheHO3T.mjs +4 -0
- package/dist/{progress-BtkTVcHI.mjs → progress-CQqDtgmF.mjs} +1 -1
- package/dist/{prompt-RlgRrmbm.mjs → prompt-C8FyienX.mjs} +1 -1
- package/dist/{queries-yLwoJRHV.mjs → queries-DJ8looyq.mjs} +1 -1
- package/dist/{queues-CnJRaE1o.mjs → queues-BBH9Q-Tt.mjs} +7 -7
- package/dist/{r2-CuC6-zQX.mjs → r2-CdJKpP2w.mjs} +13 -13
- package/dist/{radar-DrQLcbkq.mjs → radar-CdvQL4xm.mjs} +1 -1
- package/dist/raw-fetch-DbXN3SlE.mjs +2 -0
- package/dist/{realtime-CjsnzHxD.mjs → realtime-onrXppzh.mjs} +9 -9
- package/dist/{registrar-BgOsxTnX.mjs → registrar-CbEBc5IE.mjs} +2 -2
- package/dist/{registrar-sandbox-3ikBD9fB.mjs → registrar-sandbox-BJhn1HFT.mjs} +3 -3
- package/dist/{registry-CHowrQsZ.mjs → registry-PI6sO95I.mjs} +1 -1
- package/dist/{reporting-hE127s5r.mjs → reporting-bXZY6obP.mjs} +1 -1
- package/dist/{request-headers-DiJeDAn1.mjs → request-headers-D8L95bEQ.mjs} +1 -1
- package/dist/{request-tracers-BCwLxmPN.mjs → request-tracers-CihskC2A.mjs} +1 -1
- package/dist/{resource-sharing-2qvWUuMa.mjs → resource-sharing-DDqcCHVs.mjs} +2 -2
- package/dist/{resource-tagging-Dwx7iL3v.mjs → resource-tagging-D63RpBce.mjs} +1 -1
- package/dist/{rules-DxVQ6jIg.mjs → rules-CAW0-Wde.mjs} +1 -1
- package/dist/{rulesets-Cdh8YjI9.mjs → rulesets-CPir63Qc.mjs} +3 -3
- package/dist/{rum-a4CMq4Qu.mjs → rum-BfwTcuup.mjs} +1 -1
- package/dist/{run-BvHwWWUX.mjs → run-CW2Cgi0S.mjs} +1 -1
- package/dist/run-DEynXvCc.mjs +2 -0
- package/dist/{schema-flags-BzoBGPWk.mjs → schema-flags-BTItUu1K.mjs} +1 -1
- package/dist/{scim-B8XlXl8v.mjs → scim-CtZ1FeQE.mjs} +1 -1
- package/dist/{secrets-store-Cqhedh_i.mjs → secrets-store-BIuBYUJT.mjs} +1 -1
- package/dist/{security-insights-le2-DteL.mjs → security-insights-DfUus0bs.mjs} +3 -3
- package/dist/{security-txt-cCArWXur.mjs → security-txt-CgZOsAIZ.mjs} +1 -1
- package/dist/{session-C1BhT1ZJ.mjs → session-BcM8Vyyx.mjs} +1 -1
- package/dist/{shared-BPjcpXuA.mjs → shared-CpS23WwR.mjs} +1 -1
- package/dist/{smart-shield-Csyh8hwB.mjs → smart-shield-ClgB7r-9.mjs} +5 -5
- package/dist/{snippets-DUWx25q6.mjs → snippets-DLO3iFAg.mjs} +1 -1
- package/dist/{spawn-IysxuTNW.mjs → spawn-D07wH-MH.mjs} +1 -1
- package/dist/{spectrum-Da3UYSOR.mjs → spectrum-B6qkjR_Z.mjs} +5 -5
- package/dist/{speed-NxlMnB2e.mjs → speed-DX5X2EIR.mjs} +1 -1
- package/dist/sql-CF044HDW.mjs +4 -0
- package/dist/src-BMATTZU_.mjs +125 -0
- package/dist/{ssl-BtaX2WEJ.mjs → ssl-CM-rChEC.mjs} +5 -5
- package/dist/{startup-profile-CdJWgNjd.mjs → startup-profile-CrtCP-6-.mjs} +1 -1
- package/dist/startup-profile-D662WI9s.mjs +2 -0
- package/dist/state-D7uNYnoi.mjs +2 -0
- package/dist/{state-BDSvdSdP.mjs → state-DIiIGEtR.mjs} +1 -1
- package/dist/{stream-C1Ijjzn4.mjs → stream-5EmUOQvy.mjs} +3 -3
- package/dist/{submit-MdkuU_Pt.mjs → submit-lEAaRSMR.mjs} +1 -1
- package/dist/{tags-CA1xMM96.mjs → tags-CX23P4jg.mjs} +1 -1
- package/dist/telemetry-0Y5hAtCX.mjs +2 -0
- package/dist/{telemetry-Cm39QJ-M.mjs → telemetry-ZlCi5Xhc.mjs} +1 -1
- package/dist/{tenant-BB6Oszcl.mjs → tenant-DnI7QziH.mjs} +1 -1
- package/dist/{tenant-custom-nameservers-BsbgYAEo.mjs → tenant-custom-nameservers-MR0dlcGm.mjs} +1 -1
- package/dist/{tunnels-CRFtyHWz.mjs → tunnels-NzYpsfi_.mjs} +15 -15
- package/dist/{turnstile-DBXWo_Xe.mjs → turnstile-M7sKCEz3.mjs} +11 -11
- package/dist/{update-check-CMXSdres.mjs → update-check-HFkPml6x.mjs} +1 -1
- package/dist/update-check-aTutXNRd.mjs +2 -0
- package/dist/update-check-worker.mjs +1 -1
- package/dist/{url-info-t-XAs0Mk.mjs → url-info-Dos9VOXV.mjs} +1 -1
- package/dist/{url-normalization-Cs4F8e0a.mjs → url-normalization-CZbFOq_v.mjs} +2 -2
- package/dist/{url-scanner-CBIoDbTx.mjs → url-scanner-B7quLPGW.mjs} +2 -2
- package/dist/{user-CevdOMoa.mjs → user-rXca0J9M.mjs} +12 -12
- package/dist/{values-CjNlkbIh.mjs → values-D-rrZrDa.mjs} +1 -1
- package/dist/{vectorize-9d9tPmg5.mjs → vectorize-D2tf_oA8.mjs} +4 -4
- package/dist/version-BGnqDvNR.mjs +2 -0
- package/dist/waiting-rooms-DrA3-0bw.mjs +53 -0
- package/dist/{web-assets-BHot_MU8.mjs → web-assets-DQAfvPT9.mjs} +3 -3
- package/dist/{web3-CYfWAF6b.mjs → web3-MI0GQDnu.mjs} +5 -5
- package/dist/workers-By6Pf8fv.mjs +40 -0
- package/dist/{workers-builds-Dw7ho3So.mjs → workers-builds-6YsWsCmC.mjs} +2 -2
- package/dist/{workers-for-platforms-A3yjyLh3.mjs → workers-for-platforms-DL8fC1qR.mjs} +2 -2
- package/dist/workers-vpc-BYx6sbgd.mjs +13 -0
- package/dist/workflows-ByQLnV0E.mjs +52 -0
- package/dist/{zaraz-BsD2dMI3.mjs → zaraz-CgbpmA85.mjs} +1 -1
- package/dist/{zero-trust-CA3iGQbG.mjs → zero-trust-CpjTkkWt.mjs} +42 -42
- package/dist/{zone-D2M4EZD0.mjs → zone-DnKIe6po.mjs} +1 -1
- package/dist/{zones-BoOC_JzC.mjs → zones--5ZzsDmQ.mjs} +15 -15
- package/package.json +12 -12
- package/dist/abuse-reports-BjU1s8cf.mjs +0 -24
- package/dist/access-C_G2MZnA.mjs +0 -2
- package/dist/ai-search-DGU1Y5By.mjs +0 -79
- package/dist/auth-CrmVwfpJ.mjs +0 -2
- package/dist/bot-management-DTgPwL7O.mjs +0 -9
- package/dist/build-B1L6xrgC.mjs +0 -2
- package/dist/containers-CVNfEjJs.mjs +0 -78
- package/dist/containers-DeoZyeQe.mjs +0 -375
- package/dist/d1-CE08YqYk.mjs +0 -93
- package/dist/diagnostics-UMbG6m4n.mjs +0 -15
- package/dist/dist-BHEmAAHr.mjs +0 -487
- package/dist/hyperdrive-qWACKfA4.mjs +0 -37
- package/dist/load-balancers-BNTUt4yG.mjs +0 -76
- package/dist/local-DlDumOSC.mjs +0 -2
- package/dist/organization-CdXt7AVZ.mjs +0 -75
- package/dist/pages-CmiOhjSl.mjs +0 -54
- package/dist/pipelines-DWLQC0F6.mjs +0 -44
- package/dist/previews-dUKEBGSM.mjs +0 -4
- package/dist/raw-fetch-B4NvWuZD.mjs +0 -2
- package/dist/run-CkbrPJPx.mjs +0 -2
- package/dist/sql-CNdHAlQ8.mjs +0 -4
- package/dist/src-JfLDUxFr.mjs +0 -125
- package/dist/startup-profile-B2l0ChVu.mjs +0 -2
- package/dist/state-JB4_BU1o.mjs +0 -2
- package/dist/telemetry-BsYO3nxG.mjs +0 -2
- package/dist/update-check-C2oVEbXx.mjs +0 -2
- package/dist/version-BdVUXLnK.mjs +0 -2
- package/dist/waiting-rooms--5WmrWb3.mjs +0 -53
- package/dist/workers-S17M0n3h.mjs +0 -40
- package/dist/workers-vpc-BZ2xXtC3.mjs +0 -13
- package/dist/workflows-BgGrVpSR.mjs +0 -43
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import{o as e}from"./chunk-NDZDTP46-
|
|
2
|
+
import{o as e}from"./chunk-NDZDTP46-Civns3WA.mjs";import{s as t}from"./oauth-BUr8bPwo.mjs";async function n(){let n=e({allowGlobalAuthKey:!1});if(n&&`apiToken`in n)return n.apiToken;let r=await t();if(r)return r;throw Error(`No authentication token found.
|
|
3
3
|
|
|
4
4
|
Please set one of the following:
|
|
5
5
|
1. Set the CLOUDFLARE_API_TOKEN environment variable
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import{n as e,r as t}from"./source-mXUcrTVw.mjs";import{t as n}from"./cli-exit-CstFZ1eJ.mjs";import{r}from"./chunk-U6NEESU5-DqqRCaWH.mjs";import{A as i,C as a,a as o,c as s,i as c,l,n as u,s as d,t as f,w as p}from"./dist-
|
|
2
|
+
import{n as e,r as t}from"./source-mXUcrTVw.mjs";import{t as n}from"./cli-exit-CstFZ1eJ.mjs";import{r}from"./chunk-U6NEESU5-DqqRCaWH.mjs";import{A as i,C as a,a as o,c as s,i as c,l,n as u,s as d,t as f,w as p}from"./dist-DmRM6WSZ.mjs";import{C as m,M as h,N as g,O as _,T as v}from"./chunk-TAK63GWY-DdMktrgc.mjs";import{a as y,i as b,n as x,o as S,r as C,s as w,t as T}from"./chunk-WMOON6TZ-C0dmPHpM.mjs";import{n as E}from"./dist-uRuGmkMB.mjs";import{C as D,b as O,c as k,g as A,i as ee,n as te,o as j,v as M,w as N,x as P}from"./interactive-BW9T1D1q.mjs";import{n as F,r as ne,t as re}from"./dialog-D4Y9ocuF.mjs";import{t as ie}from"./process-2wmDCy17.mjs";import{n as ae}from"./wrangler-migration-C6FKHER1.mjs";import{createRequire as I}from"node:module";import{basename as L,dirname as oe,isAbsolute as R,join as se,relative as ce,resolve as le}from"path";import{promises as ue}from"fs";import{appendFileSync as de,closeSync as fe,existsSync as z,mkdirSync as pe,openSync as me,promises as he,readFileSync as ge,readSync as _e,statSync as ve,writeFileSync as ye}from"node:fs";import B,{basename as be,delimiter as xe,dirname as Se,join as V,normalize as Ce,relative as we,resolve as H}from"node:path";import{fileURLToPath as Te}from"node:url";import Ee,{cwd as De}from"node:process";import Oe,{constants as ke}from"node:os";import Ae from"node:tty";import{readFile as je,readdir as Me,stat as Ne,writeFile as Pe}from"node:fs/promises";import U from"node:assert";import{PassThrough as Fe}from"node:stream";import{Console as Ie}from"node:console";import{spawn as Le}from"node:child_process";import Re from"node:readline";import{InputConfigSchema as ze,convertToWranglerConfig as Be}from"@cloudflare/config";import{pipeline as Ve}from"node:stream/promises";I(import.meta.url||(typeof __filename==`string`?__filename:`/`));function He(e){return/^\d{4}-\d{2}-\d{2}$/.test(e)}r(He,`isCompatDate`);function Ue(e){let t=e.toISOString().slice(0,10);return U(He(t)),t}r(Ue,`formatCompatibilityDate`);function We(){return Ue(/* @__PURE__ */ new Date)}r(We,`getTodaysCompatDate`);function Ge(e){return e!==void 0&&e>=`2026-08-04`}r(Ge,`isNodejsCompatDefaultOn`);function Ke(e,t){let n=Ge(e),r=t.includes(`nodejs_compat`)||n&&!t.includes(`no_nodejs_compat`);return{isNodejsCompatEnabled:r,isNodejsCompatV2Enabled:t.includes(`nodejs_compat_v2`)||!t.includes(`no_nodejs_compat_v2`)&&(n||r&&e>=`2024-09-23`)}}r(Ke,`resolveNodejsCompat`);function qe(e,t){if(!Ge(e))return t;let n=[`nodejs_compat`,`nodejs_compat_v2`].filter(e=>!t.includes(`no_${e}`));return t.filter(e=>!n.includes(e))}r(qe,`stripRedundantNodejsCompatFlags`);var Je=/* @__PURE__ */ e(((e,n)=>{n.exports=o,o.sync=s;var r=t(`fs`);function i(e,t){var n=t.pathExt===void 0?process.env.PATHEXT:t.pathExt;if(!n||(n=n.split(`;`),n.indexOf(``)!==-1))return!0;for(var r=0;r<n.length;r++){var i=n[r].toLowerCase();if(i&&e.substr(-i.length).toLowerCase()===i)return!0}return!1}function a(e,t,n){return!e.isSymbolicLink()&&!e.isFile()?!1:i(t,n)}function o(e,t,n){r.stat(e,function(r,i){n(r,!r&&a(i,e,t))})}function s(e,t){return a(r.statSync(e),e,t)}})),Ye=/* @__PURE__ */ e(((e,n)=>{n.exports=i,i.sync=a;var r=t(`fs`);function i(e,t,n){r.stat(e,function(e,r){n(e,!e&&o(r,t))})}function a(e,t){return o(r.statSync(e),t)}function o(e,t){return e.isFile()&&s(e,t)}function s(e,t){var n=e.mode,r=e.uid,i=e.gid,a=t.uid===void 0?process.getuid&&process.getuid():t.uid,o=t.gid===void 0?process.getgid&&process.getgid():t.gid,s=64,c=8,l=1,u=s|c;return n&l||n&c&&i===o||n&s&&r===a||n&u&&a===0}})),Xe=/* @__PURE__ */ e(((e,n)=>{t(`fs`);var r=process.platform===`win32`||global.TESTING_WINDOWS?Je():Ye();n.exports=i,i.sync=a;function i(e,t,n){if(typeof t==`function`&&(n=t,t={}),!n){if(typeof Promise!=`function`)throw TypeError(`callback not provided`);return new Promise(function(n,r){i(e,t||{},function(e,t){e?r(e):n(t)})})}r(e,t||{},function(e,r){e&&(e.code===`EACCES`||t&&t.ignoreErrors)&&(e=null,r=!1),n(e,r)})}function a(e,t){try{return r.sync(e,t||{})}catch(e){if(t&&t.ignoreErrors||e.code===`EACCES`)return!1;throw e}}})),Ze=/* @__PURE__ */ e(((e,n)=>{let r=process.platform===`win32`||process.env.OSTYPE===`cygwin`||process.env.OSTYPE===`msys`,i=t(`path`),a=r?`;`:`:`,o=Xe(),s=e=>Object.assign(/* @__PURE__ */ Error(`not found: ${e}`),{code:`ENOENT`}),c=(e,t)=>{let n=t.colon||a,i=e.match(/\//)||r&&e.match(/\\/)?[``]:[...r?[process.cwd()]:[],...(t.path||process.env.PATH||
|
|
3
3
|
/* istanbul ignore next: very unusual */``).split(n)],o=r?t.pathExt||process.env.PATHEXT||`.EXE;.CMD;.BAT;.COM`:``,s=r?o.split(n):[``];return r&&e.indexOf(`.`)!==-1&&s[0]!==``&&s.unshift(``),{pathEnv:i,pathExt:s,pathExtExe:o}},l=(e,t,n)=>{typeof t==`function`&&(n=t,t={}),t||={};let{pathEnv:r,pathExt:a,pathExtExe:l}=c(e,t),u=[],d=n=>new Promise((a,o)=>{if(n===r.length)return t.all&&u.length?a(u):o(s(e));let c=r[n],l=/^".*"$/.test(c)?c.slice(1,-1):c,d=i.join(l,e),p=!l&&/^\.[\\\/]/.test(e)?e.slice(0,2)+d:d;a(f(p,n,0))}),f=(e,n,r)=>new Promise((i,s)=>{if(r===a.length)return i(d(n+1));let c=a[r];o(e+c,{pathExt:l},(a,o)=>{if(!a&&o){if(t.all)u.push(e+c);else return i(e+c)}return i(f(e,n,r+1))})});return n?d(0).then(e=>n(null,e),n):d(0)};n.exports=l,l.sync=(e,t)=>{t||={};let{pathEnv:n,pathExt:r,pathExtExe:a}=c(e,t),l=[];for(let s=0;s<n.length;s++){let c=n[s],u=/^".*"$/.test(c)?c.slice(1,-1):c,d=i.join(u,e),f=!u&&/^\.[\\\/]/.test(e)?e.slice(0,2)+d:d;for(let e=0;e<r.length;e++){let n=f+r[e];try{if(o.sync(n,{pathExt:a})){if(t.all)l.push(n);else return n}}catch{}}}if(t.all&&l.length)return l;if(t.nothrow)return null;throw s(e)}})),Qe=/* @__PURE__ */ e(((e,t)=>{let n=(e={})=>{let t=e.env||process.env;return(e.platform||process.platform)===`win32`?Object.keys(t).reverse().find(e=>e.toUpperCase()===`PATH`)||`Path`:`PATH`};t.exports=n,t.exports.default=n})),$e=/* @__PURE__ */ e(((e,n)=>{let r=t(`path`),i=Ze(),a=Qe();function o(e,t){let n=e.options.env||process.env,o=process.cwd(),s=e.options.cwd!=null,c=s&&process.chdir!==void 0&&!process.chdir.disabled;if(c)try{process.chdir(e.options.cwd)}catch{}let l;try{l=i.sync(e.command,{path:n[a({env:n})],pathExt:t?r.delimiter:void 0})}catch{}finally{c&&process.chdir(o)}return l&&=r.resolve(s?e.options.cwd:``,l),l}function s(e){return o(e)||o(e,!0)}n.exports=s})),et=/* @__PURE__ */ e(((e,t)=>{let n=/([()\][%!^"`<>&|;, *?])/g;function r(e){return e=e.replace(n,`^$1`),e}function i(e,t){return e=`${e}`,e=e.replace(/(?=(\\+?)?)\1"/g,`$1$1\\"`),e=e.replace(/(?=(\\+?)?)\1$/,`$1$1`),e=`"${e}"`,e=e.replace(n,`^$1`),t&&(e=e.replace(n,`^$1`)),e}t.exports.command=r,t.exports.argument=i})),tt=/* @__PURE__ */ e(((e,t)=>{t.exports=/^#!(.*)/})),nt=/* @__PURE__ */ e(((e,t)=>{let n=tt();t.exports=(e=``)=>{let t=e.match(n);if(!t)return null;let[r,i]=t[0].replace(/#! ?/,``).split(` `),a=r.split(`/`).pop();return a===`env`?i:i?`${a} ${i}`:a}})),rt=/* @__PURE__ */ e(((e,n)=>{let r=t(`fs`),i=nt();function a(e){let t=Buffer.alloc(150),n;try{n=r.openSync(e,`r`),r.readSync(n,t,0,150,0),r.closeSync(n)}catch{}return i(t.toString())}n.exports=a})),it=/* @__PURE__ */ e(((e,n)=>{let r=t(`path`),i=$e(),a=et(),o=rt(),s=process.platform===`win32`,c=/\.(?:com|exe)$/i,l=/node_modules[\\/].bin[\\/][^\\/]+\.cmd$/i;function u(e){e.file=i(e);let t=e.file&&o(e.file);return t?(e.args.unshift(e.file),e.command=t,i(e)):e.file}function d(e){if(!s)return e;let t=u(e),n=!c.test(t);if(e.options.forceShell||n){let n=l.test(t);e.command=r.normalize(e.command),e.command=a.command(e.command),e.args=e.args.map(e=>a.argument(e,n)),e.args=[`/d`,`/s`,`/c`,`"${[e.command].concat(e.args).join(` `)}"`],e.command=process.env.comspec||`cmd.exe`,e.options.windowsVerbatimArguments=!0}return e}function f(e,t,n){t&&!Array.isArray(t)&&(n=t,t=null),t=t?t.slice(0):[],n=Object.assign({},n);let r={command:e,args:t,options:n,file:void 0,original:{command:e,args:t}};return n.shell?r:d(r)}n.exports=f})),at=/* @__PURE__ */ e(((e,t)=>{let n=process.platform===`win32`;function r(e,t){return Object.assign(/* @__PURE__ */ Error(`${t} ${e.command} ENOENT`),{code:`ENOENT`,errno:`ENOENT`,syscall:`${t} ${e.command}`,path:e.command,spawnargs:e.args})}function i(e,t){if(!n)return;let r=e.emit;e.emit=function(n,i){if(n===`exit`){let n=a(i,t);if(n)return r.call(e,`error`,n)}return r.apply(e,arguments)}}function a(e,t){return n&&e===1&&!t.file?r(t.original,`spawn`):null}function o(e,t){return n&&e===1&&!t.file?r(t.original,`spawnSync`):null}t.exports={hookChildProcess:i,verifyENOENT:a,verifyENOENTSync:o,notFoundError:r}})),ot=(/* @__PURE__ */ e(((e,n)=>{let r=t(`child_process`),i=it(),a=at();function o(e,t,n){let o=i(e,t,n),s=r.spawn(o.command,o.args,o.options);return a.hookChildProcess(s,o),s}function s(e,t,n){let o=i(e,t,n),s=r.spawnSync(o.command,o.args,o.options);return s.error=s.error||a.verifyENOENTSync(s.status,o),s}n.exports=o,n.exports.spawn=o,n.exports.sync=s,n.exports._parse=i,n.exports._enoent=a})))();const st=async(e,t={})=>ct({useSpinner:t.useSpinner??t.silent,startText:t.startText||lt(e),doneText:t.doneText,promise(){let[n,...r]=e,i=new AbortController,a=(0,ot.spawn)(n,[...r],{stdio:t.silent?`pipe`:`inherit`,env:{...process.env,...t.env},cwd:t.cwd,signal:i.signal}),o=``;(t.captureOutput??t.silent)&&(a.stdout?.on(`data`,e=>{o+=e}),a.stderr?.on(`data`,e=>{o+=e}));let s=null;return new Promise((e,n)=>{let r=e=>{n(new O(`Command cancelled`,e)),i.abort(e?`${e} received`:null)};process.on(`SIGTERM`,r).on(`SIGINT`,r),s=()=>{process.off(`SIGTERM`,r).off(`SIGINT`,r)},a.on(`close`,r=>{try{if(r!==0)throw Error(o,{cause:r});e((t.transformOutput??(e=>e))(A(o)))}catch(e){n(Error(o,{cause:e}))}}),a.on(`error`,e=>{n(e)})}).finally(()=>{s?.()})}}),ct=async({promise:e,...t})=>{let n;t.useSpinner&&ee()&&(n=j()),n?.start(t?.startText),typeof e==`function`&&(e=e());try{let r=await e,i=typeof t.doneText==`function`?t.doneText(r):t.doneText;n?.stop(i)}catch(e){n?.stop(e.message)}finally{n?.stop()}return e};function lt(e){if(process.platform===`win32`){let t=/[&<>[\]|{}^=;!'+,`~\s]/;return e.map(e=>e.match(t)?`"${e.replaceAll(`"`,`""`)}"`:e).join(` `)}return e.map(e=>/["\s]/.test(e)&&!/'/.test(e)?`'`+e.replace(/(['\\])/g,`\\$1`)+`'`:/["'\s]/.test(e)?`"`+e.replace(/(["\\$`!])/g,`\\$1`)+`"`:e).join(` `)}const ut=async(e,t,n={})=>{let{cwd:r=process.cwd(),force:i,dev:a,startText:o,doneText:s}=n,c=n.isWorkspaceRoot??!1;if(t.length===0){let n;switch(e){case`yarn`:break;default:n=`install`}await st([e,...n?[n]:[],...t,...e===`pnpm`||e===`nub`?[`--no-frozen-lockfile`]:[],...i===!0?[`--force`]:[],...dt(e,c)],{cwd:r,startText:o,doneText:s,silent:!0});return}let l,u;switch(e){case`yarn`:u=`add`,l=a?`-D`:``;break;case`bun`:u=`add`,l=a?`-d`:``;break;default:u=`install`,l=a?`--save-dev`:``}if(await st([e,u,...l?[l]:[],...t,...i===!0?[`--force`]:[],...dt(e,c)],{cwd:r,startText:o,doneText:s,silent:!0}),e===`npm`){let e=B.join(r,`package.json`),i=v(_(e),e),a=n.dev?i.devDependencies:i.dependencies;U(a,`dependencies should be defined`);for(let e of t){let t=e.lastIndexOf(`@`);if(t>0){let n=e.slice(0,t),r=e.slice(t+1);r!==`latest`&&(a[n]=r)}}await Pe(e,JSON.stringify(i,null,2))}};function dt(e,t){if(!t)return[];switch(e){case`pnpm`:case`nub`:return[`--workspace-root`];case`yarn`:return[`-W`];case`npm`:case`bun`:return[]}}async function ft(e,t){let n=[`wrangler@latest`];pt(`@cloudflare/workers-types`)&&n.push(`@cloudflare/workers-types@latest`),await ut(e,n,{dev:!0,isWorkspaceRoot:t,startText:`Installing wrangler ${N(`A command line tool for building Cloudflare Workers`)}`,doneText:`${D(`installed`)} ${N(`via \`${e} install wrangler --save-dev\``)}`})}function pt(e){let t=B.join(process.cwd(),`package.json`);if(!z(t))return!1;let n=v(_(t),t);return!!(n.dependencies?.[e]||n.devDependencies?.[e])}function mt(e){let t=z(e);t||ye(e,``);let n=_(e),r=[],i=n.match(/^\/?\.wrangler(\/|\s|$)/m);if(i||r.push(`.wrangler`),n.match(/^\/?\.dev\.vars\*(\s|$)/m)||r.push(`.dev.vars*`),n.match(/^!\/?\.dev\.vars\.example(\s|$)/m)||r.push(`!.dev.vars.example`),n.match(/^\/?\.env\*?(\..*?)?(\s|$)/m)||r.push(`.env*`),n.match(/^!\/?\.env\.example(\s|$)/m)||r.push(`!.env.example`),r.length===0)return;let a=j();a.start(`Adding Wrangler files to the ${be(e)} file`);let o=[...t?[``,...n.match(/\n\s*$/)?[]:[``]]:[]];!i&&r.length>1&&o.push(`# wrangler files`),r.forEach(e=>o.push(e)),o.push(``),de(e,o.join(`
|
|
4
4
|
`));let s=be(e);a.stop(`${D(t?`updated`:`created`)} ${N(`${s} file`)}`)}function ht(e){let t=`${e}/.gitignore`,n=z(t),r=gt(`${e}/.git`);(n||r)&&mt(t)}function gt(e){try{return ve(e).isDirectory()}catch(e){if(e.code===`ENOENT`)return!1;throw Error(e)}}I(import.meta.url||(typeof __filename==`string`?__filename:`/`));var W={};C(W,{__addDisposableResource:()=>Ut,__assign:()=>qt,__asyncDelegator:()=>It,__asyncGenerator:()=>Ft,__asyncValues:()=>G,__await:()=>Pt,__awaiter:()=>Et,__classPrivateFieldGet:()=>Bt,__classPrivateFieldIn:()=>Ht,__classPrivateFieldSet:()=>Vt,__createBinding:()=>Jt,__decorate:()=>yt,__disposeResources:()=>Wt,__esDecorate:()=>xt,__exportStar:()=>Ot,__extends:()=>_t,__generator:()=>Dt,__importDefault:()=>zt,__importStar:()=>Rt,__makeTemplateObject:()=>Lt,__metadata:()=>Tt,__param:()=>bt,__propKey:()=>Ct,__read:()=>At,__rest:()=>vt,__rewriteRelativeImportExtension:()=>Gt,__runInitializers:()=>St,__setFunctionName:()=>wt,__spread:()=>jt,__spreadArray:()=>Nt,__spreadArrays:()=>Mt,__values:()=>kt,default:()=>Qt});function _t(e,t){if(typeof t!=`function`&&t!==null)throw TypeError(`Class extends value `+String(t)+` is not a constructor or null`);Kt(e,t);function n(){this.constructor=e}b(n,`__`),e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}function vt(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols==`function`)for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n}function yt(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect==`object`&&typeof Reflect.decorate==`function`)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a}function bt(e,t){return function(n,r){t(n,r,e)}}function xt(e,t,n,r,i,a){function o(e){if(e!==void 0&&typeof e!=`function`)throw TypeError(`Function expected`);return e}b(o,`accept`);for(var s=r.kind,c=s===`getter`?`get`:s===`setter`?`set`:`value`,l=!t&&e?r.static?e:e.prototype:null,u=t||(l?Object.getOwnPropertyDescriptor(l,r.name):{}),d,f=!1,p=n.length-1;p>=0;p--){var m={};for(var h in r)m[h]=h===`access`?{}:r[h];for(var h in r.access)m.access[h]=r.access[h];m.addInitializer=function(e){if(f)throw TypeError(`Cannot add initializers after decoration has completed`);a.push(o(e||null))};var g=(0,n[p])(s===`accessor`?{get:u.get,set:u.set}:u[c],m);if(s===`accessor`){if(g===void 0)continue;if(typeof g!=`object`||!g)throw TypeError(`Object expected`);(d=o(g.get))&&(u.get=d),(d=o(g.set))&&(u.set=d),(d=o(g.init))&&i.unshift(d)}else(d=o(g))&&(s===`field`?i.unshift(d):u[c]=d)}l&&Object.defineProperty(l,r.name,u),f=!0}function St(e,t,n){for(var r=arguments.length>2,i=0;i<t.length;i++)n=r?t[i].call(e,n):t[i].call(e);return r?n:void 0}function Ct(e){return typeof e==`symbol`?e:`${e}`}function wt(e,t,n){return typeof t==`symbol`&&(t=t.description?`[${t.description}]`:``),Object.defineProperty(e,"name",{configurable:!0,value:n?`${n} ${t}`:t})}function Tt(e,t){if(typeof Reflect==`object`&&typeof Reflect.metadata==`function`)return Reflect.metadata(e,t)}function Et(e,t,n,r){function i(e){return e instanceof n?e:new n(function(t){t(e)})}return b(i,`adopt`),new(n||=Promise)(function(n,a){function o(e){try{c(r.next(e))}catch(e){a(e)}}b(o,`fulfilled`);function s(e){try{c(r.throw(e))}catch(e){a(e)}}b(s,`rejected`);function c(e){e.done?n(e.value):i(e.value).then(o,s)}b(c,`step`),c((r=r.apply(e,t||[])).next())})}function Dt(e,t){var n={label:0,sent:/* @__PURE__ */ b(function(){if(a[0]&1)throw a[1];return a[1]},`sent`),trys:[],ops:[]},r,i,a,o=Object.create((typeof Iterator==`function`?Iterator:Object).prototype);return o.next=s(0),o.throw=s(1),o.return=s(2),typeof Symbol==`function`&&(o[Symbol.iterator]=function(){return this}),o;function s(e){return function(t){return c([e,t])}}function c(s){if(r)throw TypeError(`Generator is already executing.`);for(;o&&(o=0,s[0]&&(n=0)),n;)try{if(r=1,i&&(a=s[0]&2?i.return:s[0]?i.throw||((a=i.return)&&a.call(i),0):i.next)&&!(a=a.call(i,s[1])).done)return a;switch(i=0,a&&(s=[s[0]&2,a.value]),s[0]){case 0:case 1:a=s;break;case 4:return n.label++,{value:s[1],done:!1};case 5:n.label++,i=s[1],s=[0];continue;case 7:s=n.ops.pop(),n.trys.pop();continue;default:if(a=n.trys,!(a=a.length>0&&a[a.length-1])&&(s[0]===6||s[0]===2)){n=0;continue}if(s[0]===3&&(!a||s[1]>a[0]&&s[1]<a[3])){n.label=s[1];break}if(s[0]===6&&n.label<a[1]){n.label=a[1],a=s;break}if(a&&n.label<a[2]){n.label=a[2],n.ops.push(s);break}a[2]&&n.ops.pop(),n.trys.pop();continue}s=t.call(e,n)}catch(e){s=[6,e],i=0}finally{r=a=0}if(s[0]&5)throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}}function Ot(e,t){for(var n in e)n!=="default"&&!Object.prototype.hasOwnProperty.call(t,n)&&Jt(t,e,n)}function kt(e){var t=typeof Symbol==`function`&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&typeof e.length==`number`)return{next:/* @__PURE__ */ b(function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}},`next`)};throw TypeError(t?`Object is not iterable.`:`Symbol.iterator is not defined.`)}function At(e,t){var n=typeof Symbol==`function`&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),i,a=[],o;try{for(;(t===void 0||t-->0)&&!(i=r.next()).done;)a.push(i.value)}catch(e){o={error:e}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(o)throw o.error}}return a}function jt(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(At(arguments[t]));return e}function Mt(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;for(var r=Array(e),i=0,t=0;t<n;t++)for(var a=arguments[t],o=0,s=a.length;o<s;o++,i++)r[i]=a[o];return r}function Nt(e,t,n){if(n||arguments.length===2)for(var r=0,i=t.length,a;r<i;r++)(a||!(r in t))&&(a||=Array.prototype.slice.call(t,0,r),a[r]=t[r]);return e.concat(a||Array.prototype.slice.call(t))}function Pt(e){return this instanceof Pt?(this.v=e,this):new Pt(e)}function Ft(e,t,n){if(!Symbol.asyncIterator)throw TypeError(`Symbol.asyncIterator is not defined.`);var r=n.apply(e,t||[]),i,a=[];return i=Object.create((typeof AsyncIterator==`function`?AsyncIterator:Object).prototype),s(`next`),s(`throw`),s(`return`,o),i[Symbol.asyncIterator]=function(){return this},i;function o(e){return function(t){return Promise.resolve(t).then(e,d)}}function s(e,t){r[e]&&(i[e]=function(t){return new Promise(function(n,r){a.push([e,t,n,r])>1||c(e,t)})},t&&(i[e]=t(i[e])))}function c(e,t){try{l(r[e](t))}catch(e){f(a[0][3],e)}}function l(e){e.value instanceof Pt?Promise.resolve(e.value.v).then(u,d):f(a[0][2],e)}function u(e){c(`next`,e)}function d(e){c(`throw`,e)}function f(e,t){e(t),a.shift(),a.length&&c(a[0][0],a[0][1])}}function It(e){var t={},n;return r(`next`),r(`throw`,function(e){throw e}),r(`return`),t[Symbol.iterator]=function(){return this},t;function r(r,i){t[r]=e[r]?function(t){return(n=!n)?{value:Pt(e[r](t)),done:!1}:i?i(t):t}:i}}function G(e){if(!Symbol.asyncIterator)throw TypeError(`Symbol.asyncIterator is not defined.`);var t=e[Symbol.asyncIterator],n;return t?t.call(e):(e=typeof kt==`function`?kt(e):e[Symbol.iterator](),n={},r(`next`),r(`throw`),r(`return`),n[Symbol.asyncIterator]=function(){return this},n);function r(t){n[t]=e[t]&&function(n){return new Promise(function(r,a){n=e[t](n),i(r,a,n.done,n.value)})}}function i(e,t,n,r){Promise.resolve(r).then(function(t){e({value:t,done:n})},t)}}function Lt(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}function Rt(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var n=Xt(e),r=0;r<n.length;r++)n[r]!=="default"&&Jt(t,e,n[r]);return Yt(t,e),t}function zt(e){return e&&e.__esModule?e:{default:e}}function Bt(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)}function Vt(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}function Ht(e,t){if(t===null||typeof t!=`object`&&typeof t!=`function`)throw TypeError(`Cannot use 'in' operator on non-object`);return typeof e==`function`?t===e:e.has(t)}function Ut(e,t,n){if(t!=null){if(typeof t!=`object`&&typeof t!=`function`)throw TypeError(`Object expected.`);var r,i;if(n){if(!Symbol.asyncDispose)throw TypeError(`Symbol.asyncDispose is not defined.`);r=t[Symbol.asyncDispose]}if(r===void 0){if(!Symbol.dispose)throw TypeError(`Symbol.dispose is not defined.`);r=t[Symbol.dispose],n&&(i=r)}if(typeof r!=`function`)throw TypeError(`Object not disposable.`);i&&(r=/* @__PURE__ */ b(function(){try{i.call(this)}catch(e){return Promise.reject(e)}},`dispose`)),e.stack.push({value:t,dispose:r,async:n})}else n&&e.stack.push({async:!0});return t}function Wt(e){function t(t){e.error=e.hasError?new Zt(t,e.error,`An error was suppressed during disposal.`):t,e.hasError=!0}b(t,`fail`);var n,r=0;function i(){for(;n=e.stack.pop();)try{if(!n.async&&r===1)return r=0,e.stack.push(n),Promise.resolve().then(i);if(n.dispose){var a=n.dispose.call(n.value);if(n.async)return r|=2,Promise.resolve(a).then(i,function(e){return t(e),i()})}else r|=1}catch(e){t(e)}if(r===1)return e.hasError?Promise.reject(e.error):Promise.resolve();if(e.hasError)throw e.error}return b(i,`next`),i()}function Gt(e,t){return typeof e==`string`&&/^\.\.?\//.test(e)?e.replace(/\.(tsx)$|((?:\.d)?)((?:\.[^./]+?)?)\.([cm]?)ts$/i,function(e,n,r,i,a){return n?t?`.jsx`:`.js`:r&&(!i||!a)?e:r+i+`.`+a.toLowerCase()+`js`}):e}var Kt,qt,Jt,Yt,Xt,Zt,Qt,K=x({"../../node_modules/.pnpm/tslib@2.8.1/node_modules/tslib/tslib.es6.mjs"(){Kt=/* @__PURE__ */ b(function(e,t){return Kt=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},Kt(e,t)},`extendStatics`),b(_t,`__extends`),qt=/* @__PURE__ */ b(function(){return qt=Object.assign||/* @__PURE__ */ b(function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},`__assign`),qt.apply(this,arguments)},`__assign`),b(vt,`__rest`),b(yt,`__decorate`),b(bt,`__param`),b(xt,`__esDecorate`),b(St,`__runInitializers`),b(Ct,`__propKey`),b(wt,`__setFunctionName`),b(Tt,`__metadata`),b(Et,`__awaiter`),b(Dt,`__generator`),Jt=Object.create?function(e,t,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||(`get`in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:/* @__PURE__ */ b(function(){return t[n]},`get`)}),Object.defineProperty(e,r,i)}:function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]},b(Ot,`__exportStar`),b(kt,`__values`),b(At,`__read`),b(jt,`__spread`),b(Mt,`__spreadArrays`),b(Nt,`__spreadArray`),b(Pt,`__await`),b(Ft,`__asyncGenerator`),b(It,`__asyncDelegator`),b(G,`__asyncValues`),b(Lt,`__makeTemplateObject`),Yt=Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t},Xt=/* @__PURE__ */ b(function(e){return Xt=Object.getOwnPropertyNames||function(e){var t=[];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[t.length]=n);return t},Xt(e)},`ownKeys`),b(Rt,`__importStar`),b(zt,`__importDefault`),b(Bt,`__classPrivateFieldGet`),b(Vt,`__classPrivateFieldSet`),b(Ht,`__classPrivateFieldIn`),b(Ut,`__addDisposableResource`),Zt=typeof SuppressedError==`function`?SuppressedError:function(e,t,n){var r=Error(n);return r.name=`SuppressedError`,r.error=e,r.suppressed=t,r},b(Wt,`__disposeResources`),b(Gt,`__rewriteRelativeImportExtension`),Qt={__extends:_t,__assign:qt,__rest:vt,__decorate:yt,__param:bt,__esDecorate:xt,__runInitializers:St,__propKey:Ct,__setFunctionName:wt,__metadata:Tt,__awaiter:Et,__generator:Dt,__createBinding:Jt,__exportStar:Ot,__values:kt,__read:At,__spread:jt,__spreadArrays:Mt,__spreadArray:Nt,__await:Pt,__asyncGenerator:Ft,__asyncDelegator:It,__asyncValues:G,__makeTemplateObject:Lt,__importStar:Rt,__importDefault:zt,__classPrivateFieldGet:Bt,__classPrivateFieldSet:Vt,__classPrivateFieldIn:Ht,__addDisposableResource:Ut,__disposeResources:Wt,__rewriteRelativeImportExtension:Gt}}}),q=T({"../../node_modules/.pnpm/ast-types@0.16.1/node_modules/ast-types/lib/shared.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.maybeSetModuleExports=void 0;var t=(K(),S(W)).__importDefault(J());function n(e){var n=e.use(t.default),r=n.Type,i=n.builtInTypes,a=i.number;function o(e){return r.from(function(t){return a.check(t)&&t>=e},a+` >= `+e)}b(o,`geq`);var s={null:/* @__PURE__ */ b(function(){return null},`null`),emptyArray:/* @__PURE__ */ b(function(){return[]},`emptyArray`),false:/* @__PURE__ */ b(function(){return!1},`false`),true:/* @__PURE__ */ b(function(){return!0},`true`),undefined:/* @__PURE__ */ b(function(){},`undefined`),"use strict":/* @__PURE__ */ b(function(){return`use strict`},`use strict`)},c=r.or(i.string,i.number,i.boolean,i.null,i.undefined);return{geq:o,defaults:s,isPrimitive:r.from(function(e){if(e===null)return!0;var t=typeof e;return t!==`object`&&t!==`function`},c.toString())}}b(n,`default_1`),e.default=n;function r(e){try{var t=e(),n=t.exports,r=n.default}catch{return}r&&r!==n&&typeof n==`object`&&(Object.assign(r,n,{default:r}),n.__esModule&&Object.defineProperty(r,"__esModule",{value:!0}),t.exports=r)}b(r,`maybeSetModuleExports`),e.maybeSetModuleExports=r}}),J=T({"../../node_modules/.pnpm/ast-types@0.16.1/node_modules/ast-types/lib/types.js"(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.Def=void 0;var n=(K(),S(W)),r=q(),i=Object.prototype,a=i.toString,o=i.hasOwnProperty,s=function(){function e(){}return b(e,`BaseType`),e.prototype.assert=function(e,t){if(!this.check(e,t)){var n=h(e);throw Error(n+` does not match type `+this)}return!0},e.prototype.arrayOf=function(){return new c(this)},e}(),c=function(e){n.__extends(t,e);function t(t){var n=e.call(this)||this;return n.elemType=t,n.kind=`ArrayType`,n}return b(t,`ArrayType`),t.prototype.toString=function(){return`[`+this.elemType+`]`},t.prototype.check=function(e,t){var n=this;return Array.isArray(e)&&e.every(function(e){return n.elemType.check(e,t)})},t}(s),l=function(e){n.__extends(t,e);function t(t){var n=e.call(this)||this;return n.value=t,n.kind=`IdentityType`,n}return b(t,`IdentityType`),t.prototype.toString=function(){return String(this.value)},t.prototype.check=function(e,t){var n=e===this.value;return!n&&typeof t==`function`&&t(this,e),n},t}(s),u=function(e){n.__extends(t,e);function t(t){var n=e.call(this)||this;return n.fields=t,n.kind=`ObjectType`,n}return b(t,`ObjectType`),t.prototype.toString=function(){return`{ `+this.fields.join(`, `)+` }`},t.prototype.check=function(e,t){return a.call(e)===a.call({})&&this.fields.every(function(n){return n.type.check(e[n.name],t)})},t}(s),d=function(e){n.__extends(t,e);function t(t){var n=e.call(this)||this;return n.types=t,n.kind=`OrType`,n}return b(t,`OrType`),t.prototype.toString=function(){return this.types.join(` | `)},t.prototype.check=function(e,t){return this.types.some(function(n){return n.check(e,!!t)})?!0:(typeof t==`function`&&t(this,e),!1)},t}(s),f=function(e){n.__extends(t,e);function t(t,n){var r=e.call(this)||this;return r.name=t,r.predicate=n,r.kind=`PredicateType`,r}return b(t,`PredicateType`),t.prototype.toString=function(){return this.name},t.prototype.check=function(e,t){var n=this.predicate(e,t);return!n&&typeof t==`function`&&t(this,e),n},t}(s),p=function(){function e(e,t){this.type=e,this.typeName=t,this.baseNames=[],this.ownFields=/* @__PURE__ */ Object.create(null),this.allSupertypes=/* @__PURE__ */ Object.create(null),this.supertypeList=[],this.allFields=/* @__PURE__ */ Object.create(null),this.fieldNames=[],this.finalized=!1,this.buildable=!1,this.buildParams=[]}return b(e,`Def`),e.prototype.isSupertypeOf=function(t){if(t instanceof e){if(this.finalized!==!0||t.finalized!==!0)throw Error(``);return o.call(t.allSupertypes,this.typeName)}throw Error(t+` is not a Def`)},e.prototype.checkAllFields=function(e,t){var n=this.allFields;if(this.finalized!==!0)throw Error(``+this.typeName);function r(r){var i=n[r],a=i.type,o=i.getValue(e);return a.check(o,t)}return b(r,`checkFieldByName`),typeof e==`object`&&!!e&&Object.keys(n).every(r)},e.prototype.bases=function(){var e=[...arguments],t=this.baseNames;if(this.finalized){if(e.length!==t.length)throw Error(``);for(var n=0;n<e.length;n++)if(e[n]!==t[n])throw Error(``);return this}return e.forEach(function(e){t.indexOf(e)<0&&t.push(e)}),this},e}();e.Def=p;var m=function(){function e(e,t,n,r){this.name=e,this.type=t,this.defaultFn=n,this.hidden=!!r}return b(e,`Field`),e.prototype.toString=function(){return JSON.stringify(this.name)+`: `+this.type},e.prototype.getValue=function(e){var t=e[this.name];return t===void 0&&typeof this.defaultFn==`function`&&(t=this.defaultFn.call(e)),t},e}();function h(e){return Array.isArray(e)?`[`+e.map(h).join(`, `)+`]`:e&&typeof e==`object`?`{ `+Object.keys(e).map(function(t){return t+`: `+e[t]}).join(`, `)+` }`:JSON.stringify(e)}b(h,`shallowStringify`);function g(e){var t={or:/* @__PURE__ */ b(function(){return new d([...arguments].map(function(e){return t.from(e)}))},`or`),from:/* @__PURE__ */ b(function(e,n){if(e instanceof c||e instanceof l||e instanceof u||e instanceof d||e instanceof f)return e;if(e instanceof p)return e.type;if(v.check(e)){if(e.length!==1)throw Error(`only one element type is permitted for typed arrays`);return new c(t.from(e[0]))}if(y.check(e))return new u(Object.keys(e).map(function(n){return new m(n,t.from(e[n],n))}));if(typeof e==`function`){var a=r.indexOf(e);if(a>=0)return i[a];if(typeof n!=`string`)throw Error(`missing name`);return new f(n,e)}return new l(e)},`from`),def:/* @__PURE__ */ b(function(e){return o.call(O,e)?O[e]:O[e]=new A(e)},`def`),hasDef:/* @__PURE__ */ b(function(e){return o.call(O,e)},`hasDef`)},r=[],i=[];function s(e,t){var n=a.call(t),o=new f(e,function(e){return a.call(e)===n});return t&&typeof t.constructor==`function`&&(r.push(t.constructor),i.push(o)),o}b(s,`defBuiltInType`);var g=s(`string`,`truthy`),_=s(`function`,function(){}),v=s(`array`,[]),y=s(`object`,{}),x=s(`RegExp`,/./),S=s(`Date`,/* @__PURE__ */ new Date),C=s(`number`,3),w=s(`boolean`,!0),T=s(`null`,null),E=s(`undefined`,void 0),D={string:g,function:_,array:v,object:y,RegExp:x,Date:S,number:C,boolean:w,null:T,undefined:E,BigInt:typeof BigInt==`function`?s(`BigInt`,BigInt(1234)):new f(`BigInt`,function(){return!1})},O=/* @__PURE__ */ Object.create(null);function k(e){if(e&&typeof e==`object`){var t=e.type;if(typeof t==`string`&&o.call(O,t)){var n=O[t];if(n.finalized)return n}}return null}b(k,`defFromValue`);var A=function(e){n.__extends(r,e);function r(t){var n=e.call(this,new f(t,function(e,t){return n.check(e,t)}),t)||this;return n}return b(r,`DefImpl`),r.prototype.check=function(e,t){if(this.finalized!==!0)throw Error(`prematurely checking unfinalized type `+this.typeName);if(typeof e!=`object`||!e)return!1;var n=k(e);return n?t&&n===this?this.checkAllFields(e,t):this.isSupertypeOf(n)?!t||n.checkAllFields(e,t)&&this.checkAllFields(e,!1):!1:this.typeName===`SourceLocation`||this.typeName===`Position`?this.checkAllFields(e,t):!1},r.prototype.build=function(){for(var e=this,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];if(this.buildParams=t,this.buildable)return this;this.field(`type`,String,function(){return e.typeName}),this.buildable=!0;var r=/* @__PURE__ */ b(function(t,n,r,i){if(!o.call(t,n)){var a=e.allFields;if(!o.call(a,n))throw Error(``+n);var s=a[n],c=s.type,l;if(i)l=r;else if(s.defaultFn)l=s.defaultFn.call(t);else{var u=`no value or default function given for field `+JSON.stringify(n)+` of `+e.typeName+`(`+e.buildParams.map(function(e){return a[e]}).join(`, `)+`)`;throw Error(u)}if(!c.check(l))throw Error(h(l)+` does not match field `+s+` of type `+e.typeName);t[n]=l}},`addParam`),i=/* @__PURE__ */ b(function(){var t=[...arguments],n=t.length;if(!e.finalized)throw Error(`attempting to instantiate unfinalized type `+e.typeName);var i=Object.create(M);if(e.buildParams.forEach(function(e,a){a<n?r(i,e,t[a],!0):r(i,e,null,!1)}),Object.keys(e.allFields).forEach(function(e){r(i,e,null,!1)}),i.type!==e.typeName)throw Error(``);return i},`builder`);return i.from=function(t){if(!e.finalized)throw Error(`attempting to instantiate unfinalized type `+e.typeName);var n=Object.create(M);if(Object.keys(e.allFields).forEach(function(e){o.call(t,e)?r(n,e,t[e],!0):r(n,e,null,!1)}),n.type!==e.typeName)throw Error(``);return n},Object.defineProperty(j,P(this.typeName),{enumerable:!0,value:i}),this},r.prototype.field=function(e,n,r,i){return this.finalized?(console.error(`Ignoring attempt to redefine field `+JSON.stringify(e)+` of finalized type `+JSON.stringify(this.typeName)),this):(this.ownFields[e]=new m(e,t.from(n),r,i),this)},r.prototype.finalize=function(){var e=this;if(!this.finalized){var t=this.allFields,n=this.allSupertypes;for(var r in this.baseNames.forEach(function(r){var i=O[r];if(i instanceof p)i.finalize(),R(t,i.allFields),R(n,i.allSupertypes);else{var a=`unknown supertype name `+JSON.stringify(r)+` for subtype `+JSON.stringify(e.typeName);throw Error(a)}}),R(t,this.ownFields),n[this.typeName]=this,this.fieldNames.length=0,t)o.call(t,r)&&!t[r].hidden&&this.fieldNames.push(r);Object.defineProperty(ne,this.typeName,{enumerable:!0,value:this.type}),this.finalized=!0,oe(this.typeName,this.supertypeList),this.buildable&&this.supertypeList.lastIndexOf(`Expression`)>=0&&L(this.typeName)}},r}(p);function ee(e){if(!o.call(O,e))throw Error(``);var t=O[e];if(t.finalized!==!0)throw Error(``);return t.supertypeList.slice(1)}b(ee,`getSupertypeNames`);function te(e){for(var t={},n=Object.keys(O),r=n.length,i=0;i<r;++i){var a=n[i],s=O[a];if(s.finalized!==!0)throw Error(``+a);for(var c=0;c<s.supertypeList.length;++c){var l=s.supertypeList[c];if(o.call(e,l)){t[a]=l;break}}}return t}b(te,`computeSupertypeLookupTable`);var j=/* @__PURE__ */ Object.create(null),M={};function N(e,t){var n=M[e];return E.check(t)?delete M[e]:(_.assert(t),Object.defineProperty(M,e,{enumerable:!0,configurable:!0,value:t})),n}b(N,`defineMethod`);function P(e){return e.replace(/^[A-Z]+/,function(e){var t=e.length;switch(t){case 0:return``;case 1:return e.toLowerCase();default:return e.slice(0,t-1).toLowerCase()+e.charAt(t-1)}})}b(P,`getBuilderName`);function F(e){return e=P(e),e.replace(/(Expression)?$/,`Statement`)}b(F,`getStatementBuilderName`);var ne={};function re(e){var t=k(e);if(t)return t.fieldNames.slice(0);if(`type`in e)throw Error(`did not recognize object of type `+JSON.stringify(e.type));return Object.keys(e)}b(re,`getFieldNames`);function ie(e,t){var n=k(e);if(n){var r=n.allFields[t];if(r)return r.getValue(e)}return e&&e[t]}b(ie,`getFieldValue`);function ae(e,t,n){re(e).forEach(function(n){t.call(this,n,ie(e,n))},n)}b(ae,`eachField`);function I(e,t,n){return re(e).some(function(n){return t.call(this,n,ie(e,n))},n)}b(I,`someField`);function L(e){var t=F(e);if(!j[t]){var n=j[P(e)];if(n){var r=/* @__PURE__ */ b(function(){var e=[...arguments];return j.expressionStatement(n.apply(j,e))},`builder`);r.from=function(){var e=[...arguments];return j.expressionStatement(n.from.apply(j,e))},j[t]=r}}}b(L,`wrapExpressionBuilderWithStatement`);function oe(e,t){t.length=0,t.push(e);for(var n=/* @__PURE__ */ Object.create(null),r=0;r<t.length;++r){e=t[r];var i=O[e];if(i.finalized!==!0)throw Error(``);o.call(n,e)&&delete t[n[e]],n[e]=r,t.push.apply(t,i.baseNames)}for(var a=0,s=a,c=t.length;s<c;++s)o.call(t,s)&&(t[a++]=t[s]);t.length=a}b(oe,`populateSupertypeList`);function R(e,t){return Object.keys(t).forEach(function(n){e[n]=t[n]}),e}b(R,`extend`);function se(){Object.keys(O).forEach(function(e){O[e].finalize()})}return b(se,`finalize`),{Type:t,builtInTypes:D,getSupertypeNames:ee,computeSupertypeLookupTable:te,builders:j,defineMethod:N,getBuilderName:P,getStatementBuilderName:F,namedTypes:ne,getFieldNames:re,getFieldValue:ie,eachField:ae,someField:I,finalize:se}}b(g,`typesPlugin`),e.default=g,(0,r.maybeSetModuleExports)(function(){return t})}}),$t=T({"../../node_modules/.pnpm/ast-types@0.16.1/node_modules/ast-types/lib/path.js"(e,t){Object.defineProperty(e,"__esModule",{value:!0});var n=(K(),S(W)),r=q(),i=n.__importDefault(J()),a=Object.prototype.hasOwnProperty;function o(e){var t=e.use(i.default),n=t.builtInTypes.array,r=t.builtInTypes.number,o=/* @__PURE__ */ b(function e(t,n,r){if(!(this instanceof e))throw Error(`Path constructor cannot be invoked without 'new'`);if(n){if(!(n instanceof e))throw Error(``)}else n=null,r=null;this.value=t,this.parentPath=n,this.name=r,this.__childCache=null},`Path`),s=o.prototype;function c(e){return e.__childCache||=/* @__PURE__ */ Object.create(null)}b(c,`getChildCache`);function l(e,t){var n=c(e),r=e.getValueProperty(t),i=n[t];return(!a.call(n,t)||i.value!==r)&&(i=n[t]=new e.constructor(r,e,t)),i}b(l,`getChildPath`),s.getValueProperty=/* @__PURE__ */ b(function(e){return this.value[e]},`getValueProperty`),s.get=/* @__PURE__ */ b(function(){for(var e=[...arguments],t=this,n=e.length,r=0;r<n;++r)t=l(t,e[r]);return t},`get`),s.each=/* @__PURE__ */ b(function(e,t){for(var n=[],r=this.value.length,i=0,i=0;i<r;++i)a.call(this.value,i)&&(n[i]=this.get(i));for(t||=this,i=0;i<r;++i)a.call(n,i)&&e.call(t,n[i])},`each`),s.map=/* @__PURE__ */ b(function(e,t){var n=[];return this.each(function(t){n.push(e.call(this,t))},t),n},`map`),s.filter=/* @__PURE__ */ b(function(e,t){var n=[];return this.each(function(t){e.call(this,t)&&n.push(t)},t),n},`filter`);function u(){}b(u,`emptyMoves`);function d(e,t,i,o){if(n.assert(e.value),t===0)return u;var s=e.value.length;if(s<1)return u;var l=arguments.length;l===2?(i=0,o=s):l===3?(i=Math.max(i,0),o=s):(i=Math.max(i,0),o=Math.min(o,s)),r.assert(i),r.assert(o);for(var d=/* @__PURE__ */ Object.create(null),f=c(e),p=i;p<o;++p)if(a.call(e.value,p)){var m=e.get(p);if(m.name!==p)throw Error(``);var h=p+t;m.name=h,d[h]=m,delete f[p]}return delete f.length,function(){for(var t in d){var n=d[t];if(n.name!==+t)throw Error(``);f[t]=n,e.value[t]=n.value}}}b(d,`getMoves`),s.shift=/* @__PURE__ */ b(function(){var e=d(this,-1),t=this.value.shift();return e(),t},`shift`),s.unshift=/* @__PURE__ */ b(function(){var e=[...arguments],t=d(this,e.length),n=this.value.unshift.apply(this.value,e);return t(),n},`unshift`),s.push=/* @__PURE__ */ b(function(){var e=[...arguments];return n.assert(this.value),delete c(this).length,this.value.push.apply(this.value,e)},`push`),s.pop=/* @__PURE__ */ b(function(){n.assert(this.value);var e=c(this);return delete e[this.value.length-1],delete e.length,this.value.pop()},`pop`),s.insertAt=/* @__PURE__ */ b(function(e){var t=arguments.length,n=d(this,t-1,e);if(n===u&&t<=1)return this;e=Math.max(e,0);for(var r=1;r<t;++r)this.value[e+r-1]=arguments[r];return n(),this},`insertAt`),s.insertBefore=/* @__PURE__ */ b(function(){for(var e=[...arguments],t=this.parentPath,n=e.length,r=[this.name],i=0;i<n;++i)r.push(e[i]);return t.insertAt.apply(t,r)},`insertBefore`),s.insertAfter=/* @__PURE__ */ b(function(){for(var e=[...arguments],t=this.parentPath,n=e.length,r=[this.name+1],i=0;i<n;++i)r.push(e[i]);return t.insertAt.apply(t,r)},`insertAfter`);function f(e){if(!(e instanceof o))throw Error(``);var t=e.parentPath;if(!t)return e;var r=t.value,i=c(t);if(r[e.name]===e.value)i[e.name]=e;else if(n.check(r)){var a=r.indexOf(e.value);a>=0&&(i[e.name=a]=e)}else r[e.name]=e.value,i[e.name]=e;if(r[e.name]!==e.value||e.parentPath.get(e.name)!==e)throw Error(``);return e}return b(f,`repairRelationshipWithParent`),s.replace=/* @__PURE__ */ b(function(e){var t=[],r=this.parentPath.value,i=c(this.parentPath),a=arguments.length;if(f(this),n.check(r)){for(var o=r.length,s=d(this.parentPath,a-1,this.name+1),l=[this.name,1],u=0;u<a;++u)l.push(arguments[u]);if(r.splice.apply(r,l)[0]!==this.value||r.length!==o-1+a)throw Error(``);if(s(),a===0)delete this.value,delete i[this.name],this.__childCache=null;else{if(r[this.name]!==e)throw Error(``);for(this.value!==e&&(this.value=e,this.__childCache=null),u=0;u<a;++u)t.push(this.parentPath.get(this.name+u));if(t[0]!==this)throw Error(``)}}else if(a===1)this.value!==e&&(this.__childCache=null),this.value=r[this.name]=e,t.push(this);else if(a===0)delete r[this.name],delete this.value,this.__childCache=null;else throw Error(`Could not replace path`);return t},`replace`),o}b(o,`pathPlugin`),e.default=o,(0,r.maybeSetModuleExports)(function(){return t})}}),en=T({"../../node_modules/.pnpm/ast-types@0.16.1/node_modules/ast-types/lib/scope.js"(e,t){Object.defineProperty(e,"__esModule",{value:!0});var n=(K(),S(W)),r=q(),i=n.__importDefault(J()),a=Object.prototype.hasOwnProperty;function o(e){var t=e.use(i.default),n=t.Type,r=t.namedTypes,o=r.Node,s=r.Expression,c=t.builtInTypes.array,l=t.builders,u=/* @__PURE__ */ b(function e(t,n){if(!(this instanceof e))throw Error(`Scope constructor cannot be invoked without 'new'`);f.check(t.value)||d.assert(t.value);var r;if(n){if(!(n instanceof e))throw Error(``);r=n.depth+1}else n=null,r=0;Object.defineProperties(this,{path:{value:t},node:{value:t.value},isGlobal:{value:!n,enumerable:!0},depth:{value:r},parent:{value:n},bindings:{value:{}},types:{value:{}}})},`Scope`),d=n.or(r.Program,r.Function,r.CatchClause),f=n.or(r.Function,r.ClassDeclaration,r.ClassExpression,r.InterfaceDeclaration,r.TSInterfaceDeclaration,r.TypeAlias,r.TSTypeAliasDeclaration),p=n.or(r.TypeParameter,r.TSTypeParameter);u.isEstablishedBy=function(e){return d.check(e)||f.check(e)};var m=u.prototype;m.didScan=!1,m.declares=function(e){return this.scan(),a.call(this.bindings,e)},m.declaresType=function(e){return this.scan(),a.call(this.types,e)},m.declareTemporary=function(e){if(e){if(!/^[a-z$_]/i.test(e))throw Error(``)}else e=`t$`;e+=this.depth.toString(36)+`$`,this.scan();for(var n=0;this.declares(e+n);)++n;var r=e+n;return this.bindings[r]=t.builders.identifier(r)},m.injectTemporary=function(e,t){e||=this.declareTemporary();var n=this.path.get(`body`);return r.BlockStatement.check(n.value)&&(n=n.get(`body`)),n.unshift(l.variableDeclaration(`var`,[l.variableDeclarator(e,t||null)])),e},m.scan=function(e){if(e||!this.didScan){for(var t in this.bindings)delete this.bindings[t];for(var t in this.types)delete this.types[t];h(this.path,this.bindings,this.types),this.didScan=!0}},m.getBindings=function(){return this.scan(),this.bindings},m.getTypes=function(){return this.scan(),this.types};function h(e,t,n){var i=e.value;if(f.check(i)){var a=e.get(`typeParameters`,`params`);c.check(a.value)&&a.each(function(e){S(e,n)})}d.check(i)&&(r.CatchClause.check(i)?y(e.get(`param`),t):g(e,t,n))}b(h,`scanScope`);function g(e,n,i){var a=e.value;e.parent&&r.FunctionExpression.check(e.parent.node)&&e.parent.node.id&&y(e.parent.get(`id`),n),a&&(c.check(a)?e.each(function(e){v(e,n,i)}):r.Function.check(a)?(e.get(`params`).each(function(e){y(e,n)}),v(e.get(`body`),n,i),g(e.get(`typeParameters`),n,i)):r.TypeAlias&&r.TypeAlias.check(a)||r.InterfaceDeclaration&&r.InterfaceDeclaration.check(a)||r.TSTypeAliasDeclaration&&r.TSTypeAliasDeclaration.check(a)||r.TSInterfaceDeclaration&&r.TSInterfaceDeclaration.check(a)?x(e.get(`id`),i):r.VariableDeclarator.check(a)?(y(e.get(`id`),n),v(e.get(`init`),n,i)):a.type===`ImportSpecifier`||a.type===`ImportNamespaceSpecifier`||a.type===`ImportDefaultSpecifier`?y(e.get(a.local?`local`:a.name?`name`:`id`),n):o.check(a)&&!s.check(a)&&t.eachField(a,function(t,r){var a=e.get(t);if(!_(a,r))throw Error(``);v(a,n,i)}))}b(g,`recursiveScanScope`);function _(e,t){return!!(e.value===t||Array.isArray(e.value)&&e.value.length===0&&Array.isArray(t)&&t.length===0)}b(_,`pathHasValue`);function v(e,t,n){var i=e.value;if(i&&!s.check(i)){if(r.FunctionDeclaration.check(i)&&i.id!==null)y(e.get(`id`),t);else if(r.ClassDeclaration&&r.ClassDeclaration.check(i)&&i.id!==null)y(e.get(`id`),t),g(e.get(`typeParameters`),t,n);else if(r.InterfaceDeclaration&&r.InterfaceDeclaration.check(i)||r.TSInterfaceDeclaration&&r.TSInterfaceDeclaration.check(i))x(e.get(`id`),n);else if(d.check(i)){if(r.CatchClause.check(i)&&r.Identifier.check(i.param)){var o=i.param.name,c=a.call(t,o);g(e.get(`body`),t,n),c||delete t[o]}}else g(e,t,n)}}b(v,`recursiveScanChild`);function y(e,t){var n=e.value;r.Pattern.assert(n),r.Identifier.check(n)?a.call(t,n.name)?t[n.name].push(e):t[n.name]=[e]:r.AssignmentPattern&&r.AssignmentPattern.check(n)?y(e.get(`left`),t):r.ObjectPattern&&r.ObjectPattern.check(n)?e.get(`properties`).each(function(e){var n=e.value;r.Pattern.check(n)?y(e,t):r.Property.check(n)||r.ObjectProperty&&r.ObjectProperty.check(n)?y(e.get(`value`),t):r.SpreadProperty&&r.SpreadProperty.check(n)&&y(e.get(`argument`),t)}):r.ArrayPattern&&r.ArrayPattern.check(n)?e.get(`elements`).each(function(e){var n=e.value;r.Pattern.check(n)?y(e,t):r.SpreadElement&&r.SpreadElement.check(n)&&y(e.get(`argument`),t)}):r.PropertyPattern&&r.PropertyPattern.check(n)?y(e.get(`pattern`),t):(r.SpreadElementPattern&&r.SpreadElementPattern.check(n)||r.RestElement&&r.RestElement.check(n)||r.SpreadPropertyPattern&&r.SpreadPropertyPattern.check(n))&&y(e.get(`argument`),t)}b(y,`addPattern`);function x(e,t){var n=e.value;r.Pattern.assert(n),r.Identifier.check(n)&&(a.call(t,n.name)?t[n.name].push(e):t[n.name]=[e])}b(x,`addTypePattern`);function S(e,t){var n=e.value;p.assert(n),a.call(t,n.name)?t[n.name].push(e):t[n.name]=[e]}return b(S,`addTypeParameter`),m.lookup=function(e){for(var t=this;t&&!t.declares(e);t=t.parent);return t},m.lookupType=function(e){for(var t=this;t&&!t.declaresType(e);t=t.parent);return t},m.getGlobalScope=function(){for(var e=this;!e.isGlobal;)e=e.parent;return e},u}b(o,`scopePlugin`),e.default=o,(0,r.maybeSetModuleExports)(function(){return t})}}),tn=T({"../../node_modules/.pnpm/ast-types@0.16.1/node_modules/ast-types/lib/node-path.js"(e,t){Object.defineProperty(e,"__esModule",{value:!0});var n=(K(),S(W)),r=n.__importDefault(J()),i=n.__importDefault($t()),a=n.__importDefault(en()),o=q();function s(e){var t=e.use(r.default),n=t.namedTypes,o=t.builders,s=t.builtInTypes.number,c=t.builtInTypes.array,l=e.use(i.default),u=e.use(a.default),d=/* @__PURE__ */ b(function e(t,n,r){if(!(this instanceof e))throw Error(`NodePath constructor cannot be invoked without 'new'`);l.call(this,t,n,r)},`NodePath`),f=d.prototype=Object.create(l.prototype,{constructor:{value:d,enumerable:!1,writable:!0,configurable:!0}});Object.defineProperties(f,{node:{get:/* @__PURE__ */ b(function(){return Object.defineProperty(this,"node",{configurable:!0,value:this._computeNode()}),this.node},`get`)},parent:{get:/* @__PURE__ */ b(function(){return Object.defineProperty(this,"parent",{configurable:!0,value:this._computeParent()}),this.parent},`get`)},scope:{get:/* @__PURE__ */ b(function(){return Object.defineProperty(this,"scope",{configurable:!0,value:this._computeScope()}),this.scope},`get`)}}),f.replace=function(){return delete this.node,delete this.parent,delete this.scope,l.prototype.replace.apply(this,arguments)},f.prune=function(){var e=this.parent;return this.replace(),v(e)},f._computeNode=function(){var e=this.value;if(n.Node.check(e))return e;var t=this.parentPath;return t&&t.node||null},f._computeParent=function(){var e=this.value,t=this.parentPath;if(!n.Node.check(e)){for(;t&&!n.Node.check(t.value);)t=t.parentPath;t&&=t.parentPath}for(;t&&!n.Node.check(t.value);)t=t.parentPath;return t||null},f._computeScope=function(){var e=this.value,t=this.parentPath,r=t&&t.scope;return n.Node.check(e)&&u.isEstablishedBy(e)&&(r=new u(this,r)),r||null},f.getValueProperty=function(e){return t.getFieldValue(this.value,e)},f.needsParens=function(e){var t=this.parentPath;if(!t)return!1;var r=this.value;if(!n.Expression.check(r)||r.type===`Identifier`)return!1;for(;!n.Node.check(t.value);)if(t=t.parentPath,!t)return!1;var i=t.value;switch(r.type){case`UnaryExpression`:case`SpreadElement`:case`SpreadProperty`:return i.type===`MemberExpression`&&this.name===`object`&&i.object===r;case`BinaryExpression`:case`LogicalExpression`:switch(i.type){case`CallExpression`:return this.name===`callee`&&i.callee===r;case`UnaryExpression`:case`SpreadElement`:case`SpreadProperty`:return!0;case`MemberExpression`:return this.name===`object`&&i.object===r;case`BinaryExpression`:case`LogicalExpression`:var a=r,o=h[i.operator],c=h[a.operator];if(o>c)return!0;if(o===c&&this.name===`right`){if(i.right!==a)throw Error(`Nodes must be equal`);return!0}default:return!1}case`SequenceExpression`:switch(i.type){case`ForStatement`:return!1;case`ExpressionStatement`:return this.name!==`expression`;default:return!0}case`YieldExpression`:switch(i.type){case`BinaryExpression`:case`LogicalExpression`:case`UnaryExpression`:case`SpreadElement`:case`SpreadProperty`:case`CallExpression`:case`MemberExpression`:case`NewExpression`:case`ConditionalExpression`:case`YieldExpression`:return!0;default:return!1}case`Literal`:return i.type===`MemberExpression`&&s.check(r.value)&&this.name===`object`&&i.object===r;case`AssignmentExpression`:case`ConditionalExpression`:switch(i.type){case`UnaryExpression`:case`SpreadElement`:case`SpreadProperty`:case`BinaryExpression`:case`LogicalExpression`:return!0;case`CallExpression`:return this.name===`callee`&&i.callee===r;case`ConditionalExpression`:return this.name===`test`&&i.test===r;case`MemberExpression`:return this.name===`object`&&i.object===r;default:return!1}default:if(i.type===`NewExpression`&&this.name===`callee`&&i.callee===r)return g(r)}return!(e===!0||this.canBeFirstInStatement()||!this.firstInStatement())};function p(e){return n.BinaryExpression.check(e)||n.LogicalExpression.check(e)}b(p,`isBinary`);function m(e){return n.UnaryExpression.check(e)||n.SpreadElement&&n.SpreadElement.check(e)||n.SpreadProperty&&n.SpreadProperty.check(e)}b(m,`isUnaryLike`);var h={};[[`||`],[`&&`],[`|`],[`^`],[`&`],[`==`,`===`,`!=`,`!==`],[`<`,`>`,`<=`,`>=`,`in`,`instanceof`],[`>>`,`<<`,`>>>`],[`+`,`-`],[`*`,`/`,`%`]].forEach(function(e,t){e.forEach(function(e){h[e]=t})});function g(e){return n.CallExpression.check(e)?!0:c.check(e)?e.some(g):n.Node.check(e)?t.someField(e,function(e,t){return g(t)}):!1}b(g,`containsCallExpression`),f.canBeFirstInStatement=function(){var e=this.node;return!n.FunctionExpression.check(e)&&!n.ObjectExpression.check(e)},f.firstInStatement=function(){return _(this)};function _(e){for(var t,r;e.parent;e=e.parent){if(t=e.node,r=e.parent.node,n.BlockStatement.check(r)&&e.parent.name===`body`&&e.name===0){if(r.body[0]!==t)throw Error(`Nodes must be equal`);return!0}if(n.ExpressionStatement.check(r)&&e.name===`expression`){if(r.expression!==t)throw Error(`Nodes must be equal`);return!0}if(n.SequenceExpression.check(r)&&e.parent.name===`expressions`&&e.name===0){if(r.expressions[0]!==t)throw Error(`Nodes must be equal`);continue}if(n.CallExpression.check(r)&&e.name===`callee`){if(r.callee!==t)throw Error(`Nodes must be equal`);continue}if(n.MemberExpression.check(r)&&e.name===`object`){if(r.object!==t)throw Error(`Nodes must be equal`);continue}if(n.ConditionalExpression.check(r)&&e.name===`test`){if(r.test!==t)throw Error(`Nodes must be equal`);continue}if(p(r)&&e.name===`left`){if(r.left!==t)throw Error(`Nodes must be equal`);continue}if(n.UnaryExpression.check(r)&&!r.prefix&&e.name===`argument`){if(r.argument!==t)throw Error(`Nodes must be equal`);continue}return!1}return!0}b(_,`firstInStatement`);function v(e){if(n.VariableDeclaration.check(e.node)){var t=e.get(`declarations`).value;if(!t||t.length===0)return e.prune()}else if(n.ExpressionStatement.check(e.node)){if(!e.get(`expression`).value)return e.prune()}else n.IfStatement.check(e.node)&&y(e);return e}b(v,`cleanUpNodesAfterPrune`);function y(e){var t=e.get(`test`).value,r=e.get(`alternate`).value,i=e.get(`consequent`).value;if(!i&&!r){var a=o.expressionStatement(t);e.replace(a)}else if(!i&&r){var s=o.unaryExpression(`!`,t,!0);n.UnaryExpression.check(t)&&t.operator===`!`&&(s=t.argument),e.get(`test`).replace(s),e.get(`consequent`).replace(r),e.get(`alternate`).replace()}}return b(y,`cleanUpIfStatementAfterPrune`),d}b(s,`nodePathPlugin`),e.default=s,(0,o.maybeSetModuleExports)(function(){return t})}}),nn=T({"../../node_modules/.pnpm/ast-types@0.16.1/node_modules/ast-types/lib/path-visitor.js"(e,t){Object.defineProperty(e,"__esModule",{value:!0});var n=(K(),S(W)),r=n.__importDefault(J()),i=n.__importDefault(tn()),a=q(),o=Object.prototype.hasOwnProperty;function s(e){var t=e.use(r.default),n=e.use(i.default),a=t.builtInTypes.array,s=t.builtInTypes.object,c=t.builtInTypes.function,l,u=/* @__PURE__ */ b(function e(){if(!(this instanceof e))throw Error(`PathVisitor constructor cannot be invoked without 'new'`);this._reusableContextStack=[],this._methodNameTable=d(this),this._shouldVisitComments=o.call(this._methodNameTable,`Block`)||o.call(this._methodNameTable,`Line`),this.Context=h(this),this._visiting=!1,this._changeReported=!1},`PathVisitor`);function d(e){var n=/* @__PURE__ */ Object.create(null);for(var r in e)/^visit[A-Z]/.test(r)&&(n[r.slice(5)]=!0);for(var i=t.computeSupertypeLookupTable(n),a=/* @__PURE__ */ Object.create(null),o=Object.keys(i),s=o.length,l=0;l<s;++l){var u=o[l];r=`visit`+i[u],c.check(e[r])&&(a[u]=r)}return a}b(d,`computeMethodNameTable`),u.fromMethodsObject=/* @__PURE__ */ b(function(e){if(e instanceof u)return e;if(!s.check(e))return new u;var t=/* @__PURE__ */ b(function e(){if(!(this instanceof e))throw Error(`Visitor constructor cannot be invoked without 'new'`);u.call(this)},`Visitor`),n=t.prototype=Object.create(p);return n.constructor=t,f(n,e),f(t,u),c.assert(t.fromMethodsObject),c.assert(t.visit),new t},`fromMethodsObject`);function f(e,t){for(var n in t)o.call(t,n)&&(e[n]=t[n]);return e}b(f,`extend`),u.visit=/* @__PURE__ */ b(function(e,t){return u.fromMethodsObject(t).visit(e)},`visit`);var p=u.prototype;p.visit=function(){if(this._visiting)throw Error(`Recursively calling visitor.visit(path) resets visitor state. Try this.visit(path) or this.traverse(path) instead.`);this._visiting=!0,this._changeReported=!1,this._abortRequested=!1;var e=[...arguments];e[0]instanceof n||(e[0]=new n({root:e[0]}).get(`root`)),this.reset.apply(this,e);var t;try{var r=this.visitWithoutReset(e[0]);t=!0}finally{if(this._visiting=!1,!t&&this._abortRequested)return e[0].value}return r},p.AbortRequest=/* @__PURE__ */ b(function(){},`AbortRequest`),p.abort=function(){var e=this;e._abortRequested=!0;var t=new e.AbortRequest;throw t.cancel=function(){e._abortRequested=!1},t},p.reset=function(e){},p.visitWithoutReset=function(e){if(this instanceof this.Context)return this.visitor.visitWithoutReset(e);if(!(e instanceof n))throw Error(``);var t=e.value,r=t&&typeof t==`object`&&typeof t.type==`string`&&this._methodNameTable[t.type];if(r){var i=this.acquireContext(e);try{return i.invokeVisitorMethod(r)}finally{this.releaseContext(i)}}else return m(e,this)};function m(e,r){if(!(e instanceof n)||!(r instanceof u))throw Error(``);var i=e.value;if(a.check(i))e.each(r.visitWithoutReset,r);else if(s.check(i)){var c=t.getFieldNames(i);r._shouldVisitComments&&i.comments&&c.indexOf(`comments`)<0&&c.push(`comments`);for(var l=c.length,d=[],f=0;f<l;++f){var p=c[f];o.call(i,p)||(i[p]=t.getFieldValue(i,p)),d.push(e.get(p))}for(var f=0;f<l;++f)r.visitWithoutReset(d[f])}return e.value}b(m,`visitChildren`),p.acquireContext=function(e){return this._reusableContextStack.length===0?new this.Context(e):this._reusableContextStack.pop().reset(e)},p.releaseContext=function(e){if(!(e instanceof this.Context))throw Error(``);this._reusableContextStack.push(e),e.currentPath=null},p.reportChanged=function(){this._changeReported=!0},p.wasChangeReported=function(){return this._changeReported};function h(e){function t(r){if(!(this instanceof t)||!(this instanceof u)||!(r instanceof n))throw Error(``);Object.defineProperty(this,"visitor",{value:e,writable:!1,enumerable:!0,configurable:!1}),this.currentPath=r,this.needToCallTraverse=!0,Object.seal(this)}if(b(t,`Context`),!(e instanceof u))throw Error(``);var r=t.prototype=Object.create(e);return r.constructor=t,f(r,g),t}b(h,`makeContextConstructor`);var g=/* @__PURE__ */ Object.create(null);return g.reset=/* @__PURE__ */ b(function(e){if(!(this instanceof this.Context)||!(e instanceof n))throw Error(``);return this.currentPath=e,this.needToCallTraverse=!0,this},`reset`),g.invokeVisitorMethod=/* @__PURE__ */ b(function(e){if(!(this instanceof this.Context)||!(this.currentPath instanceof n))throw Error(``);var t=this.visitor[e].call(this,this.currentPath);if(t===!1?this.needToCallTraverse=!1:t!==l&&(this.currentPath=this.currentPath.replace(t)[0],this.needToCallTraverse&&this.traverse(this.currentPath)),this.needToCallTraverse!==!1)throw Error(`Must either call this.traverse or return false in `+e);var r=this.currentPath;return r&&r.value},`invokeVisitorMethod`),g.traverse=/* @__PURE__ */ b(function(e,t){if(!(this instanceof this.Context)||!(e instanceof n)||!(this.currentPath instanceof n))throw Error(``);return this.needToCallTraverse=!1,m(e,u.fromMethodsObject(t||this.visitor))},`traverse`),g.visit=/* @__PURE__ */ b(function(e,t){if(!(this instanceof this.Context)||!(e instanceof n)||!(this.currentPath instanceof n))throw Error(``);return this.needToCallTraverse=!1,u.fromMethodsObject(t||this.visitor).visitWithoutReset(e)},`visit`),g.reportChanged=/* @__PURE__ */ b(function(){this.visitor.reportChanged()},`reportChanged`),g.abort=/* @__PURE__ */ b(function(){this.needToCallTraverse=!1,this.visitor.abort()},`abort`),u}b(s,`pathVisitorPlugin`),e.default=s,(0,a.maybeSetModuleExports)(function(){return t})}}),rn=T({"../../node_modules/.pnpm/ast-types@0.16.1/node_modules/ast-types/lib/equiv.js"(e,t){Object.defineProperty(e,"__esModule",{value:!0});var n=(K(),S(W)),r=q(),i=n.__importDefault(J());function a(e){var t=e.use(i.default),n=t.getFieldNames,r=t.getFieldValue,a=t.builtInTypes.array,o=t.builtInTypes.object,s=t.builtInTypes.Date,c=t.builtInTypes.RegExp,l=Object.prototype.hasOwnProperty;function u(e,t,n){return a.check(n)?n.length=0:n=null,f(e,t,n)}b(u,`astNodesAreEquivalent`),u.assert=function(e,t){var n=[];if(!u(e,t,n)){if(n.length===0){if(e!==t)throw Error(`Nodes must be equal`)}else throw Error(`Nodes differ in the following path: `+n.map(d).join(``))}};function d(e){return/[_$a-z][_$a-z0-9]*/i.test(e)?`.`+e:`[`+JSON.stringify(e)+`]`}b(d,`subscriptForProperty`);function f(e,t,n){return e===t?!0:a.check(e)?p(e,t,n):o.check(e)?m(e,t,n):s.check(e)?s.check(t)&&+e==+t:c.check(e)?c.check(t)&&e.source===t.source&&e.global===t.global&&e.multiline===t.multiline&&e.ignoreCase===t.ignoreCase:e==t}b(f,`areEquivalent`);function p(e,t,n){a.assert(e);var r=e.length;if(!a.check(t)||t.length!==r)return n&&n.push(`length`),!1;for(var i=0;i<r;++i){if(n&&n.push(i),i in e!=i in t||!f(e[i],t[i],n))return!1;if(n){var o=n.pop();if(o!==i)throw Error(``+o)}}return!0}b(p,`arraysAreEquivalent`);function m(e,t,i){if(o.assert(e),!o.check(t))return!1;if(e.type!==t.type)return i&&i.push(`type`),!1;var a=n(e),s=a.length,c=n(t),u=c.length;if(s===u){for(var d=0;d<s;++d){var p=a[d],m=r(e,p),h=r(t,p);if(i&&i.push(p),!f(m,h,i))return!1;if(i){var g=i.pop();if(g!==p)throw Error(``+g)}}return!0}if(!i)return!1;var _=/* @__PURE__ */ Object.create(null);for(d=0;d<s;++d)_[a[d]]=!0;for(d=0;d<u;++d){if(p=c[d],!l.call(_,p))return i.push(p),!1;delete _[p]}for(p in _){i.push(p);break}return!1}return b(m,`objectsAreEquivalent`),u}b(a,`default_1`),e.default=a,(0,r.maybeSetModuleExports)(function(){return t})}}),an=T({"../../node_modules/.pnpm/ast-types@0.16.1/node_modules/ast-types/lib/fork.js"(e,t){Object.defineProperty(e,"__esModule",{value:!0});var n=(K(),S(W)),r=n.__importDefault(J()),i=n.__importDefault(nn()),a=n.__importDefault(rn()),o=n.__importDefault($t()),s=n.__importDefault(tn()),c=q();function l(e){var t=u(),n=t.use(r.default);e.forEach(t.use),n.finalize();var c=t.use(i.default);return{Type:n.Type,builtInTypes:n.builtInTypes,namedTypes:n.namedTypes,builders:n.builders,defineMethod:n.defineMethod,getFieldNames:n.getFieldNames,getFieldValue:n.getFieldValue,eachField:n.eachField,someField:n.someField,getSupertypeNames:n.getSupertypeNames,getBuilderName:n.getBuilderName,astNodesAreEquivalent:t.use(a.default),finalize:n.finalize,Path:t.use(o.default),NodePath:t.use(s.default),PathVisitor:c,use:t.use,visit:c.visit}}b(l,`default_1`),e.default=l;function u(){var e=[],t=[];function n(n){var i=e.indexOf(n);return i===-1&&(i=e.length,e.push(n),t[i]=n(r)),t[i]}b(n,`use`);var r={use:n};return r}b(u,`createFork`),(0,c.maybeSetModuleExports)(function(){return t})}}),on=T({"../../node_modules/.pnpm/ast-types@0.16.1/node_modules/ast-types/lib/def/operators/core.js"(e,t){Object.defineProperty(e,"__esModule",{value:!0});var n=q();function r(){return{BinaryOperators:[`==`,`!=`,`===`,`!==`,`<`,`<=`,`>`,`>=`,`<<`,`>>`,`>>>`,`+`,`-`,`*`,`/`,`%`,`&`,`|`,`^`,`in`,`instanceof`],AssignmentOperators:[`=`,`+=`,`-=`,`*=`,`/=`,`%=`,`<<=`,`>>=`,`>>>=`,`|=`,`^=`,`&=`],LogicalOperators:[`||`,`&&`]}}b(r,`default_1`),e.default=r,(0,n.maybeSetModuleExports)(function(){return t})}}),sn=T({"../../node_modules/.pnpm/ast-types@0.16.1/node_modules/ast-types/lib/def/operators/es2016.js"(e,t){Object.defineProperty(e,"__esModule",{value:!0});var n=(K(),S(W)),r=q(),i=n.__importDefault(on());function a(e){var t=e.use(i.default);return t.BinaryOperators.indexOf(`**`)<0&&t.BinaryOperators.push(`**`),t.AssignmentOperators.indexOf(`**=`)<0&&t.AssignmentOperators.push(`**=`),t}b(a,`default_1`),e.default=a,(0,r.maybeSetModuleExports)(function(){return t})}}),cn=T({"../../node_modules/.pnpm/ast-types@0.16.1/node_modules/ast-types/lib/def/operators/es2020.js"(e,t){Object.defineProperty(e,"__esModule",{value:!0});var n=(K(),S(W)),r=q(),i=n.__importDefault(sn());function a(e){var t=e.use(i.default);return t.LogicalOperators.indexOf(`??`)<0&&t.LogicalOperators.push(`??`),t}b(a,`default_1`),e.default=a,(0,r.maybeSetModuleExports)(function(){return t})}}),ln=T({"../../node_modules/.pnpm/ast-types@0.16.1/node_modules/ast-types/lib/def/operators/es2021.js"(e,t){Object.defineProperty(e,"__esModule",{value:!0});var n=(K(),S(W)),r=q(),i=n.__importDefault(cn());function a(e){var t=e.use(i.default);return t.LogicalOperators.forEach(function(e){var n=e+`=`;t.AssignmentOperators.indexOf(n)<0&&t.AssignmentOperators.push(n)}),t}b(a,`default_1`),e.default=a,(0,r.maybeSetModuleExports)(function(){return t})}}),un=T({"../../node_modules/.pnpm/ast-types@0.16.1/node_modules/ast-types/lib/def/core.js"(e,t){Object.defineProperty(e,"__esModule",{value:!0});var n=(K(),S(W)),r=n.__importDefault(on()),i=n.__importDefault(J()),a=n.__importStar(q());function o(e){var t=e.use(i.default).Type,n=t.def,o=t.or,s=e.use(a.default),c=s.defaults,l=s.geq,u=e.use(r.default),d=u.BinaryOperators,f=u.AssignmentOperators,p=u.LogicalOperators;n(`Printable`).field(`loc`,o(n(`SourceLocation`),null),c.null,!0),n(`Node`).bases(`Printable`).field(`type`,String).field(`comments`,o([n(`Comment`)],null),c.null,!0),n(`SourceLocation`).field(`start`,n(`Position`)).field(`end`,n(`Position`)).field(`source`,o(String,null),c.null),n(`Position`).field(`line`,l(1)).field(`column`,l(0)),n(`File`).bases(`Node`).build(`program`,`name`).field(`program`,n(`Program`)).field(`name`,o(String,null),c.null),n(`Program`).bases(`Node`).build(`body`).field(`body`,[n(`Statement`)]),n(`Function`).bases(`Node`).field(`id`,o(n(`Identifier`),null),c.null).field(`params`,[n(`Pattern`)]).field(`body`,n(`BlockStatement`)).field(`generator`,Boolean,c.false).field(`async`,Boolean,c.false),n(`Statement`).bases(`Node`),n(`EmptyStatement`).bases(`Statement`).build(),n(`BlockStatement`).bases(`Statement`).build(`body`).field(`body`,[n(`Statement`)]),n(`ExpressionStatement`).bases(`Statement`).build(`expression`).field(`expression`,n(`Expression`)),n(`IfStatement`).bases(`Statement`).build(`test`,`consequent`,`alternate`).field(`test`,n(`Expression`)).field(`consequent`,n(`Statement`)).field(`alternate`,o(n(`Statement`),null),c.null),n(`LabeledStatement`).bases(`Statement`).build(`label`,`body`).field(`label`,n(`Identifier`)).field(`body`,n(`Statement`)),n(`BreakStatement`).bases(`Statement`).build(`label`).field(`label`,o(n(`Identifier`),null),c.null),n(`ContinueStatement`).bases(`Statement`).build(`label`).field(`label`,o(n(`Identifier`),null),c.null),n(`WithStatement`).bases(`Statement`).build(`object`,`body`).field(`object`,n(`Expression`)).field(`body`,n(`Statement`)),n(`SwitchStatement`).bases(`Statement`).build(`discriminant`,`cases`,`lexical`).field(`discriminant`,n(`Expression`)).field(`cases`,[n(`SwitchCase`)]).field(`lexical`,Boolean,c.false),n(`ReturnStatement`).bases(`Statement`).build(`argument`).field(`argument`,o(n(`Expression`),null)),n(`ThrowStatement`).bases(`Statement`).build(`argument`).field(`argument`,n(`Expression`)),n(`TryStatement`).bases(`Statement`).build(`block`,`handler`,`finalizer`).field(`block`,n(`BlockStatement`)).field(`handler`,o(n(`CatchClause`),null),function(){return this.handlers&&this.handlers[0]||null}).field(`handlers`,[n(`CatchClause`)],function(){return this.handler?[this.handler]:[]},!0).field(`guardedHandlers`,[n(`CatchClause`)],c.emptyArray).field(`finalizer`,o(n(`BlockStatement`),null),c.null),n(`CatchClause`).bases(`Node`).build(`param`,`guard`,`body`).field(`param`,n(`Pattern`)).field(`guard`,o(n(`Expression`),null),c.null).field(`body`,n(`BlockStatement`)),n(`WhileStatement`).bases(`Statement`).build(`test`,`body`).field(`test`,n(`Expression`)).field(`body`,n(`Statement`)),n(`DoWhileStatement`).bases(`Statement`).build(`body`,`test`).field(`body`,n(`Statement`)).field(`test`,n(`Expression`)),n(`ForStatement`).bases(`Statement`).build(`init`,`test`,`update`,`body`).field(`init`,o(n(`VariableDeclaration`),n(`Expression`),null)).field(`test`,o(n(`Expression`),null)).field(`update`,o(n(`Expression`),null)).field(`body`,n(`Statement`)),n(`ForInStatement`).bases(`Statement`).build(`left`,`right`,`body`).field(`left`,o(n(`VariableDeclaration`),n(`Expression`))).field(`right`,n(`Expression`)).field(`body`,n(`Statement`)),n(`DebuggerStatement`).bases(`Statement`).build(),n(`Declaration`).bases(`Statement`),n(`FunctionDeclaration`).bases(`Function`,`Declaration`).build(`id`,`params`,`body`).field(`id`,n(`Identifier`)),n(`FunctionExpression`).bases(`Function`,`Expression`).build(`id`,`params`,`body`),n(`VariableDeclaration`).bases(`Declaration`).build(`kind`,`declarations`).field(`kind`,o(`var`,`let`,`const`)).field(`declarations`,[n(`VariableDeclarator`)]),n(`VariableDeclarator`).bases(`Node`).build(`id`,`init`).field(`id`,n(`Pattern`)).field(`init`,o(n(`Expression`),null),c.null),n(`Expression`).bases(`Node`),n(`ThisExpression`).bases(`Expression`).build(),n(`ArrayExpression`).bases(`Expression`).build(`elements`).field(`elements`,[o(n(`Expression`),null)]),n(`ObjectExpression`).bases(`Expression`).build(`properties`).field(`properties`,[n(`Property`)]),n(`Property`).bases(`Node`).build(`kind`,`key`,`value`).field(`kind`,o(`init`,`get`,`set`)).field(`key`,o(n(`Literal`),n(`Identifier`))).field(`value`,n(`Expression`)),n(`SequenceExpression`).bases(`Expression`).build(`expressions`).field(`expressions`,[n(`Expression`)]);var m=o(`-`,`+`,`!`,`~`,`typeof`,`void`,`delete`);n(`UnaryExpression`).bases(`Expression`).build(`operator`,`argument`,`prefix`).field(`operator`,m).field(`argument`,n(`Expression`)).field(`prefix`,Boolean,c.true);var h=o.apply(void 0,d);n(`BinaryExpression`).bases(`Expression`).build(`operator`,`left`,`right`).field(`operator`,h).field(`left`,n(`Expression`)).field(`right`,n(`Expression`));var g=o.apply(void 0,f);n(`AssignmentExpression`).bases(`Expression`).build(`operator`,`left`,`right`).field(`operator`,g).field(`left`,o(n(`Pattern`),n(`MemberExpression`))).field(`right`,n(`Expression`));var _=o(`++`,`--`);n(`UpdateExpression`).bases(`Expression`).build(`operator`,`argument`,`prefix`).field(`operator`,_).field(`argument`,n(`Expression`)).field(`prefix`,Boolean);var v=o.apply(void 0,p);n(`LogicalExpression`).bases(`Expression`).build(`operator`,`left`,`right`).field(`operator`,v).field(`left`,n(`Expression`)).field(`right`,n(`Expression`)),n(`ConditionalExpression`).bases(`Expression`).build(`test`,`consequent`,`alternate`).field(`test`,n(`Expression`)).field(`consequent`,n(`Expression`)).field(`alternate`,n(`Expression`)),n(`NewExpression`).bases(`Expression`).build(`callee`,`arguments`).field(`callee`,n(`Expression`)).field(`arguments`,[n(`Expression`)]),n(`CallExpression`).bases(`Expression`).build(`callee`,`arguments`).field(`callee`,n(`Expression`)).field(`arguments`,[n(`Expression`)]),n(`MemberExpression`).bases(`Expression`).build(`object`,`property`,`computed`).field(`object`,n(`Expression`)).field(`property`,o(n(`Identifier`),n(`Expression`))).field(`computed`,Boolean,function(){var e=this.property.type;return e===`Literal`||e===`MemberExpression`||e===`BinaryExpression`}),n(`Pattern`).bases(`Node`),n(`SwitchCase`).bases(`Node`).build(`test`,`consequent`).field(`test`,o(n(`Expression`),null)).field(`consequent`,[n(`Statement`)]),n(`Identifier`).bases(`Expression`,`Pattern`).build(`name`).field(`name`,String).field(`optional`,Boolean,c.false),n(`Literal`).bases(`Expression`).build(`value`).field(`value`,o(String,Boolean,null,Number,RegExp,BigInt)),n(`Comment`).bases(`Printable`).field(`value`,String).field(`leading`,Boolean,c.true).field(`trailing`,Boolean,c.false)}b(o,`default_1`),e.default=o,(0,a.maybeSetModuleExports)(function(){return t})}}),dn=T({"../../node_modules/.pnpm/ast-types@0.16.1/node_modules/ast-types/lib/def/es6.js"(e,t){Object.defineProperty(e,"__esModule",{value:!0});var n=(K(),S(W)),r=n.__importDefault(un()),i=n.__importDefault(J()),a=n.__importStar(q());function o(e){e.use(r.default);var t=e.use(i.default),n=t.Type.def,o=t.Type.or,s=e.use(a.default).defaults;n(`Function`).field(`generator`,Boolean,s.false).field(`expression`,Boolean,s.false).field(`defaults`,[o(n(`Expression`),null)],s.emptyArray).field(`rest`,o(n(`Identifier`),null),s.null),n(`RestElement`).bases(`Pattern`).build(`argument`).field(`argument`,n(`Pattern`)).field(`typeAnnotation`,o(n(`TypeAnnotation`),n(`TSTypeAnnotation`),null),s.null),n(`SpreadElementPattern`).bases(`Pattern`).build(`argument`).field(`argument`,n(`Pattern`)),n(`FunctionDeclaration`).build(`id`,`params`,`body`,`generator`,`expression`).field(`id`,o(n(`Identifier`),null)),n(`FunctionExpression`).build(`id`,`params`,`body`,`generator`,`expression`),n(`ArrowFunctionExpression`).bases(`Function`,`Expression`).build(`params`,`body`,`expression`).field(`id`,null,s.null).field(`body`,o(n(`BlockStatement`),n(`Expression`))).field(`generator`,!1,s.false),n(`ForOfStatement`).bases(`Statement`).build(`left`,`right`,`body`).field(`left`,o(n(`VariableDeclaration`),n(`Pattern`))).field(`right`,n(`Expression`)).field(`body`,n(`Statement`)),n(`YieldExpression`).bases(`Expression`).build(`argument`,`delegate`).field(`argument`,o(n(`Expression`),null)).field(`delegate`,Boolean,s.false),n(`GeneratorExpression`).bases(`Expression`).build(`body`,`blocks`,`filter`).field(`body`,n(`Expression`)).field(`blocks`,[n(`ComprehensionBlock`)]).field(`filter`,o(n(`Expression`),null)),n(`ComprehensionExpression`).bases(`Expression`).build(`body`,`blocks`,`filter`).field(`body`,n(`Expression`)).field(`blocks`,[n(`ComprehensionBlock`)]).field(`filter`,o(n(`Expression`),null)),n(`ComprehensionBlock`).bases(`Node`).build(`left`,`right`,`each`).field(`left`,n(`Pattern`)).field(`right`,n(`Expression`)).field(`each`,Boolean),n(`Property`).field(`key`,o(n(`Literal`),n(`Identifier`),n(`Expression`))).field(`value`,o(n(`Expression`),n(`Pattern`))).field(`method`,Boolean,s.false).field(`shorthand`,Boolean,s.false).field(`computed`,Boolean,s.false),n(`ObjectProperty`).field(`shorthand`,Boolean,s.false),n(`PropertyPattern`).bases(`Pattern`).build(`key`,`pattern`).field(`key`,o(n(`Literal`),n(`Identifier`),n(`Expression`))).field(`pattern`,n(`Pattern`)).field(`computed`,Boolean,s.false),n(`ObjectPattern`).bases(`Pattern`).build(`properties`).field(`properties`,[o(n(`PropertyPattern`),n(`Property`))]),n(`ArrayPattern`).bases(`Pattern`).build(`elements`).field(`elements`,[o(n(`Pattern`),null)]),n(`SpreadElement`).bases(`Node`).build(`argument`).field(`argument`,n(`Expression`)),n(`ArrayExpression`).field(`elements`,[o(n(`Expression`),n(`SpreadElement`),n(`RestElement`),null)]),n(`NewExpression`).field(`arguments`,[o(n(`Expression`),n(`SpreadElement`))]),n(`CallExpression`).field(`arguments`,[o(n(`Expression`),n(`SpreadElement`))]),n(`AssignmentPattern`).bases(`Pattern`).build(`left`,`right`).field(`left`,n(`Pattern`)).field(`right`,n(`Expression`)),n(`MethodDefinition`).bases(`Declaration`).build(`kind`,`key`,`value`,`static`).field(`kind`,o(`constructor`,`method`,`get`,`set`)).field(`key`,n(`Expression`)).field(`value`,n(`Function`)).field(`computed`,Boolean,s.false).field(`static`,Boolean,s.false);var c=o(n(`MethodDefinition`),n(`VariableDeclarator`),n(`ClassPropertyDefinition`),n(`ClassProperty`),n(`StaticBlock`));n(`ClassProperty`).bases(`Declaration`).build(`key`).field(`key`,o(n(`Literal`),n(`Identifier`),n(`Expression`))).field(`computed`,Boolean,s.false),n(`ClassPropertyDefinition`).bases(`Declaration`).build(`definition`).field(`definition`,c),n(`ClassBody`).bases(`Declaration`).build(`body`).field(`body`,[c]),n(`ClassDeclaration`).bases(`Declaration`).build(`id`,`body`,`superClass`).field(`id`,o(n(`Identifier`),null)).field(`body`,n(`ClassBody`)).field(`superClass`,o(n(`Expression`),null),s.null),n(`ClassExpression`).bases(`Expression`).build(`id`,`body`,`superClass`).field(`id`,o(n(`Identifier`),null),s.null).field(`body`,n(`ClassBody`)).field(`superClass`,o(n(`Expression`),null),s.null),n(`Super`).bases(`Expression`).build(),n(`Specifier`).bases(`Node`),n(`ModuleSpecifier`).bases(`Specifier`).field(`local`,o(n(`Identifier`),null),s.null).field(`id`,o(n(`Identifier`),null),s.null).field(`name`,o(n(`Identifier`),null),s.null),n(`ImportSpecifier`).bases(`ModuleSpecifier`).build(`imported`,`local`).field(`imported`,n(`Identifier`)),n(`ImportDefaultSpecifier`).bases(`ModuleSpecifier`).build(`local`),n(`ImportNamespaceSpecifier`).bases(`ModuleSpecifier`).build(`local`),n(`ImportDeclaration`).bases(`Declaration`).build(`specifiers`,`source`,`importKind`).field(`specifiers`,[o(n(`ImportSpecifier`),n(`ImportNamespaceSpecifier`),n(`ImportDefaultSpecifier`))],s.emptyArray).field(`source`,n(`Literal`)).field(`importKind`,o(`value`,`type`),function(){return`value`}),n(`ExportNamedDeclaration`).bases(`Declaration`).build(`declaration`,`specifiers`,`source`).field(`declaration`,o(n(`Declaration`),null)).field(`specifiers`,[n(`ExportSpecifier`)],s.emptyArray).field(`source`,o(n(`Literal`),null),s.null),n(`ExportSpecifier`).bases(`ModuleSpecifier`).build(`local`,`exported`).field(`exported`,n(`Identifier`)),n(`ExportDefaultDeclaration`).bases(`Declaration`).build(`declaration`).field(`declaration`,o(n(`Declaration`),n(`Expression`))),n(`ExportAllDeclaration`).bases(`Declaration`).build(`source`).field(`source`,n(`Literal`)),n(`TaggedTemplateExpression`).bases(`Expression`).build(`tag`,`quasi`).field(`tag`,n(`Expression`)).field(`quasi`,n(`TemplateLiteral`)),n(`TemplateLiteral`).bases(`Expression`).build(`quasis`,`expressions`).field(`quasis`,[n(`TemplateElement`)]).field(`expressions`,[n(`Expression`)]),n(`TemplateElement`).bases(`Node`).build(`value`,`tail`).field(`value`,{cooked:String,raw:String}).field(`tail`,Boolean),n(`MetaProperty`).bases(`Expression`).build(`meta`,`property`).field(`meta`,n(`Identifier`)).field(`property`,n(`Identifier`))}b(o,`default_1`),e.default=o,(0,a.maybeSetModuleExports)(function(){return t})}}),fn=T({"../../node_modules/.pnpm/ast-types@0.16.1/node_modules/ast-types/lib/def/es2016.js"(e,t){Object.defineProperty(e,"__esModule",{value:!0});var n=(K(),S(W)),r=n.__importDefault(sn()),i=n.__importDefault(dn()),a=q();function o(e){e.use(r.default),e.use(i.default)}b(o,`default_1`),e.default=o,(0,a.maybeSetModuleExports)(function(){return t})}}),pn=T({"../../node_modules/.pnpm/ast-types@0.16.1/node_modules/ast-types/lib/def/es2017.js"(e,t){Object.defineProperty(e,"__esModule",{value:!0});var n=(K(),S(W)),r=n.__importDefault(fn()),i=n.__importDefault(J()),a=n.__importStar(q());function o(e){e.use(r.default);var t=e.use(i.default).Type.def,n=e.use(a.default).defaults;t(`Function`).field(`async`,Boolean,n.false),t(`AwaitExpression`).bases(`Expression`).build(`argument`).field(`argument`,t(`Expression`))}b(o,`default_1`),e.default=o,(0,a.maybeSetModuleExports)(function(){return t})}}),mn=T({"../../node_modules/.pnpm/ast-types@0.16.1/node_modules/ast-types/lib/def/es2018.js"(e,t){Object.defineProperty(e,"__esModule",{value:!0});var n=(K(),S(W)),r=n.__importDefault(pn()),i=n.__importDefault(J()),a=n.__importStar(q());function o(e){e.use(r.default);var t=e.use(i.default),n=t.Type.def,o=t.Type.or,s=e.use(a.default).defaults;n(`ForOfStatement`).field(`await`,Boolean,s.false),n(`SpreadProperty`).bases(`Node`).build(`argument`).field(`argument`,n(`Expression`)),n(`ObjectExpression`).field(`properties`,[o(n(`Property`),n(`SpreadProperty`),n(`SpreadElement`))]),n(`TemplateElement`).field(`value`,{cooked:o(String,null),raw:String}),n(`SpreadPropertyPattern`).bases(`Pattern`).build(`argument`).field(`argument`,n(`Pattern`)),n(`ObjectPattern`).field(`properties`,[o(n(`PropertyPattern`),n(`Property`),n(`RestElement`),n(`SpreadPropertyPattern`))])}b(o,`default_1`),e.default=o,(0,a.maybeSetModuleExports)(function(){return t})}}),hn=T({"../../node_modules/.pnpm/ast-types@0.16.1/node_modules/ast-types/lib/def/es2019.js"(e,t){Object.defineProperty(e,"__esModule",{value:!0});var n=(K(),S(W)),r=n.__importDefault(mn()),i=n.__importDefault(J()),a=n.__importStar(q());function o(e){e.use(r.default);var t=e.use(i.default),n=t.Type.def,o=t.Type.or,s=e.use(a.default).defaults;n(`CatchClause`).field(`param`,o(n(`Pattern`),null),s.null)}b(o,`default_1`),e.default=o,(0,a.maybeSetModuleExports)(function(){return t})}}),gn=T({"../../node_modules/.pnpm/ast-types@0.16.1/node_modules/ast-types/lib/def/es2020.js"(e,t){Object.defineProperty(e,"__esModule",{value:!0});var n=(K(),S(W)),r=n.__importDefault(cn()),i=n.__importDefault(hn()),a=n.__importDefault(J()),o=n.__importStar(q());function s(e){e.use(r.default),e.use(i.default);var t=e.use(a.default),n=t.Type.def,s=t.Type.or,c=e.use(o.default).defaults;n(`ImportExpression`).bases(`Expression`).build(`source`).field(`source`,n(`Expression`)),n(`ExportAllDeclaration`).bases(`Declaration`).build(`source`,`exported`).field(`source`,n(`Literal`)).field(`exported`,s(n(`Identifier`),null,void 0),c.null),n(`ChainElement`).bases(`Node`).field(`optional`,Boolean,c.false),n(`CallExpression`).bases(`Expression`,`ChainElement`),n(`MemberExpression`).bases(`Expression`,`ChainElement`),n(`ChainExpression`).bases(`Expression`).build(`expression`).field(`expression`,n(`ChainElement`)),n(`OptionalCallExpression`).bases(`CallExpression`).build(`callee`,`arguments`,`optional`).field(`optional`,Boolean,c.true),n(`OptionalMemberExpression`).bases(`MemberExpression`).build(`object`,`property`,`computed`,`optional`).field(`optional`,Boolean,c.true)}b(s,`default_1`),e.default=s,(0,o.maybeSetModuleExports)(function(){return t})}}),_n=T({"../../node_modules/.pnpm/ast-types@0.16.1/node_modules/ast-types/lib/def/es2021.js"(e,t){Object.defineProperty(e,"__esModule",{value:!0});var n=(K(),S(W)),r=n.__importDefault(ln()),i=n.__importDefault(gn()),a=q();function o(e){e.use(r.default),e.use(i.default)}b(o,`default_1`),e.default=o,(0,a.maybeSetModuleExports)(function(){return t})}}),vn=T({"../../node_modules/.pnpm/ast-types@0.16.1/node_modules/ast-types/lib/def/es2022.js"(e,t){Object.defineProperty(e,"__esModule",{value:!0});var n=(K(),S(W)),r=n.__importDefault(_n()),i=n.__importDefault(J()),a=q();function o(e){e.use(r.default);var t=e.use(i.default).Type.def;t(`StaticBlock`).bases(`Declaration`).build(`body`).field(`body`,[t(`Statement`)])}b(o,`default_1`),e.default=o,(0,a.maybeSetModuleExports)(function(){return t})}}),yn=T({"../../node_modules/.pnpm/ast-types@0.16.1/node_modules/ast-types/lib/def/es-proposals.js"(e,t){Object.defineProperty(e,"__esModule",{value:!0});var n=(K(),S(W)),r=n.__importDefault(J()),i=n.__importStar(q()),a=n.__importDefault(vn());function o(e){e.use(a.default);var t=e.use(r.default),n=t.Type,o=t.Type.def,s=n.or,c=e.use(i.default).defaults;o(`AwaitExpression`).build(`argument`,`all`).field(`argument`,s(o(`Expression`),null)).field(`all`,Boolean,c.false),o(`Decorator`).bases(`Node`).build(`expression`).field(`expression`,o(`Expression`)),o(`Property`).field(`decorators`,s([o(`Decorator`)],null),c.null),o(`MethodDefinition`).field(`decorators`,s([o(`Decorator`)],null),c.null),o(`PrivateName`).bases(`Expression`,`Pattern`).build(`id`).field(`id`,o(`Identifier`)),o(`ClassPrivateProperty`).bases(`ClassProperty`).build(`key`,`value`).field(`key`,o(`PrivateName`)).field(`value`,s(o(`Expression`),null),c.null),o(`ImportAttribute`).bases(`Node`).build(`key`,`value`).field(`key`,s(o(`Identifier`),o(`Literal`))).field(`value`,o(`Expression`)),[`ImportDeclaration`,`ExportAllDeclaration`,`ExportNamedDeclaration`].forEach(function(e){o(e).field(`assertions`,[o(`ImportAttribute`)],c.emptyArray)}),o(`RecordExpression`).bases(`Expression`).build(`properties`).field(`properties`,[s(o(`ObjectProperty`),o(`ObjectMethod`),o(`SpreadElement`))]),o(`TupleExpression`).bases(`Expression`).build(`elements`).field(`elements`,[s(o(`Expression`),o(`SpreadElement`),null)]),o(`ModuleExpression`).bases(`Node`).build(`body`).field(`body`,o(`Program`))}b(o,`default_1`),e.default=o,(0,i.maybeSetModuleExports)(function(){return t})}}),bn=T({"../../node_modules/.pnpm/ast-types@0.16.1/node_modules/ast-types/lib/def/jsx.js"(e,t){Object.defineProperty(e,"__esModule",{value:!0});var n=(K(),S(W)),r=n.__importDefault(yn()),i=n.__importDefault(J()),a=n.__importStar(q());function o(e){e.use(r.default);var t=e.use(i.default),n=t.Type.def,o=t.Type.or,s=e.use(a.default).defaults;n(`JSXAttribute`).bases(`Node`).build(`name`,`value`).field(`name`,o(n(`JSXIdentifier`),n(`JSXNamespacedName`))).field(`value`,o(n(`Literal`),n(`JSXExpressionContainer`),n(`JSXElement`),n(`JSXFragment`),null),s.null),n(`JSXIdentifier`).bases(`Identifier`).build(`name`).field(`name`,String),n(`JSXNamespacedName`).bases(`Node`).build(`namespace`,`name`).field(`namespace`,n(`JSXIdentifier`)).field(`name`,n(`JSXIdentifier`)),n(`JSXMemberExpression`).bases(`MemberExpression`).build(`object`,`property`).field(`object`,o(n(`JSXIdentifier`),n(`JSXMemberExpression`))).field(`property`,n(`JSXIdentifier`)).field(`computed`,Boolean,s.false);var c=o(n(`JSXIdentifier`),n(`JSXNamespacedName`),n(`JSXMemberExpression`));n(`JSXSpreadAttribute`).bases(`Node`).build(`argument`).field(`argument`,n(`Expression`));var l=[o(n(`JSXAttribute`),n(`JSXSpreadAttribute`))];n(`JSXExpressionContainer`).bases(`Expression`).build(`expression`).field(`expression`,o(n(`Expression`),n(`JSXEmptyExpression`)));var u=[o(n(`JSXText`),n(`JSXExpressionContainer`),n(`JSXSpreadChild`),n(`JSXElement`),n(`JSXFragment`),n(`Literal`))];n(`JSXElement`).bases(`Expression`).build(`openingElement`,`closingElement`,`children`).field(`openingElement`,n(`JSXOpeningElement`)).field(`closingElement`,o(n(`JSXClosingElement`),null),s.null).field(`children`,u,s.emptyArray).field(`name`,c,function(){return this.openingElement.name},!0).field(`selfClosing`,Boolean,function(){return this.openingElement.selfClosing},!0).field(`attributes`,l,function(){return this.openingElement.attributes},!0),n(`JSXOpeningElement`).bases(`Node`).build(`name`,`attributes`,`selfClosing`).field(`name`,c).field(`attributes`,l,s.emptyArray).field(`selfClosing`,Boolean,s.false),n(`JSXClosingElement`).bases(`Node`).build(`name`).field(`name`,c),n(`JSXFragment`).bases(`Expression`).build(`openingFragment`,`closingFragment`,`children`).field(`openingFragment`,n(`JSXOpeningFragment`)).field(`closingFragment`,n(`JSXClosingFragment`)).field(`children`,u,s.emptyArray),n(`JSXOpeningFragment`).bases(`Node`).build(),n(`JSXClosingFragment`).bases(`Node`).build(),n(`JSXText`).bases(`Literal`).build(`value`,`raw`).field(`value`,String).field(`raw`,String,function(){return this.value}),n(`JSXEmptyExpression`).bases(`Node`).build(),n(`JSXSpreadChild`).bases(`Node`).build(`expression`).field(`expression`,n(`Expression`))}b(o,`default_1`),e.default=o,(0,a.maybeSetModuleExports)(function(){return t})}}),xn=T({"../../node_modules/.pnpm/ast-types@0.16.1/node_modules/ast-types/lib/def/type-annotations.js"(e,t){Object.defineProperty(e,"__esModule",{value:!0});var n=(K(),S(W)),r=n.__importDefault(J()),i=n.__importStar(q());function a(e){var t=e.use(r.default),n=t.Type.def,a=t.Type.or,o=e.use(i.default).defaults,s=a(n(`TypeAnnotation`),n(`TSTypeAnnotation`),null),c=a(n(`TypeParameterDeclaration`),n(`TSTypeParameterDeclaration`),null);n(`Identifier`).field(`typeAnnotation`,s,o.null),n(`ObjectPattern`).field(`typeAnnotation`,s,o.null),n(`Function`).field(`returnType`,s,o.null).field(`typeParameters`,c,o.null),n(`ClassProperty`).build(`key`,`value`,`typeAnnotation`,`static`).field(`value`,a(n(`Expression`),null)).field(`static`,Boolean,o.false).field(`typeAnnotation`,s,o.null),[`ClassDeclaration`,`ClassExpression`].forEach(function(e){n(e).field(`typeParameters`,c,o.null).field(`superTypeParameters`,a(n(`TypeParameterInstantiation`),n(`TSTypeParameterInstantiation`),null),o.null).field(`implements`,a([n(`ClassImplements`)],[n(`TSExpressionWithTypeArguments`)]),o.emptyArray)})}b(a,`default_1`),e.default=a,(0,i.maybeSetModuleExports)(function(){return t})}}),Sn=T({"../../node_modules/.pnpm/ast-types@0.16.1/node_modules/ast-types/lib/def/flow.js"(e,t){Object.defineProperty(e,"__esModule",{value:!0});var n=(K(),S(W)),r=n.__importDefault(yn()),i=n.__importDefault(xn()),a=n.__importDefault(J()),o=n.__importStar(q());function s(e){e.use(r.default),e.use(i.default);var t=e.use(a.default),n=t.Type.def,s=t.Type.or,c=e.use(o.default).defaults;n(`Flow`).bases(`Node`),n(`FlowType`).bases(`Flow`),n(`AnyTypeAnnotation`).bases(`FlowType`).build(),n(`EmptyTypeAnnotation`).bases(`FlowType`).build(),n(`MixedTypeAnnotation`).bases(`FlowType`).build(),n(`VoidTypeAnnotation`).bases(`FlowType`).build(),n(`SymbolTypeAnnotation`).bases(`FlowType`).build(),n(`NumberTypeAnnotation`).bases(`FlowType`).build(),n(`BigIntTypeAnnotation`).bases(`FlowType`).build(),n(`NumberLiteralTypeAnnotation`).bases(`FlowType`).build(`value`,`raw`).field(`value`,Number).field(`raw`,String),n(`NumericLiteralTypeAnnotation`).bases(`FlowType`).build(`value`,`raw`).field(`value`,Number).field(`raw`,String),n(`BigIntLiteralTypeAnnotation`).bases(`FlowType`).build(`value`,`raw`).field(`value`,null).field(`raw`,String),n(`StringTypeAnnotation`).bases(`FlowType`).build(),n(`StringLiteralTypeAnnotation`).bases(`FlowType`).build(`value`,`raw`).field(`value`,String).field(`raw`,String),n(`BooleanTypeAnnotation`).bases(`FlowType`).build(),n(`BooleanLiteralTypeAnnotation`).bases(`FlowType`).build(`value`,`raw`).field(`value`,Boolean).field(`raw`,String),n(`TypeAnnotation`).bases(`Node`).build(`typeAnnotation`).field(`typeAnnotation`,n(`FlowType`)),n(`NullableTypeAnnotation`).bases(`FlowType`).build(`typeAnnotation`).field(`typeAnnotation`,n(`FlowType`)),n(`NullLiteralTypeAnnotation`).bases(`FlowType`).build(),n(`NullTypeAnnotation`).bases(`FlowType`).build(),n(`ThisTypeAnnotation`).bases(`FlowType`).build(),n(`ExistsTypeAnnotation`).bases(`FlowType`).build(),n(`ExistentialTypeParam`).bases(`FlowType`).build(),n(`FunctionTypeAnnotation`).bases(`FlowType`).build(`params`,`returnType`,`rest`,`typeParameters`).field(`params`,[n(`FunctionTypeParam`)]).field(`returnType`,n(`FlowType`)).field(`rest`,s(n(`FunctionTypeParam`),null)).field(`typeParameters`,s(n(`TypeParameterDeclaration`),null)),n(`FunctionTypeParam`).bases(`Node`).build(`name`,`typeAnnotation`,`optional`).field(`name`,s(n(`Identifier`),null)).field(`typeAnnotation`,n(`FlowType`)).field(`optional`,Boolean),n(`ArrayTypeAnnotation`).bases(`FlowType`).build(`elementType`).field(`elementType`,n(`FlowType`)),n(`ObjectTypeAnnotation`).bases(`FlowType`).build(`properties`,`indexers`,`callProperties`).field(`properties`,[s(n(`ObjectTypeProperty`),n(`ObjectTypeSpreadProperty`))]).field(`indexers`,[n(`ObjectTypeIndexer`)],c.emptyArray).field(`callProperties`,[n(`ObjectTypeCallProperty`)],c.emptyArray).field(`inexact`,s(Boolean,void 0),c.undefined).field(`exact`,Boolean,c.false).field(`internalSlots`,[n(`ObjectTypeInternalSlot`)],c.emptyArray),n(`Variance`).bases(`Node`).build(`kind`).field(`kind`,s(`plus`,`minus`));var l=s(n(`Variance`),`plus`,`minus`,null);n(`ObjectTypeProperty`).bases(`Node`).build(`key`,`value`,`optional`).field(`key`,s(n(`Literal`),n(`Identifier`))).field(`value`,n(`FlowType`)).field(`optional`,Boolean).field(`variance`,l,c.null),n(`ObjectTypeIndexer`).bases(`Node`).build(`id`,`key`,`value`).field(`id`,n(`Identifier`)).field(`key`,n(`FlowType`)).field(`value`,n(`FlowType`)).field(`variance`,l,c.null).field(`static`,Boolean,c.false),n(`ObjectTypeCallProperty`).bases(`Node`).build(`value`).field(`value`,n(`FunctionTypeAnnotation`)).field(`static`,Boolean,c.false),n(`QualifiedTypeIdentifier`).bases(`Node`).build(`qualification`,`id`).field(`qualification`,s(n(`Identifier`),n(`QualifiedTypeIdentifier`))).field(`id`,n(`Identifier`)),n(`GenericTypeAnnotation`).bases(`FlowType`).build(`id`,`typeParameters`).field(`id`,s(n(`Identifier`),n(`QualifiedTypeIdentifier`))).field(`typeParameters`,s(n(`TypeParameterInstantiation`),null)),n(`MemberTypeAnnotation`).bases(`FlowType`).build(`object`,`property`).field(`object`,n(`Identifier`)).field(`property`,s(n(`MemberTypeAnnotation`),n(`GenericTypeAnnotation`))),n(`IndexedAccessType`).bases(`FlowType`).build(`objectType`,`indexType`).field(`objectType`,n(`FlowType`)).field(`indexType`,n(`FlowType`)),n(`OptionalIndexedAccessType`).bases(`FlowType`).build(`objectType`,`indexType`,`optional`).field(`objectType`,n(`FlowType`)).field(`indexType`,n(`FlowType`)).field(`optional`,Boolean),n(`UnionTypeAnnotation`).bases(`FlowType`).build(`types`).field(`types`,[n(`FlowType`)]),n(`IntersectionTypeAnnotation`).bases(`FlowType`).build(`types`).field(`types`,[n(`FlowType`)]),n(`TypeofTypeAnnotation`).bases(`FlowType`).build(`argument`).field(`argument`,n(`FlowType`)),n(`ObjectTypeSpreadProperty`).bases(`Node`).build(`argument`).field(`argument`,n(`FlowType`)),n(`ObjectTypeInternalSlot`).bases(`Node`).build(`id`,`value`,`optional`,`static`,`method`).field(`id`,n(`Identifier`)).field(`value`,n(`FlowType`)).field(`optional`,Boolean).field(`static`,Boolean).field(`method`,Boolean),n(`TypeParameterDeclaration`).bases(`Node`).build(`params`).field(`params`,[n(`TypeParameter`)]),n(`TypeParameterInstantiation`).bases(`Node`).build(`params`).field(`params`,[n(`FlowType`)]),n(`TypeParameter`).bases(`FlowType`).build(`name`,`variance`,`bound`,`default`).field(`name`,String).field(`variance`,l,c.null).field(`bound`,s(n(`TypeAnnotation`),null),c.null).field(`default`,s(n(`FlowType`),null),c.null),n(`ClassProperty`).field(`variance`,l,c.null),n(`ClassImplements`).bases(`Node`).build(`id`).field(`id`,n(`Identifier`)).field(`superClass`,s(n(`Expression`),null),c.null).field(`typeParameters`,s(n(`TypeParameterInstantiation`),null),c.null),n(`InterfaceTypeAnnotation`).bases(`FlowType`).build(`body`,`extends`).field(`body`,n(`ObjectTypeAnnotation`)).field(`extends`,s([n(`InterfaceExtends`)],null),c.null),n(`InterfaceDeclaration`).bases(`Declaration`).build(`id`,`body`,`extends`).field(`id`,n(`Identifier`)).field(`typeParameters`,s(n(`TypeParameterDeclaration`),null),c.null).field(`body`,n(`ObjectTypeAnnotation`)).field(`extends`,[n(`InterfaceExtends`)]),n(`DeclareInterface`).bases(`InterfaceDeclaration`).build(`id`,`body`,`extends`),n(`InterfaceExtends`).bases(`Node`).build(`id`).field(`id`,n(`Identifier`)).field(`typeParameters`,s(n(`TypeParameterInstantiation`),null),c.null),n(`TypeAlias`).bases(`Declaration`).build(`id`,`typeParameters`,`right`).field(`id`,n(`Identifier`)).field(`typeParameters`,s(n(`TypeParameterDeclaration`),null)).field(`right`,n(`FlowType`)),n(`DeclareTypeAlias`).bases(`TypeAlias`).build(`id`,`typeParameters`,`right`),n(`OpaqueType`).bases(`Declaration`).build(`id`,`typeParameters`,`impltype`,`supertype`).field(`id`,n(`Identifier`)).field(`typeParameters`,s(n(`TypeParameterDeclaration`),null)).field(`impltype`,n(`FlowType`)).field(`supertype`,s(n(`FlowType`),null)),n(`DeclareOpaqueType`).bases(`OpaqueType`).build(`id`,`typeParameters`,`supertype`).field(`impltype`,s(n(`FlowType`),null)),n(`TypeCastExpression`).bases(`Expression`).build(`expression`,`typeAnnotation`).field(`expression`,n(`Expression`)).field(`typeAnnotation`,n(`TypeAnnotation`)),n(`TupleTypeAnnotation`).bases(`FlowType`).build(`types`).field(`types`,[n(`FlowType`)]),n(`DeclareVariable`).bases(`Statement`).build(`id`).field(`id`,n(`Identifier`)),n(`DeclareFunction`).bases(`Statement`).build(`id`).field(`id`,n(`Identifier`)).field(`predicate`,s(n(`FlowPredicate`),null),c.null),n(`DeclareClass`).bases(`InterfaceDeclaration`).build(`id`),n(`DeclareModule`).bases(`Statement`).build(`id`,`body`).field(`id`,s(n(`Identifier`),n(`Literal`))).field(`body`,n(`BlockStatement`)),n(`DeclareModuleExports`).bases(`Statement`).build(`typeAnnotation`).field(`typeAnnotation`,n(`TypeAnnotation`)),n(`DeclareExportDeclaration`).bases(`Declaration`).build(`default`,`declaration`,`specifiers`,`source`).field(`default`,Boolean).field(`declaration`,s(n(`DeclareVariable`),n(`DeclareFunction`),n(`DeclareClass`),n(`FlowType`),n(`TypeAlias`),n(`DeclareOpaqueType`),n(`InterfaceDeclaration`),null)).field(`specifiers`,[s(n(`ExportSpecifier`),n(`ExportBatchSpecifier`))],c.emptyArray).field(`source`,s(n(`Literal`),null),c.null),n(`DeclareExportAllDeclaration`).bases(`Declaration`).build(`source`).field(`source`,s(n(`Literal`),null),c.null),n(`ImportDeclaration`).field(`importKind`,s(`value`,`type`,`typeof`),function(){return`value`}),n(`FlowPredicate`).bases(`Flow`),n(`InferredPredicate`).bases(`FlowPredicate`).build(),n(`DeclaredPredicate`).bases(`FlowPredicate`).build(`value`).field(`value`,n(`Expression`)),n(`Function`).field(`predicate`,s(n(`FlowPredicate`),null),c.null),n(`CallExpression`).field(`typeArguments`,s(null,n(`TypeParameterInstantiation`)),c.null),n(`NewExpression`).field(`typeArguments`,s(null,n(`TypeParameterInstantiation`)),c.null),n(`EnumDeclaration`).bases(`Declaration`).build(`id`,`body`).field(`id`,n(`Identifier`)).field(`body`,s(n(`EnumBooleanBody`),n(`EnumNumberBody`),n(`EnumStringBody`),n(`EnumSymbolBody`))),n(`EnumBooleanBody`).build(`members`,`explicitType`).field(`members`,[n(`EnumBooleanMember`)]).field(`explicitType`,Boolean),n(`EnumNumberBody`).build(`members`,`explicitType`).field(`members`,[n(`EnumNumberMember`)]).field(`explicitType`,Boolean),n(`EnumStringBody`).build(`members`,`explicitType`).field(`members`,s([n(`EnumStringMember`)],[n(`EnumDefaultedMember`)])).field(`explicitType`,Boolean),n(`EnumSymbolBody`).build(`members`).field(`members`,[n(`EnumDefaultedMember`)]),n(`EnumBooleanMember`).build(`id`,`init`).field(`id`,n(`Identifier`)).field(`init`,s(n(`Literal`),Boolean)),n(`EnumNumberMember`).build(`id`,`init`).field(`id`,n(`Identifier`)).field(`init`,n(`Literal`)),n(`EnumStringMember`).build(`id`,`init`).field(`id`,n(`Identifier`)).field(`init`,n(`Literal`)),n(`EnumDefaultedMember`).build(`id`).field(`id`,n(`Identifier`))}b(s,`default_1`),e.default=s,(0,o.maybeSetModuleExports)(function(){return t})}}),Cn=T({"../../node_modules/.pnpm/ast-types@0.16.1/node_modules/ast-types/lib/def/esprima.js"(e,t){Object.defineProperty(e,"__esModule",{value:!0});var n=(K(),S(W)),r=n.__importDefault(yn()),i=n.__importDefault(J()),a=n.__importStar(q());function o(e){e.use(r.default);var t=e.use(i.default),n=e.use(a.default).defaults,o=t.Type.def,s=t.Type.or;o(`VariableDeclaration`).field(`declarations`,[s(o(`VariableDeclarator`),o(`Identifier`))]),o(`Property`).field(`value`,s(o(`Expression`),o(`Pattern`))),o(`ArrayPattern`).field(`elements`,[s(o(`Pattern`),o(`SpreadElement`),null)]),o(`ObjectPattern`).field(`properties`,[s(o(`Property`),o(`PropertyPattern`),o(`SpreadPropertyPattern`),o(`SpreadProperty`))]),o(`ExportSpecifier`).bases(`ModuleSpecifier`).build(`id`,`name`),o(`ExportBatchSpecifier`).bases(`Specifier`).build(),o(`ExportDeclaration`).bases(`Declaration`).build(`default`,`declaration`,`specifiers`,`source`).field(`default`,Boolean).field(`declaration`,s(o(`Declaration`),o(`Expression`),null)).field(`specifiers`,[s(o(`ExportSpecifier`),o(`ExportBatchSpecifier`))],n.emptyArray).field(`source`,s(o(`Literal`),null),n.null),o(`Block`).bases(`Comment`).build(`value`,`leading`,`trailing`),o(`Line`).bases(`Comment`).build(`value`,`leading`,`trailing`)}b(o,`default_1`),e.default=o,(0,a.maybeSetModuleExports)(function(){return t})}}),wn=T({"../../node_modules/.pnpm/ast-types@0.16.1/node_modules/ast-types/lib/def/babel-core.js"(e,t){Object.defineProperty(e,"__esModule",{value:!0});var n=(K(),S(W)),r=n.__importDefault(yn()),i=n.__importDefault(J()),a=n.__importStar(q());function o(e){var t,n,o,s,c;e.use(r.default);var l=e.use(i.default),u=e.use(a.default).defaults,d=l.Type.def,f=l.Type.or,p=l.builtInTypes.undefined;d(`Noop`).bases(`Statement`).build(),d(`DoExpression`).bases(`Expression`).build(`body`).field(`body`,[d(`Statement`)]),d(`BindExpression`).bases(`Expression`).build(`object`,`callee`).field(`object`,f(d(`Expression`),null)).field(`callee`,d(`Expression`)),d(`ParenthesizedExpression`).bases(`Expression`).build(`expression`).field(`expression`,d(`Expression`)),d(`ExportNamespaceSpecifier`).bases(`Specifier`).build(`exported`).field(`exported`,d(`Identifier`)),d(`ExportDefaultSpecifier`).bases(`Specifier`).build(`exported`).field(`exported`,d(`Identifier`)),d(`CommentBlock`).bases(`Comment`).build(`value`,`leading`,`trailing`),d(`CommentLine`).bases(`Comment`).build(`value`,`leading`,`trailing`),d(`Directive`).bases(`Node`).build(`value`).field(`value`,d(`DirectiveLiteral`)),d(`DirectiveLiteral`).bases(`Node`,`Expression`).build(`value`).field(`value`,String,u[`use strict`]),d(`InterpreterDirective`).bases(`Node`).build(`value`).field(`value`,String),d(`BlockStatement`).bases(`Statement`).build(`body`).field(`body`,[d(`Statement`)]).field(`directives`,[d(`Directive`)],u.emptyArray),d(`Program`).bases(`Node`).build(`body`).field(`body`,[d(`Statement`)]).field(`directives`,[d(`Directive`)],u.emptyArray).field(`interpreter`,f(d(`InterpreterDirective`),null),u.null);function m(e,t){return e===void 0&&(e=String),[`extra`,{rawValue:e,raw:String},/* @__PURE__ */ b(function(){var e=l.getFieldValue(this,`value`);return{rawValue:e,raw:t?t(e):String(e)}},`getDefault`)]}b(m,`makeLiteralExtra`),(t=d(`StringLiteral`).bases(`Literal`).build(`value`).field(`value`,String)).field.apply(t,m(String,function(e){return JSON.stringify(e)})),(n=d(`NumericLiteral`).bases(`Literal`).build(`value`).field(`value`,Number).field(`raw`,f(String,null),u.null)).field.apply(n,m(Number)),(o=d(`BigIntLiteral`).bases(`Literal`).build(`value`).field(`value`,f(String,Number))).field.apply(o,m(String,function(e){return e+`n`})),(s=d(`DecimalLiteral`).bases(`Literal`).build(`value`).field(`value`,String)).field.apply(s,m(String,function(e){return e+`m`})),d(`NullLiteral`).bases(`Literal`).build().field(`value`,null,u.null),d(`BooleanLiteral`).bases(`Literal`).build(`value`).field(`value`,Boolean),(c=d(`RegExpLiteral`).bases(`Literal`).build(`pattern`,`flags`).field(`pattern`,String).field(`flags`,String).field(`value`,RegExp,function(){return new RegExp(this.pattern,this.flags)})).field.apply(c,m(f(RegExp,p),function(e){return`/${e.pattern}/${e.flags||``}`})).field(`regex`,{pattern:String,flags:String},function(){return{pattern:this.pattern,flags:this.flags}});var h=f(d(`Property`),d(`ObjectMethod`),d(`ObjectProperty`),d(`SpreadProperty`),d(`SpreadElement`));d(`ObjectExpression`).bases(`Expression`).build(`properties`).field(`properties`,[h]),d(`ObjectMethod`).bases(`Node`,`Function`).build(`kind`,`key`,`params`,`body`,`computed`).field(`kind`,f(`method`,`get`,`set`)).field(`key`,f(d(`Literal`),d(`Identifier`),d(`Expression`))).field(`params`,[d(`Pattern`)]).field(`body`,d(`BlockStatement`)).field(`computed`,Boolean,u.false).field(`generator`,Boolean,u.false).field(`async`,Boolean,u.false).field(`accessibility`,f(d(`Literal`),null),u.null).field(`decorators`,f([d(`Decorator`)],null),u.null),d(`ObjectProperty`).bases(`Node`).build(`key`,`value`).field(`key`,f(d(`Literal`),d(`Identifier`),d(`Expression`))).field(`value`,f(d(`Expression`),d(`Pattern`))).field(`accessibility`,f(d(`Literal`),null),u.null).field(`computed`,Boolean,u.false);var g=f(d(`MethodDefinition`),d(`VariableDeclarator`),d(`ClassPropertyDefinition`),d(`ClassProperty`),d(`ClassPrivateProperty`),d(`ClassMethod`),d(`ClassPrivateMethod`),d(`ClassAccessorProperty`),d(`StaticBlock`));d(`ClassBody`).bases(`Declaration`).build(`body`).field(`body`,[g]),d(`ClassMethod`).bases(`Declaration`,`Function`).build(`kind`,`key`,`params`,`body`,`computed`,`static`).field(`key`,f(d(`Literal`),d(`Identifier`),d(`Expression`))),d(`ClassPrivateMethod`).bases(`Declaration`,`Function`).build(`key`,`params`,`body`,`kind`,`computed`,`static`).field(`key`,d(`PrivateName`)),d(`ClassAccessorProperty`).bases(`Declaration`).build(`key`,`value`,`decorators`,`computed`,`static`).field(`key`,f(d(`Literal`),d(`Identifier`),d(`PrivateName`),d(`Expression`))).field(`value`,f(d(`Expression`),null),u.null),[`ClassMethod`,`ClassPrivateMethod`].forEach(function(e){d(e).field(`kind`,f(`get`,`set`,`method`,`constructor`),function(){return`method`}).field(`body`,d(`BlockStatement`)).field(`access`,f(`public`,`private`,`protected`,null),u.null)}),[`ClassMethod`,`ClassPrivateMethod`,`ClassAccessorProperty`].forEach(function(e){d(e).field(`computed`,Boolean,u.false).field(`static`,Boolean,u.false).field(`abstract`,Boolean,u.false).field(`accessibility`,f(`public`,`private`,`protected`,null),u.null).field(`decorators`,f([d(`Decorator`)],null),u.null).field(`definite`,Boolean,u.false).field(`optional`,Boolean,u.false).field(`override`,Boolean,u.false).field(`readonly`,Boolean,u.false)});var _=f(d(`Property`),d(`PropertyPattern`),d(`SpreadPropertyPattern`),d(`SpreadProperty`),d(`ObjectProperty`),d(`RestProperty`),d(`RestElement`));d(`ObjectPattern`).bases(`Pattern`).build(`properties`).field(`properties`,[_]).field(`decorators`,f([d(`Decorator`)],null),u.null),d(`SpreadProperty`).bases(`Node`).build(`argument`).field(`argument`,d(`Expression`)),d(`RestProperty`).bases(`Node`).build(`argument`).field(`argument`,d(`Expression`)),d(`ForAwaitStatement`).bases(`Statement`).build(`left`,`right`,`body`).field(`left`,f(d(`VariableDeclaration`),d(`Expression`))).field(`right`,d(`Expression`)).field(`body`,d(`Statement`)),d(`Import`).bases(`Expression`).build()}b(o,`default_1`),e.default=o,(0,a.maybeSetModuleExports)(function(){return t})}}),Tn=T({"../../node_modules/.pnpm/ast-types@0.16.1/node_modules/ast-types/lib/def/babel.js"(e,t){Object.defineProperty(e,"__esModule",{value:!0});var n=(K(),S(W)),r=n.__importDefault(J()),i=n.__importDefault(wn()),a=n.__importDefault(Sn()),o=q();function s(e){var t=e.use(r.default).Type.def;e.use(i.default),e.use(a.default),t(`V8IntrinsicIdentifier`).bases(`Expression`).build(`name`).field(`name`,String),t(`TopicReference`).bases(`Expression`).build()}b(s,`default_1`),e.default=s,(0,o.maybeSetModuleExports)(function(){return t})}}),En=T({"../../node_modules/.pnpm/ast-types@0.16.1/node_modules/ast-types/lib/def/typescript.js"(e,t){Object.defineProperty(e,"__esModule",{value:!0});var n=(K(),S(W)),r=n.__importDefault(wn()),i=n.__importDefault(xn()),a=n.__importDefault(J()),o=n.__importStar(q());function s(e){e.use(r.default),e.use(i.default);var t=e.use(a.default),n=t.namedTypes,s=t.Type.def,c=t.Type.or,l=e.use(o.default).defaults,u=t.Type.from(function(e,t){return!!(n.StringLiteral&&n.StringLiteral.check(e,t)||n.Literal&&n.Literal.check(e,t)&&typeof e.value==`string`)},`StringLiteral`);s(`TSType`).bases(`Node`);var d=c(s(`Identifier`),s(`TSQualifiedName`));s(`TSTypeReference`).bases(`TSType`,`TSHasOptionalTypeParameterInstantiation`).build(`typeName`,`typeParameters`).field(`typeName`,d),s(`TSHasOptionalTypeParameterInstantiation`).field(`typeParameters`,c(s(`TSTypeParameterInstantiation`),null),l.null),s(`TSHasOptionalTypeParameters`).field(`typeParameters`,c(s(`TSTypeParameterDeclaration`),null,void 0),l.null),s(`TSHasOptionalTypeAnnotation`).field(`typeAnnotation`,c(s(`TSTypeAnnotation`),null),l.null),s(`TSQualifiedName`).bases(`Node`).build(`left`,`right`).field(`left`,d).field(`right`,d),s(`TSAsExpression`).bases(`Expression`,`Pattern`).build(`expression`,`typeAnnotation`).field(`expression`,s(`Expression`)).field(`typeAnnotation`,s(`TSType`)).field(`extra`,c({parenthesized:Boolean},null),l.null),s(`TSTypeCastExpression`).bases(`Expression`).build(`expression`,`typeAnnotation`).field(`expression`,s(`Expression`)).field(`typeAnnotation`,s(`TSType`)),s(`TSSatisfiesExpression`).bases(`Expression`,`Pattern`).build(`expression`,`typeAnnotation`).field(`expression`,s(`Expression`)).field(`typeAnnotation`,s(`TSType`)),s(`TSNonNullExpression`).bases(`Expression`,`Pattern`).build(`expression`).field(`expression`,s(`Expression`)),[`TSAnyKeyword`,`TSBigIntKeyword`,`TSBooleanKeyword`,`TSNeverKeyword`,`TSNullKeyword`,`TSNumberKeyword`,`TSObjectKeyword`,`TSStringKeyword`,`TSSymbolKeyword`,`TSUndefinedKeyword`,`TSUnknownKeyword`,`TSVoidKeyword`,`TSIntrinsicKeyword`,`TSThisType`].forEach(function(e){s(e).bases(`TSType`).build()}),s(`TSArrayType`).bases(`TSType`).build(`elementType`).field(`elementType`,s(`TSType`)),s(`TSLiteralType`).bases(`TSType`).build(`literal`).field(`literal`,c(s(`NumericLiteral`),s(`StringLiteral`),s(`BooleanLiteral`),s(`TemplateLiteral`),s(`UnaryExpression`),s(`BigIntLiteral`))),s(`TemplateLiteral`).field(`expressions`,c([s(`Expression`)],[s(`TSType`)])),[`TSUnionType`,`TSIntersectionType`].forEach(function(e){s(e).bases(`TSType`).build(`types`).field(`types`,[s(`TSType`)])}),s(`TSConditionalType`).bases(`TSType`).build(`checkType`,`extendsType`,`trueType`,`falseType`).field(`checkType`,s(`TSType`)).field(`extendsType`,s(`TSType`)).field(`trueType`,s(`TSType`)).field(`falseType`,s(`TSType`)),s(`TSInferType`).bases(`TSType`).build(`typeParameter`).field(`typeParameter`,s(`TSTypeParameter`)),s(`TSParenthesizedType`).bases(`TSType`).build(`typeAnnotation`).field(`typeAnnotation`,s(`TSType`));var f=[c(s(`Identifier`),s(`RestElement`),s(`ArrayPattern`),s(`ObjectPattern`))];[`TSFunctionType`,`TSConstructorType`].forEach(function(e){s(e).bases(`TSType`,`TSHasOptionalTypeParameters`,`TSHasOptionalTypeAnnotation`).build(`parameters`).field(`parameters`,f)}),s(`TSDeclareFunction`).bases(`Declaration`,`TSHasOptionalTypeParameters`).build(`id`,`params`,`returnType`).field(`declare`,Boolean,l.false).field(`async`,Boolean,l.false).field(`generator`,Boolean,l.false).field(`id`,c(s(`Identifier`),null),l.null).field(`params`,[s(`Pattern`)]).field(`returnType`,c(s(`TSTypeAnnotation`),s(`Noop`),null),l.null),s(`TSDeclareMethod`).bases(`Declaration`,`TSHasOptionalTypeParameters`).build(`key`,`params`,`returnType`).field(`async`,Boolean,l.false).field(`generator`,Boolean,l.false).field(`params`,[s(`Pattern`)]).field(`abstract`,Boolean,l.false).field(`accessibility`,c(`public`,`private`,`protected`,void 0),l.undefined).field(`static`,Boolean,l.false).field(`computed`,Boolean,l.false).field(`optional`,Boolean,l.false).field(`key`,c(s(`Identifier`),s(`StringLiteral`),s(`NumericLiteral`),s(`Expression`))).field(`kind`,c(`get`,`set`,`method`,`constructor`),/* @__PURE__ */ b(function(){return`method`},`getDefault`)).field(`access`,c(`public`,`private`,`protected`,void 0),l.undefined).field(`decorators`,c([s(`Decorator`)],null),l.null).field(`returnType`,c(s(`TSTypeAnnotation`),s(`Noop`),null),l.null),s(`TSMappedType`).bases(`TSType`).build(`typeParameter`,`typeAnnotation`).field(`readonly`,c(Boolean,`+`,`-`),l.false).field(`typeParameter`,s(`TSTypeParameter`)).field(`optional`,c(Boolean,`+`,`-`),l.false).field(`typeAnnotation`,c(s(`TSType`),null),l.null),s(`TSTupleType`).bases(`TSType`).build(`elementTypes`).field(`elementTypes`,[c(s(`TSType`),s(`TSNamedTupleMember`))]),s(`TSNamedTupleMember`).bases(`TSType`).build(`label`,`elementType`,`optional`).field(`label`,s(`Identifier`)).field(`optional`,Boolean,l.false).field(`elementType`,s(`TSType`)),s(`TSRestType`).bases(`TSType`).build(`typeAnnotation`).field(`typeAnnotation`,s(`TSType`)),s(`TSOptionalType`).bases(`TSType`).build(`typeAnnotation`).field(`typeAnnotation`,s(`TSType`)),s(`TSIndexedAccessType`).bases(`TSType`).build(`objectType`,`indexType`).field(`objectType`,s(`TSType`)).field(`indexType`,s(`TSType`)),s(`TSTypeOperator`).bases(`TSType`).build(`operator`).field(`operator`,String).field(`typeAnnotation`,s(`TSType`)),s(`TSTypeAnnotation`).bases(`Node`).build(`typeAnnotation`).field(`typeAnnotation`,c(s(`TSType`),s(`TSTypeAnnotation`))),s(`TSIndexSignature`).bases(`Declaration`,`TSHasOptionalTypeAnnotation`).build(`parameters`,`typeAnnotation`).field(`parameters`,[s(`Identifier`)]).field(`readonly`,Boolean,l.false),s(`TSPropertySignature`).bases(`Declaration`,`TSHasOptionalTypeAnnotation`).build(`key`,`typeAnnotation`,`optional`).field(`key`,s(`Expression`)).field(`computed`,Boolean,l.false).field(`readonly`,Boolean,l.false).field(`optional`,Boolean,l.false).field(`initializer`,c(s(`Expression`),null),l.null),s(`TSMethodSignature`).bases(`Declaration`,`TSHasOptionalTypeParameters`,`TSHasOptionalTypeAnnotation`).build(`key`,`parameters`,`typeAnnotation`).field(`key`,s(`Expression`)).field(`computed`,Boolean,l.false).field(`optional`,Boolean,l.false).field(`parameters`,f),s(`TSTypePredicate`).bases(`TSTypeAnnotation`,`TSType`).build(`parameterName`,`typeAnnotation`,`asserts`).field(`parameterName`,c(s(`Identifier`),s(`TSThisType`))).field(`typeAnnotation`,c(s(`TSTypeAnnotation`),null),l.null).field(`asserts`,Boolean,l.false),[`TSCallSignatureDeclaration`,`TSConstructSignatureDeclaration`].forEach(function(e){s(e).bases(`Declaration`,`TSHasOptionalTypeParameters`,`TSHasOptionalTypeAnnotation`).build(`parameters`,`typeAnnotation`).field(`parameters`,f)}),s(`TSEnumMember`).bases(`Node`).build(`id`,`initializer`).field(`id`,c(s(`Identifier`),u)).field(`initializer`,c(s(`Expression`),null),l.null),s(`TSTypeQuery`).bases(`TSType`).build(`exprName`).field(`exprName`,c(d,s(`TSImportType`)));var p=c(s(`TSCallSignatureDeclaration`),s(`TSConstructSignatureDeclaration`),s(`TSIndexSignature`),s(`TSMethodSignature`),s(`TSPropertySignature`));s(`TSTypeLiteral`).bases(`TSType`).build(`members`).field(`members`,[p]),s(`TSTypeParameter`).bases(`Identifier`).build(`name`,`constraint`,`default`).field(`name`,c(s(`Identifier`),String)).field(`constraint`,c(s(`TSType`),void 0),l.undefined).field(`default`,c(s(`TSType`),void 0),l.undefined),s(`TSTypeAssertion`).bases(`Expression`,`Pattern`).build(`typeAnnotation`,`expression`).field(`typeAnnotation`,s(`TSType`)).field(`expression`,s(`Expression`)).field(`extra`,c({parenthesized:Boolean},null),l.null),s(`TSTypeParameterDeclaration`).bases(`Declaration`).build(`params`).field(`params`,[s(`TSTypeParameter`)]),s(`TSInstantiationExpression`).bases(`Expression`,`TSHasOptionalTypeParameterInstantiation`).build(`expression`,`typeParameters`).field(`expression`,s(`Expression`)),s(`TSTypeParameterInstantiation`).bases(`Node`).build(`params`).field(`params`,[s(`TSType`)]),s(`TSEnumDeclaration`).bases(`Declaration`).build(`id`,`members`).field(`id`,s(`Identifier`)).field(`const`,Boolean,l.false).field(`declare`,Boolean,l.false).field(`members`,[s(`TSEnumMember`)]).field(`initializer`,c(s(`Expression`),null),l.null),s(`TSTypeAliasDeclaration`).bases(`Declaration`,`TSHasOptionalTypeParameters`).build(`id`,`typeAnnotation`).field(`id`,s(`Identifier`)).field(`declare`,Boolean,l.false).field(`typeAnnotation`,s(`TSType`)),s(`TSModuleBlock`).bases(`Node`).build(`body`).field(`body`,[s(`Statement`)]),s(`TSModuleDeclaration`).bases(`Declaration`).build(`id`,`body`).field(`id`,c(u,d)).field(`declare`,Boolean,l.false).field(`global`,Boolean,l.false).field(`body`,c(s(`TSModuleBlock`),s(`TSModuleDeclaration`),null),l.null),s(`TSImportType`).bases(`TSType`,`TSHasOptionalTypeParameterInstantiation`).build(`argument`,`qualifier`,`typeParameters`).field(`argument`,u).field(`qualifier`,c(d,void 0),l.undefined),s(`TSImportEqualsDeclaration`).bases(`Declaration`).build(`id`,`moduleReference`).field(`id`,s(`Identifier`)).field(`isExport`,Boolean,l.false).field(`moduleReference`,c(d,s(`TSExternalModuleReference`))),s(`TSExternalModuleReference`).bases(`Declaration`).build(`expression`).field(`expression`,u),s(`TSExportAssignment`).bases(`Statement`).build(`expression`).field(`expression`,s(`Expression`)),s(`TSNamespaceExportDeclaration`).bases(`Declaration`).build(`id`).field(`id`,s(`Identifier`)),s(`TSInterfaceBody`).bases(`Node`).build(`body`).field(`body`,[p]),s(`TSExpressionWithTypeArguments`).bases(`TSType`,`TSHasOptionalTypeParameterInstantiation`).build(`expression`,`typeParameters`).field(`expression`,d),s(`TSInterfaceDeclaration`).bases(`Declaration`,`TSHasOptionalTypeParameters`).build(`id`,`body`).field(`id`,d).field(`declare`,Boolean,l.false).field(`extends`,c([s(`TSExpressionWithTypeArguments`)],null),l.null).field(`body`,s(`TSInterfaceBody`)),s(`TSParameterProperty`).bases(`Pattern`).build(`parameter`).field(`accessibility`,c(`public`,`private`,`protected`,void 0),l.undefined).field(`readonly`,Boolean,l.false).field(`parameter`,c(s(`Identifier`),s(`AssignmentPattern`))),s(`ClassProperty`).field(`access`,c(`public`,`private`,`protected`,void 0),l.undefined),s(`ClassAccessorProperty`).bases(`Declaration`,`TSHasOptionalTypeAnnotation`),s(`ClassBody`).field(`body`,[c(s(`MethodDefinition`),s(`VariableDeclarator`),s(`ClassPropertyDefinition`),s(`ClassProperty`),s(`ClassPrivateProperty`),s(`ClassAccessorProperty`),s(`ClassMethod`),s(`ClassPrivateMethod`),s(`StaticBlock`),s(`TSDeclareMethod`),p)])}b(s,`default_1`),e.default=s,(0,o.maybeSetModuleExports)(function(){return t})}}),Dn=T({"../../node_modules/.pnpm/ast-types@0.16.1/node_modules/ast-types/lib/gen/namedTypes.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.namedTypes=void 0,e.namedTypes||={}}}),On=T({"../../node_modules/.pnpm/ast-types@0.16.1/node_modules/ast-types/lib/main.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.visit=e.use=e.Type=e.someField=e.PathVisitor=e.Path=e.NodePath=e.namedTypes=e.getSupertypeNames=e.getFieldValue=e.getFieldNames=e.getBuilderName=e.finalize=e.eachField=e.defineMethod=e.builtInTypes=e.builders=e.astNodesAreEquivalent=void 0;var t=(K(),S(W)),n=t.__importDefault(an()),r=t.__importDefault(yn()),i=t.__importDefault(bn()),a=t.__importDefault(Sn()),o=t.__importDefault(Cn()),s=t.__importDefault(Tn()),c=t.__importDefault(En()),l=Dn();Object.defineProperty(e,"namedTypes",{enumerable:!0,get:/* @__PURE__ */ b(function(){return l.namedTypes},`get`)});var u=(0,n.default)([r.default,i.default,a.default,o.default,s.default,c.default]),d=u.astNodesAreEquivalent,f=u.builders,p=u.builtInTypes,m=u.defineMethod,h=u.eachField,g=u.finalize,_=u.getBuilderName,v=u.getFieldNames,y=u.getFieldValue,x=u.getSupertypeNames,C=u.namedTypes,w=u.NodePath,T=u.Path,E=u.PathVisitor,D=u.someField,O=u.Type,k=u.use,A=u.visit;e.astNodesAreEquivalent=d,e.builders=f,e.builtInTypes=p,e.defineMethod=m,e.eachField=h,e.finalize=g,e.getBuilderName=_,e.getFieldNames=v,e.getFieldValue=y,e.getSupertypeNames=x,e.NodePath=w,e.Path=T,e.PathVisitor=E,e.someField=D,e.Type=O,e.use=k,e.visit=A,Object.assign(l.namedTypes,C)}}),kn=T({"../../node_modules/.pnpm/tiny-invariant@1.3.3/node_modules/tiny-invariant/dist/tiny-invariant.cjs.js"(e,t){function n(e,t){if(!e)throw Error(`Invariant failed`)}b(n,`invariant`),t.exports=n}}),An=T({"../../node_modules/.pnpm/source-map@0.6.1/node_modules/source-map/lib/base64.js"(e){var t=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/`.split(``);e.encode=function(e){if(0<=e&&e<t.length)return t[e];throw TypeError(`Must be between 0 and 63: `+e)},e.decode=function(e){var t=65,n=90,r=97,i=122,a=48;return t<=e&&e<=n?e-t:r<=e&&e<=i?e-r+26:a<=e&&e<=57?e-a+52:e==43?62:e==47?63:-1}}}),jn=T({"../../node_modules/.pnpm/source-map@0.6.1/node_modules/source-map/lib/base64-vlq.js"(e){var t=An(),n=5,r=1<<n,i=r-1,a=r;function o(e){return e<0?(-e<<1)+1:(e<<1)+0}b(o,`toVLQSigned`);function s(e){var t=(e&1)==1,n=e>>1;return t?-n:n}b(s,`fromVLQSigned`),e.encode=/* @__PURE__ */ b(function(e){var r=``,s,c=o(e);do s=c&i,c>>>=n,c>0&&(s|=a),r+=t.encode(s);while(c>0);return r},`base64VLQ_encode`),e.decode=/* @__PURE__ */ b(function(e,r,o){var c=e.length,l=0,u=0,d,f;do{if(r>=c)throw Error(`Expected more digits in base 64 VLQ value.`);if(f=t.decode(e.charCodeAt(r++)),f===-1)throw Error(`Invalid base64 digit: `+e.charAt(r-1));d=!!(f&a),f&=i,l+=f<<u,u+=n}while(d);o.value=s(l),o.rest=r},`base64VLQ_decode`)}}),Mn=T({"../../node_modules/.pnpm/source-map@0.6.1/node_modules/source-map/lib/util.js"(e){function t(e,t,n){if(t in e)return e[t];if(arguments.length===3)return n;throw Error(`"`+t+`" is a required argument.`)}b(t,`getArg`),e.getArg=t;var n=/^(?:([\w+\-.]+):)?\/\/(?:(\w+:\w+)@)?([\w.-]*)(?::(\d+))?(.*)$/,r=/^data:.+\,.+$/;function i(e){var t=e.match(n);return t?{scheme:t[1],auth:t[2],host:t[3],port:t[4],path:t[5]}:null}b(i,`urlParse`),e.urlParse=i;function a(e){var t=``;return e.scheme&&(t+=e.scheme+`:`),t+=`//`,e.auth&&(t+=e.auth+`@`),e.host&&(t+=e.host),e.port&&(t+=`:`+e.port),e.path&&(t+=e.path),t}b(a,`urlGenerate`),e.urlGenerate=a;function o(t){var n=t,r=i(t);if(r){if(!r.path)return t;n=r.path}for(var o=e.isAbsolute(n),s=n.split(/\/+/),c,l=0,u=s.length-1;u>=0;u--)c=s[u],c===`.`?s.splice(u,1):c===`..`?l++:l>0&&(c===``?(s.splice(u+1,l),l=0):(s.splice(u,2),l--));return n=s.join(`/`),n===``&&(n=o?`/`:`.`),r?(r.path=n,a(r)):n}b(o,`normalize`),e.normalize=o;function s(e,t){e===``&&(e=`.`),t===``&&(t=`.`);var n=i(t),s=i(e);if(s&&(e=s.path||`/`),n&&!n.scheme)return s&&(n.scheme=s.scheme),a(n);if(n||t.match(r))return t;if(s&&!s.host&&!s.path)return s.host=t,a(s);var c=t.charAt(0)===`/`?t:o(e.replace(/\/+$/,``)+`/`+t);return s?(s.path=c,a(s)):c}b(s,`join`),e.join=s,e.isAbsolute=function(e){return e.charAt(0)===`/`||n.test(e)};function c(e,t){e===``&&(e=`.`),e=e.replace(/\/$/,``);for(var n=0;t.indexOf(e+`/`)!==0;){var r=e.lastIndexOf(`/`);if(r<0||(e=e.slice(0,r),e.match(/^([^\/]+:\/)?\/*$/)))return t;++n}return Array(n+1).join(`../`)+t.substr(e.length+1)}b(c,`relative`),e.relative=c;var l=function(){return!(`__proto__`in/* @__PURE__ */ Object.create(null))}();function u(e){return e}b(u,`identity`);function d(e){return p(e)?`$`+e:e}b(d,`toSetString`),e.toSetString=l?u:d;function f(e){return p(e)?e.slice(1):e}b(f,`fromSetString`),e.fromSetString=l?u:f;function p(e){if(!e)return!1;var t=e.length;if(t<9||e.charCodeAt(t-1)!==95||e.charCodeAt(t-2)!==95||e.charCodeAt(t-3)!==111||e.charCodeAt(t-4)!==116||e.charCodeAt(t-5)!==111||e.charCodeAt(t-6)!==114||e.charCodeAt(t-7)!==112||e.charCodeAt(t-8)!==95||e.charCodeAt(t-9)!==95)return!1;for(var n=t-10;n>=0;n--)if(e.charCodeAt(n)!==36)return!1;return!0}b(p,`isProtoString`);function m(e,t,n){var r=g(e.source,t.source);return r!==0||(r=e.originalLine-t.originalLine,r!==0)||(r=e.originalColumn-t.originalColumn,r!==0||n)||(r=e.generatedColumn-t.generatedColumn,r!==0)||(r=e.generatedLine-t.generatedLine,r!==0)?r:g(e.name,t.name)}b(m,`compareByOriginalPositions`),e.compareByOriginalPositions=m;function h(e,t,n){var r=e.generatedLine-t.generatedLine;return r!==0||(r=e.generatedColumn-t.generatedColumn,r!==0||n)||(r=g(e.source,t.source),r!==0)||(r=e.originalLine-t.originalLine,r!==0)||(r=e.originalColumn-t.originalColumn,r!==0)?r:g(e.name,t.name)}b(h,`compareByGeneratedPositionsDeflated`),e.compareByGeneratedPositionsDeflated=h;function g(e,t){return e===t?0:e===null?1:t===null?-1:e>t?1:-1}b(g,`strcmp`);function _(e,t){var n=e.generatedLine-t.generatedLine;return n!==0||(n=e.generatedColumn-t.generatedColumn,n!==0)||(n=g(e.source,t.source),n!==0)||(n=e.originalLine-t.originalLine,n!==0)||(n=e.originalColumn-t.originalColumn,n!==0)?n:g(e.name,t.name)}b(_,`compareByGeneratedPositionsInflated`),e.compareByGeneratedPositionsInflated=_;function v(e){return JSON.parse(e.replace(/^\)]}'[^\n]*\n/,``))}b(v,`parseSourceMapInput`),e.parseSourceMapInput=v;function y(e,t,n){if(t||=``,e&&(e[e.length-1]!==`/`&&t[0]!==`/`&&(e+=`/`),t=e+t),n){var r=i(n);if(!r)throw Error(`sourceMapURL could not be parsed`);if(r.path){var c=r.path.lastIndexOf(`/`);c>=0&&(r.path=r.path.substring(0,c+1))}t=s(a(r),t)}return o(t)}b(y,`computeSourceURL`),e.computeSourceURL=y}}),Nn=T({"../../node_modules/.pnpm/source-map@0.6.1/node_modules/source-map/lib/array-set.js"(e){var t=Mn(),n=Object.prototype.hasOwnProperty,r=typeof Map<`u`;function i(){this._array=[],this._set=r?/* @__PURE__ */ new Map:/* @__PURE__ */ Object.create(null)}b(i,`ArraySet`),i.fromArray=/* @__PURE__ */ b(function(e,t){for(var n=new i,r=0,a=e.length;r<a;r++)n.add(e[r],t);return n},`ArraySet_fromArray`),i.prototype.size=/* @__PURE__ */ b(function(){return r?this._set.size:Object.getOwnPropertyNames(this._set).length},`ArraySet_size`),i.prototype.add=/* @__PURE__ */ b(function(e,i){var a=r?e:t.toSetString(e),o=r?this.has(e):n.call(this._set,a),s=this._array.length;(!o||i)&&this._array.push(e),o||(r?this._set.set(e,s):this._set[a]=s)},`ArraySet_add`),i.prototype.has=/* @__PURE__ */ b(function(e){if(r)return this._set.has(e);var i=t.toSetString(e);return n.call(this._set,i)},`ArraySet_has`),i.prototype.indexOf=/* @__PURE__ */ b(function(e){if(r){var i=this._set.get(e);if(i>=0)return i}else{var a=t.toSetString(e);if(n.call(this._set,a))return this._set[a]}throw Error(`"`+e+`" is not in the set.`)},`ArraySet_indexOf`),i.prototype.at=/* @__PURE__ */ b(function(e){if(e>=0&&e<this._array.length)return this._array[e];throw Error(`No element indexed by `+e)},`ArraySet_at`),i.prototype.toArray=/* @__PURE__ */ b(function(){return this._array.slice()},`ArraySet_toArray`),e.ArraySet=i}}),Pn=T({"../../node_modules/.pnpm/source-map@0.6.1/node_modules/source-map/lib/mapping-list.js"(e){var t=Mn();function n(e,n){var r=e.generatedLine,i=n.generatedLine,a=e.generatedColumn,o=n.generatedColumn;return i>r||i==r&&o>=a||t.compareByGeneratedPositionsInflated(e,n)<=0}b(n,`generatedPositionAfter`);function r(){this._array=[],this._sorted=!0,this._last={generatedLine:-1,generatedColumn:0}}b(r,`MappingList`),r.prototype.unsortedForEach=/* @__PURE__ */ b(function(e,t){this._array.forEach(e,t)},`MappingList_forEach`),r.prototype.add=/* @__PURE__ */ b(function(e){n(this._last,e)?(this._last=e,this._array.push(e)):(this._sorted=!1,this._array.push(e))},`MappingList_add`),r.prototype.toArray=/* @__PURE__ */ b(function(){return this._sorted||=(this._array.sort(t.compareByGeneratedPositionsInflated),!0),this._array},`MappingList_toArray`),e.MappingList=r}}),Fn=T({"../../node_modules/.pnpm/source-map@0.6.1/node_modules/source-map/lib/source-map-generator.js"(e){var t=jn(),n=Mn(),r=Nn().ArraySet,i=Pn().MappingList;function a(e){e||={},this._file=n.getArg(e,`file`,null),this._sourceRoot=n.getArg(e,`sourceRoot`,null),this._skipValidation=n.getArg(e,`skipValidation`,!1),this._sources=new r,this._names=new r,this._mappings=new i,this._sourcesContents=null}b(a,`SourceMapGenerator`),a.prototype._version=3,a.fromSourceMap=/* @__PURE__ */ b(function(e){var t=e.sourceRoot,r=new a({file:e.file,sourceRoot:t});return e.eachMapping(function(e){var i={generated:{line:e.generatedLine,column:e.generatedColumn}};e.source!=null&&(i.source=e.source,t!=null&&(i.source=n.relative(t,i.source)),i.original={line:e.originalLine,column:e.originalColumn},e.name!=null&&(i.name=e.name)),r.addMapping(i)}),e.sources.forEach(function(i){var a=i;t!==null&&(a=n.relative(t,i)),r._sources.has(a)||r._sources.add(a);var o=e.sourceContentFor(i);o!=null&&r.setSourceContent(i,o)}),r},`SourceMapGenerator_fromSourceMap`),a.prototype.addMapping=/* @__PURE__ */ b(function(e){var t=n.getArg(e,`generated`),r=n.getArg(e,`original`,null),i=n.getArg(e,`source`,null),a=n.getArg(e,`name`,null);this._skipValidation||this._validateMapping(t,r,i,a),i!=null&&(i=String(i),this._sources.has(i)||this._sources.add(i)),a!=null&&(a=String(a),this._names.has(a)||this._names.add(a)),this._mappings.add({generatedLine:t.line,generatedColumn:t.column,originalLine:r!=null&&r.line,originalColumn:r!=null&&r.column,source:i,name:a})},`SourceMapGenerator_addMapping`),a.prototype.setSourceContent=/* @__PURE__ */ b(function(e,t){var r=e;this._sourceRoot!=null&&(r=n.relative(this._sourceRoot,r)),t==null?this._sourcesContents&&(delete this._sourcesContents[n.toSetString(r)],Object.keys(this._sourcesContents).length===0&&(this._sourcesContents=null)):(this._sourcesContents||=/* @__PURE__ */ Object.create(null),this._sourcesContents[n.toSetString(r)]=t)},`SourceMapGenerator_setSourceContent`),a.prototype.applySourceMap=/* @__PURE__ */ b(function(e,t,i){var a=t;if(t==null){if(e.file==null)throw Error(`SourceMapGenerator.prototype.applySourceMap requires either an explicit source file, or the source map's "file" property. Both were omitted.`);a=e.file}var o=this._sourceRoot;o!=null&&(a=n.relative(o,a));var s=new r,c=new r;this._mappings.unsortedForEach(function(t){if(t.source===a&&t.originalLine!=null){var r=e.originalPositionFor({line:t.originalLine,column:t.originalColumn});r.source!=null&&(t.source=r.source,i!=null&&(t.source=n.join(i,t.source)),o!=null&&(t.source=n.relative(o,t.source)),t.originalLine=r.line,t.originalColumn=r.column,r.name!=null&&(t.name=r.name))}var l=t.source;l!=null&&!s.has(l)&&s.add(l);var u=t.name;u!=null&&!c.has(u)&&c.add(u)},this),this._sources=s,this._names=c,e.sources.forEach(function(t){var r=e.sourceContentFor(t);r!=null&&(i!=null&&(t=n.join(i,t)),o!=null&&(t=n.relative(o,t)),this.setSourceContent(t,r))},this)},`SourceMapGenerator_applySourceMap`),a.prototype._validateMapping=/* @__PURE__ */ b(function(e,t,n,r){if(t&&typeof t.line!=`number`&&typeof t.column!=`number`)throw Error(`original.line and original.column are not numbers -- you probably meant to omit the original mapping entirely and only map the generated position. If so, pass null for the original mapping instead of an object with empty or null values.`);if(!(e&&`line`in e&&`column`in e&&e.line>0&&e.column>=0&&!t&&!n&&!r)&&!(e&&`line`in e&&`column`in e&&t&&`line`in t&&`column`in t&&e.line>0&&e.column>=0&&t.line>0&&t.column>=0&&n))throw Error(`Invalid mapping: `+JSON.stringify({generated:e,source:n,original:t,name:r}))},`SourceMapGenerator_validateMapping`),a.prototype._serializeMappings=/* @__PURE__ */ b(function(){for(var e=0,r=1,i=0,a=0,o=0,s=0,c=``,l,u,d,f,p=this._mappings.toArray(),m=0,h=p.length;m<h;m++){if(u=p[m],l=``,u.generatedLine!==r)for(e=0;u.generatedLine!==r;)l+=`;`,r++;else if(m>0){if(!n.compareByGeneratedPositionsInflated(u,p[m-1]))continue;l+=`,`}l+=t.encode(u.generatedColumn-e),e=u.generatedColumn,u.source!=null&&(f=this._sources.indexOf(u.source),l+=t.encode(f-s),s=f,l+=t.encode(u.originalLine-1-a),a=u.originalLine-1,l+=t.encode(u.originalColumn-i),i=u.originalColumn,u.name!=null&&(d=this._names.indexOf(u.name),l+=t.encode(d-o),o=d)),c+=l}return c},`SourceMapGenerator_serializeMappings`),a.prototype._generateSourcesContent=/* @__PURE__ */ b(function(e,t){return e.map(function(e){if(!this._sourcesContents)return null;t!=null&&(e=n.relative(t,e));var r=n.toSetString(e);return Object.prototype.hasOwnProperty.call(this._sourcesContents,r)?this._sourcesContents[r]:null},this)},`SourceMapGenerator_generateSourcesContent`),a.prototype.toJSON=/* @__PURE__ */ b(function(){var e={version:this._version,sources:this._sources.toArray(),names:this._names.toArray(),mappings:this._serializeMappings()};return this._file!=null&&(e.file=this._file),this._sourceRoot!=null&&(e.sourceRoot=this._sourceRoot),this._sourcesContents&&(e.sourcesContent=this._generateSourcesContent(e.sources,e.sourceRoot)),e},`SourceMapGenerator_toJSON`),a.prototype.toString=/* @__PURE__ */ b(function(){return JSON.stringify(this.toJSON())},`SourceMapGenerator_toString`),e.SourceMapGenerator=a}}),In=T({"../../node_modules/.pnpm/source-map@0.6.1/node_modules/source-map/lib/binary-search.js"(e){e.GREATEST_LOWER_BOUND=1,e.LEAST_UPPER_BOUND=2;function t(n,r,i,a,o,s){var c=Math.floor((r-n)/2)+n,l=o(i,a[c],!0);return l===0?c:l>0?r-c>1?t(c,r,i,a,o,s):s==e.LEAST_UPPER_BOUND?r<a.length?r:-1:c:c-n>1?t(n,c,i,a,o,s):s==e.LEAST_UPPER_BOUND?c:n<0?-1:n}b(t,`recursiveSearch`),e.search=/* @__PURE__ */ b(function(n,r,i,a){if(r.length===0)return-1;var o=t(-1,r.length,n,r,i,a||e.GREATEST_LOWER_BOUND);if(o<0)return-1;for(;o-1>=0&&i(r[o],r[o-1],!0)===0;)--o;return o},`search`)}}),Ln=T({"../../node_modules/.pnpm/source-map@0.6.1/node_modules/source-map/lib/quick-sort.js"(e){function t(e,t,n){var r=e[t];e[t]=e[n],e[n]=r}b(t,`swap`);function n(e,t){return Math.round(e+Math.random()*(t-e))}b(n,`randomIntInRange`);function r(e,i,a,o){if(a<o){var s=n(a,o),c=a-1;t(e,s,o);for(var l=e[o],u=a;u<o;u++)i(e[u],l)<=0&&(c+=1,t(e,c,u));t(e,c+1,u);var d=c+1;r(e,i,a,d-1),r(e,i,d+1,o)}}b(r,`doQuickSort`),e.quickSort=function(e,t){r(e,t,0,e.length-1)}}}),Rn=T({"../../node_modules/.pnpm/source-map@0.6.1/node_modules/source-map/lib/source-map-consumer.js"(e){var t=Mn(),n=In(),r=Nn().ArraySet,i=jn(),a=Ln().quickSort;function o(e,n){var r=e;return typeof e==`string`&&(r=t.parseSourceMapInput(e)),r.sections==null?new s(r,n):new l(r,n)}b(o,`SourceMapConsumer`),o.fromSourceMap=function(e,t){return s.fromSourceMap(e,t)},o.prototype._version=3,o.prototype.__generatedMappings=null,Object.defineProperty(o.prototype,"_generatedMappings",{configurable:!0,enumerable:!0,get:/* @__PURE__ */ b(function(){return this.__generatedMappings||this._parseMappings(this._mappings,this.sourceRoot),this.__generatedMappings},`get`)}),o.prototype.__originalMappings=null,Object.defineProperty(o.prototype,"_originalMappings",{configurable:!0,enumerable:!0,get:/* @__PURE__ */ b(function(){return this.__originalMappings||this._parseMappings(this._mappings,this.sourceRoot),this.__originalMappings},`get`)}),o.prototype._charIsMappingSeparator=/* @__PURE__ */ b(function(e,t){var n=e.charAt(t);return n===`;`||n===`,`},`SourceMapConsumer_charIsMappingSeparator`),o.prototype._parseMappings=/* @__PURE__ */ b(function(e,t){throw Error(`Subclasses must implement _parseMappings`)},`SourceMapConsumer_parseMappings`),o.GENERATED_ORDER=1,o.ORIGINAL_ORDER=2,o.GREATEST_LOWER_BOUND=1,o.LEAST_UPPER_BOUND=2,o.prototype.eachMapping=/* @__PURE__ */ b(function(e,n,r){var i=n||null,a=r||o.GENERATED_ORDER,s;switch(a){case o.GENERATED_ORDER:s=this._generatedMappings;break;case o.ORIGINAL_ORDER:s=this._originalMappings;break;default:throw Error(`Unknown order of iteration.`)}var c=this.sourceRoot;s.map(function(e){var n=e.source===null?null:this._sources.at(e.source);return n=t.computeSourceURL(c,n,this._sourceMapURL),{source:n,generatedLine:e.generatedLine,generatedColumn:e.generatedColumn,originalLine:e.originalLine,originalColumn:e.originalColumn,name:e.name===null?null:this._names.at(e.name)}},this).forEach(e,i)},`SourceMapConsumer_eachMapping`),o.prototype.allGeneratedPositionsFor=/* @__PURE__ */ b(function(e){var r=t.getArg(e,`line`),i={source:t.getArg(e,`source`),originalLine:r,originalColumn:t.getArg(e,`column`,0)};if(i.source=this._findSourceIndex(i.source),i.source<0)return[];var a=[],o=this._findMapping(i,this._originalMappings,`originalLine`,`originalColumn`,t.compareByOriginalPositions,n.LEAST_UPPER_BOUND);if(o>=0){var s=this._originalMappings[o];if(e.column===void 0)for(var c=s.originalLine;s&&s.originalLine===c;)a.push({line:t.getArg(s,`generatedLine`,null),column:t.getArg(s,`generatedColumn`,null),lastColumn:t.getArg(s,`lastGeneratedColumn`,null)}),s=this._originalMappings[++o];else for(var l=s.originalColumn;s&&s.originalLine===r&&s.originalColumn==l;)a.push({line:t.getArg(s,`generatedLine`,null),column:t.getArg(s,`generatedColumn`,null),lastColumn:t.getArg(s,`lastGeneratedColumn`,null)}),s=this._originalMappings[++o]}return a},`SourceMapConsumer_allGeneratedPositionsFor`),e.SourceMapConsumer=o;function s(e,n){var i=e;typeof e==`string`&&(i=t.parseSourceMapInput(e));var a=t.getArg(i,`version`),o=t.getArg(i,`sources`),s=t.getArg(i,`names`,[]),c=t.getArg(i,`sourceRoot`,null),l=t.getArg(i,`sourcesContent`,null),u=t.getArg(i,`mappings`),d=t.getArg(i,`file`,null);if(a!=this._version)throw Error(`Unsupported version: `+a);c&&=t.normalize(c),o=o.map(String).map(t.normalize).map(function(e){return c&&t.isAbsolute(c)&&t.isAbsolute(e)?t.relative(c,e):e}),this._names=r.fromArray(s.map(String),!0),this._sources=r.fromArray(o,!0),this._absoluteSources=this._sources.toArray().map(function(e){return t.computeSourceURL(c,e,n)}),this.sourceRoot=c,this.sourcesContent=l,this._mappings=u,this._sourceMapURL=n,this.file=d}b(s,`BasicSourceMapConsumer`),s.prototype=Object.create(o.prototype),s.prototype.consumer=o,s.prototype._findSourceIndex=function(e){var n=e;if(this.sourceRoot!=null&&(n=t.relative(this.sourceRoot,n)),this._sources.has(n))return this._sources.indexOf(n);for(var r=0;r<this._absoluteSources.length;++r)if(this._absoluteSources[r]==e)return r;return-1},s.fromSourceMap=/* @__PURE__ */ b(function(e,n){var i=Object.create(s.prototype),o=i._names=r.fromArray(e._names.toArray(),!0),l=i._sources=r.fromArray(e._sources.toArray(),!0);i.sourceRoot=e._sourceRoot,i.sourcesContent=e._generateSourcesContent(i._sources.toArray(),i.sourceRoot),i.file=e._file,i._sourceMapURL=n,i._absoluteSources=i._sources.toArray().map(function(e){return t.computeSourceURL(i.sourceRoot,e,n)});for(var u=e._mappings.toArray().slice(),d=i.__generatedMappings=[],f=i.__originalMappings=[],p=0,m=u.length;p<m;p++){var h=u[p],g=new c;g.generatedLine=h.generatedLine,g.generatedColumn=h.generatedColumn,h.source&&(g.source=l.indexOf(h.source),g.originalLine=h.originalLine,g.originalColumn=h.originalColumn,h.name&&(g.name=o.indexOf(h.name)),f.push(g)),d.push(g)}return a(i.__originalMappings,t.compareByOriginalPositions),i},`SourceMapConsumer_fromSourceMap`),s.prototype._version=3,Object.defineProperty(s.prototype,"sources",{get:/* @__PURE__ */ b(function(){return this._absoluteSources.slice()},`get`)});function c(){this.generatedLine=0,this.generatedColumn=0,this.source=null,this.originalLine=null,this.originalColumn=null,this.name=null}b(c,`Mapping`),s.prototype._parseMappings=/* @__PURE__ */ b(function(e,n){for(var r=1,o=0,s=0,l=0,u=0,d=0,f=e.length,p=0,m={},h={},g=[],_=[],v,y,b,x,S;p<f;)if(e.charAt(p)===`;`)r++,p++,o=0;else if(e.charAt(p)===`,`)p++;else{for(v=new c,v.generatedLine=r,x=p;x<f&&!this._charIsMappingSeparator(e,x);x++);if(y=e.slice(p,x),b=m[y],b)p+=y.length;else{for(b=[];p<x;)i.decode(e,p,h),S=h.value,p=h.rest,b.push(S);if(b.length===2)throw Error(`Found a source, but no line and column`);if(b.length===3)throw Error(`Found a source and line, but no column`);m[y]=b}v.generatedColumn=o+b[0],o=v.generatedColumn,b.length>1&&(v.source=u+b[1],u+=b[1],v.originalLine=s+b[2],s=v.originalLine,v.originalLine+=1,v.originalColumn=l+b[3],l=v.originalColumn,b.length>4&&(v.name=d+b[4],d+=b[4])),_.push(v),typeof v.originalLine==`number`&&g.push(v)}a(_,t.compareByGeneratedPositionsDeflated),this.__generatedMappings=_,a(g,t.compareByOriginalPositions),this.__originalMappings=g},`SourceMapConsumer_parseMappings`),s.prototype._findMapping=/* @__PURE__ */ b(function(e,t,r,i,a,o){if(e[r]<=0)throw TypeError(`Line must be greater than or equal to 1, got `+e[r]);if(e[i]<0)throw TypeError(`Column must be greater than or equal to 0, got `+e[i]);return n.search(e,t,a,o)},`SourceMapConsumer_findMapping`),s.prototype.computeColumnSpans=/* @__PURE__ */ b(function(){for(var e=0;e<this._generatedMappings.length;++e){var t=this._generatedMappings[e];if(e+1<this._generatedMappings.length){var n=this._generatedMappings[e+1];if(t.generatedLine===n.generatedLine){t.lastGeneratedColumn=n.generatedColumn-1;continue}}t.lastGeneratedColumn=1/0}},`SourceMapConsumer_computeColumnSpans`),s.prototype.originalPositionFor=/* @__PURE__ */ b(function(e){var n={generatedLine:t.getArg(e,`line`),generatedColumn:t.getArg(e,`column`)},r=this._findMapping(n,this._generatedMappings,`generatedLine`,`generatedColumn`,t.compareByGeneratedPositionsDeflated,t.getArg(e,`bias`,o.GREATEST_LOWER_BOUND));if(r>=0){var i=this._generatedMappings[r];if(i.generatedLine===n.generatedLine){var a=t.getArg(i,`source`,null);a!==null&&(a=this._sources.at(a),a=t.computeSourceURL(this.sourceRoot,a,this._sourceMapURL));var s=t.getArg(i,`name`,null);return s!==null&&(s=this._names.at(s)),{source:a,line:t.getArg(i,`originalLine`,null),column:t.getArg(i,`originalColumn`,null),name:s}}}return{source:null,line:null,column:null,name:null}},`SourceMapConsumer_originalPositionFor`),s.prototype.hasContentsOfAllSources=/* @__PURE__ */ b(function(){return this.sourcesContent?this.sourcesContent.length>=this._sources.size()&&!this.sourcesContent.some(function(e){return e==null}):!1},`BasicSourceMapConsumer_hasContentsOfAllSources`),s.prototype.sourceContentFor=/* @__PURE__ */ b(function(e,n){if(!this.sourcesContent)return null;var r=this._findSourceIndex(e);if(r>=0)return this.sourcesContent[r];var i=e;this.sourceRoot!=null&&(i=t.relative(this.sourceRoot,i));var a;if(this.sourceRoot!=null&&(a=t.urlParse(this.sourceRoot))){var o=i.replace(/^file:\/\//,``);if(a.scheme==`file`&&this._sources.has(o))return this.sourcesContent[this._sources.indexOf(o)];if((!a.path||a.path==`/`)&&this._sources.has(`/`+i))return this.sourcesContent[this._sources.indexOf(`/`+i)]}if(n)return null;throw Error(`"`+i+`" is not in the SourceMap.`)},`SourceMapConsumer_sourceContentFor`),s.prototype.generatedPositionFor=/* @__PURE__ */ b(function(e){var n=t.getArg(e,`source`);if(n=this._findSourceIndex(n),n<0)return{line:null,column:null,lastColumn:null};var r={source:n,originalLine:t.getArg(e,`line`),originalColumn:t.getArg(e,`column`)},i=this._findMapping(r,this._originalMappings,`originalLine`,`originalColumn`,t.compareByOriginalPositions,t.getArg(e,`bias`,o.GREATEST_LOWER_BOUND));if(i>=0){var a=this._originalMappings[i];if(a.source===r.source)return{line:t.getArg(a,`generatedLine`,null),column:t.getArg(a,`generatedColumn`,null),lastColumn:t.getArg(a,`lastGeneratedColumn`,null)}}return{line:null,column:null,lastColumn:null}},`SourceMapConsumer_generatedPositionFor`),e.BasicSourceMapConsumer=s;function l(e,n){var i=e;typeof e==`string`&&(i=t.parseSourceMapInput(e));var a=t.getArg(i,`version`),s=t.getArg(i,`sections`);if(a!=this._version)throw Error(`Unsupported version: `+a);this._sources=new r,this._names=new r;var c={line:-1,column:0};this._sections=s.map(function(e){if(e.url)throw Error(`Support for url field in sections not implemented.`);var r=t.getArg(e,`offset`),i=t.getArg(r,`line`),a=t.getArg(r,`column`);if(i<c.line||i===c.line&&a<c.column)throw Error(`Section offsets must be ordered and non-overlapping.`);return c=r,{generatedOffset:{generatedLine:i+1,generatedColumn:a+1},consumer:new o(t.getArg(e,`map`),n)}})}b(l,`IndexedSourceMapConsumer`),l.prototype=Object.create(o.prototype),l.prototype.constructor=o,l.prototype._version=3,Object.defineProperty(l.prototype,"sources",{get:/* @__PURE__ */ b(function(){for(var e=[],t=0;t<this._sections.length;t++)for(var n=0;n<this._sections[t].consumer.sources.length;n++)e.push(this._sections[t].consumer.sources[n]);return e},`get`)}),l.prototype.originalPositionFor=/* @__PURE__ */ b(function(e){var r={generatedLine:t.getArg(e,`line`),generatedColumn:t.getArg(e,`column`)},i=n.search(r,this._sections,function(e,t){return e.generatedLine-t.generatedOffset.generatedLine||e.generatedColumn-t.generatedOffset.generatedColumn}),a=this._sections[i];return a?a.consumer.originalPositionFor({line:r.generatedLine-(a.generatedOffset.generatedLine-1),column:r.generatedColumn-(a.generatedOffset.generatedLine===r.generatedLine?a.generatedOffset.generatedColumn-1:0),bias:e.bias}):{source:null,line:null,column:null,name:null}},`IndexedSourceMapConsumer_originalPositionFor`),l.prototype.hasContentsOfAllSources=/* @__PURE__ */ b(function(){return this._sections.every(function(e){return e.consumer.hasContentsOfAllSources()})},`IndexedSourceMapConsumer_hasContentsOfAllSources`),l.prototype.sourceContentFor=/* @__PURE__ */ b(function(e,t){for(var n=0;n<this._sections.length;n++){var r=this._sections[n].consumer.sourceContentFor(e,!0);if(r)return r}if(t)return null;throw Error(`"`+e+`" is not in the SourceMap.`)},`IndexedSourceMapConsumer_sourceContentFor`),l.prototype.generatedPositionFor=/* @__PURE__ */ b(function(e){for(var n=0;n<this._sections.length;n++){var r=this._sections[n];if(r.consumer._findSourceIndex(t.getArg(e,`source`))!==-1){var i=r.consumer.generatedPositionFor(e);if(i)return{line:i.line+(r.generatedOffset.generatedLine-1),column:i.column+(r.generatedOffset.generatedLine===i.line?r.generatedOffset.generatedColumn-1:0)}}}return{line:null,column:null}},`IndexedSourceMapConsumer_generatedPositionFor`),l.prototype._parseMappings=/* @__PURE__ */ b(function(e,n){this.__generatedMappings=[],this.__originalMappings=[];for(var r=0;r<this._sections.length;r++)for(var i=this._sections[r],o=i.consumer._generatedMappings,s=0;s<o.length;s++){var c=o[s],l=i.consumer._sources.at(c.source);l=t.computeSourceURL(i.consumer.sourceRoot,l,this._sourceMapURL),this._sources.add(l),l=this._sources.indexOf(l);var u=null;c.name&&(u=i.consumer._names.at(c.name),this._names.add(u),u=this._names.indexOf(u));var d={source:l,generatedLine:c.generatedLine+(i.generatedOffset.generatedLine-1),generatedColumn:c.generatedColumn+(i.generatedOffset.generatedLine===c.generatedLine?i.generatedOffset.generatedColumn-1:0),originalLine:c.originalLine,originalColumn:c.originalColumn,name:u};this.__generatedMappings.push(d),typeof d.originalLine==`number`&&this.__originalMappings.push(d)}a(this.__generatedMappings,t.compareByGeneratedPositionsDeflated),a(this.__originalMappings,t.compareByOriginalPositions)},`IndexedSourceMapConsumer_parseMappings`),e.IndexedSourceMapConsumer=l}}),zn=T({"../../node_modules/.pnpm/source-map@0.6.1/node_modules/source-map/lib/source-node.js"(e){var t=Fn().SourceMapGenerator,n=Mn(),r=/(\r?\n)/,i=10,a=`$$$isSourceNode$$$`;function o(e,t,n,r,i){this.children=[],this.sourceContents={},this.line=e??null,this.column=t??null,this.source=n??null,this.name=i??null,this[a]=!0,r!=null&&this.add(r)}b(o,`SourceNode`),o.fromStringWithSourceMap=/* @__PURE__ */ b(function(e,t,i){var a=new o,s=e.split(r),c=0,l=/* @__PURE__ */ b(function(){return e()+(e()||``);function e(){return c<s.length?s[c++]:void 0}},`shiftNextLine`),u=1,d=0,f=null;return t.eachMapping(function(e){if(f!==null){if(u<e.generatedLine)p(f,l()),u++,d=0;else{var t=s[c]||``,n=t.substr(0,e.generatedColumn-d);s[c]=t.substr(e.generatedColumn-d),d=e.generatedColumn,p(f,n),f=e;return}}for(;u<e.generatedLine;)a.add(l()),u++;if(d<e.generatedColumn){var t=s[c]||``;a.add(t.substr(0,e.generatedColumn)),s[c]=t.substr(e.generatedColumn),d=e.generatedColumn}f=e},this),c<s.length&&(f&&p(f,l()),a.add(s.splice(c).join(``))),t.sources.forEach(function(e){var r=t.sourceContentFor(e);r!=null&&(i!=null&&(e=n.join(i,e)),a.setSourceContent(e,r))}),a;function p(e,t){if(e===null||e.source===void 0)a.add(t);else{var r=i?n.join(i,e.source):e.source;a.add(new o(e.originalLine,e.originalColumn,r,t,e.name))}}},`SourceNode_fromStringWithSourceMap`),o.prototype.add=/* @__PURE__ */ b(function(e){if(Array.isArray(e))e.forEach(function(e){this.add(e)},this);else if(e[a]||typeof e==`string`)e&&this.children.push(e);else throw TypeError(`Expected a SourceNode, string, or an array of SourceNodes and strings. Got `+e);return this},`SourceNode_add`),o.prototype.prepend=/* @__PURE__ */ b(function(e){if(Array.isArray(e))for(var t=e.length-1;t>=0;t--)this.prepend(e[t]);else if(e[a]||typeof e==`string`)this.children.unshift(e);else throw TypeError(`Expected a SourceNode, string, or an array of SourceNodes and strings. Got `+e);return this},`SourceNode_prepend`),o.prototype.walk=/* @__PURE__ */ b(function(e){for(var t,n=0,r=this.children.length;n<r;n++)t=this.children[n],t[a]?t.walk(e):t!==``&&e(t,{source:this.source,line:this.line,column:this.column,name:this.name})},`SourceNode_walk`),o.prototype.join=/* @__PURE__ */ b(function(e){var t,n,r=this.children.length;if(r>0){for(t=[],n=0;n<r-1;n++)t.push(this.children[n]),t.push(e);t.push(this.children[n]),this.children=t}return this},`SourceNode_join`),o.prototype.replaceRight=/* @__PURE__ */ b(function(e,t){var n=this.children[this.children.length-1];return n[a]?n.replaceRight(e,t):typeof n==`string`?this.children[this.children.length-1]=n.replace(e,t):this.children.push(``.replace(e,t)),this},`SourceNode_replaceRight`),o.prototype.setSourceContent=/* @__PURE__ */ b(function(e,t){this.sourceContents[n.toSetString(e)]=t},`SourceNode_setSourceContent`),o.prototype.walkSourceContents=/* @__PURE__ */ b(function(e){for(var t=0,r=this.children.length;t<r;t++)this.children[t][a]&&this.children[t].walkSourceContents(e);for(var i=Object.keys(this.sourceContents),t=0,r=i.length;t<r;t++)e(n.fromSetString(i[t]),this.sourceContents[i[t]])},`SourceNode_walkSourceContents`),o.prototype.toString=/* @__PURE__ */ b(function(){var e=``;return this.walk(function(t){e+=t}),e},`SourceNode_toString`),o.prototype.toStringWithSourceMap=/* @__PURE__ */ b(function(e){var n={code:``,line:1,column:0},r=new t(e),a=!1,o=null,s=null,c=null,l=null;return this.walk(function(e,t){n.code+=e,t.source!==null&&t.line!==null&&t.column!==null?((o!==t.source||s!==t.line||c!==t.column||l!==t.name)&&r.addMapping({source:t.source,original:{line:t.line,column:t.column},generated:{line:n.line,column:n.column},name:t.name}),o=t.source,s=t.line,c=t.column,l=t.name,a=!0):a&&=(r.addMapping({generated:{line:n.line,column:n.column}}),o=null,!1);for(var u=0,d=e.length;u<d;u++)e.charCodeAt(u)===i?(n.line++,n.column=0,u+1===d?(o=null,a=!1):a&&r.addMapping({source:t.source,original:{line:t.line,column:t.column},generated:{line:n.line,column:n.column},name:t.name})):n.column++}),this.walkSourceContents(function(e,t){r.setSourceContent(e,t)}),{code:n.code,map:r}},`SourceNode_toStringWithSourceMap`),e.SourceNode=o}}),Bn=T({"../../node_modules/.pnpm/source-map@0.6.1/node_modules/source-map/source-map.js"(e){e.SourceMapGenerator=Fn().SourceMapGenerator,e.SourceMapConsumer=Rn().SourceMapConsumer,e.SourceNode=zn().SourceNode}}),Vn=T({"../../node_modules/.pnpm/recast@0.23.11/node_modules/recast/lib/util.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.isTrailingCommaEnabled=e.getParentExportDeclaration=e.isExportDeclaration=e.fixFaultyLocations=e.getTrueLoc=e.composeSourceMaps=e.copyPos=e.comparePos=e.getUnionOfKeys=e.getOption=e.isBrowser=e.getLineTerminator=void 0;var t=(K(),S(W)),n=t.__importDefault(kn()),r=t.__importStar(On()).namedTypes,i=t.__importDefault(Bn()),a=i.default.SourceMapConsumer,o=i.default.SourceMapGenerator,s=Object.prototype.hasOwnProperty;function c(){return l()?`
|
|
5
5
|
`:y(`os`).EOL||`
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import{t as e}from"./local-
|
|
2
|
+
import{t as e}from"./local-BcPM4I0s.mjs";import{n as t}from"./auth-CAWalgW0.mjs";import{a as n,t as r}from"./context-BBLtgdR1.mjs";import{t as i}from"./output-BOe-3AQG.mjs";import{t as a}from"./dry-run-DRj2_uV3.mjs";import{t as o}from"./progress-CQqDtgmF.mjs";import{t as s}from"./run-CW2Cgi0S.mjs";import"./telemetry-0Y5hAtCX.mjs";import{n as c,t as l}from"./body-parser-DkHKPkJ7.mjs";import{n as u}from"./input-validation-D7z60HJH.mjs";import{a as d,n as f}from"./prompt-C8FyienX.mjs";import{t as p}from"./cli-types-9oYmRTHJ.mjs";function m(e){return e.usage(`$0 basin-catalog credentials create <bucket-name>
|
|
3
3
|
|
|
4
4
|
Store authentication credentials for a catalog. These credentials are used to authenticate with R2 storage when performing catalog operations.`).positional(`bucket-name`,{type:`string`,description:`Specifies the R2 bucket name.`,demandOption:!0}).option(`token`,{type:`string`,description:`Provides the Cloudflare API token for accessing R2.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Contains request to store catalog credentials.`})}const h={command:`create <bucket-name>`,describe:`Store catalog credentials`,builder:m,handler:async f=>s({command:`basin-catalog credentials create`,classification:{safeFlags:[`dry-run`]}},f,async()=>{if(f.dryRun){let e=await n();a({command:`cf basin-catalog credentials create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${e??`<account-id>`}/basin-catalog/${f[`bucket-name`]==null?`<bucket-name>`:encodeURIComponent(String(f[`bucket-name`]))}/credential`,pathParams:{"bucket-name":String(f[`bucket-name`]??``)},bodyKind:`json`,body:f.body===void 0?l({token:u(f.token,`token`,`text`)}):c(f.body)});return}let s=await t(f),p=f.local?e:await r();if(f.accountId=p,f.body){let e=c(f.body),t=await o(`Creating`,async()=>s.basinCatalog.credentials.create({body:e,account_id:p,bucket_name:f[`bucket-name`]}));i(t,{successLabel:`Created`});return}f.token===void 0&&(f.token=await d(`token`,`Provides the Cloudflare API token for accessing R2.`));let m=l({token:u(f.token,`token`,`text`)}),h=await o(`Creating`,async()=>s.basinCatalog.credentials.create({body:m,account_id:p,bucket_name:f[`bucket-name`]}));i(h,{successLabel:`Created`})})};function g(e){return e.usage(`$0 basin-catalog credentials status <bucket-name>
|
|
5
5
|
|
|
@@ -19,7 +19,7 @@ Returns a list of R2 buckets that have been enabled as Apache Iceberg catalogs f
|
|
|
19
19
|
|
|
20
20
|
Retrieve the maintenance configuration for a specific catalog, including compaction settings and credential status.`).positional(`bucket-name`,{type:`string`,description:`Specifies the R2 bucket name.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const A={command:`get <bucket-name>`,describe:`Get catalog maintenance configuration`,builder:k,handler:async c=>s({command:`basin-catalog maintenance-configs get`,classification:{safeFlags:[`dry-run`]}},c,async()=>{if(c.dryRun){let e=await n();a({command:`cf basin-catalog maintenance-configs get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${e??`<account-id>`}/basin-catalog/${c[`bucket-name`]==null?`<bucket-name>`:encodeURIComponent(String(c[`bucket-name`]))}/maintenance-configs`,pathParams:{"bucket-name":String(c[`bucket-name`]??``)},bodyKind:`none`});return}let s=await t(c),l=c.local?e:await r();c.accountId=l;let u=await o(`Loading`,async()=>s.basinCatalog.maintenanceConfigs.get({account_id:l,bucket_name:c[`bucket-name`]}));i(u,{successLabel:`Loaded`})})};function j(e){return e.usage(`$0 basin-catalog maintenance-configs update <bucket-name>
|
|
21
21
|
|
|
22
|
-
Update the maintenance configuration for a catalog. This allows you to enable or disable compaction and adjust target file sizes for optimization.`).positional(`bucket-name`,{type:`string`,description:`Specifies the R2 bucket name.`,demandOption:!0}).option(`compaction-state`,{type:`string`,description:`Specifies the state of maintenance operations.`,choices:[`enabled`,`disabled`]}).option(`compaction-target-size-mb`,{type:`string`,description:`Sets the target file size for compaction in megabytes. Defaults to "128".`,choices:[`64`,`128`,`256`,`512`]}).option(`snapshot-expiration-max-snapshot-age`,{type:`string`,description:`Updates the maximum age for snapshots optionally.`}).option(`snapshot-expiration-min-snapshots-to-keep`,{type:`number`,description:`Updates the minimum number of snapshots to retain optionally.`}).option(`snapshot-expiration-state`,{type:`string`,description:`Specifies the state of maintenance operations.`,choices:[`enabled`,`disabled`]}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Contains request to update catalog maintenance configuration.`})}const M={command:`update <bucket-name>`,describe:`Update catalog maintenance configuration`,builder:j,handler:async d=>s({command:`basin-catalog maintenance-configs update`,classification:{safeFlags:[`compaction-state`,`compaction-target-size-mb`,`snapshot-expiration-state`,`dry-run`]}},d,async()=>{if(d.dryRun){let e=await n();a({command:`cf basin-catalog maintenance-configs update`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${e??`<account-id>`}/basin-catalog/${d[`bucket-name`]==null?`<bucket-name>`:encodeURIComponent(String(d[`bucket-name`]))}/maintenance-configs`,pathParams:{"bucket-name":String(d[`bucket-name`]??``)},bodyKind:`json`,body:d.body===void 0?l({compaction:{state:
|
|
22
|
+
Update the maintenance configuration for a catalog. This allows you to enable or disable compaction and adjust target file sizes for optimization.`).positional(`bucket-name`,{type:`string`,description:`Specifies the R2 bucket name.`,demandOption:!0}).option(`compaction-state`,{type:`string`,description:`Specifies the state of maintenance operations.`,choices:[`enabled`,`disabled`]}).coerce(`compaction-state`,e=>u(e,`compaction-state`,`text`)).option(`compaction-target-size-mb`,{type:`string`,description:`Sets the target file size for compaction in megabytes. Defaults to "128".`,choices:[`64`,`128`,`256`,`512`]}).coerce(`compaction-target-size-mb`,e=>u(e,`compaction-target-size-mb`,`text`)).option(`snapshot-expiration-max-snapshot-age`,{type:`string`,description:`Updates the maximum age for snapshots optionally.`}).option(`snapshot-expiration-min-snapshots-to-keep`,{type:`number`,description:`Updates the minimum number of snapshots to retain optionally.`}).option(`snapshot-expiration-state`,{type:`string`,description:`Specifies the state of maintenance operations.`,choices:[`enabled`,`disabled`]}).coerce(`snapshot-expiration-state`,e=>u(e,`snapshot-expiration-state`,`text`)).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Contains request to update catalog maintenance configuration.`})}const M={command:`update <bucket-name>`,describe:`Update catalog maintenance configuration`,builder:j,handler:async d=>s({command:`basin-catalog maintenance-configs update`,classification:{safeFlags:[`compaction-state`,`compaction-target-size-mb`,`snapshot-expiration-state`,`dry-run`]}},d,async()=>{if(d.dryRun){let e=await n();a({command:`cf basin-catalog maintenance-configs update`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${e??`<account-id>`}/basin-catalog/${d[`bucket-name`]==null?`<bucket-name>`:encodeURIComponent(String(d[`bucket-name`]))}/maintenance-configs`,pathParams:{"bucket-name":String(d[`bucket-name`]??``)},bodyKind:`json`,body:d.body===void 0?l({compaction:{state:d[`compaction-state`],target_size_mb:d[`compaction-target-size-mb`]},snapshot_expiration:{max_snapshot_age:u(d[`snapshot-expiration-max-snapshot-age`],`snapshot-expiration-max-snapshot-age`,`text`),min_snapshots_to_keep:d[`snapshot-expiration-min-snapshots-to-keep`],state:d[`snapshot-expiration-state`]}}):c(d.body)});return}let s=await t(d),f=d.local?e:await r();if(d.accountId=f,d.body){let e=c(d.body),t=await o(`Creating`,async()=>s.basinCatalog.maintenanceConfigs.update({body:e,account_id:f,bucket_name:d[`bucket-name`]}));i(t,{successLabel:`Created`});return}let p=l({compaction:{state:d[`compaction-state`],target_size_mb:d[`compaction-target-size-mb`]},snapshot_expiration:{max_snapshot_age:u(d[`snapshot-expiration-max-snapshot-age`],`snapshot-expiration-max-snapshot-age`,`text`),min_snapshots_to_keep:d[`snapshot-expiration-min-snapshots-to-keep`],state:d[`snapshot-expiration-state`]}}),m=await o(`Creating`,async()=>s.basinCatalog.maintenanceConfigs.update({body:p,account_id:f,bucket_name:d[`bucket-name`]}));i(m,{successLabel:`Created`})})},N={command:`maintenance-configs`,describe:`Table maintenance settings — compaction schedules and snapshot expiration policies`,builder:e=>e.command(A).command(M).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};function P(e){return e.usage(`$0 basin-catalog namespaces list
|
|
23
23
|
|
|
24
24
|
Returns a list of namespaces in the specified Basin Catalog. Supports hierarchical filtering and pagination for efficient traversal of large namespace hierarchies.`).option(`bucket-name`,{type:`string`,description:`Specifies the R2 bucket name.`,demandOption:!0}).option(`page-token`,{type:`string`,description:`Opaque pagination token from a previous response.
|
|
25
25
|
Use this to fetch the next page of results.`}).option(`page-size`,{type:`number`,description:`Maximum number of namespaces to return per page.
|
|
@@ -41,6 +41,6 @@ Retrieve the maintenance configuration for a specific table, including compactio
|
|
|
41
41
|
|
|
42
42
|
Queue maintenance for normal polling. This request does not start a run.`).positional(`configuration-type`,{type:`string`,description:`Configuration type`,demandOption:!0}).option(`bucket-name`,{type:`string`,description:`Specifies the R2 bucket name.`,demandOption:!0}).option(`namespace`,{type:`string`,description:`Namespace`,demandOption:!0}).option(`table-name`,{type:`string`,description:`Table name`,demandOption:!0}).option(`request-id`,{type:`string`,description:`The request_id field`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Raw JSON request body (bypasses individual flags)`})}const U={command:`queue <configuration-type>`,describe:`Queue table maintenance`,builder:p(H),handler:async d=>s({command:`basin-catalog namespaces tables maintenance-configs queue`,classification:{safeFlags:[`dry-run`]}},d,async()=>{if(d.dryRun){let e=await n();a({command:`cf basin-catalog namespaces tables maintenance-configs queue`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${e??`<account-id>`}/basin-catalog/${d[`bucket-name`]==null?`<bucket-name>`:encodeURIComponent(String(d[`bucket-name`]))}/namespaces/${d.namespace==null?`<namespace>`:encodeURIComponent(String(d.namespace))}/tables/${d[`table-name`]==null?`<table-name>`:encodeURIComponent(String(d[`table-name`]))}/maintenance-configs/${d[`configuration-type`]==null?`<configuration-type>`:encodeURIComponent(String(d[`configuration-type`]))}/queue`,pathParams:{"bucket-name":String(d[`bucket-name`]??``),namespace:String(d.namespace??``),"table-name":String(d[`table-name`]??``),"configuration-type":String(d[`configuration-type`]??``)},bodyKind:`json`,body:d.body===void 0?l({request_id:u(d[`request-id`],`request-id`,`text`)}):c(d.body)});return}let s=await t(d),f=d.local?e:await r();if(d.accountId=f,d.body){let e=c(d.body),t=await o(`Creating`,async()=>s.basinCatalog.namespaces.tables.maintenanceConfigs.queue({body:e,account_id:f,bucket_name:d[`bucket-name`],namespace:d.namespace,table_name:d[`table-name`],configuration_type:d[`configuration-type`]}));i(t,{successLabel:`Created`});return}let p=l({request_id:u(d[`request-id`],`request-id`,`text`)}),m=await o(`Creating`,async()=>s.basinCatalog.namespaces.tables.maintenanceConfigs.queue({body:p,account_id:f,bucket_name:d[`bucket-name`],namespace:d.namespace,table_name:d[`table-name`],configuration_type:d[`configuration-type`]}));i(m,{successLabel:`Created`})})};function W(e){return e.usage(`$0 basin-catalog namespaces tables maintenance-configs update <table-name>
|
|
43
43
|
|
|
44
|
-
Update the maintenance configuration for a specific table. This allows you to enable or disable compaction and adjust target file sizes for optimization.`).positional(`table-name`,{type:`string`,description:`The table name.`,demandOption:!0}).option(`bucket-name`,{type:`string`,description:`Specifies the R2 bucket name.`,demandOption:!0}).option(`namespace`,{type:`string`,description:`The namespace identifier (use %1F as separator for nested namespaces).`,demandOption:!0}).option(`compaction-state`,{type:`string`,description:`Specifies the state of maintenance operations.`,choices:[`enabled`,`disabled`]}).option(`compaction-target-size-mb`,{type:`string`,description:`Sets the target file size for compaction in megabytes. Defaults to "128".`,choices:[`64`,`128`,`256`,`512`]}).option(`snapshot-expiration-max-snapshot-age`,{type:`string`,description:`Updates the maximum age for snapshots optionally.`}).option(`snapshot-expiration-min-snapshots-to-keep`,{type:`number`,description:`Updates the minimum number of snapshots to retain optionally.`}).option(`snapshot-expiration-state`,{type:`string`,description:`Specifies the state of maintenance operations.`,choices:[`enabled`,`disabled`]}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Contains request to update table maintenance configuration.`})}const G={command:`update <table-name>`,describe:`Update table maintenance configuration`,builder:W,handler:async d=>s({command:`basin-catalog namespaces tables maintenance-configs update`,classification:{safeFlags:[`compaction-state`,`compaction-target-size-mb`,`snapshot-expiration-state`,`dry-run`]}},d,async()=>{if(d.dryRun){let e=await n();a({command:`cf basin-catalog namespaces tables maintenance-configs update`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${e??`<account-id>`}/basin-catalog/${d[`bucket-name`]==null?`<bucket-name>`:encodeURIComponent(String(d[`bucket-name`]))}/namespaces/${d.namespace==null?`<namespace>`:encodeURIComponent(String(d.namespace))}/tables/${d[`table-name`]==null?`<table-name>`:encodeURIComponent(String(d[`table-name`]))}/maintenance-configs`,pathParams:{"bucket-name":String(d[`bucket-name`]??``),namespace:String(d.namespace??``),"table-name":String(d[`table-name`]??``)},bodyKind:`json`,body:d.body===void 0?l({compaction:{state:
|
|
44
|
+
Update the maintenance configuration for a specific table. This allows you to enable or disable compaction and adjust target file sizes for optimization.`).positional(`table-name`,{type:`string`,description:`The table name.`,demandOption:!0}).option(`bucket-name`,{type:`string`,description:`Specifies the R2 bucket name.`,demandOption:!0}).option(`namespace`,{type:`string`,description:`The namespace identifier (use %1F as separator for nested namespaces).`,demandOption:!0}).option(`compaction-state`,{type:`string`,description:`Specifies the state of maintenance operations.`,choices:[`enabled`,`disabled`]}).coerce(`compaction-state`,e=>u(e,`compaction-state`,`text`)).option(`compaction-target-size-mb`,{type:`string`,description:`Sets the target file size for compaction in megabytes. Defaults to "128".`,choices:[`64`,`128`,`256`,`512`]}).coerce(`compaction-target-size-mb`,e=>u(e,`compaction-target-size-mb`,`text`)).option(`snapshot-expiration-max-snapshot-age`,{type:`string`,description:`Updates the maximum age for snapshots optionally.`}).option(`snapshot-expiration-min-snapshots-to-keep`,{type:`number`,description:`Updates the minimum number of snapshots to retain optionally.`}).option(`snapshot-expiration-state`,{type:`string`,description:`Specifies the state of maintenance operations.`,choices:[`enabled`,`disabled`]}).coerce(`snapshot-expiration-state`,e=>u(e,`snapshot-expiration-state`,`text`)).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Contains request to update table maintenance configuration.`})}const G={command:`update <table-name>`,describe:`Update table maintenance configuration`,builder:W,handler:async d=>s({command:`basin-catalog namespaces tables maintenance-configs update`,classification:{safeFlags:[`compaction-state`,`compaction-target-size-mb`,`snapshot-expiration-state`,`dry-run`]}},d,async()=>{if(d.dryRun){let e=await n();a({command:`cf basin-catalog namespaces tables maintenance-configs update`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${e??`<account-id>`}/basin-catalog/${d[`bucket-name`]==null?`<bucket-name>`:encodeURIComponent(String(d[`bucket-name`]))}/namespaces/${d.namespace==null?`<namespace>`:encodeURIComponent(String(d.namespace))}/tables/${d[`table-name`]==null?`<table-name>`:encodeURIComponent(String(d[`table-name`]))}/maintenance-configs`,pathParams:{"bucket-name":String(d[`bucket-name`]??``),namespace:String(d.namespace??``),"table-name":String(d[`table-name`]??``)},bodyKind:`json`,body:d.body===void 0?l({compaction:{state:d[`compaction-state`],target_size_mb:d[`compaction-target-size-mb`]},snapshot_expiration:{max_snapshot_age:u(d[`snapshot-expiration-max-snapshot-age`],`snapshot-expiration-max-snapshot-age`,`text`),min_snapshots_to_keep:d[`snapshot-expiration-min-snapshots-to-keep`],state:d[`snapshot-expiration-state`]}}):c(d.body)});return}let s=await t(d),f=d.local?e:await r();if(d.accountId=f,d.body){let e=c(d.body),t=await o(`Creating`,async()=>s.basinCatalog.namespaces.tables.maintenanceConfigs.update({body:e,account_id:f,bucket_name:d[`bucket-name`],namespace:d.namespace,table_name:d[`table-name`]}));i(t,{successLabel:`Created`});return}let p=l({compaction:{state:d[`compaction-state`],target_size_mb:d[`compaction-target-size-mb`]},snapshot_expiration:{max_snapshot_age:u(d[`snapshot-expiration-max-snapshot-age`],`snapshot-expiration-max-snapshot-age`,`text`),min_snapshots_to_keep:d[`snapshot-expiration-min-snapshots-to-keep`],state:d[`snapshot-expiration-state`]}}),m=await o(`Creating`,async()=>s.basinCatalog.namespaces.tables.maintenanceConfigs.update({body:p,account_id:f,bucket_name:d[`bucket-name`],namespace:d.namespace,table_name:d[`table-name`]}));i(m,{successLabel:`Created`})})},K={command:`maintenance-configs`,describe:`Table-level maintenance configurations and operations`,builder:e=>e.command(V).command(U).command(G).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};function q(e){return e.usage(`$0 basin-catalog namespaces tables maintenance-runs list
|
|
45
45
|
|
|
46
46
|
Retrieves recent table maintenance runs for the current table.`).option(`bucket-name`,{type:`string`,description:`Specifies the R2 bucket name.`,demandOption:!0}).option(`namespace`,{type:`string`,description:`Namespace`,demandOption:!0}).option(`table-name`,{type:`string`,description:`Table name`,demandOption:!0}).option(`page-size`,{type:`number`,description:`Page size`}).option(`page-token`,{type:`string`,description:`Page token`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const J={command:`list`,describe:`List table maintenance runs`,builder:q,handler:async c=>s({command:`basin-catalog namespaces tables maintenance-runs list`,classification:{safeFlags:[`dry-run`]}},c,async()=>{let s={page_size:c[`page-size`],page_token:c[`page-token`]};if(c.dryRun){let e=await n();a({command:`cf basin-catalog namespaces tables maintenance-runs list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${e??`<account-id>`}/basin-catalog/${c[`bucket-name`]==null?`<bucket-name>`:encodeURIComponent(String(c[`bucket-name`]))}/namespaces/${c.namespace==null?`<namespace>`:encodeURIComponent(String(c.namespace))}/tables/${c[`table-name`]==null?`<table-name>`:encodeURIComponent(String(c[`table-name`]))}/maintenance-runs`,pathParams:{"bucket-name":String(c[`bucket-name`]??``),namespace:String(c.namespace??``),"table-name":String(c[`table-name`]??``)},query:s,bodyKind:`none`});return}let l=await t(c),u=c.local?e:await r();c.accountId=u;let d=await o(`Loading`,async()=>l.basinCatalog.namespaces.tables.maintenanceRuns.list({account_id:u,bucket_name:c[`bucket-name`],namespace:c.namespace,table_name:c[`table-name`],...s}));i(d,{successLabel:`Loaded`})})},Y={command:`maintenance-runs`,describe:`History of maintenance runs performed on tables`,builder:e=>e.command(J).demandCommand(1,`Please specify a subcommand`),handler:()=>{}},X={command:`tables`,describe:`Tables within catalog namespaces`,builder:e=>e.command(L).command(z).command(K).command(Y).demandCommand(1,`Please specify a subcommand`),handler:()=>{}},Z={command:`namespaces`,describe:`Logical namespaces that group related tables within the data catalog`,builder:e=>e.command(F).command(X).demandCommand(1,`Please specify a subcommand`),handler:()=>{}},Q={command:`basin-catalog`,describe:`Iceberg-compatible data catalog for R2 — organize objects into tables and namespaces for SQL query engines`,builder:e=>e.command(b).command(S).command(w).command(E).command(O).command(v).command(N).command(Z).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};export{Q as default};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import{t as e}from"./local-
|
|
2
|
+
import{t as e}from"./local-BcPM4I0s.mjs";import{n as t}from"./auth-CAWalgW0.mjs";import{a as n,t as r}from"./context-BBLtgdR1.mjs";import{t as i}from"./output-BOe-3AQG.mjs";import{t as a}from"./dry-run-DRj2_uV3.mjs";import{t as o}from"./progress-CQqDtgmF.mjs";import{t as s}from"./run-CW2Cgi0S.mjs";import"./telemetry-0Y5hAtCX.mjs";import{n as c,r as l,t as u}from"./body-parser-DkHKPkJ7.mjs";import{n as d}from"./input-validation-D7z60HJH.mjs";import{n as f}from"./prompt-C8FyienX.mjs";function p(e){return e.usage(`$0 billing addresses validate
|
|
3
3
|
|
|
4
4
|
Validates a billing address and returns validated address suggestions. Authentication is not enforced to support pre-signup address validation flows, so credentials are accepted but not required.`).option(`address`,{type:`string`,description:`Address line 1.`}).option(`address2`,{type:`string`,description:`Address line 2.`}).option(`city`,{type:`string`,description:`City.`}).option(`country`,{type:`string`,description:`Country code.`}).option(`state`,{type:`string`,description:`State or province.`}).option(`zipcode`,{type:`string`,description:`Postal or zip code.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Raw JSON request body (bypasses individual flags)`})}const m={command:`validate`,describe:`Validate Billing Address`,builder:p,handler:async e=>s({command:`billing addresses validate`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){a({command:`cf billing addresses validate`,method:`POST`,url:`https://api.cloudflare.com/client/v4/billing/address-validation`,pathParams:{},bodyKind:`json`,body:e.body===void 0?u({address:d(e.address,`address`,`text`),address2:d(e.address2,`address2`,`text`),city:d(e.city,`city`,`text`),country:d(e.country,`country`,`text`),state:d(e.state,`state`,`text`),zipcode:d(e.zipcode,`zipcode`,`text`)}):c(e.body)});return}let n=await t(e);if(e.body){let t=c(e.body),r=await o(`Creating`,async()=>n.billing.addresses.validate({...t}));i(r,{successLabel:`Created`});return}let r=u({address:d(e.address,`address`,`text`),address2:d(e.address2,`address2`,`text`),city:d(e.city,`city`,`text`),country:d(e.country,`country`,`text`),state:d(e.state,`state`,`text`),zipcode:d(e.zipcode,`zipcode`,`text`)}),s=await o(`Creating`,async()=>n.billing.addresses.validate({...r}));i(s,{successLabel:`Created`})})},h={command:`addresses`,describe:`Operations for addresses`,builder:e=>e.command(m).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};function g(e){return e.usage(`$0 billing profiles create
|
|
5
5
|
|
|
@@ -16,8 +16,8 @@ Updates the billing profile for an account.`).option(`address`,{type:`string`,de
|
|
|
16
16
|
|
|
17
17
|
Updates the billing email addresses and preferred locale for an account.`).option(`billing-email`,{type:`string`,description:`The billing_email field`}).option(`preferred-locale`,{type:`string`,description:`The preferred_locale field`}).option(`secondary-billing-email`,{type:`string`,description:`The secondary_billing_email field`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Raw JSON request body (bypasses individual flags)`})}const D={command:`updateEmail`,describe:`Update Billing Email`,builder:E,handler:async l=>s({command:`billing profiles updateEmail`,classification:{safeFlags:[`dry-run`]}},l,async()=>{if(l.dryRun){let e=await n();a({command:`cf billing profiles updateEmail`,method:`PATCH`,url:`https://api.cloudflare.com/client/v4/accounts/${e??`<account-id>`}/billing/profile`,pathParams:{},bodyKind:`json`,body:l.body===void 0?u({billing_email:d(l[`billing-email`],`billing-email`,`text`),preferred_locale:d(l[`preferred-locale`],`preferred-locale`,`text`),secondary_billing_email:d(l[`secondary-billing-email`],`secondary-billing-email`,`text`)}):c(l.body)});return}let s=await t(l),f=l.local?e:await r();if(l.accountId=f,l.body){let e=c(l.body),t=await o(`Updating`,async()=>s.billing.profiles.updateEmail({...e,account_id:f}));i(t,{successLabel:`Updated`});return}let p=u({billing_email:d(l[`billing-email`],`billing-email`,`text`),preferred_locale:d(l[`preferred-locale`],`preferred-locale`,`text`),secondary_billing_email:d(l[`secondary-billing-email`],`secondary-billing-email`,`text`)}),m=await o(`Updating`,async()=>s.billing.profiles.updateEmail({...p,account_id:f}));i(m,{successLabel:`Updated`})})},O={command:`profiles`,describe:`Billing profile with payment method, address, and invoice preferences`,builder:e=>e.command(_).command(y).command(x).command(C).command(T).command(D).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};function k(e){return e.usage(`$0 billing rate-plans get <public-key>
|
|
18
18
|
|
|
19
|
-
Gets a rate plan's details by its public key (e.g., 'teams_free', 'cf_pro_20_20'). This is a public catalog endpoint, so authentication is not enforced and credentials are accepted but not required.`).positional(`public-key`,{type:`string`,description:`The public key identifier for the rate plan.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const A={command:`get <public-key>`,describe:`Get Rate Plan by Public Key`,builder:k,handler:async e=>s({command:`billing rate-plans get`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){a({command:`cf billing rate-plans get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/billing/rate_plans/${e[`public-key`]==null?`<public-key>`:encodeURIComponent(String(e[`public-key`]))}`,pathParams:{"public-key":String(e[`public-key`]??``)},bodyKind:`none`});return}let n=await t(e),r=await o(`Loading`,async()=>n.billing.ratePlans.get({public_key:e[`public-key`]}));i(r,{successLabel:`Loaded`})})},j={command:`rate-plans`,describe:`Operations for rate-plans`,builder:e=>e.command(A).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};function M(e){return e.usage("$0 billing usage get-account-billable-metrics\n\nLists billable metrics available to the account through contracts and subscriptions that overlap the requested period. Results are deduplicated and ordered. If no qualifying contract exists, the result is an empty array. When `from` and `to` are omitted, the period defaults to the start of the current month through today. The maximum date range is 31 days.").option(`from`,{type:`string`,description:"Start date for the usage query (ISO 8601). Required if `to` is set. When omitted along with `to`, defaults to the start of the current month. Filters by charge period (when consumption happened), not billing period. The maximum date range is 31 days."}).option(`to`,{type:`string`,description:"End date for the usage query (ISO 8601). Required if `from` is set. When omitted along with `from`, defaults to today. Filters by charge period (when consumption happened), not billing period. The maximum date range is 31 days."}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const N={command:`get-account-billable-metrics`,describe:`List Account Billable Metrics (Version 2, Alpha, Restricted)`,builder:M,handler:async c=>s({command:`billing usage get-account-billable-metrics`,classification:{safeFlags:[`dry-run`]}},c,async()=>{let s={from:c.from,to:c.to};if(c.dryRun){let e=await n();a({command:`cf billing usage get-account-billable-metrics`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${e??`<account-id>`}/billable/usage/billable-metrics`,pathParams:{},query:s,bodyKind:`none`});return}let l=await t(c),u=c.local?e:await r();c.accountId=u;let d=await o(`Loading`,async()=>l.billing.usage.getAccountBillableMetrics({account_id:u,...s}));i(d,{successLabel:`Loaded`})})};function P(e){return e.usage("$0 billing usage get-account-usage-v2\n\nReturns cost and usage data for a single Cloudflare account, aligned with the [FinOps FOCUS v1.3](https://focus.finops.org/focus-specification/v1-3/) Cost and Usage dataset specification. Each record represents one billable metric for one account on one day. This includes all metered usage, including usage that falls within free-tier allowances and may result in zero cost. **Note:**
|
|
19
|
+
Gets a rate plan's details by its public key (e.g., 'teams_free', 'cf_pro_20_20'). This is a public catalog endpoint, so authentication is not enforced and credentials are accepted but not required.`).positional(`public-key`,{type:`string`,description:`The public key identifier for the rate plan.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const A={command:`get <public-key>`,describe:`Get Rate Plan by Public Key`,builder:k,handler:async e=>s({command:`billing rate-plans get`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){a({command:`cf billing rate-plans get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/billing/rate_plans/${e[`public-key`]==null?`<public-key>`:encodeURIComponent(String(e[`public-key`]))}`,pathParams:{"public-key":String(e[`public-key`]??``)},bodyKind:`none`});return}let n=await t(e),r=await o(`Loading`,async()=>n.billing.ratePlans.get({public_key:e[`public-key`]}));i(r,{successLabel:`Loaded`})})},j={command:`rate-plans`,describe:`Operations for rate-plans`,builder:e=>e.command(A).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};function M(e){return e.usage("$0 billing usage get-account-billable-metrics\n\nLists billable metrics available to the account through contracts and subscriptions that overlap the requested period. Results are deduplicated and ordered. If no qualifying contract exists, the result is an empty array. When `from` and `to` are omitted, the period defaults to the start of the current month through today. The maximum date range is 31 days.").option(`from`,{type:`string`,description:"Start date for the usage query (ISO 8601). Required if `to` is set. When omitted along with `to`, defaults to the start of the current month. Filters by charge period (when consumption happened), not billing period. The maximum date range is 31 days."}).option(`to`,{type:`string`,description:"End date for the usage query (ISO 8601). Required if `from` is set. When omitted along with `from`, defaults to today. Filters by charge period (when consumption happened), not billing period. The maximum date range is 31 days."}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const N={command:`get-account-billable-metrics`,describe:`List Account Billable Metrics (Version 2, Alpha, Restricted)`,builder:M,handler:async c=>s({command:`billing usage get-account-billable-metrics`,classification:{safeFlags:[`dry-run`]}},c,async()=>{let s={from:c.from,to:c.to};if(c.dryRun){let e=await n();a({command:`cf billing usage get-account-billable-metrics`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${e??`<account-id>`}/billable/usage/billable-metrics`,pathParams:{},query:s,bodyKind:`none`});return}let l=await t(c),u=c.local?e:await r();c.accountId=u;let d=await o(`Loading`,async()=>l.billing.usage.getAccountBillableMetrics({account_id:u,...s}));i(d,{successLabel:`Loaded`})})};function P(e){return e.usage("$0 billing usage get-account-usage-v2\n\nReturns cost and usage data for a single Cloudflare account, aligned with the [FinOps FOCUS v1.3](https://focus.finops.org/focus-specification/v1-3/) Cost and Usage dataset specification. Each record represents one billable metric for one account on one day. This includes all metered usage, including usage that falls within free-tier allowances and may result in zero cost. **Note:** This endpoint serves `usage` records only; cost and pricing fields are absent from responses. To retrieve rated costs, use `POST` on the same path with `Metric: cost`. When `from` and `to` are omitted, defaults to the start of the current month through today. The maximum date range is 31 days.").option(`from`,{type:`string`,description:"Start date for the usage query (ISO 8601). Required if `to` is set. When omitted along with `to`, defaults to the start of the current month. Filters by charge period (when consumption happened), not billing period. The maximum date range is 31 days."}).option(`to`,{type:`string`,description:"End date for the usage query (ISO 8601). Required if `from` is set. When omitted along with `from`, defaults to today. Filters by charge period (when consumption happened), not billing period. The maximum date range is 31 days."}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const F={command:`get-account-usage-v2`,describe:`Get Account Usage (Version 2, Alpha, Restricted)`,builder:P,handler:async c=>s({command:`billing usage get-account-usage-v2`,classification:{safeFlags:[`dry-run`]}},c,async()=>{let s={from:c.from,to:c.to};if(c.dryRun){let e=await n();a({command:`cf billing usage get-account-usage-v2`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${e??`<account-id>`}/billable/usage`,pathParams:{},query:s,bodyKind:`none`});return}let l=await t(c),u=c.local?e:await r();c.accountId=u;let d=await o(`Loading`,async()=>l.billing.usage.getAccountUsageV2({account_id:u,...s}));i(d,{successLabel:`Loaded`})})};function I(e){return e.usage(`$0 billing usage get-info-v1
|
|
20
20
|
|
|
21
21
|
Returns high-level usage information for the account, including coverage, and subscription metadata.`).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const L={command:`get-info-v1`,describe:`Get Account Billable Usage Info (Version 1, Alpha)`,builder:I,handler:async c=>s({command:`billing usage get-info-v1`,classification:{safeFlags:[`dry-run`]}},c,async()=>{if(c.dryRun){let e=await n();a({command:`cf billing usage get-info-v1`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${e??`<account-id>`}/billable-usage/info`,pathParams:{},bodyKind:`none`});return}let s=await t(c),l=c.local?e:await r();c.accountId=l;let u=await o(`Loading`,async()=>s.billing.usage.getInfoV1({account_id:l}));i(u,{successLabel:`Loaded`})})};function R(e){return e.usage(`$0 billing usage get-v1
|
|
22
22
|
|
|
23
|
-
Returns billable usage data for the account. When no query parameters are provided, returns usage for the current billing period.`).option(`from`,{type:`string`,description:`Start date for the usage query (ISO 8601). The provided time range must include the subscription billing cycle anchor day, otherwise no usage data is returned. Use the info endpoint to retrieve the subscription anchor day.`}).option(`to`,{type:`string`,description:`End date for the usage query (ISO 8601).`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const z={command:`get-v1`,describe:`Get Account Billable Usage (Version 1, Alpha)`,builder:R,handler:async c=>s({command:`billing usage get-v1`,classification:{safeFlags:[`dry-run`]}},c,async()=>{let s={from:c.from,to:c.to};if(c.dryRun){let e=await n();a({command:`cf billing usage get-v1`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${e??`<account-id>`}/billable-usage`,pathParams:{},query:s,bodyKind:`none`});return}let l=await t(c),u=c.local?e:await r();c.accountId=u;let d=await o(`Loading`,async()=>l.billing.usage.getV1({account_id:u,...s}));i(d,{successLabel:`Loaded`})})};function B(e){return e.usage("$0 billing usage query\n\nReturns cost and usage data for a single Cloudflare account, aligned with the [FinOps FOCUS v1.3](https://focus.finops.org/focus-specification/v1-3/) Cost and Usage dataset specification. This is the filterable counterpart to `GET` on the same path. It is a read-only operation and requires only the `#billing:read` permission; `POST` is used so that filter criteria can be supplied in a request body rather than in the query string. Each record represents one billable metric for one account on one day. This includes all metered usage, including usage that falls within free-tier allowances and may result in zero cost. **Note:** Cost and pricing fields are
|
|
23
|
+
Returns billable usage data for the account. When no query parameters are provided, returns usage for the current billing period.`).option(`from`,{type:`string`,description:`Start date for the usage query (ISO 8601). The provided time range must include the subscription billing cycle anchor day, otherwise no usage data is returned. Use the info endpoint to retrieve the subscription anchor day.`}).option(`to`,{type:`string`,description:`End date for the usage query (ISO 8601).`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const z={command:`get-v1`,describe:`Get Account Billable Usage (Version 1, Alpha)`,builder:R,handler:async c=>s({command:`billing usage get-v1`,classification:{safeFlags:[`dry-run`]}},c,async()=>{let s={from:c.from,to:c.to};if(c.dryRun){let e=await n();a({command:`cf billing usage get-v1`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${e??`<account-id>`}/billable-usage`,pathParams:{},query:s,bodyKind:`none`});return}let l=await t(c),u=c.local?e:await r();c.accountId=u;let d=await o(`Loading`,async()=>l.billing.usage.getV1({account_id:u,...s}));i(d,{successLabel:`Loaded`})})};function B(e){return e.usage("$0 billing usage query\n\nReturns cost and usage data for a single Cloudflare account, aligned with the [FinOps FOCUS v1.3](https://focus.finops.org/focus-specification/v1-3/) Cost and Usage dataset specification. This is the filterable counterpart to `GET` on the same path. It is a read-only operation and requires only the `#billing:read` permission; `POST` is used so that filter criteria can be supplied in a request body rather than in the query string. Each record represents one billable metric for one account on one day. This includes all metered usage, including usage that falls within free-tier allowances and may result in zero cost. **Note:** Cost and pricing fields are populated only when `Metric` is `cost`; otherwise they are absent from responses. The request body is optional. When it is omitted, or when `TimePeriod` is omitted, the range defaults to the start of the current month through today. The maximum date range is 31 days. Filters of different kinds are combined with AND. Values within one tag filter are combined with OR. Filter values that do not match usage produce an empty result set. Results can be grouped by up to two groups, in any combination of dimension keys and resource-tag keys. Tag groups are returned in the `Tags` field. Usage without a requested tag remains in an untagged group, with that key omitted from `Tags`. Requests that use tag filtering or tag grouping return HTTP 400 when the underlying usage data source does not support tags. Requests that use dimension grouping return HTTP 400 when the underlying usage data source does not support dimensions.").option(`filter-by-billable-metric-ids`,{type:`string`,array:!0,description:"Restrict results to rows whose `x_BillableMetricId` matches one of these billable metric ids (e.g. `workers_standard_requests`). Values must be unique."}).option(`filter-by-product-family-ids`,{type:`string`,array:!0,description:`Restrict results to billable metrics belonging to these product families. Values must be unique UUIDs.`}).option(`group-by`,{type:`string`,description:`Grouping definitions used to split result rows. At most two unique keys may be supplied. Provide as a JSON array of objects or @path/to/file.json.`}).option(`metric`,{type:`string`,description:"Type of cost/usage records to retrieve. `usage` returns unrated usage quantities. `cost` returns rated usage with cost and pricing fields; it is available only on `POST` account usage and only when the underlying usage data source is ClickHouse (other sources return an empty result set). Requests that combine `cost` with `GroupBy` or `FilterBy.Tags` return HTTP 400. Unrelated to `FilterBy.BillableMetricIds`. Defaults to `usage` when omitted.",choices:[`usage`,`cost`],default:`usage`}).coerce(`metric`,e=>d(e,`metric`,`text`)).option(`time-period-from`,{type:`string`,description:"Start of the range (ISO 8601). Required if `To` is set."}).option(`time-period-to`,{type:`string`,description:"End of the range (ISO 8601). Required if `From` is set. Must be after `From` and no more than 31 days after it."}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Filter criteria for a usage query. Every field is optional; an empty object is equivalent to omitting the body entirely. Unknown fields are rejected.`})}const V={command:`query`,describe:`Query Account Usage (Version 2, Alpha, Restricted)`,builder:B,handler:async f=>s({command:`billing usage query`,classification:{safeFlags:[`metric`,`dry-run`]}},f,async()=>{if(f.dryRun){let e=await n();a({command:`cf billing usage query`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${e??`<account-id>`}/billable/usage`,pathParams:{},bodyKind:`json`,body:f.body===void 0?u({FilterBy:{BillableMetricIds:f[`filter-by-billable-metric-ids`],ProductFamilyIds:f[`filter-by-product-family-ids`]},GroupBy:l(f[`group-by`],`group-by`),Metric:f.metric,TimePeriod:{From:d(f[`time-period-from`],`time-period-from`,`text`),To:d(f[`time-period-to`],`time-period-to`,`text`)}}):c(f.body)});return}let s=await t(f),p=f.local?e:await r();if(f.accountId=p,f.body){let e=c(f.body),t=await o(`Loading`,async()=>s.billing.usage.query({...e,account_id:p}));i(t,{successLabel:`Loaded`});return}let m=u({FilterBy:{BillableMetricIds:f[`filter-by-billable-metric-ids`],ProductFamilyIds:f[`filter-by-product-family-ids`]},GroupBy:l(f[`group-by`],`group-by`),Metric:f.metric,TimePeriod:{From:d(f[`time-period-from`],`time-period-from`,`text`),To:d(f[`time-period-to`],`time-period-to`,`text`)}}),h=await o(`Loading`,async()=>s.billing.usage.query({...m,account_id:p}));i(h,{successLabel:`Loaded`})})},H={command:`usage`,describe:`Metered usage data for billed services — requests, bandwidth, and feature consumption`,builder:e=>e.command(N).command(F).command(L).command(z).command(V).demandCommand(1,`Please specify a subcommand`),handler:()=>{}},U={command:`billing`,describe:`Account billing profiles and usage data for Cloudflare subscriptions and add-on services`,builder:e=>e.command(h).command(O).command(j).command(H).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};export{U as default};
|