cf 1.0.0-beta.30 → 1.0.0-beta.31

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.
Files changed (214) hide show
  1. package/README.md +1 -1
  2. package/dist/_meta/commands.json +1029 -1113
  3. package/dist/_meta/schemas.json +672 -702
  4. package/dist/{abuse-reports-Dzop8iDe.mjs → abuse-reports-B8vD22yf.mjs} +1 -1
  5. package/dist/{access-2NeD3Gu8.mjs → access-BkZlZPER.mjs} +1 -1
  6. package/dist/{accounts-CeJbhhX4.mjs → accounts-CG6_1Bfa.mjs} +3 -3
  7. package/dist/{acm-Dub0B14J.mjs → acm-B5VvmBfE.mjs} +1 -1
  8. package/dist/{addressing-BzWJU8m6.mjs → addressing-Db9Z1P-r.mjs} +1 -1
  9. package/dist/{agent-memory-2l9zyQFA.mjs → agent-memory-nzAUPSmC.mjs} +1 -1
  10. package/dist/{ai-laLv3daG.mjs → ai-RTQ-iZFq.mjs} +1 -1
  11. package/dist/{ai-audit-rgNePq5W.mjs → ai-audit-BGipueRC.mjs} +1 -1
  12. package/dist/{ai-gateway-e9b8CcL6.mjs → ai-gateway-F2pW8d5j.mjs} +1 -1
  13. package/dist/{ai-search-DZ0AqoPe.mjs → ai-search-CKM-K1Hm.mjs} +1 -1
  14. package/dist/{ai-security-CQuBTtmw.mjs → ai-security-CS2VJd4V.mjs} +1 -1
  15. package/dist/{alerting-_4ra-f_v.mjs → alerting-DNqXDY_7.mjs} +1 -1
  16. package/dist/{analytics-DLNn4bJ4.mjs → analytics-DM85HHka.mjs} +1 -1
  17. package/dist/{analytics-engine-CY45yWuL.mjs → analytics-engine-CxnuZwEx.mjs} +1 -1
  18. package/dist/{api-security-BSvJAjJV.mjs → api-security-BwLSP_5v.mjs} +1 -1
  19. package/dist/{argo-xzl0p--1.mjs → argo-DZM2SJFd.mjs} +1 -1
  20. package/dist/{artifacts-DAS14gcM.mjs → artifacts-CKbQsn4H.mjs} +1 -1
  21. package/dist/{audit-logs-3nYyCGQA.mjs → audit-logs-CG76HATH.mjs} +1 -1
  22. package/dist/auth-BBUZyJJx.mjs +2 -0
  23. package/dist/{auth-B0mFB6nU.mjs → auth-DBM4EcdJ.mjs} +1 -1
  24. package/dist/{auth-cj71dGxS.mjs → auth-NIRm11Ab.mjs} +1 -1
  25. package/dist/{auth-token-D9MnaZ-L.mjs → auth-token-Cp_u44cF.mjs} +1 -1
  26. package/dist/{autoconfig-DoLQ5ct8.mjs → autoconfig-CQjvJ8Rp.mjs} +386 -120
  27. package/dist/{basin-catalog-BbCsAKyZ.mjs → basin-catalog-BMKr8hFw.mjs} +1 -1
  28. package/dist/{billing-BsiLsjWJ.mjs → billing-LiyUCn9n.mjs} +1 -1
  29. package/dist/{blocks-DK5qAzLe.mjs → blocks-DdIA5quB.mjs} +1 -1
  30. package/dist/{bot-management-DkErOsIO.mjs → bot-management-ATqDTT08.mjs} +1 -1
  31. package/dist/{botnet-feed-CK4_PKrf.mjs → botnet-feed-Dk3eMSZo.mjs} +1 -1
  32. package/dist/{brand-protection-Czt-2Ei5.mjs → brand-protection-B82xx9X5.mjs} +2 -2
  33. package/dist/{browser-run-DLMdEaSJ.mjs → browser-run-DEVs2X54.mjs} +1 -1
  34. package/dist/build-CjqOmQjC.mjs +2 -0
  35. package/dist/{build-DiEXOgHH.mjs → build-D18S0p87.mjs} +1 -1
  36. package/dist/{builds-D--zUbR2.mjs → builds-kZaYZiQn.mjs} +1 -1
  37. package/dist/{cache-C8PQmkjD.mjs → cache-BSkT4mhb.mjs} +1 -1
  38. package/dist/{cli-BBv5YMan.mjs → cli-dk6sJFtN.mjs} +1 -1
  39. package/dist/{client-side-security-CFxePUL9.mjs → client-side-security-90cX3xFX.mjs} +1 -1
  40. package/dist/{cloud-connector-BitfLQ3s.mjs → cloud-connector-CtJhvxoD.mjs} +1 -1
  41. package/dist/{cloudforce-one-D2dzA7VD.mjs → cloudforce-one-DOf-Y51V.mjs} +2 -2
  42. package/dist/{command-iwrZ2Sb1.mjs → command-B2dfzTXs.mjs} +1 -1
  43. package/dist/{command-Xqidhyr_.mjs → command-BAzptjLF.mjs} +1 -1
  44. package/dist/{command-n7QausoH.mjs → command-BUYlzx4J.mjs} +1 -1
  45. package/dist/{command-BwcAuPBr.mjs → command-BUbUtS1f.mjs} +1 -1
  46. package/dist/{command-CQhD3Q1t.mjs → command-CTpn87uz.mjs} +1 -1
  47. package/dist/{command-BC_nezLE.mjs → command-DPo7r1PT.mjs} +1 -1
  48. package/dist/command-DuCT0YaL.mjs +2 -0
  49. package/dist/{command-DoXuskBZ.mjs → command-MWbvYsQH.mjs} +1 -1
  50. package/dist/{command-D5FrTb2N.mjs → command-QInwUVT5.mjs} +1 -1
  51. package/dist/{command-s15KaL-x.mjs → command-V0dODmT-.mjs} +1 -1
  52. package/dist/{completions-BAUSggys.mjs → completions-4aAl8vcF.mjs} +1 -1
  53. package/dist/{connector-interrupts-D9tI84Fk.mjs → connector-interrupts-qEMhlWeV.mjs} +1 -1
  54. package/dist/{connector-telemetry-events-Bs9wLYwc.mjs → connector-telemetry-events-CdqnrxRp.mjs} +1 -1
  55. package/dist/{connector-telemetry-snapshots-CbwE4lrE.mjs → connector-telemetry-snapshots-BRvmHAEM.mjs} +1 -1
  56. package/dist/{connectors-LyJN1htu.mjs → connectors-BqShaonQ.mjs} +1 -1
  57. package/dist/{containers-CKs7ZyZq.mjs → containers-BNuGwLRK.mjs} +2 -2
  58. package/dist/{content-scan-BQRz7C7Z.mjs → content-scan-02SOIW_1.mjs} +1 -1
  59. package/dist/{context-DlFhI9cN.mjs → context-CroqTqbk.mjs} +1 -1
  60. package/dist/{cps-DYlXx89C.mjs → cps-DvEG2eZl.mjs} +1 -1
  61. package/dist/{csam-scanner-BFANxGD-.mjs → csam-scanner-Bvklah8m.mjs} +1 -1
  62. package/dist/{custom-csrs-BX4aCeof.mjs → custom-csrs-BVcDWpY-.mjs} +1 -1
  63. package/dist/{custom-hostnames-BRYABKN3.mjs → custom-hostnames-IgjZmeJc.mjs} +1 -1
  64. package/dist/{custom-nameservers-CP1Vf1TD.mjs → custom-nameservers-0EYFPBz2.mjs} +1 -1
  65. package/dist/{custom-pages-BNL69ToU.mjs → custom-pages-W2weASNg.mjs} +1 -1
  66. package/dist/{d1-D4AZsUKn.mjs → d1-Df4t1noM.mjs} +1 -1
  67. package/dist/{delegate-BKlomUk6.mjs → delegate-CEaYc4br.mjs} +1 -1
  68. package/dist/delegate.mjs +1 -1
  69. package/dist/{deploy-LbXgSfAd.mjs → deploy-CGx9aUuj.mjs} +1 -1
  70. package/dist/{deploy-context-BYw6gbl-.mjs → deploy-context-DzSmuU32.mjs} +1 -1
  71. package/dist/deploy-input-DA70GC4o.mjs +2 -0
  72. package/dist/{dev-DaFSd8WC.mjs → dev-BDls_bK6.mjs} +1 -1
  73. package/dist/{diagnostics-Dk3pyWx_.mjs → diagnostics-C8V1G64d.mjs} +1 -1
  74. package/dist/{discover-DGsMj9ZN.mjs → discover-DtcZCeSh.mjs} +1 -1
  75. package/dist/discover-Dxb5yh9L.mjs +2 -0
  76. package/dist/{disk-cache-nbuwH1Dh.mjs → disk-cache-D6xHBTAA.mjs} +1 -1
  77. package/dist/{dls-DU6EdhQK.mjs → dls-BpU_jtuh.mjs} +1 -1
  78. package/dist/{dns-3QDtCu6f.mjs → dns-BlgfnRkG.mjs} +25 -25
  79. package/dist/{dns-firewall-Bbrr_0_a.mjs → dns-firewall-DtkcaFQ0.mjs} +1 -1
  80. package/dist/{docs-lLLKcLr_.mjs → docs-BI2ZoYmm.mjs} +1 -1
  81. package/dist/{durable-objects-DPf1DMeq.mjs → durable-objects-BPTzK6Xh.mjs} +1 -1
  82. package/dist/{email-auth-DOlEoi8q.mjs → email-auth-BSoYwLs1.mjs} +1 -1
  83. package/dist/{email-routing-D56SPGty.mjs → email-routing-3AIhCb7w.mjs} +1 -1
  84. package/dist/{email-security-CSawx0kD.mjs → email-security-INhnV4tT.mjs} +1 -1
  85. package/dist/{email-sending-CgFi0cLA.mjs → email-sending-BJ3OLfN3.mjs} +1 -1
  86. package/dist/{errors-CilNjDVk.mjs → errors-CBngn9n1.mjs} +1 -1
  87. package/dist/{field-extractors-FvIgySB4.mjs → field-extractors-lSqk5ySb.mjs} +1 -1
  88. package/dist/{firewall-BrTvywhW.mjs → firewall-CdXsS4Cc.mjs} +1 -1
  89. package/dist/{flagship-BGFN1Epo.mjs → flagship-CtnQ4Emf.mjs} +1 -1
  90. package/dist/{fraud-DzK6OIO3.mjs → fraud-CAZdLc_4.mjs} +1 -1
  91. package/dist/{google-tag-gateway-Cd9v8A7Z.mjs → google-tag-gateway-CBMNbgeM.mjs} +1 -1
  92. package/dist/{healthchecks-Cm7EHaBA.mjs → healthchecks-DdPEo0GC.mjs} +1 -1
  93. package/dist/{hyperdrive-CVaSt0qX.mjs → hyperdrive-DxHbVnyO.mjs} +1 -1
  94. package/dist/{iam-CWN62Mi4.mjs → iam-CISZzLLr.mjs} +1 -1
  95. package/dist/{images-Bo_pdvQC.mjs → images-DeMHqQHl.mjs} +1 -1
  96. package/dist/index.mjs +1 -1
  97. package/dist/{init-Dwmpc_S-.mjs → init-DKADNnPy.mjs} +1 -1
  98. package/dist/{intel-CQFYeGEA.mjs → intel-BYvnwlXr.mjs} +1 -1
  99. package/dist/{ips-jTSzoqMU.mjs → ips-CS5SkxUL.mjs} +1 -1
  100. package/dist/{k2-utE2lCYd.mjs → k2-isJz0-93.mjs} +1 -1
  101. package/dist/{kv-Cdh5hHte.mjs → kv-Beih-nj_.mjs} +1 -1
  102. package/dist/{lazy-command-QoHlmXHW.mjs → lazy-command-Dfv2jIGz.mjs} +1 -1
  103. package/dist/{leaked-credential-checks-CqApscD3.mjs → leaked-credential-checks-CP_8DWAX.mjs} +1 -1
  104. package/dist/{load-balancers-w_4Uz9Gi.mjs → load-balancers-fhAs7LaH.mjs} +1 -1
  105. package/dist/{login-CS3KxVbk.mjs → login-BdTYP5Xw.mjs} +1 -1
  106. package/dist/login-Bux329zM.mjs +2 -0
  107. package/dist/{logpush-C76I5dgN.mjs → logpush-fHQiJ9eI.mjs} +1 -1
  108. package/dist/{logs-B5aCYVCv.mjs → logs-Bquc4oxR.mjs} +1 -1
  109. package/dist/{magic-network-monitoring-CGf7cVQ9.mjs → magic-network-monitoring-DqQUEtPW.mjs} +1 -1
  110. package/dist/{magic-transit-CN5noqOR.mjs → magic-transit-py-CXbOl.mjs} +1 -1
  111. package/dist/{managed-defense-DAGr0UGm.mjs → managed-defense-nFm4rVCR.mjs} +1 -1
  112. package/dist/{managed-transforms-_SuwzZ-5.mjs → managed-transforms-2k6tV3U-.mjs} +1 -1
  113. package/dist/{mcp-CzedsjOf.mjs → mcp-BCtJ76cJ.mjs} +1 -1
  114. package/dist/{mesh-DXX1S3pX.mjs → mesh-D2V3ITA7.mjs} +1 -1
  115. package/dist/{migrate-CvRQ4x3_.mjs → migrate-CqUzEP9-.mjs} +1 -1
  116. package/dist/{monetization-8nt9PYln.mjs → monetization-CQL4WEtz.mjs} +1 -1
  117. package/dist/{network-CaiRDY2e.mjs → network-1oR1_5Ak.mjs} +1 -1
  118. package/dist/{network-interconnects-Ad6JbAVd.mjs → network-interconnects-BKRa6OaY.mjs} +1 -1
  119. package/dist/{o11y-DD2Hfnzi.mjs → o11y-B2hny1eT.mjs} +4 -4
  120. package/dist/{oauth-BUcV_xbm.mjs → oauth-CQiiWvag.mjs} +1 -1
  121. package/dist/{oauth-CQRlNgt5.mjs → oauth-Dp9VNyOf.mjs} +1 -1
  122. package/dist/{observability-BzKBUUSf.mjs → observability-ByzMkD8L.mjs} +1 -1
  123. package/dist/{ohttp-gateway-Sej9-GCm.mjs → ohttp-gateway-B67P-f_M.mjs} +1 -1
  124. package/dist/{organizations-DwYsCbYD.mjs → organizations-Dk5cbMB5.mjs} +1 -1
  125. package/dist/package-CcmyQJFT.mjs +2 -0
  126. package/dist/{page-rules-CjufEmIt.mjs → page-rules-hRzoq6WZ.mjs} +1 -1
  127. package/dist/{pages-Dj0Cdf3G.mjs → pages-D_0y5Pbg.mjs} +1 -1
  128. package/dist/{pay-per-crawl-DPVlluRA.mjs → pay-per-crawl-C0ZDkVH8.mjs} +1 -1
  129. package/dist/{pay-per-use-DhuLjaoo.mjs → pay-per-use-Z_LlZyxh.mjs} +1 -1
  130. package/dist/{pipelines-D2pM69oq.mjs → pipelines-B8-zUXTD.mjs} +1 -1
  131. package/dist/{precursor-DzuA1m8D.mjs → precursor-vlW9-fma.mjs} +1 -1
  132. package/dist/{previews-CHHd5Rx7.mjs → previews-DZX0vwDU.mjs} +3 -3
  133. package/dist/{progress-AML-AVs4.mjs → progress-DQfZZwit.mjs} +1 -1
  134. package/dist/{prompt-Bnon9lfK.mjs → prompt-e6K5lhdE.mjs} +1 -1
  135. package/dist/{queues-GDwznw0o.mjs → queues-6WHCb5qi.mjs} +1 -1
  136. package/dist/{r2-B3Xkb0S4.mjs → r2-C9xL1Rcg.mjs} +2 -2
  137. package/dist/{radar-fBT7VIO2.mjs → radar-DN1PIWRf.mjs} +150 -150
  138. package/dist/{raw-fetch-0T1SwPa1.mjs → raw-fetch-DXSBORQI.mjs} +1 -1
  139. package/dist/{realtime-B7mR3XtY.mjs → realtime-CcOSBEFJ.mjs} +1 -1
  140. package/dist/{registrar-DOoxlZc7.mjs → registrar-BjBA2lbF.mjs} +1 -1
  141. package/dist/{registrar-sandbox-DC7xAqqc.mjs → registrar-sandbox-DVeWO8gt.mjs} +1 -1
  142. package/dist/{reporting-DlD7J6Pq.mjs → reporting-cOY97XSy.mjs} +1 -1
  143. package/dist/{request-headers-BEYXy4JN.mjs → request-headers-xtY5gOlq.mjs} +1 -1
  144. package/dist/{request-tracers-DYCGkszp.mjs → request-tracers-bHnQoIpS.mjs} +1 -1
  145. package/dist/{resource-sharing-D_bUv7E8.mjs → resource-sharing-CQMP1o3F.mjs} +1 -1
  146. package/dist/{rules-C4cu3_jr.mjs → rules-CrevxzXm.mjs} +1 -1
  147. package/dist/{rulesets-Bl4mLnXA.mjs → rulesets-DzGcmiGs.mjs} +1 -1
  148. package/dist/{rum-DE_uJb09.mjs → rum-edoW7i0P.mjs} +1 -1
  149. package/dist/run-B6k0nZU4.mjs +2 -0
  150. package/dist/{run-DAg7dfIW.mjs → run-DhU17ztU.mjs} +1 -1
  151. package/dist/{schema-cache-CTVUtkAl.mjs → schema-cache-BFMBra5w.mjs} +1 -1
  152. package/dist/{scim-Dz4r0fnH.mjs → scim-BC31cTiV.mjs} +1 -1
  153. package/dist/{secrets-store-C2GwCUKs.mjs → secrets-store-DJlRawQ0.mjs} +1 -1
  154. package/dist/{security-insights-DZCm5D3U.mjs → security-insights-jHGuq15c.mjs} +1 -1
  155. package/dist/{security-txt-Dbi9KxNc.mjs → security-txt-D1vV2ySL.mjs} +1 -1
  156. package/dist/{session-BEsQIuwP.mjs → session-Py5R3Tdx.mjs} +1 -1
  157. package/dist/shared-C50J5uEm.mjs +2 -0
  158. package/dist/{smart-shield-C2uSFcGN.mjs → smart-shield-YI9Y6xhz.mjs} +1 -1
  159. package/dist/{snippets-BoaGEAC6.mjs → snippets-SKlEbP3W.mjs} +1 -1
  160. package/dist/{spawn-B4y5Urjv.mjs → spawn-BXaiweDp.mjs} +1 -1
  161. package/dist/{spectrum-Bb0KXA8R.mjs → spectrum-CFl8kTtP.mjs} +1 -1
  162. package/dist/{speed-zKYgLTHA.mjs → speed-DekTJTgw.mjs} +1 -1
  163. package/dist/{sql-pjWozuvl.mjs → sql-tkIoPSbE.mjs} +1 -1
  164. package/dist/{src-B8i6_XGg.mjs → src-COKSSJwa.mjs} +5 -5
  165. package/dist/{ssl-C5bg1X0i.mjs → ssl-DRGNVUlP.mjs} +1 -1
  166. package/dist/{static-assets-CTv7XwIQ.mjs → static-assets-pAj1uSDU.mjs} +1 -1
  167. package/dist/{stream-C_FiNrLV.mjs → stream-WHdFw1o1.mjs} +1 -1
  168. package/dist/{tags-CXlivF3y.mjs → tags-CNEWjoac.mjs} +1 -1
  169. package/dist/{telemetry-CtQWhsmy.mjs → telemetry-BCQMv5dO.mjs} +1 -1
  170. package/dist/telemetry-CruYXv5e.mjs +2 -0
  171. package/dist/{tenant-custom-nameservers-DBg9Hzvn.mjs → tenant-custom-nameservers-BCJoh-yz.mjs} +1 -1
  172. package/dist/{tenants-89Q0u5_Q.mjs → tenants-Coo3-wTg.mjs} +1 -1
  173. package/dist/{tunnels-CL2fIINH.mjs → tunnels-Cy3byznJ.mjs} +2 -2
  174. package/dist/{turnstile-D6GtQULo.mjs → turnstile-DvkuMuTq.mjs} +1 -1
  175. package/dist/ui-CA_2sliN.mjs +2 -0
  176. package/dist/{update-check-0kpbTLvy.mjs → update-check-Buyg_Zyb.mjs} +1 -1
  177. package/dist/{update-check-D3axIoUi.mjs → update-check-CV30Z3FO.mjs} +1 -1
  178. package/dist/update-check-worker.mjs +1 -1
  179. package/dist/{url-normalization--iS57OT_.mjs → url-normalization-DJzp3oJN.mjs} +1 -1
  180. package/dist/{url-scanner-C6AtXGc2.mjs → url-scanner-C28ADWWB.mjs} +1 -1
  181. package/dist/{user-C5vRYIta.mjs → user-CiFGo-51.mjs} +1 -1
  182. package/dist/{vectorize-C1Kxb1Ou.mjs → vectorize-DZ-VBQjl.mjs} +1 -1
  183. package/dist/version--BAAeBma.mjs +2 -0
  184. package/dist/{waiting-rooms-BCVZY9vI.mjs → waiting-rooms-mLG31NWt.mjs} +1 -1
  185. package/dist/{web-assets-D2gXqKZS.mjs → web-assets-Caubyaqz.mjs} +1 -1
  186. package/dist/{web3-CJDZQCOk.mjs → web3-Ctcb6rxj.mjs} +1 -1
  187. package/dist/{whoami-BEad9QUB.mjs → whoami-DBZfITBb.mjs} +3 -3
  188. package/dist/whoami-rfo2jx0r.mjs +2 -0
  189. package/dist/{workers-DzXSJMv9.mjs → workers-ClK3WFQg.mjs} +18 -18
  190. package/dist/{workers-for-platforms-CvazgrqD.mjs → workers-for-platforms-D6fknsnw.mjs} +1 -1
  191. package/dist/{workers-vpc-DP4QC6UC.mjs → workers-vpc-B7wRAn-K.mjs} +1 -1
  192. package/dist/{workflows-BSOj56io.mjs → workflows-B0UzguVf.mjs} +1 -1
  193. package/dist/{wrangler-migration-DZ9Oelof.mjs → wrangler-migration-u2oXOk-L.mjs} +2 -2
  194. package/dist/{zaraz-BnQvKXFy.mjs → zaraz-p9rNptt3.mjs} +1 -1
  195. package/dist/{zero-trust-DsslXRub.mjs → zero-trust-Dw5CvLQD.mjs} +1 -1
  196. package/dist/{zones-DQ3SjGsZ.mjs → zones-DzPc0thm.mjs} +1 -1
  197. package/package.json +6 -6
  198. package/dist/auth-CXR2vsII.mjs +0 -2
  199. package/dist/build-ByjJ6yIB.mjs +0 -2
  200. package/dist/command-ycXauMSv.mjs +0 -2
  201. package/dist/deploy-input-BFWpjDVr.mjs +0 -2
  202. package/dist/discover-D9FNaCDK.mjs +0 -2
  203. package/dist/internal-CYrPZ9IX.mjs +0 -4
  204. package/dist/live-hZgMkXJf.mjs +0 -4
  205. package/dist/login-BBSJytOt.mjs +0 -2
  206. package/dist/package-DXaRIx2f.mjs +0 -2
  207. package/dist/ready-BkXNDNTd.mjs +0 -4
  208. package/dist/run-Cg9utScS.mjs +0 -2
  209. package/dist/shared-DqW2vICA.mjs +0 -2
  210. package/dist/signed-url-BhHSAUam.mjs +0 -4
  211. package/dist/telemetry-DDs3zhdw.mjs +0 -2
  212. package/dist/ui-CY75N4Tm.mjs +0 -2
  213. package/dist/version-pcpa_kv3.mjs +0 -2
  214. package/dist/whoami-2eFTt0-Y.mjs +0 -2
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env node
2
- import{r as e,t}from"./rolldown-runtime-BNtqjh-B.mjs";import{n,t as r}from"./ansi-styles-kSC6bEIq.mjs";import{n as i,t as a}from"./string-width-D6-CGlwN.mjs";import{t as o}from"./lazy-command-QoHlmXHW.mjs";import{n as s}from"./metadata-Df5kCWJv.mjs";import{r as c}from"./theme-BGHWSKCw.mjs";import{t as l}from"./agent-context-Dtyy4aKL.mjs";import{t as u}from"./args-BAOHroBC.mjs";import{t as d}from"./cli-exit-CstFZ1eJ.mjs";import{n as f,t as p}from"./dotenv-DKRemNCH.mjs";import{n as m}from"./errors-CilNjDVk.mjs";import{n as h,r as g,t as _}from"./global-options-4pyD17hd.mjs";import{t as v}from"./hand-written-dry-run-B82fRl2N.mjs";import{i as ee}from"./local-B3zt9PXR.mjs";import{o as y}from"./project-settings-D_S-UC8I.mjs";import{n as te,t as ne}from"./session-BEsQIuwP.mjs";import{a as re,n as b,t as x}from"./lifecycle-oud60haK.mjs";import{r as S}from"./blocks-DK5qAzLe.mjs";import"./ui-CY75N4Tm.mjs";import{n as C}from"./version-pcpa_kv3.mjs";import{createRequire as w}from"node:module";import{setTimeout as ie}from"node:timers/promises";import{notStrictEqual as ae,strictEqual as oe}from"assert";import{basename as se,dirname as ce,extname as le,join as ue,normalize as de,relative as fe,resolve as pe}from"path";import{readFileSync as T,readdirSync as me,statSync as he,writeFile as ge}from"fs";import{format as _e,inspect as ve}from"util";import{fileURLToPath as E}from"url";import{readFileSync as ye,readdirSync as be}from"node:fs";const D={right:Te,center:Ee};var xe=class{constructor(e){this.width=e.width,this.wrap=e.wrap??!0,this.rows=[]}span(...e){let t=this.div(...e);t.span=!0}resetOutput(){this.rows=[]}div(...e){if(e.length===0&&this.div(``),this.wrap&&this.shouldApplyLayoutDSL(...e)&&typeof e[0]==`string`)return this.applyLayoutDSL(e[0]);let t=e.map(e=>typeof e==`string`?this.colFromString(e):e);return this.rows.push(t),t}shouldApplyLayoutDSL(...e){return e.length===1&&typeof e[0]==`string`&&/[\t\n]/.test(e[0])}applyLayoutDSL(e){let t=e.split(`
2
+ import{r as e,t}from"./rolldown-runtime-BNtqjh-B.mjs";import{n,t as r}from"./ansi-styles-kSC6bEIq.mjs";import{n as i,t as a}from"./string-width-D6-CGlwN.mjs";import{t as o}from"./lazy-command-Dfv2jIGz.mjs";import{n as s}from"./metadata-Df5kCWJv.mjs";import{r as c}from"./theme-BGHWSKCw.mjs";import{t as l}from"./agent-context-Dtyy4aKL.mjs";import{t as u}from"./args-BAOHroBC.mjs";import{t as d}from"./cli-exit-CstFZ1eJ.mjs";import{n as f,t as p}from"./dotenv-DKRemNCH.mjs";import{n as m}from"./errors-CBngn9n1.mjs";import{n as h,r as g,t as _}from"./global-options-4pyD17hd.mjs";import{t as v}from"./hand-written-dry-run-B82fRl2N.mjs";import{i as ee}from"./local-B3zt9PXR.mjs";import{o as y}from"./project-settings-D_S-UC8I.mjs";import{n as te,t as ne}from"./session-Py5R3Tdx.mjs";import{a as re,n as b,t as x}from"./lifecycle-oud60haK.mjs";import{r as S}from"./blocks-DdIA5quB.mjs";import"./ui-CA_2sliN.mjs";import{n as C}from"./version--BAAeBma.mjs";import{createRequire as w}from"node:module";import{setTimeout as ie}from"node:timers/promises";import{notStrictEqual as ae,strictEqual as oe}from"assert";import{basename as se,dirname as ce,extname as le,join as ue,normalize as de,relative as fe,resolve as pe}from"path";import{readFileSync as T,readdirSync as me,statSync as he,writeFile as ge}from"fs";import{format as _e,inspect as ve}from"util";import{fileURLToPath as E}from"url";import{readFileSync as ye,readdirSync as be}from"node:fs";const D={right:Te,center:Ee};var xe=class{constructor(e){this.width=e.width,this.wrap=e.wrap??!0,this.rows=[]}span(...e){let t=this.div(...e);t.span=!0}resetOutput(){this.rows=[]}div(...e){if(e.length===0&&this.div(``),this.wrap&&this.shouldApplyLayoutDSL(...e)&&typeof e[0]==`string`)return this.applyLayoutDSL(e[0]);let t=e.map(e=>typeof e==`string`?this.colFromString(e):e);return this.rows.push(t),t}shouldApplyLayoutDSL(...e){return e.length===1&&typeof e[0]==`string`&&/[\t\n]/.test(e[0])}applyLayoutDSL(e){let t=e.split(`
3
3
  `).map(e=>e.split(` `)),n=0;return t.forEach(e=>{e.length>1&&O.stringWidth(e[0])>n&&(n=Math.min(Math.floor(this.width*.5),O.stringWidth(e[0])))}),t.forEach(e=>{this.div(...e.map((t,r)=>({text:t.trim(),padding:this.measurePadding(t),width:r===0&&e.length>1?n:void 0})))}),this.rows[this.rows.length-1]}colFromString(e){return{text:e,padding:this.measurePadding(e)}}measurePadding(e){let t=O.stripAnsi(e);return[0,t.match(/\s*$/)[0].length,0,t.match(/^\s*/)[0].length]}toString(){let e=[];return this.rows.forEach(t=>{this.rowToString(t,e)}),e.filter(e=>!e.hidden).map(e=>e.text).join(`
4
4
  `)}rowToString(e,t){return this.rasterize(e).forEach((n,r)=>{let i=``;n.forEach((n,a)=>{let{width:o}=e[a],s=this.negatePadding(e[a]),c=n;if(s>O.stringWidth(n)&&(c+=` `.repeat(s-O.stringWidth(n))),e[a].align&&e[a].align!==`left`&&this.wrap){let t=D[e[a].align];c=t(c,s),O.stringWidth(c)<s&&(c+=` `.repeat((o||0)-O.stringWidth(c)-1))}let l=e[a].padding||[0,0,0,0];l[3]&&(i+=` `.repeat(l[3])),i+=Se(e[a],c,`| `),i+=c,i+=Se(e[a],c,` |`),l[1]&&(i+=` `.repeat(l[1])),r===0&&t.length>0&&(i=this.renderInline(i,t[t.length-1]))}),t.push({text:i.replace(/ +$/,``),span:e.span})}),t}renderInline(e,t){let n=e.match(/^ */),r=n?n[0].length:0,i=t.text,a=O.stringWidth(i.trimRight());return t.span?this.wrap?r<a?e:(t.hidden=!0,i.trimRight()+` `.repeat(r-a)+e.trimLeft()):(t.hidden=!0,i+e):e}rasterize(e){let t=[],n=this.columnWidths(e),r;return e.forEach((e,i)=>{e.width=n[i],r=this.wrap?O.wrap(e.text,this.negatePadding(e),{hard:!0}).split(`
5
5
  `):e.text.split(`
@@ -115,7 +115,7 @@ Please do one of the following:
115
115
  - Use a different option key
116
116
  https://yargs.js.org/docs/#api-reference-version`,void 0,`versionWarning`),L(this,q,`f`).key[e]=!0,t.alias&&this.alias(e,t.alias);let n=t.deprecate||t.deprecated;n&&this.deprecateOption(e,n);let r=t.demand||t.required||t.require;r&&this.demand(e,r),t.demandOption&&this.demandOption(e,typeof t.demandOption==`string`?t.demandOption:void 0),t.conflicts&&this.conflicts(e,t.conflicts),`default`in t&&this.default(e,t.default),t.implies!==void 0&&this.implies(e,t.implies),t.nargs!==void 0&&this.nargs(e,t.nargs),t.config&&this.config(e,t.configParser),t.normalize&&this.normalize(e),t.choices&&this.choices(e,t.choices),t.coerce&&this.coerce(e,t.coerce),t.group&&this.group(e,t.group),(t.boolean||t.type===`boolean`)&&(this.boolean(e),t.alias&&this.boolean(t.alias)),(t.array||t.type===`array`)&&(this.array(e),t.alias&&this.array(t.alias)),(t.number||t.type===`number`)&&(this.number(e),t.alias&&this.number(t.alias)),(t.string||t.type===`string`)&&(this.string(e),t.alias&&this.string(t.alias)),(t.count||t.type===`count`)&&this.count(e),typeof t.global==`boolean`&&this.global(e,t.global),t.defaultDescription&&(L(this,q,`f`).defaultDescription[e]=t.defaultDescription),t.skipValidation&&this.skipValidation(e);let i=t.describe||t.description||t.desc,a=L(this,X,`f`).getDescriptions();Object.prototype.hasOwnProperty.call(a,e)&&typeof i!=`string`||this.describe(e,i),t.hidden&&this.hide(e),t.requiresArg&&this.requiresArg(e)}return this}options(e,t){return this.option(e,t)}parse(e,t,n){F(`[string|array] [function|boolean|object] [function]`,[e,t,n],arguments.length),this[An](),e===void 0&&(e=L(this,yn,`f`)),typeof t==`object`&&(I(this,gn,t,`f`),t=n),typeof t==`function`&&(I(this,J,t,`f`),t=!1),t||I(this,yn,e,`f`),L(this,J,`f`)&&I(this,V,!1,`f`);let r=this[rr](e,!!t),i=this.parsed;return L(this,z,`f`).setParsed(this.parsed),N(r)?r.then(e=>(L(this,J,`f`)&&L(this,J,`f`).call(this,L(this,cn,`f`),e,L(this,K,`f`)),e)).catch(e=>{throw L(this,J,`f`)&&L(this,J,`f`)(e,this.parsed.argv,L(this,K,`f`)),e}).finally(()=>{this[Un](),this.parsed=i}):(L(this,J,`f`)&&L(this,J,`f`).call(this,L(this,cn,`f`),r,L(this,K,`f`)),this[Un](),this.parsed=i,r)}parseAsync(e,t,n){let r=this.parse(e,t,n);return N(r)?r:Promise.resolve(r)}parseSync(e,t,n){let r=this.parse(e,t,n);if(N(r))throw new P(`.parseSync() must not be used with asynchronous builders, handlers, or middleware`);return r}parserConfiguration(e){return F(`<object>`,[e],arguments.length),I(this,hn,e,`f`),this}pkgConf(e,t){F(`<string> [string]`,[e,t],arguments.length);let n=null,r=this[Ln](t||L(this,an,`f`));return r[e]&&typeof r[e]==`object`&&(n=en(r[e],t||L(this,an,`f`),this[Mn]()[`deep-merge-config`]||!1,L(this,Y,`f`)),L(this,q,`f`).configObjects=(L(this,q,`f`).configObjects||[]).concat(n)),this}positional(e,t){F(`<string> <object>`,[e,t],arguments.length);let n=[`default`,`defaultDescription`,`implies`,`normalize`,`choices`,`conflicts`,`coerce`,`type`,`describe`,`desc`,`description`,`alias`];t=Lt(t,(e,t)=>e===`type`&&![`string`,`number`,`boolean`].includes(t)?!1:n.includes(e));let r=L(this,on,`f`).fullCommands[L(this,on,`f`).fullCommands.length-1],i=r?L(this,R,`f`).cmdToParseOptions(r):{array:[],alias:{},default:{},demand:{}};return yt(i).forEach(n=>{let r=i[n];Array.isArray(r)?r.indexOf(e)!==-1&&(t[n]=!0):r[e]&&!(n in t)&&(t[n]=r[e])}),this.group(e,L(this,X,`f`).getPositionalGroupName()),this.option(e,t)}recommendCommands(e=!0){return F(`[boolean]`,[e],arguments.length),I(this,bn,e,`f`),this}required(e,t,n){return this.demand(e,t,n)}require(e,t,n){return this.demand(e,t,n)}requiresArg(e){return F(`<array|string|object> [number]`,[e],arguments.length),typeof e==`string`&&L(this,q,`f`).narg[e]||this[Rn](this.requiresArg.bind(this),`narg`,e,NaN),this}showCompletionScript(e,t){return F(`[string] [string]`,[e,t],arguments.length),e||=this.$0,L(this,pn,`f`).log(L(this,z,`f`).generateCompletionScript(e,t||L(this,B,`f`)||`completion`)),this}showHelp(e){if(F(`[string|function]`,[e],arguments.length),I(this,W,!0,`f`),!L(this,X,`f`).hasCachedHelpMessage()){if(!this.parsed){let t=this[rr](L(this,yn,`f`),void 0,void 0,0,!0);if(N(t))return t.then(()=>{L(this,X,`f`).showHelp(e)}),this}let t=L(this,R,`f`).runDefaultBuilderOn(this);if(N(t))return t.then(()=>{L(this,X,`f`).showHelp(e)}),this}return L(this,X,`f`).showHelp(e),this}scriptName(e){return this.customScriptName=!0,this.$0=e,this}showHelpOnFail(e,t){return F(`[boolean|string] [string]`,[e,t],arguments.length),L(this,X,`f`).showHelpOnFail(e,t),this}showVersion(e){return F(`[string|function]`,[e],arguments.length),L(this,X,`f`).showVersion(e),this}skipValidation(e){return F(`<array|string>`,[e],arguments.length),this[$](`skipValidation`,e),this}strict(e){return F(`[boolean]`,[e],arguments.length),I(this,xn,e!==!1,`f`),this}strictCommands(e){return F(`[boolean]`,[e],arguments.length),I(this,Sn,e!==!1,`f`),this}strictOptions(e){return F(`[boolean]`,[e],arguments.length),I(this,Cn,e!==!1,`f`),this}string(e){return F(`<array|string>`,[e],arguments.length),this[$](`string`,e),this[or](e),this}terminalWidth(){return F([],0),L(this,Y,`f`).process.stdColumns}updateLocale(e){return this.updateStrings(e)}updateStrings(e){return F(`<object>`,[e],arguments.length),I(this,ln,!1,`f`),L(this,Y,`f`).y18n.updateLocale(e),this}usage(e,t,n,r){if(F(`<string|null|undefined> [string|boolean] [function|object] [function]`,[e,t,n,r],arguments.length),t!==void 0){if(M(e,null,L(this,Y,`f`)),(e||``).match(/^\$0( |$)/))return this.command(e,t,n,r);throw new P(`.usage() description must start with $0 if being used as alias for .command()`)}return L(this,X,`f`).usage(e),this}usageConfiguration(e){return F(`<object>`,[e],arguments.length),I(this,wn,e,`f`),this}version(e,t,n){let r=`version`;if(F(`[boolean|string] [string] [string]`,[e,t,n],arguments.length),L(this,Z,`f`)&&(this[On](L(this,Z,`f`)),L(this,X,`f`).version(void 0),I(this,Z,null,`f`)),arguments.length===0)n=this[Fn](),e=r;else if(arguments.length===1){if(e===!1)return this;n=e,e=r}else arguments.length===2&&(n=t,t=void 0);return I(this,Z,typeof e==`string`?e:r,`f`),t||=L(this,X,`f`).deferY18nLookup(`Show version number`),L(this,X,`f`).version(n||void 0),this.boolean(L(this,Z,`f`)),this.describe(L(this,Z,`f`),t),this}wrap(e){return F(`<number|null|undefined>`,[e],arguments.length),L(this,X,`f`).wrap(e),this}[(R=/* @__PURE__ */ new WeakMap,an=/* @__PURE__ */ new WeakMap,on=/* @__PURE__ */ new WeakMap,z=/* @__PURE__ */ new WeakMap,B=/* @__PURE__ */ new WeakMap,sn=/* @__PURE__ */ new WeakMap,cn=/* @__PURE__ */ new WeakMap,ln=/* @__PURE__ */ new WeakMap,un=/* @__PURE__ */ new WeakMap,V=/* @__PURE__ */ new WeakMap,dn=/* @__PURE__ */ new WeakMap,H=/* @__PURE__ */ new WeakMap,U=/* @__PURE__ */ new WeakMap,W=/* @__PURE__ */ new WeakMap,G=/* @__PURE__ */ new WeakMap,fn=/* @__PURE__ */ new WeakMap,pn=/* @__PURE__ */ new WeakMap,K=/* @__PURE__ */ new WeakMap,q=/* @__PURE__ */ new WeakMap,mn=/* @__PURE__ */ new WeakMap,hn=/* @__PURE__ */ new WeakMap,J=/* @__PURE__ */ new WeakMap,gn=/* @__PURE__ */ new WeakMap,_n=/* @__PURE__ */ new WeakMap,vn=/* @__PURE__ */ new WeakMap,yn=/* @__PURE__ */ new WeakMap,bn=/* @__PURE__ */ new WeakMap,Y=/* @__PURE__ */ new WeakMap,xn=/* @__PURE__ */ new WeakMap,Sn=/* @__PURE__ */ new WeakMap,Cn=/* @__PURE__ */ new WeakMap,X=/* @__PURE__ */ new WeakMap,wn=/* @__PURE__ */ new WeakMap,Z=/* @__PURE__ */ new WeakMap,Q=/* @__PURE__ */ new WeakMap,En)](e){if(!e._||!e[`--`])return e;e._.push.apply(e._,e[`--`]);try{delete e[`--`]}catch{}return e}[Dn](){return{log:(...e)=>{this[Qn]()||console.log(...e),I(this,W,!0,`f`),L(this,K,`f`).length&&I(this,K,L(this,K,`f`)+`
117
117
  `,`f`),I(this,K,L(this,K,`f`)+e.join(` `),`f`)},error:(...e)=>{this[Qn]()||console.error(...e),I(this,W,!0,`f`),L(this,K,`f`).length&&I(this,K,L(this,K,`f`)+`
118
- `,`f`),I(this,K,L(this,K,`f`)+e.join(` `),`f`)}}}[On](e){yt(L(this,q,`f`)).forEach(t=>{if((e=>e===`configObjects`)(t))return;let n=L(this,q,`f`)[t];Array.isArray(n)?n.includes(e)&&n.splice(n.indexOf(e),1):typeof n==`object`&&delete n[e]}),delete L(this,X,`f`).getDescriptions()[e]}[kn](e,t,n){L(this,un,`f`)[n]||(L(this,Y,`f`).process.emitWarning(e,t),L(this,un,`f`)[n]=!0)}[An](){L(this,dn,`f`).push({options:L(this,q,`f`),configObjects:L(this,q,`f`).configObjects.slice(0),exitProcess:L(this,V,`f`),groups:L(this,U,`f`),strict:L(this,xn,`f`),strictCommands:L(this,Sn,`f`),strictOptions:L(this,Cn,`f`),completionCommand:L(this,B,`f`),output:L(this,K,`f`),exitError:L(this,cn,`f`),hasOutput:L(this,W,`f`),parsed:this.parsed,parseFn:L(this,J,`f`),parseContext:L(this,gn,`f`)}),L(this,X,`f`).freeze(),L(this,Q,`f`).freeze(),L(this,R,`f`).freeze(),L(this,H,`f`).freeze()}[jn](){let e=``,t;return t=/\b(node|iojs|electron|bun)(\.exe)?$/.test(L(this,Y,`f`).process.argv()[0])?L(this,Y,`f`).process.argv().slice(1,2):L(this,Y,`f`).process.argv().slice(0,1),e=t.map(e=>{let t=this[tr](L(this,an,`f`),e);return e.match(/^(\/|([a-zA-Z]:)?\\)/)&&t.length<e.length?t:e}).join(` `).trim(),L(this,Y,`f`).getEnv(`_`)&&L(this,Y,`f`).getProcessArgvBin()===L(this,Y,`f`).getEnv(`_`)&&(e=L(this,Y,`f`).getEnv(`_`).replace(`${L(this,Y,`f`).path.dirname(L(this,Y,`f`).process.execPath())}/`,``)),e}[Mn](){return L(this,hn,`f`)}[Nn](){return L(this,wn,`f`)}[Pn](){if(!L(this,ln,`f`))return;let e=L(this,Y,`f`).getEnv(`LC_ALL`)||L(this,Y,`f`).getEnv(`LC_MESSAGES`)||L(this,Y,`f`).getEnv(`LANG`)||L(this,Y,`f`).getEnv(`LANGUAGE`)||`en_US`;this.locale(e.replace(/[.:].*/,``))}[Fn](){return this[Ln]().version||`unknown`}[In](e){let t=e[`--`]?e[`--`]:e._;for(let e=0,n;(n=t[e])!==void 0;e++)L(this,Y,`f`).Parser.looksLikeNumber(n)&&Number.isSafeInteger(Math.floor(parseFloat(`${n}`)))&&(t[e]=Number(n));return e}[Ln](e){let t=e||`*`;if(L(this,_n,`f`)[t])return L(this,_n,`f`)[t];let n={};try{let t=e||L(this,Y,`f`).mainFilename;L(this,Y,`f`).path.extname(t)&&(t=L(this,Y,`f`).path.dirname(t));let r=L(this,Y,`f`).findUp(t,(e,t)=>{if(t.includes(`package.json`))return`package.json`});M(r,void 0,L(this,Y,`f`)),n=JSON.parse(L(this,Y,`f`).readFileSync(r,`utf8`))}catch{}return L(this,_n,`f`)[t]=n||{},L(this,_n,`f`)[t]}[$](e,t){t=[].concat(t),t.forEach(t=>{t=this[Vn](t),L(this,q,`f`)[e].push(t)})}[Rn](e,t,n,r){this[Bn](e,t,n,r,(e,t,n)=>{L(this,q,`f`)[e][t]=n})}[zn](e,t,n,r){this[Bn](e,t,n,r,(e,t,n)=>{L(this,q,`f`)[e][t]=(L(this,q,`f`)[e][t]||[]).concat(n)})}[Bn](e,t,n,r,i){if(Array.isArray(n))n.forEach(t=>{e(t,r)});else if((e=>typeof e==`object`)(n))for(let t of yt(n))e(t,n[t]);else i(t,this[Vn](n),r)}[Vn](e){return e===`__proto__`?`___proto___`:e}[Hn](e,t){return this[Rn](this[Hn].bind(this),`key`,e,t),this}[Un](){var e,t,n,r,i,a,o,s,c,l,u,d;let f=L(this,dn,`f`).pop();M(f,void 0,L(this,Y,`f`));let p;e=this,t=this,n=this,r=this,i=this,a=this,o=this,s=this,c=this,l=this,u=this,d=this,{options:{set value(t){I(e,q,t,`f`)}}.value,configObjects:p,exitProcess:{set value(e){I(t,V,e,`f`)}}.value,groups:{set value(e){I(n,U,e,`f`)}}.value,output:{set value(e){I(r,K,e,`f`)}}.value,exitError:{set value(e){I(i,cn,e,`f`)}}.value,hasOutput:{set value(e){I(a,W,e,`f`)}}.value,parsed:this.parsed,strict:{set value(e){I(o,xn,e,`f`)}}.value,strictCommands:{set value(e){I(s,Sn,e,`f`)}}.value,strictOptions:{set value(e){I(c,Cn,e,`f`)}}.value,completionCommand:{set value(e){I(l,B,e,`f`)}}.value,parseFn:{set value(e){I(u,J,e,`f`)}}.value,parseContext:{set value(e){I(d,gn,e,`f`)}}.value}=f,L(this,q,`f`).configObjects=p,L(this,X,`f`).unfreeze(),L(this,Q,`f`).unfreeze(),L(this,R,`f`).unfreeze(),L(this,H,`f`).unfreeze()}[Wn](e,t){return Dt(t,t=>(e(t),t))}getInternalMethods(){return{getCommandInstance:this[Gn].bind(this),getContext:this[Kn].bind(this),getHasOutput:this[qn].bind(this),getLoggerInstance:this[Jn].bind(this),getParseContext:this[Yn].bind(this),getParserConfiguration:this[Mn].bind(this),getUsageConfiguration:this[Nn].bind(this),getUsageInstance:this[Xn].bind(this),getValidationInstance:this[Zn].bind(this),hasParseCallback:this[Qn].bind(this),isGlobalContext:this[$n].bind(this),postProcess:this[er].bind(this),reset:this[nr].bind(this),runValidation:this[ir].bind(this),runYargsParserAndExecuteCommands:this[rr].bind(this),setHasOutput:this[ar].bind(this)}}[Gn](){return L(this,R,`f`)}[Kn](){return L(this,on,`f`)}[qn](){return L(this,W,`f`)}[Jn](){return L(this,pn,`f`)}[Yn](){return L(this,gn,`f`)||{}}[Xn](){return L(this,X,`f`)}[Zn](){return L(this,Q,`f`)}[Qn](){return!!L(this,J,`f`)}[$n](){return L(this,fn,`f`)}[er](e,t,n,r){return n||N(e)||(t||(e=this[En](e)),(this[Mn]()[`parse-positional-numbers`]||this[Mn]()[`parse-positional-numbers`]===void 0)&&(e=this[In](e)),r&&(e=Et(e,this,L(this,H,`f`).getMiddleware(),!1))),e}[nr](e={}){I(this,q,L(this,q,`f`)||{},`f`);let t={};t.local=L(this,q,`f`).local||[],t.configObjects=L(this,q,`f`).configObjects||[];let n={};return t.local.forEach(t=>{n[t]=!0,(e[t]||[]).forEach(e=>{n[e]=!0})}),Object.assign(L(this,vn,`f`),Object.keys(L(this,U,`f`)).reduce((e,t)=>{let r=L(this,U,`f`)[t].filter(e=>!(e in n));return r.length>0&&(e[t]=r),e},{})),I(this,U,{},`f`),[`array`,`boolean`,`string`,`skipValidation`,`count`,`normalize`,`number`,`hiddenOptions`].forEach(e=>{t[e]=(L(this,q,`f`)[e]||[]).filter(e=>!n[e])}),[`narg`,`key`,`alias`,`default`,`defaultDescription`,`config`,`choices`,`demandedOptions`,`demandedCommands`,`deprecatedOptions`].forEach(e=>{t[e]=Lt(L(this,q,`f`)[e],e=>!n[e])}),t.envPrefix=L(this,q,`f`).envPrefix,I(this,q,t,`f`),I(this,X,L(this,X,`f`)?L(this,X,`f`).reset(n):Bt(this,L(this,Y,`f`)),`f`),I(this,Q,L(this,Q,`f`)?L(this,Q,`f`).reset(n):Zt(this,L(this,X,`f`),L(this,Y,`f`)),`f`),I(this,R,L(this,R,`f`)?L(this,R,`f`).reset():jt(L(this,X,`f`),L(this,Q,`f`),L(this,H,`f`),L(this,Y,`f`)),`f`),L(this,z,`f`)||I(this,z,Kt(this,L(this,X,`f`),L(this,R,`f`),L(this,Y,`f`)),`f`),L(this,H,`f`).reset(),I(this,B,null,`f`),I(this,K,``,`f`),I(this,cn,null,`f`),I(this,W,!1,`f`),this.parsed=!1,this}[tr](e,t){return L(this,Y,`f`).path.relative(e,t)}[rr](e,t,n,r=0,i=!1){let a=!!n||i;e||=L(this,yn,`f`),L(this,q,`f`).__=L(this,Y,`f`).y18n.__,L(this,q,`f`).configuration=this[Mn]();let o=!!L(this,q,`f`).configuration[`populate--`],s=Object.assign({},L(this,q,`f`).configuration,{"populate--":!0}),c=L(this,Y,`f`).Parser.detailed(e,Object.assign({},L(this,q,`f`),{configuration:{"parse-positional-numbers":!1,...s}})),l=Object.assign(c.argv,L(this,gn,`f`)),u,d=c.aliases,f=!1,p=!1;Object.keys(l).forEach(e=>{e===L(this,G,`f`)&&l[e]?f=!0:e===L(this,Z,`f`)&&l[e]&&(p=!0)}),l.$0=this.$0,this.parsed=c,r===0&&L(this,X,`f`).clearCachedHelpMessage();try{if(this[Pn](),t)return this[er](l,o,!!n,!1);L(this,G,`f`)&&[L(this,G,`f`)].concat(d[L(this,G,`f`)]||[]).filter(e=>e.length>1).includes(``+l._[l._.length-1])&&(l._.pop(),f=!0),I(this,fn,!1,`f`);let s=L(this,R,`f`).getCommands(),m=L(this,z,`f`)?.completionKey?[L(this,z,`f`)?.completionKey,...this.getAliases()[L(this,z,`f`)?.completionKey]??[]].some(e=>Object.prototype.hasOwnProperty.call(l,e)):!1,h=f||m||i;if(l._.length){if(s.length){let e;for(let t=r||0,a;l._[t]!==void 0;t++){if(a=String(l._[t]),s.includes(a)&&a!==L(this,B,`f`)){let e=L(this,R,`f`).runCommand(a,this,c,t+1,i,f||p||i);return this[er](e,o,!!n,!1)}if(!e&&a!==L(this,B,`f`)){e=a;break}}!L(this,R,`f`).hasDefaultCommand()&&L(this,bn,`f`)&&e&&!h&&L(this,Q,`f`).recommendCommands(e,s)}L(this,B,`f`)&&l._.includes(L(this,B,`f`))&&!m&&(L(this,V,`f`)&&Rt(!0),this.showCompletionScript(),this.exit(0))}if(L(this,R,`f`).hasDefaultCommand()&&!h){let e=L(this,R,`f`).runCommand(null,this,c,0,i,f||p||i);return this[er](e,o,!!n,!1)}if(m){L(this,V,`f`)&&Rt(!0),e=[].concat(e);let t=e.slice(e.indexOf(`--${L(this,z,`f`).completionKey}`)+1);return L(this,z,`f`).getCompletion(t,(e,t)=>{if(e)throw new P(e.message);(t||[]).forEach(e=>{L(this,pn,`f`).log(e)}),this.exit(0)}),this[er](l,!o,!!n,!1)}if(L(this,W,`f`)||(f?(L(this,V,`f`)&&Rt(!0),a=!0,this.showHelp(e=>{L(this,pn,`f`).log(e),this.exit(0)})):p&&(L(this,V,`f`)&&Rt(!0),a=!0,L(this,X,`f`).showVersion(`log`),this.exit(0))),!a&&L(this,q,`f`).skipValidation.length>0&&(a=Object.keys(l).some(e=>L(this,q,`f`).skipValidation.indexOf(e)>=0&&l[e]===!0)),!a){if(c.error)throw new P(c.error.message);if(!m){let e=this[ir](d,{},c.error);n||(u=Et(l,this,L(this,H,`f`).getMiddleware(),!0)),u=this[Wn](e,u??l),N(u)&&!n&&(u=u.then(()=>Et(l,this,L(this,H,`f`).getMiddleware(),!1)))}}}catch(e){if(e instanceof P)L(this,X,`f`).fail(e.message,e);else throw e}return this[er](u??l,o,!!n,!0)}[ir](e,t,n,r){let i={...this.getDemandedOptions()};return a=>{if(n)throw new P(n.message);L(this,Q,`f`).nonOptionCount(a),L(this,Q,`f`).requiredArguments(a,i);let o=!1;L(this,Sn,`f`)&&(o=L(this,Q,`f`).unknownCommands(a)),L(this,xn,`f`)&&!o?L(this,Q,`f`).unknownArguments(a,e,t,!!r):L(this,Cn,`f`)&&L(this,Q,`f`).unknownArguments(a,e,{},!1,!1),L(this,Q,`f`).limitedChoices(a),L(this,Q,`f`).implications(a),L(this,Q,`f`).conflicting(a)}}[ar](){I(this,W,!0,`f`)}[or](e){if(typeof e==`string`)L(this,q,`f`).key[e]=!0;else for(let t of e)L(this,q,`f`).key[t]=!0}};function cr(e){return!!e&&typeof e.getInternalMethods==`function`}const lr=Tn(_t),ur=[{command:o(`abuse-reports`,`Submit and track abuse reports for phishing, malware, and other policy violations on Cloudflare-proxied sites`,()=>import(`./abuse-reports-Dzop8iDe.mjs`),null),hideCommand:!1},{command:o(`access`,`Access protected applications and services`,()=>import(`./access-2NeD3Gu8.mjs`),null),hideCommand:!1},{command:o(`accounts`,`Account settings, members, roles, subscriptions, and API tokens for your Cloudflare account`,()=>import(`./accounts-CeJbhhX4.mjs`),null),hideCommand:!1},{command:o(`acm`,`acm`,()=>import(`./acm-Dub0B14J.mjs`),null),hideCommand:!1},{command:o(`addressing`,`addressing`,()=>import(`./addressing-BzWJU8m6.mjs`),null),hideCommand:!1},{command:o(`agent-memory`,`agent-memory`,()=>import(`./agent-memory-2l9zyQFA.mjs`),null),hideCommand:!1},{command:o(`ai`,`ai`,()=>import(`./ai-laLv3daG.mjs`),null),hideCommand:!1},{command:o(`ai-audit`,`ai-audit`,()=>import(`./ai-audit-rgNePq5W.mjs`),null),hideCommand:!1},{command:o(`ai-gateway`,`Proxy, cache, rate-limit, and observe requests to AI providers — OpenAI, Anthropic, Workers AI, and more`,()=>import(`./ai-gateway-e9b8CcL6.mjs`),null),hideCommand:!1},{command:o(`ai-search`,`Managed search-as-a-service: crawl, index, and query content with AI-powered relevance and chat completions`,()=>import(`./ai-search-DZ0AqoPe.mjs`),null),hideCommand:!1},{command:o(`ai-security`,`Detect prompt injection, PII, and unsafe topics in traffic to your AI applications`,()=>import(`./ai-security-CQuBTtmw.mjs`),null),hideCommand:!1},{command:o(`alerting`,`alerting`,()=>import(`./alerting-_4ra-f_v.mjs`),null),hideCommand:!1},{command:o(`analytics`,`Zone-level traffic analytics — dashboard summaries, per-colo breakdowns, and Argo latency metrics`,()=>import(`./analytics-DLNn4bJ4.mjs`),null),hideCommand:!1},{command:o(`analytics-engine`,`analytics-engine`,()=>import(`./analytics-engine-CY45yWuL.mjs`),null),hideCommand:!1},{command:o(`api-security`,`api-security`,()=>import(`./api-security-BSvJAjJV.mjs`),null),hideCommand:!1},{command:o(`argo`,`Network optimization features that speed up and improve reliability of traffic to your origins`,()=>import(`./argo-xzl0p--1.mjs`),null),hideCommand:!1},{command:o(`artifacts`,`artifacts`,()=>import(`./artifacts-DAS14gcM.mjs`),null),hideCommand:!1},{command:o(`audit-logs`,`audit-logs`,()=>import(`./audit-logs-3nYyCGQA.mjs`),null),hideCommand:!1},{command:o(`basin-catalog`,`Iceberg-compatible data catalog for R2 — organize objects into tables and namespaces for SQL query engines`,()=>import(`./basin-catalog-BbCsAKyZ.mjs`),null),hideCommand:!1},{command:o(`billing`,`Account billing profiles and usage data for Cloudflare subscriptions and add-on services`,()=>import(`./billing-BsiLsjWJ.mjs`),null),hideCommand:!1},{command:o(`bot-management`,`bot-management`,()=>import(`./bot-management-DkErOsIO.mjs`),null),hideCommand:!1},{command:o(`botnet-feed`,`Botnet threat intelligence feeds — IP and ASN-level data on known command-and-control infrastructure`,()=>import(`./botnet-feed-CK4_PKrf.mjs`),null),hideCommand:!1},{command:o(`brand-protection`,`brand-protection`,()=>import(`./brand-protection-Czt-2Ei5.mjs`),null),hideCommand:!1},{command:o(`browser-run`,`browser-run`,()=>import(`./browser-run-DLMdEaSJ.mjs`),null),hideCommand:!1},{command:o(`builds`,`Build and deploy Workers from connected repositories, then inspect build status and logs.`,()=>import(`./builds-D--zUbR2.mjs`),null),hideCommand:!1},{command:o(`cache`,`Purge cached content and configure Cache Reserve, tiered caching, and variant serving`,()=>import(`./cache-C8PQmkjD.mjs`),null),hideCommand:!1},{command:o(`client-side-security`,`Client-Side Security — monitor JavaScript, connections, and cookies on your pages for supply-chain attacks`,()=>import(`./client-side-security-CFxePUL9.mjs`),null),hideCommand:!1},{command:o(`cloud-connector`,`Route traffic from Cloudflare directly to cloud provider services (AWS, Azure, GCP) without origin servers`,()=>import(`./cloud-connector-BitfLQ3s.mjs`),null),hideCommand:!1},{command:o(`cloudforce-one`,`Detection rule management APIs`,()=>import(`./cloudforce-one-D2dzA7VD.mjs`),null),hideCommand:!1},{command:o(`connector-interrupts`,`connector-interrupts`,()=>import(`./connector-interrupts-D9tI84Fk.mjs`),null),hideCommand:!1},{command:o(`connector-telemetry-events`,`connector-telemetry-events`,()=>import(`./connector-telemetry-events-Bs9wLYwc.mjs`),null),hideCommand:!1},{command:o(`connector-telemetry-snapshots`,`connector-telemetry-snapshots`,()=>import(`./connector-telemetry-snapshots-CbwE4lrE.mjs`),null),hideCommand:!1},{command:o(`connectors`,`connectors`,()=>import(`./connectors-LyJN1htu.mjs`),null),hideCommand:!1},{command:o(`containers`,`Deploy and manage Containers applications on Cloudflare's global network`,()=>import(`./containers-CKs7ZyZq.mjs`),null),hideCommand:!1},{command:o(`content-scan`,`Malicious uploads detection, scan uploaded content in HTTP requests for malware and malicious payloads`,()=>import(`./content-scan-BQRz7C7Z.mjs`),null),hideCommand:!1},{command:o(`cps`,`cps`,()=>import(`./cps-DYlXx89C.mjs`),null),hideCommand:!1},{command:o(`csam-scanner`,`csam-scanner`,()=>import(`./csam-scanner-BFANxGD-.mjs`),null),hideCommand:!1},{command:o(`custom-csrs`,`custom-csrs`,()=>import(`./custom-csrs-BX4aCeof.mjs`),null),hideCommand:!1},{command:o(`custom-hostnames`,`custom-hostnames`,()=>import(`./custom-hostnames-BRYABKN3.mjs`),null),hideCommand:!1},{command:o(`custom-nameservers`,`custom-nameservers`,()=>import(`./custom-nameservers-CP1Vf1TD.mjs`),null),hideCommand:!1},{command:o(`custom-pages`,`Manage custom error and challenge pages and their assets for accounts and zones`,()=>import(`./custom-pages-BNL69ToU.mjs`),null),hideCommand:!1},{command:o(`d1`,`D1 is Cloudflare's managed, serverless database with SQLite's SQL semantics, built-in disaster recovery, and Worker and HTTP API access.`,()=>import(`./d1-D4AZsUKn.mjs`),null),hideCommand:!1},{command:o(`diagnostics`,`Network diagnostic tools — traceroutes from Cloudflare's edge and endpoint health checks`,()=>import(`./diagnostics-Dk3pyWx_.mjs`),null),hideCommand:!1},{command:o(`dls`,`dls`,()=>import(`./dls-DU6EdhQK.mjs`),null),hideCommand:!1},{command:o(`dns`,`dns`,()=>import(`./dns-3QDtCu6f.mjs`),null),hideCommand:!1},{command:o(`dns-firewall`,`dns-firewall`,()=>import(`./dns-firewall-Bbrr_0_a.mjs`),null),hideCommand:!1},{command:o(`durable-objects`,`Stateful serverless objects with transactional storage, ideal for coordination, sessions, and real-time collaboration`,()=>import(`./durable-objects-DPf1DMeq.mjs`),null),hideCommand:!1},{command:o(`email-auth`,`email-auth`,()=>import(`./email-auth-DOlEoi8q.mjs`),null),hideCommand:!1},{command:o(`email-routing`,`Route incoming email to verified destination addresses or Workers with routing rules, catch-all behavior, and managed DNS records`,()=>import(`./email-routing-D56SPGty.mjs`),null),hideCommand:!1},{command:o(`email-security`,`Cloud email security — investigate threats, manage allow/block policies, and detect phishing`,()=>import(`./email-security-CSawx0kD.mjs`),null),hideCommand:!1},{command:o(`email-sending`,`Send transactional email and manage sending subdomains and their DNS configuration`,()=>import(`./email-sending-CgFi0cLA.mjs`),null),hideCommand:!1},{command:o(`field-extractors`,`field-extractors`,()=>import(`./field-extractors-FvIgySB4.mjs`),null),hideCommand:!1},{command:o(`firewall`,`Legacy firewall rules, zone lockdowns, access rules, user-agent blocking, and WAF packages`,()=>import(`./firewall-BrTvywhW.mjs`),null),hideCommand:!1},{command:o(`flagship`,`flagship`,()=>import(`./flagship-BGFN1Epo.mjs`),null),hideCommand:!1},{command:o(`fraud`,`fraud`,()=>import(`./fraud-DzK6OIO3.mjs`),null),hideCommand:!1},{command:o(`google-tag-gateway`,`Google Tag Gateway operations`,()=>import(`./google-tag-gateway-Cd9v8A7Z.mjs`),null),hideCommand:!1},{command:o(`healthchecks`,`Standalone health checks that monitor origin server availability from Cloudflare's edge`,()=>import(`./healthchecks-Cm7EHaBA.mjs`),null),hideCommand:!1},{command:o(`hyperdrive`,`Accelerate access to existing databases by caching queries and pooling connections at the edge`,()=>import(`./hyperdrive-CVaSt0qX.mjs`),null),hideCommand:!1},{command:o(`iam`,`Identity and access management — permission groups, resource groups, user groups, and SSO connectors`,()=>import(`./iam-CWN62Mi4.mjs`),null),hideCommand:!1},{command:o(`images`,`Store, resize, and deliver optimized images globally — variants, signing keys, and direct uploads`,()=>import(`./images-Bo_pdvQC.mjs`),null),hideCommand:!1},{command:o(`intel`,`Threat intelligence lookups — IP reputation, domain info, ASN details, WHOIS, and indicator feeds`,()=>import(`./intel-CQFYeGEA.mjs`),null),hideCommand:!1},{command:o(`internal`,`internal`,()=>import(`./internal-CYrPZ9IX.mjs`),null),hideCommand:!0},{command:o(`ips`,`ips`,()=>import(`./ips-jTSzoqMU.mjs`),null),hideCommand:!0},{command:o(`k2`,`Durable, ordered event streams that you produce records to and consume from with subscriptions`,()=>import(`./k2-utE2lCYd.mjs`),null),hideCommand:!1},{command:o(`kv`,`kv`,()=>import(`./kv-Cdh5hHte.mjs`),null),hideCommand:!1},{command:o(`leaked-credential-checks`,`Detect compromised credentials in login requests by checking against known breach databases`,()=>import(`./leaked-credential-checks-CqApscD3.mjs`),null),hideCommand:!1},{command:o(`live`,`live`,()=>import(`./live-hZgMkXJf.mjs`),null),hideCommand:!0},{command:o(`load-balancers`,`Distribute traffic across origin pools with health monitoring, geo-steering, and failover`,()=>import(`./load-balancers-w_4Uz9Gi.mjs`),null),hideCommand:!1},{command:o(`logpush`,`logpush`,()=>import(`./logpush-C76I5dgN.mjs`),null),hideCommand:!1},{command:o(`logs`,`Log control, retention, and raw log access — CMB config, ray ID lookups, and received fields`,()=>import(`./logs-B5aCYVCv.mjs`),null),hideCommand:!1},{command:o(`magic-network-monitoring`,`Flow-based network traffic monitoring with configurable alerting rules and VPC flow ingestion`,()=>import(`./magic-network-monitoring-CGf7cVQ9.mjs`),null),hideCommand:!0},{command:o(`magic-transit`,`DDoS-protected network transit — GRE/IPsec tunnels, static routes, Magic WAN sites, connectors, and packet captures`,()=>import(`./magic-transit-CN5noqOR.mjs`),null),hideCommand:!1},{command:o(`managed-defense`,`managed-defense`,()=>import(`./managed-defense-DAGr0UGm.mjs`),null),hideCommand:!1},{command:o(`managed-transforms`,`managed-transforms`,()=>import(`./managed-transforms-_SuwzZ-5.mjs`),null),hideCommand:!1},{command:o(`mcp`,`Manage MCP portals and upstream MCP servers for Cloudflare Access AI controls`,()=>import(`./mcp-CzedsjOf.mjs`),null),hideCommand:!1},{command:o(`mesh`,`mesh`,()=>import(`./mesh-DXX1S3pX.mjs`),null),hideCommand:!1},{command:o(`monetization`,`monetization`,()=>import(`./monetization-8nt9PYln.mjs`),null),hideCommand:!1},{command:o(`network`,`network`,()=>import(`./network-CaiRDY2e.mjs`),null),hideCommand:!1},{command:o(`network-interconnects`,`Physical and virtual private interconnects between your infrastructure and Cloudflare's network`,()=>import(`./network-interconnects-Ad6JbAVd.mjs`),null),hideCommand:!1},{command:o(`o11y`,`o11y`,()=>import(`./o11y-DD2Hfnzi.mjs`),null),hideCommand:!1},{command:o(`observability`,`observability`,()=>import(`./observability-BzKBUUSf.mjs`),null),hideCommand:!1},{command:o(`ohttp-gateway`,`ohttp-gateway`,()=>import(`./ohttp-gateway-Sej9-GCm.mjs`),null),hideCommand:!1},{command:o(`organizations`,`Multi-user organizations that group accounts, members, and shared settings under a single entity`,()=>import(`./organizations-DwYsCbYD.mjs`),null),hideCommand:!1},{command:o(`page-rules`,`page-rules`,()=>import(`./page-rules-CjufEmIt.mjs`),null),hideCommand:!1},{command:o(`pages`,`Full-stack application hosting with Git-integrated builds, preview deployments, and custom domains`,()=>import(`./pages-Dj0Cdf3G.mjs`),null),hideCommand:!1},{command:o(`pay-per-crawl`,`pay-per-crawl`,()=>import(`./pay-per-crawl-DPVlluRA.mjs`),null),hideCommand:!1},{command:o(`pay-per-use`,`pay-per-use`,()=>import(`./pay-per-use-DhuLjaoo.mjs`),null),hideCommand:!1},{command:o(`pipelines`,`Ingest, transform, and route event streams into R2, analytics, or other destinations in real time`,()=>import(`./pipelines-D2pM69oq.mjs`),null),hideCommand:!1},{command:o(`precursor`,`Precursor settings for a zone`,()=>import(`./precursor-DzuA1m8D.mjs`),null),hideCommand:!1},{command:o(`previews`,`Manage Worker Previews`,()=>import(`./previews-CHHd5Rx7.mjs`),null),hideCommand:!1},{command:o(`queues`,`Reliable message queuing between Workers — produce, consume, and batch-process messages at scale`,()=>import(`./queues-GDwznw0o.mjs`),null),hideCommand:!1},{command:o(`r2`,`S3-compatible object storage with zero egress fees — buckets, lifecycle rules, event notifications, and data migration`,()=>import(`./r2-B3Xkb0S4.mjs`),null),hideCommand:!1},{command:o(`radar`,`Internet-wide traffic intelligence — BGP, DNS, HTTP trends, attack data, and network quality insights`,()=>import(`./radar-fBT7VIO2.mjs`),null),hideCommand:!1},{command:o(`ready`,`ready`,()=>import(`./ready-BkXNDNTd.mjs`),null),hideCommand:!0},{command:o(`realtime`,`Real-time audio, video, and data services on Cloudflare's global network`,()=>import(`./realtime-B7mR3XtY.mjs`),null),hideCommand:!1},{command:o(`registrar`,`registrar`,()=>import(`./registrar-DOoxlZc7.mjs`),null),hideCommand:!1},{command:o(`registrar-sandbox`,`registrar-sandbox`,()=>import(`./registrar-sandbox-DC7xAqqc.mjs`),null),hideCommand:!1},{command:o(`reporting`,`reporting`,()=>import(`./reporting-DlD7J6Pq.mjs`),null),hideCommand:!1},{command:o(`request-tracers`,`Trace how a request would be processed through Cloudflare's rules and configuration pipeline`,()=>import(`./request-tracers-DYCGkszp.mjs`),null),hideCommand:!1},{command:o(`resource-sharing`,`Share account-level resources (WAF custom rulesets, Gateway policies and settings, Access IdP federation grants) with other accounts in the same organization`,()=>import(`./resource-sharing-D_bUv7E8.mjs`),null),hideCommand:!1},{command:o(`rules`,`Resources used by Cloudflare rules and rulesets`,()=>import(`./rules-C4cu3_jr.mjs`),null),hideCommand:!1},{command:o(`rulesets`,`rulesets`,()=>import(`./rulesets-Bl4mLnXA.mjs`),null),hideCommand:!1},{command:o(`rum`,`Real User Measurement (Web Analytics) — track page loads, Core Web Vitals, and visitor metrics`,()=>import(`./rum-DE_uJb09.mjs`),null),hideCommand:!0},{command:o(`scim`,`SCIM 2.0 provisioning — manage users, groups, and identity provider sync for your account`,()=>import(`./scim-Dz4r0fnH.mjs`),null),hideCommand:!1},{command:o(`secrets-store`,`Centralized secret management — store API keys, tokens, and credentials for use across Workers and other products`,()=>import(`./secrets-store-C2GwCUKs.mjs`),null),hideCommand:!1},{command:o(`security-insights`,`security-insights`,()=>import(`./security-insights-DZCm5D3U.mjs`),null),hideCommand:!1},{command:o(`security-txt`,`Manage the /.well-known/security.txt file that tells security researchers how to report vulnerabilities`,()=>import(`./security-txt-Dbi9KxNc.mjs`),null),hideCommand:!1},{command:o(`signed-url`,`signed-url`,()=>import(`./signed-url-BhHSAUam.mjs`),null),hideCommand:!0},{command:o(`smart-shield`,`Smart Shield settings, health checks, and cache reserve management`,()=>import(`./smart-shield-C2uSFcGN.mjs`),null),hideCommand:!1},{command:o(`snippets`,`snippets`,()=>import(`./snippets-BoaGEAC6.mjs`),null),hideCommand:!1},{command:o(`spectrum`,`Proxy and protect arbitrary TCP/UDP applications through Cloudflare's network with DDoS mitigation`,()=>import(`./spectrum-Bb0KXA8R.mjs`),null),hideCommand:!1},{command:o(`speed`,`Observatory speed tests — run Lighthouse audits, track performance trends, and schedule recurring tests`,()=>import(`./speed-zKYgLTHA.mjs`),null),hideCommand:!1},{command:o(`sql`,`sql`,()=>import(`./sql-pjWozuvl.mjs`),null),hideCommand:!1},{command:o(`ssl`,`SSL/TLS certificate management — certificate packs, Universal SSL, verification, and TLS mode recommendations`,()=>import(`./ssl-C5bg1X0i.mjs`),null),hideCommand:!1},{command:o(`stream`,`Video encoding, storage, and delivery — upload, live-stream, clip, caption, and embed video at scale`,()=>import(`./stream-C_FiNrLV.mjs`),null),hideCommand:!1},{command:o(`tags`,`tags`,()=>import(`./tags-CXlivF3y.mjs`),null),hideCommand:!1},{command:o(`tenant-custom-nameservers`,`tenant-custom-nameservers`,()=>import(`./tenant-custom-nameservers-DBg9Hzvn.mjs`),null),hideCommand:!1},{command:o(`tenants`,`Multi-tenant account management`,()=>import(`./tenants-89Q0u5_Q.mjs`),null),hideCommand:!1},{command:o(`tunnels`,`tunnels`,()=>import(`./tunnels-CL2fIINH.mjs`),null),hideCommand:!1},{command:o(`turnstile`,`CAPTCHA-free bot verification widgets that protect forms and APIs without degrading user experience`,()=>import(`./turnstile-D6GtQULo.mjs`),null),hideCommand:!1},{command:o(`url-normalization`,`url-normalization`,()=>import(`./url-normalization--iS57OT_.mjs`),null),hideCommand:!1},{command:o(`url-scanner`,`Scan URLs for phishing, malware, and other threats — submit scans and retrieve detailed results`,()=>import(`./url-scanner-C6AtXGc2.mjs`),null),hideCommand:!1},{command:o(`user`,`Your Cloudflare user profile, invitations, organizations, billing, and personal API tokens`,()=>import(`./user-C5vRYIta.mjs`),null),hideCommand:!1},{command:o(`vectorize`,`Globally distributed vector database for building semantic search, recommendations, and RAG applications on Workers`,()=>import(`./vectorize-C1Kxb1Ou.mjs`),null),hideCommand:!1},{command:o(`waiting-rooms`,`Virtual queues that throttle traffic to your site during peak demand with customizable waiting pages`,()=>import(`./waiting-rooms-BCVZY9vI.mjs`),null),hideCommand:!1},{command:o(`web-assets`,`web-assets`,()=>import(`./web-assets-D2gXqKZS.mjs`),null),hideCommand:!1},{command:o(`web3`,`web3`,()=>import(`./web3-CJDZQCOk.mjs`),null),hideCommand:!0},{command:o(`workers`,`Deploy and manage serverless JavaScript/WASM applications on Cloudflare's global network`,()=>import(`./workers-DzXSJMv9.mjs`),null),hideCommand:!1},{command:o(`workers-for-platforms`,`Workers for Platforms uses dispatch namespaces to isolate and route requests to many individual user Workers, letting platforms run untrusted customer or AI-generated code at scale with per-tenant bindings, limits, and observability`,()=>import(`./workers-for-platforms-CvazgrqD.mjs`),null),hideCommand:!1},{command:o(`workers-vpc`,`workers-vpc`,()=>import(`./workers-vpc-DP4QC6UC.mjs`),null),hideCommand:!1},{command:o(`workflows`,`Durable, multi-step workflows that run on Workers with automatic retries and state persistence`,()=>import(`./workflows-BSOj56io.mjs`),null),hideCommand:!1},{command:o(`zaraz`,`Server-side tag manager — load third-party tools (analytics, pixels, etc.) from Cloudflare's edge without client-side JS`,()=>import(`./zaraz-BnQvKXFy.mjs`),null),hideCommand:!1},{command:o(`zero-trust`,`Cloudflare's SASE platform — secure access, device posture, DLP, tunnels, gateway policies, and network segmentation`,()=>import(`./zero-trust-DsslXRub.mjs`),null),hideCommand:!1},{command:o(`zones`,`Zones are domains on Cloudflare — list, create, and configure domain settings`,()=>import(`./zones-DQ3SjGsZ.mjs`),null),hideCommand:!1}];function dr(e){return typeof e==`object`&&!!e&&`schemas`in e&&typeof e.schemas==`object`&&e.schemas!==null&&!Array.isArray(e.schemas)}function fr(e,t){if(!t)return e;let n=s(import.meta.url,`schemas.json`,dr);return!n||!Object.hasOwn(n.schemas,t)?e:`${e}\n\n${c.italic(`To inspect the exact API request, run ${c.code(`cf schema ${t}`)}`)}`}const pr=[{kind:`root`,dryRun:`preview`,command:`auth`,describe:`Manage authentication and profiles`,dir:`auth`},{kind:`root`,dryRun:`preview`,command:`login`,describe:!1,dir:`login`},{kind:`root`,dryRun:`preview`,command:`whoami`,describe:!1,dir:`whoami`},{kind:`root`,dryRun:`preview`,command:`build`,describe:`Build a project for Cloudflare`,dir:`build`},{kind:`root`,dryRun:`preview`,command:`complete [shell]`,describe:`Generate and handle shell completions`,dir:`completions`},{kind:`root`,dryRun:`native`,command:`deploy [directory]`,describe:`Deploy a Worker, static site, or full-stack application to Cloudflare`,dir:`deploy`},{kind:`root`,dryRun:`preview`,command:`dev [implArgs..]`,describe:`Run the project's Cloudflare dev server`,dir:`dev`},{kind:`root`,dryRun:`preview`,command:`docs`,describe:`Search live Cloudflare documentation`,dir:`docs`},{kind:`root`,dryRun:`preview`,command:`init [directory]`,describe:`Create a new Cloudflare project or set up an existing one`,dir:`init`},{kind:`root`,dryRun:`native`,command:`migrate [path]`,describe:`Migrate a Wrangler project to cf`,dir:`migrate`},{kind:`root`,dryRun:`preview`,command:`cli`,describe:`Discover commands and configure the cf CLI`,dir:`cli`},{kind:`leaf`,dryRun:`preview`,parent:`previews`,name:`deploy`,dir:`previews/deploy`},{kind:`parentOverride`,parent:`previews`,describe:`Manage Worker Previews`,expose:!0,createIfMissing:!0},{kind:`root`,dryRun:`preview`,command:`schema [command..]`,describe:`Show API schema details for a command`,dir:`schema`},{kind:`root`,dryRun:`preview`,command:`tools`,describe:!1,dir:`tools`},{kind:`leafOverride`,dryRun:`native`,emitKey:`ai/run`,dir:`ai/run`},{kind:`leafOverride`,dryRun:`native`,emitKey:`registrar/registrations/create`,dir:`registrar/registrations/create`},{kind:`leaf`,dryRun:`native`,parent:`workers/versions`,name:`create`,dir:`workers/versions/create`},{kind:`leaf`,dryRun:`preview`,parent:`containers`,name:`build`,dir:`containers/build`},{kind:`leaf`,dryRun:`preview`,parent:`containers`,name:`push`,dir:`containers/push`},{kind:`leaf`,dryRun:`preview`,parent:`containers/images`,name:`list`,dir:`containers/images/list`},{kind:`leaf`,dryRun:`preview`,parent:`containers/images`,name:`delete`,dir:`containers/images/delete`},{kind:`leaf`,dryRun:`preview`,parent:`containers`,name:`ssh`,dir:`containers/ssh`},{kind:`leaf`,dryRun:`preview`,parent:`pages`,name:`deploy`,dir:`pages/deploy`},{kind:`leaf`,dryRun:`preview`,parent:`workers`,name:`check`,dir:`workers/check`},{kind:`leaf`,dryRun:`preview`,parent:`workers`,name:`types`,dir:`workers/types`},{kind:`parentOverride`,parent:`access`,describe:`Access protected applications and services`,expose:!0},{kind:`leaf`,dryRun:`preview`,parent:`access`,name:`login`,dir:`access/login`},{kind:`leaf`,dryRun:`preview`,parent:`access`,name:`token`,dir:`access/token`},{kind:`leaf`,dryRun:`preview`,parent:`access`,name:`ssh-config`,dir:`access/ssh-config`},{kind:`leaf`,dryRun:`preview`,parent:`access`,name:`ssh-gen`,dir:`access/ssh-gen`},{kind:`leaf`,dryRun:`preview`,parent:`access`,name:`tcp`,dir:`access/tcp`},{kind:`leaf`,dryRun:`preview`,parent:`access`,name:`curl`,dir:`access/curl`},{kind:`leaf`,dryRun:`preview`,parent:`tunnels`,name:`diag`,dir:`tunnels/diag`},{kind:`leaf`,dryRun:`preview`,parent:`tunnels`,name:`login`,dir:`tunnels/login`},{kind:`leaf`,dryRun:`preview`,parent:`tunnels`,name:`quick-start`,dir:`tunnels/quick-start`},{kind:`leaf`,dryRun:`preview`,parent:`tunnels`,name:`ready`,dir:`tunnels/ready`},{kind:`leaf`,dryRun:`preview`,parent:`tunnels`,name:`run`,dir:`tunnels/run`},{kind:`leaf`,dryRun:`preview`,parent:`tunnels`,name:`tail`,dir:`tunnels/tail`},{kind:`subgroup`,dryRun:`preview`,parent:`d1`,name:`migrations`,dir:`d1/migrations`,describe:`Create, list, and apply D1 database migrations`},{kind:`subgroup`,dryRun:`native`,parent:`workers`,name:`triggers`,dir:`workers/triggers`,describe:`Manage triggers (Routes, Workflows, Cron triggers etc.)`}];function mr(){return pr.filter(e=>e.kind===`root`)}function hr(e){return e.command.split(/\s+/)[0]??e.command}const gr={auth:{load:()=>import(`./auth-B0mFB6nU.mjs`),telemetry:{command:`auth`,recordArgs:!1}},login:{load:()=>import(`./login-BBSJytOt.mjs`),telemetry:null},whoami:{load:()=>import(`./whoami-2eFTt0-Y.mjs`),telemetry:null},build:{load:()=>import(`./build-ByjJ6yIB.mjs`),telemetry:{command:`build`,classification:{safeFlags:[]}}},completions:{load:()=>import(`./completions-BAUSggys.mjs`),telemetry:null},deploy:{load:()=>import(`./deploy-LbXgSfAd.mjs`),telemetry:{command:`deploy`,classification:{safeFlags:[`dry-run`,`prebuilt`,`containers-rollout`,`provision`]}}},dev:{load:()=>import(`./dev-DaFSd8WC.mjs`),telemetry:{command:`dev`,recordArgs:!1}},init:{load:()=>import(`./init-Dwmpc_S-.mjs`),telemetry:{command:`init`,classification:{safeFlags:[`install`,`package-manager`]}}},migrate:{load:()=>import(`./migrate-CvRQ4x3_.mjs`),telemetry:{command:`migrate`,recordArgs:!1}},docs:{load:()=>import(`./docs-lLLKcLr_.mjs`),telemetry:{command:`docs`,recordArgs:!1}},cli:{load:()=>import(`./cli-BBv5YMan.mjs`),telemetry:{command:`cli`,recordArgs:!1}},schema:{load:()=>import(`./schema-BX822YfT.mjs`),telemetry:{command:`schema`,classification:{safeFlags:[`list`]}}},tools:{load:()=>import(`./tools-aVtEAIvu.mjs`),telemetry:{command:`tools`,classification:{safeFlags:[`text`]}}}};function _r(){return mr().map(e=>({...e,...gr[e.dir]}))}function vr(e,t){let n=t.alias;return[e,...Array.isArray(n)?n:n===void 0?[]:[n]]}function yr(e){return e.length===1?`-${e}`:`--${e}`}const br=new Set(g),xr=Object.entries({...h,..._}).filter(([,e])=>!e.hidden).map(([e,t])=>` ${vr(e,t).sort((e,t)=>e.length-t.length).map(yr).join(`, `)}`).join(`
118
+ `,`f`),I(this,K,L(this,K,`f`)+e.join(` `),`f`)}}}[On](e){yt(L(this,q,`f`)).forEach(t=>{if((e=>e===`configObjects`)(t))return;let n=L(this,q,`f`)[t];Array.isArray(n)?n.includes(e)&&n.splice(n.indexOf(e),1):typeof n==`object`&&delete n[e]}),delete L(this,X,`f`).getDescriptions()[e]}[kn](e,t,n){L(this,un,`f`)[n]||(L(this,Y,`f`).process.emitWarning(e,t),L(this,un,`f`)[n]=!0)}[An](){L(this,dn,`f`).push({options:L(this,q,`f`),configObjects:L(this,q,`f`).configObjects.slice(0),exitProcess:L(this,V,`f`),groups:L(this,U,`f`),strict:L(this,xn,`f`),strictCommands:L(this,Sn,`f`),strictOptions:L(this,Cn,`f`),completionCommand:L(this,B,`f`),output:L(this,K,`f`),exitError:L(this,cn,`f`),hasOutput:L(this,W,`f`),parsed:this.parsed,parseFn:L(this,J,`f`),parseContext:L(this,gn,`f`)}),L(this,X,`f`).freeze(),L(this,Q,`f`).freeze(),L(this,R,`f`).freeze(),L(this,H,`f`).freeze()}[jn](){let e=``,t;return t=/\b(node|iojs|electron|bun)(\.exe)?$/.test(L(this,Y,`f`).process.argv()[0])?L(this,Y,`f`).process.argv().slice(1,2):L(this,Y,`f`).process.argv().slice(0,1),e=t.map(e=>{let t=this[tr](L(this,an,`f`),e);return e.match(/^(\/|([a-zA-Z]:)?\\)/)&&t.length<e.length?t:e}).join(` `).trim(),L(this,Y,`f`).getEnv(`_`)&&L(this,Y,`f`).getProcessArgvBin()===L(this,Y,`f`).getEnv(`_`)&&(e=L(this,Y,`f`).getEnv(`_`).replace(`${L(this,Y,`f`).path.dirname(L(this,Y,`f`).process.execPath())}/`,``)),e}[Mn](){return L(this,hn,`f`)}[Nn](){return L(this,wn,`f`)}[Pn](){if(!L(this,ln,`f`))return;let e=L(this,Y,`f`).getEnv(`LC_ALL`)||L(this,Y,`f`).getEnv(`LC_MESSAGES`)||L(this,Y,`f`).getEnv(`LANG`)||L(this,Y,`f`).getEnv(`LANGUAGE`)||`en_US`;this.locale(e.replace(/[.:].*/,``))}[Fn](){return this[Ln]().version||`unknown`}[In](e){let t=e[`--`]?e[`--`]:e._;for(let e=0,n;(n=t[e])!==void 0;e++)L(this,Y,`f`).Parser.looksLikeNumber(n)&&Number.isSafeInteger(Math.floor(parseFloat(`${n}`)))&&(t[e]=Number(n));return e}[Ln](e){let t=e||`*`;if(L(this,_n,`f`)[t])return L(this,_n,`f`)[t];let n={};try{let t=e||L(this,Y,`f`).mainFilename;L(this,Y,`f`).path.extname(t)&&(t=L(this,Y,`f`).path.dirname(t));let r=L(this,Y,`f`).findUp(t,(e,t)=>{if(t.includes(`package.json`))return`package.json`});M(r,void 0,L(this,Y,`f`)),n=JSON.parse(L(this,Y,`f`).readFileSync(r,`utf8`))}catch{}return L(this,_n,`f`)[t]=n||{},L(this,_n,`f`)[t]}[$](e,t){t=[].concat(t),t.forEach(t=>{t=this[Vn](t),L(this,q,`f`)[e].push(t)})}[Rn](e,t,n,r){this[Bn](e,t,n,r,(e,t,n)=>{L(this,q,`f`)[e][t]=n})}[zn](e,t,n,r){this[Bn](e,t,n,r,(e,t,n)=>{L(this,q,`f`)[e][t]=(L(this,q,`f`)[e][t]||[]).concat(n)})}[Bn](e,t,n,r,i){if(Array.isArray(n))n.forEach(t=>{e(t,r)});else if((e=>typeof e==`object`)(n))for(let t of yt(n))e(t,n[t]);else i(t,this[Vn](n),r)}[Vn](e){return e===`__proto__`?`___proto___`:e}[Hn](e,t){return this[Rn](this[Hn].bind(this),`key`,e,t),this}[Un](){var e,t,n,r,i,a,o,s,c,l,u,d;let f=L(this,dn,`f`).pop();M(f,void 0,L(this,Y,`f`));let p;e=this,t=this,n=this,r=this,i=this,a=this,o=this,s=this,c=this,l=this,u=this,d=this,{options:{set value(t){I(e,q,t,`f`)}}.value,configObjects:p,exitProcess:{set value(e){I(t,V,e,`f`)}}.value,groups:{set value(e){I(n,U,e,`f`)}}.value,output:{set value(e){I(r,K,e,`f`)}}.value,exitError:{set value(e){I(i,cn,e,`f`)}}.value,hasOutput:{set value(e){I(a,W,e,`f`)}}.value,parsed:this.parsed,strict:{set value(e){I(o,xn,e,`f`)}}.value,strictCommands:{set value(e){I(s,Sn,e,`f`)}}.value,strictOptions:{set value(e){I(c,Cn,e,`f`)}}.value,completionCommand:{set value(e){I(l,B,e,`f`)}}.value,parseFn:{set value(e){I(u,J,e,`f`)}}.value,parseContext:{set value(e){I(d,gn,e,`f`)}}.value}=f,L(this,q,`f`).configObjects=p,L(this,X,`f`).unfreeze(),L(this,Q,`f`).unfreeze(),L(this,R,`f`).unfreeze(),L(this,H,`f`).unfreeze()}[Wn](e,t){return Dt(t,t=>(e(t),t))}getInternalMethods(){return{getCommandInstance:this[Gn].bind(this),getContext:this[Kn].bind(this),getHasOutput:this[qn].bind(this),getLoggerInstance:this[Jn].bind(this),getParseContext:this[Yn].bind(this),getParserConfiguration:this[Mn].bind(this),getUsageConfiguration:this[Nn].bind(this),getUsageInstance:this[Xn].bind(this),getValidationInstance:this[Zn].bind(this),hasParseCallback:this[Qn].bind(this),isGlobalContext:this[$n].bind(this),postProcess:this[er].bind(this),reset:this[nr].bind(this),runValidation:this[ir].bind(this),runYargsParserAndExecuteCommands:this[rr].bind(this),setHasOutput:this[ar].bind(this)}}[Gn](){return L(this,R,`f`)}[Kn](){return L(this,on,`f`)}[qn](){return L(this,W,`f`)}[Jn](){return L(this,pn,`f`)}[Yn](){return L(this,gn,`f`)||{}}[Xn](){return L(this,X,`f`)}[Zn](){return L(this,Q,`f`)}[Qn](){return!!L(this,J,`f`)}[$n](){return L(this,fn,`f`)}[er](e,t,n,r){return n||N(e)||(t||(e=this[En](e)),(this[Mn]()[`parse-positional-numbers`]||this[Mn]()[`parse-positional-numbers`]===void 0)&&(e=this[In](e)),r&&(e=Et(e,this,L(this,H,`f`).getMiddleware(),!1))),e}[nr](e={}){I(this,q,L(this,q,`f`)||{},`f`);let t={};t.local=L(this,q,`f`).local||[],t.configObjects=L(this,q,`f`).configObjects||[];let n={};return t.local.forEach(t=>{n[t]=!0,(e[t]||[]).forEach(e=>{n[e]=!0})}),Object.assign(L(this,vn,`f`),Object.keys(L(this,U,`f`)).reduce((e,t)=>{let r=L(this,U,`f`)[t].filter(e=>!(e in n));return r.length>0&&(e[t]=r),e},{})),I(this,U,{},`f`),[`array`,`boolean`,`string`,`skipValidation`,`count`,`normalize`,`number`,`hiddenOptions`].forEach(e=>{t[e]=(L(this,q,`f`)[e]||[]).filter(e=>!n[e])}),[`narg`,`key`,`alias`,`default`,`defaultDescription`,`config`,`choices`,`demandedOptions`,`demandedCommands`,`deprecatedOptions`].forEach(e=>{t[e]=Lt(L(this,q,`f`)[e],e=>!n[e])}),t.envPrefix=L(this,q,`f`).envPrefix,I(this,q,t,`f`),I(this,X,L(this,X,`f`)?L(this,X,`f`).reset(n):Bt(this,L(this,Y,`f`)),`f`),I(this,Q,L(this,Q,`f`)?L(this,Q,`f`).reset(n):Zt(this,L(this,X,`f`),L(this,Y,`f`)),`f`),I(this,R,L(this,R,`f`)?L(this,R,`f`).reset():jt(L(this,X,`f`),L(this,Q,`f`),L(this,H,`f`),L(this,Y,`f`)),`f`),L(this,z,`f`)||I(this,z,Kt(this,L(this,X,`f`),L(this,R,`f`),L(this,Y,`f`)),`f`),L(this,H,`f`).reset(),I(this,B,null,`f`),I(this,K,``,`f`),I(this,cn,null,`f`),I(this,W,!1,`f`),this.parsed=!1,this}[tr](e,t){return L(this,Y,`f`).path.relative(e,t)}[rr](e,t,n,r=0,i=!1){let a=!!n||i;e||=L(this,yn,`f`),L(this,q,`f`).__=L(this,Y,`f`).y18n.__,L(this,q,`f`).configuration=this[Mn]();let o=!!L(this,q,`f`).configuration[`populate--`],s=Object.assign({},L(this,q,`f`).configuration,{"populate--":!0}),c=L(this,Y,`f`).Parser.detailed(e,Object.assign({},L(this,q,`f`),{configuration:{"parse-positional-numbers":!1,...s}})),l=Object.assign(c.argv,L(this,gn,`f`)),u,d=c.aliases,f=!1,p=!1;Object.keys(l).forEach(e=>{e===L(this,G,`f`)&&l[e]?f=!0:e===L(this,Z,`f`)&&l[e]&&(p=!0)}),l.$0=this.$0,this.parsed=c,r===0&&L(this,X,`f`).clearCachedHelpMessage();try{if(this[Pn](),t)return this[er](l,o,!!n,!1);L(this,G,`f`)&&[L(this,G,`f`)].concat(d[L(this,G,`f`)]||[]).filter(e=>e.length>1).includes(``+l._[l._.length-1])&&(l._.pop(),f=!0),I(this,fn,!1,`f`);let s=L(this,R,`f`).getCommands(),m=L(this,z,`f`)?.completionKey?[L(this,z,`f`)?.completionKey,...this.getAliases()[L(this,z,`f`)?.completionKey]??[]].some(e=>Object.prototype.hasOwnProperty.call(l,e)):!1,h=f||m||i;if(l._.length){if(s.length){let e;for(let t=r||0,a;l._[t]!==void 0;t++){if(a=String(l._[t]),s.includes(a)&&a!==L(this,B,`f`)){let e=L(this,R,`f`).runCommand(a,this,c,t+1,i,f||p||i);return this[er](e,o,!!n,!1)}if(!e&&a!==L(this,B,`f`)){e=a;break}}!L(this,R,`f`).hasDefaultCommand()&&L(this,bn,`f`)&&e&&!h&&L(this,Q,`f`).recommendCommands(e,s)}L(this,B,`f`)&&l._.includes(L(this,B,`f`))&&!m&&(L(this,V,`f`)&&Rt(!0),this.showCompletionScript(),this.exit(0))}if(L(this,R,`f`).hasDefaultCommand()&&!h){let e=L(this,R,`f`).runCommand(null,this,c,0,i,f||p||i);return this[er](e,o,!!n,!1)}if(m){L(this,V,`f`)&&Rt(!0),e=[].concat(e);let t=e.slice(e.indexOf(`--${L(this,z,`f`).completionKey}`)+1);return L(this,z,`f`).getCompletion(t,(e,t)=>{if(e)throw new P(e.message);(t||[]).forEach(e=>{L(this,pn,`f`).log(e)}),this.exit(0)}),this[er](l,!o,!!n,!1)}if(L(this,W,`f`)||(f?(L(this,V,`f`)&&Rt(!0),a=!0,this.showHelp(e=>{L(this,pn,`f`).log(e),this.exit(0)})):p&&(L(this,V,`f`)&&Rt(!0),a=!0,L(this,X,`f`).showVersion(`log`),this.exit(0))),!a&&L(this,q,`f`).skipValidation.length>0&&(a=Object.keys(l).some(e=>L(this,q,`f`).skipValidation.indexOf(e)>=0&&l[e]===!0)),!a){if(c.error)throw new P(c.error.message);if(!m){let e=this[ir](d,{},c.error);n||(u=Et(l,this,L(this,H,`f`).getMiddleware(),!0)),u=this[Wn](e,u??l),N(u)&&!n&&(u=u.then(()=>Et(l,this,L(this,H,`f`).getMiddleware(),!1)))}}}catch(e){if(e instanceof P)L(this,X,`f`).fail(e.message,e);else throw e}return this[er](u??l,o,!!n,!0)}[ir](e,t,n,r){let i={...this.getDemandedOptions()};return a=>{if(n)throw new P(n.message);L(this,Q,`f`).nonOptionCount(a),L(this,Q,`f`).requiredArguments(a,i);let o=!1;L(this,Sn,`f`)&&(o=L(this,Q,`f`).unknownCommands(a)),L(this,xn,`f`)&&!o?L(this,Q,`f`).unknownArguments(a,e,t,!!r):L(this,Cn,`f`)&&L(this,Q,`f`).unknownArguments(a,e,{},!1,!1),L(this,Q,`f`).limitedChoices(a),L(this,Q,`f`).implications(a),L(this,Q,`f`).conflicting(a)}}[ar](){I(this,W,!0,`f`)}[or](e){if(typeof e==`string`)L(this,q,`f`).key[e]=!0;else for(let t of e)L(this,q,`f`).key[t]=!0}};function cr(e){return!!e&&typeof e.getInternalMethods==`function`}const lr=Tn(_t),ur=[{command:o(`abuse-reports`,`Submit and track abuse reports for phishing, malware, and other policy violations on Cloudflare-proxied sites`,()=>import(`./abuse-reports-B8vD22yf.mjs`),null),hideCommand:!1},{command:o(`access`,`Access protected applications and services`,()=>import(`./access-BkZlZPER.mjs`),null),hideCommand:!1},{command:o(`accounts`,`Account settings, members, roles, subscriptions, and API tokens for your Cloudflare account`,()=>import(`./accounts-CG6_1Bfa.mjs`),null),hideCommand:!1},{command:o(`acm`,`acm`,()=>import(`./acm-B5VvmBfE.mjs`),null),hideCommand:!1},{command:o(`addressing`,`addressing`,()=>import(`./addressing-Db9Z1P-r.mjs`),null),hideCommand:!1},{command:o(`agent-memory`,`agent-memory`,()=>import(`./agent-memory-nzAUPSmC.mjs`),null),hideCommand:!1},{command:o(`ai`,`ai`,()=>import(`./ai-RTQ-iZFq.mjs`),null),hideCommand:!1},{command:o(`ai-audit`,`ai-audit`,()=>import(`./ai-audit-BGipueRC.mjs`),null),hideCommand:!1},{command:o(`ai-gateway`,`Proxy, cache, rate-limit, and observe requests to AI providers — OpenAI, Anthropic, Workers AI, and more`,()=>import(`./ai-gateway-F2pW8d5j.mjs`),null),hideCommand:!1},{command:o(`ai-search`,`Managed search-as-a-service: crawl, index, and query content with AI-powered relevance and chat completions`,()=>import(`./ai-search-CKM-K1Hm.mjs`),null),hideCommand:!1},{command:o(`ai-security`,`Detect prompt injection, PII, and unsafe topics in traffic to your AI applications`,()=>import(`./ai-security-CS2VJd4V.mjs`),null),hideCommand:!1},{command:o(`alerting`,`alerting`,()=>import(`./alerting-DNqXDY_7.mjs`),null),hideCommand:!1},{command:o(`analytics`,`Zone-level traffic analytics — dashboard summaries, per-colo breakdowns, and Argo latency metrics`,()=>import(`./analytics-DM85HHka.mjs`),null),hideCommand:!1},{command:o(`analytics-engine`,`analytics-engine`,()=>import(`./analytics-engine-CxnuZwEx.mjs`),null),hideCommand:!1},{command:o(`api-security`,`api-security`,()=>import(`./api-security-BwLSP_5v.mjs`),null),hideCommand:!1},{command:o(`argo`,`Network optimization features that speed up and improve reliability of traffic to your origins`,()=>import(`./argo-DZM2SJFd.mjs`),null),hideCommand:!1},{command:o(`artifacts`,`artifacts`,()=>import(`./artifacts-CKbQsn4H.mjs`),null),hideCommand:!1},{command:o(`audit-logs`,`audit-logs`,()=>import(`./audit-logs-CG76HATH.mjs`),null),hideCommand:!1},{command:o(`basin-catalog`,`Iceberg-compatible data catalog for R2 — organize objects into tables and namespaces for SQL query engines`,()=>import(`./basin-catalog-BMKr8hFw.mjs`),null),hideCommand:!1},{command:o(`billing`,`Account billing profiles and usage data for Cloudflare subscriptions and add-on services`,()=>import(`./billing-LiyUCn9n.mjs`),null),hideCommand:!1},{command:o(`bot-management`,`bot-management`,()=>import(`./bot-management-ATqDTT08.mjs`),null),hideCommand:!1},{command:o(`botnet-feed`,`Botnet threat intelligence feeds — IP and ASN-level data on known command-and-control infrastructure`,()=>import(`./botnet-feed-Dk3eMSZo.mjs`),null),hideCommand:!1},{command:o(`brand-protection`,`brand-protection`,()=>import(`./brand-protection-B82xx9X5.mjs`),null),hideCommand:!1},{command:o(`browser-run`,`browser-run`,()=>import(`./browser-run-DEVs2X54.mjs`),null),hideCommand:!1},{command:o(`builds`,`Build and deploy Workers from connected repositories, then inspect build status and logs.`,()=>import(`./builds-kZaYZiQn.mjs`),null),hideCommand:!1},{command:o(`cache`,`Purge cached content and configure Cache Reserve, tiered caching, and variant serving`,()=>import(`./cache-BSkT4mhb.mjs`),null),hideCommand:!1},{command:o(`client-side-security`,`Client-Side Security — monitor JavaScript, connections, and cookies on your pages for supply-chain attacks`,()=>import(`./client-side-security-90cX3xFX.mjs`),null),hideCommand:!1},{command:o(`cloud-connector`,`Route traffic from Cloudflare directly to cloud provider services (AWS, Azure, GCP) without origin servers`,()=>import(`./cloud-connector-CtJhvxoD.mjs`),null),hideCommand:!1},{command:o(`cloudforce-one`,`Detection rule management APIs`,()=>import(`./cloudforce-one-DOf-Y51V.mjs`),null),hideCommand:!1},{command:o(`connector-interrupts`,`connector-interrupts`,()=>import(`./connector-interrupts-qEMhlWeV.mjs`),null),hideCommand:!1},{command:o(`connector-telemetry-events`,`connector-telemetry-events`,()=>import(`./connector-telemetry-events-CdqnrxRp.mjs`),null),hideCommand:!1},{command:o(`connector-telemetry-snapshots`,`connector-telemetry-snapshots`,()=>import(`./connector-telemetry-snapshots-BRvmHAEM.mjs`),null),hideCommand:!1},{command:o(`connectors`,`connectors`,()=>import(`./connectors-BqShaonQ.mjs`),null),hideCommand:!1},{command:o(`containers`,`Deploy and manage Containers applications on Cloudflare's global network`,()=>import(`./containers-BNuGwLRK.mjs`),null),hideCommand:!1},{command:o(`content-scan`,`Malicious uploads detection, scan uploaded content in HTTP requests for malware and malicious payloads`,()=>import(`./content-scan-02SOIW_1.mjs`),null),hideCommand:!1},{command:o(`cps`,`cps`,()=>import(`./cps-DvEG2eZl.mjs`),null),hideCommand:!1},{command:o(`csam-scanner`,`csam-scanner`,()=>import(`./csam-scanner-Bvklah8m.mjs`),null),hideCommand:!1},{command:o(`custom-csrs`,`custom-csrs`,()=>import(`./custom-csrs-BVcDWpY-.mjs`),null),hideCommand:!1},{command:o(`custom-hostnames`,`custom-hostnames`,()=>import(`./custom-hostnames-IgjZmeJc.mjs`),null),hideCommand:!1},{command:o(`custom-nameservers`,`custom-nameservers`,()=>import(`./custom-nameservers-0EYFPBz2.mjs`),null),hideCommand:!1},{command:o(`custom-pages`,`Manage custom error and challenge pages and their assets for accounts and zones`,()=>import(`./custom-pages-W2weASNg.mjs`),null),hideCommand:!1},{command:o(`d1`,`D1 is Cloudflare's managed, serverless database with SQLite's SQL semantics, built-in disaster recovery, and Worker and HTTP API access.`,()=>import(`./d1-Df4t1noM.mjs`),null),hideCommand:!1},{command:o(`diagnostics`,`Network diagnostic tools — traceroutes from Cloudflare's edge and endpoint health checks`,()=>import(`./diagnostics-C8V1G64d.mjs`),null),hideCommand:!1},{command:o(`dls`,`dls`,()=>import(`./dls-BpU_jtuh.mjs`),null),hideCommand:!1},{command:o(`dns`,`dns`,()=>import(`./dns-BlgfnRkG.mjs`),null),hideCommand:!1},{command:o(`dns-firewall`,`dns-firewall`,()=>import(`./dns-firewall-DtkcaFQ0.mjs`),null),hideCommand:!1},{command:o(`durable-objects`,`Stateful serverless objects with transactional storage, ideal for coordination, sessions, and real-time collaboration`,()=>import(`./durable-objects-BPTzK6Xh.mjs`),null),hideCommand:!1},{command:o(`email-auth`,`email-auth`,()=>import(`./email-auth-BSoYwLs1.mjs`),null),hideCommand:!1},{command:o(`email-routing`,`Route incoming email to verified destination addresses or Workers with routing rules, catch-all behavior, and managed DNS records`,()=>import(`./email-routing-3AIhCb7w.mjs`),null),hideCommand:!1},{command:o(`email-security`,`Cloud email security — investigate threats, manage allow/block policies, and detect phishing`,()=>import(`./email-security-INhnV4tT.mjs`),null),hideCommand:!1},{command:o(`email-sending`,`Send transactional email and manage sending subdomains and their DNS configuration`,()=>import(`./email-sending-BJ3OLfN3.mjs`),null),hideCommand:!1},{command:o(`field-extractors`,`field-extractors`,()=>import(`./field-extractors-lSqk5ySb.mjs`),null),hideCommand:!1},{command:o(`firewall`,`Legacy firewall rules, zone lockdowns, access rules, user-agent blocking, and WAF packages`,()=>import(`./firewall-CdXsS4Cc.mjs`),null),hideCommand:!1},{command:o(`flagship`,`flagship`,()=>import(`./flagship-CtnQ4Emf.mjs`),null),hideCommand:!1},{command:o(`fraud`,`fraud`,()=>import(`./fraud-CAZdLc_4.mjs`),null),hideCommand:!1},{command:o(`google-tag-gateway`,`Google Tag Gateway operations`,()=>import(`./google-tag-gateway-CBMNbgeM.mjs`),null),hideCommand:!1},{command:o(`healthchecks`,`Standalone health checks that monitor origin server availability from Cloudflare's edge`,()=>import(`./healthchecks-DdPEo0GC.mjs`),null),hideCommand:!1},{command:o(`hyperdrive`,`Accelerate access to existing databases by caching queries and pooling connections at the edge`,()=>import(`./hyperdrive-DxHbVnyO.mjs`),null),hideCommand:!1},{command:o(`iam`,`Identity and access management — permission groups, resource groups, user groups, and SSO connectors`,()=>import(`./iam-CISZzLLr.mjs`),null),hideCommand:!1},{command:o(`images`,`Store, resize, and deliver optimized images globally — variants, signing keys, and direct uploads`,()=>import(`./images-DeMHqQHl.mjs`),null),hideCommand:!1},{command:o(`intel`,`Threat intelligence lookups — IP reputation, domain info, ASN details, WHOIS, and indicator feeds`,()=>import(`./intel-BYvnwlXr.mjs`),null),hideCommand:!1},{command:o(`ips`,`ips`,()=>import(`./ips-CS5SkxUL.mjs`),null),hideCommand:!0},{command:o(`k2`,`Durable, ordered event streams that you produce records to and consume from with subscriptions`,()=>import(`./k2-isJz0-93.mjs`),null),hideCommand:!1},{command:o(`kv`,`kv`,()=>import(`./kv-Beih-nj_.mjs`),null),hideCommand:!1},{command:o(`leaked-credential-checks`,`Detect compromised credentials in login requests by checking against known breach databases`,()=>import(`./leaked-credential-checks-CP_8DWAX.mjs`),null),hideCommand:!1},{command:o(`load-balancers`,`Distribute traffic across origin pools with health monitoring, geo-steering, and failover`,()=>import(`./load-balancers-fhAs7LaH.mjs`),null),hideCommand:!1},{command:o(`logpush`,`logpush`,()=>import(`./logpush-fHQiJ9eI.mjs`),null),hideCommand:!1},{command:o(`logs`,`Log control, retention, and raw log access — CMB config, ray ID lookups, and received fields`,()=>import(`./logs-Bquc4oxR.mjs`),null),hideCommand:!1},{command:o(`magic-network-monitoring`,`Flow-based network traffic monitoring with configurable alerting rules and VPC flow ingestion`,()=>import(`./magic-network-monitoring-DqQUEtPW.mjs`),null),hideCommand:!0},{command:o(`magic-transit`,`DDoS-protected network transit — GRE/IPsec tunnels, static routes, Magic WAN sites, connectors, and packet captures`,()=>import(`./magic-transit-py-CXbOl.mjs`),null),hideCommand:!1},{command:o(`managed-defense`,`managed-defense`,()=>import(`./managed-defense-nFm4rVCR.mjs`),null),hideCommand:!1},{command:o(`managed-transforms`,`managed-transforms`,()=>import(`./managed-transforms-2k6tV3U-.mjs`),null),hideCommand:!1},{command:o(`mcp`,`Manage MCP portals and upstream MCP servers for Cloudflare Access AI controls`,()=>import(`./mcp-BCtJ76cJ.mjs`),null),hideCommand:!1},{command:o(`mesh`,`mesh`,()=>import(`./mesh-D2V3ITA7.mjs`),null),hideCommand:!1},{command:o(`monetization`,`monetization`,()=>import(`./monetization-CQL4WEtz.mjs`),null),hideCommand:!1},{command:o(`network`,`network`,()=>import(`./network-1oR1_5Ak.mjs`),null),hideCommand:!1},{command:o(`network-interconnects`,`Physical and virtual private interconnects between your infrastructure and Cloudflare's network`,()=>import(`./network-interconnects-BKRa6OaY.mjs`),null),hideCommand:!1},{command:o(`o11y`,`o11y`,()=>import(`./o11y-B2hny1eT.mjs`),null),hideCommand:!1},{command:o(`observability`,`observability`,()=>import(`./observability-ByzMkD8L.mjs`),null),hideCommand:!1},{command:o(`ohttp-gateway`,`ohttp-gateway`,()=>import(`./ohttp-gateway-B67P-f_M.mjs`),null),hideCommand:!1},{command:o(`organizations`,`Multi-user organizations that group accounts, members, and shared settings under a single entity`,()=>import(`./organizations-Dk5cbMB5.mjs`),null),hideCommand:!1},{command:o(`page-rules`,`page-rules`,()=>import(`./page-rules-hRzoq6WZ.mjs`),null),hideCommand:!1},{command:o(`pages`,`Full-stack application hosting with Git-integrated builds, preview deployments, and custom domains`,()=>import(`./pages-D_0y5Pbg.mjs`),null),hideCommand:!1},{command:o(`pay-per-crawl`,`pay-per-crawl`,()=>import(`./pay-per-crawl-C0ZDkVH8.mjs`),null),hideCommand:!1},{command:o(`pay-per-use`,`pay-per-use`,()=>import(`./pay-per-use-Z_LlZyxh.mjs`),null),hideCommand:!1},{command:o(`pipelines`,`Ingest, transform, and route event streams into R2, analytics, or other destinations in real time`,()=>import(`./pipelines-B8-zUXTD.mjs`),null),hideCommand:!1},{command:o(`precursor`,`Precursor settings for a zone`,()=>import(`./precursor-vlW9-fma.mjs`),null),hideCommand:!1},{command:o(`previews`,`Manage Worker Previews`,()=>import(`./previews-DZX0vwDU.mjs`),null),hideCommand:!1},{command:o(`queues`,`Reliable message queuing between Workers — produce, consume, and batch-process messages at scale`,()=>import(`./queues-6WHCb5qi.mjs`),null),hideCommand:!1},{command:o(`r2`,`S3-compatible object storage with zero egress fees — buckets, lifecycle rules, event notifications, and data migration`,()=>import(`./r2-C9xL1Rcg.mjs`),null),hideCommand:!1},{command:o(`radar`,`Internet-wide traffic intelligence — BGP, DNS, HTTP trends, attack data, and network quality insights`,()=>import(`./radar-DN1PIWRf.mjs`),null),hideCommand:!1},{command:o(`realtime`,`Real-time audio, video, and data services on Cloudflare's global network`,()=>import(`./realtime-CcOSBEFJ.mjs`),null),hideCommand:!1},{command:o(`registrar`,`registrar`,()=>import(`./registrar-BjBA2lbF.mjs`),null),hideCommand:!1},{command:o(`registrar-sandbox`,`registrar-sandbox`,()=>import(`./registrar-sandbox-DVeWO8gt.mjs`),null),hideCommand:!1},{command:o(`reporting`,`reporting`,()=>import(`./reporting-cOY97XSy.mjs`),null),hideCommand:!1},{command:o(`request-tracers`,`Trace how a request would be processed through Cloudflare's rules and configuration pipeline`,()=>import(`./request-tracers-bHnQoIpS.mjs`),null),hideCommand:!1},{command:o(`resource-sharing`,`Share account-level resources (WAF custom rulesets, Gateway policies and settings, Access IdP federation grants) with other accounts in the same organization`,()=>import(`./resource-sharing-CQMP1o3F.mjs`),null),hideCommand:!1},{command:o(`rules`,`Resources used by Cloudflare rules and rulesets`,()=>import(`./rules-CrevxzXm.mjs`),null),hideCommand:!1},{command:o(`rulesets`,`rulesets`,()=>import(`./rulesets-DzGcmiGs.mjs`),null),hideCommand:!1},{command:o(`rum`,`Real User Measurement (Web Analytics) — track page loads, Core Web Vitals, and visitor metrics`,()=>import(`./rum-edoW7i0P.mjs`),null),hideCommand:!0},{command:o(`scim`,`SCIM 2.0 provisioning — manage users, groups, and identity provider sync for your account`,()=>import(`./scim-BC31cTiV.mjs`),null),hideCommand:!1},{command:o(`secrets-store`,`Centralized secret management — store API keys, tokens, and credentials for use across Workers and other products`,()=>import(`./secrets-store-DJlRawQ0.mjs`),null),hideCommand:!1},{command:o(`security-insights`,`security-insights`,()=>import(`./security-insights-jHGuq15c.mjs`),null),hideCommand:!1},{command:o(`security-txt`,`Manage the /.well-known/security.txt file that tells security researchers how to report vulnerabilities`,()=>import(`./security-txt-D1vV2ySL.mjs`),null),hideCommand:!1},{command:o(`smart-shield`,`Smart Shield settings, health checks, and cache reserve management`,()=>import(`./smart-shield-YI9Y6xhz.mjs`),null),hideCommand:!1},{command:o(`snippets`,`snippets`,()=>import(`./snippets-SKlEbP3W.mjs`),null),hideCommand:!1},{command:o(`spectrum`,`Proxy and protect arbitrary TCP/UDP applications through Cloudflare's network with DDoS mitigation`,()=>import(`./spectrum-CFl8kTtP.mjs`),null),hideCommand:!1},{command:o(`speed`,`Observatory speed tests — run Lighthouse audits, track performance trends, and schedule recurring tests`,()=>import(`./speed-DekTJTgw.mjs`),null),hideCommand:!1},{command:o(`sql`,`sql`,()=>import(`./sql-tkIoPSbE.mjs`),null),hideCommand:!1},{command:o(`ssl`,`SSL/TLS certificate management — certificate packs, Universal SSL, verification, and TLS mode recommendations`,()=>import(`./ssl-DRGNVUlP.mjs`),null),hideCommand:!1},{command:o(`stream`,`Video encoding, storage, and delivery — upload, live-stream, clip, caption, and embed video at scale`,()=>import(`./stream-WHdFw1o1.mjs`),null),hideCommand:!1},{command:o(`tags`,`tags`,()=>import(`./tags-CNEWjoac.mjs`),null),hideCommand:!1},{command:o(`tenant-custom-nameservers`,`tenant-custom-nameservers`,()=>import(`./tenant-custom-nameservers-BCJoh-yz.mjs`),null),hideCommand:!1},{command:o(`tenants`,`Multi-tenant account management`,()=>import(`./tenants-Coo3-wTg.mjs`),null),hideCommand:!1},{command:o(`tunnels`,`tunnels`,()=>import(`./tunnels-Cy3byznJ.mjs`),null),hideCommand:!1},{command:o(`turnstile`,`CAPTCHA-free bot verification widgets that protect forms and APIs without degrading user experience`,()=>import(`./turnstile-DvkuMuTq.mjs`),null),hideCommand:!1},{command:o(`url-normalization`,`url-normalization`,()=>import(`./url-normalization-DJzp3oJN.mjs`),null),hideCommand:!1},{command:o(`url-scanner`,`Scan URLs for phishing, malware, and other threats — submit scans and retrieve detailed results`,()=>import(`./url-scanner-C28ADWWB.mjs`),null),hideCommand:!1},{command:o(`user`,`Your Cloudflare user profile, invitations, organizations, billing, and personal API tokens`,()=>import(`./user-CiFGo-51.mjs`),null),hideCommand:!1},{command:o(`vectorize`,`Globally distributed vector database for building semantic search, recommendations, and RAG applications on Workers`,()=>import(`./vectorize-DZ-VBQjl.mjs`),null),hideCommand:!1},{command:o(`waiting-rooms`,`Virtual queues that throttle traffic to your site during peak demand with customizable waiting pages`,()=>import(`./waiting-rooms-mLG31NWt.mjs`),null),hideCommand:!1},{command:o(`web-assets`,`web-assets`,()=>import(`./web-assets-Caubyaqz.mjs`),null),hideCommand:!1},{command:o(`web3`,`web3`,()=>import(`./web3-Ctcb6rxj.mjs`),null),hideCommand:!0},{command:o(`workers`,`Deploy and manage serverless JavaScript/WASM applications on Cloudflare's global network`,()=>import(`./workers-ClK3WFQg.mjs`),null),hideCommand:!1},{command:o(`workers-for-platforms`,`Workers for Platforms uses dispatch namespaces to isolate and route requests to many individual user Workers, letting platforms run untrusted customer or AI-generated code at scale with per-tenant bindings, limits, and observability`,()=>import(`./workers-for-platforms-D6fknsnw.mjs`),null),hideCommand:!1},{command:o(`workers-vpc`,`workers-vpc`,()=>import(`./workers-vpc-B7wRAn-K.mjs`),null),hideCommand:!1},{command:o(`workflows`,`Durable, multi-step workflows that run on Workers with automatic retries and state persistence`,()=>import(`./workflows-B0UzguVf.mjs`),null),hideCommand:!1},{command:o(`zaraz`,`Server-side tag manager — load third-party tools (analytics, pixels, etc.) from Cloudflare's edge without client-side JS`,()=>import(`./zaraz-p9rNptt3.mjs`),null),hideCommand:!1},{command:o(`zero-trust`,`Cloudflare's SASE platform — secure access, device posture, DLP, tunnels, gateway policies, and network segmentation`,()=>import(`./zero-trust-Dw5CvLQD.mjs`),null),hideCommand:!1},{command:o(`zones`,`Zones are domains on Cloudflare — list, create, and configure domain settings`,()=>import(`./zones-DzPc0thm.mjs`),null),hideCommand:!1}];function dr(e){return typeof e==`object`&&!!e&&`schemas`in e&&typeof e.schemas==`object`&&e.schemas!==null&&!Array.isArray(e.schemas)}function fr(e,t){if(!t)return e;let n=s(import.meta.url,`schemas.json`,dr);return!n||!Object.hasOwn(n.schemas,t)?e:`${e}\n\n${c.italic(`To inspect the exact API request, run ${c.code(`cf schema ${t}`)}`)}`}const pr=[{kind:`root`,dryRun:`preview`,command:`auth`,describe:`Manage authentication and profiles`,dir:`auth`},{kind:`root`,dryRun:`preview`,command:`login`,describe:!1,dir:`login`},{kind:`root`,dryRun:`preview`,command:`whoami`,describe:!1,dir:`whoami`},{kind:`root`,dryRun:`preview`,command:`build`,describe:`Build a project for Cloudflare`,dir:`build`},{kind:`root`,dryRun:`preview`,command:`complete [shell]`,describe:`Generate and handle shell completions`,dir:`completions`},{kind:`root`,dryRun:`native`,command:`deploy [directory]`,describe:`Deploy a Worker, static site, or full-stack application to Cloudflare`,dir:`deploy`},{kind:`root`,dryRun:`preview`,command:`dev [implArgs..]`,describe:`Run the project's Cloudflare dev server`,dir:`dev`},{kind:`root`,dryRun:`preview`,command:`docs`,describe:`Search live Cloudflare documentation`,dir:`docs`},{kind:`root`,dryRun:`preview`,command:`init [directory]`,describe:`Create a new Cloudflare project or set up an existing one`,dir:`init`},{kind:`root`,dryRun:`native`,command:`migrate [path]`,describe:`Migrate a Wrangler project to cf`,dir:`migrate`},{kind:`root`,dryRun:`preview`,command:`cli`,describe:`Discover commands and configure the cf CLI`,dir:`cli`},{kind:`leaf`,dryRun:`preview`,parent:`previews`,name:`deploy`,dir:`previews/deploy`},{kind:`parentOverride`,parent:`previews`,describe:`Manage Worker Previews`,expose:!0,createIfMissing:!0},{kind:`root`,dryRun:`preview`,command:`schema [command..]`,describe:`Show API schema details for a command`,dir:`schema`},{kind:`root`,dryRun:`preview`,command:`tools`,describe:!1,dir:`tools`},{kind:`leafOverride`,dryRun:`native`,emitKey:`ai/run`,dir:`ai/run`},{kind:`leafOverride`,dryRun:`native`,emitKey:`registrar/registrations/create`,dir:`registrar/registrations/create`},{kind:`leaf`,dryRun:`native`,parent:`workers/versions`,name:`create`,dir:`workers/versions/create`},{kind:`leaf`,dryRun:`preview`,parent:`containers`,name:`build`,dir:`containers/build`},{kind:`leaf`,dryRun:`preview`,parent:`containers`,name:`push`,dir:`containers/push`},{kind:`leaf`,dryRun:`preview`,parent:`containers/images`,name:`list`,dir:`containers/images/list`},{kind:`leaf`,dryRun:`preview`,parent:`containers/images`,name:`delete`,dir:`containers/images/delete`},{kind:`leaf`,dryRun:`preview`,parent:`containers`,name:`ssh`,dir:`containers/ssh`},{kind:`leaf`,dryRun:`preview`,parent:`pages`,name:`deploy`,dir:`pages/deploy`},{kind:`leaf`,dryRun:`preview`,parent:`workers`,name:`check`,dir:`workers/check`},{kind:`leaf`,dryRun:`preview`,parent:`workers`,name:`types`,dir:`workers/types`},{kind:`parentOverride`,parent:`access`,describe:`Access protected applications and services`,expose:!0},{kind:`leaf`,dryRun:`preview`,parent:`access`,name:`login`,dir:`access/login`},{kind:`leaf`,dryRun:`preview`,parent:`access`,name:`token`,dir:`access/token`},{kind:`leaf`,dryRun:`preview`,parent:`access`,name:`ssh-config`,dir:`access/ssh-config`},{kind:`leaf`,dryRun:`preview`,parent:`access`,name:`ssh-gen`,dir:`access/ssh-gen`},{kind:`leaf`,dryRun:`preview`,parent:`access`,name:`tcp`,dir:`access/tcp`},{kind:`leaf`,dryRun:`preview`,parent:`access`,name:`curl`,dir:`access/curl`},{kind:`leaf`,dryRun:`preview`,parent:`tunnels`,name:`diag`,dir:`tunnels/diag`},{kind:`leaf`,dryRun:`preview`,parent:`tunnels`,name:`login`,dir:`tunnels/login`},{kind:`leaf`,dryRun:`preview`,parent:`tunnels`,name:`quick-start`,dir:`tunnels/quick-start`},{kind:`leaf`,dryRun:`preview`,parent:`tunnels`,name:`ready`,dir:`tunnels/ready`},{kind:`leaf`,dryRun:`preview`,parent:`tunnels`,name:`run`,dir:`tunnels/run`},{kind:`leaf`,dryRun:`preview`,parent:`tunnels`,name:`tail`,dir:`tunnels/tail`},{kind:`subgroup`,dryRun:`preview`,parent:`d1`,name:`migrations`,dir:`d1/migrations`,describe:`Create, list, and apply D1 database migrations`},{kind:`subgroup`,dryRun:`native`,parent:`workers`,name:`triggers`,dir:`workers/triggers`,describe:`Manage triggers (Routes, Workflows, Cron triggers etc.)`}];function mr(){return pr.filter(e=>e.kind===`root`)}function hr(e){return e.command.split(/\s+/)[0]??e.command}const gr={auth:{load:()=>import(`./auth-DBM4EcdJ.mjs`),telemetry:{command:`auth`,recordArgs:!1}},login:{load:()=>import(`./login-Bux329zM.mjs`),telemetry:null},whoami:{load:()=>import(`./whoami-rfo2jx0r.mjs`),telemetry:null},build:{load:()=>import(`./build-CjqOmQjC.mjs`),telemetry:{command:`build`,classification:{safeFlags:[]}}},completions:{load:()=>import(`./completions-4aAl8vcF.mjs`),telemetry:null},deploy:{load:()=>import(`./deploy-CGx9aUuj.mjs`),telemetry:{command:`deploy`,classification:{safeFlags:[`dry-run`,`prebuilt`,`containers-rollout`,`provision`]}}},dev:{load:()=>import(`./dev-BDls_bK6.mjs`),telemetry:{command:`dev`,recordArgs:!1}},init:{load:()=>import(`./init-DKADNnPy.mjs`),telemetry:{command:`init`,classification:{safeFlags:[`install`,`package-manager`]}}},migrate:{load:()=>import(`./migrate-CqUzEP9-.mjs`),telemetry:{command:`migrate`,recordArgs:!1}},docs:{load:()=>import(`./docs-BI2ZoYmm.mjs`),telemetry:{command:`docs`,recordArgs:!1}},cli:{load:()=>import(`./cli-dk6sJFtN.mjs`),telemetry:{command:`cli`,recordArgs:!1}},schema:{load:()=>import(`./schema-BX822YfT.mjs`),telemetry:{command:`schema`,classification:{safeFlags:[`list`]}}},tools:{load:()=>import(`./tools-aVtEAIvu.mjs`),telemetry:{command:`tools`,classification:{safeFlags:[`text`]}}}};function _r(){return mr().map(e=>({...e,...gr[e.dir]}))}function vr(e,t){let n=t.alias;return[e,...Array.isArray(n)?n:n===void 0?[]:[n]]}function yr(e){return e.length===1?`-${e}`:`--${e}`}const br=new Set(g),xr=Object.entries({...h,..._}).filter(([,e])=>!e.hidden).map(([e,t])=>` ${vr(e,t).sort((e,t)=>e.length-t.length).map(yr).join(`, `)}`).join(`
119
119
  `);function Sr(e,t){return Object.entries(h).some(([n,r])=>r.type===`boolean`&&t!==`true`&&t!==`false`?!1:vr(n,r).some(t=>e===yr(t)))}const Cr=_r().map(e=>v(o(e.command,e.describe,e.load,e.telemetry),e.dryRun)),wr=new Set(mr().map(hr));function Tr(e){return l().isAgentic?`=== STOP: AGENT COMMAND DISCOVERY ===
120
120
  AGENTS: Do not explore commands by chaining nested --help calls.
121
121
  Your first port of call and the best way to discover commands is:
@@ -127,7 +127,7 @@ Run \`<discovered command> --help\` for detailed command help.
127
127
  For API request details, replace the result's leading \`cf\` with \`cf schema\`.
128
128
  For Cloudflare documentation, guides, and examples, use cf docs search "<question>".
129
129
  It returns ranked JSON results. Fetch a result's URL with Accept: text/markdown to read the full page.
130
- === END AGENT COMMAND DISCOVERY ===\n${e}`:e}function Er(e,t){return Tr(fr(e,t))}async function Dr(e=!1){if(!process.stderr.isTTY||e||u(process.argv.slice(2))||Ar()===`complete`)return;let{isCI:t}=await import(`./interactive-CHcvofEp.mjs`);if(t)return;let{readState:n,updateState:r}=await import(`./state-xUh3Z77T.mjs`);if(n().completions?.prompted)return;r({completions:{prompted:!0}});let{log:i}=await import(`./log-DBAHla_W.mjs`);i.info(`Tip: run ${c.code(`cf complete <bash|zsh|fish|powershell>`)} to install shell completions.`)}let Or;function kr(){return Or??=import(`./telemetry-CtQWhsmy.mjs`),Or}function Ar(e=process.argv.slice(2)){return jr(e,1)[0]}function jr(e=process.argv.slice(2),t=2){let n=[];for(let r=0;r<e.length&&n.length<t;r++){let t=e[r];if(t===void 0||t===`--`)break;Sr(t,e[r+1])?r++:t.startsWith(`-`)||n.push(t)}return n}async function Mr(e=!1){if(!process.stderr.isTTY)return;let t=process.argv.slice(2);if(e||u(t)||t.includes(`--help`)||t.includes(`-h`)||Ur(jr(t).join(` `)))return;let{getBannerLastShown:n,getTelemetryDispatcher:r,setBannerLastShown:i}=await kr();if(!r().enabled||n()===C)return;let{log:a}=await import(`./log-DBAHla_W.mjs`);a.info(`Cloudflare collects anonymous cf usage telemetry. Run ${c.code(`cf cli telemetry disable`)} to opt out.`),i(C)}async function Nr(){try{await Promise.race([x(),ie(1e3,void 0,{ref:!1})])}catch{}}const Pr=/^Unknown commands?: /,Fr=/^Did you mean (.+)\?$/,Ir=`You need to specify a command`;function Lr(e){return e instanceof Error&&e.message.startsWith(`Unknown command:`)}function Rr(e,t){let n=Fr.exec(t)?.[1],r;if(n!==void 0)r=`suggested-command`;else if(Pr.test(t))r=`unknown-subcommand`;else if(t===Ir)r=`missing-command`;else return;try{let t=e,i=t.getInternalMethods(),a=i.getContext().commands,o=i.getCommandInstance().getCommands(),s=t.parsed?t.parsed.argv?._:void 0;if(!Array.isArray(a)||!a.every(e=>typeof e==`string`)||!Array.isArray(o))return;let c=a.length>0&&o.length===0;return{kind:r===`unknown-subcommand`&&c?`surplus-positional`:r,knownCommand:a,knownCommandIsLeaf:c,unknownTokens:Array.isArray(s)?s.slice(a.length).map(String):[],...n===void 0?{}:{suggestedCommand:n}}}catch{return}}function zr(e){try{let t=e.getInternalMethods().getContext().commands;return!Array.isArray(t)||t.length===0||!t.every(e=>typeof e==`string`)?void 0:t.join(` `)}catch{return}}function Br(e){let t=e,n=t.parsed;if(!n||n.argv.help!==!0)return[];let{commands:r,fullCommands:i}=t.getInternalMethods().getContext();if(!Array.isArray(r)||!Array.isArray(i))return[];let a=i.at(-1),o=typeof a==`string`?a.match(/(?:<[^>]+>|\[[^\]]+\])/g)??[]:[];return o.some(e=>e.slice(1,-1).endsWith(`..`))?[]:n.argv._.slice(r.length+o.length).map(String)}var Vr=class extends Error{helpCommand;constructor(e,t){super(e),this.helpCommand=t}};function Hr(e){return`cf${e?` ${e}`:``} --help`}function Ur(e){let[t,n]=e.split(` `);return t===`complete`||t===`cli`&&n===`telemetry`}function Wr(e){let[t,...n]=e.unknownTokens,r=e.suggestedCommand??t;return[...e.knownCommand,...r===void 0?[]:[r],...n].join(` `).toLowerCase()}async function Gr(e,t,n){if(re()||e instanceof d)return;let r=Lr(e)||n?.knownCommand.length===0,i=r?void 0:t;if(!(i===void 0&&!r||Ur(i??jr().join(` `))||n!==void 0&&Ur(Wr(n))))try{let{getTelemetryDispatcher:t,UNKNOWN_COMMAND_EVENT:r}=await kr(),{sanitizeError:a}=await import(`./error-sanitization-D069tpKk.mjs`),o=t();if(!o.enabled)return;let s=n?await Kr(n):{argsUsed:[],argsCombination:``},c={command:i??r,sanitizedArgs:{},...s};o.sendCommandEvent(`cf command started`,c),o.sendCommandEvent(`cf command finished`,{...c,outcome:`error`,durationMs:0,...a(e)})}catch{}}async function Kr(e){let{loadCommandVocabulary:t,sanitizeCommandResolution:n}=await import(`./command-resolution-DAQ4PWUt.mjs`);return n(e,st(process.argv),t(Object.keys(h)))}async function qr(e){if(e&&!Ur(e))try{let{getTelemetryDispatcher:t}=await kr();t().sendAdhocEvent(`cf help shown`,{command:e})}catch{}}function Jr(e){let t=process.argv.slice(2),n=t.indexOf(`--`),r=n===-1?t:t.slice(0,n);return!r.includes(`--version`)&&!r.includes(`-v`)?!1:(ne(C,{quiet:u(r),update:e}),console.log(C),!0)}function Yr(e){if(process.argv.slice(2).length>0)return!1;let t=[S(C,e),``,`The Cloudflare CLI — manage your account, zones, and developer platform.`,``,`${c.bold(`Get started:`)}`,` ${c.code(`cf auth login`)} ${c.muted(`Authenticate with Cloudflare`)}`,` ${c.code(`cf --help`)} ${c.muted(`Browse all commands`)}`,` ${c.code(`cf <command> --help`)} ${c.muted(`Per-command help`)}`,` ${c.code(`cf migrate`)} ${c.muted(`Migrate a Wrangler project to cf`)}`,` ${c.code(`cf complete bash`)} ${c.muted(`Install shell completions`)}`,``,`${c.bold(`Docs:`)} ${c.brand(`https://developers.cloudflare.com/`)}`,``];return console.log(t.join(`
131
- `)),!0}function Xr(e=!1,t){let n=process.argv.slice(2),r=n.indexOf(`--`),i=r===-1?n:n.slice(0,r);i.length!==0&&(i.includes(`--version`)||i.includes(`-v`)||Ar(i)!==`complete`&&ne(C,{quiet:e||u(i),update:t}))}async function Zr(){let e=process.argv.slice(2);if(u(e)||Ar(e)===`complete`||(e.length===0?process.stdout.isTTY!==!0:process.stderr.isTTY!==!0))return;let{isCI:t}=await import(`./interactive-CHcvofEp.mjs`);if(t)return;let{getUpdateNotice:n,maybeStartBackgroundUpdateCheck:r}=await import(`./update-check-0kpbTLvy.mjs`),i=!1;return{notice:n(C),start(){i||(i=!0,r())}}}function Qr(e,t={}){let{onCommandResolved:n,onCommandResolutionFailed:r,onHelpShown:i,updateCheck:a}=t,o,s=e=>c.brand(e),l=e.indexOf(`--`),u=(l===-1?e:e.slice(0,l)).some(e=>e===`--local`||e===`--no-local`||e.startsWith(`--local=`)),d=lr(e).scriptName(`cf`).parserConfiguration({"sort-commands":!0}).wrap(process.stdout.columns||80).usage(`$0 <command> [options]`).usage(`
132
- The Cloudflare CLI - manage your Cloudflare resources`).updateStrings({"Commands:":s(`Commands`),"Options:":s(`Options`),"Positionals:":s(`Positionals`),"Examples:":s(`Examples`)}).help(`help`,_.help.description).alias(_.help.alias,`help`).options(h).group([...Object.keys(h),...Object.keys(_)],s(`Global flags`));for(let e of Cr)d.command(e);for(let e of ur)e.hideCommand?d.command({...e.command,describe:!1}):d.command(e.command);d.middleware(async e=>{Xr(e.quiet,a?.notice),a?.start();let t=zr(d);t!==void 0&&n?.(t);try{await Mr(e.quiet)}catch{}try{await Dr(e.quiet)}catch{}y(e.mode);let r=String(e._[0]??``),i=e.persistTo??e[`persist-to`];if(!e.help&&(r===`dev`&&u||e.local&&wr.has(r)))throw Error(`--local is not supported by cf ${r}.`);if(!e.help&&r===`dev`&&i!==void 0)throw Error(`--persist-to is not supported by cf dev.`);if(i===``)throw Error(`--persist-to requires a non-empty directory.`);if(i!==void 0&&!e.local)throw Error(`--persist-to can only be used with --local.`);if(e[`temporary-account`]&&e.local)throw Error(`--temporary-account cannot be used with --local.`);let s=e[`event-code`];if(s!==void 0&&!e[`temporary-account`])throw Error(`--event-code requires --temporary-account.`);if(t!==void 0&&f(t,e.local)&&(o=await p(e)),!e.local){let{resolveProfile:t,setTemporaryAccountRequested:n}=await import(`./oauth-CQRlNgt5.mjs`);n(e[`temporary-account`],s===void 0?void 0:{eventCode:s});let r=t(e.profile);te(r)}}).demandCommand(1,`You need to specify a command`).strictCommands().strictOptions().recommendCommands().version(`version`,_.version.description,C).alias(_.version.alias,`version`).epilogue(`For more information, visit https://developers.cloudflare.com/`).exitProcess(!1).fail((e,t,o)=>{Xr(!1,a?.notice),a?.start();let s=zr(d);if(s!==void 0&&n?.(s),t)throw t;if(e===`You need to specify a command`&&d.parsed&&Object.keys(d.parsed.argv).some(e=>e!==`_`&&e!==`$0`&&!br.has(e.replace(/[A-Z]/g,e=>`-${e.toLowerCase()}`))))return;let c=Fr.exec(e)?.[1];if(c&&!o.getCommands().some(([e])=>e.split(` `)[0]===c))return;if(e===`Please specify a subcommand`){s!==void 0&&i?.(s),o.showHelp(`log`);return}let l=new Vr(e,Hr(s)),u=Rr(d,e)??(s===void 0&&/^Unknown arguments?:/.test(e)?Rr(d,Ir):void 0);throw u&&r?.(u,l),l});let m=d.showHelp.bind(d);d.showHelp=e=>{let t=typeof e==`function`?Br(d):[];if(t.length>0){let e=new Vr(`Unknown command: ${t[0]}`,Hr(zr(d))),n=Rr(d,e.message);throw n&&r?.({...n,unknownTokens:t},e),e}return m(t=>{let r=zr(d);r!==void 0&&n?.(r),i?.(r??`cf`);let a=Er(t,r);typeof e==`function`?e(a):e===`log`?console.log(a):console.error(a)})};let g=d.getHelp.bind(d);return d.getHelp=async()=>Er(await g(),zr(d)),{cli:d,dispose:()=>{o?.(),o=void 0}}}async function $r(e){let t=process.argv;process.argv=[`node`,`cf`,...e];try{await ei()}finally{process.argv=t}}async function ei(){y(void 0),b();let e=await Zr();if(Jr(e?.notice)||Yr(e?.notice))throw e?.start(),new d(0);let t,n,r,{cli:i,dispose:a}=Qr(st(process.argv),{onCommandResolved:e=>{t=e},onCommandResolutionFailed:(e,t)=>{n={failure:e,error:t}},onHelpShown:e=>{r=e},updateCheck:e}),o=st(process.argv),s=o.indexOf(`--`),l=s===-1?o:o.slice(0,s);if(l.includes(`--help`)||l.includes(`-h`)){Xr(!1,e?.notice),e?.start();try{await Dr()}catch{}}try{await i.parse(st(process.argv)),await qr(r)}catch(e){if(e instanceof d)throw e;if(t===void 0){try{await Mr()}catch{}try{await Dr()}catch{}}let r=n!==void 0&&n.error===e?n.failure:void 0;await Gr(e,t??zr(i),r);let a=m(e);throw e instanceof Vr&&(e.helpCommand===`cf --help`&&/^Unknown arguments?:/.test(e.message)&&console.error(`\nGlobal flags:\n${xr}`),console.error(`
130
+ === END AGENT COMMAND DISCOVERY ===\n${e}`:e}function Er(e,t){return Tr(fr(e,t))}async function Dr(e=!1){if(!process.stderr.isTTY||e||u(process.argv.slice(2))||Ar()===`complete`)return;let{isCI:t}=await import(`./interactive-CHcvofEp.mjs`);if(t)return;let{readState:n,updateState:r}=await import(`./state-xUh3Z77T.mjs`);if(n().completions?.prompted)return;r({completions:{prompted:!0}});let{log:i}=await import(`./log-DBAHla_W.mjs`);i.info(`Tip: run ${c.code(`cf complete <bash|zsh|fish|powershell>`)} to install shell completions.`)}let Or;function kr(){return Or??=import(`./telemetry-BCQMv5dO.mjs`),Or}function Ar(e=process.argv.slice(2)){return jr(e,1)[0]}function jr(e=process.argv.slice(2),t=2){let n=[];for(let r=0;r<e.length&&n.length<t;r++){let t=e[r];if(t===void 0||t===`--`)break;Sr(t,e[r+1])?r++:t.startsWith(`-`)||n.push(t)}return n}async function Mr(e=!1){if(!process.stderr.isTTY)return;let t=process.argv.slice(2);if(e||u(t)||t.includes(`--help`)||t.includes(`-h`)||Ur(jr(t).join(` `)))return;let{getBannerLastShown:n,getTelemetryDispatcher:r,setBannerLastShown:i}=await kr();if(!r().enabled||n()===C)return;let{log:a}=await import(`./log-DBAHla_W.mjs`);a.info(`Cloudflare collects anonymous cf usage telemetry. Run ${c.code(`cf cli telemetry disable`)} to opt out.`),i(C)}async function Nr(){try{await Promise.race([x(),ie(1e3,void 0,{ref:!1})])}catch{}}const Pr=/^Unknown commands?: /,Fr=/^Did you mean (.+)\?$/,Ir=`You need to specify a command`;function Lr(e){return e instanceof Error&&e.message.startsWith(`Unknown command:`)}function Rr(e,t){let n=Fr.exec(t)?.[1],r;if(n!==void 0)r=`suggested-command`;else if(Pr.test(t))r=`unknown-subcommand`;else if(t===Ir)r=`missing-command`;else return;try{let t=e,i=t.getInternalMethods(),a=i.getContext().commands,o=i.getCommandInstance().getCommands(),s=t.parsed?t.parsed.argv?._:void 0;if(!Array.isArray(a)||!a.every(e=>typeof e==`string`)||!Array.isArray(o))return;let c=a.length>0&&o.length===0;return{kind:r===`unknown-subcommand`&&c?`surplus-positional`:r,knownCommand:a,knownCommandIsLeaf:c,unknownTokens:Array.isArray(s)?s.slice(a.length).map(String):[],...n===void 0?{}:{suggestedCommand:n}}}catch{return}}function zr(e){try{let t=e.getInternalMethods().getContext().commands;return!Array.isArray(t)||t.length===0||!t.every(e=>typeof e==`string`)?void 0:t.join(` `)}catch{return}}function Br(e){let t=e,n=t.parsed;if(!n||n.argv.help!==!0)return[];let{commands:r,fullCommands:i}=t.getInternalMethods().getContext();if(!Array.isArray(r)||!Array.isArray(i))return[];let a=i.at(-1),o=typeof a==`string`?a.match(/(?:<[^>]+>|\[[^\]]+\])/g)??[]:[];return o.some(e=>e.slice(1,-1).endsWith(`..`))?[]:n.argv._.slice(r.length+o.length).map(String)}var Vr=class extends Error{helpCommand;constructor(e,t){super(e),this.helpCommand=t}};function Hr(e){return`cf${e?` ${e}`:``} --help`}function Ur(e){let[t,n]=e.split(` `);return t===`complete`||t===`cli`&&n===`telemetry`}function Wr(e){let[t,...n]=e.unknownTokens,r=e.suggestedCommand??t;return[...e.knownCommand,...r===void 0?[]:[r],...n].join(` `).toLowerCase()}async function Gr(e,t,n){if(re()||e instanceof d)return;let r=Lr(e)||n?.knownCommand.length===0,i=r?void 0:t;if(!(i===void 0&&!r||Ur(i??jr().join(` `))||n!==void 0&&Ur(Wr(n))))try{let{getTelemetryDispatcher:t,UNKNOWN_COMMAND_EVENT:r}=await kr(),{sanitizeError:a}=await import(`./error-sanitization-D069tpKk.mjs`),o=t();if(!o.enabled)return;let s=n?await Kr(n):{argsUsed:[],argsCombination:``},c={command:i??r,sanitizedArgs:{},...s};o.sendCommandEvent(`cf command started`,c),o.sendCommandEvent(`cf command finished`,{...c,outcome:`error`,durationMs:0,...a(e)})}catch{}}async function Kr(e){let{loadCommandVocabulary:t,sanitizeCommandResolution:n}=await import(`./command-resolution-DAQ4PWUt.mjs`);return n(e,st(process.argv),t(Object.keys(h)))}async function qr(e){if(e&&!Ur(e))try{let{getTelemetryDispatcher:t}=await kr();t().sendAdhocEvent(`cf help shown`,{command:e})}catch{}}function Jr(e){let t=process.argv.slice(2),n=t.indexOf(`--`),r=n===-1?t:t.slice(0,n);return!r.includes(`--version`)&&!r.includes(`-v`)?!1:(ne(C,{quiet:u(r),update:e}),console.log(C),!0)}function Yr(e){if(process.argv.slice(2).length>0)return!1;let t=[S(C,e),``,`The Cloudflare CLI — manage your account, zones, and developer platform.`,``,`${c.bold(`Get started:`)}`,` ${c.code(`cf auth login`)} ${c.muted(`Authenticate with Cloudflare`)}`,` ${c.code(`cf --help`)} ${c.muted(`Browse all commands`)}`,` ${c.code(`cf <command> --help`)} ${c.muted(`Per-command help`)}`,` ${c.code(`cf migrate`)} ${c.muted(`Migrate a Wrangler project to cf`)}`,` ${c.code(`cf complete bash`)} ${c.muted(`Install shell completions`)}`,``,`${c.bold(`Docs:`)} ${c.brand(`https://developers.cloudflare.com/`)}`,``];return console.log(t.join(`
131
+ `)),!0}function Xr(e=!1,t){let n=process.argv.slice(2),r=n.indexOf(`--`),i=r===-1?n:n.slice(0,r);i.length!==0&&(i.includes(`--version`)||i.includes(`-v`)||Ar(i)!==`complete`&&ne(C,{quiet:e||u(i),update:t}))}async function Zr(){let e=process.argv.slice(2);if(u(e)||Ar(e)===`complete`||(e.length===0?process.stdout.isTTY!==!0:process.stderr.isTTY!==!0))return;let{isCI:t}=await import(`./interactive-CHcvofEp.mjs`);if(t)return;let{getUpdateNotice:n,maybeStartBackgroundUpdateCheck:r}=await import(`./update-check-Buyg_Zyb.mjs`),i=!1;return{notice:n(C),start(){i||(i=!0,r())}}}function Qr(e,t={}){let{onCommandResolved:n,onCommandResolutionFailed:r,onHelpShown:i,updateCheck:a}=t,o,s=e=>c.brand(e),l=e.indexOf(`--`),u=(l===-1?e:e.slice(0,l)).some(e=>e===`--local`||e===`--no-local`||e.startsWith(`--local=`)),d=lr(e).scriptName(`cf`).parserConfiguration({"sort-commands":!0}).wrap(process.stdout.columns||80).usage(`$0 <command> [options]`).usage(`
132
+ The Cloudflare CLI - manage your Cloudflare resources`).updateStrings({"Commands:":s(`Commands`),"Options:":s(`Options`),"Positionals:":s(`Positionals`),"Examples:":s(`Examples`)}).help(`help`,_.help.description).alias(_.help.alias,`help`).options(h).group([...Object.keys(h),...Object.keys(_)],s(`Global flags`));for(let e of Cr)d.command(e);for(let e of ur)e.hideCommand?d.command({...e.command,describe:!1}):d.command(e.command);d.middleware(async e=>{Xr(e.quiet,a?.notice),a?.start();let t=zr(d);t!==void 0&&n?.(t);try{await Mr(e.quiet)}catch{}try{await Dr(e.quiet)}catch{}y(e.mode);let r=String(e._[0]??``),i=e.persistTo??e[`persist-to`];if(!e.help&&(r===`dev`&&u||e.local&&wr.has(r)))throw Error(`--local is not supported by cf ${r}.`);if(!e.help&&r===`dev`&&i!==void 0)throw Error(`--persist-to is not supported by cf dev.`);if(i===``)throw Error(`--persist-to requires a non-empty directory.`);if(i!==void 0&&!e.local)throw Error(`--persist-to can only be used with --local.`);if(e[`temporary-account`]&&e.local)throw Error(`--temporary-account cannot be used with --local.`);let s=e[`event-code`];if(s!==void 0&&!e[`temporary-account`])throw Error(`--event-code requires --temporary-account.`);if(t!==void 0&&f(t,e.local)&&(o=await p(e)),!e.local){let{resolveProfile:t,setTemporaryAccountRequested:n}=await import(`./oauth-Dp9VNyOf.mjs`);n(e[`temporary-account`],s===void 0?void 0:{eventCode:s});let r=t(e.profile);te(r)}}).demandCommand(1,`You need to specify a command`).strictCommands().strictOptions().recommendCommands().version(`version`,_.version.description,C).alias(_.version.alias,`version`).epilogue(`For more information, visit https://developers.cloudflare.com/`).exitProcess(!1).fail((e,t,o)=>{Xr(!1,a?.notice),a?.start();let s=zr(d);if(s!==void 0&&n?.(s),t)throw t;if(e===`You need to specify a command`&&d.parsed&&Object.keys(d.parsed.argv).some(e=>e!==`_`&&e!==`$0`&&!br.has(e.replace(/[A-Z]/g,e=>`-${e.toLowerCase()}`))))return;let c=Fr.exec(e)?.[1];if(c&&!o.getCommands().some(([e])=>e.split(` `)[0]===c))return;if(e===`Please specify a subcommand`){s!==void 0&&i?.(s),o.showHelp(`log`);return}let l=new Vr(e,Hr(s)),u=Rr(d,e)??(s===void 0&&/^Unknown arguments?:/.test(e)?Rr(d,Ir):void 0);throw u&&r?.(u,l),l});let m=d.showHelp.bind(d);d.showHelp=e=>{let t=typeof e==`function`?Br(d):[];if(t.length>0){let e=new Vr(`Unknown command: ${t[0]}`,Hr(zr(d))),n=Rr(d,e.message);throw n&&r?.({...n,unknownTokens:t},e),e}return m(t=>{let r=zr(d);r!==void 0&&n?.(r),i?.(r??`cf`);let a=Er(t,r);typeof e==`function`?e(a):e===`log`?console.log(a):console.error(a)})};let g=d.getHelp.bind(d);return d.getHelp=async()=>Er(await g(),zr(d)),{cli:d,dispose:()=>{o?.(),o=void 0}}}async function $r(e){let t=process.argv;process.argv=[`node`,`cf`,...e];try{await ei()}finally{process.argv=t}}async function ei(){y(void 0),b();let e=await Zr();if(Jr(e?.notice)||Yr(e?.notice))throw e?.start(),new d(0);let t,n,r,{cli:i,dispose:a}=Qr(st(process.argv),{onCommandResolved:e=>{t=e},onCommandResolutionFailed:(e,t)=>{n={failure:e,error:t}},onHelpShown:e=>{r=e},updateCheck:e}),o=st(process.argv),s=o.indexOf(`--`),l=s===-1?o:o.slice(0,s);if(l.includes(`--help`)||l.includes(`-h`)){Xr(!1,e?.notice),e?.start();try{await Dr()}catch{}}try{await i.parse(st(process.argv)),await qr(r)}catch(e){if(e instanceof d)throw e;if(t===void 0){try{await Mr()}catch{}try{await Dr()}catch{}}let r=n!==void 0&&n.error===e?n.failure:void 0;await Gr(e,t??zr(i),r);let a=m(e);throw e instanceof Vr&&(e.helpCommand===`cf --help`&&/^Unknown arguments?:/.test(e.message)&&console.error(`\nGlobal flags:\n${xr}`),console.error(`
133
133
  `+c.italic(`For more information, run ${c.code(e.helpCommand)}`))),a}finally{a(),await ee(),await Nr()}}export{ei as n,$r as r,Qr as t};
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env node
2
- import"./api-Dnt6lRJG.mjs";import{t as e}from"./path-DRw6Y-nd.mjs";import{n as t}from"./auth-cj71dGxS.mjs";import{o as n,r,t as i}from"./body-parser-HN91kAf0.mjs";import{a,i as o,t as s}from"./context-DlFhI9cN.mjs";import{t as c}from"./dry-run-mrA7FFLR.mjs";import{n as l}from"./input-validation-D7z60HJH.mjs";import{t as u}from"./output-PRKYaJuo.mjs";import{t as d}from"./run-DAg7dfIW.mjs";import{t as f}from"./progress-AML-AVs4.mjs";import"./telemetry-DDs3zhdw.mjs";import{a as p,i as m,n as h}from"./prompt-Bnon9lfK.mjs";import{t as g}from"./local-B3zt9PXR.mjs";var _={method:`POST`,path:t=>e`/zones/${t.zone_id}/ssl/analyze`,body:`json`};function v(e){return e.usage(`$0 ssl analyze create
2
+ import"./api-Dnt6lRJG.mjs";import{t as e}from"./path-DRw6Y-nd.mjs";import{n as t}from"./auth-NIRm11Ab.mjs";import{o as n,r,t as i}from"./body-parser-HN91kAf0.mjs";import{a,i as o,t as s}from"./context-CroqTqbk.mjs";import{t as c}from"./dry-run-mrA7FFLR.mjs";import{n as l}from"./input-validation-D7z60HJH.mjs";import{t as u}from"./output-PRKYaJuo.mjs";import{t as d}from"./run-DhU17ztU.mjs";import{t as f}from"./progress-DQfZZwit.mjs";import"./telemetry-CruYXv5e.mjs";import{a as p,i as m,n as h}from"./prompt-e6K5lhdE.mjs";import{t as g}from"./local-B3zt9PXR.mjs";var _={method:`POST`,path:t=>e`/zones/${t.zone_id}/ssl/analyze`,body:`json`};function v(e){return e.usage(`$0 ssl analyze create
3
3
 
4
4
  Returns the set of hostnames, the signature algorithm, and the expiration date of the certificate.`).option(`bundle-method`,{type:`string`,description:`A ubiquitous bundle has the highest probability of being verified everywhere, even by clients using outdated or unusual trust stores. An optimal bundle uses the shortest chain and newest intermediates. And the force bundle verifies the chain, but does not otherwise modify it.`,choices:[`ubiquitous`,`optimal`,`force`],default:`ubiquitous`}).coerce(`bundle-method`,e=>l(e,`bundle-method`,`text`)).option(`certificate`,{type:`string`,description:`The zone's SSL certificate or certificate and the intermediate(s).`}).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 ee={command:`create`,describe:`Analyze Certificate`,builder:v,handler:async e=>d({command:`ssl analyze create`,classification:{safeFlags:[`bundle-method`,`dry-run`]}},e,async()=>{if(e.dryRun){c({command:`cf ssl analyze create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/zones/${e.zone??e.zoneId??`<zone>`}/ssl/analyze`,pathParams:{"zone-id":String(e.zone??e[`zone-id`]??``)},bodyKind:`json`,body:e.body===void 0?i({bundle_method:e[`bundle-method`],certificate:l(e.certificate,`certificate`,`text`)}):r(e.body)});return}let n=e.body===void 0?void 0:r(e.body),a=await t(e),s=await o({zone:e.zone},a,{quiet:e.quiet});if(e.zoneId=s,e.body!==void 0){let e=n,t=await f(`Creating`,async()=>a.send(_,{body:e,zone_id:s}));u(t,{successLabel:`Created`});return}let d=i({bundle_method:e[`bundle-method`],certificate:l(e.certificate,`certificate`,`text`)}),p=await f(`Creating`,async()=>a.send(_,{body:d,zone_id:s}));u(p,{successLabel:`Created`})})},te={command:`analyze`,describe:`Operations for analyze`,builder:e=>e.command(ee).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var y={method:`PATCH`,path:t=>e`/zones/${t.zone_id}/settings/auto_origin_tls_kex`,body:`json`};function b(e){return e.usage('$0 ssl auto-origin-tls-kex edit\n\nEnable or disable Auto-Origin TLS KEX selection for the zone by sending `{"enabled": true}` or `{"enabled": false}`. When enabled, Cloudflare runs a periodic scan of the zone\'s origins to determine the preferred key-exchange algorithm and writes that preference to the edge so it is sent first in the TLS ClientHello to the origin.').option(`enabled`,{type:`boolean`,description:`Controls enablement of Auto-Origin TLS KEX selection for the zone.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Update enablement of Auto-Origin TLS KEX selection.`})}const ne={command:`edit`,describe:`Patch Auto-Origin TLS KEX enrollment status for the given zone`,builder:b,handler:async e=>d({command:`ssl auto-origin-tls-kex edit`,classification:{safeFlags:[`enabled`,`dry-run`]}},e,async()=>{if(e.dryRun){c({command:`cf ssl auto-origin-tls-kex edit`,method:`PATCH`,url:`https://api.cloudflare.com/client/v4/zones/${e.zone??e.zoneId??`<zone>`}/settings/auto_origin_tls_kex`,pathParams:{"zone-id":String(e.zone??e[`zone-id`]??``)},bodyKind:`json`,body:e.body===void 0?i({enabled:e.enabled}):r(e.body)});return}let n=e.body===void 0?void 0:r(e.body),a=await t(e),s=await o({zone:e.zone},a,{quiet:e.quiet});if(e.zoneId=s,e.body!==void 0){let e=n,t=await f(`Updating`,async()=>a.send(y,{body:e,zone_id:s}));u(t,{successLabel:`Updated`});return}if(e.enabled===void 0)throw Error(`--enabled is required (or pass --body with this field set).`);let l=i({enabled:e.enabled}),d=await f(`Updating`,async()=>a.send(y,{body:l,zone_id:s}));u(d,{successLabel:`Updated`})})};var re={method:`GET`,path:t=>e`/zones/${t.zone_id}/settings/auto_origin_tls_kex`};function ie(e){return e.usage(`$0 ssl auto-origin-tls-kex get
5
5
 
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env node
2
- import{r as e,t}from"./rolldown-runtime-BNtqjh-B.mjs";import{r as n}from"./chunk-U6NEESU5-DqqRCaWH.mjs";import{a as r,o as i}from"./dotenv-DKRemNCH.mjs";import{o as a}from"./autoconfig-DoLQ5ct8.mjs";import{$ as o,A as s,B as c,C as l,E as u,F as d,H as f,I as p,K as m,S as h,T as g,V as _,Z as v,at as y,b,et as x,f as S,n as ee,o as C,ot as te,p as w,q as T,r as ne,u as E,x as re,y as ie}from"./dist-DwxlJ9Ms.mjs";import{D,M as ae,N as O,O as oe,S as se,T as ce,_ as le,a as ue,d as de,g as fe,h as pe,i as me,j as he,l as ge,m as _e,n as ve,p as ye,r as be,s as k,t as xe,v as Se,w as Ce,y as we}from"./chunk-AAQI36FL-e6E5HW1g.mjs";import{n as Te,r as Ee,t as De}from"./project-settings-D_S-UC8I.mjs";import{a as Oe,c as ke,i as Ae,o as A,r as je,s as Me,t as Ne}from"./chunk-DSGVRFIS-CeCM3XGQ.mjs";import{t as Pe}from"./log-Brx-wjJW.mjs";import{t as Fe}from"./context-DlFhI9cN.mjs";import{t as Ie}from"./auth-token-D9MnaZ-L.mjs";import{C as Le,D as Re,E as ze,S as Be,T as Ve,_ as He,a as Ue,b as We,c as Ge,f as Ke,g as qe,i as Je,l as Ye,r as Xe,t as Ze,u as Qe,x as $e,y as et}from"./interactive-DCbIwYxy.mjs";import{C as tt,D as nt,_ as rt,a as it,c as at,g as ot,i as st,m as ct,n as lt,o as ut,r as dt,w as ft,x as pt,y as mt}from"./deploy-context-BYw6gbl-.mjs";import{c as ht}from"./build-DiEXOgHH.mjs";import{createRequire as gt}from"node:module";import{setTimeout as _t}from"node:timers/promises";import{createReadStream as vt,mkdirSync as yt,readFileSync as bt,writeFileSync as xt}from"node:fs";import*as St from"node:path";import Ct,{extname as wt,isAbsolute as Tt,resolve as Et,sep as Dt}from"node:path";import Ot,{URLSearchParams as kt}from"node:url";import*as At from"node:fs/promises";import{access as jt,readFile as Mt,readdir as Nt,stat as Pt,writeFile as Ft}from"node:fs/promises";import j from"node:assert";import{TextDecoder as It,isDeepStrictEqual as Lt}from"node:util";import{Blob as Rt}from"node:buffer";import{gzipSync as zt}from"node:zlib";import{createHash as Bt}from"node:crypto";import{execSync as Vt}from"node:child_process";import Ht from"node:readline";import{BUILD_OUTPUT_ROOT as Ut,cleanBuildOutputDir as Wt,writeAssets as Gt,writeRootConfig as Kt,writeWorkerConfig as qt}from"@cloudflare/build-output-utils";import{hash as Jt}from"blake3-wasm";import{InputSettingsSchema as Yt,InputWorkerSchema as Xt,convertToWranglerConfig as Zt,loadAndParseConfig as Qt}from"@cloudflare/config";gt(import.meta.url||(typeof __filename==`string`?__filename:`/`));function $t(e=`2000-01-01`,t){let{hasNodejsAlsFlag:n,hasNodejsCompatFlag:r,hasNoNodejsCompatFlag:i,hasNodejsCompatV2Flag:o,hasNoNodejsCompatV2Flag:s,hasExperimentalNodejsCompatV2Flag:c}=en(t),{isNodejsCompatEnabled:l,isNodejsCompatV2Enabled:u}=a(e,t),d=null;return u?d=`v2`:l?d=`v1`:n&&(d=`als`),{mode:d,isNodejsCompatEnabled:l,isNodejsCompatV2Enabled:u,hasNodejsAlsFlag:n,hasNodejsCompatFlag:r,hasNoNodejsCompatFlag:i,hasNodejsCompatV2Flag:o,hasNoNodejsCompatV2Flag:s,hasExperimentalNodejsCompatV2Flag:c}}n($t,`getNodeCompat`);function en(e){return{hasNodejsAlsFlag:e.includes(`nodejs_als`),hasNodejsCompatFlag:e.includes(`nodejs_compat`),hasNoNodejsCompatFlag:e.includes(`no_nodejs_compat`),hasNodejsCompatV2Flag:e.includes(`nodejs_compat_v2`),hasNoNodejsCompatV2Flag:e.includes(`no_nodejs_compat_v2`),hasExperimentalNodejsCompatV2Flag:e.includes(`experimental:nodejs_compat_v2`)}}n(en,`parseNodeCompatibilityFlags`),gt(import.meta.url||(typeof __filename==`string`?__filename:`/`));function tn(){let e=gt(import.meta.url||__filename),t=e.resolve(`@cspotcode/source-map-support`),n=Symbol.for,r=e.cache[t];try{return Symbol.for=e=>(j.strictEqual(e,`source-map-support/sharedData`),Symbol(e)),delete e.cache[t],e(t)}finally{Symbol.for=n,e.cache[t]=r}}n(tn,`getFreshSourceMapSupport`),gt(import.meta.url||(typeof __filename==`string`?__filename:`/`));var M,N,nn,rn,an,on,sn;function cn(e){M=e.logger,N=e.fetchResult,nn=e.fetchListResult,rn=e.fetchPagedListResult,e.fetchKVGetValue,an=e.confirm,on=e.prompt,sn=e.select}A(cn,`initDeployHelpersContext`);var ln=/* @__PURE__ */ t(((e,t)=>{var n=Object.prototype.hasOwnProperty,r=`~`;function i(){}Object.create&&(i.prototype=Object.create(null),new i().__proto__||(r=!1));function a(e,t,n){this.fn=e,this.context=t,this.once=n||!1}function o(e,t,n,i,o){if(typeof n!=`function`)throw TypeError(`The listener must be a function`);var s=new a(n,i||e,o),c=r?r+t:t;return e._events[c]?e._events[c].fn?e._events[c]=[e._events[c],s]:e._events[c].push(s):(e._events[c]=s,e._eventsCount++),e}function s(e,t){--e._eventsCount===0?e._events=new i:delete e._events[t]}function c(){this._events=new i,this._eventsCount=0}c.prototype.eventNames=function(){var e=[],t,i;if(this._eventsCount===0)return e;for(i in t=this._events)n.call(t,i)&&e.push(r?i.slice(1):i);return Object.getOwnPropertySymbols?e.concat(Object.getOwnPropertySymbols(t)):e},c.prototype.listeners=function(e){var t=r?r+e:e,n=this._events[t];if(!n)return[];if(n.fn)return[n.fn];for(var i=0,a=n.length,o=Array(a);i<a;i++)o[i]=n[i].fn;return o},c.prototype.listenerCount=function(e){var t=r?r+e:e,n=this._events[t];return n?n.fn?1:n.length:0},c.prototype.emit=function(e,t,n,i,a,o){var s=r?r+e:e;if(!this._events[s])return!1;var c=this._events[s],l=arguments.length,u,d;if(c.fn){switch(c.once&&this.removeListener(e,c.fn,void 0,!0),l){case 1:return c.fn.call(c.context),!0;case 2:return c.fn.call(c.context,t),!0;case 3:return c.fn.call(c.context,t,n),!0;case 4:return c.fn.call(c.context,t,n,i),!0;case 5:return c.fn.call(c.context,t,n,i,a),!0;case 6:return c.fn.call(c.context,t,n,i,a,o),!0}for(d=1,u=Array(l-1);d<l;d++)u[d-1]=arguments[d];c.fn.apply(c.context,u)}else{var f=c.length,p;for(d=0;d<f;d++)switch(c[d].once&&this.removeListener(e,c[d].fn,void 0,!0),l){case 1:c[d].fn.call(c[d].context);break;case 2:c[d].fn.call(c[d].context,t);break;case 3:c[d].fn.call(c[d].context,t,n);break;case 4:c[d].fn.call(c[d].context,t,n,i);break;default:if(!u)for(p=1,u=Array(l-1);p<l;p++)u[p-1]=arguments[p];c[d].fn.apply(c[d].context,u)}}return!0},c.prototype.on=function(e,t,n){return o(this,e,t,n,!1)},c.prototype.once=function(e,t,n){return o(this,e,t,n,!0)},c.prototype.removeListener=function(e,t,n,i){var a=r?r+e:e;if(!this._events[a])return this;if(!t)return s(this,a),this;var o=this._events[a];if(o.fn)o.fn!==t||i&&!o.once||n&&o.context!==n||s(this,a);else{for(var c=0,l=[],u=o.length;c<u;c++)(o[c].fn!==t||i&&!o[c].once||n&&o[c].context!==n)&&l.push(o[c]);l.length?this._events[a]=l.length===1?l[0]:l:s(this,a)}return this},c.prototype.removeAllListeners=function(e){var t;return e?(t=r?r+e:e,this._events[t]&&s(this,t)):(this._events=new i,this._eventsCount=0),this},c.prototype.off=c.prototype.removeListener,c.prototype.addListener=c.prototype.on,c.prefixed=r,c.EventEmitter=c,t!==void 0&&(t.exports=c)})),un=_(),dn=/* @__PURE__ */ e(ln(),1),fn=class e extends Error{name=`TimeoutError`;constructor(t,n){super(t,n),Error.captureStackTrace?.(this,e)}};const pn=e=>e.reason??new DOMException(`This operation was aborted.`,`AbortError`);function mn(e,t){let{milliseconds:n,fallback:r,message:i,customTimers:a={setTimeout,clearTimeout},signal:o}=t,s,c,l=new Promise((t,l)=>{if(typeof n!=`number`||Math.sign(n)!==1)throw TypeError(`Expected \`milliseconds\` to be a positive number, got \`${n}\``);if(o?.aborted){l(pn(o));return}if(o&&(c=()=>{l(pn(o))},o.addEventListener(`abort`,c,{once:!0})),e.then(t,l),n===1/0)return;let u=new fn;s=a.setTimeout.call(void 0,()=>{if(r)try{t(r())}catch(e){l(e)}else typeof e.cancel==`function`&&e.cancel(),i===!1?t():i instanceof Error?l(i):(u.message=i??`Promise timed out after ${n} milliseconds`,l(u))},n)}).finally(()=>{l.clear(),c&&o&&o.removeEventListener(`abort`,c)});return l.clear=()=>{a.clearTimeout.call(void 0,s),s=void 0},l}function hn(e,t,n){let r=0,i=e.length;for(;i>0;){let a=Math.trunc(i/2),o=r+a;n(e[o],t)<=0?(r=++o,i-=a+1):i=a}return r}var gn=class{#e=[];enqueue(e,t){let{priority:n=0,id:r}=t??{},i={priority:n,id:r,run:e};if(this.size===0||this.#e[this.size-1].priority>=n){this.#e.push(i);return}let a=hn(this.#e,i,(e,t)=>t.priority-e.priority);this.#e.splice(a,0,i)}setPriority(e,t){let n=this.#e.findIndex(t=>t.id===e);if(n===-1)throw ReferenceError(`No promise function with the id "${e}" exists in the queue.`);let[r]=this.#e.splice(n,1);this.enqueue(r.run,{priority:t,id:e})}dequeue(){return this.#e.shift()?.run}filter(e){return this.#e.filter(t=>t.priority===e.priority).map(e=>e.run)}get size(){return this.#e.length}},_n=class extends dn.default{#e;#t;#n=0;#r;#i=!1;#a=!1;#o;#s=0;#c=0;#l;#u;#d;#f;#p=0;#m;#h;#g=1n;#_=/* @__PURE__ */ new Map;timeout;constructor(e){if(super(),e={carryoverIntervalCount:!1,intervalCap:1/0,interval:0,concurrency:1/0,autoStart:!0,queueClass:gn,...e},!(typeof e.intervalCap==`number`&&e.intervalCap>=1))throw TypeError(`Expected \`intervalCap\` to be a number from 1 and up, got \`${e.intervalCap?.toString()??``}\` (${typeof e.intervalCap})`);if(e.interval===void 0||!(Number.isFinite(e.interval)&&e.interval>=0))throw TypeError(`Expected \`interval\` to be a finite number >= 0, got \`${e.interval?.toString()??``}\` (${typeof e.interval})`);if(this.#e=e.carryoverIntervalCount??e.carryoverConcurrencyCount??!1,this.#t=e.intervalCap===1/0||e.interval===0,this.#r=e.intervalCap,this.#o=e.interval,this.#d=new e.queueClass,this.#f=e.queueClass,this.concurrency=e.concurrency,e.timeout!==void 0&&!(Number.isFinite(e.timeout)&&e.timeout>0))throw TypeError(`Expected \`timeout\` to be a positive finite number, got \`${e.timeout}\` (${typeof e.timeout})`);this.timeout=e.timeout,this.#h=e.autoStart===!1,this.#M()}get#v(){return this.#t||this.#n<this.#r}get#y(){return this.#p<this.#m}#b(){this.#p--,this.#p===0&&this.emit(`pendingZero`),this.#E(),this.emit(`next`)}#x(){this.#O(),this.#D(),this.#u=void 0}get#S(){let e=Date.now();if(this.#l===void 0){let t=this.#s-e;if(t<0){if(this.#c>0){let t=e-this.#c;if(t<this.#o)return this.#C(this.#o-t),!0}this.#n=this.#e?this.#p:0}else return this.#C(t),!0}return!1}#C(e){this.#u===void 0&&(this.#u=setTimeout(()=>{this.#x()},e))}#w(){this.#l&&=(clearInterval(this.#l),void 0)}#T(){this.#u&&=(clearTimeout(this.#u),void 0)}#E(){if(this.#d.size===0)return this.#w(),this.emit(`empty`),this.#p===0&&(this.#T(),this.emit(`idle`)),!1;let e=!1;if(!this.#h){let t=!this.#S;if(this.#v&&this.#y){let n=this.#d.dequeue();this.#t||(this.#n++,this.#N()),this.emit(`active`),this.#c=Date.now(),n(),t&&this.#D(),e=!0}}return e}#D(){this.#t||this.#l!==void 0||(this.#l=setInterval(()=>{this.#O()},this.#o),this.#s=Date.now()+this.#o)}#O(){this.#n===0&&this.#p===0&&this.#l&&this.#w(),this.#n=this.#e?this.#p:0,this.#k(),this.#N()}#k(){for(;this.#E(););}get concurrency(){return this.#m}set concurrency(e){if(!(typeof e==`number`&&e>=1))throw TypeError(`Expected \`concurrency\` to be a number from 1 and up, got \`${e}\` (${typeof e})`);this.#m=e,this.#k()}async#A(e){return new Promise((t,n)=>{e.addEventListener(`abort`,()=>{n(e.reason)},{once:!0})})}setPriority(e,t){if(typeof t!=`number`||!Number.isFinite(t))throw TypeError(`Expected \`priority\` to be a finite number, got \`${t}\` (${typeof t})`);this.#d.setPriority(e,t)}async add(e,t={}){return t.id??=(this.#g++).toString(),t={timeout:this.timeout,...t},new Promise((n,r)=>{let i=Symbol(`task-${t.id}`);this.#d.enqueue(async()=>{this.#p++,this.#_.set(i,{id:t.id,priority:t.priority??0,startTime:Date.now(),timeout:t.timeout});try{try{t.signal?.throwIfAborted()}catch(e){throw this.#t||this.#n--,this.#_.delete(i),e}let r=e({signal:t.signal});t.timeout&&(r=mn(Promise.resolve(r),{milliseconds:t.timeout,message:`Task timed out after ${t.timeout}ms (queue has ${this.#p} running, ${this.#d.size} waiting)`})),t.signal&&(r=Promise.race([r,this.#A(t.signal)]));let a=await r;n(a),this.emit(`completed`,a)}catch(e){r(e),this.emit(`error`,e)}finally{this.#_.delete(i),queueMicrotask(()=>{this.#b()})}},t),this.emit(`add`),this.#E()})}async addAll(e,t){return Promise.all(e.map(async e=>this.add(e,t)))}start(){return this.#h&&(this.#h=!1,this.#k()),this}pause(){this.#h=!0}clear(){this.#d=new this.#f,this.#P()}async onEmpty(){this.#d.size!==0&&await this.#j(`empty`)}async onSizeLessThan(e){this.#d.size<e||await this.#j(`next`,()=>this.#d.size<e)}async onIdle(){(this.#p!==0||this.#d.size!==0)&&await this.#j(`idle`)}async onPendingZero(){this.#p!==0&&await this.#j(`pendingZero`)}async onRateLimit(){this.isRateLimited||await this.#j(`rateLimit`)}async onRateLimitCleared(){this.isRateLimited&&await this.#j(`rateLimitCleared`)}async onError(){return new Promise((e,t)=>{let n=e=>{this.off(`error`,n),t(e)};this.on(`error`,n)})}async#j(e,t){return new Promise(n=>{let r=()=>{(!t||t())&&(this.off(e,r),n())};this.on(e,r)})}get size(){return this.#d.size}sizeBy(e){return this.#d.filter(e).length}get pending(){return this.#p}get isPaused(){return this.#h}#M(){this.#t||(this.on(`add`,()=>{this.#d.size>0&&this.#N()}),this.on(`next`,()=>{this.#N()}))}#N(){this.#t||this.#a||(this.#a=!0,queueMicrotask(()=>{this.#a=!1,this.#P()}))}#P(){let e=this.#i,t=!this.#t&&this.#n>=this.#r&&this.#d.size>0;t!==e&&(this.#i=t,this.emit(t?`rateLimit`:`rateLimitCleared`))}get isRateLimited(){return this.#i}get isSaturated(){return this.#p===this.#m&&this.#d.size>0||this.isRateLimited&&this.#d.size>0}get runningTasks(){return[...this.#_.values()].map(e=>({...e}))}};const vn=[`B`,`kB`,`MB`,`GB`,`TB`,`PB`,`EB`,`ZB`,`YB`],yn=[`B`,`KiB`,`MiB`,`GiB`,`TiB`,`PiB`,`EiB`,`ZiB`,`YiB`],bn=[`b`,`kbit`,`Mbit`,`Gbit`,`Tbit`,`Pbit`,`Ebit`,`Zbit`,`Ybit`],xn=[`b`,`kibit`,`Mibit`,`Gibit`,`Tibit`,`Pibit`,`Eibit`,`Zibit`,`Yibit`],Sn=(e,t,n)=>{let r=e;return typeof t==`string`||Array.isArray(t)?r=e.toLocaleString(t,n):(t===!0||n!==void 0)&&(r=e.toLocaleString(void 0,n)),r};function Cn(e,t){if(!Number.isFinite(e))throw TypeError(`Expected a finite number, got ${typeof e}: ${e}`);t={bits:!1,binary:!1,space:!0,...t};let n=t.bits?t.binary?xn:bn:t.binary?yn:vn,r=t.space?` `:``;if(t.signed&&e===0)return` 0${r}${n[0]}`;let i=e<0,a=i?`-`:t.signed?`+`:``;i&&(e=-e);let o;if(t.minimumFractionDigits!==void 0&&(o={minimumFractionDigits:t.minimumFractionDigits}),t.maximumFractionDigits!==void 0&&(o={maximumFractionDigits:t.maximumFractionDigits,...o}),e<1)return a+Sn(e,t.locale,o)+r+n[0];let s=Math.min(Math.floor(t.binary?Math.log(e)/Math.log(1024):Math.log10(e)/3),n.length-1);e/=(t.binary?1024:1e3)**s,o||(e=e.toPrecision(3));let c=Sn(Number(e),t.locale,o),l=n[s];return a+c+r+l}var wn=i();gt(import.meta.url||(typeof __filename==`string`?__filename:`/`));var Tn=Ae({"../../node_modules/.pnpm/ignore@5.3.1/node_modules/ignore/index.js"(e,t){function n(e){return Array.isArray(e)?e:[e]}A(n,`makeArray`);var r=``,i=` `,a=`\\`,o=/^\s+$/,s=/(?:[^\\]|^)\\$/,c=/^\\!/,l=/^\\#/,u=/\r?\n/g,d=/^\.*\/|^\.+$/,f=`/`,p=`node-ignore`;typeof Symbol<`u`&&(p=Symbol.for(`node-ignore`));var m=p,h=/* @__PURE__ */ A((e,t,n)=>Object.defineProperty(e,t,{value:n}),`define`),g=/([0-z])-([0-z])/g,_=/* @__PURE__ */ A(()=>!1,`RETURN_FALSE`),v=/* @__PURE__ */ A(e=>e.replace(g,(e,t,n)=>t.charCodeAt(0)<=n.charCodeAt(0)?e:r),`sanitizeRange`),y=/* @__PURE__ */ A(e=>{let{length:t}=e;return e.slice(0,t-t%2)},`cleanRangeBackSlash`),b=[[/^\uFEFF/,()=>r],[/\\?\s+$/,e=>e.indexOf(`\\`)===0?i:r],[/\\\s/g,()=>i],[/[\\$.|*+(){^]/g,e=>`\\${e}`],[/(?!\\)\?/g,()=>`[^/]`],[/^\//,()=>`^`],[/\//g,()=>`\\/`],[/^\^*\\\*\\\*\\\//,()=>`^(?:.*\\/)?`],[/^(?=[^^])/,/* @__PURE__ */ A(function(){return/\/(?!$)/.test(this)?`^`:`(?:^|\\/)`},`startingReplacer`)],[/\\\/\\\*\\\*(?=\\\/|$)/g,(e,t,n)=>t+6<n.length?`(?:\\/[^\\/]+)*`:`\\/.+`],[/(^|[^\\]+)(\\\*)+(?=.+)/g,(e,t,n)=>t+n.replace(/\\\*/g,`[^\\/]*`)],[/\\\\\\(?=[$.|*+(){^])/g,()=>a],[/\\\\/g,()=>a],[/(\\)?\[([^\]/]*?)(\\*)($|\])/g,(e,t,n,r,i)=>t===a?`\\[${n}${y(r)}${i}`:i===`]`&&r.length%2==0?`[${v(n)}${r}]`:`[]`],[/(?:[^*])$/,e=>/\/$/.test(e)?`${e}$`:`${e}(?=$|\\/$)`],[/(\^|\\\/)?\\\*$/,(e,t)=>`${t?`${t}[^/]+`:`[^/]*`}(?=$|\\/$)`]],x=/* @__PURE__ */ Object.create(null),S=/* @__PURE__ */ A((e,t)=>{let n=x[e];return n||(n=b.reduce((t,n)=>t.replace(n[0],n[1].bind(e)),e),x[e]=n),t?new RegExp(n,`i`):new RegExp(n)},`makeRegex`),ee=/* @__PURE__ */ A(e=>typeof e==`string`,`isString`),C=/* @__PURE__ */ A(e=>e&&ee(e)&&!o.test(e)&&!s.test(e)&&e.indexOf(`#`)!==0,`checkPattern`),te=/* @__PURE__ */ A(e=>e.split(u),`splitPattern`),w=class{static{A(this,`IgnoreRule`)}constructor(e,t,n,r){this.origin=e,this.pattern=t,this.negative=n,this.regex=r}},T=/* @__PURE__ */ A((e,t)=>{let n=e,r=!1;e.indexOf(`!`)===0&&(r=!0,e=e.substr(1)),e=e.replace(c,`!`).replace(l,`#`);let i=S(e,t);return new w(n,e,r,i)},`createRule`),ne=/* @__PURE__ */ A((e,t)=>{throw new t(e)},`throwError`),E=/* @__PURE__ */ A((e,t,n)=>ee(e)?e?!E.isNotRelative(e)||n(`path should be a \`path.relative()\`d string, but got "${t}"`,RangeError):n(`path must not be empty`,TypeError):n(`path must be a string, but got \`${t}\``,TypeError),`checkPath`),re=/* @__PURE__ */ A(e=>d.test(e),`isNotRelative`);E.isNotRelative=re,E.convert=e=>e;var ie=class{static{A(this,`Ignore`)}constructor({ignorecase:e=!0,ignoreCase:t=e,allowRelativePaths:n=!1}={}){h(this,m,!0),this._rules=[],this._ignoreCase=t,this._allowRelativePaths=n,this._initCache()}_initCache(){this._ignoreCache=/* @__PURE__ */ Object.create(null),this._testCache=/* @__PURE__ */ Object.create(null)}_addPattern(e){if(e&&e[m])this._rules=this._rules.concat(e._rules),this._added=!0;else if(C(e)){let t=T(e,this._ignoreCase);this._added=!0,this._rules.push(t)}}add(e){return this._added=!1,n(ee(e)?te(e):e).forEach(this._addPattern,this),this._added&&this._initCache(),this}addPattern(e){return this.add(e)}_testOne(e,t){let n=!1,r=!1;return this._rules.forEach(i=>{let{negative:a}=i;r===a&&n!==r||a&&!n&&!r&&!t||i.regex.test(e)&&(n=!a,r=a)}),{ignored:n,unignored:r}}_test(e,t,n,r){let i=e&&E.convert(e);return E(i,e,this._allowRelativePaths?_:ne),this._t(i,t,n,r)}_t(e,t,n,r){if(e in t)return t[e];if(r||=e.split(f),r.pop(),!r.length)return t[e]=this._testOne(e,n);let i=this._t(r.join(f)+f,t,n,r);return t[e]=i.ignored?i:this._testOne(e,n)}ignores(e){return this._test(e,this._ignoreCache,!1).ignored}createFilter(){return e=>!this.ignores(e)}filter(e){return n(e).filter(this.createFilter())}test(e){return this._test(e,this._testCache,!0)}},D=/* @__PURE__ */ A(e=>new ie(e),`factory`);if(D.isPathValid=/* @__PURE__ */ A(e=>E(e&&E.convert(e),e,_),`isPathValid`),D.default=D,t.exports=D,typeof process<`u`&&(process.env&&process.env.IGNORE_TEST_WIN32||process.platform===`win32`)){E.convert=/* @__PURE__ */ A(e=>/^\\\\\?\\/.test(e)||/["<>|\u0000-\u001F]+/u.test(e)?e:e.replace(/\\/g,`/`),`makePosix`);let e=/^[a-z]:\//i;E.isNotRelative=t=>e.test(t)||re(t)}}}),En=Ae({"../../node_modules/.pnpm/heap@0.2.7/node_modules/heap/lib/heap.js"(e,t){(function(){var n,r,i=Math.floor,a,o,s,c,l,u,d=Math.min,f,p,m,h,g;r=/* @__PURE__ */ A(function(e,t){return e<t?-1:+(e>t)},`defaultCmp`),u=/* @__PURE__ */ A(function(e,t,n,a,o){var s;if(n??=0,o??=r,n<0)throw Error(`lo must be non-negative`);for(a??=e.length;n<a;)s=i((n+a)/2),o(t,e[s])<0?a=s:n=s+1;return[].splice.apply(e,[n,n-n].concat(t)),t},`insort`),s=/* @__PURE__ */ A(function(e,t,n){return n??=r,e.push(t),h(e,0,e.length-1,n)},`heappush`),o=/* @__PURE__ */ A(function(e,t){var n,i;return t??=r,n=e.pop(),e.length?(i=e[0],e[0]=n,g(e,0,t)):i=n,i},`heappop`),l=/* @__PURE__ */ A(function(e,t,n){var i;return n??=r,i=e[0],e[0]=t,g(e,0,n),i},`heapreplace`),c=/* @__PURE__ */ A(function(e,t,n){var i;return n??=r,e.length&&n(e[0],t)<0&&(i=[e[0],t],t=i[0],e[0]=i[1],g(e,0,n)),t},`heappushpop`),a=/* @__PURE__ */ A(function(e,t){var n,a,o,s,c,l;for(t??=r,s=function(){l=[];for(var t=0,n=i(e.length/2);0<=n?t<n:t>n;0<=n?t++:t--)l.push(t);return l}.apply(this).reverse(),c=[],a=0,o=s.length;a<o;a++)n=s[a],c.push(g(e,n,t));return c},`heapify`),m=/* @__PURE__ */ A(function(e,t,n){var i;if(n??=r,i=e.indexOf(t),i!==-1)return h(e,0,i,n),g(e,i,n)},`updateItem`),f=/* @__PURE__ */ A(function(e,t,n){var i,o,s,l,u;if(n??=r,o=e.slice(0,t),!o.length)return o;for(a(o,n),u=e.slice(t),s=0,l=u.length;s<l;s++)i=u[s],c(o,i,n);return o.sort(n).reverse()},`nlargest`),p=/* @__PURE__ */ A(function(e,t,n){var i,s,c,l,f,p,m,h,g;if(n??=r,t*10<=e.length){if(c=e.slice(0,t).sort(n),!c.length)return c;for(s=c[c.length-1],m=e.slice(t),l=0,p=m.length;l<p;l++)i=m[l],n(i,s)<0&&(u(c,i,0,null,n),c.pop(),s=c[c.length-1]);return c}for(a(e,n),g=[],f=0,h=d(t,e.length);0<=h?f<h:f>h;0<=h?++f:--f)g.push(o(e,n));return g},`nsmallest`),h=/* @__PURE__ */ A(function(e,t,n,i){var a,o,s;for(i??=r,a=e[n];n>t&&(s=n-1>>1,o=e[s],i(a,o)<0);)e[n]=o,n=s;return e[n]=a},`_siftdown`),g=/* @__PURE__ */ A(function(e,t,n){var i,a,o,s,c;for(n??=r,a=e.length,c=t,o=e[t],i=2*t+1;i<a;)s=i+1,s<a&&!(n(e[i],e[s])<0)&&(i=s),e[t]=e[i],t=i,i=2*t+1;return e[t]=o,h(e,c,t,n)},`_siftup`),n=function(){e.push=s,e.pop=o,e.replace=l,e.pushpop=c,e.heapify=a,e.updateItem=m,e.nlargest=f,e.nsmallest=p;function e(e){this.cmp=e??r,this.nodes=[]}return A(e,`Heap`),e.prototype.push=function(e){return s(this.nodes,e,this.cmp)},e.prototype.pop=function(){return o(this.nodes,this.cmp)},e.prototype.peek=function(){return this.nodes[0]},e.prototype.contains=function(e){return this.nodes.indexOf(e)!==-1},e.prototype.replace=function(e){return l(this.nodes,e,this.cmp)},e.prototype.pushpop=function(e){return c(this.nodes,e,this.cmp)},e.prototype.heapify=function(){return a(this.nodes,this.cmp)},e.prototype.updateItem=function(e){return m(this.nodes,e,this.cmp)},e.prototype.clear=function(){return this.nodes=[]},e.prototype.empty=function(){return this.nodes.length===0},e.prototype.size=function(){return this.nodes.length},e.prototype.clone=function(){var t=new e;return t.nodes=this.nodes.slice(0),t},e.prototype.toArray=function(){return this.nodes.slice(0)},e.prototype.insert=e.prototype.push,e.prototype.top=e.prototype.peek,e.prototype.front=e.prototype.peek,e.prototype.has=e.prototype.contains,e.prototype.copy=e.prototype.clone,e}(),(function(n,r){return typeof define==`function`&&define.amd?define([],r):typeof e==`object`?t.exports=r():n.Heap=r()})(this,function(){return n})}).call(e)}}),Dn=Ae({"../../node_modules/.pnpm/heap@0.2.7/node_modules/heap/index.js"(e,t){t.exports=En()}}),On=Ae({"../../node_modules/.pnpm/@ewoudenberg+difflib@0.1.0/node_modules/@ewoudenberg/difflib/lib/difflib.js"(e){(function(){var t,n,r,i,a,o,s,c,l,u,d,f,p,m,h,g,_,v,y,b,x,S=[].indexOf;({floor:h,max:_,min:v}=Math),n=Dn(),p=Me(`assert`),c=/* @__PURE__ */ A(function(e,t){return t?2*e/t:1},`_calculateRatio`),s=/* @__PURE__ */ A(function(e,t){var n,r,i,a,o;for([i,a]=[e.length,t.length],n=r=0,o=v(i,a);0<=o?r<o:r>o;n=0<=o?++r:--r){if(e[n]<t[n])return-1;if(e[n]>t[n])return 1}return i-a},`_arrayCmp`),f=/* @__PURE__ */ A(function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},`_has`),o=/* @__PURE__ */ A(function(e){for(var t,n=0,r=e.length;n<r;n++)if(t=e[n],t)return!0;return!1},`_any`),a=class{static{A(this,`SequenceMatcher`)}constructor(e,t=``,n=``,r=!0){this.isjunk=e,this.autojunk=r,this.a=this.b=null,this.setSeqs(t,n)}setSeqs(e,t){return this.setSeq1(e),this.setSeq2(t)}setSeq1(e){if(e!==this.a)return this.a=e,this.matchingBlocks=this.opcodes=null}setSeq2(e){if(e!==this.b)return this.b=e,this.matchingBlocks=this.opcodes=null,this.fullbcount=null,this._chainB()}_chainB(){var e=this.b,t,n,r,i,a,o,s,c,l,u,d;for(this.b2j=t=/* @__PURE__ */ new Map,r=s=0,c=e.length;s<c;r=++s)n=e[r],t.has(n)||t.set(n,[]),i=t.get(n),i.push(r);return o=/* @__PURE__ */ new Map,a=this.isjunk,a&&t.forEach(function(e,n){if(a(n))return o.set(n,!0),t.delete(n)}),d=/* @__PURE__ */ new Map,l=e.length,this.autojunk&&l>=200&&(u=h(l/100)+1,t.forEach(function(e,n){if(e.length>u)return d.set(n,!0),t.delete(n)})),this.isbjunk=function(e){return o.has(e)},this.isbpopular=function(e){return d.has(e)}}findLongestMatch(e,t,n,r){var i,a,o,s,c,l,u,d,f,p,m,h,g,_,v,y,b,x;for([i,a,o,d]=[this.a,this.b,this.b2j,this.isbjunk],[s,c,l]=[e,n,0],p={},u=g=b=e,x=t;b<=x?g<x:g>x;u=b<=x?++g:--g){for(y={},m=[],o.has(i[u])&&(m=o.get(i[u])),v=0,_=m.length;v<_;v++)if(f=m[v],!(f<n)){if(f>=r)break;h=y[f]=(p[f-1]||0)+1,h>l&&([s,c,l]=[u-h+1,f-h+1,h])}p=y}for(;s>e&&c>n&&!d(a[c-1])&&i[s-1]===a[c-1];)[s,c,l]=[s-1,c-1,l+1];for(;s+l<t&&c+l<r&&!d(a[c+l])&&i[s+l]===a[c+l];)l++;for(;s>e&&c>n&&d(a[c-1])&&i[s-1]===a[c-1];)[s,c,l]=[s-1,c-1,l+1];for(;s+l<t&&c+l<r&&d(a[c+l])&&i[s+l]===a[c+l];)l++;return[s,c,l]}getMatchingBlocks(){var e,t,n,r,i,a,o,c,l,u,d,f,p,m,h,g,_,v,y,b,x;if(this.matchingBlocks)return this.matchingBlocks;for([h,g]=[this.a.length,this.b.length],b=[[0,h,0,g]],v=[];b.length;)[t,e,r,n]=b.pop(),[i,c,d]=x=this.findLongestMatch(t,e,r,n),d&&(v.push(x),t<i&&r<c&&b.push([t,i,r,c]),i+d<e&&c+d<n&&b.push([i+d,e,c+d,n]));for(v.sort(s),a=l=f=0,y=[],m=0,_=v.length;m<_;m++)[o,u,p]=v[m],a+f===o&&l+f===u?f+=p:(f&&y.push([a,l,f]),[a,l,f]=[o,u,p]);return f&&y.push([a,l,f]),y.push([h,g,0]),this.matchingBlocks=y}getOpcodes(){var e,t,n,r,i,a,o,s,c,l;if(this.opcodes)return this.opcodes;for(r=i=0,this.opcodes=t=[],s=this.getMatchingBlocks(),a=0,o=s.length;a<o;a++)[e,n,c]=s[a],l=``,r<e&&i<n?l=`replace`:r<e?l=`delete`:i<n&&(l=`insert`),l&&t.push([l,r,e,i,n]),[r,i]=[e+c,n+c],c&&t.push([`equal`,e,r,n,i]);return t}getGroupedOpcodes(e=3){var t=this.getOpcodes(),n,r,i,a,o,s,c,l,u,d;for(t.length||(t=[[`equal`,0,1,0,1]]),t[0][0]===`equal`&&([d,i,a,o,s]=t[0],t[0]=[d,_(i,a-e),a,_(o,s-e),s]),t[t.length-1][0]===`equal`&&([d,i,a,o,s]=t[t.length-1],t[t.length-1]=[d,i,v(a,i+e),o,v(s,o+e)]),u=e+e,r=[],n=[],c=0,l=t.length;c<l;c++)[d,i,a,o,s]=t[c],d===`equal`&&a-i>u&&(n.push([d,i,v(a,i+e),o,v(s,o+e)]),r.push(n),n=[],[i,o]=[_(i,a-e),_(o,s-e)]),n.push([d,i,a,o,s]);return n.length&&(n.length!==1||n[0][0]!==`equal`)&&r.push(n),r}ratio(){var e,t,n,r=0,i=this.getMatchingBlocks();for(e=0,t=i.length;e<t;e++)n=i[e],r+=n[2];return c(r,this.a.length+this.b.length)}quickRatio(){var e,t,n,r,i,a,o,s,l,u,d;if(!this.fullbcount)for(this.fullbcount=n={},u=this.b,r=0,i=u.length;r<i;r++)t=u[r],n[t]=(n[t]||0)+1;for(n=this.fullbcount,e={},s=0,d=this.a,o=0,a=d.length;o<a;o++)t=d[o],l=f(e,t)?e[t]:n[t]||0,e[t]=l-1,l>0&&s++;return c(s,this.a.length+this.b.length)}realQuickRatio(){var e,t;return[e,t]=[this.a.length,this.b.length],c(v(e,t),e+t)}},g=/* @__PURE__ */ A(function(e,t,r=3,i=.6){var o,c,l,u,d,f,p,m,h;if(!(r>0))throw Error(`n must be > 0: (${r})`);if(!(0<=i&&i<=1))throw Error(`cutoff must be in [0.0, 1.0]: (${i})`);for(d=[],p=new a,p.setSeq2(e),o=0,c=t.length;o<c;o++)h=t[o],p.setSeq1(h),p.realQuickRatio()>=i&&p.quickRatio()>=i&&p.ratio()>=i&&d.push([p.ratio(),h]);for(d=n.nlargest(d,r,s),f=[],u=0,l=d.length;u<l;u++)[m,h]=d[u],f.push(h);return f},`getCloseMatches`),l=/* @__PURE__ */ A(function(e,t){var n,r;for([n,r]=[0,e.length];n<r&&e[n]===t;)n++;return n},`_countLeading`),t=class{static{A(this,`Differ`)}constructor(e,t){this.linejunk=e,this.charjunk=t}compare(e,t){var n,r,i,o,s=new a(this.linejunk,e,t),c,l,u,d,f,p=[],m,h=s.getOpcodes(),g;for(l=0,u=h.length;l<u;l++){switch([g,r,n,o,i]=h[l],g){case`replace`:c=this._fancyReplace(e,r,n,t,o,i);break;case`delete`:c=this._dump(`-`,e,r,n);break;case`insert`:c=this._dump(`+`,t,o,i);break;case`equal`:c=this._dump(` `,e,r,n);break;default:throw Error(`unknow tag (${g})`)}for(m=0,d=c.length;m<d;m++)f=c[m],p.push(f)}return p}_dump(e,t,n,r){var i,a,o,s,c=[];for(i=a=o=n,s=r;o<=s?a<s:a>s;i=o<=s?++a:--a)c.push(`${e} ${t[i]}`);return c}_plainReplace(e,t,n,r,i,a){var o,s,c,l,u,d,f,m,h,g;for(p(t<n&&i<a),a-i<n-t?(o=this._dump(`+`,r,i,a),g=this._dump(`-`,e,t,n)):(o=this._dump(`-`,e,t,n),g=this._dump(`+`,r,i,a)),f=[],h=[o,g],c=0,l=h.length;c<l;c++)for(s=h[c],m=0,u=s.length;m<u;m++)d=s[m],f.push(d);return f}_fancyReplace(e,t,n,r,i,o){var s,c,l,u,d,f,p,m,h,g,_,v,y,b,x,S,ee,C,te,w,T,ne,E,re,ie,D,ae,O,oe,se,ce,le,ue,de,fe,pe,me,he,ge,_e,ve,ye,be,k,xe;for([p,x]=[.74,.75],b=new a(this.charjunk),[S,ee]=[null,null],oe=[],te=w=fe=i,pe=o;fe<=pe?w<pe:w>pe;te=fe<=pe?++w:--w)for(g=r[te],b.setSeq2(g),C=se=me=t,he=n;me<=he?se<he:se>he;C=me<=he?++se:--se)c=e[C],c===g?S===null&&([S,ee]=[C,te]):(b.setSeq1(c),b.realQuickRatio()>p&&b.quickRatio()>p&&b.ratio()>p&&([p,m,h]=[b.ratio(),C,te]));if(p<x){if(S===null){for(ge=this._plainReplace(e,t,n,r,i,o),ce=0,E=ge.length;ce<E;ce++)O=ge[ce],oe.push(O);return oe}[m,h,p]=[S,ee,1]}else S=null;for(_e=this._fancyHelper(e,t,m,r,i,h),le=0,re=_e.length;le<re;le++)O=_e[le],oe.push(O);if([s,f]=[e[m],r[h]],S===null){for(d=y=``,b.setSeqs(s,f),ve=b.getOpcodes(),ue=0,ie=ve.length;ue<ie;ue++)switch([xe,l,u,_,v]=ve[ue],[T,ne]=[u-l,v-_],xe){case`replace`:d+=Array(T+1).join(`^`),y+=Array(ne+1).join(`^`);break;case`delete`:d+=Array(T+1).join(`-`);break;case`insert`:y+=Array(ne+1).join(`+`);break;case`equal`:d+=Array(T+1).join(` `),y+=Array(ne+1).join(` `);break;default:throw Error(`unknow tag (${xe})`)}for(ye=this._qformat(s,f,d,y),de=0,D=ye.length;de<D;de++)O=ye[de],oe.push(O)}else oe.push(` `+s);for(be=this._fancyHelper(e,m+1,n,r,h+1,o),k=0,ae=be.length;k<ae;k++)O=be[k],oe.push(O);return oe}_fancyHelper(e,t,n,r,i,a){var o=[];return t<n?o=i<a?this._fancyReplace(e,t,n,r,i,a):this._dump(`-`,e,t,n):i<a&&(o=this._dump(`+`,r,i,a)),o}_qformat(e,t,n,r){var i,a=[];return i=v(l(e,` `),l(t,` `)),i=v(i,l(n.slice(0,i),` `)),i=v(i,l(r.slice(0,i),` `)),n=n.slice(i).replace(/\s+$/,``),r=r.slice(i).replace(/\s+$/,``),a.push(`- `+e),n.length&&a.push(`? ${Array(i+1).join(` `)}${n}
2
+ import{r as e,t}from"./rolldown-runtime-BNtqjh-B.mjs";import{r as n}from"./chunk-U6NEESU5-DqqRCaWH.mjs";import{a as r,o as i}from"./dotenv-DKRemNCH.mjs";import{o as a}from"./autoconfig-CQjvJ8Rp.mjs";import{$ as o,A as s,B as c,C as l,E as u,F as d,H as f,I as p,K as m,S as h,T as g,V as _,Z as v,at as y,b,et as x,f as S,n as ee,o as C,ot as te,p as w,q as T,r as ne,u as E,x as re,y as ie}from"./dist-DwxlJ9Ms.mjs";import{D,M as ae,N as O,O as oe,S as se,T as ce,_ as le,a as ue,d as de,g as fe,h as pe,i as me,j as he,l as ge,m as _e,n as ve,p as ye,r as be,s as k,t as xe,v as Se,w as Ce,y as we}from"./chunk-AAQI36FL-e6E5HW1g.mjs";import{n as Te,r as Ee,t as De}from"./project-settings-D_S-UC8I.mjs";import{a as Oe,c as ke,i as Ae,o as A,r as je,s as Me,t as Ne}from"./chunk-DSGVRFIS-CeCM3XGQ.mjs";import{t as Pe}from"./log-Brx-wjJW.mjs";import{t as Fe}from"./context-CroqTqbk.mjs";import{t as Ie}from"./auth-token-Cp_u44cF.mjs";import{C as Le,D as Re,E as ze,S as Be,T as Ve,_ as He,a as Ue,b as We,c as Ge,f as Ke,g as qe,i as Je,l as Ye,r as Xe,t as Ze,u as Qe,x as $e,y as et}from"./interactive-DCbIwYxy.mjs";import{C as tt,D as nt,_ as rt,a as it,c as at,g as ot,i as st,m as ct,n as lt,o as ut,r as dt,w as ft,x as pt,y as mt}from"./deploy-context-DzSmuU32.mjs";import{u as ht}from"./build-D18S0p87.mjs";import{createRequire as gt}from"node:module";import{setTimeout as _t}from"node:timers/promises";import{createReadStream as vt,mkdirSync as yt,readFileSync as bt,writeFileSync as xt}from"node:fs";import*as St from"node:path";import Ct,{extname as wt,isAbsolute as Tt,resolve as Et,sep as Dt}from"node:path";import Ot,{URLSearchParams as kt}from"node:url";import*as At from"node:fs/promises";import{access as jt,readFile as Mt,readdir as Nt,stat as Pt,writeFile as Ft}from"node:fs/promises";import j from"node:assert";import{TextDecoder as It,isDeepStrictEqual as Lt}from"node:util";import{Blob as Rt}from"node:buffer";import{gzipSync as zt}from"node:zlib";import{createHash as Bt}from"node:crypto";import{execSync as Vt}from"node:child_process";import Ht from"node:readline";import{BUILD_OUTPUT_ROOT as Ut,cleanBuildOutputDir as Wt,writeAssets as Gt,writeRootConfig as Kt,writeWorkerConfig as qt}from"@cloudflare/build-output-utils";import{hash as Jt}from"blake3-wasm";import{InputSettingsSchema as Yt,InputWorkerSchema as Xt,convertToWranglerConfig as Zt,loadAndParseConfig as Qt}from"@cloudflare/config";gt(import.meta.url||(typeof __filename==`string`?__filename:`/`));function $t(e=`2000-01-01`,t){let{hasNodejsAlsFlag:n,hasNodejsCompatFlag:r,hasNoNodejsCompatFlag:i,hasNodejsCompatV2Flag:o,hasNoNodejsCompatV2Flag:s,hasExperimentalNodejsCompatV2Flag:c}=en(t),{isNodejsCompatEnabled:l,isNodejsCompatV2Enabled:u}=a(e,t),d=null;return u?d=`v2`:l?d=`v1`:n&&(d=`als`),{mode:d,isNodejsCompatEnabled:l,isNodejsCompatV2Enabled:u,hasNodejsAlsFlag:n,hasNodejsCompatFlag:r,hasNoNodejsCompatFlag:i,hasNodejsCompatV2Flag:o,hasNoNodejsCompatV2Flag:s,hasExperimentalNodejsCompatV2Flag:c}}n($t,`getNodeCompat`);function en(e){return{hasNodejsAlsFlag:e.includes(`nodejs_als`),hasNodejsCompatFlag:e.includes(`nodejs_compat`),hasNoNodejsCompatFlag:e.includes(`no_nodejs_compat`),hasNodejsCompatV2Flag:e.includes(`nodejs_compat_v2`),hasNoNodejsCompatV2Flag:e.includes(`no_nodejs_compat_v2`),hasExperimentalNodejsCompatV2Flag:e.includes(`experimental:nodejs_compat_v2`)}}n(en,`parseNodeCompatibilityFlags`),gt(import.meta.url||(typeof __filename==`string`?__filename:`/`));function tn(){let e=gt(import.meta.url||__filename),t=e.resolve(`@cspotcode/source-map-support`),n=Symbol.for,r=e.cache[t];try{return Symbol.for=e=>(j.strictEqual(e,`source-map-support/sharedData`),Symbol(e)),delete e.cache[t],e(t)}finally{Symbol.for=n,e.cache[t]=r}}n(tn,`getFreshSourceMapSupport`),gt(import.meta.url||(typeof __filename==`string`?__filename:`/`));var M,N,nn,rn,an,on,sn;function cn(e){M=e.logger,N=e.fetchResult,nn=e.fetchListResult,rn=e.fetchPagedListResult,e.fetchKVGetValue,an=e.confirm,on=e.prompt,sn=e.select}A(cn,`initDeployHelpersContext`);var ln=/* @__PURE__ */ t(((e,t)=>{var n=Object.prototype.hasOwnProperty,r=`~`;function i(){}Object.create&&(i.prototype=Object.create(null),new i().__proto__||(r=!1));function a(e,t,n){this.fn=e,this.context=t,this.once=n||!1}function o(e,t,n,i,o){if(typeof n!=`function`)throw TypeError(`The listener must be a function`);var s=new a(n,i||e,o),c=r?r+t:t;return e._events[c]?e._events[c].fn?e._events[c]=[e._events[c],s]:e._events[c].push(s):(e._events[c]=s,e._eventsCount++),e}function s(e,t){--e._eventsCount===0?e._events=new i:delete e._events[t]}function c(){this._events=new i,this._eventsCount=0}c.prototype.eventNames=function(){var e=[],t,i;if(this._eventsCount===0)return e;for(i in t=this._events)n.call(t,i)&&e.push(r?i.slice(1):i);return Object.getOwnPropertySymbols?e.concat(Object.getOwnPropertySymbols(t)):e},c.prototype.listeners=function(e){var t=r?r+e:e,n=this._events[t];if(!n)return[];if(n.fn)return[n.fn];for(var i=0,a=n.length,o=Array(a);i<a;i++)o[i]=n[i].fn;return o},c.prototype.listenerCount=function(e){var t=r?r+e:e,n=this._events[t];return n?n.fn?1:n.length:0},c.prototype.emit=function(e,t,n,i,a,o){var s=r?r+e:e;if(!this._events[s])return!1;var c=this._events[s],l=arguments.length,u,d;if(c.fn){switch(c.once&&this.removeListener(e,c.fn,void 0,!0),l){case 1:return c.fn.call(c.context),!0;case 2:return c.fn.call(c.context,t),!0;case 3:return c.fn.call(c.context,t,n),!0;case 4:return c.fn.call(c.context,t,n,i),!0;case 5:return c.fn.call(c.context,t,n,i,a),!0;case 6:return c.fn.call(c.context,t,n,i,a,o),!0}for(d=1,u=Array(l-1);d<l;d++)u[d-1]=arguments[d];c.fn.apply(c.context,u)}else{var f=c.length,p;for(d=0;d<f;d++)switch(c[d].once&&this.removeListener(e,c[d].fn,void 0,!0),l){case 1:c[d].fn.call(c[d].context);break;case 2:c[d].fn.call(c[d].context,t);break;case 3:c[d].fn.call(c[d].context,t,n);break;case 4:c[d].fn.call(c[d].context,t,n,i);break;default:if(!u)for(p=1,u=Array(l-1);p<l;p++)u[p-1]=arguments[p];c[d].fn.apply(c[d].context,u)}}return!0},c.prototype.on=function(e,t,n){return o(this,e,t,n,!1)},c.prototype.once=function(e,t,n){return o(this,e,t,n,!0)},c.prototype.removeListener=function(e,t,n,i){var a=r?r+e:e;if(!this._events[a])return this;if(!t)return s(this,a),this;var o=this._events[a];if(o.fn)o.fn!==t||i&&!o.once||n&&o.context!==n||s(this,a);else{for(var c=0,l=[],u=o.length;c<u;c++)(o[c].fn!==t||i&&!o[c].once||n&&o[c].context!==n)&&l.push(o[c]);l.length?this._events[a]=l.length===1?l[0]:l:s(this,a)}return this},c.prototype.removeAllListeners=function(e){var t;return e?(t=r?r+e:e,this._events[t]&&s(this,t)):(this._events=new i,this._eventsCount=0),this},c.prototype.off=c.prototype.removeListener,c.prototype.addListener=c.prototype.on,c.prefixed=r,c.EventEmitter=c,t!==void 0&&(t.exports=c)})),un=_(),dn=/* @__PURE__ */ e(ln(),1),fn=class e extends Error{name=`TimeoutError`;constructor(t,n){super(t,n),Error.captureStackTrace?.(this,e)}};const pn=e=>e.reason??new DOMException(`This operation was aborted.`,`AbortError`);function mn(e,t){let{milliseconds:n,fallback:r,message:i,customTimers:a={setTimeout,clearTimeout},signal:o}=t,s,c,l=new Promise((t,l)=>{if(typeof n!=`number`||Math.sign(n)!==1)throw TypeError(`Expected \`milliseconds\` to be a positive number, got \`${n}\``);if(o?.aborted){l(pn(o));return}if(o&&(c=()=>{l(pn(o))},o.addEventListener(`abort`,c,{once:!0})),e.then(t,l),n===1/0)return;let u=new fn;s=a.setTimeout.call(void 0,()=>{if(r)try{t(r())}catch(e){l(e)}else typeof e.cancel==`function`&&e.cancel(),i===!1?t():i instanceof Error?l(i):(u.message=i??`Promise timed out after ${n} milliseconds`,l(u))},n)}).finally(()=>{l.clear(),c&&o&&o.removeEventListener(`abort`,c)});return l.clear=()=>{a.clearTimeout.call(void 0,s),s=void 0},l}function hn(e,t,n){let r=0,i=e.length;for(;i>0;){let a=Math.trunc(i/2),o=r+a;n(e[o],t)<=0?(r=++o,i-=a+1):i=a}return r}var gn=class{#e=[];enqueue(e,t){let{priority:n=0,id:r}=t??{},i={priority:n,id:r,run:e};if(this.size===0||this.#e[this.size-1].priority>=n){this.#e.push(i);return}let a=hn(this.#e,i,(e,t)=>t.priority-e.priority);this.#e.splice(a,0,i)}setPriority(e,t){let n=this.#e.findIndex(t=>t.id===e);if(n===-1)throw ReferenceError(`No promise function with the id "${e}" exists in the queue.`);let[r]=this.#e.splice(n,1);this.enqueue(r.run,{priority:t,id:e})}dequeue(){return this.#e.shift()?.run}filter(e){return this.#e.filter(t=>t.priority===e.priority).map(e=>e.run)}get size(){return this.#e.length}},_n=class extends dn.default{#e;#t;#n=0;#r;#i=!1;#a=!1;#o;#s=0;#c=0;#l;#u;#d;#f;#p=0;#m;#h;#g=1n;#_=/* @__PURE__ */ new Map;timeout;constructor(e){if(super(),e={carryoverIntervalCount:!1,intervalCap:1/0,interval:0,concurrency:1/0,autoStart:!0,queueClass:gn,...e},!(typeof e.intervalCap==`number`&&e.intervalCap>=1))throw TypeError(`Expected \`intervalCap\` to be a number from 1 and up, got \`${e.intervalCap?.toString()??``}\` (${typeof e.intervalCap})`);if(e.interval===void 0||!(Number.isFinite(e.interval)&&e.interval>=0))throw TypeError(`Expected \`interval\` to be a finite number >= 0, got \`${e.interval?.toString()??``}\` (${typeof e.interval})`);if(this.#e=e.carryoverIntervalCount??e.carryoverConcurrencyCount??!1,this.#t=e.intervalCap===1/0||e.interval===0,this.#r=e.intervalCap,this.#o=e.interval,this.#d=new e.queueClass,this.#f=e.queueClass,this.concurrency=e.concurrency,e.timeout!==void 0&&!(Number.isFinite(e.timeout)&&e.timeout>0))throw TypeError(`Expected \`timeout\` to be a positive finite number, got \`${e.timeout}\` (${typeof e.timeout})`);this.timeout=e.timeout,this.#h=e.autoStart===!1,this.#M()}get#v(){return this.#t||this.#n<this.#r}get#y(){return this.#p<this.#m}#b(){this.#p--,this.#p===0&&this.emit(`pendingZero`),this.#E(),this.emit(`next`)}#x(){this.#O(),this.#D(),this.#u=void 0}get#S(){let e=Date.now();if(this.#l===void 0){let t=this.#s-e;if(t<0){if(this.#c>0){let t=e-this.#c;if(t<this.#o)return this.#C(this.#o-t),!0}this.#n=this.#e?this.#p:0}else return this.#C(t),!0}return!1}#C(e){this.#u===void 0&&(this.#u=setTimeout(()=>{this.#x()},e))}#w(){this.#l&&=(clearInterval(this.#l),void 0)}#T(){this.#u&&=(clearTimeout(this.#u),void 0)}#E(){if(this.#d.size===0)return this.#w(),this.emit(`empty`),this.#p===0&&(this.#T(),this.emit(`idle`)),!1;let e=!1;if(!this.#h){let t=!this.#S;if(this.#v&&this.#y){let n=this.#d.dequeue();this.#t||(this.#n++,this.#N()),this.emit(`active`),this.#c=Date.now(),n(),t&&this.#D(),e=!0}}return e}#D(){this.#t||this.#l!==void 0||(this.#l=setInterval(()=>{this.#O()},this.#o),this.#s=Date.now()+this.#o)}#O(){this.#n===0&&this.#p===0&&this.#l&&this.#w(),this.#n=this.#e?this.#p:0,this.#k(),this.#N()}#k(){for(;this.#E(););}get concurrency(){return this.#m}set concurrency(e){if(!(typeof e==`number`&&e>=1))throw TypeError(`Expected \`concurrency\` to be a number from 1 and up, got \`${e}\` (${typeof e})`);this.#m=e,this.#k()}async#A(e){return new Promise((t,n)=>{e.addEventListener(`abort`,()=>{n(e.reason)},{once:!0})})}setPriority(e,t){if(typeof t!=`number`||!Number.isFinite(t))throw TypeError(`Expected \`priority\` to be a finite number, got \`${t}\` (${typeof t})`);this.#d.setPriority(e,t)}async add(e,t={}){return t.id??=(this.#g++).toString(),t={timeout:this.timeout,...t},new Promise((n,r)=>{let i=Symbol(`task-${t.id}`);this.#d.enqueue(async()=>{this.#p++,this.#_.set(i,{id:t.id,priority:t.priority??0,startTime:Date.now(),timeout:t.timeout});try{try{t.signal?.throwIfAborted()}catch(e){throw this.#t||this.#n--,this.#_.delete(i),e}let r=e({signal:t.signal});t.timeout&&(r=mn(Promise.resolve(r),{milliseconds:t.timeout,message:`Task timed out after ${t.timeout}ms (queue has ${this.#p} running, ${this.#d.size} waiting)`})),t.signal&&(r=Promise.race([r,this.#A(t.signal)]));let a=await r;n(a),this.emit(`completed`,a)}catch(e){r(e),this.emit(`error`,e)}finally{this.#_.delete(i),queueMicrotask(()=>{this.#b()})}},t),this.emit(`add`),this.#E()})}async addAll(e,t){return Promise.all(e.map(async e=>this.add(e,t)))}start(){return this.#h&&(this.#h=!1,this.#k()),this}pause(){this.#h=!0}clear(){this.#d=new this.#f,this.#P()}async onEmpty(){this.#d.size!==0&&await this.#j(`empty`)}async onSizeLessThan(e){this.#d.size<e||await this.#j(`next`,()=>this.#d.size<e)}async onIdle(){(this.#p!==0||this.#d.size!==0)&&await this.#j(`idle`)}async onPendingZero(){this.#p!==0&&await this.#j(`pendingZero`)}async onRateLimit(){this.isRateLimited||await this.#j(`rateLimit`)}async onRateLimitCleared(){this.isRateLimited&&await this.#j(`rateLimitCleared`)}async onError(){return new Promise((e,t)=>{let n=e=>{this.off(`error`,n),t(e)};this.on(`error`,n)})}async#j(e,t){return new Promise(n=>{let r=()=>{(!t||t())&&(this.off(e,r),n())};this.on(e,r)})}get size(){return this.#d.size}sizeBy(e){return this.#d.filter(e).length}get pending(){return this.#p}get isPaused(){return this.#h}#M(){this.#t||(this.on(`add`,()=>{this.#d.size>0&&this.#N()}),this.on(`next`,()=>{this.#N()}))}#N(){this.#t||this.#a||(this.#a=!0,queueMicrotask(()=>{this.#a=!1,this.#P()}))}#P(){let e=this.#i,t=!this.#t&&this.#n>=this.#r&&this.#d.size>0;t!==e&&(this.#i=t,this.emit(t?`rateLimit`:`rateLimitCleared`))}get isRateLimited(){return this.#i}get isSaturated(){return this.#p===this.#m&&this.#d.size>0||this.isRateLimited&&this.#d.size>0}get runningTasks(){return[...this.#_.values()].map(e=>({...e}))}};const vn=[`B`,`kB`,`MB`,`GB`,`TB`,`PB`,`EB`,`ZB`,`YB`],yn=[`B`,`KiB`,`MiB`,`GiB`,`TiB`,`PiB`,`EiB`,`ZiB`,`YiB`],bn=[`b`,`kbit`,`Mbit`,`Gbit`,`Tbit`,`Pbit`,`Ebit`,`Zbit`,`Ybit`],xn=[`b`,`kibit`,`Mibit`,`Gibit`,`Tibit`,`Pibit`,`Eibit`,`Zibit`,`Yibit`],Sn=(e,t,n)=>{let r=e;return typeof t==`string`||Array.isArray(t)?r=e.toLocaleString(t,n):(t===!0||n!==void 0)&&(r=e.toLocaleString(void 0,n)),r};function Cn(e,t){if(!Number.isFinite(e))throw TypeError(`Expected a finite number, got ${typeof e}: ${e}`);t={bits:!1,binary:!1,space:!0,...t};let n=t.bits?t.binary?xn:bn:t.binary?yn:vn,r=t.space?` `:``;if(t.signed&&e===0)return` 0${r}${n[0]}`;let i=e<0,a=i?`-`:t.signed?`+`:``;i&&(e=-e);let o;if(t.minimumFractionDigits!==void 0&&(o={minimumFractionDigits:t.minimumFractionDigits}),t.maximumFractionDigits!==void 0&&(o={maximumFractionDigits:t.maximumFractionDigits,...o}),e<1)return a+Sn(e,t.locale,o)+r+n[0];let s=Math.min(Math.floor(t.binary?Math.log(e)/Math.log(1024):Math.log10(e)/3),n.length-1);e/=(t.binary?1024:1e3)**s,o||(e=e.toPrecision(3));let c=Sn(Number(e),t.locale,o),l=n[s];return a+c+r+l}var wn=i();gt(import.meta.url||(typeof __filename==`string`?__filename:`/`));var Tn=Ae({"../../node_modules/.pnpm/ignore@5.3.1/node_modules/ignore/index.js"(e,t){function n(e){return Array.isArray(e)?e:[e]}A(n,`makeArray`);var r=``,i=` `,a=`\\`,o=/^\s+$/,s=/(?:[^\\]|^)\\$/,c=/^\\!/,l=/^\\#/,u=/\r?\n/g,d=/^\.*\/|^\.+$/,f=`/`,p=`node-ignore`;typeof Symbol<`u`&&(p=Symbol.for(`node-ignore`));var m=p,h=/* @__PURE__ */ A((e,t,n)=>Object.defineProperty(e,t,{value:n}),`define`),g=/([0-z])-([0-z])/g,_=/* @__PURE__ */ A(()=>!1,`RETURN_FALSE`),v=/* @__PURE__ */ A(e=>e.replace(g,(e,t,n)=>t.charCodeAt(0)<=n.charCodeAt(0)?e:r),`sanitizeRange`),y=/* @__PURE__ */ A(e=>{let{length:t}=e;return e.slice(0,t-t%2)},`cleanRangeBackSlash`),b=[[/^\uFEFF/,()=>r],[/\\?\s+$/,e=>e.indexOf(`\\`)===0?i:r],[/\\\s/g,()=>i],[/[\\$.|*+(){^]/g,e=>`\\${e}`],[/(?!\\)\?/g,()=>`[^/]`],[/^\//,()=>`^`],[/\//g,()=>`\\/`],[/^\^*\\\*\\\*\\\//,()=>`^(?:.*\\/)?`],[/^(?=[^^])/,/* @__PURE__ */ A(function(){return/\/(?!$)/.test(this)?`^`:`(?:^|\\/)`},`startingReplacer`)],[/\\\/\\\*\\\*(?=\\\/|$)/g,(e,t,n)=>t+6<n.length?`(?:\\/[^\\/]+)*`:`\\/.+`],[/(^|[^\\]+)(\\\*)+(?=.+)/g,(e,t,n)=>t+n.replace(/\\\*/g,`[^\\/]*`)],[/\\\\\\(?=[$.|*+(){^])/g,()=>a],[/\\\\/g,()=>a],[/(\\)?\[([^\]/]*?)(\\*)($|\])/g,(e,t,n,r,i)=>t===a?`\\[${n}${y(r)}${i}`:i===`]`&&r.length%2==0?`[${v(n)}${r}]`:`[]`],[/(?:[^*])$/,e=>/\/$/.test(e)?`${e}$`:`${e}(?=$|\\/$)`],[/(\^|\\\/)?\\\*$/,(e,t)=>`${t?`${t}[^/]+`:`[^/]*`}(?=$|\\/$)`]],x=/* @__PURE__ */ Object.create(null),S=/* @__PURE__ */ A((e,t)=>{let n=x[e];return n||(n=b.reduce((t,n)=>t.replace(n[0],n[1].bind(e)),e),x[e]=n),t?new RegExp(n,`i`):new RegExp(n)},`makeRegex`),ee=/* @__PURE__ */ A(e=>typeof e==`string`,`isString`),C=/* @__PURE__ */ A(e=>e&&ee(e)&&!o.test(e)&&!s.test(e)&&e.indexOf(`#`)!==0,`checkPattern`),te=/* @__PURE__ */ A(e=>e.split(u),`splitPattern`),w=class{static{A(this,`IgnoreRule`)}constructor(e,t,n,r){this.origin=e,this.pattern=t,this.negative=n,this.regex=r}},T=/* @__PURE__ */ A((e,t)=>{let n=e,r=!1;e.indexOf(`!`)===0&&(r=!0,e=e.substr(1)),e=e.replace(c,`!`).replace(l,`#`);let i=S(e,t);return new w(n,e,r,i)},`createRule`),ne=/* @__PURE__ */ A((e,t)=>{throw new t(e)},`throwError`),E=/* @__PURE__ */ A((e,t,n)=>ee(e)?e?!E.isNotRelative(e)||n(`path should be a \`path.relative()\`d string, but got "${t}"`,RangeError):n(`path must not be empty`,TypeError):n(`path must be a string, but got \`${t}\``,TypeError),`checkPath`),re=/* @__PURE__ */ A(e=>d.test(e),`isNotRelative`);E.isNotRelative=re,E.convert=e=>e;var ie=class{static{A(this,`Ignore`)}constructor({ignorecase:e=!0,ignoreCase:t=e,allowRelativePaths:n=!1}={}){h(this,m,!0),this._rules=[],this._ignoreCase=t,this._allowRelativePaths=n,this._initCache()}_initCache(){this._ignoreCache=/* @__PURE__ */ Object.create(null),this._testCache=/* @__PURE__ */ Object.create(null)}_addPattern(e){if(e&&e[m])this._rules=this._rules.concat(e._rules),this._added=!0;else if(C(e)){let t=T(e,this._ignoreCase);this._added=!0,this._rules.push(t)}}add(e){return this._added=!1,n(ee(e)?te(e):e).forEach(this._addPattern,this),this._added&&this._initCache(),this}addPattern(e){return this.add(e)}_testOne(e,t){let n=!1,r=!1;return this._rules.forEach(i=>{let{negative:a}=i;r===a&&n!==r||a&&!n&&!r&&!t||i.regex.test(e)&&(n=!a,r=a)}),{ignored:n,unignored:r}}_test(e,t,n,r){let i=e&&E.convert(e);return E(i,e,this._allowRelativePaths?_:ne),this._t(i,t,n,r)}_t(e,t,n,r){if(e in t)return t[e];if(r||=e.split(f),r.pop(),!r.length)return t[e]=this._testOne(e,n);let i=this._t(r.join(f)+f,t,n,r);return t[e]=i.ignored?i:this._testOne(e,n)}ignores(e){return this._test(e,this._ignoreCache,!1).ignored}createFilter(){return e=>!this.ignores(e)}filter(e){return n(e).filter(this.createFilter())}test(e){return this._test(e,this._testCache,!0)}},D=/* @__PURE__ */ A(e=>new ie(e),`factory`);if(D.isPathValid=/* @__PURE__ */ A(e=>E(e&&E.convert(e),e,_),`isPathValid`),D.default=D,t.exports=D,typeof process<`u`&&(process.env&&process.env.IGNORE_TEST_WIN32||process.platform===`win32`)){E.convert=/* @__PURE__ */ A(e=>/^\\\\\?\\/.test(e)||/["<>|\u0000-\u001F]+/u.test(e)?e:e.replace(/\\/g,`/`),`makePosix`);let e=/^[a-z]:\//i;E.isNotRelative=t=>e.test(t)||re(t)}}}),En=Ae({"../../node_modules/.pnpm/heap@0.2.7/node_modules/heap/lib/heap.js"(e,t){(function(){var n,r,i=Math.floor,a,o,s,c,l,u,d=Math.min,f,p,m,h,g;r=/* @__PURE__ */ A(function(e,t){return e<t?-1:+(e>t)},`defaultCmp`),u=/* @__PURE__ */ A(function(e,t,n,a,o){var s;if(n??=0,o??=r,n<0)throw Error(`lo must be non-negative`);for(a??=e.length;n<a;)s=i((n+a)/2),o(t,e[s])<0?a=s:n=s+1;return[].splice.apply(e,[n,n-n].concat(t)),t},`insort`),s=/* @__PURE__ */ A(function(e,t,n){return n??=r,e.push(t),h(e,0,e.length-1,n)},`heappush`),o=/* @__PURE__ */ A(function(e,t){var n,i;return t??=r,n=e.pop(),e.length?(i=e[0],e[0]=n,g(e,0,t)):i=n,i},`heappop`),l=/* @__PURE__ */ A(function(e,t,n){var i;return n??=r,i=e[0],e[0]=t,g(e,0,n),i},`heapreplace`),c=/* @__PURE__ */ A(function(e,t,n){var i;return n??=r,e.length&&n(e[0],t)<0&&(i=[e[0],t],t=i[0],e[0]=i[1],g(e,0,n)),t},`heappushpop`),a=/* @__PURE__ */ A(function(e,t){var n,a,o,s,c,l;for(t??=r,s=function(){l=[];for(var t=0,n=i(e.length/2);0<=n?t<n:t>n;0<=n?t++:t--)l.push(t);return l}.apply(this).reverse(),c=[],a=0,o=s.length;a<o;a++)n=s[a],c.push(g(e,n,t));return c},`heapify`),m=/* @__PURE__ */ A(function(e,t,n){var i;if(n??=r,i=e.indexOf(t),i!==-1)return h(e,0,i,n),g(e,i,n)},`updateItem`),f=/* @__PURE__ */ A(function(e,t,n){var i,o,s,l,u;if(n??=r,o=e.slice(0,t),!o.length)return o;for(a(o,n),u=e.slice(t),s=0,l=u.length;s<l;s++)i=u[s],c(o,i,n);return o.sort(n).reverse()},`nlargest`),p=/* @__PURE__ */ A(function(e,t,n){var i,s,c,l,f,p,m,h,g;if(n??=r,t*10<=e.length){if(c=e.slice(0,t).sort(n),!c.length)return c;for(s=c[c.length-1],m=e.slice(t),l=0,p=m.length;l<p;l++)i=m[l],n(i,s)<0&&(u(c,i,0,null,n),c.pop(),s=c[c.length-1]);return c}for(a(e,n),g=[],f=0,h=d(t,e.length);0<=h?f<h:f>h;0<=h?++f:--f)g.push(o(e,n));return g},`nsmallest`),h=/* @__PURE__ */ A(function(e,t,n,i){var a,o,s;for(i??=r,a=e[n];n>t&&(s=n-1>>1,o=e[s],i(a,o)<0);)e[n]=o,n=s;return e[n]=a},`_siftdown`),g=/* @__PURE__ */ A(function(e,t,n){var i,a,o,s,c;for(n??=r,a=e.length,c=t,o=e[t],i=2*t+1;i<a;)s=i+1,s<a&&!(n(e[i],e[s])<0)&&(i=s),e[t]=e[i],t=i,i=2*t+1;return e[t]=o,h(e,c,t,n)},`_siftup`),n=function(){e.push=s,e.pop=o,e.replace=l,e.pushpop=c,e.heapify=a,e.updateItem=m,e.nlargest=f,e.nsmallest=p;function e(e){this.cmp=e??r,this.nodes=[]}return A(e,`Heap`),e.prototype.push=function(e){return s(this.nodes,e,this.cmp)},e.prototype.pop=function(){return o(this.nodes,this.cmp)},e.prototype.peek=function(){return this.nodes[0]},e.prototype.contains=function(e){return this.nodes.indexOf(e)!==-1},e.prototype.replace=function(e){return l(this.nodes,e,this.cmp)},e.prototype.pushpop=function(e){return c(this.nodes,e,this.cmp)},e.prototype.heapify=function(){return a(this.nodes,this.cmp)},e.prototype.updateItem=function(e){return m(this.nodes,e,this.cmp)},e.prototype.clear=function(){return this.nodes=[]},e.prototype.empty=function(){return this.nodes.length===0},e.prototype.size=function(){return this.nodes.length},e.prototype.clone=function(){var t=new e;return t.nodes=this.nodes.slice(0),t},e.prototype.toArray=function(){return this.nodes.slice(0)},e.prototype.insert=e.prototype.push,e.prototype.top=e.prototype.peek,e.prototype.front=e.prototype.peek,e.prototype.has=e.prototype.contains,e.prototype.copy=e.prototype.clone,e}(),(function(n,r){return typeof define==`function`&&define.amd?define([],r):typeof e==`object`?t.exports=r():n.Heap=r()})(this,function(){return n})}).call(e)}}),Dn=Ae({"../../node_modules/.pnpm/heap@0.2.7/node_modules/heap/index.js"(e,t){t.exports=En()}}),On=Ae({"../../node_modules/.pnpm/@ewoudenberg+difflib@0.1.0/node_modules/@ewoudenberg/difflib/lib/difflib.js"(e){(function(){var t,n,r,i,a,o,s,c,l,u,d,f,p,m,h,g,_,v,y,b,x,S=[].indexOf;({floor:h,max:_,min:v}=Math),n=Dn(),p=Me(`assert`),c=/* @__PURE__ */ A(function(e,t){return t?2*e/t:1},`_calculateRatio`),s=/* @__PURE__ */ A(function(e,t){var n,r,i,a,o;for([i,a]=[e.length,t.length],n=r=0,o=v(i,a);0<=o?r<o:r>o;n=0<=o?++r:--r){if(e[n]<t[n])return-1;if(e[n]>t[n])return 1}return i-a},`_arrayCmp`),f=/* @__PURE__ */ A(function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},`_has`),o=/* @__PURE__ */ A(function(e){for(var t,n=0,r=e.length;n<r;n++)if(t=e[n],t)return!0;return!1},`_any`),a=class{static{A(this,`SequenceMatcher`)}constructor(e,t=``,n=``,r=!0){this.isjunk=e,this.autojunk=r,this.a=this.b=null,this.setSeqs(t,n)}setSeqs(e,t){return this.setSeq1(e),this.setSeq2(t)}setSeq1(e){if(e!==this.a)return this.a=e,this.matchingBlocks=this.opcodes=null}setSeq2(e){if(e!==this.b)return this.b=e,this.matchingBlocks=this.opcodes=null,this.fullbcount=null,this._chainB()}_chainB(){var e=this.b,t,n,r,i,a,o,s,c,l,u,d;for(this.b2j=t=/* @__PURE__ */ new Map,r=s=0,c=e.length;s<c;r=++s)n=e[r],t.has(n)||t.set(n,[]),i=t.get(n),i.push(r);return o=/* @__PURE__ */ new Map,a=this.isjunk,a&&t.forEach(function(e,n){if(a(n))return o.set(n,!0),t.delete(n)}),d=/* @__PURE__ */ new Map,l=e.length,this.autojunk&&l>=200&&(u=h(l/100)+1,t.forEach(function(e,n){if(e.length>u)return d.set(n,!0),t.delete(n)})),this.isbjunk=function(e){return o.has(e)},this.isbpopular=function(e){return d.has(e)}}findLongestMatch(e,t,n,r){var i,a,o,s,c,l,u,d,f,p,m,h,g,_,v,y,b,x;for([i,a,o,d]=[this.a,this.b,this.b2j,this.isbjunk],[s,c,l]=[e,n,0],p={},u=g=b=e,x=t;b<=x?g<x:g>x;u=b<=x?++g:--g){for(y={},m=[],o.has(i[u])&&(m=o.get(i[u])),v=0,_=m.length;v<_;v++)if(f=m[v],!(f<n)){if(f>=r)break;h=y[f]=(p[f-1]||0)+1,h>l&&([s,c,l]=[u-h+1,f-h+1,h])}p=y}for(;s>e&&c>n&&!d(a[c-1])&&i[s-1]===a[c-1];)[s,c,l]=[s-1,c-1,l+1];for(;s+l<t&&c+l<r&&!d(a[c+l])&&i[s+l]===a[c+l];)l++;for(;s>e&&c>n&&d(a[c-1])&&i[s-1]===a[c-1];)[s,c,l]=[s-1,c-1,l+1];for(;s+l<t&&c+l<r&&d(a[c+l])&&i[s+l]===a[c+l];)l++;return[s,c,l]}getMatchingBlocks(){var e,t,n,r,i,a,o,c,l,u,d,f,p,m,h,g,_,v,y,b,x;if(this.matchingBlocks)return this.matchingBlocks;for([h,g]=[this.a.length,this.b.length],b=[[0,h,0,g]],v=[];b.length;)[t,e,r,n]=b.pop(),[i,c,d]=x=this.findLongestMatch(t,e,r,n),d&&(v.push(x),t<i&&r<c&&b.push([t,i,r,c]),i+d<e&&c+d<n&&b.push([i+d,e,c+d,n]));for(v.sort(s),a=l=f=0,y=[],m=0,_=v.length;m<_;m++)[o,u,p]=v[m],a+f===o&&l+f===u?f+=p:(f&&y.push([a,l,f]),[a,l,f]=[o,u,p]);return f&&y.push([a,l,f]),y.push([h,g,0]),this.matchingBlocks=y}getOpcodes(){var e,t,n,r,i,a,o,s,c,l;if(this.opcodes)return this.opcodes;for(r=i=0,this.opcodes=t=[],s=this.getMatchingBlocks(),a=0,o=s.length;a<o;a++)[e,n,c]=s[a],l=``,r<e&&i<n?l=`replace`:r<e?l=`delete`:i<n&&(l=`insert`),l&&t.push([l,r,e,i,n]),[r,i]=[e+c,n+c],c&&t.push([`equal`,e,r,n,i]);return t}getGroupedOpcodes(e=3){var t=this.getOpcodes(),n,r,i,a,o,s,c,l,u,d;for(t.length||(t=[[`equal`,0,1,0,1]]),t[0][0]===`equal`&&([d,i,a,o,s]=t[0],t[0]=[d,_(i,a-e),a,_(o,s-e),s]),t[t.length-1][0]===`equal`&&([d,i,a,o,s]=t[t.length-1],t[t.length-1]=[d,i,v(a,i+e),o,v(s,o+e)]),u=e+e,r=[],n=[],c=0,l=t.length;c<l;c++)[d,i,a,o,s]=t[c],d===`equal`&&a-i>u&&(n.push([d,i,v(a,i+e),o,v(s,o+e)]),r.push(n),n=[],[i,o]=[_(i,a-e),_(o,s-e)]),n.push([d,i,a,o,s]);return n.length&&(n.length!==1||n[0][0]!==`equal`)&&r.push(n),r}ratio(){var e,t,n,r=0,i=this.getMatchingBlocks();for(e=0,t=i.length;e<t;e++)n=i[e],r+=n[2];return c(r,this.a.length+this.b.length)}quickRatio(){var e,t,n,r,i,a,o,s,l,u,d;if(!this.fullbcount)for(this.fullbcount=n={},u=this.b,r=0,i=u.length;r<i;r++)t=u[r],n[t]=(n[t]||0)+1;for(n=this.fullbcount,e={},s=0,d=this.a,o=0,a=d.length;o<a;o++)t=d[o],l=f(e,t)?e[t]:n[t]||0,e[t]=l-1,l>0&&s++;return c(s,this.a.length+this.b.length)}realQuickRatio(){var e,t;return[e,t]=[this.a.length,this.b.length],c(v(e,t),e+t)}},g=/* @__PURE__ */ A(function(e,t,r=3,i=.6){var o,c,l,u,d,f,p,m,h;if(!(r>0))throw Error(`n must be > 0: (${r})`);if(!(0<=i&&i<=1))throw Error(`cutoff must be in [0.0, 1.0]: (${i})`);for(d=[],p=new a,p.setSeq2(e),o=0,c=t.length;o<c;o++)h=t[o],p.setSeq1(h),p.realQuickRatio()>=i&&p.quickRatio()>=i&&p.ratio()>=i&&d.push([p.ratio(),h]);for(d=n.nlargest(d,r,s),f=[],u=0,l=d.length;u<l;u++)[m,h]=d[u],f.push(h);return f},`getCloseMatches`),l=/* @__PURE__ */ A(function(e,t){var n,r;for([n,r]=[0,e.length];n<r&&e[n]===t;)n++;return n},`_countLeading`),t=class{static{A(this,`Differ`)}constructor(e,t){this.linejunk=e,this.charjunk=t}compare(e,t){var n,r,i,o,s=new a(this.linejunk,e,t),c,l,u,d,f,p=[],m,h=s.getOpcodes(),g;for(l=0,u=h.length;l<u;l++){switch([g,r,n,o,i]=h[l],g){case`replace`:c=this._fancyReplace(e,r,n,t,o,i);break;case`delete`:c=this._dump(`-`,e,r,n);break;case`insert`:c=this._dump(`+`,t,o,i);break;case`equal`:c=this._dump(` `,e,r,n);break;default:throw Error(`unknow tag (${g})`)}for(m=0,d=c.length;m<d;m++)f=c[m],p.push(f)}return p}_dump(e,t,n,r){var i,a,o,s,c=[];for(i=a=o=n,s=r;o<=s?a<s:a>s;i=o<=s?++a:--a)c.push(`${e} ${t[i]}`);return c}_plainReplace(e,t,n,r,i,a){var o,s,c,l,u,d,f,m,h,g;for(p(t<n&&i<a),a-i<n-t?(o=this._dump(`+`,r,i,a),g=this._dump(`-`,e,t,n)):(o=this._dump(`-`,e,t,n),g=this._dump(`+`,r,i,a)),f=[],h=[o,g],c=0,l=h.length;c<l;c++)for(s=h[c],m=0,u=s.length;m<u;m++)d=s[m],f.push(d);return f}_fancyReplace(e,t,n,r,i,o){var s,c,l,u,d,f,p,m,h,g,_,v,y,b,x,S,ee,C,te,w,T,ne,E,re,ie,D,ae,O,oe,se,ce,le,ue,de,fe,pe,me,he,ge,_e,ve,ye,be,k,xe;for([p,x]=[.74,.75],b=new a(this.charjunk),[S,ee]=[null,null],oe=[],te=w=fe=i,pe=o;fe<=pe?w<pe:w>pe;te=fe<=pe?++w:--w)for(g=r[te],b.setSeq2(g),C=se=me=t,he=n;me<=he?se<he:se>he;C=me<=he?++se:--se)c=e[C],c===g?S===null&&([S,ee]=[C,te]):(b.setSeq1(c),b.realQuickRatio()>p&&b.quickRatio()>p&&b.ratio()>p&&([p,m,h]=[b.ratio(),C,te]));if(p<x){if(S===null){for(ge=this._plainReplace(e,t,n,r,i,o),ce=0,E=ge.length;ce<E;ce++)O=ge[ce],oe.push(O);return oe}[m,h,p]=[S,ee,1]}else S=null;for(_e=this._fancyHelper(e,t,m,r,i,h),le=0,re=_e.length;le<re;le++)O=_e[le],oe.push(O);if([s,f]=[e[m],r[h]],S===null){for(d=y=``,b.setSeqs(s,f),ve=b.getOpcodes(),ue=0,ie=ve.length;ue<ie;ue++)switch([xe,l,u,_,v]=ve[ue],[T,ne]=[u-l,v-_],xe){case`replace`:d+=Array(T+1).join(`^`),y+=Array(ne+1).join(`^`);break;case`delete`:d+=Array(T+1).join(`-`);break;case`insert`:y+=Array(ne+1).join(`+`);break;case`equal`:d+=Array(T+1).join(` `),y+=Array(ne+1).join(` `);break;default:throw Error(`unknow tag (${xe})`)}for(ye=this._qformat(s,f,d,y),de=0,D=ye.length;de<D;de++)O=ye[de],oe.push(O)}else oe.push(` `+s);for(be=this._fancyHelper(e,m+1,n,r,h+1,o),k=0,ae=be.length;k<ae;k++)O=be[k],oe.push(O);return oe}_fancyHelper(e,t,n,r,i,a){var o=[];return t<n?o=i<a?this._fancyReplace(e,t,n,r,i,a):this._dump(`-`,e,t,n):i<a&&(o=this._dump(`+`,r,i,a)),o}_qformat(e,t,n,r){var i,a=[];return i=v(l(e,` `),l(t,` `)),i=v(i,l(n.slice(0,i),` `)),i=v(i,l(r.slice(0,i),` `)),n=n.slice(i).replace(/\s+$/,``),r=r.slice(i).replace(/\s+$/,``),a.push(`- `+e),n.length&&a.push(`? ${Array(i+1).join(` `)}${n}
3
3
  `),a.push(`+ `+t),r.length&&a.push(`? ${Array(i+1).join(` `)}${r}
4
4
  `),a}},i=/* @__PURE__ */ A(function(e,t=/^\s*#?\s*$/){return t.test(e)},`IS_LINE_JUNK`),r=/* @__PURE__ */ A(function(e,t=` `){return S.call(t,e)>=0},`IS_CHARACTER_JUNK`),d=/* @__PURE__ */ A(function(e,t){var n=e+1,r=t-e;return r===1?`${n}`:(r||n--,`${n},${r}`)},`_formatRangeUnified`),x=/* @__PURE__ */ A(function(e,t,{fromfile:n,tofile:r,fromfiledate:i,tofiledate:o,n:s,lineterm:c}={}){var l,u,f,p,m,h,g,_,v,y,b,x,S,ee,C,te,w,T,ne,E,re,ie,D,ae,O,oe,se,ce,le;for(n??=``,r??=``,i??=``,o??=``,s??=3,c??=`
5
5
  `,T=[],se=!1,D=new a(null,e,t).getGroupedOpcodes(),y=0,x=D.length;y<x;y++)for(m=D[y],se||(se=!0,p=i?` ${i}`:``,le=o?` ${o}`:``,T.push(`--- ${n}${p}${c}`),T.push(`+++ ${r}${le}${c}`)),[f,b]=[m[0],m[m.length-1]],l=d(f[1],b[2]),u=d(f[3],b[4]),T.push(`@@ -${l} +${u} @@${c}`),ne=0,S=m.length;ne<S;ne++)if([ce,h,g,_,v]=m[ne],ce===`equal`)for(ae=e.slice(h,g),E=0,ee=ae.length;E<ee;E++)w=ae[E],T.push(` `+w);else{if(ce===`replace`||ce===`delete`)for(O=e.slice(h,g),re=0,C=O.length;re<C;re++)w=O[re],T.push(`-`+w);if(ce===`replace`||ce===`insert`)for(oe=t.slice(_,v),ie=0,te=oe.length;ie<te;ie++)w=oe[ie],T.push(`+`+w)}return T},`unifiedDiff`),u=/* @__PURE__ */ A(function(e,t){var n=e+1,r=t-e;return r||n--,r<=1?`${n}`:`${n},${n+r-1}`},`_formatRangeContext`),m=/* @__PURE__ */ A(function(e,t,{fromfile:n,tofile:r,fromfiledate:i,tofiledate:s,n:c,lineterm:l}={}){var d,f,p,m,h,g,_,v,y,b,x,S,ee,C,te,w,T,ne,E,re,ie,D,ae,O,oe,se,ce,le,ue,de;for(n??=``,r??=``,i??=``,s??=``,c??=3,l??=`
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env node
2
- import"./api-Dnt6lRJG.mjs";import{t as e}from"./path-DRw6Y-nd.mjs";import{i as t,n}from"./auth-cj71dGxS.mjs";import{t as r}from"./dry-run-mrA7FFLR.mjs";import{a as i,t as a}from"./context-DlFhI9cN.mjs";import{t as o}from"./local-B3zt9PXR.mjs";import{t as s}from"./output-PRKYaJuo.mjs";import{t as c}from"./progress-AML-AVs4.mjs";import{t as l}from"./run-DAg7dfIW.mjs";import"./telemetry-DDs3zhdw.mjs";import{a as u,n as d}from"./prompt-Bnon9lfK.mjs";import{c as f,i as p,o as m,r as h,t as g}from"./body-parser-HN91kAf0.mjs";import{n as _,t as v}from"./input-validation-D7z60HJH.mjs";import{n as y,t as b}from"./raw-fetch-0T1SwPa1.mjs";var ee={method:`POST`,path:t=>e`/accounts/${t.account_id}/stream/keys`};function te(e){return e.usage(`$0 stream keys create
2
+ import"./api-Dnt6lRJG.mjs";import{t as e}from"./path-DRw6Y-nd.mjs";import{i as t,n}from"./auth-NIRm11Ab.mjs";import{t as r}from"./dry-run-mrA7FFLR.mjs";import{a as i,t as a}from"./context-CroqTqbk.mjs";import{t as o}from"./local-B3zt9PXR.mjs";import{t as s}from"./output-PRKYaJuo.mjs";import{t as c}from"./progress-DQfZZwit.mjs";import{t as l}from"./run-DhU17ztU.mjs";import"./telemetry-CruYXv5e.mjs";import{a as u,n as d}from"./prompt-e6K5lhdE.mjs";import{c as f,i as p,o as m,r as h,t as g}from"./body-parser-HN91kAf0.mjs";import{n as _,t as v}from"./input-validation-D7z60HJH.mjs";import{n as y,t as b}from"./raw-fetch-DXSBORQI.mjs";var ee={method:`POST`,path:t=>e`/accounts/${t.account_id}/stream/keys`};function te(e){return e.usage(`$0 stream keys create
3
3
 
4
4
  Creates an RSA private key in PEM and JWK formats. Key files are only displayed once after creation. Keys are created, used, and deleted independently of videos, and every key can sign any video.`).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const ne={command:`create`,describe:`Create signing keys`,builder:te,handler:async e=>l({command:`stream keys create`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){let e=await i();r({command:`cf stream keys create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${e??`<account-id>`}/stream/keys`,pathParams:{},bodyKind:`none`});return}let t=await n(e),l=e.local?o:await a();e.accountId=l;let u=await c(`Creating`,async()=>t.send(ee,{account_id:l}));s(u,{successLabel:`Created`})})};var re={method:`DELETE`,path:t=>e`/accounts/${t.account_id}/stream/keys/${t.identifier}`};function ie(e){return e.usage(`$0 stream keys delete <identifier>
5
5
 
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env node
2
- import{i as e,n as t}from"./auth-cj71dGxS.mjs";import{t as n}from"./path-DRw6Y-nd.mjs";import{c as r,r as i,t as a}from"./body-parser-HN91kAf0.mjs";import{t as o}from"./dry-run-mrA7FFLR.mjs";import{a as s,i as c,t as l}from"./context-DlFhI9cN.mjs";import{n as u}from"./input-validation-D7z60HJH.mjs";import{t as d}from"./local-B3zt9PXR.mjs";import{t as f}from"./output-PRKYaJuo.mjs";import{t as p}from"./run-DAg7dfIW.mjs";import{t as m}from"./progress-AML-AVs4.mjs";import{a as h,i as g,n as _}from"./prompt-Bnon9lfK.mjs";import"./telemetry-DDs3zhdw.mjs";import"./api-Dnt6lRJG.mjs";function v(e){return e.usage(`$0 tags account-resources delete
2
+ import{i as e,n as t}from"./auth-NIRm11Ab.mjs";import{t as n}from"./path-DRw6Y-nd.mjs";import{c as r,r as i,t as a}from"./body-parser-HN91kAf0.mjs";import{t as o}from"./dry-run-mrA7FFLR.mjs";import{a as s,i as c,t as l}from"./context-CroqTqbk.mjs";import{n as u}from"./input-validation-D7z60HJH.mjs";import{t as d}from"./local-B3zt9PXR.mjs";import{t as f}from"./output-PRKYaJuo.mjs";import{t as p}from"./run-DhU17ztU.mjs";import{t as m}from"./progress-DQfZZwit.mjs";import{a as h,i as g,n as _}from"./prompt-e6K5lhdE.mjs";import"./telemetry-CruYXv5e.mjs";import"./api-Dnt6lRJG.mjs";function v(e){return e.usage(`$0 tags account-resources delete
3
3
 
4
4
  Removes all tags from a specific account or zone-level resource.
5
5
 
@@ -1,2 +1,2 @@
1
1
  #!/usr/bin/env node
2
- import{a as e,n as t,r as n,t as r}from"./lifecycle-oud60haK.mjs";import{a as i,c as a,d as o,f as s,i as c,n as l,o as u,p as d,r as f,s as p,t as m,u as h}from"./run-DAg7dfIW.mjs";import{r as g}from"./sanitization-DkVWMHkc.mjs";import{t as _}from"./telemetry-DDs3zhdw.mjs";export{c as TELEMETRY_ENV_VAR,i as TELEMETRY_POLICY_DATE,_ as UNKNOWN_COMMAND_EVENT,r as allTelemetryDispatchesSettled,t as beginTelemetryRun,u as getBannerLastShown,p as getDeviceId,f as getTelemetryDispatcher,a as getTelemetryFromEnv,h as isFirstUsage,n as markCommandReported,o as resolveTelemetry,m as runWithTelemetry,g as sanitizeArgs,s as setBannerLastShown,d as setTelemetryPermission,e as wasCommandReported,l as withTelemetry};
2
+ import{a as e,n as t,r as n,t as r}from"./lifecycle-oud60haK.mjs";import{a as i,c as a,d as o,f as s,i as c,n as l,o as u,p as d,r as f,s as p,t as m,u as h}from"./run-DhU17ztU.mjs";import{r as g}from"./sanitization-DkVWMHkc.mjs";import{t as _}from"./telemetry-CruYXv5e.mjs";export{c as TELEMETRY_ENV_VAR,i as TELEMETRY_POLICY_DATE,_ as UNKNOWN_COMMAND_EVENT,r as allTelemetryDispatchesSettled,t as beginTelemetryRun,u as getBannerLastShown,p as getDeviceId,f as getTelemetryDispatcher,a as getTelemetryFromEnv,h as isFirstUsage,n as markCommandReported,o as resolveTelemetry,m as runWithTelemetry,g as sanitizeArgs,s as setBannerLastShown,d as setTelemetryPermission,e as wasCommandReported,l as withTelemetry};
@@ -0,0 +1,2 @@
1
+ #!/usr/bin/env node
2
+ import"./run-DhU17ztU.mjs";const e=`unknown command`;export{e as t};
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env node
2
- import"./api-Dnt6lRJG.mjs";import{t as e}from"./path-DRw6Y-nd.mjs";import{n as t}from"./auth-cj71dGxS.mjs";import{r as n,t as r}from"./body-parser-HN91kAf0.mjs";import{t as i}from"./dry-run-mrA7FFLR.mjs";import{n as a}from"./input-validation-D7z60HJH.mjs";import{t as o}from"./run-DAg7dfIW.mjs";import{t as s}from"./output-PRKYaJuo.mjs";import{t as c}from"./progress-AML-AVs4.mjs";import{a as l,n as u}from"./prompt-Bnon9lfK.mjs";import"./telemetry-DDs3zhdw.mjs";var d={method:`POST`,path:t=>e`/tenants/${t.tenant_id}/custom_ns`,body:`json`};function f(e){return e.usage(`$0 tenant-custom-nameservers create <tenant-id>
2
+ import"./api-Dnt6lRJG.mjs";import{t as e}from"./path-DRw6Y-nd.mjs";import{n as t}from"./auth-NIRm11Ab.mjs";import{r as n,t as r}from"./body-parser-HN91kAf0.mjs";import{t as i}from"./dry-run-mrA7FFLR.mjs";import{n as a}from"./input-validation-D7z60HJH.mjs";import{t as o}from"./run-DhU17ztU.mjs";import{t as s}from"./output-PRKYaJuo.mjs";import{t as c}from"./progress-DQfZZwit.mjs";import{a as l,n as u}from"./prompt-e6K5lhdE.mjs";import"./telemetry-CruYXv5e.mjs";var d={method:`POST`,path:t=>e`/tenants/${t.tenant_id}/custom_ns`,body:`json`};function f(e){return e.usage(`$0 tenant-custom-nameservers create <tenant-id>
3
3
 
4
4
  Adds a custom nameserver for a tenant.`).positional(`tenant-id`,{type:`string`,description:`Tenant identifier tag.`,demandOption:!0}).option(`ns-name`,{type:`string`,description:`The FQDN of the name server.`}).option(`ns-set`,{type:`number`,description:`The number of the set that this name server belongs to.`,default:1}).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 p={command:`create <tenant-id>`,describe:`Add Tenant Custom Nameserver`,builder:f,handler:async e=>o({command:`tenant-custom-nameservers create`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){i({command:`cf tenant-custom-nameservers create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/tenants/${e[`tenant-id`]==null?`<tenant-id>`:encodeURIComponent(String(e[`tenant-id`]))}/custom_ns`,pathParams:{"tenant-id":String(e[`tenant-id`]??``)},bodyKind:`json`,body:e.body===void 0?r({ns_name:a(e[`ns-name`],`ns-name`,`text`),ns_set:e[`ns-set`]}):n(e.body)});return}let o=e.body===void 0?void 0:n(e.body),u=await t(e);if(e.body!==void 0){let t=o,n=await c(`Creating`,async()=>u.send(d,{body:t,tenant_id:e[`tenant-id`]}));s(n,{successLabel:`Created`});return}e[`ns-name`]===void 0&&(e[`ns-name`]=await l(`ns-name`,`The FQDN of the name server.`));let f=r({ns_name:a(e[`ns-name`],`ns-name`,`text`),ns_set:e[`ns-set`]}),p=await c(`Creating`,async()=>u.send(d,{body:f,tenant_id:e[`tenant-id`]}));s(p,{successLabel:`Created`})})};var m={method:`DELETE`,path:t=>e`/tenants/${t.tenant_id}/custom_ns/${t.custom_ns_id}`};function h(e){return e.usage(`$0 tenant-custom-nameservers delete <custom-ns-id>
5
5
 
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env node
2
- import"./api-Dnt6lRJG.mjs";import{t as e}from"./path-DRw6Y-nd.mjs";import{n as t}from"./auth-cj71dGxS.mjs";import{t as n}from"./dry-run-mrA7FFLR.mjs";import{t as r}from"./output-PRKYaJuo.mjs";import{t as i}from"./progress-AML-AVs4.mjs";import{t as a}from"./run-DAg7dfIW.mjs";import"./telemetry-DDs3zhdw.mjs";var o={method:`GET`,path:t=>e`/tenants/${t.tenant_id}/accounts`,query:[`account_pubname`,`account_pubname.startsWith`,`account_pubname.endsWith`,`account_pubname.contains`,`name`,`name.startsWith`,`name.endsWith`,`name.contains`,`status`,`order_by`,`direction`,`include_total`,`page_token`,`page_size`],joined:[`account_pubname`,`account_pubname.startsWith`,`account_pubname.endsWith`,`account_pubname.contains`,`name`,`name.startsWith`,`name.endsWith`,`name.contains`,`status`,`order_by`,`direction`,`include_total`,`page_token`,`page_size`]};function s(e){return e.usage("$0 tenants accounts list\n\nLists all Cloudflare accounts across this tenant's hierarchy using the legacy Account response shape. Use `GET /organizations/{organization_id}/accounts` to list only accounts immediately attached to a specific Organization using the modern Account response shape. Use `page_token` and `page_size` for cursor pagination.").option(`tenant-id`,{type:`string`,description:`The ID of the tenant whose accounts to list.`,demandOption:!0}).option(`account-pubname`,{type:`string`,description:`(case-sensitive) Filter the list of accounts to where the account_pubname is equal to
2
+ import"./api-Dnt6lRJG.mjs";import{t as e}from"./path-DRw6Y-nd.mjs";import{n as t}from"./auth-NIRm11Ab.mjs";import{t as n}from"./dry-run-mrA7FFLR.mjs";import{t as r}from"./output-PRKYaJuo.mjs";import{t as i}from"./progress-DQfZZwit.mjs";import{t as a}from"./run-DhU17ztU.mjs";import"./telemetry-CruYXv5e.mjs";var o={method:`GET`,path:t=>e`/tenants/${t.tenant_id}/accounts`,query:[`account_pubname`,`account_pubname.startsWith`,`account_pubname.endsWith`,`account_pubname.contains`,`name`,`name.startsWith`,`name.endsWith`,`name.contains`,`status`,`order_by`,`direction`,`include_total`,`page_token`,`page_size`],joined:[`account_pubname`,`account_pubname.startsWith`,`account_pubname.endsWith`,`account_pubname.contains`,`name`,`name.startsWith`,`name.endsWith`,`name.contains`,`status`,`order_by`,`direction`,`include_total`,`page_token`,`page_size`]};function s(e){return e.usage("$0 tenants accounts list\n\nLists all Cloudflare accounts across this tenant's hierarchy using the legacy Account response shape. Use `GET /organizations/{organization_id}/accounts` to list only accounts immediately attached to a specific Organization using the modern Account response shape. Use `page_token` and `page_size` for cursor pagination.").option(`tenant-id`,{type:`string`,description:`The ID of the tenant whose accounts to list.`,demandOption:!0}).option(`account-pubname`,{type:`string`,description:`(case-sensitive) Filter the list of accounts to where the account_pubname is equal to
3
3
  a particular string.`}).option(`account-pubname-starts-with`,{type:`string`,description:`(case-insensitive) Filter the list of accounts to where the account_pubname starts with
4
4
  a particular string.`}).option(`account-pubname-ends-with`,{type:`string`,description:`(case-insensitive) Filter the list of accounts to where the account_pubname ends with
5
5
  a particular string.`}).option(`account-pubname-contains`,{type:`string`,description:`(case-insensitive) Filter the list of accounts to where the account_pubname contains
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env node
2
- import"./api-Dnt6lRJG.mjs";import{n as e}from"./auth-cj71dGxS.mjs";import{t}from"./path-DRw6Y-nd.mjs";import{t as n}from"./dry-run-mrA7FFLR.mjs";import{t as r}from"./local-B3zt9PXR.mjs";import{t as i}from"./output-PRKYaJuo.mjs";import{a,t as o}from"./context-DlFhI9cN.mjs";import{t as s}from"./progress-AML-AVs4.mjs";import"./telemetry-DDs3zhdw.mjs";import{o as c,r as l,t as u}from"./body-parser-HN91kAf0.mjs";import{t as d}from"./run-DAg7dfIW.mjs";import{n as f}from"./input-validation-D7z60HJH.mjs";import{a as p,n as m}from"./prompt-Bnon9lfK.mjs";import{t as h}from"./create-DmLDMvrj.mjs";import{t as g}from"./get-3XNn0upb.mjs";import{t as _}from"./lazy-command-QoHlmXHW.mjs";import{t as v}from"./hand-written-dry-run-B82fRl2N.mjs";var ee={method:`GET`,path:e=>t`/accounts/${e.account_id}/cfd_tunnel/${e.tunnel_id}/configurations`};function y(e){return e.usage(`$0 tunnels config get <tunnel-id>
2
+ import"./api-Dnt6lRJG.mjs";import{n as e}from"./auth-NIRm11Ab.mjs";import{t}from"./path-DRw6Y-nd.mjs";import{t as n}from"./dry-run-mrA7FFLR.mjs";import{t as r}from"./local-B3zt9PXR.mjs";import{t as i}from"./output-PRKYaJuo.mjs";import{a,t as o}from"./context-CroqTqbk.mjs";import{t as s}from"./progress-DQfZZwit.mjs";import"./telemetry-CruYXv5e.mjs";import{o as c,r as l,t as u}from"./body-parser-HN91kAf0.mjs";import{t as d}from"./run-DhU17ztU.mjs";import{n as f}from"./input-validation-D7z60HJH.mjs";import{a as p,n as m}from"./prompt-e6K5lhdE.mjs";import{t as h}from"./create-DmLDMvrj.mjs";import{t as g}from"./get-3XNn0upb.mjs";import{t as _}from"./lazy-command-Dfv2jIGz.mjs";import{t as v}from"./hand-written-dry-run-B82fRl2N.mjs";var ee={method:`GET`,path:e=>t`/accounts/${e.account_id}/cfd_tunnel/${e.tunnel_id}/configurations`};function y(e){return e.usage(`$0 tunnels config get <tunnel-id>
3
3
 
4
4
  Retrieves the configuration for a remotely managed Cloudflare Tunnel.`).positional(`tunnel-id`,{type:`string`,description:`UUID of the tunnel.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const te={command:`get <tunnel-id>`,describe:`Get Tunnel configuration`,builder:y,handler:async t=>d({command:`tunnels config get`,classification:{safeFlags:[`dry-run`]}},t,async()=>{if(t.dryRun){let e=await a();n({command:`cf tunnels config get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${e??`<account-id>`}/cfd_tunnel/${t[`tunnel-id`]==null?`<tunnel-id>`:encodeURIComponent(String(t[`tunnel-id`]))}/configurations`,pathParams:{"tunnel-id":String(t[`tunnel-id`]??``)},bodyKind:`none`});return}let c=await e(t),l=t.local?r:await o();t.accountId=l;let u=await s(`Loading`,async()=>c.send(ee,{account_id:l,tunnel_id:t[`tunnel-id`]}));i(u,{successLabel:`Loaded`})})};var b={method:`PUT`,path:e=>t`/accounts/${e.account_id}/cfd_tunnel/${e.tunnel_id}/configurations`,body:`json`};function x(e){return e.usage(`$0 tunnels config update <tunnel-id>
5
5
 
@@ -24,4 +24,4 @@ Lists and filters all types of Tunnels in an account.`).option(`name`,{type:`str
24
24
 
25
25
  Creates a short-lived management token for the requested Tunnel management resources, such as streaming logs. Treat the token as a secret.`).positional(`tunnel-id`,{type:`string`,description:`UUID of the tunnel.`,demandOption:!0}).option(`resources`,{type:`string`,array:!0,description:`The resources 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 Z={command:`create <tunnel-id>`,describe:`Get a Cloudflare Tunnel management token`,builder:X,handler:async t=>d({command:`tunnels management-token create`,classification:{safeFlags:[`dry-run`]}},t,async()=>{if(t.dryRun){let e=await a();n({command:`cf tunnels management-token create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${e??`<account-id>`}/cfd_tunnel/${t[`tunnel-id`]==null?`<tunnel-id>`:encodeURIComponent(String(t[`tunnel-id`]))}/management`,pathParams:{"tunnel-id":String(t[`tunnel-id`]??``)},bodyKind:`json`,body:t.body===void 0?u({resources:t.resources}):l(t.body)});return}let c=t.body===void 0?void 0:l(t.body),d=await e(t),f=t.local?r:await o();if(t.accountId=f,t.body!==void 0){let e=c,n=await s(`Creating`,async()=>d.send(h,{body:e,account_id:f,tunnel_id:t[`tunnel-id`]}));i(n,{successLabel:`Created`});return}if(t.resources===void 0)throw Error(`--resources is required (or pass --body with this field set).`);let p=u({resources:t.resources}),m=await s(`Creating`,async()=>d.send(h,{body:p,account_id:f,tunnel_id:t[`tunnel-id`]}));i(m,{successLabel:`Created`})})},Q={command:`management-token`,describe:`Operations for management-token`,builder:e=>e.command(Z).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};function ne(e){return e.usage(`$0 tunnels token get <tunnel-id>
26
26
 
27
- Retrieves the token used to run cloudflared and associate it with a specific Cloudflare Tunnel. Treat the token as a secret.`).positional(`tunnel-id`,{type:`string`,description:`UUID of the tunnel.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const re={command:`get <tunnel-id>`,describe:`Get a Cloudflare Tunnel token`,builder:ne,handler:async t=>d({command:`tunnels token get`,classification:{safeFlags:[`dry-run`]}},t,async()=>{if(t.dryRun){let e=await a();n({command:`cf tunnels token get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${e??`<account-id>`}/cfd_tunnel/${t[`tunnel-id`]==null?`<tunnel-id>`:encodeURIComponent(String(t[`tunnel-id`]))}/token`,pathParams:{"tunnel-id":String(t[`tunnel-id`]??``)},bodyKind:`none`});return}let c=await e(t),l=t.local?r:await o();t.accountId=l;let u=await s(`Loading`,async()=>c.send(g,{account_id:l,tunnel_id:t[`tunnel-id`]}));i(u,{successLabel:`Loaded`})})},ie={command:`token`,describe:`Operations for token`,builder:e=>e.command(re).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var ae=_(`diag`,`Create a diagnostic report from a local cloudflared instance.`,()=>import(`./command-aeKPI1bt.mjs`),{command:`tunnels diag`,recordArgs:!1}),oe=_(`login`,`Authorize cloudflared and download an origin certificate for locally managed tunnels.`,()=>import(`./command-s15KaL-x.mjs`),{command:`tunnels login`,recordArgs:!1}),$=_(`quick-start <url>`,`Expose a local URL with a temporary trycloudflare.com tunnel. The tunnel remains active until cf exits.`,()=>import(`./command-B6ustzcW.mjs`),{command:`tunnels quick-start`,recordArgs:!1}),se=_(`ready`,`Check the /ready endpoint exposed by a local cloudflared instance.`,()=>import(`./command-C2HYwGn_.mjs`),{command:`tunnels ready`,recordArgs:!1}),ce=_(`run [tunnel]`,`Run a named Cloudflare Tunnel using the cf-managed cloudflared binary.`,()=>import(`./command-Xqidhyr_.mjs`),{command:`tunnels run`,recordArgs:!1}),le=_(`tail [tunnel-id]`,`Stream logs from a remote cloudflared instance.`,()=>import(`./command-DoXuskBZ.mjs`),{command:`tunnels tail`,recordArgs:!1});const ue={command:`tunnels`,describe:`tunnels`,builder:e=>e.command(L).command(B).command(v(ae,`preview`)).command(U).command(K).command(Y).command(v(oe,`preview`)).command(v($,`preview`)).command(v(se,`preview`)).command(v(ce,`preview`)).command(v(le,`preview`)).command(C).command(A).command(P).command(Q).command(ie).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};export{ue as default};
27
+ Retrieves the token used to run cloudflared and associate it with a specific Cloudflare Tunnel. Treat the token as a secret.`).positional(`tunnel-id`,{type:`string`,description:`UUID of the tunnel.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const re={command:`get <tunnel-id>`,describe:`Get a Cloudflare Tunnel token`,builder:ne,handler:async t=>d({command:`tunnels token get`,classification:{safeFlags:[`dry-run`]}},t,async()=>{if(t.dryRun){let e=await a();n({command:`cf tunnels token get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${e??`<account-id>`}/cfd_tunnel/${t[`tunnel-id`]==null?`<tunnel-id>`:encodeURIComponent(String(t[`tunnel-id`]))}/token`,pathParams:{"tunnel-id":String(t[`tunnel-id`]??``)},bodyKind:`none`});return}let c=await e(t),l=t.local?r:await o();t.accountId=l;let u=await s(`Loading`,async()=>c.send(g,{account_id:l,tunnel_id:t[`tunnel-id`]}));i(u,{successLabel:`Loaded`})})},ie={command:`token`,describe:`Operations for token`,builder:e=>e.command(re).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var ae=_(`diag`,`Create a diagnostic report from a local cloudflared instance.`,()=>import(`./command-aeKPI1bt.mjs`),{command:`tunnels diag`,recordArgs:!1}),oe=_(`login`,`Authorize cloudflared and download an origin certificate for locally managed tunnels.`,()=>import(`./command-V0dODmT-.mjs`),{command:`tunnels login`,recordArgs:!1}),$=_(`quick-start <url>`,`Expose a local URL with a temporary trycloudflare.com tunnel. The tunnel remains active until cf exits.`,()=>import(`./command-B6ustzcW.mjs`),{command:`tunnels quick-start`,recordArgs:!1}),se=_(`ready`,`Check the /ready endpoint exposed by a local cloudflared instance.`,()=>import(`./command-C2HYwGn_.mjs`),{command:`tunnels ready`,recordArgs:!1}),ce=_(`run [tunnel]`,`Run a named Cloudflare Tunnel using the cf-managed cloudflared binary.`,()=>import(`./command-BAzptjLF.mjs`),{command:`tunnels run`,recordArgs:!1}),le=_(`tail [tunnel-id]`,`Stream logs from a remote cloudflared instance.`,()=>import(`./command-MWbvYsQH.mjs`),{command:`tunnels tail`,recordArgs:!1});const ue={command:`tunnels`,describe:`tunnels`,builder:e=>e.command(L).command(B).command(v(ae,`preview`)).command(U).command(K).command(Y).command(v(oe,`preview`)).command(v($,`preview`)).command(v(se,`preview`)).command(v(ce,`preview`)).command(v(le,`preview`)).command(C).command(A).command(P).command(Q).command(ie).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};export{ue as default};
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env node
2
- import"./api-Dnt6lRJG.mjs";import{t as e}from"./path-DRw6Y-nd.mjs";import{n as t}from"./auth-cj71dGxS.mjs";import{r as n,t as r}from"./body-parser-HN91kAf0.mjs";import{a as i,t as a}from"./context-DlFhI9cN.mjs";import{t as o}from"./dry-run-mrA7FFLR.mjs";import{n as s}from"./input-validation-D7z60HJH.mjs";import{t as c}from"./local-B3zt9PXR.mjs";import{t as l}from"./run-DAg7dfIW.mjs";import{t as u}from"./output-PRKYaJuo.mjs";import{t as d}from"./progress-AML-AVs4.mjs";import{a as f,i as p,n as m}from"./prompt-Bnon9lfK.mjs";import"./telemetry-DDs3zhdw.mjs";var h={method:`POST`,path:t=>e`/accounts/${t.account_id}/challenges/widgets`,query:[`page`,`per_page`,`order`,`direction`,`filter`],body:`json`};function g(e){return e.usage(`$0 turnstile widgets create
2
+ import"./api-Dnt6lRJG.mjs";import{t as e}from"./path-DRw6Y-nd.mjs";import{n as t}from"./auth-NIRm11Ab.mjs";import{r as n,t as r}from"./body-parser-HN91kAf0.mjs";import{a as i,t as a}from"./context-CroqTqbk.mjs";import{t as o}from"./dry-run-mrA7FFLR.mjs";import{n as s}from"./input-validation-D7z60HJH.mjs";import{t as c}from"./local-B3zt9PXR.mjs";import{t as l}from"./run-DhU17ztU.mjs";import{t as u}from"./output-PRKYaJuo.mjs";import{t as d}from"./progress-DQfZZwit.mjs";import{a as f,i as p,n as m}from"./prompt-e6K5lhdE.mjs";import"./telemetry-CruYXv5e.mjs";var h={method:`POST`,path:t=>e`/accounts/${t.account_id}/challenges/widgets`,query:[`page`,`per_page`,`order`,`direction`,`filter`],body:`json`};function g(e){return e.usage(`$0 turnstile widgets create
3
3
 
4
4
  Creates a Turnstile widget for an account.`).option(`page`,{type:`number`,description:`Page number of paginated results.`}).option(`per-page`,{type:`number`,description:`Number of items per page.`}).option(`order`,{type:`string`,description:`Field to order widgets by.`,choices:[`id`,`sitekey`,`name`,`created_on`,`modified_on`]}).option(`direction`,{type:`string`,description:`Direction to order widgets.`,choices:[`asc`,`desc`]}).option(`filter`,{type:`string`,description:"Filter widgets by field. The `name` field uses case-insensitive\nsubstring matching; `sitekey` uses exact matching.\nFormat: `field:value`\n\nSupported fields:\n- `name` - Filter by widget name (e.g., `filter=name:login-form`)\n- `sitekey` - Filter by sitekey (e.g., `filter=sitekey:0x4AAA`)\n\nReturns 400 Bad Request if the field is unsupported or format is invalid.\nAn empty filter value returns all results."}).option(`bot-fight-mode`,{type:`boolean`,description:`If bot_fight_mode is set to \`true\`, Cloudflare issues computationally
5
5
  expensive challenges in response to malicious bots (ENT only).
@@ -0,0 +1,2 @@
1
+ #!/usr/bin/env node
2
+ import"./blocks-DdIA5quB.mjs";import"./theme-BGHWSKCw.mjs";export{};
@@ -1,2 +1,2 @@
1
1
  #!/usr/bin/env node
2
- export{n as getUpdateNotice,r as maybeStartBackgroundUpdateCheck}from"./update-check-D3axIoUi.mjs";
2
+ export{n as getUpdateNotice,r as maybeStartBackgroundUpdateCheck}from"./update-check-CV30Z3FO.mjs";