cf 1.0.0-beta.2 → 1.0.0-beta.4

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 (311) hide show
  1. package/README.md +1 -0
  2. package/dist/_meta/commands.json +28143 -30372
  3. package/dist/_meta/hand-written-commands.json +72 -49
  4. package/dist/_meta/schemas.json +18731 -20305
  5. package/dist/{abuse-reports-JcwSaW-c.mjs → abuse-reports-L4L7sC0F.mjs} +1 -1
  6. package/dist/access-DUQisFsH.mjs +2 -0
  7. package/dist/{account-CLsfIk5j.mjs → account-J7N4Ukse.mjs} +1 -1
  8. package/dist/{account-tags-BJdDiyDi.mjs → account-tags-DMmTopgx.mjs} +1 -1
  9. package/dist/{accounts-6eXqIqSW.mjs → accounts-DbZdpH5e.mjs} +1 -1
  10. package/dist/{acm-ChNLnPqM.mjs → acm-BtXPdUqH.mjs} +1 -1
  11. package/dist/{addressing-z8ei_TCh.mjs → addressing-Bc_ZSmrK.mjs} +5 -5
  12. package/dist/{agent-memory-Un0usAVF.mjs → agent-memory-CEUI1wKI.mjs} +1 -1
  13. package/dist/{ai-Bj8kgDf7.mjs → ai-CFHaVQcc.mjs} +1 -1
  14. package/dist/{ai-audit-FR6QuDK_.mjs → ai-audit-guygqmOl.mjs} +1 -1
  15. package/dist/ai-gateway-BcKOL4WQ.mjs +80 -0
  16. package/dist/{ai-search-BvMeOKK6.mjs → ai-search-DJvNkX2o.mjs} +1 -1
  17. package/dist/{ai-security-BHvDKoM1.mjs → ai-security-CVaHbGzn.mjs} +1 -1
  18. package/dist/{alerting-DmRZCAjg.mjs → alerting-wy4IuGs7.mjs} +1 -1
  19. package/dist/{analytics-DqidJ4qc.mjs → analytics-Do4VMrPX.mjs} +2 -2
  20. package/dist/{analytics_engine-I7N0I6yP.mjs → analytics_engine-Cv7IF8ex.mjs} +1 -1
  21. package/dist/{api-security-BMNhdDyR.mjs → api-security-fuzV322d.mjs} +1 -1
  22. package/dist/{argo-U5TIBcub.mjs → argo-BBf-Jw0O.mjs} +1 -1
  23. package/dist/{artifacts-Byw1W73U.mjs → artifacts-B7_OhBxW.mjs} +1 -1
  24. package/dist/{audit-logs-C6zyFeKM.mjs → audit-logs-DyARgcxN.mjs} +1 -1
  25. package/dist/{auth-B5p3SIhO.mjs → auth-BYFcxn1F.mjs} +2 -2
  26. package/dist/{auth-CosaKfuk.mjs → auth-CiOv7s9F.mjs} +1 -1
  27. package/dist/{autoconfig-DED3bWob.mjs → autoconfig-DbL_FL5k.mjs} +74 -74
  28. package/dist/{banner-Xk4xBN8U.mjs → banner-ClclgnBn.mjs} +1 -1
  29. package/dist/{billing-BS1raRJt.mjs → billing-07_VIO4X.mjs} +1 -1
  30. package/dist/{bot-management-Cn6xfGzJ.mjs → bot-management-CmkPUu2I.mjs} +1 -1
  31. package/dist/{botnet-feed-DtWOPNfw.mjs → botnet-feed-Bn5pE_rx.mjs} +1 -1
  32. package/dist/{brand-protection-BcEQ66bT.mjs → brand-protection-CWDqPOXe.mjs} +1 -1
  33. package/dist/{browser-run-RZ7ZPRop.mjs → browser-run-CfEIfpnQ.mjs} +1 -1
  34. package/dist/build-BmLpTw4w.mjs +2 -0
  35. package/dist/build-DEbkHHVh.mjs +2 -0
  36. package/dist/{builds-AOCMH4CE.mjs → builds-mgouQLUs.mjs} +1 -1
  37. package/dist/{cache-D_EBxDff.mjs → cache-DXLofz5T.mjs} +1 -1
  38. package/dist/{certificate-authorities-B6rtjuaT.mjs → certificate-authorities-BfW-rEpf.mjs} +1 -1
  39. package/dist/{cf--3tGe71B.mjs → cf-O3gEaXYZ.mjs} +11 -11
  40. package/dist/{chunk-M77HNR46-BqG3fjQz.mjs → chunk-M77HNR46-DPbhuhiy.mjs} +1 -1
  41. package/dist/{chunk-RV27PEH3-C8_6bMgi.mjs → chunk-RV27PEH3-Cws_30ln.mjs} +30 -30
  42. package/dist/cli-Dgk9bd8j.mjs +6 -0
  43. package/dist/{client-certificates-uBOjGcgo.mjs → client-certificates-By2A46a2.mjs} +1 -1
  44. package/dist/{client-side-security-Bm7JwGaG.mjs → client-side-security-Bo6ZwJOS.mjs} +1 -1
  45. package/dist/{cloud-connector-69M2Dx8h.mjs → cloud-connector-DYb_3u-M.mjs} +1 -1
  46. package/dist/{cloudflared-Ba5LySkU.mjs → cloudflared-91JvyShh.mjs} +1 -1
  47. package/dist/{cloudforce-one-Xn2mlAPv.mjs → cloudforce-one-D8l0I5PL.mjs} +1 -1
  48. package/dist/command-BPfW-yE4.mjs +2 -0
  49. package/dist/{command-Cb0pS8T5.mjs → command-BgBsFEYv.mjs} +1 -1
  50. package/dist/{command-DEC5PwJo.mjs → command-C3Qhz4kU.mjs} +1 -1
  51. package/dist/command-C72KLHMc.mjs +2 -0
  52. package/dist/command-C7cOrHdI.mjs +2 -0
  53. package/dist/command-CGD1oByJ.mjs +2 -0
  54. package/dist/command-CJR1CUK_.mjs +2 -0
  55. package/dist/command-C_lQtSPg.mjs +2 -0
  56. package/dist/{command-DCpX9Cem.mjs → command-DH67hNLj.mjs} +1 -1
  57. package/dist/command-DJJN9xaA.mjs +2 -0
  58. package/dist/command-DRlUj6lW.mjs +2 -0
  59. package/dist/command-DYeBZ5mA.mjs +2 -0
  60. package/dist/command-DaAGN9uP.mjs +2 -0
  61. package/dist/{command-Cz_bKDWf.mjs → command-DjNcY4cf.mjs} +1 -1
  62. package/dist/command-gSmdvn_d.mjs +2 -0
  63. package/dist/{completions-DZDltM9V.mjs → completions-DUDx3DwX.mjs} +26 -26
  64. package/dist/{connector-interrupts-DTy6laab.mjs → connector-interrupts-DIMvaZhN.mjs} +1 -1
  65. package/dist/{connector-telemetry-events-CJqGGvFJ.mjs → connector-telemetry-events-TWQvm-cj.mjs} +1 -1
  66. package/dist/{connector-telemetry-snapshots-BPxhPhr6.mjs → connector-telemetry-snapshots-Dyoe-_R3.mjs} +1 -1
  67. package/dist/{connectors-CdfCcZuA.mjs → connectors-D7ZFg3hB.mjs} +1 -1
  68. package/dist/{containers-VMqcxH5a.mjs → containers-Bu3tLjU1.mjs} +1 -1
  69. package/dist/{containers-C7z53QcY.mjs → containers-CduXjFBJ.mjs} +88 -90
  70. package/dist/{content-scan-BirgZrmr.mjs → content-scan-CVBD6mUI.mjs} +1 -1
  71. package/dist/{context-Dzzbc9RK.mjs → context-BsGrhAqB.mjs} +2 -2
  72. package/dist/{cps-DzFm3zKp.mjs → cps-CgiRKmTe.mjs} +1 -1
  73. package/dist/{csamScanner-D2_OO5-1.mjs → csamScanner-BlXIOFFe.mjs} +1 -1
  74. package/dist/{ct-alerting-B7wQkFVl.mjs → ct-alerting-CJZK0uSQ.mjs} +1 -1
  75. package/dist/{custom-certificates-BKcCfbH8.mjs → custom-certificates-DFaj_czg.mjs} +1 -1
  76. package/dist/{custom-csrs-CXoOxir4.mjs → custom-csrs-BnFQpjOo.mjs} +1 -1
  77. package/dist/{custom-hostnames-CNYfnCOd.mjs → custom-hostnames-DSnE6xOT.mjs} +1 -1
  78. package/dist/{custom-nameservers-BlLM7a4L.mjs → custom-nameservers-CdQOt_qU.mjs} +1 -1
  79. package/dist/{custom-pages-BcWoypet.mjs → custom-pages-TWGlS6Ms.mjs} +1 -1
  80. package/dist/{d1-CvrHsqYY.mjs → d1-Cbqx2kAz.mjs} +1 -1
  81. package/dist/{dcv-delegation-9_Hl-5v-.mjs → dcv-delegation-DM3oGGio.mjs} +1 -1
  82. package/dist/delegate.mjs +1 -1
  83. package/dist/{deploy-BlXYtvTd.mjs → deploy-BZUWZ888.mjs} +1 -1
  84. package/dist/{deploy-input-DTXVZ2QJ.mjs → deploy-input-ChEbf2Kp.mjs} +1 -1
  85. package/dist/dev-OsbQIdD8.mjs +4 -0
  86. package/dist/{diagnostics-BxHs1EJB.mjs → diagnostics-8bbleTmW.mjs} +1 -1
  87. package/dist/{dialog-ClHoC_cG.mjs → dialog-BlUXJKbA.mjs} +1 -1
  88. package/dist/discover-DgHRf-qo.mjs +2 -0
  89. package/dist/discover-VRFBjse7.mjs +2 -0
  90. package/dist/{dist-CmyJy57B.mjs → dist-DTN-pqSs.mjs} +14 -14
  91. package/dist/{dist-Cpb7_h4N.mjs → dist-DW47TUGh.mjs} +1 -1
  92. package/dist/{dist-cGGV-p_F.mjs → dist-DfMipWKR.mjs} +3 -3
  93. package/dist/{dls-D7GXW-N3.mjs → dls-TzQpry2j.mjs} +1 -1
  94. package/dist/{dns-B0mdWJO5.mjs → dns-Bzv4YLeg.mjs} +1 -1
  95. package/dist/{dns-firewall-BG0bzuL3.mjs → dns-firewall-BjWwOmDR.mjs} +1 -1
  96. package/dist/{dot-prop-IITUZ2XW-BO5KJUwL.mjs → dot-prop-IITUZ2XW-BilKo4kO.mjs} +1 -1
  97. package/dist/dotenv-CcQjGlV0.mjs +4 -0
  98. package/dist/dry-run-Bq0JAsbX.mjs +2 -0
  99. package/dist/{durable-objects-DW0CsJzR.mjs → durable-objects-CRhSGkpc.mjs} +1 -1
  100. package/dist/{email-auth-Ls-7Yijm.mjs → email-auth-Bth4_FHy.mjs} +1 -1
  101. package/dist/{email-routing-DVaFhg-3.mjs → email-routing-CkTh4F5j.mjs} +1 -1
  102. package/dist/{email-security-vnwkqlgp.mjs → email-security-C-2jADxE.mjs} +1 -1
  103. package/dist/{email-sending-CbMUicJz.mjs → email-sending-B_sd4ouE.mjs} +1 -1
  104. package/dist/error-sanitization-Cu-8OKRA.mjs +2 -0
  105. package/dist/{error-sanitization-TV6O0aCD.mjs → error-sanitization-Dc4bLj8k.mjs} +1 -1
  106. package/dist/{fieldExtractors-2EkDoJg8.mjs → fieldExtractors-z92V55-Y.mjs} +1 -1
  107. package/dist/{firewall-BK4QYqRe.mjs → firewall-0yKpxdjj.mjs} +1 -1
  108. package/dist/{flagship--lHQ0H3n.mjs → flagship-IRVq23te.mjs} +1 -1
  109. package/dist/{fraud-CaoRrQ8W.mjs → fraud-BpJ_aoIE.mjs} +1 -1
  110. package/dist/{generate-CrKNH6ms.mjs → generate-iV6OVNin.mjs} +1 -1
  111. package/dist/generate-qMU-2MgC.mjs +2 -0
  112. package/dist/{google-tag-gateway-DDzLPmk5.mjs → google-tag-gateway-DA_7SCC3.mjs} +1 -1
  113. package/dist/gt-DmcMNPX6.mjs +2 -0
  114. package/dist/{healthchecks-Q2uXvt4m.mjs → healthchecks-C-GthoQz.mjs} +1 -1
  115. package/dist/{hostnames-CsaYnis6.mjs → hostnames-CH6utzVv.mjs} +1 -1
  116. package/dist/{hyperdrive-DDr6sAkw.mjs → hyperdrive-_rIC33bB.mjs} +1 -1
  117. package/dist/{iam-CmzocepZ.mjs → iam-sseKl99z.mjs} +1 -1
  118. package/dist/{images-Ux0Phsbi.mjs → images-CvIOwtg0.mjs} +1 -1
  119. package/dist/index.mjs +1 -1
  120. package/dist/{init-Nx4RRgfT.mjs → init-DEIhItNF.mjs} +2 -2
  121. package/dist/{intel-bgS4g7nx.mjs → intel-Da84oZMO.mjs} +1 -1
  122. package/dist/interactive-SgAjen2z.mjs +2 -0
  123. package/dist/{ips-BDiolgWF.mjs → ips-zTTd_3jg.mjs} +1 -1
  124. package/dist/{keyless-certificates-C_TwTMql.mjs → keyless-certificates-BGOUKdJc.mjs} +1 -1
  125. package/dist/{keys-Cr8AqQDY.mjs → keys-CDnrfmiS.mjs} +1 -1
  126. package/dist/kv-C5jR7vjM.mjs +15 -0
  127. package/dist/lazy-command-DZtpMsVB.mjs +2 -0
  128. package/dist/{leaked-credential-checks-De7ph4VA.mjs → leaked-credential-checks-B7WSzVG3.mjs} +1 -1
  129. package/dist/{load-balancers-DXt4ndF4.mjs → load-balancers-DG9wMQUM.mjs} +1 -1
  130. package/dist/{local-OKXweFsd.mjs → local-B3OyWKkW.mjs} +1 -1
  131. package/dist/local-qOpZjDed.mjs +2 -0
  132. package/dist/{local-runtime-tTYpniPS.mjs → local-runtime-Co5vVDlI.mjs} +1 -1
  133. package/dist/{login-BurQ63Ws.mjs → login-k3QLVysD.mjs} +1 -1
  134. package/dist/{login-CmlHvH5k.mjs → login-rJanUgdL.mjs} +1 -1
  135. package/dist/{logo-matches-CQ60P96J.mjs → logo-matches-5nijgkg7.mjs} +1 -1
  136. package/dist/{logos-u7UwT8MH.mjs → logos-BRRqg8_2.mjs} +1 -1
  137. package/dist/{logpush-IoIe8e80.mjs → logpush-Br7H8sRD.mjs} +1 -1
  138. package/dist/{logs-ih5tyXEE.mjs → logs-CBU44LT8.mjs} +1 -1
  139. package/dist/{magic-cloud-networking-CWNFnjcY.mjs → magic-cloud-networking-Bu7O7wKz.mjs} +1 -1
  140. package/dist/{magic-network-monitoring-ClfZleF8.mjs → magic-network-monitoring-Bnc--4Jr.mjs} +1 -1
  141. package/dist/{magic-transit-D69pkEVW.mjs → magic-transit-Dxr86HKN.mjs} +1 -1
  142. package/dist/{managed-defense-BHdmL0vx.mjs → managed-defense-Bm_jKFTN.mjs} +1 -1
  143. package/dist/{managed-transforms-DbCR4LUg.mjs → managed-transforms-D5mvHv_N.mjs} +1 -1
  144. package/dist/{matches-Cou6RVkh.mjs → matches-Dhc1eSWw.mjs} +1 -1
  145. package/dist/{mcp-CQYfM19s.mjs → mcp-B-PBoBl5.mjs} +1 -1
  146. package/dist/{mesh-CXqaAFS4.mjs → mesh-CW8B4naI.mjs} +1 -1
  147. package/dist/migrate-B4kBnkpV.mjs +2 -0
  148. package/dist/{mtls-certificates-DNeId8xS.mjs → mtls-certificates-swvfPqA2.mjs} +1 -1
  149. package/dist/{network-interconnects-BNon8iUs.mjs → network-interconnects-CjXYZC4g.mjs} +1 -1
  150. package/dist/{network-B7V3JbU7.mjs → network-iwRBn0i7.mjs} +1 -1
  151. package/dist/{oauth-DM8q-TYg.mjs → oauth-CrTr-mRe.mjs} +1 -1
  152. package/dist/oauth-DJW_HyaL.mjs +9 -0
  153. package/dist/{oauth-clients-gGmWIWHl.mjs → oauth-clients-DGUJzFFu.mjs} +1 -1
  154. package/dist/{oauth-scopes-DSEu331u.mjs → oauth-scopes-Bl0YUOHt.mjs} +1 -1
  155. package/dist/{observability-_VJhfwM1.mjs → observability-DRHiMrLy.mjs} +1 -1
  156. package/dist/{open-PCXX3ZDZ-DobJT1Mj.mjs → open-PCXX3ZDZ-BKRik1gi.mjs} +3 -3
  157. package/dist/{organization-DW4EpwGl.mjs → organization-BoMJzks7.mjs} +1 -1
  158. package/dist/{organizations-DE1g2wVq.mjs → organizations-UGtCHzSq.mjs} +1 -1
  159. package/dist/{origin-ca-certificates-D3ULDV__.mjs → origin-ca-certificates-CdByaOCe.mjs} +1 -1
  160. package/dist/{origin-post-quantum-encryption-BLropaz7.mjs → origin-post-quantum-encryption-GjmifGkF.mjs} +1 -1
  161. package/dist/{origin-tls-client-auth-C87TG2i_.mjs → origin-tls-client-auth-CCIqSj_C.mjs} +1 -1
  162. package/dist/{output-CZt-berV.mjs → output-CvQFJkvi.mjs} +1 -1
  163. package/dist/{page-rules-tlb9P-7V.mjs → page-rules-Btn-r3QF.mjs} +1 -1
  164. package/dist/pages-iil93G96.mjs +60 -0
  165. package/dist/{pay-per-crawl-C50wI-Iz.mjs → pay-per-crawl-DcAZuk9T.mjs} +1 -1
  166. package/dist/{pay-per-use-DHHIvynU.mjs → pay-per-use-z0Iwy9rN.mjs} +1 -1
  167. package/dist/{pipelines-Y2icOwuf.mjs → pipelines-YRPwntqo.mjs} +1 -1
  168. package/dist/{precursor-DeyurJSC.mjs → precursor-Bcww14RH.mjs} +1 -1
  169. package/dist/previews-BBn-IiQu.mjs +4 -0
  170. package/dist/{progress-C9dWgc3J.mjs → progress-5nsUpQL6.mjs} +1 -1
  171. package/dist/{prompt-Mh69ni1N.mjs → prompt-Ba_bys2F.mjs} +1 -1
  172. package/dist/{queries-DyUJefwL.mjs → queries-lxdncISw.mjs} +1 -1
  173. package/dist/{queues-CdNe4tGY.mjs → queues-Egb0KXYK.mjs} +1 -1
  174. package/dist/r2-BD4NOkR7.mjs +132 -0
  175. package/dist/{r2-data-catalog-D_zDlmVD.mjs → r2-data-catalog-CI-oHtKe.mjs} +1 -1
  176. package/dist/{radar-CSguicKC.mjs → radar-B4dtfeBP.mjs} +1 -1
  177. package/dist/{raw-fetch-1ygCOcT_.mjs → raw-fetch-AX_Gz3c3.mjs} +1 -1
  178. package/dist/{realtime-CvWs5pi3.mjs → realtime-CtLXkW8l.mjs} +1 -1
  179. package/dist/{registrar-DQUxn0FK.mjs → registrar-I9XClUOe.mjs} +1 -1
  180. package/dist/{registrar-sandbox-Q7ZEmg2x.mjs → registrar-sandbox-DAqK58QS.mjs} +1 -1
  181. package/dist/{registry-4Sw95M5_.mjs → registry-DBMUTYqf.mjs} +1 -1
  182. package/dist/{reporting-DJShxeDv.mjs → reporting-BYsEUCIE.mjs} +1 -1
  183. package/dist/{request-headers-DFBBErJg.mjs → request-headers-sc4CaZX0.mjs} +1 -1
  184. package/dist/{request-tracers-DD8HlG61.mjs → request-tracers-DXr9Dr2z.mjs} +1 -1
  185. package/dist/resolve-PZuJ878-.mjs +2 -0
  186. package/dist/{resource-sharing-J46JMWQP.mjs → resource-sharing-DgbnNgCQ.mjs} +1 -1
  187. package/dist/{resource-tagging-DLZJLIqy.mjs → resource-tagging-CjPU8PpX.mjs} +1 -1
  188. package/dist/{rules-D068LfBR.mjs → rules-BrshTdy1.mjs} +1 -1
  189. package/dist/{rulesets-Cz6P7Oje.mjs → rulesets-BZulblVp.mjs} +1 -1
  190. package/dist/{rum-C6GQC2vI.mjs → rum-B4IRlWgy.mjs} +1 -1
  191. package/dist/run-BQGVl3vg.mjs +2 -0
  192. package/dist/run-UHTbUldP.mjs +2 -0
  193. package/dist/{schema-VZPw_2CY.mjs → schema-CueLBLXC.mjs} +1 -1
  194. package/dist/{schema-flags-BmY0Nzp0.mjs → schema-flags-C4KmiKur.mjs} +1 -1
  195. package/dist/{scim-DMTp_Zhc.mjs → scim-BL2TVEZM.mjs} +1 -1
  196. package/dist/{sdk-BuF3fTHr.mjs → sdk-Bx29ZKK3.mjs} +2 -2
  197. package/dist/{secrets-store-C2epk0sQ.mjs → secrets-store-BcyhU7Kj.mjs} +1 -1
  198. package/dist/{security-center-DwMdQ02Y.mjs → security-center-D1LSkhL_.mjs} +1 -1
  199. package/dist/{security-txt-CORQfMul.mjs → security-txt-BGIj4nU3.mjs} +1 -1
  200. package/dist/{session-BEXskZi2.mjs → session-CjQFm10R.mjs} +1 -1
  201. package/dist/shared-jqlTaG5K.mjs +2 -0
  202. package/dist/{smart-shield-BZ0xjy_6.mjs → smart-shield-C8mGSzyE.mjs} +1 -1
  203. package/dist/{snippets-LSkJGDOc.mjs → snippets-BmHMaKEZ.mjs} +1 -1
  204. package/dist/spawn-IM_tQldH.mjs +10 -0
  205. package/dist/{spectrum-zU8_GFTV.mjs → spectrum-CrGKTMx-.mjs} +1 -1
  206. package/dist/{speed-4XbFmeYM.mjs → speed-yyPLwj5X.mjs} +1 -1
  207. package/dist/src-DFnlH5Tg.mjs +109 -0
  208. package/dist/{ssl-DiCsMY_a.mjs → ssl-DZ6G7pP_.mjs} +1 -1
  209. package/dist/startup-profile-B0UCc9_J.mjs +2 -0
  210. package/dist/{startup-profile-6fCkD04r.mjs → startup-profile-DrV846S5.mjs} +3 -3
  211. package/dist/{state-DiHwKWTy.mjs → state-DhHOAdTo.mjs} +1 -1
  212. package/dist/state-Dyo8DcW7.mjs +2 -0
  213. package/dist/{stream-BG3NUAVE.mjs → stream-hoBmKs9X.mjs} +1 -1
  214. package/dist/{submit-CKSaSFS1.mjs → submit-Lfebq3yj.mjs} +1 -1
  215. package/dist/{tags-uT9Mi-bX.mjs → tags-CnHv__u_.mjs} +1 -1
  216. package/dist/telemetry-C3hmM9Q9.mjs +2 -0
  217. package/dist/telemetry-DbAo3nvk.mjs +2 -0
  218. package/dist/{tenant--UrYFHM0.mjs → tenant-7CL844dh.mjs} +1 -1
  219. package/dist/{tenant-custom-nameservers-8Z4TVJtr.mjs → tenant-custom-nameservers-CZL9_D8w.mjs} +1 -1
  220. package/dist/{tools-DNGD0l7I.mjs → tools-BJbI_f35.mjs} +1 -1
  221. package/dist/{tunnels-5lGSXYpl.mjs → tunnels-DuO8F5_h.mjs} +1 -1
  222. package/dist/{turnstile-CT3AkMPV.mjs → turnstile-B-6k-bKa.mjs} +1 -1
  223. package/dist/{ui-D1hhIDIs.mjs → ui-BQxRjahW.mjs} +1 -1
  224. package/dist/update-check-BDMPumcv.mjs +2 -0
  225. package/dist/update-check-g9Jcn6YJ.mjs +2 -0
  226. package/dist/update-check-worker.mjs +1 -1
  227. package/dist/{url-info-DvpNcNl8.mjs → url-info-C6-jj9nl.mjs} +1 -1
  228. package/dist/{url-normalization-C9URZnpq.mjs → url-normalization-BRSTQe20.mjs} +1 -1
  229. package/dist/{url-scanner-CIwK3wB5.mjs → url-scanner-DER5YAdW.mjs} +1 -1
  230. package/dist/{user-DGA7cqdf.mjs → user-foSeF-0m.mjs} +1 -1
  231. package/dist/{values-BzS0b25w.mjs → values-DgBNckq9.mjs} +1 -1
  232. package/dist/{vectorize-DtDjl2fJ.mjs → vectorize-9AZMN3fN.mjs} +1 -1
  233. package/dist/version-DLvRzH-I.mjs +2 -0
  234. package/dist/{waiting-rooms-CjTh4F3B.mjs → waiting-rooms-CUc0Xqp0.mjs} +1 -1
  235. package/dist/{web-assets-4l1B5V9b.mjs → web-assets-D5LUB5UO.mjs} +1 -1
  236. package/dist/{web3-C0Z4AJjC.mjs → web3-BvOpojFR.mjs} +1 -1
  237. package/dist/workers-Cko7OnFE.mjs +40 -0
  238. package/dist/{workers-builds-DYGeoxmX.mjs → workers-builds-BFqiT0GR.mjs} +1 -1
  239. package/dist/{workers-for-platforms-CSw0K8Nl.mjs → workers-for-platforms-EVE01qsM.mjs} +1 -1
  240. package/dist/{workers-vpc-DJ7Couct.mjs → workers-vpc-9xBzFjiF.mjs} +1 -1
  241. package/dist/{workflows-Dm03QT8U.mjs → workflows-BS0EGixd.mjs} +1 -1
  242. package/dist/wrangler-migration-BDkh1_IV.mjs +2 -0
  243. package/dist/{zaraz-DJbWUUe3.mjs → zaraz-DBccJ-ZM.mjs} +1 -1
  244. package/dist/{zero-trust-DiMY-pN5.mjs → zero-trust-DGagti-V.mjs} +431 -281
  245. package/dist/{zone-BWjBv1yy.mjs → zone-B4OniptR.mjs} +1 -1
  246. package/dist/{zones-zGqcQvcY.mjs → zones-DYuGVoTH.mjs} +1 -1
  247. package/package.json +1 -1
  248. package/dist/access-B3TvAe5h.mjs +0 -27
  249. package/dist/ai-gateway-DrQhTvKf.mjs +0 -147
  250. package/dist/build-DG8NfVjJ.mjs +0 -2
  251. package/dist/build-kgS7iKwi.mjs +0 -2
  252. package/dist/cli-Ct980dyx.mjs +0 -3
  253. package/dist/command-B7SzqjQM.mjs +0 -2
  254. package/dist/command-BLHcNQ8m.mjs +0 -2
  255. package/dist/command-BxQbIQWT.mjs +0 -2
  256. package/dist/command-C0SMCHZp.mjs +0 -2
  257. package/dist/command-CE8k5TuK.mjs +0 -2
  258. package/dist/command-CPiCDUth.mjs +0 -2
  259. package/dist/command-DHjsstFb.mjs +0 -2
  260. package/dist/command-MTUsmZU5.mjs +0 -2
  261. package/dist/command-Sb9lOxWT.mjs +0 -2
  262. package/dist/command-sQ8yswii.mjs +0 -2
  263. package/dist/config-DcppJ5D2.mjs +0 -2
  264. package/dist/data-security-BxzLSdGk.mjs +0 -71
  265. package/dist/dev-reqdKM28.mjs +0 -4
  266. package/dist/dry-run-BmzTxDtZ.mjs +0 -2
  267. package/dist/error-sanitization-cyGBhW1Z.mjs +0 -2
  268. package/dist/generate-Djb5Af37.mjs +0 -2
  269. package/dist/interactive-B_dcVghB.mjs +0 -2
  270. package/dist/kv-DmAQCqXl.mjs +0 -21
  271. package/dist/lazy-command-B_bwSa2F.mjs +0 -2
  272. package/dist/local-CFd107fr.mjs +0 -2
  273. package/dist/migrate-CXMbQPyC.mjs +0 -2
  274. package/dist/oauth-CeXh-ACI.mjs +0 -9
  275. package/dist/pages-CjPErYik.mjs +0 -60
  276. package/dist/previews-Dj_LcGRd.mjs +0 -4
  277. package/dist/r2-C0W2J4sT.mjs +0 -127
  278. package/dist/resolve-BVxXAYG7.mjs +0 -2
  279. package/dist/run-C_qUgBTs.mjs +0 -2
  280. package/dist/run-DK1d9BJz.mjs +0 -2
  281. package/dist/shared--lvrXmXY.mjs +0 -2
  282. package/dist/spawn-Da3HnlmB.mjs +0 -10
  283. package/dist/src-BLLpnbzC.mjs +0 -109
  284. package/dist/startup-profile-Cw-_akjQ.mjs +0 -2
  285. package/dist/state-CcktNox9.mjs +0 -2
  286. package/dist/telemetry-C0k8vfbq.mjs +0 -2
  287. package/dist/telemetry-Dh-8kdfY.mjs +0 -5
  288. package/dist/telemetry-IrDBqbQW.mjs +0 -2
  289. package/dist/update-check-BYJnL8J8.mjs +0 -2
  290. package/dist/update-check-DFoSm5GT.mjs +0 -2
  291. package/dist/version-B47pK_PZ.mjs +0 -2
  292. package/dist/workers-CNBv6GxE.mjs +0 -36
  293. package/dist/zt-Bt4Q6iM1.mjs +0 -110
  294. /package/dist/{Page-BchtVjAO.mjs → Page-CjJht2qT.mjs} +0 -0
  295. /package/dist/{alerts-DY_7Nknx.mjs → alerts-DqZgVSCT.mjs} +0 -0
  296. /package/dist/{autorag-K396-M2S.mjs → autorag-Cq9k9Ye6.mjs} +0 -0
  297. /package/dist/{body-parser-BpPZBRMr.mjs → body-parser-hh2avzkz.mjs} +0 -0
  298. /package/dist/{brands-Uy0Cmv1w.mjs → brands-DeLbFxSt.mjs} +0 -0
  299. /package/dist/{browser-extension-D_siSsD9.mjs → browser-extension-C1zmKFDG.mjs} +0 -0
  300. /package/dist/{chunk-U6NEESU5-CAnOLcsu.mjs → chunk-U6NEESU5-BhF4rnpx.mjs} +0 -0
  301. /package/dist/{chunk-WMOON6TZ-D3H84qpM.mjs → chunk-WMOON6TZ-D_ToS88f.mjs} +0 -0
  302. /package/dist/{clear-CpcO2ExU.mjs → clear-CRfI7WS7.mjs} +0 -0
  303. /package/dist/{cli-types-B6tm-8uL.mjs → cli-types-DoVT5q_M.mjs} +0 -0
  304. /package/dist/{connector-telemetry-events-latest-oguk5Zyj.mjs → connector-telemetry-events-latest-D8p_dR8s.mjs} +0 -0
  305. /package/dist/{connector-telemetry-snapshots-latest-B6zuxkr0.mjs → connector-telemetry-snapshots-latest-COFmzmlk.mjs} +0 -0
  306. /package/dist/{delegate-CCGgla7X.mjs → delegate-B6LetRpZ.mjs} +0 -0
  307. /package/dist/{input-validation-D3e278L_.mjs → input-validation-Dk52b0me.mjs} +0 -0
  308. /package/dist/{interactive-D80kbTap.mjs → interactive-C-o16XQs.mjs} +0 -0
  309. /package/dist/{lifecycle-Cyc3fmyN.mjs → lifecycle-C7tAC1Mn.mjs} +0 -0
  310. /package/dist/{project-settings-Bf6rReo1.mjs → project-settings-DO6njFg_.mjs} +0 -0
  311. /package/dist/{resolve-qPFfBMrn.mjs → resolve-BCTrtcx7.mjs} +0 -0
@@ -1,23 +1,23 @@
1
1
  #!/usr/bin/env node
2
- import{i as e,n as t,r as n}from"./source-38bULAR8.mjs";import{t as r}from"./cli-exit-Dqoo6Jgb.mjs";import{A as i,C as a,Ot as o,St as s,Tt as c,a as l,bt as u,c as d,i as f,kt as p,l as m,n as h,rt as g,s as _,t as v,w as y}from"./dist-cGGV-p_F.mjs";import{a as b,i as x,n as S,o as C,r as w,s as T,t as E}from"./chunk-WMOON6TZ-D3H84qpM.mjs";import{C as D,E as O,S as ee,T as k,_ as te,i as ne,l as A,n as j,o as M,s as N,y as P}from"./interactive-D80kbTap.mjs";import{n as re}from"./dist-Cpb7_h4N.mjs";import{n as ie,r as ae,t as oe}from"./dialog-ClHoC_cG.mjs";import{createRequire as F}from"node:module";import{basename as I,dirname as se,isAbsolute as L,join as ce,relative as le,resolve as ue}from"path";import{promises as de}from"fs";import{appendFileSync as fe,existsSync as R,mkdirSync as pe,promises as me,readFileSync as he,statSync as ge,writeFileSync as _e}from"node:fs";import z,{basename as ve,join as B,relative as ye,resolve as V}from"node:path";import{fileURLToPath as be}from"node:url";import xe from"node:process";import Se,{constants as Ce}from"node:os";import we from"node:tty";import Te from"node:assert";import{Buffer as Ee}from"node:buffer";import{Console as De}from"node:console";import{readFile as Oe,readdir as ke,stat as Ae,writeFile as H}from"node:fs/promises";import je from"node:child_process";import{constants as Me}from"os";import{InputConfigSchema as Ne,convertToWranglerConfig as Pe}from"@cloudflare/config";var Fe=t(((e,t)=>{t.exports=o,o.sync=s;var r=n(`fs`);function i(e,t){var n=t.pathExt===void 0?process.env.PATHEXT:t.pathExt;if(!n||(n=n.split(`;`),n.indexOf(``)!==-1))return!0;for(var r=0;r<n.length;r++){var i=n[r].toLowerCase();if(i&&e.substr(-i.length).toLowerCase()===i)return!0}return!1}function a(e,t,n){return!e.isSymbolicLink()&&!e.isFile()?!1:i(t,n)}function o(e,t,n){r.stat(e,function(r,i){n(r,r?!1:a(i,e,t))})}function s(e,t){return a(r.statSync(e),e,t)}})),Ie=t(((e,t)=>{t.exports=i,i.sync=a;var r=n(`fs`);function i(e,t,n){r.stat(e,function(e,r){n(e,e?!1:o(r,t))})}function a(e,t){return o(r.statSync(e),t)}function o(e,t){return e.isFile()&&s(e,t)}function s(e,t){var n=e.mode,r=e.uid,i=e.gid,a=t.uid===void 0?process.getuid&&process.getuid():t.uid,o=t.gid===void 0?process.getgid&&process.getgid():t.gid,s=64,c=8,l=1,u=s|c;return n&l||n&c&&i===o||n&s&&r===a||n&u&&a===0}})),Le=t(((e,t)=>{n(`fs`);var r=process.platform===`win32`||global.TESTING_WINDOWS?Fe():Ie();t.exports=i,i.sync=a;function i(e,t,n){if(typeof t==`function`&&(n=t,t={}),!n){if(typeof Promise!=`function`)throw TypeError(`callback not provided`);return new Promise(function(n,r){i(e,t||{},function(e,t){e?r(e):n(t)})})}r(e,t||{},function(e,r){e&&(e.code===`EACCES`||t&&t.ignoreErrors)&&(e=null,r=!1),n(e,r)})}function a(e,t){try{return r.sync(e,t||{})}catch(e){if(t&&t.ignoreErrors||e.code===`EACCES`)return!1;throw e}}})),Re=t(((e,t)=>{let r=process.platform===`win32`||process.env.OSTYPE===`cygwin`||process.env.OSTYPE===`msys`,i=n(`path`),a=r?`;`:`:`,o=Le(),s=e=>Object.assign(Error(`not found: ${e}`),{code:`ENOENT`}),c=(e,t)=>{let n=t.colon||a,i=e.match(/\//)||r&&e.match(/\\/)?[``]:[...r?[process.cwd()]:[],...(t.path||process.env.PATH||``).split(n)],o=r?t.pathExt||process.env.PATHEXT||`.EXE;.CMD;.BAT;.COM`:``,s=r?o.split(n):[``];return r&&e.indexOf(`.`)!==-1&&s[0]!==``&&s.unshift(``),{pathEnv:i,pathExt:s,pathExtExe:o}},l=(e,t,n)=>{typeof t==`function`&&(n=t,t={}),t||={};let{pathEnv:r,pathExt:a,pathExtExe:l}=c(e,t),u=[],d=n=>new Promise((a,o)=>{if(n===r.length)return t.all&&u.length?a(u):o(s(e));let c=r[n],l=/^".*"$/.test(c)?c.slice(1,-1):c,d=i.join(l,e);a(f(!l&&/^\.[\\\/]/.test(e)?e.slice(0,2)+d:d,n,0))}),f=(e,n,r)=>new Promise((i,s)=>{if(r===a.length)return i(d(n+1));let c=a[r];o(e+c,{pathExt:l},(a,o)=>{if(!a&&o)if(t.all)u.push(e+c);else return i(e+c);return i(f(e,n,r+1))})});return n?d(0).then(e=>n(null,e),n):d(0)};t.exports=l,l.sync=(e,t)=>{t||={};let{pathEnv:n,pathExt:r,pathExtExe:a}=c(e,t),l=[];for(let s=0;s<n.length;s++){let c=n[s],u=/^".*"$/.test(c)?c.slice(1,-1):c,d=i.join(u,e),f=!u&&/^\.[\\\/]/.test(e)?e.slice(0,2)+d:d;for(let e=0;e<r.length;e++){let n=f+r[e];try{if(o.sync(n,{pathExt:a}))if(t.all)l.push(n);else return n}catch{}}}if(t.all&&l.length)return l;if(t.nothrow)return null;throw s(e)}})),ze=t(((e,t)=>{let n=(e={})=>{let t=e.env||process.env;return(e.platform||process.platform)===`win32`?Object.keys(t).reverse().find(e=>e.toUpperCase()===`PATH`)||`Path`:`PATH`};t.exports=n,t.exports.default=n})),Be=t(((e,t)=>{let r=n(`path`),i=Re(),a=ze();function o(e,t){let n=e.options.env||process.env,o=process.cwd(),s=e.options.cwd!=null,c=s&&process.chdir!==void 0&&!process.chdir.disabled;if(c)try{process.chdir(e.options.cwd)}catch{}let l;try{l=i.sync(e.command,{path:n[a({env:n})],pathExt:t?r.delimiter:void 0})}catch{}finally{c&&process.chdir(o)}return l&&=r.resolve(s?e.options.cwd:``,l),l}function s(e){return o(e)||o(e,!0)}t.exports=s})),Ve=t(((e,t)=>{let n=/([()\][%!^"`<>&|;, *?])/g;function r(e){return e=e.replace(n,`^$1`),e}function i(e,t){return e=`${e}`,e=e.replace(/(?=(\\+?)?)\1"/g,`$1$1\\"`),e=e.replace(/(?=(\\+?)?)\1$/,`$1$1`),e=`"${e}"`,e=e.replace(n,`^$1`),t&&(e=e.replace(n,`^$1`)),e}t.exports.command=r,t.exports.argument=i})),He=t(((e,t)=>{t.exports=/^#!(.*)/})),Ue=t(((e,t)=>{let n=He();t.exports=(e=``)=>{let t=e.match(n);if(!t)return null;let[r,i]=t[0].replace(/#! ?/,``).split(` `),a=r.split(`/`).pop();return a===`env`?i:i?`${a} ${i}`:a}})),We=t(((e,t)=>{let r=n(`fs`),i=Ue();function a(e){let t=Buffer.alloc(150),n;try{n=r.openSync(e,`r`),r.readSync(n,t,0,150,0),r.closeSync(n)}catch{}return i(t.toString())}t.exports=a})),Ge=t(((e,t)=>{let r=n(`path`),i=Be(),a=Ve(),o=We(),s=process.platform===`win32`,c=/\.(?:com|exe)$/i,l=/node_modules[\\/].bin[\\/][^\\/]+\.cmd$/i;function u(e){e.file=i(e);let t=e.file&&o(e.file);return t?(e.args.unshift(e.file),e.command=t,i(e)):e.file}function d(e){if(!s)return e;let t=u(e),n=!c.test(t);if(e.options.forceShell||n){let n=l.test(t);e.command=r.normalize(e.command),e.command=a.command(e.command),e.args=e.args.map(e=>a.argument(e,n)),e.args=[`/d`,`/s`,`/c`,`"${[e.command].concat(e.args).join(` `)}"`],e.command=process.env.comspec||`cmd.exe`,e.options.windowsVerbatimArguments=!0}return e}function f(e,t,n){t&&!Array.isArray(t)&&(n=t,t=null),t=t?t.slice(0):[],n=Object.assign({},n);let r={command:e,args:t,options:n,file:void 0,original:{command:e,args:t}};return n.shell?r:d(r)}t.exports=f})),Ke=t(((e,t)=>{let n=process.platform===`win32`;function r(e,t){return Object.assign(Error(`${t} ${e.command} ENOENT`),{code:`ENOENT`,errno:`ENOENT`,syscall:`${t} ${e.command}`,path:e.command,spawnargs:e.args})}function i(e,t){if(!n)return;let r=e.emit;e.emit=function(n,i){if(n===`exit`){let n=a(i,t);if(n)return r.call(e,`error`,n)}return r.apply(e,arguments)}}function a(e,t){return n&&e===1&&!t.file?r(t.original,`spawn`):null}function o(e,t){return n&&e===1&&!t.file?r(t.original,`spawnSync`):null}t.exports={hookChildProcess:i,verifyENOENT:a,verifyENOENTSync:o,notFoundError:r}})),qe=e(t(((e,t)=>{let r=n(`child_process`),i=Ge(),a=Ke();function o(e,t,n){let o=i(e,t,n),s=r.spawn(o.command,o.args,o.options);return a.hookChildProcess(s,o),s}function s(e,t,n){let o=i(e,t,n),s=r.spawnSync(o.command,o.args,o.options);return s.error=s.error||a.verifyENOENTSync(s.status,o),s}t.exports=o,t.exports.spawn=o,t.exports.sync=s,t.exports._parse=i,t.exports._enoent=a}))(),1);const Je=async(e,t={})=>Ye({useSpinner:t.useSpinner??t.silent,startText:t.startText||Xe(e),doneText:t.doneText,promise(){let[n,...r]=e,i=new AbortController,a=(0,qe.spawn)(n,[...r],{stdio:t.silent?`pipe`:`inherit`,env:{...process.env,...t.env},cwd:t.cwd,signal:i.signal}),o=``;(t.captureOutput??t.silent)&&(a.stdout?.on(`data`,e=>{o+=e}),a.stderr?.on(`data`,e=>{o+=e}));let s=null;return new Promise((e,n)=>{let r=e=>{n(new ee(`Command cancelled`,e)),i.abort(e?`${e} received`:null)};process.on(`SIGTERM`,r).on(`SIGINT`,r),s=()=>{process.off(`SIGTERM`,r).off(`SIGINT`,r)},a.on(`close`,r=>{try{if(r!==0)throw Error(o,{cause:r});e((t.transformOutput??(e=>e))(te(o)))}catch(e){n(Error(o,{cause:e}))}}),a.on(`error`,e=>{n(e)})}).finally(()=>{s?.()})}}),Ye=async({promise:e,...t})=>{let n;t.useSpinner&&ne()&&(n=M()),n?.start(t?.startText),typeof e==`function`&&(e=e());try{let r=await e,i=typeof t.doneText==`function`?t.doneText(r):t.doneText;n?.stop(i)}catch(e){n?.stop(e.message)}finally{n?.stop()}return e};function Xe(e){if(process.platform===`win32`){let t=/[&<>[\]|{}^=;!'+,`~\s]/;return e.map(e=>e.match(t)?`"${e.replaceAll(`"`,`""`)}"`:e).join(` `)}else return e.map(e=>/["\s]/.test(e)&&!/'/.test(e)?`'`+e.replace(/(['\\])/g,`\\$1`)+`'`:/["'\s]/.test(e)?`"`+e.replace(/(["\\$`!])/g,`\\$1`)+`"`:e).join(` `)}const Ze=async(e,t,n={})=>{let{cwd:r=process.cwd(),force:i,dev:a,startText:o,doneText:l}=n,u=n.isWorkspaceRoot??!1;if(t.length===0){let n;switch(e){case`yarn`:break;default:n=`install`;break}await Je([e,...n?[n]:[],...t,...e===`pnpm`||e===`nub`?[`--no-frozen-lockfile`]:[],...i===!0?[`--force`]:[],...Qe(e,u)],{cwd:r,startText:o,doneText:l,silent:!0});return}let d,f;switch(e){case`yarn`:f=`add`,d=a?`-D`:``;break;case`bun`:f=`add`,d=a?`-d`:``;break;default:f=`install`,d=a?`--save-dev`:``;break}if(await Je([e,f,...d?[d]:[],...t,...i===!0?[`--force`]:[],...Qe(e,u)],{cwd:r,startText:o,doneText:l,silent:!0}),e===`npm`){let e=z.join(r,`package.json`),i=s(c(e),e),a=n.dev?i.devDependencies:i.dependencies;Te(a,`dependencies should be defined`);for(let e of t){let t=e.lastIndexOf(`@`);if(t>0){let n=e.slice(0,t),r=e.slice(t+1);r!==`latest`&&(a[n]=r)}}await H(e,JSON.stringify(i,null,2))}};function Qe(e,t){if(!t)return[];switch(e){case`pnpm`:case`nub`:return[`--workspace-root`];case`yarn`:return[`-W`];case`npm`:case`bun`:return[]}}async function $e(e,t){let n=[`wrangler@latest`];et(`@cloudflare/workers-types`)&&n.push(`@cloudflare/workers-types@latest`),await Ze(e,n,{dev:!0,isWorkspaceRoot:t,startText:`Installing wrangler ${O(`A command line tool for building Cloudflare Workers`)}`,doneText:`${k(`installed`)} ${O(`via \`${e} install wrangler --save-dev\``)}`})}function et(e){let t=z.join(process.cwd(),`package.json`);if(!R(t))return!1;let n=s(c(t),t);return!!(n.dependencies?.[e]||n.devDependencies?.[e])}function tt(e){let t=R(e);t||_e(e,``);let n=c(e),r=[],i=n.match(/^\/?\.wrangler(\/|\s|$)/m);if(i||r.push(`.wrangler`),n.match(/^\/?\.dev\.vars\*(\s|$)/m)||r.push(`.dev.vars*`),n.match(/^!\/?\.dev\.vars\.example(\s|$)/m)||r.push(`!.dev.vars.example`),n.match(/^\/?\.env\*?(\..*?)?(\s|$)/m)||r.push(`.env*`),n.match(/^!\/?\.env\.example(\s|$)/m)||r.push(`!.env.example`),r.length===0)return;let a=M();a.start(`Adding Wrangler files to the ${ve(e)} file`);let o=[...t?[``,...n.match(/\n\s*$/)?[]:[``]]:[]];!i&&r.length>1&&o.push(`# wrangler files`),r.forEach(e=>o.push(e)),o.push(``),fe(e,o.join(`
3
- `));let s=ve(e);a.stop(`${k(t?`updated`:`created`)} ${O(`${s} file`)}`)}function nt(e){let t=`${e}/.gitignore`,n=R(t),r=rt(`${e}/.git`);!n&&!r||tt(t)}function rt(e){try{return ge(e).isDirectory()}catch(e){if(e.code===`ENOENT`)return!1;throw Error(e)}}F(import.meta.url||(typeof __filename==`string`?__filename:`/`));var U={};w(U,{__addDisposableResource:()=>jt,__assign:()=>Ft,__asyncDelegator:()=>Ct,__asyncGenerator:()=>St,__asyncValues:()=>wt,__await:()=>xt,__awaiter:()=>pt,__classPrivateFieldGet:()=>Ot,__classPrivateFieldIn:()=>At,__classPrivateFieldSet:()=>kt,__createBinding:()=>It,__decorate:()=>ot,__disposeResources:()=>Mt,__esDecorate:()=>ct,__exportStar:()=>ht,__extends:()=>it,__generator:()=>mt,__importDefault:()=>Dt,__importStar:()=>Et,__makeTemplateObject:()=>Tt,__metadata:()=>ft,__param:()=>st,__propKey:()=>ut,__read:()=>_t,__rest:()=>at,__rewriteRelativeImportExtension:()=>Nt,__runInitializers:()=>lt,__setFunctionName:()=>dt,__spread:()=>vt,__spreadArray:()=>bt,__spreadArrays:()=>yt,__values:()=>gt,default:()=>zt});function it(e,t){if(typeof t!=`function`&&t!==null)throw TypeError(`Class extends value `+String(t)+` is not a constructor or null`);Pt(e,t);function n(){this.constructor=e}x(n,`__`),e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}function at(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols==`function`)for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n}function ot(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect==`object`&&typeof Reflect.decorate==`function`)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a}function st(e,t){return function(n,r){t(n,r,e)}}function ct(e,t,n,r,i,a){function o(e){if(e!==void 0&&typeof e!=`function`)throw TypeError(`Function expected`);return e}x(o,`accept`);for(var s=r.kind,c=s===`getter`?`get`:s===`setter`?`set`:`value`,l=!t&&e?r.static?e:e.prototype:null,u=t||(l?Object.getOwnPropertyDescriptor(l,r.name):{}),d,f=!1,p=n.length-1;p>=0;p--){var m={};for(var h in r)m[h]=h===`access`?{}:r[h];for(var h in r.access)m.access[h]=r.access[h];m.addInitializer=function(e){if(f)throw TypeError(`Cannot add initializers after decoration has completed`);a.push(o(e||null))};var g=(0,n[p])(s===`accessor`?{get:u.get,set:u.set}:u[c],m);if(s===`accessor`){if(g===void 0)continue;if(typeof g!=`object`||!g)throw TypeError(`Object expected`);(d=o(g.get))&&(u.get=d),(d=o(g.set))&&(u.set=d),(d=o(g.init))&&i.unshift(d)}else (d=o(g))&&(s===`field`?i.unshift(d):u[c]=d)}l&&Object.defineProperty(l,r.name,u),f=!0}function lt(e,t,n){for(var r=arguments.length>2,i=0;i<t.length;i++)n=r?t[i].call(e,n):t[i].call(e);return r?n:void 0}function ut(e){return typeof e==`symbol`?e:`${e}`}function dt(e,t,n){return typeof t==`symbol`&&(t=t.description?`[${t.description}]`:``),Object.defineProperty(e,`name`,{configurable:!0,value:n?`${n} ${t}`:t})}function ft(e,t){if(typeof Reflect==`object`&&typeof Reflect.metadata==`function`)return Reflect.metadata(e,t)}function pt(e,t,n,r){function i(e){return e instanceof n?e:new n(function(t){t(e)})}return x(i,`adopt`),new(n||=Promise)(function(n,a){function o(e){try{c(r.next(e))}catch(e){a(e)}}x(o,`fulfilled`);function s(e){try{c(r.throw(e))}catch(e){a(e)}}x(s,`rejected`);function c(e){e.done?n(e.value):i(e.value).then(o,s)}x(c,`step`),c((r=r.apply(e,t||[])).next())})}function mt(e,t){var n={label:0,sent:x(function(){if(a[0]&1)throw a[1];return a[1]},`sent`),trys:[],ops:[]},r,i,a,o=Object.create((typeof Iterator==`function`?Iterator:Object).prototype);return o.next=s(0),o.throw=s(1),o.return=s(2),typeof Symbol==`function`&&(o[Symbol.iterator]=function(){return this}),o;function s(e){return function(t){return c([e,t])}}function c(s){if(r)throw TypeError(`Generator is already executing.`);for(;o&&(o=0,s[0]&&(n=0)),n;)try{if(r=1,i&&(a=s[0]&2?i.return:s[0]?i.throw||((a=i.return)&&a.call(i),0):i.next)&&!(a=a.call(i,s[1])).done)return a;switch(i=0,a&&(s=[s[0]&2,a.value]),s[0]){case 0:case 1:a=s;break;case 4:return n.label++,{value:s[1],done:!1};case 5:n.label++,i=s[1],s=[0];continue;case 7:s=n.ops.pop(),n.trys.pop();continue;default:if((a=n.trys,!(a=a.length>0&&a[a.length-1]))&&(s[0]===6||s[0]===2)){n=0;continue}if(s[0]===3&&(!a||s[1]>a[0]&&s[1]<a[3])){n.label=s[1];break}if(s[0]===6&&n.label<a[1]){n.label=a[1],a=s;break}if(a&&n.label<a[2]){n.label=a[2],n.ops.push(s);break}a[2]&&n.ops.pop(),n.trys.pop();continue}s=t.call(e,n)}catch(e){s=[6,e],i=0}finally{r=a=0}if(s[0]&5)throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}}function ht(e,t){for(var n in e)n!==`default`&&!Object.prototype.hasOwnProperty.call(t,n)&&It(t,e,n)}function gt(e){var t=typeof Symbol==`function`&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&typeof e.length==`number`)return{next:x(function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}},`next`)};throw TypeError(t?`Object is not iterable.`:`Symbol.iterator is not defined.`)}function _t(e,t){var n=typeof Symbol==`function`&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),i,a=[],o;try{for(;(t===void 0||t-- >0)&&!(i=r.next()).done;)a.push(i.value)}catch(e){o={error:e}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(o)throw o.error}}return a}function vt(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(_t(arguments[t]));return e}function yt(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;for(var r=Array(e),i=0,t=0;t<n;t++)for(var a=arguments[t],o=0,s=a.length;o<s;o++,i++)r[i]=a[o];return r}function bt(e,t,n){if(n||arguments.length===2)for(var r=0,i=t.length,a;r<i;r++)(a||!(r in t))&&(a||=Array.prototype.slice.call(t,0,r),a[r]=t[r]);return e.concat(a||Array.prototype.slice.call(t))}function xt(e){return this instanceof xt?(this.v=e,this):new xt(e)}function St(e,t,n){if(!Symbol.asyncIterator)throw TypeError(`Symbol.asyncIterator is not defined.`);var r=n.apply(e,t||[]),i,a=[];return i=Object.create((typeof AsyncIterator==`function`?AsyncIterator:Object).prototype),s(`next`),s(`throw`),s(`return`,o),i[Symbol.asyncIterator]=function(){return this},i;function o(e){return function(t){return Promise.resolve(t).then(e,d)}}function s(e,t){r[e]&&(i[e]=function(t){return new Promise(function(n,r){a.push([e,t,n,r])>1||c(e,t)})},t&&(i[e]=t(i[e])))}function c(e,t){try{l(r[e](t))}catch(e){f(a[0][3],e)}}function l(e){e.value instanceof xt?Promise.resolve(e.value.v).then(u,d):f(a[0][2],e)}function u(e){c(`next`,e)}function d(e){c(`throw`,e)}function f(e,t){e(t),a.shift(),a.length&&c(a[0][0],a[0][1])}}function Ct(e){var t,n;return t={},r(`next`),r(`throw`,function(e){throw e}),r(`return`),t[Symbol.iterator]=function(){return this},t;function r(r,i){t[r]=e[r]?function(t){return(n=!n)?{value:xt(e[r](t)),done:!1}:i?i(t):t}:i}}function wt(e){if(!Symbol.asyncIterator)throw TypeError(`Symbol.asyncIterator is not defined.`);var t=e[Symbol.asyncIterator],n;return t?t.call(e):(e=typeof gt==`function`?gt(e):e[Symbol.iterator](),n={},r(`next`),r(`throw`),r(`return`),n[Symbol.asyncIterator]=function(){return this},n);function r(t){n[t]=e[t]&&function(n){return new Promise(function(r,a){n=e[t](n),i(r,a,n.done,n.value)})}}function i(e,t,n,r){Promise.resolve(r).then(function(t){e({value:t,done:n})},t)}}function Tt(e,t){return Object.defineProperty?Object.defineProperty(e,`raw`,{value:t}):e.raw=t,e}function Et(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var n=W(e),r=0;r<n.length;r++)n[r]!==`default`&&It(t,e,n[r]);return Lt(t,e),t}function Dt(e){return e&&e.__esModule?e:{default:e}}function Ot(e,t,n,r){if(n===`a`&&!r)throw TypeError(`Private accessor was defined without a getter`);if(typeof t==`function`?e!==t||!r:!t.has(e))throw TypeError(`Cannot read private member from an object whose class did not declare it`);return n===`m`?r:n===`a`?r.call(e):r?r.value:t.get(e)}function kt(e,t,n,r,i){if(r===`m`)throw TypeError(`Private method is not writable`);if(r===`a`&&!i)throw TypeError(`Private accessor was defined without a setter`);if(typeof t==`function`?e!==t||!i:!t.has(e))throw TypeError(`Cannot write private member to an object whose class did not declare it`);return r===`a`?i.call(e,n):i?i.value=n:t.set(e,n),n}function At(e,t){if(t===null||typeof t!=`object`&&typeof t!=`function`)throw TypeError(`Cannot use 'in' operator on non-object`);return typeof e==`function`?t===e:e.has(t)}function jt(e,t,n){if(t!=null){if(typeof t!=`object`&&typeof t!=`function`)throw TypeError(`Object expected.`);var r,i;if(n){if(!Symbol.asyncDispose)throw TypeError(`Symbol.asyncDispose is not defined.`);r=t[Symbol.asyncDispose]}if(r===void 0){if(!Symbol.dispose)throw TypeError(`Symbol.dispose is not defined.`);r=t[Symbol.dispose],n&&(i=r)}if(typeof r!=`function`)throw TypeError(`Object not disposable.`);i&&(r=x(function(){try{i.call(this)}catch(e){return Promise.reject(e)}},`dispose`)),e.stack.push({value:t,dispose:r,async:n})}else n&&e.stack.push({async:!0});return t}function Mt(e){function t(t){e.error=e.hasError?new Rt(t,e.error,`An error was suppressed during disposal.`):t,e.hasError=!0}x(t,`fail`);var n,r=0;function i(){for(;n=e.stack.pop();)try{if(!n.async&&r===1)return r=0,e.stack.push(n),Promise.resolve().then(i);if(n.dispose){var a=n.dispose.call(n.value);if(n.async)return r|=2,Promise.resolve(a).then(i,function(e){return t(e),i()})}else r|=1}catch(e){t(e)}if(r===1)return e.hasError?Promise.reject(e.error):Promise.resolve();if(e.hasError)throw e.error}return x(i,`next`),i()}function Nt(e,t){return typeof e==`string`&&/^\.\.?\//.test(e)?e.replace(/\.(tsx)$|((?:\.d)?)((?:\.[^./]+?)?)\.([cm]?)ts$/i,function(e,n,r,i,a){return n?t?`.jsx`:`.js`:r&&(!i||!a)?e:r+i+`.`+a.toLowerCase()+`js`}):e}var Pt,Ft,It,Lt,W,Rt,zt,G=S({"../../node_modules/.pnpm/tslib@2.8.1/node_modules/tslib/tslib.es6.mjs"(){Pt=x(function(e,t){return Pt=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},Pt(e,t)},`extendStatics`),x(it,`__extends`),Ft=x(function(){return Ft=Object.assign||x(function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},`__assign`),Ft.apply(this,arguments)},`__assign`),x(at,`__rest`),x(ot,`__decorate`),x(st,`__param`),x(ct,`__esDecorate`),x(lt,`__runInitializers`),x(ut,`__propKey`),x(dt,`__setFunctionName`),x(ft,`__metadata`),x(pt,`__awaiter`),x(mt,`__generator`),It=Object.create?function(e,t,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||(`get`in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:x(function(){return t[n]},`get`)}),Object.defineProperty(e,r,i)}:function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]},x(ht,`__exportStar`),x(gt,`__values`),x(_t,`__read`),x(vt,`__spread`),x(yt,`__spreadArrays`),x(bt,`__spreadArray`),x(xt,`__await`),x(St,`__asyncGenerator`),x(Ct,`__asyncDelegator`),x(wt,`__asyncValues`),x(Tt,`__makeTemplateObject`),Lt=Object.create?function(e,t){Object.defineProperty(e,`default`,{enumerable:!0,value:t})}:function(e,t){e.default=t},W=x(function(e){return W=Object.getOwnPropertyNames||function(e){var t=[];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[t.length]=n);return t},W(e)},`ownKeys`),x(Et,`__importStar`),x(Dt,`__importDefault`),x(Ot,`__classPrivateFieldGet`),x(kt,`__classPrivateFieldSet`),x(At,`__classPrivateFieldIn`),x(jt,`__addDisposableResource`),Rt=typeof SuppressedError==`function`?SuppressedError:function(e,t,n){var r=Error(n);return r.name=`SuppressedError`,r.error=e,r.suppressed=t,r},x(Mt,`__disposeResources`),x(Nt,`__rewriteRelativeImportExtension`),zt={__extends:it,__assign:Ft,__rest:at,__decorate:ot,__param:st,__esDecorate:ct,__runInitializers:lt,__propKey:ut,__setFunctionName:dt,__metadata:ft,__awaiter:pt,__generator:mt,__createBinding:It,__exportStar:ht,__values:gt,__read:_t,__spread:vt,__spreadArrays:yt,__spreadArray:bt,__await:xt,__asyncGenerator:St,__asyncDelegator:Ct,__asyncValues:wt,__makeTemplateObject:Tt,__importStar:Et,__importDefault:Dt,__classPrivateFieldGet:Ot,__classPrivateFieldSet:kt,__classPrivateFieldIn:At,__addDisposableResource:jt,__disposeResources:Mt,__rewriteRelativeImportExtension:Nt}}}),K=E({"../../node_modules/.pnpm/ast-types@0.16.1/node_modules/ast-types/lib/shared.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.maybeSetModuleExports=void 0;var t=(G(),C(U)).__importDefault(q());function n(e){var n=e.use(t.default),r=n.Type,i=n.builtInTypes,a=i.number;function o(e){return r.from(function(t){return a.check(t)&&t>=e},a+` >= `+e)}x(o,`geq`);var s={null:x(function(){return null},`null`),emptyArray:x(function(){return[]},`emptyArray`),false:x(function(){return!1},`false`),true:x(function(){return!0},`true`),undefined:x(function(){},`undefined`),"use strict":x(function(){return`use strict`},`use strict`)},c=r.or(i.string,i.number,i.boolean,i.null,i.undefined);return{geq:o,defaults:s,isPrimitive:r.from(function(e){if(e===null)return!0;var t=typeof e;return!(t===`object`||t===`function`)},c.toString())}}x(n,`default_1`),e.default=n;function r(e){try{var t=e(),n=t.exports,r=n.default}catch{return}r&&r!==n&&typeof n==`object`&&(Object.assign(r,n,{default:r}),n.__esModule&&Object.defineProperty(r,`__esModule`,{value:!0}),t.exports=r)}x(r,`maybeSetModuleExports`),e.maybeSetModuleExports=r}}),q=E({"../../node_modules/.pnpm/ast-types@0.16.1/node_modules/ast-types/lib/types.js"(e,t){Object.defineProperty(e,`__esModule`,{value:!0}),e.Def=void 0;var n=(G(),C(U)),r=K(),i=Object.prototype,a=i.toString,o=i.hasOwnProperty,s=function(){function e(){}return x(e,`BaseType`),e.prototype.assert=function(e,t){if(!this.check(e,t)){var n=h(e);throw Error(n+` does not match type `+this)}return!0},e.prototype.arrayOf=function(){return new c(this)},e}(),c=function(e){n.__extends(t,e);function t(t){var n=e.call(this)||this;return n.elemType=t,n.kind=`ArrayType`,n}return x(t,`ArrayType`),t.prototype.toString=function(){return`[`+this.elemType+`]`},t.prototype.check=function(e,t){var n=this;return Array.isArray(e)&&e.every(function(e){return n.elemType.check(e,t)})},t}(s),l=function(e){n.__extends(t,e);function t(t){var n=e.call(this)||this;return n.value=t,n.kind=`IdentityType`,n}return x(t,`IdentityType`),t.prototype.toString=function(){return String(this.value)},t.prototype.check=function(e,t){var n=e===this.value;return!n&&typeof t==`function`&&t(this,e),n},t}(s),u=function(e){n.__extends(t,e);function t(t){var n=e.call(this)||this;return n.fields=t,n.kind=`ObjectType`,n}return x(t,`ObjectType`),t.prototype.toString=function(){return`{ `+this.fields.join(`, `)+` }`},t.prototype.check=function(e,t){return a.call(e)===a.call({})&&this.fields.every(function(n){return n.type.check(e[n.name],t)})},t}(s),d=function(e){n.__extends(t,e);function t(t){var n=e.call(this)||this;return n.types=t,n.kind=`OrType`,n}return x(t,`OrType`),t.prototype.toString=function(){return this.types.join(` | `)},t.prototype.check=function(e,t){return this.types.some(function(n){return n.check(e,!!t)})?!0:(typeof t==`function`&&t(this,e),!1)},t}(s),f=function(e){n.__extends(t,e);function t(t,n){var r=e.call(this)||this;return r.name=t,r.predicate=n,r.kind=`PredicateType`,r}return x(t,`PredicateType`),t.prototype.toString=function(){return this.name},t.prototype.check=function(e,t){var n=this.predicate(e,t);return!n&&typeof t==`function`&&t(this,e),n},t}(s),p=function(){function e(e,t){this.type=e,this.typeName=t,this.baseNames=[],this.ownFields=Object.create(null),this.allSupertypes=Object.create(null),this.supertypeList=[],this.allFields=Object.create(null),this.fieldNames=[],this.finalized=!1,this.buildable=!1,this.buildParams=[]}return x(e,`Def`),e.prototype.isSupertypeOf=function(t){if(t instanceof e){if(this.finalized!==!0||t.finalized!==!0)throw Error(``);return o.call(t.allSupertypes,this.typeName)}else throw Error(t+` is not a Def`)},e.prototype.checkAllFields=function(e,t){var n=this.allFields;if(this.finalized!==!0)throw Error(``+this.typeName);function r(r){var i=n[r],a=i.type,o=i.getValue(e);return a.check(o,t)}return x(r,`checkFieldByName`),typeof e==`object`&&!!e&&Object.keys(n).every(r)},e.prototype.bases=function(){var e=[...arguments],t=this.baseNames;if(this.finalized){if(e.length!==t.length)throw Error(``);for(var n=0;n<e.length;n++)if(e[n]!==t[n])throw Error(``);return this}return e.forEach(function(e){t.indexOf(e)<0&&t.push(e)}),this},e}();e.Def=p;var m=function(){function e(e,t,n,r){this.name=e,this.type=t,this.defaultFn=n,this.hidden=!!r}return x(e,`Field`),e.prototype.toString=function(){return JSON.stringify(this.name)+`: `+this.type},e.prototype.getValue=function(e){var t=e[this.name];return t===void 0&&typeof this.defaultFn==`function`&&(t=this.defaultFn.call(e)),t},e}();function h(e){return Array.isArray(e)?`[`+e.map(h).join(`, `)+`]`:e&&typeof e==`object`?`{ `+Object.keys(e).map(function(t){return t+`: `+e[t]}).join(`, `)+` }`:JSON.stringify(e)}x(h,`shallowStringify`);function g(e){var t={or:x(function(){return new d([...arguments].map(function(e){return t.from(e)}))},`or`),from:x(function(e,n){if(e instanceof c||e instanceof l||e instanceof u||e instanceof d||e instanceof f)return e;if(e instanceof p)return e.type;if(v.check(e)){if(e.length!==1)throw Error(`only one element type is permitted for typed arrays`);return new c(t.from(e[0]))}if(y.check(e))return new u(Object.keys(e).map(function(n){return new m(n,t.from(e[n],n))}));if(typeof e==`function`){var a=r.indexOf(e);if(a>=0)return i[a];if(typeof n!=`string`)throw Error(`missing name`);return new f(n,e)}return new l(e)},`from`),def:x(function(e){return o.call(O,e)?O[e]:O[e]=new k(e)},`def`),hasDef:x(function(e){return o.call(O,e)},`hasDef`)},r=[],i=[];function s(e,t){var n=a.call(t),o=new f(e,function(e){return a.call(e)===n});return t&&typeof t.constructor==`function`&&(r.push(t.constructor),i.push(o)),o}x(s,`defBuiltInType`);var g=s(`string`,`truthy`),_=s(`function`,function(){}),v=s(`array`,[]),y=s(`object`,{}),b=s(`RegExp`,/./),S=s(`Date`,new Date),C=s(`number`,3),w=s(`boolean`,!0),T=s(`null`,null),E=s(`undefined`,void 0),D={string:g,function:_,array:v,object:y,RegExp:b,Date:S,number:C,boolean:w,null:T,undefined:E,BigInt:typeof BigInt==`function`?s(`BigInt`,BigInt(1234)):new f(`BigInt`,function(){return!1})},O=Object.create(null);function ee(e){if(e&&typeof e==`object`){var t=e.type;if(typeof t==`string`&&o.call(O,t)){var n=O[t];if(n.finalized)return n}}return null}x(ee,`defFromValue`);var k=function(e){n.__extends(r,e);function r(t){var n=e.call(this,new f(t,function(e,t){return n.check(e,t)}),t)||this;return n}return x(r,`DefImpl`),r.prototype.check=function(e,t){if(this.finalized!==!0)throw Error(`prematurely checking unfinalized type `+this.typeName);if(typeof e!=`object`||!e)return!1;var n=ee(e);return n?t&&n===this?this.checkAllFields(e,t):this.isSupertypeOf(n)?t?n.checkAllFields(e,t)&&this.checkAllFields(e,!1):!0:!1:this.typeName===`SourceLocation`||this.typeName===`Position`?this.checkAllFields(e,t):!1},r.prototype.build=function(){for(var e=this,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];if(this.buildParams=t,this.buildable)return this;this.field(`type`,String,function(){return e.typeName}),this.buildable=!0;var r=x(function(t,n,r,i){if(!o.call(t,n)){var a=e.allFields;if(!o.call(a,n))throw Error(``+n);var s=a[n],c=s.type,l;if(i)l=r;else if(s.defaultFn)l=s.defaultFn.call(t);else{var u=`no value or default function given for field `+JSON.stringify(n)+` of `+e.typeName+`(`+e.buildParams.map(function(e){return a[e]}).join(`, `)+`)`;throw Error(u)}if(!c.check(l))throw Error(h(l)+` does not match field `+s+` of type `+e.typeName);t[n]=l}},`addParam`),i=x(function(){var t=[...arguments],n=t.length;if(!e.finalized)throw Error(`attempting to instantiate unfinalized type `+e.typeName);var i=Object.create(j);if(e.buildParams.forEach(function(e,a){a<n?r(i,e,t[a],!0):r(i,e,null,!1)}),Object.keys(e.allFields).forEach(function(e){r(i,e,null,!1)}),i.type!==e.typeName)throw Error(``);return i},`builder`);return i.from=function(t){if(!e.finalized)throw Error(`attempting to instantiate unfinalized type `+e.typeName);var n=Object.create(j);if(Object.keys(e.allFields).forEach(function(e){o.call(t,e)?r(n,e,t[e],!0):r(n,e,null,!1)}),n.type!==e.typeName)throw Error(``);return n},Object.defineProperty(A,N(this.typeName),{enumerable:!0,value:i}),this},r.prototype.field=function(e,n,r,i){return this.finalized?(console.error(`Ignoring attempt to redefine field `+JSON.stringify(e)+` of finalized type `+JSON.stringify(this.typeName)),this):(this.ownFields[e]=new m(e,t.from(n),r,i),this)},r.prototype.finalize=function(){var e=this;if(!this.finalized){var t=this.allFields,n=this.allSupertypes;for(var r in this.baseNames.forEach(function(r){var i=O[r];if(i instanceof p)i.finalize(),L(t,i.allFields),L(n,i.allSupertypes);else{var a=`unknown supertype name `+JSON.stringify(r)+` for subtype `+JSON.stringify(e.typeName);throw Error(a)}}),L(t,this.ownFields),n[this.typeName]=this,this.fieldNames.length=0,t)o.call(t,r)&&!t[r].hidden&&this.fieldNames.push(r);Object.defineProperty(re,this.typeName,{enumerable:!0,value:this.type}),this.finalized=!0,se(this.typeName,this.supertypeList),this.buildable&&this.supertypeList.lastIndexOf(`Expression`)>=0&&I(this.typeName)}},r}(p);function te(e){if(!o.call(O,e))throw Error(``);var t=O[e];if(t.finalized!==!0)throw Error(``);return t.supertypeList.slice(1)}x(te,`getSupertypeNames`);function ne(e){for(var t={},n=Object.keys(O),r=n.length,i=0;i<r;++i){var a=n[i],s=O[a];if(s.finalized!==!0)throw Error(``+a);for(var c=0;c<s.supertypeList.length;++c){var l=s.supertypeList[c];if(o.call(e,l)){t[a]=l;break}}}return t}x(ne,`computeSupertypeLookupTable`);var A=Object.create(null),j={};function M(e,t){var n=j[e];return E.check(t)?delete j[e]:(_.assert(t),Object.defineProperty(j,e,{enumerable:!0,configurable:!0,value:t})),n}x(M,`defineMethod`);function N(e){return e.replace(/^[A-Z]+/,function(e){var t=e.length;switch(t){case 0:return``;case 1:return e.toLowerCase();default:return e.slice(0,t-1).toLowerCase()+e.charAt(t-1)}})}x(N,`getBuilderName`);function P(e){return e=N(e),e.replace(/(Expression)?$/,`Statement`)}x(P,`getStatementBuilderName`);var re={};function ie(e){var t=ee(e);if(t)return t.fieldNames.slice(0);if(`type`in e)throw Error(`did not recognize object of type `+JSON.stringify(e.type));return Object.keys(e)}x(ie,`getFieldNames`);function ae(e,t){var n=ee(e);if(n){var r=n.allFields[t];if(r)return r.getValue(e)}return e&&e[t]}x(ae,`getFieldValue`);function oe(e,t,n){ie(e).forEach(function(n){t.call(this,n,ae(e,n))},n)}x(oe,`eachField`);function F(e,t,n){return ie(e).some(function(n){return t.call(this,n,ae(e,n))},n)}x(F,`someField`);function I(e){var t=P(e);if(!A[t]){var n=A[N(e)];if(n){var r=x(function(){var e=[...arguments];return A.expressionStatement(n.apply(A,e))},`builder`);r.from=function(){var e=[...arguments];return A.expressionStatement(n.from.apply(A,e))},A[t]=r}}}x(I,`wrapExpressionBuilderWithStatement`);function se(e,t){t.length=0,t.push(e);for(var n=Object.create(null),r=0;r<t.length;++r){e=t[r];var i=O[e];if(i.finalized!==!0)throw Error(``);o.call(n,e)&&delete t[n[e]],n[e]=r,t.push.apply(t,i.baseNames)}for(var a=0,s=a,c=t.length;s<c;++s)o.call(t,s)&&(t[a++]=t[s]);t.length=a}x(se,`populateSupertypeList`);function L(e,t){return Object.keys(t).forEach(function(n){e[n]=t[n]}),e}x(L,`extend`);function ce(){Object.keys(O).forEach(function(e){O[e].finalize()})}return x(ce,`finalize`),{Type:t,builtInTypes:D,getSupertypeNames:te,computeSupertypeLookupTable:ne,builders:A,defineMethod:M,getBuilderName:N,getStatementBuilderName:P,namedTypes:re,getFieldNames:ie,getFieldValue:ae,eachField:oe,someField:F,finalize:ce}}x(g,`typesPlugin`),e.default=g,(0,r.maybeSetModuleExports)(function(){return t})}}),Bt=E({"../../node_modules/.pnpm/ast-types@0.16.1/node_modules/ast-types/lib/path.js"(e,t){Object.defineProperty(e,`__esModule`,{value:!0});var n=(G(),C(U)),r=K(),i=n.__importDefault(q()),a=Object.prototype.hasOwnProperty;function o(e){var t=e.use(i.default),n=t.builtInTypes.array,r=t.builtInTypes.number,o=x(function e(t,n,r){if(!(this instanceof e))throw Error(`Path constructor cannot be invoked without 'new'`);if(n){if(!(n instanceof e))throw Error(``)}else n=null,r=null;this.value=t,this.parentPath=n,this.name=r,this.__childCache=null},`Path`),s=o.prototype;function c(e){return e.__childCache||=Object.create(null)}x(c,`getChildCache`);function l(e,t){var n=c(e),r=e.getValueProperty(t),i=n[t];return(!a.call(n,t)||i.value!==r)&&(i=n[t]=new e.constructor(r,e,t)),i}x(l,`getChildPath`),s.getValueProperty=x(function(e){return this.value[e]},`getValueProperty`),s.get=x(function(){for(var e=[...arguments],t=this,n=e.length,r=0;r<n;++r)t=l(t,e[r]);return t},`get`),s.each=x(function(e,t){for(var n=[],r=this.value.length,i=0,i=0;i<r;++i)a.call(this.value,i)&&(n[i]=this.get(i));for(t||=this,i=0;i<r;++i)a.call(n,i)&&e.call(t,n[i])},`each`),s.map=x(function(e,t){var n=[];return this.each(function(t){n.push(e.call(this,t))},t),n},`map`),s.filter=x(function(e,t){var n=[];return this.each(function(t){e.call(this,t)&&n.push(t)},t),n},`filter`);function u(){}x(u,`emptyMoves`);function d(e,t,i,o){if(n.assert(e.value),t===0)return u;var s=e.value.length;if(s<1)return u;var l=arguments.length;l===2?(i=0,o=s):l===3?(i=Math.max(i,0),o=s):(i=Math.max(i,0),o=Math.min(o,s)),r.assert(i),r.assert(o);for(var d=Object.create(null),f=c(e),p=i;p<o;++p)if(a.call(e.value,p)){var m=e.get(p);if(m.name!==p)throw Error(``);var h=p+t;m.name=h,d[h]=m,delete f[p]}return delete f.length,function(){for(var t in d){var n=d[t];if(n.name!==+t)throw Error(``);f[t]=n,e.value[t]=n.value}}}x(d,`getMoves`),s.shift=x(function(){var e=d(this,-1),t=this.value.shift();return e(),t},`shift`),s.unshift=x(function(){var e=[...arguments],t=d(this,e.length),n=this.value.unshift.apply(this.value,e);return t(),n},`unshift`),s.push=x(function(){var e=[...arguments];return n.assert(this.value),delete c(this).length,this.value.push.apply(this.value,e)},`push`),s.pop=x(function(){n.assert(this.value);var e=c(this);return delete e[this.value.length-1],delete e.length,this.value.pop()},`pop`),s.insertAt=x(function(e){var t=arguments.length,n=d(this,t-1,e);if(n===u&&t<=1)return this;e=Math.max(e,0);for(var r=1;r<t;++r)this.value[e+r-1]=arguments[r];return n(),this},`insertAt`),s.insertBefore=x(function(){for(var e=[...arguments],t=this.parentPath,n=e.length,r=[this.name],i=0;i<n;++i)r.push(e[i]);return t.insertAt.apply(t,r)},`insertBefore`),s.insertAfter=x(function(){for(var e=[...arguments],t=this.parentPath,n=e.length,r=[this.name+1],i=0;i<n;++i)r.push(e[i]);return t.insertAt.apply(t,r)},`insertAfter`);function f(e){if(!(e instanceof o))throw Error(``);var t=e.parentPath;if(!t)return e;var r=t.value,i=c(t);if(r[e.name]===e.value)i[e.name]=e;else if(n.check(r)){var a=r.indexOf(e.value);a>=0&&(i[e.name=a]=e)}else r[e.name]=e.value,i[e.name]=e;if(r[e.name]!==e.value||e.parentPath.get(e.name)!==e)throw Error(``);return e}return x(f,`repairRelationshipWithParent`),s.replace=x(function(e){var t=[],r=this.parentPath.value,i=c(this.parentPath),a=arguments.length;if(f(this),n.check(r)){for(var o=r.length,s=d(this.parentPath,a-1,this.name+1),l=[this.name,1],u=0;u<a;++u)l.push(arguments[u]);if(r.splice.apply(r,l)[0]!==this.value||r.length!==o-1+a)throw Error(``);if(s(),a===0)delete this.value,delete i[this.name],this.__childCache=null;else{if(r[this.name]!==e)throw Error(``);for(this.value!==e&&(this.value=e,this.__childCache=null),u=0;u<a;++u)t.push(this.parentPath.get(this.name+u));if(t[0]!==this)throw Error(``)}}else if(a===1)this.value!==e&&(this.__childCache=null),this.value=r[this.name]=e,t.push(this);else if(a===0)delete r[this.name],delete this.value,this.__childCache=null;else throw Error(`Could not replace path`);return t},`replace`),o}x(o,`pathPlugin`),e.default=o,(0,r.maybeSetModuleExports)(function(){return t})}}),Vt=E({"../../node_modules/.pnpm/ast-types@0.16.1/node_modules/ast-types/lib/scope.js"(e,t){Object.defineProperty(e,`__esModule`,{value:!0});var n=(G(),C(U)),r=K(),i=n.__importDefault(q()),a=Object.prototype.hasOwnProperty;function o(e){var t=e.use(i.default),n=t.Type,r=t.namedTypes,o=r.Node,s=r.Expression,c=t.builtInTypes.array,l=t.builders,u=x(function e(t,n){if(!(this instanceof e))throw Error(`Scope constructor cannot be invoked without 'new'`);f.check(t.value)||d.assert(t.value);var r;if(n){if(!(n instanceof e))throw Error(``);r=n.depth+1}else n=null,r=0;Object.defineProperties(this,{path:{value:t},node:{value:t.value},isGlobal:{value:!n,enumerable:!0},depth:{value:r},parent:{value:n},bindings:{value:{}},types:{value:{}}})},`Scope`),d=n.or(r.Program,r.Function,r.CatchClause),f=n.or(r.Function,r.ClassDeclaration,r.ClassExpression,r.InterfaceDeclaration,r.TSInterfaceDeclaration,r.TypeAlias,r.TSTypeAliasDeclaration),p=n.or(r.TypeParameter,r.TSTypeParameter);u.isEstablishedBy=function(e){return d.check(e)||f.check(e)};var m=u.prototype;m.didScan=!1,m.declares=function(e){return this.scan(),a.call(this.bindings,e)},m.declaresType=function(e){return this.scan(),a.call(this.types,e)},m.declareTemporary=function(e){if(e){if(!/^[a-z$_]/i.test(e))throw Error(``)}else e=`t$`;e+=this.depth.toString(36)+`$`,this.scan();for(var n=0;this.declares(e+n);)++n;var r=e+n;return this.bindings[r]=t.builders.identifier(r)},m.injectTemporary=function(e,t){e||=this.declareTemporary();var n=this.path.get(`body`);return r.BlockStatement.check(n.value)&&(n=n.get(`body`)),n.unshift(l.variableDeclaration(`var`,[l.variableDeclarator(e,t||null)])),e},m.scan=function(e){if(e||!this.didScan){for(var t in this.bindings)delete this.bindings[t];for(var t in this.types)delete this.types[t];h(this.path,this.bindings,this.types),this.didScan=!0}},m.getBindings=function(){return this.scan(),this.bindings},m.getTypes=function(){return this.scan(),this.types};function h(e,t,n){var i=e.value;if(f.check(i)){var a=e.get(`typeParameters`,`params`);c.check(a.value)&&a.each(function(e){S(e,n)})}d.check(i)&&(r.CatchClause.check(i)?y(e.get(`param`),t):g(e,t,n))}x(h,`scanScope`);function g(e,n,i){var a=e.value;e.parent&&r.FunctionExpression.check(e.parent.node)&&e.parent.node.id&&y(e.parent.get(`id`),n),a&&(c.check(a)?e.each(function(e){v(e,n,i)}):r.Function.check(a)?(e.get(`params`).each(function(e){y(e,n)}),v(e.get(`body`),n,i),g(e.get(`typeParameters`),n,i)):r.TypeAlias&&r.TypeAlias.check(a)||r.InterfaceDeclaration&&r.InterfaceDeclaration.check(a)||r.TSTypeAliasDeclaration&&r.TSTypeAliasDeclaration.check(a)||r.TSInterfaceDeclaration&&r.TSInterfaceDeclaration.check(a)?b(e.get(`id`),i):r.VariableDeclarator.check(a)?(y(e.get(`id`),n),v(e.get(`init`),n,i)):a.type===`ImportSpecifier`||a.type===`ImportNamespaceSpecifier`||a.type===`ImportDefaultSpecifier`?y(e.get(a.local?`local`:a.name?`name`:`id`),n):o.check(a)&&!s.check(a)&&t.eachField(a,function(t,r){var a=e.get(t);if(!_(a,r))throw Error(``);v(a,n,i)}))}x(g,`recursiveScanScope`);function _(e,t){return!!(e.value===t||Array.isArray(e.value)&&e.value.length===0&&Array.isArray(t)&&t.length===0)}x(_,`pathHasValue`);function v(e,t,n){var i=e.value;if(!(!i||s.check(i)))if(r.FunctionDeclaration.check(i)&&i.id!==null)y(e.get(`id`),t);else if(r.ClassDeclaration&&r.ClassDeclaration.check(i)&&i.id!==null)y(e.get(`id`),t),g(e.get(`typeParameters`),t,n);else if(r.InterfaceDeclaration&&r.InterfaceDeclaration.check(i)||r.TSInterfaceDeclaration&&r.TSInterfaceDeclaration.check(i))b(e.get(`id`),n);else if(d.check(i)){if(r.CatchClause.check(i)&&r.Identifier.check(i.param)){var o=i.param.name,c=a.call(t,o);g(e.get(`body`),t,n),c||delete t[o]}}else g(e,t,n)}x(v,`recursiveScanChild`);function y(e,t){var n=e.value;r.Pattern.assert(n),r.Identifier.check(n)?a.call(t,n.name)?t[n.name].push(e):t[n.name]=[e]:r.AssignmentPattern&&r.AssignmentPattern.check(n)?y(e.get(`left`),t):r.ObjectPattern&&r.ObjectPattern.check(n)?e.get(`properties`).each(function(e){var n=e.value;r.Pattern.check(n)?y(e,t):r.Property.check(n)||r.ObjectProperty&&r.ObjectProperty.check(n)?y(e.get(`value`),t):r.SpreadProperty&&r.SpreadProperty.check(n)&&y(e.get(`argument`),t)}):r.ArrayPattern&&r.ArrayPattern.check(n)?e.get(`elements`).each(function(e){var n=e.value;r.Pattern.check(n)?y(e,t):r.SpreadElement&&r.SpreadElement.check(n)&&y(e.get(`argument`),t)}):r.PropertyPattern&&r.PropertyPattern.check(n)?y(e.get(`pattern`),t):(r.SpreadElementPattern&&r.SpreadElementPattern.check(n)||r.RestElement&&r.RestElement.check(n)||r.SpreadPropertyPattern&&r.SpreadPropertyPattern.check(n))&&y(e.get(`argument`),t)}x(y,`addPattern`);function b(e,t){var n=e.value;r.Pattern.assert(n),r.Identifier.check(n)&&(a.call(t,n.name)?t[n.name].push(e):t[n.name]=[e])}x(b,`addTypePattern`);function S(e,t){var n=e.value;p.assert(n),a.call(t,n.name)?t[n.name].push(e):t[n.name]=[e]}return x(S,`addTypeParameter`),m.lookup=function(e){for(var t=this;t&&!t.declares(e);t=t.parent);return t},m.lookupType=function(e){for(var t=this;t&&!t.declaresType(e);t=t.parent);return t},m.getGlobalScope=function(){for(var e=this;!e.isGlobal;)e=e.parent;return e},u}x(o,`scopePlugin`),e.default=o,(0,r.maybeSetModuleExports)(function(){return t})}}),Ht=E({"../../node_modules/.pnpm/ast-types@0.16.1/node_modules/ast-types/lib/node-path.js"(e,t){Object.defineProperty(e,`__esModule`,{value:!0});var n=(G(),C(U)),r=n.__importDefault(q()),i=n.__importDefault(Bt()),a=n.__importDefault(Vt()),o=K();function s(e){var t=e.use(r.default),n=t.namedTypes,o=t.builders,s=t.builtInTypes.number,c=t.builtInTypes.array,l=e.use(i.default),u=e.use(a.default),d=x(function e(t,n,r){if(!(this instanceof e))throw Error(`NodePath constructor cannot be invoked without 'new'`);l.call(this,t,n,r)},`NodePath`),f=d.prototype=Object.create(l.prototype,{constructor:{value:d,enumerable:!1,writable:!0,configurable:!0}});Object.defineProperties(f,{node:{get:x(function(){return Object.defineProperty(this,`node`,{configurable:!0,value:this._computeNode()}),this.node},`get`)},parent:{get:x(function(){return Object.defineProperty(this,`parent`,{configurable:!0,value:this._computeParent()}),this.parent},`get`)},scope:{get:x(function(){return Object.defineProperty(this,`scope`,{configurable:!0,value:this._computeScope()}),this.scope},`get`)}}),f.replace=function(){return delete this.node,delete this.parent,delete this.scope,l.prototype.replace.apply(this,arguments)},f.prune=function(){var e=this.parent;return this.replace(),v(e)},f._computeNode=function(){var e=this.value;if(n.Node.check(e))return e;var t=this.parentPath;return t&&t.node||null},f._computeParent=function(){var e=this.value,t=this.parentPath;if(!n.Node.check(e)){for(;t&&!n.Node.check(t.value);)t=t.parentPath;t&&=t.parentPath}for(;t&&!n.Node.check(t.value);)t=t.parentPath;return t||null},f._computeScope=function(){var e=this.value,t=this.parentPath,r=t&&t.scope;return n.Node.check(e)&&u.isEstablishedBy(e)&&(r=new u(this,r)),r||null},f.getValueProperty=function(e){return t.getFieldValue(this.value,e)},f.needsParens=function(e){var t=this.parentPath;if(!t)return!1;var r=this.value;if(!n.Expression.check(r)||r.type===`Identifier`)return!1;for(;!n.Node.check(t.value);)if(t=t.parentPath,!t)return!1;var i=t.value;switch(r.type){case`UnaryExpression`:case`SpreadElement`:case`SpreadProperty`:return i.type===`MemberExpression`&&this.name===`object`&&i.object===r;case`BinaryExpression`:case`LogicalExpression`:switch(i.type){case`CallExpression`:return this.name===`callee`&&i.callee===r;case`UnaryExpression`:case`SpreadElement`:case`SpreadProperty`:return!0;case`MemberExpression`:return this.name===`object`&&i.object===r;case`BinaryExpression`:case`LogicalExpression`:var a=r,o=h[i.operator],c=h[a.operator];if(o>c)return!0;if(o===c&&this.name===`right`){if(i.right!==a)throw Error(`Nodes must be equal`);return!0}default:return!1}case`SequenceExpression`:switch(i.type){case`ForStatement`:return!1;case`ExpressionStatement`:return this.name!==`expression`;default:return!0}case`YieldExpression`:switch(i.type){case`BinaryExpression`:case`LogicalExpression`:case`UnaryExpression`:case`SpreadElement`:case`SpreadProperty`:case`CallExpression`:case`MemberExpression`:case`NewExpression`:case`ConditionalExpression`:case`YieldExpression`:return!0;default:return!1}case`Literal`:return i.type===`MemberExpression`&&s.check(r.value)&&this.name===`object`&&i.object===r;case`AssignmentExpression`:case`ConditionalExpression`:switch(i.type){case`UnaryExpression`:case`SpreadElement`:case`SpreadProperty`:case`BinaryExpression`:case`LogicalExpression`:return!0;case`CallExpression`:return this.name===`callee`&&i.callee===r;case`ConditionalExpression`:return this.name===`test`&&i.test===r;case`MemberExpression`:return this.name===`object`&&i.object===r;default:return!1}default:if(i.type===`NewExpression`&&this.name===`callee`&&i.callee===r)return g(r)}return!!(e!==!0&&!this.canBeFirstInStatement()&&this.firstInStatement())};function p(e){return n.BinaryExpression.check(e)||n.LogicalExpression.check(e)}x(p,`isBinary`);function m(e){return n.UnaryExpression.check(e)||n.SpreadElement&&n.SpreadElement.check(e)||n.SpreadProperty&&n.SpreadProperty.check(e)}x(m,`isUnaryLike`);var h={};[[`||`],[`&&`],[`|`],[`^`],[`&`],[`==`,`===`,`!=`,`!==`],[`<`,`>`,`<=`,`>=`,`in`,`instanceof`],[`>>`,`<<`,`>>>`],[`+`,`-`],[`*`,`/`,`%`]].forEach(function(e,t){e.forEach(function(e){h[e]=t})});function g(e){return n.CallExpression.check(e)?!0:c.check(e)?e.some(g):n.Node.check(e)?t.someField(e,function(e,t){return g(t)}):!1}x(g,`containsCallExpression`),f.canBeFirstInStatement=function(){var e=this.node;return!n.FunctionExpression.check(e)&&!n.ObjectExpression.check(e)},f.firstInStatement=function(){return _(this)};function _(e){for(var t,r;e.parent;e=e.parent){if(t=e.node,r=e.parent.node,n.BlockStatement.check(r)&&e.parent.name===`body`&&e.name===0){if(r.body[0]!==t)throw Error(`Nodes must be equal`);return!0}if(n.ExpressionStatement.check(r)&&e.name===`expression`){if(r.expression!==t)throw Error(`Nodes must be equal`);return!0}if(n.SequenceExpression.check(r)&&e.parent.name===`expressions`&&e.name===0){if(r.expressions[0]!==t)throw Error(`Nodes must be equal`);continue}if(n.CallExpression.check(r)&&e.name===`callee`){if(r.callee!==t)throw Error(`Nodes must be equal`);continue}if(n.MemberExpression.check(r)&&e.name===`object`){if(r.object!==t)throw Error(`Nodes must be equal`);continue}if(n.ConditionalExpression.check(r)&&e.name===`test`){if(r.test!==t)throw Error(`Nodes must be equal`);continue}if(p(r)&&e.name===`left`){if(r.left!==t)throw Error(`Nodes must be equal`);continue}if(n.UnaryExpression.check(r)&&!r.prefix&&e.name===`argument`){if(r.argument!==t)throw Error(`Nodes must be equal`);continue}return!1}return!0}x(_,`firstInStatement`);function v(e){if(n.VariableDeclaration.check(e.node)){var t=e.get(`declarations`).value;if(!t||t.length===0)return e.prune()}else if(n.ExpressionStatement.check(e.node)){if(!e.get(`expression`).value)return e.prune()}else n.IfStatement.check(e.node)&&y(e);return e}x(v,`cleanUpNodesAfterPrune`);function y(e){var t=e.get(`test`).value,r=e.get(`alternate`).value,i=e.get(`consequent`).value;if(!i&&!r){var a=o.expressionStatement(t);e.replace(a)}else if(!i&&r){var s=o.unaryExpression(`!`,t,!0);n.UnaryExpression.check(t)&&t.operator===`!`&&(s=t.argument),e.get(`test`).replace(s),e.get(`consequent`).replace(r),e.get(`alternate`).replace()}}return x(y,`cleanUpIfStatementAfterPrune`),d}x(s,`nodePathPlugin`),e.default=s,(0,o.maybeSetModuleExports)(function(){return t})}}),Ut=E({"../../node_modules/.pnpm/ast-types@0.16.1/node_modules/ast-types/lib/path-visitor.js"(e,t){Object.defineProperty(e,`__esModule`,{value:!0});var n=(G(),C(U)),r=n.__importDefault(q()),i=n.__importDefault(Ht()),a=K(),o=Object.prototype.hasOwnProperty;function s(e){var t=e.use(r.default),n=e.use(i.default),a=t.builtInTypes.array,s=t.builtInTypes.object,c=t.builtInTypes.function,l,u=x(function e(){if(!(this instanceof e))throw Error(`PathVisitor constructor cannot be invoked without 'new'`);this._reusableContextStack=[],this._methodNameTable=d(this),this._shouldVisitComments=o.call(this._methodNameTable,`Block`)||o.call(this._methodNameTable,`Line`),this.Context=h(this),this._visiting=!1,this._changeReported=!1},`PathVisitor`);function d(e){var n=Object.create(null);for(var r in e)/^visit[A-Z]/.test(r)&&(n[r.slice(5)]=!0);for(var i=t.computeSupertypeLookupTable(n),a=Object.create(null),o=Object.keys(i),s=o.length,l=0;l<s;++l){var u=o[l];r=`visit`+i[u],c.check(e[r])&&(a[u]=r)}return a}x(d,`computeMethodNameTable`),u.fromMethodsObject=x(function(e){if(e instanceof u)return e;if(!s.check(e))return new u;var t=x(function e(){if(!(this instanceof e))throw Error(`Visitor constructor cannot be invoked without 'new'`);u.call(this)},`Visitor`),n=t.prototype=Object.create(p);return n.constructor=t,f(n,e),f(t,u),c.assert(t.fromMethodsObject),c.assert(t.visit),new t},`fromMethodsObject`);function f(e,t){for(var n in t)o.call(t,n)&&(e[n]=t[n]);return e}x(f,`extend`),u.visit=x(function(e,t){return u.fromMethodsObject(t).visit(e)},`visit`);var p=u.prototype;p.visit=function(){if(this._visiting)throw Error(`Recursively calling visitor.visit(path) resets visitor state. Try this.visit(path) or this.traverse(path) instead.`);this._visiting=!0,this._changeReported=!1,this._abortRequested=!1;var e=[...arguments];e[0]instanceof n||(e[0]=new n({root:e[0]}).get(`root`)),this.reset.apply(this,e);var t;try{var r=this.visitWithoutReset(e[0]);t=!0}finally{if(this._visiting=!1,!t&&this._abortRequested)return e[0].value}return r},p.AbortRequest=x(function(){},`AbortRequest`),p.abort=function(){var e=this;e._abortRequested=!0;var t=new e.AbortRequest;throw t.cancel=function(){e._abortRequested=!1},t},p.reset=function(e){},p.visitWithoutReset=function(e){if(this instanceof this.Context)return this.visitor.visitWithoutReset(e);if(!(e instanceof n))throw Error(``);var t=e.value,r=t&&typeof t==`object`&&typeof t.type==`string`&&this._methodNameTable[t.type];if(r){var i=this.acquireContext(e);try{return i.invokeVisitorMethod(r)}finally{this.releaseContext(i)}}else return m(e,this)};function m(e,r){if(!(e instanceof n)||!(r instanceof u))throw Error(``);var i=e.value;if(a.check(i))e.each(r.visitWithoutReset,r);else if(s.check(i)){var c=t.getFieldNames(i);r._shouldVisitComments&&i.comments&&c.indexOf(`comments`)<0&&c.push(`comments`);for(var l=c.length,d=[],f=0;f<l;++f){var p=c[f];o.call(i,p)||(i[p]=t.getFieldValue(i,p)),d.push(e.get(p))}for(var f=0;f<l;++f)r.visitWithoutReset(d[f])}return e.value}x(m,`visitChildren`),p.acquireContext=function(e){return this._reusableContextStack.length===0?new this.Context(e):this._reusableContextStack.pop().reset(e)},p.releaseContext=function(e){if(!(e instanceof this.Context))throw Error(``);this._reusableContextStack.push(e),e.currentPath=null},p.reportChanged=function(){this._changeReported=!0},p.wasChangeReported=function(){return this._changeReported};function h(e){function t(r){if(!(this instanceof t)||!(this instanceof u)||!(r instanceof n))throw Error(``);Object.defineProperty(this,`visitor`,{value:e,writable:!1,enumerable:!0,configurable:!1}),this.currentPath=r,this.needToCallTraverse=!0,Object.seal(this)}if(x(t,`Context`),!(e instanceof u))throw Error(``);var r=t.prototype=Object.create(e);return r.constructor=t,f(r,g),t}x(h,`makeContextConstructor`);var g=Object.create(null);return g.reset=x(function(e){if(!(this instanceof this.Context)||!(e instanceof n))throw Error(``);return this.currentPath=e,this.needToCallTraverse=!0,this},`reset`),g.invokeVisitorMethod=x(function(e){if(!(this instanceof this.Context)||!(this.currentPath instanceof n))throw Error(``);var t=this.visitor[e].call(this,this.currentPath);if(t===!1?this.needToCallTraverse=!1:t!==l&&(this.currentPath=this.currentPath.replace(t)[0],this.needToCallTraverse&&this.traverse(this.currentPath)),this.needToCallTraverse!==!1)throw Error(`Must either call this.traverse or return false in `+e);var r=this.currentPath;return r&&r.value},`invokeVisitorMethod`),g.traverse=x(function(e,t){if(!(this instanceof this.Context)||!(e instanceof n)||!(this.currentPath instanceof n))throw Error(``);return this.needToCallTraverse=!1,m(e,u.fromMethodsObject(t||this.visitor))},`traverse`),g.visit=x(function(e,t){if(!(this instanceof this.Context)||!(e instanceof n)||!(this.currentPath instanceof n))throw Error(``);return this.needToCallTraverse=!1,u.fromMethodsObject(t||this.visitor).visitWithoutReset(e)},`visit`),g.reportChanged=x(function(){this.visitor.reportChanged()},`reportChanged`),g.abort=x(function(){this.needToCallTraverse=!1,this.visitor.abort()},`abort`),u}x(s,`pathVisitorPlugin`),e.default=s,(0,a.maybeSetModuleExports)(function(){return t})}}),Wt=E({"../../node_modules/.pnpm/ast-types@0.16.1/node_modules/ast-types/lib/equiv.js"(e,t){Object.defineProperty(e,`__esModule`,{value:!0});var n=(G(),C(U)),r=K(),i=n.__importDefault(q());function a(e){var t=e.use(i.default),n=t.getFieldNames,r=t.getFieldValue,a=t.builtInTypes.array,o=t.builtInTypes.object,s=t.builtInTypes.Date,c=t.builtInTypes.RegExp,l=Object.prototype.hasOwnProperty;function u(e,t,n){return a.check(n)?n.length=0:n=null,f(e,t,n)}x(u,`astNodesAreEquivalent`),u.assert=function(e,t){var n=[];if(!u(e,t,n))if(n.length===0){if(e!==t)throw Error(`Nodes must be equal`)}else throw Error(`Nodes differ in the following path: `+n.map(d).join(``))};function d(e){return/[_$a-z][_$a-z0-9]*/i.test(e)?`.`+e:`[`+JSON.stringify(e)+`]`}x(d,`subscriptForProperty`);function f(e,t,n){return e===t?!0:a.check(e)?p(e,t,n):o.check(e)?m(e,t,n):s.check(e)?s.check(t)&&+e==+t:c.check(e)?c.check(t)&&e.source===t.source&&e.global===t.global&&e.multiline===t.multiline&&e.ignoreCase===t.ignoreCase:e==t}x(f,`areEquivalent`);function p(e,t,n){a.assert(e);var r=e.length;if(!a.check(t)||t.length!==r)return n&&n.push(`length`),!1;for(var i=0;i<r;++i){if(n&&n.push(i),i in e!=i in t||!f(e[i],t[i],n))return!1;if(n){var o=n.pop();if(o!==i)throw Error(``+o)}}return!0}x(p,`arraysAreEquivalent`);function m(e,t,i){if(o.assert(e),!o.check(t))return!1;if(e.type!==t.type)return i&&i.push(`type`),!1;var a=n(e),s=a.length,c=n(t),u=c.length;if(s===u){for(var d=0;d<s;++d){var p=a[d],m=r(e,p),h=r(t,p);if(i&&i.push(p),!f(m,h,i))return!1;if(i){var g=i.pop();if(g!==p)throw Error(``+g)}}return!0}if(!i)return!1;var _=Object.create(null);for(d=0;d<s;++d)_[a[d]]=!0;for(d=0;d<u;++d){if(p=c[d],!l.call(_,p))return i.push(p),!1;delete _[p]}for(p in _){i.push(p);break}return!1}return x(m,`objectsAreEquivalent`),u}x(a,`default_1`),e.default=a,(0,r.maybeSetModuleExports)(function(){return t})}}),Gt=E({"../../node_modules/.pnpm/ast-types@0.16.1/node_modules/ast-types/lib/fork.js"(e,t){Object.defineProperty(e,`__esModule`,{value:!0});var n=(G(),C(U)),r=n.__importDefault(q()),i=n.__importDefault(Ut()),a=n.__importDefault(Wt()),o=n.__importDefault(Bt()),s=n.__importDefault(Ht()),c=K();function l(e){var t=u(),n=t.use(r.default);e.forEach(t.use),n.finalize();var c=t.use(i.default);return{Type:n.Type,builtInTypes:n.builtInTypes,namedTypes:n.namedTypes,builders:n.builders,defineMethod:n.defineMethod,getFieldNames:n.getFieldNames,getFieldValue:n.getFieldValue,eachField:n.eachField,someField:n.someField,getSupertypeNames:n.getSupertypeNames,getBuilderName:n.getBuilderName,astNodesAreEquivalent:t.use(a.default),finalize:n.finalize,Path:t.use(o.default),NodePath:t.use(s.default),PathVisitor:c,use:t.use,visit:c.visit}}x(l,`default_1`),e.default=l;function u(){var e=[],t=[];function n(n){var i=e.indexOf(n);return i===-1&&(i=e.length,e.push(n),t[i]=n(r)),t[i]}x(n,`use`);var r={use:n};return r}x(u,`createFork`),(0,c.maybeSetModuleExports)(function(){return t})}}),Kt=E({"../../node_modules/.pnpm/ast-types@0.16.1/node_modules/ast-types/lib/def/operators/core.js"(e,t){Object.defineProperty(e,`__esModule`,{value:!0});var n=K();function r(){return{BinaryOperators:[`==`,`!=`,`===`,`!==`,`<`,`<=`,`>`,`>=`,`<<`,`>>`,`>>>`,`+`,`-`,`*`,`/`,`%`,`&`,`|`,`^`,`in`,`instanceof`],AssignmentOperators:[`=`,`+=`,`-=`,`*=`,`/=`,`%=`,`<<=`,`>>=`,`>>>=`,`|=`,`^=`,`&=`],LogicalOperators:[`||`,`&&`]}}x(r,`default_1`),e.default=r,(0,n.maybeSetModuleExports)(function(){return t})}}),qt=E({"../../node_modules/.pnpm/ast-types@0.16.1/node_modules/ast-types/lib/def/operators/es2016.js"(e,t){Object.defineProperty(e,`__esModule`,{value:!0});var n=(G(),C(U)),r=K(),i=n.__importDefault(Kt());function a(e){var t=e.use(i.default);return t.BinaryOperators.indexOf(`**`)<0&&t.BinaryOperators.push(`**`),t.AssignmentOperators.indexOf(`**=`)<0&&t.AssignmentOperators.push(`**=`),t}x(a,`default_1`),e.default=a,(0,r.maybeSetModuleExports)(function(){return t})}}),Jt=E({"../../node_modules/.pnpm/ast-types@0.16.1/node_modules/ast-types/lib/def/operators/es2020.js"(e,t){Object.defineProperty(e,`__esModule`,{value:!0});var n=(G(),C(U)),r=K(),i=n.__importDefault(qt());function a(e){var t=e.use(i.default);return t.LogicalOperators.indexOf(`??`)<0&&t.LogicalOperators.push(`??`),t}x(a,`default_1`),e.default=a,(0,r.maybeSetModuleExports)(function(){return t})}}),Yt=E({"../../node_modules/.pnpm/ast-types@0.16.1/node_modules/ast-types/lib/def/operators/es2021.js"(e,t){Object.defineProperty(e,`__esModule`,{value:!0});var n=(G(),C(U)),r=K(),i=n.__importDefault(Jt());function a(e){var t=e.use(i.default);return t.LogicalOperators.forEach(function(e){var n=e+`=`;t.AssignmentOperators.indexOf(n)<0&&t.AssignmentOperators.push(n)}),t}x(a,`default_1`),e.default=a,(0,r.maybeSetModuleExports)(function(){return t})}}),Xt=E({"../../node_modules/.pnpm/ast-types@0.16.1/node_modules/ast-types/lib/def/core.js"(e,t){Object.defineProperty(e,`__esModule`,{value:!0});var n=(G(),C(U)),r=n.__importDefault(Kt()),i=n.__importDefault(q()),a=n.__importStar(K());function o(e){var t=e.use(i.default).Type,n=t.def,o=t.or,s=e.use(a.default),c=s.defaults,l=s.geq,u=e.use(r.default),d=u.BinaryOperators,f=u.AssignmentOperators,p=u.LogicalOperators;n(`Printable`).field(`loc`,o(n(`SourceLocation`),null),c.null,!0),n(`Node`).bases(`Printable`).field(`type`,String).field(`comments`,o([n(`Comment`)],null),c.null,!0),n(`SourceLocation`).field(`start`,n(`Position`)).field(`end`,n(`Position`)).field(`source`,o(String,null),c.null),n(`Position`).field(`line`,l(1)).field(`column`,l(0)),n(`File`).bases(`Node`).build(`program`,`name`).field(`program`,n(`Program`)).field(`name`,o(String,null),c.null),n(`Program`).bases(`Node`).build(`body`).field(`body`,[n(`Statement`)]),n(`Function`).bases(`Node`).field(`id`,o(n(`Identifier`),null),c.null).field(`params`,[n(`Pattern`)]).field(`body`,n(`BlockStatement`)).field(`generator`,Boolean,c.false).field(`async`,Boolean,c.false),n(`Statement`).bases(`Node`),n(`EmptyStatement`).bases(`Statement`).build(),n(`BlockStatement`).bases(`Statement`).build(`body`).field(`body`,[n(`Statement`)]),n(`ExpressionStatement`).bases(`Statement`).build(`expression`).field(`expression`,n(`Expression`)),n(`IfStatement`).bases(`Statement`).build(`test`,`consequent`,`alternate`).field(`test`,n(`Expression`)).field(`consequent`,n(`Statement`)).field(`alternate`,o(n(`Statement`),null),c.null),n(`LabeledStatement`).bases(`Statement`).build(`label`,`body`).field(`label`,n(`Identifier`)).field(`body`,n(`Statement`)),n(`BreakStatement`).bases(`Statement`).build(`label`).field(`label`,o(n(`Identifier`),null),c.null),n(`ContinueStatement`).bases(`Statement`).build(`label`).field(`label`,o(n(`Identifier`),null),c.null),n(`WithStatement`).bases(`Statement`).build(`object`,`body`).field(`object`,n(`Expression`)).field(`body`,n(`Statement`)),n(`SwitchStatement`).bases(`Statement`).build(`discriminant`,`cases`,`lexical`).field(`discriminant`,n(`Expression`)).field(`cases`,[n(`SwitchCase`)]).field(`lexical`,Boolean,c.false),n(`ReturnStatement`).bases(`Statement`).build(`argument`).field(`argument`,o(n(`Expression`),null)),n(`ThrowStatement`).bases(`Statement`).build(`argument`).field(`argument`,n(`Expression`)),n(`TryStatement`).bases(`Statement`).build(`block`,`handler`,`finalizer`).field(`block`,n(`BlockStatement`)).field(`handler`,o(n(`CatchClause`),null),function(){return this.handlers&&this.handlers[0]||null}).field(`handlers`,[n(`CatchClause`)],function(){return this.handler?[this.handler]:[]},!0).field(`guardedHandlers`,[n(`CatchClause`)],c.emptyArray).field(`finalizer`,o(n(`BlockStatement`),null),c.null),n(`CatchClause`).bases(`Node`).build(`param`,`guard`,`body`).field(`param`,n(`Pattern`)).field(`guard`,o(n(`Expression`),null),c.null).field(`body`,n(`BlockStatement`)),n(`WhileStatement`).bases(`Statement`).build(`test`,`body`).field(`test`,n(`Expression`)).field(`body`,n(`Statement`)),n(`DoWhileStatement`).bases(`Statement`).build(`body`,`test`).field(`body`,n(`Statement`)).field(`test`,n(`Expression`)),n(`ForStatement`).bases(`Statement`).build(`init`,`test`,`update`,`body`).field(`init`,o(n(`VariableDeclaration`),n(`Expression`),null)).field(`test`,o(n(`Expression`),null)).field(`update`,o(n(`Expression`),null)).field(`body`,n(`Statement`)),n(`ForInStatement`).bases(`Statement`).build(`left`,`right`,`body`).field(`left`,o(n(`VariableDeclaration`),n(`Expression`))).field(`right`,n(`Expression`)).field(`body`,n(`Statement`)),n(`DebuggerStatement`).bases(`Statement`).build(),n(`Declaration`).bases(`Statement`),n(`FunctionDeclaration`).bases(`Function`,`Declaration`).build(`id`,`params`,`body`).field(`id`,n(`Identifier`)),n(`FunctionExpression`).bases(`Function`,`Expression`).build(`id`,`params`,`body`),n(`VariableDeclaration`).bases(`Declaration`).build(`kind`,`declarations`).field(`kind`,o(`var`,`let`,`const`)).field(`declarations`,[n(`VariableDeclarator`)]),n(`VariableDeclarator`).bases(`Node`).build(`id`,`init`).field(`id`,n(`Pattern`)).field(`init`,o(n(`Expression`),null),c.null),n(`Expression`).bases(`Node`),n(`ThisExpression`).bases(`Expression`).build(),n(`ArrayExpression`).bases(`Expression`).build(`elements`).field(`elements`,[o(n(`Expression`),null)]),n(`ObjectExpression`).bases(`Expression`).build(`properties`).field(`properties`,[n(`Property`)]),n(`Property`).bases(`Node`).build(`kind`,`key`,`value`).field(`kind`,o(`init`,`get`,`set`)).field(`key`,o(n(`Literal`),n(`Identifier`))).field(`value`,n(`Expression`)),n(`SequenceExpression`).bases(`Expression`).build(`expressions`).field(`expressions`,[n(`Expression`)]);var m=o(`-`,`+`,`!`,`~`,`typeof`,`void`,`delete`);n(`UnaryExpression`).bases(`Expression`).build(`operator`,`argument`,`prefix`).field(`operator`,m).field(`argument`,n(`Expression`)).field(`prefix`,Boolean,c.true);var h=o.apply(void 0,d);n(`BinaryExpression`).bases(`Expression`).build(`operator`,`left`,`right`).field(`operator`,h).field(`left`,n(`Expression`)).field(`right`,n(`Expression`));var g=o.apply(void 0,f);n(`AssignmentExpression`).bases(`Expression`).build(`operator`,`left`,`right`).field(`operator`,g).field(`left`,o(n(`Pattern`),n(`MemberExpression`))).field(`right`,n(`Expression`));var _=o(`++`,`--`);n(`UpdateExpression`).bases(`Expression`).build(`operator`,`argument`,`prefix`).field(`operator`,_).field(`argument`,n(`Expression`)).field(`prefix`,Boolean);var v=o.apply(void 0,p);n(`LogicalExpression`).bases(`Expression`).build(`operator`,`left`,`right`).field(`operator`,v).field(`left`,n(`Expression`)).field(`right`,n(`Expression`)),n(`ConditionalExpression`).bases(`Expression`).build(`test`,`consequent`,`alternate`).field(`test`,n(`Expression`)).field(`consequent`,n(`Expression`)).field(`alternate`,n(`Expression`)),n(`NewExpression`).bases(`Expression`).build(`callee`,`arguments`).field(`callee`,n(`Expression`)).field(`arguments`,[n(`Expression`)]),n(`CallExpression`).bases(`Expression`).build(`callee`,`arguments`).field(`callee`,n(`Expression`)).field(`arguments`,[n(`Expression`)]),n(`MemberExpression`).bases(`Expression`).build(`object`,`property`,`computed`).field(`object`,n(`Expression`)).field(`property`,o(n(`Identifier`),n(`Expression`))).field(`computed`,Boolean,function(){var e=this.property.type;return e===`Literal`||e===`MemberExpression`||e===`BinaryExpression`}),n(`Pattern`).bases(`Node`),n(`SwitchCase`).bases(`Node`).build(`test`,`consequent`).field(`test`,o(n(`Expression`),null)).field(`consequent`,[n(`Statement`)]),n(`Identifier`).bases(`Expression`,`Pattern`).build(`name`).field(`name`,String).field(`optional`,Boolean,c.false),n(`Literal`).bases(`Expression`).build(`value`).field(`value`,o(String,Boolean,null,Number,RegExp,BigInt)),n(`Comment`).bases(`Printable`).field(`value`,String).field(`leading`,Boolean,c.true).field(`trailing`,Boolean,c.false)}x(o,`default_1`),e.default=o,(0,a.maybeSetModuleExports)(function(){return t})}}),Zt=E({"../../node_modules/.pnpm/ast-types@0.16.1/node_modules/ast-types/lib/def/es6.js"(e,t){Object.defineProperty(e,`__esModule`,{value:!0});var n=(G(),C(U)),r=n.__importDefault(Xt()),i=n.__importDefault(q()),a=n.__importStar(K());function o(e){e.use(r.default);var t=e.use(i.default),n=t.Type.def,o=t.Type.or,s=e.use(a.default).defaults;n(`Function`).field(`generator`,Boolean,s.false).field(`expression`,Boolean,s.false).field(`defaults`,[o(n(`Expression`),null)],s.emptyArray).field(`rest`,o(n(`Identifier`),null),s.null),n(`RestElement`).bases(`Pattern`).build(`argument`).field(`argument`,n(`Pattern`)).field(`typeAnnotation`,o(n(`TypeAnnotation`),n(`TSTypeAnnotation`),null),s.null),n(`SpreadElementPattern`).bases(`Pattern`).build(`argument`).field(`argument`,n(`Pattern`)),n(`FunctionDeclaration`).build(`id`,`params`,`body`,`generator`,`expression`).field(`id`,o(n(`Identifier`),null)),n(`FunctionExpression`).build(`id`,`params`,`body`,`generator`,`expression`),n(`ArrowFunctionExpression`).bases(`Function`,`Expression`).build(`params`,`body`,`expression`).field(`id`,null,s.null).field(`body`,o(n(`BlockStatement`),n(`Expression`))).field(`generator`,!1,s.false),n(`ForOfStatement`).bases(`Statement`).build(`left`,`right`,`body`).field(`left`,o(n(`VariableDeclaration`),n(`Pattern`))).field(`right`,n(`Expression`)).field(`body`,n(`Statement`)),n(`YieldExpression`).bases(`Expression`).build(`argument`,`delegate`).field(`argument`,o(n(`Expression`),null)).field(`delegate`,Boolean,s.false),n(`GeneratorExpression`).bases(`Expression`).build(`body`,`blocks`,`filter`).field(`body`,n(`Expression`)).field(`blocks`,[n(`ComprehensionBlock`)]).field(`filter`,o(n(`Expression`),null)),n(`ComprehensionExpression`).bases(`Expression`).build(`body`,`blocks`,`filter`).field(`body`,n(`Expression`)).field(`blocks`,[n(`ComprehensionBlock`)]).field(`filter`,o(n(`Expression`),null)),n(`ComprehensionBlock`).bases(`Node`).build(`left`,`right`,`each`).field(`left`,n(`Pattern`)).field(`right`,n(`Expression`)).field(`each`,Boolean),n(`Property`).field(`key`,o(n(`Literal`),n(`Identifier`),n(`Expression`))).field(`value`,o(n(`Expression`),n(`Pattern`))).field(`method`,Boolean,s.false).field(`shorthand`,Boolean,s.false).field(`computed`,Boolean,s.false),n(`ObjectProperty`).field(`shorthand`,Boolean,s.false),n(`PropertyPattern`).bases(`Pattern`).build(`key`,`pattern`).field(`key`,o(n(`Literal`),n(`Identifier`),n(`Expression`))).field(`pattern`,n(`Pattern`)).field(`computed`,Boolean,s.false),n(`ObjectPattern`).bases(`Pattern`).build(`properties`).field(`properties`,[o(n(`PropertyPattern`),n(`Property`))]),n(`ArrayPattern`).bases(`Pattern`).build(`elements`).field(`elements`,[o(n(`Pattern`),null)]),n(`SpreadElement`).bases(`Node`).build(`argument`).field(`argument`,n(`Expression`)),n(`ArrayExpression`).field(`elements`,[o(n(`Expression`),n(`SpreadElement`),n(`RestElement`),null)]),n(`NewExpression`).field(`arguments`,[o(n(`Expression`),n(`SpreadElement`))]),n(`CallExpression`).field(`arguments`,[o(n(`Expression`),n(`SpreadElement`))]),n(`AssignmentPattern`).bases(`Pattern`).build(`left`,`right`).field(`left`,n(`Pattern`)).field(`right`,n(`Expression`)),n(`MethodDefinition`).bases(`Declaration`).build(`kind`,`key`,`value`,`static`).field(`kind`,o(`constructor`,`method`,`get`,`set`)).field(`key`,n(`Expression`)).field(`value`,n(`Function`)).field(`computed`,Boolean,s.false).field(`static`,Boolean,s.false);var c=o(n(`MethodDefinition`),n(`VariableDeclarator`),n(`ClassPropertyDefinition`),n(`ClassProperty`),n(`StaticBlock`));n(`ClassProperty`).bases(`Declaration`).build(`key`).field(`key`,o(n(`Literal`),n(`Identifier`),n(`Expression`))).field(`computed`,Boolean,s.false),n(`ClassPropertyDefinition`).bases(`Declaration`).build(`definition`).field(`definition`,c),n(`ClassBody`).bases(`Declaration`).build(`body`).field(`body`,[c]),n(`ClassDeclaration`).bases(`Declaration`).build(`id`,`body`,`superClass`).field(`id`,o(n(`Identifier`),null)).field(`body`,n(`ClassBody`)).field(`superClass`,o(n(`Expression`),null),s.null),n(`ClassExpression`).bases(`Expression`).build(`id`,`body`,`superClass`).field(`id`,o(n(`Identifier`),null),s.null).field(`body`,n(`ClassBody`)).field(`superClass`,o(n(`Expression`),null),s.null),n(`Super`).bases(`Expression`).build(),n(`Specifier`).bases(`Node`),n(`ModuleSpecifier`).bases(`Specifier`).field(`local`,o(n(`Identifier`),null),s.null).field(`id`,o(n(`Identifier`),null),s.null).field(`name`,o(n(`Identifier`),null),s.null),n(`ImportSpecifier`).bases(`ModuleSpecifier`).build(`imported`,`local`).field(`imported`,n(`Identifier`)),n(`ImportDefaultSpecifier`).bases(`ModuleSpecifier`).build(`local`),n(`ImportNamespaceSpecifier`).bases(`ModuleSpecifier`).build(`local`),n(`ImportDeclaration`).bases(`Declaration`).build(`specifiers`,`source`,`importKind`).field(`specifiers`,[o(n(`ImportSpecifier`),n(`ImportNamespaceSpecifier`),n(`ImportDefaultSpecifier`))],s.emptyArray).field(`source`,n(`Literal`)).field(`importKind`,o(`value`,`type`),function(){return`value`}),n(`ExportNamedDeclaration`).bases(`Declaration`).build(`declaration`,`specifiers`,`source`).field(`declaration`,o(n(`Declaration`),null)).field(`specifiers`,[n(`ExportSpecifier`)],s.emptyArray).field(`source`,o(n(`Literal`),null),s.null),n(`ExportSpecifier`).bases(`ModuleSpecifier`).build(`local`,`exported`).field(`exported`,n(`Identifier`)),n(`ExportDefaultDeclaration`).bases(`Declaration`).build(`declaration`).field(`declaration`,o(n(`Declaration`),n(`Expression`))),n(`ExportAllDeclaration`).bases(`Declaration`).build(`source`).field(`source`,n(`Literal`)),n(`TaggedTemplateExpression`).bases(`Expression`).build(`tag`,`quasi`).field(`tag`,n(`Expression`)).field(`quasi`,n(`TemplateLiteral`)),n(`TemplateLiteral`).bases(`Expression`).build(`quasis`,`expressions`).field(`quasis`,[n(`TemplateElement`)]).field(`expressions`,[n(`Expression`)]),n(`TemplateElement`).bases(`Node`).build(`value`,`tail`).field(`value`,{cooked:String,raw:String}).field(`tail`,Boolean),n(`MetaProperty`).bases(`Expression`).build(`meta`,`property`).field(`meta`,n(`Identifier`)).field(`property`,n(`Identifier`))}x(o,`default_1`),e.default=o,(0,a.maybeSetModuleExports)(function(){return t})}}),J=E({"../../node_modules/.pnpm/ast-types@0.16.1/node_modules/ast-types/lib/def/es2016.js"(e,t){Object.defineProperty(e,`__esModule`,{value:!0});var n=(G(),C(U)),r=n.__importDefault(qt()),i=n.__importDefault(Zt()),a=K();function o(e){e.use(r.default),e.use(i.default)}x(o,`default_1`),e.default=o,(0,a.maybeSetModuleExports)(function(){return t})}}),Qt=E({"../../node_modules/.pnpm/ast-types@0.16.1/node_modules/ast-types/lib/def/es2017.js"(e,t){Object.defineProperty(e,`__esModule`,{value:!0});var n=(G(),C(U)),r=n.__importDefault(J()),i=n.__importDefault(q()),a=n.__importStar(K());function o(e){e.use(r.default);var t=e.use(i.default).Type.def,n=e.use(a.default).defaults;t(`Function`).field(`async`,Boolean,n.false),t(`AwaitExpression`).bases(`Expression`).build(`argument`).field(`argument`,t(`Expression`))}x(o,`default_1`),e.default=o,(0,a.maybeSetModuleExports)(function(){return t})}}),$t=E({"../../node_modules/.pnpm/ast-types@0.16.1/node_modules/ast-types/lib/def/es2018.js"(e,t){Object.defineProperty(e,`__esModule`,{value:!0});var n=(G(),C(U)),r=n.__importDefault(Qt()),i=n.__importDefault(q()),a=n.__importStar(K());function o(e){e.use(r.default);var t=e.use(i.default),n=t.Type.def,o=t.Type.or,s=e.use(a.default).defaults;n(`ForOfStatement`).field(`await`,Boolean,s.false),n(`SpreadProperty`).bases(`Node`).build(`argument`).field(`argument`,n(`Expression`)),n(`ObjectExpression`).field(`properties`,[o(n(`Property`),n(`SpreadProperty`),n(`SpreadElement`))]),n(`TemplateElement`).field(`value`,{cooked:o(String,null),raw:String}),n(`SpreadPropertyPattern`).bases(`Pattern`).build(`argument`).field(`argument`,n(`Pattern`)),n(`ObjectPattern`).field(`properties`,[o(n(`PropertyPattern`),n(`Property`),n(`RestElement`),n(`SpreadPropertyPattern`))])}x(o,`default_1`),e.default=o,(0,a.maybeSetModuleExports)(function(){return t})}}),en=E({"../../node_modules/.pnpm/ast-types@0.16.1/node_modules/ast-types/lib/def/es2019.js"(e,t){Object.defineProperty(e,`__esModule`,{value:!0});var n=(G(),C(U)),r=n.__importDefault($t()),i=n.__importDefault(q()),a=n.__importStar(K());function o(e){e.use(r.default);var t=e.use(i.default),n=t.Type.def,o=t.Type.or,s=e.use(a.default).defaults;n(`CatchClause`).field(`param`,o(n(`Pattern`),null),s.null)}x(o,`default_1`),e.default=o,(0,a.maybeSetModuleExports)(function(){return t})}}),tn=E({"../../node_modules/.pnpm/ast-types@0.16.1/node_modules/ast-types/lib/def/es2020.js"(e,t){Object.defineProperty(e,`__esModule`,{value:!0});var n=(G(),C(U)),r=n.__importDefault(Jt()),i=n.__importDefault(en()),a=n.__importDefault(q()),o=n.__importStar(K());function s(e){e.use(r.default),e.use(i.default);var t=e.use(a.default),n=t.Type.def,s=t.Type.or,c=e.use(o.default).defaults;n(`ImportExpression`).bases(`Expression`).build(`source`).field(`source`,n(`Expression`)),n(`ExportAllDeclaration`).bases(`Declaration`).build(`source`,`exported`).field(`source`,n(`Literal`)).field(`exported`,s(n(`Identifier`),null,void 0),c.null),n(`ChainElement`).bases(`Node`).field(`optional`,Boolean,c.false),n(`CallExpression`).bases(`Expression`,`ChainElement`),n(`MemberExpression`).bases(`Expression`,`ChainElement`),n(`ChainExpression`).bases(`Expression`).build(`expression`).field(`expression`,n(`ChainElement`)),n(`OptionalCallExpression`).bases(`CallExpression`).build(`callee`,`arguments`,`optional`).field(`optional`,Boolean,c.true),n(`OptionalMemberExpression`).bases(`MemberExpression`).build(`object`,`property`,`computed`,`optional`).field(`optional`,Boolean,c.true)}x(s,`default_1`),e.default=s,(0,o.maybeSetModuleExports)(function(){return t})}}),nn=E({"../../node_modules/.pnpm/ast-types@0.16.1/node_modules/ast-types/lib/def/es2021.js"(e,t){Object.defineProperty(e,`__esModule`,{value:!0});var n=(G(),C(U)),r=n.__importDefault(Yt()),i=n.__importDefault(tn()),a=K();function o(e){e.use(r.default),e.use(i.default)}x(o,`default_1`),e.default=o,(0,a.maybeSetModuleExports)(function(){return t})}}),rn=E({"../../node_modules/.pnpm/ast-types@0.16.1/node_modules/ast-types/lib/def/es2022.js"(e,t){Object.defineProperty(e,`__esModule`,{value:!0});var n=(G(),C(U)),r=n.__importDefault(nn()),i=n.__importDefault(q()),a=K();function o(e){e.use(r.default);var t=e.use(i.default).Type.def;t(`StaticBlock`).bases(`Declaration`).build(`body`).field(`body`,[t(`Statement`)])}x(o,`default_1`),e.default=o,(0,a.maybeSetModuleExports)(function(){return t})}}),an=E({"../../node_modules/.pnpm/ast-types@0.16.1/node_modules/ast-types/lib/def/es-proposals.js"(e,t){Object.defineProperty(e,`__esModule`,{value:!0});var n=(G(),C(U)),r=n.__importDefault(q()),i=n.__importStar(K()),a=n.__importDefault(rn());function o(e){e.use(a.default);var t=e.use(r.default),n=t.Type,o=t.Type.def,s=n.or,c=e.use(i.default).defaults;o(`AwaitExpression`).build(`argument`,`all`).field(`argument`,s(o(`Expression`),null)).field(`all`,Boolean,c.false),o(`Decorator`).bases(`Node`).build(`expression`).field(`expression`,o(`Expression`)),o(`Property`).field(`decorators`,s([o(`Decorator`)],null),c.null),o(`MethodDefinition`).field(`decorators`,s([o(`Decorator`)],null),c.null),o(`PrivateName`).bases(`Expression`,`Pattern`).build(`id`).field(`id`,o(`Identifier`)),o(`ClassPrivateProperty`).bases(`ClassProperty`).build(`key`,`value`).field(`key`,o(`PrivateName`)).field(`value`,s(o(`Expression`),null),c.null),o(`ImportAttribute`).bases(`Node`).build(`key`,`value`).field(`key`,s(o(`Identifier`),o(`Literal`))).field(`value`,o(`Expression`)),[`ImportDeclaration`,`ExportAllDeclaration`,`ExportNamedDeclaration`].forEach(function(e){o(e).field(`assertions`,[o(`ImportAttribute`)],c.emptyArray)}),o(`RecordExpression`).bases(`Expression`).build(`properties`).field(`properties`,[s(o(`ObjectProperty`),o(`ObjectMethod`),o(`SpreadElement`))]),o(`TupleExpression`).bases(`Expression`).build(`elements`).field(`elements`,[s(o(`Expression`),o(`SpreadElement`),null)]),o(`ModuleExpression`).bases(`Node`).build(`body`).field(`body`,o(`Program`))}x(o,`default_1`),e.default=o,(0,i.maybeSetModuleExports)(function(){return t})}}),on=E({"../../node_modules/.pnpm/ast-types@0.16.1/node_modules/ast-types/lib/def/jsx.js"(e,t){Object.defineProperty(e,`__esModule`,{value:!0});var n=(G(),C(U)),r=n.__importDefault(an()),i=n.__importDefault(q()),a=n.__importStar(K());function o(e){e.use(r.default);var t=e.use(i.default),n=t.Type.def,o=t.Type.or,s=e.use(a.default).defaults;n(`JSXAttribute`).bases(`Node`).build(`name`,`value`).field(`name`,o(n(`JSXIdentifier`),n(`JSXNamespacedName`))).field(`value`,o(n(`Literal`),n(`JSXExpressionContainer`),n(`JSXElement`),n(`JSXFragment`),null),s.null),n(`JSXIdentifier`).bases(`Identifier`).build(`name`).field(`name`,String),n(`JSXNamespacedName`).bases(`Node`).build(`namespace`,`name`).field(`namespace`,n(`JSXIdentifier`)).field(`name`,n(`JSXIdentifier`)),n(`JSXMemberExpression`).bases(`MemberExpression`).build(`object`,`property`).field(`object`,o(n(`JSXIdentifier`),n(`JSXMemberExpression`))).field(`property`,n(`JSXIdentifier`)).field(`computed`,Boolean,s.false);var c=o(n(`JSXIdentifier`),n(`JSXNamespacedName`),n(`JSXMemberExpression`));n(`JSXSpreadAttribute`).bases(`Node`).build(`argument`).field(`argument`,n(`Expression`));var l=[o(n(`JSXAttribute`),n(`JSXSpreadAttribute`))];n(`JSXExpressionContainer`).bases(`Expression`).build(`expression`).field(`expression`,o(n(`Expression`),n(`JSXEmptyExpression`)));var u=[o(n(`JSXText`),n(`JSXExpressionContainer`),n(`JSXSpreadChild`),n(`JSXElement`),n(`JSXFragment`),n(`Literal`))];n(`JSXElement`).bases(`Expression`).build(`openingElement`,`closingElement`,`children`).field(`openingElement`,n(`JSXOpeningElement`)).field(`closingElement`,o(n(`JSXClosingElement`),null),s.null).field(`children`,u,s.emptyArray).field(`name`,c,function(){return this.openingElement.name},!0).field(`selfClosing`,Boolean,function(){return this.openingElement.selfClosing},!0).field(`attributes`,l,function(){return this.openingElement.attributes},!0),n(`JSXOpeningElement`).bases(`Node`).build(`name`,`attributes`,`selfClosing`).field(`name`,c).field(`attributes`,l,s.emptyArray).field(`selfClosing`,Boolean,s.false),n(`JSXClosingElement`).bases(`Node`).build(`name`).field(`name`,c),n(`JSXFragment`).bases(`Expression`).build(`openingFragment`,`closingFragment`,`children`).field(`openingFragment`,n(`JSXOpeningFragment`)).field(`closingFragment`,n(`JSXClosingFragment`)).field(`children`,u,s.emptyArray),n(`JSXOpeningFragment`).bases(`Node`).build(),n(`JSXClosingFragment`).bases(`Node`).build(),n(`JSXText`).bases(`Literal`).build(`value`,`raw`).field(`value`,String).field(`raw`,String,function(){return this.value}),n(`JSXEmptyExpression`).bases(`Node`).build(),n(`JSXSpreadChild`).bases(`Node`).build(`expression`).field(`expression`,n(`Expression`))}x(o,`default_1`),e.default=o,(0,a.maybeSetModuleExports)(function(){return t})}}),sn=E({"../../node_modules/.pnpm/ast-types@0.16.1/node_modules/ast-types/lib/def/type-annotations.js"(e,t){Object.defineProperty(e,`__esModule`,{value:!0});var n=(G(),C(U)),r=n.__importDefault(q()),i=n.__importStar(K());function a(e){var t=e.use(r.default),n=t.Type.def,a=t.Type.or,o=e.use(i.default).defaults,s=a(n(`TypeAnnotation`),n(`TSTypeAnnotation`),null),c=a(n(`TypeParameterDeclaration`),n(`TSTypeParameterDeclaration`),null);n(`Identifier`).field(`typeAnnotation`,s,o.null),n(`ObjectPattern`).field(`typeAnnotation`,s,o.null),n(`Function`).field(`returnType`,s,o.null).field(`typeParameters`,c,o.null),n(`ClassProperty`).build(`key`,`value`,`typeAnnotation`,`static`).field(`value`,a(n(`Expression`),null)).field(`static`,Boolean,o.false).field(`typeAnnotation`,s,o.null),[`ClassDeclaration`,`ClassExpression`].forEach(function(e){n(e).field(`typeParameters`,c,o.null).field(`superTypeParameters`,a(n(`TypeParameterInstantiation`),n(`TSTypeParameterInstantiation`),null),o.null).field(`implements`,a([n(`ClassImplements`)],[n(`TSExpressionWithTypeArguments`)]),o.emptyArray)})}x(a,`default_1`),e.default=a,(0,i.maybeSetModuleExports)(function(){return t})}}),cn=E({"../../node_modules/.pnpm/ast-types@0.16.1/node_modules/ast-types/lib/def/flow.js"(e,t){Object.defineProperty(e,`__esModule`,{value:!0});var n=(G(),C(U)),r=n.__importDefault(an()),i=n.__importDefault(sn()),a=n.__importDefault(q()),o=n.__importStar(K());function s(e){e.use(r.default),e.use(i.default);var t=e.use(a.default),n=t.Type.def,s=t.Type.or,c=e.use(o.default).defaults;n(`Flow`).bases(`Node`),n(`FlowType`).bases(`Flow`),n(`AnyTypeAnnotation`).bases(`FlowType`).build(),n(`EmptyTypeAnnotation`).bases(`FlowType`).build(),n(`MixedTypeAnnotation`).bases(`FlowType`).build(),n(`VoidTypeAnnotation`).bases(`FlowType`).build(),n(`SymbolTypeAnnotation`).bases(`FlowType`).build(),n(`NumberTypeAnnotation`).bases(`FlowType`).build(),n(`BigIntTypeAnnotation`).bases(`FlowType`).build(),n(`NumberLiteralTypeAnnotation`).bases(`FlowType`).build(`value`,`raw`).field(`value`,Number).field(`raw`,String),n(`NumericLiteralTypeAnnotation`).bases(`FlowType`).build(`value`,`raw`).field(`value`,Number).field(`raw`,String),n(`BigIntLiteralTypeAnnotation`).bases(`FlowType`).build(`value`,`raw`).field(`value`,null).field(`raw`,String),n(`StringTypeAnnotation`).bases(`FlowType`).build(),n(`StringLiteralTypeAnnotation`).bases(`FlowType`).build(`value`,`raw`).field(`value`,String).field(`raw`,String),n(`BooleanTypeAnnotation`).bases(`FlowType`).build(),n(`BooleanLiteralTypeAnnotation`).bases(`FlowType`).build(`value`,`raw`).field(`value`,Boolean).field(`raw`,String),n(`TypeAnnotation`).bases(`Node`).build(`typeAnnotation`).field(`typeAnnotation`,n(`FlowType`)),n(`NullableTypeAnnotation`).bases(`FlowType`).build(`typeAnnotation`).field(`typeAnnotation`,n(`FlowType`)),n(`NullLiteralTypeAnnotation`).bases(`FlowType`).build(),n(`NullTypeAnnotation`).bases(`FlowType`).build(),n(`ThisTypeAnnotation`).bases(`FlowType`).build(),n(`ExistsTypeAnnotation`).bases(`FlowType`).build(),n(`ExistentialTypeParam`).bases(`FlowType`).build(),n(`FunctionTypeAnnotation`).bases(`FlowType`).build(`params`,`returnType`,`rest`,`typeParameters`).field(`params`,[n(`FunctionTypeParam`)]).field(`returnType`,n(`FlowType`)).field(`rest`,s(n(`FunctionTypeParam`),null)).field(`typeParameters`,s(n(`TypeParameterDeclaration`),null)),n(`FunctionTypeParam`).bases(`Node`).build(`name`,`typeAnnotation`,`optional`).field(`name`,s(n(`Identifier`),null)).field(`typeAnnotation`,n(`FlowType`)).field(`optional`,Boolean),n(`ArrayTypeAnnotation`).bases(`FlowType`).build(`elementType`).field(`elementType`,n(`FlowType`)),n(`ObjectTypeAnnotation`).bases(`FlowType`).build(`properties`,`indexers`,`callProperties`).field(`properties`,[s(n(`ObjectTypeProperty`),n(`ObjectTypeSpreadProperty`))]).field(`indexers`,[n(`ObjectTypeIndexer`)],c.emptyArray).field(`callProperties`,[n(`ObjectTypeCallProperty`)],c.emptyArray).field(`inexact`,s(Boolean,void 0),c.undefined).field(`exact`,Boolean,c.false).field(`internalSlots`,[n(`ObjectTypeInternalSlot`)],c.emptyArray),n(`Variance`).bases(`Node`).build(`kind`).field(`kind`,s(`plus`,`minus`));var l=s(n(`Variance`),`plus`,`minus`,null);n(`ObjectTypeProperty`).bases(`Node`).build(`key`,`value`,`optional`).field(`key`,s(n(`Literal`),n(`Identifier`))).field(`value`,n(`FlowType`)).field(`optional`,Boolean).field(`variance`,l,c.null),n(`ObjectTypeIndexer`).bases(`Node`).build(`id`,`key`,`value`).field(`id`,n(`Identifier`)).field(`key`,n(`FlowType`)).field(`value`,n(`FlowType`)).field(`variance`,l,c.null).field(`static`,Boolean,c.false),n(`ObjectTypeCallProperty`).bases(`Node`).build(`value`).field(`value`,n(`FunctionTypeAnnotation`)).field(`static`,Boolean,c.false),n(`QualifiedTypeIdentifier`).bases(`Node`).build(`qualification`,`id`).field(`qualification`,s(n(`Identifier`),n(`QualifiedTypeIdentifier`))).field(`id`,n(`Identifier`)),n(`GenericTypeAnnotation`).bases(`FlowType`).build(`id`,`typeParameters`).field(`id`,s(n(`Identifier`),n(`QualifiedTypeIdentifier`))).field(`typeParameters`,s(n(`TypeParameterInstantiation`),null)),n(`MemberTypeAnnotation`).bases(`FlowType`).build(`object`,`property`).field(`object`,n(`Identifier`)).field(`property`,s(n(`MemberTypeAnnotation`),n(`GenericTypeAnnotation`))),n(`IndexedAccessType`).bases(`FlowType`).build(`objectType`,`indexType`).field(`objectType`,n(`FlowType`)).field(`indexType`,n(`FlowType`)),n(`OptionalIndexedAccessType`).bases(`FlowType`).build(`objectType`,`indexType`,`optional`).field(`objectType`,n(`FlowType`)).field(`indexType`,n(`FlowType`)).field(`optional`,Boolean),n(`UnionTypeAnnotation`).bases(`FlowType`).build(`types`).field(`types`,[n(`FlowType`)]),n(`IntersectionTypeAnnotation`).bases(`FlowType`).build(`types`).field(`types`,[n(`FlowType`)]),n(`TypeofTypeAnnotation`).bases(`FlowType`).build(`argument`).field(`argument`,n(`FlowType`)),n(`ObjectTypeSpreadProperty`).bases(`Node`).build(`argument`).field(`argument`,n(`FlowType`)),n(`ObjectTypeInternalSlot`).bases(`Node`).build(`id`,`value`,`optional`,`static`,`method`).field(`id`,n(`Identifier`)).field(`value`,n(`FlowType`)).field(`optional`,Boolean).field(`static`,Boolean).field(`method`,Boolean),n(`TypeParameterDeclaration`).bases(`Node`).build(`params`).field(`params`,[n(`TypeParameter`)]),n(`TypeParameterInstantiation`).bases(`Node`).build(`params`).field(`params`,[n(`FlowType`)]),n(`TypeParameter`).bases(`FlowType`).build(`name`,`variance`,`bound`,`default`).field(`name`,String).field(`variance`,l,c.null).field(`bound`,s(n(`TypeAnnotation`),null),c.null).field(`default`,s(n(`FlowType`),null),c.null),n(`ClassProperty`).field(`variance`,l,c.null),n(`ClassImplements`).bases(`Node`).build(`id`).field(`id`,n(`Identifier`)).field(`superClass`,s(n(`Expression`),null),c.null).field(`typeParameters`,s(n(`TypeParameterInstantiation`),null),c.null),n(`InterfaceTypeAnnotation`).bases(`FlowType`).build(`body`,`extends`).field(`body`,n(`ObjectTypeAnnotation`)).field(`extends`,s([n(`InterfaceExtends`)],null),c.null),n(`InterfaceDeclaration`).bases(`Declaration`).build(`id`,`body`,`extends`).field(`id`,n(`Identifier`)).field(`typeParameters`,s(n(`TypeParameterDeclaration`),null),c.null).field(`body`,n(`ObjectTypeAnnotation`)).field(`extends`,[n(`InterfaceExtends`)]),n(`DeclareInterface`).bases(`InterfaceDeclaration`).build(`id`,`body`,`extends`),n(`InterfaceExtends`).bases(`Node`).build(`id`).field(`id`,n(`Identifier`)).field(`typeParameters`,s(n(`TypeParameterInstantiation`),null),c.null),n(`TypeAlias`).bases(`Declaration`).build(`id`,`typeParameters`,`right`).field(`id`,n(`Identifier`)).field(`typeParameters`,s(n(`TypeParameterDeclaration`),null)).field(`right`,n(`FlowType`)),n(`DeclareTypeAlias`).bases(`TypeAlias`).build(`id`,`typeParameters`,`right`),n(`OpaqueType`).bases(`Declaration`).build(`id`,`typeParameters`,`impltype`,`supertype`).field(`id`,n(`Identifier`)).field(`typeParameters`,s(n(`TypeParameterDeclaration`),null)).field(`impltype`,n(`FlowType`)).field(`supertype`,s(n(`FlowType`),null)),n(`DeclareOpaqueType`).bases(`OpaqueType`).build(`id`,`typeParameters`,`supertype`).field(`impltype`,s(n(`FlowType`),null)),n(`TypeCastExpression`).bases(`Expression`).build(`expression`,`typeAnnotation`).field(`expression`,n(`Expression`)).field(`typeAnnotation`,n(`TypeAnnotation`)),n(`TupleTypeAnnotation`).bases(`FlowType`).build(`types`).field(`types`,[n(`FlowType`)]),n(`DeclareVariable`).bases(`Statement`).build(`id`).field(`id`,n(`Identifier`)),n(`DeclareFunction`).bases(`Statement`).build(`id`).field(`id`,n(`Identifier`)).field(`predicate`,s(n(`FlowPredicate`),null),c.null),n(`DeclareClass`).bases(`InterfaceDeclaration`).build(`id`),n(`DeclareModule`).bases(`Statement`).build(`id`,`body`).field(`id`,s(n(`Identifier`),n(`Literal`))).field(`body`,n(`BlockStatement`)),n(`DeclareModuleExports`).bases(`Statement`).build(`typeAnnotation`).field(`typeAnnotation`,n(`TypeAnnotation`)),n(`DeclareExportDeclaration`).bases(`Declaration`).build(`default`,`declaration`,`specifiers`,`source`).field(`default`,Boolean).field(`declaration`,s(n(`DeclareVariable`),n(`DeclareFunction`),n(`DeclareClass`),n(`FlowType`),n(`TypeAlias`),n(`DeclareOpaqueType`),n(`InterfaceDeclaration`),null)).field(`specifiers`,[s(n(`ExportSpecifier`),n(`ExportBatchSpecifier`))],c.emptyArray).field(`source`,s(n(`Literal`),null),c.null),n(`DeclareExportAllDeclaration`).bases(`Declaration`).build(`source`).field(`source`,s(n(`Literal`),null),c.null),n(`ImportDeclaration`).field(`importKind`,s(`value`,`type`,`typeof`),function(){return`value`}),n(`FlowPredicate`).bases(`Flow`),n(`InferredPredicate`).bases(`FlowPredicate`).build(),n(`DeclaredPredicate`).bases(`FlowPredicate`).build(`value`).field(`value`,n(`Expression`)),n(`Function`).field(`predicate`,s(n(`FlowPredicate`),null),c.null),n(`CallExpression`).field(`typeArguments`,s(null,n(`TypeParameterInstantiation`)),c.null),n(`NewExpression`).field(`typeArguments`,s(null,n(`TypeParameterInstantiation`)),c.null),n(`EnumDeclaration`).bases(`Declaration`).build(`id`,`body`).field(`id`,n(`Identifier`)).field(`body`,s(n(`EnumBooleanBody`),n(`EnumNumberBody`),n(`EnumStringBody`),n(`EnumSymbolBody`))),n(`EnumBooleanBody`).build(`members`,`explicitType`).field(`members`,[n(`EnumBooleanMember`)]).field(`explicitType`,Boolean),n(`EnumNumberBody`).build(`members`,`explicitType`).field(`members`,[n(`EnumNumberMember`)]).field(`explicitType`,Boolean),n(`EnumStringBody`).build(`members`,`explicitType`).field(`members`,s([n(`EnumStringMember`)],[n(`EnumDefaultedMember`)])).field(`explicitType`,Boolean),n(`EnumSymbolBody`).build(`members`).field(`members`,[n(`EnumDefaultedMember`)]),n(`EnumBooleanMember`).build(`id`,`init`).field(`id`,n(`Identifier`)).field(`init`,s(n(`Literal`),Boolean)),n(`EnumNumberMember`).build(`id`,`init`).field(`id`,n(`Identifier`)).field(`init`,n(`Literal`)),n(`EnumStringMember`).build(`id`,`init`).field(`id`,n(`Identifier`)).field(`init`,n(`Literal`)),n(`EnumDefaultedMember`).build(`id`).field(`id`,n(`Identifier`))}x(s,`default_1`),e.default=s,(0,o.maybeSetModuleExports)(function(){return t})}}),ln=E({"../../node_modules/.pnpm/ast-types@0.16.1/node_modules/ast-types/lib/def/esprima.js"(e,t){Object.defineProperty(e,`__esModule`,{value:!0});var n=(G(),C(U)),r=n.__importDefault(an()),i=n.__importDefault(q()),a=n.__importStar(K());function o(e){e.use(r.default);var t=e.use(i.default),n=e.use(a.default).defaults,o=t.Type.def,s=t.Type.or;o(`VariableDeclaration`).field(`declarations`,[s(o(`VariableDeclarator`),o(`Identifier`))]),o(`Property`).field(`value`,s(o(`Expression`),o(`Pattern`))),o(`ArrayPattern`).field(`elements`,[s(o(`Pattern`),o(`SpreadElement`),null)]),o(`ObjectPattern`).field(`properties`,[s(o(`Property`),o(`PropertyPattern`),o(`SpreadPropertyPattern`),o(`SpreadProperty`))]),o(`ExportSpecifier`).bases(`ModuleSpecifier`).build(`id`,`name`),o(`ExportBatchSpecifier`).bases(`Specifier`).build(),o(`ExportDeclaration`).bases(`Declaration`).build(`default`,`declaration`,`specifiers`,`source`).field(`default`,Boolean).field(`declaration`,s(o(`Declaration`),o(`Expression`),null)).field(`specifiers`,[s(o(`ExportSpecifier`),o(`ExportBatchSpecifier`))],n.emptyArray).field(`source`,s(o(`Literal`),null),n.null),o(`Block`).bases(`Comment`).build(`value`,`leading`,`trailing`),o(`Line`).bases(`Comment`).build(`value`,`leading`,`trailing`)}x(o,`default_1`),e.default=o,(0,a.maybeSetModuleExports)(function(){return t})}}),un=E({"../../node_modules/.pnpm/ast-types@0.16.1/node_modules/ast-types/lib/def/babel-core.js"(e,t){Object.defineProperty(e,`__esModule`,{value:!0});var n=(G(),C(U)),r=n.__importDefault(an()),i=n.__importDefault(q()),a=n.__importStar(K());function o(e){var t,n,o,s,c;e.use(r.default);var l=e.use(i.default),u=e.use(a.default).defaults,d=l.Type.def,f=l.Type.or,p=l.builtInTypes.undefined;d(`Noop`).bases(`Statement`).build(),d(`DoExpression`).bases(`Expression`).build(`body`).field(`body`,[d(`Statement`)]),d(`BindExpression`).bases(`Expression`).build(`object`,`callee`).field(`object`,f(d(`Expression`),null)).field(`callee`,d(`Expression`)),d(`ParenthesizedExpression`).bases(`Expression`).build(`expression`).field(`expression`,d(`Expression`)),d(`ExportNamespaceSpecifier`).bases(`Specifier`).build(`exported`).field(`exported`,d(`Identifier`)),d(`ExportDefaultSpecifier`).bases(`Specifier`).build(`exported`).field(`exported`,d(`Identifier`)),d(`CommentBlock`).bases(`Comment`).build(`value`,`leading`,`trailing`),d(`CommentLine`).bases(`Comment`).build(`value`,`leading`,`trailing`),d(`Directive`).bases(`Node`).build(`value`).field(`value`,d(`DirectiveLiteral`)),d(`DirectiveLiteral`).bases(`Node`,`Expression`).build(`value`).field(`value`,String,u[`use strict`]),d(`InterpreterDirective`).bases(`Node`).build(`value`).field(`value`,String),d(`BlockStatement`).bases(`Statement`).build(`body`).field(`body`,[d(`Statement`)]).field(`directives`,[d(`Directive`)],u.emptyArray),d(`Program`).bases(`Node`).build(`body`).field(`body`,[d(`Statement`)]).field(`directives`,[d(`Directive`)],u.emptyArray).field(`interpreter`,f(d(`InterpreterDirective`),null),u.null);function m(e,t){return e===void 0&&(e=String),[`extra`,{rawValue:e,raw:String},x(function(){var e=l.getFieldValue(this,`value`);return{rawValue:e,raw:t?t(e):String(e)}},`getDefault`)]}x(m,`makeLiteralExtra`),(t=d(`StringLiteral`).bases(`Literal`).build(`value`).field(`value`,String)).field.apply(t,m(String,function(e){return JSON.stringify(e)})),(n=d(`NumericLiteral`).bases(`Literal`).build(`value`).field(`value`,Number).field(`raw`,f(String,null),u.null)).field.apply(n,m(Number)),(o=d(`BigIntLiteral`).bases(`Literal`).build(`value`).field(`value`,f(String,Number))).field.apply(o,m(String,function(e){return e+`n`})),(s=d(`DecimalLiteral`).bases(`Literal`).build(`value`).field(`value`,String)).field.apply(s,m(String,function(e){return e+`m`})),d(`NullLiteral`).bases(`Literal`).build().field(`value`,null,u.null),d(`BooleanLiteral`).bases(`Literal`).build(`value`).field(`value`,Boolean),(c=d(`RegExpLiteral`).bases(`Literal`).build(`pattern`,`flags`).field(`pattern`,String).field(`flags`,String).field(`value`,RegExp,function(){return new RegExp(this.pattern,this.flags)})).field.apply(c,m(f(RegExp,p),function(e){return`/${e.pattern}/${e.flags||``}`})).field(`regex`,{pattern:String,flags:String},function(){return{pattern:this.pattern,flags:this.flags}});var h=f(d(`Property`),d(`ObjectMethod`),d(`ObjectProperty`),d(`SpreadProperty`),d(`SpreadElement`));d(`ObjectExpression`).bases(`Expression`).build(`properties`).field(`properties`,[h]),d(`ObjectMethod`).bases(`Node`,`Function`).build(`kind`,`key`,`params`,`body`,`computed`).field(`kind`,f(`method`,`get`,`set`)).field(`key`,f(d(`Literal`),d(`Identifier`),d(`Expression`))).field(`params`,[d(`Pattern`)]).field(`body`,d(`BlockStatement`)).field(`computed`,Boolean,u.false).field(`generator`,Boolean,u.false).field(`async`,Boolean,u.false).field(`accessibility`,f(d(`Literal`),null),u.null).field(`decorators`,f([d(`Decorator`)],null),u.null),d(`ObjectProperty`).bases(`Node`).build(`key`,`value`).field(`key`,f(d(`Literal`),d(`Identifier`),d(`Expression`))).field(`value`,f(d(`Expression`),d(`Pattern`))).field(`accessibility`,f(d(`Literal`),null),u.null).field(`computed`,Boolean,u.false);var g=f(d(`MethodDefinition`),d(`VariableDeclarator`),d(`ClassPropertyDefinition`),d(`ClassProperty`),d(`ClassPrivateProperty`),d(`ClassMethod`),d(`ClassPrivateMethod`),d(`ClassAccessorProperty`),d(`StaticBlock`));d(`ClassBody`).bases(`Declaration`).build(`body`).field(`body`,[g]),d(`ClassMethod`).bases(`Declaration`,`Function`).build(`kind`,`key`,`params`,`body`,`computed`,`static`).field(`key`,f(d(`Literal`),d(`Identifier`),d(`Expression`))),d(`ClassPrivateMethod`).bases(`Declaration`,`Function`).build(`key`,`params`,`body`,`kind`,`computed`,`static`).field(`key`,d(`PrivateName`)),d(`ClassAccessorProperty`).bases(`Declaration`).build(`key`,`value`,`decorators`,`computed`,`static`).field(`key`,f(d(`Literal`),d(`Identifier`),d(`PrivateName`),d(`Expression`))).field(`value`,f(d(`Expression`),null),u.null),[`ClassMethod`,`ClassPrivateMethod`].forEach(function(e){d(e).field(`kind`,f(`get`,`set`,`method`,`constructor`),function(){return`method`}).field(`body`,d(`BlockStatement`)).field(`access`,f(`public`,`private`,`protected`,null),u.null)}),[`ClassMethod`,`ClassPrivateMethod`,`ClassAccessorProperty`].forEach(function(e){d(e).field(`computed`,Boolean,u.false).field(`static`,Boolean,u.false).field(`abstract`,Boolean,u.false).field(`accessibility`,f(`public`,`private`,`protected`,null),u.null).field(`decorators`,f([d(`Decorator`)],null),u.null).field(`definite`,Boolean,u.false).field(`optional`,Boolean,u.false).field(`override`,Boolean,u.false).field(`readonly`,Boolean,u.false)});var _=f(d(`Property`),d(`PropertyPattern`),d(`SpreadPropertyPattern`),d(`SpreadProperty`),d(`ObjectProperty`),d(`RestProperty`),d(`RestElement`));d(`ObjectPattern`).bases(`Pattern`).build(`properties`).field(`properties`,[_]).field(`decorators`,f([d(`Decorator`)],null),u.null),d(`SpreadProperty`).bases(`Node`).build(`argument`).field(`argument`,d(`Expression`)),d(`RestProperty`).bases(`Node`).build(`argument`).field(`argument`,d(`Expression`)),d(`ForAwaitStatement`).bases(`Statement`).build(`left`,`right`,`body`).field(`left`,f(d(`VariableDeclaration`),d(`Expression`))).field(`right`,d(`Expression`)).field(`body`,d(`Statement`)),d(`Import`).bases(`Expression`).build()}x(o,`default_1`),e.default=o,(0,a.maybeSetModuleExports)(function(){return t})}}),dn=E({"../../node_modules/.pnpm/ast-types@0.16.1/node_modules/ast-types/lib/def/babel.js"(e,t){Object.defineProperty(e,`__esModule`,{value:!0});var n=(G(),C(U)),r=n.__importDefault(q()),i=n.__importDefault(un()),a=n.__importDefault(cn()),o=K();function s(e){var t=e.use(r.default).Type.def;e.use(i.default),e.use(a.default),t(`V8IntrinsicIdentifier`).bases(`Expression`).build(`name`).field(`name`,String),t(`TopicReference`).bases(`Expression`).build()}x(s,`default_1`),e.default=s,(0,o.maybeSetModuleExports)(function(){return t})}}),fn=E({"../../node_modules/.pnpm/ast-types@0.16.1/node_modules/ast-types/lib/def/typescript.js"(e,t){Object.defineProperty(e,`__esModule`,{value:!0});var n=(G(),C(U)),r=n.__importDefault(un()),i=n.__importDefault(sn()),a=n.__importDefault(q()),o=n.__importStar(K());function s(e){e.use(r.default),e.use(i.default);var t=e.use(a.default),n=t.namedTypes,s=t.Type.def,c=t.Type.or,l=e.use(o.default).defaults,u=t.Type.from(function(e,t){return!!(n.StringLiteral&&n.StringLiteral.check(e,t)||n.Literal&&n.Literal.check(e,t)&&typeof e.value==`string`)},`StringLiteral`);s(`TSType`).bases(`Node`);var d=c(s(`Identifier`),s(`TSQualifiedName`));s(`TSTypeReference`).bases(`TSType`,`TSHasOptionalTypeParameterInstantiation`).build(`typeName`,`typeParameters`).field(`typeName`,d),s(`TSHasOptionalTypeParameterInstantiation`).field(`typeParameters`,c(s(`TSTypeParameterInstantiation`),null),l.null),s(`TSHasOptionalTypeParameters`).field(`typeParameters`,c(s(`TSTypeParameterDeclaration`),null,void 0),l.null),s(`TSHasOptionalTypeAnnotation`).field(`typeAnnotation`,c(s(`TSTypeAnnotation`),null),l.null),s(`TSQualifiedName`).bases(`Node`).build(`left`,`right`).field(`left`,d).field(`right`,d),s(`TSAsExpression`).bases(`Expression`,`Pattern`).build(`expression`,`typeAnnotation`).field(`expression`,s(`Expression`)).field(`typeAnnotation`,s(`TSType`)).field(`extra`,c({parenthesized:Boolean},null),l.null),s(`TSTypeCastExpression`).bases(`Expression`).build(`expression`,`typeAnnotation`).field(`expression`,s(`Expression`)).field(`typeAnnotation`,s(`TSType`)),s(`TSSatisfiesExpression`).bases(`Expression`,`Pattern`).build(`expression`,`typeAnnotation`).field(`expression`,s(`Expression`)).field(`typeAnnotation`,s(`TSType`)),s(`TSNonNullExpression`).bases(`Expression`,`Pattern`).build(`expression`).field(`expression`,s(`Expression`)),[`TSAnyKeyword`,`TSBigIntKeyword`,`TSBooleanKeyword`,`TSNeverKeyword`,`TSNullKeyword`,`TSNumberKeyword`,`TSObjectKeyword`,`TSStringKeyword`,`TSSymbolKeyword`,`TSUndefinedKeyword`,`TSUnknownKeyword`,`TSVoidKeyword`,`TSIntrinsicKeyword`,`TSThisType`].forEach(function(e){s(e).bases(`TSType`).build()}),s(`TSArrayType`).bases(`TSType`).build(`elementType`).field(`elementType`,s(`TSType`)),s(`TSLiteralType`).bases(`TSType`).build(`literal`).field(`literal`,c(s(`NumericLiteral`),s(`StringLiteral`),s(`BooleanLiteral`),s(`TemplateLiteral`),s(`UnaryExpression`),s(`BigIntLiteral`))),s(`TemplateLiteral`).field(`expressions`,c([s(`Expression`)],[s(`TSType`)])),[`TSUnionType`,`TSIntersectionType`].forEach(function(e){s(e).bases(`TSType`).build(`types`).field(`types`,[s(`TSType`)])}),s(`TSConditionalType`).bases(`TSType`).build(`checkType`,`extendsType`,`trueType`,`falseType`).field(`checkType`,s(`TSType`)).field(`extendsType`,s(`TSType`)).field(`trueType`,s(`TSType`)).field(`falseType`,s(`TSType`)),s(`TSInferType`).bases(`TSType`).build(`typeParameter`).field(`typeParameter`,s(`TSTypeParameter`)),s(`TSParenthesizedType`).bases(`TSType`).build(`typeAnnotation`).field(`typeAnnotation`,s(`TSType`));var f=[c(s(`Identifier`),s(`RestElement`),s(`ArrayPattern`),s(`ObjectPattern`))];[`TSFunctionType`,`TSConstructorType`].forEach(function(e){s(e).bases(`TSType`,`TSHasOptionalTypeParameters`,`TSHasOptionalTypeAnnotation`).build(`parameters`).field(`parameters`,f)}),s(`TSDeclareFunction`).bases(`Declaration`,`TSHasOptionalTypeParameters`).build(`id`,`params`,`returnType`).field(`declare`,Boolean,l.false).field(`async`,Boolean,l.false).field(`generator`,Boolean,l.false).field(`id`,c(s(`Identifier`),null),l.null).field(`params`,[s(`Pattern`)]).field(`returnType`,c(s(`TSTypeAnnotation`),s(`Noop`),null),l.null),s(`TSDeclareMethod`).bases(`Declaration`,`TSHasOptionalTypeParameters`).build(`key`,`params`,`returnType`).field(`async`,Boolean,l.false).field(`generator`,Boolean,l.false).field(`params`,[s(`Pattern`)]).field(`abstract`,Boolean,l.false).field(`accessibility`,c(`public`,`private`,`protected`,void 0),l.undefined).field(`static`,Boolean,l.false).field(`computed`,Boolean,l.false).field(`optional`,Boolean,l.false).field(`key`,c(s(`Identifier`),s(`StringLiteral`),s(`NumericLiteral`),s(`Expression`))).field(`kind`,c(`get`,`set`,`method`,`constructor`),x(function(){return`method`},`getDefault`)).field(`access`,c(`public`,`private`,`protected`,void 0),l.undefined).field(`decorators`,c([s(`Decorator`)],null),l.null).field(`returnType`,c(s(`TSTypeAnnotation`),s(`Noop`),null),l.null),s(`TSMappedType`).bases(`TSType`).build(`typeParameter`,`typeAnnotation`).field(`readonly`,c(Boolean,`+`,`-`),l.false).field(`typeParameter`,s(`TSTypeParameter`)).field(`optional`,c(Boolean,`+`,`-`),l.false).field(`typeAnnotation`,c(s(`TSType`),null),l.null),s(`TSTupleType`).bases(`TSType`).build(`elementTypes`).field(`elementTypes`,[c(s(`TSType`),s(`TSNamedTupleMember`))]),s(`TSNamedTupleMember`).bases(`TSType`).build(`label`,`elementType`,`optional`).field(`label`,s(`Identifier`)).field(`optional`,Boolean,l.false).field(`elementType`,s(`TSType`)),s(`TSRestType`).bases(`TSType`).build(`typeAnnotation`).field(`typeAnnotation`,s(`TSType`)),s(`TSOptionalType`).bases(`TSType`).build(`typeAnnotation`).field(`typeAnnotation`,s(`TSType`)),s(`TSIndexedAccessType`).bases(`TSType`).build(`objectType`,`indexType`).field(`objectType`,s(`TSType`)).field(`indexType`,s(`TSType`)),s(`TSTypeOperator`).bases(`TSType`).build(`operator`).field(`operator`,String).field(`typeAnnotation`,s(`TSType`)),s(`TSTypeAnnotation`).bases(`Node`).build(`typeAnnotation`).field(`typeAnnotation`,c(s(`TSType`),s(`TSTypeAnnotation`))),s(`TSIndexSignature`).bases(`Declaration`,`TSHasOptionalTypeAnnotation`).build(`parameters`,`typeAnnotation`).field(`parameters`,[s(`Identifier`)]).field(`readonly`,Boolean,l.false),s(`TSPropertySignature`).bases(`Declaration`,`TSHasOptionalTypeAnnotation`).build(`key`,`typeAnnotation`,`optional`).field(`key`,s(`Expression`)).field(`computed`,Boolean,l.false).field(`readonly`,Boolean,l.false).field(`optional`,Boolean,l.false).field(`initializer`,c(s(`Expression`),null),l.null),s(`TSMethodSignature`).bases(`Declaration`,`TSHasOptionalTypeParameters`,`TSHasOptionalTypeAnnotation`).build(`key`,`parameters`,`typeAnnotation`).field(`key`,s(`Expression`)).field(`computed`,Boolean,l.false).field(`optional`,Boolean,l.false).field(`parameters`,f),s(`TSTypePredicate`).bases(`TSTypeAnnotation`,`TSType`).build(`parameterName`,`typeAnnotation`,`asserts`).field(`parameterName`,c(s(`Identifier`),s(`TSThisType`))).field(`typeAnnotation`,c(s(`TSTypeAnnotation`),null),l.null).field(`asserts`,Boolean,l.false),[`TSCallSignatureDeclaration`,`TSConstructSignatureDeclaration`].forEach(function(e){s(e).bases(`Declaration`,`TSHasOptionalTypeParameters`,`TSHasOptionalTypeAnnotation`).build(`parameters`,`typeAnnotation`).field(`parameters`,f)}),s(`TSEnumMember`).bases(`Node`).build(`id`,`initializer`).field(`id`,c(s(`Identifier`),u)).field(`initializer`,c(s(`Expression`),null),l.null),s(`TSTypeQuery`).bases(`TSType`).build(`exprName`).field(`exprName`,c(d,s(`TSImportType`)));var p=c(s(`TSCallSignatureDeclaration`),s(`TSConstructSignatureDeclaration`),s(`TSIndexSignature`),s(`TSMethodSignature`),s(`TSPropertySignature`));s(`TSTypeLiteral`).bases(`TSType`).build(`members`).field(`members`,[p]),s(`TSTypeParameter`).bases(`Identifier`).build(`name`,`constraint`,`default`).field(`name`,c(s(`Identifier`),String)).field(`constraint`,c(s(`TSType`),void 0),l.undefined).field(`default`,c(s(`TSType`),void 0),l.undefined),s(`TSTypeAssertion`).bases(`Expression`,`Pattern`).build(`typeAnnotation`,`expression`).field(`typeAnnotation`,s(`TSType`)).field(`expression`,s(`Expression`)).field(`extra`,c({parenthesized:Boolean},null),l.null),s(`TSTypeParameterDeclaration`).bases(`Declaration`).build(`params`).field(`params`,[s(`TSTypeParameter`)]),s(`TSInstantiationExpression`).bases(`Expression`,`TSHasOptionalTypeParameterInstantiation`).build(`expression`,`typeParameters`).field(`expression`,s(`Expression`)),s(`TSTypeParameterInstantiation`).bases(`Node`).build(`params`).field(`params`,[s(`TSType`)]),s(`TSEnumDeclaration`).bases(`Declaration`).build(`id`,`members`).field(`id`,s(`Identifier`)).field(`const`,Boolean,l.false).field(`declare`,Boolean,l.false).field(`members`,[s(`TSEnumMember`)]).field(`initializer`,c(s(`Expression`),null),l.null),s(`TSTypeAliasDeclaration`).bases(`Declaration`,`TSHasOptionalTypeParameters`).build(`id`,`typeAnnotation`).field(`id`,s(`Identifier`)).field(`declare`,Boolean,l.false).field(`typeAnnotation`,s(`TSType`)),s(`TSModuleBlock`).bases(`Node`).build(`body`).field(`body`,[s(`Statement`)]),s(`TSModuleDeclaration`).bases(`Declaration`).build(`id`,`body`).field(`id`,c(u,d)).field(`declare`,Boolean,l.false).field(`global`,Boolean,l.false).field(`body`,c(s(`TSModuleBlock`),s(`TSModuleDeclaration`),null),l.null),s(`TSImportType`).bases(`TSType`,`TSHasOptionalTypeParameterInstantiation`).build(`argument`,`qualifier`,`typeParameters`).field(`argument`,u).field(`qualifier`,c(d,void 0),l.undefined),s(`TSImportEqualsDeclaration`).bases(`Declaration`).build(`id`,`moduleReference`).field(`id`,s(`Identifier`)).field(`isExport`,Boolean,l.false).field(`moduleReference`,c(d,s(`TSExternalModuleReference`))),s(`TSExternalModuleReference`).bases(`Declaration`).build(`expression`).field(`expression`,u),s(`TSExportAssignment`).bases(`Statement`).build(`expression`).field(`expression`,s(`Expression`)),s(`TSNamespaceExportDeclaration`).bases(`Declaration`).build(`id`).field(`id`,s(`Identifier`)),s(`TSInterfaceBody`).bases(`Node`).build(`body`).field(`body`,[p]),s(`TSExpressionWithTypeArguments`).bases(`TSType`,`TSHasOptionalTypeParameterInstantiation`).build(`expression`,`typeParameters`).field(`expression`,d),s(`TSInterfaceDeclaration`).bases(`Declaration`,`TSHasOptionalTypeParameters`).build(`id`,`body`).field(`id`,d).field(`declare`,Boolean,l.false).field(`extends`,c([s(`TSExpressionWithTypeArguments`)],null),l.null).field(`body`,s(`TSInterfaceBody`)),s(`TSParameterProperty`).bases(`Pattern`).build(`parameter`).field(`accessibility`,c(`public`,`private`,`protected`,void 0),l.undefined).field(`readonly`,Boolean,l.false).field(`parameter`,c(s(`Identifier`),s(`AssignmentPattern`))),s(`ClassProperty`).field(`access`,c(`public`,`private`,`protected`,void 0),l.undefined),s(`ClassAccessorProperty`).bases(`Declaration`,`TSHasOptionalTypeAnnotation`),s(`ClassBody`).field(`body`,[c(s(`MethodDefinition`),s(`VariableDeclarator`),s(`ClassPropertyDefinition`),s(`ClassProperty`),s(`ClassPrivateProperty`),s(`ClassAccessorProperty`),s(`ClassMethod`),s(`ClassPrivateMethod`),s(`StaticBlock`),s(`TSDeclareMethod`),p)])}x(s,`default_1`),e.default=s,(0,o.maybeSetModuleExports)(function(){return t})}}),pn=E({"../../node_modules/.pnpm/ast-types@0.16.1/node_modules/ast-types/lib/gen/namedTypes.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.namedTypes=void 0,e.namedTypes||={}}}),mn=E({"../../node_modules/.pnpm/ast-types@0.16.1/node_modules/ast-types/lib/main.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.visit=e.use=e.Type=e.someField=e.PathVisitor=e.Path=e.NodePath=e.namedTypes=e.getSupertypeNames=e.getFieldValue=e.getFieldNames=e.getBuilderName=e.finalize=e.eachField=e.defineMethod=e.builtInTypes=e.builders=e.astNodesAreEquivalent=void 0;var t=(G(),C(U)),n=t.__importDefault(Gt()),r=t.__importDefault(an()),i=t.__importDefault(on()),a=t.__importDefault(cn()),o=t.__importDefault(ln()),s=t.__importDefault(dn()),c=t.__importDefault(fn()),l=pn();Object.defineProperty(e,`namedTypes`,{enumerable:!0,get:x(function(){return l.namedTypes},`get`)});var u=(0,n.default)([r.default,i.default,a.default,o.default,s.default,c.default]),d=u.astNodesAreEquivalent,f=u.builders,p=u.builtInTypes,m=u.defineMethod,h=u.eachField,g=u.finalize,_=u.getBuilderName,v=u.getFieldNames,y=u.getFieldValue,b=u.getSupertypeNames,S=u.namedTypes,w=u.NodePath,T=u.Path,E=u.PathVisitor,D=u.someField,O=u.Type,ee=u.use,k=u.visit;e.astNodesAreEquivalent=d,e.builders=f,e.builtInTypes=p,e.defineMethod=m,e.eachField=h,e.finalize=g,e.getBuilderName=_,e.getFieldNames=v,e.getFieldValue=y,e.getSupertypeNames=b,e.NodePath=w,e.Path=T,e.PathVisitor=E,e.someField=D,e.Type=O,e.use=ee,e.visit=k,Object.assign(l.namedTypes,S)}}),hn=E({"../../node_modules/.pnpm/tiny-invariant@1.3.3/node_modules/tiny-invariant/dist/tiny-invariant.cjs.js"(e,t){var n=`Invariant failed`;function r(e,t){if(!e)throw Error(n)}x(r,`invariant`),t.exports=r}}),gn=E({"../../node_modules/.pnpm/source-map@0.6.1/node_modules/source-map/lib/base64.js"(e){var t=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/`.split(``);e.encode=function(e){if(0<=e&&e<t.length)return t[e];throw TypeError(`Must be between 0 and 63: `+e)},e.decode=function(e){var t=65,n=90,r=97,i=122,a=48;return t<=e&&e<=n?e-t:r<=e&&e<=i?e-r+26:a<=e&&e<=57?e-a+52:e==43?62:e==47?63:-1}}}),_n=E({"../../node_modules/.pnpm/source-map@0.6.1/node_modules/source-map/lib/base64-vlq.js"(e){var t=gn(),n=5,r=1<<n,i=r-1,a=r;function o(e){return e<0?(-e<<1)+1:(e<<1)+0}x(o,`toVLQSigned`);function s(e){var t=(e&1)==1,n=e>>1;return t?-n:n}x(s,`fromVLQSigned`),e.encode=x(function(e){var r=``,s,c=o(e);do s=c&i,c>>>=n,c>0&&(s|=a),r+=t.encode(s);while(c>0);return r},`base64VLQ_encode`),e.decode=x(function(e,r,o){var c=e.length,l=0,u=0,d,f;do{if(r>=c)throw Error(`Expected more digits in base 64 VLQ value.`);if(f=t.decode(e.charCodeAt(r++)),f===-1)throw Error(`Invalid base64 digit: `+e.charAt(r-1));d=!!(f&a),f&=i,l+=f<<u,u+=n}while(d);o.value=s(l),o.rest=r},`base64VLQ_decode`)}}),vn=E({"../../node_modules/.pnpm/source-map@0.6.1/node_modules/source-map/lib/util.js"(e){function t(e,t,n){if(t in e)return e[t];if(arguments.length===3)return n;throw Error(`"`+t+`" is a required argument.`)}x(t,`getArg`),e.getArg=t;var n=/^(?:([\w+\-.]+):)?\/\/(?:(\w+:\w+)@)?([\w.-]*)(?::(\d+))?(.*)$/,r=/^data:.+\,.+$/;function i(e){var t=e.match(n);return t?{scheme:t[1],auth:t[2],host:t[3],port:t[4],path:t[5]}:null}x(i,`urlParse`),e.urlParse=i;function a(e){var t=``;return e.scheme&&(t+=e.scheme+`:`),t+=`//`,e.auth&&(t+=e.auth+`@`),e.host&&(t+=e.host),e.port&&(t+=`:`+e.port),e.path&&(t+=e.path),t}x(a,`urlGenerate`),e.urlGenerate=a;function o(t){var n=t,r=i(t);if(r){if(!r.path)return t;n=r.path}for(var o=e.isAbsolute(n),s=n.split(/\/+/),c,l=0,u=s.length-1;u>=0;u--)c=s[u],c===`.`?s.splice(u,1):c===`..`?l++:l>0&&(c===``?(s.splice(u+1,l),l=0):(s.splice(u,2),l--));return n=s.join(`/`),n===``&&(n=o?`/`:`.`),r?(r.path=n,a(r)):n}x(o,`normalize`),e.normalize=o;function s(e,t){e===``&&(e=`.`),t===``&&(t=`.`);var n=i(t),s=i(e);if(s&&(e=s.path||`/`),n&&!n.scheme)return s&&(n.scheme=s.scheme),a(n);if(n||t.match(r))return t;if(s&&!s.host&&!s.path)return s.host=t,a(s);var c=t.charAt(0)===`/`?t:o(e.replace(/\/+$/,``)+`/`+t);return s?(s.path=c,a(s)):c}x(s,`join`),e.join=s,e.isAbsolute=function(e){return e.charAt(0)===`/`||n.test(e)};function c(e,t){e===``&&(e=`.`),e=e.replace(/\/$/,``);for(var n=0;t.indexOf(e+`/`)!==0;){var r=e.lastIndexOf(`/`);if(r<0||(e=e.slice(0,r),e.match(/^([^\/]+:\/)?\/*$/)))return t;++n}return Array(n+1).join(`../`)+t.substr(e.length+1)}x(c,`relative`),e.relative=c;var l=function(){return!(`__proto__`in Object.create(null))}();function u(e){return e}x(u,`identity`);function d(e){return p(e)?`$`+e:e}x(d,`toSetString`),e.toSetString=l?u:d;function f(e){return p(e)?e.slice(1):e}x(f,`fromSetString`),e.fromSetString=l?u:f;function p(e){if(!e)return!1;var t=e.length;if(t<9||e.charCodeAt(t-1)!==95||e.charCodeAt(t-2)!==95||e.charCodeAt(t-3)!==111||e.charCodeAt(t-4)!==116||e.charCodeAt(t-5)!==111||e.charCodeAt(t-6)!==114||e.charCodeAt(t-7)!==112||e.charCodeAt(t-8)!==95||e.charCodeAt(t-9)!==95)return!1;for(var n=t-10;n>=0;n--)if(e.charCodeAt(n)!==36)return!1;return!0}x(p,`isProtoString`);function m(e,t,n){var r=g(e.source,t.source);return r!==0||(r=e.originalLine-t.originalLine,r!==0)||(r=e.originalColumn-t.originalColumn,r!==0||n)||(r=e.generatedColumn-t.generatedColumn,r!==0)||(r=e.generatedLine-t.generatedLine,r!==0)?r:g(e.name,t.name)}x(m,`compareByOriginalPositions`),e.compareByOriginalPositions=m;function h(e,t,n){var r=e.generatedLine-t.generatedLine;return r!==0||(r=e.generatedColumn-t.generatedColumn,r!==0||n)||(r=g(e.source,t.source),r!==0)||(r=e.originalLine-t.originalLine,r!==0)||(r=e.originalColumn-t.originalColumn,r!==0)?r:g(e.name,t.name)}x(h,`compareByGeneratedPositionsDeflated`),e.compareByGeneratedPositionsDeflated=h;function g(e,t){return e===t?0:e===null?1:t===null?-1:e>t?1:-1}x(g,`strcmp`);function _(e,t){var n=e.generatedLine-t.generatedLine;return n!==0||(n=e.generatedColumn-t.generatedColumn,n!==0)||(n=g(e.source,t.source),n!==0)||(n=e.originalLine-t.originalLine,n!==0)||(n=e.originalColumn-t.originalColumn,n!==0)?n:g(e.name,t.name)}x(_,`compareByGeneratedPositionsInflated`),e.compareByGeneratedPositionsInflated=_;function v(e){return JSON.parse(e.replace(/^\)]}'[^\n]*\n/,``))}x(v,`parseSourceMapInput`),e.parseSourceMapInput=v;function y(e,t,n){if(t||=``,e&&(e[e.length-1]!==`/`&&t[0]!==`/`&&(e+=`/`),t=e+t),n){var r=i(n);if(!r)throw Error(`sourceMapURL could not be parsed`);if(r.path){var c=r.path.lastIndexOf(`/`);c>=0&&(r.path=r.path.substring(0,c+1))}t=s(a(r),t)}return o(t)}x(y,`computeSourceURL`),e.computeSourceURL=y}}),yn=E({"../../node_modules/.pnpm/source-map@0.6.1/node_modules/source-map/lib/array-set.js"(e){var t=vn(),n=Object.prototype.hasOwnProperty,r=typeof Map<`u`;function i(){this._array=[],this._set=r?new Map:Object.create(null)}x(i,`ArraySet`),i.fromArray=x(function(e,t){for(var n=new i,r=0,a=e.length;r<a;r++)n.add(e[r],t);return n},`ArraySet_fromArray`),i.prototype.size=x(function(){return r?this._set.size:Object.getOwnPropertyNames(this._set).length},`ArraySet_size`),i.prototype.add=x(function(e,i){var a=r?e:t.toSetString(e),o=r?this.has(e):n.call(this._set,a),s=this._array.length;(!o||i)&&this._array.push(e),o||(r?this._set.set(e,s):this._set[a]=s)},`ArraySet_add`),i.prototype.has=x(function(e){if(r)return this._set.has(e);var i=t.toSetString(e);return n.call(this._set,i)},`ArraySet_has`),i.prototype.indexOf=x(function(e){if(r){var i=this._set.get(e);if(i>=0)return i}else{var a=t.toSetString(e);if(n.call(this._set,a))return this._set[a]}throw Error(`"`+e+`" is not in the set.`)},`ArraySet_indexOf`),i.prototype.at=x(function(e){if(e>=0&&e<this._array.length)return this._array[e];throw Error(`No element indexed by `+e)},`ArraySet_at`),i.prototype.toArray=x(function(){return this._array.slice()},`ArraySet_toArray`),e.ArraySet=i}}),bn=E({"../../node_modules/.pnpm/source-map@0.6.1/node_modules/source-map/lib/mapping-list.js"(e){var t=vn();function n(e,n){var r=e.generatedLine,i=n.generatedLine,a=e.generatedColumn,o=n.generatedColumn;return i>r||i==r&&o>=a||t.compareByGeneratedPositionsInflated(e,n)<=0}x(n,`generatedPositionAfter`);function r(){this._array=[],this._sorted=!0,this._last={generatedLine:-1,generatedColumn:0}}x(r,`MappingList`),r.prototype.unsortedForEach=x(function(e,t){this._array.forEach(e,t)},`MappingList_forEach`),r.prototype.add=x(function(e){n(this._last,e)?(this._last=e,this._array.push(e)):(this._sorted=!1,this._array.push(e))},`MappingList_add`),r.prototype.toArray=x(function(){return this._sorted||=(this._array.sort(t.compareByGeneratedPositionsInflated),!0),this._array},`MappingList_toArray`),e.MappingList=r}}),xn=E({"../../node_modules/.pnpm/source-map@0.6.1/node_modules/source-map/lib/source-map-generator.js"(e){var t=_n(),n=vn(),r=yn().ArraySet,i=bn().MappingList;function a(e){e||={},this._file=n.getArg(e,`file`,null),this._sourceRoot=n.getArg(e,`sourceRoot`,null),this._skipValidation=n.getArg(e,`skipValidation`,!1),this._sources=new r,this._names=new r,this._mappings=new i,this._sourcesContents=null}x(a,`SourceMapGenerator`),a.prototype._version=3,a.fromSourceMap=x(function(e){var t=e.sourceRoot,r=new a({file:e.file,sourceRoot:t});return e.eachMapping(function(e){var i={generated:{line:e.generatedLine,column:e.generatedColumn}};e.source!=null&&(i.source=e.source,t!=null&&(i.source=n.relative(t,i.source)),i.original={line:e.originalLine,column:e.originalColumn},e.name!=null&&(i.name=e.name)),r.addMapping(i)}),e.sources.forEach(function(i){var a=i;t!==null&&(a=n.relative(t,i)),r._sources.has(a)||r._sources.add(a);var o=e.sourceContentFor(i);o!=null&&r.setSourceContent(i,o)}),r},`SourceMapGenerator_fromSourceMap`),a.prototype.addMapping=x(function(e){var t=n.getArg(e,`generated`),r=n.getArg(e,`original`,null),i=n.getArg(e,`source`,null),a=n.getArg(e,`name`,null);this._skipValidation||this._validateMapping(t,r,i,a),i!=null&&(i=String(i),this._sources.has(i)||this._sources.add(i)),a!=null&&(a=String(a),this._names.has(a)||this._names.add(a)),this._mappings.add({generatedLine:t.line,generatedColumn:t.column,originalLine:r!=null&&r.line,originalColumn:r!=null&&r.column,source:i,name:a})},`SourceMapGenerator_addMapping`),a.prototype.setSourceContent=x(function(e,t){var r=e;this._sourceRoot!=null&&(r=n.relative(this._sourceRoot,r)),t==null?this._sourcesContents&&(delete this._sourcesContents[n.toSetString(r)],Object.keys(this._sourcesContents).length===0&&(this._sourcesContents=null)):(this._sourcesContents||=Object.create(null),this._sourcesContents[n.toSetString(r)]=t)},`SourceMapGenerator_setSourceContent`),a.prototype.applySourceMap=x(function(e,t,i){var a=t;if(t==null){if(e.file==null)throw Error(`SourceMapGenerator.prototype.applySourceMap requires either an explicit source file, or the source map's "file" property. Both were omitted.`);a=e.file}var o=this._sourceRoot;o!=null&&(a=n.relative(o,a));var s=new r,c=new r;this._mappings.unsortedForEach(function(t){if(t.source===a&&t.originalLine!=null){var r=e.originalPositionFor({line:t.originalLine,column:t.originalColumn});r.source!=null&&(t.source=r.source,i!=null&&(t.source=n.join(i,t.source)),o!=null&&(t.source=n.relative(o,t.source)),t.originalLine=r.line,t.originalColumn=r.column,r.name!=null&&(t.name=r.name))}var l=t.source;l!=null&&!s.has(l)&&s.add(l);var u=t.name;u!=null&&!c.has(u)&&c.add(u)},this),this._sources=s,this._names=c,e.sources.forEach(function(t){var r=e.sourceContentFor(t);r!=null&&(i!=null&&(t=n.join(i,t)),o!=null&&(t=n.relative(o,t)),this.setSourceContent(t,r))},this)},`SourceMapGenerator_applySourceMap`),a.prototype._validateMapping=x(function(e,t,n,r){if(t&&typeof t.line!=`number`&&typeof t.column!=`number`)throw Error(`original.line and original.column are not numbers -- you probably meant to omit the original mapping entirely and only map the generated position. If so, pass null for the original mapping instead of an object with empty or null values.`);if(!(e&&`line`in e&&`column`in e&&e.line>0&&e.column>=0&&!t&&!n&&!r)&&!(e&&`line`in e&&`column`in e&&t&&`line`in t&&`column`in t&&e.line>0&&e.column>=0&&t.line>0&&t.column>=0&&n))throw Error(`Invalid mapping: `+JSON.stringify({generated:e,source:n,original:t,name:r}))},`SourceMapGenerator_validateMapping`),a.prototype._serializeMappings=x(function(){for(var e=0,r=1,i=0,a=0,o=0,s=0,c=``,l,u,d,f,p=this._mappings.toArray(),m=0,h=p.length;m<h;m++){if(u=p[m],l=``,u.generatedLine!==r)for(e=0;u.generatedLine!==r;)l+=`;`,r++;else if(m>0){if(!n.compareByGeneratedPositionsInflated(u,p[m-1]))continue;l+=`,`}l+=t.encode(u.generatedColumn-e),e=u.generatedColumn,u.source!=null&&(f=this._sources.indexOf(u.source),l+=t.encode(f-s),s=f,l+=t.encode(u.originalLine-1-a),a=u.originalLine-1,l+=t.encode(u.originalColumn-i),i=u.originalColumn,u.name!=null&&(d=this._names.indexOf(u.name),l+=t.encode(d-o),o=d)),c+=l}return c},`SourceMapGenerator_serializeMappings`),a.prototype._generateSourcesContent=x(function(e,t){return e.map(function(e){if(!this._sourcesContents)return null;t!=null&&(e=n.relative(t,e));var r=n.toSetString(e);return Object.prototype.hasOwnProperty.call(this._sourcesContents,r)?this._sourcesContents[r]:null},this)},`SourceMapGenerator_generateSourcesContent`),a.prototype.toJSON=x(function(){var e={version:this._version,sources:this._sources.toArray(),names:this._names.toArray(),mappings:this._serializeMappings()};return this._file!=null&&(e.file=this._file),this._sourceRoot!=null&&(e.sourceRoot=this._sourceRoot),this._sourcesContents&&(e.sourcesContent=this._generateSourcesContent(e.sources,e.sourceRoot)),e},`SourceMapGenerator_toJSON`),a.prototype.toString=x(function(){return JSON.stringify(this.toJSON())},`SourceMapGenerator_toString`),e.SourceMapGenerator=a}}),Sn=E({"../../node_modules/.pnpm/source-map@0.6.1/node_modules/source-map/lib/binary-search.js"(e){e.GREATEST_LOWER_BOUND=1,e.LEAST_UPPER_BOUND=2;function t(n,r,i,a,o,s){var c=Math.floor((r-n)/2)+n,l=o(i,a[c],!0);return l===0?c:l>0?r-c>1?t(c,r,i,a,o,s):s==e.LEAST_UPPER_BOUND?r<a.length?r:-1:c:c-n>1?t(n,c,i,a,o,s):s==e.LEAST_UPPER_BOUND?c:n<0?-1:n}x(t,`recursiveSearch`),e.search=x(function(n,r,i,a){if(r.length===0)return-1;var o=t(-1,r.length,n,r,i,a||e.GREATEST_LOWER_BOUND);if(o<0)return-1;for(;o-1>=0&&i(r[o],r[o-1],!0)===0;)--o;return o},`search`)}}),Cn=E({"../../node_modules/.pnpm/source-map@0.6.1/node_modules/source-map/lib/quick-sort.js"(e){function t(e,t,n){var r=e[t];e[t]=e[n],e[n]=r}x(t,`swap`);function n(e,t){return Math.round(e+Math.random()*(t-e))}x(n,`randomIntInRange`);function r(e,i,a,o){if(a<o){var s=n(a,o),c=a-1;t(e,s,o);for(var l=e[o],u=a;u<o;u++)i(e[u],l)<=0&&(c+=1,t(e,c,u));t(e,c+1,u);var d=c+1;r(e,i,a,d-1),r(e,i,d+1,o)}}x(r,`doQuickSort`),e.quickSort=function(e,t){r(e,t,0,e.length-1)}}}),wn=E({"../../node_modules/.pnpm/source-map@0.6.1/node_modules/source-map/lib/source-map-consumer.js"(e){var t=vn(),n=Sn(),r=yn().ArraySet,i=_n(),a=Cn().quickSort;function o(e,n){var r=e;return typeof e==`string`&&(r=t.parseSourceMapInput(e)),r.sections==null?new s(r,n):new l(r,n)}x(o,`SourceMapConsumer`),o.fromSourceMap=function(e,t){return s.fromSourceMap(e,t)},o.prototype._version=3,o.prototype.__generatedMappings=null,Object.defineProperty(o.prototype,`_generatedMappings`,{configurable:!0,enumerable:!0,get:x(function(){return this.__generatedMappings||this._parseMappings(this._mappings,this.sourceRoot),this.__generatedMappings},`get`)}),o.prototype.__originalMappings=null,Object.defineProperty(o.prototype,`_originalMappings`,{configurable:!0,enumerable:!0,get:x(function(){return this.__originalMappings||this._parseMappings(this._mappings,this.sourceRoot),this.__originalMappings},`get`)}),o.prototype._charIsMappingSeparator=x(function(e,t){var n=e.charAt(t);return n===`;`||n===`,`},`SourceMapConsumer_charIsMappingSeparator`),o.prototype._parseMappings=x(function(e,t){throw Error(`Subclasses must implement _parseMappings`)},`SourceMapConsumer_parseMappings`),o.GENERATED_ORDER=1,o.ORIGINAL_ORDER=2,o.GREATEST_LOWER_BOUND=1,o.LEAST_UPPER_BOUND=2,o.prototype.eachMapping=x(function(e,n,r){var i=n||null,a=r||o.GENERATED_ORDER,s;switch(a){case o.GENERATED_ORDER:s=this._generatedMappings;break;case o.ORIGINAL_ORDER:s=this._originalMappings;break;default:throw Error(`Unknown order of iteration.`)}var c=this.sourceRoot;s.map(function(e){var n=e.source===null?null:this._sources.at(e.source);return n=t.computeSourceURL(c,n,this._sourceMapURL),{source:n,generatedLine:e.generatedLine,generatedColumn:e.generatedColumn,originalLine:e.originalLine,originalColumn:e.originalColumn,name:e.name===null?null:this._names.at(e.name)}},this).forEach(e,i)},`SourceMapConsumer_eachMapping`),o.prototype.allGeneratedPositionsFor=x(function(e){var r=t.getArg(e,`line`),i={source:t.getArg(e,`source`),originalLine:r,originalColumn:t.getArg(e,`column`,0)};if(i.source=this._findSourceIndex(i.source),i.source<0)return[];var a=[],o=this._findMapping(i,this._originalMappings,`originalLine`,`originalColumn`,t.compareByOriginalPositions,n.LEAST_UPPER_BOUND);if(o>=0){var s=this._originalMappings[o];if(e.column===void 0)for(var c=s.originalLine;s&&s.originalLine===c;)a.push({line:t.getArg(s,`generatedLine`,null),column:t.getArg(s,`generatedColumn`,null),lastColumn:t.getArg(s,`lastGeneratedColumn`,null)}),s=this._originalMappings[++o];else for(var l=s.originalColumn;s&&s.originalLine===r&&s.originalColumn==l;)a.push({line:t.getArg(s,`generatedLine`,null),column:t.getArg(s,`generatedColumn`,null),lastColumn:t.getArg(s,`lastGeneratedColumn`,null)}),s=this._originalMappings[++o]}return a},`SourceMapConsumer_allGeneratedPositionsFor`),e.SourceMapConsumer=o;function s(e,n){var i=e;typeof e==`string`&&(i=t.parseSourceMapInput(e));var a=t.getArg(i,`version`),o=t.getArg(i,`sources`),s=t.getArg(i,`names`,[]),c=t.getArg(i,`sourceRoot`,null),l=t.getArg(i,`sourcesContent`,null),u=t.getArg(i,`mappings`),d=t.getArg(i,`file`,null);if(a!=this._version)throw Error(`Unsupported version: `+a);c&&=t.normalize(c),o=o.map(String).map(t.normalize).map(function(e){return c&&t.isAbsolute(c)&&t.isAbsolute(e)?t.relative(c,e):e}),this._names=r.fromArray(s.map(String),!0),this._sources=r.fromArray(o,!0),this._absoluteSources=this._sources.toArray().map(function(e){return t.computeSourceURL(c,e,n)}),this.sourceRoot=c,this.sourcesContent=l,this._mappings=u,this._sourceMapURL=n,this.file=d}x(s,`BasicSourceMapConsumer`),s.prototype=Object.create(o.prototype),s.prototype.consumer=o,s.prototype._findSourceIndex=function(e){var n=e;if(this.sourceRoot!=null&&(n=t.relative(this.sourceRoot,n)),this._sources.has(n))return this._sources.indexOf(n);var r;for(r=0;r<this._absoluteSources.length;++r)if(this._absoluteSources[r]==e)return r;return-1},s.fromSourceMap=x(function(e,n){var i=Object.create(s.prototype),o=i._names=r.fromArray(e._names.toArray(),!0),l=i._sources=r.fromArray(e._sources.toArray(),!0);i.sourceRoot=e._sourceRoot,i.sourcesContent=e._generateSourcesContent(i._sources.toArray(),i.sourceRoot),i.file=e._file,i._sourceMapURL=n,i._absoluteSources=i._sources.toArray().map(function(e){return t.computeSourceURL(i.sourceRoot,e,n)});for(var u=e._mappings.toArray().slice(),d=i.__generatedMappings=[],f=i.__originalMappings=[],p=0,m=u.length;p<m;p++){var h=u[p],g=new c;g.generatedLine=h.generatedLine,g.generatedColumn=h.generatedColumn,h.source&&(g.source=l.indexOf(h.source),g.originalLine=h.originalLine,g.originalColumn=h.originalColumn,h.name&&(g.name=o.indexOf(h.name)),f.push(g)),d.push(g)}return a(i.__originalMappings,t.compareByOriginalPositions),i},`SourceMapConsumer_fromSourceMap`),s.prototype._version=3,Object.defineProperty(s.prototype,`sources`,{get:x(function(){return this._absoluteSources.slice()},`get`)});function c(){this.generatedLine=0,this.generatedColumn=0,this.source=null,this.originalLine=null,this.originalColumn=null,this.name=null}x(c,`Mapping`),s.prototype._parseMappings=x(function(e,n){for(var r=1,o=0,s=0,l=0,u=0,d=0,f=e.length,p=0,m={},h={},g=[],_=[],v,y,b,x,S;p<f;)if(e.charAt(p)===`;`)r++,p++,o=0;else if(e.charAt(p)===`,`)p++;else{for(v=new c,v.generatedLine=r,x=p;x<f&&!this._charIsMappingSeparator(e,x);x++);if(y=e.slice(p,x),b=m[y],b)p+=y.length;else{for(b=[];p<x;)i.decode(e,p,h),S=h.value,p=h.rest,b.push(S);if(b.length===2)throw Error(`Found a source, but no line and column`);if(b.length===3)throw Error(`Found a source and line, but no column`);m[y]=b}v.generatedColumn=o+b[0],o=v.generatedColumn,b.length>1&&(v.source=u+b[1],u+=b[1],v.originalLine=s+b[2],s=v.originalLine,v.originalLine+=1,v.originalColumn=l+b[3],l=v.originalColumn,b.length>4&&(v.name=d+b[4],d+=b[4])),_.push(v),typeof v.originalLine==`number`&&g.push(v)}a(_,t.compareByGeneratedPositionsDeflated),this.__generatedMappings=_,a(g,t.compareByOriginalPositions),this.__originalMappings=g},`SourceMapConsumer_parseMappings`),s.prototype._findMapping=x(function(e,t,r,i,a,o){if(e[r]<=0)throw TypeError(`Line must be greater than or equal to 1, got `+e[r]);if(e[i]<0)throw TypeError(`Column must be greater than or equal to 0, got `+e[i]);return n.search(e,t,a,o)},`SourceMapConsumer_findMapping`),s.prototype.computeColumnSpans=x(function(){for(var e=0;e<this._generatedMappings.length;++e){var t=this._generatedMappings[e];if(e+1<this._generatedMappings.length){var n=this._generatedMappings[e+1];if(t.generatedLine===n.generatedLine){t.lastGeneratedColumn=n.generatedColumn-1;continue}}t.lastGeneratedColumn=1/0}},`SourceMapConsumer_computeColumnSpans`),s.prototype.originalPositionFor=x(function(e){var n={generatedLine:t.getArg(e,`line`),generatedColumn:t.getArg(e,`column`)},r=this._findMapping(n,this._generatedMappings,`generatedLine`,`generatedColumn`,t.compareByGeneratedPositionsDeflated,t.getArg(e,`bias`,o.GREATEST_LOWER_BOUND));if(r>=0){var i=this._generatedMappings[r];if(i.generatedLine===n.generatedLine){var a=t.getArg(i,`source`,null);a!==null&&(a=this._sources.at(a),a=t.computeSourceURL(this.sourceRoot,a,this._sourceMapURL));var s=t.getArg(i,`name`,null);return s!==null&&(s=this._names.at(s)),{source:a,line:t.getArg(i,`originalLine`,null),column:t.getArg(i,`originalColumn`,null),name:s}}}return{source:null,line:null,column:null,name:null}},`SourceMapConsumer_originalPositionFor`),s.prototype.hasContentsOfAllSources=x(function(){return this.sourcesContent?this.sourcesContent.length>=this._sources.size()&&!this.sourcesContent.some(function(e){return e==null}):!1},`BasicSourceMapConsumer_hasContentsOfAllSources`),s.prototype.sourceContentFor=x(function(e,n){if(!this.sourcesContent)return null;var r=this._findSourceIndex(e);if(r>=0)return this.sourcesContent[r];var i=e;this.sourceRoot!=null&&(i=t.relative(this.sourceRoot,i));var a;if(this.sourceRoot!=null&&(a=t.urlParse(this.sourceRoot))){var o=i.replace(/^file:\/\//,``);if(a.scheme==`file`&&this._sources.has(o))return this.sourcesContent[this._sources.indexOf(o)];if((!a.path||a.path==`/`)&&this._sources.has(`/`+i))return this.sourcesContent[this._sources.indexOf(`/`+i)]}if(n)return null;throw Error(`"`+i+`" is not in the SourceMap.`)},`SourceMapConsumer_sourceContentFor`),s.prototype.generatedPositionFor=x(function(e){var n=t.getArg(e,`source`);if(n=this._findSourceIndex(n),n<0)return{line:null,column:null,lastColumn:null};var r={source:n,originalLine:t.getArg(e,`line`),originalColumn:t.getArg(e,`column`)},i=this._findMapping(r,this._originalMappings,`originalLine`,`originalColumn`,t.compareByOriginalPositions,t.getArg(e,`bias`,o.GREATEST_LOWER_BOUND));if(i>=0){var a=this._originalMappings[i];if(a.source===r.source)return{line:t.getArg(a,`generatedLine`,null),column:t.getArg(a,`generatedColumn`,null),lastColumn:t.getArg(a,`lastGeneratedColumn`,null)}}return{line:null,column:null,lastColumn:null}},`SourceMapConsumer_generatedPositionFor`),e.BasicSourceMapConsumer=s;function l(e,n){var i=e;typeof e==`string`&&(i=t.parseSourceMapInput(e));var a=t.getArg(i,`version`),s=t.getArg(i,`sections`);if(a!=this._version)throw Error(`Unsupported version: `+a);this._sources=new r,this._names=new r;var c={line:-1,column:0};this._sections=s.map(function(e){if(e.url)throw Error(`Support for url field in sections not implemented.`);var r=t.getArg(e,`offset`),i=t.getArg(r,`line`),a=t.getArg(r,`column`);if(i<c.line||i===c.line&&a<c.column)throw Error(`Section offsets must be ordered and non-overlapping.`);return c=r,{generatedOffset:{generatedLine:i+1,generatedColumn:a+1},consumer:new o(t.getArg(e,`map`),n)}})}x(l,`IndexedSourceMapConsumer`),l.prototype=Object.create(o.prototype),l.prototype.constructor=o,l.prototype._version=3,Object.defineProperty(l.prototype,`sources`,{get:x(function(){for(var e=[],t=0;t<this._sections.length;t++)for(var n=0;n<this._sections[t].consumer.sources.length;n++)e.push(this._sections[t].consumer.sources[n]);return e},`get`)}),l.prototype.originalPositionFor=x(function(e){var r={generatedLine:t.getArg(e,`line`),generatedColumn:t.getArg(e,`column`)},i=n.search(r,this._sections,function(e,t){return e.generatedLine-t.generatedOffset.generatedLine||e.generatedColumn-t.generatedOffset.generatedColumn}),a=this._sections[i];return a?a.consumer.originalPositionFor({line:r.generatedLine-(a.generatedOffset.generatedLine-1),column:r.generatedColumn-(a.generatedOffset.generatedLine===r.generatedLine?a.generatedOffset.generatedColumn-1:0),bias:e.bias}):{source:null,line:null,column:null,name:null}},`IndexedSourceMapConsumer_originalPositionFor`),l.prototype.hasContentsOfAllSources=x(function(){return this._sections.every(function(e){return e.consumer.hasContentsOfAllSources()})},`IndexedSourceMapConsumer_hasContentsOfAllSources`),l.prototype.sourceContentFor=x(function(e,t){for(var n=0;n<this._sections.length;n++){var r=this._sections[n].consumer.sourceContentFor(e,!0);if(r)return r}if(t)return null;throw Error(`"`+e+`" is not in the SourceMap.`)},`IndexedSourceMapConsumer_sourceContentFor`),l.prototype.generatedPositionFor=x(function(e){for(var n=0;n<this._sections.length;n++){var r=this._sections[n];if(r.consumer._findSourceIndex(t.getArg(e,`source`))!==-1){var i=r.consumer.generatedPositionFor(e);if(i)return{line:i.line+(r.generatedOffset.generatedLine-1),column:i.column+(r.generatedOffset.generatedLine===i.line?r.generatedOffset.generatedColumn-1:0)}}}return{line:null,column:null}},`IndexedSourceMapConsumer_generatedPositionFor`),l.prototype._parseMappings=x(function(e,n){this.__generatedMappings=[],this.__originalMappings=[];for(var r=0;r<this._sections.length;r++)for(var i=this._sections[r],o=i.consumer._generatedMappings,s=0;s<o.length;s++){var c=o[s],l=i.consumer._sources.at(c.source);l=t.computeSourceURL(i.consumer.sourceRoot,l,this._sourceMapURL),this._sources.add(l),l=this._sources.indexOf(l);var u=null;c.name&&(u=i.consumer._names.at(c.name),this._names.add(u),u=this._names.indexOf(u));var d={source:l,generatedLine:c.generatedLine+(i.generatedOffset.generatedLine-1),generatedColumn:c.generatedColumn+(i.generatedOffset.generatedLine===c.generatedLine?i.generatedOffset.generatedColumn-1:0),originalLine:c.originalLine,originalColumn:c.originalColumn,name:u};this.__generatedMappings.push(d),typeof d.originalLine==`number`&&this.__originalMappings.push(d)}a(this.__generatedMappings,t.compareByGeneratedPositionsDeflated),a(this.__originalMappings,t.compareByOriginalPositions)},`IndexedSourceMapConsumer_parseMappings`),e.IndexedSourceMapConsumer=l}}),Tn=E({"../../node_modules/.pnpm/source-map@0.6.1/node_modules/source-map/lib/source-node.js"(e){var t=xn().SourceMapGenerator,n=vn(),r=/(\r?\n)/,i=10,a=`$$$isSourceNode$$$`;function o(e,t,n,r,i){this.children=[],this.sourceContents={},this.line=e??null,this.column=t??null,this.source=n??null,this.name=i??null,this[a]=!0,r!=null&&this.add(r)}x(o,`SourceNode`),o.fromStringWithSourceMap=x(function(e,t,i){var a=new o,s=e.split(r),c=0,l=x(function(){return e()+(e()||``);function e(){return c<s.length?s[c++]:void 0}},`shiftNextLine`),u=1,d=0,f=null;return t.eachMapping(function(e){if(f!==null)if(u<e.generatedLine)p(f,l()),u++,d=0;else{var t=s[c]||``,n=t.substr(0,e.generatedColumn-d);s[c]=t.substr(e.generatedColumn-d),d=e.generatedColumn,p(f,n),f=e;return}for(;u<e.generatedLine;)a.add(l()),u++;if(d<e.generatedColumn){var t=s[c]||``;a.add(t.substr(0,e.generatedColumn)),s[c]=t.substr(e.generatedColumn),d=e.generatedColumn}f=e},this),c<s.length&&(f&&p(f,l()),a.add(s.splice(c).join(``))),t.sources.forEach(function(e){var r=t.sourceContentFor(e);r!=null&&(i!=null&&(e=n.join(i,e)),a.setSourceContent(e,r))}),a;function p(e,t){if(e===null||e.source===void 0)a.add(t);else{var r=i?n.join(i,e.source):e.source;a.add(new o(e.originalLine,e.originalColumn,r,t,e.name))}}},`SourceNode_fromStringWithSourceMap`),o.prototype.add=x(function(e){if(Array.isArray(e))e.forEach(function(e){this.add(e)},this);else if(e[a]||typeof e==`string`)e&&this.children.push(e);else throw TypeError(`Expected a SourceNode, string, or an array of SourceNodes and strings. Got `+e);return this},`SourceNode_add`),o.prototype.prepend=x(function(e){if(Array.isArray(e))for(var t=e.length-1;t>=0;t--)this.prepend(e[t]);else if(e[a]||typeof e==`string`)this.children.unshift(e);else throw TypeError(`Expected a SourceNode, string, or an array of SourceNodes and strings. Got `+e);return this},`SourceNode_prepend`),o.prototype.walk=x(function(e){for(var t,n=0,r=this.children.length;n<r;n++)t=this.children[n],t[a]?t.walk(e):t!==``&&e(t,{source:this.source,line:this.line,column:this.column,name:this.name})},`SourceNode_walk`),o.prototype.join=x(function(e){var t,n,r=this.children.length;if(r>0){for(t=[],n=0;n<r-1;n++)t.push(this.children[n]),t.push(e);t.push(this.children[n]),this.children=t}return this},`SourceNode_join`),o.prototype.replaceRight=x(function(e,t){var n=this.children[this.children.length-1];return n[a]?n.replaceRight(e,t):typeof n==`string`?this.children[this.children.length-1]=n.replace(e,t):this.children.push(``.replace(e,t)),this},`SourceNode_replaceRight`),o.prototype.setSourceContent=x(function(e,t){this.sourceContents[n.toSetString(e)]=t},`SourceNode_setSourceContent`),o.prototype.walkSourceContents=x(function(e){for(var t=0,r=this.children.length;t<r;t++)this.children[t][a]&&this.children[t].walkSourceContents(e);for(var i=Object.keys(this.sourceContents),t=0,r=i.length;t<r;t++)e(n.fromSetString(i[t]),this.sourceContents[i[t]])},`SourceNode_walkSourceContents`),o.prototype.toString=x(function(){var e=``;return this.walk(function(t){e+=t}),e},`SourceNode_toString`),o.prototype.toStringWithSourceMap=x(function(e){var n={code:``,line:1,column:0},r=new t(e),a=!1,o=null,s=null,c=null,l=null;return this.walk(function(e,t){n.code+=e,t.source!==null&&t.line!==null&&t.column!==null?((o!==t.source||s!==t.line||c!==t.column||l!==t.name)&&r.addMapping({source:t.source,original:{line:t.line,column:t.column},generated:{line:n.line,column:n.column},name:t.name}),o=t.source,s=t.line,c=t.column,l=t.name,a=!0):a&&=(r.addMapping({generated:{line:n.line,column:n.column}}),o=null,!1);for(var u=0,d=e.length;u<d;u++)e.charCodeAt(u)===i?(n.line++,n.column=0,u+1===d?(o=null,a=!1):a&&r.addMapping({source:t.source,original:{line:t.line,column:t.column},generated:{line:n.line,column:n.column},name:t.name})):n.column++}),this.walkSourceContents(function(e,t){r.setSourceContent(e,t)}),{code:n.code,map:r}},`SourceNode_toStringWithSourceMap`),e.SourceNode=o}}),En=E({"../../node_modules/.pnpm/source-map@0.6.1/node_modules/source-map/source-map.js"(e){e.SourceMapGenerator=xn().SourceMapGenerator,e.SourceMapConsumer=wn().SourceMapConsumer,e.SourceNode=Tn().SourceNode}}),Dn=E({"../../node_modules/.pnpm/recast@0.23.11/node_modules/recast/lib/util.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.isTrailingCommaEnabled=e.getParentExportDeclaration=e.isExportDeclaration=e.fixFaultyLocations=e.getTrueLoc=e.composeSourceMaps=e.copyPos=e.comparePos=e.getUnionOfKeys=e.getOption=e.isBrowser=e.getLineTerminator=void 0;var t=(G(),C(U)),n=t.__importDefault(hn()),r=t.__importStar(mn()).namedTypes,i=t.__importDefault(En()),a=i.default.SourceMapConsumer,o=i.default.SourceMapGenerator,s=Object.prototype.hasOwnProperty;function c(){return l()?`
2
+ import{i as e,n as t,r as n}from"./source-38bULAR8.mjs";import{t as r}from"./cli-exit-Dqoo6Jgb.mjs";import{A as i,At as a,C as o,Ct as s,Et as c,a as l,c as u,i as d,it as f,kt as p,l as m,n as h,s as g,t as _,w as v,xt as y}from"./dist-DfMipWKR.mjs";import{a as b,i as x,n as S,o as C,r as w,s as T,t as E}from"./chunk-WMOON6TZ-D_ToS88f.mjs";import{C as D,E as O,S as ee,T as k,_ as te,i as ne,l as A,n as j,o as M,s as N,y as P}from"./interactive-C-o16XQs.mjs";import{n as re}from"./dist-DW47TUGh.mjs";import{n as ie,r as ae,t as oe}from"./dialog-BlUXJKbA.mjs";import{n as F}from"./wrangler-migration-BDkh1_IV.mjs";import{createRequire as I}from"node:module";import{basename as se,dirname as L,isAbsolute as ce,join as le,relative as ue,resolve as de}from"path";import{promises as fe}from"fs";import{appendFileSync as pe,existsSync as R,mkdirSync as me,promises as he,readFileSync as ge,statSync as _e,writeFileSync as ve}from"node:fs";import z,{basename as ye,join as B,relative as be,resolve as xe}from"node:path";import{fileURLToPath as Se}from"node:url";import V from"node:process";import Ce,{constants as we}from"node:os";import Te from"node:tty";import{readFile as Ee,readdir as De,stat as Oe,writeFile as ke}from"node:fs/promises";import{constants as Ae}from"os";import H from"node:assert";import{Buffer as je}from"node:buffer";import{Console as Me}from"node:console";import Ne from"node:child_process";import{InputConfigSchema as Pe,convertToWranglerConfig as Fe}from"@cloudflare/config";var Ie=t(((e,t)=>{t.exports=o,o.sync=s;var r=n(`fs`);function i(e,t){var n=t.pathExt===void 0?process.env.PATHEXT:t.pathExt;if(!n||(n=n.split(`;`),n.indexOf(``)!==-1))return!0;for(var r=0;r<n.length;r++){var i=n[r].toLowerCase();if(i&&e.substr(-i.length).toLowerCase()===i)return!0}return!1}function a(e,t,n){return!e.isSymbolicLink()&&!e.isFile()?!1:i(t,n)}function o(e,t,n){r.stat(e,function(r,i){n(r,r?!1:a(i,e,t))})}function s(e,t){return a(r.statSync(e),e,t)}})),Le=t(((e,t)=>{t.exports=i,i.sync=a;var r=n(`fs`);function i(e,t,n){r.stat(e,function(e,r){n(e,e?!1:o(r,t))})}function a(e,t){return o(r.statSync(e),t)}function o(e,t){return e.isFile()&&s(e,t)}function s(e,t){var n=e.mode,r=e.uid,i=e.gid,a=t.uid===void 0?process.getuid&&process.getuid():t.uid,o=t.gid===void 0?process.getgid&&process.getgid():t.gid,s=64,c=8,l=1,u=s|c;return n&l||n&c&&i===o||n&s&&r===a||n&u&&a===0}})),Re=t(((e,t)=>{n(`fs`);var r=process.platform===`win32`||global.TESTING_WINDOWS?Ie():Le();t.exports=i,i.sync=a;function i(e,t,n){if(typeof t==`function`&&(n=t,t={}),!n){if(typeof Promise!=`function`)throw TypeError(`callback not provided`);return new Promise(function(n,r){i(e,t||{},function(e,t){e?r(e):n(t)})})}r(e,t||{},function(e,r){e&&(e.code===`EACCES`||t&&t.ignoreErrors)&&(e=null,r=!1),n(e,r)})}function a(e,t){try{return r.sync(e,t||{})}catch(e){if(t&&t.ignoreErrors||e.code===`EACCES`)return!1;throw e}}})),ze=t(((e,t)=>{let r=process.platform===`win32`||process.env.OSTYPE===`cygwin`||process.env.OSTYPE===`msys`,i=n(`path`),a=r?`;`:`:`,o=Re(),s=e=>Object.assign(Error(`not found: ${e}`),{code:`ENOENT`}),c=(e,t)=>{let n=t.colon||a,i=e.match(/\//)||r&&e.match(/\\/)?[``]:[...r?[process.cwd()]:[],...(t.path||process.env.PATH||``).split(n)],o=r?t.pathExt||process.env.PATHEXT||`.EXE;.CMD;.BAT;.COM`:``,s=r?o.split(n):[``];return r&&e.indexOf(`.`)!==-1&&s[0]!==``&&s.unshift(``),{pathEnv:i,pathExt:s,pathExtExe:o}},l=(e,t,n)=>{typeof t==`function`&&(n=t,t={}),t||={};let{pathEnv:r,pathExt:a,pathExtExe:l}=c(e,t),u=[],d=n=>new Promise((a,o)=>{if(n===r.length)return t.all&&u.length?a(u):o(s(e));let c=r[n],l=/^".*"$/.test(c)?c.slice(1,-1):c,d=i.join(l,e);a(f(!l&&/^\.[\\\/]/.test(e)?e.slice(0,2)+d:d,n,0))}),f=(e,n,r)=>new Promise((i,s)=>{if(r===a.length)return i(d(n+1));let c=a[r];o(e+c,{pathExt:l},(a,o)=>{if(!a&&o)if(t.all)u.push(e+c);else return i(e+c);return i(f(e,n,r+1))})});return n?d(0).then(e=>n(null,e),n):d(0)};t.exports=l,l.sync=(e,t)=>{t||={};let{pathEnv:n,pathExt:r,pathExtExe:a}=c(e,t),l=[];for(let s=0;s<n.length;s++){let c=n[s],u=/^".*"$/.test(c)?c.slice(1,-1):c,d=i.join(u,e),f=!u&&/^\.[\\\/]/.test(e)?e.slice(0,2)+d:d;for(let e=0;e<r.length;e++){let n=f+r[e];try{if(o.sync(n,{pathExt:a}))if(t.all)l.push(n);else return n}catch{}}}if(t.all&&l.length)return l;if(t.nothrow)return null;throw s(e)}})),Be=t(((e,t)=>{let n=(e={})=>{let t=e.env||process.env;return(e.platform||process.platform)===`win32`?Object.keys(t).reverse().find(e=>e.toUpperCase()===`PATH`)||`Path`:`PATH`};t.exports=n,t.exports.default=n})),Ve=t(((e,t)=>{let r=n(`path`),i=ze(),a=Be();function o(e,t){let n=e.options.env||process.env,o=process.cwd(),s=e.options.cwd!=null,c=s&&process.chdir!==void 0&&!process.chdir.disabled;if(c)try{process.chdir(e.options.cwd)}catch{}let l;try{l=i.sync(e.command,{path:n[a({env:n})],pathExt:t?r.delimiter:void 0})}catch{}finally{c&&process.chdir(o)}return l&&=r.resolve(s?e.options.cwd:``,l),l}function s(e){return o(e)||o(e,!0)}t.exports=s})),He=t(((e,t)=>{let n=/([()\][%!^"`<>&|;, *?])/g;function r(e){return e=e.replace(n,`^$1`),e}function i(e,t){return e=`${e}`,e=e.replace(/(?=(\\+?)?)\1"/g,`$1$1\\"`),e=e.replace(/(?=(\\+?)?)\1$/,`$1$1`),e=`"${e}"`,e=e.replace(n,`^$1`),t&&(e=e.replace(n,`^$1`)),e}t.exports.command=r,t.exports.argument=i})),Ue=t(((e,t)=>{t.exports=/^#!(.*)/})),We=t(((e,t)=>{let n=Ue();t.exports=(e=``)=>{let t=e.match(n);if(!t)return null;let[r,i]=t[0].replace(/#! ?/,``).split(` `),a=r.split(`/`).pop();return a===`env`?i:i?`${a} ${i}`:a}})),Ge=t(((e,t)=>{let r=n(`fs`),i=We();function a(e){let t=Buffer.alloc(150),n;try{n=r.openSync(e,`r`),r.readSync(n,t,0,150,0),r.closeSync(n)}catch{}return i(t.toString())}t.exports=a})),Ke=t(((e,t)=>{let r=n(`path`),i=Ve(),a=He(),o=Ge(),s=process.platform===`win32`,c=/\.(?:com|exe)$/i,l=/node_modules[\\/].bin[\\/][^\\/]+\.cmd$/i;function u(e){e.file=i(e);let t=e.file&&o(e.file);return t?(e.args.unshift(e.file),e.command=t,i(e)):e.file}function d(e){if(!s)return e;let t=u(e),n=!c.test(t);if(e.options.forceShell||n){let n=l.test(t);e.command=r.normalize(e.command),e.command=a.command(e.command),e.args=e.args.map(e=>a.argument(e,n)),e.args=[`/d`,`/s`,`/c`,`"${[e.command].concat(e.args).join(` `)}"`],e.command=process.env.comspec||`cmd.exe`,e.options.windowsVerbatimArguments=!0}return e}function f(e,t,n){t&&!Array.isArray(t)&&(n=t,t=null),t=t?t.slice(0):[],n=Object.assign({},n);let r={command:e,args:t,options:n,file:void 0,original:{command:e,args:t}};return n.shell?r:d(r)}t.exports=f})),qe=t(((e,t)=>{let n=process.platform===`win32`;function r(e,t){return Object.assign(Error(`${t} ${e.command} ENOENT`),{code:`ENOENT`,errno:`ENOENT`,syscall:`${t} ${e.command}`,path:e.command,spawnargs:e.args})}function i(e,t){if(!n)return;let r=e.emit;e.emit=function(n,i){if(n===`exit`){let n=a(i,t);if(n)return r.call(e,`error`,n)}return r.apply(e,arguments)}}function a(e,t){return n&&e===1&&!t.file?r(t.original,`spawn`):null}function o(e,t){return n&&e===1&&!t.file?r(t.original,`spawnSync`):null}t.exports={hookChildProcess:i,verifyENOENT:a,verifyENOENTSync:o,notFoundError:r}})),Je=e(t(((e,t)=>{let r=n(`child_process`),i=Ke(),a=qe();function o(e,t,n){let o=i(e,t,n),s=r.spawn(o.command,o.args,o.options);return a.hookChildProcess(s,o),s}function s(e,t,n){let o=i(e,t,n),s=r.spawnSync(o.command,o.args,o.options);return s.error=s.error||a.verifyENOENTSync(s.status,o),s}t.exports=o,t.exports.spawn=o,t.exports.sync=s,t.exports._parse=i,t.exports._enoent=a}))(),1);const Ye=async(e,t={})=>Xe({useSpinner:t.useSpinner??t.silent,startText:t.startText||Ze(e),doneText:t.doneText,promise(){let[n,...r]=e,i=new AbortController,a=(0,Je.spawn)(n,[...r],{stdio:t.silent?`pipe`:`inherit`,env:{...process.env,...t.env},cwd:t.cwd,signal:i.signal}),o=``;(t.captureOutput??t.silent)&&(a.stdout?.on(`data`,e=>{o+=e}),a.stderr?.on(`data`,e=>{o+=e}));let s=null;return new Promise((e,n)=>{let r=e=>{n(new ee(`Command cancelled`,e)),i.abort(e?`${e} received`:null)};process.on(`SIGTERM`,r).on(`SIGINT`,r),s=()=>{process.off(`SIGTERM`,r).off(`SIGINT`,r)},a.on(`close`,r=>{try{if(r!==0)throw Error(o,{cause:r});e((t.transformOutput??(e=>e))(te(o)))}catch(e){n(Error(o,{cause:e}))}}),a.on(`error`,e=>{n(e)})}).finally(()=>{s?.()})}}),Xe=async({promise:e,...t})=>{let n;t.useSpinner&&ne()&&(n=M()),n?.start(t?.startText),typeof e==`function`&&(e=e());try{let r=await e,i=typeof t.doneText==`function`?t.doneText(r):t.doneText;n?.stop(i)}catch(e){n?.stop(e.message)}finally{n?.stop()}return e};function Ze(e){if(process.platform===`win32`){let t=/[&<>[\]|{}^=;!'+,`~\s]/;return e.map(e=>e.match(t)?`"${e.replaceAll(`"`,`""`)}"`:e).join(` `)}else return e.map(e=>/["\s]/.test(e)&&!/'/.test(e)?`'`+e.replace(/(['\\])/g,`\\$1`)+`'`:/["'\s]/.test(e)?`"`+e.replace(/(["\\$`!])/g,`\\$1`)+`"`:e).join(` `)}const Qe=async(e,t,n={})=>{let{cwd:r=process.cwd(),force:i,dev:a,startText:o,doneText:l}=n,u=n.isWorkspaceRoot??!1;if(t.length===0){let n;switch(e){case`yarn`:break;default:n=`install`;break}await Ye([e,...n?[n]:[],...t,...e===`pnpm`||e===`nub`?[`--no-frozen-lockfile`]:[],...i===!0?[`--force`]:[],...$e(e,u)],{cwd:r,startText:o,doneText:l,silent:!0});return}let d,f;switch(e){case`yarn`:f=`add`,d=a?`-D`:``;break;case`bun`:f=`add`,d=a?`-d`:``;break;default:f=`install`,d=a?`--save-dev`:``;break}if(await Ye([e,f,...d?[d]:[],...t,...i===!0?[`--force`]:[],...$e(e,u)],{cwd:r,startText:o,doneText:l,silent:!0}),e===`npm`){let e=z.join(r,`package.json`),i=s(c(e),e),a=n.dev?i.devDependencies:i.dependencies;H(a,`dependencies should be defined`);for(let e of t){let t=e.lastIndexOf(`@`);if(t>0){let n=e.slice(0,t),r=e.slice(t+1);r!==`latest`&&(a[n]=r)}}await ke(e,JSON.stringify(i,null,2))}};function $e(e,t){if(!t)return[];switch(e){case`pnpm`:case`nub`:return[`--workspace-root`];case`yarn`:return[`-W`];case`npm`:case`bun`:return[]}}async function et(e,t){let n=[`wrangler@latest`];tt(`@cloudflare/workers-types`)&&n.push(`@cloudflare/workers-types@latest`),await Qe(e,n,{dev:!0,isWorkspaceRoot:t,startText:`Installing wrangler ${O(`A command line tool for building Cloudflare Workers`)}`,doneText:`${k(`installed`)} ${O(`via \`${e} install wrangler --save-dev\``)}`})}function tt(e){let t=z.join(process.cwd(),`package.json`);if(!R(t))return!1;let n=s(c(t),t);return!!(n.dependencies?.[e]||n.devDependencies?.[e])}function nt(e){let t=R(e);t||ve(e,``);let n=c(e),r=[],i=n.match(/^\/?\.wrangler(\/|\s|$)/m);if(i||r.push(`.wrangler`),n.match(/^\/?\.dev\.vars\*(\s|$)/m)||r.push(`.dev.vars*`),n.match(/^!\/?\.dev\.vars\.example(\s|$)/m)||r.push(`!.dev.vars.example`),n.match(/^\/?\.env\*?(\..*?)?(\s|$)/m)||r.push(`.env*`),n.match(/^!\/?\.env\.example(\s|$)/m)||r.push(`!.env.example`),r.length===0)return;let a=M();a.start(`Adding Wrangler files to the ${ye(e)} file`);let o=[...t?[``,...n.match(/\n\s*$/)?[]:[``]]:[]];!i&&r.length>1&&o.push(`# wrangler files`),r.forEach(e=>o.push(e)),o.push(``),pe(e,o.join(`
3
+ `));let s=ye(e);a.stop(`${k(t?`updated`:`created`)} ${O(`${s} file`)}`)}function rt(e){let t=`${e}/.gitignore`,n=R(t),r=it(`${e}/.git`);!n&&!r||nt(t)}function it(e){try{return _e(e).isDirectory()}catch(e){if(e.code===`ENOENT`)return!1;throw Error(e)}}I(import.meta.url||(typeof __filename==`string`?__filename:`/`));var U={};w(U,{__addDisposableResource:()=>Mt,__assign:()=>It,__asyncDelegator:()=>wt,__asyncGenerator:()=>Ct,__asyncValues:()=>Tt,__await:()=>St,__awaiter:()=>mt,__classPrivateFieldGet:()=>kt,__classPrivateFieldIn:()=>jt,__classPrivateFieldSet:()=>At,__createBinding:()=>Lt,__decorate:()=>st,__disposeResources:()=>Nt,__esDecorate:()=>lt,__exportStar:()=>gt,__extends:()=>at,__generator:()=>ht,__importDefault:()=>Ot,__importStar:()=>Dt,__makeTemplateObject:()=>Et,__metadata:()=>pt,__param:()=>ct,__propKey:()=>dt,__read:()=>vt,__rest:()=>ot,__rewriteRelativeImportExtension:()=>Pt,__runInitializers:()=>ut,__setFunctionName:()=>ft,__spread:()=>yt,__spreadArray:()=>xt,__spreadArrays:()=>bt,__values:()=>_t,default:()=>Bt});function at(e,t){if(typeof t!=`function`&&t!==null)throw TypeError(`Class extends value `+String(t)+` is not a constructor or null`);Ft(e,t);function n(){this.constructor=e}x(n,`__`),e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}function ot(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols==`function`)for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n}function st(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect==`object`&&typeof Reflect.decorate==`function`)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a}function ct(e,t){return function(n,r){t(n,r,e)}}function lt(e,t,n,r,i,a){function o(e){if(e!==void 0&&typeof e!=`function`)throw TypeError(`Function expected`);return e}x(o,`accept`);for(var s=r.kind,c=s===`getter`?`get`:s===`setter`?`set`:`value`,l=!t&&e?r.static?e:e.prototype:null,u=t||(l?Object.getOwnPropertyDescriptor(l,r.name):{}),d,f=!1,p=n.length-1;p>=0;p--){var m={};for(var h in r)m[h]=h===`access`?{}:r[h];for(var h in r.access)m.access[h]=r.access[h];m.addInitializer=function(e){if(f)throw TypeError(`Cannot add initializers after decoration has completed`);a.push(o(e||null))};var g=(0,n[p])(s===`accessor`?{get:u.get,set:u.set}:u[c],m);if(s===`accessor`){if(g===void 0)continue;if(typeof g!=`object`||!g)throw TypeError(`Object expected`);(d=o(g.get))&&(u.get=d),(d=o(g.set))&&(u.set=d),(d=o(g.init))&&i.unshift(d)}else (d=o(g))&&(s===`field`?i.unshift(d):u[c]=d)}l&&Object.defineProperty(l,r.name,u),f=!0}function ut(e,t,n){for(var r=arguments.length>2,i=0;i<t.length;i++)n=r?t[i].call(e,n):t[i].call(e);return r?n:void 0}function dt(e){return typeof e==`symbol`?e:`${e}`}function ft(e,t,n){return typeof t==`symbol`&&(t=t.description?`[${t.description}]`:``),Object.defineProperty(e,`name`,{configurable:!0,value:n?`${n} ${t}`:t})}function pt(e,t){if(typeof Reflect==`object`&&typeof Reflect.metadata==`function`)return Reflect.metadata(e,t)}function mt(e,t,n,r){function i(e){return e instanceof n?e:new n(function(t){t(e)})}return x(i,`adopt`),new(n||=Promise)(function(n,a){function o(e){try{c(r.next(e))}catch(e){a(e)}}x(o,`fulfilled`);function s(e){try{c(r.throw(e))}catch(e){a(e)}}x(s,`rejected`);function c(e){e.done?n(e.value):i(e.value).then(o,s)}x(c,`step`),c((r=r.apply(e,t||[])).next())})}function ht(e,t){var n={label:0,sent:x(function(){if(a[0]&1)throw a[1];return a[1]},`sent`),trys:[],ops:[]},r,i,a,o=Object.create((typeof Iterator==`function`?Iterator:Object).prototype);return o.next=s(0),o.throw=s(1),o.return=s(2),typeof Symbol==`function`&&(o[Symbol.iterator]=function(){return this}),o;function s(e){return function(t){return c([e,t])}}function c(s){if(r)throw TypeError(`Generator is already executing.`);for(;o&&(o=0,s[0]&&(n=0)),n;)try{if(r=1,i&&(a=s[0]&2?i.return:s[0]?i.throw||((a=i.return)&&a.call(i),0):i.next)&&!(a=a.call(i,s[1])).done)return a;switch(i=0,a&&(s=[s[0]&2,a.value]),s[0]){case 0:case 1:a=s;break;case 4:return n.label++,{value:s[1],done:!1};case 5:n.label++,i=s[1],s=[0];continue;case 7:s=n.ops.pop(),n.trys.pop();continue;default:if((a=n.trys,!(a=a.length>0&&a[a.length-1]))&&(s[0]===6||s[0]===2)){n=0;continue}if(s[0]===3&&(!a||s[1]>a[0]&&s[1]<a[3])){n.label=s[1];break}if(s[0]===6&&n.label<a[1]){n.label=a[1],a=s;break}if(a&&n.label<a[2]){n.label=a[2],n.ops.push(s);break}a[2]&&n.ops.pop(),n.trys.pop();continue}s=t.call(e,n)}catch(e){s=[6,e],i=0}finally{r=a=0}if(s[0]&5)throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}}function gt(e,t){for(var n in e)n!==`default`&&!Object.prototype.hasOwnProperty.call(t,n)&&Lt(t,e,n)}function _t(e){var t=typeof Symbol==`function`&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&typeof e.length==`number`)return{next:x(function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}},`next`)};throw TypeError(t?`Object is not iterable.`:`Symbol.iterator is not defined.`)}function vt(e,t){var n=typeof Symbol==`function`&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),i,a=[],o;try{for(;(t===void 0||t-- >0)&&!(i=r.next()).done;)a.push(i.value)}catch(e){o={error:e}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(o)throw o.error}}return a}function yt(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(vt(arguments[t]));return e}function bt(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;for(var r=Array(e),i=0,t=0;t<n;t++)for(var a=arguments[t],o=0,s=a.length;o<s;o++,i++)r[i]=a[o];return r}function xt(e,t,n){if(n||arguments.length===2)for(var r=0,i=t.length,a;r<i;r++)(a||!(r in t))&&(a||=Array.prototype.slice.call(t,0,r),a[r]=t[r]);return e.concat(a||Array.prototype.slice.call(t))}function St(e){return this instanceof St?(this.v=e,this):new St(e)}function Ct(e,t,n){if(!Symbol.asyncIterator)throw TypeError(`Symbol.asyncIterator is not defined.`);var r=n.apply(e,t||[]),i,a=[];return i=Object.create((typeof AsyncIterator==`function`?AsyncIterator:Object).prototype),s(`next`),s(`throw`),s(`return`,o),i[Symbol.asyncIterator]=function(){return this},i;function o(e){return function(t){return Promise.resolve(t).then(e,d)}}function s(e,t){r[e]&&(i[e]=function(t){return new Promise(function(n,r){a.push([e,t,n,r])>1||c(e,t)})},t&&(i[e]=t(i[e])))}function c(e,t){try{l(r[e](t))}catch(e){f(a[0][3],e)}}function l(e){e.value instanceof St?Promise.resolve(e.value.v).then(u,d):f(a[0][2],e)}function u(e){c(`next`,e)}function d(e){c(`throw`,e)}function f(e,t){e(t),a.shift(),a.length&&c(a[0][0],a[0][1])}}function wt(e){var t,n;return t={},r(`next`),r(`throw`,function(e){throw e}),r(`return`),t[Symbol.iterator]=function(){return this},t;function r(r,i){t[r]=e[r]?function(t){return(n=!n)?{value:St(e[r](t)),done:!1}:i?i(t):t}:i}}function Tt(e){if(!Symbol.asyncIterator)throw TypeError(`Symbol.asyncIterator is not defined.`);var t=e[Symbol.asyncIterator],n;return t?t.call(e):(e=typeof _t==`function`?_t(e):e[Symbol.iterator](),n={},r(`next`),r(`throw`),r(`return`),n[Symbol.asyncIterator]=function(){return this},n);function r(t){n[t]=e[t]&&function(n){return new Promise(function(r,a){n=e[t](n),i(r,a,n.done,n.value)})}}function i(e,t,n,r){Promise.resolve(r).then(function(t){e({value:t,done:n})},t)}}function Et(e,t){return Object.defineProperty?Object.defineProperty(e,`raw`,{value:t}):e.raw=t,e}function Dt(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var n=Rt(e),r=0;r<n.length;r++)n[r]!==`default`&&Lt(t,e,n[r]);return W(t,e),t}function Ot(e){return e&&e.__esModule?e:{default:e}}function kt(e,t,n,r){if(n===`a`&&!r)throw TypeError(`Private accessor was defined without a getter`);if(typeof t==`function`?e!==t||!r:!t.has(e))throw TypeError(`Cannot read private member from an object whose class did not declare it`);return n===`m`?r:n===`a`?r.call(e):r?r.value:t.get(e)}function At(e,t,n,r,i){if(r===`m`)throw TypeError(`Private method is not writable`);if(r===`a`&&!i)throw TypeError(`Private accessor was defined without a setter`);if(typeof t==`function`?e!==t||!i:!t.has(e))throw TypeError(`Cannot write private member to an object whose class did not declare it`);return r===`a`?i.call(e,n):i?i.value=n:t.set(e,n),n}function jt(e,t){if(t===null||typeof t!=`object`&&typeof t!=`function`)throw TypeError(`Cannot use 'in' operator on non-object`);return typeof e==`function`?t===e:e.has(t)}function Mt(e,t,n){if(t!=null){if(typeof t!=`object`&&typeof t!=`function`)throw TypeError(`Object expected.`);var r,i;if(n){if(!Symbol.asyncDispose)throw TypeError(`Symbol.asyncDispose is not defined.`);r=t[Symbol.asyncDispose]}if(r===void 0){if(!Symbol.dispose)throw TypeError(`Symbol.dispose is not defined.`);r=t[Symbol.dispose],n&&(i=r)}if(typeof r!=`function`)throw TypeError(`Object not disposable.`);i&&(r=x(function(){try{i.call(this)}catch(e){return Promise.reject(e)}},`dispose`)),e.stack.push({value:t,dispose:r,async:n})}else n&&e.stack.push({async:!0});return t}function Nt(e){function t(t){e.error=e.hasError?new zt(t,e.error,`An error was suppressed during disposal.`):t,e.hasError=!0}x(t,`fail`);var n,r=0;function i(){for(;n=e.stack.pop();)try{if(!n.async&&r===1)return r=0,e.stack.push(n),Promise.resolve().then(i);if(n.dispose){var a=n.dispose.call(n.value);if(n.async)return r|=2,Promise.resolve(a).then(i,function(e){return t(e),i()})}else r|=1}catch(e){t(e)}if(r===1)return e.hasError?Promise.reject(e.error):Promise.resolve();if(e.hasError)throw e.error}return x(i,`next`),i()}function Pt(e,t){return typeof e==`string`&&/^\.\.?\//.test(e)?e.replace(/\.(tsx)$|((?:\.d)?)((?:\.[^./]+?)?)\.([cm]?)ts$/i,function(e,n,r,i,a){return n?t?`.jsx`:`.js`:r&&(!i||!a)?e:r+i+`.`+a.toLowerCase()+`js`}):e}var Ft,It,Lt,W,Rt,zt,Bt,G=S({"../../node_modules/.pnpm/tslib@2.8.1/node_modules/tslib/tslib.es6.mjs"(){Ft=x(function(e,t){return Ft=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},Ft(e,t)},`extendStatics`),x(at,`__extends`),It=x(function(){return It=Object.assign||x(function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},`__assign`),It.apply(this,arguments)},`__assign`),x(ot,`__rest`),x(st,`__decorate`),x(ct,`__param`),x(lt,`__esDecorate`),x(ut,`__runInitializers`),x(dt,`__propKey`),x(ft,`__setFunctionName`),x(pt,`__metadata`),x(mt,`__awaiter`),x(ht,`__generator`),Lt=Object.create?function(e,t,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||(`get`in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:x(function(){return t[n]},`get`)}),Object.defineProperty(e,r,i)}:function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]},x(gt,`__exportStar`),x(_t,`__values`),x(vt,`__read`),x(yt,`__spread`),x(bt,`__spreadArrays`),x(xt,`__spreadArray`),x(St,`__await`),x(Ct,`__asyncGenerator`),x(wt,`__asyncDelegator`),x(Tt,`__asyncValues`),x(Et,`__makeTemplateObject`),W=Object.create?function(e,t){Object.defineProperty(e,`default`,{enumerable:!0,value:t})}:function(e,t){e.default=t},Rt=x(function(e){return Rt=Object.getOwnPropertyNames||function(e){var t=[];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[t.length]=n);return t},Rt(e)},`ownKeys`),x(Dt,`__importStar`),x(Ot,`__importDefault`),x(kt,`__classPrivateFieldGet`),x(At,`__classPrivateFieldSet`),x(jt,`__classPrivateFieldIn`),x(Mt,`__addDisposableResource`),zt=typeof SuppressedError==`function`?SuppressedError:function(e,t,n){var r=Error(n);return r.name=`SuppressedError`,r.error=e,r.suppressed=t,r},x(Nt,`__disposeResources`),x(Pt,`__rewriteRelativeImportExtension`),Bt={__extends:at,__assign:It,__rest:ot,__decorate:st,__param:ct,__esDecorate:lt,__runInitializers:ut,__propKey:dt,__setFunctionName:ft,__metadata:pt,__awaiter:mt,__generator:ht,__createBinding:Lt,__exportStar:gt,__values:_t,__read:vt,__spread:yt,__spreadArrays:bt,__spreadArray:xt,__await:St,__asyncGenerator:Ct,__asyncDelegator:wt,__asyncValues:Tt,__makeTemplateObject:Et,__importStar:Dt,__importDefault:Ot,__classPrivateFieldGet:kt,__classPrivateFieldSet:At,__classPrivateFieldIn:jt,__addDisposableResource:Mt,__disposeResources:Nt,__rewriteRelativeImportExtension:Pt}}}),K=E({"../../node_modules/.pnpm/ast-types@0.16.1/node_modules/ast-types/lib/shared.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.maybeSetModuleExports=void 0;var t=(G(),C(U)).__importDefault(q());function n(e){var n=e.use(t.default),r=n.Type,i=n.builtInTypes,a=i.number;function o(e){return r.from(function(t){return a.check(t)&&t>=e},a+` >= `+e)}x(o,`geq`);var s={null:x(function(){return null},`null`),emptyArray:x(function(){return[]},`emptyArray`),false:x(function(){return!1},`false`),true:x(function(){return!0},`true`),undefined:x(function(){},`undefined`),"use strict":x(function(){return`use strict`},`use strict`)},c=r.or(i.string,i.number,i.boolean,i.null,i.undefined);return{geq:o,defaults:s,isPrimitive:r.from(function(e){if(e===null)return!0;var t=typeof e;return!(t===`object`||t===`function`)},c.toString())}}x(n,`default_1`),e.default=n;function r(e){try{var t=e(),n=t.exports,r=n.default}catch{return}r&&r!==n&&typeof n==`object`&&(Object.assign(r,n,{default:r}),n.__esModule&&Object.defineProperty(r,`__esModule`,{value:!0}),t.exports=r)}x(r,`maybeSetModuleExports`),e.maybeSetModuleExports=r}}),q=E({"../../node_modules/.pnpm/ast-types@0.16.1/node_modules/ast-types/lib/types.js"(e,t){Object.defineProperty(e,`__esModule`,{value:!0}),e.Def=void 0;var n=(G(),C(U)),r=K(),i=Object.prototype,a=i.toString,o=i.hasOwnProperty,s=function(){function e(){}return x(e,`BaseType`),e.prototype.assert=function(e,t){if(!this.check(e,t)){var n=h(e);throw Error(n+` does not match type `+this)}return!0},e.prototype.arrayOf=function(){return new c(this)},e}(),c=function(e){n.__extends(t,e);function t(t){var n=e.call(this)||this;return n.elemType=t,n.kind=`ArrayType`,n}return x(t,`ArrayType`),t.prototype.toString=function(){return`[`+this.elemType+`]`},t.prototype.check=function(e,t){var n=this;return Array.isArray(e)&&e.every(function(e){return n.elemType.check(e,t)})},t}(s),l=function(e){n.__extends(t,e);function t(t){var n=e.call(this)||this;return n.value=t,n.kind=`IdentityType`,n}return x(t,`IdentityType`),t.prototype.toString=function(){return String(this.value)},t.prototype.check=function(e,t){var n=e===this.value;return!n&&typeof t==`function`&&t(this,e),n},t}(s),u=function(e){n.__extends(t,e);function t(t){var n=e.call(this)||this;return n.fields=t,n.kind=`ObjectType`,n}return x(t,`ObjectType`),t.prototype.toString=function(){return`{ `+this.fields.join(`, `)+` }`},t.prototype.check=function(e,t){return a.call(e)===a.call({})&&this.fields.every(function(n){return n.type.check(e[n.name],t)})},t}(s),d=function(e){n.__extends(t,e);function t(t){var n=e.call(this)||this;return n.types=t,n.kind=`OrType`,n}return x(t,`OrType`),t.prototype.toString=function(){return this.types.join(` | `)},t.prototype.check=function(e,t){return this.types.some(function(n){return n.check(e,!!t)})?!0:(typeof t==`function`&&t(this,e),!1)},t}(s),f=function(e){n.__extends(t,e);function t(t,n){var r=e.call(this)||this;return r.name=t,r.predicate=n,r.kind=`PredicateType`,r}return x(t,`PredicateType`),t.prototype.toString=function(){return this.name},t.prototype.check=function(e,t){var n=this.predicate(e,t);return!n&&typeof t==`function`&&t(this,e),n},t}(s),p=function(){function e(e,t){this.type=e,this.typeName=t,this.baseNames=[],this.ownFields=Object.create(null),this.allSupertypes=Object.create(null),this.supertypeList=[],this.allFields=Object.create(null),this.fieldNames=[],this.finalized=!1,this.buildable=!1,this.buildParams=[]}return x(e,`Def`),e.prototype.isSupertypeOf=function(t){if(t instanceof e){if(this.finalized!==!0||t.finalized!==!0)throw Error(``);return o.call(t.allSupertypes,this.typeName)}else throw Error(t+` is not a Def`)},e.prototype.checkAllFields=function(e,t){var n=this.allFields;if(this.finalized!==!0)throw Error(``+this.typeName);function r(r){var i=n[r],a=i.type,o=i.getValue(e);return a.check(o,t)}return x(r,`checkFieldByName`),typeof e==`object`&&!!e&&Object.keys(n).every(r)},e.prototype.bases=function(){var e=[...arguments],t=this.baseNames;if(this.finalized){if(e.length!==t.length)throw Error(``);for(var n=0;n<e.length;n++)if(e[n]!==t[n])throw Error(``);return this}return e.forEach(function(e){t.indexOf(e)<0&&t.push(e)}),this},e}();e.Def=p;var m=function(){function e(e,t,n,r){this.name=e,this.type=t,this.defaultFn=n,this.hidden=!!r}return x(e,`Field`),e.prototype.toString=function(){return JSON.stringify(this.name)+`: `+this.type},e.prototype.getValue=function(e){var t=e[this.name];return t===void 0&&typeof this.defaultFn==`function`&&(t=this.defaultFn.call(e)),t},e}();function h(e){return Array.isArray(e)?`[`+e.map(h).join(`, `)+`]`:e&&typeof e==`object`?`{ `+Object.keys(e).map(function(t){return t+`: `+e[t]}).join(`, `)+` }`:JSON.stringify(e)}x(h,`shallowStringify`);function g(e){var t={or:x(function(){return new d([...arguments].map(function(e){return t.from(e)}))},`or`),from:x(function(e,n){if(e instanceof c||e instanceof l||e instanceof u||e instanceof d||e instanceof f)return e;if(e instanceof p)return e.type;if(v.check(e)){if(e.length!==1)throw Error(`only one element type is permitted for typed arrays`);return new c(t.from(e[0]))}if(y.check(e))return new u(Object.keys(e).map(function(n){return new m(n,t.from(e[n],n))}));if(typeof e==`function`){var a=r.indexOf(e);if(a>=0)return i[a];if(typeof n!=`string`)throw Error(`missing name`);return new f(n,e)}return new l(e)},`from`),def:x(function(e){return o.call(O,e)?O[e]:O[e]=new k(e)},`def`),hasDef:x(function(e){return o.call(O,e)},`hasDef`)},r=[],i=[];function s(e,t){var n=a.call(t),o=new f(e,function(e){return a.call(e)===n});return t&&typeof t.constructor==`function`&&(r.push(t.constructor),i.push(o)),o}x(s,`defBuiltInType`);var g=s(`string`,`truthy`),_=s(`function`,function(){}),v=s(`array`,[]),y=s(`object`,{}),b=s(`RegExp`,/./),S=s(`Date`,new Date),C=s(`number`,3),w=s(`boolean`,!0),T=s(`null`,null),E=s(`undefined`,void 0),D={string:g,function:_,array:v,object:y,RegExp:b,Date:S,number:C,boolean:w,null:T,undefined:E,BigInt:typeof BigInt==`function`?s(`BigInt`,BigInt(1234)):new f(`BigInt`,function(){return!1})},O=Object.create(null);function ee(e){if(e&&typeof e==`object`){var t=e.type;if(typeof t==`string`&&o.call(O,t)){var n=O[t];if(n.finalized)return n}}return null}x(ee,`defFromValue`);var k=function(e){n.__extends(r,e);function r(t){var n=e.call(this,new f(t,function(e,t){return n.check(e,t)}),t)||this;return n}return x(r,`DefImpl`),r.prototype.check=function(e,t){if(this.finalized!==!0)throw Error(`prematurely checking unfinalized type `+this.typeName);if(typeof e!=`object`||!e)return!1;var n=ee(e);return n?t&&n===this?this.checkAllFields(e,t):this.isSupertypeOf(n)?t?n.checkAllFields(e,t)&&this.checkAllFields(e,!1):!0:!1:this.typeName===`SourceLocation`||this.typeName===`Position`?this.checkAllFields(e,t):!1},r.prototype.build=function(){for(var e=this,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];if(this.buildParams=t,this.buildable)return this;this.field(`type`,String,function(){return e.typeName}),this.buildable=!0;var r=x(function(t,n,r,i){if(!o.call(t,n)){var a=e.allFields;if(!o.call(a,n))throw Error(``+n);var s=a[n],c=s.type,l;if(i)l=r;else if(s.defaultFn)l=s.defaultFn.call(t);else{var u=`no value or default function given for field `+JSON.stringify(n)+` of `+e.typeName+`(`+e.buildParams.map(function(e){return a[e]}).join(`, `)+`)`;throw Error(u)}if(!c.check(l))throw Error(h(l)+` does not match field `+s+` of type `+e.typeName);t[n]=l}},`addParam`),i=x(function(){var t=[...arguments],n=t.length;if(!e.finalized)throw Error(`attempting to instantiate unfinalized type `+e.typeName);var i=Object.create(j);if(e.buildParams.forEach(function(e,a){a<n?r(i,e,t[a],!0):r(i,e,null,!1)}),Object.keys(e.allFields).forEach(function(e){r(i,e,null,!1)}),i.type!==e.typeName)throw Error(``);return i},`builder`);return i.from=function(t){if(!e.finalized)throw Error(`attempting to instantiate unfinalized type `+e.typeName);var n=Object.create(j);if(Object.keys(e.allFields).forEach(function(e){o.call(t,e)?r(n,e,t[e],!0):r(n,e,null,!1)}),n.type!==e.typeName)throw Error(``);return n},Object.defineProperty(A,N(this.typeName),{enumerable:!0,value:i}),this},r.prototype.field=function(e,n,r,i){return this.finalized?(console.error(`Ignoring attempt to redefine field `+JSON.stringify(e)+` of finalized type `+JSON.stringify(this.typeName)),this):(this.ownFields[e]=new m(e,t.from(n),r,i),this)},r.prototype.finalize=function(){var e=this;if(!this.finalized){var t=this.allFields,n=this.allSupertypes;for(var r in this.baseNames.forEach(function(r){var i=O[r];if(i instanceof p)i.finalize(),L(t,i.allFields),L(n,i.allSupertypes);else{var a=`unknown supertype name `+JSON.stringify(r)+` for subtype `+JSON.stringify(e.typeName);throw Error(a)}}),L(t,this.ownFields),n[this.typeName]=this,this.fieldNames.length=0,t)o.call(t,r)&&!t[r].hidden&&this.fieldNames.push(r);Object.defineProperty(re,this.typeName,{enumerable:!0,value:this.type}),this.finalized=!0,se(this.typeName,this.supertypeList),this.buildable&&this.supertypeList.lastIndexOf(`Expression`)>=0&&I(this.typeName)}},r}(p);function te(e){if(!o.call(O,e))throw Error(``);var t=O[e];if(t.finalized!==!0)throw Error(``);return t.supertypeList.slice(1)}x(te,`getSupertypeNames`);function ne(e){for(var t={},n=Object.keys(O),r=n.length,i=0;i<r;++i){var a=n[i],s=O[a];if(s.finalized!==!0)throw Error(``+a);for(var c=0;c<s.supertypeList.length;++c){var l=s.supertypeList[c];if(o.call(e,l)){t[a]=l;break}}}return t}x(ne,`computeSupertypeLookupTable`);var A=Object.create(null),j={};function M(e,t){var n=j[e];return E.check(t)?delete j[e]:(_.assert(t),Object.defineProperty(j,e,{enumerable:!0,configurable:!0,value:t})),n}x(M,`defineMethod`);function N(e){return e.replace(/^[A-Z]+/,function(e){var t=e.length;switch(t){case 0:return``;case 1:return e.toLowerCase();default:return e.slice(0,t-1).toLowerCase()+e.charAt(t-1)}})}x(N,`getBuilderName`);function P(e){return e=N(e),e.replace(/(Expression)?$/,`Statement`)}x(P,`getStatementBuilderName`);var re={};function ie(e){var t=ee(e);if(t)return t.fieldNames.slice(0);if(`type`in e)throw Error(`did not recognize object of type `+JSON.stringify(e.type));return Object.keys(e)}x(ie,`getFieldNames`);function ae(e,t){var n=ee(e);if(n){var r=n.allFields[t];if(r)return r.getValue(e)}return e&&e[t]}x(ae,`getFieldValue`);function oe(e,t,n){ie(e).forEach(function(n){t.call(this,n,ae(e,n))},n)}x(oe,`eachField`);function F(e,t,n){return ie(e).some(function(n){return t.call(this,n,ae(e,n))},n)}x(F,`someField`);function I(e){var t=P(e);if(!A[t]){var n=A[N(e)];if(n){var r=x(function(){var e=[...arguments];return A.expressionStatement(n.apply(A,e))},`builder`);r.from=function(){var e=[...arguments];return A.expressionStatement(n.from.apply(A,e))},A[t]=r}}}x(I,`wrapExpressionBuilderWithStatement`);function se(e,t){t.length=0,t.push(e);for(var n=Object.create(null),r=0;r<t.length;++r){e=t[r];var i=O[e];if(i.finalized!==!0)throw Error(``);o.call(n,e)&&delete t[n[e]],n[e]=r,t.push.apply(t,i.baseNames)}for(var a=0,s=a,c=t.length;s<c;++s)o.call(t,s)&&(t[a++]=t[s]);t.length=a}x(se,`populateSupertypeList`);function L(e,t){return Object.keys(t).forEach(function(n){e[n]=t[n]}),e}x(L,`extend`);function ce(){Object.keys(O).forEach(function(e){O[e].finalize()})}return x(ce,`finalize`),{Type:t,builtInTypes:D,getSupertypeNames:te,computeSupertypeLookupTable:ne,builders:A,defineMethod:M,getBuilderName:N,getStatementBuilderName:P,namedTypes:re,getFieldNames:ie,getFieldValue:ae,eachField:oe,someField:F,finalize:ce}}x(g,`typesPlugin`),e.default=g,(0,r.maybeSetModuleExports)(function(){return t})}}),Vt=E({"../../node_modules/.pnpm/ast-types@0.16.1/node_modules/ast-types/lib/path.js"(e,t){Object.defineProperty(e,`__esModule`,{value:!0});var n=(G(),C(U)),r=K(),i=n.__importDefault(q()),a=Object.prototype.hasOwnProperty;function o(e){var t=e.use(i.default),n=t.builtInTypes.array,r=t.builtInTypes.number,o=x(function e(t,n,r){if(!(this instanceof e))throw Error(`Path constructor cannot be invoked without 'new'`);if(n){if(!(n instanceof e))throw Error(``)}else n=null,r=null;this.value=t,this.parentPath=n,this.name=r,this.__childCache=null},`Path`),s=o.prototype;function c(e){return e.__childCache||=Object.create(null)}x(c,`getChildCache`);function l(e,t){var n=c(e),r=e.getValueProperty(t),i=n[t];return(!a.call(n,t)||i.value!==r)&&(i=n[t]=new e.constructor(r,e,t)),i}x(l,`getChildPath`),s.getValueProperty=x(function(e){return this.value[e]},`getValueProperty`),s.get=x(function(){for(var e=[...arguments],t=this,n=e.length,r=0;r<n;++r)t=l(t,e[r]);return t},`get`),s.each=x(function(e,t){for(var n=[],r=this.value.length,i=0,i=0;i<r;++i)a.call(this.value,i)&&(n[i]=this.get(i));for(t||=this,i=0;i<r;++i)a.call(n,i)&&e.call(t,n[i])},`each`),s.map=x(function(e,t){var n=[];return this.each(function(t){n.push(e.call(this,t))},t),n},`map`),s.filter=x(function(e,t){var n=[];return this.each(function(t){e.call(this,t)&&n.push(t)},t),n},`filter`);function u(){}x(u,`emptyMoves`);function d(e,t,i,o){if(n.assert(e.value),t===0)return u;var s=e.value.length;if(s<1)return u;var l=arguments.length;l===2?(i=0,o=s):l===3?(i=Math.max(i,0),o=s):(i=Math.max(i,0),o=Math.min(o,s)),r.assert(i),r.assert(o);for(var d=Object.create(null),f=c(e),p=i;p<o;++p)if(a.call(e.value,p)){var m=e.get(p);if(m.name!==p)throw Error(``);var h=p+t;m.name=h,d[h]=m,delete f[p]}return delete f.length,function(){for(var t in d){var n=d[t];if(n.name!==+t)throw Error(``);f[t]=n,e.value[t]=n.value}}}x(d,`getMoves`),s.shift=x(function(){var e=d(this,-1),t=this.value.shift();return e(),t},`shift`),s.unshift=x(function(){var e=[...arguments],t=d(this,e.length),n=this.value.unshift.apply(this.value,e);return t(),n},`unshift`),s.push=x(function(){var e=[...arguments];return n.assert(this.value),delete c(this).length,this.value.push.apply(this.value,e)},`push`),s.pop=x(function(){n.assert(this.value);var e=c(this);return delete e[this.value.length-1],delete e.length,this.value.pop()},`pop`),s.insertAt=x(function(e){var t=arguments.length,n=d(this,t-1,e);if(n===u&&t<=1)return this;e=Math.max(e,0);for(var r=1;r<t;++r)this.value[e+r-1]=arguments[r];return n(),this},`insertAt`),s.insertBefore=x(function(){for(var e=[...arguments],t=this.parentPath,n=e.length,r=[this.name],i=0;i<n;++i)r.push(e[i]);return t.insertAt.apply(t,r)},`insertBefore`),s.insertAfter=x(function(){for(var e=[...arguments],t=this.parentPath,n=e.length,r=[this.name+1],i=0;i<n;++i)r.push(e[i]);return t.insertAt.apply(t,r)},`insertAfter`);function f(e){if(!(e instanceof o))throw Error(``);var t=e.parentPath;if(!t)return e;var r=t.value,i=c(t);if(r[e.name]===e.value)i[e.name]=e;else if(n.check(r)){var a=r.indexOf(e.value);a>=0&&(i[e.name=a]=e)}else r[e.name]=e.value,i[e.name]=e;if(r[e.name]!==e.value||e.parentPath.get(e.name)!==e)throw Error(``);return e}return x(f,`repairRelationshipWithParent`),s.replace=x(function(e){var t=[],r=this.parentPath.value,i=c(this.parentPath),a=arguments.length;if(f(this),n.check(r)){for(var o=r.length,s=d(this.parentPath,a-1,this.name+1),l=[this.name,1],u=0;u<a;++u)l.push(arguments[u]);if(r.splice.apply(r,l)[0]!==this.value||r.length!==o-1+a)throw Error(``);if(s(),a===0)delete this.value,delete i[this.name],this.__childCache=null;else{if(r[this.name]!==e)throw Error(``);for(this.value!==e&&(this.value=e,this.__childCache=null),u=0;u<a;++u)t.push(this.parentPath.get(this.name+u));if(t[0]!==this)throw Error(``)}}else if(a===1)this.value!==e&&(this.__childCache=null),this.value=r[this.name]=e,t.push(this);else if(a===0)delete r[this.name],delete this.value,this.__childCache=null;else throw Error(`Could not replace path`);return t},`replace`),o}x(o,`pathPlugin`),e.default=o,(0,r.maybeSetModuleExports)(function(){return t})}}),Ht=E({"../../node_modules/.pnpm/ast-types@0.16.1/node_modules/ast-types/lib/scope.js"(e,t){Object.defineProperty(e,`__esModule`,{value:!0});var n=(G(),C(U)),r=K(),i=n.__importDefault(q()),a=Object.prototype.hasOwnProperty;function o(e){var t=e.use(i.default),n=t.Type,r=t.namedTypes,o=r.Node,s=r.Expression,c=t.builtInTypes.array,l=t.builders,u=x(function e(t,n){if(!(this instanceof e))throw Error(`Scope constructor cannot be invoked without 'new'`);f.check(t.value)||d.assert(t.value);var r;if(n){if(!(n instanceof e))throw Error(``);r=n.depth+1}else n=null,r=0;Object.defineProperties(this,{path:{value:t},node:{value:t.value},isGlobal:{value:!n,enumerable:!0},depth:{value:r},parent:{value:n},bindings:{value:{}},types:{value:{}}})},`Scope`),d=n.or(r.Program,r.Function,r.CatchClause),f=n.or(r.Function,r.ClassDeclaration,r.ClassExpression,r.InterfaceDeclaration,r.TSInterfaceDeclaration,r.TypeAlias,r.TSTypeAliasDeclaration),p=n.or(r.TypeParameter,r.TSTypeParameter);u.isEstablishedBy=function(e){return d.check(e)||f.check(e)};var m=u.prototype;m.didScan=!1,m.declares=function(e){return this.scan(),a.call(this.bindings,e)},m.declaresType=function(e){return this.scan(),a.call(this.types,e)},m.declareTemporary=function(e){if(e){if(!/^[a-z$_]/i.test(e))throw Error(``)}else e=`t$`;e+=this.depth.toString(36)+`$`,this.scan();for(var n=0;this.declares(e+n);)++n;var r=e+n;return this.bindings[r]=t.builders.identifier(r)},m.injectTemporary=function(e,t){e||=this.declareTemporary();var n=this.path.get(`body`);return r.BlockStatement.check(n.value)&&(n=n.get(`body`)),n.unshift(l.variableDeclaration(`var`,[l.variableDeclarator(e,t||null)])),e},m.scan=function(e){if(e||!this.didScan){for(var t in this.bindings)delete this.bindings[t];for(var t in this.types)delete this.types[t];h(this.path,this.bindings,this.types),this.didScan=!0}},m.getBindings=function(){return this.scan(),this.bindings},m.getTypes=function(){return this.scan(),this.types};function h(e,t,n){var i=e.value;if(f.check(i)){var a=e.get(`typeParameters`,`params`);c.check(a.value)&&a.each(function(e){S(e,n)})}d.check(i)&&(r.CatchClause.check(i)?y(e.get(`param`),t):g(e,t,n))}x(h,`scanScope`);function g(e,n,i){var a=e.value;e.parent&&r.FunctionExpression.check(e.parent.node)&&e.parent.node.id&&y(e.parent.get(`id`),n),a&&(c.check(a)?e.each(function(e){v(e,n,i)}):r.Function.check(a)?(e.get(`params`).each(function(e){y(e,n)}),v(e.get(`body`),n,i),g(e.get(`typeParameters`),n,i)):r.TypeAlias&&r.TypeAlias.check(a)||r.InterfaceDeclaration&&r.InterfaceDeclaration.check(a)||r.TSTypeAliasDeclaration&&r.TSTypeAliasDeclaration.check(a)||r.TSInterfaceDeclaration&&r.TSInterfaceDeclaration.check(a)?b(e.get(`id`),i):r.VariableDeclarator.check(a)?(y(e.get(`id`),n),v(e.get(`init`),n,i)):a.type===`ImportSpecifier`||a.type===`ImportNamespaceSpecifier`||a.type===`ImportDefaultSpecifier`?y(e.get(a.local?`local`:a.name?`name`:`id`),n):o.check(a)&&!s.check(a)&&t.eachField(a,function(t,r){var a=e.get(t);if(!_(a,r))throw Error(``);v(a,n,i)}))}x(g,`recursiveScanScope`);function _(e,t){return!!(e.value===t||Array.isArray(e.value)&&e.value.length===0&&Array.isArray(t)&&t.length===0)}x(_,`pathHasValue`);function v(e,t,n){var i=e.value;if(!(!i||s.check(i)))if(r.FunctionDeclaration.check(i)&&i.id!==null)y(e.get(`id`),t);else if(r.ClassDeclaration&&r.ClassDeclaration.check(i)&&i.id!==null)y(e.get(`id`),t),g(e.get(`typeParameters`),t,n);else if(r.InterfaceDeclaration&&r.InterfaceDeclaration.check(i)||r.TSInterfaceDeclaration&&r.TSInterfaceDeclaration.check(i))b(e.get(`id`),n);else if(d.check(i)){if(r.CatchClause.check(i)&&r.Identifier.check(i.param)){var o=i.param.name,c=a.call(t,o);g(e.get(`body`),t,n),c||delete t[o]}}else g(e,t,n)}x(v,`recursiveScanChild`);function y(e,t){var n=e.value;r.Pattern.assert(n),r.Identifier.check(n)?a.call(t,n.name)?t[n.name].push(e):t[n.name]=[e]:r.AssignmentPattern&&r.AssignmentPattern.check(n)?y(e.get(`left`),t):r.ObjectPattern&&r.ObjectPattern.check(n)?e.get(`properties`).each(function(e){var n=e.value;r.Pattern.check(n)?y(e,t):r.Property.check(n)||r.ObjectProperty&&r.ObjectProperty.check(n)?y(e.get(`value`),t):r.SpreadProperty&&r.SpreadProperty.check(n)&&y(e.get(`argument`),t)}):r.ArrayPattern&&r.ArrayPattern.check(n)?e.get(`elements`).each(function(e){var n=e.value;r.Pattern.check(n)?y(e,t):r.SpreadElement&&r.SpreadElement.check(n)&&y(e.get(`argument`),t)}):r.PropertyPattern&&r.PropertyPattern.check(n)?y(e.get(`pattern`),t):(r.SpreadElementPattern&&r.SpreadElementPattern.check(n)||r.RestElement&&r.RestElement.check(n)||r.SpreadPropertyPattern&&r.SpreadPropertyPattern.check(n))&&y(e.get(`argument`),t)}x(y,`addPattern`);function b(e,t){var n=e.value;r.Pattern.assert(n),r.Identifier.check(n)&&(a.call(t,n.name)?t[n.name].push(e):t[n.name]=[e])}x(b,`addTypePattern`);function S(e,t){var n=e.value;p.assert(n),a.call(t,n.name)?t[n.name].push(e):t[n.name]=[e]}return x(S,`addTypeParameter`),m.lookup=function(e){for(var t=this;t&&!t.declares(e);t=t.parent);return t},m.lookupType=function(e){for(var t=this;t&&!t.declaresType(e);t=t.parent);return t},m.getGlobalScope=function(){for(var e=this;!e.isGlobal;)e=e.parent;return e},u}x(o,`scopePlugin`),e.default=o,(0,r.maybeSetModuleExports)(function(){return t})}}),Ut=E({"../../node_modules/.pnpm/ast-types@0.16.1/node_modules/ast-types/lib/node-path.js"(e,t){Object.defineProperty(e,`__esModule`,{value:!0});var n=(G(),C(U)),r=n.__importDefault(q()),i=n.__importDefault(Vt()),a=n.__importDefault(Ht()),o=K();function s(e){var t=e.use(r.default),n=t.namedTypes,o=t.builders,s=t.builtInTypes.number,c=t.builtInTypes.array,l=e.use(i.default),u=e.use(a.default),d=x(function e(t,n,r){if(!(this instanceof e))throw Error(`NodePath constructor cannot be invoked without 'new'`);l.call(this,t,n,r)},`NodePath`),f=d.prototype=Object.create(l.prototype,{constructor:{value:d,enumerable:!1,writable:!0,configurable:!0}});Object.defineProperties(f,{node:{get:x(function(){return Object.defineProperty(this,`node`,{configurable:!0,value:this._computeNode()}),this.node},`get`)},parent:{get:x(function(){return Object.defineProperty(this,`parent`,{configurable:!0,value:this._computeParent()}),this.parent},`get`)},scope:{get:x(function(){return Object.defineProperty(this,`scope`,{configurable:!0,value:this._computeScope()}),this.scope},`get`)}}),f.replace=function(){return delete this.node,delete this.parent,delete this.scope,l.prototype.replace.apply(this,arguments)},f.prune=function(){var e=this.parent;return this.replace(),v(e)},f._computeNode=function(){var e=this.value;if(n.Node.check(e))return e;var t=this.parentPath;return t&&t.node||null},f._computeParent=function(){var e=this.value,t=this.parentPath;if(!n.Node.check(e)){for(;t&&!n.Node.check(t.value);)t=t.parentPath;t&&=t.parentPath}for(;t&&!n.Node.check(t.value);)t=t.parentPath;return t||null},f._computeScope=function(){var e=this.value,t=this.parentPath,r=t&&t.scope;return n.Node.check(e)&&u.isEstablishedBy(e)&&(r=new u(this,r)),r||null},f.getValueProperty=function(e){return t.getFieldValue(this.value,e)},f.needsParens=function(e){var t=this.parentPath;if(!t)return!1;var r=this.value;if(!n.Expression.check(r)||r.type===`Identifier`)return!1;for(;!n.Node.check(t.value);)if(t=t.parentPath,!t)return!1;var i=t.value;switch(r.type){case`UnaryExpression`:case`SpreadElement`:case`SpreadProperty`:return i.type===`MemberExpression`&&this.name===`object`&&i.object===r;case`BinaryExpression`:case`LogicalExpression`:switch(i.type){case`CallExpression`:return this.name===`callee`&&i.callee===r;case`UnaryExpression`:case`SpreadElement`:case`SpreadProperty`:return!0;case`MemberExpression`:return this.name===`object`&&i.object===r;case`BinaryExpression`:case`LogicalExpression`:var a=r,o=h[i.operator],c=h[a.operator];if(o>c)return!0;if(o===c&&this.name===`right`){if(i.right!==a)throw Error(`Nodes must be equal`);return!0}default:return!1}case`SequenceExpression`:switch(i.type){case`ForStatement`:return!1;case`ExpressionStatement`:return this.name!==`expression`;default:return!0}case`YieldExpression`:switch(i.type){case`BinaryExpression`:case`LogicalExpression`:case`UnaryExpression`:case`SpreadElement`:case`SpreadProperty`:case`CallExpression`:case`MemberExpression`:case`NewExpression`:case`ConditionalExpression`:case`YieldExpression`:return!0;default:return!1}case`Literal`:return i.type===`MemberExpression`&&s.check(r.value)&&this.name===`object`&&i.object===r;case`AssignmentExpression`:case`ConditionalExpression`:switch(i.type){case`UnaryExpression`:case`SpreadElement`:case`SpreadProperty`:case`BinaryExpression`:case`LogicalExpression`:return!0;case`CallExpression`:return this.name===`callee`&&i.callee===r;case`ConditionalExpression`:return this.name===`test`&&i.test===r;case`MemberExpression`:return this.name===`object`&&i.object===r;default:return!1}default:if(i.type===`NewExpression`&&this.name===`callee`&&i.callee===r)return g(r)}return!!(e!==!0&&!this.canBeFirstInStatement()&&this.firstInStatement())};function p(e){return n.BinaryExpression.check(e)||n.LogicalExpression.check(e)}x(p,`isBinary`);function m(e){return n.UnaryExpression.check(e)||n.SpreadElement&&n.SpreadElement.check(e)||n.SpreadProperty&&n.SpreadProperty.check(e)}x(m,`isUnaryLike`);var h={};[[`||`],[`&&`],[`|`],[`^`],[`&`],[`==`,`===`,`!=`,`!==`],[`<`,`>`,`<=`,`>=`,`in`,`instanceof`],[`>>`,`<<`,`>>>`],[`+`,`-`],[`*`,`/`,`%`]].forEach(function(e,t){e.forEach(function(e){h[e]=t})});function g(e){return n.CallExpression.check(e)?!0:c.check(e)?e.some(g):n.Node.check(e)?t.someField(e,function(e,t){return g(t)}):!1}x(g,`containsCallExpression`),f.canBeFirstInStatement=function(){var e=this.node;return!n.FunctionExpression.check(e)&&!n.ObjectExpression.check(e)},f.firstInStatement=function(){return _(this)};function _(e){for(var t,r;e.parent;e=e.parent){if(t=e.node,r=e.parent.node,n.BlockStatement.check(r)&&e.parent.name===`body`&&e.name===0){if(r.body[0]!==t)throw Error(`Nodes must be equal`);return!0}if(n.ExpressionStatement.check(r)&&e.name===`expression`){if(r.expression!==t)throw Error(`Nodes must be equal`);return!0}if(n.SequenceExpression.check(r)&&e.parent.name===`expressions`&&e.name===0){if(r.expressions[0]!==t)throw Error(`Nodes must be equal`);continue}if(n.CallExpression.check(r)&&e.name===`callee`){if(r.callee!==t)throw Error(`Nodes must be equal`);continue}if(n.MemberExpression.check(r)&&e.name===`object`){if(r.object!==t)throw Error(`Nodes must be equal`);continue}if(n.ConditionalExpression.check(r)&&e.name===`test`){if(r.test!==t)throw Error(`Nodes must be equal`);continue}if(p(r)&&e.name===`left`){if(r.left!==t)throw Error(`Nodes must be equal`);continue}if(n.UnaryExpression.check(r)&&!r.prefix&&e.name===`argument`){if(r.argument!==t)throw Error(`Nodes must be equal`);continue}return!1}return!0}x(_,`firstInStatement`);function v(e){if(n.VariableDeclaration.check(e.node)){var t=e.get(`declarations`).value;if(!t||t.length===0)return e.prune()}else if(n.ExpressionStatement.check(e.node)){if(!e.get(`expression`).value)return e.prune()}else n.IfStatement.check(e.node)&&y(e);return e}x(v,`cleanUpNodesAfterPrune`);function y(e){var t=e.get(`test`).value,r=e.get(`alternate`).value,i=e.get(`consequent`).value;if(!i&&!r){var a=o.expressionStatement(t);e.replace(a)}else if(!i&&r){var s=o.unaryExpression(`!`,t,!0);n.UnaryExpression.check(t)&&t.operator===`!`&&(s=t.argument),e.get(`test`).replace(s),e.get(`consequent`).replace(r),e.get(`alternate`).replace()}}return x(y,`cleanUpIfStatementAfterPrune`),d}x(s,`nodePathPlugin`),e.default=s,(0,o.maybeSetModuleExports)(function(){return t})}}),Wt=E({"../../node_modules/.pnpm/ast-types@0.16.1/node_modules/ast-types/lib/path-visitor.js"(e,t){Object.defineProperty(e,`__esModule`,{value:!0});var n=(G(),C(U)),r=n.__importDefault(q()),i=n.__importDefault(Ut()),a=K(),o=Object.prototype.hasOwnProperty;function s(e){var t=e.use(r.default),n=e.use(i.default),a=t.builtInTypes.array,s=t.builtInTypes.object,c=t.builtInTypes.function,l,u=x(function e(){if(!(this instanceof e))throw Error(`PathVisitor constructor cannot be invoked without 'new'`);this._reusableContextStack=[],this._methodNameTable=d(this),this._shouldVisitComments=o.call(this._methodNameTable,`Block`)||o.call(this._methodNameTable,`Line`),this.Context=h(this),this._visiting=!1,this._changeReported=!1},`PathVisitor`);function d(e){var n=Object.create(null);for(var r in e)/^visit[A-Z]/.test(r)&&(n[r.slice(5)]=!0);for(var i=t.computeSupertypeLookupTable(n),a=Object.create(null),o=Object.keys(i),s=o.length,l=0;l<s;++l){var u=o[l];r=`visit`+i[u],c.check(e[r])&&(a[u]=r)}return a}x(d,`computeMethodNameTable`),u.fromMethodsObject=x(function(e){if(e instanceof u)return e;if(!s.check(e))return new u;var t=x(function e(){if(!(this instanceof e))throw Error(`Visitor constructor cannot be invoked without 'new'`);u.call(this)},`Visitor`),n=t.prototype=Object.create(p);return n.constructor=t,f(n,e),f(t,u),c.assert(t.fromMethodsObject),c.assert(t.visit),new t},`fromMethodsObject`);function f(e,t){for(var n in t)o.call(t,n)&&(e[n]=t[n]);return e}x(f,`extend`),u.visit=x(function(e,t){return u.fromMethodsObject(t).visit(e)},`visit`);var p=u.prototype;p.visit=function(){if(this._visiting)throw Error(`Recursively calling visitor.visit(path) resets visitor state. Try this.visit(path) or this.traverse(path) instead.`);this._visiting=!0,this._changeReported=!1,this._abortRequested=!1;var e=[...arguments];e[0]instanceof n||(e[0]=new n({root:e[0]}).get(`root`)),this.reset.apply(this,e);var t;try{var r=this.visitWithoutReset(e[0]);t=!0}finally{if(this._visiting=!1,!t&&this._abortRequested)return e[0].value}return r},p.AbortRequest=x(function(){},`AbortRequest`),p.abort=function(){var e=this;e._abortRequested=!0;var t=new e.AbortRequest;throw t.cancel=function(){e._abortRequested=!1},t},p.reset=function(e){},p.visitWithoutReset=function(e){if(this instanceof this.Context)return this.visitor.visitWithoutReset(e);if(!(e instanceof n))throw Error(``);var t=e.value,r=t&&typeof t==`object`&&typeof t.type==`string`&&this._methodNameTable[t.type];if(r){var i=this.acquireContext(e);try{return i.invokeVisitorMethod(r)}finally{this.releaseContext(i)}}else return m(e,this)};function m(e,r){if(!(e instanceof n)||!(r instanceof u))throw Error(``);var i=e.value;if(a.check(i))e.each(r.visitWithoutReset,r);else if(s.check(i)){var c=t.getFieldNames(i);r._shouldVisitComments&&i.comments&&c.indexOf(`comments`)<0&&c.push(`comments`);for(var l=c.length,d=[],f=0;f<l;++f){var p=c[f];o.call(i,p)||(i[p]=t.getFieldValue(i,p)),d.push(e.get(p))}for(var f=0;f<l;++f)r.visitWithoutReset(d[f])}return e.value}x(m,`visitChildren`),p.acquireContext=function(e){return this._reusableContextStack.length===0?new this.Context(e):this._reusableContextStack.pop().reset(e)},p.releaseContext=function(e){if(!(e instanceof this.Context))throw Error(``);this._reusableContextStack.push(e),e.currentPath=null},p.reportChanged=function(){this._changeReported=!0},p.wasChangeReported=function(){return this._changeReported};function h(e){function t(r){if(!(this instanceof t)||!(this instanceof u)||!(r instanceof n))throw Error(``);Object.defineProperty(this,`visitor`,{value:e,writable:!1,enumerable:!0,configurable:!1}),this.currentPath=r,this.needToCallTraverse=!0,Object.seal(this)}if(x(t,`Context`),!(e instanceof u))throw Error(``);var r=t.prototype=Object.create(e);return r.constructor=t,f(r,g),t}x(h,`makeContextConstructor`);var g=Object.create(null);return g.reset=x(function(e){if(!(this instanceof this.Context)||!(e instanceof n))throw Error(``);return this.currentPath=e,this.needToCallTraverse=!0,this},`reset`),g.invokeVisitorMethod=x(function(e){if(!(this instanceof this.Context)||!(this.currentPath instanceof n))throw Error(``);var t=this.visitor[e].call(this,this.currentPath);if(t===!1?this.needToCallTraverse=!1:t!==l&&(this.currentPath=this.currentPath.replace(t)[0],this.needToCallTraverse&&this.traverse(this.currentPath)),this.needToCallTraverse!==!1)throw Error(`Must either call this.traverse or return false in `+e);var r=this.currentPath;return r&&r.value},`invokeVisitorMethod`),g.traverse=x(function(e,t){if(!(this instanceof this.Context)||!(e instanceof n)||!(this.currentPath instanceof n))throw Error(``);return this.needToCallTraverse=!1,m(e,u.fromMethodsObject(t||this.visitor))},`traverse`),g.visit=x(function(e,t){if(!(this instanceof this.Context)||!(e instanceof n)||!(this.currentPath instanceof n))throw Error(``);return this.needToCallTraverse=!1,u.fromMethodsObject(t||this.visitor).visitWithoutReset(e)},`visit`),g.reportChanged=x(function(){this.visitor.reportChanged()},`reportChanged`),g.abort=x(function(){this.needToCallTraverse=!1,this.visitor.abort()},`abort`),u}x(s,`pathVisitorPlugin`),e.default=s,(0,a.maybeSetModuleExports)(function(){return t})}}),Gt=E({"../../node_modules/.pnpm/ast-types@0.16.1/node_modules/ast-types/lib/equiv.js"(e,t){Object.defineProperty(e,`__esModule`,{value:!0});var n=(G(),C(U)),r=K(),i=n.__importDefault(q());function a(e){var t=e.use(i.default),n=t.getFieldNames,r=t.getFieldValue,a=t.builtInTypes.array,o=t.builtInTypes.object,s=t.builtInTypes.Date,c=t.builtInTypes.RegExp,l=Object.prototype.hasOwnProperty;function u(e,t,n){return a.check(n)?n.length=0:n=null,f(e,t,n)}x(u,`astNodesAreEquivalent`),u.assert=function(e,t){var n=[];if(!u(e,t,n))if(n.length===0){if(e!==t)throw Error(`Nodes must be equal`)}else throw Error(`Nodes differ in the following path: `+n.map(d).join(``))};function d(e){return/[_$a-z][_$a-z0-9]*/i.test(e)?`.`+e:`[`+JSON.stringify(e)+`]`}x(d,`subscriptForProperty`);function f(e,t,n){return e===t?!0:a.check(e)?p(e,t,n):o.check(e)?m(e,t,n):s.check(e)?s.check(t)&&+e==+t:c.check(e)?c.check(t)&&e.source===t.source&&e.global===t.global&&e.multiline===t.multiline&&e.ignoreCase===t.ignoreCase:e==t}x(f,`areEquivalent`);function p(e,t,n){a.assert(e);var r=e.length;if(!a.check(t)||t.length!==r)return n&&n.push(`length`),!1;for(var i=0;i<r;++i){if(n&&n.push(i),i in e!=i in t||!f(e[i],t[i],n))return!1;if(n){var o=n.pop();if(o!==i)throw Error(``+o)}}return!0}x(p,`arraysAreEquivalent`);function m(e,t,i){if(o.assert(e),!o.check(t))return!1;if(e.type!==t.type)return i&&i.push(`type`),!1;var a=n(e),s=a.length,c=n(t),u=c.length;if(s===u){for(var d=0;d<s;++d){var p=a[d],m=r(e,p),h=r(t,p);if(i&&i.push(p),!f(m,h,i))return!1;if(i){var g=i.pop();if(g!==p)throw Error(``+g)}}return!0}if(!i)return!1;var _=Object.create(null);for(d=0;d<s;++d)_[a[d]]=!0;for(d=0;d<u;++d){if(p=c[d],!l.call(_,p))return i.push(p),!1;delete _[p]}for(p in _){i.push(p);break}return!1}return x(m,`objectsAreEquivalent`),u}x(a,`default_1`),e.default=a,(0,r.maybeSetModuleExports)(function(){return t})}}),Kt=E({"../../node_modules/.pnpm/ast-types@0.16.1/node_modules/ast-types/lib/fork.js"(e,t){Object.defineProperty(e,`__esModule`,{value:!0});var n=(G(),C(U)),r=n.__importDefault(q()),i=n.__importDefault(Wt()),a=n.__importDefault(Gt()),o=n.__importDefault(Vt()),s=n.__importDefault(Ut()),c=K();function l(e){var t=u(),n=t.use(r.default);e.forEach(t.use),n.finalize();var c=t.use(i.default);return{Type:n.Type,builtInTypes:n.builtInTypes,namedTypes:n.namedTypes,builders:n.builders,defineMethod:n.defineMethod,getFieldNames:n.getFieldNames,getFieldValue:n.getFieldValue,eachField:n.eachField,someField:n.someField,getSupertypeNames:n.getSupertypeNames,getBuilderName:n.getBuilderName,astNodesAreEquivalent:t.use(a.default),finalize:n.finalize,Path:t.use(o.default),NodePath:t.use(s.default),PathVisitor:c,use:t.use,visit:c.visit}}x(l,`default_1`),e.default=l;function u(){var e=[],t=[];function n(n){var i=e.indexOf(n);return i===-1&&(i=e.length,e.push(n),t[i]=n(r)),t[i]}x(n,`use`);var r={use:n};return r}x(u,`createFork`),(0,c.maybeSetModuleExports)(function(){return t})}}),qt=E({"../../node_modules/.pnpm/ast-types@0.16.1/node_modules/ast-types/lib/def/operators/core.js"(e,t){Object.defineProperty(e,`__esModule`,{value:!0});var n=K();function r(){return{BinaryOperators:[`==`,`!=`,`===`,`!==`,`<`,`<=`,`>`,`>=`,`<<`,`>>`,`>>>`,`+`,`-`,`*`,`/`,`%`,`&`,`|`,`^`,`in`,`instanceof`],AssignmentOperators:[`=`,`+=`,`-=`,`*=`,`/=`,`%=`,`<<=`,`>>=`,`>>>=`,`|=`,`^=`,`&=`],LogicalOperators:[`||`,`&&`]}}x(r,`default_1`),e.default=r,(0,n.maybeSetModuleExports)(function(){return t})}}),Jt=E({"../../node_modules/.pnpm/ast-types@0.16.1/node_modules/ast-types/lib/def/operators/es2016.js"(e,t){Object.defineProperty(e,`__esModule`,{value:!0});var n=(G(),C(U)),r=K(),i=n.__importDefault(qt());function a(e){var t=e.use(i.default);return t.BinaryOperators.indexOf(`**`)<0&&t.BinaryOperators.push(`**`),t.AssignmentOperators.indexOf(`**=`)<0&&t.AssignmentOperators.push(`**=`),t}x(a,`default_1`),e.default=a,(0,r.maybeSetModuleExports)(function(){return t})}}),Yt=E({"../../node_modules/.pnpm/ast-types@0.16.1/node_modules/ast-types/lib/def/operators/es2020.js"(e,t){Object.defineProperty(e,`__esModule`,{value:!0});var n=(G(),C(U)),r=K(),i=n.__importDefault(Jt());function a(e){var t=e.use(i.default);return t.LogicalOperators.indexOf(`??`)<0&&t.LogicalOperators.push(`??`),t}x(a,`default_1`),e.default=a,(0,r.maybeSetModuleExports)(function(){return t})}}),Xt=E({"../../node_modules/.pnpm/ast-types@0.16.1/node_modules/ast-types/lib/def/operators/es2021.js"(e,t){Object.defineProperty(e,`__esModule`,{value:!0});var n=(G(),C(U)),r=K(),i=n.__importDefault(Yt());function a(e){var t=e.use(i.default);return t.LogicalOperators.forEach(function(e){var n=e+`=`;t.AssignmentOperators.indexOf(n)<0&&t.AssignmentOperators.push(n)}),t}x(a,`default_1`),e.default=a,(0,r.maybeSetModuleExports)(function(){return t})}}),Zt=E({"../../node_modules/.pnpm/ast-types@0.16.1/node_modules/ast-types/lib/def/core.js"(e,t){Object.defineProperty(e,`__esModule`,{value:!0});var n=(G(),C(U)),r=n.__importDefault(qt()),i=n.__importDefault(q()),a=n.__importStar(K());function o(e){var t=e.use(i.default).Type,n=t.def,o=t.or,s=e.use(a.default),c=s.defaults,l=s.geq,u=e.use(r.default),d=u.BinaryOperators,f=u.AssignmentOperators,p=u.LogicalOperators;n(`Printable`).field(`loc`,o(n(`SourceLocation`),null),c.null,!0),n(`Node`).bases(`Printable`).field(`type`,String).field(`comments`,o([n(`Comment`)],null),c.null,!0),n(`SourceLocation`).field(`start`,n(`Position`)).field(`end`,n(`Position`)).field(`source`,o(String,null),c.null),n(`Position`).field(`line`,l(1)).field(`column`,l(0)),n(`File`).bases(`Node`).build(`program`,`name`).field(`program`,n(`Program`)).field(`name`,o(String,null),c.null),n(`Program`).bases(`Node`).build(`body`).field(`body`,[n(`Statement`)]),n(`Function`).bases(`Node`).field(`id`,o(n(`Identifier`),null),c.null).field(`params`,[n(`Pattern`)]).field(`body`,n(`BlockStatement`)).field(`generator`,Boolean,c.false).field(`async`,Boolean,c.false),n(`Statement`).bases(`Node`),n(`EmptyStatement`).bases(`Statement`).build(),n(`BlockStatement`).bases(`Statement`).build(`body`).field(`body`,[n(`Statement`)]),n(`ExpressionStatement`).bases(`Statement`).build(`expression`).field(`expression`,n(`Expression`)),n(`IfStatement`).bases(`Statement`).build(`test`,`consequent`,`alternate`).field(`test`,n(`Expression`)).field(`consequent`,n(`Statement`)).field(`alternate`,o(n(`Statement`),null),c.null),n(`LabeledStatement`).bases(`Statement`).build(`label`,`body`).field(`label`,n(`Identifier`)).field(`body`,n(`Statement`)),n(`BreakStatement`).bases(`Statement`).build(`label`).field(`label`,o(n(`Identifier`),null),c.null),n(`ContinueStatement`).bases(`Statement`).build(`label`).field(`label`,o(n(`Identifier`),null),c.null),n(`WithStatement`).bases(`Statement`).build(`object`,`body`).field(`object`,n(`Expression`)).field(`body`,n(`Statement`)),n(`SwitchStatement`).bases(`Statement`).build(`discriminant`,`cases`,`lexical`).field(`discriminant`,n(`Expression`)).field(`cases`,[n(`SwitchCase`)]).field(`lexical`,Boolean,c.false),n(`ReturnStatement`).bases(`Statement`).build(`argument`).field(`argument`,o(n(`Expression`),null)),n(`ThrowStatement`).bases(`Statement`).build(`argument`).field(`argument`,n(`Expression`)),n(`TryStatement`).bases(`Statement`).build(`block`,`handler`,`finalizer`).field(`block`,n(`BlockStatement`)).field(`handler`,o(n(`CatchClause`),null),function(){return this.handlers&&this.handlers[0]||null}).field(`handlers`,[n(`CatchClause`)],function(){return this.handler?[this.handler]:[]},!0).field(`guardedHandlers`,[n(`CatchClause`)],c.emptyArray).field(`finalizer`,o(n(`BlockStatement`),null),c.null),n(`CatchClause`).bases(`Node`).build(`param`,`guard`,`body`).field(`param`,n(`Pattern`)).field(`guard`,o(n(`Expression`),null),c.null).field(`body`,n(`BlockStatement`)),n(`WhileStatement`).bases(`Statement`).build(`test`,`body`).field(`test`,n(`Expression`)).field(`body`,n(`Statement`)),n(`DoWhileStatement`).bases(`Statement`).build(`body`,`test`).field(`body`,n(`Statement`)).field(`test`,n(`Expression`)),n(`ForStatement`).bases(`Statement`).build(`init`,`test`,`update`,`body`).field(`init`,o(n(`VariableDeclaration`),n(`Expression`),null)).field(`test`,o(n(`Expression`),null)).field(`update`,o(n(`Expression`),null)).field(`body`,n(`Statement`)),n(`ForInStatement`).bases(`Statement`).build(`left`,`right`,`body`).field(`left`,o(n(`VariableDeclaration`),n(`Expression`))).field(`right`,n(`Expression`)).field(`body`,n(`Statement`)),n(`DebuggerStatement`).bases(`Statement`).build(),n(`Declaration`).bases(`Statement`),n(`FunctionDeclaration`).bases(`Function`,`Declaration`).build(`id`,`params`,`body`).field(`id`,n(`Identifier`)),n(`FunctionExpression`).bases(`Function`,`Expression`).build(`id`,`params`,`body`),n(`VariableDeclaration`).bases(`Declaration`).build(`kind`,`declarations`).field(`kind`,o(`var`,`let`,`const`)).field(`declarations`,[n(`VariableDeclarator`)]),n(`VariableDeclarator`).bases(`Node`).build(`id`,`init`).field(`id`,n(`Pattern`)).field(`init`,o(n(`Expression`),null),c.null),n(`Expression`).bases(`Node`),n(`ThisExpression`).bases(`Expression`).build(),n(`ArrayExpression`).bases(`Expression`).build(`elements`).field(`elements`,[o(n(`Expression`),null)]),n(`ObjectExpression`).bases(`Expression`).build(`properties`).field(`properties`,[n(`Property`)]),n(`Property`).bases(`Node`).build(`kind`,`key`,`value`).field(`kind`,o(`init`,`get`,`set`)).field(`key`,o(n(`Literal`),n(`Identifier`))).field(`value`,n(`Expression`)),n(`SequenceExpression`).bases(`Expression`).build(`expressions`).field(`expressions`,[n(`Expression`)]);var m=o(`-`,`+`,`!`,`~`,`typeof`,`void`,`delete`);n(`UnaryExpression`).bases(`Expression`).build(`operator`,`argument`,`prefix`).field(`operator`,m).field(`argument`,n(`Expression`)).field(`prefix`,Boolean,c.true);var h=o.apply(void 0,d);n(`BinaryExpression`).bases(`Expression`).build(`operator`,`left`,`right`).field(`operator`,h).field(`left`,n(`Expression`)).field(`right`,n(`Expression`));var g=o.apply(void 0,f);n(`AssignmentExpression`).bases(`Expression`).build(`operator`,`left`,`right`).field(`operator`,g).field(`left`,o(n(`Pattern`),n(`MemberExpression`))).field(`right`,n(`Expression`));var _=o(`++`,`--`);n(`UpdateExpression`).bases(`Expression`).build(`operator`,`argument`,`prefix`).field(`operator`,_).field(`argument`,n(`Expression`)).field(`prefix`,Boolean);var v=o.apply(void 0,p);n(`LogicalExpression`).bases(`Expression`).build(`operator`,`left`,`right`).field(`operator`,v).field(`left`,n(`Expression`)).field(`right`,n(`Expression`)),n(`ConditionalExpression`).bases(`Expression`).build(`test`,`consequent`,`alternate`).field(`test`,n(`Expression`)).field(`consequent`,n(`Expression`)).field(`alternate`,n(`Expression`)),n(`NewExpression`).bases(`Expression`).build(`callee`,`arguments`).field(`callee`,n(`Expression`)).field(`arguments`,[n(`Expression`)]),n(`CallExpression`).bases(`Expression`).build(`callee`,`arguments`).field(`callee`,n(`Expression`)).field(`arguments`,[n(`Expression`)]),n(`MemberExpression`).bases(`Expression`).build(`object`,`property`,`computed`).field(`object`,n(`Expression`)).field(`property`,o(n(`Identifier`),n(`Expression`))).field(`computed`,Boolean,function(){var e=this.property.type;return e===`Literal`||e===`MemberExpression`||e===`BinaryExpression`}),n(`Pattern`).bases(`Node`),n(`SwitchCase`).bases(`Node`).build(`test`,`consequent`).field(`test`,o(n(`Expression`),null)).field(`consequent`,[n(`Statement`)]),n(`Identifier`).bases(`Expression`,`Pattern`).build(`name`).field(`name`,String).field(`optional`,Boolean,c.false),n(`Literal`).bases(`Expression`).build(`value`).field(`value`,o(String,Boolean,null,Number,RegExp,BigInt)),n(`Comment`).bases(`Printable`).field(`value`,String).field(`leading`,Boolean,c.true).field(`trailing`,Boolean,c.false)}x(o,`default_1`),e.default=o,(0,a.maybeSetModuleExports)(function(){return t})}}),J=E({"../../node_modules/.pnpm/ast-types@0.16.1/node_modules/ast-types/lib/def/es6.js"(e,t){Object.defineProperty(e,`__esModule`,{value:!0});var n=(G(),C(U)),r=n.__importDefault(Zt()),i=n.__importDefault(q()),a=n.__importStar(K());function o(e){e.use(r.default);var t=e.use(i.default),n=t.Type.def,o=t.Type.or,s=e.use(a.default).defaults;n(`Function`).field(`generator`,Boolean,s.false).field(`expression`,Boolean,s.false).field(`defaults`,[o(n(`Expression`),null)],s.emptyArray).field(`rest`,o(n(`Identifier`),null),s.null),n(`RestElement`).bases(`Pattern`).build(`argument`).field(`argument`,n(`Pattern`)).field(`typeAnnotation`,o(n(`TypeAnnotation`),n(`TSTypeAnnotation`),null),s.null),n(`SpreadElementPattern`).bases(`Pattern`).build(`argument`).field(`argument`,n(`Pattern`)),n(`FunctionDeclaration`).build(`id`,`params`,`body`,`generator`,`expression`).field(`id`,o(n(`Identifier`),null)),n(`FunctionExpression`).build(`id`,`params`,`body`,`generator`,`expression`),n(`ArrowFunctionExpression`).bases(`Function`,`Expression`).build(`params`,`body`,`expression`).field(`id`,null,s.null).field(`body`,o(n(`BlockStatement`),n(`Expression`))).field(`generator`,!1,s.false),n(`ForOfStatement`).bases(`Statement`).build(`left`,`right`,`body`).field(`left`,o(n(`VariableDeclaration`),n(`Pattern`))).field(`right`,n(`Expression`)).field(`body`,n(`Statement`)),n(`YieldExpression`).bases(`Expression`).build(`argument`,`delegate`).field(`argument`,o(n(`Expression`),null)).field(`delegate`,Boolean,s.false),n(`GeneratorExpression`).bases(`Expression`).build(`body`,`blocks`,`filter`).field(`body`,n(`Expression`)).field(`blocks`,[n(`ComprehensionBlock`)]).field(`filter`,o(n(`Expression`),null)),n(`ComprehensionExpression`).bases(`Expression`).build(`body`,`blocks`,`filter`).field(`body`,n(`Expression`)).field(`blocks`,[n(`ComprehensionBlock`)]).field(`filter`,o(n(`Expression`),null)),n(`ComprehensionBlock`).bases(`Node`).build(`left`,`right`,`each`).field(`left`,n(`Pattern`)).field(`right`,n(`Expression`)).field(`each`,Boolean),n(`Property`).field(`key`,o(n(`Literal`),n(`Identifier`),n(`Expression`))).field(`value`,o(n(`Expression`),n(`Pattern`))).field(`method`,Boolean,s.false).field(`shorthand`,Boolean,s.false).field(`computed`,Boolean,s.false),n(`ObjectProperty`).field(`shorthand`,Boolean,s.false),n(`PropertyPattern`).bases(`Pattern`).build(`key`,`pattern`).field(`key`,o(n(`Literal`),n(`Identifier`),n(`Expression`))).field(`pattern`,n(`Pattern`)).field(`computed`,Boolean,s.false),n(`ObjectPattern`).bases(`Pattern`).build(`properties`).field(`properties`,[o(n(`PropertyPattern`),n(`Property`))]),n(`ArrayPattern`).bases(`Pattern`).build(`elements`).field(`elements`,[o(n(`Pattern`),null)]),n(`SpreadElement`).bases(`Node`).build(`argument`).field(`argument`,n(`Expression`)),n(`ArrayExpression`).field(`elements`,[o(n(`Expression`),n(`SpreadElement`),n(`RestElement`),null)]),n(`NewExpression`).field(`arguments`,[o(n(`Expression`),n(`SpreadElement`))]),n(`CallExpression`).field(`arguments`,[o(n(`Expression`),n(`SpreadElement`))]),n(`AssignmentPattern`).bases(`Pattern`).build(`left`,`right`).field(`left`,n(`Pattern`)).field(`right`,n(`Expression`)),n(`MethodDefinition`).bases(`Declaration`).build(`kind`,`key`,`value`,`static`).field(`kind`,o(`constructor`,`method`,`get`,`set`)).field(`key`,n(`Expression`)).field(`value`,n(`Function`)).field(`computed`,Boolean,s.false).field(`static`,Boolean,s.false);var c=o(n(`MethodDefinition`),n(`VariableDeclarator`),n(`ClassPropertyDefinition`),n(`ClassProperty`),n(`StaticBlock`));n(`ClassProperty`).bases(`Declaration`).build(`key`).field(`key`,o(n(`Literal`),n(`Identifier`),n(`Expression`))).field(`computed`,Boolean,s.false),n(`ClassPropertyDefinition`).bases(`Declaration`).build(`definition`).field(`definition`,c),n(`ClassBody`).bases(`Declaration`).build(`body`).field(`body`,[c]),n(`ClassDeclaration`).bases(`Declaration`).build(`id`,`body`,`superClass`).field(`id`,o(n(`Identifier`),null)).field(`body`,n(`ClassBody`)).field(`superClass`,o(n(`Expression`),null),s.null),n(`ClassExpression`).bases(`Expression`).build(`id`,`body`,`superClass`).field(`id`,o(n(`Identifier`),null),s.null).field(`body`,n(`ClassBody`)).field(`superClass`,o(n(`Expression`),null),s.null),n(`Super`).bases(`Expression`).build(),n(`Specifier`).bases(`Node`),n(`ModuleSpecifier`).bases(`Specifier`).field(`local`,o(n(`Identifier`),null),s.null).field(`id`,o(n(`Identifier`),null),s.null).field(`name`,o(n(`Identifier`),null),s.null),n(`ImportSpecifier`).bases(`ModuleSpecifier`).build(`imported`,`local`).field(`imported`,n(`Identifier`)),n(`ImportDefaultSpecifier`).bases(`ModuleSpecifier`).build(`local`),n(`ImportNamespaceSpecifier`).bases(`ModuleSpecifier`).build(`local`),n(`ImportDeclaration`).bases(`Declaration`).build(`specifiers`,`source`,`importKind`).field(`specifiers`,[o(n(`ImportSpecifier`),n(`ImportNamespaceSpecifier`),n(`ImportDefaultSpecifier`))],s.emptyArray).field(`source`,n(`Literal`)).field(`importKind`,o(`value`,`type`),function(){return`value`}),n(`ExportNamedDeclaration`).bases(`Declaration`).build(`declaration`,`specifiers`,`source`).field(`declaration`,o(n(`Declaration`),null)).field(`specifiers`,[n(`ExportSpecifier`)],s.emptyArray).field(`source`,o(n(`Literal`),null),s.null),n(`ExportSpecifier`).bases(`ModuleSpecifier`).build(`local`,`exported`).field(`exported`,n(`Identifier`)),n(`ExportDefaultDeclaration`).bases(`Declaration`).build(`declaration`).field(`declaration`,o(n(`Declaration`),n(`Expression`))),n(`ExportAllDeclaration`).bases(`Declaration`).build(`source`).field(`source`,n(`Literal`)),n(`TaggedTemplateExpression`).bases(`Expression`).build(`tag`,`quasi`).field(`tag`,n(`Expression`)).field(`quasi`,n(`TemplateLiteral`)),n(`TemplateLiteral`).bases(`Expression`).build(`quasis`,`expressions`).field(`quasis`,[n(`TemplateElement`)]).field(`expressions`,[n(`Expression`)]),n(`TemplateElement`).bases(`Node`).build(`value`,`tail`).field(`value`,{cooked:String,raw:String}).field(`tail`,Boolean),n(`MetaProperty`).bases(`Expression`).build(`meta`,`property`).field(`meta`,n(`Identifier`)).field(`property`,n(`Identifier`))}x(o,`default_1`),e.default=o,(0,a.maybeSetModuleExports)(function(){return t})}}),Qt=E({"../../node_modules/.pnpm/ast-types@0.16.1/node_modules/ast-types/lib/def/es2016.js"(e,t){Object.defineProperty(e,`__esModule`,{value:!0});var n=(G(),C(U)),r=n.__importDefault(Jt()),i=n.__importDefault(J()),a=K();function o(e){e.use(r.default),e.use(i.default)}x(o,`default_1`),e.default=o,(0,a.maybeSetModuleExports)(function(){return t})}}),$t=E({"../../node_modules/.pnpm/ast-types@0.16.1/node_modules/ast-types/lib/def/es2017.js"(e,t){Object.defineProperty(e,`__esModule`,{value:!0});var n=(G(),C(U)),r=n.__importDefault(Qt()),i=n.__importDefault(q()),a=n.__importStar(K());function o(e){e.use(r.default);var t=e.use(i.default).Type.def,n=e.use(a.default).defaults;t(`Function`).field(`async`,Boolean,n.false),t(`AwaitExpression`).bases(`Expression`).build(`argument`).field(`argument`,t(`Expression`))}x(o,`default_1`),e.default=o,(0,a.maybeSetModuleExports)(function(){return t})}}),en=E({"../../node_modules/.pnpm/ast-types@0.16.1/node_modules/ast-types/lib/def/es2018.js"(e,t){Object.defineProperty(e,`__esModule`,{value:!0});var n=(G(),C(U)),r=n.__importDefault($t()),i=n.__importDefault(q()),a=n.__importStar(K());function o(e){e.use(r.default);var t=e.use(i.default),n=t.Type.def,o=t.Type.or,s=e.use(a.default).defaults;n(`ForOfStatement`).field(`await`,Boolean,s.false),n(`SpreadProperty`).bases(`Node`).build(`argument`).field(`argument`,n(`Expression`)),n(`ObjectExpression`).field(`properties`,[o(n(`Property`),n(`SpreadProperty`),n(`SpreadElement`))]),n(`TemplateElement`).field(`value`,{cooked:o(String,null),raw:String}),n(`SpreadPropertyPattern`).bases(`Pattern`).build(`argument`).field(`argument`,n(`Pattern`)),n(`ObjectPattern`).field(`properties`,[o(n(`PropertyPattern`),n(`Property`),n(`RestElement`),n(`SpreadPropertyPattern`))])}x(o,`default_1`),e.default=o,(0,a.maybeSetModuleExports)(function(){return t})}}),tn=E({"../../node_modules/.pnpm/ast-types@0.16.1/node_modules/ast-types/lib/def/es2019.js"(e,t){Object.defineProperty(e,`__esModule`,{value:!0});var n=(G(),C(U)),r=n.__importDefault(en()),i=n.__importDefault(q()),a=n.__importStar(K());function o(e){e.use(r.default);var t=e.use(i.default),n=t.Type.def,o=t.Type.or,s=e.use(a.default).defaults;n(`CatchClause`).field(`param`,o(n(`Pattern`),null),s.null)}x(o,`default_1`),e.default=o,(0,a.maybeSetModuleExports)(function(){return t})}}),nn=E({"../../node_modules/.pnpm/ast-types@0.16.1/node_modules/ast-types/lib/def/es2020.js"(e,t){Object.defineProperty(e,`__esModule`,{value:!0});var n=(G(),C(U)),r=n.__importDefault(Yt()),i=n.__importDefault(tn()),a=n.__importDefault(q()),o=n.__importStar(K());function s(e){e.use(r.default),e.use(i.default);var t=e.use(a.default),n=t.Type.def,s=t.Type.or,c=e.use(o.default).defaults;n(`ImportExpression`).bases(`Expression`).build(`source`).field(`source`,n(`Expression`)),n(`ExportAllDeclaration`).bases(`Declaration`).build(`source`,`exported`).field(`source`,n(`Literal`)).field(`exported`,s(n(`Identifier`),null,void 0),c.null),n(`ChainElement`).bases(`Node`).field(`optional`,Boolean,c.false),n(`CallExpression`).bases(`Expression`,`ChainElement`),n(`MemberExpression`).bases(`Expression`,`ChainElement`),n(`ChainExpression`).bases(`Expression`).build(`expression`).field(`expression`,n(`ChainElement`)),n(`OptionalCallExpression`).bases(`CallExpression`).build(`callee`,`arguments`,`optional`).field(`optional`,Boolean,c.true),n(`OptionalMemberExpression`).bases(`MemberExpression`).build(`object`,`property`,`computed`,`optional`).field(`optional`,Boolean,c.true)}x(s,`default_1`),e.default=s,(0,o.maybeSetModuleExports)(function(){return t})}}),rn=E({"../../node_modules/.pnpm/ast-types@0.16.1/node_modules/ast-types/lib/def/es2021.js"(e,t){Object.defineProperty(e,`__esModule`,{value:!0});var n=(G(),C(U)),r=n.__importDefault(Xt()),i=n.__importDefault(nn()),a=K();function o(e){e.use(r.default),e.use(i.default)}x(o,`default_1`),e.default=o,(0,a.maybeSetModuleExports)(function(){return t})}}),an=E({"../../node_modules/.pnpm/ast-types@0.16.1/node_modules/ast-types/lib/def/es2022.js"(e,t){Object.defineProperty(e,`__esModule`,{value:!0});var n=(G(),C(U)),r=n.__importDefault(rn()),i=n.__importDefault(q()),a=K();function o(e){e.use(r.default);var t=e.use(i.default).Type.def;t(`StaticBlock`).bases(`Declaration`).build(`body`).field(`body`,[t(`Statement`)])}x(o,`default_1`),e.default=o,(0,a.maybeSetModuleExports)(function(){return t})}}),on=E({"../../node_modules/.pnpm/ast-types@0.16.1/node_modules/ast-types/lib/def/es-proposals.js"(e,t){Object.defineProperty(e,`__esModule`,{value:!0});var n=(G(),C(U)),r=n.__importDefault(q()),i=n.__importStar(K()),a=n.__importDefault(an());function o(e){e.use(a.default);var t=e.use(r.default),n=t.Type,o=t.Type.def,s=n.or,c=e.use(i.default).defaults;o(`AwaitExpression`).build(`argument`,`all`).field(`argument`,s(o(`Expression`),null)).field(`all`,Boolean,c.false),o(`Decorator`).bases(`Node`).build(`expression`).field(`expression`,o(`Expression`)),o(`Property`).field(`decorators`,s([o(`Decorator`)],null),c.null),o(`MethodDefinition`).field(`decorators`,s([o(`Decorator`)],null),c.null),o(`PrivateName`).bases(`Expression`,`Pattern`).build(`id`).field(`id`,o(`Identifier`)),o(`ClassPrivateProperty`).bases(`ClassProperty`).build(`key`,`value`).field(`key`,o(`PrivateName`)).field(`value`,s(o(`Expression`),null),c.null),o(`ImportAttribute`).bases(`Node`).build(`key`,`value`).field(`key`,s(o(`Identifier`),o(`Literal`))).field(`value`,o(`Expression`)),[`ImportDeclaration`,`ExportAllDeclaration`,`ExportNamedDeclaration`].forEach(function(e){o(e).field(`assertions`,[o(`ImportAttribute`)],c.emptyArray)}),o(`RecordExpression`).bases(`Expression`).build(`properties`).field(`properties`,[s(o(`ObjectProperty`),o(`ObjectMethod`),o(`SpreadElement`))]),o(`TupleExpression`).bases(`Expression`).build(`elements`).field(`elements`,[s(o(`Expression`),o(`SpreadElement`),null)]),o(`ModuleExpression`).bases(`Node`).build(`body`).field(`body`,o(`Program`))}x(o,`default_1`),e.default=o,(0,i.maybeSetModuleExports)(function(){return t})}}),sn=E({"../../node_modules/.pnpm/ast-types@0.16.1/node_modules/ast-types/lib/def/jsx.js"(e,t){Object.defineProperty(e,`__esModule`,{value:!0});var n=(G(),C(U)),r=n.__importDefault(on()),i=n.__importDefault(q()),a=n.__importStar(K());function o(e){e.use(r.default);var t=e.use(i.default),n=t.Type.def,o=t.Type.or,s=e.use(a.default).defaults;n(`JSXAttribute`).bases(`Node`).build(`name`,`value`).field(`name`,o(n(`JSXIdentifier`),n(`JSXNamespacedName`))).field(`value`,o(n(`Literal`),n(`JSXExpressionContainer`),n(`JSXElement`),n(`JSXFragment`),null),s.null),n(`JSXIdentifier`).bases(`Identifier`).build(`name`).field(`name`,String),n(`JSXNamespacedName`).bases(`Node`).build(`namespace`,`name`).field(`namespace`,n(`JSXIdentifier`)).field(`name`,n(`JSXIdentifier`)),n(`JSXMemberExpression`).bases(`MemberExpression`).build(`object`,`property`).field(`object`,o(n(`JSXIdentifier`),n(`JSXMemberExpression`))).field(`property`,n(`JSXIdentifier`)).field(`computed`,Boolean,s.false);var c=o(n(`JSXIdentifier`),n(`JSXNamespacedName`),n(`JSXMemberExpression`));n(`JSXSpreadAttribute`).bases(`Node`).build(`argument`).field(`argument`,n(`Expression`));var l=[o(n(`JSXAttribute`),n(`JSXSpreadAttribute`))];n(`JSXExpressionContainer`).bases(`Expression`).build(`expression`).field(`expression`,o(n(`Expression`),n(`JSXEmptyExpression`)));var u=[o(n(`JSXText`),n(`JSXExpressionContainer`),n(`JSXSpreadChild`),n(`JSXElement`),n(`JSXFragment`),n(`Literal`))];n(`JSXElement`).bases(`Expression`).build(`openingElement`,`closingElement`,`children`).field(`openingElement`,n(`JSXOpeningElement`)).field(`closingElement`,o(n(`JSXClosingElement`),null),s.null).field(`children`,u,s.emptyArray).field(`name`,c,function(){return this.openingElement.name},!0).field(`selfClosing`,Boolean,function(){return this.openingElement.selfClosing},!0).field(`attributes`,l,function(){return this.openingElement.attributes},!0),n(`JSXOpeningElement`).bases(`Node`).build(`name`,`attributes`,`selfClosing`).field(`name`,c).field(`attributes`,l,s.emptyArray).field(`selfClosing`,Boolean,s.false),n(`JSXClosingElement`).bases(`Node`).build(`name`).field(`name`,c),n(`JSXFragment`).bases(`Expression`).build(`openingFragment`,`closingFragment`,`children`).field(`openingFragment`,n(`JSXOpeningFragment`)).field(`closingFragment`,n(`JSXClosingFragment`)).field(`children`,u,s.emptyArray),n(`JSXOpeningFragment`).bases(`Node`).build(),n(`JSXClosingFragment`).bases(`Node`).build(),n(`JSXText`).bases(`Literal`).build(`value`,`raw`).field(`value`,String).field(`raw`,String,function(){return this.value}),n(`JSXEmptyExpression`).bases(`Node`).build(),n(`JSXSpreadChild`).bases(`Node`).build(`expression`).field(`expression`,n(`Expression`))}x(o,`default_1`),e.default=o,(0,a.maybeSetModuleExports)(function(){return t})}}),cn=E({"../../node_modules/.pnpm/ast-types@0.16.1/node_modules/ast-types/lib/def/type-annotations.js"(e,t){Object.defineProperty(e,`__esModule`,{value:!0});var n=(G(),C(U)),r=n.__importDefault(q()),i=n.__importStar(K());function a(e){var t=e.use(r.default),n=t.Type.def,a=t.Type.or,o=e.use(i.default).defaults,s=a(n(`TypeAnnotation`),n(`TSTypeAnnotation`),null),c=a(n(`TypeParameterDeclaration`),n(`TSTypeParameterDeclaration`),null);n(`Identifier`).field(`typeAnnotation`,s,o.null),n(`ObjectPattern`).field(`typeAnnotation`,s,o.null),n(`Function`).field(`returnType`,s,o.null).field(`typeParameters`,c,o.null),n(`ClassProperty`).build(`key`,`value`,`typeAnnotation`,`static`).field(`value`,a(n(`Expression`),null)).field(`static`,Boolean,o.false).field(`typeAnnotation`,s,o.null),[`ClassDeclaration`,`ClassExpression`].forEach(function(e){n(e).field(`typeParameters`,c,o.null).field(`superTypeParameters`,a(n(`TypeParameterInstantiation`),n(`TSTypeParameterInstantiation`),null),o.null).field(`implements`,a([n(`ClassImplements`)],[n(`TSExpressionWithTypeArguments`)]),o.emptyArray)})}x(a,`default_1`),e.default=a,(0,i.maybeSetModuleExports)(function(){return t})}}),ln=E({"../../node_modules/.pnpm/ast-types@0.16.1/node_modules/ast-types/lib/def/flow.js"(e,t){Object.defineProperty(e,`__esModule`,{value:!0});var n=(G(),C(U)),r=n.__importDefault(on()),i=n.__importDefault(cn()),a=n.__importDefault(q()),o=n.__importStar(K());function s(e){e.use(r.default),e.use(i.default);var t=e.use(a.default),n=t.Type.def,s=t.Type.or,c=e.use(o.default).defaults;n(`Flow`).bases(`Node`),n(`FlowType`).bases(`Flow`),n(`AnyTypeAnnotation`).bases(`FlowType`).build(),n(`EmptyTypeAnnotation`).bases(`FlowType`).build(),n(`MixedTypeAnnotation`).bases(`FlowType`).build(),n(`VoidTypeAnnotation`).bases(`FlowType`).build(),n(`SymbolTypeAnnotation`).bases(`FlowType`).build(),n(`NumberTypeAnnotation`).bases(`FlowType`).build(),n(`BigIntTypeAnnotation`).bases(`FlowType`).build(),n(`NumberLiteralTypeAnnotation`).bases(`FlowType`).build(`value`,`raw`).field(`value`,Number).field(`raw`,String),n(`NumericLiteralTypeAnnotation`).bases(`FlowType`).build(`value`,`raw`).field(`value`,Number).field(`raw`,String),n(`BigIntLiteralTypeAnnotation`).bases(`FlowType`).build(`value`,`raw`).field(`value`,null).field(`raw`,String),n(`StringTypeAnnotation`).bases(`FlowType`).build(),n(`StringLiteralTypeAnnotation`).bases(`FlowType`).build(`value`,`raw`).field(`value`,String).field(`raw`,String),n(`BooleanTypeAnnotation`).bases(`FlowType`).build(),n(`BooleanLiteralTypeAnnotation`).bases(`FlowType`).build(`value`,`raw`).field(`value`,Boolean).field(`raw`,String),n(`TypeAnnotation`).bases(`Node`).build(`typeAnnotation`).field(`typeAnnotation`,n(`FlowType`)),n(`NullableTypeAnnotation`).bases(`FlowType`).build(`typeAnnotation`).field(`typeAnnotation`,n(`FlowType`)),n(`NullLiteralTypeAnnotation`).bases(`FlowType`).build(),n(`NullTypeAnnotation`).bases(`FlowType`).build(),n(`ThisTypeAnnotation`).bases(`FlowType`).build(),n(`ExistsTypeAnnotation`).bases(`FlowType`).build(),n(`ExistentialTypeParam`).bases(`FlowType`).build(),n(`FunctionTypeAnnotation`).bases(`FlowType`).build(`params`,`returnType`,`rest`,`typeParameters`).field(`params`,[n(`FunctionTypeParam`)]).field(`returnType`,n(`FlowType`)).field(`rest`,s(n(`FunctionTypeParam`),null)).field(`typeParameters`,s(n(`TypeParameterDeclaration`),null)),n(`FunctionTypeParam`).bases(`Node`).build(`name`,`typeAnnotation`,`optional`).field(`name`,s(n(`Identifier`),null)).field(`typeAnnotation`,n(`FlowType`)).field(`optional`,Boolean),n(`ArrayTypeAnnotation`).bases(`FlowType`).build(`elementType`).field(`elementType`,n(`FlowType`)),n(`ObjectTypeAnnotation`).bases(`FlowType`).build(`properties`,`indexers`,`callProperties`).field(`properties`,[s(n(`ObjectTypeProperty`),n(`ObjectTypeSpreadProperty`))]).field(`indexers`,[n(`ObjectTypeIndexer`)],c.emptyArray).field(`callProperties`,[n(`ObjectTypeCallProperty`)],c.emptyArray).field(`inexact`,s(Boolean,void 0),c.undefined).field(`exact`,Boolean,c.false).field(`internalSlots`,[n(`ObjectTypeInternalSlot`)],c.emptyArray),n(`Variance`).bases(`Node`).build(`kind`).field(`kind`,s(`plus`,`minus`));var l=s(n(`Variance`),`plus`,`minus`,null);n(`ObjectTypeProperty`).bases(`Node`).build(`key`,`value`,`optional`).field(`key`,s(n(`Literal`),n(`Identifier`))).field(`value`,n(`FlowType`)).field(`optional`,Boolean).field(`variance`,l,c.null),n(`ObjectTypeIndexer`).bases(`Node`).build(`id`,`key`,`value`).field(`id`,n(`Identifier`)).field(`key`,n(`FlowType`)).field(`value`,n(`FlowType`)).field(`variance`,l,c.null).field(`static`,Boolean,c.false),n(`ObjectTypeCallProperty`).bases(`Node`).build(`value`).field(`value`,n(`FunctionTypeAnnotation`)).field(`static`,Boolean,c.false),n(`QualifiedTypeIdentifier`).bases(`Node`).build(`qualification`,`id`).field(`qualification`,s(n(`Identifier`),n(`QualifiedTypeIdentifier`))).field(`id`,n(`Identifier`)),n(`GenericTypeAnnotation`).bases(`FlowType`).build(`id`,`typeParameters`).field(`id`,s(n(`Identifier`),n(`QualifiedTypeIdentifier`))).field(`typeParameters`,s(n(`TypeParameterInstantiation`),null)),n(`MemberTypeAnnotation`).bases(`FlowType`).build(`object`,`property`).field(`object`,n(`Identifier`)).field(`property`,s(n(`MemberTypeAnnotation`),n(`GenericTypeAnnotation`))),n(`IndexedAccessType`).bases(`FlowType`).build(`objectType`,`indexType`).field(`objectType`,n(`FlowType`)).field(`indexType`,n(`FlowType`)),n(`OptionalIndexedAccessType`).bases(`FlowType`).build(`objectType`,`indexType`,`optional`).field(`objectType`,n(`FlowType`)).field(`indexType`,n(`FlowType`)).field(`optional`,Boolean),n(`UnionTypeAnnotation`).bases(`FlowType`).build(`types`).field(`types`,[n(`FlowType`)]),n(`IntersectionTypeAnnotation`).bases(`FlowType`).build(`types`).field(`types`,[n(`FlowType`)]),n(`TypeofTypeAnnotation`).bases(`FlowType`).build(`argument`).field(`argument`,n(`FlowType`)),n(`ObjectTypeSpreadProperty`).bases(`Node`).build(`argument`).field(`argument`,n(`FlowType`)),n(`ObjectTypeInternalSlot`).bases(`Node`).build(`id`,`value`,`optional`,`static`,`method`).field(`id`,n(`Identifier`)).field(`value`,n(`FlowType`)).field(`optional`,Boolean).field(`static`,Boolean).field(`method`,Boolean),n(`TypeParameterDeclaration`).bases(`Node`).build(`params`).field(`params`,[n(`TypeParameter`)]),n(`TypeParameterInstantiation`).bases(`Node`).build(`params`).field(`params`,[n(`FlowType`)]),n(`TypeParameter`).bases(`FlowType`).build(`name`,`variance`,`bound`,`default`).field(`name`,String).field(`variance`,l,c.null).field(`bound`,s(n(`TypeAnnotation`),null),c.null).field(`default`,s(n(`FlowType`),null),c.null),n(`ClassProperty`).field(`variance`,l,c.null),n(`ClassImplements`).bases(`Node`).build(`id`).field(`id`,n(`Identifier`)).field(`superClass`,s(n(`Expression`),null),c.null).field(`typeParameters`,s(n(`TypeParameterInstantiation`),null),c.null),n(`InterfaceTypeAnnotation`).bases(`FlowType`).build(`body`,`extends`).field(`body`,n(`ObjectTypeAnnotation`)).field(`extends`,s([n(`InterfaceExtends`)],null),c.null),n(`InterfaceDeclaration`).bases(`Declaration`).build(`id`,`body`,`extends`).field(`id`,n(`Identifier`)).field(`typeParameters`,s(n(`TypeParameterDeclaration`),null),c.null).field(`body`,n(`ObjectTypeAnnotation`)).field(`extends`,[n(`InterfaceExtends`)]),n(`DeclareInterface`).bases(`InterfaceDeclaration`).build(`id`,`body`,`extends`),n(`InterfaceExtends`).bases(`Node`).build(`id`).field(`id`,n(`Identifier`)).field(`typeParameters`,s(n(`TypeParameterInstantiation`),null),c.null),n(`TypeAlias`).bases(`Declaration`).build(`id`,`typeParameters`,`right`).field(`id`,n(`Identifier`)).field(`typeParameters`,s(n(`TypeParameterDeclaration`),null)).field(`right`,n(`FlowType`)),n(`DeclareTypeAlias`).bases(`TypeAlias`).build(`id`,`typeParameters`,`right`),n(`OpaqueType`).bases(`Declaration`).build(`id`,`typeParameters`,`impltype`,`supertype`).field(`id`,n(`Identifier`)).field(`typeParameters`,s(n(`TypeParameterDeclaration`),null)).field(`impltype`,n(`FlowType`)).field(`supertype`,s(n(`FlowType`),null)),n(`DeclareOpaqueType`).bases(`OpaqueType`).build(`id`,`typeParameters`,`supertype`).field(`impltype`,s(n(`FlowType`),null)),n(`TypeCastExpression`).bases(`Expression`).build(`expression`,`typeAnnotation`).field(`expression`,n(`Expression`)).field(`typeAnnotation`,n(`TypeAnnotation`)),n(`TupleTypeAnnotation`).bases(`FlowType`).build(`types`).field(`types`,[n(`FlowType`)]),n(`DeclareVariable`).bases(`Statement`).build(`id`).field(`id`,n(`Identifier`)),n(`DeclareFunction`).bases(`Statement`).build(`id`).field(`id`,n(`Identifier`)).field(`predicate`,s(n(`FlowPredicate`),null),c.null),n(`DeclareClass`).bases(`InterfaceDeclaration`).build(`id`),n(`DeclareModule`).bases(`Statement`).build(`id`,`body`).field(`id`,s(n(`Identifier`),n(`Literal`))).field(`body`,n(`BlockStatement`)),n(`DeclareModuleExports`).bases(`Statement`).build(`typeAnnotation`).field(`typeAnnotation`,n(`TypeAnnotation`)),n(`DeclareExportDeclaration`).bases(`Declaration`).build(`default`,`declaration`,`specifiers`,`source`).field(`default`,Boolean).field(`declaration`,s(n(`DeclareVariable`),n(`DeclareFunction`),n(`DeclareClass`),n(`FlowType`),n(`TypeAlias`),n(`DeclareOpaqueType`),n(`InterfaceDeclaration`),null)).field(`specifiers`,[s(n(`ExportSpecifier`),n(`ExportBatchSpecifier`))],c.emptyArray).field(`source`,s(n(`Literal`),null),c.null),n(`DeclareExportAllDeclaration`).bases(`Declaration`).build(`source`).field(`source`,s(n(`Literal`),null),c.null),n(`ImportDeclaration`).field(`importKind`,s(`value`,`type`,`typeof`),function(){return`value`}),n(`FlowPredicate`).bases(`Flow`),n(`InferredPredicate`).bases(`FlowPredicate`).build(),n(`DeclaredPredicate`).bases(`FlowPredicate`).build(`value`).field(`value`,n(`Expression`)),n(`Function`).field(`predicate`,s(n(`FlowPredicate`),null),c.null),n(`CallExpression`).field(`typeArguments`,s(null,n(`TypeParameterInstantiation`)),c.null),n(`NewExpression`).field(`typeArguments`,s(null,n(`TypeParameterInstantiation`)),c.null),n(`EnumDeclaration`).bases(`Declaration`).build(`id`,`body`).field(`id`,n(`Identifier`)).field(`body`,s(n(`EnumBooleanBody`),n(`EnumNumberBody`),n(`EnumStringBody`),n(`EnumSymbolBody`))),n(`EnumBooleanBody`).build(`members`,`explicitType`).field(`members`,[n(`EnumBooleanMember`)]).field(`explicitType`,Boolean),n(`EnumNumberBody`).build(`members`,`explicitType`).field(`members`,[n(`EnumNumberMember`)]).field(`explicitType`,Boolean),n(`EnumStringBody`).build(`members`,`explicitType`).field(`members`,s([n(`EnumStringMember`)],[n(`EnumDefaultedMember`)])).field(`explicitType`,Boolean),n(`EnumSymbolBody`).build(`members`).field(`members`,[n(`EnumDefaultedMember`)]),n(`EnumBooleanMember`).build(`id`,`init`).field(`id`,n(`Identifier`)).field(`init`,s(n(`Literal`),Boolean)),n(`EnumNumberMember`).build(`id`,`init`).field(`id`,n(`Identifier`)).field(`init`,n(`Literal`)),n(`EnumStringMember`).build(`id`,`init`).field(`id`,n(`Identifier`)).field(`init`,n(`Literal`)),n(`EnumDefaultedMember`).build(`id`).field(`id`,n(`Identifier`))}x(s,`default_1`),e.default=s,(0,o.maybeSetModuleExports)(function(){return t})}}),un=E({"../../node_modules/.pnpm/ast-types@0.16.1/node_modules/ast-types/lib/def/esprima.js"(e,t){Object.defineProperty(e,`__esModule`,{value:!0});var n=(G(),C(U)),r=n.__importDefault(on()),i=n.__importDefault(q()),a=n.__importStar(K());function o(e){e.use(r.default);var t=e.use(i.default),n=e.use(a.default).defaults,o=t.Type.def,s=t.Type.or;o(`VariableDeclaration`).field(`declarations`,[s(o(`VariableDeclarator`),o(`Identifier`))]),o(`Property`).field(`value`,s(o(`Expression`),o(`Pattern`))),o(`ArrayPattern`).field(`elements`,[s(o(`Pattern`),o(`SpreadElement`),null)]),o(`ObjectPattern`).field(`properties`,[s(o(`Property`),o(`PropertyPattern`),o(`SpreadPropertyPattern`),o(`SpreadProperty`))]),o(`ExportSpecifier`).bases(`ModuleSpecifier`).build(`id`,`name`),o(`ExportBatchSpecifier`).bases(`Specifier`).build(),o(`ExportDeclaration`).bases(`Declaration`).build(`default`,`declaration`,`specifiers`,`source`).field(`default`,Boolean).field(`declaration`,s(o(`Declaration`),o(`Expression`),null)).field(`specifiers`,[s(o(`ExportSpecifier`),o(`ExportBatchSpecifier`))],n.emptyArray).field(`source`,s(o(`Literal`),null),n.null),o(`Block`).bases(`Comment`).build(`value`,`leading`,`trailing`),o(`Line`).bases(`Comment`).build(`value`,`leading`,`trailing`)}x(o,`default_1`),e.default=o,(0,a.maybeSetModuleExports)(function(){return t})}}),dn=E({"../../node_modules/.pnpm/ast-types@0.16.1/node_modules/ast-types/lib/def/babel-core.js"(e,t){Object.defineProperty(e,`__esModule`,{value:!0});var n=(G(),C(U)),r=n.__importDefault(on()),i=n.__importDefault(q()),a=n.__importStar(K());function o(e){var t,n,o,s,c;e.use(r.default);var l=e.use(i.default),u=e.use(a.default).defaults,d=l.Type.def,f=l.Type.or,p=l.builtInTypes.undefined;d(`Noop`).bases(`Statement`).build(),d(`DoExpression`).bases(`Expression`).build(`body`).field(`body`,[d(`Statement`)]),d(`BindExpression`).bases(`Expression`).build(`object`,`callee`).field(`object`,f(d(`Expression`),null)).field(`callee`,d(`Expression`)),d(`ParenthesizedExpression`).bases(`Expression`).build(`expression`).field(`expression`,d(`Expression`)),d(`ExportNamespaceSpecifier`).bases(`Specifier`).build(`exported`).field(`exported`,d(`Identifier`)),d(`ExportDefaultSpecifier`).bases(`Specifier`).build(`exported`).field(`exported`,d(`Identifier`)),d(`CommentBlock`).bases(`Comment`).build(`value`,`leading`,`trailing`),d(`CommentLine`).bases(`Comment`).build(`value`,`leading`,`trailing`),d(`Directive`).bases(`Node`).build(`value`).field(`value`,d(`DirectiveLiteral`)),d(`DirectiveLiteral`).bases(`Node`,`Expression`).build(`value`).field(`value`,String,u[`use strict`]),d(`InterpreterDirective`).bases(`Node`).build(`value`).field(`value`,String),d(`BlockStatement`).bases(`Statement`).build(`body`).field(`body`,[d(`Statement`)]).field(`directives`,[d(`Directive`)],u.emptyArray),d(`Program`).bases(`Node`).build(`body`).field(`body`,[d(`Statement`)]).field(`directives`,[d(`Directive`)],u.emptyArray).field(`interpreter`,f(d(`InterpreterDirective`),null),u.null);function m(e,t){return e===void 0&&(e=String),[`extra`,{rawValue:e,raw:String},x(function(){var e=l.getFieldValue(this,`value`);return{rawValue:e,raw:t?t(e):String(e)}},`getDefault`)]}x(m,`makeLiteralExtra`),(t=d(`StringLiteral`).bases(`Literal`).build(`value`).field(`value`,String)).field.apply(t,m(String,function(e){return JSON.stringify(e)})),(n=d(`NumericLiteral`).bases(`Literal`).build(`value`).field(`value`,Number).field(`raw`,f(String,null),u.null)).field.apply(n,m(Number)),(o=d(`BigIntLiteral`).bases(`Literal`).build(`value`).field(`value`,f(String,Number))).field.apply(o,m(String,function(e){return e+`n`})),(s=d(`DecimalLiteral`).bases(`Literal`).build(`value`).field(`value`,String)).field.apply(s,m(String,function(e){return e+`m`})),d(`NullLiteral`).bases(`Literal`).build().field(`value`,null,u.null),d(`BooleanLiteral`).bases(`Literal`).build(`value`).field(`value`,Boolean),(c=d(`RegExpLiteral`).bases(`Literal`).build(`pattern`,`flags`).field(`pattern`,String).field(`flags`,String).field(`value`,RegExp,function(){return new RegExp(this.pattern,this.flags)})).field.apply(c,m(f(RegExp,p),function(e){return`/${e.pattern}/${e.flags||``}`})).field(`regex`,{pattern:String,flags:String},function(){return{pattern:this.pattern,flags:this.flags}});var h=f(d(`Property`),d(`ObjectMethod`),d(`ObjectProperty`),d(`SpreadProperty`),d(`SpreadElement`));d(`ObjectExpression`).bases(`Expression`).build(`properties`).field(`properties`,[h]),d(`ObjectMethod`).bases(`Node`,`Function`).build(`kind`,`key`,`params`,`body`,`computed`).field(`kind`,f(`method`,`get`,`set`)).field(`key`,f(d(`Literal`),d(`Identifier`),d(`Expression`))).field(`params`,[d(`Pattern`)]).field(`body`,d(`BlockStatement`)).field(`computed`,Boolean,u.false).field(`generator`,Boolean,u.false).field(`async`,Boolean,u.false).field(`accessibility`,f(d(`Literal`),null),u.null).field(`decorators`,f([d(`Decorator`)],null),u.null),d(`ObjectProperty`).bases(`Node`).build(`key`,`value`).field(`key`,f(d(`Literal`),d(`Identifier`),d(`Expression`))).field(`value`,f(d(`Expression`),d(`Pattern`))).field(`accessibility`,f(d(`Literal`),null),u.null).field(`computed`,Boolean,u.false);var g=f(d(`MethodDefinition`),d(`VariableDeclarator`),d(`ClassPropertyDefinition`),d(`ClassProperty`),d(`ClassPrivateProperty`),d(`ClassMethod`),d(`ClassPrivateMethod`),d(`ClassAccessorProperty`),d(`StaticBlock`));d(`ClassBody`).bases(`Declaration`).build(`body`).field(`body`,[g]),d(`ClassMethod`).bases(`Declaration`,`Function`).build(`kind`,`key`,`params`,`body`,`computed`,`static`).field(`key`,f(d(`Literal`),d(`Identifier`),d(`Expression`))),d(`ClassPrivateMethod`).bases(`Declaration`,`Function`).build(`key`,`params`,`body`,`kind`,`computed`,`static`).field(`key`,d(`PrivateName`)),d(`ClassAccessorProperty`).bases(`Declaration`).build(`key`,`value`,`decorators`,`computed`,`static`).field(`key`,f(d(`Literal`),d(`Identifier`),d(`PrivateName`),d(`Expression`))).field(`value`,f(d(`Expression`),null),u.null),[`ClassMethod`,`ClassPrivateMethod`].forEach(function(e){d(e).field(`kind`,f(`get`,`set`,`method`,`constructor`),function(){return`method`}).field(`body`,d(`BlockStatement`)).field(`access`,f(`public`,`private`,`protected`,null),u.null)}),[`ClassMethod`,`ClassPrivateMethod`,`ClassAccessorProperty`].forEach(function(e){d(e).field(`computed`,Boolean,u.false).field(`static`,Boolean,u.false).field(`abstract`,Boolean,u.false).field(`accessibility`,f(`public`,`private`,`protected`,null),u.null).field(`decorators`,f([d(`Decorator`)],null),u.null).field(`definite`,Boolean,u.false).field(`optional`,Boolean,u.false).field(`override`,Boolean,u.false).field(`readonly`,Boolean,u.false)});var _=f(d(`Property`),d(`PropertyPattern`),d(`SpreadPropertyPattern`),d(`SpreadProperty`),d(`ObjectProperty`),d(`RestProperty`),d(`RestElement`));d(`ObjectPattern`).bases(`Pattern`).build(`properties`).field(`properties`,[_]).field(`decorators`,f([d(`Decorator`)],null),u.null),d(`SpreadProperty`).bases(`Node`).build(`argument`).field(`argument`,d(`Expression`)),d(`RestProperty`).bases(`Node`).build(`argument`).field(`argument`,d(`Expression`)),d(`ForAwaitStatement`).bases(`Statement`).build(`left`,`right`,`body`).field(`left`,f(d(`VariableDeclaration`),d(`Expression`))).field(`right`,d(`Expression`)).field(`body`,d(`Statement`)),d(`Import`).bases(`Expression`).build()}x(o,`default_1`),e.default=o,(0,a.maybeSetModuleExports)(function(){return t})}}),fn=E({"../../node_modules/.pnpm/ast-types@0.16.1/node_modules/ast-types/lib/def/babel.js"(e,t){Object.defineProperty(e,`__esModule`,{value:!0});var n=(G(),C(U)),r=n.__importDefault(q()),i=n.__importDefault(dn()),a=n.__importDefault(ln()),o=K();function s(e){var t=e.use(r.default).Type.def;e.use(i.default),e.use(a.default),t(`V8IntrinsicIdentifier`).bases(`Expression`).build(`name`).field(`name`,String),t(`TopicReference`).bases(`Expression`).build()}x(s,`default_1`),e.default=s,(0,o.maybeSetModuleExports)(function(){return t})}}),pn=E({"../../node_modules/.pnpm/ast-types@0.16.1/node_modules/ast-types/lib/def/typescript.js"(e,t){Object.defineProperty(e,`__esModule`,{value:!0});var n=(G(),C(U)),r=n.__importDefault(dn()),i=n.__importDefault(cn()),a=n.__importDefault(q()),o=n.__importStar(K());function s(e){e.use(r.default),e.use(i.default);var t=e.use(a.default),n=t.namedTypes,s=t.Type.def,c=t.Type.or,l=e.use(o.default).defaults,u=t.Type.from(function(e,t){return!!(n.StringLiteral&&n.StringLiteral.check(e,t)||n.Literal&&n.Literal.check(e,t)&&typeof e.value==`string`)},`StringLiteral`);s(`TSType`).bases(`Node`);var d=c(s(`Identifier`),s(`TSQualifiedName`));s(`TSTypeReference`).bases(`TSType`,`TSHasOptionalTypeParameterInstantiation`).build(`typeName`,`typeParameters`).field(`typeName`,d),s(`TSHasOptionalTypeParameterInstantiation`).field(`typeParameters`,c(s(`TSTypeParameterInstantiation`),null),l.null),s(`TSHasOptionalTypeParameters`).field(`typeParameters`,c(s(`TSTypeParameterDeclaration`),null,void 0),l.null),s(`TSHasOptionalTypeAnnotation`).field(`typeAnnotation`,c(s(`TSTypeAnnotation`),null),l.null),s(`TSQualifiedName`).bases(`Node`).build(`left`,`right`).field(`left`,d).field(`right`,d),s(`TSAsExpression`).bases(`Expression`,`Pattern`).build(`expression`,`typeAnnotation`).field(`expression`,s(`Expression`)).field(`typeAnnotation`,s(`TSType`)).field(`extra`,c({parenthesized:Boolean},null),l.null),s(`TSTypeCastExpression`).bases(`Expression`).build(`expression`,`typeAnnotation`).field(`expression`,s(`Expression`)).field(`typeAnnotation`,s(`TSType`)),s(`TSSatisfiesExpression`).bases(`Expression`,`Pattern`).build(`expression`,`typeAnnotation`).field(`expression`,s(`Expression`)).field(`typeAnnotation`,s(`TSType`)),s(`TSNonNullExpression`).bases(`Expression`,`Pattern`).build(`expression`).field(`expression`,s(`Expression`)),[`TSAnyKeyword`,`TSBigIntKeyword`,`TSBooleanKeyword`,`TSNeverKeyword`,`TSNullKeyword`,`TSNumberKeyword`,`TSObjectKeyword`,`TSStringKeyword`,`TSSymbolKeyword`,`TSUndefinedKeyword`,`TSUnknownKeyword`,`TSVoidKeyword`,`TSIntrinsicKeyword`,`TSThisType`].forEach(function(e){s(e).bases(`TSType`).build()}),s(`TSArrayType`).bases(`TSType`).build(`elementType`).field(`elementType`,s(`TSType`)),s(`TSLiteralType`).bases(`TSType`).build(`literal`).field(`literal`,c(s(`NumericLiteral`),s(`StringLiteral`),s(`BooleanLiteral`),s(`TemplateLiteral`),s(`UnaryExpression`),s(`BigIntLiteral`))),s(`TemplateLiteral`).field(`expressions`,c([s(`Expression`)],[s(`TSType`)])),[`TSUnionType`,`TSIntersectionType`].forEach(function(e){s(e).bases(`TSType`).build(`types`).field(`types`,[s(`TSType`)])}),s(`TSConditionalType`).bases(`TSType`).build(`checkType`,`extendsType`,`trueType`,`falseType`).field(`checkType`,s(`TSType`)).field(`extendsType`,s(`TSType`)).field(`trueType`,s(`TSType`)).field(`falseType`,s(`TSType`)),s(`TSInferType`).bases(`TSType`).build(`typeParameter`).field(`typeParameter`,s(`TSTypeParameter`)),s(`TSParenthesizedType`).bases(`TSType`).build(`typeAnnotation`).field(`typeAnnotation`,s(`TSType`));var f=[c(s(`Identifier`),s(`RestElement`),s(`ArrayPattern`),s(`ObjectPattern`))];[`TSFunctionType`,`TSConstructorType`].forEach(function(e){s(e).bases(`TSType`,`TSHasOptionalTypeParameters`,`TSHasOptionalTypeAnnotation`).build(`parameters`).field(`parameters`,f)}),s(`TSDeclareFunction`).bases(`Declaration`,`TSHasOptionalTypeParameters`).build(`id`,`params`,`returnType`).field(`declare`,Boolean,l.false).field(`async`,Boolean,l.false).field(`generator`,Boolean,l.false).field(`id`,c(s(`Identifier`),null),l.null).field(`params`,[s(`Pattern`)]).field(`returnType`,c(s(`TSTypeAnnotation`),s(`Noop`),null),l.null),s(`TSDeclareMethod`).bases(`Declaration`,`TSHasOptionalTypeParameters`).build(`key`,`params`,`returnType`).field(`async`,Boolean,l.false).field(`generator`,Boolean,l.false).field(`params`,[s(`Pattern`)]).field(`abstract`,Boolean,l.false).field(`accessibility`,c(`public`,`private`,`protected`,void 0),l.undefined).field(`static`,Boolean,l.false).field(`computed`,Boolean,l.false).field(`optional`,Boolean,l.false).field(`key`,c(s(`Identifier`),s(`StringLiteral`),s(`NumericLiteral`),s(`Expression`))).field(`kind`,c(`get`,`set`,`method`,`constructor`),x(function(){return`method`},`getDefault`)).field(`access`,c(`public`,`private`,`protected`,void 0),l.undefined).field(`decorators`,c([s(`Decorator`)],null),l.null).field(`returnType`,c(s(`TSTypeAnnotation`),s(`Noop`),null),l.null),s(`TSMappedType`).bases(`TSType`).build(`typeParameter`,`typeAnnotation`).field(`readonly`,c(Boolean,`+`,`-`),l.false).field(`typeParameter`,s(`TSTypeParameter`)).field(`optional`,c(Boolean,`+`,`-`),l.false).field(`typeAnnotation`,c(s(`TSType`),null),l.null),s(`TSTupleType`).bases(`TSType`).build(`elementTypes`).field(`elementTypes`,[c(s(`TSType`),s(`TSNamedTupleMember`))]),s(`TSNamedTupleMember`).bases(`TSType`).build(`label`,`elementType`,`optional`).field(`label`,s(`Identifier`)).field(`optional`,Boolean,l.false).field(`elementType`,s(`TSType`)),s(`TSRestType`).bases(`TSType`).build(`typeAnnotation`).field(`typeAnnotation`,s(`TSType`)),s(`TSOptionalType`).bases(`TSType`).build(`typeAnnotation`).field(`typeAnnotation`,s(`TSType`)),s(`TSIndexedAccessType`).bases(`TSType`).build(`objectType`,`indexType`).field(`objectType`,s(`TSType`)).field(`indexType`,s(`TSType`)),s(`TSTypeOperator`).bases(`TSType`).build(`operator`).field(`operator`,String).field(`typeAnnotation`,s(`TSType`)),s(`TSTypeAnnotation`).bases(`Node`).build(`typeAnnotation`).field(`typeAnnotation`,c(s(`TSType`),s(`TSTypeAnnotation`))),s(`TSIndexSignature`).bases(`Declaration`,`TSHasOptionalTypeAnnotation`).build(`parameters`,`typeAnnotation`).field(`parameters`,[s(`Identifier`)]).field(`readonly`,Boolean,l.false),s(`TSPropertySignature`).bases(`Declaration`,`TSHasOptionalTypeAnnotation`).build(`key`,`typeAnnotation`,`optional`).field(`key`,s(`Expression`)).field(`computed`,Boolean,l.false).field(`readonly`,Boolean,l.false).field(`optional`,Boolean,l.false).field(`initializer`,c(s(`Expression`),null),l.null),s(`TSMethodSignature`).bases(`Declaration`,`TSHasOptionalTypeParameters`,`TSHasOptionalTypeAnnotation`).build(`key`,`parameters`,`typeAnnotation`).field(`key`,s(`Expression`)).field(`computed`,Boolean,l.false).field(`optional`,Boolean,l.false).field(`parameters`,f),s(`TSTypePredicate`).bases(`TSTypeAnnotation`,`TSType`).build(`parameterName`,`typeAnnotation`,`asserts`).field(`parameterName`,c(s(`Identifier`),s(`TSThisType`))).field(`typeAnnotation`,c(s(`TSTypeAnnotation`),null),l.null).field(`asserts`,Boolean,l.false),[`TSCallSignatureDeclaration`,`TSConstructSignatureDeclaration`].forEach(function(e){s(e).bases(`Declaration`,`TSHasOptionalTypeParameters`,`TSHasOptionalTypeAnnotation`).build(`parameters`,`typeAnnotation`).field(`parameters`,f)}),s(`TSEnumMember`).bases(`Node`).build(`id`,`initializer`).field(`id`,c(s(`Identifier`),u)).field(`initializer`,c(s(`Expression`),null),l.null),s(`TSTypeQuery`).bases(`TSType`).build(`exprName`).field(`exprName`,c(d,s(`TSImportType`)));var p=c(s(`TSCallSignatureDeclaration`),s(`TSConstructSignatureDeclaration`),s(`TSIndexSignature`),s(`TSMethodSignature`),s(`TSPropertySignature`));s(`TSTypeLiteral`).bases(`TSType`).build(`members`).field(`members`,[p]),s(`TSTypeParameter`).bases(`Identifier`).build(`name`,`constraint`,`default`).field(`name`,c(s(`Identifier`),String)).field(`constraint`,c(s(`TSType`),void 0),l.undefined).field(`default`,c(s(`TSType`),void 0),l.undefined),s(`TSTypeAssertion`).bases(`Expression`,`Pattern`).build(`typeAnnotation`,`expression`).field(`typeAnnotation`,s(`TSType`)).field(`expression`,s(`Expression`)).field(`extra`,c({parenthesized:Boolean},null),l.null),s(`TSTypeParameterDeclaration`).bases(`Declaration`).build(`params`).field(`params`,[s(`TSTypeParameter`)]),s(`TSInstantiationExpression`).bases(`Expression`,`TSHasOptionalTypeParameterInstantiation`).build(`expression`,`typeParameters`).field(`expression`,s(`Expression`)),s(`TSTypeParameterInstantiation`).bases(`Node`).build(`params`).field(`params`,[s(`TSType`)]),s(`TSEnumDeclaration`).bases(`Declaration`).build(`id`,`members`).field(`id`,s(`Identifier`)).field(`const`,Boolean,l.false).field(`declare`,Boolean,l.false).field(`members`,[s(`TSEnumMember`)]).field(`initializer`,c(s(`Expression`),null),l.null),s(`TSTypeAliasDeclaration`).bases(`Declaration`,`TSHasOptionalTypeParameters`).build(`id`,`typeAnnotation`).field(`id`,s(`Identifier`)).field(`declare`,Boolean,l.false).field(`typeAnnotation`,s(`TSType`)),s(`TSModuleBlock`).bases(`Node`).build(`body`).field(`body`,[s(`Statement`)]),s(`TSModuleDeclaration`).bases(`Declaration`).build(`id`,`body`).field(`id`,c(u,d)).field(`declare`,Boolean,l.false).field(`global`,Boolean,l.false).field(`body`,c(s(`TSModuleBlock`),s(`TSModuleDeclaration`),null),l.null),s(`TSImportType`).bases(`TSType`,`TSHasOptionalTypeParameterInstantiation`).build(`argument`,`qualifier`,`typeParameters`).field(`argument`,u).field(`qualifier`,c(d,void 0),l.undefined),s(`TSImportEqualsDeclaration`).bases(`Declaration`).build(`id`,`moduleReference`).field(`id`,s(`Identifier`)).field(`isExport`,Boolean,l.false).field(`moduleReference`,c(d,s(`TSExternalModuleReference`))),s(`TSExternalModuleReference`).bases(`Declaration`).build(`expression`).field(`expression`,u),s(`TSExportAssignment`).bases(`Statement`).build(`expression`).field(`expression`,s(`Expression`)),s(`TSNamespaceExportDeclaration`).bases(`Declaration`).build(`id`).field(`id`,s(`Identifier`)),s(`TSInterfaceBody`).bases(`Node`).build(`body`).field(`body`,[p]),s(`TSExpressionWithTypeArguments`).bases(`TSType`,`TSHasOptionalTypeParameterInstantiation`).build(`expression`,`typeParameters`).field(`expression`,d),s(`TSInterfaceDeclaration`).bases(`Declaration`,`TSHasOptionalTypeParameters`).build(`id`,`body`).field(`id`,d).field(`declare`,Boolean,l.false).field(`extends`,c([s(`TSExpressionWithTypeArguments`)],null),l.null).field(`body`,s(`TSInterfaceBody`)),s(`TSParameterProperty`).bases(`Pattern`).build(`parameter`).field(`accessibility`,c(`public`,`private`,`protected`,void 0),l.undefined).field(`readonly`,Boolean,l.false).field(`parameter`,c(s(`Identifier`),s(`AssignmentPattern`))),s(`ClassProperty`).field(`access`,c(`public`,`private`,`protected`,void 0),l.undefined),s(`ClassAccessorProperty`).bases(`Declaration`,`TSHasOptionalTypeAnnotation`),s(`ClassBody`).field(`body`,[c(s(`MethodDefinition`),s(`VariableDeclarator`),s(`ClassPropertyDefinition`),s(`ClassProperty`),s(`ClassPrivateProperty`),s(`ClassAccessorProperty`),s(`ClassMethod`),s(`ClassPrivateMethod`),s(`StaticBlock`),s(`TSDeclareMethod`),p)])}x(s,`default_1`),e.default=s,(0,o.maybeSetModuleExports)(function(){return t})}}),mn=E({"../../node_modules/.pnpm/ast-types@0.16.1/node_modules/ast-types/lib/gen/namedTypes.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.namedTypes=void 0,e.namedTypes||={}}}),hn=E({"../../node_modules/.pnpm/ast-types@0.16.1/node_modules/ast-types/lib/main.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.visit=e.use=e.Type=e.someField=e.PathVisitor=e.Path=e.NodePath=e.namedTypes=e.getSupertypeNames=e.getFieldValue=e.getFieldNames=e.getBuilderName=e.finalize=e.eachField=e.defineMethod=e.builtInTypes=e.builders=e.astNodesAreEquivalent=void 0;var t=(G(),C(U)),n=t.__importDefault(Kt()),r=t.__importDefault(on()),i=t.__importDefault(sn()),a=t.__importDefault(ln()),o=t.__importDefault(un()),s=t.__importDefault(fn()),c=t.__importDefault(pn()),l=mn();Object.defineProperty(e,`namedTypes`,{enumerable:!0,get:x(function(){return l.namedTypes},`get`)});var u=(0,n.default)([r.default,i.default,a.default,o.default,s.default,c.default]),d=u.astNodesAreEquivalent,f=u.builders,p=u.builtInTypes,m=u.defineMethod,h=u.eachField,g=u.finalize,_=u.getBuilderName,v=u.getFieldNames,y=u.getFieldValue,b=u.getSupertypeNames,S=u.namedTypes,w=u.NodePath,T=u.Path,E=u.PathVisitor,D=u.someField,O=u.Type,ee=u.use,k=u.visit;e.astNodesAreEquivalent=d,e.builders=f,e.builtInTypes=p,e.defineMethod=m,e.eachField=h,e.finalize=g,e.getBuilderName=_,e.getFieldNames=v,e.getFieldValue=y,e.getSupertypeNames=b,e.NodePath=w,e.Path=T,e.PathVisitor=E,e.someField=D,e.Type=O,e.use=ee,e.visit=k,Object.assign(l.namedTypes,S)}}),gn=E({"../../node_modules/.pnpm/tiny-invariant@1.3.3/node_modules/tiny-invariant/dist/tiny-invariant.cjs.js"(e,t){var n=`Invariant failed`;function r(e,t){if(!e)throw Error(n)}x(r,`invariant`),t.exports=r}}),_n=E({"../../node_modules/.pnpm/source-map@0.6.1/node_modules/source-map/lib/base64.js"(e){var t=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/`.split(``);e.encode=function(e){if(0<=e&&e<t.length)return t[e];throw TypeError(`Must be between 0 and 63: `+e)},e.decode=function(e){var t=65,n=90,r=97,i=122,a=48;return t<=e&&e<=n?e-t:r<=e&&e<=i?e-r+26:a<=e&&e<=57?e-a+52:e==43?62:e==47?63:-1}}}),vn=E({"../../node_modules/.pnpm/source-map@0.6.1/node_modules/source-map/lib/base64-vlq.js"(e){var t=_n(),n=5,r=1<<n,i=r-1,a=r;function o(e){return e<0?(-e<<1)+1:(e<<1)+0}x(o,`toVLQSigned`);function s(e){var t=(e&1)==1,n=e>>1;return t?-n:n}x(s,`fromVLQSigned`),e.encode=x(function(e){var r=``,s,c=o(e);do s=c&i,c>>>=n,c>0&&(s|=a),r+=t.encode(s);while(c>0);return r},`base64VLQ_encode`),e.decode=x(function(e,r,o){var c=e.length,l=0,u=0,d,f;do{if(r>=c)throw Error(`Expected more digits in base 64 VLQ value.`);if(f=t.decode(e.charCodeAt(r++)),f===-1)throw Error(`Invalid base64 digit: `+e.charAt(r-1));d=!!(f&a),f&=i,l+=f<<u,u+=n}while(d);o.value=s(l),o.rest=r},`base64VLQ_decode`)}}),yn=E({"../../node_modules/.pnpm/source-map@0.6.1/node_modules/source-map/lib/util.js"(e){function t(e,t,n){if(t in e)return e[t];if(arguments.length===3)return n;throw Error(`"`+t+`" is a required argument.`)}x(t,`getArg`),e.getArg=t;var n=/^(?:([\w+\-.]+):)?\/\/(?:(\w+:\w+)@)?([\w.-]*)(?::(\d+))?(.*)$/,r=/^data:.+\,.+$/;function i(e){var t=e.match(n);return t?{scheme:t[1],auth:t[2],host:t[3],port:t[4],path:t[5]}:null}x(i,`urlParse`),e.urlParse=i;function a(e){var t=``;return e.scheme&&(t+=e.scheme+`:`),t+=`//`,e.auth&&(t+=e.auth+`@`),e.host&&(t+=e.host),e.port&&(t+=`:`+e.port),e.path&&(t+=e.path),t}x(a,`urlGenerate`),e.urlGenerate=a;function o(t){var n=t,r=i(t);if(r){if(!r.path)return t;n=r.path}for(var o=e.isAbsolute(n),s=n.split(/\/+/),c,l=0,u=s.length-1;u>=0;u--)c=s[u],c===`.`?s.splice(u,1):c===`..`?l++:l>0&&(c===``?(s.splice(u+1,l),l=0):(s.splice(u,2),l--));return n=s.join(`/`),n===``&&(n=o?`/`:`.`),r?(r.path=n,a(r)):n}x(o,`normalize`),e.normalize=o;function s(e,t){e===``&&(e=`.`),t===``&&(t=`.`);var n=i(t),s=i(e);if(s&&(e=s.path||`/`),n&&!n.scheme)return s&&(n.scheme=s.scheme),a(n);if(n||t.match(r))return t;if(s&&!s.host&&!s.path)return s.host=t,a(s);var c=t.charAt(0)===`/`?t:o(e.replace(/\/+$/,``)+`/`+t);return s?(s.path=c,a(s)):c}x(s,`join`),e.join=s,e.isAbsolute=function(e){return e.charAt(0)===`/`||n.test(e)};function c(e,t){e===``&&(e=`.`),e=e.replace(/\/$/,``);for(var n=0;t.indexOf(e+`/`)!==0;){var r=e.lastIndexOf(`/`);if(r<0||(e=e.slice(0,r),e.match(/^([^\/]+:\/)?\/*$/)))return t;++n}return Array(n+1).join(`../`)+t.substr(e.length+1)}x(c,`relative`),e.relative=c;var l=function(){return!(`__proto__`in Object.create(null))}();function u(e){return e}x(u,`identity`);function d(e){return p(e)?`$`+e:e}x(d,`toSetString`),e.toSetString=l?u:d;function f(e){return p(e)?e.slice(1):e}x(f,`fromSetString`),e.fromSetString=l?u:f;function p(e){if(!e)return!1;var t=e.length;if(t<9||e.charCodeAt(t-1)!==95||e.charCodeAt(t-2)!==95||e.charCodeAt(t-3)!==111||e.charCodeAt(t-4)!==116||e.charCodeAt(t-5)!==111||e.charCodeAt(t-6)!==114||e.charCodeAt(t-7)!==112||e.charCodeAt(t-8)!==95||e.charCodeAt(t-9)!==95)return!1;for(var n=t-10;n>=0;n--)if(e.charCodeAt(n)!==36)return!1;return!0}x(p,`isProtoString`);function m(e,t,n){var r=g(e.source,t.source);return r!==0||(r=e.originalLine-t.originalLine,r!==0)||(r=e.originalColumn-t.originalColumn,r!==0||n)||(r=e.generatedColumn-t.generatedColumn,r!==0)||(r=e.generatedLine-t.generatedLine,r!==0)?r:g(e.name,t.name)}x(m,`compareByOriginalPositions`),e.compareByOriginalPositions=m;function h(e,t,n){var r=e.generatedLine-t.generatedLine;return r!==0||(r=e.generatedColumn-t.generatedColumn,r!==0||n)||(r=g(e.source,t.source),r!==0)||(r=e.originalLine-t.originalLine,r!==0)||(r=e.originalColumn-t.originalColumn,r!==0)?r:g(e.name,t.name)}x(h,`compareByGeneratedPositionsDeflated`),e.compareByGeneratedPositionsDeflated=h;function g(e,t){return e===t?0:e===null?1:t===null?-1:e>t?1:-1}x(g,`strcmp`);function _(e,t){var n=e.generatedLine-t.generatedLine;return n!==0||(n=e.generatedColumn-t.generatedColumn,n!==0)||(n=g(e.source,t.source),n!==0)||(n=e.originalLine-t.originalLine,n!==0)||(n=e.originalColumn-t.originalColumn,n!==0)?n:g(e.name,t.name)}x(_,`compareByGeneratedPositionsInflated`),e.compareByGeneratedPositionsInflated=_;function v(e){return JSON.parse(e.replace(/^\)]}'[^\n]*\n/,``))}x(v,`parseSourceMapInput`),e.parseSourceMapInput=v;function y(e,t,n){if(t||=``,e&&(e[e.length-1]!==`/`&&t[0]!==`/`&&(e+=`/`),t=e+t),n){var r=i(n);if(!r)throw Error(`sourceMapURL could not be parsed`);if(r.path){var c=r.path.lastIndexOf(`/`);c>=0&&(r.path=r.path.substring(0,c+1))}t=s(a(r),t)}return o(t)}x(y,`computeSourceURL`),e.computeSourceURL=y}}),bn=E({"../../node_modules/.pnpm/source-map@0.6.1/node_modules/source-map/lib/array-set.js"(e){var t=yn(),n=Object.prototype.hasOwnProperty,r=typeof Map<`u`;function i(){this._array=[],this._set=r?new Map:Object.create(null)}x(i,`ArraySet`),i.fromArray=x(function(e,t){for(var n=new i,r=0,a=e.length;r<a;r++)n.add(e[r],t);return n},`ArraySet_fromArray`),i.prototype.size=x(function(){return r?this._set.size:Object.getOwnPropertyNames(this._set).length},`ArraySet_size`),i.prototype.add=x(function(e,i){var a=r?e:t.toSetString(e),o=r?this.has(e):n.call(this._set,a),s=this._array.length;(!o||i)&&this._array.push(e),o||(r?this._set.set(e,s):this._set[a]=s)},`ArraySet_add`),i.prototype.has=x(function(e){if(r)return this._set.has(e);var i=t.toSetString(e);return n.call(this._set,i)},`ArraySet_has`),i.prototype.indexOf=x(function(e){if(r){var i=this._set.get(e);if(i>=0)return i}else{var a=t.toSetString(e);if(n.call(this._set,a))return this._set[a]}throw Error(`"`+e+`" is not in the set.`)},`ArraySet_indexOf`),i.prototype.at=x(function(e){if(e>=0&&e<this._array.length)return this._array[e];throw Error(`No element indexed by `+e)},`ArraySet_at`),i.prototype.toArray=x(function(){return this._array.slice()},`ArraySet_toArray`),e.ArraySet=i}}),xn=E({"../../node_modules/.pnpm/source-map@0.6.1/node_modules/source-map/lib/mapping-list.js"(e){var t=yn();function n(e,n){var r=e.generatedLine,i=n.generatedLine,a=e.generatedColumn,o=n.generatedColumn;return i>r||i==r&&o>=a||t.compareByGeneratedPositionsInflated(e,n)<=0}x(n,`generatedPositionAfter`);function r(){this._array=[],this._sorted=!0,this._last={generatedLine:-1,generatedColumn:0}}x(r,`MappingList`),r.prototype.unsortedForEach=x(function(e,t){this._array.forEach(e,t)},`MappingList_forEach`),r.prototype.add=x(function(e){n(this._last,e)?(this._last=e,this._array.push(e)):(this._sorted=!1,this._array.push(e))},`MappingList_add`),r.prototype.toArray=x(function(){return this._sorted||=(this._array.sort(t.compareByGeneratedPositionsInflated),!0),this._array},`MappingList_toArray`),e.MappingList=r}}),Sn=E({"../../node_modules/.pnpm/source-map@0.6.1/node_modules/source-map/lib/source-map-generator.js"(e){var t=vn(),n=yn(),r=bn().ArraySet,i=xn().MappingList;function a(e){e||={},this._file=n.getArg(e,`file`,null),this._sourceRoot=n.getArg(e,`sourceRoot`,null),this._skipValidation=n.getArg(e,`skipValidation`,!1),this._sources=new r,this._names=new r,this._mappings=new i,this._sourcesContents=null}x(a,`SourceMapGenerator`),a.prototype._version=3,a.fromSourceMap=x(function(e){var t=e.sourceRoot,r=new a({file:e.file,sourceRoot:t});return e.eachMapping(function(e){var i={generated:{line:e.generatedLine,column:e.generatedColumn}};e.source!=null&&(i.source=e.source,t!=null&&(i.source=n.relative(t,i.source)),i.original={line:e.originalLine,column:e.originalColumn},e.name!=null&&(i.name=e.name)),r.addMapping(i)}),e.sources.forEach(function(i){var a=i;t!==null&&(a=n.relative(t,i)),r._sources.has(a)||r._sources.add(a);var o=e.sourceContentFor(i);o!=null&&r.setSourceContent(i,o)}),r},`SourceMapGenerator_fromSourceMap`),a.prototype.addMapping=x(function(e){var t=n.getArg(e,`generated`),r=n.getArg(e,`original`,null),i=n.getArg(e,`source`,null),a=n.getArg(e,`name`,null);this._skipValidation||this._validateMapping(t,r,i,a),i!=null&&(i=String(i),this._sources.has(i)||this._sources.add(i)),a!=null&&(a=String(a),this._names.has(a)||this._names.add(a)),this._mappings.add({generatedLine:t.line,generatedColumn:t.column,originalLine:r!=null&&r.line,originalColumn:r!=null&&r.column,source:i,name:a})},`SourceMapGenerator_addMapping`),a.prototype.setSourceContent=x(function(e,t){var r=e;this._sourceRoot!=null&&(r=n.relative(this._sourceRoot,r)),t==null?this._sourcesContents&&(delete this._sourcesContents[n.toSetString(r)],Object.keys(this._sourcesContents).length===0&&(this._sourcesContents=null)):(this._sourcesContents||=Object.create(null),this._sourcesContents[n.toSetString(r)]=t)},`SourceMapGenerator_setSourceContent`),a.prototype.applySourceMap=x(function(e,t,i){var a=t;if(t==null){if(e.file==null)throw Error(`SourceMapGenerator.prototype.applySourceMap requires either an explicit source file, or the source map's "file" property. Both were omitted.`);a=e.file}var o=this._sourceRoot;o!=null&&(a=n.relative(o,a));var s=new r,c=new r;this._mappings.unsortedForEach(function(t){if(t.source===a&&t.originalLine!=null){var r=e.originalPositionFor({line:t.originalLine,column:t.originalColumn});r.source!=null&&(t.source=r.source,i!=null&&(t.source=n.join(i,t.source)),o!=null&&(t.source=n.relative(o,t.source)),t.originalLine=r.line,t.originalColumn=r.column,r.name!=null&&(t.name=r.name))}var l=t.source;l!=null&&!s.has(l)&&s.add(l);var u=t.name;u!=null&&!c.has(u)&&c.add(u)},this),this._sources=s,this._names=c,e.sources.forEach(function(t){var r=e.sourceContentFor(t);r!=null&&(i!=null&&(t=n.join(i,t)),o!=null&&(t=n.relative(o,t)),this.setSourceContent(t,r))},this)},`SourceMapGenerator_applySourceMap`),a.prototype._validateMapping=x(function(e,t,n,r){if(t&&typeof t.line!=`number`&&typeof t.column!=`number`)throw Error(`original.line and original.column are not numbers -- you probably meant to omit the original mapping entirely and only map the generated position. If so, pass null for the original mapping instead of an object with empty or null values.`);if(!(e&&`line`in e&&`column`in e&&e.line>0&&e.column>=0&&!t&&!n&&!r)&&!(e&&`line`in e&&`column`in e&&t&&`line`in t&&`column`in t&&e.line>0&&e.column>=0&&t.line>0&&t.column>=0&&n))throw Error(`Invalid mapping: `+JSON.stringify({generated:e,source:n,original:t,name:r}))},`SourceMapGenerator_validateMapping`),a.prototype._serializeMappings=x(function(){for(var e=0,r=1,i=0,a=0,o=0,s=0,c=``,l,u,d,f,p=this._mappings.toArray(),m=0,h=p.length;m<h;m++){if(u=p[m],l=``,u.generatedLine!==r)for(e=0;u.generatedLine!==r;)l+=`;`,r++;else if(m>0){if(!n.compareByGeneratedPositionsInflated(u,p[m-1]))continue;l+=`,`}l+=t.encode(u.generatedColumn-e),e=u.generatedColumn,u.source!=null&&(f=this._sources.indexOf(u.source),l+=t.encode(f-s),s=f,l+=t.encode(u.originalLine-1-a),a=u.originalLine-1,l+=t.encode(u.originalColumn-i),i=u.originalColumn,u.name!=null&&(d=this._names.indexOf(u.name),l+=t.encode(d-o),o=d)),c+=l}return c},`SourceMapGenerator_serializeMappings`),a.prototype._generateSourcesContent=x(function(e,t){return e.map(function(e){if(!this._sourcesContents)return null;t!=null&&(e=n.relative(t,e));var r=n.toSetString(e);return Object.prototype.hasOwnProperty.call(this._sourcesContents,r)?this._sourcesContents[r]:null},this)},`SourceMapGenerator_generateSourcesContent`),a.prototype.toJSON=x(function(){var e={version:this._version,sources:this._sources.toArray(),names:this._names.toArray(),mappings:this._serializeMappings()};return this._file!=null&&(e.file=this._file),this._sourceRoot!=null&&(e.sourceRoot=this._sourceRoot),this._sourcesContents&&(e.sourcesContent=this._generateSourcesContent(e.sources,e.sourceRoot)),e},`SourceMapGenerator_toJSON`),a.prototype.toString=x(function(){return JSON.stringify(this.toJSON())},`SourceMapGenerator_toString`),e.SourceMapGenerator=a}}),Cn=E({"../../node_modules/.pnpm/source-map@0.6.1/node_modules/source-map/lib/binary-search.js"(e){e.GREATEST_LOWER_BOUND=1,e.LEAST_UPPER_BOUND=2;function t(n,r,i,a,o,s){var c=Math.floor((r-n)/2)+n,l=o(i,a[c],!0);return l===0?c:l>0?r-c>1?t(c,r,i,a,o,s):s==e.LEAST_UPPER_BOUND?r<a.length?r:-1:c:c-n>1?t(n,c,i,a,o,s):s==e.LEAST_UPPER_BOUND?c:n<0?-1:n}x(t,`recursiveSearch`),e.search=x(function(n,r,i,a){if(r.length===0)return-1;var o=t(-1,r.length,n,r,i,a||e.GREATEST_LOWER_BOUND);if(o<0)return-1;for(;o-1>=0&&i(r[o],r[o-1],!0)===0;)--o;return o},`search`)}}),wn=E({"../../node_modules/.pnpm/source-map@0.6.1/node_modules/source-map/lib/quick-sort.js"(e){function t(e,t,n){var r=e[t];e[t]=e[n],e[n]=r}x(t,`swap`);function n(e,t){return Math.round(e+Math.random()*(t-e))}x(n,`randomIntInRange`);function r(e,i,a,o){if(a<o){var s=n(a,o),c=a-1;t(e,s,o);for(var l=e[o],u=a;u<o;u++)i(e[u],l)<=0&&(c+=1,t(e,c,u));t(e,c+1,u);var d=c+1;r(e,i,a,d-1),r(e,i,d+1,o)}}x(r,`doQuickSort`),e.quickSort=function(e,t){r(e,t,0,e.length-1)}}}),Tn=E({"../../node_modules/.pnpm/source-map@0.6.1/node_modules/source-map/lib/source-map-consumer.js"(e){var t=yn(),n=Cn(),r=bn().ArraySet,i=vn(),a=wn().quickSort;function o(e,n){var r=e;return typeof e==`string`&&(r=t.parseSourceMapInput(e)),r.sections==null?new s(r,n):new l(r,n)}x(o,`SourceMapConsumer`),o.fromSourceMap=function(e,t){return s.fromSourceMap(e,t)},o.prototype._version=3,o.prototype.__generatedMappings=null,Object.defineProperty(o.prototype,`_generatedMappings`,{configurable:!0,enumerable:!0,get:x(function(){return this.__generatedMappings||this._parseMappings(this._mappings,this.sourceRoot),this.__generatedMappings},`get`)}),o.prototype.__originalMappings=null,Object.defineProperty(o.prototype,`_originalMappings`,{configurable:!0,enumerable:!0,get:x(function(){return this.__originalMappings||this._parseMappings(this._mappings,this.sourceRoot),this.__originalMappings},`get`)}),o.prototype._charIsMappingSeparator=x(function(e,t){var n=e.charAt(t);return n===`;`||n===`,`},`SourceMapConsumer_charIsMappingSeparator`),o.prototype._parseMappings=x(function(e,t){throw Error(`Subclasses must implement _parseMappings`)},`SourceMapConsumer_parseMappings`),o.GENERATED_ORDER=1,o.ORIGINAL_ORDER=2,o.GREATEST_LOWER_BOUND=1,o.LEAST_UPPER_BOUND=2,o.prototype.eachMapping=x(function(e,n,r){var i=n||null,a=r||o.GENERATED_ORDER,s;switch(a){case o.GENERATED_ORDER:s=this._generatedMappings;break;case o.ORIGINAL_ORDER:s=this._originalMappings;break;default:throw Error(`Unknown order of iteration.`)}var c=this.sourceRoot;s.map(function(e){var n=e.source===null?null:this._sources.at(e.source);return n=t.computeSourceURL(c,n,this._sourceMapURL),{source:n,generatedLine:e.generatedLine,generatedColumn:e.generatedColumn,originalLine:e.originalLine,originalColumn:e.originalColumn,name:e.name===null?null:this._names.at(e.name)}},this).forEach(e,i)},`SourceMapConsumer_eachMapping`),o.prototype.allGeneratedPositionsFor=x(function(e){var r=t.getArg(e,`line`),i={source:t.getArg(e,`source`),originalLine:r,originalColumn:t.getArg(e,`column`,0)};if(i.source=this._findSourceIndex(i.source),i.source<0)return[];var a=[],o=this._findMapping(i,this._originalMappings,`originalLine`,`originalColumn`,t.compareByOriginalPositions,n.LEAST_UPPER_BOUND);if(o>=0){var s=this._originalMappings[o];if(e.column===void 0)for(var c=s.originalLine;s&&s.originalLine===c;)a.push({line:t.getArg(s,`generatedLine`,null),column:t.getArg(s,`generatedColumn`,null),lastColumn:t.getArg(s,`lastGeneratedColumn`,null)}),s=this._originalMappings[++o];else for(var l=s.originalColumn;s&&s.originalLine===r&&s.originalColumn==l;)a.push({line:t.getArg(s,`generatedLine`,null),column:t.getArg(s,`generatedColumn`,null),lastColumn:t.getArg(s,`lastGeneratedColumn`,null)}),s=this._originalMappings[++o]}return a},`SourceMapConsumer_allGeneratedPositionsFor`),e.SourceMapConsumer=o;function s(e,n){var i=e;typeof e==`string`&&(i=t.parseSourceMapInput(e));var a=t.getArg(i,`version`),o=t.getArg(i,`sources`),s=t.getArg(i,`names`,[]),c=t.getArg(i,`sourceRoot`,null),l=t.getArg(i,`sourcesContent`,null),u=t.getArg(i,`mappings`),d=t.getArg(i,`file`,null);if(a!=this._version)throw Error(`Unsupported version: `+a);c&&=t.normalize(c),o=o.map(String).map(t.normalize).map(function(e){return c&&t.isAbsolute(c)&&t.isAbsolute(e)?t.relative(c,e):e}),this._names=r.fromArray(s.map(String),!0),this._sources=r.fromArray(o,!0),this._absoluteSources=this._sources.toArray().map(function(e){return t.computeSourceURL(c,e,n)}),this.sourceRoot=c,this.sourcesContent=l,this._mappings=u,this._sourceMapURL=n,this.file=d}x(s,`BasicSourceMapConsumer`),s.prototype=Object.create(o.prototype),s.prototype.consumer=o,s.prototype._findSourceIndex=function(e){var n=e;if(this.sourceRoot!=null&&(n=t.relative(this.sourceRoot,n)),this._sources.has(n))return this._sources.indexOf(n);var r;for(r=0;r<this._absoluteSources.length;++r)if(this._absoluteSources[r]==e)return r;return-1},s.fromSourceMap=x(function(e,n){var i=Object.create(s.prototype),o=i._names=r.fromArray(e._names.toArray(),!0),l=i._sources=r.fromArray(e._sources.toArray(),!0);i.sourceRoot=e._sourceRoot,i.sourcesContent=e._generateSourcesContent(i._sources.toArray(),i.sourceRoot),i.file=e._file,i._sourceMapURL=n,i._absoluteSources=i._sources.toArray().map(function(e){return t.computeSourceURL(i.sourceRoot,e,n)});for(var u=e._mappings.toArray().slice(),d=i.__generatedMappings=[],f=i.__originalMappings=[],p=0,m=u.length;p<m;p++){var h=u[p],g=new c;g.generatedLine=h.generatedLine,g.generatedColumn=h.generatedColumn,h.source&&(g.source=l.indexOf(h.source),g.originalLine=h.originalLine,g.originalColumn=h.originalColumn,h.name&&(g.name=o.indexOf(h.name)),f.push(g)),d.push(g)}return a(i.__originalMappings,t.compareByOriginalPositions),i},`SourceMapConsumer_fromSourceMap`),s.prototype._version=3,Object.defineProperty(s.prototype,`sources`,{get:x(function(){return this._absoluteSources.slice()},`get`)});function c(){this.generatedLine=0,this.generatedColumn=0,this.source=null,this.originalLine=null,this.originalColumn=null,this.name=null}x(c,`Mapping`),s.prototype._parseMappings=x(function(e,n){for(var r=1,o=0,s=0,l=0,u=0,d=0,f=e.length,p=0,m={},h={},g=[],_=[],v,y,b,x,S;p<f;)if(e.charAt(p)===`;`)r++,p++,o=0;else if(e.charAt(p)===`,`)p++;else{for(v=new c,v.generatedLine=r,x=p;x<f&&!this._charIsMappingSeparator(e,x);x++);if(y=e.slice(p,x),b=m[y],b)p+=y.length;else{for(b=[];p<x;)i.decode(e,p,h),S=h.value,p=h.rest,b.push(S);if(b.length===2)throw Error(`Found a source, but no line and column`);if(b.length===3)throw Error(`Found a source and line, but no column`);m[y]=b}v.generatedColumn=o+b[0],o=v.generatedColumn,b.length>1&&(v.source=u+b[1],u+=b[1],v.originalLine=s+b[2],s=v.originalLine,v.originalLine+=1,v.originalColumn=l+b[3],l=v.originalColumn,b.length>4&&(v.name=d+b[4],d+=b[4])),_.push(v),typeof v.originalLine==`number`&&g.push(v)}a(_,t.compareByGeneratedPositionsDeflated),this.__generatedMappings=_,a(g,t.compareByOriginalPositions),this.__originalMappings=g},`SourceMapConsumer_parseMappings`),s.prototype._findMapping=x(function(e,t,r,i,a,o){if(e[r]<=0)throw TypeError(`Line must be greater than or equal to 1, got `+e[r]);if(e[i]<0)throw TypeError(`Column must be greater than or equal to 0, got `+e[i]);return n.search(e,t,a,o)},`SourceMapConsumer_findMapping`),s.prototype.computeColumnSpans=x(function(){for(var e=0;e<this._generatedMappings.length;++e){var t=this._generatedMappings[e];if(e+1<this._generatedMappings.length){var n=this._generatedMappings[e+1];if(t.generatedLine===n.generatedLine){t.lastGeneratedColumn=n.generatedColumn-1;continue}}t.lastGeneratedColumn=1/0}},`SourceMapConsumer_computeColumnSpans`),s.prototype.originalPositionFor=x(function(e){var n={generatedLine:t.getArg(e,`line`),generatedColumn:t.getArg(e,`column`)},r=this._findMapping(n,this._generatedMappings,`generatedLine`,`generatedColumn`,t.compareByGeneratedPositionsDeflated,t.getArg(e,`bias`,o.GREATEST_LOWER_BOUND));if(r>=0){var i=this._generatedMappings[r];if(i.generatedLine===n.generatedLine){var a=t.getArg(i,`source`,null);a!==null&&(a=this._sources.at(a),a=t.computeSourceURL(this.sourceRoot,a,this._sourceMapURL));var s=t.getArg(i,`name`,null);return s!==null&&(s=this._names.at(s)),{source:a,line:t.getArg(i,`originalLine`,null),column:t.getArg(i,`originalColumn`,null),name:s}}}return{source:null,line:null,column:null,name:null}},`SourceMapConsumer_originalPositionFor`),s.prototype.hasContentsOfAllSources=x(function(){return this.sourcesContent?this.sourcesContent.length>=this._sources.size()&&!this.sourcesContent.some(function(e){return e==null}):!1},`BasicSourceMapConsumer_hasContentsOfAllSources`),s.prototype.sourceContentFor=x(function(e,n){if(!this.sourcesContent)return null;var r=this._findSourceIndex(e);if(r>=0)return this.sourcesContent[r];var i=e;this.sourceRoot!=null&&(i=t.relative(this.sourceRoot,i));var a;if(this.sourceRoot!=null&&(a=t.urlParse(this.sourceRoot))){var o=i.replace(/^file:\/\//,``);if(a.scheme==`file`&&this._sources.has(o))return this.sourcesContent[this._sources.indexOf(o)];if((!a.path||a.path==`/`)&&this._sources.has(`/`+i))return this.sourcesContent[this._sources.indexOf(`/`+i)]}if(n)return null;throw Error(`"`+i+`" is not in the SourceMap.`)},`SourceMapConsumer_sourceContentFor`),s.prototype.generatedPositionFor=x(function(e){var n=t.getArg(e,`source`);if(n=this._findSourceIndex(n),n<0)return{line:null,column:null,lastColumn:null};var r={source:n,originalLine:t.getArg(e,`line`),originalColumn:t.getArg(e,`column`)},i=this._findMapping(r,this._originalMappings,`originalLine`,`originalColumn`,t.compareByOriginalPositions,t.getArg(e,`bias`,o.GREATEST_LOWER_BOUND));if(i>=0){var a=this._originalMappings[i];if(a.source===r.source)return{line:t.getArg(a,`generatedLine`,null),column:t.getArg(a,`generatedColumn`,null),lastColumn:t.getArg(a,`lastGeneratedColumn`,null)}}return{line:null,column:null,lastColumn:null}},`SourceMapConsumer_generatedPositionFor`),e.BasicSourceMapConsumer=s;function l(e,n){var i=e;typeof e==`string`&&(i=t.parseSourceMapInput(e));var a=t.getArg(i,`version`),s=t.getArg(i,`sections`);if(a!=this._version)throw Error(`Unsupported version: `+a);this._sources=new r,this._names=new r;var c={line:-1,column:0};this._sections=s.map(function(e){if(e.url)throw Error(`Support for url field in sections not implemented.`);var r=t.getArg(e,`offset`),i=t.getArg(r,`line`),a=t.getArg(r,`column`);if(i<c.line||i===c.line&&a<c.column)throw Error(`Section offsets must be ordered and non-overlapping.`);return c=r,{generatedOffset:{generatedLine:i+1,generatedColumn:a+1},consumer:new o(t.getArg(e,`map`),n)}})}x(l,`IndexedSourceMapConsumer`),l.prototype=Object.create(o.prototype),l.prototype.constructor=o,l.prototype._version=3,Object.defineProperty(l.prototype,`sources`,{get:x(function(){for(var e=[],t=0;t<this._sections.length;t++)for(var n=0;n<this._sections[t].consumer.sources.length;n++)e.push(this._sections[t].consumer.sources[n]);return e},`get`)}),l.prototype.originalPositionFor=x(function(e){var r={generatedLine:t.getArg(e,`line`),generatedColumn:t.getArg(e,`column`)},i=n.search(r,this._sections,function(e,t){return e.generatedLine-t.generatedOffset.generatedLine||e.generatedColumn-t.generatedOffset.generatedColumn}),a=this._sections[i];return a?a.consumer.originalPositionFor({line:r.generatedLine-(a.generatedOffset.generatedLine-1),column:r.generatedColumn-(a.generatedOffset.generatedLine===r.generatedLine?a.generatedOffset.generatedColumn-1:0),bias:e.bias}):{source:null,line:null,column:null,name:null}},`IndexedSourceMapConsumer_originalPositionFor`),l.prototype.hasContentsOfAllSources=x(function(){return this._sections.every(function(e){return e.consumer.hasContentsOfAllSources()})},`IndexedSourceMapConsumer_hasContentsOfAllSources`),l.prototype.sourceContentFor=x(function(e,t){for(var n=0;n<this._sections.length;n++){var r=this._sections[n].consumer.sourceContentFor(e,!0);if(r)return r}if(t)return null;throw Error(`"`+e+`" is not in the SourceMap.`)},`IndexedSourceMapConsumer_sourceContentFor`),l.prototype.generatedPositionFor=x(function(e){for(var n=0;n<this._sections.length;n++){var r=this._sections[n];if(r.consumer._findSourceIndex(t.getArg(e,`source`))!==-1){var i=r.consumer.generatedPositionFor(e);if(i)return{line:i.line+(r.generatedOffset.generatedLine-1),column:i.column+(r.generatedOffset.generatedLine===i.line?r.generatedOffset.generatedColumn-1:0)}}}return{line:null,column:null}},`IndexedSourceMapConsumer_generatedPositionFor`),l.prototype._parseMappings=x(function(e,n){this.__generatedMappings=[],this.__originalMappings=[];for(var r=0;r<this._sections.length;r++)for(var i=this._sections[r],o=i.consumer._generatedMappings,s=0;s<o.length;s++){var c=o[s],l=i.consumer._sources.at(c.source);l=t.computeSourceURL(i.consumer.sourceRoot,l,this._sourceMapURL),this._sources.add(l),l=this._sources.indexOf(l);var u=null;c.name&&(u=i.consumer._names.at(c.name),this._names.add(u),u=this._names.indexOf(u));var d={source:l,generatedLine:c.generatedLine+(i.generatedOffset.generatedLine-1),generatedColumn:c.generatedColumn+(i.generatedOffset.generatedLine===c.generatedLine?i.generatedOffset.generatedColumn-1:0),originalLine:c.originalLine,originalColumn:c.originalColumn,name:u};this.__generatedMappings.push(d),typeof d.originalLine==`number`&&this.__originalMappings.push(d)}a(this.__generatedMappings,t.compareByGeneratedPositionsDeflated),a(this.__originalMappings,t.compareByOriginalPositions)},`IndexedSourceMapConsumer_parseMappings`),e.IndexedSourceMapConsumer=l}}),En=E({"../../node_modules/.pnpm/source-map@0.6.1/node_modules/source-map/lib/source-node.js"(e){var t=Sn().SourceMapGenerator,n=yn(),r=/(\r?\n)/,i=10,a=`$$$isSourceNode$$$`;function o(e,t,n,r,i){this.children=[],this.sourceContents={},this.line=e??null,this.column=t??null,this.source=n??null,this.name=i??null,this[a]=!0,r!=null&&this.add(r)}x(o,`SourceNode`),o.fromStringWithSourceMap=x(function(e,t,i){var a=new o,s=e.split(r),c=0,l=x(function(){return e()+(e()||``);function e(){return c<s.length?s[c++]:void 0}},`shiftNextLine`),u=1,d=0,f=null;return t.eachMapping(function(e){if(f!==null)if(u<e.generatedLine)p(f,l()),u++,d=0;else{var t=s[c]||``,n=t.substr(0,e.generatedColumn-d);s[c]=t.substr(e.generatedColumn-d),d=e.generatedColumn,p(f,n),f=e;return}for(;u<e.generatedLine;)a.add(l()),u++;if(d<e.generatedColumn){var t=s[c]||``;a.add(t.substr(0,e.generatedColumn)),s[c]=t.substr(e.generatedColumn),d=e.generatedColumn}f=e},this),c<s.length&&(f&&p(f,l()),a.add(s.splice(c).join(``))),t.sources.forEach(function(e){var r=t.sourceContentFor(e);r!=null&&(i!=null&&(e=n.join(i,e)),a.setSourceContent(e,r))}),a;function p(e,t){if(e===null||e.source===void 0)a.add(t);else{var r=i?n.join(i,e.source):e.source;a.add(new o(e.originalLine,e.originalColumn,r,t,e.name))}}},`SourceNode_fromStringWithSourceMap`),o.prototype.add=x(function(e){if(Array.isArray(e))e.forEach(function(e){this.add(e)},this);else if(e[a]||typeof e==`string`)e&&this.children.push(e);else throw TypeError(`Expected a SourceNode, string, or an array of SourceNodes and strings. Got `+e);return this},`SourceNode_add`),o.prototype.prepend=x(function(e){if(Array.isArray(e))for(var t=e.length-1;t>=0;t--)this.prepend(e[t]);else if(e[a]||typeof e==`string`)this.children.unshift(e);else throw TypeError(`Expected a SourceNode, string, or an array of SourceNodes and strings. Got `+e);return this},`SourceNode_prepend`),o.prototype.walk=x(function(e){for(var t,n=0,r=this.children.length;n<r;n++)t=this.children[n],t[a]?t.walk(e):t!==``&&e(t,{source:this.source,line:this.line,column:this.column,name:this.name})},`SourceNode_walk`),o.prototype.join=x(function(e){var t,n,r=this.children.length;if(r>0){for(t=[],n=0;n<r-1;n++)t.push(this.children[n]),t.push(e);t.push(this.children[n]),this.children=t}return this},`SourceNode_join`),o.prototype.replaceRight=x(function(e,t){var n=this.children[this.children.length-1];return n[a]?n.replaceRight(e,t):typeof n==`string`?this.children[this.children.length-1]=n.replace(e,t):this.children.push(``.replace(e,t)),this},`SourceNode_replaceRight`),o.prototype.setSourceContent=x(function(e,t){this.sourceContents[n.toSetString(e)]=t},`SourceNode_setSourceContent`),o.prototype.walkSourceContents=x(function(e){for(var t=0,r=this.children.length;t<r;t++)this.children[t][a]&&this.children[t].walkSourceContents(e);for(var i=Object.keys(this.sourceContents),t=0,r=i.length;t<r;t++)e(n.fromSetString(i[t]),this.sourceContents[i[t]])},`SourceNode_walkSourceContents`),o.prototype.toString=x(function(){var e=``;return this.walk(function(t){e+=t}),e},`SourceNode_toString`),o.prototype.toStringWithSourceMap=x(function(e){var n={code:``,line:1,column:0},r=new t(e),a=!1,o=null,s=null,c=null,l=null;return this.walk(function(e,t){n.code+=e,t.source!==null&&t.line!==null&&t.column!==null?((o!==t.source||s!==t.line||c!==t.column||l!==t.name)&&r.addMapping({source:t.source,original:{line:t.line,column:t.column},generated:{line:n.line,column:n.column},name:t.name}),o=t.source,s=t.line,c=t.column,l=t.name,a=!0):a&&=(r.addMapping({generated:{line:n.line,column:n.column}}),o=null,!1);for(var u=0,d=e.length;u<d;u++)e.charCodeAt(u)===i?(n.line++,n.column=0,u+1===d?(o=null,a=!1):a&&r.addMapping({source:t.source,original:{line:t.line,column:t.column},generated:{line:n.line,column:n.column},name:t.name})):n.column++}),this.walkSourceContents(function(e,t){r.setSourceContent(e,t)}),{code:n.code,map:r}},`SourceNode_toStringWithSourceMap`),e.SourceNode=o}}),Dn=E({"../../node_modules/.pnpm/source-map@0.6.1/node_modules/source-map/source-map.js"(e){e.SourceMapGenerator=Sn().SourceMapGenerator,e.SourceMapConsumer=Tn().SourceMapConsumer,e.SourceNode=En().SourceNode}}),On=E({"../../node_modules/.pnpm/recast@0.23.11/node_modules/recast/lib/util.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.isTrailingCommaEnabled=e.getParentExportDeclaration=e.isExportDeclaration=e.fixFaultyLocations=e.getTrueLoc=e.composeSourceMaps=e.copyPos=e.comparePos=e.getUnionOfKeys=e.getOption=e.isBrowser=e.getLineTerminator=void 0;var t=(G(),C(U)),n=t.__importDefault(gn()),r=t.__importStar(hn()).namedTypes,i=t.__importDefault(Dn()),a=i.default.SourceMapConsumer,o=i.default.SourceMapGenerator,s=Object.prototype.hasOwnProperty;function c(){return l()?`
4
4
  `:b(`os`).EOL||`
5
- `}x(c,`getLineTerminator`),e.getLineTerminator=c;function l(){return typeof window<`u`&&window.document!==void 0}x(l,`isBrowser`),e.isBrowser=l;function u(e,t,n){return e&&s.call(e,t)?e[t]:n}x(u,`getOption`),e.getOption=u;function d(){for(var e=[...arguments],t={},n=e.length,r=0;r<n;++r)for(var i=Object.keys(e[r]),a=i.length,o=0;o<a;++o)t[i[o]]=!0;return t}x(d,`getUnionOfKeys`),e.getUnionOfKeys=d;function f(e,t){return e.line-t.line||e.column-t.column}x(f,`comparePos`),e.comparePos=f;function p(e){return{line:e.line,column:e.column}}x(p,`copyPos`),e.copyPos=p;function m(e,t){if(e){if(!t)return e}else return t||null;var n=new a(e),r=new a(t),i=new o({file:t.file,sourceRoot:t.sourceRoot}),c={};return r.eachMapping(function(e){var t=n.originalPositionFor({line:e.originalLine,column:e.originalColumn}),r=t.source;if(r!==null){i.addMapping({source:r,original:p(t),generated:{line:e.generatedLine,column:e.generatedColumn},name:e.name});var a=n.sourceContentFor(r);a&&!s.call(c,r)&&(c[r]=a,i.setSourceContent(r,a))}}),i.toJSON()}x(m,`composeSourceMaps`),e.composeSourceMaps=m;function h(e,t){if(!e.loc)return null;var n={start:e.loc.start,end:e.loc.end};function r(e){g(n,e.loc)}return x(r,`include`),e.declaration&&e.declaration.decorators&&S(e)&&e.declaration.decorators.forEach(r),f(n.start,n.end)<0&&(n.start=p(n.start),t.skipSpaces(n.start,!1,!0),f(n.start,n.end)<0&&(n.end=p(n.end),t.skipSpaces(n.end,!0,!0))),e.comments&&e.comments.forEach(r),n}x(h,`getTrueLoc`),e.getTrueLoc=h;function g(e,t){e&&t&&(f(t.start,e.start)<0&&(e.start=t.start),f(e.end,t.end)<0&&(e.end=t.end))}x(g,`expandLoc`);function _(e,t){var n=e.loc;if(n&&(n.start.line<1&&(n.start.line=1),n.end.line<1&&(n.end.line=1)),e.type===`File`&&(n.start=t.firstPos(),n.end=t.lastPos()),v(e,t),y(e,t),n&&e.decorators)e.decorators.forEach(function(e){g(n,e.loc)});else if(e.declaration&&S(e)){e.declaration.loc=null;var i=e.declaration.decorators;i&&i.forEach(function(e){g(n,e.loc)})}else if(r.MethodDefinition&&r.MethodDefinition.check(e)||r.Property.check(e)&&(e.method||e.shorthand))e.value.loc=null,r.FunctionExpression.check(e.value)&&(e.value.id=null);else if(e.type===`ObjectTypeProperty`){var a=e.loc,o=a&&a.end;o&&(o=p(o),t.prevPos(o)&&t.charAt(o)===`,`&&(o=t.skipSpaces(o,!0,!0))&&(a.end=o))}}x(_,`fixFaultyLocations`),e.fixFaultyLocations=_;function v(e,t){if(e.type!==`ForStatement`)return;function n(e){for(var n=e&&e.loc,r=n&&n.start,i=n&&p(n.end);r&&i&&f(r,i)<0&&(t.prevPos(i),t.charAt(i)===`;`);)n.end.line=i.line,n.end.column=i.column}x(n,`fix`),n(e.init),n(e.test),n(e.update)}x(v,`fixForLoopHead`);function y(e,t){if(e.type===`TemplateLiteral`&&e.quasis.length!==0){if(e.loc){var r=p(e.loc.start);(0,n.default)(t.charAt(r)==="`"),(0,n.default)(t.nextPos(r));var i=e.quasis[0];f(i.loc.start,r)<0&&(i.loc.start=r);var a=p(e.loc.end);(0,n.default)(t.prevPos(a)),(0,n.default)(t.charAt(a)==="`");var o=e.quasis[e.quasis.length-1];f(a,o.loc.end)<0&&(o.loc.end=a)}e.expressions.forEach(function(r,i){var a=t.skipSpaces(r.loc.start,!0,!1);if(t.prevPos(a)&&t.charAt(a)===`{`&&t.prevPos(a)&&t.charAt(a)===`$`){var o=e.quasis[i];f(a,o.loc.end)<0&&(o.loc.end=a)}var s=t.skipSpaces(r.loc.end,!1,!1);if(t.charAt(s)===`}`){(0,n.default)(t.nextPos(s));var c=e.quasis[i+1];f(c.loc.start,s)<0&&(c.loc.start=s)}})}}x(y,`fixTemplateLiteral`);function S(e){if(e)switch(e.type){case`ExportDeclaration`:case`ExportDefaultDeclaration`:case`ExportDefaultSpecifier`:case`DeclareExportDeclaration`:case`ExportNamedDeclaration`:case`ExportAllDeclaration`:return!0}return!1}x(S,`isExportDeclaration`),e.isExportDeclaration=S;function w(e){var t=e.getParentNode();return e.getName()===`declaration`&&S(t)?t:null}x(w,`getParentExportDeclaration`),e.getParentExportDeclaration=w;function T(e,t){var n=e.trailingComma;return typeof n==`object`?!!n[t]:!!n}x(T,`isTrailingCommaEnabled`),e.isTrailingCommaEnabled=T}}),On=E({"../../node_modules/.pnpm/esprima@4.0.1/node_modules/esprima/dist/esprima.js"(e,t){x(function(n,r){typeof e==`object`&&typeof t==`object`?t.exports=r():typeof define==`function`&&define.amd?define([],r):typeof e==`object`?e.esprima=r():n.esprima=r()},`webpackUniversalModuleDefinition`)(e,function(){return function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={exports:{},id:r,loaded:!1};return e[r].call(i.exports,i,i.exports,n),i.loaded=!0,i.exports}return x(n,`__webpack_require__`),n.m=e,n.c=t,n.p=``,n(0)}([function(e,t,n){Object.defineProperty(t,`__esModule`,{value:!0});var r=n(1),i=n(3),a=n(8),o=n(15);function s(e,t,n){var o=null,s=x(function(e,t){n&&n(e,t),o&&o.visit(e,t)},`proxyDelegate`),c=typeof n==`function`?s:null,l=!1;if(t){l=typeof t.comment==`boolean`&&t.comment;var u=typeof t.attachComment==`boolean`&&t.attachComment;(l||u)&&(o=new r.CommentHandler,o.attach=u,t.comment=!0,c=s)}var d=!1;t&&typeof t.sourceType==`string`&&(d=t.sourceType===`module`);var f=t&&typeof t.jsx==`boolean`&&t.jsx?new i.JSXParser(e,t,c):new a.Parser(e,t,c),p=d?f.parseModule():f.parseScript();return l&&o&&(p.comments=o.comments),f.config.tokens&&(p.tokens=f.tokens),f.config.tolerant&&(p.errors=f.errorHandler.errors),p}x(s,`parse`),t.parse=s;function c(e,t,n){var r=t||{};return r.sourceType=`module`,s(e,r,n)}x(c,`parseModule`),t.parseModule=c;function l(e,t,n){var r=t||{};return r.sourceType=`script`,s(e,r,n)}x(l,`parseScript`),t.parseScript=l;function u(e,t,n){var r=new o.Tokenizer(e,t),i=[];try{for(;;){var a=r.getNextToken();if(!a)break;n&&(a=n(a)),i.push(a)}}catch(e){r.errorHandler.tolerate(e)}return r.errorHandler.tolerant&&(i.errors=r.errors()),i}x(u,`tokenize`),t.tokenize=u,t.Syntax=n(2).Syntax,t.version=`4.0.1`},function(e,t,n){Object.defineProperty(t,`__esModule`,{value:!0});var r=n(2);t.CommentHandler=function(){function e(){this.attach=!1,this.comments=[],this.stack=[],this.leading=[],this.trailing=[]}return x(e,`CommentHandler`),e.prototype.insertInnerComments=function(e,t){if(e.type===r.Syntax.BlockStatement&&e.body.length===0){for(var n=[],i=this.leading.length-1;i>=0;--i){var a=this.leading[i];t.end.offset>=a.start&&(n.unshift(a.comment),this.leading.splice(i,1),this.trailing.splice(i,1))}n.length&&(e.innerComments=n)}},e.prototype.findTrailingComments=function(e){var t=[];if(this.trailing.length>0){for(var n=this.trailing.length-1;n>=0;--n){var r=this.trailing[n];r.start>=e.end.offset&&t.unshift(r.comment)}return this.trailing.length=0,t}var i=this.stack[this.stack.length-1];if(i&&i.node.trailingComments){var a=i.node.trailingComments[0];a&&a.range[0]>=e.end.offset&&(t=i.node.trailingComments,delete i.node.trailingComments)}return t},e.prototype.findLeadingComments=function(e){for(var t=[],n;this.stack.length>0;){var r=this.stack[this.stack.length-1];if(r&&r.start>=e.start.offset)n=r.node,this.stack.pop();else break}if(n){for(var i=(n.leadingComments?n.leadingComments.length:0)-1;i>=0;--i){var a=n.leadingComments[i];a.range[1]<=e.start.offset&&(t.unshift(a),n.leadingComments.splice(i,1))}return n.leadingComments&&n.leadingComments.length===0&&delete n.leadingComments,t}for(var i=this.leading.length-1;i>=0;--i){var r=this.leading[i];r.start<=e.start.offset&&(t.unshift(r.comment),this.leading.splice(i,1))}return t},e.prototype.visitNode=function(e,t){if(!(e.type===r.Syntax.Program&&e.body.length>0)){this.insertInnerComments(e,t);var n=this.findTrailingComments(t),i=this.findLeadingComments(t);i.length>0&&(e.leadingComments=i),n.length>0&&(e.trailingComments=n),this.stack.push({node:e,start:t.start.offset})}},e.prototype.visitComment=function(e,t){var n=e.type[0]===`L`?`Line`:`Block`,r={type:n,value:e.value};if(e.range&&(r.range=e.range),e.loc&&(r.loc=e.loc),this.comments.push(r),this.attach){var i={comment:{type:n,value:e.value,range:[t.start.offset,t.end.offset]},start:t.start.offset};e.loc&&(i.comment.loc=e.loc),e.type=n,this.leading.push(i),this.trailing.push(i)}},e.prototype.visit=function(e,t){e.type===`LineComment`||e.type===`BlockComment`?this.visitComment(e,t):this.attach&&this.visitNode(e,t)},e}()},function(e,t){Object.defineProperty(t,`__esModule`,{value:!0}),t.Syntax={AssignmentExpression:`AssignmentExpression`,AssignmentPattern:`AssignmentPattern`,ArrayExpression:`ArrayExpression`,ArrayPattern:`ArrayPattern`,ArrowFunctionExpression:`ArrowFunctionExpression`,AwaitExpression:`AwaitExpression`,BlockStatement:`BlockStatement`,BinaryExpression:`BinaryExpression`,BreakStatement:`BreakStatement`,CallExpression:`CallExpression`,CatchClause:`CatchClause`,ClassBody:`ClassBody`,ClassDeclaration:`ClassDeclaration`,ClassExpression:`ClassExpression`,ConditionalExpression:`ConditionalExpression`,ContinueStatement:`ContinueStatement`,DoWhileStatement:`DoWhileStatement`,DebuggerStatement:`DebuggerStatement`,EmptyStatement:`EmptyStatement`,ExportAllDeclaration:`ExportAllDeclaration`,ExportDefaultDeclaration:`ExportDefaultDeclaration`,ExportNamedDeclaration:`ExportNamedDeclaration`,ExportSpecifier:`ExportSpecifier`,ExpressionStatement:`ExpressionStatement`,ForStatement:`ForStatement`,ForOfStatement:`ForOfStatement`,ForInStatement:`ForInStatement`,FunctionDeclaration:`FunctionDeclaration`,FunctionExpression:`FunctionExpression`,Identifier:`Identifier`,IfStatement:`IfStatement`,ImportDeclaration:`ImportDeclaration`,ImportDefaultSpecifier:`ImportDefaultSpecifier`,ImportNamespaceSpecifier:`ImportNamespaceSpecifier`,ImportSpecifier:`ImportSpecifier`,Literal:`Literal`,LabeledStatement:`LabeledStatement`,LogicalExpression:`LogicalExpression`,MemberExpression:`MemberExpression`,MetaProperty:`MetaProperty`,MethodDefinition:`MethodDefinition`,NewExpression:`NewExpression`,ObjectExpression:`ObjectExpression`,ObjectPattern:`ObjectPattern`,Program:`Program`,Property:`Property`,RestElement:`RestElement`,ReturnStatement:`ReturnStatement`,SequenceExpression:`SequenceExpression`,SpreadElement:`SpreadElement`,Super:`Super`,SwitchCase:`SwitchCase`,SwitchStatement:`SwitchStatement`,TaggedTemplateExpression:`TaggedTemplateExpression`,TemplateElement:`TemplateElement`,TemplateLiteral:`TemplateLiteral`,ThisExpression:`ThisExpression`,ThrowStatement:`ThrowStatement`,TryStatement:`TryStatement`,UnaryExpression:`UnaryExpression`,UpdateExpression:`UpdateExpression`,VariableDeclaration:`VariableDeclaration`,VariableDeclarator:`VariableDeclarator`,WhileStatement:`WhileStatement`,WithStatement:`WithStatement`,YieldExpression:`YieldExpression`}},function(e,t,n){var r=this&&this.__extends||function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])};return function(t,n){e(t,n);function r(){this.constructor=t}x(r,`__`),t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}();Object.defineProperty(t,`__esModule`,{value:!0});var i=n(4),a=n(5),o=n(6),s=n(7),c=n(8),l=n(13),u=n(14);l.TokenName[100]=`JSXIdentifier`,l.TokenName[101]=`JSXText`;function d(e){var t;switch(e.type){case o.JSXSyntax.JSXIdentifier:t=e.name;break;case o.JSXSyntax.JSXNamespacedName:var n=e;t=d(n.namespace)+`:`+d(n.name);break;case o.JSXSyntax.JSXMemberExpression:var r=e;t=d(r.object)+`.`+d(r.property);break}return t}x(d,`getQualifiedElementName`),t.JSXParser=function(e){r(t,e);function t(t,n,r){return e.call(this,t,n,r)||this}return x(t,`JSXParser`),t.prototype.parsePrimaryExpression=function(){return this.match(`<`)?this.parseJSXRoot():e.prototype.parsePrimaryExpression.call(this)},t.prototype.startJSX=function(){this.scanner.index=this.startMarker.index,this.scanner.lineNumber=this.startMarker.line,this.scanner.lineStart=this.startMarker.index-this.startMarker.column},t.prototype.finishJSX=function(){this.nextToken()},t.prototype.reenterJSX=function(){this.startJSX(),this.expectJSX(`}`),this.config.tokens&&this.tokens.pop()},t.prototype.createJSXNode=function(){return this.collectComments(),{index:this.scanner.index,line:this.scanner.lineNumber,column:this.scanner.index-this.scanner.lineStart}},t.prototype.createJSXChildNode=function(){return{index:this.scanner.index,line:this.scanner.lineNumber,column:this.scanner.index-this.scanner.lineStart}},t.prototype.scanXHTMLEntity=function(e){for(var t=`&`,n=!0,r=!1,a=!1,o=!1;!this.scanner.eof()&&n&&!r;){var s=this.scanner.source[this.scanner.index];if(s===e)break;if(r=s===`;`,t+=s,++this.scanner.index,!r)switch(t.length){case 2:a=s===`#`;break;case 3:a&&(o=s===`x`,n=o||i.Character.isDecimalDigit(s.charCodeAt(0)),a&&=!o);break;default:n&&=!(a&&!i.Character.isDecimalDigit(s.charCodeAt(0))),n&&=!(o&&!i.Character.isHexDigit(s.charCodeAt(0)));break}}if(n&&r&&t.length>2){var c=t.substr(1,t.length-2);a&&c.length>1?t=String.fromCharCode(parseInt(c.substr(1),10)):o&&c.length>2?t=String.fromCharCode(parseInt(`0`+c.substr(1),16)):!a&&!o&&u.XHTMLEntities[c]&&(t=u.XHTMLEntities[c])}return t},t.prototype.lexJSX=function(){var e=this.scanner.source.charCodeAt(this.scanner.index);if(e===60||e===62||e===47||e===58||e===61||e===123||e===125){var t=this.scanner.source[this.scanner.index++];return{type:7,value:t,lineNumber:this.scanner.lineNumber,lineStart:this.scanner.lineStart,start:this.scanner.index-1,end:this.scanner.index}}if(e===34||e===39){for(var n=this.scanner.index,r=this.scanner.source[this.scanner.index++],a=``;!this.scanner.eof();){var o=this.scanner.source[this.scanner.index++];if(o===r)break;o===`&`?a+=this.scanXHTMLEntity(r):a+=o}return{type:8,value:a,lineNumber:this.scanner.lineNumber,lineStart:this.scanner.lineStart,start:n,end:this.scanner.index}}if(e===46){var s=this.scanner.source.charCodeAt(this.scanner.index+1),c=this.scanner.source.charCodeAt(this.scanner.index+2),t=s===46&&c===46?`...`:`.`,n=this.scanner.index;return this.scanner.index+=t.length,{type:7,value:t,lineNumber:this.scanner.lineNumber,lineStart:this.scanner.lineStart,start:n,end:this.scanner.index}}if(e===96)return{type:10,value:``,lineNumber:this.scanner.lineNumber,lineStart:this.scanner.lineStart,start:this.scanner.index,end:this.scanner.index};if(i.Character.isIdentifierStart(e)&&e!==92){var n=this.scanner.index;for(++this.scanner.index;!this.scanner.eof();){var o=this.scanner.source.charCodeAt(this.scanner.index);if(i.Character.isIdentifierPart(o)&&o!==92)++this.scanner.index;else if(o===45)++this.scanner.index;else break}return{type:100,value:this.scanner.source.slice(n,this.scanner.index),lineNumber:this.scanner.lineNumber,lineStart:this.scanner.lineStart,start:n,end:this.scanner.index}}return this.scanner.lex()},t.prototype.nextJSXToken=function(){this.collectComments(),this.startMarker.index=this.scanner.index,this.startMarker.line=this.scanner.lineNumber,this.startMarker.column=this.scanner.index-this.scanner.lineStart;var e=this.lexJSX();return this.lastMarker.index=this.scanner.index,this.lastMarker.line=this.scanner.lineNumber,this.lastMarker.column=this.scanner.index-this.scanner.lineStart,this.config.tokens&&this.tokens.push(this.convertToken(e)),e},t.prototype.nextJSXText=function(){this.startMarker.index=this.scanner.index,this.startMarker.line=this.scanner.lineNumber,this.startMarker.column=this.scanner.index-this.scanner.lineStart;for(var e=this.scanner.index,t=``;!this.scanner.eof();){var n=this.scanner.source[this.scanner.index];if(n===`{`||n===`<`)break;++this.scanner.index,t+=n,i.Character.isLineTerminator(n.charCodeAt(0))&&(++this.scanner.lineNumber,n===`\r`&&this.scanner.source[this.scanner.index]===`
5
+ `}x(c,`getLineTerminator`),e.getLineTerminator=c;function l(){return typeof window<`u`&&window.document!==void 0}x(l,`isBrowser`),e.isBrowser=l;function u(e,t,n){return e&&s.call(e,t)?e[t]:n}x(u,`getOption`),e.getOption=u;function d(){for(var e=[...arguments],t={},n=e.length,r=0;r<n;++r)for(var i=Object.keys(e[r]),a=i.length,o=0;o<a;++o)t[i[o]]=!0;return t}x(d,`getUnionOfKeys`),e.getUnionOfKeys=d;function f(e,t){return e.line-t.line||e.column-t.column}x(f,`comparePos`),e.comparePos=f;function p(e){return{line:e.line,column:e.column}}x(p,`copyPos`),e.copyPos=p;function m(e,t){if(e){if(!t)return e}else return t||null;var n=new a(e),r=new a(t),i=new o({file:t.file,sourceRoot:t.sourceRoot}),c={};return r.eachMapping(function(e){var t=n.originalPositionFor({line:e.originalLine,column:e.originalColumn}),r=t.source;if(r!==null){i.addMapping({source:r,original:p(t),generated:{line:e.generatedLine,column:e.generatedColumn},name:e.name});var a=n.sourceContentFor(r);a&&!s.call(c,r)&&(c[r]=a,i.setSourceContent(r,a))}}),i.toJSON()}x(m,`composeSourceMaps`),e.composeSourceMaps=m;function h(e,t){if(!e.loc)return null;var n={start:e.loc.start,end:e.loc.end};function r(e){g(n,e.loc)}return x(r,`include`),e.declaration&&e.declaration.decorators&&S(e)&&e.declaration.decorators.forEach(r),f(n.start,n.end)<0&&(n.start=p(n.start),t.skipSpaces(n.start,!1,!0),f(n.start,n.end)<0&&(n.end=p(n.end),t.skipSpaces(n.end,!0,!0))),e.comments&&e.comments.forEach(r),n}x(h,`getTrueLoc`),e.getTrueLoc=h;function g(e,t){e&&t&&(f(t.start,e.start)<0&&(e.start=t.start),f(e.end,t.end)<0&&(e.end=t.end))}x(g,`expandLoc`);function _(e,t){var n=e.loc;if(n&&(n.start.line<1&&(n.start.line=1),n.end.line<1&&(n.end.line=1)),e.type===`File`&&(n.start=t.firstPos(),n.end=t.lastPos()),v(e,t),y(e,t),n&&e.decorators)e.decorators.forEach(function(e){g(n,e.loc)});else if(e.declaration&&S(e)){e.declaration.loc=null;var i=e.declaration.decorators;i&&i.forEach(function(e){g(n,e.loc)})}else if(r.MethodDefinition&&r.MethodDefinition.check(e)||r.Property.check(e)&&(e.method||e.shorthand))e.value.loc=null,r.FunctionExpression.check(e.value)&&(e.value.id=null);else if(e.type===`ObjectTypeProperty`){var a=e.loc,o=a&&a.end;o&&(o=p(o),t.prevPos(o)&&t.charAt(o)===`,`&&(o=t.skipSpaces(o,!0,!0))&&(a.end=o))}}x(_,`fixFaultyLocations`),e.fixFaultyLocations=_;function v(e,t){if(e.type!==`ForStatement`)return;function n(e){for(var n=e&&e.loc,r=n&&n.start,i=n&&p(n.end);r&&i&&f(r,i)<0&&(t.prevPos(i),t.charAt(i)===`;`);)n.end.line=i.line,n.end.column=i.column}x(n,`fix`),n(e.init),n(e.test),n(e.update)}x(v,`fixForLoopHead`);function y(e,t){if(e.type===`TemplateLiteral`&&e.quasis.length!==0){if(e.loc){var r=p(e.loc.start);(0,n.default)(t.charAt(r)==="`"),(0,n.default)(t.nextPos(r));var i=e.quasis[0];f(i.loc.start,r)<0&&(i.loc.start=r);var a=p(e.loc.end);(0,n.default)(t.prevPos(a)),(0,n.default)(t.charAt(a)==="`");var o=e.quasis[e.quasis.length-1];f(a,o.loc.end)<0&&(o.loc.end=a)}e.expressions.forEach(function(r,i){var a=t.skipSpaces(r.loc.start,!0,!1);if(t.prevPos(a)&&t.charAt(a)===`{`&&t.prevPos(a)&&t.charAt(a)===`$`){var o=e.quasis[i];f(a,o.loc.end)<0&&(o.loc.end=a)}var s=t.skipSpaces(r.loc.end,!1,!1);if(t.charAt(s)===`}`){(0,n.default)(t.nextPos(s));var c=e.quasis[i+1];f(c.loc.start,s)<0&&(c.loc.start=s)}})}}x(y,`fixTemplateLiteral`);function S(e){if(e)switch(e.type){case`ExportDeclaration`:case`ExportDefaultDeclaration`:case`ExportDefaultSpecifier`:case`DeclareExportDeclaration`:case`ExportNamedDeclaration`:case`ExportAllDeclaration`:return!0}return!1}x(S,`isExportDeclaration`),e.isExportDeclaration=S;function w(e){var t=e.getParentNode();return e.getName()===`declaration`&&S(t)?t:null}x(w,`getParentExportDeclaration`),e.getParentExportDeclaration=w;function T(e,t){var n=e.trailingComma;return typeof n==`object`?!!n[t]:!!n}x(T,`isTrailingCommaEnabled`),e.isTrailingCommaEnabled=T}}),kn=E({"../../node_modules/.pnpm/esprima@4.0.1/node_modules/esprima/dist/esprima.js"(e,t){x(function(n,r){typeof e==`object`&&typeof t==`object`?t.exports=r():typeof define==`function`&&define.amd?define([],r):typeof e==`object`?e.esprima=r():n.esprima=r()},`webpackUniversalModuleDefinition`)(e,function(){return function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={exports:{},id:r,loaded:!1};return e[r].call(i.exports,i,i.exports,n),i.loaded=!0,i.exports}return x(n,`__webpack_require__`),n.m=e,n.c=t,n.p=``,n(0)}([function(e,t,n){Object.defineProperty(t,`__esModule`,{value:!0});var r=n(1),i=n(3),a=n(8),o=n(15);function s(e,t,n){var o=null,s=x(function(e,t){n&&n(e,t),o&&o.visit(e,t)},`proxyDelegate`),c=typeof n==`function`?s:null,l=!1;if(t){l=typeof t.comment==`boolean`&&t.comment;var u=typeof t.attachComment==`boolean`&&t.attachComment;(l||u)&&(o=new r.CommentHandler,o.attach=u,t.comment=!0,c=s)}var d=!1;t&&typeof t.sourceType==`string`&&(d=t.sourceType===`module`);var f=t&&typeof t.jsx==`boolean`&&t.jsx?new i.JSXParser(e,t,c):new a.Parser(e,t,c),p=d?f.parseModule():f.parseScript();return l&&o&&(p.comments=o.comments),f.config.tokens&&(p.tokens=f.tokens),f.config.tolerant&&(p.errors=f.errorHandler.errors),p}x(s,`parse`),t.parse=s;function c(e,t,n){var r=t||{};return r.sourceType=`module`,s(e,r,n)}x(c,`parseModule`),t.parseModule=c;function l(e,t,n){var r=t||{};return r.sourceType=`script`,s(e,r,n)}x(l,`parseScript`),t.parseScript=l;function u(e,t,n){var r=new o.Tokenizer(e,t),i=[];try{for(;;){var a=r.getNextToken();if(!a)break;n&&(a=n(a)),i.push(a)}}catch(e){r.errorHandler.tolerate(e)}return r.errorHandler.tolerant&&(i.errors=r.errors()),i}x(u,`tokenize`),t.tokenize=u,t.Syntax=n(2).Syntax,t.version=`4.0.1`},function(e,t,n){Object.defineProperty(t,`__esModule`,{value:!0});var r=n(2);t.CommentHandler=function(){function e(){this.attach=!1,this.comments=[],this.stack=[],this.leading=[],this.trailing=[]}return x(e,`CommentHandler`),e.prototype.insertInnerComments=function(e,t){if(e.type===r.Syntax.BlockStatement&&e.body.length===0){for(var n=[],i=this.leading.length-1;i>=0;--i){var a=this.leading[i];t.end.offset>=a.start&&(n.unshift(a.comment),this.leading.splice(i,1),this.trailing.splice(i,1))}n.length&&(e.innerComments=n)}},e.prototype.findTrailingComments=function(e){var t=[];if(this.trailing.length>0){for(var n=this.trailing.length-1;n>=0;--n){var r=this.trailing[n];r.start>=e.end.offset&&t.unshift(r.comment)}return this.trailing.length=0,t}var i=this.stack[this.stack.length-1];if(i&&i.node.trailingComments){var a=i.node.trailingComments[0];a&&a.range[0]>=e.end.offset&&(t=i.node.trailingComments,delete i.node.trailingComments)}return t},e.prototype.findLeadingComments=function(e){for(var t=[],n;this.stack.length>0;){var r=this.stack[this.stack.length-1];if(r&&r.start>=e.start.offset)n=r.node,this.stack.pop();else break}if(n){for(var i=(n.leadingComments?n.leadingComments.length:0)-1;i>=0;--i){var a=n.leadingComments[i];a.range[1]<=e.start.offset&&(t.unshift(a),n.leadingComments.splice(i,1))}return n.leadingComments&&n.leadingComments.length===0&&delete n.leadingComments,t}for(var i=this.leading.length-1;i>=0;--i){var r=this.leading[i];r.start<=e.start.offset&&(t.unshift(r.comment),this.leading.splice(i,1))}return t},e.prototype.visitNode=function(e,t){if(!(e.type===r.Syntax.Program&&e.body.length>0)){this.insertInnerComments(e,t);var n=this.findTrailingComments(t),i=this.findLeadingComments(t);i.length>0&&(e.leadingComments=i),n.length>0&&(e.trailingComments=n),this.stack.push({node:e,start:t.start.offset})}},e.prototype.visitComment=function(e,t){var n=e.type[0]===`L`?`Line`:`Block`,r={type:n,value:e.value};if(e.range&&(r.range=e.range),e.loc&&(r.loc=e.loc),this.comments.push(r),this.attach){var i={comment:{type:n,value:e.value,range:[t.start.offset,t.end.offset]},start:t.start.offset};e.loc&&(i.comment.loc=e.loc),e.type=n,this.leading.push(i),this.trailing.push(i)}},e.prototype.visit=function(e,t){e.type===`LineComment`||e.type===`BlockComment`?this.visitComment(e,t):this.attach&&this.visitNode(e,t)},e}()},function(e,t){Object.defineProperty(t,`__esModule`,{value:!0}),t.Syntax={AssignmentExpression:`AssignmentExpression`,AssignmentPattern:`AssignmentPattern`,ArrayExpression:`ArrayExpression`,ArrayPattern:`ArrayPattern`,ArrowFunctionExpression:`ArrowFunctionExpression`,AwaitExpression:`AwaitExpression`,BlockStatement:`BlockStatement`,BinaryExpression:`BinaryExpression`,BreakStatement:`BreakStatement`,CallExpression:`CallExpression`,CatchClause:`CatchClause`,ClassBody:`ClassBody`,ClassDeclaration:`ClassDeclaration`,ClassExpression:`ClassExpression`,ConditionalExpression:`ConditionalExpression`,ContinueStatement:`ContinueStatement`,DoWhileStatement:`DoWhileStatement`,DebuggerStatement:`DebuggerStatement`,EmptyStatement:`EmptyStatement`,ExportAllDeclaration:`ExportAllDeclaration`,ExportDefaultDeclaration:`ExportDefaultDeclaration`,ExportNamedDeclaration:`ExportNamedDeclaration`,ExportSpecifier:`ExportSpecifier`,ExpressionStatement:`ExpressionStatement`,ForStatement:`ForStatement`,ForOfStatement:`ForOfStatement`,ForInStatement:`ForInStatement`,FunctionDeclaration:`FunctionDeclaration`,FunctionExpression:`FunctionExpression`,Identifier:`Identifier`,IfStatement:`IfStatement`,ImportDeclaration:`ImportDeclaration`,ImportDefaultSpecifier:`ImportDefaultSpecifier`,ImportNamespaceSpecifier:`ImportNamespaceSpecifier`,ImportSpecifier:`ImportSpecifier`,Literal:`Literal`,LabeledStatement:`LabeledStatement`,LogicalExpression:`LogicalExpression`,MemberExpression:`MemberExpression`,MetaProperty:`MetaProperty`,MethodDefinition:`MethodDefinition`,NewExpression:`NewExpression`,ObjectExpression:`ObjectExpression`,ObjectPattern:`ObjectPattern`,Program:`Program`,Property:`Property`,RestElement:`RestElement`,ReturnStatement:`ReturnStatement`,SequenceExpression:`SequenceExpression`,SpreadElement:`SpreadElement`,Super:`Super`,SwitchCase:`SwitchCase`,SwitchStatement:`SwitchStatement`,TaggedTemplateExpression:`TaggedTemplateExpression`,TemplateElement:`TemplateElement`,TemplateLiteral:`TemplateLiteral`,ThisExpression:`ThisExpression`,ThrowStatement:`ThrowStatement`,TryStatement:`TryStatement`,UnaryExpression:`UnaryExpression`,UpdateExpression:`UpdateExpression`,VariableDeclaration:`VariableDeclaration`,VariableDeclarator:`VariableDeclarator`,WhileStatement:`WhileStatement`,WithStatement:`WithStatement`,YieldExpression:`YieldExpression`}},function(e,t,n){var r=this&&this.__extends||function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])};return function(t,n){e(t,n);function r(){this.constructor=t}x(r,`__`),t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}();Object.defineProperty(t,`__esModule`,{value:!0});var i=n(4),a=n(5),o=n(6),s=n(7),c=n(8),l=n(13),u=n(14);l.TokenName[100]=`JSXIdentifier`,l.TokenName[101]=`JSXText`;function d(e){var t;switch(e.type){case o.JSXSyntax.JSXIdentifier:t=e.name;break;case o.JSXSyntax.JSXNamespacedName:var n=e;t=d(n.namespace)+`:`+d(n.name);break;case o.JSXSyntax.JSXMemberExpression:var r=e;t=d(r.object)+`.`+d(r.property);break}return t}x(d,`getQualifiedElementName`),t.JSXParser=function(e){r(t,e);function t(t,n,r){return e.call(this,t,n,r)||this}return x(t,`JSXParser`),t.prototype.parsePrimaryExpression=function(){return this.match(`<`)?this.parseJSXRoot():e.prototype.parsePrimaryExpression.call(this)},t.prototype.startJSX=function(){this.scanner.index=this.startMarker.index,this.scanner.lineNumber=this.startMarker.line,this.scanner.lineStart=this.startMarker.index-this.startMarker.column},t.prototype.finishJSX=function(){this.nextToken()},t.prototype.reenterJSX=function(){this.startJSX(),this.expectJSX(`}`),this.config.tokens&&this.tokens.pop()},t.prototype.createJSXNode=function(){return this.collectComments(),{index:this.scanner.index,line:this.scanner.lineNumber,column:this.scanner.index-this.scanner.lineStart}},t.prototype.createJSXChildNode=function(){return{index:this.scanner.index,line:this.scanner.lineNumber,column:this.scanner.index-this.scanner.lineStart}},t.prototype.scanXHTMLEntity=function(e){for(var t=`&`,n=!0,r=!1,a=!1,o=!1;!this.scanner.eof()&&n&&!r;){var s=this.scanner.source[this.scanner.index];if(s===e)break;if(r=s===`;`,t+=s,++this.scanner.index,!r)switch(t.length){case 2:a=s===`#`;break;case 3:a&&(o=s===`x`,n=o||i.Character.isDecimalDigit(s.charCodeAt(0)),a&&=!o);break;default:n&&=!(a&&!i.Character.isDecimalDigit(s.charCodeAt(0))),n&&=!(o&&!i.Character.isHexDigit(s.charCodeAt(0)));break}}if(n&&r&&t.length>2){var c=t.substr(1,t.length-2);a&&c.length>1?t=String.fromCharCode(parseInt(c.substr(1),10)):o&&c.length>2?t=String.fromCharCode(parseInt(`0`+c.substr(1),16)):!a&&!o&&u.XHTMLEntities[c]&&(t=u.XHTMLEntities[c])}return t},t.prototype.lexJSX=function(){var e=this.scanner.source.charCodeAt(this.scanner.index);if(e===60||e===62||e===47||e===58||e===61||e===123||e===125){var t=this.scanner.source[this.scanner.index++];return{type:7,value:t,lineNumber:this.scanner.lineNumber,lineStart:this.scanner.lineStart,start:this.scanner.index-1,end:this.scanner.index}}if(e===34||e===39){for(var n=this.scanner.index,r=this.scanner.source[this.scanner.index++],a=``;!this.scanner.eof();){var o=this.scanner.source[this.scanner.index++];if(o===r)break;o===`&`?a+=this.scanXHTMLEntity(r):a+=o}return{type:8,value:a,lineNumber:this.scanner.lineNumber,lineStart:this.scanner.lineStart,start:n,end:this.scanner.index}}if(e===46){var s=this.scanner.source.charCodeAt(this.scanner.index+1),c=this.scanner.source.charCodeAt(this.scanner.index+2),t=s===46&&c===46?`...`:`.`,n=this.scanner.index;return this.scanner.index+=t.length,{type:7,value:t,lineNumber:this.scanner.lineNumber,lineStart:this.scanner.lineStart,start:n,end:this.scanner.index}}if(e===96)return{type:10,value:``,lineNumber:this.scanner.lineNumber,lineStart:this.scanner.lineStart,start:this.scanner.index,end:this.scanner.index};if(i.Character.isIdentifierStart(e)&&e!==92){var n=this.scanner.index;for(++this.scanner.index;!this.scanner.eof();){var o=this.scanner.source.charCodeAt(this.scanner.index);if(i.Character.isIdentifierPart(o)&&o!==92)++this.scanner.index;else if(o===45)++this.scanner.index;else break}return{type:100,value:this.scanner.source.slice(n,this.scanner.index),lineNumber:this.scanner.lineNumber,lineStart:this.scanner.lineStart,start:n,end:this.scanner.index}}return this.scanner.lex()},t.prototype.nextJSXToken=function(){this.collectComments(),this.startMarker.index=this.scanner.index,this.startMarker.line=this.scanner.lineNumber,this.startMarker.column=this.scanner.index-this.scanner.lineStart;var e=this.lexJSX();return this.lastMarker.index=this.scanner.index,this.lastMarker.line=this.scanner.lineNumber,this.lastMarker.column=this.scanner.index-this.scanner.lineStart,this.config.tokens&&this.tokens.push(this.convertToken(e)),e},t.prototype.nextJSXText=function(){this.startMarker.index=this.scanner.index,this.startMarker.line=this.scanner.lineNumber,this.startMarker.column=this.scanner.index-this.scanner.lineStart;for(var e=this.scanner.index,t=``;!this.scanner.eof();){var n=this.scanner.source[this.scanner.index];if(n===`{`||n===`<`)break;++this.scanner.index,t+=n,i.Character.isLineTerminator(n.charCodeAt(0))&&(++this.scanner.lineNumber,n===`\r`&&this.scanner.source[this.scanner.index]===`
6
6
  `&&++this.scanner.index,this.scanner.lineStart=this.scanner.index)}this.lastMarker.index=this.scanner.index,this.lastMarker.line=this.scanner.lineNumber,this.lastMarker.column=this.scanner.index-this.scanner.lineStart;var r={type:101,value:t,lineNumber:this.scanner.lineNumber,lineStart:this.scanner.lineStart,start:e,end:this.scanner.index};return t.length>0&&this.config.tokens&&this.tokens.push(this.convertToken(r)),r},t.prototype.peekJSXToken=function(){var e=this.scanner.saveState();this.scanner.scanComments();var t=this.lexJSX();return this.scanner.restoreState(e),t},t.prototype.expectJSX=function(e){var t=this.nextJSXToken();(t.type!==7||t.value!==e)&&this.throwUnexpectedToken(t)},t.prototype.matchJSX=function(e){var t=this.peekJSXToken();return t.type===7&&t.value===e},t.prototype.parseJSXIdentifier=function(){var e=this.createJSXNode(),t=this.nextJSXToken();return t.type!==100&&this.throwUnexpectedToken(t),this.finalize(e,new a.JSXIdentifier(t.value))},t.prototype.parseJSXElementName=function(){var e=this.createJSXNode(),t=this.parseJSXIdentifier();if(this.matchJSX(`:`)){var n=t;this.expectJSX(`:`);var r=this.parseJSXIdentifier();t=this.finalize(e,new a.JSXNamespacedName(n,r))}else if(this.matchJSX(`.`))for(;this.matchJSX(`.`);){var i=t;this.expectJSX(`.`);var o=this.parseJSXIdentifier();t=this.finalize(e,new a.JSXMemberExpression(i,o))}return t},t.prototype.parseJSXAttributeName=function(){var e=this.createJSXNode(),t,n=this.parseJSXIdentifier();if(this.matchJSX(`:`)){var r=n;this.expectJSX(`:`);var i=this.parseJSXIdentifier();t=this.finalize(e,new a.JSXNamespacedName(r,i))}else t=n;return t},t.prototype.parseJSXStringLiteralAttribute=function(){var e=this.createJSXNode(),t=this.nextJSXToken();t.type!==8&&this.throwUnexpectedToken(t);var n=this.getTokenRaw(t);return this.finalize(e,new s.Literal(t.value,n))},t.prototype.parseJSXExpressionAttribute=function(){var e=this.createJSXNode();this.expectJSX(`{`),this.finishJSX(),this.match(`}`)&&this.tolerateError(`JSX attributes must only be assigned a non-empty expression`);var t=this.parseAssignmentExpression();return this.reenterJSX(),this.finalize(e,new a.JSXExpressionContainer(t))},t.prototype.parseJSXAttributeValue=function(){return this.matchJSX(`{`)?this.parseJSXExpressionAttribute():this.matchJSX(`<`)?this.parseJSXElement():this.parseJSXStringLiteralAttribute()},t.prototype.parseJSXNameValueAttribute=function(){var e=this.createJSXNode(),t=this.parseJSXAttributeName(),n=null;return this.matchJSX(`=`)&&(this.expectJSX(`=`),n=this.parseJSXAttributeValue()),this.finalize(e,new a.JSXAttribute(t,n))},t.prototype.parseJSXSpreadAttribute=function(){var e=this.createJSXNode();this.expectJSX(`{`),this.expectJSX(`...`),this.finishJSX();var t=this.parseAssignmentExpression();return this.reenterJSX(),this.finalize(e,new a.JSXSpreadAttribute(t))},t.prototype.parseJSXAttributes=function(){for(var e=[];!this.matchJSX(`/`)&&!this.matchJSX(`>`);){var t=this.matchJSX(`{`)?this.parseJSXSpreadAttribute():this.parseJSXNameValueAttribute();e.push(t)}return e},t.prototype.parseJSXOpeningElement=function(){var e=this.createJSXNode();this.expectJSX(`<`);var t=this.parseJSXElementName(),n=this.parseJSXAttributes(),r=this.matchJSX(`/`);return r&&this.expectJSX(`/`),this.expectJSX(`>`),this.finalize(e,new a.JSXOpeningElement(t,r,n))},t.prototype.parseJSXBoundaryElement=function(){var e=this.createJSXNode();if(this.expectJSX(`<`),this.matchJSX(`/`)){this.expectJSX(`/`);var t=this.parseJSXElementName();return this.expectJSX(`>`),this.finalize(e,new a.JSXClosingElement(t))}var n=this.parseJSXElementName(),r=this.parseJSXAttributes(),i=this.matchJSX(`/`);return i&&this.expectJSX(`/`),this.expectJSX(`>`),this.finalize(e,new a.JSXOpeningElement(n,i,r))},t.prototype.parseJSXEmptyExpression=function(){var e=this.createJSXChildNode();return this.collectComments(),this.lastMarker.index=this.scanner.index,this.lastMarker.line=this.scanner.lineNumber,this.lastMarker.column=this.scanner.index-this.scanner.lineStart,this.finalize(e,new a.JSXEmptyExpression)},t.prototype.parseJSXExpressionContainer=function(){var e=this.createJSXNode();this.expectJSX(`{`);var t;return this.matchJSX(`}`)?(t=this.parseJSXEmptyExpression(),this.expectJSX(`}`)):(this.finishJSX(),t=this.parseAssignmentExpression(),this.reenterJSX()),this.finalize(e,new a.JSXExpressionContainer(t))},t.prototype.parseJSXChildren=function(){for(var e=[];!this.scanner.eof();){var t=this.createJSXChildNode(),n=this.nextJSXText();if(n.start<n.end){var r=this.getTokenRaw(n),i=this.finalize(t,new a.JSXText(n.value,r));e.push(i)}if(this.scanner.source[this.scanner.index]===`{`){var o=this.parseJSXExpressionContainer();e.push(o)}else break}return e},t.prototype.parseComplexJSXElement=function(e){for(var t=[];!this.scanner.eof();){e.children=e.children.concat(this.parseJSXChildren());var n=this.createJSXChildNode(),r=this.parseJSXBoundaryElement();if(r.type===o.JSXSyntax.JSXOpeningElement){var i=r;if(i.selfClosing){var s=this.finalize(n,new a.JSXElement(i,[],null));e.children.push(s)}else t.push(e),e={node:n,opening:i,closing:null,children:[]}}if(r.type===o.JSXSyntax.JSXClosingElement){e.closing=r;var c=d(e.opening.name);if(c!==d(e.closing.name)&&this.tolerateError(`Expected corresponding JSX closing tag for %0`,c),t.length>0){var s=this.finalize(e.node,new a.JSXElement(e.opening,e.children,e.closing));e=t[t.length-1],e.children.push(s),t.pop()}else break}}return e},t.prototype.parseJSXElement=function(){var e=this.createJSXNode(),t=this.parseJSXOpeningElement(),n=[],r=null;if(!t.selfClosing){var i=this.parseComplexJSXElement({node:e,opening:t,closing:r,children:n});n=i.children,r=i.closing}return this.finalize(e,new a.JSXElement(t,n,r))},t.prototype.parseJSXRoot=function(){this.config.tokens&&this.tokens.pop(),this.startJSX();var e=this.parseJSXElement();return this.finishJSX(),e},t.prototype.isStartOfExpression=function(){return e.prototype.isStartOfExpression.call(this)||this.match(`<`)},t}(c.Parser)},function(e,t){Object.defineProperty(t,`__esModule`,{value:!0});var n={NonAsciiIdentifierStart:/[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0-\u08B4\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C60\u0C61\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2118-\u211D\u2124\u2126\u2128\u212A-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309B-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FD5\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AD\uA7B0-\uA7B7\uA7F7-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD40-\uDD74\uDE80-\uDE9C\uDEA0-\uDED0\uDF00-\uDF1F\uDF30-\uDF4A\uDF50-\uDF75\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00\uDE10-\uDE13\uDE15-\uDE17\uDE19-\uDE33\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE4\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2]|\uD804[\uDC03-\uDC37\uDC83-\uDCAF\uDCD0-\uDCE8\uDD03-\uDD26\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE2B\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEDE\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF50\uDF5D-\uDF61]|\uD805[\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE80-\uDEAA\uDF00-\uDF19]|\uD806[\uDCA0-\uDCDF\uDCFF\uDEC0-\uDEF8]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50\uDF93-\uDF9F]|\uD82C[\uDC00\uDC01]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB]|\uD83A[\uDC00-\uDCC4]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1]|\uD87E[\uDC00-\uDE1D]/,NonAsciiIdentifierPart:/[\xAA\xB5\xB7\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0300-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u0483-\u0487\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u05D0-\u05EA\u05F0-\u05F2\u0610-\u061A\u0620-\u0669\u066E-\u06D3\u06D5-\u06DC\u06DF-\u06E8\u06EA-\u06FC\u06FF\u0710-\u074A\u074D-\u07B1\u07C0-\u07F5\u07FA\u0800-\u082D\u0840-\u085B\u08A0-\u08B4\u08E3-\u0963\u0966-\u096F\u0971-\u0983\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BC-\u09C4\u09C7\u09C8\u09CB-\u09CE\u09D7\u09DC\u09DD\u09DF-\u09E3\u09E6-\u09F1\u0A01-\u0A03\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A59-\u0A5C\u0A5E\u0A66-\u0A75\u0A81-\u0A83\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABC-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AD0\u0AE0-\u0AE3\u0AE6-\u0AEF\u0AF9\u0B01-\u0B03\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3C-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B56\u0B57\u0B5C\u0B5D\u0B5F-\u0B63\u0B66-\u0B6F\u0B71\u0B82\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD0\u0BD7\u0BE6-\u0BEF\u0C00-\u0C03\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C58-\u0C5A\u0C60-\u0C63\u0C66-\u0C6F\u0C81-\u0C83\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBC-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CDE\u0CE0-\u0CE3\u0CE6-\u0CEF\u0CF1\u0CF2\u0D01-\u0D03\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D-\u0D44\u0D46-\u0D48\u0D4A-\u0D4E\u0D57\u0D5F-\u0D63\u0D66-\u0D6F\u0D7A-\u0D7F\u0D82\u0D83\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E01-\u0E3A\u0E40-\u0E4E\u0E50-\u0E59\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB9\u0EBB-\u0EBD\u0EC0-\u0EC4\u0EC6\u0EC8-\u0ECD\u0ED0-\u0ED9\u0EDC-\u0EDF\u0F00\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E-\u0F47\u0F49-\u0F6C\u0F71-\u0F84\u0F86-\u0F97\u0F99-\u0FBC\u0FC6\u1000-\u1049\u1050-\u109D\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u135D-\u135F\u1369-\u1371\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1714\u1720-\u1734\u1740-\u1753\u1760-\u176C\u176E-\u1770\u1772\u1773\u1780-\u17D3\u17D7\u17DC\u17DD\u17E0-\u17E9\u180B-\u180D\u1810-\u1819\u1820-\u1877\u1880-\u18AA\u18B0-\u18F5\u1900-\u191E\u1920-\u192B\u1930-\u193B\u1946-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u19D0-\u19DA\u1A00-\u1A1B\u1A20-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AA7\u1AB0-\u1ABD\u1B00-\u1B4B\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1BF3\u1C00-\u1C37\u1C40-\u1C49\u1C4D-\u1C7D\u1CD0-\u1CD2\u1CD4-\u1CF6\u1CF8\u1CF9\u1D00-\u1DF5\u1DFC-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u200C\u200D\u203F\u2040\u2054\u2071\u207F\u2090-\u209C\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2102\u2107\u210A-\u2113\u2115\u2118-\u211D\u2124\u2126\u2128\u212A-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D7F-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2DE0-\u2DFF\u3005-\u3007\u3021-\u302F\u3031-\u3035\u3038-\u303C\u3041-\u3096\u3099-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FD5\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA66F\uA674-\uA67D\uA67F-\uA6F1\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AD\uA7B0-\uA7B7\uA7F7-\uA827\uA840-\uA873\uA880-\uA8C4\uA8D0-\uA8D9\uA8E0-\uA8F7\uA8FB\uA8FD\uA900-\uA92D\uA930-\uA953\uA960-\uA97C\uA980-\uA9C0\uA9CF-\uA9D9\uA9E0-\uA9FE\uAA00-\uAA36\uAA40-\uAA4D\uAA50-\uAA59\uAA60-\uAA76\uAA7A-\uAAC2\uAADB-\uAADD\uAAE0-\uAAEF\uAAF2-\uAAF6\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABEA\uABEC\uABED\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE00-\uFE0F\uFE20-\uFE2F\uFE33\uFE34\uFE4D-\uFE4F\uFE70-\uFE74\uFE76-\uFEFC\uFF10-\uFF19\uFF21-\uFF3A\uFF3F\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD40-\uDD74\uDDFD\uDE80-\uDE9C\uDEA0-\uDED0\uDEE0\uDF00-\uDF1F\uDF30-\uDF4A\uDF50-\uDF7A\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCA0-\uDCA9\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00-\uDE03\uDE05\uDE06\uDE0C-\uDE13\uDE15-\uDE17\uDE19-\uDE33\uDE38-\uDE3A\uDE3F\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE6\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2]|\uD804[\uDC00-\uDC46\uDC66-\uDC6F\uDC7F-\uDCBA\uDCD0-\uDCE8\uDCF0-\uDCF9\uDD00-\uDD34\uDD36-\uDD3F\uDD50-\uDD73\uDD76\uDD80-\uDDC4\uDDCA-\uDDCC\uDDD0-\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE37\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEEA\uDEF0-\uDEF9\uDF00-\uDF03\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3C-\uDF44\uDF47\uDF48\uDF4B-\uDF4D\uDF50\uDF57\uDF5D-\uDF63\uDF66-\uDF6C\uDF70-\uDF74]|\uD805[\uDC80-\uDCC5\uDCC7\uDCD0-\uDCD9\uDD80-\uDDB5\uDDB8-\uDDC0\uDDD8-\uDDDD\uDE00-\uDE40\uDE44\uDE50-\uDE59\uDE80-\uDEB7\uDEC0-\uDEC9\uDF00-\uDF19\uDF1D-\uDF2B\uDF30-\uDF39]|\uD806[\uDCA0-\uDCE9\uDCFF\uDEC0-\uDEF8]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDE60-\uDE69\uDED0-\uDEED\uDEF0-\uDEF4\uDF00-\uDF36\uDF40-\uDF43\uDF50-\uDF59\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50-\uDF7E\uDF8F-\uDF9F]|\uD82C[\uDC00\uDC01]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99\uDC9D\uDC9E]|\uD834[\uDD65-\uDD69\uDD6D-\uDD72\uDD7B-\uDD82\uDD85-\uDD8B\uDDAA-\uDDAD\uDE42-\uDE44]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB\uDFCE-\uDFFF]|\uD836[\uDE00-\uDE36\uDE3B-\uDE6C\uDE75\uDE84\uDE9B-\uDE9F\uDEA1-\uDEAF]|\uD83A[\uDC00-\uDCC4\uDCD0-\uDCD6]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1]|\uD87E[\uDC00-\uDE1D]|\uDB40[\uDD00-\uDDEF]/};t.Character={fromCodePoint:x(function(e){return e<65536?String.fromCharCode(e):String.fromCharCode(55296+(e-65536>>10))+String.fromCharCode(56320+(e-65536&1023))},`fromCodePoint`),isWhiteSpace:x(function(e){return e===32||e===9||e===11||e===12||e===160||e>=5760&&[5760,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8239,8287,12288,65279].indexOf(e)>=0},`isWhiteSpace`),isLineTerminator:x(function(e){return e===10||e===13||e===8232||e===8233},`isLineTerminator`),isIdentifierStart:x(function(e){return e===36||e===95||e>=65&&e<=90||e>=97&&e<=122||e===92||e>=128&&n.NonAsciiIdentifierStart.test(t.Character.fromCodePoint(e))},`isIdentifierStart`),isIdentifierPart:x(function(e){return e===36||e===95||e>=65&&e<=90||e>=97&&e<=122||e>=48&&e<=57||e===92||e>=128&&n.NonAsciiIdentifierPart.test(t.Character.fromCodePoint(e))},`isIdentifierPart`),isDecimalDigit:x(function(e){return e>=48&&e<=57},`isDecimalDigit`),isHexDigit:x(function(e){return e>=48&&e<=57||e>=65&&e<=70||e>=97&&e<=102},`isHexDigit`),isOctalDigit:x(function(e){return e>=48&&e<=55},`isOctalDigit`)}},function(e,t,n){Object.defineProperty(t,`__esModule`,{value:!0});var r=n(6);t.JSXClosingElement=function(){function e(e){this.type=r.JSXSyntax.JSXClosingElement,this.name=e}return x(e,`JSXClosingElement`),e}(),t.JSXElement=function(){function e(e,t,n){this.type=r.JSXSyntax.JSXElement,this.openingElement=e,this.children=t,this.closingElement=n}return x(e,`JSXElement`),e}(),t.JSXEmptyExpression=function(){function e(){this.type=r.JSXSyntax.JSXEmptyExpression}return x(e,`JSXEmptyExpression`),e}(),t.JSXExpressionContainer=function(){function e(e){this.type=r.JSXSyntax.JSXExpressionContainer,this.expression=e}return x(e,`JSXExpressionContainer`),e}(),t.JSXIdentifier=function(){function e(e){this.type=r.JSXSyntax.JSXIdentifier,this.name=e}return x(e,`JSXIdentifier`),e}(),t.JSXMemberExpression=function(){function e(e,t){this.type=r.JSXSyntax.JSXMemberExpression,this.object=e,this.property=t}return x(e,`JSXMemberExpression`),e}(),t.JSXAttribute=function(){function e(e,t){this.type=r.JSXSyntax.JSXAttribute,this.name=e,this.value=t}return x(e,`JSXAttribute`),e}(),t.JSXNamespacedName=function(){function e(e,t){this.type=r.JSXSyntax.JSXNamespacedName,this.namespace=e,this.name=t}return x(e,`JSXNamespacedName`),e}(),t.JSXOpeningElement=function(){function e(e,t,n){this.type=r.JSXSyntax.JSXOpeningElement,this.name=e,this.selfClosing=t,this.attributes=n}return x(e,`JSXOpeningElement`),e}(),t.JSXSpreadAttribute=function(){function e(e){this.type=r.JSXSyntax.JSXSpreadAttribute,this.argument=e}return x(e,`JSXSpreadAttribute`),e}(),t.JSXText=function(){function e(e,t){this.type=r.JSXSyntax.JSXText,this.value=e,this.raw=t}return x(e,`JSXText`),e}()},function(e,t){Object.defineProperty(t,`__esModule`,{value:!0}),t.JSXSyntax={JSXAttribute:`JSXAttribute`,JSXClosingElement:`JSXClosingElement`,JSXElement:`JSXElement`,JSXEmptyExpression:`JSXEmptyExpression`,JSXExpressionContainer:`JSXExpressionContainer`,JSXIdentifier:`JSXIdentifier`,JSXMemberExpression:`JSXMemberExpression`,JSXNamespacedName:`JSXNamespacedName`,JSXOpeningElement:`JSXOpeningElement`,JSXSpreadAttribute:`JSXSpreadAttribute`,JSXText:`JSXText`}},function(e,t,n){Object.defineProperty(t,`__esModule`,{value:!0});var r=n(2);t.ArrayExpression=function(){function e(e){this.type=r.Syntax.ArrayExpression,this.elements=e}return x(e,`ArrayExpression`),e}(),t.ArrayPattern=function(){function e(e){this.type=r.Syntax.ArrayPattern,this.elements=e}return x(e,`ArrayPattern`),e}(),t.ArrowFunctionExpression=function(){function e(e,t,n){this.type=r.Syntax.ArrowFunctionExpression,this.id=null,this.params=e,this.body=t,this.generator=!1,this.expression=n,this.async=!1}return x(e,`ArrowFunctionExpression`),e}(),t.AssignmentExpression=function(){function e(e,t,n){this.type=r.Syntax.AssignmentExpression,this.operator=e,this.left=t,this.right=n}return x(e,`AssignmentExpression`),e}(),t.AssignmentPattern=function(){function e(e,t){this.type=r.Syntax.AssignmentPattern,this.left=e,this.right=t}return x(e,`AssignmentPattern`),e}(),t.AsyncArrowFunctionExpression=function(){function e(e,t,n){this.type=r.Syntax.ArrowFunctionExpression,this.id=null,this.params=e,this.body=t,this.generator=!1,this.expression=n,this.async=!0}return x(e,`AsyncArrowFunctionExpression`),e}(),t.AsyncFunctionDeclaration=function(){function e(e,t,n){this.type=r.Syntax.FunctionDeclaration,this.id=e,this.params=t,this.body=n,this.generator=!1,this.expression=!1,this.async=!0}return x(e,`AsyncFunctionDeclaration`),e}(),t.AsyncFunctionExpression=function(){function e(e,t,n){this.type=r.Syntax.FunctionExpression,this.id=e,this.params=t,this.body=n,this.generator=!1,this.expression=!1,this.async=!0}return x(e,`AsyncFunctionExpression`),e}(),t.AwaitExpression=function(){function e(e){this.type=r.Syntax.AwaitExpression,this.argument=e}return x(e,`AwaitExpression`),e}(),t.BinaryExpression=function(){function e(e,t,n){var i=e===`||`||e===`&&`;this.type=i?r.Syntax.LogicalExpression:r.Syntax.BinaryExpression,this.operator=e,this.left=t,this.right=n}return x(e,`BinaryExpression`),e}(),t.BlockStatement=function(){function e(e){this.type=r.Syntax.BlockStatement,this.body=e}return x(e,`BlockStatement`),e}(),t.BreakStatement=function(){function e(e){this.type=r.Syntax.BreakStatement,this.label=e}return x(e,`BreakStatement`),e}(),t.CallExpression=function(){function e(e,t){this.type=r.Syntax.CallExpression,this.callee=e,this.arguments=t}return x(e,`CallExpression`),e}(),t.CatchClause=function(){function e(e,t){this.type=r.Syntax.CatchClause,this.param=e,this.body=t}return x(e,`CatchClause`),e}(),t.ClassBody=function(){function e(e){this.type=r.Syntax.ClassBody,this.body=e}return x(e,`ClassBody`),e}(),t.ClassDeclaration=function(){function e(e,t,n){this.type=r.Syntax.ClassDeclaration,this.id=e,this.superClass=t,this.body=n}return x(e,`ClassDeclaration`),e}(),t.ClassExpression=function(){function e(e,t,n){this.type=r.Syntax.ClassExpression,this.id=e,this.superClass=t,this.body=n}return x(e,`ClassExpression`),e}(),t.ComputedMemberExpression=function(){function e(e,t){this.type=r.Syntax.MemberExpression,this.computed=!0,this.object=e,this.property=t}return x(e,`ComputedMemberExpression`),e}(),t.ConditionalExpression=function(){function e(e,t,n){this.type=r.Syntax.ConditionalExpression,this.test=e,this.consequent=t,this.alternate=n}return x(e,`ConditionalExpression`),e}(),t.ContinueStatement=function(){function e(e){this.type=r.Syntax.ContinueStatement,this.label=e}return x(e,`ContinueStatement`),e}(),t.DebuggerStatement=function(){function e(){this.type=r.Syntax.DebuggerStatement}return x(e,`DebuggerStatement`),e}(),t.Directive=function(){function e(e,t){this.type=r.Syntax.ExpressionStatement,this.expression=e,this.directive=t}return x(e,`Directive`),e}(),t.DoWhileStatement=function(){function e(e,t){this.type=r.Syntax.DoWhileStatement,this.body=e,this.test=t}return x(e,`DoWhileStatement`),e}(),t.EmptyStatement=function(){function e(){this.type=r.Syntax.EmptyStatement}return x(e,`EmptyStatement`),e}(),t.ExportAllDeclaration=function(){function e(e){this.type=r.Syntax.ExportAllDeclaration,this.source=e}return x(e,`ExportAllDeclaration`),e}(),t.ExportDefaultDeclaration=function(){function e(e){this.type=r.Syntax.ExportDefaultDeclaration,this.declaration=e}return x(e,`ExportDefaultDeclaration`),e}(),t.ExportNamedDeclaration=function(){function e(e,t,n){this.type=r.Syntax.ExportNamedDeclaration,this.declaration=e,this.specifiers=t,this.source=n}return x(e,`ExportNamedDeclaration`),e}(),t.ExportSpecifier=function(){function e(e,t){this.type=r.Syntax.ExportSpecifier,this.exported=t,this.local=e}return x(e,`ExportSpecifier`),e}(),t.ExpressionStatement=function(){function e(e){this.type=r.Syntax.ExpressionStatement,this.expression=e}return x(e,`ExpressionStatement`),e}(),t.ForInStatement=function(){function e(e,t,n){this.type=r.Syntax.ForInStatement,this.left=e,this.right=t,this.body=n,this.each=!1}return x(e,`ForInStatement`),e}(),t.ForOfStatement=function(){function e(e,t,n){this.type=r.Syntax.ForOfStatement,this.left=e,this.right=t,this.body=n}return x(e,`ForOfStatement`),e}(),t.ForStatement=function(){function e(e,t,n,i){this.type=r.Syntax.ForStatement,this.init=e,this.test=t,this.update=n,this.body=i}return x(e,`ForStatement`),e}(),t.FunctionDeclaration=function(){function e(e,t,n,i){this.type=r.Syntax.FunctionDeclaration,this.id=e,this.params=t,this.body=n,this.generator=i,this.expression=!1,this.async=!1}return x(e,`FunctionDeclaration`),e}(),t.FunctionExpression=function(){function e(e,t,n,i){this.type=r.Syntax.FunctionExpression,this.id=e,this.params=t,this.body=n,this.generator=i,this.expression=!1,this.async=!1}return x(e,`FunctionExpression`),e}(),t.Identifier=function(){function e(e){this.type=r.Syntax.Identifier,this.name=e}return x(e,`Identifier`),e}(),t.IfStatement=function(){function e(e,t,n){this.type=r.Syntax.IfStatement,this.test=e,this.consequent=t,this.alternate=n}return x(e,`IfStatement`),e}(),t.ImportDeclaration=function(){function e(e,t){this.type=r.Syntax.ImportDeclaration,this.specifiers=e,this.source=t}return x(e,`ImportDeclaration`),e}(),t.ImportDefaultSpecifier=function(){function e(e){this.type=r.Syntax.ImportDefaultSpecifier,this.local=e}return x(e,`ImportDefaultSpecifier`),e}(),t.ImportNamespaceSpecifier=function(){function e(e){this.type=r.Syntax.ImportNamespaceSpecifier,this.local=e}return x(e,`ImportNamespaceSpecifier`),e}(),t.ImportSpecifier=function(){function e(e,t){this.type=r.Syntax.ImportSpecifier,this.local=e,this.imported=t}return x(e,`ImportSpecifier`),e}(),t.LabeledStatement=function(){function e(e,t){this.type=r.Syntax.LabeledStatement,this.label=e,this.body=t}return x(e,`LabeledStatement`),e}(),t.Literal=function(){function e(e,t){this.type=r.Syntax.Literal,this.value=e,this.raw=t}return x(e,`Literal`),e}(),t.MetaProperty=function(){function e(e,t){this.type=r.Syntax.MetaProperty,this.meta=e,this.property=t}return x(e,`MetaProperty`),e}(),t.MethodDefinition=function(){function e(e,t,n,i,a){this.type=r.Syntax.MethodDefinition,this.key=e,this.computed=t,this.value=n,this.kind=i,this.static=a}return x(e,`MethodDefinition`),e}(),t.Module=function(){function e(e){this.type=r.Syntax.Program,this.body=e,this.sourceType=`module`}return x(e,`Module`),e}(),t.NewExpression=function(){function e(e,t){this.type=r.Syntax.NewExpression,this.callee=e,this.arguments=t}return x(e,`NewExpression`),e}(),t.ObjectExpression=function(){function e(e){this.type=r.Syntax.ObjectExpression,this.properties=e}return x(e,`ObjectExpression`),e}(),t.ObjectPattern=function(){function e(e){this.type=r.Syntax.ObjectPattern,this.properties=e}return x(e,`ObjectPattern`),e}(),t.Property=function(){function e(e,t,n,i,a,o){this.type=r.Syntax.Property,this.key=t,this.computed=n,this.value=i,this.kind=e,this.method=a,this.shorthand=o}return x(e,`Property`),e}(),t.RegexLiteral=function(){function e(e,t,n,i){this.type=r.Syntax.Literal,this.value=e,this.raw=t,this.regex={pattern:n,flags:i}}return x(e,`RegexLiteral`),e}(),t.RestElement=function(){function e(e){this.type=r.Syntax.RestElement,this.argument=e}return x(e,`RestElement`),e}(),t.ReturnStatement=function(){function e(e){this.type=r.Syntax.ReturnStatement,this.argument=e}return x(e,`ReturnStatement`),e}(),t.Script=function(){function e(e){this.type=r.Syntax.Program,this.body=e,this.sourceType=`script`}return x(e,`Script`),e}(),t.SequenceExpression=function(){function e(e){this.type=r.Syntax.SequenceExpression,this.expressions=e}return x(e,`SequenceExpression`),e}(),t.SpreadElement=function(){function e(e){this.type=r.Syntax.SpreadElement,this.argument=e}return x(e,`SpreadElement`),e}(),t.StaticMemberExpression=function(){function e(e,t){this.type=r.Syntax.MemberExpression,this.computed=!1,this.object=e,this.property=t}return x(e,`StaticMemberExpression`),e}(),t.Super=function(){function e(){this.type=r.Syntax.Super}return x(e,`Super`),e}(),t.SwitchCase=function(){function e(e,t){this.type=r.Syntax.SwitchCase,this.test=e,this.consequent=t}return x(e,`SwitchCase`),e}(),t.SwitchStatement=function(){function e(e,t){this.type=r.Syntax.SwitchStatement,this.discriminant=e,this.cases=t}return x(e,`SwitchStatement`),e}(),t.TaggedTemplateExpression=function(){function e(e,t){this.type=r.Syntax.TaggedTemplateExpression,this.tag=e,this.quasi=t}return x(e,`TaggedTemplateExpression`),e}(),t.TemplateElement=function(){function e(e,t){this.type=r.Syntax.TemplateElement,this.value=e,this.tail=t}return x(e,`TemplateElement`),e}(),t.TemplateLiteral=function(){function e(e,t){this.type=r.Syntax.TemplateLiteral,this.quasis=e,this.expressions=t}return x(e,`TemplateLiteral`),e}(),t.ThisExpression=function(){function e(){this.type=r.Syntax.ThisExpression}return x(e,`ThisExpression`),e}(),t.ThrowStatement=function(){function e(e){this.type=r.Syntax.ThrowStatement,this.argument=e}return x(e,`ThrowStatement`),e}(),t.TryStatement=function(){function e(e,t,n){this.type=r.Syntax.TryStatement,this.block=e,this.handler=t,this.finalizer=n}return x(e,`TryStatement`),e}(),t.UnaryExpression=function(){function e(e,t){this.type=r.Syntax.UnaryExpression,this.operator=e,this.argument=t,this.prefix=!0}return x(e,`UnaryExpression`),e}(),t.UpdateExpression=function(){function e(e,t,n){this.type=r.Syntax.UpdateExpression,this.operator=e,this.argument=t,this.prefix=n}return x(e,`UpdateExpression`),e}(),t.VariableDeclaration=function(){function e(e,t){this.type=r.Syntax.VariableDeclaration,this.declarations=e,this.kind=t}return x(e,`VariableDeclaration`),e}(),t.VariableDeclarator=function(){function e(e,t){this.type=r.Syntax.VariableDeclarator,this.id=e,this.init=t}return x(e,`VariableDeclarator`),e}(),t.WhileStatement=function(){function e(e,t){this.type=r.Syntax.WhileStatement,this.test=e,this.body=t}return x(e,`WhileStatement`),e}(),t.WithStatement=function(){function e(e,t){this.type=r.Syntax.WithStatement,this.object=e,this.body=t}return x(e,`WithStatement`),e}(),t.YieldExpression=function(){function e(e,t){this.type=r.Syntax.YieldExpression,this.argument=e,this.delegate=t}return x(e,`YieldExpression`),e}()},function(e,t,n){Object.defineProperty(t,`__esModule`,{value:!0});var r=n(9),i=n(10),a=n(11),o=n(7),s=n(12),c=n(2),l=n(13),u=`ArrowParameterPlaceHolder`;t.Parser=function(){function e(e,t,n){t===void 0&&(t={}),this.config={range:typeof t.range==`boolean`&&t.range,loc:typeof t.loc==`boolean`&&t.loc,source:null,tokens:typeof t.tokens==`boolean`&&t.tokens,comment:typeof t.comment==`boolean`&&t.comment,tolerant:typeof t.tolerant==`boolean`&&t.tolerant},this.config.loc&&t.source&&t.source!==null&&(this.config.source=String(t.source)),this.delegate=n,this.errorHandler=new i.ErrorHandler,this.errorHandler.tolerant=this.config.tolerant,this.scanner=new s.Scanner(e,this.errorHandler),this.scanner.trackComment=this.config.comment,this.operatorPrecedence={")":0,";":0,",":0,"=":0,"]":0,"||":1,"&&":2,"|":3,"^":4,"&":5,"==":6,"!=":6,"===":6,"!==":6,"<":7,">":7,"<=":7,">=":7,"<<":8,">>":8,">>>":8,"+":9,"-":9,"*":11,"/":11,"%":11},this.lookahead={type:2,value:``,lineNumber:this.scanner.lineNumber,lineStart:0,start:0,end:0},this.hasLineTerminator=!1,this.context={isModule:!1,await:!1,allowIn:!0,allowStrictDirective:!0,allowYield:!0,firstCoverInitializedNameError:null,isAssignmentTarget:!1,isBindingElement:!1,inFunctionBody:!1,inIteration:!1,inSwitch:!1,labelSet:{},strict:!1},this.tokens=[],this.startMarker={index:0,line:this.scanner.lineNumber,column:0},this.lastMarker={index:0,line:this.scanner.lineNumber,column:0},this.nextToken(),this.lastMarker={index:this.scanner.index,line:this.scanner.lineNumber,column:this.scanner.index-this.scanner.lineStart}}return x(e,`Parser`),e.prototype.throwError=function(e){var t=Array.prototype.slice.call(arguments,1),n=e.replace(/%(\d)/g,function(e,n){return r.assert(n<t.length,`Message reference must be in range`),t[n]}),i=this.lastMarker.index,a=this.lastMarker.line,o=this.lastMarker.column+1;throw this.errorHandler.createError(i,a,o,n)},e.prototype.tolerateError=function(e){var t=Array.prototype.slice.call(arguments,1),n=e.replace(/%(\d)/g,function(e,n){return r.assert(n<t.length,`Message reference must be in range`),t[n]}),i=this.lastMarker.index,a=this.scanner.lineNumber,o=this.lastMarker.column+1;this.errorHandler.tolerateError(i,a,o,n)},e.prototype.unexpectedTokenError=function(e,t){var n=t||a.Messages.UnexpectedToken,r;if(e?(t||(n=e.type===2?a.Messages.UnexpectedEOS:e.type===3?a.Messages.UnexpectedIdentifier:e.type===6?a.Messages.UnexpectedNumber:e.type===8?a.Messages.UnexpectedString:e.type===10?a.Messages.UnexpectedTemplate:a.Messages.UnexpectedToken,e.type===4&&(this.scanner.isFutureReservedWord(e.value)?n=a.Messages.UnexpectedReserved:this.context.strict&&this.scanner.isStrictModeReservedWord(e.value)&&(n=a.Messages.StrictReservedWord))),r=e.value):r=`ILLEGAL`,n=n.replace(`%0`,r),e&&typeof e.lineNumber==`number`){var i=e.start,o=e.lineNumber,s=this.lastMarker.index-this.lastMarker.column,c=e.start-s+1;return this.errorHandler.createError(i,o,c,n)}else{var i=this.lastMarker.index,o=this.lastMarker.line,c=this.lastMarker.column+1;return this.errorHandler.createError(i,o,c,n)}},e.prototype.throwUnexpectedToken=function(e,t){throw this.unexpectedTokenError(e,t)},e.prototype.tolerateUnexpectedToken=function(e,t){this.errorHandler.tolerate(this.unexpectedTokenError(e,t))},e.prototype.collectComments=function(){if(!this.config.comment)this.scanner.scanComments();else{var e=this.scanner.scanComments();if(e.length>0&&this.delegate)for(var t=0;t<e.length;++t){var n=e[t],r=void 0;r={type:n.multiLine?`BlockComment`:`LineComment`,value:this.scanner.source.slice(n.slice[0],n.slice[1])},this.config.range&&(r.range=n.range),this.config.loc&&(r.loc=n.loc);var i={start:{line:n.loc.start.line,column:n.loc.start.column,offset:n.range[0]},end:{line:n.loc.end.line,column:n.loc.end.column,offset:n.range[1]}};this.delegate(r,i)}}},e.prototype.getTokenRaw=function(e){return this.scanner.source.slice(e.start,e.end)},e.prototype.convertToken=function(e){var t={type:l.TokenName[e.type],value:this.getTokenRaw(e)};return this.config.range&&(t.range=[e.start,e.end]),this.config.loc&&(t.loc={start:{line:this.startMarker.line,column:this.startMarker.column},end:{line:this.scanner.lineNumber,column:this.scanner.index-this.scanner.lineStart}}),e.type===9&&(t.regex={pattern:e.pattern,flags:e.flags}),t},e.prototype.nextToken=function(){var e=this.lookahead;this.lastMarker.index=this.scanner.index,this.lastMarker.line=this.scanner.lineNumber,this.lastMarker.column=this.scanner.index-this.scanner.lineStart,this.collectComments(),this.scanner.index!==this.startMarker.index&&(this.startMarker.index=this.scanner.index,this.startMarker.line=this.scanner.lineNumber,this.startMarker.column=this.scanner.index-this.scanner.lineStart);var t=this.scanner.lex();return this.hasLineTerminator=e.lineNumber!==t.lineNumber,t&&this.context.strict&&t.type===3&&this.scanner.isStrictModeReservedWord(t.value)&&(t.type=4),this.lookahead=t,this.config.tokens&&t.type!==2&&this.tokens.push(this.convertToken(t)),e},e.prototype.nextRegexToken=function(){this.collectComments();var e=this.scanner.scanRegExp();return this.config.tokens&&(this.tokens.pop(),this.tokens.push(this.convertToken(e))),this.lookahead=e,this.nextToken(),e},e.prototype.createNode=function(){return{index:this.startMarker.index,line:this.startMarker.line,column:this.startMarker.column}},e.prototype.startNode=function(e,t){t===void 0&&(t=0);var n=e.start-e.lineStart,r=e.lineNumber;return n<0&&(n+=t,r--),{index:e.start,line:r,column:n}},e.prototype.finalize=function(e,t){if(this.config.range&&(t.range=[e.index,this.lastMarker.index]),this.config.loc&&(t.loc={start:{line:e.line,column:e.column},end:{line:this.lastMarker.line,column:this.lastMarker.column}},this.config.source&&(t.loc.source=this.config.source)),this.delegate){var n={start:{line:e.line,column:e.column,offset:e.index},end:{line:this.lastMarker.line,column:this.lastMarker.column,offset:this.lastMarker.index}};this.delegate(t,n)}return t},e.prototype.expect=function(e){var t=this.nextToken();(t.type!==7||t.value!==e)&&this.throwUnexpectedToken(t)},e.prototype.expectCommaSeparator=function(){if(this.config.tolerant){var e=this.lookahead;e.type===7&&e.value===`,`?this.nextToken():e.type===7&&e.value===`;`?(this.nextToken(),this.tolerateUnexpectedToken(e)):this.tolerateUnexpectedToken(e,a.Messages.UnexpectedToken)}else this.expect(`,`)},e.prototype.expectKeyword=function(e){var t=this.nextToken();(t.type!==4||t.value!==e)&&this.throwUnexpectedToken(t)},e.prototype.match=function(e){return this.lookahead.type===7&&this.lookahead.value===e},e.prototype.matchKeyword=function(e){return this.lookahead.type===4&&this.lookahead.value===e},e.prototype.matchContextualKeyword=function(e){return this.lookahead.type===3&&this.lookahead.value===e},e.prototype.matchAssign=function(){if(this.lookahead.type!==7)return!1;var e=this.lookahead.value;return e===`=`||e===`*=`||e===`**=`||e===`/=`||e===`%=`||e===`+=`||e===`-=`||e===`<<=`||e===`>>=`||e===`>>>=`||e===`&=`||e===`^=`||e===`|=`},e.prototype.isolateCoverGrammar=function(e){var t=this.context.isBindingElement,n=this.context.isAssignmentTarget,r=this.context.firstCoverInitializedNameError;this.context.isBindingElement=!0,this.context.isAssignmentTarget=!0,this.context.firstCoverInitializedNameError=null;var i=e.call(this);return this.context.firstCoverInitializedNameError!==null&&this.throwUnexpectedToken(this.context.firstCoverInitializedNameError),this.context.isBindingElement=t,this.context.isAssignmentTarget=n,this.context.firstCoverInitializedNameError=r,i},e.prototype.inheritCoverGrammar=function(e){var t=this.context.isBindingElement,n=this.context.isAssignmentTarget,r=this.context.firstCoverInitializedNameError;this.context.isBindingElement=!0,this.context.isAssignmentTarget=!0,this.context.firstCoverInitializedNameError=null;var i=e.call(this);return this.context.isBindingElement=this.context.isBindingElement&&t,this.context.isAssignmentTarget=this.context.isAssignmentTarget&&n,this.context.firstCoverInitializedNameError=r||this.context.firstCoverInitializedNameError,i},e.prototype.consumeSemicolon=function(){this.match(`;`)?this.nextToken():this.hasLineTerminator||(this.lookahead.type!==2&&!this.match(`}`)&&this.throwUnexpectedToken(this.lookahead),this.lastMarker.index=this.startMarker.index,this.lastMarker.line=this.startMarker.line,this.lastMarker.column=this.startMarker.column)},e.prototype.parsePrimaryExpression=function(){var e=this.createNode(),t,n,r;switch(this.lookahead.type){case 3:(this.context.isModule||this.context.await)&&this.lookahead.value===`await`&&this.tolerateUnexpectedToken(this.lookahead),t=this.matchAsyncFunction()?this.parseFunctionExpression():this.finalize(e,new o.Identifier(this.nextToken().value));break;case 6:case 8:this.context.strict&&this.lookahead.octal&&this.tolerateUnexpectedToken(this.lookahead,a.Messages.StrictOctalLiteral),this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1,n=this.nextToken(),r=this.getTokenRaw(n),t=this.finalize(e,new o.Literal(n.value,r));break;case 1:this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1,n=this.nextToken(),r=this.getTokenRaw(n),t=this.finalize(e,new o.Literal(n.value===`true`,r));break;case 5:this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1,n=this.nextToken(),r=this.getTokenRaw(n),t=this.finalize(e,new o.Literal(null,r));break;case 10:t=this.parseTemplateLiteral();break;case 7:switch(this.lookahead.value){case`(`:this.context.isBindingElement=!1,t=this.inheritCoverGrammar(this.parseGroupExpression);break;case`[`:t=this.inheritCoverGrammar(this.parseArrayInitializer);break;case`{`:t=this.inheritCoverGrammar(this.parseObjectInitializer);break;case`/`:case`/=`:this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1,this.scanner.index=this.startMarker.index,n=this.nextRegexToken(),r=this.getTokenRaw(n),t=this.finalize(e,new o.RegexLiteral(n.regex,r,n.pattern,n.flags));break;default:t=this.throwUnexpectedToken(this.nextToken())}break;case 4:!this.context.strict&&this.context.allowYield&&this.matchKeyword(`yield`)?t=this.parseIdentifierName():!this.context.strict&&this.matchKeyword(`let`)?t=this.finalize(e,new o.Identifier(this.nextToken().value)):(this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1,this.matchKeyword(`function`)?t=this.parseFunctionExpression():this.matchKeyword(`this`)?(this.nextToken(),t=this.finalize(e,new o.ThisExpression)):t=this.matchKeyword(`class`)?this.parseClassExpression():this.throwUnexpectedToken(this.nextToken()));break;default:t=this.throwUnexpectedToken(this.nextToken())}return t},e.prototype.parseSpreadElement=function(){var e=this.createNode();this.expect(`...`);var t=this.inheritCoverGrammar(this.parseAssignmentExpression);return this.finalize(e,new o.SpreadElement(t))},e.prototype.parseArrayInitializer=function(){var e=this.createNode(),t=[];for(this.expect(`[`);!this.match(`]`);)if(this.match(`,`))this.nextToken(),t.push(null);else if(this.match(`...`)){var n=this.parseSpreadElement();this.match(`]`)||(this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1,this.expect(`,`)),t.push(n)}else t.push(this.inheritCoverGrammar(this.parseAssignmentExpression)),this.match(`]`)||this.expect(`,`);return this.expect(`]`),this.finalize(e,new o.ArrayExpression(t))},e.prototype.parsePropertyMethod=function(e){this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1;var t=this.context.strict,n=this.context.allowStrictDirective;this.context.allowStrictDirective=e.simple;var r=this.isolateCoverGrammar(this.parseFunctionSourceElements);return this.context.strict&&e.firstRestricted&&this.tolerateUnexpectedToken(e.firstRestricted,e.message),this.context.strict&&e.stricted&&this.tolerateUnexpectedToken(e.stricted,e.message),this.context.strict=t,this.context.allowStrictDirective=n,r},e.prototype.parsePropertyMethodFunction=function(){var e=!1,t=this.createNode(),n=this.context.allowYield;this.context.allowYield=!0;var r=this.parseFormalParameters(),i=this.parsePropertyMethod(r);return this.context.allowYield=n,this.finalize(t,new o.FunctionExpression(null,r.params,i,e))},e.prototype.parsePropertyMethodAsyncFunction=function(){var e=this.createNode(),t=this.context.allowYield,n=this.context.await;this.context.allowYield=!1,this.context.await=!0;var r=this.parseFormalParameters(),i=this.parsePropertyMethod(r);return this.context.allowYield=t,this.context.await=n,this.finalize(e,new o.AsyncFunctionExpression(null,r.params,i))},e.prototype.parseObjectPropertyKey=function(){var e=this.createNode(),t=this.nextToken(),n;switch(t.type){case 8:case 6:this.context.strict&&t.octal&&this.tolerateUnexpectedToken(t,a.Messages.StrictOctalLiteral);var r=this.getTokenRaw(t);n=this.finalize(e,new o.Literal(t.value,r));break;case 3:case 1:case 5:case 4:n=this.finalize(e,new o.Identifier(t.value));break;case 7:t.value===`[`?(n=this.isolateCoverGrammar(this.parseAssignmentExpression),this.expect(`]`)):n=this.throwUnexpectedToken(t);break;default:n=this.throwUnexpectedToken(t)}return n},e.prototype.isPropertyKey=function(e,t){return e.type===c.Syntax.Identifier&&e.name===t||e.type===c.Syntax.Literal&&e.value===t},e.prototype.parseObjectProperty=function(e){var t=this.createNode(),n=this.lookahead,r,i=null,s=null,c=!1,l=!1,u=!1,d=!1;if(n.type===3){var f=n.value;this.nextToken(),c=this.match(`[`),d=!this.hasLineTerminator&&f===`async`&&!this.match(`:`)&&!this.match(`(`)&&!this.match(`*`)&&!this.match(`,`),i=d?this.parseObjectPropertyKey():this.finalize(t,new o.Identifier(f))}else this.match(`*`)?this.nextToken():(c=this.match(`[`),i=this.parseObjectPropertyKey());var p=this.qualifiedPropertyName(this.lookahead);if(n.type===3&&!d&&n.value===`get`&&p)r=`get`,c=this.match(`[`),i=this.parseObjectPropertyKey(),this.context.allowYield=!1,s=this.parseGetterMethod();else if(n.type===3&&!d&&n.value===`set`&&p)r=`set`,c=this.match(`[`),i=this.parseObjectPropertyKey(),s=this.parseSetterMethod();else if(n.type===7&&n.value===`*`&&p)r=`init`,c=this.match(`[`),i=this.parseObjectPropertyKey(),s=this.parseGeneratorMethod(),l=!0;else if(i||this.throwUnexpectedToken(this.lookahead),r=`init`,this.match(`:`)&&!d)!c&&this.isPropertyKey(i,`__proto__`)&&(e.value&&this.tolerateError(a.Messages.DuplicateProtoProperty),e.value=!0),this.nextToken(),s=this.inheritCoverGrammar(this.parseAssignmentExpression);else if(this.match(`(`))s=d?this.parsePropertyMethodAsyncFunction():this.parsePropertyMethodFunction(),l=!0;else if(n.type===3){var f=this.finalize(t,new o.Identifier(n.value));if(this.match(`=`)){this.context.firstCoverInitializedNameError=this.lookahead,this.nextToken(),u=!0;var m=this.isolateCoverGrammar(this.parseAssignmentExpression);s=this.finalize(t,new o.AssignmentPattern(f,m))}else u=!0,s=f}else this.throwUnexpectedToken(this.nextToken());return this.finalize(t,new o.Property(r,i,c,s,l,u))},e.prototype.parseObjectInitializer=function(){var e=this.createNode();this.expect(`{`);for(var t=[],n={value:!1};!this.match(`}`);)t.push(this.parseObjectProperty(n)),this.match(`}`)||this.expectCommaSeparator();return this.expect(`}`),this.finalize(e,new o.ObjectExpression(t))},e.prototype.parseTemplateHead=function(){r.assert(this.lookahead.head,`Template literal must start with a template head`);var e=this.createNode(),t=this.nextToken(),n=t.value,i=t.cooked;return this.finalize(e,new o.TemplateElement({raw:n,cooked:i},t.tail))},e.prototype.parseTemplateElement=function(){this.lookahead.type!==10&&this.throwUnexpectedToken();var e=this.createNode(),t=this.nextToken(),n=t.value,r=t.cooked;return this.finalize(e,new o.TemplateElement({raw:n,cooked:r},t.tail))},e.prototype.parseTemplateLiteral=function(){var e=this.createNode(),t=[],n=[],r=this.parseTemplateHead();for(n.push(r);!r.tail;)t.push(this.parseExpression()),r=this.parseTemplateElement(),n.push(r);return this.finalize(e,new o.TemplateLiteral(n,t))},e.prototype.reinterpretExpressionAsPattern=function(e){switch(e.type){case c.Syntax.Identifier:case c.Syntax.MemberExpression:case c.Syntax.RestElement:case c.Syntax.AssignmentPattern:break;case c.Syntax.SpreadElement:e.type=c.Syntax.RestElement,this.reinterpretExpressionAsPattern(e.argument);break;case c.Syntax.ArrayExpression:e.type=c.Syntax.ArrayPattern;for(var t=0;t<e.elements.length;t++)e.elements[t]!==null&&this.reinterpretExpressionAsPattern(e.elements[t]);break;case c.Syntax.ObjectExpression:e.type=c.Syntax.ObjectPattern;for(var t=0;t<e.properties.length;t++)this.reinterpretExpressionAsPattern(e.properties[t].value);break;case c.Syntax.AssignmentExpression:e.type=c.Syntax.AssignmentPattern,delete e.operator,this.reinterpretExpressionAsPattern(e.left);break}},e.prototype.parseGroupExpression=function(){var e;if(this.expect(`(`),this.match(`)`))this.nextToken(),this.match(`=>`)||this.expect(`=>`),e={type:u,params:[],async:!1};else{var t=this.lookahead,n=[];if(this.match(`...`))e=this.parseRestElement(n),this.expect(`)`),this.match(`=>`)||this.expect(`=>`),e={type:u,params:[e],async:!1};else{var r=!1;if(this.context.isBindingElement=!0,e=this.inheritCoverGrammar(this.parseAssignmentExpression),this.match(`,`)){var i=[];for(this.context.isAssignmentTarget=!1,i.push(e);this.lookahead.type!==2&&this.match(`,`);){if(this.nextToken(),this.match(`)`)){this.nextToken();for(var a=0;a<i.length;a++)this.reinterpretExpressionAsPattern(i[a]);r=!0,e={type:u,params:i,async:!1}}else if(this.match(`...`)){this.context.isBindingElement||this.throwUnexpectedToken(this.lookahead),i.push(this.parseRestElement(n)),this.expect(`)`),this.match(`=>`)||this.expect(`=>`),this.context.isBindingElement=!1;for(var a=0;a<i.length;a++)this.reinterpretExpressionAsPattern(i[a]);r=!0,e={type:u,params:i,async:!1}}else i.push(this.inheritCoverGrammar(this.parseAssignmentExpression));if(r)break}r||(e=this.finalize(this.startNode(t),new o.SequenceExpression(i)))}if(!r){if(this.expect(`)`),this.match(`=>`)&&(e.type===c.Syntax.Identifier&&e.name===`yield`&&(r=!0,e={type:u,params:[e],async:!1}),!r)){if(this.context.isBindingElement||this.throwUnexpectedToken(this.lookahead),e.type===c.Syntax.SequenceExpression)for(var a=0;a<e.expressions.length;a++)this.reinterpretExpressionAsPattern(e.expressions[a]);else this.reinterpretExpressionAsPattern(e);e={type:u,params:e.type===c.Syntax.SequenceExpression?e.expressions:[e],async:!1}}this.context.isBindingElement=!1}}}return e},e.prototype.parseArguments=function(){this.expect(`(`);var e=[];if(!this.match(`)`))for(;;){var t=this.match(`...`)?this.parseSpreadElement():this.isolateCoverGrammar(this.parseAssignmentExpression);if(e.push(t),this.match(`)`)||(this.expectCommaSeparator(),this.match(`)`)))break}return this.expect(`)`),e},e.prototype.isIdentifierName=function(e){return e.type===3||e.type===4||e.type===1||e.type===5},e.prototype.parseIdentifierName=function(){var e=this.createNode(),t=this.nextToken();return this.isIdentifierName(t)||this.throwUnexpectedToken(t),this.finalize(e,new o.Identifier(t.value))},e.prototype.parseNewExpression=function(){var e=this.createNode(),t=this.parseIdentifierName();r.assert(t.name===`new`,"New expression must start with `new`");var n;if(this.match(`.`))if(this.nextToken(),this.lookahead.type===3&&this.context.inFunctionBody&&this.lookahead.value===`target`){var i=this.parseIdentifierName();n=new o.MetaProperty(t,i)}else this.throwUnexpectedToken(this.lookahead);else{var a=this.isolateCoverGrammar(this.parseLeftHandSideExpression),s=this.match(`(`)?this.parseArguments():[];n=new o.NewExpression(a,s),this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1}return this.finalize(e,n)},e.prototype.parseAsyncArgument=function(){var e=this.parseAssignmentExpression();return this.context.firstCoverInitializedNameError=null,e},e.prototype.parseAsyncArguments=function(){this.expect(`(`);var e=[];if(!this.match(`)`))for(;;){var t=this.match(`...`)?this.parseSpreadElement():this.isolateCoverGrammar(this.parseAsyncArgument);if(e.push(t),this.match(`)`)||(this.expectCommaSeparator(),this.match(`)`)))break}return this.expect(`)`),e},e.prototype.parseLeftHandSideExpressionAllowCall=function(){var e=this.lookahead,t=this.matchContextualKeyword(`async`),n=this.context.allowIn;this.context.allowIn=!0;var r;for(this.matchKeyword(`super`)&&this.context.inFunctionBody?(r=this.createNode(),this.nextToken(),r=this.finalize(r,new o.Super),!this.match(`(`)&&!this.match(`.`)&&!this.match(`[`)&&this.throwUnexpectedToken(this.lookahead)):r=this.inheritCoverGrammar(this.matchKeyword(`new`)?this.parseNewExpression:this.parsePrimaryExpression);;)if(this.match(`.`)){this.context.isBindingElement=!1,this.context.isAssignmentTarget=!0,this.expect(`.`);var i=this.parseIdentifierName();r=this.finalize(this.startNode(e),new o.StaticMemberExpression(r,i))}else if(this.match(`(`)){var a=t&&e.lineNumber===this.lookahead.lineNumber;this.context.isBindingElement=!1,this.context.isAssignmentTarget=!1;var s=a?this.parseAsyncArguments():this.parseArguments();if(r=this.finalize(this.startNode(e),new o.CallExpression(r,s)),a&&this.match(`=>`)){for(var c=0;c<s.length;++c)this.reinterpretExpressionAsPattern(s[c]);r={type:u,params:s,async:!0}}}else if(this.match(`[`)){this.context.isBindingElement=!1,this.context.isAssignmentTarget=!0,this.expect(`[`);var i=this.isolateCoverGrammar(this.parseExpression);this.expect(`]`),r=this.finalize(this.startNode(e),new o.ComputedMemberExpression(r,i))}else if(this.lookahead.type===10&&this.lookahead.head){var l=this.parseTemplateLiteral();r=this.finalize(this.startNode(e),new o.TaggedTemplateExpression(r,l))}else break;return this.context.allowIn=n,r},e.prototype.parseSuper=function(){var e=this.createNode();return this.expectKeyword(`super`),!this.match(`[`)&&!this.match(`.`)&&this.throwUnexpectedToken(this.lookahead),this.finalize(e,new o.Super)},e.prototype.parseLeftHandSideExpression=function(){r.assert(this.context.allowIn,`callee of new expression always allow in keyword.`);for(var e=this.startNode(this.lookahead),t=this.matchKeyword(`super`)&&this.context.inFunctionBody?this.parseSuper():this.inheritCoverGrammar(this.matchKeyword(`new`)?this.parseNewExpression:this.parsePrimaryExpression);;)if(this.match(`[`)){this.context.isBindingElement=!1,this.context.isAssignmentTarget=!0,this.expect(`[`);var n=this.isolateCoverGrammar(this.parseExpression);this.expect(`]`),t=this.finalize(e,new o.ComputedMemberExpression(t,n))}else if(this.match(`.`)){this.context.isBindingElement=!1,this.context.isAssignmentTarget=!0,this.expect(`.`);var n=this.parseIdentifierName();t=this.finalize(e,new o.StaticMemberExpression(t,n))}else if(this.lookahead.type===10&&this.lookahead.head){var i=this.parseTemplateLiteral();t=this.finalize(e,new o.TaggedTemplateExpression(t,i))}else break;return t},e.prototype.parseUpdateExpression=function(){var e,t=this.lookahead;if(this.match(`++`)||this.match(`--`)){var n=this.startNode(t),r=this.nextToken();e=this.inheritCoverGrammar(this.parseUnaryExpression),this.context.strict&&e.type===c.Syntax.Identifier&&this.scanner.isRestrictedWord(e.name)&&this.tolerateError(a.Messages.StrictLHSPrefix),this.context.isAssignmentTarget||this.tolerateError(a.Messages.InvalidLHSInAssignment);var i=!0;e=this.finalize(n,new o.UpdateExpression(r.value,e,i)),this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1}else if(e=this.inheritCoverGrammar(this.parseLeftHandSideExpressionAllowCall),!this.hasLineTerminator&&this.lookahead.type===7&&(this.match(`++`)||this.match(`--`))){this.context.strict&&e.type===c.Syntax.Identifier&&this.scanner.isRestrictedWord(e.name)&&this.tolerateError(a.Messages.StrictLHSPostfix),this.context.isAssignmentTarget||this.tolerateError(a.Messages.InvalidLHSInAssignment),this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1;var s=this.nextToken().value,i=!1;e=this.finalize(this.startNode(t),new o.UpdateExpression(s,e,i))}return e},e.prototype.parseAwaitExpression=function(){var e=this.createNode();this.nextToken();var t=this.parseUnaryExpression();return this.finalize(e,new o.AwaitExpression(t))},e.prototype.parseUnaryExpression=function(){var e;if(this.match(`+`)||this.match(`-`)||this.match(`~`)||this.match(`!`)||this.matchKeyword(`delete`)||this.matchKeyword(`void`)||this.matchKeyword(`typeof`)){var t=this.startNode(this.lookahead),n=this.nextToken();e=this.inheritCoverGrammar(this.parseUnaryExpression),e=this.finalize(t,new o.UnaryExpression(n.value,e)),this.context.strict&&e.operator===`delete`&&e.argument.type===c.Syntax.Identifier&&this.tolerateError(a.Messages.StrictDelete),this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1}else e=this.context.await&&this.matchContextualKeyword(`await`)?this.parseAwaitExpression():this.parseUpdateExpression();return e},e.prototype.parseExponentiationExpression=function(){var e=this.lookahead,t=this.inheritCoverGrammar(this.parseUnaryExpression);if(t.type!==c.Syntax.UnaryExpression&&this.match(`**`)){this.nextToken(),this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1;var n=t,r=this.isolateCoverGrammar(this.parseExponentiationExpression);t=this.finalize(this.startNode(e),new o.BinaryExpression(`**`,n,r))}return t},e.prototype.binaryPrecedence=function(e){var t=e.value;return e.type===7?this.operatorPrecedence[t]||0:e.type===4&&(t===`instanceof`||this.context.allowIn&&t===`in`)?7:0},e.prototype.parseBinaryExpression=function(){var e=this.lookahead,t=this.inheritCoverGrammar(this.parseExponentiationExpression),n=this.lookahead,r=this.binaryPrecedence(n);if(r>0){this.nextToken(),this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1;for(var i=[e,this.lookahead],a=t,s=this.isolateCoverGrammar(this.parseExponentiationExpression),c=[a,n.value,s],l=[r];r=this.binaryPrecedence(this.lookahead),!(r<=0);){for(;c.length>2&&r<=l[l.length-1];){s=c.pop();var u=c.pop();l.pop(),a=c.pop(),i.pop();var d=this.startNode(i[i.length-1]);c.push(this.finalize(d,new o.BinaryExpression(u,a,s)))}c.push(this.nextToken().value),l.push(r),i.push(this.lookahead),c.push(this.isolateCoverGrammar(this.parseExponentiationExpression))}var f=c.length-1;t=c[f];for(var p=i.pop();f>1;){var m=i.pop(),h=p&&p.lineStart,d=this.startNode(m,h),u=c[f-1];t=this.finalize(d,new o.BinaryExpression(u,c[f-2],t)),f-=2,p=m}}return t},e.prototype.parseConditionalExpression=function(){var e=this.lookahead,t=this.inheritCoverGrammar(this.parseBinaryExpression);if(this.match(`?`)){this.nextToken();var n=this.context.allowIn;this.context.allowIn=!0;var r=this.isolateCoverGrammar(this.parseAssignmentExpression);this.context.allowIn=n,this.expect(`:`);var i=this.isolateCoverGrammar(this.parseAssignmentExpression);t=this.finalize(this.startNode(e),new o.ConditionalExpression(t,r,i)),this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1}return t},e.prototype.checkPatternParam=function(e,t){switch(t.type){case c.Syntax.Identifier:this.validateParam(e,t,t.name);break;case c.Syntax.RestElement:this.checkPatternParam(e,t.argument);break;case c.Syntax.AssignmentPattern:this.checkPatternParam(e,t.left);break;case c.Syntax.ArrayPattern:for(var n=0;n<t.elements.length;n++)t.elements[n]!==null&&this.checkPatternParam(e,t.elements[n]);break;case c.Syntax.ObjectPattern:for(var n=0;n<t.properties.length;n++)this.checkPatternParam(e,t.properties[n].value);break}e.simple=e.simple&&t instanceof o.Identifier},e.prototype.reinterpretAsCoverFormalsList=function(e){var t=[e],n,r=!1;switch(e.type){case c.Syntax.Identifier:break;case u:t=e.params,r=e.async;break;default:return null}n={simple:!0,paramSet:{}};for(var i=0;i<t.length;++i){var o=t[i];o.type===c.Syntax.AssignmentPattern?o.right.type===c.Syntax.YieldExpression&&(o.right.argument&&this.throwUnexpectedToken(this.lookahead),o.right.type=c.Syntax.Identifier,o.right.name=`yield`,delete o.right.argument,delete o.right.delegate):r&&o.type===c.Syntax.Identifier&&o.name===`await`&&this.throwUnexpectedToken(this.lookahead),this.checkPatternParam(n,o),t[i]=o}if(this.context.strict||!this.context.allowYield)for(var i=0;i<t.length;++i){var o=t[i];o.type===c.Syntax.YieldExpression&&this.throwUnexpectedToken(this.lookahead)}if(n.message===a.Messages.StrictParamDupe){var s=this.context.strict?n.stricted:n.firstRestricted;this.throwUnexpectedToken(s,n.message)}return{simple:n.simple,params:t,stricted:n.stricted,firstRestricted:n.firstRestricted,message:n.message}},e.prototype.parseAssignmentExpression=function(){var e;if(!this.context.allowYield&&this.matchKeyword(`yield`))e=this.parseYieldExpression();else{var t=this.lookahead,n=t;if(e=this.parseConditionalExpression(),n.type===3&&n.lineNumber===this.lookahead.lineNumber&&n.value===`async`&&(this.lookahead.type===3||this.matchKeyword(`yield`))){var r=this.parsePrimaryExpression();this.reinterpretExpressionAsPattern(r),e={type:u,params:[r],async:!0}}if(e.type===u||this.match(`=>`)){this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1;var i=e.async,s=this.reinterpretAsCoverFormalsList(e);if(s){this.hasLineTerminator&&this.tolerateUnexpectedToken(this.lookahead),this.context.firstCoverInitializedNameError=null;var l=this.context.strict,d=this.context.allowStrictDirective;this.context.allowStrictDirective=s.simple;var f=this.context.allowYield,p=this.context.await;this.context.allowYield=!0,this.context.await=i;var m=this.startNode(t);this.expect(`=>`);var h=void 0;if(this.match(`{`)){var g=this.context.allowIn;this.context.allowIn=!0,h=this.parseFunctionSourceElements(),this.context.allowIn=g}else h=this.isolateCoverGrammar(this.parseAssignmentExpression);var _=h.type!==c.Syntax.BlockStatement;this.context.strict&&s.firstRestricted&&this.throwUnexpectedToken(s.firstRestricted,s.message),this.context.strict&&s.stricted&&this.tolerateUnexpectedToken(s.stricted,s.message),e=i?this.finalize(m,new o.AsyncArrowFunctionExpression(s.params,h,_)):this.finalize(m,new o.ArrowFunctionExpression(s.params,h,_)),this.context.strict=l,this.context.allowStrictDirective=d,this.context.allowYield=f,this.context.await=p}}else if(this.matchAssign()){if(this.context.isAssignmentTarget||this.tolerateError(a.Messages.InvalidLHSInAssignment),this.context.strict&&e.type===c.Syntax.Identifier){var v=e;this.scanner.isRestrictedWord(v.name)&&this.tolerateUnexpectedToken(n,a.Messages.StrictLHSAssignment),this.scanner.isStrictModeReservedWord(v.name)&&this.tolerateUnexpectedToken(n,a.Messages.StrictReservedWord)}this.match(`=`)?this.reinterpretExpressionAsPattern(e):(this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1),n=this.nextToken();var y=n.value,b=this.isolateCoverGrammar(this.parseAssignmentExpression);e=this.finalize(this.startNode(t),new o.AssignmentExpression(y,e,b)),this.context.firstCoverInitializedNameError=null}}return e},e.prototype.parseExpression=function(){var e=this.lookahead,t=this.isolateCoverGrammar(this.parseAssignmentExpression);if(this.match(`,`)){var n=[];for(n.push(t);this.lookahead.type!==2&&this.match(`,`);)this.nextToken(),n.push(this.isolateCoverGrammar(this.parseAssignmentExpression));t=this.finalize(this.startNode(e),new o.SequenceExpression(n))}return t},e.prototype.parseStatementListItem=function(){var e;if(this.context.isAssignmentTarget=!0,this.context.isBindingElement=!0,this.lookahead.type===4)switch(this.lookahead.value){case`export`:this.context.isModule||this.tolerateUnexpectedToken(this.lookahead,a.Messages.IllegalExportDeclaration),e=this.parseExportDeclaration();break;case`import`:this.context.isModule||this.tolerateUnexpectedToken(this.lookahead,a.Messages.IllegalImportDeclaration),e=this.parseImportDeclaration();break;case`const`:e=this.parseLexicalDeclaration({inFor:!1});break;case`function`:e=this.parseFunctionDeclaration();break;case`class`:e=this.parseClassDeclaration();break;case`let`:e=this.isLexicalDeclaration()?this.parseLexicalDeclaration({inFor:!1}):this.parseStatement();break;default:e=this.parseStatement();break}else e=this.parseStatement();return e},e.prototype.parseBlock=function(){var e=this.createNode();this.expect(`{`);for(var t=[];!this.match(`}`);)t.push(this.parseStatementListItem());return this.expect(`}`),this.finalize(e,new o.BlockStatement(t))},e.prototype.parseLexicalBinding=function(e,t){var n=this.createNode(),r=this.parsePattern([],e);this.context.strict&&r.type===c.Syntax.Identifier&&this.scanner.isRestrictedWord(r.name)&&this.tolerateError(a.Messages.StrictVarName);var i=null;return e===`const`?!this.matchKeyword(`in`)&&!this.matchContextualKeyword(`of`)&&(this.match(`=`)?(this.nextToken(),i=this.isolateCoverGrammar(this.parseAssignmentExpression)):this.throwError(a.Messages.DeclarationMissingInitializer,`const`)):(!t.inFor&&r.type!==c.Syntax.Identifier||this.match(`=`))&&(this.expect(`=`),i=this.isolateCoverGrammar(this.parseAssignmentExpression)),this.finalize(n,new o.VariableDeclarator(r,i))},e.prototype.parseBindingList=function(e,t){for(var n=[this.parseLexicalBinding(e,t)];this.match(`,`);)this.nextToken(),n.push(this.parseLexicalBinding(e,t));return n},e.prototype.isLexicalDeclaration=function(){var e=this.scanner.saveState();this.scanner.scanComments();var t=this.scanner.lex();return this.scanner.restoreState(e),t.type===3||t.type===7&&t.value===`[`||t.type===7&&t.value===`{`||t.type===4&&t.value===`let`||t.type===4&&t.value===`yield`},e.prototype.parseLexicalDeclaration=function(e){var t=this.createNode(),n=this.nextToken().value;r.assert(n===`let`||n===`const`,`Lexical declaration must be either let or const`);var i=this.parseBindingList(n,e);return this.consumeSemicolon(),this.finalize(t,new o.VariableDeclaration(i,n))},e.prototype.parseBindingRestElement=function(e,t){var n=this.createNode();this.expect(`...`);var r=this.parsePattern(e,t);return this.finalize(n,new o.RestElement(r))},e.prototype.parseArrayPattern=function(e,t){var n=this.createNode();this.expect(`[`);for(var r=[];!this.match(`]`);)if(this.match(`,`))this.nextToken(),r.push(null);else{if(this.match(`...`)){r.push(this.parseBindingRestElement(e,t));break}else r.push(this.parsePatternWithDefault(e,t));this.match(`]`)||this.expect(`,`)}return this.expect(`]`),this.finalize(n,new o.ArrayPattern(r))},e.prototype.parsePropertyPattern=function(e,t){var n=this.createNode(),r=!1,i=!1,a=!1,s,c;if(this.lookahead.type===3){var l=this.lookahead;s=this.parseVariableIdentifier();var u=this.finalize(n,new o.Identifier(l.value));if(this.match(`=`)){e.push(l),i=!0,this.nextToken();var d=this.parseAssignmentExpression();c=this.finalize(this.startNode(l),new o.AssignmentPattern(u,d))}else this.match(`:`)?(this.expect(`:`),c=this.parsePatternWithDefault(e,t)):(e.push(l),i=!0,c=u)}else r=this.match(`[`),s=this.parseObjectPropertyKey(),this.expect(`:`),c=this.parsePatternWithDefault(e,t);return this.finalize(n,new o.Property(`init`,s,r,c,a,i))},e.prototype.parseObjectPattern=function(e,t){var n=this.createNode(),r=[];for(this.expect(`{`);!this.match(`}`);)r.push(this.parsePropertyPattern(e,t)),this.match(`}`)||this.expect(`,`);return this.expect(`}`),this.finalize(n,new o.ObjectPattern(r))},e.prototype.parsePattern=function(e,t){var n;return this.match(`[`)?n=this.parseArrayPattern(e,t):this.match(`{`)?n=this.parseObjectPattern(e,t):(this.matchKeyword(`let`)&&(t===`const`||t===`let`)&&this.tolerateUnexpectedToken(this.lookahead,a.Messages.LetInLexicalBinding),e.push(this.lookahead),n=this.parseVariableIdentifier(t)),n},e.prototype.parsePatternWithDefault=function(e,t){var n=this.lookahead,r=this.parsePattern(e,t);if(this.match(`=`)){this.nextToken();var i=this.context.allowYield;this.context.allowYield=!0;var a=this.isolateCoverGrammar(this.parseAssignmentExpression);this.context.allowYield=i,r=this.finalize(this.startNode(n),new o.AssignmentPattern(r,a))}return r},e.prototype.parseVariableIdentifier=function(e){var t=this.createNode(),n=this.nextToken();return n.type===4&&n.value===`yield`?this.context.strict?this.tolerateUnexpectedToken(n,a.Messages.StrictReservedWord):this.context.allowYield||this.throwUnexpectedToken(n):n.type===3?(this.context.isModule||this.context.await)&&n.type===3&&n.value===`await`&&this.tolerateUnexpectedToken(n):this.context.strict&&n.type===4&&this.scanner.isStrictModeReservedWord(n.value)?this.tolerateUnexpectedToken(n,a.Messages.StrictReservedWord):(this.context.strict||n.value!==`let`||e!==`var`)&&this.throwUnexpectedToken(n),this.finalize(t,new o.Identifier(n.value))},e.prototype.parseVariableDeclaration=function(e){var t=this.createNode(),n=this.parsePattern([],`var`);this.context.strict&&n.type===c.Syntax.Identifier&&this.scanner.isRestrictedWord(n.name)&&this.tolerateError(a.Messages.StrictVarName);var r=null;return this.match(`=`)?(this.nextToken(),r=this.isolateCoverGrammar(this.parseAssignmentExpression)):n.type!==c.Syntax.Identifier&&!e.inFor&&this.expect(`=`),this.finalize(t,new o.VariableDeclarator(n,r))},e.prototype.parseVariableDeclarationList=function(e){var t={inFor:e.inFor},n=[];for(n.push(this.parseVariableDeclaration(t));this.match(`,`);)this.nextToken(),n.push(this.parseVariableDeclaration(t));return n},e.prototype.parseVariableStatement=function(){var e=this.createNode();this.expectKeyword(`var`);var t=this.parseVariableDeclarationList({inFor:!1});return this.consumeSemicolon(),this.finalize(e,new o.VariableDeclaration(t,`var`))},e.prototype.parseEmptyStatement=function(){var e=this.createNode();return this.expect(`;`),this.finalize(e,new o.EmptyStatement)},e.prototype.parseExpressionStatement=function(){var e=this.createNode(),t=this.parseExpression();return this.consumeSemicolon(),this.finalize(e,new o.ExpressionStatement(t))},e.prototype.parseIfClause=function(){return this.context.strict&&this.matchKeyword(`function`)&&this.tolerateError(a.Messages.StrictFunction),this.parseStatement()},e.prototype.parseIfStatement=function(){var e=this.createNode(),t,n=null;this.expectKeyword(`if`),this.expect(`(`);var r=this.parseExpression();return!this.match(`)`)&&this.config.tolerant?(this.tolerateUnexpectedToken(this.nextToken()),t=this.finalize(this.createNode(),new o.EmptyStatement)):(this.expect(`)`),t=this.parseIfClause(),this.matchKeyword(`else`)&&(this.nextToken(),n=this.parseIfClause())),this.finalize(e,new o.IfStatement(r,t,n))},e.prototype.parseDoWhileStatement=function(){var e=this.createNode();this.expectKeyword(`do`);var t=this.context.inIteration;this.context.inIteration=!0;var n=this.parseStatement();this.context.inIteration=t,this.expectKeyword(`while`),this.expect(`(`);var r=this.parseExpression();return!this.match(`)`)&&this.config.tolerant?this.tolerateUnexpectedToken(this.nextToken()):(this.expect(`)`),this.match(`;`)&&this.nextToken()),this.finalize(e,new o.DoWhileStatement(n,r))},e.prototype.parseWhileStatement=function(){var e=this.createNode(),t;this.expectKeyword(`while`),this.expect(`(`);var n=this.parseExpression();if(!this.match(`)`)&&this.config.tolerant)this.tolerateUnexpectedToken(this.nextToken()),t=this.finalize(this.createNode(),new o.EmptyStatement);else{this.expect(`)`);var r=this.context.inIteration;this.context.inIteration=!0,t=this.parseStatement(),this.context.inIteration=r}return this.finalize(e,new o.WhileStatement(n,t))},e.prototype.parseForStatement=function(){var e=null,t=null,n=null,r=!0,i,s,l=this.createNode();if(this.expectKeyword(`for`),this.expect(`(`),this.match(`;`))this.nextToken();else if(this.matchKeyword(`var`)){e=this.createNode(),this.nextToken();var u=this.context.allowIn;this.context.allowIn=!1;var d=this.parseVariableDeclarationList({inFor:!0});if(this.context.allowIn=u,d.length===1&&this.matchKeyword(`in`)){var f=d[0];f.init&&(f.id.type===c.Syntax.ArrayPattern||f.id.type===c.Syntax.ObjectPattern||this.context.strict)&&this.tolerateError(a.Messages.ForInOfLoopInitializer,`for-in`),e=this.finalize(e,new o.VariableDeclaration(d,`var`)),this.nextToken(),i=e,s=this.parseExpression(),e=null}else d.length===1&&d[0].init===null&&this.matchContextualKeyword(`of`)?(e=this.finalize(e,new o.VariableDeclaration(d,`var`)),this.nextToken(),i=e,s=this.parseAssignmentExpression(),e=null,r=!1):(e=this.finalize(e,new o.VariableDeclaration(d,`var`)),this.expect(`;`))}else if(this.matchKeyword(`const`)||this.matchKeyword(`let`)){e=this.createNode();var p=this.nextToken().value;if(!this.context.strict&&this.lookahead.value===`in`)e=this.finalize(e,new o.Identifier(p)),this.nextToken(),i=e,s=this.parseExpression(),e=null;else{var u=this.context.allowIn;this.context.allowIn=!1;var d=this.parseBindingList(p,{inFor:!0});this.context.allowIn=u,d.length===1&&d[0].init===null&&this.matchKeyword(`in`)?(e=this.finalize(e,new o.VariableDeclaration(d,p)),this.nextToken(),i=e,s=this.parseExpression(),e=null):d.length===1&&d[0].init===null&&this.matchContextualKeyword(`of`)?(e=this.finalize(e,new o.VariableDeclaration(d,p)),this.nextToken(),i=e,s=this.parseAssignmentExpression(),e=null,r=!1):(this.consumeSemicolon(),e=this.finalize(e,new o.VariableDeclaration(d,p)))}}else{var m=this.lookahead,u=this.context.allowIn;if(this.context.allowIn=!1,e=this.inheritCoverGrammar(this.parseAssignmentExpression),this.context.allowIn=u,this.matchKeyword(`in`))(!this.context.isAssignmentTarget||e.type===c.Syntax.AssignmentExpression)&&this.tolerateError(a.Messages.InvalidLHSInForIn),this.nextToken(),this.reinterpretExpressionAsPattern(e),i=e,s=this.parseExpression(),e=null;else if(this.matchContextualKeyword(`of`))(!this.context.isAssignmentTarget||e.type===c.Syntax.AssignmentExpression)&&this.tolerateError(a.Messages.InvalidLHSInForLoop),this.nextToken(),this.reinterpretExpressionAsPattern(e),i=e,s=this.parseAssignmentExpression(),e=null,r=!1;else{if(this.match(`,`)){for(var h=[e];this.match(`,`);)this.nextToken(),h.push(this.isolateCoverGrammar(this.parseAssignmentExpression));e=this.finalize(this.startNode(m),new o.SequenceExpression(h))}this.expect(`;`)}}i===void 0&&(this.match(`;`)||(t=this.parseExpression()),this.expect(`;`),this.match(`)`)||(n=this.parseExpression()));var g;if(!this.match(`)`)&&this.config.tolerant)this.tolerateUnexpectedToken(this.nextToken()),g=this.finalize(this.createNode(),new o.EmptyStatement);else{this.expect(`)`);var _=this.context.inIteration;this.context.inIteration=!0,g=this.isolateCoverGrammar(this.parseStatement),this.context.inIteration=_}return i===void 0?this.finalize(l,new o.ForStatement(e,t,n,g)):r?this.finalize(l,new o.ForInStatement(i,s,g)):this.finalize(l,new o.ForOfStatement(i,s,g))},e.prototype.parseContinueStatement=function(){var e=this.createNode();this.expectKeyword(`continue`);var t=null;if(this.lookahead.type===3&&!this.hasLineTerminator){var n=this.parseVariableIdentifier();t=n;var r=`$`+n.name;Object.prototype.hasOwnProperty.call(this.context.labelSet,r)||this.throwError(a.Messages.UnknownLabel,n.name)}return this.consumeSemicolon(),t===null&&!this.context.inIteration&&this.throwError(a.Messages.IllegalContinue),this.finalize(e,new o.ContinueStatement(t))},e.prototype.parseBreakStatement=function(){var e=this.createNode();this.expectKeyword(`break`);var t=null;if(this.lookahead.type===3&&!this.hasLineTerminator){var n=this.parseVariableIdentifier(),r=`$`+n.name;Object.prototype.hasOwnProperty.call(this.context.labelSet,r)||this.throwError(a.Messages.UnknownLabel,n.name),t=n}return this.consumeSemicolon(),t===null&&!this.context.inIteration&&!this.context.inSwitch&&this.throwError(a.Messages.IllegalBreak),this.finalize(e,new o.BreakStatement(t))},e.prototype.parseReturnStatement=function(){this.context.inFunctionBody||this.tolerateError(a.Messages.IllegalReturn);var e=this.createNode();this.expectKeyword(`return`);var t=!this.match(`;`)&&!this.match(`}`)&&!this.hasLineTerminator&&this.lookahead.type!==2||this.lookahead.type===8||this.lookahead.type===10?this.parseExpression():null;return this.consumeSemicolon(),this.finalize(e,new o.ReturnStatement(t))},e.prototype.parseWithStatement=function(){this.context.strict&&this.tolerateError(a.Messages.StrictModeWith);var e=this.createNode(),t;this.expectKeyword(`with`),this.expect(`(`);var n=this.parseExpression();return!this.match(`)`)&&this.config.tolerant?(this.tolerateUnexpectedToken(this.nextToken()),t=this.finalize(this.createNode(),new o.EmptyStatement)):(this.expect(`)`),t=this.parseStatement()),this.finalize(e,new o.WithStatement(n,t))},e.prototype.parseSwitchCase=function(){var e=this.createNode(),t;this.matchKeyword(`default`)?(this.nextToken(),t=null):(this.expectKeyword(`case`),t=this.parseExpression()),this.expect(`:`);for(var n=[];!(this.match(`}`)||this.matchKeyword(`default`)||this.matchKeyword(`case`));)n.push(this.parseStatementListItem());return this.finalize(e,new o.SwitchCase(t,n))},e.prototype.parseSwitchStatement=function(){var e=this.createNode();this.expectKeyword(`switch`),this.expect(`(`);var t=this.parseExpression();this.expect(`)`);var n=this.context.inSwitch;this.context.inSwitch=!0;var r=[],i=!1;for(this.expect(`{`);!this.match(`}`);){var s=this.parseSwitchCase();s.test===null&&(i&&this.throwError(a.Messages.MultipleDefaultsInSwitch),i=!0),r.push(s)}return this.expect(`}`),this.context.inSwitch=n,this.finalize(e,new o.SwitchStatement(t,r))},e.prototype.parseLabelledStatement=function(){var e=this.createNode(),t=this.parseExpression(),n;if(t.type===c.Syntax.Identifier&&this.match(`:`)){this.nextToken();var r=t,i=`$`+r.name;Object.prototype.hasOwnProperty.call(this.context.labelSet,i)&&this.throwError(a.Messages.Redeclaration,`Label`,r.name),this.context.labelSet[i]=!0;var s=void 0;if(this.matchKeyword(`class`))this.tolerateUnexpectedToken(this.lookahead),s=this.parseClassDeclaration();else if(this.matchKeyword(`function`)){var l=this.lookahead,u=this.parseFunctionDeclaration();this.context.strict?this.tolerateUnexpectedToken(l,a.Messages.StrictFunction):u.generator&&this.tolerateUnexpectedToken(l,a.Messages.GeneratorInLegacyContext),s=u}else s=this.parseStatement();delete this.context.labelSet[i],n=new o.LabeledStatement(r,s)}else this.consumeSemicolon(),n=new o.ExpressionStatement(t);return this.finalize(e,n)},e.prototype.parseThrowStatement=function(){var e=this.createNode();this.expectKeyword(`throw`),this.hasLineTerminator&&this.throwError(a.Messages.NewlineAfterThrow);var t=this.parseExpression();return this.consumeSemicolon(),this.finalize(e,new o.ThrowStatement(t))},e.prototype.parseCatchClause=function(){var e=this.createNode();this.expectKeyword(`catch`),this.expect(`(`),this.match(`)`)&&this.throwUnexpectedToken(this.lookahead);for(var t=[],n=this.parsePattern(t),r={},i=0;i<t.length;i++){var s=`$`+t[i].value;Object.prototype.hasOwnProperty.call(r,s)&&this.tolerateError(a.Messages.DuplicateBinding,t[i].value),r[s]=!0}this.context.strict&&n.type===c.Syntax.Identifier&&this.scanner.isRestrictedWord(n.name)&&this.tolerateError(a.Messages.StrictCatchVariable),this.expect(`)`);var l=this.parseBlock();return this.finalize(e,new o.CatchClause(n,l))},e.prototype.parseFinallyClause=function(){return this.expectKeyword(`finally`),this.parseBlock()},e.prototype.parseTryStatement=function(){var e=this.createNode();this.expectKeyword(`try`);var t=this.parseBlock(),n=this.matchKeyword(`catch`)?this.parseCatchClause():null,r=this.matchKeyword(`finally`)?this.parseFinallyClause():null;return!n&&!r&&this.throwError(a.Messages.NoCatchOrFinally),this.finalize(e,new o.TryStatement(t,n,r))},e.prototype.parseDebuggerStatement=function(){var e=this.createNode();return this.expectKeyword(`debugger`),this.consumeSemicolon(),this.finalize(e,new o.DebuggerStatement)},e.prototype.parseStatement=function(){var e;switch(this.lookahead.type){case 1:case 5:case 6:case 8:case 10:case 9:e=this.parseExpressionStatement();break;case 7:var t=this.lookahead.value;e=t===`{`?this.parseBlock():t===`(`?this.parseExpressionStatement():t===`;`?this.parseEmptyStatement():this.parseExpressionStatement();break;case 3:e=this.matchAsyncFunction()?this.parseFunctionDeclaration():this.parseLabelledStatement();break;case 4:switch(this.lookahead.value){case`break`:e=this.parseBreakStatement();break;case`continue`:e=this.parseContinueStatement();break;case`debugger`:e=this.parseDebuggerStatement();break;case`do`:e=this.parseDoWhileStatement();break;case`for`:e=this.parseForStatement();break;case`function`:e=this.parseFunctionDeclaration();break;case`if`:e=this.parseIfStatement();break;case`return`:e=this.parseReturnStatement();break;case`switch`:e=this.parseSwitchStatement();break;case`throw`:e=this.parseThrowStatement();break;case`try`:e=this.parseTryStatement();break;case`var`:e=this.parseVariableStatement();break;case`while`:e=this.parseWhileStatement();break;case`with`:e=this.parseWithStatement();break;default:e=this.parseExpressionStatement();break}break;default:e=this.throwUnexpectedToken(this.lookahead)}return e},e.prototype.parseFunctionSourceElements=function(){var e=this.createNode();this.expect(`{`);var t=this.parseDirectivePrologues(),n=this.context.labelSet,r=this.context.inIteration,i=this.context.inSwitch,a=this.context.inFunctionBody;for(this.context.labelSet={},this.context.inIteration=!1,this.context.inSwitch=!1,this.context.inFunctionBody=!0;this.lookahead.type!==2&&!this.match(`}`);)t.push(this.parseStatementListItem());return this.expect(`}`),this.context.labelSet=n,this.context.inIteration=r,this.context.inSwitch=i,this.context.inFunctionBody=a,this.finalize(e,new o.BlockStatement(t))},e.prototype.validateParam=function(e,t,n){var r=`$`+n;this.context.strict?(this.scanner.isRestrictedWord(n)&&(e.stricted=t,e.message=a.Messages.StrictParamName),Object.prototype.hasOwnProperty.call(e.paramSet,r)&&(e.stricted=t,e.message=a.Messages.StrictParamDupe)):e.firstRestricted||(this.scanner.isRestrictedWord(n)?(e.firstRestricted=t,e.message=a.Messages.StrictParamName):this.scanner.isStrictModeReservedWord(n)?(e.firstRestricted=t,e.message=a.Messages.StrictReservedWord):Object.prototype.hasOwnProperty.call(e.paramSet,r)&&(e.stricted=t,e.message=a.Messages.StrictParamDupe)),typeof Object.defineProperty==`function`?Object.defineProperty(e.paramSet,r,{value:!0,enumerable:!0,writable:!0,configurable:!0}):e.paramSet[r]=!0},e.prototype.parseRestElement=function(e){var t=this.createNode();this.expect(`...`);var n=this.parsePattern(e);return this.match(`=`)&&this.throwError(a.Messages.DefaultRestParameter),this.match(`)`)||this.throwError(a.Messages.ParameterAfterRestParameter),this.finalize(t,new o.RestElement(n))},e.prototype.parseFormalParameter=function(e){for(var t=[],n=this.match(`...`)?this.parseRestElement(t):this.parsePatternWithDefault(t),r=0;r<t.length;r++)this.validateParam(e,t[r],t[r].value);e.simple=e.simple&&n instanceof o.Identifier,e.params.push(n)},e.prototype.parseFormalParameters=function(e){var t={simple:!0,params:[],firstRestricted:e};if(this.expect(`(`),!this.match(`)`))for(t.paramSet={};this.lookahead.type!==2&&(this.parseFormalParameter(t),!(this.match(`)`)||(this.expect(`,`),this.match(`)`)))););return this.expect(`)`),{simple:t.simple,params:t.params,stricted:t.stricted,firstRestricted:t.firstRestricted,message:t.message}},e.prototype.matchAsyncFunction=function(){var e=this.matchContextualKeyword(`async`);if(e){var t=this.scanner.saveState();this.scanner.scanComments();var n=this.scanner.lex();this.scanner.restoreState(t),e=t.lineNumber===n.lineNumber&&n.type===4&&n.value===`function`}return e},e.prototype.parseFunctionDeclaration=function(e){var t=this.createNode(),n=this.matchContextualKeyword(`async`);n&&this.nextToken(),this.expectKeyword(`function`);var r=n?!1:this.match(`*`);r&&this.nextToken();var i,s=null,c=null;if(!e||!this.match(`(`)){var l=this.lookahead;s=this.parseVariableIdentifier(),this.context.strict?this.scanner.isRestrictedWord(l.value)&&this.tolerateUnexpectedToken(l,a.Messages.StrictFunctionName):this.scanner.isRestrictedWord(l.value)?(c=l,i=a.Messages.StrictFunctionName):this.scanner.isStrictModeReservedWord(l.value)&&(c=l,i=a.Messages.StrictReservedWord)}var u=this.context.await,d=this.context.allowYield;this.context.await=n,this.context.allowYield=!r;var f=this.parseFormalParameters(c),p=f.params,m=f.stricted;c=f.firstRestricted,f.message&&(i=f.message);var h=this.context.strict,g=this.context.allowStrictDirective;this.context.allowStrictDirective=f.simple;var _=this.parseFunctionSourceElements();return this.context.strict&&c&&this.throwUnexpectedToken(c,i),this.context.strict&&m&&this.tolerateUnexpectedToken(m,i),this.context.strict=h,this.context.allowStrictDirective=g,this.context.await=u,this.context.allowYield=d,n?this.finalize(t,new o.AsyncFunctionDeclaration(s,p,_)):this.finalize(t,new o.FunctionDeclaration(s,p,_,r))},e.prototype.parseFunctionExpression=function(){var e=this.createNode(),t=this.matchContextualKeyword(`async`);t&&this.nextToken(),this.expectKeyword(`function`);var n=t?!1:this.match(`*`);n&&this.nextToken();var r,i=null,s,c=this.context.await,l=this.context.allowYield;if(this.context.await=t,this.context.allowYield=!n,!this.match(`(`)){var u=this.lookahead;i=!this.context.strict&&!n&&this.matchKeyword(`yield`)?this.parseIdentifierName():this.parseVariableIdentifier(),this.context.strict?this.scanner.isRestrictedWord(u.value)&&this.tolerateUnexpectedToken(u,a.Messages.StrictFunctionName):this.scanner.isRestrictedWord(u.value)?(s=u,r=a.Messages.StrictFunctionName):this.scanner.isStrictModeReservedWord(u.value)&&(s=u,r=a.Messages.StrictReservedWord)}var d=this.parseFormalParameters(s),f=d.params,p=d.stricted;s=d.firstRestricted,d.message&&(r=d.message);var m=this.context.strict,h=this.context.allowStrictDirective;this.context.allowStrictDirective=d.simple;var g=this.parseFunctionSourceElements();return this.context.strict&&s&&this.throwUnexpectedToken(s,r),this.context.strict&&p&&this.tolerateUnexpectedToken(p,r),this.context.strict=m,this.context.allowStrictDirective=h,this.context.await=c,this.context.allowYield=l,t?this.finalize(e,new o.AsyncFunctionExpression(i,f,g)):this.finalize(e,new o.FunctionExpression(i,f,g,n))},e.prototype.parseDirective=function(){var e=this.lookahead,t=this.createNode(),n=this.parseExpression(),r=n.type===c.Syntax.Literal?this.getTokenRaw(e).slice(1,-1):null;return this.consumeSemicolon(),this.finalize(t,r?new o.Directive(n,r):new o.ExpressionStatement(n))},e.prototype.parseDirectivePrologues=function(){for(var e=null,t=[];;){var n=this.lookahead;if(n.type!==8)break;var r=this.parseDirective();t.push(r);var i=r.directive;if(typeof i!=`string`)break;i===`use strict`?(this.context.strict=!0,e&&this.tolerateUnexpectedToken(e,a.Messages.StrictOctalLiteral),this.context.allowStrictDirective||this.tolerateUnexpectedToken(n,a.Messages.IllegalLanguageModeDirective)):!e&&n.octal&&(e=n)}return t},e.prototype.qualifiedPropertyName=function(e){switch(e.type){case 3:case 8:case 1:case 5:case 6:case 4:return!0;case 7:return e.value===`[`}return!1},e.prototype.parseGetterMethod=function(){var e=this.createNode(),t=!1,n=this.context.allowYield;this.context.allowYield=!t;var r=this.parseFormalParameters();r.params.length>0&&this.tolerateError(a.Messages.BadGetterArity);var i=this.parsePropertyMethod(r);return this.context.allowYield=n,this.finalize(e,new o.FunctionExpression(null,r.params,i,t))},e.prototype.parseSetterMethod=function(){var e=this.createNode(),t=!1,n=this.context.allowYield;this.context.allowYield=!t;var r=this.parseFormalParameters();r.params.length===1?r.params[0]instanceof o.RestElement&&this.tolerateError(a.Messages.BadSetterRestParameter):this.tolerateError(a.Messages.BadSetterArity);var i=this.parsePropertyMethod(r);return this.context.allowYield=n,this.finalize(e,new o.FunctionExpression(null,r.params,i,t))},e.prototype.parseGeneratorMethod=function(){var e=this.createNode(),t=!0,n=this.context.allowYield;this.context.allowYield=!0;var r=this.parseFormalParameters();this.context.allowYield=!1;var i=this.parsePropertyMethod(r);return this.context.allowYield=n,this.finalize(e,new o.FunctionExpression(null,r.params,i,t))},e.prototype.isStartOfExpression=function(){var e=!0,t=this.lookahead.value;switch(this.lookahead.type){case 7:e=t===`[`||t===`(`||t===`{`||t===`+`||t===`-`||t===`!`||t===`~`||t===`++`||t===`--`||t===`/`||t===`/=`;break;case 4:e=t===`class`||t===`delete`||t===`function`||t===`let`||t===`new`||t===`super`||t===`this`||t===`typeof`||t===`void`||t===`yield`;break}return e},e.prototype.parseYieldExpression=function(){var e=this.createNode();this.expectKeyword(`yield`);var t=null,n=!1;if(!this.hasLineTerminator){var r=this.context.allowYield;this.context.allowYield=!1,n=this.match(`*`),n?(this.nextToken(),t=this.parseAssignmentExpression()):this.isStartOfExpression()&&(t=this.parseAssignmentExpression()),this.context.allowYield=r}return this.finalize(e,new o.YieldExpression(t,n))},e.prototype.parseClassElement=function(e){var t=this.lookahead,n=this.createNode(),r=``,i=null,s=null,c=!1,l=!1,u=!1,d=!1;if(this.match(`*`))this.nextToken();else if(c=this.match(`[`),i=this.parseObjectPropertyKey(),i.name===`static`&&(this.qualifiedPropertyName(this.lookahead)||this.match(`*`))&&(t=this.lookahead,u=!0,c=this.match(`[`),this.match(`*`)?this.nextToken():i=this.parseObjectPropertyKey()),t.type===3&&!this.hasLineTerminator&&t.value===`async`){var f=this.lookahead.value;f!==`:`&&f!==`(`&&f!==`*`&&(d=!0,t=this.lookahead,i=this.parseObjectPropertyKey(),t.type===3&&t.value===`constructor`&&this.tolerateUnexpectedToken(t,a.Messages.ConstructorIsAsync))}var p=this.qualifiedPropertyName(this.lookahead);return t.type===3?t.value===`get`&&p?(r=`get`,c=this.match(`[`),i=this.parseObjectPropertyKey(),this.context.allowYield=!1,s=this.parseGetterMethod()):t.value===`set`&&p&&(r=`set`,c=this.match(`[`),i=this.parseObjectPropertyKey(),s=this.parseSetterMethod()):t.type===7&&t.value===`*`&&p&&(r=`init`,c=this.match(`[`),i=this.parseObjectPropertyKey(),s=this.parseGeneratorMethod(),l=!0),!r&&i&&this.match(`(`)&&(r=`init`,s=d?this.parsePropertyMethodAsyncFunction():this.parsePropertyMethodFunction(),l=!0),r||this.throwUnexpectedToken(this.lookahead),r===`init`&&(r=`method`),c||(u&&this.isPropertyKey(i,`prototype`)&&this.throwUnexpectedToken(t,a.Messages.StaticPrototype),!u&&this.isPropertyKey(i,`constructor`)&&((r!==`method`||!l||s&&s.generator)&&this.throwUnexpectedToken(t,a.Messages.ConstructorSpecialMethod),e.value?this.throwUnexpectedToken(t,a.Messages.DuplicateConstructor):e.value=!0,r=`constructor`)),this.finalize(n,new o.MethodDefinition(i,c,s,r,u))},e.prototype.parseClassElementList=function(){var e=[],t={value:!1};for(this.expect(`{`);!this.match(`}`);)this.match(`;`)?this.nextToken():e.push(this.parseClassElement(t));return this.expect(`}`),e},e.prototype.parseClassBody=function(){var e=this.createNode(),t=this.parseClassElementList();return this.finalize(e,new o.ClassBody(t))},e.prototype.parseClassDeclaration=function(e){var t=this.createNode(),n=this.context.strict;this.context.strict=!0,this.expectKeyword(`class`);var r=e&&this.lookahead.type!==3?null:this.parseVariableIdentifier(),i=null;this.matchKeyword(`extends`)&&(this.nextToken(),i=this.isolateCoverGrammar(this.parseLeftHandSideExpressionAllowCall));var a=this.parseClassBody();return this.context.strict=n,this.finalize(t,new o.ClassDeclaration(r,i,a))},e.prototype.parseClassExpression=function(){var e=this.createNode(),t=this.context.strict;this.context.strict=!0,this.expectKeyword(`class`);var n=this.lookahead.type===3?this.parseVariableIdentifier():null,r=null;this.matchKeyword(`extends`)&&(this.nextToken(),r=this.isolateCoverGrammar(this.parseLeftHandSideExpressionAllowCall));var i=this.parseClassBody();return this.context.strict=t,this.finalize(e,new o.ClassExpression(n,r,i))},e.prototype.parseModule=function(){this.context.strict=!0,this.context.isModule=!0,this.scanner.isModule=!0;for(var e=this.createNode(),t=this.parseDirectivePrologues();this.lookahead.type!==2;)t.push(this.parseStatementListItem());return this.finalize(e,new o.Module(t))},e.prototype.parseScript=function(){for(var e=this.createNode(),t=this.parseDirectivePrologues();this.lookahead.type!==2;)t.push(this.parseStatementListItem());return this.finalize(e,new o.Script(t))},e.prototype.parseModuleSpecifier=function(){var e=this.createNode();this.lookahead.type!==8&&this.throwError(a.Messages.InvalidModuleSpecifier);var t=this.nextToken(),n=this.getTokenRaw(t);return this.finalize(e,new o.Literal(t.value,n))},e.prototype.parseImportSpecifier=function(){var e=this.createNode(),t,n;return this.lookahead.type===3?(t=this.parseVariableIdentifier(),n=t,this.matchContextualKeyword(`as`)&&(this.nextToken(),n=this.parseVariableIdentifier())):(t=this.parseIdentifierName(),n=t,this.matchContextualKeyword(`as`)?(this.nextToken(),n=this.parseVariableIdentifier()):this.throwUnexpectedToken(this.nextToken())),this.finalize(e,new o.ImportSpecifier(n,t))},e.prototype.parseNamedImports=function(){this.expect(`{`);for(var e=[];!this.match(`}`);)e.push(this.parseImportSpecifier()),this.match(`}`)||this.expect(`,`);return this.expect(`}`),e},e.prototype.parseImportDefaultSpecifier=function(){var e=this.createNode(),t=this.parseIdentifierName();return this.finalize(e,new o.ImportDefaultSpecifier(t))},e.prototype.parseImportNamespaceSpecifier=function(){var e=this.createNode();this.expect(`*`),this.matchContextualKeyword(`as`)||this.throwError(a.Messages.NoAsAfterImportNamespace),this.nextToken();var t=this.parseIdentifierName();return this.finalize(e,new o.ImportNamespaceSpecifier(t))},e.prototype.parseImportDeclaration=function(){this.context.inFunctionBody&&this.throwError(a.Messages.IllegalImportDeclaration);var e=this.createNode();this.expectKeyword(`import`);var t,n=[];if(this.lookahead.type===8)t=this.parseModuleSpecifier();else{if(this.match(`{`)?n=n.concat(this.parseNamedImports()):this.match(`*`)?n.push(this.parseImportNamespaceSpecifier()):this.isIdentifierName(this.lookahead)&&!this.matchKeyword(`default`)?(n.push(this.parseImportDefaultSpecifier()),this.match(`,`)&&(this.nextToken(),this.match(`*`)?n.push(this.parseImportNamespaceSpecifier()):this.match(`{`)?n=n.concat(this.parseNamedImports()):this.throwUnexpectedToken(this.lookahead))):this.throwUnexpectedToken(this.nextToken()),!this.matchContextualKeyword(`from`)){var r=this.lookahead.value?a.Messages.UnexpectedToken:a.Messages.MissingFromClause;this.throwError(r,this.lookahead.value)}this.nextToken(),t=this.parseModuleSpecifier()}return this.consumeSemicolon(),this.finalize(e,new o.ImportDeclaration(n,t))},e.prototype.parseExportSpecifier=function(){var e=this.createNode(),t=this.parseIdentifierName(),n=t;return this.matchContextualKeyword(`as`)&&(this.nextToken(),n=this.parseIdentifierName()),this.finalize(e,new o.ExportSpecifier(t,n))},e.prototype.parseExportDeclaration=function(){this.context.inFunctionBody&&this.throwError(a.Messages.IllegalExportDeclaration);var e=this.createNode();this.expectKeyword(`export`);var t;if(this.matchKeyword(`default`))if(this.nextToken(),this.matchKeyword(`function`)){var n=this.parseFunctionDeclaration(!0);t=this.finalize(e,new o.ExportDefaultDeclaration(n))}else if(this.matchKeyword(`class`)){var n=this.parseClassDeclaration(!0);t=this.finalize(e,new o.ExportDefaultDeclaration(n))}else if(this.matchContextualKeyword(`async`)){var n=this.matchAsyncFunction()?this.parseFunctionDeclaration(!0):this.parseAssignmentExpression();t=this.finalize(e,new o.ExportDefaultDeclaration(n))}else{this.matchContextualKeyword(`from`)&&this.throwError(a.Messages.UnexpectedToken,this.lookahead.value);var n=this.match(`{`)?this.parseObjectInitializer():this.match(`[`)?this.parseArrayInitializer():this.parseAssignmentExpression();this.consumeSemicolon(),t=this.finalize(e,new o.ExportDefaultDeclaration(n))}else if(this.match(`*`)){if(this.nextToken(),!this.matchContextualKeyword(`from`)){var r=this.lookahead.value?a.Messages.UnexpectedToken:a.Messages.MissingFromClause;this.throwError(r,this.lookahead.value)}this.nextToken();var i=this.parseModuleSpecifier();this.consumeSemicolon(),t=this.finalize(e,new o.ExportAllDeclaration(i))}else if(this.lookahead.type===4){var n=void 0;switch(this.lookahead.value){case`let`:case`const`:n=this.parseLexicalDeclaration({inFor:!1});break;case`var`:case`class`:case`function`:n=this.parseStatementListItem();break;default:this.throwUnexpectedToken(this.lookahead)}t=this.finalize(e,new o.ExportNamedDeclaration(n,[],null))}else if(this.matchAsyncFunction()){var n=this.parseFunctionDeclaration();t=this.finalize(e,new o.ExportNamedDeclaration(n,[],null))}else{var s=[],c=null,l=!1;for(this.expect(`{`);!this.match(`}`);)l||=this.matchKeyword(`default`),s.push(this.parseExportSpecifier()),this.match(`}`)||this.expect(`,`);if(this.expect(`}`),this.matchContextualKeyword(`from`))this.nextToken(),c=this.parseModuleSpecifier(),this.consumeSemicolon();else if(l){var r=this.lookahead.value?a.Messages.UnexpectedToken:a.Messages.MissingFromClause;this.throwError(r,this.lookahead.value)}else this.consumeSemicolon();t=this.finalize(e,new o.ExportNamedDeclaration(null,s,c))}return t},e}()},function(e,t){Object.defineProperty(t,`__esModule`,{value:!0});function n(e,t){if(!e)throw Error(`ASSERT: `+t)}x(n,`assert`),t.assert=n},function(e,t){Object.defineProperty(t,`__esModule`,{value:!0}),t.ErrorHandler=function(){function e(){this.errors=[],this.tolerant=!1}return x(e,`ErrorHandler`),e.prototype.recordError=function(e){this.errors.push(e)},e.prototype.tolerate=function(e){if(this.tolerant)this.recordError(e);else throw e},e.prototype.constructError=function(e,t){var n=Error(e);try{throw n}catch(e){Object.create&&Object.defineProperty&&(n=Object.create(e),Object.defineProperty(n,`column`,{value:t}))}return n},e.prototype.createError=function(e,t,n,r){var i=`Line `+t+`: `+r,a=this.constructError(i,n);return a.index=e,a.lineNumber=t,a.description=r,a},e.prototype.throwError=function(e,t,n,r){throw this.createError(e,t,n,r)},e.prototype.tolerateError=function(e,t,n,r){var i=this.createError(e,t,n,r);if(this.tolerant)this.recordError(i);else throw i},e}()},function(e,t){Object.defineProperty(t,`__esModule`,{value:!0}),t.Messages={BadGetterArity:`Getter must not have any formal parameters`,BadSetterArity:`Setter must have exactly one formal parameter`,BadSetterRestParameter:`Setter function argument must not be a rest parameter`,ConstructorIsAsync:`Class constructor may not be an async method`,ConstructorSpecialMethod:`Class constructor may not be an accessor`,DeclarationMissingInitializer:`Missing initializer in %0 declaration`,DefaultRestParameter:`Unexpected token =`,DuplicateBinding:`Duplicate binding %0`,DuplicateConstructor:`A class may only have one constructor`,DuplicateProtoProperty:`Duplicate __proto__ fields are not allowed in object literals`,ForInOfLoopInitializer:`%0 loop variable declaration may not have an initializer`,GeneratorInLegacyContext:`Generator declarations are not allowed in legacy contexts`,IllegalBreak:`Illegal break statement`,IllegalContinue:`Illegal continue statement`,IllegalExportDeclaration:`Unexpected token`,IllegalImportDeclaration:`Unexpected token`,IllegalLanguageModeDirective:`Illegal 'use strict' directive in function with non-simple parameter list`,IllegalReturn:`Illegal return statement`,InvalidEscapedReservedWord:`Keyword must not contain escaped characters`,InvalidHexEscapeSequence:`Invalid hexadecimal escape sequence`,InvalidLHSInAssignment:`Invalid left-hand side in assignment`,InvalidLHSInForIn:`Invalid left-hand side in for-in`,InvalidLHSInForLoop:`Invalid left-hand side in for-loop`,InvalidModuleSpecifier:`Unexpected token`,InvalidRegExp:`Invalid regular expression`,LetInLexicalBinding:`let is disallowed as a lexically bound name`,MissingFromClause:`Unexpected token`,MultipleDefaultsInSwitch:`More than one default clause in switch statement`,NewlineAfterThrow:`Illegal newline after throw`,NoAsAfterImportNamespace:`Unexpected token`,NoCatchOrFinally:`Missing catch or finally after try`,ParameterAfterRestParameter:`Rest parameter must be last formal parameter`,Redeclaration:`%0 '%1' has already been declared`,StaticPrototype:`Classes may not have static property named prototype`,StrictCatchVariable:`Catch variable may not be eval or arguments in strict mode`,StrictDelete:`Delete of an unqualified identifier in strict mode.`,StrictFunction:`In strict mode code, functions can only be declared at top level or inside a block`,StrictFunctionName:`Function name may not be eval or arguments in strict mode`,StrictLHSAssignment:`Assignment to eval or arguments is not allowed in strict mode`,StrictLHSPostfix:`Postfix increment/decrement may not have eval or arguments operand in strict mode`,StrictLHSPrefix:`Prefix increment/decrement may not have eval or arguments operand in strict mode`,StrictModeWith:`Strict mode code may not include a with statement`,StrictOctalLiteral:`Octal literals are not allowed in strict mode.`,StrictParamDupe:`Strict mode function may not have duplicate parameter names`,StrictParamName:`Parameter name eval or arguments is not allowed in strict mode`,StrictReservedWord:`Use of future reserved word in strict mode`,StrictVarName:`Variable name may not be eval or arguments in strict mode`,TemplateOctalLiteral:`Octal literals are not allowed in template strings.`,UnexpectedEOS:`Unexpected end of input`,UnexpectedIdentifier:`Unexpected identifier`,UnexpectedNumber:`Unexpected number`,UnexpectedReserved:`Unexpected reserved word`,UnexpectedString:`Unexpected string`,UnexpectedTemplate:`Unexpected quasi %0`,UnexpectedToken:`Unexpected token %0`,UnexpectedTokenIllegal:`Unexpected token ILLEGAL`,UnknownLabel:`Undefined label '%0'`,UnterminatedRegExp:`Invalid regular expression: missing /`}},function(e,t,n){Object.defineProperty(t,`__esModule`,{value:!0});var r=n(9),i=n(4),a=n(11);function o(e){return`0123456789abcdef`.indexOf(e.toLowerCase())}x(o,`hexValue`);function s(e){return`01234567`.indexOf(e)}x(s,`octalValue`),t.Scanner=function(){function e(e,t){this.source=e,this.errorHandler=t,this.trackComment=!1,this.isModule=!1,this.length=e.length,this.index=0,this.lineNumber=+(e.length>0),this.lineStart=0,this.curlyStack=[]}return x(e,`Scanner`),e.prototype.saveState=function(){return{index:this.index,lineNumber:this.lineNumber,lineStart:this.lineStart}},e.prototype.restoreState=function(e){this.index=e.index,this.lineNumber=e.lineNumber,this.lineStart=e.lineStart},e.prototype.eof=function(){return this.index>=this.length},e.prototype.throwUnexpectedToken=function(e){return e===void 0&&(e=a.Messages.UnexpectedTokenIllegal),this.errorHandler.throwError(this.index,this.lineNumber,this.index-this.lineStart+1,e)},e.prototype.tolerateUnexpectedToken=function(e){e===void 0&&(e=a.Messages.UnexpectedTokenIllegal),this.errorHandler.tolerateError(this.index,this.lineNumber,this.index-this.lineStart+1,e)},e.prototype.skipSingleLineComment=function(e){var t=[],n,r;for(this.trackComment&&(t=[],n=this.index-e,r={start:{line:this.lineNumber,column:this.index-this.lineStart-e},end:{}});!this.eof();){var a=this.source.charCodeAt(this.index);if(++this.index,i.Character.isLineTerminator(a)){if(this.trackComment){r.end={line:this.lineNumber,column:this.index-this.lineStart-1};var o={multiLine:!1,slice:[n+e,this.index-1],range:[n,this.index-1],loc:r};t.push(o)}return a===13&&this.source.charCodeAt(this.index)===10&&++this.index,++this.lineNumber,this.lineStart=this.index,t}}if(this.trackComment){r.end={line:this.lineNumber,column:this.index-this.lineStart};var o={multiLine:!1,slice:[n+e,this.index],range:[n,this.index],loc:r};t.push(o)}return t},e.prototype.skipMultiLineComment=function(){var e=[],t,n;for(this.trackComment&&(e=[],t=this.index-2,n={start:{line:this.lineNumber,column:this.index-this.lineStart-2},end:{}});!this.eof();){var r=this.source.charCodeAt(this.index);if(i.Character.isLineTerminator(r))r===13&&this.source.charCodeAt(this.index+1)===10&&++this.index,++this.lineNumber,++this.index,this.lineStart=this.index;else if(r===42){if(this.source.charCodeAt(this.index+1)===47){if(this.index+=2,this.trackComment){n.end={line:this.lineNumber,column:this.index-this.lineStart};var a={multiLine:!0,slice:[t+2,this.index-2],range:[t,this.index],loc:n};e.push(a)}return e}++this.index}else ++this.index}if(this.trackComment){n.end={line:this.lineNumber,column:this.index-this.lineStart};var a={multiLine:!0,slice:[t+2,this.index],range:[t,this.index],loc:n};e.push(a)}return this.tolerateUnexpectedToken(),e},e.prototype.scanComments=function(){var e;this.trackComment&&(e=[]);for(var t=this.index===0;!this.eof();){var n=this.source.charCodeAt(this.index);if(i.Character.isWhiteSpace(n))++this.index;else if(i.Character.isLineTerminator(n))++this.index,n===13&&this.source.charCodeAt(this.index)===10&&++this.index,++this.lineNumber,this.lineStart=this.index,t=!0;else if(n===47)if(n=this.source.charCodeAt(this.index+1),n===47){this.index+=2;var r=this.skipSingleLineComment(2);this.trackComment&&(e=e.concat(r)),t=!0}else if(n===42){this.index+=2;var r=this.skipMultiLineComment();this.trackComment&&(e=e.concat(r))}else break;else if(t&&n===45)if(this.source.charCodeAt(this.index+1)===45&&this.source.charCodeAt(this.index+2)===62){this.index+=3;var r=this.skipSingleLineComment(3);this.trackComment&&(e=e.concat(r))}else break;else if(n===60&&!this.isModule)if(this.source.slice(this.index+1,this.index+4)===`!--`){this.index+=4;var r=this.skipSingleLineComment(4);this.trackComment&&(e=e.concat(r))}else break;else break}return e},e.prototype.isFutureReservedWord=function(e){switch(e){case`enum`:case`export`:case`import`:case`super`:return!0;default:return!1}},e.prototype.isStrictModeReservedWord=function(e){switch(e){case`implements`:case`interface`:case`package`:case`private`:case`protected`:case`public`:case`static`:case`yield`:case`let`:return!0;default:return!1}},e.prototype.isRestrictedWord=function(e){return e===`eval`||e===`arguments`},e.prototype.isKeyword=function(e){switch(e.length){case 2:return e===`if`||e===`in`||e===`do`;case 3:return e===`var`||e===`for`||e===`new`||e===`try`||e===`let`;case 4:return e===`this`||e===`else`||e===`case`||e===`void`||e===`with`||e===`enum`;case 5:return e===`while`||e===`break`||e===`catch`||e===`throw`||e===`const`||e===`yield`||e===`class`||e===`super`;case 6:return e===`return`||e===`typeof`||e===`delete`||e===`switch`||e===`export`||e===`import`;case 7:return e===`default`||e===`finally`||e===`extends`;case 8:return e===`function`||e===`continue`||e===`debugger`;case 10:return e===`instanceof`;default:return!1}},e.prototype.codePointAt=function(e){var t=this.source.charCodeAt(e);if(t>=55296&&t<=56319){var n=this.source.charCodeAt(e+1);n>=56320&&n<=57343&&(t=(t-55296)*1024+n-56320+65536)}return t},e.prototype.scanHexEscape=function(e){for(var t=e===`u`?4:2,n=0,r=0;r<t;++r)if(!this.eof()&&i.Character.isHexDigit(this.source.charCodeAt(this.index)))n=n*16+o(this.source[this.index++]);else return null;return String.fromCharCode(n)},e.prototype.scanUnicodeCodePointEscape=function(){var e=this.source[this.index],t=0;for(e===`}`&&this.throwUnexpectedToken();!this.eof()&&(e=this.source[this.index++],i.Character.isHexDigit(e.charCodeAt(0)));)t=t*16+o(e);return(t>1114111||e!==`}`)&&this.throwUnexpectedToken(),i.Character.fromCodePoint(t)},e.prototype.getIdentifier=function(){for(var e=this.index++;!this.eof();){var t=this.source.charCodeAt(this.index);if(t===92||t>=55296&&t<57343)return this.index=e,this.getComplexIdentifier();if(i.Character.isIdentifierPart(t))++this.index;else break}return this.source.slice(e,this.index)},e.prototype.getComplexIdentifier=function(){var e=this.codePointAt(this.index),t=i.Character.fromCodePoint(e);this.index+=t.length;var n;for(e===92&&(this.source.charCodeAt(this.index)!==117&&this.throwUnexpectedToken(),++this.index,this.source[this.index]===`{`?(++this.index,n=this.scanUnicodeCodePointEscape()):(n=this.scanHexEscape(`u`),(n===null||n===`\\`||!i.Character.isIdentifierStart(n.charCodeAt(0)))&&this.throwUnexpectedToken()),t=n);!this.eof()&&(e=this.codePointAt(this.index),i.Character.isIdentifierPart(e));)n=i.Character.fromCodePoint(e),t+=n,this.index+=n.length,e===92&&(t=t.substr(0,t.length-1),this.source.charCodeAt(this.index)!==117&&this.throwUnexpectedToken(),++this.index,this.source[this.index]===`{`?(++this.index,n=this.scanUnicodeCodePointEscape()):(n=this.scanHexEscape(`u`),(n===null||n===`\\`||!i.Character.isIdentifierPart(n.charCodeAt(0)))&&this.throwUnexpectedToken()),t+=n);return t},e.prototype.octalToDecimal=function(e){var t=e!==`0`,n=s(e);return!this.eof()&&i.Character.isOctalDigit(this.source.charCodeAt(this.index))&&(t=!0,n=n*8+s(this.source[this.index++]),`0123`.indexOf(e)>=0&&!this.eof()&&i.Character.isOctalDigit(this.source.charCodeAt(this.index))&&(n=n*8+s(this.source[this.index++]))),{code:n,octal:t}},e.prototype.scanIdentifier=function(){var e,t=this.index,n=this.source.charCodeAt(t)===92?this.getComplexIdentifier():this.getIdentifier();if(e=n.length===1?3:this.isKeyword(n)?4:n===`null`?5:n===`true`||n===`false`?1:3,e!==3&&t+n.length!==this.index){var r=this.index;this.index=t,this.tolerateUnexpectedToken(a.Messages.InvalidEscapedReservedWord),this.index=r}return{type:e,value:n,lineNumber:this.lineNumber,lineStart:this.lineStart,start:t,end:this.index}},e.prototype.scanPunctuator=function(){var e=this.index,t=this.source[this.index];switch(t){case`(`:case`{`:t===`{`&&this.curlyStack.push(`{`),++this.index;break;case`.`:++this.index,this.source[this.index]===`.`&&this.source[this.index+1]===`.`&&(this.index+=2,t=`...`);break;case`}`:++this.index,this.curlyStack.pop();break;case`)`:case`;`:case`,`:case`[`:case`]`:case`:`:case`?`:case`~`:++this.index;break;default:t=this.source.substr(this.index,4),t===`>>>=`?this.index+=4:(t=t.substr(0,3),t===`===`||t===`!==`||t===`>>>`||t===`<<=`||t===`>>=`||t===`**=`?this.index+=3:(t=t.substr(0,2),t===`&&`||t===`||`||t===`==`||t===`!=`||t===`+=`||t===`-=`||t===`*=`||t===`/=`||t===`++`||t===`--`||t===`<<`||t===`>>`||t===`&=`||t===`|=`||t===`^=`||t===`%=`||t===`<=`||t===`>=`||t===`=>`||t===`**`?this.index+=2:(t=this.source[this.index],`<>=!+-*%&|^/`.indexOf(t)>=0&&++this.index)))}return this.index===e&&this.throwUnexpectedToken(),{type:7,value:t,lineNumber:this.lineNumber,lineStart:this.lineStart,start:e,end:this.index}},e.prototype.scanHexLiteral=function(e){for(var t=``;!this.eof()&&i.Character.isHexDigit(this.source.charCodeAt(this.index));)t+=this.source[this.index++];return t.length===0&&this.throwUnexpectedToken(),i.Character.isIdentifierStart(this.source.charCodeAt(this.index))&&this.throwUnexpectedToken(),{type:6,value:parseInt(`0x`+t,16),lineNumber:this.lineNumber,lineStart:this.lineStart,start:e,end:this.index}},e.prototype.scanBinaryLiteral=function(e){for(var t=``,n;!this.eof()&&(n=this.source[this.index],!(n!==`0`&&n!==`1`));)t+=this.source[this.index++];return t.length===0&&this.throwUnexpectedToken(),this.eof()||(n=this.source.charCodeAt(this.index),(i.Character.isIdentifierStart(n)||i.Character.isDecimalDigit(n))&&this.throwUnexpectedToken()),{type:6,value:parseInt(t,2),lineNumber:this.lineNumber,lineStart:this.lineStart,start:e,end:this.index}},e.prototype.scanOctalLiteral=function(e,t){var n=``,r=!1;for(i.Character.isOctalDigit(e.charCodeAt(0))?(r=!0,n=`0`+this.source[this.index++]):++this.index;!this.eof()&&i.Character.isOctalDigit(this.source.charCodeAt(this.index));)n+=this.source[this.index++];return!r&&n.length===0&&this.throwUnexpectedToken(),(i.Character.isIdentifierStart(this.source.charCodeAt(this.index))||i.Character.isDecimalDigit(this.source.charCodeAt(this.index)))&&this.throwUnexpectedToken(),{type:6,value:parseInt(n,8),octal:r,lineNumber:this.lineNumber,lineStart:this.lineStart,start:t,end:this.index}},e.prototype.isImplicitOctalLiteral=function(){for(var e=this.index+1;e<this.length;++e){var t=this.source[e];if(t===`8`||t===`9`)return!1;if(!i.Character.isOctalDigit(t.charCodeAt(0)))return!0}return!0},e.prototype.scanNumericLiteral=function(){var e=this.index,t=this.source[e];r.assert(i.Character.isDecimalDigit(t.charCodeAt(0))||t===`.`,`Numeric literal must start with a decimal digit or a decimal point`);var n=``;if(t!==`.`){if(n=this.source[this.index++],t=this.source[this.index],n===`0`){if(t===`x`||t===`X`)return++this.index,this.scanHexLiteral(e);if(t===`b`||t===`B`)return++this.index,this.scanBinaryLiteral(e);if(t===`o`||t===`O`||t&&i.Character.isOctalDigit(t.charCodeAt(0))&&this.isImplicitOctalLiteral())return this.scanOctalLiteral(t,e)}for(;i.Character.isDecimalDigit(this.source.charCodeAt(this.index));)n+=this.source[this.index++];t=this.source[this.index]}if(t===`.`){for(n+=this.source[this.index++];i.Character.isDecimalDigit(this.source.charCodeAt(this.index));)n+=this.source[this.index++];t=this.source[this.index]}if(t===`e`||t===`E`)if(n+=this.source[this.index++],t=this.source[this.index],(t===`+`||t===`-`)&&(n+=this.source[this.index++]),i.Character.isDecimalDigit(this.source.charCodeAt(this.index)))for(;i.Character.isDecimalDigit(this.source.charCodeAt(this.index));)n+=this.source[this.index++];else this.throwUnexpectedToken();return i.Character.isIdentifierStart(this.source.charCodeAt(this.index))&&this.throwUnexpectedToken(),{type:6,value:parseFloat(n),lineNumber:this.lineNumber,lineStart:this.lineStart,start:e,end:this.index}},e.prototype.scanStringLiteral=function(){var e=this.index,t=this.source[e];r.assert(t===`'`||t===`"`,`String literal must starts with a quote`),++this.index;for(var n=!1,o=``;!this.eof();){var s=this.source[this.index++];if(s===t){t=``;break}else if(s===`\\`)if(s=this.source[this.index++],!s||!i.Character.isLineTerminator(s.charCodeAt(0)))switch(s){case`u`:if(this.source[this.index]===`{`)++this.index,o+=this.scanUnicodeCodePointEscape();else{var c=this.scanHexEscape(s);c===null&&this.throwUnexpectedToken(),o+=c}break;case`x`:var l=this.scanHexEscape(s);l===null&&this.throwUnexpectedToken(a.Messages.InvalidHexEscapeSequence),o+=l;break;case`n`:o+=`
7
7
  `;break;case`r`:o+=`\r`;break;case`t`:o+=` `;break;case`b`:o+=`\b`;break;case`f`:o+=`\f`;break;case`v`:o+=`\v`;break;case`8`:case`9`:o+=s,this.tolerateUnexpectedToken();break;default:if(s&&i.Character.isOctalDigit(s.charCodeAt(0))){var u=this.octalToDecimal(s);n=u.octal||n,o+=String.fromCharCode(u.code)}else o+=s;break}else ++this.lineNumber,s===`\r`&&this.source[this.index]===`
8
8
  `&&++this.index,this.lineStart=this.index;else if(i.Character.isLineTerminator(s.charCodeAt(0)))break;else o+=s}return t!==``&&(this.index=e,this.throwUnexpectedToken()),{type:8,value:o,octal:n,lineNumber:this.lineNumber,lineStart:this.lineStart,start:e,end:this.index}},e.prototype.scanTemplate=function(){var e=``,t=!1,n=this.index,r=this.source[n]==="`",o=!1,s=2;for(++this.index;!this.eof();){var c=this.source[this.index++];if(c==="`"){s=1,o=!0,t=!0;break}else if(c===`$`){if(this.source[this.index]===`{`){this.curlyStack.push("${"),++this.index,t=!0;break}e+=c}else if(c===`\\`)if(c=this.source[this.index++],i.Character.isLineTerminator(c.charCodeAt(0)))++this.lineNumber,c===`\r`&&this.source[this.index]===`
9
9
  `&&++this.index,this.lineStart=this.index;else switch(c){case`n`:e+=`
10
10
  `;break;case`r`:e+=`\r`;break;case`t`:e+=` `;break;case`u`:if(this.source[this.index]===`{`)++this.index,e+=this.scanUnicodeCodePointEscape();else{var l=this.index,u=this.scanHexEscape(c);u===null?(this.index=l,e+=c):e+=u}break;case`x`:var d=this.scanHexEscape(c);d===null&&this.throwUnexpectedToken(a.Messages.InvalidHexEscapeSequence),e+=d;break;case`b`:e+=`\b`;break;case`f`:e+=`\f`;break;case`v`:e+=`\v`;break;default:c===`0`?(i.Character.isDecimalDigit(this.source.charCodeAt(this.index))&&this.throwUnexpectedToken(a.Messages.TemplateOctalLiteral),e+=`\0`):i.Character.isOctalDigit(c.charCodeAt(0))?this.throwUnexpectedToken(a.Messages.TemplateOctalLiteral):e+=c;break}else i.Character.isLineTerminator(c.charCodeAt(0))?(++this.lineNumber,c===`\r`&&this.source[this.index]===`
11
11
  `&&++this.index,this.lineStart=this.index,e+=`
12
- `):e+=c}return t||this.throwUnexpectedToken(),r||this.curlyStack.pop(),{type:10,value:this.source.slice(n+1,this.index-s),cooked:e,head:r,tail:o,lineNumber:this.lineNumber,lineStart:this.lineStart,start:n,end:this.index}},e.prototype.testRegExp=function(e,t){var n=`￿`,r=e,i=this;t.indexOf(`u`)>=0&&(r=r.replace(/\\u\{([0-9a-fA-F]+)\}|\\u([a-fA-F0-9]{4})/g,function(e,t,r){var o=parseInt(t||r,16);return o>1114111&&i.throwUnexpectedToken(a.Messages.InvalidRegExp),o<=65535?String.fromCharCode(o):n}).replace(/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,n));try{RegExp(r)}catch{this.throwUnexpectedToken(a.Messages.InvalidRegExp)}try{return new RegExp(e,t)}catch{return null}},e.prototype.scanRegExpBody=function(){var e=this.source[this.index];r.assert(e===`/`,`Regular expression literal must start with a slash`);for(var t=this.source[this.index++],n=!1,o=!1;!this.eof();)if(e=this.source[this.index++],t+=e,e===`\\`)e=this.source[this.index++],i.Character.isLineTerminator(e.charCodeAt(0))&&this.throwUnexpectedToken(a.Messages.UnterminatedRegExp),t+=e;else if(i.Character.isLineTerminator(e.charCodeAt(0)))this.throwUnexpectedToken(a.Messages.UnterminatedRegExp);else if(n)e===`]`&&(n=!1);else if(e===`/`){o=!0;break}else e===`[`&&(n=!0);return o||this.throwUnexpectedToken(a.Messages.UnterminatedRegExp),t.substr(1,t.length-2)},e.prototype.scanRegExpFlags=function(){for(var e=``,t=``;!this.eof();){var n=this.source[this.index];if(!i.Character.isIdentifierPart(n.charCodeAt(0)))break;if(++this.index,n===`\\`&&!this.eof())if(n=this.source[this.index],n===`u`){++this.index;var r=this.index,a=this.scanHexEscape(`u`);if(a!==null)for(t+=a,e+=`\\u`;r<this.index;++r)e+=this.source[r];else this.index=r,t+=`u`,e+=`\\u`;this.tolerateUnexpectedToken()}else e+=`\\`,this.tolerateUnexpectedToken();else t+=n,e+=n}return t},e.prototype.scanRegExp=function(){var e=this.index,t=this.scanRegExpBody(),n=this.scanRegExpFlags();return{type:9,value:``,pattern:t,flags:n,regex:this.testRegExp(t,n),lineNumber:this.lineNumber,lineStart:this.lineStart,start:e,end:this.index}},e.prototype.lex=function(){if(this.eof())return{type:2,value:``,lineNumber:this.lineNumber,lineStart:this.lineStart,start:this.index,end:this.index};var e=this.source.charCodeAt(this.index);return i.Character.isIdentifierStart(e)?this.scanIdentifier():e===40||e===41||e===59?this.scanPunctuator():e===39||e===34?this.scanStringLiteral():e===46?i.Character.isDecimalDigit(this.source.charCodeAt(this.index+1))?this.scanNumericLiteral():this.scanPunctuator():i.Character.isDecimalDigit(e)?this.scanNumericLiteral():e===96||e===125&&this.curlyStack[this.curlyStack.length-1]==="${"?this.scanTemplate():e>=55296&&e<57343&&i.Character.isIdentifierStart(this.codePointAt(this.index))?this.scanIdentifier():this.scanPunctuator()},e}()},function(e,t){Object.defineProperty(t,`__esModule`,{value:!0}),t.TokenName={},t.TokenName[1]=`Boolean`,t.TokenName[2]=`<end>`,t.TokenName[3]=`Identifier`,t.TokenName[4]=`Keyword`,t.TokenName[5]=`Null`,t.TokenName[6]=`Numeric`,t.TokenName[7]=`Punctuator`,t.TokenName[8]=`String`,t.TokenName[9]=`RegularExpression`,t.TokenName[10]=`Template`},function(e,t){Object.defineProperty(t,`__esModule`,{value:!0}),t.XHTMLEntities={quot:`"`,amp:`&`,apos:`'`,gt:`>`,nbsp:`\xA0`,iexcl:`¡`,cent:`¢`,pound:`£`,curren:`¤`,yen:`¥`,brvbar:`¦`,sect:`§`,uml:`¨`,copy:`©`,ordf:`ª`,laquo:`«`,not:`¬`,shy:`­`,reg:`®`,macr:`¯`,deg:`°`,plusmn:`±`,sup2:`²`,sup3:`³`,acute:`´`,micro:`µ`,para:`¶`,middot:`·`,cedil:`¸`,sup1:`¹`,ordm:`º`,raquo:`»`,frac14:`¼`,frac12:`½`,frac34:`¾`,iquest:`¿`,Agrave:`À`,Aacute:`Á`,Acirc:`Â`,Atilde:`Ã`,Auml:`Ä`,Aring:`Å`,AElig:`Æ`,Ccedil:`Ç`,Egrave:`È`,Eacute:`É`,Ecirc:`Ê`,Euml:`Ë`,Igrave:`Ì`,Iacute:`Í`,Icirc:`Î`,Iuml:`Ï`,ETH:`Ð`,Ntilde:`Ñ`,Ograve:`Ò`,Oacute:`Ó`,Ocirc:`Ô`,Otilde:`Õ`,Ouml:`Ö`,times:`×`,Oslash:`Ø`,Ugrave:`Ù`,Uacute:`Ú`,Ucirc:`Û`,Uuml:`Ü`,Yacute:`Ý`,THORN:`Þ`,szlig:`ß`,agrave:`à`,aacute:`á`,acirc:`â`,atilde:`ã`,auml:`ä`,aring:`å`,aelig:`æ`,ccedil:`ç`,egrave:`è`,eacute:`é`,ecirc:`ê`,euml:`ë`,igrave:`ì`,iacute:`í`,icirc:`î`,iuml:`ï`,eth:`ð`,ntilde:`ñ`,ograve:`ò`,oacute:`ó`,ocirc:`ô`,otilde:`õ`,ouml:`ö`,divide:`÷`,oslash:`ø`,ugrave:`ù`,uacute:`ú`,ucirc:`û`,uuml:`ü`,yacute:`ý`,thorn:`þ`,yuml:`ÿ`,OElig:`Œ`,oelig:`œ`,Scaron:`Š`,scaron:`š`,Yuml:`Ÿ`,fnof:`ƒ`,circ:`ˆ`,tilde:`˜`,Alpha:`Α`,Beta:`Β`,Gamma:`Γ`,Delta:`Δ`,Epsilon:`Ε`,Zeta:`Ζ`,Eta:`Η`,Theta:`Θ`,Iota:`Ι`,Kappa:`Κ`,Lambda:`Λ`,Mu:`Μ`,Nu:`Ν`,Xi:`Ξ`,Omicron:`Ο`,Pi:`Π`,Rho:`Ρ`,Sigma:`Σ`,Tau:`Τ`,Upsilon:`Υ`,Phi:`Φ`,Chi:`Χ`,Psi:`Ψ`,Omega:`Ω`,alpha:`α`,beta:`β`,gamma:`γ`,delta:`δ`,epsilon:`ε`,zeta:`ζ`,eta:`η`,theta:`θ`,iota:`ι`,kappa:`κ`,lambda:`λ`,mu:`μ`,nu:`ν`,xi:`ξ`,omicron:`ο`,pi:`π`,rho:`ρ`,sigmaf:`ς`,sigma:`σ`,tau:`τ`,upsilon:`υ`,phi:`φ`,chi:`χ`,psi:`ψ`,omega:`ω`,thetasym:`ϑ`,upsih:`ϒ`,piv:`ϖ`,ensp:` `,emsp:` `,thinsp:` `,zwnj:`‌`,zwj:`‍`,lrm:`‎`,rlm:`‏`,ndash:`–`,mdash:`—`,lsquo:`‘`,rsquo:`’`,sbquo:`‚`,ldquo:`“`,rdquo:`”`,bdquo:`„`,dagger:`†`,Dagger:`‡`,bull:`•`,hellip:`…`,permil:`‰`,prime:`′`,Prime:`″`,lsaquo:`‹`,rsaquo:`›`,oline:`‾`,frasl:`⁄`,euro:`€`,image:`ℑ`,weierp:`℘`,real:`ℜ`,trade:`™`,alefsym:`ℵ`,larr:`←`,uarr:`↑`,rarr:`→`,darr:`↓`,harr:`↔`,crarr:`↵`,lArr:`⇐`,uArr:`⇑`,rArr:`⇒`,dArr:`⇓`,hArr:`⇔`,forall:`∀`,part:`∂`,exist:`∃`,empty:`∅`,nabla:`∇`,isin:`∈`,notin:`∉`,ni:`∋`,prod:`∏`,sum:`∑`,minus:`−`,lowast:`∗`,radic:`√`,prop:`∝`,infin:`∞`,ang:`∠`,and:`∧`,or:`∨`,cap:`∩`,cup:`∪`,int:`∫`,there4:`∴`,sim:`∼`,cong:`≅`,asymp:`≈`,ne:`≠`,equiv:`≡`,le:`≤`,ge:`≥`,sub:`⊂`,sup:`⊃`,nsub:`⊄`,sube:`⊆`,supe:`⊇`,oplus:`⊕`,otimes:`⊗`,perp:`⊥`,sdot:`⋅`,lceil:`⌈`,rceil:`⌉`,lfloor:`⌊`,rfloor:`⌋`,loz:`◊`,spades:`♠`,clubs:`♣`,hearts:`♥`,diams:`♦`,lang:`⟨`,rang:`⟩`}},function(e,t,n){Object.defineProperty(t,`__esModule`,{value:!0});var r=n(10),i=n(12),a=n(13),o=function(){function e(){this.values=[],this.curly=this.paren=-1}return x(e,`Reader`),e.prototype.beforeFunctionExpression=function(e){return`(.{.[.in.typeof.instanceof.new.return.case.delete.throw.void.=.+=.-=.*=.**=./=.%=.<<=.>>=.>>>=.&=.|=.^=.,.+.-.*.**./.%.++.--.<<.>>.>>>.&.|.^.!.~.&&.||.?.:.===.==.>=.<=.<.>.!=.!==`.split(`.`).indexOf(e)>=0},e.prototype.isRegexStart=function(){var e=this.values[this.values.length-1],t=e!==null;switch(e){case`this`:case`]`:t=!1;break;case`)`:var n=this.values[this.paren-1];t=n===`if`||n===`while`||n===`for`||n===`with`;break;case`}`:if(t=!1,this.values[this.curly-3]===`function`){var r=this.values[this.curly-4];t=r?!this.beforeFunctionExpression(r):!1}else if(this.values[this.curly-4]===`function`){var r=this.values[this.curly-5];t=r?!this.beforeFunctionExpression(r):!0}break}return t},e.prototype.push=function(e){e.type===7||e.type===4?(e.value===`{`?this.curly=this.values.length:e.value===`(`&&(this.paren=this.values.length),this.values.push(e.value)):this.values.push(null)},e}();t.Tokenizer=function(){function e(e,t){this.errorHandler=new r.ErrorHandler,this.errorHandler.tolerant=t?typeof t.tolerant==`boolean`&&t.tolerant:!1,this.scanner=new i.Scanner(e,this.errorHandler),this.scanner.trackComment=t?typeof t.comment==`boolean`&&t.comment:!1,this.trackRange=t?typeof t.range==`boolean`&&t.range:!1,this.trackLoc=t?typeof t.loc==`boolean`&&t.loc:!1,this.buffer=[],this.reader=new o}return x(e,`Tokenizer`),e.prototype.errors=function(){return this.errorHandler.errors},e.prototype.getNextToken=function(){if(this.buffer.length===0){var e=this.scanner.scanComments();if(this.scanner.trackComment)for(var t=0;t<e.length;++t){var n=e[t],r=this.scanner.source.slice(n.slice[0],n.slice[1]),i={type:n.multiLine?`BlockComment`:`LineComment`,value:r};this.trackRange&&(i.range=n.range),this.trackLoc&&(i.loc=n.loc),this.buffer.push(i)}if(!this.scanner.eof()){var o=void 0;this.trackLoc&&(o={start:{line:this.scanner.lineNumber,column:this.scanner.index-this.scanner.lineStart},end:{}});var s=this.scanner.source[this.scanner.index]===`/`&&this.reader.isRegexStart()?this.scanner.scanRegExp():this.scanner.lex();this.reader.push(s);var c={type:a.TokenName[s.type],value:this.scanner.source.slice(s.start,s.end)};this.trackRange&&(c.range=[s.start,s.end]),this.trackLoc&&(o.end={line:this.scanner.lineNumber,column:this.scanner.index-this.scanner.lineStart},c.loc=o),s.type===9&&(c.regex={pattern:s.pattern,flags:s.flags}),this.buffer.push(c)}}return this.buffer.shift()},e}()}])})}}),kn=E({"../../node_modules/.pnpm/recast@0.23.11/node_modules/recast/parsers/esprima.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.parse=void 0;var t=Dn();function n(e,n){var r=[],i=On().parse(e,{loc:!0,locations:!0,comment:!0,onComment:r,range:(0,t.getOption)(n,`range`,!1),tolerant:(0,t.getOption)(n,`tolerant`,!0),tokens:!0,jsx:(0,t.getOption)(n,`jsx`,!1),sourceType:(0,t.getOption)(n,`sourceType`,`module`)});return Array.isArray(i.comments)||(i.comments=r),i}x(n,`parse`),e.parse=n}}),An=E({"../../node_modules/.pnpm/recast@0.23.11/node_modules/recast/lib/options.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.normalize=void 0;var t=Dn(),n={parser:kn(),tabWidth:4,useTabs:!1,reuseWhitespace:!0,lineTerminator:(0,t.getLineTerminator)(),wrapColumn:74,sourceFileName:null,sourceMapName:null,sourceRoot:null,inputSourceMap:null,range:!1,tolerant:!0,quote:null,trailingComma:!1,arrayBracketSpacing:!1,objectCurlySpacing:!0,arrowParensAlways:!1,flowObjectCommas:!0,tokens:!0},r=n.hasOwnProperty;function i(e){var t=e||n;function i(e){return r.call(t,e)?t[e]:n[e]}return x(i,`get`),{tabWidth:+i(`tabWidth`),useTabs:!!i(`useTabs`),reuseWhitespace:!!i(`reuseWhitespace`),lineTerminator:i(`lineTerminator`),wrapColumn:Math.max(i(`wrapColumn`),0),sourceFileName:i(`sourceFileName`),sourceMapName:i(`sourceMapName`),sourceRoot:i(`sourceRoot`),inputSourceMap:i(`inputSourceMap`),parser:i(`esprima`)||i(`parser`),range:i(`range`),tolerant:i(`tolerant`),quote:i(`quote`),trailingComma:i(`trailingComma`),arrayBracketSpacing:i(`arrayBracketSpacing`),objectCurlySpacing:i(`objectCurlySpacing`),arrowParensAlways:i(`arrowParensAlways`),flowObjectCommas:i(`flowObjectCommas`),tokens:!!i(`tokens`)}}x(i,`normalize`),e.normalize=i}}),jn=E({"../../node_modules/.pnpm/recast@0.23.11/node_modules/recast/lib/mapping.js"(e){Object.defineProperty(e,`__esModule`,{value:!0});var t=(G(),C(U)).__importDefault(hn()),n=Dn();e.default=function(){function e(e,t,n){n===void 0&&(n=t),this.sourceLines=e,this.sourceLoc=t,this.targetLoc=n}return x(e,`Mapping`),e.prototype.slice=function(r,o,s){s===void 0&&(s=r.lastPos());var c=this.sourceLines,l=this.sourceLoc,u=this.targetLoc;function d(e){var n=l[e],i=u[e],d=o;return e===`end`?d=s:(0,t.default)(e===`start`),a(c,n,r,i,d)}if(x(d,`skip`),(0,n.comparePos)(o,u.start)<=0)if((0,n.comparePos)(u.end,s)<=0)u={start:i(u.start,o.line,o.column),end:i(u.end,o.line,o.column)};else if((0,n.comparePos)(s,u.start)<=0)return null;else l={start:l.start,end:d(`end`)},u={start:i(u.start,o.line,o.column),end:i(s,o.line,o.column)};else{if((0,n.comparePos)(u.end,o)<=0)return null;(0,n.comparePos)(u.end,s)<=0?(l={start:d(`start`),end:l.end},u={start:{line:1,column:0},end:i(u.end,o.line,o.column)}):(l={start:d(`start`),end:d(`end`)},u={start:{line:1,column:0},end:i(s,o.line,o.column)})}return new e(this.sourceLines,l,u)},e.prototype.add=function(t,n){return new e(this.sourceLines,this.sourceLoc,{start:r(this.targetLoc.start,t,n),end:r(this.targetLoc.end,t,n)})},e.prototype.subtract=function(t,n){return new e(this.sourceLines,this.sourceLoc,{start:i(this.targetLoc.start,t,n),end:i(this.targetLoc.end,t,n)})},e.prototype.indent=function(t,n,r){if(n===void 0&&(n=!1),r===void 0&&(r=!1),t===0)return this;var i=this.targetLoc,a=i.start.line,o=i.end.line;if(n&&a===1&&o===1)return this;if(i={start:i.start,end:i.end},!n||a>1){var s=i.start.column+t;i.start={line:a,column:r?Math.max(0,s):s}}if(!n||o>1){var c=i.end.column+t;i.end={line:o,column:r?Math.max(0,c):c}}return new e(this.sourceLines,this.sourceLoc,i)},e}();function r(e,t,n){return{line:e.line+t-1,column:e.line===1?e.column+n:e.column}}x(r,`addPos`);function i(e,t,n){return{line:e.line-t+1,column:e.line===t?e.column-n:e.column}}x(i,`subtractPos`);function a(e,r,i,a,o){var s=(0,n.comparePos)(a,o);if(s===0)return r;var c,l;if(s<0){c=e.skipSpaces(r)||e.lastPos(),l=i.skipSpaces(a)||i.lastPos();var u=o.line-l.line;for(c.line+=u,l.line+=u,u>0?(c.column=0,l.column=0):(0,t.default)(u===0);(0,n.comparePos)(l,o)<0&&i.nextPos(l,!0);)(0,t.default)(e.nextPos(c,!0)),(0,t.default)(e.charAt(c)===i.charAt(l))}else{c=e.skipSpaces(r,!0)||e.firstPos(),l=i.skipSpaces(a,!0)||i.firstPos();var u=o.line-l.line;for(c.line+=u,l.line+=u,u<0?(c.column=e.getLineLength(c.line),l.column=i.getLineLength(l.line)):(0,t.default)(u===0);(0,n.comparePos)(o,l)<0&&i.prevPos(l,!0);)(0,t.default)(e.prevPos(c,!0)),(0,t.default)(e.charAt(c)===i.charAt(l))}return c}x(a,`skipChars`)}}),Mn=E({"../../node_modules/.pnpm/recast@0.23.11/node_modules/recast/lib/lines.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.concat=e.fromString=e.countSpaces=e.Lines=void 0;var t=(G(),C(U)),n=t.__importDefault(hn()),r=t.__importDefault(En()),i=An(),a=Dn(),o=t.__importDefault(jn()),s=function(){function e(e,t){t===void 0&&(t=null),this.infos=e,this.mappings=[],this.cachedSourceMap=null,this.cachedTabWidth=void 0,(0,n.default)(e.length>0),this.length=e.length,this.name=t||null,this.name&&this.mappings.push(new o.default(this,{start:this.firstPos(),end:this.lastPos()}))}return x(e,`Lines`),e.prototype.toString=function(e){return this.sliceString(this.firstPos(),this.lastPos(),e)},e.prototype.getSourceMap=function(e,t){if(!e)return null;var i=this;function o(n){return n||={},n.file=e,t&&(n.sourceRoot=t),n}if(x(o,`updateJSON`),i.cachedSourceMap)return o(i.cachedSourceMap.toJSON());var s=new r.default.SourceMapGenerator(o()),c={};return i.mappings.forEach(function(e){for(var t=e.sourceLines.skipSpaces(e.sourceLoc.start)||e.sourceLines.lastPos(),r=i.skipSpaces(e.targetLoc.start)||i.lastPos();(0,a.comparePos)(t,e.sourceLoc.end)<0&&(0,a.comparePos)(r,e.targetLoc.end)<0;){var o=e.sourceLines.charAt(t),u=i.charAt(r);(0,n.default)(o===u);var d=e.sourceLines.name;if(s.addMapping({source:d,original:{line:t.line,column:t.column},generated:{line:r.line,column:r.column}}),!l.call(c,d)){var f=e.sourceLines.toString();s.setSourceContent(d,f),c[d]=f}i.nextPos(r,!0),e.sourceLines.nextPos(t,!0)}}),i.cachedSourceMap=s,s.toJSON()},e.prototype.bootstrapCharAt=function(e){(0,n.default)(typeof e==`object`),(0,n.default)(typeof e.line==`number`),(0,n.default)(typeof e.column==`number`);var t=e.line,r=e.column,i=this.toString().split(p),a=i[t-1];return a===void 0?``:r===a.length&&t<i.length?`
12
+ `):e+=c}return t||this.throwUnexpectedToken(),r||this.curlyStack.pop(),{type:10,value:this.source.slice(n+1,this.index-s),cooked:e,head:r,tail:o,lineNumber:this.lineNumber,lineStart:this.lineStart,start:n,end:this.index}},e.prototype.testRegExp=function(e,t){var n=`￿`,r=e,i=this;t.indexOf(`u`)>=0&&(r=r.replace(/\\u\{([0-9a-fA-F]+)\}|\\u([a-fA-F0-9]{4})/g,function(e,t,r){var o=parseInt(t||r,16);return o>1114111&&i.throwUnexpectedToken(a.Messages.InvalidRegExp),o<=65535?String.fromCharCode(o):n}).replace(/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,n));try{RegExp(r)}catch{this.throwUnexpectedToken(a.Messages.InvalidRegExp)}try{return new RegExp(e,t)}catch{return null}},e.prototype.scanRegExpBody=function(){var e=this.source[this.index];r.assert(e===`/`,`Regular expression literal must start with a slash`);for(var t=this.source[this.index++],n=!1,o=!1;!this.eof();)if(e=this.source[this.index++],t+=e,e===`\\`)e=this.source[this.index++],i.Character.isLineTerminator(e.charCodeAt(0))&&this.throwUnexpectedToken(a.Messages.UnterminatedRegExp),t+=e;else if(i.Character.isLineTerminator(e.charCodeAt(0)))this.throwUnexpectedToken(a.Messages.UnterminatedRegExp);else if(n)e===`]`&&(n=!1);else if(e===`/`){o=!0;break}else e===`[`&&(n=!0);return o||this.throwUnexpectedToken(a.Messages.UnterminatedRegExp),t.substr(1,t.length-2)},e.prototype.scanRegExpFlags=function(){for(var e=``,t=``;!this.eof();){var n=this.source[this.index];if(!i.Character.isIdentifierPart(n.charCodeAt(0)))break;if(++this.index,n===`\\`&&!this.eof())if(n=this.source[this.index],n===`u`){++this.index;var r=this.index,a=this.scanHexEscape(`u`);if(a!==null)for(t+=a,e+=`\\u`;r<this.index;++r)e+=this.source[r];else this.index=r,t+=`u`,e+=`\\u`;this.tolerateUnexpectedToken()}else e+=`\\`,this.tolerateUnexpectedToken();else t+=n,e+=n}return t},e.prototype.scanRegExp=function(){var e=this.index,t=this.scanRegExpBody(),n=this.scanRegExpFlags();return{type:9,value:``,pattern:t,flags:n,regex:this.testRegExp(t,n),lineNumber:this.lineNumber,lineStart:this.lineStart,start:e,end:this.index}},e.prototype.lex=function(){if(this.eof())return{type:2,value:``,lineNumber:this.lineNumber,lineStart:this.lineStart,start:this.index,end:this.index};var e=this.source.charCodeAt(this.index);return i.Character.isIdentifierStart(e)?this.scanIdentifier():e===40||e===41||e===59?this.scanPunctuator():e===39||e===34?this.scanStringLiteral():e===46?i.Character.isDecimalDigit(this.source.charCodeAt(this.index+1))?this.scanNumericLiteral():this.scanPunctuator():i.Character.isDecimalDigit(e)?this.scanNumericLiteral():e===96||e===125&&this.curlyStack[this.curlyStack.length-1]==="${"?this.scanTemplate():e>=55296&&e<57343&&i.Character.isIdentifierStart(this.codePointAt(this.index))?this.scanIdentifier():this.scanPunctuator()},e}()},function(e,t){Object.defineProperty(t,`__esModule`,{value:!0}),t.TokenName={},t.TokenName[1]=`Boolean`,t.TokenName[2]=`<end>`,t.TokenName[3]=`Identifier`,t.TokenName[4]=`Keyword`,t.TokenName[5]=`Null`,t.TokenName[6]=`Numeric`,t.TokenName[7]=`Punctuator`,t.TokenName[8]=`String`,t.TokenName[9]=`RegularExpression`,t.TokenName[10]=`Template`},function(e,t){Object.defineProperty(t,`__esModule`,{value:!0}),t.XHTMLEntities={quot:`"`,amp:`&`,apos:`'`,gt:`>`,nbsp:`\xA0`,iexcl:`¡`,cent:`¢`,pound:`£`,curren:`¤`,yen:`¥`,brvbar:`¦`,sect:`§`,uml:`¨`,copy:`©`,ordf:`ª`,laquo:`«`,not:`¬`,shy:`­`,reg:`®`,macr:`¯`,deg:`°`,plusmn:`±`,sup2:`²`,sup3:`³`,acute:`´`,micro:`µ`,para:`¶`,middot:`·`,cedil:`¸`,sup1:`¹`,ordm:`º`,raquo:`»`,frac14:`¼`,frac12:`½`,frac34:`¾`,iquest:`¿`,Agrave:`À`,Aacute:`Á`,Acirc:`Â`,Atilde:`Ã`,Auml:`Ä`,Aring:`Å`,AElig:`Æ`,Ccedil:`Ç`,Egrave:`È`,Eacute:`É`,Ecirc:`Ê`,Euml:`Ë`,Igrave:`Ì`,Iacute:`Í`,Icirc:`Î`,Iuml:`Ï`,ETH:`Ð`,Ntilde:`Ñ`,Ograve:`Ò`,Oacute:`Ó`,Ocirc:`Ô`,Otilde:`Õ`,Ouml:`Ö`,times:`×`,Oslash:`Ø`,Ugrave:`Ù`,Uacute:`Ú`,Ucirc:`Û`,Uuml:`Ü`,Yacute:`Ý`,THORN:`Þ`,szlig:`ß`,agrave:`à`,aacute:`á`,acirc:`â`,atilde:`ã`,auml:`ä`,aring:`å`,aelig:`æ`,ccedil:`ç`,egrave:`è`,eacute:`é`,ecirc:`ê`,euml:`ë`,igrave:`ì`,iacute:`í`,icirc:`î`,iuml:`ï`,eth:`ð`,ntilde:`ñ`,ograve:`ò`,oacute:`ó`,ocirc:`ô`,otilde:`õ`,ouml:`ö`,divide:`÷`,oslash:`ø`,ugrave:`ù`,uacute:`ú`,ucirc:`û`,uuml:`ü`,yacute:`ý`,thorn:`þ`,yuml:`ÿ`,OElig:`Œ`,oelig:`œ`,Scaron:`Š`,scaron:`š`,Yuml:`Ÿ`,fnof:`ƒ`,circ:`ˆ`,tilde:`˜`,Alpha:`Α`,Beta:`Β`,Gamma:`Γ`,Delta:`Δ`,Epsilon:`Ε`,Zeta:`Ζ`,Eta:`Η`,Theta:`Θ`,Iota:`Ι`,Kappa:`Κ`,Lambda:`Λ`,Mu:`Μ`,Nu:`Ν`,Xi:`Ξ`,Omicron:`Ο`,Pi:`Π`,Rho:`Ρ`,Sigma:`Σ`,Tau:`Τ`,Upsilon:`Υ`,Phi:`Φ`,Chi:`Χ`,Psi:`Ψ`,Omega:`Ω`,alpha:`α`,beta:`β`,gamma:`γ`,delta:`δ`,epsilon:`ε`,zeta:`ζ`,eta:`η`,theta:`θ`,iota:`ι`,kappa:`κ`,lambda:`λ`,mu:`μ`,nu:`ν`,xi:`ξ`,omicron:`ο`,pi:`π`,rho:`ρ`,sigmaf:`ς`,sigma:`σ`,tau:`τ`,upsilon:`υ`,phi:`φ`,chi:`χ`,psi:`ψ`,omega:`ω`,thetasym:`ϑ`,upsih:`ϒ`,piv:`ϖ`,ensp:` `,emsp:` `,thinsp:` `,zwnj:`‌`,zwj:`‍`,lrm:`‎`,rlm:`‏`,ndash:`–`,mdash:`—`,lsquo:`‘`,rsquo:`’`,sbquo:`‚`,ldquo:`“`,rdquo:`”`,bdquo:`„`,dagger:`†`,Dagger:`‡`,bull:`•`,hellip:`…`,permil:`‰`,prime:`′`,Prime:`″`,lsaquo:`‹`,rsaquo:`›`,oline:`‾`,frasl:`⁄`,euro:`€`,image:`ℑ`,weierp:`℘`,real:`ℜ`,trade:`™`,alefsym:`ℵ`,larr:`←`,uarr:`↑`,rarr:`→`,darr:`↓`,harr:`↔`,crarr:`↵`,lArr:`⇐`,uArr:`⇑`,rArr:`⇒`,dArr:`⇓`,hArr:`⇔`,forall:`∀`,part:`∂`,exist:`∃`,empty:`∅`,nabla:`∇`,isin:`∈`,notin:`∉`,ni:`∋`,prod:`∏`,sum:`∑`,minus:`−`,lowast:`∗`,radic:`√`,prop:`∝`,infin:`∞`,ang:`∠`,and:`∧`,or:`∨`,cap:`∩`,cup:`∪`,int:`∫`,there4:`∴`,sim:`∼`,cong:`≅`,asymp:`≈`,ne:`≠`,equiv:`≡`,le:`≤`,ge:`≥`,sub:`⊂`,sup:`⊃`,nsub:`⊄`,sube:`⊆`,supe:`⊇`,oplus:`⊕`,otimes:`⊗`,perp:`⊥`,sdot:`⋅`,lceil:`⌈`,rceil:`⌉`,lfloor:`⌊`,rfloor:`⌋`,loz:`◊`,spades:`♠`,clubs:`♣`,hearts:`♥`,diams:`♦`,lang:`⟨`,rang:`⟩`}},function(e,t,n){Object.defineProperty(t,`__esModule`,{value:!0});var r=n(10),i=n(12),a=n(13),o=function(){function e(){this.values=[],this.curly=this.paren=-1}return x(e,`Reader`),e.prototype.beforeFunctionExpression=function(e){return`(.{.[.in.typeof.instanceof.new.return.case.delete.throw.void.=.+=.-=.*=.**=./=.%=.<<=.>>=.>>>=.&=.|=.^=.,.+.-.*.**./.%.++.--.<<.>>.>>>.&.|.^.!.~.&&.||.?.:.===.==.>=.<=.<.>.!=.!==`.split(`.`).indexOf(e)>=0},e.prototype.isRegexStart=function(){var e=this.values[this.values.length-1],t=e!==null;switch(e){case`this`:case`]`:t=!1;break;case`)`:var n=this.values[this.paren-1];t=n===`if`||n===`while`||n===`for`||n===`with`;break;case`}`:if(t=!1,this.values[this.curly-3]===`function`){var r=this.values[this.curly-4];t=r?!this.beforeFunctionExpression(r):!1}else if(this.values[this.curly-4]===`function`){var r=this.values[this.curly-5];t=r?!this.beforeFunctionExpression(r):!0}break}return t},e.prototype.push=function(e){e.type===7||e.type===4?(e.value===`{`?this.curly=this.values.length:e.value===`(`&&(this.paren=this.values.length),this.values.push(e.value)):this.values.push(null)},e}();t.Tokenizer=function(){function e(e,t){this.errorHandler=new r.ErrorHandler,this.errorHandler.tolerant=t?typeof t.tolerant==`boolean`&&t.tolerant:!1,this.scanner=new i.Scanner(e,this.errorHandler),this.scanner.trackComment=t?typeof t.comment==`boolean`&&t.comment:!1,this.trackRange=t?typeof t.range==`boolean`&&t.range:!1,this.trackLoc=t?typeof t.loc==`boolean`&&t.loc:!1,this.buffer=[],this.reader=new o}return x(e,`Tokenizer`),e.prototype.errors=function(){return this.errorHandler.errors},e.prototype.getNextToken=function(){if(this.buffer.length===0){var e=this.scanner.scanComments();if(this.scanner.trackComment)for(var t=0;t<e.length;++t){var n=e[t],r=this.scanner.source.slice(n.slice[0],n.slice[1]),i={type:n.multiLine?`BlockComment`:`LineComment`,value:r};this.trackRange&&(i.range=n.range),this.trackLoc&&(i.loc=n.loc),this.buffer.push(i)}if(!this.scanner.eof()){var o=void 0;this.trackLoc&&(o={start:{line:this.scanner.lineNumber,column:this.scanner.index-this.scanner.lineStart},end:{}});var s=this.scanner.source[this.scanner.index]===`/`&&this.reader.isRegexStart()?this.scanner.scanRegExp():this.scanner.lex();this.reader.push(s);var c={type:a.TokenName[s.type],value:this.scanner.source.slice(s.start,s.end)};this.trackRange&&(c.range=[s.start,s.end]),this.trackLoc&&(o.end={line:this.scanner.lineNumber,column:this.scanner.index-this.scanner.lineStart},c.loc=o),s.type===9&&(c.regex={pattern:s.pattern,flags:s.flags}),this.buffer.push(c)}}return this.buffer.shift()},e}()}])})}}),An=E({"../../node_modules/.pnpm/recast@0.23.11/node_modules/recast/parsers/esprima.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.parse=void 0;var t=On();function n(e,n){var r=[],i=kn().parse(e,{loc:!0,locations:!0,comment:!0,onComment:r,range:(0,t.getOption)(n,`range`,!1),tolerant:(0,t.getOption)(n,`tolerant`,!0),tokens:!0,jsx:(0,t.getOption)(n,`jsx`,!1),sourceType:(0,t.getOption)(n,`sourceType`,`module`)});return Array.isArray(i.comments)||(i.comments=r),i}x(n,`parse`),e.parse=n}}),jn=E({"../../node_modules/.pnpm/recast@0.23.11/node_modules/recast/lib/options.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.normalize=void 0;var t=On(),n={parser:An(),tabWidth:4,useTabs:!1,reuseWhitespace:!0,lineTerminator:(0,t.getLineTerminator)(),wrapColumn:74,sourceFileName:null,sourceMapName:null,sourceRoot:null,inputSourceMap:null,range:!1,tolerant:!0,quote:null,trailingComma:!1,arrayBracketSpacing:!1,objectCurlySpacing:!0,arrowParensAlways:!1,flowObjectCommas:!0,tokens:!0},r=n.hasOwnProperty;function i(e){var t=e||n;function i(e){return r.call(t,e)?t[e]:n[e]}return x(i,`get`),{tabWidth:+i(`tabWidth`),useTabs:!!i(`useTabs`),reuseWhitespace:!!i(`reuseWhitespace`),lineTerminator:i(`lineTerminator`),wrapColumn:Math.max(i(`wrapColumn`),0),sourceFileName:i(`sourceFileName`),sourceMapName:i(`sourceMapName`),sourceRoot:i(`sourceRoot`),inputSourceMap:i(`inputSourceMap`),parser:i(`esprima`)||i(`parser`),range:i(`range`),tolerant:i(`tolerant`),quote:i(`quote`),trailingComma:i(`trailingComma`),arrayBracketSpacing:i(`arrayBracketSpacing`),objectCurlySpacing:i(`objectCurlySpacing`),arrowParensAlways:i(`arrowParensAlways`),flowObjectCommas:i(`flowObjectCommas`),tokens:!!i(`tokens`)}}x(i,`normalize`),e.normalize=i}}),Mn=E({"../../node_modules/.pnpm/recast@0.23.11/node_modules/recast/lib/mapping.js"(e){Object.defineProperty(e,`__esModule`,{value:!0});var t=(G(),C(U)).__importDefault(gn()),n=On();e.default=function(){function e(e,t,n){n===void 0&&(n=t),this.sourceLines=e,this.sourceLoc=t,this.targetLoc=n}return x(e,`Mapping`),e.prototype.slice=function(r,o,s){s===void 0&&(s=r.lastPos());var c=this.sourceLines,l=this.sourceLoc,u=this.targetLoc;function d(e){var n=l[e],i=u[e],d=o;return e===`end`?d=s:(0,t.default)(e===`start`),a(c,n,r,i,d)}if(x(d,`skip`),(0,n.comparePos)(o,u.start)<=0)if((0,n.comparePos)(u.end,s)<=0)u={start:i(u.start,o.line,o.column),end:i(u.end,o.line,o.column)};else if((0,n.comparePos)(s,u.start)<=0)return null;else l={start:l.start,end:d(`end`)},u={start:i(u.start,o.line,o.column),end:i(s,o.line,o.column)};else{if((0,n.comparePos)(u.end,o)<=0)return null;(0,n.comparePos)(u.end,s)<=0?(l={start:d(`start`),end:l.end},u={start:{line:1,column:0},end:i(u.end,o.line,o.column)}):(l={start:d(`start`),end:d(`end`)},u={start:{line:1,column:0},end:i(s,o.line,o.column)})}return new e(this.sourceLines,l,u)},e.prototype.add=function(t,n){return new e(this.sourceLines,this.sourceLoc,{start:r(this.targetLoc.start,t,n),end:r(this.targetLoc.end,t,n)})},e.prototype.subtract=function(t,n){return new e(this.sourceLines,this.sourceLoc,{start:i(this.targetLoc.start,t,n),end:i(this.targetLoc.end,t,n)})},e.prototype.indent=function(t,n,r){if(n===void 0&&(n=!1),r===void 0&&(r=!1),t===0)return this;var i=this.targetLoc,a=i.start.line,o=i.end.line;if(n&&a===1&&o===1)return this;if(i={start:i.start,end:i.end},!n||a>1){var s=i.start.column+t;i.start={line:a,column:r?Math.max(0,s):s}}if(!n||o>1){var c=i.end.column+t;i.end={line:o,column:r?Math.max(0,c):c}}return new e(this.sourceLines,this.sourceLoc,i)},e}();function r(e,t,n){return{line:e.line+t-1,column:e.line===1?e.column+n:e.column}}x(r,`addPos`);function i(e,t,n){return{line:e.line-t+1,column:e.line===t?e.column-n:e.column}}x(i,`subtractPos`);function a(e,r,i,a,o){var s=(0,n.comparePos)(a,o);if(s===0)return r;var c,l;if(s<0){c=e.skipSpaces(r)||e.lastPos(),l=i.skipSpaces(a)||i.lastPos();var u=o.line-l.line;for(c.line+=u,l.line+=u,u>0?(c.column=0,l.column=0):(0,t.default)(u===0);(0,n.comparePos)(l,o)<0&&i.nextPos(l,!0);)(0,t.default)(e.nextPos(c,!0)),(0,t.default)(e.charAt(c)===i.charAt(l))}else{c=e.skipSpaces(r,!0)||e.firstPos(),l=i.skipSpaces(a,!0)||i.firstPos();var u=o.line-l.line;for(c.line+=u,l.line+=u,u<0?(c.column=e.getLineLength(c.line),l.column=i.getLineLength(l.line)):(0,t.default)(u===0);(0,n.comparePos)(o,l)<0&&i.prevPos(l,!0);)(0,t.default)(e.prevPos(c,!0)),(0,t.default)(e.charAt(c)===i.charAt(l))}return c}x(a,`skipChars`)}}),Nn=E({"../../node_modules/.pnpm/recast@0.23.11/node_modules/recast/lib/lines.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.concat=e.fromString=e.countSpaces=e.Lines=void 0;var t=(G(),C(U)),n=t.__importDefault(gn()),r=t.__importDefault(Dn()),i=jn(),a=On(),o=t.__importDefault(Mn()),s=function(){function e(e,t){t===void 0&&(t=null),this.infos=e,this.mappings=[],this.cachedSourceMap=null,this.cachedTabWidth=void 0,(0,n.default)(e.length>0),this.length=e.length,this.name=t||null,this.name&&this.mappings.push(new o.default(this,{start:this.firstPos(),end:this.lastPos()}))}return x(e,`Lines`),e.prototype.toString=function(e){return this.sliceString(this.firstPos(),this.lastPos(),e)},e.prototype.getSourceMap=function(e,t){if(!e)return null;var i=this;function o(n){return n||={},n.file=e,t&&(n.sourceRoot=t),n}if(x(o,`updateJSON`),i.cachedSourceMap)return o(i.cachedSourceMap.toJSON());var s=new r.default.SourceMapGenerator(o()),c={};return i.mappings.forEach(function(e){for(var t=e.sourceLines.skipSpaces(e.sourceLoc.start)||e.sourceLines.lastPos(),r=i.skipSpaces(e.targetLoc.start)||i.lastPos();(0,a.comparePos)(t,e.sourceLoc.end)<0&&(0,a.comparePos)(r,e.targetLoc.end)<0;){var o=e.sourceLines.charAt(t),u=i.charAt(r);(0,n.default)(o===u);var d=e.sourceLines.name;if(s.addMapping({source:d,original:{line:t.line,column:t.column},generated:{line:r.line,column:r.column}}),!l.call(c,d)){var f=e.sourceLines.toString();s.setSourceContent(d,f),c[d]=f}i.nextPos(r,!0),e.sourceLines.nextPos(t,!0)}}),i.cachedSourceMap=s,s.toJSON()},e.prototype.bootstrapCharAt=function(e){(0,n.default)(typeof e==`object`),(0,n.default)(typeof e.line==`number`),(0,n.default)(typeof e.column==`number`);var t=e.line,r=e.column,i=this.toString().split(p),a=i[t-1];return a===void 0?``:r===a.length&&t<i.length?`
13
13
  `:r>=a.length?``:a.charAt(r)},e.prototype.charAt=function(e){(0,n.default)(typeof e==`object`),(0,n.default)(typeof e.line==`number`),(0,n.default)(typeof e.column==`number`);var t=e.line,r=e.column,i=this.infos[t-1],a=r;if(i===void 0||a<0)return``;var o=this.getIndentAt(t);return a<o?` `:(a+=i.sliceStart-o,a===i.sliceEnd&&t<this.length?`
14
14
  `:a>=i.sliceEnd?``:i.line.charAt(a))},e.prototype.stripMargin=function(r,i){if(r===0||((0,n.default)(r>0,`negative margin: `+r),i&&this.length===1))return this;var a=new e(this.infos.map(function(e,n){return e.line&&(n>0||!i)&&(e=t.__assign(t.__assign({},e),{indent:Math.max(0,e.indent-r)})),e}));if(this.mappings.length>0){var o=a.mappings;(0,n.default)(o.length===0),this.mappings.forEach(function(e){o.push(e.indent(r,i,!0))})}return a},e.prototype.indent=function(r){if(r===0)return this;var i=new e(this.infos.map(function(e){return e.line&&!e.locked&&(e=t.__assign(t.__assign({},e),{indent:e.indent+r})),e}));if(this.mappings.length>0){var a=i.mappings;(0,n.default)(a.length===0),this.mappings.forEach(function(e){a.push(e.indent(r))})}return i},e.prototype.indentTail=function(r){if(r===0||this.length<2)return this;var i=new e(this.infos.map(function(e,n){return n>0&&e.line&&!e.locked&&(e=t.__assign(t.__assign({},e),{indent:e.indent+r})),e}));if(this.mappings.length>0){var a=i.mappings;(0,n.default)(a.length===0),this.mappings.forEach(function(e){a.push(e.indent(r,!0))})}return i},e.prototype.lockIndentTail=function(){return this.length<2?this:new e(this.infos.map(function(e,n){return t.__assign(t.__assign({},e),{locked:n>0})}))},e.prototype.getIndentAt=function(e){return(0,n.default)(e>=1,`no line `+e+` (line numbers start from 1)`),Math.max(this.infos[e-1].indent,0)},e.prototype.guessTabWidth=function(){if(typeof this.cachedTabWidth==`number`)return this.cachedTabWidth;for(var e=[],t=0,n=1,r=this.length;n<=r;++n){var i=this.infos[n-1];if(!h(i.line.slice(i.sliceStart,i.sliceEnd))){var a=Math.abs(i.indent-t);e[a]=~~e[a]+1,t=i.indent}}for(var o=-1,s=2,c=1;c<e.length;c+=1)l.call(e,c)&&e[c]>o&&(o=e[c],s=c);return this.cachedTabWidth=s},e.prototype.startsWithComment=function(){if(this.infos.length===0)return!1;var e=this.infos[0],t=e.sliceStart,n=e.sliceEnd,r=e.line.slice(t,n).trim();return r.length===0||r.slice(0,2)===`//`||r.slice(0,2)===`/*`},e.prototype.isOnlyWhitespace=function(){return h(this.toString())},e.prototype.isPrecededOnlyByWhitespace=function(e){var t=this.infos[e.line-1],n=Math.max(t.indent,0),r=e.column-n;if(r<=0)return!0;var i=t.sliceStart,a=Math.min(i+r,t.sliceEnd);return h(t.line.slice(i,a))},e.prototype.getLineLength=function(e){var t=this.infos[e-1];return this.getIndentAt(e)+t.sliceEnd-t.sliceStart},e.prototype.nextPos=function(e,t){t===void 0&&(t=!1);var n=Math.max(e.line,0);return Math.max(e.column,0)<this.getLineLength(n)?(e.column+=1,t?!!this.skipSpaces(e,!1,!0):!0):n<this.length?(e.line+=1,e.column=0,t?!!this.skipSpaces(e,!1,!0):!0):!1},e.prototype.prevPos=function(e,t){t===void 0&&(t=!1);var n=e.line,r=e.column;if(r<1){if(--n,n<1)return!1;r=this.getLineLength(n)}else r=Math.min(r-1,this.getLineLength(n));return e.line=n,e.column=r,t?!!this.skipSpaces(e,!0,!0):!0},e.prototype.firstPos=function(){return{line:1,column:0}},e.prototype.lastPos=function(){return{line:this.length,column:this.getLineLength(this.length)}},e.prototype.skipSpaces=function(e,t,n){if(t===void 0&&(t=!1),n===void 0&&(n=!1),e=e?n?e:{line:e.line,column:e.column}:t?this.lastPos():this.firstPos(),t){for(;this.prevPos(e);)if(!h(this.charAt(e))&&this.nextPos(e))return e;return null}else{for(;h(this.charAt(e));)if(!this.nextPos(e))return null;return e}},e.prototype.trimLeft=function(){var e=this.skipSpaces(this.firstPos(),!1,!0);return e?this.slice(e):v},e.prototype.trimRight=function(){var e=this.skipSpaces(this.lastPos(),!0,!0);return e?this.slice(this.firstPos(),e):v},e.prototype.trim=function(){var e=this.skipSpaces(this.firstPos(),!1,!0);if(e===null)return v;var t=this.skipSpaces(this.lastPos(),!0,!0);return t===null?v:this.slice(e,t)},e.prototype.eachPos=function(e,t,n){t===void 0&&(t=this.firstPos()),n===void 0&&(n=!1);var r=this.firstPos();if(t&&(r.line=t.line,r.column=t.column),!(n&&!this.skipSpaces(r,!1,!0)))do e.call(this,r);while(this.nextPos(r,n))},e.prototype.bootstrapSlice=function(e,t){var n=this.toString().split(p).slice(e.line-1,t.line);return n.length>0&&(n.push(n.pop().slice(0,t.column)),n[0]=n[0].slice(e.column)),m(n.join(`
15
15
  `))},e.prototype.slice=function(t,r){if(!r){if(!t)return this;r=this.lastPos()}if(!t)throw Error(`cannot slice with end but not start`);var i=this.infos.slice(t.line-1,r.line);t.line===r.line?i[0]=g(i[0],t.column,r.column):((0,n.default)(t.line<r.line),i[0]=g(i[0],t.column),i.push(g(i.pop(),0,r.column)));var a=new e(i);if(this.mappings.length>0){var o=a.mappings;(0,n.default)(o.length===0),this.mappings.forEach(function(e){var n=e.slice(this,t,r);n&&o.push(n)},this)}return a},e.prototype.bootstrapSliceString=function(e,t,n){return this.slice(e,t).toString(n)},e.prototype.sliceString=function(e,t,n){e===void 0&&(e=this.firstPos()),t===void 0&&(t=this.lastPos());for(var r=(0,i.normalize)(n),a=r.tabWidth,o=r.useTabs,s=r.reuseWhitespace,c=r.lineTerminator,l=[],u=e.line;u<=t.line;++u){var f=this.infos[u-1];u===e.line?f=u===t.line?g(f,e.column,t.column):g(f,e.column):u===t.line&&(f=g(f,0,t.column));var p=Math.max(f.indent,0),m=f.line.slice(0,f.sliceStart);if(s&&h(m)&&d(m,a)===p){l.push(f.line.slice(0,f.sliceEnd));continue}var _=0,v=p;o&&(_=Math.floor(p/a),v-=_*a);var y=``;_>0&&(y+=Array(_+1).join(` `)),v>0&&(y+=Array(v+1).join(` `)),y+=f.line.slice(f.sliceStart,f.sliceEnd),l.push(y)}return l.join(c)},e.prototype.isEmpty=function(){return this.length<2&&this.getLineLength(1)<1},e.prototype.join=function(n){var r=this,i=[],a=[],o;function s(e){if(e!==null){if(o){var n=e.infos[0],r=Array(n.indent+1).join(` `),s=i.length,c=Math.max(o.indent,0)+o.sliceEnd-o.sliceStart;o.line=o.line.slice(0,o.sliceEnd)+r+n.line.slice(n.sliceStart,n.sliceEnd),o.locked=o.locked||n.locked,o.sliceEnd=o.line.length,e.mappings.length>0&&e.mappings.forEach(function(e){a.push(e.add(s,c))})}else e.mappings.length>0&&a.push.apply(a,e.mappings);e.infos.forEach(function(e,n){(!o||n>0)&&(o=t.__assign({},e),i.push(o))})}}x(s,`appendLines`);function c(e,t){t>0&&s(r),s(e)}if(x(c,`appendWithSeparator`),n.map(function(e){var t=m(e);return t.isEmpty()?null:t}).forEach(function(e,t){r.isEmpty()?s(e):c(e,t)}),i.length<1)return v;var l=new e(i);return l.mappings=a,l},e.prototype.concat=function(){var e=[...arguments],t=[this];return t.push.apply(t,e),(0,n.default)(t.length===e.length+1),v.join(t)},e}();e.Lines=s;var c={},l=c.hasOwnProperty,u=10;function d(e,t){for(var r=0,i=e.length,a=0;a<i;++a)switch(e.charCodeAt(a)){case 9:(0,n.default)(typeof t==`number`),(0,n.default)(t>0);var o=Math.ceil(r/t)*t;o===r?r+=t:r=o;break;case 11:case 12:case 13:case 65279:break;default:r+=1;break}return r}x(d,`countSpaces`),e.countSpaces=d;var f=/^\s*/,p=/\u000D\u000A|\u000D(?!\u000A)|\u000A|\u2028|\u2029/;function m(e,t){if(e instanceof s)return e;e+=``;var r=t&&t.tabWidth,a=e.indexOf(` `)<0,o=!t&&a&&e.length<=u;if((0,n.default)(r||a,`No tab width specified but encountered tabs in string
16
- `+e),o&&l.call(c,e))return c[e];var m=new s(e.split(p).map(function(e){var t=f.exec(e)[0];return{line:e,indent:d(t,r),locked:!1,sliceStart:t.length,sliceEnd:e.length}}),(0,i.normalize)(t).sourceFileName);return o&&(c[e]=m),m}x(m,`fromString`),e.fromString=m;function h(e){return!/\S/.test(e)}x(h,`isOnlyWhitespace`);function g(e,t,r){var i=e.sliceStart,a=e.sliceEnd,o=Math.max(e.indent,0),s=o+a-i;return r===void 0&&(r=s),t=Math.max(t,0),r=Math.min(r,s),r=Math.max(r,t),r<o?(o=r,a=i):a-=s-r,s=r,s-=t,t<o?o-=t:(t-=o,o=0,i+=t),(0,n.default)(o>=0),(0,n.default)(i<=a),(0,n.default)(s===o+a-i),e.indent===o&&e.sliceStart===i&&e.sliceEnd===a?e:{line:e.line,indent:o,locked:!1,sliceStart:i,sliceEnd:a}}x(g,`sliceInfo`);function _(e){return v.join(e)}x(_,`concat`),e.concat=_;var v=m(``)}}),Nn=E({"../../node_modules/.pnpm/recast@0.23.11/node_modules/recast/lib/comments.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.printComments=e.attach=void 0;var t=(G(),C(U)),n=t.__importDefault(hn()),r=t.__importStar(mn()),i=r.namedTypes,a=r.builtInTypes.array,o=r.builtInTypes.object,s=Mn(),c=Dn(),l=new WeakMap;function u(e,t,n){if(!e)return n;if((0,c.fixFaultyLocations)(e,t),n){if(i.Node.check(e)&&i.SourceLocation.check(e.loc)){for(var s=n.length-1;s>=0;--s){var d=n[s];if(d&&d.loc&&(0,c.comparePos)(d.loc.end,e.loc.start)<=0)break}return n.splice(s+1,0,e),n}}else{var f=l.get(e);if(f)return f}var p;if(a.check(e))p=Object.keys(e);else if(o.check(e))p=r.getFieldNames(e);else return n;n||l.set(e,n=[]);for(var s=0,m=p.length;s<m;++s)u(e[p[s]],t,n);return n}x(u,`getSortedChildNodes`);function d(e,t,n){for(var r=u(e,n),i=0,a=r&&r.length,o,s;typeof a==`number`&&i<a;){var l=i+a>>1,f=r[l];if((0,c.comparePos)(f.loc.start,t.loc.start)<=0&&(0,c.comparePos)(t.loc.end,f.loc.end)<=0){d(t.enclosingNode=f,t,n);return}if((0,c.comparePos)(f.loc.end,t.loc.start)<=0){o=f,i=l+1;continue}if((0,c.comparePos)(t.loc.end,f.loc.start)<=0){s=f,a=l;continue}throw Error(`Comment location overlaps with node location`)}o&&(t.precedingNode=o),s&&(t.followingNode=s)}x(d,`decorateComment`);function f(e,t,r){if(a.check(e)){var i=[];e.forEach(function(e){e.loc.lines=r,d(t,e,r);var a=e.precedingNode,o=e.enclosingNode,s=e.followingNode;if(a&&s){var c=i.length;if(c>0){var l=i[c-1];(0,n.default)(l.precedingNode===e.precedingNode==(l.followingNode===e.followingNode)),l.followingNode!==e.followingNode&&p(i,r)}i.push(e)}else if(a)p(i,r),_(a,e);else if(s)p(i,r),h(s,e);else if(o)p(i,r),g(o,e);else throw Error(`AST contains no nodes at all?`)}),p(i,r),e.forEach(function(e){delete e.precedingNode,delete e.enclosingNode,delete e.followingNode})}}x(f,`attach`),e.attach=f;function p(e,t){var r=e.length;if(r!==0){for(var i=e[0].precedingNode,a=e[0].followingNode,o=a.loc.start,s=r,c;s>0;--s){c=e[s-1],(0,n.default)(c.precedingNode===i),(0,n.default)(c.followingNode===a);var l=t.sliceString(c.loc.end,o);if(/\S/.test(l))break;o=c.loc.start}for(;s<=r&&(c=e[s])&&(c.type===`Line`||c.type===`CommentLine`)&&c.loc.start.column>a.loc.start.column;)++s;s&&e[s-1].enclosingNode?.type===`CallExpression`&&--s,e.forEach(function(e,t){t<s?_(i,e):h(a,e)}),e.length=0}}x(p,`breakTies`);function m(e,t){(e.comments||=[]).push(t)}x(m,`addCommentHelper`);function h(e,t){t.leading=!0,t.trailing=!1,m(e,t)}x(h,`addLeadingComment`);function g(e,t){t.leading=!1,t.trailing=!1,m(e,t)}x(g,`addDanglingComment`);function _(e,t){t.leading=!1,t.trailing=!0,m(e,t)}x(_,`addTrailingComment`);function v(e,t){var n=e.getValue();i.Comment.assert(n);var r=n.loc,a=r&&r.lines,o=[t(e)];if(n.trailing)o.push(`
16
+ `+e),o&&l.call(c,e))return c[e];var m=new s(e.split(p).map(function(e){var t=f.exec(e)[0];return{line:e,indent:d(t,r),locked:!1,sliceStart:t.length,sliceEnd:e.length}}),(0,i.normalize)(t).sourceFileName);return o&&(c[e]=m),m}x(m,`fromString`),e.fromString=m;function h(e){return!/\S/.test(e)}x(h,`isOnlyWhitespace`);function g(e,t,r){var i=e.sliceStart,a=e.sliceEnd,o=Math.max(e.indent,0),s=o+a-i;return r===void 0&&(r=s),t=Math.max(t,0),r=Math.min(r,s),r=Math.max(r,t),r<o?(o=r,a=i):a-=s-r,s=r,s-=t,t<o?o-=t:(t-=o,o=0,i+=t),(0,n.default)(o>=0),(0,n.default)(i<=a),(0,n.default)(s===o+a-i),e.indent===o&&e.sliceStart===i&&e.sliceEnd===a?e:{line:e.line,indent:o,locked:!1,sliceStart:i,sliceEnd:a}}x(g,`sliceInfo`);function _(e){return v.join(e)}x(_,`concat`),e.concat=_;var v=m(``)}}),Pn=E({"../../node_modules/.pnpm/recast@0.23.11/node_modules/recast/lib/comments.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.printComments=e.attach=void 0;var t=(G(),C(U)),n=t.__importDefault(gn()),r=t.__importStar(hn()),i=r.namedTypes,a=r.builtInTypes.array,o=r.builtInTypes.object,s=Nn(),c=On(),l=new WeakMap;function u(e,t,n){if(!e)return n;if((0,c.fixFaultyLocations)(e,t),n){if(i.Node.check(e)&&i.SourceLocation.check(e.loc)){for(var s=n.length-1;s>=0;--s){var d=n[s];if(d&&d.loc&&(0,c.comparePos)(d.loc.end,e.loc.start)<=0)break}return n.splice(s+1,0,e),n}}else{var f=l.get(e);if(f)return f}var p;if(a.check(e))p=Object.keys(e);else if(o.check(e))p=r.getFieldNames(e);else return n;n||l.set(e,n=[]);for(var s=0,m=p.length;s<m;++s)u(e[p[s]],t,n);return n}x(u,`getSortedChildNodes`);function d(e,t,n){for(var r=u(e,n),i=0,a=r&&r.length,o,s;typeof a==`number`&&i<a;){var l=i+a>>1,f=r[l];if((0,c.comparePos)(f.loc.start,t.loc.start)<=0&&(0,c.comparePos)(t.loc.end,f.loc.end)<=0){d(t.enclosingNode=f,t,n);return}if((0,c.comparePos)(f.loc.end,t.loc.start)<=0){o=f,i=l+1;continue}if((0,c.comparePos)(t.loc.end,f.loc.start)<=0){s=f,a=l;continue}throw Error(`Comment location overlaps with node location`)}o&&(t.precedingNode=o),s&&(t.followingNode=s)}x(d,`decorateComment`);function f(e,t,r){if(a.check(e)){var i=[];e.forEach(function(e){e.loc.lines=r,d(t,e,r);var a=e.precedingNode,o=e.enclosingNode,s=e.followingNode;if(a&&s){var c=i.length;if(c>0){var l=i[c-1];(0,n.default)(l.precedingNode===e.precedingNode==(l.followingNode===e.followingNode)),l.followingNode!==e.followingNode&&p(i,r)}i.push(e)}else if(a)p(i,r),_(a,e);else if(s)p(i,r),h(s,e);else if(o)p(i,r),g(o,e);else throw Error(`AST contains no nodes at all?`)}),p(i,r),e.forEach(function(e){delete e.precedingNode,delete e.enclosingNode,delete e.followingNode})}}x(f,`attach`),e.attach=f;function p(e,t){var r=e.length;if(r!==0){for(var i=e[0].precedingNode,a=e[0].followingNode,o=a.loc.start,s=r,c;s>0;--s){c=e[s-1],(0,n.default)(c.precedingNode===i),(0,n.default)(c.followingNode===a);var l=t.sliceString(c.loc.end,o);if(/\S/.test(l))break;o=c.loc.start}for(;s<=r&&(c=e[s])&&(c.type===`Line`||c.type===`CommentLine`)&&c.loc.start.column>a.loc.start.column;)++s;s&&e[s-1].enclosingNode?.type===`CallExpression`&&--s,e.forEach(function(e,t){t<s?_(i,e):h(a,e)}),e.length=0}}x(p,`breakTies`);function m(e,t){(e.comments||=[]).push(t)}x(m,`addCommentHelper`);function h(e,t){t.leading=!0,t.trailing=!1,m(e,t)}x(h,`addLeadingComment`);function g(e,t){t.leading=!1,t.trailing=!1,m(e,t)}x(g,`addDanglingComment`);function _(e,t){t.leading=!1,t.trailing=!0,m(e,t)}x(_,`addTrailingComment`);function v(e,t){var n=e.getValue();i.Comment.assert(n);var r=n.loc,a=r&&r.lines,o=[t(e)];if(n.trailing)o.push(`
17
17
  `);else if(a instanceof s.Lines){var c=a.slice(r.end,a.skipSpaces(r.end)||a.lastPos());c.length===1?o.push(c):o.push(Array(c.length).join(`
18
18
  `))}else o.push(`
19
19
  `);return(0,s.concat)(o)}x(v,`printLeadingComment`);function y(e,t){var n=e.getValue(e);i.Comment.assert(n);var r=n.loc,a=r&&r.lines,o=[];if(a instanceof s.Lines){var c=a.skipSpaces(r.start,!0)||a.firstPos(),l=a.slice(c,r.start);l.length===1?o.push(l):o.push(Array(l.length).join(`
20
- `))}return o.push(t(e)),(0,s.concat)(o)}x(y,`printTrailingComment`);function b(e,t){var n=e.getValue(),a=t(e),o=i.Node.check(n)&&r.getFieldValue(n,`comments`);if(!o||o.length===0)return a;var c=[],l=[a];return e.each(function(e){var a=e.getValue(),o=r.getFieldValue(a,`leading`),s=r.getFieldValue(a,`trailing`);o||s&&!(i.Statement.check(n)||a.type===`Block`||a.type===`CommentBlock`)?c.push(v(e,t)):s&&l.push(y(e,t))},`comments`),c.push.apply(c,l),(0,s.concat)(c)}x(b,`printComments`),e.printComments=b}}),Pn=E({"../../node_modules/.pnpm/recast@0.23.11/node_modules/recast/lib/parser.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.parse=void 0;var t=(G(),C(U)),n=t.__importDefault(hn()),r=t.__importStar(mn()),i=r.builders,a=r.builtInTypes.object,o=r.builtInTypes.array,s=An(),c=Mn(),l=Nn(),u=t.__importStar(Dn());function d(e,t){t=(0,s.normalize)(t);var n=(0,c.fromString)(e,t),r=n.toString({tabWidth:t.tabWidth,reuseWhitespace:!1,useTabs:!1}),a=[],o=t.parser.parse(r,{jsx:!0,loc:!0,locations:!0,range:t.range,comment:!0,onComment:a,tolerant:u.getOption(t,`tolerant`,!0),ecmaVersion:6,sourceType:u.getOption(t,`sourceType`,`module`)}),d=Array.isArray(o.tokens)?o.tokens:On().tokenize(r,{loc:!0});delete o.tokens,d.forEach(function(e){typeof e.value!=`string`&&(e.value=n.sliceString(e.loc.start,e.loc.end))}),Array.isArray(o.comments)&&(a=o.comments,delete o.comments),o.loc?u.fixFaultyLocations(o,n):o.loc={start:n.firstPos(),end:n.lastPos()},o.loc.lines=n,o.loc.indent=0;var p,m;o.type===`Program`?(m=o,p=i.file(o,t.sourceFileName||null),p.loc={start:n.firstPos(),end:n.lastPos(),lines:n,indent:0}):o.type===`File`&&(p=o,m=p.program),t.tokens&&(p.tokens=d);var h=u.getTrueLoc({type:m.type,loc:m.loc,body:[],comments:a},n);return m.loc.start=h.start,m.loc.end=h.end,(0,l.attach)(a,m.body.length?p.program:p,n),new f(n,d).copy(p)}x(d,`parse`),e.parse=d;var f=x(function e(t,r){(0,n.default)(this instanceof e),this.lines=t,this.tokens=r,this.startTokenIndex=0,this.endTokenIndex=r.length,this.indent=0,this.seen=new Map},`TreeCopier`),p=f.prototype;p.copy=function(e){if(this.seen.has(e))return this.seen.get(e);if(o.check(e)){var t=Array(e.length);return this.seen.set(e,t),e.forEach(function(e,n){t[n]=this.copy(e)},this),t}if(!a.check(e))return e;u.fixFaultyLocations(e,this.lines);var n=Object.create(Object.getPrototypeOf(e),{original:{value:e,configurable:!1,enumerable:!1,writable:!0}});this.seen.set(e,n);var r=e.loc,i=this.indent,s=i,c=this.startTokenIndex,l=this.endTokenIndex;r&&((e.type===`Block`||e.type===`Line`||e.type===`CommentBlock`||e.type===`CommentLine`||this.lines.isPrecededOnlyByWhitespace(r.start))&&(s=this.indent=r.start.column),r.lines=this.lines,r.tokens=this.tokens,r.indent=s,this.findTokenRange(r));for(var d=Object.keys(e),f=d.length,p=0;p<f;++p){var m=d[p];m===`loc`||m===`tokens`&&e.type===`File`?n[m]=e[m]:n[m]=this.copy(e[m])}return this.indent=i,this.startTokenIndex=c,this.endTokenIndex=l,n},p.findTokenRange=function(e){for(;this.startTokenIndex>0;){var t=e.tokens[this.startTokenIndex];if(u.comparePos(e.start,t.loc.start)<0)--this.startTokenIndex;else break}for(;this.endTokenIndex<e.tokens.length;){var t=e.tokens[this.endTokenIndex];if(u.comparePos(t.loc.end,e.end)<0)++this.endTokenIndex;else break}for(;this.startTokenIndex<this.endTokenIndex;){var t=e.tokens[this.startTokenIndex];if(u.comparePos(t.loc.start,e.start)<0)++this.startTokenIndex;else break}for(e.start.token=this.startTokenIndex;this.endTokenIndex>this.startTokenIndex;){var t=e.tokens[this.endTokenIndex-1];if(u.comparePos(e.end,t.loc.end)<0)--this.endTokenIndex;else break}e.end.token=this.endTokenIndex}}}),Fn=E({"../../node_modules/.pnpm/recast@0.23.11/node_modules/recast/lib/fast-path.js"(e){Object.defineProperty(e,`__esModule`,{value:!0});var t=(G(),C(U)),n=t.__importDefault(hn()),r=t.__importStar(mn()),i=t.__importStar(Dn()),a=r.namedTypes,o=r.builtInTypes.array,s=r.builtInTypes.number,c={};[[`??`],[`||`],[`&&`],[`|`],[`^`],[`&`],[`==`,`===`,`!=`,`!==`],[`<`,`>`,`<=`,`>=`,`in`,`instanceof`],[`>>`,`<<`,`>>>`],[`+`,`-`],[`*`,`/`,`%`],[`**`]].forEach(function(e,t){e.forEach(function(e){c[e]=t})});var l=x(function e(t){(0,n.default)(this instanceof e),this.stack=[t]},`FastPath`),u=l.prototype;l.from=function(e){if(e instanceof l)return e.copy();if(e instanceof r.NodePath){for(var t=Object.create(l.prototype),n=[e.value],i=void 0;i=e.parentPath;e=i)n.push(e.name,i.value);return t.stack=n.reverse(),t}return new l(e)},u.copy=x(function(){var e=Object.create(l.prototype);return e.stack=this.stack.slice(0),e},`copy`),u.getName=x(function(){var e=this.stack,t=e.length;return t>1?e[t-2]:null},`getName`),u.getValue=x(function(){var e=this.stack;return e[e.length-1]},`getValue`),u.valueIsDuplicate=function(){var e=this.stack,t=e.length-1;return e.lastIndexOf(e[t],t-1)>=0};function d(e,t){for(var n=e.stack,r=n.length-1;r>=0;r-=2){var i=n[r];if(a.Node.check(i)&&--t<0)return i}return null}x(d,`getNodeHelper`),u.getNode=x(function(e){return e===void 0&&(e=0),d(this,~~e)},`getNode`),u.getParentNode=x(function(e){return e===void 0&&(e=0),d(this,~~e+1)},`getParentNode`),u.getRootValue=x(function(){var e=this.stack;return e.length%2==0?e[1]:e[0]},`getRootValue`),u.call=x(function(e){for(var t=this.stack,n=t.length,r=t[n-1],i=arguments.length,a=1;a<i;++a){var o=arguments[a];r=r[o],t.push(o,r)}var s=e(this);return t.length=n,s},`call`),u.each=x(function(e){for(var t=this.stack,n=t.length,r=t[n-1],i=arguments.length,a=1;a<i;++a){var o=arguments[a];r=r[o],t.push(o,r)}for(var a=0;a<r.length;++a)a in r&&(t.push(a,r[a]),e(this),t.length-=2);t.length=n},`each`),u.map=x(function(e){for(var t=this.stack,n=t.length,r=t[n-1],i=arguments.length,a=1;a<i;++a){var o=arguments[a];r=r[o],t.push(o,r)}for(var s=Array(r.length),a=0;a<r.length;++a)a in r&&(t.push(a,r[a]),s[a]=e(this,a),t.length-=2);return t.length=n,s},`map`),u.hasParens=function(){var e=this.getNode(),t=this.getPrevToken(e);if(!t)return!1;var n=this.getNextToken(e);return n?!!(t.value===`(`&&(n.value===`)`||!this.canBeFirstInStatement()&&this.firstInStatement()&&!this.needsParens(!0))):!1},u.getPrevToken=function(e){e||=this.getNode();var t=e&&e.loc,n=t&&t.tokens;if(n&&t.start.token>0){var r=n[t.start.token-1];if(r){var a=this.getRootValue().loc;if(i.comparePos(a.start,r.loc.start)<=0)return r}}return null},u.getNextToken=function(e){e||=this.getNode();var t=e&&e.loc,n=t&&t.tokens;if(n&&t.end.token<n.length){var r=n[t.end.token];if(r){var a=this.getRootValue().loc;if(i.comparePos(r.loc.end,a.end)<=0)return r}}return null},u.needsParens=function(e){var t=this.getNode();if(t.type===`AssignmentExpression`&&t.left.type===`ObjectPattern`)return!0;var r=this.getParentNode(),i=this.getName();if(this.getValue()!==t||a.Statement.check(t)||t.type===`Identifier`||r&&r.type===`ParenthesizedExpression`)return!1;if(t.extra&&t.extra.parenthesized)return!0;if(!r)return!1;if(t.type===`UnaryExpression`&&r.type===`BinaryExpression`&&i===`left`&&r.left===t&&r.operator===`**`)return!0;switch(t.type){case`UnaryExpression`:case`SpreadElement`:case`SpreadProperty`:return r.type===`MemberExpression`&&i===`object`&&r.object===t;case`BinaryExpression`:case`LogicalExpression`:switch(r.type){case`CallExpression`:return i===`callee`&&r.callee===t;case`UnaryExpression`:case`SpreadElement`:case`SpreadProperty`:return!0;case`MemberExpression`:return i===`object`&&r.object===t;case`BinaryExpression`:case`LogicalExpression`:var o=c[r.operator],l=c[t.operator];if(o>l)return!0;if(o===l&&i===`right`)return(0,n.default)(r.right===t),!0;break;default:return!1}break;case`SequenceExpression`:switch(r.type){case`ReturnStatement`:return!1;case`ForStatement`:return!1;case`ExpressionStatement`:return i!==`expression`;default:return!0}case`OptionalIndexedAccessType`:return t.optional&&r.type===`IndexedAccessType`;case`IntersectionTypeAnnotation`:case`UnionTypeAnnotation`:return r.type===`NullableTypeAnnotation`;case`Literal`:return r.type===`MemberExpression`&&s.check(t.value)&&i===`object`&&r.object===t;case`NumericLiteral`:return r.type===`MemberExpression`&&i===`object`&&r.object===t;case`YieldExpression`:case`AwaitExpression`:case`AssignmentExpression`:case`ConditionalExpression`:switch(r.type){case`UnaryExpression`:case`SpreadElement`:case`SpreadProperty`:case`BinaryExpression`:case`LogicalExpression`:return!0;case`CallExpression`:case`NewExpression`:return i===`callee`&&r.callee===t;case`ConditionalExpression`:return i===`test`&&r.test===t;case`MemberExpression`:return i===`object`&&r.object===t;default:return!1}case`ArrowFunctionExpression`:return a.CallExpression.check(r)&&i===`callee`&&r.callee===t||a.MemberExpression.check(r)&&i===`object`&&r.object===t||a.TSAsExpression&&a.TSAsExpression.check(r)&&i===`expression`&&r.expression===t?!0:f(r);case`ObjectExpression`:if(r.type===`ArrowFunctionExpression`&&i===`body`&&r.body===t)return!0;break;case`TSAsExpression`:if(r.type===`ArrowFunctionExpression`&&i===`body`&&r.body===t&&t.expression.type===`ObjectExpression`)return!0;break;case`CallExpression`:if(i===`declaration`&&a.ExportDefaultDeclaration.check(r)&&a.FunctionExpression.check(t.callee))return!0}return r.type===`NewExpression`&&i===`callee`&&r.callee===t?p(t):!!(e!==!0&&!this.canBeFirstInStatement()&&this.firstInStatement())};function f(e){return a.BinaryExpression.check(e)||a.LogicalExpression.check(e)}x(f,`isBinary`);function p(e){return a.CallExpression.check(e)?!0:o.check(e)?e.some(p):a.Node.check(e)?r.someField(e,function(e,t){return p(t)}):!1}x(p,`containsCallExpression`),u.canBeFirstInStatement=function(){var e=this.getNode();return!(a.FunctionExpression.check(e)||a.ObjectExpression.check(e)||a.ClassExpression.check(e))},u.firstInStatement=function(){for(var e=this.stack,t,r,i,o,s=e.length-1;s>=0;s-=2)if(a.Node.check(e[s])&&(i=t,o=r,t=e[s-1],r=e[s]),!(!r||!o)){if(a.BlockStatement.check(r)&&t===`body`&&i===0)return(0,n.default)(r.body[0]===o),!0;if(a.ExpressionStatement.check(r)&&i===`expression`)return(0,n.default)(r.expression===o),!0;if(a.AssignmentExpression.check(r)&&i===`left`)return(0,n.default)(r.left===o),!0;if(a.ArrowFunctionExpression.check(r)&&i===`body`)return(0,n.default)(r.body===o),!0;if(a.SequenceExpression.check(r)&&e[s+1]===`expressions`&&i===0){(0,n.default)(r.expressions[0]===o);continue}if(a.CallExpression.check(r)&&i===`callee`){(0,n.default)(r.callee===o);continue}if(a.MemberExpression.check(r)&&i===`object`){(0,n.default)(r.object===o);continue}if(a.ConditionalExpression.check(r)&&i===`test`){(0,n.default)(r.test===o);continue}if(f(r)&&i===`left`){(0,n.default)(r.left===o);continue}if(a.UnaryExpression.check(r)&&!r.prefix&&i===`argument`){(0,n.default)(r.argument===o);continue}return!1}return!0},e.default=l}}),In=E({"../../node_modules/.pnpm/recast@0.23.11/node_modules/recast/lib/patcher.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.getReprinter=e.Patcher=void 0;var t=(G(),C(U)),n=t.__importDefault(hn()),r=t.__importStar(Mn()),i=t.__importStar(mn()),a=i.namedTypes.Printable,o=i.namedTypes.Expression,s=i.namedTypes.ReturnStatement,c=i.namedTypes.SourceLocation,l=Dn(),u=t.__importDefault(Fn()),d=i.builtInTypes.object,f=i.builtInTypes.array,p=i.builtInTypes.string,m=/[0-9a-z_$]/i,h=x(function e(t){(0,n.default)(this instanceof e),(0,n.default)(t instanceof r.Lines);var i=this,a=[];i.replace=function(e,t){p.check(t)&&(t=r.fromString(t)),a.push({lines:t,start:e.start,end:e.end})},i.get=function(e){e||={start:{line:1,column:0},end:{line:t.length,column:t.getLineLength(t.length)}};var i=e.start,o=[];function s(e,r){(0,n.default)((0,l.comparePos)(e,r)<=0),o.push(t.slice(e,r))}return x(s,`pushSlice`),a.sort(function(e,t){return(0,l.comparePos)(e.start,t.start)}).forEach(function(e){(0,l.comparePos)(i,e.start)>0||(s(i,e.start),o.push(e.lines),i=e.end)}),s(i,e.end),r.concat(o)}},`Patcher`);e.Patcher=h;var g=h.prototype;g.tryToReprintComments=function(e,t,r){var i=this;if(!e.comments&&!t.comments)return!0;var a=u.default.from(e),o=u.default.from(t);a.stack.push(`comments`,_(e)),o.stack.push(`comments`,_(t));var s=[],c=T(a,o,s);return c&&s.length>0&&s.forEach(function(e){var t=e.oldPath.getValue();(0,n.default)(t.leading||t.trailing),i.replace(t.loc,r(e.newPath).indentTail(t.loc.indent))}),c};function _(e){var t=[];return e.comments&&e.comments.length>0&&e.comments.forEach(function(e){(e.leading||e.trailing)&&t.push(e)}),t}x(_,`getSurroundingComments`),g.deleteComments=function(e){if(e.comments){var t=this;e.comments.forEach(function(n){n.leading?t.replace({start:n.loc.start,end:e.loc.lines.skipSpaces(n.loc.end,!1,!1)},``):n.trailing&&t.replace({start:e.loc.lines.skipSpaces(n.loc.start,!0,!1),end:n.loc.end},``)})}};function v(e){(0,n.default)(e instanceof u.default);var t=e.getValue();if(a.check(t)){var i=t.original,o=i&&i.loc,s=o&&o.lines,l=[];if(!(!s||!S(e,l)))return function(t){var n=new h(s);l.forEach(function(e){var i=e.newPath.getValue(),a=e.oldPath.getValue();c.assert(a.loc,!0);var o=!n.tryToReprintComments(i,a,t);o&&n.deleteComments(a);var l=t(e.newPath,{includeComments:o,avoidRootParens:a.type===i.type&&e.oldPath.hasParens()}).indentTail(a.loc.indent),u=y(s,a.loc,l),d=b(s,a.loc,l);if(u||d){var f=[];u&&f.push(` `),f.push(l),d&&f.push(` `),l=r.concat(f)}n.replace(a.loc,l)});var a=n.get(o).indentTail(-i.loc.indent);return e.needsParens()?r.concat([`(`,a,`)`]):a}}}x(v,`getReprinter`),e.getReprinter=v;function y(e,t,n){var r=(0,l.copyPos)(t.start),i=e.prevPos(r)&&e.charAt(r),a=n.charAt(n.firstPos());return i&&m.test(i)&&a&&m.test(a)}x(y,`needsLeadingSpace`);function b(e,t,n){var r=e.charAt(t.end),i=n.lastPos(),a=n.prevPos(i)&&n.charAt(i);return a&&m.test(a)&&r&&m.test(r)}x(b,`needsTrailingSpace`);function S(e,t){var r=e.getValue();a.assert(r);var i=r.original;if(a.assert(i),(0,n.default)(t.length===0),r.type!==i.type)return!1;var o=D(e,new u.default(i),t);return o||(t.length=0),o}x(S,`findReprints`);function w(e,t,n){var r=e.getValue();return r===t.getValue()?!0:f.check(r)?T(e,t,n):d.check(r)?E(e,t,n):!1}x(w,`findAnyReprints`);function T(e,t,n){var r=e.getValue(),i=t.getValue();if(r===i||e.valueIsDuplicate()||t.valueIsDuplicate())return!0;f.assert(r);var a=r.length;if(!(f.check(i)&&i.length===a))return!1;for(var o=0;o<a;++o){e.stack.push(o,r[o]),t.stack.push(o,i[o]);var s=w(e,t,n);if(e.stack.length-=2,t.stack.length-=2,!s)return!1}return!0}x(T,`findArrayReprints`);function E(e,t,n){var r=e.getValue();if(d.assert(r),r.original===null)return!1;var i=t.getValue();if(!d.check(i))return!1;if(r===i||e.valueIsDuplicate()||t.valueIsDuplicate())return!0;if(a.check(r)){if(!a.check(i))return!1;var s=e.getParentNode(),c=t.getParentNode();if(c!==null&&c.type===`FunctionTypeAnnotation`&&s!==null&&s.type===`FunctionTypeAnnotation`){var l=c.params.length!==1||!!c.params[0].name,u=s.params.length!==1||!!s.params[0].name;if(!l&&u)return!1}if(r.type===i.type){var f=[];if(D(e,t,f))n.push.apply(n,f);else if(i.loc)n.push({oldPath:t.copy(),newPath:e.copy()});else return!1;return!0}return o.check(r)&&o.check(i)&&i.loc?(n.push({oldPath:t.copy(),newPath:e.copy()}),!0):!1}return D(e,t,n)}x(E,`findObjectReprints`);function D(e,t,n){var r=e.getValue(),a=t.getValue();if(d.assert(r),d.assert(a),r.original===null||e.needsParens()&&!t.hasParens())return!1;var o=(0,l.getUnionOfKeys)(a,r);(a.type===`File`||r.type===`File`)&&delete o.tokens,delete o.loc;var c=n.length;for(var u in o)if(u.charAt(0)!==`_`){e.stack.push(u,i.getFieldValue(r,u)),t.stack.push(u,i.getFieldValue(a,u));var f=w(e,t,n);if(e.stack.length-=2,t.stack.length-=2,!f)return!1}return!(s.check(e.getNode())&&n.length>c)}x(D,`findChildReprints`)}}),Ln=E({"../../node_modules/.pnpm/recast@0.23.11/node_modules/recast/lib/printer.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.Printer=void 0;var t=(G(),C(U)),n=t.__importDefault(hn()),r=t.__importStar(mn()),i=Nn(),a=t.__importDefault(Fn()),o=Mn(),s=An(),c=In(),l=t.__importStar(Dn()),u=r.namedTypes,d=r.builtInTypes.string,f=r.builtInTypes.object,p=x(function e(t,r){(0,n.default)(this instanceof e),d.assert(t),this.code=t,r&&(f.assert(r),this.map=r)},`PrintResult`),m=p.prototype,h=!1;m.toString=function(){return h||=(console.warn(`Deprecation warning: recast.print now returns an object with a .code property. You appear to be treating the object as a string, which might still work but is strongly discouraged.`),!0),this.code};var g=new p(``);e.Printer=x(function e(t){(0,n.default)(this instanceof e);var r=t&&t.tabWidth;t=(0,s.normalize)(t),t.sourceFileName=null;function o(e,t){return e=Object.assign({},e,t),function(t){return u(t,e)}}x(o,`makePrintFunctionWith`);function u(e,s){if((0,n.default)(e instanceof a.default),s||={},s.includeComments)return(0,i.printComments)(e,o(s,{includeComments:!1}));var l=t.tabWidth;if(!r){var d=e.getNode().loc;d&&d.lines&&d.lines.guessTabWidth&&(t.tabWidth=d.lines.guessTabWidth())}var f=(0,c.getReprinter)(e),p=f?f(u):_(e,t,s,o(s,{includeComments:!0,avoidRootParens:!1}));return t.tabWidth=l,p}x(u,`print`),this.print=function(e){if(!e)return g;var n=u(a.default.from(e),{includeComments:!0,avoidRootParens:!1});return new p(n.toString(t),l.composeSourceMaps(t.inputSourceMap,n.getSourceMap(t.sourceMapName,t.sourceRoot)))},this.printGenerically=function(e){if(!e)return g;function n(e){return(0,i.printComments)(e,function(e){return _(e,t,{avoidRootParens:!1},n)})}x(n,`printGenerically`);var r=a.default.from(e),o=t.reuseWhitespace;t.reuseWhitespace=!1;var s=new p(n(r).toString(t));return t.reuseWhitespace=o,s}},`Printer`);function _(e,t,r,i){(0,n.default)(e instanceof a.default);var s=e.getValue(),c=[],l=v(e,t,i);if(!s||l.isEmpty())return l;var u=!1,d=y(e,i);return d.isEmpty()?r.avoidRootParens||(u=e.needsParens()):c.push(d),u&&c.unshift(`(`),c.push(l),u&&c.push(`)`),(0,o.concat)(c)}x(_,`genericPrint`);function v(e,i,a){var s=e.getValue();if(!s)return(0,o.fromString)(``);if(typeof s==`string`)return(0,o.fromString)(s,i);u.Printable.assert(s);var c=[];switch(s.type){case`File`:return e.call(a,`program`);case`Program`:return s.directives&&e.each(function(e){c.push(a(e),`;
20
+ `))}return o.push(t(e)),(0,s.concat)(o)}x(y,`printTrailingComment`);function b(e,t){var n=e.getValue(),a=t(e),o=i.Node.check(n)&&r.getFieldValue(n,`comments`);if(!o||o.length===0)return a;var c=[],l=[a];return e.each(function(e){var a=e.getValue(),o=r.getFieldValue(a,`leading`),s=r.getFieldValue(a,`trailing`);o||s&&!(i.Statement.check(n)||a.type===`Block`||a.type===`CommentBlock`)?c.push(v(e,t)):s&&l.push(y(e,t))},`comments`),c.push.apply(c,l),(0,s.concat)(c)}x(b,`printComments`),e.printComments=b}}),Fn=E({"../../node_modules/.pnpm/recast@0.23.11/node_modules/recast/lib/parser.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.parse=void 0;var t=(G(),C(U)),n=t.__importDefault(gn()),r=t.__importStar(hn()),i=r.builders,a=r.builtInTypes.object,o=r.builtInTypes.array,s=jn(),c=Nn(),l=Pn(),u=t.__importStar(On());function d(e,t){t=(0,s.normalize)(t);var n=(0,c.fromString)(e,t),r=n.toString({tabWidth:t.tabWidth,reuseWhitespace:!1,useTabs:!1}),a=[],o=t.parser.parse(r,{jsx:!0,loc:!0,locations:!0,range:t.range,comment:!0,onComment:a,tolerant:u.getOption(t,`tolerant`,!0),ecmaVersion:6,sourceType:u.getOption(t,`sourceType`,`module`)}),d=Array.isArray(o.tokens)?o.tokens:kn().tokenize(r,{loc:!0});delete o.tokens,d.forEach(function(e){typeof e.value!=`string`&&(e.value=n.sliceString(e.loc.start,e.loc.end))}),Array.isArray(o.comments)&&(a=o.comments,delete o.comments),o.loc?u.fixFaultyLocations(o,n):o.loc={start:n.firstPos(),end:n.lastPos()},o.loc.lines=n,o.loc.indent=0;var p,m;o.type===`Program`?(m=o,p=i.file(o,t.sourceFileName||null),p.loc={start:n.firstPos(),end:n.lastPos(),lines:n,indent:0}):o.type===`File`&&(p=o,m=p.program),t.tokens&&(p.tokens=d);var h=u.getTrueLoc({type:m.type,loc:m.loc,body:[],comments:a},n);return m.loc.start=h.start,m.loc.end=h.end,(0,l.attach)(a,m.body.length?p.program:p,n),new f(n,d).copy(p)}x(d,`parse`),e.parse=d;var f=x(function e(t,r){(0,n.default)(this instanceof e),this.lines=t,this.tokens=r,this.startTokenIndex=0,this.endTokenIndex=r.length,this.indent=0,this.seen=new Map},`TreeCopier`),p=f.prototype;p.copy=function(e){if(this.seen.has(e))return this.seen.get(e);if(o.check(e)){var t=Array(e.length);return this.seen.set(e,t),e.forEach(function(e,n){t[n]=this.copy(e)},this),t}if(!a.check(e))return e;u.fixFaultyLocations(e,this.lines);var n=Object.create(Object.getPrototypeOf(e),{original:{value:e,configurable:!1,enumerable:!1,writable:!0}});this.seen.set(e,n);var r=e.loc,i=this.indent,s=i,c=this.startTokenIndex,l=this.endTokenIndex;r&&((e.type===`Block`||e.type===`Line`||e.type===`CommentBlock`||e.type===`CommentLine`||this.lines.isPrecededOnlyByWhitespace(r.start))&&(s=this.indent=r.start.column),r.lines=this.lines,r.tokens=this.tokens,r.indent=s,this.findTokenRange(r));for(var d=Object.keys(e),f=d.length,p=0;p<f;++p){var m=d[p];m===`loc`||m===`tokens`&&e.type===`File`?n[m]=e[m]:n[m]=this.copy(e[m])}return this.indent=i,this.startTokenIndex=c,this.endTokenIndex=l,n},p.findTokenRange=function(e){for(;this.startTokenIndex>0;){var t=e.tokens[this.startTokenIndex];if(u.comparePos(e.start,t.loc.start)<0)--this.startTokenIndex;else break}for(;this.endTokenIndex<e.tokens.length;){var t=e.tokens[this.endTokenIndex];if(u.comparePos(t.loc.end,e.end)<0)++this.endTokenIndex;else break}for(;this.startTokenIndex<this.endTokenIndex;){var t=e.tokens[this.startTokenIndex];if(u.comparePos(t.loc.start,e.start)<0)++this.startTokenIndex;else break}for(e.start.token=this.startTokenIndex;this.endTokenIndex>this.startTokenIndex;){var t=e.tokens[this.endTokenIndex-1];if(u.comparePos(e.end,t.loc.end)<0)--this.endTokenIndex;else break}e.end.token=this.endTokenIndex}}}),In=E({"../../node_modules/.pnpm/recast@0.23.11/node_modules/recast/lib/fast-path.js"(e){Object.defineProperty(e,`__esModule`,{value:!0});var t=(G(),C(U)),n=t.__importDefault(gn()),r=t.__importStar(hn()),i=t.__importStar(On()),a=r.namedTypes,o=r.builtInTypes.array,s=r.builtInTypes.number,c={};[[`??`],[`||`],[`&&`],[`|`],[`^`],[`&`],[`==`,`===`,`!=`,`!==`],[`<`,`>`,`<=`,`>=`,`in`,`instanceof`],[`>>`,`<<`,`>>>`],[`+`,`-`],[`*`,`/`,`%`],[`**`]].forEach(function(e,t){e.forEach(function(e){c[e]=t})});var l=x(function e(t){(0,n.default)(this instanceof e),this.stack=[t]},`FastPath`),u=l.prototype;l.from=function(e){if(e instanceof l)return e.copy();if(e instanceof r.NodePath){for(var t=Object.create(l.prototype),n=[e.value],i=void 0;i=e.parentPath;e=i)n.push(e.name,i.value);return t.stack=n.reverse(),t}return new l(e)},u.copy=x(function(){var e=Object.create(l.prototype);return e.stack=this.stack.slice(0),e},`copy`),u.getName=x(function(){var e=this.stack,t=e.length;return t>1?e[t-2]:null},`getName`),u.getValue=x(function(){var e=this.stack;return e[e.length-1]},`getValue`),u.valueIsDuplicate=function(){var e=this.stack,t=e.length-1;return e.lastIndexOf(e[t],t-1)>=0};function d(e,t){for(var n=e.stack,r=n.length-1;r>=0;r-=2){var i=n[r];if(a.Node.check(i)&&--t<0)return i}return null}x(d,`getNodeHelper`),u.getNode=x(function(e){return e===void 0&&(e=0),d(this,~~e)},`getNode`),u.getParentNode=x(function(e){return e===void 0&&(e=0),d(this,~~e+1)},`getParentNode`),u.getRootValue=x(function(){var e=this.stack;return e.length%2==0?e[1]:e[0]},`getRootValue`),u.call=x(function(e){for(var t=this.stack,n=t.length,r=t[n-1],i=arguments.length,a=1;a<i;++a){var o=arguments[a];r=r[o],t.push(o,r)}var s=e(this);return t.length=n,s},`call`),u.each=x(function(e){for(var t=this.stack,n=t.length,r=t[n-1],i=arguments.length,a=1;a<i;++a){var o=arguments[a];r=r[o],t.push(o,r)}for(var a=0;a<r.length;++a)a in r&&(t.push(a,r[a]),e(this),t.length-=2);t.length=n},`each`),u.map=x(function(e){for(var t=this.stack,n=t.length,r=t[n-1],i=arguments.length,a=1;a<i;++a){var o=arguments[a];r=r[o],t.push(o,r)}for(var s=Array(r.length),a=0;a<r.length;++a)a in r&&(t.push(a,r[a]),s[a]=e(this,a),t.length-=2);return t.length=n,s},`map`),u.hasParens=function(){var e=this.getNode(),t=this.getPrevToken(e);if(!t)return!1;var n=this.getNextToken(e);return n?!!(t.value===`(`&&(n.value===`)`||!this.canBeFirstInStatement()&&this.firstInStatement()&&!this.needsParens(!0))):!1},u.getPrevToken=function(e){e||=this.getNode();var t=e&&e.loc,n=t&&t.tokens;if(n&&t.start.token>0){var r=n[t.start.token-1];if(r){var a=this.getRootValue().loc;if(i.comparePos(a.start,r.loc.start)<=0)return r}}return null},u.getNextToken=function(e){e||=this.getNode();var t=e&&e.loc,n=t&&t.tokens;if(n&&t.end.token<n.length){var r=n[t.end.token];if(r){var a=this.getRootValue().loc;if(i.comparePos(r.loc.end,a.end)<=0)return r}}return null},u.needsParens=function(e){var t=this.getNode();if(t.type===`AssignmentExpression`&&t.left.type===`ObjectPattern`)return!0;var r=this.getParentNode(),i=this.getName();if(this.getValue()!==t||a.Statement.check(t)||t.type===`Identifier`||r&&r.type===`ParenthesizedExpression`)return!1;if(t.extra&&t.extra.parenthesized)return!0;if(!r)return!1;if(t.type===`UnaryExpression`&&r.type===`BinaryExpression`&&i===`left`&&r.left===t&&r.operator===`**`)return!0;switch(t.type){case`UnaryExpression`:case`SpreadElement`:case`SpreadProperty`:return r.type===`MemberExpression`&&i===`object`&&r.object===t;case`BinaryExpression`:case`LogicalExpression`:switch(r.type){case`CallExpression`:return i===`callee`&&r.callee===t;case`UnaryExpression`:case`SpreadElement`:case`SpreadProperty`:return!0;case`MemberExpression`:return i===`object`&&r.object===t;case`BinaryExpression`:case`LogicalExpression`:var o=c[r.operator],l=c[t.operator];if(o>l)return!0;if(o===l&&i===`right`)return(0,n.default)(r.right===t),!0;break;default:return!1}break;case`SequenceExpression`:switch(r.type){case`ReturnStatement`:return!1;case`ForStatement`:return!1;case`ExpressionStatement`:return i!==`expression`;default:return!0}case`OptionalIndexedAccessType`:return t.optional&&r.type===`IndexedAccessType`;case`IntersectionTypeAnnotation`:case`UnionTypeAnnotation`:return r.type===`NullableTypeAnnotation`;case`Literal`:return r.type===`MemberExpression`&&s.check(t.value)&&i===`object`&&r.object===t;case`NumericLiteral`:return r.type===`MemberExpression`&&i===`object`&&r.object===t;case`YieldExpression`:case`AwaitExpression`:case`AssignmentExpression`:case`ConditionalExpression`:switch(r.type){case`UnaryExpression`:case`SpreadElement`:case`SpreadProperty`:case`BinaryExpression`:case`LogicalExpression`:return!0;case`CallExpression`:case`NewExpression`:return i===`callee`&&r.callee===t;case`ConditionalExpression`:return i===`test`&&r.test===t;case`MemberExpression`:return i===`object`&&r.object===t;default:return!1}case`ArrowFunctionExpression`:return a.CallExpression.check(r)&&i===`callee`&&r.callee===t||a.MemberExpression.check(r)&&i===`object`&&r.object===t||a.TSAsExpression&&a.TSAsExpression.check(r)&&i===`expression`&&r.expression===t?!0:f(r);case`ObjectExpression`:if(r.type===`ArrowFunctionExpression`&&i===`body`&&r.body===t)return!0;break;case`TSAsExpression`:if(r.type===`ArrowFunctionExpression`&&i===`body`&&r.body===t&&t.expression.type===`ObjectExpression`)return!0;break;case`CallExpression`:if(i===`declaration`&&a.ExportDefaultDeclaration.check(r)&&a.FunctionExpression.check(t.callee))return!0}return r.type===`NewExpression`&&i===`callee`&&r.callee===t?p(t):!!(e!==!0&&!this.canBeFirstInStatement()&&this.firstInStatement())};function f(e){return a.BinaryExpression.check(e)||a.LogicalExpression.check(e)}x(f,`isBinary`);function p(e){return a.CallExpression.check(e)?!0:o.check(e)?e.some(p):a.Node.check(e)?r.someField(e,function(e,t){return p(t)}):!1}x(p,`containsCallExpression`),u.canBeFirstInStatement=function(){var e=this.getNode();return!(a.FunctionExpression.check(e)||a.ObjectExpression.check(e)||a.ClassExpression.check(e))},u.firstInStatement=function(){for(var e=this.stack,t,r,i,o,s=e.length-1;s>=0;s-=2)if(a.Node.check(e[s])&&(i=t,o=r,t=e[s-1],r=e[s]),!(!r||!o)){if(a.BlockStatement.check(r)&&t===`body`&&i===0)return(0,n.default)(r.body[0]===o),!0;if(a.ExpressionStatement.check(r)&&i===`expression`)return(0,n.default)(r.expression===o),!0;if(a.AssignmentExpression.check(r)&&i===`left`)return(0,n.default)(r.left===o),!0;if(a.ArrowFunctionExpression.check(r)&&i===`body`)return(0,n.default)(r.body===o),!0;if(a.SequenceExpression.check(r)&&e[s+1]===`expressions`&&i===0){(0,n.default)(r.expressions[0]===o);continue}if(a.CallExpression.check(r)&&i===`callee`){(0,n.default)(r.callee===o);continue}if(a.MemberExpression.check(r)&&i===`object`){(0,n.default)(r.object===o);continue}if(a.ConditionalExpression.check(r)&&i===`test`){(0,n.default)(r.test===o);continue}if(f(r)&&i===`left`){(0,n.default)(r.left===o);continue}if(a.UnaryExpression.check(r)&&!r.prefix&&i===`argument`){(0,n.default)(r.argument===o);continue}return!1}return!0},e.default=l}}),Ln=E({"../../node_modules/.pnpm/recast@0.23.11/node_modules/recast/lib/patcher.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.getReprinter=e.Patcher=void 0;var t=(G(),C(U)),n=t.__importDefault(gn()),r=t.__importStar(Nn()),i=t.__importStar(hn()),a=i.namedTypes.Printable,o=i.namedTypes.Expression,s=i.namedTypes.ReturnStatement,c=i.namedTypes.SourceLocation,l=On(),u=t.__importDefault(In()),d=i.builtInTypes.object,f=i.builtInTypes.array,p=i.builtInTypes.string,m=/[0-9a-z_$]/i,h=x(function e(t){(0,n.default)(this instanceof e),(0,n.default)(t instanceof r.Lines);var i=this,a=[];i.replace=function(e,t){p.check(t)&&(t=r.fromString(t)),a.push({lines:t,start:e.start,end:e.end})},i.get=function(e){e||={start:{line:1,column:0},end:{line:t.length,column:t.getLineLength(t.length)}};var i=e.start,o=[];function s(e,r){(0,n.default)((0,l.comparePos)(e,r)<=0),o.push(t.slice(e,r))}return x(s,`pushSlice`),a.sort(function(e,t){return(0,l.comparePos)(e.start,t.start)}).forEach(function(e){(0,l.comparePos)(i,e.start)>0||(s(i,e.start),o.push(e.lines),i=e.end)}),s(i,e.end),r.concat(o)}},`Patcher`);e.Patcher=h;var g=h.prototype;g.tryToReprintComments=function(e,t,r){var i=this;if(!e.comments&&!t.comments)return!0;var a=u.default.from(e),o=u.default.from(t);a.stack.push(`comments`,_(e)),o.stack.push(`comments`,_(t));var s=[],c=T(a,o,s);return c&&s.length>0&&s.forEach(function(e){var t=e.oldPath.getValue();(0,n.default)(t.leading||t.trailing),i.replace(t.loc,r(e.newPath).indentTail(t.loc.indent))}),c};function _(e){var t=[];return e.comments&&e.comments.length>0&&e.comments.forEach(function(e){(e.leading||e.trailing)&&t.push(e)}),t}x(_,`getSurroundingComments`),g.deleteComments=function(e){if(e.comments){var t=this;e.comments.forEach(function(n){n.leading?t.replace({start:n.loc.start,end:e.loc.lines.skipSpaces(n.loc.end,!1,!1)},``):n.trailing&&t.replace({start:e.loc.lines.skipSpaces(n.loc.start,!0,!1),end:n.loc.end},``)})}};function v(e){(0,n.default)(e instanceof u.default);var t=e.getValue();if(a.check(t)){var i=t.original,o=i&&i.loc,s=o&&o.lines,l=[];if(!(!s||!S(e,l)))return function(t){var n=new h(s);l.forEach(function(e){var i=e.newPath.getValue(),a=e.oldPath.getValue();c.assert(a.loc,!0);var o=!n.tryToReprintComments(i,a,t);o&&n.deleteComments(a);var l=t(e.newPath,{includeComments:o,avoidRootParens:a.type===i.type&&e.oldPath.hasParens()}).indentTail(a.loc.indent),u=y(s,a.loc,l),d=b(s,a.loc,l);if(u||d){var f=[];u&&f.push(` `),f.push(l),d&&f.push(` `),l=r.concat(f)}n.replace(a.loc,l)});var a=n.get(o).indentTail(-i.loc.indent);return e.needsParens()?r.concat([`(`,a,`)`]):a}}}x(v,`getReprinter`),e.getReprinter=v;function y(e,t,n){var r=(0,l.copyPos)(t.start),i=e.prevPos(r)&&e.charAt(r),a=n.charAt(n.firstPos());return i&&m.test(i)&&a&&m.test(a)}x(y,`needsLeadingSpace`);function b(e,t,n){var r=e.charAt(t.end),i=n.lastPos(),a=n.prevPos(i)&&n.charAt(i);return a&&m.test(a)&&r&&m.test(r)}x(b,`needsTrailingSpace`);function S(e,t){var r=e.getValue();a.assert(r);var i=r.original;if(a.assert(i),(0,n.default)(t.length===0),r.type!==i.type)return!1;var o=D(e,new u.default(i),t);return o||(t.length=0),o}x(S,`findReprints`);function w(e,t,n){var r=e.getValue();return r===t.getValue()?!0:f.check(r)?T(e,t,n):d.check(r)?E(e,t,n):!1}x(w,`findAnyReprints`);function T(e,t,n){var r=e.getValue(),i=t.getValue();if(r===i||e.valueIsDuplicate()||t.valueIsDuplicate())return!0;f.assert(r);var a=r.length;if(!(f.check(i)&&i.length===a))return!1;for(var o=0;o<a;++o){e.stack.push(o,r[o]),t.stack.push(o,i[o]);var s=w(e,t,n);if(e.stack.length-=2,t.stack.length-=2,!s)return!1}return!0}x(T,`findArrayReprints`);function E(e,t,n){var r=e.getValue();if(d.assert(r),r.original===null)return!1;var i=t.getValue();if(!d.check(i))return!1;if(r===i||e.valueIsDuplicate()||t.valueIsDuplicate())return!0;if(a.check(r)){if(!a.check(i))return!1;var s=e.getParentNode(),c=t.getParentNode();if(c!==null&&c.type===`FunctionTypeAnnotation`&&s!==null&&s.type===`FunctionTypeAnnotation`){var l=c.params.length!==1||!!c.params[0].name,u=s.params.length!==1||!!s.params[0].name;if(!l&&u)return!1}if(r.type===i.type){var f=[];if(D(e,t,f))n.push.apply(n,f);else if(i.loc)n.push({oldPath:t.copy(),newPath:e.copy()});else return!1;return!0}return o.check(r)&&o.check(i)&&i.loc?(n.push({oldPath:t.copy(),newPath:e.copy()}),!0):!1}return D(e,t,n)}x(E,`findObjectReprints`);function D(e,t,n){var r=e.getValue(),a=t.getValue();if(d.assert(r),d.assert(a),r.original===null||e.needsParens()&&!t.hasParens())return!1;var o=(0,l.getUnionOfKeys)(a,r);(a.type===`File`||r.type===`File`)&&delete o.tokens,delete o.loc;var c=n.length;for(var u in o)if(u.charAt(0)!==`_`){e.stack.push(u,i.getFieldValue(r,u)),t.stack.push(u,i.getFieldValue(a,u));var f=w(e,t,n);if(e.stack.length-=2,t.stack.length-=2,!f)return!1}return!(s.check(e.getNode())&&n.length>c)}x(D,`findChildReprints`)}}),Rn=E({"../../node_modules/.pnpm/recast@0.23.11/node_modules/recast/lib/printer.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.Printer=void 0;var t=(G(),C(U)),n=t.__importDefault(gn()),r=t.__importStar(hn()),i=Pn(),a=t.__importDefault(In()),o=Nn(),s=jn(),c=Ln(),l=t.__importStar(On()),u=r.namedTypes,d=r.builtInTypes.string,f=r.builtInTypes.object,p=x(function e(t,r){(0,n.default)(this instanceof e),d.assert(t),this.code=t,r&&(f.assert(r),this.map=r)},`PrintResult`),m=p.prototype,h=!1;m.toString=function(){return h||=(console.warn(`Deprecation warning: recast.print now returns an object with a .code property. You appear to be treating the object as a string, which might still work but is strongly discouraged.`),!0),this.code};var g=new p(``);e.Printer=x(function e(t){(0,n.default)(this instanceof e);var r=t&&t.tabWidth;t=(0,s.normalize)(t),t.sourceFileName=null;function o(e,t){return e=Object.assign({},e,t),function(t){return u(t,e)}}x(o,`makePrintFunctionWith`);function u(e,s){if((0,n.default)(e instanceof a.default),s||={},s.includeComments)return(0,i.printComments)(e,o(s,{includeComments:!1}));var l=t.tabWidth;if(!r){var d=e.getNode().loc;d&&d.lines&&d.lines.guessTabWidth&&(t.tabWidth=d.lines.guessTabWidth())}var f=(0,c.getReprinter)(e),p=f?f(u):_(e,t,s,o(s,{includeComments:!0,avoidRootParens:!1}));return t.tabWidth=l,p}x(u,`print`),this.print=function(e){if(!e)return g;var n=u(a.default.from(e),{includeComments:!0,avoidRootParens:!1});return new p(n.toString(t),l.composeSourceMaps(t.inputSourceMap,n.getSourceMap(t.sourceMapName,t.sourceRoot)))},this.printGenerically=function(e){if(!e)return g;function n(e){return(0,i.printComments)(e,function(e){return _(e,t,{avoidRootParens:!1},n)})}x(n,`printGenerically`);var r=a.default.from(e),o=t.reuseWhitespace;t.reuseWhitespace=!1;var s=new p(n(r).toString(t));return t.reuseWhitespace=o,s}},`Printer`);function _(e,t,r,i){(0,n.default)(e instanceof a.default);var s=e.getValue(),c=[],l=v(e,t,i);if(!s||l.isEmpty())return l;var u=!1,d=y(e,i);return d.isEmpty()?r.avoidRootParens||(u=e.needsParens()):c.push(d),u&&c.unshift(`(`),c.push(l),u&&c.push(`)`),(0,o.concat)(c)}x(_,`genericPrint`);function v(e,i,a){var s=e.getValue();if(!s)return(0,o.fromString)(``);if(typeof s==`string`)return(0,o.fromString)(s,i);u.Printable.assert(s);var c=[];switch(s.type){case`File`:return e.call(a,`program`);case`Program`:return s.directives&&e.each(function(e){c.push(a(e),`;
21
21
  `)},`directives`),s.interpreter&&c.push(e.call(a,`interpreter`)),c.push(e.call(function(e){return b(e,i,a)},`body`)),(0,o.concat)(c);case`Noop`:case`EmptyStatement`:return(0,o.fromString)(``);case`ExpressionStatement`:return(0,o.concat)([e.call(a,`expression`),`;`]);case`ParenthesizedExpression`:return(0,o.concat)([`(`,e.call(a,`expression`),`)`]);case`BinaryExpression`:case`LogicalExpression`:case`AssignmentExpression`:return(0,o.fromString)(` `).join([e.call(a,`left`),s.operator,e.call(a,`right`)]);case`AssignmentPattern`:return(0,o.concat)([e.call(a,`left`),` = `,e.call(a,`right`)]);case`MemberExpression`:case`OptionalMemberExpression`:c.push(e.call(a,`object`));var d=e.call(a,`property`),f=r.getFieldValue(s,`optional`);return s.computed?c.push(f?`?.[`:`[`,d,`]`):c.push(f?`?.`:`.`,d),(0,o.concat)(c);case`ChainExpression`:return e.call(a,`expression`);case`MetaProperty`:return(0,o.concat)([e.call(a,`meta`),`.`,e.call(a,`property`)]);case`BindExpression`:return s.object&&c.push(e.call(a,`object`)),c.push(`::`,e.call(a,`callee`)),(0,o.concat)(c);case`Path`:return(0,o.fromString)(`.`).join(s.body);case`Identifier`:return(0,o.concat)([(0,o.fromString)(s.name,i),s.optional?`?`:``,e.call(a,`typeAnnotation`)]);case`SpreadElement`:case`SpreadElementPattern`:case`RestProperty`:case`SpreadProperty`:case`SpreadPropertyPattern`:case`ObjectTypeSpreadProperty`:case`RestElement`:return(0,o.concat)([`...`,e.call(a,`argument`),e.call(a,`typeAnnotation`)]);case`FunctionDeclaration`:case`FunctionExpression`:case`TSDeclareFunction`:return s.declare&&c.push(`declare `),s.async&&c.push(`async `),c.push(`function`),s.generator&&c.push(`*`),s.id?c.push(` `,e.call(a,`id`),e.call(a,`typeParameters`)):s.typeParameters&&c.push(e.call(a,`typeParameters`)),c.push(`(`,D(e,i,a),`)`,e.call(a,`returnType`)),s.body&&c.push(` `,e.call(a,`body`)),(0,o.concat)(c);case`ArrowFunctionExpression`:return s.async&&c.push(`async `),s.typeParameters&&c.push(e.call(a,`typeParameters`)),!i.arrowParensAlways&&s.params.length===1&&!s.rest&&s.params[0].type===`Identifier`&&!s.params[0].typeAnnotation&&!s.returnType?c.push(e.call(a,`params`,0)):c.push(`(`,D(e,i,a),`)`,e.call(a,`returnType`)),c.push(` => `,e.call(a,`body`)),(0,o.concat)(c);case`MethodDefinition`:return T(e,i,a);case`YieldExpression`:return c.push(`yield`),s.delegate&&c.push(`*`),s.argument&&c.push(` `,e.call(a,`argument`)),(0,o.concat)(c);case`AwaitExpression`:return c.push(`await`),s.all&&c.push(`*`),s.argument&&c.push(` `,e.call(a,`argument`)),(0,o.concat)(c);case`ModuleExpression`:return(0,o.concat)([`module {
22
22
  `,e.call(a,`body`).indent(i.tabWidth),`
23
23
  }`]);case`ModuleDeclaration`:return c.push(`module`,e.call(a,`id`)),s.source?((0,n.default)(!s.body),c.push(`from`,e.call(a,`source`))):c.push(e.call(a,`body`)),(0,o.fromString)(` `).join(c);case`ImportSpecifier`:return s.importKind&&s.importKind!==`value`&&c.push(s.importKind+` `),s.imported?(c.push(e.call(a,`imported`)),s.local&&s.local.name!==s.imported.name&&c.push(` as `,e.call(a,`local`))):s.id&&(c.push(e.call(a,`id`)),s.name&&c.push(` as `,e.call(a,`name`))),(0,o.concat)(c);case`ExportSpecifier`:return s.exportKind&&s.exportKind!==`value`&&c.push(s.exportKind+` `),s.local?(c.push(e.call(a,`local`)),s.exported&&s.exported.name!==s.local.name&&c.push(` as `,e.call(a,`exported`))):s.id&&(c.push(e.call(a,`id`)),s.name&&c.push(` as `,e.call(a,`name`))),(0,o.concat)(c);case`ExportBatchSpecifier`:return(0,o.fromString)(`*`);case`ImportNamespaceSpecifier`:return c.push(`* as `),s.local?c.push(e.call(a,`local`)):s.id&&c.push(e.call(a,`id`)),(0,o.concat)(c);case`ImportDefaultSpecifier`:return s.local?e.call(a,`local`):e.call(a,`id`);case`TSExportAssignment`:return(0,o.concat)([`export = `,e.call(a,`expression`)]);case`ExportDeclaration`:case`ExportDefaultDeclaration`:case`ExportNamedDeclaration`:return ee(e,i,a);case`ExportAllDeclaration`:return c.push(`export *`),s.exported&&c.push(` as `,e.call(a,`exported`)),c.push(` from `,e.call(a,`source`),`;`),(0,o.concat)(c);case`TSNamespaceExportDeclaration`:return c.push(`export as namespace `,e.call(a,`id`)),ie((0,o.concat)(c));case`ExportNamespaceSpecifier`:return(0,o.concat)([`* as `,e.call(a,`exported`)]);case`ExportDefaultSpecifier`:return e.call(a,`exported`);case`Import`:return(0,o.fromString)(`import`,i);case`ImportExpression`:return(0,o.concat)([`import(`,e.call(a,`source`),`)`]);case`ImportDeclaration`:if(c.push(`import `),s.importKind&&s.importKind!==`value`&&c.push(s.importKind+` `),s.specifiers&&s.specifiers.length>0){var p=[],m=[];if(e.each(function(e){var t=e.getValue();t.type===`ImportSpecifier`?m.push(a(e)):(t.type===`ImportDefaultSpecifier`||t.type===`ImportNamespaceSpecifier`)&&p.push(a(e))},`specifiers`),p.forEach(function(e,t){t>0&&c.push(`, `),c.push(e)}),m.length>0){var h=(0,o.fromString)(`, `).join(m);h.getLineLength(1)>i.wrapColumn&&(h=(0,o.concat)([(0,o.fromString)(`,
@@ -38,20 +38,20 @@ import{i as e,n as t,r as n}from"./source-38bULAR8.mjs";import{t as r}from"./cli
38
38
  `+oe),I!==0&&P&&i.objectCurlySpacing&&(c[F]=ae+` `,c[c.length-1]=` `+oe),s.typeAnnotation&&c.push(e.call(a,`typeAnnotation`)),(0,o.concat)(c);case`PropertyPattern`:return(0,o.concat)([e.call(a,`key`),`: `,e.call(a,`pattern`)]);case`ObjectProperty`:case`Property`:if(s.method||s.kind===`get`||s.kind===`set`)return T(e,i,a);if(s.shorthand&&s.value.type===`AssignmentPattern`)return e.call(a,`value`);var L=e.call(a,`key`);return s.computed?c.push(`[`,L,`]`):c.push(L),(!s.shorthand||s.key.name!==s.value.name)&&c.push(`: `,e.call(a,`value`)),(0,o.concat)(c);case`ClassMethod`:case`ObjectMethod`:case`ClassPrivateMethod`:case`TSDeclareMethod`:return T(e,i,a);case`PrivateName`:return(0,o.concat)([`#`,e.call(a,`id`)]);case`Decorator`:return(0,o.concat)([`@`,e.call(a,`expression`)]);case`TupleExpression`:c.push(`#`);case`ArrayExpression`:case`ArrayPattern`:var ce=s.elements.length,le=e.map(a,`elements`),ue=(0,o.fromString)(`, `).join(le),de=ue.getLineLength(1)<=i.wrapColumn;return de?i.arrayBracketSpacing?c.push(`[ `):c.push(`[`):c.push(`[
39
39
  `),e.each(function(e){var t=e.getName();if(!e.getValue())c.push(`,`);else{var n=le[t];de?t>0&&c.push(` `):n=n.indent(i.tabWidth),c.push(n),(t<ce-1||!de&&l.isTrailingCommaEnabled(i,`arrays`))&&c.push(`,`),de||c.push(`
40
40
  `)}},`elements`),de&&i.arrayBracketSpacing?c.push(` ]`):c.push(`]`),s.typeAnnotation&&c.push(e.call(a,`typeAnnotation`)),(0,o.concat)(c);case`SequenceExpression`:return(0,o.fromString)(`, `).join(e.map(a,`expressions`));case`ThisExpression`:return(0,o.fromString)(`this`);case`Super`:return(0,o.fromString)(`super`);case`NullLiteral`:return(0,o.fromString)(`null`);case`RegExpLiteral`:return(0,o.fromString)(N(s)||`/${s.pattern}/${s.flags||``}`,i);case`BigIntLiteral`:return(0,o.fromString)(N(s)||s.value+`n`,i);case`NumericLiteral`:return(0,o.fromString)(N(s)||s.value,i);case`DecimalLiteral`:return(0,o.fromString)(N(s)||s.value+`m`,i);case`StringLiteral`:return(0,o.fromString)(re(s.value,i));case`BooleanLiteral`:case`Literal`:return(0,o.fromString)(N(s)||(typeof s.value==`string`?re(s.value,i):s.value),i);case`Directive`:return e.call(a,`value`);case`DirectiveLiteral`:return(0,o.fromString)(N(s)||re(s.value,i),i);case`InterpreterDirective`:return(0,o.fromString)(`#!${s.value}
41
- `,i);case`ModuleSpecifier`:if(s.local)throw Error(`The ESTree ModuleSpecifier type should be abstract`);return(0,o.fromString)(re(s.value,i),i);case`UnaryExpression`:return c.push(s.operator),/[a-z]$/.test(s.operator)&&c.push(` `),c.push(e.call(a,`argument`)),(0,o.concat)(c);case`UpdateExpression`:return c.push(e.call(a,`argument`),s.operator),s.prefix&&c.reverse(),(0,o.concat)(c);case`ConditionalExpression`:return(0,o.concat)([e.call(a,`test`),` ? `,e.call(a,`consequent`),` : `,e.call(a,`alternate`)]);case`NewExpression`:return c.push(`new `,e.call(a,`callee`)),s.typeParameters&&c.push(e.call(a,`typeParameters`)),s.typeArguments&&c.push(e.call(a,`typeArguments`)),s.arguments&&c.push(E(e,i,a)),(0,o.concat)(c);case`VariableDeclaration`:s.declare&&c.push(`declare `),c.push(s.kind,` `);var fe=0,R=e.map(function(e){var t=a(e);return fe=Math.max(t.length,fe),t},`declarations`);fe===1?c.push((0,o.fromString)(`, `).join(R)):R.length>1?c.push((0,o.fromString)(`,
42
- `).join(R).indentTail(s.kind.length+1)):c.push(R[0]);var pe=e.getParentNode();return!u.ForStatement.check(pe)&&!u.ForInStatement.check(pe)&&!(u.ForOfStatement&&u.ForOfStatement.check(pe))&&!(u.ForAwaitStatement&&u.ForAwaitStatement.check(pe))&&c.push(`;`),(0,o.concat)(c);case`VariableDeclarator`:return s.init?(0,o.fromString)(` = `).join([e.call(a,`id`),e.call(a,`init`)]):e.call(a,`id`);case`WithStatement`:return(0,o.concat)([`with (`,e.call(a,`object`),`) `,e.call(a,`body`)]);case`IfStatement`:var me=ne(e.call(a,`consequent`),i);return c.push(`if (`,e.call(a,`test`),`)`,me),s.alternate&&c.push(j(me)?` else`:`
41
+ `,i);case`ModuleSpecifier`:if(s.local)throw Error(`The ESTree ModuleSpecifier type should be abstract`);return(0,o.fromString)(re(s.value,i),i);case`UnaryExpression`:return c.push(s.operator),/[a-z]$/.test(s.operator)&&c.push(` `),c.push(e.call(a,`argument`)),(0,o.concat)(c);case`UpdateExpression`:return c.push(e.call(a,`argument`),s.operator),s.prefix&&c.reverse(),(0,o.concat)(c);case`ConditionalExpression`:return(0,o.concat)([e.call(a,`test`),` ? `,e.call(a,`consequent`),` : `,e.call(a,`alternate`)]);case`NewExpression`:return c.push(`new `,e.call(a,`callee`)),s.typeParameters&&c.push(e.call(a,`typeParameters`)),s.typeArguments&&c.push(e.call(a,`typeArguments`)),s.arguments&&c.push(E(e,i,a)),(0,o.concat)(c);case`VariableDeclaration`:s.declare&&c.push(`declare `),c.push(s.kind,` `);var fe=0,pe=e.map(function(e){var t=a(e);return fe=Math.max(t.length,fe),t},`declarations`);fe===1?c.push((0,o.fromString)(`, `).join(pe)):pe.length>1?c.push((0,o.fromString)(`,
42
+ `).join(pe).indentTail(s.kind.length+1)):c.push(pe[0]);var R=e.getParentNode();return!u.ForStatement.check(R)&&!u.ForInStatement.check(R)&&!(u.ForOfStatement&&u.ForOfStatement.check(R))&&!(u.ForAwaitStatement&&u.ForAwaitStatement.check(R))&&c.push(`;`),(0,o.concat)(c);case`VariableDeclarator`:return s.init?(0,o.fromString)(` = `).join([e.call(a,`id`),e.call(a,`init`)]):e.call(a,`id`);case`WithStatement`:return(0,o.concat)([`with (`,e.call(a,`object`),`) `,e.call(a,`body`)]);case`IfStatement`:var me=ne(e.call(a,`consequent`),i);return c.push(`if (`,e.call(a,`test`),`)`,me),s.alternate&&c.push(j(me)?` else`:`
43
43
  else`,ne(e.call(a,`alternate`),i)),(0,o.concat)(c);case`ForStatement`:var he=e.call(a,`init`),ge=he.length>1?`;
44
- `:`; `,_e=`for (`,z=(0,o.fromString)(ge).join([he,e.call(a,`test`),e.call(a,`update`)]).indentTail(_e.length),ve=(0,o.concat)([_e,z,`)`]),B=ne(e.call(a,`body`),i);return c.push(ve),ve.length>1&&(c.push(`
45
- `),B=B.trimLeft()),c.push(B),(0,o.concat)(c);case`WhileStatement`:return(0,o.concat)([`while (`,e.call(a,`test`),`)`,ne(e.call(a,`body`),i)]);case`ForInStatement`:return(0,o.concat)([s.each?`for each (`:`for (`,e.call(a,`left`),` in `,e.call(a,`right`),`)`,ne(e.call(a,`body`),i)]);case`ForOfStatement`:case`ForAwaitStatement`:return c.push(`for `),(s.await||s.type===`ForAwaitStatement`)&&c.push(`await `),c.push(`(`,e.call(a,`left`),` of `,e.call(a,`right`),`)`,ne(e.call(a,`body`),i)),(0,o.concat)(c);case`DoWhileStatement`:var ye=(0,o.concat)([`do`,ne(e.call(a,`body`),i)]);return c.push(ye),j(ye)?c.push(` while`):c.push(`
46
- while`),c.push(` (`,e.call(a,`test`),`);`),(0,o.concat)(c);case`DoExpression`:var V=e.call(function(e){return b(e,i,a)},`body`);return(0,o.concat)([`do {
47
- `,V.indent(i.tabWidth),`
44
+ `:`; `,_e=`for (`,ve=(0,o.fromString)(ge).join([he,e.call(a,`test`),e.call(a,`update`)]).indentTail(_e.length),z=(0,o.concat)([_e,ve,`)`]),ye=ne(e.call(a,`body`),i);return c.push(z),z.length>1&&(c.push(`
45
+ `),ye=ye.trimLeft()),c.push(ye),(0,o.concat)(c);case`WhileStatement`:return(0,o.concat)([`while (`,e.call(a,`test`),`)`,ne(e.call(a,`body`),i)]);case`ForInStatement`:return(0,o.concat)([s.each?`for each (`:`for (`,e.call(a,`left`),` in `,e.call(a,`right`),`)`,ne(e.call(a,`body`),i)]);case`ForOfStatement`:case`ForAwaitStatement`:return c.push(`for `),(s.await||s.type===`ForAwaitStatement`)&&c.push(`await `),c.push(`(`,e.call(a,`left`),` of `,e.call(a,`right`),`)`,ne(e.call(a,`body`),i)),(0,o.concat)(c);case`DoWhileStatement`:var B=(0,o.concat)([`do`,ne(e.call(a,`body`),i)]);return c.push(B),j(B)?c.push(` while`):c.push(`
46
+ while`),c.push(` (`,e.call(a,`test`),`);`),(0,o.concat)(c);case`DoExpression`:var be=e.call(function(e){return b(e,i,a)},`body`);return(0,o.concat)([`do {
47
+ `,be.indent(i.tabWidth),`
48
48
  }`]);case`BreakStatement`:return c.push(`break`),s.label&&c.push(` `,e.call(a,`label`)),c.push(`;`),(0,o.concat)(c);case`ContinueStatement`:return c.push(`continue`),s.label&&c.push(` `,e.call(a,`label`)),c.push(`;`),(0,o.concat)(c);case`LabeledStatement`:return(0,o.concat)([e.call(a,`label`),`:
49
49
  `,e.call(a,`body`)]);case`TryStatement`:return c.push(`try `,e.call(a,`block`)),s.handler?c.push(` `,e.call(a,`handler`)):s.handlers&&e.each(function(e){c.push(` `,a(e))},`handlers`),s.finalizer&&c.push(` finally `,e.call(a,`finalizer`)),(0,o.concat)(c);case`CatchClause`:return c.push(`catch `),s.param&&c.push(`(`,e.call(a,`param`)),s.guard&&c.push(` if `,e.call(a,`guard`)),s.param&&c.push(`) `),c.push(e.call(a,`body`)),(0,o.concat)(c);case`ThrowStatement`:return(0,o.concat)([`throw `,e.call(a,`argument`),`;`]);case`SwitchStatement`:return(0,o.concat)([`switch (`,e.call(a,`discriminant`),`) {
50
50
  `,(0,o.fromString)(`
51
51
  `).join(e.map(a,`cases`)),`
52
52
  }`]);case`SwitchCase`:return s.test?c.push(`case `,e.call(a,`test`),`:`):c.push(`default:`),s.consequent.length>0&&c.push(`
53
- `,e.call(function(e){return b(e,i,a)},`consequent`).indent(i.tabWidth)),(0,o.concat)(c);case`DebuggerStatement`:return(0,o.fromString)(`debugger;`);case`JSXAttribute`:return c.push(e.call(a,`name`)),s.value&&c.push(`=`,e.call(a,`value`)),(0,o.concat)(c);case`JSXIdentifier`:return(0,o.fromString)(s.name,i);case`JSXNamespacedName`:return(0,o.fromString)(`:`).join([e.call(a,`namespace`),e.call(a,`name`)]);case`JSXMemberExpression`:return(0,o.fromString)(`.`).join([e.call(a,`object`),e.call(a,`property`)]);case`JSXSpreadAttribute`:return(0,o.concat)([`{...`,e.call(a,`argument`),`}`]);case`JSXSpreadChild`:return(0,o.concat)([`{...`,e.call(a,`expression`),`}`]);case`JSXExpressionContainer`:return(0,o.concat)([`{`,e.call(a,`expression`),`}`]);case`JSXElement`:case`JSXFragment`:var be=`opening`+(s.type===`JSXElement`?`Element`:`Fragment`),xe=`closing`+(s.type===`JSXElement`?`Element`:`Fragment`),Se=e.call(a,be);if(s[be].selfClosing)return(0,n.default)(!s[xe],`unexpected `+xe+` element in self-closing `+s.type),Se;var Ce=(0,o.concat)(e.map(function(e){var t=e.getValue();if(u.Literal.check(t)&&typeof t.value==`string`){if(/\S/.test(t.value))return t.value.replace(/^\s+/g,``);if(/\n/.test(t.value))return`
54
- `}return a(e)},`children`)).indentTail(i.tabWidth),we=e.call(a,xe);return(0,o.concat)([Se,Ce,we]);case`JSXOpeningElement`:c.push(`<`,e.call(a,`name`));var Te=e.call(a,`typeParameters`);Te.length&&c.push(Te);var Ee=[];e.each(function(e){Ee.push(` `,a(e))},`attributes`);var De=(0,o.concat)(Ee);return(De.length>1||De.getLineLength(1)>i.wrapColumn)&&(Ee.forEach(function(e,t){e===` `&&((0,n.default)(t%2==0),Ee[t]=`
53
+ `,e.call(function(e){return b(e,i,a)},`consequent`).indent(i.tabWidth)),(0,o.concat)(c);case`DebuggerStatement`:return(0,o.fromString)(`debugger;`);case`JSXAttribute`:return c.push(e.call(a,`name`)),s.value&&c.push(`=`,e.call(a,`value`)),(0,o.concat)(c);case`JSXIdentifier`:return(0,o.fromString)(s.name,i);case`JSXNamespacedName`:return(0,o.fromString)(`:`).join([e.call(a,`namespace`),e.call(a,`name`)]);case`JSXMemberExpression`:return(0,o.fromString)(`.`).join([e.call(a,`object`),e.call(a,`property`)]);case`JSXSpreadAttribute`:return(0,o.concat)([`{...`,e.call(a,`argument`),`}`]);case`JSXSpreadChild`:return(0,o.concat)([`{...`,e.call(a,`expression`),`}`]);case`JSXExpressionContainer`:return(0,o.concat)([`{`,e.call(a,`expression`),`}`]);case`JSXElement`:case`JSXFragment`:var xe=`opening`+(s.type===`JSXElement`?`Element`:`Fragment`),Se=`closing`+(s.type===`JSXElement`?`Element`:`Fragment`),V=e.call(a,xe);if(s[xe].selfClosing)return(0,n.default)(!s[Se],`unexpected `+Se+` element in self-closing `+s.type),V;var Ce=(0,o.concat)(e.map(function(e){var t=e.getValue();if(u.Literal.check(t)&&typeof t.value==`string`){if(/\S/.test(t.value))return t.value.replace(/^\s+/g,``);if(/\n/.test(t.value))return`
54
+ `}return a(e)},`children`)).indentTail(i.tabWidth),we=e.call(a,Se);return(0,o.concat)([V,Ce,we]);case`JSXOpeningElement`:c.push(`<`,e.call(a,`name`));var Te=e.call(a,`typeParameters`);Te.length&&c.push(Te);var Ee=[];e.each(function(e){Ee.push(` `,a(e))},`attributes`);var De=(0,o.concat)(Ee);return(De.length>1||De.getLineLength(1)>i.wrapColumn)&&(Ee.forEach(function(e,t){e===` `&&((0,n.default)(t%2==0),Ee[t]=`
55
55
  `)}),De=(0,o.concat)(Ee).indentTail(i.tabWidth)),c.push(De,s.selfClosing?` />`:`>`),(0,o.concat)(c);case`JSXClosingElement`:return(0,o.concat)([`</`,e.call(a,`name`),`>`]);case`JSXOpeningFragment`:return(0,o.fromString)(`<>`);case`JSXClosingFragment`:return(0,o.fromString)(`</>`);case`JSXText`:return(0,o.fromString)(s.value,i);case`JSXEmptyExpression`:return(0,o.fromString)(``);case`TypeAnnotatedIdentifier`:return(0,o.concat)([e.call(a,`annotation`),` `,e.call(a,`identifier`)]);case`ClassBody`:return s.body.length===0?(0,o.fromString)(`{}`):(0,o.concat)([`{
56
56
  `,e.call(function(e){return b(e,i,a)},`body`).indent(i.tabWidth),`
57
57
  }`]);case`ClassPropertyDefinition`:return c.push(`static `,e.call(a,`definition`)),u.MethodDefinition.check(s.definition)||c.push(`;`),(0,o.concat)(c);case`ClassProperty`:s.declare&&c.push(`declare `);var Oe=s.accessibility||s.access;typeof Oe==`string`&&c.push(Oe,` `),s.static&&c.push(`static `),s.abstract&&c.push(`abstract `),s.readonly&&c.push(`readonly `);var L=e.call(a,`key`);return s.computed&&(L=(0,o.concat)([`[`,L,`]`])),s.variance&&(L=(0,o.concat)([te(e,a),L])),c.push(L),s.optional&&c.push(`?`),s.definite&&c.push(`!`),s.typeAnnotation&&c.push(e.call(a,`typeAnnotation`)),s.value&&c.push(` = `,e.call(a,`value`)),c.push(`;`),(0,o.concat)(c);case`ClassPrivateProperty`:return s.static&&c.push(`static `),c.push(e.call(a,`key`)),s.typeAnnotation&&c.push(e.call(a,`typeAnnotation`)),s.value&&c.push(` = `,e.call(a,`value`)),c.push(`;`),(0,o.concat)(c);case`ClassAccessorProperty`:return c.push.apply(c,t.__spreadArray(t.__spreadArray([],w(s),!1),[`accessor `],!1)),s.computed?c.push(`[`,e.call(a,`key`),`]`):c.push(e.call(a,`key`)),s.optional&&c.push(`?`),s.definite&&c.push(`!`),s.typeAnnotation&&c.push(e.call(a,`typeAnnotation`)),s.value&&c.push(` = `,e.call(a,`value`)),c.push(`;`),(0,o.concat)(c);case`ClassDeclaration`:case`ClassExpression`:case`DeclareClass`:return s.declare&&c.push(`declare `),s.abstract&&c.push(`abstract `),c.push(`class`),s.id&&c.push(` `,e.call(a,`id`)),s.typeParameters&&c.push(e.call(a,`typeParameters`)),s.superClass&&c.push(` extends `,e.call(a,`superClass`),e.call(a,`superTypeParameters`)),s.extends&&s.extends.length>0&&c.push(` extends `,(0,o.fromString)(`, `).join(e.map(a,`extends`))),s.implements&&s.implements.length>0&&c.push(` implements `,(0,o.fromString)(`, `).join(e.map(a,`implements`))),c.push(` `,e.call(a,`body`)),s.type===`DeclareClass`?k(e,c):(0,o.concat)(c);case`TemplateElement`:return(0,o.fromString)(s.value.raw,i).lockIndentTail();case`TemplateLiteral`:var ke=e.map(a,`expressions`);return c.push("`"),e.each(function(e){var t=e.getName();c.push(a(e)),t<ke.length&&c.push("${",ke[t],`}`)},`quasis`),c.push("`"),(0,o.concat)(c).lockIndentTail();case`TaggedTemplateExpression`:return c.push(e.call(a,`tag`)),s.typeParameters&&c.push(e.call(a,`typeParameters`)),c.push(e.call(a,`quasi`)),(0,o.concat)(c);case`Node`:case`Printable`:case`SourceLocation`:case`Position`:case`Statement`:case`Function`:case`Pattern`:case`Expression`:case`Declaration`:case`Specifier`:case`NamedSpecifier`:case`Comment`:case`Flow`:case`FlowType`:case`FlowPredicate`:case`MemberTypeAnnotation`:case`Type`:case`TSHasOptionalTypeParameterInstantiation`:case`TSHasOptionalTypeParameters`:case`TSHasOptionalTypeAnnotation`:case`ChainElement`:throw Error(`unprintable type: `+JSON.stringify(s.type));case`CommentBlock`:case`Block`:return(0,o.concat)([`/*`,(0,o.fromString)(s.value,i),`*/`]);case`CommentLine`:case`Line`:return(0,o.concat)([`//`,(0,o.fromString)(s.value,i)]);case`TypeAnnotation`:return s.typeAnnotation?(s.typeAnnotation.type!==`FunctionTypeAnnotation`&&c.push(`: `),c.push(e.call(a,`typeAnnotation`)),(0,o.concat)(c)):(0,o.fromString)(``);case`ExistentialTypeParam`:case`ExistsTypeAnnotation`:return(0,o.fromString)(`*`,i);case`EmptyTypeAnnotation`:return(0,o.fromString)(`empty`,i);case`AnyTypeAnnotation`:return(0,o.fromString)(`any`,i);case`MixedTypeAnnotation`:return(0,o.fromString)(`mixed`,i);case`ArrayTypeAnnotation`:return(0,o.concat)([e.call(a,`elementType`),`[]`]);case`TupleTypeAnnotation`:var Ae=e.map(a,`types`),ue=(0,o.fromString)(`, `).join(Ae),H=ue.getLineLength(1)<=i.wrapColumn;return H?i.arrayBracketSpacing?c.push(`[ `):c.push(`[`):c.push(`[
@@ -98,24 +98,24 @@ while`),c.push(` (`,e.call(a,`test`),`);`),(0,o.concat)(c);case`DoExpression`:va
98
98
  `,l,`
99
99
  }`):t.objectCurlySpacing?i.push(`{ `,l,` }`):i.push(`{`,l,`}`)}}else i.push(a?`{ `:`{`,(0,o.fromString)(`, `).join(e.map(n,`specifiers`)),a?` }`:`}`);r.source&&i.push(` from `,e.call(n,`source`),O(e,t,n))}var d=(0,o.concat)(i);return A(d)!==`;`&&!(r.declaration&&(r.declaration.type===`FunctionDeclaration`||r.declaration.type===`ClassDeclaration`||r.declaration.type===`TSModuleDeclaration`||r.declaration.type===`TSInterfaceDeclaration`||r.declaration.type===`TSEnumDeclaration`))&&(d=(0,o.concat)([d,`;`])),d}x(ee,`printExportDeclaration`);function k(e,t){var r=l.getParentExportDeclaration(e);return r?(0,n.default)(r.type===`DeclareExportDeclaration`):t.unshift(`declare `),(0,o.concat)(t)}x(k,`printFlowDeclaration`);function te(e,t){return e.call(function(e){var n=e.getValue();return n?n===`plus`?(0,o.fromString)(`+`):n===`minus`?(0,o.fromString)(`-`):t(e):(0,o.fromString)(``)},`variance`)}x(te,`printVariance`);function ne(e,t){return e.length>1?(0,o.concat)([` `,e]):(0,o.concat)([`
100
100
  `,ie(e).indent(t.tabWidth)])}x(ne,`adjustClause`);function A(e){var t=e.lastPos();do{var n=e.charAt(t);if(/\S/.test(n))return n}while(e.prevPos(t))}x(A,`lastNonSpaceCharacter`);function j(e){return A(e)===`}`}x(j,`endsWithBrace`);function M(e){return e.replace(/['"]/g,function(e){return e===`"`?`'`:`"`})}x(M,`swapQuotes`);function N(e){var t=r.getFieldValue(e,`value`),n=r.getFieldValue(e,`extra`);if(n&&typeof n.raw==`string`&&t==n.rawValue)return n.raw;if(e.type===`Literal`){var i=e.raw;if(typeof i==`string`&&t==i)return i}}x(N,`getPossibleRaw`);function P(e){return JSON.stringify(e).replace(/[\u2028\u2029]/g,function(e){return`\\u`+e.charCodeAt(0).toString(16)})}x(P,`jsSafeStringify`);function re(e,t){switch(d.assert(e),t.quote){case`auto`:var n=P(e),r=M(P(M(e)));return n.length>r.length?r:n;case`single`:return M(P(M(e)));default:return P(e)}}x(re,`nodeStr`);function ie(e){var t=A(e);return!t||`
101
- };`.indexOf(t)<0?(0,o.concat)([e,`;`]):e}x(ie,`maybeAddSemicolon`)}}),Rn=E({"../../node_modules/.pnpm/recast@0.23.11/node_modules/recast/main.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.run=e.prettyPrint=e.print=e.visit=e.types=e.parse=void 0;var t=(G(),C(U)),n=t.__importDefault(b(`fs`));e.types=t.__importStar(mn());var r=Pn();Object.defineProperty(e,`parse`,{enumerable:!0,get:x(function(){return r.parse},`get`)});var i=Ln(),a=mn();Object.defineProperty(e,`visit`,{enumerable:!0,get:x(function(){return a.visit},`get`)});function o(e,t){return new i.Printer(t).print(e)}x(o,`print`),e.print=o;function s(e,t){return new i.Printer(t).printGenerically(e)}x(s,`prettyPrint`),e.prettyPrint=s;function c(e,t){return l(process.argv[2],e,t)}x(c,`run`),e.run=c;function l(e,t,r){n.default.readFile(e,`utf-8`,function(e,n){if(e){console.error(e);return}d(n,t,r)})}x(l,`runFile`);function u(e){process.stdout.write(e)}x(u,`defaultWriteback`);function d(e,t,n){var i=n&&n.writeback||u;t((0,r.parse)(e,n),function(e){i(o(e,n).code)})}x(d,`runString`)}}),zn=E({"../../node_modules/.pnpm/recast@0.23.11/node_modules/recast/parsers/_babel_options.js"(e){Object.defineProperty(e,`__esModule`,{value:!0});var t=Dn();function n(e){return{sourceType:(0,t.getOption)(e,`sourceType`,`module`),strictMode:(0,t.getOption)(e,`strictMode`,!1),allowImportExportEverywhere:!0,allowReturnOutsideFunction:!0,startLine:1,tokens:!0,plugins:[`asyncGenerators`,`bigInt`,`classPrivateMethods`,`classPrivateProperties`,`classProperties`,`classStaticBlock`,`decimal`,`decorators-legacy`,`doExpressions`,`dynamicImport`,`exportDefaultFrom`,`exportExtensions`,`exportNamespaceFrom`,`functionBind`,`functionSent`,`importAssertions`,`importMeta`,`nullishCoalescingOperator`,`numericSeparator`,`objectRestSpread`,`optionalCatchBinding`,`optionalChaining`,[`pipelineOperator`,{proposal:`minimal`}],[`recordAndTuple`,{syntaxType:`hash`}],`throwExpressions`,`topLevelAwait`,`v8intrinsic`]}}x(n,`getBabelOptions`),e.default=n}}),Bn=E({"../../node_modules/.pnpm/@babel+parser@7.26.3/node_modules/@babel/parser/lib/index.js"(e){Object.defineProperty(e,`__esModule`,{value:!0});function t(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.includes(r))continue;n[r]=e[r]}return n}x(t,`_objectWithoutPropertiesLoose`);var n=class{static{x(this,`Position`)}constructor(e,t,n){this.line=void 0,this.column=void 0,this.index=void 0,this.line=e,this.column=t,this.index=n}},r=class{static{x(this,`SourceLocation`)}constructor(e,t){this.start=void 0,this.end=void 0,this.filename=void 0,this.identifierName=void 0,this.start=e,this.end=t}};function i(e,t){let{line:r,column:i,index:a}=e;return new n(r,i+t,a+t)}x(i,`createPositionWithColumnOffset`);var a=`BABEL_PARSER_SOURCETYPE_MODULE_REQUIRED`,o={ImportMetaOutsideModule:{message:`import.meta may appear only with 'sourceType: "module"'`,code:a},ImportOutsideModule:{message:`'import' and 'export' may appear only with 'sourceType: "module"'`,code:a}},s={ArrayPattern:`array destructuring pattern`,AssignmentExpression:`assignment expression`,AssignmentPattern:`assignment expression`,ArrowFunctionExpression:`arrow function expression`,ConditionalExpression:`conditional expression`,CatchClause:`catch clause`,ForOfStatement:`for-of statement`,ForInStatement:`for-in statement`,ForStatement:`for-loop`,FormalParameters:`function parameter list`,Identifier:`identifier`,ImportSpecifier:`import specifier`,ImportDefaultSpecifier:`import default specifier`,ImportNamespaceSpecifier:`import namespace specifier`,ObjectPattern:`object destructuring pattern`,ParenthesizedExpression:`parenthesized expression`,RestElement:`rest element`,UpdateExpression:{true:`prefix operation`,false:`postfix operation`},VariableDeclarator:`variable declaration`,YieldExpression:`yield expression`},c=x(e=>e.type===`UpdateExpression`?s.UpdateExpression[`${e.prefix}`]:s[e.type],`toNodeDescription`),l={AccessorIsGenerator:x(({kind:e})=>`A ${e}ter cannot be a generator.`,`AccessorIsGenerator`),ArgumentsInClass:`'arguments' is only allowed in functions and class methods.`,AsyncFunctionInSingleStatementContext:`Async functions can only be declared at the top level or inside a block.`,AwaitBindingIdentifier:`Can not use 'await' as identifier inside an async function.`,AwaitBindingIdentifierInStaticBlock:`Can not use 'await' as identifier inside a static block.`,AwaitExpressionFormalParameter:`'await' is not allowed in async function parameters.`,AwaitUsingNotInAsyncContext:`'await using' is only allowed within async functions and at the top levels of modules.`,AwaitNotInAsyncContext:`'await' is only allowed within async functions and at the top levels of modules.`,AwaitNotInAsyncFunction:`'await' is only allowed within async functions.`,BadGetterArity:`A 'get' accessor must not have any formal parameters.`,BadSetterArity:`A 'set' accessor must have exactly one formal parameter.`,BadSetterRestParameter:`A 'set' accessor function argument must not be a rest parameter.`,ConstructorClassField:`Classes may not have a field named 'constructor'.`,ConstructorClassPrivateField:`Classes may not have a private field named '#constructor'.`,ConstructorIsAccessor:`Class constructor may not be an accessor.`,ConstructorIsAsync:`Constructor can't be an async function.`,ConstructorIsGenerator:`Constructor can't be a generator.`,DeclarationMissingInitializer:x(({kind:e})=>`Missing initializer in ${e} declaration.`,`DeclarationMissingInitializer`),DecoratorArgumentsOutsideParentheses:`Decorator arguments must be moved inside parentheses: use '@(decorator(args))' instead of '@(decorator)(args)'.`,DecoratorBeforeExport:`Decorators must be placed *before* the 'export' keyword. Remove the 'decoratorsBeforeExport: true' option to use the 'export @decorator class {}' syntax.`,DecoratorsBeforeAfterExport:`Decorators can be placed *either* before or after the 'export' keyword, but not in both locations at the same time.`,DecoratorConstructor:`Decorators can't be used with a constructor. Did you mean '@dec class { ... }'?`,DecoratorExportClass:`Decorators must be placed *after* the 'export' keyword. Remove the 'decoratorsBeforeExport: false' option to use the '@decorator export class {}' syntax.`,DecoratorSemicolon:`Decorators must not be followed by a semicolon.`,DecoratorStaticBlock:`Decorators can't be used with a static block.`,DeferImportRequiresNamespace:'Only `import defer * as x from "./module"` is valid.',DeletePrivateField:`Deleting a private field is not allowed.`,DestructureNamedImport:`ES2015 named imports do not destructure. Use another statement for destructuring after the import.`,DuplicateConstructor:`Duplicate constructor in the same class.`,DuplicateDefaultExport:`Only one default export allowed per module.`,DuplicateExport:x(({exportName:e})=>`\`${e}\` has already been exported. Exported identifiers must be unique.`,`DuplicateExport`),DuplicateProto:`Redefinition of __proto__ property.`,DuplicateRegExpFlags:`Duplicate regular expression flag.`,DynamicImportPhaseRequiresImportExpressions:x(({phase:e})=>`'import.${e}(...)' can only be parsed when using the 'createImportExpressions' option.`,`DynamicImportPhaseRequiresImportExpressions`),ElementAfterRest:`Rest element must be last element.`,EscapedCharNotAnIdentifier:`Invalid Unicode escape.`,ExportBindingIsString:x(({localName:e,exportName:t})=>`A string literal cannot be used as an exported binding without \`from\`.
101
+ };`.indexOf(t)<0?(0,o.concat)([e,`;`]):e}x(ie,`maybeAddSemicolon`)}}),zn=E({"../../node_modules/.pnpm/recast@0.23.11/node_modules/recast/main.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.run=e.prettyPrint=e.print=e.visit=e.types=e.parse=void 0;var t=(G(),C(U)),n=t.__importDefault(b(`fs`));e.types=t.__importStar(hn());var r=Fn();Object.defineProperty(e,`parse`,{enumerable:!0,get:x(function(){return r.parse},`get`)});var i=Rn(),a=hn();Object.defineProperty(e,`visit`,{enumerable:!0,get:x(function(){return a.visit},`get`)});function o(e,t){return new i.Printer(t).print(e)}x(o,`print`),e.print=o;function s(e,t){return new i.Printer(t).printGenerically(e)}x(s,`prettyPrint`),e.prettyPrint=s;function c(e,t){return l(process.argv[2],e,t)}x(c,`run`),e.run=c;function l(e,t,r){n.default.readFile(e,`utf-8`,function(e,n){if(e){console.error(e);return}d(n,t,r)})}x(l,`runFile`);function u(e){process.stdout.write(e)}x(u,`defaultWriteback`);function d(e,t,n){var i=n&&n.writeback||u;t((0,r.parse)(e,n),function(e){i(o(e,n).code)})}x(d,`runString`)}}),Bn=E({"../../node_modules/.pnpm/recast@0.23.11/node_modules/recast/parsers/_babel_options.js"(e){Object.defineProperty(e,`__esModule`,{value:!0});var t=On();function n(e){return{sourceType:(0,t.getOption)(e,`sourceType`,`module`),strictMode:(0,t.getOption)(e,`strictMode`,!1),allowImportExportEverywhere:!0,allowReturnOutsideFunction:!0,startLine:1,tokens:!0,plugins:[`asyncGenerators`,`bigInt`,`classPrivateMethods`,`classPrivateProperties`,`classProperties`,`classStaticBlock`,`decimal`,`decorators-legacy`,`doExpressions`,`dynamicImport`,`exportDefaultFrom`,`exportExtensions`,`exportNamespaceFrom`,`functionBind`,`functionSent`,`importAssertions`,`importMeta`,`nullishCoalescingOperator`,`numericSeparator`,`objectRestSpread`,`optionalCatchBinding`,`optionalChaining`,[`pipelineOperator`,{proposal:`minimal`}],[`recordAndTuple`,{syntaxType:`hash`}],`throwExpressions`,`topLevelAwait`,`v8intrinsic`]}}x(n,`getBabelOptions`),e.default=n}}),Vn=E({"../../node_modules/.pnpm/@babel+parser@7.26.3/node_modules/@babel/parser/lib/index.js"(e){Object.defineProperty(e,`__esModule`,{value:!0});function t(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.includes(r))continue;n[r]=e[r]}return n}x(t,`_objectWithoutPropertiesLoose`);var n=class{static{x(this,`Position`)}constructor(e,t,n){this.line=void 0,this.column=void 0,this.index=void 0,this.line=e,this.column=t,this.index=n}},r=class{static{x(this,`SourceLocation`)}constructor(e,t){this.start=void 0,this.end=void 0,this.filename=void 0,this.identifierName=void 0,this.start=e,this.end=t}};function i(e,t){let{line:r,column:i,index:a}=e;return new n(r,i+t,a+t)}x(i,`createPositionWithColumnOffset`);var a=`BABEL_PARSER_SOURCETYPE_MODULE_REQUIRED`,o={ImportMetaOutsideModule:{message:`import.meta may appear only with 'sourceType: "module"'`,code:a},ImportOutsideModule:{message:`'import' and 'export' may appear only with 'sourceType: "module"'`,code:a}},s={ArrayPattern:`array destructuring pattern`,AssignmentExpression:`assignment expression`,AssignmentPattern:`assignment expression`,ArrowFunctionExpression:`arrow function expression`,ConditionalExpression:`conditional expression`,CatchClause:`catch clause`,ForOfStatement:`for-of statement`,ForInStatement:`for-in statement`,ForStatement:`for-loop`,FormalParameters:`function parameter list`,Identifier:`identifier`,ImportSpecifier:`import specifier`,ImportDefaultSpecifier:`import default specifier`,ImportNamespaceSpecifier:`import namespace specifier`,ObjectPattern:`object destructuring pattern`,ParenthesizedExpression:`parenthesized expression`,RestElement:`rest element`,UpdateExpression:{true:`prefix operation`,false:`postfix operation`},VariableDeclarator:`variable declaration`,YieldExpression:`yield expression`},c=x(e=>e.type===`UpdateExpression`?s.UpdateExpression[`${e.prefix}`]:s[e.type],`toNodeDescription`),l={AccessorIsGenerator:x(({kind:e})=>`A ${e}ter cannot be a generator.`,`AccessorIsGenerator`),ArgumentsInClass:`'arguments' is only allowed in functions and class methods.`,AsyncFunctionInSingleStatementContext:`Async functions can only be declared at the top level or inside a block.`,AwaitBindingIdentifier:`Can not use 'await' as identifier inside an async function.`,AwaitBindingIdentifierInStaticBlock:`Can not use 'await' as identifier inside a static block.`,AwaitExpressionFormalParameter:`'await' is not allowed in async function parameters.`,AwaitUsingNotInAsyncContext:`'await using' is only allowed within async functions and at the top levels of modules.`,AwaitNotInAsyncContext:`'await' is only allowed within async functions and at the top levels of modules.`,AwaitNotInAsyncFunction:`'await' is only allowed within async functions.`,BadGetterArity:`A 'get' accessor must not have any formal parameters.`,BadSetterArity:`A 'set' accessor must have exactly one formal parameter.`,BadSetterRestParameter:`A 'set' accessor function argument must not be a rest parameter.`,ConstructorClassField:`Classes may not have a field named 'constructor'.`,ConstructorClassPrivateField:`Classes may not have a private field named '#constructor'.`,ConstructorIsAccessor:`Class constructor may not be an accessor.`,ConstructorIsAsync:`Constructor can't be an async function.`,ConstructorIsGenerator:`Constructor can't be a generator.`,DeclarationMissingInitializer:x(({kind:e})=>`Missing initializer in ${e} declaration.`,`DeclarationMissingInitializer`),DecoratorArgumentsOutsideParentheses:`Decorator arguments must be moved inside parentheses: use '@(decorator(args))' instead of '@(decorator)(args)'.`,DecoratorBeforeExport:`Decorators must be placed *before* the 'export' keyword. Remove the 'decoratorsBeforeExport: true' option to use the 'export @decorator class {}' syntax.`,DecoratorsBeforeAfterExport:`Decorators can be placed *either* before or after the 'export' keyword, but not in both locations at the same time.`,DecoratorConstructor:`Decorators can't be used with a constructor. Did you mean '@dec class { ... }'?`,DecoratorExportClass:`Decorators must be placed *after* the 'export' keyword. Remove the 'decoratorsBeforeExport: false' option to use the '@decorator export class {}' syntax.`,DecoratorSemicolon:`Decorators must not be followed by a semicolon.`,DecoratorStaticBlock:`Decorators can't be used with a static block.`,DeferImportRequiresNamespace:'Only `import defer * as x from "./module"` is valid.',DeletePrivateField:`Deleting a private field is not allowed.`,DestructureNamedImport:`ES2015 named imports do not destructure. Use another statement for destructuring after the import.`,DuplicateConstructor:`Duplicate constructor in the same class.`,DuplicateDefaultExport:`Only one default export allowed per module.`,DuplicateExport:x(({exportName:e})=>`\`${e}\` has already been exported. Exported identifiers must be unique.`,`DuplicateExport`),DuplicateProto:`Redefinition of __proto__ property.`,DuplicateRegExpFlags:`Duplicate regular expression flag.`,DynamicImportPhaseRequiresImportExpressions:x(({phase:e})=>`'import.${e}(...)' can only be parsed when using the 'createImportExpressions' option.`,`DynamicImportPhaseRequiresImportExpressions`),ElementAfterRest:`Rest element must be last element.`,EscapedCharNotAnIdentifier:`Invalid Unicode escape.`,ExportBindingIsString:x(({localName:e,exportName:t})=>`A string literal cannot be used as an exported binding without \`from\`.
102
102
  - Did you mean \`export { '${e}' as '${t}' } from 'some-module'\`?`,`ExportBindingIsString`),ExportDefaultFromAsIdentifier:`'from' is not allowed as an identifier after 'export default'.`,ForInOfLoopInitializer:x(({type:e})=>`'${e===`ForInStatement`?`for-in`:`for-of`}' loop variable declaration may not have an initializer.`,`ForInOfLoopInitializer`),ForInUsing:`For-in loop may not start with 'using' declaration.`,ForOfAsync:`The left-hand side of a for-of loop may not be 'async'.`,ForOfLet:`The left-hand side of a for-of loop may not start with 'let'.`,GeneratorInSingleStatementContext:`Generators can only be declared at the top level or inside a block.`,IllegalBreakContinue:x(({type:e})=>`Unsyntactic ${e===`BreakStatement`?`break`:`continue`}.`,`IllegalBreakContinue`),IllegalLanguageModeDirective:`Illegal 'use strict' directive in function with non-simple parameter list.`,IllegalReturn:`'return' outside of function.`,ImportAttributesUseAssert:"The `assert` keyword in import attributes is deprecated and it has been replaced by the `with` keyword. You can enable the `deprecatedImportAssert` parser plugin to suppress this error.",ImportBindingIsString:x(({importName:e})=>`A string literal cannot be used as an imported binding.
103
- - Did you mean \`import { "${e}" as foo }\`?`,`ImportBindingIsString`),ImportCallArity:"`import()` requires exactly one or two arguments.",ImportCallNotNewExpression:`Cannot use new with import(...).`,ImportCallSpreadArgument:"`...` is not allowed in `import()`.",ImportJSONBindingNotDefault:"A JSON module can only be imported with `default`.",ImportReflectionHasAssertion:"`import module x` cannot have assertions.",ImportReflectionNotBinding:'Only `import module x from "./module"` is valid.',IncompatibleRegExpUVFlags:`The 'u' and 'v' regular expression flags cannot be enabled at the same time.`,InvalidBigIntLiteral:`Invalid BigIntLiteral.`,InvalidCodePoint:`Code point out of bounds.`,InvalidCoverInitializedName:`Invalid shorthand property initializer.`,InvalidDecimal:`Invalid decimal.`,InvalidDigit:x(({radix:e})=>`Expected number in radix ${e}.`,`InvalidDigit`),InvalidEscapeSequence:`Bad character escape sequence.`,InvalidEscapeSequenceTemplate:`Invalid escape sequence in template.`,InvalidEscapedReservedWord:x(({reservedWord:e})=>`Escape sequence in keyword ${e}.`,`InvalidEscapedReservedWord`),InvalidIdentifier:x(({identifierName:e})=>`Invalid identifier ${e}.`,`InvalidIdentifier`),InvalidLhs:x(({ancestor:e})=>`Invalid left-hand side in ${c(e)}.`,`InvalidLhs`),InvalidLhsBinding:x(({ancestor:e})=>`Binding invalid left-hand side in ${c(e)}.`,`InvalidLhsBinding`),InvalidLhsOptionalChaining:x(({ancestor:e})=>`Invalid optional chaining in the left-hand side of ${c(e)}.`,`InvalidLhsOptionalChaining`),InvalidNumber:`Invalid number.`,InvalidOrMissingExponent:`Floating-point numbers require a valid exponent after the 'e'.`,InvalidOrUnexpectedToken:x(({unexpected:e})=>`Unexpected character '${e}'.`,`InvalidOrUnexpectedToken`),InvalidParenthesizedAssignment:`Invalid parenthesized assignment pattern.`,InvalidPrivateFieldResolution:x(({identifierName:e})=>`Private name #${e} is not defined.`,`InvalidPrivateFieldResolution`),InvalidPropertyBindingPattern:`Binding member expression.`,InvalidRecordProperty:`Only properties and spread elements are allowed in record definitions.`,InvalidRestAssignmentPattern:`Invalid rest operator's argument.`,LabelRedeclaration:x(({labelName:e})=>`Label '${e}' is already declared.`,`LabelRedeclaration`),LetInLexicalBinding:`'let' is disallowed as a lexically bound name.`,LineTerminatorBeforeArrow:`No line break is allowed before '=>'.`,MalformedRegExpFlags:`Invalid regular expression flag.`,MissingClassName:`A class name is required.`,MissingEqInAssignment:`Only '=' operator can be used for specifying default value.`,MissingSemicolon:`Missing semicolon.`,MissingPlugin:x(({missingPlugin:e})=>`This experimental syntax requires enabling the parser plugin: ${e.map(e=>JSON.stringify(e)).join(`, `)}.`,`MissingPlugin`),MissingOneOfPlugins:x(({missingPlugin:e})=>`This experimental syntax requires enabling one of the following parser plugin(s): ${e.map(e=>JSON.stringify(e)).join(`, `)}.`,`MissingOneOfPlugins`),MissingUnicodeEscape:`Expecting Unicode escape sequence \\uXXXX.`,MixingCoalesceWithLogical:`Nullish coalescing operator(??) requires parens when mixing with logical operators.`,ModuleAttributeDifferentFromType:"The only accepted module attribute is `type`.",ModuleAttributeInvalidValue:`Only string literals are allowed as module attribute values.`,ModuleAttributesWithDuplicateKeys:x(({key:e})=>`Duplicate key "${e}" is not allowed in module attributes.`,`ModuleAttributesWithDuplicateKeys`),ModuleExportNameHasLoneSurrogate:x(({surrogateCharCode:e})=>`An export name cannot include a lone surrogate, found '\\u${e.toString(16)}'.`,`ModuleExportNameHasLoneSurrogate`),ModuleExportUndefined:x(({localName:e})=>`Export '${e}' is not defined.`,`ModuleExportUndefined`),MultipleDefaultsInSwitch:`Multiple default clauses.`,NewlineAfterThrow:`Illegal newline after throw.`,NoCatchOrFinally:`Missing catch or finally clause.`,NumberIdentifier:`Identifier directly after number.`,NumericSeparatorInEscapeSequence:`Numeric separators are not allowed inside unicode escape sequences or hex escape sequences.`,ObsoleteAwaitStar:`'await*' has been removed from the async functions proposal. Use Promise.all() instead.`,OptionalChainingNoNew:`Constructors in/after an Optional Chain are not allowed.`,OptionalChainingNoTemplate:`Tagged Template Literals are not allowed in optionalChain.`,OverrideOnConstructor:`'override' modifier cannot appear on a constructor declaration.`,ParamDupe:`Argument name clash.`,PatternHasAccessor:`Object pattern can't contain getter or setter.`,PatternHasMethod:`Object pattern can't contain methods.`,PrivateInExpectedIn:x(({identifierName:e})=>`Private names are only allowed in property accesses (\`obj.#${e}\`) or in \`in\` expressions (\`#${e} in obj\`).`,`PrivateInExpectedIn`),PrivateNameRedeclaration:x(({identifierName:e})=>`Duplicate private name #${e}.`,`PrivateNameRedeclaration`),RecordExpressionBarIncorrectEndSyntaxType:`Record expressions ending with '|}' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'bar'.`,RecordExpressionBarIncorrectStartSyntaxType:`Record expressions starting with '{|' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'bar'.`,RecordExpressionHashIncorrectStartSyntaxType:`Record expressions starting with '#{' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'hash'.`,RecordNoProto:`'__proto__' is not allowed in Record expressions.`,RestTrailingComma:`Unexpected trailing comma after rest element.`,SloppyFunction:`In non-strict mode code, functions can only be declared at top level or inside a block.`,SloppyFunctionAnnexB:`In non-strict mode code, functions can only be declared at top level, inside a block, or as the body of an if statement.`,SourcePhaseImportRequiresDefault:'Only `import source x from "./module"` is valid.',StaticPrototype:`Classes may not have static property named prototype.`,SuperNotAllowed:"`super()` is only valid inside a class constructor of a subclass. Maybe a typo in the method name ('constructor') or not extending another class?",SuperPrivateField:`Private fields can't be accessed on super.`,TrailingDecorator:`Decorators must be attached to a class element.`,TupleExpressionBarIncorrectEndSyntaxType:`Tuple expressions ending with '|]' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'bar'.`,TupleExpressionBarIncorrectStartSyntaxType:`Tuple expressions starting with '[|' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'bar'.`,TupleExpressionHashIncorrectStartSyntaxType:`Tuple expressions starting with '#[' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'hash'.`,UnexpectedArgumentPlaceholder:`Unexpected argument placeholder.`,UnexpectedAwaitAfterPipelineBody:`Unexpected "await" after pipeline body; await must have parentheses in minimal proposal.`,UnexpectedDigitAfterHash:`Unexpected digit after hash token.`,UnexpectedImportExport:`'import' and 'export' may only appear at the top level.`,UnexpectedKeyword:x(({keyword:e})=>`Unexpected keyword '${e}'.`,`UnexpectedKeyword`),UnexpectedLeadingDecorator:`Leading decorators must be attached to a class declaration.`,UnexpectedLexicalDeclaration:`Lexical declaration cannot appear in a single-statement context.`,UnexpectedNewTarget:"`new.target` can only be used in functions or class properties.",UnexpectedNumericSeparator:`A numeric separator is only allowed between two digits.`,UnexpectedPrivateField:`Unexpected private name.`,UnexpectedReservedWord:x(({reservedWord:e})=>`Unexpected reserved word '${e}'.`,`UnexpectedReservedWord`),UnexpectedSuper:`'super' is only allowed in object methods and classes.`,UnexpectedToken:x(({expected:e,unexpected:t})=>`Unexpected token${t?` '${t}'.`:``}${e?`, expected "${e}"`:``}`,`UnexpectedToken`),UnexpectedTokenUnaryExponentiation:`Illegal expression. Wrap left hand side or entire exponentiation in parentheses.`,UnexpectedUsingDeclaration:"Using declaration cannot appear in the top level when source type is `script`.",UnsupportedBind:`Binding should be performed on object property.`,UnsupportedDecoratorExport:`A decorated export must export a class declaration.`,UnsupportedDefaultExport:"Only expressions, functions or classes are allowed as the `default` export.",UnsupportedImport:"`import` can only be used in `import()` or `import.meta`.",UnsupportedMetaProperty:x(({target:e,onlyValidPropertyName:t})=>`The only valid meta property for ${e} is ${e}.${t}.`,`UnsupportedMetaProperty`),UnsupportedParameterDecorator:`Decorators cannot be used to decorate parameters.`,UnsupportedPropertyDecorator:`Decorators cannot be used to decorate object literal properties.`,UnsupportedSuper:`'super' can only be used with function calls (i.e. super()) or in property accesses (i.e. super.prop or super[prop]).`,UnterminatedComment:`Unterminated comment.`,UnterminatedRegExp:`Unterminated regular expression.`,UnterminatedString:`Unterminated string constant.`,UnterminatedTemplate:`Unterminated template.`,UsingDeclarationExport:`Using declaration cannot be exported.`,UsingDeclarationHasBindingPattern:`Using declaration cannot have destructuring patterns.`,VarRedeclaration:x(({identifierName:e})=>`Identifier '${e}' has already been declared.`,`VarRedeclaration`),YieldBindingIdentifier:`Can not use 'yield' as identifier inside a generator.`,YieldInParameter:`Yield expression is not allowed in formal parameters.`,ZeroDigitNumericSeparator:`Numeric separator can not be used after leading 0.`},u={StrictDelete:`Deleting local variable in strict mode.`,StrictEvalArguments:x(({referenceName:e})=>`Assigning to '${e}' in strict mode.`,`StrictEvalArguments`),StrictEvalArgumentsBinding:x(({bindingName:e})=>`Binding '${e}' in strict mode.`,`StrictEvalArgumentsBinding`),StrictFunction:`In strict mode code, functions can only be declared at top level or inside a block.`,StrictNumericEscape:`The only valid numeric escape in strict mode is '\\0'.`,StrictOctalLiteral:`Legacy octal literals are not allowed in strict mode.`,StrictWith:`'with' in strict mode.`},d=new Set([`ArrowFunctionExpression`,`AssignmentExpression`,`ConditionalExpression`,`YieldExpression`]),f={PipeBodyIsTighter:`Unexpected yield after pipeline body; any yield expression acting as Hack-style pipe body must be parenthesized due to its loose operator precedence.`,PipeTopicRequiresHackPipes:`Topic reference is used, but the pipelineOperator plugin was not passed a "proposal": "hack" or "smart" option.`,PipeTopicUnbound:`Topic reference is unbound; it must be inside a pipe body.`,PipeTopicUnconfiguredToken:x(({token:e})=>`Invalid topic token ${e}. In order to use ${e} as a topic reference, the pipelineOperator plugin must be configured with { "proposal": "hack", "topicToken": "${e}" }.`,`PipeTopicUnconfiguredToken`),PipeTopicUnused:`Hack-style pipe body does not contain a topic reference; Hack-style pipes must use topic at least once.`,PipeUnparenthesizedBody:x(({type:e})=>`Hack-style pipe body cannot be an unparenthesized ${c({type:e})}; please wrap it in parentheses.`,`PipeUnparenthesizedBody`),PipelineBodyNoArrow:`Unexpected arrow "=>" after pipeline body; arrow function in pipeline body must be parenthesized.`,PipelineBodySequenceExpression:`Pipeline body may not be a comma-separated sequence expression.`,PipelineHeadSequenceExpression:`Pipeline head should not be a comma-separated sequence expression.`,PipelineTopicUnused:`Pipeline is in topic style but does not use topic reference.`,PrimaryTopicNotAllowed:`Topic reference was used in a lexical context without topic binding.`,PrimaryTopicRequiresSmartPipeline:`Topic reference is used, but the pipelineOperator plugin was not passed a "proposal": "hack" or "smart" option.`},p=[`message`];function m(e,t,n){Object.defineProperty(e,t,{enumerable:!1,configurable:!0,value:n})}x(m,`defineHidden`);function h({toMessage:e,code:t,reasonCode:r,syntaxPlugin:i}){let a=r===`MissingPlugin`||r===`MissingOneOfPlugins`;{let e={AccessorCannotDeclareThisParameter:`AccesorCannotDeclareThisParameter`,AccessorCannotHaveTypeParameters:`AccesorCannotHaveTypeParameters`,ConstInitializerMustBeStringOrNumericLiteralOrLiteralEnumReference:`ConstInitiailizerMustBeStringOrNumericLiteralOrLiteralEnumReference`,SetAccessorCannotHaveOptionalParameter:`SetAccesorCannotHaveOptionalParameter`,SetAccessorCannotHaveRestParameter:`SetAccesorCannotHaveRestParameter`,SetAccessorCannotHaveReturnType:`SetAccesorCannotHaveReturnType`};e[r]&&(r=e[r])}return x(function o(s,c){let l=SyntaxError();return l.code=t,l.reasonCode=r,l.loc=s,l.pos=s.index,l.syntaxPlugin=i,a&&(l.missingPlugin=c.missingPlugin),m(l,`clone`,x(function(e={}){let{line:t,column:r,index:i}=e.loc??s;return o(new n(t,r,i),Object.assign({},c,e.details))},`clone`)),m(l,`details`,c),Object.defineProperty(l,`message`,{configurable:!0,get(){let t=`${e(c)} (${s.line}:${s.column})`;return this.message=t,t},set(e){Object.defineProperty(this,`message`,{value:e,writable:!0})}}),l},`constructor`)}x(h,`toParseErrorConstructor`);function g(e,n){if(Array.isArray(e))return t=>g(t,e[0]);let r={};for(let i of Object.keys(e)){let a=e[i],o=typeof a==`string`?{message:x(()=>a,`message`)}:typeof a==`function`?{message:a}:a,{message:s}=o,c=t(o,p);r[i]=h(Object.assign({code:`BABEL_PARSER_SYNTAX_ERROR`,reasonCode:i,toMessage:typeof s==`string`?()=>s:s},n?{syntaxPlugin:n}:{},c))}return r}x(g,`ParseErrorEnum`);var _=Object.assign({},g(o),g(l),g(u),g`pipelineOperator`(f)),{defineProperty:v}=Object,y=x((e,t)=>{e&&v(e,t,{enumerable:!1,value:e[t]})},`toUnenumerable`);function b(e){return y(e.loc.start,`index`),y(e.loc.end,`index`),e}x(b,`toESTreeLocation`);var S=x(e=>class extends e{static{x(this,`ESTreeParserMixin`)}parse(){let e=b(super.parse());return this.options.tokens&&(e.tokens=e.tokens.map(b)),e}parseRegExpLiteral({pattern:e,flags:t}){let n=null;try{n=new RegExp(e,t)}catch{}let r=this.estreeParseLiteral(n);return r.regex={pattern:e,flags:t},r}parseBigIntLiteral(e){let t;try{t=BigInt(e)}catch{t=null}let n=this.estreeParseLiteral(t);return n.bigint=String(n.value||e),n}parseDecimalLiteral(e){let t=this.estreeParseLiteral(null);return t.decimal=String(t.value||e),t}estreeParseLiteral(e){return this.parseLiteral(e,`Literal`)}parseStringLiteral(e){return this.estreeParseLiteral(e)}parseNumericLiteral(e){return this.estreeParseLiteral(e)}parseNullLiteral(){return this.estreeParseLiteral(null)}parseBooleanLiteral(e){return this.estreeParseLiteral(e)}directiveToStmt(e){let t=e.value;delete e.value,t.type=`Literal`,t.raw=t.extra.raw,t.value=t.extra.expressionValue;let n=e;return n.type=`ExpressionStatement`,n.expression=t,n.directive=t.extra.rawValue,delete t.extra,n}initFunction(e,t){super.initFunction(e,t),e.expression=!1}checkDeclaration(e){e!=null&&this.isObjectProperty(e)?this.checkDeclaration(e.value):super.checkDeclaration(e)}getObjectOrClassMethodParams(e){return e.value.params}isValidDirective(e){var t;return e.type===`ExpressionStatement`&&e.expression.type===`Literal`&&typeof e.expression.value==`string`&&!((t=e.expression.extra)!=null&&t.parenthesized)}parseBlockBody(e,t,n,r,i){super.parseBlockBody(e,t,n,r,i),e.body=e.directives.map(e=>this.directiveToStmt(e)).concat(e.body),delete e.directives}pushClassMethod(e,t,n,r,i,a){this.parseMethod(t,n,r,i,a,`ClassMethod`,!0),t.typeParameters&&(t.value.typeParameters=t.typeParameters,delete t.typeParameters),e.body.push(t)}parsePrivateName(){let e=super.parsePrivateName();return this.getPluginOption(`estree`,`classFeatures`)?this.convertPrivateNameToPrivateIdentifier(e):e}convertPrivateNameToPrivateIdentifier(e){let t=super.getPrivateNameSV(e);return e=e,delete e.id,e.name=t,e.type=`PrivateIdentifier`,e}isPrivateName(e){return this.getPluginOption(`estree`,`classFeatures`)?e.type===`PrivateIdentifier`:super.isPrivateName(e)}getPrivateNameSV(e){return this.getPluginOption(`estree`,`classFeatures`)?e.name:super.getPrivateNameSV(e)}parseLiteral(e,t){let n=super.parseLiteral(e,t);return n.raw=n.extra.raw,delete n.extra,n}parseFunctionBody(e,t,n=!1){super.parseFunctionBody(e,t,n),e.expression=e.body.type!==`BlockStatement`}parseMethod(e,t,n,r,i,a,o=!1){let s=this.startNode();return s.kind=e.kind,s=super.parseMethod(s,t,n,r,i,a,o),s.type=`FunctionExpression`,delete s.kind,e.value=s,a===`ClassPrivateMethod`&&(e.computed=!1),this.finishNode(e,`MethodDefinition`)}nameIsConstructor(e){return e.type===`Literal`?e.value===`constructor`:super.nameIsConstructor(e)}parseClassProperty(...e){let t=super.parseClassProperty(...e);return this.getPluginOption(`estree`,`classFeatures`)&&(t.type=`PropertyDefinition`),t}parseClassPrivateProperty(...e){let t=super.parseClassPrivateProperty(...e);return this.getPluginOption(`estree`,`classFeatures`)?(t.type=`PropertyDefinition`,t.computed=!1,t):t}parseObjectMethod(e,t,n,r,i){let a=super.parseObjectMethod(e,t,n,r,i);return a&&(a.type=`Property`,a.kind===`method`&&(a.kind=`init`),a.shorthand=!1),a}parseObjectProperty(e,t,n,r){let i=super.parseObjectProperty(e,t,n,r);return i&&(i.kind=`init`,i.type=`Property`),i}isValidLVal(e,t,n){return e===`Property`?`value`:super.isValidLVal(e,t,n)}isAssignable(e,t){return e!=null&&this.isObjectProperty(e)?this.isAssignable(e.value,t):super.isAssignable(e,t)}toAssignable(e,t=!1){if(e!=null&&this.isObjectProperty(e)){let{key:n,value:r}=e;this.isPrivateName(n)&&this.classScope.usePrivateName(this.getPrivateNameSV(n),n.loc.start),this.toAssignable(r,t)}else super.toAssignable(e,t)}toAssignableObjectExpressionProp(e,t,n){e.type===`Property`&&(e.kind===`get`||e.kind===`set`)?this.raise(_.PatternHasAccessor,e.key):e.type===`Property`&&e.method?this.raise(_.PatternHasMethod,e.key):super.toAssignableObjectExpressionProp(e,t,n)}finishCallExpression(e,t){let n=super.finishCallExpression(e,t);return n.callee.type===`Import`&&(n.type=`ImportExpression`,n.source=n.arguments[0],n.options=n.arguments[1]??null,n.attributes=n.arguments[1]??null,delete n.arguments,delete n.callee),n}toReferencedArguments(e){e.type!==`ImportExpression`&&super.toReferencedArguments(e)}parseExport(e,t){let n=this.state.lastTokStartLoc,r=super.parseExport(e,t);switch(r.type){case`ExportAllDeclaration`:r.exported=null;break;case`ExportNamedDeclaration`:r.specifiers.length===1&&r.specifiers[0].type===`ExportNamespaceSpecifier`&&(r.type=`ExportAllDeclaration`,r.exported=r.specifiers[0].exported,delete r.specifiers);case`ExportDefaultDeclaration`:{let{declaration:e}=r;e?.type===`ClassDeclaration`&&e.decorators?.length>0&&e.start===r.start&&this.resetStartLocation(r,n)}break}return r}parseSubscript(e,t,n,r){let i=super.parseSubscript(e,t,n,r);if(r.optionalChainMember){if((i.type===`OptionalMemberExpression`||i.type===`OptionalCallExpression`)&&(i.type=i.type.substring(8)),r.stop){let e=this.startNodeAtNode(i);return e.expression=i,this.finishNode(e,`ChainExpression`)}}else (i.type===`MemberExpression`||i.type===`CallExpression`)&&(i.optional=!1);return i}isOptionalMemberExpression(e){return e.type===`ChainExpression`?e.expression.type===`MemberExpression`:super.isOptionalMemberExpression(e)}hasPropertyAsPrivateName(e){return e.type===`ChainExpression`&&(e=e.expression),super.hasPropertyAsPrivateName(e)}isObjectProperty(e){return e.type===`Property`&&e.kind===`init`&&!e.method}isObjectMethod(e){return e.type===`Property`&&(e.method||e.kind===`get`||e.kind===`set`)}finishNodeAt(e,t,n){return b(super.finishNodeAt(e,t,n))}resetStartLocation(e,t){super.resetStartLocation(e,t),b(e)}resetEndLocation(e,t=this.state.lastTokEndLoc){super.resetEndLocation(e,t),b(e)}},`estree`),C=class{static{x(this,`TokContext`)}constructor(e,t){this.token=void 0,this.preserveSpace=void 0,this.token=e,this.preserveSpace=!!t}},w={brace:new C(`{`),j_oTag:new C(`<tag`),j_cTag:new C(`</tag`),j_expr:new C(`<tag>...</tag>`,!0)};w.template=new C("`",!0);var T=!0,E=!0,D=!0,O=!0,ee=!0,k=!0,te=class{static{x(this,`ExportedTokenType`)}constructor(e,t={}){this.label=void 0,this.keyword=void 0,this.beforeExpr=void 0,this.startsExpr=void 0,this.rightAssociative=void 0,this.isLoop=void 0,this.isAssign=void 0,this.prefix=void 0,this.postfix=void 0,this.binop=void 0,this.label=e,this.keyword=t.keyword,this.beforeExpr=!!t.beforeExpr,this.startsExpr=!!t.startsExpr,this.rightAssociative=!!t.rightAssociative,this.isLoop=!!t.isLoop,this.isAssign=!!t.isAssign,this.prefix=!!t.prefix,this.postfix=!!t.postfix,this.binop=t.binop==null?null:t.binop,this.updateContext=null}},ne=new Map;function A(e,t={}){t.keyword=e;let n=F(e,t);return ne.set(e,n),n}x(A,`createKeyword`);function j(e,t){return F(e,{beforeExpr:T,binop:t})}x(j,`createBinop`);var M=-1,N=[],P=[],re=[],ie=[],ae=[],oe=[];function F(e,t={}){return++M,P.push(e),re.push(t.binop??-1),ie.push(t.beforeExpr??!1),ae.push(t.startsExpr??!1),oe.push(t.prefix??!1),N.push(new te(e,t)),M}x(F,`createToken`);function I(e,t={}){return++M,ne.set(e,M),P.push(e),re.push(t.binop??-1),ie.push(t.beforeExpr??!1),ae.push(t.startsExpr??!1),oe.push(t.prefix??!1),N.push(new te(`name`,t)),M}x(I,`createKeywordLike`);var se={bracketL:F(`[`,{beforeExpr:T,startsExpr:E}),bracketHashL:F(`#[`,{beforeExpr:T,startsExpr:E}),bracketBarL:F(`[|`,{beforeExpr:T,startsExpr:E}),bracketR:F(`]`),bracketBarR:F(`|]`),braceL:F(`{`,{beforeExpr:T,startsExpr:E}),braceBarL:F(`{|`,{beforeExpr:T,startsExpr:E}),braceHashL:F(`#{`,{beforeExpr:T,startsExpr:E}),braceR:F(`}`),braceBarR:F(`|}`),parenL:F(`(`,{beforeExpr:T,startsExpr:E}),parenR:F(`)`),comma:F(`,`,{beforeExpr:T}),semi:F(`;`,{beforeExpr:T}),colon:F(`:`,{beforeExpr:T}),doubleColon:F(`::`,{beforeExpr:T}),dot:F(`.`),question:F(`?`,{beforeExpr:T}),questionDot:F(`?.`),arrow:F(`=>`,{beforeExpr:T}),template:F(`template`),ellipsis:F(`...`,{beforeExpr:T}),backQuote:F("`",{startsExpr:E}),dollarBraceL:F("${",{beforeExpr:T,startsExpr:E}),templateTail:F("...`",{startsExpr:E}),templateNonTail:F("...${",{beforeExpr:T,startsExpr:E}),at:F(`@`),hash:F(`#`,{startsExpr:E}),interpreterDirective:F(`#!...`),eq:F(`=`,{beforeExpr:T,isAssign:O}),assign:F(`_=`,{beforeExpr:T,isAssign:O}),slashAssign:F(`_=`,{beforeExpr:T,isAssign:O}),xorAssign:F(`_=`,{beforeExpr:T,isAssign:O}),moduloAssign:F(`_=`,{beforeExpr:T,isAssign:O}),incDec:F(`++/--`,{prefix:ee,postfix:k,startsExpr:E}),bang:F(`!`,{beforeExpr:T,prefix:ee,startsExpr:E}),tilde:F(`~`,{beforeExpr:T,prefix:ee,startsExpr:E}),doubleCaret:F(`^^`,{startsExpr:E}),doubleAt:F(`@@`,{startsExpr:E}),pipeline:j(`|>`,0),nullishCoalescing:j(`??`,1),logicalOR:j(`||`,1),logicalAND:j(`&&`,2),bitwiseOR:j(`|`,3),bitwiseXOR:j(`^`,4),bitwiseAND:j(`&`,5),equality:j(`==/!=/===/!==`,6),lt:j(`</>/<=/>=`,7),gt:j(`</>/<=/>=`,7),relational:j(`</>/<=/>=`,7),bitShift:j(`<</>>/>>>`,8),bitShiftL:j(`<</>>/>>>`,8),bitShiftR:j(`<</>>/>>>`,8),plusMin:F(`+/-`,{beforeExpr:T,binop:9,prefix:ee,startsExpr:E}),modulo:F(`%`,{binop:10,startsExpr:E}),star:F(`*`,{binop:10}),slash:j(`/`,10),exponent:F(`**`,{beforeExpr:T,binop:11,rightAssociative:!0}),_in:A(`in`,{beforeExpr:T,binop:7}),_instanceof:A(`instanceof`,{beforeExpr:T,binop:7}),_break:A(`break`),_case:A(`case`,{beforeExpr:T}),_catch:A(`catch`),_continue:A(`continue`),_debugger:A(`debugger`),_default:A(`default`,{beforeExpr:T}),_else:A(`else`,{beforeExpr:T}),_finally:A(`finally`),_function:A(`function`,{startsExpr:E}),_if:A(`if`),_return:A(`return`,{beforeExpr:T}),_switch:A(`switch`),_throw:A(`throw`,{beforeExpr:T,prefix:ee,startsExpr:E}),_try:A(`try`),_var:A(`var`),_const:A(`const`),_with:A(`with`),_new:A(`new`,{beforeExpr:T,startsExpr:E}),_this:A(`this`,{startsExpr:E}),_super:A(`super`,{startsExpr:E}),_class:A(`class`,{startsExpr:E}),_extends:A(`extends`,{beforeExpr:T}),_export:A(`export`),_import:A(`import`,{startsExpr:E}),_null:A(`null`,{startsExpr:E}),_true:A(`true`,{startsExpr:E}),_false:A(`false`,{startsExpr:E}),_typeof:A(`typeof`,{beforeExpr:T,prefix:ee,startsExpr:E}),_void:A(`void`,{beforeExpr:T,prefix:ee,startsExpr:E}),_delete:A(`delete`,{beforeExpr:T,prefix:ee,startsExpr:E}),_do:A(`do`,{isLoop:D,beforeExpr:T}),_for:A(`for`,{isLoop:D}),_while:A(`while`,{isLoop:D}),_as:I(`as`,{startsExpr:E}),_assert:I(`assert`,{startsExpr:E}),_async:I(`async`,{startsExpr:E}),_await:I(`await`,{startsExpr:E}),_defer:I(`defer`,{startsExpr:E}),_from:I(`from`,{startsExpr:E}),_get:I(`get`,{startsExpr:E}),_let:I(`let`,{startsExpr:E}),_meta:I(`meta`,{startsExpr:E}),_of:I(`of`,{startsExpr:E}),_sent:I(`sent`,{startsExpr:E}),_set:I(`set`,{startsExpr:E}),_source:I(`source`,{startsExpr:E}),_static:I(`static`,{startsExpr:E}),_using:I(`using`,{startsExpr:E}),_yield:I(`yield`,{startsExpr:E}),_asserts:I(`asserts`,{startsExpr:E}),_checks:I(`checks`,{startsExpr:E}),_exports:I(`exports`,{startsExpr:E}),_global:I(`global`,{startsExpr:E}),_implements:I(`implements`,{startsExpr:E}),_intrinsic:I(`intrinsic`,{startsExpr:E}),_infer:I(`infer`,{startsExpr:E}),_is:I(`is`,{startsExpr:E}),_mixins:I(`mixins`,{startsExpr:E}),_proto:I(`proto`,{startsExpr:E}),_require:I(`require`,{startsExpr:E}),_satisfies:I(`satisfies`,{startsExpr:E}),_keyof:I(`keyof`,{startsExpr:E}),_readonly:I(`readonly`,{startsExpr:E}),_unique:I(`unique`,{startsExpr:E}),_abstract:I(`abstract`,{startsExpr:E}),_declare:I(`declare`,{startsExpr:E}),_enum:I(`enum`,{startsExpr:E}),_module:I(`module`,{startsExpr:E}),_namespace:I(`namespace`,{startsExpr:E}),_interface:I(`interface`,{startsExpr:E}),_type:I(`type`,{startsExpr:E}),_opaque:I(`opaque`,{startsExpr:E}),name:F(`name`,{startsExpr:E}),placeholder:F(`%%`,{startsExpr:!0}),string:F(`string`,{startsExpr:E}),num:F(`num`,{startsExpr:E}),bigint:F(`bigint`,{startsExpr:E}),decimal:F(`decimal`,{startsExpr:E}),regexp:F(`regexp`,{startsExpr:E}),privateName:F(`#name`,{startsExpr:E}),eof:F(`eof`),jsxName:F(`jsxName`),jsxText:F(`jsxText`,{beforeExpr:!0}),jsxTagStart:F(`jsxTagStart`,{startsExpr:!0}),jsxTagEnd:F(`jsxTagEnd`)};function L(e){return e>=93&&e<=133}x(L,`tokenIsIdentifier`);function ce(e){return e<=92}x(ce,`tokenKeywordOrIdentifierIsKeyword`);function le(e){return e>=58&&e<=133}x(le,`tokenIsKeywordOrIdentifier`);function ue(e){return e>=58&&e<=137}x(ue,`tokenIsLiteralPropertyName`);function de(e){return ie[e]}x(de,`tokenComesBeforeExpression`);function fe(e){return ae[e]}x(fe,`tokenCanStartExpression`);function R(e){return e>=29&&e<=33}x(R,`tokenIsAssignment`);function pe(e){return e>=129&&e<=131}x(pe,`tokenIsFlowInterfaceOrTypeOrOpaque`);function me(e){return e>=90&&e<=92}x(me,`tokenIsLoop`);function he(e){return e>=58&&e<=92}x(he,`tokenIsKeyword`);function ge(e){return e>=39&&e<=59}x(ge,`tokenIsOperator`);function _e(e){return e===34}x(_e,`tokenIsPostfix`);function z(e){return oe[e]}x(z,`tokenIsPrefix`);function ve(e){return e>=121&&e<=123}x(ve,`tokenIsTSTypeOperator`);function B(e){return e>=124&&e<=130}x(B,`tokenIsTSDeclarationStart`);function ye(e){return P[e]}x(ye,`tokenLabelName`);function V(e){return re[e]}x(V,`tokenOperatorPrecedence`);function be(e){return e===57}x(be,`tokenIsRightAssociative`);function xe(e){return e>=24&&e<=25}x(xe,`tokenIsTemplate`);function Se(e){return N[e]}x(Se,`getExportedToken`),N[8].updateContext=e=>{e.pop()},N[5].updateContext=N[7].updateContext=N[23].updateContext=e=>{e.push(w.brace)},N[22].updateContext=e=>{e[e.length-1]===w.template?e.pop():e.push(w.template)},N[143].updateContext=e=>{e.push(w.j_expr,w.j_oTag)};var Ce=`ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽͿΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԯԱ-Ֆՙՠ-ֈא-תׯ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࡠ-ࡪࡰ-ࢇࢉ-ࢎࢠ-ࣉऄ-हऽॐक़-ॡॱ-ঀঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱৼਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡૹଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-హఽౘ-ౚౝౠౡಀಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೝೞೠೡೱೲഄ-ഌഎ-ഐഒ-ഺഽൎൔ-ൖൟ-ൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄຆ-ຊຌ-ຣລວ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏽᏸ-ᏽᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛸᜀ-ᜑᜟ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡸᢀ-ᢨᢪᢰ-ᣵᤀ-ᤞᥐ-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧉᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭌᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᲀ-ᲊᲐ-ᲺᲽ-Ჿᳩ-ᳬᳮ-ᳳᳵᳶᳺᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕ℘-ℝℤΩℨK-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞ々-〇〡-〩〱-〵〸-〼ぁ-ゖ゛-ゟァ-ヺー-ヿㄅ-ㄯㄱ-ㆎㆠ-ㆿㇰ-ㇿ㐀-䶿一-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚝꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-ꟍꟐꟑꟓꟕ-Ƛꟲ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꣽꣾꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꧠ-ꧤꧦ-ꧯꧺ-ꧾꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꩾ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꬰ-ꭚꭜ-ꭩꭰ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ`,we=`·̀-ͯ·҃-֑҇-ׇֽֿׁׂׅׄؐ-ًؚ-٩ٰۖ-ۜ۟-۪ۤۧۨ-ۭ۰-۹ܑܰ-݊ަ-ް߀-߉߫-߽߳ࠖ-࠙ࠛ-ࠣࠥ-ࠧࠩ-࡙࠭-࡛ࢗ-࢟࣊-ࣣ࣡-ःऺ-़ा-ॏ॑-ॗॢॣ०-९ঁ-ঃ়া-ৄেৈো-্ৗৢৣ০-৯৾ਁ-ਃ਼ਾ-ੂੇੈੋ-੍ੑ੦-ੱੵઁ-ઃ઼ા-ૅે-ૉો-્ૢૣ૦-૯ૺ-૿ଁ-ଃ଼ା-ୄେୈୋ-୍୕-ୗୢୣ୦-୯ஂா-ூெ-ைொ-்ௗ௦-௯ఀ-ఄ఼ా-ౄె-ైొ-్ౕౖౢౣ౦-౯ಁ-ಃ಼ಾ-ೄೆ-ೈೊ-್ೕೖೢೣ೦-೯ೳഀ-ഃ഻഼ാ-ൄെ-ൈൊ-്ൗൢൣ൦-൯ඁ-ඃ්ා-ුූෘ-ෟ෦-෯ෲෳัิ-ฺ็-๎๐-๙ັິ-ຼ່-໎໐-໙༘༙༠-༩༹༵༷༾༿ཱ-྄྆྇ྍ-ྗྙ-ྼ࿆ါ-ှ၀-၉ၖ-ၙၞ-ၠၢ-ၤၧ-ၭၱ-ၴႂ-ႍႏ-ႝ፝-፟፩-፱ᜒ-᜕ᜲ-᜴ᝒᝓᝲᝳ឴-៓៝០-៩᠋-᠍᠏-᠙ᢩᤠ-ᤫᤰ-᤻᥆-᥏᧐-᧚ᨗ-ᨛᩕ-ᩞ᩠-᩿᩼-᪉᪐-᪙᪰-᪽ᪿ-ᫎᬀ-ᬄ᬴-᭄᭐-᭙᭫-᭳ᮀ-ᮂᮡ-ᮭ᮰-᮹᯦-᯳ᰤ-᰷᱀-᱉᱐-᱙᳐-᳔᳒-᳨᳭᳴᳷-᳹᷀-᷿‌‍‿⁀⁔⃐-⃥⃜⃡-⃰⳯-⵿⳱ⷠ-〪ⷿ-゙゚〯・꘠-꘩꙯ꙴ-꙽ꚞꚟ꛰꛱ꠂ꠆ꠋꠣ-ꠧ꠬ꢀꢁꢴ-ꣅ꣐-꣙꣠-꣱ꣿ-꤉ꤦ-꤭ꥇ-꥓ꦀ-ꦃ꦳-꧀꧐-꧙ꧥ꧰-꧹ꨩ-ꨶꩃꩌꩍ꩐-꩙ꩻ-ꩽꪰꪲ-ꪴꪷꪸꪾ꪿꫁ꫫ-ꫯꫵ꫶ꯣ-ꯪ꯬꯭꯰-꯹ﬞ︀-️︠-︯︳︴﹍-﹏0-9_・`,Te=RegExp(`[`+Ce+`]`),Ee=RegExp(`[`+Ce+we+`]`);Ce=we=null;var De=[0,11,2,25,2,18,2,1,2,14,3,13,35,122,70,52,268,28,4,48,48,31,14,29,6,37,11,29,3,35,5,7,2,4,43,157,19,35,5,35,5,39,9,51,13,10,2,14,2,6,2,1,2,10,2,14,2,6,2,1,4,51,13,310,10,21,11,7,25,5,2,41,2,8,70,5,3,0,2,43,2,1,4,0,3,22,11,22,10,30,66,18,2,1,11,21,11,25,71,55,7,1,65,0,16,3,2,2,2,28,43,28,4,28,36,7,2,27,28,53,11,21,11,18,14,17,111,72,56,50,14,50,14,35,39,27,10,22,251,41,7,1,17,2,60,28,11,0,9,21,43,17,47,20,28,22,13,52,58,1,3,0,14,44,33,24,27,35,30,0,3,0,9,34,4,0,13,47,15,3,22,0,2,0,36,17,2,24,20,1,64,6,2,0,2,3,2,14,2,9,8,46,39,7,3,1,3,21,2,6,2,1,2,4,4,0,19,0,13,4,31,9,2,0,3,0,2,37,2,0,26,0,2,0,45,52,19,3,21,2,31,47,21,1,2,0,185,46,42,3,37,47,21,0,60,42,14,0,72,26,38,6,186,43,117,63,32,7,3,0,3,7,2,1,2,23,16,0,2,0,95,7,3,38,17,0,2,0,29,0,11,39,8,0,22,0,12,45,20,0,19,72,200,32,32,8,2,36,18,0,50,29,113,6,2,1,2,37,22,0,26,5,2,1,2,31,15,0,328,18,16,0,2,12,2,33,125,0,80,921,103,110,18,195,2637,96,16,1071,18,5,26,3994,6,582,6842,29,1763,568,8,30,18,78,18,29,19,47,17,3,32,20,6,18,433,44,212,63,129,74,6,0,67,12,65,1,2,0,29,6135,9,1237,42,9,8936,3,2,6,2,1,2,290,16,0,30,2,3,0,15,3,9,395,2309,106,6,12,4,8,8,9,5991,84,2,70,2,1,3,0,3,1,3,3,2,11,2,0,2,6,2,64,2,3,3,7,2,6,2,27,2,3,2,4,2,0,4,6,2,339,3,24,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,7,1845,30,7,5,262,61,147,44,11,6,17,0,322,29,19,43,485,27,229,29,3,0,496,6,2,3,2,1,2,14,2,196,60,67,8,0,1205,3,2,26,2,1,2,0,3,0,2,9,2,3,2,0,2,0,7,0,5,0,2,0,2,0,2,2,2,1,2,0,3,0,2,0,2,0,2,0,2,0,2,1,2,0,3,3,2,6,2,3,2,3,2,0,2,9,2,16,6,2,2,4,2,16,4421,42719,33,4153,7,221,3,5761,15,7472,16,621,2467,541,1507,4938,6,4191],Oe=[509,0,227,0,150,4,294,9,1368,2,2,1,6,3,41,2,5,0,166,1,574,3,9,9,7,9,32,4,318,1,80,3,71,10,50,3,123,2,54,14,32,10,3,1,11,3,46,10,8,0,46,9,7,2,37,13,2,9,6,1,45,0,13,2,49,13,9,3,2,11,83,11,7,0,3,0,158,11,6,9,7,3,56,1,2,6,3,1,3,2,10,0,11,1,3,6,4,4,68,8,2,0,3,0,2,3,2,4,2,0,15,1,83,17,10,9,5,0,82,19,13,9,214,6,3,8,28,1,83,16,16,9,82,12,9,9,7,19,58,14,5,9,243,14,166,9,71,5,2,1,3,3,2,0,2,1,13,9,120,6,3,6,4,0,29,9,41,6,2,3,9,0,10,10,47,15,343,9,54,7,2,7,17,9,57,21,2,13,123,5,4,0,2,1,2,6,2,0,9,9,49,4,2,1,2,4,9,9,330,3,10,1,2,0,49,6,4,4,14,10,5350,0,7,14,11465,27,2343,9,87,9,39,4,60,6,26,9,535,9,470,0,2,54,8,3,82,0,12,1,19628,1,4178,9,519,45,3,22,543,4,4,5,9,7,3,6,31,3,149,2,1418,49,513,54,5,49,9,0,15,0,23,4,2,14,1361,6,2,16,3,6,2,1,2,4,101,0,161,6,10,9,357,0,62,13,499,13,245,1,2,9,726,6,110,6,6,9,4759,9,787719,239];function ke(e,t){let n=65536;for(let r=0,i=t.length;r<i;r+=2){if(n+=t[r],n>e)return!1;if(n+=t[r+1],n>=e)return!0}return!1}x(ke,`isInAstralSet`);function Ae(e){return e<65?e===36:e<=90?!0:e<97?e===95:e<=122?!0:e<=65535?e>=170&&Te.test(String.fromCharCode(e)):ke(e,De)}x(Ae,`isIdentifierStart`);function H(e){return e<48?e===36:e<58?!0:e<65?!1:e<=90?!0:e<97?e===95:e<=122?!0:e<=65535?e>=170&&Ee.test(String.fromCharCode(e)):ke(e,De)||ke(e,Oe)}x(H,`isIdentifierChar`);var je={keyword:`break.case.catch.continue.debugger.default.do.else.finally.for.function.if.return.switch.throw.try.var.const.while.with.new.this.super.class.extends.export.import.null.true.false.in.instanceof.typeof.void.delete`.split(`.`),strict:[`implements`,`interface`,`let`,`package`,`private`,`protected`,`public`,`static`,`yield`],strictBind:[`eval`,`arguments`]},Me=new Set(je.keyword),Ne=new Set(je.strict),Pe=new Set(je.strictBind);function Fe(e,t){return t&&e===`await`||e===`enum`}x(Fe,`isReservedWord`);function Ie(e,t){return Fe(e,t)||Ne.has(e)}x(Ie,`isStrictReservedWord`);function Le(e){return Pe.has(e)}x(Le,`isStrictBindOnlyReservedWord`);function Re(e,t){return Ie(e,t)||Le(e)}x(Re,`isStrictBindReservedWord`);function ze(e){return Me.has(e)}x(ze,`isKeyword`);function Be(e,t,n){return e===64&&t===64&&Ae(n)}x(Be,`isIteratorStart`);var Ve=new Set(`break.case.catch.continue.debugger.default.do.else.finally.for.function.if.return.switch.throw.try.var.const.while.with.new.this.super.class.extends.export.import.null.true.false.in.instanceof.typeof.void.delete.implements.interface.let.package.private.protected.public.static.yield.eval.arguments.enum.await`.split(`.`));function He(e){return Ve.has(e)}x(He,`canBeReservedWord`);var Ue=class{static{x(this,`Scope`)}constructor(e){this.flags=0,this.names=new Map,this.firstLexicalName=``,this.flags=e}},We=class{static{x(this,`ScopeHandler`)}constructor(e,t){this.parser=void 0,this.scopeStack=[],this.inModule=void 0,this.undefinedExports=new Map,this.parser=e,this.inModule=t}get inTopLevel(){return(this.currentScope().flags&1)>0}get inFunction(){return(this.currentVarScopeFlags()&2)>0}get allowSuper(){return(this.currentThisScopeFlags()&16)>0}get allowDirectSuper(){return(this.currentThisScopeFlags()&32)>0}get inClass(){return(this.currentThisScopeFlags()&64)>0}get inClassAndNotInNonArrowFunction(){let e=this.currentThisScopeFlags();return(e&64)>0&&(e&2)==0}get inStaticBlock(){for(let e=this.scopeStack.length-1;;e--){let{flags:t}=this.scopeStack[e];if(t&128)return!0;if(t&451)return!1}}get inNonArrowFunction(){return(this.currentThisScopeFlags()&2)>0}get treatFunctionsAsVar(){return this.treatFunctionsAsVarInScope(this.currentScope())}createScope(e){return new Ue(e)}enter(e){this.scopeStack.push(this.createScope(e))}exit(){return this.scopeStack.pop().flags}treatFunctionsAsVarInScope(e){return!!(e.flags&130||!this.parser.inModule&&e.flags&1)}declareName(e,t,n){let r=this.currentScope();if(t&8||t&16){this.checkRedeclarationInScope(r,e,t,n);let i=r.names.get(e)||0;t&16?i|=4:(r.firstLexicalName||=e,i|=2),r.names.set(e,i),t&8&&this.maybeExportDefined(r,e)}else if(t&4)for(let i=this.scopeStack.length-1;i>=0&&(r=this.scopeStack[i],this.checkRedeclarationInScope(r,e,t,n),r.names.set(e,(r.names.get(e)||0)|1),this.maybeExportDefined(r,e),!(r.flags&387));--i);this.parser.inModule&&r.flags&1&&this.undefinedExports.delete(e)}maybeExportDefined(e,t){this.parser.inModule&&e.flags&1&&this.undefinedExports.delete(t)}checkRedeclarationInScope(e,t,n,r){this.isRedeclaredInScope(e,t,n)&&this.parser.raise(_.VarRedeclaration,r,{identifierName:t})}isRedeclaredInScope(e,t,n){if(!(n&1))return!1;if(n&8)return e.names.has(t);let r=e.names.get(t);return n&16?(r&2)>0||!this.treatFunctionsAsVarInScope(e)&&(r&1)>0:(r&2)>0&&!(e.flags&8&&e.firstLexicalName===t)||!this.treatFunctionsAsVarInScope(e)&&(r&4)>0}checkLocalExport(e){let{name:t}=e;this.scopeStack[0].names.has(t)||this.undefinedExports.set(t,e.loc.start)}currentScope(){return this.scopeStack[this.scopeStack.length-1]}currentVarScopeFlags(){for(let e=this.scopeStack.length-1;;e--){let{flags:t}=this.scopeStack[e];if(t&387)return t}}currentThisScopeFlags(){for(let e=this.scopeStack.length-1;;e--){let{flags:t}=this.scopeStack[e];if(t&451&&!(t&4))return t}}},Ge=class extends Ue{static{x(this,`FlowScope`)}constructor(...e){super(...e),this.declareFunctions=new Set}},Ke=class extends We{static{x(this,`FlowScopeHandler`)}createScope(e){return new Ge(e)}declareName(e,t,n){let r=this.currentScope();if(t&2048){this.checkRedeclarationInScope(r,e,t,n),this.maybeExportDefined(r,e),r.declareFunctions.add(e);return}super.declareName(e,t,n)}isRedeclaredInScope(e,t,n){if(super.isRedeclaredInScope(e,t,n))return!0;if(n&2048&&!e.declareFunctions.has(t)){let n=e.names.get(t);return(n&4)>0||(n&2)>0}return!1}checkLocalExport(e){this.scopeStack[0].declareFunctions.has(e.name)||super.checkLocalExport(e)}},qe=class{static{x(this,`BaseParser`)}constructor(){this.sawUnambiguousESM=!1,this.ambiguousScriptDifferentAst=!1}sourceToOffsetPos(e){return e+this.startIndex}offsetToSourcePos(e){return e-this.startIndex}hasPlugin(e){if(typeof e==`string`)return this.plugins.has(e);{let[t,n]=e;if(!this.hasPlugin(t))return!1;let r=this.plugins.get(t);for(let e of Object.keys(n))if(r?.[e]!==n[e])return!1;return!0}}getPluginOption(e,t){return this.plugins.get(e)?.[t]}};function Je(e,t){e.trailingComments===void 0?e.trailingComments=t:e.trailingComments.unshift(...t)}x(Je,`setTrailingComments`);function Ye(e,t){e.leadingComments===void 0?e.leadingComments=t:e.leadingComments.unshift(...t)}x(Ye,`setLeadingComments`);function Xe(e,t){e.innerComments===void 0?e.innerComments=t:e.innerComments.unshift(...t)}x(Xe,`setInnerComments`);function Ze(e,t,n){let r=null,i=t.length;for(;r===null&&i>0;)r=t[--i];r===null||r.start>n.start?Xe(e,n.comments):Je(r,n.comments)}x(Ze,`adjustInnerComments`);var Qe=class extends qe{static{x(this,`CommentsParser`)}addComment(e){this.filename&&(e.loc.filename=this.filename);let{commentsLen:t}=this.state;this.comments.length!==t&&(this.comments.length=t),this.comments.push(e),this.state.commentsLen++}processComment(e){let{commentStack:t}=this.state,n=t.length;if(n===0)return;let r=n-1,i=t[r];i.start===e.end&&(i.leadingNode=e,r--);let{start:a}=e;for(;r>=0;r--){let n=t[r],i=n.end;if(i>a)n.containingNode=e,this.finalizeComment(n),t.splice(r,1);else{i===a&&(n.trailingNode=e);break}}}finalizeComment(e){let{comments:t}=e;if(e.leadingNode!==null||e.trailingNode!==null)e.leadingNode!==null&&Je(e.leadingNode,t),e.trailingNode!==null&&Ye(e.trailingNode,t);else{let{containingNode:n,start:r}=e;if(this.input.charCodeAt(this.offsetToSourcePos(r)-1)===44)switch(n.type){case`ObjectExpression`:case`ObjectPattern`:case`RecordExpression`:Ze(n,n.properties,e);break;case`CallExpression`:case`OptionalCallExpression`:Ze(n,n.arguments,e);break;case`FunctionDeclaration`:case`FunctionExpression`:case`ArrowFunctionExpression`:case`ObjectMethod`:case`ClassMethod`:case`ClassPrivateMethod`:Ze(n,n.params,e);break;case`ArrayExpression`:case`ArrayPattern`:case`TupleExpression`:Ze(n,n.elements,e);break;case`ExportNamedDeclaration`:case`ImportDeclaration`:Ze(n,n.specifiers,e);break;default:Xe(n,t)}else Xe(n,t)}}finalizeRemainingComments(){let{commentStack:e}=this.state;for(let t=e.length-1;t>=0;t--)this.finalizeComment(e[t]);this.state.commentStack=[]}resetPreviousNodeTrailingComments(e){let{commentStack:t}=this.state,{length:n}=t;if(n===0)return;let r=t[n-1];r.leadingNode===e&&(r.leadingNode=null)}resetPreviousIdentifierLeadingComments(e){let{commentStack:t}=this.state,{length:n}=t;n!==0&&(t[n-1].trailingNode===e?t[n-1].trailingNode=null:n>=2&&t[n-2].trailingNode===e&&(t[n-2].trailingNode=null))}takeSurroundingComments(e,t,n){let{commentStack:r}=this.state,i=r.length;if(i===0)return;let a=i-1;for(;a>=0;a--){let i=r[a],o=i.end;if(i.start===n)i.leadingNode=e;else if(o===t)i.trailingNode=e;else if(o<t)break}}},$e=RegExp(`\\r\\n|[\\r\\n\\u2028\\u2029]`,`g`);function et(e){switch(e){case 10:case 13:case 8232:case 8233:return!0;default:return!1}}x(et,`isNewLine`);function tt(e,t,n){for(let r=t;r<n;r++)if(et(e.charCodeAt(r)))return!0;return!1}x(tt,`hasNewLine`);var nt=/(?:\s|\/\/.*|\/\*[^]*?\*\/)*/g,rt=/(?:[^\S\n\r\u2028\u2029]|\/\/.*|\/\*.*?\*\/)*/g;function U(e){switch(e){case 9:case 11:case 12:case 32:case 160:case 5760:case 8192:case 8193:case 8194:case 8195:case 8196:case 8197:case 8198:case 8199:case 8200:case 8201:case 8202:case 8239:case 8287:case 12288:case 65279:return!0;default:return!1}}x(U,`isWhitespace`);var it=class e{static{x(this,`State`)}constructor(){this.flags=1024,this.startIndex=void 0,this.curLine=void 0,this.lineStart=void 0,this.startLoc=void 0,this.endLoc=void 0,this.errors=[],this.potentialArrowAt=-1,this.noArrowAt=[],this.noArrowParamsConversionAt=[],this.topicContext={maxNumOfResolvableTopics:0,maxTopicIndex:null},this.labels=[],this.commentsLen=0,this.commentStack=[],this.pos=0,this.type=140,this.value=null,this.start=0,this.end=0,this.lastTokEndLoc=null,this.lastTokStartLoc=null,this.context=[w.brace],this.firstInvalidTemplateEscapePos=null,this.strictErrors=new Map,this.tokensLength=0}get strict(){return(this.flags&1)>0}set strict(e){e?this.flags|=1:this.flags&=-2}init({strictMode:e,sourceType:t,startIndex:r,startLine:i,startColumn:a}){this.strict=e===!1?!1:e===!0?!0:t===`module`,this.startIndex=r,this.curLine=i,this.lineStart=-a,this.startLoc=this.endLoc=new n(i,a,r)}get maybeInArrowParameters(){return(this.flags&2)>0}set maybeInArrowParameters(e){e?this.flags|=2:this.flags&=-3}get inType(){return(this.flags&4)>0}set inType(e){e?this.flags|=4:this.flags&=-5}get noAnonFunctionType(){return(this.flags&8)>0}set noAnonFunctionType(e){e?this.flags|=8:this.flags&=-9}get hasFlowComment(){return(this.flags&16)>0}set hasFlowComment(e){e?this.flags|=16:this.flags&=-17}get isAmbientContext(){return(this.flags&32)>0}set isAmbientContext(e){e?this.flags|=32:this.flags&=-33}get inAbstractClass(){return(this.flags&64)>0}set inAbstractClass(e){e?this.flags|=64:this.flags&=-65}get inDisallowConditionalTypesContext(){return(this.flags&128)>0}set inDisallowConditionalTypesContext(e){e?this.flags|=128:this.flags&=-129}get soloAwait(){return(this.flags&256)>0}set soloAwait(e){e?this.flags|=256:this.flags&=-257}get inFSharpPipelineDirectBody(){return(this.flags&512)>0}set inFSharpPipelineDirectBody(e){e?this.flags|=512:this.flags&=-513}get canStartJSXElement(){return(this.flags&1024)>0}set canStartJSXElement(e){e?this.flags|=1024:this.flags&=-1025}get containsEsc(){return(this.flags&2048)>0}set containsEsc(e){e?this.flags|=2048:this.flags&=-2049}get hasTopLevelAwait(){return(this.flags&4096)>0}set hasTopLevelAwait(e){e?this.flags|=4096:this.flags&=-4097}curPosition(){return new n(this.curLine,this.pos-this.lineStart,this.pos+this.startIndex)}clone(){let t=new e;return t.flags=this.flags,t.startIndex=this.startIndex,t.curLine=this.curLine,t.lineStart=this.lineStart,t.startLoc=this.startLoc,t.endLoc=this.endLoc,t.errors=this.errors.slice(),t.potentialArrowAt=this.potentialArrowAt,t.noArrowAt=this.noArrowAt.slice(),t.noArrowParamsConversionAt=this.noArrowParamsConversionAt.slice(),t.topicContext=this.topicContext,t.labels=this.labels.slice(),t.commentsLen=this.commentsLen,t.commentStack=this.commentStack.slice(),t.pos=this.pos,t.type=this.type,t.value=this.value,t.start=this.start,t.end=this.end,t.lastTokEndLoc=this.lastTokEndLoc,t.lastTokStartLoc=this.lastTokStartLoc,t.context=this.context.slice(),t.firstInvalidTemplateEscapePos=this.firstInvalidTemplateEscapePos,t.strictErrors=this.strictErrors,t.tokensLength=this.tokensLength,t}},at=x(function(e){return e>=48&&e<=57},`isDigit`),ot={decBinOct:new Set([46,66,69,79,95,98,101,111]),hex:new Set([46,88,95,120])},st={bin:x(e=>e===48||e===49,`bin`),oct:x(e=>e>=48&&e<=55,`oct`),dec:x(e=>e>=48&&e<=57,`dec`),hex:x(e=>e>=48&&e<=57||e>=65&&e<=70||e>=97&&e<=102,`hex`)};function ct(e,t,n,r,i,a){let o=n,s=r,c=i,l=``,u=null,d=n,{length:f}=t;for(;;){if(n>=f){a.unterminated(o,s,c),l+=t.slice(d,n);break}let p=t.charCodeAt(n);if(lt(e,p,t,n)){l+=t.slice(d,n);break}if(p===92){l+=t.slice(d,n);let o=ut(t,n,r,i,e===`template`,a);o.ch===null&&!u?u={pos:n,lineStart:r,curLine:i}:l+=o.ch,{pos:n,lineStart:r,curLine:i}=o,d=n}else p===8232||p===8233?(++n,++i,r=n):p===10||p===13?e===`template`?(l+=t.slice(d,n)+`
103
+ - Did you mean \`import { "${e}" as foo }\`?`,`ImportBindingIsString`),ImportCallArity:"`import()` requires exactly one or two arguments.",ImportCallNotNewExpression:`Cannot use new with import(...).`,ImportCallSpreadArgument:"`...` is not allowed in `import()`.",ImportJSONBindingNotDefault:"A JSON module can only be imported with `default`.",ImportReflectionHasAssertion:"`import module x` cannot have assertions.",ImportReflectionNotBinding:'Only `import module x from "./module"` is valid.',IncompatibleRegExpUVFlags:`The 'u' and 'v' regular expression flags cannot be enabled at the same time.`,InvalidBigIntLiteral:`Invalid BigIntLiteral.`,InvalidCodePoint:`Code point out of bounds.`,InvalidCoverInitializedName:`Invalid shorthand property initializer.`,InvalidDecimal:`Invalid decimal.`,InvalidDigit:x(({radix:e})=>`Expected number in radix ${e}.`,`InvalidDigit`),InvalidEscapeSequence:`Bad character escape sequence.`,InvalidEscapeSequenceTemplate:`Invalid escape sequence in template.`,InvalidEscapedReservedWord:x(({reservedWord:e})=>`Escape sequence in keyword ${e}.`,`InvalidEscapedReservedWord`),InvalidIdentifier:x(({identifierName:e})=>`Invalid identifier ${e}.`,`InvalidIdentifier`),InvalidLhs:x(({ancestor:e})=>`Invalid left-hand side in ${c(e)}.`,`InvalidLhs`),InvalidLhsBinding:x(({ancestor:e})=>`Binding invalid left-hand side in ${c(e)}.`,`InvalidLhsBinding`),InvalidLhsOptionalChaining:x(({ancestor:e})=>`Invalid optional chaining in the left-hand side of ${c(e)}.`,`InvalidLhsOptionalChaining`),InvalidNumber:`Invalid number.`,InvalidOrMissingExponent:`Floating-point numbers require a valid exponent after the 'e'.`,InvalidOrUnexpectedToken:x(({unexpected:e})=>`Unexpected character '${e}'.`,`InvalidOrUnexpectedToken`),InvalidParenthesizedAssignment:`Invalid parenthesized assignment pattern.`,InvalidPrivateFieldResolution:x(({identifierName:e})=>`Private name #${e} is not defined.`,`InvalidPrivateFieldResolution`),InvalidPropertyBindingPattern:`Binding member expression.`,InvalidRecordProperty:`Only properties and spread elements are allowed in record definitions.`,InvalidRestAssignmentPattern:`Invalid rest operator's argument.`,LabelRedeclaration:x(({labelName:e})=>`Label '${e}' is already declared.`,`LabelRedeclaration`),LetInLexicalBinding:`'let' is disallowed as a lexically bound name.`,LineTerminatorBeforeArrow:`No line break is allowed before '=>'.`,MalformedRegExpFlags:`Invalid regular expression flag.`,MissingClassName:`A class name is required.`,MissingEqInAssignment:`Only '=' operator can be used for specifying default value.`,MissingSemicolon:`Missing semicolon.`,MissingPlugin:x(({missingPlugin:e})=>`This experimental syntax requires enabling the parser plugin: ${e.map(e=>JSON.stringify(e)).join(`, `)}.`,`MissingPlugin`),MissingOneOfPlugins:x(({missingPlugin:e})=>`This experimental syntax requires enabling one of the following parser plugin(s): ${e.map(e=>JSON.stringify(e)).join(`, `)}.`,`MissingOneOfPlugins`),MissingUnicodeEscape:`Expecting Unicode escape sequence \\uXXXX.`,MixingCoalesceWithLogical:`Nullish coalescing operator(??) requires parens when mixing with logical operators.`,ModuleAttributeDifferentFromType:"The only accepted module attribute is `type`.",ModuleAttributeInvalidValue:`Only string literals are allowed as module attribute values.`,ModuleAttributesWithDuplicateKeys:x(({key:e})=>`Duplicate key "${e}" is not allowed in module attributes.`,`ModuleAttributesWithDuplicateKeys`),ModuleExportNameHasLoneSurrogate:x(({surrogateCharCode:e})=>`An export name cannot include a lone surrogate, found '\\u${e.toString(16)}'.`,`ModuleExportNameHasLoneSurrogate`),ModuleExportUndefined:x(({localName:e})=>`Export '${e}' is not defined.`,`ModuleExportUndefined`),MultipleDefaultsInSwitch:`Multiple default clauses.`,NewlineAfterThrow:`Illegal newline after throw.`,NoCatchOrFinally:`Missing catch or finally clause.`,NumberIdentifier:`Identifier directly after number.`,NumericSeparatorInEscapeSequence:`Numeric separators are not allowed inside unicode escape sequences or hex escape sequences.`,ObsoleteAwaitStar:`'await*' has been removed from the async functions proposal. Use Promise.all() instead.`,OptionalChainingNoNew:`Constructors in/after an Optional Chain are not allowed.`,OptionalChainingNoTemplate:`Tagged Template Literals are not allowed in optionalChain.`,OverrideOnConstructor:`'override' modifier cannot appear on a constructor declaration.`,ParamDupe:`Argument name clash.`,PatternHasAccessor:`Object pattern can't contain getter or setter.`,PatternHasMethod:`Object pattern can't contain methods.`,PrivateInExpectedIn:x(({identifierName:e})=>`Private names are only allowed in property accesses (\`obj.#${e}\`) or in \`in\` expressions (\`#${e} in obj\`).`,`PrivateInExpectedIn`),PrivateNameRedeclaration:x(({identifierName:e})=>`Duplicate private name #${e}.`,`PrivateNameRedeclaration`),RecordExpressionBarIncorrectEndSyntaxType:`Record expressions ending with '|}' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'bar'.`,RecordExpressionBarIncorrectStartSyntaxType:`Record expressions starting with '{|' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'bar'.`,RecordExpressionHashIncorrectStartSyntaxType:`Record expressions starting with '#{' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'hash'.`,RecordNoProto:`'__proto__' is not allowed in Record expressions.`,RestTrailingComma:`Unexpected trailing comma after rest element.`,SloppyFunction:`In non-strict mode code, functions can only be declared at top level or inside a block.`,SloppyFunctionAnnexB:`In non-strict mode code, functions can only be declared at top level, inside a block, or as the body of an if statement.`,SourcePhaseImportRequiresDefault:'Only `import source x from "./module"` is valid.',StaticPrototype:`Classes may not have static property named prototype.`,SuperNotAllowed:"`super()` is only valid inside a class constructor of a subclass. Maybe a typo in the method name ('constructor') or not extending another class?",SuperPrivateField:`Private fields can't be accessed on super.`,TrailingDecorator:`Decorators must be attached to a class element.`,TupleExpressionBarIncorrectEndSyntaxType:`Tuple expressions ending with '|]' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'bar'.`,TupleExpressionBarIncorrectStartSyntaxType:`Tuple expressions starting with '[|' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'bar'.`,TupleExpressionHashIncorrectStartSyntaxType:`Tuple expressions starting with '#[' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'hash'.`,UnexpectedArgumentPlaceholder:`Unexpected argument placeholder.`,UnexpectedAwaitAfterPipelineBody:`Unexpected "await" after pipeline body; await must have parentheses in minimal proposal.`,UnexpectedDigitAfterHash:`Unexpected digit after hash token.`,UnexpectedImportExport:`'import' and 'export' may only appear at the top level.`,UnexpectedKeyword:x(({keyword:e})=>`Unexpected keyword '${e}'.`,`UnexpectedKeyword`),UnexpectedLeadingDecorator:`Leading decorators must be attached to a class declaration.`,UnexpectedLexicalDeclaration:`Lexical declaration cannot appear in a single-statement context.`,UnexpectedNewTarget:"`new.target` can only be used in functions or class properties.",UnexpectedNumericSeparator:`A numeric separator is only allowed between two digits.`,UnexpectedPrivateField:`Unexpected private name.`,UnexpectedReservedWord:x(({reservedWord:e})=>`Unexpected reserved word '${e}'.`,`UnexpectedReservedWord`),UnexpectedSuper:`'super' is only allowed in object methods and classes.`,UnexpectedToken:x(({expected:e,unexpected:t})=>`Unexpected token${t?` '${t}'.`:``}${e?`, expected "${e}"`:``}`,`UnexpectedToken`),UnexpectedTokenUnaryExponentiation:`Illegal expression. Wrap left hand side or entire exponentiation in parentheses.`,UnexpectedUsingDeclaration:"Using declaration cannot appear in the top level when source type is `script`.",UnsupportedBind:`Binding should be performed on object property.`,UnsupportedDecoratorExport:`A decorated export must export a class declaration.`,UnsupportedDefaultExport:"Only expressions, functions or classes are allowed as the `default` export.",UnsupportedImport:"`import` can only be used in `import()` or `import.meta`.",UnsupportedMetaProperty:x(({target:e,onlyValidPropertyName:t})=>`The only valid meta property for ${e} is ${e}.${t}.`,`UnsupportedMetaProperty`),UnsupportedParameterDecorator:`Decorators cannot be used to decorate parameters.`,UnsupportedPropertyDecorator:`Decorators cannot be used to decorate object literal properties.`,UnsupportedSuper:`'super' can only be used with function calls (i.e. super()) or in property accesses (i.e. super.prop or super[prop]).`,UnterminatedComment:`Unterminated comment.`,UnterminatedRegExp:`Unterminated regular expression.`,UnterminatedString:`Unterminated string constant.`,UnterminatedTemplate:`Unterminated template.`,UsingDeclarationExport:`Using declaration cannot be exported.`,UsingDeclarationHasBindingPattern:`Using declaration cannot have destructuring patterns.`,VarRedeclaration:x(({identifierName:e})=>`Identifier '${e}' has already been declared.`,`VarRedeclaration`),YieldBindingIdentifier:`Can not use 'yield' as identifier inside a generator.`,YieldInParameter:`Yield expression is not allowed in formal parameters.`,ZeroDigitNumericSeparator:`Numeric separator can not be used after leading 0.`},u={StrictDelete:`Deleting local variable in strict mode.`,StrictEvalArguments:x(({referenceName:e})=>`Assigning to '${e}' in strict mode.`,`StrictEvalArguments`),StrictEvalArgumentsBinding:x(({bindingName:e})=>`Binding '${e}' in strict mode.`,`StrictEvalArgumentsBinding`),StrictFunction:`In strict mode code, functions can only be declared at top level or inside a block.`,StrictNumericEscape:`The only valid numeric escape in strict mode is '\\0'.`,StrictOctalLiteral:`Legacy octal literals are not allowed in strict mode.`,StrictWith:`'with' in strict mode.`},d=new Set([`ArrowFunctionExpression`,`AssignmentExpression`,`ConditionalExpression`,`YieldExpression`]),f={PipeBodyIsTighter:`Unexpected yield after pipeline body; any yield expression acting as Hack-style pipe body must be parenthesized due to its loose operator precedence.`,PipeTopicRequiresHackPipes:`Topic reference is used, but the pipelineOperator plugin was not passed a "proposal": "hack" or "smart" option.`,PipeTopicUnbound:`Topic reference is unbound; it must be inside a pipe body.`,PipeTopicUnconfiguredToken:x(({token:e})=>`Invalid topic token ${e}. In order to use ${e} as a topic reference, the pipelineOperator plugin must be configured with { "proposal": "hack", "topicToken": "${e}" }.`,`PipeTopicUnconfiguredToken`),PipeTopicUnused:`Hack-style pipe body does not contain a topic reference; Hack-style pipes must use topic at least once.`,PipeUnparenthesizedBody:x(({type:e})=>`Hack-style pipe body cannot be an unparenthesized ${c({type:e})}; please wrap it in parentheses.`,`PipeUnparenthesizedBody`),PipelineBodyNoArrow:`Unexpected arrow "=>" after pipeline body; arrow function in pipeline body must be parenthesized.`,PipelineBodySequenceExpression:`Pipeline body may not be a comma-separated sequence expression.`,PipelineHeadSequenceExpression:`Pipeline head should not be a comma-separated sequence expression.`,PipelineTopicUnused:`Pipeline is in topic style but does not use topic reference.`,PrimaryTopicNotAllowed:`Topic reference was used in a lexical context without topic binding.`,PrimaryTopicRequiresSmartPipeline:`Topic reference is used, but the pipelineOperator plugin was not passed a "proposal": "hack" or "smart" option.`},p=[`message`];function m(e,t,n){Object.defineProperty(e,t,{enumerable:!1,configurable:!0,value:n})}x(m,`defineHidden`);function h({toMessage:e,code:t,reasonCode:r,syntaxPlugin:i}){let a=r===`MissingPlugin`||r===`MissingOneOfPlugins`;{let e={AccessorCannotDeclareThisParameter:`AccesorCannotDeclareThisParameter`,AccessorCannotHaveTypeParameters:`AccesorCannotHaveTypeParameters`,ConstInitializerMustBeStringOrNumericLiteralOrLiteralEnumReference:`ConstInitiailizerMustBeStringOrNumericLiteralOrLiteralEnumReference`,SetAccessorCannotHaveOptionalParameter:`SetAccesorCannotHaveOptionalParameter`,SetAccessorCannotHaveRestParameter:`SetAccesorCannotHaveRestParameter`,SetAccessorCannotHaveReturnType:`SetAccesorCannotHaveReturnType`};e[r]&&(r=e[r])}return x(function o(s,c){let l=SyntaxError();return l.code=t,l.reasonCode=r,l.loc=s,l.pos=s.index,l.syntaxPlugin=i,a&&(l.missingPlugin=c.missingPlugin),m(l,`clone`,x(function(e={}){let{line:t,column:r,index:i}=e.loc??s;return o(new n(t,r,i),Object.assign({},c,e.details))},`clone`)),m(l,`details`,c),Object.defineProperty(l,`message`,{configurable:!0,get(){let t=`${e(c)} (${s.line}:${s.column})`;return this.message=t,t},set(e){Object.defineProperty(this,`message`,{value:e,writable:!0})}}),l},`constructor`)}x(h,`toParseErrorConstructor`);function g(e,n){if(Array.isArray(e))return t=>g(t,e[0]);let r={};for(let i of Object.keys(e)){let a=e[i],o=typeof a==`string`?{message:x(()=>a,`message`)}:typeof a==`function`?{message:a}:a,{message:s}=o,c=t(o,p);r[i]=h(Object.assign({code:`BABEL_PARSER_SYNTAX_ERROR`,reasonCode:i,toMessage:typeof s==`string`?()=>s:s},n?{syntaxPlugin:n}:{},c))}return r}x(g,`ParseErrorEnum`);var _=Object.assign({},g(o),g(l),g(u),g`pipelineOperator`(f)),{defineProperty:v}=Object,y=x((e,t)=>{e&&v(e,t,{enumerable:!1,value:e[t]})},`toUnenumerable`);function b(e){return y(e.loc.start,`index`),y(e.loc.end,`index`),e}x(b,`toESTreeLocation`);var S=x(e=>class extends e{static{x(this,`ESTreeParserMixin`)}parse(){let e=b(super.parse());return this.options.tokens&&(e.tokens=e.tokens.map(b)),e}parseRegExpLiteral({pattern:e,flags:t}){let n=null;try{n=new RegExp(e,t)}catch{}let r=this.estreeParseLiteral(n);return r.regex={pattern:e,flags:t},r}parseBigIntLiteral(e){let t;try{t=BigInt(e)}catch{t=null}let n=this.estreeParseLiteral(t);return n.bigint=String(n.value||e),n}parseDecimalLiteral(e){let t=this.estreeParseLiteral(null);return t.decimal=String(t.value||e),t}estreeParseLiteral(e){return this.parseLiteral(e,`Literal`)}parseStringLiteral(e){return this.estreeParseLiteral(e)}parseNumericLiteral(e){return this.estreeParseLiteral(e)}parseNullLiteral(){return this.estreeParseLiteral(null)}parseBooleanLiteral(e){return this.estreeParseLiteral(e)}directiveToStmt(e){let t=e.value;delete e.value,t.type=`Literal`,t.raw=t.extra.raw,t.value=t.extra.expressionValue;let n=e;return n.type=`ExpressionStatement`,n.expression=t,n.directive=t.extra.rawValue,delete t.extra,n}initFunction(e,t){super.initFunction(e,t),e.expression=!1}checkDeclaration(e){e!=null&&this.isObjectProperty(e)?this.checkDeclaration(e.value):super.checkDeclaration(e)}getObjectOrClassMethodParams(e){return e.value.params}isValidDirective(e){var t;return e.type===`ExpressionStatement`&&e.expression.type===`Literal`&&typeof e.expression.value==`string`&&!((t=e.expression.extra)!=null&&t.parenthesized)}parseBlockBody(e,t,n,r,i){super.parseBlockBody(e,t,n,r,i),e.body=e.directives.map(e=>this.directiveToStmt(e)).concat(e.body),delete e.directives}pushClassMethod(e,t,n,r,i,a){this.parseMethod(t,n,r,i,a,`ClassMethod`,!0),t.typeParameters&&(t.value.typeParameters=t.typeParameters,delete t.typeParameters),e.body.push(t)}parsePrivateName(){let e=super.parsePrivateName();return this.getPluginOption(`estree`,`classFeatures`)?this.convertPrivateNameToPrivateIdentifier(e):e}convertPrivateNameToPrivateIdentifier(e){let t=super.getPrivateNameSV(e);return e=e,delete e.id,e.name=t,e.type=`PrivateIdentifier`,e}isPrivateName(e){return this.getPluginOption(`estree`,`classFeatures`)?e.type===`PrivateIdentifier`:super.isPrivateName(e)}getPrivateNameSV(e){return this.getPluginOption(`estree`,`classFeatures`)?e.name:super.getPrivateNameSV(e)}parseLiteral(e,t){let n=super.parseLiteral(e,t);return n.raw=n.extra.raw,delete n.extra,n}parseFunctionBody(e,t,n=!1){super.parseFunctionBody(e,t,n),e.expression=e.body.type!==`BlockStatement`}parseMethod(e,t,n,r,i,a,o=!1){let s=this.startNode();return s.kind=e.kind,s=super.parseMethod(s,t,n,r,i,a,o),s.type=`FunctionExpression`,delete s.kind,e.value=s,a===`ClassPrivateMethod`&&(e.computed=!1),this.finishNode(e,`MethodDefinition`)}nameIsConstructor(e){return e.type===`Literal`?e.value===`constructor`:super.nameIsConstructor(e)}parseClassProperty(...e){let t=super.parseClassProperty(...e);return this.getPluginOption(`estree`,`classFeatures`)&&(t.type=`PropertyDefinition`),t}parseClassPrivateProperty(...e){let t=super.parseClassPrivateProperty(...e);return this.getPluginOption(`estree`,`classFeatures`)?(t.type=`PropertyDefinition`,t.computed=!1,t):t}parseObjectMethod(e,t,n,r,i){let a=super.parseObjectMethod(e,t,n,r,i);return a&&(a.type=`Property`,a.kind===`method`&&(a.kind=`init`),a.shorthand=!1),a}parseObjectProperty(e,t,n,r){let i=super.parseObjectProperty(e,t,n,r);return i&&(i.kind=`init`,i.type=`Property`),i}isValidLVal(e,t,n){return e===`Property`?`value`:super.isValidLVal(e,t,n)}isAssignable(e,t){return e!=null&&this.isObjectProperty(e)?this.isAssignable(e.value,t):super.isAssignable(e,t)}toAssignable(e,t=!1){if(e!=null&&this.isObjectProperty(e)){let{key:n,value:r}=e;this.isPrivateName(n)&&this.classScope.usePrivateName(this.getPrivateNameSV(n),n.loc.start),this.toAssignable(r,t)}else super.toAssignable(e,t)}toAssignableObjectExpressionProp(e,t,n){e.type===`Property`&&(e.kind===`get`||e.kind===`set`)?this.raise(_.PatternHasAccessor,e.key):e.type===`Property`&&e.method?this.raise(_.PatternHasMethod,e.key):super.toAssignableObjectExpressionProp(e,t,n)}finishCallExpression(e,t){let n=super.finishCallExpression(e,t);return n.callee.type===`Import`&&(n.type=`ImportExpression`,n.source=n.arguments[0],n.options=n.arguments[1]??null,n.attributes=n.arguments[1]??null,delete n.arguments,delete n.callee),n}toReferencedArguments(e){e.type!==`ImportExpression`&&super.toReferencedArguments(e)}parseExport(e,t){let n=this.state.lastTokStartLoc,r=super.parseExport(e,t);switch(r.type){case`ExportAllDeclaration`:r.exported=null;break;case`ExportNamedDeclaration`:r.specifiers.length===1&&r.specifiers[0].type===`ExportNamespaceSpecifier`&&(r.type=`ExportAllDeclaration`,r.exported=r.specifiers[0].exported,delete r.specifiers);case`ExportDefaultDeclaration`:{let{declaration:e}=r;e?.type===`ClassDeclaration`&&e.decorators?.length>0&&e.start===r.start&&this.resetStartLocation(r,n)}break}return r}parseSubscript(e,t,n,r){let i=super.parseSubscript(e,t,n,r);if(r.optionalChainMember){if((i.type===`OptionalMemberExpression`||i.type===`OptionalCallExpression`)&&(i.type=i.type.substring(8)),r.stop){let e=this.startNodeAtNode(i);return e.expression=i,this.finishNode(e,`ChainExpression`)}}else (i.type===`MemberExpression`||i.type===`CallExpression`)&&(i.optional=!1);return i}isOptionalMemberExpression(e){return e.type===`ChainExpression`?e.expression.type===`MemberExpression`:super.isOptionalMemberExpression(e)}hasPropertyAsPrivateName(e){return e.type===`ChainExpression`&&(e=e.expression),super.hasPropertyAsPrivateName(e)}isObjectProperty(e){return e.type===`Property`&&e.kind===`init`&&!e.method}isObjectMethod(e){return e.type===`Property`&&(e.method||e.kind===`get`||e.kind===`set`)}finishNodeAt(e,t,n){return b(super.finishNodeAt(e,t,n))}resetStartLocation(e,t){super.resetStartLocation(e,t),b(e)}resetEndLocation(e,t=this.state.lastTokEndLoc){super.resetEndLocation(e,t),b(e)}},`estree`),C=class{static{x(this,`TokContext`)}constructor(e,t){this.token=void 0,this.preserveSpace=void 0,this.token=e,this.preserveSpace=!!t}},w={brace:new C(`{`),j_oTag:new C(`<tag`),j_cTag:new C(`</tag`),j_expr:new C(`<tag>...</tag>`,!0)};w.template=new C("`",!0);var T=!0,E=!0,D=!0,O=!0,ee=!0,k=!0,te=class{static{x(this,`ExportedTokenType`)}constructor(e,t={}){this.label=void 0,this.keyword=void 0,this.beforeExpr=void 0,this.startsExpr=void 0,this.rightAssociative=void 0,this.isLoop=void 0,this.isAssign=void 0,this.prefix=void 0,this.postfix=void 0,this.binop=void 0,this.label=e,this.keyword=t.keyword,this.beforeExpr=!!t.beforeExpr,this.startsExpr=!!t.startsExpr,this.rightAssociative=!!t.rightAssociative,this.isLoop=!!t.isLoop,this.isAssign=!!t.isAssign,this.prefix=!!t.prefix,this.postfix=!!t.postfix,this.binop=t.binop==null?null:t.binop,this.updateContext=null}},ne=new Map;function A(e,t={}){t.keyword=e;let n=F(e,t);return ne.set(e,n),n}x(A,`createKeyword`);function j(e,t){return F(e,{beforeExpr:T,binop:t})}x(j,`createBinop`);var M=-1,N=[],P=[],re=[],ie=[],ae=[],oe=[];function F(e,t={}){return++M,P.push(e),re.push(t.binop??-1),ie.push(t.beforeExpr??!1),ae.push(t.startsExpr??!1),oe.push(t.prefix??!1),N.push(new te(e,t)),M}x(F,`createToken`);function I(e,t={}){return++M,ne.set(e,M),P.push(e),re.push(t.binop??-1),ie.push(t.beforeExpr??!1),ae.push(t.startsExpr??!1),oe.push(t.prefix??!1),N.push(new te(`name`,t)),M}x(I,`createKeywordLike`);var se={bracketL:F(`[`,{beforeExpr:T,startsExpr:E}),bracketHashL:F(`#[`,{beforeExpr:T,startsExpr:E}),bracketBarL:F(`[|`,{beforeExpr:T,startsExpr:E}),bracketR:F(`]`),bracketBarR:F(`|]`),braceL:F(`{`,{beforeExpr:T,startsExpr:E}),braceBarL:F(`{|`,{beforeExpr:T,startsExpr:E}),braceHashL:F(`#{`,{beforeExpr:T,startsExpr:E}),braceR:F(`}`),braceBarR:F(`|}`),parenL:F(`(`,{beforeExpr:T,startsExpr:E}),parenR:F(`)`),comma:F(`,`,{beforeExpr:T}),semi:F(`;`,{beforeExpr:T}),colon:F(`:`,{beforeExpr:T}),doubleColon:F(`::`,{beforeExpr:T}),dot:F(`.`),question:F(`?`,{beforeExpr:T}),questionDot:F(`?.`),arrow:F(`=>`,{beforeExpr:T}),template:F(`template`),ellipsis:F(`...`,{beforeExpr:T}),backQuote:F("`",{startsExpr:E}),dollarBraceL:F("${",{beforeExpr:T,startsExpr:E}),templateTail:F("...`",{startsExpr:E}),templateNonTail:F("...${",{beforeExpr:T,startsExpr:E}),at:F(`@`),hash:F(`#`,{startsExpr:E}),interpreterDirective:F(`#!...`),eq:F(`=`,{beforeExpr:T,isAssign:O}),assign:F(`_=`,{beforeExpr:T,isAssign:O}),slashAssign:F(`_=`,{beforeExpr:T,isAssign:O}),xorAssign:F(`_=`,{beforeExpr:T,isAssign:O}),moduloAssign:F(`_=`,{beforeExpr:T,isAssign:O}),incDec:F(`++/--`,{prefix:ee,postfix:k,startsExpr:E}),bang:F(`!`,{beforeExpr:T,prefix:ee,startsExpr:E}),tilde:F(`~`,{beforeExpr:T,prefix:ee,startsExpr:E}),doubleCaret:F(`^^`,{startsExpr:E}),doubleAt:F(`@@`,{startsExpr:E}),pipeline:j(`|>`,0),nullishCoalescing:j(`??`,1),logicalOR:j(`||`,1),logicalAND:j(`&&`,2),bitwiseOR:j(`|`,3),bitwiseXOR:j(`^`,4),bitwiseAND:j(`&`,5),equality:j(`==/!=/===/!==`,6),lt:j(`</>/<=/>=`,7),gt:j(`</>/<=/>=`,7),relational:j(`</>/<=/>=`,7),bitShift:j(`<</>>/>>>`,8),bitShiftL:j(`<</>>/>>>`,8),bitShiftR:j(`<</>>/>>>`,8),plusMin:F(`+/-`,{beforeExpr:T,binop:9,prefix:ee,startsExpr:E}),modulo:F(`%`,{binop:10,startsExpr:E}),star:F(`*`,{binop:10}),slash:j(`/`,10),exponent:F(`**`,{beforeExpr:T,binop:11,rightAssociative:!0}),_in:A(`in`,{beforeExpr:T,binop:7}),_instanceof:A(`instanceof`,{beforeExpr:T,binop:7}),_break:A(`break`),_case:A(`case`,{beforeExpr:T}),_catch:A(`catch`),_continue:A(`continue`),_debugger:A(`debugger`),_default:A(`default`,{beforeExpr:T}),_else:A(`else`,{beforeExpr:T}),_finally:A(`finally`),_function:A(`function`,{startsExpr:E}),_if:A(`if`),_return:A(`return`,{beforeExpr:T}),_switch:A(`switch`),_throw:A(`throw`,{beforeExpr:T,prefix:ee,startsExpr:E}),_try:A(`try`),_var:A(`var`),_const:A(`const`),_with:A(`with`),_new:A(`new`,{beforeExpr:T,startsExpr:E}),_this:A(`this`,{startsExpr:E}),_super:A(`super`,{startsExpr:E}),_class:A(`class`,{startsExpr:E}),_extends:A(`extends`,{beforeExpr:T}),_export:A(`export`),_import:A(`import`,{startsExpr:E}),_null:A(`null`,{startsExpr:E}),_true:A(`true`,{startsExpr:E}),_false:A(`false`,{startsExpr:E}),_typeof:A(`typeof`,{beforeExpr:T,prefix:ee,startsExpr:E}),_void:A(`void`,{beforeExpr:T,prefix:ee,startsExpr:E}),_delete:A(`delete`,{beforeExpr:T,prefix:ee,startsExpr:E}),_do:A(`do`,{isLoop:D,beforeExpr:T}),_for:A(`for`,{isLoop:D}),_while:A(`while`,{isLoop:D}),_as:I(`as`,{startsExpr:E}),_assert:I(`assert`,{startsExpr:E}),_async:I(`async`,{startsExpr:E}),_await:I(`await`,{startsExpr:E}),_defer:I(`defer`,{startsExpr:E}),_from:I(`from`,{startsExpr:E}),_get:I(`get`,{startsExpr:E}),_let:I(`let`,{startsExpr:E}),_meta:I(`meta`,{startsExpr:E}),_of:I(`of`,{startsExpr:E}),_sent:I(`sent`,{startsExpr:E}),_set:I(`set`,{startsExpr:E}),_source:I(`source`,{startsExpr:E}),_static:I(`static`,{startsExpr:E}),_using:I(`using`,{startsExpr:E}),_yield:I(`yield`,{startsExpr:E}),_asserts:I(`asserts`,{startsExpr:E}),_checks:I(`checks`,{startsExpr:E}),_exports:I(`exports`,{startsExpr:E}),_global:I(`global`,{startsExpr:E}),_implements:I(`implements`,{startsExpr:E}),_intrinsic:I(`intrinsic`,{startsExpr:E}),_infer:I(`infer`,{startsExpr:E}),_is:I(`is`,{startsExpr:E}),_mixins:I(`mixins`,{startsExpr:E}),_proto:I(`proto`,{startsExpr:E}),_require:I(`require`,{startsExpr:E}),_satisfies:I(`satisfies`,{startsExpr:E}),_keyof:I(`keyof`,{startsExpr:E}),_readonly:I(`readonly`,{startsExpr:E}),_unique:I(`unique`,{startsExpr:E}),_abstract:I(`abstract`,{startsExpr:E}),_declare:I(`declare`,{startsExpr:E}),_enum:I(`enum`,{startsExpr:E}),_module:I(`module`,{startsExpr:E}),_namespace:I(`namespace`,{startsExpr:E}),_interface:I(`interface`,{startsExpr:E}),_type:I(`type`,{startsExpr:E}),_opaque:I(`opaque`,{startsExpr:E}),name:F(`name`,{startsExpr:E}),placeholder:F(`%%`,{startsExpr:!0}),string:F(`string`,{startsExpr:E}),num:F(`num`,{startsExpr:E}),bigint:F(`bigint`,{startsExpr:E}),decimal:F(`decimal`,{startsExpr:E}),regexp:F(`regexp`,{startsExpr:E}),privateName:F(`#name`,{startsExpr:E}),eof:F(`eof`),jsxName:F(`jsxName`),jsxText:F(`jsxText`,{beforeExpr:!0}),jsxTagStart:F(`jsxTagStart`,{startsExpr:!0}),jsxTagEnd:F(`jsxTagEnd`)};function L(e){return e>=93&&e<=133}x(L,`tokenIsIdentifier`);function ce(e){return e<=92}x(ce,`tokenKeywordOrIdentifierIsKeyword`);function le(e){return e>=58&&e<=133}x(le,`tokenIsKeywordOrIdentifier`);function ue(e){return e>=58&&e<=137}x(ue,`tokenIsLiteralPropertyName`);function de(e){return ie[e]}x(de,`tokenComesBeforeExpression`);function fe(e){return ae[e]}x(fe,`tokenCanStartExpression`);function pe(e){return e>=29&&e<=33}x(pe,`tokenIsAssignment`);function R(e){return e>=129&&e<=131}x(R,`tokenIsFlowInterfaceOrTypeOrOpaque`);function me(e){return e>=90&&e<=92}x(me,`tokenIsLoop`);function he(e){return e>=58&&e<=92}x(he,`tokenIsKeyword`);function ge(e){return e>=39&&e<=59}x(ge,`tokenIsOperator`);function _e(e){return e===34}x(_e,`tokenIsPostfix`);function ve(e){return oe[e]}x(ve,`tokenIsPrefix`);function z(e){return e>=121&&e<=123}x(z,`tokenIsTSTypeOperator`);function ye(e){return e>=124&&e<=130}x(ye,`tokenIsTSDeclarationStart`);function B(e){return P[e]}x(B,`tokenLabelName`);function be(e){return re[e]}x(be,`tokenOperatorPrecedence`);function xe(e){return e===57}x(xe,`tokenIsRightAssociative`);function Se(e){return e>=24&&e<=25}x(Se,`tokenIsTemplate`);function V(e){return N[e]}x(V,`getExportedToken`),N[8].updateContext=e=>{e.pop()},N[5].updateContext=N[7].updateContext=N[23].updateContext=e=>{e.push(w.brace)},N[22].updateContext=e=>{e[e.length-1]===w.template?e.pop():e.push(w.template)},N[143].updateContext=e=>{e.push(w.j_expr,w.j_oTag)};var Ce=`ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽͿΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԯԱ-Ֆՙՠ-ֈא-תׯ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࡠ-ࡪࡰ-ࢇࢉ-ࢎࢠ-ࣉऄ-हऽॐक़-ॡॱ-ঀঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱৼਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡૹଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-హఽౘ-ౚౝౠౡಀಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೝೞೠೡೱೲഄ-ഌഎ-ഐഒ-ഺഽൎൔ-ൖൟ-ൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄຆ-ຊຌ-ຣລວ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏽᏸ-ᏽᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛸᜀ-ᜑᜟ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡸᢀ-ᢨᢪᢰ-ᣵᤀ-ᤞᥐ-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧉᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭌᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᲀ-ᲊᲐ-ᲺᲽ-Ჿᳩ-ᳬᳮ-ᳳᳵᳶᳺᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕ℘-ℝℤΩℨK-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞ々-〇〡-〩〱-〵〸-〼ぁ-ゖ゛-ゟァ-ヺー-ヿㄅ-ㄯㄱ-ㆎㆠ-ㆿㇰ-ㇿ㐀-䶿一-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚝꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-ꟍꟐꟑꟓꟕ-Ƛꟲ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꣽꣾꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꧠ-ꧤꧦ-ꧯꧺ-ꧾꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꩾ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꬰ-ꭚꭜ-ꭩꭰ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ`,we=`·̀-ͯ·҃-֑҇-ׇֽֿׁׂׅׄؐ-ًؚ-٩ٰۖ-ۜ۟-۪ۤۧۨ-ۭ۰-۹ܑܰ-݊ަ-ް߀-߉߫-߽߳ࠖ-࠙ࠛ-ࠣࠥ-ࠧࠩ-࡙࠭-࡛ࢗ-࢟࣊-ࣣ࣡-ःऺ-़ा-ॏ॑-ॗॢॣ०-९ঁ-ঃ়া-ৄেৈো-্ৗৢৣ০-৯৾ਁ-ਃ਼ਾ-ੂੇੈੋ-੍ੑ੦-ੱੵઁ-ઃ઼ા-ૅે-ૉો-્ૢૣ૦-૯ૺ-૿ଁ-ଃ଼ା-ୄେୈୋ-୍୕-ୗୢୣ୦-୯ஂா-ூெ-ைொ-்ௗ௦-௯ఀ-ఄ఼ా-ౄె-ైొ-్ౕౖౢౣ౦-౯ಁ-ಃ಼ಾ-ೄೆ-ೈೊ-್ೕೖೢೣ೦-೯ೳഀ-ഃ഻഼ാ-ൄെ-ൈൊ-്ൗൢൣ൦-൯ඁ-ඃ්ා-ුූෘ-ෟ෦-෯ෲෳัิ-ฺ็-๎๐-๙ັິ-ຼ່-໎໐-໙༘༙༠-༩༹༵༷༾༿ཱ-྄྆྇ྍ-ྗྙ-ྼ࿆ါ-ှ၀-၉ၖ-ၙၞ-ၠၢ-ၤၧ-ၭၱ-ၴႂ-ႍႏ-ႝ፝-፟፩-፱ᜒ-᜕ᜲ-᜴ᝒᝓᝲᝳ឴-៓៝០-៩᠋-᠍᠏-᠙ᢩᤠ-ᤫᤰ-᤻᥆-᥏᧐-᧚ᨗ-ᨛᩕ-ᩞ᩠-᩿᩼-᪉᪐-᪙᪰-᪽ᪿ-ᫎᬀ-ᬄ᬴-᭄᭐-᭙᭫-᭳ᮀ-ᮂᮡ-ᮭ᮰-᮹᯦-᯳ᰤ-᰷᱀-᱉᱐-᱙᳐-᳔᳒-᳨᳭᳴᳷-᳹᷀-᷿‌‍‿⁀⁔⃐-⃥⃜⃡-⃰⳯-⵿⳱ⷠ-〪ⷿ-゙゚〯・꘠-꘩꙯ꙴ-꙽ꚞꚟ꛰꛱ꠂ꠆ꠋꠣ-ꠧ꠬ꢀꢁꢴ-ꣅ꣐-꣙꣠-꣱ꣿ-꤉ꤦ-꤭ꥇ-꥓ꦀ-ꦃ꦳-꧀꧐-꧙ꧥ꧰-꧹ꨩ-ꨶꩃꩌꩍ꩐-꩙ꩻ-ꩽꪰꪲ-ꪴꪷꪸꪾ꪿꫁ꫫ-ꫯꫵ꫶ꯣ-ꯪ꯬꯭꯰-꯹ﬞ︀-️︠-︯︳︴﹍-﹏0-9_・`,Te=RegExp(`[`+Ce+`]`),Ee=RegExp(`[`+Ce+we+`]`);Ce=we=null;var De=[0,11,2,25,2,18,2,1,2,14,3,13,35,122,70,52,268,28,4,48,48,31,14,29,6,37,11,29,3,35,5,7,2,4,43,157,19,35,5,35,5,39,9,51,13,10,2,14,2,6,2,1,2,10,2,14,2,6,2,1,4,51,13,310,10,21,11,7,25,5,2,41,2,8,70,5,3,0,2,43,2,1,4,0,3,22,11,22,10,30,66,18,2,1,11,21,11,25,71,55,7,1,65,0,16,3,2,2,2,28,43,28,4,28,36,7,2,27,28,53,11,21,11,18,14,17,111,72,56,50,14,50,14,35,39,27,10,22,251,41,7,1,17,2,60,28,11,0,9,21,43,17,47,20,28,22,13,52,58,1,3,0,14,44,33,24,27,35,30,0,3,0,9,34,4,0,13,47,15,3,22,0,2,0,36,17,2,24,20,1,64,6,2,0,2,3,2,14,2,9,8,46,39,7,3,1,3,21,2,6,2,1,2,4,4,0,19,0,13,4,31,9,2,0,3,0,2,37,2,0,26,0,2,0,45,52,19,3,21,2,31,47,21,1,2,0,185,46,42,3,37,47,21,0,60,42,14,0,72,26,38,6,186,43,117,63,32,7,3,0,3,7,2,1,2,23,16,0,2,0,95,7,3,38,17,0,2,0,29,0,11,39,8,0,22,0,12,45,20,0,19,72,200,32,32,8,2,36,18,0,50,29,113,6,2,1,2,37,22,0,26,5,2,1,2,31,15,0,328,18,16,0,2,12,2,33,125,0,80,921,103,110,18,195,2637,96,16,1071,18,5,26,3994,6,582,6842,29,1763,568,8,30,18,78,18,29,19,47,17,3,32,20,6,18,433,44,212,63,129,74,6,0,67,12,65,1,2,0,29,6135,9,1237,42,9,8936,3,2,6,2,1,2,290,16,0,30,2,3,0,15,3,9,395,2309,106,6,12,4,8,8,9,5991,84,2,70,2,1,3,0,3,1,3,3,2,11,2,0,2,6,2,64,2,3,3,7,2,6,2,27,2,3,2,4,2,0,4,6,2,339,3,24,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,7,1845,30,7,5,262,61,147,44,11,6,17,0,322,29,19,43,485,27,229,29,3,0,496,6,2,3,2,1,2,14,2,196,60,67,8,0,1205,3,2,26,2,1,2,0,3,0,2,9,2,3,2,0,2,0,7,0,5,0,2,0,2,0,2,2,2,1,2,0,3,0,2,0,2,0,2,0,2,0,2,1,2,0,3,3,2,6,2,3,2,3,2,0,2,9,2,16,6,2,2,4,2,16,4421,42719,33,4153,7,221,3,5761,15,7472,16,621,2467,541,1507,4938,6,4191],Oe=[509,0,227,0,150,4,294,9,1368,2,2,1,6,3,41,2,5,0,166,1,574,3,9,9,7,9,32,4,318,1,80,3,71,10,50,3,123,2,54,14,32,10,3,1,11,3,46,10,8,0,46,9,7,2,37,13,2,9,6,1,45,0,13,2,49,13,9,3,2,11,83,11,7,0,3,0,158,11,6,9,7,3,56,1,2,6,3,1,3,2,10,0,11,1,3,6,4,4,68,8,2,0,3,0,2,3,2,4,2,0,15,1,83,17,10,9,5,0,82,19,13,9,214,6,3,8,28,1,83,16,16,9,82,12,9,9,7,19,58,14,5,9,243,14,166,9,71,5,2,1,3,3,2,0,2,1,13,9,120,6,3,6,4,0,29,9,41,6,2,3,9,0,10,10,47,15,343,9,54,7,2,7,17,9,57,21,2,13,123,5,4,0,2,1,2,6,2,0,9,9,49,4,2,1,2,4,9,9,330,3,10,1,2,0,49,6,4,4,14,10,5350,0,7,14,11465,27,2343,9,87,9,39,4,60,6,26,9,535,9,470,0,2,54,8,3,82,0,12,1,19628,1,4178,9,519,45,3,22,543,4,4,5,9,7,3,6,31,3,149,2,1418,49,513,54,5,49,9,0,15,0,23,4,2,14,1361,6,2,16,3,6,2,1,2,4,101,0,161,6,10,9,357,0,62,13,499,13,245,1,2,9,726,6,110,6,6,9,4759,9,787719,239];function ke(e,t){let n=65536;for(let r=0,i=t.length;r<i;r+=2){if(n+=t[r],n>e)return!1;if(n+=t[r+1],n>=e)return!0}return!1}x(ke,`isInAstralSet`);function Ae(e){return e<65?e===36:e<=90?!0:e<97?e===95:e<=122?!0:e<=65535?e>=170&&Te.test(String.fromCharCode(e)):ke(e,De)}x(Ae,`isIdentifierStart`);function H(e){return e<48?e===36:e<58?!0:e<65?!1:e<=90?!0:e<97?e===95:e<=122?!0:e<=65535?e>=170&&Ee.test(String.fromCharCode(e)):ke(e,De)||ke(e,Oe)}x(H,`isIdentifierChar`);var je={keyword:`break.case.catch.continue.debugger.default.do.else.finally.for.function.if.return.switch.throw.try.var.const.while.with.new.this.super.class.extends.export.import.null.true.false.in.instanceof.typeof.void.delete`.split(`.`),strict:[`implements`,`interface`,`let`,`package`,`private`,`protected`,`public`,`static`,`yield`],strictBind:[`eval`,`arguments`]},Me=new Set(je.keyword),Ne=new Set(je.strict),Pe=new Set(je.strictBind);function Fe(e,t){return t&&e===`await`||e===`enum`}x(Fe,`isReservedWord`);function Ie(e,t){return Fe(e,t)||Ne.has(e)}x(Ie,`isStrictReservedWord`);function Le(e){return Pe.has(e)}x(Le,`isStrictBindOnlyReservedWord`);function Re(e,t){return Ie(e,t)||Le(e)}x(Re,`isStrictBindReservedWord`);function ze(e){return Me.has(e)}x(ze,`isKeyword`);function Be(e,t,n){return e===64&&t===64&&Ae(n)}x(Be,`isIteratorStart`);var Ve=new Set(`break.case.catch.continue.debugger.default.do.else.finally.for.function.if.return.switch.throw.try.var.const.while.with.new.this.super.class.extends.export.import.null.true.false.in.instanceof.typeof.void.delete.implements.interface.let.package.private.protected.public.static.yield.eval.arguments.enum.await`.split(`.`));function He(e){return Ve.has(e)}x(He,`canBeReservedWord`);var Ue=class{static{x(this,`Scope`)}constructor(e){this.flags=0,this.names=new Map,this.firstLexicalName=``,this.flags=e}},We=class{static{x(this,`ScopeHandler`)}constructor(e,t){this.parser=void 0,this.scopeStack=[],this.inModule=void 0,this.undefinedExports=new Map,this.parser=e,this.inModule=t}get inTopLevel(){return(this.currentScope().flags&1)>0}get inFunction(){return(this.currentVarScopeFlags()&2)>0}get allowSuper(){return(this.currentThisScopeFlags()&16)>0}get allowDirectSuper(){return(this.currentThisScopeFlags()&32)>0}get inClass(){return(this.currentThisScopeFlags()&64)>0}get inClassAndNotInNonArrowFunction(){let e=this.currentThisScopeFlags();return(e&64)>0&&(e&2)==0}get inStaticBlock(){for(let e=this.scopeStack.length-1;;e--){let{flags:t}=this.scopeStack[e];if(t&128)return!0;if(t&451)return!1}}get inNonArrowFunction(){return(this.currentThisScopeFlags()&2)>0}get treatFunctionsAsVar(){return this.treatFunctionsAsVarInScope(this.currentScope())}createScope(e){return new Ue(e)}enter(e){this.scopeStack.push(this.createScope(e))}exit(){return this.scopeStack.pop().flags}treatFunctionsAsVarInScope(e){return!!(e.flags&130||!this.parser.inModule&&e.flags&1)}declareName(e,t,n){let r=this.currentScope();if(t&8||t&16){this.checkRedeclarationInScope(r,e,t,n);let i=r.names.get(e)||0;t&16?i|=4:(r.firstLexicalName||=e,i|=2),r.names.set(e,i),t&8&&this.maybeExportDefined(r,e)}else if(t&4)for(let i=this.scopeStack.length-1;i>=0&&(r=this.scopeStack[i],this.checkRedeclarationInScope(r,e,t,n),r.names.set(e,(r.names.get(e)||0)|1),this.maybeExportDefined(r,e),!(r.flags&387));--i);this.parser.inModule&&r.flags&1&&this.undefinedExports.delete(e)}maybeExportDefined(e,t){this.parser.inModule&&e.flags&1&&this.undefinedExports.delete(t)}checkRedeclarationInScope(e,t,n,r){this.isRedeclaredInScope(e,t,n)&&this.parser.raise(_.VarRedeclaration,r,{identifierName:t})}isRedeclaredInScope(e,t,n){if(!(n&1))return!1;if(n&8)return e.names.has(t);let r=e.names.get(t);return n&16?(r&2)>0||!this.treatFunctionsAsVarInScope(e)&&(r&1)>0:(r&2)>0&&!(e.flags&8&&e.firstLexicalName===t)||!this.treatFunctionsAsVarInScope(e)&&(r&4)>0}checkLocalExport(e){let{name:t}=e;this.scopeStack[0].names.has(t)||this.undefinedExports.set(t,e.loc.start)}currentScope(){return this.scopeStack[this.scopeStack.length-1]}currentVarScopeFlags(){for(let e=this.scopeStack.length-1;;e--){let{flags:t}=this.scopeStack[e];if(t&387)return t}}currentThisScopeFlags(){for(let e=this.scopeStack.length-1;;e--){let{flags:t}=this.scopeStack[e];if(t&451&&!(t&4))return t}}},Ge=class extends Ue{static{x(this,`FlowScope`)}constructor(...e){super(...e),this.declareFunctions=new Set}},Ke=class extends We{static{x(this,`FlowScopeHandler`)}createScope(e){return new Ge(e)}declareName(e,t,n){let r=this.currentScope();if(t&2048){this.checkRedeclarationInScope(r,e,t,n),this.maybeExportDefined(r,e),r.declareFunctions.add(e);return}super.declareName(e,t,n)}isRedeclaredInScope(e,t,n){if(super.isRedeclaredInScope(e,t,n))return!0;if(n&2048&&!e.declareFunctions.has(t)){let n=e.names.get(t);return(n&4)>0||(n&2)>0}return!1}checkLocalExport(e){this.scopeStack[0].declareFunctions.has(e.name)||super.checkLocalExport(e)}},qe=class{static{x(this,`BaseParser`)}constructor(){this.sawUnambiguousESM=!1,this.ambiguousScriptDifferentAst=!1}sourceToOffsetPos(e){return e+this.startIndex}offsetToSourcePos(e){return e-this.startIndex}hasPlugin(e){if(typeof e==`string`)return this.plugins.has(e);{let[t,n]=e;if(!this.hasPlugin(t))return!1;let r=this.plugins.get(t);for(let e of Object.keys(n))if(r?.[e]!==n[e])return!1;return!0}}getPluginOption(e,t){return this.plugins.get(e)?.[t]}};function Je(e,t){e.trailingComments===void 0?e.trailingComments=t:e.trailingComments.unshift(...t)}x(Je,`setTrailingComments`);function Ye(e,t){e.leadingComments===void 0?e.leadingComments=t:e.leadingComments.unshift(...t)}x(Ye,`setLeadingComments`);function Xe(e,t){e.innerComments===void 0?e.innerComments=t:e.innerComments.unshift(...t)}x(Xe,`setInnerComments`);function Ze(e,t,n){let r=null,i=t.length;for(;r===null&&i>0;)r=t[--i];r===null||r.start>n.start?Xe(e,n.comments):Je(r,n.comments)}x(Ze,`adjustInnerComments`);var Qe=class extends qe{static{x(this,`CommentsParser`)}addComment(e){this.filename&&(e.loc.filename=this.filename);let{commentsLen:t}=this.state;this.comments.length!==t&&(this.comments.length=t),this.comments.push(e),this.state.commentsLen++}processComment(e){let{commentStack:t}=this.state,n=t.length;if(n===0)return;let r=n-1,i=t[r];i.start===e.end&&(i.leadingNode=e,r--);let{start:a}=e;for(;r>=0;r--){let n=t[r],i=n.end;if(i>a)n.containingNode=e,this.finalizeComment(n),t.splice(r,1);else{i===a&&(n.trailingNode=e);break}}}finalizeComment(e){let{comments:t}=e;if(e.leadingNode!==null||e.trailingNode!==null)e.leadingNode!==null&&Je(e.leadingNode,t),e.trailingNode!==null&&Ye(e.trailingNode,t);else{let{containingNode:n,start:r}=e;if(this.input.charCodeAt(this.offsetToSourcePos(r)-1)===44)switch(n.type){case`ObjectExpression`:case`ObjectPattern`:case`RecordExpression`:Ze(n,n.properties,e);break;case`CallExpression`:case`OptionalCallExpression`:Ze(n,n.arguments,e);break;case`FunctionDeclaration`:case`FunctionExpression`:case`ArrowFunctionExpression`:case`ObjectMethod`:case`ClassMethod`:case`ClassPrivateMethod`:Ze(n,n.params,e);break;case`ArrayExpression`:case`ArrayPattern`:case`TupleExpression`:Ze(n,n.elements,e);break;case`ExportNamedDeclaration`:case`ImportDeclaration`:Ze(n,n.specifiers,e);break;default:Xe(n,t)}else Xe(n,t)}}finalizeRemainingComments(){let{commentStack:e}=this.state;for(let t=e.length-1;t>=0;t--)this.finalizeComment(e[t]);this.state.commentStack=[]}resetPreviousNodeTrailingComments(e){let{commentStack:t}=this.state,{length:n}=t;if(n===0)return;let r=t[n-1];r.leadingNode===e&&(r.leadingNode=null)}resetPreviousIdentifierLeadingComments(e){let{commentStack:t}=this.state,{length:n}=t;n!==0&&(t[n-1].trailingNode===e?t[n-1].trailingNode=null:n>=2&&t[n-2].trailingNode===e&&(t[n-2].trailingNode=null))}takeSurroundingComments(e,t,n){let{commentStack:r}=this.state,i=r.length;if(i===0)return;let a=i-1;for(;a>=0;a--){let i=r[a],o=i.end;if(i.start===n)i.leadingNode=e;else if(o===t)i.trailingNode=e;else if(o<t)break}}},$e=RegExp(`\\r\\n|[\\r\\n\\u2028\\u2029]`,`g`);function et(e){switch(e){case 10:case 13:case 8232:case 8233:return!0;default:return!1}}x(et,`isNewLine`);function tt(e,t,n){for(let r=t;r<n;r++)if(et(e.charCodeAt(r)))return!0;return!1}x(tt,`hasNewLine`);var nt=/(?:\s|\/\/.*|\/\*[^]*?\*\/)*/g,rt=/(?:[^\S\n\r\u2028\u2029]|\/\/.*|\/\*.*?\*\/)*/g;function it(e){switch(e){case 9:case 11:case 12:case 32:case 160:case 5760:case 8192:case 8193:case 8194:case 8195:case 8196:case 8197:case 8198:case 8199:case 8200:case 8201:case 8202:case 8239:case 8287:case 12288:case 65279:return!0;default:return!1}}x(it,`isWhitespace`);var U=class e{static{x(this,`State`)}constructor(){this.flags=1024,this.startIndex=void 0,this.curLine=void 0,this.lineStart=void 0,this.startLoc=void 0,this.endLoc=void 0,this.errors=[],this.potentialArrowAt=-1,this.noArrowAt=[],this.noArrowParamsConversionAt=[],this.topicContext={maxNumOfResolvableTopics:0,maxTopicIndex:null},this.labels=[],this.commentsLen=0,this.commentStack=[],this.pos=0,this.type=140,this.value=null,this.start=0,this.end=0,this.lastTokEndLoc=null,this.lastTokStartLoc=null,this.context=[w.brace],this.firstInvalidTemplateEscapePos=null,this.strictErrors=new Map,this.tokensLength=0}get strict(){return(this.flags&1)>0}set strict(e){e?this.flags|=1:this.flags&=-2}init({strictMode:e,sourceType:t,startIndex:r,startLine:i,startColumn:a}){this.strict=e===!1?!1:e===!0?!0:t===`module`,this.startIndex=r,this.curLine=i,this.lineStart=-a,this.startLoc=this.endLoc=new n(i,a,r)}get maybeInArrowParameters(){return(this.flags&2)>0}set maybeInArrowParameters(e){e?this.flags|=2:this.flags&=-3}get inType(){return(this.flags&4)>0}set inType(e){e?this.flags|=4:this.flags&=-5}get noAnonFunctionType(){return(this.flags&8)>0}set noAnonFunctionType(e){e?this.flags|=8:this.flags&=-9}get hasFlowComment(){return(this.flags&16)>0}set hasFlowComment(e){e?this.flags|=16:this.flags&=-17}get isAmbientContext(){return(this.flags&32)>0}set isAmbientContext(e){e?this.flags|=32:this.flags&=-33}get inAbstractClass(){return(this.flags&64)>0}set inAbstractClass(e){e?this.flags|=64:this.flags&=-65}get inDisallowConditionalTypesContext(){return(this.flags&128)>0}set inDisallowConditionalTypesContext(e){e?this.flags|=128:this.flags&=-129}get soloAwait(){return(this.flags&256)>0}set soloAwait(e){e?this.flags|=256:this.flags&=-257}get inFSharpPipelineDirectBody(){return(this.flags&512)>0}set inFSharpPipelineDirectBody(e){e?this.flags|=512:this.flags&=-513}get canStartJSXElement(){return(this.flags&1024)>0}set canStartJSXElement(e){e?this.flags|=1024:this.flags&=-1025}get containsEsc(){return(this.flags&2048)>0}set containsEsc(e){e?this.flags|=2048:this.flags&=-2049}get hasTopLevelAwait(){return(this.flags&4096)>0}set hasTopLevelAwait(e){e?this.flags|=4096:this.flags&=-4097}curPosition(){return new n(this.curLine,this.pos-this.lineStart,this.pos+this.startIndex)}clone(){let t=new e;return t.flags=this.flags,t.startIndex=this.startIndex,t.curLine=this.curLine,t.lineStart=this.lineStart,t.startLoc=this.startLoc,t.endLoc=this.endLoc,t.errors=this.errors.slice(),t.potentialArrowAt=this.potentialArrowAt,t.noArrowAt=this.noArrowAt.slice(),t.noArrowParamsConversionAt=this.noArrowParamsConversionAt.slice(),t.topicContext=this.topicContext,t.labels=this.labels.slice(),t.commentsLen=this.commentsLen,t.commentStack=this.commentStack.slice(),t.pos=this.pos,t.type=this.type,t.value=this.value,t.start=this.start,t.end=this.end,t.lastTokEndLoc=this.lastTokEndLoc,t.lastTokStartLoc=this.lastTokStartLoc,t.context=this.context.slice(),t.firstInvalidTemplateEscapePos=this.firstInvalidTemplateEscapePos,t.strictErrors=this.strictErrors,t.tokensLength=this.tokensLength,t}},at=x(function(e){return e>=48&&e<=57},`isDigit`),ot={decBinOct:new Set([46,66,69,79,95,98,101,111]),hex:new Set([46,88,95,120])},st={bin:x(e=>e===48||e===49,`bin`),oct:x(e=>e>=48&&e<=55,`oct`),dec:x(e=>e>=48&&e<=57,`dec`),hex:x(e=>e>=48&&e<=57||e>=65&&e<=70||e>=97&&e<=102,`hex`)};function ct(e,t,n,r,i,a){let o=n,s=r,c=i,l=``,u=null,d=n,{length:f}=t;for(;;){if(n>=f){a.unterminated(o,s,c),l+=t.slice(d,n);break}let p=t.charCodeAt(n);if(lt(e,p,t,n)){l+=t.slice(d,n);break}if(p===92){l+=t.slice(d,n);let o=ut(t,n,r,i,e===`template`,a);o.ch===null&&!u?u={pos:n,lineStart:r,curLine:i}:l+=o.ch,{pos:n,lineStart:r,curLine:i}=o,d=n}else p===8232||p===8233?(++n,++i,r=n):p===10||p===13?e===`template`?(l+=t.slice(d,n)+`
104
104
  `,++n,p===13&&t.charCodeAt(n)===10&&++n,++i,d=r=n):a.unterminated(o,s,c):++n}return{pos:n,str:l,firstInvalidLoc:u,lineStart:r,curLine:i,containsInvalid:!!u}}x(ct,`readStringContents`);function lt(e,t,n,r){return e===`template`?t===96||t===36&&n.charCodeAt(r+1)===123:t===(e===`double`?34:39)}x(lt,`isStringEnd`);function ut(e,t,n,r,i,a){let o=!i;t++;let s=x(e=>({pos:t,ch:e,lineStart:n,curLine:r}),`res`),c=e.charCodeAt(t++);switch(c){case 110:return s(`
105
- `);case 114:return s(`\r`);case 120:{let i;return{code:i,pos:t}=dt(e,t,n,r,2,!1,o,a),s(i===null?null:String.fromCharCode(i))}case 117:{let i;return{code:i,pos:t}=pt(e,t,n,r,o,a),s(i===null?null:String.fromCodePoint(i))}case 116:return s(` `);case 98:return s(`\b`);case 118:return s(`\v`);case 102:return s(`\f`);case 13:e.charCodeAt(t)===10&&++t;case 10:n=t,++r;case 8232:case 8233:return s(``);case 56:case 57:if(i)return s(null);a.strictNumericEscape(t-1,n,r);default:if(c>=48&&c<=55){let o=t-1,c=/^[0-7]+/.exec(e.slice(o,t+2))[0],l=parseInt(c,8);l>255&&(c=c.slice(0,-1),l=parseInt(c,8)),t+=c.length-1;let u=e.charCodeAt(t);if(c!==`0`||u===56||u===57){if(i)return s(null);a.strictNumericEscape(o,n,r)}return s(String.fromCharCode(l))}return s(String.fromCharCode(c))}}x(ut,`readEscapedChar`);function dt(e,t,n,r,i,a,o,s){let c=t,l;return{n:l,pos:t}=ft(e,t,n,r,16,i,a,!1,s,!o),l===null&&(o?s.invalidEscapeSequence(c,n,r):t=c-1),{code:l,pos:t}}x(dt,`readHexChar`);function ft(e,t,n,r,i,a,o,s,c,l){let u=t,d=i===16?ot.hex:ot.decBinOct,f=i===16?st.hex:i===10?st.dec:i===8?st.oct:st.bin,p=!1,m=0;for(let u=0,h=a??1/0;u<h;++u){let a=e.charCodeAt(t),u;if(a===95&&s!==`bail`){let i=e.charCodeAt(t-1),a=e.charCodeAt(t+1);if(!s){if(l)return{n:null,pos:t};c.numericSeparatorInEscapeSequence(t,n,r)}else if(Number.isNaN(a)||!f(a)||d.has(i)||d.has(a)){if(l)return{n:null,pos:t};c.unexpectedNumericSeparator(t,n,r)}++t;continue}if(u=a>=97?a-97+10:a>=65?a-65+10:at(a)?a-48:1/0,u>=i){if(u<=9&&l)return{n:null,pos:t};if(u<=9&&c.invalidDigit(t,n,r,i))u=0;else if(o)u=0,p=!0;else break}++t,m=m*i+u}return t===u||a!=null&&t-u!==a||p?{n:null,pos:t}:{n:m,pos:t}}x(ft,`readInt`);function pt(e,t,n,r,i,a){let o=e.charCodeAt(t),s;if(o===123){if(++t,{code:s,pos:t}=dt(e,t,n,r,e.indexOf(`}`,t)-t,!0,i,a),++t,s!==null&&s>1114111)if(i)a.invalidCodePoint(t,n,r);else return{code:null,pos:t}}else ({code:s,pos:t}=dt(e,t,n,r,4,!1,i,a));return{code:s,pos:t}}x(pt,`readCodePoint`);function mt(e,t,r){return new n(r,e-t,e)}x(mt,`buildPosition`);var ht=new Set([103,109,115,105,121,117,100,118]),gt=class{static{x(this,`Token`)}constructor(e){let t=e.startIndex||0;this.type=e.type,this.value=e.value,this.start=t+e.start,this.end=t+e.end,this.loc=new r(e.startLoc,e.endLoc)}},_t=class extends Qe{static{x(this,`Tokenizer`)}constructor(e,t){super(),this.isLookahead=void 0,this.tokens=[],this.errorHandlers_readInt={invalidDigit:x((e,t,n,r)=>this.options.errorRecovery?(this.raise(_.InvalidDigit,mt(e,t,n),{radix:r}),!0):!1,`invalidDigit`),numericSeparatorInEscapeSequence:this.errorBuilder(_.NumericSeparatorInEscapeSequence),unexpectedNumericSeparator:this.errorBuilder(_.UnexpectedNumericSeparator)},this.errorHandlers_readCodePoint=Object.assign({},this.errorHandlers_readInt,{invalidEscapeSequence:this.errorBuilder(_.InvalidEscapeSequence),invalidCodePoint:this.errorBuilder(_.InvalidCodePoint)}),this.errorHandlers_readStringContents_string=Object.assign({},this.errorHandlers_readCodePoint,{strictNumericEscape:x((e,t,n)=>{this.recordStrictModeErrors(_.StrictNumericEscape,mt(e,t,n))},`strictNumericEscape`),unterminated:x((e,t,n)=>{throw this.raise(_.UnterminatedString,mt(e-1,t,n))},`unterminated`)}),this.errorHandlers_readStringContents_template=Object.assign({},this.errorHandlers_readCodePoint,{strictNumericEscape:this.errorBuilder(_.StrictNumericEscape),unterminated:x((e,t,n)=>{throw this.raise(_.UnterminatedTemplate,mt(e,t,n))},`unterminated`)}),this.state=new it,this.state.init(e),this.input=t,this.length=t.length,this.comments=[],this.isLookahead=!1}pushToken(e){this.tokens.length=this.state.tokensLength,this.tokens.push(e),++this.state.tokensLength}next(){this.checkKeywordEscapes(),this.options.tokens&&this.pushToken(new gt(this.state)),this.state.lastTokEndLoc=this.state.endLoc,this.state.lastTokStartLoc=this.state.startLoc,this.nextToken()}eat(e){return this.match(e)?(this.next(),!0):!1}match(e){return this.state.type===e}createLookaheadState(e){return{pos:e.pos,value:null,type:e.type,start:e.start,end:e.end,context:[this.curContext()],inType:e.inType,startLoc:e.startLoc,lastTokEndLoc:e.lastTokEndLoc,curLine:e.curLine,lineStart:e.lineStart,curPosition:e.curPosition}}lookahead(){let e=this.state;this.state=this.createLookaheadState(e),this.isLookahead=!0,this.nextToken(),this.isLookahead=!1;let t=this.state;return this.state=e,t}nextTokenStart(){return this.nextTokenStartSince(this.state.pos)}nextTokenStartSince(e){return nt.lastIndex=e,nt.test(this.input)?nt.lastIndex:e}lookaheadCharCode(){return this.input.charCodeAt(this.nextTokenStart())}nextTokenInLineStart(){return this.nextTokenInLineStartSince(this.state.pos)}nextTokenInLineStartSince(e){return rt.lastIndex=e,rt.test(this.input)?rt.lastIndex:e}lookaheadInLineCharCode(){return this.input.charCodeAt(this.nextTokenInLineStart())}codePointAtPos(e){let t=this.input.charCodeAt(e);if((t&64512)==55296&&++e<this.input.length){let n=this.input.charCodeAt(e);(n&64512)==56320&&(t=65536+((t&1023)<<10)+(n&1023))}return t}setStrict(e){this.state.strict=e,e&&(this.state.strictErrors.forEach(([e,t])=>this.raise(e,t)),this.state.strictErrors.clear())}curContext(){return this.state.context[this.state.context.length-1]}nextToken(){if(this.skipSpace(),this.state.start=this.state.pos,this.isLookahead||(this.state.startLoc=this.state.curPosition()),this.state.pos>=this.length){this.finishToken(140);return}this.getTokenFromCode(this.codePointAtPos(this.state.pos))}skipBlockComment(e){let t;this.isLookahead||(t=this.state.curPosition());let n=this.state.pos,i=this.input.indexOf(e,n+2);if(i===-1)throw this.raise(_.UnterminatedComment,this.state.curPosition());for(this.state.pos=i+e.length,$e.lastIndex=n+2;$e.test(this.input)&&$e.lastIndex<=i;)++this.state.curLine,this.state.lineStart=$e.lastIndex;if(this.isLookahead)return;let a={type:`CommentBlock`,value:this.input.slice(n+2,i),start:this.sourceToOffsetPos(n),end:this.sourceToOffsetPos(i+e.length),loc:new r(t,this.state.curPosition())};return this.options.tokens&&this.pushToken(a),a}skipLineComment(e){let t=this.state.pos,n;this.isLookahead||(n=this.state.curPosition());let i=this.input.charCodeAt(this.state.pos+=e);if(this.state.pos<this.length)for(;!et(i)&&++this.state.pos<this.length;)i=this.input.charCodeAt(this.state.pos);if(this.isLookahead)return;let a=this.state.pos,o={type:`CommentLine`,value:this.input.slice(t+e,a),start:this.sourceToOffsetPos(t),end:this.sourceToOffsetPos(a),loc:new r(n,this.state.curPosition())};return this.options.tokens&&this.pushToken(o),o}skipSpace(){let e=this.state.pos,t=[];loop:for(;this.state.pos<this.length;){let n=this.input.charCodeAt(this.state.pos);switch(n){case 32:case 160:case 9:++this.state.pos;break;case 13:this.input.charCodeAt(this.state.pos+1)===10&&++this.state.pos;case 10:case 8232:case 8233:++this.state.pos,++this.state.curLine,this.state.lineStart=this.state.pos;break;case 47:switch(this.input.charCodeAt(this.state.pos+1)){case 42:{let e=this.skipBlockComment(`*/`);e!==void 0&&(this.addComment(e),this.options.attachComment&&t.push(e));break}case 47:{let e=this.skipLineComment(2);e!==void 0&&(this.addComment(e),this.options.attachComment&&t.push(e));break}default:break loop}break;default:if(U(n))++this.state.pos;else if(n===45&&!this.inModule&&this.options.annexB){let n=this.state.pos;if(this.input.charCodeAt(n+1)===45&&this.input.charCodeAt(n+2)===62&&(e===0||this.state.lineStart>e)){let e=this.skipLineComment(3);e!==void 0&&(this.addComment(e),this.options.attachComment&&t.push(e))}else break loop}else if(n===60&&!this.inModule&&this.options.annexB){let e=this.state.pos;if(this.input.charCodeAt(e+1)===33&&this.input.charCodeAt(e+2)===45&&this.input.charCodeAt(e+3)===45){let e=this.skipLineComment(4);e!==void 0&&(this.addComment(e),this.options.attachComment&&t.push(e))}else break loop}else break loop}}if(t.length>0){let n=this.state.pos,r={start:this.sourceToOffsetPos(e),end:this.sourceToOffsetPos(n),comments:t,leadingNode:null,trailingNode:null,containingNode:null};this.state.commentStack.push(r)}}finishToken(e,t){this.state.end=this.state.pos,this.state.endLoc=this.state.curPosition();let n=this.state.type;this.state.type=e,this.state.value=t,this.isLookahead||this.updateContext(n)}replaceToken(e){this.state.type=e,this.updateContext()}readToken_numberSign(){if(this.state.pos===0&&this.readToken_interpreter())return;let e=this.state.pos+1,t=this.codePointAtPos(e);if(t>=48&&t<=57)throw this.raise(_.UnexpectedDigitAfterHash,this.state.curPosition());if(t===123||t===91&&this.hasPlugin(`recordAndTuple`)){if(this.expectPlugin(`recordAndTuple`),this.getPluginOption(`recordAndTuple`,`syntaxType`)===`bar`)throw this.raise(t===123?_.RecordExpressionHashIncorrectStartSyntaxType:_.TupleExpressionHashIncorrectStartSyntaxType,this.state.curPosition());this.state.pos+=2,t===123?this.finishToken(7):this.finishToken(1)}else Ae(t)?(++this.state.pos,this.finishToken(139,this.readWord1(t))):t===92?(++this.state.pos,this.finishToken(139,this.readWord1())):this.finishOp(27,1)}readToken_dot(){let e=this.input.charCodeAt(this.state.pos+1);if(e>=48&&e<=57){this.readNumber(!0);return}e===46&&this.input.charCodeAt(this.state.pos+2)===46?(this.state.pos+=3,this.finishToken(21)):(++this.state.pos,this.finishToken(16))}readToken_slash(){this.input.charCodeAt(this.state.pos+1)===61?this.finishOp(31,2):this.finishOp(56,1)}readToken_interpreter(){if(this.state.pos!==0||this.length<2)return!1;let e=this.input.charCodeAt(this.state.pos+1);if(e!==33)return!1;let t=this.state.pos;for(this.state.pos+=1;!et(e)&&++this.state.pos<this.length;)e=this.input.charCodeAt(this.state.pos);let n=this.input.slice(t+2,this.state.pos);return this.finishToken(28,n),!0}readToken_mult_modulo(e){let t=e===42?55:54,n=1,r=this.input.charCodeAt(this.state.pos+1);e===42&&r===42&&(n++,r=this.input.charCodeAt(this.state.pos+2),t=57),r===61&&!this.state.inType&&(n++,t=e===37?33:30),this.finishOp(t,n)}readToken_pipe_amp(e){let t=this.input.charCodeAt(this.state.pos+1);if(t===e){this.input.charCodeAt(this.state.pos+2)===61?this.finishOp(30,3):this.finishOp(e===124?41:42,2);return}if(e===124){if(t===62){this.finishOp(39,2);return}if(this.hasPlugin(`recordAndTuple`)&&t===125){if(this.getPluginOption(`recordAndTuple`,`syntaxType`)!==`bar`)throw this.raise(_.RecordExpressionBarIncorrectEndSyntaxType,this.state.curPosition());this.state.pos+=2,this.finishToken(9);return}if(this.hasPlugin(`recordAndTuple`)&&t===93){if(this.getPluginOption(`recordAndTuple`,`syntaxType`)!==`bar`)throw this.raise(_.TupleExpressionBarIncorrectEndSyntaxType,this.state.curPosition());this.state.pos+=2,this.finishToken(4);return}}if(t===61){this.finishOp(30,2);return}this.finishOp(e===124?43:45,1)}readToken_caret(){let e=this.input.charCodeAt(this.state.pos+1);e===61&&!this.state.inType?this.finishOp(32,2):e===94&&this.hasPlugin([`pipelineOperator`,{proposal:`hack`,topicToken:`^^`}])?(this.finishOp(37,2),this.input.codePointAt(this.state.pos)===94&&this.unexpected()):this.finishOp(44,1)}readToken_atSign(){this.input.charCodeAt(this.state.pos+1)===64&&this.hasPlugin([`pipelineOperator`,{proposal:`hack`,topicToken:`@@`}])?this.finishOp(38,2):this.finishOp(26,1)}readToken_plus_min(e){let t=this.input.charCodeAt(this.state.pos+1);if(t===e){this.finishOp(34,2);return}t===61?this.finishOp(30,2):this.finishOp(53,1)}readToken_lt(){let{pos:e}=this.state,t=this.input.charCodeAt(e+1);if(t===60){if(this.input.charCodeAt(e+2)===61){this.finishOp(30,3);return}this.finishOp(51,2);return}if(t===61){this.finishOp(49,2);return}this.finishOp(47,1)}readToken_gt(){let{pos:e}=this.state,t=this.input.charCodeAt(e+1);if(t===62){let t=this.input.charCodeAt(e+2)===62?3:2;if(this.input.charCodeAt(e+t)===61){this.finishOp(30,t+1);return}this.finishOp(52,t);return}if(t===61){this.finishOp(49,2);return}this.finishOp(48,1)}readToken_eq_excl(e){let t=this.input.charCodeAt(this.state.pos+1);if(t===61){this.finishOp(46,this.input.charCodeAt(this.state.pos+2)===61?3:2);return}if(e===61&&t===62){this.state.pos+=2,this.finishToken(19);return}this.finishOp(e===61?29:35,1)}readToken_question(){let e=this.input.charCodeAt(this.state.pos+1),t=this.input.charCodeAt(this.state.pos+2);e===63?t===61?this.finishOp(30,3):this.finishOp(40,2):e===46&&!(t>=48&&t<=57)?(this.state.pos+=2,this.finishToken(18)):(++this.state.pos,this.finishToken(17))}getTokenFromCode(e){switch(e){case 46:this.readToken_dot();return;case 40:++this.state.pos,this.finishToken(10);return;case 41:++this.state.pos,this.finishToken(11);return;case 59:++this.state.pos,this.finishToken(13);return;case 44:++this.state.pos,this.finishToken(12);return;case 91:if(this.hasPlugin(`recordAndTuple`)&&this.input.charCodeAt(this.state.pos+1)===124){if(this.getPluginOption(`recordAndTuple`,`syntaxType`)!==`bar`)throw this.raise(_.TupleExpressionBarIncorrectStartSyntaxType,this.state.curPosition());this.state.pos+=2,this.finishToken(2)}else ++this.state.pos,this.finishToken(0);return;case 93:++this.state.pos,this.finishToken(3);return;case 123:if(this.hasPlugin(`recordAndTuple`)&&this.input.charCodeAt(this.state.pos+1)===124){if(this.getPluginOption(`recordAndTuple`,`syntaxType`)!==`bar`)throw this.raise(_.RecordExpressionBarIncorrectStartSyntaxType,this.state.curPosition());this.state.pos+=2,this.finishToken(6)}else ++this.state.pos,this.finishToken(5);return;case 125:++this.state.pos,this.finishToken(8);return;case 58:this.hasPlugin(`functionBind`)&&this.input.charCodeAt(this.state.pos+1)===58?this.finishOp(15,2):(++this.state.pos,this.finishToken(14));return;case 63:this.readToken_question();return;case 96:this.readTemplateToken();return;case 48:{let e=this.input.charCodeAt(this.state.pos+1);if(e===120||e===88){this.readRadixNumber(16);return}if(e===111||e===79){this.readRadixNumber(8);return}if(e===98||e===66){this.readRadixNumber(2);return}}case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:this.readNumber(!1);return;case 34:case 39:this.readString(e);return;case 47:this.readToken_slash();return;case 37:case 42:this.readToken_mult_modulo(e);return;case 124:case 38:this.readToken_pipe_amp(e);return;case 94:this.readToken_caret();return;case 43:case 45:this.readToken_plus_min(e);return;case 60:this.readToken_lt();return;case 62:this.readToken_gt();return;case 61:case 33:this.readToken_eq_excl(e);return;case 126:this.finishOp(36,1);return;case 64:this.readToken_atSign();return;case 35:this.readToken_numberSign();return;case 92:this.readWord();return;default:if(Ae(e)){this.readWord(e);return}}throw this.raise(_.InvalidOrUnexpectedToken,this.state.curPosition(),{unexpected:String.fromCodePoint(e)})}finishOp(e,t){let n=this.input.slice(this.state.pos,this.state.pos+t);this.state.pos+=t,this.finishToken(e,n)}readRegexp(){let e=this.state.startLoc,t=this.state.start+1,n,r,{pos:a}=this.state;for(;;++a){if(a>=this.length)throw this.raise(_.UnterminatedRegExp,i(e,1));let t=this.input.charCodeAt(a);if(et(t))throw this.raise(_.UnterminatedRegExp,i(e,1));if(n)n=!1;else{if(t===91)r=!0;else if(t===93&&r)r=!1;else if(t===47&&!r)break;n=t===92}}let o=this.input.slice(t,a);++a;let s=``,c=x(()=>i(e,a+2-t),`nextPos`);for(;a<this.length;){let e=this.codePointAtPos(a),t=String.fromCharCode(e);if(ht.has(e))e===118?s.includes(`u`)&&this.raise(_.IncompatibleRegExpUVFlags,c()):e===117&&s.includes(`v`)&&this.raise(_.IncompatibleRegExpUVFlags,c()),s.includes(t)&&this.raise(_.DuplicateRegExpFlags,c());else if(H(e)||e===92)this.raise(_.MalformedRegExpFlags,c());else break;++a,s+=t}this.state.pos=a,this.finishToken(138,{pattern:o,flags:s})}readInt(e,t,n=!1,r=!0){let{n:i,pos:a}=ft(this.input,this.state.pos,this.state.lineStart,this.state.curLine,e,t,n,r,this.errorHandlers_readInt,!1);return this.state.pos=a,i}readRadixNumber(e){let t=this.state.pos,n=this.state.curPosition(),r=!1;this.state.pos+=2;let a=this.readInt(e);a??this.raise(_.InvalidDigit,i(n,2),{radix:e});let o=this.input.charCodeAt(this.state.pos);if(o===110)++this.state.pos,r=!0;else if(o===109)throw this.raise(_.InvalidDecimal,n);if(Ae(this.codePointAtPos(this.state.pos)))throw this.raise(_.NumberIdentifier,this.state.curPosition());if(r){let e=this.input.slice(t,this.state.pos).replace(/[_n]/g,``);this.finishToken(136,e);return}this.finishToken(135,a)}readNumber(e){let t=this.state.pos,n=this.state.curPosition(),r=!1,a=!1,o=!1,s=!1;!e&&this.readInt(10)===null&&this.raise(_.InvalidNumber,this.state.curPosition());let c=this.state.pos-t>=2&&this.input.charCodeAt(t)===48;if(c){let e=this.input.slice(t,this.state.pos);if(this.recordStrictModeErrors(_.StrictOctalLiteral,n),!this.state.strict){let t=e.indexOf(`_`);t>0&&this.raise(_.ZeroDigitNumericSeparator,i(n,t))}s=c&&!/[89]/.test(e)}let l=this.input.charCodeAt(this.state.pos);if(l===46&&!s&&(++this.state.pos,this.readInt(10),r=!0,l=this.input.charCodeAt(this.state.pos)),(l===69||l===101)&&!s&&(l=this.input.charCodeAt(++this.state.pos),(l===43||l===45)&&++this.state.pos,this.readInt(10)===null&&this.raise(_.InvalidOrMissingExponent,n),r=!0,o=!0,l=this.input.charCodeAt(this.state.pos)),l===110&&((r||c)&&this.raise(_.InvalidBigIntLiteral,n),++this.state.pos,a=!0),l===109){this.expectPlugin(`decimal`,this.state.curPosition()),(o||c)&&this.raise(_.InvalidDecimal,n),++this.state.pos;var u=!0}if(Ae(this.codePointAtPos(this.state.pos)))throw this.raise(_.NumberIdentifier,this.state.curPosition());let d=this.input.slice(t,this.state.pos).replace(/[_mn]/g,``);if(a){this.finishToken(136,d);return}if(u){this.finishToken(137,d);return}let f=s?parseInt(d,8):parseFloat(d);this.finishToken(135,f)}readCodePoint(e){let{code:t,pos:n}=pt(this.input,this.state.pos,this.state.lineStart,this.state.curLine,e,this.errorHandlers_readCodePoint);return this.state.pos=n,t}readString(e){let{str:t,pos:n,curLine:r,lineStart:i}=ct(e===34?`double`:`single`,this.input,this.state.pos+1,this.state.lineStart,this.state.curLine,this.errorHandlers_readStringContents_string);this.state.pos=n+1,this.state.lineStart=i,this.state.curLine=r,this.finishToken(134,t)}readTemplateContinuation(){this.match(8)||this.unexpected(null,8),this.state.pos--,this.readTemplateToken()}readTemplateToken(){let e=this.input[this.state.pos],{str:t,firstInvalidLoc:r,pos:i,curLine:a,lineStart:o}=ct(`template`,this.input,this.state.pos+1,this.state.lineStart,this.state.curLine,this.errorHandlers_readStringContents_template);this.state.pos=i+1,this.state.lineStart=o,this.state.curLine=a,r&&(this.state.firstInvalidTemplateEscapePos=new n(r.curLine,r.pos-r.lineStart,this.sourceToOffsetPos(r.pos))),this.input.codePointAt(i)===96?this.finishToken(24,r?null:e+t+"`"):(this.state.pos++,this.finishToken(25,r?null:e+t+"${"))}recordStrictModeErrors(e,t){let n=t.index;this.state.strict&&!this.state.strictErrors.has(n)?this.raise(e,t):this.state.strictErrors.set(n,[e,t])}readWord1(e){this.state.containsEsc=!1;let t=``,n=this.state.pos,r=this.state.pos;for(e!==void 0&&(this.state.pos+=e<=65535?1:2);this.state.pos<this.length;){let e=this.codePointAtPos(this.state.pos);if(H(e))this.state.pos+=e<=65535?1:2;else if(e===92){this.state.containsEsc=!0,t+=this.input.slice(r,this.state.pos);let e=this.state.curPosition(),i=this.state.pos===n?Ae:H;if(this.input.charCodeAt(++this.state.pos)!==117){this.raise(_.MissingUnicodeEscape,this.state.curPosition()),r=this.state.pos-1;continue}++this.state.pos;let a=this.readCodePoint(!0);a!==null&&(i(a)||this.raise(_.EscapedCharNotAnIdentifier,e),t+=String.fromCodePoint(a)),r=this.state.pos}else break}return t+this.input.slice(r,this.state.pos)}readWord(e){let t=this.readWord1(e),n=ne.get(t);n===void 0?this.finishToken(132,t):this.finishToken(n,ye(n))}checkKeywordEscapes(){let{type:e}=this.state;he(e)&&this.state.containsEsc&&this.raise(_.InvalidEscapedReservedWord,this.state.startLoc,{reservedWord:ye(e)})}raise(e,t,r={}){let i=e(t instanceof n?t:t.loc.start,r);if(!this.options.errorRecovery)throw i;return this.isLookahead||this.state.errors.push(i),i}raiseOverwrite(e,t,r={}){let i=t instanceof n?t:t.loc.start,a=i.index,o=this.state.errors;for(let t=o.length-1;t>=0;t--){let n=o[t];if(n.loc.index===a)return o[t]=e(i,r);if(n.loc.index<a)break}return this.raise(e,t,r)}updateContext(e){}unexpected(e,t){throw this.raise(_.UnexpectedToken,e??this.state.startLoc,{expected:t?ye(t):null})}expectPlugin(e,t){if(this.hasPlugin(e))return!0;throw this.raise(_.MissingPlugin,t??this.state.startLoc,{missingPlugin:[e]})}expectOnePlugin(e){if(!e.some(e=>this.hasPlugin(e)))throw this.raise(_.MissingOneOfPlugins,this.state.startLoc,{missingPlugin:e})}errorBuilder(e){return(t,n,r)=>{this.raise(e,mt(t,n,r))}}},vt=class{static{x(this,`ClassScope`)}constructor(){this.privateNames=new Set,this.loneAccessors=new Map,this.undefinedPrivateNames=new Map}},yt=class{static{x(this,`ClassScopeHandler`)}constructor(e){this.parser=void 0,this.stack=[],this.undefinedPrivateNames=new Map,this.parser=e}current(){return this.stack[this.stack.length-1]}enter(){this.stack.push(new vt)}exit(){let e=this.stack.pop(),t=this.current();for(let[n,r]of Array.from(e.undefinedPrivateNames))t?t.undefinedPrivateNames.has(n)||t.undefinedPrivateNames.set(n,r):this.parser.raise(_.InvalidPrivateFieldResolution,r,{identifierName:n})}declarePrivateName(e,t,n){let{privateNames:r,loneAccessors:i,undefinedPrivateNames:a}=this.current(),o=r.has(e);if(t&3){let n=o&&i.get(e);if(n){let r=n&4,a=t&4;o=(n&3)==(t&3)||r!==a,o||i.delete(e)}else o||i.set(e,t)}o&&this.parser.raise(_.PrivateNameRedeclaration,n,{identifierName:e}),r.add(e),a.delete(e)}usePrivateName(e,t){let n;for(n of this.stack)if(n.privateNames.has(e))return;n?n.undefinedPrivateNames.set(e,t):this.parser.raise(_.InvalidPrivateFieldResolution,t,{identifierName:e})}},bt=class{static{x(this,`ExpressionScope`)}constructor(e=0){this.type=e}canBeArrowParameterDeclaration(){return this.type===2||this.type===1}isCertainlyParameterDeclaration(){return this.type===3}},xt=class extends bt{static{x(this,`ArrowHeadParsingScope`)}constructor(e){super(e),this.declarationErrors=new Map}recordDeclarationError(e,t){let n=t.index;this.declarationErrors.set(n,[e,t])}clearDeclarationError(e){this.declarationErrors.delete(e)}iterateErrors(e){this.declarationErrors.forEach(e)}},St=class{static{x(this,`ExpressionScopeHandler`)}constructor(e){this.parser=void 0,this.stack=[new bt],this.parser=e}enter(e){this.stack.push(e)}exit(){this.stack.pop()}recordParameterInitializerError(e,t){let n=t.loc.start,{stack:r}=this,i=r.length-1,a=r[i];for(;!a.isCertainlyParameterDeclaration();){if(a.canBeArrowParameterDeclaration())a.recordDeclarationError(e,n);else return;a=r[--i]}this.parser.raise(e,n)}recordArrowParameterBindingError(e,t){let{stack:n}=this,r=n[n.length-1],i=t.loc.start;if(r.isCertainlyParameterDeclaration())this.parser.raise(e,i);else if(r.canBeArrowParameterDeclaration())r.recordDeclarationError(e,i);else return}recordAsyncArrowParametersError(e){let{stack:t}=this,n=t.length-1,r=t[n];for(;r.canBeArrowParameterDeclaration();)r.type===2&&r.recordDeclarationError(_.AwaitBindingIdentifier,e),r=t[--n]}validateAsPattern(){let{stack:e}=this,t=e[e.length-1];t.canBeArrowParameterDeclaration()&&t.iterateErrors(([t,n])=>{this.parser.raise(t,n);let r=e.length-2,i=e[r];for(;i.canBeArrowParameterDeclaration();)i.clearDeclarationError(n.index),i=e[--r]})}};function Ct(){return new bt(3)}x(Ct,`newParameterDeclarationScope`);function wt(){return new xt(1)}x(wt,`newArrowHeadScope`);function Tt(){return new xt(2)}x(Tt,`newAsyncArrowScope`);function Et(){return new bt}x(Et,`newExpressionScope`);var Dt=class{static{x(this,`ProductionParameterHandler`)}constructor(){this.stacks=[]}enter(e){this.stacks.push(e)}exit(){this.stacks.pop()}currentFlags(){return this.stacks[this.stacks.length-1]}get hasAwait(){return(this.currentFlags()&2)>0}get hasYield(){return(this.currentFlags()&1)>0}get hasReturn(){return(this.currentFlags()&4)>0}get hasIn(){return(this.currentFlags()&8)>0}};function Ot(e,t){return(e?2:0)|!!t}x(Ot,`functionFlags`);var kt=class extends _t{static{x(this,`UtilParser`)}addExtra(e,t,n,r=!0){if(!e)return;let{extra:i}=e;i??(i={},e.extra=i),r?i[t]=n:Object.defineProperty(i,t,{enumerable:r,value:n})}isContextual(e){return this.state.type===e&&!this.state.containsEsc}isUnparsedContextual(e,t){let n=e+t.length;if(this.input.slice(e,n)===t){let e=this.input.charCodeAt(n);return!(H(e)||(e&64512)==55296)}return!1}isLookaheadContextual(e){let t=this.nextTokenStart();return this.isUnparsedContextual(t,e)}eatContextual(e){return this.isContextual(e)?(this.next(),!0):!1}expectContextual(e,t){if(!this.eatContextual(e)){if(t!=null)throw this.raise(t,this.state.startLoc);this.unexpected(null,e)}}canInsertSemicolon(){return this.match(140)||this.match(8)||this.hasPrecedingLineBreak()}hasPrecedingLineBreak(){return tt(this.input,this.offsetToSourcePos(this.state.lastTokEndLoc.index),this.state.start)}hasFollowingLineBreak(){return tt(this.input,this.state.end,this.nextTokenStart())}isLineTerminator(){return this.eat(13)||this.canInsertSemicolon()}semicolon(e=!0){(e?this.isLineTerminator():this.eat(13))||this.raise(_.MissingSemicolon,this.state.lastTokEndLoc)}expect(e,t){this.eat(e)||this.unexpected(t,e)}tryParse(e,t=this.state.clone()){let n={node:null};try{let r=e((e=null)=>{throw n.node=e,n});if(this.state.errors.length>t.errors.length){let e=this.state;return this.state=t,this.state.tokensLength=e.tokensLength,{node:r,error:e.errors[t.errors.length],thrown:!1,aborted:!1,failState:e}}return{node:r,error:null,thrown:!1,aborted:!1,failState:null}}catch(e){let r=this.state;if(this.state=t,e instanceof SyntaxError)return{node:null,error:e,thrown:!0,aborted:!1,failState:r};if(e===n)return{node:n.node,error:null,thrown:!1,aborted:!0,failState:r};throw e}}checkExpressionErrors(e,t){if(!e)return!1;let{shorthandAssignLoc:n,doubleProtoLoc:r,privateKeyLoc:i,optionalParametersLoc:a}=e,o=!!n||!!r||!!a||!!i;if(!t)return o;n!=null&&this.raise(_.InvalidCoverInitializedName,n),r!=null&&this.raise(_.DuplicateProto,r),i!=null&&this.raise(_.UnexpectedPrivateField,i),a!=null&&this.unexpected(a)}isLiteralPropertyName(){return ue(this.state.type)}isPrivateName(e){return e.type===`PrivateName`}getPrivateNameSV(e){return e.id.name}hasPropertyAsPrivateName(e){return(e.type===`MemberExpression`||e.type===`OptionalMemberExpression`)&&this.isPrivateName(e.property)}isObjectProperty(e){return e.type===`ObjectProperty`}isObjectMethod(e){return e.type===`ObjectMethod`}initializeScopes(e=this.options.sourceType===`module`){let t=this.state.labels;this.state.labels=[];let n=this.exportedIdentifiers;this.exportedIdentifiers=new Set;let r=this.inModule;this.inModule=e;let i=this.scope,a=this.getScopeHandler();this.scope=new a(this,e);let o=this.prodParam;this.prodParam=new Dt;let s=this.classScope;this.classScope=new yt(this);let c=this.expressionScope;return this.expressionScope=new St(this),()=>{this.state.labels=t,this.exportedIdentifiers=n,this.inModule=r,this.scope=i,this.prodParam=o,this.classScope=s,this.expressionScope=c}}enterInitialScopes(){let e=0;this.inModule&&(e|=2),this.scope.enter(1),this.prodParam.enter(e)}checkDestructuringPrivate(e){let{privateKeyLoc:t}=e;t!==null&&this.expectPlugin(`destructuringPrivate`,t)}},At=class{static{x(this,`ExpressionErrors`)}constructor(){this.shorthandAssignLoc=null,this.doubleProtoLoc=null,this.privateKeyLoc=null,this.optionalParametersLoc=null}},jt=class{static{x(this,`Node`)}constructor(e,t,n){this.type=``,this.start=t,this.end=0,this.loc=new r(n),e!=null&&e.options.ranges&&(this.range=[t,0]),e!=null&&e.filename&&(this.loc.filename=e.filename)}},Mt=jt.prototype;Mt.__clone=function(){let e=new jt(void 0,this.start,this.loc.start),t=Object.keys(this);for(let n=0,r=t.length;n<r;n++){let r=t[n];r!==`leadingComments`&&r!==`trailingComments`&&r!==`innerComments`&&(e[r]=this[r])}return e};function Nt(e){return Pt(e)}x(Nt,`clonePlaceholder`);function Pt(e){let{type:t,start:n,end:r,loc:i,range:a,extra:o,name:s}=e,c=Object.create(Mt);return c.type=t,c.start=n,c.end=r,c.loc=i,c.range=a,c.extra=o,c.name=s,t===`Placeholder`&&(c.expectedNode=e.expectedNode),c}x(Pt,`cloneIdentifier`);function Ft(e){let{type:t,start:n,end:r,loc:i,range:a,extra:o}=e;if(t===`Placeholder`)return Nt(e);let s=Object.create(Mt);return s.type=t,s.start=n,s.end=r,s.loc=i,s.range=a,e.raw===void 0?s.extra=o:s.raw=e.raw,s.value=e.value,s}x(Ft,`cloneStringLiteral`);var It=class extends kt{static{x(this,`NodeUtils`)}startNode(){let e=this.state.startLoc;return new jt(this,e.index,e)}startNodeAt(e){return new jt(this,e.index,e)}startNodeAtNode(e){return this.startNodeAt(e.loc.start)}finishNode(e,t){return this.finishNodeAt(e,t,this.state.lastTokEndLoc)}finishNodeAt(e,t,n){return e.type=t,e.end=n.index,e.loc.end=n,this.options.ranges&&(e.range[1]=n.index),this.options.attachComment&&this.processComment(e),e}resetStartLocation(e,t){e.start=t.index,e.loc.start=t,this.options.ranges&&(e.range[0]=t.index)}resetEndLocation(e,t=this.state.lastTokEndLoc){e.end=t.index,e.loc.end=t,this.options.ranges&&(e.range[1]=t.index)}resetStartLocationFromNode(e,t){this.resetStartLocation(e,t.loc.start)}},Lt=new Set([`_`,`any`,`bool`,`boolean`,`empty`,`extends`,`false`,`interface`,`mixed`,`null`,`number`,`static`,`string`,`true`,`typeof`,`void`]),W=g`flow`({AmbiguousConditionalArrow:`Ambiguous expression: wrap the arrow functions in parentheses to disambiguate.`,AmbiguousDeclareModuleKind:"Found both `declare module.exports` and `declare export` in the same module. Modules can only have 1 since they are either an ES module or they are a CommonJS module.",AssignReservedType:x(({reservedType:e})=>`Cannot overwrite reserved type ${e}.`,`AssignReservedType`),DeclareClassElement:"The `declare` modifier can only appear on class fields.",DeclareClassFieldInitializer:"Initializers are not allowed in fields with the `declare` modifier.",DuplicateDeclareModuleExports:"Duplicate `declare module.exports` statement.",EnumBooleanMemberNotInitialized:x(({memberName:e,enumName:t})=>`Boolean enum members need to be initialized. Use either \`${e} = true,\` or \`${e} = false,\` in enum \`${t}\`.`,`EnumBooleanMemberNotInitialized`),EnumDuplicateMemberName:x(({memberName:e,enumName:t})=>`Enum member names need to be unique, but the name \`${e}\` has already been used before in enum \`${t}\`.`,`EnumDuplicateMemberName`),EnumInconsistentMemberValues:x(({enumName:e})=>`Enum \`${e}\` has inconsistent member initializers. Either use no initializers, or consistently use literals (either booleans, numbers, or strings) for all member initializers.`,`EnumInconsistentMemberValues`),EnumInvalidExplicitType:x(({invalidEnumType:e,enumName:t})=>`Enum type \`${e}\` is not valid. Use one of \`boolean\`, \`number\`, \`string\`, or \`symbol\` in enum \`${t}\`.`,`EnumInvalidExplicitType`),EnumInvalidExplicitTypeUnknownSupplied:x(({enumName:e})=>`Supplied enum type is not valid. Use one of \`boolean\`, \`number\`, \`string\`, or \`symbol\` in enum \`${e}\`.`,`EnumInvalidExplicitTypeUnknownSupplied`),EnumInvalidMemberInitializerPrimaryType:x(({enumName:e,memberName:t,explicitType:n})=>`Enum \`${e}\` has type \`${n}\`, so the initializer of \`${t}\` needs to be a ${n} literal.`,`EnumInvalidMemberInitializerPrimaryType`),EnumInvalidMemberInitializerSymbolType:x(({enumName:e,memberName:t})=>`Symbol enum members cannot be initialized. Use \`${t},\` in enum \`${e}\`.`,`EnumInvalidMemberInitializerSymbolType`),EnumInvalidMemberInitializerUnknownType:x(({enumName:e,memberName:t})=>`The enum member initializer for \`${t}\` needs to be a literal (either a boolean, number, or string) in enum \`${e}\`.`,`EnumInvalidMemberInitializerUnknownType`),EnumInvalidMemberName:x(({enumName:e,memberName:t,suggestion:n})=>`Enum member names cannot start with lowercase 'a' through 'z'. Instead of using \`${t}\`, consider using \`${n}\`, in enum \`${e}\`.`,`EnumInvalidMemberName`),EnumNumberMemberNotInitialized:x(({enumName:e,memberName:t})=>`Number enum members need to be initialized, e.g. \`${t} = 1\` in enum \`${e}\`.`,`EnumNumberMemberNotInitialized`),EnumStringMemberInconsistentlyInitialized:x(({enumName:e})=>`String enum members need to consistently either all use initializers, or use no initializers, in enum \`${e}\`.`,`EnumStringMemberInconsistentlyInitialized`),GetterMayNotHaveThisParam:"A getter cannot have a `this` parameter.",ImportReflectionHasImportType:"An `import module` declaration can not use `type` or `typeof` keyword.",ImportTypeShorthandOnlyInPureImport:"The `type` and `typeof` keywords on named imports can only be used on regular `import` statements. It cannot be used with `import type` or `import typeof` statements.",InexactInsideExact:`Explicit inexact syntax cannot appear inside an explicit exact object type.`,InexactInsideNonObject:`Explicit inexact syntax cannot appear in class or interface definitions.`,InexactVariance:`Explicit inexact syntax cannot have variance.`,InvalidNonTypeImportInDeclareModule:"Imports within a `declare module` body must always be `import type` or `import typeof`.",MissingTypeParamDefault:`Type parameter declaration needs a default, since a preceding type parameter declaration has a default.`,NestedDeclareModule:"`declare module` cannot be used inside another `declare module`.",NestedFlowComment:`Cannot have a flow comment inside another flow comment.`,PatternIsOptional:Object.assign({message:`A binding pattern parameter cannot be optional in an implementation signature.`},{reasonCode:`OptionalBindingPattern`}),SetterMayNotHaveThisParam:"A setter cannot have a `this` parameter.",SpreadVariance:`Spread properties cannot have variance.`,ThisParamAnnotationRequired:"A type annotation is required for the `this` parameter.",ThisParamBannedInConstructor:"Constructors cannot have a `this` parameter; constructors don't bind `this` like other functions.",ThisParamMayNotBeOptional:"The `this` parameter cannot be optional.",ThisParamMustBeFirst:"The `this` parameter must be the first function parameter.",ThisParamNoDefault:"The `this` parameter may not have a default value.",TypeBeforeInitializer:"Type annotations must come before default assignments, e.g. instead of `age = 25: number` use `age: number = 25`.",TypeCastInPattern:`The type cast expression is expected to be wrapped with parenthesis.`,UnexpectedExplicitInexactInObject:`Explicit inexact syntax must appear at the end of an inexact object.`,UnexpectedReservedType:x(({reservedType:e})=>`Unexpected reserved type ${e}.`,`UnexpectedReservedType`),UnexpectedReservedUnderscore:"`_` is only allowed as a type argument to call or new.",UnexpectedSpaceBetweenModuloChecks:"Spaces between `%` and `checks` are not allowed here.",UnexpectedSpreadType:`Spread operator cannot appear in class or interface definitions.`,UnexpectedSubtractionOperand:`Unexpected token, expected "number" or "bigint".`,UnexpectedTokenAfterTypeParameter:`Expected an arrow function after this type parameter declaration.`,UnexpectedTypeParameterBeforeAsyncArrowFunction:"Type parameters must come after the async keyword, e.g. instead of `<T> async () => {}`, use `async <T>() => {}`.",UnsupportedDeclareExportKind:x(({unsupportedExportKind:e,suggestion:t})=>`\`declare export ${e}\` is not supported. Use \`${t}\` instead.`,`UnsupportedDeclareExportKind`),UnsupportedStatementInDeclareModule:`Only declares and type imports are allowed inside declare module.`,UnterminatedFlowComment:`Unterminated flow-comment.`});function Rt(e){return e.type===`DeclareExportAllDeclaration`||e.type===`DeclareExportDeclaration`&&(!e.declaration||e.declaration.type!==`TypeAlias`&&e.declaration.type!==`InterfaceDeclaration`)}x(Rt,`isEsModuleType`);function zt(e){return e.importKind===`type`||e.importKind===`typeof`}x(zt,`hasTypeImportKind`);var G={const:`declare export var`,let:`declare export var`,type:`export type`,interface:`export interface`};function K(e,t){let n=[],r=[];for(let i=0;i<e.length;i++)(t(e[i],i,e)?n:r).push(e[i]);return[n,r]}x(K,`partition`);var q=/\*?\s*@((?:no)?flow)\b/,Bt=x(e=>class extends e{static{x(this,`FlowParserMixin`)}constructor(...e){super(...e),this.flowPragma=void 0}getScopeHandler(){return Ke}shouldParseTypes(){return this.getPluginOption(`flow`,`all`)||this.flowPragma===`flow`}finishToken(e,t){e!==134&&e!==13&&e!==28&&this.flowPragma===void 0&&(this.flowPragma=null),super.finishToken(e,t)}addComment(e){if(this.flowPragma===void 0){let t=q.exec(e.value);if(t)if(t[1]===`flow`)this.flowPragma=`flow`;else if(t[1]===`noflow`)this.flowPragma=`noflow`;else throw Error(`Unexpected flow pragma`)}super.addComment(e)}flowParseTypeInitialiser(e){let t=this.state.inType;this.state.inType=!0,this.expect(e||14);let n=this.flowParseType();return this.state.inType=t,n}flowParsePredicate(){let e=this.startNode(),t=this.state.startLoc;return this.next(),this.expectContextual(110),this.state.lastTokStartLoc.index>t.index+1&&this.raise(W.UnexpectedSpaceBetweenModuloChecks,t),this.eat(10)?(e.value=super.parseExpression(),this.expect(11),this.finishNode(e,`DeclaredPredicate`)):this.finishNode(e,`InferredPredicate`)}flowParseTypeAndPredicateInitialiser(){let e=this.state.inType;this.state.inType=!0,this.expect(14);let t=null,n=null;return this.match(54)?(this.state.inType=e,n=this.flowParsePredicate()):(t=this.flowParseType(),this.state.inType=e,this.match(54)&&(n=this.flowParsePredicate())),[t,n]}flowParseDeclareClass(e){return this.next(),this.flowParseInterfaceish(e,!0),this.finishNode(e,`DeclareClass`)}flowParseDeclareFunction(e){this.next();let t=e.id=this.parseIdentifier(),n=this.startNode(),r=this.startNode();this.match(47)?n.typeParameters=this.flowParseTypeParameterDeclaration():n.typeParameters=null,this.expect(10);let i=this.flowParseFunctionTypeParams();return n.params=i.params,n.rest=i.rest,n.this=i._this,this.expect(11),[n.returnType,e.predicate]=this.flowParseTypeAndPredicateInitialiser(),r.typeAnnotation=this.finishNode(n,`FunctionTypeAnnotation`),t.typeAnnotation=this.finishNode(r,`TypeAnnotation`),this.resetEndLocation(t),this.semicolon(),this.scope.declareName(e.id.name,2048,e.id.loc.start),this.finishNode(e,`DeclareFunction`)}flowParseDeclare(e,t){if(this.match(80))return this.flowParseDeclareClass(e);if(this.match(68))return this.flowParseDeclareFunction(e);if(this.match(74))return this.flowParseDeclareVariable(e);if(this.eatContextual(127))return this.match(16)?this.flowParseDeclareModuleExports(e):(t&&this.raise(W.NestedDeclareModule,this.state.lastTokStartLoc),this.flowParseDeclareModule(e));if(this.isContextual(130))return this.flowParseDeclareTypeAlias(e);if(this.isContextual(131))return this.flowParseDeclareOpaqueType(e);if(this.isContextual(129))return this.flowParseDeclareInterface(e);if(this.match(82))return this.flowParseDeclareExportDeclaration(e,t);this.unexpected()}flowParseDeclareVariable(e){return this.next(),e.id=this.flowParseTypeAnnotatableIdentifier(!0),this.scope.declareName(e.id.name,5,e.id.loc.start),this.semicolon(),this.finishNode(e,`DeclareVariable`)}flowParseDeclareModule(e){this.scope.enter(0),this.match(134)?e.id=super.parseExprAtom():e.id=this.parseIdentifier();let t=e.body=this.startNode(),n=t.body=[];for(this.expect(5);!this.match(8);){let e=this.startNode();this.match(83)?(this.next(),!this.isContextual(130)&&!this.match(87)&&this.raise(W.InvalidNonTypeImportInDeclareModule,this.state.lastTokStartLoc),super.parseImport(e)):(this.expectContextual(125,W.UnsupportedStatementInDeclareModule),e=this.flowParseDeclare(e,!0)),n.push(e)}this.scope.exit(),this.expect(8),this.finishNode(t,`BlockStatement`);let r=null,i=!1;return n.forEach(e=>{Rt(e)?(r===`CommonJS`&&this.raise(W.AmbiguousDeclareModuleKind,e),r=`ES`):e.type===`DeclareModuleExports`&&(i&&this.raise(W.DuplicateDeclareModuleExports,e),r===`ES`&&this.raise(W.AmbiguousDeclareModuleKind,e),r=`CommonJS`,i=!0)}),e.kind=r||`CommonJS`,this.finishNode(e,`DeclareModule`)}flowParseDeclareExportDeclaration(e,t){if(this.expect(82),this.eat(65))return this.match(68)||this.match(80)?e.declaration=this.flowParseDeclare(this.startNode()):(e.declaration=this.flowParseType(),this.semicolon()),e.default=!0,this.finishNode(e,`DeclareExportDeclaration`);if(this.match(75)||this.isLet()||(this.isContextual(130)||this.isContextual(129))&&!t){let e=this.state.value;throw this.raise(W.UnsupportedDeclareExportKind,this.state.startLoc,{unsupportedExportKind:e,suggestion:G[e]})}if(this.match(74)||this.match(68)||this.match(80)||this.isContextual(131))return e.declaration=this.flowParseDeclare(this.startNode()),e.default=!1,this.finishNode(e,`DeclareExportDeclaration`);if(this.match(55)||this.match(5)||this.isContextual(129)||this.isContextual(130)||this.isContextual(131))return e=this.parseExport(e,null),e.type===`ExportNamedDeclaration`&&(e.type=`ExportDeclaration`,e.default=!1,delete e.exportKind),e.type=`Declare`+e.type,e;this.unexpected()}flowParseDeclareModuleExports(e){return this.next(),this.expectContextual(111),e.typeAnnotation=this.flowParseTypeAnnotation(),this.semicolon(),this.finishNode(e,`DeclareModuleExports`)}flowParseDeclareTypeAlias(e){this.next();let t=this.flowParseTypeAlias(e);return t.type=`DeclareTypeAlias`,t}flowParseDeclareOpaqueType(e){this.next();let t=this.flowParseOpaqueType(e,!0);return t.type=`DeclareOpaqueType`,t}flowParseDeclareInterface(e){return this.next(),this.flowParseInterfaceish(e,!1),this.finishNode(e,`DeclareInterface`)}flowParseInterfaceish(e,t){if(e.id=this.flowParseRestrictedIdentifier(!t,!0),this.scope.declareName(e.id.name,t?17:8201,e.id.loc.start),this.match(47)?e.typeParameters=this.flowParseTypeParameterDeclaration():e.typeParameters=null,e.extends=[],this.eat(81))do e.extends.push(this.flowParseInterfaceExtends());while(!t&&this.eat(12));if(t){if(e.implements=[],e.mixins=[],this.eatContextual(117))do e.mixins.push(this.flowParseInterfaceExtends());while(this.eat(12));if(this.eatContextual(113))do e.implements.push(this.flowParseInterfaceExtends());while(this.eat(12))}e.body=this.flowParseObjectType({allowStatic:t,allowExact:!1,allowSpread:!1,allowProto:t,allowInexact:!1})}flowParseInterfaceExtends(){let e=this.startNode();return e.id=this.flowParseQualifiedTypeIdentifier(),this.match(47)?e.typeParameters=this.flowParseTypeParameterInstantiation():e.typeParameters=null,this.finishNode(e,`InterfaceExtends`)}flowParseInterface(e){return this.flowParseInterfaceish(e,!1),this.finishNode(e,`InterfaceDeclaration`)}checkNotUnderscore(e){e===`_`&&this.raise(W.UnexpectedReservedUnderscore,this.state.startLoc)}checkReservedType(e,t,n){Lt.has(e)&&this.raise(n?W.AssignReservedType:W.UnexpectedReservedType,t,{reservedType:e})}flowParseRestrictedIdentifier(e,t){return this.checkReservedType(this.state.value,this.state.startLoc,t),this.parseIdentifier(e)}flowParseTypeAlias(e){return e.id=this.flowParseRestrictedIdentifier(!1,!0),this.scope.declareName(e.id.name,8201,e.id.loc.start),this.match(47)?e.typeParameters=this.flowParseTypeParameterDeclaration():e.typeParameters=null,e.right=this.flowParseTypeInitialiser(29),this.semicolon(),this.finishNode(e,`TypeAlias`)}flowParseOpaqueType(e,t){return this.expectContextual(130),e.id=this.flowParseRestrictedIdentifier(!0,!0),this.scope.declareName(e.id.name,8201,e.id.loc.start),this.match(47)?e.typeParameters=this.flowParseTypeParameterDeclaration():e.typeParameters=null,e.supertype=null,this.match(14)&&(e.supertype=this.flowParseTypeInitialiser(14)),e.impltype=null,t||(e.impltype=this.flowParseTypeInitialiser(29)),this.semicolon(),this.finishNode(e,`OpaqueType`)}flowParseTypeParameter(e=!1){let t=this.state.startLoc,n=this.startNode(),r=this.flowParseVariance(),i=this.flowParseTypeAnnotatableIdentifier();return n.name=i.name,n.variance=r,n.bound=i.typeAnnotation,this.match(29)?(this.eat(29),n.default=this.flowParseType()):e&&this.raise(W.MissingTypeParamDefault,t),this.finishNode(n,`TypeParameter`)}flowParseTypeParameterDeclaration(){let e=this.state.inType,t=this.startNode();t.params=[],this.state.inType=!0,this.match(47)||this.match(143)?this.next():this.unexpected();let n=!1;do{let e=this.flowParseTypeParameter(n);t.params.push(e),e.default&&(n=!0),this.match(48)||this.expect(12)}while(!this.match(48));return this.expect(48),this.state.inType=e,this.finishNode(t,`TypeParameterDeclaration`)}flowParseTypeParameterInstantiation(){let e=this.startNode(),t=this.state.inType;e.params=[],this.state.inType=!0,this.expect(47);let n=this.state.noAnonFunctionType;for(this.state.noAnonFunctionType=!1;!this.match(48);)e.params.push(this.flowParseType()),this.match(48)||this.expect(12);return this.state.noAnonFunctionType=n,this.expect(48),this.state.inType=t,this.finishNode(e,`TypeParameterInstantiation`)}flowParseTypeParameterInstantiationCallOrNew(){let e=this.startNode(),t=this.state.inType;for(e.params=[],this.state.inType=!0,this.expect(47);!this.match(48);)e.params.push(this.flowParseTypeOrImplicitInstantiation()),this.match(48)||this.expect(12);return this.expect(48),this.state.inType=t,this.finishNode(e,`TypeParameterInstantiation`)}flowParseInterfaceType(){let e=this.startNode();if(this.expectContextual(129),e.extends=[],this.eat(81))do e.extends.push(this.flowParseInterfaceExtends());while(this.eat(12));return e.body=this.flowParseObjectType({allowStatic:!1,allowExact:!1,allowSpread:!1,allowProto:!1,allowInexact:!1}),this.finishNode(e,`InterfaceTypeAnnotation`)}flowParseObjectPropertyKey(){return this.match(135)||this.match(134)?super.parseExprAtom():this.parseIdentifier(!0)}flowParseObjectTypeIndexer(e,t,n){return e.static=t,this.lookahead().type===14?(e.id=this.flowParseObjectPropertyKey(),e.key=this.flowParseTypeInitialiser()):(e.id=null,e.key=this.flowParseType()),this.expect(3),e.value=this.flowParseTypeInitialiser(),e.variance=n,this.finishNode(e,`ObjectTypeIndexer`)}flowParseObjectTypeInternalSlot(e,t){return e.static=t,e.id=this.flowParseObjectPropertyKey(),this.expect(3),this.expect(3),this.match(47)||this.match(10)?(e.method=!0,e.optional=!1,e.value=this.flowParseObjectTypeMethodish(this.startNodeAt(e.loc.start))):(e.method=!1,this.eat(17)&&(e.optional=!0),e.value=this.flowParseTypeInitialiser()),this.finishNode(e,`ObjectTypeInternalSlot`)}flowParseObjectTypeMethodish(e){for(e.params=[],e.rest=null,e.typeParameters=null,e.this=null,this.match(47)&&(e.typeParameters=this.flowParseTypeParameterDeclaration()),this.expect(10),this.match(78)&&(e.this=this.flowParseFunctionTypeParam(!0),e.this.name=null,this.match(11)||this.expect(12));!this.match(11)&&!this.match(21);)e.params.push(this.flowParseFunctionTypeParam(!1)),this.match(11)||this.expect(12);return this.eat(21)&&(e.rest=this.flowParseFunctionTypeParam(!1)),this.expect(11),e.returnType=this.flowParseTypeInitialiser(),this.finishNode(e,`FunctionTypeAnnotation`)}flowParseObjectTypeCallProperty(e,t){let n=this.startNode();return e.static=t,e.value=this.flowParseObjectTypeMethodish(n),this.finishNode(e,`ObjectTypeCallProperty`)}flowParseObjectType({allowStatic:e,allowExact:t,allowSpread:n,allowProto:r,allowInexact:i}){let a=this.state.inType;this.state.inType=!0;let o=this.startNode();o.callProperties=[],o.properties=[],o.indexers=[],o.internalSlots=[];let s,c,l=!1;for(t&&this.match(6)?(this.expect(6),s=9,c=!0):(this.expect(5),s=8,c=!1),o.exact=c;!this.match(s);){let t=!1,a=null,s=null,u=this.startNode();if(r&&this.isContextual(118)){let t=this.lookahead();t.type!==14&&t.type!==17&&(this.next(),a=this.state.startLoc,e=!1)}if(e&&this.isContextual(106)){let e=this.lookahead();e.type!==14&&e.type!==17&&(this.next(),t=!0)}let d=this.flowParseVariance();if(this.eat(0))a!=null&&this.unexpected(a),this.eat(0)?(d&&this.unexpected(d.loc.start),o.internalSlots.push(this.flowParseObjectTypeInternalSlot(u,t))):o.indexers.push(this.flowParseObjectTypeIndexer(u,t,d));else if(this.match(10)||this.match(47))a!=null&&this.unexpected(a),d&&this.unexpected(d.loc.start),o.callProperties.push(this.flowParseObjectTypeCallProperty(u,t));else{let e=`init`;(this.isContextual(99)||this.isContextual(104))&&ue(this.lookahead().type)&&(e=this.state.value,this.next());let r=this.flowParseObjectTypeProperty(u,t,a,d,e,n,i??!c);r===null?(l=!0,s=this.state.lastTokStartLoc):o.properties.push(r)}this.flowObjectTypeSemicolon(),s&&!this.match(8)&&!this.match(9)&&this.raise(W.UnexpectedExplicitInexactInObject,s)}this.expect(s),n&&(o.inexact=l);let u=this.finishNode(o,`ObjectTypeAnnotation`);return this.state.inType=a,u}flowParseObjectTypeProperty(e,t,n,r,i,a,o){if(this.eat(21))return this.match(12)||this.match(13)||this.match(8)||this.match(9)?(a?o||this.raise(W.InexactInsideExact,this.state.lastTokStartLoc):this.raise(W.InexactInsideNonObject,this.state.lastTokStartLoc),r&&this.raise(W.InexactVariance,r),null):(a||this.raise(W.UnexpectedSpreadType,this.state.lastTokStartLoc),n!=null&&this.unexpected(n),r&&this.raise(W.SpreadVariance,r),e.argument=this.flowParseType(),this.finishNode(e,`ObjectTypeSpreadProperty`));{e.key=this.flowParseObjectPropertyKey(),e.static=t,e.proto=n!=null,e.kind=i;let o=!1;return this.match(47)||this.match(10)?(e.method=!0,n!=null&&this.unexpected(n),r&&this.unexpected(r.loc.start),e.value=this.flowParseObjectTypeMethodish(this.startNodeAt(e.loc.start)),(i===`get`||i===`set`)&&this.flowCheckGetterSetterParams(e),!a&&e.key.name===`constructor`&&e.value.this&&this.raise(W.ThisParamBannedInConstructor,e.value.this)):(i!==`init`&&this.unexpected(),e.method=!1,this.eat(17)&&(o=!0),e.value=this.flowParseTypeInitialiser(),e.variance=r),e.optional=o,this.finishNode(e,`ObjectTypeProperty`)}}flowCheckGetterSetterParams(e){let t=e.kind===`get`?0:1,n=e.value.params.length+ +!!e.value.rest;e.value.this&&this.raise(e.kind===`get`?W.GetterMayNotHaveThisParam:W.SetterMayNotHaveThisParam,e.value.this),n!==t&&this.raise(e.kind===`get`?_.BadGetterArity:_.BadSetterArity,e),e.kind===`set`&&e.value.rest&&this.raise(_.BadSetterRestParameter,e)}flowObjectTypeSemicolon(){!this.eat(13)&&!this.eat(12)&&!this.match(8)&&!this.match(9)&&this.unexpected()}flowParseQualifiedTypeIdentifier(e,t){e??=this.state.startLoc;let n=t||this.flowParseRestrictedIdentifier(!0);for(;this.eat(16);){let t=this.startNodeAt(e);t.qualification=n,t.id=this.flowParseRestrictedIdentifier(!0),n=this.finishNode(t,`QualifiedTypeIdentifier`)}return n}flowParseGenericType(e,t){let n=this.startNodeAt(e);return n.typeParameters=null,n.id=this.flowParseQualifiedTypeIdentifier(e,t),this.match(47)&&(n.typeParameters=this.flowParseTypeParameterInstantiation()),this.finishNode(n,`GenericTypeAnnotation`)}flowParseTypeofType(){let e=this.startNode();return this.expect(87),e.argument=this.flowParsePrimaryType(),this.finishNode(e,`TypeofTypeAnnotation`)}flowParseTupleType(){let e=this.startNode();for(e.types=[],this.expect(0);this.state.pos<this.length&&!this.match(3)&&(e.types.push(this.flowParseType()),!this.match(3));)this.expect(12);return this.expect(3),this.finishNode(e,`TupleTypeAnnotation`)}flowParseFunctionTypeParam(e){let t=null,n=!1,r=null,i=this.startNode(),a=this.lookahead(),o=this.state.type===78;return a.type===14||a.type===17?(o&&!e&&this.raise(W.ThisParamMustBeFirst,i),t=this.parseIdentifier(o),this.eat(17)&&(n=!0,o&&this.raise(W.ThisParamMayNotBeOptional,i)),r=this.flowParseTypeInitialiser()):r=this.flowParseType(),i.name=t,i.optional=n,i.typeAnnotation=r,this.finishNode(i,`FunctionTypeParam`)}reinterpretTypeAsFunctionTypeParam(e){let t=this.startNodeAt(e.loc.start);return t.name=null,t.optional=!1,t.typeAnnotation=e,this.finishNode(t,`FunctionTypeParam`)}flowParseFunctionTypeParams(e=[]){let t=null,n=null;for(this.match(78)&&(n=this.flowParseFunctionTypeParam(!0),n.name=null,this.match(11)||this.expect(12));!this.match(11)&&!this.match(21);)e.push(this.flowParseFunctionTypeParam(!1)),this.match(11)||this.expect(12);return this.eat(21)&&(t=this.flowParseFunctionTypeParam(!1)),{params:e,rest:t,_this:n}}flowIdentToTypeAnnotation(e,t,n){switch(n.name){case`any`:return this.finishNode(t,`AnyTypeAnnotation`);case`bool`:case`boolean`:return this.finishNode(t,`BooleanTypeAnnotation`);case`mixed`:return this.finishNode(t,`MixedTypeAnnotation`);case`empty`:return this.finishNode(t,`EmptyTypeAnnotation`);case`number`:return this.finishNode(t,`NumberTypeAnnotation`);case`string`:return this.finishNode(t,`StringTypeAnnotation`);case`symbol`:return this.finishNode(t,`SymbolTypeAnnotation`);default:return this.checkNotUnderscore(n.name),this.flowParseGenericType(e,n)}}flowParsePrimaryType(){let e=this.state.startLoc,t=this.startNode(),n,r,i=!1,a=this.state.noAnonFunctionType;switch(this.state.type){case 5:return this.flowParseObjectType({allowStatic:!1,allowExact:!1,allowSpread:!0,allowProto:!1,allowInexact:!0});case 6:return this.flowParseObjectType({allowStatic:!1,allowExact:!0,allowSpread:!0,allowProto:!1,allowInexact:!1});case 0:return this.state.noAnonFunctionType=!1,r=this.flowParseTupleType(),this.state.noAnonFunctionType=a,r;case 47:{let e=this.startNode();return e.typeParameters=this.flowParseTypeParameterDeclaration(),this.expect(10),n=this.flowParseFunctionTypeParams(),e.params=n.params,e.rest=n.rest,e.this=n._this,this.expect(11),this.expect(19),e.returnType=this.flowParseType(),this.finishNode(e,`FunctionTypeAnnotation`)}case 10:{let e=this.startNode();if(this.next(),!this.match(11)&&!this.match(21))if(L(this.state.type)||this.match(78)){let e=this.lookahead().type;i=e!==17&&e!==14}else i=!0;if(i){if(this.state.noAnonFunctionType=!1,r=this.flowParseType(),this.state.noAnonFunctionType=a,this.state.noAnonFunctionType||!(this.match(12)||this.match(11)&&this.lookahead().type===19))return this.expect(11),r;this.eat(12)}return n=r?this.flowParseFunctionTypeParams([this.reinterpretTypeAsFunctionTypeParam(r)]):this.flowParseFunctionTypeParams(),e.params=n.params,e.rest=n.rest,e.this=n._this,this.expect(11),this.expect(19),e.returnType=this.flowParseType(),e.typeParameters=null,this.finishNode(e,`FunctionTypeAnnotation`)}case 134:return this.parseLiteral(this.state.value,`StringLiteralTypeAnnotation`);case 85:case 86:return t.value=this.match(85),this.next(),this.finishNode(t,`BooleanLiteralTypeAnnotation`);case 53:if(this.state.value===`-`){if(this.next(),this.match(135))return this.parseLiteralAtNode(-this.state.value,`NumberLiteralTypeAnnotation`,t);if(this.match(136))return this.parseLiteralAtNode(-this.state.value,`BigIntLiteralTypeAnnotation`,t);throw this.raise(W.UnexpectedSubtractionOperand,this.state.startLoc)}this.unexpected();return;case 135:return this.parseLiteral(this.state.value,`NumberLiteralTypeAnnotation`);case 136:return this.parseLiteral(this.state.value,`BigIntLiteralTypeAnnotation`);case 88:return this.next(),this.finishNode(t,`VoidTypeAnnotation`);case 84:return this.next(),this.finishNode(t,`NullLiteralTypeAnnotation`);case 78:return this.next(),this.finishNode(t,`ThisTypeAnnotation`);case 55:return this.next(),this.finishNode(t,`ExistsTypeAnnotation`);case 87:return this.flowParseTypeofType();default:if(he(this.state.type)){let e=ye(this.state.type);return this.next(),super.createIdentifier(t,e)}else if(L(this.state.type))return this.isContextual(129)?this.flowParseInterfaceType():this.flowIdentToTypeAnnotation(e,t,this.parseIdentifier())}this.unexpected()}flowParsePostfixType(){let e=this.state.startLoc,t=this.flowParsePrimaryType(),n=!1;for(;(this.match(0)||this.match(18))&&!this.canInsertSemicolon();){let r=this.startNodeAt(e),i=this.eat(18);n||=i,this.expect(0),!i&&this.match(3)?(r.elementType=t,this.next(),t=this.finishNode(r,`ArrayTypeAnnotation`)):(r.objectType=t,r.indexType=this.flowParseType(),this.expect(3),n?(r.optional=i,t=this.finishNode(r,`OptionalIndexedAccessType`)):t=this.finishNode(r,`IndexedAccessType`))}return t}flowParsePrefixType(){let e=this.startNode();return this.eat(17)?(e.typeAnnotation=this.flowParsePrefixType(),this.finishNode(e,`NullableTypeAnnotation`)):this.flowParsePostfixType()}flowParseAnonFunctionWithoutParens(){let e=this.flowParsePrefixType();if(!this.state.noAnonFunctionType&&this.eat(19)){let t=this.startNodeAt(e.loc.start);return t.params=[this.reinterpretTypeAsFunctionTypeParam(e)],t.rest=null,t.this=null,t.returnType=this.flowParseType(),t.typeParameters=null,this.finishNode(t,`FunctionTypeAnnotation`)}return e}flowParseIntersectionType(){let e=this.startNode();this.eat(45);let t=this.flowParseAnonFunctionWithoutParens();for(e.types=[t];this.eat(45);)e.types.push(this.flowParseAnonFunctionWithoutParens());return e.types.length===1?t:this.finishNode(e,`IntersectionTypeAnnotation`)}flowParseUnionType(){let e=this.startNode();this.eat(43);let t=this.flowParseIntersectionType();for(e.types=[t];this.eat(43);)e.types.push(this.flowParseIntersectionType());return e.types.length===1?t:this.finishNode(e,`UnionTypeAnnotation`)}flowParseType(){let e=this.state.inType;this.state.inType=!0;let t=this.flowParseUnionType();return this.state.inType=e,t}flowParseTypeOrImplicitInstantiation(){if(this.state.type===132&&this.state.value===`_`){let e=this.state.startLoc,t=this.parseIdentifier();return this.flowParseGenericType(e,t)}else return this.flowParseType()}flowParseTypeAnnotation(){let e=this.startNode();return e.typeAnnotation=this.flowParseTypeInitialiser(),this.finishNode(e,`TypeAnnotation`)}flowParseTypeAnnotatableIdentifier(e){let t=e?this.parseIdentifier():this.flowParseRestrictedIdentifier();return this.match(14)&&(t.typeAnnotation=this.flowParseTypeAnnotation(),this.resetEndLocation(t)),t}typeCastToParameter(e){return e.expression.typeAnnotation=e.typeAnnotation,this.resetEndLocation(e.expression,e.typeAnnotation.loc.end),e.expression}flowParseVariance(){let e=null;return this.match(53)?(e=this.startNode(),this.state.value===`+`?e.kind=`plus`:e.kind=`minus`,this.next(),this.finishNode(e,`Variance`)):e}parseFunctionBody(e,t,n=!1){if(t){this.forwardNoArrowParamsConversionAt(e,()=>super.parseFunctionBody(e,!0,n));return}super.parseFunctionBody(e,!1,n)}parseFunctionBodyAndFinish(e,t,n=!1){if(this.match(14)){let t=this.startNode();[t.typeAnnotation,e.predicate]=this.flowParseTypeAndPredicateInitialiser(),e.returnType=t.typeAnnotation?this.finishNode(t,`TypeAnnotation`):null}return super.parseFunctionBodyAndFinish(e,t,n)}parseStatementLike(e){if(this.state.strict&&this.isContextual(129)){if(le(this.lookahead().type)){let e=this.startNode();return this.next(),this.flowParseInterface(e)}}else if(this.isContextual(126)){let e=this.startNode();return this.next(),this.flowParseEnumDeclaration(e)}let t=super.parseStatementLike(e);return this.flowPragma===void 0&&!this.isValidDirective(t)&&(this.flowPragma=null),t}parseExpressionStatement(e,t,n){if(t.type===`Identifier`){if(t.name===`declare`){if(this.match(80)||L(this.state.type)||this.match(68)||this.match(74)||this.match(82))return this.flowParseDeclare(e)}else if(L(this.state.type)){if(t.name===`interface`)return this.flowParseInterface(e);if(t.name===`type`)return this.flowParseTypeAlias(e);if(t.name===`opaque`)return this.flowParseOpaqueType(e,!1)}}return super.parseExpressionStatement(e,t,n)}shouldParseExportDeclaration(){let{type:e}=this.state;return e===126||pe(e)?!this.state.containsEsc:super.shouldParseExportDeclaration()}isExportDefaultSpecifier(){let{type:e}=this.state;return e===126||pe(e)?this.state.containsEsc:super.isExportDefaultSpecifier()}parseExportDefaultExpression(){if(this.isContextual(126)){let e=this.startNode();return this.next(),this.flowParseEnumDeclaration(e)}return super.parseExportDefaultExpression()}parseConditional(e,t,n){if(!this.match(17))return e;if(this.state.maybeInArrowParameters){let t=this.lookaheadCharCode();if(t===44||t===61||t===58||t===41)return this.setOptionalParametersError(n),e}this.expect(17);let r=this.state.clone(),i=this.state.noArrowAt,a=this.startNodeAt(t),{consequent:o,failed:s}=this.tryParseConditionalConsequent(),[c,l]=this.getArrowLikeExpressions(o);if(s||l.length>0){let e=[...i];if(l.length>0){this.state=r,this.state.noArrowAt=e;for(let t=0;t<l.length;t++)e.push(l[t].start);({consequent:o,failed:s}=this.tryParseConditionalConsequent()),[c,l]=this.getArrowLikeExpressions(o)}s&&c.length>1&&this.raise(W.AmbiguousConditionalArrow,r.startLoc),s&&c.length===1&&(this.state=r,e.push(c[0].start),this.state.noArrowAt=e,{consequent:o,failed:s}=this.tryParseConditionalConsequent())}return this.getArrowLikeExpressions(o,!0),this.state.noArrowAt=i,this.expect(14),a.test=e,a.consequent=o,a.alternate=this.forwardNoArrowParamsConversionAt(a,()=>this.parseMaybeAssign(void 0,void 0)),this.finishNode(a,`ConditionalExpression`)}tryParseConditionalConsequent(){this.state.noArrowParamsConversionAt.push(this.state.start);let e=this.parseMaybeAssignAllowIn(),t=!this.match(14);return this.state.noArrowParamsConversionAt.pop(),{consequent:e,failed:t}}getArrowLikeExpressions(e,t){let n=[e],r=[];for(;n.length!==0;){let e=n.pop();e.type===`ArrowFunctionExpression`&&e.body.type!==`BlockStatement`?(e.typeParameters||!e.returnType?this.finishArrowValidation(e):r.push(e),n.push(e.body)):e.type===`ConditionalExpression`&&(n.push(e.consequent),n.push(e.alternate))}return t?(r.forEach(e=>this.finishArrowValidation(e)),[r,[]]):K(r,e=>e.params.every(e=>this.isAssignable(e,!0)))}finishArrowValidation(e){this.toAssignableList(e.params,e.extra?.trailingCommaLoc,!1),this.scope.enter(6),super.checkParams(e,!1,!0),this.scope.exit()}forwardNoArrowParamsConversionAt(e,t){let n;return this.state.noArrowParamsConversionAt.includes(this.offsetToSourcePos(e.start))?(this.state.noArrowParamsConversionAt.push(this.state.start),n=t(),this.state.noArrowParamsConversionAt.pop()):n=t(),n}parseParenItem(e,t){let n=super.parseParenItem(e,t);if(this.eat(17)&&(n.optional=!0,this.resetEndLocation(e)),this.match(14)){let e=this.startNodeAt(t);return e.expression=n,e.typeAnnotation=this.flowParseTypeAnnotation(),this.finishNode(e,`TypeCastExpression`)}return n}assertModuleNodeAllowed(e){e.type===`ImportDeclaration`&&(e.importKind===`type`||e.importKind===`typeof`)||e.type===`ExportNamedDeclaration`&&e.exportKind===`type`||e.type===`ExportAllDeclaration`&&e.exportKind===`type`||super.assertModuleNodeAllowed(e)}parseExportDeclaration(e){if(this.isContextual(130)){e.exportKind=`type`;let t=this.startNode();return this.next(),this.match(5)?(e.specifiers=this.parseExportSpecifiers(!0),super.parseExportFrom(e),null):this.flowParseTypeAlias(t)}else if(this.isContextual(131)){e.exportKind=`type`;let t=this.startNode();return this.next(),this.flowParseOpaqueType(t,!1)}else if(this.isContextual(129)){e.exportKind=`type`;let t=this.startNode();return this.next(),this.flowParseInterface(t)}else if(this.isContextual(126)){e.exportKind=`value`;let t=this.startNode();return this.next(),this.flowParseEnumDeclaration(t)}else return super.parseExportDeclaration(e)}eatExportStar(e){return super.eatExportStar(e)?!0:this.isContextual(130)&&this.lookahead().type===55?(e.exportKind=`type`,this.next(),this.next(),!0):!1}maybeParseExportNamespaceSpecifier(e){let{startLoc:t}=this.state,n=super.maybeParseExportNamespaceSpecifier(e);return n&&e.exportKind===`type`&&this.unexpected(t),n}parseClassId(e,t,n){super.parseClassId(e,t,n),this.match(47)&&(e.typeParameters=this.flowParseTypeParameterDeclaration())}parseClassMember(e,t,n){let{startLoc:r}=this.state;if(this.isContextual(125)){if(super.parseClassMemberFromModifier(e,t))return;t.declare=!0}super.parseClassMember(e,t,n),t.declare&&(t.type!==`ClassProperty`&&t.type!==`ClassPrivateProperty`&&t.type!==`PropertyDefinition`?this.raise(W.DeclareClassElement,r):t.value&&this.raise(W.DeclareClassFieldInitializer,t.value))}isIterator(e){return e===`iterator`||e===`asyncIterator`}readIterator(){let e=super.readWord1(),t=`@@`+e;(!this.isIterator(e)||!this.state.inType)&&this.raise(_.InvalidIdentifier,this.state.curPosition(),{identifierName:t}),this.finishToken(132,t)}getTokenFromCode(e){let t=this.input.charCodeAt(this.state.pos+1);e===123&&t===124?this.finishOp(6,2):this.state.inType&&(e===62||e===60)?this.finishOp(e===62?48:47,1):this.state.inType&&e===63?t===46?this.finishOp(18,2):this.finishOp(17,1):Be(e,t,this.input.charCodeAt(this.state.pos+2))?(this.state.pos+=2,this.readIterator()):super.getTokenFromCode(e)}isAssignable(e,t){return e.type===`TypeCastExpression`?this.isAssignable(e.expression,t):super.isAssignable(e,t)}toAssignable(e,t=!1){!t&&e.type===`AssignmentExpression`&&e.left.type===`TypeCastExpression`&&(e.left=this.typeCastToParameter(e.left)),super.toAssignable(e,t)}toAssignableList(e,t,n){for(let t=0;t<e.length;t++){let n=e[t];n?.type===`TypeCastExpression`&&(e[t]=this.typeCastToParameter(n))}super.toAssignableList(e,t,n)}toReferencedList(e,t){for(let r=0;r<e.length;r++){var n;let i=e[r];i&&i.type===`TypeCastExpression`&&!((n=i.extra)!=null&&n.parenthesized)&&(e.length>1||!t)&&this.raise(W.TypeCastInPattern,i.typeAnnotation)}return e}parseArrayLike(e,t,n,r){let i=super.parseArrayLike(e,t,n,r);return t&&!this.state.maybeInArrowParameters&&this.toReferencedList(i.elements),i}isValidLVal(e,t,n){return e===`TypeCastExpression`||super.isValidLVal(e,t,n)}parseClassProperty(e){return this.match(14)&&(e.typeAnnotation=this.flowParseTypeAnnotation()),super.parseClassProperty(e)}parseClassPrivateProperty(e){return this.match(14)&&(e.typeAnnotation=this.flowParseTypeAnnotation()),super.parseClassPrivateProperty(e)}isClassMethod(){return this.match(47)||super.isClassMethod()}isClassProperty(){return this.match(14)||super.isClassProperty()}isNonstaticConstructor(e){return!this.match(14)&&super.isNonstaticConstructor(e)}pushClassMethod(e,t,n,r,i,a){if(t.variance&&this.unexpected(t.variance.loc.start),delete t.variance,this.match(47)&&(t.typeParameters=this.flowParseTypeParameterDeclaration()),super.pushClassMethod(e,t,n,r,i,a),t.params&&i){let e=t.params;e.length>0&&this.isThisParam(e[0])&&this.raise(W.ThisParamBannedInConstructor,t)}else if(t.type===`MethodDefinition`&&i&&t.value.params){let e=t.value.params;e.length>0&&this.isThisParam(e[0])&&this.raise(W.ThisParamBannedInConstructor,t)}}pushClassPrivateMethod(e,t,n,r){t.variance&&this.unexpected(t.variance.loc.start),delete t.variance,this.match(47)&&(t.typeParameters=this.flowParseTypeParameterDeclaration()),super.pushClassPrivateMethod(e,t,n,r)}parseClassSuper(e){if(super.parseClassSuper(e),e.superClass&&this.match(47)&&(e.superTypeParameters=this.flowParseTypeParameterInstantiation()),this.isContextual(113)){this.next();let t=e.implements=[];do{let e=this.startNode();e.id=this.flowParseRestrictedIdentifier(!0),this.match(47)?e.typeParameters=this.flowParseTypeParameterInstantiation():e.typeParameters=null,t.push(this.finishNode(e,`ClassImplements`))}while(this.eat(12))}}checkGetterSetterParams(e){super.checkGetterSetterParams(e);let t=this.getObjectOrClassMethodParams(e);if(t.length>0){let n=t[0];this.isThisParam(n)&&e.kind===`get`?this.raise(W.GetterMayNotHaveThisParam,n):this.isThisParam(n)&&this.raise(W.SetterMayNotHaveThisParam,n)}}parsePropertyNamePrefixOperator(e){e.variance=this.flowParseVariance()}parseObjPropValue(e,t,n,r,i,a,o){e.variance&&this.unexpected(e.variance.loc.start),delete e.variance;let s;this.match(47)&&!a&&(s=this.flowParseTypeParameterDeclaration(),this.match(10)||this.unexpected());let c=super.parseObjPropValue(e,t,n,r,i,a,o);return s&&((c.value||c).typeParameters=s),c}parseFunctionParamType(e){return this.eat(17)&&(e.type!==`Identifier`&&this.raise(W.PatternIsOptional,e),this.isThisParam(e)&&this.raise(W.ThisParamMayNotBeOptional,e),e.optional=!0),this.match(14)?e.typeAnnotation=this.flowParseTypeAnnotation():this.isThisParam(e)&&this.raise(W.ThisParamAnnotationRequired,e),this.match(29)&&this.isThisParam(e)&&this.raise(W.ThisParamNoDefault,e),this.resetEndLocation(e),e}parseMaybeDefault(e,t){let n=super.parseMaybeDefault(e,t);return n.type===`AssignmentPattern`&&n.typeAnnotation&&n.right.start<n.typeAnnotation.start&&this.raise(W.TypeBeforeInitializer,n.typeAnnotation),n}checkImportReflection(e){super.checkImportReflection(e),e.module&&e.importKind!==`value`&&this.raise(W.ImportReflectionHasImportType,e.specifiers[0].loc.start)}parseImportSpecifierLocal(e,t,n){t.local=zt(e)?this.flowParseRestrictedIdentifier(!0,!0):this.parseIdentifier(),e.specifiers.push(this.finishImportSpecifier(t,n))}isPotentialImportPhase(e){if(super.isPotentialImportPhase(e))return!0;if(this.isContextual(130)){if(!e)return!0;let t=this.lookaheadCharCode();return t===123||t===42}return!e&&this.isContextual(87)}applyImportPhase(e,t,n,r){if(super.applyImportPhase(e,t,n,r),t){if(!n&&this.match(65))return;e.exportKind=n===`type`?n:`value`}else n===`type`&&this.match(55)&&this.unexpected(),e.importKind=n===`type`||n===`typeof`?n:`value`}parseImportSpecifier(e,t,n,r,i){let a=e.imported,o=null;a.type===`Identifier`&&(a.name===`type`?o=`type`:a.name===`typeof`&&(o=`typeof`));let s=!1;if(this.isContextual(93)&&!this.isLookaheadContextual(`as`)){let t=this.parseIdentifier(!0);o!==null&&!le(this.state.type)?(e.imported=t,e.importKind=o,e.local=Pt(t)):(e.imported=a,e.importKind=null,e.local=this.parseIdentifier())}else{if(o!==null&&le(this.state.type))e.imported=this.parseIdentifier(!0),e.importKind=o;else{if(t)throw this.raise(_.ImportBindingIsString,e,{importName:a.value});e.imported=a,e.importKind=null}this.eatContextual(93)?e.local=this.parseIdentifier():(s=!0,e.local=Pt(e.imported))}let c=zt(e);return n&&c&&this.raise(W.ImportTypeShorthandOnlyInPureImport,e),(n||c)&&this.checkReservedType(e.local.name,e.local.loc.start,!0),s&&!n&&!c&&this.checkReservedWord(e.local.name,e.loc.start,!0,!0),this.finishImportSpecifier(e,`ImportSpecifier`)}parseBindingAtom(){switch(this.state.type){case 78:return this.parseIdentifier(!0);default:return super.parseBindingAtom()}}parseFunctionParams(e,t){let n=e.kind;n!==`get`&&n!==`set`&&this.match(47)&&(e.typeParameters=this.flowParseTypeParameterDeclaration()),super.parseFunctionParams(e,t)}parseVarId(e,t){super.parseVarId(e,t),this.match(14)&&(e.id.typeAnnotation=this.flowParseTypeAnnotation(),this.resetEndLocation(e.id))}parseAsyncArrowFromCallExpression(e,t){if(this.match(14)){let t=this.state.noAnonFunctionType;this.state.noAnonFunctionType=!0,e.returnType=this.flowParseTypeAnnotation(),this.state.noAnonFunctionType=t}return super.parseAsyncArrowFromCallExpression(e,t)}shouldParseAsyncArrow(){return this.match(14)||super.shouldParseAsyncArrow()}parseMaybeAssign(e,t){var n;let r=null,i;if(this.hasPlugin(`jsx`)&&(this.match(143)||this.match(47))){if(r=this.state.clone(),i=this.tryParse(()=>super.parseMaybeAssign(e,t),r),!i.error)return i.node;let{context:n}=this.state,a=n[n.length-1];(a===w.j_oTag||a===w.j_expr)&&n.pop()}if((n=i)!=null&&n.error||this.match(47)){var a,o;r||=this.state.clone();let n,s=this.tryParse(r=>{var i;n=this.flowParseTypeParameterDeclaration();let a=this.forwardNoArrowParamsConversionAt(n,()=>{let r=super.parseMaybeAssign(e,t);return this.resetStartLocationFromNode(r,n),r});(i=a.extra)!=null&&i.parenthesized&&r();let o=this.maybeUnwrapTypeCastExpression(a);return o.type!==`ArrowFunctionExpression`&&r(),o.typeParameters=n,this.resetStartLocationFromNode(o,n),a},r),c=null;if(s.node&&this.maybeUnwrapTypeCastExpression(s.node).type===`ArrowFunctionExpression`){if(!s.error&&!s.aborted)return s.node.async&&this.raise(W.UnexpectedTypeParameterBeforeAsyncArrowFunction,n),s.node;c=s.node}if((a=i)!=null&&a.node)return this.state=i.failState,i.node;if(c)return this.state=s.failState,c;throw(o=i)!=null&&o.thrown?i.error:s.thrown?s.error:this.raise(W.UnexpectedTokenAfterTypeParameter,n)}return super.parseMaybeAssign(e,t)}parseArrow(e){if(this.match(14)){let t=this.tryParse(()=>{let t=this.state.noAnonFunctionType;this.state.noAnonFunctionType=!0;let n=this.startNode();return[n.typeAnnotation,e.predicate]=this.flowParseTypeAndPredicateInitialiser(),this.state.noAnonFunctionType=t,this.canInsertSemicolon()&&this.unexpected(),this.match(19)||this.unexpected(),n});if(t.thrown)return null;t.error&&(this.state=t.failState),e.returnType=t.node.typeAnnotation?this.finishNode(t.node,`TypeAnnotation`):null}return super.parseArrow(e)}shouldParseArrow(e){return this.match(14)||super.shouldParseArrow(e)}setArrowFunctionParameters(e,t){this.state.noArrowParamsConversionAt.includes(this.offsetToSourcePos(e.start))?e.params=t:super.setArrowFunctionParameters(e,t)}checkParams(e,t,n,r=!0){if(!(n&&this.state.noArrowParamsConversionAt.includes(this.offsetToSourcePos(e.start)))){for(let t=0;t<e.params.length;t++)this.isThisParam(e.params[t])&&t>0&&this.raise(W.ThisParamMustBeFirst,e.params[t]);super.checkParams(e,t,n,r)}}parseParenAndDistinguishExpression(e){return super.parseParenAndDistinguishExpression(e&&!this.state.noArrowAt.includes(this.sourceToOffsetPos(this.state.start)))}parseSubscripts(e,t,n){if(e.type===`Identifier`&&e.name===`async`&&this.state.noArrowAt.includes(t.index)){this.next();let n=this.startNodeAt(t);n.callee=e,n.arguments=super.parseCallExpressionArguments(11),e=this.finishNode(n,`CallExpression`)}else if(e.type===`Identifier`&&e.name===`async`&&this.match(47)){let r=this.state.clone(),i=this.tryParse(e=>this.parseAsyncArrowWithTypeParameters(t)||e(),r);if(!i.error&&!i.aborted)return i.node;let a=this.tryParse(()=>super.parseSubscripts(e,t,n),r);if(a.node&&!a.error)return a.node;if(i.node)return this.state=i.failState,i.node;if(a.node)return this.state=a.failState,a.node;throw i.error||a.error}return super.parseSubscripts(e,t,n)}parseSubscript(e,t,n,r){if(this.match(18)&&this.isLookaheadToken_lt()){if(r.optionalChainMember=!0,n)return r.stop=!0,e;this.next();let i=this.startNodeAt(t);return i.callee=e,i.typeArguments=this.flowParseTypeParameterInstantiation(),this.expect(10),i.arguments=this.parseCallExpressionArguments(11),i.optional=!0,this.finishCallExpression(i,!0)}else if(!n&&this.shouldParseTypes()&&this.match(47)){let n=this.startNodeAt(t);n.callee=e;let i=this.tryParse(()=>(n.typeArguments=this.flowParseTypeParameterInstantiationCallOrNew(),this.expect(10),n.arguments=super.parseCallExpressionArguments(11),r.optionalChainMember&&(n.optional=!1),this.finishCallExpression(n,r.optionalChainMember)));if(i.node)return i.error&&(this.state=i.failState),i.node}return super.parseSubscript(e,t,n,r)}parseNewCallee(e){super.parseNewCallee(e);let t=null;this.shouldParseTypes()&&this.match(47)&&(t=this.tryParse(()=>this.flowParseTypeParameterInstantiationCallOrNew()).node),e.typeArguments=t}parseAsyncArrowWithTypeParameters(e){let t=this.startNodeAt(e);if(this.parseFunctionParams(t,!1),this.parseArrow(t))return super.parseArrowExpression(t,void 0,!0)}readToken_mult_modulo(e){let t=this.input.charCodeAt(this.state.pos+1);if(e===42&&t===47&&this.state.hasFlowComment){this.state.hasFlowComment=!1,this.state.pos+=2,this.nextToken();return}super.readToken_mult_modulo(e)}readToken_pipe_amp(e){let t=this.input.charCodeAt(this.state.pos+1);if(e===124&&t===125){this.finishOp(9,2);return}super.readToken_pipe_amp(e)}parseTopLevel(e,t){let n=super.parseTopLevel(e,t);return this.state.hasFlowComment&&this.raise(W.UnterminatedFlowComment,this.state.curPosition()),n}skipBlockComment(){if(this.hasPlugin(`flowComments`)&&this.skipFlowComment()){if(this.state.hasFlowComment)throw this.raise(W.NestedFlowComment,this.state.startLoc);this.hasFlowCommentCompletion();let e=this.skipFlowComment();e&&(this.state.pos+=e,this.state.hasFlowComment=!0);return}return super.skipBlockComment(this.state.hasFlowComment?`*-/`:`*/`)}skipFlowComment(){let{pos:e}=this.state,t=2;for(;[32,9].includes(this.input.charCodeAt(e+t));)t++;let n=this.input.charCodeAt(t+e),r=this.input.charCodeAt(t+e+1);return n===58&&r===58?t+2:this.input.slice(t+e,t+e+12)===`flow-include`?t+12:n===58&&r!==58?t:!1}hasFlowCommentCompletion(){if(this.input.indexOf(`*/`,this.state.pos)===-1)throw this.raise(_.UnterminatedComment,this.state.curPosition())}flowEnumErrorBooleanMemberNotInitialized(e,{enumName:t,memberName:n}){this.raise(W.EnumBooleanMemberNotInitialized,e,{memberName:n,enumName:t})}flowEnumErrorInvalidMemberInitializer(e,t){return this.raise(t.explicitType?t.explicitType===`symbol`?W.EnumInvalidMemberInitializerSymbolType:W.EnumInvalidMemberInitializerPrimaryType:W.EnumInvalidMemberInitializerUnknownType,e,t)}flowEnumErrorNumberMemberNotInitialized(e,t){this.raise(W.EnumNumberMemberNotInitialized,e,t)}flowEnumErrorStringMemberInconsistentlyInitialized(e,t){this.raise(W.EnumStringMemberInconsistentlyInitialized,e,t)}flowEnumMemberInit(){let e=this.state.startLoc,t=x(()=>this.match(12)||this.match(8),`endOfInit`);switch(this.state.type){case 135:{let n=this.parseNumericLiteral(this.state.value);return t()?{type:`number`,loc:n.loc.start,value:n}:{type:`invalid`,loc:e}}case 134:{let n=this.parseStringLiteral(this.state.value);return t()?{type:`string`,loc:n.loc.start,value:n}:{type:`invalid`,loc:e}}case 85:case 86:{let n=this.parseBooleanLiteral(this.match(85));return t()?{type:`boolean`,loc:n.loc.start,value:n}:{type:`invalid`,loc:e}}default:return{type:`invalid`,loc:e}}}flowEnumMemberRaw(){let e=this.state.startLoc;return{id:this.parseIdentifier(!0),init:this.eat(29)?this.flowEnumMemberInit():{type:`none`,loc:e}}}flowEnumCheckExplicitTypeMismatch(e,t,n){let{explicitType:r}=t;r!==null&&r!==n&&this.flowEnumErrorInvalidMemberInitializer(e,t)}flowEnumMembers({enumName:e,explicitType:t}){let n=new Set,r={booleanMembers:[],numberMembers:[],stringMembers:[],defaultedMembers:[]},i=!1;for(;!this.match(8);){if(this.eat(21)){i=!0;break}let a=this.startNode(),{id:o,init:s}=this.flowEnumMemberRaw(),c=o.name;if(c===``)continue;/^[a-z]/.test(c)&&this.raise(W.EnumInvalidMemberName,o,{memberName:c,suggestion:c[0].toUpperCase()+c.slice(1),enumName:e}),n.has(c)&&this.raise(W.EnumDuplicateMemberName,o,{memberName:c,enumName:e}),n.add(c);let l={enumName:e,explicitType:t,memberName:c};switch(a.id=o,s.type){case`boolean`:this.flowEnumCheckExplicitTypeMismatch(s.loc,l,`boolean`),a.init=s.value,r.booleanMembers.push(this.finishNode(a,`EnumBooleanMember`));break;case`number`:this.flowEnumCheckExplicitTypeMismatch(s.loc,l,`number`),a.init=s.value,r.numberMembers.push(this.finishNode(a,`EnumNumberMember`));break;case`string`:this.flowEnumCheckExplicitTypeMismatch(s.loc,l,`string`),a.init=s.value,r.stringMembers.push(this.finishNode(a,`EnumStringMember`));break;case`invalid`:throw this.flowEnumErrorInvalidMemberInitializer(s.loc,l);case`none`:switch(t){case`boolean`:this.flowEnumErrorBooleanMemberNotInitialized(s.loc,l);break;case`number`:this.flowEnumErrorNumberMemberNotInitialized(s.loc,l);break;default:r.defaultedMembers.push(this.finishNode(a,`EnumDefaultedMember`))}}this.match(8)||this.expect(12)}return{members:r,hasUnknownMembers:i}}flowEnumStringMembers(e,t,{enumName:n}){if(e.length===0)return t;if(t.length===0)return e;if(t.length>e.length){for(let t of e)this.flowEnumErrorStringMemberInconsistentlyInitialized(t,{enumName:n});return t}else{for(let e of t)this.flowEnumErrorStringMemberInconsistentlyInitialized(e,{enumName:n});return e}}flowEnumParseExplicitType({enumName:e}){if(!this.eatContextual(102))return null;if(!L(this.state.type))throw this.raise(W.EnumInvalidExplicitTypeUnknownSupplied,this.state.startLoc,{enumName:e});let{value:t}=this.state;return this.next(),t!==`boolean`&&t!==`number`&&t!==`string`&&t!==`symbol`&&this.raise(W.EnumInvalidExplicitType,this.state.startLoc,{enumName:e,invalidEnumType:t}),t}flowEnumBody(e,t){let n=t.name,r=t.loc.start,i=this.flowEnumParseExplicitType({enumName:n});this.expect(5);let{members:a,hasUnknownMembers:o}=this.flowEnumMembers({enumName:n,explicitType:i});switch(e.hasUnknownMembers=o,i){case`boolean`:return e.explicitType=!0,e.members=a.booleanMembers,this.expect(8),this.finishNode(e,`EnumBooleanBody`);case`number`:return e.explicitType=!0,e.members=a.numberMembers,this.expect(8),this.finishNode(e,`EnumNumberBody`);case`string`:return e.explicitType=!0,e.members=this.flowEnumStringMembers(a.stringMembers,a.defaultedMembers,{enumName:n}),this.expect(8),this.finishNode(e,`EnumStringBody`);case`symbol`:return e.members=a.defaultedMembers,this.expect(8),this.finishNode(e,`EnumSymbolBody`);default:{let t=x(()=>(e.members=[],this.expect(8),this.finishNode(e,`EnumStringBody`)),`empty`);e.explicitType=!1;let i=a.booleanMembers.length,o=a.numberMembers.length,s=a.stringMembers.length,c=a.defaultedMembers.length;if(!i&&!o&&!s&&!c)return t();if(!i&&!o)return e.members=this.flowEnumStringMembers(a.stringMembers,a.defaultedMembers,{enumName:n}),this.expect(8),this.finishNode(e,`EnumStringBody`);if(!o&&!s&&i>=c){for(let e of a.defaultedMembers)this.flowEnumErrorBooleanMemberNotInitialized(e.loc.start,{enumName:n,memberName:e.id.name});return e.members=a.booleanMembers,this.expect(8),this.finishNode(e,`EnumBooleanBody`)}else if(!i&&!s&&o>=c){for(let e of a.defaultedMembers)this.flowEnumErrorNumberMemberNotInitialized(e.loc.start,{enumName:n,memberName:e.id.name});return e.members=a.numberMembers,this.expect(8),this.finishNode(e,`EnumNumberBody`)}else return this.raise(W.EnumInconsistentMemberValues,r,{enumName:n}),t()}}}flowParseEnumDeclaration(e){let t=this.parseIdentifier();return e.id=t,e.body=this.flowEnumBody(this.startNode(),t),this.finishNode(e,`EnumDeclaration`)}isLookaheadToken_lt(){let e=this.nextTokenStart();if(this.input.charCodeAt(e)===60){let t=this.input.charCodeAt(e+1);return t!==60&&t!==61}return!1}maybeUnwrapTypeCastExpression(e){return e.type===`TypeCastExpression`?e.expression:e}},`flow`),Vt={__proto__:null,quot:`"`,amp:`&`,apos:`'`,lt:`<`,gt:`>`,nbsp:`\xA0`,iexcl:`¡`,cent:`¢`,pound:`£`,curren:`¤`,yen:`¥`,brvbar:`¦`,sect:`§`,uml:`¨`,copy:`©`,ordf:`ª`,laquo:`«`,not:`¬`,shy:`­`,reg:`®`,macr:`¯`,deg:`°`,plusmn:`±`,sup2:`²`,sup3:`³`,acute:`´`,micro:`µ`,para:`¶`,middot:`·`,cedil:`¸`,sup1:`¹`,ordm:`º`,raquo:`»`,frac14:`¼`,frac12:`½`,frac34:`¾`,iquest:`¿`,Agrave:`À`,Aacute:`Á`,Acirc:`Â`,Atilde:`Ã`,Auml:`Ä`,Aring:`Å`,AElig:`Æ`,Ccedil:`Ç`,Egrave:`È`,Eacute:`É`,Ecirc:`Ê`,Euml:`Ë`,Igrave:`Ì`,Iacute:`Í`,Icirc:`Î`,Iuml:`Ï`,ETH:`Ð`,Ntilde:`Ñ`,Ograve:`Ò`,Oacute:`Ó`,Ocirc:`Ô`,Otilde:`Õ`,Ouml:`Ö`,times:`×`,Oslash:`Ø`,Ugrave:`Ù`,Uacute:`Ú`,Ucirc:`Û`,Uuml:`Ü`,Yacute:`Ý`,THORN:`Þ`,szlig:`ß`,agrave:`à`,aacute:`á`,acirc:`â`,atilde:`ã`,auml:`ä`,aring:`å`,aelig:`æ`,ccedil:`ç`,egrave:`è`,eacute:`é`,ecirc:`ê`,euml:`ë`,igrave:`ì`,iacute:`í`,icirc:`î`,iuml:`ï`,eth:`ð`,ntilde:`ñ`,ograve:`ò`,oacute:`ó`,ocirc:`ô`,otilde:`õ`,ouml:`ö`,divide:`÷`,oslash:`ø`,ugrave:`ù`,uacute:`ú`,ucirc:`û`,uuml:`ü`,yacute:`ý`,thorn:`þ`,yuml:`ÿ`,OElig:`Œ`,oelig:`œ`,Scaron:`Š`,scaron:`š`,Yuml:`Ÿ`,fnof:`ƒ`,circ:`ˆ`,tilde:`˜`,Alpha:`Α`,Beta:`Β`,Gamma:`Γ`,Delta:`Δ`,Epsilon:`Ε`,Zeta:`Ζ`,Eta:`Η`,Theta:`Θ`,Iota:`Ι`,Kappa:`Κ`,Lambda:`Λ`,Mu:`Μ`,Nu:`Ν`,Xi:`Ξ`,Omicron:`Ο`,Pi:`Π`,Rho:`Ρ`,Sigma:`Σ`,Tau:`Τ`,Upsilon:`Υ`,Phi:`Φ`,Chi:`Χ`,Psi:`Ψ`,Omega:`Ω`,alpha:`α`,beta:`β`,gamma:`γ`,delta:`δ`,epsilon:`ε`,zeta:`ζ`,eta:`η`,theta:`θ`,iota:`ι`,kappa:`κ`,lambda:`λ`,mu:`μ`,nu:`ν`,xi:`ξ`,omicron:`ο`,pi:`π`,rho:`ρ`,sigmaf:`ς`,sigma:`σ`,tau:`τ`,upsilon:`υ`,phi:`φ`,chi:`χ`,psi:`ψ`,omega:`ω`,thetasym:`ϑ`,upsih:`ϒ`,piv:`ϖ`,ensp:` `,emsp:` `,thinsp:` `,zwnj:`‌`,zwj:`‍`,lrm:`‎`,rlm:`‏`,ndash:`–`,mdash:`—`,lsquo:`‘`,rsquo:`’`,sbquo:`‚`,ldquo:`“`,rdquo:`”`,bdquo:`„`,dagger:`†`,Dagger:`‡`,bull:`•`,hellip:`…`,permil:`‰`,prime:`′`,Prime:`″`,lsaquo:`‹`,rsaquo:`›`,oline:`‾`,frasl:`⁄`,euro:`€`,image:`ℑ`,weierp:`℘`,real:`ℜ`,trade:`™`,alefsym:`ℵ`,larr:`←`,uarr:`↑`,rarr:`→`,darr:`↓`,harr:`↔`,crarr:`↵`,lArr:`⇐`,uArr:`⇑`,rArr:`⇒`,dArr:`⇓`,hArr:`⇔`,forall:`∀`,part:`∂`,exist:`∃`,empty:`∅`,nabla:`∇`,isin:`∈`,notin:`∉`,ni:`∋`,prod:`∏`,sum:`∑`,minus:`−`,lowast:`∗`,radic:`√`,prop:`∝`,infin:`∞`,ang:`∠`,and:`∧`,or:`∨`,cap:`∩`,cup:`∪`,int:`∫`,there4:`∴`,sim:`∼`,cong:`≅`,asymp:`≈`,ne:`≠`,equiv:`≡`,le:`≤`,ge:`≥`,sub:`⊂`,sup:`⊃`,nsub:`⊄`,sube:`⊆`,supe:`⊇`,oplus:`⊕`,otimes:`⊗`,perp:`⊥`,sdot:`⋅`,lceil:`⌈`,rceil:`⌉`,lfloor:`⌊`,rfloor:`⌋`,lang:`〈`,rang:`〉`,loz:`◊`,spades:`♠`,clubs:`♣`,hearts:`♥`,diams:`♦`},Ht=g`jsx`({AttributeIsEmpty:`JSX attributes must only be assigned a non-empty expression.`,MissingClosingTagElement:x(({openingTagName:e})=>`Expected corresponding JSX closing tag for <${e}>.`,`MissingClosingTagElement`),MissingClosingTagFragment:`Expected corresponding JSX closing tag for <>.`,UnexpectedSequenceExpression:`Sequence expressions cannot be directly nested inside JSX. Did you mean to wrap it in parentheses (...)?`,UnexpectedToken:x(({unexpected:e,HTMLEntity:t})=>`Unexpected token \`${e}\`. Did you mean \`${t}\` or \`{'${e}'}\`?`,`UnexpectedToken`),UnsupportedJsxValue:`JSX value should be either an expression or a quoted JSX text.`,UnterminatedJsxContent:`Unterminated JSX contents.`,UnwrappedAdjacentJSXElements:`Adjacent JSX elements must be wrapped in an enclosing tag. Did you want a JSX fragment <>...</>?`});function Ut(e){return e?e.type===`JSXOpeningFragment`||e.type===`JSXClosingFragment`:!1}x(Ut,`isFragment`);function Wt(e){if(e.type===`JSXIdentifier`)return e.name;if(e.type===`JSXNamespacedName`)return e.namespace.name+`:`+e.name.name;if(e.type===`JSXMemberExpression`)return Wt(e.object)+`.`+Wt(e.property);throw Error(`Node had unexpected type: `+e.type)}x(Wt,`getQualifiedJSXName`);var Gt=x(e=>class extends e{static{x(this,`JSXParserMixin`)}jsxReadToken(){let e=``,t=this.state.pos;for(;;){if(this.state.pos>=this.length)throw this.raise(Ht.UnterminatedJsxContent,this.state.startLoc);let n=this.input.charCodeAt(this.state.pos);switch(n){case 60:case 123:if(this.state.pos===this.state.start){n===60&&this.state.canStartJSXElement?(++this.state.pos,this.finishToken(143)):super.getTokenFromCode(n);return}e+=this.input.slice(t,this.state.pos),this.finishToken(142,e);return;case 38:e+=this.input.slice(t,this.state.pos),e+=this.jsxReadEntity(),t=this.state.pos;break;default:et(n)?(e+=this.input.slice(t,this.state.pos),e+=this.jsxReadNewLine(!0),t=this.state.pos):++this.state.pos}}}jsxReadNewLine(e){let t=this.input.charCodeAt(this.state.pos),n;return++this.state.pos,t===13&&this.input.charCodeAt(this.state.pos)===10?(++this.state.pos,n=e?`
105
+ `);case 114:return s(`\r`);case 120:{let i;return{code:i,pos:t}=dt(e,t,n,r,2,!1,o,a),s(i===null?null:String.fromCharCode(i))}case 117:{let i;return{code:i,pos:t}=pt(e,t,n,r,o,a),s(i===null?null:String.fromCodePoint(i))}case 116:return s(` `);case 98:return s(`\b`);case 118:return s(`\v`);case 102:return s(`\f`);case 13:e.charCodeAt(t)===10&&++t;case 10:n=t,++r;case 8232:case 8233:return s(``);case 56:case 57:if(i)return s(null);a.strictNumericEscape(t-1,n,r);default:if(c>=48&&c<=55){let o=t-1,c=/^[0-7]+/.exec(e.slice(o,t+2))[0],l=parseInt(c,8);l>255&&(c=c.slice(0,-1),l=parseInt(c,8)),t+=c.length-1;let u=e.charCodeAt(t);if(c!==`0`||u===56||u===57){if(i)return s(null);a.strictNumericEscape(o,n,r)}return s(String.fromCharCode(l))}return s(String.fromCharCode(c))}}x(ut,`readEscapedChar`);function dt(e,t,n,r,i,a,o,s){let c=t,l;return{n:l,pos:t}=ft(e,t,n,r,16,i,a,!1,s,!o),l===null&&(o?s.invalidEscapeSequence(c,n,r):t=c-1),{code:l,pos:t}}x(dt,`readHexChar`);function ft(e,t,n,r,i,a,o,s,c,l){let u=t,d=i===16?ot.hex:ot.decBinOct,f=i===16?st.hex:i===10?st.dec:i===8?st.oct:st.bin,p=!1,m=0;for(let u=0,h=a??1/0;u<h;++u){let a=e.charCodeAt(t),u;if(a===95&&s!==`bail`){let i=e.charCodeAt(t-1),a=e.charCodeAt(t+1);if(!s){if(l)return{n:null,pos:t};c.numericSeparatorInEscapeSequence(t,n,r)}else if(Number.isNaN(a)||!f(a)||d.has(i)||d.has(a)){if(l)return{n:null,pos:t};c.unexpectedNumericSeparator(t,n,r)}++t;continue}if(u=a>=97?a-97+10:a>=65?a-65+10:at(a)?a-48:1/0,u>=i){if(u<=9&&l)return{n:null,pos:t};if(u<=9&&c.invalidDigit(t,n,r,i))u=0;else if(o)u=0,p=!0;else break}++t,m=m*i+u}return t===u||a!=null&&t-u!==a||p?{n:null,pos:t}:{n:m,pos:t}}x(ft,`readInt`);function pt(e,t,n,r,i,a){let o=e.charCodeAt(t),s;if(o===123){if(++t,{code:s,pos:t}=dt(e,t,n,r,e.indexOf(`}`,t)-t,!0,i,a),++t,s!==null&&s>1114111)if(i)a.invalidCodePoint(t,n,r);else return{code:null,pos:t}}else ({code:s,pos:t}=dt(e,t,n,r,4,!1,i,a));return{code:s,pos:t}}x(pt,`readCodePoint`);function mt(e,t,r){return new n(r,e-t,e)}x(mt,`buildPosition`);var ht=new Set([103,109,115,105,121,117,100,118]),gt=class{static{x(this,`Token`)}constructor(e){let t=e.startIndex||0;this.type=e.type,this.value=e.value,this.start=t+e.start,this.end=t+e.end,this.loc=new r(e.startLoc,e.endLoc)}},_t=class extends Qe{static{x(this,`Tokenizer`)}constructor(e,t){super(),this.isLookahead=void 0,this.tokens=[],this.errorHandlers_readInt={invalidDigit:x((e,t,n,r)=>this.options.errorRecovery?(this.raise(_.InvalidDigit,mt(e,t,n),{radix:r}),!0):!1,`invalidDigit`),numericSeparatorInEscapeSequence:this.errorBuilder(_.NumericSeparatorInEscapeSequence),unexpectedNumericSeparator:this.errorBuilder(_.UnexpectedNumericSeparator)},this.errorHandlers_readCodePoint=Object.assign({},this.errorHandlers_readInt,{invalidEscapeSequence:this.errorBuilder(_.InvalidEscapeSequence),invalidCodePoint:this.errorBuilder(_.InvalidCodePoint)}),this.errorHandlers_readStringContents_string=Object.assign({},this.errorHandlers_readCodePoint,{strictNumericEscape:x((e,t,n)=>{this.recordStrictModeErrors(_.StrictNumericEscape,mt(e,t,n))},`strictNumericEscape`),unterminated:x((e,t,n)=>{throw this.raise(_.UnterminatedString,mt(e-1,t,n))},`unterminated`)}),this.errorHandlers_readStringContents_template=Object.assign({},this.errorHandlers_readCodePoint,{strictNumericEscape:this.errorBuilder(_.StrictNumericEscape),unterminated:x((e,t,n)=>{throw this.raise(_.UnterminatedTemplate,mt(e,t,n))},`unterminated`)}),this.state=new U,this.state.init(e),this.input=t,this.length=t.length,this.comments=[],this.isLookahead=!1}pushToken(e){this.tokens.length=this.state.tokensLength,this.tokens.push(e),++this.state.tokensLength}next(){this.checkKeywordEscapes(),this.options.tokens&&this.pushToken(new gt(this.state)),this.state.lastTokEndLoc=this.state.endLoc,this.state.lastTokStartLoc=this.state.startLoc,this.nextToken()}eat(e){return this.match(e)?(this.next(),!0):!1}match(e){return this.state.type===e}createLookaheadState(e){return{pos:e.pos,value:null,type:e.type,start:e.start,end:e.end,context:[this.curContext()],inType:e.inType,startLoc:e.startLoc,lastTokEndLoc:e.lastTokEndLoc,curLine:e.curLine,lineStart:e.lineStart,curPosition:e.curPosition}}lookahead(){let e=this.state;this.state=this.createLookaheadState(e),this.isLookahead=!0,this.nextToken(),this.isLookahead=!1;let t=this.state;return this.state=e,t}nextTokenStart(){return this.nextTokenStartSince(this.state.pos)}nextTokenStartSince(e){return nt.lastIndex=e,nt.test(this.input)?nt.lastIndex:e}lookaheadCharCode(){return this.input.charCodeAt(this.nextTokenStart())}nextTokenInLineStart(){return this.nextTokenInLineStartSince(this.state.pos)}nextTokenInLineStartSince(e){return rt.lastIndex=e,rt.test(this.input)?rt.lastIndex:e}lookaheadInLineCharCode(){return this.input.charCodeAt(this.nextTokenInLineStart())}codePointAtPos(e){let t=this.input.charCodeAt(e);if((t&64512)==55296&&++e<this.input.length){let n=this.input.charCodeAt(e);(n&64512)==56320&&(t=65536+((t&1023)<<10)+(n&1023))}return t}setStrict(e){this.state.strict=e,e&&(this.state.strictErrors.forEach(([e,t])=>this.raise(e,t)),this.state.strictErrors.clear())}curContext(){return this.state.context[this.state.context.length-1]}nextToken(){if(this.skipSpace(),this.state.start=this.state.pos,this.isLookahead||(this.state.startLoc=this.state.curPosition()),this.state.pos>=this.length){this.finishToken(140);return}this.getTokenFromCode(this.codePointAtPos(this.state.pos))}skipBlockComment(e){let t;this.isLookahead||(t=this.state.curPosition());let n=this.state.pos,i=this.input.indexOf(e,n+2);if(i===-1)throw this.raise(_.UnterminatedComment,this.state.curPosition());for(this.state.pos=i+e.length,$e.lastIndex=n+2;$e.test(this.input)&&$e.lastIndex<=i;)++this.state.curLine,this.state.lineStart=$e.lastIndex;if(this.isLookahead)return;let a={type:`CommentBlock`,value:this.input.slice(n+2,i),start:this.sourceToOffsetPos(n),end:this.sourceToOffsetPos(i+e.length),loc:new r(t,this.state.curPosition())};return this.options.tokens&&this.pushToken(a),a}skipLineComment(e){let t=this.state.pos,n;this.isLookahead||(n=this.state.curPosition());let i=this.input.charCodeAt(this.state.pos+=e);if(this.state.pos<this.length)for(;!et(i)&&++this.state.pos<this.length;)i=this.input.charCodeAt(this.state.pos);if(this.isLookahead)return;let a=this.state.pos,o={type:`CommentLine`,value:this.input.slice(t+e,a),start:this.sourceToOffsetPos(t),end:this.sourceToOffsetPos(a),loc:new r(n,this.state.curPosition())};return this.options.tokens&&this.pushToken(o),o}skipSpace(){let e=this.state.pos,t=[];loop:for(;this.state.pos<this.length;){let n=this.input.charCodeAt(this.state.pos);switch(n){case 32:case 160:case 9:++this.state.pos;break;case 13:this.input.charCodeAt(this.state.pos+1)===10&&++this.state.pos;case 10:case 8232:case 8233:++this.state.pos,++this.state.curLine,this.state.lineStart=this.state.pos;break;case 47:switch(this.input.charCodeAt(this.state.pos+1)){case 42:{let e=this.skipBlockComment(`*/`);e!==void 0&&(this.addComment(e),this.options.attachComment&&t.push(e));break}case 47:{let e=this.skipLineComment(2);e!==void 0&&(this.addComment(e),this.options.attachComment&&t.push(e));break}default:break loop}break;default:if(it(n))++this.state.pos;else if(n===45&&!this.inModule&&this.options.annexB){let n=this.state.pos;if(this.input.charCodeAt(n+1)===45&&this.input.charCodeAt(n+2)===62&&(e===0||this.state.lineStart>e)){let e=this.skipLineComment(3);e!==void 0&&(this.addComment(e),this.options.attachComment&&t.push(e))}else break loop}else if(n===60&&!this.inModule&&this.options.annexB){let e=this.state.pos;if(this.input.charCodeAt(e+1)===33&&this.input.charCodeAt(e+2)===45&&this.input.charCodeAt(e+3)===45){let e=this.skipLineComment(4);e!==void 0&&(this.addComment(e),this.options.attachComment&&t.push(e))}else break loop}else break loop}}if(t.length>0){let n=this.state.pos,r={start:this.sourceToOffsetPos(e),end:this.sourceToOffsetPos(n),comments:t,leadingNode:null,trailingNode:null,containingNode:null};this.state.commentStack.push(r)}}finishToken(e,t){this.state.end=this.state.pos,this.state.endLoc=this.state.curPosition();let n=this.state.type;this.state.type=e,this.state.value=t,this.isLookahead||this.updateContext(n)}replaceToken(e){this.state.type=e,this.updateContext()}readToken_numberSign(){if(this.state.pos===0&&this.readToken_interpreter())return;let e=this.state.pos+1,t=this.codePointAtPos(e);if(t>=48&&t<=57)throw this.raise(_.UnexpectedDigitAfterHash,this.state.curPosition());if(t===123||t===91&&this.hasPlugin(`recordAndTuple`)){if(this.expectPlugin(`recordAndTuple`),this.getPluginOption(`recordAndTuple`,`syntaxType`)===`bar`)throw this.raise(t===123?_.RecordExpressionHashIncorrectStartSyntaxType:_.TupleExpressionHashIncorrectStartSyntaxType,this.state.curPosition());this.state.pos+=2,t===123?this.finishToken(7):this.finishToken(1)}else Ae(t)?(++this.state.pos,this.finishToken(139,this.readWord1(t))):t===92?(++this.state.pos,this.finishToken(139,this.readWord1())):this.finishOp(27,1)}readToken_dot(){let e=this.input.charCodeAt(this.state.pos+1);if(e>=48&&e<=57){this.readNumber(!0);return}e===46&&this.input.charCodeAt(this.state.pos+2)===46?(this.state.pos+=3,this.finishToken(21)):(++this.state.pos,this.finishToken(16))}readToken_slash(){this.input.charCodeAt(this.state.pos+1)===61?this.finishOp(31,2):this.finishOp(56,1)}readToken_interpreter(){if(this.state.pos!==0||this.length<2)return!1;let e=this.input.charCodeAt(this.state.pos+1);if(e!==33)return!1;let t=this.state.pos;for(this.state.pos+=1;!et(e)&&++this.state.pos<this.length;)e=this.input.charCodeAt(this.state.pos);let n=this.input.slice(t+2,this.state.pos);return this.finishToken(28,n),!0}readToken_mult_modulo(e){let t=e===42?55:54,n=1,r=this.input.charCodeAt(this.state.pos+1);e===42&&r===42&&(n++,r=this.input.charCodeAt(this.state.pos+2),t=57),r===61&&!this.state.inType&&(n++,t=e===37?33:30),this.finishOp(t,n)}readToken_pipe_amp(e){let t=this.input.charCodeAt(this.state.pos+1);if(t===e){this.input.charCodeAt(this.state.pos+2)===61?this.finishOp(30,3):this.finishOp(e===124?41:42,2);return}if(e===124){if(t===62){this.finishOp(39,2);return}if(this.hasPlugin(`recordAndTuple`)&&t===125){if(this.getPluginOption(`recordAndTuple`,`syntaxType`)!==`bar`)throw this.raise(_.RecordExpressionBarIncorrectEndSyntaxType,this.state.curPosition());this.state.pos+=2,this.finishToken(9);return}if(this.hasPlugin(`recordAndTuple`)&&t===93){if(this.getPluginOption(`recordAndTuple`,`syntaxType`)!==`bar`)throw this.raise(_.TupleExpressionBarIncorrectEndSyntaxType,this.state.curPosition());this.state.pos+=2,this.finishToken(4);return}}if(t===61){this.finishOp(30,2);return}this.finishOp(e===124?43:45,1)}readToken_caret(){let e=this.input.charCodeAt(this.state.pos+1);e===61&&!this.state.inType?this.finishOp(32,2):e===94&&this.hasPlugin([`pipelineOperator`,{proposal:`hack`,topicToken:`^^`}])?(this.finishOp(37,2),this.input.codePointAt(this.state.pos)===94&&this.unexpected()):this.finishOp(44,1)}readToken_atSign(){this.input.charCodeAt(this.state.pos+1)===64&&this.hasPlugin([`pipelineOperator`,{proposal:`hack`,topicToken:`@@`}])?this.finishOp(38,2):this.finishOp(26,1)}readToken_plus_min(e){let t=this.input.charCodeAt(this.state.pos+1);if(t===e){this.finishOp(34,2);return}t===61?this.finishOp(30,2):this.finishOp(53,1)}readToken_lt(){let{pos:e}=this.state,t=this.input.charCodeAt(e+1);if(t===60){if(this.input.charCodeAt(e+2)===61){this.finishOp(30,3);return}this.finishOp(51,2);return}if(t===61){this.finishOp(49,2);return}this.finishOp(47,1)}readToken_gt(){let{pos:e}=this.state,t=this.input.charCodeAt(e+1);if(t===62){let t=this.input.charCodeAt(e+2)===62?3:2;if(this.input.charCodeAt(e+t)===61){this.finishOp(30,t+1);return}this.finishOp(52,t);return}if(t===61){this.finishOp(49,2);return}this.finishOp(48,1)}readToken_eq_excl(e){let t=this.input.charCodeAt(this.state.pos+1);if(t===61){this.finishOp(46,this.input.charCodeAt(this.state.pos+2)===61?3:2);return}if(e===61&&t===62){this.state.pos+=2,this.finishToken(19);return}this.finishOp(e===61?29:35,1)}readToken_question(){let e=this.input.charCodeAt(this.state.pos+1),t=this.input.charCodeAt(this.state.pos+2);e===63?t===61?this.finishOp(30,3):this.finishOp(40,2):e===46&&!(t>=48&&t<=57)?(this.state.pos+=2,this.finishToken(18)):(++this.state.pos,this.finishToken(17))}getTokenFromCode(e){switch(e){case 46:this.readToken_dot();return;case 40:++this.state.pos,this.finishToken(10);return;case 41:++this.state.pos,this.finishToken(11);return;case 59:++this.state.pos,this.finishToken(13);return;case 44:++this.state.pos,this.finishToken(12);return;case 91:if(this.hasPlugin(`recordAndTuple`)&&this.input.charCodeAt(this.state.pos+1)===124){if(this.getPluginOption(`recordAndTuple`,`syntaxType`)!==`bar`)throw this.raise(_.TupleExpressionBarIncorrectStartSyntaxType,this.state.curPosition());this.state.pos+=2,this.finishToken(2)}else ++this.state.pos,this.finishToken(0);return;case 93:++this.state.pos,this.finishToken(3);return;case 123:if(this.hasPlugin(`recordAndTuple`)&&this.input.charCodeAt(this.state.pos+1)===124){if(this.getPluginOption(`recordAndTuple`,`syntaxType`)!==`bar`)throw this.raise(_.RecordExpressionBarIncorrectStartSyntaxType,this.state.curPosition());this.state.pos+=2,this.finishToken(6)}else ++this.state.pos,this.finishToken(5);return;case 125:++this.state.pos,this.finishToken(8);return;case 58:this.hasPlugin(`functionBind`)&&this.input.charCodeAt(this.state.pos+1)===58?this.finishOp(15,2):(++this.state.pos,this.finishToken(14));return;case 63:this.readToken_question();return;case 96:this.readTemplateToken();return;case 48:{let e=this.input.charCodeAt(this.state.pos+1);if(e===120||e===88){this.readRadixNumber(16);return}if(e===111||e===79){this.readRadixNumber(8);return}if(e===98||e===66){this.readRadixNumber(2);return}}case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:this.readNumber(!1);return;case 34:case 39:this.readString(e);return;case 47:this.readToken_slash();return;case 37:case 42:this.readToken_mult_modulo(e);return;case 124:case 38:this.readToken_pipe_amp(e);return;case 94:this.readToken_caret();return;case 43:case 45:this.readToken_plus_min(e);return;case 60:this.readToken_lt();return;case 62:this.readToken_gt();return;case 61:case 33:this.readToken_eq_excl(e);return;case 126:this.finishOp(36,1);return;case 64:this.readToken_atSign();return;case 35:this.readToken_numberSign();return;case 92:this.readWord();return;default:if(Ae(e)){this.readWord(e);return}}throw this.raise(_.InvalidOrUnexpectedToken,this.state.curPosition(),{unexpected:String.fromCodePoint(e)})}finishOp(e,t){let n=this.input.slice(this.state.pos,this.state.pos+t);this.state.pos+=t,this.finishToken(e,n)}readRegexp(){let e=this.state.startLoc,t=this.state.start+1,n,r,{pos:a}=this.state;for(;;++a){if(a>=this.length)throw this.raise(_.UnterminatedRegExp,i(e,1));let t=this.input.charCodeAt(a);if(et(t))throw this.raise(_.UnterminatedRegExp,i(e,1));if(n)n=!1;else{if(t===91)r=!0;else if(t===93&&r)r=!1;else if(t===47&&!r)break;n=t===92}}let o=this.input.slice(t,a);++a;let s=``,c=x(()=>i(e,a+2-t),`nextPos`);for(;a<this.length;){let e=this.codePointAtPos(a),t=String.fromCharCode(e);if(ht.has(e))e===118?s.includes(`u`)&&this.raise(_.IncompatibleRegExpUVFlags,c()):e===117&&s.includes(`v`)&&this.raise(_.IncompatibleRegExpUVFlags,c()),s.includes(t)&&this.raise(_.DuplicateRegExpFlags,c());else if(H(e)||e===92)this.raise(_.MalformedRegExpFlags,c());else break;++a,s+=t}this.state.pos=a,this.finishToken(138,{pattern:o,flags:s})}readInt(e,t,n=!1,r=!0){let{n:i,pos:a}=ft(this.input,this.state.pos,this.state.lineStart,this.state.curLine,e,t,n,r,this.errorHandlers_readInt,!1);return this.state.pos=a,i}readRadixNumber(e){let t=this.state.pos,n=this.state.curPosition(),r=!1;this.state.pos+=2;let a=this.readInt(e);a??this.raise(_.InvalidDigit,i(n,2),{radix:e});let o=this.input.charCodeAt(this.state.pos);if(o===110)++this.state.pos,r=!0;else if(o===109)throw this.raise(_.InvalidDecimal,n);if(Ae(this.codePointAtPos(this.state.pos)))throw this.raise(_.NumberIdentifier,this.state.curPosition());if(r){let e=this.input.slice(t,this.state.pos).replace(/[_n]/g,``);this.finishToken(136,e);return}this.finishToken(135,a)}readNumber(e){let t=this.state.pos,n=this.state.curPosition(),r=!1,a=!1,o=!1,s=!1;!e&&this.readInt(10)===null&&this.raise(_.InvalidNumber,this.state.curPosition());let c=this.state.pos-t>=2&&this.input.charCodeAt(t)===48;if(c){let e=this.input.slice(t,this.state.pos);if(this.recordStrictModeErrors(_.StrictOctalLiteral,n),!this.state.strict){let t=e.indexOf(`_`);t>0&&this.raise(_.ZeroDigitNumericSeparator,i(n,t))}s=c&&!/[89]/.test(e)}let l=this.input.charCodeAt(this.state.pos);if(l===46&&!s&&(++this.state.pos,this.readInt(10),r=!0,l=this.input.charCodeAt(this.state.pos)),(l===69||l===101)&&!s&&(l=this.input.charCodeAt(++this.state.pos),(l===43||l===45)&&++this.state.pos,this.readInt(10)===null&&this.raise(_.InvalidOrMissingExponent,n),r=!0,o=!0,l=this.input.charCodeAt(this.state.pos)),l===110&&((r||c)&&this.raise(_.InvalidBigIntLiteral,n),++this.state.pos,a=!0),l===109){this.expectPlugin(`decimal`,this.state.curPosition()),(o||c)&&this.raise(_.InvalidDecimal,n),++this.state.pos;var u=!0}if(Ae(this.codePointAtPos(this.state.pos)))throw this.raise(_.NumberIdentifier,this.state.curPosition());let d=this.input.slice(t,this.state.pos).replace(/[_mn]/g,``);if(a){this.finishToken(136,d);return}if(u){this.finishToken(137,d);return}let f=s?parseInt(d,8):parseFloat(d);this.finishToken(135,f)}readCodePoint(e){let{code:t,pos:n}=pt(this.input,this.state.pos,this.state.lineStart,this.state.curLine,e,this.errorHandlers_readCodePoint);return this.state.pos=n,t}readString(e){let{str:t,pos:n,curLine:r,lineStart:i}=ct(e===34?`double`:`single`,this.input,this.state.pos+1,this.state.lineStart,this.state.curLine,this.errorHandlers_readStringContents_string);this.state.pos=n+1,this.state.lineStart=i,this.state.curLine=r,this.finishToken(134,t)}readTemplateContinuation(){this.match(8)||this.unexpected(null,8),this.state.pos--,this.readTemplateToken()}readTemplateToken(){let e=this.input[this.state.pos],{str:t,firstInvalidLoc:r,pos:i,curLine:a,lineStart:o}=ct(`template`,this.input,this.state.pos+1,this.state.lineStart,this.state.curLine,this.errorHandlers_readStringContents_template);this.state.pos=i+1,this.state.lineStart=o,this.state.curLine=a,r&&(this.state.firstInvalidTemplateEscapePos=new n(r.curLine,r.pos-r.lineStart,this.sourceToOffsetPos(r.pos))),this.input.codePointAt(i)===96?this.finishToken(24,r?null:e+t+"`"):(this.state.pos++,this.finishToken(25,r?null:e+t+"${"))}recordStrictModeErrors(e,t){let n=t.index;this.state.strict&&!this.state.strictErrors.has(n)?this.raise(e,t):this.state.strictErrors.set(n,[e,t])}readWord1(e){this.state.containsEsc=!1;let t=``,n=this.state.pos,r=this.state.pos;for(e!==void 0&&(this.state.pos+=e<=65535?1:2);this.state.pos<this.length;){let e=this.codePointAtPos(this.state.pos);if(H(e))this.state.pos+=e<=65535?1:2;else if(e===92){this.state.containsEsc=!0,t+=this.input.slice(r,this.state.pos);let e=this.state.curPosition(),i=this.state.pos===n?Ae:H;if(this.input.charCodeAt(++this.state.pos)!==117){this.raise(_.MissingUnicodeEscape,this.state.curPosition()),r=this.state.pos-1;continue}++this.state.pos;let a=this.readCodePoint(!0);a!==null&&(i(a)||this.raise(_.EscapedCharNotAnIdentifier,e),t+=String.fromCodePoint(a)),r=this.state.pos}else break}return t+this.input.slice(r,this.state.pos)}readWord(e){let t=this.readWord1(e),n=ne.get(t);n===void 0?this.finishToken(132,t):this.finishToken(n,B(n))}checkKeywordEscapes(){let{type:e}=this.state;he(e)&&this.state.containsEsc&&this.raise(_.InvalidEscapedReservedWord,this.state.startLoc,{reservedWord:B(e)})}raise(e,t,r={}){let i=e(t instanceof n?t:t.loc.start,r);if(!this.options.errorRecovery)throw i;return this.isLookahead||this.state.errors.push(i),i}raiseOverwrite(e,t,r={}){let i=t instanceof n?t:t.loc.start,a=i.index,o=this.state.errors;for(let t=o.length-1;t>=0;t--){let n=o[t];if(n.loc.index===a)return o[t]=e(i,r);if(n.loc.index<a)break}return this.raise(e,t,r)}updateContext(e){}unexpected(e,t){throw this.raise(_.UnexpectedToken,e??this.state.startLoc,{expected:t?B(t):null})}expectPlugin(e,t){if(this.hasPlugin(e))return!0;throw this.raise(_.MissingPlugin,t??this.state.startLoc,{missingPlugin:[e]})}expectOnePlugin(e){if(!e.some(e=>this.hasPlugin(e)))throw this.raise(_.MissingOneOfPlugins,this.state.startLoc,{missingPlugin:e})}errorBuilder(e){return(t,n,r)=>{this.raise(e,mt(t,n,r))}}},vt=class{static{x(this,`ClassScope`)}constructor(){this.privateNames=new Set,this.loneAccessors=new Map,this.undefinedPrivateNames=new Map}},yt=class{static{x(this,`ClassScopeHandler`)}constructor(e){this.parser=void 0,this.stack=[],this.undefinedPrivateNames=new Map,this.parser=e}current(){return this.stack[this.stack.length-1]}enter(){this.stack.push(new vt)}exit(){let e=this.stack.pop(),t=this.current();for(let[n,r]of Array.from(e.undefinedPrivateNames))t?t.undefinedPrivateNames.has(n)||t.undefinedPrivateNames.set(n,r):this.parser.raise(_.InvalidPrivateFieldResolution,r,{identifierName:n})}declarePrivateName(e,t,n){let{privateNames:r,loneAccessors:i,undefinedPrivateNames:a}=this.current(),o=r.has(e);if(t&3){let n=o&&i.get(e);if(n){let r=n&4,a=t&4;o=(n&3)==(t&3)||r!==a,o||i.delete(e)}else o||i.set(e,t)}o&&this.parser.raise(_.PrivateNameRedeclaration,n,{identifierName:e}),r.add(e),a.delete(e)}usePrivateName(e,t){let n;for(n of this.stack)if(n.privateNames.has(e))return;n?n.undefinedPrivateNames.set(e,t):this.parser.raise(_.InvalidPrivateFieldResolution,t,{identifierName:e})}},bt=class{static{x(this,`ExpressionScope`)}constructor(e=0){this.type=e}canBeArrowParameterDeclaration(){return this.type===2||this.type===1}isCertainlyParameterDeclaration(){return this.type===3}},xt=class extends bt{static{x(this,`ArrowHeadParsingScope`)}constructor(e){super(e),this.declarationErrors=new Map}recordDeclarationError(e,t){let n=t.index;this.declarationErrors.set(n,[e,t])}clearDeclarationError(e){this.declarationErrors.delete(e)}iterateErrors(e){this.declarationErrors.forEach(e)}},St=class{static{x(this,`ExpressionScopeHandler`)}constructor(e){this.parser=void 0,this.stack=[new bt],this.parser=e}enter(e){this.stack.push(e)}exit(){this.stack.pop()}recordParameterInitializerError(e,t){let n=t.loc.start,{stack:r}=this,i=r.length-1,a=r[i];for(;!a.isCertainlyParameterDeclaration();){if(a.canBeArrowParameterDeclaration())a.recordDeclarationError(e,n);else return;a=r[--i]}this.parser.raise(e,n)}recordArrowParameterBindingError(e,t){let{stack:n}=this,r=n[n.length-1],i=t.loc.start;if(r.isCertainlyParameterDeclaration())this.parser.raise(e,i);else if(r.canBeArrowParameterDeclaration())r.recordDeclarationError(e,i);else return}recordAsyncArrowParametersError(e){let{stack:t}=this,n=t.length-1,r=t[n];for(;r.canBeArrowParameterDeclaration();)r.type===2&&r.recordDeclarationError(_.AwaitBindingIdentifier,e),r=t[--n]}validateAsPattern(){let{stack:e}=this,t=e[e.length-1];t.canBeArrowParameterDeclaration()&&t.iterateErrors(([t,n])=>{this.parser.raise(t,n);let r=e.length-2,i=e[r];for(;i.canBeArrowParameterDeclaration();)i.clearDeclarationError(n.index),i=e[--r]})}};function Ct(){return new bt(3)}x(Ct,`newParameterDeclarationScope`);function wt(){return new xt(1)}x(wt,`newArrowHeadScope`);function Tt(){return new xt(2)}x(Tt,`newAsyncArrowScope`);function Et(){return new bt}x(Et,`newExpressionScope`);var Dt=class{static{x(this,`ProductionParameterHandler`)}constructor(){this.stacks=[]}enter(e){this.stacks.push(e)}exit(){this.stacks.pop()}currentFlags(){return this.stacks[this.stacks.length-1]}get hasAwait(){return(this.currentFlags()&2)>0}get hasYield(){return(this.currentFlags()&1)>0}get hasReturn(){return(this.currentFlags()&4)>0}get hasIn(){return(this.currentFlags()&8)>0}};function Ot(e,t){return(e?2:0)|!!t}x(Ot,`functionFlags`);var kt=class extends _t{static{x(this,`UtilParser`)}addExtra(e,t,n,r=!0){if(!e)return;let{extra:i}=e;i??(i={},e.extra=i),r?i[t]=n:Object.defineProperty(i,t,{enumerable:r,value:n})}isContextual(e){return this.state.type===e&&!this.state.containsEsc}isUnparsedContextual(e,t){let n=e+t.length;if(this.input.slice(e,n)===t){let e=this.input.charCodeAt(n);return!(H(e)||(e&64512)==55296)}return!1}isLookaheadContextual(e){let t=this.nextTokenStart();return this.isUnparsedContextual(t,e)}eatContextual(e){return this.isContextual(e)?(this.next(),!0):!1}expectContextual(e,t){if(!this.eatContextual(e)){if(t!=null)throw this.raise(t,this.state.startLoc);this.unexpected(null,e)}}canInsertSemicolon(){return this.match(140)||this.match(8)||this.hasPrecedingLineBreak()}hasPrecedingLineBreak(){return tt(this.input,this.offsetToSourcePos(this.state.lastTokEndLoc.index),this.state.start)}hasFollowingLineBreak(){return tt(this.input,this.state.end,this.nextTokenStart())}isLineTerminator(){return this.eat(13)||this.canInsertSemicolon()}semicolon(e=!0){(e?this.isLineTerminator():this.eat(13))||this.raise(_.MissingSemicolon,this.state.lastTokEndLoc)}expect(e,t){this.eat(e)||this.unexpected(t,e)}tryParse(e,t=this.state.clone()){let n={node:null};try{let r=e((e=null)=>{throw n.node=e,n});if(this.state.errors.length>t.errors.length){let e=this.state;return this.state=t,this.state.tokensLength=e.tokensLength,{node:r,error:e.errors[t.errors.length],thrown:!1,aborted:!1,failState:e}}return{node:r,error:null,thrown:!1,aborted:!1,failState:null}}catch(e){let r=this.state;if(this.state=t,e instanceof SyntaxError)return{node:null,error:e,thrown:!0,aborted:!1,failState:r};if(e===n)return{node:n.node,error:null,thrown:!1,aborted:!0,failState:r};throw e}}checkExpressionErrors(e,t){if(!e)return!1;let{shorthandAssignLoc:n,doubleProtoLoc:r,privateKeyLoc:i,optionalParametersLoc:a}=e,o=!!n||!!r||!!a||!!i;if(!t)return o;n!=null&&this.raise(_.InvalidCoverInitializedName,n),r!=null&&this.raise(_.DuplicateProto,r),i!=null&&this.raise(_.UnexpectedPrivateField,i),a!=null&&this.unexpected(a)}isLiteralPropertyName(){return ue(this.state.type)}isPrivateName(e){return e.type===`PrivateName`}getPrivateNameSV(e){return e.id.name}hasPropertyAsPrivateName(e){return(e.type===`MemberExpression`||e.type===`OptionalMemberExpression`)&&this.isPrivateName(e.property)}isObjectProperty(e){return e.type===`ObjectProperty`}isObjectMethod(e){return e.type===`ObjectMethod`}initializeScopes(e=this.options.sourceType===`module`){let t=this.state.labels;this.state.labels=[];let n=this.exportedIdentifiers;this.exportedIdentifiers=new Set;let r=this.inModule;this.inModule=e;let i=this.scope,a=this.getScopeHandler();this.scope=new a(this,e);let o=this.prodParam;this.prodParam=new Dt;let s=this.classScope;this.classScope=new yt(this);let c=this.expressionScope;return this.expressionScope=new St(this),()=>{this.state.labels=t,this.exportedIdentifiers=n,this.inModule=r,this.scope=i,this.prodParam=o,this.classScope=s,this.expressionScope=c}}enterInitialScopes(){let e=0;this.inModule&&(e|=2),this.scope.enter(1),this.prodParam.enter(e)}checkDestructuringPrivate(e){let{privateKeyLoc:t}=e;t!==null&&this.expectPlugin(`destructuringPrivate`,t)}},At=class{static{x(this,`ExpressionErrors`)}constructor(){this.shorthandAssignLoc=null,this.doubleProtoLoc=null,this.privateKeyLoc=null,this.optionalParametersLoc=null}},jt=class{static{x(this,`Node`)}constructor(e,t,n){this.type=``,this.start=t,this.end=0,this.loc=new r(n),e!=null&&e.options.ranges&&(this.range=[t,0]),e!=null&&e.filename&&(this.loc.filename=e.filename)}},Mt=jt.prototype;Mt.__clone=function(){let e=new jt(void 0,this.start,this.loc.start),t=Object.keys(this);for(let n=0,r=t.length;n<r;n++){let r=t[n];r!==`leadingComments`&&r!==`trailingComments`&&r!==`innerComments`&&(e[r]=this[r])}return e};function Nt(e){return Pt(e)}x(Nt,`clonePlaceholder`);function Pt(e){let{type:t,start:n,end:r,loc:i,range:a,extra:o,name:s}=e,c=Object.create(Mt);return c.type=t,c.start=n,c.end=r,c.loc=i,c.range=a,c.extra=o,c.name=s,t===`Placeholder`&&(c.expectedNode=e.expectedNode),c}x(Pt,`cloneIdentifier`);function Ft(e){let{type:t,start:n,end:r,loc:i,range:a,extra:o}=e;if(t===`Placeholder`)return Nt(e);let s=Object.create(Mt);return s.type=t,s.start=n,s.end=r,s.loc=i,s.range=a,e.raw===void 0?s.extra=o:s.raw=e.raw,s.value=e.value,s}x(Ft,`cloneStringLiteral`);var It=class extends kt{static{x(this,`NodeUtils`)}startNode(){let e=this.state.startLoc;return new jt(this,e.index,e)}startNodeAt(e){return new jt(this,e.index,e)}startNodeAtNode(e){return this.startNodeAt(e.loc.start)}finishNode(e,t){return this.finishNodeAt(e,t,this.state.lastTokEndLoc)}finishNodeAt(e,t,n){return e.type=t,e.end=n.index,e.loc.end=n,this.options.ranges&&(e.range[1]=n.index),this.options.attachComment&&this.processComment(e),e}resetStartLocation(e,t){e.start=t.index,e.loc.start=t,this.options.ranges&&(e.range[0]=t.index)}resetEndLocation(e,t=this.state.lastTokEndLoc){e.end=t.index,e.loc.end=t,this.options.ranges&&(e.range[1]=t.index)}resetStartLocationFromNode(e,t){this.resetStartLocation(e,t.loc.start)}},Lt=new Set([`_`,`any`,`bool`,`boolean`,`empty`,`extends`,`false`,`interface`,`mixed`,`null`,`number`,`static`,`string`,`true`,`typeof`,`void`]),W=g`flow`({AmbiguousConditionalArrow:`Ambiguous expression: wrap the arrow functions in parentheses to disambiguate.`,AmbiguousDeclareModuleKind:"Found both `declare module.exports` and `declare export` in the same module. Modules can only have 1 since they are either an ES module or they are a CommonJS module.",AssignReservedType:x(({reservedType:e})=>`Cannot overwrite reserved type ${e}.`,`AssignReservedType`),DeclareClassElement:"The `declare` modifier can only appear on class fields.",DeclareClassFieldInitializer:"Initializers are not allowed in fields with the `declare` modifier.",DuplicateDeclareModuleExports:"Duplicate `declare module.exports` statement.",EnumBooleanMemberNotInitialized:x(({memberName:e,enumName:t})=>`Boolean enum members need to be initialized. Use either \`${e} = true,\` or \`${e} = false,\` in enum \`${t}\`.`,`EnumBooleanMemberNotInitialized`),EnumDuplicateMemberName:x(({memberName:e,enumName:t})=>`Enum member names need to be unique, but the name \`${e}\` has already been used before in enum \`${t}\`.`,`EnumDuplicateMemberName`),EnumInconsistentMemberValues:x(({enumName:e})=>`Enum \`${e}\` has inconsistent member initializers. Either use no initializers, or consistently use literals (either booleans, numbers, or strings) for all member initializers.`,`EnumInconsistentMemberValues`),EnumInvalidExplicitType:x(({invalidEnumType:e,enumName:t})=>`Enum type \`${e}\` is not valid. Use one of \`boolean\`, \`number\`, \`string\`, or \`symbol\` in enum \`${t}\`.`,`EnumInvalidExplicitType`),EnumInvalidExplicitTypeUnknownSupplied:x(({enumName:e})=>`Supplied enum type is not valid. Use one of \`boolean\`, \`number\`, \`string\`, or \`symbol\` in enum \`${e}\`.`,`EnumInvalidExplicitTypeUnknownSupplied`),EnumInvalidMemberInitializerPrimaryType:x(({enumName:e,memberName:t,explicitType:n})=>`Enum \`${e}\` has type \`${n}\`, so the initializer of \`${t}\` needs to be a ${n} literal.`,`EnumInvalidMemberInitializerPrimaryType`),EnumInvalidMemberInitializerSymbolType:x(({enumName:e,memberName:t})=>`Symbol enum members cannot be initialized. Use \`${t},\` in enum \`${e}\`.`,`EnumInvalidMemberInitializerSymbolType`),EnumInvalidMemberInitializerUnknownType:x(({enumName:e,memberName:t})=>`The enum member initializer for \`${t}\` needs to be a literal (either a boolean, number, or string) in enum \`${e}\`.`,`EnumInvalidMemberInitializerUnknownType`),EnumInvalidMemberName:x(({enumName:e,memberName:t,suggestion:n})=>`Enum member names cannot start with lowercase 'a' through 'z'. Instead of using \`${t}\`, consider using \`${n}\`, in enum \`${e}\`.`,`EnumInvalidMemberName`),EnumNumberMemberNotInitialized:x(({enumName:e,memberName:t})=>`Number enum members need to be initialized, e.g. \`${t} = 1\` in enum \`${e}\`.`,`EnumNumberMemberNotInitialized`),EnumStringMemberInconsistentlyInitialized:x(({enumName:e})=>`String enum members need to consistently either all use initializers, or use no initializers, in enum \`${e}\`.`,`EnumStringMemberInconsistentlyInitialized`),GetterMayNotHaveThisParam:"A getter cannot have a `this` parameter.",ImportReflectionHasImportType:"An `import module` declaration can not use `type` or `typeof` keyword.",ImportTypeShorthandOnlyInPureImport:"The `type` and `typeof` keywords on named imports can only be used on regular `import` statements. It cannot be used with `import type` or `import typeof` statements.",InexactInsideExact:`Explicit inexact syntax cannot appear inside an explicit exact object type.`,InexactInsideNonObject:`Explicit inexact syntax cannot appear in class or interface definitions.`,InexactVariance:`Explicit inexact syntax cannot have variance.`,InvalidNonTypeImportInDeclareModule:"Imports within a `declare module` body must always be `import type` or `import typeof`.",MissingTypeParamDefault:`Type parameter declaration needs a default, since a preceding type parameter declaration has a default.`,NestedDeclareModule:"`declare module` cannot be used inside another `declare module`.",NestedFlowComment:`Cannot have a flow comment inside another flow comment.`,PatternIsOptional:Object.assign({message:`A binding pattern parameter cannot be optional in an implementation signature.`},{reasonCode:`OptionalBindingPattern`}),SetterMayNotHaveThisParam:"A setter cannot have a `this` parameter.",SpreadVariance:`Spread properties cannot have variance.`,ThisParamAnnotationRequired:"A type annotation is required for the `this` parameter.",ThisParamBannedInConstructor:"Constructors cannot have a `this` parameter; constructors don't bind `this` like other functions.",ThisParamMayNotBeOptional:"The `this` parameter cannot be optional.",ThisParamMustBeFirst:"The `this` parameter must be the first function parameter.",ThisParamNoDefault:"The `this` parameter may not have a default value.",TypeBeforeInitializer:"Type annotations must come before default assignments, e.g. instead of `age = 25: number` use `age: number = 25`.",TypeCastInPattern:`The type cast expression is expected to be wrapped with parenthesis.`,UnexpectedExplicitInexactInObject:`Explicit inexact syntax must appear at the end of an inexact object.`,UnexpectedReservedType:x(({reservedType:e})=>`Unexpected reserved type ${e}.`,`UnexpectedReservedType`),UnexpectedReservedUnderscore:"`_` is only allowed as a type argument to call or new.",UnexpectedSpaceBetweenModuloChecks:"Spaces between `%` and `checks` are not allowed here.",UnexpectedSpreadType:`Spread operator cannot appear in class or interface definitions.`,UnexpectedSubtractionOperand:`Unexpected token, expected "number" or "bigint".`,UnexpectedTokenAfterTypeParameter:`Expected an arrow function after this type parameter declaration.`,UnexpectedTypeParameterBeforeAsyncArrowFunction:"Type parameters must come after the async keyword, e.g. instead of `<T> async () => {}`, use `async <T>() => {}`.",UnsupportedDeclareExportKind:x(({unsupportedExportKind:e,suggestion:t})=>`\`declare export ${e}\` is not supported. Use \`${t}\` instead.`,`UnsupportedDeclareExportKind`),UnsupportedStatementInDeclareModule:`Only declares and type imports are allowed inside declare module.`,UnterminatedFlowComment:`Unterminated flow-comment.`});function Rt(e){return e.type===`DeclareExportAllDeclaration`||e.type===`DeclareExportDeclaration`&&(!e.declaration||e.declaration.type!==`TypeAlias`&&e.declaration.type!==`InterfaceDeclaration`)}x(Rt,`isEsModuleType`);function zt(e){return e.importKind===`type`||e.importKind===`typeof`}x(zt,`hasTypeImportKind`);var Bt={const:`declare export var`,let:`declare export var`,type:`export type`,interface:`export interface`};function G(e,t){let n=[],r=[];for(let i=0;i<e.length;i++)(t(e[i],i,e)?n:r).push(e[i]);return[n,r]}x(G,`partition`);var K=/\*?\s*@((?:no)?flow)\b/,q=x(e=>class extends e{static{x(this,`FlowParserMixin`)}constructor(...e){super(...e),this.flowPragma=void 0}getScopeHandler(){return Ke}shouldParseTypes(){return this.getPluginOption(`flow`,`all`)||this.flowPragma===`flow`}finishToken(e,t){e!==134&&e!==13&&e!==28&&this.flowPragma===void 0&&(this.flowPragma=null),super.finishToken(e,t)}addComment(e){if(this.flowPragma===void 0){let t=K.exec(e.value);if(t)if(t[1]===`flow`)this.flowPragma=`flow`;else if(t[1]===`noflow`)this.flowPragma=`noflow`;else throw Error(`Unexpected flow pragma`)}super.addComment(e)}flowParseTypeInitialiser(e){let t=this.state.inType;this.state.inType=!0,this.expect(e||14);let n=this.flowParseType();return this.state.inType=t,n}flowParsePredicate(){let e=this.startNode(),t=this.state.startLoc;return this.next(),this.expectContextual(110),this.state.lastTokStartLoc.index>t.index+1&&this.raise(W.UnexpectedSpaceBetweenModuloChecks,t),this.eat(10)?(e.value=super.parseExpression(),this.expect(11),this.finishNode(e,`DeclaredPredicate`)):this.finishNode(e,`InferredPredicate`)}flowParseTypeAndPredicateInitialiser(){let e=this.state.inType;this.state.inType=!0,this.expect(14);let t=null,n=null;return this.match(54)?(this.state.inType=e,n=this.flowParsePredicate()):(t=this.flowParseType(),this.state.inType=e,this.match(54)&&(n=this.flowParsePredicate())),[t,n]}flowParseDeclareClass(e){return this.next(),this.flowParseInterfaceish(e,!0),this.finishNode(e,`DeclareClass`)}flowParseDeclareFunction(e){this.next();let t=e.id=this.parseIdentifier(),n=this.startNode(),r=this.startNode();this.match(47)?n.typeParameters=this.flowParseTypeParameterDeclaration():n.typeParameters=null,this.expect(10);let i=this.flowParseFunctionTypeParams();return n.params=i.params,n.rest=i.rest,n.this=i._this,this.expect(11),[n.returnType,e.predicate]=this.flowParseTypeAndPredicateInitialiser(),r.typeAnnotation=this.finishNode(n,`FunctionTypeAnnotation`),t.typeAnnotation=this.finishNode(r,`TypeAnnotation`),this.resetEndLocation(t),this.semicolon(),this.scope.declareName(e.id.name,2048,e.id.loc.start),this.finishNode(e,`DeclareFunction`)}flowParseDeclare(e,t){if(this.match(80))return this.flowParseDeclareClass(e);if(this.match(68))return this.flowParseDeclareFunction(e);if(this.match(74))return this.flowParseDeclareVariable(e);if(this.eatContextual(127))return this.match(16)?this.flowParseDeclareModuleExports(e):(t&&this.raise(W.NestedDeclareModule,this.state.lastTokStartLoc),this.flowParseDeclareModule(e));if(this.isContextual(130))return this.flowParseDeclareTypeAlias(e);if(this.isContextual(131))return this.flowParseDeclareOpaqueType(e);if(this.isContextual(129))return this.flowParseDeclareInterface(e);if(this.match(82))return this.flowParseDeclareExportDeclaration(e,t);this.unexpected()}flowParseDeclareVariable(e){return this.next(),e.id=this.flowParseTypeAnnotatableIdentifier(!0),this.scope.declareName(e.id.name,5,e.id.loc.start),this.semicolon(),this.finishNode(e,`DeclareVariable`)}flowParseDeclareModule(e){this.scope.enter(0),this.match(134)?e.id=super.parseExprAtom():e.id=this.parseIdentifier();let t=e.body=this.startNode(),n=t.body=[];for(this.expect(5);!this.match(8);){let e=this.startNode();this.match(83)?(this.next(),!this.isContextual(130)&&!this.match(87)&&this.raise(W.InvalidNonTypeImportInDeclareModule,this.state.lastTokStartLoc),super.parseImport(e)):(this.expectContextual(125,W.UnsupportedStatementInDeclareModule),e=this.flowParseDeclare(e,!0)),n.push(e)}this.scope.exit(),this.expect(8),this.finishNode(t,`BlockStatement`);let r=null,i=!1;return n.forEach(e=>{Rt(e)?(r===`CommonJS`&&this.raise(W.AmbiguousDeclareModuleKind,e),r=`ES`):e.type===`DeclareModuleExports`&&(i&&this.raise(W.DuplicateDeclareModuleExports,e),r===`ES`&&this.raise(W.AmbiguousDeclareModuleKind,e),r=`CommonJS`,i=!0)}),e.kind=r||`CommonJS`,this.finishNode(e,`DeclareModule`)}flowParseDeclareExportDeclaration(e,t){if(this.expect(82),this.eat(65))return this.match(68)||this.match(80)?e.declaration=this.flowParseDeclare(this.startNode()):(e.declaration=this.flowParseType(),this.semicolon()),e.default=!0,this.finishNode(e,`DeclareExportDeclaration`);if(this.match(75)||this.isLet()||(this.isContextual(130)||this.isContextual(129))&&!t){let e=this.state.value;throw this.raise(W.UnsupportedDeclareExportKind,this.state.startLoc,{unsupportedExportKind:e,suggestion:Bt[e]})}if(this.match(74)||this.match(68)||this.match(80)||this.isContextual(131))return e.declaration=this.flowParseDeclare(this.startNode()),e.default=!1,this.finishNode(e,`DeclareExportDeclaration`);if(this.match(55)||this.match(5)||this.isContextual(129)||this.isContextual(130)||this.isContextual(131))return e=this.parseExport(e,null),e.type===`ExportNamedDeclaration`&&(e.type=`ExportDeclaration`,e.default=!1,delete e.exportKind),e.type=`Declare`+e.type,e;this.unexpected()}flowParseDeclareModuleExports(e){return this.next(),this.expectContextual(111),e.typeAnnotation=this.flowParseTypeAnnotation(),this.semicolon(),this.finishNode(e,`DeclareModuleExports`)}flowParseDeclareTypeAlias(e){this.next();let t=this.flowParseTypeAlias(e);return t.type=`DeclareTypeAlias`,t}flowParseDeclareOpaqueType(e){this.next();let t=this.flowParseOpaqueType(e,!0);return t.type=`DeclareOpaqueType`,t}flowParseDeclareInterface(e){return this.next(),this.flowParseInterfaceish(e,!1),this.finishNode(e,`DeclareInterface`)}flowParseInterfaceish(e,t){if(e.id=this.flowParseRestrictedIdentifier(!t,!0),this.scope.declareName(e.id.name,t?17:8201,e.id.loc.start),this.match(47)?e.typeParameters=this.flowParseTypeParameterDeclaration():e.typeParameters=null,e.extends=[],this.eat(81))do e.extends.push(this.flowParseInterfaceExtends());while(!t&&this.eat(12));if(t){if(e.implements=[],e.mixins=[],this.eatContextual(117))do e.mixins.push(this.flowParseInterfaceExtends());while(this.eat(12));if(this.eatContextual(113))do e.implements.push(this.flowParseInterfaceExtends());while(this.eat(12))}e.body=this.flowParseObjectType({allowStatic:t,allowExact:!1,allowSpread:!1,allowProto:t,allowInexact:!1})}flowParseInterfaceExtends(){let e=this.startNode();return e.id=this.flowParseQualifiedTypeIdentifier(),this.match(47)?e.typeParameters=this.flowParseTypeParameterInstantiation():e.typeParameters=null,this.finishNode(e,`InterfaceExtends`)}flowParseInterface(e){return this.flowParseInterfaceish(e,!1),this.finishNode(e,`InterfaceDeclaration`)}checkNotUnderscore(e){e===`_`&&this.raise(W.UnexpectedReservedUnderscore,this.state.startLoc)}checkReservedType(e,t,n){Lt.has(e)&&this.raise(n?W.AssignReservedType:W.UnexpectedReservedType,t,{reservedType:e})}flowParseRestrictedIdentifier(e,t){return this.checkReservedType(this.state.value,this.state.startLoc,t),this.parseIdentifier(e)}flowParseTypeAlias(e){return e.id=this.flowParseRestrictedIdentifier(!1,!0),this.scope.declareName(e.id.name,8201,e.id.loc.start),this.match(47)?e.typeParameters=this.flowParseTypeParameterDeclaration():e.typeParameters=null,e.right=this.flowParseTypeInitialiser(29),this.semicolon(),this.finishNode(e,`TypeAlias`)}flowParseOpaqueType(e,t){return this.expectContextual(130),e.id=this.flowParseRestrictedIdentifier(!0,!0),this.scope.declareName(e.id.name,8201,e.id.loc.start),this.match(47)?e.typeParameters=this.flowParseTypeParameterDeclaration():e.typeParameters=null,e.supertype=null,this.match(14)&&(e.supertype=this.flowParseTypeInitialiser(14)),e.impltype=null,t||(e.impltype=this.flowParseTypeInitialiser(29)),this.semicolon(),this.finishNode(e,`OpaqueType`)}flowParseTypeParameter(e=!1){let t=this.state.startLoc,n=this.startNode(),r=this.flowParseVariance(),i=this.flowParseTypeAnnotatableIdentifier();return n.name=i.name,n.variance=r,n.bound=i.typeAnnotation,this.match(29)?(this.eat(29),n.default=this.flowParseType()):e&&this.raise(W.MissingTypeParamDefault,t),this.finishNode(n,`TypeParameter`)}flowParseTypeParameterDeclaration(){let e=this.state.inType,t=this.startNode();t.params=[],this.state.inType=!0,this.match(47)||this.match(143)?this.next():this.unexpected();let n=!1;do{let e=this.flowParseTypeParameter(n);t.params.push(e),e.default&&(n=!0),this.match(48)||this.expect(12)}while(!this.match(48));return this.expect(48),this.state.inType=e,this.finishNode(t,`TypeParameterDeclaration`)}flowParseTypeParameterInstantiation(){let e=this.startNode(),t=this.state.inType;e.params=[],this.state.inType=!0,this.expect(47);let n=this.state.noAnonFunctionType;for(this.state.noAnonFunctionType=!1;!this.match(48);)e.params.push(this.flowParseType()),this.match(48)||this.expect(12);return this.state.noAnonFunctionType=n,this.expect(48),this.state.inType=t,this.finishNode(e,`TypeParameterInstantiation`)}flowParseTypeParameterInstantiationCallOrNew(){let e=this.startNode(),t=this.state.inType;for(e.params=[],this.state.inType=!0,this.expect(47);!this.match(48);)e.params.push(this.flowParseTypeOrImplicitInstantiation()),this.match(48)||this.expect(12);return this.expect(48),this.state.inType=t,this.finishNode(e,`TypeParameterInstantiation`)}flowParseInterfaceType(){let e=this.startNode();if(this.expectContextual(129),e.extends=[],this.eat(81))do e.extends.push(this.flowParseInterfaceExtends());while(this.eat(12));return e.body=this.flowParseObjectType({allowStatic:!1,allowExact:!1,allowSpread:!1,allowProto:!1,allowInexact:!1}),this.finishNode(e,`InterfaceTypeAnnotation`)}flowParseObjectPropertyKey(){return this.match(135)||this.match(134)?super.parseExprAtom():this.parseIdentifier(!0)}flowParseObjectTypeIndexer(e,t,n){return e.static=t,this.lookahead().type===14?(e.id=this.flowParseObjectPropertyKey(),e.key=this.flowParseTypeInitialiser()):(e.id=null,e.key=this.flowParseType()),this.expect(3),e.value=this.flowParseTypeInitialiser(),e.variance=n,this.finishNode(e,`ObjectTypeIndexer`)}flowParseObjectTypeInternalSlot(e,t){return e.static=t,e.id=this.flowParseObjectPropertyKey(),this.expect(3),this.expect(3),this.match(47)||this.match(10)?(e.method=!0,e.optional=!1,e.value=this.flowParseObjectTypeMethodish(this.startNodeAt(e.loc.start))):(e.method=!1,this.eat(17)&&(e.optional=!0),e.value=this.flowParseTypeInitialiser()),this.finishNode(e,`ObjectTypeInternalSlot`)}flowParseObjectTypeMethodish(e){for(e.params=[],e.rest=null,e.typeParameters=null,e.this=null,this.match(47)&&(e.typeParameters=this.flowParseTypeParameterDeclaration()),this.expect(10),this.match(78)&&(e.this=this.flowParseFunctionTypeParam(!0),e.this.name=null,this.match(11)||this.expect(12));!this.match(11)&&!this.match(21);)e.params.push(this.flowParseFunctionTypeParam(!1)),this.match(11)||this.expect(12);return this.eat(21)&&(e.rest=this.flowParseFunctionTypeParam(!1)),this.expect(11),e.returnType=this.flowParseTypeInitialiser(),this.finishNode(e,`FunctionTypeAnnotation`)}flowParseObjectTypeCallProperty(e,t){let n=this.startNode();return e.static=t,e.value=this.flowParseObjectTypeMethodish(n),this.finishNode(e,`ObjectTypeCallProperty`)}flowParseObjectType({allowStatic:e,allowExact:t,allowSpread:n,allowProto:r,allowInexact:i}){let a=this.state.inType;this.state.inType=!0;let o=this.startNode();o.callProperties=[],o.properties=[],o.indexers=[],o.internalSlots=[];let s,c,l=!1;for(t&&this.match(6)?(this.expect(6),s=9,c=!0):(this.expect(5),s=8,c=!1),o.exact=c;!this.match(s);){let t=!1,a=null,s=null,u=this.startNode();if(r&&this.isContextual(118)){let t=this.lookahead();t.type!==14&&t.type!==17&&(this.next(),a=this.state.startLoc,e=!1)}if(e&&this.isContextual(106)){let e=this.lookahead();e.type!==14&&e.type!==17&&(this.next(),t=!0)}let d=this.flowParseVariance();if(this.eat(0))a!=null&&this.unexpected(a),this.eat(0)?(d&&this.unexpected(d.loc.start),o.internalSlots.push(this.flowParseObjectTypeInternalSlot(u,t))):o.indexers.push(this.flowParseObjectTypeIndexer(u,t,d));else if(this.match(10)||this.match(47))a!=null&&this.unexpected(a),d&&this.unexpected(d.loc.start),o.callProperties.push(this.flowParseObjectTypeCallProperty(u,t));else{let e=`init`;(this.isContextual(99)||this.isContextual(104))&&ue(this.lookahead().type)&&(e=this.state.value,this.next());let r=this.flowParseObjectTypeProperty(u,t,a,d,e,n,i??!c);r===null?(l=!0,s=this.state.lastTokStartLoc):o.properties.push(r)}this.flowObjectTypeSemicolon(),s&&!this.match(8)&&!this.match(9)&&this.raise(W.UnexpectedExplicitInexactInObject,s)}this.expect(s),n&&(o.inexact=l);let u=this.finishNode(o,`ObjectTypeAnnotation`);return this.state.inType=a,u}flowParseObjectTypeProperty(e,t,n,r,i,a,o){if(this.eat(21))return this.match(12)||this.match(13)||this.match(8)||this.match(9)?(a?o||this.raise(W.InexactInsideExact,this.state.lastTokStartLoc):this.raise(W.InexactInsideNonObject,this.state.lastTokStartLoc),r&&this.raise(W.InexactVariance,r),null):(a||this.raise(W.UnexpectedSpreadType,this.state.lastTokStartLoc),n!=null&&this.unexpected(n),r&&this.raise(W.SpreadVariance,r),e.argument=this.flowParseType(),this.finishNode(e,`ObjectTypeSpreadProperty`));{e.key=this.flowParseObjectPropertyKey(),e.static=t,e.proto=n!=null,e.kind=i;let o=!1;return this.match(47)||this.match(10)?(e.method=!0,n!=null&&this.unexpected(n),r&&this.unexpected(r.loc.start),e.value=this.flowParseObjectTypeMethodish(this.startNodeAt(e.loc.start)),(i===`get`||i===`set`)&&this.flowCheckGetterSetterParams(e),!a&&e.key.name===`constructor`&&e.value.this&&this.raise(W.ThisParamBannedInConstructor,e.value.this)):(i!==`init`&&this.unexpected(),e.method=!1,this.eat(17)&&(o=!0),e.value=this.flowParseTypeInitialiser(),e.variance=r),e.optional=o,this.finishNode(e,`ObjectTypeProperty`)}}flowCheckGetterSetterParams(e){let t=e.kind===`get`?0:1,n=e.value.params.length+ +!!e.value.rest;e.value.this&&this.raise(e.kind===`get`?W.GetterMayNotHaveThisParam:W.SetterMayNotHaveThisParam,e.value.this),n!==t&&this.raise(e.kind===`get`?_.BadGetterArity:_.BadSetterArity,e),e.kind===`set`&&e.value.rest&&this.raise(_.BadSetterRestParameter,e)}flowObjectTypeSemicolon(){!this.eat(13)&&!this.eat(12)&&!this.match(8)&&!this.match(9)&&this.unexpected()}flowParseQualifiedTypeIdentifier(e,t){e??=this.state.startLoc;let n=t||this.flowParseRestrictedIdentifier(!0);for(;this.eat(16);){let t=this.startNodeAt(e);t.qualification=n,t.id=this.flowParseRestrictedIdentifier(!0),n=this.finishNode(t,`QualifiedTypeIdentifier`)}return n}flowParseGenericType(e,t){let n=this.startNodeAt(e);return n.typeParameters=null,n.id=this.flowParseQualifiedTypeIdentifier(e,t),this.match(47)&&(n.typeParameters=this.flowParseTypeParameterInstantiation()),this.finishNode(n,`GenericTypeAnnotation`)}flowParseTypeofType(){let e=this.startNode();return this.expect(87),e.argument=this.flowParsePrimaryType(),this.finishNode(e,`TypeofTypeAnnotation`)}flowParseTupleType(){let e=this.startNode();for(e.types=[],this.expect(0);this.state.pos<this.length&&!this.match(3)&&(e.types.push(this.flowParseType()),!this.match(3));)this.expect(12);return this.expect(3),this.finishNode(e,`TupleTypeAnnotation`)}flowParseFunctionTypeParam(e){let t=null,n=!1,r=null,i=this.startNode(),a=this.lookahead(),o=this.state.type===78;return a.type===14||a.type===17?(o&&!e&&this.raise(W.ThisParamMustBeFirst,i),t=this.parseIdentifier(o),this.eat(17)&&(n=!0,o&&this.raise(W.ThisParamMayNotBeOptional,i)),r=this.flowParseTypeInitialiser()):r=this.flowParseType(),i.name=t,i.optional=n,i.typeAnnotation=r,this.finishNode(i,`FunctionTypeParam`)}reinterpretTypeAsFunctionTypeParam(e){let t=this.startNodeAt(e.loc.start);return t.name=null,t.optional=!1,t.typeAnnotation=e,this.finishNode(t,`FunctionTypeParam`)}flowParseFunctionTypeParams(e=[]){let t=null,n=null;for(this.match(78)&&(n=this.flowParseFunctionTypeParam(!0),n.name=null,this.match(11)||this.expect(12));!this.match(11)&&!this.match(21);)e.push(this.flowParseFunctionTypeParam(!1)),this.match(11)||this.expect(12);return this.eat(21)&&(t=this.flowParseFunctionTypeParam(!1)),{params:e,rest:t,_this:n}}flowIdentToTypeAnnotation(e,t,n){switch(n.name){case`any`:return this.finishNode(t,`AnyTypeAnnotation`);case`bool`:case`boolean`:return this.finishNode(t,`BooleanTypeAnnotation`);case`mixed`:return this.finishNode(t,`MixedTypeAnnotation`);case`empty`:return this.finishNode(t,`EmptyTypeAnnotation`);case`number`:return this.finishNode(t,`NumberTypeAnnotation`);case`string`:return this.finishNode(t,`StringTypeAnnotation`);case`symbol`:return this.finishNode(t,`SymbolTypeAnnotation`);default:return this.checkNotUnderscore(n.name),this.flowParseGenericType(e,n)}}flowParsePrimaryType(){let e=this.state.startLoc,t=this.startNode(),n,r,i=!1,a=this.state.noAnonFunctionType;switch(this.state.type){case 5:return this.flowParseObjectType({allowStatic:!1,allowExact:!1,allowSpread:!0,allowProto:!1,allowInexact:!0});case 6:return this.flowParseObjectType({allowStatic:!1,allowExact:!0,allowSpread:!0,allowProto:!1,allowInexact:!1});case 0:return this.state.noAnonFunctionType=!1,r=this.flowParseTupleType(),this.state.noAnonFunctionType=a,r;case 47:{let e=this.startNode();return e.typeParameters=this.flowParseTypeParameterDeclaration(),this.expect(10),n=this.flowParseFunctionTypeParams(),e.params=n.params,e.rest=n.rest,e.this=n._this,this.expect(11),this.expect(19),e.returnType=this.flowParseType(),this.finishNode(e,`FunctionTypeAnnotation`)}case 10:{let e=this.startNode();if(this.next(),!this.match(11)&&!this.match(21))if(L(this.state.type)||this.match(78)){let e=this.lookahead().type;i=e!==17&&e!==14}else i=!0;if(i){if(this.state.noAnonFunctionType=!1,r=this.flowParseType(),this.state.noAnonFunctionType=a,this.state.noAnonFunctionType||!(this.match(12)||this.match(11)&&this.lookahead().type===19))return this.expect(11),r;this.eat(12)}return n=r?this.flowParseFunctionTypeParams([this.reinterpretTypeAsFunctionTypeParam(r)]):this.flowParseFunctionTypeParams(),e.params=n.params,e.rest=n.rest,e.this=n._this,this.expect(11),this.expect(19),e.returnType=this.flowParseType(),e.typeParameters=null,this.finishNode(e,`FunctionTypeAnnotation`)}case 134:return this.parseLiteral(this.state.value,`StringLiteralTypeAnnotation`);case 85:case 86:return t.value=this.match(85),this.next(),this.finishNode(t,`BooleanLiteralTypeAnnotation`);case 53:if(this.state.value===`-`){if(this.next(),this.match(135))return this.parseLiteralAtNode(-this.state.value,`NumberLiteralTypeAnnotation`,t);if(this.match(136))return this.parseLiteralAtNode(-this.state.value,`BigIntLiteralTypeAnnotation`,t);throw this.raise(W.UnexpectedSubtractionOperand,this.state.startLoc)}this.unexpected();return;case 135:return this.parseLiteral(this.state.value,`NumberLiteralTypeAnnotation`);case 136:return this.parseLiteral(this.state.value,`BigIntLiteralTypeAnnotation`);case 88:return this.next(),this.finishNode(t,`VoidTypeAnnotation`);case 84:return this.next(),this.finishNode(t,`NullLiteralTypeAnnotation`);case 78:return this.next(),this.finishNode(t,`ThisTypeAnnotation`);case 55:return this.next(),this.finishNode(t,`ExistsTypeAnnotation`);case 87:return this.flowParseTypeofType();default:if(he(this.state.type)){let e=B(this.state.type);return this.next(),super.createIdentifier(t,e)}else if(L(this.state.type))return this.isContextual(129)?this.flowParseInterfaceType():this.flowIdentToTypeAnnotation(e,t,this.parseIdentifier())}this.unexpected()}flowParsePostfixType(){let e=this.state.startLoc,t=this.flowParsePrimaryType(),n=!1;for(;(this.match(0)||this.match(18))&&!this.canInsertSemicolon();){let r=this.startNodeAt(e),i=this.eat(18);n||=i,this.expect(0),!i&&this.match(3)?(r.elementType=t,this.next(),t=this.finishNode(r,`ArrayTypeAnnotation`)):(r.objectType=t,r.indexType=this.flowParseType(),this.expect(3),n?(r.optional=i,t=this.finishNode(r,`OptionalIndexedAccessType`)):t=this.finishNode(r,`IndexedAccessType`))}return t}flowParsePrefixType(){let e=this.startNode();return this.eat(17)?(e.typeAnnotation=this.flowParsePrefixType(),this.finishNode(e,`NullableTypeAnnotation`)):this.flowParsePostfixType()}flowParseAnonFunctionWithoutParens(){let e=this.flowParsePrefixType();if(!this.state.noAnonFunctionType&&this.eat(19)){let t=this.startNodeAt(e.loc.start);return t.params=[this.reinterpretTypeAsFunctionTypeParam(e)],t.rest=null,t.this=null,t.returnType=this.flowParseType(),t.typeParameters=null,this.finishNode(t,`FunctionTypeAnnotation`)}return e}flowParseIntersectionType(){let e=this.startNode();this.eat(45);let t=this.flowParseAnonFunctionWithoutParens();for(e.types=[t];this.eat(45);)e.types.push(this.flowParseAnonFunctionWithoutParens());return e.types.length===1?t:this.finishNode(e,`IntersectionTypeAnnotation`)}flowParseUnionType(){let e=this.startNode();this.eat(43);let t=this.flowParseIntersectionType();for(e.types=[t];this.eat(43);)e.types.push(this.flowParseIntersectionType());return e.types.length===1?t:this.finishNode(e,`UnionTypeAnnotation`)}flowParseType(){let e=this.state.inType;this.state.inType=!0;let t=this.flowParseUnionType();return this.state.inType=e,t}flowParseTypeOrImplicitInstantiation(){if(this.state.type===132&&this.state.value===`_`){let e=this.state.startLoc,t=this.parseIdentifier();return this.flowParseGenericType(e,t)}else return this.flowParseType()}flowParseTypeAnnotation(){let e=this.startNode();return e.typeAnnotation=this.flowParseTypeInitialiser(),this.finishNode(e,`TypeAnnotation`)}flowParseTypeAnnotatableIdentifier(e){let t=e?this.parseIdentifier():this.flowParseRestrictedIdentifier();return this.match(14)&&(t.typeAnnotation=this.flowParseTypeAnnotation(),this.resetEndLocation(t)),t}typeCastToParameter(e){return e.expression.typeAnnotation=e.typeAnnotation,this.resetEndLocation(e.expression,e.typeAnnotation.loc.end),e.expression}flowParseVariance(){let e=null;return this.match(53)?(e=this.startNode(),this.state.value===`+`?e.kind=`plus`:e.kind=`minus`,this.next(),this.finishNode(e,`Variance`)):e}parseFunctionBody(e,t,n=!1){if(t){this.forwardNoArrowParamsConversionAt(e,()=>super.parseFunctionBody(e,!0,n));return}super.parseFunctionBody(e,!1,n)}parseFunctionBodyAndFinish(e,t,n=!1){if(this.match(14)){let t=this.startNode();[t.typeAnnotation,e.predicate]=this.flowParseTypeAndPredicateInitialiser(),e.returnType=t.typeAnnotation?this.finishNode(t,`TypeAnnotation`):null}return super.parseFunctionBodyAndFinish(e,t,n)}parseStatementLike(e){if(this.state.strict&&this.isContextual(129)){if(le(this.lookahead().type)){let e=this.startNode();return this.next(),this.flowParseInterface(e)}}else if(this.isContextual(126)){let e=this.startNode();return this.next(),this.flowParseEnumDeclaration(e)}let t=super.parseStatementLike(e);return this.flowPragma===void 0&&!this.isValidDirective(t)&&(this.flowPragma=null),t}parseExpressionStatement(e,t,n){if(t.type===`Identifier`){if(t.name===`declare`){if(this.match(80)||L(this.state.type)||this.match(68)||this.match(74)||this.match(82))return this.flowParseDeclare(e)}else if(L(this.state.type)){if(t.name===`interface`)return this.flowParseInterface(e);if(t.name===`type`)return this.flowParseTypeAlias(e);if(t.name===`opaque`)return this.flowParseOpaqueType(e,!1)}}return super.parseExpressionStatement(e,t,n)}shouldParseExportDeclaration(){let{type:e}=this.state;return e===126||R(e)?!this.state.containsEsc:super.shouldParseExportDeclaration()}isExportDefaultSpecifier(){let{type:e}=this.state;return e===126||R(e)?this.state.containsEsc:super.isExportDefaultSpecifier()}parseExportDefaultExpression(){if(this.isContextual(126)){let e=this.startNode();return this.next(),this.flowParseEnumDeclaration(e)}return super.parseExportDefaultExpression()}parseConditional(e,t,n){if(!this.match(17))return e;if(this.state.maybeInArrowParameters){let t=this.lookaheadCharCode();if(t===44||t===61||t===58||t===41)return this.setOptionalParametersError(n),e}this.expect(17);let r=this.state.clone(),i=this.state.noArrowAt,a=this.startNodeAt(t),{consequent:o,failed:s}=this.tryParseConditionalConsequent(),[c,l]=this.getArrowLikeExpressions(o);if(s||l.length>0){let e=[...i];if(l.length>0){this.state=r,this.state.noArrowAt=e;for(let t=0;t<l.length;t++)e.push(l[t].start);({consequent:o,failed:s}=this.tryParseConditionalConsequent()),[c,l]=this.getArrowLikeExpressions(o)}s&&c.length>1&&this.raise(W.AmbiguousConditionalArrow,r.startLoc),s&&c.length===1&&(this.state=r,e.push(c[0].start),this.state.noArrowAt=e,{consequent:o,failed:s}=this.tryParseConditionalConsequent())}return this.getArrowLikeExpressions(o,!0),this.state.noArrowAt=i,this.expect(14),a.test=e,a.consequent=o,a.alternate=this.forwardNoArrowParamsConversionAt(a,()=>this.parseMaybeAssign(void 0,void 0)),this.finishNode(a,`ConditionalExpression`)}tryParseConditionalConsequent(){this.state.noArrowParamsConversionAt.push(this.state.start);let e=this.parseMaybeAssignAllowIn(),t=!this.match(14);return this.state.noArrowParamsConversionAt.pop(),{consequent:e,failed:t}}getArrowLikeExpressions(e,t){let n=[e],r=[];for(;n.length!==0;){let e=n.pop();e.type===`ArrowFunctionExpression`&&e.body.type!==`BlockStatement`?(e.typeParameters||!e.returnType?this.finishArrowValidation(e):r.push(e),n.push(e.body)):e.type===`ConditionalExpression`&&(n.push(e.consequent),n.push(e.alternate))}return t?(r.forEach(e=>this.finishArrowValidation(e)),[r,[]]):G(r,e=>e.params.every(e=>this.isAssignable(e,!0)))}finishArrowValidation(e){this.toAssignableList(e.params,e.extra?.trailingCommaLoc,!1),this.scope.enter(6),super.checkParams(e,!1,!0),this.scope.exit()}forwardNoArrowParamsConversionAt(e,t){let n;return this.state.noArrowParamsConversionAt.includes(this.offsetToSourcePos(e.start))?(this.state.noArrowParamsConversionAt.push(this.state.start),n=t(),this.state.noArrowParamsConversionAt.pop()):n=t(),n}parseParenItem(e,t){let n=super.parseParenItem(e,t);if(this.eat(17)&&(n.optional=!0,this.resetEndLocation(e)),this.match(14)){let e=this.startNodeAt(t);return e.expression=n,e.typeAnnotation=this.flowParseTypeAnnotation(),this.finishNode(e,`TypeCastExpression`)}return n}assertModuleNodeAllowed(e){e.type===`ImportDeclaration`&&(e.importKind===`type`||e.importKind===`typeof`)||e.type===`ExportNamedDeclaration`&&e.exportKind===`type`||e.type===`ExportAllDeclaration`&&e.exportKind===`type`||super.assertModuleNodeAllowed(e)}parseExportDeclaration(e){if(this.isContextual(130)){e.exportKind=`type`;let t=this.startNode();return this.next(),this.match(5)?(e.specifiers=this.parseExportSpecifiers(!0),super.parseExportFrom(e),null):this.flowParseTypeAlias(t)}else if(this.isContextual(131)){e.exportKind=`type`;let t=this.startNode();return this.next(),this.flowParseOpaqueType(t,!1)}else if(this.isContextual(129)){e.exportKind=`type`;let t=this.startNode();return this.next(),this.flowParseInterface(t)}else if(this.isContextual(126)){e.exportKind=`value`;let t=this.startNode();return this.next(),this.flowParseEnumDeclaration(t)}else return super.parseExportDeclaration(e)}eatExportStar(e){return super.eatExportStar(e)?!0:this.isContextual(130)&&this.lookahead().type===55?(e.exportKind=`type`,this.next(),this.next(),!0):!1}maybeParseExportNamespaceSpecifier(e){let{startLoc:t}=this.state,n=super.maybeParseExportNamespaceSpecifier(e);return n&&e.exportKind===`type`&&this.unexpected(t),n}parseClassId(e,t,n){super.parseClassId(e,t,n),this.match(47)&&(e.typeParameters=this.flowParseTypeParameterDeclaration())}parseClassMember(e,t,n){let{startLoc:r}=this.state;if(this.isContextual(125)){if(super.parseClassMemberFromModifier(e,t))return;t.declare=!0}super.parseClassMember(e,t,n),t.declare&&(t.type!==`ClassProperty`&&t.type!==`ClassPrivateProperty`&&t.type!==`PropertyDefinition`?this.raise(W.DeclareClassElement,r):t.value&&this.raise(W.DeclareClassFieldInitializer,t.value))}isIterator(e){return e===`iterator`||e===`asyncIterator`}readIterator(){let e=super.readWord1(),t=`@@`+e;(!this.isIterator(e)||!this.state.inType)&&this.raise(_.InvalidIdentifier,this.state.curPosition(),{identifierName:t}),this.finishToken(132,t)}getTokenFromCode(e){let t=this.input.charCodeAt(this.state.pos+1);e===123&&t===124?this.finishOp(6,2):this.state.inType&&(e===62||e===60)?this.finishOp(e===62?48:47,1):this.state.inType&&e===63?t===46?this.finishOp(18,2):this.finishOp(17,1):Be(e,t,this.input.charCodeAt(this.state.pos+2))?(this.state.pos+=2,this.readIterator()):super.getTokenFromCode(e)}isAssignable(e,t){return e.type===`TypeCastExpression`?this.isAssignable(e.expression,t):super.isAssignable(e,t)}toAssignable(e,t=!1){!t&&e.type===`AssignmentExpression`&&e.left.type===`TypeCastExpression`&&(e.left=this.typeCastToParameter(e.left)),super.toAssignable(e,t)}toAssignableList(e,t,n){for(let t=0;t<e.length;t++){let n=e[t];n?.type===`TypeCastExpression`&&(e[t]=this.typeCastToParameter(n))}super.toAssignableList(e,t,n)}toReferencedList(e,t){for(let r=0;r<e.length;r++){var n;let i=e[r];i&&i.type===`TypeCastExpression`&&!((n=i.extra)!=null&&n.parenthesized)&&(e.length>1||!t)&&this.raise(W.TypeCastInPattern,i.typeAnnotation)}return e}parseArrayLike(e,t,n,r){let i=super.parseArrayLike(e,t,n,r);return t&&!this.state.maybeInArrowParameters&&this.toReferencedList(i.elements),i}isValidLVal(e,t,n){return e===`TypeCastExpression`||super.isValidLVal(e,t,n)}parseClassProperty(e){return this.match(14)&&(e.typeAnnotation=this.flowParseTypeAnnotation()),super.parseClassProperty(e)}parseClassPrivateProperty(e){return this.match(14)&&(e.typeAnnotation=this.flowParseTypeAnnotation()),super.parseClassPrivateProperty(e)}isClassMethod(){return this.match(47)||super.isClassMethod()}isClassProperty(){return this.match(14)||super.isClassProperty()}isNonstaticConstructor(e){return!this.match(14)&&super.isNonstaticConstructor(e)}pushClassMethod(e,t,n,r,i,a){if(t.variance&&this.unexpected(t.variance.loc.start),delete t.variance,this.match(47)&&(t.typeParameters=this.flowParseTypeParameterDeclaration()),super.pushClassMethod(e,t,n,r,i,a),t.params&&i){let e=t.params;e.length>0&&this.isThisParam(e[0])&&this.raise(W.ThisParamBannedInConstructor,t)}else if(t.type===`MethodDefinition`&&i&&t.value.params){let e=t.value.params;e.length>0&&this.isThisParam(e[0])&&this.raise(W.ThisParamBannedInConstructor,t)}}pushClassPrivateMethod(e,t,n,r){t.variance&&this.unexpected(t.variance.loc.start),delete t.variance,this.match(47)&&(t.typeParameters=this.flowParseTypeParameterDeclaration()),super.pushClassPrivateMethod(e,t,n,r)}parseClassSuper(e){if(super.parseClassSuper(e),e.superClass&&this.match(47)&&(e.superTypeParameters=this.flowParseTypeParameterInstantiation()),this.isContextual(113)){this.next();let t=e.implements=[];do{let e=this.startNode();e.id=this.flowParseRestrictedIdentifier(!0),this.match(47)?e.typeParameters=this.flowParseTypeParameterInstantiation():e.typeParameters=null,t.push(this.finishNode(e,`ClassImplements`))}while(this.eat(12))}}checkGetterSetterParams(e){super.checkGetterSetterParams(e);let t=this.getObjectOrClassMethodParams(e);if(t.length>0){let n=t[0];this.isThisParam(n)&&e.kind===`get`?this.raise(W.GetterMayNotHaveThisParam,n):this.isThisParam(n)&&this.raise(W.SetterMayNotHaveThisParam,n)}}parsePropertyNamePrefixOperator(e){e.variance=this.flowParseVariance()}parseObjPropValue(e,t,n,r,i,a,o){e.variance&&this.unexpected(e.variance.loc.start),delete e.variance;let s;this.match(47)&&!a&&(s=this.flowParseTypeParameterDeclaration(),this.match(10)||this.unexpected());let c=super.parseObjPropValue(e,t,n,r,i,a,o);return s&&((c.value||c).typeParameters=s),c}parseFunctionParamType(e){return this.eat(17)&&(e.type!==`Identifier`&&this.raise(W.PatternIsOptional,e),this.isThisParam(e)&&this.raise(W.ThisParamMayNotBeOptional,e),e.optional=!0),this.match(14)?e.typeAnnotation=this.flowParseTypeAnnotation():this.isThisParam(e)&&this.raise(W.ThisParamAnnotationRequired,e),this.match(29)&&this.isThisParam(e)&&this.raise(W.ThisParamNoDefault,e),this.resetEndLocation(e),e}parseMaybeDefault(e,t){let n=super.parseMaybeDefault(e,t);return n.type===`AssignmentPattern`&&n.typeAnnotation&&n.right.start<n.typeAnnotation.start&&this.raise(W.TypeBeforeInitializer,n.typeAnnotation),n}checkImportReflection(e){super.checkImportReflection(e),e.module&&e.importKind!==`value`&&this.raise(W.ImportReflectionHasImportType,e.specifiers[0].loc.start)}parseImportSpecifierLocal(e,t,n){t.local=zt(e)?this.flowParseRestrictedIdentifier(!0,!0):this.parseIdentifier(),e.specifiers.push(this.finishImportSpecifier(t,n))}isPotentialImportPhase(e){if(super.isPotentialImportPhase(e))return!0;if(this.isContextual(130)){if(!e)return!0;let t=this.lookaheadCharCode();return t===123||t===42}return!e&&this.isContextual(87)}applyImportPhase(e,t,n,r){if(super.applyImportPhase(e,t,n,r),t){if(!n&&this.match(65))return;e.exportKind=n===`type`?n:`value`}else n===`type`&&this.match(55)&&this.unexpected(),e.importKind=n===`type`||n===`typeof`?n:`value`}parseImportSpecifier(e,t,n,r,i){let a=e.imported,o=null;a.type===`Identifier`&&(a.name===`type`?o=`type`:a.name===`typeof`&&(o=`typeof`));let s=!1;if(this.isContextual(93)&&!this.isLookaheadContextual(`as`)){let t=this.parseIdentifier(!0);o!==null&&!le(this.state.type)?(e.imported=t,e.importKind=o,e.local=Pt(t)):(e.imported=a,e.importKind=null,e.local=this.parseIdentifier())}else{if(o!==null&&le(this.state.type))e.imported=this.parseIdentifier(!0),e.importKind=o;else{if(t)throw this.raise(_.ImportBindingIsString,e,{importName:a.value});e.imported=a,e.importKind=null}this.eatContextual(93)?e.local=this.parseIdentifier():(s=!0,e.local=Pt(e.imported))}let c=zt(e);return n&&c&&this.raise(W.ImportTypeShorthandOnlyInPureImport,e),(n||c)&&this.checkReservedType(e.local.name,e.local.loc.start,!0),s&&!n&&!c&&this.checkReservedWord(e.local.name,e.loc.start,!0,!0),this.finishImportSpecifier(e,`ImportSpecifier`)}parseBindingAtom(){switch(this.state.type){case 78:return this.parseIdentifier(!0);default:return super.parseBindingAtom()}}parseFunctionParams(e,t){let n=e.kind;n!==`get`&&n!==`set`&&this.match(47)&&(e.typeParameters=this.flowParseTypeParameterDeclaration()),super.parseFunctionParams(e,t)}parseVarId(e,t){super.parseVarId(e,t),this.match(14)&&(e.id.typeAnnotation=this.flowParseTypeAnnotation(),this.resetEndLocation(e.id))}parseAsyncArrowFromCallExpression(e,t){if(this.match(14)){let t=this.state.noAnonFunctionType;this.state.noAnonFunctionType=!0,e.returnType=this.flowParseTypeAnnotation(),this.state.noAnonFunctionType=t}return super.parseAsyncArrowFromCallExpression(e,t)}shouldParseAsyncArrow(){return this.match(14)||super.shouldParseAsyncArrow()}parseMaybeAssign(e,t){var n;let r=null,i;if(this.hasPlugin(`jsx`)&&(this.match(143)||this.match(47))){if(r=this.state.clone(),i=this.tryParse(()=>super.parseMaybeAssign(e,t),r),!i.error)return i.node;let{context:n}=this.state,a=n[n.length-1];(a===w.j_oTag||a===w.j_expr)&&n.pop()}if((n=i)!=null&&n.error||this.match(47)){var a,o;r||=this.state.clone();let n,s=this.tryParse(r=>{var i;n=this.flowParseTypeParameterDeclaration();let a=this.forwardNoArrowParamsConversionAt(n,()=>{let r=super.parseMaybeAssign(e,t);return this.resetStartLocationFromNode(r,n),r});(i=a.extra)!=null&&i.parenthesized&&r();let o=this.maybeUnwrapTypeCastExpression(a);return o.type!==`ArrowFunctionExpression`&&r(),o.typeParameters=n,this.resetStartLocationFromNode(o,n),a},r),c=null;if(s.node&&this.maybeUnwrapTypeCastExpression(s.node).type===`ArrowFunctionExpression`){if(!s.error&&!s.aborted)return s.node.async&&this.raise(W.UnexpectedTypeParameterBeforeAsyncArrowFunction,n),s.node;c=s.node}if((a=i)!=null&&a.node)return this.state=i.failState,i.node;if(c)return this.state=s.failState,c;throw(o=i)!=null&&o.thrown?i.error:s.thrown?s.error:this.raise(W.UnexpectedTokenAfterTypeParameter,n)}return super.parseMaybeAssign(e,t)}parseArrow(e){if(this.match(14)){let t=this.tryParse(()=>{let t=this.state.noAnonFunctionType;this.state.noAnonFunctionType=!0;let n=this.startNode();return[n.typeAnnotation,e.predicate]=this.flowParseTypeAndPredicateInitialiser(),this.state.noAnonFunctionType=t,this.canInsertSemicolon()&&this.unexpected(),this.match(19)||this.unexpected(),n});if(t.thrown)return null;t.error&&(this.state=t.failState),e.returnType=t.node.typeAnnotation?this.finishNode(t.node,`TypeAnnotation`):null}return super.parseArrow(e)}shouldParseArrow(e){return this.match(14)||super.shouldParseArrow(e)}setArrowFunctionParameters(e,t){this.state.noArrowParamsConversionAt.includes(this.offsetToSourcePos(e.start))?e.params=t:super.setArrowFunctionParameters(e,t)}checkParams(e,t,n,r=!0){if(!(n&&this.state.noArrowParamsConversionAt.includes(this.offsetToSourcePos(e.start)))){for(let t=0;t<e.params.length;t++)this.isThisParam(e.params[t])&&t>0&&this.raise(W.ThisParamMustBeFirst,e.params[t]);super.checkParams(e,t,n,r)}}parseParenAndDistinguishExpression(e){return super.parseParenAndDistinguishExpression(e&&!this.state.noArrowAt.includes(this.sourceToOffsetPos(this.state.start)))}parseSubscripts(e,t,n){if(e.type===`Identifier`&&e.name===`async`&&this.state.noArrowAt.includes(t.index)){this.next();let n=this.startNodeAt(t);n.callee=e,n.arguments=super.parseCallExpressionArguments(11),e=this.finishNode(n,`CallExpression`)}else if(e.type===`Identifier`&&e.name===`async`&&this.match(47)){let r=this.state.clone(),i=this.tryParse(e=>this.parseAsyncArrowWithTypeParameters(t)||e(),r);if(!i.error&&!i.aborted)return i.node;let a=this.tryParse(()=>super.parseSubscripts(e,t,n),r);if(a.node&&!a.error)return a.node;if(i.node)return this.state=i.failState,i.node;if(a.node)return this.state=a.failState,a.node;throw i.error||a.error}return super.parseSubscripts(e,t,n)}parseSubscript(e,t,n,r){if(this.match(18)&&this.isLookaheadToken_lt()){if(r.optionalChainMember=!0,n)return r.stop=!0,e;this.next();let i=this.startNodeAt(t);return i.callee=e,i.typeArguments=this.flowParseTypeParameterInstantiation(),this.expect(10),i.arguments=this.parseCallExpressionArguments(11),i.optional=!0,this.finishCallExpression(i,!0)}else if(!n&&this.shouldParseTypes()&&this.match(47)){let n=this.startNodeAt(t);n.callee=e;let i=this.tryParse(()=>(n.typeArguments=this.flowParseTypeParameterInstantiationCallOrNew(),this.expect(10),n.arguments=super.parseCallExpressionArguments(11),r.optionalChainMember&&(n.optional=!1),this.finishCallExpression(n,r.optionalChainMember)));if(i.node)return i.error&&(this.state=i.failState),i.node}return super.parseSubscript(e,t,n,r)}parseNewCallee(e){super.parseNewCallee(e);let t=null;this.shouldParseTypes()&&this.match(47)&&(t=this.tryParse(()=>this.flowParseTypeParameterInstantiationCallOrNew()).node),e.typeArguments=t}parseAsyncArrowWithTypeParameters(e){let t=this.startNodeAt(e);if(this.parseFunctionParams(t,!1),this.parseArrow(t))return super.parseArrowExpression(t,void 0,!0)}readToken_mult_modulo(e){let t=this.input.charCodeAt(this.state.pos+1);if(e===42&&t===47&&this.state.hasFlowComment){this.state.hasFlowComment=!1,this.state.pos+=2,this.nextToken();return}super.readToken_mult_modulo(e)}readToken_pipe_amp(e){let t=this.input.charCodeAt(this.state.pos+1);if(e===124&&t===125){this.finishOp(9,2);return}super.readToken_pipe_amp(e)}parseTopLevel(e,t){let n=super.parseTopLevel(e,t);return this.state.hasFlowComment&&this.raise(W.UnterminatedFlowComment,this.state.curPosition()),n}skipBlockComment(){if(this.hasPlugin(`flowComments`)&&this.skipFlowComment()){if(this.state.hasFlowComment)throw this.raise(W.NestedFlowComment,this.state.startLoc);this.hasFlowCommentCompletion();let e=this.skipFlowComment();e&&(this.state.pos+=e,this.state.hasFlowComment=!0);return}return super.skipBlockComment(this.state.hasFlowComment?`*-/`:`*/`)}skipFlowComment(){let{pos:e}=this.state,t=2;for(;[32,9].includes(this.input.charCodeAt(e+t));)t++;let n=this.input.charCodeAt(t+e),r=this.input.charCodeAt(t+e+1);return n===58&&r===58?t+2:this.input.slice(t+e,t+e+12)===`flow-include`?t+12:n===58&&r!==58?t:!1}hasFlowCommentCompletion(){if(this.input.indexOf(`*/`,this.state.pos)===-1)throw this.raise(_.UnterminatedComment,this.state.curPosition())}flowEnumErrorBooleanMemberNotInitialized(e,{enumName:t,memberName:n}){this.raise(W.EnumBooleanMemberNotInitialized,e,{memberName:n,enumName:t})}flowEnumErrorInvalidMemberInitializer(e,t){return this.raise(t.explicitType?t.explicitType===`symbol`?W.EnumInvalidMemberInitializerSymbolType:W.EnumInvalidMemberInitializerPrimaryType:W.EnumInvalidMemberInitializerUnknownType,e,t)}flowEnumErrorNumberMemberNotInitialized(e,t){this.raise(W.EnumNumberMemberNotInitialized,e,t)}flowEnumErrorStringMemberInconsistentlyInitialized(e,t){this.raise(W.EnumStringMemberInconsistentlyInitialized,e,t)}flowEnumMemberInit(){let e=this.state.startLoc,t=x(()=>this.match(12)||this.match(8),`endOfInit`);switch(this.state.type){case 135:{let n=this.parseNumericLiteral(this.state.value);return t()?{type:`number`,loc:n.loc.start,value:n}:{type:`invalid`,loc:e}}case 134:{let n=this.parseStringLiteral(this.state.value);return t()?{type:`string`,loc:n.loc.start,value:n}:{type:`invalid`,loc:e}}case 85:case 86:{let n=this.parseBooleanLiteral(this.match(85));return t()?{type:`boolean`,loc:n.loc.start,value:n}:{type:`invalid`,loc:e}}default:return{type:`invalid`,loc:e}}}flowEnumMemberRaw(){let e=this.state.startLoc;return{id:this.parseIdentifier(!0),init:this.eat(29)?this.flowEnumMemberInit():{type:`none`,loc:e}}}flowEnumCheckExplicitTypeMismatch(e,t,n){let{explicitType:r}=t;r!==null&&r!==n&&this.flowEnumErrorInvalidMemberInitializer(e,t)}flowEnumMembers({enumName:e,explicitType:t}){let n=new Set,r={booleanMembers:[],numberMembers:[],stringMembers:[],defaultedMembers:[]},i=!1;for(;!this.match(8);){if(this.eat(21)){i=!0;break}let a=this.startNode(),{id:o,init:s}=this.flowEnumMemberRaw(),c=o.name;if(c===``)continue;/^[a-z]/.test(c)&&this.raise(W.EnumInvalidMemberName,o,{memberName:c,suggestion:c[0].toUpperCase()+c.slice(1),enumName:e}),n.has(c)&&this.raise(W.EnumDuplicateMemberName,o,{memberName:c,enumName:e}),n.add(c);let l={enumName:e,explicitType:t,memberName:c};switch(a.id=o,s.type){case`boolean`:this.flowEnumCheckExplicitTypeMismatch(s.loc,l,`boolean`),a.init=s.value,r.booleanMembers.push(this.finishNode(a,`EnumBooleanMember`));break;case`number`:this.flowEnumCheckExplicitTypeMismatch(s.loc,l,`number`),a.init=s.value,r.numberMembers.push(this.finishNode(a,`EnumNumberMember`));break;case`string`:this.flowEnumCheckExplicitTypeMismatch(s.loc,l,`string`),a.init=s.value,r.stringMembers.push(this.finishNode(a,`EnumStringMember`));break;case`invalid`:throw this.flowEnumErrorInvalidMemberInitializer(s.loc,l);case`none`:switch(t){case`boolean`:this.flowEnumErrorBooleanMemberNotInitialized(s.loc,l);break;case`number`:this.flowEnumErrorNumberMemberNotInitialized(s.loc,l);break;default:r.defaultedMembers.push(this.finishNode(a,`EnumDefaultedMember`))}}this.match(8)||this.expect(12)}return{members:r,hasUnknownMembers:i}}flowEnumStringMembers(e,t,{enumName:n}){if(e.length===0)return t;if(t.length===0)return e;if(t.length>e.length){for(let t of e)this.flowEnumErrorStringMemberInconsistentlyInitialized(t,{enumName:n});return t}else{for(let e of t)this.flowEnumErrorStringMemberInconsistentlyInitialized(e,{enumName:n});return e}}flowEnumParseExplicitType({enumName:e}){if(!this.eatContextual(102))return null;if(!L(this.state.type))throw this.raise(W.EnumInvalidExplicitTypeUnknownSupplied,this.state.startLoc,{enumName:e});let{value:t}=this.state;return this.next(),t!==`boolean`&&t!==`number`&&t!==`string`&&t!==`symbol`&&this.raise(W.EnumInvalidExplicitType,this.state.startLoc,{enumName:e,invalidEnumType:t}),t}flowEnumBody(e,t){let n=t.name,r=t.loc.start,i=this.flowEnumParseExplicitType({enumName:n});this.expect(5);let{members:a,hasUnknownMembers:o}=this.flowEnumMembers({enumName:n,explicitType:i});switch(e.hasUnknownMembers=o,i){case`boolean`:return e.explicitType=!0,e.members=a.booleanMembers,this.expect(8),this.finishNode(e,`EnumBooleanBody`);case`number`:return e.explicitType=!0,e.members=a.numberMembers,this.expect(8),this.finishNode(e,`EnumNumberBody`);case`string`:return e.explicitType=!0,e.members=this.flowEnumStringMembers(a.stringMembers,a.defaultedMembers,{enumName:n}),this.expect(8),this.finishNode(e,`EnumStringBody`);case`symbol`:return e.members=a.defaultedMembers,this.expect(8),this.finishNode(e,`EnumSymbolBody`);default:{let t=x(()=>(e.members=[],this.expect(8),this.finishNode(e,`EnumStringBody`)),`empty`);e.explicitType=!1;let i=a.booleanMembers.length,o=a.numberMembers.length,s=a.stringMembers.length,c=a.defaultedMembers.length;if(!i&&!o&&!s&&!c)return t();if(!i&&!o)return e.members=this.flowEnumStringMembers(a.stringMembers,a.defaultedMembers,{enumName:n}),this.expect(8),this.finishNode(e,`EnumStringBody`);if(!o&&!s&&i>=c){for(let e of a.defaultedMembers)this.flowEnumErrorBooleanMemberNotInitialized(e.loc.start,{enumName:n,memberName:e.id.name});return e.members=a.booleanMembers,this.expect(8),this.finishNode(e,`EnumBooleanBody`)}else if(!i&&!s&&o>=c){for(let e of a.defaultedMembers)this.flowEnumErrorNumberMemberNotInitialized(e.loc.start,{enumName:n,memberName:e.id.name});return e.members=a.numberMembers,this.expect(8),this.finishNode(e,`EnumNumberBody`)}else return this.raise(W.EnumInconsistentMemberValues,r,{enumName:n}),t()}}}flowParseEnumDeclaration(e){let t=this.parseIdentifier();return e.id=t,e.body=this.flowEnumBody(this.startNode(),t),this.finishNode(e,`EnumDeclaration`)}isLookaheadToken_lt(){let e=this.nextTokenStart();if(this.input.charCodeAt(e)===60){let t=this.input.charCodeAt(e+1);return t!==60&&t!==61}return!1}maybeUnwrapTypeCastExpression(e){return e.type===`TypeCastExpression`?e.expression:e}},`flow`),Vt={__proto__:null,quot:`"`,amp:`&`,apos:`'`,lt:`<`,gt:`>`,nbsp:`\xA0`,iexcl:`¡`,cent:`¢`,pound:`£`,curren:`¤`,yen:`¥`,brvbar:`¦`,sect:`§`,uml:`¨`,copy:`©`,ordf:`ª`,laquo:`«`,not:`¬`,shy:`­`,reg:`®`,macr:`¯`,deg:`°`,plusmn:`±`,sup2:`²`,sup3:`³`,acute:`´`,micro:`µ`,para:`¶`,middot:`·`,cedil:`¸`,sup1:`¹`,ordm:`º`,raquo:`»`,frac14:`¼`,frac12:`½`,frac34:`¾`,iquest:`¿`,Agrave:`À`,Aacute:`Á`,Acirc:`Â`,Atilde:`Ã`,Auml:`Ä`,Aring:`Å`,AElig:`Æ`,Ccedil:`Ç`,Egrave:`È`,Eacute:`É`,Ecirc:`Ê`,Euml:`Ë`,Igrave:`Ì`,Iacute:`Í`,Icirc:`Î`,Iuml:`Ï`,ETH:`Ð`,Ntilde:`Ñ`,Ograve:`Ò`,Oacute:`Ó`,Ocirc:`Ô`,Otilde:`Õ`,Ouml:`Ö`,times:`×`,Oslash:`Ø`,Ugrave:`Ù`,Uacute:`Ú`,Ucirc:`Û`,Uuml:`Ü`,Yacute:`Ý`,THORN:`Þ`,szlig:`ß`,agrave:`à`,aacute:`á`,acirc:`â`,atilde:`ã`,auml:`ä`,aring:`å`,aelig:`æ`,ccedil:`ç`,egrave:`è`,eacute:`é`,ecirc:`ê`,euml:`ë`,igrave:`ì`,iacute:`í`,icirc:`î`,iuml:`ï`,eth:`ð`,ntilde:`ñ`,ograve:`ò`,oacute:`ó`,ocirc:`ô`,otilde:`õ`,ouml:`ö`,divide:`÷`,oslash:`ø`,ugrave:`ù`,uacute:`ú`,ucirc:`û`,uuml:`ü`,yacute:`ý`,thorn:`þ`,yuml:`ÿ`,OElig:`Œ`,oelig:`œ`,Scaron:`Š`,scaron:`š`,Yuml:`Ÿ`,fnof:`ƒ`,circ:`ˆ`,tilde:`˜`,Alpha:`Α`,Beta:`Β`,Gamma:`Γ`,Delta:`Δ`,Epsilon:`Ε`,Zeta:`Ζ`,Eta:`Η`,Theta:`Θ`,Iota:`Ι`,Kappa:`Κ`,Lambda:`Λ`,Mu:`Μ`,Nu:`Ν`,Xi:`Ξ`,Omicron:`Ο`,Pi:`Π`,Rho:`Ρ`,Sigma:`Σ`,Tau:`Τ`,Upsilon:`Υ`,Phi:`Φ`,Chi:`Χ`,Psi:`Ψ`,Omega:`Ω`,alpha:`α`,beta:`β`,gamma:`γ`,delta:`δ`,epsilon:`ε`,zeta:`ζ`,eta:`η`,theta:`θ`,iota:`ι`,kappa:`κ`,lambda:`λ`,mu:`μ`,nu:`ν`,xi:`ξ`,omicron:`ο`,pi:`π`,rho:`ρ`,sigmaf:`ς`,sigma:`σ`,tau:`τ`,upsilon:`υ`,phi:`φ`,chi:`χ`,psi:`ψ`,omega:`ω`,thetasym:`ϑ`,upsih:`ϒ`,piv:`ϖ`,ensp:` `,emsp:` `,thinsp:` `,zwnj:`‌`,zwj:`‍`,lrm:`‎`,rlm:`‏`,ndash:`–`,mdash:`—`,lsquo:`‘`,rsquo:`’`,sbquo:`‚`,ldquo:`“`,rdquo:`”`,bdquo:`„`,dagger:`†`,Dagger:`‡`,bull:`•`,hellip:`…`,permil:`‰`,prime:`′`,Prime:`″`,lsaquo:`‹`,rsaquo:`›`,oline:`‾`,frasl:`⁄`,euro:`€`,image:`ℑ`,weierp:`℘`,real:`ℜ`,trade:`™`,alefsym:`ℵ`,larr:`←`,uarr:`↑`,rarr:`→`,darr:`↓`,harr:`↔`,crarr:`↵`,lArr:`⇐`,uArr:`⇑`,rArr:`⇒`,dArr:`⇓`,hArr:`⇔`,forall:`∀`,part:`∂`,exist:`∃`,empty:`∅`,nabla:`∇`,isin:`∈`,notin:`∉`,ni:`∋`,prod:`∏`,sum:`∑`,minus:`−`,lowast:`∗`,radic:`√`,prop:`∝`,infin:`∞`,ang:`∠`,and:`∧`,or:`∨`,cap:`∩`,cup:`∪`,int:`∫`,there4:`∴`,sim:`∼`,cong:`≅`,asymp:`≈`,ne:`≠`,equiv:`≡`,le:`≤`,ge:`≥`,sub:`⊂`,sup:`⊃`,nsub:`⊄`,sube:`⊆`,supe:`⊇`,oplus:`⊕`,otimes:`⊗`,perp:`⊥`,sdot:`⋅`,lceil:`⌈`,rceil:`⌉`,lfloor:`⌊`,rfloor:`⌋`,lang:`〈`,rang:`〉`,loz:`◊`,spades:`♠`,clubs:`♣`,hearts:`♥`,diams:`♦`},Ht=g`jsx`({AttributeIsEmpty:`JSX attributes must only be assigned a non-empty expression.`,MissingClosingTagElement:x(({openingTagName:e})=>`Expected corresponding JSX closing tag for <${e}>.`,`MissingClosingTagElement`),MissingClosingTagFragment:`Expected corresponding JSX closing tag for <>.`,UnexpectedSequenceExpression:`Sequence expressions cannot be directly nested inside JSX. Did you mean to wrap it in parentheses (...)?`,UnexpectedToken:x(({unexpected:e,HTMLEntity:t})=>`Unexpected token \`${e}\`. Did you mean \`${t}\` or \`{'${e}'}\`?`,`UnexpectedToken`),UnsupportedJsxValue:`JSX value should be either an expression or a quoted JSX text.`,UnterminatedJsxContent:`Unterminated JSX contents.`,UnwrappedAdjacentJSXElements:`Adjacent JSX elements must be wrapped in an enclosing tag. Did you want a JSX fragment <>...</>?`});function Ut(e){return e?e.type===`JSXOpeningFragment`||e.type===`JSXClosingFragment`:!1}x(Ut,`isFragment`);function Wt(e){if(e.type===`JSXIdentifier`)return e.name;if(e.type===`JSXNamespacedName`)return e.namespace.name+`:`+e.name.name;if(e.type===`JSXMemberExpression`)return Wt(e.object)+`.`+Wt(e.property);throw Error(`Node had unexpected type: `+e.type)}x(Wt,`getQualifiedJSXName`);var Gt=x(e=>class extends e{static{x(this,`JSXParserMixin`)}jsxReadToken(){let e=``,t=this.state.pos;for(;;){if(this.state.pos>=this.length)throw this.raise(Ht.UnterminatedJsxContent,this.state.startLoc);let n=this.input.charCodeAt(this.state.pos);switch(n){case 60:case 123:if(this.state.pos===this.state.start){n===60&&this.state.canStartJSXElement?(++this.state.pos,this.finishToken(143)):super.getTokenFromCode(n);return}e+=this.input.slice(t,this.state.pos),this.finishToken(142,e);return;case 38:e+=this.input.slice(t,this.state.pos),e+=this.jsxReadEntity(),t=this.state.pos;break;default:et(n)?(e+=this.input.slice(t,this.state.pos),e+=this.jsxReadNewLine(!0),t=this.state.pos):++this.state.pos}}}jsxReadNewLine(e){let t=this.input.charCodeAt(this.state.pos),n;return++this.state.pos,t===13&&this.input.charCodeAt(this.state.pos)===10?(++this.state.pos,n=e?`
106
106
  `:`\r
107
- `):n=String.fromCharCode(t),++this.state.curLine,this.state.lineStart=this.state.pos,n}jsxReadString(e){let t=``,n=++this.state.pos;for(;;){if(this.state.pos>=this.length)throw this.raise(_.UnterminatedString,this.state.startLoc);let r=this.input.charCodeAt(this.state.pos);if(r===e)break;r===38?(t+=this.input.slice(n,this.state.pos),t+=this.jsxReadEntity(),n=this.state.pos):et(r)?(t+=this.input.slice(n,this.state.pos),t+=this.jsxReadNewLine(!1),n=this.state.pos):++this.state.pos}t+=this.input.slice(n,this.state.pos++),this.finishToken(134,t)}jsxReadEntity(){let e=++this.state.pos;if(this.codePointAtPos(this.state.pos)===35){++this.state.pos;let e=10;this.codePointAtPos(this.state.pos)===120&&(e=16,++this.state.pos);let t=this.readInt(e,void 0,!1,`bail`);if(t!==null&&this.codePointAtPos(this.state.pos)===59)return++this.state.pos,String.fromCodePoint(t)}else{let t=0,n=!1;for(;t++<10&&this.state.pos<this.length&&!(n=this.codePointAtPos(this.state.pos)===59);)++this.state.pos;if(n){let t=Vt[this.input.slice(e,this.state.pos)];if(++this.state.pos,t)return t}}return this.state.pos=e,`&`}jsxReadWord(){let e,t=this.state.pos;do e=this.input.charCodeAt(++this.state.pos);while(H(e)||e===45);this.finishToken(141,this.input.slice(t,this.state.pos))}jsxParseIdentifier(){let e=this.startNode();return this.match(141)?e.name=this.state.value:he(this.state.type)?e.name=ye(this.state.type):this.unexpected(),this.next(),this.finishNode(e,`JSXIdentifier`)}jsxParseNamespacedName(){let e=this.state.startLoc,t=this.jsxParseIdentifier();if(!this.eat(14))return t;let n=this.startNodeAt(e);return n.namespace=t,n.name=this.jsxParseIdentifier(),this.finishNode(n,`JSXNamespacedName`)}jsxParseElementName(){let e=this.state.startLoc,t=this.jsxParseNamespacedName();if(t.type===`JSXNamespacedName`)return t;for(;this.eat(16);){let n=this.startNodeAt(e);n.object=t,n.property=this.jsxParseIdentifier(),t=this.finishNode(n,`JSXMemberExpression`)}return t}jsxParseAttributeValue(){let e;switch(this.state.type){case 5:return e=this.startNode(),this.setContext(w.brace),this.next(),e=this.jsxParseExpressionContainer(e,w.j_oTag),e.expression.type===`JSXEmptyExpression`&&this.raise(Ht.AttributeIsEmpty,e),e;case 143:case 134:return this.parseExprAtom();default:throw this.raise(Ht.UnsupportedJsxValue,this.state.startLoc)}}jsxParseEmptyExpression(){let e=this.startNodeAt(this.state.lastTokEndLoc);return this.finishNodeAt(e,`JSXEmptyExpression`,this.state.startLoc)}jsxParseSpreadChild(e){return this.next(),e.expression=this.parseExpression(),this.setContext(w.j_expr),this.state.canStartJSXElement=!0,this.expect(8),this.finishNode(e,`JSXSpreadChild`)}jsxParseExpressionContainer(e,t){return this.match(8)?e.expression=this.jsxParseEmptyExpression():e.expression=this.parseExpression(),this.setContext(t),this.state.canStartJSXElement=!0,this.expect(8),this.finishNode(e,`JSXExpressionContainer`)}jsxParseAttribute(){let e=this.startNode();return this.match(5)?(this.setContext(w.brace),this.next(),this.expect(21),e.argument=this.parseMaybeAssignAllowIn(),this.setContext(w.j_oTag),this.state.canStartJSXElement=!0,this.expect(8),this.finishNode(e,`JSXSpreadAttribute`)):(e.name=this.jsxParseNamespacedName(),e.value=this.eat(29)?this.jsxParseAttributeValue():null,this.finishNode(e,`JSXAttribute`))}jsxParseOpeningElementAt(e){let t=this.startNodeAt(e);return this.eat(144)?this.finishNode(t,`JSXOpeningFragment`):(t.name=this.jsxParseElementName(),this.jsxParseOpeningElementAfterName(t))}jsxParseOpeningElementAfterName(e){let t=[];for(;!this.match(56)&&!this.match(144);)t.push(this.jsxParseAttribute());return e.attributes=t,e.selfClosing=this.eat(56),this.expect(144),this.finishNode(e,`JSXOpeningElement`)}jsxParseClosingElementAt(e){let t=this.startNodeAt(e);return this.eat(144)?this.finishNode(t,`JSXClosingFragment`):(t.name=this.jsxParseElementName(),this.expect(144),this.finishNode(t,`JSXClosingElement`))}jsxParseElementAt(e){let t=this.startNodeAt(e),n=[],r=this.jsxParseOpeningElementAt(e),i=null;if(!r.selfClosing){contents:for(;;)switch(this.state.type){case 143:if(e=this.state.startLoc,this.next(),this.eat(56)){i=this.jsxParseClosingElementAt(e);break contents}n.push(this.jsxParseElementAt(e));break;case 142:n.push(this.parseLiteral(this.state.value,`JSXText`));break;case 5:{let e=this.startNode();this.setContext(w.brace),this.next(),this.match(21)?n.push(this.jsxParseSpreadChild(e)):n.push(this.jsxParseExpressionContainer(e,w.j_expr));break}default:this.unexpected()}Ut(r)&&!Ut(i)&&i!==null?this.raise(Ht.MissingClosingTagFragment,i):(!Ut(r)&&Ut(i)||!Ut(r)&&!Ut(i)&&Wt(i.name)!==Wt(r.name))&&this.raise(Ht.MissingClosingTagElement,i,{openingTagName:Wt(r.name)})}if(Ut(r)?(t.openingFragment=r,t.closingFragment=i):(t.openingElement=r,t.closingElement=i),t.children=n,this.match(47))throw this.raise(Ht.UnwrappedAdjacentJSXElements,this.state.startLoc);return Ut(r)?this.finishNode(t,`JSXFragment`):this.finishNode(t,`JSXElement`)}jsxParseElement(){let e=this.state.startLoc;return this.next(),this.jsxParseElementAt(e)}setContext(e){let{context:t}=this.state;t[t.length-1]=e}parseExprAtom(e){return this.match(143)?this.jsxParseElement():this.match(47)&&this.input.charCodeAt(this.state.pos)!==33?(this.replaceToken(143),this.jsxParseElement()):super.parseExprAtom(e)}skipSpace(){this.curContext().preserveSpace||super.skipSpace()}getTokenFromCode(e){let t=this.curContext();if(t===w.j_expr){this.jsxReadToken();return}if(t===w.j_oTag||t===w.j_cTag){if(Ae(e)){this.jsxReadWord();return}if(e===62){++this.state.pos,this.finishToken(144);return}if((e===34||e===39)&&t===w.j_oTag){this.jsxReadString(e);return}}if(e===60&&this.state.canStartJSXElement&&this.input.charCodeAt(this.state.pos+1)!==33){++this.state.pos,this.finishToken(143);return}super.getTokenFromCode(e)}updateContext(e){let{context:t,type:n}=this.state;if(n===56&&e===143)t.splice(-2,2,w.j_cTag),this.state.canStartJSXElement=!1;else if(n===143)t.push(w.j_oTag);else if(n===144){let n=t[t.length-1];n===w.j_oTag&&e===56||n===w.j_cTag?(t.pop(),this.state.canStartJSXElement=t[t.length-1]===w.j_expr):(this.setContext(w.j_expr),this.state.canStartJSXElement=!0)}else this.state.canStartJSXElement=de(n)}},`jsx`),Kt=class extends Ue{static{x(this,`TypeScriptScope`)}constructor(...e){super(...e),this.tsNames=new Map}},qt=class extends We{static{x(this,`TypeScriptScopeHandler`)}constructor(...e){super(...e),this.importsStack=[]}createScope(e){return this.importsStack.push(new Set),new Kt(e)}enter(e){e===256&&this.importsStack.push(new Set),super.enter(e)}exit(){let e=super.exit();return e===256&&this.importsStack.pop(),e}hasImport(e,t){let n=this.importsStack.length;if(this.importsStack[n-1].has(e))return!0;if(!t&&n>1){for(let t=0;t<n-1;t++)if(this.importsStack[t].has(e))return!0}return!1}declareName(e,t,n){if(t&4096){this.hasImport(e,!0)&&this.parser.raise(_.VarRedeclaration,n,{identifierName:e}),this.importsStack[this.importsStack.length-1].add(e);return}let r=this.currentScope(),i=r.tsNames.get(e)||0;if(t&1024){this.maybeExportDefined(r,e),r.tsNames.set(e,i|16);return}super.declareName(e,t,n),t&2&&(t&1||(this.checkRedeclarationInScope(r,e,t,n),this.maybeExportDefined(r,e)),i|=1),t&256&&(i|=2),t&512&&(i|=4),t&128&&(i|=8),i&&r.tsNames.set(e,i)}isRedeclaredInScope(e,t,n){let r=e.tsNames.get(t);return(r&2)>0?n&256?!!(n&512)!=(r&4)>0:!0:n&128&&(r&8)>0?e.names.get(t)&2?!!(n&1):!1:n&2&&(r&1)>0?!0:super.isRedeclaredInScope(e,t,n)}checkLocalExport(e){let{name:t}=e;if(this.hasImport(t))return;let n=this.scopeStack.length;for(let e=n-1;e>=0;e--){let n=this.scopeStack[e].tsNames.get(t);if((n&1)>0||(n&16)>0)return}super.checkLocalExport(e)}},Jt=x(e=>e.type===`ParenthesizedExpression`?Jt(e.expression):e,`unwrapParenthesizedExpression`),Yt=class extends It{static{x(this,`LValParser`)}toAssignable(e,t=!1){var n;let r;switch((e.type===`ParenthesizedExpression`||(n=e.extra)!=null&&n.parenthesized)&&(r=Jt(e),t?r.type===`Identifier`?this.expressionScope.recordArrowParameterBindingError(_.InvalidParenthesizedAssignment,e):r.type!==`MemberExpression`&&!this.isOptionalMemberExpression(r)&&this.raise(_.InvalidParenthesizedAssignment,e):this.raise(_.InvalidParenthesizedAssignment,e)),e.type){case`Identifier`:case`ObjectPattern`:case`ArrayPattern`:case`AssignmentPattern`:case`RestElement`:break;case`ObjectExpression`:e.type=`ObjectPattern`;for(let n=0,r=e.properties.length,a=r-1;n<r;n++){var i;let r=e.properties[n],o=n===a;this.toAssignableObjectExpressionProp(r,o,t),o&&r.type===`RestElement`&&(i=e.extra)!=null&&i.trailingCommaLoc&&this.raise(_.RestTrailingComma,e.extra.trailingCommaLoc)}break;case`ObjectProperty`:{let{key:n,value:r}=e;this.isPrivateName(n)&&this.classScope.usePrivateName(this.getPrivateNameSV(n),n.loc.start),this.toAssignable(r,t);break}case`SpreadElement`:throw Error(`Internal @babel/parser error (this is a bug, please report it). SpreadElement should be converted by .toAssignable's caller.`);case`ArrayExpression`:e.type=`ArrayPattern`,this.toAssignableList(e.elements,e.extra?.trailingCommaLoc,t);break;case`AssignmentExpression`:e.operator!==`=`&&this.raise(_.MissingEqInAssignment,e.left.loc.end),e.type=`AssignmentPattern`,delete e.operator,this.toAssignable(e.left,t);break;case`ParenthesizedExpression`:this.toAssignable(r,t);break}}toAssignableObjectExpressionProp(e,t,n){if(e.type===`ObjectMethod`)this.raise(e.kind===`get`||e.kind===`set`?_.PatternHasAccessor:_.PatternHasMethod,e.key);else if(e.type===`SpreadElement`){e.type=`RestElement`;let r=e.argument;this.checkToRestConversion(r,!1),this.toAssignable(r,n),t||this.raise(_.RestTrailingComma,e)}else this.toAssignable(e,n)}toAssignableList(e,t,n){let r=e.length-1;for(let i=0;i<=r;i++){let a=e[i];if(a){if(a.type===`SpreadElement`){a.type=`RestElement`;let e=a.argument;this.checkToRestConversion(e,!0),this.toAssignable(e,n)}else this.toAssignable(a,n);a.type===`RestElement`&&(i<r?this.raise(_.RestTrailingComma,a):t&&this.raise(_.RestTrailingComma,t))}}}isAssignable(e,t){switch(e.type){case`Identifier`:case`ObjectPattern`:case`ArrayPattern`:case`AssignmentPattern`:case`RestElement`:return!0;case`ObjectExpression`:{let t=e.properties.length-1;return e.properties.every((e,n)=>e.type!==`ObjectMethod`&&(n===t||e.type!==`SpreadElement`)&&this.isAssignable(e))}case`ObjectProperty`:return this.isAssignable(e.value);case`SpreadElement`:return this.isAssignable(e.argument);case`ArrayExpression`:return e.elements.every(e=>e===null||this.isAssignable(e));case`AssignmentExpression`:return e.operator===`=`;case`ParenthesizedExpression`:return this.isAssignable(e.expression);case`MemberExpression`:case`OptionalMemberExpression`:return!t;default:return!1}}toReferencedList(e,t){return e}toReferencedListDeep(e,t){this.toReferencedList(e,t);for(let t of e)t?.type===`ArrayExpression`&&this.toReferencedListDeep(t.elements)}parseSpread(e){let t=this.startNode();return this.next(),t.argument=this.parseMaybeAssignAllowIn(e,void 0),this.finishNode(t,`SpreadElement`)}parseRestBinding(){let e=this.startNode();return this.next(),e.argument=this.parseBindingAtom(),this.finishNode(e,`RestElement`)}parseBindingAtom(){switch(this.state.type){case 0:{let e=this.startNode();return this.next(),e.elements=this.parseBindingList(3,93,1),this.finishNode(e,`ArrayPattern`)}case 5:return this.parseObjectLike(8,!0)}return this.parseIdentifier()}parseBindingList(e,t,n){let r=n&1,i=[],a=!0;for(;!this.eat(e);)if(a?a=!1:this.expect(12),r&&this.match(12))i.push(null);else if(this.eat(e))break;else if(this.match(21)){let r=this.parseRestBinding();if((this.hasPlugin(`flow`)||n&2)&&(r=this.parseFunctionParamType(r)),i.push(r),!this.checkCommaAfterRest(t)){this.expect(e);break}}else{let e=[];for(this.match(26)&&this.hasPlugin(`decorators`)&&this.raise(_.UnsupportedParameterDecorator,this.state.startLoc);this.match(26);)e.push(this.parseDecorator());i.push(this.parseAssignableListItem(n,e))}return i}parseBindingRestProperty(e){return this.next(),e.argument=this.parseIdentifier(),this.checkCommaAfterRest(125),this.finishNode(e,`RestElement`)}parseBindingProperty(){let{type:e,startLoc:t}=this.state;if(e===21)return this.parseBindingRestProperty(this.startNode());let n=this.startNode();return e===139?(this.expectPlugin(`destructuringPrivate`,t),this.classScope.usePrivateName(this.state.value,t),n.key=this.parsePrivateName()):this.parsePropertyName(n),n.method=!1,this.parseObjPropValue(n,t,!1,!1,!0,!1)}parseAssignableListItem(e,t){let n=this.parseMaybeDefault();(this.hasPlugin(`flow`)||e&2)&&this.parseFunctionParamType(n);let r=this.parseMaybeDefault(n.loc.start,n);return t.length&&(n.decorators=t),r}parseFunctionParamType(e){return e}parseMaybeDefault(e,t){if(e??=this.state.startLoc,t??=this.parseBindingAtom(),!this.eat(29))return t;let n=this.startNodeAt(e);return n.left=t,n.right=this.parseMaybeAssignAllowIn(),this.finishNode(n,`AssignmentPattern`)}isValidLVal(e,t,n){switch(e){case`AssignmentPattern`:return`left`;case`RestElement`:return`argument`;case`ObjectProperty`:return`value`;case`ParenthesizedExpression`:return`expression`;case`ArrayPattern`:return`elements`;case`ObjectPattern`:return`properties`}return!1}isOptionalMemberExpression(e){return e.type===`OptionalMemberExpression`}checkLVal(e,t,n=64,r=!1,i=!1,a=!1){var o;let s=e.type;if(this.isObjectMethod(e))return;let c=this.isOptionalMemberExpression(e);if(c||s===`MemberExpression`){c&&(this.expectPlugin(`optionalChainingAssign`,e.loc.start),t.type!==`AssignmentExpression`&&this.raise(_.InvalidLhsOptionalChaining,e,{ancestor:t})),n!==64&&this.raise(_.InvalidPropertyBindingPattern,e);return}if(s===`Identifier`){this.checkIdentifier(e,n,i);let{name:t}=e;r&&(r.has(t)?this.raise(_.ParamDupe,e):r.add(t));return}let l=this.isValidLVal(s,!(a||(o=e.extra)!=null&&o.parenthesized)&&t.type===`AssignmentExpression`,n);if(l===!0)return;if(l===!1){let r=n===64?_.InvalidLhs:_.InvalidLhsBinding;this.raise(r,e,{ancestor:t});return}let u,d;typeof l==`string`?(u=l,d=s===`ParenthesizedExpression`):[u,d]=l;let f=s===`ArrayPattern`||s===`ObjectPattern`?{type:s}:t,p=e[u];if(Array.isArray(p))for(let e of p)e&&this.checkLVal(e,f,n,r,i,d);else p&&this.checkLVal(p,f,n,r,i,d)}checkIdentifier(e,t,n=!1){this.state.strict&&(n?Re(e.name,this.inModule):Le(e.name))&&(t===64?this.raise(_.StrictEvalArguments,e,{referenceName:e.name}):this.raise(_.StrictEvalArgumentsBinding,e,{bindingName:e.name})),t&8192&&e.name===`let`&&this.raise(_.LetInLexicalBinding,e),t&64||this.declareNameFromIdentifier(e,t)}declareNameFromIdentifier(e,t){this.scope.declareName(e.name,t,e.loc.start)}checkToRestConversion(e,t){switch(e.type){case`ParenthesizedExpression`:this.checkToRestConversion(e.expression,t);break;case`Identifier`:case`MemberExpression`:break;case`ArrayExpression`:case`ObjectExpression`:if(t)break;default:this.raise(_.InvalidRestAssignmentPattern,e)}}checkCommaAfterRest(e){return this.match(12)?(this.raise(this.lookaheadCharCode()===e?_.RestTrailingComma:_.ElementAfterRest,this.state.startLoc),!0):!1}};function Xt(e){if(e==null)throw Error(`Unexpected ${e} value.`);return e}x(Xt,`nonNull`);function Zt(e){if(!e)throw Error(`Assert fail`)}x(Zt,`assert`);var J=g`typescript`({AbstractMethodHasImplementation:x(({methodName:e})=>`Method '${e}' cannot have an implementation because it is marked abstract.`,`AbstractMethodHasImplementation`),AbstractPropertyHasInitializer:x(({propertyName:e})=>`Property '${e}' cannot have an initializer because it is marked abstract.`,`AbstractPropertyHasInitializer`),AccessorCannotBeOptional:`An 'accessor' property cannot be declared optional.`,AccessorCannotDeclareThisParameter:`'get' and 'set' accessors cannot declare 'this' parameters.`,AccessorCannotHaveTypeParameters:`An accessor cannot have type parameters.`,ClassMethodHasDeclare:`Class methods cannot have the 'declare' modifier.`,ClassMethodHasReadonly:`Class methods cannot have the 'readonly' modifier.`,ConstInitializerMustBeStringOrNumericLiteralOrLiteralEnumReference:`A 'const' initializer in an ambient context must be a string or numeric literal or literal enum reference.`,ConstructorHasTypeParameters:`Type parameters cannot appear on a constructor declaration.`,DeclareAccessor:x(({kind:e})=>`'declare' is not allowed in ${e}ters.`,`DeclareAccessor`),DeclareClassFieldHasInitializer:`Initializers are not allowed in ambient contexts.`,DeclareFunctionHasImplementation:`An implementation cannot be declared in ambient contexts.`,DuplicateAccessibilityModifier:x(({modifier:e})=>`Accessibility modifier already seen.`,`DuplicateAccessibilityModifier`),DuplicateModifier:x(({modifier:e})=>`Duplicate modifier: '${e}'.`,`DuplicateModifier`),EmptyHeritageClauseType:x(({token:e})=>`'${e}' list cannot be empty.`,`EmptyHeritageClauseType`),EmptyTypeArguments:`Type argument list cannot be empty.`,EmptyTypeParameters:`Type parameter list cannot be empty.`,ExpectedAmbientAfterExportDeclare:`'export declare' must be followed by an ambient declaration.`,ImportAliasHasImportType:`An import alias can not use 'import type'.`,ImportReflectionHasImportType:"An `import module` declaration can not use `type` modifier",IncompatibleModifiers:x(({modifiers:e})=>`'${e[0]}' modifier cannot be used with '${e[1]}' modifier.`,`IncompatibleModifiers`),IndexSignatureHasAbstract:`Index signatures cannot have the 'abstract' modifier.`,IndexSignatureHasAccessibility:x(({modifier:e})=>`Index signatures cannot have an accessibility modifier ('${e}').`,`IndexSignatureHasAccessibility`),IndexSignatureHasDeclare:`Index signatures cannot have the 'declare' modifier.`,IndexSignatureHasOverride:`'override' modifier cannot appear on an index signature.`,IndexSignatureHasStatic:`Index signatures cannot have the 'static' modifier.`,InitializerNotAllowedInAmbientContext:`Initializers are not allowed in ambient contexts.`,InvalidModifierOnTypeMember:x(({modifier:e})=>`'${e}' modifier cannot appear on a type member.`,`InvalidModifierOnTypeMember`),InvalidModifierOnTypeParameter:x(({modifier:e})=>`'${e}' modifier cannot appear on a type parameter.`,`InvalidModifierOnTypeParameter`),InvalidModifierOnTypeParameterPositions:x(({modifier:e})=>`'${e}' modifier can only appear on a type parameter of a class, interface or type alias.`,`InvalidModifierOnTypeParameterPositions`),InvalidModifiersOrder:x(({orderedModifiers:e})=>`'${e[0]}' modifier must precede '${e[1]}' modifier.`,`InvalidModifiersOrder`),InvalidPropertyAccessAfterInstantiationExpression:`Invalid property access after an instantiation expression. You can either wrap the instantiation expression in parentheses, or delete the type arguments.`,InvalidTupleMemberLabel:`Tuple members must be labeled with a simple identifier.`,MissingInterfaceName:`'interface' declarations must be followed by an identifier.`,NonAbstractClassHasAbstractMethod:`Abstract methods can only appear within an abstract class.`,NonClassMethodPropertyHasAbstractModifer:`'abstract' modifier can only appear on a class, method, or property declaration.`,OptionalTypeBeforeRequired:`A required element cannot follow an optional element.`,OverrideNotInSubClass:`This member cannot have an 'override' modifier because its containing class does not extend another class.`,PatternIsOptional:`A binding pattern parameter cannot be optional in an implementation signature.`,PrivateElementHasAbstract:`Private elements cannot have the 'abstract' modifier.`,PrivateElementHasAccessibility:x(({modifier:e})=>`Private elements cannot have an accessibility modifier ('${e}').`,`PrivateElementHasAccessibility`),ReadonlyForMethodSignature:`'readonly' modifier can only appear on a property declaration or index signature.`,ReservedArrowTypeParam:"This syntax is reserved in files with the .mts or .cts extension. Add a trailing comma, as in `<T,>() => ...`.",ReservedTypeAssertion:"This syntax is reserved in files with the .mts or .cts extension. Use an `as` expression instead.",SetAccessorCannotHaveOptionalParameter:`A 'set' accessor cannot have an optional parameter.`,SetAccessorCannotHaveRestParameter:`A 'set' accessor cannot have rest parameter.`,SetAccessorCannotHaveReturnType:`A 'set' accessor cannot have a return type annotation.`,SingleTypeParameterWithoutTrailingComma:x(({typeParameterName:e})=>`Single type parameter ${e} should have a trailing comma. Example usage: <${e},>.`,`SingleTypeParameterWithoutTrailingComma`),StaticBlockCannotHaveModifier:`Static class blocks cannot have any modifier.`,TupleOptionalAfterType:"A labeled tuple optional element must be declared using a question mark after the name and before the colon (`name?: type`), rather than after the type (`name: type?`).",TypeAnnotationAfterAssign:"Type annotations must come before default assignments, e.g. instead of `age = 25: number` use `age: number = 25`.",TypeImportCannotSpecifyDefaultAndNamed:`A type-only import can specify a default import or named bindings, but not both.`,TypeModifierIsUsedInTypeExports:`The 'type' modifier cannot be used on a named export when 'export type' is used on its export statement.`,TypeModifierIsUsedInTypeImports:`The 'type' modifier cannot be used on a named import when 'import type' is used on its import statement.`,UnexpectedParameterModifier:`A parameter property is only allowed in a constructor implementation.`,UnexpectedReadonly:`'readonly' type modifier is only permitted on array and tuple literal types.`,UnexpectedTypeAnnotation:`Did not expect a type annotation here.`,UnexpectedTypeCastInParameter:`Unexpected type cast in parameter position.`,UnsupportedImportTypeArgument:`Argument in a type import must be a string literal.`,UnsupportedParameterPropertyKind:`A parameter property may not be declared using a binding pattern.`,UnsupportedSignatureParameterKind:x(({type:e})=>`Name in a signature must be an Identifier, ObjectPattern or ArrayPattern, instead got ${e}.`,`UnsupportedSignatureParameterKind`)});function Qt(e){switch(e){case`any`:return`TSAnyKeyword`;case`boolean`:return`TSBooleanKeyword`;case`bigint`:return`TSBigIntKeyword`;case`never`:return`TSNeverKeyword`;case`number`:return`TSNumberKeyword`;case`object`:return`TSObjectKeyword`;case`string`:return`TSStringKeyword`;case`symbol`:return`TSSymbolKeyword`;case`undefined`:return`TSUndefinedKeyword`;case`unknown`:return`TSUnknownKeyword`;default:return}}x(Qt,`keywordTypeFromName`);function $t(e){return e===`private`||e===`public`||e===`protected`}x($t,`tsIsAccessModifier`);function en(e){return e===`in`||e===`out`}x(en,`tsIsVarianceAnnotations`);var tn=x(e=>class extends e{static{x(this,`TypeScriptParserMixin`)}constructor(...e){super(...e),this.tsParseInOutModifiers=this.tsParseModifiers.bind(this,{allowedModifiers:[`in`,`out`],disallowedModifiers:[`const`,`public`,`private`,`protected`,`readonly`,`declare`,`abstract`,`override`],errorTemplate:J.InvalidModifierOnTypeParameter}),this.tsParseConstModifier=this.tsParseModifiers.bind(this,{allowedModifiers:[`const`],disallowedModifiers:[`in`,`out`],errorTemplate:J.InvalidModifierOnTypeParameterPositions}),this.tsParseInOutConstModifiers=this.tsParseModifiers.bind(this,{allowedModifiers:[`in`,`out`,`const`],disallowedModifiers:[`public`,`private`,`protected`,`readonly`,`declare`,`abstract`,`override`],errorTemplate:J.InvalidModifierOnTypeParameter})}getScopeHandler(){return qt}tsIsIdentifier(){return L(this.state.type)}tsTokenCanFollowModifier(){return this.match(0)||this.match(5)||this.match(55)||this.match(21)||this.match(139)||this.isLiteralPropertyName()}tsNextTokenOnSameLineAndCanFollowModifier(){return this.next(),this.hasPrecedingLineBreak()?!1:this.tsTokenCanFollowModifier()}tsNextTokenCanFollowModifier(){return this.match(106)?(this.next(),this.tsTokenCanFollowModifier()):this.tsNextTokenOnSameLineAndCanFollowModifier()}tsParseModifier(e,t){if(!L(this.state.type)&&this.state.type!==58&&this.state.type!==75)return;let n=this.state.value;if(e.includes(n)){if(t&&this.tsIsStartOfStaticBlocks())return;if(this.tsTryParse(this.tsNextTokenCanFollowModifier.bind(this)))return n}}tsParseModifiers({allowedModifiers:e,disallowedModifiers:t,stopOnStartOfClassStaticBlock:n,errorTemplate:r=J.InvalidModifierOnTypeMember},i){let a=x((e,t,n,r)=>{t===n&&i[r]&&this.raise(J.InvalidModifiersOrder,e,{orderedModifiers:[n,r]})},`enforceOrder`),o=x((e,t,n,r)=>{(i[n]&&t===r||i[r]&&t===n)&&this.raise(J.IncompatibleModifiers,e,{modifiers:[n,r]})},`incompatible`);for(;;){let{startLoc:s}=this.state,c=this.tsParseModifier(e.concat(t??[]),n);if(!c)break;$t(c)?i.accessibility?this.raise(J.DuplicateAccessibilityModifier,s,{modifier:c}):(a(s,c,c,`override`),a(s,c,c,`static`),a(s,c,c,`readonly`),i.accessibility=c):en(c)?(i[c]&&this.raise(J.DuplicateModifier,s,{modifier:c}),i[c]=!0,a(s,c,`in`,`out`)):(hasOwnProperty.call(i,c)?this.raise(J.DuplicateModifier,s,{modifier:c}):(a(s,c,`static`,`readonly`),a(s,c,`static`,`override`),a(s,c,`override`,`readonly`),a(s,c,`abstract`,`override`),o(s,c,`declare`,`override`),o(s,c,`static`,`abstract`)),i[c]=!0),t!=null&&t.includes(c)&&this.raise(r,s,{modifier:c})}}tsIsListTerminator(e){switch(e){case`EnumMembers`:case`TypeMembers`:return this.match(8);case`HeritageClauseElement`:return this.match(5);case`TupleElementTypes`:return this.match(3);case`TypeParametersOrArguments`:return this.match(48)}}tsParseList(e,t){let n=[];for(;!this.tsIsListTerminator(e);)n.push(t());return n}tsParseDelimitedList(e,t,n){return Xt(this.tsParseDelimitedListWorker(e,t,!0,n))}tsParseDelimitedListWorker(e,t,n,r){let i=[],a=-1;for(;!this.tsIsListTerminator(e);){a=-1;let r=t();if(r==null)return;if(i.push(r),this.eat(12)){a=this.state.lastTokStartLoc.index;continue}if(this.tsIsListTerminator(e))break;n&&this.expect(12);return}return r&&(r.value=a),i}tsParseBracketedList(e,t,n,r,i){r||(n?this.expect(0):this.expect(47));let a=this.tsParseDelimitedList(e,t,i);return n?this.expect(3):this.expect(48),a}tsParseImportType(){let e=this.startNode();return this.expect(83),this.expect(10),this.match(134)||this.raise(J.UnsupportedImportTypeArgument,this.state.startLoc),e.argument=super.parseExprAtom(),this.eat(12)&&!this.match(11)?(e.options=super.parseMaybeAssignAllowIn(),this.eat(12)):e.options=null,this.expect(11),this.eat(16)&&(e.qualifier=this.tsParseEntityName()),this.match(47)&&(e.typeParameters=this.tsParseTypeArguments()),this.finishNode(e,`TSImportType`)}tsParseEntityName(e=!0){let t=this.parseIdentifier(e);for(;this.eat(16);){let n=this.startNodeAtNode(t);n.left=t,n.right=this.parseIdentifier(e),t=this.finishNode(n,`TSQualifiedName`)}return t}tsParseTypeReference(){let e=this.startNode();return e.typeName=this.tsParseEntityName(),!this.hasPrecedingLineBreak()&&this.match(47)&&(e.typeParameters=this.tsParseTypeArguments()),this.finishNode(e,`TSTypeReference`)}tsParseThisTypePredicate(e){this.next();let t=this.startNodeAtNode(e);return t.parameterName=e,t.typeAnnotation=this.tsParseTypeAnnotation(!1),t.asserts=!1,this.finishNode(t,`TSTypePredicate`)}tsParseThisTypeNode(){let e=this.startNode();return this.next(),this.finishNode(e,`TSThisType`)}tsParseTypeQuery(){let e=this.startNode();return this.expect(87),this.match(83)?e.exprName=this.tsParseImportType():e.exprName=this.tsParseEntityName(),!this.hasPrecedingLineBreak()&&this.match(47)&&(e.typeParameters=this.tsParseTypeArguments()),this.finishNode(e,`TSTypeQuery`)}tsParseTypeParameter(e){let t=this.startNode();return e(t),t.name=this.tsParseTypeParameterName(),t.constraint=this.tsEatThenParseType(81),t.default=this.tsEatThenParseType(29),this.finishNode(t,`TSTypeParameter`)}tsTryParseTypeParameters(e){if(this.match(47))return this.tsParseTypeParameters(e)}tsParseTypeParameters(e){let t=this.startNode();this.match(47)||this.match(143)?this.next():this.unexpected();let n={value:-1};return t.params=this.tsParseBracketedList(`TypeParametersOrArguments`,this.tsParseTypeParameter.bind(this,e),!1,!0,n),t.params.length===0&&this.raise(J.EmptyTypeParameters,t),n.value!==-1&&this.addExtra(t,`trailingComma`,n.value),this.finishNode(t,`TSTypeParameterDeclaration`)}tsFillSignature(e,t){let n=e===19;t.typeParameters=this.tsTryParseTypeParameters(this.tsParseConstModifier),this.expect(10),t.parameters=this.tsParseBindingListForSignature(),(n||this.match(e))&&(t.typeAnnotation=this.tsParseTypeOrTypePredicateAnnotation(e))}tsParseBindingListForSignature(){let e=super.parseBindingList(11,41,2);for(let t of e){let{type:e}=t;(e===`AssignmentPattern`||e===`TSParameterProperty`)&&this.raise(J.UnsupportedSignatureParameterKind,t,{type:e})}return e}tsParseTypeMemberSemicolon(){!this.eat(12)&&!this.isLineTerminator()&&this.expect(13)}tsParseSignatureMember(e,t){return this.tsFillSignature(14,t),this.tsParseTypeMemberSemicolon(),this.finishNode(t,e)}tsIsUnambiguouslyIndexSignature(){return this.next(),L(this.state.type)?(this.next(),this.match(14)):!1}tsTryParseIndexSignature(e){if(!(this.match(0)&&this.tsLookAhead(this.tsIsUnambiguouslyIndexSignature.bind(this))))return;this.expect(0);let t=this.parseIdentifier();t.typeAnnotation=this.tsParseTypeAnnotation(),this.resetEndLocation(t),this.expect(3),e.parameters=[t];let n=this.tsTryParseTypeAnnotation();return n&&(e.typeAnnotation=n),this.tsParseTypeMemberSemicolon(),this.finishNode(e,`TSIndexSignature`)}tsParsePropertyOrMethodSignature(e,t){this.eat(17)&&(e.optional=!0);let n=e;if(this.match(10)||this.match(47)){t&&this.raise(J.ReadonlyForMethodSignature,e);let r=n;r.kind&&this.match(47)&&this.raise(J.AccessorCannotHaveTypeParameters,this.state.curPosition()),this.tsFillSignature(14,r),this.tsParseTypeMemberSemicolon();let i=`parameters`,a=`typeAnnotation`;if(r.kind===`get`)r[i].length>0&&(this.raise(_.BadGetterArity,this.state.curPosition()),this.isThisParam(r[i][0])&&this.raise(J.AccessorCannotDeclareThisParameter,this.state.curPosition()));else if(r.kind===`set`){if(r[i].length!==1)this.raise(_.BadSetterArity,this.state.curPosition());else{let e=r[i][0];this.isThisParam(e)&&this.raise(J.AccessorCannotDeclareThisParameter,this.state.curPosition()),e.type===`Identifier`&&e.optional&&this.raise(J.SetAccessorCannotHaveOptionalParameter,this.state.curPosition()),e.type===`RestElement`&&this.raise(J.SetAccessorCannotHaveRestParameter,this.state.curPosition())}r[a]&&this.raise(J.SetAccessorCannotHaveReturnType,r[a])}else r.kind=`method`;return this.finishNode(r,`TSMethodSignature`)}else{let e=n;t&&(e.readonly=!0);let r=this.tsTryParseTypeAnnotation();return r&&(e.typeAnnotation=r),this.tsParseTypeMemberSemicolon(),this.finishNode(e,`TSPropertySignature`)}}tsParseTypeMember(){let e=this.startNode();if(this.match(10)||this.match(47))return this.tsParseSignatureMember(`TSCallSignatureDeclaration`,e);if(this.match(77)){let t=this.startNode();return this.next(),this.match(10)||this.match(47)?this.tsParseSignatureMember(`TSConstructSignatureDeclaration`,e):(e.key=this.createIdentifier(t,`new`),this.tsParsePropertyOrMethodSignature(e,!1))}return this.tsParseModifiers({allowedModifiers:[`readonly`],disallowedModifiers:[`declare`,`abstract`,`private`,`protected`,`public`,`static`,`override`]},e),this.tsTryParseIndexSignature(e)||(super.parsePropertyName(e),!e.computed&&e.key.type===`Identifier`&&(e.key.name===`get`||e.key.name===`set`)&&this.tsTokenCanFollowModifier()&&(e.kind=e.key.name,super.parsePropertyName(e)),this.tsParsePropertyOrMethodSignature(e,!!e.readonly))}tsParseTypeLiteral(){let e=this.startNode();return e.members=this.tsParseObjectTypeMembers(),this.finishNode(e,`TSTypeLiteral`)}tsParseObjectTypeMembers(){this.expect(5);let e=this.tsParseList(`TypeMembers`,this.tsParseTypeMember.bind(this));return this.expect(8),e}tsIsStartOfMappedType(){return this.next(),this.eat(53)?this.isContextual(122):(this.isContextual(122)&&this.next(),!this.match(0)||(this.next(),!this.tsIsIdentifier())?!1:(this.next(),this.match(58)))}tsParseMappedType(){let e=this.startNode();this.expect(5),this.match(53)?(e.readonly=this.state.value,this.next(),this.expectContextual(122)):this.eatContextual(122)&&(e.readonly=!0),this.expect(0);{let t=this.startNode();t.name=this.tsParseTypeParameterName(),t.constraint=this.tsExpectThenParseType(58),e.typeParameter=this.finishNode(t,`TSTypeParameter`)}return e.nameType=this.eatContextual(93)?this.tsParseType():null,this.expect(3),this.match(53)?(e.optional=this.state.value,this.next(),this.expect(17)):this.eat(17)&&(e.optional=!0),e.typeAnnotation=this.tsTryParseType(),this.semicolon(),this.expect(8),this.finishNode(e,`TSMappedType`)}tsParseTupleType(){let e=this.startNode();e.elementTypes=this.tsParseBracketedList(`TupleElementTypes`,this.tsParseTupleElementType.bind(this),!0,!1);let t=!1;return e.elementTypes.forEach(e=>{let{type:n}=e;t&&n!==`TSRestType`&&n!==`TSOptionalType`&&!(n===`TSNamedTupleMember`&&e.optional)&&this.raise(J.OptionalTypeBeforeRequired,e),t||=n===`TSNamedTupleMember`&&e.optional||n===`TSOptionalType`}),this.finishNode(e,`TSTupleType`)}tsParseTupleElementType(){let{startLoc:e}=this.state,t=this.eat(21),n,r,i,a,o=le(this.state.type)?this.lookaheadCharCode():null;if(o===58)n=!0,i=!1,r=this.parseIdentifier(!0),this.expect(14),a=this.tsParseType();else if(o===63){i=!0;let e=this.state.startLoc,t=this.state.value,o=this.tsParseNonArrayType();this.lookaheadCharCode()===58?(n=!0,r=this.createIdentifier(this.startNodeAt(e),t),this.expect(17),this.expect(14),a=this.tsParseType()):(n=!1,a=o,this.expect(17))}else a=this.tsParseType(),i=this.eat(17),n=this.eat(14);if(n){let e;r?(e=this.startNodeAtNode(r),e.optional=i,e.label=r,e.elementType=a,this.eat(17)&&(e.optional=!0,this.raise(J.TupleOptionalAfterType,this.state.lastTokStartLoc))):(e=this.startNodeAtNode(a),e.optional=i,this.raise(J.InvalidTupleMemberLabel,a),e.label=a,e.elementType=this.tsParseType()),a=this.finishNode(e,`TSNamedTupleMember`)}else if(i){let e=this.startNodeAtNode(a);e.typeAnnotation=a,a=this.finishNode(e,`TSOptionalType`)}if(t){let t=this.startNodeAt(e);t.typeAnnotation=a,a=this.finishNode(t,`TSRestType`)}return a}tsParseParenthesizedType(){let e=this.startNode();return this.expect(10),e.typeAnnotation=this.tsParseType(),this.expect(11),this.finishNode(e,`TSParenthesizedType`)}tsParseFunctionOrConstructorType(e,t){let n=this.startNode();return e===`TSConstructorType`&&(n.abstract=!!t,t&&this.next(),this.next()),this.tsInAllowConditionalTypesContext(()=>this.tsFillSignature(19,n)),this.finishNode(n,e)}tsParseLiteralTypeNode(){let e=this.startNode();switch(this.state.type){case 135:case 136:case 134:case 85:case 86:e.literal=super.parseExprAtom();break;default:this.unexpected()}return this.finishNode(e,`TSLiteralType`)}tsParseTemplateLiteralType(){let e=this.startNode();return e.literal=super.parseTemplate(!1),this.finishNode(e,`TSLiteralType`)}parseTemplateSubstitution(){return this.state.inType?this.tsParseType():super.parseTemplateSubstitution()}tsParseThisTypeOrThisTypePredicate(){let e=this.tsParseThisTypeNode();return this.isContextual(116)&&!this.hasPrecedingLineBreak()?this.tsParseThisTypePredicate(e):e}tsParseNonArrayType(){switch(this.state.type){case 134:case 135:case 136:case 85:case 86:return this.tsParseLiteralTypeNode();case 53:if(this.state.value===`-`){let e=this.startNode(),t=this.lookahead();return t.type!==135&&t.type!==136&&this.unexpected(),e.literal=this.parseMaybeUnary(),this.finishNode(e,`TSLiteralType`)}break;case 78:return this.tsParseThisTypeOrThisTypePredicate();case 87:return this.tsParseTypeQuery();case 83:return this.tsParseImportType();case 5:return this.tsLookAhead(this.tsIsStartOfMappedType.bind(this))?this.tsParseMappedType():this.tsParseTypeLiteral();case 0:return this.tsParseTupleType();case 10:return this.tsParseParenthesizedType();case 25:case 24:return this.tsParseTemplateLiteralType();default:{let{type:e}=this.state;if(L(e)||e===88||e===84){let t=e===88?`TSVoidKeyword`:e===84?`TSNullKeyword`:Qt(this.state.value);if(t!==void 0&&this.lookaheadCharCode()!==46){let e=this.startNode();return this.next(),this.finishNode(e,t)}return this.tsParseTypeReference()}}}this.unexpected()}tsParseArrayTypeOrHigher(){let e=this.tsParseNonArrayType();for(;!this.hasPrecedingLineBreak()&&this.eat(0);)if(this.match(3)){let t=this.startNodeAtNode(e);t.elementType=e,this.expect(3),e=this.finishNode(t,`TSArrayType`)}else{let t=this.startNodeAtNode(e);t.objectType=e,t.indexType=this.tsParseType(),this.expect(3),e=this.finishNode(t,`TSIndexedAccessType`)}return e}tsParseTypeOperator(){let e=this.startNode(),t=this.state.value;return this.next(),e.operator=t,e.typeAnnotation=this.tsParseTypeOperatorOrHigher(),t===`readonly`&&this.tsCheckTypeAnnotationForReadOnly(e),this.finishNode(e,`TSTypeOperator`)}tsCheckTypeAnnotationForReadOnly(e){switch(e.typeAnnotation.type){case`TSTupleType`:case`TSArrayType`:return;default:this.raise(J.UnexpectedReadonly,e)}}tsParseInferType(){let e=this.startNode();this.expectContextual(115);let t=this.startNode();return t.name=this.tsParseTypeParameterName(),t.constraint=this.tsTryParse(()=>this.tsParseConstraintForInferType()),e.typeParameter=this.finishNode(t,`TSTypeParameter`),this.finishNode(e,`TSInferType`)}tsParseConstraintForInferType(){if(this.eat(81)){let e=this.tsInDisallowConditionalTypesContext(()=>this.tsParseType());if(this.state.inDisallowConditionalTypesContext||!this.match(17))return e}}tsParseTypeOperatorOrHigher(){return ve(this.state.type)&&!this.state.containsEsc?this.tsParseTypeOperator():this.isContextual(115)?this.tsParseInferType():this.tsInAllowConditionalTypesContext(()=>this.tsParseArrayTypeOrHigher())}tsParseUnionOrIntersectionType(e,t,n){let r=this.startNode(),i=this.eat(n),a=[];do a.push(t());while(this.eat(n));return a.length===1&&!i?a[0]:(r.types=a,this.finishNode(r,e))}tsParseIntersectionTypeOrHigher(){return this.tsParseUnionOrIntersectionType(`TSIntersectionType`,this.tsParseTypeOperatorOrHigher.bind(this),45)}tsParseUnionTypeOrHigher(){return this.tsParseUnionOrIntersectionType(`TSUnionType`,this.tsParseIntersectionTypeOrHigher.bind(this),43)}tsIsStartOfFunctionType(){return this.match(47)?!0:this.match(10)&&this.tsLookAhead(this.tsIsUnambiguouslyStartOfFunctionType.bind(this))}tsSkipParameterStart(){if(L(this.state.type)||this.match(78))return this.next(),!0;if(this.match(5)){let{errors:e}=this.state,t=e.length;try{return this.parseObjectLike(8,!0),e.length===t}catch{return!1}}if(this.match(0)){this.next();let{errors:e}=this.state,t=e.length;try{return super.parseBindingList(3,93,1),e.length===t}catch{return!1}}return!1}tsIsUnambiguouslyStartOfFunctionType(){return this.next(),!!(this.match(11)||this.match(21)||this.tsSkipParameterStart()&&(this.match(14)||this.match(12)||this.match(17)||this.match(29)||this.match(11)&&(this.next(),this.match(19))))}tsParseTypeOrTypePredicateAnnotation(e){return this.tsInType(()=>{let t=this.startNode();this.expect(e);let n=this.startNode(),r=!!this.tsTryParse(this.tsParseTypePredicateAsserts.bind(this));if(r&&this.match(78)){let e=this.tsParseThisTypeOrThisTypePredicate();return e.type===`TSThisType`?(n.parameterName=e,n.asserts=!0,n.typeAnnotation=null,e=this.finishNode(n,`TSTypePredicate`)):(this.resetStartLocationFromNode(e,n),e.asserts=!0),t.typeAnnotation=e,this.finishNode(t,`TSTypeAnnotation`)}let i=this.tsIsIdentifier()&&this.tsTryParse(this.tsParseTypePredicatePrefix.bind(this));if(!i)return r?(n.parameterName=this.parseIdentifier(),n.asserts=r,n.typeAnnotation=null,t.typeAnnotation=this.finishNode(n,`TSTypePredicate`),this.finishNode(t,`TSTypeAnnotation`)):this.tsParseTypeAnnotation(!1,t);let a=this.tsParseTypeAnnotation(!1);return n.parameterName=i,n.typeAnnotation=a,n.asserts=r,t.typeAnnotation=this.finishNode(n,`TSTypePredicate`),this.finishNode(t,`TSTypeAnnotation`)})}tsTryParseTypeOrTypePredicateAnnotation(){if(this.match(14))return this.tsParseTypeOrTypePredicateAnnotation(14)}tsTryParseTypeAnnotation(){if(this.match(14))return this.tsParseTypeAnnotation()}tsTryParseType(){return this.tsEatThenParseType(14)}tsParseTypePredicatePrefix(){let e=this.parseIdentifier();if(this.isContextual(116)&&!this.hasPrecedingLineBreak())return this.next(),e}tsParseTypePredicateAsserts(){if(this.state.type!==109)return!1;let e=this.state.containsEsc;return this.next(),!L(this.state.type)&&!this.match(78)?!1:(e&&this.raise(_.InvalidEscapedReservedWord,this.state.lastTokStartLoc,{reservedWord:`asserts`}),!0)}tsParseTypeAnnotation(e=!0,t=this.startNode()){return this.tsInType(()=>{e&&this.expect(14),t.typeAnnotation=this.tsParseType()}),this.finishNode(t,`TSTypeAnnotation`)}tsParseType(){Zt(this.state.inType);let e=this.tsParseNonConditionalType();if(this.state.inDisallowConditionalTypesContext||this.hasPrecedingLineBreak()||!this.eat(81))return e;let t=this.startNodeAtNode(e);return t.checkType=e,t.extendsType=this.tsInDisallowConditionalTypesContext(()=>this.tsParseNonConditionalType()),this.expect(17),t.trueType=this.tsInAllowConditionalTypesContext(()=>this.tsParseType()),this.expect(14),t.falseType=this.tsInAllowConditionalTypesContext(()=>this.tsParseType()),this.finishNode(t,`TSConditionalType`)}isAbstractConstructorSignature(){return this.isContextual(124)&&this.lookahead().type===77}tsParseNonConditionalType(){return this.tsIsStartOfFunctionType()?this.tsParseFunctionOrConstructorType(`TSFunctionType`):this.match(77)?this.tsParseFunctionOrConstructorType(`TSConstructorType`):this.isAbstractConstructorSignature()?this.tsParseFunctionOrConstructorType(`TSConstructorType`,!0):this.tsParseUnionTypeOrHigher()}tsParseTypeAssertion(){this.getPluginOption(`typescript`,`disallowAmbiguousJSXLike`)&&this.raise(J.ReservedTypeAssertion,this.state.startLoc);let e=this.startNode();return e.typeAnnotation=this.tsInType(()=>(this.next(),this.match(75)?this.tsParseTypeReference():this.tsParseType())),this.expect(48),e.expression=this.parseMaybeUnary(),this.finishNode(e,`TSTypeAssertion`)}tsParseHeritageClause(e){let t=this.state.startLoc,n=this.tsParseDelimitedList(`HeritageClauseElement`,()=>{let e=this.startNode();return e.expression=this.tsParseEntityName(),this.match(47)&&(e.typeParameters=this.tsParseTypeArguments()),this.finishNode(e,`TSExpressionWithTypeArguments`)});return n.length||this.raise(J.EmptyHeritageClauseType,t,{token:e}),n}tsParseInterfaceDeclaration(e,t={}){if(this.hasFollowingLineBreak())return null;this.expectContextual(129),t.declare&&(e.declare=!0),L(this.state.type)?(e.id=this.parseIdentifier(),this.checkIdentifier(e.id,130)):(e.id=null,this.raise(J.MissingInterfaceName,this.state.startLoc)),e.typeParameters=this.tsTryParseTypeParameters(this.tsParseInOutConstModifiers),this.eat(81)&&(e.extends=this.tsParseHeritageClause(`extends`));let n=this.startNode();return n.body=this.tsInType(this.tsParseObjectTypeMembers.bind(this)),e.body=this.finishNode(n,`TSInterfaceBody`),this.finishNode(e,`TSInterfaceDeclaration`)}tsParseTypeAliasDeclaration(e){return e.id=this.parseIdentifier(),this.checkIdentifier(e.id,2),e.typeAnnotation=this.tsInType(()=>{if(e.typeParameters=this.tsTryParseTypeParameters(this.tsParseInOutModifiers),this.expect(29),this.isContextual(114)&&this.lookahead().type!==16){let e=this.startNode();return this.next(),this.finishNode(e,`TSIntrinsicKeyword`)}return this.tsParseType()}),this.semicolon(),this.finishNode(e,`TSTypeAliasDeclaration`)}tsInNoContext(e){let t=this.state.context;this.state.context=[t[0]];try{return e()}finally{this.state.context=t}}tsInType(e){let t=this.state.inType;this.state.inType=!0;try{return e()}finally{this.state.inType=t}}tsInDisallowConditionalTypesContext(e){let t=this.state.inDisallowConditionalTypesContext;this.state.inDisallowConditionalTypesContext=!0;try{return e()}finally{this.state.inDisallowConditionalTypesContext=t}}tsInAllowConditionalTypesContext(e){let t=this.state.inDisallowConditionalTypesContext;this.state.inDisallowConditionalTypesContext=!1;try{return e()}finally{this.state.inDisallowConditionalTypesContext=t}}tsEatThenParseType(e){if(this.match(e))return this.tsNextThenParseType()}tsExpectThenParseType(e){return this.tsInType(()=>(this.expect(e),this.tsParseType()))}tsNextThenParseType(){return this.tsInType(()=>(this.next(),this.tsParseType()))}tsParseEnumMember(){let e=this.startNode();return e.id=this.match(134)?super.parseStringLiteral(this.state.value):this.parseIdentifier(!0),this.eat(29)&&(e.initializer=super.parseMaybeAssignAllowIn()),this.finishNode(e,`TSEnumMember`)}tsParseEnumDeclaration(e,t={}){return t.const&&(e.const=!0),t.declare&&(e.declare=!0),this.expectContextual(126),e.id=this.parseIdentifier(),this.checkIdentifier(e.id,e.const?8971:8459),this.expect(5),e.members=this.tsParseDelimitedList(`EnumMembers`,this.tsParseEnumMember.bind(this)),this.expect(8),this.finishNode(e,`TSEnumDeclaration`)}tsParseModuleBlock(){let e=this.startNode();return this.scope.enter(0),this.expect(5),super.parseBlockOrModuleBlockBody(e.body=[],void 0,!0,8),this.scope.exit(),this.finishNode(e,`TSModuleBlock`)}tsParseModuleOrNamespaceDeclaration(e,t=!1){if(e.id=this.parseIdentifier(),t||this.checkIdentifier(e.id,1024),this.eat(16)){let t=this.startNode();this.tsParseModuleOrNamespaceDeclaration(t,!0),e.body=t}else this.scope.enter(256),this.prodParam.enter(0),e.body=this.tsParseModuleBlock(),this.prodParam.exit(),this.scope.exit();return this.finishNode(e,`TSModuleDeclaration`)}tsParseAmbientExternalModuleDeclaration(e){return this.isContextual(112)?(e.kind=`global`,e.global=!0,e.id=this.parseIdentifier()):this.match(134)?(e.kind=`module`,e.id=super.parseStringLiteral(this.state.value)):this.unexpected(),this.match(5)?(this.scope.enter(256),this.prodParam.enter(0),e.body=this.tsParseModuleBlock(),this.prodParam.exit(),this.scope.exit()):this.semicolon(),this.finishNode(e,`TSModuleDeclaration`)}tsParseImportEqualsDeclaration(e,t,n){e.isExport=n||!1,e.id=t||this.parseIdentifier(),this.checkIdentifier(e.id,4096),this.expect(29);let r=this.tsParseModuleReference();return e.importKind===`type`&&r.type!==`TSExternalModuleReference`&&this.raise(J.ImportAliasHasImportType,r),e.moduleReference=r,this.semicolon(),this.finishNode(e,`TSImportEqualsDeclaration`)}tsIsExternalModuleReference(){return this.isContextual(119)&&this.lookaheadCharCode()===40}tsParseModuleReference(){return this.tsIsExternalModuleReference()?this.tsParseExternalModuleReference():this.tsParseEntityName(!1)}tsParseExternalModuleReference(){let e=this.startNode();return this.expectContextual(119),this.expect(10),this.match(134)||this.unexpected(),e.expression=super.parseExprAtom(),this.expect(11),this.sawUnambiguousESM=!0,this.finishNode(e,`TSExternalModuleReference`)}tsLookAhead(e){let t=this.state.clone(),n=e();return this.state=t,n}tsTryParseAndCatch(e){let t=this.tryParse(t=>e()||t());if(!(t.aborted||!t.node))return t.error&&(this.state=t.failState),t.node}tsTryParse(e){let t=this.state.clone(),n=e();if(n!==void 0&&n!==!1)return n;this.state=t}tsTryParseDeclare(e){if(this.isLineTerminator())return;let t=this.state.type,n;return this.isContextual(100)&&(t=74,n=`let`),this.tsInAmbientContext(()=>{switch(t){case 68:return e.declare=!0,super.parseFunctionStatement(e,!1,!1);case 80:return e.declare=!0,this.parseClass(e,!0,!1);case 126:return this.tsParseEnumDeclaration(e,{declare:!0});case 112:return this.tsParseAmbientExternalModuleDeclaration(e);case 75:case 74:return!this.match(75)||!this.isLookaheadContextual(`enum`)?(e.declare=!0,this.parseVarStatement(e,n||this.state.value,!0)):(this.expect(75),this.tsParseEnumDeclaration(e,{const:!0,declare:!0}));case 129:{let t=this.tsParseInterfaceDeclaration(e,{declare:!0});if(t)return t}default:if(L(t))return this.tsParseDeclaration(e,this.state.value,!0,null)}})}tsTryParseExportDeclaration(){return this.tsParseDeclaration(this.startNode(),this.state.value,!0,null)}tsParseExpressionStatement(e,t,n){switch(t.name){case`declare`:{let t=this.tsTryParseDeclare(e);return t&&(t.declare=!0),t}case`global`:if(this.match(5)){this.scope.enter(256),this.prodParam.enter(0);let n=e;return n.kind=`global`,e.global=!0,n.id=t,n.body=this.tsParseModuleBlock(),this.scope.exit(),this.prodParam.exit(),this.finishNode(n,`TSModuleDeclaration`)}break;default:return this.tsParseDeclaration(e,t.name,!1,n)}}tsParseDeclaration(e,t,n,r){switch(t){case`abstract`:if(this.tsCheckLineTerminator(n)&&(this.match(80)||L(this.state.type)))return this.tsParseAbstractDeclaration(e,r);break;case`module`:if(this.tsCheckLineTerminator(n)){if(this.match(134))return this.tsParseAmbientExternalModuleDeclaration(e);if(L(this.state.type))return e.kind=`module`,this.tsParseModuleOrNamespaceDeclaration(e)}break;case`namespace`:if(this.tsCheckLineTerminator(n)&&L(this.state.type))return e.kind=`namespace`,this.tsParseModuleOrNamespaceDeclaration(e);break;case`type`:if(this.tsCheckLineTerminator(n)&&L(this.state.type))return this.tsParseTypeAliasDeclaration(e);break}}tsCheckLineTerminator(e){return e?this.hasFollowingLineBreak()?!1:(this.next(),!0):!this.isLineTerminator()}tsTryParseGenericAsyncArrowFunction(e){if(!this.match(47))return;let t=this.state.maybeInArrowParameters;this.state.maybeInArrowParameters=!0;let n=this.tsTryParseAndCatch(()=>{let t=this.startNodeAt(e);return t.typeParameters=this.tsParseTypeParameters(this.tsParseConstModifier),super.parseFunctionParams(t),t.returnType=this.tsTryParseTypeOrTypePredicateAnnotation(),this.expect(19),t});if(this.state.maybeInArrowParameters=t,n)return super.parseArrowExpression(n,null,!0)}tsParseTypeArgumentsInExpression(){if(this.reScan_lt()===47)return this.tsParseTypeArguments()}tsParseTypeArguments(){let e=this.startNode();return e.params=this.tsInType(()=>this.tsInNoContext(()=>(this.expect(47),this.tsParseDelimitedList(`TypeParametersOrArguments`,this.tsParseType.bind(this))))),e.params.length===0?this.raise(J.EmptyTypeArguments,e):!this.state.inType&&this.curContext()===w.brace&&this.reScan_lt_gt(),this.expect(48),this.finishNode(e,`TSTypeParameterInstantiation`)}tsIsDeclarationStart(){return B(this.state.type)}isExportDefaultSpecifier(){return this.tsIsDeclarationStart()?!1:super.isExportDefaultSpecifier()}parseAssignableListItem(e,t){let n=this.state.startLoc,r={};this.tsParseModifiers({allowedModifiers:[`public`,`private`,`protected`,`override`,`readonly`]},r);let i=r.accessibility,a=r.override,o=r.readonly;!(e&4)&&(i||o||a)&&this.raise(J.UnexpectedParameterModifier,n);let s=this.parseMaybeDefault();e&2&&this.parseFunctionParamType(s);let c=this.parseMaybeDefault(s.loc.start,s);if(i||o||a){let e=this.startNodeAt(n);return t.length&&(e.decorators=t),i&&(e.accessibility=i),o&&(e.readonly=o),a&&(e.override=a),c.type!==`Identifier`&&c.type!==`AssignmentPattern`&&this.raise(J.UnsupportedParameterPropertyKind,e),e.parameter=c,this.finishNode(e,`TSParameterProperty`)}return t.length&&(s.decorators=t),c}isSimpleParameter(e){return e.type===`TSParameterProperty`&&super.isSimpleParameter(e.parameter)||super.isSimpleParameter(e)}tsDisallowOptionalPattern(e){for(let t of e.params)t.type!==`Identifier`&&t.optional&&!this.state.isAmbientContext&&this.raise(J.PatternIsOptional,t)}setArrowFunctionParameters(e,t,n){super.setArrowFunctionParameters(e,t,n),this.tsDisallowOptionalPattern(e)}parseFunctionBodyAndFinish(e,t,n=!1){this.match(14)&&(e.returnType=this.tsParseTypeOrTypePredicateAnnotation(14));let r=t===`FunctionDeclaration`?`TSDeclareFunction`:t===`ClassMethod`||t===`ClassPrivateMethod`?`TSDeclareMethod`:void 0;return r&&!this.match(5)&&this.isLineTerminator()?this.finishNode(e,r):r===`TSDeclareFunction`&&this.state.isAmbientContext&&(this.raise(J.DeclareFunctionHasImplementation,e),e.declare)?super.parseFunctionBodyAndFinish(e,r,n):(this.tsDisallowOptionalPattern(e),super.parseFunctionBodyAndFinish(e,t,n))}registerFunctionStatementId(e){!e.body&&e.id?this.checkIdentifier(e.id,1024):super.registerFunctionStatementId(e)}tsCheckForInvalidTypeCasts(e){e.forEach(e=>{e?.type===`TSTypeCastExpression`&&this.raise(J.UnexpectedTypeAnnotation,e.typeAnnotation)})}toReferencedList(e,t){return this.tsCheckForInvalidTypeCasts(e),e}parseArrayLike(e,t,n,r){let i=super.parseArrayLike(e,t,n,r);return i.type===`ArrayExpression`&&this.tsCheckForInvalidTypeCasts(i.elements),i}parseSubscript(e,t,n,r){if(!this.hasPrecedingLineBreak()&&this.match(35)){this.state.canStartJSXElement=!1,this.next();let n=this.startNodeAt(t);return n.expression=e,this.finishNode(n,`TSNonNullExpression`)}let i=!1;if(this.match(18)&&this.lookaheadCharCode()===60){if(n)return r.stop=!0,e;r.optionalChainMember=i=!0,this.next()}if(this.match(47)||this.match(51)){let a,o=this.tsTryParseAndCatch(()=>{if(!n&&this.atPossibleAsyncArrow(e)){let e=this.tsTryParseGenericAsyncArrowFunction(t);if(e)return e}let o=this.tsParseTypeArgumentsInExpression();if(!o)return;if(i&&!this.match(10)){a=this.state.curPosition();return}if(xe(this.state.type)){let n=super.parseTaggedTemplateExpression(e,t,r);return n.typeParameters=o,n}if(!n&&this.eat(10)){let n=this.startNodeAt(t);return n.callee=e,n.arguments=this.parseCallExpressionArguments(11),this.tsCheckForInvalidTypeCasts(n.arguments),n.typeParameters=o,r.optionalChainMember&&(n.optional=i),this.finishCallExpression(n,r.optionalChainMember)}let s=this.state.type;if(s===48||s===52||s!==10&&fe(s)&&!this.hasPrecedingLineBreak())return;let c=this.startNodeAt(t);return c.expression=e,c.typeParameters=o,this.finishNode(c,`TSInstantiationExpression`)});if(a&&this.unexpected(a,10),o)return o.type===`TSInstantiationExpression`&&(this.match(16)||this.match(18)&&this.lookaheadCharCode()!==40)&&this.raise(J.InvalidPropertyAccessAfterInstantiationExpression,this.state.startLoc),o}return super.parseSubscript(e,t,n,r)}parseNewCallee(e){var t;super.parseNewCallee(e);let{callee:n}=e;n.type===`TSInstantiationExpression`&&!((t=n.extra)!=null&&t.parenthesized)&&(e.typeParameters=n.typeParameters,e.callee=n.expression)}parseExprOp(e,t,n){let r;if(V(58)>n&&!this.hasPrecedingLineBreak()&&(this.isContextual(93)||(r=this.isContextual(120)))){let i=this.startNodeAt(t);return i.expression=e,i.typeAnnotation=this.tsInType(()=>(this.next(),this.match(75)?(r&&this.raise(_.UnexpectedKeyword,this.state.startLoc,{keyword:`const`}),this.tsParseTypeReference()):this.tsParseType())),this.finishNode(i,r?`TSSatisfiesExpression`:`TSAsExpression`),this.reScan_lt_gt(),this.parseExprOp(i,t,n)}return super.parseExprOp(e,t,n)}checkReservedWord(e,t,n,r){this.state.isAmbientContext||super.checkReservedWord(e,t,n,r)}checkImportReflection(e){super.checkImportReflection(e),e.module&&e.importKind!==`value`&&this.raise(J.ImportReflectionHasImportType,e.specifiers[0].loc.start)}checkDuplicateExports(){}isPotentialImportPhase(e){if(super.isPotentialImportPhase(e))return!0;if(this.isContextual(130)){let t=this.lookaheadCharCode();return e?t===123||t===42:t!==61}return!e&&this.isContextual(87)}applyImportPhase(e,t,n,r){super.applyImportPhase(e,t,n,r),t?e.exportKind=n===`type`?`type`:`value`:e.importKind=n===`type`||n===`typeof`?n:`value`}parseImport(e){if(this.match(134))return e.importKind=`value`,super.parseImport(e);let t;if(L(this.state.type)&&this.lookaheadCharCode()===61)return e.importKind=`value`,this.tsParseImportEqualsDeclaration(e);if(this.isContextual(130)){let n=this.parseMaybeImportPhase(e,!1);if(this.lookaheadCharCode()===61)return this.tsParseImportEqualsDeclaration(e,n);t=super.parseImportSpecifiersAndAfter(e,n)}else t=super.parseImport(e);return t.importKind===`type`&&t.specifiers.length>1&&t.specifiers[0].type===`ImportDefaultSpecifier`&&this.raise(J.TypeImportCannotSpecifyDefaultAndNamed,t),t}parseExport(e,t){if(this.match(83)){this.next();let t=e,n=null;return this.isContextual(130)&&this.isPotentialImportPhase(!1)?n=this.parseMaybeImportPhase(t,!1):t.importKind=`value`,this.tsParseImportEqualsDeclaration(t,n,!0)}else if(this.eat(29)){let t=e;return t.expression=super.parseExpression(),this.semicolon(),this.sawUnambiguousESM=!0,this.finishNode(t,`TSExportAssignment`)}else if(this.eatContextual(93)){let t=e;return this.expectContextual(128),t.id=this.parseIdentifier(),this.semicolon(),this.finishNode(t,`TSNamespaceExportDeclaration`)}else return super.parseExport(e,t)}isAbstractClass(){return this.isContextual(124)&&this.lookahead().type===80}parseExportDefaultExpression(){if(this.isAbstractClass()){let e=this.startNode();return this.next(),e.abstract=!0,this.parseClass(e,!0,!0)}if(this.match(129)){let e=this.tsParseInterfaceDeclaration(this.startNode());if(e)return e}return super.parseExportDefaultExpression()}parseVarStatement(e,t,n=!1){let{isAmbientContext:r}=this.state,i=super.parseVarStatement(e,t,n||r);if(!r)return i;for(let{id:e,init:n}of i.declarations)n&&(t!==`const`||e.typeAnnotation?this.raise(J.InitializerNotAllowedInAmbientContext,n):rn(n,this.hasPlugin(`estree`))||this.raise(J.ConstInitializerMustBeStringOrNumericLiteralOrLiteralEnumReference,n));return i}parseStatementContent(e,t){if(this.match(75)&&this.isLookaheadContextual(`enum`)){let e=this.startNode();return this.expect(75),this.tsParseEnumDeclaration(e,{const:!0})}if(this.isContextual(126))return this.tsParseEnumDeclaration(this.startNode());if(this.isContextual(129)){let e=this.tsParseInterfaceDeclaration(this.startNode());if(e)return e}return super.parseStatementContent(e,t)}parseAccessModifier(){return this.tsParseModifier([`public`,`protected`,`private`])}tsHasSomeModifiers(e,t){return t.some(t=>$t(t)?e.accessibility===t:!!e[t])}tsIsStartOfStaticBlocks(){return this.isContextual(106)&&this.lookaheadCharCode()===123}parseClassMember(e,t,n){let r=[`declare`,`private`,`public`,`protected`,`override`,`abstract`,`readonly`,`static`];this.tsParseModifiers({allowedModifiers:r,disallowedModifiers:[`in`,`out`],stopOnStartOfClassStaticBlock:!0,errorTemplate:J.InvalidModifierOnTypeParameterPositions},t);let i=x(()=>{this.tsIsStartOfStaticBlocks()?(this.next(),this.next(),this.tsHasSomeModifiers(t,r)&&this.raise(J.StaticBlockCannotHaveModifier,this.state.curPosition()),super.parseClassStaticBlock(e,t)):this.parseClassMemberWithIsStatic(e,t,n,!!t.static)},`callParseClassMemberWithIsStatic`);t.declare?this.tsInAmbientContext(i):i()}parseClassMemberWithIsStatic(e,t,n,r){let i=this.tsTryParseIndexSignature(t);if(i){e.body.push(i),t.abstract&&this.raise(J.IndexSignatureHasAbstract,t),t.accessibility&&this.raise(J.IndexSignatureHasAccessibility,t,{modifier:t.accessibility}),t.declare&&this.raise(J.IndexSignatureHasDeclare,t),t.override&&this.raise(J.IndexSignatureHasOverride,t);return}!this.state.inAbstractClass&&t.abstract&&this.raise(J.NonAbstractClassHasAbstractMethod,t),t.override&&(n.hadSuperClass||this.raise(J.OverrideNotInSubClass,t)),super.parseClassMemberWithIsStatic(e,t,n,r)}parsePostMemberNameModifiers(e){this.eat(17)&&(e.optional=!0),e.readonly&&this.match(10)&&this.raise(J.ClassMethodHasReadonly,e),e.declare&&this.match(10)&&this.raise(J.ClassMethodHasDeclare,e)}parseExpressionStatement(e,t,n){return(t.type===`Identifier`?this.tsParseExpressionStatement(e,t,n):void 0)||super.parseExpressionStatement(e,t,n)}shouldParseExportDeclaration(){return this.tsIsDeclarationStart()?!0:super.shouldParseExportDeclaration()}parseConditional(e,t,n){if(!this.state.maybeInArrowParameters||!this.match(17))return super.parseConditional(e,t,n);let r=this.tryParse(()=>super.parseConditional(e,t));return r.node?(r.error&&(this.state=r.failState),r.node):(r.error&&super.setOptionalParametersError(n,r.error),e)}parseParenItem(e,t){let n=super.parseParenItem(e,t);if(this.eat(17)&&(n.optional=!0,this.resetEndLocation(e)),this.match(14)){let n=this.startNodeAt(t);return n.expression=e,n.typeAnnotation=this.tsParseTypeAnnotation(),this.finishNode(n,`TSTypeCastExpression`)}return e}parseExportDeclaration(e){if(!this.state.isAmbientContext&&this.isContextual(125))return this.tsInAmbientContext(()=>this.parseExportDeclaration(e));let t=this.state.startLoc,n=this.eatContextual(125);if(n&&(this.isContextual(125)||!this.shouldParseExportDeclaration()))throw this.raise(J.ExpectedAmbientAfterExportDeclare,this.state.startLoc);let r=L(this.state.type)&&this.tsTryParseExportDeclaration()||super.parseExportDeclaration(e);return r?((r.type===`TSInterfaceDeclaration`||r.type===`TSTypeAliasDeclaration`||n)&&(e.exportKind=`type`),n&&(this.resetStartLocation(r,t),r.declare=!0),r):null}parseClassId(e,t,n,r){if((!t||n)&&this.isContextual(113))return;super.parseClassId(e,t,n,e.declare?1024:8331);let i=this.tsTryParseTypeParameters(this.tsParseInOutConstModifiers);i&&(e.typeParameters=i)}parseClassPropertyAnnotation(e){e.optional||(this.eat(35)?e.definite=!0:this.eat(17)&&(e.optional=!0));let t=this.tsTryParseTypeAnnotation();t&&(e.typeAnnotation=t)}parseClassProperty(e){if(this.parseClassPropertyAnnotation(e),this.state.isAmbientContext&&!(e.readonly&&!e.typeAnnotation)&&this.match(29)&&this.raise(J.DeclareClassFieldHasInitializer,this.state.startLoc),e.abstract&&this.match(29)){let{key:t}=e;this.raise(J.AbstractPropertyHasInitializer,this.state.startLoc,{propertyName:t.type===`Identifier`&&!e.computed?t.name:`[${this.input.slice(this.offsetToSourcePos(t.start),this.offsetToSourcePos(t.end))}]`})}return super.parseClassProperty(e)}parseClassPrivateProperty(e){return e.abstract&&this.raise(J.PrivateElementHasAbstract,e),e.accessibility&&this.raise(J.PrivateElementHasAccessibility,e,{modifier:e.accessibility}),this.parseClassPropertyAnnotation(e),super.parseClassPrivateProperty(e)}parseClassAccessorProperty(e){return this.parseClassPropertyAnnotation(e),e.optional&&this.raise(J.AccessorCannotBeOptional,e),super.parseClassAccessorProperty(e)}pushClassMethod(e,t,n,r,i,a){let o=this.tsTryParseTypeParameters(this.tsParseConstModifier);o&&i&&this.raise(J.ConstructorHasTypeParameters,o);let{declare:s=!1,kind:c}=t;s&&(c===`get`||c===`set`)&&this.raise(J.DeclareAccessor,t,{kind:c}),o&&(t.typeParameters=o),super.pushClassMethod(e,t,n,r,i,a)}pushClassPrivateMethod(e,t,n,r){let i=this.tsTryParseTypeParameters(this.tsParseConstModifier);i&&(t.typeParameters=i),super.pushClassPrivateMethod(e,t,n,r)}declareClassPrivateMethodInScope(e,t){e.type!==`TSDeclareMethod`&&(e.type===`MethodDefinition`&&!hasOwnProperty.call(e.value,`body`)||super.declareClassPrivateMethodInScope(e,t))}parseClassSuper(e){super.parseClassSuper(e),e.superClass&&(this.match(47)||this.match(51))&&(e.superTypeParameters=this.tsParseTypeArgumentsInExpression()),this.eatContextual(113)&&(e.implements=this.tsParseHeritageClause(`implements`))}parseObjPropValue(e,t,n,r,i,a,o){let s=this.tsTryParseTypeParameters(this.tsParseConstModifier);return s&&(e.typeParameters=s),super.parseObjPropValue(e,t,n,r,i,a,o)}parseFunctionParams(e,t){let n=this.tsTryParseTypeParameters(this.tsParseConstModifier);n&&(e.typeParameters=n),super.parseFunctionParams(e,t)}parseVarId(e,t){super.parseVarId(e,t),e.id.type===`Identifier`&&!this.hasPrecedingLineBreak()&&this.eat(35)&&(e.definite=!0);let n=this.tsTryParseTypeAnnotation();n&&(e.id.typeAnnotation=n,this.resetEndLocation(e.id))}parseAsyncArrowFromCallExpression(e,t){return this.match(14)&&(e.returnType=this.tsParseTypeAnnotation()),super.parseAsyncArrowFromCallExpression(e,t)}parseMaybeAssign(e,t){var n,r,i;let a,o,s;if(this.hasPlugin(`jsx`)&&(this.match(143)||this.match(47))){if(a=this.state.clone(),o=this.tryParse(()=>super.parseMaybeAssign(e,t),a),!o.error)return o.node;let{context:n}=this.state,r=n[n.length-1];(r===w.j_oTag||r===w.j_expr)&&n.pop()}if(!((n=o)!=null&&n.error)&&!this.match(47))return super.parseMaybeAssign(e,t);(!a||a===this.state)&&(a=this.state.clone());let c,l=this.tryParse(n=>{var r;c=this.tsParseTypeParameters(this.tsParseConstModifier);let i=super.parseMaybeAssign(e,t);return(i.type!==`ArrowFunctionExpression`||(r=i.extra)!=null&&r.parenthesized)&&n(),c?.params.length!==0&&this.resetStartLocationFromNode(i,c),i.typeParameters=c,i},a);if(!l.error&&!l.aborted)return c&&this.reportReservedArrowTypeParam(c),l.node;if(!o&&(Zt(!this.hasPlugin(`jsx`)),s=this.tryParse(()=>super.parseMaybeAssign(e,t),a),!s.error))return s.node;if((r=o)!=null&&r.node)return this.state=o.failState,o.node;if(l.node)return this.state=l.failState,c&&this.reportReservedArrowTypeParam(c),l.node;if((i=s)!=null&&i.node)return this.state=s.failState,s.node;throw o?.error||l.error||s?.error}reportReservedArrowTypeParam(e){var t;e.params.length===1&&!e.params[0].constraint&&!((t=e.extra)!=null&&t.trailingComma)&&this.getPluginOption(`typescript`,`disallowAmbiguousJSXLike`)&&this.raise(J.ReservedArrowTypeParam,e)}parseMaybeUnary(e,t){return!this.hasPlugin(`jsx`)&&this.match(47)?this.tsParseTypeAssertion():super.parseMaybeUnary(e,t)}parseArrow(e){if(this.match(14)){let t=this.tryParse(e=>{let t=this.tsParseTypeOrTypePredicateAnnotation(14);return(this.canInsertSemicolon()||!this.match(19))&&e(),t});if(t.aborted)return;t.thrown||(t.error&&(this.state=t.failState),e.returnType=t.node)}return super.parseArrow(e)}parseFunctionParamType(e){this.eat(17)&&(e.optional=!0);let t=this.tsTryParseTypeAnnotation();return t&&(e.typeAnnotation=t),this.resetEndLocation(e),e}isAssignable(e,t){switch(e.type){case`TSTypeCastExpression`:return this.isAssignable(e.expression,t);case`TSParameterProperty`:return!0;default:return super.isAssignable(e,t)}}toAssignable(e,t=!1){switch(e.type){case`ParenthesizedExpression`:this.toAssignableParenthesizedExpression(e,t);break;case`TSAsExpression`:case`TSSatisfiesExpression`:case`TSNonNullExpression`:case`TSTypeAssertion`:t?this.expressionScope.recordArrowParameterBindingError(J.UnexpectedTypeCastInParameter,e):this.raise(J.UnexpectedTypeCastInParameter,e),this.toAssignable(e.expression,t);break;case`AssignmentExpression`:!t&&e.left.type===`TSTypeCastExpression`&&(e.left=this.typeCastToParameter(e.left));default:super.toAssignable(e,t)}}toAssignableParenthesizedExpression(e,t){switch(e.expression.type){case`TSAsExpression`:case`TSSatisfiesExpression`:case`TSNonNullExpression`:case`TSTypeAssertion`:case`ParenthesizedExpression`:this.toAssignable(e.expression,t);break;default:super.toAssignable(e,t)}}checkToRestConversion(e,t){switch(e.type){case`TSAsExpression`:case`TSSatisfiesExpression`:case`TSTypeAssertion`:case`TSNonNullExpression`:this.checkToRestConversion(e.expression,!1);break;default:super.checkToRestConversion(e,t)}}isValidLVal(e,t,n){switch(e){case`TSTypeCastExpression`:return!0;case`TSParameterProperty`:return`parameter`;case`TSNonNullExpression`:case`TSInstantiationExpression`:return`expression`;case`TSAsExpression`:case`TSSatisfiesExpression`:case`TSTypeAssertion`:return(n!==64||!t)&&[`expression`,!0];default:return super.isValidLVal(e,t,n)}}parseBindingAtom(){return this.state.type===78?this.parseIdentifier(!0):super.parseBindingAtom()}parseMaybeDecoratorArguments(e){if(this.match(47)||this.match(51)){let t=this.tsParseTypeArgumentsInExpression();if(this.match(10)){let n=super.parseMaybeDecoratorArguments(e);return n.typeParameters=t,n}this.unexpected(null,10)}return super.parseMaybeDecoratorArguments(e)}checkCommaAfterRest(e){return this.state.isAmbientContext&&this.match(12)&&this.lookaheadCharCode()===e?(this.next(),!1):super.checkCommaAfterRest(e)}isClassMethod(){return this.match(47)||super.isClassMethod()}isClassProperty(){return this.match(35)||this.match(14)||super.isClassProperty()}parseMaybeDefault(e,t){let n=super.parseMaybeDefault(e,t);return n.type===`AssignmentPattern`&&n.typeAnnotation&&n.right.start<n.typeAnnotation.start&&this.raise(J.TypeAnnotationAfterAssign,n.typeAnnotation),n}getTokenFromCode(e){if(this.state.inType){if(e===62){this.finishOp(48,1);return}if(e===60){this.finishOp(47,1);return}}super.getTokenFromCode(e)}reScan_lt_gt(){let{type:e}=this.state;e===47?(--this.state.pos,this.readToken_lt()):e===48&&(--this.state.pos,this.readToken_gt())}reScan_lt(){let{type:e}=this.state;return e===51?(this.state.pos-=2,this.finishOp(47,1),47):e}toAssignableList(e,t,n){for(let t=0;t<e.length;t++){let n=e[t];n?.type===`TSTypeCastExpression`&&(e[t]=this.typeCastToParameter(n))}super.toAssignableList(e,t,n)}typeCastToParameter(e){return e.expression.typeAnnotation=e.typeAnnotation,this.resetEndLocation(e.expression,e.typeAnnotation.loc.end),e.expression}shouldParseArrow(e){return this.match(14)?e.every(e=>this.isAssignable(e,!0)):super.shouldParseArrow(e)}shouldParseAsyncArrow(){return this.match(14)||super.shouldParseAsyncArrow()}canHaveLeadingDecorator(){return super.canHaveLeadingDecorator()||this.isAbstractClass()}jsxParseOpeningElementAfterName(e){if(this.match(47)||this.match(51)){let t=this.tsTryParseAndCatch(()=>this.tsParseTypeArgumentsInExpression());t&&(e.typeParameters=t)}return super.jsxParseOpeningElementAfterName(e)}getGetterSetterExpectedParamCount(e){let t=super.getGetterSetterExpectedParamCount(e),n=this.getObjectOrClassMethodParams(e)[0];return n&&this.isThisParam(n)?t+1:t}parseCatchClauseParam(){let e=super.parseCatchClauseParam(),t=this.tsTryParseTypeAnnotation();return t&&(e.typeAnnotation=t,this.resetEndLocation(e)),e}tsInAmbientContext(e){let{isAmbientContext:t,strict:n}=this.state;this.state.isAmbientContext=!0,this.state.strict=!1;try{return e()}finally{this.state.isAmbientContext=t,this.state.strict=n}}parseClass(e,t,n){let r=this.state.inAbstractClass;this.state.inAbstractClass=!!e.abstract;try{return super.parseClass(e,t,n)}finally{this.state.inAbstractClass=r}}tsParseAbstractDeclaration(e,t){if(this.match(80))return e.abstract=!0,this.maybeTakeDecorators(t,this.parseClass(e,!0,!1));if(this.isContextual(129)){if(!this.hasFollowingLineBreak())return e.abstract=!0,this.raise(J.NonClassMethodPropertyHasAbstractModifer,e),this.tsParseInterfaceDeclaration(e)}else this.unexpected(null,80)}parseMethod(e,t,n,r,i,a,o){let s=super.parseMethod(e,t,n,r,i,a,o);if(s.abstract&&(this.hasPlugin(`estree`)?s.value.body:s.body)){let{key:e}=s;this.raise(J.AbstractMethodHasImplementation,s,{methodName:e.type===`Identifier`&&!s.computed?e.name:`[${this.input.slice(this.offsetToSourcePos(e.start),this.offsetToSourcePos(e.end))}]`})}return s}tsParseTypeParameterName(){return this.parseIdentifier().name}shouldParseAsAmbientContext(){return!!this.getPluginOption(`typescript`,`dts`)}parse(){return this.shouldParseAsAmbientContext()&&(this.state.isAmbientContext=!0),super.parse()}getExpression(){return this.shouldParseAsAmbientContext()&&(this.state.isAmbientContext=!0),super.getExpression()}parseExportSpecifier(e,t,n,r){return!t&&r?(this.parseTypeOnlyImportExportSpecifier(e,!1,n),this.finishNode(e,`ExportSpecifier`)):(e.exportKind=`value`,super.parseExportSpecifier(e,t,n,r))}parseImportSpecifier(e,t,n,r,i){return!t&&r?(this.parseTypeOnlyImportExportSpecifier(e,!0,n),this.finishNode(e,`ImportSpecifier`)):(e.importKind=`value`,super.parseImportSpecifier(e,t,n,r,n?4098:4096))}parseTypeOnlyImportExportSpecifier(e,t,n){let r=t?`imported`:`local`,i=t?`local`:`exported`,a=e[r],o,s=!1,c=!0,l=a.loc.start;if(this.isContextual(93)){let e=this.parseIdentifier();if(this.isContextual(93)){let n=this.parseIdentifier();le(this.state.type)?(s=!0,a=e,o=t?this.parseIdentifier():this.parseModuleExportName(),c=!1):(o=n,c=!1)}else le(this.state.type)?(c=!1,o=t?this.parseIdentifier():this.parseModuleExportName()):(s=!0,a=e)}else le(this.state.type)&&(s=!0,t?(a=this.parseIdentifier(!0),this.isContextual(93)||this.checkReservedWord(a.name,a.loc.start,!0,!0)):a=this.parseModuleExportName());s&&n&&this.raise(t?J.TypeModifierIsUsedInTypeImports:J.TypeModifierIsUsedInTypeExports,l),e[r]=a,e[i]=o;let u=t?`importKind`:`exportKind`;e[u]=s?`type`:`value`,c&&this.eatContextual(93)&&(e[i]=t?this.parseIdentifier():this.parseModuleExportName()),e[i]||(e[i]=Pt(e[r])),t&&this.checkIdentifier(e[i],s?4098:4096)}},`typescript`);function nn(e){if(e.type!==`MemberExpression`)return!1;let{computed:t,property:n}=e;return t&&n.type!==`StringLiteral`&&(n.type!==`TemplateLiteral`||n.expressions.length>0)?!1:sn(e.object)}x(nn,`isPossiblyLiteralEnum`);function rn(e,t){var n;let{type:r}=e;if((n=e.extra)!=null&&n.parenthesized)return!1;if(t){if(r===`Literal`){let{value:t}=e;if(typeof t==`string`||typeof t==`boolean`)return!0}}else if(r===`StringLiteral`||r===`BooleanLiteral`)return!0;return!!(an(e,t)||on(e,t)||r===`TemplateLiteral`&&e.expressions.length===0||nn(e))}x(rn,`isValidAmbientConstInitializer`);function an(e,t){return t?e.type===`Literal`&&(typeof e.value==`number`||`bigint`in e):e.type===`NumericLiteral`||e.type===`BigIntLiteral`}x(an,`isNumber`);function on(e,t){if(e.type===`UnaryExpression`){let{operator:n,argument:r}=e;if(n===`-`&&an(r,t))return!0}return!1}x(on,`isNegativeNumber`);function sn(e){return e.type===`Identifier`?!0:e.type!==`MemberExpression`||e.computed?!1:sn(e.object)}x(sn,`isUncomputedMemberExpressionChain`);var cn=g`placeholders`({ClassNameIsRequired:`A class name is required.`,UnexpectedSpace:`Unexpected space in placeholder.`}),ln=x(e=>class extends e{static{x(this,`PlaceholdersParserMixin`)}parsePlaceholder(e){if(this.match(133)){let t=this.startNode();return this.next(),this.assertNoSpace(),t.name=super.parseIdentifier(!0),this.assertNoSpace(),this.expect(133),this.finishPlaceholder(t,e)}}finishPlaceholder(e,t){let n=e;return(!n.expectedNode||!n.type)&&(n=this.finishNode(n,`Placeholder`)),n.expectedNode=t,n}getTokenFromCode(e){e===37&&this.input.charCodeAt(this.state.pos+1)===37?this.finishOp(133,2):super.getTokenFromCode(e)}parseExprAtom(e){return this.parsePlaceholder(`Expression`)||super.parseExprAtom(e)}parseIdentifier(e){return this.parsePlaceholder(`Identifier`)||super.parseIdentifier(e)}checkReservedWord(e,t,n,r){e!==void 0&&super.checkReservedWord(e,t,n,r)}parseBindingAtom(){return this.parsePlaceholder(`Pattern`)||super.parseBindingAtom()}isValidLVal(e,t,n){return e===`Placeholder`||super.isValidLVal(e,t,n)}toAssignable(e,t){e&&e.type===`Placeholder`&&e.expectedNode===`Expression`?e.expectedNode=`Pattern`:super.toAssignable(e,t)}chStartsBindingIdentifier(e,t){return!!(super.chStartsBindingIdentifier(e,t)||this.lookahead().type===133)}verifyBreakContinue(e,t){e.label&&e.label.type===`Placeholder`||super.verifyBreakContinue(e,t)}parseExpressionStatement(e,t){var n;if(t.type!==`Placeholder`||(n=t.extra)!=null&&n.parenthesized)return super.parseExpressionStatement(e,t);if(this.match(14)){let n=e;return n.label=this.finishPlaceholder(t,`Identifier`),this.next(),n.body=super.parseStatementOrSloppyAnnexBFunctionDeclaration(),this.finishNode(n,`LabeledStatement`)}this.semicolon();let r=e;return r.name=t.name,this.finishPlaceholder(r,`Statement`)}parseBlock(e,t,n){return this.parsePlaceholder(`BlockStatement`)||super.parseBlock(e,t,n)}parseFunctionId(e){return this.parsePlaceholder(`Identifier`)||super.parseFunctionId(e)}parseClass(e,t,n){let r=t?`ClassDeclaration`:`ClassExpression`;this.next();let i=this.state.strict,a=this.parsePlaceholder(`Identifier`);if(a)if(this.match(81)||this.match(133)||this.match(5))e.id=a;else if(n||!t)return e.id=null,e.body=this.finishPlaceholder(a,`ClassBody`),this.finishNode(e,r);else throw this.raise(cn.ClassNameIsRequired,this.state.startLoc);else this.parseClassId(e,t,n);return super.parseClassSuper(e),e.body=this.parsePlaceholder(`ClassBody`)||super.parseClassBody(!!e.superClass,i),this.finishNode(e,r)}parseExport(e,t){let n=this.parsePlaceholder(`Identifier`);if(!n)return super.parseExport(e,t);let r=e;if(!this.isContextual(98)&&!this.match(12))return r.specifiers=[],r.source=null,r.declaration=this.finishPlaceholder(n,`Declaration`),this.finishNode(r,`ExportNamedDeclaration`);this.expectPlugin(`exportDefaultFrom`);let i=this.startNode();return i.exported=n,r.specifiers=[this.finishNode(i,`ExportDefaultSpecifier`)],super.parseExport(r,t)}isExportDefaultSpecifier(){if(this.match(65)){let e=this.nextTokenStart();if(this.isUnparsedContextual(e,`from`)&&this.input.startsWith(ye(133),this.nextTokenStartSince(e+4)))return!0}return super.isExportDefaultSpecifier()}maybeParseExportDefaultSpecifier(e,t){var n;return(n=e.specifiers)!=null&&n.length?!0:super.maybeParseExportDefaultSpecifier(e,t)}checkExport(e){let{specifiers:t}=e;t!=null&&t.length&&(e.specifiers=t.filter(e=>e.exported.type===`Placeholder`)),super.checkExport(e),e.specifiers=t}parseImport(e){let t=this.parsePlaceholder(`Identifier`);if(!t)return super.parseImport(e);if(e.specifiers=[],!this.isContextual(98)&&!this.match(12))return e.source=this.finishPlaceholder(t,`StringLiteral`),this.semicolon(),this.finishNode(e,`ImportDeclaration`);let n=this.startNodeAtNode(t);return n.local=t,e.specifiers.push(this.finishNode(n,`ImportDefaultSpecifier`)),this.eat(12)&&(this.maybeParseStarImportSpecifier(e)||this.parseNamedImportSpecifiers(e)),this.expectContextual(98),e.source=this.parseImportSource(),this.semicolon(),this.finishNode(e,`ImportDeclaration`)}parseImportSource(){return this.parsePlaceholder(`StringLiteral`)||super.parseImportSource()}assertNoSpace(){this.state.start>this.offsetToSourcePos(this.state.lastTokEndLoc.index)&&this.raise(cn.UnexpectedSpace,this.state.lastTokEndLoc)}},`placeholders`),un=x(e=>class extends e{static{x(this,`V8IntrinsicMixin`)}parseV8Intrinsic(){if(this.match(54)){let e=this.state.startLoc,t=this.startNode();if(this.next(),L(this.state.type)){let e=this.parseIdentifierName(),n=this.createIdentifier(t,e);if(n.type=`V8IntrinsicIdentifier`,this.match(10))return n}this.unexpected(e)}}parseExprAtom(e){return this.parseV8Intrinsic()||super.parseExprAtom(e)}},`v8intrinsic`),dn=[`minimal`,`fsharp`,`hack`,`smart`],fn=[`^^`,`@@`,`^`,`%`,`#`];function pn(e){if(e.has(`decorators`)){if(e.has(`decorators-legacy`))throw Error(`Cannot use the decorators and decorators-legacy plugin together`);let t=e.get(`decorators`).decoratorsBeforeExport;if(t!=null&&typeof t!=`boolean`)throw Error(`'decoratorsBeforeExport' must be a boolean, if specified.`);let n=e.get(`decorators`).allowCallParenthesized;if(n!=null&&typeof n!=`boolean`)throw Error(`'allowCallParenthesized' must be a boolean.`)}if(e.has(`flow`)&&e.has(`typescript`))throw Error(`Cannot combine flow and typescript plugins.`);if(e.has(`placeholders`)&&e.has(`v8intrinsic`))throw Error(`Cannot combine placeholders and v8intrinsic plugins.`);if(e.has(`pipelineOperator`)){let t=e.get(`pipelineOperator`).proposal;if(!dn.includes(t)){let e=dn.map(e=>`"${e}"`).join(`, `);throw Error(`"pipelineOperator" requires "proposal" option whose value must be one of: ${e}.`)}let n=e.get(`recordAndTuple`)?.syntaxType===`hash`;if(t===`hack`){if(e.has(`placeholders`))throw Error(`Cannot combine placeholders plugin and Hack-style pipes.`);if(e.has(`v8intrinsic`))throw Error(`Cannot combine v8intrinsic plugin and Hack-style pipes.`);let t=e.get(`pipelineOperator`).topicToken;if(!fn.includes(t)){let e=fn.map(e=>`"${e}"`).join(`, `);throw Error(`"pipelineOperator" in "proposal": "hack" mode also requires a "topicToken" option whose value must be one of: ${e}.`)}if(t===`#`&&n)throw Error(`Plugin conflict between \`["pipelineOperator", { proposal: "hack", topicToken: "#" }]\` and \`${JSON.stringify([`recordAndTuple`,e.get(`recordAndTuple`)])}\`.`)}else if(t===`smart`&&n)throw Error(`Plugin conflict between \`["pipelineOperator", { proposal: "smart" }]\` and \`${JSON.stringify([`recordAndTuple`,e.get(`recordAndTuple`)])}\`.`)}if(e.has(`moduleAttributes`)){if(e.has(`deprecatedImportAssert`)||e.has(`importAssertions`))throw Error(`Cannot combine importAssertions, deprecatedImportAssert and moduleAttributes plugins.`);if(e.get(`moduleAttributes`).version!==`may-2020`)throw Error(`The 'moduleAttributes' plugin requires a 'version' option, representing the last proposal update. Currently, the only supported value is 'may-2020'.`)}if(e.has(`importAssertions`)&&e.has(`deprecatedImportAssert`))throw Error(`Cannot combine importAssertions and deprecatedImportAssert plugins.`);if(!e.has(`deprecatedImportAssert`)&&e.has(`importAttributes`)&&e.get(`importAttributes`).deprecatedAssertSyntax&&e.set(`deprecatedImportAssert`,{}),e.has(`recordAndTuple`)){let t=e.get(`recordAndTuple`).syntaxType;if(t!=null){let e=[`hash`,`bar`];if(!e.includes(t))throw Error(`The 'syntaxType' option of the 'recordAndTuple' plugin must be one of: `+e.map(e=>`'${e}'`).join(`, `))}}if(e.has(`asyncDoExpressions`)&&!e.has(`doExpressions`)){let e=Error(`'asyncDoExpressions' requires 'doExpressions', please add 'doExpressions' to parser plugins.`);throw e.missingPlugins=`doExpressions`,e}if(e.has(`optionalChainingAssign`)&&e.get(`optionalChainingAssign`).version!==`2023-07`)throw Error(`The 'optionalChainingAssign' plugin requires a 'version' option, representing the last proposal update. Currently, the only supported value is '2023-07'.`)}x(pn,`validatePlugins`);var mn={estree:S,jsx:Gt,flow:Bt,typescript:tn,v8intrinsic:un,placeholders:ln},hn=Object.keys(mn);function gn(){return{sourceType:`script`,sourceFilename:void 0,startIndex:0,startColumn:0,startLine:1,allowAwaitOutsideFunction:!1,allowReturnOutsideFunction:!1,allowNewTargetOutsideFunction:!1,allowImportExportEverywhere:!1,allowSuperOutsideMethod:!1,allowUndeclaredExports:!1,plugins:[],strictMode:null,ranges:!1,tokens:!1,createImportExpressions:!1,createParenthesizedExpressions:!1,errorRecovery:!1,attachComment:!0,annexB:!0}}x(gn,`createDefaultOptions`);function _n(e){let t=gn();if(e==null)return t;if(e.annexB!=null&&e.annexB!==!1)throw Error("The `annexB` option can only be set to `false`.");for(let n of Object.keys(t))e[n]!=null&&(t[n]=e[n]);if(t.startLine===1)e.startIndex==null&&t.startColumn>0?t.startIndex=t.startColumn:e.startColumn==null&&t.startIndex>0&&(t.startColumn=t.startIndex);else if((e.startColumn==null||e.startIndex==null)&&e.startIndex!=null)throw Error("With a `startLine > 1` you must also specify `startIndex` and `startColumn`.");return t}x(_n,`getOptions`);var vn=class extends Yt{static{x(this,`ExpressionParser`)}checkProto(e,t,n,r){if(e.type===`SpreadElement`||this.isObjectMethod(e)||e.computed||e.shorthand)return;let i=e.key;if((i.type===`Identifier`?i.name:i.value)===`__proto__`){if(t){this.raise(_.RecordNoProto,i);return}n.used&&(r?r.doubleProtoLoc===null&&(r.doubleProtoLoc=i.loc.start):this.raise(_.DuplicateProto,i)),n.used=!0}}shouldExitDescending(e,t){return e.type===`ArrowFunctionExpression`&&this.offsetToSourcePos(e.start)===t}getExpression(){this.enterInitialScopes(),this.nextToken();let e=this.parseExpression();return this.match(140)||this.unexpected(),this.finalizeRemainingComments(),e.comments=this.comments,e.errors=this.state.errors,this.options.tokens&&(e.tokens=this.tokens),e}parseExpression(e,t){return e?this.disallowInAnd(()=>this.parseExpressionBase(t)):this.allowInAnd(()=>this.parseExpressionBase(t))}parseExpressionBase(e){let t=this.state.startLoc,n=this.parseMaybeAssign(e);if(this.match(12)){let r=this.startNodeAt(t);for(r.expressions=[n];this.eat(12);)r.expressions.push(this.parseMaybeAssign(e));return this.toReferencedList(r.expressions),this.finishNode(r,`SequenceExpression`)}return n}parseMaybeAssignDisallowIn(e,t){return this.disallowInAnd(()=>this.parseMaybeAssign(e,t))}parseMaybeAssignAllowIn(e,t){return this.allowInAnd(()=>this.parseMaybeAssign(e,t))}setOptionalParametersError(e,t){e.optionalParametersLoc=t?.loc??this.state.startLoc}parseMaybeAssign(e,t){let n=this.state.startLoc;if(this.isContextual(108)&&this.prodParam.hasYield){let e=this.parseYield();return t&&(e=t.call(this,e,n)),e}let r;e?r=!1:(e=new At,r=!0);let{type:i}=this.state;(i===10||L(i))&&(this.state.potentialArrowAt=this.state.start);let a=this.parseMaybeConditional(e);if(t&&(a=t.call(this,a,n)),R(this.state.type)){let t=this.startNodeAt(n);if(t.operator=this.state.value,this.match(29)){this.toAssignable(a,!0),t.left=a;let r=n.index;e.doubleProtoLoc!=null&&e.doubleProtoLoc.index>=r&&(e.doubleProtoLoc=null),e.shorthandAssignLoc!=null&&e.shorthandAssignLoc.index>=r&&(e.shorthandAssignLoc=null),e.privateKeyLoc!=null&&e.privateKeyLoc.index>=r&&(this.checkDestructuringPrivate(e),e.privateKeyLoc=null)}else t.left=a;return this.next(),t.right=this.parseMaybeAssign(),this.checkLVal(a,this.finishNode(t,`AssignmentExpression`)),t}else r&&this.checkExpressionErrors(e,!0);return a}parseMaybeConditional(e){let t=this.state.startLoc,n=this.state.potentialArrowAt,r=this.parseExprOps(e);return this.shouldExitDescending(r,n)?r:this.parseConditional(r,t,e)}parseConditional(e,t,n){if(this.eat(17)){let n=this.startNodeAt(t);return n.test=e,n.consequent=this.parseMaybeAssignAllowIn(),this.expect(14),n.alternate=this.parseMaybeAssign(),this.finishNode(n,`ConditionalExpression`)}return e}parseMaybeUnaryOrPrivate(e){return this.match(139)?this.parsePrivateName():this.parseMaybeUnary(e)}parseExprOps(e){let t=this.state.startLoc,n=this.state.potentialArrowAt,r=this.parseMaybeUnaryOrPrivate(e);return this.shouldExitDescending(r,n)?r:this.parseExprOp(r,t,-1)}parseExprOp(e,t,n){if(this.isPrivateName(e)){let t=this.getPrivateNameSV(e);(n>=V(58)||!this.prodParam.hasIn||!this.match(58))&&this.raise(_.PrivateInExpectedIn,e,{identifierName:t}),this.classScope.usePrivateName(t,e.loc.start)}let r=this.state.type;if(ge(r)&&(this.prodParam.hasIn||!this.match(58))){let i=V(r);if(i>n){if(r===39){if(this.expectPlugin(`pipelineOperator`),this.state.inFSharpPipelineDirectBody)return e;this.checkPipelineAtInfixOperator(e,t)}let a=this.startNodeAt(t);a.left=e,a.operator=this.state.value;let o=r===41||r===42,s=r===40;if(s&&(i=V(42)),this.next(),r===39&&this.hasPlugin([`pipelineOperator`,{proposal:`minimal`}])&&this.state.type===96&&this.prodParam.hasAwait)throw this.raise(_.UnexpectedAwaitAfterPipelineBody,this.state.startLoc);a.right=this.parseExprOpRightExpr(r,i);let c=this.finishNode(a,o||s?`LogicalExpression`:`BinaryExpression`),l=this.state.type;if(s&&(l===41||l===42)||o&&l===40)throw this.raise(_.MixingCoalesceWithLogical,this.state.startLoc);return this.parseExprOp(c,t,n)}}return e}parseExprOpRightExpr(e,t){let n=this.state.startLoc;switch(e){case 39:switch(this.getPluginOption(`pipelineOperator`,`proposal`)){case`hack`:return this.withTopicBindingContext(()=>this.parseHackPipeBody());case`smart`:return this.withTopicBindingContext(()=>{if(this.prodParam.hasYield&&this.isContextual(108))throw this.raise(_.PipeBodyIsTighter,this.state.startLoc);return this.parseSmartPipelineBodyInStyle(this.parseExprOpBaseRightExpr(e,t),n)});case`fsharp`:return this.withSoloAwaitPermittingContext(()=>this.parseFSharpPipelineBody(t))}default:return this.parseExprOpBaseRightExpr(e,t)}}parseExprOpBaseRightExpr(e,t){let n=this.state.startLoc;return this.parseExprOp(this.parseMaybeUnaryOrPrivate(),n,be(e)?t-1:t)}parseHackPipeBody(){var e;let{startLoc:t}=this.state,n=this.parseMaybeAssign();return d.has(n.type)&&!((e=n.extra)!=null&&e.parenthesized)&&this.raise(_.PipeUnparenthesizedBody,t,{type:n.type}),this.topicReferenceWasUsedInCurrentContext()||this.raise(_.PipeTopicUnused,t),n}checkExponentialAfterUnary(e){this.match(57)&&this.raise(_.UnexpectedTokenUnaryExponentiation,e.argument)}parseMaybeUnary(e,t){let n=this.state.startLoc,r=this.isContextual(96);if(r&&this.recordAwaitIfAllowed()){this.next();let e=this.parseAwait(n);return t||this.checkExponentialAfterUnary(e),e}let i=this.match(34),a=this.startNode();if(z(this.state.type)){a.operator=this.state.value,a.prefix=!0,this.match(72)&&this.expectPlugin(`throwExpressions`);let n=this.match(89);if(this.next(),a.argument=this.parseMaybeUnary(null,!0),this.checkExpressionErrors(e,!0),this.state.strict&&n){let e=a.argument;e.type===`Identifier`?this.raise(_.StrictDelete,a):this.hasPropertyAsPrivateName(e)&&this.raise(_.DeletePrivateField,a)}if(!i)return t||this.checkExponentialAfterUnary(a),this.finishNode(a,`UnaryExpression`)}let o=this.parseUpdate(a,i,e);if(r){let{type:e}=this.state;if((this.hasPlugin(`v8intrinsic`)?fe(e):fe(e)&&!this.match(54))&&!this.isAmbiguousAwait())return this.raiseOverwrite(_.AwaitNotInAsyncContext,n),this.parseAwait(n)}return o}parseUpdate(e,t,n){if(t){let t=e;return this.checkLVal(t.argument,this.finishNode(t,`UpdateExpression`)),e}let r=this.state.startLoc,i=this.parseExprSubscripts(n);if(this.checkExpressionErrors(n,!1))return i;for(;_e(this.state.type)&&!this.canInsertSemicolon();){let e=this.startNodeAt(r);e.operator=this.state.value,e.prefix=!1,e.argument=i,this.next(),this.checkLVal(i,i=this.finishNode(e,`UpdateExpression`))}return i}parseExprSubscripts(e){let t=this.state.startLoc,n=this.state.potentialArrowAt,r=this.parseExprAtom(e);return this.shouldExitDescending(r,n)?r:this.parseSubscripts(r,t)}parseSubscripts(e,t,n){let r={optionalChainMember:!1,maybeAsyncArrow:this.atPossibleAsyncArrow(e),stop:!1};do e=this.parseSubscript(e,t,n,r),r.maybeAsyncArrow=!1;while(!r.stop);return e}parseSubscript(e,t,n,r){let{type:i}=this.state;if(!n&&i===15)return this.parseBind(e,t,n,r);if(xe(i))return this.parseTaggedTemplateExpression(e,t,r);let a=!1;if(i===18){if(n&&(this.raise(_.OptionalChainingNoNew,this.state.startLoc),this.lookaheadCharCode()===40))return r.stop=!0,e;r.optionalChainMember=a=!0,this.next()}if(!n&&this.match(10))return this.parseCoverCallAndAsyncArrowHead(e,t,r,a);{let n=this.eat(0);return n||a||this.eat(16)?this.parseMember(e,t,r,n,a):(r.stop=!0,e)}}parseMember(e,t,n,r,i){let a=this.startNodeAt(t);return a.object=e,a.computed=r,r?(a.property=this.parseExpression(),this.expect(3)):this.match(139)?(e.type===`Super`&&this.raise(_.SuperPrivateField,t),this.classScope.usePrivateName(this.state.value,this.state.startLoc),a.property=this.parsePrivateName()):a.property=this.parseIdentifier(!0),n.optionalChainMember?(a.optional=i,this.finishNode(a,`OptionalMemberExpression`)):this.finishNode(a,`MemberExpression`)}parseBind(e,t,n,r){let i=this.startNodeAt(t);return i.object=e,this.next(),i.callee=this.parseNoCallExpr(),r.stop=!0,this.parseSubscripts(this.finishNode(i,`BindExpression`),t,n)}parseCoverCallAndAsyncArrowHead(e,t,n,r){let i=this.state.maybeInArrowParameters,a=null;this.state.maybeInArrowParameters=!0,this.next();let o=this.startNodeAt(t);o.callee=e;let{maybeAsyncArrow:s,optionalChainMember:c}=n;s&&(this.expressionScope.enter(Tt()),a=new At),c&&(o.optional=r),r?o.arguments=this.parseCallExpressionArguments(11):o.arguments=this.parseCallExpressionArguments(11,e.type!==`Super`,o,a);let l=this.finishCallExpression(o,c);return s&&this.shouldParseAsyncArrow()&&!r?(n.stop=!0,this.checkDestructuringPrivate(a),this.expressionScope.validateAsPattern(),this.expressionScope.exit(),l=this.parseAsyncArrowFromCallExpression(this.startNodeAt(t),l)):(s&&(this.checkExpressionErrors(a,!0),this.expressionScope.exit()),this.toReferencedArguments(l)),this.state.maybeInArrowParameters=i,l}toReferencedArguments(e,t){this.toReferencedListDeep(e.arguments,t)}parseTaggedTemplateExpression(e,t,n){let r=this.startNodeAt(t);return r.tag=e,r.quasi=this.parseTemplate(!0),n.optionalChainMember&&this.raise(_.OptionalChainingNoTemplate,t),this.finishNode(r,`TaggedTemplateExpression`)}atPossibleAsyncArrow(e){return e.type===`Identifier`&&e.name===`async`&&this.state.lastTokEndLoc.index===e.end&&!this.canInsertSemicolon()&&e.end-e.start===5&&this.offsetToSourcePos(e.start)===this.state.potentialArrowAt}finishCallExpression(e,t){if(e.callee.type===`Import`)if(e.arguments.length===0||e.arguments.length>2)this.raise(_.ImportCallArity,e);else for(let t of e.arguments)t.type===`SpreadElement`&&this.raise(_.ImportCallSpreadArgument,t);return this.finishNode(e,t?`OptionalCallExpression`:`CallExpression`)}parseCallExpressionArguments(e,t,n,r){let i=[],a=!0,o=this.state.inFSharpPipelineDirectBody;for(this.state.inFSharpPipelineDirectBody=!1;!this.eat(e);){if(a)a=!1;else if(this.expect(12),this.match(e)){n&&this.addTrailingCommaExtraToNode(n),this.next();break}i.push(this.parseExprListItem(!1,r,t))}return this.state.inFSharpPipelineDirectBody=o,i}shouldParseAsyncArrow(){return this.match(19)&&!this.canInsertSemicolon()}parseAsyncArrowFromCallExpression(e,t){return this.resetPreviousNodeTrailingComments(t),this.expect(19),this.parseArrowExpression(e,t.arguments,!0,t.extra?.trailingCommaLoc),t.innerComments&&Xe(e,t.innerComments),t.callee.trailingComments&&Xe(e,t.callee.trailingComments),e}parseNoCallExpr(){let e=this.state.startLoc;return this.parseSubscripts(this.parseExprAtom(),e,!0)}parseExprAtom(e){let t,n=null,{type:r}=this.state;switch(r){case 79:return this.parseSuper();case 83:return t=this.startNode(),this.next(),this.match(16)?this.parseImportMetaProperty(t):this.match(10)?this.options.createImportExpressions?this.parseImportCall(t):this.finishNode(t,`Import`):(this.raise(_.UnsupportedImport,this.state.lastTokStartLoc),this.finishNode(t,`Import`));case 78:return t=this.startNode(),this.next(),this.finishNode(t,`ThisExpression`);case 90:return this.parseDo(this.startNode(),!1);case 56:case 31:return this.readRegexp(),this.parseRegExpLiteral(this.state.value);case 135:return this.parseNumericLiteral(this.state.value);case 136:return this.parseBigIntLiteral(this.state.value);case 134:return this.parseStringLiteral(this.state.value);case 84:return this.parseNullLiteral();case 85:return this.parseBooleanLiteral(!0);case 86:return this.parseBooleanLiteral(!1);case 10:{let e=this.state.potentialArrowAt===this.state.start;return this.parseParenAndDistinguishExpression(e)}case 2:case 1:return this.parseArrayLike(this.state.type===2?4:3,!1,!0);case 0:return this.parseArrayLike(3,!0,!1,e);case 6:case 7:return this.parseObjectLike(this.state.type===6?9:8,!1,!0);case 5:return this.parseObjectLike(8,!1,!1,e);case 68:return this.parseFunctionOrFunctionSent();case 26:n=this.parseDecorators();case 80:return this.parseClass(this.maybeTakeDecorators(n,this.startNode()),!1);case 77:return this.parseNewOrNewTarget();case 25:case 24:return this.parseTemplate(!1);case 15:{t=this.startNode(),this.next(),t.object=null;let e=t.callee=this.parseNoCallExpr();if(e.type===`MemberExpression`)return this.finishNode(t,`BindExpression`);throw this.raise(_.UnsupportedBind,e)}case 139:return this.raise(_.PrivateInExpectedIn,this.state.startLoc,{identifierName:this.state.value}),this.parsePrivateName();case 33:return this.parseTopicReferenceThenEqualsSign(54,`%`);case 32:return this.parseTopicReferenceThenEqualsSign(44,`^`);case 37:case 38:return this.parseTopicReference(`hack`);case 44:case 54:case 27:{let e=this.getPluginOption(`pipelineOperator`,`proposal`);if(e)return this.parseTopicReference(e);this.unexpected();break}case 47:{let e=this.input.codePointAt(this.nextTokenStart());Ae(e)||e===62?this.expectOnePlugin([`jsx`,`flow`,`typescript`]):this.unexpected();break}default:if(r===137)return this.parseDecimalLiteral(this.state.value);if(L(r)){if(this.isContextual(127)&&this.lookaheadInLineCharCode()===123)return this.parseModuleExpression();let e=this.state.potentialArrowAt===this.state.start,t=this.state.containsEsc,n=this.parseIdentifier();if(!t&&n.name===`async`&&!this.canInsertSemicolon()){let{type:e}=this.state;if(e===68)return this.resetPreviousNodeTrailingComments(n),this.next(),this.parseAsyncFunctionExpression(this.startNodeAtNode(n));if(L(e))return this.lookaheadCharCode()===61?this.parseAsyncArrowUnaryFunction(this.startNodeAtNode(n)):n;if(e===90)return this.resetPreviousNodeTrailingComments(n),this.parseDo(this.startNodeAtNode(n),!0)}return e&&this.match(19)&&!this.canInsertSemicolon()?(this.next(),this.parseArrowExpression(this.startNodeAtNode(n),[n],!1)):n}else this.unexpected()}}parseTopicReferenceThenEqualsSign(e,t){let n=this.getPluginOption(`pipelineOperator`,`proposal`);if(n)return this.state.type=e,this.state.value=t,this.state.pos--,this.state.end--,this.state.endLoc=i(this.state.endLoc,-1),this.parseTopicReference(n);this.unexpected()}parseTopicReference(e){let t=this.startNode(),n=this.state.startLoc,r=this.state.type;return this.next(),this.finishTopicReference(t,n,e,r)}finishTopicReference(e,t,n,r){if(this.testTopicReferenceConfiguration(n,t,r)){let r=n===`smart`?`PipelinePrimaryTopicReference`:`TopicReference`;return this.topicReferenceIsAllowedInCurrentContext()||this.raise(n===`smart`?_.PrimaryTopicNotAllowed:_.PipeTopicUnbound,t),this.registerTopicReference(),this.finishNode(e,r)}else throw this.raise(_.PipeTopicUnconfiguredToken,t,{token:ye(r)})}testTopicReferenceConfiguration(e,t,n){switch(e){case`hack`:return this.hasPlugin([`pipelineOperator`,{topicToken:ye(n)}]);case`smart`:return n===27;default:throw this.raise(_.PipeTopicRequiresHackPipes,t)}}parseAsyncArrowUnaryFunction(e){this.prodParam.enter(Ot(!0,this.prodParam.hasYield));let t=[this.parseIdentifier()];return this.prodParam.exit(),this.hasPrecedingLineBreak()&&this.raise(_.LineTerminatorBeforeArrow,this.state.curPosition()),this.expect(19),this.parseArrowExpression(e,t,!0)}parseDo(e,t){this.expectPlugin(`doExpressions`),t&&this.expectPlugin(`asyncDoExpressions`),e.async=t,this.next();let n=this.state.labels;return this.state.labels=[],t?(this.prodParam.enter(2),e.body=this.parseBlock(),this.prodParam.exit()):e.body=this.parseBlock(),this.state.labels=n,this.finishNode(e,`DoExpression`)}parseSuper(){let e=this.startNode();return this.next(),this.match(10)&&!this.scope.allowDirectSuper&&!this.options.allowSuperOutsideMethod?this.raise(_.SuperNotAllowed,e):!this.scope.allowSuper&&!this.options.allowSuperOutsideMethod&&this.raise(_.UnexpectedSuper,e),!this.match(10)&&!this.match(0)&&!this.match(16)&&this.raise(_.UnsupportedSuper,e),this.finishNode(e,`Super`)}parsePrivateName(){let e=this.startNode(),t=this.startNodeAt(i(this.state.startLoc,1)),n=this.state.value;return this.next(),e.id=this.createIdentifier(t,n),this.finishNode(e,`PrivateName`)}parseFunctionOrFunctionSent(){let e=this.startNode();if(this.next(),this.prodParam.hasYield&&this.match(16)){let t=this.createIdentifier(this.startNodeAtNode(e),`function`);return this.next(),this.match(103)?this.expectPlugin(`functionSent`):this.hasPlugin(`functionSent`)||this.unexpected(),this.parseMetaProperty(e,t,`sent`)}return this.parseFunction(e)}parseMetaProperty(e,t,n){e.meta=t;let r=this.state.containsEsc;return e.property=this.parseIdentifier(!0),(e.property.name!==n||r)&&this.raise(_.UnsupportedMetaProperty,e.property,{target:t.name,onlyValidPropertyName:n}),this.finishNode(e,`MetaProperty`)}parseImportMetaProperty(e){let t=this.createIdentifier(this.startNodeAtNode(e),`import`);if(this.next(),this.isContextual(101))this.inModule||this.raise(_.ImportMetaOutsideModule,t),this.sawUnambiguousESM=!0;else if(this.isContextual(105)||this.isContextual(97)){let t=this.isContextual(105);if(t||this.unexpected(),this.expectPlugin(t?`sourcePhaseImports`:`deferredImportEvaluation`),!this.options.createImportExpressions)throw this.raise(_.DynamicImportPhaseRequiresImportExpressions,this.state.startLoc,{phase:this.state.value});return this.next(),e.phase=t?`source`:`defer`,this.parseImportCall(e)}return this.parseMetaProperty(e,t,`meta`)}parseLiteralAtNode(e,t,n){return this.addExtra(n,`rawValue`,e),this.addExtra(n,`raw`,this.input.slice(this.offsetToSourcePos(n.start),this.state.end)),n.value=e,this.next(),this.finishNode(n,t)}parseLiteral(e,t){let n=this.startNode();return this.parseLiteralAtNode(e,t,n)}parseStringLiteral(e){return this.parseLiteral(e,`StringLiteral`)}parseNumericLiteral(e){return this.parseLiteral(e,`NumericLiteral`)}parseBigIntLiteral(e){return this.parseLiteral(e,`BigIntLiteral`)}parseDecimalLiteral(e){return this.parseLiteral(e,`DecimalLiteral`)}parseRegExpLiteral(e){let t=this.startNode();return this.addExtra(t,`raw`,this.input.slice(this.offsetToSourcePos(t.start),this.state.end)),t.pattern=e.pattern,t.flags=e.flags,this.next(),this.finishNode(t,`RegExpLiteral`)}parseBooleanLiteral(e){let t=this.startNode();return t.value=e,this.next(),this.finishNode(t,`BooleanLiteral`)}parseNullLiteral(){let e=this.startNode();return this.next(),this.finishNode(e,`NullLiteral`)}parseParenAndDistinguishExpression(e){let t=this.state.startLoc,n;this.next(),this.expressionScope.enter(wt());let r=this.state.maybeInArrowParameters,i=this.state.inFSharpPipelineDirectBody;this.state.maybeInArrowParameters=!0,this.state.inFSharpPipelineDirectBody=!1;let a=this.state.startLoc,o=[],s=new At,c=!0,l,u;for(;!this.match(11);){if(c)c=!1;else if(this.expect(12,s.optionalParametersLoc===null?null:s.optionalParametersLoc),this.match(11)){u=this.state.startLoc;break}if(this.match(21)){let e=this.state.startLoc;if(l=this.state.startLoc,o.push(this.parseParenItem(this.parseRestBinding(),e)),!this.checkCommaAfterRest(41))break}else o.push(this.parseMaybeAssignAllowIn(s,this.parseParenItem))}let d=this.state.lastTokEndLoc;this.expect(11),this.state.maybeInArrowParameters=r,this.state.inFSharpPipelineDirectBody=i;let f=this.startNodeAt(t);return e&&this.shouldParseArrow(o)&&(f=this.parseArrow(f))?(this.checkDestructuringPrivate(s),this.expressionScope.validateAsPattern(),this.expressionScope.exit(),this.parseArrowExpression(f,o,!1),f):(this.expressionScope.exit(),o.length||this.unexpected(this.state.lastTokStartLoc),u&&this.unexpected(u),l&&this.unexpected(l),this.checkExpressionErrors(s,!0),this.toReferencedListDeep(o,!0),o.length>1?(n=this.startNodeAt(a),n.expressions=o,this.finishNode(n,`SequenceExpression`),this.resetEndLocation(n,d)):n=o[0],this.wrapParenthesis(t,n))}wrapParenthesis(e,t){if(!this.options.createParenthesizedExpressions)return this.addExtra(t,`parenthesized`,!0),this.addExtra(t,`parenStart`,e.index),this.takeSurroundingComments(t,e.index,this.state.lastTokEndLoc.index),t;let n=this.startNodeAt(e);return n.expression=t,this.finishNode(n,`ParenthesizedExpression`)}shouldParseArrow(e){return!this.canInsertSemicolon()}parseArrow(e){if(this.eat(19))return e}parseParenItem(e,t){return e}parseNewOrNewTarget(){let e=this.startNode();if(this.next(),this.match(16)){let t=this.createIdentifier(this.startNodeAtNode(e),`new`);this.next();let n=this.parseMetaProperty(e,t,`target`);return!this.scope.inNonArrowFunction&&!this.scope.inClass&&!this.options.allowNewTargetOutsideFunction&&this.raise(_.UnexpectedNewTarget,n),n}return this.parseNew(e)}parseNew(e){if(this.parseNewCallee(e),this.eat(10)){let t=this.parseExprList(11);this.toReferencedList(t),e.arguments=t}else e.arguments=[];return this.finishNode(e,`NewExpression`)}parseNewCallee(e){let t=this.match(83),n=this.parseNoCallExpr();e.callee=n,t&&(n.type===`Import`||n.type===`ImportExpression`)&&this.raise(_.ImportCallNotNewExpression,n)}parseTemplateElement(e){let{start:t,startLoc:n,end:r,value:a}=this.state,o=t+1,s=this.startNodeAt(i(n,1));a===null&&(e||this.raise(_.InvalidEscapeSequenceTemplate,i(this.state.firstInvalidTemplateEscapePos,1)));let c=this.match(24),l=c?-1:-2,u=r+l;s.value={raw:this.input.slice(o,u).replace(/\r\n?/g,`
108
- `),cooked:a===null?null:a.slice(1,l)},s.tail=c,this.next();let d=this.finishNode(s,`TemplateElement`);return this.resetEndLocation(d,i(this.state.lastTokEndLoc,l)),d}parseTemplate(e){let t=this.startNode(),n=this.parseTemplateElement(e),r=[n],i=[];for(;!n.tail;)i.push(this.parseTemplateSubstitution()),this.readTemplateContinuation(),r.push(n=this.parseTemplateElement(e));return t.expressions=i,t.quasis=r,this.finishNode(t,`TemplateLiteral`)}parseTemplateSubstitution(){return this.parseExpression()}parseObjectLike(e,t,n,r){n&&this.expectPlugin(`recordAndTuple`);let i=this.state.inFSharpPipelineDirectBody;this.state.inFSharpPipelineDirectBody=!1;let a=Object.create(null),o=!0,s=this.startNode();for(s.properties=[],this.next();!this.match(e);){if(o)o=!1;else if(this.expect(12),this.match(e)){this.addTrailingCommaExtraToNode(s);break}let i;t?i=this.parseBindingProperty():(i=this.parsePropertyDefinition(r),this.checkProto(i,n,a,r)),n&&!this.isObjectProperty(i)&&i.type!==`SpreadElement`&&this.raise(_.InvalidRecordProperty,i),i.shorthand&&this.addExtra(i,`shorthand`,!0),s.properties.push(i)}this.next(),this.state.inFSharpPipelineDirectBody=i;let c=`ObjectExpression`;return t?c=`ObjectPattern`:n&&(c=`RecordExpression`),this.finishNode(s,c)}addTrailingCommaExtraToNode(e){this.addExtra(e,`trailingComma`,this.state.lastTokStartLoc.index),this.addExtra(e,`trailingCommaLoc`,this.state.lastTokStartLoc,!1)}maybeAsyncOrAccessorProp(e){return!e.computed&&e.key.type===`Identifier`&&(this.isLiteralPropertyName()||this.match(0)||this.match(55))}parsePropertyDefinition(e){let t=[];if(this.match(26))for(this.hasPlugin(`decorators`)&&this.raise(_.UnsupportedPropertyDecorator,this.state.startLoc);this.match(26);)t.push(this.parseDecorator());let n=this.startNode(),r=!1,i=!1,a;if(this.match(21))return t.length&&this.unexpected(),this.parseSpread();t.length&&(n.decorators=t,t=[]),n.method=!1,e&&(a=this.state.startLoc);let o=this.eat(55);this.parsePropertyNamePrefixOperator(n);let s=this.state.containsEsc;if(this.parsePropertyName(n,e),!o&&!s&&this.maybeAsyncOrAccessorProp(n)){let{key:e}=n,t=e.name;t===`async`&&!this.hasPrecedingLineBreak()&&(r=!0,this.resetPreviousNodeTrailingComments(e),o=this.eat(55),this.parsePropertyName(n)),(t===`get`||t===`set`)&&(i=!0,this.resetPreviousNodeTrailingComments(e),n.kind=t,this.match(55)&&(o=!0,this.raise(_.AccessorIsGenerator,this.state.curPosition(),{kind:t}),this.next()),this.parsePropertyName(n))}return this.parseObjPropValue(n,a,o,r,!1,i,e)}getGetterSetterExpectedParamCount(e){return e.kind===`get`?0:1}getObjectOrClassMethodParams(e){return e.params}checkGetterSetterParams(e){let t=this.getGetterSetterExpectedParamCount(e),n=this.getObjectOrClassMethodParams(e);n.length!==t&&this.raise(e.kind===`get`?_.BadGetterArity:_.BadSetterArity,e),e.kind===`set`&&n[n.length-1]?.type===`RestElement`&&this.raise(_.BadSetterRestParameter,e)}parseObjectMethod(e,t,n,r,i){if(i){let n=this.parseMethod(e,t,!1,!1,!1,`ObjectMethod`);return this.checkGetterSetterParams(n),n}if(n||t||this.match(10))return r&&this.unexpected(),e.kind=`method`,e.method=!0,this.parseMethod(e,t,n,!1,!1,`ObjectMethod`)}parseObjectProperty(e,t,n,r){if(e.shorthand=!1,this.eat(14))return e.value=n?this.parseMaybeDefault(this.state.startLoc):this.parseMaybeAssignAllowIn(r),this.finishNode(e,`ObjectProperty`);if(!e.computed&&e.key.type===`Identifier`){if(this.checkReservedWord(e.key.name,e.key.loc.start,!0,!1),n)e.value=this.parseMaybeDefault(t,Pt(e.key));else if(this.match(29)){let n=this.state.startLoc;r==null?this.raise(_.InvalidCoverInitializedName,n):r.shorthandAssignLoc===null&&(r.shorthandAssignLoc=n),e.value=this.parseMaybeDefault(t,Pt(e.key))}else e.value=Pt(e.key);return e.shorthand=!0,this.finishNode(e,`ObjectProperty`)}}parseObjPropValue(e,t,n,r,i,a,o){let s=this.parseObjectMethod(e,n,r,i,a)||this.parseObjectProperty(e,t,i,o);return s||this.unexpected(),s}parsePropertyName(e,t){if(this.eat(0))e.computed=!0,e.key=this.parseMaybeAssignAllowIn(),this.expect(3);else{let{type:n,value:r}=this.state,i;if(le(n))i=this.parseIdentifier(!0);else switch(n){case 135:i=this.parseNumericLiteral(r);break;case 134:i=this.parseStringLiteral(r);break;case 136:i=this.parseBigIntLiteral(r);break;case 139:{let e=this.state.startLoc;t==null?this.raise(_.UnexpectedPrivateField,e):t.privateKeyLoc===null&&(t.privateKeyLoc=e),i=this.parsePrivateName();break}default:if(n===137){i=this.parseDecimalLiteral(r);break}this.unexpected()}e.key=i,n!==139&&(e.computed=!1)}}initFunction(e,t){e.id=null,e.generator=!1,e.async=t}parseMethod(e,t,n,r,i,a,o=!1){this.initFunction(e,n),e.generator=t,this.scope.enter(18|(o?64:0)|(i?32:0)),this.prodParam.enter(Ot(n,e.generator)),this.parseFunctionParams(e,r);let s=this.parseFunctionBodyAndFinish(e,a,!0);return this.prodParam.exit(),this.scope.exit(),s}parseArrayLike(e,t,n,r){n&&this.expectPlugin(`recordAndTuple`);let i=this.state.inFSharpPipelineDirectBody;this.state.inFSharpPipelineDirectBody=!1;let a=this.startNode();return this.next(),a.elements=this.parseExprList(e,!n,r,a),this.state.inFSharpPipelineDirectBody=i,this.finishNode(a,n?`TupleExpression`:`ArrayExpression`)}parseArrowExpression(e,t,n,r){this.scope.enter(6);let i=Ot(n,!1);!this.match(5)&&this.prodParam.hasIn&&(i|=8),this.prodParam.enter(i),this.initFunction(e,n);let a=this.state.maybeInArrowParameters;return t&&(this.state.maybeInArrowParameters=!0,this.setArrowFunctionParameters(e,t,r)),this.state.maybeInArrowParameters=!1,this.parseFunctionBody(e,!0),this.prodParam.exit(),this.scope.exit(),this.state.maybeInArrowParameters=a,this.finishNode(e,`ArrowFunctionExpression`)}setArrowFunctionParameters(e,t,n){this.toAssignableList(t,n,!1),e.params=t}parseFunctionBodyAndFinish(e,t,n=!1){return this.parseFunctionBody(e,!1,n),this.finishNode(e,t)}parseFunctionBody(e,t,n=!1){let r=t&&!this.match(5);if(this.expressionScope.enter(Et()),r)e.body=this.parseMaybeAssign(),this.checkParams(e,!1,t,!1);else{let r=this.state.strict,i=this.state.labels;this.state.labels=[],this.prodParam.enter(this.prodParam.currentFlags()|4),e.body=this.parseBlock(!0,!1,i=>{let a=!this.isSimpleParamList(e.params);i&&a&&this.raise(_.IllegalLanguageModeDirective,(e.kind===`method`||e.kind===`constructor`)&&e.key?e.key.loc.end:e);let o=!r&&this.state.strict;this.checkParams(e,!this.state.strict&&!t&&!n&&!a,t,o),this.state.strict&&e.id&&this.checkIdentifier(e.id,65,o)}),this.prodParam.exit(),this.state.labels=i}this.expressionScope.exit()}isSimpleParameter(e){return e.type===`Identifier`}isSimpleParamList(e){for(let t=0,n=e.length;t<n;t++)if(!this.isSimpleParameter(e[t]))return!1;return!0}checkParams(e,t,n,r=!0){let i=!t&&new Set,a={type:`FormalParameters`};for(let t of e.params)this.checkLVal(t,a,5,i,r)}parseExprList(e,t,n,r){let i=[],a=!0;for(;!this.eat(e);){if(a)a=!1;else if(this.expect(12),this.match(e)){r&&this.addTrailingCommaExtraToNode(r),this.next();break}i.push(this.parseExprListItem(t,n))}return i}parseExprListItem(e,t,n){let r;if(this.match(12))e||this.raise(_.UnexpectedToken,this.state.curPosition(),{unexpected:`,`}),r=null;else if(this.match(21)){let e=this.state.startLoc;r=this.parseParenItem(this.parseSpread(t),e)}else if(this.match(17)){this.expectPlugin(`partialApplication`),n||this.raise(_.UnexpectedArgumentPlaceholder,this.state.startLoc);let e=this.startNode();this.next(),r=this.finishNode(e,`ArgumentPlaceholder`)}else r=this.parseMaybeAssignAllowIn(t,this.parseParenItem);return r}parseIdentifier(e){let t=this.startNode(),n=this.parseIdentifierName(e);return this.createIdentifier(t,n)}createIdentifier(e,t){return e.name=t,e.loc.identifierName=t,this.finishNode(e,`Identifier`)}parseIdentifierName(e){let t,{startLoc:n,type:r}=this.state;le(r)?t=this.state.value:this.unexpected();let i=ce(r);return e?i&&this.replaceToken(132):this.checkReservedWord(t,n,i,!1),this.next(),t}checkReservedWord(e,t,n,r){if(!(e.length>10)&&He(e)){if(n&&ze(e)){this.raise(_.UnexpectedKeyword,t,{keyword:e});return}if((this.state.strict?r?Re:Ie:Fe)(e,this.inModule)){this.raise(_.UnexpectedReservedWord,t,{reservedWord:e});return}else if(e===`yield`){if(this.prodParam.hasYield){this.raise(_.YieldBindingIdentifier,t);return}}else if(e===`await`){if(this.prodParam.hasAwait){this.raise(_.AwaitBindingIdentifier,t);return}if(this.scope.inStaticBlock){this.raise(_.AwaitBindingIdentifierInStaticBlock,t);return}this.expressionScope.recordAsyncArrowParametersError(t)}else if(e===`arguments`&&this.scope.inClassAndNotInNonArrowFunction){this.raise(_.ArgumentsInClass,t);return}}}recordAwaitIfAllowed(){let e=this.prodParam.hasAwait||this.options.allowAwaitOutsideFunction&&!this.scope.inFunction;return e&&!this.scope.inFunction&&(this.state.hasTopLevelAwait=!0),e}parseAwait(e){let t=this.startNodeAt(e);return this.expressionScope.recordParameterInitializerError(_.AwaitExpressionFormalParameter,t),this.eat(55)&&this.raise(_.ObsoleteAwaitStar,t),!this.scope.inFunction&&!this.options.allowAwaitOutsideFunction&&(this.isAmbiguousAwait()?this.ambiguousScriptDifferentAst=!0:this.sawUnambiguousESM=!0),this.state.soloAwait||(t.argument=this.parseMaybeUnary(null,!0)),this.finishNode(t,`AwaitExpression`)}isAmbiguousAwait(){if(this.hasPrecedingLineBreak())return!0;let{type:e}=this.state;return e===53||e===10||e===0||xe(e)||e===102&&!this.state.containsEsc||e===138||e===56||this.hasPlugin(`v8intrinsic`)&&e===54}parseYield(){let e=this.startNode();this.expressionScope.recordParameterInitializerError(_.YieldInParameter,e),this.next();let t=!1,n=null;if(!this.hasPrecedingLineBreak())switch(t=this.eat(55),this.state.type){case 13:case 140:case 8:case 11:case 3:case 9:case 14:case 12:if(!t)break;default:n=this.parseMaybeAssign()}return e.delegate=t,e.argument=n,this.finishNode(e,`YieldExpression`)}parseImportCall(e){if(this.next(),e.source=this.parseMaybeAssignAllowIn(),e.options=null,this.eat(12)&&!this.match(11)&&(e.options=this.parseMaybeAssignAllowIn(),this.eat(12)&&!this.match(11))){do this.parseMaybeAssignAllowIn();while(this.eat(12)&&!this.match(11));this.raise(_.ImportCallArity,e)}return this.expect(11),this.finishNode(e,`ImportExpression`)}checkPipelineAtInfixOperator(e,t){this.hasPlugin([`pipelineOperator`,{proposal:`smart`}])&&e.type===`SequenceExpression`&&this.raise(_.PipelineHeadSequenceExpression,t)}parseSmartPipelineBodyInStyle(e,t){if(this.isSimpleReference(e)){let n=this.startNodeAt(t);return n.callee=e,this.finishNode(n,`PipelineBareFunction`)}else{let n=this.startNodeAt(t);return this.checkSmartPipeTopicBodyEarlyErrors(t),n.expression=e,this.finishNode(n,`PipelineTopicExpression`)}}isSimpleReference(e){switch(e.type){case`MemberExpression`:return!e.computed&&this.isSimpleReference(e.object);case`Identifier`:return!0;default:return!1}}checkSmartPipeTopicBodyEarlyErrors(e){if(this.match(19))throw this.raise(_.PipelineBodyNoArrow,this.state.startLoc);this.topicReferenceWasUsedInCurrentContext()||this.raise(_.PipelineTopicUnused,e)}withTopicBindingContext(e){let t=this.state.topicContext;this.state.topicContext={maxNumOfResolvableTopics:1,maxTopicIndex:null};try{return e()}finally{this.state.topicContext=t}}withSmartMixTopicForbiddingContext(e){if(this.hasPlugin([`pipelineOperator`,{proposal:`smart`}])){let t=this.state.topicContext;this.state.topicContext={maxNumOfResolvableTopics:0,maxTopicIndex:null};try{return e()}finally{this.state.topicContext=t}}else return e()}withSoloAwaitPermittingContext(e){let t=this.state.soloAwait;this.state.soloAwait=!0;try{return e()}finally{this.state.soloAwait=t}}allowInAnd(e){let t=this.prodParam.currentFlags();if(8&~t){this.prodParam.enter(t|8);try{return e()}finally{this.prodParam.exit()}}return e()}disallowInAnd(e){let t=this.prodParam.currentFlags();if(8&t){this.prodParam.enter(t&-9);try{return e()}finally{this.prodParam.exit()}}return e()}registerTopicReference(){this.state.topicContext.maxTopicIndex=0}topicReferenceIsAllowedInCurrentContext(){return this.state.topicContext.maxNumOfResolvableTopics>=1}topicReferenceWasUsedInCurrentContext(){return this.state.topicContext.maxTopicIndex!=null&&this.state.topicContext.maxTopicIndex>=0}parseFSharpPipelineBody(e){let t=this.state.startLoc;this.state.potentialArrowAt=this.state.start;let n=this.state.inFSharpPipelineDirectBody;this.state.inFSharpPipelineDirectBody=!0;let r=this.parseExprOp(this.parseMaybeUnaryOrPrivate(),t,e);return this.state.inFSharpPipelineDirectBody=n,r}parseModuleExpression(){this.expectPlugin(`moduleBlocks`);let e=this.startNode();this.next(),this.match(5)||this.unexpected(null,5);let t=this.startNodeAt(this.state.endLoc);this.next();let n=this.initializeScopes(!0);this.enterInitialScopes();try{e.body=this.parseProgram(t,8,`module`)}finally{n()}return this.finishNode(e,`ModuleExpression`)}parsePropertyNamePrefixOperator(e){}},yn={kind:1},bn={kind:2},xn=/[\uD800-\uDFFF]/u,Sn=/in(?:stanceof)?/y;function Cn(e,t,n){for(let r=0;r<e.length;r++){let a=e[r],{type:o}=a;if(typeof o==`number`){if(o===139){let{loc:t,start:n,value:o,end:s}=a,c=n+1,l=i(t.start,1);e.splice(r,1,new gt({type:Se(27),value:`#`,start:n,end:c,startLoc:t.start,endLoc:l}),new gt({type:Se(132),value:o,start:c,end:s,startLoc:l,endLoc:t.end})),r++;continue}if(xe(o)){let{loc:s,start:c,value:l,end:u}=a,d=c+1,f=i(s.start,1),p;p=t.charCodeAt(c-n)===96?new gt({type:Se(22),value:"`",start:c,end:d,startLoc:s.start,endLoc:f}):new gt({type:Se(8),value:`}`,start:c,end:d,startLoc:s.start,endLoc:f});let m,h,g,_;o===24?(h=u-1,g=i(s.end,-1),m=l===null?null:l.slice(1,-1),_=new gt({type:Se(22),value:"`",start:h,end:u,startLoc:g,endLoc:s.end})):(h=u-2,g=i(s.end,-2),m=l===null?null:l.slice(1,-2),_=new gt({type:Se(23),value:"${",start:h,end:u,startLoc:g,endLoc:s.end})),e.splice(r,1,p,new gt({type:Se(20),value:m,start:d,end:h,startLoc:f,endLoc:g}),_),r+=2;continue}a.type=Se(o)}}return e}x(Cn,`babel7CompatTokens`);var wn=class extends vn{static{x(this,`StatementParser`)}parseTopLevel(e,t){return e.program=this.parseProgram(t),e.comments=this.comments,this.options.tokens&&(e.tokens=Cn(this.tokens,this.input,this.startIndex)),this.finishNode(e,`File`)}parseProgram(e,t=140,n=this.options.sourceType){if(e.sourceType=n,e.interpreter=this.parseInterpreterDirective(),this.parseBlockBody(e,!0,!0,t),this.inModule){if(!this.options.allowUndeclaredExports&&this.scope.undefinedExports.size>0)for(let[e,t]of Array.from(this.scope.undefinedExports))this.raise(_.ModuleExportUndefined,t,{localName:e});this.addExtra(e,`topLevelAwait`,this.state.hasTopLevelAwait)}let r;return r=t===140?this.finishNode(e,`Program`):this.finishNodeAt(e,`Program`,i(this.state.startLoc,-1)),r}stmtToDirective(e){let t=e;t.type=`Directive`,t.value=t.expression,delete t.expression;let n=t.value,r=n.value,i=this.input.slice(this.offsetToSourcePos(n.start),this.offsetToSourcePos(n.end)),a=n.value=i.slice(1,-1);return this.addExtra(n,`raw`,i),this.addExtra(n,`rawValue`,a),this.addExtra(n,`expressionValue`,r),n.type=`DirectiveLiteral`,t}parseInterpreterDirective(){if(!this.match(28))return null;let e=this.startNode();return e.value=this.state.value,this.next(),this.finishNode(e,`InterpreterDirective`)}isLet(){return this.isContextual(100)?this.hasFollowingBindingAtom():!1}chStartsBindingIdentifier(e,t){if(Ae(e)){if(Sn.lastIndex=t,Sn.test(this.input)){let e=this.codePointAtPos(Sn.lastIndex);if(!H(e)&&e!==92)return!1}return!0}else if(e===92)return!0;else return!1}chStartsBindingPattern(e){return e===91||e===123}hasFollowingBindingAtom(){let e=this.nextTokenStart(),t=this.codePointAtPos(e);return this.chStartsBindingPattern(t)||this.chStartsBindingIdentifier(t,e)}hasInLineFollowingBindingIdentifierOrBrace(){let e=this.nextTokenInLineStart(),t=this.codePointAtPos(e);return t===123||this.chStartsBindingIdentifier(t,e)}startsUsingForOf(){let{type:e,containsEsc:t}=this.lookahead();if(e===102&&!t)return!1;if(L(e)&&!this.hasFollowingLineBreak())return this.expectPlugin(`explicitResourceManagement`),!0}startsAwaitUsing(){let e=this.nextTokenInLineStart();if(this.isUnparsedContextual(e,`using`)){e=this.nextTokenInLineStartSince(e+5);let t=this.codePointAtPos(e);if(this.chStartsBindingIdentifier(t,e))return this.expectPlugin(`explicitResourceManagement`),!0}return!1}parseModuleItem(){return this.parseStatementLike(15)}parseStatementListItem(){return this.parseStatementLike(6|(!this.options.annexB||this.state.strict?0:8))}parseStatementOrSloppyAnnexBFunctionDeclaration(e=!1){let t=0;return this.options.annexB&&!this.state.strict&&(t|=4,e&&(t|=8)),this.parseStatementLike(t)}parseStatement(){return this.parseStatementLike(0)}parseStatementLike(e){let t=null;return this.match(26)&&(t=this.parseDecorators(!0)),this.parseStatementContent(e,t)}parseStatementContent(e,t){let n=this.state.type,r=this.startNode(),i=!!(e&2),a=!!(e&4),o=e&1;switch(n){case 60:return this.parseBreakContinueStatement(r,!0);case 63:return this.parseBreakContinueStatement(r,!1);case 64:return this.parseDebuggerStatement(r);case 90:return this.parseDoWhileStatement(r);case 91:return this.parseForStatement(r);case 68:if(this.lookaheadCharCode()===46)break;return a||this.raise(this.state.strict?_.StrictFunction:this.options.annexB?_.SloppyFunctionAnnexB:_.SloppyFunction,this.state.startLoc),this.parseFunctionStatement(r,!1,!i&&a);case 80:return i||this.unexpected(),this.parseClass(this.maybeTakeDecorators(t,r),!0);case 69:return this.parseIfStatement(r);case 70:return this.parseReturnStatement(r);case 71:return this.parseSwitchStatement(r);case 72:return this.parseThrowStatement(r);case 73:return this.parseTryStatement(r);case 96:if(!this.state.containsEsc&&this.startsAwaitUsing())return this.recordAwaitIfAllowed()?i||this.raise(_.UnexpectedLexicalDeclaration,r):this.raise(_.AwaitUsingNotInAsyncContext,r),this.next(),this.parseVarStatement(r,`await using`);break;case 107:if(this.state.containsEsc||!this.hasInLineFollowingBindingIdentifierOrBrace())break;return this.expectPlugin(`explicitResourceManagement`),!this.scope.inModule&&this.scope.inTopLevel?this.raise(_.UnexpectedUsingDeclaration,this.state.startLoc):i||this.raise(_.UnexpectedLexicalDeclaration,this.state.startLoc),this.parseVarStatement(r,`using`);case 100:{if(this.state.containsEsc)break;let e=this.nextTokenStart(),t=this.codePointAtPos(e);if(t!==91&&(!i&&this.hasFollowingLineBreak()||!this.chStartsBindingIdentifier(t,e)&&t!==123))break}case 75:i||this.raise(_.UnexpectedLexicalDeclaration,this.state.startLoc);case 74:{let e=this.state.value;return this.parseVarStatement(r,e)}case 92:return this.parseWhileStatement(r);case 76:return this.parseWithStatement(r);case 5:return this.parseBlock();case 13:return this.parseEmptyStatement(r);case 83:{let e=this.lookaheadCharCode();if(e===40||e===46)break}case 82:{!this.options.allowImportExportEverywhere&&!o&&this.raise(_.UnexpectedImportExport,this.state.startLoc),this.next();let e;return n===83?(e=this.parseImport(r),e.type===`ImportDeclaration`&&(!e.importKind||e.importKind===`value`)&&(this.sawUnambiguousESM=!0)):(e=this.parseExport(r,t),(e.type===`ExportNamedDeclaration`&&(!e.exportKind||e.exportKind===`value`)||e.type===`ExportAllDeclaration`&&(!e.exportKind||e.exportKind===`value`)||e.type===`ExportDefaultDeclaration`)&&(this.sawUnambiguousESM=!0)),this.assertModuleNodeAllowed(e),e}default:if(this.isAsyncFunction())return i||this.raise(_.AsyncFunctionInSingleStatementContext,this.state.startLoc),this.next(),this.parseFunctionStatement(r,!0,!i&&a)}let s=this.state.value,c=this.parseExpression();return L(n)&&c.type===`Identifier`&&this.eat(14)?this.parseLabeledStatement(r,s,c,e):this.parseExpressionStatement(r,c,t)}assertModuleNodeAllowed(e){!this.options.allowImportExportEverywhere&&!this.inModule&&this.raise(_.ImportOutsideModule,e)}decoratorsEnabledBeforeExport(){return this.hasPlugin(`decorators-legacy`)?!0:this.hasPlugin(`decorators`)&&this.getPluginOption(`decorators`,`decoratorsBeforeExport`)!==!1}maybeTakeDecorators(e,t,n){return e&&(t.decorators&&t.decorators.length>0?(typeof this.getPluginOption(`decorators`,`decoratorsBeforeExport`)!=`boolean`&&this.raise(_.DecoratorsBeforeAfterExport,t.decorators[0]),t.decorators.unshift(...e)):t.decorators=e,this.resetStartLocationFromNode(t,e[0]),n&&this.resetStartLocationFromNode(n,t)),t}canHaveLeadingDecorator(){return this.match(80)}parseDecorators(e){let t=[];do t.push(this.parseDecorator());while(this.match(26));if(this.match(82))e||this.unexpected(),this.decoratorsEnabledBeforeExport()||this.raise(_.DecoratorExportClass,this.state.startLoc);else if(!this.canHaveLeadingDecorator())throw this.raise(_.UnexpectedLeadingDecorator,this.state.startLoc);return t}parseDecorator(){this.expectOnePlugin([`decorators`,`decorators-legacy`]);let e=this.startNode();if(this.next(),this.hasPlugin(`decorators`)){let t=this.state.startLoc,n;if(this.match(10)){let t=this.state.startLoc;this.next(),n=this.parseExpression(),this.expect(11),n=this.wrapParenthesis(t,n);let r=this.state.startLoc;e.expression=this.parseMaybeDecoratorArguments(n),this.getPluginOption(`decorators`,`allowCallParenthesized`)===!1&&e.expression!==n&&this.raise(_.DecoratorArgumentsOutsideParentheses,r)}else{for(n=this.parseIdentifier(!1);this.eat(16);){let e=this.startNodeAt(t);e.object=n,this.match(139)?(this.classScope.usePrivateName(this.state.value,this.state.startLoc),e.property=this.parsePrivateName()):e.property=this.parseIdentifier(!0),e.computed=!1,n=this.finishNode(e,`MemberExpression`)}e.expression=this.parseMaybeDecoratorArguments(n)}}else e.expression=this.parseExprSubscripts();return this.finishNode(e,`Decorator`)}parseMaybeDecoratorArguments(e){if(this.eat(10)){let t=this.startNodeAtNode(e);return t.callee=e,t.arguments=this.parseCallExpressionArguments(11),this.toReferencedList(t.arguments),this.finishNode(t,`CallExpression`)}return e}parseBreakContinueStatement(e,t){return this.next(),this.isLineTerminator()?e.label=null:(e.label=this.parseIdentifier(),this.semicolon()),this.verifyBreakContinue(e,t),this.finishNode(e,t?`BreakStatement`:`ContinueStatement`)}verifyBreakContinue(e,t){let n;for(n=0;n<this.state.labels.length;++n){let r=this.state.labels[n];if((e.label==null||r.name===e.label.name)&&(r.kind!=null&&(t||r.kind===1)||e.label&&t))break}if(n===this.state.labels.length){let n=t?`BreakStatement`:`ContinueStatement`;this.raise(_.IllegalBreakContinue,e,{type:n})}}parseDebuggerStatement(e){return this.next(),this.semicolon(),this.finishNode(e,`DebuggerStatement`)}parseHeaderExpression(){this.expect(10);let e=this.parseExpression();return this.expect(11),e}parseDoWhileStatement(e){return this.next(),this.state.labels.push(yn),e.body=this.withSmartMixTopicForbiddingContext(()=>this.parseStatement()),this.state.labels.pop(),this.expect(92),e.test=this.parseHeaderExpression(),this.eat(13),this.finishNode(e,`DoWhileStatement`)}parseForStatement(e){this.next(),this.state.labels.push(yn);let t=null;if(this.isContextual(96)&&this.recordAwaitIfAllowed()&&(t=this.state.startLoc,this.next()),this.scope.enter(0),this.expect(10),this.match(13))return t!==null&&this.unexpected(t),this.parseFor(e,null);let n=this.isContextual(100);{let r=this.isContextual(96)&&this.startsAwaitUsing(),i=r||this.isContextual(107)&&this.startsUsingForOf(),a=n&&this.hasFollowingBindingAtom()||i;if(this.match(74)||this.match(75)||a){let n=this.startNode(),a;r?(a=`await using`,this.recordAwaitIfAllowed()||this.raise(_.AwaitUsingNotInAsyncContext,this.state.startLoc),this.next()):a=this.state.value,this.next(),this.parseVar(n,!0,a);let o=this.finishNode(n,`VariableDeclaration`),s=this.match(58);return s&&i&&this.raise(_.ForInUsing,o),(s||this.isContextual(102))&&o.declarations.length===1?this.parseForIn(e,o,t):(t!==null&&this.unexpected(t),this.parseFor(e,o))}}let r=this.isContextual(95),i=new At,a=this.parseExpression(!0,i),o=this.isContextual(102);if(o&&(n&&this.raise(_.ForOfLet,a),t===null&&r&&a.type===`Identifier`&&this.raise(_.ForOfAsync,a)),o||this.match(58)){this.checkDestructuringPrivate(i),this.toAssignable(a,!0);let n=o?`ForOfStatement`:`ForInStatement`;return this.checkLVal(a,{type:n}),this.parseForIn(e,a,t)}else this.checkExpressionErrors(i,!0);return t!==null&&this.unexpected(t),this.parseFor(e,a)}parseFunctionStatement(e,t,n){return this.next(),this.parseFunction(e,1|(n?2:0)|(t?8:0))}parseIfStatement(e){return this.next(),e.test=this.parseHeaderExpression(),e.consequent=this.parseStatementOrSloppyAnnexBFunctionDeclaration(),e.alternate=this.eat(66)?this.parseStatementOrSloppyAnnexBFunctionDeclaration():null,this.finishNode(e,`IfStatement`)}parseReturnStatement(e){return!this.prodParam.hasReturn&&!this.options.allowReturnOutsideFunction&&this.raise(_.IllegalReturn,this.state.startLoc),this.next(),this.isLineTerminator()?e.argument=null:(e.argument=this.parseExpression(),this.semicolon()),this.finishNode(e,`ReturnStatement`)}parseSwitchStatement(e){this.next(),e.discriminant=this.parseHeaderExpression();let t=e.cases=[];this.expect(5),this.state.labels.push(bn),this.scope.enter(0);let n;for(let e;!this.match(8);)if(this.match(61)||this.match(65)){let r=this.match(61);n&&this.finishNode(n,`SwitchCase`),t.push(n=this.startNode()),n.consequent=[],this.next(),r?n.test=this.parseExpression():(e&&this.raise(_.MultipleDefaultsInSwitch,this.state.lastTokStartLoc),e=!0,n.test=null),this.expect(14)}else n?n.consequent.push(this.parseStatementListItem()):this.unexpected();return this.scope.exit(),n&&this.finishNode(n,`SwitchCase`),this.next(),this.state.labels.pop(),this.finishNode(e,`SwitchStatement`)}parseThrowStatement(e){return this.next(),this.hasPrecedingLineBreak()&&this.raise(_.NewlineAfterThrow,this.state.lastTokEndLoc),e.argument=this.parseExpression(),this.semicolon(),this.finishNode(e,`ThrowStatement`)}parseCatchClauseParam(){let e=this.parseBindingAtom();return this.scope.enter(this.options.annexB&&e.type===`Identifier`?8:0),this.checkLVal(e,{type:`CatchClause`},9),e}parseTryStatement(e){if(this.next(),e.block=this.parseBlock(),e.handler=null,this.match(62)){let t=this.startNode();this.next(),this.match(10)?(this.expect(10),t.param=this.parseCatchClauseParam(),this.expect(11)):(t.param=null,this.scope.enter(0)),t.body=this.withSmartMixTopicForbiddingContext(()=>this.parseBlock(!1,!1)),this.scope.exit(),e.handler=this.finishNode(t,`CatchClause`)}return e.finalizer=this.eat(67)?this.parseBlock():null,!e.handler&&!e.finalizer&&this.raise(_.NoCatchOrFinally,e),this.finishNode(e,`TryStatement`)}parseVarStatement(e,t,n=!1){return this.next(),this.parseVar(e,!1,t,n),this.semicolon(),this.finishNode(e,`VariableDeclaration`)}parseWhileStatement(e){return this.next(),e.test=this.parseHeaderExpression(),this.state.labels.push(yn),e.body=this.withSmartMixTopicForbiddingContext(()=>this.parseStatement()),this.state.labels.pop(),this.finishNode(e,`WhileStatement`)}parseWithStatement(e){return this.state.strict&&this.raise(_.StrictWith,this.state.startLoc),this.next(),e.object=this.parseHeaderExpression(),e.body=this.withSmartMixTopicForbiddingContext(()=>this.parseStatement()),this.finishNode(e,`WithStatement`)}parseEmptyStatement(e){return this.next(),this.finishNode(e,`EmptyStatement`)}parseLabeledStatement(e,t,n,r){for(let e of this.state.labels)e.name===t&&this.raise(_.LabelRedeclaration,n,{labelName:t});let i=me(this.state.type)?1:this.match(71)?2:null;for(let t=this.state.labels.length-1;t>=0;t--){let n=this.state.labels[t];if(n.statementStart===e.start)n.statementStart=this.sourceToOffsetPos(this.state.start),n.kind=i;else break}return this.state.labels.push({name:t,kind:i,statementStart:this.sourceToOffsetPos(this.state.start)}),e.body=r&8?this.parseStatementOrSloppyAnnexBFunctionDeclaration(!0):this.parseStatement(),this.state.labels.pop(),e.label=n,this.finishNode(e,`LabeledStatement`)}parseExpressionStatement(e,t,n){return e.expression=t,this.semicolon(),this.finishNode(e,`ExpressionStatement`)}parseBlock(e=!1,t=!0,n){let r=this.startNode();return e&&this.state.strictErrors.clear(),this.expect(5),t&&this.scope.enter(0),this.parseBlockBody(r,e,!1,8,n),t&&this.scope.exit(),this.finishNode(r,`BlockStatement`)}isValidDirective(e){return e.type===`ExpressionStatement`&&e.expression.type===`StringLiteral`&&!e.expression.extra.parenthesized}parseBlockBody(e,t,n,r,i){let a=e.body=[],o=e.directives=[];this.parseBlockOrModuleBlockBody(a,t?o:void 0,n,r,i)}parseBlockOrModuleBlockBody(e,t,n,r,i){let a=this.state.strict,o=!1,s=!1;for(;!this.match(r);){let r=n?this.parseModuleItem():this.parseStatementListItem();if(t&&!s){if(this.isValidDirective(r)){let e=this.stmtToDirective(r);t.push(e),!o&&e.value.value===`use strict`&&(o=!0,this.setStrict(!0));continue}s=!0,this.state.strictErrors.clear()}e.push(r)}i?.call(this,o),a||this.setStrict(!1),this.next()}parseFor(e,t){return e.init=t,this.semicolon(!1),e.test=this.match(13)?null:this.parseExpression(),this.semicolon(!1),e.update=this.match(11)?null:this.parseExpression(),this.expect(11),e.body=this.withSmartMixTopicForbiddingContext(()=>this.parseStatement()),this.scope.exit(),this.state.labels.pop(),this.finishNode(e,`ForStatement`)}parseForIn(e,t,n){let r=this.match(58);return this.next(),r?n!==null&&this.unexpected(n):e.await=n!==null,t.type===`VariableDeclaration`&&t.declarations[0].init!=null&&(!r||!this.options.annexB||this.state.strict||t.kind!==`var`||t.declarations[0].id.type!==`Identifier`)&&this.raise(_.ForInOfLoopInitializer,t,{type:r?`ForInStatement`:`ForOfStatement`}),t.type===`AssignmentPattern`&&this.raise(_.InvalidLhs,t,{ancestor:{type:`ForStatement`}}),e.left=t,e.right=r?this.parseExpression():this.parseMaybeAssignAllowIn(),this.expect(11),e.body=this.withSmartMixTopicForbiddingContext(()=>this.parseStatement()),this.scope.exit(),this.state.labels.pop(),this.finishNode(e,r?`ForInStatement`:`ForOfStatement`)}parseVar(e,t,n,r=!1){let i=e.declarations=[];for(e.kind=n;;){let e=this.startNode();if(this.parseVarId(e,n),e.init=this.eat(29)?t?this.parseMaybeAssignDisallowIn():this.parseMaybeAssignAllowIn():null,e.init===null&&!r&&(e.id.type!==`Identifier`&&!(t&&(this.match(58)||this.isContextual(102)))?this.raise(_.DeclarationMissingInitializer,this.state.lastTokEndLoc,{kind:`destructuring`}):(n===`const`||n===`using`||n===`await using`)&&!(this.match(58)||this.isContextual(102))&&this.raise(_.DeclarationMissingInitializer,this.state.lastTokEndLoc,{kind:n})),i.push(this.finishNode(e,`VariableDeclarator`)),!this.eat(12))break}return e}parseVarId(e,t){let n=this.parseBindingAtom();(t===`using`||t===`await using`)&&(n.type===`ArrayPattern`||n.type===`ObjectPattern`)&&this.raise(_.UsingDeclarationHasBindingPattern,n.loc.start),this.checkLVal(n,{type:`VariableDeclarator`},t===`var`?5:8201),e.id=n}parseAsyncFunctionExpression(e){return this.parseFunction(e,8)}parseFunction(e,t=0){let n=t&2,r=!!(t&1),i=r&&!(t&4),a=!!(t&8);this.initFunction(e,a),this.match(55)&&(n&&this.raise(_.GeneratorInSingleStatementContext,this.state.startLoc),this.next(),e.generator=!0),r&&(e.id=this.parseFunctionId(i));let o=this.state.maybeInArrowParameters;return this.state.maybeInArrowParameters=!1,this.scope.enter(2),this.prodParam.enter(Ot(a,e.generator)),r||(e.id=this.parseFunctionId()),this.parseFunctionParams(e,!1),this.withSmartMixTopicForbiddingContext(()=>{this.parseFunctionBodyAndFinish(e,r?`FunctionDeclaration`:`FunctionExpression`)}),this.prodParam.exit(),this.scope.exit(),r&&!n&&this.registerFunctionStatementId(e),this.state.maybeInArrowParameters=o,e}parseFunctionId(e){return e||L(this.state.type)?this.parseIdentifier():null}parseFunctionParams(e,t){this.expect(10),this.expressionScope.enter(Ct()),e.params=this.parseBindingList(11,41,2|(t?4:0)),this.expressionScope.exit()}registerFunctionStatementId(e){e.id&&this.scope.declareName(e.id.name,!this.options.annexB||this.state.strict||e.generator||e.async?this.scope.treatFunctionsAsVar?5:8201:17,e.id.loc.start)}parseClass(e,t,n){this.next();let r=this.state.strict;return this.state.strict=!0,this.parseClassId(e,t,n),this.parseClassSuper(e),e.body=this.parseClassBody(!!e.superClass,r),this.finishNode(e,t?`ClassDeclaration`:`ClassExpression`)}isClassProperty(){return this.match(29)||this.match(13)||this.match(8)}isClassMethod(){return this.match(10)}nameIsConstructor(e){return e.type===`Identifier`&&e.name===`constructor`||e.type===`StringLiteral`&&e.value===`constructor`}isNonstaticConstructor(e){return!e.computed&&!e.static&&this.nameIsConstructor(e.key)}parseClassBody(e,t){this.classScope.enter();let n={hadConstructor:!1,hadSuperClass:e},r=[],i=this.startNode();if(i.body=[],this.expect(5),this.withSmartMixTopicForbiddingContext(()=>{for(;!this.match(8);){if(this.eat(13)){if(r.length>0)throw this.raise(_.DecoratorSemicolon,this.state.lastTokEndLoc);continue}if(this.match(26)){r.push(this.parseDecorator());continue}let e=this.startNode();r.length&&(e.decorators=r,this.resetStartLocationFromNode(e,r[0]),r=[]),this.parseClassMember(i,e,n),e.kind===`constructor`&&e.decorators&&e.decorators.length>0&&this.raise(_.DecoratorConstructor,e)}}),this.state.strict=t,this.next(),r.length)throw this.raise(_.TrailingDecorator,this.state.startLoc);return this.classScope.exit(),this.finishNode(i,`ClassBody`)}parseClassMemberFromModifier(e,t){let n=this.parseIdentifier(!0);if(this.isClassMethod()){let r=t;return r.kind=`method`,r.computed=!1,r.key=n,r.static=!1,this.pushClassMethod(e,r,!1,!1,!1,!1),!0}else if(this.isClassProperty()){let r=t;return r.computed=!1,r.key=n,r.static=!1,e.body.push(this.parseClassProperty(r)),!0}return this.resetPreviousNodeTrailingComments(n),!1}parseClassMember(e,t,n){let r=this.isContextual(106);if(r){if(this.parseClassMemberFromModifier(e,t))return;if(this.eat(5)){this.parseClassStaticBlock(e,t);return}}this.parseClassMemberWithIsStatic(e,t,n,r)}parseClassMemberWithIsStatic(e,t,n,r){let i=t,a=t,o=t,s=t,c=t,l=i,u=i;if(t.static=r,this.parsePropertyNamePrefixOperator(t),this.eat(55)){l.kind=`method`;let t=this.match(139);if(this.parseClassElementName(l),t){this.pushClassPrivateMethod(e,a,!0,!1);return}this.isNonstaticConstructor(i)&&this.raise(_.ConstructorIsGenerator,i.key),this.pushClassMethod(e,i,!0,!1,!1,!1);return}let d=!this.state.containsEsc&&L(this.state.type),f=this.parseClassElementName(t),p=d?f.name:null,m=this.isPrivateName(f),h=this.state.startLoc;if(this.parsePostMemberNameModifiers(u),this.isClassMethod()){if(l.kind=`method`,m){this.pushClassPrivateMethod(e,a,!1,!1);return}let r=this.isNonstaticConstructor(i),o=!1;r&&(i.kind=`constructor`,n.hadConstructor&&!this.hasPlugin(`typescript`)&&this.raise(_.DuplicateConstructor,f),r&&this.hasPlugin(`typescript`)&&t.override&&this.raise(_.OverrideOnConstructor,f),n.hadConstructor=!0,o=n.hadSuperClass),this.pushClassMethod(e,i,!1,!1,r,o)}else if(this.isClassProperty())m?this.pushClassPrivateProperty(e,s):this.pushClassProperty(e,o);else if(p===`async`&&!this.isLineTerminator()){this.resetPreviousNodeTrailingComments(f);let t=this.eat(55);u.optional&&this.unexpected(h),l.kind=`method`;let n=this.match(139);this.parseClassElementName(l),this.parsePostMemberNameModifiers(u),n?this.pushClassPrivateMethod(e,a,t,!0):(this.isNonstaticConstructor(i)&&this.raise(_.ConstructorIsAsync,i.key),this.pushClassMethod(e,i,t,!0,!1,!1))}else if((p===`get`||p===`set`)&&!(this.match(55)&&this.isLineTerminator())){this.resetPreviousNodeTrailingComments(f),l.kind=p;let t=this.match(139);this.parseClassElementName(i),t?this.pushClassPrivateMethod(e,a,!1,!1):(this.isNonstaticConstructor(i)&&this.raise(_.ConstructorIsAccessor,i.key),this.pushClassMethod(e,i,!1,!1,!1,!1)),this.checkGetterSetterParams(i)}else if(p===`accessor`&&!this.isLineTerminator()){this.expectPlugin(`decoratorAutoAccessors`),this.resetPreviousNodeTrailingComments(f);let t=this.match(139);this.parseClassElementName(o),this.pushClassAccessorProperty(e,c,t)}else this.isLineTerminator()?m?this.pushClassPrivateProperty(e,s):this.pushClassProperty(e,o):this.unexpected()}parseClassElementName(e){let{type:t,value:n}=this.state;if((t===132||t===134)&&e.static&&n===`prototype`&&this.raise(_.StaticPrototype,this.state.startLoc),t===139){n===`constructor`&&this.raise(_.ConstructorClassPrivateField,this.state.startLoc);let t=this.parsePrivateName();return e.key=t,t}return this.parsePropertyName(e),e.key}parseClassStaticBlock(e,t){var n;this.scope.enter(208);let r=this.state.labels;this.state.labels=[],this.prodParam.enter(0);let i=t.body=[];this.parseBlockOrModuleBlockBody(i,void 0,!1,8),this.prodParam.exit(),this.scope.exit(),this.state.labels=r,e.body.push(this.finishNode(t,`StaticBlock`)),(n=t.decorators)!=null&&n.length&&this.raise(_.DecoratorStaticBlock,t)}pushClassProperty(e,t){!t.computed&&this.nameIsConstructor(t.key)&&this.raise(_.ConstructorClassField,t.key),e.body.push(this.parseClassProperty(t))}pushClassPrivateProperty(e,t){let n=this.parseClassPrivateProperty(t);e.body.push(n),this.classScope.declarePrivateName(this.getPrivateNameSV(n.key),0,n.key.loc.start)}pushClassAccessorProperty(e,t,n){!n&&!t.computed&&this.nameIsConstructor(t.key)&&this.raise(_.ConstructorClassField,t.key);let r=this.parseClassAccessorProperty(t);e.body.push(r),n&&this.classScope.declarePrivateName(this.getPrivateNameSV(r.key),0,r.key.loc.start)}pushClassMethod(e,t,n,r,i,a){e.body.push(this.parseMethod(t,n,r,i,a,`ClassMethod`,!0))}pushClassPrivateMethod(e,t,n,r){let i=this.parseMethod(t,n,r,!1,!1,`ClassPrivateMethod`,!0);e.body.push(i);let a=i.kind===`get`?i.static?6:2:i.kind===`set`?i.static?5:1:0;this.declareClassPrivateMethodInScope(i,a)}declareClassPrivateMethodInScope(e,t){this.classScope.declarePrivateName(this.getPrivateNameSV(e.key),t,e.key.loc.start)}parsePostMemberNameModifiers(e){}parseClassPrivateProperty(e){return this.parseInitializer(e),this.semicolon(),this.finishNode(e,`ClassPrivateProperty`)}parseClassProperty(e){return this.parseInitializer(e),this.semicolon(),this.finishNode(e,`ClassProperty`)}parseClassAccessorProperty(e){return this.parseInitializer(e),this.semicolon(),this.finishNode(e,`ClassAccessorProperty`)}parseInitializer(e){this.scope.enter(80),this.expressionScope.enter(Et()),this.prodParam.enter(0),e.value=this.eat(29)?this.parseMaybeAssignAllowIn():null,this.expressionScope.exit(),this.prodParam.exit(),this.scope.exit()}parseClassId(e,t,n,r=8331){if(L(this.state.type))e.id=this.parseIdentifier(),t&&this.declareNameFromIdentifier(e.id,r);else if(n||!t)e.id=null;else throw this.raise(_.MissingClassName,this.state.startLoc)}parseClassSuper(e){e.superClass=this.eat(81)?this.parseExprSubscripts():null}parseExport(e,t){let n=this.parseMaybeImportPhase(e,!0),r=this.maybeParseExportDefaultSpecifier(e,n),i=!r||this.eat(12),a=i&&this.eatExportStar(e),o=a&&this.maybeParseExportNamespaceSpecifier(e),s=i&&(!o||this.eat(12)),c=r||a;if(a&&!o){if(r&&this.unexpected(),t)throw this.raise(_.UnsupportedDecoratorExport,e);return this.parseExportFrom(e,!0),this.finishNode(e,`ExportAllDeclaration`)}let l=this.maybeParseExportNamedSpecifiers(e);r&&i&&!a&&!l&&this.unexpected(null,5),o&&s&&this.unexpected(null,98);let u;if(c||l){if(u=!1,t)throw this.raise(_.UnsupportedDecoratorExport,e);this.parseExportFrom(e,c)}else u=this.maybeParseExportDeclaration(e);if(c||l||u){let n=e;if(this.checkExport(n,!0,!1,!!n.source),n.declaration?.type===`ClassDeclaration`)this.maybeTakeDecorators(t,n.declaration,n);else if(t)throw this.raise(_.UnsupportedDecoratorExport,e);return this.finishNode(n,`ExportNamedDeclaration`)}if(this.eat(65)){let n=e,r=this.parseExportDefaultExpression();if(n.declaration=r,r.type===`ClassDeclaration`)this.maybeTakeDecorators(t,r,n);else if(t)throw this.raise(_.UnsupportedDecoratorExport,e);return this.checkExport(n,!0,!0),this.finishNode(n,`ExportDefaultDeclaration`)}this.unexpected(null,5)}eatExportStar(e){return this.eat(55)}maybeParseExportDefaultSpecifier(e,t){if(t||this.isExportDefaultSpecifier()){this.expectPlugin(`exportDefaultFrom`,t?.loc.start);let n=t||this.parseIdentifier(!0),r=this.startNodeAtNode(n);return r.exported=n,e.specifiers=[this.finishNode(r,`ExportDefaultSpecifier`)],!0}return!1}maybeParseExportNamespaceSpecifier(e){if(this.isContextual(93)){var t;(t=e).specifiers??(t.specifiers=[]);let n=this.startNodeAt(this.state.lastTokStartLoc);return this.next(),n.exported=this.parseModuleExportName(),e.specifiers.push(this.finishNode(n,`ExportNamespaceSpecifier`)),!0}return!1}maybeParseExportNamedSpecifiers(e){if(this.match(5)){let t=e;t.specifiers||=[];let n=t.exportKind===`type`;return t.specifiers.push(...this.parseExportSpecifiers(n)),t.source=null,t.declaration=null,this.hasPlugin(`importAssertions`)&&(t.assertions=[]),!0}return!1}maybeParseExportDeclaration(e){return this.shouldParseExportDeclaration()?(e.specifiers=[],e.source=null,this.hasPlugin(`importAssertions`)&&(e.assertions=[]),e.declaration=this.parseExportDeclaration(e),!0):!1}isAsyncFunction(){if(!this.isContextual(95))return!1;let e=this.nextTokenInLineStart();return this.isUnparsedContextual(e,`function`)}parseExportDefaultExpression(){let e=this.startNode();if(this.match(68))return this.next(),this.parseFunction(e,5);if(this.isAsyncFunction())return this.next(),this.next(),this.parseFunction(e,13);if(this.match(80))return this.parseClass(e,!0,!0);if(this.match(26))return this.hasPlugin(`decorators`)&&this.getPluginOption(`decorators`,`decoratorsBeforeExport`)===!0&&this.raise(_.DecoratorBeforeExport,this.state.startLoc),this.parseClass(this.maybeTakeDecorators(this.parseDecorators(!1),this.startNode()),!0,!0);if(this.match(75)||this.match(74)||this.isLet())throw this.raise(_.UnsupportedDefaultExport,this.state.startLoc);let t=this.parseMaybeAssignAllowIn();return this.semicolon(),t}parseExportDeclaration(e){return this.match(80)?this.parseClass(this.startNode(),!0,!1):this.parseStatementListItem()}isExportDefaultSpecifier(){let{type:e}=this.state;if(L(e)){if(e===95&&!this.state.containsEsc||e===100)return!1;if((e===130||e===129)&&!this.state.containsEsc){let{type:e}=this.lookahead();if(L(e)&&e!==98||e===5)return this.expectOnePlugin([`flow`,`typescript`]),!1}}else if(!this.match(65))return!1;let t=this.nextTokenStart(),n=this.isUnparsedContextual(t,`from`);if(this.input.charCodeAt(t)===44||L(this.state.type)&&n)return!0;if(this.match(65)&&n){let e=this.input.charCodeAt(this.nextTokenStartSince(t+4));return e===34||e===39}return!1}parseExportFrom(e,t){this.eatContextual(98)?(e.source=this.parseImportSource(),this.checkExport(e),this.maybeParseImportAttributes(e),this.checkJSONModuleImport(e)):t&&this.unexpected(),this.semicolon()}shouldParseExportDeclaration(){let{type:e}=this.state;return e===26&&(this.expectOnePlugin([`decorators`,`decorators-legacy`]),this.hasPlugin(`decorators`))?(this.getPluginOption(`decorators`,`decoratorsBeforeExport`)===!0&&this.raise(_.DecoratorBeforeExport,this.state.startLoc),!0):this.isContextual(107)||this.isContextual(96)&&this.startsAwaitUsing()?(this.raise(_.UsingDeclarationExport,this.state.startLoc),!0):e===74||e===75||e===68||e===80||this.isLet()||this.isAsyncFunction()}checkExport(e,t,n,r){if(t){var i;if(n){if(this.checkDuplicateExports(e,`default`),this.hasPlugin(`exportDefaultFrom`)){var a;let t=e.declaration;t.type===`Identifier`&&t.name===`from`&&t.end-t.start===4&&!((a=t.extra)!=null&&a.parenthesized)&&this.raise(_.ExportDefaultFromAsIdentifier,t)}}else if((i=e.specifiers)!=null&&i.length)for(let t of e.specifiers){let{exported:e}=t,n=e.type===`Identifier`?e.name:e.value;if(this.checkDuplicateExports(t,n),!r&&t.local){let{local:e}=t;e.type===`Identifier`?(this.checkReservedWord(e.name,e.loc.start,!0,!1),this.scope.checkLocalExport(e)):this.raise(_.ExportBindingIsString,t,{localName:e.value,exportName:n})}}else if(e.declaration){let t=e.declaration;if(t.type===`FunctionDeclaration`||t.type===`ClassDeclaration`){let{id:n}=t;if(!n)throw Error(`Assertion failure`);this.checkDuplicateExports(e,n.name)}else if(t.type===`VariableDeclaration`)for(let e of t.declarations)this.checkDeclaration(e.id)}}}checkDeclaration(e){if(e.type===`Identifier`)this.checkDuplicateExports(e,e.name);else if(e.type===`ObjectPattern`)for(let t of e.properties)this.checkDeclaration(t);else if(e.type===`ArrayPattern`)for(let t of e.elements)t&&this.checkDeclaration(t);else e.type===`ObjectProperty`?this.checkDeclaration(e.value):e.type===`RestElement`?this.checkDeclaration(e.argument):e.type===`AssignmentPattern`&&this.checkDeclaration(e.left)}checkDuplicateExports(e,t){this.exportedIdentifiers.has(t)&&(t===`default`?this.raise(_.DuplicateDefaultExport,e):this.raise(_.DuplicateExport,e,{exportName:t})),this.exportedIdentifiers.add(t)}parseExportSpecifiers(e){let t=[],n=!0;for(this.expect(5);!this.eat(8);){if(n)n=!1;else if(this.expect(12),this.eat(8))break;let r=this.isContextual(130),i=this.match(134),a=this.startNode();a.local=this.parseModuleExportName(),t.push(this.parseExportSpecifier(a,i,e,r))}return t}parseExportSpecifier(e,t,n,r){return this.eatContextual(93)?e.exported=this.parseModuleExportName():t?e.exported=Ft(e.local):e.exported||=Pt(e.local),this.finishNode(e,`ExportSpecifier`)}parseModuleExportName(){if(this.match(134)){let e=this.parseStringLiteral(this.state.value),t=xn.exec(e.value);return t&&this.raise(_.ModuleExportNameHasLoneSurrogate,e,{surrogateCharCode:t[0].charCodeAt(0)}),e}return this.parseIdentifier(!0)}isJSONModuleImport(e){return e.assertions==null?!1:e.assertions.some(({key:e,value:t})=>t.value===`json`&&(e.type===`Identifier`?e.name===`type`:e.value===`type`))}checkImportReflection(e){let{specifiers:t}=e,n=t.length===1?t[0].type:null;e.phase===`source`?n!==`ImportDefaultSpecifier`&&this.raise(_.SourcePhaseImportRequiresDefault,t[0].loc.start):e.phase===`defer`?n!==`ImportNamespaceSpecifier`&&this.raise(_.DeferImportRequiresNamespace,t[0].loc.start):e.module&&(n!==`ImportDefaultSpecifier`&&this.raise(_.ImportReflectionNotBinding,t[0].loc.start),e.assertions?.length>0&&this.raise(_.ImportReflectionHasAssertion,t[0].loc.start))}checkJSONModuleImport(e){if(this.isJSONModuleImport(e)&&e.type!==`ExportAllDeclaration`){let{specifiers:t}=e;if(t!=null){let e=t.find(e=>{let t;if(e.type===`ExportSpecifier`?t=e.local:e.type===`ImportSpecifier`&&(t=e.imported),t!==void 0)return t.type===`Identifier`?t.name!==`default`:t.value!==`default`});e!==void 0&&this.raise(_.ImportJSONBindingNotDefault,e.loc.start)}}}isPotentialImportPhase(e){return e?!1:this.isContextual(105)||this.isContextual(97)||this.isContextual(127)}applyImportPhase(e,t,n,r){t||(n===`module`?(this.expectPlugin(`importReflection`,r),e.module=!0):this.hasPlugin(`importReflection`)&&(e.module=!1),n===`source`?(this.expectPlugin(`sourcePhaseImports`,r),e.phase=`source`):n===`defer`?(this.expectPlugin(`deferredImportEvaluation`,r),e.phase=`defer`):this.hasPlugin(`sourcePhaseImports`)&&(e.phase=null))}parseMaybeImportPhase(e,t){if(!this.isPotentialImportPhase(t))return this.applyImportPhase(e,t,null),null;let n=this.parseIdentifier(!0),{type:r}=this.state;return(le(r)?r!==98||this.lookaheadCharCode()===102:r!==12)?(this.resetPreviousIdentifierLeadingComments(n),this.applyImportPhase(e,t,n.name,n.loc.start),null):(this.applyImportPhase(e,t,null),n)}isPrecedingIdImportPhase(e){let{type:t}=this.state;return L(t)?t!==98||this.lookaheadCharCode()===102:t!==12}parseImport(e){return this.match(134)?this.parseImportSourceAndAttributes(e):this.parseImportSpecifiersAndAfter(e,this.parseMaybeImportPhase(e,!1))}parseImportSpecifiersAndAfter(e,t){e.specifiers=[];let n=!this.maybeParseDefaultImportSpecifier(e,t)||this.eat(12),r=n&&this.maybeParseStarImportSpecifier(e);return n&&!r&&this.parseNamedImportSpecifiers(e),this.expectContextual(98),this.parseImportSourceAndAttributes(e)}parseImportSourceAndAttributes(e){return e.specifiers??=[],e.source=this.parseImportSource(),this.maybeParseImportAttributes(e),this.checkImportReflection(e),this.checkJSONModuleImport(e),this.semicolon(),this.finishNode(e,`ImportDeclaration`)}parseImportSource(){return this.match(134)||this.unexpected(),this.parseExprAtom()}parseImportSpecifierLocal(e,t,n){t.local=this.parseIdentifier(),e.specifiers.push(this.finishImportSpecifier(t,n))}finishImportSpecifier(e,t,n=8201){return this.checkLVal(e.local,{type:t},n),this.finishNode(e,t)}parseImportAttributes(){this.expect(5);let e=[],t=new Set;do{if(this.match(8))break;let n=this.startNode(),r=this.state.value;if(t.has(r)&&this.raise(_.ModuleAttributesWithDuplicateKeys,this.state.startLoc,{key:r}),t.add(r),this.match(134)?n.key=this.parseStringLiteral(r):n.key=this.parseIdentifier(!0),this.expect(14),!this.match(134))throw this.raise(_.ModuleAttributeInvalidValue,this.state.startLoc);n.value=this.parseStringLiteral(this.state.value),e.push(this.finishNode(n,`ImportAttribute`))}while(this.eat(12));return this.expect(8),e}parseModuleAttributes(){let e=[],t=new Set;do{let n=this.startNode();if(n.key=this.parseIdentifier(!0),n.key.name!==`type`&&this.raise(_.ModuleAttributeDifferentFromType,n.key),t.has(n.key.name)&&this.raise(_.ModuleAttributesWithDuplicateKeys,n.key,{key:n.key.name}),t.add(n.key.name),this.expect(14),!this.match(134))throw this.raise(_.ModuleAttributeInvalidValue,this.state.startLoc);n.value=this.parseStringLiteral(this.state.value),e.push(this.finishNode(n,`ImportAttribute`))}while(this.eat(12));return e}maybeParseImportAttributes(e){let t;var n=!1;if(this.match(76)){if(this.hasPrecedingLineBreak()&&this.lookaheadCharCode()===40)return;this.next(),t=this.hasPlugin(`moduleAttributes`)?this.parseModuleAttributes():this.parseImportAttributes(),n=!0}else this.isContextual(94)&&!this.hasPrecedingLineBreak()?(!this.hasPlugin(`deprecatedImportAssert`)&&!this.hasPlugin(`importAssertions`)&&this.raise(_.ImportAttributesUseAssert,this.state.startLoc),this.hasPlugin(`importAssertions`)||this.addExtra(e,`deprecatedAssertSyntax`,!0),this.next(),t=this.parseImportAttributes()):t=[];!n&&this.hasPlugin(`importAssertions`)?e.assertions=t:e.attributes=t}maybeParseDefaultImportSpecifier(e,t){if(t){let n=this.startNodeAtNode(t);return n.local=t,e.specifiers.push(this.finishImportSpecifier(n,`ImportDefaultSpecifier`)),!0}else if(le(this.state.type))return this.parseImportSpecifierLocal(e,this.startNode(),`ImportDefaultSpecifier`),!0;return!1}maybeParseStarImportSpecifier(e){if(this.match(55)){let t=this.startNode();return this.next(),this.expectContextual(93),this.parseImportSpecifierLocal(e,t,`ImportNamespaceSpecifier`),!0}return!1}parseNamedImportSpecifiers(e){let t=!0;for(this.expect(5);!this.eat(8);){if(t)t=!1;else{if(this.eat(14))throw this.raise(_.DestructureNamedImport,this.state.startLoc);if(this.expect(12),this.eat(8))break}let n=this.startNode(),r=this.match(134),i=this.isContextual(130);n.imported=this.parseModuleExportName();let a=this.parseImportSpecifier(n,r,e.importKind===`type`||e.importKind===`typeof`,i,void 0);e.specifiers.push(a)}}parseImportSpecifier(e,t,n,r,i){if(this.eatContextual(93))e.local=this.parseIdentifier();else{let{imported:n}=e;if(t)throw this.raise(_.ImportBindingIsString,e,{importName:n.value});this.checkReservedWord(n.name,e.loc.start,!0,!0),e.local||=Pt(n)}return this.finishImportSpecifier(e,`ImportSpecifier`,i)}isThisParam(e){return e.type===`Identifier`&&e.name===`this`}},Tn=class extends wn{static{x(this,`Parser`)}constructor(e,t,n){e=_n(e),super(e,t),this.options=e,this.initializeScopes(),this.plugins=n,this.filename=e.sourceFilename,this.startIndex=e.startIndex}getScopeHandler(){return We}parse(){this.enterInitialScopes();let e=this.startNode(),t=this.startNode();return this.nextToken(),e.errors=null,this.parseTopLevel(e,t),e.errors=this.state.errors,e.comments.length=this.state.commentsLen,e}};function En(e,t){if(t?.sourceType===`unambiguous`){t=Object.assign({},t);try{t.sourceType=`module`;let n=An(t,e),r=n.parse();if(n.sawUnambiguousESM)return r;if(n.ambiguousScriptDifferentAst)try{return t.sourceType=`script`,An(t,e).parse()}catch{}else r.program.sourceType=`script`;return r}catch(n){try{return t.sourceType=`script`,An(t,e).parse()}catch{}throw n}}else return An(t,e).parse()}x(En,`parse`);function Dn(e,t){let n=An(t,e);return n.options.strictMode&&(n.state.strict=!0),n.getExpression()}x(Dn,`parseExpression`);function On(e){let t={};for(let n of Object.keys(e))t[n]=Se(e[n]);return t}x(On,`generateExportedTokenTypes`);var kn=On(se);function An(e,t){let n=Tn,r=new Map;if(e!=null&&e.plugins){for(let t of e.plugins){let e,n;typeof t==`string`?e=t:[e,n]=t,r.has(e)||r.set(e,n||{})}pn(r),n=Mn(r)}return new n(e,t,r)}x(An,`getParser`);var jn=new Map;function Mn(e){let t=[];for(let n of hn)e.has(n)&&t.push(n);let n=t.join(`|`),r=jn.get(n);if(!r){r=Tn;for(let e of t)r=mn[e](r);jn.set(n,r)}return r}x(Mn,`getParserClass`),e.parse=En,e.parseExpression=Dn,e.tokTypes=kn}}),Vn=E({"../../node_modules/.pnpm/recast@0.23.11/node_modules/recast/parsers/babel.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.parse=e.parser=void 0;var t=(G(),C(U)).__importDefault(zn());e.parser=function(){try{return Bn()}catch{try{return b(`babylon`)}catch{throw Error("Install @babel/parser to use the `typescript`, `flow`, or `babel` parsers")}}}();function n(n,r){var i=(0,t.default)(r);return i.plugins.push(`jsx`,`flow`,`decoratorAutoAccessors`),e.parser.parse(n,i)}x(n,`parse`),e.parse=n}}),Hn=E({"../../node_modules/.pnpm/recast@0.23.11/node_modules/recast/parsers/typescript.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.parse=void 0;var t=(G(),C(U)),n=Vn(),r=t.__importDefault(zn());function i(e,t){var i=(0,r.default)(t);return i.plugins.push(`typescript`),n.parser.parse(e,i)}x(i,`parse`),e.parse=i}}),Un=E({"../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/internal/constants.js"(e,t){var n=`2.0.0`,r=256;t.exports={MAX_LENGTH:r,MAX_SAFE_COMPONENT_LENGTH:16,MAX_SAFE_BUILD_LENGTH:r-6,MAX_SAFE_INTEGER:2**53-1||9007199254740991,RELEASE_TYPES:[`major`,`premajor`,`minor`,`preminor`,`patch`,`prepatch`,`prerelease`],SEMVER_SPEC_VERSION:n,FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2}}}),Wn=E({"../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/internal/debug.js"(e,t){t.exports=typeof process==`object`&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...e)=>console.error(`SEMVER`,...e):()=>{}}}),Gn=E({"../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/internal/re.js"(e,t){var{MAX_SAFE_COMPONENT_LENGTH:n,MAX_SAFE_BUILD_LENGTH:r,MAX_LENGTH:i}=Un(),a=Wn();e=t.exports={};var o=e.re=[],s=e.safeRe=[],c=e.src=[],l=e.safeSrc=[],u=e.t={},d=0,f=`[a-zA-Z0-9-]`,p=[[`\\s`,1],[`\\d`,i],[f,r]],m=x(e=>{for(let[t,n]of p)e=e.split(`${t}*`).join(`${t}{0,${n}}`).split(`${t}+`).join(`${t}{1,${n}}`);return e},`makeSafeRegex`),h=x((e,t,n)=>{let r=m(t),i=d++;a(e,i,t),u[e]=i,c[i]=t,l[i]=r,o[i]=new RegExp(t,n?`g`:void 0),s[i]=new RegExp(r,n?`g`:void 0)},`createToken`);h(`NUMERICIDENTIFIER`,`0|[1-9]\\d*`),h(`NUMERICIDENTIFIERLOOSE`,`\\d+`),h(`NONNUMERICIDENTIFIER`,`\\d*[a-zA-Z-]${f}*`),h(`MAINVERSION`,`(${c[u.NUMERICIDENTIFIER]})\\.(${c[u.NUMERICIDENTIFIER]})\\.(${c[u.NUMERICIDENTIFIER]})`),h(`MAINVERSIONLOOSE`,`(${c[u.NUMERICIDENTIFIERLOOSE]})\\.(${c[u.NUMERICIDENTIFIERLOOSE]})\\.(${c[u.NUMERICIDENTIFIERLOOSE]})`),h(`PRERELEASEIDENTIFIER`,`(?:${c[u.NONNUMERICIDENTIFIER]}|${c[u.NUMERICIDENTIFIER]})`),h(`PRERELEASEIDENTIFIERLOOSE`,`(?:${c[u.NONNUMERICIDENTIFIER]}|${c[u.NUMERICIDENTIFIERLOOSE]})`),h(`PRERELEASE`,`(?:-(${c[u.PRERELEASEIDENTIFIER]}(?:\\.${c[u.PRERELEASEIDENTIFIER]})*))`),h(`PRERELEASELOOSE`,`(?:-?(${c[u.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${c[u.PRERELEASEIDENTIFIERLOOSE]})*))`),h(`BUILDIDENTIFIER`,`${f}+`),h(`BUILD`,`(?:\\+(${c[u.BUILDIDENTIFIER]}(?:\\.${c[u.BUILDIDENTIFIER]})*))`),h(`FULLPLAIN`,`v?${c[u.MAINVERSION]}${c[u.PRERELEASE]}?${c[u.BUILD]}?`),h(`FULL`,`^${c[u.FULLPLAIN]}$`),h(`LOOSEPLAIN`,`[v=\\s]*${c[u.MAINVERSIONLOOSE]}${c[u.PRERELEASELOOSE]}?${c[u.BUILD]}?`),h(`LOOSE`,`^${c[u.LOOSEPLAIN]}$`),h(`GTLT`,`((?:<|>)?=?)`),h(`XRANGEIDENTIFIERLOOSE`,`${c[u.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`),h(`XRANGEIDENTIFIER`,`${c[u.NUMERICIDENTIFIER]}|x|X|\\*`),h(`XRANGEPLAIN`,`[v=\\s]*(${c[u.XRANGEIDENTIFIER]})(?:\\.(${c[u.XRANGEIDENTIFIER]})(?:\\.(${c[u.XRANGEIDENTIFIER]})(?:${c[u.PRERELEASE]})?${c[u.BUILD]}?)?)?`),h(`XRANGEPLAINLOOSE`,`[v=\\s]*(${c[u.XRANGEIDENTIFIERLOOSE]})(?:\\.(${c[u.XRANGEIDENTIFIERLOOSE]})(?:\\.(${c[u.XRANGEIDENTIFIERLOOSE]})(?:${c[u.PRERELEASELOOSE]})?${c[u.BUILD]}?)?)?`),h(`XRANGE`,`^${c[u.GTLT]}\\s*${c[u.XRANGEPLAIN]}$`),h(`XRANGELOOSE`,`^${c[u.GTLT]}\\s*${c[u.XRANGEPLAINLOOSE]}$`),h(`COERCEPLAIN`,`(^|[^\\d])(\\d{1,${n}})(?:\\.(\\d{1,${n}}))?(?:\\.(\\d{1,${n}}))?`),h(`COERCE`,`${c[u.COERCEPLAIN]}(?:$|[^\\d])`),h(`COERCEFULL`,c[u.COERCEPLAIN]+`(?:${c[u.PRERELEASE]})?(?:${c[u.BUILD]})?(?:$|[^\\d])`),h(`COERCERTL`,c[u.COERCE],!0),h(`COERCERTLFULL`,c[u.COERCEFULL],!0),h(`LONETILDE`,`(?:~>?)`),h(`TILDETRIM`,`(\\s*)${c[u.LONETILDE]}\\s+`,!0),e.tildeTrimReplace=`$1~`,h(`TILDE`,`^${c[u.LONETILDE]}${c[u.XRANGEPLAIN]}$`),h(`TILDELOOSE`,`^${c[u.LONETILDE]}${c[u.XRANGEPLAINLOOSE]}$`),h(`LONECARET`,`(?:\\^)`),h(`CARETTRIM`,`(\\s*)${c[u.LONECARET]}\\s+`,!0),e.caretTrimReplace=`$1^`,h(`CARET`,`^${c[u.LONECARET]}${c[u.XRANGEPLAIN]}$`),h(`CARETLOOSE`,`^${c[u.LONECARET]}${c[u.XRANGEPLAINLOOSE]}$`),h(`COMPARATORLOOSE`,`^${c[u.GTLT]}\\s*(${c[u.LOOSEPLAIN]})$|^$`),h(`COMPARATOR`,`^${c[u.GTLT]}\\s*(${c[u.FULLPLAIN]})$|^$`),h(`COMPARATORTRIM`,`(\\s*)${c[u.GTLT]}\\s*(${c[u.LOOSEPLAIN]}|${c[u.XRANGEPLAIN]})`,!0),e.comparatorTrimReplace=`$1$2$3`,h(`HYPHENRANGE`,`^\\s*(${c[u.XRANGEPLAIN]})\\s+-\\s+(${c[u.XRANGEPLAIN]})\\s*$`),h(`HYPHENRANGELOOSE`,`^\\s*(${c[u.XRANGEPLAINLOOSE]})\\s+-\\s+(${c[u.XRANGEPLAINLOOSE]})\\s*$`),h(`STAR`,`(<|>)?=?\\s*\\*`),h(`GTE0`,`^\\s*>=\\s*0\\.0\\.0\\s*$`),h(`GTE0PRE`,`^\\s*>=\\s*0\\.0\\.0-0\\s*$`)}}),Kn=E({"../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/internal/parse-options.js"(e,t){var n=Object.freeze({loose:!0}),r=Object.freeze({});t.exports=x(e=>e?typeof e==`object`?e:n:r,`parseOptions`)}}),qn=E({"../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/internal/identifiers.js"(e,t){var n=/^[0-9]+$/,r=x((e,t)=>{if(typeof e==`number`&&typeof t==`number`)return e===t?0:e<t?-1:1;let r=n.test(e),i=n.test(t);return r&&i&&(e=+e,t=+t),e===t?0:r&&!i?-1:i&&!r?1:e<t?-1:1},`compareIdentifiers`);t.exports={compareIdentifiers:r,rcompareIdentifiers:x((e,t)=>r(t,e),`rcompareIdentifiers`)}}}),Jn=E({"../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/classes/semver.js"(e,t){var n=Wn(),{MAX_LENGTH:r,MAX_SAFE_INTEGER:i}=Un(),{safeRe:a,t:o}=Gn(),s=Kn(),{compareIdentifiers:c}=qn(),l=x((e,t)=>{let n=t.split(`.`);if(n.length>e.length)return!1;for(let t=0;t<n.length;t++)if(c(e[t],n[t])!==0)return!1;return!0},`isPrereleaseIdentifier`);t.exports=class e{static{x(this,`SemVer`)}constructor(t,c){if(c=s(c),t instanceof e){if(t.loose===!!c.loose&&t.includePrerelease===!!c.includePrerelease)return t;t=t.version}else if(typeof t!=`string`)throw TypeError(`Invalid version. Must be a string. Got type "${typeof t}".`);if(t.length>r)throw TypeError(`version is longer than ${r} characters`);n(`SemVer`,t,c),this.options=c,this.loose=!!c.loose,this.includePrerelease=!!c.includePrerelease;let l=t.trim().match(c.loose?a[o.LOOSE]:a[o.FULL]);if(!l)throw TypeError(`Invalid Version: ${t}`);if(this.raw=t,this.major=+l[1],this.minor=+l[2],this.patch=+l[3],this.major>i||this.major<0)throw TypeError(`Invalid major version`);if(this.minor>i||this.minor<0)throw TypeError(`Invalid minor version`);if(this.patch>i||this.patch<0)throw TypeError(`Invalid patch version`);l[4]?this.prerelease=l[4].split(`.`).map(e=>{if(/^[0-9]+$/.test(e)){let t=+e;if(t>=0&&t<i)return t}return e}):this.prerelease=[],this.build=l[5]?l[5].split(`.`):[],this.format()}format(){return this.version=`${this.major}.${this.minor}.${this.patch}`,this.prerelease.length&&(this.version+=`-${this.prerelease.join(`.`)}`),this.version}toString(){return this.version}compare(t){if(n(`SemVer.compare`,this.version,this.options,t),!(t instanceof e)){if(typeof t==`string`&&t===this.version)return 0;t=new e(t,this.options)}return t.version===this.version?0:this.compareMain(t)||this.comparePre(t)}compareMain(t){return t instanceof e||(t=new e(t,this.options)),this.major<t.major?-1:this.major>t.major?1:this.minor<t.minor?-1:this.minor>t.minor?1:this.patch<t.patch?-1:+(this.patch>t.patch)}comparePre(t){if(t instanceof e||(t=new e(t,this.options)),this.prerelease.length&&!t.prerelease.length)return-1;if(!this.prerelease.length&&t.prerelease.length)return 1;if(!this.prerelease.length&&!t.prerelease.length)return 0;let r=0;do{let e=this.prerelease[r],i=t.prerelease[r];if(n(`prerelease compare`,r,e,i),e===void 0&&i===void 0)return 0;if(i===void 0)return 1;if(e===void 0)return-1;if(e===i)continue;return c(e,i)}while(++r)}compareBuild(t){t instanceof e||(t=new e(t,this.options));let r=0;do{let e=this.build[r],i=t.build[r];if(n(`build compare`,r,e,i),e===void 0&&i===void 0)return 0;if(i===void 0)return 1;if(e===void 0)return-1;if(e===i)continue;return c(e,i)}while(++r)}inc(e,t,n){if(e.startsWith(`pre`)){if(!t&&n===!1)throw Error(`invalid increment argument: identifier is empty`);if(t){let e=`-${t}`.match(this.options.loose?a[o.PRERELEASELOOSE]:a[o.PRERELEASE]);if(!e||e[1]!==t)throw Error(`invalid identifier: ${t}`)}}switch(e){case`premajor`:this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc(`pre`,t,n);break;case`preminor`:this.prerelease.length=0,this.patch=0,this.minor++,this.inc(`pre`,t,n);break;case`prepatch`:this.prerelease.length=0,this.inc(`patch`,t,n),this.inc(`pre`,t,n);break;case`prerelease`:this.prerelease.length===0&&this.inc(`patch`,t,n),this.inc(`pre`,t,n);break;case`release`:if(this.prerelease.length===0)throw Error(`version ${this.raw} is not a prerelease`);this.prerelease.length=0;break;case`major`:(this.minor!==0||this.patch!==0||this.prerelease.length===0)&&this.major++,this.minor=0,this.patch=0,this.prerelease=[];break;case`minor`:(this.patch!==0||this.prerelease.length===0)&&this.minor++,this.patch=0,this.prerelease=[];break;case`patch`:this.prerelease.length===0&&this.patch++,this.prerelease=[];break;case`pre`:{let e=+!!Number(n);if(this.prerelease.length===0)this.prerelease=[e];else{let r=this.prerelease.length;for(;--r>=0;)typeof this.prerelease[r]==`number`&&(this.prerelease[r]++,r=-2);if(r===-1){if(t===this.prerelease.join(`.`)&&n===!1)throw Error(`invalid increment argument: identifier already exists`);this.prerelease.push(e)}}if(t){let r=[t,e];if(n===!1&&(r=[t]),l(this.prerelease,t)){let e=this.prerelease[t.split(`.`).length];isNaN(e)&&(this.prerelease=r)}else this.prerelease=r}break}default:throw Error(`invalid increment argument: ${e}`)}return this.raw=this.format(),this.build.length&&(this.raw+=`+${this.build.join(`.`)}`),this}}}}),Yn=E({"../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/functions/parse.js"(e,t){var n=Jn();t.exports=x((e,t,r=!1)=>{if(e instanceof n)return e;try{return new n(e,t)}catch(e){if(!r)return null;throw e}},`parse`)}}),Xn=E({"../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/functions/valid.js"(e,t){var n=Yn();t.exports=x((e,t)=>{let r=n(e,t);return r?r.version:null},`valid`)}}),Zn=E({"../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/functions/clean.js"(e,t){var n=Yn();t.exports=x((e,t)=>{let r=n(e.trim().replace(/^[=v]+/,``),t);return r?r.version:null},`clean`)}}),Qn=E({"../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/functions/inc.js"(e,t){var n=Jn();t.exports=x((e,t,r,i,a)=>{typeof r==`string`&&(a=i,i=r,r=void 0);try{return new n(e instanceof n?e.version:e,r).inc(t,i,a).version}catch{return null}},`inc`)}}),$n=E({"../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/functions/diff.js"(e,t){var n=Yn();t.exports=x((e,t)=>{let r=n(e,null,!0),i=n(t,null,!0),a=r.compare(i);if(a===0)return null;let o=a>0,s=o?r:i,c=o?i:r,l=!!s.prerelease.length;if(c.prerelease.length&&!l){if(!c.patch&&!c.minor)return`major`;if(c.compareMain(s)===0)return c.minor&&!c.patch?`minor`:`patch`}let u=l?`pre`:``;return r.major===i.major?r.minor===i.minor?r.patch===i.patch?`prerelease`:u+`patch`:u+`minor`:u+`major`},`diff`)}}),er=E({"../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/functions/major.js"(e,t){var n=Jn();t.exports=x((e,t)=>new n(e,t).major,`major`)}}),tr=E({"../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/functions/minor.js"(e,t){var n=Jn();t.exports=x((e,t)=>new n(e,t).minor,`minor`)}}),nr=E({"../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/functions/patch.js"(e,t){var n=Jn();t.exports=x((e,t)=>new n(e,t).patch,`patch`)}}),rr=E({"../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/functions/prerelease.js"(e,t){var n=Yn();t.exports=x((e,t)=>{let r=n(e,t);return r&&r.prerelease.length?r.prerelease:null},`prerelease`)}}),ir=E({"../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/functions/compare.js"(e,t){var n=Jn();t.exports=x((e,t,r)=>new n(e,r).compare(new n(t,r)),`compare`)}}),ar=E({"../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/functions/rcompare.js"(e,t){var n=ir();t.exports=x((e,t,r)=>n(t,e,r),`rcompare`)}}),or=E({"../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/functions/compare-loose.js"(e,t){var n=ir();t.exports=x((e,t)=>n(e,t,!0),`compareLoose`)}}),sr=E({"../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/functions/compare-build.js"(e,t){var n=Jn();t.exports=x((e,t,r)=>{let i=new n(e,r),a=new n(t,r);return i.compare(a)||i.compareBuild(a)},`compareBuild`)}}),cr=E({"../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/functions/sort.js"(e,t){var n=sr();t.exports=x((e,t)=>e.sort((e,r)=>n(e,r,t)),`sort`)}}),lr=E({"../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/functions/rsort.js"(e,t){var n=sr();t.exports=x((e,t)=>e.sort((e,r)=>n(r,e,t)),`rsort`)}}),ur=E({"../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/functions/gt.js"(e,t){var n=ir();t.exports=x((e,t,r)=>n(e,t,r)>0,`gt`)}}),dr=E({"../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/functions/lt.js"(e,t){var n=ir();t.exports=x((e,t,r)=>n(e,t,r)<0,`lt`)}}),fr=E({"../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/functions/eq.js"(e,t){var n=ir();t.exports=x((e,t,r)=>n(e,t,r)===0,`eq`)}}),pr=E({"../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/functions/neq.js"(e,t){var n=ir();t.exports=x((e,t,r)=>n(e,t,r)!==0,`neq`)}}),mr=E({"../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/functions/gte.js"(e,t){var n=ir();t.exports=x((e,t,r)=>n(e,t,r)>=0,`gte`)}}),hr=E({"../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/functions/lte.js"(e,t){var n=ir();t.exports=x((e,t,r)=>n(e,t,r)<=0,`lte`)}}),gr=E({"../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/functions/cmp.js"(e,t){var n=fr(),r=pr(),i=ur(),a=mr(),o=dr(),s=hr();t.exports=x((e,t,c,l)=>{switch(t){case`===`:return typeof e==`object`&&(e=e.version),typeof c==`object`&&(c=c.version),e===c;case`!==`:return typeof e==`object`&&(e=e.version),typeof c==`object`&&(c=c.version),e!==c;case``:case`=`:case`==`:return n(e,c,l);case`!=`:return r(e,c,l);case`>`:return i(e,c,l);case`>=`:return a(e,c,l);case`<`:return o(e,c,l);case`<=`:return s(e,c,l);default:throw TypeError(`Invalid operator: ${t}`)}},`cmp`)}}),_r=E({"../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/functions/coerce.js"(e,t){var n=Jn(),r=Yn(),{safeRe:i,t:a}=Gn();t.exports=x((e,t)=>{if(e instanceof n)return e;if(typeof e==`number`&&(e=String(e)),typeof e!=`string`)return null;t||={};let o=null;if(!t.rtl)o=e.match(t.includePrerelease?i[a.COERCEFULL]:i[a.COERCE]);else{let n=t.includePrerelease?i[a.COERCERTLFULL]:i[a.COERCERTL],r;for(;(r=n.exec(e))&&(!o||o.index+o[0].length!==e.length);)(!o||r.index+r[0].length!==o.index+o[0].length)&&(o=r),n.lastIndex=r.index+r[1].length+r[2].length;n.lastIndex=-1}if(o===null)return null;let s=o[2];return r(`${s}.${o[3]||`0`}.${o[4]||`0`}${t.includePrerelease&&o[5]?`-${o[5]}`:``}${t.includePrerelease&&o[6]?`+${o[6]}`:``}`,t)},`coerce`)}}),vr=E({"../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/functions/truncate.js"(e,t){var n=Yn(),r=Un(),i=Jn(),a=x((e,t,n)=>{if(!r.RELEASE_TYPES.includes(t))return null;let i=o(e,n);return i&&s(i,t)},`truncate`),o=x((e,t)=>n(e instanceof i?e.version:e,t),`cloneInputVersion`),s=x((e,t)=>{if(c(t))return e.version;switch(e.prerelease=[],t){case`major`:e.minor=0,e.patch=0;break;case`minor`:e.patch=0;break}return e.format()},`doTruncation`),c=x(e=>e.startsWith(`pre`),`isPrerelease`);t.exports=a}}),yr=E({"../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/internal/lrucache.js"(e,t){t.exports=class{static{x(this,`LRUCache`)}constructor(){this.max=1e3,this.map=new Map}get(e){let t=this.map.get(e);if(t!==void 0)return this.map.delete(e),this.map.set(e,t),t}delete(e){return this.map.delete(e)}set(e,t){if(!this.delete(e)&&t!==void 0){if(this.map.size>=this.max){let e=this.map.keys().next().value;this.delete(e)}this.map.set(e,t)}return this}}}}),br=E({"../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/classes/range.js"(e,t){var n=/\s+/g;t.exports=class e{static{x(this,`Range`)}constructor(t,r){if(r=i(r),t instanceof e)return t.loose===!!r.loose&&t.includePrerelease===!!r.includePrerelease?t:new e(t.raw,r);if(t instanceof a)return this.raw=t.value,this.set=[[t]],this.formatted=void 0,this;if(this.options=r,this.loose=!!r.loose,this.includePrerelease=!!r.includePrerelease,this.raw=t.trim().replace(n,` `),this.set=this.raw.split(`||`).map(e=>this.parseRange(e.trim())).filter(e=>e.length),!this.set.length)throw TypeError(`Invalid SemVer Range: ${this.raw}`);if(this.set.length>1){let e=this.set[0];if(this.set=this.set.filter(e=>!_(e[0])),this.set.length===0)this.set=[e];else if(this.set.length>1){for(let e of this.set)if(e.length===1&&v(e[0])){this.set=[e];break}}}this.formatted=void 0}get range(){if(this.formatted===void 0){this.formatted=``;for(let e=0;e<this.set.length;e++){e>0&&(this.formatted+=`||`);let t=this.set[e];for(let e=0;e<t.length;e++)e>0&&(this.formatted+=` `),this.formatted+=t[e].toString().trim()}}return this.formatted}format(){return this.range}toString(){return this.range}parseRange(e){e=e.replace(g,``);let t=((this.options.includePrerelease&&m)|(this.options.loose&&h))+`:`+e,n=r.get(t);if(n)return n;let i=this.options.loose,s=i?c[u.HYPHENRANGELOOSE]:c[u.HYPHENRANGE];e=e.replace(s,ne(this.options.includePrerelease)),o(`hyphen replace`,e),e=e.replace(c[u.COMPARATORTRIM],d),o(`comparator trim`,e),e=e.replace(c[u.TILDETRIM],f),o(`tilde trim`,e),e=e.replace(c[u.CARETTRIM],p),o(`caret trim`,e);let l=e.split(` `).map(e=>b(e,this.options)).join(` `).split(/\s+/).map(e=>te(e,this.options));i&&(l=l.filter(e=>(o(`loose invalid filter`,e,this.options),!!e.match(c[u.COMPARATORLOOSE])))),o(`range list`,l);let v=new Map,y=l.map(e=>new a(e,this.options));for(let e of y){if(_(e))return[e];v.set(e.value,e)}v.size>1&&v.has(``)&&v.delete(``);let x=[...v.values()];return r.set(t,x),x}intersects(t,n){if(!(t instanceof e))throw TypeError(`a Range is required`);return this.set.some(e=>y(e,n)&&t.set.some(t=>y(t,n)&&e.every(e=>t.every(t=>e.intersects(t,n)))))}test(e){if(!e)return!1;if(typeof e==`string`)try{e=new s(e,this.options)}catch{return!1}for(let t=0;t<this.set.length;t++)if(A(this.set[t],e,this.options))return!0;return!1}};var r=new(yr()),i=Kn(),a=xr(),o=Wn(),s=Jn(),{safeRe:c,src:l,t:u,comparatorTrimReplace:d,tildeTrimReplace:f,caretTrimReplace:p}=Gn(),{FLAG_INCLUDE_PRERELEASE:m,FLAG_LOOSE:h}=Un(),g=new RegExp(l[u.BUILD],`g`),_=x(e=>e.value===`<0.0.0-0`,`isNullSet`),v=x(e=>e.value===``,`isAny`),y=x((e,t)=>{let n=!0,r=e.slice(),i=r.pop();for(;n&&r.length;)n=r.every(e=>i.intersects(e,t)),i=r.pop();return n},`isSatisfiable`),b=x((e,t)=>(e=e.replace(c[u.BUILD],``),o(`comp`,e,t),e=E(e,t),o(`caret`,e),e=w(e,t),o(`tildes`,e),e=O(e,t),o(`xrange`,e),e=k(e,t),o(`stars`,e),e),`parseComparator`),S=x(e=>!e||e.toLowerCase()===`x`||e===`*`,`isX`),C=x((e,t,n)=>S(e)&&!S(t)||S(t)&&n&&!S(n),`invalidXRangeOrder`),w=x((e,t)=>e.trim().split(/\s+/).map(e=>T(e,t)).join(` `),`replaceTildes`),T=x((e,t)=>{let n=t.loose?c[u.TILDELOOSE]:c[u.TILDE],r=t.includePrerelease?`-0`:``;return e.replace(n,(t,n,i,a,s)=>{o(`tilde`,e,t,n,i,a,s);let c;return S(n)?c=``:S(i)?c=`>=${n}.0.0${r} <${+n+1}.0.0-0`:S(a)?c=`>=${n}.${i}.0${r} <${n}.${+i+1}.0-0`:s?(o(`replaceTilde pr`,s),c=`>=${n}.${i}.${a}-${s} <${n}.${+i+1}.0-0`):c=`>=${n}.${i}.${a} <${n}.${+i+1}.0-0`,o(`tilde return`,c),c})},`replaceTilde`),E=x((e,t)=>e.trim().split(/\s+/).map(e=>D(e,t)).join(` `),`replaceCarets`),D=x((e,t)=>{o(`caret`,e,t);let n=t.loose?c[u.CARETLOOSE]:c[u.CARET],r=t.includePrerelease?`-0`:``;return e.replace(n,(t,n,i,a,s)=>{o(`caret`,e,t,n,i,a,s);let c;return S(n)?c=``:S(i)?c=`>=${n}.0.0${r} <${+n+1}.0.0-0`:S(a)?c=n===`0`?`>=${n}.${i}.0${r} <${n}.${+i+1}.0-0`:`>=${n}.${i}.0${r} <${+n+1}.0.0-0`:s?(o(`replaceCaret pr`,s),c=n===`0`?i===`0`?`>=${n}.${i}.${a}-${s} <${n}.${i}.${+a+1}-0`:`>=${n}.${i}.${a}-${s} <${n}.${+i+1}.0-0`:`>=${n}.${i}.${a}-${s} <${+n+1}.0.0-0`):(o(`no pr`),c=n===`0`?i===`0`?`>=${n}.${i}.${a} <${n}.${i}.${+a+1}-0`:`>=${n}.${i}.${a} <${n}.${+i+1}.0-0`:`>=${n}.${i}.${a} <${+n+1}.0.0-0`),o(`caret return`,c),c})},`replaceCaret`),O=x((e,t)=>(o(`replaceXRanges`,e,t),e.split(/\s+/).map(e=>ee(e,t)).join(` `)),`replaceXRanges`),ee=x((e,t)=>{e=e.trim();let n=t.loose?c[u.XRANGELOOSE]:c[u.XRANGE];return e.replace(n,(n,r,i,a,s,c)=>{if(o(`xRange`,e,n,r,i,a,s,c),C(i,a,s))return e;let l=S(i),u=l||S(a),d=u||S(s),f=d;return r===`=`&&f&&(r=``),c=t.includePrerelease?`-0`:``,l?n=r===`>`||r===`<`?`<0.0.0-0`:`*`:r&&f?(u&&(a=0),s=0,r===`>`?(r=`>=`,u?(i=+i+1,a=0,s=0):(a=+a+1,s=0)):r===`<=`&&(r=`<`,u?i=+i+1:a=+a+1),r===`<`&&(c=`-0`),n=`${r+i}.${a}.${s}${c}`):u?n=`>=${i}.0.0${c} <${+i+1}.0.0-0`:d&&(n=`>=${i}.${a}.0${c} <${i}.${+a+1}.0-0`),o(`xRange return`,n),n})},`replaceXRange`),k=x((e,t)=>(o(`replaceStars`,e,t),e.trim().replace(c[u.STAR],``)),`replaceStars`),te=x((e,t)=>(o(`replaceGTE0`,e,t),e.trim().replace(c[t.includePrerelease?u.GTE0PRE:u.GTE0],``)),`replaceGTE0`),ne=x(e=>(t,n,r,i,a,o,s,c,l,u,d,f)=>(n=S(r)?``:S(i)?`>=${r}.0.0${e?`-0`:``}`:S(a)?`>=${r}.${i}.0${e?`-0`:``}`:o?`>=${n}`:`>=${n}${e?`-0`:``}`,c=S(l)?``:S(u)?`<${+l+1}.0.0-0`:S(d)?`<${l}.${+u+1}.0-0`:f?`<=${l}.${u}.${d}-${f}`:e?`<${l}.${u}.${+d+1}-0`:`<=${c}`,`${n} ${c}`.trim()),`hyphenReplace`),A=x((e,t,n)=>{for(let n=0;n<e.length;n++)if(!e[n].test(t))return!1;if(t.prerelease.length&&!n.includePrerelease){for(let n=0;n<e.length;n++)if(o(e[n].semver),e[n].semver!==a.ANY&&e[n].semver.prerelease.length>0){let r=e[n].semver;if(r.major===t.major&&r.minor===t.minor&&r.patch===t.patch)return!0}return!1}return!0},`testSet`)}}),xr=E({"../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/classes/comparator.js"(e,t){var n=Symbol(`SemVer ANY`);t.exports=class e{static{x(this,`Comparator`)}static get ANY(){return n}constructor(t,i){if(i=r(i),t instanceof e){if(t.loose===!!i.loose)return t;t=t.value}t=t.trim().split(/\s+/).join(` `),s(`comparator`,t,i),this.options=i,this.loose=!!i.loose,this.parse(t),this.semver===n?this.value=``:this.value=this.operator+this.semver.version,s(`comp`,this)}parse(e){let t=this.options.loose?i[a.COMPARATORLOOSE]:i[a.COMPARATOR],r=e.match(t);if(!r)throw TypeError(`Invalid comparator: ${e}`);this.operator=r[1]===void 0?``:r[1],this.operator===`=`&&(this.operator=``),r[2]?this.semver=new c(r[2],this.options.loose):this.semver=n}toString(){return this.value}test(e){if(s(`Comparator.test`,e,this.options.loose),this.semver===n||e===n)return!0;if(typeof e==`string`)try{e=new c(e,this.options)}catch{return!1}return o(e,this.operator,this.semver,this.options)}intersects(t,n){if(!(t instanceof e))throw TypeError(`a Comparator is required`);return this.operator===``?this.value===``?!0:new l(t.value,n).test(this.value):t.operator===``?t.value===``?!0:new l(this.value,n).test(t.semver):(n=r(n),n.includePrerelease&&(this.value===`<0.0.0-0`||t.value===`<0.0.0-0`)||!n.includePrerelease&&(this.value.startsWith(`<0.0.0`)||t.value.startsWith(`<0.0.0`))?!1:!!(this.operator.startsWith(`>`)&&t.operator.startsWith(`>`)||this.operator.startsWith(`<`)&&t.operator.startsWith(`<`)||this.semver.version===t.semver.version&&this.operator.includes(`=`)&&t.operator.includes(`=`)||o(this.semver,`<`,t.semver,n)&&this.operator.startsWith(`>`)&&t.operator.startsWith(`<`)||o(this.semver,`>`,t.semver,n)&&this.operator.startsWith(`<`)&&t.operator.startsWith(`>`)))}};var r=Kn(),{safeRe:i,t:a}=Gn(),o=gr(),s=Wn(),c=Jn(),l=br()}}),Sr=E({"../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/functions/satisfies.js"(e,t){var n=br();t.exports=x((e,t,r)=>{try{t=new n(t,r)}catch{return!1}return t.test(e)},`satisfies`)}}),Cr=E({"../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/ranges/to-comparators.js"(e,t){var n=br();t.exports=x((e,t)=>new n(e,t).set.map(e=>e.map(e=>e.value).join(` `).trim().split(` `)),`toComparators`)}}),wr=E({"../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/ranges/max-satisfying.js"(e,t){var n=Jn(),r=br();t.exports=x((e,t,i)=>{let a=null,o=null,s=null;try{s=new r(t,i)}catch{return null}return e.forEach(e=>{s.test(e)&&(!a||o.compare(e)===-1)&&(a=e,o=new n(a,i))}),a},`maxSatisfying`)}}),Tr=E({"../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/ranges/min-satisfying.js"(e,t){var n=Jn(),r=br();t.exports=x((e,t,i)=>{let a=null,o=null,s=null;try{s=new r(t,i)}catch{return null}return e.forEach(e=>{s.test(e)&&(!a||o.compare(e)===1)&&(a=e,o=new n(a,i))}),a},`minSatisfying`)}}),Er=E({"../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/ranges/min-version.js"(e,t){var n=Jn(),r=br(),i=ur();t.exports=x((e,t)=>{e=new r(e,t);let a=new n(`0.0.0`);if(e.test(a)||(a=new n(`0.0.0-0`),e.test(a)))return a;a=null;for(let t=0;t<e.set.length;++t){let r=e.set[t],o=null;r.forEach(e=>{let t=new n(e.semver.version);switch(e.operator){case`>`:t.prerelease.length===0?t.patch++:t.prerelease.push(0),t.raw=t.format();case``:case`>=`:(!o||i(t,o))&&(o=t);break;case`<`:case`<=`:break;default:throw Error(`Unexpected operation: ${e.operator}`)}}),o&&(!a||i(a,o))&&(a=o)}return a&&e.test(a)?a:null},`minVersion`)}}),Dr=E({"../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/ranges/valid.js"(e,t){var n=br();t.exports=x((e,t)=>{try{return new n(e,t).range||`*`}catch{return null}},`validRange`)}}),Or=E({"../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/ranges/outside.js"(e,t){var n=Jn(),r=xr(),{ANY:i}=r,a=br(),o=Sr(),s=ur(),c=dr(),l=hr(),u=mr();t.exports=x((e,t,d,f)=>{e=new n(e,f),t=new a(t,f);let p,m,h,g,_;switch(d){case`>`:p=s,m=l,h=c,g=`>`,_=`>=`;break;case`<`:p=c,m=u,h=s,g=`<`,_=`<=`;break;default:throw TypeError(`Must provide a hilo val of "<" or ">"`)}if(o(e,t,f))return!1;for(let n=0;n<t.set.length;++n){let a=t.set[n],o=null,s=null;if(a.forEach(e=>{e.semver===i&&(e=new r(`>=0.0.0`)),o||=e,s||=e,p(e.semver,o.semver,f)?o=e:h(e.semver,s.semver,f)&&(s=e)}),o.operator===g||o.operator===_||(!s.operator||s.operator===g)&&m(e,s.semver)||s.operator===_&&h(e,s.semver))return!1}return!0},`outside`)}}),kr=E({"../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/ranges/gtr.js"(e,t){var n=Or();t.exports=x((e,t,r)=>n(e,t,`>`,r),`gtr`)}}),Ar=E({"../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/ranges/ltr.js"(e,t){var n=Or();t.exports=x((e,t,r)=>n(e,t,`<`,r),`ltr`)}}),jr=E({"../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/ranges/intersects.js"(e,t){var n=br();t.exports=x((e,t,r)=>(e=new n(e,r),t=new n(t,r),e.intersects(t,r)),`intersects`)}}),Mr=E({"../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/ranges/simplify.js"(e,t){var n=Sr(),r=ir();t.exports=(e,t,i)=>{let a=[],o=null,s=null,c=e.sort((e,t)=>r(e,t,i));for(let e of c)n(e,t,i)?(s=e,o||=e):(s&&a.push([o,s]),s=null,o=null);o&&a.push([o,null]);let l=[];for(let[e,t]of a)e===t?l.push(e):!t&&e===c[0]?l.push(`*`):t?e===c[0]?l.push(`<=${t}`):l.push(`${e} - ${t}`):l.push(`>=${e}`);let u=l.join(` || `),d=typeof t.raw==`string`?t.raw:String(t);return u.length<d.length?u:t}}}),Nr=E({"../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/ranges/subset.js"(e,t){var n=br(),r=xr(),{ANY:i}=r,a=Sr(),o=ir(),s=x((e,t,r={})=>{if(e===t)return!0;e=new n(e,r),t=new n(t,r);let i=!1;OUTER:for(let n of e.set){for(let e of t.set){let t=u(n,e,r);if(i||=t!==null,t)continue OUTER}if(i)return!1}return!0},`subset`),c=[new r(`>=0.0.0-0`)],l=[new r(`>=0.0.0`)],u=x((e,t,n)=>{if(e===t)return!0;if(e.length===1&&e[0].semver===i){if(t.length===1&&t[0].semver===i)return!0;e=n.includePrerelease?c:l}if(t.length===1&&t[0].semver===i){if(n.includePrerelease)return!0;t=l}let r=new Set,s,u;for(let t of e)t.operator===`>`||t.operator===`>=`?s=d(s,t,n):t.operator===`<`||t.operator===`<=`?u=f(u,t,n):r.add(t.semver);if(r.size>1)return null;let p;if(s&&u&&(p=o(s.semver,u.semver,n),p>0||p===0&&(s.operator!==`>=`||u.operator!==`<=`)))return null;for(let e of r){if(s&&!a(e,String(s),n)||u&&!a(e,String(u),n))return null;for(let r of t)if(!a(e,String(r),n))return!1;return!0}let m,h,g,_,v=u&&!n.includePrerelease&&u.semver.prerelease.length?u.semver:!1,y=s&&!n.includePrerelease&&s.semver.prerelease.length?s.semver:!1;v&&v.prerelease.length===1&&u.operator===`<`&&v.prerelease[0]===0&&(v=!1);for(let e of t){if(_=_||e.operator===`>`||e.operator===`>=`,g=g||e.operator===`<`||e.operator===`<=`,s){if(y&&e.semver.prerelease&&e.semver.prerelease.length&&e.semver.major===y.major&&e.semver.minor===y.minor&&e.semver.patch===y.patch&&(y=!1),e.operator===`>`||e.operator===`>=`){if(m=d(s,e,n),m===e&&m!==s)return!1}else if(s.operator===`>=`&&!e.test(s.semver))return!1}if(u){if(v&&e.semver.prerelease&&e.semver.prerelease.length&&e.semver.major===v.major&&e.semver.minor===v.minor&&e.semver.patch===v.patch&&(v=!1),e.operator===`<`||e.operator===`<=`){if(h=f(u,e,n),h===e&&h!==u)return!1}else if(u.operator===`<=`&&!e.test(u.semver))return!1}if(!e.operator&&(u||s)&&p!==0)return!1}return!(s&&g&&!u&&p!==0||u&&_&&!s&&p!==0||y||v)},`simpleSubset`),d=x((e,t,n)=>{if(!e)return t;let r=o(e.semver,t.semver,n);return r>0?e:r<0||t.operator===`>`&&e.operator===`>=`?t:e},`higherGT`),f=x((e,t,n)=>{if(!e)return t;let r=o(e.semver,t.semver,n);return r<0?e:r>0||t.operator===`<`&&e.operator===`<=`?t:e},`lowerLT`);t.exports=s}}),Pr=E({"../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/index.js"(e,t){var n=Gn(),r=Un(),i=Jn(),a=qn();t.exports={parse:Yn(),valid:Xn(),clean:Zn(),inc:Qn(),diff:$n(),major:er(),minor:tr(),patch:nr(),prerelease:rr(),compare:ir(),rcompare:ar(),compareLoose:or(),compareBuild:sr(),sort:cr(),rsort:lr(),gt:ur(),lt:dr(),eq:fr(),neq:pr(),gte:mr(),lte:hr(),cmp:gr(),coerce:_r(),truncate:vr(),Comparator:xr(),Range:br(),satisfies:Sr(),toComparators:Cr(),maxSatisfying:wr(),minSatisfying:Tr(),minVersion:Er(),validRange:Dr(),outside:Or(),gtr:kr(),ltr:Ar(),intersects:jr(),simplifyRange:Mr(),subset:Nr(),SemVer:i,re:n.re,src:n.src,tokens:n.t,SEMVER_SPEC_VERSION:r.SEMVER_SPEC_VERSION,RELEASE_TYPES:r.RELEASE_TYPES,compareIdentifiers:a.compareIdentifiers,rcompareIdentifiers:a.rcompareIdentifiers}}}),Y=E({"../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/nodes/identity.js"(e){var t=Symbol.for(`yaml.alias`),n=Symbol.for(`yaml.document`),r=Symbol.for(`yaml.map`),i=Symbol.for(`yaml.pair`),a=Symbol.for(`yaml.scalar`),o=Symbol.for(`yaml.seq`),s=Symbol.for(`yaml.node.type`),c=x(e=>!!e&&typeof e==`object`&&e[s]===t,`isAlias`),l=x(e=>!!e&&typeof e==`object`&&e[s]===n,`isDocument`),u=x(e=>!!e&&typeof e==`object`&&e[s]===r,`isMap`),d=x(e=>!!e&&typeof e==`object`&&e[s]===i,`isPair`),f=x(e=>!!e&&typeof e==`object`&&e[s]===a,`isScalar`),p=x(e=>!!e&&typeof e==`object`&&e[s]===o,`isSeq`);function m(e){if(e&&typeof e==`object`)switch(e[s]){case r:case o:return!0}return!1}x(m,`isCollection`);function h(e){if(e&&typeof e==`object`)switch(e[s]){case t:case r:case a:case o:return!0}return!1}x(h,`isNode`);var g=x(e=>(f(e)||m(e))&&!!e.anchor,`hasAnchor`);e.ALIAS=t,e.DOC=n,e.MAP=r,e.NODE_TYPE=s,e.PAIR=i,e.SCALAR=a,e.SEQ=o,e.hasAnchor=g,e.isAlias=c,e.isCollection=m,e.isDocument=l,e.isMap=u,e.isNode=h,e.isPair=d,e.isScalar=f,e.isSeq=p}}),Fr=E({"../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/visit.js"(e){var t=Y(),n=Symbol(`break visit`),r=Symbol(`skip children`),i=Symbol(`remove node`);function a(e,n){let r=l(n);t.isDocument(e)?o(null,e.contents,r,Object.freeze([e]))===i&&(e.contents=null):o(null,e,r,Object.freeze([]))}x(a,`visit`),a.BREAK=n,a.SKIP=r,a.REMOVE=i;function o(e,r,a,s){let c=u(e,r,a,s);if(t.isNode(c)||t.isPair(c))return d(e,s,c),o(e,c,a,s);if(typeof c!=`symbol`){if(t.isCollection(r)){s=Object.freeze(s.concat(r));for(let e=0;e<r.items.length;++e){let t=o(e,r.items[e],a,s);if(typeof t==`number`)e=t-1;else if(t===n)return n;else t===i&&(r.items.splice(e,1),--e)}}else if(t.isPair(r)){s=Object.freeze(s.concat(r));let e=o(`key`,r.key,a,s);if(e===n)return n;e===i&&(r.key=null);let t=o(`value`,r.value,a,s);if(t===n)return n;t===i&&(r.value=null)}}return c}x(o,`visit_`);async function s(e,n){let r=l(n);t.isDocument(e)?await c(null,e.contents,r,Object.freeze([e]))===i&&(e.contents=null):await c(null,e,r,Object.freeze([]))}x(s,`visitAsync`),s.BREAK=n,s.SKIP=r,s.REMOVE=i;async function c(e,r,a,o){let s=await u(e,r,a,o);if(t.isNode(s)||t.isPair(s))return d(e,o,s),c(e,s,a,o);if(typeof s!=`symbol`){if(t.isCollection(r)){o=Object.freeze(o.concat(r));for(let e=0;e<r.items.length;++e){let t=await c(e,r.items[e],a,o);if(typeof t==`number`)e=t-1;else if(t===n)return n;else t===i&&(r.items.splice(e,1),--e)}}else if(t.isPair(r)){o=Object.freeze(o.concat(r));let e=await c(`key`,r.key,a,o);if(e===n)return n;e===i&&(r.key=null);let t=await c(`value`,r.value,a,o);if(t===n)return n;t===i&&(r.value=null)}}return s}x(c,`visitAsync_`);function l(e){return typeof e==`object`&&(e.Collection||e.Node||e.Value)?Object.assign({Alias:e.Node,Map:e.Node,Scalar:e.Node,Seq:e.Node},e.Value&&{Map:e.Value,Scalar:e.Value,Seq:e.Value},e.Collection&&{Map:e.Collection,Seq:e.Collection},e):e}x(l,`initVisitor`);function u(e,n,r,i){if(typeof r==`function`)return r(e,n,i);if(t.isMap(n))return r.Map?.(e,n,i);if(t.isSeq(n))return r.Seq?.(e,n,i);if(t.isPair(n))return r.Pair?.(e,n,i);if(t.isScalar(n))return r.Scalar?.(e,n,i);if(t.isAlias(n))return r.Alias?.(e,n,i)}x(u,`callVisitor`);function d(e,n,r){let i=n[n.length-1];if(t.isCollection(i))i.items[e]=r;else if(t.isPair(i))e===`key`?i.key=r:i.value=r;else if(t.isDocument(i))i.contents=r;else{let e=t.isAlias(i)?`alias`:`scalar`;throw Error(`Cannot replace node with ${e} parent`)}}x(d,`replaceNode`),e.visit=a,e.visitAsync=s}}),Ir=E({"../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/doc/directives.js"(e){var t=Y(),n=Fr(),r={"!":`%21`,",":`%2C`,"[":`%5B`,"]":`%5D`,"{":`%7B`,"}":`%7D`},i=x(e=>e.replace(/[!,[\]{}]/g,e=>r[e]),`escapeTagName`),a=class e{static{x(this,`Directives`)}constructor(t,n){this.docStart=null,this.docEnd=!1,this.yaml=Object.assign({},e.defaultYaml,t),this.tags=Object.assign({},e.defaultTags,n)}clone(){let t=new e(this.yaml,this.tags);return t.docStart=this.docStart,t}atDocument(){let t=new e(this.yaml,this.tags);switch(this.yaml.version){case`1.1`:this.atNextDocument=!0;break;case`1.2`:this.atNextDocument=!1,this.yaml={explicit:e.defaultYaml.explicit,version:`1.2`},this.tags=Object.assign({},e.defaultTags);break}return t}add(t,n){this.atNextDocument&&=(this.yaml={explicit:e.defaultYaml.explicit,version:`1.1`},this.tags=Object.assign({},e.defaultTags),!1);let r=t.trim().split(/[ \t]+/),i=r.shift();switch(i){case`%TAG`:{if(r.length!==2&&(n(0,`%TAG directive should contain exactly two parts`),r.length<2))return!1;let[e,t]=r;return this.tags[e]=t,!0}case`%YAML`:{if(this.yaml.explicit=!0,r.length!==1)return n(0,`%YAML directive should contain exactly one part`),!1;let[e]=r;if(e===`1.1`||e===`1.2`)return this.yaml.version=e,!0;{let t=/^\d+\.\d+$/.test(e);return n(6,`Unsupported YAML version ${e}`,t),!1}}default:return n(0,`Unknown directive ${i}`,!0),!1}}tagName(e,t){if(e===`!`)return`!`;if(e[0]!==`!`)return t(`Not a valid tag: ${e}`),null;if(e[1]===`<`){let n=e.slice(2,-1);return n===`!`||n===`!!`?(t(`Verbatim tags aren't resolved, so ${e} is invalid.`),null):(e[e.length-1]!==`>`&&t(`Verbatim tags must end with a >`),n)}let[,n,r]=e.match(/^(.*!)([^!]*)$/s);r||t(`The ${e} tag has no suffix`);let i=this.tags[n];if(i)try{return i+decodeURIComponent(r)}catch(e){return t(String(e)),null}return n===`!`?e:(t(`Could not resolve tag: ${e}`),null)}tagString(e){for(let[t,n]of Object.entries(this.tags))if(e.startsWith(n))return t+i(e.substring(n.length));return e[0]===`!`?e:`!<${e}>`}toString(e){let r=this.yaml.explicit?[`%YAML ${this.yaml.version||`1.2`}`]:[],i=Object.entries(this.tags),a;if(e&&i.length>0&&t.isNode(e.contents)){let r={};n.visit(e.contents,(e,n)=>{t.isNode(n)&&n.tag&&(r[n.tag]=!0)}),a=Object.keys(r)}else a=[];for(let[t,n]of i)t===`!!`&&n===`tag:yaml.org,2002:`||(!e||a.some(e=>e.startsWith(n)))&&r.push(`%TAG ${t} ${n}`);return r.join(`
109
- `)}};a.defaultYaml={explicit:!1,version:`1.2`},a.defaultTags={"!!":`tag:yaml.org,2002:`},e.Directives=a}}),Lr=E({"../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/doc/anchors.js"(e){var t=Y(),n=Fr();function r(e){if(/[\x00-\x19\s,[\]{}]/.test(e)){let t=`Anchor must not contain whitespace or control characters: ${JSON.stringify(e)}`;throw Error(t)}return!0}x(r,`anchorIsValid`);function i(e){let t=new Set;return n.visit(e,{Value(e,n){n.anchor&&t.add(n.anchor)}}),t}x(i,`anchorNames`);function a(e,t){for(let n=1;;++n){let r=`${e}${n}`;if(!t.has(r))return r}}x(a,`findNewAnchor`);function o(e,n){let r=[],o=new Map,s=null;return{onAnchor:x(t=>{r.push(t),s??=i(e);let o=a(n,s);return s.add(o),o},`onAnchor`),setAnchors:x(()=>{for(let e of r){let n=o.get(e);if(typeof n==`object`&&n.anchor&&(t.isScalar(n.node)||t.isCollection(n.node)))n.node.anchor=n.anchor;else{let t=Error(`Failed to resolve repeated object (this should not happen)`);throw t.source=e,t}}},`setAnchors`),sourceObjects:o}}x(o,`createNodeAnchors`),e.anchorIsValid=r,e.anchorNames=i,e.createNodeAnchors=o,e.findNewAnchor=a}}),Rr=E({"../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/doc/applyReviver.js"(e){function t(e,n,r,i){if(i&&typeof i==`object`)if(Array.isArray(i))for(let n=0,r=i.length;n<r;++n){let r=i[n],a=t(e,i,String(n),r);a===void 0?delete i[n]:a!==r&&(i[n]=a)}else if(i instanceof Map)for(let n of Array.from(i.keys())){let r=i.get(n),a=t(e,i,n,r);a===void 0?i.delete(n):a!==r&&i.set(n,a)}else if(i instanceof Set)for(let n of Array.from(i)){let r=t(e,i,n,n);r===void 0?i.delete(n):r!==n&&(i.delete(n),i.add(r))}else for(let[n,r]of Object.entries(i)){let a=t(e,i,n,r);a===void 0?delete i[n]:a!==r&&(i[n]=a)}return e.call(n,r,i)}x(t,`applyReviver`),e.applyReviver=t}}),zr=E({"../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/nodes/toJS.js"(e){var t=Y();function n(e,r,i){if(Array.isArray(e))return e.map((e,t)=>n(e,String(t),i));if(e&&typeof e.toJSON==`function`){if(!i||!t.hasAnchor(e))return e.toJSON(r,i);let n={aliasCount:0,count:1,res:void 0};i.anchors.set(e,n),i.onCreate=e=>{n.res=e,delete i.onCreate};let a=e.toJSON(r,i);return i.onCreate&&i.onCreate(a),a}return typeof e==`bigint`&&!i?.keep?Number(e):e}x(n,`toJS`),e.toJS=n}}),Br=E({"../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/nodes/Node.js"(e){var t=Rr(),n=Y(),r=zr();e.NodeBase=class{static{x(this,`NodeBase`)}constructor(e){Object.defineProperty(this,n.NODE_TYPE,{value:e})}clone(){let e=Object.create(Object.getPrototypeOf(this),Object.getOwnPropertyDescriptors(this));return this.range&&(e.range=this.range.slice()),e}toJS(e,{mapAsMap:i,maxAliasCount:a,onAnchor:o,reviver:s}={}){if(!n.isDocument(e))throw TypeError(`A document argument is required`);let c={anchors:new Map,doc:e,keep:!0,mapAsMap:i===!0,mapKeyWarned:!1,maxAliasCount:typeof a==`number`?a:100},l=r.toJS(this,``,c);if(typeof o==`function`)for(let{count:e,res:t}of c.anchors.values())o(t,e);return typeof s==`function`?t.applyReviver(s,{"":l},``,l):l}}}}),Vr=E({"../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/nodes/Alias.js"(e){var t=Lr(),n=Fr(),r=Y(),i=Br(),a=zr(),o=class extends i.NodeBase{static{x(this,`Alias`)}constructor(e){super(r.ALIAS),this.source=e,Object.defineProperty(this,`tag`,{set(){throw Error(`Alias nodes cannot have tags`)}})}resolve(e,t){if(t?.maxAliasCount===0)throw ReferenceError(`Alias resolution is disabled`);let i;t?.aliasResolveCache?i=t.aliasResolveCache:(i=[],n.visit(e,{Node:x((e,t)=>{(r.isAlias(t)||r.hasAnchor(t))&&i.push(t)},`Node`)}),t&&(t.aliasResolveCache=i));let a;for(let e of i){if(e===this)break;e.anchor===this.source&&(a=e)}return a}toJSON(e,t){if(!t)return{source:this.source};let{anchors:n,doc:r,maxAliasCount:i}=t,o=this.resolve(r,t);if(!o){let e=`Unresolved alias (the anchor must be set before the alias): ${this.source}`;throw ReferenceError(e)}let c=n.get(o);if(c||=(a.toJS(o,null,t),n.get(o)),c?.res===void 0)throw ReferenceError(`This should not happen: Alias anchor was not resolved?`);if(i>=0&&(c.count+=1,c.aliasCount===0&&(c.aliasCount=s(r,o,n)),c.count*c.aliasCount>i))throw ReferenceError(`Excessive alias count indicates a resource exhaustion attack`);return c.res}toString(e,n,r){let i=`*${this.source}`;if(e){if(t.anchorIsValid(this.source),e.options.verifyAliasOrder&&!e.anchors.has(this.source)){let e=`Unresolved alias (the anchor must be set before the alias): ${this.source}`;throw Error(e)}if(e.implicitKey)return`${i} `}return i}};function s(e,t,n){if(r.isAlias(t)){let r=t.resolve(e),i=n&&r&&n.get(r);return i?i.count*i.aliasCount:0}else if(r.isCollection(t)){let r=0;for(let i of t.items){let t=s(e,i,n);t>r&&(r=t)}return r}else if(r.isPair(t)){let r=s(e,t.key,n),i=s(e,t.value,n);return Math.max(r,i)}return 1}x(s,`getAliasCount`),e.Alias=o}}),Hr=E({"../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/nodes/Scalar.js"(e){var t=Y(),n=Br(),r=zr(),i=x(e=>!e||typeof e!=`function`&&typeof e!=`object`,`isScalarValue`),a=class extends n.NodeBase{static{x(this,`Scalar`)}constructor(e){super(t.SCALAR),this.value=e}toJSON(e,t){return t?.keep?this.value:r.toJS(this.value,e,t)}toString(){return String(this.value)}};a.BLOCK_FOLDED=`BLOCK_FOLDED`,a.BLOCK_LITERAL=`BLOCK_LITERAL`,a.PLAIN=`PLAIN`,a.QUOTE_DOUBLE=`QUOTE_DOUBLE`,a.QUOTE_SINGLE=`QUOTE_SINGLE`,e.Scalar=a,e.isScalarValue=i}}),Ur=E({"../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/doc/createNode.js"(e){var t=Vr(),n=Y(),r=Hr(),i=`tag:yaml.org,2002:`;function a(e,t,n){if(t){let e=n.filter(e=>e.tag===t),r=e.find(e=>!e.format)??e[0];if(!r)throw Error(`Tag ${t} not found`);return r}return n.find(t=>t.identify?.(e)&&!t.format)}x(a,`findTagObject`);function o(e,o,s){if(n.isDocument(e)&&(e=e.contents),n.isNode(e))return e;if(n.isPair(e)){let t=s.schema[n.MAP].createNode?.(s.schema,null,s);return t.items.push(e),t}(e instanceof String||e instanceof Number||e instanceof Boolean||typeof BigInt<`u`&&e instanceof BigInt)&&(e=e.valueOf());let{aliasDuplicateObjects:c,onAnchor:l,onTagObj:u,schema:d,sourceObjects:f}=s,p;if(c&&e&&typeof e==`object`){if(p=f.get(e),p)return p.anchor??=l(e),new t.Alias(p.anchor);p={anchor:null,node:null},f.set(e,p)}o?.startsWith(`!!`)&&(o=i+o.slice(2));let m=a(e,o,d.tags);if(!m){if(e&&typeof e.toJSON==`function`&&(e=e.toJSON()),!e||typeof e!=`object`){let t=new r.Scalar(e);return p&&(p.node=t),t}m=e instanceof Map?d[n.MAP]:Symbol.iterator in Object(e)?d[n.SEQ]:d[n.MAP]}u&&(u(m),delete s.onTagObj);let h=m?.createNode?m.createNode(s.schema,e,s):typeof m?.nodeClass?.from==`function`?m.nodeClass.from(s.schema,e,s):new r.Scalar(e);return o?h.tag=o:m.default||(h.tag=m.tag),p&&(p.node=h),h}x(o,`createNode`),e.createNode=o}}),Wr=E({"../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/nodes/Collection.js"(e){var t=Ur(),n=Y(),r=Br();function i(e,n,r){let i=r;for(let e=n.length-1;e>=0;--e){let t=n[e];if(typeof t==`number`&&Number.isInteger(t)&&t>=0){let e=[];e[t]=i,i=e}else i=new Map([[t,i]])}return t.createNode(i,void 0,{aliasDuplicateObjects:!1,keepUndefined:!1,onAnchor:x(()=>{throw Error(`This should not happen, please report a bug.`)},`onAnchor`),schema:e,sourceObjects:new Map})}x(i,`collectionFromPath`);var a=x(e=>e==null||typeof e==`object`&&!!e[Symbol.iterator]().next().done,`isEmptyPath`);e.Collection=class extends r.NodeBase{static{x(this,`Collection`)}constructor(e,t){super(e),Object.defineProperty(this,`schema`,{value:t,configurable:!0,enumerable:!1,writable:!0})}clone(e){let t=Object.create(Object.getPrototypeOf(this),Object.getOwnPropertyDescriptors(this));return e&&(t.schema=e),t.items=t.items.map(t=>n.isNode(t)||n.isPair(t)?t.clone(e):t),this.range&&(t.range=this.range.slice()),t}addIn(e,t){if(a(e))this.add(t);else{let[r,...a]=e,o=this.get(r,!0);if(n.isCollection(o))o.addIn(a,t);else if(o===void 0&&this.schema)this.set(r,i(this.schema,a,t));else throw Error(`Expected YAML collection at ${r}. Remaining path: ${a}`)}}deleteIn(e){let[t,...r]=e;if(r.length===0)return this.delete(t);let i=this.get(t,!0);if(n.isCollection(i))return i.deleteIn(r);throw Error(`Expected YAML collection at ${t}. Remaining path: ${r}`)}getIn(e,t){let[r,...i]=e,a=this.get(r,!0);return i.length===0?!t&&n.isScalar(a)?a.value:a:n.isCollection(a)?a.getIn(i,t):void 0}hasAllNullValues(e){return this.items.every(t=>{if(!n.isPair(t))return!1;let r=t.value;return r==null||e&&n.isScalar(r)&&r.value==null&&!r.commentBefore&&!r.comment&&!r.tag})}hasIn(e){let[t,...r]=e;if(r.length===0)return this.has(t);let i=this.get(t,!0);return n.isCollection(i)?i.hasIn(r):!1}setIn(e,t){let[r,...a]=e;if(a.length===0)this.set(r,t);else{let e=this.get(r,!0);if(n.isCollection(e))e.setIn(a,t);else if(e===void 0&&this.schema)this.set(r,i(this.schema,a,t));else throw Error(`Expected YAML collection at ${r}. Remaining path: ${a}`)}}},e.collectionFromPath=i,e.isEmptyPath=a}}),Gr=E({"../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/stringify/stringifyComment.js"(e){var t=x(e=>e.replace(/^(?!$)(?: $)?/gm,`#`),`stringifyComment`);function n(e,t){return/^\n+$/.test(e)?e.substring(1):t?e.replace(/^(?! *$)/gm,t):e}x(n,`indentComment`);var r=x((e,t,r)=>e.endsWith(`
107
+ `):n=String.fromCharCode(t),++this.state.curLine,this.state.lineStart=this.state.pos,n}jsxReadString(e){let t=``,n=++this.state.pos;for(;;){if(this.state.pos>=this.length)throw this.raise(_.UnterminatedString,this.state.startLoc);let r=this.input.charCodeAt(this.state.pos);if(r===e)break;r===38?(t+=this.input.slice(n,this.state.pos),t+=this.jsxReadEntity(),n=this.state.pos):et(r)?(t+=this.input.slice(n,this.state.pos),t+=this.jsxReadNewLine(!1),n=this.state.pos):++this.state.pos}t+=this.input.slice(n,this.state.pos++),this.finishToken(134,t)}jsxReadEntity(){let e=++this.state.pos;if(this.codePointAtPos(this.state.pos)===35){++this.state.pos;let e=10;this.codePointAtPos(this.state.pos)===120&&(e=16,++this.state.pos);let t=this.readInt(e,void 0,!1,`bail`);if(t!==null&&this.codePointAtPos(this.state.pos)===59)return++this.state.pos,String.fromCodePoint(t)}else{let t=0,n=!1;for(;t++<10&&this.state.pos<this.length&&!(n=this.codePointAtPos(this.state.pos)===59);)++this.state.pos;if(n){let t=Vt[this.input.slice(e,this.state.pos)];if(++this.state.pos,t)return t}}return this.state.pos=e,`&`}jsxReadWord(){let e,t=this.state.pos;do e=this.input.charCodeAt(++this.state.pos);while(H(e)||e===45);this.finishToken(141,this.input.slice(t,this.state.pos))}jsxParseIdentifier(){let e=this.startNode();return this.match(141)?e.name=this.state.value:he(this.state.type)?e.name=B(this.state.type):this.unexpected(),this.next(),this.finishNode(e,`JSXIdentifier`)}jsxParseNamespacedName(){let e=this.state.startLoc,t=this.jsxParseIdentifier();if(!this.eat(14))return t;let n=this.startNodeAt(e);return n.namespace=t,n.name=this.jsxParseIdentifier(),this.finishNode(n,`JSXNamespacedName`)}jsxParseElementName(){let e=this.state.startLoc,t=this.jsxParseNamespacedName();if(t.type===`JSXNamespacedName`)return t;for(;this.eat(16);){let n=this.startNodeAt(e);n.object=t,n.property=this.jsxParseIdentifier(),t=this.finishNode(n,`JSXMemberExpression`)}return t}jsxParseAttributeValue(){let e;switch(this.state.type){case 5:return e=this.startNode(),this.setContext(w.brace),this.next(),e=this.jsxParseExpressionContainer(e,w.j_oTag),e.expression.type===`JSXEmptyExpression`&&this.raise(Ht.AttributeIsEmpty,e),e;case 143:case 134:return this.parseExprAtom();default:throw this.raise(Ht.UnsupportedJsxValue,this.state.startLoc)}}jsxParseEmptyExpression(){let e=this.startNodeAt(this.state.lastTokEndLoc);return this.finishNodeAt(e,`JSXEmptyExpression`,this.state.startLoc)}jsxParseSpreadChild(e){return this.next(),e.expression=this.parseExpression(),this.setContext(w.j_expr),this.state.canStartJSXElement=!0,this.expect(8),this.finishNode(e,`JSXSpreadChild`)}jsxParseExpressionContainer(e,t){return this.match(8)?e.expression=this.jsxParseEmptyExpression():e.expression=this.parseExpression(),this.setContext(t),this.state.canStartJSXElement=!0,this.expect(8),this.finishNode(e,`JSXExpressionContainer`)}jsxParseAttribute(){let e=this.startNode();return this.match(5)?(this.setContext(w.brace),this.next(),this.expect(21),e.argument=this.parseMaybeAssignAllowIn(),this.setContext(w.j_oTag),this.state.canStartJSXElement=!0,this.expect(8),this.finishNode(e,`JSXSpreadAttribute`)):(e.name=this.jsxParseNamespacedName(),e.value=this.eat(29)?this.jsxParseAttributeValue():null,this.finishNode(e,`JSXAttribute`))}jsxParseOpeningElementAt(e){let t=this.startNodeAt(e);return this.eat(144)?this.finishNode(t,`JSXOpeningFragment`):(t.name=this.jsxParseElementName(),this.jsxParseOpeningElementAfterName(t))}jsxParseOpeningElementAfterName(e){let t=[];for(;!this.match(56)&&!this.match(144);)t.push(this.jsxParseAttribute());return e.attributes=t,e.selfClosing=this.eat(56),this.expect(144),this.finishNode(e,`JSXOpeningElement`)}jsxParseClosingElementAt(e){let t=this.startNodeAt(e);return this.eat(144)?this.finishNode(t,`JSXClosingFragment`):(t.name=this.jsxParseElementName(),this.expect(144),this.finishNode(t,`JSXClosingElement`))}jsxParseElementAt(e){let t=this.startNodeAt(e),n=[],r=this.jsxParseOpeningElementAt(e),i=null;if(!r.selfClosing){contents:for(;;)switch(this.state.type){case 143:if(e=this.state.startLoc,this.next(),this.eat(56)){i=this.jsxParseClosingElementAt(e);break contents}n.push(this.jsxParseElementAt(e));break;case 142:n.push(this.parseLiteral(this.state.value,`JSXText`));break;case 5:{let e=this.startNode();this.setContext(w.brace),this.next(),this.match(21)?n.push(this.jsxParseSpreadChild(e)):n.push(this.jsxParseExpressionContainer(e,w.j_expr));break}default:this.unexpected()}Ut(r)&&!Ut(i)&&i!==null?this.raise(Ht.MissingClosingTagFragment,i):(!Ut(r)&&Ut(i)||!Ut(r)&&!Ut(i)&&Wt(i.name)!==Wt(r.name))&&this.raise(Ht.MissingClosingTagElement,i,{openingTagName:Wt(r.name)})}if(Ut(r)?(t.openingFragment=r,t.closingFragment=i):(t.openingElement=r,t.closingElement=i),t.children=n,this.match(47))throw this.raise(Ht.UnwrappedAdjacentJSXElements,this.state.startLoc);return Ut(r)?this.finishNode(t,`JSXFragment`):this.finishNode(t,`JSXElement`)}jsxParseElement(){let e=this.state.startLoc;return this.next(),this.jsxParseElementAt(e)}setContext(e){let{context:t}=this.state;t[t.length-1]=e}parseExprAtom(e){return this.match(143)?this.jsxParseElement():this.match(47)&&this.input.charCodeAt(this.state.pos)!==33?(this.replaceToken(143),this.jsxParseElement()):super.parseExprAtom(e)}skipSpace(){this.curContext().preserveSpace||super.skipSpace()}getTokenFromCode(e){let t=this.curContext();if(t===w.j_expr){this.jsxReadToken();return}if(t===w.j_oTag||t===w.j_cTag){if(Ae(e)){this.jsxReadWord();return}if(e===62){++this.state.pos,this.finishToken(144);return}if((e===34||e===39)&&t===w.j_oTag){this.jsxReadString(e);return}}if(e===60&&this.state.canStartJSXElement&&this.input.charCodeAt(this.state.pos+1)!==33){++this.state.pos,this.finishToken(143);return}super.getTokenFromCode(e)}updateContext(e){let{context:t,type:n}=this.state;if(n===56&&e===143)t.splice(-2,2,w.j_cTag),this.state.canStartJSXElement=!1;else if(n===143)t.push(w.j_oTag);else if(n===144){let n=t[t.length-1];n===w.j_oTag&&e===56||n===w.j_cTag?(t.pop(),this.state.canStartJSXElement=t[t.length-1]===w.j_expr):(this.setContext(w.j_expr),this.state.canStartJSXElement=!0)}else this.state.canStartJSXElement=de(n)}},`jsx`),Kt=class extends Ue{static{x(this,`TypeScriptScope`)}constructor(...e){super(...e),this.tsNames=new Map}},qt=class extends We{static{x(this,`TypeScriptScopeHandler`)}constructor(...e){super(...e),this.importsStack=[]}createScope(e){return this.importsStack.push(new Set),new Kt(e)}enter(e){e===256&&this.importsStack.push(new Set),super.enter(e)}exit(){let e=super.exit();return e===256&&this.importsStack.pop(),e}hasImport(e,t){let n=this.importsStack.length;if(this.importsStack[n-1].has(e))return!0;if(!t&&n>1){for(let t=0;t<n-1;t++)if(this.importsStack[t].has(e))return!0}return!1}declareName(e,t,n){if(t&4096){this.hasImport(e,!0)&&this.parser.raise(_.VarRedeclaration,n,{identifierName:e}),this.importsStack[this.importsStack.length-1].add(e);return}let r=this.currentScope(),i=r.tsNames.get(e)||0;if(t&1024){this.maybeExportDefined(r,e),r.tsNames.set(e,i|16);return}super.declareName(e,t,n),t&2&&(t&1||(this.checkRedeclarationInScope(r,e,t,n),this.maybeExportDefined(r,e)),i|=1),t&256&&(i|=2),t&512&&(i|=4),t&128&&(i|=8),i&&r.tsNames.set(e,i)}isRedeclaredInScope(e,t,n){let r=e.tsNames.get(t);return(r&2)>0?n&256?!!(n&512)!=(r&4)>0:!0:n&128&&(r&8)>0?e.names.get(t)&2?!!(n&1):!1:n&2&&(r&1)>0?!0:super.isRedeclaredInScope(e,t,n)}checkLocalExport(e){let{name:t}=e;if(this.hasImport(t))return;let n=this.scopeStack.length;for(let e=n-1;e>=0;e--){let n=this.scopeStack[e].tsNames.get(t);if((n&1)>0||(n&16)>0)return}super.checkLocalExport(e)}},Jt=x(e=>e.type===`ParenthesizedExpression`?Jt(e.expression):e,`unwrapParenthesizedExpression`),Yt=class extends It{static{x(this,`LValParser`)}toAssignable(e,t=!1){var n;let r;switch((e.type===`ParenthesizedExpression`||(n=e.extra)!=null&&n.parenthesized)&&(r=Jt(e),t?r.type===`Identifier`?this.expressionScope.recordArrowParameterBindingError(_.InvalidParenthesizedAssignment,e):r.type!==`MemberExpression`&&!this.isOptionalMemberExpression(r)&&this.raise(_.InvalidParenthesizedAssignment,e):this.raise(_.InvalidParenthesizedAssignment,e)),e.type){case`Identifier`:case`ObjectPattern`:case`ArrayPattern`:case`AssignmentPattern`:case`RestElement`:break;case`ObjectExpression`:e.type=`ObjectPattern`;for(let n=0,r=e.properties.length,a=r-1;n<r;n++){var i;let r=e.properties[n],o=n===a;this.toAssignableObjectExpressionProp(r,o,t),o&&r.type===`RestElement`&&(i=e.extra)!=null&&i.trailingCommaLoc&&this.raise(_.RestTrailingComma,e.extra.trailingCommaLoc)}break;case`ObjectProperty`:{let{key:n,value:r}=e;this.isPrivateName(n)&&this.classScope.usePrivateName(this.getPrivateNameSV(n),n.loc.start),this.toAssignable(r,t);break}case`SpreadElement`:throw Error(`Internal @babel/parser error (this is a bug, please report it). SpreadElement should be converted by .toAssignable's caller.`);case`ArrayExpression`:e.type=`ArrayPattern`,this.toAssignableList(e.elements,e.extra?.trailingCommaLoc,t);break;case`AssignmentExpression`:e.operator!==`=`&&this.raise(_.MissingEqInAssignment,e.left.loc.end),e.type=`AssignmentPattern`,delete e.operator,this.toAssignable(e.left,t);break;case`ParenthesizedExpression`:this.toAssignable(r,t);break}}toAssignableObjectExpressionProp(e,t,n){if(e.type===`ObjectMethod`)this.raise(e.kind===`get`||e.kind===`set`?_.PatternHasAccessor:_.PatternHasMethod,e.key);else if(e.type===`SpreadElement`){e.type=`RestElement`;let r=e.argument;this.checkToRestConversion(r,!1),this.toAssignable(r,n),t||this.raise(_.RestTrailingComma,e)}else this.toAssignable(e,n)}toAssignableList(e,t,n){let r=e.length-1;for(let i=0;i<=r;i++){let a=e[i];if(a){if(a.type===`SpreadElement`){a.type=`RestElement`;let e=a.argument;this.checkToRestConversion(e,!0),this.toAssignable(e,n)}else this.toAssignable(a,n);a.type===`RestElement`&&(i<r?this.raise(_.RestTrailingComma,a):t&&this.raise(_.RestTrailingComma,t))}}}isAssignable(e,t){switch(e.type){case`Identifier`:case`ObjectPattern`:case`ArrayPattern`:case`AssignmentPattern`:case`RestElement`:return!0;case`ObjectExpression`:{let t=e.properties.length-1;return e.properties.every((e,n)=>e.type!==`ObjectMethod`&&(n===t||e.type!==`SpreadElement`)&&this.isAssignable(e))}case`ObjectProperty`:return this.isAssignable(e.value);case`SpreadElement`:return this.isAssignable(e.argument);case`ArrayExpression`:return e.elements.every(e=>e===null||this.isAssignable(e));case`AssignmentExpression`:return e.operator===`=`;case`ParenthesizedExpression`:return this.isAssignable(e.expression);case`MemberExpression`:case`OptionalMemberExpression`:return!t;default:return!1}}toReferencedList(e,t){return e}toReferencedListDeep(e,t){this.toReferencedList(e,t);for(let t of e)t?.type===`ArrayExpression`&&this.toReferencedListDeep(t.elements)}parseSpread(e){let t=this.startNode();return this.next(),t.argument=this.parseMaybeAssignAllowIn(e,void 0),this.finishNode(t,`SpreadElement`)}parseRestBinding(){let e=this.startNode();return this.next(),e.argument=this.parseBindingAtom(),this.finishNode(e,`RestElement`)}parseBindingAtom(){switch(this.state.type){case 0:{let e=this.startNode();return this.next(),e.elements=this.parseBindingList(3,93,1),this.finishNode(e,`ArrayPattern`)}case 5:return this.parseObjectLike(8,!0)}return this.parseIdentifier()}parseBindingList(e,t,n){let r=n&1,i=[],a=!0;for(;!this.eat(e);)if(a?a=!1:this.expect(12),r&&this.match(12))i.push(null);else if(this.eat(e))break;else if(this.match(21)){let r=this.parseRestBinding();if((this.hasPlugin(`flow`)||n&2)&&(r=this.parseFunctionParamType(r)),i.push(r),!this.checkCommaAfterRest(t)){this.expect(e);break}}else{let e=[];for(this.match(26)&&this.hasPlugin(`decorators`)&&this.raise(_.UnsupportedParameterDecorator,this.state.startLoc);this.match(26);)e.push(this.parseDecorator());i.push(this.parseAssignableListItem(n,e))}return i}parseBindingRestProperty(e){return this.next(),e.argument=this.parseIdentifier(),this.checkCommaAfterRest(125),this.finishNode(e,`RestElement`)}parseBindingProperty(){let{type:e,startLoc:t}=this.state;if(e===21)return this.parseBindingRestProperty(this.startNode());let n=this.startNode();return e===139?(this.expectPlugin(`destructuringPrivate`,t),this.classScope.usePrivateName(this.state.value,t),n.key=this.parsePrivateName()):this.parsePropertyName(n),n.method=!1,this.parseObjPropValue(n,t,!1,!1,!0,!1)}parseAssignableListItem(e,t){let n=this.parseMaybeDefault();(this.hasPlugin(`flow`)||e&2)&&this.parseFunctionParamType(n);let r=this.parseMaybeDefault(n.loc.start,n);return t.length&&(n.decorators=t),r}parseFunctionParamType(e){return e}parseMaybeDefault(e,t){if(e??=this.state.startLoc,t??=this.parseBindingAtom(),!this.eat(29))return t;let n=this.startNodeAt(e);return n.left=t,n.right=this.parseMaybeAssignAllowIn(),this.finishNode(n,`AssignmentPattern`)}isValidLVal(e,t,n){switch(e){case`AssignmentPattern`:return`left`;case`RestElement`:return`argument`;case`ObjectProperty`:return`value`;case`ParenthesizedExpression`:return`expression`;case`ArrayPattern`:return`elements`;case`ObjectPattern`:return`properties`}return!1}isOptionalMemberExpression(e){return e.type===`OptionalMemberExpression`}checkLVal(e,t,n=64,r=!1,i=!1,a=!1){var o;let s=e.type;if(this.isObjectMethod(e))return;let c=this.isOptionalMemberExpression(e);if(c||s===`MemberExpression`){c&&(this.expectPlugin(`optionalChainingAssign`,e.loc.start),t.type!==`AssignmentExpression`&&this.raise(_.InvalidLhsOptionalChaining,e,{ancestor:t})),n!==64&&this.raise(_.InvalidPropertyBindingPattern,e);return}if(s===`Identifier`){this.checkIdentifier(e,n,i);let{name:t}=e;r&&(r.has(t)?this.raise(_.ParamDupe,e):r.add(t));return}let l=this.isValidLVal(s,!(a||(o=e.extra)!=null&&o.parenthesized)&&t.type===`AssignmentExpression`,n);if(l===!0)return;if(l===!1){let r=n===64?_.InvalidLhs:_.InvalidLhsBinding;this.raise(r,e,{ancestor:t});return}let u,d;typeof l==`string`?(u=l,d=s===`ParenthesizedExpression`):[u,d]=l;let f=s===`ArrayPattern`||s===`ObjectPattern`?{type:s}:t,p=e[u];if(Array.isArray(p))for(let e of p)e&&this.checkLVal(e,f,n,r,i,d);else p&&this.checkLVal(p,f,n,r,i,d)}checkIdentifier(e,t,n=!1){this.state.strict&&(n?Re(e.name,this.inModule):Le(e.name))&&(t===64?this.raise(_.StrictEvalArguments,e,{referenceName:e.name}):this.raise(_.StrictEvalArgumentsBinding,e,{bindingName:e.name})),t&8192&&e.name===`let`&&this.raise(_.LetInLexicalBinding,e),t&64||this.declareNameFromIdentifier(e,t)}declareNameFromIdentifier(e,t){this.scope.declareName(e.name,t,e.loc.start)}checkToRestConversion(e,t){switch(e.type){case`ParenthesizedExpression`:this.checkToRestConversion(e.expression,t);break;case`Identifier`:case`MemberExpression`:break;case`ArrayExpression`:case`ObjectExpression`:if(t)break;default:this.raise(_.InvalidRestAssignmentPattern,e)}}checkCommaAfterRest(e){return this.match(12)?(this.raise(this.lookaheadCharCode()===e?_.RestTrailingComma:_.ElementAfterRest,this.state.startLoc),!0):!1}};function Xt(e){if(e==null)throw Error(`Unexpected ${e} value.`);return e}x(Xt,`nonNull`);function Zt(e){if(!e)throw Error(`Assert fail`)}x(Zt,`assert`);var J=g`typescript`({AbstractMethodHasImplementation:x(({methodName:e})=>`Method '${e}' cannot have an implementation because it is marked abstract.`,`AbstractMethodHasImplementation`),AbstractPropertyHasInitializer:x(({propertyName:e})=>`Property '${e}' cannot have an initializer because it is marked abstract.`,`AbstractPropertyHasInitializer`),AccessorCannotBeOptional:`An 'accessor' property cannot be declared optional.`,AccessorCannotDeclareThisParameter:`'get' and 'set' accessors cannot declare 'this' parameters.`,AccessorCannotHaveTypeParameters:`An accessor cannot have type parameters.`,ClassMethodHasDeclare:`Class methods cannot have the 'declare' modifier.`,ClassMethodHasReadonly:`Class methods cannot have the 'readonly' modifier.`,ConstInitializerMustBeStringOrNumericLiteralOrLiteralEnumReference:`A 'const' initializer in an ambient context must be a string or numeric literal or literal enum reference.`,ConstructorHasTypeParameters:`Type parameters cannot appear on a constructor declaration.`,DeclareAccessor:x(({kind:e})=>`'declare' is not allowed in ${e}ters.`,`DeclareAccessor`),DeclareClassFieldHasInitializer:`Initializers are not allowed in ambient contexts.`,DeclareFunctionHasImplementation:`An implementation cannot be declared in ambient contexts.`,DuplicateAccessibilityModifier:x(({modifier:e})=>`Accessibility modifier already seen.`,`DuplicateAccessibilityModifier`),DuplicateModifier:x(({modifier:e})=>`Duplicate modifier: '${e}'.`,`DuplicateModifier`),EmptyHeritageClauseType:x(({token:e})=>`'${e}' list cannot be empty.`,`EmptyHeritageClauseType`),EmptyTypeArguments:`Type argument list cannot be empty.`,EmptyTypeParameters:`Type parameter list cannot be empty.`,ExpectedAmbientAfterExportDeclare:`'export declare' must be followed by an ambient declaration.`,ImportAliasHasImportType:`An import alias can not use 'import type'.`,ImportReflectionHasImportType:"An `import module` declaration can not use `type` modifier",IncompatibleModifiers:x(({modifiers:e})=>`'${e[0]}' modifier cannot be used with '${e[1]}' modifier.`,`IncompatibleModifiers`),IndexSignatureHasAbstract:`Index signatures cannot have the 'abstract' modifier.`,IndexSignatureHasAccessibility:x(({modifier:e})=>`Index signatures cannot have an accessibility modifier ('${e}').`,`IndexSignatureHasAccessibility`),IndexSignatureHasDeclare:`Index signatures cannot have the 'declare' modifier.`,IndexSignatureHasOverride:`'override' modifier cannot appear on an index signature.`,IndexSignatureHasStatic:`Index signatures cannot have the 'static' modifier.`,InitializerNotAllowedInAmbientContext:`Initializers are not allowed in ambient contexts.`,InvalidModifierOnTypeMember:x(({modifier:e})=>`'${e}' modifier cannot appear on a type member.`,`InvalidModifierOnTypeMember`),InvalidModifierOnTypeParameter:x(({modifier:e})=>`'${e}' modifier cannot appear on a type parameter.`,`InvalidModifierOnTypeParameter`),InvalidModifierOnTypeParameterPositions:x(({modifier:e})=>`'${e}' modifier can only appear on a type parameter of a class, interface or type alias.`,`InvalidModifierOnTypeParameterPositions`),InvalidModifiersOrder:x(({orderedModifiers:e})=>`'${e[0]}' modifier must precede '${e[1]}' modifier.`,`InvalidModifiersOrder`),InvalidPropertyAccessAfterInstantiationExpression:`Invalid property access after an instantiation expression. You can either wrap the instantiation expression in parentheses, or delete the type arguments.`,InvalidTupleMemberLabel:`Tuple members must be labeled with a simple identifier.`,MissingInterfaceName:`'interface' declarations must be followed by an identifier.`,NonAbstractClassHasAbstractMethod:`Abstract methods can only appear within an abstract class.`,NonClassMethodPropertyHasAbstractModifer:`'abstract' modifier can only appear on a class, method, or property declaration.`,OptionalTypeBeforeRequired:`A required element cannot follow an optional element.`,OverrideNotInSubClass:`This member cannot have an 'override' modifier because its containing class does not extend another class.`,PatternIsOptional:`A binding pattern parameter cannot be optional in an implementation signature.`,PrivateElementHasAbstract:`Private elements cannot have the 'abstract' modifier.`,PrivateElementHasAccessibility:x(({modifier:e})=>`Private elements cannot have an accessibility modifier ('${e}').`,`PrivateElementHasAccessibility`),ReadonlyForMethodSignature:`'readonly' modifier can only appear on a property declaration or index signature.`,ReservedArrowTypeParam:"This syntax is reserved in files with the .mts or .cts extension. Add a trailing comma, as in `<T,>() => ...`.",ReservedTypeAssertion:"This syntax is reserved in files with the .mts or .cts extension. Use an `as` expression instead.",SetAccessorCannotHaveOptionalParameter:`A 'set' accessor cannot have an optional parameter.`,SetAccessorCannotHaveRestParameter:`A 'set' accessor cannot have rest parameter.`,SetAccessorCannotHaveReturnType:`A 'set' accessor cannot have a return type annotation.`,SingleTypeParameterWithoutTrailingComma:x(({typeParameterName:e})=>`Single type parameter ${e} should have a trailing comma. Example usage: <${e},>.`,`SingleTypeParameterWithoutTrailingComma`),StaticBlockCannotHaveModifier:`Static class blocks cannot have any modifier.`,TupleOptionalAfterType:"A labeled tuple optional element must be declared using a question mark after the name and before the colon (`name?: type`), rather than after the type (`name: type?`).",TypeAnnotationAfterAssign:"Type annotations must come before default assignments, e.g. instead of `age = 25: number` use `age: number = 25`.",TypeImportCannotSpecifyDefaultAndNamed:`A type-only import can specify a default import or named bindings, but not both.`,TypeModifierIsUsedInTypeExports:`The 'type' modifier cannot be used on a named export when 'export type' is used on its export statement.`,TypeModifierIsUsedInTypeImports:`The 'type' modifier cannot be used on a named import when 'import type' is used on its import statement.`,UnexpectedParameterModifier:`A parameter property is only allowed in a constructor implementation.`,UnexpectedReadonly:`'readonly' type modifier is only permitted on array and tuple literal types.`,UnexpectedTypeAnnotation:`Did not expect a type annotation here.`,UnexpectedTypeCastInParameter:`Unexpected type cast in parameter position.`,UnsupportedImportTypeArgument:`Argument in a type import must be a string literal.`,UnsupportedParameterPropertyKind:`A parameter property may not be declared using a binding pattern.`,UnsupportedSignatureParameterKind:x(({type:e})=>`Name in a signature must be an Identifier, ObjectPattern or ArrayPattern, instead got ${e}.`,`UnsupportedSignatureParameterKind`)});function Qt(e){switch(e){case`any`:return`TSAnyKeyword`;case`boolean`:return`TSBooleanKeyword`;case`bigint`:return`TSBigIntKeyword`;case`never`:return`TSNeverKeyword`;case`number`:return`TSNumberKeyword`;case`object`:return`TSObjectKeyword`;case`string`:return`TSStringKeyword`;case`symbol`:return`TSSymbolKeyword`;case`undefined`:return`TSUndefinedKeyword`;case`unknown`:return`TSUnknownKeyword`;default:return}}x(Qt,`keywordTypeFromName`);function $t(e){return e===`private`||e===`public`||e===`protected`}x($t,`tsIsAccessModifier`);function en(e){return e===`in`||e===`out`}x(en,`tsIsVarianceAnnotations`);var tn=x(e=>class extends e{static{x(this,`TypeScriptParserMixin`)}constructor(...e){super(...e),this.tsParseInOutModifiers=this.tsParseModifiers.bind(this,{allowedModifiers:[`in`,`out`],disallowedModifiers:[`const`,`public`,`private`,`protected`,`readonly`,`declare`,`abstract`,`override`],errorTemplate:J.InvalidModifierOnTypeParameter}),this.tsParseConstModifier=this.tsParseModifiers.bind(this,{allowedModifiers:[`const`],disallowedModifiers:[`in`,`out`],errorTemplate:J.InvalidModifierOnTypeParameterPositions}),this.tsParseInOutConstModifiers=this.tsParseModifiers.bind(this,{allowedModifiers:[`in`,`out`,`const`],disallowedModifiers:[`public`,`private`,`protected`,`readonly`,`declare`,`abstract`,`override`],errorTemplate:J.InvalidModifierOnTypeParameter})}getScopeHandler(){return qt}tsIsIdentifier(){return L(this.state.type)}tsTokenCanFollowModifier(){return this.match(0)||this.match(5)||this.match(55)||this.match(21)||this.match(139)||this.isLiteralPropertyName()}tsNextTokenOnSameLineAndCanFollowModifier(){return this.next(),this.hasPrecedingLineBreak()?!1:this.tsTokenCanFollowModifier()}tsNextTokenCanFollowModifier(){return this.match(106)?(this.next(),this.tsTokenCanFollowModifier()):this.tsNextTokenOnSameLineAndCanFollowModifier()}tsParseModifier(e,t){if(!L(this.state.type)&&this.state.type!==58&&this.state.type!==75)return;let n=this.state.value;if(e.includes(n)){if(t&&this.tsIsStartOfStaticBlocks())return;if(this.tsTryParse(this.tsNextTokenCanFollowModifier.bind(this)))return n}}tsParseModifiers({allowedModifiers:e,disallowedModifiers:t,stopOnStartOfClassStaticBlock:n,errorTemplate:r=J.InvalidModifierOnTypeMember},i){let a=x((e,t,n,r)=>{t===n&&i[r]&&this.raise(J.InvalidModifiersOrder,e,{orderedModifiers:[n,r]})},`enforceOrder`),o=x((e,t,n,r)=>{(i[n]&&t===r||i[r]&&t===n)&&this.raise(J.IncompatibleModifiers,e,{modifiers:[n,r]})},`incompatible`);for(;;){let{startLoc:s}=this.state,c=this.tsParseModifier(e.concat(t??[]),n);if(!c)break;$t(c)?i.accessibility?this.raise(J.DuplicateAccessibilityModifier,s,{modifier:c}):(a(s,c,c,`override`),a(s,c,c,`static`),a(s,c,c,`readonly`),i.accessibility=c):en(c)?(i[c]&&this.raise(J.DuplicateModifier,s,{modifier:c}),i[c]=!0,a(s,c,`in`,`out`)):(hasOwnProperty.call(i,c)?this.raise(J.DuplicateModifier,s,{modifier:c}):(a(s,c,`static`,`readonly`),a(s,c,`static`,`override`),a(s,c,`override`,`readonly`),a(s,c,`abstract`,`override`),o(s,c,`declare`,`override`),o(s,c,`static`,`abstract`)),i[c]=!0),t!=null&&t.includes(c)&&this.raise(r,s,{modifier:c})}}tsIsListTerminator(e){switch(e){case`EnumMembers`:case`TypeMembers`:return this.match(8);case`HeritageClauseElement`:return this.match(5);case`TupleElementTypes`:return this.match(3);case`TypeParametersOrArguments`:return this.match(48)}}tsParseList(e,t){let n=[];for(;!this.tsIsListTerminator(e);)n.push(t());return n}tsParseDelimitedList(e,t,n){return Xt(this.tsParseDelimitedListWorker(e,t,!0,n))}tsParseDelimitedListWorker(e,t,n,r){let i=[],a=-1;for(;!this.tsIsListTerminator(e);){a=-1;let r=t();if(r==null)return;if(i.push(r),this.eat(12)){a=this.state.lastTokStartLoc.index;continue}if(this.tsIsListTerminator(e))break;n&&this.expect(12);return}return r&&(r.value=a),i}tsParseBracketedList(e,t,n,r,i){r||(n?this.expect(0):this.expect(47));let a=this.tsParseDelimitedList(e,t,i);return n?this.expect(3):this.expect(48),a}tsParseImportType(){let e=this.startNode();return this.expect(83),this.expect(10),this.match(134)||this.raise(J.UnsupportedImportTypeArgument,this.state.startLoc),e.argument=super.parseExprAtom(),this.eat(12)&&!this.match(11)?(e.options=super.parseMaybeAssignAllowIn(),this.eat(12)):e.options=null,this.expect(11),this.eat(16)&&(e.qualifier=this.tsParseEntityName()),this.match(47)&&(e.typeParameters=this.tsParseTypeArguments()),this.finishNode(e,`TSImportType`)}tsParseEntityName(e=!0){let t=this.parseIdentifier(e);for(;this.eat(16);){let n=this.startNodeAtNode(t);n.left=t,n.right=this.parseIdentifier(e),t=this.finishNode(n,`TSQualifiedName`)}return t}tsParseTypeReference(){let e=this.startNode();return e.typeName=this.tsParseEntityName(),!this.hasPrecedingLineBreak()&&this.match(47)&&(e.typeParameters=this.tsParseTypeArguments()),this.finishNode(e,`TSTypeReference`)}tsParseThisTypePredicate(e){this.next();let t=this.startNodeAtNode(e);return t.parameterName=e,t.typeAnnotation=this.tsParseTypeAnnotation(!1),t.asserts=!1,this.finishNode(t,`TSTypePredicate`)}tsParseThisTypeNode(){let e=this.startNode();return this.next(),this.finishNode(e,`TSThisType`)}tsParseTypeQuery(){let e=this.startNode();return this.expect(87),this.match(83)?e.exprName=this.tsParseImportType():e.exprName=this.tsParseEntityName(),!this.hasPrecedingLineBreak()&&this.match(47)&&(e.typeParameters=this.tsParseTypeArguments()),this.finishNode(e,`TSTypeQuery`)}tsParseTypeParameter(e){let t=this.startNode();return e(t),t.name=this.tsParseTypeParameterName(),t.constraint=this.tsEatThenParseType(81),t.default=this.tsEatThenParseType(29),this.finishNode(t,`TSTypeParameter`)}tsTryParseTypeParameters(e){if(this.match(47))return this.tsParseTypeParameters(e)}tsParseTypeParameters(e){let t=this.startNode();this.match(47)||this.match(143)?this.next():this.unexpected();let n={value:-1};return t.params=this.tsParseBracketedList(`TypeParametersOrArguments`,this.tsParseTypeParameter.bind(this,e),!1,!0,n),t.params.length===0&&this.raise(J.EmptyTypeParameters,t),n.value!==-1&&this.addExtra(t,`trailingComma`,n.value),this.finishNode(t,`TSTypeParameterDeclaration`)}tsFillSignature(e,t){let n=e===19;t.typeParameters=this.tsTryParseTypeParameters(this.tsParseConstModifier),this.expect(10),t.parameters=this.tsParseBindingListForSignature(),(n||this.match(e))&&(t.typeAnnotation=this.tsParseTypeOrTypePredicateAnnotation(e))}tsParseBindingListForSignature(){let e=super.parseBindingList(11,41,2);for(let t of e){let{type:e}=t;(e===`AssignmentPattern`||e===`TSParameterProperty`)&&this.raise(J.UnsupportedSignatureParameterKind,t,{type:e})}return e}tsParseTypeMemberSemicolon(){!this.eat(12)&&!this.isLineTerminator()&&this.expect(13)}tsParseSignatureMember(e,t){return this.tsFillSignature(14,t),this.tsParseTypeMemberSemicolon(),this.finishNode(t,e)}tsIsUnambiguouslyIndexSignature(){return this.next(),L(this.state.type)?(this.next(),this.match(14)):!1}tsTryParseIndexSignature(e){if(!(this.match(0)&&this.tsLookAhead(this.tsIsUnambiguouslyIndexSignature.bind(this))))return;this.expect(0);let t=this.parseIdentifier();t.typeAnnotation=this.tsParseTypeAnnotation(),this.resetEndLocation(t),this.expect(3),e.parameters=[t];let n=this.tsTryParseTypeAnnotation();return n&&(e.typeAnnotation=n),this.tsParseTypeMemberSemicolon(),this.finishNode(e,`TSIndexSignature`)}tsParsePropertyOrMethodSignature(e,t){this.eat(17)&&(e.optional=!0);let n=e;if(this.match(10)||this.match(47)){t&&this.raise(J.ReadonlyForMethodSignature,e);let r=n;r.kind&&this.match(47)&&this.raise(J.AccessorCannotHaveTypeParameters,this.state.curPosition()),this.tsFillSignature(14,r),this.tsParseTypeMemberSemicolon();let i=`parameters`,a=`typeAnnotation`;if(r.kind===`get`)r[i].length>0&&(this.raise(_.BadGetterArity,this.state.curPosition()),this.isThisParam(r[i][0])&&this.raise(J.AccessorCannotDeclareThisParameter,this.state.curPosition()));else if(r.kind===`set`){if(r[i].length!==1)this.raise(_.BadSetterArity,this.state.curPosition());else{let e=r[i][0];this.isThisParam(e)&&this.raise(J.AccessorCannotDeclareThisParameter,this.state.curPosition()),e.type===`Identifier`&&e.optional&&this.raise(J.SetAccessorCannotHaveOptionalParameter,this.state.curPosition()),e.type===`RestElement`&&this.raise(J.SetAccessorCannotHaveRestParameter,this.state.curPosition())}r[a]&&this.raise(J.SetAccessorCannotHaveReturnType,r[a])}else r.kind=`method`;return this.finishNode(r,`TSMethodSignature`)}else{let e=n;t&&(e.readonly=!0);let r=this.tsTryParseTypeAnnotation();return r&&(e.typeAnnotation=r),this.tsParseTypeMemberSemicolon(),this.finishNode(e,`TSPropertySignature`)}}tsParseTypeMember(){let e=this.startNode();if(this.match(10)||this.match(47))return this.tsParseSignatureMember(`TSCallSignatureDeclaration`,e);if(this.match(77)){let t=this.startNode();return this.next(),this.match(10)||this.match(47)?this.tsParseSignatureMember(`TSConstructSignatureDeclaration`,e):(e.key=this.createIdentifier(t,`new`),this.tsParsePropertyOrMethodSignature(e,!1))}return this.tsParseModifiers({allowedModifiers:[`readonly`],disallowedModifiers:[`declare`,`abstract`,`private`,`protected`,`public`,`static`,`override`]},e),this.tsTryParseIndexSignature(e)||(super.parsePropertyName(e),!e.computed&&e.key.type===`Identifier`&&(e.key.name===`get`||e.key.name===`set`)&&this.tsTokenCanFollowModifier()&&(e.kind=e.key.name,super.parsePropertyName(e)),this.tsParsePropertyOrMethodSignature(e,!!e.readonly))}tsParseTypeLiteral(){let e=this.startNode();return e.members=this.tsParseObjectTypeMembers(),this.finishNode(e,`TSTypeLiteral`)}tsParseObjectTypeMembers(){this.expect(5);let e=this.tsParseList(`TypeMembers`,this.tsParseTypeMember.bind(this));return this.expect(8),e}tsIsStartOfMappedType(){return this.next(),this.eat(53)?this.isContextual(122):(this.isContextual(122)&&this.next(),!this.match(0)||(this.next(),!this.tsIsIdentifier())?!1:(this.next(),this.match(58)))}tsParseMappedType(){let e=this.startNode();this.expect(5),this.match(53)?(e.readonly=this.state.value,this.next(),this.expectContextual(122)):this.eatContextual(122)&&(e.readonly=!0),this.expect(0);{let t=this.startNode();t.name=this.tsParseTypeParameterName(),t.constraint=this.tsExpectThenParseType(58),e.typeParameter=this.finishNode(t,`TSTypeParameter`)}return e.nameType=this.eatContextual(93)?this.tsParseType():null,this.expect(3),this.match(53)?(e.optional=this.state.value,this.next(),this.expect(17)):this.eat(17)&&(e.optional=!0),e.typeAnnotation=this.tsTryParseType(),this.semicolon(),this.expect(8),this.finishNode(e,`TSMappedType`)}tsParseTupleType(){let e=this.startNode();e.elementTypes=this.tsParseBracketedList(`TupleElementTypes`,this.tsParseTupleElementType.bind(this),!0,!1);let t=!1;return e.elementTypes.forEach(e=>{let{type:n}=e;t&&n!==`TSRestType`&&n!==`TSOptionalType`&&!(n===`TSNamedTupleMember`&&e.optional)&&this.raise(J.OptionalTypeBeforeRequired,e),t||=n===`TSNamedTupleMember`&&e.optional||n===`TSOptionalType`}),this.finishNode(e,`TSTupleType`)}tsParseTupleElementType(){let{startLoc:e}=this.state,t=this.eat(21),n,r,i,a,o=le(this.state.type)?this.lookaheadCharCode():null;if(o===58)n=!0,i=!1,r=this.parseIdentifier(!0),this.expect(14),a=this.tsParseType();else if(o===63){i=!0;let e=this.state.startLoc,t=this.state.value,o=this.tsParseNonArrayType();this.lookaheadCharCode()===58?(n=!0,r=this.createIdentifier(this.startNodeAt(e),t),this.expect(17),this.expect(14),a=this.tsParseType()):(n=!1,a=o,this.expect(17))}else a=this.tsParseType(),i=this.eat(17),n=this.eat(14);if(n){let e;r?(e=this.startNodeAtNode(r),e.optional=i,e.label=r,e.elementType=a,this.eat(17)&&(e.optional=!0,this.raise(J.TupleOptionalAfterType,this.state.lastTokStartLoc))):(e=this.startNodeAtNode(a),e.optional=i,this.raise(J.InvalidTupleMemberLabel,a),e.label=a,e.elementType=this.tsParseType()),a=this.finishNode(e,`TSNamedTupleMember`)}else if(i){let e=this.startNodeAtNode(a);e.typeAnnotation=a,a=this.finishNode(e,`TSOptionalType`)}if(t){let t=this.startNodeAt(e);t.typeAnnotation=a,a=this.finishNode(t,`TSRestType`)}return a}tsParseParenthesizedType(){let e=this.startNode();return this.expect(10),e.typeAnnotation=this.tsParseType(),this.expect(11),this.finishNode(e,`TSParenthesizedType`)}tsParseFunctionOrConstructorType(e,t){let n=this.startNode();return e===`TSConstructorType`&&(n.abstract=!!t,t&&this.next(),this.next()),this.tsInAllowConditionalTypesContext(()=>this.tsFillSignature(19,n)),this.finishNode(n,e)}tsParseLiteralTypeNode(){let e=this.startNode();switch(this.state.type){case 135:case 136:case 134:case 85:case 86:e.literal=super.parseExprAtom();break;default:this.unexpected()}return this.finishNode(e,`TSLiteralType`)}tsParseTemplateLiteralType(){let e=this.startNode();return e.literal=super.parseTemplate(!1),this.finishNode(e,`TSLiteralType`)}parseTemplateSubstitution(){return this.state.inType?this.tsParseType():super.parseTemplateSubstitution()}tsParseThisTypeOrThisTypePredicate(){let e=this.tsParseThisTypeNode();return this.isContextual(116)&&!this.hasPrecedingLineBreak()?this.tsParseThisTypePredicate(e):e}tsParseNonArrayType(){switch(this.state.type){case 134:case 135:case 136:case 85:case 86:return this.tsParseLiteralTypeNode();case 53:if(this.state.value===`-`){let e=this.startNode(),t=this.lookahead();return t.type!==135&&t.type!==136&&this.unexpected(),e.literal=this.parseMaybeUnary(),this.finishNode(e,`TSLiteralType`)}break;case 78:return this.tsParseThisTypeOrThisTypePredicate();case 87:return this.tsParseTypeQuery();case 83:return this.tsParseImportType();case 5:return this.tsLookAhead(this.tsIsStartOfMappedType.bind(this))?this.tsParseMappedType():this.tsParseTypeLiteral();case 0:return this.tsParseTupleType();case 10:return this.tsParseParenthesizedType();case 25:case 24:return this.tsParseTemplateLiteralType();default:{let{type:e}=this.state;if(L(e)||e===88||e===84){let t=e===88?`TSVoidKeyword`:e===84?`TSNullKeyword`:Qt(this.state.value);if(t!==void 0&&this.lookaheadCharCode()!==46){let e=this.startNode();return this.next(),this.finishNode(e,t)}return this.tsParseTypeReference()}}}this.unexpected()}tsParseArrayTypeOrHigher(){let e=this.tsParseNonArrayType();for(;!this.hasPrecedingLineBreak()&&this.eat(0);)if(this.match(3)){let t=this.startNodeAtNode(e);t.elementType=e,this.expect(3),e=this.finishNode(t,`TSArrayType`)}else{let t=this.startNodeAtNode(e);t.objectType=e,t.indexType=this.tsParseType(),this.expect(3),e=this.finishNode(t,`TSIndexedAccessType`)}return e}tsParseTypeOperator(){let e=this.startNode(),t=this.state.value;return this.next(),e.operator=t,e.typeAnnotation=this.tsParseTypeOperatorOrHigher(),t===`readonly`&&this.tsCheckTypeAnnotationForReadOnly(e),this.finishNode(e,`TSTypeOperator`)}tsCheckTypeAnnotationForReadOnly(e){switch(e.typeAnnotation.type){case`TSTupleType`:case`TSArrayType`:return;default:this.raise(J.UnexpectedReadonly,e)}}tsParseInferType(){let e=this.startNode();this.expectContextual(115);let t=this.startNode();return t.name=this.tsParseTypeParameterName(),t.constraint=this.tsTryParse(()=>this.tsParseConstraintForInferType()),e.typeParameter=this.finishNode(t,`TSTypeParameter`),this.finishNode(e,`TSInferType`)}tsParseConstraintForInferType(){if(this.eat(81)){let e=this.tsInDisallowConditionalTypesContext(()=>this.tsParseType());if(this.state.inDisallowConditionalTypesContext||!this.match(17))return e}}tsParseTypeOperatorOrHigher(){return z(this.state.type)&&!this.state.containsEsc?this.tsParseTypeOperator():this.isContextual(115)?this.tsParseInferType():this.tsInAllowConditionalTypesContext(()=>this.tsParseArrayTypeOrHigher())}tsParseUnionOrIntersectionType(e,t,n){let r=this.startNode(),i=this.eat(n),a=[];do a.push(t());while(this.eat(n));return a.length===1&&!i?a[0]:(r.types=a,this.finishNode(r,e))}tsParseIntersectionTypeOrHigher(){return this.tsParseUnionOrIntersectionType(`TSIntersectionType`,this.tsParseTypeOperatorOrHigher.bind(this),45)}tsParseUnionTypeOrHigher(){return this.tsParseUnionOrIntersectionType(`TSUnionType`,this.tsParseIntersectionTypeOrHigher.bind(this),43)}tsIsStartOfFunctionType(){return this.match(47)?!0:this.match(10)&&this.tsLookAhead(this.tsIsUnambiguouslyStartOfFunctionType.bind(this))}tsSkipParameterStart(){if(L(this.state.type)||this.match(78))return this.next(),!0;if(this.match(5)){let{errors:e}=this.state,t=e.length;try{return this.parseObjectLike(8,!0),e.length===t}catch{return!1}}if(this.match(0)){this.next();let{errors:e}=this.state,t=e.length;try{return super.parseBindingList(3,93,1),e.length===t}catch{return!1}}return!1}tsIsUnambiguouslyStartOfFunctionType(){return this.next(),!!(this.match(11)||this.match(21)||this.tsSkipParameterStart()&&(this.match(14)||this.match(12)||this.match(17)||this.match(29)||this.match(11)&&(this.next(),this.match(19))))}tsParseTypeOrTypePredicateAnnotation(e){return this.tsInType(()=>{let t=this.startNode();this.expect(e);let n=this.startNode(),r=!!this.tsTryParse(this.tsParseTypePredicateAsserts.bind(this));if(r&&this.match(78)){let e=this.tsParseThisTypeOrThisTypePredicate();return e.type===`TSThisType`?(n.parameterName=e,n.asserts=!0,n.typeAnnotation=null,e=this.finishNode(n,`TSTypePredicate`)):(this.resetStartLocationFromNode(e,n),e.asserts=!0),t.typeAnnotation=e,this.finishNode(t,`TSTypeAnnotation`)}let i=this.tsIsIdentifier()&&this.tsTryParse(this.tsParseTypePredicatePrefix.bind(this));if(!i)return r?(n.parameterName=this.parseIdentifier(),n.asserts=r,n.typeAnnotation=null,t.typeAnnotation=this.finishNode(n,`TSTypePredicate`),this.finishNode(t,`TSTypeAnnotation`)):this.tsParseTypeAnnotation(!1,t);let a=this.tsParseTypeAnnotation(!1);return n.parameterName=i,n.typeAnnotation=a,n.asserts=r,t.typeAnnotation=this.finishNode(n,`TSTypePredicate`),this.finishNode(t,`TSTypeAnnotation`)})}tsTryParseTypeOrTypePredicateAnnotation(){if(this.match(14))return this.tsParseTypeOrTypePredicateAnnotation(14)}tsTryParseTypeAnnotation(){if(this.match(14))return this.tsParseTypeAnnotation()}tsTryParseType(){return this.tsEatThenParseType(14)}tsParseTypePredicatePrefix(){let e=this.parseIdentifier();if(this.isContextual(116)&&!this.hasPrecedingLineBreak())return this.next(),e}tsParseTypePredicateAsserts(){if(this.state.type!==109)return!1;let e=this.state.containsEsc;return this.next(),!L(this.state.type)&&!this.match(78)?!1:(e&&this.raise(_.InvalidEscapedReservedWord,this.state.lastTokStartLoc,{reservedWord:`asserts`}),!0)}tsParseTypeAnnotation(e=!0,t=this.startNode()){return this.tsInType(()=>{e&&this.expect(14),t.typeAnnotation=this.tsParseType()}),this.finishNode(t,`TSTypeAnnotation`)}tsParseType(){Zt(this.state.inType);let e=this.tsParseNonConditionalType();if(this.state.inDisallowConditionalTypesContext||this.hasPrecedingLineBreak()||!this.eat(81))return e;let t=this.startNodeAtNode(e);return t.checkType=e,t.extendsType=this.tsInDisallowConditionalTypesContext(()=>this.tsParseNonConditionalType()),this.expect(17),t.trueType=this.tsInAllowConditionalTypesContext(()=>this.tsParseType()),this.expect(14),t.falseType=this.tsInAllowConditionalTypesContext(()=>this.tsParseType()),this.finishNode(t,`TSConditionalType`)}isAbstractConstructorSignature(){return this.isContextual(124)&&this.lookahead().type===77}tsParseNonConditionalType(){return this.tsIsStartOfFunctionType()?this.tsParseFunctionOrConstructorType(`TSFunctionType`):this.match(77)?this.tsParseFunctionOrConstructorType(`TSConstructorType`):this.isAbstractConstructorSignature()?this.tsParseFunctionOrConstructorType(`TSConstructorType`,!0):this.tsParseUnionTypeOrHigher()}tsParseTypeAssertion(){this.getPluginOption(`typescript`,`disallowAmbiguousJSXLike`)&&this.raise(J.ReservedTypeAssertion,this.state.startLoc);let e=this.startNode();return e.typeAnnotation=this.tsInType(()=>(this.next(),this.match(75)?this.tsParseTypeReference():this.tsParseType())),this.expect(48),e.expression=this.parseMaybeUnary(),this.finishNode(e,`TSTypeAssertion`)}tsParseHeritageClause(e){let t=this.state.startLoc,n=this.tsParseDelimitedList(`HeritageClauseElement`,()=>{let e=this.startNode();return e.expression=this.tsParseEntityName(),this.match(47)&&(e.typeParameters=this.tsParseTypeArguments()),this.finishNode(e,`TSExpressionWithTypeArguments`)});return n.length||this.raise(J.EmptyHeritageClauseType,t,{token:e}),n}tsParseInterfaceDeclaration(e,t={}){if(this.hasFollowingLineBreak())return null;this.expectContextual(129),t.declare&&(e.declare=!0),L(this.state.type)?(e.id=this.parseIdentifier(),this.checkIdentifier(e.id,130)):(e.id=null,this.raise(J.MissingInterfaceName,this.state.startLoc)),e.typeParameters=this.tsTryParseTypeParameters(this.tsParseInOutConstModifiers),this.eat(81)&&(e.extends=this.tsParseHeritageClause(`extends`));let n=this.startNode();return n.body=this.tsInType(this.tsParseObjectTypeMembers.bind(this)),e.body=this.finishNode(n,`TSInterfaceBody`),this.finishNode(e,`TSInterfaceDeclaration`)}tsParseTypeAliasDeclaration(e){return e.id=this.parseIdentifier(),this.checkIdentifier(e.id,2),e.typeAnnotation=this.tsInType(()=>{if(e.typeParameters=this.tsTryParseTypeParameters(this.tsParseInOutModifiers),this.expect(29),this.isContextual(114)&&this.lookahead().type!==16){let e=this.startNode();return this.next(),this.finishNode(e,`TSIntrinsicKeyword`)}return this.tsParseType()}),this.semicolon(),this.finishNode(e,`TSTypeAliasDeclaration`)}tsInNoContext(e){let t=this.state.context;this.state.context=[t[0]];try{return e()}finally{this.state.context=t}}tsInType(e){let t=this.state.inType;this.state.inType=!0;try{return e()}finally{this.state.inType=t}}tsInDisallowConditionalTypesContext(e){let t=this.state.inDisallowConditionalTypesContext;this.state.inDisallowConditionalTypesContext=!0;try{return e()}finally{this.state.inDisallowConditionalTypesContext=t}}tsInAllowConditionalTypesContext(e){let t=this.state.inDisallowConditionalTypesContext;this.state.inDisallowConditionalTypesContext=!1;try{return e()}finally{this.state.inDisallowConditionalTypesContext=t}}tsEatThenParseType(e){if(this.match(e))return this.tsNextThenParseType()}tsExpectThenParseType(e){return this.tsInType(()=>(this.expect(e),this.tsParseType()))}tsNextThenParseType(){return this.tsInType(()=>(this.next(),this.tsParseType()))}tsParseEnumMember(){let e=this.startNode();return e.id=this.match(134)?super.parseStringLiteral(this.state.value):this.parseIdentifier(!0),this.eat(29)&&(e.initializer=super.parseMaybeAssignAllowIn()),this.finishNode(e,`TSEnumMember`)}tsParseEnumDeclaration(e,t={}){return t.const&&(e.const=!0),t.declare&&(e.declare=!0),this.expectContextual(126),e.id=this.parseIdentifier(),this.checkIdentifier(e.id,e.const?8971:8459),this.expect(5),e.members=this.tsParseDelimitedList(`EnumMembers`,this.tsParseEnumMember.bind(this)),this.expect(8),this.finishNode(e,`TSEnumDeclaration`)}tsParseModuleBlock(){let e=this.startNode();return this.scope.enter(0),this.expect(5),super.parseBlockOrModuleBlockBody(e.body=[],void 0,!0,8),this.scope.exit(),this.finishNode(e,`TSModuleBlock`)}tsParseModuleOrNamespaceDeclaration(e,t=!1){if(e.id=this.parseIdentifier(),t||this.checkIdentifier(e.id,1024),this.eat(16)){let t=this.startNode();this.tsParseModuleOrNamespaceDeclaration(t,!0),e.body=t}else this.scope.enter(256),this.prodParam.enter(0),e.body=this.tsParseModuleBlock(),this.prodParam.exit(),this.scope.exit();return this.finishNode(e,`TSModuleDeclaration`)}tsParseAmbientExternalModuleDeclaration(e){return this.isContextual(112)?(e.kind=`global`,e.global=!0,e.id=this.parseIdentifier()):this.match(134)?(e.kind=`module`,e.id=super.parseStringLiteral(this.state.value)):this.unexpected(),this.match(5)?(this.scope.enter(256),this.prodParam.enter(0),e.body=this.tsParseModuleBlock(),this.prodParam.exit(),this.scope.exit()):this.semicolon(),this.finishNode(e,`TSModuleDeclaration`)}tsParseImportEqualsDeclaration(e,t,n){e.isExport=n||!1,e.id=t||this.parseIdentifier(),this.checkIdentifier(e.id,4096),this.expect(29);let r=this.tsParseModuleReference();return e.importKind===`type`&&r.type!==`TSExternalModuleReference`&&this.raise(J.ImportAliasHasImportType,r),e.moduleReference=r,this.semicolon(),this.finishNode(e,`TSImportEqualsDeclaration`)}tsIsExternalModuleReference(){return this.isContextual(119)&&this.lookaheadCharCode()===40}tsParseModuleReference(){return this.tsIsExternalModuleReference()?this.tsParseExternalModuleReference():this.tsParseEntityName(!1)}tsParseExternalModuleReference(){let e=this.startNode();return this.expectContextual(119),this.expect(10),this.match(134)||this.unexpected(),e.expression=super.parseExprAtom(),this.expect(11),this.sawUnambiguousESM=!0,this.finishNode(e,`TSExternalModuleReference`)}tsLookAhead(e){let t=this.state.clone(),n=e();return this.state=t,n}tsTryParseAndCatch(e){let t=this.tryParse(t=>e()||t());if(!(t.aborted||!t.node))return t.error&&(this.state=t.failState),t.node}tsTryParse(e){let t=this.state.clone(),n=e();if(n!==void 0&&n!==!1)return n;this.state=t}tsTryParseDeclare(e){if(this.isLineTerminator())return;let t=this.state.type,n;return this.isContextual(100)&&(t=74,n=`let`),this.tsInAmbientContext(()=>{switch(t){case 68:return e.declare=!0,super.parseFunctionStatement(e,!1,!1);case 80:return e.declare=!0,this.parseClass(e,!0,!1);case 126:return this.tsParseEnumDeclaration(e,{declare:!0});case 112:return this.tsParseAmbientExternalModuleDeclaration(e);case 75:case 74:return!this.match(75)||!this.isLookaheadContextual(`enum`)?(e.declare=!0,this.parseVarStatement(e,n||this.state.value,!0)):(this.expect(75),this.tsParseEnumDeclaration(e,{const:!0,declare:!0}));case 129:{let t=this.tsParseInterfaceDeclaration(e,{declare:!0});if(t)return t}default:if(L(t))return this.tsParseDeclaration(e,this.state.value,!0,null)}})}tsTryParseExportDeclaration(){return this.tsParseDeclaration(this.startNode(),this.state.value,!0,null)}tsParseExpressionStatement(e,t,n){switch(t.name){case`declare`:{let t=this.tsTryParseDeclare(e);return t&&(t.declare=!0),t}case`global`:if(this.match(5)){this.scope.enter(256),this.prodParam.enter(0);let n=e;return n.kind=`global`,e.global=!0,n.id=t,n.body=this.tsParseModuleBlock(),this.scope.exit(),this.prodParam.exit(),this.finishNode(n,`TSModuleDeclaration`)}break;default:return this.tsParseDeclaration(e,t.name,!1,n)}}tsParseDeclaration(e,t,n,r){switch(t){case`abstract`:if(this.tsCheckLineTerminator(n)&&(this.match(80)||L(this.state.type)))return this.tsParseAbstractDeclaration(e,r);break;case`module`:if(this.tsCheckLineTerminator(n)){if(this.match(134))return this.tsParseAmbientExternalModuleDeclaration(e);if(L(this.state.type))return e.kind=`module`,this.tsParseModuleOrNamespaceDeclaration(e)}break;case`namespace`:if(this.tsCheckLineTerminator(n)&&L(this.state.type))return e.kind=`namespace`,this.tsParseModuleOrNamespaceDeclaration(e);break;case`type`:if(this.tsCheckLineTerminator(n)&&L(this.state.type))return this.tsParseTypeAliasDeclaration(e);break}}tsCheckLineTerminator(e){return e?this.hasFollowingLineBreak()?!1:(this.next(),!0):!this.isLineTerminator()}tsTryParseGenericAsyncArrowFunction(e){if(!this.match(47))return;let t=this.state.maybeInArrowParameters;this.state.maybeInArrowParameters=!0;let n=this.tsTryParseAndCatch(()=>{let t=this.startNodeAt(e);return t.typeParameters=this.tsParseTypeParameters(this.tsParseConstModifier),super.parseFunctionParams(t),t.returnType=this.tsTryParseTypeOrTypePredicateAnnotation(),this.expect(19),t});if(this.state.maybeInArrowParameters=t,n)return super.parseArrowExpression(n,null,!0)}tsParseTypeArgumentsInExpression(){if(this.reScan_lt()===47)return this.tsParseTypeArguments()}tsParseTypeArguments(){let e=this.startNode();return e.params=this.tsInType(()=>this.tsInNoContext(()=>(this.expect(47),this.tsParseDelimitedList(`TypeParametersOrArguments`,this.tsParseType.bind(this))))),e.params.length===0?this.raise(J.EmptyTypeArguments,e):!this.state.inType&&this.curContext()===w.brace&&this.reScan_lt_gt(),this.expect(48),this.finishNode(e,`TSTypeParameterInstantiation`)}tsIsDeclarationStart(){return ye(this.state.type)}isExportDefaultSpecifier(){return this.tsIsDeclarationStart()?!1:super.isExportDefaultSpecifier()}parseAssignableListItem(e,t){let n=this.state.startLoc,r={};this.tsParseModifiers({allowedModifiers:[`public`,`private`,`protected`,`override`,`readonly`]},r);let i=r.accessibility,a=r.override,o=r.readonly;!(e&4)&&(i||o||a)&&this.raise(J.UnexpectedParameterModifier,n);let s=this.parseMaybeDefault();e&2&&this.parseFunctionParamType(s);let c=this.parseMaybeDefault(s.loc.start,s);if(i||o||a){let e=this.startNodeAt(n);return t.length&&(e.decorators=t),i&&(e.accessibility=i),o&&(e.readonly=o),a&&(e.override=a),c.type!==`Identifier`&&c.type!==`AssignmentPattern`&&this.raise(J.UnsupportedParameterPropertyKind,e),e.parameter=c,this.finishNode(e,`TSParameterProperty`)}return t.length&&(s.decorators=t),c}isSimpleParameter(e){return e.type===`TSParameterProperty`&&super.isSimpleParameter(e.parameter)||super.isSimpleParameter(e)}tsDisallowOptionalPattern(e){for(let t of e.params)t.type!==`Identifier`&&t.optional&&!this.state.isAmbientContext&&this.raise(J.PatternIsOptional,t)}setArrowFunctionParameters(e,t,n){super.setArrowFunctionParameters(e,t,n),this.tsDisallowOptionalPattern(e)}parseFunctionBodyAndFinish(e,t,n=!1){this.match(14)&&(e.returnType=this.tsParseTypeOrTypePredicateAnnotation(14));let r=t===`FunctionDeclaration`?`TSDeclareFunction`:t===`ClassMethod`||t===`ClassPrivateMethod`?`TSDeclareMethod`:void 0;return r&&!this.match(5)&&this.isLineTerminator()?this.finishNode(e,r):r===`TSDeclareFunction`&&this.state.isAmbientContext&&(this.raise(J.DeclareFunctionHasImplementation,e),e.declare)?super.parseFunctionBodyAndFinish(e,r,n):(this.tsDisallowOptionalPattern(e),super.parseFunctionBodyAndFinish(e,t,n))}registerFunctionStatementId(e){!e.body&&e.id?this.checkIdentifier(e.id,1024):super.registerFunctionStatementId(e)}tsCheckForInvalidTypeCasts(e){e.forEach(e=>{e?.type===`TSTypeCastExpression`&&this.raise(J.UnexpectedTypeAnnotation,e.typeAnnotation)})}toReferencedList(e,t){return this.tsCheckForInvalidTypeCasts(e),e}parseArrayLike(e,t,n,r){let i=super.parseArrayLike(e,t,n,r);return i.type===`ArrayExpression`&&this.tsCheckForInvalidTypeCasts(i.elements),i}parseSubscript(e,t,n,r){if(!this.hasPrecedingLineBreak()&&this.match(35)){this.state.canStartJSXElement=!1,this.next();let n=this.startNodeAt(t);return n.expression=e,this.finishNode(n,`TSNonNullExpression`)}let i=!1;if(this.match(18)&&this.lookaheadCharCode()===60){if(n)return r.stop=!0,e;r.optionalChainMember=i=!0,this.next()}if(this.match(47)||this.match(51)){let a,o=this.tsTryParseAndCatch(()=>{if(!n&&this.atPossibleAsyncArrow(e)){let e=this.tsTryParseGenericAsyncArrowFunction(t);if(e)return e}let o=this.tsParseTypeArgumentsInExpression();if(!o)return;if(i&&!this.match(10)){a=this.state.curPosition();return}if(Se(this.state.type)){let n=super.parseTaggedTemplateExpression(e,t,r);return n.typeParameters=o,n}if(!n&&this.eat(10)){let n=this.startNodeAt(t);return n.callee=e,n.arguments=this.parseCallExpressionArguments(11),this.tsCheckForInvalidTypeCasts(n.arguments),n.typeParameters=o,r.optionalChainMember&&(n.optional=i),this.finishCallExpression(n,r.optionalChainMember)}let s=this.state.type;if(s===48||s===52||s!==10&&fe(s)&&!this.hasPrecedingLineBreak())return;let c=this.startNodeAt(t);return c.expression=e,c.typeParameters=o,this.finishNode(c,`TSInstantiationExpression`)});if(a&&this.unexpected(a,10),o)return o.type===`TSInstantiationExpression`&&(this.match(16)||this.match(18)&&this.lookaheadCharCode()!==40)&&this.raise(J.InvalidPropertyAccessAfterInstantiationExpression,this.state.startLoc),o}return super.parseSubscript(e,t,n,r)}parseNewCallee(e){var t;super.parseNewCallee(e);let{callee:n}=e;n.type===`TSInstantiationExpression`&&!((t=n.extra)!=null&&t.parenthesized)&&(e.typeParameters=n.typeParameters,e.callee=n.expression)}parseExprOp(e,t,n){let r;if(be(58)>n&&!this.hasPrecedingLineBreak()&&(this.isContextual(93)||(r=this.isContextual(120)))){let i=this.startNodeAt(t);return i.expression=e,i.typeAnnotation=this.tsInType(()=>(this.next(),this.match(75)?(r&&this.raise(_.UnexpectedKeyword,this.state.startLoc,{keyword:`const`}),this.tsParseTypeReference()):this.tsParseType())),this.finishNode(i,r?`TSSatisfiesExpression`:`TSAsExpression`),this.reScan_lt_gt(),this.parseExprOp(i,t,n)}return super.parseExprOp(e,t,n)}checkReservedWord(e,t,n,r){this.state.isAmbientContext||super.checkReservedWord(e,t,n,r)}checkImportReflection(e){super.checkImportReflection(e),e.module&&e.importKind!==`value`&&this.raise(J.ImportReflectionHasImportType,e.specifiers[0].loc.start)}checkDuplicateExports(){}isPotentialImportPhase(e){if(super.isPotentialImportPhase(e))return!0;if(this.isContextual(130)){let t=this.lookaheadCharCode();return e?t===123||t===42:t!==61}return!e&&this.isContextual(87)}applyImportPhase(e,t,n,r){super.applyImportPhase(e,t,n,r),t?e.exportKind=n===`type`?`type`:`value`:e.importKind=n===`type`||n===`typeof`?n:`value`}parseImport(e){if(this.match(134))return e.importKind=`value`,super.parseImport(e);let t;if(L(this.state.type)&&this.lookaheadCharCode()===61)return e.importKind=`value`,this.tsParseImportEqualsDeclaration(e);if(this.isContextual(130)){let n=this.parseMaybeImportPhase(e,!1);if(this.lookaheadCharCode()===61)return this.tsParseImportEqualsDeclaration(e,n);t=super.parseImportSpecifiersAndAfter(e,n)}else t=super.parseImport(e);return t.importKind===`type`&&t.specifiers.length>1&&t.specifiers[0].type===`ImportDefaultSpecifier`&&this.raise(J.TypeImportCannotSpecifyDefaultAndNamed,t),t}parseExport(e,t){if(this.match(83)){this.next();let t=e,n=null;return this.isContextual(130)&&this.isPotentialImportPhase(!1)?n=this.parseMaybeImportPhase(t,!1):t.importKind=`value`,this.tsParseImportEqualsDeclaration(t,n,!0)}else if(this.eat(29)){let t=e;return t.expression=super.parseExpression(),this.semicolon(),this.sawUnambiguousESM=!0,this.finishNode(t,`TSExportAssignment`)}else if(this.eatContextual(93)){let t=e;return this.expectContextual(128),t.id=this.parseIdentifier(),this.semicolon(),this.finishNode(t,`TSNamespaceExportDeclaration`)}else return super.parseExport(e,t)}isAbstractClass(){return this.isContextual(124)&&this.lookahead().type===80}parseExportDefaultExpression(){if(this.isAbstractClass()){let e=this.startNode();return this.next(),e.abstract=!0,this.parseClass(e,!0,!0)}if(this.match(129)){let e=this.tsParseInterfaceDeclaration(this.startNode());if(e)return e}return super.parseExportDefaultExpression()}parseVarStatement(e,t,n=!1){let{isAmbientContext:r}=this.state,i=super.parseVarStatement(e,t,n||r);if(!r)return i;for(let{id:e,init:n}of i.declarations)n&&(t!==`const`||e.typeAnnotation?this.raise(J.InitializerNotAllowedInAmbientContext,n):rn(n,this.hasPlugin(`estree`))||this.raise(J.ConstInitializerMustBeStringOrNumericLiteralOrLiteralEnumReference,n));return i}parseStatementContent(e,t){if(this.match(75)&&this.isLookaheadContextual(`enum`)){let e=this.startNode();return this.expect(75),this.tsParseEnumDeclaration(e,{const:!0})}if(this.isContextual(126))return this.tsParseEnumDeclaration(this.startNode());if(this.isContextual(129)){let e=this.tsParseInterfaceDeclaration(this.startNode());if(e)return e}return super.parseStatementContent(e,t)}parseAccessModifier(){return this.tsParseModifier([`public`,`protected`,`private`])}tsHasSomeModifiers(e,t){return t.some(t=>$t(t)?e.accessibility===t:!!e[t])}tsIsStartOfStaticBlocks(){return this.isContextual(106)&&this.lookaheadCharCode()===123}parseClassMember(e,t,n){let r=[`declare`,`private`,`public`,`protected`,`override`,`abstract`,`readonly`,`static`];this.tsParseModifiers({allowedModifiers:r,disallowedModifiers:[`in`,`out`],stopOnStartOfClassStaticBlock:!0,errorTemplate:J.InvalidModifierOnTypeParameterPositions},t);let i=x(()=>{this.tsIsStartOfStaticBlocks()?(this.next(),this.next(),this.tsHasSomeModifiers(t,r)&&this.raise(J.StaticBlockCannotHaveModifier,this.state.curPosition()),super.parseClassStaticBlock(e,t)):this.parseClassMemberWithIsStatic(e,t,n,!!t.static)},`callParseClassMemberWithIsStatic`);t.declare?this.tsInAmbientContext(i):i()}parseClassMemberWithIsStatic(e,t,n,r){let i=this.tsTryParseIndexSignature(t);if(i){e.body.push(i),t.abstract&&this.raise(J.IndexSignatureHasAbstract,t),t.accessibility&&this.raise(J.IndexSignatureHasAccessibility,t,{modifier:t.accessibility}),t.declare&&this.raise(J.IndexSignatureHasDeclare,t),t.override&&this.raise(J.IndexSignatureHasOverride,t);return}!this.state.inAbstractClass&&t.abstract&&this.raise(J.NonAbstractClassHasAbstractMethod,t),t.override&&(n.hadSuperClass||this.raise(J.OverrideNotInSubClass,t)),super.parseClassMemberWithIsStatic(e,t,n,r)}parsePostMemberNameModifiers(e){this.eat(17)&&(e.optional=!0),e.readonly&&this.match(10)&&this.raise(J.ClassMethodHasReadonly,e),e.declare&&this.match(10)&&this.raise(J.ClassMethodHasDeclare,e)}parseExpressionStatement(e,t,n){return(t.type===`Identifier`?this.tsParseExpressionStatement(e,t,n):void 0)||super.parseExpressionStatement(e,t,n)}shouldParseExportDeclaration(){return this.tsIsDeclarationStart()?!0:super.shouldParseExportDeclaration()}parseConditional(e,t,n){if(!this.state.maybeInArrowParameters||!this.match(17))return super.parseConditional(e,t,n);let r=this.tryParse(()=>super.parseConditional(e,t));return r.node?(r.error&&(this.state=r.failState),r.node):(r.error&&super.setOptionalParametersError(n,r.error),e)}parseParenItem(e,t){let n=super.parseParenItem(e,t);if(this.eat(17)&&(n.optional=!0,this.resetEndLocation(e)),this.match(14)){let n=this.startNodeAt(t);return n.expression=e,n.typeAnnotation=this.tsParseTypeAnnotation(),this.finishNode(n,`TSTypeCastExpression`)}return e}parseExportDeclaration(e){if(!this.state.isAmbientContext&&this.isContextual(125))return this.tsInAmbientContext(()=>this.parseExportDeclaration(e));let t=this.state.startLoc,n=this.eatContextual(125);if(n&&(this.isContextual(125)||!this.shouldParseExportDeclaration()))throw this.raise(J.ExpectedAmbientAfterExportDeclare,this.state.startLoc);let r=L(this.state.type)&&this.tsTryParseExportDeclaration()||super.parseExportDeclaration(e);return r?((r.type===`TSInterfaceDeclaration`||r.type===`TSTypeAliasDeclaration`||n)&&(e.exportKind=`type`),n&&(this.resetStartLocation(r,t),r.declare=!0),r):null}parseClassId(e,t,n,r){if((!t||n)&&this.isContextual(113))return;super.parseClassId(e,t,n,e.declare?1024:8331);let i=this.tsTryParseTypeParameters(this.tsParseInOutConstModifiers);i&&(e.typeParameters=i)}parseClassPropertyAnnotation(e){e.optional||(this.eat(35)?e.definite=!0:this.eat(17)&&(e.optional=!0));let t=this.tsTryParseTypeAnnotation();t&&(e.typeAnnotation=t)}parseClassProperty(e){if(this.parseClassPropertyAnnotation(e),this.state.isAmbientContext&&!(e.readonly&&!e.typeAnnotation)&&this.match(29)&&this.raise(J.DeclareClassFieldHasInitializer,this.state.startLoc),e.abstract&&this.match(29)){let{key:t}=e;this.raise(J.AbstractPropertyHasInitializer,this.state.startLoc,{propertyName:t.type===`Identifier`&&!e.computed?t.name:`[${this.input.slice(this.offsetToSourcePos(t.start),this.offsetToSourcePos(t.end))}]`})}return super.parseClassProperty(e)}parseClassPrivateProperty(e){return e.abstract&&this.raise(J.PrivateElementHasAbstract,e),e.accessibility&&this.raise(J.PrivateElementHasAccessibility,e,{modifier:e.accessibility}),this.parseClassPropertyAnnotation(e),super.parseClassPrivateProperty(e)}parseClassAccessorProperty(e){return this.parseClassPropertyAnnotation(e),e.optional&&this.raise(J.AccessorCannotBeOptional,e),super.parseClassAccessorProperty(e)}pushClassMethod(e,t,n,r,i,a){let o=this.tsTryParseTypeParameters(this.tsParseConstModifier);o&&i&&this.raise(J.ConstructorHasTypeParameters,o);let{declare:s=!1,kind:c}=t;s&&(c===`get`||c===`set`)&&this.raise(J.DeclareAccessor,t,{kind:c}),o&&(t.typeParameters=o),super.pushClassMethod(e,t,n,r,i,a)}pushClassPrivateMethod(e,t,n,r){let i=this.tsTryParseTypeParameters(this.tsParseConstModifier);i&&(t.typeParameters=i),super.pushClassPrivateMethod(e,t,n,r)}declareClassPrivateMethodInScope(e,t){e.type!==`TSDeclareMethod`&&(e.type===`MethodDefinition`&&!hasOwnProperty.call(e.value,`body`)||super.declareClassPrivateMethodInScope(e,t))}parseClassSuper(e){super.parseClassSuper(e),e.superClass&&(this.match(47)||this.match(51))&&(e.superTypeParameters=this.tsParseTypeArgumentsInExpression()),this.eatContextual(113)&&(e.implements=this.tsParseHeritageClause(`implements`))}parseObjPropValue(e,t,n,r,i,a,o){let s=this.tsTryParseTypeParameters(this.tsParseConstModifier);return s&&(e.typeParameters=s),super.parseObjPropValue(e,t,n,r,i,a,o)}parseFunctionParams(e,t){let n=this.tsTryParseTypeParameters(this.tsParseConstModifier);n&&(e.typeParameters=n),super.parseFunctionParams(e,t)}parseVarId(e,t){super.parseVarId(e,t),e.id.type===`Identifier`&&!this.hasPrecedingLineBreak()&&this.eat(35)&&(e.definite=!0);let n=this.tsTryParseTypeAnnotation();n&&(e.id.typeAnnotation=n,this.resetEndLocation(e.id))}parseAsyncArrowFromCallExpression(e,t){return this.match(14)&&(e.returnType=this.tsParseTypeAnnotation()),super.parseAsyncArrowFromCallExpression(e,t)}parseMaybeAssign(e,t){var n,r,i;let a,o,s;if(this.hasPlugin(`jsx`)&&(this.match(143)||this.match(47))){if(a=this.state.clone(),o=this.tryParse(()=>super.parseMaybeAssign(e,t),a),!o.error)return o.node;let{context:n}=this.state,r=n[n.length-1];(r===w.j_oTag||r===w.j_expr)&&n.pop()}if(!((n=o)!=null&&n.error)&&!this.match(47))return super.parseMaybeAssign(e,t);(!a||a===this.state)&&(a=this.state.clone());let c,l=this.tryParse(n=>{var r;c=this.tsParseTypeParameters(this.tsParseConstModifier);let i=super.parseMaybeAssign(e,t);return(i.type!==`ArrowFunctionExpression`||(r=i.extra)!=null&&r.parenthesized)&&n(),c?.params.length!==0&&this.resetStartLocationFromNode(i,c),i.typeParameters=c,i},a);if(!l.error&&!l.aborted)return c&&this.reportReservedArrowTypeParam(c),l.node;if(!o&&(Zt(!this.hasPlugin(`jsx`)),s=this.tryParse(()=>super.parseMaybeAssign(e,t),a),!s.error))return s.node;if((r=o)!=null&&r.node)return this.state=o.failState,o.node;if(l.node)return this.state=l.failState,c&&this.reportReservedArrowTypeParam(c),l.node;if((i=s)!=null&&i.node)return this.state=s.failState,s.node;throw o?.error||l.error||s?.error}reportReservedArrowTypeParam(e){var t;e.params.length===1&&!e.params[0].constraint&&!((t=e.extra)!=null&&t.trailingComma)&&this.getPluginOption(`typescript`,`disallowAmbiguousJSXLike`)&&this.raise(J.ReservedArrowTypeParam,e)}parseMaybeUnary(e,t){return!this.hasPlugin(`jsx`)&&this.match(47)?this.tsParseTypeAssertion():super.parseMaybeUnary(e,t)}parseArrow(e){if(this.match(14)){let t=this.tryParse(e=>{let t=this.tsParseTypeOrTypePredicateAnnotation(14);return(this.canInsertSemicolon()||!this.match(19))&&e(),t});if(t.aborted)return;t.thrown||(t.error&&(this.state=t.failState),e.returnType=t.node)}return super.parseArrow(e)}parseFunctionParamType(e){this.eat(17)&&(e.optional=!0);let t=this.tsTryParseTypeAnnotation();return t&&(e.typeAnnotation=t),this.resetEndLocation(e),e}isAssignable(e,t){switch(e.type){case`TSTypeCastExpression`:return this.isAssignable(e.expression,t);case`TSParameterProperty`:return!0;default:return super.isAssignable(e,t)}}toAssignable(e,t=!1){switch(e.type){case`ParenthesizedExpression`:this.toAssignableParenthesizedExpression(e,t);break;case`TSAsExpression`:case`TSSatisfiesExpression`:case`TSNonNullExpression`:case`TSTypeAssertion`:t?this.expressionScope.recordArrowParameterBindingError(J.UnexpectedTypeCastInParameter,e):this.raise(J.UnexpectedTypeCastInParameter,e),this.toAssignable(e.expression,t);break;case`AssignmentExpression`:!t&&e.left.type===`TSTypeCastExpression`&&(e.left=this.typeCastToParameter(e.left));default:super.toAssignable(e,t)}}toAssignableParenthesizedExpression(e,t){switch(e.expression.type){case`TSAsExpression`:case`TSSatisfiesExpression`:case`TSNonNullExpression`:case`TSTypeAssertion`:case`ParenthesizedExpression`:this.toAssignable(e.expression,t);break;default:super.toAssignable(e,t)}}checkToRestConversion(e,t){switch(e.type){case`TSAsExpression`:case`TSSatisfiesExpression`:case`TSTypeAssertion`:case`TSNonNullExpression`:this.checkToRestConversion(e.expression,!1);break;default:super.checkToRestConversion(e,t)}}isValidLVal(e,t,n){switch(e){case`TSTypeCastExpression`:return!0;case`TSParameterProperty`:return`parameter`;case`TSNonNullExpression`:case`TSInstantiationExpression`:return`expression`;case`TSAsExpression`:case`TSSatisfiesExpression`:case`TSTypeAssertion`:return(n!==64||!t)&&[`expression`,!0];default:return super.isValidLVal(e,t,n)}}parseBindingAtom(){return this.state.type===78?this.parseIdentifier(!0):super.parseBindingAtom()}parseMaybeDecoratorArguments(e){if(this.match(47)||this.match(51)){let t=this.tsParseTypeArgumentsInExpression();if(this.match(10)){let n=super.parseMaybeDecoratorArguments(e);return n.typeParameters=t,n}this.unexpected(null,10)}return super.parseMaybeDecoratorArguments(e)}checkCommaAfterRest(e){return this.state.isAmbientContext&&this.match(12)&&this.lookaheadCharCode()===e?(this.next(),!1):super.checkCommaAfterRest(e)}isClassMethod(){return this.match(47)||super.isClassMethod()}isClassProperty(){return this.match(35)||this.match(14)||super.isClassProperty()}parseMaybeDefault(e,t){let n=super.parseMaybeDefault(e,t);return n.type===`AssignmentPattern`&&n.typeAnnotation&&n.right.start<n.typeAnnotation.start&&this.raise(J.TypeAnnotationAfterAssign,n.typeAnnotation),n}getTokenFromCode(e){if(this.state.inType){if(e===62){this.finishOp(48,1);return}if(e===60){this.finishOp(47,1);return}}super.getTokenFromCode(e)}reScan_lt_gt(){let{type:e}=this.state;e===47?(--this.state.pos,this.readToken_lt()):e===48&&(--this.state.pos,this.readToken_gt())}reScan_lt(){let{type:e}=this.state;return e===51?(this.state.pos-=2,this.finishOp(47,1),47):e}toAssignableList(e,t,n){for(let t=0;t<e.length;t++){let n=e[t];n?.type===`TSTypeCastExpression`&&(e[t]=this.typeCastToParameter(n))}super.toAssignableList(e,t,n)}typeCastToParameter(e){return e.expression.typeAnnotation=e.typeAnnotation,this.resetEndLocation(e.expression,e.typeAnnotation.loc.end),e.expression}shouldParseArrow(e){return this.match(14)?e.every(e=>this.isAssignable(e,!0)):super.shouldParseArrow(e)}shouldParseAsyncArrow(){return this.match(14)||super.shouldParseAsyncArrow()}canHaveLeadingDecorator(){return super.canHaveLeadingDecorator()||this.isAbstractClass()}jsxParseOpeningElementAfterName(e){if(this.match(47)||this.match(51)){let t=this.tsTryParseAndCatch(()=>this.tsParseTypeArgumentsInExpression());t&&(e.typeParameters=t)}return super.jsxParseOpeningElementAfterName(e)}getGetterSetterExpectedParamCount(e){let t=super.getGetterSetterExpectedParamCount(e),n=this.getObjectOrClassMethodParams(e)[0];return n&&this.isThisParam(n)?t+1:t}parseCatchClauseParam(){let e=super.parseCatchClauseParam(),t=this.tsTryParseTypeAnnotation();return t&&(e.typeAnnotation=t,this.resetEndLocation(e)),e}tsInAmbientContext(e){let{isAmbientContext:t,strict:n}=this.state;this.state.isAmbientContext=!0,this.state.strict=!1;try{return e()}finally{this.state.isAmbientContext=t,this.state.strict=n}}parseClass(e,t,n){let r=this.state.inAbstractClass;this.state.inAbstractClass=!!e.abstract;try{return super.parseClass(e,t,n)}finally{this.state.inAbstractClass=r}}tsParseAbstractDeclaration(e,t){if(this.match(80))return e.abstract=!0,this.maybeTakeDecorators(t,this.parseClass(e,!0,!1));if(this.isContextual(129)){if(!this.hasFollowingLineBreak())return e.abstract=!0,this.raise(J.NonClassMethodPropertyHasAbstractModifer,e),this.tsParseInterfaceDeclaration(e)}else this.unexpected(null,80)}parseMethod(e,t,n,r,i,a,o){let s=super.parseMethod(e,t,n,r,i,a,o);if(s.abstract&&(this.hasPlugin(`estree`)?s.value.body:s.body)){let{key:e}=s;this.raise(J.AbstractMethodHasImplementation,s,{methodName:e.type===`Identifier`&&!s.computed?e.name:`[${this.input.slice(this.offsetToSourcePos(e.start),this.offsetToSourcePos(e.end))}]`})}return s}tsParseTypeParameterName(){return this.parseIdentifier().name}shouldParseAsAmbientContext(){return!!this.getPluginOption(`typescript`,`dts`)}parse(){return this.shouldParseAsAmbientContext()&&(this.state.isAmbientContext=!0),super.parse()}getExpression(){return this.shouldParseAsAmbientContext()&&(this.state.isAmbientContext=!0),super.getExpression()}parseExportSpecifier(e,t,n,r){return!t&&r?(this.parseTypeOnlyImportExportSpecifier(e,!1,n),this.finishNode(e,`ExportSpecifier`)):(e.exportKind=`value`,super.parseExportSpecifier(e,t,n,r))}parseImportSpecifier(e,t,n,r,i){return!t&&r?(this.parseTypeOnlyImportExportSpecifier(e,!0,n),this.finishNode(e,`ImportSpecifier`)):(e.importKind=`value`,super.parseImportSpecifier(e,t,n,r,n?4098:4096))}parseTypeOnlyImportExportSpecifier(e,t,n){let r=t?`imported`:`local`,i=t?`local`:`exported`,a=e[r],o,s=!1,c=!0,l=a.loc.start;if(this.isContextual(93)){let e=this.parseIdentifier();if(this.isContextual(93)){let n=this.parseIdentifier();le(this.state.type)?(s=!0,a=e,o=t?this.parseIdentifier():this.parseModuleExportName(),c=!1):(o=n,c=!1)}else le(this.state.type)?(c=!1,o=t?this.parseIdentifier():this.parseModuleExportName()):(s=!0,a=e)}else le(this.state.type)&&(s=!0,t?(a=this.parseIdentifier(!0),this.isContextual(93)||this.checkReservedWord(a.name,a.loc.start,!0,!0)):a=this.parseModuleExportName());s&&n&&this.raise(t?J.TypeModifierIsUsedInTypeImports:J.TypeModifierIsUsedInTypeExports,l),e[r]=a,e[i]=o;let u=t?`importKind`:`exportKind`;e[u]=s?`type`:`value`,c&&this.eatContextual(93)&&(e[i]=t?this.parseIdentifier():this.parseModuleExportName()),e[i]||(e[i]=Pt(e[r])),t&&this.checkIdentifier(e[i],s?4098:4096)}},`typescript`);function nn(e){if(e.type!==`MemberExpression`)return!1;let{computed:t,property:n}=e;return t&&n.type!==`StringLiteral`&&(n.type!==`TemplateLiteral`||n.expressions.length>0)?!1:sn(e.object)}x(nn,`isPossiblyLiteralEnum`);function rn(e,t){var n;let{type:r}=e;if((n=e.extra)!=null&&n.parenthesized)return!1;if(t){if(r===`Literal`){let{value:t}=e;if(typeof t==`string`||typeof t==`boolean`)return!0}}else if(r===`StringLiteral`||r===`BooleanLiteral`)return!0;return!!(an(e,t)||on(e,t)||r===`TemplateLiteral`&&e.expressions.length===0||nn(e))}x(rn,`isValidAmbientConstInitializer`);function an(e,t){return t?e.type===`Literal`&&(typeof e.value==`number`||`bigint`in e):e.type===`NumericLiteral`||e.type===`BigIntLiteral`}x(an,`isNumber`);function on(e,t){if(e.type===`UnaryExpression`){let{operator:n,argument:r}=e;if(n===`-`&&an(r,t))return!0}return!1}x(on,`isNegativeNumber`);function sn(e){return e.type===`Identifier`?!0:e.type!==`MemberExpression`||e.computed?!1:sn(e.object)}x(sn,`isUncomputedMemberExpressionChain`);var cn=g`placeholders`({ClassNameIsRequired:`A class name is required.`,UnexpectedSpace:`Unexpected space in placeholder.`}),ln=x(e=>class extends e{static{x(this,`PlaceholdersParserMixin`)}parsePlaceholder(e){if(this.match(133)){let t=this.startNode();return this.next(),this.assertNoSpace(),t.name=super.parseIdentifier(!0),this.assertNoSpace(),this.expect(133),this.finishPlaceholder(t,e)}}finishPlaceholder(e,t){let n=e;return(!n.expectedNode||!n.type)&&(n=this.finishNode(n,`Placeholder`)),n.expectedNode=t,n}getTokenFromCode(e){e===37&&this.input.charCodeAt(this.state.pos+1)===37?this.finishOp(133,2):super.getTokenFromCode(e)}parseExprAtom(e){return this.parsePlaceholder(`Expression`)||super.parseExprAtom(e)}parseIdentifier(e){return this.parsePlaceholder(`Identifier`)||super.parseIdentifier(e)}checkReservedWord(e,t,n,r){e!==void 0&&super.checkReservedWord(e,t,n,r)}parseBindingAtom(){return this.parsePlaceholder(`Pattern`)||super.parseBindingAtom()}isValidLVal(e,t,n){return e===`Placeholder`||super.isValidLVal(e,t,n)}toAssignable(e,t){e&&e.type===`Placeholder`&&e.expectedNode===`Expression`?e.expectedNode=`Pattern`:super.toAssignable(e,t)}chStartsBindingIdentifier(e,t){return!!(super.chStartsBindingIdentifier(e,t)||this.lookahead().type===133)}verifyBreakContinue(e,t){e.label&&e.label.type===`Placeholder`||super.verifyBreakContinue(e,t)}parseExpressionStatement(e,t){var n;if(t.type!==`Placeholder`||(n=t.extra)!=null&&n.parenthesized)return super.parseExpressionStatement(e,t);if(this.match(14)){let n=e;return n.label=this.finishPlaceholder(t,`Identifier`),this.next(),n.body=super.parseStatementOrSloppyAnnexBFunctionDeclaration(),this.finishNode(n,`LabeledStatement`)}this.semicolon();let r=e;return r.name=t.name,this.finishPlaceholder(r,`Statement`)}parseBlock(e,t,n){return this.parsePlaceholder(`BlockStatement`)||super.parseBlock(e,t,n)}parseFunctionId(e){return this.parsePlaceholder(`Identifier`)||super.parseFunctionId(e)}parseClass(e,t,n){let r=t?`ClassDeclaration`:`ClassExpression`;this.next();let i=this.state.strict,a=this.parsePlaceholder(`Identifier`);if(a)if(this.match(81)||this.match(133)||this.match(5))e.id=a;else if(n||!t)return e.id=null,e.body=this.finishPlaceholder(a,`ClassBody`),this.finishNode(e,r);else throw this.raise(cn.ClassNameIsRequired,this.state.startLoc);else this.parseClassId(e,t,n);return super.parseClassSuper(e),e.body=this.parsePlaceholder(`ClassBody`)||super.parseClassBody(!!e.superClass,i),this.finishNode(e,r)}parseExport(e,t){let n=this.parsePlaceholder(`Identifier`);if(!n)return super.parseExport(e,t);let r=e;if(!this.isContextual(98)&&!this.match(12))return r.specifiers=[],r.source=null,r.declaration=this.finishPlaceholder(n,`Declaration`),this.finishNode(r,`ExportNamedDeclaration`);this.expectPlugin(`exportDefaultFrom`);let i=this.startNode();return i.exported=n,r.specifiers=[this.finishNode(i,`ExportDefaultSpecifier`)],super.parseExport(r,t)}isExportDefaultSpecifier(){if(this.match(65)){let e=this.nextTokenStart();if(this.isUnparsedContextual(e,`from`)&&this.input.startsWith(B(133),this.nextTokenStartSince(e+4)))return!0}return super.isExportDefaultSpecifier()}maybeParseExportDefaultSpecifier(e,t){var n;return(n=e.specifiers)!=null&&n.length?!0:super.maybeParseExportDefaultSpecifier(e,t)}checkExport(e){let{specifiers:t}=e;t!=null&&t.length&&(e.specifiers=t.filter(e=>e.exported.type===`Placeholder`)),super.checkExport(e),e.specifiers=t}parseImport(e){let t=this.parsePlaceholder(`Identifier`);if(!t)return super.parseImport(e);if(e.specifiers=[],!this.isContextual(98)&&!this.match(12))return e.source=this.finishPlaceholder(t,`StringLiteral`),this.semicolon(),this.finishNode(e,`ImportDeclaration`);let n=this.startNodeAtNode(t);return n.local=t,e.specifiers.push(this.finishNode(n,`ImportDefaultSpecifier`)),this.eat(12)&&(this.maybeParseStarImportSpecifier(e)||this.parseNamedImportSpecifiers(e)),this.expectContextual(98),e.source=this.parseImportSource(),this.semicolon(),this.finishNode(e,`ImportDeclaration`)}parseImportSource(){return this.parsePlaceholder(`StringLiteral`)||super.parseImportSource()}assertNoSpace(){this.state.start>this.offsetToSourcePos(this.state.lastTokEndLoc.index)&&this.raise(cn.UnexpectedSpace,this.state.lastTokEndLoc)}},`placeholders`),un=x(e=>class extends e{static{x(this,`V8IntrinsicMixin`)}parseV8Intrinsic(){if(this.match(54)){let e=this.state.startLoc,t=this.startNode();if(this.next(),L(this.state.type)){let e=this.parseIdentifierName(),n=this.createIdentifier(t,e);if(n.type=`V8IntrinsicIdentifier`,this.match(10))return n}this.unexpected(e)}}parseExprAtom(e){return this.parseV8Intrinsic()||super.parseExprAtom(e)}},`v8intrinsic`),dn=[`minimal`,`fsharp`,`hack`,`smart`],fn=[`^^`,`@@`,`^`,`%`,`#`];function pn(e){if(e.has(`decorators`)){if(e.has(`decorators-legacy`))throw Error(`Cannot use the decorators and decorators-legacy plugin together`);let t=e.get(`decorators`).decoratorsBeforeExport;if(t!=null&&typeof t!=`boolean`)throw Error(`'decoratorsBeforeExport' must be a boolean, if specified.`);let n=e.get(`decorators`).allowCallParenthesized;if(n!=null&&typeof n!=`boolean`)throw Error(`'allowCallParenthesized' must be a boolean.`)}if(e.has(`flow`)&&e.has(`typescript`))throw Error(`Cannot combine flow and typescript plugins.`);if(e.has(`placeholders`)&&e.has(`v8intrinsic`))throw Error(`Cannot combine placeholders and v8intrinsic plugins.`);if(e.has(`pipelineOperator`)){let t=e.get(`pipelineOperator`).proposal;if(!dn.includes(t)){let e=dn.map(e=>`"${e}"`).join(`, `);throw Error(`"pipelineOperator" requires "proposal" option whose value must be one of: ${e}.`)}let n=e.get(`recordAndTuple`)?.syntaxType===`hash`;if(t===`hack`){if(e.has(`placeholders`))throw Error(`Cannot combine placeholders plugin and Hack-style pipes.`);if(e.has(`v8intrinsic`))throw Error(`Cannot combine v8intrinsic plugin and Hack-style pipes.`);let t=e.get(`pipelineOperator`).topicToken;if(!fn.includes(t)){let e=fn.map(e=>`"${e}"`).join(`, `);throw Error(`"pipelineOperator" in "proposal": "hack" mode also requires a "topicToken" option whose value must be one of: ${e}.`)}if(t===`#`&&n)throw Error(`Plugin conflict between \`["pipelineOperator", { proposal: "hack", topicToken: "#" }]\` and \`${JSON.stringify([`recordAndTuple`,e.get(`recordAndTuple`)])}\`.`)}else if(t===`smart`&&n)throw Error(`Plugin conflict between \`["pipelineOperator", { proposal: "smart" }]\` and \`${JSON.stringify([`recordAndTuple`,e.get(`recordAndTuple`)])}\`.`)}if(e.has(`moduleAttributes`)){if(e.has(`deprecatedImportAssert`)||e.has(`importAssertions`))throw Error(`Cannot combine importAssertions, deprecatedImportAssert and moduleAttributes plugins.`);if(e.get(`moduleAttributes`).version!==`may-2020`)throw Error(`The 'moduleAttributes' plugin requires a 'version' option, representing the last proposal update. Currently, the only supported value is 'may-2020'.`)}if(e.has(`importAssertions`)&&e.has(`deprecatedImportAssert`))throw Error(`Cannot combine importAssertions and deprecatedImportAssert plugins.`);if(!e.has(`deprecatedImportAssert`)&&e.has(`importAttributes`)&&e.get(`importAttributes`).deprecatedAssertSyntax&&e.set(`deprecatedImportAssert`,{}),e.has(`recordAndTuple`)){let t=e.get(`recordAndTuple`).syntaxType;if(t!=null){let e=[`hash`,`bar`];if(!e.includes(t))throw Error(`The 'syntaxType' option of the 'recordAndTuple' plugin must be one of: `+e.map(e=>`'${e}'`).join(`, `))}}if(e.has(`asyncDoExpressions`)&&!e.has(`doExpressions`)){let e=Error(`'asyncDoExpressions' requires 'doExpressions', please add 'doExpressions' to parser plugins.`);throw e.missingPlugins=`doExpressions`,e}if(e.has(`optionalChainingAssign`)&&e.get(`optionalChainingAssign`).version!==`2023-07`)throw Error(`The 'optionalChainingAssign' plugin requires a 'version' option, representing the last proposal update. Currently, the only supported value is '2023-07'.`)}x(pn,`validatePlugins`);var mn={estree:S,jsx:Gt,flow:q,typescript:tn,v8intrinsic:un,placeholders:ln},hn=Object.keys(mn);function gn(){return{sourceType:`script`,sourceFilename:void 0,startIndex:0,startColumn:0,startLine:1,allowAwaitOutsideFunction:!1,allowReturnOutsideFunction:!1,allowNewTargetOutsideFunction:!1,allowImportExportEverywhere:!1,allowSuperOutsideMethod:!1,allowUndeclaredExports:!1,plugins:[],strictMode:null,ranges:!1,tokens:!1,createImportExpressions:!1,createParenthesizedExpressions:!1,errorRecovery:!1,attachComment:!0,annexB:!0}}x(gn,`createDefaultOptions`);function _n(e){let t=gn();if(e==null)return t;if(e.annexB!=null&&e.annexB!==!1)throw Error("The `annexB` option can only be set to `false`.");for(let n of Object.keys(t))e[n]!=null&&(t[n]=e[n]);if(t.startLine===1)e.startIndex==null&&t.startColumn>0?t.startIndex=t.startColumn:e.startColumn==null&&t.startIndex>0&&(t.startColumn=t.startIndex);else if((e.startColumn==null||e.startIndex==null)&&e.startIndex!=null)throw Error("With a `startLine > 1` you must also specify `startIndex` and `startColumn`.");return t}x(_n,`getOptions`);var vn=class extends Yt{static{x(this,`ExpressionParser`)}checkProto(e,t,n,r){if(e.type===`SpreadElement`||this.isObjectMethod(e)||e.computed||e.shorthand)return;let i=e.key;if((i.type===`Identifier`?i.name:i.value)===`__proto__`){if(t){this.raise(_.RecordNoProto,i);return}n.used&&(r?r.doubleProtoLoc===null&&(r.doubleProtoLoc=i.loc.start):this.raise(_.DuplicateProto,i)),n.used=!0}}shouldExitDescending(e,t){return e.type===`ArrowFunctionExpression`&&this.offsetToSourcePos(e.start)===t}getExpression(){this.enterInitialScopes(),this.nextToken();let e=this.parseExpression();return this.match(140)||this.unexpected(),this.finalizeRemainingComments(),e.comments=this.comments,e.errors=this.state.errors,this.options.tokens&&(e.tokens=this.tokens),e}parseExpression(e,t){return e?this.disallowInAnd(()=>this.parseExpressionBase(t)):this.allowInAnd(()=>this.parseExpressionBase(t))}parseExpressionBase(e){let t=this.state.startLoc,n=this.parseMaybeAssign(e);if(this.match(12)){let r=this.startNodeAt(t);for(r.expressions=[n];this.eat(12);)r.expressions.push(this.parseMaybeAssign(e));return this.toReferencedList(r.expressions),this.finishNode(r,`SequenceExpression`)}return n}parseMaybeAssignDisallowIn(e,t){return this.disallowInAnd(()=>this.parseMaybeAssign(e,t))}parseMaybeAssignAllowIn(e,t){return this.allowInAnd(()=>this.parseMaybeAssign(e,t))}setOptionalParametersError(e,t){e.optionalParametersLoc=t?.loc??this.state.startLoc}parseMaybeAssign(e,t){let n=this.state.startLoc;if(this.isContextual(108)&&this.prodParam.hasYield){let e=this.parseYield();return t&&(e=t.call(this,e,n)),e}let r;e?r=!1:(e=new At,r=!0);let{type:i}=this.state;(i===10||L(i))&&(this.state.potentialArrowAt=this.state.start);let a=this.parseMaybeConditional(e);if(t&&(a=t.call(this,a,n)),pe(this.state.type)){let t=this.startNodeAt(n);if(t.operator=this.state.value,this.match(29)){this.toAssignable(a,!0),t.left=a;let r=n.index;e.doubleProtoLoc!=null&&e.doubleProtoLoc.index>=r&&(e.doubleProtoLoc=null),e.shorthandAssignLoc!=null&&e.shorthandAssignLoc.index>=r&&(e.shorthandAssignLoc=null),e.privateKeyLoc!=null&&e.privateKeyLoc.index>=r&&(this.checkDestructuringPrivate(e),e.privateKeyLoc=null)}else t.left=a;return this.next(),t.right=this.parseMaybeAssign(),this.checkLVal(a,this.finishNode(t,`AssignmentExpression`)),t}else r&&this.checkExpressionErrors(e,!0);return a}parseMaybeConditional(e){let t=this.state.startLoc,n=this.state.potentialArrowAt,r=this.parseExprOps(e);return this.shouldExitDescending(r,n)?r:this.parseConditional(r,t,e)}parseConditional(e,t,n){if(this.eat(17)){let n=this.startNodeAt(t);return n.test=e,n.consequent=this.parseMaybeAssignAllowIn(),this.expect(14),n.alternate=this.parseMaybeAssign(),this.finishNode(n,`ConditionalExpression`)}return e}parseMaybeUnaryOrPrivate(e){return this.match(139)?this.parsePrivateName():this.parseMaybeUnary(e)}parseExprOps(e){let t=this.state.startLoc,n=this.state.potentialArrowAt,r=this.parseMaybeUnaryOrPrivate(e);return this.shouldExitDescending(r,n)?r:this.parseExprOp(r,t,-1)}parseExprOp(e,t,n){if(this.isPrivateName(e)){let t=this.getPrivateNameSV(e);(n>=be(58)||!this.prodParam.hasIn||!this.match(58))&&this.raise(_.PrivateInExpectedIn,e,{identifierName:t}),this.classScope.usePrivateName(t,e.loc.start)}let r=this.state.type;if(ge(r)&&(this.prodParam.hasIn||!this.match(58))){let i=be(r);if(i>n){if(r===39){if(this.expectPlugin(`pipelineOperator`),this.state.inFSharpPipelineDirectBody)return e;this.checkPipelineAtInfixOperator(e,t)}let a=this.startNodeAt(t);a.left=e,a.operator=this.state.value;let o=r===41||r===42,s=r===40;if(s&&(i=be(42)),this.next(),r===39&&this.hasPlugin([`pipelineOperator`,{proposal:`minimal`}])&&this.state.type===96&&this.prodParam.hasAwait)throw this.raise(_.UnexpectedAwaitAfterPipelineBody,this.state.startLoc);a.right=this.parseExprOpRightExpr(r,i);let c=this.finishNode(a,o||s?`LogicalExpression`:`BinaryExpression`),l=this.state.type;if(s&&(l===41||l===42)||o&&l===40)throw this.raise(_.MixingCoalesceWithLogical,this.state.startLoc);return this.parseExprOp(c,t,n)}}return e}parseExprOpRightExpr(e,t){let n=this.state.startLoc;switch(e){case 39:switch(this.getPluginOption(`pipelineOperator`,`proposal`)){case`hack`:return this.withTopicBindingContext(()=>this.parseHackPipeBody());case`smart`:return this.withTopicBindingContext(()=>{if(this.prodParam.hasYield&&this.isContextual(108))throw this.raise(_.PipeBodyIsTighter,this.state.startLoc);return this.parseSmartPipelineBodyInStyle(this.parseExprOpBaseRightExpr(e,t),n)});case`fsharp`:return this.withSoloAwaitPermittingContext(()=>this.parseFSharpPipelineBody(t))}default:return this.parseExprOpBaseRightExpr(e,t)}}parseExprOpBaseRightExpr(e,t){let n=this.state.startLoc;return this.parseExprOp(this.parseMaybeUnaryOrPrivate(),n,xe(e)?t-1:t)}parseHackPipeBody(){var e;let{startLoc:t}=this.state,n=this.parseMaybeAssign();return d.has(n.type)&&!((e=n.extra)!=null&&e.parenthesized)&&this.raise(_.PipeUnparenthesizedBody,t,{type:n.type}),this.topicReferenceWasUsedInCurrentContext()||this.raise(_.PipeTopicUnused,t),n}checkExponentialAfterUnary(e){this.match(57)&&this.raise(_.UnexpectedTokenUnaryExponentiation,e.argument)}parseMaybeUnary(e,t){let n=this.state.startLoc,r=this.isContextual(96);if(r&&this.recordAwaitIfAllowed()){this.next();let e=this.parseAwait(n);return t||this.checkExponentialAfterUnary(e),e}let i=this.match(34),a=this.startNode();if(ve(this.state.type)){a.operator=this.state.value,a.prefix=!0,this.match(72)&&this.expectPlugin(`throwExpressions`);let n=this.match(89);if(this.next(),a.argument=this.parseMaybeUnary(null,!0),this.checkExpressionErrors(e,!0),this.state.strict&&n){let e=a.argument;e.type===`Identifier`?this.raise(_.StrictDelete,a):this.hasPropertyAsPrivateName(e)&&this.raise(_.DeletePrivateField,a)}if(!i)return t||this.checkExponentialAfterUnary(a),this.finishNode(a,`UnaryExpression`)}let o=this.parseUpdate(a,i,e);if(r){let{type:e}=this.state;if((this.hasPlugin(`v8intrinsic`)?fe(e):fe(e)&&!this.match(54))&&!this.isAmbiguousAwait())return this.raiseOverwrite(_.AwaitNotInAsyncContext,n),this.parseAwait(n)}return o}parseUpdate(e,t,n){if(t){let t=e;return this.checkLVal(t.argument,this.finishNode(t,`UpdateExpression`)),e}let r=this.state.startLoc,i=this.parseExprSubscripts(n);if(this.checkExpressionErrors(n,!1))return i;for(;_e(this.state.type)&&!this.canInsertSemicolon();){let e=this.startNodeAt(r);e.operator=this.state.value,e.prefix=!1,e.argument=i,this.next(),this.checkLVal(i,i=this.finishNode(e,`UpdateExpression`))}return i}parseExprSubscripts(e){let t=this.state.startLoc,n=this.state.potentialArrowAt,r=this.parseExprAtom(e);return this.shouldExitDescending(r,n)?r:this.parseSubscripts(r,t)}parseSubscripts(e,t,n){let r={optionalChainMember:!1,maybeAsyncArrow:this.atPossibleAsyncArrow(e),stop:!1};do e=this.parseSubscript(e,t,n,r),r.maybeAsyncArrow=!1;while(!r.stop);return e}parseSubscript(e,t,n,r){let{type:i}=this.state;if(!n&&i===15)return this.parseBind(e,t,n,r);if(Se(i))return this.parseTaggedTemplateExpression(e,t,r);let a=!1;if(i===18){if(n&&(this.raise(_.OptionalChainingNoNew,this.state.startLoc),this.lookaheadCharCode()===40))return r.stop=!0,e;r.optionalChainMember=a=!0,this.next()}if(!n&&this.match(10))return this.parseCoverCallAndAsyncArrowHead(e,t,r,a);{let n=this.eat(0);return n||a||this.eat(16)?this.parseMember(e,t,r,n,a):(r.stop=!0,e)}}parseMember(e,t,n,r,i){let a=this.startNodeAt(t);return a.object=e,a.computed=r,r?(a.property=this.parseExpression(),this.expect(3)):this.match(139)?(e.type===`Super`&&this.raise(_.SuperPrivateField,t),this.classScope.usePrivateName(this.state.value,this.state.startLoc),a.property=this.parsePrivateName()):a.property=this.parseIdentifier(!0),n.optionalChainMember?(a.optional=i,this.finishNode(a,`OptionalMemberExpression`)):this.finishNode(a,`MemberExpression`)}parseBind(e,t,n,r){let i=this.startNodeAt(t);return i.object=e,this.next(),i.callee=this.parseNoCallExpr(),r.stop=!0,this.parseSubscripts(this.finishNode(i,`BindExpression`),t,n)}parseCoverCallAndAsyncArrowHead(e,t,n,r){let i=this.state.maybeInArrowParameters,a=null;this.state.maybeInArrowParameters=!0,this.next();let o=this.startNodeAt(t);o.callee=e;let{maybeAsyncArrow:s,optionalChainMember:c}=n;s&&(this.expressionScope.enter(Tt()),a=new At),c&&(o.optional=r),r?o.arguments=this.parseCallExpressionArguments(11):o.arguments=this.parseCallExpressionArguments(11,e.type!==`Super`,o,a);let l=this.finishCallExpression(o,c);return s&&this.shouldParseAsyncArrow()&&!r?(n.stop=!0,this.checkDestructuringPrivate(a),this.expressionScope.validateAsPattern(),this.expressionScope.exit(),l=this.parseAsyncArrowFromCallExpression(this.startNodeAt(t),l)):(s&&(this.checkExpressionErrors(a,!0),this.expressionScope.exit()),this.toReferencedArguments(l)),this.state.maybeInArrowParameters=i,l}toReferencedArguments(e,t){this.toReferencedListDeep(e.arguments,t)}parseTaggedTemplateExpression(e,t,n){let r=this.startNodeAt(t);return r.tag=e,r.quasi=this.parseTemplate(!0),n.optionalChainMember&&this.raise(_.OptionalChainingNoTemplate,t),this.finishNode(r,`TaggedTemplateExpression`)}atPossibleAsyncArrow(e){return e.type===`Identifier`&&e.name===`async`&&this.state.lastTokEndLoc.index===e.end&&!this.canInsertSemicolon()&&e.end-e.start===5&&this.offsetToSourcePos(e.start)===this.state.potentialArrowAt}finishCallExpression(e,t){if(e.callee.type===`Import`)if(e.arguments.length===0||e.arguments.length>2)this.raise(_.ImportCallArity,e);else for(let t of e.arguments)t.type===`SpreadElement`&&this.raise(_.ImportCallSpreadArgument,t);return this.finishNode(e,t?`OptionalCallExpression`:`CallExpression`)}parseCallExpressionArguments(e,t,n,r){let i=[],a=!0,o=this.state.inFSharpPipelineDirectBody;for(this.state.inFSharpPipelineDirectBody=!1;!this.eat(e);){if(a)a=!1;else if(this.expect(12),this.match(e)){n&&this.addTrailingCommaExtraToNode(n),this.next();break}i.push(this.parseExprListItem(!1,r,t))}return this.state.inFSharpPipelineDirectBody=o,i}shouldParseAsyncArrow(){return this.match(19)&&!this.canInsertSemicolon()}parseAsyncArrowFromCallExpression(e,t){return this.resetPreviousNodeTrailingComments(t),this.expect(19),this.parseArrowExpression(e,t.arguments,!0,t.extra?.trailingCommaLoc),t.innerComments&&Xe(e,t.innerComments),t.callee.trailingComments&&Xe(e,t.callee.trailingComments),e}parseNoCallExpr(){let e=this.state.startLoc;return this.parseSubscripts(this.parseExprAtom(),e,!0)}parseExprAtom(e){let t,n=null,{type:r}=this.state;switch(r){case 79:return this.parseSuper();case 83:return t=this.startNode(),this.next(),this.match(16)?this.parseImportMetaProperty(t):this.match(10)?this.options.createImportExpressions?this.parseImportCall(t):this.finishNode(t,`Import`):(this.raise(_.UnsupportedImport,this.state.lastTokStartLoc),this.finishNode(t,`Import`));case 78:return t=this.startNode(),this.next(),this.finishNode(t,`ThisExpression`);case 90:return this.parseDo(this.startNode(),!1);case 56:case 31:return this.readRegexp(),this.parseRegExpLiteral(this.state.value);case 135:return this.parseNumericLiteral(this.state.value);case 136:return this.parseBigIntLiteral(this.state.value);case 134:return this.parseStringLiteral(this.state.value);case 84:return this.parseNullLiteral();case 85:return this.parseBooleanLiteral(!0);case 86:return this.parseBooleanLiteral(!1);case 10:{let e=this.state.potentialArrowAt===this.state.start;return this.parseParenAndDistinguishExpression(e)}case 2:case 1:return this.parseArrayLike(this.state.type===2?4:3,!1,!0);case 0:return this.parseArrayLike(3,!0,!1,e);case 6:case 7:return this.parseObjectLike(this.state.type===6?9:8,!1,!0);case 5:return this.parseObjectLike(8,!1,!1,e);case 68:return this.parseFunctionOrFunctionSent();case 26:n=this.parseDecorators();case 80:return this.parseClass(this.maybeTakeDecorators(n,this.startNode()),!1);case 77:return this.parseNewOrNewTarget();case 25:case 24:return this.parseTemplate(!1);case 15:{t=this.startNode(),this.next(),t.object=null;let e=t.callee=this.parseNoCallExpr();if(e.type===`MemberExpression`)return this.finishNode(t,`BindExpression`);throw this.raise(_.UnsupportedBind,e)}case 139:return this.raise(_.PrivateInExpectedIn,this.state.startLoc,{identifierName:this.state.value}),this.parsePrivateName();case 33:return this.parseTopicReferenceThenEqualsSign(54,`%`);case 32:return this.parseTopicReferenceThenEqualsSign(44,`^`);case 37:case 38:return this.parseTopicReference(`hack`);case 44:case 54:case 27:{let e=this.getPluginOption(`pipelineOperator`,`proposal`);if(e)return this.parseTopicReference(e);this.unexpected();break}case 47:{let e=this.input.codePointAt(this.nextTokenStart());Ae(e)||e===62?this.expectOnePlugin([`jsx`,`flow`,`typescript`]):this.unexpected();break}default:if(r===137)return this.parseDecimalLiteral(this.state.value);if(L(r)){if(this.isContextual(127)&&this.lookaheadInLineCharCode()===123)return this.parseModuleExpression();let e=this.state.potentialArrowAt===this.state.start,t=this.state.containsEsc,n=this.parseIdentifier();if(!t&&n.name===`async`&&!this.canInsertSemicolon()){let{type:e}=this.state;if(e===68)return this.resetPreviousNodeTrailingComments(n),this.next(),this.parseAsyncFunctionExpression(this.startNodeAtNode(n));if(L(e))return this.lookaheadCharCode()===61?this.parseAsyncArrowUnaryFunction(this.startNodeAtNode(n)):n;if(e===90)return this.resetPreviousNodeTrailingComments(n),this.parseDo(this.startNodeAtNode(n),!0)}return e&&this.match(19)&&!this.canInsertSemicolon()?(this.next(),this.parseArrowExpression(this.startNodeAtNode(n),[n],!1)):n}else this.unexpected()}}parseTopicReferenceThenEqualsSign(e,t){let n=this.getPluginOption(`pipelineOperator`,`proposal`);if(n)return this.state.type=e,this.state.value=t,this.state.pos--,this.state.end--,this.state.endLoc=i(this.state.endLoc,-1),this.parseTopicReference(n);this.unexpected()}parseTopicReference(e){let t=this.startNode(),n=this.state.startLoc,r=this.state.type;return this.next(),this.finishTopicReference(t,n,e,r)}finishTopicReference(e,t,n,r){if(this.testTopicReferenceConfiguration(n,t,r)){let r=n===`smart`?`PipelinePrimaryTopicReference`:`TopicReference`;return this.topicReferenceIsAllowedInCurrentContext()||this.raise(n===`smart`?_.PrimaryTopicNotAllowed:_.PipeTopicUnbound,t),this.registerTopicReference(),this.finishNode(e,r)}else throw this.raise(_.PipeTopicUnconfiguredToken,t,{token:B(r)})}testTopicReferenceConfiguration(e,t,n){switch(e){case`hack`:return this.hasPlugin([`pipelineOperator`,{topicToken:B(n)}]);case`smart`:return n===27;default:throw this.raise(_.PipeTopicRequiresHackPipes,t)}}parseAsyncArrowUnaryFunction(e){this.prodParam.enter(Ot(!0,this.prodParam.hasYield));let t=[this.parseIdentifier()];return this.prodParam.exit(),this.hasPrecedingLineBreak()&&this.raise(_.LineTerminatorBeforeArrow,this.state.curPosition()),this.expect(19),this.parseArrowExpression(e,t,!0)}parseDo(e,t){this.expectPlugin(`doExpressions`),t&&this.expectPlugin(`asyncDoExpressions`),e.async=t,this.next();let n=this.state.labels;return this.state.labels=[],t?(this.prodParam.enter(2),e.body=this.parseBlock(),this.prodParam.exit()):e.body=this.parseBlock(),this.state.labels=n,this.finishNode(e,`DoExpression`)}parseSuper(){let e=this.startNode();return this.next(),this.match(10)&&!this.scope.allowDirectSuper&&!this.options.allowSuperOutsideMethod?this.raise(_.SuperNotAllowed,e):!this.scope.allowSuper&&!this.options.allowSuperOutsideMethod&&this.raise(_.UnexpectedSuper,e),!this.match(10)&&!this.match(0)&&!this.match(16)&&this.raise(_.UnsupportedSuper,e),this.finishNode(e,`Super`)}parsePrivateName(){let e=this.startNode(),t=this.startNodeAt(i(this.state.startLoc,1)),n=this.state.value;return this.next(),e.id=this.createIdentifier(t,n),this.finishNode(e,`PrivateName`)}parseFunctionOrFunctionSent(){let e=this.startNode();if(this.next(),this.prodParam.hasYield&&this.match(16)){let t=this.createIdentifier(this.startNodeAtNode(e),`function`);return this.next(),this.match(103)?this.expectPlugin(`functionSent`):this.hasPlugin(`functionSent`)||this.unexpected(),this.parseMetaProperty(e,t,`sent`)}return this.parseFunction(e)}parseMetaProperty(e,t,n){e.meta=t;let r=this.state.containsEsc;return e.property=this.parseIdentifier(!0),(e.property.name!==n||r)&&this.raise(_.UnsupportedMetaProperty,e.property,{target:t.name,onlyValidPropertyName:n}),this.finishNode(e,`MetaProperty`)}parseImportMetaProperty(e){let t=this.createIdentifier(this.startNodeAtNode(e),`import`);if(this.next(),this.isContextual(101))this.inModule||this.raise(_.ImportMetaOutsideModule,t),this.sawUnambiguousESM=!0;else if(this.isContextual(105)||this.isContextual(97)){let t=this.isContextual(105);if(t||this.unexpected(),this.expectPlugin(t?`sourcePhaseImports`:`deferredImportEvaluation`),!this.options.createImportExpressions)throw this.raise(_.DynamicImportPhaseRequiresImportExpressions,this.state.startLoc,{phase:this.state.value});return this.next(),e.phase=t?`source`:`defer`,this.parseImportCall(e)}return this.parseMetaProperty(e,t,`meta`)}parseLiteralAtNode(e,t,n){return this.addExtra(n,`rawValue`,e),this.addExtra(n,`raw`,this.input.slice(this.offsetToSourcePos(n.start),this.state.end)),n.value=e,this.next(),this.finishNode(n,t)}parseLiteral(e,t){let n=this.startNode();return this.parseLiteralAtNode(e,t,n)}parseStringLiteral(e){return this.parseLiteral(e,`StringLiteral`)}parseNumericLiteral(e){return this.parseLiteral(e,`NumericLiteral`)}parseBigIntLiteral(e){return this.parseLiteral(e,`BigIntLiteral`)}parseDecimalLiteral(e){return this.parseLiteral(e,`DecimalLiteral`)}parseRegExpLiteral(e){let t=this.startNode();return this.addExtra(t,`raw`,this.input.slice(this.offsetToSourcePos(t.start),this.state.end)),t.pattern=e.pattern,t.flags=e.flags,this.next(),this.finishNode(t,`RegExpLiteral`)}parseBooleanLiteral(e){let t=this.startNode();return t.value=e,this.next(),this.finishNode(t,`BooleanLiteral`)}parseNullLiteral(){let e=this.startNode();return this.next(),this.finishNode(e,`NullLiteral`)}parseParenAndDistinguishExpression(e){let t=this.state.startLoc,n;this.next(),this.expressionScope.enter(wt());let r=this.state.maybeInArrowParameters,i=this.state.inFSharpPipelineDirectBody;this.state.maybeInArrowParameters=!0,this.state.inFSharpPipelineDirectBody=!1;let a=this.state.startLoc,o=[],s=new At,c=!0,l,u;for(;!this.match(11);){if(c)c=!1;else if(this.expect(12,s.optionalParametersLoc===null?null:s.optionalParametersLoc),this.match(11)){u=this.state.startLoc;break}if(this.match(21)){let e=this.state.startLoc;if(l=this.state.startLoc,o.push(this.parseParenItem(this.parseRestBinding(),e)),!this.checkCommaAfterRest(41))break}else o.push(this.parseMaybeAssignAllowIn(s,this.parseParenItem))}let d=this.state.lastTokEndLoc;this.expect(11),this.state.maybeInArrowParameters=r,this.state.inFSharpPipelineDirectBody=i;let f=this.startNodeAt(t);return e&&this.shouldParseArrow(o)&&(f=this.parseArrow(f))?(this.checkDestructuringPrivate(s),this.expressionScope.validateAsPattern(),this.expressionScope.exit(),this.parseArrowExpression(f,o,!1),f):(this.expressionScope.exit(),o.length||this.unexpected(this.state.lastTokStartLoc),u&&this.unexpected(u),l&&this.unexpected(l),this.checkExpressionErrors(s,!0),this.toReferencedListDeep(o,!0),o.length>1?(n=this.startNodeAt(a),n.expressions=o,this.finishNode(n,`SequenceExpression`),this.resetEndLocation(n,d)):n=o[0],this.wrapParenthesis(t,n))}wrapParenthesis(e,t){if(!this.options.createParenthesizedExpressions)return this.addExtra(t,`parenthesized`,!0),this.addExtra(t,`parenStart`,e.index),this.takeSurroundingComments(t,e.index,this.state.lastTokEndLoc.index),t;let n=this.startNodeAt(e);return n.expression=t,this.finishNode(n,`ParenthesizedExpression`)}shouldParseArrow(e){return!this.canInsertSemicolon()}parseArrow(e){if(this.eat(19))return e}parseParenItem(e,t){return e}parseNewOrNewTarget(){let e=this.startNode();if(this.next(),this.match(16)){let t=this.createIdentifier(this.startNodeAtNode(e),`new`);this.next();let n=this.parseMetaProperty(e,t,`target`);return!this.scope.inNonArrowFunction&&!this.scope.inClass&&!this.options.allowNewTargetOutsideFunction&&this.raise(_.UnexpectedNewTarget,n),n}return this.parseNew(e)}parseNew(e){if(this.parseNewCallee(e),this.eat(10)){let t=this.parseExprList(11);this.toReferencedList(t),e.arguments=t}else e.arguments=[];return this.finishNode(e,`NewExpression`)}parseNewCallee(e){let t=this.match(83),n=this.parseNoCallExpr();e.callee=n,t&&(n.type===`Import`||n.type===`ImportExpression`)&&this.raise(_.ImportCallNotNewExpression,n)}parseTemplateElement(e){let{start:t,startLoc:n,end:r,value:a}=this.state,o=t+1,s=this.startNodeAt(i(n,1));a===null&&(e||this.raise(_.InvalidEscapeSequenceTemplate,i(this.state.firstInvalidTemplateEscapePos,1)));let c=this.match(24),l=c?-1:-2,u=r+l;s.value={raw:this.input.slice(o,u).replace(/\r\n?/g,`
108
+ `),cooked:a===null?null:a.slice(1,l)},s.tail=c,this.next();let d=this.finishNode(s,`TemplateElement`);return this.resetEndLocation(d,i(this.state.lastTokEndLoc,l)),d}parseTemplate(e){let t=this.startNode(),n=this.parseTemplateElement(e),r=[n],i=[];for(;!n.tail;)i.push(this.parseTemplateSubstitution()),this.readTemplateContinuation(),r.push(n=this.parseTemplateElement(e));return t.expressions=i,t.quasis=r,this.finishNode(t,`TemplateLiteral`)}parseTemplateSubstitution(){return this.parseExpression()}parseObjectLike(e,t,n,r){n&&this.expectPlugin(`recordAndTuple`);let i=this.state.inFSharpPipelineDirectBody;this.state.inFSharpPipelineDirectBody=!1;let a=Object.create(null),o=!0,s=this.startNode();for(s.properties=[],this.next();!this.match(e);){if(o)o=!1;else if(this.expect(12),this.match(e)){this.addTrailingCommaExtraToNode(s);break}let i;t?i=this.parseBindingProperty():(i=this.parsePropertyDefinition(r),this.checkProto(i,n,a,r)),n&&!this.isObjectProperty(i)&&i.type!==`SpreadElement`&&this.raise(_.InvalidRecordProperty,i),i.shorthand&&this.addExtra(i,`shorthand`,!0),s.properties.push(i)}this.next(),this.state.inFSharpPipelineDirectBody=i;let c=`ObjectExpression`;return t?c=`ObjectPattern`:n&&(c=`RecordExpression`),this.finishNode(s,c)}addTrailingCommaExtraToNode(e){this.addExtra(e,`trailingComma`,this.state.lastTokStartLoc.index),this.addExtra(e,`trailingCommaLoc`,this.state.lastTokStartLoc,!1)}maybeAsyncOrAccessorProp(e){return!e.computed&&e.key.type===`Identifier`&&(this.isLiteralPropertyName()||this.match(0)||this.match(55))}parsePropertyDefinition(e){let t=[];if(this.match(26))for(this.hasPlugin(`decorators`)&&this.raise(_.UnsupportedPropertyDecorator,this.state.startLoc);this.match(26);)t.push(this.parseDecorator());let n=this.startNode(),r=!1,i=!1,a;if(this.match(21))return t.length&&this.unexpected(),this.parseSpread();t.length&&(n.decorators=t,t=[]),n.method=!1,e&&(a=this.state.startLoc);let o=this.eat(55);this.parsePropertyNamePrefixOperator(n);let s=this.state.containsEsc;if(this.parsePropertyName(n,e),!o&&!s&&this.maybeAsyncOrAccessorProp(n)){let{key:e}=n,t=e.name;t===`async`&&!this.hasPrecedingLineBreak()&&(r=!0,this.resetPreviousNodeTrailingComments(e),o=this.eat(55),this.parsePropertyName(n)),(t===`get`||t===`set`)&&(i=!0,this.resetPreviousNodeTrailingComments(e),n.kind=t,this.match(55)&&(o=!0,this.raise(_.AccessorIsGenerator,this.state.curPosition(),{kind:t}),this.next()),this.parsePropertyName(n))}return this.parseObjPropValue(n,a,o,r,!1,i,e)}getGetterSetterExpectedParamCount(e){return e.kind===`get`?0:1}getObjectOrClassMethodParams(e){return e.params}checkGetterSetterParams(e){let t=this.getGetterSetterExpectedParamCount(e),n=this.getObjectOrClassMethodParams(e);n.length!==t&&this.raise(e.kind===`get`?_.BadGetterArity:_.BadSetterArity,e),e.kind===`set`&&n[n.length-1]?.type===`RestElement`&&this.raise(_.BadSetterRestParameter,e)}parseObjectMethod(e,t,n,r,i){if(i){let n=this.parseMethod(e,t,!1,!1,!1,`ObjectMethod`);return this.checkGetterSetterParams(n),n}if(n||t||this.match(10))return r&&this.unexpected(),e.kind=`method`,e.method=!0,this.parseMethod(e,t,n,!1,!1,`ObjectMethod`)}parseObjectProperty(e,t,n,r){if(e.shorthand=!1,this.eat(14))return e.value=n?this.parseMaybeDefault(this.state.startLoc):this.parseMaybeAssignAllowIn(r),this.finishNode(e,`ObjectProperty`);if(!e.computed&&e.key.type===`Identifier`){if(this.checkReservedWord(e.key.name,e.key.loc.start,!0,!1),n)e.value=this.parseMaybeDefault(t,Pt(e.key));else if(this.match(29)){let n=this.state.startLoc;r==null?this.raise(_.InvalidCoverInitializedName,n):r.shorthandAssignLoc===null&&(r.shorthandAssignLoc=n),e.value=this.parseMaybeDefault(t,Pt(e.key))}else e.value=Pt(e.key);return e.shorthand=!0,this.finishNode(e,`ObjectProperty`)}}parseObjPropValue(e,t,n,r,i,a,o){let s=this.parseObjectMethod(e,n,r,i,a)||this.parseObjectProperty(e,t,i,o);return s||this.unexpected(),s}parsePropertyName(e,t){if(this.eat(0))e.computed=!0,e.key=this.parseMaybeAssignAllowIn(),this.expect(3);else{let{type:n,value:r}=this.state,i;if(le(n))i=this.parseIdentifier(!0);else switch(n){case 135:i=this.parseNumericLiteral(r);break;case 134:i=this.parseStringLiteral(r);break;case 136:i=this.parseBigIntLiteral(r);break;case 139:{let e=this.state.startLoc;t==null?this.raise(_.UnexpectedPrivateField,e):t.privateKeyLoc===null&&(t.privateKeyLoc=e),i=this.parsePrivateName();break}default:if(n===137){i=this.parseDecimalLiteral(r);break}this.unexpected()}e.key=i,n!==139&&(e.computed=!1)}}initFunction(e,t){e.id=null,e.generator=!1,e.async=t}parseMethod(e,t,n,r,i,a,o=!1){this.initFunction(e,n),e.generator=t,this.scope.enter(18|(o?64:0)|(i?32:0)),this.prodParam.enter(Ot(n,e.generator)),this.parseFunctionParams(e,r);let s=this.parseFunctionBodyAndFinish(e,a,!0);return this.prodParam.exit(),this.scope.exit(),s}parseArrayLike(e,t,n,r){n&&this.expectPlugin(`recordAndTuple`);let i=this.state.inFSharpPipelineDirectBody;this.state.inFSharpPipelineDirectBody=!1;let a=this.startNode();return this.next(),a.elements=this.parseExprList(e,!n,r,a),this.state.inFSharpPipelineDirectBody=i,this.finishNode(a,n?`TupleExpression`:`ArrayExpression`)}parseArrowExpression(e,t,n,r){this.scope.enter(6);let i=Ot(n,!1);!this.match(5)&&this.prodParam.hasIn&&(i|=8),this.prodParam.enter(i),this.initFunction(e,n);let a=this.state.maybeInArrowParameters;return t&&(this.state.maybeInArrowParameters=!0,this.setArrowFunctionParameters(e,t,r)),this.state.maybeInArrowParameters=!1,this.parseFunctionBody(e,!0),this.prodParam.exit(),this.scope.exit(),this.state.maybeInArrowParameters=a,this.finishNode(e,`ArrowFunctionExpression`)}setArrowFunctionParameters(e,t,n){this.toAssignableList(t,n,!1),e.params=t}parseFunctionBodyAndFinish(e,t,n=!1){return this.parseFunctionBody(e,!1,n),this.finishNode(e,t)}parseFunctionBody(e,t,n=!1){let r=t&&!this.match(5);if(this.expressionScope.enter(Et()),r)e.body=this.parseMaybeAssign(),this.checkParams(e,!1,t,!1);else{let r=this.state.strict,i=this.state.labels;this.state.labels=[],this.prodParam.enter(this.prodParam.currentFlags()|4),e.body=this.parseBlock(!0,!1,i=>{let a=!this.isSimpleParamList(e.params);i&&a&&this.raise(_.IllegalLanguageModeDirective,(e.kind===`method`||e.kind===`constructor`)&&e.key?e.key.loc.end:e);let o=!r&&this.state.strict;this.checkParams(e,!this.state.strict&&!t&&!n&&!a,t,o),this.state.strict&&e.id&&this.checkIdentifier(e.id,65,o)}),this.prodParam.exit(),this.state.labels=i}this.expressionScope.exit()}isSimpleParameter(e){return e.type===`Identifier`}isSimpleParamList(e){for(let t=0,n=e.length;t<n;t++)if(!this.isSimpleParameter(e[t]))return!1;return!0}checkParams(e,t,n,r=!0){let i=!t&&new Set,a={type:`FormalParameters`};for(let t of e.params)this.checkLVal(t,a,5,i,r)}parseExprList(e,t,n,r){let i=[],a=!0;for(;!this.eat(e);){if(a)a=!1;else if(this.expect(12),this.match(e)){r&&this.addTrailingCommaExtraToNode(r),this.next();break}i.push(this.parseExprListItem(t,n))}return i}parseExprListItem(e,t,n){let r;if(this.match(12))e||this.raise(_.UnexpectedToken,this.state.curPosition(),{unexpected:`,`}),r=null;else if(this.match(21)){let e=this.state.startLoc;r=this.parseParenItem(this.parseSpread(t),e)}else if(this.match(17)){this.expectPlugin(`partialApplication`),n||this.raise(_.UnexpectedArgumentPlaceholder,this.state.startLoc);let e=this.startNode();this.next(),r=this.finishNode(e,`ArgumentPlaceholder`)}else r=this.parseMaybeAssignAllowIn(t,this.parseParenItem);return r}parseIdentifier(e){let t=this.startNode(),n=this.parseIdentifierName(e);return this.createIdentifier(t,n)}createIdentifier(e,t){return e.name=t,e.loc.identifierName=t,this.finishNode(e,`Identifier`)}parseIdentifierName(e){let t,{startLoc:n,type:r}=this.state;le(r)?t=this.state.value:this.unexpected();let i=ce(r);return e?i&&this.replaceToken(132):this.checkReservedWord(t,n,i,!1),this.next(),t}checkReservedWord(e,t,n,r){if(!(e.length>10)&&He(e)){if(n&&ze(e)){this.raise(_.UnexpectedKeyword,t,{keyword:e});return}if((this.state.strict?r?Re:Ie:Fe)(e,this.inModule)){this.raise(_.UnexpectedReservedWord,t,{reservedWord:e});return}else if(e===`yield`){if(this.prodParam.hasYield){this.raise(_.YieldBindingIdentifier,t);return}}else if(e===`await`){if(this.prodParam.hasAwait){this.raise(_.AwaitBindingIdentifier,t);return}if(this.scope.inStaticBlock){this.raise(_.AwaitBindingIdentifierInStaticBlock,t);return}this.expressionScope.recordAsyncArrowParametersError(t)}else if(e===`arguments`&&this.scope.inClassAndNotInNonArrowFunction){this.raise(_.ArgumentsInClass,t);return}}}recordAwaitIfAllowed(){let e=this.prodParam.hasAwait||this.options.allowAwaitOutsideFunction&&!this.scope.inFunction;return e&&!this.scope.inFunction&&(this.state.hasTopLevelAwait=!0),e}parseAwait(e){let t=this.startNodeAt(e);return this.expressionScope.recordParameterInitializerError(_.AwaitExpressionFormalParameter,t),this.eat(55)&&this.raise(_.ObsoleteAwaitStar,t),!this.scope.inFunction&&!this.options.allowAwaitOutsideFunction&&(this.isAmbiguousAwait()?this.ambiguousScriptDifferentAst=!0:this.sawUnambiguousESM=!0),this.state.soloAwait||(t.argument=this.parseMaybeUnary(null,!0)),this.finishNode(t,`AwaitExpression`)}isAmbiguousAwait(){if(this.hasPrecedingLineBreak())return!0;let{type:e}=this.state;return e===53||e===10||e===0||Se(e)||e===102&&!this.state.containsEsc||e===138||e===56||this.hasPlugin(`v8intrinsic`)&&e===54}parseYield(){let e=this.startNode();this.expressionScope.recordParameterInitializerError(_.YieldInParameter,e),this.next();let t=!1,n=null;if(!this.hasPrecedingLineBreak())switch(t=this.eat(55),this.state.type){case 13:case 140:case 8:case 11:case 3:case 9:case 14:case 12:if(!t)break;default:n=this.parseMaybeAssign()}return e.delegate=t,e.argument=n,this.finishNode(e,`YieldExpression`)}parseImportCall(e){if(this.next(),e.source=this.parseMaybeAssignAllowIn(),e.options=null,this.eat(12)&&!this.match(11)&&(e.options=this.parseMaybeAssignAllowIn(),this.eat(12)&&!this.match(11))){do this.parseMaybeAssignAllowIn();while(this.eat(12)&&!this.match(11));this.raise(_.ImportCallArity,e)}return this.expect(11),this.finishNode(e,`ImportExpression`)}checkPipelineAtInfixOperator(e,t){this.hasPlugin([`pipelineOperator`,{proposal:`smart`}])&&e.type===`SequenceExpression`&&this.raise(_.PipelineHeadSequenceExpression,t)}parseSmartPipelineBodyInStyle(e,t){if(this.isSimpleReference(e)){let n=this.startNodeAt(t);return n.callee=e,this.finishNode(n,`PipelineBareFunction`)}else{let n=this.startNodeAt(t);return this.checkSmartPipeTopicBodyEarlyErrors(t),n.expression=e,this.finishNode(n,`PipelineTopicExpression`)}}isSimpleReference(e){switch(e.type){case`MemberExpression`:return!e.computed&&this.isSimpleReference(e.object);case`Identifier`:return!0;default:return!1}}checkSmartPipeTopicBodyEarlyErrors(e){if(this.match(19))throw this.raise(_.PipelineBodyNoArrow,this.state.startLoc);this.topicReferenceWasUsedInCurrentContext()||this.raise(_.PipelineTopicUnused,e)}withTopicBindingContext(e){let t=this.state.topicContext;this.state.topicContext={maxNumOfResolvableTopics:1,maxTopicIndex:null};try{return e()}finally{this.state.topicContext=t}}withSmartMixTopicForbiddingContext(e){if(this.hasPlugin([`pipelineOperator`,{proposal:`smart`}])){let t=this.state.topicContext;this.state.topicContext={maxNumOfResolvableTopics:0,maxTopicIndex:null};try{return e()}finally{this.state.topicContext=t}}else return e()}withSoloAwaitPermittingContext(e){let t=this.state.soloAwait;this.state.soloAwait=!0;try{return e()}finally{this.state.soloAwait=t}}allowInAnd(e){let t=this.prodParam.currentFlags();if(8&~t){this.prodParam.enter(t|8);try{return e()}finally{this.prodParam.exit()}}return e()}disallowInAnd(e){let t=this.prodParam.currentFlags();if(8&t){this.prodParam.enter(t&-9);try{return e()}finally{this.prodParam.exit()}}return e()}registerTopicReference(){this.state.topicContext.maxTopicIndex=0}topicReferenceIsAllowedInCurrentContext(){return this.state.topicContext.maxNumOfResolvableTopics>=1}topicReferenceWasUsedInCurrentContext(){return this.state.topicContext.maxTopicIndex!=null&&this.state.topicContext.maxTopicIndex>=0}parseFSharpPipelineBody(e){let t=this.state.startLoc;this.state.potentialArrowAt=this.state.start;let n=this.state.inFSharpPipelineDirectBody;this.state.inFSharpPipelineDirectBody=!0;let r=this.parseExprOp(this.parseMaybeUnaryOrPrivate(),t,e);return this.state.inFSharpPipelineDirectBody=n,r}parseModuleExpression(){this.expectPlugin(`moduleBlocks`);let e=this.startNode();this.next(),this.match(5)||this.unexpected(null,5);let t=this.startNodeAt(this.state.endLoc);this.next();let n=this.initializeScopes(!0);this.enterInitialScopes();try{e.body=this.parseProgram(t,8,`module`)}finally{n()}return this.finishNode(e,`ModuleExpression`)}parsePropertyNamePrefixOperator(e){}},yn={kind:1},bn={kind:2},xn=/[\uD800-\uDFFF]/u,Sn=/in(?:stanceof)?/y;function Cn(e,t,n){for(let r=0;r<e.length;r++){let a=e[r],{type:o}=a;if(typeof o==`number`){if(o===139){let{loc:t,start:n,value:o,end:s}=a,c=n+1,l=i(t.start,1);e.splice(r,1,new gt({type:V(27),value:`#`,start:n,end:c,startLoc:t.start,endLoc:l}),new gt({type:V(132),value:o,start:c,end:s,startLoc:l,endLoc:t.end})),r++;continue}if(Se(o)){let{loc:s,start:c,value:l,end:u}=a,d=c+1,f=i(s.start,1),p;p=t.charCodeAt(c-n)===96?new gt({type:V(22),value:"`",start:c,end:d,startLoc:s.start,endLoc:f}):new gt({type:V(8),value:`}`,start:c,end:d,startLoc:s.start,endLoc:f});let m,h,g,_;o===24?(h=u-1,g=i(s.end,-1),m=l===null?null:l.slice(1,-1),_=new gt({type:V(22),value:"`",start:h,end:u,startLoc:g,endLoc:s.end})):(h=u-2,g=i(s.end,-2),m=l===null?null:l.slice(1,-2),_=new gt({type:V(23),value:"${",start:h,end:u,startLoc:g,endLoc:s.end})),e.splice(r,1,p,new gt({type:V(20),value:m,start:d,end:h,startLoc:f,endLoc:g}),_),r+=2;continue}a.type=V(o)}}return e}x(Cn,`babel7CompatTokens`);var wn=class extends vn{static{x(this,`StatementParser`)}parseTopLevel(e,t){return e.program=this.parseProgram(t),e.comments=this.comments,this.options.tokens&&(e.tokens=Cn(this.tokens,this.input,this.startIndex)),this.finishNode(e,`File`)}parseProgram(e,t=140,n=this.options.sourceType){if(e.sourceType=n,e.interpreter=this.parseInterpreterDirective(),this.parseBlockBody(e,!0,!0,t),this.inModule){if(!this.options.allowUndeclaredExports&&this.scope.undefinedExports.size>0)for(let[e,t]of Array.from(this.scope.undefinedExports))this.raise(_.ModuleExportUndefined,t,{localName:e});this.addExtra(e,`topLevelAwait`,this.state.hasTopLevelAwait)}let r;return r=t===140?this.finishNode(e,`Program`):this.finishNodeAt(e,`Program`,i(this.state.startLoc,-1)),r}stmtToDirective(e){let t=e;t.type=`Directive`,t.value=t.expression,delete t.expression;let n=t.value,r=n.value,i=this.input.slice(this.offsetToSourcePos(n.start),this.offsetToSourcePos(n.end)),a=n.value=i.slice(1,-1);return this.addExtra(n,`raw`,i),this.addExtra(n,`rawValue`,a),this.addExtra(n,`expressionValue`,r),n.type=`DirectiveLiteral`,t}parseInterpreterDirective(){if(!this.match(28))return null;let e=this.startNode();return e.value=this.state.value,this.next(),this.finishNode(e,`InterpreterDirective`)}isLet(){return this.isContextual(100)?this.hasFollowingBindingAtom():!1}chStartsBindingIdentifier(e,t){if(Ae(e)){if(Sn.lastIndex=t,Sn.test(this.input)){let e=this.codePointAtPos(Sn.lastIndex);if(!H(e)&&e!==92)return!1}return!0}else if(e===92)return!0;else return!1}chStartsBindingPattern(e){return e===91||e===123}hasFollowingBindingAtom(){let e=this.nextTokenStart(),t=this.codePointAtPos(e);return this.chStartsBindingPattern(t)||this.chStartsBindingIdentifier(t,e)}hasInLineFollowingBindingIdentifierOrBrace(){let e=this.nextTokenInLineStart(),t=this.codePointAtPos(e);return t===123||this.chStartsBindingIdentifier(t,e)}startsUsingForOf(){let{type:e,containsEsc:t}=this.lookahead();if(e===102&&!t)return!1;if(L(e)&&!this.hasFollowingLineBreak())return this.expectPlugin(`explicitResourceManagement`),!0}startsAwaitUsing(){let e=this.nextTokenInLineStart();if(this.isUnparsedContextual(e,`using`)){e=this.nextTokenInLineStartSince(e+5);let t=this.codePointAtPos(e);if(this.chStartsBindingIdentifier(t,e))return this.expectPlugin(`explicitResourceManagement`),!0}return!1}parseModuleItem(){return this.parseStatementLike(15)}parseStatementListItem(){return this.parseStatementLike(6|(!this.options.annexB||this.state.strict?0:8))}parseStatementOrSloppyAnnexBFunctionDeclaration(e=!1){let t=0;return this.options.annexB&&!this.state.strict&&(t|=4,e&&(t|=8)),this.parseStatementLike(t)}parseStatement(){return this.parseStatementLike(0)}parseStatementLike(e){let t=null;return this.match(26)&&(t=this.parseDecorators(!0)),this.parseStatementContent(e,t)}parseStatementContent(e,t){let n=this.state.type,r=this.startNode(),i=!!(e&2),a=!!(e&4),o=e&1;switch(n){case 60:return this.parseBreakContinueStatement(r,!0);case 63:return this.parseBreakContinueStatement(r,!1);case 64:return this.parseDebuggerStatement(r);case 90:return this.parseDoWhileStatement(r);case 91:return this.parseForStatement(r);case 68:if(this.lookaheadCharCode()===46)break;return a||this.raise(this.state.strict?_.StrictFunction:this.options.annexB?_.SloppyFunctionAnnexB:_.SloppyFunction,this.state.startLoc),this.parseFunctionStatement(r,!1,!i&&a);case 80:return i||this.unexpected(),this.parseClass(this.maybeTakeDecorators(t,r),!0);case 69:return this.parseIfStatement(r);case 70:return this.parseReturnStatement(r);case 71:return this.parseSwitchStatement(r);case 72:return this.parseThrowStatement(r);case 73:return this.parseTryStatement(r);case 96:if(!this.state.containsEsc&&this.startsAwaitUsing())return this.recordAwaitIfAllowed()?i||this.raise(_.UnexpectedLexicalDeclaration,r):this.raise(_.AwaitUsingNotInAsyncContext,r),this.next(),this.parseVarStatement(r,`await using`);break;case 107:if(this.state.containsEsc||!this.hasInLineFollowingBindingIdentifierOrBrace())break;return this.expectPlugin(`explicitResourceManagement`),!this.scope.inModule&&this.scope.inTopLevel?this.raise(_.UnexpectedUsingDeclaration,this.state.startLoc):i||this.raise(_.UnexpectedLexicalDeclaration,this.state.startLoc),this.parseVarStatement(r,`using`);case 100:{if(this.state.containsEsc)break;let e=this.nextTokenStart(),t=this.codePointAtPos(e);if(t!==91&&(!i&&this.hasFollowingLineBreak()||!this.chStartsBindingIdentifier(t,e)&&t!==123))break}case 75:i||this.raise(_.UnexpectedLexicalDeclaration,this.state.startLoc);case 74:{let e=this.state.value;return this.parseVarStatement(r,e)}case 92:return this.parseWhileStatement(r);case 76:return this.parseWithStatement(r);case 5:return this.parseBlock();case 13:return this.parseEmptyStatement(r);case 83:{let e=this.lookaheadCharCode();if(e===40||e===46)break}case 82:{!this.options.allowImportExportEverywhere&&!o&&this.raise(_.UnexpectedImportExport,this.state.startLoc),this.next();let e;return n===83?(e=this.parseImport(r),e.type===`ImportDeclaration`&&(!e.importKind||e.importKind===`value`)&&(this.sawUnambiguousESM=!0)):(e=this.parseExport(r,t),(e.type===`ExportNamedDeclaration`&&(!e.exportKind||e.exportKind===`value`)||e.type===`ExportAllDeclaration`&&(!e.exportKind||e.exportKind===`value`)||e.type===`ExportDefaultDeclaration`)&&(this.sawUnambiguousESM=!0)),this.assertModuleNodeAllowed(e),e}default:if(this.isAsyncFunction())return i||this.raise(_.AsyncFunctionInSingleStatementContext,this.state.startLoc),this.next(),this.parseFunctionStatement(r,!0,!i&&a)}let s=this.state.value,c=this.parseExpression();return L(n)&&c.type===`Identifier`&&this.eat(14)?this.parseLabeledStatement(r,s,c,e):this.parseExpressionStatement(r,c,t)}assertModuleNodeAllowed(e){!this.options.allowImportExportEverywhere&&!this.inModule&&this.raise(_.ImportOutsideModule,e)}decoratorsEnabledBeforeExport(){return this.hasPlugin(`decorators-legacy`)?!0:this.hasPlugin(`decorators`)&&this.getPluginOption(`decorators`,`decoratorsBeforeExport`)!==!1}maybeTakeDecorators(e,t,n){return e&&(t.decorators&&t.decorators.length>0?(typeof this.getPluginOption(`decorators`,`decoratorsBeforeExport`)!=`boolean`&&this.raise(_.DecoratorsBeforeAfterExport,t.decorators[0]),t.decorators.unshift(...e)):t.decorators=e,this.resetStartLocationFromNode(t,e[0]),n&&this.resetStartLocationFromNode(n,t)),t}canHaveLeadingDecorator(){return this.match(80)}parseDecorators(e){let t=[];do t.push(this.parseDecorator());while(this.match(26));if(this.match(82))e||this.unexpected(),this.decoratorsEnabledBeforeExport()||this.raise(_.DecoratorExportClass,this.state.startLoc);else if(!this.canHaveLeadingDecorator())throw this.raise(_.UnexpectedLeadingDecorator,this.state.startLoc);return t}parseDecorator(){this.expectOnePlugin([`decorators`,`decorators-legacy`]);let e=this.startNode();if(this.next(),this.hasPlugin(`decorators`)){let t=this.state.startLoc,n;if(this.match(10)){let t=this.state.startLoc;this.next(),n=this.parseExpression(),this.expect(11),n=this.wrapParenthesis(t,n);let r=this.state.startLoc;e.expression=this.parseMaybeDecoratorArguments(n),this.getPluginOption(`decorators`,`allowCallParenthesized`)===!1&&e.expression!==n&&this.raise(_.DecoratorArgumentsOutsideParentheses,r)}else{for(n=this.parseIdentifier(!1);this.eat(16);){let e=this.startNodeAt(t);e.object=n,this.match(139)?(this.classScope.usePrivateName(this.state.value,this.state.startLoc),e.property=this.parsePrivateName()):e.property=this.parseIdentifier(!0),e.computed=!1,n=this.finishNode(e,`MemberExpression`)}e.expression=this.parseMaybeDecoratorArguments(n)}}else e.expression=this.parseExprSubscripts();return this.finishNode(e,`Decorator`)}parseMaybeDecoratorArguments(e){if(this.eat(10)){let t=this.startNodeAtNode(e);return t.callee=e,t.arguments=this.parseCallExpressionArguments(11),this.toReferencedList(t.arguments),this.finishNode(t,`CallExpression`)}return e}parseBreakContinueStatement(e,t){return this.next(),this.isLineTerminator()?e.label=null:(e.label=this.parseIdentifier(),this.semicolon()),this.verifyBreakContinue(e,t),this.finishNode(e,t?`BreakStatement`:`ContinueStatement`)}verifyBreakContinue(e,t){let n;for(n=0;n<this.state.labels.length;++n){let r=this.state.labels[n];if((e.label==null||r.name===e.label.name)&&(r.kind!=null&&(t||r.kind===1)||e.label&&t))break}if(n===this.state.labels.length){let n=t?`BreakStatement`:`ContinueStatement`;this.raise(_.IllegalBreakContinue,e,{type:n})}}parseDebuggerStatement(e){return this.next(),this.semicolon(),this.finishNode(e,`DebuggerStatement`)}parseHeaderExpression(){this.expect(10);let e=this.parseExpression();return this.expect(11),e}parseDoWhileStatement(e){return this.next(),this.state.labels.push(yn),e.body=this.withSmartMixTopicForbiddingContext(()=>this.parseStatement()),this.state.labels.pop(),this.expect(92),e.test=this.parseHeaderExpression(),this.eat(13),this.finishNode(e,`DoWhileStatement`)}parseForStatement(e){this.next(),this.state.labels.push(yn);let t=null;if(this.isContextual(96)&&this.recordAwaitIfAllowed()&&(t=this.state.startLoc,this.next()),this.scope.enter(0),this.expect(10),this.match(13))return t!==null&&this.unexpected(t),this.parseFor(e,null);let n=this.isContextual(100);{let r=this.isContextual(96)&&this.startsAwaitUsing(),i=r||this.isContextual(107)&&this.startsUsingForOf(),a=n&&this.hasFollowingBindingAtom()||i;if(this.match(74)||this.match(75)||a){let n=this.startNode(),a;r?(a=`await using`,this.recordAwaitIfAllowed()||this.raise(_.AwaitUsingNotInAsyncContext,this.state.startLoc),this.next()):a=this.state.value,this.next(),this.parseVar(n,!0,a);let o=this.finishNode(n,`VariableDeclaration`),s=this.match(58);return s&&i&&this.raise(_.ForInUsing,o),(s||this.isContextual(102))&&o.declarations.length===1?this.parseForIn(e,o,t):(t!==null&&this.unexpected(t),this.parseFor(e,o))}}let r=this.isContextual(95),i=new At,a=this.parseExpression(!0,i),o=this.isContextual(102);if(o&&(n&&this.raise(_.ForOfLet,a),t===null&&r&&a.type===`Identifier`&&this.raise(_.ForOfAsync,a)),o||this.match(58)){this.checkDestructuringPrivate(i),this.toAssignable(a,!0);let n=o?`ForOfStatement`:`ForInStatement`;return this.checkLVal(a,{type:n}),this.parseForIn(e,a,t)}else this.checkExpressionErrors(i,!0);return t!==null&&this.unexpected(t),this.parseFor(e,a)}parseFunctionStatement(e,t,n){return this.next(),this.parseFunction(e,1|(n?2:0)|(t?8:0))}parseIfStatement(e){return this.next(),e.test=this.parseHeaderExpression(),e.consequent=this.parseStatementOrSloppyAnnexBFunctionDeclaration(),e.alternate=this.eat(66)?this.parseStatementOrSloppyAnnexBFunctionDeclaration():null,this.finishNode(e,`IfStatement`)}parseReturnStatement(e){return!this.prodParam.hasReturn&&!this.options.allowReturnOutsideFunction&&this.raise(_.IllegalReturn,this.state.startLoc),this.next(),this.isLineTerminator()?e.argument=null:(e.argument=this.parseExpression(),this.semicolon()),this.finishNode(e,`ReturnStatement`)}parseSwitchStatement(e){this.next(),e.discriminant=this.parseHeaderExpression();let t=e.cases=[];this.expect(5),this.state.labels.push(bn),this.scope.enter(0);let n;for(let e;!this.match(8);)if(this.match(61)||this.match(65)){let r=this.match(61);n&&this.finishNode(n,`SwitchCase`),t.push(n=this.startNode()),n.consequent=[],this.next(),r?n.test=this.parseExpression():(e&&this.raise(_.MultipleDefaultsInSwitch,this.state.lastTokStartLoc),e=!0,n.test=null),this.expect(14)}else n?n.consequent.push(this.parseStatementListItem()):this.unexpected();return this.scope.exit(),n&&this.finishNode(n,`SwitchCase`),this.next(),this.state.labels.pop(),this.finishNode(e,`SwitchStatement`)}parseThrowStatement(e){return this.next(),this.hasPrecedingLineBreak()&&this.raise(_.NewlineAfterThrow,this.state.lastTokEndLoc),e.argument=this.parseExpression(),this.semicolon(),this.finishNode(e,`ThrowStatement`)}parseCatchClauseParam(){let e=this.parseBindingAtom();return this.scope.enter(this.options.annexB&&e.type===`Identifier`?8:0),this.checkLVal(e,{type:`CatchClause`},9),e}parseTryStatement(e){if(this.next(),e.block=this.parseBlock(),e.handler=null,this.match(62)){let t=this.startNode();this.next(),this.match(10)?(this.expect(10),t.param=this.parseCatchClauseParam(),this.expect(11)):(t.param=null,this.scope.enter(0)),t.body=this.withSmartMixTopicForbiddingContext(()=>this.parseBlock(!1,!1)),this.scope.exit(),e.handler=this.finishNode(t,`CatchClause`)}return e.finalizer=this.eat(67)?this.parseBlock():null,!e.handler&&!e.finalizer&&this.raise(_.NoCatchOrFinally,e),this.finishNode(e,`TryStatement`)}parseVarStatement(e,t,n=!1){return this.next(),this.parseVar(e,!1,t,n),this.semicolon(),this.finishNode(e,`VariableDeclaration`)}parseWhileStatement(e){return this.next(),e.test=this.parseHeaderExpression(),this.state.labels.push(yn),e.body=this.withSmartMixTopicForbiddingContext(()=>this.parseStatement()),this.state.labels.pop(),this.finishNode(e,`WhileStatement`)}parseWithStatement(e){return this.state.strict&&this.raise(_.StrictWith,this.state.startLoc),this.next(),e.object=this.parseHeaderExpression(),e.body=this.withSmartMixTopicForbiddingContext(()=>this.parseStatement()),this.finishNode(e,`WithStatement`)}parseEmptyStatement(e){return this.next(),this.finishNode(e,`EmptyStatement`)}parseLabeledStatement(e,t,n,r){for(let e of this.state.labels)e.name===t&&this.raise(_.LabelRedeclaration,n,{labelName:t});let i=me(this.state.type)?1:this.match(71)?2:null;for(let t=this.state.labels.length-1;t>=0;t--){let n=this.state.labels[t];if(n.statementStart===e.start)n.statementStart=this.sourceToOffsetPos(this.state.start),n.kind=i;else break}return this.state.labels.push({name:t,kind:i,statementStart:this.sourceToOffsetPos(this.state.start)}),e.body=r&8?this.parseStatementOrSloppyAnnexBFunctionDeclaration(!0):this.parseStatement(),this.state.labels.pop(),e.label=n,this.finishNode(e,`LabeledStatement`)}parseExpressionStatement(e,t,n){return e.expression=t,this.semicolon(),this.finishNode(e,`ExpressionStatement`)}parseBlock(e=!1,t=!0,n){let r=this.startNode();return e&&this.state.strictErrors.clear(),this.expect(5),t&&this.scope.enter(0),this.parseBlockBody(r,e,!1,8,n),t&&this.scope.exit(),this.finishNode(r,`BlockStatement`)}isValidDirective(e){return e.type===`ExpressionStatement`&&e.expression.type===`StringLiteral`&&!e.expression.extra.parenthesized}parseBlockBody(e,t,n,r,i){let a=e.body=[],o=e.directives=[];this.parseBlockOrModuleBlockBody(a,t?o:void 0,n,r,i)}parseBlockOrModuleBlockBody(e,t,n,r,i){let a=this.state.strict,o=!1,s=!1;for(;!this.match(r);){let r=n?this.parseModuleItem():this.parseStatementListItem();if(t&&!s){if(this.isValidDirective(r)){let e=this.stmtToDirective(r);t.push(e),!o&&e.value.value===`use strict`&&(o=!0,this.setStrict(!0));continue}s=!0,this.state.strictErrors.clear()}e.push(r)}i?.call(this,o),a||this.setStrict(!1),this.next()}parseFor(e,t){return e.init=t,this.semicolon(!1),e.test=this.match(13)?null:this.parseExpression(),this.semicolon(!1),e.update=this.match(11)?null:this.parseExpression(),this.expect(11),e.body=this.withSmartMixTopicForbiddingContext(()=>this.parseStatement()),this.scope.exit(),this.state.labels.pop(),this.finishNode(e,`ForStatement`)}parseForIn(e,t,n){let r=this.match(58);return this.next(),r?n!==null&&this.unexpected(n):e.await=n!==null,t.type===`VariableDeclaration`&&t.declarations[0].init!=null&&(!r||!this.options.annexB||this.state.strict||t.kind!==`var`||t.declarations[0].id.type!==`Identifier`)&&this.raise(_.ForInOfLoopInitializer,t,{type:r?`ForInStatement`:`ForOfStatement`}),t.type===`AssignmentPattern`&&this.raise(_.InvalidLhs,t,{ancestor:{type:`ForStatement`}}),e.left=t,e.right=r?this.parseExpression():this.parseMaybeAssignAllowIn(),this.expect(11),e.body=this.withSmartMixTopicForbiddingContext(()=>this.parseStatement()),this.scope.exit(),this.state.labels.pop(),this.finishNode(e,r?`ForInStatement`:`ForOfStatement`)}parseVar(e,t,n,r=!1){let i=e.declarations=[];for(e.kind=n;;){let e=this.startNode();if(this.parseVarId(e,n),e.init=this.eat(29)?t?this.parseMaybeAssignDisallowIn():this.parseMaybeAssignAllowIn():null,e.init===null&&!r&&(e.id.type!==`Identifier`&&!(t&&(this.match(58)||this.isContextual(102)))?this.raise(_.DeclarationMissingInitializer,this.state.lastTokEndLoc,{kind:`destructuring`}):(n===`const`||n===`using`||n===`await using`)&&!(this.match(58)||this.isContextual(102))&&this.raise(_.DeclarationMissingInitializer,this.state.lastTokEndLoc,{kind:n})),i.push(this.finishNode(e,`VariableDeclarator`)),!this.eat(12))break}return e}parseVarId(e,t){let n=this.parseBindingAtom();(t===`using`||t===`await using`)&&(n.type===`ArrayPattern`||n.type===`ObjectPattern`)&&this.raise(_.UsingDeclarationHasBindingPattern,n.loc.start),this.checkLVal(n,{type:`VariableDeclarator`},t===`var`?5:8201),e.id=n}parseAsyncFunctionExpression(e){return this.parseFunction(e,8)}parseFunction(e,t=0){let n=t&2,r=!!(t&1),i=r&&!(t&4),a=!!(t&8);this.initFunction(e,a),this.match(55)&&(n&&this.raise(_.GeneratorInSingleStatementContext,this.state.startLoc),this.next(),e.generator=!0),r&&(e.id=this.parseFunctionId(i));let o=this.state.maybeInArrowParameters;return this.state.maybeInArrowParameters=!1,this.scope.enter(2),this.prodParam.enter(Ot(a,e.generator)),r||(e.id=this.parseFunctionId()),this.parseFunctionParams(e,!1),this.withSmartMixTopicForbiddingContext(()=>{this.parseFunctionBodyAndFinish(e,r?`FunctionDeclaration`:`FunctionExpression`)}),this.prodParam.exit(),this.scope.exit(),r&&!n&&this.registerFunctionStatementId(e),this.state.maybeInArrowParameters=o,e}parseFunctionId(e){return e||L(this.state.type)?this.parseIdentifier():null}parseFunctionParams(e,t){this.expect(10),this.expressionScope.enter(Ct()),e.params=this.parseBindingList(11,41,2|(t?4:0)),this.expressionScope.exit()}registerFunctionStatementId(e){e.id&&this.scope.declareName(e.id.name,!this.options.annexB||this.state.strict||e.generator||e.async?this.scope.treatFunctionsAsVar?5:8201:17,e.id.loc.start)}parseClass(e,t,n){this.next();let r=this.state.strict;return this.state.strict=!0,this.parseClassId(e,t,n),this.parseClassSuper(e),e.body=this.parseClassBody(!!e.superClass,r),this.finishNode(e,t?`ClassDeclaration`:`ClassExpression`)}isClassProperty(){return this.match(29)||this.match(13)||this.match(8)}isClassMethod(){return this.match(10)}nameIsConstructor(e){return e.type===`Identifier`&&e.name===`constructor`||e.type===`StringLiteral`&&e.value===`constructor`}isNonstaticConstructor(e){return!e.computed&&!e.static&&this.nameIsConstructor(e.key)}parseClassBody(e,t){this.classScope.enter();let n={hadConstructor:!1,hadSuperClass:e},r=[],i=this.startNode();if(i.body=[],this.expect(5),this.withSmartMixTopicForbiddingContext(()=>{for(;!this.match(8);){if(this.eat(13)){if(r.length>0)throw this.raise(_.DecoratorSemicolon,this.state.lastTokEndLoc);continue}if(this.match(26)){r.push(this.parseDecorator());continue}let e=this.startNode();r.length&&(e.decorators=r,this.resetStartLocationFromNode(e,r[0]),r=[]),this.parseClassMember(i,e,n),e.kind===`constructor`&&e.decorators&&e.decorators.length>0&&this.raise(_.DecoratorConstructor,e)}}),this.state.strict=t,this.next(),r.length)throw this.raise(_.TrailingDecorator,this.state.startLoc);return this.classScope.exit(),this.finishNode(i,`ClassBody`)}parseClassMemberFromModifier(e,t){let n=this.parseIdentifier(!0);if(this.isClassMethod()){let r=t;return r.kind=`method`,r.computed=!1,r.key=n,r.static=!1,this.pushClassMethod(e,r,!1,!1,!1,!1),!0}else if(this.isClassProperty()){let r=t;return r.computed=!1,r.key=n,r.static=!1,e.body.push(this.parseClassProperty(r)),!0}return this.resetPreviousNodeTrailingComments(n),!1}parseClassMember(e,t,n){let r=this.isContextual(106);if(r){if(this.parseClassMemberFromModifier(e,t))return;if(this.eat(5)){this.parseClassStaticBlock(e,t);return}}this.parseClassMemberWithIsStatic(e,t,n,r)}parseClassMemberWithIsStatic(e,t,n,r){let i=t,a=t,o=t,s=t,c=t,l=i,u=i;if(t.static=r,this.parsePropertyNamePrefixOperator(t),this.eat(55)){l.kind=`method`;let t=this.match(139);if(this.parseClassElementName(l),t){this.pushClassPrivateMethod(e,a,!0,!1);return}this.isNonstaticConstructor(i)&&this.raise(_.ConstructorIsGenerator,i.key),this.pushClassMethod(e,i,!0,!1,!1,!1);return}let d=!this.state.containsEsc&&L(this.state.type),f=this.parseClassElementName(t),p=d?f.name:null,m=this.isPrivateName(f),h=this.state.startLoc;if(this.parsePostMemberNameModifiers(u),this.isClassMethod()){if(l.kind=`method`,m){this.pushClassPrivateMethod(e,a,!1,!1);return}let r=this.isNonstaticConstructor(i),o=!1;r&&(i.kind=`constructor`,n.hadConstructor&&!this.hasPlugin(`typescript`)&&this.raise(_.DuplicateConstructor,f),r&&this.hasPlugin(`typescript`)&&t.override&&this.raise(_.OverrideOnConstructor,f),n.hadConstructor=!0,o=n.hadSuperClass),this.pushClassMethod(e,i,!1,!1,r,o)}else if(this.isClassProperty())m?this.pushClassPrivateProperty(e,s):this.pushClassProperty(e,o);else if(p===`async`&&!this.isLineTerminator()){this.resetPreviousNodeTrailingComments(f);let t=this.eat(55);u.optional&&this.unexpected(h),l.kind=`method`;let n=this.match(139);this.parseClassElementName(l),this.parsePostMemberNameModifiers(u),n?this.pushClassPrivateMethod(e,a,t,!0):(this.isNonstaticConstructor(i)&&this.raise(_.ConstructorIsAsync,i.key),this.pushClassMethod(e,i,t,!0,!1,!1))}else if((p===`get`||p===`set`)&&!(this.match(55)&&this.isLineTerminator())){this.resetPreviousNodeTrailingComments(f),l.kind=p;let t=this.match(139);this.parseClassElementName(i),t?this.pushClassPrivateMethod(e,a,!1,!1):(this.isNonstaticConstructor(i)&&this.raise(_.ConstructorIsAccessor,i.key),this.pushClassMethod(e,i,!1,!1,!1,!1)),this.checkGetterSetterParams(i)}else if(p===`accessor`&&!this.isLineTerminator()){this.expectPlugin(`decoratorAutoAccessors`),this.resetPreviousNodeTrailingComments(f);let t=this.match(139);this.parseClassElementName(o),this.pushClassAccessorProperty(e,c,t)}else this.isLineTerminator()?m?this.pushClassPrivateProperty(e,s):this.pushClassProperty(e,o):this.unexpected()}parseClassElementName(e){let{type:t,value:n}=this.state;if((t===132||t===134)&&e.static&&n===`prototype`&&this.raise(_.StaticPrototype,this.state.startLoc),t===139){n===`constructor`&&this.raise(_.ConstructorClassPrivateField,this.state.startLoc);let t=this.parsePrivateName();return e.key=t,t}return this.parsePropertyName(e),e.key}parseClassStaticBlock(e,t){var n;this.scope.enter(208);let r=this.state.labels;this.state.labels=[],this.prodParam.enter(0);let i=t.body=[];this.parseBlockOrModuleBlockBody(i,void 0,!1,8),this.prodParam.exit(),this.scope.exit(),this.state.labels=r,e.body.push(this.finishNode(t,`StaticBlock`)),(n=t.decorators)!=null&&n.length&&this.raise(_.DecoratorStaticBlock,t)}pushClassProperty(e,t){!t.computed&&this.nameIsConstructor(t.key)&&this.raise(_.ConstructorClassField,t.key),e.body.push(this.parseClassProperty(t))}pushClassPrivateProperty(e,t){let n=this.parseClassPrivateProperty(t);e.body.push(n),this.classScope.declarePrivateName(this.getPrivateNameSV(n.key),0,n.key.loc.start)}pushClassAccessorProperty(e,t,n){!n&&!t.computed&&this.nameIsConstructor(t.key)&&this.raise(_.ConstructorClassField,t.key);let r=this.parseClassAccessorProperty(t);e.body.push(r),n&&this.classScope.declarePrivateName(this.getPrivateNameSV(r.key),0,r.key.loc.start)}pushClassMethod(e,t,n,r,i,a){e.body.push(this.parseMethod(t,n,r,i,a,`ClassMethod`,!0))}pushClassPrivateMethod(e,t,n,r){let i=this.parseMethod(t,n,r,!1,!1,`ClassPrivateMethod`,!0);e.body.push(i);let a=i.kind===`get`?i.static?6:2:i.kind===`set`?i.static?5:1:0;this.declareClassPrivateMethodInScope(i,a)}declareClassPrivateMethodInScope(e,t){this.classScope.declarePrivateName(this.getPrivateNameSV(e.key),t,e.key.loc.start)}parsePostMemberNameModifiers(e){}parseClassPrivateProperty(e){return this.parseInitializer(e),this.semicolon(),this.finishNode(e,`ClassPrivateProperty`)}parseClassProperty(e){return this.parseInitializer(e),this.semicolon(),this.finishNode(e,`ClassProperty`)}parseClassAccessorProperty(e){return this.parseInitializer(e),this.semicolon(),this.finishNode(e,`ClassAccessorProperty`)}parseInitializer(e){this.scope.enter(80),this.expressionScope.enter(Et()),this.prodParam.enter(0),e.value=this.eat(29)?this.parseMaybeAssignAllowIn():null,this.expressionScope.exit(),this.prodParam.exit(),this.scope.exit()}parseClassId(e,t,n,r=8331){if(L(this.state.type))e.id=this.parseIdentifier(),t&&this.declareNameFromIdentifier(e.id,r);else if(n||!t)e.id=null;else throw this.raise(_.MissingClassName,this.state.startLoc)}parseClassSuper(e){e.superClass=this.eat(81)?this.parseExprSubscripts():null}parseExport(e,t){let n=this.parseMaybeImportPhase(e,!0),r=this.maybeParseExportDefaultSpecifier(e,n),i=!r||this.eat(12),a=i&&this.eatExportStar(e),o=a&&this.maybeParseExportNamespaceSpecifier(e),s=i&&(!o||this.eat(12)),c=r||a;if(a&&!o){if(r&&this.unexpected(),t)throw this.raise(_.UnsupportedDecoratorExport,e);return this.parseExportFrom(e,!0),this.finishNode(e,`ExportAllDeclaration`)}let l=this.maybeParseExportNamedSpecifiers(e);r&&i&&!a&&!l&&this.unexpected(null,5),o&&s&&this.unexpected(null,98);let u;if(c||l){if(u=!1,t)throw this.raise(_.UnsupportedDecoratorExport,e);this.parseExportFrom(e,c)}else u=this.maybeParseExportDeclaration(e);if(c||l||u){let n=e;if(this.checkExport(n,!0,!1,!!n.source),n.declaration?.type===`ClassDeclaration`)this.maybeTakeDecorators(t,n.declaration,n);else if(t)throw this.raise(_.UnsupportedDecoratorExport,e);return this.finishNode(n,`ExportNamedDeclaration`)}if(this.eat(65)){let n=e,r=this.parseExportDefaultExpression();if(n.declaration=r,r.type===`ClassDeclaration`)this.maybeTakeDecorators(t,r,n);else if(t)throw this.raise(_.UnsupportedDecoratorExport,e);return this.checkExport(n,!0,!0),this.finishNode(n,`ExportDefaultDeclaration`)}this.unexpected(null,5)}eatExportStar(e){return this.eat(55)}maybeParseExportDefaultSpecifier(e,t){if(t||this.isExportDefaultSpecifier()){this.expectPlugin(`exportDefaultFrom`,t?.loc.start);let n=t||this.parseIdentifier(!0),r=this.startNodeAtNode(n);return r.exported=n,e.specifiers=[this.finishNode(r,`ExportDefaultSpecifier`)],!0}return!1}maybeParseExportNamespaceSpecifier(e){if(this.isContextual(93)){var t;(t=e).specifiers??(t.specifiers=[]);let n=this.startNodeAt(this.state.lastTokStartLoc);return this.next(),n.exported=this.parseModuleExportName(),e.specifiers.push(this.finishNode(n,`ExportNamespaceSpecifier`)),!0}return!1}maybeParseExportNamedSpecifiers(e){if(this.match(5)){let t=e;t.specifiers||=[];let n=t.exportKind===`type`;return t.specifiers.push(...this.parseExportSpecifiers(n)),t.source=null,t.declaration=null,this.hasPlugin(`importAssertions`)&&(t.assertions=[]),!0}return!1}maybeParseExportDeclaration(e){return this.shouldParseExportDeclaration()?(e.specifiers=[],e.source=null,this.hasPlugin(`importAssertions`)&&(e.assertions=[]),e.declaration=this.parseExportDeclaration(e),!0):!1}isAsyncFunction(){if(!this.isContextual(95))return!1;let e=this.nextTokenInLineStart();return this.isUnparsedContextual(e,`function`)}parseExportDefaultExpression(){let e=this.startNode();if(this.match(68))return this.next(),this.parseFunction(e,5);if(this.isAsyncFunction())return this.next(),this.next(),this.parseFunction(e,13);if(this.match(80))return this.parseClass(e,!0,!0);if(this.match(26))return this.hasPlugin(`decorators`)&&this.getPluginOption(`decorators`,`decoratorsBeforeExport`)===!0&&this.raise(_.DecoratorBeforeExport,this.state.startLoc),this.parseClass(this.maybeTakeDecorators(this.parseDecorators(!1),this.startNode()),!0,!0);if(this.match(75)||this.match(74)||this.isLet())throw this.raise(_.UnsupportedDefaultExport,this.state.startLoc);let t=this.parseMaybeAssignAllowIn();return this.semicolon(),t}parseExportDeclaration(e){return this.match(80)?this.parseClass(this.startNode(),!0,!1):this.parseStatementListItem()}isExportDefaultSpecifier(){let{type:e}=this.state;if(L(e)){if(e===95&&!this.state.containsEsc||e===100)return!1;if((e===130||e===129)&&!this.state.containsEsc){let{type:e}=this.lookahead();if(L(e)&&e!==98||e===5)return this.expectOnePlugin([`flow`,`typescript`]),!1}}else if(!this.match(65))return!1;let t=this.nextTokenStart(),n=this.isUnparsedContextual(t,`from`);if(this.input.charCodeAt(t)===44||L(this.state.type)&&n)return!0;if(this.match(65)&&n){let e=this.input.charCodeAt(this.nextTokenStartSince(t+4));return e===34||e===39}return!1}parseExportFrom(e,t){this.eatContextual(98)?(e.source=this.parseImportSource(),this.checkExport(e),this.maybeParseImportAttributes(e),this.checkJSONModuleImport(e)):t&&this.unexpected(),this.semicolon()}shouldParseExportDeclaration(){let{type:e}=this.state;return e===26&&(this.expectOnePlugin([`decorators`,`decorators-legacy`]),this.hasPlugin(`decorators`))?(this.getPluginOption(`decorators`,`decoratorsBeforeExport`)===!0&&this.raise(_.DecoratorBeforeExport,this.state.startLoc),!0):this.isContextual(107)||this.isContextual(96)&&this.startsAwaitUsing()?(this.raise(_.UsingDeclarationExport,this.state.startLoc),!0):e===74||e===75||e===68||e===80||this.isLet()||this.isAsyncFunction()}checkExport(e,t,n,r){if(t){var i;if(n){if(this.checkDuplicateExports(e,`default`),this.hasPlugin(`exportDefaultFrom`)){var a;let t=e.declaration;t.type===`Identifier`&&t.name===`from`&&t.end-t.start===4&&!((a=t.extra)!=null&&a.parenthesized)&&this.raise(_.ExportDefaultFromAsIdentifier,t)}}else if((i=e.specifiers)!=null&&i.length)for(let t of e.specifiers){let{exported:e}=t,n=e.type===`Identifier`?e.name:e.value;if(this.checkDuplicateExports(t,n),!r&&t.local){let{local:e}=t;e.type===`Identifier`?(this.checkReservedWord(e.name,e.loc.start,!0,!1),this.scope.checkLocalExport(e)):this.raise(_.ExportBindingIsString,t,{localName:e.value,exportName:n})}}else if(e.declaration){let t=e.declaration;if(t.type===`FunctionDeclaration`||t.type===`ClassDeclaration`){let{id:n}=t;if(!n)throw Error(`Assertion failure`);this.checkDuplicateExports(e,n.name)}else if(t.type===`VariableDeclaration`)for(let e of t.declarations)this.checkDeclaration(e.id)}}}checkDeclaration(e){if(e.type===`Identifier`)this.checkDuplicateExports(e,e.name);else if(e.type===`ObjectPattern`)for(let t of e.properties)this.checkDeclaration(t);else if(e.type===`ArrayPattern`)for(let t of e.elements)t&&this.checkDeclaration(t);else e.type===`ObjectProperty`?this.checkDeclaration(e.value):e.type===`RestElement`?this.checkDeclaration(e.argument):e.type===`AssignmentPattern`&&this.checkDeclaration(e.left)}checkDuplicateExports(e,t){this.exportedIdentifiers.has(t)&&(t===`default`?this.raise(_.DuplicateDefaultExport,e):this.raise(_.DuplicateExport,e,{exportName:t})),this.exportedIdentifiers.add(t)}parseExportSpecifiers(e){let t=[],n=!0;for(this.expect(5);!this.eat(8);){if(n)n=!1;else if(this.expect(12),this.eat(8))break;let r=this.isContextual(130),i=this.match(134),a=this.startNode();a.local=this.parseModuleExportName(),t.push(this.parseExportSpecifier(a,i,e,r))}return t}parseExportSpecifier(e,t,n,r){return this.eatContextual(93)?e.exported=this.parseModuleExportName():t?e.exported=Ft(e.local):e.exported||=Pt(e.local),this.finishNode(e,`ExportSpecifier`)}parseModuleExportName(){if(this.match(134)){let e=this.parseStringLiteral(this.state.value),t=xn.exec(e.value);return t&&this.raise(_.ModuleExportNameHasLoneSurrogate,e,{surrogateCharCode:t[0].charCodeAt(0)}),e}return this.parseIdentifier(!0)}isJSONModuleImport(e){return e.assertions==null?!1:e.assertions.some(({key:e,value:t})=>t.value===`json`&&(e.type===`Identifier`?e.name===`type`:e.value===`type`))}checkImportReflection(e){let{specifiers:t}=e,n=t.length===1?t[0].type:null;e.phase===`source`?n!==`ImportDefaultSpecifier`&&this.raise(_.SourcePhaseImportRequiresDefault,t[0].loc.start):e.phase===`defer`?n!==`ImportNamespaceSpecifier`&&this.raise(_.DeferImportRequiresNamespace,t[0].loc.start):e.module&&(n!==`ImportDefaultSpecifier`&&this.raise(_.ImportReflectionNotBinding,t[0].loc.start),e.assertions?.length>0&&this.raise(_.ImportReflectionHasAssertion,t[0].loc.start))}checkJSONModuleImport(e){if(this.isJSONModuleImport(e)&&e.type!==`ExportAllDeclaration`){let{specifiers:t}=e;if(t!=null){let e=t.find(e=>{let t;if(e.type===`ExportSpecifier`?t=e.local:e.type===`ImportSpecifier`&&(t=e.imported),t!==void 0)return t.type===`Identifier`?t.name!==`default`:t.value!==`default`});e!==void 0&&this.raise(_.ImportJSONBindingNotDefault,e.loc.start)}}}isPotentialImportPhase(e){return e?!1:this.isContextual(105)||this.isContextual(97)||this.isContextual(127)}applyImportPhase(e,t,n,r){t||(n===`module`?(this.expectPlugin(`importReflection`,r),e.module=!0):this.hasPlugin(`importReflection`)&&(e.module=!1),n===`source`?(this.expectPlugin(`sourcePhaseImports`,r),e.phase=`source`):n===`defer`?(this.expectPlugin(`deferredImportEvaluation`,r),e.phase=`defer`):this.hasPlugin(`sourcePhaseImports`)&&(e.phase=null))}parseMaybeImportPhase(e,t){if(!this.isPotentialImportPhase(t))return this.applyImportPhase(e,t,null),null;let n=this.parseIdentifier(!0),{type:r}=this.state;return(le(r)?r!==98||this.lookaheadCharCode()===102:r!==12)?(this.resetPreviousIdentifierLeadingComments(n),this.applyImportPhase(e,t,n.name,n.loc.start),null):(this.applyImportPhase(e,t,null),n)}isPrecedingIdImportPhase(e){let{type:t}=this.state;return L(t)?t!==98||this.lookaheadCharCode()===102:t!==12}parseImport(e){return this.match(134)?this.parseImportSourceAndAttributes(e):this.parseImportSpecifiersAndAfter(e,this.parseMaybeImportPhase(e,!1))}parseImportSpecifiersAndAfter(e,t){e.specifiers=[];let n=!this.maybeParseDefaultImportSpecifier(e,t)||this.eat(12),r=n&&this.maybeParseStarImportSpecifier(e);return n&&!r&&this.parseNamedImportSpecifiers(e),this.expectContextual(98),this.parseImportSourceAndAttributes(e)}parseImportSourceAndAttributes(e){return e.specifiers??=[],e.source=this.parseImportSource(),this.maybeParseImportAttributes(e),this.checkImportReflection(e),this.checkJSONModuleImport(e),this.semicolon(),this.finishNode(e,`ImportDeclaration`)}parseImportSource(){return this.match(134)||this.unexpected(),this.parseExprAtom()}parseImportSpecifierLocal(e,t,n){t.local=this.parseIdentifier(),e.specifiers.push(this.finishImportSpecifier(t,n))}finishImportSpecifier(e,t,n=8201){return this.checkLVal(e.local,{type:t},n),this.finishNode(e,t)}parseImportAttributes(){this.expect(5);let e=[],t=new Set;do{if(this.match(8))break;let n=this.startNode(),r=this.state.value;if(t.has(r)&&this.raise(_.ModuleAttributesWithDuplicateKeys,this.state.startLoc,{key:r}),t.add(r),this.match(134)?n.key=this.parseStringLiteral(r):n.key=this.parseIdentifier(!0),this.expect(14),!this.match(134))throw this.raise(_.ModuleAttributeInvalidValue,this.state.startLoc);n.value=this.parseStringLiteral(this.state.value),e.push(this.finishNode(n,`ImportAttribute`))}while(this.eat(12));return this.expect(8),e}parseModuleAttributes(){let e=[],t=new Set;do{let n=this.startNode();if(n.key=this.parseIdentifier(!0),n.key.name!==`type`&&this.raise(_.ModuleAttributeDifferentFromType,n.key),t.has(n.key.name)&&this.raise(_.ModuleAttributesWithDuplicateKeys,n.key,{key:n.key.name}),t.add(n.key.name),this.expect(14),!this.match(134))throw this.raise(_.ModuleAttributeInvalidValue,this.state.startLoc);n.value=this.parseStringLiteral(this.state.value),e.push(this.finishNode(n,`ImportAttribute`))}while(this.eat(12));return e}maybeParseImportAttributes(e){let t;var n=!1;if(this.match(76)){if(this.hasPrecedingLineBreak()&&this.lookaheadCharCode()===40)return;this.next(),t=this.hasPlugin(`moduleAttributes`)?this.parseModuleAttributes():this.parseImportAttributes(),n=!0}else this.isContextual(94)&&!this.hasPrecedingLineBreak()?(!this.hasPlugin(`deprecatedImportAssert`)&&!this.hasPlugin(`importAssertions`)&&this.raise(_.ImportAttributesUseAssert,this.state.startLoc),this.hasPlugin(`importAssertions`)||this.addExtra(e,`deprecatedAssertSyntax`,!0),this.next(),t=this.parseImportAttributes()):t=[];!n&&this.hasPlugin(`importAssertions`)?e.assertions=t:e.attributes=t}maybeParseDefaultImportSpecifier(e,t){if(t){let n=this.startNodeAtNode(t);return n.local=t,e.specifiers.push(this.finishImportSpecifier(n,`ImportDefaultSpecifier`)),!0}else if(le(this.state.type))return this.parseImportSpecifierLocal(e,this.startNode(),`ImportDefaultSpecifier`),!0;return!1}maybeParseStarImportSpecifier(e){if(this.match(55)){let t=this.startNode();return this.next(),this.expectContextual(93),this.parseImportSpecifierLocal(e,t,`ImportNamespaceSpecifier`),!0}return!1}parseNamedImportSpecifiers(e){let t=!0;for(this.expect(5);!this.eat(8);){if(t)t=!1;else{if(this.eat(14))throw this.raise(_.DestructureNamedImport,this.state.startLoc);if(this.expect(12),this.eat(8))break}let n=this.startNode(),r=this.match(134),i=this.isContextual(130);n.imported=this.parseModuleExportName();let a=this.parseImportSpecifier(n,r,e.importKind===`type`||e.importKind===`typeof`,i,void 0);e.specifiers.push(a)}}parseImportSpecifier(e,t,n,r,i){if(this.eatContextual(93))e.local=this.parseIdentifier();else{let{imported:n}=e;if(t)throw this.raise(_.ImportBindingIsString,e,{importName:n.value});this.checkReservedWord(n.name,e.loc.start,!0,!0),e.local||=Pt(n)}return this.finishImportSpecifier(e,`ImportSpecifier`,i)}isThisParam(e){return e.type===`Identifier`&&e.name===`this`}},Tn=class extends wn{static{x(this,`Parser`)}constructor(e,t,n){e=_n(e),super(e,t),this.options=e,this.initializeScopes(),this.plugins=n,this.filename=e.sourceFilename,this.startIndex=e.startIndex}getScopeHandler(){return We}parse(){this.enterInitialScopes();let e=this.startNode(),t=this.startNode();return this.nextToken(),e.errors=null,this.parseTopLevel(e,t),e.errors=this.state.errors,e.comments.length=this.state.commentsLen,e}};function En(e,t){if(t?.sourceType===`unambiguous`){t=Object.assign({},t);try{t.sourceType=`module`;let n=An(t,e),r=n.parse();if(n.sawUnambiguousESM)return r;if(n.ambiguousScriptDifferentAst)try{return t.sourceType=`script`,An(t,e).parse()}catch{}else r.program.sourceType=`script`;return r}catch(n){try{return t.sourceType=`script`,An(t,e).parse()}catch{}throw n}}else return An(t,e).parse()}x(En,`parse`);function Dn(e,t){let n=An(t,e);return n.options.strictMode&&(n.state.strict=!0),n.getExpression()}x(Dn,`parseExpression`);function On(e){let t={};for(let n of Object.keys(e))t[n]=V(e[n]);return t}x(On,`generateExportedTokenTypes`);var kn=On(se);function An(e,t){let n=Tn,r=new Map;if(e!=null&&e.plugins){for(let t of e.plugins){let e,n;typeof t==`string`?e=t:[e,n]=t,r.has(e)||r.set(e,n||{})}pn(r),n=Mn(r)}return new n(e,t,r)}x(An,`getParser`);var jn=new Map;function Mn(e){let t=[];for(let n of hn)e.has(n)&&t.push(n);let n=t.join(`|`),r=jn.get(n);if(!r){r=Tn;for(let e of t)r=mn[e](r);jn.set(n,r)}return r}x(Mn,`getParserClass`),e.parse=En,e.parseExpression=Dn,e.tokTypes=kn}}),Hn=E({"../../node_modules/.pnpm/recast@0.23.11/node_modules/recast/parsers/babel.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.parse=e.parser=void 0;var t=(G(),C(U)).__importDefault(Bn());e.parser=function(){try{return Vn()}catch{try{return b(`babylon`)}catch{throw Error("Install @babel/parser to use the `typescript`, `flow`, or `babel` parsers")}}}();function n(n,r){var i=(0,t.default)(r);return i.plugins.push(`jsx`,`flow`,`decoratorAutoAccessors`),e.parser.parse(n,i)}x(n,`parse`),e.parse=n}}),Un=E({"../../node_modules/.pnpm/recast@0.23.11/node_modules/recast/parsers/typescript.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.parse=void 0;var t=(G(),C(U)),n=Hn(),r=t.__importDefault(Bn());function i(e,t){var i=(0,r.default)(t);return i.plugins.push(`typescript`),n.parser.parse(e,i)}x(i,`parse`),e.parse=i}}),Wn=E({"../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/internal/constants.js"(e,t){var n=`2.0.0`,r=256;t.exports={MAX_LENGTH:r,MAX_SAFE_COMPONENT_LENGTH:16,MAX_SAFE_BUILD_LENGTH:r-6,MAX_SAFE_INTEGER:2**53-1||9007199254740991,RELEASE_TYPES:[`major`,`premajor`,`minor`,`preminor`,`patch`,`prepatch`,`prerelease`],SEMVER_SPEC_VERSION:n,FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2}}}),Gn=E({"../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/internal/debug.js"(e,t){t.exports=typeof process==`object`&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...e)=>console.error(`SEMVER`,...e):()=>{}}}),Kn=E({"../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/internal/re.js"(e,t){var{MAX_SAFE_COMPONENT_LENGTH:n,MAX_SAFE_BUILD_LENGTH:r,MAX_LENGTH:i}=Wn(),a=Gn();e=t.exports={};var o=e.re=[],s=e.safeRe=[],c=e.src=[],l=e.safeSrc=[],u=e.t={},d=0,f=`[a-zA-Z0-9-]`,p=[[`\\s`,1],[`\\d`,i],[f,r]],m=x(e=>{for(let[t,n]of p)e=e.split(`${t}*`).join(`${t}{0,${n}}`).split(`${t}+`).join(`${t}{1,${n}}`);return e},`makeSafeRegex`),h=x((e,t,n)=>{let r=m(t),i=d++;a(e,i,t),u[e]=i,c[i]=t,l[i]=r,o[i]=new RegExp(t,n?`g`:void 0),s[i]=new RegExp(r,n?`g`:void 0)},`createToken`);h(`NUMERICIDENTIFIER`,`0|[1-9]\\d*`),h(`NUMERICIDENTIFIERLOOSE`,`\\d+`),h(`NONNUMERICIDENTIFIER`,`\\d*[a-zA-Z-]${f}*`),h(`MAINVERSION`,`(${c[u.NUMERICIDENTIFIER]})\\.(${c[u.NUMERICIDENTIFIER]})\\.(${c[u.NUMERICIDENTIFIER]})`),h(`MAINVERSIONLOOSE`,`(${c[u.NUMERICIDENTIFIERLOOSE]})\\.(${c[u.NUMERICIDENTIFIERLOOSE]})\\.(${c[u.NUMERICIDENTIFIERLOOSE]})`),h(`PRERELEASEIDENTIFIER`,`(?:${c[u.NONNUMERICIDENTIFIER]}|${c[u.NUMERICIDENTIFIER]})`),h(`PRERELEASEIDENTIFIERLOOSE`,`(?:${c[u.NONNUMERICIDENTIFIER]}|${c[u.NUMERICIDENTIFIERLOOSE]})`),h(`PRERELEASE`,`(?:-(${c[u.PRERELEASEIDENTIFIER]}(?:\\.${c[u.PRERELEASEIDENTIFIER]})*))`),h(`PRERELEASELOOSE`,`(?:-?(${c[u.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${c[u.PRERELEASEIDENTIFIERLOOSE]})*))`),h(`BUILDIDENTIFIER`,`${f}+`),h(`BUILD`,`(?:\\+(${c[u.BUILDIDENTIFIER]}(?:\\.${c[u.BUILDIDENTIFIER]})*))`),h(`FULLPLAIN`,`v?${c[u.MAINVERSION]}${c[u.PRERELEASE]}?${c[u.BUILD]}?`),h(`FULL`,`^${c[u.FULLPLAIN]}$`),h(`LOOSEPLAIN`,`[v=\\s]*${c[u.MAINVERSIONLOOSE]}${c[u.PRERELEASELOOSE]}?${c[u.BUILD]}?`),h(`LOOSE`,`^${c[u.LOOSEPLAIN]}$`),h(`GTLT`,`((?:<|>)?=?)`),h(`XRANGEIDENTIFIERLOOSE`,`${c[u.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`),h(`XRANGEIDENTIFIER`,`${c[u.NUMERICIDENTIFIER]}|x|X|\\*`),h(`XRANGEPLAIN`,`[v=\\s]*(${c[u.XRANGEIDENTIFIER]})(?:\\.(${c[u.XRANGEIDENTIFIER]})(?:\\.(${c[u.XRANGEIDENTIFIER]})(?:${c[u.PRERELEASE]})?${c[u.BUILD]}?)?)?`),h(`XRANGEPLAINLOOSE`,`[v=\\s]*(${c[u.XRANGEIDENTIFIERLOOSE]})(?:\\.(${c[u.XRANGEIDENTIFIERLOOSE]})(?:\\.(${c[u.XRANGEIDENTIFIERLOOSE]})(?:${c[u.PRERELEASELOOSE]})?${c[u.BUILD]}?)?)?`),h(`XRANGE`,`^${c[u.GTLT]}\\s*${c[u.XRANGEPLAIN]}$`),h(`XRANGELOOSE`,`^${c[u.GTLT]}\\s*${c[u.XRANGEPLAINLOOSE]}$`),h(`COERCEPLAIN`,`(^|[^\\d])(\\d{1,${n}})(?:\\.(\\d{1,${n}}))?(?:\\.(\\d{1,${n}}))?`),h(`COERCE`,`${c[u.COERCEPLAIN]}(?:$|[^\\d])`),h(`COERCEFULL`,c[u.COERCEPLAIN]+`(?:${c[u.PRERELEASE]})?(?:${c[u.BUILD]})?(?:$|[^\\d])`),h(`COERCERTL`,c[u.COERCE],!0),h(`COERCERTLFULL`,c[u.COERCEFULL],!0),h(`LONETILDE`,`(?:~>?)`),h(`TILDETRIM`,`(\\s*)${c[u.LONETILDE]}\\s+`,!0),e.tildeTrimReplace=`$1~`,h(`TILDE`,`^${c[u.LONETILDE]}${c[u.XRANGEPLAIN]}$`),h(`TILDELOOSE`,`^${c[u.LONETILDE]}${c[u.XRANGEPLAINLOOSE]}$`),h(`LONECARET`,`(?:\\^)`),h(`CARETTRIM`,`(\\s*)${c[u.LONECARET]}\\s+`,!0),e.caretTrimReplace=`$1^`,h(`CARET`,`^${c[u.LONECARET]}${c[u.XRANGEPLAIN]}$`),h(`CARETLOOSE`,`^${c[u.LONECARET]}${c[u.XRANGEPLAINLOOSE]}$`),h(`COMPARATORLOOSE`,`^${c[u.GTLT]}\\s*(${c[u.LOOSEPLAIN]})$|^$`),h(`COMPARATOR`,`^${c[u.GTLT]}\\s*(${c[u.FULLPLAIN]})$|^$`),h(`COMPARATORTRIM`,`(\\s*)${c[u.GTLT]}\\s*(${c[u.LOOSEPLAIN]}|${c[u.XRANGEPLAIN]})`,!0),e.comparatorTrimReplace=`$1$2$3`,h(`HYPHENRANGE`,`^\\s*(${c[u.XRANGEPLAIN]})\\s+-\\s+(${c[u.XRANGEPLAIN]})\\s*$`),h(`HYPHENRANGELOOSE`,`^\\s*(${c[u.XRANGEPLAINLOOSE]})\\s+-\\s+(${c[u.XRANGEPLAINLOOSE]})\\s*$`),h(`STAR`,`(<|>)?=?\\s*\\*`),h(`GTE0`,`^\\s*>=\\s*0\\.0\\.0\\s*$`),h(`GTE0PRE`,`^\\s*>=\\s*0\\.0\\.0-0\\s*$`)}}),qn=E({"../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/internal/parse-options.js"(e,t){var n=Object.freeze({loose:!0}),r=Object.freeze({});t.exports=x(e=>e?typeof e==`object`?e:n:r,`parseOptions`)}}),Jn=E({"../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/internal/identifiers.js"(e,t){var n=/^[0-9]+$/,r=x((e,t)=>{if(typeof e==`number`&&typeof t==`number`)return e===t?0:e<t?-1:1;let r=n.test(e),i=n.test(t);return r&&i&&(e=+e,t=+t),e===t?0:r&&!i?-1:i&&!r?1:e<t?-1:1},`compareIdentifiers`);t.exports={compareIdentifiers:r,rcompareIdentifiers:x((e,t)=>r(t,e),`rcompareIdentifiers`)}}}),Yn=E({"../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/classes/semver.js"(e,t){var n=Gn(),{MAX_LENGTH:r,MAX_SAFE_INTEGER:i}=Wn(),{safeRe:a,t:o}=Kn(),s=qn(),{compareIdentifiers:c}=Jn(),l=x((e,t)=>{let n=t.split(`.`);if(n.length>e.length)return!1;for(let t=0;t<n.length;t++)if(c(e[t],n[t])!==0)return!1;return!0},`isPrereleaseIdentifier`);t.exports=class e{static{x(this,`SemVer`)}constructor(t,c){if(c=s(c),t instanceof e){if(t.loose===!!c.loose&&t.includePrerelease===!!c.includePrerelease)return t;t=t.version}else if(typeof t!=`string`)throw TypeError(`Invalid version. Must be a string. Got type "${typeof t}".`);if(t.length>r)throw TypeError(`version is longer than ${r} characters`);n(`SemVer`,t,c),this.options=c,this.loose=!!c.loose,this.includePrerelease=!!c.includePrerelease;let l=t.trim().match(c.loose?a[o.LOOSE]:a[o.FULL]);if(!l)throw TypeError(`Invalid Version: ${t}`);if(this.raw=t,this.major=+l[1],this.minor=+l[2],this.patch=+l[3],this.major>i||this.major<0)throw TypeError(`Invalid major version`);if(this.minor>i||this.minor<0)throw TypeError(`Invalid minor version`);if(this.patch>i||this.patch<0)throw TypeError(`Invalid patch version`);l[4]?this.prerelease=l[4].split(`.`).map(e=>{if(/^[0-9]+$/.test(e)){let t=+e;if(t>=0&&t<i)return t}return e}):this.prerelease=[],this.build=l[5]?l[5].split(`.`):[],this.format()}format(){return this.version=`${this.major}.${this.minor}.${this.patch}`,this.prerelease.length&&(this.version+=`-${this.prerelease.join(`.`)}`),this.version}toString(){return this.version}compare(t){if(n(`SemVer.compare`,this.version,this.options,t),!(t instanceof e)){if(typeof t==`string`&&t===this.version)return 0;t=new e(t,this.options)}return t.version===this.version?0:this.compareMain(t)||this.comparePre(t)}compareMain(t){return t instanceof e||(t=new e(t,this.options)),this.major<t.major?-1:this.major>t.major?1:this.minor<t.minor?-1:this.minor>t.minor?1:this.patch<t.patch?-1:+(this.patch>t.patch)}comparePre(t){if(t instanceof e||(t=new e(t,this.options)),this.prerelease.length&&!t.prerelease.length)return-1;if(!this.prerelease.length&&t.prerelease.length)return 1;if(!this.prerelease.length&&!t.prerelease.length)return 0;let r=0;do{let e=this.prerelease[r],i=t.prerelease[r];if(n(`prerelease compare`,r,e,i),e===void 0&&i===void 0)return 0;if(i===void 0)return 1;if(e===void 0)return-1;if(e===i)continue;return c(e,i)}while(++r)}compareBuild(t){t instanceof e||(t=new e(t,this.options));let r=0;do{let e=this.build[r],i=t.build[r];if(n(`build compare`,r,e,i),e===void 0&&i===void 0)return 0;if(i===void 0)return 1;if(e===void 0)return-1;if(e===i)continue;return c(e,i)}while(++r)}inc(e,t,n){if(e.startsWith(`pre`)){if(!t&&n===!1)throw Error(`invalid increment argument: identifier is empty`);if(t){let e=`-${t}`.match(this.options.loose?a[o.PRERELEASELOOSE]:a[o.PRERELEASE]);if(!e||e[1]!==t)throw Error(`invalid identifier: ${t}`)}}switch(e){case`premajor`:this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc(`pre`,t,n);break;case`preminor`:this.prerelease.length=0,this.patch=0,this.minor++,this.inc(`pre`,t,n);break;case`prepatch`:this.prerelease.length=0,this.inc(`patch`,t,n),this.inc(`pre`,t,n);break;case`prerelease`:this.prerelease.length===0&&this.inc(`patch`,t,n),this.inc(`pre`,t,n);break;case`release`:if(this.prerelease.length===0)throw Error(`version ${this.raw} is not a prerelease`);this.prerelease.length=0;break;case`major`:(this.minor!==0||this.patch!==0||this.prerelease.length===0)&&this.major++,this.minor=0,this.patch=0,this.prerelease=[];break;case`minor`:(this.patch!==0||this.prerelease.length===0)&&this.minor++,this.patch=0,this.prerelease=[];break;case`patch`:this.prerelease.length===0&&this.patch++,this.prerelease=[];break;case`pre`:{let e=+!!Number(n);if(this.prerelease.length===0)this.prerelease=[e];else{let r=this.prerelease.length;for(;--r>=0;)typeof this.prerelease[r]==`number`&&(this.prerelease[r]++,r=-2);if(r===-1){if(t===this.prerelease.join(`.`)&&n===!1)throw Error(`invalid increment argument: identifier already exists`);this.prerelease.push(e)}}if(t){let r=[t,e];if(n===!1&&(r=[t]),l(this.prerelease,t)){let e=this.prerelease[t.split(`.`).length];isNaN(e)&&(this.prerelease=r)}else this.prerelease=r}break}default:throw Error(`invalid increment argument: ${e}`)}return this.raw=this.format(),this.build.length&&(this.raw+=`+${this.build.join(`.`)}`),this}}}}),Xn=E({"../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/functions/parse.js"(e,t){var n=Yn();t.exports=x((e,t,r=!1)=>{if(e instanceof n)return e;try{return new n(e,t)}catch(e){if(!r)return null;throw e}},`parse`)}}),Zn=E({"../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/functions/valid.js"(e,t){var n=Xn();t.exports=x((e,t)=>{let r=n(e,t);return r?r.version:null},`valid`)}}),Qn=E({"../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/functions/clean.js"(e,t){var n=Xn();t.exports=x((e,t)=>{let r=n(e.trim().replace(/^[=v]+/,``),t);return r?r.version:null},`clean`)}}),$n=E({"../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/functions/inc.js"(e,t){var n=Yn();t.exports=x((e,t,r,i,a)=>{typeof r==`string`&&(a=i,i=r,r=void 0);try{return new n(e instanceof n?e.version:e,r).inc(t,i,a).version}catch{return null}},`inc`)}}),er=E({"../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/functions/diff.js"(e,t){var n=Xn();t.exports=x((e,t)=>{let r=n(e,null,!0),i=n(t,null,!0),a=r.compare(i);if(a===0)return null;let o=a>0,s=o?r:i,c=o?i:r,l=!!s.prerelease.length;if(c.prerelease.length&&!l){if(!c.patch&&!c.minor)return`major`;if(c.compareMain(s)===0)return c.minor&&!c.patch?`minor`:`patch`}let u=l?`pre`:``;return r.major===i.major?r.minor===i.minor?r.patch===i.patch?`prerelease`:u+`patch`:u+`minor`:u+`major`},`diff`)}}),tr=E({"../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/functions/major.js"(e,t){var n=Yn();t.exports=x((e,t)=>new n(e,t).major,`major`)}}),nr=E({"../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/functions/minor.js"(e,t){var n=Yn();t.exports=x((e,t)=>new n(e,t).minor,`minor`)}}),rr=E({"../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/functions/patch.js"(e,t){var n=Yn();t.exports=x((e,t)=>new n(e,t).patch,`patch`)}}),ir=E({"../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/functions/prerelease.js"(e,t){var n=Xn();t.exports=x((e,t)=>{let r=n(e,t);return r&&r.prerelease.length?r.prerelease:null},`prerelease`)}}),ar=E({"../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/functions/compare.js"(e,t){var n=Yn();t.exports=x((e,t,r)=>new n(e,r).compare(new n(t,r)),`compare`)}}),or=E({"../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/functions/rcompare.js"(e,t){var n=ar();t.exports=x((e,t,r)=>n(t,e,r),`rcompare`)}}),sr=E({"../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/functions/compare-loose.js"(e,t){var n=ar();t.exports=x((e,t)=>n(e,t,!0),`compareLoose`)}}),cr=E({"../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/functions/compare-build.js"(e,t){var n=Yn();t.exports=x((e,t,r)=>{let i=new n(e,r),a=new n(t,r);return i.compare(a)||i.compareBuild(a)},`compareBuild`)}}),lr=E({"../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/functions/sort.js"(e,t){var n=cr();t.exports=x((e,t)=>e.sort((e,r)=>n(e,r,t)),`sort`)}}),ur=E({"../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/functions/rsort.js"(e,t){var n=cr();t.exports=x((e,t)=>e.sort((e,r)=>n(r,e,t)),`rsort`)}}),dr=E({"../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/functions/gt.js"(e,t){var n=ar();t.exports=x((e,t,r)=>n(e,t,r)>0,`gt`)}}),fr=E({"../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/functions/lt.js"(e,t){var n=ar();t.exports=x((e,t,r)=>n(e,t,r)<0,`lt`)}}),pr=E({"../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/functions/eq.js"(e,t){var n=ar();t.exports=x((e,t,r)=>n(e,t,r)===0,`eq`)}}),mr=E({"../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/functions/neq.js"(e,t){var n=ar();t.exports=x((e,t,r)=>n(e,t,r)!==0,`neq`)}}),hr=E({"../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/functions/gte.js"(e,t){var n=ar();t.exports=x((e,t,r)=>n(e,t,r)>=0,`gte`)}}),gr=E({"../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/functions/lte.js"(e,t){var n=ar();t.exports=x((e,t,r)=>n(e,t,r)<=0,`lte`)}}),_r=E({"../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/functions/cmp.js"(e,t){var n=pr(),r=mr(),i=dr(),a=hr(),o=fr(),s=gr();t.exports=x((e,t,c,l)=>{switch(t){case`===`:return typeof e==`object`&&(e=e.version),typeof c==`object`&&(c=c.version),e===c;case`!==`:return typeof e==`object`&&(e=e.version),typeof c==`object`&&(c=c.version),e!==c;case``:case`=`:case`==`:return n(e,c,l);case`!=`:return r(e,c,l);case`>`:return i(e,c,l);case`>=`:return a(e,c,l);case`<`:return o(e,c,l);case`<=`:return s(e,c,l);default:throw TypeError(`Invalid operator: ${t}`)}},`cmp`)}}),vr=E({"../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/functions/coerce.js"(e,t){var n=Yn(),r=Xn(),{safeRe:i,t:a}=Kn();t.exports=x((e,t)=>{if(e instanceof n)return e;if(typeof e==`number`&&(e=String(e)),typeof e!=`string`)return null;t||={};let o=null;if(!t.rtl)o=e.match(t.includePrerelease?i[a.COERCEFULL]:i[a.COERCE]);else{let n=t.includePrerelease?i[a.COERCERTLFULL]:i[a.COERCERTL],r;for(;(r=n.exec(e))&&(!o||o.index+o[0].length!==e.length);)(!o||r.index+r[0].length!==o.index+o[0].length)&&(o=r),n.lastIndex=r.index+r[1].length+r[2].length;n.lastIndex=-1}if(o===null)return null;let s=o[2];return r(`${s}.${o[3]||`0`}.${o[4]||`0`}${t.includePrerelease&&o[5]?`-${o[5]}`:``}${t.includePrerelease&&o[6]?`+${o[6]}`:``}`,t)},`coerce`)}}),yr=E({"../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/functions/truncate.js"(e,t){var n=Xn(),r=Wn(),i=Yn(),a=x((e,t,n)=>{if(!r.RELEASE_TYPES.includes(t))return null;let i=o(e,n);return i&&s(i,t)},`truncate`),o=x((e,t)=>n(e instanceof i?e.version:e,t),`cloneInputVersion`),s=x((e,t)=>{if(c(t))return e.version;switch(e.prerelease=[],t){case`major`:e.minor=0,e.patch=0;break;case`minor`:e.patch=0;break}return e.format()},`doTruncation`),c=x(e=>e.startsWith(`pre`),`isPrerelease`);t.exports=a}}),br=E({"../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/internal/lrucache.js"(e,t){t.exports=class{static{x(this,`LRUCache`)}constructor(){this.max=1e3,this.map=new Map}get(e){let t=this.map.get(e);if(t!==void 0)return this.map.delete(e),this.map.set(e,t),t}delete(e){return this.map.delete(e)}set(e,t){if(!this.delete(e)&&t!==void 0){if(this.map.size>=this.max){let e=this.map.keys().next().value;this.delete(e)}this.map.set(e,t)}return this}}}}),xr=E({"../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/classes/range.js"(e,t){var n=/\s+/g;t.exports=class e{static{x(this,`Range`)}constructor(t,r){if(r=i(r),t instanceof e)return t.loose===!!r.loose&&t.includePrerelease===!!r.includePrerelease?t:new e(t.raw,r);if(t instanceof a)return this.raw=t.value,this.set=[[t]],this.formatted=void 0,this;if(this.options=r,this.loose=!!r.loose,this.includePrerelease=!!r.includePrerelease,this.raw=t.trim().replace(n,` `),this.set=this.raw.split(`||`).map(e=>this.parseRange(e.trim())).filter(e=>e.length),!this.set.length)throw TypeError(`Invalid SemVer Range: ${this.raw}`);if(this.set.length>1){let e=this.set[0];if(this.set=this.set.filter(e=>!_(e[0])),this.set.length===0)this.set=[e];else if(this.set.length>1){for(let e of this.set)if(e.length===1&&v(e[0])){this.set=[e];break}}}this.formatted=void 0}get range(){if(this.formatted===void 0){this.formatted=``;for(let e=0;e<this.set.length;e++){e>0&&(this.formatted+=`||`);let t=this.set[e];for(let e=0;e<t.length;e++)e>0&&(this.formatted+=` `),this.formatted+=t[e].toString().trim()}}return this.formatted}format(){return this.range}toString(){return this.range}parseRange(e){e=e.replace(g,``);let t=((this.options.includePrerelease&&m)|(this.options.loose&&h))+`:`+e,n=r.get(t);if(n)return n;let i=this.options.loose,s=i?c[u.HYPHENRANGELOOSE]:c[u.HYPHENRANGE];e=e.replace(s,ne(this.options.includePrerelease)),o(`hyphen replace`,e),e=e.replace(c[u.COMPARATORTRIM],d),o(`comparator trim`,e),e=e.replace(c[u.TILDETRIM],f),o(`tilde trim`,e),e=e.replace(c[u.CARETTRIM],p),o(`caret trim`,e);let l=e.split(` `).map(e=>b(e,this.options)).join(` `).split(/\s+/).map(e=>te(e,this.options));i&&(l=l.filter(e=>(o(`loose invalid filter`,e,this.options),!!e.match(c[u.COMPARATORLOOSE])))),o(`range list`,l);let v=new Map,y=l.map(e=>new a(e,this.options));for(let e of y){if(_(e))return[e];v.set(e.value,e)}v.size>1&&v.has(``)&&v.delete(``);let x=[...v.values()];return r.set(t,x),x}intersects(t,n){if(!(t instanceof e))throw TypeError(`a Range is required`);return this.set.some(e=>y(e,n)&&t.set.some(t=>y(t,n)&&e.every(e=>t.every(t=>e.intersects(t,n)))))}test(e){if(!e)return!1;if(typeof e==`string`)try{e=new s(e,this.options)}catch{return!1}for(let t=0;t<this.set.length;t++)if(A(this.set[t],e,this.options))return!0;return!1}};var r=new(br()),i=qn(),a=Sr(),o=Gn(),s=Yn(),{safeRe:c,src:l,t:u,comparatorTrimReplace:d,tildeTrimReplace:f,caretTrimReplace:p}=Kn(),{FLAG_INCLUDE_PRERELEASE:m,FLAG_LOOSE:h}=Wn(),g=new RegExp(l[u.BUILD],`g`),_=x(e=>e.value===`<0.0.0-0`,`isNullSet`),v=x(e=>e.value===``,`isAny`),y=x((e,t)=>{let n=!0,r=e.slice(),i=r.pop();for(;n&&r.length;)n=r.every(e=>i.intersects(e,t)),i=r.pop();return n},`isSatisfiable`),b=x((e,t)=>(e=e.replace(c[u.BUILD],``),o(`comp`,e,t),e=E(e,t),o(`caret`,e),e=w(e,t),o(`tildes`,e),e=O(e,t),o(`xrange`,e),e=k(e,t),o(`stars`,e),e),`parseComparator`),S=x(e=>!e||e.toLowerCase()===`x`||e===`*`,`isX`),C=x((e,t,n)=>S(e)&&!S(t)||S(t)&&n&&!S(n),`invalidXRangeOrder`),w=x((e,t)=>e.trim().split(/\s+/).map(e=>T(e,t)).join(` `),`replaceTildes`),T=x((e,t)=>{let n=t.loose?c[u.TILDELOOSE]:c[u.TILDE],r=t.includePrerelease?`-0`:``;return e.replace(n,(t,n,i,a,s)=>{o(`tilde`,e,t,n,i,a,s);let c;return S(n)?c=``:S(i)?c=`>=${n}.0.0${r} <${+n+1}.0.0-0`:S(a)?c=`>=${n}.${i}.0${r} <${n}.${+i+1}.0-0`:s?(o(`replaceTilde pr`,s),c=`>=${n}.${i}.${a}-${s} <${n}.${+i+1}.0-0`):c=`>=${n}.${i}.${a} <${n}.${+i+1}.0-0`,o(`tilde return`,c),c})},`replaceTilde`),E=x((e,t)=>e.trim().split(/\s+/).map(e=>D(e,t)).join(` `),`replaceCarets`),D=x((e,t)=>{o(`caret`,e,t);let n=t.loose?c[u.CARETLOOSE]:c[u.CARET],r=t.includePrerelease?`-0`:``;return e.replace(n,(t,n,i,a,s)=>{o(`caret`,e,t,n,i,a,s);let c;return S(n)?c=``:S(i)?c=`>=${n}.0.0${r} <${+n+1}.0.0-0`:S(a)?c=n===`0`?`>=${n}.${i}.0${r} <${n}.${+i+1}.0-0`:`>=${n}.${i}.0${r} <${+n+1}.0.0-0`:s?(o(`replaceCaret pr`,s),c=n===`0`?i===`0`?`>=${n}.${i}.${a}-${s} <${n}.${i}.${+a+1}-0`:`>=${n}.${i}.${a}-${s} <${n}.${+i+1}.0-0`:`>=${n}.${i}.${a}-${s} <${+n+1}.0.0-0`):(o(`no pr`),c=n===`0`?i===`0`?`>=${n}.${i}.${a} <${n}.${i}.${+a+1}-0`:`>=${n}.${i}.${a} <${n}.${+i+1}.0-0`:`>=${n}.${i}.${a} <${+n+1}.0.0-0`),o(`caret return`,c),c})},`replaceCaret`),O=x((e,t)=>(o(`replaceXRanges`,e,t),e.split(/\s+/).map(e=>ee(e,t)).join(` `)),`replaceXRanges`),ee=x((e,t)=>{e=e.trim();let n=t.loose?c[u.XRANGELOOSE]:c[u.XRANGE];return e.replace(n,(n,r,i,a,s,c)=>{if(o(`xRange`,e,n,r,i,a,s,c),C(i,a,s))return e;let l=S(i),u=l||S(a),d=u||S(s),f=d;return r===`=`&&f&&(r=``),c=t.includePrerelease?`-0`:``,l?n=r===`>`||r===`<`?`<0.0.0-0`:`*`:r&&f?(u&&(a=0),s=0,r===`>`?(r=`>=`,u?(i=+i+1,a=0,s=0):(a=+a+1,s=0)):r===`<=`&&(r=`<`,u?i=+i+1:a=+a+1),r===`<`&&(c=`-0`),n=`${r+i}.${a}.${s}${c}`):u?n=`>=${i}.0.0${c} <${+i+1}.0.0-0`:d&&(n=`>=${i}.${a}.0${c} <${i}.${+a+1}.0-0`),o(`xRange return`,n),n})},`replaceXRange`),k=x((e,t)=>(o(`replaceStars`,e,t),e.trim().replace(c[u.STAR],``)),`replaceStars`),te=x((e,t)=>(o(`replaceGTE0`,e,t),e.trim().replace(c[t.includePrerelease?u.GTE0PRE:u.GTE0],``)),`replaceGTE0`),ne=x(e=>(t,n,r,i,a,o,s,c,l,u,d,f)=>(n=S(r)?``:S(i)?`>=${r}.0.0${e?`-0`:``}`:S(a)?`>=${r}.${i}.0${e?`-0`:``}`:o?`>=${n}`:`>=${n}${e?`-0`:``}`,c=S(l)?``:S(u)?`<${+l+1}.0.0-0`:S(d)?`<${l}.${+u+1}.0-0`:f?`<=${l}.${u}.${d}-${f}`:e?`<${l}.${u}.${+d+1}-0`:`<=${c}`,`${n} ${c}`.trim()),`hyphenReplace`),A=x((e,t,n)=>{for(let n=0;n<e.length;n++)if(!e[n].test(t))return!1;if(t.prerelease.length&&!n.includePrerelease){for(let n=0;n<e.length;n++)if(o(e[n].semver),e[n].semver!==a.ANY&&e[n].semver.prerelease.length>0){let r=e[n].semver;if(r.major===t.major&&r.minor===t.minor&&r.patch===t.patch)return!0}return!1}return!0},`testSet`)}}),Sr=E({"../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/classes/comparator.js"(e,t){var n=Symbol(`SemVer ANY`);t.exports=class e{static{x(this,`Comparator`)}static get ANY(){return n}constructor(t,i){if(i=r(i),t instanceof e){if(t.loose===!!i.loose)return t;t=t.value}t=t.trim().split(/\s+/).join(` `),s(`comparator`,t,i),this.options=i,this.loose=!!i.loose,this.parse(t),this.semver===n?this.value=``:this.value=this.operator+this.semver.version,s(`comp`,this)}parse(e){let t=this.options.loose?i[a.COMPARATORLOOSE]:i[a.COMPARATOR],r=e.match(t);if(!r)throw TypeError(`Invalid comparator: ${e}`);this.operator=r[1]===void 0?``:r[1],this.operator===`=`&&(this.operator=``),r[2]?this.semver=new c(r[2],this.options.loose):this.semver=n}toString(){return this.value}test(e){if(s(`Comparator.test`,e,this.options.loose),this.semver===n||e===n)return!0;if(typeof e==`string`)try{e=new c(e,this.options)}catch{return!1}return o(e,this.operator,this.semver,this.options)}intersects(t,n){if(!(t instanceof e))throw TypeError(`a Comparator is required`);return this.operator===``?this.value===``?!0:new l(t.value,n).test(this.value):t.operator===``?t.value===``?!0:new l(this.value,n).test(t.semver):(n=r(n),n.includePrerelease&&(this.value===`<0.0.0-0`||t.value===`<0.0.0-0`)||!n.includePrerelease&&(this.value.startsWith(`<0.0.0`)||t.value.startsWith(`<0.0.0`))?!1:!!(this.operator.startsWith(`>`)&&t.operator.startsWith(`>`)||this.operator.startsWith(`<`)&&t.operator.startsWith(`<`)||this.semver.version===t.semver.version&&this.operator.includes(`=`)&&t.operator.includes(`=`)||o(this.semver,`<`,t.semver,n)&&this.operator.startsWith(`>`)&&t.operator.startsWith(`<`)||o(this.semver,`>`,t.semver,n)&&this.operator.startsWith(`<`)&&t.operator.startsWith(`>`)))}};var r=qn(),{safeRe:i,t:a}=Kn(),o=_r(),s=Gn(),c=Yn(),l=xr()}}),Cr=E({"../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/functions/satisfies.js"(e,t){var n=xr();t.exports=x((e,t,r)=>{try{t=new n(t,r)}catch{return!1}return t.test(e)},`satisfies`)}}),wr=E({"../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/ranges/to-comparators.js"(e,t){var n=xr();t.exports=x((e,t)=>new n(e,t).set.map(e=>e.map(e=>e.value).join(` `).trim().split(` `)),`toComparators`)}}),Tr=E({"../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/ranges/max-satisfying.js"(e,t){var n=Yn(),r=xr();t.exports=x((e,t,i)=>{let a=null,o=null,s=null;try{s=new r(t,i)}catch{return null}return e.forEach(e=>{s.test(e)&&(!a||o.compare(e)===-1)&&(a=e,o=new n(a,i))}),a},`maxSatisfying`)}}),Er=E({"../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/ranges/min-satisfying.js"(e,t){var n=Yn(),r=xr();t.exports=x((e,t,i)=>{let a=null,o=null,s=null;try{s=new r(t,i)}catch{return null}return e.forEach(e=>{s.test(e)&&(!a||o.compare(e)===1)&&(a=e,o=new n(a,i))}),a},`minSatisfying`)}}),Dr=E({"../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/ranges/min-version.js"(e,t){var n=Yn(),r=xr(),i=dr();t.exports=x((e,t)=>{e=new r(e,t);let a=new n(`0.0.0`);if(e.test(a)||(a=new n(`0.0.0-0`),e.test(a)))return a;a=null;for(let t=0;t<e.set.length;++t){let r=e.set[t],o=null;r.forEach(e=>{let t=new n(e.semver.version);switch(e.operator){case`>`:t.prerelease.length===0?t.patch++:t.prerelease.push(0),t.raw=t.format();case``:case`>=`:(!o||i(t,o))&&(o=t);break;case`<`:case`<=`:break;default:throw Error(`Unexpected operation: ${e.operator}`)}}),o&&(!a||i(a,o))&&(a=o)}return a&&e.test(a)?a:null},`minVersion`)}}),Or=E({"../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/ranges/valid.js"(e,t){var n=xr();t.exports=x((e,t)=>{try{return new n(e,t).range||`*`}catch{return null}},`validRange`)}}),kr=E({"../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/ranges/outside.js"(e,t){var n=Yn(),r=Sr(),{ANY:i}=r,a=xr(),o=Cr(),s=dr(),c=fr(),l=gr(),u=hr();t.exports=x((e,t,d,f)=>{e=new n(e,f),t=new a(t,f);let p,m,h,g,_;switch(d){case`>`:p=s,m=l,h=c,g=`>`,_=`>=`;break;case`<`:p=c,m=u,h=s,g=`<`,_=`<=`;break;default:throw TypeError(`Must provide a hilo val of "<" or ">"`)}if(o(e,t,f))return!1;for(let n=0;n<t.set.length;++n){let a=t.set[n],o=null,s=null;if(a.forEach(e=>{e.semver===i&&(e=new r(`>=0.0.0`)),o||=e,s||=e,p(e.semver,o.semver,f)?o=e:h(e.semver,s.semver,f)&&(s=e)}),o.operator===g||o.operator===_||(!s.operator||s.operator===g)&&m(e,s.semver)||s.operator===_&&h(e,s.semver))return!1}return!0},`outside`)}}),Ar=E({"../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/ranges/gtr.js"(e,t){var n=kr();t.exports=x((e,t,r)=>n(e,t,`>`,r),`gtr`)}}),jr=E({"../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/ranges/ltr.js"(e,t){var n=kr();t.exports=x((e,t,r)=>n(e,t,`<`,r),`ltr`)}}),Mr=E({"../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/ranges/intersects.js"(e,t){var n=xr();t.exports=x((e,t,r)=>(e=new n(e,r),t=new n(t,r),e.intersects(t,r)),`intersects`)}}),Nr=E({"../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/ranges/simplify.js"(e,t){var n=Cr(),r=ar();t.exports=(e,t,i)=>{let a=[],o=null,s=null,c=e.sort((e,t)=>r(e,t,i));for(let e of c)n(e,t,i)?(s=e,o||=e):(s&&a.push([o,s]),s=null,o=null);o&&a.push([o,null]);let l=[];for(let[e,t]of a)e===t?l.push(e):!t&&e===c[0]?l.push(`*`):t?e===c[0]?l.push(`<=${t}`):l.push(`${e} - ${t}`):l.push(`>=${e}`);let u=l.join(` || `),d=typeof t.raw==`string`?t.raw:String(t);return u.length<d.length?u:t}}}),Pr=E({"../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/ranges/subset.js"(e,t){var n=xr(),r=Sr(),{ANY:i}=r,a=Cr(),o=ar(),s=x((e,t,r={})=>{if(e===t)return!0;e=new n(e,r),t=new n(t,r);let i=!1;OUTER:for(let n of e.set){for(let e of t.set){let t=u(n,e,r);if(i||=t!==null,t)continue OUTER}if(i)return!1}return!0},`subset`),c=[new r(`>=0.0.0-0`)],l=[new r(`>=0.0.0`)],u=x((e,t,n)=>{if(e===t)return!0;if(e.length===1&&e[0].semver===i){if(t.length===1&&t[0].semver===i)return!0;e=n.includePrerelease?c:l}if(t.length===1&&t[0].semver===i){if(n.includePrerelease)return!0;t=l}let r=new Set,s,u;for(let t of e)t.operator===`>`||t.operator===`>=`?s=d(s,t,n):t.operator===`<`||t.operator===`<=`?u=f(u,t,n):r.add(t.semver);if(r.size>1)return null;let p;if(s&&u&&(p=o(s.semver,u.semver,n),p>0||p===0&&(s.operator!==`>=`||u.operator!==`<=`)))return null;for(let e of r){if(s&&!a(e,String(s),n)||u&&!a(e,String(u),n))return null;for(let r of t)if(!a(e,String(r),n))return!1;return!0}let m,h,g,_,v=u&&!n.includePrerelease&&u.semver.prerelease.length?u.semver:!1,y=s&&!n.includePrerelease&&s.semver.prerelease.length?s.semver:!1;v&&v.prerelease.length===1&&u.operator===`<`&&v.prerelease[0]===0&&(v=!1);for(let e of t){if(_=_||e.operator===`>`||e.operator===`>=`,g=g||e.operator===`<`||e.operator===`<=`,s){if(y&&e.semver.prerelease&&e.semver.prerelease.length&&e.semver.major===y.major&&e.semver.minor===y.minor&&e.semver.patch===y.patch&&(y=!1),e.operator===`>`||e.operator===`>=`){if(m=d(s,e,n),m===e&&m!==s)return!1}else if(s.operator===`>=`&&!e.test(s.semver))return!1}if(u){if(v&&e.semver.prerelease&&e.semver.prerelease.length&&e.semver.major===v.major&&e.semver.minor===v.minor&&e.semver.patch===v.patch&&(v=!1),e.operator===`<`||e.operator===`<=`){if(h=f(u,e,n),h===e&&h!==u)return!1}else if(u.operator===`<=`&&!e.test(u.semver))return!1}if(!e.operator&&(u||s)&&p!==0)return!1}return!(s&&g&&!u&&p!==0||u&&_&&!s&&p!==0||y||v)},`simpleSubset`),d=x((e,t,n)=>{if(!e)return t;let r=o(e.semver,t.semver,n);return r>0?e:r<0||t.operator===`>`&&e.operator===`>=`?t:e},`higherGT`),f=x((e,t,n)=>{if(!e)return t;let r=o(e.semver,t.semver,n);return r<0?e:r>0||t.operator===`<`&&e.operator===`<=`?t:e},`lowerLT`);t.exports=s}}),Fr=E({"../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/index.js"(e,t){var n=Kn(),r=Wn(),i=Yn(),a=Jn();t.exports={parse:Xn(),valid:Zn(),clean:Qn(),inc:$n(),diff:er(),major:tr(),minor:nr(),patch:rr(),prerelease:ir(),compare:ar(),rcompare:or(),compareLoose:sr(),compareBuild:cr(),sort:lr(),rsort:ur(),gt:dr(),lt:fr(),eq:pr(),neq:mr(),gte:hr(),lte:gr(),cmp:_r(),coerce:vr(),truncate:yr(),Comparator:Sr(),Range:xr(),satisfies:Cr(),toComparators:wr(),maxSatisfying:Tr(),minSatisfying:Er(),minVersion:Dr(),validRange:Or(),outside:kr(),gtr:Ar(),ltr:jr(),intersects:Mr(),simplifyRange:Nr(),subset:Pr(),SemVer:i,re:n.re,src:n.src,tokens:n.t,SEMVER_SPEC_VERSION:r.SEMVER_SPEC_VERSION,RELEASE_TYPES:r.RELEASE_TYPES,compareIdentifiers:a.compareIdentifiers,rcompareIdentifiers:a.rcompareIdentifiers}}}),Y=E({"../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/nodes/identity.js"(e){var t=Symbol.for(`yaml.alias`),n=Symbol.for(`yaml.document`),r=Symbol.for(`yaml.map`),i=Symbol.for(`yaml.pair`),a=Symbol.for(`yaml.scalar`),o=Symbol.for(`yaml.seq`),s=Symbol.for(`yaml.node.type`),c=x(e=>!!e&&typeof e==`object`&&e[s]===t,`isAlias`),l=x(e=>!!e&&typeof e==`object`&&e[s]===n,`isDocument`),u=x(e=>!!e&&typeof e==`object`&&e[s]===r,`isMap`),d=x(e=>!!e&&typeof e==`object`&&e[s]===i,`isPair`),f=x(e=>!!e&&typeof e==`object`&&e[s]===a,`isScalar`),p=x(e=>!!e&&typeof e==`object`&&e[s]===o,`isSeq`);function m(e){if(e&&typeof e==`object`)switch(e[s]){case r:case o:return!0}return!1}x(m,`isCollection`);function h(e){if(e&&typeof e==`object`)switch(e[s]){case t:case r:case a:case o:return!0}return!1}x(h,`isNode`);var g=x(e=>(f(e)||m(e))&&!!e.anchor,`hasAnchor`);e.ALIAS=t,e.DOC=n,e.MAP=r,e.NODE_TYPE=s,e.PAIR=i,e.SCALAR=a,e.SEQ=o,e.hasAnchor=g,e.isAlias=c,e.isCollection=m,e.isDocument=l,e.isMap=u,e.isNode=h,e.isPair=d,e.isScalar=f,e.isSeq=p}}),Ir=E({"../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/visit.js"(e){var t=Y(),n=Symbol(`break visit`),r=Symbol(`skip children`),i=Symbol(`remove node`);function a(e,n){let r=l(n);t.isDocument(e)?o(null,e.contents,r,Object.freeze([e]))===i&&(e.contents=null):o(null,e,r,Object.freeze([]))}x(a,`visit`),a.BREAK=n,a.SKIP=r,a.REMOVE=i;function o(e,r,a,s){let c=u(e,r,a,s);if(t.isNode(c)||t.isPair(c))return d(e,s,c),o(e,c,a,s);if(typeof c!=`symbol`){if(t.isCollection(r)){s=Object.freeze(s.concat(r));for(let e=0;e<r.items.length;++e){let t=o(e,r.items[e],a,s);if(typeof t==`number`)e=t-1;else if(t===n)return n;else t===i&&(r.items.splice(e,1),--e)}}else if(t.isPair(r)){s=Object.freeze(s.concat(r));let e=o(`key`,r.key,a,s);if(e===n)return n;e===i&&(r.key=null);let t=o(`value`,r.value,a,s);if(t===n)return n;t===i&&(r.value=null)}}return c}x(o,`visit_`);async function s(e,n){let r=l(n);t.isDocument(e)?await c(null,e.contents,r,Object.freeze([e]))===i&&(e.contents=null):await c(null,e,r,Object.freeze([]))}x(s,`visitAsync`),s.BREAK=n,s.SKIP=r,s.REMOVE=i;async function c(e,r,a,o){let s=await u(e,r,a,o);if(t.isNode(s)||t.isPair(s))return d(e,o,s),c(e,s,a,o);if(typeof s!=`symbol`){if(t.isCollection(r)){o=Object.freeze(o.concat(r));for(let e=0;e<r.items.length;++e){let t=await c(e,r.items[e],a,o);if(typeof t==`number`)e=t-1;else if(t===n)return n;else t===i&&(r.items.splice(e,1),--e)}}else if(t.isPair(r)){o=Object.freeze(o.concat(r));let e=await c(`key`,r.key,a,o);if(e===n)return n;e===i&&(r.key=null);let t=await c(`value`,r.value,a,o);if(t===n)return n;t===i&&(r.value=null)}}return s}x(c,`visitAsync_`);function l(e){return typeof e==`object`&&(e.Collection||e.Node||e.Value)?Object.assign({Alias:e.Node,Map:e.Node,Scalar:e.Node,Seq:e.Node},e.Value&&{Map:e.Value,Scalar:e.Value,Seq:e.Value},e.Collection&&{Map:e.Collection,Seq:e.Collection},e):e}x(l,`initVisitor`);function u(e,n,r,i){if(typeof r==`function`)return r(e,n,i);if(t.isMap(n))return r.Map?.(e,n,i);if(t.isSeq(n))return r.Seq?.(e,n,i);if(t.isPair(n))return r.Pair?.(e,n,i);if(t.isScalar(n))return r.Scalar?.(e,n,i);if(t.isAlias(n))return r.Alias?.(e,n,i)}x(u,`callVisitor`);function d(e,n,r){let i=n[n.length-1];if(t.isCollection(i))i.items[e]=r;else if(t.isPair(i))e===`key`?i.key=r:i.value=r;else if(t.isDocument(i))i.contents=r;else{let e=t.isAlias(i)?`alias`:`scalar`;throw Error(`Cannot replace node with ${e} parent`)}}x(d,`replaceNode`),e.visit=a,e.visitAsync=s}}),Lr=E({"../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/doc/directives.js"(e){var t=Y(),n=Ir(),r={"!":`%21`,",":`%2C`,"[":`%5B`,"]":`%5D`,"{":`%7B`,"}":`%7D`},i=x(e=>e.replace(/[!,[\]{}]/g,e=>r[e]),`escapeTagName`),a=class e{static{x(this,`Directives`)}constructor(t,n){this.docStart=null,this.docEnd=!1,this.yaml=Object.assign({},e.defaultYaml,t),this.tags=Object.assign({},e.defaultTags,n)}clone(){let t=new e(this.yaml,this.tags);return t.docStart=this.docStart,t}atDocument(){let t=new e(this.yaml,this.tags);switch(this.yaml.version){case`1.1`:this.atNextDocument=!0;break;case`1.2`:this.atNextDocument=!1,this.yaml={explicit:e.defaultYaml.explicit,version:`1.2`},this.tags=Object.assign({},e.defaultTags);break}return t}add(t,n){this.atNextDocument&&=(this.yaml={explicit:e.defaultYaml.explicit,version:`1.1`},this.tags=Object.assign({},e.defaultTags),!1);let r=t.trim().split(/[ \t]+/),i=r.shift();switch(i){case`%TAG`:{if(r.length!==2&&(n(0,`%TAG directive should contain exactly two parts`),r.length<2))return!1;let[e,t]=r;return this.tags[e]=t,!0}case`%YAML`:{if(this.yaml.explicit=!0,r.length!==1)return n(0,`%YAML directive should contain exactly one part`),!1;let[e]=r;if(e===`1.1`||e===`1.2`)return this.yaml.version=e,!0;{let t=/^\d+\.\d+$/.test(e);return n(6,`Unsupported YAML version ${e}`,t),!1}}default:return n(0,`Unknown directive ${i}`,!0),!1}}tagName(e,t){if(e===`!`)return`!`;if(e[0]!==`!`)return t(`Not a valid tag: ${e}`),null;if(e[1]===`<`){let n=e.slice(2,-1);return n===`!`||n===`!!`?(t(`Verbatim tags aren't resolved, so ${e} is invalid.`),null):(e[e.length-1]!==`>`&&t(`Verbatim tags must end with a >`),n)}let[,n,r]=e.match(/^(.*!)([^!]*)$/s);r||t(`The ${e} tag has no suffix`);let i=this.tags[n];if(i)try{return i+decodeURIComponent(r)}catch(e){return t(String(e)),null}return n===`!`?e:(t(`Could not resolve tag: ${e}`),null)}tagString(e){for(let[t,n]of Object.entries(this.tags))if(e.startsWith(n))return t+i(e.substring(n.length));return e[0]===`!`?e:`!<${e}>`}toString(e){let r=this.yaml.explicit?[`%YAML ${this.yaml.version||`1.2`}`]:[],i=Object.entries(this.tags),a;if(e&&i.length>0&&t.isNode(e.contents)){let r={};n.visit(e.contents,(e,n)=>{t.isNode(n)&&n.tag&&(r[n.tag]=!0)}),a=Object.keys(r)}else a=[];for(let[t,n]of i)t===`!!`&&n===`tag:yaml.org,2002:`||(!e||a.some(e=>e.startsWith(n)))&&r.push(`%TAG ${t} ${n}`);return r.join(`
109
+ `)}};a.defaultYaml={explicit:!1,version:`1.2`},a.defaultTags={"!!":`tag:yaml.org,2002:`},e.Directives=a}}),Rr=E({"../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/doc/anchors.js"(e){var t=Y(),n=Ir();function r(e){if(/[\x00-\x19\s,[\]{}]/.test(e)){let t=`Anchor must not contain whitespace or control characters: ${JSON.stringify(e)}`;throw Error(t)}return!0}x(r,`anchorIsValid`);function i(e){let t=new Set;return n.visit(e,{Value(e,n){n.anchor&&t.add(n.anchor)}}),t}x(i,`anchorNames`);function a(e,t){for(let n=1;;++n){let r=`${e}${n}`;if(!t.has(r))return r}}x(a,`findNewAnchor`);function o(e,n){let r=[],o=new Map,s=null;return{onAnchor:x(t=>{r.push(t),s??=i(e);let o=a(n,s);return s.add(o),o},`onAnchor`),setAnchors:x(()=>{for(let e of r){let n=o.get(e);if(typeof n==`object`&&n.anchor&&(t.isScalar(n.node)||t.isCollection(n.node)))n.node.anchor=n.anchor;else{let t=Error(`Failed to resolve repeated object (this should not happen)`);throw t.source=e,t}}},`setAnchors`),sourceObjects:o}}x(o,`createNodeAnchors`),e.anchorIsValid=r,e.anchorNames=i,e.createNodeAnchors=o,e.findNewAnchor=a}}),zr=E({"../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/doc/applyReviver.js"(e){function t(e,n,r,i){if(i&&typeof i==`object`)if(Array.isArray(i))for(let n=0,r=i.length;n<r;++n){let r=i[n],a=t(e,i,String(n),r);a===void 0?delete i[n]:a!==r&&(i[n]=a)}else if(i instanceof Map)for(let n of Array.from(i.keys())){let r=i.get(n),a=t(e,i,n,r);a===void 0?i.delete(n):a!==r&&i.set(n,a)}else if(i instanceof Set)for(let n of Array.from(i)){let r=t(e,i,n,n);r===void 0?i.delete(n):r!==n&&(i.delete(n),i.add(r))}else for(let[n,r]of Object.entries(i)){let a=t(e,i,n,r);a===void 0?delete i[n]:a!==r&&(i[n]=a)}return e.call(n,r,i)}x(t,`applyReviver`),e.applyReviver=t}}),Br=E({"../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/nodes/toJS.js"(e){var t=Y();function n(e,r,i){if(Array.isArray(e))return e.map((e,t)=>n(e,String(t),i));if(e&&typeof e.toJSON==`function`){if(!i||!t.hasAnchor(e))return e.toJSON(r,i);let n={aliasCount:0,count:1,res:void 0};i.anchors.set(e,n),i.onCreate=e=>{n.res=e,delete i.onCreate};let a=e.toJSON(r,i);return i.onCreate&&i.onCreate(a),a}return typeof e==`bigint`&&!i?.keep?Number(e):e}x(n,`toJS`),e.toJS=n}}),Vr=E({"../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/nodes/Node.js"(e){var t=zr(),n=Y(),r=Br();e.NodeBase=class{static{x(this,`NodeBase`)}constructor(e){Object.defineProperty(this,n.NODE_TYPE,{value:e})}clone(){let e=Object.create(Object.getPrototypeOf(this),Object.getOwnPropertyDescriptors(this));return this.range&&(e.range=this.range.slice()),e}toJS(e,{mapAsMap:i,maxAliasCount:a,onAnchor:o,reviver:s}={}){if(!n.isDocument(e))throw TypeError(`A document argument is required`);let c={anchors:new Map,doc:e,keep:!0,mapAsMap:i===!0,mapKeyWarned:!1,maxAliasCount:typeof a==`number`?a:100},l=r.toJS(this,``,c);if(typeof o==`function`)for(let{count:e,res:t}of c.anchors.values())o(t,e);return typeof s==`function`?t.applyReviver(s,{"":l},``,l):l}}}}),Hr=E({"../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/nodes/Alias.js"(e){var t=Rr(),n=Ir(),r=Y(),i=Vr(),a=Br(),o=class extends i.NodeBase{static{x(this,`Alias`)}constructor(e){super(r.ALIAS),this.source=e,Object.defineProperty(this,`tag`,{set(){throw Error(`Alias nodes cannot have tags`)}})}resolve(e,t){if(t?.maxAliasCount===0)throw ReferenceError(`Alias resolution is disabled`);let i;t?.aliasResolveCache?i=t.aliasResolveCache:(i=[],n.visit(e,{Node:x((e,t)=>{(r.isAlias(t)||r.hasAnchor(t))&&i.push(t)},`Node`)}),t&&(t.aliasResolveCache=i));let a;for(let e of i){if(e===this)break;e.anchor===this.source&&(a=e)}return a}toJSON(e,t){if(!t)return{source:this.source};let{anchors:n,doc:r,maxAliasCount:i}=t,o=this.resolve(r,t);if(!o){let e=`Unresolved alias (the anchor must be set before the alias): ${this.source}`;throw ReferenceError(e)}let c=n.get(o);if(c||=(a.toJS(o,null,t),n.get(o)),c?.res===void 0)throw ReferenceError(`This should not happen: Alias anchor was not resolved?`);if(i>=0&&(c.count+=1,c.aliasCount===0&&(c.aliasCount=s(r,o,n)),c.count*c.aliasCount>i))throw ReferenceError(`Excessive alias count indicates a resource exhaustion attack`);return c.res}toString(e,n,r){let i=`*${this.source}`;if(e){if(t.anchorIsValid(this.source),e.options.verifyAliasOrder&&!e.anchors.has(this.source)){let e=`Unresolved alias (the anchor must be set before the alias): ${this.source}`;throw Error(e)}if(e.implicitKey)return`${i} `}return i}};function s(e,t,n){if(r.isAlias(t)){let r=t.resolve(e),i=n&&r&&n.get(r);return i?i.count*i.aliasCount:0}else if(r.isCollection(t)){let r=0;for(let i of t.items){let t=s(e,i,n);t>r&&(r=t)}return r}else if(r.isPair(t)){let r=s(e,t.key,n),i=s(e,t.value,n);return Math.max(r,i)}return 1}x(s,`getAliasCount`),e.Alias=o}}),Ur=E({"../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/nodes/Scalar.js"(e){var t=Y(),n=Vr(),r=Br(),i=x(e=>!e||typeof e!=`function`&&typeof e!=`object`,`isScalarValue`),a=class extends n.NodeBase{static{x(this,`Scalar`)}constructor(e){super(t.SCALAR),this.value=e}toJSON(e,t){return t?.keep?this.value:r.toJS(this.value,e,t)}toString(){return String(this.value)}};a.BLOCK_FOLDED=`BLOCK_FOLDED`,a.BLOCK_LITERAL=`BLOCK_LITERAL`,a.PLAIN=`PLAIN`,a.QUOTE_DOUBLE=`QUOTE_DOUBLE`,a.QUOTE_SINGLE=`QUOTE_SINGLE`,e.Scalar=a,e.isScalarValue=i}}),Wr=E({"../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/doc/createNode.js"(e){var t=Hr(),n=Y(),r=Ur(),i=`tag:yaml.org,2002:`;function a(e,t,n){if(t){let e=n.filter(e=>e.tag===t),r=e.find(e=>!e.format)??e[0];if(!r)throw Error(`Tag ${t} not found`);return r}return n.find(t=>t.identify?.(e)&&!t.format)}x(a,`findTagObject`);function o(e,o,s){if(n.isDocument(e)&&(e=e.contents),n.isNode(e))return e;if(n.isPair(e)){let t=s.schema[n.MAP].createNode?.(s.schema,null,s);return t.items.push(e),t}(e instanceof String||e instanceof Number||e instanceof Boolean||typeof BigInt<`u`&&e instanceof BigInt)&&(e=e.valueOf());let{aliasDuplicateObjects:c,onAnchor:l,onTagObj:u,schema:d,sourceObjects:f}=s,p;if(c&&e&&typeof e==`object`){if(p=f.get(e),p)return p.anchor??=l(e),new t.Alias(p.anchor);p={anchor:null,node:null},f.set(e,p)}o?.startsWith(`!!`)&&(o=i+o.slice(2));let m=a(e,o,d.tags);if(!m){if(e&&typeof e.toJSON==`function`&&(e=e.toJSON()),!e||typeof e!=`object`){let t=new r.Scalar(e);return p&&(p.node=t),t}m=e instanceof Map?d[n.MAP]:Symbol.iterator in Object(e)?d[n.SEQ]:d[n.MAP]}u&&(u(m),delete s.onTagObj);let h=m?.createNode?m.createNode(s.schema,e,s):typeof m?.nodeClass?.from==`function`?m.nodeClass.from(s.schema,e,s):new r.Scalar(e);return o?h.tag=o:m.default||(h.tag=m.tag),p&&(p.node=h),h}x(o,`createNode`),e.createNode=o}}),Gr=E({"../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/nodes/Collection.js"(e){var t=Wr(),n=Y(),r=Vr();function i(e,n,r){let i=r;for(let e=n.length-1;e>=0;--e){let t=n[e];if(typeof t==`number`&&Number.isInteger(t)&&t>=0){let e=[];e[t]=i,i=e}else i=new Map([[t,i]])}return t.createNode(i,void 0,{aliasDuplicateObjects:!1,keepUndefined:!1,onAnchor:x(()=>{throw Error(`This should not happen, please report a bug.`)},`onAnchor`),schema:e,sourceObjects:new Map})}x(i,`collectionFromPath`);var a=x(e=>e==null||typeof e==`object`&&!!e[Symbol.iterator]().next().done,`isEmptyPath`);e.Collection=class extends r.NodeBase{static{x(this,`Collection`)}constructor(e,t){super(e),Object.defineProperty(this,`schema`,{value:t,configurable:!0,enumerable:!1,writable:!0})}clone(e){let t=Object.create(Object.getPrototypeOf(this),Object.getOwnPropertyDescriptors(this));return e&&(t.schema=e),t.items=t.items.map(t=>n.isNode(t)||n.isPair(t)?t.clone(e):t),this.range&&(t.range=this.range.slice()),t}addIn(e,t){if(a(e))this.add(t);else{let[r,...a]=e,o=this.get(r,!0);if(n.isCollection(o))o.addIn(a,t);else if(o===void 0&&this.schema)this.set(r,i(this.schema,a,t));else throw Error(`Expected YAML collection at ${r}. Remaining path: ${a}`)}}deleteIn(e){let[t,...r]=e;if(r.length===0)return this.delete(t);let i=this.get(t,!0);if(n.isCollection(i))return i.deleteIn(r);throw Error(`Expected YAML collection at ${t}. Remaining path: ${r}`)}getIn(e,t){let[r,...i]=e,a=this.get(r,!0);return i.length===0?!t&&n.isScalar(a)?a.value:a:n.isCollection(a)?a.getIn(i,t):void 0}hasAllNullValues(e){return this.items.every(t=>{if(!n.isPair(t))return!1;let r=t.value;return r==null||e&&n.isScalar(r)&&r.value==null&&!r.commentBefore&&!r.comment&&!r.tag})}hasIn(e){let[t,...r]=e;if(r.length===0)return this.has(t);let i=this.get(t,!0);return n.isCollection(i)?i.hasIn(r):!1}setIn(e,t){let[r,...a]=e;if(a.length===0)this.set(r,t);else{let e=this.get(r,!0);if(n.isCollection(e))e.setIn(a,t);else if(e===void 0&&this.schema)this.set(r,i(this.schema,a,t));else throw Error(`Expected YAML collection at ${r}. Remaining path: ${a}`)}}},e.collectionFromPath=i,e.isEmptyPath=a}}),Kr=E({"../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/stringify/stringifyComment.js"(e){var t=x(e=>e.replace(/^(?!$)(?: $)?/gm,`#`),`stringifyComment`);function n(e,t){return/^\n+$/.test(e)?e.substring(1):t?e.replace(/^(?! *$)/gm,t):e}x(n,`indentComment`);var r=x((e,t,r)=>e.endsWith(`
110
110
  `)?n(r,t):r.includes(`
111
111
  `)?`
112
- `+n(r,t):(e.endsWith(` `)?``:` `)+r,`lineComment`);e.indentComment=n,e.lineComment=r,e.stringifyComment=t}}),Kr=E({"../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/stringify/foldFlowLines.js"(e){var t=`flow`,n=`block`,r=`quoted`;function i(e,t,i=`flow`,{indentAtStart:o,lineWidth:s=80,minContentWidth:c=20,onFold:l,onOverflow:u}={}){if(!s||s<0)return e;s<c&&(c=0);let d=Math.max(1+c,1+s-t.length);if(e.length<=d)return e;let f=[],p={},m=s-t.length;typeof o==`number`&&(o>s-Math.max(2,c)?f.push(0):m=s-o);let h,g,_=!1,v=-1,y=-1,b=-1;i===n&&(v=a(e,v,t.length),v!==-1&&(m=v+d));for(let o;o=e[v+=1];){if(i===r&&o===`\\`){switch(y=v,e[v+1]){case`x`:v+=3;break;case`u`:v+=5;break;case`U`:v+=9;break;default:v+=1}b=v}if(o===`
112
+ `+n(r,t):(e.endsWith(` `)?``:` `)+r,`lineComment`);e.indentComment=n,e.lineComment=r,e.stringifyComment=t}}),qr=E({"../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/stringify/foldFlowLines.js"(e){var t=`flow`,n=`block`,r=`quoted`;function i(e,t,i=`flow`,{indentAtStart:o,lineWidth:s=80,minContentWidth:c=20,onFold:l,onOverflow:u}={}){if(!s||s<0)return e;s<c&&(c=0);let d=Math.max(1+c,1+s-t.length);if(e.length<=d)return e;let f=[],p={},m=s-t.length;typeof o==`number`&&(o>s-Math.max(2,c)?f.push(0):m=s-o);let h,g,_=!1,v=-1,y=-1,b=-1;i===n&&(v=a(e,v,t.length),v!==-1&&(m=v+d));for(let o;o=e[v+=1];){if(i===r&&o===`\\`){switch(y=v,e[v+1]){case`x`:v+=3;break;case`u`:v+=5;break;case`U`:v+=9;break;default:v+=1}b=v}if(o===`
113
113
  `)i===n&&(v=a(e,v,t.length)),m=v+t.length+d,h=void 0;else{if(o===` `&&g&&g!==` `&&g!==`
114
114
  `&&g!==` `){let t=e[v+1];t&&t!==` `&&t!==`
115
115
  `&&t!==` `&&(h=v)}if(v>=m)if(h)f.push(h),m=h+d,h=void 0;else if(i===r){for(;g===` `||g===` `;)g=o,o=e[v+=1],_=!0;let t=v>b+1?v-2:y-1;if(p[t])return e;f.push(t),p[t]=!0,m=t+d,h=void 0}else _=!0}g=o}if(_&&u&&u(),f.length===0)return e;l&&l();let x=e.slice(0,f[0]);for(let n=0;n<f.length;++n){let a=f[n],o=f[n+1]||e.length;a===0?x=`
116
116
  ${t}${e.slice(0,o)}`:(i===r&&p[a]&&(x+=`${e[a]}\\`),x+=`
117
117
  ${t}${e.slice(a+1,o)}`)}return x}x(i,`foldFlowLines`);function a(e,t,n){let r=t,i=t+1,a=e[i];for(;a===` `||a===` `;)if(t<i+n)a=e[++t];else{do a=e[++t];while(a&&a!==`
118
- `);r=t,i=t+1,a=e[i]}return r}x(a,`consumeMoreIndentedLines`),e.FOLD_BLOCK=n,e.FOLD_FLOW=t,e.FOLD_QUOTED=r,e.foldFlowLines=i}}),qr=E({"../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/stringify/stringifyString.js"(e){var t=Hr(),n=Kr(),r=x((e,t)=>({indentAtStart:t?e.indent.length:e.indentAtStart,lineWidth:e.options.lineWidth,minContentWidth:e.options.minContentWidth}),`getFoldOptions`),i=x(e=>/^(%|---|\.\.\.)/m.test(e),`containsDocumentMarker`);function a(e,t,n){if(!t||t<0)return!1;let r=t-n,i=e.length;if(i<=r)return!1;for(let t=0,n=0;t<i;++t)if(e[t]===`
118
+ `);r=t,i=t+1,a=e[i]}return r}x(a,`consumeMoreIndentedLines`),e.FOLD_BLOCK=n,e.FOLD_FLOW=t,e.FOLD_QUOTED=r,e.foldFlowLines=i}}),Jr=E({"../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/stringify/stringifyString.js"(e){var t=Ur(),n=qr(),r=x((e,t)=>({indentAtStart:t?e.indent.length:e.indentAtStart,lineWidth:e.options.lineWidth,minContentWidth:e.options.minContentWidth}),`getFoldOptions`),i=x(e=>/^(%|---|\.\.\.)/m.test(e),`containsDocumentMarker`);function a(e,t,n){if(!t||t<0)return!1;let r=t-n,i=e.length;if(i<=r)return!1;for(let t=0,n=0;t<i;++t)if(e[t]===`
119
119
  `){if(t-n>r)return!0;if(n=t+1,i-n<=r)return!1}return!0}x(a,`lineLengthOverLimit`);function o(e,t){let a=JSON.stringify(e);if(t.options.doubleQuotedAsJSON)return a;let{implicitKey:o}=t,s=t.options.doubleQuotedMinMultiLineLength,c=t.indent||(i(e)?` `:``),l=``,u=0;for(let e=0,t=a[e];t;t=a[++e])if(t===` `&&a[e+1]===`\\`&&a[e+2]===`n`&&(l+=a.slice(u,e)+`\\ `,e+=1,u=e,t=`\\`),t===`\\`)switch(a[e+1]){case`u`:{l+=a.slice(u,e);let t=a.substr(e+2,4);switch(t){case`0000`:l+=`\\0`;break;case`0007`:l+=`\\a`;break;case`000b`:l+=`\\v`;break;case`001b`:l+=`\\e`;break;case`0085`:l+=`\\N`;break;case`00a0`:l+=`\\_`;break;case`2028`:l+=`\\L`;break;case`2029`:l+=`\\P`;break;default:t.substr(0,2)===`00`?l+=`\\x`+t.substr(2):l+=a.substr(e,6)}e+=5,u=e+1}break;case`n`:if(o||a[e+2]===`"`||a.length<s)e+=1;else{for(l+=a.slice(u,e)+`
120
120
 
121
121
  `;a[e+2]===`\\`&&a[e+3]===`n`&&a[e+4]!==`"`;)l+=`
@@ -137,8 +137,8 @@ ${g}${T}${s}${b}`}x(u,`blockString`);function d(e,a,o,s){let{type:l,value:d}=e,{
137
137
  `)||g&&/[[\]{},]/.test(d))return c(d,a);if(/^[\n\t ,[\]{}#&*!|>'"%@`]|^[?-]$|^[?-][ \t]|[\n:][ \t]|[ \t]\n|[\n\t ]#|[\n\t :]$/.test(d))return p||g||!d.includes(`
138
138
  `)?c(d,a):u(e,a,o,s);if(!p&&!g&&l!==t.Scalar.PLAIN&&d.includes(`
139
139
  `))return u(e,a,o,s);if(i(d)){if(m===``)return a.forceBlockIndent=!0,u(e,a,o,s);if(p&&m===h)return c(d,a)}let _=d.replace(/\n+/g,`$&
140
- ${m}`);if(f){let e=x(e=>e.default&&e.tag!==`tag:yaml.org,2002:str`&&e.test?.test(_),`test`),{compat:t,tags:n}=a.doc.schema;if(n.some(e)||t?.some(e))return c(d,a)}return p?_:n.foldFlowLines(_,m,n.FOLD_FLOW,r(a,!1))}x(d,`plainString`);function f(e,n,r,i){let{implicitKey:a,inFlow:l}=n,f=typeof e.value==`string`?e:Object.assign({},e,{value:String(e.value)}),{type:p}=e;p!==t.Scalar.QUOTE_DOUBLE&&/[\x00-\x08\x0b-\x1f\x7f-\x9f\u{D800}-\u{DFFF}]/u.test(f.value)&&(p=t.Scalar.QUOTE_DOUBLE);let m=x(e=>{switch(e){case t.Scalar.BLOCK_FOLDED:case t.Scalar.BLOCK_LITERAL:return a||l?c(f.value,n):u(f,n,r,i);case t.Scalar.QUOTE_DOUBLE:return o(f.value,n);case t.Scalar.QUOTE_SINGLE:return s(f.value,n);case t.Scalar.PLAIN:return d(f,n,r,i);default:return null}},`_stringify`),h=m(p);if(h===null){let{defaultKeyType:e,defaultStringType:t}=n.options,r=a&&e||t;if(h=m(r),h===null)throw Error(`Unsupported default string type ${r}`)}return h}x(f,`stringifyString`),e.stringifyString=f}}),Jr=E({"../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/stringify/stringify.js"(e){var t=Lr(),n=Y(),r=Gr(),i=qr();function a(e,t){let n=Object.assign({blockQuote:!0,commentString:r.stringifyComment,defaultKeyType:null,defaultStringType:`PLAIN`,directives:null,doubleQuotedAsJSON:!1,doubleQuotedMinMultiLineLength:40,falseStr:`false`,flowCollectionPadding:!0,indentSeq:!0,lineWidth:80,minContentWidth:20,nullStr:`null`,simpleKeys:!1,singleQuote:null,trailingComma:!1,trueStr:`true`,verifyAliasOrder:!0},e.schema.toStringOptions,t),i;switch(n.collectionStyle){case`block`:i=!1;break;case`flow`:i=!0;break;default:i=null}return{anchors:new Set,doc:e,flowCollectionPadding:n.flowCollectionPadding?` `:``,indent:``,indentStep:typeof n.indent==`number`?` `.repeat(n.indent):` `,inFlow:i,options:n}}x(a,`createStringifyContext`);function o(e,t){if(t.tag){let n=e.filter(e=>e.tag===t.tag);if(n.length>0)return n.find(e=>e.format===t.format)??n[0]}let r,i;if(n.isScalar(t)){i=t.value;let n=e.filter(e=>e.identify?.(i));if(n.length>1){let e=n.filter(e=>e.test);e.length>0&&(n=e)}r=n.find(e=>e.format===t.format)??n.find(e=>!e.format)}else i=t,r=e.find(e=>e.nodeClass&&i instanceof e.nodeClass);if(!r){let e=i?.constructor?.name??(i===null?`null`:typeof i);throw Error(`Tag not resolved for ${e} value`)}return r}x(o,`getTagObject`);function s(e,r,{anchors:i,doc:a}){if(!a.directives)return``;let o=[],s=(n.isScalar(e)||n.isCollection(e))&&e.anchor;s&&t.anchorIsValid(s)&&(i.add(s),o.push(`&${s}`));let c=e.tag??(r.default?null:r.tag);return c&&o.push(a.directives.tagString(c)),o.join(` `)}x(s,`stringifyProps`);function c(e,t,r,a){if(n.isPair(e))return e.toString(t,r,a);if(n.isAlias(e)){if(t.doc.directives)return e.toString(t);if(t.resolvedAliases?.has(e))throw TypeError(`Cannot stringify circular structure without alias nodes`);t.resolvedAliases?t.resolvedAliases.add(e):t.resolvedAliases=new Set([e]),e=e.resolve(t.doc)}let c,l=n.isNode(e)?e:t.doc.createNode(e,{onTagObj:x(e=>c=e,`onTagObj`)});c??=o(t.doc.schema.tags,l);let u=s(l,c,t);u.length>0&&(t.indentAtStart=(t.indentAtStart??0)+u.length+1);let d=typeof c.stringify==`function`?c.stringify(l,t,r,a):n.isScalar(l)?i.stringifyString(l,t,r,a):l.toString(t,r,a);return u?n.isScalar(l)||d[0]===`{`||d[0]===`[`?`${u} ${d}`:`${u}
141
- ${t.indent}${d}`:d}x(c,`stringify`),e.createStringifyContext=a,e.stringify=c}}),Yr=E({"../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/stringify/stringifyPair.js"(e){var t=Y(),n=Hr(),r=Jr(),i=Gr();function a({key:e,value:a},o,s,c){let{allNullValues:l,doc:u,indent:d,indentStep:f,options:{commentString:p,indentSeq:m,simpleKeys:h}}=o,g=t.isNode(e)&&e.comment||null;if(h){if(g)throw Error(`With simple keys, key nodes cannot have comments`);if(t.isCollection(e)||!t.isNode(e)&&typeof e==`object`)throw Error(`With simple keys, collection cannot be used as a key value`)}let _=!h&&(!e||g&&a==null&&!o.inFlow||t.isCollection(e)||(t.isScalar(e)?e.type===n.Scalar.BLOCK_FOLDED||e.type===n.Scalar.BLOCK_LITERAL:typeof e==`object`));o=Object.assign({},o,{allNullValues:!1,implicitKey:!_&&(h||!l),indent:d+f});let v=!1,y=!1,b=r.stringify(e,o,()=>v=!0,()=>y=!0);if(!_&&!o.inFlow&&b.length>1024){if(h)throw Error(`With simple keys, single line scalar must not span more than 1024 characters`);_=!0}if(o.inFlow){if(l||a==null)return v&&s&&s(),b===``?`?`:_?`? ${b}`:b}else if(l&&!h||a==null&&_)return b=`? ${b}`,g&&!v?b+=i.lineComment(b,o.indent,p(g)):y&&c&&c(),b;v&&(g=null),_?(g&&(b+=i.lineComment(b,o.indent,p(g))),b=`? ${b}
140
+ ${m}`);if(f){let e=x(e=>e.default&&e.tag!==`tag:yaml.org,2002:str`&&e.test?.test(_),`test`),{compat:t,tags:n}=a.doc.schema;if(n.some(e)||t?.some(e))return c(d,a)}return p?_:n.foldFlowLines(_,m,n.FOLD_FLOW,r(a,!1))}x(d,`plainString`);function f(e,n,r,i){let{implicitKey:a,inFlow:l}=n,f=typeof e.value==`string`?e:Object.assign({},e,{value:String(e.value)}),{type:p}=e;p!==t.Scalar.QUOTE_DOUBLE&&/[\x00-\x08\x0b-\x1f\x7f-\x9f\u{D800}-\u{DFFF}]/u.test(f.value)&&(p=t.Scalar.QUOTE_DOUBLE);let m=x(e=>{switch(e){case t.Scalar.BLOCK_FOLDED:case t.Scalar.BLOCK_LITERAL:return a||l?c(f.value,n):u(f,n,r,i);case t.Scalar.QUOTE_DOUBLE:return o(f.value,n);case t.Scalar.QUOTE_SINGLE:return s(f.value,n);case t.Scalar.PLAIN:return d(f,n,r,i);default:return null}},`_stringify`),h=m(p);if(h===null){let{defaultKeyType:e,defaultStringType:t}=n.options,r=a&&e||t;if(h=m(r),h===null)throw Error(`Unsupported default string type ${r}`)}return h}x(f,`stringifyString`),e.stringifyString=f}}),Yr=E({"../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/stringify/stringify.js"(e){var t=Rr(),n=Y(),r=Kr(),i=Jr();function a(e,t){let n=Object.assign({blockQuote:!0,commentString:r.stringifyComment,defaultKeyType:null,defaultStringType:`PLAIN`,directives:null,doubleQuotedAsJSON:!1,doubleQuotedMinMultiLineLength:40,falseStr:`false`,flowCollectionPadding:!0,indentSeq:!0,lineWidth:80,minContentWidth:20,nullStr:`null`,simpleKeys:!1,singleQuote:null,trailingComma:!1,trueStr:`true`,verifyAliasOrder:!0},e.schema.toStringOptions,t),i;switch(n.collectionStyle){case`block`:i=!1;break;case`flow`:i=!0;break;default:i=null}return{anchors:new Set,doc:e,flowCollectionPadding:n.flowCollectionPadding?` `:``,indent:``,indentStep:typeof n.indent==`number`?` `.repeat(n.indent):` `,inFlow:i,options:n}}x(a,`createStringifyContext`);function o(e,t){if(t.tag){let n=e.filter(e=>e.tag===t.tag);if(n.length>0)return n.find(e=>e.format===t.format)??n[0]}let r,i;if(n.isScalar(t)){i=t.value;let n=e.filter(e=>e.identify?.(i));if(n.length>1){let e=n.filter(e=>e.test);e.length>0&&(n=e)}r=n.find(e=>e.format===t.format)??n.find(e=>!e.format)}else i=t,r=e.find(e=>e.nodeClass&&i instanceof e.nodeClass);if(!r){let e=i?.constructor?.name??(i===null?`null`:typeof i);throw Error(`Tag not resolved for ${e} value`)}return r}x(o,`getTagObject`);function s(e,r,{anchors:i,doc:a}){if(!a.directives)return``;let o=[],s=(n.isScalar(e)||n.isCollection(e))&&e.anchor;s&&t.anchorIsValid(s)&&(i.add(s),o.push(`&${s}`));let c=e.tag??(r.default?null:r.tag);return c&&o.push(a.directives.tagString(c)),o.join(` `)}x(s,`stringifyProps`);function c(e,t,r,a){if(n.isPair(e))return e.toString(t,r,a);if(n.isAlias(e)){if(t.doc.directives)return e.toString(t);if(t.resolvedAliases?.has(e))throw TypeError(`Cannot stringify circular structure without alias nodes`);t.resolvedAliases?t.resolvedAliases.add(e):t.resolvedAliases=new Set([e]),e=e.resolve(t.doc)}let c,l=n.isNode(e)?e:t.doc.createNode(e,{onTagObj:x(e=>c=e,`onTagObj`)});c??=o(t.doc.schema.tags,l);let u=s(l,c,t);u.length>0&&(t.indentAtStart=(t.indentAtStart??0)+u.length+1);let d=typeof c.stringify==`function`?c.stringify(l,t,r,a):n.isScalar(l)?i.stringifyString(l,t,r,a):l.toString(t,r,a);return u?n.isScalar(l)||d[0]===`{`||d[0]===`[`?`${u} ${d}`:`${u}
141
+ ${t.indent}${d}`:d}x(c,`stringify`),e.createStringifyContext=a,e.stringify=c}}),Xr=E({"../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/stringify/stringifyPair.js"(e){var t=Y(),n=Ur(),r=Yr(),i=Kr();function a({key:e,value:a},o,s,c){let{allNullValues:l,doc:u,indent:d,indentStep:f,options:{commentString:p,indentSeq:m,simpleKeys:h}}=o,g=t.isNode(e)&&e.comment||null;if(h){if(g)throw Error(`With simple keys, key nodes cannot have comments`);if(t.isCollection(e)||!t.isNode(e)&&typeof e==`object`)throw Error(`With simple keys, collection cannot be used as a key value`)}let _=!h&&(!e||g&&a==null&&!o.inFlow||t.isCollection(e)||(t.isScalar(e)?e.type===n.Scalar.BLOCK_FOLDED||e.type===n.Scalar.BLOCK_LITERAL:typeof e==`object`));o=Object.assign({},o,{allNullValues:!1,implicitKey:!_&&(h||!l),indent:d+f});let v=!1,y=!1,b=r.stringify(e,o,()=>v=!0,()=>y=!0);if(!_&&!o.inFlow&&b.length>1024){if(h)throw Error(`With simple keys, single line scalar must not span more than 1024 characters`);_=!0}if(o.inFlow){if(l||a==null)return v&&s&&s(),b===``?`?`:_?`? ${b}`:b}else if(l&&!h||a==null&&_)return b=`? ${b}`,g&&!v?b+=i.lineComment(b,o.indent,p(g)):y&&c&&c(),b;v&&(g=null),_?(g&&(b+=i.lineComment(b,o.indent,p(g))),b=`? ${b}
142
142
  ${d}:`):(b=`${b}:`,g&&(b+=i.lineComment(b,o.indent,p(g))));let x,S,C;t.isNode(a)?(x=!!a.spaceBefore,S=a.commentBefore,C=a.comment):(x=!1,S=null,C=null,a&&typeof a==`object`&&(a=u.createNode(a))),o.implicitKey=!1,!_&&!g&&t.isScalar(a)&&(o.indentAtStart=b.length+1),y=!1,!m&&f.length>=2&&!o.inFlow&&!_&&t.isSeq(a)&&!a.flow&&!a.tag&&!a.anchor&&(o.indent=o.indent.substring(2));let w=!1,T=r.stringify(a,o,()=>w=!0,()=>y=!0),E=` `;if(g||x||S){if(E=x?`
143
143
  `:``,S){let e=p(S);E+=`
144
144
  ${i.indentComment(e,o.indent)}`}T===``&&!o.inFlow?E===`
@@ -148,32 +148,32 @@ ${i.indentComment(e,o.indent)}`}T===``&&!o.inFlow?E===`
148
148
  ${o.indent}`}else if(!_&&t.isCollection(a)){let e=T[0],t=T.indexOf(`
149
149
  `),n=t!==-1,r=o.inFlow??a.flow??a.items.length===0;if(n||!r){let r=!1;if(n&&(e===`&`||e===`!`)){let n=T.indexOf(` `);e===`&`&&n!==-1&&n<t&&T[n+1]===`!`&&(n=T.indexOf(` `,n+1)),(n===-1||t<n)&&(r=!0)}r||(E=`
150
150
  ${o.indent}`)}}else (T===``||T[0]===`
151
- `)&&(E=``);return b+=E+T,o.inFlow?w&&s&&s():C&&!w?b+=i.lineComment(b,o.indent,p(C)):y&&c&&c(),b}x(a,`stringifyPair`),e.stringifyPair=a}}),Xr=E({"../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/log.js"(e){var t=b(`process`);function n(e,...t){e===`debug`&&console.log(...t)}x(n,`debug`);function r(e,n){(e===`debug`||e===`warn`)&&(typeof t.emitWarning==`function`?t.emitWarning(n):console.warn(n))}x(r,`warn`),e.debug=n,e.warn=r}}),Zr=E({"../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/schema/yaml-1.1/merge.js"(e){var t=Y(),n=Hr(),r=`<<`,i={identify:x(e=>e===r||typeof e==`symbol`&&e.description===r,`identify`),default:`key`,tag:`tag:yaml.org,2002:merge`,test:/^<<$/,resolve:x(()=>Object.assign(new n.Scalar(Symbol(r)),{addToJSMap:o}),`resolve`),stringify:x(()=>r,`stringify`)},a=x((e,r)=>(i.identify(r)||t.isScalar(r)&&(!r.type||r.type===n.Scalar.PLAIN)&&i.identify(r.value))&&e?.doc.schema.tags.some(e=>e.tag===i.tag&&e.default),`isMergeKey`);function o(e,n,r){let i=c(e,r);if(t.isSeq(i))for(let t of i.items)s(e,n,t);else if(Array.isArray(i))for(let t of i)s(e,n,t);else s(e,n,i)}x(o,`addMergeToJSMap`);function s(e,n,r){let i=c(e,r);if(!t.isMap(i))throw Error(`Merge sources must be maps or map aliases`);let a=i.toJSON(null,e,Map);for(let[e,t]of a)n instanceof Map?n.has(e)||n.set(e,t):n instanceof Set?n.add(e):Object.prototype.hasOwnProperty.call(n,e)||Object.defineProperty(n,e,{value:t,writable:!0,enumerable:!0,configurable:!0});return n}x(s,`mergeValue`);function c(e,n){return e&&t.isAlias(n)?n.resolve(e.doc,e):n}x(c,`resolveAliasValue`),e.addMergeToJSMap=o,e.isMergeKey=a,e.merge=i}}),Qr=E({"../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/nodes/addPairToJSMap.js"(e){var t=Xr(),n=Zr(),r=Jr(),i=Y(),a=zr();function o(e,t,{key:r,value:o}){if(i.isNode(r)&&r.addToJSMap)r.addToJSMap(e,t,o);else if(n.isMergeKey(e,r))n.addMergeToJSMap(e,t,o);else{let n=a.toJS(r,``,e);if(t instanceof Map)t.set(n,a.toJS(o,n,e));else if(t instanceof Set)t.add(n);else{let i=s(r,n,e),c=a.toJS(o,i,e);i in t?Object.defineProperty(t,i,{value:c,writable:!0,enumerable:!0,configurable:!0}):t[i]=c}}return t}x(o,`addPairToJSMap`);function s(e,n,a){if(n===null)return``;if(typeof n!=`object`)return String(n);if(i.isNode(e)&&a?.doc){let n=r.createStringifyContext(a.doc,{});n.anchors=new Set;for(let e of a.anchors.keys())n.anchors.add(e.anchor);n.inFlow=!0,n.inStringifyKey=!0;let i=e.toString(n);if(!a.mapKeyWarned){let e=JSON.stringify(i);e.length>40&&(e=e.substring(0,36)+`..."`),t.warn(a.doc.options.logLevel,`Keys with collection values will be stringified due to JS Object restrictions: ${e}. Set mapAsMap: true to use object keys.`),a.mapKeyWarned=!0}return i}return JSON.stringify(n)}x(s,`stringifyKey`),e.addPairToJSMap=o}}),$r=E({"../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/nodes/Pair.js"(e){var t=Ur(),n=Yr(),r=Qr(),i=Y();function a(e,n,r){return new o(t.createNode(e,void 0,r),t.createNode(n,void 0,r))}x(a,`createPair`);var o=class e{static{x(this,`Pair`)}constructor(e,t=null){Object.defineProperty(this,i.NODE_TYPE,{value:i.PAIR}),this.key=e,this.value=t}clone(t){let{key:n,value:r}=this;return i.isNode(n)&&(n=n.clone(t)),i.isNode(r)&&(r=r.clone(t)),new e(n,r)}toJSON(e,t){let n=t?.mapAsMap?new Map:{};return r.addPairToJSMap(t,n,this)}toString(e,t,r){return e?.doc?n.stringifyPair(this,e,t,r):JSON.stringify(this)}};e.Pair=o,e.createPair=a}}),ei=E({"../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/stringify/stringifyCollection.js"(e){var t=Y(),n=Jr(),r=Gr();function i(e,t,n){return(t.inFlow??e.flow?o:a)(e,t,n)}x(i,`stringifyCollection`);function a({comment:e,items:i},a,{blockItemPrefix:o,flowChars:c,itemIndent:l,onChompKeep:u,onComment:d}){let{indent:f,options:{commentString:p}}=a,m=Object.assign({},a,{indent:l,type:null}),h=!1,g=[];for(let e=0;e<i.length;++e){let c=i[e],u=null;if(t.isNode(c))!h&&c.spaceBefore&&g.push(``),s(a,g,c.commentBefore,h),c.comment&&(u=c.comment);else if(t.isPair(c)){let e=t.isNode(c.key)?c.key:null;e&&(!h&&e.spaceBefore&&g.push(``),s(a,g,e.commentBefore,h))}h=!1;let d=n.stringify(c,m,()=>u=null,()=>h=!0);u&&(d+=r.lineComment(d,l,p(u))),h&&u&&(h=!1),g.push(o+d)}let _;if(g.length===0)_=c.start+c.end;else{_=g[0];for(let e=1;e<g.length;++e){let t=g[e];_+=t?`
151
+ `)&&(E=``);return b+=E+T,o.inFlow?w&&s&&s():C&&!w?b+=i.lineComment(b,o.indent,p(C)):y&&c&&c(),b}x(a,`stringifyPair`),e.stringifyPair=a}}),Zr=E({"../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/log.js"(e){var t=b(`process`);function n(e,...t){e===`debug`&&console.log(...t)}x(n,`debug`);function r(e,n){(e===`debug`||e===`warn`)&&(typeof t.emitWarning==`function`?t.emitWarning(n):console.warn(n))}x(r,`warn`),e.debug=n,e.warn=r}}),Qr=E({"../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/schema/yaml-1.1/merge.js"(e){var t=Y(),n=Ur(),r=`<<`,i={identify:x(e=>e===r||typeof e==`symbol`&&e.description===r,`identify`),default:`key`,tag:`tag:yaml.org,2002:merge`,test:/^<<$/,resolve:x(()=>Object.assign(new n.Scalar(Symbol(r)),{addToJSMap:o}),`resolve`),stringify:x(()=>r,`stringify`)},a=x((e,r)=>(i.identify(r)||t.isScalar(r)&&(!r.type||r.type===n.Scalar.PLAIN)&&i.identify(r.value))&&e?.doc.schema.tags.some(e=>e.tag===i.tag&&e.default),`isMergeKey`);function o(e,n,r){let i=c(e,r);if(t.isSeq(i))for(let t of i.items)s(e,n,t);else if(Array.isArray(i))for(let t of i)s(e,n,t);else s(e,n,i)}x(o,`addMergeToJSMap`);function s(e,n,r){let i=c(e,r);if(!t.isMap(i))throw Error(`Merge sources must be maps or map aliases`);let a=i.toJSON(null,e,Map);for(let[e,t]of a)n instanceof Map?n.has(e)||n.set(e,t):n instanceof Set?n.add(e):Object.prototype.hasOwnProperty.call(n,e)||Object.defineProperty(n,e,{value:t,writable:!0,enumerable:!0,configurable:!0});return n}x(s,`mergeValue`);function c(e,n){return e&&t.isAlias(n)?n.resolve(e.doc,e):n}x(c,`resolveAliasValue`),e.addMergeToJSMap=o,e.isMergeKey=a,e.merge=i}}),$r=E({"../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/nodes/addPairToJSMap.js"(e){var t=Zr(),n=Qr(),r=Yr(),i=Y(),a=Br();function o(e,t,{key:r,value:o}){if(i.isNode(r)&&r.addToJSMap)r.addToJSMap(e,t,o);else if(n.isMergeKey(e,r))n.addMergeToJSMap(e,t,o);else{let n=a.toJS(r,``,e);if(t instanceof Map)t.set(n,a.toJS(o,n,e));else if(t instanceof Set)t.add(n);else{let i=s(r,n,e),c=a.toJS(o,i,e);i in t?Object.defineProperty(t,i,{value:c,writable:!0,enumerable:!0,configurable:!0}):t[i]=c}}return t}x(o,`addPairToJSMap`);function s(e,n,a){if(n===null)return``;if(typeof n!=`object`)return String(n);if(i.isNode(e)&&a?.doc){let n=r.createStringifyContext(a.doc,{});n.anchors=new Set;for(let e of a.anchors.keys())n.anchors.add(e.anchor);n.inFlow=!0,n.inStringifyKey=!0;let i=e.toString(n);if(!a.mapKeyWarned){let e=JSON.stringify(i);e.length>40&&(e=e.substring(0,36)+`..."`),t.warn(a.doc.options.logLevel,`Keys with collection values will be stringified due to JS Object restrictions: ${e}. Set mapAsMap: true to use object keys.`),a.mapKeyWarned=!0}return i}return JSON.stringify(n)}x(s,`stringifyKey`),e.addPairToJSMap=o}}),ei=E({"../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/nodes/Pair.js"(e){var t=Wr(),n=Xr(),r=$r(),i=Y();function a(e,n,r){return new o(t.createNode(e,void 0,r),t.createNode(n,void 0,r))}x(a,`createPair`);var o=class e{static{x(this,`Pair`)}constructor(e,t=null){Object.defineProperty(this,i.NODE_TYPE,{value:i.PAIR}),this.key=e,this.value=t}clone(t){let{key:n,value:r}=this;return i.isNode(n)&&(n=n.clone(t)),i.isNode(r)&&(r=r.clone(t)),new e(n,r)}toJSON(e,t){let n=t?.mapAsMap?new Map:{};return r.addPairToJSMap(t,n,this)}toString(e,t,r){return e?.doc?n.stringifyPair(this,e,t,r):JSON.stringify(this)}};e.Pair=o,e.createPair=a}}),ti=E({"../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/stringify/stringifyCollection.js"(e){var t=Y(),n=Yr(),r=Kr();function i(e,t,n){return(t.inFlow??e.flow?o:a)(e,t,n)}x(i,`stringifyCollection`);function a({comment:e,items:i},a,{blockItemPrefix:o,flowChars:c,itemIndent:l,onChompKeep:u,onComment:d}){let{indent:f,options:{commentString:p}}=a,m=Object.assign({},a,{indent:l,type:null}),h=!1,g=[];for(let e=0;e<i.length;++e){let c=i[e],u=null;if(t.isNode(c))!h&&c.spaceBefore&&g.push(``),s(a,g,c.commentBefore,h),c.comment&&(u=c.comment);else if(t.isPair(c)){let e=t.isNode(c.key)?c.key:null;e&&(!h&&e.spaceBefore&&g.push(``),s(a,g,e.commentBefore,h))}h=!1;let d=n.stringify(c,m,()=>u=null,()=>h=!0);u&&(d+=r.lineComment(d,l,p(u))),h&&u&&(h=!1),g.push(o+d)}let _;if(g.length===0)_=c.start+c.end;else{_=g[0];for(let e=1;e<g.length;++e){let t=g[e];_+=t?`
152
152
  ${f}${t}`:`
153
153
  `}}return e?(_+=`
154
154
  `+r.indentComment(p(e),f),d&&d()):h&&u&&u(),_}x(a,`stringifyBlockCollection`);function o({items:e},i,{flowChars:a,itemIndent:o}){let{indent:c,indentStep:l,flowCollectionPadding:u,options:{commentString:d}}=i;o+=l;let f=Object.assign({},i,{indent:o,inFlow:!0,type:null}),p=!1,m=0,h=[];for(let a=0;a<e.length;++a){let c=e[a],l=null;if(t.isNode(c))c.spaceBefore&&h.push(``),s(i,h,c.commentBefore,!1),c.comment&&(l=c.comment);else if(t.isPair(c)){let e=t.isNode(c.key)?c.key:null;e&&(e.spaceBefore&&h.push(``),s(i,h,e.commentBefore,!1),e.comment&&(p=!0));let n=t.isNode(c.value)?c.value:null;n?(n.comment&&(l=n.comment),n.commentBefore&&(p=!0)):c.value==null&&e?.comment&&(l=e.comment)}l&&(p=!0);let u=n.stringify(c,f,()=>l=null);p||=h.length>m||u.includes(`
155
155
  `),a<e.length-1?u+=`,`:i.options.trailingComma&&(i.options.lineWidth>0&&(p||=h.reduce((e,t)=>e+t.length+2,2)+(u.length+2)>i.options.lineWidth),p&&(u+=`,`)),l&&(u+=r.lineComment(u,o,d(l))),h.push(u),m=h.length}let{start:g,end:_}=a;if(h.length===0)return g+_;if(!p){let e=h.reduce((e,t)=>e+t.length+2,2);p=i.options.lineWidth>0&&e>i.options.lineWidth}if(p){let e=g;for(let t of h)e+=t?`
156
156
  ${l}${c}${t}`:`
157
157
  `;return`${e}
158
- ${c}${_}`}else return`${g}${u}${h.join(` `)}${u}${_}`}x(o,`stringifyFlowCollection`);function s({indent:e,options:{commentString:t}},n,i,a){if(i&&a&&(i=i.replace(/^\n+/,``)),i){let a=r.indentComment(t(i),e);n.push(a.trimStart())}}x(s,`addCommentBefore`),e.stringifyCollection=i}}),ti=E({"../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/nodes/YAMLMap.js"(e){var t=ei(),n=Qr(),r=Wr(),i=Y(),a=$r(),o=Hr();function s(e,t){let n=i.isScalar(t)?t.value:t;for(let r of e)if(i.isPair(r)&&(r.key===t||r.key===n||i.isScalar(r.key)&&r.key.value===n))return r}x(s,`findPair`),e.YAMLMap=class extends r.Collection{static{x(this,`YAMLMap`)}static get tagName(){return`tag:yaml.org,2002:map`}constructor(e){super(i.MAP,e),this.items=[]}static from(e,t,n){let{keepUndefined:r,replacer:i}=n,o=new this(e),s=x((e,s)=>{if(typeof i==`function`)s=i.call(t,e,s);else if(Array.isArray(i)&&!i.includes(e))return;(s!==void 0||r)&&o.items.push(a.createPair(e,s,n))},`add`);if(t instanceof Map)for(let[e,n]of t)s(e,n);else if(t&&typeof t==`object`)for(let e of Object.keys(t))s(e,t[e]);return typeof e.sortMapEntries==`function`&&o.items.sort(e.sortMapEntries),o}add(e,t){let n;n=i.isPair(e)?e:!e||typeof e!=`object`||!(`key`in e)?new a.Pair(e,e?.value):new a.Pair(e.key,e.value);let r=s(this.items,n.key),c=this.schema?.sortMapEntries;if(r){if(!t)throw Error(`Key ${n.key} already set`);i.isScalar(r.value)&&o.isScalarValue(n.value)?r.value.value=n.value:r.value=n.value}else if(c){let e=this.items.findIndex(e=>c(n,e)<0);e===-1?this.items.push(n):this.items.splice(e,0,n)}else this.items.push(n)}delete(e){let t=s(this.items,e);return t?this.items.splice(this.items.indexOf(t),1).length>0:!1}get(e,t){let n=s(this.items,e)?.value;return(!t&&i.isScalar(n)?n.value:n)??void 0}has(e){return!!s(this.items,e)}set(e,t){this.add(new a.Pair(e,t),!0)}toJSON(e,t,r){let i=r?new r:t?.mapAsMap?new Map:{};t?.onCreate&&t.onCreate(i);for(let e of this.items)n.addPairToJSMap(t,i,e);return i}toString(e,n,r){if(!e)return JSON.stringify(this);for(let e of this.items)if(!i.isPair(e))throw Error(`Map items must all be pairs; found ${JSON.stringify(e)} instead`);return!e.allNullValues&&this.hasAllNullValues(!1)&&(e=Object.assign({},e,{allNullValues:!0})),t.stringifyCollection(this,e,{blockItemPrefix:``,flowChars:{start:`{`,end:`}`},itemIndent:e.indent||``,onChompKeep:r,onComment:n})}},e.findPair=s}}),ni=E({"../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/schema/common/map.js"(e){var t=Y(),n=ti();e.map={collection:`map`,default:!0,nodeClass:n.YAMLMap,tag:`tag:yaml.org,2002:map`,resolve(e,n){return t.isMap(e)||n(`Expected a mapping for this tag`),e},createNode:x((e,t,r)=>n.YAMLMap.from(e,t,r),`createNode`)}}}),ri=E({"../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/nodes/YAMLSeq.js"(e){var t=Ur(),n=ei(),r=Wr(),i=Y(),a=Hr(),o=zr(),s=class extends r.Collection{static{x(this,`YAMLSeq`)}static get tagName(){return`tag:yaml.org,2002:seq`}constructor(e){super(i.SEQ,e),this.items=[]}add(e){this.items.push(e)}delete(e){let t=c(e);return typeof t==`number`?this.items.splice(t,1).length>0:!1}get(e,t){let n=c(e);if(typeof n!=`number`)return;let r=this.items[n];return!t&&i.isScalar(r)?r.value:r}has(e){let t=c(e);return typeof t==`number`&&t<this.items.length}set(e,t){let n=c(e);if(typeof n!=`number`)throw Error(`Expected a valid index, not ${e}.`);let r=this.items[n];i.isScalar(r)&&a.isScalarValue(t)?r.value=t:this.items[n]=t}toJSON(e,t){let n=[];t?.onCreate&&t.onCreate(n);let r=0;for(let e of this.items)n.push(o.toJS(e,String(r++),t));return n}toString(e,t,r){return e?n.stringifyCollection(this,e,{blockItemPrefix:`- `,flowChars:{start:`[`,end:`]`},itemIndent:(e.indent||``)+` `,onChompKeep:r,onComment:t}):JSON.stringify(this)}static from(e,n,r){let{replacer:i}=r,a=new this(e);if(n&&Symbol.iterator in Object(n)){let e=0;for(let o of n){if(typeof i==`function`){let t=n instanceof Set?o:String(e++);o=i.call(n,t,o)}a.items.push(t.createNode(o,void 0,r))}}return a}};function c(e){let t=i.isScalar(e)?e.value:e;return t&&typeof t==`string`&&(t=Number(t)),typeof t==`number`&&Number.isInteger(t)&&t>=0?t:null}x(c,`asItemIndex`),e.YAMLSeq=s}}),ii=E({"../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/schema/common/seq.js"(e){var t=Y(),n=ri();e.seq={collection:`seq`,default:!0,nodeClass:n.YAMLSeq,tag:`tag:yaml.org,2002:seq`,resolve(e,n){return t.isSeq(e)||n(`Expected a sequence for this tag`),e},createNode:x((e,t,r)=>n.YAMLSeq.from(e,t,r),`createNode`)}}}),ai=E({"../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/schema/common/string.js"(e){var t=qr();e.string={identify:x(e=>typeof e==`string`,`identify`),default:!0,tag:`tag:yaml.org,2002:str`,resolve:x(e=>e,`resolve`),stringify(e,n,r,i){return n=Object.assign({actualString:!0},n),t.stringifyString(e,n,r,i)}}}}),oi=E({"../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/schema/common/null.js"(e){var t=Hr(),n={identify:x(e=>e==null,`identify`),createNode:x(()=>new t.Scalar(null),`createNode`),default:!0,tag:`tag:yaml.org,2002:null`,test:/^(?:~|[Nn]ull|NULL)?$/,resolve:x(()=>new t.Scalar(null),`resolve`),stringify:x(({source:e},t)=>typeof e==`string`&&n.test.test(e)?e:t.options.nullStr,`stringify`)};e.nullTag=n}}),si=E({"../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/schema/core/bool.js"(e){var t=Hr(),n={identify:x(e=>typeof e==`boolean`,`identify`),default:!0,tag:`tag:yaml.org,2002:bool`,test:/^(?:[Tt]rue|TRUE|[Ff]alse|FALSE)$/,resolve:x(e=>new t.Scalar(e[0]===`t`||e[0]===`T`),`resolve`),stringify({source:e,value:t},r){return e&&n.test.test(e)&&t===(e[0]===`t`||e[0]===`T`)?e:t?r.options.trueStr:r.options.falseStr}};e.boolTag=n}}),ci=E({"../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/stringify/stringifyNumber.js"(e){function t({format:e,minFractionDigits:t,tag:n,value:r}){if(typeof r==`bigint`)return String(r);let i=typeof r==`number`?r:Number(r);if(!isFinite(i))return isNaN(i)?`.nan`:i<0?`-.inf`:`.inf`;let a=Object.is(r,-0)?`-0`:JSON.stringify(r);if(!e&&t&&(!n||n===`tag:yaml.org,2002:float`)&&/^-?\d/.test(a)&&!a.includes(`e`)){let e=a.indexOf(`.`);e<0&&(e=a.length,a+=`.`);let n=t-(a.length-e-1);for(;n-- >0;)a+=`0`}return a}x(t,`stringifyNumber`),e.stringifyNumber=t}}),li=E({"../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/schema/core/float.js"(e){var t=Hr(),n=ci(),r={identify:x(e=>typeof e==`number`,`identify`),default:!0,tag:`tag:yaml.org,2002:float`,test:/^(?:[-+]?\.(?:inf|Inf|INF)|\.nan|\.NaN|\.NAN)$/,resolve:x(e=>e.slice(-3).toLowerCase()===`nan`?NaN:e[0]===`-`?-1/0:1/0,`resolve`),stringify:n.stringifyNumber},i={identify:x(e=>typeof e==`number`,`identify`),default:!0,tag:`tag:yaml.org,2002:float`,format:`EXP`,test:/^[-+]?(?:\.[0-9]+|[0-9]+(?:\.[0-9]*)?)[eE][-+]?[0-9]+$/,resolve:x(e=>parseFloat(e),`resolve`),stringify(e){let t=Number(e.value);return isFinite(t)?t.toExponential():n.stringifyNumber(e)}};e.float={identify:x(e=>typeof e==`number`,`identify`),default:!0,tag:`tag:yaml.org,2002:float`,test:/^[-+]?(?:\.[0-9]+|[0-9]+\.[0-9]*)$/,resolve(e){let n=new t.Scalar(parseFloat(e)),r=e.indexOf(`.`);return r!==-1&&e[e.length-1]===`0`&&(n.minFractionDigits=e.length-r-1),n},stringify:n.stringifyNumber},e.floatExp=i,e.floatNaN=r}}),ui=E({"../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/schema/core/int.js"(e){var t=ci(),n=x(e=>typeof e==`bigint`||Number.isInteger(e),`intIdentify`),r=x((e,t,n,{intAsBigInt:r})=>r?BigInt(e):parseInt(e.substring(t),n),`intResolve`);function i(e,r,i){let{value:a}=e;return n(a)&&a>=0?i+a.toString(r):t.stringifyNumber(e)}x(i,`intStringify`);var a={identify:x(e=>n(e)&&e>=0,`identify`),default:!0,tag:`tag:yaml.org,2002:int`,format:`OCT`,test:/^0o[0-7]+$/,resolve:x((e,t,n)=>r(e,2,8,n),`resolve`),stringify:x(e=>i(e,8,`0o`),`stringify`)},o={identify:n,default:!0,tag:`tag:yaml.org,2002:int`,test:/^[-+]?[0-9]+$/,resolve:x((e,t,n)=>r(e,0,10,n),`resolve`),stringify:t.stringifyNumber},s={identify:x(e=>n(e)&&e>=0,`identify`),default:!0,tag:`tag:yaml.org,2002:int`,format:`HEX`,test:/^0x[0-9a-fA-F]+$/,resolve:x((e,t,n)=>r(e,2,16,n),`resolve`),stringify:x(e=>i(e,16,`0x`),`stringify`)};e.int=o,e.intHex=s,e.intOct=a}}),di=E({"../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/schema/core/schema.js"(e){var t=ni(),n=oi(),r=ii(),i=ai(),a=si(),o=li(),s=ui();e.schema=[t.map,r.seq,i.string,n.nullTag,a.boolTag,s.intOct,s.int,s.intHex,o.floatNaN,o.floatExp,o.float]}}),fi=E({"../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/schema/json/schema.js"(e){var t=Hr(),n=ni(),r=ii();function i(e){return typeof e==`bigint`||Number.isInteger(e)}x(i,`intIdentify`);var a=x(({value:e})=>JSON.stringify(e),`stringifyJSON`),o=[{identify:x(e=>typeof e==`string`,`identify`),default:!0,tag:`tag:yaml.org,2002:str`,resolve:x(e=>e,`resolve`),stringify:a},{identify:x(e=>e==null,`identify`),createNode:x(()=>new t.Scalar(null),`createNode`),default:!0,tag:`tag:yaml.org,2002:null`,test:/^null$/,resolve:x(()=>null,`resolve`),stringify:a},{identify:x(e=>typeof e==`boolean`,`identify`),default:!0,tag:`tag:yaml.org,2002:bool`,test:/^true$|^false$/,resolve:x(e=>e===`true`,`resolve`),stringify:a},{identify:i,default:!0,tag:`tag:yaml.org,2002:int`,test:/^-?(?:0|[1-9][0-9]*)$/,resolve:x((e,t,{intAsBigInt:n})=>n?BigInt(e):parseInt(e,10),`resolve`),stringify:x(({value:e})=>i(e)?e.toString():JSON.stringify(e),`stringify`)},{identify:x(e=>typeof e==`number`,`identify`),default:!0,tag:`tag:yaml.org,2002:float`,test:/^-?(?:0|[1-9][0-9]*)(?:\.[0-9]*)?(?:[eE][-+]?[0-9]+)?$/,resolve:x(e=>parseFloat(e),`resolve`),stringify:a}];e.schema=[n.map,r.seq].concat(o,{default:!0,tag:``,test:/^/,resolve(e,t){return t(`Unresolved plain scalar ${JSON.stringify(e)}`),e}})}}),pi=E({"../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/schema/yaml-1.1/binary.js"(e){var t=b(`buffer`),n=Hr(),r=qr();e.binary={identify:x(e=>e instanceof Uint8Array,`identify`),default:!1,tag:`tag:yaml.org,2002:binary`,resolve(e,n){if(typeof t.Buffer==`function`)return t.Buffer.from(e,`base64`);if(typeof atob==`function`){let t=atob(e.replace(/[\n\r]/g,``)),n=new Uint8Array(t.length);for(let e=0;e<t.length;++e)n[e]=t.charCodeAt(e);return n}else return n(`This environment does not support reading binary tags; either Buffer or atob is required`),e},stringify({comment:e,type:i,value:a},o,s,c){if(!a)return``;let l=a,u;if(typeof t.Buffer==`function`)u=l instanceof t.Buffer?l.toString(`base64`):t.Buffer.from(l.buffer).toString(`base64`);else if(typeof btoa==`function`){let e=``;for(let t=0;t<l.length;++t)e+=String.fromCharCode(l[t]);u=btoa(e)}else throw Error(`This environment does not support writing binary tags; either Buffer or btoa is required`);if(i??=n.Scalar.BLOCK_LITERAL,i!==n.Scalar.QUOTE_DOUBLE){let e=Math.max(o.options.lineWidth-o.indent.length,o.options.minContentWidth),t=Math.ceil(u.length/e),r=Array(t);for(let n=0,i=0;n<t;++n,i+=e)r[n]=u.substr(i,e);u=r.join(i===n.Scalar.BLOCK_LITERAL?`
159
- `:` `)}return r.stringifyString({comment:e,type:i,value:u},o,s,c)}}}}),mi=E({"../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/schema/yaml-1.1/pairs.js"(e){var t=Y(),n=$r(),r=Hr(),i=ri();function a(e,i){if(t.isSeq(e))for(let a=0;a<e.items.length;++a){let o=e.items[a];if(!t.isPair(o)){if(t.isMap(o)){o.items.length>1&&i(`Each pair must have its own sequence indicator`);let e=o.items[0]||new n.Pair(new r.Scalar(null));if(o.commentBefore&&(e.key.commentBefore=e.key.commentBefore?`${o.commentBefore}
158
+ ${c}${_}`}else return`${g}${u}${h.join(` `)}${u}${_}`}x(o,`stringifyFlowCollection`);function s({indent:e,options:{commentString:t}},n,i,a){if(i&&a&&(i=i.replace(/^\n+/,``)),i){let a=r.indentComment(t(i),e);n.push(a.trimStart())}}x(s,`addCommentBefore`),e.stringifyCollection=i}}),ni=E({"../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/nodes/YAMLMap.js"(e){var t=ti(),n=$r(),r=Gr(),i=Y(),a=ei(),o=Ur();function s(e,t){let n=i.isScalar(t)?t.value:t;for(let r of e)if(i.isPair(r)&&(r.key===t||r.key===n||i.isScalar(r.key)&&r.key.value===n))return r}x(s,`findPair`),e.YAMLMap=class extends r.Collection{static{x(this,`YAMLMap`)}static get tagName(){return`tag:yaml.org,2002:map`}constructor(e){super(i.MAP,e),this.items=[]}static from(e,t,n){let{keepUndefined:r,replacer:i}=n,o=new this(e),s=x((e,s)=>{if(typeof i==`function`)s=i.call(t,e,s);else if(Array.isArray(i)&&!i.includes(e))return;(s!==void 0||r)&&o.items.push(a.createPair(e,s,n))},`add`);if(t instanceof Map)for(let[e,n]of t)s(e,n);else if(t&&typeof t==`object`)for(let e of Object.keys(t))s(e,t[e]);return typeof e.sortMapEntries==`function`&&o.items.sort(e.sortMapEntries),o}add(e,t){let n;n=i.isPair(e)?e:!e||typeof e!=`object`||!(`key`in e)?new a.Pair(e,e?.value):new a.Pair(e.key,e.value);let r=s(this.items,n.key),c=this.schema?.sortMapEntries;if(r){if(!t)throw Error(`Key ${n.key} already set`);i.isScalar(r.value)&&o.isScalarValue(n.value)?r.value.value=n.value:r.value=n.value}else if(c){let e=this.items.findIndex(e=>c(n,e)<0);e===-1?this.items.push(n):this.items.splice(e,0,n)}else this.items.push(n)}delete(e){let t=s(this.items,e);return t?this.items.splice(this.items.indexOf(t),1).length>0:!1}get(e,t){let n=s(this.items,e)?.value;return(!t&&i.isScalar(n)?n.value:n)??void 0}has(e){return!!s(this.items,e)}set(e,t){this.add(new a.Pair(e,t),!0)}toJSON(e,t,r){let i=r?new r:t?.mapAsMap?new Map:{};t?.onCreate&&t.onCreate(i);for(let e of this.items)n.addPairToJSMap(t,i,e);return i}toString(e,n,r){if(!e)return JSON.stringify(this);for(let e of this.items)if(!i.isPair(e))throw Error(`Map items must all be pairs; found ${JSON.stringify(e)} instead`);return!e.allNullValues&&this.hasAllNullValues(!1)&&(e=Object.assign({},e,{allNullValues:!0})),t.stringifyCollection(this,e,{blockItemPrefix:``,flowChars:{start:`{`,end:`}`},itemIndent:e.indent||``,onChompKeep:r,onComment:n})}},e.findPair=s}}),ri=E({"../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/schema/common/map.js"(e){var t=Y(),n=ni();e.map={collection:`map`,default:!0,nodeClass:n.YAMLMap,tag:`tag:yaml.org,2002:map`,resolve(e,n){return t.isMap(e)||n(`Expected a mapping for this tag`),e},createNode:x((e,t,r)=>n.YAMLMap.from(e,t,r),`createNode`)}}}),ii=E({"../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/nodes/YAMLSeq.js"(e){var t=Wr(),n=ti(),r=Gr(),i=Y(),a=Ur(),o=Br(),s=class extends r.Collection{static{x(this,`YAMLSeq`)}static get tagName(){return`tag:yaml.org,2002:seq`}constructor(e){super(i.SEQ,e),this.items=[]}add(e){this.items.push(e)}delete(e){let t=c(e);return typeof t==`number`?this.items.splice(t,1).length>0:!1}get(e,t){let n=c(e);if(typeof n!=`number`)return;let r=this.items[n];return!t&&i.isScalar(r)?r.value:r}has(e){let t=c(e);return typeof t==`number`&&t<this.items.length}set(e,t){let n=c(e);if(typeof n!=`number`)throw Error(`Expected a valid index, not ${e}.`);let r=this.items[n];i.isScalar(r)&&a.isScalarValue(t)?r.value=t:this.items[n]=t}toJSON(e,t){let n=[];t?.onCreate&&t.onCreate(n);let r=0;for(let e of this.items)n.push(o.toJS(e,String(r++),t));return n}toString(e,t,r){return e?n.stringifyCollection(this,e,{blockItemPrefix:`- `,flowChars:{start:`[`,end:`]`},itemIndent:(e.indent||``)+` `,onChompKeep:r,onComment:t}):JSON.stringify(this)}static from(e,n,r){let{replacer:i}=r,a=new this(e);if(n&&Symbol.iterator in Object(n)){let e=0;for(let o of n){if(typeof i==`function`){let t=n instanceof Set?o:String(e++);o=i.call(n,t,o)}a.items.push(t.createNode(o,void 0,r))}}return a}};function c(e){let t=i.isScalar(e)?e.value:e;return t&&typeof t==`string`&&(t=Number(t)),typeof t==`number`&&Number.isInteger(t)&&t>=0?t:null}x(c,`asItemIndex`),e.YAMLSeq=s}}),ai=E({"../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/schema/common/seq.js"(e){var t=Y(),n=ii();e.seq={collection:`seq`,default:!0,nodeClass:n.YAMLSeq,tag:`tag:yaml.org,2002:seq`,resolve(e,n){return t.isSeq(e)||n(`Expected a sequence for this tag`),e},createNode:x((e,t,r)=>n.YAMLSeq.from(e,t,r),`createNode`)}}}),oi=E({"../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/schema/common/string.js"(e){var t=Jr();e.string={identify:x(e=>typeof e==`string`,`identify`),default:!0,tag:`tag:yaml.org,2002:str`,resolve:x(e=>e,`resolve`),stringify(e,n,r,i){return n=Object.assign({actualString:!0},n),t.stringifyString(e,n,r,i)}}}}),si=E({"../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/schema/common/null.js"(e){var t=Ur(),n={identify:x(e=>e==null,`identify`),createNode:x(()=>new t.Scalar(null),`createNode`),default:!0,tag:`tag:yaml.org,2002:null`,test:/^(?:~|[Nn]ull|NULL)?$/,resolve:x(()=>new t.Scalar(null),`resolve`),stringify:x(({source:e},t)=>typeof e==`string`&&n.test.test(e)?e:t.options.nullStr,`stringify`)};e.nullTag=n}}),ci=E({"../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/schema/core/bool.js"(e){var t=Ur(),n={identify:x(e=>typeof e==`boolean`,`identify`),default:!0,tag:`tag:yaml.org,2002:bool`,test:/^(?:[Tt]rue|TRUE|[Ff]alse|FALSE)$/,resolve:x(e=>new t.Scalar(e[0]===`t`||e[0]===`T`),`resolve`),stringify({source:e,value:t},r){return e&&n.test.test(e)&&t===(e[0]===`t`||e[0]===`T`)?e:t?r.options.trueStr:r.options.falseStr}};e.boolTag=n}}),li=E({"../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/stringify/stringifyNumber.js"(e){function t({format:e,minFractionDigits:t,tag:n,value:r}){if(typeof r==`bigint`)return String(r);let i=typeof r==`number`?r:Number(r);if(!isFinite(i))return isNaN(i)?`.nan`:i<0?`-.inf`:`.inf`;let a=Object.is(r,-0)?`-0`:JSON.stringify(r);if(!e&&t&&(!n||n===`tag:yaml.org,2002:float`)&&/^-?\d/.test(a)&&!a.includes(`e`)){let e=a.indexOf(`.`);e<0&&(e=a.length,a+=`.`);let n=t-(a.length-e-1);for(;n-- >0;)a+=`0`}return a}x(t,`stringifyNumber`),e.stringifyNumber=t}}),ui=E({"../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/schema/core/float.js"(e){var t=Ur(),n=li(),r={identify:x(e=>typeof e==`number`,`identify`),default:!0,tag:`tag:yaml.org,2002:float`,test:/^(?:[-+]?\.(?:inf|Inf|INF)|\.nan|\.NaN|\.NAN)$/,resolve:x(e=>e.slice(-3).toLowerCase()===`nan`?NaN:e[0]===`-`?-1/0:1/0,`resolve`),stringify:n.stringifyNumber},i={identify:x(e=>typeof e==`number`,`identify`),default:!0,tag:`tag:yaml.org,2002:float`,format:`EXP`,test:/^[-+]?(?:\.[0-9]+|[0-9]+(?:\.[0-9]*)?)[eE][-+]?[0-9]+$/,resolve:x(e=>parseFloat(e),`resolve`),stringify(e){let t=Number(e.value);return isFinite(t)?t.toExponential():n.stringifyNumber(e)}};e.float={identify:x(e=>typeof e==`number`,`identify`),default:!0,tag:`tag:yaml.org,2002:float`,test:/^[-+]?(?:\.[0-9]+|[0-9]+\.[0-9]*)$/,resolve(e){let n=new t.Scalar(parseFloat(e)),r=e.indexOf(`.`);return r!==-1&&e[e.length-1]===`0`&&(n.minFractionDigits=e.length-r-1),n},stringify:n.stringifyNumber},e.floatExp=i,e.floatNaN=r}}),di=E({"../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/schema/core/int.js"(e){var t=li(),n=x(e=>typeof e==`bigint`||Number.isInteger(e),`intIdentify`),r=x((e,t,n,{intAsBigInt:r})=>r?BigInt(e):parseInt(e.substring(t),n),`intResolve`);function i(e,r,i){let{value:a}=e;return n(a)&&a>=0?i+a.toString(r):t.stringifyNumber(e)}x(i,`intStringify`);var a={identify:x(e=>n(e)&&e>=0,`identify`),default:!0,tag:`tag:yaml.org,2002:int`,format:`OCT`,test:/^0o[0-7]+$/,resolve:x((e,t,n)=>r(e,2,8,n),`resolve`),stringify:x(e=>i(e,8,`0o`),`stringify`)},o={identify:n,default:!0,tag:`tag:yaml.org,2002:int`,test:/^[-+]?[0-9]+$/,resolve:x((e,t,n)=>r(e,0,10,n),`resolve`),stringify:t.stringifyNumber},s={identify:x(e=>n(e)&&e>=0,`identify`),default:!0,tag:`tag:yaml.org,2002:int`,format:`HEX`,test:/^0x[0-9a-fA-F]+$/,resolve:x((e,t,n)=>r(e,2,16,n),`resolve`),stringify:x(e=>i(e,16,`0x`),`stringify`)};e.int=o,e.intHex=s,e.intOct=a}}),fi=E({"../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/schema/core/schema.js"(e){var t=ri(),n=si(),r=ai(),i=oi(),a=ci(),o=ui(),s=di();e.schema=[t.map,r.seq,i.string,n.nullTag,a.boolTag,s.intOct,s.int,s.intHex,o.floatNaN,o.floatExp,o.float]}}),pi=E({"../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/schema/json/schema.js"(e){var t=Ur(),n=ri(),r=ai();function i(e){return typeof e==`bigint`||Number.isInteger(e)}x(i,`intIdentify`);var a=x(({value:e})=>JSON.stringify(e),`stringifyJSON`),o=[{identify:x(e=>typeof e==`string`,`identify`),default:!0,tag:`tag:yaml.org,2002:str`,resolve:x(e=>e,`resolve`),stringify:a},{identify:x(e=>e==null,`identify`),createNode:x(()=>new t.Scalar(null),`createNode`),default:!0,tag:`tag:yaml.org,2002:null`,test:/^null$/,resolve:x(()=>null,`resolve`),stringify:a},{identify:x(e=>typeof e==`boolean`,`identify`),default:!0,tag:`tag:yaml.org,2002:bool`,test:/^true$|^false$/,resolve:x(e=>e===`true`,`resolve`),stringify:a},{identify:i,default:!0,tag:`tag:yaml.org,2002:int`,test:/^-?(?:0|[1-9][0-9]*)$/,resolve:x((e,t,{intAsBigInt:n})=>n?BigInt(e):parseInt(e,10),`resolve`),stringify:x(({value:e})=>i(e)?e.toString():JSON.stringify(e),`stringify`)},{identify:x(e=>typeof e==`number`,`identify`),default:!0,tag:`tag:yaml.org,2002:float`,test:/^-?(?:0|[1-9][0-9]*)(?:\.[0-9]*)?(?:[eE][-+]?[0-9]+)?$/,resolve:x(e=>parseFloat(e),`resolve`),stringify:a}];e.schema=[n.map,r.seq].concat(o,{default:!0,tag:``,test:/^/,resolve(e,t){return t(`Unresolved plain scalar ${JSON.stringify(e)}`),e}})}}),mi=E({"../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/schema/yaml-1.1/binary.js"(e){var t=b(`buffer`),n=Ur(),r=Jr();e.binary={identify:x(e=>e instanceof Uint8Array,`identify`),default:!1,tag:`tag:yaml.org,2002:binary`,resolve(e,n){if(typeof t.Buffer==`function`)return t.Buffer.from(e,`base64`);if(typeof atob==`function`){let t=atob(e.replace(/[\n\r]/g,``)),n=new Uint8Array(t.length);for(let e=0;e<t.length;++e)n[e]=t.charCodeAt(e);return n}else return n(`This environment does not support reading binary tags; either Buffer or atob is required`),e},stringify({comment:e,type:i,value:a},o,s,c){if(!a)return``;let l=a,u;if(typeof t.Buffer==`function`)u=l instanceof t.Buffer?l.toString(`base64`):t.Buffer.from(l.buffer).toString(`base64`);else if(typeof btoa==`function`){let e=``;for(let t=0;t<l.length;++t)e+=String.fromCharCode(l[t]);u=btoa(e)}else throw Error(`This environment does not support writing binary tags; either Buffer or btoa is required`);if(i??=n.Scalar.BLOCK_LITERAL,i!==n.Scalar.QUOTE_DOUBLE){let e=Math.max(o.options.lineWidth-o.indent.length,o.options.minContentWidth),t=Math.ceil(u.length/e),r=Array(t);for(let n=0,i=0;n<t;++n,i+=e)r[n]=u.substr(i,e);u=r.join(i===n.Scalar.BLOCK_LITERAL?`
159
+ `:` `)}return r.stringifyString({comment:e,type:i,value:u},o,s,c)}}}}),hi=E({"../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/schema/yaml-1.1/pairs.js"(e){var t=Y(),n=ei(),r=Ur(),i=ii();function a(e,i){if(t.isSeq(e))for(let a=0;a<e.items.length;++a){let o=e.items[a];if(!t.isPair(o)){if(t.isMap(o)){o.items.length>1&&i(`Each pair must have its own sequence indicator`);let e=o.items[0]||new n.Pair(new r.Scalar(null));if(o.commentBefore&&(e.key.commentBefore=e.key.commentBefore?`${o.commentBefore}
160
160
  ${e.key.commentBefore}`:o.commentBefore),o.comment){let t=e.value??e.key;t.comment=t.comment?`${o.comment}
161
- ${t.comment}`:o.comment}o=e}e.items[a]=t.isPair(o)?o:new n.Pair(o)}}else i(`Expected a sequence for this tag`);return e}x(a,`resolvePairs`);function o(e,t,r){let{replacer:a}=r,o=new i.YAMLSeq(e);o.tag=`tag:yaml.org,2002:pairs`;let s=0;if(t&&Symbol.iterator in Object(t))for(let e of t){typeof a==`function`&&(e=a.call(t,String(s++),e));let i,c;if(Array.isArray(e))if(e.length===2)i=e[0],c=e[1];else throw TypeError(`Expected [key, value] tuple: ${e}`);else if(e&&e instanceof Object){let t=Object.keys(e);if(t.length===1)i=t[0],c=e[i];else throw TypeError(`Expected tuple with one key, not ${t.length} keys`)}else i=e;o.items.push(n.createPair(i,c,r))}return o}x(o,`createPairs`);var s={collection:`seq`,default:!1,tag:`tag:yaml.org,2002:pairs`,resolve:a,createNode:o};e.createPairs=o,e.pairs=s,e.resolvePairs=a}}),hi=E({"../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/schema/yaml-1.1/omap.js"(e){var t=Y(),n=zr(),r=ti(),i=ri(),a=mi(),o=class e extends i.YAMLSeq{static{x(this,`YAMLOMap`)}constructor(){super(),this.add=r.YAMLMap.prototype.add.bind(this),this.delete=r.YAMLMap.prototype.delete.bind(this),this.get=r.YAMLMap.prototype.get.bind(this),this.has=r.YAMLMap.prototype.has.bind(this),this.set=r.YAMLMap.prototype.set.bind(this),this.tag=e.tag}toJSON(e,r){if(!r)return super.toJSON(e);let i=new Map;r?.onCreate&&r.onCreate(i);for(let e of this.items){let a,o;if(t.isPair(e)?(a=n.toJS(e.key,``,r),o=n.toJS(e.value,a,r)):a=n.toJS(e,``,r),i.has(a))throw Error(`Ordered maps must not include duplicate keys`);i.set(a,o)}return i}static from(e,t,n){let r=a.createPairs(e,t,n),i=new this;return i.items=r.items,i}};o.tag=`tag:yaml.org,2002:omap`;var s={collection:`seq`,identify:x(e=>e instanceof Map,`identify`),nodeClass:o,default:!1,tag:`tag:yaml.org,2002:omap`,resolve(e,n){let r=a.resolvePairs(e,n),i=[];for(let{key:e}of r.items)t.isScalar(e)&&(i.includes(e.value)?n(`Ordered maps must not include duplicate keys: ${e.value}`):i.push(e.value));return Object.assign(new o,r)},createNode:x((e,t,n)=>o.from(e,t,n),`createNode`)};e.YAMLOMap=o,e.omap=s}}),gi=E({"../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/schema/yaml-1.1/bool.js"(e){var t=Hr();function n({value:e,source:t},n){return t&&(e?r:i).test.test(t)?t:e?n.options.trueStr:n.options.falseStr}x(n,`boolStringify`);var r={identify:x(e=>e===!0,`identify`),default:!0,tag:`tag:yaml.org,2002:bool`,test:/^(?:Y|y|[Yy]es|YES|[Tt]rue|TRUE|[Oo]n|ON)$/,resolve:x(()=>new t.Scalar(!0),`resolve`),stringify:n},i={identify:x(e=>e===!1,`identify`),default:!0,tag:`tag:yaml.org,2002:bool`,test:/^(?:N|n|[Nn]o|NO|[Ff]alse|FALSE|[Oo]ff|OFF)$/,resolve:x(()=>new t.Scalar(!1),`resolve`),stringify:n};e.falseTag=i,e.trueTag=r}}),_i=E({"../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/schema/yaml-1.1/float.js"(e){var t=Hr(),n=ci(),r={identify:x(e=>typeof e==`number`,`identify`),default:!0,tag:`tag:yaml.org,2002:float`,test:/^(?:[-+]?\.(?:inf|Inf|INF)|\.nan|\.NaN|\.NAN)$/,resolve:x(e=>e.slice(-3).toLowerCase()===`nan`?NaN:e[0]===`-`?-1/0:1/0,`resolve`),stringify:n.stringifyNumber},i={identify:x(e=>typeof e==`number`,`identify`),default:!0,tag:`tag:yaml.org,2002:float`,format:`EXP`,test:/^[-+]?(?:[0-9][0-9_]*)?(?:\.[0-9_]*)?[eE][-+]?[0-9]+$/,resolve:x(e=>parseFloat(e.replace(/_/g,``)),`resolve`),stringify(e){let t=Number(e.value);return isFinite(t)?t.toExponential():n.stringifyNumber(e)}};e.float={identify:x(e=>typeof e==`number`,`identify`),default:!0,tag:`tag:yaml.org,2002:float`,test:/^[-+]?(?:[0-9][0-9_]*)?\.[0-9_]*$/,resolve(e){let n=new t.Scalar(parseFloat(e.replace(/_/g,``))),r=e.indexOf(`.`);if(r!==-1){let t=e.substring(r+1).replace(/_/g,``);t[t.length-1]===`0`&&(n.minFractionDigits=t.length)}return n},stringify:n.stringifyNumber},e.floatExp=i,e.floatNaN=r}}),vi=E({"../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/schema/yaml-1.1/int.js"(e){var t=ci(),n=x(e=>typeof e==`bigint`||Number.isInteger(e),`intIdentify`);function r(e,t,n,{intAsBigInt:r}){let i=e[0];if((i===`-`||i===`+`)&&(t+=1),e=e.substring(t).replace(/_/g,``),r){switch(n){case 2:e=`0b${e}`;break;case 8:e=`0o${e}`;break;case 16:e=`0x${e}`;break}let t=BigInt(e);return i===`-`?BigInt(-1)*t:t}let a=parseInt(e,n);return i===`-`?-1*a:a}x(r,`intResolve`);function i(e,r,i){let{value:a}=e;if(n(a)){let e=a.toString(r);return a<0?`-`+i+e.substr(1):i+e}return t.stringifyNumber(e)}x(i,`intStringify`);var a={identify:n,default:!0,tag:`tag:yaml.org,2002:int`,format:`BIN`,test:/^[-+]?0b[0-1_]+$/,resolve:x((e,t,n)=>r(e,2,2,n),`resolve`),stringify:x(e=>i(e,2,`0b`),`stringify`)},o={identify:n,default:!0,tag:`tag:yaml.org,2002:int`,format:`OCT`,test:/^[-+]?0[0-7_]+$/,resolve:x((e,t,n)=>r(e,1,8,n),`resolve`),stringify:x(e=>i(e,8,`0`),`stringify`)},s={identify:n,default:!0,tag:`tag:yaml.org,2002:int`,test:/^[-+]?[0-9][0-9_]*$/,resolve:x((e,t,n)=>r(e,0,10,n),`resolve`),stringify:t.stringifyNumber},c={identify:n,default:!0,tag:`tag:yaml.org,2002:int`,format:`HEX`,test:/^[-+]?0x[0-9a-fA-F_]+$/,resolve:x((e,t,n)=>r(e,2,16,n),`resolve`),stringify:x(e=>i(e,16,`0x`),`stringify`)};e.int=s,e.intBin=a,e.intHex=c,e.intOct=o}}),yi=E({"../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/schema/yaml-1.1/set.js"(e){var t=Y(),n=$r(),r=ti(),i=class e extends r.YAMLMap{static{x(this,`YAMLSet`)}constructor(t){super(t),this.tag=e.tag}add(e){let i;i=t.isPair(e)?e:e&&typeof e==`object`&&`key`in e&&`value`in e&&e.value===null?new n.Pair(e.key,null):new n.Pair(e,null),r.findPair(this.items,i.key)||this.items.push(i)}get(e,n){let i=r.findPair(this.items,e);return!n&&t.isPair(i)?t.isScalar(i.key)?i.key.value:i.key:i}set(e,t){if(typeof t!=`boolean`)throw Error(`Expected boolean value for set(key, value) in a YAML set, not ${typeof t}`);let i=r.findPair(this.items,e);i&&!t?this.items.splice(this.items.indexOf(i),1):!i&&t&&this.items.push(new n.Pair(e))}toJSON(e,t){return super.toJSON(e,t,Set)}toString(e,t,n){if(!e)return JSON.stringify(this);if(this.hasAllNullValues(!0))return super.toString(Object.assign({},e,{allNullValues:!0}),t,n);throw Error(`Set items must all have null values`)}static from(e,t,r){let{replacer:i}=r,a=new this(e);if(t&&Symbol.iterator in Object(t))for(let e of t)typeof i==`function`&&(e=i.call(t,e,e)),a.items.push(n.createPair(e,null,r));return a}};i.tag=`tag:yaml.org,2002:set`;var a={collection:`map`,identify:x(e=>e instanceof Set,`identify`),nodeClass:i,default:!1,tag:`tag:yaml.org,2002:set`,createNode:x((e,t,n)=>i.from(e,t,n),`createNode`),resolve(e,n){if(t.isMap(e)){if(e.hasAllNullValues(!0))return Object.assign(new i,e);n(`Set items must all have null values`)}else n(`Expected a mapping for this tag`);return e}};e.YAMLSet=i,e.set=a}}),bi=E({"../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/schema/yaml-1.1/timestamp.js"(e){var t=ci();function n(e,t){let n=e[0],r=n===`-`||n===`+`?e.substring(1):e,i=x(e=>t?BigInt(e):Number(e),`num`),a=r.replace(/_/g,``).split(`:`).reduce((e,t)=>e*i(60)+i(t),i(0));return n===`-`?i(-1)*a:a}x(n,`parseSexagesimal`);function r(e){let{value:n}=e,r=x(e=>e,`num`);if(typeof n==`bigint`)r=x(e=>BigInt(e),`num`);else if(isNaN(n)||!isFinite(n))return t.stringifyNumber(e);let i=``;n<0&&(i=`-`,n*=r(-1));let a=r(60),o=[n%a];return n<60?o.unshift(0):(n=(n-o[0])/a,o.unshift(n%a),n>=60&&(n=(n-o[0])/a,o.unshift(n))),i+o.map(e=>String(e).padStart(2,`0`)).join(`:`).replace(/000000\d*$/,``)}x(r,`stringifySexagesimal`);var i={identify:x(e=>typeof e==`bigint`||Number.isInteger(e),`identify`),default:!0,tag:`tag:yaml.org,2002:int`,format:`TIME`,test:/^[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+$/,resolve:x((e,t,{intAsBigInt:r})=>n(e,r),`resolve`),stringify:r},a={identify:x(e=>typeof e==`number`,`identify`),default:!0,tag:`tag:yaml.org,2002:float`,format:`TIME`,test:/^[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+\.[0-9_]*$/,resolve:x(e=>n(e,!1),`resolve`),stringify:r},o={identify:x(e=>e instanceof Date,`identify`),default:!0,tag:`tag:yaml.org,2002:timestamp`,test:RegExp(`^([0-9]{4})-([0-9]{1,2})-([0-9]{1,2})(?:(?:t|T|[ \\t]+)([0-9]{1,2}):([0-9]{1,2}):([0-9]{1,2}(\\.[0-9]+)?)(?:[ \\t]*(Z|[-+][012]?[0-9](?::[0-9]{2})?))?)?$`),resolve(e){let t=e.match(o.test);if(!t)throw Error(`!!timestamp expects a date, starting with yyyy-mm-dd`);let[,r,i,a,s,c,l]=t.map(Number),u=t[7]?Number((t[7]+`00`).substr(1,3)):0,d=Date.UTC(r,i-1,a,s||0,c||0,l||0,u),f=t[8];if(f&&f!==`Z`){let e=n(f,!1);Math.abs(e)<30&&(e*=60),d-=6e4*e}return new Date(d)},stringify:x(({value:e})=>e?.toISOString().replace(/(T00:00:00)?\.000Z$/,``)??``,`stringify`)};e.floatTime=a,e.intTime=i,e.timestamp=o}}),xi=E({"../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/schema/yaml-1.1/schema.js"(e){var t=ni(),n=oi(),r=ii(),i=ai(),a=pi(),o=gi(),s=_i(),c=vi(),l=Zr(),u=hi(),d=mi(),f=yi(),p=bi();e.schema=[t.map,r.seq,i.string,n.nullTag,o.trueTag,o.falseTag,c.intBin,c.intOct,c.int,c.intHex,s.floatNaN,s.floatExp,s.float,a.binary,l.merge,u.omap,d.pairs,f.set,p.intTime,p.floatTime,p.timestamp]}}),Si=E({"../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/schema/tags.js"(e){var t=ni(),n=oi(),r=ii(),i=ai(),a=si(),o=li(),s=ui(),c=di(),l=fi(),u=pi(),d=Zr(),f=hi(),p=mi(),m=xi(),h=yi(),g=bi(),_=new Map([[`core`,c.schema],[`failsafe`,[t.map,r.seq,i.string]],[`json`,l.schema],[`yaml11`,m.schema],[`yaml-1.1`,m.schema]]),v={binary:u.binary,bool:a.boolTag,float:o.float,floatExp:o.floatExp,floatNaN:o.floatNaN,floatTime:g.floatTime,int:s.int,intHex:s.intHex,intOct:s.intOct,intTime:g.intTime,map:t.map,merge:d.merge,null:n.nullTag,omap:f.omap,pairs:p.pairs,seq:r.seq,set:h.set,timestamp:g.timestamp},y={"tag:yaml.org,2002:binary":u.binary,"tag:yaml.org,2002:merge":d.merge,"tag:yaml.org,2002:omap":f.omap,"tag:yaml.org,2002:pairs":p.pairs,"tag:yaml.org,2002:set":h.set,"tag:yaml.org,2002:timestamp":g.timestamp};function b(e,t,n){let r=_.get(t);if(r&&!e)return n&&!r.includes(d.merge)?r.concat(d.merge):r.slice();let i=r;if(!i)if(Array.isArray(e))i=[];else{let e=Array.from(_.keys()).filter(e=>e!==`yaml11`).map(e=>JSON.stringify(e)).join(`, `);throw Error(`Unknown schema "${t}"; use one of ${e} or define customTags array`)}if(Array.isArray(e))for(let t of e)i=i.concat(t);else typeof e==`function`&&(i=e(i.slice()));return n&&(i=i.concat(d.merge)),i.reduce((e,t)=>{let n=typeof t==`string`?v[t]:t;if(!n){let e=JSON.stringify(t),n=Object.keys(v).map(e=>JSON.stringify(e)).join(`, `);throw Error(`Unknown custom tag ${e}; use one of ${n}`)}return e.includes(n)||e.push(n),e},[])}x(b,`getTags`),e.coreKnownTags=y,e.getTags=b}}),Ci=E({"../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/schema/Schema.js"(e){var t=Y(),n=ni(),r=ii(),i=ai(),a=Si(),o=x((e,t)=>e.key<t.key?-1:+(e.key>t.key),`sortMapEntriesByKey`);e.Schema=class e{static{x(this,`Schema`)}constructor({compat:e,customTags:s,merge:c,resolveKnownTags:l,schema:u,sortMapEntries:d,toStringDefaults:f}){this.compat=Array.isArray(e)?a.getTags(e,`compat`):e?a.getTags(null,e):null,this.name=typeof u==`string`&&u||`core`,this.knownTags=l?a.coreKnownTags:{},this.tags=a.getTags(s,this.name,c),this.toStringOptions=f??null,Object.defineProperty(this,t.MAP,{value:n.map}),Object.defineProperty(this,t.SCALAR,{value:i.string}),Object.defineProperty(this,t.SEQ,{value:r.seq}),this.sortMapEntries=typeof d==`function`?d:d===!0?o:null}clone(){let t=Object.create(e.prototype,Object.getOwnPropertyDescriptors(this));return t.tags=this.tags.slice(),t}}}}),wi=E({"../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/stringify/stringifyDocument.js"(e){var t=Y(),n=Jr(),r=Gr();function i(e,i){let a=[],o=i.directives===!0;if(i.directives!==!1&&e.directives){let t=e.directives.toString(e);t?(a.push(t),o=!0):e.directives.docStart&&(o=!0)}o&&a.push(`---`);let s=n.createStringifyContext(e,i),{commentString:c}=s.options;if(e.commentBefore){a.length!==1&&a.unshift(``);let t=c(e.commentBefore);a.unshift(r.indentComment(t,``))}let l=!1,u=null;if(e.contents){if(t.isNode(e.contents)){if(e.contents.spaceBefore&&o&&a.push(``),e.contents.commentBefore){let t=c(e.contents.commentBefore);a.push(r.indentComment(t,``))}s.forceBlockIndent=!!e.comment,u=e.contents.comment}let i=u?void 0:()=>l=!0,d=n.stringify(e.contents,s,()=>u=null,i);u&&(d+=r.lineComment(d,``,c(u))),(d[0]===`|`||d[0]===`>`)&&a[a.length-1]===`---`?a[a.length-1]=`--- ${d}`:a.push(d)}else a.push(n.stringify(e.contents,s));if(e.directives?.docEnd)if(e.comment){let t=c(e.comment);t.includes(`
161
+ ${t.comment}`:o.comment}o=e}e.items[a]=t.isPair(o)?o:new n.Pair(o)}}else i(`Expected a sequence for this tag`);return e}x(a,`resolvePairs`);function o(e,t,r){let{replacer:a}=r,o=new i.YAMLSeq(e);o.tag=`tag:yaml.org,2002:pairs`;let s=0;if(t&&Symbol.iterator in Object(t))for(let e of t){typeof a==`function`&&(e=a.call(t,String(s++),e));let i,c;if(Array.isArray(e))if(e.length===2)i=e[0],c=e[1];else throw TypeError(`Expected [key, value] tuple: ${e}`);else if(e&&e instanceof Object){let t=Object.keys(e);if(t.length===1)i=t[0],c=e[i];else throw TypeError(`Expected tuple with one key, not ${t.length} keys`)}else i=e;o.items.push(n.createPair(i,c,r))}return o}x(o,`createPairs`);var s={collection:`seq`,default:!1,tag:`tag:yaml.org,2002:pairs`,resolve:a,createNode:o};e.createPairs=o,e.pairs=s,e.resolvePairs=a}}),gi=E({"../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/schema/yaml-1.1/omap.js"(e){var t=Y(),n=Br(),r=ni(),i=ii(),a=hi(),o=class e extends i.YAMLSeq{static{x(this,`YAMLOMap`)}constructor(){super(),this.add=r.YAMLMap.prototype.add.bind(this),this.delete=r.YAMLMap.prototype.delete.bind(this),this.get=r.YAMLMap.prototype.get.bind(this),this.has=r.YAMLMap.prototype.has.bind(this),this.set=r.YAMLMap.prototype.set.bind(this),this.tag=e.tag}toJSON(e,r){if(!r)return super.toJSON(e);let i=new Map;r?.onCreate&&r.onCreate(i);for(let e of this.items){let a,o;if(t.isPair(e)?(a=n.toJS(e.key,``,r),o=n.toJS(e.value,a,r)):a=n.toJS(e,``,r),i.has(a))throw Error(`Ordered maps must not include duplicate keys`);i.set(a,o)}return i}static from(e,t,n){let r=a.createPairs(e,t,n),i=new this;return i.items=r.items,i}};o.tag=`tag:yaml.org,2002:omap`;var s={collection:`seq`,identify:x(e=>e instanceof Map,`identify`),nodeClass:o,default:!1,tag:`tag:yaml.org,2002:omap`,resolve(e,n){let r=a.resolvePairs(e,n),i=[];for(let{key:e}of r.items)t.isScalar(e)&&(i.includes(e.value)?n(`Ordered maps must not include duplicate keys: ${e.value}`):i.push(e.value));return Object.assign(new o,r)},createNode:x((e,t,n)=>o.from(e,t,n),`createNode`)};e.YAMLOMap=o,e.omap=s}}),_i=E({"../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/schema/yaml-1.1/bool.js"(e){var t=Ur();function n({value:e,source:t},n){return t&&(e?r:i).test.test(t)?t:e?n.options.trueStr:n.options.falseStr}x(n,`boolStringify`);var r={identify:x(e=>e===!0,`identify`),default:!0,tag:`tag:yaml.org,2002:bool`,test:/^(?:Y|y|[Yy]es|YES|[Tt]rue|TRUE|[Oo]n|ON)$/,resolve:x(()=>new t.Scalar(!0),`resolve`),stringify:n},i={identify:x(e=>e===!1,`identify`),default:!0,tag:`tag:yaml.org,2002:bool`,test:/^(?:N|n|[Nn]o|NO|[Ff]alse|FALSE|[Oo]ff|OFF)$/,resolve:x(()=>new t.Scalar(!1),`resolve`),stringify:n};e.falseTag=i,e.trueTag=r}}),vi=E({"../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/schema/yaml-1.1/float.js"(e){var t=Ur(),n=li(),r={identify:x(e=>typeof e==`number`,`identify`),default:!0,tag:`tag:yaml.org,2002:float`,test:/^(?:[-+]?\.(?:inf|Inf|INF)|\.nan|\.NaN|\.NAN)$/,resolve:x(e=>e.slice(-3).toLowerCase()===`nan`?NaN:e[0]===`-`?-1/0:1/0,`resolve`),stringify:n.stringifyNumber},i={identify:x(e=>typeof e==`number`,`identify`),default:!0,tag:`tag:yaml.org,2002:float`,format:`EXP`,test:/^[-+]?(?:[0-9][0-9_]*)?(?:\.[0-9_]*)?[eE][-+]?[0-9]+$/,resolve:x(e=>parseFloat(e.replace(/_/g,``)),`resolve`),stringify(e){let t=Number(e.value);return isFinite(t)?t.toExponential():n.stringifyNumber(e)}};e.float={identify:x(e=>typeof e==`number`,`identify`),default:!0,tag:`tag:yaml.org,2002:float`,test:/^[-+]?(?:[0-9][0-9_]*)?\.[0-9_]*$/,resolve(e){let n=new t.Scalar(parseFloat(e.replace(/_/g,``))),r=e.indexOf(`.`);if(r!==-1){let t=e.substring(r+1).replace(/_/g,``);t[t.length-1]===`0`&&(n.minFractionDigits=t.length)}return n},stringify:n.stringifyNumber},e.floatExp=i,e.floatNaN=r}}),yi=E({"../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/schema/yaml-1.1/int.js"(e){var t=li(),n=x(e=>typeof e==`bigint`||Number.isInteger(e),`intIdentify`);function r(e,t,n,{intAsBigInt:r}){let i=e[0];if((i===`-`||i===`+`)&&(t+=1),e=e.substring(t).replace(/_/g,``),r){switch(n){case 2:e=`0b${e}`;break;case 8:e=`0o${e}`;break;case 16:e=`0x${e}`;break}let t=BigInt(e);return i===`-`?BigInt(-1)*t:t}let a=parseInt(e,n);return i===`-`?-1*a:a}x(r,`intResolve`);function i(e,r,i){let{value:a}=e;if(n(a)){let e=a.toString(r);return a<0?`-`+i+e.substr(1):i+e}return t.stringifyNumber(e)}x(i,`intStringify`);var a={identify:n,default:!0,tag:`tag:yaml.org,2002:int`,format:`BIN`,test:/^[-+]?0b[0-1_]+$/,resolve:x((e,t,n)=>r(e,2,2,n),`resolve`),stringify:x(e=>i(e,2,`0b`),`stringify`)},o={identify:n,default:!0,tag:`tag:yaml.org,2002:int`,format:`OCT`,test:/^[-+]?0[0-7_]+$/,resolve:x((e,t,n)=>r(e,1,8,n),`resolve`),stringify:x(e=>i(e,8,`0`),`stringify`)},s={identify:n,default:!0,tag:`tag:yaml.org,2002:int`,test:/^[-+]?[0-9][0-9_]*$/,resolve:x((e,t,n)=>r(e,0,10,n),`resolve`),stringify:t.stringifyNumber},c={identify:n,default:!0,tag:`tag:yaml.org,2002:int`,format:`HEX`,test:/^[-+]?0x[0-9a-fA-F_]+$/,resolve:x((e,t,n)=>r(e,2,16,n),`resolve`),stringify:x(e=>i(e,16,`0x`),`stringify`)};e.int=s,e.intBin=a,e.intHex=c,e.intOct=o}}),bi=E({"../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/schema/yaml-1.1/set.js"(e){var t=Y(),n=ei(),r=ni(),i=class e extends r.YAMLMap{static{x(this,`YAMLSet`)}constructor(t){super(t),this.tag=e.tag}add(e){let i;i=t.isPair(e)?e:e&&typeof e==`object`&&`key`in e&&`value`in e&&e.value===null?new n.Pair(e.key,null):new n.Pair(e,null),r.findPair(this.items,i.key)||this.items.push(i)}get(e,n){let i=r.findPair(this.items,e);return!n&&t.isPair(i)?t.isScalar(i.key)?i.key.value:i.key:i}set(e,t){if(typeof t!=`boolean`)throw Error(`Expected boolean value for set(key, value) in a YAML set, not ${typeof t}`);let i=r.findPair(this.items,e);i&&!t?this.items.splice(this.items.indexOf(i),1):!i&&t&&this.items.push(new n.Pair(e))}toJSON(e,t){return super.toJSON(e,t,Set)}toString(e,t,n){if(!e)return JSON.stringify(this);if(this.hasAllNullValues(!0))return super.toString(Object.assign({},e,{allNullValues:!0}),t,n);throw Error(`Set items must all have null values`)}static from(e,t,r){let{replacer:i}=r,a=new this(e);if(t&&Symbol.iterator in Object(t))for(let e of t)typeof i==`function`&&(e=i.call(t,e,e)),a.items.push(n.createPair(e,null,r));return a}};i.tag=`tag:yaml.org,2002:set`;var a={collection:`map`,identify:x(e=>e instanceof Set,`identify`),nodeClass:i,default:!1,tag:`tag:yaml.org,2002:set`,createNode:x((e,t,n)=>i.from(e,t,n),`createNode`),resolve(e,n){if(t.isMap(e)){if(e.hasAllNullValues(!0))return Object.assign(new i,e);n(`Set items must all have null values`)}else n(`Expected a mapping for this tag`);return e}};e.YAMLSet=i,e.set=a}}),xi=E({"../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/schema/yaml-1.1/timestamp.js"(e){var t=li();function n(e,t){let n=e[0],r=n===`-`||n===`+`?e.substring(1):e,i=x(e=>t?BigInt(e):Number(e),`num`),a=r.replace(/_/g,``).split(`:`).reduce((e,t)=>e*i(60)+i(t),i(0));return n===`-`?i(-1)*a:a}x(n,`parseSexagesimal`);function r(e){let{value:n}=e,r=x(e=>e,`num`);if(typeof n==`bigint`)r=x(e=>BigInt(e),`num`);else if(isNaN(n)||!isFinite(n))return t.stringifyNumber(e);let i=``;n<0&&(i=`-`,n*=r(-1));let a=r(60),o=[n%a];return n<60?o.unshift(0):(n=(n-o[0])/a,o.unshift(n%a),n>=60&&(n=(n-o[0])/a,o.unshift(n))),i+o.map(e=>String(e).padStart(2,`0`)).join(`:`).replace(/000000\d*$/,``)}x(r,`stringifySexagesimal`);var i={identify:x(e=>typeof e==`bigint`||Number.isInteger(e),`identify`),default:!0,tag:`tag:yaml.org,2002:int`,format:`TIME`,test:/^[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+$/,resolve:x((e,t,{intAsBigInt:r})=>n(e,r),`resolve`),stringify:r},a={identify:x(e=>typeof e==`number`,`identify`),default:!0,tag:`tag:yaml.org,2002:float`,format:`TIME`,test:/^[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+\.[0-9_]*$/,resolve:x(e=>n(e,!1),`resolve`),stringify:r},o={identify:x(e=>e instanceof Date,`identify`),default:!0,tag:`tag:yaml.org,2002:timestamp`,test:RegExp(`^([0-9]{4})-([0-9]{1,2})-([0-9]{1,2})(?:(?:t|T|[ \\t]+)([0-9]{1,2}):([0-9]{1,2}):([0-9]{1,2}(\\.[0-9]+)?)(?:[ \\t]*(Z|[-+][012]?[0-9](?::[0-9]{2})?))?)?$`),resolve(e){let t=e.match(o.test);if(!t)throw Error(`!!timestamp expects a date, starting with yyyy-mm-dd`);let[,r,i,a,s,c,l]=t.map(Number),u=t[7]?Number((t[7]+`00`).substr(1,3)):0,d=Date.UTC(r,i-1,a,s||0,c||0,l||0,u),f=t[8];if(f&&f!==`Z`){let e=n(f,!1);Math.abs(e)<30&&(e*=60),d-=6e4*e}return new Date(d)},stringify:x(({value:e})=>e?.toISOString().replace(/(T00:00:00)?\.000Z$/,``)??``,`stringify`)};e.floatTime=a,e.intTime=i,e.timestamp=o}}),Si=E({"../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/schema/yaml-1.1/schema.js"(e){var t=ri(),n=si(),r=ai(),i=oi(),a=mi(),o=_i(),s=vi(),c=yi(),l=Qr(),u=gi(),d=hi(),f=bi(),p=xi();e.schema=[t.map,r.seq,i.string,n.nullTag,o.trueTag,o.falseTag,c.intBin,c.intOct,c.int,c.intHex,s.floatNaN,s.floatExp,s.float,a.binary,l.merge,u.omap,d.pairs,f.set,p.intTime,p.floatTime,p.timestamp]}}),Ci=E({"../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/schema/tags.js"(e){var t=ri(),n=si(),r=ai(),i=oi(),a=ci(),o=ui(),s=di(),c=fi(),l=pi(),u=mi(),d=Qr(),f=gi(),p=hi(),m=Si(),h=bi(),g=xi(),_=new Map([[`core`,c.schema],[`failsafe`,[t.map,r.seq,i.string]],[`json`,l.schema],[`yaml11`,m.schema],[`yaml-1.1`,m.schema]]),v={binary:u.binary,bool:a.boolTag,float:o.float,floatExp:o.floatExp,floatNaN:o.floatNaN,floatTime:g.floatTime,int:s.int,intHex:s.intHex,intOct:s.intOct,intTime:g.intTime,map:t.map,merge:d.merge,null:n.nullTag,omap:f.omap,pairs:p.pairs,seq:r.seq,set:h.set,timestamp:g.timestamp},y={"tag:yaml.org,2002:binary":u.binary,"tag:yaml.org,2002:merge":d.merge,"tag:yaml.org,2002:omap":f.omap,"tag:yaml.org,2002:pairs":p.pairs,"tag:yaml.org,2002:set":h.set,"tag:yaml.org,2002:timestamp":g.timestamp};function b(e,t,n){let r=_.get(t);if(r&&!e)return n&&!r.includes(d.merge)?r.concat(d.merge):r.slice();let i=r;if(!i)if(Array.isArray(e))i=[];else{let e=Array.from(_.keys()).filter(e=>e!==`yaml11`).map(e=>JSON.stringify(e)).join(`, `);throw Error(`Unknown schema "${t}"; use one of ${e} or define customTags array`)}if(Array.isArray(e))for(let t of e)i=i.concat(t);else typeof e==`function`&&(i=e(i.slice()));return n&&(i=i.concat(d.merge)),i.reduce((e,t)=>{let n=typeof t==`string`?v[t]:t;if(!n){let e=JSON.stringify(t),n=Object.keys(v).map(e=>JSON.stringify(e)).join(`, `);throw Error(`Unknown custom tag ${e}; use one of ${n}`)}return e.includes(n)||e.push(n),e},[])}x(b,`getTags`),e.coreKnownTags=y,e.getTags=b}}),wi=E({"../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/schema/Schema.js"(e){var t=Y(),n=ri(),r=ai(),i=oi(),a=Ci(),o=x((e,t)=>e.key<t.key?-1:+(e.key>t.key),`sortMapEntriesByKey`);e.Schema=class e{static{x(this,`Schema`)}constructor({compat:e,customTags:s,merge:c,resolveKnownTags:l,schema:u,sortMapEntries:d,toStringDefaults:f}){this.compat=Array.isArray(e)?a.getTags(e,`compat`):e?a.getTags(null,e):null,this.name=typeof u==`string`&&u||`core`,this.knownTags=l?a.coreKnownTags:{},this.tags=a.getTags(s,this.name,c),this.toStringOptions=f??null,Object.defineProperty(this,t.MAP,{value:n.map}),Object.defineProperty(this,t.SCALAR,{value:i.string}),Object.defineProperty(this,t.SEQ,{value:r.seq}),this.sortMapEntries=typeof d==`function`?d:d===!0?o:null}clone(){let t=Object.create(e.prototype,Object.getOwnPropertyDescriptors(this));return t.tags=this.tags.slice(),t}}}}),Ti=E({"../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/stringify/stringifyDocument.js"(e){var t=Y(),n=Yr(),r=Kr();function i(e,i){let a=[],o=i.directives===!0;if(i.directives!==!1&&e.directives){let t=e.directives.toString(e);t?(a.push(t),o=!0):e.directives.docStart&&(o=!0)}o&&a.push(`---`);let s=n.createStringifyContext(e,i),{commentString:c}=s.options;if(e.commentBefore){a.length!==1&&a.unshift(``);let t=c(e.commentBefore);a.unshift(r.indentComment(t,``))}let l=!1,u=null;if(e.contents){if(t.isNode(e.contents)){if(e.contents.spaceBefore&&o&&a.push(``),e.contents.commentBefore){let t=c(e.contents.commentBefore);a.push(r.indentComment(t,``))}s.forceBlockIndent=!!e.comment,u=e.contents.comment}let i=u?void 0:()=>l=!0,d=n.stringify(e.contents,s,()=>u=null,i);u&&(d+=r.lineComment(d,``,c(u))),(d[0]===`|`||d[0]===`>`)&&a[a.length-1]===`---`?a[a.length-1]=`--- ${d}`:a.push(d)}else a.push(n.stringify(e.contents,s));if(e.directives?.docEnd)if(e.comment){let t=c(e.comment);t.includes(`
162
162
  `)?(a.push(`...`),a.push(r.indentComment(t,``))):a.push(`... ${t}`)}else a.push(`...`);else{let t=e.comment;t&&l&&(t=t.replace(/^\n+/,``)),t&&((!l||u)&&a[a.length-1]!==``&&a.push(``),a.push(r.indentComment(c(t),``)))}return a.join(`
163
163
  `)+`
164
- `}x(i,`stringifyDocument`),e.stringifyDocument=i}}),Ti=E({"../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/doc/Document.js"(e){var t=Vr(),n=Wr(),r=Y(),i=$r(),a=zr(),o=Ci(),s=wi(),c=Lr(),l=Rr(),u=Ur(),d=Ir(),f=class e{static{x(this,`Document`)}constructor(e,t,n){this.commentBefore=null,this.comment=null,this.errors=[],this.warnings=[],Object.defineProperty(this,r.NODE_TYPE,{value:r.DOC});let i=null;typeof t==`function`||Array.isArray(t)?i=t:n===void 0&&t&&(n=t,t=void 0);let a=Object.assign({intAsBigInt:!1,keepSourceTokens:!1,logLevel:`warn`,prettyErrors:!0,strict:!0,stringKeys:!1,uniqueKeys:!0,version:`1.2`},n);this.options=a;let{version:o}=a;n?._directives?(this.directives=n._directives.atDocument(),this.directives.yaml.explicit&&(o=this.directives.yaml.version)):this.directives=new d.Directives({version:o}),this.setSchema(o,n),this.contents=e===void 0?null:this.createNode(e,i,n)}clone(){let t=Object.create(e.prototype,{[r.NODE_TYPE]:{value:r.DOC}});return t.commentBefore=this.commentBefore,t.comment=this.comment,t.errors=this.errors.slice(),t.warnings=this.warnings.slice(),t.options=Object.assign({},this.options),this.directives&&(t.directives=this.directives.clone()),t.schema=this.schema.clone(),t.contents=r.isNode(this.contents)?this.contents.clone(t.schema):this.contents,this.range&&(t.range=this.range.slice()),t}add(e){p(this.contents)&&this.contents.add(e)}addIn(e,t){p(this.contents)&&this.contents.addIn(e,t)}createAlias(e,n){if(!e.anchor){let t=c.anchorNames(this);e.anchor=!n||t.has(n)?c.findNewAnchor(n||`a`,t):n}return new t.Alias(e.anchor)}createNode(e,t,n){let i;if(typeof t==`function`)e=t.call({"":e},``,e),i=t;else if(Array.isArray(t)){let e=x(e=>typeof e==`number`||e instanceof String||e instanceof Number,`keyToStr`),n=t.filter(e).map(String);n.length>0&&(t=t.concat(n)),i=t}else n===void 0&&t&&(n=t,t=void 0);let{aliasDuplicateObjects:a,anchorPrefix:o,flow:s,keepUndefined:l,onTagObj:d,tag:f}=n??{},{onAnchor:p,setAnchors:m,sourceObjects:h}=c.createNodeAnchors(this,o||`a`),g={aliasDuplicateObjects:a??!0,keepUndefined:l??!1,onAnchor:p,onTagObj:d,replacer:i,schema:this.schema,sourceObjects:h},_=u.createNode(e,f,g);return s&&r.isCollection(_)&&(_.flow=!0),m(),_}createPair(e,t,n={}){let r=this.createNode(e,null,n),a=this.createNode(t,null,n);return new i.Pair(r,a)}delete(e){return p(this.contents)?this.contents.delete(e):!1}deleteIn(e){return n.isEmptyPath(e)?this.contents==null?!1:(this.contents=null,!0):p(this.contents)?this.contents.deleteIn(e):!1}get(e,t){return r.isCollection(this.contents)?this.contents.get(e,t):void 0}getIn(e,t){return n.isEmptyPath(e)?!t&&r.isScalar(this.contents)?this.contents.value:this.contents:r.isCollection(this.contents)?this.contents.getIn(e,t):void 0}has(e){return r.isCollection(this.contents)?this.contents.has(e):!1}hasIn(e){return n.isEmptyPath(e)?this.contents!==void 0:r.isCollection(this.contents)?this.contents.hasIn(e):!1}set(e,t){this.contents==null?this.contents=n.collectionFromPath(this.schema,[e],t):p(this.contents)&&this.contents.set(e,t)}setIn(e,t){n.isEmptyPath(e)?this.contents=t:this.contents==null?this.contents=n.collectionFromPath(this.schema,Array.from(e),t):p(this.contents)&&this.contents.setIn(e,t)}setSchema(e,t={}){typeof e==`number`&&(e=String(e));let n;switch(e){case`1.1`:this.directives?this.directives.yaml.version=`1.1`:this.directives=new d.Directives({version:`1.1`}),n={resolveKnownTags:!1,schema:`yaml-1.1`};break;case`1.2`:case`next`:this.directives?this.directives.yaml.version=e:this.directives=new d.Directives({version:e}),n={resolveKnownTags:!0,schema:`core`};break;case null:this.directives&&delete this.directives,n=null;break;default:{let t=JSON.stringify(e);throw Error(`Expected '1.1', '1.2' or null as first argument, but found: ${t}`)}}if(t.schema instanceof Object)this.schema=t.schema;else if(n)this.schema=new o.Schema(Object.assign(n,t));else throw Error(`With a null YAML version, the { schema: Schema } option is required`)}toJS({json:e,jsonArg:t,mapAsMap:n,maxAliasCount:r,onAnchor:i,reviver:o}={}){let s={anchors:new Map,doc:this,keep:!e,mapAsMap:n===!0,mapKeyWarned:!1,maxAliasCount:typeof r==`number`?r:100},c=a.toJS(this.contents,t??``,s);if(typeof i==`function`)for(let{count:e,res:t}of s.anchors.values())i(t,e);return typeof o==`function`?l.applyReviver(o,{"":c},``,c):c}toJSON(e,t){return this.toJS({json:!0,jsonArg:e,mapAsMap:!1,onAnchor:t})}toString(e={}){if(this.errors.length>0)throw Error(`Document with errors cannot be stringified`);if(`indent`in e&&(!Number.isInteger(e.indent)||Number(e.indent)<=0)){let t=JSON.stringify(e.indent);throw Error(`"indent" option must be a positive integer, not ${t}`)}return s.stringifyDocument(this,e)}};function p(e){if(r.isCollection(e))return!0;throw Error(`Expected a YAML collection as document contents`)}x(p,`assertCollection`),e.Document=f}}),Ei=E({"../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/errors.js"(e){var t=class extends Error{static{x(this,`YAMLError`)}constructor(e,t,n,r){super(),this.name=e,this.code=n,this.message=r,this.pos=t}},n=class extends t{static{x(this,`YAMLParseError`)}constructor(e,t,n){super(`YAMLParseError`,e,t,n)}},r=class extends t{static{x(this,`YAMLWarning`)}constructor(e,t,n){super(`YAMLWarning`,e,t,n)}},i=x((e,t)=>n=>{if(n.pos[0]===-1)return;n.linePos=n.pos.map(e=>t.linePos(e));let{line:r,col:i}=n.linePos[0];n.message+=` at line ${r}, column ${i}`;let a=i-1,o=e.substring(t.lineStarts[r-1],t.lineStarts[r]).replace(/[\n\r]+$/,``);if(a>=60&&o.length>80){let e=Math.min(a-39,o.length-79);o=`…`+o.substring(e),a-=e-1}if(o.length>80&&(o=o.substring(0,79)+`…`),r>1&&/^ *$/.test(o.substring(0,a))){let n=e.substring(t.lineStarts[r-2],t.lineStarts[r-1]);n.length>80&&(n=n.substring(0,79)+`…
164
+ `}x(i,`stringifyDocument`),e.stringifyDocument=i}}),Ei=E({"../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/doc/Document.js"(e){var t=Hr(),n=Gr(),r=Y(),i=ei(),a=Br(),o=wi(),s=Ti(),c=Rr(),l=zr(),u=Wr(),d=Lr(),f=class e{static{x(this,`Document`)}constructor(e,t,n){this.commentBefore=null,this.comment=null,this.errors=[],this.warnings=[],Object.defineProperty(this,r.NODE_TYPE,{value:r.DOC});let i=null;typeof t==`function`||Array.isArray(t)?i=t:n===void 0&&t&&(n=t,t=void 0);let a=Object.assign({intAsBigInt:!1,keepSourceTokens:!1,logLevel:`warn`,prettyErrors:!0,strict:!0,stringKeys:!1,uniqueKeys:!0,version:`1.2`},n);this.options=a;let{version:o}=a;n?._directives?(this.directives=n._directives.atDocument(),this.directives.yaml.explicit&&(o=this.directives.yaml.version)):this.directives=new d.Directives({version:o}),this.setSchema(o,n),this.contents=e===void 0?null:this.createNode(e,i,n)}clone(){let t=Object.create(e.prototype,{[r.NODE_TYPE]:{value:r.DOC}});return t.commentBefore=this.commentBefore,t.comment=this.comment,t.errors=this.errors.slice(),t.warnings=this.warnings.slice(),t.options=Object.assign({},this.options),this.directives&&(t.directives=this.directives.clone()),t.schema=this.schema.clone(),t.contents=r.isNode(this.contents)?this.contents.clone(t.schema):this.contents,this.range&&(t.range=this.range.slice()),t}add(e){p(this.contents)&&this.contents.add(e)}addIn(e,t){p(this.contents)&&this.contents.addIn(e,t)}createAlias(e,n){if(!e.anchor){let t=c.anchorNames(this);e.anchor=!n||t.has(n)?c.findNewAnchor(n||`a`,t):n}return new t.Alias(e.anchor)}createNode(e,t,n){let i;if(typeof t==`function`)e=t.call({"":e},``,e),i=t;else if(Array.isArray(t)){let e=x(e=>typeof e==`number`||e instanceof String||e instanceof Number,`keyToStr`),n=t.filter(e).map(String);n.length>0&&(t=t.concat(n)),i=t}else n===void 0&&t&&(n=t,t=void 0);let{aliasDuplicateObjects:a,anchorPrefix:o,flow:s,keepUndefined:l,onTagObj:d,tag:f}=n??{},{onAnchor:p,setAnchors:m,sourceObjects:h}=c.createNodeAnchors(this,o||`a`),g={aliasDuplicateObjects:a??!0,keepUndefined:l??!1,onAnchor:p,onTagObj:d,replacer:i,schema:this.schema,sourceObjects:h},_=u.createNode(e,f,g);return s&&r.isCollection(_)&&(_.flow=!0),m(),_}createPair(e,t,n={}){let r=this.createNode(e,null,n),a=this.createNode(t,null,n);return new i.Pair(r,a)}delete(e){return p(this.contents)?this.contents.delete(e):!1}deleteIn(e){return n.isEmptyPath(e)?this.contents==null?!1:(this.contents=null,!0):p(this.contents)?this.contents.deleteIn(e):!1}get(e,t){return r.isCollection(this.contents)?this.contents.get(e,t):void 0}getIn(e,t){return n.isEmptyPath(e)?!t&&r.isScalar(this.contents)?this.contents.value:this.contents:r.isCollection(this.contents)?this.contents.getIn(e,t):void 0}has(e){return r.isCollection(this.contents)?this.contents.has(e):!1}hasIn(e){return n.isEmptyPath(e)?this.contents!==void 0:r.isCollection(this.contents)?this.contents.hasIn(e):!1}set(e,t){this.contents==null?this.contents=n.collectionFromPath(this.schema,[e],t):p(this.contents)&&this.contents.set(e,t)}setIn(e,t){n.isEmptyPath(e)?this.contents=t:this.contents==null?this.contents=n.collectionFromPath(this.schema,Array.from(e),t):p(this.contents)&&this.contents.setIn(e,t)}setSchema(e,t={}){typeof e==`number`&&(e=String(e));let n;switch(e){case`1.1`:this.directives?this.directives.yaml.version=`1.1`:this.directives=new d.Directives({version:`1.1`}),n={resolveKnownTags:!1,schema:`yaml-1.1`};break;case`1.2`:case`next`:this.directives?this.directives.yaml.version=e:this.directives=new d.Directives({version:e}),n={resolveKnownTags:!0,schema:`core`};break;case null:this.directives&&delete this.directives,n=null;break;default:{let t=JSON.stringify(e);throw Error(`Expected '1.1', '1.2' or null as first argument, but found: ${t}`)}}if(t.schema instanceof Object)this.schema=t.schema;else if(n)this.schema=new o.Schema(Object.assign(n,t));else throw Error(`With a null YAML version, the { schema: Schema } option is required`)}toJS({json:e,jsonArg:t,mapAsMap:n,maxAliasCount:r,onAnchor:i,reviver:o}={}){let s={anchors:new Map,doc:this,keep:!e,mapAsMap:n===!0,mapKeyWarned:!1,maxAliasCount:typeof r==`number`?r:100},c=a.toJS(this.contents,t??``,s);if(typeof i==`function`)for(let{count:e,res:t}of s.anchors.values())i(t,e);return typeof o==`function`?l.applyReviver(o,{"":c},``,c):c}toJSON(e,t){return this.toJS({json:!0,jsonArg:e,mapAsMap:!1,onAnchor:t})}toString(e={}){if(this.errors.length>0)throw Error(`Document with errors cannot be stringified`);if(`indent`in e&&(!Number.isInteger(e.indent)||Number(e.indent)<=0)){let t=JSON.stringify(e.indent);throw Error(`"indent" option must be a positive integer, not ${t}`)}return s.stringifyDocument(this,e)}};function p(e){if(r.isCollection(e))return!0;throw Error(`Expected a YAML collection as document contents`)}x(p,`assertCollection`),e.Document=f}}),Di=E({"../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/errors.js"(e){var t=class extends Error{static{x(this,`YAMLError`)}constructor(e,t,n,r){super(),this.name=e,this.code=n,this.message=r,this.pos=t}},n=class extends t{static{x(this,`YAMLParseError`)}constructor(e,t,n){super(`YAMLParseError`,e,t,n)}},r=class extends t{static{x(this,`YAMLWarning`)}constructor(e,t,n){super(`YAMLWarning`,e,t,n)}},i=x((e,t)=>n=>{if(n.pos[0]===-1)return;n.linePos=n.pos.map(e=>t.linePos(e));let{line:r,col:i}=n.linePos[0];n.message+=` at line ${r}, column ${i}`;let a=i-1,o=e.substring(t.lineStarts[r-1],t.lineStarts[r]).replace(/[\n\r]+$/,``);if(a>=60&&o.length>80){let e=Math.min(a-39,o.length-79);o=`…`+o.substring(e),a-=e-1}if(o.length>80&&(o=o.substring(0,79)+`…`),r>1&&/^ *$/.test(o.substring(0,a))){let n=e.substring(t.lineStarts[r-2],t.lineStarts[r-1]);n.length>80&&(n=n.substring(0,79)+`…
165
165
  `),o=n+o}if(/[^ ]/.test(o)){let e=1,t=n.linePos[1];t?.line===r&&t.col>i&&(e=Math.max(1,Math.min(t.col-i,80-a)));let s=` `.repeat(a)+`^`.repeat(e);n.message+=`:
166
166
 
167
167
  ${o}
168
168
  ${s}
169
- `}},`prettifyError`);e.YAMLError=t,e.YAMLParseError=n,e.YAMLWarning=r,e.prettifyError=i}}),Di=E({"../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/compose/resolve-props.js"(e){function t(e,{flow:t,indicator:n,next:r,offset:i,onError:a,parentIndent:o,startOnNewline:s}){let c=!1,l=s,u=s,d=``,f=``,p=!1,m=!1,h=null,g=null,_=null,v=null,y=null,b=null,x=null;for(let i of e)switch(m&&=(i.type!==`space`&&i.type!==`newline`&&i.type!==`comma`&&a(i.offset,`MISSING_CHAR`,`Tags and anchors must be separated from the next token by white space`),!1),h&&=(l&&i.type!==`comment`&&i.type!==`newline`&&a(h,`TAB_AS_INDENT`,`Tabs are not allowed as indentation`),null),i.type){case`space`:!t&&(n!==`doc-start`||r?.type!==`flow-collection`)&&i.source.includes(` `)&&(h=i),u=!0;break;case`comment`:{u||a(i,`MISSING_CHAR`,`Comments must be separated from other tokens by white space characters`);let e=i.source.substring(1)||` `;d?d+=f+e:d=e,f=``,l=!1;break}case`newline`:l?d?d+=i.source:(!b||n!==`seq-item-ind`)&&(c=!0):f+=i.source,l=!0,p=!0,(g||_)&&(v=i),u=!0;break;case`anchor`:g&&a(i,`MULTIPLE_ANCHORS`,`A node can have at most one anchor`),i.source.endsWith(`:`)&&a(i.offset+i.source.length-1,`BAD_ALIAS`,`Anchor ending in : is ambiguous`,!0),g=i,x??=i.offset,l=!1,u=!1,m=!0;break;case`tag`:_&&a(i,`MULTIPLE_TAGS`,`A node can have at most one tag`),_=i,x??=i.offset,l=!1,u=!1,m=!0;break;case n:(g||_)&&a(i,`BAD_PROP_ORDER`,`Anchors and tags must be after the ${i.source} indicator`),b&&a(i,`UNEXPECTED_TOKEN`,`Unexpected ${i.source} in ${t??`collection`}`),b=i,l=n===`seq-item-ind`||n===`explicit-key-ind`,u=!1;break;case`comma`:if(t){y&&a(i,`UNEXPECTED_TOKEN`,`Unexpected , in ${t}`),y=i,l=!1,u=!1;break}default:a(i,`UNEXPECTED_TOKEN`,`Unexpected ${i.type} token`),l=!1,u=!1}let S=e[e.length-1],C=S?S.offset+S.source.length:i;return m&&r&&r.type!==`space`&&r.type!==`newline`&&r.type!==`comma`&&(r.type!==`scalar`||r.source!==``)&&a(r.offset,`MISSING_CHAR`,`Tags and anchors must be separated from the next token by white space`),h&&(l&&h.indent<=o||r?.type===`block-map`||r?.type===`block-seq`)&&a(h,`TAB_AS_INDENT`,`Tabs are not allowed as indentation`),{comma:y,found:b,spaceBefore:c,comment:d,hasNewline:p,anchor:g,tag:_,newlineAfterProp:v,end:C,start:x??C}}x(t,`resolveProps`),e.resolveProps=t}}),Oi=E({"../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/compose/util-contains-newline.js"(e){function t(e){if(!e)return null;switch(e.type){case`alias`:case`scalar`:case`double-quoted-scalar`:case`single-quoted-scalar`:if(e.source.includes(`
170
- `))return!0;if(e.end){for(let t of e.end)if(t.type===`newline`)return!0}return!1;case`flow-collection`:for(let n of e.items){for(let e of n.start)if(e.type===`newline`)return!0;if(n.sep){for(let e of n.sep)if(e.type===`newline`)return!0}if(t(n.key)||t(n.value))return!0}return!1;default:return!0}}x(t,`containsNewline`),e.containsNewline=t}}),ki=E({"../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/compose/util-flow-indent-check.js"(e){var t=Oi();function n(e,n,r){if(n?.type===`flow-collection`){let i=n.end[0];i.indent===e&&(i.source===`]`||i.source===`}`)&&t.containsNewline(n)&&r(i,`BAD_INDENT`,`Flow end indicator should be more indented than parent`,!0)}}x(n,`flowIndentCheck`),e.flowIndentCheck=n}}),Ai=E({"../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/compose/util-map-includes.js"(e){var t=Y();function n(e,n,r){let{uniqueKeys:i}=e.options;if(i===!1)return!1;let a=typeof i==`function`?i:(e,n)=>e===n||t.isScalar(e)&&t.isScalar(n)&&e.value===n.value;return n.some(e=>a(e.key,r))}x(n,`mapIncludes`),e.mapIncludes=n}}),ji=E({"../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/compose/resolve-block-map.js"(e){var t=$r(),n=ti(),r=Di(),i=Oi(),a=ki(),o=Ai(),s=`All mapping items must start at the same column`;function c({composeNode:e,composeEmptyNode:c},l,u,d,f){let p=new(f?.nodeClass??n.YAMLMap)(l.schema);l.atRoot&&=!1;let m=u.offset,h=null;for(let n of u.items){let{start:f,key:g,sep:_,value:v}=n,y=r.resolveProps(f,{indicator:`explicit-key-ind`,next:g??_?.[0],offset:m,onError:d,parentIndent:u.indent,startOnNewline:!0}),b=!y.found;if(b){if(g&&(g.type===`block-seq`?d(m,`BLOCK_AS_IMPLICIT_KEY`,`A block sequence may not be used as an implicit map key`):`indent`in g&&g.indent!==u.indent&&d(m,`BAD_INDENT`,s)),!y.anchor&&!y.tag&&!_){h=y.end,y.comment&&(p.comment?p.comment+=`
169
+ `}},`prettifyError`);e.YAMLError=t,e.YAMLParseError=n,e.YAMLWarning=r,e.prettifyError=i}}),Oi=E({"../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/compose/resolve-props.js"(e){function t(e,{flow:t,indicator:n,next:r,offset:i,onError:a,parentIndent:o,startOnNewline:s}){let c=!1,l=s,u=s,d=``,f=``,p=!1,m=!1,h=null,g=null,_=null,v=null,y=null,b=null,x=null;for(let i of e)switch(m&&=(i.type!==`space`&&i.type!==`newline`&&i.type!==`comma`&&a(i.offset,`MISSING_CHAR`,`Tags and anchors must be separated from the next token by white space`),!1),h&&=(l&&i.type!==`comment`&&i.type!==`newline`&&a(h,`TAB_AS_INDENT`,`Tabs are not allowed as indentation`),null),i.type){case`space`:!t&&(n!==`doc-start`||r?.type!==`flow-collection`)&&i.source.includes(` `)&&(h=i),u=!0;break;case`comment`:{u||a(i,`MISSING_CHAR`,`Comments must be separated from other tokens by white space characters`);let e=i.source.substring(1)||` `;d?d+=f+e:d=e,f=``,l=!1;break}case`newline`:l?d?d+=i.source:(!b||n!==`seq-item-ind`)&&(c=!0):f+=i.source,l=!0,p=!0,(g||_)&&(v=i),u=!0;break;case`anchor`:g&&a(i,`MULTIPLE_ANCHORS`,`A node can have at most one anchor`),i.source.endsWith(`:`)&&a(i.offset+i.source.length-1,`BAD_ALIAS`,`Anchor ending in : is ambiguous`,!0),g=i,x??=i.offset,l=!1,u=!1,m=!0;break;case`tag`:_&&a(i,`MULTIPLE_TAGS`,`A node can have at most one tag`),_=i,x??=i.offset,l=!1,u=!1,m=!0;break;case n:(g||_)&&a(i,`BAD_PROP_ORDER`,`Anchors and tags must be after the ${i.source} indicator`),b&&a(i,`UNEXPECTED_TOKEN`,`Unexpected ${i.source} in ${t??`collection`}`),b=i,l=n===`seq-item-ind`||n===`explicit-key-ind`,u=!1;break;case`comma`:if(t){y&&a(i,`UNEXPECTED_TOKEN`,`Unexpected , in ${t}`),y=i,l=!1,u=!1;break}default:a(i,`UNEXPECTED_TOKEN`,`Unexpected ${i.type} token`),l=!1,u=!1}let S=e[e.length-1],C=S?S.offset+S.source.length:i;return m&&r&&r.type!==`space`&&r.type!==`newline`&&r.type!==`comma`&&(r.type!==`scalar`||r.source!==``)&&a(r.offset,`MISSING_CHAR`,`Tags and anchors must be separated from the next token by white space`),h&&(l&&h.indent<=o||r?.type===`block-map`||r?.type===`block-seq`)&&a(h,`TAB_AS_INDENT`,`Tabs are not allowed as indentation`),{comma:y,found:b,spaceBefore:c,comment:d,hasNewline:p,anchor:g,tag:_,newlineAfterProp:v,end:C,start:x??C}}x(t,`resolveProps`),e.resolveProps=t}}),ki=E({"../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/compose/util-contains-newline.js"(e){function t(e){if(!e)return null;switch(e.type){case`alias`:case`scalar`:case`double-quoted-scalar`:case`single-quoted-scalar`:if(e.source.includes(`
170
+ `))return!0;if(e.end){for(let t of e.end)if(t.type===`newline`)return!0}return!1;case`flow-collection`:for(let n of e.items){for(let e of n.start)if(e.type===`newline`)return!0;if(n.sep){for(let e of n.sep)if(e.type===`newline`)return!0}if(t(n.key)||t(n.value))return!0}return!1;default:return!0}}x(t,`containsNewline`),e.containsNewline=t}}),Ai=E({"../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/compose/util-flow-indent-check.js"(e){var t=ki();function n(e,n,r){if(n?.type===`flow-collection`){let i=n.end[0];i.indent===e&&(i.source===`]`||i.source===`}`)&&t.containsNewline(n)&&r(i,`BAD_INDENT`,`Flow end indicator should be more indented than parent`,!0)}}x(n,`flowIndentCheck`),e.flowIndentCheck=n}}),ji=E({"../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/compose/util-map-includes.js"(e){var t=Y();function n(e,n,r){let{uniqueKeys:i}=e.options;if(i===!1)return!1;let a=typeof i==`function`?i:(e,n)=>e===n||t.isScalar(e)&&t.isScalar(n)&&e.value===n.value;return n.some(e=>a(e.key,r))}x(n,`mapIncludes`),e.mapIncludes=n}}),Mi=E({"../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/compose/resolve-block-map.js"(e){var t=ei(),n=ni(),r=Oi(),i=ki(),a=Ai(),o=ji(),s=`All mapping items must start at the same column`;function c({composeNode:e,composeEmptyNode:c},l,u,d,f){let p=new(f?.nodeClass??n.YAMLMap)(l.schema);l.atRoot&&=!1;let m=u.offset,h=null;for(let n of u.items){let{start:f,key:g,sep:_,value:v}=n,y=r.resolveProps(f,{indicator:`explicit-key-ind`,next:g??_?.[0],offset:m,onError:d,parentIndent:u.indent,startOnNewline:!0}),b=!y.found;if(b){if(g&&(g.type===`block-seq`?d(m,`BLOCK_AS_IMPLICIT_KEY`,`A block sequence may not be used as an implicit map key`):`indent`in g&&g.indent!==u.indent&&d(m,`BAD_INDENT`,s)),!y.anchor&&!y.tag&&!_){h=y.end,y.comment&&(p.comment?p.comment+=`
171
171
  `+y.comment:p.comment=y.comment);continue}(y.newlineAfterProp||i.containsNewline(g))&&d(g??f[f.length-1],`MULTILINE_IMPLICIT_KEY`,`Implicit keys need to be on a single line`)}else y.found?.indent!==u.indent&&d(m,`BAD_INDENT`,s);l.atKey=!0;let x=y.end,S=g?e(l,g,y,d):c(l,x,f,null,y,d);l.schema.compat&&a.flowIndentCheck(u.indent,g,d),l.atKey=!1,o.mapIncludes(l,p.items,S)&&d(x,`DUPLICATE_KEY`,`Map keys must be unique`);let C=r.resolveProps(_??[],{indicator:`map-value-ind`,next:v,offset:S.range[2],onError:d,parentIndent:u.indent,startOnNewline:!g||g.type===`block-scalar`});if(m=C.end,C.found){b&&(v?.type===`block-map`&&!C.hasNewline&&d(m,`BLOCK_AS_IMPLICIT_KEY`,`Nested mappings are not allowed in compact mappings`),l.options.strict&&y.start<C.found.offset-1024&&d(S.range,`KEY_OVER_1024_CHARS`,`The : indicator must be at most 1024 chars after the start of an implicit block mapping key`));let r=v?e(l,v,C,d):c(l,m,_,null,C,d);l.schema.compat&&a.flowIndentCheck(u.indent,v,d),m=r.range[2];let i=new t.Pair(S,r);l.options.keepSourceTokens&&(i.srcToken=n),p.items.push(i)}else{b&&d(S.range,`MISSING_CHAR`,`Implicit map keys need to be followed by map values`),C.comment&&(S.comment?S.comment+=`
172
- `+C.comment:S.comment=C.comment);let e=new t.Pair(S);l.options.keepSourceTokens&&(e.srcToken=n),p.items.push(e)}}return h&&h<m&&d(h,`IMPOSSIBLE`,`Map comment with trailing content`),p.range=[u.offset,m,h??m],p}x(c,`resolveBlockMap`),e.resolveBlockMap=c}}),Mi=E({"../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/compose/resolve-block-seq.js"(e){var t=ri(),n=Di(),r=ki();function i({composeNode:e,composeEmptyNode:i},a,o,s,c){let l=new(c?.nodeClass??t.YAMLSeq)(a.schema);a.atRoot&&=!1,a.atKey&&=!1;let u=o.offset,d=null;for(let{start:t,value:c}of o.items){let f=n.resolveProps(t,{indicator:`seq-item-ind`,next:c,offset:u,onError:s,parentIndent:o.indent,startOnNewline:!0});if(!f.found)if(f.anchor||f.tag||c)c?.type===`block-seq`?s(f.end,`BAD_INDENT`,`All sequence items must start at the same column`):s(u,`MISSING_CHAR`,`Sequence item without - indicator`);else{d=f.end,f.comment&&(l.comment=f.comment);continue}let p=c?e(a,c,f,s):i(a,f.end,t,null,f,s);a.schema.compat&&r.flowIndentCheck(o.indent,c,s),u=p.range[2],l.items.push(p)}return l.range=[o.offset,u,d??u],l}x(i,`resolveBlockSeq`),e.resolveBlockSeq=i}}),Ni=E({"../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/compose/resolve-end.js"(e){function t(e,t,n,r){let i=``;if(e){let a=!1,o=``;for(let s of e){let{source:e,type:c}=s;switch(c){case`space`:a=!0;break;case`comment`:{n&&!a&&r(s,`MISSING_CHAR`,`Comments must be separated from other tokens by white space characters`);let t=e.substring(1)||` `;i?i+=o+t:i=t,o=``;break}case`newline`:i&&(o+=e),a=!0;break;default:r(s,`UNEXPECTED_TOKEN`,`Unexpected ${c} at node end`)}t+=e.length}}return{comment:i,offset:t}}x(t,`resolveEnd`),e.resolveEnd=t}}),Pi=E({"../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/compose/resolve-flow-collection.js"(e){var t=Y(),n=$r(),r=ti(),i=ri(),a=Ni(),o=Di(),s=Oi(),c=Ai(),l=`Block collections are not allowed within flow collections`,u=x(e=>e&&(e.type===`block-map`||e.type===`block-seq`),`isBlock`);function d({composeNode:e,composeEmptyNode:d},f,p,m,h){let g=p.start.source===`{`,_=g?`flow map`:`flow sequence`,v=new(h?.nodeClass??(g?r.YAMLMap:i.YAMLSeq))(f.schema);v.flow=!0;let y=f.atRoot;y&&(f.atRoot=!1),f.atKey&&=!1;let b=p.offset+p.start.source.length;for(let i=0;i<p.items.length;++i){let a=p.items[i],{start:h,key:y,sep:x,value:S}=a,C=o.resolveProps(h,{flow:_,indicator:`explicit-key-ind`,next:y??x?.[0],offset:b,onError:m,parentIndent:p.indent,startOnNewline:!1});if(!C.found){if(!C.anchor&&!C.tag&&!x&&!S){i===0&&C.comma?m(C.comma,`UNEXPECTED_TOKEN`,`Unexpected , in ${_}`):i<p.items.length-1&&m(C.start,`UNEXPECTED_TOKEN`,`Unexpected empty item in ${_}`),C.comment&&(v.comment?v.comment+=`
172
+ `+C.comment:S.comment=C.comment);let e=new t.Pair(S);l.options.keepSourceTokens&&(e.srcToken=n),p.items.push(e)}}return h&&h<m&&d(h,`IMPOSSIBLE`,`Map comment with trailing content`),p.range=[u.offset,m,h??m],p}x(c,`resolveBlockMap`),e.resolveBlockMap=c}}),Ni=E({"../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/compose/resolve-block-seq.js"(e){var t=ii(),n=Oi(),r=Ai();function i({composeNode:e,composeEmptyNode:i},a,o,s,c){let l=new(c?.nodeClass??t.YAMLSeq)(a.schema);a.atRoot&&=!1,a.atKey&&=!1;let u=o.offset,d=null;for(let{start:t,value:c}of o.items){let f=n.resolveProps(t,{indicator:`seq-item-ind`,next:c,offset:u,onError:s,parentIndent:o.indent,startOnNewline:!0});if(!f.found)if(f.anchor||f.tag||c)c?.type===`block-seq`?s(f.end,`BAD_INDENT`,`All sequence items must start at the same column`):s(u,`MISSING_CHAR`,`Sequence item without - indicator`);else{d=f.end,f.comment&&(l.comment=f.comment);continue}let p=c?e(a,c,f,s):i(a,f.end,t,null,f,s);a.schema.compat&&r.flowIndentCheck(o.indent,c,s),u=p.range[2],l.items.push(p)}return l.range=[o.offset,u,d??u],l}x(i,`resolveBlockSeq`),e.resolveBlockSeq=i}}),Pi=E({"../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/compose/resolve-end.js"(e){function t(e,t,n,r){let i=``;if(e){let a=!1,o=``;for(let s of e){let{source:e,type:c}=s;switch(c){case`space`:a=!0;break;case`comment`:{n&&!a&&r(s,`MISSING_CHAR`,`Comments must be separated from other tokens by white space characters`);let t=e.substring(1)||` `;i?i+=o+t:i=t,o=``;break}case`newline`:i&&(o+=e),a=!0;break;default:r(s,`UNEXPECTED_TOKEN`,`Unexpected ${c} at node end`)}t+=e.length}}return{comment:i,offset:t}}x(t,`resolveEnd`),e.resolveEnd=t}}),Fi=E({"../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/compose/resolve-flow-collection.js"(e){var t=Y(),n=ei(),r=ni(),i=ii(),a=Pi(),o=Oi(),s=ki(),c=ji(),l=`Block collections are not allowed within flow collections`,u=x(e=>e&&(e.type===`block-map`||e.type===`block-seq`),`isBlock`);function d({composeNode:e,composeEmptyNode:d},f,p,m,h){let g=p.start.source===`{`,_=g?`flow map`:`flow sequence`,v=new(h?.nodeClass??(g?r.YAMLMap:i.YAMLSeq))(f.schema);v.flow=!0;let y=f.atRoot;y&&(f.atRoot=!1),f.atKey&&=!1;let b=p.offset+p.start.source.length;for(let i=0;i<p.items.length;++i){let a=p.items[i],{start:h,key:y,sep:x,value:S}=a,C=o.resolveProps(h,{flow:_,indicator:`explicit-key-ind`,next:y??x?.[0],offset:b,onError:m,parentIndent:p.indent,startOnNewline:!1});if(!C.found){if(!C.anchor&&!C.tag&&!x&&!S){i===0&&C.comma?m(C.comma,`UNEXPECTED_TOKEN`,`Unexpected , in ${_}`):i<p.items.length-1&&m(C.start,`UNEXPECTED_TOKEN`,`Unexpected empty item in ${_}`),C.comment&&(v.comment?v.comment+=`
173
173
  `+C.comment:v.comment=C.comment),b=C.end;continue}!g&&f.options.strict&&s.containsNewline(y)&&m(y,`MULTILINE_IMPLICIT_KEY`,`Implicit keys of flow sequence pairs need to be on a single line`)}if(i===0)C.comma&&m(C.comma,`UNEXPECTED_TOKEN`,`Unexpected , in ${_}`);else if(C.comma||m(C.start,`MISSING_CHAR`,`Missing , between ${_} items`),C.comment){let e=``;loop:for(let t of h)switch(t.type){case`comma`:case`space`:break;case`comment`:e=t.source.substring(1);break loop;default:break loop}if(e){let n=v.items[v.items.length-1];t.isPair(n)&&(n=n.value??n.key),n.comment?n.comment+=`
174
174
  `+e:n.comment=e,C.comment=C.comment.substring(e.length+1)}}if(!g&&!x&&!C.found){let t=S?e(f,S,C,m):d(f,C.end,x,null,C,m);v.items.push(t),b=t.range[2],u(S)&&m(t.range,`BLOCK_IN_FLOW`,l)}else{f.atKey=!0;let t=C.end,i=y?e(f,y,C,m):d(f,t,h,null,C,m);u(y)&&m(i.range,`BLOCK_IN_FLOW`,l),f.atKey=!1;let s=o.resolveProps(x??[],{flow:_,indicator:`map-value-ind`,next:S,offset:i.range[2],onError:m,parentIndent:p.indent,startOnNewline:!1});if(s.found){if(!g&&!C.found&&f.options.strict){if(x)for(let e of x){if(e===s.found)break;if(e.type===`newline`){m(e,`MULTILINE_IMPLICIT_KEY`,`Implicit keys of flow sequence pairs need to be on a single line`);break}}C.start<s.found.offset-1024&&m(s.found,`KEY_OVER_1024_CHARS`,`The : indicator must be at most 1024 chars after the start of an implicit flow sequence key`)}}else S&&(`source`in S&&S.source?.[0]===`:`?m(S,`MISSING_CHAR`,`Missing space after : in ${_}`):m(s.start,`MISSING_CHAR`,`Missing , or : between ${_} items`));let w=S?e(f,S,s,m):s.found?d(f,s.end,x,null,s,m):null;w?u(S)&&m(w.range,`BLOCK_IN_FLOW`,l):s.comment&&(i.comment?i.comment+=`
175
175
  `+s.comment:i.comment=s.comment);let T=new n.Pair(i,w);if(f.options.keepSourceTokens&&(T.srcToken=a),g){let e=v;c.mapIncludes(f,e.items,i)&&m(t,`DUPLICATE_KEY`,`Map keys must be unique`),e.items.push(T)}else{let e=new r.YAMLMap(f.schema);e.flow=!0,e.items.push(T);let t=(w??i).range;e.range=[i.range[0],t[1],t[2]],v.items.push(e)}b=w?w.range[2]:s.end}}let x=g?`}`:`]`,[S,...C]=p.end,w=b;if(S?.source===x)w=S.offset+S.source.length;else{let e=_[0].toUpperCase()+_.substring(1),t=y?`${e} must end with a ${x}`:`${e} in block collection must be sufficiently indented and end with a ${x}`;m(b,y?`MISSING_CHAR`:`BAD_INDENT`,t),S&&S.source.length!==1&&C.unshift(S)}if(C.length>0){let e=a.resolveEnd(C,w,f.options.strict,m);e.comment&&(v.comment?v.comment+=`
176
- `+e.comment:v.comment=e.comment),v.range=[p.offset,w,e.offset]}else v.range=[p.offset,w,w];return v}x(d,`resolveFlowCollection`),e.resolveFlowCollection=d}}),Fi=E({"../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/compose/compose-collection.js"(e){var t=Y(),n=Hr(),r=ti(),i=ri(),a=ji(),o=Mi(),s=Pi();function c(e,t,n,r,i,c){let l=n.type===`block-map`?a.resolveBlockMap(e,t,n,r,c):n.type===`block-seq`?o.resolveBlockSeq(e,t,n,r,c):s.resolveFlowCollection(e,t,n,r,c),u=l.constructor;return i===`!`||i===u.tagName?(l.tag=u.tagName,l):(i&&(l.tag=i),l)}x(c,`resolveCollection`);function l(e,a,o,s,l){let u=s.tag,d=u?a.directives.tagName(u.source,e=>l(u,`TAG_RESOLVE_FAILED`,e)):null;if(o.type===`block-seq`){let{anchor:e,newlineAfterProp:t}=s,n=e&&u?e.offset>u.offset?e:u:e??u;n&&(!t||t.offset<n.offset)&&l(n,`MISSING_CHAR`,`Missing newline after block sequence props`)}let f=o.type===`block-map`?`map`:o.type===`block-seq`?`seq`:o.start.source===`{`?`map`:`seq`;if(!u||!d||d===`!`||d===r.YAMLMap.tagName&&f===`map`||d===i.YAMLSeq.tagName&&f===`seq`)return c(e,a,o,l,d);let p=a.schema.tags.find(e=>e.tag===d&&e.collection===f);if(!p){let t=a.schema.knownTags[d];if(t?.collection===f)a.schema.tags.push(Object.assign({},t,{default:!1})),p=t;else return t?l(u,`BAD_COLLECTION_TYPE`,`${t.tag} used for ${f} collection, but expects ${t.collection??`scalar`}`,!0):l(u,`TAG_RESOLVE_FAILED`,`Unresolved tag: ${d}`,!0),c(e,a,o,l,d)}let m=c(e,a,o,l,d,p),h=p.resolve?.(m,e=>l(u,`TAG_RESOLVE_FAILED`,e),a.options)??m,g=t.isNode(h)?h:new n.Scalar(h);return g.range=m.range,g.tag=d,p?.format&&(g.format=p.format),g}x(l,`composeCollection`),e.composeCollection=l}}),Ii=E({"../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/compose/resolve-block-scalar.js"(e){var t=Hr();function n(e,n,a){let o=n.offset,s=r(n,e.options.strict,a);if(!s)return{value:``,type:null,comment:``,range:[o,o,o]};let c=s.mode===`>`?t.Scalar.BLOCK_FOLDED:t.Scalar.BLOCK_LITERAL,l=n.source?i(n.source):[],u=l.length;for(let e=l.length-1;e>=0;--e){let t=l[e][1];if(t===``||t===`\r`)u=e;else break}if(u===0){let e=s.chomp===`+`&&l.length>0?`
176
+ `+e.comment:v.comment=e.comment),v.range=[p.offset,w,e.offset]}else v.range=[p.offset,w,w];return v}x(d,`resolveFlowCollection`),e.resolveFlowCollection=d}}),Ii=E({"../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/compose/compose-collection.js"(e){var t=Y(),n=Ur(),r=ni(),i=ii(),a=Mi(),o=Ni(),s=Fi();function c(e,t,n,r,i,c){let l=n.type===`block-map`?a.resolveBlockMap(e,t,n,r,c):n.type===`block-seq`?o.resolveBlockSeq(e,t,n,r,c):s.resolveFlowCollection(e,t,n,r,c),u=l.constructor;return i===`!`||i===u.tagName?(l.tag=u.tagName,l):(i&&(l.tag=i),l)}x(c,`resolveCollection`);function l(e,a,o,s,l){let u=s.tag,d=u?a.directives.tagName(u.source,e=>l(u,`TAG_RESOLVE_FAILED`,e)):null;if(o.type===`block-seq`){let{anchor:e,newlineAfterProp:t}=s,n=e&&u?e.offset>u.offset?e:u:e??u;n&&(!t||t.offset<n.offset)&&l(n,`MISSING_CHAR`,`Missing newline after block sequence props`)}let f=o.type===`block-map`?`map`:o.type===`block-seq`?`seq`:o.start.source===`{`?`map`:`seq`;if(!u||!d||d===`!`||d===r.YAMLMap.tagName&&f===`map`||d===i.YAMLSeq.tagName&&f===`seq`)return c(e,a,o,l,d);let p=a.schema.tags.find(e=>e.tag===d&&e.collection===f);if(!p){let t=a.schema.knownTags[d];if(t?.collection===f)a.schema.tags.push(Object.assign({},t,{default:!1})),p=t;else return t?l(u,`BAD_COLLECTION_TYPE`,`${t.tag} used for ${f} collection, but expects ${t.collection??`scalar`}`,!0):l(u,`TAG_RESOLVE_FAILED`,`Unresolved tag: ${d}`,!0),c(e,a,o,l,d)}let m=c(e,a,o,l,d,p),h=p.resolve?.(m,e=>l(u,`TAG_RESOLVE_FAILED`,e),a.options)??m,g=t.isNode(h)?h:new n.Scalar(h);return g.range=m.range,g.tag=d,p?.format&&(g.format=p.format),g}x(l,`composeCollection`),e.composeCollection=l}}),Li=E({"../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/compose/resolve-block-scalar.js"(e){var t=Ur();function n(e,n,a){let o=n.offset,s=r(n,e.options.strict,a);if(!s)return{value:``,type:null,comment:``,range:[o,o,o]};let c=s.mode===`>`?t.Scalar.BLOCK_FOLDED:t.Scalar.BLOCK_LITERAL,l=n.source?i(n.source):[],u=l.length;for(let e=l.length-1;e>=0;--e){let t=l[e][1];if(t===``||t===`\r`)u=e;else break}if(u===0){let e=s.chomp===`+`&&l.length>0?`
177
177
  `.repeat(Math.max(1,l.length-1)):``,t=o+s.length;return n.source&&(t+=n.source.length),{value:e,type:c,comment:s.comment,range:[o,t,t]}}let d=n.indent+s.indent,f=n.offset+s.length,p=0;for(let t=0;t<u;++t){let[n,r]=l[t];if(r===``||r===`\r`)s.indent===0&&n.length>d&&(d=n.length);else{n.length<d&&a(f+n.length,`MISSING_CHAR`,`Block scalars with more-indented leading empty lines must use an explicit indentation indicator`),s.indent===0&&(d=n.length),p=t,d===0&&!e.atRoot&&a(f,`BAD_INDENT`,`Block scalar values in collections must be indented`);break}f+=n.length+r.length+1}for(let e=l.length-1;e>=u;--e)l[e][0].length>d&&(u=e+1);let m=``,h=``,g=!1;for(let e=0;e<p;++e)m+=l[e][0].slice(d)+`
178
178
  `;for(let e=p;e<u;++e){let[n,r]=l[e];f+=n.length+r.length+1;let i=r[r.length-1]===`\r`;if(i&&(r=r.slice(0,-1)),r&&n.length<d){let e=`Block scalar lines must not be less indented than their ${s.indent?`explicit indentation indicator`:`first line`}`;a(f-r.length-(i?2:1),`BAD_INDENT`,e),n=``}c===t.Scalar.BLOCK_LITERAL?(m+=h+n.slice(d)+r,h=`
179
179
  `):n.length>d||r[0]===` `?(h===` `?h=`
@@ -188,7 +188,7 @@ ${s}
188
188
  `+l[e][0].slice(d);m[m.length-1]!==`
189
189
  `&&(m+=`
190
190
  `);break;default:m+=`
191
- `}let _=o+s.length+n.source.length;return{value:m,type:c,comment:s.comment,range:[o,_,_]}}x(n,`resolveBlockScalar`);function r({offset:e,props:t},n,r){if(t[0].type!==`block-scalar-header`)return r(t[0],`IMPOSSIBLE`,`Block scalar header not found`),null;let{source:i}=t[0],a=i[0],o=0,s=``,c=-1;for(let t=1;t<i.length;++t){let n=i[t];if(!s&&(n===`-`||n===`+`))s=n;else{let r=Number(n);!o&&r?o=r:c===-1&&(c=e+t)}}c!==-1&&r(c,`UNEXPECTED_TOKEN`,`Block scalar header includes extra characters: ${i}`);let l=!1,u=``,d=i.length;for(let e=1;e<t.length;++e){let i=t[e];switch(i.type){case`space`:l=!0;case`newline`:d+=i.source.length;break;case`comment`:n&&!l&&r(i,`MISSING_CHAR`,`Comments must be separated from other tokens by white space characters`),d+=i.source.length,u=i.source.substring(1);break;case`error`:r(i,`UNEXPECTED_TOKEN`,i.message),d+=i.source.length;break;default:{r(i,`UNEXPECTED_TOKEN`,`Unexpected token in block scalar header: ${i.type}`);let e=i.source;e&&typeof e==`string`&&(d+=e.length)}}}return{mode:a,indent:o,chomp:s,comment:u,length:d}}x(r,`parseBlockScalarHeader`);function i(e){let t=e.split(/\n( *)/),n=t[0],r=n.match(/^( *)/),i=[r?.[1]?[r[1],n.slice(r[1].length)]:[``,n]];for(let e=1;e<t.length;e+=2)i.push([t[e],t[e+1]]);return i}x(i,`splitLines`),e.resolveBlockScalar=n}}),Li=E({"../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/compose/resolve-flow-scalar.js"(e){var t=Hr(),n=Ni();function r(e,r,o){let{offset:c,type:l,source:u,end:d}=e,f,p,m=x((e,t,n)=>o(c+e,t,n),`_onError`);switch(l){case`scalar`:f=t.Scalar.PLAIN,p=i(u,m);break;case`single-quoted-scalar`:f=t.Scalar.QUOTE_SINGLE,p=a(u,m);break;case`double-quoted-scalar`:f=t.Scalar.QUOTE_DOUBLE,p=s(u,m);break;default:return o(e,`UNEXPECTED_TOKEN`,`Expected a flow scalar value, but found: ${l}`),{value:``,type:null,comment:``,range:[c,c+u.length,c+u.length]}}let h=c+u.length,g=n.resolveEnd(d,h,r,o);return{value:p,type:f,comment:g.comment,range:[c,h,g.offset]}}x(r,`resolveFlowScalar`);function i(e,t){let n=``;switch(e[0]){case` `:n=`a tab character`;break;case`,`:n=`flow indicator character ,`;break;case`%`:n=`directive indicator character %`;break;case`|`:case`>`:n=`block scalar indicator ${e[0]}`;break;case`@`:case"`":n=`reserved character ${e[0]}`;break}return n&&t(0,`BAD_SCALAR_START`,`Plain value cannot start with ${n}`),o(e)}x(i,`plainValue`);function a(e,t){return(e[e.length-1]!==`'`||e.length===1)&&t(e.length,`MISSING_CHAR`,`Missing closing 'quote`),o(e.slice(1,-1)).replace(/''/g,`'`)}x(a,`singleQuotedValue`);function o(e){let t,n;try{t=RegExp(`(.*?)(?<![ ])[ ]*\r?
191
+ `}let _=o+s.length+n.source.length;return{value:m,type:c,comment:s.comment,range:[o,_,_]}}x(n,`resolveBlockScalar`);function r({offset:e,props:t},n,r){if(t[0].type!==`block-scalar-header`)return r(t[0],`IMPOSSIBLE`,`Block scalar header not found`),null;let{source:i}=t[0],a=i[0],o=0,s=``,c=-1;for(let t=1;t<i.length;++t){let n=i[t];if(!s&&(n===`-`||n===`+`))s=n;else{let r=Number(n);!o&&r?o=r:c===-1&&(c=e+t)}}c!==-1&&r(c,`UNEXPECTED_TOKEN`,`Block scalar header includes extra characters: ${i}`);let l=!1,u=``,d=i.length;for(let e=1;e<t.length;++e){let i=t[e];switch(i.type){case`space`:l=!0;case`newline`:d+=i.source.length;break;case`comment`:n&&!l&&r(i,`MISSING_CHAR`,`Comments must be separated from other tokens by white space characters`),d+=i.source.length,u=i.source.substring(1);break;case`error`:r(i,`UNEXPECTED_TOKEN`,i.message),d+=i.source.length;break;default:{r(i,`UNEXPECTED_TOKEN`,`Unexpected token in block scalar header: ${i.type}`);let e=i.source;e&&typeof e==`string`&&(d+=e.length)}}}return{mode:a,indent:o,chomp:s,comment:u,length:d}}x(r,`parseBlockScalarHeader`);function i(e){let t=e.split(/\n( *)/),n=t[0],r=n.match(/^( *)/),i=[r?.[1]?[r[1],n.slice(r[1].length)]:[``,n]];for(let e=1;e<t.length;e+=2)i.push([t[e],t[e+1]]);return i}x(i,`splitLines`),e.resolveBlockScalar=n}}),Ri=E({"../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/compose/resolve-flow-scalar.js"(e){var t=Ur(),n=Pi();function r(e,r,o){let{offset:c,type:l,source:u,end:d}=e,f,p,m=x((e,t,n)=>o(c+e,t,n),`_onError`);switch(l){case`scalar`:f=t.Scalar.PLAIN,p=i(u,m);break;case`single-quoted-scalar`:f=t.Scalar.QUOTE_SINGLE,p=a(u,m);break;case`double-quoted-scalar`:f=t.Scalar.QUOTE_DOUBLE,p=s(u,m);break;default:return o(e,`UNEXPECTED_TOKEN`,`Expected a flow scalar value, but found: ${l}`),{value:``,type:null,comment:``,range:[c,c+u.length,c+u.length]}}let h=c+u.length,g=n.resolveEnd(d,h,r,o);return{value:p,type:f,comment:g.comment,range:[c,h,g.offset]}}x(r,`resolveFlowScalar`);function i(e,t){let n=``;switch(e[0]){case` `:n=`a tab character`;break;case`,`:n=`flow indicator character ,`;break;case`%`:n=`directive indicator character %`;break;case`|`:case`>`:n=`block scalar indicator ${e[0]}`;break;case`@`:case"`":n=`reserved character ${e[0]}`;break}return n&&t(0,`BAD_SCALAR_START`,`Plain value cannot start with ${n}`),o(e)}x(i,`plainValue`);function a(e,t){return(e[e.length-1]!==`'`||e.length===1)&&t(e.length,`MISSING_CHAR`,`Missing closing 'quote`),o(e.slice(1,-1)).replace(/''/g,`'`)}x(a,`singleQuotedValue`);function o(e){let t,n;try{t=RegExp(`(.*?)(?<![ ])[ ]*\r?
192
192
  `,`sy`),n=RegExp(`[ ]*(.*?)(?:(?<![ ])[ ]*)?\r?
193
193
  `,`sy`)}catch{t=/(.*?)[ \t]*\r?\n/sy,n=/[ \t]*(.*?)[ \t]*\r?\n/sy}let r=t.exec(e);if(!r)return e;let i=r[1],a=` `,o=t.lastIndex;for(n.lastIndex=o;r=n.exec(e);)r[1]===``?a===`
194
194
  `?i+=a:a=`
@@ -203,14 +203,14 @@ ${s}
203
203
  `);)r===`
204
204
  `&&(n+=`
205
205
  `),t+=1,r=e[t+1];return n||=` `,{fold:n,offset:t}}x(c,`foldNewline`);var l={0:`\0`,a:`\x07`,b:`\b`,e:`\x1B`,f:`\f`,n:`
206
- `,r:`\r`,t:` `,v:`\v`,N:`…`,_:`\xA0`,L:`\u2028`,P:`\u2029`," ":` `,'"':`"`,"/":`/`,"\\":`\\`," ":` `};function u(e,t,n,r){let i=e.substr(t,n),a=i.length===n&&/^[0-9a-fA-F]+$/.test(i)?parseInt(i,16):NaN;try{return String.fromCodePoint(a)}catch{let i=e.substr(t-2,n+2);return r(t-2,`BAD_DQ_ESCAPE`,`Invalid escape sequence ${i}`),i}}x(u,`parseCharCode`),e.resolveFlowScalar=r}}),Ri=E({"../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/compose/compose-scalar.js"(e){var t=Y(),n=Hr(),r=Ii(),i=Li();function a(e,a,c,l){let{value:u,type:d,comment:f,range:p}=a.type===`block-scalar`?r.resolveBlockScalar(e,a,l):i.resolveFlowScalar(a,e.options.strict,l),m=c?e.directives.tagName(c.source,e=>l(c,`TAG_RESOLVE_FAILED`,e)):null,h;h=e.options.stringKeys&&e.atKey?e.schema[t.SCALAR]:m?o(e.schema,u,m,c,l):a.type===`scalar`?s(e,u,a,l):e.schema[t.SCALAR];let g;try{let r=h.resolve(u,e=>l(c??a,`TAG_RESOLVE_FAILED`,e),e.options);g=t.isScalar(r)?r:new n.Scalar(r)}catch(e){let t=e instanceof Error?e.message:String(e);l(c??a,`TAG_RESOLVE_FAILED`,t),g=new n.Scalar(u)}return g.range=p,g.source=u,d&&(g.type=d),m&&(g.tag=m),h.format&&(g.format=h.format),f&&(g.comment=f),g}x(a,`composeScalar`);function o(e,n,r,i,a){if(r===`!`)return e[t.SCALAR];let o=[];for(let t of e.tags)if(!t.collection&&t.tag===r)if(t.default&&t.test)o.push(t);else return t;for(let e of o)if(e.test?.test(n))return e;let s=e.knownTags[r];return s&&!s.collection?(e.tags.push(Object.assign({},s,{default:!1,test:void 0})),s):(a(i,`TAG_RESOLVE_FAILED`,`Unresolved tag: ${r}`,r!==`tag:yaml.org,2002:str`),e[t.SCALAR])}x(o,`findScalarTagByName`);function s({atKey:e,directives:n,schema:r},i,a,o){let s=r.tags.find(t=>(t.default===!0||e&&t.default===`key`)&&t.test?.test(i))||r[t.SCALAR];if(r.compat){let e=r.compat.find(e=>e.default&&e.test?.test(i))??r[t.SCALAR];s.tag!==e.tag&&o(a,`TAG_RESOLVE_FAILED`,`Value may be parsed as either ${n.tagString(s.tag)} or ${n.tagString(e.tag)}`,!0)}return s}x(s,`findScalarTagByTest`),e.composeScalar=a}}),zi=E({"../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/compose/util-empty-scalar-position.js"(e){function t(e,t,n){if(t){n??=t.length;for(let r=n-1;r>=0;--r){let n=t[r];switch(n.type){case`space`:case`comment`:case`newline`:e-=n.source.length;continue}for(n=t[++r];n?.type===`space`;)e+=n.source.length,n=t[++r];break}}return e}x(t,`emptyScalarPosition`),e.emptyScalarPosition=t}}),Bi=E({"../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/compose/compose-node.js"(e){var t=Vr(),n=Y(),r=Fi(),i=Ri(),a=Ni(),o=zi(),s={composeNode:c,composeEmptyNode:l};function c(e,t,a,o){let c=e.atKey,{spaceBefore:d,comment:f,anchor:p,tag:m}=a,h,g=!0;switch(t.type){case`alias`:h=u(e,t,o),(p||m)&&o(t,`ALIAS_PROPS`,`An alias node must not specify any properties`);break;case`scalar`:case`single-quoted-scalar`:case`double-quoted-scalar`:case`block-scalar`:h=i.composeScalar(e,t,m,o),p&&(h.anchor=p.source.substring(1));break;case`block-map`:case`block-seq`:case`flow-collection`:try{h=r.composeCollection(s,e,t,a,o),p&&(h.anchor=p.source.substring(1))}catch(e){o(t,`RESOURCE_EXHAUSTION`,e instanceof Error?e.message:String(e))}break;default:o(t,`UNEXPECTED_TOKEN`,t.type===`error`?t.message:`Unsupported token (type: ${t.type})`),g=!1}return h??=l(e,t.offset,void 0,null,a,o),p&&h.anchor===``&&o(p,`BAD_ALIAS`,`Anchor cannot be an empty string`),c&&e.options.stringKeys&&(!n.isScalar(h)||typeof h.value!=`string`||h.tag&&h.tag!==`tag:yaml.org,2002:str`)&&o(m??t,`NON_STRING_KEY`,`With stringKeys, all keys must be strings`),d&&(h.spaceBefore=!0),f&&(t.type===`scalar`&&t.source===``?h.comment=f:h.commentBefore=f),e.options.keepSourceTokens&&g&&(h.srcToken=t),h}x(c,`composeNode`);function l(e,t,n,r,{spaceBefore:a,comment:s,anchor:c,tag:l,end:u},d){let f={type:`scalar`,offset:o.emptyScalarPosition(t,n,r),indent:-1,source:``},p=i.composeScalar(e,f,l,d);return c&&(p.anchor=c.source.substring(1),p.anchor===``&&d(c,`BAD_ALIAS`,`Anchor cannot be an empty string`)),a&&(p.spaceBefore=!0),s&&(p.comment=s,p.range[2]=u),p}x(l,`composeEmptyNode`);function u({options:e},{offset:n,source:r,end:i},o){let s=new t.Alias(r.substring(1));s.source===``&&o(n,`BAD_ALIAS`,`Alias cannot be an empty string`),s.source.endsWith(`:`)&&o(n+r.length-1,`BAD_ALIAS`,`Alias ending in : is ambiguous`,!0);let c=n+r.length,l=a.resolveEnd(i,c,e.strict,o);return s.range=[n,c,l.offset],l.comment&&(s.comment=l.comment),s}x(u,`composeAlias`),e.composeEmptyNode=l,e.composeNode=c}}),Vi=E({"../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/compose/compose-doc.js"(e){var t=Ti(),n=Bi(),r=Ni(),i=Di();function a(e,a,{offset:o,start:s,value:c,end:l},u){let d=Object.assign({_directives:a},e),f=new t.Document(void 0,d),p={atKey:!1,atRoot:!0,directives:f.directives,options:f.options,schema:f.schema},m=i.resolveProps(s,{indicator:`doc-start`,next:c??l?.[0],offset:o,onError:u,parentIndent:0,startOnNewline:!0});m.found&&(f.directives.docStart=!0,c&&(c.type===`block-map`||c.type===`block-seq`)&&!m.hasNewline&&u(m.end,`MISSING_CHAR`,`Block collection cannot start on same line with directives-end marker`)),f.contents=c?n.composeNode(p,c,m,u):n.composeEmptyNode(p,m.end,s,null,m,u);let h=f.contents.range[2],g=r.resolveEnd(l,h,!1,u);return g.comment&&(f.comment=g.comment),f.range=[o,h,g.offset],f}x(a,`composeDoc`),e.composeDoc=a}}),Hi=E({"../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/compose/composer.js"(e){var t=b(`process`),n=Ir(),r=Ti(),i=Ei(),a=Y(),o=Vi(),s=Ni();function c(e){if(typeof e==`number`)return[e,e+1];if(Array.isArray(e))return e.length===2?e:[e[0],e[1]];let{offset:t,source:n}=e;return[t,t+(typeof n==`string`?n.length:1)]}x(c,`getErrorPos`);function l(e){let t=``,n=!1,r=!1;for(let i=0;i<e.length;++i){let a=e[i];switch(a[0]){case`#`:t+=(t===``?``:r?`
206
+ `,r:`\r`,t:` `,v:`\v`,N:`…`,_:`\xA0`,L:`\u2028`,P:`\u2029`," ":` `,'"':`"`,"/":`/`,"\\":`\\`," ":` `};function u(e,t,n,r){let i=e.substr(t,n),a=i.length===n&&/^[0-9a-fA-F]+$/.test(i)?parseInt(i,16):NaN;try{return String.fromCodePoint(a)}catch{let i=e.substr(t-2,n+2);return r(t-2,`BAD_DQ_ESCAPE`,`Invalid escape sequence ${i}`),i}}x(u,`parseCharCode`),e.resolveFlowScalar=r}}),zi=E({"../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/compose/compose-scalar.js"(e){var t=Y(),n=Ur(),r=Li(),i=Ri();function a(e,a,c,l){let{value:u,type:d,comment:f,range:p}=a.type===`block-scalar`?r.resolveBlockScalar(e,a,l):i.resolveFlowScalar(a,e.options.strict,l),m=c?e.directives.tagName(c.source,e=>l(c,`TAG_RESOLVE_FAILED`,e)):null,h;h=e.options.stringKeys&&e.atKey?e.schema[t.SCALAR]:m?o(e.schema,u,m,c,l):a.type===`scalar`?s(e,u,a,l):e.schema[t.SCALAR];let g;try{let r=h.resolve(u,e=>l(c??a,`TAG_RESOLVE_FAILED`,e),e.options);g=t.isScalar(r)?r:new n.Scalar(r)}catch(e){let t=e instanceof Error?e.message:String(e);l(c??a,`TAG_RESOLVE_FAILED`,t),g=new n.Scalar(u)}return g.range=p,g.source=u,d&&(g.type=d),m&&(g.tag=m),h.format&&(g.format=h.format),f&&(g.comment=f),g}x(a,`composeScalar`);function o(e,n,r,i,a){if(r===`!`)return e[t.SCALAR];let o=[];for(let t of e.tags)if(!t.collection&&t.tag===r)if(t.default&&t.test)o.push(t);else return t;for(let e of o)if(e.test?.test(n))return e;let s=e.knownTags[r];return s&&!s.collection?(e.tags.push(Object.assign({},s,{default:!1,test:void 0})),s):(a(i,`TAG_RESOLVE_FAILED`,`Unresolved tag: ${r}`,r!==`tag:yaml.org,2002:str`),e[t.SCALAR])}x(o,`findScalarTagByName`);function s({atKey:e,directives:n,schema:r},i,a,o){let s=r.tags.find(t=>(t.default===!0||e&&t.default===`key`)&&t.test?.test(i))||r[t.SCALAR];if(r.compat){let e=r.compat.find(e=>e.default&&e.test?.test(i))??r[t.SCALAR];s.tag!==e.tag&&o(a,`TAG_RESOLVE_FAILED`,`Value may be parsed as either ${n.tagString(s.tag)} or ${n.tagString(e.tag)}`,!0)}return s}x(s,`findScalarTagByTest`),e.composeScalar=a}}),Bi=E({"../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/compose/util-empty-scalar-position.js"(e){function t(e,t,n){if(t){n??=t.length;for(let r=n-1;r>=0;--r){let n=t[r];switch(n.type){case`space`:case`comment`:case`newline`:e-=n.source.length;continue}for(n=t[++r];n?.type===`space`;)e+=n.source.length,n=t[++r];break}}return e}x(t,`emptyScalarPosition`),e.emptyScalarPosition=t}}),Vi=E({"../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/compose/compose-node.js"(e){var t=Hr(),n=Y(),r=Ii(),i=zi(),a=Pi(),o=Bi(),s={composeNode:c,composeEmptyNode:l};function c(e,t,a,o){let c=e.atKey,{spaceBefore:d,comment:f,anchor:p,tag:m}=a,h,g=!0;switch(t.type){case`alias`:h=u(e,t,o),(p||m)&&o(t,`ALIAS_PROPS`,`An alias node must not specify any properties`);break;case`scalar`:case`single-quoted-scalar`:case`double-quoted-scalar`:case`block-scalar`:h=i.composeScalar(e,t,m,o),p&&(h.anchor=p.source.substring(1));break;case`block-map`:case`block-seq`:case`flow-collection`:try{h=r.composeCollection(s,e,t,a,o),p&&(h.anchor=p.source.substring(1))}catch(e){o(t,`RESOURCE_EXHAUSTION`,e instanceof Error?e.message:String(e))}break;default:o(t,`UNEXPECTED_TOKEN`,t.type===`error`?t.message:`Unsupported token (type: ${t.type})`),g=!1}return h??=l(e,t.offset,void 0,null,a,o),p&&h.anchor===``&&o(p,`BAD_ALIAS`,`Anchor cannot be an empty string`),c&&e.options.stringKeys&&(!n.isScalar(h)||typeof h.value!=`string`||h.tag&&h.tag!==`tag:yaml.org,2002:str`)&&o(m??t,`NON_STRING_KEY`,`With stringKeys, all keys must be strings`),d&&(h.spaceBefore=!0),f&&(t.type===`scalar`&&t.source===``?h.comment=f:h.commentBefore=f),e.options.keepSourceTokens&&g&&(h.srcToken=t),h}x(c,`composeNode`);function l(e,t,n,r,{spaceBefore:a,comment:s,anchor:c,tag:l,end:u},d){let f={type:`scalar`,offset:o.emptyScalarPosition(t,n,r),indent:-1,source:``},p=i.composeScalar(e,f,l,d);return c&&(p.anchor=c.source.substring(1),p.anchor===``&&d(c,`BAD_ALIAS`,`Anchor cannot be an empty string`)),a&&(p.spaceBefore=!0),s&&(p.comment=s,p.range[2]=u),p}x(l,`composeEmptyNode`);function u({options:e},{offset:n,source:r,end:i},o){let s=new t.Alias(r.substring(1));s.source===``&&o(n,`BAD_ALIAS`,`Alias cannot be an empty string`),s.source.endsWith(`:`)&&o(n+r.length-1,`BAD_ALIAS`,`Alias ending in : is ambiguous`,!0);let c=n+r.length,l=a.resolveEnd(i,c,e.strict,o);return s.range=[n,c,l.offset],l.comment&&(s.comment=l.comment),s}x(u,`composeAlias`),e.composeEmptyNode=l,e.composeNode=c}}),Hi=E({"../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/compose/compose-doc.js"(e){var t=Ei(),n=Vi(),r=Pi(),i=Oi();function a(e,a,{offset:o,start:s,value:c,end:l},u){let d=Object.assign({_directives:a},e),f=new t.Document(void 0,d),p={atKey:!1,atRoot:!0,directives:f.directives,options:f.options,schema:f.schema},m=i.resolveProps(s,{indicator:`doc-start`,next:c??l?.[0],offset:o,onError:u,parentIndent:0,startOnNewline:!0});m.found&&(f.directives.docStart=!0,c&&(c.type===`block-map`||c.type===`block-seq`)&&!m.hasNewline&&u(m.end,`MISSING_CHAR`,`Block collection cannot start on same line with directives-end marker`)),f.contents=c?n.composeNode(p,c,m,u):n.composeEmptyNode(p,m.end,s,null,m,u);let h=f.contents.range[2],g=r.resolveEnd(l,h,!1,u);return g.comment&&(f.comment=g.comment),f.range=[o,h,g.offset],f}x(a,`composeDoc`),e.composeDoc=a}}),Ui=E({"../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/compose/composer.js"(e){var t=b(`process`),n=Lr(),r=Ei(),i=Di(),a=Y(),o=Hi(),s=Pi();function c(e){if(typeof e==`number`)return[e,e+1];if(Array.isArray(e))return e.length===2?e:[e[0],e[1]];let{offset:t,source:n}=e;return[t,t+(typeof n==`string`?n.length:1)]}x(c,`getErrorPos`);function l(e){let t=``,n=!1,r=!1;for(let i=0;i<e.length;++i){let a=e[i];switch(a[0]){case`#`:t+=(t===``?``:r?`
207
207
 
208
208
  `:`
209
209
  `)+(a.substring(1)||` `),n=!0,r=!1;break;case`%`:e[i+1]?.[0]!==`#`&&(i+=1),n=!1;break;default:n||(r=!0),n=!1}}return{comment:t,afterEmptyLine:r}}x(l,`parsePrelude`),e.Composer=class{static{x(this,`Composer`)}constructor(e={}){this.doc=null,this.atDirectives=!1,this.prelude=[],this.errors=[],this.warnings=[],this.onError=(e,t,n,r)=>{let a=c(e);r?this.warnings.push(new i.YAMLWarning(a,t,n)):this.errors.push(new i.YAMLParseError(a,t,n))},this.directives=new n.Directives({version:e.version||`1.2`}),this.options=e}decorate(e,t){let{comment:n,afterEmptyLine:r}=l(this.prelude);if(n){let i=e.contents;if(t)e.comment=e.comment?`${e.comment}
210
210
  ${n}`:n;else if(r||e.directives.docStart||!i)e.commentBefore=n;else if(a.isCollection(i)&&!i.flow&&i.items.length>0){let e=i.items[0];a.isPair(e)&&(e=e.key);let t=e.commentBefore;e.commentBefore=t?`${n}
211
211
  ${t}`:n}else{let e=i.commentBefore;i.commentBefore=e?`${n}
212
212
  ${e}`:n}}if(t){for(let t=0;t<this.errors.length;++t)e.errors.push(this.errors[t]);for(let t=0;t<this.warnings.length;++t)e.warnings.push(this.warnings[t])}else e.errors=this.errors,e.warnings=this.warnings;this.prelude=[],this.errors=[],this.warnings=[]}streamInfo(){return{comment:l(this.prelude).comment,directives:this.directives,errors:this.errors,warnings:this.warnings}}*compose(e,t=!1,n=-1){for(let t of e)yield*this.next(t);yield*this.end(t,n)}*next(e){switch(t.env.LOG_STREAM&&console.dir(e,{depth:null}),e.type){case`directive`:this.directives.add(e.source,(t,n,r)=>{let i=c(e);i[0]+=t,this.onError(i,`BAD_DIRECTIVE`,n,r)}),this.prelude.push(e.source),this.atDirectives=!0;break;case`document`:{let t=o.composeDoc(this.options,this.directives,e,this.onError);this.atDirectives&&!t.directives.docStart&&this.onError(e,`MISSING_CHAR`,`Missing directives-end/doc-start indicator line`),this.decorate(t,!1),this.doc&&(yield this.doc),this.doc=t,this.atDirectives=!1;break}case`byte-order-mark`:case`space`:break;case`comment`:case`newline`:this.prelude.push(e.source);break;case`error`:{let t=e.source?`${e.message}: ${JSON.stringify(e.source)}`:e.message,n=new i.YAMLParseError(c(e),`UNEXPECTED_TOKEN`,t);this.atDirectives||!this.doc?this.errors.push(n):this.doc.errors.push(n);break}case`doc-end`:{if(!this.doc){this.errors.push(new i.YAMLParseError(c(e),`UNEXPECTED_TOKEN`,`Unexpected doc-end without preceding document`));break}this.doc.directives.docEnd=!0;let t=s.resolveEnd(e.end,e.offset+e.source.length,this.doc.options.strict,this.onError);if(this.decorate(this.doc,!0),t.comment){let e=this.doc.comment;this.doc.comment=e?`${e}
213
- ${t.comment}`:t.comment}this.doc.range[2]=t.offset;break}default:this.errors.push(new i.YAMLParseError(c(e),`UNEXPECTED_TOKEN`,`Unsupported token ${e.type}`))}}*end(e=!1,t=-1){if(this.doc)this.decorate(this.doc,!0),yield this.doc,this.doc=null;else if(e){let e=Object.assign({_directives:this.directives},this.options),n=new r.Document(void 0,e);this.atDirectives&&this.onError(t,`MISSING_CHAR`,`Missing directives-end indicator line`),n.range=[0,t,t],this.decorate(n,!1),yield n}}}}}),Ui=E({"../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/parse/cst-scalar.js"(e){var t=Ii(),n=Li(),r=Ei(),i=qr();function a(e,i=!0,a){if(e){let o=x((e,t,n)=>{let i=typeof e==`number`?e:Array.isArray(e)?e[0]:e.offset;if(a)a(i,t,n);else throw new r.YAMLParseError([i,i+1],t,n)},`_onError`);switch(e.type){case`scalar`:case`single-quoted-scalar`:case`double-quoted-scalar`:return n.resolveFlowScalar(e,i,o);case`block-scalar`:return t.resolveBlockScalar({options:{strict:i}},e,o)}}return null}x(a,`resolveAsScalar`);function o(e,t){let{implicitKey:n=!1,indent:r,inFlow:a=!1,offset:o=-1,type:s=`PLAIN`}=t,c=i.stringifyString({type:s,value:e},{implicitKey:n,indent:r>0?` `.repeat(r):``,inFlow:a,options:{blockQuote:!0,lineWidth:-1}}),u=t.end??[{type:`newline`,offset:-1,indent:r,source:`
213
+ ${t.comment}`:t.comment}this.doc.range[2]=t.offset;break}default:this.errors.push(new i.YAMLParseError(c(e),`UNEXPECTED_TOKEN`,`Unsupported token ${e.type}`))}}*end(e=!1,t=-1){if(this.doc)this.decorate(this.doc,!0),yield this.doc,this.doc=null;else if(e){let e=Object.assign({_directives:this.directives},this.options),n=new r.Document(void 0,e);this.atDirectives&&this.onError(t,`MISSING_CHAR`,`Missing directives-end indicator line`),n.range=[0,t,t],this.decorate(n,!1),yield n}}}}}),Wi=E({"../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/parse/cst-scalar.js"(e){var t=Li(),n=Ri(),r=Di(),i=Jr();function a(e,i=!0,a){if(e){let o=x((e,t,n)=>{let i=typeof e==`number`?e:Array.isArray(e)?e[0]:e.offset;if(a)a(i,t,n);else throw new r.YAMLParseError([i,i+1],t,n)},`_onError`);switch(e.type){case`scalar`:case`single-quoted-scalar`:case`double-quoted-scalar`:return n.resolveFlowScalar(e,i,o);case`block-scalar`:return t.resolveBlockScalar({options:{strict:i}},e,o)}}return null}x(a,`resolveAsScalar`);function o(e,t){let{implicitKey:n=!1,indent:r,inFlow:a=!1,offset:o=-1,type:s=`PLAIN`}=t,c=i.stringifyString({type:s,value:e},{implicitKey:n,indent:r>0?` `.repeat(r):``,inFlow:a,options:{blockQuote:!0,lineWidth:-1}}),u=t.end??[{type:`newline`,offset:-1,indent:r,source:`
214
214
  `}];switch(c[0]){case`|`:case`>`:{let e=c.indexOf(`
215
215
  `),t=c.substring(0,e),n=c.substring(e+1)+`
216
216
  `,i=[{type:`block-scalar-header`,offset:o,indent:r,source:t}];return l(i,u)||i.push({type:`newline`,offset:-1,indent:r,source:`
@@ -218,9 +218,9 @@ ${t.comment}`:t.comment}this.doc.range[2]=t.offset;break}default:this.errors.pus
218
218
  `),r=t.substring(0,n),i=t.substring(n+1)+`
219
219
  `;if(e.type===`block-scalar`){let t=e.props[0];if(t.type!==`block-scalar-header`)throw Error(`Invalid block scalar header`);t.source=r,e.source=i}else{let{offset:t}=e,n=`indent`in e?e.indent:-1,a=[{type:`block-scalar-header`,offset:t,indent:n,source:r}];l(a,`end`in e?e.end:void 0)||a.push({type:`newline`,offset:-1,indent:n,source:`
220
220
  `});for(let t of Object.keys(e))t!==`type`&&t!==`offset`&&delete e[t];Object.assign(e,{type:`block-scalar`,indent:n,props:a,source:i})}}x(c,`setBlockScalarValue`);function l(e,t){if(t)for(let n of t)switch(n.type){case`space`:case`comment`:e.push(n);break;case`newline`:return e.push(n),!0}return!1}x(l,`addEndtoBlockProps`);function u(e,t,n){switch(e.type){case`scalar`:case`double-quoted-scalar`:case`single-quoted-scalar`:e.type=n,e.source=t;break;case`block-scalar`:{let r=e.props.slice(1),i=t.length;e.props[0].type===`block-scalar-header`&&(i-=e.props[0].source.length);for(let e of r)e.offset+=i;delete e.props,Object.assign(e,{type:n,source:t,end:r});break}case`block-map`:case`block-seq`:{let r={type:`newline`,offset:e.offset+t.length,indent:e.indent,source:`
221
- `};delete e.items,Object.assign(e,{type:n,source:t,end:[r]});break}default:{let r=`indent`in e?e.indent:-1,i=`end`in e&&Array.isArray(e.end)?e.end.filter(e=>e.type===`space`||e.type===`comment`||e.type===`newline`):[];for(let t of Object.keys(e))t!==`type`&&t!==`offset`&&delete e[t];Object.assign(e,{type:n,indent:r,source:t,end:i})}}}x(u,`setFlowScalarValue`),e.createScalarToken=o,e.resolveAsScalar=a,e.setScalarValue=s}}),Wi=E({"../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/parse/cst-stringify.js"(e){var t=x(e=>`type`in e?n(e):r(e),`stringify`);function n(e){switch(e.type){case`block-scalar`:{let t=``;for(let r of e.props)t+=n(r);return t+e.source}case`block-map`:case`block-seq`:{let t=``;for(let n of e.items)t+=r(n);return t}case`flow-collection`:{let t=e.start.source;for(let n of e.items)t+=r(n);for(let n of e.end)t+=n.source;return t}case`document`:{let t=r(e);if(e.end)for(let n of e.end)t+=n.source;return t}default:{let t=e.source;if(`end`in e&&e.end)for(let n of e.end)t+=n.source;return t}}}x(n,`stringifyToken`);function r({start:e,key:t,sep:r,value:i}){let a=``;for(let t of e)a+=t.source;if(t&&(a+=n(t)),r)for(let e of r)a+=e.source;return i&&(a+=n(i)),a}x(r,`stringifyItem`),e.stringify=t}}),Gi=E({"../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/parse/cst-visit.js"(e){var t=Symbol(`break visit`),n=Symbol(`skip children`),r=Symbol(`remove item`);function i(e,t){`type`in e&&e.type===`document`&&(e={start:e.start,value:e.value}),a(Object.freeze([]),e,t)}x(i,`visit`),i.BREAK=t,i.SKIP=n,i.REMOVE=r,i.itemAtPath=(e,t)=>{let n=e;for(let[e,r]of t){let t=n?.[e];if(t&&`items`in t)n=t.items[r];else return}return n},i.parentCollection=(e,t)=>{let n=i.itemAtPath(e,t.slice(0,-1)),r=t[t.length-1][0],a=n?.[r];if(a&&`items`in a)return a;throw Error(`Parent collection not found`)};function a(e,n,i){let o=i(n,e);if(typeof o==`symbol`)return o;for(let s of[`key`,`value`]){let c=n[s];if(c&&`items`in c){for(let n=0;n<c.items.length;++n){let o=a(Object.freeze(e.concat([[s,n]])),c.items[n],i);if(typeof o==`number`)n=o-1;else if(o===t)return t;else o===r&&(c.items.splice(n,1),--n)}typeof o==`function`&&s===`key`&&(o=o(n,e))}}return typeof o==`function`?o(n,e):o}x(a,`_visit`),e.visit=i}}),Ki=E({"../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/parse/cst.js"(e){var t=Ui(),n=Wi(),r=Gi(),i=``,a=``,o=``,s=``,c=x(e=>!!e&&`items`in e,`isCollection`),l=x(e=>!!e&&(e.type===`scalar`||e.type===`single-quoted-scalar`||e.type===`double-quoted-scalar`||e.type===`block-scalar`),`isScalar`);function u(e){switch(e){case i:return`<BOM>`;case a:return`<DOC>`;case o:return`<FLOW_END>`;case s:return`<SCALAR>`;default:return JSON.stringify(e)}}x(u,`prettyToken`);function d(e){switch(e){case i:return`byte-order-mark`;case a:return`doc-mode`;case o:return`flow-error-end`;case s:return`scalar`;case`---`:return`doc-start`;case`...`:return`doc-end`;case``:case`
221
+ `};delete e.items,Object.assign(e,{type:n,source:t,end:[r]});break}default:{let r=`indent`in e?e.indent:-1,i=`end`in e&&Array.isArray(e.end)?e.end.filter(e=>e.type===`space`||e.type===`comment`||e.type===`newline`):[];for(let t of Object.keys(e))t!==`type`&&t!==`offset`&&delete e[t];Object.assign(e,{type:n,indent:r,source:t,end:i})}}}x(u,`setFlowScalarValue`),e.createScalarToken=o,e.resolveAsScalar=a,e.setScalarValue=s}}),Gi=E({"../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/parse/cst-stringify.js"(e){var t=x(e=>`type`in e?n(e):r(e),`stringify`);function n(e){switch(e.type){case`block-scalar`:{let t=``;for(let r of e.props)t+=n(r);return t+e.source}case`block-map`:case`block-seq`:{let t=``;for(let n of e.items)t+=r(n);return t}case`flow-collection`:{let t=e.start.source;for(let n of e.items)t+=r(n);for(let n of e.end)t+=n.source;return t}case`document`:{let t=r(e);if(e.end)for(let n of e.end)t+=n.source;return t}default:{let t=e.source;if(`end`in e&&e.end)for(let n of e.end)t+=n.source;return t}}}x(n,`stringifyToken`);function r({start:e,key:t,sep:r,value:i}){let a=``;for(let t of e)a+=t.source;if(t&&(a+=n(t)),r)for(let e of r)a+=e.source;return i&&(a+=n(i)),a}x(r,`stringifyItem`),e.stringify=t}}),Ki=E({"../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/parse/cst-visit.js"(e){var t=Symbol(`break visit`),n=Symbol(`skip children`),r=Symbol(`remove item`);function i(e,t){`type`in e&&e.type===`document`&&(e={start:e.start,value:e.value}),a(Object.freeze([]),e,t)}x(i,`visit`),i.BREAK=t,i.SKIP=n,i.REMOVE=r,i.itemAtPath=(e,t)=>{let n=e;for(let[e,r]of t){let t=n?.[e];if(t&&`items`in t)n=t.items[r];else return}return n},i.parentCollection=(e,t)=>{let n=i.itemAtPath(e,t.slice(0,-1)),r=t[t.length-1][0],a=n?.[r];if(a&&`items`in a)return a;throw Error(`Parent collection not found`)};function a(e,n,i){let o=i(n,e);if(typeof o==`symbol`)return o;for(let s of[`key`,`value`]){let c=n[s];if(c&&`items`in c){for(let n=0;n<c.items.length;++n){let o=a(Object.freeze(e.concat([[s,n]])),c.items[n],i);if(typeof o==`number`)n=o-1;else if(o===t)return t;else o===r&&(c.items.splice(n,1),--n)}typeof o==`function`&&s===`key`&&(o=o(n,e))}}return typeof o==`function`?o(n,e):o}x(a,`_visit`),e.visit=i}}),qi=E({"../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/parse/cst.js"(e){var t=Wi(),n=Gi(),r=Ki(),i=``,a=``,o=``,s=``,c=x(e=>!!e&&`items`in e,`isCollection`),l=x(e=>!!e&&(e.type===`scalar`||e.type===`single-quoted-scalar`||e.type===`double-quoted-scalar`||e.type===`block-scalar`),`isScalar`);function u(e){switch(e){case i:return`<BOM>`;case a:return`<DOC>`;case o:return`<FLOW_END>`;case s:return`<SCALAR>`;default:return JSON.stringify(e)}}x(u,`prettyToken`);function d(e){switch(e){case i:return`byte-order-mark`;case a:return`doc-mode`;case o:return`flow-error-end`;case s:return`scalar`;case`---`:return`doc-start`;case`...`:return`doc-end`;case``:case`
222
222
  `:case`\r
223
- `:return`newline`;case`-`:return`seq-item-ind`;case`?`:return`explicit-key-ind`;case`:`:return`map-value-ind`;case`{`:return`flow-map-start`;case`}`:return`flow-map-end`;case`[`:return`flow-seq-start`;case`]`:return`flow-seq-end`;case`,`:return`comma`}switch(e[0]){case` `:case` `:return`space`;case`#`:return`comment`;case`%`:return`directive-line`;case`*`:return`alias`;case`&`:return`anchor`;case`!`:return`tag`;case`'`:return`single-quoted-scalar`;case`"`:return`double-quoted-scalar`;case`|`:case`>`:return`block-scalar-header`}return null}x(d,`tokenType`),e.createScalarToken=t.createScalarToken,e.resolveAsScalar=t.resolveAsScalar,e.setScalarValue=t.setScalarValue,e.stringify=n.stringify,e.visit=r.visit,e.BOM=i,e.DOCUMENT=a,e.FLOW_END=o,e.SCALAR=s,e.isCollection=c,e.isScalar=l,e.prettyToken=u,e.tokenType=d}}),qi=E({"../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/parse/lexer.js"(e){var t=Ki();function n(e){switch(e){case void 0:case` `:case`
223
+ `:return`newline`;case`-`:return`seq-item-ind`;case`?`:return`explicit-key-ind`;case`:`:return`map-value-ind`;case`{`:return`flow-map-start`;case`}`:return`flow-map-end`;case`[`:return`flow-seq-start`;case`]`:return`flow-seq-end`;case`,`:return`comma`}switch(e[0]){case` `:case` `:return`space`;case`#`:return`comment`;case`%`:return`directive-line`;case`*`:return`alias`;case`&`:return`anchor`;case`!`:return`tag`;case`'`:return`single-quoted-scalar`;case`"`:return`double-quoted-scalar`;case`|`:case`>`:return`block-scalar-header`}return null}x(d,`tokenType`),e.createScalarToken=t.createScalarToken,e.resolveAsScalar=t.resolveAsScalar,e.setScalarValue=t.setScalarValue,e.stringify=n.stringify,e.visit=r.visit,e.BOM=i,e.DOCUMENT=a,e.FLOW_END=o,e.SCALAR=s,e.isCollection=c,e.isScalar=l,e.prettyToken=u,e.tokenType=d}}),Ji=E({"../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/parse/lexer.js"(e){var t=qi();function n(e){switch(e){case void 0:case` `:case`
224
224
  `:case`\r`:case` `:return!0;default:return!1}}x(n,`isEmpty`);var r=new Set(`0123456789ABCDEFabcdef`),i=new Set(`0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-#;/?:@&=+$_.!~*'()`),a=new Set(`,[]{}`),o=new Set(` ,[]{}
225
225
  \r `),s=x(e=>!e||o.has(e),`isNotAnchorChar`);e.Lexer=class{static{x(this,`Lexer`)}constructor(){this.atEnd=!1,this.blockScalarIndent=-1,this.blockScalarKeep=!1,this.buffer=``,this.flowKey=!1,this.flowLevel=0,this.indentNext=0,this.indentValue=0,this.lineEndPos=null,this.next=null,this.pos=0}*lex(e,t=!1){if(e){if(typeof e!=`string`)throw TypeError(`source is not a string`);this.buffer=this.buffer?this.buffer+e:e,this.lineEndPos=null}this.atEnd=!t;let n=this.next??`stream`;for(;n&&(t||this.hasChars(1));)n=yield*this.parseNext(n)}atLineEnd(){let e=this.pos,t=this.buffer[e];for(;t===` `||t===` `;)t=this.buffer[++e];return!t||t===`#`||t===`
226
226
  `?!0:t===`\r`?this.buffer[e+1]===`
@@ -239,11 +239,11 @@ ${t.comment}`:t.comment}this.doc.range[2]=t.offset;break}default:this.errors.pus
239
239
  `,t=this.buffer[i+1]):r=i),t===`#`||e&&a.has(t))break;if(o===`
240
240
  `){let e=this.continueScalar(i+1);if(e===-1)break;i=Math.max(i,e-2)}}else{if(e&&a.has(o))break;r=i}return!o&&!this.atEnd?this.setNext(`plain-scalar`):(yield t.SCALAR,yield*this.pushToIndex(r+1,!0),e?`flow`:`doc`)}*pushCount(e){return e>0?(yield this.buffer.substr(this.pos,e),this.pos+=e,e):0}*pushToIndex(e,t){let n=this.buffer.slice(this.pos,e);return n?(yield n,this.pos+=n.length,n.length):(t&&(yield``),0)}*pushIndicators(){let e=0;loop:for(;;){switch(this.charAt(0)){case`!`:e+=yield*this.pushTag(),e+=yield*this.pushSpaces(!0);continue loop;case`&`:e+=yield*this.pushUntil(s),e+=yield*this.pushSpaces(!0);continue loop;case`-`:case`?`:case`:`:{let t=this.flowLevel>0,r=this.charAt(1);if(n(r)||t&&a.has(r)){t?this.flowKey&&=!1:this.indentNext=this.indentValue+1,e+=yield*this.pushCount(1),e+=yield*this.pushSpaces(!0);continue loop}}}break loop}return e}*pushTag(){if(this.charAt(1)===`<`){let e=this.pos+2,t=this.buffer[e];for(;!n(t)&&t!==`>`;)t=this.buffer[++e];return yield*this.pushToIndex(t===`>`?e+1:e,!1)}else{let e=this.pos+1,t=this.buffer[e];for(;t;)if(i.has(t))t=this.buffer[++e];else if(t===`%`&&r.has(this.buffer[e+1])&&r.has(this.buffer[e+2]))t=this.buffer[e+=3];else break;return yield*this.pushToIndex(e,!1)}}*pushNewline(){let e=this.buffer[this.pos];return e===`
241
241
  `?yield*this.pushCount(1):e===`\r`&&this.charAt(1)===`
242
- `?yield*this.pushCount(2):0}*pushSpaces(e){let t=this.pos-1,n;do n=this.buffer[++t];while(n===` `||e&&n===` `);let r=t-this.pos;return r>0&&(yield this.buffer.substr(this.pos,r),this.pos=t),r}*pushUntil(e){let t=this.pos,n=this.buffer[t];for(;!e(n);)n=this.buffer[++t];return yield*this.pushToIndex(t,!1)}}}}),Ji=E({"../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/parse/line-counter.js"(e){e.LineCounter=class{static{x(this,`LineCounter`)}constructor(){this.lineStarts=[],this.addNewLine=e=>this.lineStarts.push(e),this.linePos=e=>{let t=0,n=this.lineStarts.length;for(;t<n;){let r=t+n>>1;this.lineStarts[r]<e?t=r+1:n=r}if(this.lineStarts[t]===e)return{line:t+1,col:1};if(t===0)return{line:0,col:e};let r=this.lineStarts[t-1];return{line:t,col:e-r+1}}}}}}),Yi=E({"../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/parse/parser.js"(e){var t=b(`process`),n=Ki(),r=qi();function i(e,t){for(let n=0;n<e.length;++n)if(e[n].type===t)return!0;return!1}x(i,`includesToken`);function a(e){for(let t=0;t<e.length;++t)switch(e[t].type){case`space`:case`comment`:case`newline`:break;default:return t}return-1}x(a,`findNonEmptyIndex`);function o(e){switch(e?.type){case`alias`:case`scalar`:case`single-quoted-scalar`:case`double-quoted-scalar`:case`flow-collection`:return!0;default:return!1}}x(o,`isFlowToken`);function s(e){switch(e.type){case`document`:return e.start;case`block-map`:{let t=e.items[e.items.length-1];return t.sep??t.start}case`block-seq`:return e.items[e.items.length-1].start;default:return[]}}x(s,`getPrevProps`);function c(e){if(e.length===0)return[];let t=e.length;loop:for(;--t>=0;)switch(e[t].type){case`doc-start`:case`explicit-key-ind`:case`map-value-ind`:case`seq-item-ind`:case`newline`:break loop}for(;e[++t]?.type===`space`;);return e.splice(t,e.length)}x(c,`getFirstKeyStartProps`);function l(e,t){if(t.length<1e5)Array.prototype.push.apply(e,t);else for(let n=0;n<t.length;++n)e.push(t[n])}x(l,`arrayPushArray`);function u(e){if(e.start.type===`flow-seq-start`)for(let t of e.items)t.sep&&!t.value&&!i(t.start,`explicit-key-ind`)&&!i(t.sep,`map-value-ind`)&&(t.key&&(t.value=t.key),delete t.key,o(t.value)?t.value.end?l(t.value.end,t.sep):t.value.end=t.sep:l(t.start,t.sep),delete t.sep)}x(u,`fixFlowSeqItems`),e.Parser=class{static{x(this,`Parser`)}constructor(e){this.atNewLine=!0,this.atScalar=!1,this.indent=0,this.offset=0,this.onKeyLine=!1,this.stack=[],this.source=``,this.type=``,this.lexer=new r.Lexer,this.onNewLine=e}*parse(e,t=!1){this.onNewLine&&this.offset===0&&this.onNewLine(0);for(let n of this.lexer.lex(e,t))yield*this.next(n);t||(yield*this.end())}*next(e){if(this.source=e,t.env.LOG_TOKENS&&console.log(`|`,n.prettyToken(e)),this.atScalar){this.atScalar=!1,yield*this.step(),this.offset+=e.length;return}let r=n.tokenType(e);if(!r){let t=`Not a YAML token: ${e}`;yield*this.pop({type:`error`,offset:this.offset,message:t,source:e}),this.offset+=e.length}else if(r===`scalar`)this.atNewLine=!1,this.atScalar=!0,this.type=`scalar`;else{switch(this.type=r,yield*this.step(),r){case`newline`:this.atNewLine=!0,this.indent=0,this.onNewLine&&this.onNewLine(this.offset+e.length);break;case`space`:this.atNewLine&&e[0]===` `&&(this.indent+=e.length);break;case`explicit-key-ind`:case`map-value-ind`:case`seq-item-ind`:this.atNewLine&&(this.indent+=e.length);break;case`doc-mode`:case`flow-error-end`:return;default:this.atNewLine=!1}this.offset+=e.length}}*end(){for(;this.stack.length>0;)yield*this.pop()}get sourceToken(){return{type:this.type,offset:this.offset,indent:this.indent,source:this.source}}*step(){let e=this.peek(1);if(this.type===`doc-end`&&e?.type!==`doc-end`){for(;this.stack.length>0;)yield*this.pop();this.stack.push({type:`doc-end`,offset:this.offset,source:this.source});return}if(!e)return yield*this.stream();switch(e.type){case`document`:return yield*this.document(e);case`alias`:case`scalar`:case`single-quoted-scalar`:case`double-quoted-scalar`:return yield*this.scalar(e);case`block-scalar`:return yield*this.blockScalar(e);case`block-map`:return yield*this.blockMap(e);case`block-seq`:return yield*this.blockSequence(e);case`flow-collection`:return yield*this.flowCollection(e);case`doc-end`:return yield*this.documentEnd(e)}yield*this.pop()}peek(e){return this.stack[this.stack.length-e]}*pop(e){let t=e??this.stack.pop();if(!t)yield{type:`error`,offset:this.offset,source:``,message:`Tried to pop an empty stack`};else if(this.stack.length===0)yield t;else{let e=this.peek(1);switch(t.type===`block-scalar`?t.indent=`indent`in e?e.indent:0:t.type===`flow-collection`&&e.type===`document`&&(t.indent=0),t.type===`flow-collection`&&u(t),e.type){case`document`:e.value=t;break;case`block-scalar`:e.props.push(t);break;case`block-map`:{let n=e.items[e.items.length-1];if(n.value){e.items.push({start:[],key:t,sep:[]}),this.onKeyLine=!0;return}else if(n.sep)n.value=t;else{Object.assign(n,{key:t,sep:[]}),this.onKeyLine=!n.explicitKey;return}break}case`block-seq`:{let n=e.items[e.items.length-1];n.value?e.items.push({start:[],value:t}):n.value=t;break}case`flow-collection`:{let n=e.items[e.items.length-1];!n||n.value?e.items.push({start:[],key:t,sep:[]}):n.sep?n.value=t:Object.assign(n,{key:t,sep:[]});return}default:yield*this.pop(),yield*this.pop(t)}if((e.type===`document`||e.type===`block-map`||e.type===`block-seq`)&&(t.type===`block-map`||t.type===`block-seq`)){let n=t.items[t.items.length-1];n&&!n.sep&&!n.value&&n.start.length>0&&a(n.start)===-1&&(t.indent===0||n.start.every(e=>e.type!==`comment`||e.indent<t.indent))&&(e.type===`document`?e.end=n.start:e.items.push({start:n.start}),t.items.splice(-1,1))}}}*stream(){switch(this.type){case`directive-line`:yield{type:`directive`,offset:this.offset,source:this.source};return;case`byte-order-mark`:case`space`:case`comment`:case`newline`:yield this.sourceToken;return;case`doc-mode`:case`doc-start`:{let e={type:`document`,offset:this.offset,start:[]};this.type===`doc-start`&&e.start.push(this.sourceToken),this.stack.push(e);return}}yield{type:`error`,offset:this.offset,message:`Unexpected ${this.type} token in YAML stream`,source:this.source}}*document(e){if(e.value)return yield*this.lineEnd(e);switch(this.type){case`doc-start`:a(e.start)===-1?e.start.push(this.sourceToken):(yield*this.pop(),yield*this.step());return;case`anchor`:case`tag`:case`space`:case`comment`:case`newline`:e.start.push(this.sourceToken);return}let t=this.startBlockValue(e);t?this.stack.push(t):yield{type:`error`,offset:this.offset,message:`Unexpected ${this.type} token in YAML document`,source:this.source}}*scalar(e){if(this.type===`map-value-ind`){let t=c(s(this.peek(2))),n;e.end?(n=e.end,n.push(this.sourceToken),delete e.end):n=[this.sourceToken];let r={type:`block-map`,offset:e.offset,indent:e.indent,items:[{start:t,key:e,sep:n}]};this.onKeyLine=!0,this.stack[this.stack.length-1]=r}else yield*this.lineEnd(e)}*blockScalar(e){switch(this.type){case`space`:case`comment`:case`newline`:e.props.push(this.sourceToken);return;case`scalar`:if(e.source=this.source,this.atNewLine=!0,this.indent=0,this.onNewLine){let e=this.source.indexOf(`
242
+ `?yield*this.pushCount(2):0}*pushSpaces(e){let t=this.pos-1,n;do n=this.buffer[++t];while(n===` `||e&&n===` `);let r=t-this.pos;return r>0&&(yield this.buffer.substr(this.pos,r),this.pos=t),r}*pushUntil(e){let t=this.pos,n=this.buffer[t];for(;!e(n);)n=this.buffer[++t];return yield*this.pushToIndex(t,!1)}}}}),Yi=E({"../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/parse/line-counter.js"(e){e.LineCounter=class{static{x(this,`LineCounter`)}constructor(){this.lineStarts=[],this.addNewLine=e=>this.lineStarts.push(e),this.linePos=e=>{let t=0,n=this.lineStarts.length;for(;t<n;){let r=t+n>>1;this.lineStarts[r]<e?t=r+1:n=r}if(this.lineStarts[t]===e)return{line:t+1,col:1};if(t===0)return{line:0,col:e};let r=this.lineStarts[t-1];return{line:t,col:e-r+1}}}}}}),Xi=E({"../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/parse/parser.js"(e){var t=b(`process`),n=qi(),r=Ji();function i(e,t){for(let n=0;n<e.length;++n)if(e[n].type===t)return!0;return!1}x(i,`includesToken`);function a(e){for(let t=0;t<e.length;++t)switch(e[t].type){case`space`:case`comment`:case`newline`:break;default:return t}return-1}x(a,`findNonEmptyIndex`);function o(e){switch(e?.type){case`alias`:case`scalar`:case`single-quoted-scalar`:case`double-quoted-scalar`:case`flow-collection`:return!0;default:return!1}}x(o,`isFlowToken`);function s(e){switch(e.type){case`document`:return e.start;case`block-map`:{let t=e.items[e.items.length-1];return t.sep??t.start}case`block-seq`:return e.items[e.items.length-1].start;default:return[]}}x(s,`getPrevProps`);function c(e){if(e.length===0)return[];let t=e.length;loop:for(;--t>=0;)switch(e[t].type){case`doc-start`:case`explicit-key-ind`:case`map-value-ind`:case`seq-item-ind`:case`newline`:break loop}for(;e[++t]?.type===`space`;);return e.splice(t,e.length)}x(c,`getFirstKeyStartProps`);function l(e,t){if(t.length<1e5)Array.prototype.push.apply(e,t);else for(let n=0;n<t.length;++n)e.push(t[n])}x(l,`arrayPushArray`);function u(e){if(e.start.type===`flow-seq-start`)for(let t of e.items)t.sep&&!t.value&&!i(t.start,`explicit-key-ind`)&&!i(t.sep,`map-value-ind`)&&(t.key&&(t.value=t.key),delete t.key,o(t.value)?t.value.end?l(t.value.end,t.sep):t.value.end=t.sep:l(t.start,t.sep),delete t.sep)}x(u,`fixFlowSeqItems`),e.Parser=class{static{x(this,`Parser`)}constructor(e){this.atNewLine=!0,this.atScalar=!1,this.indent=0,this.offset=0,this.onKeyLine=!1,this.stack=[],this.source=``,this.type=``,this.lexer=new r.Lexer,this.onNewLine=e}*parse(e,t=!1){this.onNewLine&&this.offset===0&&this.onNewLine(0);for(let n of this.lexer.lex(e,t))yield*this.next(n);t||(yield*this.end())}*next(e){if(this.source=e,t.env.LOG_TOKENS&&console.log(`|`,n.prettyToken(e)),this.atScalar){this.atScalar=!1,yield*this.step(),this.offset+=e.length;return}let r=n.tokenType(e);if(!r){let t=`Not a YAML token: ${e}`;yield*this.pop({type:`error`,offset:this.offset,message:t,source:e}),this.offset+=e.length}else if(r===`scalar`)this.atNewLine=!1,this.atScalar=!0,this.type=`scalar`;else{switch(this.type=r,yield*this.step(),r){case`newline`:this.atNewLine=!0,this.indent=0,this.onNewLine&&this.onNewLine(this.offset+e.length);break;case`space`:this.atNewLine&&e[0]===` `&&(this.indent+=e.length);break;case`explicit-key-ind`:case`map-value-ind`:case`seq-item-ind`:this.atNewLine&&(this.indent+=e.length);break;case`doc-mode`:case`flow-error-end`:return;default:this.atNewLine=!1}this.offset+=e.length}}*end(){for(;this.stack.length>0;)yield*this.pop()}get sourceToken(){return{type:this.type,offset:this.offset,indent:this.indent,source:this.source}}*step(){let e=this.peek(1);if(this.type===`doc-end`&&e?.type!==`doc-end`){for(;this.stack.length>0;)yield*this.pop();this.stack.push({type:`doc-end`,offset:this.offset,source:this.source});return}if(!e)return yield*this.stream();switch(e.type){case`document`:return yield*this.document(e);case`alias`:case`scalar`:case`single-quoted-scalar`:case`double-quoted-scalar`:return yield*this.scalar(e);case`block-scalar`:return yield*this.blockScalar(e);case`block-map`:return yield*this.blockMap(e);case`block-seq`:return yield*this.blockSequence(e);case`flow-collection`:return yield*this.flowCollection(e);case`doc-end`:return yield*this.documentEnd(e)}yield*this.pop()}peek(e){return this.stack[this.stack.length-e]}*pop(e){let t=e??this.stack.pop();if(!t)yield{type:`error`,offset:this.offset,source:``,message:`Tried to pop an empty stack`};else if(this.stack.length===0)yield t;else{let e=this.peek(1);switch(t.type===`block-scalar`?t.indent=`indent`in e?e.indent:0:t.type===`flow-collection`&&e.type===`document`&&(t.indent=0),t.type===`flow-collection`&&u(t),e.type){case`document`:e.value=t;break;case`block-scalar`:e.props.push(t);break;case`block-map`:{let n=e.items[e.items.length-1];if(n.value){e.items.push({start:[],key:t,sep:[]}),this.onKeyLine=!0;return}else if(n.sep)n.value=t;else{Object.assign(n,{key:t,sep:[]}),this.onKeyLine=!n.explicitKey;return}break}case`block-seq`:{let n=e.items[e.items.length-1];n.value?e.items.push({start:[],value:t}):n.value=t;break}case`flow-collection`:{let n=e.items[e.items.length-1];!n||n.value?e.items.push({start:[],key:t,sep:[]}):n.sep?n.value=t:Object.assign(n,{key:t,sep:[]});return}default:yield*this.pop(),yield*this.pop(t)}if((e.type===`document`||e.type===`block-map`||e.type===`block-seq`)&&(t.type===`block-map`||t.type===`block-seq`)){let n=t.items[t.items.length-1];n&&!n.sep&&!n.value&&n.start.length>0&&a(n.start)===-1&&(t.indent===0||n.start.every(e=>e.type!==`comment`||e.indent<t.indent))&&(e.type===`document`?e.end=n.start:e.items.push({start:n.start}),t.items.splice(-1,1))}}}*stream(){switch(this.type){case`directive-line`:yield{type:`directive`,offset:this.offset,source:this.source};return;case`byte-order-mark`:case`space`:case`comment`:case`newline`:yield this.sourceToken;return;case`doc-mode`:case`doc-start`:{let e={type:`document`,offset:this.offset,start:[]};this.type===`doc-start`&&e.start.push(this.sourceToken),this.stack.push(e);return}}yield{type:`error`,offset:this.offset,message:`Unexpected ${this.type} token in YAML stream`,source:this.source}}*document(e){if(e.value)return yield*this.lineEnd(e);switch(this.type){case`doc-start`:a(e.start)===-1?e.start.push(this.sourceToken):(yield*this.pop(),yield*this.step());return;case`anchor`:case`tag`:case`space`:case`comment`:case`newline`:e.start.push(this.sourceToken);return}let t=this.startBlockValue(e);t?this.stack.push(t):yield{type:`error`,offset:this.offset,message:`Unexpected ${this.type} token in YAML document`,source:this.source}}*scalar(e){if(this.type===`map-value-ind`){let t=c(s(this.peek(2))),n;e.end?(n=e.end,n.push(this.sourceToken),delete e.end):n=[this.sourceToken];let r={type:`block-map`,offset:e.offset,indent:e.indent,items:[{start:t,key:e,sep:n}]};this.onKeyLine=!0,this.stack[this.stack.length-1]=r}else yield*this.lineEnd(e)}*blockScalar(e){switch(this.type){case`space`:case`comment`:case`newline`:e.props.push(this.sourceToken);return;case`scalar`:if(e.source=this.source,this.atNewLine=!0,this.indent=0,this.onNewLine){let e=this.source.indexOf(`
243
243
  `)+1;for(;e!==0;)this.onNewLine(this.offset+e),e=this.source.indexOf(`
244
244
  `,e)+1}yield*this.pop();break;default:yield*this.pop(),yield*this.step()}}*blockMap(e){let t=e.items[e.items.length-1];switch(this.type){case`newline`:if(this.onKeyLine=!1,t.value){let n=`end`in t.value?t.value.end:void 0;(Array.isArray(n)?n[n.length-1]:void 0)?.type===`comment`?n?.push(this.sourceToken):e.items.push({start:[this.sourceToken]})}else t.sep?t.sep.push(this.sourceToken):t.start.push(this.sourceToken);return;case`space`:case`comment`:if(t.value)e.items.push({start:[this.sourceToken]});else if(t.sep)t.sep.push(this.sourceToken);else{if(this.atIndentedComment(t.start,e.indent)){let n=e.items[e.items.length-2]?.value?.end;if(Array.isArray(n)){l(n,t.start),n.push(this.sourceToken),e.items.pop();return}}t.start.push(this.sourceToken)}return}if(this.indent>=e.indent){let n=!this.onKeyLine&&this.indent===e.indent,r=n&&(t.sep||t.explicitKey)&&this.type!==`seq-item-ind`,a=[];if(r&&t.sep&&!t.value){let n=[];for(let r=0;r<t.sep.length;++r){let i=t.sep[r];switch(i.type){case`newline`:n.push(r);break;case`space`:break;case`comment`:i.indent>e.indent&&(n.length=0);break;default:n.length=0}}n.length>=2&&(a=t.sep.splice(n[1]))}switch(this.type){case`anchor`:case`tag`:r||t.value?(a.push(this.sourceToken),e.items.push({start:a}),this.onKeyLine=!0):t.sep?t.sep.push(this.sourceToken):t.start.push(this.sourceToken);return;case`explicit-key-ind`:!t.sep&&!t.explicitKey?(t.start.push(this.sourceToken),t.explicitKey=!0):r||t.value?(a.push(this.sourceToken),e.items.push({start:a,explicitKey:!0})):this.stack.push({type:`block-map`,offset:this.offset,indent:this.indent,items:[{start:[this.sourceToken],explicitKey:!0}]}),this.onKeyLine=!0;return;case`map-value-ind`:if(t.explicitKey)if(!t.sep)if(i(t.start,`newline`))Object.assign(t,{key:null,sep:[this.sourceToken]});else{let e=c(t.start);this.stack.push({type:`block-map`,offset:this.offset,indent:this.indent,items:[{start:e,key:null,sep:[this.sourceToken]}]})}else if(t.value)e.items.push({start:[],key:null,sep:[this.sourceToken]});else if(i(t.sep,`map-value-ind`))this.stack.push({type:`block-map`,offset:this.offset,indent:this.indent,items:[{start:a,key:null,sep:[this.sourceToken]}]});else if(o(t.key)&&!i(t.sep,`newline`)){let e=c(t.start),n=t.key,r=t.sep;r.push(this.sourceToken),delete t.key,delete t.sep,this.stack.push({type:`block-map`,offset:this.offset,indent:this.indent,items:[{start:e,key:n,sep:r}]})}else a.length>0?t.sep=t.sep.concat(a,this.sourceToken):t.sep.push(this.sourceToken);else t.sep?t.value||r?e.items.push({start:a,key:null,sep:[this.sourceToken]}):i(t.sep,`map-value-ind`)?this.stack.push({type:`block-map`,offset:this.offset,indent:this.indent,items:[{start:[],key:null,sep:[this.sourceToken]}]}):t.sep.push(this.sourceToken):Object.assign(t,{key:null,sep:[this.sourceToken]});this.onKeyLine=!0;return;case`alias`:case`scalar`:case`single-quoted-scalar`:case`double-quoted-scalar`:{let n=this.flowScalar(this.type);r||t.value?(e.items.push({start:a,key:n,sep:[]}),this.onKeyLine=!0):t.sep?this.stack.push(n):(Object.assign(t,{key:n,sep:[]}),this.onKeyLine=!0);return}default:{let r=this.startBlockValue(e);if(r){if(r.type===`block-seq`){if(!t.explicitKey&&t.sep&&!i(t.sep,`newline`)){yield*this.pop({type:`error`,offset:this.offset,message:`Unexpected block-seq-ind on same line with key`,source:this.source});return}}else n&&e.items.push({start:a});this.stack.push(r);return}}}}yield*this.pop(),yield*this.step()}*blockSequence(e){let t=e.items[e.items.length-1];switch(this.type){case`newline`:if(t.value){let n=`end`in t.value?t.value.end:void 0;(Array.isArray(n)?n[n.length-1]:void 0)?.type===`comment`?n?.push(this.sourceToken):e.items.push({start:[this.sourceToken]})}else t.start.push(this.sourceToken);return;case`space`:case`comment`:if(t.value)e.items.push({start:[this.sourceToken]});else{if(this.atIndentedComment(t.start,e.indent)){let n=e.items[e.items.length-2]?.value?.end;if(Array.isArray(n)){l(n,t.start),n.push(this.sourceToken),e.items.pop();return}}t.start.push(this.sourceToken)}return;case`anchor`:case`tag`:if(t.value||this.indent<=e.indent)break;t.start.push(this.sourceToken);return;case`seq-item-ind`:if(this.indent!==e.indent)break;t.value||i(t.start,`seq-item-ind`)?e.items.push({start:[this.sourceToken]}):t.start.push(this.sourceToken);return}if(this.indent>e.indent){let t=this.startBlockValue(e);if(t){this.stack.push(t);return}}yield*this.pop(),yield*this.step()}*flowCollection(e){let t=e.items[e.items.length-1];if(this.type===`flow-error-end`){let e;do yield*this.pop(),e=this.peek(1);while(e?.type===`flow-collection`)}else if(e.end.length===0){switch(this.type){case`comma`:case`explicit-key-ind`:!t||t.sep?e.items.push({start:[this.sourceToken]}):t.start.push(this.sourceToken);return;case`map-value-ind`:!t||t.value?e.items.push({start:[],key:null,sep:[this.sourceToken]}):t.sep?t.sep.push(this.sourceToken):Object.assign(t,{key:null,sep:[this.sourceToken]});return;case`space`:case`comment`:case`newline`:case`anchor`:case`tag`:!t||t.value?e.items.push({start:[this.sourceToken]}):t.sep?t.sep.push(this.sourceToken):t.start.push(this.sourceToken);return;case`alias`:case`scalar`:case`single-quoted-scalar`:case`double-quoted-scalar`:{let n=this.flowScalar(this.type);!t||t.value?e.items.push({start:[],key:n,sep:[]}):t.sep?this.stack.push(n):Object.assign(t,{key:n,sep:[]});return}case`flow-map-end`:case`flow-seq-end`:e.end.push(this.sourceToken);return}let n=this.startBlockValue(e);n?this.stack.push(n):(yield*this.pop(),yield*this.step())}else{let t=this.peek(2);if(t.type===`block-map`&&(this.type===`map-value-ind`&&t.indent===e.indent||this.type===`newline`&&!t.items[t.items.length-1].sep))yield*this.pop(),yield*this.step();else if(this.type===`map-value-ind`&&t.type!==`flow-collection`){let n=c(s(t));u(e);let r=e.end.splice(1,e.end.length);r.push(this.sourceToken);let i={type:`block-map`,offset:e.offset,indent:e.indent,items:[{start:n,key:e,sep:r}]};this.onKeyLine=!0,this.stack[this.stack.length-1]=i}else yield*this.lineEnd(e)}}flowScalar(e){if(this.onNewLine){let e=this.source.indexOf(`
245
245
  `)+1;for(;e!==0;)this.onNewLine(this.offset+e),e=this.source.indexOf(`
246
- `,e)+1}return{type:e,offset:this.offset,indent:this.indent,source:this.source}}startBlockValue(e){switch(this.type){case`alias`:case`scalar`:case`single-quoted-scalar`:case`double-quoted-scalar`:return this.flowScalar(this.type);case`block-scalar-header`:return{type:`block-scalar`,offset:this.offset,indent:this.indent,props:[this.sourceToken],source:``};case`flow-map-start`:case`flow-seq-start`:return{type:`flow-collection`,offset:this.offset,indent:this.indent,start:this.sourceToken,items:[],end:[]};case`seq-item-ind`:return{type:`block-seq`,offset:this.offset,indent:this.indent,items:[{start:[this.sourceToken]}]};case`explicit-key-ind`:{this.onKeyLine=!0;let t=c(s(e));return t.push(this.sourceToken),{type:`block-map`,offset:this.offset,indent:this.indent,items:[{start:t,explicitKey:!0}]}}case`map-value-ind`:{this.onKeyLine=!0;let t=c(s(e));return{type:`block-map`,offset:this.offset,indent:this.indent,items:[{start:t,key:null,sep:[this.sourceToken]}]}}}return null}atIndentedComment(e,t){return this.type!==`comment`||this.indent<=t?!1:e.every(e=>e.type===`newline`||e.type===`space`)}*documentEnd(e){this.type!==`doc-mode`&&(e.end?e.end.push(this.sourceToken):e.end=[this.sourceToken],this.type===`newline`&&(yield*this.pop()))}*lineEnd(e){switch(this.type){case`comma`:case`doc-start`:case`doc-end`:case`flow-seq-end`:case`flow-map-end`:case`map-value-ind`:yield*this.pop(),yield*this.step();break;case`newline`:this.onKeyLine=!1;default:e.end?e.end.push(this.sourceToken):e.end=[this.sourceToken],this.type===`newline`&&(yield*this.pop())}}}}}),Xi=E({"../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/public-api.js"(e){var t=Hi(),n=Ti(),r=Ei(),i=Xr(),a=Y(),o=Ji(),s=Yi();function c(e){let t=e.prettyErrors!==!1;return{lineCounter:e.lineCounter||t&&new o.LineCounter||null,prettyErrors:t}}x(c,`parseOptions`);function l(e,n={}){let{lineCounter:i,prettyErrors:a}=c(n),o=new s.Parser(i?.addNewLine),l=new t.Composer(n),u=Array.from(l.compose(o.parse(e)));if(a&&i)for(let t of u)t.errors.forEach(r.prettifyError(e,i)),t.warnings.forEach(r.prettifyError(e,i));return u.length>0?u:Object.assign([],{empty:!0},l.streamInfo())}x(l,`parseAllDocuments`);function u(e,n={}){let{lineCounter:i,prettyErrors:a}=c(n),o=new s.Parser(i?.addNewLine),l=new t.Composer(n),u=null;for(let t of l.compose(o.parse(e),!0,e.length))if(!u)u=t;else if(u.options.logLevel!==`silent`){u.errors.push(new r.YAMLParseError(t.range.slice(0,2),`MULTIPLE_DOCS`,`Source contains multiple documents; please use YAML.parseAllDocuments()`));break}return a&&i&&(u.errors.forEach(r.prettifyError(e,i)),u.warnings.forEach(r.prettifyError(e,i))),u}x(u,`parseDocument`);function d(e,t,n){let r;typeof t==`function`?r=t:n===void 0&&t&&typeof t==`object`&&(n=t);let a=u(e,n);if(!a)return null;if(a.warnings.forEach(e=>i.warn(a.options.logLevel,e)),a.errors.length>0){if(a.options.logLevel!==`silent`)throw a.errors[0];a.errors=[]}return a.toJS(Object.assign({reviver:r},n))}x(d,`parse`);function f(e,t,r){let i=null;if(typeof t==`function`||Array.isArray(t)?i=t:r===void 0&&t&&(r=t),typeof r==`string`&&(r=r.length),typeof r==`number`){let e=Math.round(r);r=e<1?void 0:e>8?{indent:8}:{indent:e}}if(e===void 0){let{keepUndefined:e}=r??t??{};if(!e)return}return a.isDocument(e)&&!i?e.toString(r):new n.Document(e,i,r).toString(r)}x(f,`stringify`),e.parse=d,e.parseAllDocuments=l,e.parseDocument=u,e.stringify=f}}),Zi=E({"../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/index.js"(e){var t=Hi(),n=Ti(),r=Ci(),i=Ei(),a=Vr(),o=Y(),s=$r(),c=Hr(),l=ti(),u=ri(),d=Ki(),f=qi(),p=Ji(),m=Yi(),h=Xi(),g=Fr();e.Composer=t.Composer,e.Document=n.Document,e.Schema=r.Schema,e.YAMLError=i.YAMLError,e.YAMLParseError=i.YAMLParseError,e.YAMLWarning=i.YAMLWarning,e.Alias=a.Alias,e.isAlias=o.isAlias,e.isCollection=o.isCollection,e.isDocument=o.isDocument,e.isMap=o.isMap,e.isNode=o.isNode,e.isPair=o.isPair,e.isScalar=o.isScalar,e.isSeq=o.isSeq,e.Pair=s.Pair,e.Scalar=c.Scalar,e.YAMLMap=l.YAMLMap,e.YAMLSeq=u.YAMLSeq,e.CST=d,e.Lexer=f.Lexer,e.LineCounter=p.LineCounter,e.Parser=m.Parser,e.parse=h.parse,e.parseAllDocuments=h.parseAllDocuments,e.parseDocument=h.parseDocument,e.stringify=h.stringify,e.visit=g.visit,e.visitAsync=g.visitAsync}}),Qi=E({"../../node_modules/.pnpm/stackframe@1.3.4/node_modules/stackframe/stackframe.js"(e,t){(function(n,r){typeof define==`function`&&define.amd?define(`stackframe`,[],r):typeof e==`object`?t.exports=r():n.StackFrame=r()})(e,function(){function e(e){return!isNaN(parseFloat(e))&&isFinite(e)}x(e,`_isNumber`);function t(e){return e.charAt(0).toUpperCase()+e.substring(1)}x(t,`_capitalize`);function n(e){return function(){return this[e]}}x(n,`_getter`);var r=[`isConstructor`,`isEval`,`isNative`,`isToplevel`],i=[`columnNumber`,`lineNumber`],a=[`fileName`,`functionName`,`source`],o=r.concat(i,a,[`args`],[`evalOrigin`]);function s(e){if(e)for(var n=0;n<o.length;n++)e[o[n]]!==void 0&&this[`set`+t(o[n])](e[o[n]])}x(s,`StackFrame`),s.prototype={getArgs:x(function(){return this.args},`getArgs`),setArgs:x(function(e){if(Object.prototype.toString.call(e)!==`[object Array]`)throw TypeError(`Args must be an Array`);this.args=e},`setArgs`),getEvalOrigin:x(function(){return this.evalOrigin},`getEvalOrigin`),setEvalOrigin:x(function(e){if(e instanceof s)this.evalOrigin=e;else if(e instanceof Object)this.evalOrigin=new s(e);else throw TypeError(`Eval Origin must be an Object or StackFrame`)},`setEvalOrigin`),toString:x(function(){var e=this.getFileName()||``,t=this.getLineNumber()||``,n=this.getColumnNumber()||``,r=this.getFunctionName()||``;return this.getIsEval()?e?`[eval] (`+e+`:`+t+`:`+n+`)`:`[eval]:`+t+`:`+n:r?r+` (`+e+`:`+t+`:`+n+`)`:e+`:`+t+`:`+n},`toString`)},s.fromString=x(function(e){var t=e.indexOf(`(`),n=e.lastIndexOf(`)`),r=e.substring(0,t),i=e.substring(t+1,n).split(`,`),a=e.substring(n+1);if(a.indexOf(`@`)===0)var o=/@(.+?)(?::(\d+))?(?::(\d+))?$/.exec(a,``),c=o[1],l=o[2],u=o[3];return new s({functionName:r,args:i||void 0,fileName:c,lineNumber:l||void 0,columnNumber:u||void 0})},`StackFrame$$fromString`);for(var c=0;c<r.length;c++)s.prototype[`get`+t(r[c])]=n(r[c]),s.prototype[`set`+t(r[c])]=function(e){return function(t){this[e]=!!t}}(r[c]);for(var l=0;l<i.length;l++)s.prototype[`get`+t(i[l])]=n(i[l]),s.prototype[`set`+t(i[l])]=function(t){return function(n){if(!e(n))throw TypeError(t+` must be a Number`);this[t]=Number(n)}}(i[l]);for(var u=0;u<a.length;u++)s.prototype[`get`+t(a[u])]=n(a[u]),s.prototype[`set`+t(a[u])]=function(e){return function(t){this[e]=String(t)}}(a[u]);return s})}}),$i=E({"../../node_modules/.pnpm/error-stack-parser@2.1.4/node_modules/error-stack-parser/error-stack-parser.js"(e,t){(function(n,r){typeof define==`function`&&define.amd?define(`error-stack-parser`,[`stackframe`],r):typeof e==`object`?t.exports=r(Qi()):n.ErrorStackParser=r(n.StackFrame)})(e,x(function(e){var t=/(^|@)\S+:\d+/,n=/^\s*at .*(\S+:\d+|\(native\))/m,r=/^(eval@)?(\[native code])?$/;return{parse:x(function(e){if(e.stacktrace!==void 0||e[`opera#sourceloc`]!==void 0)return this.parseOpera(e);if(e.stack&&e.stack.match(n))return this.parseV8OrIE(e);if(e.stack)return this.parseFFOrSafari(e);throw Error(`Cannot parse given Error object`)},`ErrorStackParser$$parse`),extractLocation:x(function(e){if(e.indexOf(`:`)===-1)return[e];var t=/(.+?)(?::(\d+))?(?::(\d+))?$/.exec(e.replace(/[()]/g,``));return[t[1],t[2]||void 0,t[3]||void 0]},`ErrorStackParser$$extractLocation`),parseV8OrIE:x(function(t){return t.stack.split(`
246
+ `,e)+1}return{type:e,offset:this.offset,indent:this.indent,source:this.source}}startBlockValue(e){switch(this.type){case`alias`:case`scalar`:case`single-quoted-scalar`:case`double-quoted-scalar`:return this.flowScalar(this.type);case`block-scalar-header`:return{type:`block-scalar`,offset:this.offset,indent:this.indent,props:[this.sourceToken],source:``};case`flow-map-start`:case`flow-seq-start`:return{type:`flow-collection`,offset:this.offset,indent:this.indent,start:this.sourceToken,items:[],end:[]};case`seq-item-ind`:return{type:`block-seq`,offset:this.offset,indent:this.indent,items:[{start:[this.sourceToken]}]};case`explicit-key-ind`:{this.onKeyLine=!0;let t=c(s(e));return t.push(this.sourceToken),{type:`block-map`,offset:this.offset,indent:this.indent,items:[{start:t,explicitKey:!0}]}}case`map-value-ind`:{this.onKeyLine=!0;let t=c(s(e));return{type:`block-map`,offset:this.offset,indent:this.indent,items:[{start:t,key:null,sep:[this.sourceToken]}]}}}return null}atIndentedComment(e,t){return this.type!==`comment`||this.indent<=t?!1:e.every(e=>e.type===`newline`||e.type===`space`)}*documentEnd(e){this.type!==`doc-mode`&&(e.end?e.end.push(this.sourceToken):e.end=[this.sourceToken],this.type===`newline`&&(yield*this.pop()))}*lineEnd(e){switch(this.type){case`comma`:case`doc-start`:case`doc-end`:case`flow-seq-end`:case`flow-map-end`:case`map-value-ind`:yield*this.pop(),yield*this.step();break;case`newline`:this.onKeyLine=!1;default:e.end?e.end.push(this.sourceToken):e.end=[this.sourceToken],this.type===`newline`&&(yield*this.pop())}}}}}),Zi=E({"../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/public-api.js"(e){var t=Ui(),n=Ei(),r=Di(),i=Zr(),a=Y(),o=Yi(),s=Xi();function c(e){let t=e.prettyErrors!==!1;return{lineCounter:e.lineCounter||t&&new o.LineCounter||null,prettyErrors:t}}x(c,`parseOptions`);function l(e,n={}){let{lineCounter:i,prettyErrors:a}=c(n),o=new s.Parser(i?.addNewLine),l=new t.Composer(n),u=Array.from(l.compose(o.parse(e)));if(a&&i)for(let t of u)t.errors.forEach(r.prettifyError(e,i)),t.warnings.forEach(r.prettifyError(e,i));return u.length>0?u:Object.assign([],{empty:!0},l.streamInfo())}x(l,`parseAllDocuments`);function u(e,n={}){let{lineCounter:i,prettyErrors:a}=c(n),o=new s.Parser(i?.addNewLine),l=new t.Composer(n),u=null;for(let t of l.compose(o.parse(e),!0,e.length))if(!u)u=t;else if(u.options.logLevel!==`silent`){u.errors.push(new r.YAMLParseError(t.range.slice(0,2),`MULTIPLE_DOCS`,`Source contains multiple documents; please use YAML.parseAllDocuments()`));break}return a&&i&&(u.errors.forEach(r.prettifyError(e,i)),u.warnings.forEach(r.prettifyError(e,i))),u}x(u,`parseDocument`);function d(e,t,n){let r;typeof t==`function`?r=t:n===void 0&&t&&typeof t==`object`&&(n=t);let a=u(e,n);if(!a)return null;if(a.warnings.forEach(e=>i.warn(a.options.logLevel,e)),a.errors.length>0){if(a.options.logLevel!==`silent`)throw a.errors[0];a.errors=[]}return a.toJS(Object.assign({reviver:r},n))}x(d,`parse`);function f(e,t,r){let i=null;if(typeof t==`function`||Array.isArray(t)?i=t:r===void 0&&t&&(r=t),typeof r==`string`&&(r=r.length),typeof r==`number`){let e=Math.round(r);r=e<1?void 0:e>8?{indent:8}:{indent:e}}if(e===void 0){let{keepUndefined:e}=r??t??{};if(!e)return}return a.isDocument(e)&&!i?e.toString(r):new n.Document(e,i,r).toString(r)}x(f,`stringify`),e.parse=d,e.parseAllDocuments=l,e.parseDocument=u,e.stringify=f}}),Qi=E({"../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/index.js"(e){var t=Ui(),n=Ei(),r=wi(),i=Di(),a=Hr(),o=Y(),s=ei(),c=Ur(),l=ni(),u=ii(),d=qi(),f=Ji(),p=Yi(),m=Xi(),h=Zi(),g=Ir();e.Composer=t.Composer,e.Document=n.Document,e.Schema=r.Schema,e.YAMLError=i.YAMLError,e.YAMLParseError=i.YAMLParseError,e.YAMLWarning=i.YAMLWarning,e.Alias=a.Alias,e.isAlias=o.isAlias,e.isCollection=o.isCollection,e.isDocument=o.isDocument,e.isMap=o.isMap,e.isNode=o.isNode,e.isPair=o.isPair,e.isScalar=o.isScalar,e.isSeq=o.isSeq,e.Pair=s.Pair,e.Scalar=c.Scalar,e.YAMLMap=l.YAMLMap,e.YAMLSeq=u.YAMLSeq,e.CST=d,e.Lexer=f.Lexer,e.LineCounter=p.LineCounter,e.Parser=m.Parser,e.parse=h.parse,e.parseAllDocuments=h.parseAllDocuments,e.parseDocument=h.parseDocument,e.stringify=h.stringify,e.visit=g.visit,e.visitAsync=g.visitAsync}}),$i=E({"../../node_modules/.pnpm/stackframe@1.3.4/node_modules/stackframe/stackframe.js"(e,t){(function(n,r){typeof define==`function`&&define.amd?define(`stackframe`,[],r):typeof e==`object`?t.exports=r():n.StackFrame=r()})(e,function(){function e(e){return!isNaN(parseFloat(e))&&isFinite(e)}x(e,`_isNumber`);function t(e){return e.charAt(0).toUpperCase()+e.substring(1)}x(t,`_capitalize`);function n(e){return function(){return this[e]}}x(n,`_getter`);var r=[`isConstructor`,`isEval`,`isNative`,`isToplevel`],i=[`columnNumber`,`lineNumber`],a=[`fileName`,`functionName`,`source`],o=r.concat(i,a,[`args`],[`evalOrigin`]);function s(e){if(e)for(var n=0;n<o.length;n++)e[o[n]]!==void 0&&this[`set`+t(o[n])](e[o[n]])}x(s,`StackFrame`),s.prototype={getArgs:x(function(){return this.args},`getArgs`),setArgs:x(function(e){if(Object.prototype.toString.call(e)!==`[object Array]`)throw TypeError(`Args must be an Array`);this.args=e},`setArgs`),getEvalOrigin:x(function(){return this.evalOrigin},`getEvalOrigin`),setEvalOrigin:x(function(e){if(e instanceof s)this.evalOrigin=e;else if(e instanceof Object)this.evalOrigin=new s(e);else throw TypeError(`Eval Origin must be an Object or StackFrame`)},`setEvalOrigin`),toString:x(function(){var e=this.getFileName()||``,t=this.getLineNumber()||``,n=this.getColumnNumber()||``,r=this.getFunctionName()||``;return this.getIsEval()?e?`[eval] (`+e+`:`+t+`:`+n+`)`:`[eval]:`+t+`:`+n:r?r+` (`+e+`:`+t+`:`+n+`)`:e+`:`+t+`:`+n},`toString`)},s.fromString=x(function(e){var t=e.indexOf(`(`),n=e.lastIndexOf(`)`),r=e.substring(0,t),i=e.substring(t+1,n).split(`,`),a=e.substring(n+1);if(a.indexOf(`@`)===0)var o=/@(.+?)(?::(\d+))?(?::(\d+))?$/.exec(a,``),c=o[1],l=o[2],u=o[3];return new s({functionName:r,args:i||void 0,fileName:c,lineNumber:l||void 0,columnNumber:u||void 0})},`StackFrame$$fromString`);for(var c=0;c<r.length;c++)s.prototype[`get`+t(r[c])]=n(r[c]),s.prototype[`set`+t(r[c])]=function(e){return function(t){this[e]=!!t}}(r[c]);for(var l=0;l<i.length;l++)s.prototype[`get`+t(i[l])]=n(i[l]),s.prototype[`set`+t(i[l])]=function(t){return function(n){if(!e(n))throw TypeError(t+` must be a Number`);this[t]=Number(n)}}(i[l]);for(var u=0;u<a.length;u++)s.prototype[`get`+t(a[u])]=n(a[u]),s.prototype[`set`+t(a[u])]=function(e){return function(t){this[e]=String(t)}}(a[u]);return s})}}),ea=E({"../../node_modules/.pnpm/error-stack-parser@2.1.4/node_modules/error-stack-parser/error-stack-parser.js"(e,t){(function(n,r){typeof define==`function`&&define.amd?define(`error-stack-parser`,[`stackframe`],r):typeof e==`object`?t.exports=r($i()):n.ErrorStackParser=r(n.StackFrame)})(e,x(function(e){var t=/(^|@)\S+:\d+/,n=/^\s*at .*(\S+:\d+|\(native\))/m,r=/^(eval@)?(\[native code])?$/;return{parse:x(function(e){if(e.stacktrace!==void 0||e[`opera#sourceloc`]!==void 0)return this.parseOpera(e);if(e.stack&&e.stack.match(n))return this.parseV8OrIE(e);if(e.stack)return this.parseFFOrSafari(e);throw Error(`Cannot parse given Error object`)},`ErrorStackParser$$parse`),extractLocation:x(function(e){if(e.indexOf(`:`)===-1)return[e];var t=/(.+?)(?::(\d+))?(?::(\d+))?$/.exec(e.replace(/[()]/g,``));return[t[1],t[2]||void 0,t[3]||void 0]},`ErrorStackParser$$extractLocation`),parseV8OrIE:x(function(t){return t.stack.split(`
247
247
  `).filter(function(e){return!!e.match(n)},this).map(function(t){t.indexOf(`(eval `)>-1&&(t=t.replace(/eval code/g,`eval`).replace(/(\(eval at [^()]*)|(,.*$)/g,``));var n=t.replace(/^\s+/,``).replace(/\(eval code/g,`(`).replace(/^.*?\s+/,``),r=n.match(/ (\(.+\)$)/);n=r?n.replace(r[0],``):n;var i=this.extractLocation(r?r[1]:n);return new e({functionName:r&&n||void 0,fileName:[`eval`,`<anonymous>`].indexOf(i[0])>-1?void 0:i[0],lineNumber:i[1],columnNumber:i[2],source:t})},this)},`ErrorStackParser$$parseV8OrIE`),parseFFOrSafari:x(function(t){return t.stack.split(`
248
248
  `).filter(function(e){return!e.match(r)},this).map(function(t){if(t.indexOf(` > eval`)>-1&&(t=t.replace(/ line (\d+)(?: > eval line \d+)* > eval:\d+:\d+/g,`:$1`)),t.indexOf(`@`)===-1&&t.indexOf(`:`)===-1)return new e({functionName:t});var n=/((.*".+"[^@]*)?[^@]*)(?:@)/,r=t.match(n),i=r&&r[1]?r[1]:void 0,a=this.extractLocation(t.replace(n,``));return new e({functionName:i,fileName:a[0],lineNumber:a[1],columnNumber:a[2],source:t})},this)},`ErrorStackParser$$parseFFOrSafari`),parseOpera:x(function(e){return!e.stacktrace||e.message.indexOf(`
249
249
  `)>-1&&e.message.split(`
@@ -251,8 +251,8 @@ ${t.comment}`:t.comment}this.doc.range[2]=t.offset;break}default:this.errors.pus
251
251
  `).length?this.parseOpera9(e):e.stack?this.parseOpera11(e):this.parseOpera10(e)},`ErrorStackParser$$parseOpera`),parseOpera9:x(function(t){for(var n=/Line (\d+).*script (?:in )?(\S+)/i,r=t.message.split(`
252
252
  `),i=[],a=2,o=r.length;a<o;a+=2){var s=n.exec(r[a]);s&&i.push(new e({fileName:s[2],lineNumber:s[1],source:r[a]}))}return i},`ErrorStackParser$$parseOpera9`),parseOpera10:x(function(t){for(var n=/Line (\d+).*script (?:in )?(\S+)(?:: In function (\S+))?$/i,r=t.stacktrace.split(`
253
253
  `),i=[],a=0,o=r.length;a<o;a+=2){var s=n.exec(r[a]);s&&i.push(new e({functionName:s[3]||void 0,fileName:s[2],lineNumber:s[1],source:r[a]}))}return i},`ErrorStackParser$$parseOpera10`),parseOpera11:x(function(n){return n.stack.split(`
254
- `).filter(function(e){return!!e.match(t)&&!e.match(/^Error created at/)},this).map(function(t){var n=t.split(`@`),r=this.extractLocation(n.pop()),i=n.shift()||``,a=i.replace(/<anonymous function(: (\w+))?>/,`$2`).replace(/\([^)]*\)/g,``)||void 0,o;return i.match(/\(([^)]*)\)/)&&(o=i.replace(/^[^(]+\(([^)]*)\)$/,`$1`)),new e({functionName:a,args:o===void 0||o===`[arguments not available]`?void 0:o.split(`,`),fileName:r[0],lineNumber:r[1],columnNumber:r[2],source:t})},this)},`ErrorStackParser$$parseOpera11`)}},`ErrorStackParser`))}}),ea=E({"../../node_modules/.pnpm/iserror@0.0.2/node_modules/iserror/index.js"(e,t){t.exports=n;function n(e){switch(Object.prototype.toString.call(e)){case`[object Error]`:return!0;case`[object Exception]`:return!0;case`[object DOMException]`:return!0;default:return e instanceof Error}}x(n,`isError`)}}),ta=E({"../../node_modules/.pnpm/stack-generator@2.0.10/node_modules/stack-generator/stack-generator.js"(e,t){(function(n,r){typeof define==`function`&&define.amd?define(`stack-generator`,[`stackframe`],r):typeof e==`object`?t.exports=r(Qi()):n.StackGenerator=r(n.StackFrame)})(e,function(e){return{backtrace:x(function(t){var n=[],r=10;typeof t==`object`&&typeof t.maxStackSize==`number`&&(r=t.maxStackSize);for(var i=arguments.callee;i&&n.length<r&&i.arguments;){for(var a=Array(i.arguments.length),o=0;o<a.length;++o)a[o]=i.arguments[o];/function(?:\s+([\w$]+))+\s*\(/.test(i.toString())?n.push(new e({functionName:RegExp.$1||void 0,args:a})):n.push(new e({args:a}));try{i=i.caller}catch{break}}return n},`StackGenerator$$backtrace`)}})}}),na=E({"../../node_modules/.pnpm/wrappy@1.0.2/node_modules/wrappy/wrappy.js"(e,t){t.exports=n;function n(e,t){if(e&&t)return n(e)(t);if(typeof e!=`function`)throw TypeError(`need wrapper function`);return Object.keys(e).forEach(function(t){r[t]=e[t]}),r;function r(){for(var t=Array(arguments.length),n=0;n<t.length;n++)t[n]=arguments[n];var r=e.apply(this,t),i=t[t.length-1];return typeof r==`function`&&r!==i&&Object.keys(i).forEach(function(e){r[e]=i[e]}),r}}x(n,`wrappy`)}}),ra=E({"../../node_modules/.pnpm/once@1.4.0/node_modules/once/once.js"(e,t){var n=na();t.exports=n(r),t.exports.strict=n(i),r.proto=r(function(){Object.defineProperty(Function.prototype,`once`,{value:x(function(){return r(this)},`value`),configurable:!0}),Object.defineProperty(Function.prototype,`onceStrict`,{value:x(function(){return i(this)},`value`),configurable:!0})});function r(e){var t=x(function(){return t.called?t.value:(t.called=!0,t.value=e.apply(this,arguments))},`f`);return t.called=!1,t}x(r,`once`);function i(e){var t=x(function(){if(t.called)throw Error(t.onceError);return t.called=!0,t.value=e.apply(this,arguments)},`f`);return t.onceError=(e.name||"Function wrapped with `once`")+` shouldn't be called more than once`,t.called=!1,t}x(i,`onceStrict`)}}),ia=E({"../../node_modules/.pnpm/end-of-stream@1.4.4/node_modules/end-of-stream/index.js"(e,t){var n=ra(),r=x(function(){},`noop`),i=x(function(e){return e.setHeader&&typeof e.abort==`function`},`isRequest`),a=x(function(e){return e.stdio&&Array.isArray(e.stdio)&&e.stdio.length===3},`isChildProcess`),o=x(function(e,t,s){if(typeof t==`function`)return o(e,null,t);t||={},s=n(s||r);var c=e._writableState,l=e._readableState,u=t.readable||t.readable!==!1&&e.readable,d=t.writable||t.writable!==!1&&e.writable,f=!1,p=x(function(){e.writable||m()},`onlegacyfinish`),m=x(function(){d=!1,u||s.call(e)},`onfinish`),h=x(function(){u=!1,d||s.call(e)},`onend`),g=x(function(t){s.call(e,t?Error(`exited with error code: `+t):null)},`onexit`),_=x(function(t){s.call(e,t)},`onerror`),v=x(function(){process.nextTick(y)},`onclose`),y=x(function(){if(!f&&(u&&!(l&&l.ended&&!l.destroyed)||d&&!(c&&c.ended&&!c.destroyed)))return s.call(e,Error(`premature close`))},`onclosenexttick`),b=x(function(){e.req.on(`finish`,m)},`onrequest`);return i(e)?(e.on(`complete`,m),e.on(`abort`,v),e.req?b():e.on(`request`,b)):d&&!c&&(e.on(`end`,p),e.on(`close`,p)),a(e)&&e.on(`exit`,g),e.on(`end`,h),e.on(`finish`,m),t.error!==!1&&e.on(`error`,_),e.on(`close`,v),function(){f=!0,e.removeListener(`complete`,m),e.removeListener(`abort`,v),e.removeListener(`request`,b),e.req&&e.req.removeListener(`finish`,m),e.removeListener(`end`,p),e.removeListener(`close`,p),e.removeListener(`finish`,m),e.removeListener(`exit`,g),e.removeListener(`end`,h),e.removeListener(`error`,_),e.removeListener(`close`,v)}},`eos`);t.exports=o}}),aa=E({"../../node_modules/.pnpm/pump@3.0.0/node_modules/pump/index.js"(e,t){var n=ra(),r=ia(),i=b(`fs`),a=x(function(){},`noop`),o=/^v?\.0/.test(process.version),s=x(function(e){return typeof e==`function`},`isFn`),c=x(function(e){return!o||!i?!1:(e instanceof(i.ReadStream||a)||e instanceof(i.WriteStream||a))&&s(e.close)},`isFS`),l=x(function(e){return e.setHeader&&s(e.abort)},`isRequest`),u=x(function(e,t,i,o){o=n(o);var u=!1;e.on(`close`,function(){u=!0}),r(e,{readable:t,writable:i},function(e){if(e)return o(e);u=!0,o()});var d=!1;return function(t){if(!u&&!d){if(d=!0,c(e))return e.close(a);if(l(e))return e.abort();if(s(e.destroy))return e.destroy();o(t||Error(`stream was destroyed`))}}},`destroyer`),d=x(function(e){e()},`call`),f=x(function(e,t){return e.pipe(t)},`pipe`);t.exports=x(function(){var e=Array.prototype.slice.call(arguments),t=s(e[e.length-1]||a)&&e.pop()||a;if(Array.isArray(e[0])&&(e=e[0]),e.length<2)throw Error(`pump requires two streams per minimum`);var n,r=e.map(function(i,a){var o=a<e.length-1;return u(i,o,a>0,function(e){n||=e,e&&r.forEach(d),!o&&(r.forEach(d),t(n))})});return e.reduce(f)},`pump`)}}),oa=E({"../../node_modules/.pnpm/byline@5.0.0/node_modules/byline/lib/byline.js"(e,t){var n=b(`stream`),r=b(`util`),i=b(`timers`);t.exports=function(e,n){return t.exports.createStream(e,n)},t.exports.createStream=function(e,t){return e?a(e,t):new o(t)},t.exports.createLineStream=function(e){return console.log(`WARNING: byline#createLineStream is deprecated and will be removed soon`),a(e)};function a(e,t){if(!e)throw Error(`expected readStream`);if(!e.readable)throw Error(`readStream must be readable`);var n=new o(t);return e.pipe(n),n}x(a,`createLineStream`),t.exports.LineStream=o;function o(e){n.Transform.call(this,e),e||={},this._readableState.objectMode=!0,this._lineBuffer=[],this._keepEmptyLines=e.keepEmptyLines||!1,this._lastChunkEndedWithCR=!1;var t=this;this.on(`pipe`,function(e){t.encoding||e instanceof n.Readable&&(t.encoding=e._readableState.encoding)})}x(o,`LineStream`),r.inherits(o,n.Transform),o.prototype._transform=function(e,t,n){t||=`utf8`,Buffer.isBuffer(e)&&(t==`buffer`?(e=e.toString(),t=`utf8`):e=e.toString(t)),this._chunkEncoding=t;var r=e.split(/\r\n|[\n\v\f\r\x85\u2028\u2029]/g);this._lastChunkEndedWithCR&&e[0]==`
255
- `&&r.shift(),this._lineBuffer.length>0&&(this._lineBuffer[this._lineBuffer.length-1]+=r[0],r.shift()),this._lastChunkEndedWithCR=e[e.length-1]==`\r`,this._lineBuffer=this._lineBuffer.concat(r),this._pushBuffer(t,1,n)},o.prototype._pushBuffer=function(e,t,n){for(;this._lineBuffer.length>t;){var r=this._lineBuffer.shift();if((this._keepEmptyLines||r.length>0)&&!this.push(this._reencode(r,e))){var a=this;i.setImmediate(function(){a._pushBuffer(e,t,n)});return}}n()},o.prototype._flush=function(e){this._pushBuffer(this._chunkEncoding,0,e)},o.prototype._reencode=function(e,t){return this.encoding&&this.encoding!=t?new Buffer(e,t).toString(this.encoding):this.encoding?e:new Buffer(e,t)}}}),sa=E({"../../node_modules/.pnpm/@bugsnag+node@8.6.0/node_modules/@bugsnag/node/dist/bugsnag.js"(e,t){(function(n){if(typeof e==`object`&&t!==void 0)t.exports=n();else if(typeof define==`function`&&define.amd)define([],n);else{var r=typeof window<`u`?window:typeof global<`u`?global:typeof self<`u`?self:this;r.bugsnag=n()}})(function(){var e=function(){function e(e,t,n,r){r===void 0&&(r=new Date),this.type=n,this.message=e,this.metadata=t,this.timestamp=r}x(e,`Breadcrumb`);var t=e.prototype;return t.toJSON=x(function(){return{type:this.type,name:this.message,timestamp:this.timestamp,metaData:this.metadata}},`toJSON`),e}(),t=[`navigation`,`request`,`process`,`log`,`user`,`state`,`error`,`manual`],n=x(function(e,t,n){for(var r=n,i=0,a=e.length;i<a;i++)r=t(r,e[i],i,e);return r},`_$reduce_22`),r=x(function(e,t){return n(e,function(e,n,r,i){return t(n,r,i)?e.concat(n):e},[])},`_$filter_17`),i=x(function(e,t){return n(e,function(e,n,r,i){return e===!0||n===t},!1)},`_$includes_18`),a=x(function(e){return Object.prototype.toString.call(e)===`[object Array]`},`_$isArray_19`),o=!{toString:null}.propertyIsEnumerable(`toString`),s=[`toString`,`toLocaleString`,`valueOf`,`hasOwnProperty`,`isPrototypeOf`,`propertyIsEnumerable`,`constructor`],c=x(function(e){var t=[],n;for(n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.push(n);if(!o)return t;for(var r=0,i=s.length;r<i;r++)Object.prototype.hasOwnProperty.call(e,s[r])&&t.push(s[r]);return t},`_$keys_20`),l=x(function(e,t){return e===void 0&&(e=1),t===void 0&&(t=1/0),function(n){return typeof n==`number`&&parseInt(``+n,10)===n&&n>=e&&n<=t}},`_$intRange_31`),u=x(function(e){return typeof e==`function`||a(e)&&r(e,function(e){return typeof e==`function`}).length===e.length},`_$listOfFunctions_32`),d=x(function(e){return typeof e==`string`&&!!e.length},`_$stringWithLength_33`),f={},p=x(function(){return{unhandledExceptions:!0,unhandledRejections:!0}},`defaultErrorTypes`);f.schema={apiKey:{defaultValue:x(function(){return null},`defaultValue`),message:`is required`,validate:d},appVersion:{defaultValue:x(function(){},`defaultValue`),message:`should be a string`,validate:x(function(e){return e===void 0||d(e)},`validate`)},appType:{defaultValue:x(function(){},`defaultValue`),message:`should be a string`,validate:x(function(e){return e===void 0||d(e)},`validate`)},autoDetectErrors:{defaultValue:x(function(){return!0},`defaultValue`),message:`should be true|false`,validate:x(function(e){return e===!0||e===!1},`validate`)},enabledErrorTypes:{defaultValue:x(function(){return p()},`defaultValue`),message:`should be an object containing the flags { unhandledExceptions:true|false, unhandledRejections:true|false }`,allowPartialObject:!0,validate:x(function(e){if(typeof e!=`object`||!e)return!1;var t=c(e),n=c(p());return!(r(t,function(e){return i(n,e)}).length<t.length||r(c(e),function(t){return typeof e[t]!=`boolean`}).length>0)},`validate`)},onError:{defaultValue:x(function(){return[]},`defaultValue`),message:`should be a function or array of functions`,validate:u},onSession:{defaultValue:x(function(){return[]},`defaultValue`),message:`should be a function or array of functions`,validate:u},onBreadcrumb:{defaultValue:x(function(){return[]},`defaultValue`),message:`should be a function or array of functions`,validate:u},endpoints:{defaultValue:x(function(e){return e===void 0?{notify:`https://notify.bugsnag.com`,sessions:`https://sessions.bugsnag.com`}:{notify:null,sessions:null}},`defaultValue`),message:`should be an object containing endpoint URLs { notify, sessions }`,validate:x(function(e){return e&&typeof e==`object`&&d(e.notify)&&d(e.sessions)&&r(c(e),function(e){return!i([`notify`,`sessions`],e)}).length===0},`validate`)},autoTrackSessions:{defaultValue:x(function(e){return!0},`defaultValue`),message:`should be true|false`,validate:x(function(e){return e===!0||e===!1},`validate`)},enabledReleaseStages:{defaultValue:x(function(){return null},`defaultValue`),message:`should be an array of strings`,validate:x(function(e){return e===null||a(e)&&r(e,function(e){return typeof e==`string`}).length===e.length},`validate`)},releaseStage:{defaultValue:x(function(){return`production`},`defaultValue`),message:`should be a string`,validate:x(function(e){return typeof e==`string`&&e.length},`validate`)},maxBreadcrumbs:{defaultValue:x(function(){return 25},`defaultValue`),message:`should be a number ≤100`,validate:x(function(e){return l(0,100)(e)},`validate`)},enabledBreadcrumbTypes:{defaultValue:x(function(){return t},`defaultValue`),message:`should be null or a list of available breadcrumb types (`+t.join(`,`)+`)`,validate:x(function(e){return e===null||a(e)&&n(e,function(e,n){return e===!1?e:i(t,n)},!0)},`validate`)},context:{defaultValue:x(function(){},`defaultValue`),message:`should be a string`,validate:x(function(e){return e===void 0||typeof e==`string`},`validate`)},user:{defaultValue:x(function(){return{}},`defaultValue`),message:`should be an object with { id, email, name } properties`,validate:x(function(e){return e===null||e&&n(c(e),function(e,t){return e&&i([`id`,`email`,`name`],t)},!0)},`validate`)},metadata:{defaultValue:x(function(){return{}},`defaultValue`),message:`should be an object`,validate:x(function(e){return typeof e==`object`&&!!e},`validate`)},logger:{defaultValue:x(function(){},`defaultValue`),message:`should be null or an object with methods { debug, info, warn, error }`,validate:x(function(e){return!e||e&&n([`debug`,`info`,`warn`,`error`],function(t,n){return t&&typeof e[n]==`function`},!0)},`validate`)},redactedKeys:{defaultValue:x(function(){return[`password`]},`defaultValue`),message:`should be an array of strings|regexes`,validate:x(function(e){return a(e)&&e.length===r(e,function(e){return typeof e==`string`||e&&typeof e.test==`function`}).length},`validate`)},plugins:{defaultValue:x(function(){return[]},`defaultValue`),message:`should be an array of plugin objects`,validate:x(function(e){return a(e)&&e.length===r(e,function(e){return e&&typeof e==`object`&&typeof e.load==`function`}).length},`validate`)},featureFlags:{defaultValue:x(function(){return[]},`defaultValue`),message:`should be an array of objects that have a "name" property`,validate:x(function(e){return a(e)&&e.length===r(e,function(e){return e&&typeof e==`object`&&typeof e.name==`string`}).length},`validate`)},reportUnhandledPromiseRejectionsAsHandled:{defaultValue:x(function(){return!1},`defaultValue`),message:`should be true|false`,validate:x(function(e){return e===!0||e===!1},`validate`)},sendPayloadChecksums:{defaultValue:x(function(){return!1},`defaultValue`),message:`should be true|false`,validate:x(function(e){return e===!0||e===!1},`validate`)}};var m=$i(),h=x(function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},`_$assign_16`),g=x(function(e,t){return n(e,function(e,n,r,i){return e.concat(t(n,r,i))},[])},`_$map_21`),_=x(function(e,t,n,r){var i=r&&r.redactedKeys?r.redactedKeys:[],a=r&&r.redactedPaths?r.redactedPaths:[];return JSON.stringify(te(e,i,a),t,n)},`_$safeJsonStringify_5`),v=20,y=25e3,S=8,C=`...`;function w(e){return e instanceof Error||/^\[object (Error|(Dom)?Exception)\]$/.test(Object.prototype.toString.call(e))}x(w,`isError`);function T(e){return`[Throws: `+(e?e.message:`?`)+`]`}x(T,`throwsMessage`);function E(e,t){for(var n=0,r=e.length;n<r;n++)if(e[n]===t)return!0;return!1}x(E,`find`);function D(e,t){for(var n=0,r=e.length;n<r;n++)if(t.indexOf(e[n])===0)return!0;return!1}x(D,`isDescendent`);function O(e,t){for(var n=0,r=e.length;n<r;n++)if(typeof e[n]==`string`&&e[n].toLowerCase()===t.toLowerCase()||e[n]&&typeof e[n].test==`function`&&e[n].test(t))return!0;return!1}x(O,`shouldRedact`);function ee(e){return Object.prototype.toString.call(e)===`[object Array]`}x(ee,`__isArray_5`);function k(e,t){try{return e[t]}catch(e){return T(e)}}x(k,`safelyGetProp`);function te(e,t,n){var r=[],i=0;function a(e,o){function s(){return o.length>S&&i>y}if(x(s,`edgesExceeded`),i++,o.length>v||s())return C;if(typeof e!=`object`||!e)return e;if(E(r,e))return`[Circular]`;if(r.push(e),typeof e.toJSON==`function`)try{i--;var c=a(e.toJSON(),o);return r.pop(),c}catch(e){return T(e)}if(w(e)){i--;var l=a({name:e.name,message:e.message},o);return r.pop(),l}if(ee(e)){for(var u=[],d=0,f=e.length;d<f;d++){if(s()){u.push(C);break}u.push(a(e[d],o.concat(`[]`)))}return r.pop(),u}var p={};try{for(var m in e)if(Object.prototype.hasOwnProperty.call(e,m)){if(D(n,o.join(`.`))&&O(t,m)){p[m]=`[REDACTED]`;continue}if(s()){p[m]=C;break}p[m]=a(k(e,m),o.concat(m))}}catch{}return r.pop(),p}return x(a,`visit`),a(e,[])}x(te,`prepareObjForSerialization`);function ne(e,t,n,r){if(typeof n==`string`){r===void 0?r=null:r!==null&&typeof r!=`string`&&(r=_(r));var i=t[n];if(typeof i==`number`){e[i]={name:n,variant:r};return}e.push({name:n,variant:r}),t[n]=e.length-1}}x(ne,`add`);function A(e,t,n){if(a(t)){for(var r=0;r<t.length;++r){var i=t[r];typeof i!=`object`||!i||ne(e,n,i.name,i.variant)}return e}}x(A,`merge`);function j(e){return g(r(e,Boolean),function(e){var t=e.name,n=e.variant,r={featureFlag:t};return typeof n==`string`&&(r.variant=n),r})}x(j,`toEventApi`);function M(e,t,n){var r=t[n];typeof r==`number`&&(e[r]=null,delete t[n])}x(M,`clear`);var N={add:ne,clear:M,merge:A,toEventApi:j},P=x(function(e){return!!e&&(!!e.stack||!!e.stacktrace||!!e[`opera#sourceloc`])&&typeof(e.stack||e.stacktrace||e[`opera#sourceloc`])==`string`&&e.stack!==e.name+`: `+e.message},`_$hasStack_24`),re=ea(),ie=x(function(e,t,n,r){var i;if(t){var a;if(n===null)return oe(e,t);typeof n==`object`&&(a=n),typeof n==`string`&&(a=(i={},i[n]=r,i)),a&&(t===`__proto__`||t===`constructor`||t===`prototype`||(e[t]||(e[t]={}),e[t]=h({},e[t],a)))}},`__add_27`),ae=x(function(e,t,n){if(typeof t==`string`){if(!n)return e[t];if(e[t])return e[t][n]}},`get`),oe=x(function(e,t,n){if(typeof t==`string`){if(!n){delete e[t];return}t===`__proto__`||t===`constructor`||t===`prototype`||e[t]&&delete e[t][n]}},`__clear_27`),F={add:ie,get:ae,clear:oe};function I(){return I=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},I.apply(null,arguments)}x(I,`_extends`);var se=ta(),L=function(){function e(t,n,r,i,a){r===void 0&&(r=[]),i===void 0&&(i=ue()),this.apiKey=void 0,this.context=void 0,this.groupingHash=void 0,this.originalError=a,this._handledState=i,this.severity=this._handledState.severity,this.unhandled=this._handledState.unhandled,this.app={},this.device={},this.request={},this.breadcrumbs=[],this.threads=[],this._metadata={},this._features=[],this._featuresIndex={},this._user={},this._session=void 0,this._correlation=void 0,this._groupingDiscriminator=void 0,this.errors=[fe(t,n,e.__type,r)]}x(e,`Event`);var t=e.prototype;return t.addMetadata=x(function(e,t,n){return F.add(this._metadata,e,t,n)},`addMetadata`),t.setTraceCorrelation=x(function(e,t){typeof e==`string`&&(this._correlation=I({traceId:e},typeof t==`string`?{spanId:t}:{}))},`setTraceCorrelation`),t.getGroupingDiscriminator=x(function(){return this._groupingDiscriminator},`getGroupingDiscriminator`),t.setGroupingDiscriminator=x(function(e){var t=this._groupingDiscriminator;return(typeof e==`string`||e==null)&&(this._groupingDiscriminator=e),t},`setGroupingDiscriminator`),t.getMetadata=x(function(e,t){return F.get(this._metadata,e,t)},`getMetadata`),t.clearMetadata=x(function(e,t){return F.clear(this._metadata,e,t)},`clearMetadata`),t.addFeatureFlag=x(function(e,t){t===void 0&&(t=null),N.add(this._features,this._featuresIndex,e,t)},`addFeatureFlag`),t.addFeatureFlags=x(function(e){N.merge(this._features,e,this._featuresIndex)},`addFeatureFlags`),t.getFeatureFlags=x(function(){return N.toEventApi(this._features)},`getFeatureFlags`),t.clearFeatureFlag=x(function(e){N.clear(this._features,this._featuresIndex,e)},`clearFeatureFlag`),t.clearFeatureFlags=x(function(){this._features=[],this._featuresIndex={}},`clearFeatureFlags`),t.getUser=x(function(){return this._user},`getUser`),t.setUser=x(function(e,t,n){this._user={id:e,email:t,name:n}},`setUser`),t.toJSON=x(function(){return{payloadVersion:`4`,exceptions:g(this.errors,function(e){return h({},e,{message:e.errorMessage})}),severity:this.severity,unhandled:this._handledState.unhandled,severityReason:this._handledState.severityReason,app:this.app,device:this.device,request:this.request,breadcrumbs:this.breadcrumbs,context:this.context,groupingHash:this.groupingHash,groupingDiscriminator:this._groupingDiscriminator,metaData:this._metadata,user:this._user,session:this._session,featureFlags:this.getFeatureFlags(),correlation:this._correlation}},`toJSON`),e}(),ce=x(function(e){var t={file:e.fileName,method:le(e.functionName),lineNumber:e.lineNumber,columnNumber:e.columnNumber,code:void 0,inProject:void 0};return t.lineNumber>-1&&!t.file&&!t.method&&(t.file=`global code`),t},`formatStackframe`),le=x(function(e){return/^global code$/i.test(e)?`global code`:e},`normaliseFunctionName`),ue=x(function(){return{unhandled:!1,severity:`warning`,severityReason:{type:`handledException`}}},`defaultHandledState`),de=x(function(e){return typeof e==`string`?e:``},`ensureString`);function fe(e,t,r,i){return{errorClass:de(e),errorMessage:de(t),type:r,stacktrace:n(i,function(e,t){var n=ce(t);try{return JSON.stringify(n)===`{}`?e:e.concat(n)}catch{return e}},[])}}x(fe,`createBugsnagError`);function R(e){return e.cause?[e].concat(R(e.cause)):[e]}x(R,`getCauseStack`),L.getStacktrace=function(e,t,n){if(P(e))return m.parse(e).slice(t);try{return r(se.backtrace(),function(e){return(e.functionName||``).indexOf(`StackGenerator$$`)===-1}).slice(1+n)}catch{return[]}},L.create=function(e,t,n,r,i,a){i===void 0&&(i=0);var o=me(e,t,r,a),s=o[0],c=o[1],l;try{var u=L.getStacktrace(s,c>0?1+c+i:0,1+i);l=new L(s.name,s.message,u,n,e)}catch{l=new L(s.name,s.message,[],n,e)}if(s.name===`InvalidError`&&l.addMetadata(``+r,`non-error parameter`,pe(e)),s.cause){var d,f=g(R(s).slice(1),function(e){var t=re(e)&&P(e)?m.parse(e):[],n=me(e,!0,`error cause`)[0];return n.name===`InvalidError`&&l.addMetadata(`error cause`,pe(e)),fe(n.name,n.message,L.__type,t)});(d=l.errors).push.apply(d,f)}return l};var pe=x(function(e){return e===null?`null`:e===void 0?`undefined`:e},`makeSerialisable`),me=x(function(e,t,n,r){var i,a=0,o=x(function(e){var t=n===`error cause`?`was`:`received`;r&&r.warn(n+` `+t+` a non-error: "`+e+`"`);var i=Error(n+` `+t+` a non-error. See "`+n+`" tab for more detail.`);return i.name=`InvalidError`,i},`createAndLogInputError`);if(!t)re(e)?i=e:(i=o(typeof e),a+=2);else switch(typeof e){case`string`:case`number`:case`boolean`:i=Error(String(e)),a+=1;break;case`function`:i=o(`function`),a+=2;break;case`object`:e!==null&&re(e)?i=e:e!==null&&he(e)?(i=Error(e.message||e.errorMessage),i.name=e.name||e.errorClass,a+=1):(i=o(e===null?`null`:`unsupported object`),a+=2);break;default:i=o(`nothing`),a+=2}if(!P(i))try{throw i}catch(e){P(e)&&(i=e,a=1)}return[i,a]},`normaliseError`);L.__type=`browserjs`;var he=x(function(e){return(typeof e.name==`string`||typeof e.errorClass==`string`)&&(typeof e.message==`string`||typeof e.errorMessage==`string`)},`hasNecessaryFields`),ge=L,_e=x(function(e,t,n){var r=0,i=x(function(){if(r>=e.length)return n(null,!0);t(e[r],function(e,t){if(e)return n(e);if(t===!1)return n(null,!1);r++,i()})},`next`);i()},`_$asyncEvery_11`),z=x(function(e,t,n,r){_e(e,x(function(e,r){if(typeof e!=`function`)return r(null);try{if(e.length!==2){var i=e(t);return i&&typeof i.then==`function`?i.then(function(e){return setTimeout(function(){return r(null,e)})},function(e){setTimeout(function(){return n(e),r(null,!0)})}):r(null,i)}e(t,function(e,t){if(e)return n(e),r(null);r(null,t)})}catch(e){n(e),r(null)}},`runMaybeAsyncCallback`),r)},`_$callbackRunner_13`),ve=x(function(e,t,n,r){for(var i=!1,a=e.slice();!i&&a.length;)try{i=a.pop()(t)===!1}catch(e){r.error(`Error occurred in `+n+` callback, continuing anyway…`),r.error(e)}return i},`_$syncCallbackRunner_30`),B=x(function(e,t){var n=`000000000`+e;return n.substr(n.length-t)},`pad`),ye=b(`os`);function V(){try{return ye.hostname()}catch{return process.env._CLUSTER_NETWORK_NAME_||process.env.COMPUTERNAME||`hostname`}}x(V,`getHostname`);var be=2,xe=B(process.pid.toString(36),be),Se=V(),Ce=Se.length,we=B(Se.split(``).reduce(function(e,t){return+e+t.charCodeAt(0)},+Ce+36).toString(36),be),Te=x(function(){return xe+we},`fingerprint`),Ee=x(function(e){return typeof e==`string`&&/^c[a-z0-9]{20,32}$/.test(e)},`isCuid`),De=0,Oe=4,ke=36,Ae=ke**+Oe;function H(){return B((Math.random()*Ae<<0).toString(ke),Oe)}x(H,`randomBlock`);function je(){return De=De<Ae?De:0,De++,De-1}x(je,`safeCounter`);function Me(){var e=`c`,t=new Date().getTime().toString(ke),n=B(je().toString(ke),Oe),r=Te(),i=H()+H();return e+t+n+r+i}x(Me,`cuid`),Me.fingerprint=Te,Me.isCuid=Ee;var Ne=Me,Pe=function(){function e(){this.id=Ne(),this.startedAt=new Date,this._handled=0,this._unhandled=0,this._user={},this.app={},this.device={}}x(e,`Session`);var t=e.prototype;return t.getUser=x(function(){return this._user},`getUser`),t.setUser=x(function(e,t,n){this._user={id:e,email:t,name:n}},`setUser`),t.toJSON=x(function(){return{id:this.id,startedAt:this.startedAt,events:{handled:this._handled,unhandled:this._unhandled}}},`toJSON`),t._track=x(function(e){this[e._handledState.unhandled?`_unhandled`:`_handled`]+=1},`_track`),e}(),Fe=N.add,Ie=N.clear,Le=N.merge,Re=`00000`,ze=`https://notify.insighthub.smartbear.com`,Be=`https://sessions.insighthub.smartbear.com`,Ve=x(function(){},`noop`),He=function(){function a(t,n,r,i){var o=this;n===void 0&&(n=f.schema),r===void 0&&(r=[]),this._notifier=i,this._config={},this._schema=n,this._delivery={sendSession:Ve,sendEvent:Ve},this._logger={debug:Ve,info:Ve,warn:Ve,error:Ve},this._plugins={},this._breadcrumbs=[],this._session=null,this._metadata={},this._featuresIndex={},this._features=[],this._context=void 0,this._user={},this._groupingDiscriminator=void 0,this._cbs={e:[],s:[],sp:[],b:[]},this.Client=a,this.Event=ge,this.Breadcrumb=e,this.Session=Pe,this._config=this._configure(t,r),g(r.concat(this._config.plugins),function(e){e&&o._loadPlugin(e)}),this._depth=1;var s=this,c=this.notify;this.notify=function(){return c.apply(s,arguments)}}x(a,`Client`);var o=a.prototype;return o.addMetadata=x(function(e,t,n){return F.add(this._metadata,e,t,n)},`addMetadata`),o.getMetadata=x(function(e,t){return F.get(this._metadata,e,t)},`getMetadata`),o.clearMetadata=x(function(e,t){return F.clear(this._metadata,e,t)},`clearMetadata`),o.addFeatureFlag=x(function(e,t){t===void 0&&(t=null),Fe(this._features,this._featuresIndex,e,t)},`addFeatureFlag`),o.addFeatureFlags=x(function(e){Le(this._features,e,this._featuresIndex)},`addFeatureFlags`),o.clearFeatureFlag=x(function(e){Ie(this._features,this._featuresIndex,e)},`clearFeatureFlag`),o.clearFeatureFlags=x(function(){this._features=[],this._featuresIndex={}},`clearFeatureFlags`),o.getContext=x(function(){return this._context},`getContext`),o.setContext=x(function(e){this._context=e},`setContext`),o.getGroupingDiscriminator=x(function(){return this._groupingDiscriminator},`getGroupingDiscriminator`),o.setGroupingDiscriminator=x(function(e){var t=this._groupingDiscriminator;return(typeof e==`string`||e==null)&&(this._groupingDiscriminator=e),t},`setGroupingDiscriminator`),o._configure=x(function(e,t){var r=n(t,function(e,t){return t&&t.configSchema?h({},e,t.configSchema):e},this._schema);e.endpoints||(e.sendPayloadChecksums=`sendPayloadChecksums`in e?e.sendPayloadChecksums:!0);var i=n(c(r),function(t,n){var i=r[n].defaultValue(e[n]);return e[n]===void 0?t.config[n]=i:r[n].validate(e[n])?r[n].allowPartialObject?t.config[n]=h(i,e[n]):t.config[n]=e[n]:(t.errors[n]=r[n].message,t.config[n]=i),t},{errors:{},config:{}}),a=i.errors,o=i.config;if(r.apiKey){if(!o.apiKey)throw Error(`No Bugsnag API Key set`);/^[0-9a-f]{32}$/i.test(o.apiKey)||(a.apiKey=`should be a string of 32 hexadecimal characters`),e.endpoints===void 0&&o.apiKey.startsWith(Re)&&(o.endpoints={notify:ze,sessions:Be})}return this._metadata=h({},o.metadata),Le(this._features,o.featureFlags,this._featuresIndex),this._user=h({},o.user),this._context=o.context,o.logger&&(this._logger=o.logger),o.onError&&(this._cbs.e=this._cbs.e.concat(o.onError)),o.onBreadcrumb&&(this._cbs.b=this._cbs.b.concat(o.onBreadcrumb)),o.onSession&&(this._cbs.s=this._cbs.s.concat(o.onSession)),c(a).length&&this._logger.warn(Ue(a,e)),o},`_configure`),o.getUser=x(function(){return this._user},`getUser`),o.setUser=x(function(e,t,n){this._user={id:e,email:t,name:n}},`setUser`),o._loadPlugin=x(function(e){var t=e.load(this);e.name&&(this._plugins[`~`+e.name+`~`]=t)},`_loadPlugin`),o.getPlugin=x(function(e){return this._plugins[`~`+e+`~`]},`getPlugin`),o._setDelivery=x(function(e){this._delivery=e(this)},`_setDelivery`),o.startSession=x(function(){var e=new Pe;return e.app.releaseStage=this._config.releaseStage,e.app.version=this._config.appVersion,e.app.type=this._config.appType,e._user=h({},this._user),ve(this._cbs.s,e,`onSession`,this._logger)?(this._logger.debug(`Session not started due to onSession callback`),this):this._sessionDelegate.startSession(this,e)},`startSession`),o.addOnError=x(function(e,t){t===void 0&&(t=!1),this._cbs.e[t?`unshift`:`push`](e)},`addOnError`),o.removeOnError=x(function(e){this._cbs.e=r(this._cbs.e,function(t){return t!==e})},`removeOnError`),o._addOnSessionPayload=x(function(e){this._cbs.sp.push(e)},`_addOnSessionPayload`),o.addOnSession=x(function(e){this._cbs.s.push(e)},`addOnSession`),o.removeOnSession=x(function(e){this._cbs.s=r(this._cbs.s,function(t){return t!==e})},`removeOnSession`),o.addOnBreadcrumb=x(function(e,t){t===void 0&&(t=!1),this._cbs.b[t?`unshift`:`push`](e)},`addOnBreadcrumb`),o.removeOnBreadcrumb=x(function(e){this._cbs.b=r(this._cbs.b,function(t){return t!==e})},`removeOnBreadcrumb`),o.pauseSession=x(function(){return this._sessionDelegate.pauseSession(this)},`pauseSession`),o.resumeSession=x(function(){return this._sessionDelegate.resumeSession(this)},`resumeSession`),o.leaveBreadcrumb=x(function(n,r,a){if(n=typeof n==`string`?n:``,a=typeof a==`string`&&i(t,a)?a:`manual`,r=typeof r==`object`&&r?r:{},n){var o=new e(n,r,a);if(ve(this._cbs.b,o,`onBreadcrumb`,this._logger)){this._logger.debug(`Breadcrumb not attached due to onBreadcrumb callback`);return}this._breadcrumbs.push(o),this._breadcrumbs.length>this._config.maxBreadcrumbs&&(this._breadcrumbs=this._breadcrumbs.slice(this._breadcrumbs.length-this._config.maxBreadcrumbs))}},`leaveBreadcrumb`),o._isBreadcrumbTypeEnabled=x(function(e){var t=this._config.enabledBreadcrumbTypes;return t===null||i(t,e)},`_isBreadcrumbTypeEnabled`),o.notify=x(function(e,t,n){n===void 0&&(n=Ve);var r=ge.create(e,!0,void 0,`notify()`,this._depth+1,this._logger);this._notify(r,t,n)},`notify`),o._notify=x(function(e,t,n){var r=this;if(n===void 0&&(n=Ve),e.app=h({},e.app,{releaseStage:this._config.releaseStage,version:this._config.appVersion,type:this._config.appType}),e.context=e.context||this._context,e._metadata=h({},e._metadata,this._metadata),e._user=h({},e._user,this._user),e.breadcrumbs=this._breadcrumbs.slice(),e.setGroupingDiscriminator(this._groupingDiscriminator),Le(e._features,this._features,e._featuresIndex),this._config.enabledReleaseStages!==null&&!i(this._config.enabledReleaseStages,this._config.releaseStage))return this._logger.warn(`Event not sent due to releaseStage/enabledReleaseStages configuration`),n(null,e);var o=e.severity,s=x(function(e){r._logger.error(`Error occurred in onError callback, continuing anyway…`),r._logger.error(e)},`onCallbackError`);z([].concat(this._cbs.e,t),e,s,function(t,i){if(t&&s(t),!i)return r._logger.debug(`Event not sent due to onError callback`),n(null,e);r._isBreadcrumbTypeEnabled(`error`)&&a.prototype.leaveBreadcrumb.call(r,e.errors[0].errorClass,{errorClass:e.errors[0].errorClass,errorMessage:e.errors[0].errorMessage,severity:e.severity},`error`),o!==e.severity&&(e._handledState.severityReason={type:`userCallbackSetSeverity`}),e.unhandled!==e._handledState.unhandled&&(e._handledState.severityReason.unhandledOverridden=!0,e._handledState.unhandled=e.unhandled),r._session&&(r._session._track(e),e._session=r._session),r._delivery.sendEvent({apiKey:e.apiKey||r._config.apiKey,notifier:r._notifier,events:[e]},function(t){return n(t,e)})})},`_notify`),a}(),Ue=x(function(e,t){return Error(`Invalid configuration
254
+ `).filter(function(e){return!!e.match(t)&&!e.match(/^Error created at/)},this).map(function(t){var n=t.split(`@`),r=this.extractLocation(n.pop()),i=n.shift()||``,a=i.replace(/<anonymous function(: (\w+))?>/,`$2`).replace(/\([^)]*\)/g,``)||void 0,o;return i.match(/\(([^)]*)\)/)&&(o=i.replace(/^[^(]+\(([^)]*)\)$/,`$1`)),new e({functionName:a,args:o===void 0||o===`[arguments not available]`?void 0:o.split(`,`),fileName:r[0],lineNumber:r[1],columnNumber:r[2],source:t})},this)},`ErrorStackParser$$parseOpera11`)}},`ErrorStackParser`))}}),ta=E({"../../node_modules/.pnpm/iserror@0.0.2/node_modules/iserror/index.js"(e,t){t.exports=n;function n(e){switch(Object.prototype.toString.call(e)){case`[object Error]`:return!0;case`[object Exception]`:return!0;case`[object DOMException]`:return!0;default:return e instanceof Error}}x(n,`isError`)}}),na=E({"../../node_modules/.pnpm/stack-generator@2.0.10/node_modules/stack-generator/stack-generator.js"(e,t){(function(n,r){typeof define==`function`&&define.amd?define(`stack-generator`,[`stackframe`],r):typeof e==`object`?t.exports=r($i()):n.StackGenerator=r(n.StackFrame)})(e,function(e){return{backtrace:x(function(t){var n=[],r=10;typeof t==`object`&&typeof t.maxStackSize==`number`&&(r=t.maxStackSize);for(var i=arguments.callee;i&&n.length<r&&i.arguments;){for(var a=Array(i.arguments.length),o=0;o<a.length;++o)a[o]=i.arguments[o];/function(?:\s+([\w$]+))+\s*\(/.test(i.toString())?n.push(new e({functionName:RegExp.$1||void 0,args:a})):n.push(new e({args:a}));try{i=i.caller}catch{break}}return n},`StackGenerator$$backtrace`)}})}}),ra=E({"../../node_modules/.pnpm/wrappy@1.0.2/node_modules/wrappy/wrappy.js"(e,t){t.exports=n;function n(e,t){if(e&&t)return n(e)(t);if(typeof e!=`function`)throw TypeError(`need wrapper function`);return Object.keys(e).forEach(function(t){r[t]=e[t]}),r;function r(){for(var t=Array(arguments.length),n=0;n<t.length;n++)t[n]=arguments[n];var r=e.apply(this,t),i=t[t.length-1];return typeof r==`function`&&r!==i&&Object.keys(i).forEach(function(e){r[e]=i[e]}),r}}x(n,`wrappy`)}}),ia=E({"../../node_modules/.pnpm/once@1.4.0/node_modules/once/once.js"(e,t){var n=ra();t.exports=n(r),t.exports.strict=n(i),r.proto=r(function(){Object.defineProperty(Function.prototype,`once`,{value:x(function(){return r(this)},`value`),configurable:!0}),Object.defineProperty(Function.prototype,`onceStrict`,{value:x(function(){return i(this)},`value`),configurable:!0})});function r(e){var t=x(function(){return t.called?t.value:(t.called=!0,t.value=e.apply(this,arguments))},`f`);return t.called=!1,t}x(r,`once`);function i(e){var t=x(function(){if(t.called)throw Error(t.onceError);return t.called=!0,t.value=e.apply(this,arguments)},`f`);return t.onceError=(e.name||"Function wrapped with `once`")+` shouldn't be called more than once`,t.called=!1,t}x(i,`onceStrict`)}}),aa=E({"../../node_modules/.pnpm/end-of-stream@1.4.4/node_modules/end-of-stream/index.js"(e,t){var n=ia(),r=x(function(){},`noop`),i=x(function(e){return e.setHeader&&typeof e.abort==`function`},`isRequest`),a=x(function(e){return e.stdio&&Array.isArray(e.stdio)&&e.stdio.length===3},`isChildProcess`),o=x(function(e,t,s){if(typeof t==`function`)return o(e,null,t);t||={},s=n(s||r);var c=e._writableState,l=e._readableState,u=t.readable||t.readable!==!1&&e.readable,d=t.writable||t.writable!==!1&&e.writable,f=!1,p=x(function(){e.writable||m()},`onlegacyfinish`),m=x(function(){d=!1,u||s.call(e)},`onfinish`),h=x(function(){u=!1,d||s.call(e)},`onend`),g=x(function(t){s.call(e,t?Error(`exited with error code: `+t):null)},`onexit`),_=x(function(t){s.call(e,t)},`onerror`),v=x(function(){process.nextTick(y)},`onclose`),y=x(function(){if(!f&&(u&&!(l&&l.ended&&!l.destroyed)||d&&!(c&&c.ended&&!c.destroyed)))return s.call(e,Error(`premature close`))},`onclosenexttick`),b=x(function(){e.req.on(`finish`,m)},`onrequest`);return i(e)?(e.on(`complete`,m),e.on(`abort`,v),e.req?b():e.on(`request`,b)):d&&!c&&(e.on(`end`,p),e.on(`close`,p)),a(e)&&e.on(`exit`,g),e.on(`end`,h),e.on(`finish`,m),t.error!==!1&&e.on(`error`,_),e.on(`close`,v),function(){f=!0,e.removeListener(`complete`,m),e.removeListener(`abort`,v),e.removeListener(`request`,b),e.req&&e.req.removeListener(`finish`,m),e.removeListener(`end`,p),e.removeListener(`close`,p),e.removeListener(`finish`,m),e.removeListener(`exit`,g),e.removeListener(`end`,h),e.removeListener(`error`,_),e.removeListener(`close`,v)}},`eos`);t.exports=o}}),oa=E({"../../node_modules/.pnpm/pump@3.0.0/node_modules/pump/index.js"(e,t){var n=ia(),r=aa(),i=b(`fs`),a=x(function(){},`noop`),o=/^v?\.0/.test(process.version),s=x(function(e){return typeof e==`function`},`isFn`),c=x(function(e){return!o||!i?!1:(e instanceof(i.ReadStream||a)||e instanceof(i.WriteStream||a))&&s(e.close)},`isFS`),l=x(function(e){return e.setHeader&&s(e.abort)},`isRequest`),u=x(function(e,t,i,o){o=n(o);var u=!1;e.on(`close`,function(){u=!0}),r(e,{readable:t,writable:i},function(e){if(e)return o(e);u=!0,o()});var d=!1;return function(t){if(!u&&!d){if(d=!0,c(e))return e.close(a);if(l(e))return e.abort();if(s(e.destroy))return e.destroy();o(t||Error(`stream was destroyed`))}}},`destroyer`),d=x(function(e){e()},`call`),f=x(function(e,t){return e.pipe(t)},`pipe`);t.exports=x(function(){var e=Array.prototype.slice.call(arguments),t=s(e[e.length-1]||a)&&e.pop()||a;if(Array.isArray(e[0])&&(e=e[0]),e.length<2)throw Error(`pump requires two streams per minimum`);var n,r=e.map(function(i,a){var o=a<e.length-1;return u(i,o,a>0,function(e){n||=e,e&&r.forEach(d),!o&&(r.forEach(d),t(n))})});return e.reduce(f)},`pump`)}}),sa=E({"../../node_modules/.pnpm/byline@5.0.0/node_modules/byline/lib/byline.js"(e,t){var n=b(`stream`),r=b(`util`),i=b(`timers`);t.exports=function(e,n){return t.exports.createStream(e,n)},t.exports.createStream=function(e,t){return e?a(e,t):new o(t)},t.exports.createLineStream=function(e){return console.log(`WARNING: byline#createLineStream is deprecated and will be removed soon`),a(e)};function a(e,t){if(!e)throw Error(`expected readStream`);if(!e.readable)throw Error(`readStream must be readable`);var n=new o(t);return e.pipe(n),n}x(a,`createLineStream`),t.exports.LineStream=o;function o(e){n.Transform.call(this,e),e||={},this._readableState.objectMode=!0,this._lineBuffer=[],this._keepEmptyLines=e.keepEmptyLines||!1,this._lastChunkEndedWithCR=!1;var t=this;this.on(`pipe`,function(e){t.encoding||e instanceof n.Readable&&(t.encoding=e._readableState.encoding)})}x(o,`LineStream`),r.inherits(o,n.Transform),o.prototype._transform=function(e,t,n){t||=`utf8`,Buffer.isBuffer(e)&&(t==`buffer`?(e=e.toString(),t=`utf8`):e=e.toString(t)),this._chunkEncoding=t;var r=e.split(/\r\n|[\n\v\f\r\x85\u2028\u2029]/g);this._lastChunkEndedWithCR&&e[0]==`
255
+ `&&r.shift(),this._lineBuffer.length>0&&(this._lineBuffer[this._lineBuffer.length-1]+=r[0],r.shift()),this._lastChunkEndedWithCR=e[e.length-1]==`\r`,this._lineBuffer=this._lineBuffer.concat(r),this._pushBuffer(t,1,n)},o.prototype._pushBuffer=function(e,t,n){for(;this._lineBuffer.length>t;){var r=this._lineBuffer.shift();if((this._keepEmptyLines||r.length>0)&&!this.push(this._reencode(r,e))){var a=this;i.setImmediate(function(){a._pushBuffer(e,t,n)});return}}n()},o.prototype._flush=function(e){this._pushBuffer(this._chunkEncoding,0,e)},o.prototype._reencode=function(e,t){return this.encoding&&this.encoding!=t?new Buffer(e,t).toString(this.encoding):this.encoding?e:new Buffer(e,t)}}}),ca=E({"../../node_modules/.pnpm/@bugsnag+node@8.6.0/node_modules/@bugsnag/node/dist/bugsnag.js"(e,t){(function(n){if(typeof e==`object`&&t!==void 0)t.exports=n();else if(typeof define==`function`&&define.amd)define([],n);else{var r=typeof window<`u`?window:typeof global<`u`?global:typeof self<`u`?self:this;r.bugsnag=n()}})(function(){var e=function(){function e(e,t,n,r){r===void 0&&(r=new Date),this.type=n,this.message=e,this.metadata=t,this.timestamp=r}x(e,`Breadcrumb`);var t=e.prototype;return t.toJSON=x(function(){return{type:this.type,name:this.message,timestamp:this.timestamp,metaData:this.metadata}},`toJSON`),e}(),t=[`navigation`,`request`,`process`,`log`,`user`,`state`,`error`,`manual`],n=x(function(e,t,n){for(var r=n,i=0,a=e.length;i<a;i++)r=t(r,e[i],i,e);return r},`_$reduce_22`),r=x(function(e,t){return n(e,function(e,n,r,i){return t(n,r,i)?e.concat(n):e},[])},`_$filter_17`),i=x(function(e,t){return n(e,function(e,n,r,i){return e===!0||n===t},!1)},`_$includes_18`),a=x(function(e){return Object.prototype.toString.call(e)===`[object Array]`},`_$isArray_19`),o=!{toString:null}.propertyIsEnumerable(`toString`),s=[`toString`,`toLocaleString`,`valueOf`,`hasOwnProperty`,`isPrototypeOf`,`propertyIsEnumerable`,`constructor`],c=x(function(e){var t=[],n;for(n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.push(n);if(!o)return t;for(var r=0,i=s.length;r<i;r++)Object.prototype.hasOwnProperty.call(e,s[r])&&t.push(s[r]);return t},`_$keys_20`),l=x(function(e,t){return e===void 0&&(e=1),t===void 0&&(t=1/0),function(n){return typeof n==`number`&&parseInt(``+n,10)===n&&n>=e&&n<=t}},`_$intRange_31`),u=x(function(e){return typeof e==`function`||a(e)&&r(e,function(e){return typeof e==`function`}).length===e.length},`_$listOfFunctions_32`),d=x(function(e){return typeof e==`string`&&!!e.length},`_$stringWithLength_33`),f={},p=x(function(){return{unhandledExceptions:!0,unhandledRejections:!0}},`defaultErrorTypes`);f.schema={apiKey:{defaultValue:x(function(){return null},`defaultValue`),message:`is required`,validate:d},appVersion:{defaultValue:x(function(){},`defaultValue`),message:`should be a string`,validate:x(function(e){return e===void 0||d(e)},`validate`)},appType:{defaultValue:x(function(){},`defaultValue`),message:`should be a string`,validate:x(function(e){return e===void 0||d(e)},`validate`)},autoDetectErrors:{defaultValue:x(function(){return!0},`defaultValue`),message:`should be true|false`,validate:x(function(e){return e===!0||e===!1},`validate`)},enabledErrorTypes:{defaultValue:x(function(){return p()},`defaultValue`),message:`should be an object containing the flags { unhandledExceptions:true|false, unhandledRejections:true|false }`,allowPartialObject:!0,validate:x(function(e){if(typeof e!=`object`||!e)return!1;var t=c(e),n=c(p());return!(r(t,function(e){return i(n,e)}).length<t.length||r(c(e),function(t){return typeof e[t]!=`boolean`}).length>0)},`validate`)},onError:{defaultValue:x(function(){return[]},`defaultValue`),message:`should be a function or array of functions`,validate:u},onSession:{defaultValue:x(function(){return[]},`defaultValue`),message:`should be a function or array of functions`,validate:u},onBreadcrumb:{defaultValue:x(function(){return[]},`defaultValue`),message:`should be a function or array of functions`,validate:u},endpoints:{defaultValue:x(function(e){return e===void 0?{notify:`https://notify.bugsnag.com`,sessions:`https://sessions.bugsnag.com`}:{notify:null,sessions:null}},`defaultValue`),message:`should be an object containing endpoint URLs { notify, sessions }`,validate:x(function(e){return e&&typeof e==`object`&&d(e.notify)&&d(e.sessions)&&r(c(e),function(e){return!i([`notify`,`sessions`],e)}).length===0},`validate`)},autoTrackSessions:{defaultValue:x(function(e){return!0},`defaultValue`),message:`should be true|false`,validate:x(function(e){return e===!0||e===!1},`validate`)},enabledReleaseStages:{defaultValue:x(function(){return null},`defaultValue`),message:`should be an array of strings`,validate:x(function(e){return e===null||a(e)&&r(e,function(e){return typeof e==`string`}).length===e.length},`validate`)},releaseStage:{defaultValue:x(function(){return`production`},`defaultValue`),message:`should be a string`,validate:x(function(e){return typeof e==`string`&&e.length},`validate`)},maxBreadcrumbs:{defaultValue:x(function(){return 25},`defaultValue`),message:`should be a number ≤100`,validate:x(function(e){return l(0,100)(e)},`validate`)},enabledBreadcrumbTypes:{defaultValue:x(function(){return t},`defaultValue`),message:`should be null or a list of available breadcrumb types (`+t.join(`,`)+`)`,validate:x(function(e){return e===null||a(e)&&n(e,function(e,n){return e===!1?e:i(t,n)},!0)},`validate`)},context:{defaultValue:x(function(){},`defaultValue`),message:`should be a string`,validate:x(function(e){return e===void 0||typeof e==`string`},`validate`)},user:{defaultValue:x(function(){return{}},`defaultValue`),message:`should be an object with { id, email, name } properties`,validate:x(function(e){return e===null||e&&n(c(e),function(e,t){return e&&i([`id`,`email`,`name`],t)},!0)},`validate`)},metadata:{defaultValue:x(function(){return{}},`defaultValue`),message:`should be an object`,validate:x(function(e){return typeof e==`object`&&!!e},`validate`)},logger:{defaultValue:x(function(){},`defaultValue`),message:`should be null or an object with methods { debug, info, warn, error }`,validate:x(function(e){return!e||e&&n([`debug`,`info`,`warn`,`error`],function(t,n){return t&&typeof e[n]==`function`},!0)},`validate`)},redactedKeys:{defaultValue:x(function(){return[`password`]},`defaultValue`),message:`should be an array of strings|regexes`,validate:x(function(e){return a(e)&&e.length===r(e,function(e){return typeof e==`string`||e&&typeof e.test==`function`}).length},`validate`)},plugins:{defaultValue:x(function(){return[]},`defaultValue`),message:`should be an array of plugin objects`,validate:x(function(e){return a(e)&&e.length===r(e,function(e){return e&&typeof e==`object`&&typeof e.load==`function`}).length},`validate`)},featureFlags:{defaultValue:x(function(){return[]},`defaultValue`),message:`should be an array of objects that have a "name" property`,validate:x(function(e){return a(e)&&e.length===r(e,function(e){return e&&typeof e==`object`&&typeof e.name==`string`}).length},`validate`)},reportUnhandledPromiseRejectionsAsHandled:{defaultValue:x(function(){return!1},`defaultValue`),message:`should be true|false`,validate:x(function(e){return e===!0||e===!1},`validate`)},sendPayloadChecksums:{defaultValue:x(function(){return!1},`defaultValue`),message:`should be true|false`,validate:x(function(e){return e===!0||e===!1},`validate`)}};var m=ea(),h=x(function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},`_$assign_16`),g=x(function(e,t){return n(e,function(e,n,r,i){return e.concat(t(n,r,i))},[])},`_$map_21`),_=x(function(e,t,n,r){var i=r&&r.redactedKeys?r.redactedKeys:[],a=r&&r.redactedPaths?r.redactedPaths:[];return JSON.stringify(te(e,i,a),t,n)},`_$safeJsonStringify_5`),v=20,y=25e3,S=8,C=`...`;function w(e){return e instanceof Error||/^\[object (Error|(Dom)?Exception)\]$/.test(Object.prototype.toString.call(e))}x(w,`isError`);function T(e){return`[Throws: `+(e?e.message:`?`)+`]`}x(T,`throwsMessage`);function E(e,t){for(var n=0,r=e.length;n<r;n++)if(e[n]===t)return!0;return!1}x(E,`find`);function D(e,t){for(var n=0,r=e.length;n<r;n++)if(t.indexOf(e[n])===0)return!0;return!1}x(D,`isDescendent`);function O(e,t){for(var n=0,r=e.length;n<r;n++)if(typeof e[n]==`string`&&e[n].toLowerCase()===t.toLowerCase()||e[n]&&typeof e[n].test==`function`&&e[n].test(t))return!0;return!1}x(O,`shouldRedact`);function ee(e){return Object.prototype.toString.call(e)===`[object Array]`}x(ee,`__isArray_5`);function k(e,t){try{return e[t]}catch(e){return T(e)}}x(k,`safelyGetProp`);function te(e,t,n){var r=[],i=0;function a(e,o){function s(){return o.length>S&&i>y}if(x(s,`edgesExceeded`),i++,o.length>v||s())return C;if(typeof e!=`object`||!e)return e;if(E(r,e))return`[Circular]`;if(r.push(e),typeof e.toJSON==`function`)try{i--;var c=a(e.toJSON(),o);return r.pop(),c}catch(e){return T(e)}if(w(e)){i--;var l=a({name:e.name,message:e.message},o);return r.pop(),l}if(ee(e)){for(var u=[],d=0,f=e.length;d<f;d++){if(s()){u.push(C);break}u.push(a(e[d],o.concat(`[]`)))}return r.pop(),u}var p={};try{for(var m in e)if(Object.prototype.hasOwnProperty.call(e,m)){if(D(n,o.join(`.`))&&O(t,m)){p[m]=`[REDACTED]`;continue}if(s()){p[m]=C;break}p[m]=a(k(e,m),o.concat(m))}}catch{}return r.pop(),p}return x(a,`visit`),a(e,[])}x(te,`prepareObjForSerialization`);function ne(e,t,n,r){if(typeof n==`string`){r===void 0?r=null:r!==null&&typeof r!=`string`&&(r=_(r));var i=t[n];if(typeof i==`number`){e[i]={name:n,variant:r};return}e.push({name:n,variant:r}),t[n]=e.length-1}}x(ne,`add`);function A(e,t,n){if(a(t)){for(var r=0;r<t.length;++r){var i=t[r];typeof i!=`object`||!i||ne(e,n,i.name,i.variant)}return e}}x(A,`merge`);function j(e){return g(r(e,Boolean),function(e){var t=e.name,n=e.variant,r={featureFlag:t};return typeof n==`string`&&(r.variant=n),r})}x(j,`toEventApi`);function M(e,t,n){var r=t[n];typeof r==`number`&&(e[r]=null,delete t[n])}x(M,`clear`);var N={add:ne,clear:M,merge:A,toEventApi:j},P=x(function(e){return!!e&&(!!e.stack||!!e.stacktrace||!!e[`opera#sourceloc`])&&typeof(e.stack||e.stacktrace||e[`opera#sourceloc`])==`string`&&e.stack!==e.name+`: `+e.message},`_$hasStack_24`),re=ta(),ie=x(function(e,t,n,r){var i;if(t){var a;if(n===null)return oe(e,t);typeof n==`object`&&(a=n),typeof n==`string`&&(a=(i={},i[n]=r,i)),a&&(t===`__proto__`||t===`constructor`||t===`prototype`||(e[t]||(e[t]={}),e[t]=h({},e[t],a)))}},`__add_27`),ae=x(function(e,t,n){if(typeof t==`string`){if(!n)return e[t];if(e[t])return e[t][n]}},`get`),oe=x(function(e,t,n){if(typeof t==`string`){if(!n){delete e[t];return}t===`__proto__`||t===`constructor`||t===`prototype`||e[t]&&delete e[t][n]}},`__clear_27`),F={add:ie,get:ae,clear:oe};function I(){return I=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},I.apply(null,arguments)}x(I,`_extends`);var se=na(),L=function(){function e(t,n,r,i,a){r===void 0&&(r=[]),i===void 0&&(i=ue()),this.apiKey=void 0,this.context=void 0,this.groupingHash=void 0,this.originalError=a,this._handledState=i,this.severity=this._handledState.severity,this.unhandled=this._handledState.unhandled,this.app={},this.device={},this.request={},this.breadcrumbs=[],this.threads=[],this._metadata={},this._features=[],this._featuresIndex={},this._user={},this._session=void 0,this._correlation=void 0,this._groupingDiscriminator=void 0,this.errors=[fe(t,n,e.__type,r)]}x(e,`Event`);var t=e.prototype;return t.addMetadata=x(function(e,t,n){return F.add(this._metadata,e,t,n)},`addMetadata`),t.setTraceCorrelation=x(function(e,t){typeof e==`string`&&(this._correlation=I({traceId:e},typeof t==`string`?{spanId:t}:{}))},`setTraceCorrelation`),t.getGroupingDiscriminator=x(function(){return this._groupingDiscriminator},`getGroupingDiscriminator`),t.setGroupingDiscriminator=x(function(e){var t=this._groupingDiscriminator;return(typeof e==`string`||e==null)&&(this._groupingDiscriminator=e),t},`setGroupingDiscriminator`),t.getMetadata=x(function(e,t){return F.get(this._metadata,e,t)},`getMetadata`),t.clearMetadata=x(function(e,t){return F.clear(this._metadata,e,t)},`clearMetadata`),t.addFeatureFlag=x(function(e,t){t===void 0&&(t=null),N.add(this._features,this._featuresIndex,e,t)},`addFeatureFlag`),t.addFeatureFlags=x(function(e){N.merge(this._features,e,this._featuresIndex)},`addFeatureFlags`),t.getFeatureFlags=x(function(){return N.toEventApi(this._features)},`getFeatureFlags`),t.clearFeatureFlag=x(function(e){N.clear(this._features,this._featuresIndex,e)},`clearFeatureFlag`),t.clearFeatureFlags=x(function(){this._features=[],this._featuresIndex={}},`clearFeatureFlags`),t.getUser=x(function(){return this._user},`getUser`),t.setUser=x(function(e,t,n){this._user={id:e,email:t,name:n}},`setUser`),t.toJSON=x(function(){return{payloadVersion:`4`,exceptions:g(this.errors,function(e){return h({},e,{message:e.errorMessage})}),severity:this.severity,unhandled:this._handledState.unhandled,severityReason:this._handledState.severityReason,app:this.app,device:this.device,request:this.request,breadcrumbs:this.breadcrumbs,context:this.context,groupingHash:this.groupingHash,groupingDiscriminator:this._groupingDiscriminator,metaData:this._metadata,user:this._user,session:this._session,featureFlags:this.getFeatureFlags(),correlation:this._correlation}},`toJSON`),e}(),ce=x(function(e){var t={file:e.fileName,method:le(e.functionName),lineNumber:e.lineNumber,columnNumber:e.columnNumber,code:void 0,inProject:void 0};return t.lineNumber>-1&&!t.file&&!t.method&&(t.file=`global code`),t},`formatStackframe`),le=x(function(e){return/^global code$/i.test(e)?`global code`:e},`normaliseFunctionName`),ue=x(function(){return{unhandled:!1,severity:`warning`,severityReason:{type:`handledException`}}},`defaultHandledState`),de=x(function(e){return typeof e==`string`?e:``},`ensureString`);function fe(e,t,r,i){return{errorClass:de(e),errorMessage:de(t),type:r,stacktrace:n(i,function(e,t){var n=ce(t);try{return JSON.stringify(n)===`{}`?e:e.concat(n)}catch{return e}},[])}}x(fe,`createBugsnagError`);function pe(e){return e.cause?[e].concat(pe(e.cause)):[e]}x(pe,`getCauseStack`),L.getStacktrace=function(e,t,n){if(P(e))return m.parse(e).slice(t);try{return r(se.backtrace(),function(e){return(e.functionName||``).indexOf(`StackGenerator$$`)===-1}).slice(1+n)}catch{return[]}},L.create=function(e,t,n,r,i,a){i===void 0&&(i=0);var o=me(e,t,r,a),s=o[0],c=o[1],l;try{var u=L.getStacktrace(s,c>0?1+c+i:0,1+i);l=new L(s.name,s.message,u,n,e)}catch{l=new L(s.name,s.message,[],n,e)}if(s.name===`InvalidError`&&l.addMetadata(``+r,`non-error parameter`,R(e)),s.cause){var d,f=g(pe(s).slice(1),function(e){var t=re(e)&&P(e)?m.parse(e):[],n=me(e,!0,`error cause`)[0];return n.name===`InvalidError`&&l.addMetadata(`error cause`,R(e)),fe(n.name,n.message,L.__type,t)});(d=l.errors).push.apply(d,f)}return l};var R=x(function(e){return e===null?`null`:e===void 0?`undefined`:e},`makeSerialisable`),me=x(function(e,t,n,r){var i,a=0,o=x(function(e){var t=n===`error cause`?`was`:`received`;r&&r.warn(n+` `+t+` a non-error: "`+e+`"`);var i=Error(n+` `+t+` a non-error. See "`+n+`" tab for more detail.`);return i.name=`InvalidError`,i},`createAndLogInputError`);if(!t)re(e)?i=e:(i=o(typeof e),a+=2);else switch(typeof e){case`string`:case`number`:case`boolean`:i=Error(String(e)),a+=1;break;case`function`:i=o(`function`),a+=2;break;case`object`:e!==null&&re(e)?i=e:e!==null&&he(e)?(i=Error(e.message||e.errorMessage),i.name=e.name||e.errorClass,a+=1):(i=o(e===null?`null`:`unsupported object`),a+=2);break;default:i=o(`nothing`),a+=2}if(!P(i))try{throw i}catch(e){P(e)&&(i=e,a=1)}return[i,a]},`normaliseError`);L.__type=`browserjs`;var he=x(function(e){return(typeof e.name==`string`||typeof e.errorClass==`string`)&&(typeof e.message==`string`||typeof e.errorMessage==`string`)},`hasNecessaryFields`),ge=L,_e=x(function(e,t,n){var r=0,i=x(function(){if(r>=e.length)return n(null,!0);t(e[r],function(e,t){if(e)return n(e);if(t===!1)return n(null,!1);r++,i()})},`next`);i()},`_$asyncEvery_11`),ve=x(function(e,t,n,r){_e(e,x(function(e,r){if(typeof e!=`function`)return r(null);try{if(e.length!==2){var i=e(t);return i&&typeof i.then==`function`?i.then(function(e){return setTimeout(function(){return r(null,e)})},function(e){setTimeout(function(){return n(e),r(null,!0)})}):r(null,i)}e(t,function(e,t){if(e)return n(e),r(null);r(null,t)})}catch(e){n(e),r(null)}},`runMaybeAsyncCallback`),r)},`_$callbackRunner_13`),z=x(function(e,t,n,r){for(var i=!1,a=e.slice();!i&&a.length;)try{i=a.pop()(t)===!1}catch(e){r.error(`Error occurred in `+n+` callback, continuing anyway…`),r.error(e)}return i},`_$syncCallbackRunner_30`),ye=x(function(e,t){var n=`000000000`+e;return n.substr(n.length-t)},`pad`),B=b(`os`);function be(){try{return B.hostname()}catch{return process.env._CLUSTER_NETWORK_NAME_||process.env.COMPUTERNAME||`hostname`}}x(be,`getHostname`);var xe=2,Se=ye(process.pid.toString(36),xe),V=be(),Ce=V.length,we=ye(V.split(``).reduce(function(e,t){return+e+t.charCodeAt(0)},+Ce+36).toString(36),xe),Te=x(function(){return Se+we},`fingerprint`),Ee=x(function(e){return typeof e==`string`&&/^c[a-z0-9]{20,32}$/.test(e)},`isCuid`),De=0,Oe=4,ke=36,Ae=ke**+Oe;function H(){return ye((Math.random()*Ae<<0).toString(ke),Oe)}x(H,`randomBlock`);function je(){return De=De<Ae?De:0,De++,De-1}x(je,`safeCounter`);function Me(){var e=`c`,t=new Date().getTime().toString(ke),n=ye(je().toString(ke),Oe),r=Te(),i=H()+H();return e+t+n+r+i}x(Me,`cuid`),Me.fingerprint=Te,Me.isCuid=Ee;var Ne=Me,Pe=function(){function e(){this.id=Ne(),this.startedAt=new Date,this._handled=0,this._unhandled=0,this._user={},this.app={},this.device={}}x(e,`Session`);var t=e.prototype;return t.getUser=x(function(){return this._user},`getUser`),t.setUser=x(function(e,t,n){this._user={id:e,email:t,name:n}},`setUser`),t.toJSON=x(function(){return{id:this.id,startedAt:this.startedAt,events:{handled:this._handled,unhandled:this._unhandled}}},`toJSON`),t._track=x(function(e){this[e._handledState.unhandled?`_unhandled`:`_handled`]+=1},`_track`),e}(),Fe=N.add,Ie=N.clear,Le=N.merge,Re=`00000`,ze=`https://notify.insighthub.smartbear.com`,Be=`https://sessions.insighthub.smartbear.com`,Ve=x(function(){},`noop`),He=function(){function a(t,n,r,i){var o=this;n===void 0&&(n=f.schema),r===void 0&&(r=[]),this._notifier=i,this._config={},this._schema=n,this._delivery={sendSession:Ve,sendEvent:Ve},this._logger={debug:Ve,info:Ve,warn:Ve,error:Ve},this._plugins={},this._breadcrumbs=[],this._session=null,this._metadata={},this._featuresIndex={},this._features=[],this._context=void 0,this._user={},this._groupingDiscriminator=void 0,this._cbs={e:[],s:[],sp:[],b:[]},this.Client=a,this.Event=ge,this.Breadcrumb=e,this.Session=Pe,this._config=this._configure(t,r),g(r.concat(this._config.plugins),function(e){e&&o._loadPlugin(e)}),this._depth=1;var s=this,c=this.notify;this.notify=function(){return c.apply(s,arguments)}}x(a,`Client`);var o=a.prototype;return o.addMetadata=x(function(e,t,n){return F.add(this._metadata,e,t,n)},`addMetadata`),o.getMetadata=x(function(e,t){return F.get(this._metadata,e,t)},`getMetadata`),o.clearMetadata=x(function(e,t){return F.clear(this._metadata,e,t)},`clearMetadata`),o.addFeatureFlag=x(function(e,t){t===void 0&&(t=null),Fe(this._features,this._featuresIndex,e,t)},`addFeatureFlag`),o.addFeatureFlags=x(function(e){Le(this._features,e,this._featuresIndex)},`addFeatureFlags`),o.clearFeatureFlag=x(function(e){Ie(this._features,this._featuresIndex,e)},`clearFeatureFlag`),o.clearFeatureFlags=x(function(){this._features=[],this._featuresIndex={}},`clearFeatureFlags`),o.getContext=x(function(){return this._context},`getContext`),o.setContext=x(function(e){this._context=e},`setContext`),o.getGroupingDiscriminator=x(function(){return this._groupingDiscriminator},`getGroupingDiscriminator`),o.setGroupingDiscriminator=x(function(e){var t=this._groupingDiscriminator;return(typeof e==`string`||e==null)&&(this._groupingDiscriminator=e),t},`setGroupingDiscriminator`),o._configure=x(function(e,t){var r=n(t,function(e,t){return t&&t.configSchema?h({},e,t.configSchema):e},this._schema);e.endpoints||(e.sendPayloadChecksums=`sendPayloadChecksums`in e?e.sendPayloadChecksums:!0);var i=n(c(r),function(t,n){var i=r[n].defaultValue(e[n]);return e[n]===void 0?t.config[n]=i:r[n].validate(e[n])?r[n].allowPartialObject?t.config[n]=h(i,e[n]):t.config[n]=e[n]:(t.errors[n]=r[n].message,t.config[n]=i),t},{errors:{},config:{}}),a=i.errors,o=i.config;if(r.apiKey){if(!o.apiKey)throw Error(`No Bugsnag API Key set`);/^[0-9a-f]{32}$/i.test(o.apiKey)||(a.apiKey=`should be a string of 32 hexadecimal characters`),e.endpoints===void 0&&o.apiKey.startsWith(Re)&&(o.endpoints={notify:ze,sessions:Be})}return this._metadata=h({},o.metadata),Le(this._features,o.featureFlags,this._featuresIndex),this._user=h({},o.user),this._context=o.context,o.logger&&(this._logger=o.logger),o.onError&&(this._cbs.e=this._cbs.e.concat(o.onError)),o.onBreadcrumb&&(this._cbs.b=this._cbs.b.concat(o.onBreadcrumb)),o.onSession&&(this._cbs.s=this._cbs.s.concat(o.onSession)),c(a).length&&this._logger.warn(Ue(a,e)),o},`_configure`),o.getUser=x(function(){return this._user},`getUser`),o.setUser=x(function(e,t,n){this._user={id:e,email:t,name:n}},`setUser`),o._loadPlugin=x(function(e){var t=e.load(this);e.name&&(this._plugins[`~`+e.name+`~`]=t)},`_loadPlugin`),o.getPlugin=x(function(e){return this._plugins[`~`+e+`~`]},`getPlugin`),o._setDelivery=x(function(e){this._delivery=e(this)},`_setDelivery`),o.startSession=x(function(){var e=new Pe;return e.app.releaseStage=this._config.releaseStage,e.app.version=this._config.appVersion,e.app.type=this._config.appType,e._user=h({},this._user),z(this._cbs.s,e,`onSession`,this._logger)?(this._logger.debug(`Session not started due to onSession callback`),this):this._sessionDelegate.startSession(this,e)},`startSession`),o.addOnError=x(function(e,t){t===void 0&&(t=!1),this._cbs.e[t?`unshift`:`push`](e)},`addOnError`),o.removeOnError=x(function(e){this._cbs.e=r(this._cbs.e,function(t){return t!==e})},`removeOnError`),o._addOnSessionPayload=x(function(e){this._cbs.sp.push(e)},`_addOnSessionPayload`),o.addOnSession=x(function(e){this._cbs.s.push(e)},`addOnSession`),o.removeOnSession=x(function(e){this._cbs.s=r(this._cbs.s,function(t){return t!==e})},`removeOnSession`),o.addOnBreadcrumb=x(function(e,t){t===void 0&&(t=!1),this._cbs.b[t?`unshift`:`push`](e)},`addOnBreadcrumb`),o.removeOnBreadcrumb=x(function(e){this._cbs.b=r(this._cbs.b,function(t){return t!==e})},`removeOnBreadcrumb`),o.pauseSession=x(function(){return this._sessionDelegate.pauseSession(this)},`pauseSession`),o.resumeSession=x(function(){return this._sessionDelegate.resumeSession(this)},`resumeSession`),o.leaveBreadcrumb=x(function(n,r,a){if(n=typeof n==`string`?n:``,a=typeof a==`string`&&i(t,a)?a:`manual`,r=typeof r==`object`&&r?r:{},n){var o=new e(n,r,a);if(z(this._cbs.b,o,`onBreadcrumb`,this._logger)){this._logger.debug(`Breadcrumb not attached due to onBreadcrumb callback`);return}this._breadcrumbs.push(o),this._breadcrumbs.length>this._config.maxBreadcrumbs&&(this._breadcrumbs=this._breadcrumbs.slice(this._breadcrumbs.length-this._config.maxBreadcrumbs))}},`leaveBreadcrumb`),o._isBreadcrumbTypeEnabled=x(function(e){var t=this._config.enabledBreadcrumbTypes;return t===null||i(t,e)},`_isBreadcrumbTypeEnabled`),o.notify=x(function(e,t,n){n===void 0&&(n=Ve);var r=ge.create(e,!0,void 0,`notify()`,this._depth+1,this._logger);this._notify(r,t,n)},`notify`),o._notify=x(function(e,t,n){var r=this;if(n===void 0&&(n=Ve),e.app=h({},e.app,{releaseStage:this._config.releaseStage,version:this._config.appVersion,type:this._config.appType}),e.context=e.context||this._context,e._metadata=h({},e._metadata,this._metadata),e._user=h({},e._user,this._user),e.breadcrumbs=this._breadcrumbs.slice(),e.setGroupingDiscriminator(this._groupingDiscriminator),Le(e._features,this._features,e._featuresIndex),this._config.enabledReleaseStages!==null&&!i(this._config.enabledReleaseStages,this._config.releaseStage))return this._logger.warn(`Event not sent due to releaseStage/enabledReleaseStages configuration`),n(null,e);var o=e.severity,s=x(function(e){r._logger.error(`Error occurred in onError callback, continuing anyway…`),r._logger.error(e)},`onCallbackError`);ve([].concat(this._cbs.e,t),e,s,function(t,i){if(t&&s(t),!i)return r._logger.debug(`Event not sent due to onError callback`),n(null,e);r._isBreadcrumbTypeEnabled(`error`)&&a.prototype.leaveBreadcrumb.call(r,e.errors[0].errorClass,{errorClass:e.errors[0].errorClass,errorMessage:e.errors[0].errorMessage,severity:e.severity},`error`),o!==e.severity&&(e._handledState.severityReason={type:`userCallbackSetSeverity`}),e.unhandled!==e._handledState.unhandled&&(e._handledState.severityReason.unhandledOverridden=!0,e._handledState.unhandled=e.unhandled),r._session&&(r._session._track(e),e._session=r._session),r._delivery.sendEvent({apiKey:e.apiKey||r._config.apiKey,notifier:r._notifier,events:[e]},function(t){return n(t,e)})})},`_notify`),a}(),Ue=x(function(e,t){return Error(`Invalid configuration
256
256
  `+g(c(e),function(n){return` - `+n+` `+e[n]+`, got `+We(t[n])}).join(`
257
257
 
258
258
  `))},`generateConfigErrorMessage`),We=x(function(e){switch(typeof e){case`string`:case`number`:case`object`:return JSON.stringify(e);default:return String(e)}},`stringify`),Ge=He,Ke={},qe=[`events.[].metaData`,`events.[].breadcrumbs.[].metaData`,`events.[].request`];Ke.event=function(e,t){var n=_(e,null,null,{redactedPaths:qe,redactedKeys:t});return n.length>1e6&&(e.events[0]._metadata={notifier:`WARNING!
@@ -260,18 +260,18 @@ Serialized payload was `+n.length/1e6+`MB (limit = 1MB)
260
260
  metadata was removed`},n=_(e,null,null,{redactedPaths:qe,redactedKeys:t})),n},Ke.session=function(e,t){return _(e,null,null)};var Je=b(`http`),Ye=b(`https`),Xe=b(`url`).parse,Ze=x(function(e,t){var n=e.url,r=e.headers,i=e.body,a=e.agent,o=!1,s=x(function(e){o||(o=!0,t(e))},`onError`),c=Xe(n),l=(c.protocol===`https:`?Ye:Je).request({method:`POST`,hostname:c.hostname,port:c.port,path:c.path,headers:r,agent:a});l.on(`error`,s),l.on(`response`,function(e){Qe(e,function(n,r){if(n)return s(n);if(e.statusCode<200||e.statusCode>=300)return s(Error(`Bad statusCode from API: `+e.statusCode+`
261
261
  `+r));t(null,r)})}),l.write(i),l.end()},`_$request_36`),Qe=x(function(e,t){var n=``;e.on(`error`,t),e.setEncoding(`utf8`),e.on(`data`,function(e){n+=e}),e.on(`end`,function(){return t(null,n)})},`bufferResponse`),$e=x(function(e){return{sendEvent:x(function(t,n){n===void 0&&(n=x(function(){},`cb`));var r=Ke.event(t,e._config.redactedKeys),i=x(function(t){t&&e._logger.error(`Event failed to send…
262
262
  `+(t&&t.stack?t.stack:t),t),r.length>1e6&&e._logger.warn(`Event oversized (`+(r.length/1e6).toFixed(2)+` MB)`),n(t)},`_cb`);if(e._config.endpoints.notify===null)return i(Error(`Event not sent due to incomplete endpoint configuration`));try{Ze({url:e._config.endpoints.notify,headers:{"Content-Type":`application/json`,"Bugsnag-Api-Key":t.apiKey||e._config.apiKey,"Bugsnag-Payload-Version":`4`,"Bugsnag-Sent-At":new Date().toISOString()},body:r,agent:e._config.agent},function(e,t){return i(e)})}catch(e){i(e)}},`sendEvent`),sendSession:x(function(t,n){n===void 0&&(n=x(function(){},`cb`));var r=x(function(t){t&&e._logger.error(`Session failed to send…
263
- `+(t&&t.stack?t.stack:t),t),n(t)},`_cb`);if(e._config.endpoints.session===null)return r(Error(`Session not sent due to incomplete endpoint configuration`));try{Ze({url:e._config.endpoints.sessions,headers:{"Content-Type":`application/json`,"Bugsnag-Api-Key":e._config.apiKey,"Bugsnag-Payload-Version":`1`,"Bugsnag-Sent-At":new Date().toISOString()},body:Ke.session(t,e._config.redactedKeys),agent:e._config.agent},function(e){return r(e)})}catch(e){r(e)}},`sendSession`)}},`_$delivery_35`);function et(){return et=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},et.apply(null,arguments)}x(et,`___extends_37`);var tt=f.schema,nt=b(`os`),rt=b(`util`).inspect,U={appType:et({},tt.appType,{defaultValue:x(function(){return`node`},`defaultValue`)}),projectRoot:{defaultValue:x(function(){return process.cwd()},`defaultValue`),validate:x(function(e){return e===null||d(e)},`validate`),message:`should be string`},hostname:{defaultValue:x(function(){return nt.hostname()},`defaultValue`),message:`should be a string`,validate:x(function(e){return e===null||d(e)},`validate`)},logger:et({},tt.logger,{defaultValue:x(function(){return at()},`defaultValue`)}),releaseStage:et({},tt.releaseStage,{defaultValue:x(function(){return`production`},`defaultValue`)}),agent:{defaultValue:x(function(){},`defaultValue`),message:`should be an HTTP(s) agent`,validate:x(function(e){return e===void 0||st(e)},`validate`)},onUncaughtException:{defaultValue:x(function(){return function(e,t,n){n.error(`Uncaught exception`+ot(t)+`, the process will now terminate…
264
- `+it(e)),process.exit(1)}},`defaultValue`),message:`should be a function`,validate:x(function(e){return typeof e==`function`},`validate`)},onUnhandledRejection:{defaultValue:x(function(){return function(e,t,n){n.error(`Unhandled rejection`+ot(t)+`…
265
- `+it(e))}},`defaultValue`),message:`should be a function`,validate:x(function(e){return typeof e==`function`},`validate`)}},it=x(function(e){return e&&e.stack?e.stack:rt(e)},`printError`),at=x(function(){return[`debug`,`info`,`warn`,`error`].reduce(function(e,t){return e[t]=(console[t]||console.log).bind(console,`[bugsnag]`),e},{})},`getPrefixedConsole`),ot=x(function(e){return e.request&&Object.keys(e.request).length?` at `+e.request.httpMethod+` `+(e.request.path||e.request.url):``},`getContext`),st=x(function(e){return typeof e==`object`&&!!e||typeof e==`boolean`},`isAgent`),ct=new Date,lt=x(function(){ct=new Date},`reset`),ut={name:`appDuration`,load:x(function(e){return e.addOnError(function(e){var t=new Date;e.app.duration=t-ct},!0),{reset:lt}},`load`)},dt={};dt.load=function(e){/^(local-)?dev(elopment)?$/.test(e._config.releaseStage)||!e._isBreadcrumbTypeEnabled(`log`)||g(ft,function(t){var r=console[t];console[t]=function(){var i=[...arguments];e.leaveBreadcrumb(`Console output`,n(i,function(e,t,n){var r=`[Unknown value]`;try{r=String(t)}catch{}if(r===`[object Object]`)try{r=JSON.stringify(t)}catch{}return e[`[`+n+`]`]=r,e},{severity:t.indexOf(`group`)===0?`log`:t}),`log`),r.apply(console,i)},console[t]._restore=function(){console[t]=r}})};var ft=r([`log`,`debug`,`info`,`warn`,`error`],function(e){return typeof console<`u`&&typeof console[e]==`function`}),pt={},mt=[];pt=x(function(e){var t=new e.Client({},{},[],e._notifier);return t._config=e._config,t._breadcrumbs=e._breadcrumbs.slice(),t._metadata=h({},e._metadata),t._features=[].concat(e._features),t._featuresIndex=h({},e._featuresIndex),t._user=h({},e._user),t._context=e._context,t._cbs={e:e._cbs.e.slice(),s:e._cbs.s.slice(),sp:e._cbs.sp.slice(),b:e._cbs.b.slice()},t._logger=e._logger,t._delivery=e._delivery,t._sessionDelegate=e._sessionDelegate,mt.forEach(function(e){e(t)}),t},`_$cloneClient_14`),pt.registerCallback=function(e){mt.push(e)};var ht={};ht.getStack=function(){return Error().stack.split(`
263
+ `+(t&&t.stack?t.stack:t),t),n(t)},`_cb`);if(e._config.endpoints.session===null)return r(Error(`Session not sent due to incomplete endpoint configuration`));try{Ze({url:e._config.endpoints.sessions,headers:{"Content-Type":`application/json`,"Bugsnag-Api-Key":e._config.apiKey,"Bugsnag-Payload-Version":`1`,"Bugsnag-Sent-At":new Date().toISOString()},body:Ke.session(t,e._config.redactedKeys),agent:e._config.agent},function(e){return r(e)})}catch(e){r(e)}},`sendSession`)}},`_$delivery_35`);function et(){return et=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},et.apply(null,arguments)}x(et,`___extends_37`);var tt=f.schema,nt=b(`os`),rt=b(`util`).inspect,it={appType:et({},tt.appType,{defaultValue:x(function(){return`node`},`defaultValue`)}),projectRoot:{defaultValue:x(function(){return process.cwd()},`defaultValue`),validate:x(function(e){return e===null||d(e)},`validate`),message:`should be string`},hostname:{defaultValue:x(function(){return nt.hostname()},`defaultValue`),message:`should be a string`,validate:x(function(e){return e===null||d(e)},`validate`)},logger:et({},tt.logger,{defaultValue:x(function(){return at()},`defaultValue`)}),releaseStage:et({},tt.releaseStage,{defaultValue:x(function(){return`production`},`defaultValue`)}),agent:{defaultValue:x(function(){},`defaultValue`),message:`should be an HTTP(s) agent`,validate:x(function(e){return e===void 0||st(e)},`validate`)},onUncaughtException:{defaultValue:x(function(){return function(e,t,n){n.error(`Uncaught exception`+ot(t)+`, the process will now terminate…
264
+ `+U(e)),process.exit(1)}},`defaultValue`),message:`should be a function`,validate:x(function(e){return typeof e==`function`},`validate`)},onUnhandledRejection:{defaultValue:x(function(){return function(e,t,n){n.error(`Unhandled rejection`+ot(t)+`…
265
+ `+U(e))}},`defaultValue`),message:`should be a function`,validate:x(function(e){return typeof e==`function`},`validate`)}},U=x(function(e){return e&&e.stack?e.stack:rt(e)},`printError`),at=x(function(){return[`debug`,`info`,`warn`,`error`].reduce(function(e,t){return e[t]=(console[t]||console.log).bind(console,`[bugsnag]`),e},{})},`getPrefixedConsole`),ot=x(function(e){return e.request&&Object.keys(e.request).length?` at `+e.request.httpMethod+` `+(e.request.path||e.request.url):``},`getContext`),st=x(function(e){return typeof e==`object`&&!!e||typeof e==`boolean`},`isAgent`),ct=new Date,lt=x(function(){ct=new Date},`reset`),ut={name:`appDuration`,load:x(function(e){return e.addOnError(function(e){var t=new Date;e.app.duration=t-ct},!0),{reset:lt}},`load`)},dt={};dt.load=function(e){/^(local-)?dev(elopment)?$/.test(e._config.releaseStage)||!e._isBreadcrumbTypeEnabled(`log`)||g(ft,function(t){var r=console[t];console[t]=function(){var i=[...arguments];e.leaveBreadcrumb(`Console output`,n(i,function(e,t,n){var r=`[Unknown value]`;try{r=String(t)}catch{}if(r===`[object Object]`)try{r=JSON.stringify(t)}catch{}return e[`[`+n+`]`]=r,e},{severity:t.indexOf(`group`)===0?`log`:t}),`log`),r.apply(console,i)},console[t]._restore=function(){console[t]=r}})};var ft=r([`log`,`debug`,`info`,`warn`,`error`],function(e){return typeof console<`u`&&typeof console[e]==`function`}),pt={},mt=[];pt=x(function(e){var t=new e.Client({},{},[],e._notifier);return t._config=e._config,t._breadcrumbs=e._breadcrumbs.slice(),t._metadata=h({},e._metadata),t._features=[].concat(e._features),t._featuresIndex=h({},e._featuresIndex),t._user=h({},e._user),t._context=e._context,t._cbs={e:e._cbs.e.slice(),s:e._cbs.s.slice(),sp:e._cbs.sp.slice(),b:e._cbs.b.slice()},t._logger=e._logger,t._delivery=e._delivery,t._sessionDelegate=e._sessionDelegate,mt.forEach(function(e){e(t)}),t},`_$cloneClient_14`),pt.registerCallback=function(e){mt.push(e)};var ht={};ht.getStack=function(){return Error().stack.split(`
266
266
  `).slice(3).join(`
267
267
  `)},ht.maybeUseFallbackStack=function(e,t){var n=e.stack.split(`
268
268
  `);return(n.length===1||n.length===2&&/at Error \(native\)/.test(n[1]))&&(e.stack=n[0]+`
269
- `+t),e};var gt={},_t=ht.getStack;gt={name:`contextualize`,load:x(function(e){return x(function(t,n){var r=_t(),i=pt(e);i.fallbackStack=r,i.addOnError(n),e._clientContext.run(i,t)},`contextualize`)},`load`)},gt.default=gt;var vt={},yt=ht.getStack,bt=ht.maybeUseFallbackStack;vt={name:`intercept`,load:x(function(e){return x(function(t,n){t===void 0&&(t=x(function(){},`onError`)),typeof n!=`function`&&(n=t,t=x(function(){},`onError`));var r=yt();return function(i){if(i){i.stack&&bt(i,r);var a=e.Event.create(i,!0,{severity:`warning`,unhandled:!1,severityReason:{type:`callbackErrorIntercept`}},`intercept()`,1);e._notify(a,t);return}var o=[...arguments].slice(1);n.apply(void 0,o)}},`intercept`)},`load`)},vt.default=vt;function xt(){return xt=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},xt.apply(null,arguments)}x(xt,`___extends_43`);var St=b(`os`),Ct={load:x(function(e){var t={osName:St.platform()+` (`+St.arch()+`)`,osVersion:St.release(),totalMemory:St.totalmem(),hostname:e._config.hostname,runtimeVersions:{node:process.versions.node}};e._addOnSessionPayload(function(e){e.device=xt({},e.device,t)}),e.addOnError(function(e){e.device=xt({},e.device,t,{freeMemory:St.freemem(),time:new Date})},!0)},`load`)},wt=b(`path`),Tt=wt.join,Et=wt.resolve,Dt=x(function(e){return Tt(Et(e),`/`)},`_$pathNormalizer_29`),Ot={load:x(function(e){return e.addOnError(function(t){if(e._config.projectRoot){var n=Dt(e._config.projectRoot);t.errors.reduce(function(e,t){return e.concat(t.stacktrace)},[]).map(function(e){e.inProject=typeof e.file==`string`&&e.file.indexOf(n)===0&&!/\/node_modules\//.test(e.file)})}})},`load`)};function kt(){return kt=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},kt.apply(null,arguments)}x(kt,`___extends_45`);function At(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,jt(e,t)}x(At,`_inheritsLoose`);function jt(e,t){return jt=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},jt(e,t)}x(jt,`_setPrototypeOf`);var Mt=3,Nt=200,Pt=b(`fs`).createReadStream,Ft=b(`stream`).Writable,It=aa(),Lt=oa(),W=b(`path`),Rt={load:x(function(e){if(e._config.sendCode){var t=x(function(t,n){return new Promise(function(r,i){try{if(!t.lineNumber||!t.file)return r(t);var a=W.resolve(e._config.projectRoot,t.file),o=a+`@`+t.lineNumber;if(o in n)return t.code=n[o],r(t);zt(a,t.lineNumber,function(e,i){return e||(t.code=n[o]=i),r(t)})}catch{return r(t)}})},`loadSurroundingCode`);e.addOnError(function(e){return new Promise(function(n,r){var i=Object.create(null);K(e.errors.reduce(function(e,t){return e.concat(t.stacktrace)},[]).map(function(e){return function(){return t(e,i)}})).then(n).catch(r)})})}},`load`),configSchema:{sendCode:{defaultValue:x(function(){return!0},`defaultValue`),validate:x(function(e){return e===!0||e===!1},`validate`),message:`should be true or false`}}},zt=x(function(e,t,n){var r=t-Mt,i=t+Mt,a=Pt(e,{encoding:`utf8`}),o=new Lt.LineStream({keepEmptyLines:!0}),s=new G({start:r,end:i});s.on(`done`,function(){return a.destroy()}),It(a,o,s,function(e){if(e&&e.message!==`premature close`)return n(e);n(null,s.getCode())})},`getSurroundingCode`),G=function(e){function t(t){var n=e.call(this,kt({},t,{decodeStrings:!1}))||this;return n._start=t.start,n._end=t.end,n._n=0,n._code={},n}x(t,`CodeRange`),At(t,e);var n=t.prototype;return n._write=x(function(e,t,n){return this._n++,this._n<this._start?n(null):this._n<=this._end?(this._code[String(this._n)]=e.length<=Nt?e:e.substr(0,Nt),n(null)):(this.emit(`done`),n(null))},`_write`),n.getCode=x(function(){return this._code},`getCode`),t}(Ft),K=x(function(e){return new Promise(function(t,n){var r=[];e.reduce(function(e,t){return e.then(function(e){return r.push(e),t()})},Promise.resolve()).then(function(e){r.push(e)}).then(function(){t(r.slice(1))})})},`pMapSeries`),q=ht.maybeUseFallbackStack,Bt,Vt={load:x(function(e){e._config.autoDetectErrors&&e._config.enabledErrorTypes.unhandledExceptions&&(Bt=x(function(t){var n=e._clientContext&&e._clientContext.getStore()||e;t.stack&&n.fallbackStack&&q(t,n.fallbackStack);var r=n.Event.create(t,!1,{severity:`error`,unhandled:!0,severityReason:{type:`unhandledException`}},`uncaughtException handler`,1);return new Promise(function(e){n._notify(r,function(){},function(r,i){r&&n._logger.error(`Failed to send event to Bugsnag`),n._config.onUncaughtException(t,i,n._logger),e()})})},`_handler`),process.prependListener(`uncaughtException`,Bt))},`load`),destroy:x(function(){process.removeListener(`uncaughtException`,Bt)},`destroy`)},Ht,Ut={load:x(function(e){!e._config.autoDetectErrors||!e._config.enabledErrorTypes.unhandledRejections||(Ht=x(function(t){var n=e._clientContext&&e._clientContext.getStore()||e,r=!e._config.reportUnhandledPromiseRejectionsAsHandled,i=n.Event.create(t,!1,{severity:`error`,unhandled:r,severityReason:{type:`unhandledPromiseRejection`}},`unhandledRejection handler`,1);return new Promise(function(e){n._notify(i,function(){},function(r,i){r&&n._logger.error(`Failed to send event to Bugsnag`),n._config.onUnhandledRejection(t,i,n._logger),e()})})},`___handler_47`),process.prependListener?process.prependListener(`unhandledRejection`,Ht):process.on(`unhandledRejection`,Ht))},`load`),destroy:x(function(){process.removeListener(`unhandledRejection`,Ht)},`destroy`)},Wt=Gt;function Gt(e){e||={},this.ms=e.min||100,this.max=e.max||1e4,this.factor=e.factor||2,this.jitter=e.jitter>0&&e.jitter<=1?e.jitter:0,this.attempts=0}x(Gt,`Backoff`),Gt.prototype.duration=function(){var e=this.ms*this.factor**+ this.attempts++;if(this.jitter){var t=Math.random(),n=Math.floor(t*this.jitter*e);e=Math.floor(t*10)&1?e+n:e-n}return Math.min(e,this.max)|0},Gt.prototype.reset=function(){this.attempts=0};function Kt(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,qt(e,t)}x(Kt,`___inheritsLoose_49`);function qt(e,t){return qt=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},qt(e,t)}x(qt,`___setPrototypeOf_49`);var Jt=10*1e3,Yt=function(e){function t(t){var n=e.call(this)||this;return n._sessions=new Map,n._interval=null,n._intervalLength=t||Jt,n._summarize=n._summarize.bind(n),n}x(t,`SessionTracker`),Kt(t,e);var n=t.prototype;return n.start=x(function(){this._interval||=setInterval(this._summarize,this._intervalLength).unref()},`start`),n.stop=x(function(){clearInterval(this._interval),this._interval=null},`stop`),n.track=x(function(e){var t=Xt(e.startedAt),n=this._sessions.get(t);return this._sessions.set(t,n===void 0?1:n+1),e},`track`),n._summarize=x(function(){var e=this,t=[];this._sessions.forEach(function(n,r){t.push({startedAt:r,sessionsStarted:n}),e._sessions.delete(r)}),t.length&&this.emit(`summary`,t)},`_summarize`),t}(b(`events`).EventEmitter),Xt=x(function(e){var t=new Date(e);return t.setSeconds(0),t.setMilliseconds(0),t.toISOString()},`dateToMsKey`),Zt={load:x(function(e){var t=new Yt(e._config.sessionSummaryInterval);t.on(`summary`,J(e)),t.start(),e._sessionDelegate={startSession:x(function(e,n){return e._session=n,e._pausedSession=null,t.track(e._session),e},`startSession`),pauseSession:x(function(e){e._pausedSession=e._session,e._session=null},`pauseSession`),resumeSession:x(function(e){return e._session?e:e._pausedSession?(e._session=e._pausedSession,e._pausedSession=null,e):e.startSession()},`resumeSession`)}},`load`),configSchema:{sessionSummaryInterval:{defaultValue:x(function(){},`defaultValue`),validate:x(function(e){return e===void 0||l()(e)},`validate`),message:`should be a positive integer`}}},J=x(function(e){return function(t){if(e._config.enabledReleaseStages!==null&&!e._config.enabledReleaseStages.includes(e._config.releaseStage)){e._logger.warn(`Session not sent due to releaseStage/enabledReleaseStages configuration`);return}if(!t.length)return;var n=new Wt({min:1e3,max:1e4}),r=10;a(i);function i(o){if(!o){var s=t.reduce(function(e,t){return e+t.sessionsStarted},0);return e._logger.debug(s+` session(s) reported`)}if(n.attempts===10){e._logger.error(`Session delivery failed, max retries exceeded`,o);return}e._logger.debug(`Session delivery failed, retry #`+(n.attempts+1)+`/`+r,o),setTimeout(function(){return a(i)},n.duration())}x(i,`handleRes`);function a(n){var r={notifier:e._notifier,device:{},app:{releaseStage:e._config.releaseStage,version:e._config.appVersion,type:e._config.appType},sessionCounts:t};if(ve(e._cbs.sp,r,`onSessionPayload`,e._logger))return e._logger.debug(`Session not sent due to onSessionPayload callback`),n(null);e._delivery.sendSession(r,n)}x(a,`req`)}},`sendSessionSummary`),Qt={load:x(function(e){e.addOnError(function(e){e.errors.reduce(function(e,t){return e.concat(t.stacktrace)},[]).forEach(function(e){typeof e.file==`string`&&(e.file=e.file.replace(/\\/g,`/`))})})},`load`)},$t={load:x(function(e){return e.addOnError(function(t){if(e._config.projectRoot){var n=Dt(e._config.projectRoot);t.errors.reduce(function(e,t){return e.concat(t.stacktrace)},[]).map(function(e){typeof e.file==`string`&&e.file.indexOf(n)===0&&(e.file=e.file.replace(n,``))})}})},`load`)},en={};function tn(){return tn=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},tn.apply(null,arguments)}x(tn,`___extends_38`);var nn=`Bugsnag Node`,rn=`8.6.0`,an=`https://github.com/bugsnag/bugsnag-js`,on=b(`async_hooks`).AsyncLocalStorage;ge.__type=`nodejs`;var sn=tn({},f.schema,U),cn=[ut,Rt,Ot,$t,Zt,Ct,Vt,Ut,vt,gt,Qt,dt],ln={_client:null,createClient:x(function(e){typeof e==`string`&&(e={apiKey:e}),e||={};var t=new Ge(e,sn,cn,{name:nn,version:rn,url:an});return Object.keys(Ge.prototype).forEach(function(e){var n=t[e];t[e]=function(){var r=t._clientContext&&typeof t._clientContext.getStore==`function`?t._clientContext.getStore():null,i=r||t,a=r?r[e]:n;i._depth+=1;var o=a.apply(i,arguments);return--i._depth,o}}),t._clientContext=new on,t._setDelivery($e),t._logger.debug(`Loaded!`),t},`createClient`),start:x(function(e){return ln._client?(ln._client._logger.warn(`Bugsnag.start() was called more than once. Ignoring.`),ln._client):(ln._client=ln.createClient(e),ln._client)},`start`),isStarted:x(function(){return ln._client!=null},`isStarted`)};return Object.keys(Ge.prototype).forEach(function(e){/^_/.test(e)||(ln[e]=function(){var t=ln._client,n=t&&t._clientContext&&t._clientContext.getStore();if(n&&(t=n),!t)return console.error(`Bugsnag.`+e+`() was called before Bugsnag.start()`);t._depth+=1;var r=t[e].apply(t,arguments);return--t._depth,r})}),en=ln,en.Client=Ge,en.Event=ge,en.Session=Pe,en.Breadcrumb=e,en.default=ln,en})}}),ca=E({"../../node_modules/.pnpm/@bugsnag+js@8.6.0/node_modules/@bugsnag/js/node/notifier.js"(e,t){t.exports=sa()}}),la=class extends p{static{x(this,`AutoConfigFrameworkConfigurationError`)}},ua=class extends o{static{x(this,`AutoConfigDetectionError`)}frameworkId;configured;constructor(e,t){super(e,t),Object.setPrototypeOf(this,new.target.prototype),this.frameworkId=t.frameworkId,this.configured=t.configured}},da=T(Rn(),1);T(Rn(),1);var fa=T(kn(),1),pa=T(Hn(),1);F(import.meta.url||(typeof __filename==`string`?__filename:`/`));var ma=Object.defineProperty,ha=x((e,t)=>ma(e,`name`,{value:t,configurable:!0}),`__name`);function ga(e){try{return da.parse(e,{parser:fa})}catch{throw Error(`Error parsing js template.`)}}x(ga,`parseJs`),ha(ga,`parseJs`);function _a(e){try{return da.parse(e,{parser:pa})}catch{throw Error(`Error parsing ts template.`)}}x(_a,`parseTs`),ha(_a,`parseTs`);function va(e){let t=z.extname(e).slice(1)===`js`?fa:pa;try{let n=he(z.resolve(e),`utf-8`);if(n)return da.parse(n,{parser:t}).program}catch{throw Error(`Error parsing file: ${e}`)}return null}x(va,`parseFile`),ha(va,`parseFile`);function ya(e,t){let n=va(e);n&&(da.visit(n,t),_e(e,da.print(n).code))}x(ya,`transformFile`),ha(ya,`transformFile`);function ba(e,t){t.forEach(t=>{let n=Sa(t);if(!n)return!1;let r=e.properties.findIndex(e=>e.type===`ObjectProperty`&&Sa(e)===n),i=e.properties[r];if(!i){e.properties.push(t);return}if(i.type===`ObjectProperty`&&i.value.type===`ObjectExpression`&&t.value.type===`ObjectExpression`){ba(i.value,t.value.properties);return}if(i.type===`ObjectProperty`&&i.value.type===`ArrayExpression`&&t.value.type===`ArrayExpression`){xa(i.value,t.value);return}e.properties[r]=t})}x(ba,`mergeObjectProperties`),ha(ba,`mergeObjectProperties`);function xa(e,t){let n=new Set(e.elements.filter(e=>e?.type===`StringLiteral`).map(e=>e.value));t.elements.forEach(t=>{if(t?.type===`StringLiteral`){if(n.has(t.value))return;n.add(t.value)}e.elements.push(t)})}x(xa,`mergeArrayElements`),ha(xa,`mergeArrayElements`);function Sa(e){return e.key.type===`Identifier`?e.key.name:e.key.type===`StringLiteral`?e.key.value:null}x(Sa,`getPropertyName`),ha(Sa,`getPropertyName`);var Ca=T(Rn(),1),wa=new Intl.Collator(0,{numeric:1}).compare;function Ta(e,t,n){return e=e.split(`.`),t=t.split(`.`),wa(e[0],t[0])||wa(e[1],t[1])||(t[2]=t.slice(2).join(`.`),n=/[.-]/.test(e[2]=e.slice(2).join(`.`)),n==/[.-]/.test(t[2])?wa(e[2],t[2]):n?-1:1)}x(Ta,`default`);var Ea=class{static{x(this,`Framework`)}id;name;supportsMode=!1;#e;get frameworkVersion(){return Te(this.#e,`The version for ${JSON.stringify(this.name)} is unexpectedly missing`),this.#e}constructor(e){this.id=e.id,this.name=e.name}isConfigured(e,{target:t=`cf`}={}){return!1}configurationDescription;validateFrameworkVersion(e,t,n){let r=a(t.name,e);if(Te(r,`Unable to detect the version of the \`${t.name}\` package`),Ta(r,t.minimumVersion)<0)throw new la(`The version of ${this.name} used in the project (${JSON.stringify(r)}) cannot be automatically configured. Please update the ${this.name} version to at least ${JSON.stringify(t.minimumVersion)} and try again.`,{telemetryMessage:`autoconfig framework version unsupported`});Ta(r,t.maximumKnownMajorVersion)>0&&n.logger.warn(`The version of ${this.name} used in the project (${JSON.stringify(r)}) is not officially supported, and may fail to correctly configure. Please report any issues to https://github.com/cloudflare/workers-sdk/issues`),this.#e=r}},Da=class extends Ea{static{x(this,`Analog`)}async configure({dryRun:e,projectPath:t}){return e||await Oa(t),{buildTool:`wrangler`,workerConfig:{entrypoint:`./dist/analog/server/index.mjs`,env:{ASSETS:{type:`assets`}}},buildConfig:{assetsDirectory:`./dist/analog/public`}}}};async function Oa(e){let t=B(e,`vite.config.ts`),n=B(e,`vite.config.js`),r;if(R(t))r=t;else if(R(n))r=n;else throw Error(`Could not find Vite config file to modify`);let i=h;P(`Updating configuration in ${D(r)}`),ya(r,{visitCallExpression:x(function(e){if(e.node.callee.name!==`analog`)return this.traverse(e);let t=Ca.types.builders,n=[t.objectProperty(t.identifier(`nitro`),t.objectExpression([t.objectProperty(t.identifier(`preset`),t.stringLiteral(`cloudflare_module`)),t.objectProperty(t.identifier(`compatibilityDate`),t.stringLiteral(i))]))];return e.node.arguments.length===0?e.node.arguments.push(t.objectExpression(n)):ba(e.node.arguments[0],n),!1},`visitCallExpression`)})}x(Oa,`updateViteConfig`);function ka(e){var t=[...arguments].slice(1),n=Array.from(typeof e==`string`?[e]:e);n[n.length-1]=n[n.length-1].replace(/\r?\n([\t ]*)$/,``);var r=n.reduce(function(e,t){var n=t.match(/\n([\t ]+|(?!\s).)/g);return n?e.concat(n.map(function(e){return e.match(/[\t ]/g)?.length??0})):e},[]);if(r.length){var i=RegExp(`
269
+ `+t),e};var gt={},_t=ht.getStack;gt={name:`contextualize`,load:x(function(e){return x(function(t,n){var r=_t(),i=pt(e);i.fallbackStack=r,i.addOnError(n),e._clientContext.run(i,t)},`contextualize`)},`load`)},gt.default=gt;var vt={},yt=ht.getStack,bt=ht.maybeUseFallbackStack;vt={name:`intercept`,load:x(function(e){return x(function(t,n){t===void 0&&(t=x(function(){},`onError`)),typeof n!=`function`&&(n=t,t=x(function(){},`onError`));var r=yt();return function(i){if(i){i.stack&&bt(i,r);var a=e.Event.create(i,!0,{severity:`warning`,unhandled:!1,severityReason:{type:`callbackErrorIntercept`}},`intercept()`,1);e._notify(a,t);return}var o=[...arguments].slice(1);n.apply(void 0,o)}},`intercept`)},`load`)},vt.default=vt;function xt(){return xt=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},xt.apply(null,arguments)}x(xt,`___extends_43`);var St=b(`os`),Ct={load:x(function(e){var t={osName:St.platform()+` (`+St.arch()+`)`,osVersion:St.release(),totalMemory:St.totalmem(),hostname:e._config.hostname,runtimeVersions:{node:process.versions.node}};e._addOnSessionPayload(function(e){e.device=xt({},e.device,t)}),e.addOnError(function(e){e.device=xt({},e.device,t,{freeMemory:St.freemem(),time:new Date})},!0)},`load`)},wt=b(`path`),Tt=wt.join,Et=wt.resolve,Dt=x(function(e){return Tt(Et(e),`/`)},`_$pathNormalizer_29`),Ot={load:x(function(e){return e.addOnError(function(t){if(e._config.projectRoot){var n=Dt(e._config.projectRoot);t.errors.reduce(function(e,t){return e.concat(t.stacktrace)},[]).map(function(e){e.inProject=typeof e.file==`string`&&e.file.indexOf(n)===0&&!/\/node_modules\//.test(e.file)})}})},`load`)};function kt(){return kt=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},kt.apply(null,arguments)}x(kt,`___extends_45`);function At(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,jt(e,t)}x(At,`_inheritsLoose`);function jt(e,t){return jt=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},jt(e,t)}x(jt,`_setPrototypeOf`);var Mt=3,Nt=200,Pt=b(`fs`).createReadStream,Ft=b(`stream`).Writable,It=oa(),Lt=sa(),W=b(`path`),Rt={load:x(function(e){if(e._config.sendCode){var t=x(function(t,n){return new Promise(function(r,i){try{if(!t.lineNumber||!t.file)return r(t);var a=W.resolve(e._config.projectRoot,t.file),o=a+`@`+t.lineNumber;if(o in n)return t.code=n[o],r(t);zt(a,t.lineNumber,function(e,i){return e||(t.code=n[o]=i),r(t)})}catch{return r(t)}})},`loadSurroundingCode`);e.addOnError(function(e){return new Promise(function(n,r){var i=Object.create(null);G(e.errors.reduce(function(e,t){return e.concat(t.stacktrace)},[]).map(function(e){return function(){return t(e,i)}})).then(n).catch(r)})})}},`load`),configSchema:{sendCode:{defaultValue:x(function(){return!0},`defaultValue`),validate:x(function(e){return e===!0||e===!1},`validate`),message:`should be true or false`}}},zt=x(function(e,t,n){var r=t-Mt,i=t+Mt,a=Pt(e,{encoding:`utf8`}),o=new Lt.LineStream({keepEmptyLines:!0}),s=new Bt({start:r,end:i});s.on(`done`,function(){return a.destroy()}),It(a,o,s,function(e){if(e&&e.message!==`premature close`)return n(e);n(null,s.getCode())})},`getSurroundingCode`),Bt=function(e){function t(t){var n=e.call(this,kt({},t,{decodeStrings:!1}))||this;return n._start=t.start,n._end=t.end,n._n=0,n._code={},n}x(t,`CodeRange`),At(t,e);var n=t.prototype;return n._write=x(function(e,t,n){return this._n++,this._n<this._start?n(null):this._n<=this._end?(this._code[String(this._n)]=e.length<=Nt?e:e.substr(0,Nt),n(null)):(this.emit(`done`),n(null))},`_write`),n.getCode=x(function(){return this._code},`getCode`),t}(Ft),G=x(function(e){return new Promise(function(t,n){var r=[];e.reduce(function(e,t){return e.then(function(e){return r.push(e),t()})},Promise.resolve()).then(function(e){r.push(e)}).then(function(){t(r.slice(1))})})},`pMapSeries`),K=ht.maybeUseFallbackStack,q,Vt={load:x(function(e){e._config.autoDetectErrors&&e._config.enabledErrorTypes.unhandledExceptions&&(q=x(function(t){var n=e._clientContext&&e._clientContext.getStore()||e;t.stack&&n.fallbackStack&&K(t,n.fallbackStack);var r=n.Event.create(t,!1,{severity:`error`,unhandled:!0,severityReason:{type:`unhandledException`}},`uncaughtException handler`,1);return new Promise(function(e){n._notify(r,function(){},function(r,i){r&&n._logger.error(`Failed to send event to Bugsnag`),n._config.onUncaughtException(t,i,n._logger),e()})})},`_handler`),process.prependListener(`uncaughtException`,q))},`load`),destroy:x(function(){process.removeListener(`uncaughtException`,q)},`destroy`)},Ht,Ut={load:x(function(e){!e._config.autoDetectErrors||!e._config.enabledErrorTypes.unhandledRejections||(Ht=x(function(t){var n=e._clientContext&&e._clientContext.getStore()||e,r=!e._config.reportUnhandledPromiseRejectionsAsHandled,i=n.Event.create(t,!1,{severity:`error`,unhandled:r,severityReason:{type:`unhandledPromiseRejection`}},`unhandledRejection handler`,1);return new Promise(function(e){n._notify(i,function(){},function(r,i){r&&n._logger.error(`Failed to send event to Bugsnag`),n._config.onUnhandledRejection(t,i,n._logger),e()})})},`___handler_47`),process.prependListener?process.prependListener(`unhandledRejection`,Ht):process.on(`unhandledRejection`,Ht))},`load`),destroy:x(function(){process.removeListener(`unhandledRejection`,Ht)},`destroy`)},Wt=Gt;function Gt(e){e||={},this.ms=e.min||100,this.max=e.max||1e4,this.factor=e.factor||2,this.jitter=e.jitter>0&&e.jitter<=1?e.jitter:0,this.attempts=0}x(Gt,`Backoff`),Gt.prototype.duration=function(){var e=this.ms*this.factor**+ this.attempts++;if(this.jitter){var t=Math.random(),n=Math.floor(t*this.jitter*e);e=Math.floor(t*10)&1?e+n:e-n}return Math.min(e,this.max)|0},Gt.prototype.reset=function(){this.attempts=0};function Kt(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,qt(e,t)}x(Kt,`___inheritsLoose_49`);function qt(e,t){return qt=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},qt(e,t)}x(qt,`___setPrototypeOf_49`);var Jt=10*1e3,Yt=function(e){function t(t){var n=e.call(this)||this;return n._sessions=new Map,n._interval=null,n._intervalLength=t||Jt,n._summarize=n._summarize.bind(n),n}x(t,`SessionTracker`),Kt(t,e);var n=t.prototype;return n.start=x(function(){this._interval||=setInterval(this._summarize,this._intervalLength).unref()},`start`),n.stop=x(function(){clearInterval(this._interval),this._interval=null},`stop`),n.track=x(function(e){var t=Xt(e.startedAt),n=this._sessions.get(t);return this._sessions.set(t,n===void 0?1:n+1),e},`track`),n._summarize=x(function(){var e=this,t=[];this._sessions.forEach(function(n,r){t.push({startedAt:r,sessionsStarted:n}),e._sessions.delete(r)}),t.length&&this.emit(`summary`,t)},`_summarize`),t}(b(`events`).EventEmitter),Xt=x(function(e){var t=new Date(e);return t.setSeconds(0),t.setMilliseconds(0),t.toISOString()},`dateToMsKey`),Zt={load:x(function(e){var t=new Yt(e._config.sessionSummaryInterval);t.on(`summary`,J(e)),t.start(),e._sessionDelegate={startSession:x(function(e,n){return e._session=n,e._pausedSession=null,t.track(e._session),e},`startSession`),pauseSession:x(function(e){e._pausedSession=e._session,e._session=null},`pauseSession`),resumeSession:x(function(e){return e._session?e:e._pausedSession?(e._session=e._pausedSession,e._pausedSession=null,e):e.startSession()},`resumeSession`)}},`load`),configSchema:{sessionSummaryInterval:{defaultValue:x(function(){},`defaultValue`),validate:x(function(e){return e===void 0||l()(e)},`validate`),message:`should be a positive integer`}}},J=x(function(e){return function(t){if(e._config.enabledReleaseStages!==null&&!e._config.enabledReleaseStages.includes(e._config.releaseStage)){e._logger.warn(`Session not sent due to releaseStage/enabledReleaseStages configuration`);return}if(!t.length)return;var n=new Wt({min:1e3,max:1e4}),r=10;a(i);function i(o){if(!o){var s=t.reduce(function(e,t){return e+t.sessionsStarted},0);return e._logger.debug(s+` session(s) reported`)}if(n.attempts===10){e._logger.error(`Session delivery failed, max retries exceeded`,o);return}e._logger.debug(`Session delivery failed, retry #`+(n.attempts+1)+`/`+r,o),setTimeout(function(){return a(i)},n.duration())}x(i,`handleRes`);function a(n){var r={notifier:e._notifier,device:{},app:{releaseStage:e._config.releaseStage,version:e._config.appVersion,type:e._config.appType},sessionCounts:t};if(z(e._cbs.sp,r,`onSessionPayload`,e._logger))return e._logger.debug(`Session not sent due to onSessionPayload callback`),n(null);e._delivery.sendSession(r,n)}x(a,`req`)}},`sendSessionSummary`),Qt={load:x(function(e){e.addOnError(function(e){e.errors.reduce(function(e,t){return e.concat(t.stacktrace)},[]).forEach(function(e){typeof e.file==`string`&&(e.file=e.file.replace(/\\/g,`/`))})})},`load`)},$t={load:x(function(e){return e.addOnError(function(t){if(e._config.projectRoot){var n=Dt(e._config.projectRoot);t.errors.reduce(function(e,t){return e.concat(t.stacktrace)},[]).map(function(e){typeof e.file==`string`&&e.file.indexOf(n)===0&&(e.file=e.file.replace(n,``))})}})},`load`)},en={};function tn(){return tn=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},tn.apply(null,arguments)}x(tn,`___extends_38`);var nn=`Bugsnag Node`,rn=`8.6.0`,an=`https://github.com/bugsnag/bugsnag-js`,on=b(`async_hooks`).AsyncLocalStorage;ge.__type=`nodejs`;var sn=tn({},f.schema,it),cn=[ut,Rt,Ot,$t,Zt,Ct,Vt,Ut,vt,gt,Qt,dt],ln={_client:null,createClient:x(function(e){typeof e==`string`&&(e={apiKey:e}),e||={};var t=new Ge(e,sn,cn,{name:nn,version:rn,url:an});return Object.keys(Ge.prototype).forEach(function(e){var n=t[e];t[e]=function(){var r=t._clientContext&&typeof t._clientContext.getStore==`function`?t._clientContext.getStore():null,i=r||t,a=r?r[e]:n;i._depth+=1;var o=a.apply(i,arguments);return--i._depth,o}}),t._clientContext=new on,t._setDelivery($e),t._logger.debug(`Loaded!`),t},`createClient`),start:x(function(e){return ln._client?(ln._client._logger.warn(`Bugsnag.start() was called more than once. Ignoring.`),ln._client):(ln._client=ln.createClient(e),ln._client)},`start`),isStarted:x(function(){return ln._client!=null},`isStarted`)};return Object.keys(Ge.prototype).forEach(function(e){/^_/.test(e)||(ln[e]=function(){var t=ln._client,n=t&&t._clientContext&&t._clientContext.getStore();if(n&&(t=n),!t)return console.error(`Bugsnag.`+e+`() was called before Bugsnag.start()`);t._depth+=1;var r=t[e].apply(t,arguments);return--t._depth,r})}),en=ln,en.Client=Ge,en.Event=ge,en.Session=Pe,en.Breadcrumb=e,en.default=ln,en})}}),la=E({"../../node_modules/.pnpm/@bugsnag+js@8.6.0/node_modules/@bugsnag/js/node/notifier.js"(e,t){t.exports=ca()}}),ua=class extends a{static{x(this,`AutoConfigFrameworkConfigurationError`)}},da=class extends p{static{x(this,`AutoConfigDetectionError`)}frameworkId;configured;constructor(e,t){super(e,t),Object.setPrototypeOf(this,new.target.prototype),this.frameworkId=t.frameworkId,this.configured=t.configured}},fa=T(zn(),1);T(zn(),1);var pa=T(An(),1),ma=T(Un(),1);I(import.meta.url||(typeof __filename==`string`?__filename:`/`));var ha=Object.defineProperty,ga=x((e,t)=>ha(e,`name`,{value:t,configurable:!0}),`__name`);function _a(e){try{return fa.parse(e,{parser:pa})}catch{throw Error(`Error parsing js template.`)}}x(_a,`parseJs`),ga(_a,`parseJs`);function va(e){try{return fa.parse(e,{parser:ma})}catch{throw Error(`Error parsing ts template.`)}}x(va,`parseTs`),ga(va,`parseTs`);function ya(e){let t=z.extname(e).slice(1)===`js`?pa:ma;try{let n=ge(z.resolve(e),`utf-8`);if(n)return fa.parse(n,{parser:t}).program}catch{throw Error(`Error parsing file: ${e}`)}return null}x(ya,`parseFile`),ga(ya,`parseFile`);function ba(e,t){let n=ya(e);n&&(fa.visit(n,t),ve(e,fa.print(n).code))}x(ba,`transformFile`),ga(ba,`transformFile`);function xa(e,t){t.forEach(t=>{let n=Ca(t);if(!n)return!1;let r=e.properties.findIndex(e=>e.type===`ObjectProperty`&&Ca(e)===n),i=e.properties[r];if(!i){e.properties.push(t);return}if(i.type===`ObjectProperty`&&i.value.type===`ObjectExpression`&&t.value.type===`ObjectExpression`){xa(i.value,t.value.properties);return}if(i.type===`ObjectProperty`&&i.value.type===`ArrayExpression`&&t.value.type===`ArrayExpression`){Sa(i.value,t.value);return}e.properties[r]=t})}x(xa,`mergeObjectProperties`),ga(xa,`mergeObjectProperties`);function Sa(e,t){let n=new Set(e.elements.filter(e=>e?.type===`StringLiteral`).map(e=>e.value));t.elements.forEach(t=>{if(t?.type===`StringLiteral`){if(n.has(t.value))return;n.add(t.value)}e.elements.push(t)})}x(Sa,`mergeArrayElements`),ga(Sa,`mergeArrayElements`);function Ca(e){return e.key.type===`Identifier`?e.key.name:e.key.type===`StringLiteral`?e.key.value:null}x(Ca,`getPropertyName`),ga(Ca,`getPropertyName`);var wa=T(zn(),1),Ta=new Intl.Collator(0,{numeric:1}).compare;function Ea(e,t,n){return e=e.split(`.`),t=t.split(`.`),Ta(e[0],t[0])||Ta(e[1],t[1])||(t[2]=t.slice(2).join(`.`),n=/[.-]/.test(e[2]=e.slice(2).join(`.`)),n==/[.-]/.test(t[2])?Ta(e[2],t[2]):n?-1:1)}x(Ea,`default`);var Da=class{static{x(this,`Framework`)}id;name;supportsMode=!1;#e;get frameworkVersion(){return H(this.#e,`The version for ${JSON.stringify(this.name)} is unexpectedly missing`),this.#e}constructor(e){this.id=e.id,this.name=e.name}isConfigured(e,{target:t=`cf`}={}){return!1}configurationDescription;validateFrameworkVersion(e,t,n){let r=o(t.name,e);if(H(r,`Unable to detect the version of the \`${t.name}\` package`),Ea(r,t.minimumVersion)<0)throw new ua(`The version of ${this.name} used in the project (${JSON.stringify(r)}) cannot be automatically configured. Please update the ${this.name} version to at least ${JSON.stringify(t.minimumVersion)} and try again.`,{telemetryMessage:`autoconfig framework version unsupported`});Ea(r,t.maximumKnownMajorVersion)>0&&n.logger.warn(`The version of ${this.name} used in the project (${JSON.stringify(r)}) is not officially supported, and may fail to correctly configure. Please report any issues to https://github.com/cloudflare/workers-sdk/issues`),this.#e=r}},Oa=class extends Da{static{x(this,`Analog`)}async configure({dryRun:e,projectPath:t}){return e||await ka(t),{buildTool:`wrangler`,workerConfig:{entrypoint:`./dist/analog/server/index.mjs`,env:{ASSETS:{type:`assets`}}},buildConfig:{assetsDirectory:`./dist/analog/public`}}}};async function ka(e){let t=B(e,`vite.config.ts`),n=B(e,`vite.config.js`),r;if(R(t))r=t;else if(R(n))r=n;else throw Error(`Could not find Vite config file to modify`);let i=h;P(`Updating configuration in ${D(r)}`),ba(r,{visitCallExpression:x(function(e){if(e.node.callee.name!==`analog`)return this.traverse(e);let t=wa.types.builders,n=[t.objectProperty(t.identifier(`nitro`),t.objectExpression([t.objectProperty(t.identifier(`preset`),t.stringLiteral(`cloudflare_module`)),t.objectProperty(t.identifier(`compatibilityDate`),t.stringLiteral(i))]))];return e.node.arguments.length===0?e.node.arguments.push(t.objectExpression(n)):xa(e.node.arguments[0],n),!1},`visitCallExpression`)})}x(ka,`updateViteConfig`);function Aa(e){var t=[...arguments].slice(1),n=Array.from(typeof e==`string`?[e]:e);n[n.length-1]=n[n.length-1].replace(/\r?\n([\t ]*)$/,``);var r=n.reduce(function(e,t){var n=t.match(/\n([\t ]+|(?!\s).)/g);return n?e.concat(n.map(function(e){return e.match(/[\t ]/g)?.length??0})):e},[]);if(r.length){var i=RegExp(`
270
270
  [ ]{`+Math.min.apply(Math,r)+`}`,`g`);n=n.map(function(e){return e.replace(i,`
271
271
  `)})}n[0]=n[0].replace(/^\r?\n/,``);var a=n[0];return t.forEach(function(e,t){var r=a.match(/(?:^|\n)( *)$/),i=r?r[1]:``,o=e;typeof e==`string`&&e.includes(`
272
272
  `)&&(o=String(e).split(`
273
273
  `).map(function(e,t){return t===0?e:``+i+e}).join(`
274
- `)),a+=o+n[t+1]}),a}x(ka,`dedent`);var Aa=ka,ja=class extends Ea{static{x(this,`Angular`)}async configure({workerName:e,outputDir:t,dryRun:n,packageManager:r,isWorkspaceRoot:i}){let a=u(await Oe(V(`angular.json`),`utf8`));return Ma(a,e)?(this.configurationDescription=`Configuring project for Angular`,n||(await Na(e,a,this.frameworkVersion),await Pa(),await Fa(r,i)),{buildTool:`wrangler`,workerConfig:{entrypoint:`./dist/server/server.mjs`,env:{ASSETS:{type:`assets`}}},buildConfig:{assetsDirectory:`${t}browser`}}):(this.configurationDescription=`Configuring Angular SPA project (assets only)`,{buildTool:`wrangler`,workerConfig:{},buildConfig:{assetsDirectory:t}})}};function Ma(e,t){return!!e.projects[t]?.architect?.build?.options?.ssr}x(Ma,`hasSsr`);async function Na(e,t,n){let r=M();r.start(`Updating angular.json config`);let i=t.projects[e].architect;i.build.options.outputPath=`dist`,i.build.options.outputMode=`server`,Te(i.build.options.ssr),typeof i.build.options.ssr==`boolean`&&(i.build.options.ssr={});let a=Ta(n,`22.0.0`)>=0?`platform`:`experimentalPlatform`;i.build.options.ssr[a]=`neutral`,await H(V(`angular.json`),JSON.stringify(t,null,2)),r.stop(`${k(`updated`)} ${O("`angular.json`")}`)}x(Na,`updateAngularJson`);async function Pa(){await H(V(`src/server.ts`),Aa`
274
+ `)),a+=o+n[t+1]}),a}x(Aa,`dedent`);var ja=Aa,Ma=class extends Da{static{x(this,`Angular`)}async configure({workerName:e,outputDir:t,dryRun:n,packageManager:r,isWorkspaceRoot:i}){let a=y(await Ee(xe(`angular.json`),`utf8`));return Na(a,e)?(this.configurationDescription=`Configuring project for Angular`,n||(await Pa(e,a,this.frameworkVersion),await Fa(),await Ia(r,i)),{buildTool:`wrangler`,workerConfig:{entrypoint:`./dist/server/server.mjs`,env:{ASSETS:{type:`assets`}}},buildConfig:{assetsDirectory:`${t}browser`}}):(this.configurationDescription=`Configuring Angular SPA project (assets only)`,{buildTool:`wrangler`,workerConfig:{},buildConfig:{assetsDirectory:t}})}};function Na(e,t){return!!e.projects[t]?.architect?.build?.options?.ssr}x(Na,`hasSsr`);async function Pa(e,t,n){let r=M();r.start(`Updating angular.json config`);let i=t.projects[e].architect;i.build.options.outputPath=`dist`,i.build.options.outputMode=`server`,H(i.build.options.ssr),typeof i.build.options.ssr==`boolean`&&(i.build.options.ssr={});let a=Ea(n,`22.0.0`)>=0?`platform`:`experimentalPlatform`;i.build.options.ssr[a]=`neutral`,await ke(xe(`angular.json`),JSON.stringify(t,null,2)),r.stop(`${k(`updated`)} ${O("`angular.json`")}`)}x(Pa,`updateAngularJson`);async function Fa(){await ke(xe(`src/server.ts`),ja`
275
275
  import { AngularAppEngine, createRequestHandler } from '@angular/ssr';
276
276
 
277
277
  const angularApp = new AngularAppEngine({
@@ -290,15 +290,15 @@ metadata was removed`},n=_(e,null,null,{redactedPaths:qe,redactedKeys:t})),n},Ke
290
290
  });
291
291
 
292
292
  export default { fetch: reqHandler };
293
- `)}x(Pa,`overrideServerFile`);async function Fa(e,t){await Ze(e.type,[`xhr2`],{dev:!0,startText:`Installing additional dependencies`,doneText:`${k(`installed`)}`,isWorkspaceRoot:t})}x(Fa,`installAdditionalDependencies`);var Ia=T(Rn(),1),La=class extends Ea{static{x(this,`Astro`)}supportsMode=!0;async configure({outputDir:e,dryRun:t,packageManager:n,projectPath:r,isWorkspaceRoot:i,context:a}){let o=this.frameworkVersion,{npx:s}=n;return t||(Ta(o,`6.0.0`)>=0?await Je([s,`astro`,`add`,`cloudflare`,`-y`],{silent:!0,startText:`Installing adapter`,doneText:`${k(`installed`)} ${O(`via \`${s} astro add cloudflare\``)}`}):await Va(r,i,n,Ta(o,`5.0.0`)>=0?5:4,a),_e(`public/.assetsignore`,`_worker.js
294
- _routes.json`)),Ta(o,`6.0.0`)<0?{buildTool:`wrangler`,workerConfig:{entrypoint:`${e}/_worker.js/index.js`,compatibilityFlags:[`global_fetch_strictly_public`],env:{ASSETS:{type:`assets`}}},buildConfig:{assetsDirectory:e}}:{workerConfig:null}}configurationDescription=`Configuring project for Astro with "astro add cloudflare"`};function Ra(e){for(let t of[`mjs`,`mts`,`ts`,`js`]){let n=B(e,`astro.config.${t}`);if(R(n))return n}throw Error(`Could not find Astro config file (astro.config.mjs, astro.config.mts, astro.config.ts, or astro.config.js)`)}x(Ra,`findAstroConfigFile`);function za(e,t){let n=Ra(e);P(`Updating configuration in ${D(n)}`);let r=`cloudflare`;ya(n,{visitProgram(e){let t=e.node.body,n=Ia.types.builders,i=!1;for(let e of t)if(e.type===`ImportDeclaration`&&e.source.value===`@astrojs/cloudflare`){i=!0;for(let t of e.specifiers??[])if(t.type===`ImportDefaultSpecifier`&&t.local){r=t.local.name;break}break}if(!i){let e=n.importDeclaration([n.importDefaultSpecifier(n.identifier(`cloudflare`))],n.literal(`@astrojs/cloudflare`)),r=-1;for(let e=0;e<t.length;e++)t[e].type===`ImportDeclaration`&&(r=e);r>=0?t.splice(r+1,0,e):t.unshift(e)}this.traverse(e)},visitCallExpression(e){let n=e.node.callee;if(n.type!==`Identifier`||n.name!==`defineConfig`)return this.traverse(e);let i=Ia.types.builders,a=i.objectProperty(i.identifier(`adapter`),i.callExpression(i.identifier(r),[])),o=[];if(t===4){let e=i.objectProperty(i.identifier(`output`),i.literal(`hybrid`));o.push(e)}if(o.push(a),e.node.arguments.length===0)e.node.arguments.push(i.objectExpression(o));else{let t=e.node.arguments[0];t.type===`ObjectExpression`&&ba(t,o)}return!1}})}x(za,`updateAstroConfig`);function Ba(e,t){let n=B(e,`tsconfig.json`);if(R(n))try{let e=u(he(n,`utf-8`),n),r=`./worker-configuration.d.ts`;if(!e.include){t.logger.warn(`Could not find an existing \`include\` field in tsconfig.json. You may need to manually add ${JSON.stringify(r)} to your tsconfig.json \`include\` array.`);return}e.include.includes(r)||(e.include.push(r),_e(n,JSON.stringify(e,null,` `)),P(`Updated ${D(`tsconfig.json`)} to include ${D(r)}`))}catch{t.logger.warn(`Could not update tsconfig.json to include worker-configuration.d.ts. You may need to add it manually.`)}}x(Ba,`updateTsConfig`);async function Va(e,t,n,r,i){let a=r===5?12:11;await Ze(n.type,[`@astrojs/cloudflare@${a}`],{startText:`Installing @astrojs/cloudflare adapter (version ${a})`,doneText:`${k(`installed`)} ${O(`@astrojs/cloudflare`)}`,isWorkspaceRoot:t}),za(e,r),Ba(e,i)}x(Va,`configureAstroLegacy`);var Ha=class extends Ea{static{x(this,`NextJs`)}async configure({dryRun:e,projectPath:t,packageManager:n}){let{npx:r,dlx:i}=n;return e||await Je([...i,`@opennextjs/cloudflare`,`migrate`,`--force-install`],{cwd:t}),{workerConfig:{},packageJsonScriptsOverrides:{preview:`opennextjs-cloudflare build && opennextjs-cloudflare preview`,deploy:`opennextjs-cloudflare build && opennextjs-cloudflare deploy`},buildCommandOverride:`${r} opennextjs-cloudflare build`,deployCommandOverride:`${r} opennextjs-cloudflare deploy`,versionCommandOverride:`${r} opennextjs-cloudflare upload`}}configurationDescription="Configuring project for Next.js with OpenNext by running `@opennextjs/cloudflare migrate`"},Ua=T(Rn(),1),Wa=x(e=>{let t=z.join(e,`nuxt.config.ts`),n=Ua.types.builders,r=n.objectProperty(n.identifier(`nitro`),n.objectExpression([n.objectProperty(n.identifier(`preset`),n.stringLiteral(`cloudflare_module`)),n.objectProperty(n.identifier(`cloudflare`),n.objectExpression([n.objectProperty(n.identifier(`deployConfig`),n.booleanLiteral(!0)),n.objectProperty(n.identifier(`nodeCompat`),n.booleanLiteral(!0))]))])),i=n.objectProperty(n.identifier(`modules`),n.arrayExpression([n.stringLiteral(`nitro-cloudflare-dev`)]));ya(t,{visitCallExpression:x(function(e){return e.node.callee.name===`defineNuxtConfig`&&ba(e.node.arguments[0],[r,i]),this.traverse(e)},`visitCallExpression`)})},`updateNuxtConfig`),Ga=class extends Ea{static{x(this,`Nuxt`)}async configure({dryRun:e,projectPath:t,packageManager:n,isWorkspaceRoot:r}){return e||(await Ze(n.type,[`nitro-cloudflare-dev`],{dev:!0,startText:`Installing the Cloudflare dev module`,doneText:`${k(`installed`)} ${O(`nitro-cloudflare-dev`)}`,isWorkspaceRoot:r}),Wa(t)),{buildTool:`wrangler`,workerConfig:{entrypoint:`./.output/server/index.mjs`,env:{ASSETS:{type:`assets`}},observability:{enabled:!0}},buildConfig:{assetsDirectory:`./.output/public/`}}}configurationDescription=`Configuring project for Nuxt`},Ka=T(Rn(),1),qa=T(Hn(),1);function Ja(e){return R(B(e,`tsconfig.json`))}x(Ja,`usesTypescript`);var Ya=class extends Ea{static{x(this,`Qwik`)}async configure({projectPath:e,dryRun:t,packageManager:n}){if(!t){let t=[n.type===`pnpm`?n.type:n.npx,`qwik`,`add`,`cloudflare-workers`,`--skipConfirmation=true`];A(`Running ${Xe(t)}`),await Je(t),Xa(e)}return{buildTool:`wrangler`,workerConfig:{entrypoint:`./dist/_worker.js`,compatibilityFlags:[`global_fetch_strictly_public`],env:{ASSET:{type:`assets`}}},buildConfig:{assetsDirectory:`./dist`},packageJsonScriptsOverrides:{preview:`${n.type} run build && wrangler dev`,deploy:`${n.type} run build && wrangler deploy`}}}configurationDescription=`Configuring project for Qwik with "qwik add cloudflare-workers"`};function Xa(e){if(!Ja(e))return;let t=M();t.start("Updating `vite.config.ts`");let n=Ka.types.builders,r=Ka.parse(`
293
+ `)}x(Fa,`overrideServerFile`);async function Ia(e,t){await Qe(e.type,[`xhr2`],{dev:!0,startText:`Installing additional dependencies`,doneText:`${k(`installed`)}`,isWorkspaceRoot:t})}x(Ia,`installAdditionalDependencies`);var La=T(zn(),1),Ra=class extends Da{static{x(this,`Astro`)}supportsMode=!0;async configure({outputDir:e,dryRun:t,packageManager:n,projectPath:r,isWorkspaceRoot:i,context:a}){let o=this.frameworkVersion,{npx:s}=n;return t||(Ea(o,`6.0.0`)>=0?await Ye([s,`astro`,`add`,`cloudflare`,`-y`],{silent:!0,startText:`Installing adapter`,doneText:`${k(`installed`)} ${O(`via \`${s} astro add cloudflare\``)}`}):await Ha(r,i,n,Ea(o,`5.0.0`)>=0?5:4,a),ve(`public/.assetsignore`,`_worker.js
294
+ _routes.json`)),Ea(o,`6.0.0`)<0?{buildTool:`wrangler`,workerConfig:{entrypoint:`${e}/_worker.js/index.js`,compatibilityFlags:[`global_fetch_strictly_public`],env:{ASSETS:{type:`assets`}}},buildConfig:{assetsDirectory:e}}:{workerConfig:null}}configurationDescription=`Configuring project for Astro with "astro add cloudflare"`};function za(e){for(let t of[`mjs`,`mts`,`ts`,`js`]){let n=B(e,`astro.config.${t}`);if(R(n))return n}throw Error(`Could not find Astro config file (astro.config.mjs, astro.config.mts, astro.config.ts, or astro.config.js)`)}x(za,`findAstroConfigFile`);function Ba(e,t){let n=za(e);P(`Updating configuration in ${D(n)}`);let r=`cloudflare`;ba(n,{visitProgram(e){let t=e.node.body,n=La.types.builders,i=!1;for(let e of t)if(e.type===`ImportDeclaration`&&e.source.value===`@astrojs/cloudflare`){i=!0;for(let t of e.specifiers??[])if(t.type===`ImportDefaultSpecifier`&&t.local){r=t.local.name;break}break}if(!i){let e=n.importDeclaration([n.importDefaultSpecifier(n.identifier(`cloudflare`))],n.literal(`@astrojs/cloudflare`)),r=-1;for(let e=0;e<t.length;e++)t[e].type===`ImportDeclaration`&&(r=e);r>=0?t.splice(r+1,0,e):t.unshift(e)}this.traverse(e)},visitCallExpression(e){let n=e.node.callee;if(n.type!==`Identifier`||n.name!==`defineConfig`)return this.traverse(e);let i=La.types.builders,a=i.objectProperty(i.identifier(`adapter`),i.callExpression(i.identifier(r),[])),o=[];if(t===4){let e=i.objectProperty(i.identifier(`output`),i.literal(`hybrid`));o.push(e)}if(o.push(a),e.node.arguments.length===0)e.node.arguments.push(i.objectExpression(o));else{let t=e.node.arguments[0];t.type===`ObjectExpression`&&xa(t,o)}return!1}})}x(Ba,`updateAstroConfig`);function Va(e,t){let n=B(e,`tsconfig.json`);if(R(n))try{let e=y(ge(n,`utf-8`),n),r=`./worker-configuration.d.ts`;if(!e.include){t.logger.warn(`Could not find an existing \`include\` field in tsconfig.json. You may need to manually add ${JSON.stringify(r)} to your tsconfig.json \`include\` array.`);return}e.include.includes(r)||(e.include.push(r),ve(n,JSON.stringify(e,null,` `)),P(`Updated ${D(`tsconfig.json`)} to include ${D(r)}`))}catch{t.logger.warn(`Could not update tsconfig.json to include worker-configuration.d.ts. You may need to add it manually.`)}}x(Va,`updateTsConfig`);async function Ha(e,t,n,r,i){let a=r===5?12:11;await Qe(n.type,[`@astrojs/cloudflare@${a}`],{startText:`Installing @astrojs/cloudflare adapter (version ${a})`,doneText:`${k(`installed`)} ${O(`@astrojs/cloudflare`)}`,isWorkspaceRoot:t}),Ba(e,r),Va(e,i)}x(Ha,`configureAstroLegacy`);var Ua=class extends Da{static{x(this,`NextJs`)}async configure({dryRun:e,projectPath:t,packageManager:n}){let{npx:r,dlx:i}=n;return e||await Ye([...i,`@opennextjs/cloudflare`,`migrate`,`--force-install`],{cwd:t}),{workerConfig:{},packageJsonScriptsOverrides:{preview:`opennextjs-cloudflare build && opennextjs-cloudflare preview`,deploy:`opennextjs-cloudflare build && opennextjs-cloudflare deploy`},buildCommandOverride:`${r} opennextjs-cloudflare build`,deployCommandOverride:`${r} opennextjs-cloudflare deploy`,versionCommandOverride:`${r} opennextjs-cloudflare upload`}}configurationDescription="Configuring project for Next.js with OpenNext by running `@opennextjs/cloudflare migrate`"},Wa=T(zn(),1),Ga=x(e=>{let t=z.join(e,`nuxt.config.ts`),n=Wa.types.builders,r=n.objectProperty(n.identifier(`nitro`),n.objectExpression([n.objectProperty(n.identifier(`preset`),n.stringLiteral(`cloudflare_module`)),n.objectProperty(n.identifier(`cloudflare`),n.objectExpression([n.objectProperty(n.identifier(`deployConfig`),n.booleanLiteral(!0)),n.objectProperty(n.identifier(`nodeCompat`),n.booleanLiteral(!0))]))])),i=n.objectProperty(n.identifier(`modules`),n.arrayExpression([n.stringLiteral(`nitro-cloudflare-dev`)]));ba(t,{visitCallExpression:x(function(e){return e.node.callee.name===`defineNuxtConfig`&&xa(e.node.arguments[0],[r,i]),this.traverse(e)},`visitCallExpression`)})},`updateNuxtConfig`),Ka=class extends Da{static{x(this,`Nuxt`)}async configure({dryRun:e,projectPath:t,packageManager:n,isWorkspaceRoot:r}){return e||(await Qe(n.type,[`nitro-cloudflare-dev`],{dev:!0,startText:`Installing the Cloudflare dev module`,doneText:`${k(`installed`)} ${O(`nitro-cloudflare-dev`)}`,isWorkspaceRoot:r}),Ga(t)),{buildTool:`wrangler`,workerConfig:{entrypoint:`./.output/server/index.mjs`,env:{ASSETS:{type:`assets`}},observability:{enabled:!0}},buildConfig:{assetsDirectory:`./.output/public/`}}}configurationDescription=`Configuring project for Nuxt`},qa=T(zn(),1),Ja=T(Un(),1);function Ya(e){return R(B(e,`tsconfig.json`))}x(Ya,`usesTypescript`);var Xa=class extends Da{static{x(this,`Qwik`)}async configure({projectPath:e,dryRun:t,packageManager:n}){if(!t){let t=[n.type===`pnpm`?n.type:n.npx,`qwik`,`add`,`cloudflare-workers`,`--skipConfirmation=true`];A(`Running ${Ze(t)}`),await Ye(t),Za(e)}return{buildTool:`wrangler`,workerConfig:{entrypoint:`./dist/_worker.js`,compatibilityFlags:[`global_fetch_strictly_public`],env:{ASSET:{type:`assets`}}},buildConfig:{assetsDirectory:`./dist`},packageJsonScriptsOverrides:{preview:`${n.type} run build && wrangler dev`,deploy:`${n.type} run build && wrangler deploy`}}}configurationDescription=`Configuring project for Qwik with "qwik add cloudflare-workers"`};function Za(e){if(!Ya(e))return;let t=M();t.start("Updating `vite.config.ts`");let n=qa.types.builders,r=qa.parse(`
295
295
  let platform = {};
296
296
 
297
297
  if (process.env.NODE_ENV === 'development') {
298
298
  const { getPlatformProxy } = await import('wrangler');
299
299
  platform = await getPlatformProxy();
300
300
  }
301
- `,{parser:qa}).program.body;ya(`vite.config.ts`,{visitProgram:x(function(e){let t=e.node.body.findLastIndex(e=>e.type===`ImportDeclaration`);return e.get(`body`,t).insertAfter(...r),this.traverse(e)},`visitProgram`),visitCallExpression:x(function(e){if(e.node.callee.name!==`qwikCity`)return this.traverse(e);let t=e.node.arguments[0],r=n.objectProperty.from({key:n.identifier(`platform`),value:n.identifier(`platform`),shorthand:!0});if(!t)return e.node.arguments=[n.objectExpression([r])],!1;if(t.type!==`ObjectExpression`)throw Error("Failed to update `vite.config.ts`");return t.properties.push(r),!1},`visitCallExpression`)}),t.stop(`${k(`updated`)} \`vite.config.ts\``)}x(Xa,`addBindingsProxy`);var Za=T(Rn(),1),Qa=T(Rn(),1),$a=Qa.types.builders,eo=Qa.types.namedTypes;function to(e){if(eo.ObjectExpression.check(e))return e;if(eo.ArrowFunctionExpression.check(e)){if(eo.ObjectExpression.check(e.body))return e.body;if(eo.BlockStatement.check(e.body))return no(e.body)}return eo.FunctionExpression.check(e)?no(e.body):null}x(to,`extractConfigObject`);function no(e){let t=e.body.find(e=>eo.ReturnStatement.check(e));return t&&eo.ReturnStatement.check(t)&&t.argument&&eo.ObjectExpression.check(t.argument)?t.argument:null}x(no,`extractFromBlockStatement`);function ro(e,t){let n=ao(e),r=!1,i=!1;return ya(n,{visitProgram(e){if(e.node.body.some(e=>e.type===`ImportDeclaration`&&e.source.value===`@cloudflare/vite-plugin`))return r=!0,this.traverse(e);this.traverse(e)},visitCallExpression:x(function(e){if(e.node.callee.name!==`defineConfig`)return this.traverse(e);let n=to(e.node.arguments[0]);if(!n)return t?.logger.debug(`Vite config uses an unsupported expression type. Skipping Cloudflare plugin check.`),this.traverse(e);let r=n.properties.find(e=>lo(e));if(!r||!eo.ArrayExpression.check(r.value))return t?.logger.debug(`Vite config does not have a valid plugins array. Skipping Cloudflare plugin check.`),this.traverse(e);if(r.value.elements.some(e=>e?.type===`CallExpression`&&e.callee.type===`Identifier`&&e.callee.name===`cloudflare`))return i=!0,this.traverse(e);this.traverse(e)},`visitCallExpression`)}),r&&i}x(ro,`checkIfViteConfigUsesCloudflarePlugin`);function io(e){return R(z.join(e,`vite.config.ts`))||R(z.join(e,`vite.config.js`))}x(io,`hasViteConfig`);function ao(e){let t=z.join(e,`vite.config.ts`),n=z.join(e,`vite.config.js`),r;if(R(t))r=t;else if(R(n))r=n;else throw Error(`Could not find Vite config file to modify`);return r}x(ao,`getViteConfigPath`);var oo=[`nitro`,`nitroV2Plugin`,`netlify`];function so(e,t){let n=!1;return Qa.types.visit(e,{visitIdentifier(e){let r=e.parentPath.node;if(e.node.name===t&&!eo.ImportSpecifier.check(r)&&!eo.ImportDefaultSpecifier.check(r)&&!eo.ImportNamespaceSpecifier.check(r))return n=!0,!1;this.traverse(e)}}),n}x(so,`hasIdentifierOutsideImport`);function co(e,t={}){let n=ao(e),r=new Set;ya(n,{visitProgram(e){let t=e.node.body.findLastIndex(e=>e.type===`ImportDeclaration`),n=e.get(`body`,t),i=$a.importDeclaration([$a.importSpecifier($a.identifier(`cloudflare`))],$a.stringLiteral(`@cloudflare/vite-plugin`));return e.node.body.some(e=>e.type===`ImportDeclaration`&&e.source.value===`@cloudflare/vite-plugin`)||n.insertAfter(i),this.traverse(e),e.node.body=e.node.body.filter(t=>!eo.ImportDeclaration.check(t)||!t.specifiers?.length?!0:(t.specifiers=t.specifiers.filter(t=>!eo.Identifier.check(t.local)||!r.has(t.local.name)||so(e.node,t.local.name)),t.specifiers.length>0)),!1},visitCallExpression:x(function(e){if(e.node.callee.name!==`defineConfig`)return this.traverse(e);let n=to(e.node.arguments[0]);if(!n)throw new p(Aa`
301
+ `,{parser:Ja}).program.body;ba(`vite.config.ts`,{visitProgram:x(function(e){let t=e.node.body.findLastIndex(e=>e.type===`ImportDeclaration`);return e.get(`body`,t).insertAfter(...r),this.traverse(e)},`visitProgram`),visitCallExpression:x(function(e){if(e.node.callee.name!==`qwikCity`)return this.traverse(e);let t=e.node.arguments[0],r=n.objectProperty.from({key:n.identifier(`platform`),value:n.identifier(`platform`),shorthand:!0});if(!t)return e.node.arguments=[n.objectExpression([r])],!1;if(t.type!==`ObjectExpression`)throw Error("Failed to update `vite.config.ts`");return t.properties.push(r),!1},`visitCallExpression`)}),t.stop(`${k(`updated`)} \`vite.config.ts\``)}x(Za,`addBindingsProxy`);var Qa=T(zn(),1),$a=T(zn(),1),eo=$a.types.builders,to=$a.types.namedTypes;function no(e){if(to.ObjectExpression.check(e))return e;if(to.ArrowFunctionExpression.check(e)){if(to.ObjectExpression.check(e.body))return e.body;if(to.BlockStatement.check(e.body))return ro(e.body)}return to.FunctionExpression.check(e)?ro(e.body):null}x(no,`extractConfigObject`);function ro(e){let t=e.body.find(e=>to.ReturnStatement.check(e));return t&&to.ReturnStatement.check(t)&&t.argument&&to.ObjectExpression.check(t.argument)?t.argument:null}x(ro,`extractFromBlockStatement`);function io(e,t){let n=oo(e),r=!1,i=!1;return ba(n,{visitProgram(e){if(e.node.body.some(e=>e.type===`ImportDeclaration`&&e.source.value===`@cloudflare/vite-plugin`))return r=!0,this.traverse(e);this.traverse(e)},visitCallExpression:x(function(e){if(e.node.callee.name!==`defineConfig`)return this.traverse(e);let n=no(e.node.arguments[0]);if(!n)return t?.logger.debug(`Vite config uses an unsupported expression type. Skipping Cloudflare plugin check.`),this.traverse(e);let r=n.properties.find(e=>uo(e));if(!r||!to.ArrayExpression.check(r.value))return t?.logger.debug(`Vite config does not have a valid plugins array. Skipping Cloudflare plugin check.`),this.traverse(e);if(r.value.elements.some(e=>e?.type===`CallExpression`&&e.callee.type===`Identifier`&&e.callee.name===`cloudflare`))return i=!0,this.traverse(e);this.traverse(e)},`visitCallExpression`)}),r&&i}x(io,`checkIfViteConfigUsesCloudflarePlugin`);function ao(e){return R(z.join(e,`vite.config.ts`))||R(z.join(e,`vite.config.js`))}x(ao,`hasViteConfig`);function oo(e){let t=z.join(e,`vite.config.ts`),n=z.join(e,`vite.config.js`),r;if(R(t))r=t;else if(R(n))r=n;else throw Error(`Could not find Vite config file to modify`);return r}x(oo,`getViteConfigPath`);var so=[`nitro`,`nitroV2Plugin`,`netlify`];function co(e,t){let n=!1;return $a.types.visit(e,{visitIdentifier(e){let r=e.parentPath.node;if(e.node.name===t&&!to.ImportSpecifier.check(r)&&!to.ImportDefaultSpecifier.check(r)&&!to.ImportNamespaceSpecifier.check(r))return n=!0,!1;this.traverse(e)}}),n}x(co,`hasIdentifierOutsideImport`);function lo(e,t={}){let n=oo(e),r=new Set;ba(n,{visitProgram(e){let t=e.node.body.findLastIndex(e=>e.type===`ImportDeclaration`),n=e.get(`body`,t),i=eo.importDeclaration([eo.importSpecifier(eo.identifier(`cloudflare`))],eo.stringLiteral(`@cloudflare/vite-plugin`));return e.node.body.some(e=>e.type===`ImportDeclaration`&&e.source.value===`@cloudflare/vite-plugin`)||n.insertAfter(i),this.traverse(e),e.node.body=e.node.body.filter(t=>!to.ImportDeclaration.check(t)||!t.specifiers?.length?!0:(t.specifiers=t.specifiers.filter(t=>!to.Identifier.check(t.local)||!r.has(t.local.name)||co(e.node,t.local.name)),t.specifiers.length>0)),!1},visitCallExpression:x(function(e){if(e.node.callee.name!==`defineConfig`)return this.traverse(e);let n=no(e.node.arguments[0]);if(!n)throw new a(ja`
302
302
  Cannot modify Vite config: could not extract a config object (found ${e.node.arguments[0]?.type??`unknown`}).
303
303
 
304
304
  The Cloudflare plugin can only be automatically added to Vite configs that use:
@@ -312,7 +312,7 @@ _routes.json`)),Ta(o,`6.0.0`)<0?{buildTool:`wrangler`,workerConfig:{entrypoint:`
312
312
  export default defineConfig({
313
313
  plugins: [cloudflare()]
314
314
  });
315
- `,{telemetryMessage:`autoconfig vite config object unsupported`});let i=n.properties.find(e=>lo(e));if(!i||!eo.ArrayExpression.check(i.value))throw new p(Aa`
315
+ `,{telemetryMessage:`autoconfig vite config object unsupported`});let i=n.properties.find(e=>uo(e));if(!i||!to.ArrayExpression.check(i.value))throw new a(ja`
316
316
  Cannot modify Vite config: could not find a valid plugins array.
317
317
 
318
318
  Please ensure your Vite config has a plugins array:
@@ -320,10 +320,10 @@ _routes.json`)),Ta(o,`6.0.0`)<0?{buildTool:`wrangler`,workerConfig:{entrypoint:`
320
320
  export default defineConfig({
321
321
  plugins: []
322
322
  });
323
- `,{telemetryMessage:`autoconfig vite plugins array missing`});i.value.elements.some(e=>e?.type===`CallExpression`&&e.callee.type===`Identifier`&&e.callee.name===`cloudflare`)||i.value.elements.push($a.callExpression($a.identifier(`cloudflare`),[...t.viteEnvironmentName?[$a.objectExpression([$a.objectProperty($a.identifier(`viteEnvironment`),$a.objectExpression([$a.objectProperty($a.identifier(`name`),$a.stringLiteral(t.viteEnvironmentName))]))])]:[]]));let a=[...oo,...t.incompatibleVitePlugins??[]];return i.value.elements=i.value.elements.filter(e=>e?.type===`CallExpression`&&e.callee.type===`Identifier`&&a.includes(e.callee.name)?(r.add(e.callee.name),!1):!0),!1},`visitCallExpression`)})}x(co,`transformViteConfig`);function lo(e){return(eo.Property.check(e)||eo.ObjectProperty.check(e))&&eo.Identifier.check(e.key)&&e.key.name===`plugins`}x(lo,`isPluginsProp`);async function uo({packageManager:e,projectPath:t,isWorkspaceRoot:n,version:r}){let i=`@cloudflare/vite-plugin${r?`@${r}`:``}`,o=a(`vite`,t);o&&Ta(o,`6.0.0`)>=0&&Ta(o,`6.1.0`)<0&&await Ze(e,[`vite@^6.1.0`],{dev:!0,startText:`Updating the version of vite to be compatible with the Cloudflare Vite Plugin`,doneText:`${k(`updated`)} ${O(`Vite`)}`,isWorkspaceRoot:n}),await Ze(e,[i],{dev:!0,startText:`Installing the Cloudflare Vite plugin`,doneText:`${k(`installed`)} ${O(i)}`,isWorkspaceRoot:n})}x(uo,`installCloudflareVitePlugin`);var fo=Za.types.builders;function po(e){let t=z.join(e,`react-router.config.ts`),n=z.join(e,`react-router.config.js`);return R(t)?t:R(n)?n:null}x(po,`getReactRouterConfigPath`);function mo(e,t){if(t&&Ta(t,`8.0.0`)>=0)return!0;let n=po(e);if(!n)return!1;let r=null;try{r=va(n)}catch{}if(!r)return!1;let i=!1;return Za.visit(r,{visitExportDefaultDeclaration(e){let t=null;if((e.node.declaration.type===`TSAsExpression`||e.node.declaration.type===`TSSatisfiesExpression`)&&e.node.declaration.expression.type===`ObjectExpression`?t=e.node.declaration.expression:e.node.declaration.type===`ObjectExpression`&&(t=e.node.declaration),t){let e=t.properties.find(e=>e.type===`ObjectProperty`&&e.key.type===`Identifier`&&e.key.name===`future`&&e.value.type===`ObjectExpression`);e?.type===`ObjectProperty`&&e.value.type===`ObjectExpression`&&(i=e.value.properties.some(e=>e.type===`ObjectProperty`&&e.key.type===`Identifier`&&e.key.name===`v8_middleware`&&e.value.type===`BooleanLiteral`&&e.value.value===!0))}return!1}}),i}x(mo,`hasV8MiddlewareFlag`);function ho(e,t){let n=po(e);if(!n)throw Error(`Could not find React Router config file to modify`);ya(n,{visitExportDefaultDeclaration(e){let n;if((e.node.declaration.type===`TSAsExpression`||e.node.declaration.type===`TSSatisfiesExpression`)&&e.node.declaration.expression.type===`ObjectExpression`)n=e.node.declaration.expression;else if(e.node.declaration.type===`ObjectExpression`)n=e.node.declaration;else throw Error(`Could not parse React Router config file. Please add the following snippet manually:
323
+ `,{telemetryMessage:`autoconfig vite plugins array missing`});i.value.elements.some(e=>e?.type===`CallExpression`&&e.callee.type===`Identifier`&&e.callee.name===`cloudflare`)||i.value.elements.push(eo.callExpression(eo.identifier(`cloudflare`),[...t.viteEnvironmentName?[eo.objectExpression([eo.objectProperty(eo.identifier(`viteEnvironment`),eo.objectExpression([eo.objectProperty(eo.identifier(`name`),eo.stringLiteral(t.viteEnvironmentName))]))])]:[]]));let o=[...so,...t.incompatibleVitePlugins??[]];return i.value.elements=i.value.elements.filter(e=>e?.type===`CallExpression`&&e.callee.type===`Identifier`&&o.includes(e.callee.name)?(r.add(e.callee.name),!1):!0),!1},`visitCallExpression`)})}x(lo,`transformViteConfig`);function uo(e){return(to.Property.check(e)||to.ObjectProperty.check(e))&&to.Identifier.check(e.key)&&e.key.name===`plugins`}x(uo,`isPluginsProp`);async function fo({packageManager:e,projectPath:t,isWorkspaceRoot:n,version:r}){let i=`@cloudflare/vite-plugin${r?`@${r}`:``}`,a=o(`vite`,t);a&&Ea(a,`6.0.0`)>=0&&Ea(a,`6.1.0`)<0&&await Qe(e,[`vite@^6.1.0`],{dev:!0,startText:`Updating the version of vite to be compatible with the Cloudflare Vite Plugin`,doneText:`${k(`updated`)} ${O(`Vite`)}`,isWorkspaceRoot:n}),await Qe(e,[i],{dev:!0,startText:`Installing the Cloudflare Vite plugin`,doneText:`${k(`installed`)} ${O(i)}`,isWorkspaceRoot:n})}x(fo,`installCloudflareVitePlugin`);var po=Qa.types.builders;function mo(e){let t=z.join(e,`react-router.config.ts`),n=z.join(e,`react-router.config.js`);return R(t)?t:R(n)?n:null}x(mo,`getReactRouterConfigPath`);function ho(e,t){if(t&&Ea(t,`8.0.0`)>=0)return!0;let n=mo(e);if(!n)return!1;let r=null;try{r=ya(n)}catch{}if(!r)return!1;let i=!1;return Qa.visit(r,{visitExportDefaultDeclaration(e){let t=null;if((e.node.declaration.type===`TSAsExpression`||e.node.declaration.type===`TSSatisfiesExpression`)&&e.node.declaration.expression.type===`ObjectExpression`?t=e.node.declaration.expression:e.node.declaration.type===`ObjectExpression`&&(t=e.node.declaration),t){let e=t.properties.find(e=>e.type===`ObjectProperty`&&e.key.type===`Identifier`&&e.key.name===`future`&&e.value.type===`ObjectExpression`);e?.type===`ObjectProperty`&&e.value.type===`ObjectExpression`&&(i=e.value.properties.some(e=>e.type===`ObjectProperty`&&e.key.type===`Identifier`&&e.key.name===`v8_middleware`&&e.value.type===`BooleanLiteral`&&e.value.value===!0))}return!1}}),i}x(ho,`hasV8MiddlewareFlag`);function go(e,t){let n=mo(e);if(!n)throw Error(`Could not find React Router config file to modify`);ba(n,{visitExportDefaultDeclaration(e){let n;if((e.node.declaration.type===`TSAsExpression`||e.node.declaration.type===`TSSatisfiesExpression`)&&e.node.declaration.expression.type===`ObjectExpression`)n=e.node.declaration.expression;else if(e.node.declaration.type===`ObjectExpression`)n=e.node.declaration;else throw Error(`Could not parse React Router config file. Please add the following snippet manually:
324
324
  future: {
325
325
  ${t}: true,
326
- }`);Te(n.type===`ObjectExpression`);let r=n.properties.findIndex(e=>e.type===`ObjectProperty`&&e.key.type===`Identifier`&&e.key.name===`future`&&e.value.type===`ObjectExpression`);if(r!==-1){let e=n.properties[r];Te(e.type===`ObjectProperty`&&e.value.type===`ObjectExpression`);let i=e.value.properties.findIndex(e=>e.type===`ObjectProperty`&&e.key.type===`Identifier`&&e.key.name===t&&e.value.type===`BooleanLiteral`);if(i!==-1){let t=e.value.properties[i];Te(t.type===`ObjectProperty`&&t.value.type===`BooleanLiteral`),t.value.value=!0}else{let n=fo.objectProperty(fo.identifier(t),fo.booleanLiteral(!0));e.value.properties.push(n)}}else n.properties.push(fo.objectProperty(fo.identifier(`future`),fo.objectExpression([fo.objectProperty(fo.identifier(t),fo.booleanLiteral(!0))])));return!1}})}x(ho,`transformReactRouterConfig`);function go(e){return e&&Ta(e,`7.10.0`)===-1?`unstable_viteEnvironmentApi`:`v8_viteEnvironmentApi`}x(go,`viteEnvApiConfigPropertyName`);function _o(e){return e?Ta(e,`8.0.0`)<0:!1}x(_o,`needsViteEnvAPIFutureFlag`);function vo(e){if(e){_e(`workers/app.ts`,Aa`
326
+ }`);H(n.type===`ObjectExpression`);let r=n.properties.findIndex(e=>e.type===`ObjectProperty`&&e.key.type===`Identifier`&&e.key.name===`future`&&e.value.type===`ObjectExpression`);if(r!==-1){let e=n.properties[r];H(e.type===`ObjectProperty`&&e.value.type===`ObjectExpression`);let i=e.value.properties.findIndex(e=>e.type===`ObjectProperty`&&e.key.type===`Identifier`&&e.key.name===t&&e.value.type===`BooleanLiteral`);if(i!==-1){let t=e.value.properties[i];H(t.type===`ObjectProperty`&&t.value.type===`BooleanLiteral`),t.value.value=!0}else{let n=po.objectProperty(po.identifier(t),po.booleanLiteral(!0));e.value.properties.push(n)}}else n.properties.push(po.objectProperty(po.identifier(`future`),po.objectExpression([po.objectProperty(po.identifier(t),po.booleanLiteral(!0))])));return!1}})}x(go,`transformReactRouterConfig`);function _o(e){return e&&Ea(e,`7.10.0`)===-1?`unstable_viteEnvironmentApi`:`v8_viteEnvironmentApi`}x(_o,`viteEnvApiConfigPropertyName`);function vo(e){return e?Ea(e,`8.0.0`)<0:!1}x(vo,`needsViteEnvAPIFutureFlag`);function yo(e){if(e){ve(`workers/app.ts`,ja`
327
327
  import { createRequestHandler } from "react-router";
328
328
 
329
329
  const requestHandler = createRequestHandler(
@@ -336,7 +336,7 @@ _routes.json`)),Ta(o,`6.0.0`)<0?{buildTool:`wrangler`,workerConfig:{entrypoint:`
336
336
  return requestHandler(request);
337
337
  },
338
338
  } satisfies ExportedHandler<Env>;
339
- `);return}_e(`workers/app.ts`,Aa`
339
+ `);return}ve(`workers/app.ts`,ja`
340
340
  import { createRequestHandler } from "react-router";
341
341
 
342
342
  declare module "react-router" {
@@ -360,7 +360,7 @@ _routes.json`)),Ta(o,`6.0.0`)<0?{buildTool:`wrangler`,workerConfig:{entrypoint:`
360
360
  });
361
361
  },
362
362
  } satisfies ExportedHandler<Env>;
363
- `)}x(vo,`writeAppTs`);function yo(e,t){if(R(`app/entry.server.tsx`)){t.logger.warn("The file `app/entry.server.tsx` already exists on disk, and so we're not modifying it. This may lead to deployment failures if `app/entry.server.tsx` is not set up correctly.");return}if(e){_e(`app/entry.server.tsx`,Aa`
363
+ `)}x(yo,`writeAppTs`);function bo(e,t){if(R(`app/entry.server.tsx`)){t.logger.warn("The file `app/entry.server.tsx` already exists on disk, and so we're not modifying it. This may lead to deployment failures if `app/entry.server.tsx` is not set up correctly.");return}if(e){ve(`app/entry.server.tsx`,ja`
364
364
  import type { EntryContext } from "react-router";
365
365
  import { ServerRouter } from "react-router";
366
366
  import { isbot } from "isbot";
@@ -403,7 +403,7 @@ _routes.json`)),Ta(o,`6.0.0`)<0?{buildTool:`wrangler`,workerConfig:{entrypoint:`
403
403
  status: responseStatusCode,
404
404
  });
405
405
  }
406
- `);return}_e(`app/entry.server.tsx`,Aa`
406
+ `);return}ve(`app/entry.server.tsx`,ja`
407
407
  import type { AppLoadContext, EntryContext } from "react-router";
408
408
  import { ServerRouter } from "react-router";
409
409
  import { isbot } from "isbot";
@@ -447,14 +447,14 @@ _routes.json`)),Ta(o,`6.0.0`)<0?{buildTool:`wrangler`,workerConfig:{entrypoint:`
447
447
  status: responseStatusCode,
448
448
  });
449
449
  }
450
- `)}x(yo,`writeEntryServerTsx`);var bo=class extends Ea{static{x(this,`ReactRouter`)}env={CLOUDFLARE_VITE_FORCE_BUILD_OUTPUT:`true`};async configure({dryRun:e,projectPath:t,packageManager:n,isWorkspaceRoot:r,context:i,target:a}){let o=mo(t,this.frameworkVersion);return e||(await uo({packageManager:n.type,projectPath:t,isWorkspaceRoot:r,version:a===`cf`?`beta`:void 0}),pe(`workers`),vo(o),await Ze(n.type,[`isbot`],{dev:!0,startText:`Installing the isbot package`,doneText:`${k(`installed`)} ${O(`isbot`)}`,isWorkspaceRoot:r}),yo(o,i),co(t,{viteEnvironmentName:`ssr`,incompatibleVitePlugins:[`netlifyReactRouter`]}),_o(this.frameworkVersion)&&ho(t,go(this.frameworkVersion))),{buildTool:`vite`,workerConfig:{entrypoint:`./workers/app.ts`}}}configurationDescription=`Configuring project for React Router`},xo=T(Rn(),1),So=class extends Ea{static{x(this,`SolidStart`)}async configure({projectPath:e,dryRun:t}){if(!t){let t=this.frameworkVersion;Ta(t,`2.0.0-alpha`)<0?wo(e):Co(e)}return{buildTool:`wrangler`,workerConfig:{entrypoint:`./.output/server/index.mjs`,env:{ASSETS:{type:`assets`}}},buildConfig:{assetsDirectory:`./.output/public`}}}};function Co(e){ya(`vite.config.${Ja(e)?`ts`:`js`}`,{visitCallExpression:x(function(e){if(e.node.callee.name!==`nitro`)return this.traverse(e);let t=xo.types.builders,n=t.objectProperty(t.identifier(`preset`),t.stringLiteral(`cloudflare-module`));return e.node.arguments.length===0?e.node.arguments.push(t.objectExpression([n])):ba(e.node.arguments[0],[n]),!1},`visitCallExpression`)})}x(Co,`updateViteConfigFile`);function wo(e){let t=`app.config.${Ja(e)?`ts`:`js`}`,n=h;P(`Updating configuration in ${D(t)}`),ya(t,{visitCallExpression:x(function(e){if(e.node.callee.name!==`defineConfig`)return this.traverse(e);let t=xo.types.builders;return ba(e.node.arguments[0],[t.objectProperty(t.identifier(`server`),t.objectExpression([t.objectProperty(t.identifier(`preset`),t.stringLiteral(`cloudflare_module`)),t.objectProperty(t.identifier(`compatibilityDate`),t.stringLiteral(n))]))]),!1},`visitCallExpression`)})}x(wo,`updateAppConfigFile`);var To=class extends Ea{static{x(this,`Static`)}configure({outputDir:e}){return{buildTool:`wrangler`,workerConfig:{},buildConfig:{assetsDirectory:e}}}},Eo=class extends Ea{static{x(this,`SvelteKit`)}async configure({dryRun:e,packageManager:t,isWorkspaceRoot:n}){let{dlx:r}=t;return e||(await Je([...r,`sv`,`add`,`--no-install`,`--no-git-check`,`sveltekit-adapter=adapter:cloudflare+cfTarget:workers`],{silent:!0,startText:`Installing adapter`,doneText:`${k(`installed`)} ${O(`via \`${r.join(` `)} sv add sveltekit-adapter=adapter:cloudflare+cfTarget:workers\``)}`}),_e(`static/.assetsignore`,`_worker.js
451
- _routes.json`),await Ze(t.type,[],{startText:`Installing packages`,doneText:`${k(`installed`)}`,isWorkspaceRoot:n})),{buildTool:`wrangler`,workerConfig:{entrypoint:`.svelte-kit/cloudflare/_worker.js`,env:{ASSETS:{type:`assets`}}},buildConfig:{assetsDirectory:`.svelte-kit/cloudflare`}}}configurationDescription=`Configuring project for SvelteKit with "sv add"`},Do=class extends Ea{static{x(this,`TanstackStart`)}env={CLOUDFLARE_VITE_FORCE_BUILD_OUTPUT:`true`};async configure({dryRun:e,projectPath:t,packageManager:n,isWorkspaceRoot:r,target:i}){return e||(await uo({packageManager:n.type,isWorkspaceRoot:r,projectPath:t,version:i===`cf`?`beta`:void 0}),co(t,{viteEnvironmentName:`ssr`})),{buildTool:`vite`,workerConfig:{entrypoint:`@tanstack/react-start/server-entry`}}}configurationDescription=`Configuring project for Tanstack Start`},Oo=T(Rn(),1),ko=Oo.types.builders,Ao=Oo.types.namedTypes,jo=class extends Ea{static{x(this,`Vike`)}env={CLOUDFLARE_VITE_FORCE_BUILD_OUTPUT:`true`};async configure({projectPath:e,dryRun:t,packageManager:n,isWorkspaceRoot:r}){if(i(`vike-server`,e))throw Error(`Aborting since the project is using the deprecated "vike-server" package, please remove the package from your project and try again.`);return t||(await Ze(n.type,[`vike-photon`,`@photonjs/cloudflare`],{startText:`Installing vike-photon and @photonjs/cloudflare`,doneText:`${k(`installed`)} photon packages`,isWorkspaceRoot:r}),await uo({packageManager:n.type,isWorkspaceRoot:r,projectPath:e}),Mo(e)),{buildTool:`vite`,workerConfig:{entrypoint:`virtual:photon:cloudflare:server-entry`},packageJsonScriptsOverrides:{preview:`vike build && vike preview`,deploy:`vike build && wrangler deploy`}}}};function Mo(e){let t=zo(e),n;ya(t,{visitProgram(e){return n=e.node,Ro(e),this.traverse(e)},visitExportDefaultDeclaration(e){return Po(e,n),this.traverse(e)}})}x(Mo,`addVikePhotonToConfigFile`);var No=`extends`;function Po(e,t){let n=Io(e,t),r=n.properties.find(e=>Bo(e));r||(r=ko.objectProperty(ko.identifier(No),ko.arrayExpression([])),n.properties.push(r)),Te(r&&Ao.ArrayExpression.check(r.value));let i=Fo(t)??`vikePhoton`;r.value.elements.some(e=>e?.type===`Identifier`&&e.name===i)||r.value.elements.push(ko.identifier(i))}x(Po,`addVikePhotonToVikeConfigExportObject`);function Fo(e){if(e){for(let t of e.body)if(Ao.ImportDeclaration.check(t)&&t.source.value===`vike-photon/config`){let e=t.specifiers?.find(e=>Ao.ImportDefaultSpecifier.check(e));if(e&&Ao.Identifier.check(e.local))return e.local.name}}}x(Fo,`getVikePhotonImportLocalName`);function Io(e,t){if(e.node.declaration.type===`ObjectExpression`)return e.node.declaration;if((e.node.declaration.type===`TSAsExpression`||e.node.declaration.type===`TSSatisfiesExpression`)&&e.node.declaration.expression.type===`ObjectExpression`)return e.node.declaration.expression;if(e.node.declaration.type===`Identifier`&&t){let n=Lo(e.node.declaration.name,t);if(n)return n}throw Error(`Could not determine Vike default object export`)}x(Io,`getVikeConfigObjectExpression`);function Lo(e,t){for(let n of t.body)if(Ao.VariableDeclaration.check(n)){for(let t of n.declarations)if(Ao.VariableDeclarator.check(t)&&Ao.Identifier.check(t.id)&&t.id.name===e&&t.init){if(Ao.ObjectExpression.check(t.init))return t.init;if((Ao.TSAsExpression.check(t.init)||Ao.TSSatisfiesExpression.check(t.init))&&Ao.ObjectExpression.check(t.init.expression))return t.init.expression}}}x(Lo,`resolveIdentifierToObjectExpression`);function Ro(e){let t=e.node.body.findLastIndex(e=>e.type===`ImportDeclaration`),n=e.get(`body`,t),r=ko.importDeclaration([ko.importDefaultSpecifier(ko.identifier(`vikePhoton`))],ko.stringLiteral(`vike-photon/config`));e.node.body.some(e=>e.type===`ImportDeclaration`&&e.source.value===`vike-photon/config`)||n.insertAfter(r)}x(Ro,`addVikePhotonImportToConfigFile`);function zo(e){let t=z.join(e,`pages`,`+config.ts`),n=z.join(e,`pages`,`+config.js`),r;if(R(t))r=t;else if(R(n))r=n;else throw Error(`Could not find config file to modify`);return r}x(zo,`getConfigPath`);function Bo(e){return(Ao.Property.check(e)||Ao.ObjectProperty.check(e))&&Ao.Identifier.check(e.key)&&e.key.name===No}x(Bo,`isExtendsProp`);var Vo=class extends Ea{static{x(this,`Vite`)}supportsMode=!0;env={CLOUDFLARE_VITE_FORCE_BUILD_OUTPUT:`true`};isConfigured(e,{target:t=`cf`}={}){return t!==`wrangler`||!io(e)?!1:ro(e)}async configure({dryRun:e,projectPath:t,packageManager:n,isWorkspaceRoot:r,target:i}){return e||(await uo({packageManager:n.type,isWorkspaceRoot:r,projectPath:t,version:i===`cf`?`beta`:void 0}),io(t)?co(t):Ho(t)),{buildTool:`vite`,workerConfig:{assets:{notFoundHandling:`single-page-application`}}}}};function Ho(e){_e(B(e,`vite.config.${Ja(e)?`ts`:`js`}`),`import { cloudflare } from "@cloudflare/vite-plugin";
450
+ `)}x(bo,`writeEntryServerTsx`);var xo=class extends Da{static{x(this,`ReactRouter`)}env={CLOUDFLARE_VITE_FORCE_BUILD_OUTPUT:`true`};async configure({dryRun:e,projectPath:t,packageManager:n,isWorkspaceRoot:r,context:i,target:a}){let o=ho(t,this.frameworkVersion);return e||(await fo({packageManager:n.type,projectPath:t,isWorkspaceRoot:r,version:a===`cf`?`beta`:void 0}),me(`workers`),yo(o),await Qe(n.type,[`isbot`],{dev:!0,startText:`Installing the isbot package`,doneText:`${k(`installed`)} ${O(`isbot`)}`,isWorkspaceRoot:r}),bo(o,i),lo(t,{viteEnvironmentName:`ssr`,incompatibleVitePlugins:[`netlifyReactRouter`]}),vo(this.frameworkVersion)&&go(t,_o(this.frameworkVersion))),{buildTool:`vite`,workerConfig:{entrypoint:`./workers/app.ts`}}}configurationDescription=`Configuring project for React Router`},So=T(zn(),1),Co=class extends Da{static{x(this,`SolidStart`)}async configure({projectPath:e,dryRun:t}){if(!t){let t=this.frameworkVersion;Ea(t,`2.0.0-alpha`)<0?To(e):wo(e)}return{buildTool:`wrangler`,workerConfig:{entrypoint:`./.output/server/index.mjs`,env:{ASSETS:{type:`assets`}}},buildConfig:{assetsDirectory:`./.output/public`}}}};function wo(e){ba(`vite.config.${Ya(e)?`ts`:`js`}`,{visitCallExpression:x(function(e){if(e.node.callee.name!==`nitro`)return this.traverse(e);let t=So.types.builders,n=t.objectProperty(t.identifier(`preset`),t.stringLiteral(`cloudflare-module`));return e.node.arguments.length===0?e.node.arguments.push(t.objectExpression([n])):xa(e.node.arguments[0],[n]),!1},`visitCallExpression`)})}x(wo,`updateViteConfigFile`);function To(e){let t=`app.config.${Ya(e)?`ts`:`js`}`,n=h;P(`Updating configuration in ${D(t)}`),ba(t,{visitCallExpression:x(function(e){if(e.node.callee.name!==`defineConfig`)return this.traverse(e);let t=So.types.builders;return xa(e.node.arguments[0],[t.objectProperty(t.identifier(`server`),t.objectExpression([t.objectProperty(t.identifier(`preset`),t.stringLiteral(`cloudflare_module`)),t.objectProperty(t.identifier(`compatibilityDate`),t.stringLiteral(n))]))]),!1},`visitCallExpression`)})}x(To,`updateAppConfigFile`);var Eo=class extends Da{static{x(this,`Static`)}configure({outputDir:e}){return{buildTool:`wrangler`,workerConfig:{},buildConfig:{assetsDirectory:e}}}},Do=class extends Da{static{x(this,`SvelteKit`)}async configure({dryRun:e,packageManager:t,isWorkspaceRoot:n}){let{dlx:r}=t;return e||(await Ye([...r,`sv`,`add`,`--no-install`,`--no-git-check`,`sveltekit-adapter=adapter:cloudflare+cfTarget:workers`],{silent:!0,startText:`Installing adapter`,doneText:`${k(`installed`)} ${O(`via \`${r.join(` `)} sv add sveltekit-adapter=adapter:cloudflare+cfTarget:workers\``)}`}),ve(`static/.assetsignore`,`_worker.js
451
+ _routes.json`),await Qe(t.type,[],{startText:`Installing packages`,doneText:`${k(`installed`)}`,isWorkspaceRoot:n})),{buildTool:`wrangler`,workerConfig:{entrypoint:`.svelte-kit/cloudflare/_worker.js`,env:{ASSETS:{type:`assets`}}},buildConfig:{assetsDirectory:`.svelte-kit/cloudflare`}}}configurationDescription=`Configuring project for SvelteKit with "sv add"`},Oo=class extends Da{static{x(this,`TanstackStart`)}env={CLOUDFLARE_VITE_FORCE_BUILD_OUTPUT:`true`};async configure({dryRun:e,projectPath:t,packageManager:n,isWorkspaceRoot:r,target:i}){return e||(await fo({packageManager:n.type,isWorkspaceRoot:r,projectPath:t,version:i===`cf`?`beta`:void 0}),lo(t,{viteEnvironmentName:`ssr`})),{buildTool:`vite`,workerConfig:{entrypoint:`@tanstack/react-start/server-entry`}}}configurationDescription=`Configuring project for Tanstack Start`},ko=T(zn(),1),Ao=ko.types.builders,jo=ko.types.namedTypes,Mo=class extends Da{static{x(this,`Vike`)}env={CLOUDFLARE_VITE_FORCE_BUILD_OUTPUT:`true`};async configure({projectPath:e,dryRun:t,packageManager:n,isWorkspaceRoot:r}){if(i(`vike-server`,e))throw Error(`Aborting since the project is using the deprecated "vike-server" package, please remove the package from your project and try again.`);return t||(await Qe(n.type,[`vike-photon`,`@photonjs/cloudflare`],{startText:`Installing vike-photon and @photonjs/cloudflare`,doneText:`${k(`installed`)} photon packages`,isWorkspaceRoot:r}),await fo({packageManager:n.type,isWorkspaceRoot:r,projectPath:e}),No(e)),{buildTool:`vite`,workerConfig:{entrypoint:`virtual:photon:cloudflare:server-entry`},packageJsonScriptsOverrides:{preview:`vike build && vike preview`,deploy:`vike build && wrangler deploy`}}}};function No(e){let t=Bo(e),n;ba(t,{visitProgram(e){return n=e.node,zo(e),this.traverse(e)},visitExportDefaultDeclaration(e){return Fo(e,n),this.traverse(e)}})}x(No,`addVikePhotonToConfigFile`);var Po=`extends`;function Fo(e,t){let n=Lo(e,t),r=n.properties.find(e=>Vo(e));r||(r=Ao.objectProperty(Ao.identifier(Po),Ao.arrayExpression([])),n.properties.push(r)),H(r&&jo.ArrayExpression.check(r.value));let i=Io(t)??`vikePhoton`;r.value.elements.some(e=>e?.type===`Identifier`&&e.name===i)||r.value.elements.push(Ao.identifier(i))}x(Fo,`addVikePhotonToVikeConfigExportObject`);function Io(e){if(e){for(let t of e.body)if(jo.ImportDeclaration.check(t)&&t.source.value===`vike-photon/config`){let e=t.specifiers?.find(e=>jo.ImportDefaultSpecifier.check(e));if(e&&jo.Identifier.check(e.local))return e.local.name}}}x(Io,`getVikePhotonImportLocalName`);function Lo(e,t){if(e.node.declaration.type===`ObjectExpression`)return e.node.declaration;if((e.node.declaration.type===`TSAsExpression`||e.node.declaration.type===`TSSatisfiesExpression`)&&e.node.declaration.expression.type===`ObjectExpression`)return e.node.declaration.expression;if(e.node.declaration.type===`Identifier`&&t){let n=Ro(e.node.declaration.name,t);if(n)return n}throw Error(`Could not determine Vike default object export`)}x(Lo,`getVikeConfigObjectExpression`);function Ro(e,t){for(let n of t.body)if(jo.VariableDeclaration.check(n)){for(let t of n.declarations)if(jo.VariableDeclarator.check(t)&&jo.Identifier.check(t.id)&&t.id.name===e&&t.init){if(jo.ObjectExpression.check(t.init))return t.init;if((jo.TSAsExpression.check(t.init)||jo.TSSatisfiesExpression.check(t.init))&&jo.ObjectExpression.check(t.init.expression))return t.init.expression}}}x(Ro,`resolveIdentifierToObjectExpression`);function zo(e){let t=e.node.body.findLastIndex(e=>e.type===`ImportDeclaration`),n=e.get(`body`,t),r=Ao.importDeclaration([Ao.importDefaultSpecifier(Ao.identifier(`vikePhoton`))],Ao.stringLiteral(`vike-photon/config`));e.node.body.some(e=>e.type===`ImportDeclaration`&&e.source.value===`vike-photon/config`)||n.insertAfter(r)}x(zo,`addVikePhotonImportToConfigFile`);function Bo(e){let t=z.join(e,`pages`,`+config.ts`),n=z.join(e,`pages`,`+config.js`),r;if(R(t))r=t;else if(R(n))r=n;else throw Error(`Could not find config file to modify`);return r}x(Bo,`getConfigPath`);function Vo(e){return(jo.Property.check(e)||jo.ObjectProperty.check(e))&&jo.Identifier.check(e.key)&&e.key.name===Po}x(Vo,`isExtendsProp`);var Ho=class extends Da{static{x(this,`Vite`)}supportsMode=!0;env={CLOUDFLARE_VITE_FORCE_BUILD_OUTPUT:`true`};isConfigured(e,{target:t=`cf`}={}){return t!==`wrangler`||!ao(e)?!1:io(e)}async configure({dryRun:e,projectPath:t,packageManager:n,isWorkspaceRoot:r,target:i}){return e||(await fo({packageManager:n.type,isWorkspaceRoot:r,projectPath:t,version:i===`cf`?`beta`:void 0}),ao(t)?lo(t):Uo(t)),{buildTool:`vite`,workerConfig:{assets:{notFoundHandling:`single-page-application`}}}}};function Uo(e){ve(B(e,`vite.config.${Ya(e)?`ts`:`js`}`),`import { cloudflare } from "@cloudflare/vite-plugin";
452
452
  import { defineConfig } from "vite";
453
453
 
454
454
  export default defineConfig({
455
455
  plugins: [cloudflare()],
456
456
  });
457
- `)}x(Ho,`createViteConfig`);var Uo=T(Rn(),1),Wo=Uo.types.builders,Go=Uo.types.namedTypes,Ko=class extends Ea{static{x(this,`Waku`)}async configure({dryRun:e,projectPath:t,packageManager:n,isWorkspaceRoot:r}){return e||(await Ze(n.type,[`hono`],{dev:!0,startText:`Installing hono dependency`,doneText:`${k(`installed`)}`,isWorkspaceRoot:r}),await uo({packageManager:n.type,projectPath:t,isWorkspaceRoot:r}),await qo(t),await Jo(t)),{buildTool:`wrangler`,workerConfig:{entrypoint:`./src/waku.server`,assets:{htmlHandling:`drop-trailing-slash`},env:{ASSETS:{type:`assets`}}},buildConfig:{assetsDirectory:`./dist/public`}}}};async function qo(e){await H(`${e}/src/waku.server.tsx`,Aa`
457
+ `)}x(Uo,`createViteConfig`);var Wo=T(zn(),1),Go=Wo.types.builders,Ko=Wo.types.namedTypes,qo=class extends Da{static{x(this,`Waku`)}async configure({dryRun:e,projectPath:t,packageManager:n,isWorkspaceRoot:r}){return e||(await Qe(n.type,[`hono`],{dev:!0,startText:`Installing hono dependency`,doneText:`${k(`installed`)}`,isWorkspaceRoot:r}),await fo({packageManager:n.type,projectPath:t,isWorkspaceRoot:r}),await Jo(t),await Yo(t)),{buildTool:`wrangler`,workerConfig:{entrypoint:`./src/waku.server`,assets:{htmlHandling:`drop-trailing-slash`},env:{ASSETS:{type:`assets`}}},buildConfig:{assetsDirectory:`./dist/public`}}}};async function Jo(e){await ke(`${e}/src/waku.server.tsx`,ja`
458
458
  import { fsRouter } from 'waku';
459
459
  import adapter from 'waku/adapters/cloudflare';
460
460
 
@@ -476,13 +476,13 @@ export default defineConfig({
476
476
  },
477
477
  },
478
478
  );
479
- `)}x(qo,`createWakuServerFile`);async function Jo(e){let t=B(e,`waku.config.ts`);if(!R(t))throw Error(`Could not find Waku config file to modify`);P(`Updating Waku configuration in ${D(t)}`),ya(t,{visitProgram(e){let t=e.node.body.findLastIndex(e=>e.type===`ImportDeclaration`),n=e.get(`body`,t);if(!e.node.body.some(e=>e.type===`ImportDeclaration`&&e.source.value===`@cloudflare/vite-plugin`)){let e=Wo.importDeclaration([Wo.importSpecifier(Wo.identifier(`cloudflare`))],Wo.stringLiteral(`@cloudflare/vite-plugin`));n.insertAfter(e)}return this.traverse(e)},visitCallExpression:x(function(e){if(e.node.callee.name!==`defineConfig`)return this.traverse(e);let t=e.node.arguments[0];Te(Go.ObjectExpression.check(t));let n=t.properties.find(e=>Yo(e))?.value;Te(Go.ObjectExpression.check(n));let r=n.properties.find(e=>Xo(e));Te(r&&Go.ArrayExpression.check(r.value)),r.value.elements.some(e=>e?.type===`CallExpression`&&e.callee.type===`Identifier`&&e.callee.name===`cloudflare`)||r.value.elements.push(Wo.callExpression(Wo.identifier(`cloudflare`),[Wo.objectExpression([Wo.objectProperty(Wo.identifier(`viteEnvironment`),Wo.objectExpression([Wo.objectProperty(Wo.identifier(`name`),Wo.stringLiteral(`rsc`)),Wo.objectProperty(Wo.identifier(`childEnvironments`),Wo.arrayExpression([Wo.stringLiteral(`ssr`)]))])),Wo.objectProperty(Wo.identifier(`inspectorPort`),Wo.booleanLiteral(!1))])])),this.traverse(e)},`visitCallExpression`)})}x(Jo,`updateWakuConfig`);function Yo(e){return(Go.Property.check(e)||Go.ObjectProperty.check(e))&&Go.Identifier.check(e.key)&&e.key.name===`vite`}x(Yo,`isViteProp`);function Xo(e){return(Go.Property.check(e)||Go.ObjectProperty.check(e))&&Go.Identifier.check(e.key)&&e.key.name===`plugins`}x(Xo,`isPluginsProp`);var Zo=[{id:`analog`,name:`Analog`,class:Da,frameworkPackageInfo:{name:`@analogjs/platform`,minimumVersion:`2.0.0`,maximumKnownMajorVersion:`2`},supportsCf:!1,supported:!0},{id:`angular`,name:`Angular`,class:ja,frameworkPackageInfo:{name:`@angular/core`,minimumVersion:`19.0.0`,maximumKnownMajorVersion:`22`},supportsCf:!1,supported:!0},{id:`astro`,name:`Astro`,class:La,frameworkPackageInfo:{name:`astro`,minimumVersion:`4.0.0`,maximumKnownMajorVersion:`7`},supportsCf:!0,supported:!0},{id:`hono`,name:`Hono`,supported:!1},{id:`next`,name:`Next.js`,class:Ha,frameworkPackageInfo:{name:`next`,minimumVersion:`14.2.35`,maximumKnownMajorVersion:`16`},supportsCf:!0,supported:!0},{id:`nuxt`,name:`Nuxt`,class:Ga,frameworkPackageInfo:{name:`nuxt`,minimumVersion:`3.21.0`,maximumKnownMajorVersion:`4`},supportsCf:!1,supported:!0},{id:`qwik`,name:`Qwik`,class:Ya,frameworkPackageInfo:{name:`@builder.io/qwik`,minimumVersion:`1.1.0`,maximumKnownMajorVersion:`1`},supportsCf:!1,supported:!0},{id:`react-router`,name:`React Router`,class:bo,frameworkPackageInfo:{name:`react-router`,minimumVersion:`7.0.0`,maximumKnownMajorVersion:`8`},supportsCf:!0,supported:!0},{id:`solid-start`,name:`Solid Start`,class:So,frameworkPackageInfo:{name:`@solidjs/start`,minimumVersion:`1.0.0`,maximumKnownMajorVersion:`2`},supportsCf:!1,supported:!0},{id:`svelte-kit`,name:`SvelteKit`,class:Eo,frameworkPackageInfo:{name:`@sveltejs/kit`,minimumVersion:`2.20.3`,maximumKnownMajorVersion:`2`},supportsCf:!1,supported:!0},{id:`tanstack-start`,name:`TanStack Start`,class:Do,frameworkPackageInfo:{name:`@tanstack/react-start`,minimumVersion:`1.132.0`,maximumKnownMajorVersion:`1`},supportsCf:!0,supported:!0},{id:`vite`,name:`Vite`,class:Vo,frameworkPackageInfo:{name:`vite`,minimumVersion:`6.0.0`,maximumKnownMajorVersion:`8`},supportsCf:!0,supported:!0},{id:`vike`,name:`Vike`,class:jo,frameworkPackageInfo:{name:`vike`,minimumVersion:`0.0.0`,maximumKnownMajorVersion:`0`},supportsCf:!1,supported:!0},{id:`waku`,name:`Waku`,class:Ko,frameworkPackageInfo:{name:`waku`,minimumVersion:`1.0.0-alpha.4`,maximumKnownMajorVersion:`1`},supportsCf:!1,supported:!0},{id:`cloudflare-pages`,name:`Cloudflare Pages`,supported:!1},{id:`hydrogen`,name:`Hydrogen`,supported:!1}],Qo={id:`static`,name:`Static`,class:To,supportsCf:!0,supported:!0},$o=[Qo,...Zo];function es(e){if(e===Qo.id)return;let t=Zo.find(t=>t.id===e);return Te(t,`Could not determine framework package info for ${JSON.stringify(e)}`),Te(t.supported,`Framework unexpectedly not supported ${JSON.stringify(e)}`),t.frameworkPackageInfo}x(es,`getFrameworkPackageInfo`);var ts=class extends Ea{static{x(this,`NoOpFramework`)}async configure(){return{workerConfig:{}}}},ns=new Set($o.map(({id:e})=>e));function rs(e){return ns.has(e)}x(rs,`isKnownFramework`);function is(e){let t=$o.find(t=>t.id===e)??Qo;return new(t.supported===!1?ts:t.class)({id:t.id,name:t.name})}x(is,`getFrameworkClassInstance`);function as(e){let t=$o.find(t=>t.id===e);return Te(t,`Unexpected unknown framework id: ${JSON.stringify(e)}`),t.supported}x(as,`isFrameworkSupported`);function os(e,t){if(t!==`cf`)return;let n=$o.find(({id:t})=>t===e.id);if(!(n?.supported!==!0||n.supportsCf))throw new la(`cf does not support ${e.name} projects yet. You can still use Wrangler to develop and deploy this project.`,{telemetryMessage:`autoconfig framework unsupported for cf`})}x(os,`validateFrameworkTargetSupport`);var ss;(function(e){e.DEBUG=`debug`,e.LOG=`log`,e.INFO=`info`,e.WARN=`warn`,e.ERROR=`error`})(ss||={});var cs=class{static{x(this,`DefaultLogger`)}logLevel;constructor(e=ss.ERROR){this.logLevel=e}shouldLog(e){let t=[`debug`,`log`,`info`,`warn`,`error`];return t.indexOf(e)>=t.indexOf(this.logLevel)}debug(...e){this.shouldLog(ss.DEBUG)&&console.debug(...e)}log(...e){this.shouldLog(ss.LOG)&&console.log(...e)}info(...e){this.shouldLog(ss.INFO)&&console.info(...e)}warn(...e){this.shouldLog(ss.WARN)&&console.warn(...e)}error(...e){this.shouldLog(ss.ERROR)&&console.error(...e)}};function ls(e,t){let n=[];for(let r=0;r<e.length;r++){let i=e[r];!i||i===`.`||(i===`..`?n.length&&n[n.length-1]!==`..`?n.pop():t&&n.push(`..`):n.push(i))}return n}x(ls,`normalizePathSegments`);function us(e){let t=e.startsWith(`/`),n=e&&e[e.length-1]===`/`;return e=ls(e.split(`/`),!t).join(`/`),!e&&!t&&(e=`.`),e&&n&&(e+=`/`),`${t?`/`:``}${e}`}x(us,`normalize`);function ds(...e){let t=``;for(let n=0,r=e.length;n<r;n++){if(typeof e[n]!=`string`)throw TypeError(`Arguments to join must be strings`);let r=e[n].replace(/\\/gm,`/`);r&&(t.length?t+=`/`+r:t+=r)}return us(t)}x(ds,`join`);var fs=class{static{x(this,`FileSystem`)}logger=new cs(`error`);cwd=`/`;basename(e){return this.join(e).split(`/`).pop()||``}relative(e,t){let n=this.isAbsolute(e)?e:this.join(this.cwd,e),r=this.isAbsolute(t)?t:this.join(this.cwd,t);if(n===r)return``;let i=[];if(r.startsWith(n))return r.substring(n.length).replace(/^\//,``);let a=this.join(n).split(`/`),o=this.join(r).split(`/`);for(let e=0,t=o.length;e<t&&o[e]===a?.[e];e++)i.push(o[e]);let s=o.length-i.length,c=a.length-i.length,l=c>0?Array(Math.max(s,c)).fill(`..`):[];return s>0&&l.push(...o.slice(-s)),l.join(`/`)}dirname(e){let t=this.join(e).split(`/`);return t.pop(),t.length===1&&t[0]===``?`/`:t.join(`/`)}join(...e){return ds(...e)}async gracefullyReadFile(e){try{return await this.readFile(e)}catch{return null}}async readJSON(e,t={}){try{return JSON.parse(await this.readFile(e))}catch(n){if(t.fail)throw n;let r=`Could not parse JSON file ${e}`;return n instanceof Error&&(r+=`
479
+ `)}x(Jo,`createWakuServerFile`);async function Yo(e){let t=B(e,`waku.config.ts`);if(!R(t))throw Error(`Could not find Waku config file to modify`);P(`Updating Waku configuration in ${D(t)}`),ba(t,{visitProgram(e){let t=e.node.body.findLastIndex(e=>e.type===`ImportDeclaration`),n=e.get(`body`,t);if(!e.node.body.some(e=>e.type===`ImportDeclaration`&&e.source.value===`@cloudflare/vite-plugin`)){let e=Go.importDeclaration([Go.importSpecifier(Go.identifier(`cloudflare`))],Go.stringLiteral(`@cloudflare/vite-plugin`));n.insertAfter(e)}return this.traverse(e)},visitCallExpression:x(function(e){if(e.node.callee.name!==`defineConfig`)return this.traverse(e);let t=e.node.arguments[0];H(Ko.ObjectExpression.check(t));let n=t.properties.find(e=>Xo(e))?.value;H(Ko.ObjectExpression.check(n));let r=n.properties.find(e=>Zo(e));H(r&&Ko.ArrayExpression.check(r.value)),r.value.elements.some(e=>e?.type===`CallExpression`&&e.callee.type===`Identifier`&&e.callee.name===`cloudflare`)||r.value.elements.push(Go.callExpression(Go.identifier(`cloudflare`),[Go.objectExpression([Go.objectProperty(Go.identifier(`viteEnvironment`),Go.objectExpression([Go.objectProperty(Go.identifier(`name`),Go.stringLiteral(`rsc`)),Go.objectProperty(Go.identifier(`childEnvironments`),Go.arrayExpression([Go.stringLiteral(`ssr`)]))])),Go.objectProperty(Go.identifier(`inspectorPort`),Go.booleanLiteral(!1))])])),this.traverse(e)},`visitCallExpression`)})}x(Yo,`updateWakuConfig`);function Xo(e){return(Ko.Property.check(e)||Ko.ObjectProperty.check(e))&&Ko.Identifier.check(e.key)&&e.key.name===`vite`}x(Xo,`isViteProp`);function Zo(e){return(Ko.Property.check(e)||Ko.ObjectProperty.check(e))&&Ko.Identifier.check(e.key)&&e.key.name===`plugins`}x(Zo,`isPluginsProp`);var Qo=[{id:`analog`,name:`Analog`,class:Oa,frameworkPackageInfo:{name:`@analogjs/platform`,minimumVersion:`2.0.0`,maximumKnownMajorVersion:`2`},supportsCf:!1,supported:!0},{id:`angular`,name:`Angular`,class:Ma,frameworkPackageInfo:{name:`@angular/core`,minimumVersion:`19.0.0`,maximumKnownMajorVersion:`22`},supportsCf:!1,supported:!0},{id:`astro`,name:`Astro`,class:Ra,frameworkPackageInfo:{name:`astro`,minimumVersion:`4.0.0`,maximumKnownMajorVersion:`7`},supportsCf:!0,supported:!0},{id:`hono`,name:`Hono`,supported:!1},{id:`next`,name:`Next.js`,class:Ua,frameworkPackageInfo:{name:`next`,minimumVersion:`14.2.35`,maximumKnownMajorVersion:`16`},supportsCf:!0,supported:!0},{id:`nuxt`,name:`Nuxt`,class:Ka,frameworkPackageInfo:{name:`nuxt`,minimumVersion:`3.21.0`,maximumKnownMajorVersion:`4`},supportsCf:!1,supported:!0},{id:`qwik`,name:`Qwik`,class:Xa,frameworkPackageInfo:{name:`@builder.io/qwik`,minimumVersion:`1.1.0`,maximumKnownMajorVersion:`1`},supportsCf:!1,supported:!0},{id:`react-router`,name:`React Router`,class:xo,frameworkPackageInfo:{name:`react-router`,minimumVersion:`7.0.0`,maximumKnownMajorVersion:`8`},supportsCf:!0,supported:!0},{id:`solid-start`,name:`Solid Start`,class:Co,frameworkPackageInfo:{name:`@solidjs/start`,minimumVersion:`1.0.0`,maximumKnownMajorVersion:`2`},supportsCf:!1,supported:!0},{id:`svelte-kit`,name:`SvelteKit`,class:Do,frameworkPackageInfo:{name:`@sveltejs/kit`,minimumVersion:`2.20.3`,maximumKnownMajorVersion:`2`},supportsCf:!1,supported:!0},{id:`tanstack-start`,name:`TanStack Start`,class:Oo,frameworkPackageInfo:{name:`@tanstack/react-start`,minimumVersion:`1.132.0`,maximumKnownMajorVersion:`1`},supportsCf:!0,supported:!0},{id:`vite`,name:`Vite`,class:Ho,frameworkPackageInfo:{name:`vite`,minimumVersion:`6.0.0`,maximumKnownMajorVersion:`8`},supportsCf:!0,supported:!0},{id:`vike`,name:`Vike`,class:Mo,frameworkPackageInfo:{name:`vike`,minimumVersion:`0.0.0`,maximumKnownMajorVersion:`0`},supportsCf:!1,supported:!0},{id:`waku`,name:`Waku`,class:qo,frameworkPackageInfo:{name:`waku`,minimumVersion:`1.0.0-alpha.4`,maximumKnownMajorVersion:`1`},supportsCf:!1,supported:!0},{id:`cloudflare-pages`,name:`Cloudflare Pages`,supported:!1},{id:`hydrogen`,name:`Hydrogen`,supported:!1}],$o={id:`static`,name:`Static`,class:Eo,supportsCf:!0,supported:!0},es=[$o,...Qo];function ts(e){if(e===$o.id)return;let t=Qo.find(t=>t.id===e);return H(t,`Could not determine framework package info for ${JSON.stringify(e)}`),H(t.supported,`Framework unexpectedly not supported ${JSON.stringify(e)}`),t.frameworkPackageInfo}x(ts,`getFrameworkPackageInfo`);var ns=class extends Da{static{x(this,`NoOpFramework`)}async configure(){return{workerConfig:{}}}},rs=new Set(es.map(({id:e})=>e));function is(e){return rs.has(e)}x(is,`isKnownFramework`);function as(e){let t=es.find(t=>t.id===e)??$o;return new(t.supported===!1?ns:t.class)({id:t.id,name:t.name})}x(as,`getFrameworkClassInstance`);function os(e){let t=es.find(t=>t.id===e);return H(t,`Unexpected unknown framework id: ${JSON.stringify(e)}`),t.supported}x(os,`isFrameworkSupported`);function ss(e,t){if(t!==`cf`)return;let n=es.find(({id:t})=>t===e.id);if(!(n?.supported!==!0||n.supportsCf))throw new ua(`cf does not support ${e.name} projects yet. You can still use Wrangler to develop and deploy this project.`,{telemetryMessage:`autoconfig framework unsupported for cf`})}x(ss,`validateFrameworkTargetSupport`);var cs;(function(e){e.DEBUG=`debug`,e.LOG=`log`,e.INFO=`info`,e.WARN=`warn`,e.ERROR=`error`})(cs||={});var ls=class{static{x(this,`DefaultLogger`)}logLevel;constructor(e=cs.ERROR){this.logLevel=e}shouldLog(e){let t=[`debug`,`log`,`info`,`warn`,`error`];return t.indexOf(e)>=t.indexOf(this.logLevel)}debug(...e){this.shouldLog(cs.DEBUG)&&console.debug(...e)}log(...e){this.shouldLog(cs.LOG)&&console.log(...e)}info(...e){this.shouldLog(cs.INFO)&&console.info(...e)}warn(...e){this.shouldLog(cs.WARN)&&console.warn(...e)}error(...e){this.shouldLog(cs.ERROR)&&console.error(...e)}};function us(e,t){let n=[];for(let r=0;r<e.length;r++){let i=e[r];!i||i===`.`||(i===`..`?n.length&&n[n.length-1]!==`..`?n.pop():t&&n.push(`..`):n.push(i))}return n}x(us,`normalizePathSegments`);function ds(e){let t=e.startsWith(`/`),n=e&&e[e.length-1]===`/`;return e=us(e.split(`/`),!t).join(`/`),!e&&!t&&(e=`.`),e&&n&&(e+=`/`),`${t?`/`:``}${e}`}x(ds,`normalize`);function fs(...e){let t=``;for(let n=0,r=e.length;n<r;n++){if(typeof e[n]!=`string`)throw TypeError(`Arguments to join must be strings`);let r=e[n].replace(/\\/gm,`/`);r&&(t.length?t+=`/`+r:t+=r)}return ds(t)}x(fs,`join`);var ps=class{static{x(this,`FileSystem`)}logger=new ls(`error`);cwd=`/`;basename(e){return this.join(e).split(`/`).pop()||``}relative(e,t){let n=this.isAbsolute(e)?e:this.join(this.cwd,e),r=this.isAbsolute(t)?t:this.join(this.cwd,t);if(n===r)return``;let i=[];if(r.startsWith(n))return r.substring(n.length).replace(/^\//,``);let a=this.join(n).split(`/`),o=this.join(r).split(`/`);for(let e=0,t=o.length;e<t&&o[e]===a?.[e];e++)i.push(o[e]);let s=o.length-i.length,c=a.length-i.length,l=c>0?Array(Math.max(s,c)).fill(`..`):[];return s>0&&l.push(...o.slice(-s)),l.join(`/`)}dirname(e){let t=this.join(e).split(`/`);return t.pop(),t.length===1&&t[0]===``?`/`:t.join(`/`)}join(...e){return fs(...e)}async gracefullyReadFile(e){try{return await this.readFile(e)}catch{return null}}async readJSON(e,t={}){try{return JSON.parse(await this.readFile(e))}catch(n){if(t.fail)throw n;let r=`Could not parse JSON file ${e}`;return n instanceof Error&&(r+=`
480
480
  ${n.name}: ${n.message}
481
- ${n.stack}`),this.logger.error(r),{}}}async findUp(e,t={}){let n=this.resolve(t.cwd||this.cwd),r=x(async()=>{let i=await this.readDir(n,!0),a=Object.entries(i).find(([n,r])=>{if(typeof e==`string`&&n===e||Array.isArray(e)&&e.includes(n))return t.type&&t.type,n});if(a?.[0])return this.join(n,a[0]);if(!(n===`/`||t.stopAt&&this.resolve(t.stopAt)===n))return n=this.join(n,`..`),r()},`readUp`);return r()}async findUpMultiple(e,t={}){let n=this.resolve(t.cwd||this.cwd),r=[],i=x(async()=>{let a=await this.readDir(n,!0);for(let[i,o]of Object.entries(a))(typeof e==`string`&&i===e||Array.isArray(e)&&e.includes(i))&&(t.type&&t.type===o||!t.type)&&r.push(this.resolve(n,i));return n===`/`||t.stopAt&&this.resolve(t.stopAt)===n?r:(n=this.join(n,`..`),i())},`readUp`);return i()}},ps=T(Pr(),1),ms=[`dev`,`serve`,`develop`,`start`,`run`,`web`],hs=[`netlify dev`],gs=[`build`],_s=[`netlify build`],vs=x(e=>hs.some(t=>e.includes(t)),`isExcludedDevScript`),ys=x(e=>_s.some(t=>e.includes(t)),`isExcludedBuildScript`),bs=x((e,t)=>e===t||e.endsWith(`:${t}`),`isScript`),xs=x(e=>e===-1?2**53-1:e,`getSortIndex`),Ss=x(e=>(t,n)=>{let r=e.findIndex(e=>bs(t,e)),i=e.findIndex(e=>bs(n,e));return xs(r)-xs(i)},`sortScriptsByRelevance`),Cs=x((e,t)=>ms.some(n=>bs(e,n)&&!vs(t)),`isNpmDevScript`),ws=x((e,t)=>gs.some(n=>bs(e,n)&&!ys(t)),`isNpmBuildScript`);function Ts(e,t={}){let n=Object.entries(t).filter(([,t])=>t.includes(e)).map(([e])=>e).sort(Ss(ms));return n.length>0?n:Object.keys(t).filter(e=>Cs(e,t[e])).sort(Ss(ms))}x(Ts,`getDevCommands`);function Es(e,t={}){let n=Object.entries(t).filter(([,t])=>t.includes(e)).map(([e])=>e).sort(Ss(gs));return n.length>0?n:Object.keys(t).filter(e=>ws(e,t[e])).sort(Ss(gs))}x(Es,`getBuildCommands`);var X;(function(e){e.BackendFramework=`backend_framework`,e.FrontendFramework=`frontend_framework`,e.SSG=`static_site_generator`,e.BuildTool=`build_tool`})(X||={});var Ds;(function(e){e[e.Forced=5]=`Forced`,e[e.NPM=4]=`NPM`,e[e.ConfigOnly=3]=`ConfigOnly`,e[e.Config=2]=`Config`,e[e.NPMHoisted=1]=`NPMHoisted`})(Ds||={});var Os;(function(e){e.NodeModules=`node_modules`,e.PackageJSONPinned=`package_json_pinned`,e.PackageJSON=`package_json`})(Os||={});function ks(e){let t=[];for(let n of e.sort(As))(t.length===0||t[0].detected.accuracy===n.detected.accuracy)&&t.push(n);return t}x(ks,`filterByRelevance`);function As(e,t){let n=t.detected.accuracy-e.detected.accuracy;if(n===0){let n=[X.BackendFramework,X.FrontendFramework,X.BuildTool,X.SSG];return n.indexOf(t.category)-n.indexOf(e.category)}return n}x(As,`sortFrameworksBasedOnAccuracy`);function js(e){let t=e.filter(x(function(e){return!!e},`isDetection`)).sort((e,t)=>e.accuracy>t.accuracy?-1:+(e.accuracy<t.accuracy));if(t.length!==0)return t.slice(1).reduce((e,t)=>(e.config=e.config??t.config,e.configName=e.configName??t.configName,e.package=e.package??t.package,e.packageJSON=e.packageJSON??t.packageJSON,e),t[0])}x(js,`mergeDetections`);var Z=class{static{x(this,`BaseFramework`)}project;path;id;name;category;detected;version;configFiles=[];npmDependencies=[];excludedNpmDependencies=[];plugins=[];staticAssetsDirectory;env={};dev;build={command:`npm run build`,directory:`dist`};logo;constructor(e,t){this.project=e,this.path=t,e.packageManager?.runCommand&&(this.build.command=`${e.packageManager.runCommand} build`)}setDetected(e,t){return this.detected={accuracy:e},typeof t==`string`?this.detected.config=t:this.detected.package=t,this}async getVersionFromNodeModules(e){if(this.project.fs.getEnvironment()!==`browser`)try{let t=await this.project.fs.findUp(this.project.fs.join(`node_modules`,e,`package.json`),{cwd:this.path||this.project.baseDirectory,stopAt:this.project.root});if(t){let{version:e}=await this.project.fs.readJSON(t);if(typeof e==`string`)return(0,ps.parse)(e)||void 0}}catch{}}async npmDependenciesUsed(e){let t={...e.dependencies??{},...e.devDependencies??{}},n=Object.keys(t).find(e=>this.npmDependencies.includes(e));if(!Object.keys(t).some(e=>this.excludedNpmDependencies.includes(e))&&n!=null){let e=await this.getVersionFromNodeModules(n);if(e)return{name:n,version:e,versionAccuracy:Os.NodeModules};let r=t[n],i=(0,ps.parse)(r);if(i)return{name:n,version:i,versionAccuracy:Os.PackageJSONPinned};let a=(0,ps.parse)((0,ps.coerce)(r))||void 0;return a?{name:n,version:a,versionAccuracy:Os.PackageJSON}:{name:n,version:void 0,versionAccuracy:void 0}}}async detectNpmDependency(){if(this.npmDependencies.length){let e=this.path||this.project.baseDirectory,t=await this.project.getPackageJSON(e),n=await this.npmDependenciesUsed(t);if(n)return this.version=n.version,{accuracy:this.project.fs.join(e,`package.json`)===t.pkgPath?Ds.NPM:Ds.NPMHoisted,package:n,packageJSON:t}}}async detectConfigFile(e){if(e.length){let t=await this.project.fs.findUp(e,{cwd:this.path||this.project.baseDirectory,stopAt:this.project.root});if(t)return{accuracy:this.npmDependencies.length===0?Ds.ConfigOnly:Ds.Config,config:t,configName:this.project.fs.basename(t)}}}async detect(){let e=await this.detectNpmDependency(),t=await this.detectConfigFile(this.configFiles??[]);if(this.detected=js([this.detected?.accuracy===Ds.Forced?this.detected:void 0,e,t]),this.detected)return this}getDevCommands(){if(this.dev?.command===void 0)return[];let e=Ts(this.dev.command,this.detected?.packageJSON?.scripts);return e.length>0?e.map(e=>this.project.getNpmScriptCommand(e)):[this.dev.command]}getBuildCommands(){let e=Es(this.build.command,this.detected?.packageJSON?.scripts);return e.length>0?e.map(e=>this.project.getNpmScriptCommand(e)):[this.build.command]}toJSON(){return{id:this.id,name:this.name,package:{name:this.detected?.package?.name||this.npmDependencies?.[0],version:this.detected?.package?.version?.raw||`unknown`,versionAccuracy:this.detected?.package?.versionAccuracy},category:this.category,dev:{commands:this.getDevCommands(),port:this.dev?.port,pollingStrategies:this.dev?.pollingStrategies},build:{commands:[this.build.command],directory:this.build.directory},staticAssetsDirectory:this.staticAssetsDirectory,env:this.env,logo:this.logo?Object.entries(this.logo).reduce((e,[t,n])=>({...e,[t]:`https://framework-info.netlify.app${n}`}),{}):void 0,plugins:this.plugins}}},Ms=class extends Z{static{x(this,`Analog`)}id=`analog`;name=`Analog`;configFiles=[];npmDependencies=[`@analogjs/platform`];category=X.SSG;dev={port:5173,command:`ng serve`,pollingStrategies:[{name:`TCP`}]};build={command:`ng build --prod`,directory:`dist/analog/public`};logo={default:`/logos/analog/default.svg`,light:`/logos/analog/default.svg`,dark:`/logos/analog/default.svg`}},Ns=T(Pr(),1),Ps=class extends Z{static{x(this,`Angular`)}id=`angular`;name=`Angular`;configFiles=[`angular.json`];npmDependencies=[`@angular/cli`];excludedNpmDependencies=[`@analogjs/platform`];category=X.FrontendFramework;dev={port:4200,command:`ng serve`,pollingStrategies:[{name:`TCP`}]};build={command:`ng build --prod`,directory:`dist/`};logo={default:`/logos/angular/default.svg`,light:`/logos/angular/default.svg`,dark:`/logos/angular/default.svg`};async detect(){if(await super.detect(),this.detected){if(this.version&&(0,Ns.gte)(this.version,`17.0.0-rc`)&&!process.env.NETLIFY_ANGULAR_PLUGIN_SKIP){this.plugins.push(`@netlify/angular-runtime`);let e=await this.project.fs.gracefullyReadFile(`angular.json`);if(e){let{projects:t,defaultProject:n}=JSON.parse(e),r=t[n??Object.keys(t)[0]],i=r?.architect?.build?.options?.outputPath;if(i){let e=r?.architect?.build?.builder?.endsWith(`:application`);this.build.directory=e?this.project.fs.join(i,`browser`):i}}}return this}}},Fs=class extends Z{static{x(this,`Assemble`)}id=`assemble`;name=`Assemble`;npmDependencies=[`assemble`];category=X.SSG;build={command:`grunt build`,directory:`dist`};logo={default:`/logos/assemble/default.png`,light:`/logos/assemble/default.png`,dark:`/logos/assemble/default.png`}},Is=T(Pr(),1),Ls=class extends Z{static{x(this,`Astro`)}id=`astro`;name=`Astro`;configFiles=[`astro.config.mjs`];npmDependencies=[`astro`];category=X.SSG;staticAssetsDirectory=`public`;dev={port:4321,command:`astro dev`,pollingStrategies:[{name:`TCP`}]};build={command:`astro build`,directory:`dist`};logo={default:`/logos/astro/light.svg`,light:`/logos/astro/light.svg`,dark:`/logos/astro/dark.svg`};async detect(){if(await super.detect(),this.detected)return this.version&&(0,Is.lt)(this.version,`3.0.0`)&&(this.dev.port=3e3),this}},Rs=class extends Z{static{x(this,`Blitz`)}id=`blitz`;name=`Blitz.js`;npmDependencies=[`blitz`];category=X.SSG;dev={command:`blitz dev`,port:3e3,pollingStrategies:[{name:`TCP`}]};build={command:`blitz build`,directory:`out`};logo={default:`/logos/blitz/light.svg`,light:`/logos/blitz/light.svg`,dark:`/logos/blitz/dark.svg`}},zs=class extends Z{static{x(this,`Brunch`)}id=`brunch`;name=`Brunch`;npmDependencies=[`brunch`];configFiles=[`brunch-config.js`];category=X.BuildTool;dev={command:`brunch watch --server`,port:3333,pollingStrategies:[{name:`TCP`}]};build={command:`brunch build`,directory:`public`};logo={default:`/logos/brunch/default.svg`,light:`/logos/brunch/default.svg`,dark:`/logos/brunch/default.svg`}},Bs=class extends Z{static{x(this,`Cecil`)}id=`cecil`;name=`Cecil`;configFiles=[`config.yml`];category=X.SSG;dev={command:`cecil serve`,port:8e3,pollingStrategies:[{name:`TCP`}]};build={command:`cecil build`,directory:`_site`};logo={default:`/logos/cecil/default.svg`,light:`/logos/cecil/default.svg`,dark:`/logos/cecil/default.svg`}},Vs=class extends Z{static{x(this,`DocPad`)}id=`docpad`;name=`DocPad`;npmDependencies=[`docpad`];category=X.SSG;dev={command:`docpad run`,port:9778,pollingStrategies:[{name:`TCP`}]};build={command:`docpad generate`,directory:`out`}},Hs=class extends Z{static{x(this,`Docusaurus`)}id=`docusaurus`;name=`Docusaurus`;configFiles=[`docusaurus.config.js`,`siteConfig.js`];npmDependencies=[`@docusaurus/core`,`docusaurus`];category=X.SSG;staticAssetsDirectory=`static`;dev={command:`docusaurus start`,port:3e3,pollingStrategies:[{name:`TCP`}]};build={command:`docusaurus build`,directory:`build`};logo={default:`/logos/docusaurus/default.svg`,light:`/logos/docusaurus/default.svg`,dark:`/logos/docusaurus/default.svg`};env={BROWSER:`none`};async detect(){if(await super.detect(),this.detected)return this.isV1(this.detected)&&(this.build.command=`docusaurus-build`,this.build.directory=`build/<project-name>`,this.dev.command=`docusaurus-start`),this}isV1(e){return e.config?.endsWith(`siteConfig.js`)||e.package?.name===`docusaurus`}},Us=class extends Z{static{x(this,`Eleventy`)}id=`eleventy`;name=`Eleventy`;configFiles=[`.eleventy.js`,`eleventy.config.js`,`eleventy.config.cjs`];npmDependencies=[`@11ty/eleventy`];category=X.SSG;dev={command:`eleventy --serve`,port:8080,pollingStrategies:[{name:`TCP`}]};build={command:`eleventy`,directory:`_site`};logo={default:`/logos/eleventy/default.svg`,light:`/logos/eleventy/light.svg`,dark:`/logos/eleventy/dark.svg`}},Ws=class extends Z{static{x(this,`Ember`)}id=`ember`;name=`Ember.js`;configFiles=[`ember-cli-build.js`];npmDependencies=[`ember-cli`];category=X.FrontendFramework;dev={command:`ember serve`,port:4200,pollingStrategies:[{name:`TCP`}]};build={command:`ember build`,directory:`dist`};logo={default:`/logos/ember/default.svg`,light:`/logos/ember/light.svg`,dark:`/logos/ember/dark.svg`}},Gs=class extends Z{static{x(this,`Expo`)}id=`expo`;name=`Expo`;configFiles=[`app.json`];npmDependencies=[`expo`];category=X.FrontendFramework;dev={command:`expo start --web`,port:19006,pollingStrategies:[{name:`TCP`}]};build={command:`expo export -p web`,directory:`dist`};logo={default:`/logos/expo/default.svg`,light:`/logos/expo/light.svg`,dark:`/logos/expo/dark.svg`}},Ks=T(Pr(),1),qs=class extends Z{static{x(this,`Gatsby`)}id=`gatsby`;name=`Gatsby`;configFiles=[`gatsby-config.js`,`gatsby-config.ts`];npmDependencies=[`gatsby`];category=X.SSG;staticAssetsDirectory=`static`;dev={command:`gatsby develop`,port:8e3,pollingStrategies:[{name:`TCP`}]};build={command:`gatsby build`,directory:`public`};logo={default:`/logos/gatsby/default.svg`,light:`/logos/gatsby/light.svg`,dark:`/logos/gatsby/dark.svg`};env={GATSBY_LOGGER:`yurnalist`,GATSBY_PRECOMPILE_DEVELOP_FUNCTIONS:`true`,AWS_LAMBDA_JS_RUNTIME:`nodejs14.x`,NODE_VERSION:`14`};async detect(){if(await super.detect(),this.detected){this.version&&(0,Ks.gte)(this.version,`5.0.0`)&&(this.env.NODE_VERSION=`18`,this.env.AWS_LAMBDA_JS_RUNTIME=`nodejs18.x`);let e=await this.project.getCurrentNodeVersion();return e&&(0,Ks.gte)(e,`12.13.0`)&&!process.env.NETLIFY_SKIP_GATSBY_BUILD_PLUGIN&&this.plugins.push(`@netlify/plugin-gatsby`),this}}},Js=class extends Z{static{x(this,`Gridsome`)}id=`gridsome`;name=`Gridsome`;configFiles=[`gridsome.config.js`];npmDependencies=[`gridsome`];category=X.SSG;dev={command:`gridsome develop`,port:8080,pollingStrategies:[{name:`TCP`}]};build={command:`gridsome build`,directory:`dist`};logo={default:`/logos/gridsome/default.svg`,light:`/logos/gridsome/light.svg`,dark:`/logos/gridsome/dark.svg`}},Ys=class extends Z{static{x(this,`Grunt`)}id=`grunt`;name=`Grunt`;npmDependencies=[`grunt`];category=X.BuildTool;build={command:`grunt build`,directory:`dist`};logo={default:`/logos/grunt/default.svg`,light:`/logos/grunt/default.svg`,dark:`/logos/grunt/default.svg`}},Xs=class extends Z{static{x(this,`Gulp`)}id=`gulp`;name=`gulp.js`;npmDependencies=[`gulp`];category=X.BuildTool;build={command:`gulp build`,directory:`dist`};logo={default:`/logos/gulp/default.svg`,light:`/logos/gulp/default.svg`,dark:`/logos/gulp/default.svg`}},Zs=class extends Z{static{x(this,`Harp`)}id=`harp`;name=`Harp`;npmDependencies=[`harp`];category=X.SSG;dev={command:`harp server`,port:9e3,pollingStrategies:[{name:`TCP`}]};build={command:`harp compile`,directory:`www`};logo={default:`/logos/harp/default.svg`,light:`/logos/harp/light.svg`,dark:`/logos/harp/default.svg`}},Qs=class extends Z{static{x(this,`Hexo`)}id=`hexo`;name=`Hexo`;configFiles=[`_config.yml`];npmDependencies=[`hexo`];category=X.SSG;dev={command:`hexo server`,port:4e3,pollingStrategies:[{name:`TCP`}]};build={command:`hexo generate`,directory:`public`};logo={default:`/logos/hexo/default.svg`,light:`/logos/hexo/light.svg`,dark:`/logos/hexo/dark.svg`}},$s=class extends Z{static{x(this,`Hono`)}id=`hono`;name=`Hono`;npmDependencies=[`hono`];category=X.BackendFramework;logo={default:`/logos/hono/default.svg`,light:`/logos/hono/default.svg`,dark:`/logos/hono/default.svg`}},ec=class extends Z{static{x(this,`Hugo`)}id=`hugo`;name=`Hugo`;configFiles=[`config.json`,`config.toml`,`config.yaml`,`hugo.toml`];category=X.SSG;dev={command:`hugo server -w`,port:1313,pollingStrategies:[{name:`TCP`}]};build={command:`hugo`,directory:`public`};logo={default:`/logos/hugo/default.svg`,light:`/logos/hugo/default.svg`,dark:`/logos/hugo/default.svg`}},tc=[`remix.config.js`],nc={command:`remix dev --manual -c "netlify dev"`},rc={command:`remix build`,directory:`public`},ic=[`vite.config.js`,`vite.config.mjs`,`vite.config.cjs`,`vite.config.ts`,`vite.config.mts`,`vite.config.cts`],ac={command:`shopify hydrogen dev`,port:5173},oc={command:`remix vite:build`,directory:`dist/client`},sc=class extends Z{static{x(this,`Hydrogen`)}id=`hydrogen`;name=`Hydrogen`;npmDependencies=[`@shopify/hydrogen`];configFiles=[...ic,...tc];category=X.SSG;logo={default:`/logos/hydrogen/default.svg`,light:`/logos/hydrogen/default.svg`,dark:`/logos/hydrogen/default.svg`};async detect(){if(await super.detect(),this.detected)return this.detected.configName&&ic.includes(this.detected.configName)?(this.dev=ac,this.build=oc,this):(this.dev=nc,this.build=rc,this)}},cc=class extends Z{static{x(this,`Jekyll`)}id=`jekyll`;name=`Jekyll`;configFiles=[`_config.yml`,`_config.yaml`,`_config.toml`];category=X.SSG;dev={command:`bundle exec jekyll serve -w`,port:4e3,pollingStrategies:[{name:`TCP`}]};build={command:`bundle exec jekyll build`,directory:`_site`};logo={default:`/logos/jekyll/dark.svg`,light:`/logos/jekyll/light.svg`,dark:`/logos/jekyll/dark.svg`}},lc=class extends Z{static{x(this,`Mastra`)}id=`mastra`;name=`Mastra`;npmDependencies=[`@mastra/deployer-netlify`];category=X.BackendFramework;dev={command:`mastra dev`,port:4111};build={command:`mastra build`,directory:`dist`};logo={default:`/logos/mastra/light.svg`,light:`/logos/mastra/light.svg`,dark:`/logos/mastra/dark.svg`}},uc=class extends Z{static{x(this,`Metalsmith`)}id=`metalsmith`;name=`Metalsmith`;npmDependencies=[`metalsmith`];category=X.SSG;build={command:`metalsmith`,directory:`build`};logo={default:`/logos/metalsmith/default.svg`,light:`/logos/metalsmith/default.svg`,dark:`/logos/metalsmith/default.svg`}},dc=class extends Z{static{x(this,`Middleman`)}id=`middleman`;name=`Middleman`;configFiles=[`config.rb`];category=X.SSG;dev={command:`bundle exec middleman server`,port:4567,pollingStrategies:[{name:`TCP`}]};build={command:`bundle exec middleman build`,directory:`build`};logo={default:`/logos/middleman/default.svg`,light:`/logos/middleman/default.svg`,dark:`/logos/middleman/default.svg`}},fc=T(Pr(),1),pc=class extends Z{static{x(this,`Next`)}id=`next`;name=`Next.js`;category=X.SSG;npmDependencies=[`next`];excludedNpmDependencies=[`@nrwl/next`];configFiles=[`next.config.js`,`next.config.mjs`,`next.config.ts`];dev={command:`next`,port:3e3,pollingStrategies:[{name:`TCP`}]};build={command:`next build`,directory:`.next`};logo={default:`/logos/nextjs/light.svg`,light:`/logos/nextjs/light.svg`,dark:`/logos/nextjs/dark.svg`};async detect(){if(await super.detect(),this.detected){let e=await this.project.getCurrentNodeVersion();return e&&(0,fc.gte)(e,`10.13.0`)&&!process.env.NETLIFY_NEXT_PLUGIN_SKIP&&this.plugins.push(`@netlify/plugin-nextjs`),this}}},mc=class extends Z{static{x(this,`Nuxt`)}id=`nuxt`;name=`Nuxt`;npmDependencies=[`nuxt`,`nuxt-edge`,`nuxt3`];category=X.SSG;dev={command:`nuxt dev`,port:3e3,pollingStrategies:[{name:`TCP`}],clearPublishDirectory:!0};build={command:`nuxt build`,directory:`dist`};logo={default:`/logos/nuxt/default.svg`,light:`/logos/nuxt/light.svg`,dark:`/logos/nuxt/dark.svg`};async detect(){if(await super.detect(),this.detected)return this.detected.package?.version?.major!==void 0&&this.detected.package.version.major<3&&(this.build.command=`nuxt generate`,this.dev.command=`nuxt`),this}},hc=class extends Z{static{x(this,`Observable`)}id=`observable`;name=`Observable Framework`;npmDependencies=[`@observablehq/framework`];category=X.SSG;dev={command:`observable preview`,port:3e3,pollingStrategies:[{name:`TCP`}]};build={command:`observable build`,directory:`dist`};logo={default:`/logos/observable/default.svg`,light:`/logos/observable/default.svg`,dark:`/logos/observable/default.svg`}},gc=class extends Z{static{x(this,`Parcel`)}id=`parcel`;name=`Parcel`;npmDependencies=[`parcel-bundler`,`parcel`];category=X.BuildTool;dev={command:`parcel`,port:1234,pollingStrategies:[{name:`TCP`}]};build={command:`parcel build`,directory:`dist`};logo={default:`/logos/parcel/default.svg`,light:`/logos/parcel/default.svg`,dark:`/logos/parcel/default.svg`}},_c=class extends Z{static{x(this,`Phenomic`)}id=`phenomic`;name=`Phenomic`;npmDependencies=[`@phenomic/core`];category=X.SSG;dev={command:`phenomic start`,port:3333,pollingStrategies:[{name:`TCP`}]};build={command:`phenomic build`,directory:`public`};logo={default:`/logos/phenomic/default.svg`,light:`/logos/phenomic/default.svg`,dark:`/logos/phenomic/default.svg`}},vc=class extends Z{static{x(this,`Quasar`)}id=`quasar`;name=`Quasar`;npmDependencies=[`@quasar/app`,`quasar-cli`];category=X.FrontendFramework;dev={command:`quasar dev -p 8081`,port:8081,pollingStrategies:[{name:`TCP`}]};build={command:`quasar build`,directory:`dist/spa`};logo={default:`/logos/quasar/default.svg`,light:`/logos/quasar/default.svg`,dark:`/logos/quasar/default.svg`};async detect(){if(await super.detect(),this.detected)return this.isV017(this.detected)&&(this.name=`Quasar v0.17`,this.build.directory=`.quasar`,this.dev.command=`quasar dev -p 8080`,this.dev.port=8080),this}isV017(e){return e.package?.name===`quasar-cli`}},yc=class extends Z{static{x(this,`Qwik`)}id=`qwik`;name=`Qwik`;npmDependencies=[`@builder.io/qwik`];category=X.SSG;dev={command:`vite`,port:5173,pollingStrategies:[{name:`TCP`}]};logo={default:`/logos/qwik/default.svg`,light:`/logos/qwik/default.svg`,dark:`/logos/qwik/default.svg`}},bc=T(Pr(),1),xc=class extends Z{static{x(this,`ReactRouter`)}id=`react-router`;name=`React Router`;npmDependencies=[`@react-router/dev`];excludedNpmDependencies=[`@shopify/hydrogen`];configFiles=[`react-router.config.ts`,`react-router.config.js`];category=X.SSG;dev={port:5173,command:`react-router dev`};build={command:`react-router build`,directory:`build/client`};logo={default:`/logos/react-router/light.svg`,light:`/logos/react-router/light.svg`,dark:`/logos/react-router/dark.svg`};async detect(){if(await super.detect(),this.detected)return this.version&&(0,bc.lt)(this.version,`7.0.0`)?void 0:this}},Sc=class extends Z{static{x(this,`ReactStatic`)}id=`react-static`;name=`React Static`;npmDependencies=[`react-static`];configFiles=[`static.config.js`];category=X.SSG;dev={command:`react-static start`,port:3e3,pollingStrategies:[{name:`TCP`}]};build={command:`react-static build`,directory:`dist`};logo={default:`/logos/react-static/default.png`,light:`/logos/react-static/default.png`,dark:`/logos/react-static/default.png`}},Cc=class extends Z{static{x(this,`CreateReactApp`)}id=`create-react-app`;name=`Create React App`;npmDependencies=[`react-scripts`];category=X.FrontendFramework;staticAssetsDirectory=`public`;dev={command:`react-scripts start`,port:3e3,pollingStrategies:[{name:`TCP`}]};build={command:`react-scripts build`,directory:`build`};logo={default:`/logos/create-react-app/default.svg`,light:`/logos/create-react-app/default.svg`,dark:`/logos/create-react-app/default.svg`};env={BROWSER:`none`,PORT:`3000`}},wc=class extends Z{static{x(this,`RedwoodJS`)}id=`redwoodjs`;name=`RedwoodJS`;npmDependencies=[`@redwoodjs/core`];configFiles=[`redwood.toml`];category=X.SSG;staticAssetsDirectory=`public`;dev={command:`yarn rw dev`,port:8910,pollingStrategies:[{name:`TCP`}]};build={command:`rw deploy netlify`,directory:`web/dist`};env={AWS_LAMBDA_JS_RUNTIME:`nodejs20.x`,NODE_VERSION:`20`};logo={default:`/logos/redwoodjs/default.svg`,light:`/logos/redwoodjs/default.svg`,dark:`/logos/redwoodjs/default.svg`}},Tc=[`remix.config.js`],Ec={command:`remix watch`},Dc={command:`remix build`,directory:`public`},Oc=[`vite.config.js`,`vite.config.mjs`,`vite.config.cjs`,`vite.config.ts`,`vite.config.mts`,`vite.config.cts`],kc={command:`remix vite:dev`,port:5173},Ac={command:`remix vite:build`,directory:`build/client`},jc=class extends Z{static{x(this,`Remix`)}id=`remix`;name=`Remix`;npmDependencies=[`@remix-run/react`,`@remix-run/dev`,`@remix-run/server-runtime`,`@netlify/remix-adapter`,`@netlify/remix-edge-adapter`,`@netlify/remix-runtime`,`remix`,`@remix-run/netlify`,`@remix-run/netlify-edge`];excludedNpmDependencies=[`@shopify/hydrogen`];configFiles=[...Oc,...Tc];category=X.SSG;logo={default:`/logos/remix/default.svg`,light:`/logos/remix/light.svg`,dark:`/logos/remix/dark.svg`};async detect(){if(await super.detect(),this.detected)return this.detected.configName&&Oc.includes(this.detected.configName)?(this.dev=kc,this.build=Ac,this):(this.dev=Ec,this.build=Dc,this)}},Mc=class extends Z{static{x(this,`Roots`)}id=`roots`;name=`Roots`;npmDependencies=[`roots`];category=X.SSG;dev={command:`roots watch`,port:1111,pollingStrategies:[{name:`TCP`}]};build={command:`roots compile`,directory:`public`};logo={default:`/logos/roots/default.svg`,light:`/logos/roots/default.svg`,dark:`/logos/roots/default.svg`}},Nc=class extends Z{static{x(this,`Sapper`)}id=`sapper`;name=`Sapper`;npmDependencies=[`sapper`];category=X.FrontendFramework;staticAssetsDirectory=`static`;dev={command:`sapper dev`,port:3e3,pollingStrategies:[{name:`TCP`}]};build={command:`sapper export`,directory:`__sapper__/export`};logo={default:`/logos/sapper/default.svg`,light:`/logos/sapper/default.svg`,dark:`/logos/sapper/default.svg`}},Pc=class extends Z{static{x(this,`SolidJs`)}id=`solid-js`;name=`SolidJS`;npmDependencies=[`solid-js`];excludedNpmDependencies=[`solid-start`,`@solidjs/start`,`@tanstack/solid-start`];category=X.SSG;dev={command:`vite dev`,port:3e3,pollingStrategies:[{name:`TCP`}]};build={command:`vite build`,directory:`dist`};logo={default:`/logos/solid-js/default.svg`,light:`/logos/solid-js/default.svg`,dark:`/logos/solid-js/dark.svg`}},Fc=`solid-start`,Ic={command:`solid-start dev`,port:3e3},Lc={command:`solid-start build`,directory:`netlify`},Rc=class extends Z{static{x(this,`SolidStart`)}id=`solid-start`;name=`Solid Start`;npmDependencies=[`solid-start`,`@solidjs/start`];category=X.SSG;dev={command:`vinxi dev`,port:3e3};build={command:`vinxi build`,directory:`dist`};logo={default:`/logos/solid-start/default.svg`,light:`/logos/solid-start/default.svg`,dark:`/logos/solid-start/dark.svg`};async detect(){if(await super.detect(),this.detected)return this.detected.package?.name===Fc?(this.dev=Ic,this.build=Lc,this):this}},zc=class extends Z{static{x(this,`Stencil`)}id=`stencil`;name=`Stencil`;npmDependencies=[`@stencil/core`];configFiles=[`stencil.config.ts`];category=X.SSG;dev={command:`stencil build --dev --watch --serve`,port:3333,pollingStrategies:[{name:`TCP`}]};build={command:`stencil build`,directory:`www`};logo={default:`/logos/stencil/light.svg`,light:`/logos/stencil/light.svg`,dark:`/logos/stencil/dark.svg`};env={BROWSER:`none`,PORT:`3000`}},Bc=class extends Z{static{x(this,`SvelteKit`)}id=`svelte-kit`;name=`SvelteKit`;npmDependencies=[`@sveltejs/kit`];category=X.FrontendFramework;staticAssetsDirectory=`static`;dev={command:`vite dev`,port:5173,pollingStrategies:[{name:`TCP`}]};build={command:`vite build`,directory:`build`};logo={default:`/logos/svelte-kit/default.svg`,light:`/logos/svelte-kit/default.svg`,dark:`/logos/svelte-kit/default.svg`}},Vc=class extends Z{static{x(this,`Svelte`)}id=`svelte`;name=`Svelte`;npmDependencies=[`svelte`];excludedNpmDependencies=[`sapper`,`@sveltejs/kit`];category=X.FrontendFramework;staticAssetsDirectory=`static`;dev={command:`npm run dev`,port:5e3,pollingStrategies:[{name:`TCP`}]};build={command:`npm run build`,directory:`public`};logo={default:`/logos/svelte-kit/default.svg`,light:`/logos/svelte-kit/default.svg`,dark:`/logos/svelte-kit/default.svg`}},Hc=class extends Z{static{x(this,`TanStackRouter`)}id=`tanstack-router`;name=`TanStack Router`;npmDependencies=[`@tanstack/react-router`];excludedNpmDependencies=[`@tanstack/start`,`@tanstack/react-start`,`@tanstack/solid-start`];category=X.SSG;dev={command:`vite dev`,port:3e3,pollingStrategies:[{name:`TCP`}]};build={command:`vite build`,directory:`dist`};logo={default:`/logos/tanstack-router/default.png`,light:`/logos/tanstack-router/default.png`,dark:`/logos/tanstack-router/default.png`}},Uc=T(Pr(),1),Wc=class extends Z{static{x(this,`TanStackStart`)}id=`tanstack-start`;name=`TanStack Start`;npmDependencies=[`@tanstack/start`,`@tanstack/react-start`,`@tanstack/solid-start`];category=X.SSG;dev={command:`vite dev`,port:3e3,pollingStrategies:[{name:`TCP`}]};build={command:`vite build`,directory:`dist/client`};logo={default:`/logos/tanstack-start/default.png`,light:`/logos/tanstack-start/default.png`,dark:`/logos/tanstack-start/default.png`};async detect(){if(await super.detect(),this.detected)return this.version&&(0,Uc.lt)(this.version,`1.121.0`)&&(this.dev.command=`vinxi dev`,this.build.command=`vinxi build`),this.version&&(0,Uc.lt)(this.version,`1.132.0`)&&(this.build.directory=`dist`),this}},Gc=class extends Z{static{x(this,`Vike`)}id=`vike`;name=`Vike`;npmDependencies=[`vike`];category=X.SSG;dev={command:`vike dev`,port:3e3};build={command:`vike build`,directory:`dist/client`};logo={default:`/logos/vike/light.svg`,light:`/logos/vite/light.svg`,dark:`/logos/vite/dark.svg`}},Kc=class extends Z{static{x(this,`Vite`)}id=`vite`;name=`Vite`;npmDependencies=[`vite`];excludedNpmDependencies=[`@remix-run/react`,`@remix-run/dev`,`@remix-run/server-runtime`,`@shopify/hydrogen`,`@builder.io/qwik`,`solid-start`,`@solidjs/start`,`solid-js`,`@tanstack/react-router`,`@tanstack/start`,`@sveltejs/kit`,`@analogjs/platform`,`@react-router/dev`,`vike`];category=X.BuildTool;dev={command:`vite`,port:5173,pollingStrategies:[{name:`TCP`}]};build={command:`vite build`,directory:`dist`};logo={default:`/logos/vite/default.svg`,light:`/logos/vite/default.svg`,dark:`/logos/vite/default.svg`}},qc=class extends Z{static{x(this,`VitePress`)}id=`vitepress`;name=`VitePress`;npmDependencies=[`vitepress`];category=X.SSG;dev={command:`vitepress dev docs`,port:5173,pollingStrategies:[{name:`TCP`}]};build={command:`vitepress build docs`,directory:`docs/.vitepress/dist`};logo={default:`/logos/vitepress/default.svg`,light:`/logos/vitepress/default.svg`,dark:`/logos/vitepress/default.svg`}},Jc=class extends Z{static{x(this,`Vue`)}id=`vue`;name=`Vue.js`;npmDependencies=[`@vue/cli-service`];category=X.FrontendFramework;dev={command:`vue-cli-service serve`,port:8080,pollingStrategies:[{name:`TCP`}]};build={command:`vue-cli-service build`,directory:`dist`};logo={default:`/logos/vue/default.svg`,light:`/logos/vue/default.svg`,dark:`/logos/vue/default.svg`}},Yc=class extends Z{static{x(this,`VuePress`)}id=`vuepress`;name=`VuePress`;npmDependencies=[`vuepress`];category=X.SSG;dev={command:`vuepress dev`,port:8080,pollingStrategies:[{name:`TCP`}]};build={command:`vuepress build`,directory:`.vuepress/dist`};logo={default:`/logos/vuepress/default.svg`,light:`/logos/vuepress/default.svg`,dark:`/logos/vuepress/default.svg`}},Xc=class extends Z{static{x(this,`Waku`)}id=`waku`;name=`Waku`;npmDependencies=[`waku`];configFiles=[`waku.config.ts`,`waku.config.js`];category=X.SSG;dev={command:`waku dev`,port:3e3};build={command:`waku build`,directory:`dist/public`};logo={default:`/logos/waku/light.svg`,light:`/logos/waku/light.svg`,dark:`/logos/waku/dark.svg`}},Zc=class extends Z{static{x(this,`Wintersmith`)}id=`wintersmith`;name=`Wintersmith`;npmDependencies=[`wintersmith`];configFiles=[`config.json`];category=X.SSG;dev={command:`wintersmith preview`,port:8080,pollingStrategies:[{name:`TCP`}]};build={command:`wintersmith build`,directory:`build`};logo={default:`/logos/wintersmith/default.svg`,light:`/logos/wintersmith/default.svg`,dark:`/logos/wintersmith/default.svg`}},Qc=class extends Z{static{x(this,`WMR`)}id=`wmr`;name=`WMR`;npmDependencies=[`wmr`];category=X.BuildTool;dev={command:`wmr`,port:8080,pollingStrategies:[{name:`TCP`}]};build={command:`wmr build`,directory:`dist`};logo={default:`/logos/wmr/default.svg`,light:`/logos/wmr/default.svg`,dark:`/logos/wmr/default.svg`}},$c=[Ls,Hs,Us,qs,Js,Qs,ec,sc,cc,dc,pc,Rs,mc,_c,yc,xc,Sc,wc,jc,Pc,Rc,zc,Hc,Wc,Yc,Fs,Vs,Zs,uc,Mc,Zc,Bs,class extends Z{static{x(this,`Zola`)}id=`zola`;name=`Zola`;configFiles=[`config.toml`];category=X.SSG;dev={command:`zola serve`,port:1111,pollingStrategies:[{name:`TCP`}]};build={command:`zola build`,directory:`public`}},hc,Ms,Gc,Xc,qc,$s,lc,Ps,Cc,Ws,Gs,vc,Nc,Vc,Bc,Jc,zs,gc,Xs,Ys,Kc,Qc];async function el(e,t){let n=$c.map(e=>new e(t)),r=n.find(({id:t})=>t===e);if(r){r.detected={accuracy:Ds.Forced};let t=await r.detect();if(t)return t;throw Error(`Forced framework "${e}" was not detected.`)}let i=n.map(({id:e})=>e).sort().join(`, `);throw Error(`Invalid framework "${e}". It should be one of: ${i}`)}x(el,`getFramework`);var tl=T(Pr(),1),nl=class{static{x(this,`BaseBuildTool`)}project;id;name;version;configFiles=[];runFromRoot;logo;constructor(e){this.project=e}async detect(){let e=await this.project.fs.findUp(this.configFiles,{cwd:this.project.baseDirectory,stopAt:this.project.root});if(e){let t=await this.project.getPackageJSON(this.project.fs.dirname(e));return this.version=t.devDependencies?.[this.id],this}}toJSON(){return{id:this.id,name:this.name,version:this.version,logo:this.logo?Object.entries(this.logo).reduce((e,[t,n])=>({...e,[t]:`https://framework-info.netlify.app${n}`}),{}):void 0}}},rl=class extends nl{static{x(this,`Bazel`)}id=`bazel`;name=`Bazel`;configFiles=[`.bazelrc`,`WORKSPACE`,`WORKSPACE.bazel`,`BUILD.bazel`];async detect(){if(await this.project.fs.findUp(this.configFiles,{cwd:this.project.baseDirectory,stopAt:this.project.root}))return this}},il=class extends nl{static{x(this,`Buck`)}id=`buck`;name=`Buck`;configFiles=[`.buckconfig`,`BUCK`];async detect(){if(await this.project.fs.findUp(this.configFiles,{cwd:this.project.baseDirectory,stopAt:this.project.root}))return this}},al=class extends nl{static{x(this,`Gradle`)}id=`gradle`;name=`Gradle`;configFiles=[`build.gradle`];async detect(){if(await this.project.fs.findUp(this.configFiles,{cwd:this.project.baseDirectory,stopAt:this.project.root}))return this}},ol=class extends nl{static{x(this,`Lage`)}id=`lage`;name=`Lage`;configFiles=[`lage.config.js`]},sl=class extends nl{static{x(this,`Lerna`)}id=`lerna`;name=`Lerna`;configFiles=[`lerna.json`];logo={default:`/logos/lerna/light.svg`,light:`/logos/lerna/light.svg`,dark:`/logos/lerna/dark.svg`}},cl=class extends nl{static{x(this,`Moon`)}id=`moon`;name=`MoonRepo`;configFiles=[`.moon`];async detect(){let e=await this.project.fs.findUp(this.configFiles,{cwd:this.project.baseDirectory,type:`directory`,stopAt:this.project.root});if(e){let t=await this.project.getPackageJSON(e);return this.version=t.devDependencies?.[this.id],this}}},ll=class extends nl{static{x(this,`Nix`)}id=`nix`;name=`Nix`;configFiles=[`default.nix`,`shell.nix`,`release.nix`];async detect(){if(await this.project.fs.findUp(this.configFiles,{cwd:this.project.baseDirectory,stopAt:this.project.root}))return this}},ul=T(Zi(),1),dl=x((e,t,n)=>{let r=e instanceof RegExp?fl(e,n):e,i=t instanceof RegExp?fl(t,n):t,a=r!==null&&i!=null&&pl(r,i,n);return a&&{start:a[0],end:a[1],pre:n.slice(0,a[0]),body:n.slice(a[0]+r.length,a[1]),post:n.slice(a[1]+i.length)}},`balanced`),fl=x((e,t)=>{let n=t.match(e);return n?n[0]:null},`maybeMatch`),pl=x((e,t,n)=>{let r,i,a,o,s,c=n.indexOf(e),l=n.indexOf(t,c+1),u=c;if(c>=0&&l>0){if(e===t)return[c,l];for(r=[],a=n.length;u>=0&&!s;){if(u===c)r.push(u),c=n.indexOf(e,u+1);else if(r.length===1){let e=r.pop();e!==void 0&&(s=[e,l])}else i=r.pop(),i!==void 0&&i<a&&(a=i,o=l),l=n.indexOf(t,u+1);u=c<l&&c>=0?c:l}r.length&&o!==void 0&&(s=[a,o])}return s},`range`),ml=`\0SLASH`+Math.random()+`\0`,hl=`\0OPEN`+Math.random()+`\0`,gl=`\0CLOSE`+Math.random()+`\0`,_l=`\0COMMA`+Math.random()+`\0`,vl=`\0PERIOD`+Math.random()+`\0`,yl=new RegExp(ml,`g`),bl=new RegExp(hl,`g`),xl=new RegExp(gl,`g`),Sl=new RegExp(_l,`g`),Cl=new RegExp(vl,`g`),wl=/\\\\/g,Tl=/\\{/g,El=/\\}/g,Dl=/\\,/g,Ol=/\\\./g,kl=1e5;function Al(e){return isNaN(e)?e.charCodeAt(0):parseInt(e,10)}x(Al,`numeric`);function jl(e){return e.replace(wl,ml).replace(Tl,hl).replace(El,gl).replace(Dl,_l).replace(Ol,vl)}x(jl,`escapeBraces`);function Ml(e){return e.replace(yl,`\\`).replace(bl,`{`).replace(xl,`}`).replace(Sl,`,`).replace(Cl,`.`)}x(Ml,`unescapeBraces`);function Nl(e){if(!e)return[``];let t=[],n=dl(`{`,`}`,e);if(!n)return e.split(`,`);let{pre:r,body:i,post:a}=n,o=r.split(`,`);o[o.length-1]+=`{`+i+`}`;let s=Nl(a);return a.length&&(o[o.length-1]+=s.shift(),o.push.apply(o,s)),t.push.apply(t,o),t}x(Nl,`parseCommaParts`);function Pl(e,t={}){if(!e)return[];let{max:n=kl}=t;return e.slice(0,2)===`{}`&&(e=`\\{\\}`+e.slice(2)),zl(jl(e),n,!0).map(Ml)}x(Pl,`expand`);function Fl(e){return`{`+e+`}`}x(Fl,`embrace`);function Il(e){return/^-?0\d/.test(e)}x(Il,`isPadded`);function Ll(e,t){return e<=t}x(Ll,`lte`);function Rl(e,t){return e>=t}x(Rl,`gte`);function zl(e,t,n){let r=[],i=dl(`{`,`}`,e);if(!i)return[e];let a=i.pre,o=i.post.length?zl(i.post,t,!1):[``];if(/\$$/.test(i.pre))for(let e=0;e<o.length&&e<t;e++){let t=a+`{`+i.body+`}`+o[e];r.push(t)}else{let s=/^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(i.body),c=/^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(i.body),l=s||c,u=i.body.indexOf(`,`)>=0;if(!l&&!u)return i.post.match(/,(?!,).*\}/)?(e=i.pre+`{`+i.body+gl+i.post,zl(e,t,!0)):[e];let d;if(l)d=i.body.split(/\.\./);else if(d=Nl(i.body),d.length===1&&d[0]!==void 0&&(d=zl(d[0],t,!1).map(Fl),d.length===1))return o.map(e=>i.pre+d[0]+e);let f;if(l&&d[0]!==void 0&&d[1]!==void 0){let e=Al(d[0]),t=Al(d[1]),n=Math.max(d[0].length,d[1].length),r=d.length===3&&d[2]!==void 0?Math.max(Math.abs(Al(d[2])),1):1,i=Ll;t<e&&(r*=-1,i=Rl);let a=d.some(Il);f=[];for(let o=e;i(o,t);o+=r){let e;if(c)e=String.fromCharCode(o),e===`\\`&&(e=``);else if(e=String(o),a){let t=n-e.length;if(t>0){let n=Array(t+1).join(`0`);e=o<0?`-`+n+e.slice(1):n+e}}f.push(e)}}else{f=[];for(let e=0;e<d.length;e++)f.push.apply(f,zl(d[e],t,!1))}for(let e=0;e<f.length;e++)for(let i=0;i<o.length&&r.length<t;i++){let t=a+f[e]+o[i];(!n||l||t)&&r.push(t)}}return r}x(zl,`expand_`);var Bl=1024*64,Vl=x(e=>{if(typeof e!=`string`)throw TypeError(`invalid pattern`);if(e.length>Bl)throw TypeError(`pattern is too long`)},`assertValidPattern`),Hl={"[:alnum:]":[`\\p{L}\\p{Nl}\\p{Nd}`,!0],"[:alpha:]":[`\\p{L}\\p{Nl}`,!0],"[:ascii:]":[`\\x00-\\x7f`,!1],"[:blank:]":[`\\p{Zs}\\t`,!0],"[:cntrl:]":[`\\p{Cc}`,!0],"[:digit:]":[`\\p{Nd}`,!0],"[:graph:]":[`\\p{Z}\\p{C}`,!0,!0],"[:lower:]":[`\\p{Ll}`,!0],"[:print:]":[`\\p{C}`,!0],"[:punct:]":[`\\p{P}`,!0],"[:space:]":[`\\p{Z}\\t\\r\\n\\v\\f`,!0],"[:upper:]":[`\\p{Lu}`,!0],"[:word:]":[`\\p{L}\\p{Nl}\\p{Nd}\\p{Pc}`,!0],"[:xdigit:]":[`A-Fa-f0-9`,!1]},Ul=x(e=>e.replace(/[[\]\\-]/g,`\\$&`),`braceEscape`),Wl=x(e=>e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,`\\$&`),`regexpEscape`),Gl=x(e=>e.join(``),`rangesToString`),Kl=x((e,t)=>{let n=t;if(e.charAt(n)!==`[`)throw Error(`not in a brace expression`);let r=[],i=[],a=n+1,o=!1,s=!1,c=!1,l=!1,u=n,d=``;WHILE:for(;a<e.length;){let t=e.charAt(a);if((t===`!`||t===`^`)&&a===n+1){l=!0,a++;continue}if(t===`]`&&o&&!c){u=a+1;break}if(o=!0,t===`\\`&&!c){c=!0,a++;continue}if(t===`[`&&!c){for(let[t,[o,c,l]]of Object.entries(Hl))if(e.startsWith(t,a)){if(d)return[`$.`,!1,e.length-n,!0];a+=t.length,l?i.push(o):r.push(o),s||=c;continue WHILE}}if(c=!1,d){t>d?r.push(Ul(d)+`-`+Ul(t)):t===d&&r.push(Ul(t)),d=``,a++;continue}if(e.startsWith(`-]`,a+1)){r.push(Ul(t+`-`)),a+=2;continue}if(e.startsWith(`-`,a+1)){d=t,a+=2;continue}r.push(Ul(t)),a++}if(u<a)return[``,!1,0,!1];if(!r.length&&!i.length)return[`$.`,!1,e.length-n,!0];if(i.length===0&&r.length===1&&/^\\?.$/.test(r[0])&&!l)return[Wl(r[0].length===2?r[0].slice(-1):r[0]),!1,u-n,!1];let f=`[`+(l?`^`:``)+Gl(r)+`]`,p=`[`+(l?``:`^`)+Gl(i)+`]`;return[r.length&&i.length?`(`+f+`|`+p+`)`:r.length?f:p,s,u-n,!0]},`parseClass`),ql=x((e,{windowsPathsNoEscape:t=!1,magicalBraces:n=!0}={})=>n?t?e.replace(/\[([^/\\])\]/g,`$1`):e.replace(/((?!\\).|^)\[([^/\\])\]/g,`$1$2`).replace(/\\([^/])/g,`$1`):t?e.replace(/\[([^/\\{}])\]/g,`$1`):e.replace(/((?!\\).|^)\[([^/\\{}])\]/g,`$1$2`).replace(/\\([^/{}])/g,`$1`),`unescape`),Jl,Yl=new Set([`!`,`?`,`+`,`*`,`@`]),Xl=x(e=>Yl.has(e),`isExtglobType`),Zl=x(e=>Xl(e.type),`isExtglobAST`),Ql=new Map([[`!`,[`@`]],[`?`,[`?`,`@`]],[`@`,[`@`]],[`*`,[`*`,`+`,`?`,`@`]],[`+`,[`+`,`@`]]]),$l=new Map([[`!`,[`?`]],[`@`,[`?`]],[`+`,[`?`,`*`]]]),eu=new Map([[`!`,[`?`,`@`]],[`?`,[`?`,`@`]],[`@`,[`?`,`@`]],[`*`,[`*`,`+`,`?`,`@`]],[`+`,[`+`,`@`,`?`,`*`]]]),tu=new Map([[`!`,new Map([[`!`,`@`]])],[`?`,new Map([[`*`,`*`],[`+`,`*`]])],[`@`,new Map([[`!`,`!`],[`?`,`?`],[`@`,`@`],[`*`,`*`],[`+`,`+`]])],[`+`,new Map([[`?`,`*`],[`*`,`*`]])]]),nu=`(?!(?:^|/)\\.\\.?(?:$|/))`,ru=`(?!\\.)`,iu=new Set([`[`,`.`]),au=new Set([`..`,`.`]),ou=new Set(`().*{}+?[]^$\\!`),su=x(e=>e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,`\\$&`),`regExpEscape`),cu=`[^/]`,lu=cu+`*?`,uu=cu+`+?`,du=0,fu=class{static{x(this,`AST`)}type;#e;#t;#n=!1;#r=[];#i;#a;#o;#s=!1;#c;#l;#u=!1;id=++du;get depth(){return(this.#i?.depth??-1)+1}[Symbol.for(`nodejs.util.inspect.custom`)](){return{"@@type":`AST`,id:this.id,type:this.type,root:this.#e.id,parent:this.#i?.id,depth:this.depth,partsLength:this.#r.length,parts:this.#r}}constructor(e,t,n={}){this.type=e,e&&(this.#t=!0),this.#i=t,this.#e=this.#i?this.#i.#e:this,this.#c=this.#e===this?n:this.#e.#c,this.#o=this.#e===this?[]:this.#e.#o,e===`!`&&!this.#e.#s&&this.#o.push(this),this.#a=this.#i?this.#i.#r.length:0}get hasMagic(){if(this.#t!==void 0)return this.#t;for(let e of this.#r)if(typeof e!=`string`&&(e.type||e.hasMagic))return this.#t=!0;return this.#t}toString(){return this.#l===void 0?this.type?this.#l=this.type+`(`+this.#r.map(e=>String(e)).join(`|`)+`)`:this.#l=this.#r.map(e=>String(e)).join(``):this.#l}#d(){if(this!==this.#e)throw Error(`should only call on root`);if(this.#s)return this;this.toString(),this.#s=!0;let e;for(;e=this.#o.pop();){if(e.type!==`!`)continue;let t=e,n=t.#i;for(;n;){for(let r=t.#a+1;!n.type&&r<n.#r.length;r++)for(let t of e.#r){if(typeof t==`string`)throw Error(`string part in extglob AST??`);t.copyIn(n.#r[r])}t=n,n=t.#i}}return this}push(...e){for(let t of e)if(t!==``){if(typeof t!=`string`&&!(t instanceof Jl&&t.#i===this))throw Error(`invalid part: `+t);this.#r.push(t)}}toJSON(){let e=this.type===null?this.#r.slice().map(e=>typeof e==`string`?e:e.toJSON()):[this.type,...this.#r.map(e=>e.toJSON())];return this.isStart()&&!this.type&&e.unshift([]),this.isEnd()&&(this===this.#e||this.#e.#s&&this.#i?.type===`!`)&&e.push({}),e}isStart(){if(this.#e===this)return!0;if(!this.#i?.isStart())return!1;if(this.#a===0)return!0;let e=this.#i;for(let t=0;t<this.#a;t++){let n=e.#r[t];if(!(n instanceof Jl&&n.type===`!`))return!1}return!0}isEnd(){if(this.#e===this||this.#i?.type===`!`)return!0;if(!this.#i?.isEnd())return!1;if(!this.type)return this.#i?.isEnd();let e=this.#i?this.#i.#r.length:0;return this.#a===e-1}copyIn(e){typeof e==`string`?this.push(e):this.push(e.clone(this))}clone(e){let t=new Jl(this.type,e);for(let e of this.#r)t.copyIn(e);return t}static#f(e,t,n,r,i){let a=r.maxExtglobRecursion??2,o=!1,s=!1,c=-1,l=!1;if(t.type===null){let u=n,d=``;for(;u<e.length;){let n=e.charAt(u++);if(o||n===`\\`){o=!o,d+=n;continue}if(s){u===c+1?(n===`^`||n===`!`)&&(l=!0):n===`]`&&!(u===c+2&&l)&&(s=!1),d+=n;continue}else if(n===`[`){s=!0,c=u,l=!1,d+=n;continue}if(!r.noext&&Xl(n)&&e.charAt(u)===`(`&&i<=a){t.push(d),d=``;let a=new Jl(n,t);u=Jl.#f(e,a,u,r,i+1),t.push(a);continue}d+=n}return t.push(d),u}let u=n+1,d=new Jl(null,t),f=[],p=``;for(;u<e.length;){let n=e.charAt(u++);if(o||n===`\\`){o=!o,p+=n;continue}if(s){u===c+1?(n===`^`||n===`!`)&&(l=!0):n===`]`&&!(u===c+2&&l)&&(s=!1),p+=n;continue}else if(n===`[`){s=!0,c=u,l=!1,p+=n;continue}if(!r.noext&&Xl(n)&&e.charAt(u)===`(`&&(i<=a||t&&t.#h(n))){let a=t&&t.#h(n)?0:1;d.push(p),p=``;let o=new Jl(n,d);d.push(o),u=Jl.#f(e,o,u,r,i+a);continue}if(n===`|`){d.push(p),p=``,f.push(d),d=new Jl(null,t);continue}if(n===`)`)return p===``&&t.#r.length===0&&(t.#u=!0),d.push(p),p=``,t.push(...f,d),u;p+=n}return t.type=null,t.#t=void 0,t.#r=[e.substring(n-1)],u}#p(e){return this.#m(e,$l)}#m(e,t=Ql){if(!e||typeof e!=`object`||e.type!==null||e.#r.length!==1||this.type===null)return!1;let n=e.#r[0];return!n||typeof n!=`object`||n.type===null?!1:this.#h(n.type,t)}#h(e,t=eu){return!!t.get(this.type)?.includes(e)}#g(e,t){let n=e.#r[0],r=new Jl(null,n,this.options);r.#r.push(``),n.push(r),this.#_(e,t)}#_(e,t){let n=e.#r[0];this.#r.splice(t,1,...n.#r);for(let e of n.#r)typeof e==`object`&&(e.#i=this);this.#l=void 0}#v(e){return!!tu.get(this.type)?.has(e)}#y(e){if(!e||typeof e!=`object`||e.type!==null||e.#r.length!==1||this.type===null||this.#r.length!==1)return!1;let t=e.#r[0];return!t||typeof t!=`object`||t.type===null?!1:this.#v(t.type)}#b(e){let t=tu.get(this.type),n=e.#r[0],r=t?.get(n.type);if(!r)return!1;this.#r=n.#r;for(let e of this.#r)typeof e==`object`&&(e.#i=this);this.type=r,this.#l=void 0,this.#u=!1}static fromGlob(e,t={}){let n=new Jl(null,void 0,t);return Jl.#f(e,n,0,t,0),n}toMMPattern(){if(this!==this.#e)return this.#e.toMMPattern();let e=this.toString(),[t,n,r,i]=this.toRegExpSource();if(!(r||this.#t||this.#c.nocase&&!this.#c.nocaseMagicOnly&&e.toUpperCase()!==e.toLowerCase()))return n;let a=(this.#c.nocase?`i`:``)+(i?`u`:``);return Object.assign(RegExp(`^${t}$`,a),{_src:t,_glob:e})}get options(){return this.#c}toRegExpSource(e){let t=e??!!this.#c.dot;if(this.#e===this&&(this.#x(),this.#d()),!Zl(this)){let n=this.isStart()&&this.isEnd()&&!this.#r.some(e=>typeof e!=`string`),r=this.#r.map(t=>{let[r,i,a,o]=typeof t==`string`?Jl.#C(t,this.#t,n):t.toRegExpSource(e);return this.#t=this.#t||a,this.#n=this.#n||o,r}).join(``),i=``;if(this.isStart()&&typeof this.#r[0]==`string`&&!(this.#r.length===1&&au.has(this.#r[0]))){let n=iu,a=t&&n.has(r.charAt(0))||r.startsWith(`\\.`)&&n.has(r.charAt(2))||r.startsWith(`\\.\\.`)&&n.has(r.charAt(4)),o=!t&&!e&&n.has(r.charAt(0));i=a?nu:o?ru:``}let a=``;return this.isEnd()&&this.#e.#s&&this.#i?.type===`!`&&(a=`(?:$|\\/)`),[i+r+a,ql(r),this.#t=!!this.#t,this.#n]}let n=this.type===`*`||this.type===`+`,r=this.type===`!`?`(?:(?!(?:`:`(?:`,i=this.#S(t);if(this.isStart()&&this.isEnd()&&!i&&this.type!==`!`){let e=this.toString(),t=this;return t.#r=[e],t.type=null,t.#t=void 0,[e,ql(this.toString()),!1,!1]}let a=!n||e||t||!ru?``:this.#S(!0);a===i&&(a=``),a&&(i=`(?:${i})(?:${a})*?`);let o=``;if(this.type===`!`&&this.#u)o=(this.isStart()&&!t?ru:``)+uu;else{let n=this.type===`!`?`))`+(this.isStart()&&!t&&!e?ru:``)+lu+`)`:this.type===`@`?`)`:this.type===`?`?`)?`:this.type===`+`&&a?`)`:this.type===`*`&&a?`)?`:`)${this.type}`;o=r+i+n}return[o,ql(i),this.#t=!!this.#t,this.#n]}#x(){if(Zl(this)){let e=0,t=!1;do{t=!0;for(let e=0;e<this.#r.length;e++){let n=this.#r[e];typeof n==`object`&&(n.#x(),this.#m(n)?(t=!1,this.#_(n,e)):this.#p(n)?(t=!1,this.#g(n,e)):this.#y(n)&&(t=!1,this.#b(n)))}}while(!t&&++e<10)}else for(let e of this.#r)typeof e==`object`&&e.#x();this.#l=void 0}#S(e){return this.#r.map(t=>{if(typeof t==`string`)throw Error(`string type in extglob ast??`);let[n,r,i,a]=t.toRegExpSource(e);return this.#n=this.#n||a,n}).filter(e=>!(this.isStart()&&this.isEnd())||!!e).join(`|`)}static#C(e,t,n=!1){let r=!1,i=``,a=!1,o=!1;for(let s=0;s<e.length;s++){let c=e.charAt(s);if(r){r=!1,i+=(ou.has(c)?`\\`:``)+c;continue}if(c===`*`){if(o)continue;o=!0,i+=n&&/^[*]+$/.test(e)?uu:lu,t=!0;continue}else o=!1;if(c===`\\`){s===e.length-1?i+=`\\\\`:r=!0;continue}if(c===`[`){let[n,r,o,c]=Kl(e,s);if(o){i+=n,a||=r,s+=o-1,t||=c;continue}}if(c===`?`){i+=cu,t=!0;continue}i+=su(c)}return[i,ql(e),!!t,a]}};Jl=fu;var pu=x((e,{windowsPathsNoEscape:t=!1,magicalBraces:n=!1}={})=>n?t?e.replace(/[?*()[\]{}]/g,`[$&]`):e.replace(/[?*()[\]\\{}]/g,`\\$&`):t?e.replace(/[?*()[\]]/g,`[$&]`):e.replace(/[?*()[\]\\]/g,`\\$&`),`escape`),mu=x((e,t,n={})=>(Vl(t),!n.nocomment&&t.charAt(0)===`#`?!1:new Gu(t,n).match(e)),`minimatch`),hu=/^\*+([^+@!?*[(]*)$/,gu=x(e=>t=>!t.startsWith(`.`)&&t.endsWith(e),`starDotExtTest`),_u=x(e=>t=>t.endsWith(e),`starDotExtTestDot`),vu=x(e=>(e=e.toLowerCase(),t=>!t.startsWith(`.`)&&t.toLowerCase().endsWith(e)),`starDotExtTestNocase`),yu=x(e=>(e=e.toLowerCase(),t=>t.toLowerCase().endsWith(e)),`starDotExtTestNocaseDot`),bu=/^\*+\.\*+$/,xu=x(e=>!e.startsWith(`.`)&&e.includes(`.`),`starDotStarTest`),Su=x(e=>e!==`.`&&e!==`..`&&e.includes(`.`),`starDotStarTestDot`),Cu=/^\.\*+$/,wu=x(e=>e!==`.`&&e!==`..`&&e.startsWith(`.`),`dotStarTest`),Tu=/^\*+$/,Eu=x(e=>e.length!==0&&!e.startsWith(`.`),`starTest`),Du=x(e=>e.length!==0&&e!==`.`&&e!==`..`,`starTestDot`),Ou=/^\?+([^+@!?*[(]*)?$/,ku=x(([e,t=``])=>{let n=Nu([e]);return t?(t=t.toLowerCase(),e=>n(e)&&e.toLowerCase().endsWith(t)):n},`qmarksTestNocase`),Au=x(([e,t=``])=>{let n=Pu([e]);return t?(t=t.toLowerCase(),e=>n(e)&&e.toLowerCase().endsWith(t)):n},`qmarksTestNocaseDot`),ju=x(([e,t=``])=>{let n=Pu([e]);return t?e=>n(e)&&e.endsWith(t):n},`qmarksTestDot`),Mu=x(([e,t=``])=>{let n=Nu([e]);return t?e=>n(e)&&e.endsWith(t):n},`qmarksTest`),Nu=x(([e])=>{let t=e.length;return e=>e.length===t&&!e.startsWith(`.`)},`qmarksTestNoExt`),Pu=x(([e])=>{let t=e.length;return e=>e.length===t&&e!==`.`&&e!==`..`},`qmarksTestNoExtDot`),Fu=typeof process==`object`&&process?typeof process.env==`object`&&process.env&&process.env.__MINIMATCH_TESTING_PLATFORM__||process.platform:`posix`,Iu={win32:{sep:`\\`},posix:{sep:`/`}};mu.sep=Fu===`win32`?Iu.win32.sep:Iu.posix.sep;var Lu=Symbol(`globstar **`);mu.GLOBSTAR=Lu;var Ru=`[^/]*?`,zu=`(?:(?!(?:\\/|^)(?:\\.{1,2})($|\\/)).)*?`,Bu=`(?:(?!(?:\\/|^)\\.).)*?`;mu.filter=x((e,t={})=>n=>mu(n,e,t),`filter`);var Vu=x((e,t={})=>Object.assign({},e,t),`ext`);mu.defaults=x(e=>{if(!e||typeof e!=`object`||!Object.keys(e).length)return mu;let t=mu;return Object.assign(x((n,r,i={})=>t(n,r,Vu(e,i)),`m`),{Minimatch:class extends t.Minimatch{static{x(this,`Minimatch`)}constructor(t,n={}){super(t,Vu(e,n))}static defaults(n){return t.defaults(Vu(e,n)).Minimatch}},AST:class extends t.AST{static{x(this,`AST`)}constructor(t,n,r={}){super(t,n,Vu(e,r))}static fromGlob(n,r={}){return t.AST.fromGlob(n,Vu(e,r))}},unescape:x((n,r={})=>t.unescape(n,Vu(e,r)),`unescape`),escape:x((n,r={})=>t.escape(n,Vu(e,r)),`escape`),filter:x((n,r={})=>t.filter(n,Vu(e,r)),`filter`),defaults:x(n=>t.defaults(Vu(e,n)),`defaults`),makeRe:x((n,r={})=>t.makeRe(n,Vu(e,r)),`makeRe`),braceExpand:x((n,r={})=>t.braceExpand(n,Vu(e,r)),`braceExpand`),match:x((n,r,i={})=>t.match(n,r,Vu(e,i)),`match`),sep:t.sep,GLOBSTAR:Lu})},`defaults`);var Hu=x((e,t={})=>(Vl(e),t.nobrace||!/\{(?:(?!\{).)*\}/.test(e)?[e]:Pl(e,{max:t.braceExpandMax})),`braceExpand`);mu.braceExpand=Hu,mu.makeRe=x((e,t={})=>new Gu(e,t).makeRe(),`makeRe`),mu.match=x((e,t,n={})=>{let r=new Gu(t,n);return e=e.filter(e=>r.match(e)),r.options.nonull&&!e.length&&e.push(t),e},`match`);var Uu=/[?*]|[+@!]\(.*?\)|\[|\]/,Wu=x(e=>e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,`\\$&`),`regExpEscape`),Gu=class{static{x(this,`Minimatch`)}options;set;pattern;windowsPathsNoEscape;nonegate;negate;comment;empty;preserveMultipleSlashes;partial;globSet;globParts;nocase;isWindows;platform;windowsNoMagicRoot;maxGlobstarRecursion;regexp;constructor(e,t={}){Vl(e),t||={},this.options=t,this.maxGlobstarRecursion=t.maxGlobstarRecursion??200,this.pattern=e,this.platform=t.platform||Fu,this.isWindows=this.platform===`win32`,this.windowsPathsNoEscape=!!t.windowsPathsNoEscape||t.allowWindowsEscape===!1,this.windowsPathsNoEscape&&(this.pattern=this.pattern.replace(/\\/g,`/`)),this.preserveMultipleSlashes=!!t.preserveMultipleSlashes,this.regexp=null,this.negate=!1,this.nonegate=!!t.nonegate,this.comment=!1,this.empty=!1,this.partial=!!t.partial,this.nocase=!!this.options.nocase,this.windowsNoMagicRoot=t.windowsNoMagicRoot===void 0?!!(this.isWindows&&this.nocase):t.windowsNoMagicRoot,this.globSet=[],this.globParts=[],this.set=[],this.make()}hasMagic(){if(this.options.magicalBraces&&this.set.length>1)return!0;for(let e of this.set)for(let t of e)if(typeof t!=`string`)return!0;return!1}debug(...e){}make(){let e=this.pattern,t=this.options;if(!t.nocomment&&e.charAt(0)===`#`){this.comment=!0;return}if(!e){this.empty=!0;return}this.parseNegate(),this.globSet=[...new Set(this.braceExpand())],t.debug&&(this.debug=(...e)=>console.error(...e)),this.debug(this.pattern,this.globSet);let n=this.globSet.map(e=>this.slashSplit(e));this.globParts=this.preprocess(n),this.debug(this.pattern,this.globParts);let r=this.globParts.map((e,t,n)=>{if(this.isWindows&&this.windowsNoMagicRoot){let t=e[0]===``&&e[1]===``&&(e[2]===`?`||!Uu.test(e[2]))&&!Uu.test(e[3]),n=/^[a-z]:/i.test(e[0]);if(t)return[...e.slice(0,4),...e.slice(4).map(e=>this.parse(e))];if(n)return[e[0],...e.slice(1).map(e=>this.parse(e))]}return e.map(e=>this.parse(e))});if(this.debug(this.pattern,r),this.set=r.filter(e=>e.indexOf(!1)===-1),this.isWindows)for(let e=0;e<this.set.length;e++){let t=this.set[e];t[0]===``&&t[1]===``&&this.globParts[e][2]===`?`&&typeof t[3]==`string`&&/^[a-z]:$/i.test(t[3])&&(t[2]=`?`)}this.debug(this.pattern,this.set)}preprocess(e){if(this.options.noglobstar)for(let t of e)for(let e=0;e<t.length;e++)t[e]===`**`&&(t[e]=`*`);let{optimizationLevel:t=1}=this.options;return t>=2?(e=this.firstPhasePreProcess(e),e=this.secondPhasePreProcess(e)):e=t>=1?this.levelOneOptimize(e):this.adjascentGlobstarOptimize(e),e}adjascentGlobstarOptimize(e){return e.map(e=>{let t=-1;for(;(t=e.indexOf(`**`,t+1))!==-1;){let n=t;for(;e[n+1]===`**`;)n++;n!==t&&e.splice(t,n-t)}return e})}levelOneOptimize(e){return e.map(e=>(e=e.reduce((e,t)=>{let n=e[e.length-1];return t===`**`&&n===`**`?e:t===`..`&&n&&n!==`..`&&n!==`.`&&n!==`**`?(e.pop(),e):(e.push(t),e)},[]),e.length===0?[``]:e))}levelTwoFileOptimize(e){Array.isArray(e)||(e=this.slashSplit(e));let t=!1;do{if(t=!1,!this.preserveMultipleSlashes){for(let n=1;n<e.length-1;n++){let r=e[n];n===1&&r===``&&e[0]===``||(r===`.`||r===``)&&(t=!0,e.splice(n,1),n--)}e[0]===`.`&&e.length===2&&(e[1]===`.`||e[1]===``)&&(t=!0,e.pop())}let n=0;for(;(n=e.indexOf(`..`,n+1))!==-1;){let r=e[n-1];r&&r!==`.`&&r!==`..`&&r!==`**`&&!(this.isWindows&&/^[a-z]:$/i.test(r))&&(t=!0,e.splice(n-1,2),n-=2)}}while(t);return e.length===0?[``]:e}firstPhasePreProcess(e){let t=!1;do{t=!1;for(let n of e){let r=-1;for(;(r=n.indexOf(`**`,r+1))!==-1;){let i=r;for(;n[i+1]===`**`;)i++;i>r&&n.splice(r+1,i-r);let a=n[r+1],o=n[r+2],s=n[r+3];if(a!==`..`||!o||o===`.`||o===`..`||!s||s===`.`||s===`..`)continue;t=!0,n.splice(r,1);let c=n.slice(0);c[r]=`**`,e.push(c),r--}if(!this.preserveMultipleSlashes){for(let e=1;e<n.length-1;e++){let r=n[e];e===1&&r===``&&n[0]===``||(r===`.`||r===``)&&(t=!0,n.splice(e,1),e--)}n[0]===`.`&&n.length===2&&(n[1]===`.`||n[1]===``)&&(t=!0,n.pop())}let i=0;for(;(i=n.indexOf(`..`,i+1))!==-1;){let e=n[i-1];if(e&&e!==`.`&&e!==`..`&&e!==`**`){t=!0;let e=i===1&&n[i+1]===`**`?[`.`]:[];n.splice(i-1,2,...e),n.length===0&&n.push(``),i-=2}}}}while(t);return e}secondPhasePreProcess(e){for(let t=0;t<e.length-1;t++)for(let n=t+1;n<e.length;n++){let r=this.partsMatch(e[t],e[n],!this.preserveMultipleSlashes);if(r){e[t]=[],e[n]=r;break}}return e.filter(e=>e.length)}partsMatch(e,t,n=!1){let r=0,i=0,a=[],o=``;for(;r<e.length&&i<t.length;)if(e[r]===t[i])a.push(o===`b`?t[i]:e[r]),r++,i++;else if(n&&e[r]===`**`&&t[i]===e[r+1])a.push(e[r]),r++;else if(n&&t[i]===`**`&&e[r]===t[i+1])a.push(t[i]),i++;else if(e[r]===`*`&&t[i]&&(this.options.dot||!t[i].startsWith(`.`))&&t[i]!==`**`){if(o===`b`)return!1;o=`a`,a.push(e[r]),r++,i++}else if(t[i]===`*`&&e[r]&&(this.options.dot||!e[r].startsWith(`.`))&&e[r]!==`**`){if(o===`a`)return!1;o=`b`,a.push(t[i]),r++,i++}else return!1;return e.length===t.length&&a}parseNegate(){if(this.nonegate)return;let e=this.pattern,t=!1,n=0;for(let r=0;r<e.length&&e.charAt(r)===`!`;r++)t=!t,n++;n&&(this.pattern=e.slice(n)),this.negate=t}matchOne(e,t,n=!1){let r=0,i=0;if(this.isWindows){let n=typeof e[0]==`string`&&/^[a-z]:$/i.test(e[0]),a=!n&&e[0]===``&&e[1]===``&&e[2]===`?`&&/^[a-z]:$/i.test(e[3]),o=typeof t[0]==`string`&&/^[a-z]:$/i.test(t[0]),s=!o&&t[0]===``&&t[1]===``&&t[2]===`?`&&typeof t[3]==`string`&&/^[a-z]:$/i.test(t[3]),c=a?3:n?0:void 0,l=s?3:o?0:void 0;if(typeof c==`number`&&typeof l==`number`){let[n,a]=[e[c],t[l]];n.toLowerCase()===a.toLowerCase()&&(t[l]=n,i=l,r=c)}}let{optimizationLevel:a=1}=this.options;return a>=2&&(e=this.levelTwoFileOptimize(e)),t.includes(Lu)?this.#e(e,t,n,r,i):this.#n(e,t,n,r,i)}#e(e,t,n,r,i){let a=t.indexOf(Lu,i),o=t.lastIndexOf(Lu),[s,c,l]=n?[t.slice(i,a),t.slice(a+1),[]]:[t.slice(i,a),t.slice(a+1,o),t.slice(o+1)];if(s.length){let t=e.slice(r,r+s.length);if(!this.#n(t,s,n,0,0))return!1;r+=s.length,i+=s.length}let u=0;if(l.length){if(l.length+r>e.length)return!1;let t=e.length-l.length;if(this.#n(e,l,n,t,0))u=l.length;else{if(e[e.length-1]!==``||r+l.length===e.length||(t--,!this.#n(e,l,n,t,0)))return!1;u=l.length+1}}if(!c.length){let t=!!u;for(let n=r;n<e.length-u;n++){let r=String(e[n]);if(t=!0,r===`.`||r===`..`||!this.options.dot&&r.startsWith(`.`))return!1}return n||t}let d=[[[],0]],f=d[0],p=0,m=[0];for(let e of c)e===Lu?(m.push(p),f=[[],0],d.push(f)):(f[0].push(e),p++);let h=d.length-1,g=e.length-u;for(let e of d)e[1]=g-(m[h--]+e[0].length);return!!this.#t(e,d,r,0,n,0,!!u)}#t(e,t,n,r,i,a,o){let s=t[r];if(!s){for(let t=n;t<e.length;t++){o=!0;let n=e[t];if(n===`.`||n===`..`||!this.options.dot&&n.startsWith(`.`))return!1}return o}let[c,l]=s;for(;n<=l;){if(this.#n(e.slice(0,n+c.length),c,i,n,0)&&a<this.maxGlobstarRecursion){let s=this.#t(e,t,n+c.length,r+1,i,a+1,o);if(s!==!1)return s}let s=e[n];if(s===`.`||s===`..`||!this.options.dot&&s.startsWith(`.`))return!1;n++}return i||null}#n(e,t,n,r,i){let a,o,s,c;for(a=r,o=i,c=e.length,s=t.length;a<c&&o<s;a++,o++){this.debug(`matchOne loop`);let n=t[o],r=e[a];if(this.debug(t,n,r),n===!1||n===Lu)return!1;let i;if(typeof n==`string`?(i=r===n,this.debug(`string match`,n,r,i)):(i=n.test(r),this.debug(`pattern match`,n,r,i)),!i)return!1}if(a===c&&o===s)return!0;if(a===c)return n;if(o===s)return a===c-1&&e[a]===``;throw Error(`wtf?`)}braceExpand(){return Hu(this.pattern,this.options)}parse(e){Vl(e);let t=this.options;if(e===`**`)return Lu;if(e===``)return``;let n,r=null;(n=e.match(Tu))?r=t.dot?Du:Eu:(n=e.match(hu))?r=(t.nocase?t.dot?yu:vu:t.dot?_u:gu)(n[1]):(n=e.match(Ou))?r=(t.nocase?t.dot?Au:ku:t.dot?ju:Mu)(n):(n=e.match(bu))?r=t.dot?Su:xu:(n=e.match(Cu))&&(r=wu);let i=fu.fromGlob(e,this.options).toMMPattern();return r&&typeof i==`object`&&Reflect.defineProperty(i,`test`,{value:r}),i}makeRe(){if(this.regexp||this.regexp===!1)return this.regexp;let e=this.set;if(!e.length)return this.regexp=!1,this.regexp;let t=this.options,n=t.noglobstar?Ru:t.dot?zu:Bu,r=new Set(t.nocase?[`i`]:[]),i=e.map(e=>{let t=e.map(e=>{if(e instanceof RegExp)for(let t of e.flags.split(``))r.add(t);return typeof e==`string`?Wu(e):e===Lu?Lu:e._src});t.forEach((e,r)=>{let i=t[r+1],a=t[r-1];e!==Lu||a===Lu||(a===void 0?i!==void 0&&i!==Lu?t[r+1]=`(?:\\/|`+n+`\\/)?`+i:t[r]=n:i===void 0?t[r-1]=a+`(?:\\/|\\/`+n+`)?`:i!==Lu&&(t[r-1]=a+`(?:\\/|\\/`+n+`\\/)`+i,t[r+1]=Lu))});let i=t.filter(e=>e!==Lu);if(this.partial&&i.length>=1){let e=[];for(let t=1;t<=i.length;t++)e.push(i.slice(0,t).join(`/`));return`(?:`+e.join(`|`)+`)`}return i.join(`/`)}).join(`|`),[a,o]=e.length>1?[`(?:`,`)`]:[``,``];i=`^`+a+i+o+`$`,this.partial&&(i=`^(?:\\/|`+a+i.slice(1,-1)+o+`)$`),this.negate&&(i=`^(?!`+i+`).+$`);try{this.regexp=new RegExp(i,[...r].join(``))}catch{this.regexp=!1}return this.regexp}slashSplit(e){return this.preserveMultipleSlashes?e.split(`/`):this.isWindows&&/^\/\/[^/]+/.test(e)?[``,...e.split(/\/+/)]:e.split(/\/+/)}match(e,t=this.partial){if(this.debug(`match`,e,this.pattern),this.comment)return!1;if(this.empty)return e===``;if(e===`/`&&t)return!0;let n=this.options;this.isWindows&&(e=e.split(`\\`).join(`/`));let r=this.slashSplit(e);this.debug(this.pattern,`split`,r);let i=this.set;this.debug(this.pattern,`set`,i);let a=r[r.length-1];if(!a)for(let e=r.length-2;!a&&e>=0;e--)a=r[e];for(let e of i){let i=r;if(n.matchBase&&e.length===1&&(i=[a]),this.matchOne(i,e,t))return n.flipNegate?!0:!this.negate}return n.flipNegate?!1:this.negate}static defaults(e){return mu.defaults(e).Minimatch}};mu.AST=fu,mu.Minimatch=Gu,mu.escape=pu,mu.unescape=ql;function Ku(e){let t=[],n=e.globParts[0];for(let e=0,r=n.length;e<r;e++){if(n[e].includes(`*`))return{dir:t.join(`/`),depth:n[e]};t.push(n[e])}return{dir:t.join(`/`)}}x(Ku,`getDirFromPattern`);var qu=x(async({entry:e,project:t,directory:n,packagePath:r})=>{if(e===`package.json`){let i={path:r};try{let{name:r}=await t.fs.readJSON(t.fs.join(n,e));i.name=r}catch{}return i}return null},`defaultIdentifyPackage`);async function Ju(e,t,n,r){let i={},a=e.jsWorkspaceRoot?e.fs.resolve(e.jsWorkspaceRoot,t):e.root?e.fs.resolve(e.root,t):e.fs.resolve(t);try{i=await e.fs.readDir(a,!0)}catch{}let o=Object.entries(i).map(async([i,o])=>{let s=await n({entry:i,type:o,packagePath:t,directory:a,project:e});return s?[s]:r&&o===`directory`?Ju(e,e.fs.join(t,i),n,r===`**`?r:void 0):[]});return(await Promise.all(o)).flat()}x(Ju,`findPackages`);async function Yu(e,t=[]){if(!t?.length)return[];let n=(await Promise.all(t.map(t=>{let n=new Gu(t.replace(/^!?(\.\/)/,(e,t)=>e.replace(t,``)));if(n.negate)return;let{dir:r,depth:i}=Ku(n);return Ju(e,r,qu,i)}))).flat().filter(Boolean),r=new Map;for(let i of n)for(let n of t){let t=new Gu(n.replace(/^!?(\.\/)/,(e,t)=>e.replace(t,``)));mu(i.path,t.pattern)&&(r.set(e.fs.join(i.path),i),t.negate&&r.delete(e.fs.join(i.path)))}return[...r.values()]}x(Yu,`getWorkspacePackages`);var Xu=class{static{x(this,`WorkspaceInfo`)}isRoot;rootDir;packages=[];hasPackage(e){return this.packages.findIndex(({path:t})=>t===e)>-1}getPackage(e){return this.packages.find(({path:t})=>t===e)}};async function Zu(e){let t=await e.fs.findUp(`pnpm-workspace.yaml`,{cwd:e.baseDirectory,stopAt:e.root});if(!t)return[];try{let{packages:n=[]}=(0,ul.parse)(await e.fs.readFile(t));return n}catch{return[]}}x(Zu,`detectPnpmWorkspaceGlobs`);async function Qu(e){return Array.isArray(e.workspaces)?e.workspaces||[]:typeof e.workspaces==`object`&&e.workspaces.packages||[]}x(Qu,`detectNpmOrYarnWorkspaceGlobs`);async function $u(e){if(e.packageManager===void 0)throw Error(`Please run the packageManager detection before calling the workspace detection!`);if(e.packageManager===null||await e.isRedwoodProject())return null;let t=await e.getRootPackageJSON(),n=e.packageManager.name===`pnpm`?await Zu(e):await Qu(t);if(!n||n.length===0)return null;e.events.emit(`detectedWorkspaceGlobs`,void 0);let r=new Xu;r.rootDir=e.jsWorkspaceRoot,r.packages=await Yu(e,n),r.isRoot=e.baseDirectory===e.jsWorkspaceRoot;let i=e.fs.relative(e.jsWorkspaceRoot,e.baseDirectory);return!r.isRoot&&!r.hasPackage(i)?null:r}x($u,`detectWorkspaces`);var ed=class extends nl{static{x(this,`Nx`)}id=`nx`;name=`Nx`;configFiles=[`nx.json`];logo={default:`/logos/nx/light.svg`,light:`/logos/nx/light.svg`,dark:`/logos/nx/dark.svg`};runFromRoot=!0;isIntegrated=!1;targets=new Map;async getCommands(e){let t=this.project.workspace?.getPackage(e)?.name||``,n=(this.targets.get(e)||[]).map(e=>e.name);try{let r=this.project.resolveFromPackage(e,`package.json`),i=await this.project.fs.readJSON(r,{fail:!0});n.push(...Object.keys(i?.scripts||{})),t=i.name||``}catch{}return t.length!==0&&n.length!==0?n.map(e=>{let n=`unknown`;return ms.includes(e)&&(n=`dev`),gs.includes(e)&&(n=`build`),{type:n,command:`nx run ${t}:${e}`}}):[]}async getDist(e){return this.isIntegrated?this.getOutputFromTarget(e):null}async getPort(e){if(!this.isIntegrated)return null;let t=this.targets.get(e)?.find(e=>ms.includes(e.name)),n=this.getExecutorFromTarget(t);if(!n)return null;switch(n){case`@nxtensions/astro:dev`:return 3e3;case`@nx/next:server`:case`@nrwl/next:server`:case`@nrwl/web:dev-server`:case`@nx/webpack:dev-server`:case`@angular-devkit/build-angular:dev-server`:return 4200;case`@nx-plus/vue:dev-server`:return 8e3;case`nx:run-commands`:case void 0:return null;default:return this.project.report({name:`UndetectedExecutor`,message:`Undetected executor for Nx integrated: ${n}`},{metadata:{executor:n}}),null}}async getOutputFromTarget(e){let{getProperty:t}=await import(`./dot-prop-IITUZ2XW-BO5KJUwL.mjs`);try{let n=this.targets.get(e)?.find(e=>e.name===`build`);if(n){let r=`outputs`in n?n.outputs?.[0]:n.options?.outputPath;if(r){let i=this.project.frameworks?.get(e)?.[0],a=``;return i?.id===`next`&&(a=i.build.directory),this.project.fs.join(r.replace(`{workspaceRoot}/`,``).replace(/\{(.+)\}/g,(r,i)=>t({...n,projectRoot:e},i)),a)}}}catch{}return this.project.fs.join(`dist`,e)}getExecutorFromTarget(e){return e&&(`executor`in e?e.executor:e.builder)}async detectFramework(e){let t=e.find(e=>gs.includes(e.name)),n=this.getExecutorFromTarget(t);if(!(!t||!n))switch(n){case`@nrwl/next:build`:case`@nx/next:build`:return`next`;case`@nxtensions/astro:build`:return`astro`;case`@nx-plus/vue:browser`:return`vue`;case`@angular-devkit/build-angular:browser`:return`angular`;case`@nx/webpack:webpack`:case`@nrwl/web:build`:if(t.options?.webpackConfig?.includes?.(`react`))return`react-static`;this.project.report({name:`UndetectedNrwlWeb`,message:`Undetected @nrwl/web:build framework: ${JSON.stringify({target:t},null,2)}`});return;case`@nx/cypress:cypress`:case`@nrwl/cypress:cypress`:case`@nrwl/node:build`:return;case`nx:run-commands`:case void 0:return;default:this.project.report({name:`UndetectedExecutor`,message:`Undetected executor for Nx integrated: ${n}`},{metadata:{executor:n}})}}async detectWorkspaceFile(){let e=this.project.fs;try{let{projects:t}=await e.readJSON(e.join(this.project.jsWorkspaceRoot,`workspace.json`),{fail:!0}),n=[];for(let[r,{root:i,projectType:a,architect:o}]of Object.entries(t||{})){if(!i||r.endsWith(`-e2e`)||a!==`application`)continue;let t=Object.entries(o||{}).map(([e,t])=>({...t,name:e})),s=await this.detectFramework(t);this.targets.set(e.join(i),t),n.push({name:r,path:e.join(i),forcedFramework:s})}return n}catch{}return[]}async detectProjectJson(){let e=this.project.fs;try{let{workspaceLayout:t}=await e.readJSON(e.join(this.project.jsWorkspaceRoot,`nx.json`),{fail:!0}),n=t?.appsDir?[t.appsDir]:[`apps`,`packages`],r=x(async({entry:t,directory:n,packagePath:r})=>{if(t===`project.json`&&!r.endsWith(`-e2e`))try{let{projectType:i,name:a,targets:o}=await e.readJSON(e.join(n,t));if(i===`application`){let t=Object.entries(o||{}).map(([e,t])=>({...t,name:e})),n=await this.detectFramework(t);return this.targets.set(e.join(r),t),{name:a,path:e.join(r),forcedFramework:n}}}catch{}return null},`identifyPkg`);return(await Promise.all(n.map(async e=>Ju(this.project,e,r,`*`).catch(()=>[])))).flat()}catch{}return[]}async detect(){if(await super.detect()){let e=[...await this.detectWorkspaceFile(),...await this.detectProjectJson()];return e.length&&(this.isIntegrated=!0,this.project.workspace?this.project.workspace.packages.push(...e):(this.project.workspace=new Xu,this.project.workspace.isRoot=this.project.jsWorkspaceRoot===this.project.baseDirectory,this.project.workspace.rootDir=this.project.jsWorkspaceRoot,this.project.workspace.packages=e),this.project.events.emit(`detectWorkspaces`,this.project.workspace)),this}}},td=class extends nl{static{x(this,`PNPM`)}id=`pnpm`;name=`PNPM`;runFromRoot=!0;async getCommands(e){let{name:t,scripts:n}=await this.project.fs.readJSON(this.project.resolveFromPackage(e,`package.json`));return n&&Object.keys(n).length>0?Object.entries(n).map(([e,n])=>{let r=ws(e,n);return{type:Cs(e,n)?`dev`:r?`build`:`unknown`,command:`pnpm --filter ${t}${r?`...`:``} run ${e}`}}):[]}async detect(){if(this.project.workspace&&this.project.packageManager?.name===`pnpm`)return this}},nd=class extends nl{static{x(this,`Yarn`)}id=`yarn`;name=`Yarn`;runFromRoot=!0;async getCommands(e){let{name:t,scripts:n}=await this.project.fs.readJSON(this.project.resolveFromPackage(e,`package.json`));return n&&Object.keys(n).length>0?Object.entries(n).map(([e,n])=>({type:Cs(e,n)?`dev`:ws(e,n)?`build`:`unknown`,command:`yarn workspace ${t} ${e}`})):[]}async detect(){if(this.project.workspace&&this.project.packageManager?.name===`yarn`)return this}},rd=class extends nl{static{x(this,`NPM`)}id=`npm`;name=`NPM`;runFromRoot=!0;async getCommands(e){let{name:t,scripts:n}=await this.project.fs.readJSON(this.project.resolveFromPackage(e,`package.json`));return n&&Object.keys(n).length>0?Object.entries(n).map(([e,n])=>({type:Cs(e,n)?`dev`:ws(e,n)?`build`:`unknown`,command:`npm --workspace ${t} run ${e}`})):[]}async detect(){if(this.project.workspace&&this.project.packageManager?.name===`npm`)return this}},id=[rl,il,al,ol,sl,cl,ll,ed,class extends nl{static{x(this,`Pants`)}id=`pants`;name=`Pants`;configFiles=[`pants.toml`];async detect(){if(await this.project.fs.findUp(this.configFiles,{cwd:this.project.baseDirectory,stopAt:this.project.root}))return this}},class extends nl{static{x(this,`Rush`)}id=`rush`;name=`Rush`;configFiles=[`rush.json`];logo={default:`/logos/rush/light.svg`,light:`/logos/rush/light.svg`,dark:`/logos/rush/dark.svg`}},class extends nl{static{x(this,`Turbo`)}id=`turbo`;name=`TurboRepo`;configFiles=[`turbo.json`];runFromRoot=!0;logo={default:`/logos/turbo/light.svg`,light:`/logos/turbo/light.svg`,dark:`/logos/turbo/dark.svg`};async getCommands(e){let{scripts:t,name:n}=await this.project.fs.readJSON(this.project.resolveFromPackage(e,`package.json`));return n&&t&&Object.values(t).length?Object.keys(t).map(e=>{let t=`unknown`;return ms.includes(e)&&(t=`dev`),gs.includes(e)&&(t=`build`),{type:t,command:`turbo run ${e} --filter ${n}`}}):[]}},td,rd,nd],ad=class{static{x(this,`EventEmitter`)}callbacks=new Map;on(e,t){if(typeof t!=`function`)throw TypeError(`Callback parameter has to be a function.`);this.callbacks.has(e)||this.callbacks.set(e,[]),this.callbacks.get(e)?.push(t)}async emit(e,t){for(let n of this.callbacks.get(e)||[])await n(t)}},{default:od}=T(ca(),1).default,sd=x(e=>e instanceof Error||typeof e==`object`&&(e.errorClass||e.name)?e:typeof e==`string`?Error(e):typeof e==`object`&&e.message?Error(e.message):Error(`Unexpected error format: ${JSON.stringify(e)}`),`normalizeError`);function cd(e,t={}){let n=sd(e);(t.client||od).notify(n,n=>{for(let[e,r]of Object.entries(t.metadata||{}))n.addMetadata(e,r);typeof e==`object`&&`documentation_url`in e&&n.addMetadata(`Documentation URL`,e.documentation_url),n.context=t.context,n.severity=t.severity||`error`,n.context=t.context})}x(cd,`report`);var ld=T(Pr(),1),ud={yarn:{name:`yarn`,installCommand:`yarn install`,runCommand:`yarn run`,localPackageCommand:`yarn`,remotePackageCommand:[`yarn`,`dlx`],lockFiles:[`yarn.lock`],forceEnvironment:`NETLIFY_USE_YARN`},pnpm:{name:`pnpm`,installCommand:`pnpm install`,runCommand:`pnpm run`,localPackageCommand:`pnpm`,remotePackageCommand:[`pnpm`,`dlx`],lockFiles:[`pnpm-lock.yaml`],forceEnvironment:`NETLIFY_USE_PNPM`},npm:{name:`npm`,installCommand:`npm install`,runCommand:`npm run`,localPackageCommand:`npx`,remotePackageCommand:[`npx`],lockFiles:[`package-lock.json`]},bun:{name:`bun`,installCommand:`bun install`,runCommand:`bun run`,localPackageCommand:`bunx`,remotePackageCommand:[`bunx`],lockFiles:[`bun.lockb`,`bun.lock`]}};function dd(e){let t=e.getEnv(`npm_config_user_agent`);if(t!==void 0){if(t.includes(`yarn`))return`yarn`;if(t.includes(`pnpm`))return`pnpm`;if(t.includes(`bun`))return`bun`;if(t.includes(`npm`))return`npm`}}x(dd,`sniffUserAgent`);var fd=Object.values(ud).reduce((e,t)=>t.lockFiles.reduce((e,n)=>({...e,[n]:t}),e),{}),pd=x(async(e,t)=>{let n=t?.enableUserAgentSniffing?dd(e):void 0;try{let t=await e.fs.findUpMultiple(`package.json`,{cwd:e.baseDirectory,stopAt:e.root});if(!t.length)return n?ud[n]:null;for(let n of t){let{packageManager:t}=await e.fs.readJSON(n);if(t){let[e,n]=t.split(`@`);if(ud[e]){let t=ud[e];return t.version=(0,ld.parse)(n)||void 0,t}}}for(let t of Object.values(ud))if(t.forceEnvironment&&e.getEnv(t.forceEnvironment)===`true`)return t;let r=await e.fs.findUp(Object.keys(fd),{cwd:e.baseDirectory,stopAt:e.root});if(r){let t=fd[e.fs.basename(r)];if(!(t.forceEnvironment&&e.getEnv(t.forceEnvironment)===`false`))return t}}catch(t){e.report(t)}return n?ud[n]:ud.npm},`detectPackageManager`),md=class{static{x(this,`LangRuntime`)}project;id;name;configFiles=[];constructor(e){this.project=e}async detect(){if(await this.project.fs.findUp(this.configFiles,{cwd:this.project.baseDirectory,stopAt:this.project.root}))return this}toJSON(){return{id:this.id,name:this.name}}},hd=class extends md{static{x(this,`Brew`)}id=`brew`;name=`Brew`;configFiles=[`Brewfile.netlify`]},gd=class extends md{static{x(this,`Bun`)}id=`bun`;name=`Bun`;configFiles=[`bun.lock`,`bun.lockb`,`bunfig.toml`]},_d=class extends md{static{x(this,`Emacs`)}id=`emacs`;name=`Emacs`;configFiles=[`Cask`]},vd=class extends md{static{x(this,`Dotnet`)}id=`dotnet`;name=`Dotnet`;configFiles=[`Program.cs`,`appsettings.json`]},yd=class extends md{static{x(this,`Erlang`)}id=`erlang`;name=`Erlang`;configFiles=[`rebar.config`,`rebar.lock`]},bd=class extends md{static{x(this,`Go`)}id=`go`;name=`Go`;configFiles=[`go.mod`,`.go-version`,`go.work`]},xd=class extends md{static{x(this,`Java`)}id=`java`;name=`Java`;configFiles=[`project.clj`,`build.boot`]},Sd=class extends md{static{x(this,`Node`)}id=`node`;name=`NodeJS`;configFiles=[`.node-version`,`.nvmrc`,`package.json`]},Cd=class extends md{static{x(this,`Php`)}id=`php`;name=`Php`;configFiles=[`composer.json`]},wd=class extends md{static{x(this,`Python`)}id=`python`;name=`Python`;configFiles=[`requirements.txt`,`Pipfile`]},Td=[Sd,class extends md{static{x(this,`Ruby`)}id=`ruby`;name=`Ruby`;configFiles=[`.ruby-version`,`Gemfile.lock`,`Gemfile`]},hd,gd,vd,_d,yd,bd,xd,Cd,class extends md{static{x(this,`Rust`)}id=`rust`;name=`Rust`;configFiles=[`Cargo.toml`,`Cargo.lock`]},class extends md{static{x(this,`Swift`)}id=`swift`;name=`Swift`;configFiles=[`.swift-version`,`Package.swift`]},wd];async function Ed(e,t,n){let r=t.buildSystems[0],i={...e};if(n&&r){let t=await r.getCommands?.(n)||[],a=t.find(e=>e.type===`build`),o=t.find(e=>e.type===`dev`),s=await r.getDist?.(n),c=await r.getPort?.(n);i.name=`${r.name} + ${e.name} ${n}`,a&&(i.buildCommand=a.command),o&&(i.devCommand=o.command),s&&(i.dist=s),c!=null&&(i.frameworkPort=c),r.runFromRoot&&a&&o&&(i.baseDirectory=``)}return i}x(Ed,`applyBuildSystemOverrides`);async function Dd(e,t,n){let r=e.getDevCommands(),i=e.getBuildCommands(),a={name:e.name,buildCommand:i[0],devCommand:r[0],frameworkPort:e.dev?.port,dist:t.fs.join(n,e.build.directory),env:e.env||{},plugins_from_config_file:[],plugins_recommended:e.plugins||[],framework:{id:e.id,name:e.name},baseDirectory:n,packagePath:n,pollingStrategies:e.dev?.pollingStrategies?.map(({name:e})=>e)||[]};return e.dev?.clearPublishDirectory!==void 0&&(a.clearPublishDirectory=e.dev.clearPublishDirectory),n?.length&&t.workspace?.isRoot&&(a.dist=t.fs.join(n,e.build.directory)),Ed(a,t,n)}x(Dd,`getSettings`);async function Od(e,t){if(e.frameworks===void 0)throw Error(`Please run the framework detection before calling the build settings!`);let n=t??e.relativeBaseDirectory??``,r=[];if(e.logger.debug(`[get-build-settings.ts] getBuildSettings for baseDirectory: ${n}`),e.workspace&&e.workspace.packages.length>0&&n.length===0)for(let[t,n]of[...e.frameworks.entries()])for(let i of n)r.push(Dd(i,e,t));else for(let t of e.frameworks.get(n)||[])r.push(Dd(t,e,n));return(await Promise.all(r)).filter(Boolean)}x(Od,`getBuildSettings`);var kd=class{static{x(this,`Project`)}fs;root;baseDirectory;relativeBaseDirectory;packageManager;jsWorkspaceRoot;workspace;buildSystems;settings;frameworks;runtimes;#e={};bugsnag;logger;reportFn=cd;events=new ad;_nodeVersion=null;setNodeVersion(e){return this._nodeVersion=(0,tl.parse)((0,tl.coerce)(e),{loose:!0}),this}async getCurrentNodeVersion(){if(this._nodeVersion)return this._nodeVersion;let e=(0,tl.parse)((0,tl.coerce)(this.getEnv(`NODE_VERSION`)),{loose:!0});if(e)return e;let t=await this.fs.gracefullyReadFile(`.nvmrc`);if(t)return(0,tl.parse)((0,tl.coerce)(t,{loose:!0}));let n=await this.fs.gracefullyReadFile(`.node_version`);return n?(0,tl.parse)((0,tl.coerce)(n,{loose:!0})):null}async isRedwoodProject(){return await this.fs.fileExists(this.fs.resolve(this.fs.cwd,`redwood.toml`))}constructor(e,t,n){this.fs=e,this.baseDirectory=e.resolve(n||``,t===void 0?e.cwd:t),this.root=n?e.resolve(e.cwd,n):void 0,this.relativeBaseDirectory=t!==void 0&&!e.isAbsolute(t)?t:e.relative(this.root||e.cwd,this.baseDirectory),this.fs.cwd=this.baseDirectory,this.logger=e.logger}setEnvironment(e){return this.#e=e,this}setReportFn(e){return this.reportFn=e,this}setBugsnag(e){return e&&(this.bugsnag=e),this}getEnv(e){return this.#e[e]}report(e,t={}){this.fs.logger.error(e),this.reportFn(e,{metadata:{build:{baseDirectory:this.baseDirectory,root:this.root},...t.metadata||{}},context:t.context,severity:t.severity,client:this.bugsnag})}getNpmScriptCommand(e){return`${this.packageManager?.runCommand||ud.npm.runCommand} ${e}`}async getRootPackageJSON(){let e=(await this.fs.findUpMultiple(`package.json`,{cwd:this.baseDirectory,stopAt:this.root})).pop();return e?(this.jsWorkspaceRoot=this.fs.dirname(e),this.fs.readJSON(e)):{}}async getPackageJSON(e){let t=await this.fs.findUp(`package.json`,{cwd:e||this.baseDirectory,stopAt:this.root});if(t){let e=await this.fs.readJSON(t);return Object.assign(e,{pkgPath:t})}return{pkgPath:null}}resolveFromPackage(e,...t){return this.jsWorkspaceRoot?this.fs.join(this.jsWorkspaceRoot,e,...t):this.baseDirectory.endsWith(e)&&!this.workspace?.isRoot?this.fs.join(this.baseDirectory,...t):this.fs.resolve(e,...t)}async detectPackageManager(e){if(this.logger.debug(`[project.ts]: detectPackageManager`),this.packageManager!==void 0)return this.packageManager;try{return this.packageManager=await pd(this,e),await this.events.emit(`detectPackageManager`,this.packageManager),this.packageManager}catch{return null}}async detectWorkspaces(){if(this.logger.debug(`[project.ts]: detectWorkspaces`),this.workspace!==void 0)return this.workspace;await this.detectPackageManager();try{return this.workspace=await $u(this),await this.events.emit(`detectWorkspaces`,this.workspace),this.workspace}catch(e){return this.report(e),null}}async detectBuildSystem(){if(this.logger.debug(`[project.ts]: detectBuildSystem`),this.buildSystems!==void 0)return this.buildSystems;await this.detectWorkspaces();try{return this.buildSystems=(await Promise.all(id.map(e=>new e(this).detect()))).filter(Boolean),await this.events.emit(`detectBuildsystems`,this.buildSystems),this.buildSystems}catch(e){return this.report(e),[]}}async detectRuntime(){this.logger.debug(`[project.ts]: detectRuntime`);try{return this.runtimes=(await Promise.all(Td.map(e=>new e(this).detect()))).filter(Boolean),this.events.emit(`detectRuntimes`,this.runtimes),this.runtimes}catch(e){return this.report(e),[]}}async detectFrameworks(){if(this.logger.debug(`[project.ts]: detectFrameworks`),this.frameworks!==void 0)return[...this.frameworks.values()].flat();try{return await this.detectBuildSystem(),this.frameworks=new Map,this.workspace?await Promise.all(this.workspace.packages.map(async({path:e,forcedFramework:t})=>{if(t)try{let n=await el(t,this);this.frameworks.set(e,[n])}catch{}else if(this.workspace){let t=await this.detectFrameworksInPath(this.fs.join(this.workspace.rootDir,e));this.frameworks.set(e,t)}})):this.frameworks.set(``,await this.detectFrameworksInPath()),await this.events.emit(`detectFrameworks`,this.frameworks),[...this.frameworks.values()].flat()}catch(e){return this.report(e),null}}async detectFrameworksInPath(e){this.logger.debug(`[project.ts]: detectFrameworksInPath - ${e}`);try{return ks((await Promise.all($c.map(t=>new t(this,e).detect()))).filter(Boolean))}catch{return[]}}async getBuildSettings(e){if(this.logger.debug(`[project.ts]: getBuildSettings`),this.settings!==void 0)return this.settings;this.settings=[];try{await this.detectFrameworks(),this.settings=await Od(this,e),await this.events.emit(`detectSettings`,this.settings)}catch(e){this.report(e)}return this.settings}},Ad=class{static{x(this,`Node`)}value;next;constructor(e){this.value=e}},jd=class{static{x(this,`Queue`)}#e;#t;#n;constructor(){this.clear()}enqueue(e){let t=new Ad(e);this.#e?(this.#t.next=t,this.#t=t):(this.#e=t,this.#t=t),this.#n++}dequeue(){let e=this.#e;if(e)return this.#e=this.#e.next,this.#n--,e.value}clear(){this.#e=void 0,this.#t=void 0,this.#n=0}get size(){return this.#n}*[Symbol.iterator](){let e=this.#e;for(;e;)yield e.value,e=e.next}};function Md(e){if(!((Number.isInteger(e)||e===1/0)&&e>0))throw TypeError("Expected `concurrency` to be a number from 1 and up");let t=new jd,n=0,r=x(()=>{n--,t.size>0&&t.dequeue()()},`next`),i=x(async(e,t,i)=>{n++;let a=(async()=>e(...i))();t(a);try{await a}catch{}r()},`run`),a=x((r,a,o)=>{t.enqueue(i.bind(void 0,r,a,o)),(async()=>{await Promise.resolve(),n<e&&t.size>0&&t.dequeue()()})()},`enqueue`),o=x((e,...t)=>new Promise(n=>{a(e,n,t)}),`generator`);return Object.defineProperties(o,{activeCount:{get:x(()=>n,`get`)},pendingCount:{get:x(()=>t.size,`get`)},clearQueue:{value:x(()=>{t.clear()},`value`)}}),o}x(Md,`pLimit`);var Nd=class extends Error{static{x(this,`EndError`)}constructor(e){super(),this.value=e}},Pd=x(async(e,t)=>t(await e),`testElement`),Fd=x(async e=>{let t=await Promise.all(e);if(t[1]===!0)throw new Nd(t[0]);return!1},`finder`);async function Id(e,t,{concurrency:n=1/0,preserveOrder:r=!0}={}){let i=Md(n),a=[...e].map(e=>[e,i(Pd,e,t)]),o=Md(r?1:1/0);try{await Promise.all(a.map(e=>o(Fd,e)))}catch(e){if(e instanceof Nd)return e.value;throw e}}x(Id,`pLocate`);var Ld={directory:`isDirectory`,file:`isFile`};function Rd(e){if(!Object.hasOwnProperty.call(Ld,e))throw Error(`Invalid type specified: ${e}`)}x(Rd,`checkType`);var zd=x((e,t)=>t[Ld[e]](),`matchType`),Bd=x(e=>e instanceof URL?be(e):e,`toPath`);async function Vd(e,{cwd:t=xe.cwd(),type:n=`file`,allowSymlinks:r=!0,concurrency:i,preserveOrder:a}={}){Rd(n),t=Bd(t);let o=r?me.stat:me.lstat;return Id(e,async e=>{try{return zd(n,await o(z.resolve(t,e)))}catch{return!1}},{concurrency:i,preserveOrder:a})}x(Vd,`locatePath`);function Hd(e){return e instanceof URL?be(e):e}x(Hd,`toPath`);var Ud=Symbol(`findUpStop`);async function Wd(e,t={}){let n=z.resolve(Hd(t.cwd)??``),{root:r}=z.parse(n),i=z.resolve(n,Hd(t.stopAt??r)),a=t.limit??1/0,o=[e].flat(),s=x(async t=>{if(typeof e!=`function`)return Vd(o,t);let n=await e(t.cwd);return typeof n==`string`?Vd([n],t):n},`runMatcher`),c=[];for(;;){let e=await s({...t,cwd:n});if(e===Ud||(e&&c.push(z.resolve(n,e)),n===i||c.length>=a))break;n=z.dirname(n)}return c}x(Wd,`findUpMultiple`);async function Gd(e,t={}){return(await Wd(e,{...t,limit:1}))[0]}x(Gd,`findUp`);var Kd=class extends fs{static{x(this,`NodeFS`)}constructor(){super(),this.cwd=process.cwd()}getEnvironment(){return`node`}isAbsolute(e){return L(e)}dirname(e){return se(e)}resolve(...e){return ue(...e)}relative(e,t){return le(e,t)}basename(e){return I(e)}join(...e){return ce(...e)}async fileExists(e){try{return await de.stat(ue(e)),!0}catch{return!1}}async readDir(e,t){try{return t?(await de.readdir(ue(e),{withFileTypes:!0})).reduce((e,t)=>({...e,[t.name]:t.isDirectory()?`directory`:`file`}),{}):de.readdir(ue(e))}catch{return[]}}async readFile(e){return(await de.readFile(ue(e),`utf-8`)).toString()}findUp(e,t={}){return Gd(e,t)}findUpMultiple(e,t={}){return Wd(e,t)}},qd=10,Jd=x((e=0)=>t=>`\x1B[${t+e}m`,`wrapAnsi16`),Yd=x((e=0)=>t=>`\x1B[${38+e};5;${t}m`,`wrapAnsi256`),Xd=x((e=0)=>(t,n,r)=>`\x1B[${38+e};2;${t};${n};${r}m`,`wrapAnsi16m`),Q={modifier:{reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],overline:[53,55],inverse:[7,27],hidden:[8,28],strikethrough:[9,29]},color:{black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],blackBright:[90,39],gray:[90,39],grey:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39]},bgColor:{bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgBlackBright:[100,49],bgGray:[100,49],bgGrey:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]}};Object.keys(Q.modifier);var Zd=Object.keys(Q.color),Qd=Object.keys(Q.bgColor);[...Zd,...Qd];function $d(){let e=new Map;for(let[t,n]of Object.entries(Q)){for(let[t,r]of Object.entries(n))Q[t]={open:`\x1B[${r[0]}m`,close:`\x1B[${r[1]}m`},n[t]=Q[t],e.set(r[0],r[1]);Object.defineProperty(Q,t,{value:n,enumerable:!1})}return Object.defineProperty(Q,`codes`,{value:e,enumerable:!1}),Q.color.close=`\x1B[39m`,Q.bgColor.close=`\x1B[49m`,Q.color.ansi=Jd(),Q.color.ansi256=Yd(),Q.color.ansi16m=Xd(),Q.bgColor.ansi=Jd(qd),Q.bgColor.ansi256=Yd(qd),Q.bgColor.ansi16m=Xd(qd),Object.defineProperties(Q,{rgbToAnsi256:{value(e,t,n){return e===t&&t===n?e<8?16:e>248?231:Math.round((e-8)/247*24)+232:16+36*Math.round(e/255*5)+6*Math.round(t/255*5)+Math.round(n/255*5)},enumerable:!1},hexToRgb:{value(e){let t=/[a-f\d]{6}|[a-f\d]{3}/i.exec(e.toString(16));if(!t)return[0,0,0];let[n]=t;n.length===3&&(n=[...n].map(e=>e+e).join(``));let r=Number.parseInt(n,16);return[r>>16&255,r>>8&255,r&255]},enumerable:!1},hexToAnsi256:{value:x(e=>Q.rgbToAnsi256(...Q.hexToRgb(e)),`value`),enumerable:!1},ansi256ToAnsi:{value(e){if(e<8)return 30+e;if(e<16)return 90+(e-8);let t,n,r;if(e>=232)t=((e-232)*10+8)/255,n=t,r=t;else{e-=16;let i=e%36;t=Math.floor(e/36)/5,n=Math.floor(i/6)/5,r=i%6/5}let i=Math.max(t,n,r)*2;if(i===0)return 30;let a=30+(Math.round(r)<<2|Math.round(n)<<1|Math.round(t));return i===2&&(a+=60),a},enumerable:!1},rgbToAnsi:{value:x((e,t,n)=>Q.ansi256ToAnsi(Q.rgbToAnsi256(e,t,n)),`value`),enumerable:!1},hexToAnsi:{value:x(e=>Q.ansi256ToAnsi(Q.hexToAnsi256(e)),`value`),enumerable:!1}}),Q}x($d,`assembleStyles`);var ef=$d();function tf(e,t=globalThis.Deno?globalThis.Deno.args:xe.argv){let n=e.startsWith(`-`)?``:e.length===1?`-`:`--`,r=t.indexOf(n+e),i=t.indexOf(`--`);return r!==-1&&(i===-1||r<i)}x(tf,`hasFlag`);var{env:$}=xe,nf;tf(`no-color`)||tf(`no-colors`)||tf(`color=false`)||tf(`color=never`)?nf=0:(tf(`color`)||tf(`colors`)||tf(`color=true`)||tf(`color=always`))&&(nf=1);function rf(){if(`FORCE_COLOR`in $)return $.FORCE_COLOR===`true`?1:$.FORCE_COLOR===`false`?0:$.FORCE_COLOR.length===0?1:Math.min(Number.parseInt($.FORCE_COLOR,10),3)}x(rf,`envForceColor`);function af(e){return e===0?!1:{level:e,hasBasic:!0,has256:e>=2,has16m:e>=3}}x(af,`translateLevel`);function of(e,{streamIsTTY:t,sniffFlags:n=!0}={}){let r=rf();r!==void 0&&(nf=r);let i=n?nf:r;if(i===0)return 0;if(n){if(tf(`color=16m`)||tf(`color=full`)||tf(`color=truecolor`))return 3;if(tf(`color=256`))return 2}if(`TF_BUILD`in $&&`AGENT_NAME`in $)return 1;if(e&&!t&&i===void 0)return 0;let a=i||0;if($.TERM===`dumb`)return a;if(xe.platform===`win32`){let e=Se.release().split(`.`);return Number(e[0])>=10&&Number(e[2])>=10586?Number(e[2])>=14931?3:2:1}if(`CI`in $)return`GITHUB_ACTIONS`in $||`GITEA_ACTIONS`in $?3:[`TRAVIS`,`CIRCLECI`,`APPVEYOR`,`GITLAB_CI`,`BUILDKITE`,`DRONE`].some(e=>e in $)||$.CI_NAME===`codeship`?1:a;if(`TEAMCITY_VERSION`in $)return+!!/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test($.TEAMCITY_VERSION);if($.COLORTERM===`truecolor`||$.TERM===`xterm-kitty`)return 3;if(`TERM_PROGRAM`in $){let e=Number.parseInt(($.TERM_PROGRAM_VERSION||``).split(`.`)[0],10);switch($.TERM_PROGRAM){case`iTerm.app`:return e>=3?3:2;case`Apple_Terminal`:return 2}}return/-256(color)?$/i.test($.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test($.TERM)||`COLORTERM`in $?1:a}x(of,`_supportsColor`);function sf(e,t={}){return af(of(e,{streamIsTTY:e&&e.isTTY,...t}))}x(sf,`createSupportsColor`);var cf={stdout:sf({isTTY:we.isatty(1)}),stderr:sf({isTTY:we.isatty(2)})};function lf(e,t,n){let r=e.indexOf(t);if(r===-1)return e;let i=t.length,a=0,o=``;do o+=e.slice(a,r)+t+n,a=r+i,r=e.indexOf(t,a);while(r!==-1);return o+=e.slice(a),o}x(lf,`stringReplaceAll`);function uf(e,t,n,r){let i=0,a=``;do{let o=e[r-1]===`\r`;a+=e.slice(i,o?r-1:r)+t+(o?`\r
481
+ ${n.stack}`),this.logger.error(r),{}}}async findUp(e,t={}){let n=this.resolve(t.cwd||this.cwd),r=x(async()=>{let i=await this.readDir(n,!0),a=Object.entries(i).find(([n,r])=>{if(typeof e==`string`&&n===e||Array.isArray(e)&&e.includes(n))return t.type&&t.type,n});if(a?.[0])return this.join(n,a[0]);if(!(n===`/`||t.stopAt&&this.resolve(t.stopAt)===n))return n=this.join(n,`..`),r()},`readUp`);return r()}async findUpMultiple(e,t={}){let n=this.resolve(t.cwd||this.cwd),r=[],i=x(async()=>{let a=await this.readDir(n,!0);for(let[i,o]of Object.entries(a))(typeof e==`string`&&i===e||Array.isArray(e)&&e.includes(i))&&(t.type&&t.type===o||!t.type)&&r.push(this.resolve(n,i));return n===`/`||t.stopAt&&this.resolve(t.stopAt)===n?r:(n=this.join(n,`..`),i())},`readUp`);return i()}},ms=T(Fr(),1),hs=[`dev`,`serve`,`develop`,`start`,`run`,`web`],gs=[`netlify dev`],_s=[`build`],vs=[`netlify build`],ys=x(e=>gs.some(t=>e.includes(t)),`isExcludedDevScript`),bs=x(e=>vs.some(t=>e.includes(t)),`isExcludedBuildScript`),xs=x((e,t)=>e===t||e.endsWith(`:${t}`),`isScript`),Ss=x(e=>e===-1?2**53-1:e,`getSortIndex`),Cs=x(e=>(t,n)=>{let r=e.findIndex(e=>xs(t,e)),i=e.findIndex(e=>xs(n,e));return Ss(r)-Ss(i)},`sortScriptsByRelevance`),ws=x((e,t)=>hs.some(n=>xs(e,n)&&!ys(t)),`isNpmDevScript`),Ts=x((e,t)=>_s.some(n=>xs(e,n)&&!bs(t)),`isNpmBuildScript`);function Es(e,t={}){let n=Object.entries(t).filter(([,t])=>t.includes(e)).map(([e])=>e).sort(Cs(hs));return n.length>0?n:Object.keys(t).filter(e=>ws(e,t[e])).sort(Cs(hs))}x(Es,`getDevCommands`);function Ds(e,t={}){let n=Object.entries(t).filter(([,t])=>t.includes(e)).map(([e])=>e).sort(Cs(_s));return n.length>0?n:Object.keys(t).filter(e=>Ts(e,t[e])).sort(Cs(_s))}x(Ds,`getBuildCommands`);var X;(function(e){e.BackendFramework=`backend_framework`,e.FrontendFramework=`frontend_framework`,e.SSG=`static_site_generator`,e.BuildTool=`build_tool`})(X||={});var Os;(function(e){e[e.Forced=5]=`Forced`,e[e.NPM=4]=`NPM`,e[e.ConfigOnly=3]=`ConfigOnly`,e[e.Config=2]=`Config`,e[e.NPMHoisted=1]=`NPMHoisted`})(Os||={});var ks;(function(e){e.NodeModules=`node_modules`,e.PackageJSONPinned=`package_json_pinned`,e.PackageJSON=`package_json`})(ks||={});function As(e){let t=[];for(let n of e.sort(js))(t.length===0||t[0].detected.accuracy===n.detected.accuracy)&&t.push(n);return t}x(As,`filterByRelevance`);function js(e,t){let n=t.detected.accuracy-e.detected.accuracy;if(n===0){let n=[X.BackendFramework,X.FrontendFramework,X.BuildTool,X.SSG];return n.indexOf(t.category)-n.indexOf(e.category)}return n}x(js,`sortFrameworksBasedOnAccuracy`);function Ms(e){let t=e.filter(x(function(e){return!!e},`isDetection`)).sort((e,t)=>e.accuracy>t.accuracy?-1:+(e.accuracy<t.accuracy));if(t.length!==0)return t.slice(1).reduce((e,t)=>(e.config=e.config??t.config,e.configName=e.configName??t.configName,e.package=e.package??t.package,e.packageJSON=e.packageJSON??t.packageJSON,e),t[0])}x(Ms,`mergeDetections`);var Z=class{static{x(this,`BaseFramework`)}project;path;id;name;category;detected;version;configFiles=[];npmDependencies=[];excludedNpmDependencies=[];plugins=[];staticAssetsDirectory;env={};dev;build={command:`npm run build`,directory:`dist`};logo;constructor(e,t){this.project=e,this.path=t,e.packageManager?.runCommand&&(this.build.command=`${e.packageManager.runCommand} build`)}setDetected(e,t){return this.detected={accuracy:e},typeof t==`string`?this.detected.config=t:this.detected.package=t,this}async getVersionFromNodeModules(e){if(this.project.fs.getEnvironment()!==`browser`)try{let t=await this.project.fs.findUp(this.project.fs.join(`node_modules`,e,`package.json`),{cwd:this.path||this.project.baseDirectory,stopAt:this.project.root});if(t){let{version:e}=await this.project.fs.readJSON(t);if(typeof e==`string`)return(0,ms.parse)(e)||void 0}}catch{}}async npmDependenciesUsed(e){let t={...e.dependencies??{},...e.devDependencies??{}},n=Object.keys(t).find(e=>this.npmDependencies.includes(e));if(!Object.keys(t).some(e=>this.excludedNpmDependencies.includes(e))&&n!=null){let e=await this.getVersionFromNodeModules(n);if(e)return{name:n,version:e,versionAccuracy:ks.NodeModules};let r=t[n],i=(0,ms.parse)(r);if(i)return{name:n,version:i,versionAccuracy:ks.PackageJSONPinned};let a=(0,ms.parse)((0,ms.coerce)(r))||void 0;return a?{name:n,version:a,versionAccuracy:ks.PackageJSON}:{name:n,version:void 0,versionAccuracy:void 0}}}async detectNpmDependency(){if(this.npmDependencies.length){let e=this.path||this.project.baseDirectory,t=await this.project.getPackageJSON(e),n=await this.npmDependenciesUsed(t);if(n)return this.version=n.version,{accuracy:this.project.fs.join(e,`package.json`)===t.pkgPath?Os.NPM:Os.NPMHoisted,package:n,packageJSON:t}}}async detectConfigFile(e){if(e.length){let t=await this.project.fs.findUp(e,{cwd:this.path||this.project.baseDirectory,stopAt:this.project.root});if(t)return{accuracy:this.npmDependencies.length===0?Os.ConfigOnly:Os.Config,config:t,configName:this.project.fs.basename(t)}}}async detect(){let e=await this.detectNpmDependency(),t=await this.detectConfigFile(this.configFiles??[]);if(this.detected=Ms([this.detected?.accuracy===Os.Forced?this.detected:void 0,e,t]),this.detected)return this}getDevCommands(){if(this.dev?.command===void 0)return[];let e=Es(this.dev.command,this.detected?.packageJSON?.scripts);return e.length>0?e.map(e=>this.project.getNpmScriptCommand(e)):[this.dev.command]}getBuildCommands(){let e=Ds(this.build.command,this.detected?.packageJSON?.scripts);return e.length>0?e.map(e=>this.project.getNpmScriptCommand(e)):[this.build.command]}toJSON(){return{id:this.id,name:this.name,package:{name:this.detected?.package?.name||this.npmDependencies?.[0],version:this.detected?.package?.version?.raw||`unknown`,versionAccuracy:this.detected?.package?.versionAccuracy},category:this.category,dev:{commands:this.getDevCommands(),port:this.dev?.port,pollingStrategies:this.dev?.pollingStrategies},build:{commands:[this.build.command],directory:this.build.directory},staticAssetsDirectory:this.staticAssetsDirectory,env:this.env,logo:this.logo?Object.entries(this.logo).reduce((e,[t,n])=>({...e,[t]:`https://framework-info.netlify.app${n}`}),{}):void 0,plugins:this.plugins}}},Ns=class extends Z{static{x(this,`Analog`)}id=`analog`;name=`Analog`;configFiles=[];npmDependencies=[`@analogjs/platform`];category=X.SSG;dev={port:5173,command:`ng serve`,pollingStrategies:[{name:`TCP`}]};build={command:`ng build --prod`,directory:`dist/analog/public`};logo={default:`/logos/analog/default.svg`,light:`/logos/analog/default.svg`,dark:`/logos/analog/default.svg`}},Ps=T(Fr(),1),Fs=class extends Z{static{x(this,`Angular`)}id=`angular`;name=`Angular`;configFiles=[`angular.json`];npmDependencies=[`@angular/cli`];excludedNpmDependencies=[`@analogjs/platform`];category=X.FrontendFramework;dev={port:4200,command:`ng serve`,pollingStrategies:[{name:`TCP`}]};build={command:`ng build --prod`,directory:`dist/`};logo={default:`/logos/angular/default.svg`,light:`/logos/angular/default.svg`,dark:`/logos/angular/default.svg`};async detect(){if(await super.detect(),this.detected){if(this.version&&(0,Ps.gte)(this.version,`17.0.0-rc`)&&!process.env.NETLIFY_ANGULAR_PLUGIN_SKIP){this.plugins.push(`@netlify/angular-runtime`);let e=await this.project.fs.gracefullyReadFile(`angular.json`);if(e){let{projects:t,defaultProject:n}=JSON.parse(e),r=t[n??Object.keys(t)[0]],i=r?.architect?.build?.options?.outputPath;if(i){let e=r?.architect?.build?.builder?.endsWith(`:application`);this.build.directory=e?this.project.fs.join(i,`browser`):i}}}return this}}},Is=class extends Z{static{x(this,`Assemble`)}id=`assemble`;name=`Assemble`;npmDependencies=[`assemble`];category=X.SSG;build={command:`grunt build`,directory:`dist`};logo={default:`/logos/assemble/default.png`,light:`/logos/assemble/default.png`,dark:`/logos/assemble/default.png`}},Ls=T(Fr(),1),Rs=class extends Z{static{x(this,`Astro`)}id=`astro`;name=`Astro`;configFiles=[`astro.config.mjs`];npmDependencies=[`astro`];category=X.SSG;staticAssetsDirectory=`public`;dev={port:4321,command:`astro dev`,pollingStrategies:[{name:`TCP`}]};build={command:`astro build`,directory:`dist`};logo={default:`/logos/astro/light.svg`,light:`/logos/astro/light.svg`,dark:`/logos/astro/dark.svg`};async detect(){if(await super.detect(),this.detected)return this.version&&(0,Ls.lt)(this.version,`3.0.0`)&&(this.dev.port=3e3),this}},zs=class extends Z{static{x(this,`Blitz`)}id=`blitz`;name=`Blitz.js`;npmDependencies=[`blitz`];category=X.SSG;dev={command:`blitz dev`,port:3e3,pollingStrategies:[{name:`TCP`}]};build={command:`blitz build`,directory:`out`};logo={default:`/logos/blitz/light.svg`,light:`/logos/blitz/light.svg`,dark:`/logos/blitz/dark.svg`}},Bs=class extends Z{static{x(this,`Brunch`)}id=`brunch`;name=`Brunch`;npmDependencies=[`brunch`];configFiles=[`brunch-config.js`];category=X.BuildTool;dev={command:`brunch watch --server`,port:3333,pollingStrategies:[{name:`TCP`}]};build={command:`brunch build`,directory:`public`};logo={default:`/logos/brunch/default.svg`,light:`/logos/brunch/default.svg`,dark:`/logos/brunch/default.svg`}},Vs=class extends Z{static{x(this,`Cecil`)}id=`cecil`;name=`Cecil`;configFiles=[`config.yml`];category=X.SSG;dev={command:`cecil serve`,port:8e3,pollingStrategies:[{name:`TCP`}]};build={command:`cecil build`,directory:`_site`};logo={default:`/logos/cecil/default.svg`,light:`/logos/cecil/default.svg`,dark:`/logos/cecil/default.svg`}},Hs=class extends Z{static{x(this,`DocPad`)}id=`docpad`;name=`DocPad`;npmDependencies=[`docpad`];category=X.SSG;dev={command:`docpad run`,port:9778,pollingStrategies:[{name:`TCP`}]};build={command:`docpad generate`,directory:`out`}},Us=class extends Z{static{x(this,`Docusaurus`)}id=`docusaurus`;name=`Docusaurus`;configFiles=[`docusaurus.config.js`,`siteConfig.js`];npmDependencies=[`@docusaurus/core`,`docusaurus`];category=X.SSG;staticAssetsDirectory=`static`;dev={command:`docusaurus start`,port:3e3,pollingStrategies:[{name:`TCP`}]};build={command:`docusaurus build`,directory:`build`};logo={default:`/logos/docusaurus/default.svg`,light:`/logos/docusaurus/default.svg`,dark:`/logos/docusaurus/default.svg`};env={BROWSER:`none`};async detect(){if(await super.detect(),this.detected)return this.isV1(this.detected)&&(this.build.command=`docusaurus-build`,this.build.directory=`build/<project-name>`,this.dev.command=`docusaurus-start`),this}isV1(e){return e.config?.endsWith(`siteConfig.js`)||e.package?.name===`docusaurus`}},Ws=class extends Z{static{x(this,`Eleventy`)}id=`eleventy`;name=`Eleventy`;configFiles=[`.eleventy.js`,`eleventy.config.js`,`eleventy.config.cjs`];npmDependencies=[`@11ty/eleventy`];category=X.SSG;dev={command:`eleventy --serve`,port:8080,pollingStrategies:[{name:`TCP`}]};build={command:`eleventy`,directory:`_site`};logo={default:`/logos/eleventy/default.svg`,light:`/logos/eleventy/light.svg`,dark:`/logos/eleventy/dark.svg`}},Gs=class extends Z{static{x(this,`Ember`)}id=`ember`;name=`Ember.js`;configFiles=[`ember-cli-build.js`];npmDependencies=[`ember-cli`];category=X.FrontendFramework;dev={command:`ember serve`,port:4200,pollingStrategies:[{name:`TCP`}]};build={command:`ember build`,directory:`dist`};logo={default:`/logos/ember/default.svg`,light:`/logos/ember/light.svg`,dark:`/logos/ember/dark.svg`}},Ks=class extends Z{static{x(this,`Expo`)}id=`expo`;name=`Expo`;configFiles=[`app.json`];npmDependencies=[`expo`];category=X.FrontendFramework;dev={command:`expo start --web`,port:19006,pollingStrategies:[{name:`TCP`}]};build={command:`expo export -p web`,directory:`dist`};logo={default:`/logos/expo/default.svg`,light:`/logos/expo/light.svg`,dark:`/logos/expo/dark.svg`}},qs=T(Fr(),1),Js=class extends Z{static{x(this,`Gatsby`)}id=`gatsby`;name=`Gatsby`;configFiles=[`gatsby-config.js`,`gatsby-config.ts`];npmDependencies=[`gatsby`];category=X.SSG;staticAssetsDirectory=`static`;dev={command:`gatsby develop`,port:8e3,pollingStrategies:[{name:`TCP`}]};build={command:`gatsby build`,directory:`public`};logo={default:`/logos/gatsby/default.svg`,light:`/logos/gatsby/light.svg`,dark:`/logos/gatsby/dark.svg`};env={GATSBY_LOGGER:`yurnalist`,GATSBY_PRECOMPILE_DEVELOP_FUNCTIONS:`true`,AWS_LAMBDA_JS_RUNTIME:`nodejs14.x`,NODE_VERSION:`14`};async detect(){if(await super.detect(),this.detected){this.version&&(0,qs.gte)(this.version,`5.0.0`)&&(this.env.NODE_VERSION=`18`,this.env.AWS_LAMBDA_JS_RUNTIME=`nodejs18.x`);let e=await this.project.getCurrentNodeVersion();return e&&(0,qs.gte)(e,`12.13.0`)&&!process.env.NETLIFY_SKIP_GATSBY_BUILD_PLUGIN&&this.plugins.push(`@netlify/plugin-gatsby`),this}}},Ys=class extends Z{static{x(this,`Gridsome`)}id=`gridsome`;name=`Gridsome`;configFiles=[`gridsome.config.js`];npmDependencies=[`gridsome`];category=X.SSG;dev={command:`gridsome develop`,port:8080,pollingStrategies:[{name:`TCP`}]};build={command:`gridsome build`,directory:`dist`};logo={default:`/logos/gridsome/default.svg`,light:`/logos/gridsome/light.svg`,dark:`/logos/gridsome/dark.svg`}},Xs=class extends Z{static{x(this,`Grunt`)}id=`grunt`;name=`Grunt`;npmDependencies=[`grunt`];category=X.BuildTool;build={command:`grunt build`,directory:`dist`};logo={default:`/logos/grunt/default.svg`,light:`/logos/grunt/default.svg`,dark:`/logos/grunt/default.svg`}},Zs=class extends Z{static{x(this,`Gulp`)}id=`gulp`;name=`gulp.js`;npmDependencies=[`gulp`];category=X.BuildTool;build={command:`gulp build`,directory:`dist`};logo={default:`/logos/gulp/default.svg`,light:`/logos/gulp/default.svg`,dark:`/logos/gulp/default.svg`}},Qs=class extends Z{static{x(this,`Harp`)}id=`harp`;name=`Harp`;npmDependencies=[`harp`];category=X.SSG;dev={command:`harp server`,port:9e3,pollingStrategies:[{name:`TCP`}]};build={command:`harp compile`,directory:`www`};logo={default:`/logos/harp/default.svg`,light:`/logos/harp/light.svg`,dark:`/logos/harp/default.svg`}},$s=class extends Z{static{x(this,`Hexo`)}id=`hexo`;name=`Hexo`;configFiles=[`_config.yml`];npmDependencies=[`hexo`];category=X.SSG;dev={command:`hexo server`,port:4e3,pollingStrategies:[{name:`TCP`}]};build={command:`hexo generate`,directory:`public`};logo={default:`/logos/hexo/default.svg`,light:`/logos/hexo/light.svg`,dark:`/logos/hexo/dark.svg`}},ec=class extends Z{static{x(this,`Hono`)}id=`hono`;name=`Hono`;npmDependencies=[`hono`];category=X.BackendFramework;logo={default:`/logos/hono/default.svg`,light:`/logos/hono/default.svg`,dark:`/logos/hono/default.svg`}},tc=class extends Z{static{x(this,`Hugo`)}id=`hugo`;name=`Hugo`;configFiles=[`config.json`,`config.toml`,`config.yaml`,`hugo.toml`];category=X.SSG;dev={command:`hugo server -w`,port:1313,pollingStrategies:[{name:`TCP`}]};build={command:`hugo`,directory:`public`};logo={default:`/logos/hugo/default.svg`,light:`/logos/hugo/default.svg`,dark:`/logos/hugo/default.svg`}},nc=[`remix.config.js`],rc={command:`remix dev --manual -c "netlify dev"`},ic={command:`remix build`,directory:`public`},ac=[`vite.config.js`,`vite.config.mjs`,`vite.config.cjs`,`vite.config.ts`,`vite.config.mts`,`vite.config.cts`],oc={command:`shopify hydrogen dev`,port:5173},sc={command:`remix vite:build`,directory:`dist/client`},cc=class extends Z{static{x(this,`Hydrogen`)}id=`hydrogen`;name=`Hydrogen`;npmDependencies=[`@shopify/hydrogen`];configFiles=[...ac,...nc];category=X.SSG;logo={default:`/logos/hydrogen/default.svg`,light:`/logos/hydrogen/default.svg`,dark:`/logos/hydrogen/default.svg`};async detect(){if(await super.detect(),this.detected)return this.detected.configName&&ac.includes(this.detected.configName)?(this.dev=oc,this.build=sc,this):(this.dev=rc,this.build=ic,this)}},lc=class extends Z{static{x(this,`Jekyll`)}id=`jekyll`;name=`Jekyll`;configFiles=[`_config.yml`,`_config.yaml`,`_config.toml`];category=X.SSG;dev={command:`bundle exec jekyll serve -w`,port:4e3,pollingStrategies:[{name:`TCP`}]};build={command:`bundle exec jekyll build`,directory:`_site`};logo={default:`/logos/jekyll/dark.svg`,light:`/logos/jekyll/light.svg`,dark:`/logos/jekyll/dark.svg`}},uc=class extends Z{static{x(this,`Mastra`)}id=`mastra`;name=`Mastra`;npmDependencies=[`@mastra/deployer-netlify`];category=X.BackendFramework;dev={command:`mastra dev`,port:4111};build={command:`mastra build`,directory:`dist`};logo={default:`/logos/mastra/light.svg`,light:`/logos/mastra/light.svg`,dark:`/logos/mastra/dark.svg`}},dc=class extends Z{static{x(this,`Metalsmith`)}id=`metalsmith`;name=`Metalsmith`;npmDependencies=[`metalsmith`];category=X.SSG;build={command:`metalsmith`,directory:`build`};logo={default:`/logos/metalsmith/default.svg`,light:`/logos/metalsmith/default.svg`,dark:`/logos/metalsmith/default.svg`}},fc=class extends Z{static{x(this,`Middleman`)}id=`middleman`;name=`Middleman`;configFiles=[`config.rb`];category=X.SSG;dev={command:`bundle exec middleman server`,port:4567,pollingStrategies:[{name:`TCP`}]};build={command:`bundle exec middleman build`,directory:`build`};logo={default:`/logos/middleman/default.svg`,light:`/logos/middleman/default.svg`,dark:`/logos/middleman/default.svg`}},pc=T(Fr(),1),mc=class extends Z{static{x(this,`Next`)}id=`next`;name=`Next.js`;category=X.SSG;npmDependencies=[`next`];excludedNpmDependencies=[`@nrwl/next`];configFiles=[`next.config.js`,`next.config.mjs`,`next.config.ts`];dev={command:`next`,port:3e3,pollingStrategies:[{name:`TCP`}]};build={command:`next build`,directory:`.next`};logo={default:`/logos/nextjs/light.svg`,light:`/logos/nextjs/light.svg`,dark:`/logos/nextjs/dark.svg`};async detect(){if(await super.detect(),this.detected){let e=await this.project.getCurrentNodeVersion();return e&&(0,pc.gte)(e,`10.13.0`)&&!process.env.NETLIFY_NEXT_PLUGIN_SKIP&&this.plugins.push(`@netlify/plugin-nextjs`),this}}},hc=class extends Z{static{x(this,`Nuxt`)}id=`nuxt`;name=`Nuxt`;npmDependencies=[`nuxt`,`nuxt-edge`,`nuxt3`];category=X.SSG;dev={command:`nuxt dev`,port:3e3,pollingStrategies:[{name:`TCP`}],clearPublishDirectory:!0};build={command:`nuxt build`,directory:`dist`};logo={default:`/logos/nuxt/default.svg`,light:`/logos/nuxt/light.svg`,dark:`/logos/nuxt/dark.svg`};async detect(){if(await super.detect(),this.detected)return this.detected.package?.version?.major!==void 0&&this.detected.package.version.major<3&&(this.build.command=`nuxt generate`,this.dev.command=`nuxt`),this}},gc=class extends Z{static{x(this,`Observable`)}id=`observable`;name=`Observable Framework`;npmDependencies=[`@observablehq/framework`];category=X.SSG;dev={command:`observable preview`,port:3e3,pollingStrategies:[{name:`TCP`}]};build={command:`observable build`,directory:`dist`};logo={default:`/logos/observable/default.svg`,light:`/logos/observable/default.svg`,dark:`/logos/observable/default.svg`}},_c=class extends Z{static{x(this,`Parcel`)}id=`parcel`;name=`Parcel`;npmDependencies=[`parcel-bundler`,`parcel`];category=X.BuildTool;dev={command:`parcel`,port:1234,pollingStrategies:[{name:`TCP`}]};build={command:`parcel build`,directory:`dist`};logo={default:`/logos/parcel/default.svg`,light:`/logos/parcel/default.svg`,dark:`/logos/parcel/default.svg`}},vc=class extends Z{static{x(this,`Phenomic`)}id=`phenomic`;name=`Phenomic`;npmDependencies=[`@phenomic/core`];category=X.SSG;dev={command:`phenomic start`,port:3333,pollingStrategies:[{name:`TCP`}]};build={command:`phenomic build`,directory:`public`};logo={default:`/logos/phenomic/default.svg`,light:`/logos/phenomic/default.svg`,dark:`/logos/phenomic/default.svg`}},yc=class extends Z{static{x(this,`Quasar`)}id=`quasar`;name=`Quasar`;npmDependencies=[`@quasar/app`,`quasar-cli`];category=X.FrontendFramework;dev={command:`quasar dev -p 8081`,port:8081,pollingStrategies:[{name:`TCP`}]};build={command:`quasar build`,directory:`dist/spa`};logo={default:`/logos/quasar/default.svg`,light:`/logos/quasar/default.svg`,dark:`/logos/quasar/default.svg`};async detect(){if(await super.detect(),this.detected)return this.isV017(this.detected)&&(this.name=`Quasar v0.17`,this.build.directory=`.quasar`,this.dev.command=`quasar dev -p 8080`,this.dev.port=8080),this}isV017(e){return e.package?.name===`quasar-cli`}},bc=class extends Z{static{x(this,`Qwik`)}id=`qwik`;name=`Qwik`;npmDependencies=[`@builder.io/qwik`];category=X.SSG;dev={command:`vite`,port:5173,pollingStrategies:[{name:`TCP`}]};logo={default:`/logos/qwik/default.svg`,light:`/logos/qwik/default.svg`,dark:`/logos/qwik/default.svg`}},xc=T(Fr(),1),Sc=class extends Z{static{x(this,`ReactRouter`)}id=`react-router`;name=`React Router`;npmDependencies=[`@react-router/dev`];excludedNpmDependencies=[`@shopify/hydrogen`];configFiles=[`react-router.config.ts`,`react-router.config.js`];category=X.SSG;dev={port:5173,command:`react-router dev`};build={command:`react-router build`,directory:`build/client`};logo={default:`/logos/react-router/light.svg`,light:`/logos/react-router/light.svg`,dark:`/logos/react-router/dark.svg`};async detect(){if(await super.detect(),this.detected)return this.version&&(0,xc.lt)(this.version,`7.0.0`)?void 0:this}},Cc=class extends Z{static{x(this,`ReactStatic`)}id=`react-static`;name=`React Static`;npmDependencies=[`react-static`];configFiles=[`static.config.js`];category=X.SSG;dev={command:`react-static start`,port:3e3,pollingStrategies:[{name:`TCP`}]};build={command:`react-static build`,directory:`dist`};logo={default:`/logos/react-static/default.png`,light:`/logos/react-static/default.png`,dark:`/logos/react-static/default.png`}},wc=class extends Z{static{x(this,`CreateReactApp`)}id=`create-react-app`;name=`Create React App`;npmDependencies=[`react-scripts`];category=X.FrontendFramework;staticAssetsDirectory=`public`;dev={command:`react-scripts start`,port:3e3,pollingStrategies:[{name:`TCP`}]};build={command:`react-scripts build`,directory:`build`};logo={default:`/logos/create-react-app/default.svg`,light:`/logos/create-react-app/default.svg`,dark:`/logos/create-react-app/default.svg`};env={BROWSER:`none`,PORT:`3000`}},Tc=class extends Z{static{x(this,`RedwoodJS`)}id=`redwoodjs`;name=`RedwoodJS`;npmDependencies=[`@redwoodjs/core`];configFiles=[`redwood.toml`];category=X.SSG;staticAssetsDirectory=`public`;dev={command:`yarn rw dev`,port:8910,pollingStrategies:[{name:`TCP`}]};build={command:`rw deploy netlify`,directory:`web/dist`};env={AWS_LAMBDA_JS_RUNTIME:`nodejs20.x`,NODE_VERSION:`20`};logo={default:`/logos/redwoodjs/default.svg`,light:`/logos/redwoodjs/default.svg`,dark:`/logos/redwoodjs/default.svg`}},Ec=[`remix.config.js`],Dc={command:`remix watch`},Oc={command:`remix build`,directory:`public`},kc=[`vite.config.js`,`vite.config.mjs`,`vite.config.cjs`,`vite.config.ts`,`vite.config.mts`,`vite.config.cts`],Ac={command:`remix vite:dev`,port:5173},jc={command:`remix vite:build`,directory:`build/client`},Mc=class extends Z{static{x(this,`Remix`)}id=`remix`;name=`Remix`;npmDependencies=[`@remix-run/react`,`@remix-run/dev`,`@remix-run/server-runtime`,`@netlify/remix-adapter`,`@netlify/remix-edge-adapter`,`@netlify/remix-runtime`,`remix`,`@remix-run/netlify`,`@remix-run/netlify-edge`];excludedNpmDependencies=[`@shopify/hydrogen`];configFiles=[...kc,...Ec];category=X.SSG;logo={default:`/logos/remix/default.svg`,light:`/logos/remix/light.svg`,dark:`/logos/remix/dark.svg`};async detect(){if(await super.detect(),this.detected)return this.detected.configName&&kc.includes(this.detected.configName)?(this.dev=Ac,this.build=jc,this):(this.dev=Dc,this.build=Oc,this)}},Nc=class extends Z{static{x(this,`Roots`)}id=`roots`;name=`Roots`;npmDependencies=[`roots`];category=X.SSG;dev={command:`roots watch`,port:1111,pollingStrategies:[{name:`TCP`}]};build={command:`roots compile`,directory:`public`};logo={default:`/logos/roots/default.svg`,light:`/logos/roots/default.svg`,dark:`/logos/roots/default.svg`}},Pc=class extends Z{static{x(this,`Sapper`)}id=`sapper`;name=`Sapper`;npmDependencies=[`sapper`];category=X.FrontendFramework;staticAssetsDirectory=`static`;dev={command:`sapper dev`,port:3e3,pollingStrategies:[{name:`TCP`}]};build={command:`sapper export`,directory:`__sapper__/export`};logo={default:`/logos/sapper/default.svg`,light:`/logos/sapper/default.svg`,dark:`/logos/sapper/default.svg`}},Fc=class extends Z{static{x(this,`SolidJs`)}id=`solid-js`;name=`SolidJS`;npmDependencies=[`solid-js`];excludedNpmDependencies=[`solid-start`,`@solidjs/start`,`@tanstack/solid-start`];category=X.SSG;dev={command:`vite dev`,port:3e3,pollingStrategies:[{name:`TCP`}]};build={command:`vite build`,directory:`dist`};logo={default:`/logos/solid-js/default.svg`,light:`/logos/solid-js/default.svg`,dark:`/logos/solid-js/dark.svg`}},Ic=`solid-start`,Lc={command:`solid-start dev`,port:3e3},Rc={command:`solid-start build`,directory:`netlify`},zc=class extends Z{static{x(this,`SolidStart`)}id=`solid-start`;name=`Solid Start`;npmDependencies=[`solid-start`,`@solidjs/start`];category=X.SSG;dev={command:`vinxi dev`,port:3e3};build={command:`vinxi build`,directory:`dist`};logo={default:`/logos/solid-start/default.svg`,light:`/logos/solid-start/default.svg`,dark:`/logos/solid-start/dark.svg`};async detect(){if(await super.detect(),this.detected)return this.detected.package?.name===Ic?(this.dev=Lc,this.build=Rc,this):this}},Bc=class extends Z{static{x(this,`Stencil`)}id=`stencil`;name=`Stencil`;npmDependencies=[`@stencil/core`];configFiles=[`stencil.config.ts`];category=X.SSG;dev={command:`stencil build --dev --watch --serve`,port:3333,pollingStrategies:[{name:`TCP`}]};build={command:`stencil build`,directory:`www`};logo={default:`/logos/stencil/light.svg`,light:`/logos/stencil/light.svg`,dark:`/logos/stencil/dark.svg`};env={BROWSER:`none`,PORT:`3000`}},Vc=class extends Z{static{x(this,`SvelteKit`)}id=`svelte-kit`;name=`SvelteKit`;npmDependencies=[`@sveltejs/kit`];category=X.FrontendFramework;staticAssetsDirectory=`static`;dev={command:`vite dev`,port:5173,pollingStrategies:[{name:`TCP`}]};build={command:`vite build`,directory:`build`};logo={default:`/logos/svelte-kit/default.svg`,light:`/logos/svelte-kit/default.svg`,dark:`/logos/svelte-kit/default.svg`}},Hc=class extends Z{static{x(this,`Svelte`)}id=`svelte`;name=`Svelte`;npmDependencies=[`svelte`];excludedNpmDependencies=[`sapper`,`@sveltejs/kit`];category=X.FrontendFramework;staticAssetsDirectory=`static`;dev={command:`npm run dev`,port:5e3,pollingStrategies:[{name:`TCP`}]};build={command:`npm run build`,directory:`public`};logo={default:`/logos/svelte-kit/default.svg`,light:`/logos/svelte-kit/default.svg`,dark:`/logos/svelte-kit/default.svg`}},Uc=class extends Z{static{x(this,`TanStackRouter`)}id=`tanstack-router`;name=`TanStack Router`;npmDependencies=[`@tanstack/react-router`];excludedNpmDependencies=[`@tanstack/start`,`@tanstack/react-start`,`@tanstack/solid-start`];category=X.SSG;dev={command:`vite dev`,port:3e3,pollingStrategies:[{name:`TCP`}]};build={command:`vite build`,directory:`dist`};logo={default:`/logos/tanstack-router/default.png`,light:`/logos/tanstack-router/default.png`,dark:`/logos/tanstack-router/default.png`}},Wc=T(Fr(),1),Gc=class extends Z{static{x(this,`TanStackStart`)}id=`tanstack-start`;name=`TanStack Start`;npmDependencies=[`@tanstack/start`,`@tanstack/react-start`,`@tanstack/solid-start`];category=X.SSG;dev={command:`vite dev`,port:3e3,pollingStrategies:[{name:`TCP`}]};build={command:`vite build`,directory:`dist/client`};logo={default:`/logos/tanstack-start/default.png`,light:`/logos/tanstack-start/default.png`,dark:`/logos/tanstack-start/default.png`};async detect(){if(await super.detect(),this.detected)return this.version&&(0,Wc.lt)(this.version,`1.121.0`)&&(this.dev.command=`vinxi dev`,this.build.command=`vinxi build`),this.version&&(0,Wc.lt)(this.version,`1.132.0`)&&(this.build.directory=`dist`),this}},Kc=class extends Z{static{x(this,`Vike`)}id=`vike`;name=`Vike`;npmDependencies=[`vike`];category=X.SSG;dev={command:`vike dev`,port:3e3};build={command:`vike build`,directory:`dist/client`};logo={default:`/logos/vike/light.svg`,light:`/logos/vite/light.svg`,dark:`/logos/vite/dark.svg`}},qc=class extends Z{static{x(this,`Vite`)}id=`vite`;name=`Vite`;npmDependencies=[`vite`];excludedNpmDependencies=[`@remix-run/react`,`@remix-run/dev`,`@remix-run/server-runtime`,`@shopify/hydrogen`,`@builder.io/qwik`,`solid-start`,`@solidjs/start`,`solid-js`,`@tanstack/react-router`,`@tanstack/start`,`@sveltejs/kit`,`@analogjs/platform`,`@react-router/dev`,`vike`];category=X.BuildTool;dev={command:`vite`,port:5173,pollingStrategies:[{name:`TCP`}]};build={command:`vite build`,directory:`dist`};logo={default:`/logos/vite/default.svg`,light:`/logos/vite/default.svg`,dark:`/logos/vite/default.svg`}},Jc=class extends Z{static{x(this,`VitePress`)}id=`vitepress`;name=`VitePress`;npmDependencies=[`vitepress`];category=X.SSG;dev={command:`vitepress dev docs`,port:5173,pollingStrategies:[{name:`TCP`}]};build={command:`vitepress build docs`,directory:`docs/.vitepress/dist`};logo={default:`/logos/vitepress/default.svg`,light:`/logos/vitepress/default.svg`,dark:`/logos/vitepress/default.svg`}},Yc=class extends Z{static{x(this,`Vue`)}id=`vue`;name=`Vue.js`;npmDependencies=[`@vue/cli-service`];category=X.FrontendFramework;dev={command:`vue-cli-service serve`,port:8080,pollingStrategies:[{name:`TCP`}]};build={command:`vue-cli-service build`,directory:`dist`};logo={default:`/logos/vue/default.svg`,light:`/logos/vue/default.svg`,dark:`/logos/vue/default.svg`}},Xc=class extends Z{static{x(this,`VuePress`)}id=`vuepress`;name=`VuePress`;npmDependencies=[`vuepress`];category=X.SSG;dev={command:`vuepress dev`,port:8080,pollingStrategies:[{name:`TCP`}]};build={command:`vuepress build`,directory:`.vuepress/dist`};logo={default:`/logos/vuepress/default.svg`,light:`/logos/vuepress/default.svg`,dark:`/logos/vuepress/default.svg`}},Zc=class extends Z{static{x(this,`Waku`)}id=`waku`;name=`Waku`;npmDependencies=[`waku`];configFiles=[`waku.config.ts`,`waku.config.js`];category=X.SSG;dev={command:`waku dev`,port:3e3};build={command:`waku build`,directory:`dist/public`};logo={default:`/logos/waku/light.svg`,light:`/logos/waku/light.svg`,dark:`/logos/waku/dark.svg`}},Qc=class extends Z{static{x(this,`Wintersmith`)}id=`wintersmith`;name=`Wintersmith`;npmDependencies=[`wintersmith`];configFiles=[`config.json`];category=X.SSG;dev={command:`wintersmith preview`,port:8080,pollingStrategies:[{name:`TCP`}]};build={command:`wintersmith build`,directory:`build`};logo={default:`/logos/wintersmith/default.svg`,light:`/logos/wintersmith/default.svg`,dark:`/logos/wintersmith/default.svg`}},$c=class extends Z{static{x(this,`WMR`)}id=`wmr`;name=`WMR`;npmDependencies=[`wmr`];category=X.BuildTool;dev={command:`wmr`,port:8080,pollingStrategies:[{name:`TCP`}]};build={command:`wmr build`,directory:`dist`};logo={default:`/logos/wmr/default.svg`,light:`/logos/wmr/default.svg`,dark:`/logos/wmr/default.svg`}},el=[Rs,Us,Ws,Js,Ys,$s,tc,cc,lc,fc,mc,zs,hc,vc,bc,Sc,Cc,Tc,Mc,Fc,zc,Bc,Uc,Gc,Xc,Is,Hs,Qs,dc,Nc,Qc,Vs,class extends Z{static{x(this,`Zola`)}id=`zola`;name=`Zola`;configFiles=[`config.toml`];category=X.SSG;dev={command:`zola serve`,port:1111,pollingStrategies:[{name:`TCP`}]};build={command:`zola build`,directory:`public`}},gc,Ns,Kc,Zc,Jc,ec,uc,Fs,wc,Gs,Ks,yc,Pc,Hc,Vc,Yc,Bs,_c,Zs,Xs,qc,$c];async function tl(e,t){let n=el.map(e=>new e(t)),r=n.find(({id:t})=>t===e);if(r){r.detected={accuracy:Os.Forced};let t=await r.detect();if(t)return t;throw Error(`Forced framework "${e}" was not detected.`)}let i=n.map(({id:e})=>e).sort().join(`, `);throw Error(`Invalid framework "${e}". It should be one of: ${i}`)}x(tl,`getFramework`);var nl=T(Fr(),1),rl=class{static{x(this,`BaseBuildTool`)}project;id;name;version;configFiles=[];runFromRoot;logo;constructor(e){this.project=e}async detect(){let e=await this.project.fs.findUp(this.configFiles,{cwd:this.project.baseDirectory,stopAt:this.project.root});if(e){let t=await this.project.getPackageJSON(this.project.fs.dirname(e));return this.version=t.devDependencies?.[this.id],this}}toJSON(){return{id:this.id,name:this.name,version:this.version,logo:this.logo?Object.entries(this.logo).reduce((e,[t,n])=>({...e,[t]:`https://framework-info.netlify.app${n}`}),{}):void 0}}},il=class extends rl{static{x(this,`Bazel`)}id=`bazel`;name=`Bazel`;configFiles=[`.bazelrc`,`WORKSPACE`,`WORKSPACE.bazel`,`BUILD.bazel`];async detect(){if(await this.project.fs.findUp(this.configFiles,{cwd:this.project.baseDirectory,stopAt:this.project.root}))return this}},al=class extends rl{static{x(this,`Buck`)}id=`buck`;name=`Buck`;configFiles=[`.buckconfig`,`BUCK`];async detect(){if(await this.project.fs.findUp(this.configFiles,{cwd:this.project.baseDirectory,stopAt:this.project.root}))return this}},ol=class extends rl{static{x(this,`Gradle`)}id=`gradle`;name=`Gradle`;configFiles=[`build.gradle`];async detect(){if(await this.project.fs.findUp(this.configFiles,{cwd:this.project.baseDirectory,stopAt:this.project.root}))return this}},sl=class extends rl{static{x(this,`Lage`)}id=`lage`;name=`Lage`;configFiles=[`lage.config.js`]},cl=class extends rl{static{x(this,`Lerna`)}id=`lerna`;name=`Lerna`;configFiles=[`lerna.json`];logo={default:`/logos/lerna/light.svg`,light:`/logos/lerna/light.svg`,dark:`/logos/lerna/dark.svg`}},ll=class extends rl{static{x(this,`Moon`)}id=`moon`;name=`MoonRepo`;configFiles=[`.moon`];async detect(){let e=await this.project.fs.findUp(this.configFiles,{cwd:this.project.baseDirectory,type:`directory`,stopAt:this.project.root});if(e){let t=await this.project.getPackageJSON(e);return this.version=t.devDependencies?.[this.id],this}}},ul=class extends rl{static{x(this,`Nix`)}id=`nix`;name=`Nix`;configFiles=[`default.nix`,`shell.nix`,`release.nix`];async detect(){if(await this.project.fs.findUp(this.configFiles,{cwd:this.project.baseDirectory,stopAt:this.project.root}))return this}},dl=T(Qi(),1),fl=x((e,t,n)=>{let r=e instanceof RegExp?pl(e,n):e,i=t instanceof RegExp?pl(t,n):t,a=r!==null&&i!=null&&ml(r,i,n);return a&&{start:a[0],end:a[1],pre:n.slice(0,a[0]),body:n.slice(a[0]+r.length,a[1]),post:n.slice(a[1]+i.length)}},`balanced`),pl=x((e,t)=>{let n=t.match(e);return n?n[0]:null},`maybeMatch`),ml=x((e,t,n)=>{let r,i,a,o,s,c=n.indexOf(e),l=n.indexOf(t,c+1),u=c;if(c>=0&&l>0){if(e===t)return[c,l];for(r=[],a=n.length;u>=0&&!s;){if(u===c)r.push(u),c=n.indexOf(e,u+1);else if(r.length===1){let e=r.pop();e!==void 0&&(s=[e,l])}else i=r.pop(),i!==void 0&&i<a&&(a=i,o=l),l=n.indexOf(t,u+1);u=c<l&&c>=0?c:l}r.length&&o!==void 0&&(s=[a,o])}return s},`range`),hl=`\0SLASH`+Math.random()+`\0`,gl=`\0OPEN`+Math.random()+`\0`,_l=`\0CLOSE`+Math.random()+`\0`,vl=`\0COMMA`+Math.random()+`\0`,yl=`\0PERIOD`+Math.random()+`\0`,bl=new RegExp(hl,`g`),xl=new RegExp(gl,`g`),Sl=new RegExp(_l,`g`),Cl=new RegExp(vl,`g`),wl=new RegExp(yl,`g`),Tl=/\\\\/g,El=/\\{/g,Dl=/\\}/g,Ol=/\\,/g,kl=/\\\./g,Al=1e5;function jl(e){return isNaN(e)?e.charCodeAt(0):parseInt(e,10)}x(jl,`numeric`);function Ml(e){return e.replace(Tl,hl).replace(El,gl).replace(Dl,_l).replace(Ol,vl).replace(kl,yl)}x(Ml,`escapeBraces`);function Nl(e){return e.replace(bl,`\\`).replace(xl,`{`).replace(Sl,`}`).replace(Cl,`,`).replace(wl,`.`)}x(Nl,`unescapeBraces`);function Pl(e){if(!e)return[``];let t=[],n=fl(`{`,`}`,e);if(!n)return e.split(`,`);let{pre:r,body:i,post:a}=n,o=r.split(`,`);o[o.length-1]+=`{`+i+`}`;let s=Pl(a);return a.length&&(o[o.length-1]+=s.shift(),o.push.apply(o,s)),t.push.apply(t,o),t}x(Pl,`parseCommaParts`);function Fl(e,t={}){if(!e)return[];let{max:n=Al}=t;return e.slice(0,2)===`{}`&&(e=`\\{\\}`+e.slice(2)),Bl(Ml(e),n,!0).map(Nl)}x(Fl,`expand`);function Il(e){return`{`+e+`}`}x(Il,`embrace`);function Ll(e){return/^-?0\d/.test(e)}x(Ll,`isPadded`);function Rl(e,t){return e<=t}x(Rl,`lte`);function zl(e,t){return e>=t}x(zl,`gte`);function Bl(e,t,n){let r=[],i=fl(`{`,`}`,e);if(!i)return[e];let a=i.pre,o=i.post.length?Bl(i.post,t,!1):[``];if(/\$$/.test(i.pre))for(let e=0;e<o.length&&e<t;e++){let t=a+`{`+i.body+`}`+o[e];r.push(t)}else{let s=/^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(i.body),c=/^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(i.body),l=s||c,u=i.body.indexOf(`,`)>=0;if(!l&&!u)return i.post.match(/,(?!,).*\}/)?(e=i.pre+`{`+i.body+_l+i.post,Bl(e,t,!0)):[e];let d;if(l)d=i.body.split(/\.\./);else if(d=Pl(i.body),d.length===1&&d[0]!==void 0&&(d=Bl(d[0],t,!1).map(Il),d.length===1))return o.map(e=>i.pre+d[0]+e);let f;if(l&&d[0]!==void 0&&d[1]!==void 0){let e=jl(d[0]),t=jl(d[1]),n=Math.max(d[0].length,d[1].length),r=d.length===3&&d[2]!==void 0?Math.max(Math.abs(jl(d[2])),1):1,i=Rl;t<e&&(r*=-1,i=zl);let a=d.some(Ll);f=[];for(let o=e;i(o,t);o+=r){let e;if(c)e=String.fromCharCode(o),e===`\\`&&(e=``);else if(e=String(o),a){let t=n-e.length;if(t>0){let n=Array(t+1).join(`0`);e=o<0?`-`+n+e.slice(1):n+e}}f.push(e)}}else{f=[];for(let e=0;e<d.length;e++)f.push.apply(f,Bl(d[e],t,!1))}for(let e=0;e<f.length;e++)for(let i=0;i<o.length&&r.length<t;i++){let t=a+f[e]+o[i];(!n||l||t)&&r.push(t)}}return r}x(Bl,`expand_`);var Vl=1024*64,Hl=x(e=>{if(typeof e!=`string`)throw TypeError(`invalid pattern`);if(e.length>Vl)throw TypeError(`pattern is too long`)},`assertValidPattern`),Ul={"[:alnum:]":[`\\p{L}\\p{Nl}\\p{Nd}`,!0],"[:alpha:]":[`\\p{L}\\p{Nl}`,!0],"[:ascii:]":[`\\x00-\\x7f`,!1],"[:blank:]":[`\\p{Zs}\\t`,!0],"[:cntrl:]":[`\\p{Cc}`,!0],"[:digit:]":[`\\p{Nd}`,!0],"[:graph:]":[`\\p{Z}\\p{C}`,!0,!0],"[:lower:]":[`\\p{Ll}`,!0],"[:print:]":[`\\p{C}`,!0],"[:punct:]":[`\\p{P}`,!0],"[:space:]":[`\\p{Z}\\t\\r\\n\\v\\f`,!0],"[:upper:]":[`\\p{Lu}`,!0],"[:word:]":[`\\p{L}\\p{Nl}\\p{Nd}\\p{Pc}`,!0],"[:xdigit:]":[`A-Fa-f0-9`,!1]},Wl=x(e=>e.replace(/[[\]\\-]/g,`\\$&`),`braceEscape`),Gl=x(e=>e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,`\\$&`),`regexpEscape`),Kl=x(e=>e.join(``),`rangesToString`),ql=x((e,t)=>{let n=t;if(e.charAt(n)!==`[`)throw Error(`not in a brace expression`);let r=[],i=[],a=n+1,o=!1,s=!1,c=!1,l=!1,u=n,d=``;WHILE:for(;a<e.length;){let t=e.charAt(a);if((t===`!`||t===`^`)&&a===n+1){l=!0,a++;continue}if(t===`]`&&o&&!c){u=a+1;break}if(o=!0,t===`\\`&&!c){c=!0,a++;continue}if(t===`[`&&!c){for(let[t,[o,c,l]]of Object.entries(Ul))if(e.startsWith(t,a)){if(d)return[`$.`,!1,e.length-n,!0];a+=t.length,l?i.push(o):r.push(o),s||=c;continue WHILE}}if(c=!1,d){t>d?r.push(Wl(d)+`-`+Wl(t)):t===d&&r.push(Wl(t)),d=``,a++;continue}if(e.startsWith(`-]`,a+1)){r.push(Wl(t+`-`)),a+=2;continue}if(e.startsWith(`-`,a+1)){d=t,a+=2;continue}r.push(Wl(t)),a++}if(u<a)return[``,!1,0,!1];if(!r.length&&!i.length)return[`$.`,!1,e.length-n,!0];if(i.length===0&&r.length===1&&/^\\?.$/.test(r[0])&&!l)return[Gl(r[0].length===2?r[0].slice(-1):r[0]),!1,u-n,!1];let f=`[`+(l?`^`:``)+Kl(r)+`]`,p=`[`+(l?``:`^`)+Kl(i)+`]`;return[r.length&&i.length?`(`+f+`|`+p+`)`:r.length?f:p,s,u-n,!0]},`parseClass`),Jl=x((e,{windowsPathsNoEscape:t=!1,magicalBraces:n=!0}={})=>n?t?e.replace(/\[([^/\\])\]/g,`$1`):e.replace(/((?!\\).|^)\[([^/\\])\]/g,`$1$2`).replace(/\\([^/])/g,`$1`):t?e.replace(/\[([^/\\{}])\]/g,`$1`):e.replace(/((?!\\).|^)\[([^/\\{}])\]/g,`$1$2`).replace(/\\([^/{}])/g,`$1`),`unescape`),Yl,Xl=new Set([`!`,`?`,`+`,`*`,`@`]),Zl=x(e=>Xl.has(e),`isExtglobType`),Ql=x(e=>Zl(e.type),`isExtglobAST`),$l=new Map([[`!`,[`@`]],[`?`,[`?`,`@`]],[`@`,[`@`]],[`*`,[`*`,`+`,`?`,`@`]],[`+`,[`+`,`@`]]]),eu=new Map([[`!`,[`?`]],[`@`,[`?`]],[`+`,[`?`,`*`]]]),tu=new Map([[`!`,[`?`,`@`]],[`?`,[`?`,`@`]],[`@`,[`?`,`@`]],[`*`,[`*`,`+`,`?`,`@`]],[`+`,[`+`,`@`,`?`,`*`]]]),nu=new Map([[`!`,new Map([[`!`,`@`]])],[`?`,new Map([[`*`,`*`],[`+`,`*`]])],[`@`,new Map([[`!`,`!`],[`?`,`?`],[`@`,`@`],[`*`,`*`],[`+`,`+`]])],[`+`,new Map([[`?`,`*`],[`*`,`*`]])]]),ru=`(?!(?:^|/)\\.\\.?(?:$|/))`,iu=`(?!\\.)`,au=new Set([`[`,`.`]),ou=new Set([`..`,`.`]),su=new Set(`().*{}+?[]^$\\!`),cu=x(e=>e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,`\\$&`),`regExpEscape`),lu=`[^/]`,uu=lu+`*?`,du=lu+`+?`,fu=0,pu=class{static{x(this,`AST`)}type;#e;#t;#n=!1;#r=[];#i;#a;#o;#s=!1;#c;#l;#u=!1;id=++fu;get depth(){return(this.#i?.depth??-1)+1}[Symbol.for(`nodejs.util.inspect.custom`)](){return{"@@type":`AST`,id:this.id,type:this.type,root:this.#e.id,parent:this.#i?.id,depth:this.depth,partsLength:this.#r.length,parts:this.#r}}constructor(e,t,n={}){this.type=e,e&&(this.#t=!0),this.#i=t,this.#e=this.#i?this.#i.#e:this,this.#c=this.#e===this?n:this.#e.#c,this.#o=this.#e===this?[]:this.#e.#o,e===`!`&&!this.#e.#s&&this.#o.push(this),this.#a=this.#i?this.#i.#r.length:0}get hasMagic(){if(this.#t!==void 0)return this.#t;for(let e of this.#r)if(typeof e!=`string`&&(e.type||e.hasMagic))return this.#t=!0;return this.#t}toString(){return this.#l===void 0?this.type?this.#l=this.type+`(`+this.#r.map(e=>String(e)).join(`|`)+`)`:this.#l=this.#r.map(e=>String(e)).join(``):this.#l}#d(){if(this!==this.#e)throw Error(`should only call on root`);if(this.#s)return this;this.toString(),this.#s=!0;let e;for(;e=this.#o.pop();){if(e.type!==`!`)continue;let t=e,n=t.#i;for(;n;){for(let r=t.#a+1;!n.type&&r<n.#r.length;r++)for(let t of e.#r){if(typeof t==`string`)throw Error(`string part in extglob AST??`);t.copyIn(n.#r[r])}t=n,n=t.#i}}return this}push(...e){for(let t of e)if(t!==``){if(typeof t!=`string`&&!(t instanceof Yl&&t.#i===this))throw Error(`invalid part: `+t);this.#r.push(t)}}toJSON(){let e=this.type===null?this.#r.slice().map(e=>typeof e==`string`?e:e.toJSON()):[this.type,...this.#r.map(e=>e.toJSON())];return this.isStart()&&!this.type&&e.unshift([]),this.isEnd()&&(this===this.#e||this.#e.#s&&this.#i?.type===`!`)&&e.push({}),e}isStart(){if(this.#e===this)return!0;if(!this.#i?.isStart())return!1;if(this.#a===0)return!0;let e=this.#i;for(let t=0;t<this.#a;t++){let n=e.#r[t];if(!(n instanceof Yl&&n.type===`!`))return!1}return!0}isEnd(){if(this.#e===this||this.#i?.type===`!`)return!0;if(!this.#i?.isEnd())return!1;if(!this.type)return this.#i?.isEnd();let e=this.#i?this.#i.#r.length:0;return this.#a===e-1}copyIn(e){typeof e==`string`?this.push(e):this.push(e.clone(this))}clone(e){let t=new Yl(this.type,e);for(let e of this.#r)t.copyIn(e);return t}static#f(e,t,n,r,i){let a=r.maxExtglobRecursion??2,o=!1,s=!1,c=-1,l=!1;if(t.type===null){let u=n,d=``;for(;u<e.length;){let n=e.charAt(u++);if(o||n===`\\`){o=!o,d+=n;continue}if(s){u===c+1?(n===`^`||n===`!`)&&(l=!0):n===`]`&&!(u===c+2&&l)&&(s=!1),d+=n;continue}else if(n===`[`){s=!0,c=u,l=!1,d+=n;continue}if(!r.noext&&Zl(n)&&e.charAt(u)===`(`&&i<=a){t.push(d),d=``;let a=new Yl(n,t);u=Yl.#f(e,a,u,r,i+1),t.push(a);continue}d+=n}return t.push(d),u}let u=n+1,d=new Yl(null,t),f=[],p=``;for(;u<e.length;){let n=e.charAt(u++);if(o||n===`\\`){o=!o,p+=n;continue}if(s){u===c+1?(n===`^`||n===`!`)&&(l=!0):n===`]`&&!(u===c+2&&l)&&(s=!1),p+=n;continue}else if(n===`[`){s=!0,c=u,l=!1,p+=n;continue}if(!r.noext&&Zl(n)&&e.charAt(u)===`(`&&(i<=a||t&&t.#h(n))){let a=t&&t.#h(n)?0:1;d.push(p),p=``;let o=new Yl(n,d);d.push(o),u=Yl.#f(e,o,u,r,i+a);continue}if(n===`|`){d.push(p),p=``,f.push(d),d=new Yl(null,t);continue}if(n===`)`)return p===``&&t.#r.length===0&&(t.#u=!0),d.push(p),p=``,t.push(...f,d),u;p+=n}return t.type=null,t.#t=void 0,t.#r=[e.substring(n-1)],u}#p(e){return this.#m(e,eu)}#m(e,t=$l){if(!e||typeof e!=`object`||e.type!==null||e.#r.length!==1||this.type===null)return!1;let n=e.#r[0];return!n||typeof n!=`object`||n.type===null?!1:this.#h(n.type,t)}#h(e,t=tu){return!!t.get(this.type)?.includes(e)}#g(e,t){let n=e.#r[0],r=new Yl(null,n,this.options);r.#r.push(``),n.push(r),this.#_(e,t)}#_(e,t){let n=e.#r[0];this.#r.splice(t,1,...n.#r);for(let e of n.#r)typeof e==`object`&&(e.#i=this);this.#l=void 0}#v(e){return!!nu.get(this.type)?.has(e)}#y(e){if(!e||typeof e!=`object`||e.type!==null||e.#r.length!==1||this.type===null||this.#r.length!==1)return!1;let t=e.#r[0];return!t||typeof t!=`object`||t.type===null?!1:this.#v(t.type)}#b(e){let t=nu.get(this.type),n=e.#r[0],r=t?.get(n.type);if(!r)return!1;this.#r=n.#r;for(let e of this.#r)typeof e==`object`&&(e.#i=this);this.type=r,this.#l=void 0,this.#u=!1}static fromGlob(e,t={}){let n=new Yl(null,void 0,t);return Yl.#f(e,n,0,t,0),n}toMMPattern(){if(this!==this.#e)return this.#e.toMMPattern();let e=this.toString(),[t,n,r,i]=this.toRegExpSource();if(!(r||this.#t||this.#c.nocase&&!this.#c.nocaseMagicOnly&&e.toUpperCase()!==e.toLowerCase()))return n;let a=(this.#c.nocase?`i`:``)+(i?`u`:``);return Object.assign(RegExp(`^${t}$`,a),{_src:t,_glob:e})}get options(){return this.#c}toRegExpSource(e){let t=e??!!this.#c.dot;if(this.#e===this&&(this.#x(),this.#d()),!Ql(this)){let n=this.isStart()&&this.isEnd()&&!this.#r.some(e=>typeof e!=`string`),r=this.#r.map(t=>{let[r,i,a,o]=typeof t==`string`?Yl.#C(t,this.#t,n):t.toRegExpSource(e);return this.#t=this.#t||a,this.#n=this.#n||o,r}).join(``),i=``;if(this.isStart()&&typeof this.#r[0]==`string`&&!(this.#r.length===1&&ou.has(this.#r[0]))){let n=au,a=t&&n.has(r.charAt(0))||r.startsWith(`\\.`)&&n.has(r.charAt(2))||r.startsWith(`\\.\\.`)&&n.has(r.charAt(4)),o=!t&&!e&&n.has(r.charAt(0));i=a?ru:o?iu:``}let a=``;return this.isEnd()&&this.#e.#s&&this.#i?.type===`!`&&(a=`(?:$|\\/)`),[i+r+a,Jl(r),this.#t=!!this.#t,this.#n]}let n=this.type===`*`||this.type===`+`,r=this.type===`!`?`(?:(?!(?:`:`(?:`,i=this.#S(t);if(this.isStart()&&this.isEnd()&&!i&&this.type!==`!`){let e=this.toString(),t=this;return t.#r=[e],t.type=null,t.#t=void 0,[e,Jl(this.toString()),!1,!1]}let a=!n||e||t||!iu?``:this.#S(!0);a===i&&(a=``),a&&(i=`(?:${i})(?:${a})*?`);let o=``;if(this.type===`!`&&this.#u)o=(this.isStart()&&!t?iu:``)+du;else{let n=this.type===`!`?`))`+(this.isStart()&&!t&&!e?iu:``)+uu+`)`:this.type===`@`?`)`:this.type===`?`?`)?`:this.type===`+`&&a?`)`:this.type===`*`&&a?`)?`:`)${this.type}`;o=r+i+n}return[o,Jl(i),this.#t=!!this.#t,this.#n]}#x(){if(Ql(this)){let e=0,t=!1;do{t=!0;for(let e=0;e<this.#r.length;e++){let n=this.#r[e];typeof n==`object`&&(n.#x(),this.#m(n)?(t=!1,this.#_(n,e)):this.#p(n)?(t=!1,this.#g(n,e)):this.#y(n)&&(t=!1,this.#b(n)))}}while(!t&&++e<10)}else for(let e of this.#r)typeof e==`object`&&e.#x();this.#l=void 0}#S(e){return this.#r.map(t=>{if(typeof t==`string`)throw Error(`string type in extglob ast??`);let[n,r,i,a]=t.toRegExpSource(e);return this.#n=this.#n||a,n}).filter(e=>!(this.isStart()&&this.isEnd())||!!e).join(`|`)}static#C(e,t,n=!1){let r=!1,i=``,a=!1,o=!1;for(let s=0;s<e.length;s++){let c=e.charAt(s);if(r){r=!1,i+=(su.has(c)?`\\`:``)+c;continue}if(c===`*`){if(o)continue;o=!0,i+=n&&/^[*]+$/.test(e)?du:uu,t=!0;continue}else o=!1;if(c===`\\`){s===e.length-1?i+=`\\\\`:r=!0;continue}if(c===`[`){let[n,r,o,c]=ql(e,s);if(o){i+=n,a||=r,s+=o-1,t||=c;continue}}if(c===`?`){i+=lu,t=!0;continue}i+=cu(c)}return[i,Jl(e),!!t,a]}};Yl=pu;var mu=x((e,{windowsPathsNoEscape:t=!1,magicalBraces:n=!1}={})=>n?t?e.replace(/[?*()[\]{}]/g,`[$&]`):e.replace(/[?*()[\]\\{}]/g,`\\$&`):t?e.replace(/[?*()[\]]/g,`[$&]`):e.replace(/[?*()[\]\\]/g,`\\$&`),`escape`),hu=x((e,t,n={})=>(Hl(t),!n.nocomment&&t.charAt(0)===`#`?!1:new Ku(t,n).match(e)),`minimatch`),gu=/^\*+([^+@!?*[(]*)$/,_u=x(e=>t=>!t.startsWith(`.`)&&t.endsWith(e),`starDotExtTest`),vu=x(e=>t=>t.endsWith(e),`starDotExtTestDot`),yu=x(e=>(e=e.toLowerCase(),t=>!t.startsWith(`.`)&&t.toLowerCase().endsWith(e)),`starDotExtTestNocase`),bu=x(e=>(e=e.toLowerCase(),t=>t.toLowerCase().endsWith(e)),`starDotExtTestNocaseDot`),xu=/^\*+\.\*+$/,Su=x(e=>!e.startsWith(`.`)&&e.includes(`.`),`starDotStarTest`),Cu=x(e=>e!==`.`&&e!==`..`&&e.includes(`.`),`starDotStarTestDot`),wu=/^\.\*+$/,Tu=x(e=>e!==`.`&&e!==`..`&&e.startsWith(`.`),`dotStarTest`),Eu=/^\*+$/,Du=x(e=>e.length!==0&&!e.startsWith(`.`),`starTest`),Ou=x(e=>e.length!==0&&e!==`.`&&e!==`..`,`starTestDot`),ku=/^\?+([^+@!?*[(]*)?$/,Au=x(([e,t=``])=>{let n=Pu([e]);return t?(t=t.toLowerCase(),e=>n(e)&&e.toLowerCase().endsWith(t)):n},`qmarksTestNocase`),ju=x(([e,t=``])=>{let n=Fu([e]);return t?(t=t.toLowerCase(),e=>n(e)&&e.toLowerCase().endsWith(t)):n},`qmarksTestNocaseDot`),Mu=x(([e,t=``])=>{let n=Fu([e]);return t?e=>n(e)&&e.endsWith(t):n},`qmarksTestDot`),Nu=x(([e,t=``])=>{let n=Pu([e]);return t?e=>n(e)&&e.endsWith(t):n},`qmarksTest`),Pu=x(([e])=>{let t=e.length;return e=>e.length===t&&!e.startsWith(`.`)},`qmarksTestNoExt`),Fu=x(([e])=>{let t=e.length;return e=>e.length===t&&e!==`.`&&e!==`..`},`qmarksTestNoExtDot`),Iu=typeof process==`object`&&process?typeof process.env==`object`&&process.env&&process.env.__MINIMATCH_TESTING_PLATFORM__||process.platform:`posix`,Lu={win32:{sep:`\\`},posix:{sep:`/`}};hu.sep=Iu===`win32`?Lu.win32.sep:Lu.posix.sep;var Ru=Symbol(`globstar **`);hu.GLOBSTAR=Ru;var zu=`[^/]*?`,Bu=`(?:(?!(?:\\/|^)(?:\\.{1,2})($|\\/)).)*?`,Vu=`(?:(?!(?:\\/|^)\\.).)*?`;hu.filter=x((e,t={})=>n=>hu(n,e,t),`filter`);var Hu=x((e,t={})=>Object.assign({},e,t),`ext`);hu.defaults=x(e=>{if(!e||typeof e!=`object`||!Object.keys(e).length)return hu;let t=hu;return Object.assign(x((n,r,i={})=>t(n,r,Hu(e,i)),`m`),{Minimatch:class extends t.Minimatch{static{x(this,`Minimatch`)}constructor(t,n={}){super(t,Hu(e,n))}static defaults(n){return t.defaults(Hu(e,n)).Minimatch}},AST:class extends t.AST{static{x(this,`AST`)}constructor(t,n,r={}){super(t,n,Hu(e,r))}static fromGlob(n,r={}){return t.AST.fromGlob(n,Hu(e,r))}},unescape:x((n,r={})=>t.unescape(n,Hu(e,r)),`unescape`),escape:x((n,r={})=>t.escape(n,Hu(e,r)),`escape`),filter:x((n,r={})=>t.filter(n,Hu(e,r)),`filter`),defaults:x(n=>t.defaults(Hu(e,n)),`defaults`),makeRe:x((n,r={})=>t.makeRe(n,Hu(e,r)),`makeRe`),braceExpand:x((n,r={})=>t.braceExpand(n,Hu(e,r)),`braceExpand`),match:x((n,r,i={})=>t.match(n,r,Hu(e,i)),`match`),sep:t.sep,GLOBSTAR:Ru})},`defaults`);var Uu=x((e,t={})=>(Hl(e),t.nobrace||!/\{(?:(?!\{).)*\}/.test(e)?[e]:Fl(e,{max:t.braceExpandMax})),`braceExpand`);hu.braceExpand=Uu,hu.makeRe=x((e,t={})=>new Ku(e,t).makeRe(),`makeRe`),hu.match=x((e,t,n={})=>{let r=new Ku(t,n);return e=e.filter(e=>r.match(e)),r.options.nonull&&!e.length&&e.push(t),e},`match`);var Wu=/[?*]|[+@!]\(.*?\)|\[|\]/,Gu=x(e=>e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,`\\$&`),`regExpEscape`),Ku=class{static{x(this,`Minimatch`)}options;set;pattern;windowsPathsNoEscape;nonegate;negate;comment;empty;preserveMultipleSlashes;partial;globSet;globParts;nocase;isWindows;platform;windowsNoMagicRoot;maxGlobstarRecursion;regexp;constructor(e,t={}){Hl(e),t||={},this.options=t,this.maxGlobstarRecursion=t.maxGlobstarRecursion??200,this.pattern=e,this.platform=t.platform||Iu,this.isWindows=this.platform===`win32`,this.windowsPathsNoEscape=!!t.windowsPathsNoEscape||t.allowWindowsEscape===!1,this.windowsPathsNoEscape&&(this.pattern=this.pattern.replace(/\\/g,`/`)),this.preserveMultipleSlashes=!!t.preserveMultipleSlashes,this.regexp=null,this.negate=!1,this.nonegate=!!t.nonegate,this.comment=!1,this.empty=!1,this.partial=!!t.partial,this.nocase=!!this.options.nocase,this.windowsNoMagicRoot=t.windowsNoMagicRoot===void 0?!!(this.isWindows&&this.nocase):t.windowsNoMagicRoot,this.globSet=[],this.globParts=[],this.set=[],this.make()}hasMagic(){if(this.options.magicalBraces&&this.set.length>1)return!0;for(let e of this.set)for(let t of e)if(typeof t!=`string`)return!0;return!1}debug(...e){}make(){let e=this.pattern,t=this.options;if(!t.nocomment&&e.charAt(0)===`#`){this.comment=!0;return}if(!e){this.empty=!0;return}this.parseNegate(),this.globSet=[...new Set(this.braceExpand())],t.debug&&(this.debug=(...e)=>console.error(...e)),this.debug(this.pattern,this.globSet);let n=this.globSet.map(e=>this.slashSplit(e));this.globParts=this.preprocess(n),this.debug(this.pattern,this.globParts);let r=this.globParts.map((e,t,n)=>{if(this.isWindows&&this.windowsNoMagicRoot){let t=e[0]===``&&e[1]===``&&(e[2]===`?`||!Wu.test(e[2]))&&!Wu.test(e[3]),n=/^[a-z]:/i.test(e[0]);if(t)return[...e.slice(0,4),...e.slice(4).map(e=>this.parse(e))];if(n)return[e[0],...e.slice(1).map(e=>this.parse(e))]}return e.map(e=>this.parse(e))});if(this.debug(this.pattern,r),this.set=r.filter(e=>e.indexOf(!1)===-1),this.isWindows)for(let e=0;e<this.set.length;e++){let t=this.set[e];t[0]===``&&t[1]===``&&this.globParts[e][2]===`?`&&typeof t[3]==`string`&&/^[a-z]:$/i.test(t[3])&&(t[2]=`?`)}this.debug(this.pattern,this.set)}preprocess(e){if(this.options.noglobstar)for(let t of e)for(let e=0;e<t.length;e++)t[e]===`**`&&(t[e]=`*`);let{optimizationLevel:t=1}=this.options;return t>=2?(e=this.firstPhasePreProcess(e),e=this.secondPhasePreProcess(e)):e=t>=1?this.levelOneOptimize(e):this.adjascentGlobstarOptimize(e),e}adjascentGlobstarOptimize(e){return e.map(e=>{let t=-1;for(;(t=e.indexOf(`**`,t+1))!==-1;){let n=t;for(;e[n+1]===`**`;)n++;n!==t&&e.splice(t,n-t)}return e})}levelOneOptimize(e){return e.map(e=>(e=e.reduce((e,t)=>{let n=e[e.length-1];return t===`**`&&n===`**`?e:t===`..`&&n&&n!==`..`&&n!==`.`&&n!==`**`?(e.pop(),e):(e.push(t),e)},[]),e.length===0?[``]:e))}levelTwoFileOptimize(e){Array.isArray(e)||(e=this.slashSplit(e));let t=!1;do{if(t=!1,!this.preserveMultipleSlashes){for(let n=1;n<e.length-1;n++){let r=e[n];n===1&&r===``&&e[0]===``||(r===`.`||r===``)&&(t=!0,e.splice(n,1),n--)}e[0]===`.`&&e.length===2&&(e[1]===`.`||e[1]===``)&&(t=!0,e.pop())}let n=0;for(;(n=e.indexOf(`..`,n+1))!==-1;){let r=e[n-1];r&&r!==`.`&&r!==`..`&&r!==`**`&&!(this.isWindows&&/^[a-z]:$/i.test(r))&&(t=!0,e.splice(n-1,2),n-=2)}}while(t);return e.length===0?[``]:e}firstPhasePreProcess(e){let t=!1;do{t=!1;for(let n of e){let r=-1;for(;(r=n.indexOf(`**`,r+1))!==-1;){let i=r;for(;n[i+1]===`**`;)i++;i>r&&n.splice(r+1,i-r);let a=n[r+1],o=n[r+2],s=n[r+3];if(a!==`..`||!o||o===`.`||o===`..`||!s||s===`.`||s===`..`)continue;t=!0,n.splice(r,1);let c=n.slice(0);c[r]=`**`,e.push(c),r--}if(!this.preserveMultipleSlashes){for(let e=1;e<n.length-1;e++){let r=n[e];e===1&&r===``&&n[0]===``||(r===`.`||r===``)&&(t=!0,n.splice(e,1),e--)}n[0]===`.`&&n.length===2&&(n[1]===`.`||n[1]===``)&&(t=!0,n.pop())}let i=0;for(;(i=n.indexOf(`..`,i+1))!==-1;){let e=n[i-1];if(e&&e!==`.`&&e!==`..`&&e!==`**`){t=!0;let e=i===1&&n[i+1]===`**`?[`.`]:[];n.splice(i-1,2,...e),n.length===0&&n.push(``),i-=2}}}}while(t);return e}secondPhasePreProcess(e){for(let t=0;t<e.length-1;t++)for(let n=t+1;n<e.length;n++){let r=this.partsMatch(e[t],e[n],!this.preserveMultipleSlashes);if(r){e[t]=[],e[n]=r;break}}return e.filter(e=>e.length)}partsMatch(e,t,n=!1){let r=0,i=0,a=[],o=``;for(;r<e.length&&i<t.length;)if(e[r]===t[i])a.push(o===`b`?t[i]:e[r]),r++,i++;else if(n&&e[r]===`**`&&t[i]===e[r+1])a.push(e[r]),r++;else if(n&&t[i]===`**`&&e[r]===t[i+1])a.push(t[i]),i++;else if(e[r]===`*`&&t[i]&&(this.options.dot||!t[i].startsWith(`.`))&&t[i]!==`**`){if(o===`b`)return!1;o=`a`,a.push(e[r]),r++,i++}else if(t[i]===`*`&&e[r]&&(this.options.dot||!e[r].startsWith(`.`))&&e[r]!==`**`){if(o===`a`)return!1;o=`b`,a.push(t[i]),r++,i++}else return!1;return e.length===t.length&&a}parseNegate(){if(this.nonegate)return;let e=this.pattern,t=!1,n=0;for(let r=0;r<e.length&&e.charAt(r)===`!`;r++)t=!t,n++;n&&(this.pattern=e.slice(n)),this.negate=t}matchOne(e,t,n=!1){let r=0,i=0;if(this.isWindows){let n=typeof e[0]==`string`&&/^[a-z]:$/i.test(e[0]),a=!n&&e[0]===``&&e[1]===``&&e[2]===`?`&&/^[a-z]:$/i.test(e[3]),o=typeof t[0]==`string`&&/^[a-z]:$/i.test(t[0]),s=!o&&t[0]===``&&t[1]===``&&t[2]===`?`&&typeof t[3]==`string`&&/^[a-z]:$/i.test(t[3]),c=a?3:n?0:void 0,l=s?3:o?0:void 0;if(typeof c==`number`&&typeof l==`number`){let[n,a]=[e[c],t[l]];n.toLowerCase()===a.toLowerCase()&&(t[l]=n,i=l,r=c)}}let{optimizationLevel:a=1}=this.options;return a>=2&&(e=this.levelTwoFileOptimize(e)),t.includes(Ru)?this.#e(e,t,n,r,i):this.#n(e,t,n,r,i)}#e(e,t,n,r,i){let a=t.indexOf(Ru,i),o=t.lastIndexOf(Ru),[s,c,l]=n?[t.slice(i,a),t.slice(a+1),[]]:[t.slice(i,a),t.slice(a+1,o),t.slice(o+1)];if(s.length){let t=e.slice(r,r+s.length);if(!this.#n(t,s,n,0,0))return!1;r+=s.length,i+=s.length}let u=0;if(l.length){if(l.length+r>e.length)return!1;let t=e.length-l.length;if(this.#n(e,l,n,t,0))u=l.length;else{if(e[e.length-1]!==``||r+l.length===e.length||(t--,!this.#n(e,l,n,t,0)))return!1;u=l.length+1}}if(!c.length){let t=!!u;for(let n=r;n<e.length-u;n++){let r=String(e[n]);if(t=!0,r===`.`||r===`..`||!this.options.dot&&r.startsWith(`.`))return!1}return n||t}let d=[[[],0]],f=d[0],p=0,m=[0];for(let e of c)e===Ru?(m.push(p),f=[[],0],d.push(f)):(f[0].push(e),p++);let h=d.length-1,g=e.length-u;for(let e of d)e[1]=g-(m[h--]+e[0].length);return!!this.#t(e,d,r,0,n,0,!!u)}#t(e,t,n,r,i,a,o){let s=t[r];if(!s){for(let t=n;t<e.length;t++){o=!0;let n=e[t];if(n===`.`||n===`..`||!this.options.dot&&n.startsWith(`.`))return!1}return o}let[c,l]=s;for(;n<=l;){if(this.#n(e.slice(0,n+c.length),c,i,n,0)&&a<this.maxGlobstarRecursion){let s=this.#t(e,t,n+c.length,r+1,i,a+1,o);if(s!==!1)return s}let s=e[n];if(s===`.`||s===`..`||!this.options.dot&&s.startsWith(`.`))return!1;n++}return i||null}#n(e,t,n,r,i){let a,o,s,c;for(a=r,o=i,c=e.length,s=t.length;a<c&&o<s;a++,o++){this.debug(`matchOne loop`);let n=t[o],r=e[a];if(this.debug(t,n,r),n===!1||n===Ru)return!1;let i;if(typeof n==`string`?(i=r===n,this.debug(`string match`,n,r,i)):(i=n.test(r),this.debug(`pattern match`,n,r,i)),!i)return!1}if(a===c&&o===s)return!0;if(a===c)return n;if(o===s)return a===c-1&&e[a]===``;throw Error(`wtf?`)}braceExpand(){return Uu(this.pattern,this.options)}parse(e){Hl(e);let t=this.options;if(e===`**`)return Ru;if(e===``)return``;let n,r=null;(n=e.match(Eu))?r=t.dot?Ou:Du:(n=e.match(gu))?r=(t.nocase?t.dot?bu:yu:t.dot?vu:_u)(n[1]):(n=e.match(ku))?r=(t.nocase?t.dot?ju:Au:t.dot?Mu:Nu)(n):(n=e.match(xu))?r=t.dot?Cu:Su:(n=e.match(wu))&&(r=Tu);let i=pu.fromGlob(e,this.options).toMMPattern();return r&&typeof i==`object`&&Reflect.defineProperty(i,`test`,{value:r}),i}makeRe(){if(this.regexp||this.regexp===!1)return this.regexp;let e=this.set;if(!e.length)return this.regexp=!1,this.regexp;let t=this.options,n=t.noglobstar?zu:t.dot?Bu:Vu,r=new Set(t.nocase?[`i`]:[]),i=e.map(e=>{let t=e.map(e=>{if(e instanceof RegExp)for(let t of e.flags.split(``))r.add(t);return typeof e==`string`?Gu(e):e===Ru?Ru:e._src});t.forEach((e,r)=>{let i=t[r+1],a=t[r-1];e!==Ru||a===Ru||(a===void 0?i!==void 0&&i!==Ru?t[r+1]=`(?:\\/|`+n+`\\/)?`+i:t[r]=n:i===void 0?t[r-1]=a+`(?:\\/|\\/`+n+`)?`:i!==Ru&&(t[r-1]=a+`(?:\\/|\\/`+n+`\\/)`+i,t[r+1]=Ru))});let i=t.filter(e=>e!==Ru);if(this.partial&&i.length>=1){let e=[];for(let t=1;t<=i.length;t++)e.push(i.slice(0,t).join(`/`));return`(?:`+e.join(`|`)+`)`}return i.join(`/`)}).join(`|`),[a,o]=e.length>1?[`(?:`,`)`]:[``,``];i=`^`+a+i+o+`$`,this.partial&&(i=`^(?:\\/|`+a+i.slice(1,-1)+o+`)$`),this.negate&&(i=`^(?!`+i+`).+$`);try{this.regexp=new RegExp(i,[...r].join(``))}catch{this.regexp=!1}return this.regexp}slashSplit(e){return this.preserveMultipleSlashes?e.split(`/`):this.isWindows&&/^\/\/[^/]+/.test(e)?[``,...e.split(/\/+/)]:e.split(/\/+/)}match(e,t=this.partial){if(this.debug(`match`,e,this.pattern),this.comment)return!1;if(this.empty)return e===``;if(e===`/`&&t)return!0;let n=this.options;this.isWindows&&(e=e.split(`\\`).join(`/`));let r=this.slashSplit(e);this.debug(this.pattern,`split`,r);let i=this.set;this.debug(this.pattern,`set`,i);let a=r[r.length-1];if(!a)for(let e=r.length-2;!a&&e>=0;e--)a=r[e];for(let e of i){let i=r;if(n.matchBase&&e.length===1&&(i=[a]),this.matchOne(i,e,t))return n.flipNegate?!0:!this.negate}return n.flipNegate?!1:this.negate}static defaults(e){return hu.defaults(e).Minimatch}};hu.AST=pu,hu.Minimatch=Ku,hu.escape=mu,hu.unescape=Jl;function qu(e){let t=[],n=e.globParts[0];for(let e=0,r=n.length;e<r;e++){if(n[e].includes(`*`))return{dir:t.join(`/`),depth:n[e]};t.push(n[e])}return{dir:t.join(`/`)}}x(qu,`getDirFromPattern`);var Ju=x(async({entry:e,project:t,directory:n,packagePath:r})=>{if(e===`package.json`){let i={path:r};try{let{name:r}=await t.fs.readJSON(t.fs.join(n,e));i.name=r}catch{}return i}return null},`defaultIdentifyPackage`);async function Yu(e,t,n,r){let i={},a=e.jsWorkspaceRoot?e.fs.resolve(e.jsWorkspaceRoot,t):e.root?e.fs.resolve(e.root,t):e.fs.resolve(t);try{i=await e.fs.readDir(a,!0)}catch{}let o=Object.entries(i).map(async([i,o])=>{let s=await n({entry:i,type:o,packagePath:t,directory:a,project:e});return s?[s]:r&&o===`directory`?Yu(e,e.fs.join(t,i),n,r===`**`?r:void 0):[]});return(await Promise.all(o)).flat()}x(Yu,`findPackages`);async function Xu(e,t=[]){if(!t?.length)return[];let n=(await Promise.all(t.map(t=>{let n=new Ku(t.replace(/^!?(\.\/)/,(e,t)=>e.replace(t,``)));if(n.negate)return;let{dir:r,depth:i}=qu(n);return Yu(e,r,Ju,i)}))).flat().filter(Boolean),r=new Map;for(let i of n)for(let n of t){let t=new Ku(n.replace(/^!?(\.\/)/,(e,t)=>e.replace(t,``)));hu(i.path,t.pattern)&&(r.set(e.fs.join(i.path),i),t.negate&&r.delete(e.fs.join(i.path)))}return[...r.values()]}x(Xu,`getWorkspacePackages`);var Zu=class{static{x(this,`WorkspaceInfo`)}isRoot;rootDir;packages=[];hasPackage(e){return this.packages.findIndex(({path:t})=>t===e)>-1}getPackage(e){return this.packages.find(({path:t})=>t===e)}};async function Qu(e){let t=await e.fs.findUp(`pnpm-workspace.yaml`,{cwd:e.baseDirectory,stopAt:e.root});if(!t)return[];try{let{packages:n=[]}=(0,dl.parse)(await e.fs.readFile(t));return n}catch{return[]}}x(Qu,`detectPnpmWorkspaceGlobs`);async function $u(e){return Array.isArray(e.workspaces)?e.workspaces||[]:typeof e.workspaces==`object`&&e.workspaces.packages||[]}x($u,`detectNpmOrYarnWorkspaceGlobs`);async function ed(e){if(e.packageManager===void 0)throw Error(`Please run the packageManager detection before calling the workspace detection!`);if(e.packageManager===null||await e.isRedwoodProject())return null;let t=await e.getRootPackageJSON(),n=e.packageManager.name===`pnpm`?await Qu(e):await $u(t);if(!n||n.length===0)return null;e.events.emit(`detectedWorkspaceGlobs`,void 0);let r=new Zu;r.rootDir=e.jsWorkspaceRoot,r.packages=await Xu(e,n),r.isRoot=e.baseDirectory===e.jsWorkspaceRoot;let i=e.fs.relative(e.jsWorkspaceRoot,e.baseDirectory);return!r.isRoot&&!r.hasPackage(i)?null:r}x(ed,`detectWorkspaces`);var td=class extends rl{static{x(this,`Nx`)}id=`nx`;name=`Nx`;configFiles=[`nx.json`];logo={default:`/logos/nx/light.svg`,light:`/logos/nx/light.svg`,dark:`/logos/nx/dark.svg`};runFromRoot=!0;isIntegrated=!1;targets=new Map;async getCommands(e){let t=this.project.workspace?.getPackage(e)?.name||``,n=(this.targets.get(e)||[]).map(e=>e.name);try{let r=this.project.resolveFromPackage(e,`package.json`),i=await this.project.fs.readJSON(r,{fail:!0});n.push(...Object.keys(i?.scripts||{})),t=i.name||``}catch{}return t.length!==0&&n.length!==0?n.map(e=>{let n=`unknown`;return hs.includes(e)&&(n=`dev`),_s.includes(e)&&(n=`build`),{type:n,command:`nx run ${t}:${e}`}}):[]}async getDist(e){return this.isIntegrated?this.getOutputFromTarget(e):null}async getPort(e){if(!this.isIntegrated)return null;let t=this.targets.get(e)?.find(e=>hs.includes(e.name)),n=this.getExecutorFromTarget(t);if(!n)return null;switch(n){case`@nxtensions/astro:dev`:return 3e3;case`@nx/next:server`:case`@nrwl/next:server`:case`@nrwl/web:dev-server`:case`@nx/webpack:dev-server`:case`@angular-devkit/build-angular:dev-server`:return 4200;case`@nx-plus/vue:dev-server`:return 8e3;case`nx:run-commands`:case void 0:return null;default:return this.project.report({name:`UndetectedExecutor`,message:`Undetected executor for Nx integrated: ${n}`},{metadata:{executor:n}}),null}}async getOutputFromTarget(e){let{getProperty:t}=await import(`./dot-prop-IITUZ2XW-BilKo4kO.mjs`);try{let n=this.targets.get(e)?.find(e=>e.name===`build`);if(n){let r=`outputs`in n?n.outputs?.[0]:n.options?.outputPath;if(r){let i=this.project.frameworks?.get(e)?.[0],a=``;return i?.id===`next`&&(a=i.build.directory),this.project.fs.join(r.replace(`{workspaceRoot}/`,``).replace(/\{(.+)\}/g,(r,i)=>t({...n,projectRoot:e},i)),a)}}}catch{}return this.project.fs.join(`dist`,e)}getExecutorFromTarget(e){return e&&(`executor`in e?e.executor:e.builder)}async detectFramework(e){let t=e.find(e=>_s.includes(e.name)),n=this.getExecutorFromTarget(t);if(!(!t||!n))switch(n){case`@nrwl/next:build`:case`@nx/next:build`:return`next`;case`@nxtensions/astro:build`:return`astro`;case`@nx-plus/vue:browser`:return`vue`;case`@angular-devkit/build-angular:browser`:return`angular`;case`@nx/webpack:webpack`:case`@nrwl/web:build`:if(t.options?.webpackConfig?.includes?.(`react`))return`react-static`;this.project.report({name:`UndetectedNrwlWeb`,message:`Undetected @nrwl/web:build framework: ${JSON.stringify({target:t},null,2)}`});return;case`@nx/cypress:cypress`:case`@nrwl/cypress:cypress`:case`@nrwl/node:build`:return;case`nx:run-commands`:case void 0:return;default:this.project.report({name:`UndetectedExecutor`,message:`Undetected executor for Nx integrated: ${n}`},{metadata:{executor:n}})}}async detectWorkspaceFile(){let e=this.project.fs;try{let{projects:t}=await e.readJSON(e.join(this.project.jsWorkspaceRoot,`workspace.json`),{fail:!0}),n=[];for(let[r,{root:i,projectType:a,architect:o}]of Object.entries(t||{})){if(!i||r.endsWith(`-e2e`)||a!==`application`)continue;let t=Object.entries(o||{}).map(([e,t])=>({...t,name:e})),s=await this.detectFramework(t);this.targets.set(e.join(i),t),n.push({name:r,path:e.join(i),forcedFramework:s})}return n}catch{}return[]}async detectProjectJson(){let e=this.project.fs;try{let{workspaceLayout:t}=await e.readJSON(e.join(this.project.jsWorkspaceRoot,`nx.json`),{fail:!0}),n=t?.appsDir?[t.appsDir]:[`apps`,`packages`],r=x(async({entry:t,directory:n,packagePath:r})=>{if(t===`project.json`&&!r.endsWith(`-e2e`))try{let{projectType:i,name:a,targets:o}=await e.readJSON(e.join(n,t));if(i===`application`){let t=Object.entries(o||{}).map(([e,t])=>({...t,name:e})),n=await this.detectFramework(t);return this.targets.set(e.join(r),t),{name:a,path:e.join(r),forcedFramework:n}}}catch{}return null},`identifyPkg`);return(await Promise.all(n.map(async e=>Yu(this.project,e,r,`*`).catch(()=>[])))).flat()}catch{}return[]}async detect(){if(await super.detect()){let e=[...await this.detectWorkspaceFile(),...await this.detectProjectJson()];return e.length&&(this.isIntegrated=!0,this.project.workspace?this.project.workspace.packages.push(...e):(this.project.workspace=new Zu,this.project.workspace.isRoot=this.project.jsWorkspaceRoot===this.project.baseDirectory,this.project.workspace.rootDir=this.project.jsWorkspaceRoot,this.project.workspace.packages=e),this.project.events.emit(`detectWorkspaces`,this.project.workspace)),this}}},nd=class extends rl{static{x(this,`PNPM`)}id=`pnpm`;name=`PNPM`;runFromRoot=!0;async getCommands(e){let{name:t,scripts:n}=await this.project.fs.readJSON(this.project.resolveFromPackage(e,`package.json`));return n&&Object.keys(n).length>0?Object.entries(n).map(([e,n])=>{let r=Ts(e,n);return{type:ws(e,n)?`dev`:r?`build`:`unknown`,command:`pnpm --filter ${t}${r?`...`:``} run ${e}`}}):[]}async detect(){if(this.project.workspace&&this.project.packageManager?.name===`pnpm`)return this}},rd=class extends rl{static{x(this,`Yarn`)}id=`yarn`;name=`Yarn`;runFromRoot=!0;async getCommands(e){let{name:t,scripts:n}=await this.project.fs.readJSON(this.project.resolveFromPackage(e,`package.json`));return n&&Object.keys(n).length>0?Object.entries(n).map(([e,n])=>({type:ws(e,n)?`dev`:Ts(e,n)?`build`:`unknown`,command:`yarn workspace ${t} ${e}`})):[]}async detect(){if(this.project.workspace&&this.project.packageManager?.name===`yarn`)return this}},id=class extends rl{static{x(this,`NPM`)}id=`npm`;name=`NPM`;runFromRoot=!0;async getCommands(e){let{name:t,scripts:n}=await this.project.fs.readJSON(this.project.resolveFromPackage(e,`package.json`));return n&&Object.keys(n).length>0?Object.entries(n).map(([e,n])=>({type:ws(e,n)?`dev`:Ts(e,n)?`build`:`unknown`,command:`npm --workspace ${t} run ${e}`})):[]}async detect(){if(this.project.workspace&&this.project.packageManager?.name===`npm`)return this}},ad=[il,al,ol,sl,cl,ll,ul,td,class extends rl{static{x(this,`Pants`)}id=`pants`;name=`Pants`;configFiles=[`pants.toml`];async detect(){if(await this.project.fs.findUp(this.configFiles,{cwd:this.project.baseDirectory,stopAt:this.project.root}))return this}},class extends rl{static{x(this,`Rush`)}id=`rush`;name=`Rush`;configFiles=[`rush.json`];logo={default:`/logos/rush/light.svg`,light:`/logos/rush/light.svg`,dark:`/logos/rush/dark.svg`}},class extends rl{static{x(this,`Turbo`)}id=`turbo`;name=`TurboRepo`;configFiles=[`turbo.json`];runFromRoot=!0;logo={default:`/logos/turbo/light.svg`,light:`/logos/turbo/light.svg`,dark:`/logos/turbo/dark.svg`};async getCommands(e){let{scripts:t,name:n}=await this.project.fs.readJSON(this.project.resolveFromPackage(e,`package.json`));return n&&t&&Object.values(t).length?Object.keys(t).map(e=>{let t=`unknown`;return hs.includes(e)&&(t=`dev`),_s.includes(e)&&(t=`build`),{type:t,command:`turbo run ${e} --filter ${n}`}}):[]}},nd,id,rd],od=class{static{x(this,`EventEmitter`)}callbacks=new Map;on(e,t){if(typeof t!=`function`)throw TypeError(`Callback parameter has to be a function.`);this.callbacks.has(e)||this.callbacks.set(e,[]),this.callbacks.get(e)?.push(t)}async emit(e,t){for(let n of this.callbacks.get(e)||[])await n(t)}},{default:sd}=T(la(),1).default,cd=x(e=>e instanceof Error||typeof e==`object`&&(e.errorClass||e.name)?e:typeof e==`string`?Error(e):typeof e==`object`&&e.message?Error(e.message):Error(`Unexpected error format: ${JSON.stringify(e)}`),`normalizeError`);function ld(e,t={}){let n=cd(e);(t.client||sd).notify(n,n=>{for(let[e,r]of Object.entries(t.metadata||{}))n.addMetadata(e,r);typeof e==`object`&&`documentation_url`in e&&n.addMetadata(`Documentation URL`,e.documentation_url),n.context=t.context,n.severity=t.severity||`error`,n.context=t.context})}x(ld,`report`);var ud=T(Fr(),1),dd={yarn:{name:`yarn`,installCommand:`yarn install`,runCommand:`yarn run`,localPackageCommand:`yarn`,remotePackageCommand:[`yarn`,`dlx`],lockFiles:[`yarn.lock`],forceEnvironment:`NETLIFY_USE_YARN`},pnpm:{name:`pnpm`,installCommand:`pnpm install`,runCommand:`pnpm run`,localPackageCommand:`pnpm`,remotePackageCommand:[`pnpm`,`dlx`],lockFiles:[`pnpm-lock.yaml`],forceEnvironment:`NETLIFY_USE_PNPM`},npm:{name:`npm`,installCommand:`npm install`,runCommand:`npm run`,localPackageCommand:`npx`,remotePackageCommand:[`npx`],lockFiles:[`package-lock.json`]},bun:{name:`bun`,installCommand:`bun install`,runCommand:`bun run`,localPackageCommand:`bunx`,remotePackageCommand:[`bunx`],lockFiles:[`bun.lockb`,`bun.lock`]}};function fd(e){let t=e.getEnv(`npm_config_user_agent`);if(t!==void 0){if(t.includes(`yarn`))return`yarn`;if(t.includes(`pnpm`))return`pnpm`;if(t.includes(`bun`))return`bun`;if(t.includes(`npm`))return`npm`}}x(fd,`sniffUserAgent`);var pd=Object.values(dd).reduce((e,t)=>t.lockFiles.reduce((e,n)=>({...e,[n]:t}),e),{}),md=x(async(e,t)=>{let n=t?.enableUserAgentSniffing?fd(e):void 0;try{let t=await e.fs.findUpMultiple(`package.json`,{cwd:e.baseDirectory,stopAt:e.root});if(!t.length)return n?dd[n]:null;for(let n of t){let{packageManager:t}=await e.fs.readJSON(n);if(t){let[e,n]=t.split(`@`);if(dd[e]){let t=dd[e];return t.version=(0,ud.parse)(n)||void 0,t}}}for(let t of Object.values(dd))if(t.forceEnvironment&&e.getEnv(t.forceEnvironment)===`true`)return t;let r=await e.fs.findUp(Object.keys(pd),{cwd:e.baseDirectory,stopAt:e.root});if(r){let t=pd[e.fs.basename(r)];if(!(t.forceEnvironment&&e.getEnv(t.forceEnvironment)===`false`))return t}}catch(t){e.report(t)}return n?dd[n]:dd.npm},`detectPackageManager`),hd=class{static{x(this,`LangRuntime`)}project;id;name;configFiles=[];constructor(e){this.project=e}async detect(){if(await this.project.fs.findUp(this.configFiles,{cwd:this.project.baseDirectory,stopAt:this.project.root}))return this}toJSON(){return{id:this.id,name:this.name}}},gd=class extends hd{static{x(this,`Brew`)}id=`brew`;name=`Brew`;configFiles=[`Brewfile.netlify`]},_d=class extends hd{static{x(this,`Bun`)}id=`bun`;name=`Bun`;configFiles=[`bun.lock`,`bun.lockb`,`bunfig.toml`]},vd=class extends hd{static{x(this,`Emacs`)}id=`emacs`;name=`Emacs`;configFiles=[`Cask`]},yd=class extends hd{static{x(this,`Dotnet`)}id=`dotnet`;name=`Dotnet`;configFiles=[`Program.cs`,`appsettings.json`]},bd=class extends hd{static{x(this,`Erlang`)}id=`erlang`;name=`Erlang`;configFiles=[`rebar.config`,`rebar.lock`]},xd=class extends hd{static{x(this,`Go`)}id=`go`;name=`Go`;configFiles=[`go.mod`,`.go-version`,`go.work`]},Sd=class extends hd{static{x(this,`Java`)}id=`java`;name=`Java`;configFiles=[`project.clj`,`build.boot`]},Cd=class extends hd{static{x(this,`Node`)}id=`node`;name=`NodeJS`;configFiles=[`.node-version`,`.nvmrc`,`package.json`]},wd=class extends hd{static{x(this,`Php`)}id=`php`;name=`Php`;configFiles=[`composer.json`]},Td=class extends hd{static{x(this,`Python`)}id=`python`;name=`Python`;configFiles=[`requirements.txt`,`Pipfile`]},Ed=[Cd,class extends hd{static{x(this,`Ruby`)}id=`ruby`;name=`Ruby`;configFiles=[`.ruby-version`,`Gemfile.lock`,`Gemfile`]},gd,_d,yd,vd,bd,xd,Sd,wd,class extends hd{static{x(this,`Rust`)}id=`rust`;name=`Rust`;configFiles=[`Cargo.toml`,`Cargo.lock`]},class extends hd{static{x(this,`Swift`)}id=`swift`;name=`Swift`;configFiles=[`.swift-version`,`Package.swift`]},Td];async function Dd(e,t,n){let r=t.buildSystems[0],i={...e};if(n&&r){let t=await r.getCommands?.(n)||[],a=t.find(e=>e.type===`build`),o=t.find(e=>e.type===`dev`),s=await r.getDist?.(n),c=await r.getPort?.(n);i.name=`${r.name} + ${e.name} ${n}`,a&&(i.buildCommand=a.command),o&&(i.devCommand=o.command),s&&(i.dist=s),c!=null&&(i.frameworkPort=c),r.runFromRoot&&a&&o&&(i.baseDirectory=``)}return i}x(Dd,`applyBuildSystemOverrides`);async function Od(e,t,n){let r=e.getDevCommands(),i=e.getBuildCommands(),a={name:e.name,buildCommand:i[0],devCommand:r[0],frameworkPort:e.dev?.port,dist:t.fs.join(n,e.build.directory),env:e.env||{},plugins_from_config_file:[],plugins_recommended:e.plugins||[],framework:{id:e.id,name:e.name},baseDirectory:n,packagePath:n,pollingStrategies:e.dev?.pollingStrategies?.map(({name:e})=>e)||[]};return e.dev?.clearPublishDirectory!==void 0&&(a.clearPublishDirectory=e.dev.clearPublishDirectory),n?.length&&t.workspace?.isRoot&&(a.dist=t.fs.join(n,e.build.directory)),Dd(a,t,n)}x(Od,`getSettings`);async function kd(e,t){if(e.frameworks===void 0)throw Error(`Please run the framework detection before calling the build settings!`);let n=t??e.relativeBaseDirectory??``,r=[];if(e.logger.debug(`[get-build-settings.ts] getBuildSettings for baseDirectory: ${n}`),e.workspace&&e.workspace.packages.length>0&&n.length===0)for(let[t,n]of[...e.frameworks.entries()])for(let i of n)r.push(Od(i,e,t));else for(let t of e.frameworks.get(n)||[])r.push(Od(t,e,n));return(await Promise.all(r)).filter(Boolean)}x(kd,`getBuildSettings`);var Ad=class{static{x(this,`Project`)}fs;root;baseDirectory;relativeBaseDirectory;packageManager;jsWorkspaceRoot;workspace;buildSystems;settings;frameworks;runtimes;#e={};bugsnag;logger;reportFn=ld;events=new od;_nodeVersion=null;setNodeVersion(e){return this._nodeVersion=(0,nl.parse)((0,nl.coerce)(e),{loose:!0}),this}async getCurrentNodeVersion(){if(this._nodeVersion)return this._nodeVersion;let e=(0,nl.parse)((0,nl.coerce)(this.getEnv(`NODE_VERSION`)),{loose:!0});if(e)return e;let t=await this.fs.gracefullyReadFile(`.nvmrc`);if(t)return(0,nl.parse)((0,nl.coerce)(t,{loose:!0}));let n=await this.fs.gracefullyReadFile(`.node_version`);return n?(0,nl.parse)((0,nl.coerce)(n,{loose:!0})):null}async isRedwoodProject(){return await this.fs.fileExists(this.fs.resolve(this.fs.cwd,`redwood.toml`))}constructor(e,t,n){this.fs=e,this.baseDirectory=e.resolve(n||``,t===void 0?e.cwd:t),this.root=n?e.resolve(e.cwd,n):void 0,this.relativeBaseDirectory=t!==void 0&&!e.isAbsolute(t)?t:e.relative(this.root||e.cwd,this.baseDirectory),this.fs.cwd=this.baseDirectory,this.logger=e.logger}setEnvironment(e){return this.#e=e,this}setReportFn(e){return this.reportFn=e,this}setBugsnag(e){return e&&(this.bugsnag=e),this}getEnv(e){return this.#e[e]}report(e,t={}){this.fs.logger.error(e),this.reportFn(e,{metadata:{build:{baseDirectory:this.baseDirectory,root:this.root},...t.metadata||{}},context:t.context,severity:t.severity,client:this.bugsnag})}getNpmScriptCommand(e){return`${this.packageManager?.runCommand||dd.npm.runCommand} ${e}`}async getRootPackageJSON(){let e=(await this.fs.findUpMultiple(`package.json`,{cwd:this.baseDirectory,stopAt:this.root})).pop();return e?(this.jsWorkspaceRoot=this.fs.dirname(e),this.fs.readJSON(e)):{}}async getPackageJSON(e){let t=await this.fs.findUp(`package.json`,{cwd:e||this.baseDirectory,stopAt:this.root});if(t){let e=await this.fs.readJSON(t);return Object.assign(e,{pkgPath:t})}return{pkgPath:null}}resolveFromPackage(e,...t){return this.jsWorkspaceRoot?this.fs.join(this.jsWorkspaceRoot,e,...t):this.baseDirectory.endsWith(e)&&!this.workspace?.isRoot?this.fs.join(this.baseDirectory,...t):this.fs.resolve(e,...t)}async detectPackageManager(e){if(this.logger.debug(`[project.ts]: detectPackageManager`),this.packageManager!==void 0)return this.packageManager;try{return this.packageManager=await md(this,e),await this.events.emit(`detectPackageManager`,this.packageManager),this.packageManager}catch{return null}}async detectWorkspaces(){if(this.logger.debug(`[project.ts]: detectWorkspaces`),this.workspace!==void 0)return this.workspace;await this.detectPackageManager();try{return this.workspace=await ed(this),await this.events.emit(`detectWorkspaces`,this.workspace),this.workspace}catch(e){return this.report(e),null}}async detectBuildSystem(){if(this.logger.debug(`[project.ts]: detectBuildSystem`),this.buildSystems!==void 0)return this.buildSystems;await this.detectWorkspaces();try{return this.buildSystems=(await Promise.all(ad.map(e=>new e(this).detect()))).filter(Boolean),await this.events.emit(`detectBuildsystems`,this.buildSystems),this.buildSystems}catch(e){return this.report(e),[]}}async detectRuntime(){this.logger.debug(`[project.ts]: detectRuntime`);try{return this.runtimes=(await Promise.all(Ed.map(e=>new e(this).detect()))).filter(Boolean),this.events.emit(`detectRuntimes`,this.runtimes),this.runtimes}catch(e){return this.report(e),[]}}async detectFrameworks(){if(this.logger.debug(`[project.ts]: detectFrameworks`),this.frameworks!==void 0)return[...this.frameworks.values()].flat();try{return await this.detectBuildSystem(),this.frameworks=new Map,this.workspace?await Promise.all(this.workspace.packages.map(async({path:e,forcedFramework:t})=>{if(t)try{let n=await tl(t,this);this.frameworks.set(e,[n])}catch{}else if(this.workspace){let t=await this.detectFrameworksInPath(this.fs.join(this.workspace.rootDir,e));this.frameworks.set(e,t)}})):this.frameworks.set(``,await this.detectFrameworksInPath()),await this.events.emit(`detectFrameworks`,this.frameworks),[...this.frameworks.values()].flat()}catch(e){return this.report(e),null}}async detectFrameworksInPath(e){this.logger.debug(`[project.ts]: detectFrameworksInPath - ${e}`);try{return As((await Promise.all(el.map(t=>new t(this,e).detect()))).filter(Boolean))}catch{return[]}}async getBuildSettings(e){if(this.logger.debug(`[project.ts]: getBuildSettings`),this.settings!==void 0)return this.settings;this.settings=[];try{await this.detectFrameworks(),this.settings=await kd(this,e),await this.events.emit(`detectSettings`,this.settings)}catch(e){this.report(e)}return this.settings}},jd=class{static{x(this,`Node`)}value;next;constructor(e){this.value=e}},Md=class{static{x(this,`Queue`)}#e;#t;#n;constructor(){this.clear()}enqueue(e){let t=new jd(e);this.#e?(this.#t.next=t,this.#t=t):(this.#e=t,this.#t=t),this.#n++}dequeue(){let e=this.#e;if(e)return this.#e=this.#e.next,this.#n--,e.value}clear(){this.#e=void 0,this.#t=void 0,this.#n=0}get size(){return this.#n}*[Symbol.iterator](){let e=this.#e;for(;e;)yield e.value,e=e.next}};function Nd(e){if(!((Number.isInteger(e)||e===1/0)&&e>0))throw TypeError("Expected `concurrency` to be a number from 1 and up");let t=new Md,n=0,r=x(()=>{n--,t.size>0&&t.dequeue()()},`next`),i=x(async(e,t,i)=>{n++;let a=(async()=>e(...i))();t(a);try{await a}catch{}r()},`run`),a=x((r,a,o)=>{t.enqueue(i.bind(void 0,r,a,o)),(async()=>{await Promise.resolve(),n<e&&t.size>0&&t.dequeue()()})()},`enqueue`),o=x((e,...t)=>new Promise(n=>{a(e,n,t)}),`generator`);return Object.defineProperties(o,{activeCount:{get:x(()=>n,`get`)},pendingCount:{get:x(()=>t.size,`get`)},clearQueue:{value:x(()=>{t.clear()},`value`)}}),o}x(Nd,`pLimit`);var Pd=class extends Error{static{x(this,`EndError`)}constructor(e){super(),this.value=e}},Fd=x(async(e,t)=>t(await e),`testElement`),Id=x(async e=>{let t=await Promise.all(e);if(t[1]===!0)throw new Pd(t[0]);return!1},`finder`);async function Ld(e,t,{concurrency:n=1/0,preserveOrder:r=!0}={}){let i=Nd(n),a=[...e].map(e=>[e,i(Fd,e,t)]),o=Nd(r?1:1/0);try{await Promise.all(a.map(e=>o(Id,e)))}catch(e){if(e instanceof Pd)return e.value;throw e}}x(Ld,`pLocate`);var Rd={directory:`isDirectory`,file:`isFile`};function zd(e){if(!Object.hasOwnProperty.call(Rd,e))throw Error(`Invalid type specified: ${e}`)}x(zd,`checkType`);var Bd=x((e,t)=>t[Rd[e]](),`matchType`),Vd=x(e=>e instanceof URL?Se(e):e,`toPath`);async function Hd(e,{cwd:t=V.cwd(),type:n=`file`,allowSymlinks:r=!0,concurrency:i,preserveOrder:a}={}){zd(n),t=Vd(t);let o=r?he.stat:he.lstat;return Ld(e,async e=>{try{return Bd(n,await o(z.resolve(t,e)))}catch{return!1}},{concurrency:i,preserveOrder:a})}x(Hd,`locatePath`);function Ud(e){return e instanceof URL?Se(e):e}x(Ud,`toPath`);var Wd=Symbol(`findUpStop`);async function Gd(e,t={}){let n=z.resolve(Ud(t.cwd)??``),{root:r}=z.parse(n),i=z.resolve(n,Ud(t.stopAt??r)),a=t.limit??1/0,o=[e].flat(),s=x(async t=>{if(typeof e!=`function`)return Hd(o,t);let n=await e(t.cwd);return typeof n==`string`?Hd([n],t):n},`runMatcher`),c=[];for(;;){let e=await s({...t,cwd:n});if(e===Wd||(e&&c.push(z.resolve(n,e)),n===i||c.length>=a))break;n=z.dirname(n)}return c}x(Gd,`findUpMultiple`);async function Kd(e,t={}){return(await Gd(e,{...t,limit:1}))[0]}x(Kd,`findUp`);var qd=class extends ps{static{x(this,`NodeFS`)}constructor(){super(),this.cwd=process.cwd()}getEnvironment(){return`node`}isAbsolute(e){return ce(e)}dirname(e){return L(e)}resolve(...e){return de(...e)}relative(e,t){return ue(e,t)}basename(e){return se(e)}join(...e){return le(...e)}async fileExists(e){try{return await fe.stat(de(e)),!0}catch{return!1}}async readDir(e,t){try{return t?(await fe.readdir(de(e),{withFileTypes:!0})).reduce((e,t)=>({...e,[t.name]:t.isDirectory()?`directory`:`file`}),{}):fe.readdir(de(e))}catch{return[]}}async readFile(e){return(await fe.readFile(de(e),`utf-8`)).toString()}findUp(e,t={}){return Kd(e,t)}findUpMultiple(e,t={}){return Gd(e,t)}},Jd=10,Yd=x((e=0)=>t=>`\x1B[${t+e}m`,`wrapAnsi16`),Xd=x((e=0)=>t=>`\x1B[${38+e};5;${t}m`,`wrapAnsi256`),Zd=x((e=0)=>(t,n,r)=>`\x1B[${38+e};2;${t};${n};${r}m`,`wrapAnsi16m`),Q={modifier:{reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],overline:[53,55],inverse:[7,27],hidden:[8,28],strikethrough:[9,29]},color:{black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],blackBright:[90,39],gray:[90,39],grey:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39]},bgColor:{bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgBlackBright:[100,49],bgGray:[100,49],bgGrey:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]}};Object.keys(Q.modifier);var Qd=Object.keys(Q.color),$d=Object.keys(Q.bgColor);[...Qd,...$d];function ef(){let e=new Map;for(let[t,n]of Object.entries(Q)){for(let[t,r]of Object.entries(n))Q[t]={open:`\x1B[${r[0]}m`,close:`\x1B[${r[1]}m`},n[t]=Q[t],e.set(r[0],r[1]);Object.defineProperty(Q,t,{value:n,enumerable:!1})}return Object.defineProperty(Q,`codes`,{value:e,enumerable:!1}),Q.color.close=`\x1B[39m`,Q.bgColor.close=`\x1B[49m`,Q.color.ansi=Yd(),Q.color.ansi256=Xd(),Q.color.ansi16m=Zd(),Q.bgColor.ansi=Yd(Jd),Q.bgColor.ansi256=Xd(Jd),Q.bgColor.ansi16m=Zd(Jd),Object.defineProperties(Q,{rgbToAnsi256:{value(e,t,n){return e===t&&t===n?e<8?16:e>248?231:Math.round((e-8)/247*24)+232:16+36*Math.round(e/255*5)+6*Math.round(t/255*5)+Math.round(n/255*5)},enumerable:!1},hexToRgb:{value(e){let t=/[a-f\d]{6}|[a-f\d]{3}/i.exec(e.toString(16));if(!t)return[0,0,0];let[n]=t;n.length===3&&(n=[...n].map(e=>e+e).join(``));let r=Number.parseInt(n,16);return[r>>16&255,r>>8&255,r&255]},enumerable:!1},hexToAnsi256:{value:x(e=>Q.rgbToAnsi256(...Q.hexToRgb(e)),`value`),enumerable:!1},ansi256ToAnsi:{value(e){if(e<8)return 30+e;if(e<16)return 90+(e-8);let t,n,r;if(e>=232)t=((e-232)*10+8)/255,n=t,r=t;else{e-=16;let i=e%36;t=Math.floor(e/36)/5,n=Math.floor(i/6)/5,r=i%6/5}let i=Math.max(t,n,r)*2;if(i===0)return 30;let a=30+(Math.round(r)<<2|Math.round(n)<<1|Math.round(t));return i===2&&(a+=60),a},enumerable:!1},rgbToAnsi:{value:x((e,t,n)=>Q.ansi256ToAnsi(Q.rgbToAnsi256(e,t,n)),`value`),enumerable:!1},hexToAnsi:{value:x(e=>Q.ansi256ToAnsi(Q.hexToAnsi256(e)),`value`),enumerable:!1}}),Q}x(ef,`assembleStyles`);var tf=ef();function nf(e,t=globalThis.Deno?globalThis.Deno.args:V.argv){let n=e.startsWith(`-`)?``:e.length===1?`-`:`--`,r=t.indexOf(n+e),i=t.indexOf(`--`);return r!==-1&&(i===-1||r<i)}x(nf,`hasFlag`);var{env:$}=V,rf;nf(`no-color`)||nf(`no-colors`)||nf(`color=false`)||nf(`color=never`)?rf=0:(nf(`color`)||nf(`colors`)||nf(`color=true`)||nf(`color=always`))&&(rf=1);function af(){if(`FORCE_COLOR`in $)return $.FORCE_COLOR===`true`?1:$.FORCE_COLOR===`false`?0:$.FORCE_COLOR.length===0?1:Math.min(Number.parseInt($.FORCE_COLOR,10),3)}x(af,`envForceColor`);function of(e){return e===0?!1:{level:e,hasBasic:!0,has256:e>=2,has16m:e>=3}}x(of,`translateLevel`);function sf(e,{streamIsTTY:t,sniffFlags:n=!0}={}){let r=af();r!==void 0&&(rf=r);let i=n?rf:r;if(i===0)return 0;if(n){if(nf(`color=16m`)||nf(`color=full`)||nf(`color=truecolor`))return 3;if(nf(`color=256`))return 2}if(`TF_BUILD`in $&&`AGENT_NAME`in $)return 1;if(e&&!t&&i===void 0)return 0;let a=i||0;if($.TERM===`dumb`)return a;if(V.platform===`win32`){let e=Ce.release().split(`.`);return Number(e[0])>=10&&Number(e[2])>=10586?Number(e[2])>=14931?3:2:1}if(`CI`in $)return`GITHUB_ACTIONS`in $||`GITEA_ACTIONS`in $?3:[`TRAVIS`,`CIRCLECI`,`APPVEYOR`,`GITLAB_CI`,`BUILDKITE`,`DRONE`].some(e=>e in $)||$.CI_NAME===`codeship`?1:a;if(`TEAMCITY_VERSION`in $)return+!!/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test($.TEAMCITY_VERSION);if($.COLORTERM===`truecolor`||$.TERM===`xterm-kitty`)return 3;if(`TERM_PROGRAM`in $){let e=Number.parseInt(($.TERM_PROGRAM_VERSION||``).split(`.`)[0],10);switch($.TERM_PROGRAM){case`iTerm.app`:return e>=3?3:2;case`Apple_Terminal`:return 2}}return/-256(color)?$/i.test($.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test($.TERM)||`COLORTERM`in $?1:a}x(sf,`_supportsColor`);function cf(e,t={}){return of(sf(e,{streamIsTTY:e&&e.isTTY,...t}))}x(cf,`createSupportsColor`);var lf={stdout:cf({isTTY:Te.isatty(1)}),stderr:cf({isTTY:Te.isatty(2)})};function uf(e,t,n){let r=e.indexOf(t);if(r===-1)return e;let i=t.length,a=0,o=``;do o+=e.slice(a,r)+t+n,a=r+i,r=e.indexOf(t,a);while(r!==-1);return o+=e.slice(a),o}x(uf,`stringReplaceAll`);function df(e,t,n,r){let i=0,a=``;do{let o=e[r-1]===`\r`;a+=e.slice(i,o?r-1:r)+t+(o?`\r
482
482
  `:`
483
483
  `)+n,i=r+1,r=e.indexOf(`
484
- `,i)}while(r!==-1);return a+=e.slice(i),a}x(uf,`stringEncaseCRLFWithFirstIndex`);var{stdout:df,stderr:ff}=cf,pf=Symbol(`GENERATOR`),mf=Symbol(`STYLER`),hf=Symbol(`IS_EMPTY`),gf=[`ansi`,`ansi`,`ansi256`,`ansi16m`],_f=Object.create(null),vf=x((e,t={})=>{if(t.level&&!(Number.isInteger(t.level)&&t.level>=0&&t.level<=3))throw Error("The `level` option should be an integer from 0 to 3");let n=df?df.level:0;e.level=t.level===void 0?n:t.level},`applyOptions`),yf=x(e=>{let t=x((...e)=>e.join(` `),`chalk`);return vf(t,e),Object.setPrototypeOf(t,bf.prototype),t},`chalkFactory`);function bf(e){return yf(e)}x(bf,`createChalk`),Object.setPrototypeOf(bf.prototype,Function.prototype);for(let[e,t]of Object.entries(ef))_f[e]={get(){let n=wf(this,Cf(t.open,t.close,this[mf]),this[hf]);return Object.defineProperty(this,e,{value:n}),n}};_f.visible={get(){let e=wf(this,this[mf],!0);return Object.defineProperty(this,`visible`,{value:e}),e}};var xf=x((e,t,n,...r)=>e===`rgb`?t===`ansi16m`?ef[n].ansi16m(...r):t===`ansi256`?ef[n].ansi256(ef.rgbToAnsi256(...r)):ef[n].ansi(ef.rgbToAnsi(...r)):e===`hex`?xf(`rgb`,t,n,...ef.hexToRgb(...r)):ef[n][e](...r),`getModelAnsi`);for(let e of[`rgb`,`hex`,`ansi256`]){_f[e]={get(){let{level:t}=this;return function(...n){let r=Cf(xf(e,gf[t],`color`,...n),ef.color.close,this[mf]);return wf(this,r,this[hf])}}};let t=`bg`+e[0].toUpperCase()+e.slice(1);_f[t]={get(){let{level:t}=this;return function(...n){let r=Cf(xf(e,gf[t],`bgColor`,...n),ef.bgColor.close,this[mf]);return wf(this,r,this[hf])}}}}var Sf=Object.defineProperties(()=>{},{..._f,level:{enumerable:!0,get(){return this[pf].level},set(e){this[pf].level=e}}}),Cf=x((e,t,n)=>{let r,i;return n===void 0?(r=e,i=t):(r=n.openAll+e,i=t+n.closeAll),{open:e,close:t,openAll:r,closeAll:i,parent:n}},`createStyler`),wf=x((e,t,n)=>{let r=x((...e)=>Tf(r,e.length===1?``+e[0]:e.join(` `)),`builder`);return Object.setPrototypeOf(r,Sf),r[pf]=e,r[mf]=t,r[hf]=n,r},`createBuilder`),Tf=x((e,t)=>{if(e.level<=0||!t)return e[hf]?``:t;let n=e[mf];if(n===void 0)return t;let{openAll:r,closeAll:i}=n;if(t.includes(`\x1B`))for(;n!==void 0;)t=lf(t,n.close,n.open),n=n.parent;let a=t.indexOf(`
485
- `);return a!==-1&&(t=uf(t,i,r,a)),r+t+i},`applyStyle`);Object.defineProperties(bf.prototype,_f);var Ef=bf();bf({level:ff?ff.level:0});var Df=Ef;async function Of(e,t,{wranglerConfig:n,target:r=`cf`}={}){let i=new Kd;i.logger=t.logger;let a=new kd(i,e,e).setEnvironment(process.env).setNodeVersion(process.version),o=await a.getBuildSettings(),s=!!a.workspace?.isRoot;if(s){let t=V(e);if(!a.workspace?.packages.some(e=>V(e.path)===t))throw new p(`The Cloudflare application detection logic has been run in the root of a workspace instead of targeting a specific project. Change your working directory to one of the applications in the workspace and try again.`,{telemetryMessage:`autoconfig detection workspace root unsupported`})}let c=kf(a.packageManager,e),l=c.lockFiles.some(t=>R(B(e,t))),u=Nf(o,t);if(u&&r===`cf`){let e=u.framework.id,t=rs(e)&&as(e)?a.frameworks.get(u.baseDirectory??``)?.find(({id:t})=>t===e):void 0;u.devCommand=t?.dev?.command,u.buildCommand=t?.build?.command}if(await Mf(e,t,n,u))return{detectedFramework:{framework:{name:`Cloudflare Pages`,id:`cloudflare-pages`},dist:n?.pages_build_output_dir},packageManager:c};let d=u??{framework:{id:Qo.id,name:Qo.name}};return!l&&d.framework.id!==Qo.id&&t.logger.warn(`No lock file has been detected in the current working directory. This might indicate that the project is part of a workspace. Auto-configuration of projects inside workspaces is limited. See ${Df.hex(`#3B818D`)(`https://developers.cloudflare.com/workers/framework-guides/automatic-configuration/#workspaces`)}`),{detectedFramework:d,packageManager:c,isWorkspaceRoot:s}}x(Of,`detectFramework`);function kf(e,t){if(R(B(t,`nub.lock`)))return l;if(!e)return f;switch(e?.name){case`pnpm`:return _;case`yarn`:return d;case`bun`:return v;default:return f}}x(kf,`convertDetectedPackageManager`);var Af=class extends o{static{x(this,`MultipleFrameworksCIError`)}constructor(e,t={telemetryMessage:`autoconfig detection multiple frameworks`}){super(Aa`Cloudflare's tooling was unable to automatically configure your project, since multiple frameworks were found: ${e.join(`, `)}.
484
+ `,i)}while(r!==-1);return a+=e.slice(i),a}x(df,`stringEncaseCRLFWithFirstIndex`);var{stdout:ff,stderr:pf}=lf,mf=Symbol(`GENERATOR`),hf=Symbol(`STYLER`),gf=Symbol(`IS_EMPTY`),_f=[`ansi`,`ansi`,`ansi256`,`ansi16m`],vf=Object.create(null),yf=x((e,t={})=>{if(t.level&&!(Number.isInteger(t.level)&&t.level>=0&&t.level<=3))throw Error("The `level` option should be an integer from 0 to 3");let n=ff?ff.level:0;e.level=t.level===void 0?n:t.level},`applyOptions`),bf=x(e=>{let t=x((...e)=>e.join(` `),`chalk`);return yf(t,e),Object.setPrototypeOf(t,xf.prototype),t},`chalkFactory`);function xf(e){return bf(e)}x(xf,`createChalk`),Object.setPrototypeOf(xf.prototype,Function.prototype);for(let[e,t]of Object.entries(tf))vf[e]={get(){let n=Tf(this,wf(t.open,t.close,this[hf]),this[gf]);return Object.defineProperty(this,e,{value:n}),n}};vf.visible={get(){let e=Tf(this,this[hf],!0);return Object.defineProperty(this,`visible`,{value:e}),e}};var Sf=x((e,t,n,...r)=>e===`rgb`?t===`ansi16m`?tf[n].ansi16m(...r):t===`ansi256`?tf[n].ansi256(tf.rgbToAnsi256(...r)):tf[n].ansi(tf.rgbToAnsi(...r)):e===`hex`?Sf(`rgb`,t,n,...tf.hexToRgb(...r)):tf[n][e](...r),`getModelAnsi`);for(let e of[`rgb`,`hex`,`ansi256`]){vf[e]={get(){let{level:t}=this;return function(...n){let r=wf(Sf(e,_f[t],`color`,...n),tf.color.close,this[hf]);return Tf(this,r,this[gf])}}};let t=`bg`+e[0].toUpperCase()+e.slice(1);vf[t]={get(){let{level:t}=this;return function(...n){let r=wf(Sf(e,_f[t],`bgColor`,...n),tf.bgColor.close,this[hf]);return Tf(this,r,this[gf])}}}}var Cf=Object.defineProperties(()=>{},{...vf,level:{enumerable:!0,get(){return this[mf].level},set(e){this[mf].level=e}}}),wf=x((e,t,n)=>{let r,i;return n===void 0?(r=e,i=t):(r=n.openAll+e,i=t+n.closeAll),{open:e,close:t,openAll:r,closeAll:i,parent:n}},`createStyler`),Tf=x((e,t,n)=>{let r=x((...e)=>Ef(r,e.length===1?``+e[0]:e.join(` `)),`builder`);return Object.setPrototypeOf(r,Cf),r[mf]=e,r[hf]=t,r[gf]=n,r},`createBuilder`),Ef=x((e,t)=>{if(e.level<=0||!t)return e[gf]?``:t;let n=e[hf];if(n===void 0)return t;let{openAll:r,closeAll:i}=n;if(t.includes(`\x1B`))for(;n!==void 0;)t=uf(t,n.close,n.open),n=n.parent;let a=t.indexOf(`
485
+ `);return a!==-1&&(t=df(t,i,r,a)),r+t+i},`applyStyle`);Object.defineProperties(xf.prototype,vf);var Df=xf();xf({level:pf?pf.level:0});var Of=Df;async function kf(e,t,{wranglerConfig:n,target:r=`cf`}={}){let i=new qd;i.logger=t.logger;let o=new Ad(i,e,e).setEnvironment(process.env).setNodeVersion(process.version),s=await o.getBuildSettings(),c=!!o.workspace?.isRoot;if(c){let t=xe(e);if(!o.workspace?.packages.some(e=>xe(e.path)===t))throw new a(`The Cloudflare application detection logic has been run in the root of a workspace instead of targeting a specific project. Change your working directory to one of the applications in the workspace and try again.`,{telemetryMessage:`autoconfig detection workspace root unsupported`})}let l=Af(o.packageManager,e),u=l.lockFiles.some(t=>R(B(e,t))),d=Pf(s,t);if(d&&r===`cf`){let e=d.framework.id,t=is(e)&&os(e)?o.frameworks.get(d.baseDirectory??``)?.find(({id:t})=>t===e):void 0;d.devCommand=t?.dev?.command,d.buildCommand=t?.build?.command}if(await Nf(e,t,n,d))return{detectedFramework:{framework:{name:`Cloudflare Pages`,id:`cloudflare-pages`},dist:n?.pages_build_output_dir},packageManager:l};let f=d??{framework:{id:$o.id,name:$o.name}};return!u&&f.framework.id!==$o.id&&t.logger.warn(`No lock file has been detected in the current working directory. This might indicate that the project is part of a workspace. Auto-configuration of projects inside workspaces is limited. See ${Of.hex(`#3B818D`)(`https://developers.cloudflare.com/workers/framework-guides/automatic-configuration/#workspaces`)}`),{detectedFramework:f,packageManager:l,isWorkspaceRoot:c}}x(kf,`detectFramework`);function Af(e,t){if(R(B(t,`nub.lock`)))return l;if(!e)return d;switch(e?.name){case`pnpm`:return g;case`yarn`:return u;case`bun`:return _;default:return d}}x(Af,`convertDetectedPackageManager`);var jf=class extends p{static{x(this,`MultipleFrameworksCIError`)}constructor(e,t={telemetryMessage:`autoconfig detection multiple frameworks`}){super(ja`Cloudflare's tooling was unable to automatically configure your project, since multiple frameworks were found: ${e.join(`, `)}.
486
486
 
487
487
  To fix this issue either:
488
488
  - check your project's configuration to make sure that the target framework
@@ -490,22 +490,22 @@ ${n.stack}`),this.logger.error(r),{}}}async findUp(e,t={}){let n=this.resolve(t.
490
490
  - run \`wrangler setup\` locally to get an interactive user experience where
491
491
  you can specify what framework you want to target
492
492
 
493
- `,{...t,code:1})}};function jf(e){throw new Af(e.map(e=>e.name),{telemetryMessage:`autoconfig detection multiple frameworks`})}x(jf,`throwMultipleFrameworksNonInteractiveError`);async function Mf(e,t,n,r){if(n?.pages_build_output_dir)return!0;let i=t.getCacheFolder?.();if(i&&R(B(i,`pages.json`)))return!0;if(r===void 0){let n=B(e,`functions`);if(R(n)&&ge(n).isDirectory())return await t.dialogs.confirm("We have identified a `functions` directory in this project, which might indicate you have an active Cloudflare Pages deployment. Is this correct?",{defaultValue:!0,fallbackValue:!1})}return!1}x(Mf,`isPagesProject`);function Nf(e,t){if(e.length===0)return;if(e.length===1)return e[0];let n=e.filter(({framework:e})=>rs(e.id));if(n.length===0)return(t.isNonInteractiveOrCI?.()??!1)&&jf(e),e[0];if(n.length===1)return n[0];if(n.length===2){let e=new Set(n.map(({framework:e})=>e.id));for(let t of[`vite`,`hono`])if(e.has(t)){let e=n.find(({framework:e})=>e.id!==t);if(e)return e}}if(t.isNonInteractiveOrCI?.()??!1)throw new Af(n.map(e=>e.name),{telemetryMessage:`autoconfig detection multiple frameworks`});return n[0]}x(Nf,`maybeFindDetectedFramework`);var Pf=`cloudflare.config.ts`;function Ff(e){Te(e.configured===!1,`Error: expected the current project not to be already configured`)}x(Ff,`assertNonConfigured`);function If(e){return typeof e==`object`&&!!e&&`code`in e&&(e.code===`ENOENT`||e.code===`ENOTDIR`||e.code===`EACCES`||e.code===`EPERM`)}x(If,`isExpectedFileSystemError`);async function Lf(e){try{return await Ae(e)}catch(e){if(If(e))return;throw e}}x(Lf,`getPathStats`);async function Rf(e){if(!(await Lf(B(e,`index.html`)))?.isFile())return!1;try{return(await ke(e)).includes(`index.html`)}catch(e){if(If(e))return!1;throw e}}x(Rf,`hasIndexHtml`);async function zf(e){if(await Rf(e))return`.`;let t=await ke(e);for(let n of t){let t=B(e,n);if((await Lf(t))?.isDirectory()&&await Rf(t))return ye(e,t)}}x(zf,`findAssetsDir`);async function Bf({projectPath:e=process.cwd(),wranglerConfig:t,target:n=`cf`,context:r}){let{logger:i}=r;i.debug(`Running autoconfig detection in ${e}...`);let a=n===`cf`&&R(V(e,Pf));if(n===`wrangler`&&t?.configPath&&!t.pages_build_output_dir)return{configured:!0,projectPath:e,workerName:y(t.name,e),packageManager:f};let{detectedFramework:o,packageManager:l,isWorkspaceRoot:u}=await Of(e,r,{wranglerConfig:t,target:n}),d=is(o.framework.id),p=V(e,`package.json`),m;try{m=s(c(p),p)}catch{i.debug(`No package.json found when running autoconfig`)}let h=a||d.isConfigured(e,{target:n}),g=o?.dist??await zf(e),_={projectPath:e,framework:d,packageJson:m,packageManager:l,devCommand:Vf(o.devCommand,l),buildCommand:Vf(o.buildCommand,l),env:d.env,workerName:y(m?.name,e)};if(h)return{..._,configured:!0,isWorkspaceRoot:u};if(!g)throw new ua(d.id===`static`||d.id===`cloudflare-pages`?`Could not detect a directory containing static files (e.g. html, css and js) for the project`:`Failed to detect an output directory for the project`,{telemetryMessage:`autoconfig details output directory missing`,frameworkId:d.id,configured:h});return{..._,outputDir:g,configured:!1,isWorkspaceRoot:u}}x(Bf,`getDetailsForAutoConfig`);function Vf(e,t){if(!e)return;let{type:n,dlx:r,npx:i}=t;for(let t of[n,r.join(` `),i])if(e.startsWith(t))return e;return`${i} ${e}`}x(Vf,`getProjectCommand`);function Hf(e,t,n){let{logger:r}=t;r.log(``),r.log(n?.heading??`Detected Project Settings:`),r.log(k(` - Worker Name:`),e.workerName),e.framework&&r.log(k(` - Framework:`),e.framework.name),e.buildCommand&&r.log(k(` - Build Command:`),e.buildCommand),e.outputDir&&r.log(k(` - Output Directory:`),e.outputDir),r.log(``)}x(Hf,`displayAutoConfigDetails`);async function Uf(e,t){let{dialogs:n}=t;if(!await n.confirm(`Do you want to modify these settings?`,{defaultValue:!1,fallbackValue:!1}))return e;let{...r}=e;return r.workerName=await n.prompt(`What do you want to name your Worker?`,{defaultValue:e.workerName??``,validate:x(e=>{let t=m(e);return t.valid?!0:t.cause},`validate`)}),r.framework=is(await n.select(`What framework is your application using?`,{choices:$o.map(e=>({title:e.name,value:e.id,description:e.id===Qo.id?`No framework at all, or a static framework such as Vite, React or Gatsby.`:`The ${e.name} JavaScript framework`})),defaultOption:$o.findIndex(t=>e?.framework?e.framework.id===t.id:t.id===Qo.id)})),r.outputDir=await n.prompt(`What directory contains your applications' output/asset files?`,{defaultValue:e.outputDir??``,validate:x(async e=>{if(!e)return`Please provide a valid directory path`;let t=ge(V(e),{throwIfNoEntry:!1});return t&&t?.isFile()?`Please select a directory`:!0},`validate`)}),(e.buildCommand||e.packageJson)&&(r.buildCommand=await n.prompt(`What is your application's build command?`,{defaultValue:e.buildCommand??``})),r}x(Uf,`confirmAutoConfigDetails`);async function Wf(e,t){let{context:n}=t,r=t.target??`cf`,{logger:i}=n,a=t.dryRun===!0,s=!a&&(t.runBuild??!0),c=a||t.skipConfirmations===!0,l=t.enableTargetCliInstallation??!0;Ff(e),Hf(e,n);let u=c?e:await Uf(e,n);if(e!==u&&Hf(u,n,{heading:`Updated Project Settings:`}),e=u,Ff(e),os(e.framework,r),rs(e.framework.id)&&!as(e.framework.id))throw new o(e.framework.id===`cloudflare-pages`?`The target project seems to be using Cloudflare Pages. Automatically migrating from a Pages project to Workers is not yet supported.`:`The detected framework ("${e.framework.name}") cannot be automatically configured.`,{telemetryMessage:`autoconfig run framework unsupported`});Te(e.outputDir,`The Output Directory is unexpectedly missing`);let d=h,f={name:e.workerName,compatibilityDate:d,observability:{enabled:!0}},{packageManager:p}=e,m=e.isWorkspaceRoot??!1,g=es(e.framework.id);g&&e.framework.validateFrameworkVersion(e.projectPath,g,n);let _=await e.framework.configure({target:r,outputDir:e.outputDir,projectPath:e.projectPath,workerName:e.workerName,isWorkspaceRoot:m,dryRun:!0,packageManager:p,context:n}),v=Gf(f,_.workerConfig);if(r===`cf`&&_.buildTool===`wrangler`&&_.buildConfig&&R(V(e.projectPath,`wrangler.config.ts`)))throw new o(`Cannot generate wrangler.config.ts because the file already exists. Remove or rename the existing file, then run autoconfig again.`,{telemetryMessage:`autoconfig wrangler config conflict`});let{npx:y}=p,b=_.buildCommandOverride??e.buildCommand,x=await ep({...e,outputDir:e.outputDir},v,_,{build:b,deploy:_.deployCommandOverride??`${y} ${r} deploy`,version:_.versionCommandOverride??`${y} ${r} versions upload`},l,r,n,_.packageJsonScriptsOverrides);if(!(c||await n.dialogs.confirm(`Proceed with setup?`)))throw new o(`Setup cancelled`,{telemetryMessage:`autoconfig run setup cancelled`});if(a)return i.log(`✋ Autoconfig process run in dry-run mode, existing now.`),i.log(``),x;i.debug(`Running autoconfig with:
494
- ${JSON.stringify(e,null,2)}...`),e.packageJson&&l&&(r===`cf`?e.packageJson.dependencies?.cf!==void 0||e.packageJson.devDependencies?.cf!==void 0||await Ze(p.type,[`cf@latest`],{dev:!0,isWorkspaceRoot:m}):await $e(p.type,m)),e.packageJson&&r===`cf`&&_.buildTool===`wrangler`&&await $e(p.type,m);let S=await e.framework.configure({target:r,outputDir:e.outputDir,projectPath:e.projectPath,workerName:e.workerName,isWorkspaceRoot:m,dryRun:!1,packageManager:p,context:n}),C=Gf(f,S.workerConfig);if(e.packageJson){let t=V(e.projectPath,`package.json`),n=JSON.parse(await Oe(t,`utf8`));await H(t,JSON.stringify({...n,scripts:{...n.scripts,...x.scripts}},null,2)+`
495
- `)}if(r===`wrangler`){let t=Kf(C,S);t!==null&&await Jf(e.projectPath,t)}return r===`cf`&&(C!==null&&await Yf(e.projectPath,C),S.buildTool===`wrangler`&&S.buildConfig&&await Xf(e.projectPath,S.buildConfig)),nt(e.projectPath),e.outputDir===e.projectPath&&tt(`${e.projectPath}/.assetsignore`),b&&s&&await n.runCommand(b,e.projectPath,`[build]`),x}x(Wf,`runAutoConfig`);function Gf(e,t){return t===null?null:{...e,...t}}x(Gf,`mergeWorkerConfig`);function Kf(e,t){if(e===null)return null;let n=Pe(Ne.parse({worker:e}));return qf({$schema:`node_modules/wrangler/config-schema.json`,...n,...t.buildConfig?.assetsDirectory?{assets:{...n.assets,directory:t.buildConfig.assetsDirectory}}:{}})}x(Kf,`getWranglerConfig`);function qf(e){let t=(e.compatibility_flags??[]).filter(e=>!e.startsWith(`nodejs_`));if(g(e.compatibility_date)||t.push(`nodejs_compat`),t.length===0){let{compatibility_flags:t,...n}=e;return n}return{...e,compatibility_flags:t}}x(qf,`ensureNodejsCompatIsEnabled`);async function Jf(e,t){let n={},r=tp(e);r&&(n=u(await Oe(r,`utf8`),r));let i=qf({...n,...t});await H(V(e,`wrangler.jsonc`),JSON.stringify(i,null,2)+`
496
- `)}x(Jf,`saveWranglerJsonc`);async function Yf(e,t){await H(V(e,`cloudflare.config.ts`),Zf(t))}x(Yf,`saveCloudflareConfig`);async function Xf(e,t){await H(V(e,`wrangler.config.ts`),Qf(t))}x(Xf,`saveWranglerConfigTs`);function Zf(e){return`import { defineConfig } from "cf/config";
493
+ `,{...t,code:1})}};function Mf(e){throw new jf(e.map(e=>e.name),{telemetryMessage:`autoconfig detection multiple frameworks`})}x(Mf,`throwMultipleFrameworksNonInteractiveError`);async function Nf(e,t,n,r){if(n?.pages_build_output_dir)return!0;let i=t.getCacheFolder?.();if(i&&R(B(i,`pages.json`)))return!0;if(r===void 0){let n=B(e,`functions`);if(R(n)&&_e(n).isDirectory())return await t.dialogs.confirm("We have identified a `functions` directory in this project, which might indicate you have an active Cloudflare Pages deployment. Is this correct?",{defaultValue:!0,fallbackValue:!1})}return!1}x(Nf,`isPagesProject`);function Pf(e,t){if(e.length===0)return;if(e.length===1)return e[0];let n=e.filter(({framework:e})=>is(e.id));if(n.length===0)return(t.isNonInteractiveOrCI?.()??!1)&&Mf(e),e[0];if(n.length===1)return n[0];if(n.length===2){let e=new Set(n.map(({framework:e})=>e.id));for(let t of[`vite`,`hono`])if(e.has(t)){let e=n.find(({framework:e})=>e.id!==t);if(e)return e}}if(t.isNonInteractiveOrCI?.()??!1)throw new jf(n.map(e=>e.name),{telemetryMessage:`autoconfig detection multiple frameworks`});return n[0]}x(Pf,`maybeFindDetectedFramework`);var Ff=`cloudflare.config.ts`;function If(e){H(e.configured===!1,`Error: expected the current project not to be already configured`)}x(If,`assertNonConfigured`);function Lf(e){return typeof e==`object`&&!!e&&`code`in e&&(e.code===`ENOENT`||e.code===`ENOTDIR`||e.code===`EACCES`||e.code===`EPERM`)}x(Lf,`isExpectedFileSystemError`);async function Rf(e){try{return await Oe(e)}catch(e){if(Lf(e))return;throw e}}x(Rf,`getPathStats`);async function zf(e){if(!(await Rf(B(e,`index.html`)))?.isFile())return!1;try{return(await De(e)).includes(`index.html`)}catch(e){if(Lf(e))return!1;throw e}}x(zf,`hasIndexHtml`);async function Bf(e){if(await zf(e))return`.`;let t=await De(e);for(let n of t){let t=B(e,n);if((await Rf(t))?.isDirectory()&&await zf(t))return be(e,t)}}x(Bf,`findAssetsDir`);async function Vf({projectPath:e=process.cwd(),wranglerConfig:t,target:n=`cf`,context:r}){let{logger:i}=r;i.debug(`Running autoconfig detection in ${e}...`);let a=n===`cf`&&R(xe(e,Ff));if(n===`wrangler`&&t?.configPath&&!t.pages_build_output_dir)return{configured:!0,projectPath:e,workerName:v(t.name,e),packageManager:d};let{detectedFramework:o,packageManager:l,isWorkspaceRoot:u}=await kf(e,r,{wranglerConfig:t,target:n}),f=as(o.framework.id),p=xe(e,`package.json`),m;try{m=s(c(p),p)}catch{i.debug(`No package.json found when running autoconfig`)}let h=a||f.isConfigured(e,{target:n}),g=o?.dist??await Bf(e),_={projectPath:e,framework:f,packageJson:m,packageManager:l,devCommand:Hf(o.devCommand,l),buildCommand:Hf(o.buildCommand,l),env:f.env,workerName:v(m?.name,e)};if(h)return{..._,configured:!0,isWorkspaceRoot:u};if(!g)throw new da(f.id===`static`||f.id===`cloudflare-pages`?`Could not detect a directory containing static files (e.g. html, css and js) for the project`:`Failed to detect an output directory for the project`,{telemetryMessage:`autoconfig details output directory missing`,frameworkId:f.id,configured:h});return{..._,outputDir:g,configured:!1,isWorkspaceRoot:u}}x(Vf,`getDetailsForAutoConfig`);function Hf(e,t){if(!e)return;let{type:n,dlx:r,npx:i}=t;for(let t of[n,r.join(` `),i])if(e.startsWith(t))return e;return`${i} ${e}`}x(Hf,`getProjectCommand`);function Uf(e,t,n){let{logger:r}=t;r.log(``),r.log(n?.heading??`Detected Project Settings:`),r.log(k(` - Worker Name:`),e.workerName),e.framework&&r.log(k(` - Framework:`),e.framework.name),e.buildCommand&&r.log(k(` - Build Command:`),e.buildCommand),e.outputDir&&r.log(k(` - Output Directory:`),e.outputDir),r.log(``)}x(Uf,`displayAutoConfigDetails`);async function Wf(e,t){let{dialogs:n}=t;if(!await n.confirm(`Do you want to modify these settings?`,{defaultValue:!1,fallbackValue:!1}))return e;let{...r}=e;return r.workerName=await n.prompt(`What do you want to name your Worker?`,{defaultValue:e.workerName??``,validate:x(e=>{let t=m(e);return t.valid?!0:t.cause},`validate`)}),r.framework=as(await n.select(`What framework is your application using?`,{choices:es.map(e=>({title:e.name,value:e.id,description:e.id===$o.id?`No framework at all, or a static framework such as Vite, React or Gatsby.`:`The ${e.name} JavaScript framework`})),defaultOption:es.findIndex(t=>e?.framework?e.framework.id===t.id:t.id===$o.id)})),r.outputDir=await n.prompt(`What directory contains your applications' output/asset files?`,{defaultValue:e.outputDir??``,validate:x(async e=>{if(!e)return`Please provide a valid directory path`;let t=_e(xe(e),{throwIfNoEntry:!1});return t&&t?.isFile()?`Please select a directory`:!0},`validate`)}),(e.buildCommand||e.packageJson)&&(r.buildCommand=await n.prompt(`What is your application's build command?`,{defaultValue:e.buildCommand??``})),r}x(Wf,`confirmAutoConfigDetails`);async function Gf(e,t){let{context:n}=t,r=t.target??`cf`,{logger:i}=n,a=t.dryRun===!0,o=!a&&(t.runBuild??!0),s=a||t.skipConfirmations===!0,c=t.enableTargetCliInstallation??!0;If(e),Uf(e,n);let l=s?e:await Wf(e,n);if(e!==l&&Uf(l,n,{heading:`Updated Project Settings:`}),e=l,If(e),ss(e.framework,r),is(e.framework.id)&&!os(e.framework.id))throw new p(e.framework.id===`cloudflare-pages`?`The target project seems to be using Cloudflare Pages. Automatically migrating from a Pages project to Workers is not yet supported.`:`The detected framework ("${e.framework.name}") cannot be automatically configured.`,{telemetryMessage:`autoconfig run framework unsupported`});H(e.outputDir,`The Output Directory is unexpectedly missing`);let u=h,d={name:e.workerName,compatibilityDate:u,observability:{enabled:!0}},{packageManager:f}=e,m=e.isWorkspaceRoot??!1,g=ts(e.framework.id);g&&e.framework.validateFrameworkVersion(e.projectPath,g,n);let _=await e.framework.configure({target:r,outputDir:e.outputDir,projectPath:e.projectPath,workerName:e.workerName,isWorkspaceRoot:m,dryRun:!0,packageManager:f,context:n}),v=Kf(d,_.workerConfig);if(r===`cf`&&_.buildTool===`wrangler`&&_.buildConfig&&R(xe(e.projectPath,`wrangler.config.ts`)))throw new p(`Cannot generate wrangler.config.ts because the file already exists. Remove or rename the existing file, then run autoconfig again.`,{telemetryMessage:`autoconfig wrangler config conflict`});let{npx:y}=f,b=_.buildCommandOverride??e.buildCommand,x=await tp({...e,outputDir:e.outputDir},v,_,{build:b,deploy:_.deployCommandOverride??`${y} ${r} deploy`,version:_.versionCommandOverride??`${y} ${r} versions upload`},c,r,n,_.packageJsonScriptsOverrides);if(!(s||await n.dialogs.confirm(`Proceed with setup?`)))throw new p(`Setup cancelled`,{telemetryMessage:`autoconfig run setup cancelled`});if(a)return i.log(`✋ Autoconfig process run in dry-run mode, existing now.`),i.log(``),x;i.debug(`Running autoconfig with:
494
+ ${JSON.stringify(e,null,2)}...`),e.packageJson&&c&&(r===`cf`?e.packageJson.dependencies?.cf!==void 0||e.packageJson.devDependencies?.cf!==void 0||await Qe(f.type,[`cf@latest`],{dev:!0,isWorkspaceRoot:m}):await et(f.type,m)),e.packageJson&&r===`cf`&&_.buildTool===`wrangler`&&await et(f.type,m);let S=await e.framework.configure({target:r,outputDir:e.outputDir,projectPath:e.projectPath,workerName:e.workerName,isWorkspaceRoot:m,dryRun:!1,packageManager:f,context:n}),C=Kf(d,S.workerConfig);if(e.packageJson){let t=xe(e.projectPath,`package.json`),n=JSON.parse(await Ee(t,`utf8`));await ke(t,JSON.stringify({...n,scripts:{...n.scripts,...x.scripts}},null,2)+`
495
+ `)}if(r===`wrangler`){let t=qf(C,S);t!==null&&await Yf(e.projectPath,t)}return r===`cf`&&(C!==null&&await Xf(e.projectPath,C),S.buildTool===`wrangler`&&S.buildConfig&&await Zf(e.projectPath,S.buildConfig)),rt(e.projectPath),e.outputDir===e.projectPath&&nt(`${e.projectPath}/.assetsignore`),b&&o&&await n.runCommand(b,e.projectPath,`[build]`),x}x(Gf,`runAutoConfig`);function Kf(e,t){return t===null?null:{...e,...t}}x(Kf,`mergeWorkerConfig`);function qf(e,t){if(e===null)return null;let n=Fe(Pe.parse({worker:e}));return Jf({$schema:`node_modules/wrangler/config-schema.json`,...n,...t.buildConfig?.assetsDirectory?{assets:{...n.assets,directory:t.buildConfig.assetsDirectory}}:{}})}x(qf,`getWranglerConfig`);function Jf(e){let t=(e.compatibility_flags??[]).filter(e=>!e.startsWith(`nodejs_`));if(f(e.compatibility_date)||t.push(`nodejs_compat`),t.length===0){let{compatibility_flags:t,...n}=e;return n}return{...e,compatibility_flags:t}}x(Jf,`ensureNodejsCompatIsEnabled`);async function Yf(e,t){let n={},r=np(e);r&&(n=y(await Ee(r,`utf8`),r));let i=Jf({...n,...t});await ke(xe(e,`wrangler.jsonc`),JSON.stringify(i,null,2)+`
496
+ `)}x(Yf,`saveWranglerJsonc`);async function Xf(e,t){await ke(xe(e,`cloudflare.config.ts`),Qf(t))}x(Xf,`saveCloudflareConfig`);async function Zf(e,t){await ke(xe(e,`wrangler.config.ts`),$f(t))}x(Zf,`saveWranglerConfigTs`);function Qf(e){return`import { defineConfig } from "cf/config";
497
497
 
498
498
  export default defineConfig({
499
499
  worker: ${JSON.stringify(e,null,2).replaceAll(`
500
500
  `,`
501
501
  `)}
502
502
  });
503
- `}x(Zf,`renderCloudflareConfig`);function Qf(e){return`import { defineWranglerConfig } from "wrangler/experimental-config";
503
+ `}x(Qf,`renderCloudflareConfig`);function $f(e){return`import { defineWranglerConfig } from "wrangler/experimental-config";
504
504
 
505
505
  export default defineWranglerConfig(${JSON.stringify(e,null,2)});
506
- `}x(Qf,`renderWranglerConfigTs`);function $f(e){return` `+e.trimEnd().replace(/\n/g,`
507
- `)}x($f,`indentFileContent`);async function ep(e,t,n,r,i,a,o,s){let{logger:c}=o;c.log(``);let l=a===`wrangler`?Kf(t,n):null,u={scripts:{},...a===`wrangler`?{wranglerConfig:l??void 0}:{workerConfig:t??void 0,buildConfig:n.buildConfig},outputDir:e.outputDir,frameworkId:e.framework.id,buildCommand:r.build,deployCommand:r.deploy,versionCommand:r.version},d=new Set;if(e.packageJson&&(i&&d.add(a),n.buildTool===`vite`?d.add(a===`cf`?`@cloudflare/vite-plugin@beta`:`@cloudflare/vite-plugin`):a===`cf`&&n.buildTool===`wrangler`&&d.add(`wrangler`)),d.size>0){c.log(`📦 Install packages:`);for(let e of d)c.log(` - ${e} (devDependency)`);c.log(``)}if(e.packageJson){let n=a===`wrangler`?s:void 0,r=a===`wrangler`&&e.buildCommand?`${e.buildCommand} && `:``;u.scripts={deploy:n?.deploy??`${r}${a} deploy`},a===`wrangler`&&(u.scripts.preview=n?.preview??`${r}${a} dev`),t?.entrypoint&&Ja(e.projectPath)&&!(`cf-typegen`in(e.packageJson.scripts??{}))&&(u.scripts[`cf-typegen`]=n?.typegen??`${a} types`),c.log(`📝 Update package.json scripts:`);for(let[e,t]of Object.entries(u.scripts))c.log(` - "${e}": "${t}"`);c.log(``)}if(a===`cf`&&t&&(c.log(`📄 Create cloudflare.config.ts:`),c.log($f(Zf(t))),c.log(``)),a===`cf`&&n.buildTool===`wrangler`&&n.buildConfig&&(c.log(`📄 Create wrangler.config.ts:`),c.log($f(Qf(n.buildConfig))),c.log(``)),a===`wrangler`&&l){let t=R(V(e.projectPath,`wrangler.jsonc`));c.log(t?`📄 Update wrangler.jsonc:`:`📄 Create wrangler.jsonc:`),c.log(` `+JSON.stringify(l,null,2).replace(/\n/g,`
508
- `)),c.log(``)}return e.framework&&!(e.framework instanceof To)&&!e.framework.isConfigured(e.projectPath,{target:a})&&(u.frameworkConfiguration=e.framework.configurationDescription??`Configuring project for ${e.framework.name}`,c.log(`\u{1F6E0}\uFE0F ${u.frameworkConfiguration}`),c.log(``)),u}x(ep,`buildOperationsSummary`);function tp(e){let t=V(e,`wrangler.jsonc`);if(R(t))return t;let n=V(e,`wrangler.json`);if(R(n))return n}x(tp,`getDirWranglerJsonConfigPath`);function np(e){let t=typeof e==`string`?`
509
- `:10,n=typeof e==`string`?`\r`:13;return e[e.length-1]===t&&(e=e.slice(0,-1)),e[e.length-1]===n&&(e=e.slice(0,-1)),e}function rp(e={}){let{env:t=process.env,platform:n=process.platform}=e;return n===`win32`?Object.keys(t).reverse().find(e=>e.toUpperCase()===`PATH`)||`Path`:`PATH`}const ip=({cwd:e=xe.cwd(),path:t=xe.env[rp()],preferLocal:n=!0,execPath:r=xe.execPath,addExecPath:i=!0}={})=>{let a=e instanceof URL?be(e):e,o=z.resolve(a),s=[];return n&&ap(s,o),i&&op(s,r,o),[...s,t].join(z.delimiter)},ap=(e,t)=>{let n;for(;n!==t;)e.push(z.join(t,`node_modules/.bin`)),n=t,t=z.resolve(t,`..`)},op=(e,t,n)=>{let r=t instanceof URL?be(t):t;e.push(z.resolve(n,r,`..`))},sp=({env:e=xe.env,...t}={})=>{e={...e};let n=rp({env:e});return t.path=e[n],e[n]=ip(t),e},cp=(e,t,n,r)=>{if(n===`length`||n===`prototype`||n===`arguments`||n===`caller`)return;let i=Object.getOwnPropertyDescriptor(e,n),a=Object.getOwnPropertyDescriptor(t,n);!lp(i,a)&&r||Object.defineProperty(e,n,a)},lp=function(e,t){return e===void 0||e.configurable||e.writable===t.writable&&e.enumerable===t.enumerable&&e.configurable===t.configurable&&(e.writable||e.value===t.value)},up=(e,t)=>{let n=Object.getPrototypeOf(t);n!==Object.getPrototypeOf(e)&&Object.setPrototypeOf(e,n)},dp=(e,t)=>`/* Wrapped ${e}*/\n${t}`,fp=Object.getOwnPropertyDescriptor(Function.prototype,`toString`),pp=Object.getOwnPropertyDescriptor(Function.prototype.toString,`name`),mp=(e,t,n)=>{let r=n===``?``:`with ${n.trim()}() `,i=dp.bind(null,r,t.toString());Object.defineProperty(i,`name`,pp),Object.defineProperty(e,`toString`,{...fp,value:i})};function hp(e,t,{ignoreNonConfigurable:n=!1}={}){let{name:r}=e;for(let r of Reflect.ownKeys(t))cp(e,t,r,n);return up(e,t),mp(e,t,r),e}const gp=new WeakMap,_p=(e,t={})=>{if(typeof e!=`function`)throw TypeError(`Expected a function`);let n,r=0,i=e.displayName||e.name||`<anonymous>`,a=function(...o){if(gp.set(a,++r),r===1)n=e.apply(this,o),e=null;else if(t.throw===!0)throw Error(`Function \`${i}\` can only be called once`);return n};return hp(a,e),gp.set(a,r),a};_p.callCount=e=>{if(!gp.has(e))throw Error(`The given function \`${e.name}\` is not wrapped by the \`onetime\` package`);return gp.get(e)};const vp=function(){let e=64-bp+1;return Array.from({length:e},yp)},yp=function(e,t){return{name:`SIGRT${t+1}`,number:bp+t,action:`terminate`,description:`Application-specific signal (realtime)`,standard:`posix`}},bp=34,xp=[{name:`SIGHUP`,number:1,action:`terminate`,description:`Terminal closed`,standard:`posix`},{name:`SIGINT`,number:2,action:`terminate`,description:`User interruption with CTRL-C`,standard:`ansi`},{name:`SIGQUIT`,number:3,action:`core`,description:`User interruption with CTRL-\\`,standard:`posix`},{name:`SIGILL`,number:4,action:`core`,description:`Invalid machine instruction`,standard:`ansi`},{name:`SIGTRAP`,number:5,action:`core`,description:`Debugger breakpoint`,standard:`posix`},{name:`SIGABRT`,number:6,action:`core`,description:`Aborted`,standard:`ansi`},{name:`SIGIOT`,number:6,action:`core`,description:`Aborted`,standard:`bsd`},{name:`SIGBUS`,number:7,action:`core`,description:`Bus error due to misaligned, non-existing address or paging error`,standard:`bsd`},{name:`SIGEMT`,number:7,action:`terminate`,description:`Command should be emulated but is not implemented`,standard:`other`},{name:`SIGFPE`,number:8,action:`core`,description:`Floating point arithmetic error`,standard:`ansi`},{name:`SIGKILL`,number:9,action:`terminate`,description:`Forced termination`,standard:`posix`,forced:!0},{name:`SIGUSR1`,number:10,action:`terminate`,description:`Application-specific signal`,standard:`posix`},{name:`SIGSEGV`,number:11,action:`core`,description:`Segmentation fault`,standard:`ansi`},{name:`SIGUSR2`,number:12,action:`terminate`,description:`Application-specific signal`,standard:`posix`},{name:`SIGPIPE`,number:13,action:`terminate`,description:`Broken pipe or socket`,standard:`posix`},{name:`SIGALRM`,number:14,action:`terminate`,description:`Timeout or timer`,standard:`posix`},{name:`SIGTERM`,number:15,action:`terminate`,description:`Termination`,standard:`ansi`},{name:`SIGSTKFLT`,number:16,action:`terminate`,description:`Stack is empty or overflowed`,standard:`other`},{name:`SIGCHLD`,number:17,action:`ignore`,description:`Child process terminated, paused or unpaused`,standard:`posix`},{name:`SIGCLD`,number:17,action:`ignore`,description:`Child process terminated, paused or unpaused`,standard:`other`},{name:`SIGCONT`,number:18,action:`unpause`,description:`Unpaused`,standard:`posix`,forced:!0},{name:`SIGSTOP`,number:19,action:`pause`,description:`Paused`,standard:`posix`,forced:!0},{name:`SIGTSTP`,number:20,action:`pause`,description:`Paused using CTRL-Z or "suspend"`,standard:`posix`},{name:`SIGTTIN`,number:21,action:`pause`,description:`Background process cannot read terminal input`,standard:`posix`},{name:`SIGBREAK`,number:21,action:`terminate`,description:`User interruption with CTRL-BREAK`,standard:`other`},{name:`SIGTTOU`,number:22,action:`pause`,description:`Background process cannot write to terminal output`,standard:`posix`},{name:`SIGURG`,number:23,action:`ignore`,description:`Socket received out-of-band data`,standard:`bsd`},{name:`SIGXCPU`,number:24,action:`core`,description:`Process timed out`,standard:`bsd`},{name:`SIGXFSZ`,number:25,action:`core`,description:`File too big`,standard:`bsd`},{name:`SIGVTALRM`,number:26,action:`terminate`,description:`Timeout or timer`,standard:`bsd`},{name:`SIGPROF`,number:27,action:`terminate`,description:`Timeout or timer`,standard:`bsd`},{name:`SIGWINCH`,number:28,action:`ignore`,description:`Terminal window size changed`,standard:`bsd`},{name:`SIGIO`,number:29,action:`terminate`,description:`I/O is available`,standard:`other`},{name:`SIGPOLL`,number:29,action:`terminate`,description:`Watched event`,standard:`other`},{name:`SIGINFO`,number:29,action:`ignore`,description:`Request for process information`,standard:`other`},{name:`SIGPWR`,number:30,action:`terminate`,description:`Device running out of power`,standard:`systemv`},{name:`SIGSYS`,number:31,action:`core`,description:`Invalid system call`,standard:`other`},{name:`SIGUNUSED`,number:31,action:`terminate`,description:`Invalid system call`,standard:`other`}],Sp=function(){let e=vp();return[...xp,...e].map(Cp)},Cp=function({name:e,number:t,description:n,action:r,forced:i=!1,standard:a}){let{signals:{[e]:o}}=Me,s=o!==void 0;return{name:e,number:s?o:t,description:n,supported:s,action:r,forced:i,standard:a}},wp=function(){return Sp().reduce(Tp,{})},Tp=function(e,{name:t,number:n,description:r,supported:i,action:a,forced:o,standard:s}){return{...e,[t]:{name:t,number:n,description:r,supported:i,action:a,forced:o,standard:s}}},Ep=wp(),Dp=function(){let e=Sp(),t=Array.from({length:65},(t,n)=>Op(n,e));return Object.assign({},...t)},Op=function(e,t){let n=kp(e,t);if(n===void 0)return{};let{name:r,description:i,supported:a,action:o,forced:s,standard:c}=n;return{[e]:{name:r,number:e,description:i,supported:a,action:o,forced:s,standard:c}}},kp=function(e,t){let n=t.find(({name:t})=>Me.signals[t]===e);return n===void 0?t.find(t=>t.number===e):n};Dp();const Ap=({timedOut:e,timeout:t,errorCode:n,signal:r,signalDescription:i,exitCode:a,isCanceled:o})=>e?`timed out after ${t} milliseconds`:o?`was canceled`:n===void 0?r===void 0?a===void 0?`failed`:`failed with exit code ${a}`:`was killed with ${r} (${i})`:`failed with ${n}`,jp=({stdout:e,stderr:t,all:n,error:r,signal:i,exitCode:a,command:o,escapedCommand:s,timedOut:c,isCanceled:l,killed:u,parsed:{options:{timeout:d}}})=>{a=a===null?void 0:a,i=i===null?void 0:i;let f=i===void 0?void 0:Ep[i].description,p=`Command ${Ap({timedOut:c,timeout:d,errorCode:r&&r.code,signal:i,signalDescription:f,exitCode:a,isCanceled:l})}: ${o}`,m=Object.prototype.toString.call(r)===`[object Error]`,h=m?`${p}\n${r.message}`:p,g=[h,t,e].filter(Boolean).join(`
510
- `);return m?(r.originalMessage=r.message,r.message=g):r=Error(g),r.shortMessage=h,r.command=o,r.escapedCommand=s,r.exitCode=a,r.signal=i,r.signalDescription=f,r.stdout=e,r.stderr=t,n!==void 0&&(r.all=n),`bufferedData`in r&&delete r.bufferedData,r.failed=!0,r.timedOut=!!c,r.isCanceled=l,r.killed=u&&!c,r},Mp=[`stdin`,`stdout`,`stderr`],Np=e=>Mp.some(t=>e[t]!==void 0),Pp=e=>{if(!e)return;let{stdio:t}=e;if(t===void 0)return Mp.map(t=>e[t]);if(Np(e))throw Error(`It's not possible to provide \`stdio\` in combination with one of ${Mp.map(e=>`\`${e}\``).join(`, `)}`);if(typeof t==`string`)return t;if(!Array.isArray(t))throw TypeError(`Expected \`stdio\` to be of type \`string\` or \`Array\`, got \`${typeof t}\``);let n=Math.max(t.length,Mp.length);return Array.from({length:n},(e,n)=>t[n])};var Fp=e(N(),1);const Ip=(e,t=`SIGTERM`,n={})=>{let r=e(t);return Lp(e,t,n,r),r},Lp=(e,t,n,r)=>{if(!Rp(t,n,r))return;let i=Bp(n),a=setTimeout(()=>{e(`SIGKILL`)},i);a.unref&&a.unref()},Rp=(e,{forceKillAfterTimeout:t},n)=>zp(e)&&t!==!1&&n,zp=e=>e===Se.constants.signals.SIGTERM||typeof e==`string`&&e.toUpperCase()===`SIGTERM`,Bp=({forceKillAfterTimeout:e=!0})=>{if(e===!0)return 5e3;if(!Number.isFinite(e)||e<0)throw TypeError(`Expected the \`forceKillAfterTimeout\` option to be a non-negative integer, got \`${e}\` (${typeof e})`);return e},Vp=(e,t)=>{e.kill()&&(t.isCanceled=!0)},Hp=(e,t,n)=>{e.kill(t),n(Object.assign(Error(`Timed out`),{timedOut:!0,signal:t}))},Up=(e,{timeout:t,killSignal:n=`SIGTERM`},r)=>{if(t===0||t===void 0)return r;let i,a=new Promise((r,a)=>{i=setTimeout(()=>{Hp(e,n,a)},t)}),o=r.finally(()=>{clearTimeout(i)});return Promise.race([a,o])},Wp=({timeout:e})=>{if(e!==void 0&&(!Number.isFinite(e)||e<0))throw TypeError(`Expected the \`timeout\` option to be a non-negative integer, got \`${e}\` (${typeof e})`)},Gp=async(e,{cleanup:t,detached:n},r)=>{if(!t||n)return r;let i=(0,Fp.default)(()=>{e.kill()});return r.finally(()=>{i()})};function Kp(e){return typeof e==`object`&&!!e&&typeof e.pipe==`function`}var qp=t(((e,t)=>{let{PassThrough:r}=n(`stream`);t.exports=e=>{e={...e};let{array:t}=e,{encoding:n}=e,i=n===`buffer`,a=!1;t?a=!(n||i):n||=`utf8`,i&&(n=null);let o=new r({objectMode:a});n&&o.setEncoding(n);let s=0,c=[];return o.on(`data`,e=>{c.push(e),a?s=c.length:s+=e.length}),o.getBufferedValue=()=>t?c:i?Buffer.concat(c,s):c.join(``),o.getBufferedLength=()=>s,o}})),Jp=t(((e,t)=>{let{constants:r}=n(`buffer`),i=n(`stream`),{promisify:a}=n(`util`),o=qp(),s=a(i.pipeline);var c=class extends Error{constructor(){super(`maxBuffer exceeded`),this.name=`MaxBufferError`}};async function l(e,t){if(!e)throw Error(`Expected a stream`);t={maxBuffer:1/0,...t};let{maxBuffer:n}=t,i=o(t);return await new Promise((t,a)=>{let o=e=>{e&&i.getBufferedLength()<=r.MAX_LENGTH&&(e.bufferedData=i.getBufferedValue()),a(e)};(async()=>{try{await s(e,i),t()}catch(e){o(e)}})(),i.on(`data`,()=>{i.getBufferedLength()>n&&o(new c)})}),i.getBufferedValue()}t.exports=l,t.exports.buffer=(e,t)=>l(e,{...t,encoding:`buffer`}),t.exports.array=(e,t)=>l(e,{...t,array:!0}),t.exports.MaxBufferError=c})),Yp=t(((e,t)=>{let{PassThrough:r}=n(`stream`);t.exports=function(){var e=[],t=new r({objectMode:!0});return t.setMaxListeners(0),t.add=n,t.isEmpty=i,t.on(`unpipe`,a),Array.prototype.slice.call(arguments).forEach(n),t;function n(r){return Array.isArray(r)?(r.forEach(n),this):(e.push(r),r.once(`end`,a.bind(null,r)),r.once(`error`,t.emit.bind(t,`error`)),r.pipe(t,{end:!1}),this)}function i(){return e.length==0}function a(n){e=e.filter(function(e){return e!==n}),!e.length&&t.readable&&t.end()}}})),Xp=e(Jp(),1),Zp=e(Yp(),1);const Qp=(e,t)=>{t===void 0||e.stdin===void 0||(Kp(t)?t.pipe(e.stdin):e.stdin.end(t))},$p=(e,{all:t})=>{if(!t||!e.stdout&&!e.stderr)return;let n=(0,Zp.default)();return e.stdout&&n.add(e.stdout),e.stderr&&n.add(e.stderr),n},em=async(e,t)=>{if(e){e.destroy();try{return await t}catch(e){return e.bufferedData}}},tm=(e,{encoding:t,buffer:n,maxBuffer:r})=>{if(!(!e||!n))return t?(0,Xp.default)(e,{encoding:t,maxBuffer:r}):Xp.default.buffer(e,{maxBuffer:r})},nm=async({stdout:e,stderr:t,all:n},{encoding:r,buffer:i,maxBuffer:a},o)=>{let s=tm(e,{encoding:r,buffer:i,maxBuffer:a}),c=tm(t,{encoding:r,buffer:i,maxBuffer:a}),l=tm(n,{encoding:r,buffer:i,maxBuffer:a*2});try{return await Promise.all([o,s,c,l])}catch(r){return Promise.all([{error:r,signal:r.signal,timedOut:r.timedOut},em(e,s),em(t,c),em(n,l)])}},rm=(async()=>{})().constructor.prototype,im=[`then`,`catch`,`finally`].map(e=>[e,Reflect.getOwnPropertyDescriptor(rm,e)]),am=(e,t)=>{for(let[n,r]of im){let i=typeof t==`function`?(...e)=>Reflect.apply(r.value,t(),e):r.value.bind(t);Reflect.defineProperty(e,n,{...r,value:i})}return e},om=e=>new Promise((t,n)=>{e.on(`exit`,(e,n)=>{t({exitCode:e,signal:n})}),e.on(`error`,e=>{n(e)}),e.stdin&&e.stdin.on(`error`,e=>{n(e)})}),sm=(e,t=[])=>Array.isArray(t)?[e,...t]:[e],cm=/^[\w.-]+$/,lm=/"/g,um=e=>typeof e!=`string`||cm.test(e)?e:`"${e.replace(lm,`\\"`)}"`,dm=(e,t)=>sm(e,t).join(` `),fm=(e,t)=>sm(e,t).map(e=>um(e)).join(` `),pm=({env:e,extendEnv:t,preferLocal:n,localDir:r,execPath:i})=>{let a=t?{...xe.env,...e}:e;return n?sp({env:a,cwd:r,execPath:i}):a},mm=(e,t,n={})=>{let r=qe.default._parse(e,t,n);return e=r.command,t=r.args,n=r.options,n={maxBuffer:1e8,buffer:!0,stripFinalNewline:!0,extendEnv:!0,preferLocal:!1,localDir:n.cwd||xe.cwd(),execPath:xe.execPath,encoding:`utf8`,reject:!0,cleanup:!0,all:!1,windowsHide:!0,...n},n.env=pm(n),n.stdio=Pp(n),xe.platform===`win32`&&z.basename(e,`.exe`)===`cmd`&&t.unshift(`/q`),{file:e,args:t,options:n,parsed:r}},hm=(e,t,n)=>typeof t!=`string`&&!Ee.isBuffer(t)?n===void 0?void 0:``:e.stripFinalNewline?np(t):t;function gm(e,t,n){let r=mm(e,t,n),i=dm(e,t),a=fm(e,t);Wp(r.options);let o;try{o=je.spawn(r.file,r.args,r.options)}catch(e){return am(new je.ChildProcess,Promise.reject(jp({error:e,stdout:``,stderr:``,all:``,command:i,escapedCommand:a,parsed:r,timedOut:!1,isCanceled:!1,killed:!1})))}let s=om(o),c=Up(o,r.options,s),l=Gp(o,r.options,c),u={isCanceled:!1};o.kill=Ip.bind(null,o.kill.bind(o)),o.cancel=Vp.bind(null,o,u);let d=_p(async()=>{let[{error:e,exitCode:t,signal:n,timedOut:s},c,d,f]=await nm(o,r.options,l),p=hm(r.options,c),m=hm(r.options,d),h=hm(r.options,f);if(e||t!==0||n!==null){let c=jp({error:e,exitCode:t,signal:n,stdout:p,stderr:m,all:h,command:i,escapedCommand:a,parsed:r,timedOut:s,isCanceled:u.isCanceled||(r.options.signal?r.options.signal.aborted:!1),killed:o.killed});if(!r.options.reject)return c;throw c}return{command:i,escapedCommand:a,exitCode:0,stdout:p,stderr:m,all:h,failed:!1,timedOut:!1,isCanceled:!1,killed:!1}});return Qp(o,r.options.input),o.all=$p(o,r.options),am(o,d)}var _m=t(((e,t)=>{var n=[`||`,`&&`,`;;`,`|&`,`<(`,`<<<`,`>>`,`>&`,`<&`,`&`,`;`,`(`,`)`,`|`,`<`,`>`],r=/[\n\r\u2028\u2029]/,i=/[\s#!"$&'():;<=>@\\^`|]/g;t.exports=function(e){return e.map(function(e){if(e===``)return`''`;if(e&&typeof e==`object`){if(e.op===`glob`){if(typeof e.pattern!=`string`)throw TypeError("glob token requires a string `pattern`");if(r.test(e.pattern))throw TypeError("glob `pattern` must not contain line terminators");return e.pattern.replace(i,`\\$&`)}if(typeof e.op==`string`){if(n.indexOf(e.op)<0)throw TypeError("invalid `op` value: "+JSON.stringify(e.op));return e.op.replace(/[\s\S]/g,`\\$&`)}if(typeof e.comment==`string`){if(r.test(e.comment))throw TypeError("`comment` must not contain line terminators");return`#`+e.comment}throw TypeError(`unrecognized object token shape`)}return/["\s\\]/.test(e)&&!/'/.test(e)?`'`+e.replace(/(['])/g,`\\$1`)+`'`:/["'\s]/.test(e)?`"`+e.replace(/(["\\$`!])/g,`\\$1`)+`"`:String(e).replace(/([A-Za-z]:)?([#!"$&'()*,:;<=>?@[\\\]^`{|}])/g,`$1\\$2`)}).join(` `)}})),vm=t(((e,t)=>{for(var n=`(?:`+[`\\|\\|`,`\\&\\&`,`;;`,`\\|\\&`,`\\<\\(`,`\\<\\<\\<`,`>>`,`>\\&`,`<\\&`,`[&;()|<>]`].join(`|`)+`)`,r=RegExp(`^`+n+`$`),i=`|&;()<> \\t`,a=`"((\\\\"|[^"])*?)"`,o=`'((\\\\'|[^'])*?)'`,s=/^#$/,c=`'`,l=`"`,u=`$`,d=``,f=4294967296,p=0;p<4;p++)d+=(f*Math.random()).toString(16);var m=RegExp(`^`+d);function h(e,t){for(var n=t.lastIndex,r=[],i;i=t.exec(e);)r.push(i),t.lastIndex===i.index&&(t.lastIndex+=1);return t.lastIndex=n,r}function g(e,t,n){var r=typeof e==`function`?e(n):e[n];return r===void 0&&n!=``?r=``:r===void 0&&(r=`$`),typeof r==`object`?t+d+JSON.stringify(r)+d:t+r}function _(e,t,d){d||={};var f=d.escape||`\\`,p=`(\\`+f+`['"`+i+`]|[^\\s'"`+i+`])+`,m=h(e,new RegExp([`(`+n+`)`,`(`+p+`|`+a+`|`+o+`)+`].join(`|`),`g`));if(m.length===0)return[];t||={};var _=!1;return m.map(function(n){var i=n[0];if(!i||_)return;if(r.test(i))return{op:i};var a=!1,o=!1,d=``,p=!1,m;function h(){m+=1;var e,n,r=i.charAt(m);if(r===`{`){if(m+=1,i.charAt(m)===`}`)throw Error(`Bad substitution: `+i.slice(m-2,m+1));if(e=i.indexOf(`}`,m),e<0)throw Error(`Bad substitution: `+i.slice(m));n=i.slice(m,e),m=e}else if(/[*@#?$!_-]/.test(r))n=r,m+=1;else{var a=i.slice(m);e=a.match(/[^\w\d_]/),e?(n=a.slice(0,e.index),m+=e.index-1):(n=a,m=i.length)}return g(t,``,n)}for(m=0;m<i.length;m++){var v=i.charAt(m);if(p||=!a&&(v===`*`||v===`?`),o)d+=v,o=!1;else if(a)v===a?a=!1:a==c?d+=v:v===f?(m+=1,v=i.charAt(m),v===l||v===f||v===u?d+=v:d+=f+v):v===u?d+=h():d+=v;else if(v===l||v===c)a=v;else if(r.test(v))return{op:i};else if(s.test(v)){_=!0;var y={comment:e.slice(n.index+m+1)};return d.length?[d,y]:[y]}else v===f?o=!0:v===u?d+=h():d+=v}return p?{op:`glob`,pattern:d}:d}).reduce(function(e,t){return t===void 0?e:e.concat(t)},[])}t.exports=function(e,t,n){var r=_(e,t,n);return typeof t==`function`?r.reduce(function(e,t){if(typeof t==`object`)return e.concat(t);var n=t.split(RegExp(`(`+d+`.*?`+d+`)`,`g`));return n.length===1?e.concat(n[0]):e.concat(n.filter(Boolean).map(function(e){return m.test(e)?JSON.parse(e.split(d)[1]):e}))},[]):r}})),ym=t((e=>{e.quote=_m(),e.parse=vm()}))();function bm(e,t=process.platform){return t!==`win32`||e!==`SIGINT`}function xm(e,t,n){let r=(t&&t in Ce.signals?t:void 0)??n;return{exitCode:e??(r?128+(Ce.signals[r]??1):1),...r?{signal:r}:{}}}async function Sm(e,t={}){let n=Em(t);try{return await Bf({projectPath:e,target:`cf`,context:n})}catch(e){if(e instanceof ua){n.logger.debug(`Autoconfig could not detect this project:`,e);return}throw e}}async function Cm(e,t={}){return Wf(e,{target:`cf`,context:Em(t),runBuild:!1})}async function wm(e,t,n={}){let r=n.output??`stdout`,i=Object.entries(n.env??{}),a=i.map(([e,t])=>` ${e}=${t}`).join(`
511
- `),o=a?` with environment override${i.length===1?``:`s`}:\n${a}`:``,s=n.args?.map(e=>JSON.stringify(e)).join(` `);r!==`silent`&&re.message(`Delegating to ${e}${s?` ${s}`:``}${o}`,{spacing:0,output:r===`stderr`?process.stderr:void 0});let[c,...l]=Tm(e),u=gm(c,[...l,...n.args??[]],{cwd:t,env:n.env,stdio:[`inherit`,r===`stderr`?process.stderr:r===`silent`?`ignore`:`inherit`,`inherit`],reject:!1}),d,f=e=>()=>{d??=e,bm(e)&&u.kill(e)},p=f(`SIGINT`),m=f(`SIGTERM`);process.on(`SIGINT`,p),process.on(`SIGTERM`,m);try{let e=await u;return xm(e.exitCode,e.signal,d)}finally{process.off(`SIGINT`,p),process.off(`SIGTERM`,m)}}function Tm(e){let[t,...n]=(0,ym.parse)(e,e=>`$${e}`).map(e=>{if(typeof e==`string`)return e;if(`op`in e&&e.op===`glob`)return e.pattern;throw Error(`Project commands cannot contain shell operators or comments.`)});if(!t)throw Error(`Project command cannot be empty.`);return[t,...n]}function Em(e={}){let t=e.output??`stdout`,n=t===`stderr`?new De({stdout:process.stderr,stderr:process.stderr}):console,i=t===`silent`?()=>{}:n.log.bind(n),a=t===`silent`?()=>{}:n.info.bind(n),o=t===`stdout`?void 0:process.stderr;return{logger:{log:i,info:a,warn:n.warn.bind(n),debug:(...e)=>{process.env.DEBUG&&t!==`silent`&&n.debug(...e)},error:n.error.bind(n)},dialogs:{confirm:(e,t)=>oe(e,{defaultValue:t?.defaultValue??!0,fallbackValue:t?.fallbackValue??t?.defaultValue??!0,output:o}),prompt:(e,t)=>ie(e,{initialValue:t?.defaultValue,fallbackValue:t?.defaultValue,fallbackError:`This command cannot be run in a non-interactive context`,validate:t?.validate,output:o}),select:(e,t)=>ae(e,{choices:t.choices,defaultOption:t.defaultOption,fallbackError:`This command cannot be run in a non-interactive context`,output:o})},runCommand:async(t,n,a)=>{i(`${a} Running: ${t}`);let o=await wm(t,n,e);if(o.exitCode!==0||o.signal)throw new r(o.exitCode,{signal:o.signal})},isNonInteractiveOrCI:j}}export{Cm as n,wm as r,Sm as t};
506
+ `}x($f,`renderWranglerConfigTs`);function ep(e){return` `+e.trimEnd().replace(/\n/g,`
507
+ `)}x(ep,`indentFileContent`);async function tp(e,t,n,r,i,a,o,s){let{logger:c}=o;c.log(``);let l=a===`wrangler`?qf(t,n):null,u={scripts:{},...a===`wrangler`?{wranglerConfig:l??void 0}:{workerConfig:t??void 0,buildConfig:n.buildConfig},outputDir:e.outputDir,frameworkId:e.framework.id,buildCommand:r.build,deployCommand:r.deploy,versionCommand:r.version},d=new Set;if(e.packageJson&&(i&&d.add(a),n.buildTool===`vite`?d.add(a===`cf`?`@cloudflare/vite-plugin@beta`:`@cloudflare/vite-plugin`):a===`cf`&&n.buildTool===`wrangler`&&d.add(`wrangler`)),d.size>0){c.log(`📦 Install packages:`);for(let e of d)c.log(` - ${e} (devDependency)`);c.log(``)}if(e.packageJson){let n=a===`wrangler`?s:void 0,r=a===`wrangler`&&e.buildCommand?`${e.buildCommand} && `:``;u.scripts={deploy:n?.deploy??`${r}${a} deploy`},a===`wrangler`&&(u.scripts.preview=n?.preview??`${r}${a} dev`),t?.entrypoint&&Ya(e.projectPath)&&!(`cf-typegen`in(e.packageJson.scripts??{}))&&(u.scripts[`cf-typegen`]=n?.typegen??`${a} types`),c.log(`📝 Update package.json scripts:`);for(let[e,t]of Object.entries(u.scripts))c.log(` - "${e}": "${t}"`);c.log(``)}if(a===`cf`&&t&&(c.log(`📄 Create cloudflare.config.ts:`),c.log(ep(Qf(t))),c.log(``)),a===`cf`&&n.buildTool===`wrangler`&&n.buildConfig&&(c.log(`📄 Create wrangler.config.ts:`),c.log(ep($f(n.buildConfig))),c.log(``)),a===`wrangler`&&l){let t=R(xe(e.projectPath,`wrangler.jsonc`));c.log(t?`📄 Update wrangler.jsonc:`:`📄 Create wrangler.jsonc:`),c.log(` `+JSON.stringify(l,null,2).replace(/\n/g,`
508
+ `)),c.log(``)}return e.framework&&!(e.framework instanceof Eo)&&!e.framework.isConfigured(e.projectPath,{target:a})&&(u.frameworkConfiguration=e.framework.configurationDescription??`Configuring project for ${e.framework.name}`,c.log(`\u{1F6E0}\uFE0F ${u.frameworkConfiguration}`),c.log(``)),u}x(tp,`buildOperationsSummary`);function np(e){let t=xe(e,`wrangler.jsonc`);if(R(t))return t;let n=xe(e,`wrangler.json`);if(R(n))return n}x(np,`getDirWranglerJsonConfigPath`);function rp(e){let t=typeof e==`string`?`
509
+ `:10,n=typeof e==`string`?`\r`:13;return e[e.length-1]===t&&(e=e.slice(0,-1)),e[e.length-1]===n&&(e=e.slice(0,-1)),e}function ip(e={}){let{env:t=process.env,platform:n=process.platform}=e;return n===`win32`?Object.keys(t).reverse().find(e=>e.toUpperCase()===`PATH`)||`Path`:`PATH`}const ap=({cwd:e=V.cwd(),path:t=V.env[ip()],preferLocal:n=!0,execPath:r=V.execPath,addExecPath:i=!0}={})=>{let a=e instanceof URL?Se(e):e,o=z.resolve(a),s=[];return n&&op(s,o),i&&sp(s,r,o),[...s,t].join(z.delimiter)},op=(e,t)=>{let n;for(;n!==t;)e.push(z.join(t,`node_modules/.bin`)),n=t,t=z.resolve(t,`..`)},sp=(e,t,n)=>{let r=t instanceof URL?Se(t):t;e.push(z.resolve(n,r,`..`))},cp=({env:e=V.env,...t}={})=>{e={...e};let n=ip({env:e});return t.path=e[n],e[n]=ap(t),e},lp=(e,t,n,r)=>{if(n===`length`||n===`prototype`||n===`arguments`||n===`caller`)return;let i=Object.getOwnPropertyDescriptor(e,n),a=Object.getOwnPropertyDescriptor(t,n);!up(i,a)&&r||Object.defineProperty(e,n,a)},up=function(e,t){return e===void 0||e.configurable||e.writable===t.writable&&e.enumerable===t.enumerable&&e.configurable===t.configurable&&(e.writable||e.value===t.value)},dp=(e,t)=>{let n=Object.getPrototypeOf(t);n!==Object.getPrototypeOf(e)&&Object.setPrototypeOf(e,n)},fp=(e,t)=>`/* Wrapped ${e}*/\n${t}`,pp=Object.getOwnPropertyDescriptor(Function.prototype,`toString`),mp=Object.getOwnPropertyDescriptor(Function.prototype.toString,`name`),hp=(e,t,n)=>{let r=n===``?``:`with ${n.trim()}() `,i=fp.bind(null,r,t.toString());Object.defineProperty(i,`name`,mp),Object.defineProperty(e,`toString`,{...pp,value:i})};function gp(e,t,{ignoreNonConfigurable:n=!1}={}){let{name:r}=e;for(let r of Reflect.ownKeys(t))lp(e,t,r,n);return dp(e,t),hp(e,t,r),e}const _p=new WeakMap,vp=(e,t={})=>{if(typeof e!=`function`)throw TypeError(`Expected a function`);let n,r=0,i=e.displayName||e.name||`<anonymous>`,a=function(...o){if(_p.set(a,++r),r===1)n=e.apply(this,o),e=null;else if(t.throw===!0)throw Error(`Function \`${i}\` can only be called once`);return n};return gp(a,e),_p.set(a,r),a};vp.callCount=e=>{if(!_p.has(e))throw Error(`The given function \`${e.name}\` is not wrapped by the \`onetime\` package`);return _p.get(e)};const yp=function(){let e=64-xp+1;return Array.from({length:e},bp)},bp=function(e,t){return{name:`SIGRT${t+1}`,number:xp+t,action:`terminate`,description:`Application-specific signal (realtime)`,standard:`posix`}},xp=34,Sp=[{name:`SIGHUP`,number:1,action:`terminate`,description:`Terminal closed`,standard:`posix`},{name:`SIGINT`,number:2,action:`terminate`,description:`User interruption with CTRL-C`,standard:`ansi`},{name:`SIGQUIT`,number:3,action:`core`,description:`User interruption with CTRL-\\`,standard:`posix`},{name:`SIGILL`,number:4,action:`core`,description:`Invalid machine instruction`,standard:`ansi`},{name:`SIGTRAP`,number:5,action:`core`,description:`Debugger breakpoint`,standard:`posix`},{name:`SIGABRT`,number:6,action:`core`,description:`Aborted`,standard:`ansi`},{name:`SIGIOT`,number:6,action:`core`,description:`Aborted`,standard:`bsd`},{name:`SIGBUS`,number:7,action:`core`,description:`Bus error due to misaligned, non-existing address or paging error`,standard:`bsd`},{name:`SIGEMT`,number:7,action:`terminate`,description:`Command should be emulated but is not implemented`,standard:`other`},{name:`SIGFPE`,number:8,action:`core`,description:`Floating point arithmetic error`,standard:`ansi`},{name:`SIGKILL`,number:9,action:`terminate`,description:`Forced termination`,standard:`posix`,forced:!0},{name:`SIGUSR1`,number:10,action:`terminate`,description:`Application-specific signal`,standard:`posix`},{name:`SIGSEGV`,number:11,action:`core`,description:`Segmentation fault`,standard:`ansi`},{name:`SIGUSR2`,number:12,action:`terminate`,description:`Application-specific signal`,standard:`posix`},{name:`SIGPIPE`,number:13,action:`terminate`,description:`Broken pipe or socket`,standard:`posix`},{name:`SIGALRM`,number:14,action:`terminate`,description:`Timeout or timer`,standard:`posix`},{name:`SIGTERM`,number:15,action:`terminate`,description:`Termination`,standard:`ansi`},{name:`SIGSTKFLT`,number:16,action:`terminate`,description:`Stack is empty or overflowed`,standard:`other`},{name:`SIGCHLD`,number:17,action:`ignore`,description:`Child process terminated, paused or unpaused`,standard:`posix`},{name:`SIGCLD`,number:17,action:`ignore`,description:`Child process terminated, paused or unpaused`,standard:`other`},{name:`SIGCONT`,number:18,action:`unpause`,description:`Unpaused`,standard:`posix`,forced:!0},{name:`SIGSTOP`,number:19,action:`pause`,description:`Paused`,standard:`posix`,forced:!0},{name:`SIGTSTP`,number:20,action:`pause`,description:`Paused using CTRL-Z or "suspend"`,standard:`posix`},{name:`SIGTTIN`,number:21,action:`pause`,description:`Background process cannot read terminal input`,standard:`posix`},{name:`SIGBREAK`,number:21,action:`terminate`,description:`User interruption with CTRL-BREAK`,standard:`other`},{name:`SIGTTOU`,number:22,action:`pause`,description:`Background process cannot write to terminal output`,standard:`posix`},{name:`SIGURG`,number:23,action:`ignore`,description:`Socket received out-of-band data`,standard:`bsd`},{name:`SIGXCPU`,number:24,action:`core`,description:`Process timed out`,standard:`bsd`},{name:`SIGXFSZ`,number:25,action:`core`,description:`File too big`,standard:`bsd`},{name:`SIGVTALRM`,number:26,action:`terminate`,description:`Timeout or timer`,standard:`bsd`},{name:`SIGPROF`,number:27,action:`terminate`,description:`Timeout or timer`,standard:`bsd`},{name:`SIGWINCH`,number:28,action:`ignore`,description:`Terminal window size changed`,standard:`bsd`},{name:`SIGIO`,number:29,action:`terminate`,description:`I/O is available`,standard:`other`},{name:`SIGPOLL`,number:29,action:`terminate`,description:`Watched event`,standard:`other`},{name:`SIGINFO`,number:29,action:`ignore`,description:`Request for process information`,standard:`other`},{name:`SIGPWR`,number:30,action:`terminate`,description:`Device running out of power`,standard:`systemv`},{name:`SIGSYS`,number:31,action:`core`,description:`Invalid system call`,standard:`other`},{name:`SIGUNUSED`,number:31,action:`terminate`,description:`Invalid system call`,standard:`other`}],Cp=function(){let e=yp();return[...Sp,...e].map(wp)},wp=function({name:e,number:t,description:n,action:r,forced:i=!1,standard:a}){let{signals:{[e]:o}}=Ae,s=o!==void 0;return{name:e,number:s?o:t,description:n,supported:s,action:r,forced:i,standard:a}},Tp=function(){return Cp().reduce(Ep,{})},Ep=function(e,{name:t,number:n,description:r,supported:i,action:a,forced:o,standard:s}){return{...e,[t]:{name:t,number:n,description:r,supported:i,action:a,forced:o,standard:s}}},Dp=Tp(),Op=function(){let e=Cp(),t=Array.from({length:65},(t,n)=>kp(n,e));return Object.assign({},...t)},kp=function(e,t){let n=Ap(e,t);if(n===void 0)return{};let{name:r,description:i,supported:a,action:o,forced:s,standard:c}=n;return{[e]:{name:r,number:e,description:i,supported:a,action:o,forced:s,standard:c}}},Ap=function(e,t){let n=t.find(({name:t})=>Ae.signals[t]===e);return n===void 0?t.find(t=>t.number===e):n};Op();const jp=({timedOut:e,timeout:t,errorCode:n,signal:r,signalDescription:i,exitCode:a,isCanceled:o})=>e?`timed out after ${t} milliseconds`:o?`was canceled`:n===void 0?r===void 0?a===void 0?`failed`:`failed with exit code ${a}`:`was killed with ${r} (${i})`:`failed with ${n}`,Mp=({stdout:e,stderr:t,all:n,error:r,signal:i,exitCode:a,command:o,escapedCommand:s,timedOut:c,isCanceled:l,killed:u,parsed:{options:{timeout:d}}})=>{a=a===null?void 0:a,i=i===null?void 0:i;let f=i===void 0?void 0:Dp[i].description,p=`Command ${jp({timedOut:c,timeout:d,errorCode:r&&r.code,signal:i,signalDescription:f,exitCode:a,isCanceled:l})}: ${o}`,m=Object.prototype.toString.call(r)===`[object Error]`,h=m?`${p}\n${r.message}`:p,g=[h,t,e].filter(Boolean).join(`
510
+ `);return m?(r.originalMessage=r.message,r.message=g):r=Error(g),r.shortMessage=h,r.command=o,r.escapedCommand=s,r.exitCode=a,r.signal=i,r.signalDescription=f,r.stdout=e,r.stderr=t,n!==void 0&&(r.all=n),`bufferedData`in r&&delete r.bufferedData,r.failed=!0,r.timedOut=!!c,r.isCanceled=l,r.killed=u&&!c,r},Np=[`stdin`,`stdout`,`stderr`],Pp=e=>Np.some(t=>e[t]!==void 0),Fp=e=>{if(!e)return;let{stdio:t}=e;if(t===void 0)return Np.map(t=>e[t]);if(Pp(e))throw Error(`It's not possible to provide \`stdio\` in combination with one of ${Np.map(e=>`\`${e}\``).join(`, `)}`);if(typeof t==`string`)return t;if(!Array.isArray(t))throw TypeError(`Expected \`stdio\` to be of type \`string\` or \`Array\`, got \`${typeof t}\``);let n=Math.max(t.length,Np.length);return Array.from({length:n},(e,n)=>t[n])};var Ip=e(N(),1);const Lp=(e,t=`SIGTERM`,n={})=>{let r=e(t);return Rp(e,t,n,r),r},Rp=(e,t,n,r)=>{if(!zp(t,n,r))return;let i=Vp(n),a=setTimeout(()=>{e(`SIGKILL`)},i);a.unref&&a.unref()},zp=(e,{forceKillAfterTimeout:t},n)=>Bp(e)&&t!==!1&&n,Bp=e=>e===Ce.constants.signals.SIGTERM||typeof e==`string`&&e.toUpperCase()===`SIGTERM`,Vp=({forceKillAfterTimeout:e=!0})=>{if(e===!0)return 5e3;if(!Number.isFinite(e)||e<0)throw TypeError(`Expected the \`forceKillAfterTimeout\` option to be a non-negative integer, got \`${e}\` (${typeof e})`);return e},Hp=(e,t)=>{e.kill()&&(t.isCanceled=!0)},Up=(e,t,n)=>{e.kill(t),n(Object.assign(Error(`Timed out`),{timedOut:!0,signal:t}))},Wp=(e,{timeout:t,killSignal:n=`SIGTERM`},r)=>{if(t===0||t===void 0)return r;let i,a=new Promise((r,a)=>{i=setTimeout(()=>{Up(e,n,a)},t)}),o=r.finally(()=>{clearTimeout(i)});return Promise.race([a,o])},Gp=({timeout:e})=>{if(e!==void 0&&(!Number.isFinite(e)||e<0))throw TypeError(`Expected the \`timeout\` option to be a non-negative integer, got \`${e}\` (${typeof e})`)},Kp=async(e,{cleanup:t,detached:n},r)=>{if(!t||n)return r;let i=(0,Ip.default)(()=>{e.kill()});return r.finally(()=>{i()})};function qp(e){return typeof e==`object`&&!!e&&typeof e.pipe==`function`}var Jp=t(((e,t)=>{let{PassThrough:r}=n(`stream`);t.exports=e=>{e={...e};let{array:t}=e,{encoding:n}=e,i=n===`buffer`,a=!1;t?a=!(n||i):n||=`utf8`,i&&(n=null);let o=new r({objectMode:a});n&&o.setEncoding(n);let s=0,c=[];return o.on(`data`,e=>{c.push(e),a?s=c.length:s+=e.length}),o.getBufferedValue=()=>t?c:i?Buffer.concat(c,s):c.join(``),o.getBufferedLength=()=>s,o}})),Yp=t(((e,t)=>{let{constants:r}=n(`buffer`),i=n(`stream`),{promisify:a}=n(`util`),o=Jp(),s=a(i.pipeline);var c=class extends Error{constructor(){super(`maxBuffer exceeded`),this.name=`MaxBufferError`}};async function l(e,t){if(!e)throw Error(`Expected a stream`);t={maxBuffer:1/0,...t};let{maxBuffer:n}=t,i=o(t);return await new Promise((t,a)=>{let o=e=>{e&&i.getBufferedLength()<=r.MAX_LENGTH&&(e.bufferedData=i.getBufferedValue()),a(e)};(async()=>{try{await s(e,i),t()}catch(e){o(e)}})(),i.on(`data`,()=>{i.getBufferedLength()>n&&o(new c)})}),i.getBufferedValue()}t.exports=l,t.exports.buffer=(e,t)=>l(e,{...t,encoding:`buffer`}),t.exports.array=(e,t)=>l(e,{...t,array:!0}),t.exports.MaxBufferError=c})),Xp=t(((e,t)=>{let{PassThrough:r}=n(`stream`);t.exports=function(){var e=[],t=new r({objectMode:!0});return t.setMaxListeners(0),t.add=n,t.isEmpty=i,t.on(`unpipe`,a),Array.prototype.slice.call(arguments).forEach(n),t;function n(r){return Array.isArray(r)?(r.forEach(n),this):(e.push(r),r.once(`end`,a.bind(null,r)),r.once(`error`,t.emit.bind(t,`error`)),r.pipe(t,{end:!1}),this)}function i(){return e.length==0}function a(n){e=e.filter(function(e){return e!==n}),!e.length&&t.readable&&t.end()}}})),Zp=e(Yp(),1),Qp=e(Xp(),1);const $p=(e,t)=>{t===void 0||e.stdin===void 0||(qp(t)?t.pipe(e.stdin):e.stdin.end(t))},em=(e,{all:t})=>{if(!t||!e.stdout&&!e.stderr)return;let n=(0,Qp.default)();return e.stdout&&n.add(e.stdout),e.stderr&&n.add(e.stderr),n},tm=async(e,t)=>{if(e){e.destroy();try{return await t}catch(e){return e.bufferedData}}},nm=(e,{encoding:t,buffer:n,maxBuffer:r})=>{if(!(!e||!n))return t?(0,Zp.default)(e,{encoding:t,maxBuffer:r}):Zp.default.buffer(e,{maxBuffer:r})},rm=async({stdout:e,stderr:t,all:n},{encoding:r,buffer:i,maxBuffer:a},o)=>{let s=nm(e,{encoding:r,buffer:i,maxBuffer:a}),c=nm(t,{encoding:r,buffer:i,maxBuffer:a}),l=nm(n,{encoding:r,buffer:i,maxBuffer:a*2});try{return await Promise.all([o,s,c,l])}catch(r){return Promise.all([{error:r,signal:r.signal,timedOut:r.timedOut},tm(e,s),tm(t,c),tm(n,l)])}},im=(async()=>{})().constructor.prototype,am=[`then`,`catch`,`finally`].map(e=>[e,Reflect.getOwnPropertyDescriptor(im,e)]),om=(e,t)=>{for(let[n,r]of am){let i=typeof t==`function`?(...e)=>Reflect.apply(r.value,t(),e):r.value.bind(t);Reflect.defineProperty(e,n,{...r,value:i})}return e},sm=e=>new Promise((t,n)=>{e.on(`exit`,(e,n)=>{t({exitCode:e,signal:n})}),e.on(`error`,e=>{n(e)}),e.stdin&&e.stdin.on(`error`,e=>{n(e)})}),cm=(e,t=[])=>Array.isArray(t)?[e,...t]:[e],lm=/^[\w.-]+$/,um=/"/g,dm=e=>typeof e!=`string`||lm.test(e)?e:`"${e.replace(um,`\\"`)}"`,fm=(e,t)=>cm(e,t).join(` `),pm=(e,t)=>cm(e,t).map(e=>dm(e)).join(` `),mm=({env:e,extendEnv:t,preferLocal:n,localDir:r,execPath:i})=>{let a=t?{...V.env,...e}:e;return n?cp({env:a,cwd:r,execPath:i}):a},hm=(e,t,n={})=>{let r=Je.default._parse(e,t,n);return e=r.command,t=r.args,n=r.options,n={maxBuffer:1e8,buffer:!0,stripFinalNewline:!0,extendEnv:!0,preferLocal:!1,localDir:n.cwd||V.cwd(),execPath:V.execPath,encoding:`utf8`,reject:!0,cleanup:!0,all:!1,windowsHide:!0,...n},n.env=mm(n),n.stdio=Fp(n),V.platform===`win32`&&z.basename(e,`.exe`)===`cmd`&&t.unshift(`/q`),{file:e,args:t,options:n,parsed:r}},gm=(e,t,n)=>typeof t!=`string`&&!je.isBuffer(t)?n===void 0?void 0:``:e.stripFinalNewline?rp(t):t;function _m(e,t,n){let r=hm(e,t,n),i=fm(e,t),a=pm(e,t);Gp(r.options);let o;try{o=Ne.spawn(r.file,r.args,r.options)}catch(e){return om(new Ne.ChildProcess,Promise.reject(Mp({error:e,stdout:``,stderr:``,all:``,command:i,escapedCommand:a,parsed:r,timedOut:!1,isCanceled:!1,killed:!1})))}let s=sm(o),c=Wp(o,r.options,s),l=Kp(o,r.options,c),u={isCanceled:!1};o.kill=Lp.bind(null,o.kill.bind(o)),o.cancel=Hp.bind(null,o,u);let d=vp(async()=>{let[{error:e,exitCode:t,signal:n,timedOut:s},c,d,f]=await rm(o,r.options,l),p=gm(r.options,c),m=gm(r.options,d),h=gm(r.options,f);if(e||t!==0||n!==null){let c=Mp({error:e,exitCode:t,signal:n,stdout:p,stderr:m,all:h,command:i,escapedCommand:a,parsed:r,timedOut:s,isCanceled:u.isCanceled||(r.options.signal?r.options.signal.aborted:!1),killed:o.killed});if(!r.options.reject)return c;throw c}return{command:i,escapedCommand:a,exitCode:0,stdout:p,stderr:m,all:h,failed:!1,timedOut:!1,isCanceled:!1,killed:!1}});return $p(o,r.options.input),o.all=em(o,r.options),om(o,d)}var vm=t(((e,t)=>{var n=[`||`,`&&`,`;;`,`|&`,`<(`,`<<<`,`>>`,`>&`,`<&`,`&`,`;`,`(`,`)`,`|`,`<`,`>`],r=/[\n\r\u2028\u2029]/,i=/[\s#!"$&'():;<=>@\\^`|]/g;t.exports=function(e){return e.map(function(e){if(e===``)return`''`;if(e&&typeof e==`object`){if(e.op===`glob`){if(typeof e.pattern!=`string`)throw TypeError("glob token requires a string `pattern`");if(r.test(e.pattern))throw TypeError("glob `pattern` must not contain line terminators");return e.pattern.replace(i,`\\$&`)}if(typeof e.op==`string`){if(n.indexOf(e.op)<0)throw TypeError("invalid `op` value: "+JSON.stringify(e.op));return e.op.replace(/[\s\S]/g,`\\$&`)}if(typeof e.comment==`string`){if(r.test(e.comment))throw TypeError("`comment` must not contain line terminators");return`#`+e.comment}throw TypeError(`unrecognized object token shape`)}return/["\s\\]/.test(e)&&!/'/.test(e)?`'`+e.replace(/(['])/g,`\\$1`)+`'`:/["'\s]/.test(e)?`"`+e.replace(/(["\\$`!])/g,`\\$1`)+`"`:String(e).replace(/([A-Za-z]:)?([#!"$&'()*,:;<=>?@[\\\]^`{|}])/g,`$1\\$2`)}).join(` `)}})),ym=t(((e,t)=>{for(var n=`(?:`+[`\\|\\|`,`\\&\\&`,`;;`,`\\|\\&`,`\\<\\(`,`\\<\\<\\<`,`>>`,`>\\&`,`<\\&`,`[&;()|<>]`].join(`|`)+`)`,r=RegExp(`^`+n+`$`),i=`|&;()<> \\t`,a=`"((\\\\"|[^"])*?)"`,o=`'((\\\\'|[^'])*?)'`,s=/^#$/,c=`'`,l=`"`,u=`$`,d=``,f=4294967296,p=0;p<4;p++)d+=(f*Math.random()).toString(16);var m=RegExp(`^`+d);function h(e,t){for(var n=t.lastIndex,r=[],i;i=t.exec(e);)r.push(i),t.lastIndex===i.index&&(t.lastIndex+=1);return t.lastIndex=n,r}function g(e,t,n){var r=typeof e==`function`?e(n):e[n];return r===void 0&&n!=``?r=``:r===void 0&&(r=`$`),typeof r==`object`?t+d+JSON.stringify(r)+d:t+r}function _(e,t,d){d||={};var f=d.escape||`\\`,p=`(\\`+f+`['"`+i+`]|[^\\s'"`+i+`])+`,m=h(e,new RegExp([`(`+n+`)`,`(`+p+`|`+a+`|`+o+`)+`].join(`|`),`g`));if(m.length===0)return[];t||={};var _=!1;return m.map(function(n){var i=n[0];if(!i||_)return;if(r.test(i))return{op:i};var a=!1,o=!1,d=``,p=!1,m;function h(){m+=1;var e,n,r=i.charAt(m);if(r===`{`){if(m+=1,i.charAt(m)===`}`)throw Error(`Bad substitution: `+i.slice(m-2,m+1));if(e=i.indexOf(`}`,m),e<0)throw Error(`Bad substitution: `+i.slice(m));n=i.slice(m,e),m=e}else if(/[*@#?$!_-]/.test(r))n=r,m+=1;else{var a=i.slice(m);e=a.match(/[^\w\d_]/),e?(n=a.slice(0,e.index),m+=e.index-1):(n=a,m=i.length)}return g(t,``,n)}for(m=0;m<i.length;m++){var v=i.charAt(m);if(p||=!a&&(v===`*`||v===`?`),o)d+=v,o=!1;else if(a)v===a?a=!1:a==c?d+=v:v===f?(m+=1,v=i.charAt(m),v===l||v===f||v===u?d+=v:d+=f+v):v===u?d+=h():d+=v;else if(v===l||v===c)a=v;else if(r.test(v))return{op:i};else if(s.test(v)){_=!0;var y={comment:e.slice(n.index+m+1)};return d.length?[d,y]:[y]}else v===f?o=!0:v===u?d+=h():d+=v}return p?{op:`glob`,pattern:d}:d}).reduce(function(e,t){return t===void 0?e:e.concat(t)},[])}t.exports=function(e,t,n){var r=_(e,t,n);return typeof t==`function`?r.reduce(function(e,t){if(typeof t==`object`)return e.concat(t);var n=t.split(RegExp(`(`+d+`.*?`+d+`)`,`g`));return n.length===1?e.concat(n[0]):e.concat(n.filter(Boolean).map(function(e){return m.test(e)?JSON.parse(e.split(d)[1]):e}))},[]):r}})),bm=t((e=>{e.quote=vm(),e.parse=ym()}))();function xm(e){return Sm(e)?{...e,configured:!0,framework:Object.assign(Object.create(e.framework),{supportsMode:!0}),devCommand:Cm(e,`dev`),buildCommand:Cm(e,`build`),env:{...e.env,CLOUDFLARE_VITE_FORCE_BUILD_OUTPUT:`true`}}:e}function Sm(e){return e.framework?.id===`next`&&(e.packageJson?.dependencies?.vinext!==void 0||e.packageJson?.devDependencies?.vinext!==void 0)&&i(`vinext`,e.projectPath)}function Cm(e,t){return`${e.packageManager.npx} vite ${t}`}function wm(e,t=process.platform){return t!==`win32`||e!==`SIGINT`}function Tm(e,t,n){let r=(t&&t in we.signals?t:void 0)??n;return{exitCode:e??(r?128+(we.signals[r]??1):1),...r?{signal:r}:{}}}async function Em(e,t={}){let n=jm(t);try{return xm(await Vf({projectPath:e,target:`cf`,context:n}))}catch(e){if(e instanceof da){n.logger.debug(`Autoconfig could not detect this project:`,e);return}throw e}}async function Dm(e,t={}){return Gf(e,{target:`cf`,context:jm(t),runBuild:!1})}async function Om(e,t={}){let n=await Em(e,t);if(n?.configured)return{details:n};let r=jm(t);return await F(e,(e,t)=>r.dialogs.confirm(e,t),t.output)?(n=await Em(e,t),{details:n}):{details:n,...n?{configuration:await Dm(n,t)}:{}}}async function km(e,t,n={}){let r=n.output??`stdout`,i=process.env.DEBUG?Object.entries(n.env??{}):[],a=i.map(([e,t])=>` ${e}=${t}`).join(`
511
+ `),o=a?` with environment override${i.length===1?``:`s`}:\n${a}`:``,s=n.args?.map(e=>JSON.stringify(e)).join(` `);r!==`silent`&&re.message(`Delegating to ${e}${s?` ${s}`:``}${o}`,{spacing:0,output:r===`stderr`?process.stderr:void 0});let[c,...l]=Am(e),u=_m(c,[...l,...n.args??[]],{cwd:t,env:n.env,stdio:[`inherit`,r===`stderr`?process.stderr:r===`silent`?`ignore`:`inherit`,`inherit`],reject:!1}),d,f=e=>()=>{d??=e,wm(e)&&u.kill(e)},p=f(`SIGINT`),m=f(`SIGTERM`);process.on(`SIGINT`,p),process.on(`SIGTERM`,m);try{let e=await u;return Tm(e.exitCode,e.signal,d)}finally{process.off(`SIGINT`,p),process.off(`SIGTERM`,m)}}function Am(e){let[t,...n]=(0,bm.parse)(e,e=>`$${e}`).map(e=>{if(typeof e==`string`)return e;if(`op`in e&&e.op===`glob`)return e.pattern;throw Error(`Project commands cannot contain shell operators or comments.`)});if(!t)throw Error(`Project command cannot be empty.`);return[t,...n]}function jm(e={}){let t=e.output??`stdout`,n=t===`stderr`?new Me({stdout:process.stderr,stderr:process.stderr}):console,i=t===`silent`?()=>{}:n.log.bind(n),a=t===`silent`?()=>{}:n.info.bind(n),o=t===`stdout`?void 0:process.stderr;return{logger:{log:i,info:a,warn:n.warn.bind(n),debug:(...e)=>{process.env.DEBUG&&t!==`silent`&&n.debug(...e)},error:n.error.bind(n)},dialogs:{confirm:(e,t)=>oe(e,{defaultValue:t?.defaultValue??!0,fallbackValue:t?.fallbackValue??t?.defaultValue??!0,output:o}),prompt:(e,t)=>ie(e,{initialValue:t?.defaultValue,fallbackValue:t?.defaultValue,fallbackError:`This command cannot be run in a non-interactive context`,validate:t?.validate,output:o}),select:(e,t)=>ae(e,{choices:t.choices,defaultOption:t.defaultOption,fallbackError:`This command cannot be run in a non-interactive context`,output:o})},runCommand:async(t,n,a)=>{i(`${a} Running: ${t}`);let o=await km(t,n,e);if(o.exitCode!==0||o.signal)throw new r(o.exitCode,{signal:o.signal})},isNonInteractiveOrCI:j}}export{km as i,Dm as n,Om as r,Em as t};