cf 0.10.0 → 0.12.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (352) hide show
  1. package/README.md +15 -5
  2. package/dist/_meta/agent-context.json +13 -5
  3. package/dist/_meta/commands.json +2393 -262
  4. package/dist/_meta/hand-written-commands.json +960 -0
  5. package/dist/_meta/schemas.json +1882 -155
  6. package/dist/{abuse-reports-CGF4zcKf.mjs → abuse-reports-D40QFl-y.mjs} +2 -2
  7. package/dist/{access-lhLJo1v2.mjs → access-Dl2IU1ID.mjs} +1 -1
  8. package/dist/account-CPbieCZ4.mjs +2 -0
  9. package/dist/{account-tags-B88TotoH.mjs → account-tags-skfP7H8k.mjs} +4 -4
  10. package/dist/{accounts-BSIAT_iP.mjs → accounts-CSgR6909.mjs} +12 -12
  11. package/dist/{acm-VULm1djv.mjs → acm-CVvCTaNk.mjs} +1 -1
  12. package/dist/{addressing-BHPBIkRY.mjs → addressing-Uq5hEDDP.mjs} +11 -11
  13. package/dist/{agent-context-KBy48G1b.mjs → agent-context-BvuDdaJb.mjs} +1 -1
  14. package/dist/agent-memory-BrHMIU0E.mjs +6 -0
  15. package/dist/ai-audit-BoZuL84i.mjs +2 -0
  16. package/dist/ai-gateway-DE50Jem1.mjs +13 -0
  17. package/dist/ai-search-Fx7NHCHB.mjs +7 -0
  18. package/dist/ai-security-DyLbY9kv.mjs +4 -0
  19. package/dist/ai-v2fP1r0s.mjs +5 -0
  20. package/dist/{alerting-Bl8OqViR.mjs → alerting-5mFZjTcD.mjs} +1 -1
  21. package/dist/analytics-BygTfozw.mjs +3 -0
  22. package/dist/analytics_engine-4L-q362P.mjs +2 -0
  23. package/dist/{api-security-4FVrD4n8.mjs → api-security-DjFsRYWx.mjs} +20 -20
  24. package/dist/argo-TzXPN7tz.mjs +2 -0
  25. package/dist/args-CDgWUP4J.mjs +2 -0
  26. package/dist/{artifacts-CVDGnr2V.mjs → artifacts-dEw2UUBV.mjs} +1 -1
  27. package/dist/audit-logs-CqY7zzwv.mjs +2 -0
  28. package/dist/auth-CPLdkOC7.mjs +5 -0
  29. package/dist/{auth-MQEamPN9.mjs → auth-DY_Y2bXC.mjs} +3 -3
  30. package/dist/billing-DHQuRT8S.mjs +3 -0
  31. package/dist/body-parser-BGVbwPeM.mjs +2 -0
  32. package/dist/bot-management-CfqG79hF.mjs +5 -0
  33. package/dist/botnet-feed-BOeNnDoH.mjs +3 -0
  34. package/dist/brand-protection-DYttrKIM.mjs +3 -0
  35. package/dist/{browser-extension-BtpCbh-2.mjs → browser-extension-CTUCdgfn.mjs} +1 -1
  36. package/dist/browser-run-373D4e1i.mjs +4 -0
  37. package/dist/build-D0ir_S70.mjs +2 -0
  38. package/dist/{cache-VyWK1SjY.mjs → cache-DJXBmc3w.mjs} +1 -1
  39. package/dist/{calls-BxoRYxs4.mjs → calls-COO0Eoz1.mjs} +1 -1
  40. package/dist/certificate-authorities-DbHLmKbd.mjs +2 -0
  41. package/dist/cf-yPz_IqW6.mjs +18 -0
  42. package/dist/chunk-LQW53VED-9MACsvSG.mjs +119 -0
  43. package/dist/chunk-QBZBEHZB-yeyhVUeD.mjs +2 -0
  44. package/dist/{client-certificates-DDUv8K0a.mjs → client-certificates-RBRqYP3f.mjs} +1 -1
  45. package/dist/{client-side-security-D4ysjwWT.mjs → client-side-security-HOmA37et.mjs} +1 -1
  46. package/dist/cloud-connector-C7hw1c1f.mjs +2 -0
  47. package/dist/cloudforce-one-DLOj76q4.mjs +36 -0
  48. package/dist/command-BV87D4tR.mjs +2 -0
  49. package/dist/{completions-BHE4pRjB.mjs → completions-BnD46cXe.mjs} +3 -3
  50. package/dist/config.d.mts +1451 -1366
  51. package/dist/config.mjs +1 -1
  52. package/dist/connector-interrupts-DY-z_LrH.mjs +2 -0
  53. package/dist/connector-telemetry-events-DCXmcAc9.mjs +2 -0
  54. package/dist/connector-telemetry-snapshots-D8GNuzx3.mjs +2 -0
  55. package/dist/{connectors-BqxYMMtQ.mjs → connectors-fEOn-J_i.mjs} +1 -1
  56. package/dist/containers-BDBsEs7-.mjs +58 -0
  57. package/dist/{content-scan-Dgd7A8KF.mjs → content-scan-Cmj9--XY.mjs} +1 -1
  58. package/dist/{csamScanner-DYL37wLc.mjs → csamScanner-BRXyMCyH.mjs} +1 -1
  59. package/dist/{ct-alerting-CkhSbfAs.mjs → ct-alerting-9AvYys-f.mjs} +1 -1
  60. package/dist/custom-certificates-C5qrlyhb.mjs +5 -0
  61. package/dist/custom-csrs-BgOnTbBW.mjs +3 -0
  62. package/dist/{custom-hostnames-q_nsnlye.mjs → custom-hostnames-CbQD9aYo.mjs} +1 -1
  63. package/dist/custom-nameservers-2ZajBkRC.mjs +3 -0
  64. package/dist/custom-pages-Buki_Cb8.mjs +3 -0
  65. package/dist/d1-n2in0cSF.mjs +20 -0
  66. package/dist/data-security-DzOQMkv3.mjs +7 -0
  67. package/dist/dcv-delegation-BTP9LCOm.mjs +2 -0
  68. package/dist/delegate.mjs +1 -1
  69. package/dist/deploy-BUSz35vq.mjs +2 -0
  70. package/dist/deploy-input-BvD9aRP1.mjs +2 -0
  71. package/dist/dev-DY_DquQx.mjs +4 -0
  72. package/dist/{diagnostics-BTH-8nJH.mjs → diagnostics-BvHV8kQb.mjs} +1 -1
  73. package/dist/{directory-BlH6N6Qy.mjs → directory-BeiSyg8A.mjs} +1 -1
  74. package/dist/{dispatch-namespaces-BCjH1JzB.mjs → dispatch-namespaces-Dp8Jjpwy.mjs} +1 -1
  75. package/dist/dist-BBx1io2f.mjs +2 -0
  76. package/dist/dist-Cb9TJ2VV.mjs +9 -0
  77. package/dist/dist-DV7LR38l.mjs +387 -0
  78. package/dist/dist-DvizctjW.mjs +48 -0
  79. package/dist/{dls-BF5iN78p.mjs → dls-BwoU29mS.mjs} +1 -1
  80. package/dist/{dns-CeCTNqRk.mjs → dns-DISAfuzj.mjs} +13 -13
  81. package/dist/{dns-firewall-B54MaLGm.mjs → dns-firewall-wBcCx_ua.mjs} +1 -1
  82. package/dist/{dot-prop-6SRZBKHT-wIVDg_fl.mjs → dot-prop-6SRZBKHT-wwGHcwAa.mjs} +1 -1
  83. package/dist/dry-run-ILZRVpnp.mjs +2 -0
  84. package/dist/durable-objects-DhDL3San.mjs +2 -0
  85. package/dist/email-auth-BROqK6-C.mjs +2 -0
  86. package/dist/email-routing-BZXHDAOO.mjs +6 -0
  87. package/dist/email-security-DVumybrk.mjs +18 -0
  88. package/dist/email-sending-CDQ3_wyz.mjs +7 -0
  89. package/dist/fieldExtractors-Cy1rxHEF.mjs +3 -0
  90. package/dist/{firewall-CBPGJ43p.mjs → firewall-C0g5X7Zd.mjs} +9 -9
  91. package/dist/flagship-fFBiZUz-.mjs +4 -0
  92. package/dist/{fraud-BIhS8pLf.mjs → fraud-CjIETOaM.mjs} +1 -1
  93. package/dist/google-tag-gateway-hPa5IHUx.mjs +2 -0
  94. package/dist/{healthchecks-FiXIk-KP.mjs → healthchecks-CoycpTf9.mjs} +1 -1
  95. package/dist/{hostnames-Bx0mykMR.mjs → hostnames-x_Yezxpr.mjs} +1 -1
  96. package/dist/{hyperdrive-C8qCabBF.mjs → hyperdrive-BlfrTwSq.mjs} +1 -1
  97. package/dist/iam-Bk7K_PPO.mjs +6 -0
  98. package/dist/images-BAEFb9q1.mjs +8 -0
  99. package/dist/index.mjs +1 -1
  100. package/dist/{intel-B-9Z_sJs.mjs → intel-DDkyJVaP.mjs} +1 -1
  101. package/dist/interactive-CRnq-B5I.mjs +11 -0
  102. package/dist/{interactive-DtsCYfrK.mjs → interactive-cytQzL94.mjs} +1 -1
  103. package/dist/ips-DU0ti0i0.mjs +2 -0
  104. package/dist/{keyless-certificates-THHvoXX3.mjs → keyless-certificates-E1P9jBTb.mjs} +1 -1
  105. package/dist/keys-DqldTZqH.mjs +2 -0
  106. package/dist/{kv-BFDUCnft.mjs → kv-CcfCfnwq.mjs} +1 -1
  107. package/dist/{leaked-credential-checks-DUlUCOoJ.mjs → leaked-credential-checks-CqmKaEbd.mjs} +1 -1
  108. package/dist/load-balancers-Dg4pDad1.mjs +6 -0
  109. package/dist/{local-D-aVNu6A.mjs → local-DGiIS1uM.mjs} +1 -1
  110. package/dist/local-runtime--IQr44qq.mjs +2 -0
  111. package/dist/logexplorer-Bu2mG5rh.mjs +17 -0
  112. package/dist/logo-matches-CWUzxY7G.mjs +2 -0
  113. package/dist/logos-BTfdkDPi.mjs +3 -0
  114. package/dist/{logpush-BK34mMQs.mjs → logpush-BZyay3h2.mjs} +1 -1
  115. package/dist/{logs-CLAqX9h2.mjs → logs-BqF7jjQO.mjs} +1 -1
  116. package/dist/{magic-cloud-networking-h_ozrC5S.mjs → magic-cloud-networking-Dhd8pTyM.mjs} +4 -4
  117. package/dist/magic-network-monitoring-D0FnkjuN.mjs +4 -0
  118. package/dist/magic-transit-B5skt0G7.mjs +111 -0
  119. package/dist/managed-transforms-B6X_crcJ.mjs +3 -0
  120. package/dist/matches-DeYaB4I0.mjs +2 -0
  121. package/dist/mcp-ChjBiMx2.mjs +4 -0
  122. package/dist/mesh-DRVAFLBX.mjs +4 -0
  123. package/dist/{moq-qmuVPAO0.mjs → moq-DE7VDEFS.mjs} +1 -1
  124. package/dist/mtls-certificates-Cbc3uAkN.mjs +3 -0
  125. package/dist/{network-D74cSy3t.mjs → network-CDPZNFbn.mjs} +1 -1
  126. package/dist/{network-interconnects-BJ0Nc48J.mjs → network-interconnects-CMRs_chR.mjs} +1 -1
  127. package/dist/oauth-DAa7SwkM.mjs +14 -0
  128. package/dist/{oauth-clients-Br-smLxQ.mjs → oauth-clients-DAI_gcuL.mjs} +1 -1
  129. package/dist/oauth-scopes-BE6xF4_h.mjs +2 -0
  130. package/dist/observability-DnyI8rPJ.mjs +4 -0
  131. package/dist/{open-PBXRGS4R-R-qesf18.mjs → open-PBXRGS4R-DIiYQyU9.mjs} +3 -3
  132. package/dist/{organization-NX7yCZrq.mjs → organization-yh0mSUdI.mjs} +6 -6
  133. package/dist/organizations-B3aU-RCG.mjs +2 -0
  134. package/dist/origin-ca-certificates-BaNWfVqf.mjs +3 -0
  135. package/dist/origin-post-quantum-encryption-CIUtQgyv.mjs +2 -0
  136. package/dist/origin-tls-client-auth-CvEpbX2Q.mjs +4 -0
  137. package/dist/{output-DrpYYfnB.mjs → output-BqDR9h74.mjs} +1 -1
  138. package/dist/page-rules-CzbyXbt6.mjs +27 -0
  139. package/dist/pages-CX8yefTI.mjs +14 -0
  140. package/dist/pay-per-crawl-v4vBOMWD.mjs +4 -0
  141. package/dist/pipelines-BZ1KGupx.mjs +6 -0
  142. package/dist/precursor-D42A9ay5.mjs +4 -0
  143. package/dist/progress-jYW64HY7.mjs +2 -0
  144. package/dist/project-settings-BN7tL0c7.mjs +3 -0
  145. package/dist/prompt-CyATfGUu.mjs +3 -0
  146. package/dist/{public-BwQqexwo-CNW_dPly.mjs → public-BMg6-Hxh-DgIH5obr.mjs} +1 -1
  147. package/dist/queries-xvETUjUE.mjs +3 -0
  148. package/dist/queues-CpqHDtxF.mjs +6 -0
  149. package/dist/{r2-data-catalog-Du7hN9jA.mjs → r2-data-catalog-DgKmlTKR.mjs} +1 -1
  150. package/dist/r2-jhmLvD1z.mjs +24 -0
  151. package/dist/radar-C2J16wpX.mjs +2 -0
  152. package/dist/{rate-limits-yBF3qoYD.mjs → rate-limits-CoH9Xma0.mjs} +1 -1
  153. package/dist/raw-fetch-CNKIypJ7.mjs +2 -0
  154. package/dist/{realtimekit-CIP7lP-a.mjs → realtimekit-CDs0Z5WW.mjs} +1 -1
  155. package/dist/registrar-BI5ewTAk.mjs +23 -0
  156. package/dist/{registrar-sandbox-DiXg8p_1.mjs → registrar-sandbox-al1znWMc.mjs} +4 -4
  157. package/dist/{registry-Bck_zFkz.mjs → registry-5-I2XLwF.mjs} +1 -1
  158. package/dist/reporting-CxsdHAH3.mjs +2 -0
  159. package/dist/request-tracers-DJJCncft.mjs +2 -0
  160. package/dist/{resource-sharing-D1pSDvtf.mjs → resource-sharing-qQGn8AEn.mjs} +1 -1
  161. package/dist/resource-tagging-aTtpX5e5.mjs +2 -0
  162. package/dist/rules-PpsDU89Q.mjs +4 -0
  163. package/dist/rulesets-DP12Aqik.mjs +5 -0
  164. package/dist/rum-DxvpzJYc.mjs +4 -0
  165. package/dist/{schema-B34Q9tLF.mjs → schema-DlLbiOJj.mjs} +1 -1
  166. package/dist/schema-flags-CTfQVGCs.mjs +5 -0
  167. package/dist/schemas-BFCBlp_W.mjs +65 -0
  168. package/dist/{scim-CcSyfKCH.mjs → scim-DJ4AVU20.mjs} +1 -1
  169. package/dist/{secrets-store-DFmvtphu.mjs → secrets-store-D6KDNo_s.mjs} +1 -1
  170. package/dist/security-center-008FMs_z.mjs +2 -0
  171. package/dist/{security-txt-DqnFpjMI.mjs → security-txt-CqcfrhlN.mjs} +1 -1
  172. package/dist/{share-BuwYUzOL.mjs → share-D5fzsVAJ.mjs} +4 -4
  173. package/dist/{deploy-input-CrvuoDGJ.mjs → shared-DlKGNPiT.mjs} +97 -99
  174. package/dist/smart-shield-DpFscIk8.mjs +4 -0
  175. package/dist/snippets-CCKgI2ZX.mjs +4 -0
  176. package/dist/spawn-C3_tJ3RB.mjs +526 -0
  177. package/dist/{spectrum-b7N1ZRAm.mjs → spectrum-LmdqY3ki.mjs} +1 -1
  178. package/dist/{speed-cw31yFva.mjs → speed-CEK36h3A.mjs} +1 -1
  179. package/dist/src-CEb2fgtT.mjs +108 -0
  180. package/dist/{ssl-CsEhRVTO.mjs → ssl-ChHUyaQm.mjs} +1 -1
  181. package/dist/startup-profile-Dpxg-MjV.mjs +17 -0
  182. package/dist/{state-Bb5Cbc_L.mjs → state-DeX23Kmg.mjs} +1 -1
  183. package/dist/{stream-DFOao6Gu.mjs → stream-DfUSELMX.mjs} +13 -13
  184. package/dist/submit-DF2G5CIz.mjs +2 -0
  185. package/dist/tags-nFJJHlLJ.mjs +2 -0
  186. package/dist/tenant-CRLw1oRU.mjs +2 -0
  187. package/dist/tenant-custom-nameservers-BvBQRDcs.mjs +3 -0
  188. package/dist/{tools-BHfBOZOU.mjs → tools-j8UGEtP1.mjs} +1 -1
  189. package/dist/{tunnel-DkMiNtVY.mjs → tunnel-CMQeBgmb.mjs} +1 -1
  190. package/dist/tunnels-iVA3MrdS.mjs +2 -0
  191. package/dist/turnstile-DQHP6-_b.mjs +23 -0
  192. package/dist/{ui-DE8CNn6c.mjs → ui-DJFcf61J.mjs} +1 -1
  193. package/dist/url-info-BVgdb_pf.mjs +2 -0
  194. package/dist/{url-normalization-ClfFiruK.mjs → url-normalization-BTcxLxIQ.mjs} +1 -1
  195. package/dist/url-scanner-DwuDZLPk.mjs +2 -0
  196. package/dist/user-I_MbB_KX.mjs +12 -0
  197. package/dist/values-S-Q7-5o8.mjs +2 -0
  198. package/dist/{vectorize-CVKu7lEt.mjs → vectorize-CNZdF_0A.mjs} +1 -1
  199. package/dist/waiting-rooms-Bo-OSsxu.mjs +11 -0
  200. package/dist/{web-assets-C2s9kzWf.mjs → web-assets-tlFzKdNL.mjs} +1 -1
  201. package/dist/web3-CdbfoZ2x.mjs +4 -0
  202. package/dist/workers-DQ9Q7czn.mjs +28 -0
  203. package/dist/{workers-builds-B55-oXOa.mjs → workers-builds-CGRhYx-x.mjs} +1 -1
  204. package/dist/{workflows-B-kGHxFu.mjs → workflows-BhEy-crm.mjs} +1 -1
  205. package/dist/zaraz-DbKvA_8C.mjs +2 -0
  206. package/dist/{zero-trust-DV3sIOvu.mjs → zero-trust-DrHCPVOc.mjs} +67 -66
  207. package/dist/zone-D2zrbJI2.mjs +2 -0
  208. package/dist/zones-DrpxQ_-A.mjs +21 -0
  209. package/package.json +12 -8
  210. package/dist/account-CYRm3yoN.mjs +0 -2
  211. package/dist/agent-memory-DDv_Gxr7.mjs +0 -6
  212. package/dist/ai-audit-BWZGvbca.mjs +0 -2
  213. package/dist/ai-gateway-jeB-sAgP.mjs +0 -13
  214. package/dist/ai-search-BmdskMjR.mjs +0 -7
  215. package/dist/ai-security-CsmfcaUx.mjs +0 -4
  216. package/dist/ai-viHB1tgI.mjs +0 -5
  217. package/dist/analytics-vOxw8Hy0.mjs +0 -3
  218. package/dist/analytics_engine-DO4-C0wD.mjs +0 -2
  219. package/dist/argo-CQfCgazW.mjs +0 -2
  220. package/dist/args-DlUhyGU0.mjs +0 -2
  221. package/dist/audit-logs-CzpwvQ6A.mjs +0 -2
  222. package/dist/auth-D0xZxAEa.mjs +0 -5
  223. package/dist/billing-aJgapeRm.mjs +0 -3
  224. package/dist/body-parser-C-c9gfH1.mjs +0 -2
  225. package/dist/bot-management-Y2q5d-pi.mjs +0 -5
  226. package/dist/botnet-feed-DANJqfmE.mjs +0 -3
  227. package/dist/brand-protection-CjpZWBjp.mjs +0 -3
  228. package/dist/browser-run-BFn9h2Tz.mjs +0 -4
  229. package/dist/build-DcflwvqN.mjs +0 -2
  230. package/dist/certificate-authorities-D7OAFxF_.mjs +0 -2
  231. package/dist/cf-C7DU4819.mjs +0 -18
  232. package/dist/chunk-LQW53VED-DLrXV-hE.mjs +0 -499
  233. package/dist/cloud-connector-Bhec6z2P.mjs +0 -2
  234. package/dist/cloudforce-one-J_hn9ss9.mjs +0 -36
  235. package/dist/connector-interrupts-Dycx8zFx.mjs +0 -2
  236. package/dist/connector-telemetry-events-BmxOSNtN.mjs +0 -2
  237. package/dist/connector-telemetry-snapshots-CdcqfKnH.mjs +0 -2
  238. package/dist/containers-CKW081JA.mjs +0 -54
  239. package/dist/custom-certificates-BzAOnEoT.mjs +0 -5
  240. package/dist/custom-csrs-CgzG3pd3.mjs +0 -3
  241. package/dist/custom-nameservers-BUBmfhUe.mjs +0 -3
  242. package/dist/custom-pages-M7jA2Hit.mjs +0 -3
  243. package/dist/d1-BFvMd6-S.mjs +0 -20
  244. package/dist/data-security-Bji4Or_j.mjs +0 -7
  245. package/dist/dcv-delegation-BuoRQ1Yh.mjs +0 -2
  246. package/dist/deploy-CZ7bgNDu.mjs +0 -2
  247. package/dist/dev-V10MG-Bg.mjs +0 -4
  248. package/dist/dist-CgrMkXFx.mjs +0 -72
  249. package/dist/durable-objects-D8FQORrL.mjs +0 -2
  250. package/dist/email-auth-DJK0Eb30.mjs +0 -2
  251. package/dist/email-routing-NpmiKIrl.mjs +0 -6
  252. package/dist/email-security-BLZ7WZ9Z.mjs +0 -18
  253. package/dist/email-sending-dn-353Nx.mjs +0 -7
  254. package/dist/fieldExtractors-ahysj57J.mjs +0 -3
  255. package/dist/flagship-BusjRNIb.mjs +0 -4
  256. package/dist/google-tag-gateway-TZZ3F1tV.mjs +0 -2
  257. package/dist/iam-Cj63Kjc6.mjs +0 -6
  258. package/dist/images-CBWXCDhy.mjs +0 -8
  259. package/dist/ips-qs9eGJnI.mjs +0 -2
  260. package/dist/keys-D7N0j4-x.mjs +0 -2
  261. package/dist/load-balancers-D2zbQ8fT.mjs +0 -6
  262. package/dist/local-runtime-Dh3keC5v.mjs +0 -2
  263. package/dist/logexplorer-CUsfZ_bS.mjs +0 -13
  264. package/dist/logo-matches-CJcthPHf.mjs +0 -2
  265. package/dist/logos-BS65zN8q.mjs +0 -3
  266. package/dist/magic-network-monitoring-C7tAPNKP.mjs +0 -4
  267. package/dist/magic-transit-BtsFePMx.mjs +0 -111
  268. package/dist/managed-transforms-Cm_KVCMB.mjs +0 -3
  269. package/dist/matches-InA1hwII.mjs +0 -2
  270. package/dist/mcp-mJ7bekNJ.mjs +0 -4
  271. package/dist/mesh-BK4S1Ezy.mjs +0 -4
  272. package/dist/mtls-certificates-CU4OAAXY.mjs +0 -3
  273. package/dist/oauth-B0ETkNcX.mjs +0 -15
  274. package/dist/oauth-scopes-D5bF11ju.mjs +0 -2
  275. package/dist/observability-BWE0Gg3V.mjs +0 -4
  276. package/dist/organizations-DLhiRt8g.mjs +0 -2
  277. package/dist/origin-ca-certificates-Ff4McZRQ.mjs +0 -3
  278. package/dist/origin-post-quantum-encryption-UuTr4_SW.mjs +0 -2
  279. package/dist/origin-tls-client-auth-DOJ1zlH3.mjs +0 -4
  280. package/dist/page-rules-BSz1gO-_.mjs +0 -18
  281. package/dist/pages-DVDogxPs.mjs +0 -14
  282. package/dist/pay-per-crawl-BrLXK7gT.mjs +0 -4
  283. package/dist/pipelines-BszRk4sM.mjs +0 -6
  284. package/dist/precursor-BPNjQr76.mjs +0 -4
  285. package/dist/progress-CsHIt3Tp.mjs +0 -2
  286. package/dist/prompt-DdegNPpg.mjs +0 -3
  287. package/dist/queries-JL1H1Biz.mjs +0 -3
  288. package/dist/queues-DpkYdRUE.mjs +0 -6
  289. package/dist/r2-CKozthw_.mjs +0 -24
  290. package/dist/radar-C-92vggG.mjs +0 -2
  291. package/dist/raw-fetch-CteyTOM2.mjs +0 -2
  292. package/dist/registrar-DKKN0M29.mjs +0 -21
  293. package/dist/reporting-fg_GKXe1.mjs +0 -2
  294. package/dist/request-tracers-CkMya96z.mjs +0 -2
  295. package/dist/resource-tagging-z48JGHCq.mjs +0 -2
  296. package/dist/rules-BTmNjDN-.mjs +0 -4
  297. package/dist/rulesets-CsoSM-17.mjs +0 -5
  298. package/dist/rum-DB4iO2q5.mjs +0 -4
  299. package/dist/schema-flags-iGoOriJt.mjs +0 -5
  300. package/dist/security-center-DFKeHq5c.mjs +0 -2
  301. package/dist/session-D6KHthHf.mjs +0 -2
  302. package/dist/shared-VppSAQf4.mjs +0 -2
  303. package/dist/smart-shield-D6X8L7p8.mjs +0 -4
  304. package/dist/snippets-DIpc9pb_.mjs +0 -4
  305. package/dist/spawn-O1RS01vr.mjs +0 -523
  306. package/dist/src-D_HETJNy.mjs +0 -108
  307. package/dist/submit--xTzyNPy.mjs +0 -2
  308. package/dist/tags-efICDkah.mjs +0 -2
  309. package/dist/tenant-CerHuToJ.mjs +0 -2
  310. package/dist/tenant-custom-nameservers-C4otMBm2.mjs +0 -3
  311. package/dist/triggers-BEsiiKAf.mjs +0 -2
  312. package/dist/tunnels-D0J8lJoI.mjs +0 -2
  313. package/dist/turnstile-CFmtY5bn.mjs +0 -23
  314. package/dist/url-info-DBCeRWwb.mjs +0 -2
  315. package/dist/url-scanner-CNyvg65L.mjs +0 -2
  316. package/dist/user-bifVEQq5.mjs +0 -12
  317. package/dist/values-OxkdP1tV.mjs +0 -2
  318. package/dist/versions-BVL-Ludh.mjs +0 -2
  319. package/dist/waiting-rooms-CmRAl51T.mjs +0 -11
  320. package/dist/web3-y_cY91V_.mjs +0 -4
  321. package/dist/workers-jDcq14GH.mjs +0 -24
  322. package/dist/zaraz-27zwjLvv.mjs +0 -2
  323. package/dist/zone-BJix2KQ9.mjs +0 -2
  324. package/dist/zones-Bkj5i92c.mjs +0 -21
  325. /package/dist/{alerts-CRmjqOZi.mjs → alerts-9PR5sQ_z.mjs} +0 -0
  326. /package/dist/{autorag-BD7cu5NU.mjs → autorag-Bevo1kIH.mjs} +0 -0
  327. /package/dist/{brands-BhALBkX2.mjs → brands-C4M04Man.mjs} +0 -0
  328. /package/dist/{chunk-6EUZQHAF-B7bSMYLe.mjs → chunk-6EUZQHAF-C3w62dek.mjs} +0 -0
  329. /package/dist/{clear-BgF8No7D.mjs → clear-DS0eRXOc.mjs} +0 -0
  330. /package/dist/{cli-types-BsTty22w.mjs → cli-types-C3nVfpSG.mjs} +0 -0
  331. /package/dist/{connector-telemetry-events-latest-BY2556uL.mjs → connector-telemetry-events-latest-CKKG6_pD.mjs} +0 -0
  332. /package/dist/{connector-telemetry-snapshots-latest-BHYdxUEF.mjs → connector-telemetry-snapshots-latest-Bv5OddJr.mjs} +0 -0
  333. /package/dist/{domain-info-C50W5GhA.mjs → domain-info-BUiaGCEq.mjs} +0 -0
  334. /package/dist/{health-BFNZqiAm.mjs → health-vX6Ml2Na.mjs} +0 -0
  335. /package/dist/{input-validation-Bav2M9F-.mjs → input-validation-1esLElok.mjs} +0 -0
  336. /package/dist/{internal-BTeSewwB.mjs → internal-ROz7anul.mjs} +0 -0
  337. /package/dist/{live-Dkiyu30_.mjs → live-CSxvigCS.mjs} +0 -0
  338. /package/dist/{metadata-8AkOftcB.mjs → metadata-DEqBUaSv.mjs} +0 -0
  339. /package/dist/{rate-limit-analytics-Dz-Wv1T0.mjs → rate-limit-analytics-CgHgKjmV.mjs} +0 -0
  340. /package/dist/{ready-TKOkKeRg.mjs → ready-6G9zVGPJ.mjs} +0 -0
  341. /package/dist/{recent-submissions-3Asm6eIi.mjs → recent-submissions-B3Smh-QM.mjs} +0 -0
  342. /package/dist/{refute-BVz9nMyd.mjs → refute-DjkmLSNe.mjs} +0 -0
  343. /package/dist/{resolve-CeBbH6Pq.mjs → resolve-DEvdeprv.mjs} +0 -0
  344. /package/dist/{scan-logo-ZteA-PUV.mjs → scan-logo-545qLcGs.mjs} +0 -0
  345. /package/dist/{scan-page-DWDSyzQ7.mjs → scan-page-DRQiVufl.mjs} +0 -0
  346. /package/dist/{search-DGNc37HK.mjs → search-CXbqFoqe.mjs} +0 -0
  347. /package/dist/{signed-url-B5Qpn2mn.mjs → signed-url-rU_nvgFA.mjs} +0 -0
  348. /package/dist/{submission-info-FjUolE6A.mjs → submission-info-D6PgXNQP.mjs} +0 -0
  349. /package/dist/{theme-CeVf-5qG.mjs → theme-CrIBazAF.mjs} +0 -0
  350. /package/dist/{total-queries-NHJj1HGq.mjs → total-queries-XkFyu8H5.mjs} +0 -0
  351. /package/dist/{tracked-domains-CniKVHIp.mjs → tracked-domains-CmcRXHj_.mjs} +0 -0
  352. /package/dist/{verify-DS1PWAJe.mjs → verify-CM1NakP0.mjs} +0 -0
@@ -1,523 +0,0 @@
1
- #!/usr/bin/env node
2
- import{i as e,r as t,t as n}from"./chunk-vbHwaUoU.mjs";import{t as r}from"./src-D_HETJNy.mjs";import{C as i,Ct as a,Dt as o,F as s,I as c,Ot as l,S as u,Tt as d,V as f,X as p,g as m,kt as h,lt as g,ut as _,v,x as y,y as b}from"./chunk-LQW53VED-DLrXV-hE.mjs";import{a as x}from"./theme-CeVf-5qG.mjs";import"./ui-DE8CNn6c.mjs";import{a as S,i as C,n as w,o as T,r as E,s as D,t as O}from"./chunk-6EUZQHAF-B7bSMYLe.mjs";import{i as ee,t as te}from"./dist-CgrMkXFx.mjs";import{_ as ne,a as re,c as k,f as A,g as ie,h as j,i as M,m as ae,n as oe,o as se,p as ce,s as N,u as P,v as le}from"./interactive-DtsCYfrK.mjs";import{t as F}from"./registry-Bck_zFkz.mjs";import{basename as ue,dirname as de,isAbsolute as fe,join as pe,relative as me,resolve as he}from"path";import{promises as ge}from"fs";import{appendFileSync as _e,existsSync as I,mkdirSync as ve,promises as ye,readFileSync as be,statSync as xe,writeFileSync as Se}from"node:fs";import L from"node:assert";import R,{basename as Ce,join as z,relative as we,resolve as Te}from"node:path";import Ee,{constants as De,homedir as Oe}from"node:os";import B,{exit as ke}from"node:process";import Ae from"node:tty";import je,{execFileSync as Me,spawn as Ne}from"node:child_process";import{Buffer as Pe}from"node:buffer";import{fileURLToPath as Fe}from"node:url";import{readFile as Ie,readdir as Le,stat as Re,writeFile as ze}from"node:fs/promises";import{constants as Be}from"os";const{white:Ve,gray:He,dim:V,hidden:Ue,bold:We,cyanBright:Ge,bgCyan:Ke}=p,H=p.hex(`#BD5B08`),qe=p.hex(`#111`),Je=p.hex(`#0E838F`),Ye=qe.bgHex(`#0E838F`),Xe=p.hex(`#AB2526`),Ze=qe.bgHex(`#AB2526`);p.hex(`#218529`);const Qe=qe.bgHex(`#218529`),$e=p.hex(`#7F7322`),et=qe.bgHex(`#7F7322`),tt=process.stdout,nt=process.stderr;se();const U={diamond:`◇`,dash:`─`,radioInactive:`○`,radioActive:`●`,backActive:`◀`,backInactive:`◁`,bar:`│`,leftT:`├`,rigthT:`┤`,arrows:{left:`‹`,right:`›`},corners:{tl:`╭`,bl:`╰`,tr:`╮`,br:`╯`}},rt={error:Ze(` ERROR `),warning:et(` WARNING `),info:Ye(` INFO `),success:Qe(` SUCCESS `),cancel:Ve.bgRed(` X `)},it=(e=1)=>Ue(` `.repeat(e)),at={none:-1,error:0,warn:1,info:2,log:3,debug:4};function ot(){return`log`}const st=e=>{at[ot()]>=at.log&&tt.write(`${e}\n`)},ct=e=>{st(e.split(`
3
- `).map(e=>`${He(U.bar)}${e.length>0?` `+Ve(e):``}`).join(`
4
- `))},lt=()=>{ct(``)},ut=(e,{linePrefix:t=He(U.bar),firstLinePrefix:n=t,newlineBefore:r=!1,newlineAfter:i=!1,formatLine:a=e=>Ve(e),multiline:o=!0}={})=>{let s=(o?e.split(`
5
- `):[e]).map((e,r)=>(r===0?n:t)+it()+a(e));return r&&s.unshift(t),i&&s.push(t),s.join(`
6
- `)},dt=(e,t=!0)=>{st(ut(e,{firstLinePrefix:He(U.leftT),linePrefix:He(U.bar),newlineAfter:t}))},ft=(e,t)=>{st(`${He(U.corners.bl)} ${H(e)} ${t?V(t):``}\n`)},pt=(e,{shape:t=U.corners.bl,multiline:n=!1}={})=>{st(ut(e,{firstLinePrefix:`${He(t)} ${rt.cancel}`,linePrefix:He(U.bar),newlineBefore:!0,formatLine:e=>V(e),multiline:n}))},mt=(e,{shape:t=U.corners.bl,multiline:n=!1,newlineBefore:r=!0}={})=>{st(ut(e,{firstLinePrefix:He(t)+it()+rt.warning,linePrefix:He(U.bar),formatLine:e=>V(e),multiline:n,newlineBefore:r}))},ht=e=>{let t=[`[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)`,`(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-nq-uy=><~]))`].join(`|`),n=RegExp(t,`g`);return e.replace(gt,`$2`).replace(n,``)},gt=/\u001B\]8;;(?<url>.+)\u001B\\(?<label>.+)\u001B\]8;;\u001B\\/g,_t=(e,t)=>{vt(e,t),ke(1)},vt=(e,t,n=U.corners.bl)=>{let r=ot();e&&at[r]>=at.error&&nt.write(`${He(n)} ${rt.error} ${V(e)}\n${t?it()+t+`
7
- `:``}`)};var yt=class extends Error{constructor(e,t){super(e),this.signal=t}},bt=class extends ne{options;cursor=0;get _value(){return this.options[this.cursor]}changeValue(){this.value=this._value.value}constructor(e){super(e,!1),this.options=e.options,this.cursor=this.options.findIndex(({value:t})=>t===e.initialValue),this.cursor===-1&&(this.cursor=0),this.changeValue(),this.on(`key`,t=>{t===`r`&&e.onRefresh().then(e=>{this.options=[...e],this.cursor=0,this.changeValue();let t=this;`render`in t&&typeof t.render==`function`&&t.render()}).catch(()=>{})}),this.on(`cursor`,e=>{switch(e){case`left`:case`up`:this.cursor=this.cursor===0?this.options.length-1:this.cursor-1;break;case`down`:case`right`:this.cursor=this.cursor===this.options.length-1?0:this.cursor+1;break}this.changeValue()})}};const xt=M(tt),St=He(U.bar),Ct=He(U.corners.bl),wt=He(U.leftT);function Tt(e,t,n){let r=e.validate?.(n);if(r){let t=r instanceof Error?r.message:r;if(e.throwOnError)throw Error(t);_t(t)}return st(t.submit({value:n}).join(`
8
- `)),n}const Et=async e=>{let t={...Ot(e),...e.renderers},n,r=(n,r)=>{let i=n.state;return i===`initial`&&e.initialErrorMessage&&(i=`error`,n.error=e.initialErrorMessage),t[i](n,r).join(`
9
- `)};if(e.type===`select`){let i=String(e.defaultValue);if(e.acceptDefault)return Tt(e,t,i);n=new ie({...e,options:e.options.filter(e=>!e.hidden),initialValue:i,render(){return r(this,n)}})}else if(e.type===`confirm`){let i=!!e.defaultValue;if(e.acceptDefault)return Tt(e,t,i);n=new ce({...e,initialValue:i,active:e.activeText||``,inactive:e.inactiveText||``,render(){return r(this,n)}})}else if(e.type==`multiselect`){let i;if(Array.isArray(e.defaultValue)?i=e.defaultValue:e.defaultValue!==void 0&&(i=[String(e.defaultValue)]),e.acceptDefault)return Tt(e,t,i);n=new j({...e,options:e.options,initialValues:i,render(){return r(this,n)}})}else if(e.type===`list`){let i=String(e.defaultValue);if(e.acceptDefault)return Tt(e,t,i);n=new bt({...e,onRefresh:e.onRefresh??(()=>Promise.resolve(e.options)),initialValue:i,render(){return r(this,n)}})}else{let i=e.initialValue??String(e.defaultValue??``);if(e.acceptDefault)return Tt(e,t,i);n=new ae({...e,initialValue:e.initialValue,defaultValue:String(e.defaultValue??``),render(){return r(this,n)}})}let i=await n.prompt();if(le(i)){if(e.throwOnError)throw new yt(`Operation cancelled`);pt(`Operation cancelled`),process.exit(0)}return i},Dt=(e,t)=>{let{question:n,label:r}=e;if(e.type!==`confirm`&&!t)return[`${wt} ${n} ${V(`(skipped)`)}`,`${St}`];let i=e.type===`confirm`?`${St} ${H(t)} ${V(r)}`:`${St} ${H(r)} ${V(t)}`;return[`${wt} ${n}`,i,`${St}`]},Ot=e=>{switch(e.type){case`select`:return At(e);case`confirm`:return Mt(e);case`text`:return kt(e);case`multiselect`:return At(e);case`list`:return jt(e)}},kt=e=>{let{question:t}=e,n=e.helpText??``,r=e.format??(e=>String(e)),i=e.defaultValue?.toString()??``,a=e=>{let{userInputWithCursor:a}=e;return[`${Ct} ${We(t)} ${V(n)}`,`${it(2)}${r(a||V(i))}`,``]};return{initial:()=>[`${Ct} ${We(t)} ${V(n)}`,`${it(2)}${He(r(i))}`,``],active:a,error:({value:e,error:i})=>[`${wt} ${rt.error} ${V(i)}`,`${St}`,`${Ct} ${t} ${V(n)}`,`${it(2)}${r(e)}`,``],submit:({value:t})=>Dt(e,r(t??``)),cancel:a}},At=e=>{let{options:t,question:n,helpText:r}=e,i=r??``,a=e.maxItemsPerPage??32,o=({cursor:e=0,value:r})=>{let o=(t,n)=>{let{label:i,value:a}=t,o=n===e,s=Array.isArray(r)&&r.includes(a),c=s||o?Je:Ve,l=o?c.underline(i):c(i),u=t.sublabel?c.grey(t.sublabel):``,d=c(s||o&&!Array.isArray(r)?t.activeIcon??U.radioActive:t.inactiveIcon??U.radioInactive);return`${it(2)}${d} ${l} ${u}`},s=(n,r)=>t.length<=a?!0:r<e?t.length-r<=a:e+a>r,c=t.filter(e=>!e.hidden),l=c.at(e),u=[`${Ct} ${We(n)} ${V(i)}`,`${e>0&&t.length>a?`${it(2)}${V(`...`)}\n`:``}${c.map(o).filter(s).join(`
10
- `)}${e+a<t.length&&t.length>a?`\n${it(2)}${V(`...`)}`:``}`,``];if(l?.description){let e=new Intl.Segmenter(`en`,{granularity:`word`}),t=it(2),n=process.stdout.columns-ht(t).length*2,r=ht(l.description),i=[],a=0;for(let t of e.segment(r)){let e=i[a]??``;e.length+t.segment.length>n&&(a++,e=``,t.segment.match(/^\s+$/))||(i[a]=e+t.segment)}u.push(V(i.map(e=>t+e+t).join(`
11
- `)),``)}return u};return{initial:o,active:o,confirm:o,error:(e,t)=>[`${wt} ${rt.error} ${V(e.error)}`,`${St}`,...o(e,t)],submit:({value:n})=>Array.isArray(n)?Dt(e,t.filter(e=>n.includes(e.value)).map(e=>e.label).join(`, `)):Dt(e,t.find(e=>e.value===n)?.label),cancel:o}},jt=e=>{let{question:t,helpText:n}=e,r=e.options,i=n??``,{rows:a}=tt,o=({cursor:e,value:n},o)=>{o instanceof bt&&(r=o.options),e??=0;let s=0,c=(e,t)=>{let{label:r,value:i}=e,a=i.toString(),o=t===s,c=Array.isArray(n)&&n.includes(a),l=c||o?Je:Ve,u=o?l.underline(r):l(r),d=l(c||o&&!Array.isArray(n)?U.radioActive:U.radioInactive);return[`${it(2)}${d} ${u}`,...e.details.map((t,n)=>`${it(6)}${n===e.details.length-1?He(U.corners.bl):St} ${t}`)]},l=[],u={size:0,options:[]};for(let e of r){let t=e.details.length+1;if(u.size+t>a-6){l.push(u.options),u={size:t,options:[e]};continue}u.size+=t,u.options.push(e)}u.size!==0&&l.push(u.options);let d=!0,f=!1,p=[],m=0;for(let t=0;t<l.length;t++){let n=l[t];if(e>=m&&n.length+m>e){d=t===0,f=t===l.length-1,p=n,s=e-m;break}m+=n.length}return[`${Ct} ${We(t)} ${V(i)}`,...d?[]:[`${it(2)}${V(`...`)}`],...p.map(c).reduce((e,t)=>[...e,...t],[]),...f?[]:[`${it(2)}${V(`...`)}`]]};return{initial:o,active:o,confirm:o,error:(e,t)=>[`${wt} ${rt.error} ${V(e.error)}`,`${St}`,...o(e,t)],submit:({value:t})=>Array.isArray(t)?Dt(e,r.filter(e=>t.includes(e.value)).map(e=>e.value).join(`, `)):Dt(e,r.find(e=>e.value===t)?.value),cancel:o}},Mt=e=>{let{activeText:t,inactiveText:n,question:r,helpText:i}=e,a=i??``,o=t||`Yes`,s=n||`No`,c=({value:e})=>{let t=e?Je.underline:V,n=e?V:Je.underline;return[`${Ct} ${We(r)} ${V(a)}`,`${it(2)}${t(o)} / ${n(s)}`]};return{initial:c,active:c,confirm:c,error:c,submit:({value:t})=>Dt(e,t?`yes`:`no`),cancel:c}},Nt={clockwise:[`┤`,`┘`,`┴`,`└`,`├`,`┌`,`┬`,`┐`],vertical:[`▁`,`▃`,`▄`,`▅`,`▆`,`▇`,`▆`,`▅`,`▄`,`▃`]},Pt=[``,`.`,`..`,`...`,` ..`,` .`,``],Ft=(e=Nt.clockwise,t=H)=>{let n=null,r,i;function a(){n&&clearTimeout(n),n=null}return{start(o,s){if(s||=``,i=o,r=i,s!==void 0&&s.length>0&&(r+=` ${V(s)}`),It()){let r=0;a(),n=setInterval(()=>{r++;let n=e[r%e.length],a=Pt[r%Pt.length];o&&xt(`${t(n)} ${i} ${a}`)},120)}else st(`${wt} ${r}`)},update(e){i=e},stop(e){It()?(xt.clear(),e&&(xt(`${wt} ${r}\n${St} ${e}`),xt.done(),lt()),a()):(e!==void 0&&st(`${St} ${e}`),lt())}}};function It(){try{return!!(process.stdin.isTTY&&process.stdout.isTTY)}catch{return!1}}var Lt=n(((e,n)=>{n.exports=o,o.sync=s;var r=t(`fs`);function i(e,t){var n=t.pathExt===void 0?process.env.PATHEXT:t.pathExt;if(!n||(n=n.split(`;`),n.indexOf(``)!==-1))return!0;for(var r=0;r<n.length;r++){var i=n[r].toLowerCase();if(i&&e.substr(-i.length).toLowerCase()===i)return!0}return!1}function a(e,t,n){return!e.isSymbolicLink()&&!e.isFile()?!1:i(t,n)}function o(e,t,n){r.stat(e,function(r,i){n(r,r?!1:a(i,e,t))})}function s(e,t){return a(r.statSync(e),e,t)}})),W=n(((e,n)=>{n.exports=i,i.sync=a;var r=t(`fs`);function i(e,t,n){r.stat(e,function(e,r){n(e,e?!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}})),Rt=n(((e,n)=>{t(`fs`);var r=process.platform===`win32`||global.TESTING_WINDOWS?Lt():W();n.exports=i,i.sync=a;function i(e,t,n){if(typeof t==`function`&&(n=t,t={}),!n){if(typeof Promise!=`function`)throw TypeError(`callback not provided`);return new Promise(function(n,r){i(e,t||{},function(e,t){e?r(e):n(t)})})}r(e,t||{},function(e,r){e&&(e.code===`EACCES`||t&&t.ignoreErrors)&&(e=null,r=!1),n(e,r)})}function a(e,t){try{return r.sync(e,t||{})}catch(e){if(t&&t.ignoreErrors||e.code===`EACCES`)return!1;throw e}}})),zt=n(((e,n)=>{let r=process.platform===`win32`||process.env.OSTYPE===`cygwin`||process.env.OSTYPE===`msys`,i=t(`path`),a=r?`;`:`:`,o=Rt(),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)};n.exports=l,l.sync=(e,t)=>{t||={};let{pathEnv:n,pathExt:r,pathExtExe:a}=c(e,t),l=[];for(let s=0;s<n.length;s++){let c=n[s],u=/^".*"$/.test(c)?c.slice(1,-1):c,d=i.join(u,e),f=!u&&/^\.[\\\/]/.test(e)?e.slice(0,2)+d:d;for(let e=0;e<r.length;e++){let n=f+r[e];try{if(o.sync(n,{pathExt:a}))if(t.all)l.push(n);else return n}catch{}}}if(t.all&&l.length)return l;if(t.nothrow)return null;throw s(e)}})),Bt=n(((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})),Vt=n(((e,n)=>{let r=t(`path`),i=zt(),a=Bt();function o(e,t){let n=e.options.env||process.env,o=process.cwd(),s=e.options.cwd!=null,c=s&&process.chdir!==void 0&&!process.chdir.disabled;if(c)try{process.chdir(e.options.cwd)}catch{}let l;try{l=i.sync(e.command,{path:n[a({env:n})],pathExt:t?r.delimiter:void 0})}catch{}finally{c&&process.chdir(o)}return l&&=r.resolve(s?e.options.cwd:``,l),l}function s(e){return o(e)||o(e,!0)}n.exports=s})),Ht=n(((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})),Ut=n(((e,t)=>{t.exports=/^#!(.*)/})),Wt=n(((e,t)=>{let n=Ut();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}})),Gt=n(((e,n)=>{let r=t(`fs`),i=Wt();function a(e){let t=Buffer.alloc(150),n;try{n=r.openSync(e,`r`),r.readSync(n,t,0,150,0),r.closeSync(n)}catch{}return i(t.toString())}n.exports=a})),Kt=n(((e,n)=>{let r=t(`path`),i=Vt(),a=Ht(),o=Gt(),s=process.platform===`win32`,c=/\.(?:com|exe)$/i,l=/node_modules[\\/].bin[\\/][^\\/]+\.cmd$/i;function u(e){e.file=i(e);let t=e.file&&o(e.file);return t?(e.args.unshift(e.file),e.command=t,i(e)):e.file}function d(e){if(!s)return e;let t=u(e),n=!c.test(t);if(e.options.forceShell||n){let n=l.test(t);e.command=r.normalize(e.command),e.command=a.command(e.command),e.args=e.args.map(e=>a.argument(e,n)),e.args=[`/d`,`/s`,`/c`,`"${[e.command].concat(e.args).join(` `)}"`],e.command=process.env.comspec||`cmd.exe`,e.options.windowsVerbatimArguments=!0}return e}function f(e,t,n){t&&!Array.isArray(t)&&(n=t,t=null),t=t?t.slice(0):[],n=Object.assign({},n);let r={command:e,args:t,options:n,file:void 0,original:{command:e,args:t}};return n.shell?r:d(r)}n.exports=f})),qt=n(((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}})),Jt=e(n(((e,n)=>{let r=t(`child_process`),i=Kt(),a=qt();function o(e,t,n){let o=i(e,t,n),s=r.spawn(o.command,o.args,o.options);return a.hookChildProcess(s,o),s}function s(e,t,n){let o=i(e,t,n),s=r.spawnSync(o.command,o.args,o.options);return s.error=s.error||a.verifyENOENTSync(s.status,o),s}n.exports=o,n.exports.spawn=o,n.exports.sync=s,n.exports._parse=i,n.exports._enoent=a}))(),1);const Yt=async(e,t={})=>Xt({useSpinner:t.useSpinner??t.silent,startText:t.startText||Zt(e),doneText:t.doneText,promise(){let[n,...r]=e,i=new AbortController,a=(0,Jt.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 yt(`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))(ht(o)))}catch(e){n(Error(o,{cause:e}))}}),a.on(`error`,e=>{n(e)})}).finally(()=>{s?.()})}}),Xt=async({promise:e,...t})=>{let n;t.useSpinner&&It()&&(n=Ft()),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 Zt(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 Qt=async(e,t,n={})=>{let{force:r,dev:i,startText:a,doneText:s}=n,c=n.isWorkspaceRoot??!1;if(t.length===0){let n;switch(e){case`yarn`:break;default:n=`install`;break}await Yt([e,...n?[n]:[],...t,...e===`pnpm`||e===`nub`?[`--no-frozen-lockfile`]:[],...r===!0?[`--force`]:[],...$t(e,c)],{cwd:process.cwd(),startText:a,doneText:s,silent:!0});return}let l,u;switch(e){case`yarn`:u=`add`,l=i?`-D`:``;break;case`bun`:u=`add`,l=i?`-d`:``;break;default:u=`install`,l=i?`--save-dev`:``;break}if(await Yt([e,u,...l?[l]:[],...t,...r===!0?[`--force`]:[],...$t(e,c)],{startText:a,doneText:s,silent:!0}),e===`npm`){let e=R.join(process.cwd(),`package.json`),r=d(o(e),e),i=n.dev?r.devDependencies:r.dependencies;L(i,`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`&&(i[n]=r)}}await ze(e,JSON.stringify(r,null,2))}};function $t(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 en(e,t){let n=[`wrangler@latest`];G(`@cloudflare/workers-types`)&&n.push(`@cloudflare/workers-types@latest`),await Qt(e,n,{dev:!0,isWorkspaceRoot:t,startText:`Installing wrangler ${V(`A command line tool for building Cloudflare Workers`)}`,doneText:`${H(`installed`)} ${V(`via \`${e} install wrangler --save-dev\``)}`})}function G(e){let t=R.join(process.cwd(),`package.json`);if(!I(t))return!1;let n=d(o(t),t);return!!(n.dependencies?.[e]||n.devDependencies?.[e])}function tn(e){let t=I(e);t||Se(e,``);let n=o(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=Ft();a.start(`Adding Wrangler files to the ${Ce(e)} file`);let s=[...t?[``,...n.match(/\n\s*$/)?[]:[``]]:[]];!i&&r.length>1&&s.push(`# wrangler files`),r.forEach(e=>s.push(e)),s.push(``),_e(e,s.join(`
12
- `));let c=Ce(e);a.stop(`${H(t?`updated`:`created`)} ${V(`${c} file`)}`)}function nn(e){let t=`${e}/.gitignore`,n=I(t),r=rn(`${e}/.git`);!n&&!r||tn(t)}function rn(e){try{return xe(e).isDirectory()}catch(e){if(e.code===`ENOENT`)return!1;throw Error(e)}}var K={};E(K,{__addDisposableResource:()=>Mn,__assign:()=>In,__asyncDelegator:()=>wn,__asyncGenerator:()=>Cn,__asyncValues:()=>Tn,__await:()=>Sn,__awaiter:()=>mn,__classPrivateFieldGet:()=>kn,__classPrivateFieldIn:()=>jn,__classPrivateFieldSet:()=>An,__createBinding:()=>Ln,__decorate:()=>sn,__disposeResources:()=>Nn,__esDecorate:()=>ln,__exportStar:()=>gn,__extends:()=>an,__generator:()=>hn,__importDefault:()=>On,__importStar:()=>Dn,__makeTemplateObject:()=>En,__metadata:()=>pn,__param:()=>cn,__propKey:()=>dn,__read:()=>vn,__rest:()=>on,__rewriteRelativeImportExtension:()=>Pn,__runInitializers:()=>un,__setFunctionName:()=>fn,__spread:()=>yn,__spreadArray:()=>xn,__spreadArrays:()=>bn,__values:()=>_n,default:()=>Vn});function an(e,t){if(typeof t!=`function`&&t!==null)throw TypeError(`Class extends value `+String(t)+` is not a constructor or null`);Fn(e,t);function n(){this.constructor=e}C(n,`__`),e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}function on(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 sn(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 cn(e,t){return function(n,r){t(n,r,e)}}function ln(e,t,n,r,i,a){function o(e){if(e!==void 0&&typeof e!=`function`)throw TypeError(`Function expected`);return e}C(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 un(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 dn(e){return typeof e==`symbol`?e:`${e}`}function fn(e,t,n){return typeof t==`symbol`&&(t=t.description?`[${t.description}]`:``),Object.defineProperty(e,`name`,{configurable:!0,value:n?`${n} ${t}`:t})}function pn(e,t){if(typeof Reflect==`object`&&typeof Reflect.metadata==`function`)return Reflect.metadata(e,t)}function mn(e,t,n,r){function i(e){return e instanceof n?e:new n(function(t){t(e)})}return C(i,`adopt`),new(n||=Promise)(function(n,a){function o(e){try{c(r.next(e))}catch(e){a(e)}}C(o,`fulfilled`);function s(e){try{c(r.throw(e))}catch(e){a(e)}}C(s,`rejected`);function c(e){e.done?n(e.value):i(e.value).then(o,s)}C(c,`step`),c((r=r.apply(e,t||[])).next())})}function hn(e,t){var n={label:0,sent:C(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 gn(e,t){for(var n in e)n!==`default`&&!Object.prototype.hasOwnProperty.call(t,n)&&Ln(t,e,n)}function _n(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:C(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 vn(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 yn(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(vn(arguments[t]));return e}function bn(){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 xn(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 Sn(e){return this instanceof Sn?(this.v=e,this):new Sn(e)}function Cn(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 Sn?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 wn(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:Sn(e[r](t)),done:!1}:i?i(t):t}:i}}function Tn(e){if(!Symbol.asyncIterator)throw TypeError(`Symbol.asyncIterator is not defined.`);var t=e[Symbol.asyncIterator],n;return t?t.call(e):(e=typeof _n==`function`?_n(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 En(e,t){return Object.defineProperty?Object.defineProperty(e,`raw`,{value:t}):e.raw=t,e}function Dn(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var n=zn(e),r=0;r<n.length;r++)n[r]!==`default`&&Ln(t,e,n[r]);return Rn(t,e),t}function On(e){return e&&e.__esModule?e:{default:e}}function kn(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 An(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 jn(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 Mn(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=C(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 Nn(e){function t(t){e.error=e.hasError?new Bn(t,e.error,`An error was suppressed during disposal.`):t,e.hasError=!0}C(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 C(i,`next`),i()}function Pn(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 Fn,In,Ln,Rn,zn,Bn,Vn,q=w({"../../node_modules/.pnpm/tslib@2.8.1/node_modules/tslib/tslib.es6.mjs"(){Fn=C(function(e,t){return Fn=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])},Fn(e,t)},`extendStatics`),C(an,`__extends`),In=C(function(){return In=Object.assign||C(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`),In.apply(this,arguments)},`__assign`),C(on,`__rest`),C(sn,`__decorate`),C(cn,`__param`),C(ln,`__esDecorate`),C(un,`__runInitializers`),C(dn,`__propKey`),C(fn,`__setFunctionName`),C(pn,`__metadata`),C(mn,`__awaiter`),C(hn,`__generator`),Ln=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:C(function(){return t[n]},`get`)}),Object.defineProperty(e,r,i)}:function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]},C(gn,`__exportStar`),C(_n,`__values`),C(vn,`__read`),C(yn,`__spread`),C(bn,`__spreadArrays`),C(xn,`__spreadArray`),C(Sn,`__await`),C(Cn,`__asyncGenerator`),C(wn,`__asyncDelegator`),C(Tn,`__asyncValues`),C(En,`__makeTemplateObject`),Rn=Object.create?function(e,t){Object.defineProperty(e,`default`,{enumerable:!0,value:t})}:function(e,t){e.default=t},zn=C(function(e){return zn=Object.getOwnPropertyNames||function(e){var t=[];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[t.length]=n);return t},zn(e)},`ownKeys`),C(Dn,`__importStar`),C(On,`__importDefault`),C(kn,`__classPrivateFieldGet`),C(An,`__classPrivateFieldSet`),C(jn,`__classPrivateFieldIn`),C(Mn,`__addDisposableResource`),Bn=typeof SuppressedError==`function`?SuppressedError:function(e,t,n){var r=Error(n);return r.name=`SuppressedError`,r.error=e,r.suppressed=t,r},C(Nn,`__disposeResources`),C(Pn,`__rewriteRelativeImportExtension`),Vn={__extends:an,__assign:In,__rest:on,__decorate:sn,__param:cn,__esDecorate:ln,__runInitializers:un,__propKey:dn,__setFunctionName:fn,__metadata:pn,__awaiter:mn,__generator:hn,__createBinding:Ln,__exportStar:gn,__values:_n,__read:vn,__spread:yn,__spreadArrays:bn,__spreadArray:xn,__await:Sn,__asyncGenerator:Cn,__asyncDelegator:wn,__asyncValues:Tn,__makeTemplateObject:En,__importStar:Dn,__importDefault:On,__classPrivateFieldGet:kn,__classPrivateFieldSet:An,__classPrivateFieldIn:jn,__addDisposableResource:Mn,__disposeResources:Nn,__rewriteRelativeImportExtension:Pn}}}),J=O({"../../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=(q(),T(K)).__importDefault(Hn());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)}C(o,`geq`);var s={null:C(function(){return null},`null`),emptyArray:C(function(){return[]},`emptyArray`),false:C(function(){return!1},`false`),true:C(function(){return!0},`true`),undefined:C(function(){},`undefined`),"use strict":C(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())}}C(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)}C(r,`maybeSetModuleExports`),e.maybeSetModuleExports=r}}),Hn=O({"../../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=(q(),T(K)),r=J(),i=Object.prototype,a=i.toString,o=i.hasOwnProperty,s=function(){function e(){}return C(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 C(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 C(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 C(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 C(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 C(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 C(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 C(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 C(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)}C(h,`shallowStringify`);function g(e){var t={or:C(function(){return new d([...arguments].map(function(e){return t.from(e)}))},`or`),from:C(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:C(function(e){return o.call(O,e)?O[e]:O[e]=new te(e)},`def`),hasDef:C(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}C(s,`defBuiltInType`);var g=s(`string`,`truthy`),_=s(`function`,function(){}),v=s(`array`,[]),y=s(`object`,{}),b=s(`RegExp`,/./),x=s(`Date`,new Date),S=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:x,number:S,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}C(ee,`defFromValue`);var te=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 C(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=C(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=C(function(){var t=[...arguments],n=t.length;if(!e.finalized)throw Error(`attempting to instantiate unfinalized type `+e.typeName);var i=Object.create(A);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(A);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(k,j(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(),F(t,i.allFields),F(n,i.allSupertypes);else{var a=`unknown supertype name `+JSON.stringify(r)+` for subtype `+JSON.stringify(e.typeName);throw Error(a)}}),F(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(ae,this.typeName,{enumerable:!0,value:this.type}),this.finalized=!0,le(this.typeName,this.supertypeList),this.buildable&&this.supertypeList.lastIndexOf(`Expression`)>=0&&P(this.typeName)}},r}(p);function ne(e){if(!o.call(O,e))throw Error(``);var t=O[e];if(t.finalized!==!0)throw Error(``);return t.supertypeList.slice(1)}C(ne,`getSupertypeNames`);function re(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}C(re,`computeSupertypeLookupTable`);var k=Object.create(null),A={};function ie(e,t){var n=A[e];return E.check(t)?delete A[e]:(_.assert(t),Object.defineProperty(A,e,{enumerable:!0,configurable:!0,value:t})),n}C(ie,`defineMethod`);function j(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)}})}C(j,`getBuilderName`);function M(e){return e=j(e),e.replace(/(Expression)?$/,`Statement`)}C(M,`getStatementBuilderName`);var ae={};function oe(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)}C(oe,`getFieldNames`);function se(e,t){var n=ee(e);if(n){var r=n.allFields[t];if(r)return r.getValue(e)}return e&&e[t]}C(se,`getFieldValue`);function ce(e,t,n){oe(e).forEach(function(n){t.call(this,n,se(e,n))},n)}C(ce,`eachField`);function N(e,t,n){return oe(e).some(function(n){return t.call(this,n,se(e,n))},n)}C(N,`someField`);function P(e){var t=M(e);if(!k[t]){var n=k[j(e)];if(n){var r=C(function(){var e=[...arguments];return k.expressionStatement(n.apply(k,e))},`builder`);r.from=function(){var e=[...arguments];return k.expressionStatement(n.from.apply(k,e))},k[t]=r}}}C(P,`wrapExpressionBuilderWithStatement`);function le(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}C(le,`populateSupertypeList`);function F(e,t){return Object.keys(t).forEach(function(n){e[n]=t[n]}),e}C(F,`extend`);function ue(){Object.keys(O).forEach(function(e){O[e].finalize()})}return C(ue,`finalize`),{Type:t,builtInTypes:D,getSupertypeNames:ne,computeSupertypeLookupTable:re,builders:k,defineMethod:ie,getBuilderName:j,getStatementBuilderName:M,namedTypes:ae,getFieldNames:oe,getFieldValue:se,eachField:ce,someField:N,finalize:ue}}C(g,`typesPlugin`),e.default=g,(0,r.maybeSetModuleExports)(function(){return t})}}),Un=O({"../../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=(q(),T(K)),r=J(),i=n.__importDefault(Hn()),a=Object.prototype.hasOwnProperty;function o(e){var t=e.use(i.default),n=t.builtInTypes.array,r=t.builtInTypes.number,o=C(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)}C(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}C(l,`getChildPath`),s.getValueProperty=C(function(e){return this.value[e]},`getValueProperty`),s.get=C(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=C(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=C(function(e,t){var n=[];return this.each(function(t){n.push(e.call(this,t))},t),n},`map`),s.filter=C(function(e,t){var n=[];return this.each(function(t){e.call(this,t)&&n.push(t)},t),n},`filter`);function u(){}C(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}}}C(d,`getMoves`),s.shift=C(function(){var e=d(this,-1),t=this.value.shift();return e(),t},`shift`),s.unshift=C(function(){var e=[...arguments],t=d(this,e.length),n=this.value.unshift.apply(this.value,e);return t(),n},`unshift`),s.push=C(function(){var e=[...arguments];return n.assert(this.value),delete c(this).length,this.value.push.apply(this.value,e)},`push`),s.pop=C(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=C(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=C(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=C(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 C(f,`repairRelationshipWithParent`),s.replace=C(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}C(o,`pathPlugin`),e.default=o,(0,r.maybeSetModuleExports)(function(){return t})}}),Wn=O({"../../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=(q(),T(K)),r=J(),i=n.__importDefault(Hn()),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=C(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){x(e,n)})}d.check(i)&&(r.CatchClause.check(i)?y(e.get(`param`),t):g(e,t,n))}C(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)}))}C(g,`recursiveScanScope`);function _(e,t){return!!(e.value===t||Array.isArray(e.value)&&e.value.length===0&&Array.isArray(t)&&t.length===0)}C(_,`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)}C(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)}C(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])}C(b,`addTypePattern`);function x(e,t){var n=e.value;p.assert(n),a.call(t,n.name)?t[n.name].push(e):t[n.name]=[e]}return C(x,`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}C(o,`scopePlugin`),e.default=o,(0,r.maybeSetModuleExports)(function(){return t})}}),Gn=O({"../../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=(q(),T(K)),r=n.__importDefault(Hn()),i=n.__importDefault(Un()),a=n.__importDefault(Wn()),o=J();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=C(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:C(function(){return Object.defineProperty(this,`node`,{configurable:!0,value:this._computeNode()}),this.node},`get`)},parent:{get:C(function(){return Object.defineProperty(this,`parent`,{configurable:!0,value:this._computeParent()}),this.parent},`get`)},scope:{get:C(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)}C(p,`isBinary`);function m(e){return n.UnaryExpression.check(e)||n.SpreadElement&&n.SpreadElement.check(e)||n.SpreadProperty&&n.SpreadProperty.check(e)}C(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}C(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}C(_,`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}C(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 C(y,`cleanUpIfStatementAfterPrune`),d}C(s,`nodePathPlugin`),e.default=s,(0,o.maybeSetModuleExports)(function(){return t})}}),Kn=O({"../../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=(q(),T(K)),r=n.__importDefault(Hn()),i=n.__importDefault(Gn()),a=J(),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=C(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}C(d,`computeMethodNameTable`),u.fromMethodsObject=C(function(e){if(e instanceof u)return e;if(!s.check(e))return new u;var t=C(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}C(f,`extend`),u.visit=C(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=C(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}C(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(C(t,`Context`),!(e instanceof u))throw Error(``);var r=t.prototype=Object.create(e);return r.constructor=t,f(r,g),t}C(h,`makeContextConstructor`);var g=Object.create(null);return g.reset=C(function(e){if(!(this instanceof this.Context)||!(e instanceof n))throw Error(``);return this.currentPath=e,this.needToCallTraverse=!0,this},`reset`),g.invokeVisitorMethod=C(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=C(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=C(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=C(function(){this.visitor.reportChanged()},`reportChanged`),g.abort=C(function(){this.needToCallTraverse=!1,this.visitor.abort()},`abort`),u}C(s,`pathVisitorPlugin`),e.default=s,(0,a.maybeSetModuleExports)(function(){return t})}}),qn=O({"../../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=(q(),T(K)),r=J(),i=n.__importDefault(Hn());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)}C(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)+`]`}C(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}C(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}C(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 C(m,`objectsAreEquivalent`),u}C(a,`default_1`),e.default=a,(0,r.maybeSetModuleExports)(function(){return t})}}),Jn=O({"../../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=(q(),T(K)),r=n.__importDefault(Hn()),i=n.__importDefault(Kn()),a=n.__importDefault(qn()),o=n.__importDefault(Un()),s=n.__importDefault(Gn()),c=J();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}}C(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]}C(n,`use`);var r={use:n};return r}C(u,`createFork`),(0,c.maybeSetModuleExports)(function(){return t})}}),Yn=O({"../../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=J();function r(){return{BinaryOperators:[`==`,`!=`,`===`,`!==`,`<`,`<=`,`>`,`>=`,`<<`,`>>`,`>>>`,`+`,`-`,`*`,`/`,`%`,`&`,`|`,`^`,`in`,`instanceof`],AssignmentOperators:[`=`,`+=`,`-=`,`*=`,`/=`,`%=`,`<<=`,`>>=`,`>>>=`,`|=`,`^=`,`&=`],LogicalOperators:[`||`,`&&`]}}C(r,`default_1`),e.default=r,(0,n.maybeSetModuleExports)(function(){return t})}}),Xn=O({"../../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=(q(),T(K)),r=J(),i=n.__importDefault(Yn());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}C(a,`default_1`),e.default=a,(0,r.maybeSetModuleExports)(function(){return t})}}),Zn=O({"../../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=(q(),T(K)),r=J(),i=n.__importDefault(Xn());function a(e){var t=e.use(i.default);return t.LogicalOperators.indexOf(`??`)<0&&t.LogicalOperators.push(`??`),t}C(a,`default_1`),e.default=a,(0,r.maybeSetModuleExports)(function(){return t})}}),Qn=O({"../../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=(q(),T(K)),r=J(),i=n.__importDefault(Zn());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}C(a,`default_1`),e.default=a,(0,r.maybeSetModuleExports)(function(){return t})}}),$n=O({"../../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=(q(),T(K)),r=n.__importDefault(Yn()),i=n.__importDefault(Hn()),a=n.__importStar(J());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)}C(o,`default_1`),e.default=o,(0,a.maybeSetModuleExports)(function(){return t})}}),er=O({"../../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=(q(),T(K)),r=n.__importDefault($n()),i=n.__importDefault(Hn()),a=n.__importStar(J());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`))}C(o,`default_1`),e.default=o,(0,a.maybeSetModuleExports)(function(){return t})}}),tr=O({"../../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=(q(),T(K)),r=n.__importDefault(Xn()),i=n.__importDefault(er()),a=J();function o(e){e.use(r.default),e.use(i.default)}C(o,`default_1`),e.default=o,(0,a.maybeSetModuleExports)(function(){return t})}}),nr=O({"../../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=(q(),T(K)),r=n.__importDefault(tr()),i=n.__importDefault(Hn()),a=n.__importStar(J());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`))}C(o,`default_1`),e.default=o,(0,a.maybeSetModuleExports)(function(){return t})}}),rr=O({"../../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=(q(),T(K)),r=n.__importDefault(nr()),i=n.__importDefault(Hn()),a=n.__importStar(J());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`))])}C(o,`default_1`),e.default=o,(0,a.maybeSetModuleExports)(function(){return t})}}),ir=O({"../../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=(q(),T(K)),r=n.__importDefault(rr()),i=n.__importDefault(Hn()),a=n.__importStar(J());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)}C(o,`default_1`),e.default=o,(0,a.maybeSetModuleExports)(function(){return t})}}),ar=O({"../../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=(q(),T(K)),r=n.__importDefault(Zn()),i=n.__importDefault(ir()),a=n.__importDefault(Hn()),o=n.__importStar(J());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)}C(s,`default_1`),e.default=s,(0,o.maybeSetModuleExports)(function(){return t})}}),or=O({"../../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=(q(),T(K)),r=n.__importDefault(Qn()),i=n.__importDefault(ar()),a=J();function o(e){e.use(r.default),e.use(i.default)}C(o,`default_1`),e.default=o,(0,a.maybeSetModuleExports)(function(){return t})}}),sr=O({"../../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=(q(),T(K)),r=n.__importDefault(or()),i=n.__importDefault(Hn()),a=J();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`)])}C(o,`default_1`),e.default=o,(0,a.maybeSetModuleExports)(function(){return t})}}),cr=O({"../../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=(q(),T(K)),r=n.__importDefault(Hn()),i=n.__importStar(J()),a=n.__importDefault(sr());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`))}C(o,`default_1`),e.default=o,(0,i.maybeSetModuleExports)(function(){return t})}}),lr=O({"../../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=(q(),T(K)),r=n.__importDefault(cr()),i=n.__importDefault(Hn()),a=n.__importStar(J());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`))}C(o,`default_1`),e.default=o,(0,a.maybeSetModuleExports)(function(){return t})}}),ur=O({"../../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=(q(),T(K)),r=n.__importDefault(Hn()),i=n.__importStar(J());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)})}C(a,`default_1`),e.default=a,(0,i.maybeSetModuleExports)(function(){return t})}}),dr=O({"../../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=(q(),T(K)),r=n.__importDefault(cr()),i=n.__importDefault(ur()),a=n.__importDefault(Hn()),o=n.__importStar(J());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`))}C(s,`default_1`),e.default=s,(0,o.maybeSetModuleExports)(function(){return t})}}),fr=O({"../../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=(q(),T(K)),r=n.__importDefault(cr()),i=n.__importDefault(Hn()),a=n.__importStar(J());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`)}C(o,`default_1`),e.default=o,(0,a.maybeSetModuleExports)(function(){return t})}}),pr=O({"../../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=(q(),T(K)),r=n.__importDefault(cr()),i=n.__importDefault(Hn()),a=n.__importStar(J());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},C(function(){var e=l.getFieldValue(this,`value`);return{rawValue:e,raw:t?t(e):String(e)}},`getDefault`)]}C(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()}C(o,`default_1`),e.default=o,(0,a.maybeSetModuleExports)(function(){return t})}}),mr=O({"../../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=(q(),T(K)),r=n.__importDefault(Hn()),i=n.__importDefault(pr()),a=n.__importDefault(dr()),o=J();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()}C(s,`default_1`),e.default=s,(0,o.maybeSetModuleExports)(function(){return t})}}),hr=O({"../../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=(q(),T(K)),r=n.__importDefault(pr()),i=n.__importDefault(ur()),a=n.__importDefault(Hn()),o=n.__importStar(J());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`),C(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)])}C(s,`default_1`),e.default=s,(0,o.maybeSetModuleExports)(function(){return t})}}),gr=O({"../../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||={}}}),_r=O({"../../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=(q(),T(K)),n=t.__importDefault(Jn()),r=t.__importDefault(cr()),i=t.__importDefault(lr()),a=t.__importDefault(dr()),o=t.__importDefault(fr()),s=t.__importDefault(mr()),c=t.__importDefault(hr()),l=gr();Object.defineProperty(e,`namedTypes`,{enumerable:!0,get:C(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,x=u.namedTypes,S=u.NodePath,w=u.Path,E=u.PathVisitor,D=u.someField,O=u.Type,ee=u.use,te=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=S,e.Path=w,e.PathVisitor=E,e.someField=D,e.Type=O,e.use=ee,e.visit=te,Object.assign(l.namedTypes,x)}}),vr=O({"../../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)}C(r,`invariant`),t.exports=r}}),yr=O({"../../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}}}),br=O({"../../node_modules/.pnpm/source-map@0.6.1/node_modules/source-map/lib/base64-vlq.js"(e){var t=yr(),n=5,r=1<<n,i=r-1,a=r;function o(e){return e<0?(-e<<1)+1:(e<<1)+0}C(o,`toVLQSigned`);function s(e){var t=(e&1)==1,n=e>>1;return t?-n:n}C(s,`fromVLQSigned`),e.encode=C(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=C(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`)}}),xr=O({"../../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.`)}C(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}C(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}C(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}C(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}C(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)}C(c,`relative`),e.relative=c;var l=function(){return!(`__proto__`in Object.create(null))}();function u(e){return e}C(u,`identity`);function d(e){return p(e)?`$`+e:e}C(d,`toSetString`),e.toSetString=l?u:d;function f(e){return p(e)?e.slice(1):e}C(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}C(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)}C(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)}C(h,`compareByGeneratedPositionsDeflated`),e.compareByGeneratedPositionsDeflated=h;function g(e,t){return e===t?0:e===null?1:t===null?-1:e>t?1:-1}C(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)}C(_,`compareByGeneratedPositionsInflated`),e.compareByGeneratedPositionsInflated=_;function v(e){return JSON.parse(e.replace(/^\)]}'[^\n]*\n/,``))}C(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)}C(y,`computeSourceURL`),e.computeSourceURL=y}}),Sr=O({"../../node_modules/.pnpm/source-map@0.6.1/node_modules/source-map/lib/array-set.js"(e){var t=xr(),n=Object.prototype.hasOwnProperty,r=typeof Map<`u`;function i(){this._array=[],this._set=r?new Map:Object.create(null)}C(i,`ArraySet`),i.fromArray=C(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=C(function(){return r?this._set.size:Object.getOwnPropertyNames(this._set).length},`ArraySet_size`),i.prototype.add=C(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=C(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=C(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=C(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=C(function(){return this._array.slice()},`ArraySet_toArray`),e.ArraySet=i}}),Cr=O({"../../node_modules/.pnpm/source-map@0.6.1/node_modules/source-map/lib/mapping-list.js"(e){var t=xr();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}C(n,`generatedPositionAfter`);function r(){this._array=[],this._sorted=!0,this._last={generatedLine:-1,generatedColumn:0}}C(r,`MappingList`),r.prototype.unsortedForEach=C(function(e,t){this._array.forEach(e,t)},`MappingList_forEach`),r.prototype.add=C(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=C(function(){return this._sorted||=(this._array.sort(t.compareByGeneratedPositionsInflated),!0),this._array},`MappingList_toArray`),e.MappingList=r}}),wr=O({"../../node_modules/.pnpm/source-map@0.6.1/node_modules/source-map/lib/source-map-generator.js"(e){var t=br(),n=xr(),r=Sr().ArraySet,i=Cr().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}C(a,`SourceMapGenerator`),a.prototype._version=3,a.fromSourceMap=C(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=C(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=C(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=C(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=C(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=C(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=C(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=C(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=C(function(){return JSON.stringify(this.toJSON())},`SourceMapGenerator_toString`),e.SourceMapGenerator=a}}),Tr=O({"../../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}C(t,`recursiveSearch`),e.search=C(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`)}}),Er=O({"../../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}C(t,`swap`);function n(e,t){return Math.round(e+Math.random()*(t-e))}C(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)}}C(r,`doQuickSort`),e.quickSort=function(e,t){r(e,t,0,e.length-1)}}}),Dr=O({"../../node_modules/.pnpm/source-map@0.6.1/node_modules/source-map/lib/source-map-consumer.js"(e){var t=xr(),n=Tr(),r=Sr().ArraySet,i=br(),a=Er().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)}C(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:C(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:C(function(){return this.__originalMappings||this._parseMappings(this._mappings,this.sourceRoot),this.__originalMappings},`get`)}),o.prototype._charIsMappingSeparator=C(function(e,t){var n=e.charAt(t);return n===`;`||n===`,`},`SourceMapConsumer_charIsMappingSeparator`),o.prototype._parseMappings=C(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=C(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=C(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}C(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=C(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:C(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}C(c,`Mapping`),s.prototype._parseMappings=C(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=C(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=C(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=C(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=C(function(){return this.sourcesContent?this.sourcesContent.length>=this._sources.size()&&!this.sourcesContent.some(function(e){return e==null}):!1},`BasicSourceMapConsumer_hasContentsOfAllSources`),s.prototype.sourceContentFor=C(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=C(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)}})}C(l,`IndexedSourceMapConsumer`),l.prototype=Object.create(o.prototype),l.prototype.constructor=o,l.prototype._version=3,Object.defineProperty(l.prototype,`sources`,{get:C(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=C(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=C(function(){return this._sections.every(function(e){return e.consumer.hasContentsOfAllSources()})},`IndexedSourceMapConsumer_hasContentsOfAllSources`),l.prototype.sourceContentFor=C(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=C(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=C(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}}),Or=O({"../../node_modules/.pnpm/source-map@0.6.1/node_modules/source-map/lib/source-node.js"(e){var t=wr().SourceMapGenerator,n=xr(),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)}C(o,`SourceNode`),o.fromStringWithSourceMap=C(function(e,t,i){var a=new o,s=e.split(r),c=0,l=C(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=C(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=C(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=C(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=C(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=C(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=C(function(e,t){this.sourceContents[n.toSetString(e)]=t},`SourceNode_setSourceContent`),o.prototype.walkSourceContents=C(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=C(function(){var e=``;return this.walk(function(t){e+=t}),e},`SourceNode_toString`),o.prototype.toStringWithSourceMap=C(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}}),kr=O({"../../node_modules/.pnpm/source-map@0.6.1/node_modules/source-map/source-map.js"(e){e.SourceMapGenerator=wr().SourceMapGenerator,e.SourceMapConsumer=Dr().SourceMapConsumer,e.SourceNode=Or().SourceNode}}),Ar=O({"../../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=(q(),T(K)),n=t.__importDefault(vr()),r=t.__importStar(_r()).namedTypes,i=t.__importDefault(kr()),a=i.default.SourceMapConsumer,o=i.default.SourceMapGenerator,s=Object.prototype.hasOwnProperty;function c(){return l()?`
13
- `:S(`os`).EOL||`
14
- `}C(c,`getLineTerminator`),e.getLineTerminator=c;function l(){return typeof window<`u`&&window.document!==void 0}C(l,`isBrowser`),e.isBrowser=l;function u(e,t,n){return e&&s.call(e,t)?e[t]:n}C(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}C(d,`getUnionOfKeys`),e.getUnionOfKeys=d;function f(e,t){return e.line-t.line||e.column-t.column}C(f,`comparePos`),e.comparePos=f;function p(e){return{line:e.line,column:e.column}}C(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()}C(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 C(r,`include`),e.declaration&&e.declaration.decorators&&b(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}C(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))}C(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&&b(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))}}C(_,`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}C(n,`fix`),n(e.init),n(e.test),n(e.update)}C(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)}})}}C(y,`fixTemplateLiteral`);function b(e){if(e)switch(e.type){case`ExportDeclaration`:case`ExportDefaultDeclaration`:case`ExportDefaultSpecifier`:case`DeclareExportDeclaration`:case`ExportNamedDeclaration`:case`ExportAllDeclaration`:return!0}return!1}C(b,`isExportDeclaration`),e.isExportDeclaration=b;function x(e){var t=e.getParentNode();return e.getName()===`declaration`&&b(t)?t:null}C(x,`getParentExportDeclaration`),e.getParentExportDeclaration=x;function w(e,t){var n=e.trailingComma;return typeof n==`object`?!!n[t]:!!n}C(w,`isTrailingCommaEnabled`),e.isTrailingCommaEnabled=w}}),jr=O({"../../node_modules/.pnpm/esprima@4.0.1/node_modules/esprima/dist/esprima.js"(e,t){C(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 C(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=C(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}C(s,`parse`),t.parse=s;function c(e,t,n){var r=t||{};return r.sourceType=`module`,s(e,r,n)}C(c,`parseModule`),t.parseModule=c;function l(e,t,n){var r=t||{};return r.sourceType=`script`,s(e,r,n)}C(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}C(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 C(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}C(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}C(d,`getQualifiedElementName`),t.JSXParser=function(e){r(t,e);function t(t,n,r){return e.call(this,t,n,r)||this}return C(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]===`
15
- `&&++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:C(function(e){return e<65536?String.fromCharCode(e):String.fromCharCode(55296+(e-65536>>10))+String.fromCharCode(56320+(e-65536&1023))},`fromCodePoint`),isWhiteSpace:C(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:C(function(e){return e===10||e===13||e===8232||e===8233},`isLineTerminator`),isIdentifierStart:C(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:C(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:C(function(e){return e>=48&&e<=57},`isDecimalDigit`),isHexDigit:C(function(e){return e>=48&&e<=57||e>=65&&e<=70||e>=97&&e<=102},`isHexDigit`),isOctalDigit:C(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 C(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 C(e,`JSXElement`),e}(),t.JSXEmptyExpression=function(){function e(){this.type=r.JSXSyntax.JSXEmptyExpression}return C(e,`JSXEmptyExpression`),e}(),t.JSXExpressionContainer=function(){function e(e){this.type=r.JSXSyntax.JSXExpressionContainer,this.expression=e}return C(e,`JSXExpressionContainer`),e}(),t.JSXIdentifier=function(){function e(e){this.type=r.JSXSyntax.JSXIdentifier,this.name=e}return C(e,`JSXIdentifier`),e}(),t.JSXMemberExpression=function(){function e(e,t){this.type=r.JSXSyntax.JSXMemberExpression,this.object=e,this.property=t}return C(e,`JSXMemberExpression`),e}(),t.JSXAttribute=function(){function e(e,t){this.type=r.JSXSyntax.JSXAttribute,this.name=e,this.value=t}return C(e,`JSXAttribute`),e}(),t.JSXNamespacedName=function(){function e(e,t){this.type=r.JSXSyntax.JSXNamespacedName,this.namespace=e,this.name=t}return C(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 C(e,`JSXOpeningElement`),e}(),t.JSXSpreadAttribute=function(){function e(e){this.type=r.JSXSyntax.JSXSpreadAttribute,this.argument=e}return C(e,`JSXSpreadAttribute`),e}(),t.JSXText=function(){function e(e,t){this.type=r.JSXSyntax.JSXText,this.value=e,this.raw=t}return C(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 C(e,`ArrayExpression`),e}(),t.ArrayPattern=function(){function e(e){this.type=r.Syntax.ArrayPattern,this.elements=e}return C(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 C(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 C(e,`AssignmentExpression`),e}(),t.AssignmentPattern=function(){function e(e,t){this.type=r.Syntax.AssignmentPattern,this.left=e,this.right=t}return C(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 C(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 C(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 C(e,`AsyncFunctionExpression`),e}(),t.AwaitExpression=function(){function e(e){this.type=r.Syntax.AwaitExpression,this.argument=e}return C(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 C(e,`BinaryExpression`),e}(),t.BlockStatement=function(){function e(e){this.type=r.Syntax.BlockStatement,this.body=e}return C(e,`BlockStatement`),e}(),t.BreakStatement=function(){function e(e){this.type=r.Syntax.BreakStatement,this.label=e}return C(e,`BreakStatement`),e}(),t.CallExpression=function(){function e(e,t){this.type=r.Syntax.CallExpression,this.callee=e,this.arguments=t}return C(e,`CallExpression`),e}(),t.CatchClause=function(){function e(e,t){this.type=r.Syntax.CatchClause,this.param=e,this.body=t}return C(e,`CatchClause`),e}(),t.ClassBody=function(){function e(e){this.type=r.Syntax.ClassBody,this.body=e}return C(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 C(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 C(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 C(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 C(e,`ConditionalExpression`),e}(),t.ContinueStatement=function(){function e(e){this.type=r.Syntax.ContinueStatement,this.label=e}return C(e,`ContinueStatement`),e}(),t.DebuggerStatement=function(){function e(){this.type=r.Syntax.DebuggerStatement}return C(e,`DebuggerStatement`),e}(),t.Directive=function(){function e(e,t){this.type=r.Syntax.ExpressionStatement,this.expression=e,this.directive=t}return C(e,`Directive`),e}(),t.DoWhileStatement=function(){function e(e,t){this.type=r.Syntax.DoWhileStatement,this.body=e,this.test=t}return C(e,`DoWhileStatement`),e}(),t.EmptyStatement=function(){function e(){this.type=r.Syntax.EmptyStatement}return C(e,`EmptyStatement`),e}(),t.ExportAllDeclaration=function(){function e(e){this.type=r.Syntax.ExportAllDeclaration,this.source=e}return C(e,`ExportAllDeclaration`),e}(),t.ExportDefaultDeclaration=function(){function e(e){this.type=r.Syntax.ExportDefaultDeclaration,this.declaration=e}return C(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 C(e,`ExportNamedDeclaration`),e}(),t.ExportSpecifier=function(){function e(e,t){this.type=r.Syntax.ExportSpecifier,this.exported=t,this.local=e}return C(e,`ExportSpecifier`),e}(),t.ExpressionStatement=function(){function e(e){this.type=r.Syntax.ExpressionStatement,this.expression=e}return C(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 C(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 C(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 C(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 C(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 C(e,`FunctionExpression`),e}(),t.Identifier=function(){function e(e){this.type=r.Syntax.Identifier,this.name=e}return C(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 C(e,`IfStatement`),e}(),t.ImportDeclaration=function(){function e(e,t){this.type=r.Syntax.ImportDeclaration,this.specifiers=e,this.source=t}return C(e,`ImportDeclaration`),e}(),t.ImportDefaultSpecifier=function(){function e(e){this.type=r.Syntax.ImportDefaultSpecifier,this.local=e}return C(e,`ImportDefaultSpecifier`),e}(),t.ImportNamespaceSpecifier=function(){function e(e){this.type=r.Syntax.ImportNamespaceSpecifier,this.local=e}return C(e,`ImportNamespaceSpecifier`),e}(),t.ImportSpecifier=function(){function e(e,t){this.type=r.Syntax.ImportSpecifier,this.local=e,this.imported=t}return C(e,`ImportSpecifier`),e}(),t.LabeledStatement=function(){function e(e,t){this.type=r.Syntax.LabeledStatement,this.label=e,this.body=t}return C(e,`LabeledStatement`),e}(),t.Literal=function(){function e(e,t){this.type=r.Syntax.Literal,this.value=e,this.raw=t}return C(e,`Literal`),e}(),t.MetaProperty=function(){function e(e,t){this.type=r.Syntax.MetaProperty,this.meta=e,this.property=t}return C(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 C(e,`MethodDefinition`),e}(),t.Module=function(){function e(e){this.type=r.Syntax.Program,this.body=e,this.sourceType=`module`}return C(e,`Module`),e}(),t.NewExpression=function(){function e(e,t){this.type=r.Syntax.NewExpression,this.callee=e,this.arguments=t}return C(e,`NewExpression`),e}(),t.ObjectExpression=function(){function e(e){this.type=r.Syntax.ObjectExpression,this.properties=e}return C(e,`ObjectExpression`),e}(),t.ObjectPattern=function(){function e(e){this.type=r.Syntax.ObjectPattern,this.properties=e}return C(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 C(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 C(e,`RegexLiteral`),e}(),t.RestElement=function(){function e(e){this.type=r.Syntax.RestElement,this.argument=e}return C(e,`RestElement`),e}(),t.ReturnStatement=function(){function e(e){this.type=r.Syntax.ReturnStatement,this.argument=e}return C(e,`ReturnStatement`),e}(),t.Script=function(){function e(e){this.type=r.Syntax.Program,this.body=e,this.sourceType=`script`}return C(e,`Script`),e}(),t.SequenceExpression=function(){function e(e){this.type=r.Syntax.SequenceExpression,this.expressions=e}return C(e,`SequenceExpression`),e}(),t.SpreadElement=function(){function e(e){this.type=r.Syntax.SpreadElement,this.argument=e}return C(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 C(e,`StaticMemberExpression`),e}(),t.Super=function(){function e(){this.type=r.Syntax.Super}return C(e,`Super`),e}(),t.SwitchCase=function(){function e(e,t){this.type=r.Syntax.SwitchCase,this.test=e,this.consequent=t}return C(e,`SwitchCase`),e}(),t.SwitchStatement=function(){function e(e,t){this.type=r.Syntax.SwitchStatement,this.discriminant=e,this.cases=t}return C(e,`SwitchStatement`),e}(),t.TaggedTemplateExpression=function(){function e(e,t){this.type=r.Syntax.TaggedTemplateExpression,this.tag=e,this.quasi=t}return C(e,`TaggedTemplateExpression`),e}(),t.TemplateElement=function(){function e(e,t){this.type=r.Syntax.TemplateElement,this.value=e,this.tail=t}return C(e,`TemplateElement`),e}(),t.TemplateLiteral=function(){function e(e,t){this.type=r.Syntax.TemplateLiteral,this.quasis=e,this.expressions=t}return C(e,`TemplateLiteral`),e}(),t.ThisExpression=function(){function e(){this.type=r.Syntax.ThisExpression}return C(e,`ThisExpression`),e}(),t.ThrowStatement=function(){function e(e){this.type=r.Syntax.ThrowStatement,this.argument=e}return C(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 C(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 C(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 C(e,`UpdateExpression`),e}(),t.VariableDeclaration=function(){function e(e,t){this.type=r.Syntax.VariableDeclaration,this.declarations=e,this.kind=t}return C(e,`VariableDeclaration`),e}(),t.VariableDeclarator=function(){function e(e,t){this.type=r.Syntax.VariableDeclarator,this.id=e,this.init=t}return C(e,`VariableDeclarator`),e}(),t.WhileStatement=function(){function e(e,t){this.type=r.Syntax.WhileStatement,this.test=e,this.body=t}return C(e,`WhileStatement`),e}(),t.WithStatement=function(){function e(e,t){this.type=r.Syntax.WithStatement,this.object=e,this.body=t}return C(e,`WithStatement`),e}(),t.YieldExpression=function(){function e(e,t){this.type=r.Syntax.YieldExpression,this.argument=e,this.delegate=t}return C(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 C(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)}C(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 C(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())}C(o,`hexValue`);function s(e){return`01234567`.indexOf(e)}C(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 C(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+=`
16
- `;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]===`
17
- `&&++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]===`
18
- `&&++this.index,this.lineStart=this.index;else switch(c){case`n`:e+=`
19
- `;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]===`
20
- `&&++this.index,this.lineStart=this.index,e+=`
21
- `):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 C(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 C(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}()}])})}}),Mr=O({"../../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=Ar();function n(e,n){var r=[],i=jr().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}C(n,`parse`),e.parse=n}}),Nr=O({"../../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=Ar(),n={parser:Mr(),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 C(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`)}}C(i,`normalize`),e.normalize=i}}),Pr=O({"../../node_modules/.pnpm/recast@0.23.11/node_modules/recast/lib/mapping.js"(e){Object.defineProperty(e,`__esModule`,{value:!0});var t=(q(),T(K)).__importDefault(vr()),n=Ar();e.default=function(){function e(e,t,n){n===void 0&&(n=t),this.sourceLines=e,this.sourceLoc=t,this.targetLoc=n}return C(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(C(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}}C(r,`addPos`);function i(e,t,n){return{line:e.line-t+1,column:e.line===t?e.column-n:e.column}}C(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}C(a,`skipChars`)}}),Fr=O({"../../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=(q(),T(K)),n=t.__importDefault(vr()),r=t.__importDefault(kr()),i=Nr(),a=Ar(),o=t.__importDefault(Pr()),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 C(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(C(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?`
22
- `: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?`
23
- `: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(`
24
- `))},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))})}}C(s,`appendLines`);function c(e,t){t>0&&s(r),s(e)}if(C(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}C(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
25
- `+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}C(m,`fromString`),e.fromString=m;function h(e){return!/\S/.test(e)}C(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}}C(g,`sliceInfo`);function _(e){return v.join(e)}C(_,`concat`),e.concat=_;var v=m(``)}}),Ir=O({"../../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=(q(),T(K)),n=t.__importDefault(vr()),r=t.__importStar(_r()),i=r.namedTypes,a=r.builtInTypes.array,o=r.builtInTypes.object,s=Fr(),c=Ar(),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}C(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)}C(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})}}C(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}}C(p,`breakTies`);function m(e,t){(e.comments||=[]).push(t)}C(m,`addCommentHelper`);function h(e,t){t.leading=!0,t.trailing=!1,m(e,t)}C(h,`addLeadingComment`);function g(e,t){t.leading=!1,t.trailing=!1,m(e,t)}C(g,`addDanglingComment`);function _(e,t){t.leading=!1,t.trailing=!0,m(e,t)}C(_,`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(`
26
- `);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(`
27
- `))}else o.push(`
28
- `);return(0,s.concat)(o)}C(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(`
29
- `))}return o.push(t(e)),(0,s.concat)(o)}C(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)}C(b,`printComments`),e.printComments=b}}),Lr=O({"../../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=(q(),T(K)),n=t.__importDefault(vr()),r=t.__importStar(_r()),i=r.builders,a=r.builtInTypes.object,o=r.builtInTypes.array,s=Nr(),c=Fr(),l=Ir(),u=t.__importStar(Ar());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:jr().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)}C(d,`parse`),e.parse=d;var f=C(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}}}),Rr=O({"../../node_modules/.pnpm/recast@0.23.11/node_modules/recast/lib/fast-path.js"(e){Object.defineProperty(e,`__esModule`,{value:!0});var t=(q(),T(K)),n=t.__importDefault(vr()),r=t.__importStar(_r()),i=t.__importStar(Ar()),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=C(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=C(function(){var e=Object.create(l.prototype);return e.stack=this.stack.slice(0),e},`copy`),u.getName=C(function(){var e=this.stack,t=e.length;return t>1?e[t-2]:null},`getName`),u.getValue=C(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}C(d,`getNodeHelper`),u.getNode=C(function(e){return e===void 0&&(e=0),d(this,~~e)},`getNode`),u.getParentNode=C(function(e){return e===void 0&&(e=0),d(this,~~e+1)},`getParentNode`),u.getRootValue=C(function(){var e=this.stack;return e.length%2==0?e[1]:e[0]},`getRootValue`),u.call=C(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=C(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=C(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)}C(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}C(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}}),zr=O({"../../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=(q(),T(K)),n=t.__importDefault(vr()),r=t.__importStar(Fr()),i=t.__importStar(_r()),a=i.namedTypes.Printable,o=i.namedTypes.Expression,s=i.namedTypes.ReturnStatement,c=i.namedTypes.SourceLocation,l=Ar(),u=t.__importDefault(Rr()),d=i.builtInTypes.object,f=i.builtInTypes.array,p=i.builtInTypes.string,m=/[0-9a-z_$]/i,h=C(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 C(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=w(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}C(_,`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||!x(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}}}C(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)}C(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)}C(b,`needsTrailingSpace`);function x(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}C(x,`findReprints`);function S(e,t,n){var r=e.getValue();return r===t.getValue()?!0:f.check(r)?w(e,t,n):d.check(r)?E(e,t,n):!1}C(S,`findAnyReprints`);function w(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=S(e,t,n);if(e.stack.length-=2,t.stack.length-=2,!s)return!1}return!0}C(w,`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)}C(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=S(e,t,n);if(e.stack.length-=2,t.stack.length-=2,!f)return!1}return!(s.check(e.getNode())&&n.length>c)}C(D,`findChildReprints`)}}),Br=O({"../../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=(q(),T(K)),n=t.__importDefault(vr()),r=t.__importStar(_r()),i=Ir(),a=t.__importDefault(Rr()),o=Fr(),s=Nr(),c=zr(),l=t.__importStar(Ar()),u=r.namedTypes,d=r.builtInTypes.string,f=r.builtInTypes.object,p=C(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=C(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)}}C(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}C(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)})}C(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)}C(_,`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),`;
30
- `)},`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 w(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 {
31
- `,e.call(a,`body`).indent(i.tabWidth),`
32
- }`]);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`)),oe((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)(`,
33
- `).join(m).indent(i.tabWidth),`,`])),p.length>0&&c.push(`, `),h.length>1?c.push(`{
34
- `,h,`
35
- }`):i.objectCurlySpacing?c.push(`{ `,h,` }`):c.push(`{`,h,`}`)}c.push(` from `)}return c.push(e.call(a,`source`),O(e,i,a),`;`),(0,o.concat)(c);case`ImportAttribute`:return(0,o.concat)([e.call(a,`key`),`: `,e.call(a,`value`)]);case`StaticBlock`:c.push(`static `);case`BlockStatement`:var g=e.call(function(e){return b(e,i,a)},`body`);return g.isEmpty()&&(!s.directives||s.directives.length===0)?(c.push(`{}`),(0,o.concat)(c)):(c.push(`{
36
- `),s.directives&&e.each(function(e){c.push(oe(a(e).indent(i.tabWidth)),s.directives.length>1||!g.isEmpty()?`
37
- `:``)},`directives`),c.push(g.indent(i.tabWidth)),c.push(`
38
- }`),(0,o.concat)(c));case`ReturnStatement`:if(c.push(`return`),s.argument){var _=u.JSXElement?.check(s.argument)||u.JSXFragment?.check(s.argument),v=e.call(a,`argument`);v.startsWithComment()||v.length>1&&_?(_&&s.argument.extra?.parenthesized&&(s.argument.extra.parenthesized=!1,v=e.call(a,`argument`),s.argument.extra.parenthesized=!0),c.push(` `,(0,o.concat)([`(
39
- `,v]).indentTail(i.tabWidth),`
40
- )`)):c.push(` `,v)}return c.push(`;`),(0,o.concat)(c);case`CallExpression`:case`OptionalCallExpression`:return c.push(e.call(a,`callee`)),s.typeParameters&&c.push(e.call(a,`typeParameters`)),s.typeArguments&&c.push(e.call(a,`typeArguments`)),r.getFieldValue(s,`optional`)&&c.push(`?.`),c.push(E(e,i,a)),(0,o.concat)(c);case`RecordExpression`:c.push(`#`);case`ObjectExpression`:case`ObjectPattern`:case`ObjectTypeAnnotation`:var y=s.type===`ObjectTypeAnnotation`,x=i.flowObjectCommas?`,`:y?`;`:`,`,C=[],T=!1;y&&(C.push(`indexers`,`callProperties`),s.internalSlots!=null&&C.push(`internalSlots`)),C.push(`properties`);var ie=0;C.forEach(function(e){ie+=s[e].length});var M=y&&ie===1||ie===0,se=s.exact?`{|`:`{`,ce=s.exact?`|}`:`}`;c.push(M?se:se+`
41
- `);var N=c.length-1,P=0;if(C.forEach(function(t){e.each(function(e){var t=a(e);M||(t=t.indent(i.tabWidth));var n=!y&&t.length>1;n&&T&&c.push(`
42
- `),c.push(t),P<ie-1?(c.push(x+(n?`
43
-
44
- `:`
45
- `)),T=!n):(ie!==1&&y||!M&&l.isTrailingCommaEnabled(i,`objects`)&&e.getValue().type!==`RestElement`)&&c.push(x),P++},t)}),s.inexact){var le=(0,o.fromString)(`...`,i);M?(ie>0&&c.push(x,` `),c.push(le)):c.push(`
46
- `,le.indent(i.tabWidth))}return c.push(M?ce:`
47
- `+ce),P!==0&&M&&i.objectCurlySpacing&&(c[N]=se+` `,c[c.length-1]=` `+ce),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 w(e,i,a);if(s.shorthand&&s.value.type===`AssignmentPattern`)return e.call(a,`value`);var F=e.call(a,`key`);return s.computed?c.push(`[`,F,`]`):c.push(F),(!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 w(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 ue=s.elements.length,de=e.map(a,`elements`),fe=(0,o.fromString)(`, `).join(de),pe=fe.getLineLength(1)<=i.wrapColumn;return pe?i.arrayBracketSpacing?c.push(`[ `):c.push(`[`):c.push(`[
48
- `),e.each(function(e){var t=e.getName();if(!e.getValue())c.push(`,`);else{var n=de[t];pe?t>0&&c.push(` `):n=n.indent(i.tabWidth),c.push(n),(t<ue-1||!pe&&l.isTrailingCommaEnabled(i,`arrays`))&&c.push(`,`),pe||c.push(`
49
- `)}},`elements`),pe&&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)(j(s)||`/${s.pattern}/${s.flags||``}`,i);case`BigIntLiteral`:return(0,o.fromString)(j(s)||s.value+`n`,i);case`NumericLiteral`:return(0,o.fromString)(j(s)||s.value,i);case`DecimalLiteral`:return(0,o.fromString)(j(s)||s.value+`m`,i);case`StringLiteral`:return(0,o.fromString)(ae(s.value,i));case`BooleanLiteral`:case`Literal`:return(0,o.fromString)(j(s)||(typeof s.value==`string`?ae(s.value,i):s.value),i);case`Directive`:return e.call(a,`value`);case`DirectiveLiteral`:return(0,o.fromString)(j(s)||ae(s.value,i),i);case`InterpreterDirective`:return(0,o.fromString)(`#!${s.value}
50
- `,i);case`ModuleSpecifier`:if(s.local)throw Error(`The ESTree ModuleSpecifier type should be abstract`);return(0,o.fromString)(ae(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 me=0,he=e.map(function(e){var t=a(e);return me=Math.max(t.length,me),t},`declarations`);me===1?c.push((0,o.fromString)(`, `).join(he)):he.length>1?c.push((0,o.fromString)(`,
51
- `).join(he).indentTail(s.kind.length+1)):c.push(he[0]);var ge=e.getParentNode();return!u.ForStatement.check(ge)&&!u.ForInStatement.check(ge)&&!(u.ForOfStatement&&u.ForOfStatement.check(ge))&&!(u.ForAwaitStatement&&u.ForAwaitStatement.check(ge))&&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 _e=re(e.call(a,`consequent`),i);return c.push(`if (`,e.call(a,`test`),`)`,_e),s.alternate&&c.push(A(_e)?` else`:`
52
- else`,re(e.call(a,`alternate`),i)),(0,o.concat)(c);case`ForStatement`:var I=e.call(a,`init`),ve=I.length>1?`;
53
- `:`; `,ye=`for (`,be=(0,o.fromString)(ve).join([I,e.call(a,`test`),e.call(a,`update`)]).indentTail(ye.length),xe=(0,o.concat)([ye,be,`)`]),Se=re(e.call(a,`body`),i);return c.push(xe),xe.length>1&&(c.push(`
54
- `),Se=Se.trimLeft()),c.push(Se),(0,o.concat)(c);case`WhileStatement`:return(0,o.concat)([`while (`,e.call(a,`test`),`)`,re(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`),`)`,re(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`),`)`,re(e.call(a,`body`),i)),(0,o.concat)(c);case`DoWhileStatement`:var L=(0,o.concat)([`do`,re(e.call(a,`body`),i)]);return c.push(L),A(L)?c.push(` while`):c.push(`
55
- while`),c.push(` (`,e.call(a,`test`),`);`),(0,o.concat)(c);case`DoExpression`:var R=e.call(function(e){return b(e,i,a)},`body`);return(0,o.concat)([`do {
56
- `,R.indent(i.tabWidth),`
57
- }`]);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`),`:
58
- `,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`),`) {
59
- `,(0,o.fromString)(`
60
- `).join(e.map(a,`cases`)),`
61
- }`]);case`SwitchCase`:return s.test?c.push(`case `,e.call(a,`test`),`:`):c.push(`default:`),s.consequent.length>0&&c.push(`
62
- `,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 Ce=`opening`+(s.type===`JSXElement`?`Element`:`Fragment`),z=`closing`+(s.type===`JSXElement`?`Element`:`Fragment`),we=e.call(a,Ce);if(s[Ce].selfClosing)return(0,n.default)(!s[z],`unexpected `+z+` element in self-closing `+s.type),we;var Te=(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`
63
- `}return a(e)},`children`)).indentTail(i.tabWidth),Ee=e.call(a,z);return(0,o.concat)([we,Te,Ee]);case`JSXOpeningElement`:c.push(`<`,e.call(a,`name`));var De=e.call(a,`typeParameters`);De.length&&c.push(De);var Oe=[];e.each(function(e){Oe.push(` `,a(e))},`attributes`);var B=(0,o.concat)(Oe);return(B.length>1||B.getLineLength(1)>i.wrapColumn)&&(Oe.forEach(function(e,t){e===` `&&((0,n.default)(t%2==0),Oe[t]=`
64
- `)}),B=(0,o.concat)(Oe).indentTail(i.tabWidth)),c.push(B,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)([`{
65
- `,e.call(function(e){return b(e,i,a)},`body`).indent(i.tabWidth),`
66
- }`]);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 ke=s.accessibility||s.access;typeof ke==`string`&&c.push(ke,` `),s.static&&c.push(`static `),s.abstract&&c.push(`abstract `),s.readonly&&c.push(`readonly `);var F=e.call(a,`key`);return s.computed&&(F=(0,o.concat)([`[`,F,`]`])),s.variance&&(F=(0,o.concat)([ne(e,a),F])),c.push(F),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([],S(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`?te(e,c):(0,o.concat)(c);case`TemplateElement`:return(0,o.fromString)(s.value.raw,i).lockIndentTail();case`TemplateLiteral`:var Ae=e.map(a,`expressions`);return c.push("`"),e.each(function(e){var t=e.getName();c.push(a(e)),t<Ae.length&&c.push("${",Ae[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 je=e.map(a,`types`),fe=(0,o.fromString)(`, `).join(je),Me=fe.getLineLength(1)<=i.wrapColumn;return Me?i.arrayBracketSpacing?c.push(`[ `):c.push(`[`):c.push(`[
67
- `),e.each(function(e){var t=e.getName();if(!e.getValue())c.push(`,`);else{var n=je[t];Me?t>0&&c.push(` `):n=n.indent(i.tabWidth),c.push(n),(t<s.types.length-1||!Me&&l.isTrailingCommaEnabled(i,`arrays`))&&c.push(`,`),Me||c.push(`
68
- `)}},`types`),Me&&i.arrayBracketSpacing?c.push(` ]`):c.push(`]`),(0,o.concat)(c);case`BooleanTypeAnnotation`:return(0,o.fromString)(`boolean`,i);case`BooleanLiteralTypeAnnotation`:return(0,n.default)(typeof s.value==`boolean`),(0,o.fromString)(``+s.value,i);case`InterfaceTypeAnnotation`:return c.push(`interface`),s.extends&&s.extends.length>0&&c.push(` extends `,(0,o.fromString)(`, `).join(e.map(a,`extends`))),c.push(` `,e.call(a,`body`)),(0,o.concat)(c);case`DeclareFunction`:return te(e,[`function `,e.call(a,`id`),`;`]);case`DeclareModule`:return te(e,[`module `,e.call(a,`id`),` `,e.call(a,`body`)]);case`DeclareModuleExports`:return te(e,[`module.exports`,e.call(a,`typeAnnotation`)]);case`DeclareVariable`:return te(e,[`var `,e.call(a,`id`),`;`]);case`DeclareExportDeclaration`:case`DeclareExportAllDeclaration`:return(0,o.concat)([`declare `,ee(e,i,a)]);case`EnumDeclaration`:return(0,o.concat)([`enum `,e.call(a,`id`),e.call(a,`body`)]);case`EnumBooleanBody`:case`EnumNumberBody`:case`EnumStringBody`:case`EnumSymbolBody`:return(s.type===`EnumSymbolBody`||s.explicitType)&&c.push(` of `,s.type.slice(4,-4).toLowerCase()),c.push(` {
69
- `,(0,o.fromString)(`
70
- `).join(e.map(a,`members`)).indent(i.tabWidth),`
71
- }`),(0,o.concat)(c);case`EnumDefaultedMember`:return(0,o.concat)([e.call(a,`id`),`,`]);case`EnumBooleanMember`:case`EnumNumberMember`:case`EnumStringMember`:return(0,o.concat)([e.call(a,`id`),` = `,e.call(a,`init`),`,`]);case`InferredPredicate`:return(0,o.fromString)(`%checks`,i);case`DeclaredPredicate`:return(0,o.concat)([`%checks(`,e.call(a,`value`),`)`]);case`FunctionTypeAnnotation`:var Ne=e.getParentNode(0),Pe=!(u.ObjectTypeCallProperty.check(Ne)||u.ObjectTypeInternalSlot.check(Ne)&&Ne.method||u.DeclareFunction.check(e.getParentNode(2)));Pe&&!u.FunctionTypeParam.check(Ne)&&!u.TypeAlias.check(Ne)&&c.push(`: `);var Fe=!!s.typeParameters,Ie=Fe||s.params.length!==1||s.params[0].name;return c.push(Fe?e.call(a,`typeParameters`):``,Ie?`(`:``,D(e,i,a),Ie?`)`:``),s.returnType&&c.push(Pe?` => `:`: `,e.call(a,`returnType`)),(0,o.concat)(c);case`FunctionTypeParam`:var Le=e.call(a,`name`);return c.push(Le),s.optional&&c.push(`?`),Le.infos[0].line&&c.push(`: `),c.push(e.call(a,`typeAnnotation`)),(0,o.concat)(c);case`GenericTypeAnnotation`:return(0,o.concat)([e.call(a,`id`),e.call(a,`typeParameters`)]);case`DeclareInterface`:c.push(`declare `);case`InterfaceDeclaration`:case`TSInterfaceDeclaration`:return s.declare&&c.push(`declare `),c.push(`interface `,e.call(a,`id`),e.call(a,`typeParameters`),` `),s.extends&&s.extends.length>0&&c.push(`extends `,(0,o.fromString)(`, `).join(e.map(a,`extends`)),` `),s.body&&c.push(e.call(a,`body`)),(0,o.concat)(c);case`ClassImplements`:case`InterfaceExtends`:return(0,o.concat)([e.call(a,`id`),e.call(a,`typeParameters`)]);case`IntersectionTypeAnnotation`:return(0,o.fromString)(` & `).join(e.map(a,`types`));case`NullableTypeAnnotation`:return(0,o.concat)([`?`,e.call(a,`typeAnnotation`)]);case`NullLiteralTypeAnnotation`:return(0,o.fromString)(`null`,i);case`ThisTypeAnnotation`:return(0,o.fromString)(`this`,i);case`NumberTypeAnnotation`:return(0,o.fromString)(`number`,i);case`ObjectTypeCallProperty`:return e.call(a,`value`);case`ObjectTypeIndexer`:return s.static&&c.push(`static `),c.push(ne(e,a),`[`),s.id&&c.push(e.call(a,`id`),`: `),c.push(e.call(a,`key`),`]: `,e.call(a,`value`)),(0,o.concat)(c);case`ObjectTypeProperty`:return(0,o.concat)([ne(e,a),e.call(a,`key`),s.optional?`?`:``,`: `,e.call(a,`value`)]);case`ObjectTypeInternalSlot`:return(0,o.concat)([s.static?`static `:``,`[[`,e.call(a,`id`),`]]`,s.optional?`?`:``,s.value.type===`FunctionTypeAnnotation`?``:`: `,e.call(a,`value`)]);case`QualifiedTypeIdentifier`:return(0,o.concat)([e.call(a,`qualification`),`.`,e.call(a,`id`)]);case`StringLiteralTypeAnnotation`:return(0,o.fromString)(ae(s.value,i),i);case`NumberLiteralTypeAnnotation`:case`NumericLiteralTypeAnnotation`:return(0,n.default)(typeof s.value==`number`),(0,o.fromString)(JSON.stringify(s.value),i);case`BigIntLiteralTypeAnnotation`:return(0,o.fromString)(s.raw,i);case`StringTypeAnnotation`:return(0,o.fromString)(`string`,i);case`DeclareTypeAlias`:c.push(`declare `);case`TypeAlias`:return(0,o.concat)([`type `,e.call(a,`id`),e.call(a,`typeParameters`),` = `,e.call(a,`right`),`;`]);case`DeclareOpaqueType`:c.push(`declare `);case`OpaqueType`:return c.push(`opaque type `,e.call(a,`id`),e.call(a,`typeParameters`)),s.supertype&&c.push(`: `,e.call(a,`supertype`)),s.impltype&&c.push(` = `,e.call(a,`impltype`)),c.push(`;`),(0,o.concat)(c);case`TypeCastExpression`:return(0,o.concat)([`(`,e.call(a,`expression`),e.call(a,`typeAnnotation`),`)`]);case`TypeParameterDeclaration`:case`TypeParameterInstantiation`:return(0,o.concat)([`<`,(0,o.fromString)(`, `).join(e.map(a,`params`)),`>`]);case`Variance`:return s.kind===`plus`?(0,o.fromString)(`+`):s.kind===`minus`?(0,o.fromString)(`-`):(0,o.fromString)(``);case`TypeParameter`:return s.variance&&c.push(ne(e,a)),c.push(e.call(a,`name`)),s.bound&&c.push(e.call(a,`bound`)),s.default&&c.push(`=`,e.call(a,`default`)),(0,o.concat)(c);case`TypeofTypeAnnotation`:return(0,o.concat)([(0,o.fromString)(`typeof `,i),e.call(a,`argument`)]);case`IndexedAccessType`:case`OptionalIndexedAccessType`:return(0,o.concat)([e.call(a,`objectType`),s.optional?`?.`:``,`[`,e.call(a,`indexType`),`]`]);case`UnionTypeAnnotation`:return(0,o.fromString)(` | `).join(e.map(a,`types`));case`VoidTypeAnnotation`:return(0,o.fromString)(`void`,i);case`NullTypeAnnotation`:return(0,o.fromString)(`null`,i);case`SymbolTypeAnnotation`:return(0,o.fromString)(`symbol`,i);case`BigIntTypeAnnotation`:return(0,o.fromString)(`bigint`,i);case`TSType`:throw Error(`unprintable type: `+JSON.stringify(s.type));case`TSNumberKeyword`:return(0,o.fromString)(`number`,i);case`TSBigIntKeyword`:return(0,o.fromString)(`bigint`,i);case`TSObjectKeyword`:return(0,o.fromString)(`object`,i);case`TSBooleanKeyword`:return(0,o.fromString)(`boolean`,i);case`TSStringKeyword`:return(0,o.fromString)(`string`,i);case`TSSymbolKeyword`:return(0,o.fromString)(`symbol`,i);case`TSAnyKeyword`:return(0,o.fromString)(`any`,i);case`TSVoidKeyword`:return(0,o.fromString)(`void`,i);case`TSIntrinsicKeyword`:return(0,o.fromString)(`intrinsic`,i);case`TSThisType`:return(0,o.fromString)(`this`,i);case`TSNullKeyword`:return(0,o.fromString)(`null`,i);case`TSUndefinedKeyword`:return(0,o.fromString)(`undefined`,i);case`TSUnknownKeyword`:return(0,o.fromString)(`unknown`,i);case`TSNeverKeyword`:return(0,o.fromString)(`never`,i);case`TSArrayType`:return(0,o.concat)([e.call(a,`elementType`),`[]`]);case`TSLiteralType`:return e.call(a,`literal`);case`TSUnionType`:return(0,o.fromString)(` | `).join(e.map(a,`types`));case`TSIntersectionType`:return(0,o.fromString)(` & `).join(e.map(a,`types`));case`TSConditionalType`:return c.push(e.call(a,`checkType`),` extends `,e.call(a,`extendsType`),` ? `,e.call(a,`trueType`),` : `,e.call(a,`falseType`)),(0,o.concat)(c);case`TSInferType`:return c.push(`infer `,e.call(a,`typeParameter`)),(0,o.concat)(c);case`TSParenthesizedType`:return(0,o.concat)([`(`,e.call(a,`typeAnnotation`),`)`]);case`TSFunctionType`:return(0,o.concat)([e.call(a,`typeParameters`),`(`,D(e,i,a),`) => `,e.call(a,`typeAnnotation`,`typeAnnotation`)]);case`TSConstructorType`:return(0,o.concat)([`new `,e.call(a,`typeParameters`),`(`,D(e,i,a),`) => `,e.call(a,`typeAnnotation`,`typeAnnotation`)]);case`TSMappedType`:return c.push(s.readonly?`readonly `:``,`[`,e.call(a,`typeParameter`),`]`,s.optional?`?`:``),s.typeAnnotation&&c.push(`: `,e.call(a,`typeAnnotation`),`;`),(0,o.concat)([`{
72
- `,(0,o.concat)(c).indent(i.tabWidth),`
73
- }`]);case`TSTupleType`:return(0,o.concat)([`[`,(0,o.fromString)(`, `).join(e.map(a,`elementTypes`)),`]`]);case`TSNamedTupleMember`:return c.push(e.call(a,`label`)),s.optional&&c.push(`?`),c.push(`: `,e.call(a,`elementType`)),(0,o.concat)(c);case`TSRestType`:return(0,o.concat)([`...`,e.call(a,`typeAnnotation`)]);case`TSOptionalType`:return(0,o.concat)([e.call(a,`typeAnnotation`),`?`]);case`TSIndexedAccessType`:return(0,o.concat)([e.call(a,`objectType`),`[`,e.call(a,`indexType`),`]`]);case`TSTypeOperator`:return(0,o.concat)([e.call(a,`operator`),` `,e.call(a,`typeAnnotation`)]);case`TSTypeLiteral`:var Re=(0,o.fromString)(`
74
- `).join(e.map(a,`members`).map(function(e){return k(e)===`;`?e:e.concat(`;`)}));return Re.isEmpty()?(0,o.fromString)(`{}`,i):(c.push(`{
75
- `,Re.indent(i.tabWidth),`
76
- }`),(0,o.concat)(c));case`TSEnumMember`:return c.push(e.call(a,`id`)),s.initializer&&c.push(` = `,e.call(a,`initializer`)),(0,o.concat)(c);case`TSTypeQuery`:return(0,o.concat)([`typeof `,e.call(a,`exprName`)]);case`TSParameterProperty`:return s.accessibility&&c.push(s.accessibility,` `),s.export&&c.push(`export `),s.static&&c.push(`static `),s.readonly&&c.push(`readonly `),c.push(e.call(a,`parameter`)),(0,o.concat)(c);case`TSTypeReference`:return(0,o.concat)([e.call(a,`typeName`),e.call(a,`typeParameters`)]);case`TSQualifiedName`:return(0,o.concat)([e.call(a,`left`),`.`,e.call(a,`right`)]);case`TSAsExpression`:case`TSSatisfiesExpression`:var ze=e.call(a,`expression`);return c.push(ze,s.type===`TSSatisfiesExpression`?` satisfies `:` as `,e.call(a,`typeAnnotation`)),(0,o.concat)(c);case`TSTypeCastExpression`:return(0,o.concat)([e.call(a,`expression`),e.call(a,`typeAnnotation`)]);case`TSNonNullExpression`:return(0,o.concat)([e.call(a,`expression`),`!`]);case`TSTypeAnnotation`:return(0,o.concat)([`: `,e.call(a,`typeAnnotation`)]);case`TSIndexSignature`:return(0,o.concat)([s.readonly?`readonly `:``,`[`,e.map(a,`parameters`),`]`,e.call(a,`typeAnnotation`)]);case`TSPropertySignature`:return c.push(ne(e,a),s.readonly?`readonly `:``),s.computed?c.push(`[`,e.call(a,`key`),`]`):c.push(e.call(a,`key`)),c.push(s.optional?`?`:``,e.call(a,`typeAnnotation`)),(0,o.concat)(c);case`TSMethodSignature`:return s.kind===`get`?c.push(`get `):s.kind===`set`&&c.push(`set `),s.computed?c.push(`[`,e.call(a,`key`),`]`):c.push(e.call(a,`key`)),s.optional&&c.push(`?`),c.push(e.call(a,`typeParameters`),`(`,D(e,i,a),`)`,e.call(a,`typeAnnotation`)),(0,o.concat)(c);case`TSTypePredicate`:return s.asserts&&c.push(`asserts `),c.push(e.call(a,`parameterName`)),s.typeAnnotation&&c.push(` is `,e.call(a,`typeAnnotation`,`typeAnnotation`)),(0,o.concat)(c);case`TSCallSignatureDeclaration`:return(0,o.concat)([e.call(a,`typeParameters`),`(`,D(e,i,a),`)`,e.call(a,`typeAnnotation`)]);case`TSConstructSignatureDeclaration`:return s.typeParameters?c.push(`new`,e.call(a,`typeParameters`)):c.push(`new `),c.push(`(`,D(e,i,a),`)`,e.call(a,`typeAnnotation`)),(0,o.concat)(c);case`TSTypeAliasDeclaration`:return(0,o.concat)([s.declare?`declare `:``,`type `,e.call(a,`id`),e.call(a,`typeParameters`),` = `,e.call(a,`typeAnnotation`),`;`]);case`TSTypeParameter`:c.push(e.call(a,`name`));var Ne=e.getParentNode(0),Be=u.TSMappedType.check(Ne);return s.constraint&&c.push(Be?` in `:` extends `,e.call(a,`constraint`)),s.default&&c.push(` = `,e.call(a,`default`)),(0,o.concat)(c);case`TSTypeAssertion`:return c.push(`<`,e.call(a,`typeAnnotation`),`> `,e.call(a,`expression`)),(0,o.concat)(c);case`TSTypeParameterDeclaration`:case`TSTypeParameterInstantiation`:return(0,o.concat)([`<`,(0,o.fromString)(`, `).join(e.map(a,`params`)),`>`]);case`TSEnumDeclaration`:c.push(s.declare?`declare `:``,s.const?`const `:``,`enum `,e.call(a,`id`));var Ve=(0,o.fromString)(`,
77
- `).join(e.map(a,`members`));return Ve.isEmpty()?c.push(` {}`):c.push(` {
78
- `,Ve.indent(i.tabWidth),`
79
- }`),(0,o.concat)(c);case`TSExpressionWithTypeArguments`:return(0,o.concat)([e.call(a,`expression`),e.call(a,`typeParameters`)]);case`TSInterfaceBody`:var h=(0,o.fromString)(`
80
- `).join(e.map(a,`body`).map(function(e){return k(e)===`;`?e:e.concat(`;`)}));return h.isEmpty()?(0,o.fromString)(`{}`,i):(0,o.concat)([`{
81
- `,h.indent(i.tabWidth),`
82
- }`]);case`TSImportType`:return c.push(`import(`,e.call(a,`argument`),`)`),s.qualifier&&c.push(`.`,e.call(a,`qualifier`)),s.typeParameters&&c.push(e.call(a,`typeParameters`)),(0,o.concat)(c);case`TSImportEqualsDeclaration`:return s.isExport&&c.push(`export `),c.push(`import `,e.call(a,`id`),` = `,e.call(a,`moduleReference`)),oe((0,o.concat)(c));case`TSExternalModuleReference`:return(0,o.concat)([`require(`,e.call(a,`expression`),`)`]);case`TSModuleDeclaration`:var Ne=e.getParentNode();return Ne.type===`TSModuleDeclaration`?c.push(`.`):(s.declare&&c.push(`declare `),s.global||(s.id.type===`StringLiteral`||s.id.type===`Literal`&&typeof s.id.value==`string`||s.loc&&s.loc.lines&&s.id.loc&&s.loc.lines.sliceString(s.loc.start,s.id.loc.start).indexOf(`module`)>=0?c.push(`module `):c.push(`namespace `))),c.push(e.call(a,`id`)),s.body&&(c.push(` `),c.push(e.call(a,`body`))),(0,o.concat)(c);case`TSModuleBlock`:var He=e.call(function(e){return b(e,i,a)},`body`);return He.isEmpty()?c.push(`{}`):c.push(`{
83
- `,He.indent(i.tabWidth),`
84
- }`),(0,o.concat)(c);case`TSInstantiationExpression`:return c.push(e.call(a,`expression`),e.call(a,`typeParameters`)),(0,o.concat)(c);case`V8IntrinsicIdentifier`:return(0,o.concat)([`%`,e.call(a,`name`)]);case`TopicReference`:return(0,o.fromString)(`#`);default:throw Error(`unknown type: `+JSON.stringify(s.type))}}C(v,`genericPrintNoParens`);function y(e,t){var n=[],r=e.getValue();return r.decorators&&r.decorators.length>0&&!l.getParentExportDeclaration(e)?e.each(function(e){n.push(t(e),`
85
- `)},`decorators`):l.isExportDeclaration(r)&&r.declaration&&r.declaration.decorators&&e.each(function(e){n.push(t(e),`
86
- `)},`declaration`,`decorators`),(0,o.concat)(n)}C(y,`printDecorators`);function b(e,t,r){var i=[],a=!1,s=!1;e.each(function(e){var t=e.getValue();t&&(t.type===`EmptyStatement`&&!(t.comments&&t.comments.length>0)||(u.Comment.check(t)?a=!0:u.Statement.check(t)?s=!0:d.assert(t),i.push({node:t,printed:r(e)})))}),a&&(0,n.default)(s===!1,`Comments may appear as statements in otherwise empty statement lists, but may not coexist with non-Comment nodes.`);var c=null,f=i.length,p=[];return i.forEach(function(e,n){var r=e.printed,i=e.node,a=r.length>1,o=n>0,s=n<f-1,u,d,m=i&&i.loc&&i.loc.lines,h=m&&t.reuseWhitespace&&l.getTrueLoc(i,m);if(o)if(h){var g=m.skipSpaces(h.start,!0),_=g?g.line:1,v=h.start.line-_;u=Array(v+1).join(`
87
- `)}else u=a?`
88
-
89
- `:`
90
- `;else u=``;if(s)if(h){var y=m.skipSpaces(h.end),b=(y?y.line:m.length)-h.end.line;d=Array(b+1).join(`
91
- `)}else d=a?`
92
-
93
- `:`
94
- `;else d=``;p.push(x(c,u),r),s?c=d:d&&p.push(d)}),(0,o.concat)(p)}C(b,`printStatementSequence`);function x(e,t){if(!e&&!t)return(0,o.fromString)(``);if(!e)return(0,o.fromString)(t);if(!t)return(0,o.fromString)(e);var n=(0,o.fromString)(e),r=(0,o.fromString)(t);return r.length>n.length?r:n}C(x,`maxSpace`);function S(e){var t=[];e.declare&&t.push(`declare `);var n=e.accessibility||e.access;return typeof n==`string`&&t.push(n,` `),e.static&&t.push(`static `),e.override&&t.push(`override `),e.abstract&&t.push(`abstract `),e.readonly&&t.push(`readonly `),t}C(S,`printClassMemberModifiers`);function w(e,t,n){var r=e.getNode(),i=r.kind,a=[],s=r.value;u.FunctionExpression.check(s)||(s=r),a.push.apply(a,S(r)),s.async&&a.push(`async `),s.generator&&a.push(`*`),(i===`get`||i===`set`)&&a.push(i,` `);var c=e.call(n,`key`);return r.computed&&(c=(0,o.concat)([`[`,c,`]`])),a.push(c),r.optional&&a.push(`?`),r===s?(a.push(e.call(n,`typeParameters`),`(`,D(e,t,n),`)`,e.call(n,`returnType`)),r.body?a.push(` `,e.call(n,`body`)):a.push(`;`)):(a.push(e.call(n,`value`,`typeParameters`),`(`,e.call(function(e){return D(e,t,n)},`value`),`)`,e.call(n,`value`,`returnType`)),s.body?a.push(` `,e.call(n,`value`,`body`)):a.push(`;`)),(0,o.concat)(a)}C(w,`printMethod`);function E(e,t,n){var r=e.map(n,`arguments`),i=l.isTrailingCommaEnabled(t,`parameters`),a=(0,o.fromString)(`, `).join(r);return a.getLineLength(1)>t.wrapColumn?(a=(0,o.fromString)(`,
95
- `).join(r),(0,o.concat)([`(
96
- `,a.indent(t.tabWidth),i?`,
97
- )`:`
98
- )`])):(0,o.concat)([`(`,a,`)`])}C(E,`printArgumentsList`);function D(e,t,n){var r=e.getValue(),i,a=[];r.params?(i=r.params,a=e.map(n,`params`)):r.parameters&&(i=r.parameters,a=e.map(n,`parameters`)),r.defaults&&e.each(function(e){var t=e.getName(),r=a[t];r&&e.getValue()&&(a[t]=(0,o.concat)([r,` = `,n(e)]))},`defaults`),r.rest&&a.push((0,o.concat)([`...`,e.call(n,`rest`)]));var s=(0,o.fromString)(`, `).join(a);return s.length>1||s.getLineLength(1)>t.wrapColumn?(s=(0,o.fromString)(`,
99
- `).join(a),s=l.isTrailingCommaEnabled(t,`parameters`)&&!r.rest&&i[i.length-1].type!==`RestElement`?(0,o.concat)([s,`,
100
- `]):(0,o.concat)([s,`
101
- `]),(0,o.concat)([`
102
- `,s.indent(t.tabWidth)])):s}C(D,`printFunctionParams`);function O(e,t,n){var r=e.getValue();if(r.assertions&&r.assertions.length>0){var i=[` assert {`],a=e.map(n,`assertions`),s=(0,o.fromString)(`, `).join(a);return s.length>1||s.getLineLength(1)>t.wrapColumn?i.push(`
103
- `,(0,o.fromString)(`,
104
- `).join(a).indent(t.tabWidth),`
105
- }`):i.push(` `,s,` }`),(0,o.concat)(i)}return(0,o.fromString)(``)}C(O,`maybePrintImportAssertions`);function ee(e,t,n){var r=e.getValue(),i=[`export `];r.exportKind&&r.exportKind===`type`&&(r.declaration||i.push(`type `));var a=t.objectCurlySpacing;if(u.Declaration.assert(r),(r.default||r.type===`ExportDefaultDeclaration`)&&i.push(`default `),r.declaration)i.push(e.call(n,`declaration`));else if(r.specifiers){if(r.specifiers.length===1&&r.specifiers[0].type===`ExportBatchSpecifier`)i.push(`*`);else if(r.specifiers.length===0)i.push(`{}`);else if(r.specifiers[0].type===`ExportDefaultSpecifier`||r.specifiers[0].type===`ExportNamespaceSpecifier`){var s=[],c=[];if(e.each(function(e){var t=e.getValue();t.type===`ExportDefaultSpecifier`||t.type===`ExportNamespaceSpecifier`?s.push(n(e)):c.push(n(e))},`specifiers`),s.forEach(function(e,t){t>0&&i.push(`, `),i.push(e)}),c.length>0){var l=(0,o.fromString)(`, `).join(c);l.getLineLength(1)>t.wrapColumn&&(l=(0,o.concat)([(0,o.fromString)(`,
106
- `).join(c).indent(t.tabWidth),`,`])),s.length>0&&i.push(`, `),l.length>1?i.push(`{
107
- `,l,`
108
- }`):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 k(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}C(ee,`printExportDeclaration`);function te(e,t){var r=l.getParentExportDeclaration(e);return r?(0,n.default)(r.type===`DeclareExportDeclaration`):t.unshift(`declare `),(0,o.concat)(t)}C(te,`printFlowDeclaration`);function ne(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`)}C(ne,`printVariance`);function re(e,t){return e.length>1?(0,o.concat)([` `,e]):(0,o.concat)([`
109
- `,oe(e).indent(t.tabWidth)])}C(re,`adjustClause`);function k(e){var t=e.lastPos();do{var n=e.charAt(t);if(/\S/.test(n))return n}while(e.prevPos(t))}C(k,`lastNonSpaceCharacter`);function A(e){return k(e)===`}`}C(A,`endsWithBrace`);function ie(e){return e.replace(/['"]/g,function(e){return e===`"`?`'`:`"`})}C(ie,`swapQuotes`);function j(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}}C(j,`getPossibleRaw`);function M(e){return JSON.stringify(e).replace(/[\u2028\u2029]/g,function(e){return`\\u`+e.charCodeAt(0).toString(16)})}C(M,`jsSafeStringify`);function ae(e,t){switch(d.assert(e),t.quote){case`auto`:var n=M(e),r=ie(M(ie(e)));return n.length>r.length?r:n;case`single`:return ie(M(ie(e)));default:return M(e)}}C(ae,`nodeStr`);function oe(e){var t=k(e);return!t||`
110
- };`.indexOf(t)<0?(0,o.concat)([e,`;`]):e}C(oe,`maybeAddSemicolon`)}}),Vr=O({"../../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=(q(),T(K)),n=t.__importDefault(S(`fs`));e.types=t.__importStar(_r());var r=Lr();Object.defineProperty(e,`parse`,{enumerable:!0,get:C(function(){return r.parse},`get`)});var i=Br(),a=_r();Object.defineProperty(e,`visit`,{enumerable:!0,get:C(function(){return a.visit},`get`)});function o(e,t){return new i.Printer(t).print(e)}C(o,`print`),e.print=o;function s(e,t){return new i.Printer(t).printGenerically(e)}C(s,`prettyPrint`),e.prettyPrint=s;function c(e,t){return l(process.argv[2],e,t)}C(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)})}C(l,`runFile`);function u(e){process.stdout.write(e)}C(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)})}C(d,`runString`)}}),Hr=O({"../../node_modules/.pnpm/recast@0.23.11/node_modules/recast/parsers/_babel_options.js"(e){Object.defineProperty(e,`__esModule`,{value:!0});var t=Ar();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`]}}C(n,`getBabelOptions`),e.default=n}}),Ur=O({"../../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}C(t,`_objectWithoutPropertiesLoose`);var n=class{static{C(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{C(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)}C(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=C(e=>e.type===`UpdateExpression`?s.UpdateExpression[`${e.prefix}`]:s[e.type],`toNodeDescription`),l={AccessorIsGenerator:C(({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:C(({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:C(({exportName:e})=>`\`${e}\` has already been exported. Exported identifiers must be unique.`,`DuplicateExport`),DuplicateProto:`Redefinition of __proto__ property.`,DuplicateRegExpFlags:`Duplicate regular expression flag.`,DynamicImportPhaseRequiresImportExpressions:C(({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:C(({localName:e,exportName:t})=>`A string literal cannot be used as an exported binding without \`from\`.
111
- - Did you mean \`export { '${e}' as '${t}' } from 'some-module'\`?`,`ExportBindingIsString`),ExportDefaultFromAsIdentifier:`'from' is not allowed as an identifier after 'export default'.`,ForInOfLoopInitializer:C(({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:C(({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:C(({importName:e})=>`A string literal cannot be used as an imported binding.
112
- - 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:C(({radix:e})=>`Expected number in radix ${e}.`,`InvalidDigit`),InvalidEscapeSequence:`Bad character escape sequence.`,InvalidEscapeSequenceTemplate:`Invalid escape sequence in template.`,InvalidEscapedReservedWord:C(({reservedWord:e})=>`Escape sequence in keyword ${e}.`,`InvalidEscapedReservedWord`),InvalidIdentifier:C(({identifierName:e})=>`Invalid identifier ${e}.`,`InvalidIdentifier`),InvalidLhs:C(({ancestor:e})=>`Invalid left-hand side in ${c(e)}.`,`InvalidLhs`),InvalidLhsBinding:C(({ancestor:e})=>`Binding invalid left-hand side in ${c(e)}.`,`InvalidLhsBinding`),InvalidLhsOptionalChaining:C(({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:C(({unexpected:e})=>`Unexpected character '${e}'.`,`InvalidOrUnexpectedToken`),InvalidParenthesizedAssignment:`Invalid parenthesized assignment pattern.`,InvalidPrivateFieldResolution:C(({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:C(({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:C(({missingPlugin:e})=>`This experimental syntax requires enabling the parser plugin: ${e.map(e=>JSON.stringify(e)).join(`, `)}.`,`MissingPlugin`),MissingOneOfPlugins:C(({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:C(({key:e})=>`Duplicate key "${e}" is not allowed in module attributes.`,`ModuleAttributesWithDuplicateKeys`),ModuleExportNameHasLoneSurrogate:C(({surrogateCharCode:e})=>`An export name cannot include a lone surrogate, found '\\u${e.toString(16)}'.`,`ModuleExportNameHasLoneSurrogate`),ModuleExportUndefined:C(({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:C(({identifierName:e})=>`Private names are only allowed in property accesses (\`obj.#${e}\`) or in \`in\` expressions (\`#${e} in obj\`).`,`PrivateInExpectedIn`),PrivateNameRedeclaration:C(({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:C(({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:C(({reservedWord:e})=>`Unexpected reserved word '${e}'.`,`UnexpectedReservedWord`),UnexpectedSuper:`'super' is only allowed in object methods and classes.`,UnexpectedToken:C(({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:C(({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:C(({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:C(({referenceName:e})=>`Assigning to '${e}' in strict mode.`,`StrictEvalArguments`),StrictEvalArgumentsBinding:C(({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:C(({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:C(({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})}C(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 C(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`,C(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`)}C(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:C(()=>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}C(g,`ParseErrorEnum`);var _=Object.assign({},g(o),g(l),g(u),g`pipelineOperator`(f)),{defineProperty:v}=Object,y=C((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}C(b,`toESTreeLocation`);var x=C(e=>class extends e{static{C(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`),S=class{static{C(this,`TokContext`)}constructor(e,t){this.token=void 0,this.preserveSpace=void 0,this.token=e,this.preserveSpace=!!t}},w={brace:new S(`{`),j_oTag:new S(`<tag`),j_cTag:new S(`</tag`),j_expr:new S(`<tag>...</tag>`,!0)};w.template=new S("`",!0);var T=!0,E=!0,D=!0,O=!0,ee=!0,te=!0,ne=class{static{C(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}},re=new Map;function k(e,t={}){t.keyword=e;let n=N(e,t);return re.set(e,n),n}C(k,`createKeyword`);function A(e,t){return N(e,{beforeExpr:T,binop:t})}C(A,`createBinop`);var ie=-1,j=[],M=[],ae=[],oe=[],se=[],ce=[];function N(e,t={}){return++ie,M.push(e),ae.push(t.binop??-1),oe.push(t.beforeExpr??!1),se.push(t.startsExpr??!1),ce.push(t.prefix??!1),j.push(new ne(e,t)),ie}C(N,`createToken`);function P(e,t={}){return++ie,re.set(e,ie),M.push(e),ae.push(t.binop??-1),oe.push(t.beforeExpr??!1),se.push(t.startsExpr??!1),ce.push(t.prefix??!1),j.push(new ne(`name`,t)),ie}C(P,`createKeywordLike`);var le={bracketL:N(`[`,{beforeExpr:T,startsExpr:E}),bracketHashL:N(`#[`,{beforeExpr:T,startsExpr:E}),bracketBarL:N(`[|`,{beforeExpr:T,startsExpr:E}),bracketR:N(`]`),bracketBarR:N(`|]`),braceL:N(`{`,{beforeExpr:T,startsExpr:E}),braceBarL:N(`{|`,{beforeExpr:T,startsExpr:E}),braceHashL:N(`#{`,{beforeExpr:T,startsExpr:E}),braceR:N(`}`),braceBarR:N(`|}`),parenL:N(`(`,{beforeExpr:T,startsExpr:E}),parenR:N(`)`),comma:N(`,`,{beforeExpr:T}),semi:N(`;`,{beforeExpr:T}),colon:N(`:`,{beforeExpr:T}),doubleColon:N(`::`,{beforeExpr:T}),dot:N(`.`),question:N(`?`,{beforeExpr:T}),questionDot:N(`?.`),arrow:N(`=>`,{beforeExpr:T}),template:N(`template`),ellipsis:N(`...`,{beforeExpr:T}),backQuote:N("`",{startsExpr:E}),dollarBraceL:N("${",{beforeExpr:T,startsExpr:E}),templateTail:N("...`",{startsExpr:E}),templateNonTail:N("...${",{beforeExpr:T,startsExpr:E}),at:N(`@`),hash:N(`#`,{startsExpr:E}),interpreterDirective:N(`#!...`),eq:N(`=`,{beforeExpr:T,isAssign:O}),assign:N(`_=`,{beforeExpr:T,isAssign:O}),slashAssign:N(`_=`,{beforeExpr:T,isAssign:O}),xorAssign:N(`_=`,{beforeExpr:T,isAssign:O}),moduloAssign:N(`_=`,{beforeExpr:T,isAssign:O}),incDec:N(`++/--`,{prefix:ee,postfix:te,startsExpr:E}),bang:N(`!`,{beforeExpr:T,prefix:ee,startsExpr:E}),tilde:N(`~`,{beforeExpr:T,prefix:ee,startsExpr:E}),doubleCaret:N(`^^`,{startsExpr:E}),doubleAt:N(`@@`,{startsExpr:E}),pipeline:A(`|>`,0),nullishCoalescing:A(`??`,1),logicalOR:A(`||`,1),logicalAND:A(`&&`,2),bitwiseOR:A(`|`,3),bitwiseXOR:A(`^`,4),bitwiseAND:A(`&`,5),equality:A(`==/!=/===/!==`,6),lt:A(`</>/<=/>=`,7),gt:A(`</>/<=/>=`,7),relational:A(`</>/<=/>=`,7),bitShift:A(`<</>>/>>>`,8),bitShiftL:A(`<</>>/>>>`,8),bitShiftR:A(`<</>>/>>>`,8),plusMin:N(`+/-`,{beforeExpr:T,binop:9,prefix:ee,startsExpr:E}),modulo:N(`%`,{binop:10,startsExpr:E}),star:N(`*`,{binop:10}),slash:A(`/`,10),exponent:N(`**`,{beforeExpr:T,binop:11,rightAssociative:!0}),_in:k(`in`,{beforeExpr:T,binop:7}),_instanceof:k(`instanceof`,{beforeExpr:T,binop:7}),_break:k(`break`),_case:k(`case`,{beforeExpr:T}),_catch:k(`catch`),_continue:k(`continue`),_debugger:k(`debugger`),_default:k(`default`,{beforeExpr:T}),_else:k(`else`,{beforeExpr:T}),_finally:k(`finally`),_function:k(`function`,{startsExpr:E}),_if:k(`if`),_return:k(`return`,{beforeExpr:T}),_switch:k(`switch`),_throw:k(`throw`,{beforeExpr:T,prefix:ee,startsExpr:E}),_try:k(`try`),_var:k(`var`),_const:k(`const`),_with:k(`with`),_new:k(`new`,{beforeExpr:T,startsExpr:E}),_this:k(`this`,{startsExpr:E}),_super:k(`super`,{startsExpr:E}),_class:k(`class`,{startsExpr:E}),_extends:k(`extends`,{beforeExpr:T}),_export:k(`export`),_import:k(`import`,{startsExpr:E}),_null:k(`null`,{startsExpr:E}),_true:k(`true`,{startsExpr:E}),_false:k(`false`,{startsExpr:E}),_typeof:k(`typeof`,{beforeExpr:T,prefix:ee,startsExpr:E}),_void:k(`void`,{beforeExpr:T,prefix:ee,startsExpr:E}),_delete:k(`delete`,{beforeExpr:T,prefix:ee,startsExpr:E}),_do:k(`do`,{isLoop:D,beforeExpr:T}),_for:k(`for`,{isLoop:D}),_while:k(`while`,{isLoop:D}),_as:P(`as`,{startsExpr:E}),_assert:P(`assert`,{startsExpr:E}),_async:P(`async`,{startsExpr:E}),_await:P(`await`,{startsExpr:E}),_defer:P(`defer`,{startsExpr:E}),_from:P(`from`,{startsExpr:E}),_get:P(`get`,{startsExpr:E}),_let:P(`let`,{startsExpr:E}),_meta:P(`meta`,{startsExpr:E}),_of:P(`of`,{startsExpr:E}),_sent:P(`sent`,{startsExpr:E}),_set:P(`set`,{startsExpr:E}),_source:P(`source`,{startsExpr:E}),_static:P(`static`,{startsExpr:E}),_using:P(`using`,{startsExpr:E}),_yield:P(`yield`,{startsExpr:E}),_asserts:P(`asserts`,{startsExpr:E}),_checks:P(`checks`,{startsExpr:E}),_exports:P(`exports`,{startsExpr:E}),_global:P(`global`,{startsExpr:E}),_implements:P(`implements`,{startsExpr:E}),_intrinsic:P(`intrinsic`,{startsExpr:E}),_infer:P(`infer`,{startsExpr:E}),_is:P(`is`,{startsExpr:E}),_mixins:P(`mixins`,{startsExpr:E}),_proto:P(`proto`,{startsExpr:E}),_require:P(`require`,{startsExpr:E}),_satisfies:P(`satisfies`,{startsExpr:E}),_keyof:P(`keyof`,{startsExpr:E}),_readonly:P(`readonly`,{startsExpr:E}),_unique:P(`unique`,{startsExpr:E}),_abstract:P(`abstract`,{startsExpr:E}),_declare:P(`declare`,{startsExpr:E}),_enum:P(`enum`,{startsExpr:E}),_module:P(`module`,{startsExpr:E}),_namespace:P(`namespace`,{startsExpr:E}),_interface:P(`interface`,{startsExpr:E}),_type:P(`type`,{startsExpr:E}),_opaque:P(`opaque`,{startsExpr:E}),name:N(`name`,{startsExpr:E}),placeholder:N(`%%`,{startsExpr:!0}),string:N(`string`,{startsExpr:E}),num:N(`num`,{startsExpr:E}),bigint:N(`bigint`,{startsExpr:E}),decimal:N(`decimal`,{startsExpr:E}),regexp:N(`regexp`,{startsExpr:E}),privateName:N(`#name`,{startsExpr:E}),eof:N(`eof`),jsxName:N(`jsxName`),jsxText:N(`jsxText`,{beforeExpr:!0}),jsxTagStart:N(`jsxTagStart`,{startsExpr:!0}),jsxTagEnd:N(`jsxTagEnd`)};function F(e){return e>=93&&e<=133}C(F,`tokenIsIdentifier`);function ue(e){return e<=92}C(ue,`tokenKeywordOrIdentifierIsKeyword`);function de(e){return e>=58&&e<=133}C(de,`tokenIsKeywordOrIdentifier`);function fe(e){return e>=58&&e<=137}C(fe,`tokenIsLiteralPropertyName`);function pe(e){return oe[e]}C(pe,`tokenComesBeforeExpression`);function me(e){return se[e]}C(me,`tokenCanStartExpression`);function he(e){return e>=29&&e<=33}C(he,`tokenIsAssignment`);function ge(e){return e>=129&&e<=131}C(ge,`tokenIsFlowInterfaceOrTypeOrOpaque`);function _e(e){return e>=90&&e<=92}C(_e,`tokenIsLoop`);function I(e){return e>=58&&e<=92}C(I,`tokenIsKeyword`);function ve(e){return e>=39&&e<=59}C(ve,`tokenIsOperator`);function ye(e){return e===34}C(ye,`tokenIsPostfix`);function be(e){return ce[e]}C(be,`tokenIsPrefix`);function xe(e){return e>=121&&e<=123}C(xe,`tokenIsTSTypeOperator`);function Se(e){return e>=124&&e<=130}C(Se,`tokenIsTSDeclarationStart`);function L(e){return M[e]}C(L,`tokenLabelName`);function R(e){return ae[e]}C(R,`tokenOperatorPrecedence`);function Ce(e){return e===57}C(Ce,`tokenIsRightAssociative`);function z(e){return e>=24&&e<=25}C(z,`tokenIsTemplate`);function we(e){return j[e]}C(we,`getExportedToken`),j[8].updateContext=e=>{e.pop()},j[5].updateContext=j[7].updateContext=j[23].updateContext=e=>{e.push(w.brace)},j[22].updateContext=e=>{e[e.length-1]===w.template?e.pop():e.push(w.template)},j[143].updateContext=e=>{e.push(w.j_expr,w.j_oTag)};var Te=`ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽͿΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԯԱ-Ֆՙՠ-ֈא-תׯ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࡠ-ࡪࡰ-ࢇࢉ-ࢎࢠ-ࣉऄ-हऽॐक़-ॡॱ-ঀঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱৼਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡૹଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-హఽౘ-ౚౝౠౡಀಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೝೞೠೡೱೲഄ-ഌഎ-ഐഒ-ഺഽൎൔ-ൖൟ-ൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄຆ-ຊຌ-ຣລວ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏽᏸ-ᏽᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛸᜀ-ᜑᜟ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡸᢀ-ᢨᢪᢰ-ᣵᤀ-ᤞᥐ-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧉᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭌᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᲀ-ᲊᲐ-ᲺᲽ-Ჿᳩ-ᳬᳮ-ᳳᳵᳶᳺᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕ℘-ℝℤΩℨK-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞ々-〇〡-〩〱-〵〸-〼ぁ-ゖ゛-ゟァ-ヺー-ヿㄅ-ㄯㄱ-ㆎㆠ-ㆿㇰ-ㇿ㐀-䶿一-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚝꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-ꟍꟐꟑꟓꟕ-Ƛꟲ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꣽꣾꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꧠ-ꧤꧦ-ꧯꧺ-ꧾꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꩾ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꬰ-ꭚꭜ-ꭩꭰ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ`,Ee=`·̀-ͯ·҃-֑҇-ׇֽֿׁׂׅׄؐ-ًؚ-٩ٰۖ-ۜ۟-۪ۤۧۨ-ۭ۰-۹ܑܰ-݊ަ-ް߀-߉߫-߽߳ࠖ-࠙ࠛ-ࠣࠥ-ࠧࠩ-࡙࠭-࡛ࢗ-࢟࣊-ࣣ࣡-ःऺ-़ा-ॏ॑-ॗॢॣ०-९ঁ-ঃ়া-ৄেৈো-্ৗৢৣ০-৯৾ਁ-ਃ਼ਾ-ੂੇੈੋ-੍ੑ੦-ੱੵઁ-ઃ઼ા-ૅે-ૉો-્ૢૣ૦-૯ૺ-૿ଁ-ଃ଼ା-ୄେୈୋ-୍୕-ୗୢୣ୦-୯ஂா-ூெ-ைொ-்ௗ௦-௯ఀ-ఄ఼ా-ౄె-ైొ-్ౕౖౢౣ౦-౯ಁ-ಃ಼ಾ-ೄೆ-ೈೊ-್ೕೖೢೣ೦-೯ೳഀ-ഃ഻഼ാ-ൄെ-ൈൊ-്ൗൢൣ൦-൯ඁ-ඃ්ා-ුූෘ-ෟ෦-෯ෲෳัิ-ฺ็-๎๐-๙ັິ-ຼ່-໎໐-໙༘༙༠-༩༹༵༷༾༿ཱ-྄྆྇ྍ-ྗྙ-ྼ࿆ါ-ှ၀-၉ၖ-ၙၞ-ၠၢ-ၤၧ-ၭၱ-ၴႂ-ႍႏ-ႝ፝-፟፩-፱ᜒ-᜕ᜲ-᜴ᝒᝓᝲᝳ឴-៓៝០-៩᠋-᠍᠏-᠙ᢩᤠ-ᤫᤰ-᤻᥆-᥏᧐-᧚ᨗ-ᨛᩕ-ᩞ᩠-᩿᩼-᪉᪐-᪙᪰-᪽ᪿ-ᫎᬀ-ᬄ᬴-᭄᭐-᭙᭫-᭳ᮀ-ᮂᮡ-ᮭ᮰-᮹᯦-᯳ᰤ-᰷᱀-᱉᱐-᱙᳐-᳔᳒-᳨᳭᳴᳷-᳹᷀-᷿‌‍‿⁀⁔⃐-⃥⃜⃡-⃰⳯-⵿⳱ⷠ-〪ⷿ-゙゚〯・꘠-꘩꙯ꙴ-꙽ꚞꚟ꛰꛱ꠂ꠆ꠋꠣ-ꠧ꠬ꢀꢁꢴ-ꣅ꣐-꣙꣠-꣱ꣿ-꤉ꤦ-꤭ꥇ-꥓ꦀ-ꦃ꦳-꧀꧐-꧙ꧥ꧰-꧹ꨩ-ꨶꩃꩌꩍ꩐-꩙ꩻ-ꩽꪰꪲ-ꪴꪷꪸꪾ꪿꫁ꫫ-ꫯꫵ꫶ꯣ-ꯪ꯬꯭꯰-꯹ﬞ︀-️︠-︯︳︴﹍-﹏0-9_・`,De=RegExp(`[`+Te+`]`),Oe=RegExp(`[`+Te+Ee+`]`);Te=Ee=null;var B=[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],ke=[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 Ae(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}C(Ae,`isInAstralSet`);function je(e){return e<65?e===36:e<=90?!0:e<97?e===95:e<=122?!0:e<=65535?e>=170&&De.test(String.fromCharCode(e)):Ae(e,B)}C(je,`isIdentifierStart`);function Me(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&&Oe.test(String.fromCharCode(e)):Ae(e,B)||Ae(e,ke)}C(Me,`isIdentifierChar`);var Ne={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`]},Pe=new Set(Ne.keyword),Fe=new Set(Ne.strict),Ie=new Set(Ne.strictBind);function Le(e,t){return t&&e===`await`||e===`enum`}C(Le,`isReservedWord`);function Re(e,t){return Le(e,t)||Fe.has(e)}C(Re,`isStrictReservedWord`);function ze(e){return Ie.has(e)}C(ze,`isStrictBindOnlyReservedWord`);function Be(e,t){return Re(e,t)||ze(e)}C(Be,`isStrictBindReservedWord`);function Ve(e){return Pe.has(e)}C(Ve,`isKeyword`);function He(e,t,n){return e===64&&t===64&&je(n)}C(He,`isIteratorStart`);var V=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 Ue(e){return V.has(e)}C(Ue,`canBeReservedWord`);var We=class{static{C(this,`Scope`)}constructor(e){this.flags=0,this.names=new Map,this.firstLexicalName=``,this.flags=e}},Ge=class{static{C(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 We(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}}},Ke=class extends We{static{C(this,`FlowScope`)}constructor(...e){super(...e),this.declareFunctions=new Set}},H=class extends Ge{static{C(this,`FlowScopeHandler`)}createScope(e){return new Ke(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{C(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)}C(Je,`setTrailingComments`);function Ye(e,t){e.leadingComments===void 0?e.leadingComments=t:e.leadingComments.unshift(...t)}C(Ye,`setLeadingComments`);function Xe(e,t){e.innerComments===void 0?e.innerComments=t:e.innerComments.unshift(...t)}C(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)}C(Ze,`adjustInnerComments`);var Qe=class extends qe{static{C(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}}C(et,`isNewLine`);function tt(e,t,n){for(let r=t;r<n;r++)if(et(e.charCodeAt(r)))return!0;return!1}C(tt,`hasNewLine`);var nt=/(?:\s|\/\/.*|\/\*[^]*?\*\/)*/g,U=/(?:[^\S\n\r\u2028\u2029]|\/\/.*|\/\*.*?\*\/)*/g;function rt(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}}C(rt,`isWhitespace`);var it=class e{static{C(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=C(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:C(e=>e===48||e===49,`bin`),oct:C(e=>e>=48&&e<=55,`oct`),dec:C(e=>e>=48&&e<=57,`dec`),hex:C(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)+`
113
- `,++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}}C(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)}C(lt,`isStringEnd`);function ut(e,t,n,r,i,a){let o=!i;t++;let s=C(e=>({pos:t,ch:e,lineStart:n,curLine:r}),`res`),c=e.charCodeAt(t++);switch(c){case 110:return s(`
114
- `);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))}}C(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}}C(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}}C(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}}C(pt,`readCodePoint`);function mt(e,t,r){return new n(r,e-t,e)}C(mt,`buildPosition`);var ht=new Set([103,109,115,105,121,117,100,118]),gt=class{static{C(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{C(this,`Tokenizer`)}constructor(e,t){super(),this.isLookahead=void 0,this.tokens=[],this.errorHandlers_readInt={invalidDigit:C((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:C((e,t,n)=>{this.recordStrictModeErrors(_.StrictNumericEscape,mt(e,t,n))},`strictNumericEscape`),unterminated:C((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:C((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 U.lastIndex=e,U.test(this.input)?U.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(rt(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 je(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(je(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=C(()=>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(Me(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(je(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(je(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(Me(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?je:Me;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=re.get(t);n===void 0?this.finishToken(132,t):this.finishToken(n,L(n))}checkKeywordEscapes(){let{type:e}=this.state;I(e)&&this.state.containsEsc&&this.raise(_.InvalidEscapedReservedWord,this.state.startLoc,{reservedWord:L(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?L(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{C(this,`ClassScope`)}constructor(){this.privateNames=new Set,this.loneAccessors=new Map,this.undefinedPrivateNames=new Map}},yt=class{static{C(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{C(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{C(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{C(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)}C(Ct,`newParameterDeclarationScope`);function wt(){return new xt(1)}C(wt,`newArrowHeadScope`);function Tt(){return new xt(2)}C(Tt,`newAsyncArrowScope`);function Et(){return new bt}C(Et,`newExpressionScope`);var Dt=class{static{C(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}C(Ot,`functionFlags`);var kt=class extends _t{static{C(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!(Me(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 fe(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{C(this,`ExpressionErrors`)}constructor(){this.shorthandAssignLoc=null,this.doubleProtoLoc=null,this.privateKeyLoc=null,this.optionalParametersLoc=null}},jt=class{static{C(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)}C(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}C(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}C(Ft,`cloneStringLiteral`);var It=class extends kt{static{C(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:C(({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:C(({memberName:e,enumName:t})=>`Boolean enum members need to be initialized. Use either \`${e} = true,\` or \`${e} = false,\` in enum \`${t}\`.`,`EnumBooleanMemberNotInitialized`),EnumDuplicateMemberName:C(({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:C(({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:C(({invalidEnumType:e,enumName:t})=>`Enum type \`${e}\` is not valid. Use one of \`boolean\`, \`number\`, \`string\`, or \`symbol\` in enum \`${t}\`.`,`EnumInvalidExplicitType`),EnumInvalidExplicitTypeUnknownSupplied:C(({enumName:e})=>`Supplied enum type is not valid. Use one of \`boolean\`, \`number\`, \`string\`, or \`symbol\` in enum \`${e}\`.`,`EnumInvalidExplicitTypeUnknownSupplied`),EnumInvalidMemberInitializerPrimaryType:C(({enumName:e,memberName:t,explicitType:n})=>`Enum \`${e}\` has type \`${n}\`, so the initializer of \`${t}\` needs to be a ${n} literal.`,`EnumInvalidMemberInitializerPrimaryType`),EnumInvalidMemberInitializerSymbolType:C(({enumName:e,memberName:t})=>`Symbol enum members cannot be initialized. Use \`${t},\` in enum \`${e}\`.`,`EnumInvalidMemberInitializerSymbolType`),EnumInvalidMemberInitializerUnknownType:C(({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:C(({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:C(({enumName:e,memberName:t})=>`Number enum members need to be initialized, e.g. \`${t} = 1\` in enum \`${e}\`.`,`EnumNumberMemberNotInitialized`),EnumStringMemberInconsistentlyInitialized:C(({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:C(({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:C(({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`)}C(Rt,`isEsModuleType`);function zt(e){return e.importKind===`type`||e.importKind===`typeof`}C(zt,`hasTypeImportKind`);var Bt={const:`declare export var`,let:`declare export var`,type:`export type`,interface:`export interface`};function Vt(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]}C(Vt,`partition`);var Ht=/\*?\s*@((?:no)?flow)\b/,Ut=C(e=>class extends e{static{C(this,`FlowParserMixin`)}constructor(...e){super(...e),this.flowPragma=void 0}getScopeHandler(){return H}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=Ht.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))&&fe(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(F(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(I(this.state.type)){let e=L(this.state.type);return this.next(),super.createIdentifier(t,e)}else if(F(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(de(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)||F(this.state.type)||this.match(68)||this.match(74)||this.match(82))return this.flowParseDeclare(e)}else if(F(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||ge(e)?!this.state.containsEsc:super.shouldParseExportDeclaration()}isExportDefaultSpecifier(){let{type:e}=this.state;return e===126||ge(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,[]]):Vt(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):He(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&&!de(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&&de(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=C(()=>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(!F(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=C(()=>(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`),Wt={__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:`♦`},Gt=g`jsx`({AttributeIsEmpty:`JSX attributes must only be assigned a non-empty expression.`,MissingClosingTagElement:C(({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:C(({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 Kt(e){return e?e.type===`JSXOpeningFragment`||e.type===`JSXClosingFragment`:!1}C(Kt,`isFragment`);function qt(e){if(e.type===`JSXIdentifier`)return e.name;if(e.type===`JSXNamespacedName`)return e.namespace.name+`:`+e.name.name;if(e.type===`JSXMemberExpression`)return qt(e.object)+`.`+qt(e.property);throw Error(`Node had unexpected type: `+e.type)}C(qt,`getQualifiedJSXName`);var Jt=C(e=>class extends e{static{C(this,`JSXParserMixin`)}jsxReadToken(){let e=``,t=this.state.pos;for(;;){if(this.state.pos>=this.length)throw this.raise(Gt.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?`
115
- `:`\r
116
- `):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=Wt[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(Me(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:I(this.state.type)?e.name=L(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(Gt.AttributeIsEmpty,e),e;case 143:case 134:return this.parseExprAtom();default:throw this.raise(Gt.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()}Kt(r)&&!Kt(i)&&i!==null?this.raise(Gt.MissingClosingTagFragment,i):(!Kt(r)&&Kt(i)||!Kt(r)&&!Kt(i)&&qt(i.name)!==qt(r.name))&&this.raise(Gt.MissingClosingTagElement,i,{openingTagName:qt(r.name)})}if(Kt(r)?(t.openingFragment=r,t.closingFragment=i):(t.openingElement=r,t.closingElement=i),t.children=n,this.match(47))throw this.raise(Gt.UnwrappedAdjacentJSXElements,this.state.startLoc);return Kt(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(je(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=pe(n)}},`jsx`),Yt=class extends We{static{C(this,`TypeScriptScope`)}constructor(...e){super(...e),this.tsNames=new Map}},Xt=class extends Ge{static{C(this,`TypeScriptScopeHandler`)}constructor(...e){super(...e),this.importsStack=[]}createScope(e){return this.importsStack.push(new Set),new Yt(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)}},Zt=C(e=>e.type===`ParenthesizedExpression`?Zt(e.expression):e,`unwrapParenthesizedExpression`),Qt=class extends It{static{C(this,`LValParser`)}toAssignable(e,t=!1){var n;let r;switch((e.type===`ParenthesizedExpression`||(n=e.extra)!=null&&n.parenthesized)&&(r=Zt(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?Be(e.name,this.inModule):ze(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 $t(e){if(e==null)throw Error(`Unexpected ${e} value.`);return e}C($t,`nonNull`);function en(e){if(!e)throw Error(`Assert fail`)}C(en,`assert`);var G=g`typescript`({AbstractMethodHasImplementation:C(({methodName:e})=>`Method '${e}' cannot have an implementation because it is marked abstract.`,`AbstractMethodHasImplementation`),AbstractPropertyHasInitializer:C(({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:C(({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:C(({modifier:e})=>`Accessibility modifier already seen.`,`DuplicateAccessibilityModifier`),DuplicateModifier:C(({modifier:e})=>`Duplicate modifier: '${e}'.`,`DuplicateModifier`),EmptyHeritageClauseType:C(({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:C(({modifiers:e})=>`'${e[0]}' modifier cannot be used with '${e[1]}' modifier.`,`IncompatibleModifiers`),IndexSignatureHasAbstract:`Index signatures cannot have the 'abstract' modifier.`,IndexSignatureHasAccessibility:C(({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:C(({modifier:e})=>`'${e}' modifier cannot appear on a type member.`,`InvalidModifierOnTypeMember`),InvalidModifierOnTypeParameter:C(({modifier:e})=>`'${e}' modifier cannot appear on a type parameter.`,`InvalidModifierOnTypeParameter`),InvalidModifierOnTypeParameterPositions:C(({modifier:e})=>`'${e}' modifier can only appear on a type parameter of a class, interface or type alias.`,`InvalidModifierOnTypeParameterPositions`),InvalidModifiersOrder:C(({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:C(({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:C(({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:C(({type:e})=>`Name in a signature must be an Identifier, ObjectPattern or ArrayPattern, instead got ${e}.`,`UnsupportedSignatureParameterKind`)});function tn(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}}C(tn,`keywordTypeFromName`);function nn(e){return e===`private`||e===`public`||e===`protected`}C(nn,`tsIsAccessModifier`);function rn(e){return e===`in`||e===`out`}C(rn,`tsIsVarianceAnnotations`);var K=C(e=>class extends e{static{C(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:G.InvalidModifierOnTypeParameter}),this.tsParseConstModifier=this.tsParseModifiers.bind(this,{allowedModifiers:[`const`],disallowedModifiers:[`in`,`out`],errorTemplate:G.InvalidModifierOnTypeParameterPositions}),this.tsParseInOutConstModifiers=this.tsParseModifiers.bind(this,{allowedModifiers:[`in`,`out`,`const`],disallowedModifiers:[`public`,`private`,`protected`,`readonly`,`declare`,`abstract`,`override`],errorTemplate:G.InvalidModifierOnTypeParameter})}getScopeHandler(){return Xt}tsIsIdentifier(){return F(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(!F(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=G.InvalidModifierOnTypeMember},i){let a=C((e,t,n,r)=>{t===n&&i[r]&&this.raise(G.InvalidModifiersOrder,e,{orderedModifiers:[n,r]})},`enforceOrder`),o=C((e,t,n,r)=>{(i[n]&&t===r||i[r]&&t===n)&&this.raise(G.IncompatibleModifiers,e,{modifiers:[n,r]})},`incompatible`);for(;;){let{startLoc:s}=this.state,c=this.tsParseModifier(e.concat(t??[]),n);if(!c)break;nn(c)?i.accessibility?this.raise(G.DuplicateAccessibilityModifier,s,{modifier:c}):(a(s,c,c,`override`),a(s,c,c,`static`),a(s,c,c,`readonly`),i.accessibility=c):rn(c)?(i[c]&&this.raise(G.DuplicateModifier,s,{modifier:c}),i[c]=!0,a(s,c,`in`,`out`)):(hasOwnProperty.call(i,c)?this.raise(G.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 $t(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(G.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(G.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(G.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(),F(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(G.ReadonlyForMethodSignature,e);let r=n;r.kind&&this.match(47)&&this.raise(G.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(G.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(G.AccessorCannotDeclareThisParameter,this.state.curPosition()),e.type===`Identifier`&&e.optional&&this.raise(G.SetAccessorCannotHaveOptionalParameter,this.state.curPosition()),e.type===`RestElement`&&this.raise(G.SetAccessorCannotHaveRestParameter,this.state.curPosition())}r[a]&&this.raise(G.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(G.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=de(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(G.TupleOptionalAfterType,this.state.lastTokStartLoc))):(e=this.startNodeAtNode(a),e.optional=i,this.raise(G.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(F(e)||e===88||e===84){let t=e===88?`TSVoidKeyword`:e===84?`TSNullKeyword`:tn(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(G.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 xe(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(F(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(),!F(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(){en(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(G.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(G.EmptyHeritageClauseType,t,{token:e}),n}tsParseInterfaceDeclaration(e,t={}){if(this.hasFollowingLineBreak())return null;this.expectContextual(129),t.declare&&(e.declare=!0),F(this.state.type)?(e.id=this.parseIdentifier(),this.checkIdentifier(e.id,130)):(e.id=null,this.raise(G.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(G.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(F(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)||F(this.state.type)))return this.tsParseAbstractDeclaration(e,r);break;case`module`:if(this.tsCheckLineTerminator(n)){if(this.match(134))return this.tsParseAmbientExternalModuleDeclaration(e);if(F(this.state.type))return e.kind=`module`,this.tsParseModuleOrNamespaceDeclaration(e)}break;case`namespace`:if(this.tsCheckLineTerminator(n)&&F(this.state.type))return e.kind=`namespace`,this.tsParseModuleOrNamespaceDeclaration(e);break;case`type`:if(this.tsCheckLineTerminator(n)&&F(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(G.EmptyTypeArguments,e):!this.state.inType&&this.curContext()===w.brace&&this.reScan_lt_gt(),this.expect(48),this.finishNode(e,`TSTypeParameterInstantiation`)}tsIsDeclarationStart(){return Se(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(G.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(G.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(G.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(G.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(G.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(z(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&&me(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(G.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(R(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(G.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(F(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(G.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(G.InitializerNotAllowedInAmbientContext,n):on(n,this.hasPlugin(`estree`))||this.raise(G.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=>nn(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:G.InvalidModifierOnTypeParameterPositions},t);let i=C(()=>{this.tsIsStartOfStaticBlocks()?(this.next(),this.next(),this.tsHasSomeModifiers(t,r)&&this.raise(G.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(G.IndexSignatureHasAbstract,t),t.accessibility&&this.raise(G.IndexSignatureHasAccessibility,t,{modifier:t.accessibility}),t.declare&&this.raise(G.IndexSignatureHasDeclare,t),t.override&&this.raise(G.IndexSignatureHasOverride,t);return}!this.state.inAbstractClass&&t.abstract&&this.raise(G.NonAbstractClassHasAbstractMethod,t),t.override&&(n.hadSuperClass||this.raise(G.OverrideNotInSubClass,t)),super.parseClassMemberWithIsStatic(e,t,n,r)}parsePostMemberNameModifiers(e){this.eat(17)&&(e.optional=!0),e.readonly&&this.match(10)&&this.raise(G.ClassMethodHasReadonly,e),e.declare&&this.match(10)&&this.raise(G.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(G.ExpectedAmbientAfterExportDeclare,this.state.startLoc);let r=F(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(G.DeclareClassFieldHasInitializer,this.state.startLoc),e.abstract&&this.match(29)){let{key:t}=e;this.raise(G.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(G.PrivateElementHasAbstract,e),e.accessibility&&this.raise(G.PrivateElementHasAccessibility,e,{modifier:e.accessibility}),this.parseClassPropertyAnnotation(e),super.parseClassPrivateProperty(e)}parseClassAccessorProperty(e){return this.parseClassPropertyAnnotation(e),e.optional&&this.raise(G.AccessorCannotBeOptional,e),super.parseClassAccessorProperty(e)}pushClassMethod(e,t,n,r,i,a){let o=this.tsTryParseTypeParameters(this.tsParseConstModifier);o&&i&&this.raise(G.ConstructorHasTypeParameters,o);let{declare:s=!1,kind:c}=t;s&&(c===`get`||c===`set`)&&this.raise(G.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&&(en(!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(G.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(G.UnexpectedTypeCastInParameter,e):this.raise(G.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(G.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(G.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(G.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();de(this.state.type)?(s=!0,a=e,o=t?this.parseIdentifier():this.parseModuleExportName(),c=!1):(o=n,c=!1)}else de(this.state.type)?(c=!1,o=t?this.parseIdentifier():this.parseModuleExportName()):(s=!0,a=e)}else de(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?G.TypeModifierIsUsedInTypeImports:G.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 an(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:ln(e.object)}C(an,`isPossiblyLiteralEnum`);function on(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!!(sn(e,t)||cn(e,t)||r===`TemplateLiteral`&&e.expressions.length===0||an(e))}C(on,`isValidAmbientConstInitializer`);function sn(e,t){return t?e.type===`Literal`&&(typeof e.value==`number`||`bigint`in e):e.type===`NumericLiteral`||e.type===`BigIntLiteral`}C(sn,`isNumber`);function cn(e,t){if(e.type===`UnaryExpression`){let{operator:n,argument:r}=e;if(n===`-`&&sn(r,t))return!0}return!1}C(cn,`isNegativeNumber`);function ln(e){return e.type===`Identifier`?!0:e.type!==`MemberExpression`||e.computed?!1:ln(e.object)}C(ln,`isUncomputedMemberExpressionChain`);var un=g`placeholders`({ClassNameIsRequired:`A class name is required.`,UnexpectedSpace:`Unexpected space in placeholder.`}),dn=C(e=>class extends e{static{C(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(un.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(L(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(un.UnexpectedSpace,this.state.lastTokEndLoc)}},`placeholders`),fn=C(e=>class extends e{static{C(this,`V8IntrinsicMixin`)}parseV8Intrinsic(){if(this.match(54)){let e=this.state.startLoc,t=this.startNode();if(this.next(),F(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`),pn=[`minimal`,`fsharp`,`hack`,`smart`],mn=[`^^`,`@@`,`^`,`%`,`#`];function hn(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(!pn.includes(t)){let e=pn.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(!mn.includes(t)){let e=mn.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'.`)}C(hn,`validatePlugins`);var gn={estree:x,jsx:Jt,flow:Ut,typescript:K,v8intrinsic:fn,placeholders:dn},_n=Object.keys(gn);function vn(){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}}C(vn,`createDefaultOptions`);function yn(e){let t=vn();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}C(yn,`getOptions`);var bn=class extends Qt{static{C(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||F(i))&&(this.state.potentialArrowAt=this.state.start);let a=this.parseMaybeConditional(e);if(t&&(a=t.call(this,a,n)),he(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>=R(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(ve(r)&&(this.prodParam.hasIn||!this.match(58))){let i=R(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=R(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,Ce(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(be(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`)?me(e):me(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(;ye(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(z(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());je(e)||e===62?this.expectOnePlugin([`jsx`,`flow`,`typescript`]):this.unexpected();break}default:if(r===137)return this.parseDecimalLiteral(this.state.value);if(F(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(F(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:L(r)})}testTopicReferenceConfiguration(e,t,n){switch(e){case`hack`:return this.hasPlugin([`pipelineOperator`,{topicToken:L(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,`
117
- `),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(de(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;de(r)?t=this.state.value:this.unexpected();let i=ue(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)&&Ue(e)){if(n&&Ve(e)){this.raise(_.UnexpectedKeyword,t,{keyword:e});return}if((this.state.strict?r?Be:Re:Le)(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||z(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){}},xn={kind:1},Sn={kind:2},Cn=/[\uD800-\uDFFF]/u,wn=/in(?:stanceof)?/y;function Tn(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:we(27),value:`#`,start:n,end:c,startLoc:t.start,endLoc:l}),new gt({type:we(132),value:o,start:c,end:s,startLoc:l,endLoc:t.end})),r++;continue}if(z(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:we(22),value:"`",start:c,end:d,startLoc:s.start,endLoc:f}):new gt({type:we(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:we(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:we(23),value:"${",start:h,end:u,startLoc:g,endLoc:s.end})),e.splice(r,1,p,new gt({type:we(20),value:m,start:d,end:h,startLoc:f,endLoc:g}),_),r+=2;continue}a.type=we(o)}}return e}C(Tn,`babel7CompatTokens`);var En=class extends bn{static{C(this,`StatementParser`)}parseTopLevel(e,t){return e.program=this.parseProgram(t),e.comments=this.comments,this.options.tokens&&(e.tokens=Tn(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(je(e)){if(wn.lastIndex=t,wn.test(this.input)){let e=this.codePointAtPos(wn.lastIndex);if(!Me(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(F(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 F(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(xn),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(xn);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(Sn),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(xn),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=_e(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||F(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&&F(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(F(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(F(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(F(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||F(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=Cn.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(de(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 F(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(de(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`}},Dn=class extends En{static{C(this,`Parser`)}constructor(e,t,n){e=yn(e),super(e,t),this.options=e,this.initializeScopes(),this.plugins=n,this.filename=e.sourceFilename,this.startIndex=e.startIndex}getScopeHandler(){return Ge}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 On(e,t){if(t?.sourceType===`unambiguous`){t=Object.assign({},t);try{t.sourceType=`module`;let n=Mn(t,e),r=n.parse();if(n.sawUnambiguousESM)return r;if(n.ambiguousScriptDifferentAst)try{return t.sourceType=`script`,Mn(t,e).parse()}catch{}else r.program.sourceType=`script`;return r}catch(n){try{return t.sourceType=`script`,Mn(t,e).parse()}catch{}throw n}}else return Mn(t,e).parse()}C(On,`parse`);function kn(e,t){let n=Mn(t,e);return n.options.strictMode&&(n.state.strict=!0),n.getExpression()}C(kn,`parseExpression`);function An(e){let t={};for(let n of Object.keys(e))t[n]=we(e[n]);return t}C(An,`generateExportedTokenTypes`);var jn=An(le);function Mn(e,t){let n=Dn,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||{})}hn(r),n=Pn(r)}return new n(e,t,r)}C(Mn,`getParser`);var Nn=new Map;function Pn(e){let t=[];for(let n of _n)e.has(n)&&t.push(n);let n=t.join(`|`),r=Nn.get(n);if(!r){r=Dn;for(let e of t)r=gn[e](r);Nn.set(n,r)}return r}C(Pn,`getParserClass`),e.parse=On,e.parseExpression=kn,e.tokTypes=jn}}),Wr=O({"../../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=(q(),T(K)).__importDefault(Hr());e.parser=function(){try{return Ur()}catch{try{return S(`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)}C(n,`parse`),e.parse=n}}),Gr=O({"../../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=(q(),T(K)),n=Wr(),r=t.__importDefault(Hr());function i(e,t){var i=(0,r.default)(t);return i.plugins.push(`typescript`),n.parser.parse(e,i)}C(i,`parse`),e.parse=i}}),Kr=O({"../../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}}}),qr=O({"../../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):()=>{}}}),Jr=O({"../../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}=Kr(),a=qr();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=C(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=C((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*$`)}}),Yr=O({"../../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=C(e=>e?typeof e==`object`?e:n:r,`parseOptions`)}}),Xr=O({"../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/internal/identifiers.js"(e,t){var n=/^[0-9]+$/,r=C((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:C((e,t)=>r(t,e),`rcompareIdentifiers`)}}}),Zr=O({"../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/classes/semver.js"(e,t){var n=qr(),{MAX_LENGTH:r,MAX_SAFE_INTEGER:i}=Kr(),{safeRe:a,t:o}=Jr(),s=Yr(),{compareIdentifiers:c}=Xr(),l=C((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{C(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}}}}),Qr=O({"../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/functions/parse.js"(e,t){var n=Zr();t.exports=C((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`)}}),$r=O({"../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/functions/valid.js"(e,t){var n=Qr();t.exports=C((e,t)=>{let r=n(e,t);return r?r.version:null},`valid`)}}),ei=O({"../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/functions/clean.js"(e,t){var n=Qr();t.exports=C((e,t)=>{let r=n(e.trim().replace(/^[=v]+/,``),t);return r?r.version:null},`clean`)}}),ti=O({"../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/functions/inc.js"(e,t){var n=Zr();t.exports=C((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`)}}),ni=O({"../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/functions/diff.js"(e,t){var n=Qr();t.exports=C((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`)}}),ri=O({"../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/functions/major.js"(e,t){var n=Zr();t.exports=C((e,t)=>new n(e,t).major,`major`)}}),ii=O({"../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/functions/minor.js"(e,t){var n=Zr();t.exports=C((e,t)=>new n(e,t).minor,`minor`)}}),ai=O({"../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/functions/patch.js"(e,t){var n=Zr();t.exports=C((e,t)=>new n(e,t).patch,`patch`)}}),oi=O({"../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/functions/prerelease.js"(e,t){var n=Qr();t.exports=C((e,t)=>{let r=n(e,t);return r&&r.prerelease.length?r.prerelease:null},`prerelease`)}}),si=O({"../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/functions/compare.js"(e,t){var n=Zr();t.exports=C((e,t,r)=>new n(e,r).compare(new n(t,r)),`compare`)}}),ci=O({"../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/functions/rcompare.js"(e,t){var n=si();t.exports=C((e,t,r)=>n(t,e,r),`rcompare`)}}),li=O({"../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/functions/compare-loose.js"(e,t){var n=si();t.exports=C((e,t)=>n(e,t,!0),`compareLoose`)}}),ui=O({"../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/functions/compare-build.js"(e,t){var n=Zr();t.exports=C((e,t,r)=>{let i=new n(e,r),a=new n(t,r);return i.compare(a)||i.compareBuild(a)},`compareBuild`)}}),di=O({"../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/functions/sort.js"(e,t){var n=ui();t.exports=C((e,t)=>e.sort((e,r)=>n(e,r,t)),`sort`)}}),fi=O({"../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/functions/rsort.js"(e,t){var n=ui();t.exports=C((e,t)=>e.sort((e,r)=>n(r,e,t)),`rsort`)}}),pi=O({"../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/functions/gt.js"(e,t){var n=si();t.exports=C((e,t,r)=>n(e,t,r)>0,`gt`)}}),mi=O({"../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/functions/lt.js"(e,t){var n=si();t.exports=C((e,t,r)=>n(e,t,r)<0,`lt`)}}),hi=O({"../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/functions/eq.js"(e,t){var n=si();t.exports=C((e,t,r)=>n(e,t,r)===0,`eq`)}}),gi=O({"../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/functions/neq.js"(e,t){var n=si();t.exports=C((e,t,r)=>n(e,t,r)!==0,`neq`)}}),_i=O({"../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/functions/gte.js"(e,t){var n=si();t.exports=C((e,t,r)=>n(e,t,r)>=0,`gte`)}}),vi=O({"../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/functions/lte.js"(e,t){var n=si();t.exports=C((e,t,r)=>n(e,t,r)<=0,`lte`)}}),yi=O({"../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/functions/cmp.js"(e,t){var n=hi(),r=gi(),i=pi(),a=_i(),o=mi(),s=vi();t.exports=C((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`)}}),bi=O({"../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/functions/coerce.js"(e,t){var n=Zr(),r=Qr(),{safeRe:i,t:a}=Jr();t.exports=C((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`)}}),xi=O({"../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/functions/truncate.js"(e,t){var n=Qr(),r=Kr(),i=Zr(),a=C((e,t,n)=>{if(!r.RELEASE_TYPES.includes(t))return null;let i=o(e,n);return i&&s(i,t)},`truncate`),o=C((e,t)=>n(e instanceof i?e.version:e,t),`cloneInputVersion`),s=C((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=C(e=>e.startsWith(`pre`),`isPrerelease`);t.exports=a}}),Si=O({"../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/internal/lrucache.js"(e,t){t.exports=class{static{C(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}}}}),Ci=O({"../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/classes/range.js"(e,t){var n=/\s+/g;t.exports=class e{static{C(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,re(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=>ne(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(k(this.set[t],e,this.options))return!0;return!1}};var r=new(Si()),i=Yr(),a=wi(),o=qr(),s=Zr(),{safeRe:c,src:l,t:u,comparatorTrimReplace:d,tildeTrimReplace:f,caretTrimReplace:p}=Jr(),{FLAG_INCLUDE_PRERELEASE:m,FLAG_LOOSE:h}=Kr(),g=new RegExp(l[u.BUILD],`g`),_=C(e=>e.value===`<0.0.0-0`,`isNullSet`),v=C(e=>e.value===``,`isAny`),y=C((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=C((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=te(e,t),o(`stars`,e),e),`parseComparator`),x=C(e=>!e||e.toLowerCase()===`x`||e===`*`,`isX`),S=C((e,t,n)=>x(e)&&!x(t)||x(t)&&n&&!x(n),`invalidXRangeOrder`),w=C((e,t)=>e.trim().split(/\s+/).map(e=>T(e,t)).join(` `),`replaceTildes`),T=C((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 x(n)?c=``:x(i)?c=`>=${n}.0.0${r} <${+n+1}.0.0-0`:x(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=C((e,t)=>e.trim().split(/\s+/).map(e=>D(e,t)).join(` `),`replaceCarets`),D=C((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 x(n)?c=``:x(i)?c=`>=${n}.0.0${r} <${+n+1}.0.0-0`:x(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=C((e,t)=>(o(`replaceXRanges`,e,t),e.split(/\s+/).map(e=>ee(e,t)).join(` `)),`replaceXRanges`),ee=C((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),S(i,a,s))return e;let l=x(i),u=l||x(a),d=u||x(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`),te=C((e,t)=>(o(`replaceStars`,e,t),e.trim().replace(c[u.STAR],``)),`replaceStars`),ne=C((e,t)=>(o(`replaceGTE0`,e,t),e.trim().replace(c[t.includePrerelease?u.GTE0PRE:u.GTE0],``)),`replaceGTE0`),re=C(e=>(t,n,r,i,a,o,s,c,l,u,d,f)=>(n=x(r)?``:x(i)?`>=${r}.0.0${e?`-0`:``}`:x(a)?`>=${r}.${i}.0${e?`-0`:``}`:o?`>=${n}`:`>=${n}${e?`-0`:``}`,c=x(l)?``:x(u)?`<${+l+1}.0.0-0`:x(d)?`<${l}.${+u+1}.0-0`:f?`<=${l}.${u}.${d}-${f}`:e?`<${l}.${u}.${+d+1}-0`:`<=${c}`,`${n} ${c}`.trim()),`hyphenReplace`),k=C((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`)}}),wi=O({"../../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{C(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=Yr(),{safeRe:i,t:a}=Jr(),o=yi(),s=qr(),c=Zr(),l=Ci()}}),Ti=O({"../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/functions/satisfies.js"(e,t){var n=Ci();t.exports=C((e,t,r)=>{try{t=new n(t,r)}catch{return!1}return t.test(e)},`satisfies`)}}),Ei=O({"../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/ranges/to-comparators.js"(e,t){var n=Ci();t.exports=C((e,t)=>new n(e,t).set.map(e=>e.map(e=>e.value).join(` `).trim().split(` `)),`toComparators`)}}),Di=O({"../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/ranges/max-satisfying.js"(e,t){var n=Zr(),r=Ci();t.exports=C((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`)}}),Oi=O({"../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/ranges/min-satisfying.js"(e,t){var n=Zr(),r=Ci();t.exports=C((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`)}}),ki=O({"../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/ranges/min-version.js"(e,t){var n=Zr(),r=Ci(),i=pi();t.exports=C((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`)}}),Ai=O({"../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/ranges/valid.js"(e,t){var n=Ci();t.exports=C((e,t)=>{try{return new n(e,t).range||`*`}catch{return null}},`validRange`)}}),ji=O({"../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/ranges/outside.js"(e,t){var n=Zr(),r=wi(),{ANY:i}=r,a=Ci(),o=Ti(),s=pi(),c=mi(),l=vi(),u=_i();t.exports=C((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`)}}),Mi=O({"../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/ranges/gtr.js"(e,t){var n=ji();t.exports=C((e,t,r)=>n(e,t,`>`,r),`gtr`)}}),Ni=O({"../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/ranges/ltr.js"(e,t){var n=ji();t.exports=C((e,t,r)=>n(e,t,`<`,r),`ltr`)}}),Pi=O({"../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/ranges/intersects.js"(e,t){var n=Ci();t.exports=C((e,t,r)=>(e=new n(e,r),t=new n(t,r),e.intersects(t,r)),`intersects`)}}),Fi=O({"../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/ranges/simplify.js"(e,t){var n=Ti(),r=si();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}}}),Ii=O({"../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/ranges/subset.js"(e,t){var n=Ci(),r=wi(),{ANY:i}=r,a=Ti(),o=si(),s=C((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=C((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=C((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=C((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}}),Li=O({"../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/index.js"(e,t){var n=Jr(),r=Kr(),i=Zr(),a=Xr();t.exports={parse:Qr(),valid:$r(),clean:ei(),inc:ti(),diff:ni(),major:ri(),minor:ii(),patch:ai(),prerelease:oi(),compare:si(),rcompare:ci(),compareLoose:li(),compareBuild:ui(),sort:di(),rsort:fi(),gt:pi(),lt:mi(),eq:hi(),neq:gi(),gte:_i(),lte:vi(),cmp:yi(),coerce:bi(),truncate:xi(),Comparator:wi(),Range:Ci(),satisfies:Ti(),toComparators:Ei(),maxSatisfying:Di(),minSatisfying:Oi(),minVersion:ki(),validRange:Ai(),outside:ji(),gtr:Mi(),ltr:Ni(),intersects:Pi(),simplifyRange:Fi(),subset:Ii(),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=O({"../../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=C(e=>!!e&&typeof e==`object`&&e[s]===t,`isAlias`),l=C(e=>!!e&&typeof e==`object`&&e[s]===n,`isDocument`),u=C(e=>!!e&&typeof e==`object`&&e[s]===r,`isMap`),d=C(e=>!!e&&typeof e==`object`&&e[s]===i,`isPair`),f=C(e=>!!e&&typeof e==`object`&&e[s]===a,`isScalar`),p=C(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}C(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}C(h,`isNode`);var g=C(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}}),Ri=O({"../../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([]))}C(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}C(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([]))}C(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}C(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}C(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)}C(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`)}}C(d,`replaceNode`),e.visit=a,e.visitAsync=s}}),zi=O({"../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/doc/directives.js"(e){var t=Y(),n=Ri(),r={"!":`%21`,",":`%2C`,"[":`%5B`,"]":`%5D`,"{":`%7B`,"}":`%7D`},i=C(e=>e.replace(/[!,[\]{}]/g,e=>r[e]),`escapeTagName`),a=class e{static{C(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(`
118
- `)}};a.defaultYaml={explicit:!1,version:`1.2`},a.defaultTags={"!!":`tag:yaml.org,2002:`},e.Directives=a}}),Bi=O({"../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/doc/anchors.js"(e){var t=Y(),n=Ri();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}C(r,`anchorIsValid`);function i(e){let t=new Set;return n.visit(e,{Value(e,n){n.anchor&&t.add(n.anchor)}}),t}C(i,`anchorNames`);function a(e,t){for(let n=1;;++n){let r=`${e}${n}`;if(!t.has(r))return r}}C(a,`findNewAnchor`);function o(e,n){let r=[],o=new Map,s=null;return{onAnchor:C(t=>{r.push(t),s??=i(e);let o=a(n,s);return s.add(o),o},`onAnchor`),setAnchors:C(()=>{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}}C(o,`createNodeAnchors`),e.anchorIsValid=r,e.anchorNames=i,e.createNodeAnchors=o,e.findNewAnchor=a}}),Vi=O({"../../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)}C(t,`applyReviver`),e.applyReviver=t}}),Hi=O({"../../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}C(n,`toJS`),e.toJS=n}}),Ui=O({"../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/nodes/Node.js"(e){var t=Vi(),n=Y(),r=Hi();e.NodeBase=class{static{C(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}}}}),Wi=O({"../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/nodes/Alias.js"(e){var t=Bi(),n=Ri(),r=Y(),i=Ui(),a=Hi(),o=class extends i.NodeBase{static{C(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:C((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}C(s,`getAliasCount`),e.Alias=o}}),Gi=O({"../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/nodes/Scalar.js"(e){var t=Y(),n=Ui(),r=Hi(),i=C(e=>!e||typeof e!=`function`&&typeof e!=`object`,`isScalarValue`),a=class extends n.NodeBase{static{C(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}}),Ki=O({"../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/doc/createNode.js"(e){var t=Wi(),n=Y(),r=Gi(),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)}C(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}C(o,`createNode`),e.createNode=o}}),qi=O({"../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/nodes/Collection.js"(e){var t=Ki(),n=Y(),r=Ui();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:C(()=>{throw Error(`This should not happen, please report a bug.`)},`onAnchor`),schema:e,sourceObjects:new Map})}C(i,`collectionFromPath`);var a=C(e=>e==null||typeof e==`object`&&!!e[Symbol.iterator]().next().done,`isEmptyPath`);e.Collection=class extends r.NodeBase{static{C(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}}),Ji=O({"../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/stringify/stringifyComment.js"(e){var t=C(e=>e.replace(/^(?!$)(?: $)?/gm,`#`),`stringifyComment`);function n(e,t){return/^\n+$/.test(e)?e.substring(1):t?e.replace(/^(?! *$)/gm,t):e}C(n,`indentComment`);var r=C((e,t,r)=>e.endsWith(`
119
- `)?n(r,t):r.includes(`
120
- `)?`
121
- `+n(r,t):(e.endsWith(` `)?``:` `)+r,`lineComment`);e.indentComment=n,e.lineComment=r,e.stringifyComment=t}}),Yi=O({"../../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===`
122
- `)i===n&&(v=a(e,v,t.length)),m=v+t.length+d,h=void 0;else{if(o===` `&&g&&g!==` `&&g!==`
123
- `&&g!==` `){let t=e[v+1];t&&t!==` `&&t!==`
124
- `&&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=`
125
- ${t}${e.slice(0,o)}`:(i===r&&p[a]&&(x+=`${e[a]}\\`),x+=`
126
- ${t}${e.slice(a+1,o)}`)}return x}C(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!==`
127
- `);r=t,i=t+1,a=e[i]}return r}C(a,`consumeMoreIndentedLines`),e.FOLD_BLOCK=n,e.FOLD_FLOW=t,e.FOLD_QUOTED=r,e.foldFlowLines=i}}),Xi=O({"../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/stringify/stringifyString.js"(e){var t=Gi(),n=Yi(),r=C((e,t)=>({indentAtStart:t?e.indent.length:e.indentAtStart,lineWidth:e.options.lineWidth,minContentWidth:e.options.minContentWidth}),`getFoldOptions`),i=C(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]===`
128
- `){if(t-n>r)return!0;if(n=t+1,i-n<=r)return!1}return!0}C(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)+`
129
-
130
- `;a[e+2]===`\\`&&a[e+3]===`n`&&a[e+4]!==`"`;)l+=`
131
- `,e+=2;l+=c,a[e+2]===` `&&(l+=`\\`),e+=1,u=e+1}break;default:e+=1}return l=u?l+a.slice(u):a,o?l:n.foldFlowLines(l,c,n.FOLD_QUOTED,r(t,!1))}C(o,`doubleQuotedString`);function s(e,t){if(t.options.singleQuote===!1||t.implicitKey&&e.includes(`
132
- `)||/[ \t]\n|\n[ \t]/.test(e))return o(e,t);let a=t.indent||(i(e)?` `:``),s=`'`+e.replace(/'/g,`''`).replace(/\n+/g,`$&
133
- ${a}`)+`'`;return t.implicitKey?s:n.foldFlowLines(s,a,n.FOLD_FLOW,r(t,!1))}C(s,`singleQuotedString`);function c(e,t){let{singleQuote:n}=t.options,r;if(n===!1)r=o;else{let t=e.includes(`"`),i=e.includes(`'`);r=t&&!i?s:i&&!t?o:n?s:o}return r(e,t)}C(c,`quotedString`);var l;try{l=RegExp(`(^|(?<!
134
- ))
135
- +(?!
136
- |$)`,`g`)}catch{l=/\n+(?!\n|$)/g}function u({comment:e,type:o,value:s},u,d,f){let{blockQuote:p,commentString:m,lineWidth:h}=u.options;if(!p||/\n[\t ]+$/.test(s))return c(s,u);let g=u.indent||(u.forceBlockIndent||i(s)?` `:``),_=p===`literal`?!0:p===`folded`||o===t.Scalar.BLOCK_FOLDED?!1:o===t.Scalar.BLOCK_LITERAL?!0:!a(s,h,g.length);if(!s)return _?`|
137
- `:`>
138
- `;let v,y;for(y=s.length;y>0;--y){let e=s[y-1];if(e!==`
139
- `&&e!==` `&&e!==` `)break}let b=s.substring(y),x=b.indexOf(`
140
- `);x===-1?v=`-`:s===b||x!==b.length-1?(v=`+`,f&&f()):v=``,b&&=(s=s.slice(0,-b.length),b[b.length-1]===`
141
- `&&(b=b.slice(0,-1)),b.replace(l,`$&${g}`));let S=!1,C,w=-1;for(C=0;C<s.length;++C){let e=s[C];if(e===` `)S=!0;else if(e===`
142
- `)w=C;else break}let T=s.substring(0,w<C?w+1:C);T&&=(s=s.substring(T.length),T.replace(/\n+/g,`$&${g}`));let E=(S?g?`2`:`1`:``)+v;if(e&&(E+=` `+m(e.replace(/ ?[\r\n]+/g,` `)),d&&d()),!_){let e=s.replace(/\n+/g,`
143
- $&`).replace(/(?:^|\n)([\t ].*)(?:([\n\t ]*)\n(?![\n\t ]))?/g,`$1$2`).replace(/\n+/g,`$&${g}`),i=!1,a=r(u,!0);p!==`folded`&&o!==t.Scalar.BLOCK_FOLDED&&(a.onOverflow=()=>{i=!0});let c=n.foldFlowLines(`${T}${e}${b}`,g,n.FOLD_BLOCK,a);if(!i)return`>${E}
144
- ${g}${c}`}return s=s.replace(/\n+/g,`$&${g}`),`|${E}
145
- ${g}${T}${s}${b}`}C(u,`blockString`);function d(e,a,o,s){let{type:l,value:d}=e,{actualString:f,implicitKey:p,indent:m,indentStep:h,inFlow:g}=a;if(p&&d.includes(`
146
- `)||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(`
147
- `)?c(d,a):u(e,a,o,s);if(!p&&!g&&l!==t.Scalar.PLAIN&&d.includes(`
148
- `))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,`$&
149
- ${m}`);if(f){let e=C(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))}C(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=C(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}C(f,`stringifyString`),e.stringifyString=f}}),Zi=O({"../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/stringify/stringify.js"(e){var t=Bi(),n=Y(),r=Ji(),i=Xi();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}}C(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}C(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(` `)}C(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:C(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}
150
- ${t.indent}${d}`:d}C(c,`stringify`),e.createStringifyContext=a,e.stringify=c}}),Qi=O({"../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/stringify/stringifyPair.js"(e){var t=Y(),n=Gi(),r=Zi(),i=Ji();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}
151
- ${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?`
152
- `:``,S){let e=p(S);E+=`
153
- ${i.indentComment(e,o.indent)}`}T===``&&!o.inFlow?E===`
154
- `&&C&&(E=`
155
-
156
- `):E+=`
157
- ${o.indent}`}else if(!_&&t.isCollection(a)){let e=T[0],t=T.indexOf(`
158
- `),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=`
159
- ${o.indent}`)}}else (T===``||T[0]===`
160
- `)&&(E=``);return b+=E+T,o.inFlow?w&&s&&s():C&&!w?b+=i.lineComment(b,o.indent,p(C)):y&&c&&c(),b}C(a,`stringifyPair`),e.stringifyPair=a}}),$i=O({"../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/log.js"(e){var t=S(`process`);function n(e,...t){e===`debug`&&console.log(...t)}C(n,`debug`);function r(e,n){(e===`debug`||e===`warn`)&&(typeof t.emitWarning==`function`?t.emitWarning(n):console.warn(n))}C(r,`warn`),e.debug=n,e.warn=r}}),ea=O({"../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/schema/yaml-1.1/merge.js"(e){var t=Y(),n=Gi(),r=`<<`,i={identify:C(e=>e===r||typeof e==`symbol`&&e.description===r,`identify`),default:`key`,tag:`tag:yaml.org,2002:merge`,test:/^<<$/,resolve:C(()=>Object.assign(new n.Scalar(Symbol(r)),{addToJSMap:o}),`resolve`),stringify:C(()=>r,`stringify`)},a=C((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)}C(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}C(s,`mergeValue`);function c(e,n){return e&&t.isAlias(n)?n.resolve(e.doc,e):n}C(c,`resolveAliasValue`),e.addMergeToJSMap=o,e.isMergeKey=a,e.merge=i}}),ta=O({"../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/nodes/addPairToJSMap.js"(e){var t=$i(),n=ea(),r=Zi(),i=Y(),a=Hi();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}C(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)}C(s,`stringifyKey`),e.addPairToJSMap=o}}),na=O({"../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/nodes/Pair.js"(e){var t=Ki(),n=Qi(),r=ta(),i=Y();function a(e,n,r){return new o(t.createNode(e,void 0,r),t.createNode(n,void 0,r))}C(a,`createPair`);var o=class e{static{C(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}}),ra=O({"../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/stringify/stringifyCollection.js"(e){var t=Y(),n=Zi(),r=Ji();function i(e,t,n){return(t.inFlow??e.flow?o:a)(e,t,n)}C(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?`
161
- ${f}${t}`:`
162
- `}}return e?(_+=`
163
- `+r.indentComment(p(e),f),d&&d()):h&&u&&u(),_}C(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(`
164
- `),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?`
165
- ${l}${c}${t}`:`
166
- `;return`${e}
167
- ${c}${_}`}else return`${g}${u}${h.join(` `)}${u}${_}`}C(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())}}C(s,`addCommentBefore`),e.stringifyCollection=i}}),ia=O({"../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/nodes/YAMLMap.js"(e){var t=ra(),n=ta(),r=qi(),i=Y(),a=na(),o=Gi();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}C(s,`findPair`),e.YAMLMap=class extends r.Collection{static{C(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=C((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}}),aa=O({"../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/schema/common/map.js"(e){var t=Y(),n=ia();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:C((e,t,r)=>n.YAMLMap.from(e,t,r),`createNode`)}}}),oa=O({"../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/nodes/YAMLSeq.js"(e){var t=Ki(),n=ra(),r=qi(),i=Y(),a=Gi(),o=Hi(),s=class extends r.Collection{static{C(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}C(c,`asItemIndex`),e.YAMLSeq=s}}),sa=O({"../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/schema/common/seq.js"(e){var t=Y(),n=oa();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:C((e,t,r)=>n.YAMLSeq.from(e,t,r),`createNode`)}}}),ca=O({"../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/schema/common/string.js"(e){var t=Xi();e.string={identify:C(e=>typeof e==`string`,`identify`),default:!0,tag:`tag:yaml.org,2002:str`,resolve:C(e=>e,`resolve`),stringify(e,n,r,i){return n=Object.assign({actualString:!0},n),t.stringifyString(e,n,r,i)}}}}),la=O({"../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/schema/common/null.js"(e){var t=Gi(),n={identify:C(e=>e==null,`identify`),createNode:C(()=>new t.Scalar(null),`createNode`),default:!0,tag:`tag:yaml.org,2002:null`,test:/^(?:~|[Nn]ull|NULL)?$/,resolve:C(()=>new t.Scalar(null),`resolve`),stringify:C(({source:e},t)=>typeof e==`string`&&n.test.test(e)?e:t.options.nullStr,`stringify`)};e.nullTag=n}}),ua=O({"../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/schema/core/bool.js"(e){var t=Gi(),n={identify:C(e=>typeof e==`boolean`,`identify`),default:!0,tag:`tag:yaml.org,2002:bool`,test:/^(?:[Tt]rue|TRUE|[Ff]alse|FALSE)$/,resolve:C(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}}),da=O({"../../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}C(t,`stringifyNumber`),e.stringifyNumber=t}}),fa=O({"../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/schema/core/float.js"(e){var t=Gi(),n=da(),r={identify:C(e=>typeof e==`number`,`identify`),default:!0,tag:`tag:yaml.org,2002:float`,test:/^(?:[-+]?\.(?:inf|Inf|INF)|\.nan|\.NaN|\.NAN)$/,resolve:C(e=>e.slice(-3).toLowerCase()===`nan`?NaN:e[0]===`-`?-1/0:1/0,`resolve`),stringify:n.stringifyNumber},i={identify:C(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:C(e=>parseFloat(e),`resolve`),stringify(e){let t=Number(e.value);return isFinite(t)?t.toExponential():n.stringifyNumber(e)}};e.float={identify:C(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}}),pa=O({"../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/schema/core/int.js"(e){var t=da(),n=C(e=>typeof e==`bigint`||Number.isInteger(e),`intIdentify`),r=C((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)}C(i,`intStringify`);var a={identify:C(e=>n(e)&&e>=0,`identify`),default:!0,tag:`tag:yaml.org,2002:int`,format:`OCT`,test:/^0o[0-7]+$/,resolve:C((e,t,n)=>r(e,2,8,n),`resolve`),stringify:C(e=>i(e,8,`0o`),`stringify`)},o={identify:n,default:!0,tag:`tag:yaml.org,2002:int`,test:/^[-+]?[0-9]+$/,resolve:C((e,t,n)=>r(e,0,10,n),`resolve`),stringify:t.stringifyNumber},s={identify:C(e=>n(e)&&e>=0,`identify`),default:!0,tag:`tag:yaml.org,2002:int`,format:`HEX`,test:/^0x[0-9a-fA-F]+$/,resolve:C((e,t,n)=>r(e,2,16,n),`resolve`),stringify:C(e=>i(e,16,`0x`),`stringify`)};e.int=o,e.intHex=s,e.intOct=a}}),ma=O({"../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/schema/core/schema.js"(e){var t=aa(),n=la(),r=sa(),i=ca(),a=ua(),o=fa(),s=pa();e.schema=[t.map,r.seq,i.string,n.nullTag,a.boolTag,s.intOct,s.int,s.intHex,o.floatNaN,o.floatExp,o.float]}}),ha=O({"../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/schema/json/schema.js"(e){var t=Gi(),n=aa(),r=sa();function i(e){return typeof e==`bigint`||Number.isInteger(e)}C(i,`intIdentify`);var a=C(({value:e})=>JSON.stringify(e),`stringifyJSON`),o=[{identify:C(e=>typeof e==`string`,`identify`),default:!0,tag:`tag:yaml.org,2002:str`,resolve:C(e=>e,`resolve`),stringify:a},{identify:C(e=>e==null,`identify`),createNode:C(()=>new t.Scalar(null),`createNode`),default:!0,tag:`tag:yaml.org,2002:null`,test:/^null$/,resolve:C(()=>null,`resolve`),stringify:a},{identify:C(e=>typeof e==`boolean`,`identify`),default:!0,tag:`tag:yaml.org,2002:bool`,test:/^true$|^false$/,resolve:C(e=>e===`true`,`resolve`),stringify:a},{identify:i,default:!0,tag:`tag:yaml.org,2002:int`,test:/^-?(?:0|[1-9][0-9]*)$/,resolve:C((e,t,{intAsBigInt:n})=>n?BigInt(e):parseInt(e,10),`resolve`),stringify:C(({value:e})=>i(e)?e.toString():JSON.stringify(e),`stringify`)},{identify:C(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:C(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}})}}),ga=O({"../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/schema/yaml-1.1/binary.js"(e){var t=S(`buffer`),n=Gi(),r=Xi();e.binary={identify:C(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?`
168
- `:` `)}return r.stringifyString({comment:e,type:i,value:u},o,s,c)}}}}),_a=O({"../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/schema/yaml-1.1/pairs.js"(e){var t=Y(),n=na(),r=Gi(),i=oa();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}
169
- ${e.key.commentBefore}`:o.commentBefore),o.comment){let t=e.value??e.key;t.comment=t.comment?`${o.comment}
170
- ${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}C(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}C(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}}),va=O({"../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/schema/yaml-1.1/omap.js"(e){var t=Y(),n=Hi(),r=ia(),i=oa(),a=_a(),o=class e extends i.YAMLSeq{static{C(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:C(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:C((e,t,n)=>o.from(e,t,n),`createNode`)};e.YAMLOMap=o,e.omap=s}}),ya=O({"../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/schema/yaml-1.1/bool.js"(e){var t=Gi();function n({value:e,source:t},n){return t&&(e?r:i).test.test(t)?t:e?n.options.trueStr:n.options.falseStr}C(n,`boolStringify`);var r={identify:C(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:C(()=>new t.Scalar(!0),`resolve`),stringify:n},i={identify:C(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:C(()=>new t.Scalar(!1),`resolve`),stringify:n};e.falseTag=i,e.trueTag=r}}),ba=O({"../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/schema/yaml-1.1/float.js"(e){var t=Gi(),n=da(),r={identify:C(e=>typeof e==`number`,`identify`),default:!0,tag:`tag:yaml.org,2002:float`,test:/^(?:[-+]?\.(?:inf|Inf|INF)|\.nan|\.NaN|\.NAN)$/,resolve:C(e=>e.slice(-3).toLowerCase()===`nan`?NaN:e[0]===`-`?-1/0:1/0,`resolve`),stringify:n.stringifyNumber},i={identify:C(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:C(e=>parseFloat(e.replace(/_/g,``)),`resolve`),stringify(e){let t=Number(e.value);return isFinite(t)?t.toExponential():n.stringifyNumber(e)}};e.float={identify:C(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}}),xa=O({"../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/schema/yaml-1.1/int.js"(e){var t=da(),n=C(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}C(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)}C(i,`intStringify`);var a={identify:n,default:!0,tag:`tag:yaml.org,2002:int`,format:`BIN`,test:/^[-+]?0b[0-1_]+$/,resolve:C((e,t,n)=>r(e,2,2,n),`resolve`),stringify:C(e=>i(e,2,`0b`),`stringify`)},o={identify:n,default:!0,tag:`tag:yaml.org,2002:int`,format:`OCT`,test:/^[-+]?0[0-7_]+$/,resolve:C((e,t,n)=>r(e,1,8,n),`resolve`),stringify:C(e=>i(e,8,`0`),`stringify`)},s={identify:n,default:!0,tag:`tag:yaml.org,2002:int`,test:/^[-+]?[0-9][0-9_]*$/,resolve:C((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:C((e,t,n)=>r(e,2,16,n),`resolve`),stringify:C(e=>i(e,16,`0x`),`stringify`)};e.int=s,e.intBin=a,e.intHex=c,e.intOct=o}}),Sa=O({"../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/schema/yaml-1.1/set.js"(e){var t=Y(),n=na(),r=ia(),i=class e extends r.YAMLMap{static{C(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:C(e=>e instanceof Set,`identify`),nodeClass:i,default:!1,tag:`tag:yaml.org,2002:set`,createNode:C((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}}),Ca=O({"../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/schema/yaml-1.1/timestamp.js"(e){var t=da();function n(e,t){let n=e[0],r=n===`-`||n===`+`?e.substring(1):e,i=C(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}C(n,`parseSexagesimal`);function r(e){let{value:n}=e,r=C(e=>e,`num`);if(typeof n==`bigint`)r=C(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*$/,``)}C(r,`stringifySexagesimal`);var i={identify:C(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:C((e,t,{intAsBigInt:r})=>n(e,r),`resolve`),stringify:r},a={identify:C(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:C(e=>n(e,!1),`resolve`),stringify:r},o={identify:C(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:C(({value:e})=>e?.toISOString().replace(/(T00:00:00)?\.000Z$/,``)??``,`stringify`)};e.floatTime=a,e.intTime=i,e.timestamp=o}}),wa=O({"../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/schema/yaml-1.1/schema.js"(e){var t=aa(),n=la(),r=sa(),i=ca(),a=ga(),o=ya(),s=ba(),c=xa(),l=ea(),u=va(),d=_a(),f=Sa(),p=Ca();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]}}),Ta=O({"../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/schema/tags.js"(e){var t=aa(),n=la(),r=sa(),i=ca(),a=ua(),o=fa(),s=pa(),c=ma(),l=ha(),u=ga(),d=ea(),f=va(),p=_a(),m=wa(),h=Sa(),g=Ca(),_=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},[])}C(b,`getTags`),e.coreKnownTags=y,e.getTags=b}}),Ea=O({"../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/schema/Schema.js"(e){var t=Y(),n=aa(),r=sa(),i=ca(),a=Ta(),o=C((e,t)=>e.key<t.key?-1:+(e.key>t.key),`sortMapEntriesByKey`);e.Schema=class e{static{C(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}}}}),Da=O({"../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/stringify/stringifyDocument.js"(e){var t=Y(),n=Zi(),r=Ji();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(`
171
- `)?(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(`
172
- `)+`
173
- `}C(i,`stringifyDocument`),e.stringifyDocument=i}}),Oa=O({"../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/doc/Document.js"(e){var t=Wi(),n=qi(),r=Y(),i=na(),a=Hi(),o=Ea(),s=Da(),c=Bi(),l=Vi(),u=Ki(),d=zi(),f=class e{static{C(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=C(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`)}C(p,`assertCollection`),e.Document=f}}),ka=O({"../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/errors.js"(e){var t=class extends Error{static{C(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{C(this,`YAMLParseError`)}constructor(e,t,n){super(`YAMLParseError`,e,t,n)}},r=class extends t{static{C(this,`YAMLWarning`)}constructor(e,t,n){super(`YAMLWarning`,e,t,n)}},i=C((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)+`…
174
- `),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+=`:
175
-
176
- ${o}
177
- ${s}
178
- `}},`prettifyError`);e.YAMLError=t,e.YAMLParseError=n,e.YAMLWarning=r,e.prettifyError=i}}),Aa=O({"../../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}}C(t,`resolveProps`),e.resolveProps=t}}),ja=O({"../../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(`
179
- `))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}}C(t,`containsNewline`),e.containsNewline=t}}),Ma=O({"../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/compose/util-flow-indent-check.js"(e){var t=ja();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)}}C(n,`flowIndentCheck`),e.flowIndentCheck=n}}),Na=O({"../../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))}C(n,`mapIncludes`),e.mapIncludes=n}}),Pa=O({"../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/compose/resolve-block-map.js"(e){var t=na(),n=ia(),r=Aa(),i=ja(),a=Ma(),o=Na(),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+=`
180
- `+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+=`
181
- `+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}C(c,`resolveBlockMap`),e.resolveBlockMap=c}}),Fa=O({"../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/compose/resolve-block-seq.js"(e){var t=oa(),n=Aa(),r=Ma();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}C(i,`resolveBlockSeq`),e.resolveBlockSeq=i}}),Ia=O({"../../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}}C(t,`resolveEnd`),e.resolveEnd=t}}),La=O({"../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/compose/resolve-flow-collection.js"(e){var t=Y(),n=na(),r=ia(),i=oa(),a=Ia(),o=Aa(),s=ja(),c=Na(),l=`Block collections are not allowed within flow collections`,u=C(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+=`
182
- `+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+=`
183
- `+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+=`
184
- `+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+=`
185
- `+e.comment:v.comment=e.comment),v.range=[p.offset,w,e.offset]}else v.range=[p.offset,w,w];return v}C(d,`resolveFlowCollection`),e.resolveFlowCollection=d}}),Ra=O({"../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/compose/compose-collection.js"(e){var t=Y(),n=Gi(),r=ia(),i=oa(),a=Pa(),o=Fa(),s=La();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)}C(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}C(l,`composeCollection`),e.composeCollection=l}}),za=O({"../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/compose/resolve-block-scalar.js"(e){var t=Gi();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?`
186
- `.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)+`
187
- `;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=`
188
- `):n.length>d||r[0]===` `?(h===` `?h=`
189
- `:!g&&h===`
190
- `&&(h=`
191
-
192
- `),m+=h+n.slice(d)+r,h=`
193
- `,g=!0):r===``?h===`
194
- `?m+=`
195
- `:h=`
196
- `:(m+=h+r,h=` `,g=!1)}switch(s.chomp){case`-`:break;case`+`:for(let e=u;e<l.length;++e)m+=`
197
- `+l[e][0].slice(d);m[m.length-1]!==`
198
- `&&(m+=`
199
- `);break;default:m+=`
200
- `}let _=o+s.length+n.source.length;return{value:m,type:c,comment:s.comment,range:[o,_,_]}}C(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}}C(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}C(i,`splitLines`),e.resolveBlockScalar=n}}),Ba=O({"../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/compose/resolve-flow-scalar.js"(e){var t=Gi(),n=Ia();function r(e,r,o){let{offset:c,type:l,source:u,end:d}=e,f,p,m=C((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]}}C(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)}C(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,`'`)}C(a,`singleQuotedValue`);function o(e){let t,n;try{t=RegExp(`(.*?)(?<![ ])[ ]*\r?
201
- `,`sy`),n=RegExp(`[ ]*(.*?)(?:(?<![ ])[ ]*)?\r?
202
- `,`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===`
203
- `?i+=a:a=`
204
- `:(i+=a+r[1],a=` `),o=n.lastIndex;let s=/[ \t]*(.*)/sy;return s.lastIndex=o,r=s.exec(e),i+a+(r?.[1]??``)}C(o,`foldLines`);function s(e,t){let n=``;for(let r=1;r<e.length-1;++r){let i=e[r];if(!(i===`\r`&&e[r+1]===`
205
- `))if(i===`
206
- `){let{fold:t,offset:i}=c(e,r);n+=t,r=i}else if(i===`\\`){let i=e[++r],a=l[i];if(a)n+=a;else if(i===`
207
- `)for(i=e[r+1];i===` `||i===` `;)i=e[++r+1];else if(i===`\r`&&e[r+1]===`
208
- `)for(i=e[++r+1];i===` `||i===` `;)i=e[++r+1];else if(i===`x`||i===`u`||i===`U`){let a=i===`x`?2:i===`u`?4:8;n+=u(e,r+1,a,t),r+=a}else{let i=e.substr(r-1,2);t(r-1,`BAD_DQ_ESCAPE`,`Invalid escape sequence ${i}`),n+=i}}else if(i===` `||i===` `){let t=r,a=e[r+1];for(;a===` `||a===` `;)a=e[++r+1];a!==`
209
- `&&!(a===`\r`&&e[r+2]===`
210
- `)&&(n+=r>t?e.slice(t,r+1):i)}else n+=i}return(e[e.length-1]!==`"`||e.length===1)&&t(e.length,`MISSING_CHAR`,`Missing closing "quote`),n}C(s,`doubleQuotedValue`);function c(e,t){let n=``,r=e[t+1];for(;(r===` `||r===` `||r===`
211
- `||r===`\r`)&&!(r===`\r`&&e[t+2]!==`
212
- `);)r===`
213
- `&&(n+=`
214
- `),t+=1,r=e[t+1];return n||=` `,{fold:n,offset:t}}C(c,`foldNewline`);var l={0:`\0`,a:`\x07`,b:`\b`,e:`\x1B`,f:`\f`,n:`
215
- `,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}}C(u,`parseCharCode`),e.resolveFlowScalar=r}}),Va=O({"../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/compose/compose-scalar.js"(e){var t=Y(),n=Gi(),r=za(),i=Ba();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}C(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])}C(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}C(s,`findScalarTagByTest`),e.composeScalar=a}}),Ha=O({"../../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}C(t,`emptyScalarPosition`),e.emptyScalarPosition=t}}),Ua=O({"../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/compose/compose-node.js"(e){var t=Wi(),n=Y(),r=Ra(),i=Va(),a=Ia(),o=Ha(),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}C(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}C(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}C(u,`composeAlias`),e.composeEmptyNode=l,e.composeNode=c}}),Wa=O({"../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/compose/compose-doc.js"(e){var t=Oa(),n=Ua(),r=Ia(),i=Aa();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}C(a,`composeDoc`),e.composeDoc=a}}),Ga=O({"../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/compose/composer.js"(e){var t=S(`process`),n=zi(),r=Oa(),i=ka(),a=Y(),o=Wa(),s=Ia();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)]}C(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?`
216
-
217
- `:`
218
- `)+(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}}C(l,`parsePrelude`),e.Composer=class{static{C(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}
219
- ${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}
220
- ${t}`:n}else{let e=i.commentBefore;i.commentBefore=e?`${n}
221
- ${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}
222
- ${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}}}}}),Ka=O({"../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/parse/cst-scalar.js"(e){var t=za(),n=Ba(),r=ka(),i=Xi();function a(e,i=!0,a){if(e){let o=C((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}C(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:`
223
- `}];switch(c[0]){case`|`:case`>`:{let e=c.indexOf(`
224
- `),t=c.substring(0,e),n=c.substring(e+1)+`
225
- `,i=[{type:`block-scalar-header`,offset:o,indent:r,source:t}];return l(i,u)||i.push({type:`newline`,offset:-1,indent:r,source:`
226
- `}),{type:`block-scalar`,offset:o,indent:r,props:i,source:n}}case`"`:return{type:`double-quoted-scalar`,offset:o,indent:r,source:c,end:u};case`'`:return{type:`single-quoted-scalar`,offset:o,indent:r,source:c,end:u};default:return{type:`scalar`,offset:o,indent:r,source:c,end:u}}}C(o,`createScalarToken`);function s(e,t,n={}){let{afterKey:r=!1,implicitKey:a=!1,inFlow:o=!1,type:s}=n,l=`indent`in e?e.indent:null;if(r&&typeof l==`number`&&(l+=2),!s)switch(e.type){case`single-quoted-scalar`:s=`QUOTE_SINGLE`;break;case`double-quoted-scalar`:s=`QUOTE_DOUBLE`;break;case`block-scalar`:{let t=e.props[0];if(t.type!==`block-scalar-header`)throw Error(`Invalid block scalar header`);s=t.source[0]===`>`?`BLOCK_FOLDED`:`BLOCK_LITERAL`;break}default:s=`PLAIN`}let d=i.stringifyString({type:s,value:t},{implicitKey:a||l===null,indent:l!==null&&l>0?` `.repeat(l):``,inFlow:o,options:{blockQuote:!0,lineWidth:-1}});switch(d[0]){case`|`:case`>`:c(e,d);break;case`"`:u(e,d,`double-quoted-scalar`);break;case`'`:u(e,d,`single-quoted-scalar`);break;default:u(e,d,`scalar`)}}C(s,`setScalarValue`);function c(e,t){let n=t.indexOf(`
227
- `),r=t.substring(0,n),i=t.substring(n+1)+`
228
- `;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:`
229
- `});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})}}C(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}C(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:`
230
- `};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})}}}C(u,`setFlowScalarValue`),e.createScalarToken=o,e.resolveAsScalar=a,e.setScalarValue=s}}),qa=O({"../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/parse/cst-stringify.js"(e){var t=C(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}}}C(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}C(r,`stringifyItem`),e.stringify=t}}),Ja=O({"../../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)}C(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}C(a,`_visit`),e.visit=i}}),Ya=O({"../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/parse/cst.js"(e){var t=Ka(),n=qa(),r=Ja(),i=``,a=``,o=``,s=``,c=C(e=>!!e&&`items`in e,`isCollection`),l=C(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)}}C(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`
231
- `:case`\r
232
- `: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}C(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}}),Xa=O({"../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/parse/lexer.js"(e){var t=Ya();function n(e){switch(e){case void 0:case` `:case`
233
- `:case`\r`:case` `:return!0;default:return!1}}C(n,`isEmpty`);var r=new Set(`0123456789ABCDEFabcdef`),i=new Set(`0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-#;/?:@&=+$_.!~*'()`),a=new Set(`,[]{}`),o=new Set(` ,[]{}
234
- \r `),s=C(e=>!e||o.has(e),`isNotAnchorChar`);e.Lexer=class{static{C(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===`
235
- `?!0:t===`\r`?this.buffer[e+1]===`
236
- `:!1}charAt(e){return this.buffer[this.pos+e]}continueScalar(e){let t=this.buffer[e];if(this.indentNext>0){let n=0;for(;t===` `;)t=this.buffer[++n+e];if(t===`\r`){let t=this.buffer[n+e+1];if(t===`
237
- `||!t&&!this.atEnd)return e+n+1}return t===`
238
- `||n>=this.indentNext||!t&&!this.atEnd?e+n:-1}if(t===`-`||t===`.`){let t=this.buffer.substr(e,3);if((t===`---`||t===`...`)&&n(this.buffer[e+3]))return-1}return e}getLine(){let e=this.lineEndPos;return(typeof e!=`number`||e!==-1&&e<this.pos)&&(e=this.buffer.indexOf(`
239
- `,this.pos),this.lineEndPos=e),e===-1?this.atEnd?this.buffer.substring(this.pos):null:(this.buffer[e-1]===`\r`&&--e,this.buffer.substring(this.pos,e))}hasChars(e){return this.pos+e<=this.buffer.length}setNext(e){return this.buffer=this.buffer.substring(this.pos),this.pos=0,this.lineEndPos=null,this.next=e,null}peek(e){return this.buffer.substr(this.pos,e)}*parseNext(e){switch(e){case`stream`:return yield*this.parseStream();case`line-start`:return yield*this.parseLineStart();case`block-start`:return yield*this.parseBlockStart();case`doc`:return yield*this.parseDocument();case`flow`:return yield*this.parseFlowCollection();case`quoted-scalar`:return yield*this.parseQuotedScalar();case`block-scalar`:return yield*this.parseBlockScalar();case`plain-scalar`:return yield*this.parsePlainScalar()}}*parseStream(){let e=this.getLine();if(e===null)return this.setNext(`stream`);if(e[0]===t.BOM&&(yield*this.pushCount(1),e=e.substring(1)),e[0]===`%`){let t=e.length,n=e.indexOf(`#`);for(;n!==-1;){let r=e[n-1];if(r===` `||r===` `){t=n-1;break}else n=e.indexOf(`#`,n+1)}for(;;){let n=e[t-1];if(n===` `||n===` `)--t;else break}let r=(yield*this.pushCount(t))+(yield*this.pushSpaces(!0));return yield*this.pushCount(e.length-r),this.pushNewline(),`stream`}if(this.atLineEnd()){let t=yield*this.pushSpaces(!0);return yield*this.pushCount(e.length-t),yield*this.pushNewline(),`stream`}return yield t.DOCUMENT,yield*this.parseLineStart()}*parseLineStart(){let e=this.charAt(0);if(!e&&!this.atEnd)return this.setNext(`line-start`);if(e===`-`||e===`.`){if(!this.atEnd&&!this.hasChars(4))return this.setNext(`line-start`);let e=this.peek(3);if((e===`---`||e===`...`)&&n(this.charAt(3)))return yield*this.pushCount(3),this.indentValue=0,this.indentNext=0,e===`---`?`doc`:`stream`}return this.indentValue=yield*this.pushSpaces(!1),this.indentNext>this.indentValue&&!n(this.charAt(1))&&(this.indentNext=this.indentValue),yield*this.parseBlockStart()}*parseBlockStart(){let[e,t]=this.peek(2);if(!t&&!this.atEnd)return this.setNext(`block-start`);if((e===`-`||e===`?`||e===`:`)&&n(t)){let e=(yield*this.pushCount(1))+(yield*this.pushSpaces(!0));return this.indentNext=this.indentValue+1,this.indentValue+=e,`block-start`}return`doc`}*parseDocument(){yield*this.pushSpaces(!0);let e=this.getLine();if(e===null)return this.setNext(`doc`);let t=yield*this.pushIndicators();switch(e[t]){case`#`:yield*this.pushCount(e.length-t);case void 0:return yield*this.pushNewline(),yield*this.parseLineStart();case`{`:case`[`:return yield*this.pushCount(1),this.flowKey=!1,this.flowLevel=1,`flow`;case`}`:case`]`:return yield*this.pushCount(1),`doc`;case`*`:return yield*this.pushUntil(s),`doc`;case`"`:case`'`:return yield*this.parseQuotedScalar();case`|`:case`>`:return t+=yield*this.parseBlockScalarHeader(),t+=yield*this.pushSpaces(!0),yield*this.pushCount(e.length-t),yield*this.pushNewline(),yield*this.parseBlockScalar();default:return yield*this.parsePlainScalar()}}*parseFlowCollection(){let e,r,i=-1;do e=yield*this.pushNewline(),e>0?(r=yield*this.pushSpaces(!1),this.indentValue=i=r):r=0,r+=yield*this.pushSpaces(!0);while(e+r>0);let a=this.getLine();if(a===null)return this.setNext(`flow`);if((i!==-1&&i<this.indentNext&&a[0]!==`#`||i===0&&(a.startsWith(`---`)||a.startsWith(`...`))&&n(a[3]))&&!(i===this.indentNext-1&&this.flowLevel===1&&(a[0]===`]`||a[0]===`}`)))return this.flowLevel=0,yield t.FLOW_END,yield*this.parseLineStart();let o=0;for(;a[o]===`,`;)o+=yield*this.pushCount(1),o+=yield*this.pushSpaces(!0),this.flowKey=!1;switch(o+=yield*this.pushIndicators(),a[o]){case void 0:return`flow`;case`#`:return yield*this.pushCount(a.length-o),`flow`;case`{`:case`[`:return yield*this.pushCount(1),this.flowKey=!1,this.flowLevel+=1,`flow`;case`}`:case`]`:return yield*this.pushCount(1),this.flowKey=!0,--this.flowLevel,this.flowLevel?`flow`:`doc`;case`*`:return yield*this.pushUntil(s),`flow`;case`"`:case`'`:return this.flowKey=!0,yield*this.parseQuotedScalar();case`:`:{let e=this.charAt(1);if(this.flowKey||n(e)||e===`,`)return this.flowKey=!1,yield*this.pushCount(1),yield*this.pushSpaces(!0),`flow`}default:return this.flowKey=!1,yield*this.parsePlainScalar()}}*parseQuotedScalar(){let e=this.charAt(0),t=this.buffer.indexOf(e,this.pos+1);if(e===`'`)for(;t!==-1&&this.buffer[t+1]===`'`;)t=this.buffer.indexOf(`'`,t+2);else for(;t!==-1;){let e=0;for(;this.buffer[t-1-e]===`\\`;)e+=1;if(e%2==0)break;t=this.buffer.indexOf(`"`,t+1)}let n=this.buffer.substring(0,t),r=n.indexOf(`
240
- `,this.pos);if(r!==-1){for(;r!==-1;){let e=this.continueScalar(r+1);if(e===-1)break;r=n.indexOf(`
241
- `,e)}r!==-1&&(t=r-(n[r-1]===`\r`?2:1))}if(t===-1){if(!this.atEnd)return this.setNext(`quoted-scalar`);t=this.buffer.length}return yield*this.pushToIndex(t+1,!1),this.flowLevel?`flow`:`doc`}*parseBlockScalarHeader(){this.blockScalarIndent=-1,this.blockScalarKeep=!1;let e=this.pos;for(;;){let t=this.buffer[++e];if(t===`+`)this.blockScalarKeep=!0;else if(t>`0`&&t<=`9`)this.blockScalarIndent=Number(t)-1;else if(t!==`-`)break}return yield*this.pushUntil(e=>n(e)||e===`#`)}*parseBlockScalar(){let e=this.pos-1,n=0,r;loop:for(let t=this.pos;r=this.buffer[t];++t)switch(r){case` `:n+=1;break;case`
242
- `:e=t,n=0;break;case`\r`:{let e=this.buffer[t+1];if(!e&&!this.atEnd)return this.setNext(`block-scalar`);if(e===`
243
- `)break}default:break loop}if(!r&&!this.atEnd)return this.setNext(`block-scalar`);if(n>=this.indentNext){this.blockScalarIndent===-1?this.indentNext=n:this.indentNext=this.blockScalarIndent+(this.indentNext===0?1:this.indentNext);do{let t=this.continueScalar(e+1);if(t===-1)break;e=this.buffer.indexOf(`
244
- `,t)}while(e!==-1);if(e===-1){if(!this.atEnd)return this.setNext(`block-scalar`);e=this.buffer.length}}let i=e+1;for(r=this.buffer[i];r===` `;)r=this.buffer[++i];if(r===` `){for(;r===` `||r===` `||r===`\r`||r===`
245
- `;)r=this.buffer[++i];e=i-1}else if(!this.blockScalarKeep)do{let t=e-1,r=this.buffer[t];r===`\r`&&(r=this.buffer[--t]);let i=t;for(;r===` `;)r=this.buffer[--t];if(r===`
246
- `&&t>=this.pos&&t+1+n>i)e=t;else break}while(!0);return yield t.SCALAR,yield*this.pushToIndex(e+1,!0),yield*this.parseLineStart()}*parsePlainScalar(){let e=this.flowLevel>0,r=this.pos-1,i=this.pos-1,o;for(;o=this.buffer[++i];)if(o===`:`){let t=this.buffer[i+1];if(n(t)||e&&a.has(t))break;r=i}else if(n(o)){let t=this.buffer[i+1];if(o===`\r`&&(t===`
247
- `?(i+=1,o=`
248
- `,t=this.buffer[i+1]):r=i),t===`#`||e&&a.has(t))break;if(o===`
249
- `){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===`
250
- `?yield*this.pushCount(1):e===`\r`&&this.charAt(1)===`
251
- `?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)}}}}),Za=O({"../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/parse/line-counter.js"(e){e.LineCounter=class{static{C(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}}}}}}),Qa=O({"../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/parse/parser.js"(e){var t=S(`process`),n=Ya(),r=Xa();function i(e,t){for(let n=0;n<e.length;++n)if(e[n].type===t)return!0;return!1}C(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}C(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}}C(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[]}}C(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)}C(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])}C(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)}C(u,`fixFlowSeqItems`),e.Parser=class{static{C(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(`
252
- `)+1;for(;e!==0;)this.onNewLine(this.offset+e),e=this.source.indexOf(`
253
- `,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(`
254
- `)+1;for(;e!==0;)this.onNewLine(this.offset+e),e=this.source.indexOf(`
255
- `,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())}}}}}),$a=O({"../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/public-api.js"(e){var t=Ga(),n=Oa(),r=ka(),i=$i(),a=Y(),o=Za(),s=Qa();function c(e){let t=e.prettyErrors!==!1;return{lineCounter:e.lineCounter||t&&new o.LineCounter||null,prettyErrors:t}}C(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())}C(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}C(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))}C(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)}C(f,`stringify`),e.parse=d,e.parseAllDocuments=l,e.parseDocument=u,e.stringify=f}}),eo=O({"../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/index.js"(e){var t=Ga(),n=Oa(),r=Ea(),i=ka(),a=Wi(),o=Y(),s=na(),c=Gi(),l=ia(),u=oa(),d=Ya(),f=Xa(),p=Za(),m=Qa(),h=$a(),g=Ri();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}}),to=O({"../../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)}C(e,`_isNumber`);function t(e){return e.charAt(0).toUpperCase()+e.substring(1)}C(t,`_capitalize`);function n(e){return function(){return this[e]}}C(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]])}C(s,`StackFrame`),s.prototype={getArgs:C(function(){return this.args},`getArgs`),setArgs:C(function(e){if(Object.prototype.toString.call(e)!==`[object Array]`)throw TypeError(`Args must be an Array`);this.args=e},`setArgs`),getEvalOrigin:C(function(){return this.evalOrigin},`getEvalOrigin`),setEvalOrigin:C(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:C(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=C(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})}}),no=O({"../../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(to()):n.ErrorStackParser=r(n.StackFrame)})(e,C(function(e){var t=/(^|@)\S+:\d+/,n=/^\s*at .*(\S+:\d+|\(native\))/m,r=/^(eval@)?(\[native code])?$/;return{parse:C(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:C(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:C(function(t){return t.stack.split(`
256
- `).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:C(function(t){return t.stack.split(`
257
- `).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:C(function(e){return!e.stacktrace||e.message.indexOf(`
258
- `)>-1&&e.message.split(`
259
- `).length>e.stacktrace.split(`
260
- `).length?this.parseOpera9(e):e.stack?this.parseOpera11(e):this.parseOpera10(e)},`ErrorStackParser$$parseOpera`),parseOpera9:C(function(t){for(var n=/Line (\d+).*script (?:in )?(\S+)/i,r=t.message.split(`
261
- `),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:C(function(t){for(var n=/Line (\d+).*script (?:in )?(\S+)(?:: In function (\S+))?$/i,r=t.stacktrace.split(`
262
- `),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:C(function(n){return n.stack.split(`
263
- `).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`))}}),ro=O({"../../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}}C(n,`isError`)}}),io=O({"../../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(to()):n.StackGenerator=r(n.StackFrame)})(e,function(e){return{backtrace:C(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`)}})}}),ao=O({"../../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}}C(n,`wrappy`)}}),oo=O({"../../node_modules/.pnpm/once@1.4.0/node_modules/once/once.js"(e,t){var n=ao();t.exports=n(r),t.exports.strict=n(i),r.proto=r(function(){Object.defineProperty(Function.prototype,`once`,{value:C(function(){return r(this)},`value`),configurable:!0}),Object.defineProperty(Function.prototype,`onceStrict`,{value:C(function(){return i(this)},`value`),configurable:!0})});function r(e){var t=C(function(){return t.called?t.value:(t.called=!0,t.value=e.apply(this,arguments))},`f`);return t.called=!1,t}C(r,`once`);function i(e){var t=C(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}C(i,`onceStrict`)}}),so=O({"../../node_modules/.pnpm/end-of-stream@1.4.4/node_modules/end-of-stream/index.js"(e,t){var n=oo(),r=C(function(){},`noop`),i=C(function(e){return e.setHeader&&typeof e.abort==`function`},`isRequest`),a=C(function(e){return e.stdio&&Array.isArray(e.stdio)&&e.stdio.length===3},`isChildProcess`),o=C(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=C(function(){e.writable||m()},`onlegacyfinish`),m=C(function(){d=!1,u||s.call(e)},`onfinish`),h=C(function(){u=!1,d||s.call(e)},`onend`),g=C(function(t){s.call(e,t?Error(`exited with error code: `+t):null)},`onexit`),_=C(function(t){s.call(e,t)},`onerror`),v=C(function(){process.nextTick(y)},`onclose`),y=C(function(){if(!f&&(u&&!(l&&l.ended&&!l.destroyed)||d&&!(c&&c.ended&&!c.destroyed)))return s.call(e,Error(`premature close`))},`onclosenexttick`),b=C(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}}),co=O({"../../node_modules/.pnpm/pump@3.0.0/node_modules/pump/index.js"(e,t){var n=oo(),r=so(),i=S(`fs`),a=C(function(){},`noop`),o=/^v?\.0/.test(process.version),s=C(function(e){return typeof e==`function`},`isFn`),c=C(function(e){return!o||!i?!1:(e instanceof(i.ReadStream||a)||e instanceof(i.WriteStream||a))&&s(e.close)},`isFS`),l=C(function(e){return e.setHeader&&s(e.abort)},`isRequest`),u=C(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=C(function(e){e()},`call`),f=C(function(e,t){return e.pipe(t)},`pipe`);t.exports=C(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`)}}),lo=O({"../../node_modules/.pnpm/byline@5.0.0/node_modules/byline/lib/byline.js"(e,t){var n=S(`stream`),r=S(`util`),i=S(`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}C(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)})}C(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]==`
264
- `&&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)}}}),uo=O({"../../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}C(e,`Breadcrumb`);var t=e.prototype;return t.toJSON=C(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=C(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=C(function(e,t){return n(e,function(e,n,r,i){return t(n,r,i)?e.concat(n):e},[])},`_$filter_17`),i=C(function(e,t){return n(e,function(e,n,r,i){return e===!0||n===t},!1)},`_$includes_18`),a=C(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=C(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=C(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=C(function(e){return typeof e==`function`||a(e)&&r(e,function(e){return typeof e==`function`}).length===e.length},`_$listOfFunctions_32`),d=C(function(e){return typeof e==`string`&&!!e.length},`_$stringWithLength_33`),f={},p=C(function(){return{unhandledExceptions:!0,unhandledRejections:!0}},`defaultErrorTypes`);f.schema={apiKey:{defaultValue:C(function(){return null},`defaultValue`),message:`is required`,validate:d},appVersion:{defaultValue:C(function(){},`defaultValue`),message:`should be a string`,validate:C(function(e){return e===void 0||d(e)},`validate`)},appType:{defaultValue:C(function(){},`defaultValue`),message:`should be a string`,validate:C(function(e){return e===void 0||d(e)},`validate`)},autoDetectErrors:{defaultValue:C(function(){return!0},`defaultValue`),message:`should be true|false`,validate:C(function(e){return e===!0||e===!1},`validate`)},enabledErrorTypes:{defaultValue:C(function(){return p()},`defaultValue`),message:`should be an object containing the flags { unhandledExceptions:true|false, unhandledRejections:true|false }`,allowPartialObject:!0,validate:C(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:C(function(){return[]},`defaultValue`),message:`should be a function or array of functions`,validate:u},onSession:{defaultValue:C(function(){return[]},`defaultValue`),message:`should be a function or array of functions`,validate:u},onBreadcrumb:{defaultValue:C(function(){return[]},`defaultValue`),message:`should be a function or array of functions`,validate:u},endpoints:{defaultValue:C(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:C(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:C(function(e){return!0},`defaultValue`),message:`should be true|false`,validate:C(function(e){return e===!0||e===!1},`validate`)},enabledReleaseStages:{defaultValue:C(function(){return null},`defaultValue`),message:`should be an array of strings`,validate:C(function(e){return e===null||a(e)&&r(e,function(e){return typeof e==`string`}).length===e.length},`validate`)},releaseStage:{defaultValue:C(function(){return`production`},`defaultValue`),message:`should be a string`,validate:C(function(e){return typeof e==`string`&&e.length},`validate`)},maxBreadcrumbs:{defaultValue:C(function(){return 25},`defaultValue`),message:`should be a number ≤100`,validate:C(function(e){return l(0,100)(e)},`validate`)},enabledBreadcrumbTypes:{defaultValue:C(function(){return t},`defaultValue`),message:`should be null or a list of available breadcrumb types (`+t.join(`,`)+`)`,validate:C(function(e){return e===null||a(e)&&n(e,function(e,n){return e===!1?e:i(t,n)},!0)},`validate`)},context:{defaultValue:C(function(){},`defaultValue`),message:`should be a string`,validate:C(function(e){return e===void 0||typeof e==`string`},`validate`)},user:{defaultValue:C(function(){return{}},`defaultValue`),message:`should be an object with { id, email, name } properties`,validate:C(function(e){return e===null||e&&n(c(e),function(e,t){return e&&i([`id`,`email`,`name`],t)},!0)},`validate`)},metadata:{defaultValue:C(function(){return{}},`defaultValue`),message:`should be an object`,validate:C(function(e){return typeof e==`object`&&!!e},`validate`)},logger:{defaultValue:C(function(){},`defaultValue`),message:`should be null or an object with methods { debug, info, warn, error }`,validate:C(function(e){return!e||e&&n([`debug`,`info`,`warn`,`error`],function(t,n){return t&&typeof e[n]==`function`},!0)},`validate`)},redactedKeys:{defaultValue:C(function(){return[`password`]},`defaultValue`),message:`should be an array of strings|regexes`,validate:C(function(e){return a(e)&&e.length===r(e,function(e){return typeof e==`string`||e&&typeof e.test==`function`}).length},`validate`)},plugins:{defaultValue:C(function(){return[]},`defaultValue`),message:`should be an array of plugin objects`,validate:C(function(e){return a(e)&&e.length===r(e,function(e){return e&&typeof e==`object`&&typeof e.load==`function`}).length},`validate`)},featureFlags:{defaultValue:C(function(){return[]},`defaultValue`),message:`should be an array of objects that have a "name" property`,validate:C(function(e){return a(e)&&e.length===r(e,function(e){return e&&typeof e==`object`&&typeof e.name==`string`}).length},`validate`)},reportUnhandledPromiseRejectionsAsHandled:{defaultValue:C(function(){return!1},`defaultValue`),message:`should be true|false`,validate:C(function(e){return e===!0||e===!1},`validate`)},sendPayloadChecksums:{defaultValue:C(function(){return!1},`defaultValue`),message:`should be true|false`,validate:C(function(e){return e===!0||e===!1},`validate`)}};var m=no(),h=C(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=C(function(e,t){return n(e,function(e,n,r,i){return e.concat(t(n,r,i))},[])},`_$map_21`),_=C(function(e,t,n,r){var i=r&&r.redactedKeys?r.redactedKeys:[],a=r&&r.redactedPaths?r.redactedPaths:[];return JSON.stringify(ne(e,i,a),t,n)},`_$safeJsonStringify_5`),v=20,y=25e3,b=8,x=`...`;function w(e){return e instanceof Error||/^\[object (Error|(Dom)?Exception)\]$/.test(Object.prototype.toString.call(e))}C(w,`isError`);function T(e){return`[Throws: `+(e?e.message:`?`)+`]`}C(T,`throwsMessage`);function E(e,t){for(var n=0,r=e.length;n<r;n++)if(e[n]===t)return!0;return!1}C(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}C(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}C(O,`shouldRedact`);function ee(e){return Object.prototype.toString.call(e)===`[object Array]`}C(ee,`__isArray_5`);function te(e,t){try{return e[t]}catch(e){return T(e)}}C(te,`safelyGetProp`);function ne(e,t,n){var r=[],i=0;function a(e,o){function s(){return o.length>b&&i>y}if(C(s,`edgesExceeded`),i++,o.length>v||s())return x;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(x);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]=x;break}p[m]=a(te(e,m),o.concat(m))}}catch{}return r.pop(),p}return C(a,`visit`),a(e,[])}C(ne,`prepareObjForSerialization`);function re(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}}C(re,`add`);function k(e,t,n){if(a(t)){for(var r=0;r<t.length;++r){var i=t[r];typeof i!=`object`||!i||re(e,n,i.name,i.variant)}return e}}C(k,`merge`);function A(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})}C(A,`toEventApi`);function ie(e,t,n){var r=t[n];typeof r==`number`&&(e[r]=null,delete t[n])}C(ie,`clear`);var j={add:re,clear:ie,merge:k,toEventApi:A},M=C(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`),ae=ro(),oe=C(function(e,t,n,r){var i;if(t){var a;if(n===null)return ce(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`),se=C(function(e,t,n){if(typeof t==`string`){if(!n)return e[t];if(e[t])return e[t][n]}},`get`),ce=C(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`),N={add:oe,get:se,clear:ce};function P(){return P=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},P.apply(null,arguments)}C(P,`_extends`);var le=io(),F=function(){function e(t,n,r,i,a){r===void 0&&(r=[]),i===void 0&&(i=fe()),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=[me(t,n,e.__type,r)]}C(e,`Event`);var t=e.prototype;return t.addMetadata=C(function(e,t,n){return N.add(this._metadata,e,t,n)},`addMetadata`),t.setTraceCorrelation=C(function(e,t){typeof e==`string`&&(this._correlation=P({traceId:e},typeof t==`string`?{spanId:t}:{}))},`setTraceCorrelation`),t.getGroupingDiscriminator=C(function(){return this._groupingDiscriminator},`getGroupingDiscriminator`),t.setGroupingDiscriminator=C(function(e){var t=this._groupingDiscriminator;return(typeof e==`string`||e==null)&&(this._groupingDiscriminator=e),t},`setGroupingDiscriminator`),t.getMetadata=C(function(e,t){return N.get(this._metadata,e,t)},`getMetadata`),t.clearMetadata=C(function(e,t){return N.clear(this._metadata,e,t)},`clearMetadata`),t.addFeatureFlag=C(function(e,t){t===void 0&&(t=null),j.add(this._features,this._featuresIndex,e,t)},`addFeatureFlag`),t.addFeatureFlags=C(function(e){j.merge(this._features,e,this._featuresIndex)},`addFeatureFlags`),t.getFeatureFlags=C(function(){return j.toEventApi(this._features)},`getFeatureFlags`),t.clearFeatureFlag=C(function(e){j.clear(this._features,this._featuresIndex,e)},`clearFeatureFlag`),t.clearFeatureFlags=C(function(){this._features=[],this._featuresIndex={}},`clearFeatureFlags`),t.getUser=C(function(){return this._user},`getUser`),t.setUser=C(function(e,t,n){this._user={id:e,email:t,name:n}},`setUser`),t.toJSON=C(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}(),ue=C(function(e){var t={file:e.fileName,method:de(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`),de=C(function(e){return/^global code$/i.test(e)?`global code`:e},`normaliseFunctionName`),fe=C(function(){return{unhandled:!1,severity:`warning`,severityReason:{type:`handledException`}}},`defaultHandledState`),pe=C(function(e){return typeof e==`string`?e:``},`ensureString`);function me(e,t,r,i){return{errorClass:pe(e),errorMessage:pe(t),type:r,stacktrace:n(i,function(e,t){var n=ue(t);try{return JSON.stringify(n)===`{}`?e:e.concat(n)}catch{return e}},[])}}C(me,`createBugsnagError`);function he(e){return e.cause?[e].concat(he(e.cause)):[e]}C(he,`getCauseStack`),F.getStacktrace=function(e,t,n){if(M(e))return m.parse(e).slice(t);try{return r(le.backtrace(),function(e){return(e.functionName||``).indexOf(`StackGenerator$$`)===-1}).slice(1+n)}catch{return[]}},F.create=function(e,t,n,r,i,a){i===void 0&&(i=0);var o=_e(e,t,r,a),s=o[0],c=o[1],l;try{var u=F.getStacktrace(s,c>0?1+c+i:0,1+i);l=new F(s.name,s.message,u,n,e)}catch{l=new F(s.name,s.message,[],n,e)}if(s.name===`InvalidError`&&l.addMetadata(``+r,`non-error parameter`,ge(e)),s.cause){var d,f=g(he(s).slice(1),function(e){var t=ae(e)&&M(e)?m.parse(e):[],n=_e(e,!0,`error cause`)[0];return n.name===`InvalidError`&&l.addMetadata(`error cause`,ge(e)),me(n.name,n.message,F.__type,t)});(d=l.errors).push.apply(d,f)}return l};var ge=C(function(e){return e===null?`null`:e===void 0?`undefined`:e},`makeSerialisable`),_e=C(function(e,t,n,r){var i,a=0,o=C(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)ae(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&&ae(e)?i=e:e!==null&&I(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(!M(i))try{throw i}catch(e){M(e)&&(i=e,a=1)}return[i,a]},`normaliseError`);F.__type=`browserjs`;var I=C(function(e){return(typeof e.name==`string`||typeof e.errorClass==`string`)&&(typeof e.message==`string`||typeof e.errorMessage==`string`)},`hasNecessaryFields`),ve=F,ye=C(function(e,t,n){var r=0,i=C(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`),be=C(function(e,t,n,r){ye(e,C(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`),xe=C(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`),Se=C(function(e,t){var n=`000000000`+e;return n.substr(n.length-t)},`pad`),L=S(`os`);function R(){try{return L.hostname()}catch{return process.env._CLUSTER_NETWORK_NAME_||process.env.COMPUTERNAME||`hostname`}}C(R,`getHostname`);var Ce=2,z=Se(process.pid.toString(36),Ce),we=R(),Te=we.length,Ee=Se(we.split(``).reduce(function(e,t){return+e+t.charCodeAt(0)},+Te+36).toString(36),Ce),De=C(function(){return z+Ee},`fingerprint`),Oe=C(function(e){return typeof e==`string`&&/^c[a-z0-9]{20,32}$/.test(e)},`isCuid`),B=0,ke=4,Ae=36,je=Ae**+ke;function Me(){return Se((Math.random()*je<<0).toString(Ae),ke)}C(Me,`randomBlock`);function Ne(){return B=B<je?B:0,B++,B-1}C(Ne,`safeCounter`);function Pe(){var e=`c`,t=new Date().getTime().toString(Ae),n=Se(Ne().toString(Ae),ke),r=De(),i=Me()+Me();return e+t+n+r+i}C(Pe,`cuid`),Pe.fingerprint=De,Pe.isCuid=Oe;var Fe=Pe,Ie=function(){function e(){this.id=Fe(),this.startedAt=new Date,this._handled=0,this._unhandled=0,this._user={},this.app={},this.device={}}C(e,`Session`);var t=e.prototype;return t.getUser=C(function(){return this._user},`getUser`),t.setUser=C(function(e,t,n){this._user={id:e,email:t,name:n}},`setUser`),t.toJSON=C(function(){return{id:this.id,startedAt:this.startedAt,events:{handled:this._handled,unhandled:this._unhandled}}},`toJSON`),t._track=C(function(e){this[e._handledState.unhandled?`_unhandled`:`_handled`]+=1},`_track`),e}(),Le=j.add,Re=j.clear,ze=j.merge,Be=`00000`,Ve=`https://notify.insighthub.smartbear.com`,He=`https://sessions.insighthub.smartbear.com`,V=C(function(){},`noop`),Ue=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:V,sendEvent:V},this._logger={debug:V,info:V,warn:V,error:V},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=ve,this.Breadcrumb=e,this.Session=Ie,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)}}C(a,`Client`);var o=a.prototype;return o.addMetadata=C(function(e,t,n){return N.add(this._metadata,e,t,n)},`addMetadata`),o.getMetadata=C(function(e,t){return N.get(this._metadata,e,t)},`getMetadata`),o.clearMetadata=C(function(e,t){return N.clear(this._metadata,e,t)},`clearMetadata`),o.addFeatureFlag=C(function(e,t){t===void 0&&(t=null),Le(this._features,this._featuresIndex,e,t)},`addFeatureFlag`),o.addFeatureFlags=C(function(e){ze(this._features,e,this._featuresIndex)},`addFeatureFlags`),o.clearFeatureFlag=C(function(e){Re(this._features,this._featuresIndex,e)},`clearFeatureFlag`),o.clearFeatureFlags=C(function(){this._features=[],this._featuresIndex={}},`clearFeatureFlags`),o.getContext=C(function(){return this._context},`getContext`),o.setContext=C(function(e){this._context=e},`setContext`),o.getGroupingDiscriminator=C(function(){return this._groupingDiscriminator},`getGroupingDiscriminator`),o.setGroupingDiscriminator=C(function(e){var t=this._groupingDiscriminator;return(typeof e==`string`||e==null)&&(this._groupingDiscriminator=e),t},`setGroupingDiscriminator`),o._configure=C(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(Be)&&(o.endpoints={notify:Ve,sessions:He})}return this._metadata=h({},o.metadata),ze(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(We(a,e)),o},`_configure`),o.getUser=C(function(){return this._user},`getUser`),o.setUser=C(function(e,t,n){this._user={id:e,email:t,name:n}},`setUser`),o._loadPlugin=C(function(e){var t=e.load(this);e.name&&(this._plugins[`~`+e.name+`~`]=t)},`_loadPlugin`),o.getPlugin=C(function(e){return this._plugins[`~`+e+`~`]},`getPlugin`),o._setDelivery=C(function(e){this._delivery=e(this)},`_setDelivery`),o.startSession=C(function(){var e=new Ie;return e.app.releaseStage=this._config.releaseStage,e.app.version=this._config.appVersion,e.app.type=this._config.appType,e._user=h({},this._user),xe(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=C(function(e,t){t===void 0&&(t=!1),this._cbs.e[t?`unshift`:`push`](e)},`addOnError`),o.removeOnError=C(function(e){this._cbs.e=r(this._cbs.e,function(t){return t!==e})},`removeOnError`),o._addOnSessionPayload=C(function(e){this._cbs.sp.push(e)},`_addOnSessionPayload`),o.addOnSession=C(function(e){this._cbs.s.push(e)},`addOnSession`),o.removeOnSession=C(function(e){this._cbs.s=r(this._cbs.s,function(t){return t!==e})},`removeOnSession`),o.addOnBreadcrumb=C(function(e,t){t===void 0&&(t=!1),this._cbs.b[t?`unshift`:`push`](e)},`addOnBreadcrumb`),o.removeOnBreadcrumb=C(function(e){this._cbs.b=r(this._cbs.b,function(t){return t!==e})},`removeOnBreadcrumb`),o.pauseSession=C(function(){return this._sessionDelegate.pauseSession(this)},`pauseSession`),o.resumeSession=C(function(){return this._sessionDelegate.resumeSession(this)},`resumeSession`),o.leaveBreadcrumb=C(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(xe(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=C(function(e){var t=this._config.enabledBreadcrumbTypes;return t===null||i(t,e)},`_isBreadcrumbTypeEnabled`),o.notify=C(function(e,t,n){n===void 0&&(n=V);var r=ve.create(e,!0,void 0,`notify()`,this._depth+1,this._logger);this._notify(r,t,n)},`notify`),o._notify=C(function(e,t,n){var r=this;if(n===void 0&&(n=V),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),ze(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=C(function(e){r._logger.error(`Error occurred in onError callback, continuing anyway…`),r._logger.error(e)},`onCallbackError`);be([].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}(),We=C(function(e,t){return Error(`Invalid configuration
265
- `+g(c(e),function(n){return` - `+n+` `+e[n]+`, got `+Ge(t[n])}).join(`
266
-
267
- `))},`generateConfigErrorMessage`),Ge=C(function(e){switch(typeof e){case`string`:case`number`:case`object`:return JSON.stringify(e);default:return String(e)}},`stringify`),Ke=Ue,H={},qe=[`events.[].metaData`,`events.[].breadcrumbs.[].metaData`,`events.[].request`];H.event=function(e,t){var n=_(e,null,null,{redactedPaths:qe,redactedKeys:t});return n.length>1e6&&(e.events[0]._metadata={notifier:`WARNING!
268
- Serialized payload was `+n.length/1e6+`MB (limit = 1MB)
269
- metadata was removed`},n=_(e,null,null,{redactedPaths:qe,redactedKeys:t})),n},H.session=function(e,t){return _(e,null,null)};var Je=S(`http`),Ye=S(`https`),Xe=S(`url`).parse,Ze=C(function(e,t){var n=e.url,r=e.headers,i=e.body,a=e.agent,o=!1,s=C(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+`
270
- `+r));t(null,r)})}),l.write(i),l.end()},`_$request_36`),Qe=C(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=C(function(e){return{sendEvent:C(function(t,n){n===void 0&&(n=C(function(){},`cb`));var r=H.event(t,e._config.redactedKeys),i=C(function(t){t&&e._logger.error(`Event failed to send…
271
- `+(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:C(function(t,n){n===void 0&&(n=C(function(){},`cb`));var r=C(function(t){t&&e._logger.error(`Session failed to send…
272
- `+(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:H.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)}C(et,`___extends_37`);var tt=f.schema,nt=S(`os`),U=S(`util`).inspect,rt={appType:et({},tt.appType,{defaultValue:C(function(){return`node`},`defaultValue`)}),projectRoot:{defaultValue:C(function(){return process.cwd()},`defaultValue`),validate:C(function(e){return e===null||d(e)},`validate`),message:`should be string`},hostname:{defaultValue:C(function(){return nt.hostname()},`defaultValue`),message:`should be a string`,validate:C(function(e){return e===null||d(e)},`validate`)},logger:et({},tt.logger,{defaultValue:C(function(){return at()},`defaultValue`)}),releaseStage:et({},tt.releaseStage,{defaultValue:C(function(){return`production`},`defaultValue`)}),agent:{defaultValue:C(function(){},`defaultValue`),message:`should be an HTTP(s) agent`,validate:C(function(e){return e===void 0||st(e)},`validate`)},onUncaughtException:{defaultValue:C(function(){return function(e,t,n){n.error(`Uncaught exception`+ot(t)+`, the process will now terminate…
273
- `+it(e)),process.exit(1)}},`defaultValue`),message:`should be a function`,validate:C(function(e){return typeof e==`function`},`validate`)},onUnhandledRejection:{defaultValue:C(function(){return function(e,t,n){n.error(`Unhandled rejection`+ot(t)+`…
274
- `+it(e))}},`defaultValue`),message:`should be a function`,validate:C(function(e){return typeof e==`function`},`validate`)}},it=C(function(e){return e&&e.stack?e.stack:U(e)},`printError`),at=C(function(){return[`debug`,`info`,`warn`,`error`].reduce(function(e,t){return e[t]=(console[t]||console.log).bind(console,`[bugsnag]`),e},{})},`getPrefixedConsole`),ot=C(function(e){return e.request&&Object.keys(e.request).length?` at `+e.request.httpMethod+` `+(e.request.path||e.request.url):``},`getContext`),st=C(function(e){return typeof e==`object`&&!!e||typeof e==`boolean`},`isAgent`),ct=new Date,lt=C(function(){ct=new Date},`reset`),ut={name:`appDuration`,load:C(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=C(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(`
275
- `).slice(3).join(`
276
- `)},ht.maybeUseFallbackStack=function(e,t){var n=e.stack.split(`
277
- `);return(n.length===1||n.length===2&&/at Error \(native\)/.test(n[1]))&&(e.stack=n[0]+`
278
- `+t),e};var gt={},_t=ht.getStack;gt={name:`contextualize`,load:C(function(e){return C(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:C(function(e){return C(function(t,n){t===void 0&&(t=C(function(){},`onError`)),typeof n!=`function`&&(n=t,t=C(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)}C(xt,`___extends_43`);var St=S(`os`),Ct={load:C(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=S(`path`),Tt=wt.join,Et=wt.resolve,Dt=C(function(e){return Tt(Et(e),`/`)},`_$pathNormalizer_29`),Ot={load:C(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)}C(kt,`___extends_45`);function At(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,jt(e,t)}C(At,`_inheritsLoose`);function jt(e,t){return jt=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},jt(e,t)}C(jt,`_setPrototypeOf`);var Mt=3,Nt=200,Pt=S(`fs`).createReadStream,Ft=S(`stream`).Writable,It=co(),Lt=lo(),W=S(`path`),Rt={load:C(function(e){if(e._config.sendCode){var t=C(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);Vt(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:C(function(){return!0},`defaultValue`),validate:C(function(e){return e===!0||e===!1},`validate`),message:`should be true or false`}}},zt=C(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}C(t,`CodeRange`),At(t,e);var n=t.prototype;return n._write=C(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=C(function(){return this._code},`getCode`),t}(Ft),Vt=C(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`),Ht=ht.maybeUseFallbackStack,Ut,Wt={load:C(function(e){e._config.autoDetectErrors&&e._config.enabledErrorTypes.unhandledExceptions&&(Ut=C(function(t){var n=e._clientContext&&e._clientContext.getStore()||e;t.stack&&n.fallbackStack&&Ht(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`,Ut))},`load`),destroy:C(function(){process.removeListener(`uncaughtException`,Ut)},`destroy`)},Gt,Kt={load:C(function(e){!e._config.autoDetectErrors||!e._config.enabledErrorTypes.unhandledRejections||(Gt=C(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`,Gt):process.on(`unhandledRejection`,Gt))},`load`),destroy:C(function(){process.removeListener(`unhandledRejection`,Gt)},`destroy`)},qt=Jt;function Jt(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}C(Jt,`Backoff`),Jt.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},Jt.prototype.reset=function(){this.attempts=0};function Yt(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Xt(e,t)}C(Yt,`___inheritsLoose_49`);function Xt(e,t){return Xt=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Xt(e,t)}C(Xt,`___setPrototypeOf_49`);var Zt=10*1e3,Qt=function(e){function t(t){var n=e.call(this)||this;return n._sessions=new Map,n._interval=null,n._intervalLength=t||Zt,n._summarize=n._summarize.bind(n),n}C(t,`SessionTracker`),Yt(t,e);var n=t.prototype;return n.start=C(function(){this._interval||=setInterval(this._summarize,this._intervalLength).unref()},`start`),n.stop=C(function(){clearInterval(this._interval),this._interval=null},`stop`),n.track=C(function(e){var t=$t(e.startedAt),n=this._sessions.get(t);return this._sessions.set(t,n===void 0?1:n+1),e},`track`),n._summarize=C(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}(S(`events`).EventEmitter),$t=C(function(e){var t=new Date(e);return t.setSeconds(0),t.setMilliseconds(0),t.toISOString()},`dateToMsKey`),en={load:C(function(e){var t=new Qt(e._config.sessionSummaryInterval);t.on(`summary`,G(e)),t.start(),e._sessionDelegate={startSession:C(function(e,n){return e._session=n,e._pausedSession=null,t.track(e._session),e},`startSession`),pauseSession:C(function(e){e._pausedSession=e._session,e._session=null},`pauseSession`),resumeSession:C(function(e){return e._session?e:e._pausedSession?(e._session=e._pausedSession,e._pausedSession=null,e):e.startSession()},`resumeSession`)}},`load`),configSchema:{sessionSummaryInterval:{defaultValue:C(function(){},`defaultValue`),validate:C(function(e){return e===void 0||l()(e)},`validate`),message:`should be a positive integer`}}},G=C(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 qt({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())}C(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(xe(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)}C(a,`req`)}},`sendSessionSummary`),tn={load:C(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`)},nn={load:C(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`)},rn={};function K(){return K=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},K.apply(null,arguments)}C(K,`___extends_38`);var an=`Bugsnag Node`,on=`8.6.0`,sn=`https://github.com/bugsnag/bugsnag-js`,cn=S(`async_hooks`).AsyncLocalStorage;ve.__type=`nodejs`;var ln=K({},f.schema,rt),un=[ut,Rt,Ot,nn,en,Ct,Wt,Kt,vt,gt,tn,dt],dn={_client:null,createClient:C(function(e){typeof e==`string`&&(e={apiKey:e}),e||={};var t=new Ke(e,ln,un,{name:an,version:on,url:sn});return Object.keys(Ke.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 cn,t._setDelivery($e),t._logger.debug(`Loaded!`),t},`createClient`),start:C(function(e){return dn._client?(dn._client._logger.warn(`Bugsnag.start() was called more than once. Ignoring.`),dn._client):(dn._client=dn.createClient(e),dn._client)},`start`),isStarted:C(function(){return dn._client!=null},`isStarted`)};return Object.keys(Ke.prototype).forEach(function(e){/^_/.test(e)||(dn[e]=function(){var t=dn._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})}),rn=dn,rn.Client=Ke,rn.Event=ve,rn.Session=Ie,rn.Breadcrumb=e,rn.default=dn,rn})}}),fo=O({"../../node_modules/.pnpm/@bugsnag+js@8.6.0/node_modules/@bugsnag/js/node/notifier.js"(e,t){t.exports=uo()}}),po=class extends h{static{C(this,`AutoConfigFrameworkConfigurationError`)}},mo=class extends l{static{C(this,`AutoConfigDetectionError`)}frameworkId;configured;constructor(e,t){super(e,t),Object.setPrototypeOf(this,new.target.prototype),this.frameworkId=t.frameworkId,this.configured=t.configured}},ho=D(Vr(),1);D(Vr(),1);var go=D(Mr(),1),_o=D(Gr(),1),vo=Object.defineProperty,yo=C((e,t)=>vo(e,`name`,{value:t,configurable:!0}),`__name`);function bo(e){try{return ho.parse(e,{parser:go})}catch{throw Error(`Error parsing js template.`)}}C(bo,`parseJs`),yo(bo,`parseJs`);function xo(e){try{return ho.parse(e,{parser:_o})}catch{throw Error(`Error parsing ts template.`)}}C(xo,`parseTs`),yo(xo,`parseTs`);function So(e){let t=R.extname(e).slice(1)===`js`?go:_o;try{let n=be(R.resolve(e),`utf-8`);if(n)return ho.parse(n,{parser:t}).program}catch{throw Error(`Error parsing file: ${e}`)}return null}C(So,`parseFile`),yo(So,`parseFile`);function Co(e,t){let n=So(e);n&&(ho.visit(n,t),Se(e,ho.print(n).code))}C(Co,`transformFile`),yo(Co,`transformFile`);function wo(e,t){t.forEach(t=>{let n=Eo(t);if(!n)return!1;let r=e.properties.findIndex(e=>e.type===`ObjectProperty`&&Eo(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`){wo(i.value,t.value.properties);return}if(i.type===`ObjectProperty`&&i.value.type===`ArrayExpression`&&t.value.type===`ArrayExpression`){To(i.value,t.value);return}e.properties[r]=t})}C(wo,`mergeObjectProperties`),yo(wo,`mergeObjectProperties`);function To(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)})}C(To,`mergeArrayElements`),yo(To,`mergeArrayElements`);function Eo(e){return e.key.type===`Identifier`?e.key.name:e.key.type===`StringLiteral`?e.key.value:null}C(Eo,`getPropertyName`),yo(Eo,`getPropertyName`);var Do=D(Vr(),1),Oo=new Intl.Collator(0,{numeric:1}).compare;function ko(e,t,n){return e=e.split(`.`),t=t.split(`.`),Oo(e[0],t[0])||Oo(e[1],t[1])||(t[2]=t.slice(2).join(`.`),n=/[.-]/.test(e[2]=e.slice(2).join(`.`)),n==/[.-]/.test(t[2])?Oo(e[2],t[2]):n?-1:1)}C(ko,`default`);var Ao=class{static{C(this,`Framework`)}id;name;#e;get frameworkVersion(){return L(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=s(t.name,e);if(L(r,`Unable to detect the version of the \`${t.name}\` package`),ko(r,t.minimumVersion)<0)throw new po(`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`});ko(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}},jo=class extends Ao{static{C(this,`Analog`)}async configure({dryRun:e,projectPath:t}){return e||await Mo(t),{buildTool:`wrangler`,workerConfig:{entrypoint:`./dist/analog/server/index.mjs`,env:{ASSETS:{type:`assets`}}},buildConfig:{assetsDirectory:`./dist/analog/public`}}}};async function Mo(e){let t=z(e,`vite.config.ts`),n=z(e,`vite.config.js`),r;if(I(t))r=t;else if(I(n))r=n;else throw Error(`Could not find Vite config file to modify`);let i=_;dt(`Updating configuration in ${Je(r)}`),Co(r,{visitCallExpression:C(function(e){if(e.node.callee.name!==`analog`)return this.traverse(e);let t=Do.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)):wo(e.node.arguments[0],n),!1},`visitCallExpression`)})}C(Mo,`updateViteConfig`);function No(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(`
279
- [ ]{`+Math.min.apply(Math,r)+`}`,`g`);n=n.map(function(e){return e.replace(i,`
280
- `)})}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(`
281
- `)&&(o=String(e).split(`
282
- `).map(function(e,t){return t===0?e:``+i+e}).join(`
283
- `)),a+=o+n[t+1]}),a}C(No,`dedent`);var Po=No,Fo=class extends Ao{static{C(this,`Angular`)}async configure({workerName:e,outputDir:t,dryRun:n,packageManager:r,isWorkspaceRoot:i}){let o=a(await Ie(Te(`angular.json`),`utf8`));return Io(o,e)?(this.configurationDescription=`Configuring project for Angular`,n||(await Lo(e,o,this.frameworkVersion),await Ro(),await zo(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 Io(e,t){return!!e.projects[t]?.architect?.build?.options?.ssr}C(Io,`hasSsr`);async function Lo(e,t,n){let r=Ft();r.start(`Updating angular.json config`);let i=t.projects[e].architect;i.build.options.outputPath=`dist`,i.build.options.outputMode=`server`,L(i.build.options.ssr),typeof i.build.options.ssr==`boolean`&&(i.build.options.ssr={});let a=ko(n,`22.0.0`)>=0?`platform`:`experimentalPlatform`;i.build.options.ssr[a]=`neutral`,await ze(Te(`angular.json`),JSON.stringify(t,null,2)),r.stop(`${H(`updated`)} ${V("`angular.json`")}`)}C(Lo,`updateAngularJson`);async function Ro(){await ze(Te(`src/server.ts`),Po`
284
- import { AngularAppEngine, createRequestHandler } from '@angular/ssr';
285
-
286
- const angularApp = new AngularAppEngine({
287
- // It is safe to set allow \`localhost\`, so that SSR can run in local development,
288
- // as, in production, Cloudflare will ensure that \`localhost\` is not the host.
289
- allowedHosts: ['localhost'],
290
- });
291
-
292
- /**
293
- * This is a request handler used by the Angular CLI (dev-server and during build).
294
- */
295
- export const reqHandler = createRequestHandler(async (req) => {
296
- const res = await angularApp.handle(req);
297
-
298
- return res ?? new Response('Page not found.', { status: 404 });
299
- });
300
-
301
- export default { fetch: reqHandler };
302
- `)}C(Ro,`overrideServerFile`);async function zo(e,t){await Qt(e.type,[`xhr2`],{dev:!0,startText:`Installing additional dependencies`,doneText:`${H(`installed`)}`,isWorkspaceRoot:t})}C(zo,`installAdditionalDependencies`);var Bo=D(Vr(),1),Vo=class extends Ao{static{C(this,`Astro`)}async configure({outputDir:e,dryRun:t,packageManager:n,projectPath:r,isWorkspaceRoot:i,context:a}){let o=this.frameworkVersion,{npx:s}=n;return t||(ko(o,`6.0.0`)>=0?await Yt([s,`astro`,`add`,`cloudflare`,`-y`],{silent:!0,startText:`Installing adapter`,doneText:`${H(`installed`)} ${V(`via \`${s} astro add cloudflare\``)}`}):await Go(r,i,n,ko(o,`5.0.0`)>=0?5:4,a),Se(`public/.assetsignore`,`_worker.js
303
- _routes.json`)),ko(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 Ho(e){for(let t of[`mjs`,`mts`,`ts`,`js`]){let n=z(e,`astro.config.${t}`);if(I(n))return n}throw Error(`Could not find Astro config file (astro.config.mjs, astro.config.mts, astro.config.ts, or astro.config.js)`)}C(Ho,`findAstroConfigFile`);function Uo(e,t){let n=Ho(e);dt(`Updating configuration in ${Je(n)}`);let r=`cloudflare`;Co(n,{visitProgram(e){let t=e.node.body,n=Bo.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=Bo.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`&&wo(t,o)}return!1}})}C(Uo,`updateAstroConfig`);function Wo(e,t){let n=z(e,`tsconfig.json`);if(I(n))try{let e=a(be(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),Se(n,JSON.stringify(e,null,` `)),dt(`Updated ${Je(`tsconfig.json`)} to include ${Je(r)}`))}catch{t.logger.warn(`Could not update tsconfig.json to include worker-configuration.d.ts. You may need to add it manually.`)}}C(Wo,`updateTsConfig`);async function Go(e,t,n,r,i){let a=r===5?12:11;await Qt(n.type,[`@astrojs/cloudflare@${a}`],{startText:`Installing @astrojs/cloudflare adapter (version ${a})`,doneText:`${H(`installed`)} ${V(`@astrojs/cloudflare`)}`,isWorkspaceRoot:t}),Uo(e,r),Wo(e,i)}C(Go,`configureAstroLegacy`);var Ko=class extends Ao{static{C(this,`NextJs`)}async configure({dryRun:e,projectPath:t,packageManager:n}){let{npx:r,dlx:i}=n;return e||await Yt([...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`"},qo=D(Vr(),1),Jo=C(e=>{let t=R.join(e,`nuxt.config.ts`),n=qo.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`)]));Co(t,{visitCallExpression:C(function(e){return e.node.callee.name===`defineNuxtConfig`&&wo(e.node.arguments[0],[r,i]),this.traverse(e)},`visitCallExpression`)})},`updateNuxtConfig`),Yo=class extends Ao{static{C(this,`Nuxt`)}async configure({dryRun:e,projectPath:t,packageManager:n,isWorkspaceRoot:r}){return e||(await Qt(n.type,[`nitro-cloudflare-dev`],{dev:!0,startText:`Installing the Cloudflare dev module`,doneText:`${H(`installed`)} ${V(`nitro-cloudflare-dev`)}`,isWorkspaceRoot:r}),Jo(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`},Xo=D(Vr(),1),Zo=D(Gr(),1);function Qo(e){return I(z(e,`tsconfig.json`))}C(Qo,`usesTypescript`);var $o=class extends Ao{static{C(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`];ft(`Running ${Zt(t)}`),await Yt(t),es(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 es(e){if(!Qo(e))return;let t=Ft();t.start("Updating `vite.config.ts`");let n=Xo.types.builders,r=Xo.parse(`
304
- let platform = {};
305
-
306
- if (process.env.NODE_ENV === 'development') {
307
- const { getPlatformProxy } = await import('wrangler');
308
- platform = await getPlatformProxy();
309
- }
310
- `,{parser:Zo}).program.body;Co(`vite.config.ts`,{visitProgram:C(function(e){let t=e.node.body.findLastIndex(e=>e.type===`ImportDeclaration`);return e.get(`body`,t).insertAfter(...r),this.traverse(e)},`visitProgram`),visitCallExpression:C(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(`${H(`updated`)} \`vite.config.ts\``)}C(es,`addBindingsProxy`);var ts=D(Vr(),1),ns=D(Vr(),1),rs=ns.types.builders,is=ns.types.namedTypes;function as(e){if(is.ObjectExpression.check(e))return e;if(is.ArrowFunctionExpression.check(e)){if(is.ObjectExpression.check(e.body))return e.body;if(is.BlockStatement.check(e.body))return os(e.body)}return is.FunctionExpression.check(e)?os(e.body):null}C(as,`extractConfigObject`);function os(e){let t=e.body.find(e=>is.ReturnStatement.check(e));return t&&is.ReturnStatement.check(t)&&t.argument&&is.ObjectExpression.check(t.argument)?t.argument:null}C(os,`extractFromBlockStatement`);function ss(e,t){let n=ls(e),r=!1,i=!1;return Co(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:C(function(e){if(e.node.callee.name!==`defineConfig`)return this.traverse(e);let n=as(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=>fs(e));if(!r||!is.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}C(ss,`checkIfViteConfigUsesCloudflarePlugin`);function cs(e){return I(R.join(e,`vite.config.ts`))||I(R.join(e,`vite.config.js`))}C(cs,`hasViteConfig`);function ls(e){let t=R.join(e,`vite.config.ts`),n=R.join(e,`vite.config.js`),r;if(I(t))r=t;else if(I(n))r=n;else throw Error(`Could not find Vite config file to modify`);return r}C(ls,`getViteConfigPath`);var us=[`nitro`,`nitroV2Plugin`,`netlify`];function ds(e,t={}){Co(ls(e),{visitProgram(e){let t=e.node.body.findLastIndex(e=>e.type===`ImportDeclaration`),n=e.get(`body`,t),r=rs.importDeclaration([rs.importSpecifier(rs.identifier(`cloudflare`))],rs.stringLiteral(`@cloudflare/vite-plugin`));return e.node.body.some(e=>e.type===`ImportDeclaration`&&e.source.value===`@cloudflare/vite-plugin`)||n.insertAfter(r),this.traverse(e)},visitCallExpression:C(function(e){if(e.node.callee.name!==`defineConfig`)return this.traverse(e);let n=as(e.node.arguments[0]);if(!n)throw new h(Po`
311
- Cannot modify Vite config: could not extract a config object (found ${e.node.arguments[0]?.type??`unknown`}).
312
-
313
- The Cloudflare plugin can only be automatically added to Vite configs that use:
314
- - A simple object: defineConfig({ plugins: [...] })
315
- - An arrow function returning an object: defineConfig(() => ({ plugins: [...] }))
316
-
317
- If your config uses a more complex pattern, please manually add the plugin:
318
-
319
- import { cloudflare } from "@cloudflare/vite-plugin";
320
-
321
- export default defineConfig({
322
- plugins: [cloudflare()]
323
- });
324
- `,{telemetryMessage:`autoconfig vite config object unsupported`});let r=n.properties.find(e=>fs(e));if(!r||!is.ArrayExpression.check(r.value))throw new h(Po`
325
- Cannot modify Vite config: could not find a valid plugins array.
326
-
327
- Please ensure your Vite config has a plugins array:
328
-
329
- export default defineConfig({
330
- plugins: []
331
- });
332
- `,{telemetryMessage:`autoconfig vite plugins array missing`});r.value.elements.some(e=>e?.type===`CallExpression`&&e.callee.type===`Identifier`&&e.callee.name===`cloudflare`)||r.value.elements.push(rs.callExpression(rs.identifier(`cloudflare`),[...t.viteEnvironmentName?[rs.objectExpression([rs.objectProperty(rs.identifier(`viteEnvironment`),rs.objectExpression([rs.objectProperty(rs.identifier(`name`),rs.stringLiteral(t.viteEnvironmentName))]))])]:[]]));let i=[...us,...t.incompatibleVitePlugins??[]];return r.value.elements=r.value.elements.filter(e=>!(e?.type===`CallExpression`&&e.callee.type===`Identifier`&&i.includes(e.callee.name))),!1},`visitCallExpression`)})}C(ds,`transformViteConfig`);function fs(e){return(is.Property.check(e)||is.ObjectProperty.check(e))&&is.Identifier.check(e.key)&&e.key.name===`plugins`}C(fs,`isPluginsProp`);async function ps({packageManager:e,projectPath:t,isWorkspaceRoot:n}){let r=s(`vite`,t);r&&ko(r,`6.0.0`)>=0&&ko(r,`6.1.0`)<0&&await Qt(e,[`vite@^6.1.0`],{dev:!0,startText:`Updating the version of vite to be compatible with the Cloudflare Vite Plugin`,doneText:`${H(`updated`)} ${V(`Vite`)}`,isWorkspaceRoot:n}),await Qt(e,[`@cloudflare/vite-plugin`],{dev:!0,startText:`Installing the Cloudflare Vite plugin`,doneText:`${H(`installed`)} ${V(`@cloudflare/vite-plugin`)}`,isWorkspaceRoot:n})}C(ps,`installCloudflareVitePlugin`);var ms=ts.types.builders;function hs(e){let t=R.join(e,`react-router.config.ts`),n=R.join(e,`react-router.config.js`);return I(t)?t:I(n)?n:null}C(hs,`getReactRouterConfigPath`);function gs(e,t){if(t&&ko(t,`8.0.0`)>=0)return!0;let n=hs(e);if(!n)return!1;let r=null;try{r=So(n)}catch{}if(!r)return!1;let i=!1;return ts.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}C(gs,`hasV8MiddlewareFlag`);function _s(e,t){let n=hs(e);if(!n)throw Error(`Could not find React Router config file to modify`);Co(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:
333
- future: {
334
- ${t}: true,
335
- }`);L(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];L(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];L(t.type===`ObjectProperty`&&t.value.type===`BooleanLiteral`),t.value.value=!0}else{let n=ms.objectProperty(ms.identifier(t),ms.booleanLiteral(!0));e.value.properties.push(n)}}else n.properties.push(ms.objectProperty(ms.identifier(`future`),ms.objectExpression([ms.objectProperty(ms.identifier(t),ms.booleanLiteral(!0))])));return!1}})}C(_s,`transformReactRouterConfig`);function vs(e){return e&&ko(e,`7.10.0`)===-1?`unstable_viteEnvironmentApi`:`v8_viteEnvironmentApi`}C(vs,`viteEnvApiConfigPropertyName`);function ys(e){return e?ko(e,`8.0.0`)<0:!1}C(ys,`needsViteEnvAPIFutureFlag`);function bs(e){if(e){Se(`workers/app.ts`,Po`
336
- import { createRequestHandler } from "react-router";
337
-
338
- const requestHandler = createRequestHandler(
339
- () => import("virtual:react-router/server-build"),
340
- import.meta.env.MODE,
341
- );
342
-
343
- export default {
344
- async fetch(request) {
345
- return requestHandler(request);
346
- },
347
- } satisfies ExportedHandler<Env>;
348
- `);return}Se(`workers/app.ts`,Po`
349
- import { createRequestHandler } from "react-router";
350
-
351
- declare module "react-router" {
352
- export interface AppLoadContext {
353
- cloudflare: {
354
- env: Env;
355
- ctx: ExecutionContext;
356
- };
357
- }
358
- }
359
-
360
- const requestHandler = createRequestHandler(
361
- () => import("virtual:react-router/server-build"),
362
- import.meta.env.MODE
363
- );
364
-
365
- export default {
366
- async fetch(request, env, ctx) {
367
- return requestHandler(request, {
368
- cloudflare: { env, ctx },
369
- });
370
- },
371
- } satisfies ExportedHandler<Env>;
372
- `)}C(bs,`writeAppTs`);function xs(e,t){if(I(`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){Se(`app/entry.server.tsx`,Po`
373
- import type { EntryContext } from "react-router";
374
- import { ServerRouter } from "react-router";
375
- import { isbot } from "isbot";
376
- import { renderToReadableStream } from "react-dom/server";
377
-
378
- export default async function handleRequest(
379
- request: Request,
380
- responseStatusCode: number,
381
- responseHeaders: Headers,
382
- routerContext: EntryContext,
383
- ) {
384
- let shellRendered = false;
385
- const userAgent = request.headers.get("user-agent");
386
-
387
- const body = await renderToReadableStream(
388
- <ServerRouter context={routerContext} url={request.url} />,
389
- {
390
- onError(error: unknown) {
391
- responseStatusCode = 500;
392
- // Log streaming rendering errors from inside the shell. Don't log
393
- // errors encountered during initial shell rendering since they'll
394
- // reject and get logged in handleDocumentRequest.
395
- if (shellRendered) {
396
- console.error(error);
397
- }
398
- },
399
- },
400
- );
401
- shellRendered = true;
402
-
403
- // Ensure requests from bots and SPA Mode renders wait for all content to load before responding
404
- // https://react.dev/reference/react-dom/server/renderToPipeableStream#waiting-for-all-content-to-load-for-crawlers-and-static-generation
405
- if ((userAgent && isbot(userAgent)) || routerContext.isSpaMode) {
406
- await body.allReady;
407
- }
408
-
409
- responseHeaders.set("Content-Type", "text/html");
410
- return new Response(body, {
411
- headers: responseHeaders,
412
- status: responseStatusCode,
413
- });
414
- }
415
- `);return}Se(`app/entry.server.tsx`,Po`
416
- import type { AppLoadContext, EntryContext } from "react-router";
417
- import { ServerRouter } from "react-router";
418
- import { isbot } from "isbot";
419
- import { renderToReadableStream } from "react-dom/server";
420
-
421
- export default async function handleRequest(
422
- request: Request,
423
- responseStatusCode: number,
424
- responseHeaders: Headers,
425
- routerContext: EntryContext,
426
- _loadContext: AppLoadContext
427
- ) {
428
- let shellRendered = false;
429
- const userAgent = request.headers.get("user-agent");
430
-
431
- const body = await renderToReadableStream(
432
- <ServerRouter context={routerContext} url={request.url} />,
433
- {
434
- onError(error: unknown) {
435
- responseStatusCode = 500;
436
- // Log streaming rendering errors from inside the shell. Don't log
437
- // errors encountered during initial shell rendering since they'll
438
- // reject and get logged in handleDocumentRequest.
439
- if (shellRendered) {
440
- console.error(error);
441
- }
442
- },
443
- }
444
- );
445
- shellRendered = true;
446
-
447
- // Ensure requests from bots and SPA Mode renders wait for all content to load before responding
448
- // https://react.dev/reference/react-dom/server/renderToPipeableStream#waiting-for-all-content-to-load-for-crawlers-and-static-generation
449
- if ((userAgent && isbot(userAgent)) || routerContext.isSpaMode) {
450
- await body.allReady;
451
- }
452
-
453
- responseHeaders.set("Content-Type", "text/html");
454
- return new Response(body, {
455
- headers: responseHeaders,
456
- status: responseStatusCode,
457
- });
458
- }
459
- `)}C(xs,`writeEntryServerTsx`);var Ss=class extends Ao{static{C(this,`ReactRouter`)}env={CLOUDFLARE_VITE_FORCE_BUILD_OUTPUT:`true`};async configure({dryRun:e,projectPath:t,packageManager:n,isWorkspaceRoot:r,context:i}){let a=gs(t,this.frameworkVersion);return e||(await ps({packageManager:n.type,projectPath:t,isWorkspaceRoot:r}),ve(`workers`),bs(a),await Qt(n.type,[`isbot`],{dev:!0,startText:`Installing the isbot package`,doneText:`${H(`installed`)} ${V(`isbot`)}`,isWorkspaceRoot:r}),xs(a,i),ds(t,{viteEnvironmentName:`ssr`,incompatibleVitePlugins:[`netlifyReactRouter`]}),ys(this.frameworkVersion)&&_s(t,vs(this.frameworkVersion))),{buildTool:`vite`,workerConfig:{entrypoint:`./workers/app.ts`}}}configurationDescription=`Configuring project for React Router`},Cs=D(Vr(),1),ws=class extends Ao{static{C(this,`SolidStart`)}async configure({projectPath:e,dryRun:t}){if(!t){let t=this.frameworkVersion;ko(t,`2.0.0-alpha`)<0?Es(e):Ts(e)}return{buildTool:`wrangler`,workerConfig:{entrypoint:`./.output/server/index.mjs`,env:{ASSETS:{type:`assets`}}},buildConfig:{assetsDirectory:`./.output/public`}}}};function Ts(e){Co(`vite.config.${Qo(e)?`ts`:`js`}`,{visitCallExpression:C(function(e){if(e.node.callee.name!==`nitro`)return this.traverse(e);let t=Cs.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])):wo(e.node.arguments[0],[n]),!1},`visitCallExpression`)})}C(Ts,`updateViteConfigFile`);function Es(e){let t=`app.config.${Qo(e)?`ts`:`js`}`,n=_;dt(`Updating configuration in ${Je(t)}`),Co(t,{visitCallExpression:C(function(e){if(e.node.callee.name!==`defineConfig`)return this.traverse(e);let t=Cs.types.builders;return wo(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`)})}C(Es,`updateAppConfigFile`);var Ds=class extends Ao{static{C(this,`Static`)}configure({outputDir:e}){return{buildTool:`wrangler`,workerConfig:{},buildConfig:{assetsDirectory:e}}}},Os=class extends Ao{static{C(this,`SvelteKit`)}async configure({dryRun:e,packageManager:t,isWorkspaceRoot:n}){let{dlx:r}=t;return e||(await Yt([...r,`sv`,`add`,`--no-install`,`--no-git-check`,`sveltekit-adapter=adapter:cloudflare+cfTarget:workers`],{silent:!0,startText:`Installing adapter`,doneText:`${H(`installed`)} ${V(`via \`${r.join(` `)} sv add sveltekit-adapter=adapter:cloudflare+cfTarget:workers\``)}`}),Se(`static/.assetsignore`,`_worker.js
460
- _routes.json`),await Qt(t.type,[],{startText:`Installing packages`,doneText:`${H(`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"`},ks=class extends Ao{static{C(this,`TanstackStart`)}env={CLOUDFLARE_VITE_FORCE_BUILD_OUTPUT:`true`};async configure({dryRun:e,projectPath:t,packageManager:n,isWorkspaceRoot:r}){return e||(await ps({packageManager:n.type,isWorkspaceRoot:r,projectPath:t}),ds(t,{viteEnvironmentName:`ssr`})),{buildTool:`vite`,workerConfig:{entrypoint:`@tanstack/react-start/server-entry`}}}configurationDescription=`Configuring project for Tanstack Start`},As=D(Vr(),1),js=As.types.builders,Ms=As.types.namedTypes,Ns=class extends Ao{static{C(this,`Vike`)}env={CLOUDFLARE_VITE_FORCE_BUILD_OUTPUT:`true`};async configure({projectPath:e,dryRun:t,packageManager:n,isWorkspaceRoot:r}){if(f(`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 Qt(n.type,[`vike-photon`,`@photonjs/cloudflare`],{startText:`Installing vike-photon and @photonjs/cloudflare`,doneText:`${H(`installed`)} photon packages`,isWorkspaceRoot:r}),await ps({packageManager:n.type,isWorkspaceRoot:r,projectPath:e}),Ps(e)),{buildTool:`vite`,workerConfig:{entrypoint:`virtual:photon:cloudflare:server-entry`},packageJsonScriptsOverrides:{preview:`vike build && vike preview`,deploy:`vike build && wrangler deploy`}}}};function Ps(e){let t=Vs(e),n;Co(t,{visitProgram(e){return n=e.node,Bs(e),this.traverse(e)},visitExportDefaultDeclaration(e){return Is(e,n),this.traverse(e)}})}C(Ps,`addVikePhotonToConfigFile`);var Fs=`extends`;function Is(e,t){let n=Rs(e,t),r=n.properties.find(e=>Hs(e));r||(r=js.objectProperty(js.identifier(Fs),js.arrayExpression([])),n.properties.push(r)),L(r&&Ms.ArrayExpression.check(r.value));let i=Ls(t)??`vikePhoton`;r.value.elements.some(e=>e?.type===`Identifier`&&e.name===i)||r.value.elements.push(js.identifier(i))}C(Is,`addVikePhotonToVikeConfigExportObject`);function Ls(e){if(e){for(let t of e.body)if(Ms.ImportDeclaration.check(t)&&t.source.value===`vike-photon/config`){let e=t.specifiers?.find(e=>Ms.ImportDefaultSpecifier.check(e));if(e&&Ms.Identifier.check(e.local))return e.local.name}}}C(Ls,`getVikePhotonImportLocalName`);function Rs(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=zs(e.node.declaration.name,t);if(n)return n}throw Error(`Could not determine Vike default object export`)}C(Rs,`getVikeConfigObjectExpression`);function zs(e,t){for(let n of t.body)if(Ms.VariableDeclaration.check(n)){for(let t of n.declarations)if(Ms.VariableDeclarator.check(t)&&Ms.Identifier.check(t.id)&&t.id.name===e&&t.init){if(Ms.ObjectExpression.check(t.init))return t.init;if((Ms.TSAsExpression.check(t.init)||Ms.TSSatisfiesExpression.check(t.init))&&Ms.ObjectExpression.check(t.init.expression))return t.init.expression}}}C(zs,`resolveIdentifierToObjectExpression`);function Bs(e){let t=e.node.body.findLastIndex(e=>e.type===`ImportDeclaration`),n=e.get(`body`,t),r=js.importDeclaration([js.importDefaultSpecifier(js.identifier(`vikePhoton`))],js.stringLiteral(`vike-photon/config`));e.node.body.some(e=>e.type===`ImportDeclaration`&&e.source.value===`vike-photon/config`)||n.insertAfter(r)}C(Bs,`addVikePhotonImportToConfigFile`);function Vs(e){let t=R.join(e,`pages`,`+config.ts`),n=R.join(e,`pages`,`+config.js`),r;if(I(t))r=t;else if(I(n))r=n;else throw Error(`Could not find config file to modify`);return r}C(Vs,`getConfigPath`);function Hs(e){return(Ms.Property.check(e)||Ms.ObjectProperty.check(e))&&Ms.Identifier.check(e.key)&&e.key.name===Fs}C(Hs,`isExtendsProp`);var Us=class extends Ao{static{C(this,`Vite`)}env={CLOUDFLARE_VITE_FORCE_BUILD_OUTPUT:`true`};isConfigured(e,{target:t=`cf`}={}){return t!==`wrangler`||!cs(e)?!1:ss(e)}async configure({dryRun:e,projectPath:t,packageManager:n,isWorkspaceRoot:r}){return e||(await ps({packageManager:n.type,isWorkspaceRoot:r,projectPath:t}),cs(t)?ds(t):Ws(t)),{buildTool:`vite`,workerConfig:{assets:{notFoundHandling:`single-page-application`}}}}};function Ws(e){Se(z(e,`vite.config.${Qo(e)?`ts`:`js`}`),`import { cloudflare } from "@cloudflare/vite-plugin";
461
- import { defineConfig } from "vite";
462
-
463
- export default defineConfig({
464
- plugins: [cloudflare()],
465
- });
466
- `)}C(Ws,`createViteConfig`);var Gs=D(Vr(),1),Ks=Gs.types.builders,qs=Gs.types.namedTypes,Js=class extends Ao{static{C(this,`Waku`)}async configure({dryRun:e,projectPath:t,packageManager:n,isWorkspaceRoot:r}){return e||(await Qt(n.type,[`hono`],{dev:!0,startText:`Installing hono dependency`,doneText:`${H(`installed`)}`,isWorkspaceRoot:r}),await ps({packageManager:n.type,projectPath:t,isWorkspaceRoot:r}),await Ys(t),await Xs(t)),{buildTool:`wrangler`,workerConfig:{entrypoint:`./src/waku.server`,assets:{htmlHandling:`drop-trailing-slash`},env:{ASSETS:{type:`assets`}}},buildConfig:{assetsDirectory:`./dist/public`}}}};async function Ys(e){await ze(`${e}/src/waku.server.tsx`,Po`
467
- import { fsRouter } from 'waku';
468
- import adapter from 'waku/adapters/cloudflare';
469
-
470
- export default adapter(
471
- fsRouter(import.meta.glob('./**/*.{tsx,ts}', { base: './pages' })),
472
- {
473
- handlers: {
474
- // Define additional Cloudflare Workers handlers here
475
- // https://developers.cloudflare.com/workers/runtime-apis/handlers/
476
- // async queue(
477
- // batch: MessageBatch,
478
- // _env: Env,
479
- // _ctx: ExecutionContext,
480
- // ): Promise<void> {
481
- // for (const message of batch.messages) {
482
- // console.log('Received', message);
483
- // }
484
- // },
485
- },
486
- },
487
- );
488
- `)}C(Ys,`createWakuServerFile`);async function Xs(e){let t=z(e,`waku.config.ts`);if(!I(t))throw Error(`Could not find Waku config file to modify`);dt(`Updating Waku configuration in ${Je(t)}`),Co(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=Ks.importDeclaration([Ks.importSpecifier(Ks.identifier(`cloudflare`))],Ks.stringLiteral(`@cloudflare/vite-plugin`));n.insertAfter(e)}return this.traverse(e)},visitCallExpression:C(function(e){if(e.node.callee.name!==`defineConfig`)return this.traverse(e);let t=e.node.arguments[0];L(qs.ObjectExpression.check(t));let n=t.properties.find(e=>Zs(e))?.value;L(qs.ObjectExpression.check(n));let r=n.properties.find(e=>Qs(e));L(r&&qs.ArrayExpression.check(r.value)),r.value.elements.some(e=>e?.type===`CallExpression`&&e.callee.type===`Identifier`&&e.callee.name===`cloudflare`)||r.value.elements.push(Ks.callExpression(Ks.identifier(`cloudflare`),[Ks.objectExpression([Ks.objectProperty(Ks.identifier(`viteEnvironment`),Ks.objectExpression([Ks.objectProperty(Ks.identifier(`name`),Ks.stringLiteral(`rsc`)),Ks.objectProperty(Ks.identifier(`childEnvironments`),Ks.arrayExpression([Ks.stringLiteral(`ssr`)]))])),Ks.objectProperty(Ks.identifier(`inspectorPort`),Ks.booleanLiteral(!1))])])),this.traverse(e)},`visitCallExpression`)})}C(Xs,`updateWakuConfig`);function Zs(e){return(qs.Property.check(e)||qs.ObjectProperty.check(e))&&qs.Identifier.check(e.key)&&e.key.name===`vite`}C(Zs,`isViteProp`);function Qs(e){return(qs.Property.check(e)||qs.ObjectProperty.check(e))&&qs.Identifier.check(e.key)&&e.key.name===`plugins`}C(Qs,`isPluginsProp`);var $s=[{id:`analog`,name:`Analog`,class:jo,frameworkPackageInfo:{name:`@analogjs/platform`,minimumVersion:`2.0.0`,maximumKnownMajorVersion:`2`},supported:!0},{id:`angular`,name:`Angular`,class:Fo,frameworkPackageInfo:{name:`@angular/core`,minimumVersion:`19.0.0`,maximumKnownMajorVersion:`22`},supported:!0},{id:`astro`,name:`Astro`,class:Vo,frameworkPackageInfo:{name:`astro`,minimumVersion:`4.0.0`,maximumKnownMajorVersion:`6`},supported:!0},{id:`hono`,name:`Hono`,supported:!1},{id:`next`,name:`Next.js`,class:Ko,frameworkPackageInfo:{name:`next`,minimumVersion:`14.2.35`,maximumKnownMajorVersion:`16`},supported:!0},{id:`nuxt`,name:`Nuxt`,class:Yo,frameworkPackageInfo:{name:`nuxt`,minimumVersion:`3.21.0`,maximumKnownMajorVersion:`4`},supported:!0},{id:`qwik`,name:`Qwik`,class:$o,frameworkPackageInfo:{name:`@builder.io/qwik`,minimumVersion:`1.1.0`,maximumKnownMajorVersion:`1`},supported:!0},{id:`react-router`,name:`React Router`,class:Ss,frameworkPackageInfo:{name:`react-router`,minimumVersion:`7.0.0`,maximumKnownMajorVersion:`8`},supported:!0},{id:`solid-start`,name:`Solid Start`,class:ws,frameworkPackageInfo:{name:`@solidjs/start`,minimumVersion:`1.0.0`,maximumKnownMajorVersion:`2`},supported:!0},{id:`svelte-kit`,name:`SvelteKit`,class:Os,frameworkPackageInfo:{name:`@sveltejs/kit`,minimumVersion:`2.20.3`,maximumKnownMajorVersion:`2`},supported:!0},{id:`tanstack-start`,name:`TanStack Start`,class:ks,frameworkPackageInfo:{name:`@tanstack/react-start`,minimumVersion:`1.132.0`,maximumKnownMajorVersion:`1`},supported:!0},{id:`vite`,name:`Vite`,class:Us,frameworkPackageInfo:{name:`vite`,minimumVersion:`6.0.0`,maximumKnownMajorVersion:`8`},supported:!0},{id:`vike`,name:`Vike`,class:Ns,frameworkPackageInfo:{name:`vike`,minimumVersion:`0.0.0`,maximumKnownMajorVersion:`0`},supported:!0},{id:`waku`,name:`Waku`,class:Js,frameworkPackageInfo:{name:`waku`,minimumVersion:`1.0.0-alpha.4`,maximumKnownMajorVersion:`1`},supported:!0},{id:`cloudflare-pages`,name:`Cloudflare Pages`,supported:!1},{id:`hydrogen`,name:`Hydrogen`,supported:!1}],ec={id:`static`,name:`Static`,class:Ds,supported:!0},tc=[ec,...$s];function nc(e){if(e===ec.id)return;let t=$s.find(t=>t.id===e);return L(t,`Could not determine framework package info for ${JSON.stringify(e)}`),L(t.supported,`Framework unexpectedly not supported ${JSON.stringify(e)}`),t.frameworkPackageInfo}C(nc,`getFrameworkPackageInfo`);var rc=class extends Ao{static{C(this,`NoOpFramework`)}async configure(){return{workerConfig:{}}}},ic=new Set(tc.map(({id:e})=>e));function ac(e){return ic.has(e)}C(ac,`isKnownFramework`);function oc(e){let t=tc.find(t=>t.id===e)??ec;return new(t.supported===!1?rc:t.class)({id:t.id,name:t.name})}C(oc,`getFrameworkClassInstance`);function sc(e){let t=tc.find(t=>t.id===e);return L(t,`Unexpected unknown framework id: ${JSON.stringify(e)}`),t.supported}C(sc,`isFrameworkSupported`);var cc;(function(e){e.DEBUG=`debug`,e.LOG=`log`,e.INFO=`info`,e.WARN=`warn`,e.ERROR=`error`})(cc||={});var lc=class{static{C(this,`DefaultLogger`)}logLevel;constructor(e=cc.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(cc.DEBUG)&&console.debug(...e)}log(...e){this.shouldLog(cc.LOG)&&console.log(...e)}info(...e){this.shouldLog(cc.INFO)&&console.info(...e)}warn(...e){this.shouldLog(cc.WARN)&&console.warn(...e)}error(...e){this.shouldLog(cc.ERROR)&&console.error(...e)}};function uc(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}C(uc,`normalizePathSegments`);function dc(e){let t=e.startsWith(`/`),n=e&&e[e.length-1]===`/`;return e=uc(e.split(`/`),!t).join(`/`),!e&&!t&&(e=`.`),e&&n&&(e+=`/`),`${t?`/`:``}${e}`}C(dc,`normalize`);function fc(...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 dc(t)}C(fc,`join`);var pc=class{static{C(this,`FileSystem`)}logger=new lc(`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 fc(...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+=`
489
- ${n.name}: ${n.message}
490
- ${n.stack}`),this.logger.error(r),{}}}async findUp(e,t={}){let n=this.resolve(t.cwd||this.cwd),r=C(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=C(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()}},mc=D(Li(),1),hc=[`dev`,`serve`,`develop`,`start`,`run`,`web`],gc=[`netlify dev`],_c=[`build`],vc=[`netlify build`],yc=C(e=>gc.some(t=>e.includes(t)),`isExcludedDevScript`),bc=C(e=>vc.some(t=>e.includes(t)),`isExcludedBuildScript`),xc=C((e,t)=>e===t||e.endsWith(`:${t}`),`isScript`),Sc=C(e=>e===-1?2**53-1:e,`getSortIndex`),Cc=C(e=>(t,n)=>{let r=e.findIndex(e=>xc(t,e)),i=e.findIndex(e=>xc(n,e));return Sc(r)-Sc(i)},`sortScriptsByRelevance`),wc=C((e,t)=>hc.some(n=>xc(e,n)&&!yc(t)),`isNpmDevScript`),Tc=C((e,t)=>_c.some(n=>xc(e,n)&&!bc(t)),`isNpmBuildScript`);function Ec(e,t={}){let n=Object.entries(t).filter(([,t])=>t.includes(e)).map(([e])=>e).sort(Cc(hc));return n.length>0?n:Object.keys(t).filter(e=>wc(e,t[e])).sort(Cc(hc))}C(Ec,`getDevCommands`);function Dc(e,t={}){let n=Object.entries(t).filter(([,t])=>t.includes(e)).map(([e])=>e).sort(Cc(_c));return n.length>0?n:Object.keys(t).filter(e=>Tc(e,t[e])).sort(Cc(_c))}C(Dc,`getBuildCommands`);var X;(function(e){e.BackendFramework=`backend_framework`,e.FrontendFramework=`frontend_framework`,e.SSG=`static_site_generator`,e.BuildTool=`build_tool`})(X||={});var Oc;(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`})(Oc||={});var kc;(function(e){e.NodeModules=`node_modules`,e.PackageJSONPinned=`package_json_pinned`,e.PackageJSON=`package_json`})(kc||={});function Ac(e){let t=[];for(let n of e.sort(jc))(t.length===0||t[0].detected.accuracy===n.detected.accuracy)&&t.push(n);return t}C(Ac,`filterByRelevance`);function jc(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}C(jc,`sortFrameworksBasedOnAccuracy`);function Mc(e){let t=e.filter(C(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])}C(Mc,`mergeDetections`);var Z=class{static{C(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,mc.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:kc.NodeModules};let r=t[n],i=(0,mc.parse)(r);if(i)return{name:n,version:i,versionAccuracy:kc.PackageJSONPinned};let a=(0,mc.parse)((0,mc.coerce)(r))||void 0;return a?{name:n,version:a,versionAccuracy:kc.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?Oc.NPM:Oc.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?Oc.ConfigOnly:Oc.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=Mc([this.detected?.accuracy===Oc.Forced?this.detected:void 0,e,t]),this.detected)return this}getDevCommands(){if(this.dev?.command===void 0)return[];let e=Ec(this.dev.command,this.detected?.packageJSON?.scripts);return e.length>0?e.map(e=>this.project.getNpmScriptCommand(e)):[this.dev.command]}getBuildCommands(){let e=Dc(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}}},Nc=class extends Z{static{C(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`}},Pc=D(Li(),1),Fc=class extends Z{static{C(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,Pc.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}}},Ic=class extends Z{static{C(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`}},Lc=D(Li(),1),Rc=class extends Z{static{C(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,Lc.lt)(this.version,`3.0.0`)&&(this.dev.port=3e3),this}},zc=class extends Z{static{C(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`}},Bc=class extends Z{static{C(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`}},Vc=class extends Z{static{C(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`}},Hc=class extends Z{static{C(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`}},Uc=class extends Z{static{C(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`}},Wc=class extends Z{static{C(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`}},Gc=class extends Z{static{C(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`}},Kc=class extends Z{static{C(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`}},qc=D(Li(),1),Jc=class extends Z{static{C(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,qc.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,qc.gte)(e,`12.13.0`)&&!process.env.NETLIFY_SKIP_GATSBY_BUILD_PLUGIN&&this.plugins.push(`@netlify/plugin-gatsby`),this}}},Yc=class extends Z{static{C(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`}},Xc=class extends Z{static{C(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`}},Zc=class extends Z{static{C(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`}},Qc=class extends Z{static{C(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`}},$c=class extends Z{static{C(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`}},el=class extends Z{static{C(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`}},tl=class extends Z{static{C(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`}},nl=[`remix.config.js`],rl={command:`remix dev --manual -c "netlify dev"`},il={command:`remix build`,directory:`public`},al=[`vite.config.js`,`vite.config.mjs`,`vite.config.cjs`,`vite.config.ts`,`vite.config.mts`,`vite.config.cts`],ol={command:`shopify hydrogen dev`,port:5173},sl={command:`remix vite:build`,directory:`dist/client`},cl=class extends Z{static{C(this,`Hydrogen`)}id=`hydrogen`;name=`Hydrogen`;npmDependencies=[`@shopify/hydrogen`];configFiles=[...al,...nl];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&&al.includes(this.detected.configName)?(this.dev=ol,this.build=sl,this):(this.dev=rl,this.build=il,this)}},ll=class extends Z{static{C(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`}},ul=class extends Z{static{C(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`}},dl=class extends Z{static{C(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`}},fl=class extends Z{static{C(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`}},pl=D(Li(),1),ml=class extends Z{static{C(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,pl.gte)(e,`10.13.0`)&&!process.env.NETLIFY_NEXT_PLUGIN_SKIP&&this.plugins.push(`@netlify/plugin-nextjs`),this}}},hl=class extends Z{static{C(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}},gl=class extends Z{static{C(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`}},_l=class extends Z{static{C(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`}},vl=class extends Z{static{C(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`}},yl=class extends Z{static{C(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`}},bl=class extends Z{static{C(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`}},xl=D(Li(),1),Sl=class extends Z{static{C(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,xl.lt)(this.version,`7.0.0`)?void 0:this}},Cl=class extends Z{static{C(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`}},wl=class extends Z{static{C(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`}},Tl=class extends Z{static{C(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`}},El=[`remix.config.js`],Dl={command:`remix watch`},Ol={command:`remix build`,directory:`public`},kl=[`vite.config.js`,`vite.config.mjs`,`vite.config.cjs`,`vite.config.ts`,`vite.config.mts`,`vite.config.cts`],Al={command:`remix vite:dev`,port:5173},jl={command:`remix vite:build`,directory:`build/client`},Ml=class extends Z{static{C(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=[...kl,...El];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&&kl.includes(this.detected.configName)?(this.dev=Al,this.build=jl,this):(this.dev=Dl,this.build=Ol,this)}},Nl=class extends Z{static{C(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`}},Pl=class extends Z{static{C(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`}},Fl=class extends Z{static{C(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`}},Il=`solid-start`,Ll={command:`solid-start dev`,port:3e3},Rl={command:`solid-start build`,directory:`netlify`},zl=class extends Z{static{C(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===Il?(this.dev=Ll,this.build=Rl,this):this}},Bl=class extends Z{static{C(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`}},Vl=class extends Z{static{C(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`}},Hl=class extends Z{static{C(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`}},Ul=class extends Z{static{C(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`}},Wl=D(Li(),1),Gl=class extends Z{static{C(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,Wl.lt)(this.version,`1.121.0`)&&(this.dev.command=`vinxi dev`,this.build.command=`vinxi build`),this.version&&(0,Wl.lt)(this.version,`1.132.0`)&&(this.build.directory=`dist`),this}},Kl=class extends Z{static{C(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`}},ql=class extends Z{static{C(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`}},Jl=class extends Z{static{C(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`}},Yl=class extends Z{static{C(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`}},Xl=class extends Z{static{C(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`}},Zl=class extends Z{static{C(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`}},Ql=class extends Z{static{C(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`}},$l=class extends Z{static{C(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`}},eu=[Rc,Uc,Wc,Jc,Yc,$c,tl,cl,ll,fl,ml,zc,hl,vl,bl,Sl,Cl,Tl,Ml,Fl,zl,Bl,Ul,Gl,Xl,Ic,Hc,Qc,dl,Nl,Ql,Vc,class extends Z{static{C(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`}},gl,Nc,Kl,Zl,Jl,el,ul,Fc,wl,Gc,Kc,yl,Pl,Hl,Vl,Yl,Bc,_l,Zc,Xc,ql,$l];async function tu(e,t){let n=eu.map(e=>new e(t)),r=n.find(({id:t})=>t===e);if(r){r.detected={accuracy:Oc.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}`)}C(tu,`getFramework`);var nu=D(Li(),1),ru=class{static{C(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}}},iu=class extends ru{static{C(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}},au=class extends ru{static{C(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}},ou=class extends ru{static{C(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}},su=class extends ru{static{C(this,`Lage`)}id=`lage`;name=`Lage`;configFiles=[`lage.config.js`]},cu=class extends ru{static{C(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`}},lu=class extends ru{static{C(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}}},uu=class extends ru{static{C(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}},du=D(eo(),1),fu=C((e,t,n)=>{let r=e instanceof RegExp?pu(e,n):e,i=t instanceof RegExp?pu(t,n):t,a=r!==null&&i!=null&&mu(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`),pu=C((e,t)=>{let n=t.match(e);return n?n[0]:null},`maybeMatch`),mu=C((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`),hu=`\0SLASH`+Math.random()+`\0`,gu=`\0OPEN`+Math.random()+`\0`,_u=`\0CLOSE`+Math.random()+`\0`,vu=`\0COMMA`+Math.random()+`\0`,yu=`\0PERIOD`+Math.random()+`\0`,bu=new RegExp(hu,`g`),xu=new RegExp(gu,`g`),Su=new RegExp(_u,`g`),Cu=new RegExp(vu,`g`),wu=new RegExp(yu,`g`),Tu=/\\\\/g,Eu=/\\{/g,Du=/\\}/g,Ou=/\\,/g,ku=/\\\./g,Au=1e5;function ju(e){return isNaN(e)?e.charCodeAt(0):parseInt(e,10)}C(ju,`numeric`);function Mu(e){return e.replace(Tu,hu).replace(Eu,gu).replace(Du,_u).replace(Ou,vu).replace(ku,yu)}C(Mu,`escapeBraces`);function Nu(e){return e.replace(bu,`\\`).replace(xu,`{`).replace(Su,`}`).replace(Cu,`,`).replace(wu,`.`)}C(Nu,`unescapeBraces`);function Pu(e){if(!e)return[``];let t=[],n=fu(`{`,`}`,e);if(!n)return e.split(`,`);let{pre:r,body:i,post:a}=n,o=r.split(`,`);o[o.length-1]+=`{`+i+`}`;let s=Pu(a);return a.length&&(o[o.length-1]+=s.shift(),o.push.apply(o,s)),t.push.apply(t,o),t}C(Pu,`parseCommaParts`);function Fu(e,t={}){if(!e)return[];let{max:n=Au}=t;return e.slice(0,2)===`{}`&&(e=`\\{\\}`+e.slice(2)),Bu(Mu(e),n,!0).map(Nu)}C(Fu,`expand`);function Iu(e){return`{`+e+`}`}C(Iu,`embrace`);function Lu(e){return/^-?0\d/.test(e)}C(Lu,`isPadded`);function Ru(e,t){return e<=t}C(Ru,`lte`);function zu(e,t){return e>=t}C(zu,`gte`);function Bu(e,t,n){let r=[],i=fu(`{`,`}`,e);if(!i)return[e];let a=i.pre,o=i.post.length?Bu(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+_u+i.post,Bu(e,t,!0)):[e];let d;if(l)d=i.body.split(/\.\./);else if(d=Pu(i.body),d.length===1&&d[0]!==void 0&&(d=Bu(d[0],t,!1).map(Iu),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=ju(d[0]),t=ju(d[1]),n=Math.max(d[0].length,d[1].length),r=d.length===3&&d[2]!==void 0?Math.max(Math.abs(ju(d[2])),1):1,i=Ru;t<e&&(r*=-1,i=zu);let a=d.some(Lu);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,Bu(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}C(Bu,`expand_`);var Vu=1024*64,Hu=C(e=>{if(typeof e!=`string`)throw TypeError(`invalid pattern`);if(e.length>Vu)throw TypeError(`pattern is too long`)},`assertValidPattern`),Uu={"[: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]},Wu=C(e=>e.replace(/[[\]\\-]/g,`\\$&`),`braceEscape`),Gu=C(e=>e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,`\\$&`),`regexpEscape`),Ku=C(e=>e.join(``),`rangesToString`),qu=C((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(Uu))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(Wu(d)+`-`+Wu(t)):t===d&&r.push(Wu(t)),d=``,a++;continue}if(e.startsWith(`-]`,a+1)){r.push(Wu(t+`-`)),a+=2;continue}if(e.startsWith(`-`,a+1)){d=t,a+=2;continue}r.push(Wu(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[Gu(r[0].length===2?r[0].slice(-1):r[0]),!1,u-n,!1];let f=`[`+(l?`^`:``)+Ku(r)+`]`,p=`[`+(l?``:`^`)+Ku(i)+`]`;return[r.length&&i.length?`(`+f+`|`+p+`)`:r.length?f:p,s,u-n,!0]},`parseClass`),Ju=C((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`),Yu,Xu=new Set([`!`,`?`,`+`,`*`,`@`]),Zu=C(e=>Xu.has(e),`isExtglobType`),Qu=C(e=>Zu(e.type),`isExtglobAST`),$u=new Map([[`!`,[`@`]],[`?`,[`?`,`@`]],[`@`,[`@`]],[`*`,[`*`,`+`,`?`,`@`]],[`+`,[`+`,`@`]]]),ed=new Map([[`!`,[`?`]],[`@`,[`?`]],[`+`,[`?`,`*`]]]),td=new Map([[`!`,[`?`,`@`]],[`?`,[`?`,`@`]],[`@`,[`?`,`@`]],[`*`,[`*`,`+`,`?`,`@`]],[`+`,[`+`,`@`,`?`,`*`]]]),nd=new Map([[`!`,new Map([[`!`,`@`]])],[`?`,new Map([[`*`,`*`],[`+`,`*`]])],[`@`,new Map([[`!`,`!`],[`?`,`?`],[`@`,`@`],[`*`,`*`],[`+`,`+`]])],[`+`,new Map([[`?`,`*`],[`*`,`*`]])]]),rd=`(?!(?:^|/)\\.\\.?(?:$|/))`,id=`(?!\\.)`,ad=new Set([`[`,`.`]),od=new Set([`..`,`.`]),sd=new Set(`().*{}+?[]^$\\!`),cd=C(e=>e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,`\\$&`),`regExpEscape`),ld=`[^/]`,ud=ld+`*?`,dd=ld+`+?`,fd=0,pd=class{static{C(this,`AST`)}type;#e;#t;#n=!1;#r=[];#i;#a;#o;#s=!1;#c;#l;#u=!1;id=++fd;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 Yu&&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 Yu&&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 Yu(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&&Zu(n)&&e.charAt(u)===`(`&&i<=a){t.push(d),d=``;let a=new Yu(n,t);u=Yu.#f(e,a,u,r,i+1),t.push(a);continue}d+=n}return t.push(d),u}let u=n+1,d=new Yu(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&&Zu(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 Yu(n,d);d.push(o),u=Yu.#f(e,o,u,r,i+a);continue}if(n===`|`){d.push(p),p=``,f.push(d),d=new Yu(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,ed)}#m(e,t=$u){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=td){return!!t.get(this.type)?.includes(e)}#g(e,t){let n=e.#r[0],r=new Yu(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!!nd.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=nd.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 Yu(null,void 0,t);return Yu.#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()),!Qu(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`?Yu.#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&&od.has(this.#r[0]))){let n=ad,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?rd:o?id:``}let a=``;return this.isEnd()&&this.#e.#s&&this.#i?.type===`!`&&(a=`(?:$|\\/)`),[i+r+a,Ju(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,Ju(this.toString()),!1,!1]}let a=!n||e||t||!id?``:this.#S(!0);a===i&&(a=``),a&&(i=`(?:${i})(?:${a})*?`);let o=``;if(this.type===`!`&&this.#u)o=(this.isStart()&&!t?id:``)+dd;else{let n=this.type===`!`?`))`+(this.isStart()&&!t&&!e?id:``)+ud+`)`:this.type===`@`?`)`:this.type===`?`?`)?`:this.type===`+`&&a?`)`:this.type===`*`&&a?`)?`:`)${this.type}`;o=r+i+n}return[o,Ju(i),this.#t=!!this.#t,this.#n]}#x(){if(Qu(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+=(sd.has(c)?`\\`:``)+c;continue}if(c===`*`){if(o)continue;o=!0,i+=n&&/^[*]+$/.test(e)?dd:ud,t=!0;continue}else o=!1;if(c===`\\`){s===e.length-1?i+=`\\\\`:r=!0;continue}if(c===`[`){let[n,r,o,c]=qu(e,s);if(o){i+=n,a||=r,s+=o-1,t||=c;continue}}if(c===`?`){i+=ld,t=!0;continue}i+=cd(c)}return[i,Ju(e),!!t,a]}};Yu=pd;var md=C((e,{windowsPathsNoEscape:t=!1,magicalBraces:n=!1}={})=>n?t?e.replace(/[?*()[\]{}]/g,`[$&]`):e.replace(/[?*()[\]\\{}]/g,`\\$&`):t?e.replace(/[?*()[\]]/g,`[$&]`):e.replace(/[?*()[\]\\]/g,`\\$&`),`escape`),hd=C((e,t,n={})=>(Hu(t),!n.nocomment&&t.charAt(0)===`#`?!1:new Kd(t,n).match(e)),`minimatch`),gd=/^\*+([^+@!?*[(]*)$/,_d=C(e=>t=>!t.startsWith(`.`)&&t.endsWith(e),`starDotExtTest`),vd=C(e=>t=>t.endsWith(e),`starDotExtTestDot`),yd=C(e=>(e=e.toLowerCase(),t=>!t.startsWith(`.`)&&t.toLowerCase().endsWith(e)),`starDotExtTestNocase`),bd=C(e=>(e=e.toLowerCase(),t=>t.toLowerCase().endsWith(e)),`starDotExtTestNocaseDot`),xd=/^\*+\.\*+$/,Sd=C(e=>!e.startsWith(`.`)&&e.includes(`.`),`starDotStarTest`),Cd=C(e=>e!==`.`&&e!==`..`&&e.includes(`.`),`starDotStarTestDot`),wd=/^\.\*+$/,Td=C(e=>e!==`.`&&e!==`..`&&e.startsWith(`.`),`dotStarTest`),Ed=/^\*+$/,Dd=C(e=>e.length!==0&&!e.startsWith(`.`),`starTest`),Od=C(e=>e.length!==0&&e!==`.`&&e!==`..`,`starTestDot`),kd=/^\?+([^+@!?*[(]*)?$/,Ad=C(([e,t=``])=>{let n=Pd([e]);return t?(t=t.toLowerCase(),e=>n(e)&&e.toLowerCase().endsWith(t)):n},`qmarksTestNocase`),jd=C(([e,t=``])=>{let n=Fd([e]);return t?(t=t.toLowerCase(),e=>n(e)&&e.toLowerCase().endsWith(t)):n},`qmarksTestNocaseDot`),Md=C(([e,t=``])=>{let n=Fd([e]);return t?e=>n(e)&&e.endsWith(t):n},`qmarksTestDot`),Nd=C(([e,t=``])=>{let n=Pd([e]);return t?e=>n(e)&&e.endsWith(t):n},`qmarksTest`),Pd=C(([e])=>{let t=e.length;return e=>e.length===t&&!e.startsWith(`.`)},`qmarksTestNoExt`),Fd=C(([e])=>{let t=e.length;return e=>e.length===t&&e!==`.`&&e!==`..`},`qmarksTestNoExtDot`),Id=typeof process==`object`&&process?typeof process.env==`object`&&process.env&&process.env.__MINIMATCH_TESTING_PLATFORM__||process.platform:`posix`,Ld={win32:{sep:`\\`},posix:{sep:`/`}};hd.sep=Id===`win32`?Ld.win32.sep:Ld.posix.sep;var Rd=Symbol(`globstar **`);hd.GLOBSTAR=Rd;var zd=`[^/]*?`,Bd=`(?:(?!(?:\\/|^)(?:\\.{1,2})($|\\/)).)*?`,Vd=`(?:(?!(?:\\/|^)\\.).)*?`;hd.filter=C((e,t={})=>n=>hd(n,e,t),`filter`);var Hd=C((e,t={})=>Object.assign({},e,t),`ext`);hd.defaults=C(e=>{if(!e||typeof e!=`object`||!Object.keys(e).length)return hd;let t=hd;return Object.assign(C((n,r,i={})=>t(n,r,Hd(e,i)),`m`),{Minimatch:class extends t.Minimatch{static{C(this,`Minimatch`)}constructor(t,n={}){super(t,Hd(e,n))}static defaults(n){return t.defaults(Hd(e,n)).Minimatch}},AST:class extends t.AST{static{C(this,`AST`)}constructor(t,n,r={}){super(t,n,Hd(e,r))}static fromGlob(n,r={}){return t.AST.fromGlob(n,Hd(e,r))}},unescape:C((n,r={})=>t.unescape(n,Hd(e,r)),`unescape`),escape:C((n,r={})=>t.escape(n,Hd(e,r)),`escape`),filter:C((n,r={})=>t.filter(n,Hd(e,r)),`filter`),defaults:C(n=>t.defaults(Hd(e,n)),`defaults`),makeRe:C((n,r={})=>t.makeRe(n,Hd(e,r)),`makeRe`),braceExpand:C((n,r={})=>t.braceExpand(n,Hd(e,r)),`braceExpand`),match:C((n,r,i={})=>t.match(n,r,Hd(e,i)),`match`),sep:t.sep,GLOBSTAR:Rd})},`defaults`);var Ud=C((e,t={})=>(Hu(e),t.nobrace||!/\{(?:(?!\{).)*\}/.test(e)?[e]:Fu(e,{max:t.braceExpandMax})),`braceExpand`);hd.braceExpand=Ud,hd.makeRe=C((e,t={})=>new Kd(e,t).makeRe(),`makeRe`),hd.match=C((e,t,n={})=>{let r=new Kd(t,n);return e=e.filter(e=>r.match(e)),r.options.nonull&&!e.length&&e.push(t),e},`match`);var Wd=/[?*]|[+@!]\(.*?\)|\[|\]/,Gd=C(e=>e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,`\\$&`),`regExpEscape`),Kd=class{static{C(this,`Minimatch`)}options;set;pattern;windowsPathsNoEscape;nonegate;negate;comment;empty;preserveMultipleSlashes;partial;globSet;globParts;nocase;isWindows;platform;windowsNoMagicRoot;maxGlobstarRecursion;regexp;constructor(e,t={}){Hu(e),t||={},this.options=t,this.maxGlobstarRecursion=t.maxGlobstarRecursion??200,this.pattern=e,this.platform=t.platform||Id,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]===`?`||!Wd.test(e[2]))&&!Wd.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(Rd)?this.#e(e,t,n,r,i):this.#n(e,t,n,r,i)}#e(e,t,n,r,i){let a=t.indexOf(Rd,i),o=t.lastIndexOf(Rd),[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===Rd?(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===Rd)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 Ud(this.pattern,this.options)}parse(e){Hu(e);let t=this.options;if(e===`**`)return Rd;if(e===``)return``;let n,r=null;(n=e.match(Ed))?r=t.dot?Od:Dd:(n=e.match(gd))?r=(t.nocase?t.dot?bd:yd:t.dot?vd:_d)(n[1]):(n=e.match(kd))?r=(t.nocase?t.dot?jd:Ad:t.dot?Md:Nd)(n):(n=e.match(xd))?r=t.dot?Cd:Sd:(n=e.match(wd))&&(r=Td);let i=pd.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?zd:t.dot?Bd:Vd,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`?Gd(e):e===Rd?Rd:e._src});t.forEach((e,r)=>{let i=t[r+1],a=t[r-1];e!==Rd||a===Rd||(a===void 0?i!==void 0&&i!==Rd?t[r+1]=`(?:\\/|`+n+`\\/)?`+i:t[r]=n:i===void 0?t[r-1]=a+`(?:\\/|\\/`+n+`)?`:i!==Rd&&(t[r-1]=a+`(?:\\/|\\/`+n+`\\/)`+i,t[r+1]=Rd))});let i=t.filter(e=>e!==Rd);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 hd.defaults(e).Minimatch}};hd.AST=pd,hd.Minimatch=Kd,hd.escape=md,hd.unescape=Ju;function qd(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(`/`)}}C(qd,`getDirFromPattern`);var Jd=C(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 Yd(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`?Yd(e,e.fs.join(t,i),n,r===`**`?r:void 0):[]});return(await Promise.all(o)).flat()}C(Yd,`findPackages`);async function Xd(e,t=[]){if(!t?.length)return[];let n=(await Promise.all(t.map(t=>{let n=new Kd(t.replace(/^!?(\.\/)/,(e,t)=>e.replace(t,``)));if(n.negate)return;let{dir:r,depth:i}=qd(n);return Yd(e,r,Jd,i)}))).flat().filter(Boolean),r=new Map;for(let i of n)for(let n of t){let t=new Kd(n.replace(/^!?(\.\/)/,(e,t)=>e.replace(t,``)));hd(i.path,t.pattern)&&(r.set(e.fs.join(i.path),i),t.negate&&r.delete(e.fs.join(i.path)))}return[...r.values()]}C(Xd,`getWorkspacePackages`);var Zd=class{static{C(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 Qd(e){let t=await e.fs.findUp(`pnpm-workspace.yaml`,{cwd:e.baseDirectory,stopAt:e.root});if(!t)return[];try{let{packages:n=[]}=(0,du.parse)(await e.fs.readFile(t));return n}catch{return[]}}C(Qd,`detectPnpmWorkspaceGlobs`);async function $d(e){return Array.isArray(e.workspaces)?e.workspaces||[]:typeof e.workspaces==`object`&&e.workspaces.packages||[]}C($d,`detectNpmOrYarnWorkspaceGlobs`);async function ef(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 Qd(e):await $d(t);if(!n||n.length===0)return null;e.events.emit(`detectedWorkspaceGlobs`,void 0);let r=new Zd;r.rootDir=e.jsWorkspaceRoot,r.packages=await Xd(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}C(ef,`detectWorkspaces`);var tf=class extends ru{static{C(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 hc.includes(e)&&(n=`dev`),_c.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=>hc.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-6SRZBKHT-wIVDg_fl.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=>_c.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=C(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=>Yd(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 Zd,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}}},nf=class extends ru{static{C(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=Tc(e,n);return{type:wc(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}},rf=class extends ru{static{C(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:wc(e,n)?`dev`:Tc(e,n)?`build`:`unknown`,command:`yarn workspace ${t} ${e}`})):[]}async detect(){if(this.project.workspace&&this.project.packageManager?.name===`yarn`)return this}},af=class extends ru{static{C(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:wc(e,n)?`dev`:Tc(e,n)?`build`:`unknown`,command:`npm --workspace ${t} run ${e}`})):[]}async detect(){if(this.project.workspace&&this.project.packageManager?.name===`npm`)return this}},of=[iu,au,ou,su,cu,lu,uu,tf,class extends ru{static{C(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 ru{static{C(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 ru{static{C(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 hc.includes(e)&&(t=`dev`),_c.includes(e)&&(t=`build`),{type:t,command:`turbo run ${e} --filter ${n}`}}):[]}},nf,af,rf],sf=class{static{C(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:cf}=D(fo(),1).default,lf=C(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 uf(e,t={}){let n=lf(e);(t.client||cf).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})}C(uf,`report`);var df=D(Li(),1),ff={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 pf(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`}}C(pf,`sniffUserAgent`);var mf=Object.values(ff).reduce((e,t)=>t.lockFiles.reduce((e,n)=>({...e,[n]:t}),e),{}),hf=C(async(e,t)=>{let n=t?.enableUserAgentSniffing?pf(e):void 0;try{let t=await e.fs.findUpMultiple(`package.json`,{cwd:e.baseDirectory,stopAt:e.root});if(!t.length)return n?ff[n]:null;for(let n of t){let{packageManager:t}=await e.fs.readJSON(n);if(t){let[e,n]=t.split(`@`);if(ff[e]){let t=ff[e];return t.version=(0,df.parse)(n)||void 0,t}}}for(let t of Object.values(ff))if(t.forceEnvironment&&e.getEnv(t.forceEnvironment)===`true`)return t;let r=await e.fs.findUp(Object.keys(mf),{cwd:e.baseDirectory,stopAt:e.root});if(r){let t=mf[e.fs.basename(r)];if(!(t.forceEnvironment&&e.getEnv(t.forceEnvironment)===`false`))return t}}catch(t){e.report(t)}return n?ff[n]:ff.npm},`detectPackageManager`),gf=class{static{C(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}}},_f=class extends gf{static{C(this,`Brew`)}id=`brew`;name=`Brew`;configFiles=[`Brewfile.netlify`]},vf=class extends gf{static{C(this,`Bun`)}id=`bun`;name=`Bun`;configFiles=[`bun.lock`,`bun.lockb`,`bunfig.toml`]},yf=class extends gf{static{C(this,`Emacs`)}id=`emacs`;name=`Emacs`;configFiles=[`Cask`]},bf=class extends gf{static{C(this,`Dotnet`)}id=`dotnet`;name=`Dotnet`;configFiles=[`Program.cs`,`appsettings.json`]},xf=class extends gf{static{C(this,`Erlang`)}id=`erlang`;name=`Erlang`;configFiles=[`rebar.config`,`rebar.lock`]},Sf=class extends gf{static{C(this,`Go`)}id=`go`;name=`Go`;configFiles=[`go.mod`,`.go-version`,`go.work`]},Cf=class extends gf{static{C(this,`Java`)}id=`java`;name=`Java`;configFiles=[`project.clj`,`build.boot`]},wf=class extends gf{static{C(this,`Node`)}id=`node`;name=`NodeJS`;configFiles=[`.node-version`,`.nvmrc`,`package.json`]},Tf=class extends gf{static{C(this,`Php`)}id=`php`;name=`Php`;configFiles=[`composer.json`]},Ef=class extends gf{static{C(this,`Python`)}id=`python`;name=`Python`;configFiles=[`requirements.txt`,`Pipfile`]},Df=[wf,class extends gf{static{C(this,`Ruby`)}id=`ruby`;name=`Ruby`;configFiles=[`.ruby-version`,`Gemfile.lock`,`Gemfile`]},_f,vf,bf,yf,xf,Sf,Cf,Tf,class extends gf{static{C(this,`Rust`)}id=`rust`;name=`Rust`;configFiles=[`Cargo.toml`,`Cargo.lock`]},class extends gf{static{C(this,`Swift`)}id=`swift`;name=`Swift`;configFiles=[`.swift-version`,`Package.swift`]},Ef];async function Of(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}C(Of,`applyBuildSystemOverrides`);async function kf(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)),Of(a,t,n)}C(kf,`getSettings`);async function Af(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(kf(i,e,t));else for(let t of e.frameworks.get(n)||[])r.push(kf(t,e,n));return(await Promise.all(r)).filter(Boolean)}C(Af,`getBuildSettings`);var jf=class{static{C(this,`Project`)}fs;root;baseDirectory;relativeBaseDirectory;packageManager;jsWorkspaceRoot;workspace;buildSystems;settings;frameworks;runtimes;#e={};bugsnag;logger;reportFn=uf;events=new sf;_nodeVersion=null;setNodeVersion(e){return this._nodeVersion=(0,nu.parse)((0,nu.coerce)(e),{loose:!0}),this}async getCurrentNodeVersion(){if(this._nodeVersion)return this._nodeVersion;let e=(0,nu.parse)((0,nu.coerce)(this.getEnv(`NODE_VERSION`)),{loose:!0});if(e)return e;let t=await this.fs.gracefullyReadFile(`.nvmrc`);if(t)return(0,nu.parse)((0,nu.coerce)(t,{loose:!0}));let n=await this.fs.gracefullyReadFile(`.node_version`);return n?(0,nu.parse)((0,nu.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||ff.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 hf(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 ef(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(of.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(Df.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 tu(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 Ac((await Promise.all(eu.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 Af(this,e),await this.events.emit(`detectSettings`,this.settings)}catch(e){this.report(e)}return this.settings}},Mf=class{static{C(this,`Node`)}value;next;constructor(e){this.value=e}},Nf=class{static{C(this,`Queue`)}#e;#t;#n;constructor(){this.clear()}enqueue(e){let t=new Mf(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 Pf(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 Nf,n=0,r=C(()=>{n--,t.size>0&&t.dequeue()()},`next`),i=C(async(e,t,i)=>{n++;let a=(async()=>e(...i))();t(a);try{await a}catch{}r()},`run`),a=C((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=C((e,...t)=>new Promise(n=>{a(e,n,t)}),`generator`);return Object.defineProperties(o,{activeCount:{get:C(()=>n,`get`)},pendingCount:{get:C(()=>t.size,`get`)},clearQueue:{value:C(()=>{t.clear()},`value`)}}),o}C(Pf,`pLimit`);var Ff=class extends Error{static{C(this,`EndError`)}constructor(e){super(),this.value=e}},If=C(async(e,t)=>t(await e),`testElement`),Lf=C(async e=>{let t=await Promise.all(e);if(t[1]===!0)throw new Ff(t[0]);return!1},`finder`);async function Rf(e,t,{concurrency:n=1/0,preserveOrder:r=!0}={}){let i=Pf(n),a=[...e].map(e=>[e,i(If,e,t)]),o=Pf(r?1:1/0);try{await Promise.all(a.map(e=>o(Lf,e)))}catch(e){if(e instanceof Ff)return e.value;throw e}}C(Rf,`pLocate`);var zf={directory:`isDirectory`,file:`isFile`};function Bf(e){if(!Object.hasOwnProperty.call(zf,e))throw Error(`Invalid type specified: ${e}`)}C(Bf,`checkType`);var Vf=C((e,t)=>t[zf[e]](),`matchType`),Hf=C(e=>e instanceof URL?Fe(e):e,`toPath`);async function Uf(e,{cwd:t=B.cwd(),type:n=`file`,allowSymlinks:r=!0,concurrency:i,preserveOrder:a}={}){Bf(n),t=Hf(t);let o=r?ye.stat:ye.lstat;return Rf(e,async e=>{try{return Vf(n,await o(R.resolve(t,e)))}catch{return!1}},{concurrency:i,preserveOrder:a})}C(Uf,`locatePath`);function Wf(e){return e instanceof URL?Fe(e):e}C(Wf,`toPath`);var Gf=Symbol(`findUpStop`);async function Kf(e,t={}){let n=R.resolve(Wf(t.cwd)??``),{root:r}=R.parse(n),i=R.resolve(n,Wf(t.stopAt??r)),a=t.limit??1/0,o=[e].flat(),s=C(async t=>{if(typeof e!=`function`)return Uf(o,t);let n=await e(t.cwd);return typeof n==`string`?Uf([n],t):n},`runMatcher`),c=[];for(;;){let e=await s({...t,cwd:n});if(e===Gf||(e&&c.push(R.resolve(n,e)),n===i||c.length>=a))break;n=R.dirname(n)}return c}C(Kf,`findUpMultiple`);async function qf(e,t={}){return(await Kf(e,{...t,limit:1}))[0]}C(qf,`findUp`);var Jf=class extends pc{static{C(this,`NodeFS`)}constructor(){super(),this.cwd=process.cwd()}getEnvironment(){return`node`}isAbsolute(e){return fe(e)}dirname(e){return de(e)}resolve(...e){return he(...e)}relative(e,t){return me(e,t)}basename(e){return ue(e)}join(...e){return pe(...e)}async fileExists(e){try{return await ge.stat(he(e)),!0}catch{return!1}}async readDir(e,t){try{return t?(await ge.readdir(he(e),{withFileTypes:!0})).reduce((e,t)=>({...e,[t.name]:t.isDirectory()?`directory`:`file`}),{}):ge.readdir(he(e))}catch{return[]}}async readFile(e){return(await ge.readFile(he(e),`utf-8`)).toString()}findUp(e,t={}){return qf(e,t)}findUpMultiple(e,t={}){return Kf(e,t)}},Yf=10,Xf=C((e=0)=>t=>`\x1B[${t+e}m`,`wrapAnsi16`),Zf=C((e=0)=>t=>`\x1B[${38+e};5;${t}m`,`wrapAnsi256`),Qf=C((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 $f=Object.keys(Q.color),ep=Object.keys(Q.bgColor);[...$f,...ep];function tp(){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=Xf(),Q.color.ansi256=Zf(),Q.color.ansi16m=Qf(),Q.bgColor.ansi=Xf(Yf),Q.bgColor.ansi256=Zf(Yf),Q.bgColor.ansi16m=Qf(Yf),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:C(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:C((e,t,n)=>Q.ansi256ToAnsi(Q.rgbToAnsi256(e,t,n)),`value`),enumerable:!1},hexToAnsi:{value:C(e=>Q.ansi256ToAnsi(Q.hexToAnsi256(e)),`value`),enumerable:!1}}),Q}C(tp,`assembleStyles`);var np=tp();function rp(e,t=globalThis.Deno?globalThis.Deno.args:B.argv){let n=e.startsWith(`-`)?``:e.length===1?`-`:`--`,r=t.indexOf(n+e),i=t.indexOf(`--`);return r!==-1&&(i===-1||r<i)}C(rp,`hasFlag`);var{env:$}=B,ip;rp(`no-color`)||rp(`no-colors`)||rp(`color=false`)||rp(`color=never`)?ip=0:(rp(`color`)||rp(`colors`)||rp(`color=true`)||rp(`color=always`))&&(ip=1);function ap(){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)}C(ap,`envForceColor`);function op(e){return e===0?!1:{level:e,hasBasic:!0,has256:e>=2,has16m:e>=3}}C(op,`translateLevel`);function sp(e,{streamIsTTY:t,sniffFlags:n=!0}={}){let r=ap();r!==void 0&&(ip=r);let i=n?ip:r;if(i===0)return 0;if(n){if(rp(`color=16m`)||rp(`color=full`)||rp(`color=truecolor`))return 3;if(rp(`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(B.platform===`win32`){let e=Ee.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}C(sp,`_supportsColor`);function cp(e,t={}){return op(sp(e,{streamIsTTY:e&&e.isTTY,...t}))}C(cp,`createSupportsColor`);var lp={stdout:cp({isTTY:Ae.isatty(1)}),stderr:cp({isTTY:Ae.isatty(2)})};function up(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}C(up,`stringReplaceAll`);function dp(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
491
- `:`
492
- `)+n,i=r+1,r=e.indexOf(`
493
- `,i)}while(r!==-1);return a+=e.slice(i),a}C(dp,`stringEncaseCRLFWithFirstIndex`);var{stdout:fp,stderr:pp}=lp,mp=Symbol(`GENERATOR`),hp=Symbol(`STYLER`),gp=Symbol(`IS_EMPTY`),_p=[`ansi`,`ansi`,`ansi256`,`ansi16m`],vp=Object.create(null),yp=C((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=fp?fp.level:0;e.level=t.level===void 0?n:t.level},`applyOptions`),bp=C(e=>{let t=C((...e)=>e.join(` `),`chalk`);return yp(t,e),Object.setPrototypeOf(t,xp.prototype),t},`chalkFactory`);function xp(e){return bp(e)}C(xp,`createChalk`),Object.setPrototypeOf(xp.prototype,Function.prototype);for(let[e,t]of Object.entries(np))vp[e]={get(){let n=Tp(this,wp(t.open,t.close,this[hp]),this[gp]);return Object.defineProperty(this,e,{value:n}),n}};vp.visible={get(){let e=Tp(this,this[hp],!0);return Object.defineProperty(this,`visible`,{value:e}),e}};var Sp=C((e,t,n,...r)=>e===`rgb`?t===`ansi16m`?np[n].ansi16m(...r):t===`ansi256`?np[n].ansi256(np.rgbToAnsi256(...r)):np[n].ansi(np.rgbToAnsi(...r)):e===`hex`?Sp(`rgb`,t,n,...np.hexToRgb(...r)):np[n][e](...r),`getModelAnsi`);for(let e of[`rgb`,`hex`,`ansi256`]){vp[e]={get(){let{level:t}=this;return function(...n){let r=wp(Sp(e,_p[t],`color`,...n),np.color.close,this[hp]);return Tp(this,r,this[gp])}}};let t=`bg`+e[0].toUpperCase()+e.slice(1);vp[t]={get(){let{level:t}=this;return function(...n){let r=wp(Sp(e,_p[t],`bgColor`,...n),np.bgColor.close,this[hp]);return Tp(this,r,this[gp])}}}}var Cp=Object.defineProperties(()=>{},{...vp,level:{enumerable:!0,get(){return this[mp].level},set(e){this[mp].level=e}}}),wp=C((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`),Tp=C((e,t,n)=>{let r=C((...e)=>Ep(r,e.length===1?``+e[0]:e.join(` `)),`builder`);return Object.setPrototypeOf(r,Cp),r[mp]=e,r[hp]=t,r[gp]=n,r},`createBuilder`),Ep=C((e,t)=>{if(e.level<=0||!t)return e[gp]?``:t;let n=e[hp];if(n===void 0)return t;let{openAll:r,closeAll:i}=n;if(t.includes(`\x1B`))for(;n!==void 0;)t=up(t,n.close,n.open),n=n.parent;let a=t.indexOf(`
494
- `);return a!==-1&&(t=dp(t,i,r,a)),r+t+i},`applyStyle`);Object.defineProperties(xp.prototype,vp);var Dp=xp();xp({level:pp?pp.level:0});var Op=Dp;async function kp(e,t,{wranglerConfig:n,target:r=`cf`}={}){let i=new Jf;i.logger=t.logger;let a=new jf(i,e,e).setEnvironment(process.env).setNodeVersion(process.version),o=await a.getBuildSettings(),s=!!a.workspace?.isRoot;if(s){let t=Te(e);if(!a.workspace?.packages.some(e=>Te(e.path)===t))throw new h(`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=Ap(a.packageManager,e),l=c.lockFiles.some(t=>I(z(e,t))),u=Pp(o,t);if(u&&r===`cf`){let e=a.frameworks.get(u.baseDirectory??``)?.find(({id:e})=>e===u.framework.id);u.devCommand=e?.dev?.command,u.buildCommand=e?.build?.command}if(await Np(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:ec.id,name:ec.name}};return!l&&d.framework.id!==ec.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 ${Op.hex(`#3B818D`)(`https://developers.cloudflare.com/workers/framework-guides/automatic-configuration/#workspaces`)}`),{detectedFramework:d,packageManager:c,isWorkspaceRoot:s}}C(kp,`detectFramework`);function Ap(e,t){if(I(z(t,`nub.lock`)))return b;if(!e)return v;switch(e?.name){case`pnpm`:return y;case`yarn`:return u;case`bun`:return m;default:return v}}C(Ap,`convertDetectedPackageManager`);var jp=class extends l{static{C(this,`MultipleFrameworksCIError`)}constructor(e,t={telemetryMessage:`autoconfig detection multiple frameworks`}){super(Po`Cloudflare's tooling was unable to automatically configure your project, since multiple frameworks were found: ${e.join(`, `)}.
495
-
496
- To fix this issue either:
497
- - check your project's configuration to make sure that the target framework
498
- is the only configured one and try again
499
- - run \`wrangler setup\` locally to get an interactive user experience where
500
- you can specify what framework you want to target
501
-
502
- `,{...t,code:1})}};function Mp(e){throw new jp(e.map(e=>e.name),{telemetryMessage:`autoconfig detection multiple frameworks`})}C(Mp,`throwMultipleFrameworksNonInteractiveError`);async function Np(e,t,n,r){if(n?.pages_build_output_dir)return!0;let i=t.getCacheFolder?.();if(i&&I(z(i,`pages.json`)))return!0;if(r===void 0){let n=z(e,`functions`);if(I(n)&&xe(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}C(Np,`isPagesProject`);function Pp(e,t){if(e.length===0)return;if(e.length===1)return e[0];let n=e.filter(({framework:e})=>ac(e.id));if(n.length===0)return(t.isNonInteractiveOrCI?.()??!1)&&Mp(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 jp(n.map(e=>e.name),{telemetryMessage:`autoconfig detection multiple frameworks`});return n[0]}C(Pp,`maybeFindDetectedFramework`);var Fp=`cloudflare.config.ts`;function Ip(e){L(e.configured===!1,`Error: expected the current project not to be already configured`)}C(Ip,`assertNonConfigured`);async function Lp(e){let t=await Le(e);for(let n of t)if((await Re(z(e,n))).isFile()&&n===`index.html`)return!0;return!1}C(Lp,`hasIndexHtml`);async function Rp(e){if(await Lp(e))return`.`;let t=await Le(e);for(let n of t){let t=z(e,n);if((await Re(t)).isDirectory()&&await Lp(t))return we(e,t)}}C(Rp,`findAssetsDir`);async function zp({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`&&I(Te(e,Fp));if(n===`wrangler`&&t?.configPath&&!t.pages_build_output_dir)return{configured:!0,projectPath:e,workerName:c(t.name,e),packageManager:v};let{detectedFramework:s,packageManager:l,isWorkspaceRoot:u}=await kp(e,r,{wranglerConfig:t,target:n}),f=oc(s.framework.id),p=Te(e,`package.json`),m;try{m=d(o(p),p)}catch{i.debug(`No package.json found when running autoconfig`)}let h=a||f.isConfigured(e,{target:n}),g=s?.dist??await Rp(e),_={projectPath:e,framework:f,packageJson:m,packageManager:l,devCommand:Bp(s.devCommand,l),buildCommand:Bp(s.buildCommand,l),env:f.env,workerName:c(m?.name,e)};if(h)return{..._,configured:!0,isWorkspaceRoot:u};if(!g)throw new mo(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}}C(zp,`getDetailsForAutoConfig`);function Bp(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}`}C(Bp,`getProjectCommand`);function Vp(e,t,n){let{logger:r}=t;r.log(``),r.log(n?.heading??`Detected Project Settings:`),r.log(H(` - Worker Name:`),e.workerName),e.framework&&r.log(H(` - Framework:`),e.framework.name),e.buildCommand&&r.log(H(` - Build Command:`),e.buildCommand),e.outputDir&&r.log(H(` - Output Directory:`),e.outputDir),r.log(``)}C(Vp,`displayAutoConfigDetails`);async function Hp(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:C(e=>{let t=i(e);return t.valid?!0:t.cause},`validate`)}),r.framework=oc(await n.select(`What framework is your application using?`,{choices:tc.map(e=>({title:e.name,value:e.id,description:e.id===ec.id?`No framework at all, or a static framework such as Vite, React or Gatsby.`:`The ${e.name} JavaScript framework`})),defaultOption:tc.findIndex(t=>e?.framework?e.framework.id===t.id:t.id===ec.id)})),r.outputDir=await n.prompt(`What directory contains your applications' output/asset files?`,{defaultValue:e.outputDir??``,validate:C(async e=>{if(!e)return`Please provide a valid directory path`;let t=xe(Te(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}C(Hp,`confirmAutoConfigDetails`);async function Up(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;Ip(e),Vp(e,n);let u=s?e:await Hp(e,n);if(e!==u&&Vp(u,n,{heading:`Updated Project Settings:`}),e=u,Ip(e),ac(e.framework.id)&&!sc(e.framework.id))throw new l(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`});L(e.outputDir,`The Output Directory is unexpectedly missing`);let d=_,f={name:e.workerName,compatibilityDate:d,observability:{enabled:!0}},{packageManager:p}=e,m=e.isWorkspaceRoot??!1,h=nc(e.framework.id);h&&e.framework.validateFrameworkVersion(e.projectPath,h,n);let g=await e.framework.configure({target:r,outputDir:e.outputDir,projectPath:e.projectPath,workerName:e.workerName,isWorkspaceRoot:m,dryRun:!0,packageManager:p,context:n}),v=Wp(f,g.workerConfig);if(r===`cf`&&g.buildTool===`wrangler`&&g.buildConfig&&I(Te(e.projectPath,`wrangler.config.ts`)))throw new l(`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=g.buildCommandOverride??e.buildCommand,x=await $p({...e,outputDir:e.outputDir},v,g,{build:b,deploy:g.deployCommandOverride??`${y} ${r} deploy`,version:g.versionCommandOverride??`${y} ${r} versions upload`},c,r,n,g.packageJsonScriptsOverrides);if(!(s||await n.dialogs.confirm(`Proceed with setup?`)))throw new l(`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:
503
- ${JSON.stringify(e,null,2)}...`),e.packageJson&&c&&(r===`cf`?e.packageJson.dependencies?.cf!==void 0||e.packageJson.devDependencies?.cf!==void 0||await Qt(p.type,[`cf@latest`],{dev:!0,isWorkspaceRoot:m}):await en(p.type,m)),e.packageJson&&r===`cf`&&g.buildTool===`wrangler`&&await en(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=Wp(f,S.workerConfig);if(e.packageJson){let t=Te(e.projectPath,`package.json`),n=JSON.parse(await Ie(t,`utf8`));await ze(t,JSON.stringify({...n,scripts:{...n.scripts,...x.scripts}},null,2)+`
504
- `)}if(r===`wrangler`){let t=Gp(C,S);t!==null&&await qp(e.projectPath,t)}return r===`cf`&&(C!==null&&await Jp(e.projectPath,C),S.buildTool===`wrangler`&&S.buildConfig&&await Yp(e.projectPath,S.buildConfig)),nn(e.projectPath),e.outputDir===e.projectPath&&tn(`${e.projectPath}/.assetsignore`),b&&o&&await n.runCommand(b,e.projectPath,`[build]`),x}C(Up,`runAutoConfig`);function Wp(e,t){return t===null?null:{...e,...t}}C(Wp,`mergeWorkerConfig`);function Gp(e,t){if(e===null)return null;let n=ee(te.parse({type:`worker`,...e}));return Kp({$schema:`node_modules/wrangler/config-schema.json`,...n,...t.buildConfig?.assetsDirectory?{assets:{...n.assets,directory:t.buildConfig.assetsDirectory}}:{}})}C(Gp,`getWranglerConfig`);function Kp(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}}C(Kp,`ensureNodejsCompatIsEnabled`);async function qp(e,t){let n={},r=em(e);r&&(n=a(await Ie(r,`utf8`),r));let i=Kp({...n,...t});await ze(Te(e,`wrangler.jsonc`),JSON.stringify(i,null,2)+`
505
- `)}C(qp,`saveWranglerJsonc`);async function Jp(e,t){await ze(Te(e,`cloudflare.config.ts`),Xp(t))}C(Jp,`saveCloudflareConfig`);async function Yp(e,t){await ze(Te(e,`wrangler.config.ts`),Zp(t))}C(Yp,`saveWranglerConfigTs`);function Xp(e){return`import { defineWorker } from "cf/config";
506
-
507
- export default defineWorker(${JSON.stringify(e,null,2)});
508
- `}C(Xp,`renderCloudflareConfig`);function Zp(e){return`import { defineWranglerConfig } from "wrangler/experimental-config";
509
-
510
- export default defineWranglerConfig(${JSON.stringify(e,null,2)});
511
- `}C(Zp,`renderWranglerConfigTs`);function Qp(e){return` `+e.trimEnd().replace(/\n/g,`
512
- `)}C(Qp,`indentFileContent`);async function $p(e,t,n,r,i,a,o,s){let{logger:c}=o;c.log(``);let l=a===`wrangler`?Gp(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(`@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`,preview:n?.preview??`${r}${a} dev`},t?.entrypoint&&Qo(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(Qp(Xp(t))),c.log(``)),a===`cf`&&n.buildTool===`wrangler`&&n.buildConfig&&(c.log(`📄 Create wrangler.config.ts:`),c.log(Qp(Zp(n.buildConfig))),c.log(``)),a===`wrangler`&&l){let t=I(Te(e.projectPath,`wrangler.jsonc`));c.log(t?`📄 Update wrangler.jsonc:`:`📄 Create wrangler.jsonc:`),c.log(` `+JSON.stringify(l,null,2).replace(/\n/g,`
513
- `)),c.log(``)}return e.framework&&!(e.framework instanceof Ds)&&!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}C($p,`buildOperationsSummary`);function em(e){let t=Te(e,`wrangler.jsonc`);if(I(t))return t;let n=Te(e,`wrangler.json`);if(I(n))return n}C(em,`getDirWranglerJsonConfigPath`);function tm(e){let t=typeof e==`string`?`
514
- `: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 nm(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 rm=({cwd:e=B.cwd(),path:t=B.env[nm()],preferLocal:n=!0,execPath:r=B.execPath,addExecPath:i=!0}={})=>{let a=e instanceof URL?Fe(e):e,o=R.resolve(a),s=[];return n&&im(s,o),i&&am(s,r,o),[...s,t].join(R.delimiter)},im=(e,t)=>{let n;for(;n!==t;)e.push(R.join(t,`node_modules/.bin`)),n=t,t=R.resolve(t,`..`)},am=(e,t,n)=>{let r=t instanceof URL?Fe(t):t;e.push(R.resolve(n,r,`..`))},om=({env:e=B.env,...t}={})=>{e={...e};let n=nm({env:e});return t.path=e[n],e[n]=rm(t),e},sm=(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);!cm(i,a)&&r||Object.defineProperty(e,n,a)},cm=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)},lm=(e,t)=>{let n=Object.getPrototypeOf(t);n!==Object.getPrototypeOf(e)&&Object.setPrototypeOf(e,n)},um=(e,t)=>`/* Wrapped ${e}*/\n${t}`,dm=Object.getOwnPropertyDescriptor(Function.prototype,`toString`),fm=Object.getOwnPropertyDescriptor(Function.prototype.toString,`name`),pm=(e,t,n)=>{let r=n===``?``:`with ${n.trim()}() `,i=um.bind(null,r,t.toString());Object.defineProperty(i,`name`,fm),Object.defineProperty(e,`toString`,{...dm,value:i})};function mm(e,t,{ignoreNonConfigurable:n=!1}={}){let{name:r}=e;for(let r of Reflect.ownKeys(t))sm(e,t,r,n);return lm(e,t),pm(e,t,r),e}const hm=new WeakMap,gm=(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(hm.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 mm(a,e),hm.set(a,r),a};gm.callCount=e=>{if(!hm.has(e))throw Error(`The given function \`${e.name}\` is not wrapped by the \`onetime\` package`);return hm.get(e)};const _m=function(){let e=64-ym+1;return Array.from({length:e},vm)},vm=function(e,t){return{name:`SIGRT${t+1}`,number:ym+t,action:`terminate`,description:`Application-specific signal (realtime)`,standard:`posix`}},ym=34,bm=[{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`}],xm=function(){let e=_m();return[...bm,...e].map(Sm)},Sm=function({name:e,number:t,description:n,action:r,forced:i=!1,standard:a}){let{signals:{[e]:o}}=Be,s=o!==void 0;return{name:e,number:s?o:t,description:n,supported:s,action:r,forced:i,standard:a}},Cm=function(){return xm().reduce(wm,{})},wm=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}}},Tm=Cm(),Em=function(){let e=xm(),t=Array.from({length:65},(t,n)=>Dm(n,e));return Object.assign({},...t)},Dm=function(e,t){let n=Om(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}}},Om=function(e,t){let n=t.find(({name:t})=>Be.signals[t]===e);return n===void 0?t.find(t=>t.number===e):n};Em();const km=({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}`,Am=({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:Tm[i].description,p=`Command ${km({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(`
515
- `);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},jm=[`stdin`,`stdout`,`stderr`],Mm=e=>jm.some(t=>e[t]!==void 0),Nm=e=>{if(!e)return;let{stdio:t}=e;if(t===void 0)return jm.map(t=>e[t]);if(Mm(e))throw Error(`It's not possible to provide \`stdio\` in combination with one of ${jm.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,jm.length);return Array.from({length:n},(e,n)=>t[n])};var Pm=e(re(),1);const Fm=(e,t=`SIGTERM`,n={})=>{let r=e(t);return Im(e,t,n,r),r},Im=(e,t,n,r)=>{if(!Lm(t,n,r))return;let i=zm(n),a=setTimeout(()=>{e(`SIGKILL`)},i);a.unref&&a.unref()},Lm=(e,{forceKillAfterTimeout:t},n)=>Rm(e)&&t!==!1&&n,Rm=e=>e===Ee.constants.signals.SIGTERM||typeof e==`string`&&e.toUpperCase()===`SIGTERM`,zm=({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},Bm=(e,t)=>{e.kill()&&(t.isCanceled=!0)},Vm=(e,t,n)=>{e.kill(t),n(Object.assign(Error(`Timed out`),{timedOut:!0,signal:t}))},Hm=(e,{timeout:t,killSignal:n=`SIGTERM`},r)=>{if(t===0||t===void 0)return r;let i,a=new Promise((r,a)=>{i=setTimeout(()=>{Vm(e,n,a)},t)}),o=r.finally(()=>{clearTimeout(i)});return Promise.race([a,o])},Um=({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})`)},Wm=async(e,{cleanup:t,detached:n},r)=>{if(!t||n)return r;let i=(0,Pm.default)(()=>{e.kill()});return r.finally(()=>{i()})};function Gm(e){return typeof e==`object`&&!!e&&typeof e.pipe==`function`}var Km=n(((e,n)=>{let{PassThrough:r}=t(`stream`);n.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}})),qm=n(((e,n)=>{let{constants:r}=t(`buffer`),i=t(`stream`),{promisify:a}=t(`util`),o=Km(),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()}n.exports=l,n.exports.buffer=(e,t)=>l(e,{...t,encoding:`buffer`}),n.exports.array=(e,t)=>l(e,{...t,array:!0}),n.exports.MaxBufferError=c})),Jm=n(((e,n)=>{let{PassThrough:r}=t(`stream`);n.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()}}})),Ym=e(qm(),1),Xm=e(Jm(),1);const Zm=(e,t)=>{t===void 0||e.stdin===void 0||(Gm(t)?t.pipe(e.stdin):e.stdin.end(t))},Qm=(e,{all:t})=>{if(!t||!e.stdout&&!e.stderr)return;let n=(0,Xm.default)();return e.stdout&&n.add(e.stdout),e.stderr&&n.add(e.stderr),n},$m=async(e,t)=>{if(e){e.destroy();try{return await t}catch(e){return e.bufferedData}}},eh=(e,{encoding:t,buffer:n,maxBuffer:r})=>{if(!(!e||!n))return t?(0,Ym.default)(e,{encoding:t,maxBuffer:r}):Ym.default.buffer(e,{maxBuffer:r})},th=async({stdout:e,stderr:t,all:n},{encoding:r,buffer:i,maxBuffer:a},o)=>{let s=eh(e,{encoding:r,buffer:i,maxBuffer:a}),c=eh(t,{encoding:r,buffer:i,maxBuffer:a}),l=eh(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},$m(e,s),$m(t,c),$m(n,l)])}},nh=(async()=>{})().constructor.prototype,rh=[`then`,`catch`,`finally`].map(e=>[e,Reflect.getOwnPropertyDescriptor(nh,e)]),ih=(e,t)=>{for(let[n,r]of rh){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},ah=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)})}),oh=(e,t=[])=>Array.isArray(t)?[e,...t]:[e],sh=/^[\w.-]+$/,ch=/"/g,lh=e=>typeof e!=`string`||sh.test(e)?e:`"${e.replace(ch,`\\"`)}"`,uh=(e,t)=>oh(e,t).join(` `),dh=(e,t)=>oh(e,t).map(e=>lh(e)).join(` `),fh=/ +/g,ph=e=>{let t=[];for(let n of e.trim().split(fh)){let e=t[t.length-1];e&&e.endsWith(`\\`)?t[t.length-1]=`${e.slice(0,-1)} ${n}`:t.push(n)}return t},mh=({env:e,extendEnv:t,preferLocal:n,localDir:r,execPath:i})=>{let a=t?{...B.env,...e}:e;return n?om({env:a,cwd:r,execPath:i}):a},hh=(e,t,n={})=>{let r=Jt.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||B.cwd(),execPath:B.execPath,encoding:`utf8`,reject:!0,cleanup:!0,all:!1,windowsHide:!0,...n},n.env=mh(n),n.stdio=Nm(n),B.platform===`win32`&&R.basename(e,`.exe`)===`cmd`&&t.unshift(`/q`),{file:e,args:t,options:n,parsed:r}},gh=(e,t,n)=>typeof t!=`string`&&!Pe.isBuffer(t)?n===void 0?void 0:``:e.stripFinalNewline?tm(t):t;function _h(e,t,n){let r=hh(e,t,n),i=uh(e,t),a=dh(e,t);Um(r.options);let o;try{o=je.spawn(r.file,r.args,r.options)}catch(e){return ih(new je.ChildProcess,Promise.reject(Am({error:e,stdout:``,stderr:``,all:``,command:i,escapedCommand:a,parsed:r,timedOut:!1,isCanceled:!1,killed:!1})))}let s=ah(o),c=Hm(o,r.options,s),l=Wm(o,r.options,c),u={isCanceled:!1};o.kill=Fm.bind(null,o.kill.bind(o)),o.cancel=Bm.bind(null,o,u);let d=gm(async()=>{let[{error:e,exitCode:t,signal:n,timedOut:s},c,d,f]=await th(o,r.options,l),p=gh(r.options,c),m=gh(r.options,d),h=gh(r.options,f);if(e||t!==0||n!==null){let c=Am({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 Zm(o,r.options.input),o.all=Qm(o,r.options),ih(o,d)}function vh(e,t){let[n,...r]=ph(e);return _h(n,r,t)}async function yh(e,t){if(oe())return t.fallbackValue??!1;let n=await N({message:e,initialValue:t.defaultValue});if(le(n))throw new r(130);return n}async function bh(e,t={}){if(oe()){if(t.fallbackValue===void 0)throw Error(t.fallbackError);return t.fallbackValue}for(;;){let n=await A({message:e,defaultValue:t.defaultValue,initialValue:t.initialValue});if(le(n))throw new r(130);let i=await t.validate?.(n);if(i===void 0||i===!0)return n;console.error(i===!1?`Invalid value`:i)}}async function xh(e,t){if(oe()){let e=t.fallbackOption??t.defaultOption??0,n=t.choices[e]??t.choices[0];if(!n)throw Error(t.fallbackError??`select() called with no choices`);return n.value}let n=await P({message:e,options:t.choices.map(e=>({label:e.title,value:e.value,hint:e.description})),initialValue:t.choices[t.defaultOption??0]?.value});if(le(n))throw new r(130);return n}async function Sh(e){let t=Th();try{return await zp({projectPath:e,target:`cf`,context:t})}catch(e){if(e instanceof mo){t.logger.debug(`Autoconfig could not detect this project:`,e);return}throw e}}async function Ch(e){return Up(e,{target:`cf`,context:Th(),runBuild:!1})}async function wh(e,t,n){let r=Object.entries(n??{}).map(([e,t])=>`"${e}=${t}"`).join(`, `);k.message(`Delegating to ${e}${r?` with ${r}`:``}`,{spacing:0});let i=vh(e,{cwd:t,env:n,stdio:`inherit`,reject:!1}),a=e=>()=>i.kill(e),o=a(`SIGINT`),s=a(`SIGTERM`);process.on(`SIGINT`,o),process.on(`SIGTERM`,s);try{let e=await i;return e.signal&&e.signal in De.signals?128+De.signals[e.signal]:e.exitCode??1}finally{process.off(`SIGINT`,o),process.off(`SIGTERM`,s)}}function Th(){return{logger:{log:console.log,info:console.info,warn:console.warn,debug:(...e)=>{process.env.DEBUG&&console.debug(...e)},error:console.error},dialogs:{confirm:(e,t)=>yh(e,{defaultValue:t?.defaultValue??!0,fallbackValue:t?.fallbackValue??t?.defaultValue??!0}),prompt:(e,t)=>bh(e,{initialValue:t?.defaultValue,fallbackValue:t?.defaultValue,fallbackError:`This command cannot be run in a non-interactive context`,validate:t?.validate}),select:(e,t)=>xh(e,{choices:t.choices,defaultOption:t.defaultOption,fallbackError:`This command cannot be run in a non-interactive context`})},runCommand:async(e,t,n)=>{console.log(`${n} Running: ${e}`);let i=await wh(e,t);if(i!==0)throw new r(i)},isNonInteractiveOrCI:oe}}function Eh(e){return t=>{if(!t.pkgRoot)return null;let n=z(t.pkgRoot,`bin`,e);return I(n)?n:null}}function Dh(){let e=z(process.env.CARGO_HOME??z(Oe(),`.cargo`),`bin`,`cloudflare-rs-dev-server`);return I(e)?e:null}const Oh=[{ecosystem:`npm`,pkg:`@cloudflare/vite-plugin`,minimumVersion:`1.54.3`,description:`Vite-based dev server (recommended for JavaScript/TypeScript)`,manifest:`package.json`,binary:Eh(`cf-vite`),installHint:`npm install --save-dev @cloudflare/vite-plugin@latest`},{ecosystem:`npm`,pkg:`wrangler`,fallback:!0,minimumVersion:`4.128.0`,description:`Wrangler-based dev server (legacy Worker projects)`,manifest:`package.json`,binary:Eh(`cf-wrangler.js`),installHint:`npm install --save-dev wrangler@latest`},{ecosystem:`pypi`,pkg:`cloudflare-py-dev-server`,description:`Python dev server (Pyodide via workerd)`,manifest:`pyproject.toml`,binary:()=>null,installHint:`pip install cloudflare-py-dev-server (or: uv add --dev cloudflare-py-dev-server)`},{ecosystem:`cargo`,pkg:`cloudflare-rs-dev-server`,description:`Rust dev server (wasm-bindgen + workerd)`,manifest:`Cargo.toml`,binary:Dh,installHint:`cargo install cloudflare-rs-dev-server`}];function kh(e){return Oh.find(t=>t.pkg===e)}function Ah(e){let t=[];t.push(...jh(e)),t.push(...Fh(e)),t.push(...zh(e));let n=t.filter(e=>!e.impl.fallback);return n.length>0?n:t}function jh(e){let t=z(e,`package.json`);if(!I(t))return[];let n;try{let e=be(t,`utf-8`);n=JSON.parse(e)}catch{return[]}let r=Mh(n),i=[];for(let n of r){let r=kh(n);if(!r||r.ecosystem!==`npm`)continue;let a=Nh(e,n),o=a?r.binary({cwd:e,pkgRoot:a}):null,s=a?Ph(a):void 0;i.push({impl:r,binary:o,installed:!!a,installedVersion:s,manifestPath:t})}return i}function Mh(e){let t=new Set;for(let n of[`dependencies`,`devDependencies`,`peerDependencies`,`optionalDependencies`]){let r=e[n];if(r&&typeof r==`object`)for(let e of Object.keys(r))t.add(e)}return t}function Nh(e,t){if(I(z(e,`node_modules`,t,`package.json`)))return z(e,`node_modules`,t)}function Ph(e){try{let t=JSON.parse(be(z(e,`package.json`),`utf8`));return typeof t.version==`string`?t.version:void 0}catch{return}}function Fh(e){let t=z(e,`pyproject.toml`);if(!I(t))return[];let n;try{n=be(t,`utf-8`)}catch{return[]}let r=[];for(let i of Ih()){if(!Lh(n,i.pkg))continue;let a=Rh(e,i.pkg);r.push({impl:i,binary:a,manifestPath:t})}return r}function Ih(){let e=[],t=new Set;for(let n of Vh())n.ecosystem===`pypi`&&!t.has(n.pkg)&&(e.push(n),t.add(n.pkg));return e}function Lh(e,t){let n=t.replace(/[.*+?^${}()|[\]\\]/g,`\\$&`);return RegExp(`["']${n}(?=[\\s\\[<>=!~"';])`,`m`).test(e)}function Rh(e,t){if(I(z(e,`uv.lock`)))return`uv:${t}`;try{let n=Me(`python3`,[`-c`,`import shutil, sys; p = shutil.which(${JSON.stringify(t)}); sys.stdout.write(p or "")`],{cwd:e,stdio:[`ignore`,`pipe`,`ignore`],encoding:`utf-8`}).trim();if(n&&I(n))return n}catch{}return null}function zh(e){let t=z(e,`Cargo.toml`);if(!I(t))return[];let n;try{n=be(t,`utf-8`)}catch{return[]}let r=[];for(let i of Vh()){if(i.ecosystem!==`cargo`||!Bh(n,i.pkg))continue;let a=i.binary({cwd:e});r.push({impl:i,binary:a,manifestPath:t})}return r}function Bh(e,t){let n=t.replace(/[.*+?^${}()|[\]\\]/g,`\\$&`);return RegExp(`(^\\s*${n}\\s*=)|(^\\s*\\[[^\\]]*\\.${n}\\s*\\])`,`m`).test(e)}function Vh(){return Oh}function Hh(e){let t=Ah(e);if(t.length===0)throw Gh(e),new r(1);if(t.length>1)throw Kh(t),new r(1);let[n]=t;if(!n)throw new r(1);if(!n.binary)throw qh(n),new r(1);if(n.impl.minimumVersion!==void 0&&!Uh(n.installedVersion,n.impl.minimumVersion))throw Wh(n),new r(1);return n}function Uh(e,t){let n=e=>{let t=e?.match(/^(\d+)\.(\d+)\.(\d+)(?:-|$)/);return t?[Number(t[1]),Number(t[2]),Number(t[3])]:void 0},r=n(e),i=n(t);if(r===void 0||i===void 0)return!1;for(let e=0;e<i.length;e++)if(r[e]!==i[e])return(r[e]??0)>(i[e]??0);return!0}function Wh(e){console.error(`\n${x.bold(e.impl.pkg)}@${e.installedVersion??`unknown`} is installed, but it is not compatible with cf's local runtime.\n\ncf requires ${x.bold(`${e.impl.pkg}@${e.impl.minimumVersion}`)} or newer for ${x.bold(`cf dev`)}, ${x.bold(`cf build`)}, and ${x.bold(`cf deploy`)}.\nTry: ${e.impl.installHint}`)}function Gh(e){console.error(`
516
- No Cloudflare dev-server is installed in this project.
517
-
518
- A project must declare exactly one of the following in its manifest:
519
- `);for(let e of Oh)console.error(` ${x.bold(e.pkg)} ${x.muted(`(${e.description})`)}`),console.error(` install: ${e.installHint}`);console.error(`\nThe manifest checked was: ${e}/(package.json|pyproject.toml|Cargo.toml)`)}function Kh(e){console.error(`
520
- Multiple Cloudflare dev-server implementations are configured:
521
- `);for(let t of e)console.error(` - ${x.bold(t.impl.pkg)} (${t.manifestPath})`);console.error(`
522
- A project can only use one dev-server. Remove all but one
523
- from your project's manifest and try again.`)}function qh(e){if(e.installed&&e.impl.minimumVersion){console.error(`\n${x.bold(e.impl.pkg)} is declared in ${e.manifestPath}, but this installation does not include the cf delegate.\n\ncf requires ${x.bold(`${e.impl.pkg}@${e.impl.minimumVersion}`)} or newer for ${x.bold(`cf dev`)}, ${x.bold(`cf build`)}, and ${x.bold(`cf deploy`)}.\nTry: ${e.impl.installHint}`);return}console.error(`\n${x.bold(e.impl.pkg)} is declared in ${e.manifestPath} but is not installed.\n\nTry: ${e.impl.installHint}`)}async function Jh(e,t,n){let r=e.binary;if(!r)throw Error(`Cannot spawn ${e.impl.pkg}: binary not found.\nTry: ${e.impl.installHint}`);let{command:i,prefixArgs:a}=Xh(r),o=Ne(i,[...a,t,...n],{stdio:`inherit`,env:Yh(t)}),s=e=>{o.kill(e)},c=()=>s(`SIGINT`),l=()=>s(`SIGTERM`);process.on(`SIGINT`,c),process.on(`SIGTERM`,l);try{return await new Promise((e,t)=>{o.once(`exit`,(t,n)=>{e(t===null?n?128+(Zh[n]??1):1:t)}),o.once(`error`,e=>{t(e)})})}finally{process.off(`SIGINT`,c),process.off(`SIGTERM`,l)}}function Yh(e){let t={...Qh(process.env,`--no-deprecation`),CLOUDFLARE_CF_AUTH:`true`};return e===`dev`?{...t,...F(t)}:t}function Xh(e){return e.startsWith(`uv:`)?{command:`uv`,prefixArgs:[`run`,`--no-sync`,e.slice(3)]}:{command:e,prefixArgs:[]}}const Zh={SIGHUP:1,SIGINT:2,SIGQUIT:3,SIGKILL:9,SIGTERM:15};function Qh(e,t){let n=e.NODE_OPTIONS??``;return n.split(/\s+/).includes(t)?e:{...e,NODE_OPTIONS:n?`${n} ${t}`:t}}export{Xe as C,He as S,$e as T,mt as _,wh as a,H as b,xh as c,Ft as d,pt as f,U as g,lt as h,Ch as i,Et as l,st as m,Hh as n,yh as o,ct as p,Sh as r,bh as s,Jh as t,wt as u,Je as v,Ve as w,V as x,We as y};