dal-code 1.0.50 → 1.0.51
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +1039 -5
- package/dist/bundle/chunks/anthropic-messages-2P3UGLIO.js +5 -0
- package/dist/bundle/chunks/anthropic.js +74 -0
- package/dist/bundle/chunks/azure-openai-responses-S4GNH2XC.js +1 -0
- package/dist/bundle/chunks/bedrock-converse-stream.js +88 -0
- package/dist/bundle/chunks/chunk-2KOJ4RNS.js +43 -0
- package/dist/bundle/chunks/chunk-3YGHTGYM.js +7 -0
- package/dist/bundle/chunks/chunk-4LDEEFCY.js +1 -0
- package/dist/bundle/chunks/chunk-4UTLMBZZ.js +13 -0
- package/dist/bundle/chunks/chunk-567OJLS7.js +1 -0
- package/dist/bundle/chunks/chunk-5AGIVGSV.js +5 -0
- package/dist/bundle/chunks/chunk-6QGV3IWD.js +5 -0
- package/dist/bundle/chunks/chunk-723ZGEZ2.js +1 -0
- package/dist/bundle/chunks/chunk-7DDKXS2Q.js +1 -0
- package/dist/bundle/chunks/chunk-7ZC4UXSL.js +1 -0
- package/dist/bundle/chunks/chunk-AL7NZVPP.js +1 -0
- package/dist/bundle/chunks/chunk-ATQJO2OE.js +3 -0
- package/dist/bundle/chunks/chunk-B7NRFMLU.js +8 -0
- package/dist/bundle/chunks/chunk-BEDAM2M7.js +81 -0
- package/dist/bundle/chunks/chunk-CF5GWZHW.js +30 -0
- package/dist/bundle/chunks/chunk-CFPQOC7P.js +1 -0
- package/dist/bundle/chunks/chunk-D2WTLI2T.js +19 -0
- package/dist/bundle/chunks/chunk-EH7SFF47.js +129 -0
- package/dist/bundle/chunks/chunk-FCKLBLA4.js +1 -0
- package/dist/bundle/chunks/chunk-FFMDRXC4.js +9 -0
- package/dist/bundle/chunks/chunk-GSGE3ULF.js +15 -0
- package/dist/bundle/chunks/chunk-H5FHS6BV.js +1 -0
- package/dist/bundle/chunks/chunk-HXK5EFBE.js +1172 -0
- package/dist/bundle/chunks/chunk-IEBK4HQA.js +1 -0
- package/dist/bundle/chunks/chunk-JE6UXK35.js +30 -0
- package/dist/bundle/chunks/chunk-JXWJOIH4.js +1 -0
- package/dist/bundle/chunks/chunk-K7VBBYTT.js +1 -0
- package/dist/bundle/chunks/chunk-L2ZPNLYD.js +1 -0
- package/dist/bundle/chunks/chunk-LVVZS2NO.js +11 -0
- package/dist/bundle/chunks/chunk-ML5DIOWR.js +1 -0
- package/dist/bundle/chunks/chunk-NUIR7PPD.js +25 -0
- package/dist/bundle/chunks/chunk-P7FPUEYA.js +1 -0
- package/dist/bundle/chunks/chunk-PGXDEOVV.js +1 -0
- package/dist/bundle/chunks/chunk-PJACZCIR.js +1 -0
- package/dist/bundle/chunks/chunk-PRRNXB7S.js +1 -0
- package/dist/bundle/chunks/chunk-PWZRJWNP.js +17 -0
- package/dist/bundle/chunks/chunk-R44HF4S5.js +9 -0
- package/dist/bundle/chunks/chunk-R47JBGS3.js +1 -0
- package/dist/bundle/chunks/chunk-RCVVRHMF.js +9 -0
- package/dist/bundle/chunks/chunk-RDZVAGPR.js +1 -0
- package/dist/bundle/chunks/chunk-RR3ZP63P.js +56 -0
- package/dist/bundle/chunks/chunk-SE42OS3U.js +21 -0
- package/dist/bundle/chunks/chunk-TMTOQ7H7.js +1 -0
- package/dist/bundle/chunks/chunk-UTB4DTYQ.js +1 -0
- package/dist/bundle/chunks/chunk-VNHNHA4V.js +1 -0
- package/dist/bundle/chunks/chunk-XJFQKN3N.js +2 -0
- package/dist/bundle/chunks/chunk-ZG74NES2.js +1 -0
- package/dist/bundle/chunks/cli-FWMQKBFA.js +30 -0
- package/dist/bundle/chunks/cli-ZEDY5U67.js +52 -0
- package/dist/bundle/chunks/cloudflare-workers-ai-system-one-E6TEENDO.js +1 -0
- package/dist/bundle/chunks/codemode-worker.js +480 -0
- package/dist/bundle/chunks/dist-D3WIBXB5.js +10 -0
- package/dist/bundle/chunks/easter-egg-3d-5TFBCTIS.js +1 -0
- package/dist/bundle/chunks/execute-62LDYHXA.js +506 -0
- package/dist/bundle/chunks/github-copilot.js +1 -0
- package/dist/bundle/chunks/google-generative-ai-V5DLXTF7.js +1 -0
- package/dist/bundle/chunks/google-vertex-K3KYGGLI.js +1 -0
- package/dist/bundle/chunks/http-proxy-KF35JLJN.js +1 -0
- package/dist/bundle/chunks/https-proxy-agent-LVOO5TPL.js +12 -0
- package/dist/bundle/chunks/image-resize-worker.js +1 -0
- package/dist/bundle/chunks/jiti-loader-GL4HJFAD.js +20 -0
- package/dist/bundle/chunks/jiti-static-loader-2RCDI6B4.js +1 -0
- package/dist/bundle/chunks/kimi-coding.js +1 -0
- package/dist/bundle/chunks/lib-4AVRLBHM.js +8 -0
- package/dist/bundle/chunks/llama-cpp-classify-JCTIEHTL.js +21 -0
- package/dist/bundle/chunks/mcp-VF7EY5WC.js +10 -0
- package/dist/bundle/chunks/meta.js +1 -0
- package/dist/bundle/chunks/mistral-conversations-LVBXTF6R.js +4 -0
- package/dist/bundle/chunks/multipart-parser-FMGQ7342.js +2 -0
- package/dist/bundle/chunks/node-AUOGOBCN.js +1 -0
- package/dist/bundle/chunks/node-ZTHARAQV.js +15 -0
- package/dist/bundle/chunks/office-PONBADQP.js +419 -0
- package/dist/bundle/chunks/openai-chatgpt.js +74 -0
- package/dist/bundle/chunks/openai-codex-responses-WBZKNYLX.js +9 -0
- package/dist/bundle/chunks/openai-codex.js +74 -0
- package/dist/bundle/chunks/openai-completions-HMHQRGX4.js +6 -0
- package/dist/bundle/chunks/openai-decisions-R7OFRKLL.js +4 -0
- package/dist/bundle/chunks/openai-responses-BHXRQFCI.js +3 -0
- package/dist/bundle/chunks/openrouter-images-BIMNIXQZ.js +1 -0
- package/dist/bundle/chunks/openrouter.js +74 -0
- package/dist/bundle/chunks/pi-messages-X5YTLXQJ.js +7 -0
- package/dist/bundle/chunks/radius.js +74 -0
- package/dist/bundle/chunks/review-WCGIBVLM.js +80 -0
- package/dist/bundle/chunks/rewind-2OYLDDHH.js +8 -0
- package/dist/bundle/chunks/router-7E5LU7US.js +3 -0
- package/dist/bundle/chunks/runtime-5PTUOEM2.js +1 -0
- package/dist/bundle/chunks/sdk-ZUFIGPSS.js +1 -0
- package/dist/bundle/chunks/src-QKGKDFSU.js +3 -0
- package/dist/bundle/chunks/sync-LOX6TIM6.js +4 -0
- package/dist/bundle/chunks/typesafe-system-one-KOIOG3HP.js +1 -0
- package/dist/bundle/chunks/usage-2EVEFGNI.js +1 -0
- package/dist/bundle/chunks/virtual-modules-MYMONT3Y.js +1 -0
- package/dist/bundle/chunks/xai.js +1 -0
- package/dist/bundle/cli-runtime.js +2 -0
- package/dist/bundle/cli.js +2 -0
- package/dist/bundle/index.js +1 -0
- package/dist/bundle/rpc-entry.js +2 -0
- package/dist/cli/args.js +1 -1
- package/dist/cli/auth-command.js +9 -6
- package/dist/cli/auth-login.js +2 -0
- package/dist/cli/auth-logout.js +1 -0
- package/dist/cli/auth-terminal.js +5 -0
- package/dist/cli/config-selector.js +1 -1
- package/dist/config.d.ts +5 -0
- package/dist/config.js +1 -1
- package/dist/core/agent-session-runtime.js +1 -1
- package/dist/core/agent-session-services.js +1 -1
- package/dist/core/agent-session.d.ts +8 -1
- package/dist/core/agent-session.js +12 -9
- package/dist/core/auth-storage.js +1 -1
- package/dist/core/bash-executor.js +1 -1
- package/dist/core/bug-report.js +3 -3
- package/dist/core/cache-warmer.d.ts +3 -15
- package/dist/core/cache-warmer.js +1 -1
- package/dist/core/compaction/branch-summarization.d.ts +3 -2
- package/dist/core/compaction/branch-summarization.js +5 -5
- package/dist/core/compaction/compaction.d.ts +1 -0
- package/dist/core/compaction/compaction.js +14 -14
- package/dist/core/compaction/tool-output-pruning.js +1 -1
- package/dist/core/compaction/utils.d.ts +0 -1
- package/dist/core/compaction/utils.js +8 -8
- package/dist/core/exec.d.ts +2 -0
- package/dist/core/exec.js +1 -1
- package/dist/core/export-html/template.css +9 -0
- package/dist/core/export-html/template.js +46 -39
- package/dist/core/export-html/tool-renderer.js +1 -1
- package/dist/core/extensions/index.d.ts +1 -1
- package/dist/core/extensions/loader.js +1 -1
- package/dist/core/extensions/pi-ai-extension-view.js +1 -0
- package/dist/core/extensions/runner.js +1 -1
- package/dist/core/extensions/types.d.ts +25 -7
- package/dist/core/extensions/virtual-modules.js +1 -1
- package/dist/core/keybindings.d.ts +1 -1
- package/dist/core/keybindings.js +1 -1
- package/dist/core/mcp-servers.d.ts +6 -17
- package/dist/core/mcp-servers.js +1 -1
- package/dist/core/model-config.d.ts +1912 -2211
- package/dist/core/model-config.js +4 -4
- package/dist/core/model-resolver.js +1 -1
- package/dist/core/model-runtime.d.ts +1 -0
- package/dist/core/model-runtime.js +1 -1
- package/dist/core/package-manager.d.ts +10 -1
- package/dist/core/package-manager.js +2 -2
- package/dist/core/pi-ai-schemas.js +1 -0
- package/dist/core/pi-manifest.js +1 -1
- package/dist/core/preferred-providers.js +1 -0
- package/dist/core/project-trust.js +2 -2
- package/dist/core/prompt-templates.js +2 -2
- package/dist/core/provider-composer.js +1 -1
- package/dist/core/provider-matching.js +1 -0
- package/dist/core/radius-mcp.js +1 -0
- package/dist/core/remote-catalog-provider.js +1 -1
- package/dist/core/resource-loader.d.ts +3 -1
- package/dist/core/resource-loader.js +1 -1
- package/dist/core/runtime-credentials.js +1 -1
- package/dist/core/sdk.js +1 -1
- package/dist/core/session-cwd.js +3 -7
- package/dist/core/session-manager.d.ts +1 -0
- package/dist/core/session-manager.js +12 -12
- package/dist/core/settings-defaults.js +1 -1
- package/dist/core/settings-manager.d.ts +4 -0
- package/dist/core/settings-manager.js +1 -1
- package/dist/core/settings-schema.d.ts +4 -2
- package/dist/core/settings-schema.js +1 -1
- package/dist/core/skills.js +3 -3
- package/dist/core/slash-commands.js +1 -1
- package/dist/core/source-info.d.ts +8 -0
- package/dist/core/source-info.js +1 -1
- package/dist/core/system-prompt.js +3 -3
- package/dist/core/tools/bash.d.ts +2 -2
- package/dist/core/tools/bash.js +15 -15
- package/dist/core/tools/edit-diff.d.ts +9 -4
- package/dist/core/tools/edit-diff.js +22 -15
- package/dist/core/tools/edit.d.ts +3 -3
- package/dist/core/tools/edit.js +3 -3
- package/dist/core/tools/find.d.ts +2 -2
- package/dist/core/tools/find.js +10 -11
- package/dist/core/tools/grep.d.ts +3 -3
- package/dist/core/tools/grep.js +8 -12
- package/dist/core/tools/ls.d.ts +2 -2
- package/dist/core/tools/ls.js +4 -4
- package/dist/core/tools/powershell.js +6 -2
- package/dist/core/tools/read.d.ts +5 -2
- package/dist/core/tools/read.js +20 -19
- package/dist/core/tools/render-utils.js +5 -5
- package/dist/core/tools/renderers/write.js +10 -10
- package/dist/core/tools/tool-definition-wrapper.d.ts +11 -0
- package/dist/core/tools/truncate.d.ts +2 -8
- package/dist/core/tools/truncate.js +10 -10
- package/dist/core/tools/write.d.ts +2 -2
- package/dist/core/trust-manager.js +2 -2
- package/dist/core/usage-totals.js +1 -1
- package/dist/extensions/codemode/execute.js +12 -12
- package/dist/extensions/codemode/renderer.js +6 -6
- package/dist/extensions/codemode/tool.d.ts +2 -1
- package/dist/extensions/codemode/tool.js +11 -10
- package/dist/extensions/llama/client.js +5 -5
- package/dist/extensions/llama/ui.js +2 -2
- package/dist/extensions/mcp/cli.js +21 -19
- package/dist/extensions/mcp/config.js +2 -2
- package/dist/extensions/mcp/index.js +7 -7
- package/dist/extensions/mcp/oauth.d.ts +3 -22
- package/dist/extensions/mcp/oauth.js +2 -2
- package/dist/extensions/mcp/resources.d.ts +1 -1
- package/dist/extensions/mcp/resources.js +1 -1
- package/dist/extensions/mcp/runtime.d.ts +2 -2
- package/dist/extensions/mcp/runtime.js +3 -3
- package/dist/extensions/mcp/tools.d.ts +1 -8
- package/dist/extensions/mcp/tools.js +4 -9
- package/dist/extensions/mcp/ui.js +1 -1
- package/dist/extensions/tool-search/tool.js +4 -4
- package/dist/index.d.ts +2 -2
- package/dist/main.js +4 -4
- package/dist/modes/interactive/components/assistant-message.d.ts +4 -1
- package/dist/modes/interactive/components/assistant-message.js +2 -2
- package/dist/modes/interactive/components/branch-summary-message.d.ts +5 -1
- package/dist/modes/interactive/components/branch-summary-message.js +2 -2
- package/dist/modes/interactive/components/compaction-summary-message.d.ts +5 -1
- package/dist/modes/interactive/components/compaction-summary-message.js +2 -2
- package/dist/modes/interactive/components/config-selector.js +1 -1
- package/dist/modes/interactive/components/custom-editor.js +1 -1
- package/dist/modes/interactive/components/custom-entry.js +1 -1
- package/dist/modes/interactive/components/custom-message.d.ts +5 -2
- package/dist/modes/interactive/components/custom-message.js +3 -3
- package/dist/modes/interactive/components/diff.js +3 -3
- package/dist/modes/interactive/components/extension-editor.d.ts +1 -0
- package/dist/modes/interactive/components/extension-editor.js +1 -1
- package/dist/modes/interactive/components/extension-selector.js +2 -2
- package/dist/modes/interactive/components/login-dialog.d.ts +5 -0
- package/dist/modes/interactive/components/login-dialog.js +1 -1
- package/dist/modes/interactive/components/markdown-transform.js +1 -1
- package/dist/modes/interactive/components/mermaid.js +4 -4
- package/dist/modes/interactive/components/model-selector.d.ts +1 -0
- package/dist/modes/interactive/components/model-selector.js +2 -2
- package/dist/modes/interactive/components/oauth-selector.d.ts +2 -1
- package/dist/modes/interactive/components/oauth-selector.js +1 -1
- package/dist/modes/interactive/components/provider-brand.js +1 -0
- package/dist/modes/interactive/components/radius-login-selector.js +1 -1
- package/dist/modes/interactive/components/scoped-models-selector.d.ts +1 -0
- package/dist/modes/interactive/components/scoped-models-selector.js +1 -1
- package/dist/modes/interactive/components/session-selector-search.js +1 -1
- package/dist/modes/interactive/components/session-selector.d.ts +2 -1
- package/dist/modes/interactive/components/session-selector.js +2 -2
- package/dist/modes/interactive/components/settings-submenu.js +1 -1
- package/dist/modes/interactive/components/skill-invocation-message.d.ts +5 -1
- package/dist/modes/interactive/components/skill-invocation-message.js +2 -2
- package/dist/modes/interactive/components/tool-execution.d.ts +1 -0
- package/dist/modes/interactive/components/tool-execution.js +3 -3
- package/dist/modes/interactive/components/tree-selector.d.ts +2 -0
- package/dist/modes/interactive/components/tree-selector.js +1 -1
- package/dist/modes/interactive/components/user-message-selector.d.ts +1 -0
- package/dist/modes/interactive/components/user-message-selector.js +1 -1
- package/dist/modes/interactive/components/user-message.d.ts +2 -1
- package/dist/modes/interactive/components/user-message.js +1 -1
- package/dist/modes/interactive/external-editor.js +3 -3
- package/dist/modes/interactive/interactive-mode.d.ts +10 -1
- package/dist/modes/interactive/interactive-mode.js +45 -40
- package/dist/modes/interactive/model-search.js +1 -1
- package/dist/modes/interactive/theme/theme.d.ts +4 -0
- package/dist/modes/interactive/theme/theme.js +3 -6
- package/dist/modes/print-mode.js +7 -7
- package/dist/modes/rpc/rpc-mode.js +1 -1
- package/dist/node_modules/@dalcode/dal-advisor/package.json +3 -3
- package/dist/node_modules/@dalcode/dal-awake/package.json +2 -2
- package/dist/node_modules/@dalcode/dal-bridge/package.json +2 -2
- package/dist/node_modules/@dalcode/dal-capabilities/package.json +4 -4
- package/dist/node_modules/@dalcode/dal-codeindex/package.json +2 -2
- package/dist/node_modules/@dalcode/dal-compat/package.json +3 -3
- package/dist/node_modules/@dalcode/dal-dap/package.json +2 -2
- package/dist/node_modules/@dalcode/dal-gateway/package.json +2 -2
- package/dist/node_modules/@dalcode/dal-goal/package.json +3 -3
- package/dist/node_modules/@dalcode/dal-guard/package.json +4 -4
- package/dist/node_modules/@dalcode/dal-halo/package.json +1 -1
- package/dist/node_modules/@dalcode/dal-interactive/package.json +2 -2
- package/dist/node_modules/@dalcode/dal-lang/package.json +3 -3
- package/dist/node_modules/@dalcode/dal-learn/package.json +3 -2
- package/dist/node_modules/@dalcode/dal-learn/src/index.js +16 -16
- package/dist/node_modules/@dalcode/dal-learn/src/lesson-events.js +1 -0
- package/dist/node_modules/@dalcode/dal-lsp/package.json +4 -4
- package/dist/node_modules/@dalcode/dal-mcp/package.json +6 -6
- package/dist/node_modules/@dalcode/dal-office/package.json +2 -2
- package/dist/node_modules/@dalcode/dal-pi-kit/dist/i18n.js +3 -2
- package/dist/node_modules/@dalcode/dal-pi-kit/package.json +1 -1
- package/dist/node_modules/@dalcode/dal-pi-kit/src/i18n.js +4 -3
- package/dist/node_modules/@dalcode/dal-plugins/package.json +4 -4
- package/dist/node_modules/@dalcode/dal-recall/package.json +2 -2
- package/dist/node_modules/@dalcode/dal-remote/package.json +2 -2
- package/dist/node_modules/@dalcode/dal-review/package.json +3 -3
- package/dist/node_modules/@dalcode/dal-rewind/package.json +2 -2
- package/dist/node_modules/@dalcode/dal-router/package.json +6 -6
- package/dist/node_modules/@dalcode/dal-rtk/package.json +2 -2
- package/dist/node_modules/@dalcode/dal-skills/package.json +3 -3
- package/dist/node_modules/@dalcode/dal-statusline/package.json +2 -2
- package/dist/node_modules/@dalcode/dal-structured/package.json +2 -2
- package/dist/node_modules/@dalcode/dal-subagent/package.json +5 -5
- package/dist/node_modules/@dalcode/dal-sync/package.json +4 -4
- package/dist/node_modules/@dalcode/dal-telemetry/package.json +4 -4
- package/dist/node_modules/@dalcode/dal-terminal/package.json +2 -2
- package/dist/node_modules/@dalcode/dal-tool-catalog/package.json +2 -2
- package/dist/node_modules/@dalcode/dal-usage/package.json +2 -2
- package/dist/node_modules/@dalcode/dal-web/package.json +3 -3
- package/dist/node_modules/@dalcode/dal-workflow/package.json +2 -2
- package/dist/node_modules/@dalcode/dal-workflow/src/todo-snapshot.js +2 -2
- package/dist/node_modules/@dalcode/dal-workflow/src/todo.js +3 -3
- package/dist/node_modules/@dalcode/deepailab/package.json +3 -3
- package/dist/node_modules/@earendil-works/pi-agent-core/README.md +8 -6
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/proxy.d.ts +1 -1
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/proxy.js +2 -2
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/types.d.ts +8 -5
- package/dist/node_modules/@earendil-works/pi-agent-core/package.json +3 -3
- package/dist/node_modules/@earendil-works/pi-ai/README.md +58 -39
- package/dist/node_modules/@earendil-works/pi-ai/dist/api/anthropic-messages.js +5 -5
- package/dist/node_modules/@earendil-works/pi-ai/dist/api/azure-openai-responses.js +1 -1
- package/dist/node_modules/@earendil-works/pi-ai/dist/api/bedrock-converse-stream.js +1 -1
- package/dist/node_modules/@earendil-works/pi-ai/dist/api/bedrock-converse-stream.lazy.d.ts +1 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/api/bedrock-converse-stream.lazy.js +1 -1
- package/dist/node_modules/@earendil-works/pi-ai/dist/api/constrained-sampling.js +1 -1
- package/dist/node_modules/@earendil-works/pi-ai/dist/api/google-generative-ai.js +1 -1
- package/dist/node_modules/@earendil-works/pi-ai/dist/api/google-shared.js +2 -2
- package/dist/node_modules/@earendil-works/pi-ai/dist/api/google-vertex.js +1 -1
- package/dist/node_modules/@earendil-works/pi-ai/dist/api/lazy.d.ts +1 -1
- package/dist/node_modules/@earendil-works/pi-ai/dist/api/lazy.js +1 -1
- package/dist/node_modules/@earendil-works/pi-ai/dist/api/mistral-conversations.js +4 -4
- package/dist/node_modules/@earendil-works/pi-ai/dist/api/openai-codex-responses.js +1 -1
- package/dist/node_modules/@earendil-works/pi-ai/dist/api/openai-completions.d.ts +2 -1
- package/dist/node_modules/@earendil-works/pi-ai/dist/api/openai-completions.js +5 -5
- package/dist/node_modules/@earendil-works/pi-ai/dist/api/openai-responses-shared.js +9 -9
- package/dist/node_modules/@earendil-works/pi-ai/dist/api/openai-responses.js +3 -3
- package/dist/node_modules/@earendil-works/pi-ai/dist/api/openrouter-images.js +1 -1
- package/dist/node_modules/@earendil-works/pi-ai/dist/api/pi-messages.d.ts +2 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/api/pi-messages.js +3 -3
- package/dist/node_modules/@earendil-works/pi-ai/dist/api/simple-options.js +1 -1
- package/dist/node_modules/@earendil-works/pi-ai/dist/api/strict-tool-limits.js +1 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/auth/oauth/kimi-coding.js +1 -1
- package/dist/node_modules/@earendil-works/pi-ai/dist/auth/oauth/load.js +1 -1
- package/dist/node_modules/@earendil-works/pi-ai/dist/auth/oauth/meta.js +1 -1
- package/dist/node_modules/@earendil-works/pi-ai/dist/auth/oauth/radius.js +1 -1
- package/dist/node_modules/@earendil-works/pi-ai/dist/auth/oauth/trusted-url.js +1 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/auth/types.d.ts +2 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/cache-warming.d.ts +21 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/cache-warming.js +1 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/cli.js +5 -5
- package/dist/node_modules/@earendil-works/pi-ai/dist/compat/extension-oauth-types.d.ts +2 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/env-api-keys.js +1 -1
- package/dist/node_modules/@earendil-works/pi-ai/dist/index.d.ts +3 -3
- package/dist/node_modules/@earendil-works/pi-ai/dist/index.js +1 -1
- package/dist/node_modules/@earendil-works/pi-ai/dist/lazy-bedrock-provider.js +1 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/lazy-oauth.js +1 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/models.d.ts +1 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/models.generated.d.ts +4 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/models.generated.js +1 -1
- package/dist/node_modules/@earendil-works/pi-ai/dist/models.js +1 -1
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/all.js +1 -1
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/compat-schema.d.ts +485 -498
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/compat-schema.js +1 -1
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/data/.manifest.json +1 -1
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/data/amazon-bedrock.json +1 -1
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/data/anthropic.json +1 -1
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/data/azure.json +1 -1
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/data/baseten.json +1 -1
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/data/cloudflare-ai-gateway.json +1 -1
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/data/cloudflare-workers-ai.json +1 -1
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/data/fireworks.json +1 -1
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/data/github-copilot.json +1 -1
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/data/google-vertex.json +1 -1
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/data/google.json +1 -1
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/data/huggingface.json +1 -1
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/data/kimi-coding.json +1 -1
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/data/meta.json +1 -1
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/data/mistral.json +1 -1
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/data/moonshotai-cn.json +1 -1
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/data/moonshotai.json +1 -1
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/data/nvidia.json +1 -1
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/data/openai-codex.json +1 -1
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/data/openai.json +1 -1
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/data/opencode-go.json +1 -1
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/data/opencode.json +1 -1
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/data/openrouter.json +1 -1
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/data/qwen-token-plan-cn.json +1 -1
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/data/qwen-token-plan-individual-cn.json +1 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/data/qwen-token-plan-individual.json +1 -1
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/data/qwen-token-plan.json +1 -1
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/data/radius.json +1 -1
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/data/together.json +1 -1
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/data/vercel-ai-gateway.json +1 -1
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/data/xai.json +1 -1
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/data/xiaomi-token-plan-ams.json +1 -1
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/data/xiaomi-token-plan-cn.json +1 -1
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/data/xiaomi-token-plan-sgp.json +1 -1
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/data/xiaomi.json +1 -1
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/data/zai-coding-cn.json +1 -1
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/data/zai.json +1 -1
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/faux.js +5 -5
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/github-copilot.js +1 -1
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/model-schema.d.ts +65 -65
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/model-schema.js +1 -1
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/openai-codex.js +1 -1
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/qwen-token-plan-individual-cn.js +1 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/qwen-token-plan-individual-cn.models.d.ts +5 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/qwen-token-plan-individual-cn.models.js +1 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/radius-config.js +1 -1
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/schema-builders.js +1 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/telemetry.js +1 -1
- package/dist/node_modules/@earendil-works/pi-ai/dist/types.d.ts +4 -3
- package/dist/node_modules/@earendil-works/pi-ai/dist/utils/error-body.js +1 -1
- package/dist/node_modules/@earendil-works/pi-ai/dist/utils/openrouter-cost.js +1 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/utils/overflow.js +1 -1
- package/dist/node_modules/@earendil-works/pi-ai/dist/utils/retry.js +1 -1
- package/dist/node_modules/@earendil-works/pi-ai/dist/utils/streaming-json.d.ts +26 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/utils/streaming-json.js +4 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/utils/{typebox-helpers.d.ts → string-enum.d.ts} +2 -2
- package/dist/node_modules/@earendil-works/pi-ai/dist/utils/string-enum.js +1 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/utils/text.d.ts +1 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/utils/text.js +2 -2
- package/dist/node_modules/@earendil-works/pi-ai/dist/utils/validation.js +4 -4
- package/dist/node_modules/@earendil-works/pi-ai/dist/utils/version.d.ts +1 -1
- package/dist/node_modules/@earendil-works/pi-ai/dist/utils/version.js +1 -1
- package/dist/node_modules/@earendil-works/pi-ai/package.json +12 -5
- package/dist/node_modules/@earendil-works/pi-codemode/README.md +2 -2
- package/dist/node_modules/@earendil-works/pi-codemode/dist/declarations.d.ts +1 -0
- package/dist/node_modules/@earendil-works/pi-codemode/dist/declarations.js +4 -4
- package/dist/node_modules/@earendil-works/pi-codemode/dist/index.d.ts +1 -1
- package/dist/node_modules/@earendil-works/pi-codemode/dist/index.js +1 -1
- package/dist/node_modules/@earendil-works/pi-codemode/dist/runtime/prelude-source.js +2 -0
- package/dist/node_modules/@earendil-works/pi-codemode/package.json +1 -1
- package/dist/node_modules/@earendil-works/pi-coding-agent/package.json +1 -1
- package/dist/node_modules/@earendil-works/pi-mcp/CHANGELOG.md +32 -0
- package/dist/node_modules/@earendil-works/pi-mcp/README.md +60 -5
- package/dist/node_modules/@earendil-works/pi-mcp/dist/config.d.ts +45 -0
- package/dist/node_modules/@earendil-works/pi-mcp/dist/config.js +1 -0
- package/dist/node_modules/@earendil-works/pi-mcp/dist/index.d.ts +5 -0
- package/dist/node_modules/@earendil-works/pi-mcp/dist/index.js +1 -1
- package/dist/node_modules/@earendil-works/pi-mcp/dist/input-schema.d.ts +1 -0
- package/dist/node_modules/@earendil-works/pi-mcp/dist/input-schema.js +1 -0
- package/dist/node_modules/@earendil-works/pi-mcp/dist/naming.d.ts +2 -0
- package/dist/node_modules/@earendil-works/pi-mcp/dist/naming.js +1 -0
- package/dist/node_modules/@earendil-works/pi-mcp/dist/oauth/auth-provider.d.ts +18 -0
- package/dist/node_modules/@earendil-works/pi-mcp/dist/oauth/auth-provider.js +1 -0
- package/dist/node_modules/@earendil-works/pi-mcp/dist/oauth/callback.js +1 -1
- package/dist/node_modules/@earendil-works/pi-mcp/dist/oauth/client-settings.d.ts +42 -0
- package/dist/node_modules/@earendil-works/pi-mcp/dist/oauth/client-settings.js +1 -0
- package/dist/node_modules/@earendil-works/pi-mcp/dist/oauth/errors.d.ts +3 -0
- package/dist/node_modules/@earendil-works/pi-mcp/dist/oauth/errors.js +1 -1
- package/dist/node_modules/@earendil-works/pi-mcp/dist/oauth/flow.d.ts +2 -0
- package/dist/node_modules/@earendil-works/pi-mcp/dist/oauth/flow.js +1 -1
- package/dist/node_modules/@earendil-works/pi-mcp/dist/oauth/index.d.ts +5 -1
- package/dist/node_modules/@earendil-works/pi-mcp/dist/oauth/index.js +1 -1
- package/dist/node_modules/@earendil-works/pi-mcp/dist/oauth/loopback.d.ts +22 -0
- package/dist/node_modules/@earendil-works/pi-mcp/dist/oauth/loopback.js +1 -0
- package/dist/node_modules/@earendil-works/pi-mcp/dist/oauth/sign-in.d.ts +28 -0
- package/dist/node_modules/@earendil-works/pi-mcp/dist/oauth/sign-in.js +1 -0
- package/dist/node_modules/@earendil-works/pi-mcp/dist/oauth/types.d.ts +1 -0
- package/dist/node_modules/@earendil-works/pi-mcp/dist/oauth/types.js +1 -1
- package/dist/node_modules/@earendil-works/pi-mcp/dist/output-limit.d.ts +8 -0
- package/dist/node_modules/@earendil-works/pi-mcp/dist/output-limit.js +11 -0
- package/dist/node_modules/@earendil-works/pi-mcp/dist/transports/lines.js +1 -0
- package/dist/node_modules/@earendil-works/pi-mcp/dist/transports/pipe.d.ts +34 -0
- package/dist/node_modules/@earendil-works/pi-mcp/dist/transports/pipe.js +2 -0
- package/dist/node_modules/@earendil-works/pi-mcp/dist/transports/stdio.d.ts +1 -4
- package/dist/node_modules/@earendil-works/pi-mcp/dist/transports/stdio.js +2 -2
- package/dist/node_modules/@earendil-works/pi-mcp/dist/transports/streamable-http.js +6 -4
- package/dist/node_modules/@earendil-works/pi-mcp/package.json +2 -2
- package/dist/node_modules/@earendil-works/pi-schema/CHANGELOG.md +37 -0
- package/dist/node_modules/@earendil-works/pi-schema/LICENSE +21 -0
- package/dist/node_modules/@earendil-works/pi-schema/README.md +319 -0
- package/dist/node_modules/@earendil-works/pi-schema/THIRD_PARTY_NOTICES/typebox-LICENSE +23 -0
- package/dist/node_modules/@earendil-works/pi-schema/dist/annotations.js +1 -0
- package/dist/node_modules/@earendil-works/pi-schema/dist/builders.d.ts +89 -0
- package/dist/node_modules/@earendil-works/pi-schema/dist/builders.js +1 -0
- package/dist/node_modules/@earendil-works/pi-schema/dist/checks.d.ts +51 -0
- package/dist/node_modules/@earendil-works/pi-schema/dist/checks.js +1 -0
- package/dist/node_modules/@earendil-works/pi-schema/dist/coerce.js +1 -0
- package/dist/node_modules/@earendil-works/pi-schema/dist/compiler.js +1 -0
- package/dist/node_modules/@earendil-works/pi-schema/dist/explain.js +1 -0
- package/dist/node_modules/@earendil-works/pi-schema/dist/formats/index.js +1 -0
- package/dist/node_modules/@earendil-works/pi-schema/dist/formats/typebox/date.js +1 -0
- package/dist/node_modules/@earendil-works/pi-schema/dist/formats/typebox/date_time.js +1 -0
- package/dist/node_modules/@earendil-works/pi-schema/dist/formats/typebox/duration.js +1 -0
- package/dist/node_modules/@earendil-works/pi-schema/dist/formats/typebox/email.js +1 -0
- package/dist/node_modules/@earendil-works/pi-schema/dist/formats/typebox/hostname.js +1 -0
- package/dist/node_modules/@earendil-works/pi-schema/dist/formats/typebox/idn_email.js +1 -0
- package/dist/node_modules/@earendil-works/pi-schema/dist/formats/typebox/idn_hostname.js +1 -0
- package/dist/node_modules/@earendil-works/pi-schema/dist/formats/typebox/idna/format/bidi.js +1 -0
- package/dist/node_modules/@earendil-works/pi-schema/dist/formats/typebox/idna/format/puny.js +1 -0
- package/dist/node_modules/@earendil-works/pi-schema/dist/formats/typebox/idna/hostname.js +1 -0
- package/dist/node_modules/@earendil-works/pi-schema/dist/formats/typebox/idna/idn-hostname.js +1 -0
- package/dist/node_modules/@earendil-works/pi-schema/dist/formats/typebox/idna/index.js +1 -0
- package/dist/node_modules/@earendil-works/pi-schema/dist/formats/typebox/idna/label/ascii.js +1 -0
- package/dist/node_modules/@earendil-works/pi-schema/dist/formats/typebox/idna/label/puny.js +1 -0
- package/dist/node_modules/@earendil-works/pi-schema/dist/formats/typebox/idna/label/unicode.js +1 -0
- package/dist/node_modules/@earendil-works/pi-schema/dist/formats/typebox/idna/pattern/pattern.js +1 -0
- package/dist/node_modules/@earendil-works/pi-schema/dist/formats/typebox/ipv4.js +1 -0
- package/dist/node_modules/@earendil-works/pi-schema/dist/formats/typebox/ipv6.js +1 -0
- package/dist/node_modules/@earendil-works/pi-schema/dist/formats/typebox/iri.js +1 -0
- package/dist/node_modules/@earendil-works/pi-schema/dist/formats/typebox/iri_reference.js +1 -0
- package/dist/node_modules/@earendil-works/pi-schema/dist/formats/typebox/json_pointer.js +1 -0
- package/dist/node_modules/@earendil-works/pi-schema/dist/formats/typebox/json_pointer_uri_fragment.js +1 -0
- package/dist/node_modules/@earendil-works/pi-schema/dist/formats/typebox/regex.js +1 -0
- package/dist/node_modules/@earendil-works/pi-schema/dist/formats/typebox/relative_json_pointer.js +1 -0
- package/dist/node_modules/@earendil-works/pi-schema/dist/formats/typebox/time.js +1 -0
- package/dist/node_modules/@earendil-works/pi-schema/dist/formats/typebox/uri.js +1 -0
- package/dist/node_modules/@earendil-works/pi-schema/dist/formats/typebox/uri_reference.js +1 -0
- package/dist/node_modules/@earendil-works/pi-schema/dist/formats/typebox/uri_template.js +1 -0
- package/dist/node_modules/@earendil-works/pi-schema/dist/formats/typebox/url.js +1 -0
- package/dist/node_modules/@earendil-works/pi-schema/dist/formats/typebox/uuid.js +1 -0
- package/dist/node_modules/@earendil-works/pi-schema/dist/index.d.ts +4 -0
- package/dist/node_modules/@earendil-works/pi-schema/dist/index.js +1 -0
- package/dist/node_modules/@earendil-works/pi-schema/dist/resolver.js +1 -0
- package/dist/node_modules/@earendil-works/pi-schema/dist/shared.js +1 -0
- package/dist/node_modules/@earendil-works/pi-schema/dist/typebox-static.d.ts +54 -0
- package/dist/node_modules/@earendil-works/pi-schema/dist/typebox-static.js +0 -0
- package/dist/node_modules/@earendil-works/pi-schema/dist/types.d.ts +25 -0
- package/dist/node_modules/@earendil-works/pi-schema/dist/types.js +0 -0
- package/dist/node_modules/@earendil-works/pi-schema/dist/validator.d.ts +20 -0
- package/dist/node_modules/@earendil-works/pi-schema/dist/validator.js +1 -0
- package/dist/node_modules/@earendil-works/pi-schema/package.json +43 -0
- package/dist/node_modules/@earendil-works/pi-telemetry/dist/index.d.ts +1 -1
- package/dist/node_modules/@earendil-works/pi-telemetry/dist/index.js +1 -1
- package/dist/node_modules/@earendil-works/pi-telemetry/dist/memory.d.ts +1 -0
- package/dist/node_modules/@earendil-works/pi-telemetry/dist/memory.js +1 -1
- package/dist/node_modules/@earendil-works/pi-telemetry/dist/render.js +2 -2
- package/dist/node_modules/@earendil-works/pi-telemetry/package.json +3 -1
- package/dist/node_modules/@earendil-works/pi-tui/README.md +2 -0
- package/dist/node_modules/@earendil-works/pi-tui/dist/components/editor.d.ts +1 -0
- package/dist/node_modules/@earendil-works/pi-tui/dist/components/editor.js +3 -3
- package/dist/node_modules/@earendil-works/pi-tui/dist/components/markdown.d.ts +4 -0
- package/dist/node_modules/@earendil-works/pi-tui/dist/components/markdown.js +11 -10
- package/dist/node_modules/@earendil-works/pi-tui/dist/components/select-list.d.ts +1 -0
- package/dist/node_modules/@earendil-works/pi-tui/dist/components/select-list.js +1 -1
- package/dist/node_modules/@earendil-works/pi-tui/dist/components/settings-list.d.ts +1 -0
- package/dist/node_modules/@earendil-works/pi-tui/dist/components/settings-list.js +1 -1
- package/dist/node_modules/@earendil-works/pi-tui/dist/components/text.js +1 -1
- package/dist/node_modules/@earendil-works/pi-tui/dist/fuzzy.js +1 -1
- package/dist/node_modules/@earendil-works/pi-tui/dist/index.d.ts +2 -2
- package/dist/node_modules/@earendil-works/pi-tui/dist/index.js +1 -1
- package/dist/node_modules/@earendil-works/pi-tui/dist/keybindings.d.ts +1 -0
- package/dist/node_modules/@earendil-works/pi-tui/dist/keybindings.js +1 -1
- package/dist/node_modules/@earendil-works/pi-tui/dist/keys.js +5 -5
- package/dist/node_modules/@earendil-works/pi-tui/dist/layout.js +1 -1
- package/dist/node_modules/@earendil-works/pi-tui/dist/program-status.js +1 -1
- package/dist/node_modules/@earendil-works/pi-tui/dist/terminal-image.d.ts +1 -0
- package/dist/node_modules/@earendil-works/pi-tui/dist/terminal-image.js +1 -1
- package/dist/node_modules/@earendil-works/pi-tui/dist/terminal.js +1 -1
- package/dist/node_modules/@earendil-works/pi-tui/dist/tui-alt-screen.d.ts +1 -1
- package/dist/node_modules/@earendil-works/pi-tui/dist/tui-alt-screen.js +4 -4
- package/dist/node_modules/@earendil-works/pi-tui/dist/tui-main-screen.js +13 -13
- package/dist/node_modules/@earendil-works/pi-tui/dist/tui.d.ts +1 -0
- package/dist/node_modules/@earendil-works/pi-tui/dist/tui.js +2 -2
- package/dist/node_modules/@earendil-works/pi-tui/dist/utils.d.ts +1 -0
- package/dist/node_modules/@earendil-works/pi-tui/dist/utils.js +1 -1
- package/dist/node_modules/@earendil-works/pi-tui/package.json +1 -1
- package/dist/package-manager-cli.js +17 -16
- package/dist/utils/ansi.js +1 -1
- package/dist/utils/changelog.js +3 -3
- package/dist/utils/clipboard-command.js +1 -1
- package/dist/utils/image-resize-core.js +1 -1
- package/dist/utils/image-resize.js +1 -1
- package/dist/utils/open-browser.js +1 -1
- package/dist/utils/paths.js +1 -1
- package/dist/utils/shell.js +3 -3
- package/dist/utils/syntax-highlight.js +4 -4
- package/dist/utils/terminal-question.js +1 -0
- package/dist/utils/tools-manager.js +1 -1
- package/dist/utils/web-url.js +1 -0
- package/examples/extensions/README.md +2 -1
- package/examples/extensions/custom-provider-gitlab-duo/package.json +14 -14
- package/examples/extensions/debug-provider.ts +2 -2
- package/examples/extensions/gondolin/package-lock.json +19 -29
- package/examples/extensions/gondolin/package.json +2 -2
- package/examples/extensions/plan-mode/index.ts +20 -9
- package/examples/extensions/plan-mode/utils.ts +42 -16
- package/examples/extensions/preset.ts +2 -0
- package/examples/extensions/reload-runtime.ts +17 -5
- package/examples/extensions/subagent/README.md +14 -11
- package/examples/extensions/subagent/index.ts +392 -171
- package/examples/extensions/todo.ts +7 -0
- package/examples/extensions/tools.ts +2 -0
- package/examples/extensions/with-deps/package-lock.json +2 -2
- package/examples/extensions/with-deps/package.json +20 -20
- package/examples/tsconfig.json +208 -0
- package/npm-shrinkwrap.json +407 -383
- package/package.json +6 -7
- package/examples/extensions/sandbox/index.ts +0 -327
- package/examples/extensions/sandbox/package-lock.json +0 -92
- package/examples/extensions/sandbox/package.json +0 -19
- /package/dist/node_modules/@earendil-works/pi-mcp/{LICENSES → THIRD_PARTY_NOTICES}/modelcontextprotocol-typescript-sdk.txt +0 -0
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
var Br=Object.defineProperty;var d=(Tt,Gt)=>Br(Tt,"name",{value:Gt,configurable:!0});import{createRequire as Or}from"node:module";const Yr=Or(import.meta.url);import{__commonJS as Vr,__require as gt,__toESM as Ur}from"./chunk-JXWJOIH4.js";var Mr=Vr({"node_modules/jiti/dist/jiti.cjs"(Tt,Gt){(()=>{var ws={"./node_modules/.pnpm/mlly@1.8.2/node_modules/mlly/dist lazy recursive"(j){function Z(ut){return Promise.resolve().then(function(){var Et=new Error("Cannot find module '"+ut+"'");throw Et.code="MODULE_NOT_FOUND",Et})}d(Z,"webpackEmptyAsyncContext"),Z.keys=()=>[],Z.resolve=Z,Z.id="./node_modules/.pnpm/mlly@1.8.2/node_modules/mlly/dist lazy recursive",j.exports=Z},fs(j){"use strict";j.exports=gt("fs")},"node:fs"(j){"use strict";j.exports=gt("node:fs")},"node:module"(j){"use strict";j.exports=gt("node:module")},"node:path"(j){"use strict";j.exports=gt("node:path")},os(j){"use strict";j.exports=gt("os")},path(j){"use strict";j.exports=gt("path")},"./node_modules/.pnpm/get-tsconfig@4.14.0/node_modules/get-tsconfig/dist/index.cjs"(j,Z,ut){"use strict";var Et=Object.defineProperty,k=d((a,c)=>Et(a,"name",{value:c,configurable:!0}),"r"),N=ut("node:path"),oe=ut("node:fs"),ue=ut("node:module"),ye=ut("./node_modules/.pnpm/resolve-pkg-maps@1.0.0/node_modules/resolve-pkg-maps/dist/index.cjs"),Yt=ut("fs"),Ot=ut("os"),pt=ut("path");function z(a){return a.startsWith("\\\\?\\")?a:a.replace(/\\/g,"/")}d(z,"h"),k(z,"slash");let V=k(a=>{let c=oe[a];return(v,...h)=>{let A=`${a}:${h.join(":")}`,E=v?.get(A);return E===void 0&&(E=Reflect.apply(c,oe,h),v?.set(A,E)),E}},"cacheFs"),tt=V("existsSync"),xt=V("readFileSync"),P=V("statSync"),L=k((a,c,v)=>{for(;;){let h=N.posix.join(a,c);if(tt(v,h))return h;let A=N.dirname(a);if(A===a)return;a=A}},"findUp"),D=/^\.{1,2}(\/.*)?$/,n=k(a=>{let c=z(a);return D.test(c)?c:`./${c}`},"normalizeRelativePath");function J(a,c=!1){let v=a.length,h=0,A="",E=0,m=16,b=0,S=0,R=0,W=0,$=0;function et(C,ct){let mt=0,M=0;for(;mt<C;){let I=a.charCodeAt(h);if(I>=48&&I<=57)M=16*M+I-48;else if(I>=65&&I<=70)M=16*M+I-65+10;else{if(!(I>=97&&I<=102))break;M=16*M+I-97+10}h++,mt++}return mt<C&&(M=-1),M}d(et,"_");function Y(C){h=C,A="",E=0,m=16,$=0}d(Y,"b");function Q(){let C=h;if(a.charCodeAt(h)===48)h++;else for(h++;h<a.length&&ft(a.charCodeAt(h));)h++;if(h<a.length&&a.charCodeAt(h)===46){if(h++,!(h<a.length&&ft(a.charCodeAt(h))))return $=3,a.substring(C,h);for(h++;h<a.length&&ft(a.charCodeAt(h));)h++}let ct=h;if(h<a.length&&(a.charCodeAt(h)===69||a.charCodeAt(h)===101))if(h++,(h<a.length&&a.charCodeAt(h)===43||a.charCodeAt(h)===45)&&h++,h<a.length&&ft(a.charCodeAt(h))){for(h++;h<a.length&&ft(a.charCodeAt(h));)h++;ct=h}else $=3;return a.substring(C,ct)}d(Q,"p");function X(){let C="",ct=h;for(;;){if(h>=v){C+=a.substring(ct,h),$=2;break}let mt=a.charCodeAt(h);if(mt===34){C+=a.substring(ct,h),h++;break}if(mt!==92){if(mt>=0&&mt<=31){if(lt(mt)){C+=a.substring(ct,h),$=2;break}$=6}h++}else{if(C+=a.substring(ct,h),h++,h>=v){$=2;break}switch(a.charCodeAt(h++)){case 34:C+='"';break;case 92:C+="\\";break;case 47:C+="/";break;case 98:C+="\b";break;case 102:C+="\f";break;case 110:C+=`
|
|
2
|
+
`;break;case 114:C+="\r";break;case 116:C+=" ";break;case 117:let M=et(4);M>=0?C+=String.fromCharCode(M):$=4;break;default:$=5}ct=h}}return C}d(X,"L");function at(){if(A="",$=0,E=h,S=b,W=R,h>=v)return E=v,m=17;let C=a.charCodeAt(h);if(rt(C)){do h++,A+=String.fromCharCode(C),C=a.charCodeAt(h);while(rt(C));return m=15}if(lt(C))return h++,A+=String.fromCharCode(C),C===13&&a.charCodeAt(h)===10&&(h++,A+=`
|
|
3
|
+
`),b++,R=h,m=14;switch(C){case 123:return h++,m=1;case 125:return h++,m=2;case 91:return h++,m=3;case 93:return h++,m=4;case 58:return h++,m=6;case 44:return h++,m=5;case 34:return h++,A=X(),m=10;case 47:let ct=h-1;if(a.charCodeAt(h+1)===47){for(h+=2;h<v&&!lt(a.charCodeAt(h));)h++;return A=a.substring(ct,h),m=12}if(a.charCodeAt(h+1)===42){h+=2;let mt=v-1,M=!1;for(;h<mt;){let I=a.charCodeAt(h);if(I===42&&a.charCodeAt(h+1)===47){h+=2,M=!0;break}h++,lt(I)&&(I===13&&a.charCodeAt(h)===10&&h++,b++,R=h)}return M||(h++,$=1),A=a.substring(ct,h),m=13}return A+=String.fromCharCode(C),h++,m=16;case 45:if(A+=String.fromCharCode(C),h++,h===v||!ft(a.charCodeAt(h)))return m=16;case 48:case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return A+=Q(),m=11;default:for(;h<v&&wt(C);)h++,C=a.charCodeAt(h);if(E!==h){switch(A=a.substring(E,h),A){case"true":return m=8;case"false":return m=9;case"null":return m=7}return m=16}return A+=String.fromCharCode(C),h++,m=16}}d(at,"A");function wt(C){if(rt(C)||lt(C))return!1;switch(C){case 125:case 93:case 123:case 91:case 34:case 58:case 44:case 47:return!1}return!0}d(wt,"D");function Nt(){let C;do C=at();while(C>=12&&C<=15);return C}return d(Nt,"x"),k(et,"scanHexDigits"),k(Y,"setPosition"),k(Q,"scanNumber"),k(X,"scanString"),k(at,"scanNext"),k(wt,"isUnknownContentCharacter"),k(Nt,"scanNextNonTrivia"),{setPosition:Y,getPosition:k(()=>h,"getPosition"),scan:c?Nt:at,getToken:k(()=>m,"getToken"),getTokenValue:k(()=>A,"getTokenValue"),getTokenOffset:k(()=>E,"getTokenOffset"),getTokenLength:k(()=>h-E,"getTokenLength"),getTokenStartLine:k(()=>S,"getTokenStartLine"),getTokenStartCharacter:k(()=>E-W,"getTokenStartCharacter"),getTokenError:k(()=>$,"getTokenError")}}d(J,"Ne");function rt(a){return a===32||a===9}d(rt,"ee");function lt(a){return a===10||a===13}d(lt,"M");function ft(a){return a>=48&&a<=57}d(ft,"R");var Dt,p;k(J,"createScanner"),k(rt,"isWhiteSpace"),k(lt,"isLineBreak"),k(ft,"isDigit"),(p=Dt||(Dt={}))[p.lineFeed=10]="lineFeed",p[p.carriageReturn=13]="carriageReturn",p[p.space=32]="space",p[p._0=48]="_0",p[p._1=49]="_1",p[p._2=50]="_2",p[p._3=51]="_3",p[p._4=52]="_4",p[p._5=53]="_5",p[p._6=54]="_6",p[p._7=55]="_7",p[p._8=56]="_8",p[p._9=57]="_9",p[p.a=97]="a",p[p.b=98]="b",p[p.c=99]="c",p[p.d=100]="d",p[p.e=101]="e",p[p.f=102]="f",p[p.g=103]="g",p[p.h=104]="h",p[p.i=105]="i",p[p.j=106]="j",p[p.k=107]="k",p[p.l=108]="l",p[p.m=109]="m",p[p.n=110]="n",p[p.o=111]="o",p[p.p=112]="p",p[p.q=113]="q",p[p.r=114]="r",p[p.s=115]="s",p[p.t=116]="t",p[p.u=117]="u",p[p.v=118]="v",p[p.w=119]="w",p[p.x=120]="x",p[p.y=121]="y",p[p.z=122]="z",p[p.A=65]="A",p[p.B=66]="B",p[p.C=67]="C",p[p.D=68]="D",p[p.E=69]="E",p[p.F=70]="F",p[p.G=71]="G",p[p.H=72]="H",p[p.I=73]="I",p[p.J=74]="J",p[p.K=75]="K",p[p.L=76]="L",p[p.M=77]="M",p[p.N=78]="N",p[p.O=79]="O",p[p.P=80]="P",p[p.Q=81]="Q",p[p.R=82]="R",p[p.S=83]="S",p[p.T=84]="T",p[p.U=85]="U",p[p.V=86]="V",p[p.W=87]="W",p[p.X=88]="X",p[p.Y=89]="Y",p[p.Z=90]="Z",p[p.asterisk=42]="asterisk",p[p.backslash=92]="backslash",p[p.closeBrace=125]="closeBrace",p[p.closeBracket=93]="closeBracket",p[p.colon=58]="colon",p[p.comma=44]="comma",p[p.dot=46]="dot",p[p.doubleQuote=34]="doubleQuote",p[p.minus=45]="minus",p[p.openBrace=123]="openBrace",p[p.openBracket=91]="openBracket",p[p.plus=43]="plus",p[p.slash=47]="slash",p[p.formFeed=12]="formFeed",p[p.tab=9]="tab",new Array(20).fill(0).map((a,c)=>" ".repeat(c));let Vt=200;var le,Le,Ut;function Ce(a,c=[],v=le.DEFAULT){let h=null,A=[],E=[];function m(b){Array.isArray(A)?A.push(b):h!==null&&(A[h]=b)}return d(m,"o"),k(m,"onValue"),_e(a,{onObjectBegin:k(()=>{let b={};m(b),E.push(A),A=b,h=null},"onObjectBegin"),onObjectProperty:k(b=>{h=b},"onObjectProperty"),onObjectEnd:k(()=>{A=E.pop()},"onObjectEnd"),onArrayBegin:k(()=>{let b=[];m(b),E.push(A),A=b,h=null},"onArrayBegin"),onArrayEnd:k(()=>{A=E.pop()},"onArrayEnd"),onLiteralValue:m,onError:k((b,S,R)=>{c.push({error:b,offset:S,length:R})},"onError")},v),A[0]}d(Ce,"Pe");function _e(a,c,v=le.DEFAULT){let h=J(a,!1),A=[],E=0;function m(G){return G?()=>E===0&&G(h.getTokenOffset(),h.getTokenLength(),h.getTokenStartLine(),h.getTokenStartCharacter()):()=>!0}d(m,"o");function b(G){return G?ot=>E===0&&G(ot,h.getTokenOffset(),h.getTokenLength(),h.getTokenStartLine(),h.getTokenStartCharacter()):()=>!0}d(b,"f");function S(G){return G?ot=>E===0&&G(ot,h.getTokenOffset(),h.getTokenLength(),h.getTokenStartLine(),h.getTokenStartCharacter(),()=>A.slice()):()=>!0}d(S,"u");function R(G){return G?()=>{E>0?E++:G(h.getTokenOffset(),h.getTokenLength(),h.getTokenStartLine(),h.getTokenStartCharacter(),()=>A.slice())===!1&&(E=1)}:()=>!0}d(R,"g");function W(G){return G?()=>{E>0&&E--,E===0&&G(h.getTokenOffset(),h.getTokenLength(),h.getTokenStartLine(),h.getTokenStartCharacter())}:()=>!0}d(W,"m"),k(m,"toNoArgVisit"),k(b,"toOneArgVisit"),k(S,"toOneArgVisitWithPath"),k(R,"toBeginVisit"),k(W,"toEndVisit");let $=R(c.onObjectBegin),et=S(c.onObjectProperty),Y=W(c.onObjectEnd),Q=R(c.onArrayBegin),X=W(c.onArrayEnd),at=S(c.onLiteralValue),wt=b(c.onSeparator),Nt=m(c.onComment),C=b(c.onError),ct=v&&v.disallowComments,mt=v&&v.allowTrailingComma;function M(){for(;;){let G=h.scan();switch(h.getTokenError()){case 4:I(14);break;case 5:I(15);break;case 3:I(13);break;case 1:ct||I(11);break;case 2:I(12);break;case 6:I(16)}switch(G){case 12:case 13:ct?I(10):Nt();break;case 16:I(1);break;case 15:case 14:break;default:return G}}}d(M,"T");function I(G,ot=[],Ze=[]){if(C(G),ot.length+Ze.length>0){let de=h.getToken();for(;de!==17;){if(ot.indexOf(de)!==-1){M();break}if(Ze.indexOf(de)!==-1)break;de=M()}}}d(I,"k");function Te(G){let ot=h.getTokenValue();return G?at(ot):(et(ot),A.push(ot)),M(),!0}d(Te,"P");function Je(){switch(h.getToken()){case 11:let G=h.getTokenValue(),ot=Number(G);isNaN(ot)&&(I(2),ot=0),at(ot);break;case 7:at(null);break;case 8:at(!0);break;case 9:at(!1);break;default:return!1}return M(),!0}d(Je,"J");function Ye(){return h.getToken()!==10?(I(3,[],[2,5]),!1):(Te(!1),h.getToken()===6?(wt(":"),M(),te()||I(4,[],[2,5])):I(5,[],[2,5]),A.pop(),!0)}d(Ye,"V");function Qe(){$(),M();let G=!1;for(;h.getToken()!==2&&h.getToken()!==17;){if(h.getToken()===5){if(G||I(4,[],[]),wt(","),M(),h.getToken()===2&&mt)break}else G&&I(6,[],[]);Ye()||I(4,[],[2,5]),G=!0}return Y(),h.getToken()!==2?I(7,[2],[]):M(),!0}d(Qe,"z");function Xe(){Q(),M();let G=!0,ot=!1;for(;h.getToken()!==4&&h.getToken()!==17;){if(h.getToken()===5){if(ot||I(4,[],[]),wt(","),M(),h.getToken()===4&&mt)break}else ot&&I(6,[],[]);G?(A.push(0),G=!1):A[A.length-1]++,te()||I(4,[],[4,5]),ot=!0}return X(),G||A.pop(),h.getToken()!==4?I(8,[4],[]):M(),!0}d(Xe,"G");function te(){switch(h.getToken()){case 3:return Xe();case 1:return Qe();case 10:return Te(!0);default:return Je()}}return d(te,"U"),k(M,"scanNext"),k(I,"handleError"),k(Te,"parseString"),k(Je,"parseLiteral"),k(Ye,"parseProperty"),k(Qe,"parseObject"),k(Xe,"parseArray"),k(te,"parseValue"),M(),h.getToken()===17?!!v.allowEmptyContent||(I(4,[],[]),!1):te()?(h.getToken()!==17&&I(9,[],[]),!0):(I(4,[],[]),!1)}d(_e,"We"),new Array(Vt).fill(0).map((a,c)=>`
|
|
4
|
+
`+" ".repeat(c)),new Array(Vt).fill(0).map((a,c)=>"\r"+" ".repeat(c)),new Array(Vt).fill(0).map((a,c)=>`\r
|
|
5
|
+
`+" ".repeat(c)),new Array(Vt).fill(0).map((a,c)=>`
|
|
6
|
+
`+" ".repeat(c)),new Array(Vt).fill(0).map((a,c)=>"\r"+" ".repeat(c)),new Array(Vt).fill(0).map((a,c)=>`\r
|
|
7
|
+
`+" ".repeat(c)),(function(a){a.DEFAULT={allowTrailingComma:!1}})(le||(le={})),k(Ce,"parse$1"),k(_e,"visit"),(function(a){a[a.None=0]="None",a[a.UnexpectedEndOfComment=1]="UnexpectedEndOfComment",a[a.UnexpectedEndOfString=2]="UnexpectedEndOfString",a[a.UnexpectedEndOfNumber=3]="UnexpectedEndOfNumber",a[a.InvalidUnicode=4]="InvalidUnicode",a[a.InvalidEscapeCharacter=5]="InvalidEscapeCharacter",a[a.InvalidCharacter=6]="InvalidCharacter"})(Le||(Le={})),(function(a){a[a.OpenBraceToken=1]="OpenBraceToken",a[a.CloseBraceToken=2]="CloseBraceToken",a[a.OpenBracketToken=3]="OpenBracketToken",a[a.CloseBracketToken=4]="CloseBracketToken",a[a.CommaToken=5]="CommaToken",a[a.ColonToken=6]="ColonToken",a[a.NullKeyword=7]="NullKeyword",a[a.TrueKeyword=8]="TrueKeyword",a[a.FalseKeyword=9]="FalseKeyword",a[a.StringLiteral=10]="StringLiteral",a[a.NumericLiteral=11]="NumericLiteral",a[a.LineCommentTrivia=12]="LineCommentTrivia",a[a.BlockCommentTrivia=13]="BlockCommentTrivia",a[a.LineBreakTrivia=14]="LineBreakTrivia",a[a.Trivia=15]="Trivia",a[a.Unknown=16]="Unknown",a[a.EOF=17]="EOF"})(Ut||(Ut={}));let Rt=Ce;var St;(function(a){a[a.InvalidSymbol=1]="InvalidSymbol",a[a.InvalidNumberFormat=2]="InvalidNumberFormat",a[a.PropertyNameExpected=3]="PropertyNameExpected",a[a.ValueExpected=4]="ValueExpected",a[a.ColonExpected=5]="ColonExpected",a[a.CommaExpected=6]="CommaExpected",a[a.CloseBraceExpected=7]="CloseBraceExpected",a[a.CloseBracketExpected=8]="CloseBracketExpected",a[a.EndOfFileExpected=9]="EndOfFileExpected",a[a.InvalidCommentToken=10]="InvalidCommentToken",a[a.UnexpectedEndOfComment=11]="UnexpectedEndOfComment",a[a.UnexpectedEndOfString=12]="UnexpectedEndOfString",a[a.UnexpectedEndOfNumber=13]="UnexpectedEndOfNumber",a[a.InvalidUnicode=14]="InvalidUnicode",a[a.InvalidEscapeCharacter=15]="InvalidEscapeCharacter",a[a.InvalidCharacter=16]="InvalidCharacter"})(St||(St={}));let Be=k((a,c)=>Rt(xt(c,a,"utf8")),"readJsonc"),Mt=Symbol("implicitBaseUrl"),vt="${configDir}",Oe=k(()=>{let{findPnpApi:a}=ue;return a&&a(process.cwd())},"getPnpApi"),Qt=k((a,c,v,h)=>{let A=`resolveFromPackageJsonPath:${a}:${c}:${v}`;if(h!=null&&h.has(A))return h.get(A);let E=Be(a,h);if(!E)return;let m=c||"tsconfig.json";if(!v&&E.exports)try{let[b]=ye.resolveExports(E.exports,c,["require","types"]);m=b}catch{return!1}else!c&&E.tsconfig&&(m=E.tsconfig);return m=N.join(a,"..",m),h?.set(A,m),m},"resolveFromPackageJsonPath"),he="package.json",be="tsconfig.json",li=k((a,c,v)=>{let h=a;if(a===".."&&(h=N.join(h,be)),a[0]==="."&&(h=N.resolve(c,h)),N.isAbsolute(h)){if(tt(v,h)){if(P(v,h).isFile())return h}else if(!h.endsWith(".json")){let Y=`${h}.json`;if(tt(v,Y))return Y}return}let[A,...E]=a.split("/"),m=A[0]==="@"?`${A}/${E.shift()}`:A,b=E.join("/"),S=Oe();if(S){let{resolveRequest:Y}=S;try{if(m===a){let Q=Y(N.join(m,he),c);if(Q){let X=Qt(Q,b,!1,v);if(X&&tt(v,X))return X}}else{let Q;try{Q=Y(a,c,{extensions:[".json"]})}catch{Q=Y(N.join(a,be),c)}if(Q)return Q}}catch{}}let R=L(N.resolve(c),N.join("node_modules",m),v);if(!R||!P(v,R).isDirectory())return;let W=N.join(R,he);if(tt(v,W)){let Y=Qt(W,b,!1,v);if(Y===!1)return;if(Y&&tt(v,Y)&&P(v,Y).isFile())return Y}let $=N.join(R,b),et=$.endsWith(".json");if(!et){let Y=`${$}.json`;if(tt(v,Y))return Y}if(tt(v,$)){if(P(v,$).isDirectory()){let Y=N.join($,he);if(tt(v,Y)){let X=Qt(Y,"",!0,v);if(X&&tt(v,X))return X}let Q=N.join($,be);if(tt(v,Q))return Q}else if(et)return $}},"resolveExtendsPath"),ce=k((a,c)=>n(N.relative(a,c)),"pathRelative"),pe=["files","include","exclude"],nt=k((a,c,v)=>{let h=N.join(c,v);return z(N.relative(a,h))||"./"},"resolveAndRelativize"),bt=k((a,c,v)=>{let h=N.relative(a,c);return h?z(`${h}/${v.startsWith("./")?v.slice(2):v}`):v},"prefixPattern"),dt=k((a,c,v,h)=>{let A=li(a,c,h);if(!A)throw new Error(`File '${a}' not found.`);if(v.has(A))throw new Error(`Circularity detected while resolving configuration: ${A}`);v.add(A);let E=N.dirname(A),m=Xt(A,h,v);delete m.references;let{compilerOptions:b}=m;if(b){let{baseUrl:S}=b;S&&!S.startsWith(vt)&&(b.baseUrl=nt(c,E,S));let{outDir:R}=b;R&&!R.startsWith(vt)&&(b.outDir=nt(c,E,R));let{declarationDir:W}=b;W&&!W.startsWith(vt)&&(b.declarationDir=nt(c,E,W));let{rootDir:$}=b;$&&!$.startsWith(vt)&&(b.rootDir=nt(c,E,$));let{rootDirs:et}=b;et&&(b.rootDirs=et.map(Q=>Q.startsWith(vt)?Q:nt(c,E,Q)));let{typeRoots:Y}=b;Y&&(b.typeRoots=Y.map(Q=>Q.startsWith(vt)?Q:nt(c,E,Q)))}for(let S of pe){let R=m[S];R&&(m[S]=R.map(W=>W.startsWith(vt)?W:bt(c,E,W)))}return m},"resolveExtends"),Ve=["outDir","declarationDir"],Xt=k((a,c,v=new Set)=>{let h;try{h=Be(a,c)||{}}catch{throw new Error(`Cannot resolve tsconfig at path: ${a}`)}if(typeof h!="object")throw new SyntaxError(`Failed to parse tsconfig at: ${a}`);let A=N.dirname(a);if(h.compilerOptions){let{compilerOptions:E}=h;E.paths&&!E.baseUrl&&(E[Mt]=A)}if(h.extends){let E=Array.isArray(h.extends)?h.extends:[h.extends];delete h.extends;for(let m of E.reverse()){let b=dt(m,A,new Set(v),c),S={...b,...h,compilerOptions:{...b.compilerOptions,...h.compilerOptions}};b.watchOptions&&(S.watchOptions={...b.watchOptions,...h.watchOptions}),h=S}}if(h.compilerOptions){let{compilerOptions:E}=h,m=["baseUrl","rootDir"];for(let b of m){let S=E[b];if(S&&!S.startsWith(vt)){let R=N.resolve(A,S),W=ce(A,R);E[b]=W}}for(let b of Ve){let S=E[b];S&&(Array.isArray(h.exclude)||(h.exclude=Ve.map(R=>E[R]).filter(Boolean)),S.startsWith(vt)||(S=n(S)),E[b]=S)}}else h.compilerOptions={};if(h.include&&(h.include=h.include.map(z)),h.files&&(h.files=h.files.map(E=>E.startsWith(vt)?E:n(E))),h.watchOptions){let{watchOptions:E}=h;E.excludeDirectories&&(E.excludeDirectories=E.excludeDirectories.map(m=>z(N.resolve(A,m)))),E.excludeFiles&&(E.excludeFiles=E.excludeFiles.map(m=>z(N.resolve(A,m)))),E.watchFile&&(E.watchFile=E.watchFile.toLowerCase()),E.watchDirectory&&(E.watchDirectory=E.watchDirectory.toLowerCase()),E.fallbackPolling&&(E.fallbackPolling=E.fallbackPolling.toLowerCase())}return h},"_parseTsconfig"),w=k((a,c)=>{if(a.startsWith(vt))return z(N.join(c,a.slice(12)))},"interpolateConfigDir"),ke=["outDir","declarationDir","outFile","rootDir","baseUrl","tsBuildInfoFile"],hi=k(a=>{if(a.strict){let c=["noImplicitAny","noImplicitThis","strictNullChecks","strictFunctionTypes","strictBindCallApply","strictPropertyInitialization","strictBuiltinIteratorReturn","alwaysStrict","useUnknownInCatchVariables"];for(let v of c)a[v]===void 0&&(a[v]=!0)}if(a.composite&&(a.declaration!=null||(a.declaration=!0),a.incremental!=null||(a.incremental=!0)),a.target){let c=a.target.toLowerCase();c==="es2015"&&(c="es6"),a.target=c,c==="esnext"&&(a.module!=null||(a.module="es6"),a.useDefineForClassFields!=null||(a.useDefineForClassFields=!0)),(c==="es6"||c==="es2016"||c==="es2017"||c==="es2018"||c==="es2019"||c==="es2020"||c==="es2021"||c==="es2022"||c==="es2023"||c==="es2024")&&(a.module!=null||(a.module="es6")),(c==="es2022"||c==="es2023"||c==="es2024")&&(a.useDefineForClassFields!=null||(a.useDefineForClassFields=!0))}if(a.module){let c=a.module.toLowerCase();if(c==="es2015"&&(c="es6"),a.module=c,(c==="es6"||c==="es2020"||c==="es2022"||c==="esnext"||c==="none"||c==="system"||c==="umd"||c==="amd")&&(a.moduleResolution!=null||(a.moduleResolution="classic")),c==="system"&&(a.allowSyntheticDefaultImports!=null||(a.allowSyntheticDefaultImports=!0)),(c==="node16"||c==="node18"||c==="node20"||c==="nodenext"||c==="preserve")&&(a.esModuleInterop!=null||(a.esModuleInterop=!0),a.allowSyntheticDefaultImports!=null||(a.allowSyntheticDefaultImports=!0)),(c==="node16"||c==="node18"||c==="node20"||c==="nodenext")&&(a.moduleDetection!=null||(a.moduleDetection="force")),c==="node16"&&(a.target!=null||(a.target="es2022"),a.moduleResolution!=null||(a.moduleResolution="node16")),c==="node18"&&(a.target!=null||(a.target="es2022"),a.moduleResolution!=null||(a.moduleResolution="node16")),c==="node20"&&(a.target!=null||(a.target="es2023"),a.moduleResolution!=null||(a.moduleResolution="node16"),a.resolveJsonModule!=null||(a.resolveJsonModule=!0)),c==="nodenext"&&(a.target!=null||(a.target="esnext"),a.moduleResolution!=null||(a.moduleResolution="nodenext"),a.resolveJsonModule!=null||(a.resolveJsonModule=!0)),c==="node16"||c==="node18"||c==="node20"||c==="nodenext"){let v=a.target;(v==="es3"||v==="es2022"||v==="es2023"||v==="es2024"||v==="esnext")&&(a.useDefineForClassFields!=null||(a.useDefineForClassFields=!0))}c==="preserve"&&(a.moduleResolution!=null||(a.moduleResolution="bundler"))}if(a.moduleResolution){let c=a.moduleResolution.toLowerCase();c==="node"&&(c="node10"),a.moduleResolution=c,(c==="node16"||c==="nodenext"||c==="bundler")&&(a.resolvePackageJsonExports!=null||(a.resolvePackageJsonExports=!0),a.resolvePackageJsonImports!=null||(a.resolvePackageJsonImports=!0)),c==="bundler"&&(a.allowSyntheticDefaultImports!=null||(a.allowSyntheticDefaultImports=!0),a.resolveJsonModule!=null||(a.resolveJsonModule=!0))}a.jsx&&(a.jsx=a.jsx.toLowerCase()),a.moduleDetection&&(a.moduleDetection=a.moduleDetection.toLowerCase()),a.importsNotUsedAsValues&&(a.importsNotUsedAsValues=a.importsNotUsedAsValues.toLowerCase()),a.newLine&&(a.newLine=a.newLine.toLowerCase()),a.esModuleInterop&&(a.allowSyntheticDefaultImports!=null||(a.allowSyntheticDefaultImports=!0)),a.verbatimModuleSyntax&&(a.isolatedModules!=null||(a.isolatedModules=!0),a.preserveConstEnums!=null||(a.preserveConstEnums=!0)),a.isolatedModules&&(a.preserveConstEnums!=null||(a.preserveConstEnums=!0)),a.rewriteRelativeImportExtensions&&(a.allowImportingTsExtensions!=null||(a.allowImportingTsExtensions=!0)),a.lib&&(a.lib=a.lib.map(c=>c.toLowerCase())),a.checkJs&&(a.allowJs!=null||(a.allowJs=!0))},"normalizeCompilerOptions"),Ue=k((a,c=new Map)=>{let v=N.resolve(a),h=Xt(v,c),A=N.dirname(v),{compilerOptions:E}=h;if(E){for(let b of ke){let S=E[b];if(S){let R=w(S,A);E[b]=R?ce(A,R):S}}for(let b of["rootDirs","typeRoots"]){let S=E[b];S&&(E[b]=S.map(R=>{let W=w(R,A);return W?ce(A,W):n(R)}))}let{paths:m}=E;if(m)for(let b of Object.keys(m))m[b]=m[b].map(S=>{var R;return(R=w(S,A))!=null?R:S});hi(E)}for(let m of pe){let b=h[m];b&&(h[m]=b.map(S=>{var R;return(R=w(S,A))!=null?R:S}))}return h},"parseTsconfig");var Zt=Object.defineProperty,qt=k((a,c)=>Zt(a,"name",{value:c,configurable:!0}),"s");let Me=qt(a=>{let c="";for(let v=0;v<a.length;v+=1){let h=a[v],A=h.toUpperCase();c+=h===A?h.toLowerCase():A}return c},"invertCase"),Kt=new Map,At=qt((a,c)=>{let v=pt.join(a,`.is-fs-case-sensitive-test-${process.pid}`);try{return c.writeFileSync(v,""),!c.existsSync(Me(v))}finally{try{c.unlinkSync(v)}catch{}}},"checkDirectoryCaseWithWrite"),kt=qt((a,c,v)=>{try{return At(a,v)}catch(h){if(c===void 0)return At(Ot.tmpdir(),v);throw h}},"checkDirectoryCaseWithFallback"),it=qt((a,c=Yt,v=!0)=>{let h=a??process.cwd();if(v&&Kt.has(h))return Kt.get(h);let A,E=Me(h);return A=E!==h&&c.existsSync(h)?!c.existsSync(E):kt(h,a,c),v&&Kt.set(h,A),A},"isFsCaseSensitive"),{join:jt}=N.posix,F={ts:[".ts",".tsx",".d.ts"],cts:[".cts",".d.cts"],mts:[".mts",".d.mts"]},je=k(a=>{let c=[...F.ts],v=[...F.cts],h=[...F.mts];return a!=null&&a.allowJs&&(c.push(".js",".jsx"),v.push(".cjs"),h.push(".mjs")),[...c,...v,...h]},"getSupportedExtensions"),we=k(a=>{let c=[];if(!a)return c;let{outDir:v,declarationDir:h}=a;return v&&c.push(v),h&&c.push(h),c},"getDefaultExcludeSpec"),$e=k(a=>a.replaceAll(/[.*+?^${}()|[\]\\]/g,String.raw`\$&`),"escapeForRegexp"),Ht=`(?!(${["node_modules","bower_components","jspm_packages"].join("|")})(/|$))`,Pt=/(?:^|\/)[^.*?]+$/,We="**/*",Ft="[^/]",$t="[^./]",Se=process.platform==="win32",Ge=k(({config:a,path:c},v=it())=>{if("extends"in a)throw new Error("tsconfig#extends must be resolved. Use getTsconfig or parseTsconfig to resolve it.");if(!N.isAbsolute(c))throw new Error("The tsconfig path must be absolute");Se&&(c=z(c));let h=N.dirname(c),{files:A,include:E,exclude:m,compilerOptions:b}=a,S=k(X=>N.isAbsolute(X)?X:jt(h,X),"resolvePattern"),R=A?.map(S),W=je(b),$=v?"":"i",et=(m||we(b)).map(X=>{let at=S(X),wt=$e(at).replaceAll(String.raw`\*\*/`,"(.+/)?").replaceAll(String.raw`\*`,`${Ft}*`).replaceAll(String.raw`\?`,Ft);return new RegExp(`^${wt}($|/)`,$)}),Y=A||E?E:[We],Q=Y?Y.map(X=>{let at=S(X);Pt.test(at)&&(at=jt(at,We));let wt=$e(at).replaceAll(String.raw`/\*\*`,`(/${Ht}${$t}${Ft}*)*?`).replaceAll(/(\/)?\\\*/g,(Nt,C)=>{let ct=`(${$t}|(\\.(?!min\\.js$))?)*`;return C?`/${Ht}${$t}${ct}`:ct}).replaceAll(/(\/)?\\\?/g,(Nt,C)=>C?`/${Ht}${Ft}`:Ft);return new RegExp(`^${wt}$`,$)}):void 0;return X=>{if(!N.isAbsolute(X))throw new Error("filePath must be absolute");return Se&&(X=z(X)),R!=null&&R.includes(X)||W.some(at=>X.endsWith(at))&&!et.some(at=>at.test(X))&&Q&&Q.some(at=>at.test(X))?a:void 0}},"createFilesMatcher"),fe=k((a,c,v)=>{let h=N.resolve(a),A=z(a);for(;;){let E=L(A,c,v);if(!E)return;let m=N.resolve(E),b=Ue(m,v),S={path:z(m),config:b};if(Ge(S)(h))return S;let R=N.dirname(E),W=N.dirname(R);if(W===R)return;A=W}},"findConfigApplicable"),Ie=k((a=process.cwd(),c="tsconfig.json",v=new Map,h=!1)=>{var A;return h?(A=fe(a,c,v))==null?void 0:A.path:L(z(a),c,v)},"findTsconfig"),ci=k((a=process.cwd(),c="tsconfig.json",v=new Map,h=!1)=>{var A;if(!h){let E=Ie(a,c,v);return E?{path:E,config:Ue(E,v)}:null}return(A=fe(a,c,v))!=null?A:null},"getTsconfig"),pi=/\*/g,De=k((a,c)=>{let v=a.match(pi);if(v&&v.length>1)throw new Error(c)},"assertStarCount"),qe=k(a=>{if(a.includes("*")){let[c,v]=a.split("*");return{prefix:c,suffix:v}}return a},"parsePattern"),Ke=k(({prefix:a,suffix:c},v)=>v.startsWith(a)&&v.endsWith(c),"isPatternMatch"),He=k((a,c,v)=>Object.entries(a).map(([h,A])=>(De(h,`Pattern '${h}' can have at most one '*' character.`),{pattern:qe(h),substitutions:A.map(E=>{if(De(E,`Substitution '${E}' in pattern '${h}' can have at most one '*' character.`),!c&&!D.test(E)&&!N.isAbsolute(E))throw new Error("Non-relative paths are not allowed when 'baseUrl' is not set. Did you forget a leading './'?");return N.resolve(v,E)})})),"parsePaths"),ze=k(a=>{let{compilerOptions:c}=a.config;if(!c)return null;let{baseUrl:v,paths:h}=c;if(!v&&!h)return null;let A=Mt in c&&c[Mt],E=N.resolve(N.dirname(a.path),v||A||"."),m=h?He(h,v,E):[];return b=>{if(D.test(b))return[];let S=[];for(let et of m){if(et.pattern===b)return et.substitutions.map(z);typeof et.pattern!="string"&&S.push(et)}let R,W=-1;for(let et of S)Ke(et.pattern,b)&&et.pattern.prefix.length>W&&(W=et.pattern.prefix.length,R=et);if(!R)return v?[z(N.join(E,b))]:[];let $=b.slice(R.pattern.prefix.length,b.length-R.pattern.suffix.length);return R.substitutions.map(et=>z(et.replace("*",$)))}},"createPathsMatcher");Z.createPathsMatcher=ze,Z.getTsconfig=ci},"./node_modules/.pnpm/resolve-pkg-maps@1.0.0/node_modules/resolve-pkg-maps/dist/index.cjs"(j,Z){"use strict";Object.defineProperty(Z,"__esModule",{value:!0});let ut=d(P=>P!==null&&typeof P=="object","d"),Et=d((P,L)=>Object.assign(new Error(`[${P}]: ${L}`),{code:P}),"s"),k="ERR_INVALID_PACKAGE_CONFIG",N="ERR_INVALID_PACKAGE_TARGET",oe=/^\d+$/,ue=/^(\.{1,2}|node_modules)$/i,ye=/\/|\\/;var Yt,Ot=((Yt=Ot||{}).Export="exports",Yt.Import="imports",Yt);let pt=d((P,L,D,n,J)=>{if(L==null)return[];if(typeof L=="string"){let[rt,...lt]=L.split(ye);if(rt===".."||lt.some(ft=>ue.test(ft)))throw Et(N,`Invalid "${P}" target "${L}" defined in the package config`);return[J?L.replace(/\*/g,J):L]}if(Array.isArray(L))return L.flatMap(rt=>pt(P,rt,D,n,J));if(ut(L)){for(let rt of Object.keys(L)){if(oe.test(rt))throw Et(k,"Cannot contain numeric property keys");if(rt==="default"||n.includes(rt))return pt(P,L[rt],D,n,J)}return[]}throw Et(N,`Invalid "${P}" target "${L}"`)},"f"),z="*",V=d((P,L)=>{let D=P.indexOf(z),n=L.indexOf(z);return D===n?L.length>P.length:n>D},"v");function tt(P,L){if(!L.includes(z)&&P.hasOwnProperty(L))return[L];let D,n;for(let J of Object.keys(P))if(J.includes(z)){let[rt,lt,ft]=J.split(z);if(ft===void 0&&L.startsWith(rt)&&L.endsWith(lt)){let Dt=L.slice(rt.length,-lt.length||void 0);Dt&&(!D||V(D,J))&&(D=J,n=Dt)}}return[D,n]}d(tt,"A");let xt=/^\w+:/;Z.resolveExports=(P,L,D)=>{if(!P)throw new Error('"exports" is required');L=L===""?".":`./${L}`,(typeof P=="string"||Array.isArray(P)||ut(P)&&(lt=>Object.keys(lt).reduce((ft,Dt)=>{let p=Dt===""||Dt[0]!==".";if(ft===void 0||ft===p)return p;throw Et(k,'"exports" cannot contain some keys starting with "." and some not')},void 0))(P))&&(P={".":P});let[n,J]=tt(P,L),rt=pt(Ot.Export,P[n],L,D,J);if(rt.length===0)throw Et("ERR_PACKAGE_PATH_NOT_EXPORTED",L==="."?'No "exports" main defined':`Package subpath '${L}' is not defined by "exports"`);for(let lt of rt)if(!lt.startsWith("./")&&!xt.test(lt))throw Et(N,`Invalid "exports" target "${lt}" defined in the package config`);return rt},Z.resolveImports=(P,L,D)=>{if(!P)throw new Error('"imports" is required');let[n,J]=tt(P,L),rt=pt(Ot.Import,P[n],L,D,J);if(rt.length===0)throw Et("ERR_PACKAGE_IMPORT_NOT_DEFINED",`Package import specifier "${L}" is not defined in package`);return rt}}},Ri={};function _t(j){var Z=Ri[j];if(Z!==void 0)return Z.exports;var ut=Ri[j]={exports:{}};return ws[j](ut,ut.exports,_t),ut.exports}d(_t,"__webpack_require__"),_t.n=j=>{var Z=j&&j.__esModule?()=>j.default:()=>j;return _t.d(Z,{a:Z}),Z},_t.d=(j,Z)=>{for(var ut in Z)_t.o(Z,ut)&&!_t.o(j,ut)&&Object.defineProperty(j,ut,{enumerable:!0,get:Z[ut]})},_t.o=(j,Z)=>Object.prototype.hasOwnProperty.call(j,Z);var Pi={};(()=>{"use strict";_t.d(Pi,{default:d(()=>vs,"default")});let j=gt("node:os");var Z=[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,78,5,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,199,7,137,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,55,9,266,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,233,0,3,0,8,1,6,0,475,6,110,6,6,9,4759,9,787719,239],ut=[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,7,25,39,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,5,57,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,24,43,261,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,33,24,3,24,45,74,6,0,67,12,65,1,2,0,15,4,10,7381,42,31,98,114,8702,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,208,30,2,2,2,1,2,6,3,4,10,1,225,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,4381,3,5773,3,7472,16,621,2467,541,1507,4938,6,8489],Et="\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\u0560-\u0588\u05D0-\u05EA\u05EF-\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\u0860-\u086A\u0870-\u0887\u0889-\u088F\u08A0-\u08C9\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\u09FC\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\u0C5C\u0C5D\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDC-\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D04-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E86-\u0E8A\u0E8C-\u0EA3\u0EA5\u0EA7-\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-\u1711\u171F-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1878\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4C\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C8A\u1C90-\u1CBA\u1CBD-\u1CBF\u1CE9-\u1CEC\u1CEE-\u1CF3\u1CF5\u1CF6\u1CFA\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-\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-\u312F\u3131-\u318E\u31A0-\u31BF\u31F0-\u31FF\u3400-\u4DBF\u4E00-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7DC\uA7F1-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA8FE\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-\uAB69\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",k={3:"abstract boolean byte char class double enum export extends final float goto implements import int interface long native package private protected public short static super synchronized throws transient volatile",5:"class enum extends super const export import",6:"enum",strict:"implements interface let package private protected public static yield",strictBind:"eval arguments"},N="break case catch continue debugger default do else finally for function if return switch throw try var while with null true false instanceof typeof void delete new in this",oe={5:N,"5module":N+" export import",6:N+" const class extends export import super"},ue=/^in(stanceof)?$/,ye=new RegExp("["+Et+"]"),Yt=new RegExp("["+Et+"\u200C\u200D\xB7\u0300-\u036F\u0387\u0483-\u0487\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u064B-\u0669\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u06F0-\u06F9\u0711\u0730-\u074A\u07A6-\u07B0\u07C0-\u07C9\u07EB-\u07F3\u07FD\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u0897-\u089F\u08CA-\u08E1\u08E3-\u0903\u093A-\u093C\u093E-\u094F\u0951-\u0957\u0962\u0963\u0966-\u096F\u0981-\u0983\u09BC\u09BE-\u09C4\u09C7\u09C8\u09CB-\u09CD\u09D7\u09E2\u09E3\u09E6-\u09EF\u09FE\u0A01-\u0A03\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A66-\u0A71\u0A75\u0A81-\u0A83\u0ABC\u0ABE-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AE2\u0AE3\u0AE6-\u0AEF\u0AFA-\u0AFF\u0B01-\u0B03\u0B3C\u0B3E-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B55-\u0B57\u0B62\u0B63\u0B66-\u0B6F\u0B82\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD7\u0BE6-\u0BEF\u0C00-\u0C04\u0C3C\u0C3E-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C66-\u0C6F\u0C81-\u0C83\u0CBC\u0CBE-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CE2\u0CE3\u0CE6-\u0CEF\u0CF3\u0D00-\u0D03\u0D3B\u0D3C\u0D3E-\u0D44\u0D46-\u0D48\u0D4A-\u0D4D\u0D57\u0D62\u0D63\u0D66-\u0D6F\u0D81-\u0D83\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0E50-\u0E59\u0EB1\u0EB4-\u0EBC\u0EC8-\u0ECE\u0ED0-\u0ED9\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E\u0F3F\u0F71-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102B-\u103E\u1040-\u1049\u1056-\u1059\u105E-\u1060\u1062-\u1064\u1067-\u106D\u1071-\u1074\u1082-\u108D\u108F-\u109D\u135D-\u135F\u1369-\u1371\u1712-\u1715\u1732-\u1734\u1752\u1753\u1772\u1773\u17B4-\u17D3\u17DD\u17E0-\u17E9\u180B-\u180D\u180F-\u1819\u18A9\u1920-\u192B\u1930-\u193B\u1946-\u194F\u19D0-\u19DA\u1A17-\u1A1B\u1A55-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AB0-\u1ABD\u1ABF-\u1ADD\u1AE0-\u1AEB\u1B00-\u1B04\u1B34-\u1B44\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1B82\u1BA1-\u1BAD\u1BB0-\u1BB9\u1BE6-\u1BF3\u1C24-\u1C37\u1C40-\u1C49\u1C50-\u1C59\u1CD0-\u1CD2\u1CD4-\u1CE8\u1CED\u1CF4\u1CF7-\u1CF9\u1DC0-\u1DFF\u200C\u200D\u203F\u2040\u2054\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302F\u3099\u309A\u30FB\uA620-\uA629\uA66F\uA674-\uA67D\uA69E\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA823-\uA827\uA82C\uA880\uA881\uA8B4-\uA8C5\uA8D0-\uA8D9\uA8E0-\uA8F1\uA8FF-\uA909\uA926-\uA92D\uA947-\uA953\uA980-\uA983\uA9B3-\uA9C0\uA9D0-\uA9D9\uA9E5\uA9F0-\uA9F9\uAA29-\uAA36\uAA43\uAA4C\uAA4D\uAA50-\uAA59\uAA7B-\uAA7D\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEB-\uAAEF\uAAF5\uAAF6\uABE3-\uABEA\uABEC\uABED\uABF0-\uABF9\uFB1E\uFE00-\uFE0F\uFE20-\uFE2F\uFE33\uFE34\uFE4D-\uFE4F\uFF10-\uFF19\uFF3F\uFF65]");function Ot(t,e){for(var i=65536,s=0;s<e.length;s+=2){if((i+=e[s])>t)return!1;if((i+=e[s+1])>=t)return!0}return!1}d(Ot,"isInAstralSet");function pt(t,e){return t<65?t===36:t<91||(t<97?t===95:t<123||(t<=65535?t>=170&&ye.test(String.fromCharCode(t)):e!==!1&&Ot(t,ut)))}d(pt,"isIdentifierStart");function z(t,e){return t<48?t===36:t<58||!(t<65)&&(t<91||(t<97?t===95:t<123||(t<=65535?t>=170&&Yt.test(String.fromCharCode(t)):e!==!1&&(Ot(t,ut)||Ot(t,Z)))))}d(z,"isIdentifierChar");var V=d(function(t,e){e===void 0&&(e={}),this.label=t,this.keyword=e.keyword,this.beforeExpr=!!e.beforeExpr,this.startsExpr=!!e.startsExpr,this.isLoop=!!e.isLoop,this.isAssign=!!e.isAssign,this.prefix=!!e.prefix,this.postfix=!!e.postfix,this.binop=e.binop||null,this.updateContext=null},"acorn_TokenType");function tt(t,e){return new V(t,{beforeExpr:!0,binop:e})}d(tt,"binop");var xt={beforeExpr:!0},P={startsExpr:!0},L={};function D(t,e){return e===void 0&&(e={}),e.keyword=t,L[t]=new V(t,e)}d(D,"kw");var n={num:new V("num",P),regexp:new V("regexp",P),string:new V("string",P),name:new V("name",P),privateId:new V("privateId",P),eof:new V("eof"),bracketL:new V("[",{beforeExpr:!0,startsExpr:!0}),bracketR:new V("]"),braceL:new V("{",{beforeExpr:!0,startsExpr:!0}),braceR:new V("}"),parenL:new V("(",{beforeExpr:!0,startsExpr:!0}),parenR:new V(")"),comma:new V(",",xt),semi:new V(";",xt),colon:new V(":",xt),dot:new V("."),question:new V("?",xt),questionDot:new V("?."),arrow:new V("=>",xt),template:new V("template"),invalidTemplate:new V("invalidTemplate"),ellipsis:new V("...",xt),backQuote:new V("`",P),dollarBraceL:new V("${",{beforeExpr:!0,startsExpr:!0}),eq:new V("=",{beforeExpr:!0,isAssign:!0}),assign:new V("_=",{beforeExpr:!0,isAssign:!0}),incDec:new V("++/--",{prefix:!0,postfix:!0,startsExpr:!0}),prefix:new V("!/~",{beforeExpr:!0,prefix:!0,startsExpr:!0}),logicalOR:tt("||",1),logicalAND:tt("&&",2),bitwiseOR:tt("|",3),bitwiseXOR:tt("^",4),bitwiseAND:tt("&",5),equality:tt("==/!=/===/!==",6),relational:tt("</>/<=/>=",7),bitShift:tt("<</>>/>>>",8),plusMin:new V("+/-",{beforeExpr:!0,binop:9,prefix:!0,startsExpr:!0}),modulo:tt("%",10),star:tt("*",10),slash:tt("/",10),starstar:new V("**",{beforeExpr:!0}),coalesce:tt("??",1),_break:D("break"),_case:D("case",xt),_catch:D("catch"),_continue:D("continue"),_debugger:D("debugger"),_default:D("default",xt),_do:D("do",{isLoop:!0,beforeExpr:!0}),_else:D("else",xt),_finally:D("finally"),_for:D("for",{isLoop:!0}),_function:D("function",P),_if:D("if"),_return:D("return",xt),_switch:D("switch"),_throw:D("throw",xt),_try:D("try"),_var:D("var"),_const:D("const"),_while:D("while",{isLoop:!0}),_with:D("with"),_new:D("new",{beforeExpr:!0,startsExpr:!0}),_this:D("this",P),_super:D("super",P),_class:D("class",P),_extends:D("extends",xt),_export:D("export"),_import:D("import",P),_null:D("null",P),_true:D("true",P),_false:D("false",P),_in:D("in",{beforeExpr:!0,binop:7}),_instanceof:D("instanceof",{beforeExpr:!0,binop:7}),_typeof:D("typeof",{beforeExpr:!0,prefix:!0,startsExpr:!0}),_void:D("void",{beforeExpr:!0,prefix:!0,startsExpr:!0}),_delete:D("delete",{beforeExpr:!0,prefix:!0,startsExpr:!0})},J=/\r\n?|\n|\u2028|\u2029/,rt=new RegExp(J.source,"g");function lt(t){return t===10||t===13||t===8232||t===8233}d(lt,"isNewLine");function ft(t,e,i){i===void 0&&(i=t.length);for(var s=e;s<i;s++){var r=t.charCodeAt(s);if(lt(r))return s<i-1&&r===13&&t.charCodeAt(s+1)===10?s+2:s+1}return-1}d(ft,"nextLineBreak");var Dt=/[\u1680\u2000-\u200a\u202f\u205f\u3000\ufeff]/,p=/(?:\s|\/\/.*|\/\*[^]*?\*\/)*/g,Vt=Object.prototype,le=Vt.hasOwnProperty,Le=Vt.toString,Ut=Object.hasOwn||function(t,e){return le.call(t,e)},Ce=Array.isArray||function(t){return Le.call(t)==="[object Array]"},_e=Object.create(null);function Rt(t){return _e[t]||(_e[t]=new RegExp("^(?:"+t.replace(/ /g,"|")+")$"))}d(Rt,"wordsRegexp");function St(t){return t<=65535?String.fromCharCode(t):(t-=65536,String.fromCharCode(55296+(t>>10),56320+(1023&t)))}d(St,"codePointToString");var Be=/(?:[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])/,Mt=d(function(t,e){this.line=t,this.column=e},"acorn_Position");Mt.prototype.offset=function(t){return new Mt(this.line,this.column+t)};var vt=d(function(t,e,i){this.start=e,this.end=i,t.sourceFile!==null&&(this.source=t.sourceFile)},"acorn_SourceLocation");function Oe(t,e){for(var i=1,s=0;;){var r=ft(t,s,e);if(r<0)return new Mt(i,e-s);++i,s=r}}d(Oe,"getLineInfo");var Qt={ecmaVersion:null,sourceType:"script",onInsertedSemicolon:null,onTrailingComma:null,allowReserved:null,allowReturnOutsideFunction:!1,allowImportExportEverywhere:!1,allowAwaitOutsideFunction:null,allowSuperOutsideMethod:null,allowHashBang:!1,checkPrivateFields:!0,locations:!1,onToken:null,onComment:null,ranges:!1,program:null,sourceFile:null,directSourceFile:null,preserveParens:!1},he=!1;function be(t){var e={};for(var i in Qt)e[i]=t&&Ut(t,i)?t[i]:Qt[i];if(e.ecmaVersion==="latest"?e.ecmaVersion=1e8:e.ecmaVersion==null?(!he&&typeof console=="object"&&console.warn&&(he=!0,console.warn(`Since Acorn 8.0.0, options.ecmaVersion is required.
|
|
8
|
+
Defaulting to 2020, but this will stop working in the future.`)),e.ecmaVersion=11):e.ecmaVersion>=2015&&(e.ecmaVersion-=2009),e.allowReserved==null&&(e.allowReserved=e.ecmaVersion<5),t&&t.allowHashBang!=null||(e.allowHashBang=e.ecmaVersion>=14),Ce(e.onToken)){var s=e.onToken;e.onToken=function(r){return s.push(r)}}if(Ce(e.onComment)&&(e.onComment=(function(r,o){return function(u,l,f,x,g,_){var y={type:u?"Block":"Line",value:l,start:f,end:x};r.locations&&(y.loc=new vt(this,g,_)),r.ranges&&(y.range=[f,x]),o.push(y)}})(e,e.onComment)),e.sourceType==="commonjs"&&e.allowAwaitOutsideFunction)throw new Error("Cannot use allowAwaitOutsideFunction with sourceType: commonjs");return e}d(be,"getOptions");var li=256,ce=259;function pe(t,e){return 2|(t?4:0)|(e?8:0)}d(pe,"functionFlags");var nt=d(function(t,e,i){this.options=t=be(t),this.sourceFile=t.sourceFile,this.keywords=Rt(oe[t.ecmaVersion>=6?6:t.sourceType==="module"?"5module":5]);var s="";t.allowReserved!==!0&&(s=k[t.ecmaVersion>=6?6:t.ecmaVersion===5?5:3],t.sourceType==="module"&&(s+=" await")),this.reservedWords=Rt(s);var r=(s?s+" ":"")+k.strict;this.reservedWordsStrict=Rt(r),this.reservedWordsStrictBind=Rt(r+" "+k.strictBind),this.input=String(e),this.containsEsc=!1,i?(this.pos=i,this.lineStart=this.input.lastIndexOf(`
|
|
9
|
+
`,i-1)+1,this.curLine=this.input.slice(0,this.lineStart).split(J).length):(this.pos=this.lineStart=0,this.curLine=1),this.type=n.eof,this.value=null,this.start=this.end=this.pos,this.startLoc=this.endLoc=this.curPosition(),this.lastTokEndLoc=this.lastTokStartLoc=null,this.lastTokStart=this.lastTokEnd=this.pos,this.context=this.initialContext(),this.exprAllowed=!0,this.inModule=t.sourceType==="module",this.strict=this.inModule||this.strictDirective(this.pos),this.potentialArrowAt=-1,this.potentialArrowInForAwait=!1,this.yieldPos=this.awaitPos=this.awaitIdentPos=0,this.labels=[],this.undefinedExports=Object.create(null),this.pos===0&&t.allowHashBang&&this.input.slice(0,2)==="#!"&&this.skipLineComment(2),this.scopeStack=[],this.enterScope(this.options.sourceType==="commonjs"?2:1),this.regexpState=null,this.privateNameStack=[]},"acorn_Parser"),bt={inFunction:{configurable:!0},inGenerator:{configurable:!0},inAsync:{configurable:!0},canAwait:{configurable:!0},allowReturn:{configurable:!0},allowSuper:{configurable:!0},allowDirectSuper:{configurable:!0},treatFunctionsAsVar:{configurable:!0},allowNewDotTarget:{configurable:!0},allowUsing:{configurable:!0},inClassStaticBlock:{configurable:!0}};nt.prototype.parse=function(){var t=this.options.program||this.startNode();return this.nextToken(),this.parseTopLevel(t)},bt.inFunction.get=function(){return(2&this.currentVarScope().flags)>0},bt.inGenerator.get=function(){return(8&this.currentVarScope().flags)>0},bt.inAsync.get=function(){return(4&this.currentVarScope().flags)>0},bt.canAwait.get=function(){for(var t=this.scopeStack.length-1;t>=0;t--){var e=this.scopeStack[t].flags;if(768&e)return!1;if(2&e)return(4&e)>0}return this.inModule&&this.options.ecmaVersion>=13||this.options.allowAwaitOutsideFunction},bt.allowReturn.get=function(){return!!this.inFunction||!!(this.options.allowReturnOutsideFunction&&1&this.currentVarScope().flags)},bt.allowSuper.get=function(){return(64&this.currentThisScope().flags)>0||this.options.allowSuperOutsideMethod},bt.allowDirectSuper.get=function(){return(128&this.currentThisScope().flags)>0},bt.treatFunctionsAsVar.get=function(){return this.treatFunctionsAsVarInScope(this.currentScope())},bt.allowNewDotTarget.get=function(){for(var t=this.scopeStack.length-1;t>=0;t--){var e=this.scopeStack[t].flags;if(768&e||2&e&&!(16&e))return!0}return!1},bt.allowUsing.get=function(){var t=this.currentScope().flags;return!(1024&t)&&!(!this.inModule&&1&t)},bt.inClassStaticBlock.get=function(){return(this.currentVarScope().flags&li)>0},nt.extend=function(){for(var t=[],e=arguments.length;e--;)t[e]=arguments[e];for(var i=this,s=0;s<t.length;s++)i=t[s](i);return i},nt.parse=function(t,e){return new this(e,t).parse()},nt.parseExpressionAt=function(t,e,i){var s=new this(i,t,e);return s.nextToken(),s.parseExpression()},nt.tokenizer=function(t,e){return new this(e,t)},Object.defineProperties(nt.prototype,bt);var dt=nt.prototype,Ve=/^(?:'((?:\\[^]|[^'\\])*?)'|"((?:\\[^]|[^"\\])*?)")/;dt.strictDirective=function(t){if(this.options.ecmaVersion<5)return!1;for(;;){p.lastIndex=t,t+=p.exec(this.input)[0].length;var e=Ve.exec(this.input.slice(t));if(!e)return!1;if((e[1]||e[2])==="use strict"){p.lastIndex=t+e[0].length;var i=p.exec(this.input),s=i.index+i[0].length,r=this.input.charAt(s);return r===";"||r==="}"||J.test(i[0])&&!(/[(`.[+\-/*%<>=,?^&]/.test(r)||r==="!"&&this.input.charAt(s+1)==="=")}t+=e[0].length,p.lastIndex=t,t+=p.exec(this.input)[0].length,this.input[t]===";"&&t++}},dt.eat=function(t){return this.type===t&&(this.next(),!0)},dt.isContextual=function(t){return this.type===n.name&&this.value===t&&!this.containsEsc},dt.eatContextual=function(t){return!!this.isContextual(t)&&(this.next(),!0)},dt.expectContextual=function(t){this.eatContextual(t)||this.unexpected()},dt.canInsertSemicolon=function(){return this.type===n.eof||this.type===n.braceR||J.test(this.input.slice(this.lastTokEnd,this.start))},dt.insertSemicolon=function(){if(this.canInsertSemicolon())return this.options.onInsertedSemicolon&&this.options.onInsertedSemicolon(this.lastTokEnd,this.lastTokEndLoc),!0},dt.semicolon=function(){this.eat(n.semi)||this.insertSemicolon()||this.unexpected()},dt.afterTrailingComma=function(t,e){if(this.type===t)return this.options.onTrailingComma&&this.options.onTrailingComma(this.lastTokStart,this.lastTokStartLoc),e||this.next(),!0},dt.expect=function(t){this.eat(t)||this.unexpected()},dt.unexpected=function(t){this.raise(t??this.start,"Unexpected token")};var Xt=d(function(){this.shorthandAssign=this.trailingComma=this.parenthesizedAssign=this.parenthesizedBind=this.doubleProto=-1},"acorn_DestructuringErrors");dt.checkPatternErrors=function(t,e){if(t){t.trailingComma>-1&&this.raiseRecoverable(t.trailingComma,"Comma is not permitted after the rest element");var i=e?t.parenthesizedAssign:t.parenthesizedBind;i>-1&&this.raiseRecoverable(i,e?"Assigning to rvalue":"Parenthesized pattern")}},dt.checkExpressionErrors=function(t,e){if(!t)return!1;var i=t.shorthandAssign,s=t.doubleProto;if(!e)return i>=0||s>=0;i>=0&&this.raise(i,"Shorthand property assignments are valid only in destructuring patterns"),s>=0&&this.raiseRecoverable(s,"Redefinition of __proto__ property")},dt.checkYieldAwaitInDefaultParams=function(){this.yieldPos&&(!this.awaitPos||this.yieldPos<this.awaitPos)&&this.raise(this.yieldPos,"Yield expression cannot be a default value"),this.awaitPos&&this.raise(this.awaitPos,"Await expression cannot be a default value")},dt.isSimpleAssignTarget=function(t){return t.type==="ParenthesizedExpression"?this.isSimpleAssignTarget(t.expression):t.type==="Identifier"||t.type==="MemberExpression"};var w=nt.prototype;w.parseTopLevel=function(t){var e=Object.create(null);for(t.body||(t.body=[]);this.type!==n.eof;){var i=this.parseStatement(null,!0,e);t.body.push(i)}if(this.inModule)for(var s=0,r=Object.keys(this.undefinedExports);s<r.length;s+=1){var o=r[s];this.raiseRecoverable(this.undefinedExports[o].start,"Export '"+o+"' is not defined")}return this.adaptDirectivePrologue(t.body),this.next(),t.sourceType=this.options.sourceType==="commonjs"?"script":this.options.sourceType,this.finishNode(t,"Program")};var ke={kind:"loop"},hi={kind:"switch"};w.isLet=function(t){if(this.options.ecmaVersion<6||!this.isContextual("let"))return!1;p.lastIndex=this.pos;var e=p.exec(this.input),i=this.pos+e[0].length,s=this.fullCharCodeAt(i);if(s===91||s===92)return!0;if(t)return!1;if(s===123)return!0;if(pt(s)){var r=i;do i+=s<=65535?1:2;while(z(s=this.fullCharCodeAt(i)));if(s===92)return!0;var o=this.input.slice(r,i);if(!ue.test(o))return!0}return!1},w.isAsyncFunction=function(){if(this.options.ecmaVersion<8||!this.isContextual("async"))return!1;p.lastIndex=this.pos;var t,e=p.exec(this.input),i=this.pos+e[0].length;return!(J.test(this.input.slice(this.pos,i))||this.input.slice(i,i+8)!=="function"||i+8!==this.input.length&&(z(t=this.fullCharCodeAt(i+8))||t===92))},w.isUsingKeyword=function(t,e){if(this.options.ecmaVersion<17||!this.isContextual(t?"await":"using"))return!1;p.lastIndex=this.pos;var i=p.exec(this.input),s=this.pos+i[0].length;if(J.test(this.input.slice(this.pos,s)))return!1;if(t){var r,o=s+5;if(this.input.slice(s,o)!=="using"||o===this.input.length||z(r=this.fullCharCodeAt(o))||r===92)return!1;p.lastIndex=o;var u=p.exec(this.input);if(s=o+u[0].length,u&&J.test(this.input.slice(o,s)))return!1}var l=this.fullCharCodeAt(s);if(!pt(l)&&l!==92)return!1;var f=s;do s+=l<=65535?1:2;while(z(l=this.fullCharCodeAt(s)));if(l===92)return!0;var x=this.input.slice(f,s);return!(ue.test(x)||e&&x==="of")},w.isAwaitUsing=function(t){return this.isUsingKeyword(!0,t)},w.isUsing=function(t){return this.isUsingKeyword(!1,t)},w.parseStatement=function(t,e,i){var s,r=this.type,o=this.startNode();switch(this.isLet(t)&&(r=n._var,s="let"),r){case n._break:case n._continue:return this.parseBreakContinueStatement(o,r.keyword);case n._debugger:return this.parseDebuggerStatement(o);case n._do:return this.parseDoStatement(o);case n._for:return this.parseForStatement(o);case n._function:return t&&(this.strict||t!=="if"&&t!=="label")&&this.options.ecmaVersion>=6&&this.unexpected(),this.parseFunctionStatement(o,!1,!t);case n._class:return t&&this.unexpected(),this.parseClass(o,!0);case n._if:return this.parseIfStatement(o);case n._return:return this.parseReturnStatement(o);case n._switch:return this.parseSwitchStatement(o);case n._throw:return this.parseThrowStatement(o);case n._try:return this.parseTryStatement(o);case n._const:case n._var:return s=s||this.value,t&&s!=="var"&&this.unexpected(),this.parseVarStatement(o,s);case n._while:return this.parseWhileStatement(o);case n._with:return this.parseWithStatement(o);case n.braceL:return this.parseBlock(!0,o);case n.semi:return this.parseEmptyStatement(o);case n._export:case n._import:if(this.options.ecmaVersion>10&&r===n._import){p.lastIndex=this.pos;var u=p.exec(this.input),l=this.pos+u[0].length,f=this.input.charCodeAt(l);if(f===40||f===46)return this.parseExpressionStatement(o,this.parseExpression())}return this.options.allowImportExportEverywhere||(e||this.raise(this.start,"'import' and 'export' may only appear at the top level"),this.inModule||this.raise(this.start,"'import' and 'export' may appear only with 'sourceType: module'")),r===n._import?this.parseImport(o):this.parseExport(o,i);default:if(this.isAsyncFunction())return t&&this.unexpected(),this.next(),this.parseFunctionStatement(o,!0,!t);var x=this.isAwaitUsing(!1)?"await using":this.isUsing(!1)?"using":null;if(x)return this.allowUsing||this.raise(this.start,"Using declaration cannot appear in the top level when source type is `script` or in the bare case statement"),x==="await using"&&(this.canAwait||this.raise(this.start,"Await using cannot appear outside of async function"),this.next()),this.next(),this.parseVar(o,!1,x),this.semicolon(),this.finishNode(o,"VariableDeclaration");var g=this.value,_=this.parseExpression();return r===n.name&&_.type==="Identifier"&&this.eat(n.colon)?this.parseLabeledStatement(o,g,_,t):this.parseExpressionStatement(o,_)}},w.parseBreakContinueStatement=function(t,e){var i=e==="break";this.next(),this.eat(n.semi)||this.insertSemicolon()?t.label=null:this.type!==n.name?this.unexpected():(t.label=this.parseIdent(),this.semicolon());for(var s=0;s<this.labels.length;++s){var r=this.labels[s];if((t.label==null||r.name===t.label.name)&&(r.kind!=null&&(i||r.kind==="loop")||t.label&&i))break}return s===this.labels.length&&this.raise(t.start,"Unsyntactic "+e),this.finishNode(t,i?"BreakStatement":"ContinueStatement")},w.parseDebuggerStatement=function(t){return this.next(),this.semicolon(),this.finishNode(t,"DebuggerStatement")},w.parseDoStatement=function(t){return this.next(),this.labels.push(ke),t.body=this.parseStatement("do"),this.labels.pop(),this.expect(n._while),t.test=this.parseParenExpression(),this.options.ecmaVersion>=6?this.eat(n.semi):this.semicolon(),this.finishNode(t,"DoWhileStatement")},w.parseForStatement=function(t){this.next();var e=this.options.ecmaVersion>=9&&this.canAwait&&this.eatContextual("await")?this.lastTokStart:-1;if(this.labels.push(ke),this.enterScope(0),this.expect(n.parenL),this.type===n.semi)return e>-1&&this.unexpected(e),this.parseFor(t,null);var i=this.isLet();if(this.type===n._var||this.type===n._const||i){var s=this.startNode(),r=i?"let":this.value;return this.next(),this.parseVar(s,!0,r),this.finishNode(s,"VariableDeclaration"),this.parseForAfterInit(t,s,e)}var o=this.isContextual("let"),u=!1,l=this.isUsing(!0)?"using":this.isAwaitUsing(!0)?"await using":null;if(l){var f=this.startNode();return this.next(),l==="await using"&&(this.canAwait||this.raise(this.start,"Await using cannot appear outside of async function"),this.next()),this.parseVar(f,!0,l),this.finishNode(f,"VariableDeclaration"),this.parseForAfterInit(t,f,e)}var x=this.containsEsc,g=new Xt,_=this.start,y=e>-1?this.parseExprSubscripts(g,"await"):this.parseExpression(!0,g);return this.type===n._in||(u=this.options.ecmaVersion>=6&&this.isContextual("of"))?(e>-1?(this.type===n._in&&this.unexpected(e),t.await=!0):u&&this.options.ecmaVersion>=8&&(y.start!==_||x||y.type!=="Identifier"||y.name!=="async"?this.options.ecmaVersion>=9&&(t.await=!1):this.unexpected()),o&&u&&this.raise(y.start,"The left-hand side of a for-of loop may not start with 'let'."),this.toAssignable(y,!1,g),this.checkLValPattern(y),this.parseForIn(t,y)):(this.checkExpressionErrors(g,!0),e>-1&&this.unexpected(e),this.parseFor(t,y))},w.parseForAfterInit=function(t,e,i){return(this.type===n._in||this.options.ecmaVersion>=6&&this.isContextual("of"))&&e.declarations.length===1?(this.options.ecmaVersion>=9&&(this.type===n._in?i>-1&&this.unexpected(i):t.await=i>-1),this.parseForIn(t,e)):(i>-1&&this.unexpected(i),this.parseFor(t,e))},w.parseFunctionStatement=function(t,e,i){return this.next(),this.parseFunction(t,Zt|(i?0:qt),!1,e)},w.parseIfStatement=function(t){return this.next(),t.test=this.parseParenExpression(),t.consequent=this.parseStatement("if"),t.alternate=this.eat(n._else)?this.parseStatement("if"):null,this.finishNode(t,"IfStatement")},w.parseReturnStatement=function(t){return this.allowReturn||this.raise(this.start,"'return' outside of function"),this.next(),this.eat(n.semi)||this.insertSemicolon()?t.argument=null:(t.argument=this.parseExpression(),this.semicolon()),this.finishNode(t,"ReturnStatement")},w.parseSwitchStatement=function(t){var e;this.next(),t.discriminant=this.parseParenExpression(),t.cases=[],this.expect(n.braceL),this.labels.push(hi),this.enterScope(1024);for(var i=!1;this.type!==n.braceR;)if(this.type===n._case||this.type===n._default){var s=this.type===n._case;e&&this.finishNode(e,"SwitchCase"),t.cases.push(e=this.startNode()),e.consequent=[],this.next(),s?e.test=this.parseExpression():(i&&this.raiseRecoverable(this.lastTokStart,"Multiple default clauses"),i=!0,e.test=null),this.expect(n.colon)}else e||this.unexpected(),e.consequent.push(this.parseStatement(null));return this.exitScope(),e&&this.finishNode(e,"SwitchCase"),this.next(),this.labels.pop(),this.finishNode(t,"SwitchStatement")},w.parseThrowStatement=function(t){return this.next(),J.test(this.input.slice(this.lastTokEnd,this.start))&&this.raise(this.lastTokEnd,"Illegal newline after throw"),t.argument=this.parseExpression(),this.semicolon(),this.finishNode(t,"ThrowStatement")};var Ue=[];w.parseCatchClauseParam=function(){var t=this.parseBindingAtom(),e=t.type==="Identifier";return this.enterScope(e?32:0),this.checkLValPattern(t,e?4:2),this.expect(n.parenR),t},w.parseTryStatement=function(t){if(this.next(),t.block=this.parseBlock(),t.handler=null,this.type===n._catch){var e=this.startNode();this.next(),this.eat(n.parenL)?e.param=this.parseCatchClauseParam():(this.options.ecmaVersion<10&&this.unexpected(),e.param=null,this.enterScope(0)),e.body=this.parseBlock(!1),this.exitScope(),t.handler=this.finishNode(e,"CatchClause")}return t.finalizer=this.eat(n._finally)?this.parseBlock():null,t.handler||t.finalizer||this.raise(t.start,"Missing catch or finally clause"),this.finishNode(t,"TryStatement")},w.parseVarStatement=function(t,e,i){return this.next(),this.parseVar(t,!1,e,i),this.semicolon(),this.finishNode(t,"VariableDeclaration")},w.parseWhileStatement=function(t){return this.next(),t.test=this.parseParenExpression(),this.labels.push(ke),t.body=this.parseStatement("while"),this.labels.pop(),this.finishNode(t,"WhileStatement")},w.parseWithStatement=function(t){return this.strict&&this.raise(this.start,"'with' in strict mode"),this.next(),t.object=this.parseParenExpression(),t.body=this.parseStatement("with"),this.finishNode(t,"WithStatement")},w.parseEmptyStatement=function(t){return this.next(),this.finishNode(t,"EmptyStatement")},w.parseLabeledStatement=function(t,e,i,s){for(var r=0,o=this.labels;r<o.length;r+=1)o[r].name===e&&this.raise(i.start,"Label '"+e+"' is already declared");for(var u=this.type.isLoop?"loop":this.type===n._switch?"switch":null,l=this.labels.length-1;l>=0;l--){var f=this.labels[l];if(f.statementStart!==t.start)break;f.statementStart=this.start,f.kind=u}return this.labels.push({name:e,kind:u,statementStart:this.start}),t.body=this.parseStatement(s?s.indexOf("label")===-1?s+"label":s:"label"),this.labels.pop(),t.label=i,this.finishNode(t,"LabeledStatement")},w.parseExpressionStatement=function(t,e){return t.expression=e,this.semicolon(),this.finishNode(t,"ExpressionStatement")},w.parseBlock=function(t,e,i){for(t===void 0&&(t=!0),e===void 0&&(e=this.startNode()),e.body=[],this.expect(n.braceL),t&&this.enterScope(0);this.type!==n.braceR;){var s=this.parseStatement(null);e.body.push(s)}return i&&(this.strict=!1),this.next(),t&&this.exitScope(),this.finishNode(e,"BlockStatement")},w.parseFor=function(t,e){return t.init=e,this.expect(n.semi),t.test=this.type===n.semi?null:this.parseExpression(),this.expect(n.semi),t.update=this.type===n.parenR?null:this.parseExpression(),this.expect(n.parenR),t.body=this.parseStatement("for"),this.exitScope(),this.labels.pop(),this.finishNode(t,"ForStatement")},w.parseForIn=function(t,e){var i=this.type===n._in;return this.next(),e.type==="VariableDeclaration"&&e.declarations[0].init!=null&&(!i||this.options.ecmaVersion<8||this.strict||e.kind!=="var"||e.declarations[0].id.type!=="Identifier")&&this.raise(e.start,(i?"for-in":"for-of")+" loop variable declaration may not have an initializer"),t.left=e,t.right=i?this.parseExpression():this.parseMaybeAssign(),this.expect(n.parenR),t.body=this.parseStatement("for"),this.exitScope(),this.labels.pop(),this.finishNode(t,i?"ForInStatement":"ForOfStatement")},w.parseVar=function(t,e,i,s){for(t.declarations=[],t.kind=i;;){var r=this.startNode();if(this.parseVarId(r,i),this.eat(n.eq)?r.init=this.parseMaybeAssign(e):s||i!=="const"||this.type===n._in||this.options.ecmaVersion>=6&&this.isContextual("of")?s||i!=="using"&&i!=="await using"||!(this.options.ecmaVersion>=17)||this.type===n._in||this.isContextual("of")?s||r.id.type==="Identifier"||e&&(this.type===n._in||this.isContextual("of"))?r.init=null:this.raise(this.lastTokEnd,"Complex binding patterns require an initialization value"):this.raise(this.lastTokEnd,"Missing initializer in "+i+" declaration"):this.unexpected(),t.declarations.push(this.finishNode(r,"VariableDeclarator")),!this.eat(n.comma))break}return t},w.parseVarId=function(t,e){t.id=e==="using"||e==="await using"?this.parseIdent():this.parseBindingAtom(),this.checkLValPattern(t.id,e==="var"?1:2,!1)};var Zt=1,qt=2;function Me(t,e){var i=e.key.name,s=t[i],r="true";return e.type!=="MethodDefinition"||e.kind!=="get"&&e.kind!=="set"||(r=(e.static?"s":"i")+e.kind),s==="iget"&&r==="iset"||s==="iset"&&r==="iget"||s==="sget"&&r==="sset"||s==="sset"&&r==="sget"?(t[i]="true",!1):!!s||(t[i]=r,!1)}d(Me,"isPrivateNameConflicted");function Kt(t,e){var i=t.computed,s=t.key;return!i&&(s.type==="Identifier"&&s.name===e||s.type==="Literal"&&s.value===e)}d(Kt,"checkKeyName"),w.parseFunction=function(t,e,i,s,r){this.initFunction(t),(this.options.ecmaVersion>=9||this.options.ecmaVersion>=6&&!s)&&(this.type===n.star&&e&qt&&this.unexpected(),t.generator=this.eat(n.star)),this.options.ecmaVersion>=8&&(t.async=!!s),e&Zt&&(t.id=4&e&&this.type!==n.name?null:this.parseIdent(),!t.id||e&qt||this.checkLValSimple(t.id,this.strict||t.generator||t.async?this.treatFunctionsAsVar?1:2:3));var o=this.yieldPos,u=this.awaitPos,l=this.awaitIdentPos;return this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,this.enterScope(pe(t.async,t.generator)),e&Zt||(t.id=this.type===n.name?this.parseIdent():null),this.parseFunctionParams(t),this.parseFunctionBody(t,i,!1,r),this.yieldPos=o,this.awaitPos=u,this.awaitIdentPos=l,this.finishNode(t,e&Zt?"FunctionDeclaration":"FunctionExpression")},w.parseFunctionParams=function(t){this.expect(n.parenL),t.params=this.parseBindingList(n.parenR,!1,this.options.ecmaVersion>=8),this.checkYieldAwaitInDefaultParams()},w.parseClass=function(t,e){this.next();var i=this.strict;this.strict=!0,this.parseClassId(t,e),this.parseClassSuper(t);var s=this.enterClassBody(),r=this.startNode(),o=!1;for(r.body=[],this.expect(n.braceL);this.type!==n.braceR;){var u=this.parseClassElement(t.superClass!==null);u&&(r.body.push(u),u.type==="MethodDefinition"&&u.kind==="constructor"?(o&&this.raiseRecoverable(u.start,"Duplicate constructor in the same class"),o=!0):u.key&&u.key.type==="PrivateIdentifier"&&Me(s,u)&&this.raiseRecoverable(u.key.start,"Identifier '#"+u.key.name+"' has already been declared"))}return this.strict=i,this.next(),t.body=this.finishNode(r,"ClassBody"),this.exitClassBody(),this.finishNode(t,e?"ClassDeclaration":"ClassExpression")},w.parseClassElement=function(t){if(this.eat(n.semi))return null;var e=this.options.ecmaVersion,i=this.startNode(),s="",r=!1,o=!1,u="method",l=!1;if(this.eatContextual("static")){if(e>=13&&this.eat(n.braceL))return this.parseClassStaticBlock(i),i;this.isClassElementNameStart()||this.type===n.star?l=!0:s="static"}if(i.static=l,!s&&e>=8&&this.eatContextual("async")&&(!this.isClassElementNameStart()&&this.type!==n.star||this.canInsertSemicolon()?s="async":o=!0),!s&&(e>=9||!o)&&this.eat(n.star)&&(r=!0),!s&&!o&&!r){var f=this.value;(this.eatContextual("get")||this.eatContextual("set"))&&(this.isClassElementNameStart()?u=f:s=f)}if(s?(i.computed=!1,i.key=this.startNodeAt(this.lastTokStart,this.lastTokStartLoc),i.key.name=s,this.finishNode(i.key,"Identifier")):this.parseClassElementName(i),e<13||this.type===n.parenL||u!=="method"||r||o){var x=!i.static&&Kt(i,"constructor"),g=x&&t;x&&u!=="method"&&this.raise(i.key.start,"Constructor can't have get/set modifier"),i.kind=x?"constructor":u,this.parseClassMethod(i,r,o,g)}else this.parseClassField(i);return i},w.isClassElementNameStart=function(){return this.type===n.name||this.type===n.privateId||this.type===n.num||this.type===n.string||this.type===n.bracketL||this.type.keyword},w.parseClassElementName=function(t){this.type===n.privateId?(this.value==="constructor"&&this.raise(this.start,"Classes can't have an element named '#constructor'"),t.computed=!1,t.key=this.parsePrivateIdent()):this.parsePropertyName(t)},w.parseClassMethod=function(t,e,i,s){var r=t.key;t.kind==="constructor"?(e&&this.raise(r.start,"Constructor can't be a generator"),i&&this.raise(r.start,"Constructor can't be an async method")):t.static&&Kt(t,"prototype")&&this.raise(r.start,"Classes may not have a static property named prototype");var o=t.value=this.parseMethod(e,i,s);return t.kind==="get"&&o.params.length!==0&&this.raiseRecoverable(o.start,"getter should have no params"),t.kind==="set"&&o.params.length!==1&&this.raiseRecoverable(o.start,"setter should have exactly one param"),t.kind==="set"&&o.params[0].type==="RestElement"&&this.raiseRecoverable(o.params[0].start,"Setter cannot use rest params"),this.finishNode(t,"MethodDefinition")},w.parseClassField=function(t){return Kt(t,"constructor")?this.raise(t.key.start,"Classes can't have a field named 'constructor'"):t.static&&Kt(t,"prototype")&&this.raise(t.key.start,"Classes can't have a static field named 'prototype'"),this.eat(n.eq)?(this.enterScope(576),t.value=this.parseMaybeAssign(),this.exitScope()):t.value=null,this.semicolon(),this.finishNode(t,"PropertyDefinition")},w.parseClassStaticBlock=function(t){t.body=[];var e=this.labels;for(this.labels=[],this.enterScope(320);this.type!==n.braceR;){var i=this.parseStatement(null);t.body.push(i)}return this.next(),this.exitScope(),this.labels=e,this.finishNode(t,"StaticBlock")},w.parseClassId=function(t,e){this.type===n.name?(t.id=this.parseIdent(),e&&this.checkLValSimple(t.id,2,!1)):(e===!0&&this.unexpected(),t.id=null)},w.parseClassSuper=function(t){t.superClass=this.eat(n._extends)?this.parseExprSubscripts(null,!1):null},w.enterClassBody=function(){var t={declared:Object.create(null),used:[]};return this.privateNameStack.push(t),t.declared},w.exitClassBody=function(){var t=this.privateNameStack.pop(),e=t.declared,i=t.used;if(this.options.checkPrivateFields)for(var s=this.privateNameStack.length,r=s===0?null:this.privateNameStack[s-1],o=0;o<i.length;++o){var u=i[o];Ut(e,u.name)||(r?r.used.push(u):this.raiseRecoverable(u.start,"Private field '#"+u.name+"' must be declared in an enclosing class"))}},w.parseExportAllDeclaration=function(t,e){return this.options.ecmaVersion>=11&&(this.eatContextual("as")?(t.exported=this.parseModuleExportName(),this.checkExport(e,t.exported,this.lastTokStart)):t.exported=null),this.expectContextual("from"),this.type!==n.string&&this.unexpected(),t.source=this.parseExprAtom(),this.options.ecmaVersion>=16&&(t.attributes=this.parseWithClause()),this.semicolon(),this.finishNode(t,"ExportAllDeclaration")},w.parseExport=function(t,e){if(this.next(),this.eat(n.star))return this.parseExportAllDeclaration(t,e);if(this.eat(n._default))return this.checkExport(e,"default",this.lastTokStart),t.declaration=this.parseExportDefaultDeclaration(),this.finishNode(t,"ExportDefaultDeclaration");if(this.shouldParseExportStatement())t.declaration=this.parseExportDeclaration(t),t.declaration.type==="VariableDeclaration"?this.checkVariableExport(e,t.declaration.declarations):this.checkExport(e,t.declaration.id,t.declaration.id.start),t.specifiers=[],t.source=null,this.options.ecmaVersion>=16&&(t.attributes=[]);else{if(t.declaration=null,t.specifiers=this.parseExportSpecifiers(e),this.eatContextual("from"))this.type!==n.string&&this.unexpected(),t.source=this.parseExprAtom(),this.options.ecmaVersion>=16&&(t.attributes=this.parseWithClause());else{for(var i=0,s=t.specifiers;i<s.length;i+=1){var r=s[i];this.checkUnreserved(r.local),this.checkLocalExport(r.local),r.local.type==="Literal"&&this.raise(r.local.start,"A string literal cannot be used as an exported binding without `from`.")}t.source=null,this.options.ecmaVersion>=16&&(t.attributes=[])}this.semicolon()}return this.finishNode(t,"ExportNamedDeclaration")},w.parseExportDeclaration=function(t){return this.parseStatement(null)},w.parseExportDefaultDeclaration=function(){var t;if(this.type===n._function||(t=this.isAsyncFunction())){var e=this.startNode();return this.next(),t&&this.next(),this.parseFunction(e,4|Zt,!1,t)}if(this.type===n._class){var i=this.startNode();return this.parseClass(i,"nullableID")}var s=this.parseMaybeAssign();return this.semicolon(),s},w.checkExport=function(t,e,i){t&&(typeof e!="string"&&(e=e.type==="Identifier"?e.name:e.value),Ut(t,e)&&this.raiseRecoverable(i,"Duplicate export '"+e+"'"),t[e]=!0)},w.checkPatternExport=function(t,e){var i=e.type;if(i==="Identifier")this.checkExport(t,e,e.start);else if(i==="ObjectPattern")for(var s=0,r=e.properties;s<r.length;s+=1){var o=r[s];this.checkPatternExport(t,o)}else if(i==="ArrayPattern")for(var u=0,l=e.elements;u<l.length;u+=1){var f=l[u];f&&this.checkPatternExport(t,f)}else i==="Property"?this.checkPatternExport(t,e.value):i==="AssignmentPattern"?this.checkPatternExport(t,e.left):i==="RestElement"&&this.checkPatternExport(t,e.argument)},w.checkVariableExport=function(t,e){if(t)for(var i=0,s=e;i<s.length;i+=1){var r=s[i];this.checkPatternExport(t,r.id)}},w.shouldParseExportStatement=function(){return this.type.keyword==="var"||this.type.keyword==="const"||this.type.keyword==="class"||this.type.keyword==="function"||this.isLet()||this.isAsyncFunction()},w.parseExportSpecifier=function(t){var e=this.startNode();return e.local=this.parseModuleExportName(),e.exported=this.eatContextual("as")?this.parseModuleExportName():e.local,this.checkExport(t,e.exported,e.exported.start),this.finishNode(e,"ExportSpecifier")},w.parseExportSpecifiers=function(t){var e=[],i=!0;for(this.expect(n.braceL);!this.eat(n.braceR);){if(i)i=!1;else if(this.expect(n.comma),this.afterTrailingComma(n.braceR))break;e.push(this.parseExportSpecifier(t))}return e},w.parseImport=function(t){return this.next(),this.type===n.string?(t.specifiers=Ue,t.source=this.parseExprAtom()):(t.specifiers=this.parseImportSpecifiers(),this.expectContextual("from"),t.source=this.type===n.string?this.parseExprAtom():this.unexpected()),this.options.ecmaVersion>=16&&(t.attributes=this.parseWithClause()),this.semicolon(),this.finishNode(t,"ImportDeclaration")},w.parseImportSpecifier=function(){var t=this.startNode();return t.imported=this.parseModuleExportName(),this.eatContextual("as")?t.local=this.parseIdent():(this.checkUnreserved(t.imported),t.local=t.imported),this.checkLValSimple(t.local,2),this.finishNode(t,"ImportSpecifier")},w.parseImportDefaultSpecifier=function(){var t=this.startNode();return t.local=this.parseIdent(),this.checkLValSimple(t.local,2),this.finishNode(t,"ImportDefaultSpecifier")},w.parseImportNamespaceSpecifier=function(){var t=this.startNode();return this.next(),this.expectContextual("as"),t.local=this.parseIdent(),this.checkLValSimple(t.local,2),this.finishNode(t,"ImportNamespaceSpecifier")},w.parseImportSpecifiers=function(){var t=[],e=!0;if(this.type===n.name&&(t.push(this.parseImportDefaultSpecifier()),!this.eat(n.comma)))return t;if(this.type===n.star)return t.push(this.parseImportNamespaceSpecifier()),t;for(this.expect(n.braceL);!this.eat(n.braceR);){if(e)e=!1;else if(this.expect(n.comma),this.afterTrailingComma(n.braceR))break;t.push(this.parseImportSpecifier())}return t},w.parseWithClause=function(){var t=[];if(!this.eat(n._with))return t;this.expect(n.braceL);for(var e={},i=!0;!this.eat(n.braceR);){if(i)i=!1;else if(this.expect(n.comma),this.afterTrailingComma(n.braceR))break;var s=this.parseImportAttribute(),r=s.key.type==="Identifier"?s.key.name:s.key.value;Ut(e,r)&&this.raiseRecoverable(s.key.start,"Duplicate attribute key '"+r+"'"),e[r]=!0,t.push(s)}return t},w.parseImportAttribute=function(){var t=this.startNode();return t.key=this.type===n.string?this.parseExprAtom():this.parseIdent(this.options.allowReserved!=="never"),this.expect(n.colon),this.type!==n.string&&this.unexpected(),t.value=this.parseExprAtom(),this.finishNode(t,"ImportAttribute")},w.parseModuleExportName=function(){if(this.options.ecmaVersion>=13&&this.type===n.string){var t=this.parseLiteral(this.value);return Be.test(t.value)&&this.raise(t.start,"An export name cannot include a lone surrogate."),t}return this.parseIdent(!0)},w.adaptDirectivePrologue=function(t){for(var e=0;e<t.length&&this.isDirectiveCandidate(t[e]);++e)t[e].directive=t[e].expression.raw.slice(1,-1)},w.isDirectiveCandidate=function(t){return this.options.ecmaVersion>=5&&t.type==="ExpressionStatement"&&t.expression.type==="Literal"&&typeof t.expression.value=="string"&&(this.input[t.start]==='"'||this.input[t.start]==="'")};var At=nt.prototype;At.toAssignable=function(t,e,i){if(this.options.ecmaVersion>=6&&t)switch(t.type){case"Identifier":this.inAsync&&t.name==="await"&&this.raise(t.start,"Cannot use 'await' as identifier inside an async function");break;case"ObjectPattern":case"ArrayPattern":case"AssignmentPattern":case"RestElement":break;case"ObjectExpression":t.type="ObjectPattern",i&&this.checkPatternErrors(i,!0);for(var s=0,r=t.properties;s<r.length;s+=1){var o=r[s];this.toAssignable(o,e),o.type!=="RestElement"||o.argument.type!=="ArrayPattern"&&o.argument.type!=="ObjectPattern"||this.raise(o.argument.start,"Unexpected token")}break;case"Property":t.kind!=="init"&&this.raise(t.key.start,"Object pattern can't contain getter or setter"),this.toAssignable(t.value,e);break;case"ArrayExpression":t.type="ArrayPattern",i&&this.checkPatternErrors(i,!0),this.toAssignableList(t.elements,e);break;case"SpreadElement":t.type="RestElement",this.toAssignable(t.argument,e),t.argument.type==="AssignmentPattern"&&this.raise(t.argument.start,"Rest elements cannot have a default value");break;case"AssignmentExpression":t.operator!=="="&&this.raise(t.left.end,"Only '=' operator can be used for specifying default value."),t.type="AssignmentPattern",delete t.operator,this.toAssignable(t.left,e);break;case"ParenthesizedExpression":this.toAssignable(t.expression,e,i);break;case"ChainExpression":this.raiseRecoverable(t.start,"Optional chaining cannot appear in left-hand side");break;case"MemberExpression":if(!e)break;default:this.raise(t.start,"Assigning to rvalue")}else i&&this.checkPatternErrors(i,!0);return t},At.toAssignableList=function(t,e){for(var i=t.length,s=0;s<i;s++){var r=t[s];r&&this.toAssignable(r,e)}if(i){var o=t[i-1];this.options.ecmaVersion===6&&e&&o&&o.type==="RestElement"&&o.argument.type!=="Identifier"&&this.unexpected(o.argument.start)}return t},At.parseSpread=function(t){var e=this.startNode();return this.next(),e.argument=this.parseMaybeAssign(!1,t),this.finishNode(e,"SpreadElement")},At.parseRestBinding=function(){var t=this.startNode();return this.next(),this.options.ecmaVersion===6&&this.type!==n.name&&this.unexpected(),t.argument=this.parseBindingAtom(),this.finishNode(t,"RestElement")},At.parseBindingAtom=function(){if(this.options.ecmaVersion>=6)switch(this.type){case n.bracketL:var t=this.startNode();return this.next(),t.elements=this.parseBindingList(n.bracketR,!0,!0),this.finishNode(t,"ArrayPattern");case n.braceL:return this.parseObj(!0)}return this.parseIdent()},At.parseBindingList=function(t,e,i,s){for(var r=[],o=!0;!this.eat(t);)if(o?o=!1:this.expect(n.comma),e&&this.type===n.comma)r.push(null);else{if(i&&this.afterTrailingComma(t))break;if(this.type===n.ellipsis){var u=this.parseRestBinding();this.parseBindingListItem(u),r.push(u),this.type===n.comma&&this.raiseRecoverable(this.start,"Comma is not permitted after the rest element"),this.expect(t);break}r.push(this.parseAssignableListItem(s))}return r},At.parseAssignableListItem=function(t){var e=this.parseMaybeDefault(this.start,this.startLoc);return this.parseBindingListItem(e),e},At.parseBindingListItem=function(t){return t},At.parseMaybeDefault=function(t,e,i){if(i=i||this.parseBindingAtom(),this.options.ecmaVersion<6||!this.eat(n.eq))return i;var s=this.startNodeAt(t,e);return s.left=i,s.right=this.parseMaybeAssign(),this.finishNode(s,"AssignmentPattern")},At.checkLValSimple=function(t,e,i){e===void 0&&(e=0);var s=e!==0;switch(t.type){case"Identifier":this.strict&&this.reservedWordsStrictBind.test(t.name)&&this.raiseRecoverable(t.start,(s?"Binding ":"Assigning to ")+t.name+" in strict mode"),s&&(e===2&&t.name==="let"&&this.raiseRecoverable(t.start,"let is disallowed as a lexically bound name"),i&&(Ut(i,t.name)&&this.raiseRecoverable(t.start,"Argument name clash"),i[t.name]=!0),e!==5&&this.declareName(t.name,e,t.start));break;case"ChainExpression":this.raiseRecoverable(t.start,"Optional chaining cannot appear in left-hand side");break;case"MemberExpression":s&&this.raiseRecoverable(t.start,"Binding member expression");break;case"ParenthesizedExpression":return s&&this.raiseRecoverable(t.start,"Binding parenthesized expression"),this.checkLValSimple(t.expression,e,i);default:this.raise(t.start,(s?"Binding":"Assigning to")+" rvalue")}},At.checkLValPattern=function(t,e,i){switch(e===void 0&&(e=0),t.type){case"ObjectPattern":for(var s=0,r=t.properties;s<r.length;s+=1){var o=r[s];this.checkLValInnerPattern(o,e,i)}break;case"ArrayPattern":for(var u=0,l=t.elements;u<l.length;u+=1){var f=l[u];f&&this.checkLValInnerPattern(f,e,i)}break;default:this.checkLValSimple(t,e,i)}},At.checkLValInnerPattern=function(t,e,i){switch(e===void 0&&(e=0),t.type){case"Property":this.checkLValInnerPattern(t.value,e,i);break;case"AssignmentPattern":this.checkLValPattern(t.left,e,i);break;case"RestElement":this.checkLValPattern(t.argument,e,i);break;default:this.checkLValPattern(t,e,i)}};var kt=d(function(t,e,i,s,r){this.token=t,this.isExpr=!!e,this.preserveSpace=!!i,this.override=s,this.generator=!!r},"acorn_TokContext"),it={b_stat:new kt("{",!1),b_expr:new kt("{",!0),b_tmpl:new kt("${",!1),p_stat:new kt("(",!1),p_expr:new kt("(",!0),q_tmpl:new kt("`",!0,!0,function(t){return t.tryReadTemplateToken()}),f_stat:new kt("function",!1),f_expr:new kt("function",!0),f_expr_gen:new kt("function",!0,!1,null,!0),f_gen:new kt("function",!1,!1,null,!0)},jt=nt.prototype;jt.initialContext=function(){return[it.b_stat]},jt.curContext=function(){return this.context[this.context.length-1]},jt.braceIsBlock=function(t){var e=this.curContext();return e===it.f_expr||e===it.f_stat||(t!==n.colon||e!==it.b_stat&&e!==it.b_expr?t===n._return||t===n.name&&this.exprAllowed?J.test(this.input.slice(this.lastTokEnd,this.start)):t===n._else||t===n.semi||t===n.eof||t===n.parenR||t===n.arrow||(t===n.braceL?e===it.b_stat:t!==n._var&&t!==n._const&&t!==n.name&&!this.exprAllowed):!e.isExpr)},jt.inGeneratorContext=function(){for(var t=this.context.length-1;t>=1;t--){var e=this.context[t];if(e.token==="function")return e.generator}return!1},jt.updateContext=function(t){var e,i=this.type;i.keyword&&t===n.dot?this.exprAllowed=!1:(e=i.updateContext)?e.call(this,t):this.exprAllowed=i.beforeExpr},jt.overrideContext=function(t){this.curContext()!==t&&(this.context[this.context.length-1]=t)},n.parenR.updateContext=n.braceR.updateContext=function(){if(this.context.length!==1){var t=this.context.pop();t===it.b_stat&&this.curContext().token==="function"&&(t=this.context.pop()),this.exprAllowed=!t.isExpr}else this.exprAllowed=!0},n.braceL.updateContext=function(t){this.context.push(this.braceIsBlock(t)?it.b_stat:it.b_expr),this.exprAllowed=!0},n.dollarBraceL.updateContext=function(){this.context.push(it.b_tmpl),this.exprAllowed=!0},n.parenL.updateContext=function(t){var e=t===n._if||t===n._for||t===n._with||t===n._while;this.context.push(e?it.p_stat:it.p_expr),this.exprAllowed=!0},n.incDec.updateContext=function(){},n._function.updateContext=n._class.updateContext=function(t){!t.beforeExpr||t===n._else||t===n.semi&&this.curContext()!==it.p_stat||t===n._return&&J.test(this.input.slice(this.lastTokEnd,this.start))||(t===n.colon||t===n.braceL)&&this.curContext()===it.b_stat?this.context.push(it.f_stat):this.context.push(it.f_expr),this.exprAllowed=!1},n.colon.updateContext=function(){this.curContext().token==="function"&&this.context.pop(),this.exprAllowed=!0},n.backQuote.updateContext=function(){this.curContext()===it.q_tmpl?this.context.pop():this.context.push(it.q_tmpl),this.exprAllowed=!1},n.star.updateContext=function(t){if(t===n._function){var e=this.context.length-1;this.context[e]===it.f_expr?this.context[e]=it.f_expr_gen:this.context[e]=it.f_gen}this.exprAllowed=!0},n.name.updateContext=function(t){var e=!1;this.options.ecmaVersion>=6&&t!==n.dot&&(this.value==="of"&&!this.exprAllowed||this.value==="yield"&&this.inGeneratorContext())&&(e=!0),this.exprAllowed=e};var F=nt.prototype;function je(t){return t.type==="Identifier"||t.type==="ParenthesizedExpression"&&je(t.expression)}d(je,"isLocalVariableAccess");function we(t){return t.type==="MemberExpression"&&t.property.type==="PrivateIdentifier"||t.type==="ChainExpression"&&we(t.expression)||t.type==="ParenthesizedExpression"&&we(t.expression)}d(we,"isPrivateFieldAccess"),F.checkPropClash=function(t,e,i){if(!(this.options.ecmaVersion>=9&&t.type==="SpreadElement"||this.options.ecmaVersion>=6&&(t.computed||t.method||t.shorthand))){var s,r=t.key;switch(r.type){case"Identifier":s=r.name;break;case"Literal":s=String(r.value);break;default:return}var o=t.kind;if(this.options.ecmaVersion>=6)s==="__proto__"&&o==="init"&&(e.proto&&(i?i.doubleProto<0&&(i.doubleProto=r.start):this.raiseRecoverable(r.start,"Redefinition of __proto__ property")),e.proto=!0);else{var u=e[s="$"+s];u?(o==="init"?this.strict&&u.init||u.get||u.set:u.init||u[o])&&this.raiseRecoverable(r.start,"Redefinition of property"):u=e[s]={init:!1,get:!1,set:!1},u[o]=!0}}},F.parseExpression=function(t,e){var i=this.start,s=this.startLoc,r=this.parseMaybeAssign(t,e);if(this.type===n.comma){var o=this.startNodeAt(i,s);for(o.expressions=[r];this.eat(n.comma);)o.expressions.push(this.parseMaybeAssign(t,e));return this.finishNode(o,"SequenceExpression")}return r},F.parseMaybeAssign=function(t,e,i){if(this.isContextual("yield")){if(this.inGenerator)return this.parseYield(t);this.exprAllowed=!1}var s=!1,r=-1,o=-1,u=-1;e?(r=e.parenthesizedAssign,o=e.trailingComma,u=e.doubleProto,e.parenthesizedAssign=e.trailingComma=-1):(e=new Xt,s=!0);var l=this.start,f=this.startLoc;this.type!==n.parenL&&this.type!==n.name||(this.potentialArrowAt=this.start,this.potentialArrowInForAwait=t==="await");var x=this.parseMaybeConditional(t,e);if(i&&(x=i.call(this,x,l,f)),this.type.isAssign){var g=this.startNodeAt(l,f);return g.operator=this.value,this.type===n.eq&&(x=this.toAssignable(x,!1,e)),s||(e.parenthesizedAssign=e.trailingComma=e.doubleProto=-1),e.shorthandAssign>=x.start&&(e.shorthandAssign=-1),this.type===n.eq?this.checkLValPattern(x):this.checkLValSimple(x),g.left=x,this.next(),g.right=this.parseMaybeAssign(t),u>-1&&(e.doubleProto=u),this.finishNode(g,"AssignmentExpression")}return s&&this.checkExpressionErrors(e,!0),r>-1&&(e.parenthesizedAssign=r),o>-1&&(e.trailingComma=o),x},F.parseMaybeConditional=function(t,e){var i=this.start,s=this.startLoc,r=this.parseExprOps(t,e);if(this.checkExpressionErrors(e))return r;if(this.eat(n.question)){var o=this.startNodeAt(i,s);return o.test=r,o.consequent=this.parseMaybeAssign(),this.expect(n.colon),o.alternate=this.parseMaybeAssign(t),this.finishNode(o,"ConditionalExpression")}return r},F.parseExprOps=function(t,e){var i=this.start,s=this.startLoc,r=this.parseMaybeUnary(e,!1,!1,t);return this.checkExpressionErrors(e)||r.start===i&&r.type==="ArrowFunctionExpression"?r:this.parseExprOp(r,i,s,-1,t)},F.parseExprOp=function(t,e,i,s,r){var o=this.type.binop;if(o!=null&&(!r||this.type!==n._in)&&o>s){var u=this.type===n.logicalOR||this.type===n.logicalAND,l=this.type===n.coalesce;l&&(o=n.logicalAND.binop);var f=this.value;this.next();var x=this.start,g=this.startLoc,_=this.parseExprOp(this.parseMaybeUnary(null,!1,!1,r),x,g,o,r),y=this.buildBinary(e,i,t,_,f,u||l);return(u&&this.type===n.coalesce||l&&(this.type===n.logicalOR||this.type===n.logicalAND))&&this.raiseRecoverable(this.start,"Logical expressions and coalesce expressions cannot be mixed. Wrap either by parentheses"),this.parseExprOp(y,e,i,s,r)}return t},F.buildBinary=function(t,e,i,s,r,o){s.type==="PrivateIdentifier"&&this.raise(s.start,"Private identifier can only be left side of binary expression");var u=this.startNodeAt(t,e);return u.left=i,u.operator=r,u.right=s,this.finishNode(u,o?"LogicalExpression":"BinaryExpression")},F.parseMaybeUnary=function(t,e,i,s){var r,o=this.start,u=this.startLoc;if(this.isContextual("await")&&this.canAwait)r=this.parseAwait(s),e=!0;else if(this.type.prefix){var l=this.startNode(),f=this.type===n.incDec;l.operator=this.value,l.prefix=!0,this.next(),l.argument=this.parseMaybeUnary(null,!0,f,s),this.checkExpressionErrors(t,!0),f?this.checkLValSimple(l.argument):this.strict&&l.operator==="delete"&&je(l.argument)?this.raiseRecoverable(l.start,"Deleting local variable in strict mode"):l.operator==="delete"&&we(l.argument)?this.raiseRecoverable(l.start,"Private fields can not be deleted"):e=!0,r=this.finishNode(l,f?"UpdateExpression":"UnaryExpression")}else if(e||this.type!==n.privateId){if(r=this.parseExprSubscripts(t,s),this.checkExpressionErrors(t))return r;for(;this.type.postfix&&!this.canInsertSemicolon();){var x=this.startNodeAt(o,u);x.operator=this.value,x.prefix=!1,x.argument=r,this.checkLValSimple(r),this.next(),r=this.finishNode(x,"UpdateExpression")}}else(s||this.privateNameStack.length===0)&&this.options.checkPrivateFields&&this.unexpected(),r=this.parsePrivateIdent(),this.type!==n._in&&this.unexpected();return i||!this.eat(n.starstar)?r:e?void this.unexpected(this.lastTokStart):this.buildBinary(o,u,r,this.parseMaybeUnary(null,!1,!1,s),"**",!1)},F.parseExprSubscripts=function(t,e){var i=this.start,s=this.startLoc,r=this.parseExprAtom(t,e);if(r.type==="ArrowFunctionExpression"&&this.input.slice(this.lastTokStart,this.lastTokEnd)!==")")return r;var o=this.parseSubscripts(r,i,s,!1,e);return t&&o.type==="MemberExpression"&&(t.parenthesizedAssign>=o.start&&(t.parenthesizedAssign=-1),t.parenthesizedBind>=o.start&&(t.parenthesizedBind=-1),t.trailingComma>=o.start&&(t.trailingComma=-1)),o},F.parseSubscripts=function(t,e,i,s,r){for(var o=this.options.ecmaVersion>=8&&t.type==="Identifier"&&t.name==="async"&&this.lastTokEnd===t.end&&!this.canInsertSemicolon()&&t.end-t.start===5&&this.potentialArrowAt===t.start,u=!1;;){var l=this.parseSubscript(t,e,i,s,o,u,r);if(l.optional&&(u=!0),l===t||l.type==="ArrowFunctionExpression"){if(u){var f=this.startNodeAt(e,i);f.expression=l,l=this.finishNode(f,"ChainExpression")}return l}t=l}},F.shouldParseAsyncArrow=function(){return!this.canInsertSemicolon()&&this.eat(n.arrow)},F.parseSubscriptAsyncArrow=function(t,e,i,s){return this.parseArrowExpression(this.startNodeAt(t,e),i,!0,s)},F.parseSubscript=function(t,e,i,s,r,o,u){var l=this.options.ecmaVersion>=11,f=l&&this.eat(n.questionDot);s&&f&&this.raise(this.lastTokStart,"Optional chaining cannot appear in the callee of new expressions");var x=this.eat(n.bracketL);if(x||f&&this.type!==n.parenL&&this.type!==n.backQuote||this.eat(n.dot)){var g=this.startNodeAt(e,i);g.object=t,x?(g.property=this.parseExpression(),this.expect(n.bracketR)):this.type===n.privateId&&t.type!=="Super"?g.property=this.parsePrivateIdent():g.property=this.parseIdent(this.options.allowReserved!=="never"),g.computed=!!x,l&&(g.optional=f),t=this.finishNode(g,"MemberExpression")}else if(!s&&this.eat(n.parenL)){var _=new Xt,y=this.yieldPos,T=this.awaitPos,q=this.awaitIdentPos;this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0;var B=this.parseExprList(n.parenR,this.options.ecmaVersion>=8,!1,_);if(r&&!f&&this.shouldParseAsyncArrow())return this.checkPatternErrors(_,!1),this.checkYieldAwaitInDefaultParams(),this.awaitIdentPos>0&&this.raise(this.awaitIdentPos,"Cannot use 'await' as identifier inside an async function"),this.yieldPos=y,this.awaitPos=T,this.awaitIdentPos=q,this.parseSubscriptAsyncArrow(e,i,B,u);this.checkExpressionErrors(_,!0),this.yieldPos=y||this.yieldPos,this.awaitPos=T||this.awaitPos,this.awaitIdentPos=q||this.awaitIdentPos;var K=this.startNodeAt(e,i);K.callee=t,K.arguments=B,l&&(K.optional=f),t=this.finishNode(K,"CallExpression")}else if(this.type===n.backQuote){(f||o)&&this.raise(this.start,"Optional chaining cannot appear in the tag of tagged template expressions");var H=this.startNodeAt(e,i);H.tag=t,H.quasi=this.parseTemplate({isTagged:!0}),t=this.finishNode(H,"TaggedTemplateExpression")}return t},F.parseExprAtom=function(t,e,i){this.type===n.slash&&this.readRegexp();var s,r=this.potentialArrowAt===this.start;switch(this.type){case n._super:return this.allowSuper||this.raise(this.start,"'super' keyword outside a method"),s=this.startNode(),this.next(),this.type!==n.parenL||this.allowDirectSuper||this.raise(s.start,"super() call outside constructor of a subclass"),this.type!==n.dot&&this.type!==n.bracketL&&this.type!==n.parenL&&this.unexpected(),this.finishNode(s,"Super");case n._this:return s=this.startNode(),this.next(),this.finishNode(s,"ThisExpression");case n.name:var o=this.start,u=this.startLoc,l=this.containsEsc,f=this.parseIdent(!1);if(this.options.ecmaVersion>=8&&!l&&f.name==="async"&&!this.canInsertSemicolon()&&this.eat(n._function))return this.overrideContext(it.f_expr),this.parseFunction(this.startNodeAt(o,u),0,!1,!0,e);if(r&&!this.canInsertSemicolon()){if(this.eat(n.arrow))return this.parseArrowExpression(this.startNodeAt(o,u),[f],!1,e);if(this.options.ecmaVersion>=8&&f.name==="async"&&this.type===n.name&&!l&&(!this.potentialArrowInForAwait||this.value!=="of"||this.containsEsc))return f=this.parseIdent(!1),!this.canInsertSemicolon()&&this.eat(n.arrow)||this.unexpected(),this.parseArrowExpression(this.startNodeAt(o,u),[f],!0,e)}return f;case n.regexp:var x=this.value;return(s=this.parseLiteral(x.value)).regex={pattern:x.pattern,flags:x.flags},s;case n.num:case n.string:return this.parseLiteral(this.value);case n._null:case n._true:case n._false:return(s=this.startNode()).value=this.type===n._null?null:this.type===n._true,s.raw=this.type.keyword,this.next(),this.finishNode(s,"Literal");case n.parenL:var g=this.start,_=this.parseParenAndDistinguishExpression(r,e);return t&&(t.parenthesizedAssign<0&&!this.isSimpleAssignTarget(_)&&(t.parenthesizedAssign=g),t.parenthesizedBind<0&&(t.parenthesizedBind=g)),_;case n.bracketL:return s=this.startNode(),this.next(),s.elements=this.parseExprList(n.bracketR,!0,!0,t),this.finishNode(s,"ArrayExpression");case n.braceL:return this.overrideContext(it.b_expr),this.parseObj(!1,t);case n._function:return s=this.startNode(),this.next(),this.parseFunction(s,0);case n._class:return this.parseClass(this.startNode(),!1);case n._new:return this.parseNew();case n.backQuote:return this.parseTemplate();case n._import:return this.options.ecmaVersion>=11?this.parseExprImport(i):this.unexpected();default:return this.parseExprAtomDefault()}},F.parseExprAtomDefault=function(){this.unexpected()},F.parseExprImport=function(t){var e=this.startNode();if(this.containsEsc&&this.raiseRecoverable(this.start,"Escape sequence in keyword import"),this.next(),this.type===n.parenL&&!t)return this.parseDynamicImport(e);if(this.type===n.dot){var i=this.startNodeAt(e.start,e.loc&&e.loc.start);return i.name="import",e.meta=this.finishNode(i,"Identifier"),this.parseImportMeta(e)}this.unexpected()},F.parseDynamicImport=function(t){if(this.next(),t.source=this.parseMaybeAssign(),this.options.ecmaVersion>=16)this.eat(n.parenR)?t.options=null:(this.expect(n.comma),this.afterTrailingComma(n.parenR)?t.options=null:(t.options=this.parseMaybeAssign(),this.eat(n.parenR)||(this.expect(n.comma),this.afterTrailingComma(n.parenR)||this.unexpected())));else if(!this.eat(n.parenR)){var e=this.start;this.eat(n.comma)&&this.eat(n.parenR)?this.raiseRecoverable(e,"Trailing comma is not allowed in import()"):this.unexpected(e)}return this.finishNode(t,"ImportExpression")},F.parseImportMeta=function(t){this.next();var e=this.containsEsc;return t.property=this.parseIdent(!0),t.property.name!=="meta"&&this.raiseRecoverable(t.property.start,"The only valid meta property for import is 'import.meta'"),e&&this.raiseRecoverable(t.start,"'import.meta' must not contain escaped characters"),this.options.sourceType==="module"||this.options.allowImportExportEverywhere||this.raiseRecoverable(t.start,"Cannot use 'import.meta' outside a module"),this.finishNode(t,"MetaProperty")},F.parseLiteral=function(t){var e=this.startNode();return e.value=t,e.raw=this.input.slice(this.start,this.end),e.raw.charCodeAt(e.raw.length-1)===110&&(e.bigint=e.value!=null?e.value.toString():e.raw.slice(0,-1).replace(/_/g,"")),this.next(),this.finishNode(e,"Literal")},F.parseParenExpression=function(){this.expect(n.parenL);var t=this.parseExpression();return this.expect(n.parenR),t},F.shouldParseArrow=function(t){return!this.canInsertSemicolon()},F.parseParenAndDistinguishExpression=function(t,e){var i,s=this.start,r=this.startLoc,o=this.options.ecmaVersion>=8;if(this.options.ecmaVersion>=6){this.next();var u,l=this.start,f=this.startLoc,x=[],g=!0,_=!1,y=new Xt,T=this.yieldPos,q=this.awaitPos;for(this.yieldPos=0,this.awaitPos=0;this.type!==n.parenR;){if(g?g=!1:this.expect(n.comma),o&&this.afterTrailingComma(n.parenR,!0)){_=!0;break}if(this.type===n.ellipsis){u=this.start,x.push(this.parseParenItem(this.parseRestBinding())),this.type===n.comma&&this.raiseRecoverable(this.start,"Comma is not permitted after the rest element");break}x.push(this.parseMaybeAssign(!1,y,this.parseParenItem))}var B=this.lastTokEnd,K=this.lastTokEndLoc;if(this.expect(n.parenR),t&&this.shouldParseArrow(x)&&this.eat(n.arrow))return this.checkPatternErrors(y,!1),this.checkYieldAwaitInDefaultParams(),this.yieldPos=T,this.awaitPos=q,this.parseParenArrowList(s,r,x,e);x.length&&!_||this.unexpected(this.lastTokStart),u&&this.unexpected(u),this.checkExpressionErrors(y,!0),this.yieldPos=T||this.yieldPos,this.awaitPos=q||this.awaitPos,x.length>1?((i=this.startNodeAt(l,f)).expressions=x,this.finishNodeAt(i,"SequenceExpression",B,K)):i=x[0]}else i=this.parseParenExpression();if(this.options.preserveParens){var H=this.startNodeAt(s,r);return H.expression=i,this.finishNode(H,"ParenthesizedExpression")}return i},F.parseParenItem=function(t){return t},F.parseParenArrowList=function(t,e,i,s){return this.parseArrowExpression(this.startNodeAt(t,e),i,!1,s)};var $e=[];F.parseNew=function(){this.containsEsc&&this.raiseRecoverable(this.start,"Escape sequence in keyword new");var t=this.startNode();if(this.next(),this.options.ecmaVersion>=6&&this.type===n.dot){var e=this.startNodeAt(t.start,t.loc&&t.loc.start);e.name="new",t.meta=this.finishNode(e,"Identifier"),this.next();var i=this.containsEsc;return t.property=this.parseIdent(!0),t.property.name!=="target"&&this.raiseRecoverable(t.property.start,"The only valid meta property for new is 'new.target'"),i&&this.raiseRecoverable(t.start,"'new.target' must not contain escaped characters"),this.allowNewDotTarget||this.raiseRecoverable(t.start,"'new.target' can only be used in functions and class static block"),this.finishNode(t,"MetaProperty")}var s=this.start,r=this.startLoc;return t.callee=this.parseSubscripts(this.parseExprAtom(null,!1,!0),s,r,!0,!1),this.eat(n.parenL)?t.arguments=this.parseExprList(n.parenR,this.options.ecmaVersion>=8,!1):t.arguments=$e,this.finishNode(t,"NewExpression")},F.parseTemplateElement=function(t){var e=t.isTagged,i=this.startNode();return this.type===n.invalidTemplate?(e||this.raiseRecoverable(this.start,"Bad escape sequence in untagged template literal"),i.value={raw:this.value.replace(/\r\n?/g,`
|
|
10
|
+
`),cooked:null}):i.value={raw:this.input.slice(this.start,this.end).replace(/\r\n?/g,`
|
|
11
|
+
`),cooked:this.value},this.next(),i.tail=this.type===n.backQuote,this.finishNode(i,"TemplateElement")},F.parseTemplate=function(t){t===void 0&&(t={});var e=t.isTagged;e===void 0&&(e=!1);var i=this.startNode();this.next(),i.expressions=[];var s=this.parseTemplateElement({isTagged:e});for(i.quasis=[s];!s.tail;)this.type===n.eof&&this.raise(this.pos,"Unterminated template literal"),this.expect(n.dollarBraceL),i.expressions.push(this.parseExpression()),this.expect(n.braceR),i.quasis.push(s=this.parseTemplateElement({isTagged:e}));return this.next(),this.finishNode(i,"TemplateLiteral")},F.isAsyncProp=function(t){return!t.computed&&t.key.type==="Identifier"&&t.key.name==="async"&&(this.type===n.name||this.type===n.num||this.type===n.string||this.type===n.bracketL||this.type.keyword||this.options.ecmaVersion>=9&&this.type===n.star)&&!J.test(this.input.slice(this.lastTokEnd,this.start))},F.parseObj=function(t,e){var i=this.startNode(),s=!0,r={};for(i.properties=[],this.next();!this.eat(n.braceR);){if(s)s=!1;else if(this.expect(n.comma),this.options.ecmaVersion>=5&&this.afterTrailingComma(n.braceR))break;var o=this.parseProperty(t,e);t||this.checkPropClash(o,r,e),i.properties.push(o)}return this.finishNode(i,t?"ObjectPattern":"ObjectExpression")},F.parseProperty=function(t,e){var i,s,r,o,u=this.startNode();if(this.options.ecmaVersion>=9&&this.eat(n.ellipsis))return t?(u.argument=this.parseIdent(!1),this.type===n.comma&&this.raiseRecoverable(this.start,"Comma is not permitted after the rest element"),this.finishNode(u,"RestElement")):(u.argument=this.parseMaybeAssign(!1,e),this.type===n.comma&&e&&e.trailingComma<0&&(e.trailingComma=this.start),this.finishNode(u,"SpreadElement"));this.options.ecmaVersion>=6&&(u.method=!1,u.shorthand=!1,(t||e)&&(r=this.start,o=this.startLoc),t||(i=this.eat(n.star)));var l=this.containsEsc;return this.parsePropertyName(u),!t&&!l&&this.options.ecmaVersion>=8&&!i&&this.isAsyncProp(u)?(s=!0,i=this.options.ecmaVersion>=9&&this.eat(n.star),this.parsePropertyName(u)):s=!1,this.parsePropertyValue(u,t,i,s,r,o,e,l),this.finishNode(u,"Property")},F.parseGetterSetter=function(t){var e=t.key.name;this.parsePropertyName(t),t.value=this.parseMethod(!1),t.kind=e;var i=t.kind==="get"?0:1;if(t.value.params.length!==i){var s=t.value.start;t.kind==="get"?this.raiseRecoverable(s,"getter should have no params"):this.raiseRecoverable(s,"setter should have exactly one param")}else t.kind==="set"&&t.value.params[0].type==="RestElement"&&this.raiseRecoverable(t.value.params[0].start,"Setter cannot use rest params")},F.parsePropertyValue=function(t,e,i,s,r,o,u,l){(i||s)&&this.type===n.colon&&this.unexpected(),this.eat(n.colon)?(t.value=e?this.parseMaybeDefault(this.start,this.startLoc):this.parseMaybeAssign(!1,u),t.kind="init"):this.options.ecmaVersion>=6&&this.type===n.parenL?(e&&this.unexpected(),t.method=!0,t.value=this.parseMethod(i,s),t.kind="init"):e||l||!(this.options.ecmaVersion>=5)||t.computed||t.key.type!=="Identifier"||t.key.name!=="get"&&t.key.name!=="set"||this.type===n.comma||this.type===n.braceR||this.type===n.eq?this.options.ecmaVersion>=6&&!t.computed&&t.key.type==="Identifier"?((i||s)&&this.unexpected(),this.checkUnreserved(t.key),t.key.name!=="await"||this.awaitIdentPos||(this.awaitIdentPos=r),e?t.value=this.parseMaybeDefault(r,o,this.copyNode(t.key)):this.type===n.eq&&u?(u.shorthandAssign<0&&(u.shorthandAssign=this.start),t.value=this.parseMaybeDefault(r,o,this.copyNode(t.key))):t.value=this.copyNode(t.key),t.kind="init",t.shorthand=!0):this.unexpected():((i||s)&&this.unexpected(),this.parseGetterSetter(t))},F.parsePropertyName=function(t){if(this.options.ecmaVersion>=6){if(this.eat(n.bracketL))return t.computed=!0,t.key=this.parseMaybeAssign(),this.expect(n.bracketR),t.key;t.computed=!1}return t.key=this.type===n.num||this.type===n.string?this.parseExprAtom():this.parseIdent(this.options.allowReserved!=="never")},F.initFunction=function(t){t.id=null,this.options.ecmaVersion>=6&&(t.generator=t.expression=!1),this.options.ecmaVersion>=8&&(t.async=!1)},F.parseMethod=function(t,e,i){var s=this.startNode(),r=this.yieldPos,o=this.awaitPos,u=this.awaitIdentPos;return this.initFunction(s),this.options.ecmaVersion>=6&&(s.generator=t),this.options.ecmaVersion>=8&&(s.async=!!e),this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,this.enterScope(64|pe(e,s.generator)|(i?128:0)),this.expect(n.parenL),s.params=this.parseBindingList(n.parenR,!1,this.options.ecmaVersion>=8),this.checkYieldAwaitInDefaultParams(),this.parseFunctionBody(s,!1,!0,!1),this.yieldPos=r,this.awaitPos=o,this.awaitIdentPos=u,this.finishNode(s,"FunctionExpression")},F.parseArrowExpression=function(t,e,i,s){var r=this.yieldPos,o=this.awaitPos,u=this.awaitIdentPos;return this.enterScope(16|pe(i,!1)),this.initFunction(t),this.options.ecmaVersion>=8&&(t.async=!!i),this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,t.params=this.toAssignableList(e,!0),this.parseFunctionBody(t,!0,!1,s),this.yieldPos=r,this.awaitPos=o,this.awaitIdentPos=u,this.finishNode(t,"ArrowFunctionExpression")},F.parseFunctionBody=function(t,e,i,s){var r=e&&this.type!==n.braceL,o=this.strict,u=!1;if(r)t.body=this.parseMaybeAssign(s),t.expression=!0,this.checkParams(t,!1);else{var l=this.options.ecmaVersion>=7&&!this.isSimpleParamList(t.params);o&&!l||(u=this.strictDirective(this.end))&&l&&this.raiseRecoverable(t.start,"Illegal 'use strict' directive in function with non-simple parameter list");var f=this.labels;this.labels=[],u&&(this.strict=!0),this.checkParams(t,!o&&!u&&!e&&!i&&this.isSimpleParamList(t.params)),this.strict&&t.id&&this.checkLValSimple(t.id,5),t.body=this.parseBlock(!1,void 0,u&&!o),t.expression=!1,this.adaptDirectivePrologue(t.body.body),this.labels=f}this.exitScope()},F.isSimpleParamList=function(t){for(var e=0,i=t;e<i.length;e+=1)if(i[e].type!=="Identifier")return!1;return!0},F.checkParams=function(t,e){for(var i=Object.create(null),s=0,r=t.params;s<r.length;s+=1){var o=r[s];this.checkLValInnerPattern(o,1,e?null:i)}},F.parseExprList=function(t,e,i,s){for(var r=[],o=!0;!this.eat(t);){if(o)o=!1;else if(this.expect(n.comma),e&&this.afterTrailingComma(t))break;var u=void 0;i&&this.type===n.comma?u=null:this.type===n.ellipsis?(u=this.parseSpread(s),s&&this.type===n.comma&&s.trailingComma<0&&(s.trailingComma=this.start)):u=this.parseMaybeAssign(!1,s),r.push(u)}return r},F.checkUnreserved=function(t){var e=t.start,i=t.end,s=t.name;this.inGenerator&&s==="yield"&&this.raiseRecoverable(e,"Cannot use 'yield' as identifier inside a generator"),this.inAsync&&s==="await"&&this.raiseRecoverable(e,"Cannot use 'await' as identifier inside an async function"),this.currentThisScope().flags&ce||s!=="arguments"||this.raiseRecoverable(e,"Cannot use 'arguments' in class field initializer"),!this.inClassStaticBlock||s!=="arguments"&&s!=="await"||this.raise(e,"Cannot use "+s+" in class static initialization block"),this.keywords.test(s)&&this.raise(e,"Unexpected keyword '"+s+"'"),this.options.ecmaVersion<6&&this.input.slice(e,i).indexOf("\\")!==-1||(this.strict?this.reservedWordsStrict:this.reservedWords).test(s)&&(this.inAsync||s!=="await"||this.raiseRecoverable(e,"Cannot use keyword 'await' outside an async function"),this.raiseRecoverable(e,"The keyword '"+s+"' is reserved"))},F.parseIdent=function(t){var e=this.parseIdentNode();return this.next(!!t),this.finishNode(e,"Identifier"),t||(this.checkUnreserved(e),e.name!=="await"||this.awaitIdentPos||(this.awaitIdentPos=e.start)),e},F.parseIdentNode=function(){var t=this.startNode();return this.type===n.name?t.name=this.value:this.type.keyword?(t.name=this.type.keyword,t.name!=="class"&&t.name!=="function"||this.lastTokEnd===this.lastTokStart+1&&this.input.charCodeAt(this.lastTokStart)===46||this.context.pop(),this.type=n.name):this.unexpected(),t},F.parsePrivateIdent=function(){var t=this.startNode();return this.type===n.privateId?t.name=this.value:this.unexpected(),this.next(),this.finishNode(t,"PrivateIdentifier"),this.options.checkPrivateFields&&(this.privateNameStack.length===0?this.raise(t.start,"Private field '#"+t.name+"' must be declared in an enclosing class"):this.privateNameStack[this.privateNameStack.length-1].used.push(t)),t},F.parseYield=function(t){this.yieldPos||(this.yieldPos=this.start);var e=this.startNode();return this.next(),this.type===n.semi||this.canInsertSemicolon()||this.type!==n.star&&!this.type.startsExpr?(e.delegate=!1,e.argument=null):(e.delegate=this.eat(n.star),e.argument=this.parseMaybeAssign(t)),this.finishNode(e,"YieldExpression")},F.parseAwait=function(t){this.awaitPos||(this.awaitPos=this.start);var e=this.startNode();return this.next(),e.argument=this.parseMaybeUnary(null,!0,!1,t),this.finishNode(e,"AwaitExpression")};var Ht=nt.prototype;Ht.raise=function(t,e){var i=Oe(this.input,t);e+=" ("+i.line+":"+i.column+")",this.sourceFile&&(e+=" in "+this.sourceFile);var s=new SyntaxError(e);throw s.pos=t,s.loc=i,s.raisedAt=this.pos,s},Ht.raiseRecoverable=Ht.raise,Ht.curPosition=function(){if(this.options.locations)return new Mt(this.curLine,this.pos-this.lineStart)};var Pt=nt.prototype,We=d(function(t){this.flags=t,this.var=[],this.lexical=[],this.functions=[]},"acorn_Scope");Pt.enterScope=function(t){this.scopeStack.push(new We(t))},Pt.exitScope=function(){this.scopeStack.pop()},Pt.treatFunctionsAsVarInScope=function(t){return 2&t.flags||!this.inModule&&1&t.flags},Pt.declareName=function(t,e,i){var s=!1;if(e===2){var r=this.currentScope();s=r.lexical.indexOf(t)>-1||r.functions.indexOf(t)>-1||r.var.indexOf(t)>-1,r.lexical.push(t),this.inModule&&1&r.flags&&delete this.undefinedExports[t]}else if(e===4)this.currentScope().lexical.push(t);else if(e===3){var o=this.currentScope();s=this.treatFunctionsAsVar?o.lexical.indexOf(t)>-1:o.lexical.indexOf(t)>-1||o.var.indexOf(t)>-1,o.functions.push(t)}else for(var u=this.scopeStack.length-1;u>=0;--u){var l=this.scopeStack[u];if(l.lexical.indexOf(t)>-1&&!(32&l.flags&&l.lexical[0]===t)||!this.treatFunctionsAsVarInScope(l)&&l.functions.indexOf(t)>-1){s=!0;break}if(l.var.push(t),this.inModule&&1&l.flags&&delete this.undefinedExports[t],l.flags&ce)break}s&&this.raiseRecoverable(i,"Identifier '"+t+"' has already been declared")},Pt.checkLocalExport=function(t){this.scopeStack[0].lexical.indexOf(t.name)===-1&&this.scopeStack[0].var.indexOf(t.name)===-1&&(this.undefinedExports[t.name]=t)},Pt.currentScope=function(){return this.scopeStack[this.scopeStack.length-1]},Pt.currentVarScope=function(){for(var t=this.scopeStack.length-1;;t--){var e=this.scopeStack[t];if(771&e.flags)return e}},Pt.currentThisScope=function(){for(var t=this.scopeStack.length-1;;t--){var e=this.scopeStack[t];if(771&e.flags&&!(16&e.flags))return e}};var Ft=d(function(t,e,i){this.type="",this.start=e,this.end=0,t.options.locations&&(this.loc=new vt(t,i)),t.options.directSourceFile&&(this.sourceFile=t.options.directSourceFile),t.options.ranges&&(this.range=[e,0])},"acorn_Node"),$t=nt.prototype;function Se(t,e,i,s){return t.type=e,t.end=i,this.options.locations&&(t.loc.end=s),this.options.ranges&&(t.range[1]=i),t}d(Se,"finishNodeAt"),$t.startNode=function(){return new Ft(this,this.start,this.startLoc)},$t.startNodeAt=function(t,e){return new Ft(this,t,e)},$t.finishNode=function(t,e){return Se.call(this,t,e,this.lastTokEnd,this.lastTokEndLoc)},$t.finishNodeAt=function(t,e,i,s){return Se.call(this,t,e,i,s)},$t.copyNode=function(t){var e=new Ft(this,t.start,this.startLoc);for(var i in t)e[i]=t[i];return e};var Ge="ASCII ASCII_Hex_Digit AHex Alphabetic Alpha Any Assigned Bidi_Control Bidi_C Bidi_Mirrored Bidi_M Case_Ignorable CI Cased Changes_When_Casefolded CWCF Changes_When_Casemapped CWCM Changes_When_Lowercased CWL Changes_When_NFKC_Casefolded CWKCF Changes_When_Titlecased CWT Changes_When_Uppercased CWU Dash Default_Ignorable_Code_Point DI Deprecated Dep Diacritic Dia Emoji Emoji_Component Emoji_Modifier Emoji_Modifier_Base Emoji_Presentation Extender Ext Grapheme_Base Gr_Base Grapheme_Extend Gr_Ext Hex_Digit Hex IDS_Binary_Operator IDSB IDS_Trinary_Operator IDST ID_Continue IDC ID_Start IDS Ideographic Ideo Join_Control Join_C Logical_Order_Exception LOE Lowercase Lower Math Noncharacter_Code_Point NChar Pattern_Syntax Pat_Syn Pattern_White_Space Pat_WS Quotation_Mark QMark Radical Regional_Indicator RI Sentence_Terminal STerm Soft_Dotted SD Terminal_Punctuation Term Unified_Ideograph UIdeo Uppercase Upper Variation_Selector VS White_Space space XID_Continue XIDC XID_Start XIDS",fe=Ge+" Extended_Pictographic",Ie=fe+" EBase EComp EMod EPres ExtPict",ci={9:Ge,10:fe,11:fe,12:Ie,13:Ie,14:Ie},pi={9:"",10:"",11:"",12:"",13:"",14:"Basic_Emoji Emoji_Keycap_Sequence RGI_Emoji_Modifier_Sequence RGI_Emoji_Flag_Sequence RGI_Emoji_Tag_Sequence RGI_Emoji_ZWJ_Sequence RGI_Emoji"},De="Cased_Letter LC Close_Punctuation Pe Connector_Punctuation Pc Control Cc cntrl Currency_Symbol Sc Dash_Punctuation Pd Decimal_Number Nd digit Enclosing_Mark Me Final_Punctuation Pf Format Cf Initial_Punctuation Pi Letter L Letter_Number Nl Line_Separator Zl Lowercase_Letter Ll Mark M Combining_Mark Math_Symbol Sm Modifier_Letter Lm Modifier_Symbol Sk Nonspacing_Mark Mn Number N Open_Punctuation Ps Other C Other_Letter Lo Other_Number No Other_Punctuation Po Other_Symbol So Paragraph_Separator Zp Private_Use Co Punctuation P punct Separator Z Space_Separator Zs Spacing_Mark Mc Surrogate Cs Symbol S Titlecase_Letter Lt Unassigned Cn Uppercase_Letter Lu",qe="Adlam Adlm Ahom Anatolian_Hieroglyphs Hluw Arabic Arab Armenian Armn Avestan Avst Balinese Bali Bamum Bamu Bassa_Vah Bass Batak Batk Bengali Beng Bhaiksuki Bhks Bopomofo Bopo Brahmi Brah Braille Brai Buginese Bugi Buhid Buhd Canadian_Aboriginal Cans Carian Cari Caucasian_Albanian Aghb Chakma Cakm Cham Cham Cherokee Cher Common Zyyy Coptic Copt Qaac Cuneiform Xsux Cypriot Cprt Cyrillic Cyrl Deseret Dsrt Devanagari Deva Duployan Dupl Egyptian_Hieroglyphs Egyp Elbasan Elba Ethiopic Ethi Georgian Geor Glagolitic Glag Gothic Goth Grantha Gran Greek Grek Gujarati Gujr Gurmukhi Guru Han Hani Hangul Hang Hanunoo Hano Hatran Hatr Hebrew Hebr Hiragana Hira Imperial_Aramaic Armi Inherited Zinh Qaai Inscriptional_Pahlavi Phli Inscriptional_Parthian Prti Javanese Java Kaithi Kthi Kannada Knda Katakana Kana Kayah_Li Kali Kharoshthi Khar Khmer Khmr Khojki Khoj Khudawadi Sind Lao Laoo Latin Latn Lepcha Lepc Limbu Limb Linear_A Lina Linear_B Linb Lisu Lisu Lycian Lyci Lydian Lydi Mahajani Mahj Malayalam Mlym Mandaic Mand Manichaean Mani Marchen Marc Masaram_Gondi Gonm Meetei_Mayek Mtei Mende_Kikakui Mend Meroitic_Cursive Merc Meroitic_Hieroglyphs Mero Miao Plrd Modi Mongolian Mong Mro Mroo Multani Mult Myanmar Mymr Nabataean Nbat New_Tai_Lue Talu Newa Newa Nko Nkoo Nushu Nshu Ogham Ogam Ol_Chiki Olck Old_Hungarian Hung Old_Italic Ital Old_North_Arabian Narb Old_Permic Perm Old_Persian Xpeo Old_South_Arabian Sarb Old_Turkic Orkh Oriya Orya Osage Osge Osmanya Osma Pahawh_Hmong Hmng Palmyrene Palm Pau_Cin_Hau Pauc Phags_Pa Phag Phoenician Phnx Psalter_Pahlavi Phlp Rejang Rjng Runic Runr Samaritan Samr Saurashtra Saur Sharada Shrd Shavian Shaw Siddham Sidd SignWriting Sgnw Sinhala Sinh Sora_Sompeng Sora Soyombo Soyo Sundanese Sund Syloti_Nagri Sylo Syriac Syrc Tagalog Tglg Tagbanwa Tagb Tai_Le Tale Tai_Tham Lana Tai_Viet Tavt Takri Takr Tamil Taml Tangut Tang Telugu Telu Thaana Thaa Thai Thai Tibetan Tibt Tifinagh Tfng Tirhuta Tirh Ugaritic Ugar Vai Vaii Warang_Citi Wara Yi Yiii Zanabazar_Square Zanb",Ke=qe+" Dogra Dogr Gunjala_Gondi Gong Hanifi_Rohingya Rohg Makasar Maka Medefaidrin Medf Old_Sogdian Sogo Sogdian Sogd",He=Ke+" Elymaic Elym Nandinagari Nand Nyiakeng_Puachue_Hmong Hmnp Wancho Wcho",ze=He+" Chorasmian Chrs Diak Dives_Akuru Khitan_Small_Script Kits Yezi Yezidi",a=ze+" Cypro_Minoan Cpmn Old_Uyghur Ougr Tangsa Tnsa Toto Vithkuqi Vith",c={9:qe,10:Ke,11:He,12:ze,13:a,14:a+" Berf Beria_Erfe Gara Garay Gukh Gurung_Khema Hrkt Katakana_Or_Hiragana Kawi Kirat_Rai Krai Nag_Mundari Nagm Ol_Onal Onao Sidetic Sidt Sunu Sunuwar Tai_Yo Tayo Todhri Todr Tolong_Siki Tols Tulu_Tigalari Tutg Unknown Zzzz"},v={};function h(t){var e=v[t]={binary:Rt(ci[t]+" "+De),binaryOfStrings:Rt(pi[t]),nonBinary:{General_Category:Rt(De),Script:Rt(c[t])}};e.nonBinary.Script_Extensions=e.nonBinary.Script,e.nonBinary.gc=e.nonBinary.General_Category,e.nonBinary.sc=e.nonBinary.Script,e.nonBinary.scx=e.nonBinary.Script_Extensions}d(h,"buildUnicodeData");for(var A=0,E=[9,10,11,12,13,14];A<E.length;A+=1)h(E[A]);var m=nt.prototype,b=d(function(t,e){this.parent=t,this.base=e||this},"acorn_BranchID");b.prototype.separatedFrom=function(t){for(var e=this;e;e=e.parent)for(var i=t;i;i=i.parent)if(e.base===i.base&&e!==i)return!0;return!1},b.prototype.sibling=function(){return new b(this.parent,this.base)};var S=d(function(t){this.parser=t,this.validFlags="gim"+(t.options.ecmaVersion>=6?"uy":"")+(t.options.ecmaVersion>=9?"s":"")+(t.options.ecmaVersion>=13?"d":"")+(t.options.ecmaVersion>=15?"v":""),this.unicodeProperties=v[t.options.ecmaVersion>=14?14:t.options.ecmaVersion],this.source="",this.flags="",this.start=0,this.switchU=!1,this.switchV=!1,this.switchN=!1,this.pos=0,this.lastIntValue=0,this.lastStringValue="",this.lastAssertionIsQuantifiable=!1,this.numCapturingParens=0,this.maxBackReference=0,this.groupNames=Object.create(null),this.backReferenceNames=[],this.branchID=null},"acorn_RegExpValidationState");function R(t){return t===105||t===109||t===115}d(R,"isRegularExpressionModifier");function W(t){return t===36||t>=40&&t<=43||t===46||t===63||t>=91&&t<=94||t>=123&&t<=125}d(W,"isSyntaxCharacter");function $(t){return t>=65&&t<=90||t>=97&&t<=122}d($,"isControlLetter"),S.prototype.reset=function(t,e,i){var s=i.indexOf("v")!==-1,r=i.indexOf("u")!==-1;this.start=0|t,this.source=e+"",this.flags=i,s&&this.parser.options.ecmaVersion>=15?(this.switchU=!0,this.switchV=!0,this.switchN=!0):(this.switchU=r&&this.parser.options.ecmaVersion>=6,this.switchV=!1,this.switchN=r&&this.parser.options.ecmaVersion>=9)},S.prototype.raise=function(t){this.parser.raiseRecoverable(this.start,"Invalid regular expression: /"+this.source+"/: "+t)},S.prototype.at=function(t,e){e===void 0&&(e=!1);var i=this.source,s=i.length;if(t>=s)return-1;var r=i.charCodeAt(t);if(!e&&!this.switchU||r<=55295||r>=57344||t+1>=s)return r;var o=i.charCodeAt(t+1);return o>=56320&&o<=57343?(r<<10)+o-56613888:r},S.prototype.nextIndex=function(t,e){e===void 0&&(e=!1);var i=this.source,s=i.length;if(t>=s)return s;var r,o=i.charCodeAt(t);return!e&&!this.switchU||o<=55295||o>=57344||t+1>=s||(r=i.charCodeAt(t+1))<56320||r>57343?t+1:t+2},S.prototype.current=function(t){return t===void 0&&(t=!1),this.at(this.pos,t)},S.prototype.lookahead=function(t){return t===void 0&&(t=!1),this.at(this.nextIndex(this.pos,t),t)},S.prototype.advance=function(t){t===void 0&&(t=!1),this.pos=this.nextIndex(this.pos,t)},S.prototype.eat=function(t,e){return e===void 0&&(e=!1),this.current(e)===t&&(this.advance(e),!0)},S.prototype.eatChars=function(t,e){e===void 0&&(e=!1);for(var i=this.pos,s=0,r=t;s<r.length;s+=1){var o=r[s],u=this.at(i,e);if(u===-1||u!==o)return!1;i=this.nextIndex(i,e)}return this.pos=i,!0},m.validateRegExpFlags=function(t){for(var e=t.validFlags,i=t.flags,s=!1,r=!1,o=0;o<i.length;o++){var u=i.charAt(o);e.indexOf(u)===-1&&this.raise(t.start,"Invalid regular expression flag"),i.indexOf(u,o+1)>-1&&this.raise(t.start,"Duplicate regular expression flag"),u==="u"&&(s=!0),u==="v"&&(r=!0)}this.options.ecmaVersion>=15&&s&&r&&this.raise(t.start,"Invalid regular expression flag")},m.validateRegExpPattern=function(t){this.regexp_pattern(t),!t.switchN&&this.options.ecmaVersion>=9&&(function(e){for(var i in e)return!0;return!1})(t.groupNames)&&(t.switchN=!0,this.regexp_pattern(t))},m.regexp_pattern=function(t){t.pos=0,t.lastIntValue=0,t.lastStringValue="",t.lastAssertionIsQuantifiable=!1,t.numCapturingParens=0,t.maxBackReference=0,t.groupNames=Object.create(null),t.backReferenceNames.length=0,t.branchID=null,this.regexp_disjunction(t),t.pos!==t.source.length&&(t.eat(41)&&t.raise("Unmatched ')'"),(t.eat(93)||t.eat(125))&&t.raise("Lone quantifier brackets")),t.maxBackReference>t.numCapturingParens&&t.raise("Invalid escape");for(var e=0,i=t.backReferenceNames;e<i.length;e+=1){var s=i[e];t.groupNames[s]||t.raise("Invalid named capture referenced")}},m.regexp_disjunction=function(t){var e=this.options.ecmaVersion>=16;for(e&&(t.branchID=new b(t.branchID,null)),this.regexp_alternative(t);t.eat(124);)e&&(t.branchID=t.branchID.sibling()),this.regexp_alternative(t);e&&(t.branchID=t.branchID.parent),this.regexp_eatQuantifier(t,!0)&&t.raise("Nothing to repeat"),t.eat(123)&&t.raise("Lone quantifier brackets")},m.regexp_alternative=function(t){for(;t.pos<t.source.length&&this.regexp_eatTerm(t););},m.regexp_eatTerm=function(t){return this.regexp_eatAssertion(t)?(t.lastAssertionIsQuantifiable&&this.regexp_eatQuantifier(t)&&t.switchU&&t.raise("Invalid quantifier"),!0):!!(t.switchU?this.regexp_eatAtom(t):this.regexp_eatExtendedAtom(t))&&(this.regexp_eatQuantifier(t),!0)},m.regexp_eatAssertion=function(t){var e=t.pos;if(t.lastAssertionIsQuantifiable=!1,t.eat(94)||t.eat(36))return!0;if(t.eat(92)){if(t.eat(66)||t.eat(98))return!0;t.pos=e}if(t.eat(40)&&t.eat(63)){var i=!1;if(this.options.ecmaVersion>=9&&(i=t.eat(60)),t.eat(61)||t.eat(33))return this.regexp_disjunction(t),t.eat(41)||t.raise("Unterminated group"),t.lastAssertionIsQuantifiable=!i,!0}return t.pos=e,!1},m.regexp_eatQuantifier=function(t,e){return e===void 0&&(e=!1),!!this.regexp_eatQuantifierPrefix(t,e)&&(t.eat(63),!0)},m.regexp_eatQuantifierPrefix=function(t,e){return t.eat(42)||t.eat(43)||t.eat(63)||this.regexp_eatBracedQuantifier(t,e)},m.regexp_eatBracedQuantifier=function(t,e){var i=t.pos;if(t.eat(123)){var s=0,r=-1;if(this.regexp_eatDecimalDigits(t)&&(s=t.lastIntValue,t.eat(44)&&this.regexp_eatDecimalDigits(t)&&(r=t.lastIntValue),t.eat(125)))return r!==-1&&r<s&&!e&&t.raise("numbers out of order in {} quantifier"),!0;t.switchU&&!e&&t.raise("Incomplete quantifier"),t.pos=i}return!1},m.regexp_eatAtom=function(t){return this.regexp_eatPatternCharacters(t)||t.eat(46)||this.regexp_eatReverseSolidusAtomEscape(t)||this.regexp_eatCharacterClass(t)||this.regexp_eatUncapturingGroup(t)||this.regexp_eatCapturingGroup(t)},m.regexp_eatReverseSolidusAtomEscape=function(t){var e=t.pos;if(t.eat(92)){if(this.regexp_eatAtomEscape(t))return!0;t.pos=e}return!1},m.regexp_eatUncapturingGroup=function(t){var e=t.pos;if(t.eat(40)){if(t.eat(63)){if(this.options.ecmaVersion>=16){var i=this.regexp_eatModifiers(t),s=t.eat(45);if(i||s){for(var r=0;r<i.length;r++){var o=i.charAt(r);i.indexOf(o,r+1)>-1&&t.raise("Duplicate regular expression modifiers")}if(s){var u=this.regexp_eatModifiers(t);i||u||t.current()!==58||t.raise("Invalid regular expression modifiers");for(var l=0;l<u.length;l++){var f=u.charAt(l);(u.indexOf(f,l+1)>-1||i.indexOf(f)>-1)&&t.raise("Duplicate regular expression modifiers")}}}}if(t.eat(58)){if(this.regexp_disjunction(t),t.eat(41))return!0;t.raise("Unterminated group")}}t.pos=e}return!1},m.regexp_eatCapturingGroup=function(t){if(t.eat(40)){if(this.options.ecmaVersion>=9?this.regexp_groupSpecifier(t):t.current()===63&&t.raise("Invalid group"),this.regexp_disjunction(t),t.eat(41))return t.numCapturingParens+=1,!0;t.raise("Unterminated group")}return!1},m.regexp_eatModifiers=function(t){for(var e="",i=0;(i=t.current())!==-1&&R(i);)e+=St(i),t.advance();return e},m.regexp_eatExtendedAtom=function(t){return t.eat(46)||this.regexp_eatReverseSolidusAtomEscape(t)||this.regexp_eatCharacterClass(t)||this.regexp_eatUncapturingGroup(t)||this.regexp_eatCapturingGroup(t)||this.regexp_eatInvalidBracedQuantifier(t)||this.regexp_eatExtendedPatternCharacter(t)},m.regexp_eatInvalidBracedQuantifier=function(t){return this.regexp_eatBracedQuantifier(t,!0)&&t.raise("Nothing to repeat"),!1},m.regexp_eatSyntaxCharacter=function(t){var e=t.current();return!!W(e)&&(t.lastIntValue=e,t.advance(),!0)},m.regexp_eatPatternCharacters=function(t){for(var e=t.pos,i=0;(i=t.current())!==-1&&!W(i);)t.advance();return t.pos!==e},m.regexp_eatExtendedPatternCharacter=function(t){var e=t.current();return!(e===-1||e===36||e>=40&&e<=43||e===46||e===63||e===91||e===94||e===124)&&(t.advance(),!0)},m.regexp_groupSpecifier=function(t){if(t.eat(63)){this.regexp_eatGroupName(t)||t.raise("Invalid group");var e=this.options.ecmaVersion>=16,i=t.groupNames[t.lastStringValue];if(i)if(e)for(var s=0,r=i;s<r.length;s+=1)r[s].separatedFrom(t.branchID)||t.raise("Duplicate capture group name");else t.raise("Duplicate capture group name");e?(i||(t.groupNames[t.lastStringValue]=[])).push(t.branchID):t.groupNames[t.lastStringValue]=!0}},m.regexp_eatGroupName=function(t){if(t.lastStringValue="",t.eat(60)){if(this.regexp_eatRegExpIdentifierName(t)&&t.eat(62))return!0;t.raise("Invalid capture group name")}return!1},m.regexp_eatRegExpIdentifierName=function(t){if(t.lastStringValue="",this.regexp_eatRegExpIdentifierStart(t)){for(t.lastStringValue+=St(t.lastIntValue);this.regexp_eatRegExpIdentifierPart(t);)t.lastStringValue+=St(t.lastIntValue);return!0}return!1},m.regexp_eatRegExpIdentifierStart=function(t){var e=t.pos,i=this.options.ecmaVersion>=11,s=t.current(i);return t.advance(i),s===92&&this.regexp_eatRegExpUnicodeEscapeSequence(t,i)&&(s=t.lastIntValue),(function(r){return pt(r,!0)||r===36||r===95})(s)?(t.lastIntValue=s,!0):(t.pos=e,!1)},m.regexp_eatRegExpIdentifierPart=function(t){var e=t.pos,i=this.options.ecmaVersion>=11,s=t.current(i);return t.advance(i),s===92&&this.regexp_eatRegExpUnicodeEscapeSequence(t,i)&&(s=t.lastIntValue),(function(r){return z(r,!0)||r===36||r===95||r===8204||r===8205})(s)?(t.lastIntValue=s,!0):(t.pos=e,!1)},m.regexp_eatAtomEscape=function(t){return!!(this.regexp_eatBackReference(t)||this.regexp_eatCharacterClassEscape(t)||this.regexp_eatCharacterEscape(t)||t.switchN&&this.regexp_eatKGroupName(t))||(t.switchU&&(t.current()===99&&t.raise("Invalid unicode escape"),t.raise("Invalid escape")),!1)},m.regexp_eatBackReference=function(t){var e=t.pos;if(this.regexp_eatDecimalEscape(t)){var i=t.lastIntValue;if(t.switchU)return i>t.maxBackReference&&(t.maxBackReference=i),!0;if(i<=t.numCapturingParens)return!0;t.pos=e}return!1},m.regexp_eatKGroupName=function(t){if(t.eat(107)){if(this.regexp_eatGroupName(t))return t.backReferenceNames.push(t.lastStringValue),!0;t.raise("Invalid named reference")}return!1},m.regexp_eatCharacterEscape=function(t){return this.regexp_eatControlEscape(t)||this.regexp_eatCControlLetter(t)||this.regexp_eatZero(t)||this.regexp_eatHexEscapeSequence(t)||this.regexp_eatRegExpUnicodeEscapeSequence(t,!1)||!t.switchU&&this.regexp_eatLegacyOctalEscapeSequence(t)||this.regexp_eatIdentityEscape(t)},m.regexp_eatCControlLetter=function(t){var e=t.pos;if(t.eat(99)){if(this.regexp_eatControlLetter(t))return!0;t.pos=e}return!1},m.regexp_eatZero=function(t){return t.current()===48&&!Q(t.lookahead())&&(t.lastIntValue=0,t.advance(),!0)},m.regexp_eatControlEscape=function(t){var e=t.current();return e===116?(t.lastIntValue=9,t.advance(),!0):e===110?(t.lastIntValue=10,t.advance(),!0):e===118?(t.lastIntValue=11,t.advance(),!0):e===102?(t.lastIntValue=12,t.advance(),!0):e===114&&(t.lastIntValue=13,t.advance(),!0)},m.regexp_eatControlLetter=function(t){var e=t.current();return!!$(e)&&(t.lastIntValue=e%32,t.advance(),!0)},m.regexp_eatRegExpUnicodeEscapeSequence=function(t,e){e===void 0&&(e=!1);var i,s=t.pos,r=e||t.switchU;if(t.eat(117)){if(this.regexp_eatFixedHexDigits(t,4)){var o=t.lastIntValue;if(r&&o>=55296&&o<=56319){var u=t.pos;if(t.eat(92)&&t.eat(117)&&this.regexp_eatFixedHexDigits(t,4)){var l=t.lastIntValue;if(l>=56320&&l<=57343)return t.lastIntValue=1024*(o-55296)+(l-56320)+65536,!0}t.pos=u,t.lastIntValue=o}return!0}if(r&&t.eat(123)&&this.regexp_eatHexDigits(t)&&t.eat(125)&&(i=t.lastIntValue)>=0&&i<=1114111)return!0;r&&t.raise("Invalid unicode escape"),t.pos=s}return!1},m.regexp_eatIdentityEscape=function(t){if(t.switchU)return!!this.regexp_eatSyntaxCharacter(t)||!!t.eat(47)&&(t.lastIntValue=47,!0);var e=t.current();return!(e===99||t.switchN&&e===107)&&(t.lastIntValue=e,t.advance(),!0)},m.regexp_eatDecimalEscape=function(t){t.lastIntValue=0;var e=t.current();if(e>=49&&e<=57){do t.lastIntValue=10*t.lastIntValue+(e-48),t.advance();while((e=t.current())>=48&&e<=57);return!0}return!1};function et(t){return $(t)||t===95}d(et,"isUnicodePropertyNameCharacter");function Y(t){return et(t)||Q(t)}d(Y,"isUnicodePropertyValueCharacter");function Q(t){return t>=48&&t<=57}d(Q,"isDecimalDigit");function X(t){return t>=48&&t<=57||t>=65&&t<=70||t>=97&&t<=102}d(X,"isHexDigit");function at(t){return t>=65&&t<=70?t-65+10:t>=97&&t<=102?t-97+10:t-48}d(at,"hexToInt");function wt(t){return t>=48&&t<=55}d(wt,"isOctalDigit"),m.regexp_eatCharacterClassEscape=function(t){var e=t.current();if((function(r){return r===100||r===68||r===115||r===83||r===119||r===87})(e))return t.lastIntValue=-1,t.advance(),1;var i=!1;if(t.switchU&&this.options.ecmaVersion>=9&&((i=e===80)||e===112)){var s;if(t.lastIntValue=-1,t.advance(),t.eat(123)&&(s=this.regexp_eatUnicodePropertyValueExpression(t))&&t.eat(125))return i&&s===2&&t.raise("Invalid property name"),s;t.raise("Invalid property name")}return 0},m.regexp_eatUnicodePropertyValueExpression=function(t){var e=t.pos;if(this.regexp_eatUnicodePropertyName(t)&&t.eat(61)){var i=t.lastStringValue;if(this.regexp_eatUnicodePropertyValue(t)){var s=t.lastStringValue;return this.regexp_validateUnicodePropertyNameAndValue(t,i,s),1}}if(t.pos=e,this.regexp_eatLoneUnicodePropertyNameOrValue(t)){var r=t.lastStringValue;return this.regexp_validateUnicodePropertyNameOrValue(t,r)}return 0},m.regexp_validateUnicodePropertyNameAndValue=function(t,e,i){Ut(t.unicodeProperties.nonBinary,e)||t.raise("Invalid property name"),t.unicodeProperties.nonBinary[e].test(i)||t.raise("Invalid property value")},m.regexp_validateUnicodePropertyNameOrValue=function(t,e){return t.unicodeProperties.binary.test(e)?1:t.switchV&&t.unicodeProperties.binaryOfStrings.test(e)?2:void t.raise("Invalid property name")},m.regexp_eatUnicodePropertyName=function(t){var e=0;for(t.lastStringValue="";et(e=t.current());)t.lastStringValue+=St(e),t.advance();return t.lastStringValue!==""},m.regexp_eatUnicodePropertyValue=function(t){var e=0;for(t.lastStringValue="";Y(e=t.current());)t.lastStringValue+=St(e),t.advance();return t.lastStringValue!==""},m.regexp_eatLoneUnicodePropertyNameOrValue=function(t){return this.regexp_eatUnicodePropertyValue(t)},m.regexp_eatCharacterClass=function(t){if(t.eat(91)){var e=t.eat(94),i=this.regexp_classContents(t);return t.eat(93)||t.raise("Unterminated character class"),e&&i===2&&t.raise("Negated character class may contain strings"),!0}return!1},m.regexp_classContents=function(t){return t.current()===93?1:t.switchV?this.regexp_classSetExpression(t):(this.regexp_nonEmptyClassRanges(t),1)},m.regexp_nonEmptyClassRanges=function(t){for(;this.regexp_eatClassAtom(t);){var e=t.lastIntValue;if(t.eat(45)&&this.regexp_eatClassAtom(t)){var i=t.lastIntValue;!t.switchU||e!==-1&&i!==-1||t.raise("Invalid character class"),e!==-1&&i!==-1&&e>i&&t.raise("Range out of order in character class")}}},m.regexp_eatClassAtom=function(t){var e=t.pos;if(t.eat(92)){if(this.regexp_eatClassEscape(t))return!0;if(t.switchU){var i=t.current();(i===99||wt(i))&&t.raise("Invalid class escape"),t.raise("Invalid escape")}t.pos=e}var s=t.current();return s!==93&&(t.lastIntValue=s,t.advance(),!0)},m.regexp_eatClassEscape=function(t){var e=t.pos;if(t.eat(98))return t.lastIntValue=8,!0;if(t.switchU&&t.eat(45))return t.lastIntValue=45,!0;if(!t.switchU&&t.eat(99)){if(this.regexp_eatClassControlLetter(t))return!0;t.pos=e}return this.regexp_eatCharacterClassEscape(t)||this.regexp_eatCharacterEscape(t)},m.regexp_classSetExpression=function(t){var e,i=1;if(!this.regexp_eatClassSetRange(t))if(e=this.regexp_eatClassSetOperand(t)){e===2&&(i=2);for(var s=t.pos;t.eatChars([38,38]);)t.current()!==38&&(e=this.regexp_eatClassSetOperand(t))?e!==2&&(i=1):t.raise("Invalid character in character class");if(s!==t.pos)return i;for(;t.eatChars([45,45]);)this.regexp_eatClassSetOperand(t)||t.raise("Invalid character in character class");if(s!==t.pos)return i}else t.raise("Invalid character in character class");for(;;)if(!this.regexp_eatClassSetRange(t)){if(!(e=this.regexp_eatClassSetOperand(t)))return i;e===2&&(i=2)}},m.regexp_eatClassSetRange=function(t){var e=t.pos;if(this.regexp_eatClassSetCharacter(t)){var i=t.lastIntValue;if(t.eat(45)&&this.regexp_eatClassSetCharacter(t)){var s=t.lastIntValue;return i!==-1&&s!==-1&&i>s&&t.raise("Range out of order in character class"),!0}t.pos=e}return!1},m.regexp_eatClassSetOperand=function(t){return this.regexp_eatClassSetCharacter(t)?1:this.regexp_eatClassStringDisjunction(t)||this.regexp_eatNestedClass(t)},m.regexp_eatNestedClass=function(t){var e=t.pos;if(t.eat(91)){var i=t.eat(94),s=this.regexp_classContents(t);if(t.eat(93))return i&&s===2&&t.raise("Negated character class may contain strings"),s;t.pos=e}if(t.eat(92)){var r=this.regexp_eatCharacterClassEscape(t);if(r)return r;t.pos=e}return null},m.regexp_eatClassStringDisjunction=function(t){var e=t.pos;if(t.eatChars([92,113])){if(t.eat(123)){var i=this.regexp_classStringDisjunctionContents(t);if(t.eat(125))return i}else t.raise("Invalid escape");t.pos=e}return null},m.regexp_classStringDisjunctionContents=function(t){for(var e=this.regexp_classString(t);t.eat(124);)this.regexp_classString(t)===2&&(e=2);return e},m.regexp_classString=function(t){for(var e=0;this.regexp_eatClassSetCharacter(t);)e++;return e===1?1:2},m.regexp_eatClassSetCharacter=function(t){var e=t.pos;if(t.eat(92))return!(!this.regexp_eatCharacterEscape(t)&&!this.regexp_eatClassSetReservedPunctuator(t))||(t.eat(98)?(t.lastIntValue=8,!0):(t.pos=e,!1));var i=t.current();return!(i<0||i===t.lookahead()&&(function(s){return s===33||s>=35&&s<=38||s>=42&&s<=44||s===46||s>=58&&s<=64||s===94||s===96||s===126})(i))&&!(function(s){return s===40||s===41||s===45||s===47||s>=91&&s<=93||s>=123&&s<=125})(i)&&(t.advance(),t.lastIntValue=i,!0)},m.regexp_eatClassSetReservedPunctuator=function(t){var e=t.current();return!!(function(i){return i===33||i===35||i===37||i===38||i===44||i===45||i>=58&&i<=62||i===64||i===96||i===126})(e)&&(t.lastIntValue=e,t.advance(),!0)},m.regexp_eatClassControlLetter=function(t){var e=t.current();return!(!Q(e)&&e!==95)&&(t.lastIntValue=e%32,t.advance(),!0)},m.regexp_eatHexEscapeSequence=function(t){var e=t.pos;if(t.eat(120)){if(this.regexp_eatFixedHexDigits(t,2))return!0;t.switchU&&t.raise("Invalid escape"),t.pos=e}return!1},m.regexp_eatDecimalDigits=function(t){var e=t.pos,i=0;for(t.lastIntValue=0;Q(i=t.current());)t.lastIntValue=10*t.lastIntValue+(i-48),t.advance();return t.pos!==e},m.regexp_eatHexDigits=function(t){var e=t.pos,i=0;for(t.lastIntValue=0;X(i=t.current());)t.lastIntValue=16*t.lastIntValue+at(i),t.advance();return t.pos!==e},m.regexp_eatLegacyOctalEscapeSequence=function(t){if(this.regexp_eatOctalDigit(t)){var e=t.lastIntValue;if(this.regexp_eatOctalDigit(t)){var i=t.lastIntValue;e<=3&&this.regexp_eatOctalDigit(t)?t.lastIntValue=64*e+8*i+t.lastIntValue:t.lastIntValue=8*e+i}else t.lastIntValue=e;return!0}return!1},m.regexp_eatOctalDigit=function(t){var e=t.current();return wt(e)?(t.lastIntValue=e-48,t.advance(),!0):(t.lastIntValue=0,!1)},m.regexp_eatFixedHexDigits=function(t,e){var i=t.pos;t.lastIntValue=0;for(var s=0;s<e;++s){var r=t.current();if(!X(r))return t.pos=i,!1;t.lastIntValue=16*t.lastIntValue+at(r),t.advance()}return!0};var Nt=d(function(t){this.type=t.type,this.value=t.value,this.start=t.start,this.end=t.end,t.options.locations&&(this.loc=new vt(t,t.startLoc,t.endLoc)),t.options.ranges&&(this.range=[t.start,t.end])},"acorn_Token"),C=nt.prototype;function ct(t){return typeof BigInt!="function"?null:BigInt(t.replace(/_/g,""))}d(ct,"stringToBigInt"),C.next=function(t){!t&&this.type.keyword&&this.containsEsc&&this.raiseRecoverable(this.start,"Escape sequence in keyword "+this.type.keyword),this.options.onToken&&this.options.onToken(new Nt(this)),this.lastTokEnd=this.end,this.lastTokStart=this.start,this.lastTokEndLoc=this.endLoc,this.lastTokStartLoc=this.startLoc,this.nextToken()},C.getToken=function(){return this.next(),new Nt(this)},typeof Symbol<"u"&&(C[Symbol.iterator]=function(){var t=this;return{next:d(function(){var e=t.getToken();return{done:e.type===n.eof,value:e}},"next")}}),C.nextToken=function(){var t=this.curContext();return t&&t.preserveSpace||this.skipSpace(),this.start=this.pos,this.options.locations&&(this.startLoc=this.curPosition()),this.pos>=this.input.length?this.finishToken(n.eof):t.override?t.override(this):void this.readToken(this.fullCharCodeAtPos())},C.readToken=function(t){return pt(t,this.options.ecmaVersion>=6)||t===92?this.readWord():this.getTokenFromCode(t)},C.fullCharCodeAt=function(t){var e=this.input.charCodeAt(t);if(e<=55295||e>=56320)return e;var i=this.input.charCodeAt(t+1);return i<=56319||i>=57344?e:(e<<10)+i-56613888},C.fullCharCodeAtPos=function(){return this.fullCharCodeAt(this.pos)},C.skipBlockComment=function(){var t=this.options.onComment&&this.curPosition(),e=this.pos,i=this.input.indexOf("*/",this.pos+=2);if(i===-1&&this.raise(this.pos-2,"Unterminated comment"),this.pos=i+2,this.options.locations)for(var s=void 0,r=e;(s=ft(this.input,r,this.pos))>-1;)++this.curLine,r=this.lineStart=s;this.options.onComment&&this.options.onComment(!0,this.input.slice(e+2,i),e,this.pos,t,this.curPosition())},C.skipLineComment=function(t){for(var e=this.pos,i=this.options.onComment&&this.curPosition(),s=this.input.charCodeAt(this.pos+=t);this.pos<this.input.length&&!lt(s);)s=this.input.charCodeAt(++this.pos);this.options.onComment&&this.options.onComment(!1,this.input.slice(e+t,this.pos),e,this.pos,i,this.curPosition())},C.skipSpace=function(){t:for(;this.pos<this.input.length;){var t=this.input.charCodeAt(this.pos);switch(t){case 32:case 160:++this.pos;break;case 13:this.input.charCodeAt(this.pos+1)===10&&++this.pos;case 10:case 8232:case 8233:++this.pos,this.options.locations&&(++this.curLine,this.lineStart=this.pos);break;case 47:switch(this.input.charCodeAt(this.pos+1)){case 42:this.skipBlockComment();break;case 47:this.skipLineComment(2);break;default:break t}break;default:if(!(t>8&&t<14||t>=5760&&Dt.test(String.fromCharCode(t))))break t;++this.pos}}},C.finishToken=function(t,e){this.end=this.pos,this.options.locations&&(this.endLoc=this.curPosition());var i=this.type;this.type=t,this.value=e,this.updateContext(i)},C.readToken_dot=function(){var t=this.input.charCodeAt(this.pos+1);if(t>=48&&t<=57)return this.readNumber(!0);var e=this.input.charCodeAt(this.pos+2);return this.options.ecmaVersion>=6&&t===46&&e===46?(this.pos+=3,this.finishToken(n.ellipsis)):(++this.pos,this.finishToken(n.dot))},C.readToken_slash=function(){var t=this.input.charCodeAt(this.pos+1);return this.exprAllowed?(++this.pos,this.readRegexp()):t===61?this.finishOp(n.assign,2):this.finishOp(n.slash,1)},C.readToken_mult_modulo_exp=function(t){var e=this.input.charCodeAt(this.pos+1),i=1,s=t===42?n.star:n.modulo;return this.options.ecmaVersion>=7&&t===42&&e===42&&(++i,s=n.starstar,e=this.input.charCodeAt(this.pos+2)),e===61?this.finishOp(n.assign,i+1):this.finishOp(s,i)},C.readToken_pipe_amp=function(t){var e=this.input.charCodeAt(this.pos+1);return e===t?this.options.ecmaVersion>=12&&this.input.charCodeAt(this.pos+2)===61?this.finishOp(n.assign,3):this.finishOp(t===124?n.logicalOR:n.logicalAND,2):e===61?this.finishOp(n.assign,2):this.finishOp(t===124?n.bitwiseOR:n.bitwiseAND,1)},C.readToken_caret=function(){return this.input.charCodeAt(this.pos+1)===61?this.finishOp(n.assign,2):this.finishOp(n.bitwiseXOR,1)},C.readToken_plus_min=function(t){var e=this.input.charCodeAt(this.pos+1);return e===t?e!==45||this.inModule||this.input.charCodeAt(this.pos+2)!==62||this.lastTokEnd!==0&&!J.test(this.input.slice(this.lastTokEnd,this.pos))?this.finishOp(n.incDec,2):(this.skipLineComment(3),this.skipSpace(),this.nextToken()):e===61?this.finishOp(n.assign,2):this.finishOp(n.plusMin,1)},C.readToken_lt_gt=function(t){var e=this.input.charCodeAt(this.pos+1),i=1;return e===t?(i=t===62&&this.input.charCodeAt(this.pos+2)===62?3:2,this.input.charCodeAt(this.pos+i)===61?this.finishOp(n.assign,i+1):this.finishOp(n.bitShift,i)):e!==33||t!==60||this.inModule||this.input.charCodeAt(this.pos+2)!==45||this.input.charCodeAt(this.pos+3)!==45?(e===61&&(i=2),this.finishOp(n.relational,i)):(this.skipLineComment(4),this.skipSpace(),this.nextToken())},C.readToken_eq_excl=function(t){var e=this.input.charCodeAt(this.pos+1);return e===61?this.finishOp(n.equality,this.input.charCodeAt(this.pos+2)===61?3:2):t===61&&e===62&&this.options.ecmaVersion>=6?(this.pos+=2,this.finishToken(n.arrow)):this.finishOp(t===61?n.eq:n.prefix,1)},C.readToken_question=function(){var t=this.options.ecmaVersion;if(t>=11){var e=this.input.charCodeAt(this.pos+1);if(e===46){var i=this.input.charCodeAt(this.pos+2);if(i<48||i>57)return this.finishOp(n.questionDot,2)}if(e===63)return t>=12&&this.input.charCodeAt(this.pos+2)===61?this.finishOp(n.assign,3):this.finishOp(n.coalesce,2)}return this.finishOp(n.question,1)},C.readToken_numberSign=function(){var t=35;if(this.options.ecmaVersion>=13&&(++this.pos,pt(t=this.fullCharCodeAtPos(),!0)||t===92))return this.finishToken(n.privateId,this.readWord1());this.raise(this.pos,"Unexpected character '"+St(t)+"'")},C.getTokenFromCode=function(t){switch(t){case 46:return this.readToken_dot();case 40:return++this.pos,this.finishToken(n.parenL);case 41:return++this.pos,this.finishToken(n.parenR);case 59:return++this.pos,this.finishToken(n.semi);case 44:return++this.pos,this.finishToken(n.comma);case 91:return++this.pos,this.finishToken(n.bracketL);case 93:return++this.pos,this.finishToken(n.bracketR);case 123:return++this.pos,this.finishToken(n.braceL);case 125:return++this.pos,this.finishToken(n.braceR);case 58:return++this.pos,this.finishToken(n.colon);case 96:if(this.options.ecmaVersion<6)break;return++this.pos,this.finishToken(n.backQuote);case 48:var e=this.input.charCodeAt(this.pos+1);if(e===120||e===88)return this.readRadixNumber(16);if(this.options.ecmaVersion>=6){if(e===111||e===79)return this.readRadixNumber(8);if(e===98||e===66)return this.readRadixNumber(2)}case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return this.readNumber(!1);case 34:case 39:return this.readString(t);case 47:return this.readToken_slash();case 37:case 42:return this.readToken_mult_modulo_exp(t);case 124:case 38:return this.readToken_pipe_amp(t);case 94:return this.readToken_caret();case 43:case 45:return this.readToken_plus_min(t);case 60:case 62:return this.readToken_lt_gt(t);case 61:case 33:return this.readToken_eq_excl(t);case 63:return this.readToken_question();case 126:return this.finishOp(n.prefix,1);case 35:return this.readToken_numberSign()}this.raise(this.pos,"Unexpected character '"+St(t)+"'")},C.finishOp=function(t,e){var i=this.input.slice(this.pos,this.pos+e);return this.pos+=e,this.finishToken(t,i)},C.readRegexp=function(){for(var t,e,i=this.pos;;){this.pos>=this.input.length&&this.raise(i,"Unterminated regular expression");var s=this.input.charAt(this.pos);if(J.test(s)&&this.raise(i,"Unterminated regular expression"),t)t=!1;else{if(s==="[")e=!0;else if(s==="]"&&e)e=!1;else if(s==="/"&&!e)break;t=s==="\\"}++this.pos}var r=this.input.slice(i,this.pos);++this.pos;var o=this.pos,u=this.readWord1();this.containsEsc&&this.unexpected(o);var l=this.regexpState||(this.regexpState=new S(this));l.reset(i,r,u),this.validateRegExpFlags(l),this.validateRegExpPattern(l);var f=null;try{f=new RegExp(r,u)}catch{}return this.finishToken(n.regexp,{pattern:r,flags:u,value:f})},C.readInt=function(t,e,i){for(var s=this.options.ecmaVersion>=12&&e===void 0,r=i&&this.input.charCodeAt(this.pos)===48,o=this.pos,u=0,l=0,f=0,x=e??1/0;f<x;++f,++this.pos){var g=this.input.charCodeAt(this.pos),_=void 0;if(s&&g===95)r&&this.raiseRecoverable(this.pos,"Numeric separator is not allowed in legacy octal numeric literals"),l===95&&this.raiseRecoverable(this.pos,"Numeric separator must be exactly one underscore"),f===0&&this.raiseRecoverable(this.pos,"Numeric separator is not allowed at the first of digits"),l=g;else{if((_=g>=97?g-97+10:g>=65?g-65+10:g>=48&&g<=57?g-48:1/0)>=t)break;l=g,u=u*t+_}}return s&&l===95&&this.raiseRecoverable(this.pos-1,"Numeric separator is not allowed at the last of digits"),this.pos===o||e!=null&&this.pos-o!==e?null:u},C.readRadixNumber=function(t){var e=this.pos;this.pos+=2;var i=this.readInt(t);return i==null&&this.raise(this.start+2,"Expected number in radix "+t),this.options.ecmaVersion>=11&&this.input.charCodeAt(this.pos)===110?(i=ct(this.input.slice(e,this.pos)),++this.pos):pt(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number"),this.finishToken(n.num,i)},C.readNumber=function(t){var e=this.pos;t||this.readInt(10,void 0,!0)!==null||this.raise(e,"Invalid number");var i=this.pos-e>=2&&this.input.charCodeAt(e)===48;i&&this.strict&&this.raise(e,"Invalid number");var s=this.input.charCodeAt(this.pos);if(!i&&!t&&this.options.ecmaVersion>=11&&s===110){var r=ct(this.input.slice(e,this.pos));return++this.pos,pt(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number"),this.finishToken(n.num,r)}i&&/[89]/.test(this.input.slice(e,this.pos))&&(i=!1),s!==46||i||(++this.pos,this.readInt(10),s=this.input.charCodeAt(this.pos)),s!==69&&s!==101||i||((s=this.input.charCodeAt(++this.pos))!==43&&s!==45||++this.pos,this.readInt(10)===null&&this.raise(e,"Invalid number")),pt(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number");var o,u=(o=this.input.slice(e,this.pos),i?parseInt(o,8):parseFloat(o.replace(/_/g,"")));return this.finishToken(n.num,u)},C.readCodePoint=function(){var t;if(this.input.charCodeAt(this.pos)===123){this.options.ecmaVersion<6&&this.unexpected();var e=++this.pos;t=this.readHexChar(this.input.indexOf("}",this.pos)-this.pos),++this.pos,t>1114111&&this.invalidStringToken(e,"Code point out of bounds")}else t=this.readHexChar(4);return t},C.readString=function(t){for(var e="",i=++this.pos;;){this.pos>=this.input.length&&this.raise(this.start,"Unterminated string constant");var s=this.input.charCodeAt(this.pos);if(s===t)break;s===92?(e+=this.input.slice(i,this.pos),e+=this.readEscapedChar(!1),i=this.pos):s===8232||s===8233?(this.options.ecmaVersion<10&&this.raise(this.start,"Unterminated string constant"),++this.pos,this.options.locations&&(this.curLine++,this.lineStart=this.pos)):(lt(s)&&this.raise(this.start,"Unterminated string constant"),++this.pos)}return e+=this.input.slice(i,this.pos++),this.finishToken(n.string,e)};var mt={};C.tryReadTemplateToken=function(){this.inTemplateElement=!0;try{this.readTmplToken()}catch(t){if(t!==mt)throw t;this.readInvalidTemplateToken()}this.inTemplateElement=!1},C.invalidStringToken=function(t,e){if(this.inTemplateElement&&this.options.ecmaVersion>=9)throw mt;this.raise(t,e)},C.readTmplToken=function(){for(var t="",e=this.pos;;){this.pos>=this.input.length&&this.raise(this.start,"Unterminated template");var i=this.input.charCodeAt(this.pos);if(i===96||i===36&&this.input.charCodeAt(this.pos+1)===123)return this.pos!==this.start||this.type!==n.template&&this.type!==n.invalidTemplate?(t+=this.input.slice(e,this.pos),this.finishToken(n.template,t)):i===36?(this.pos+=2,this.finishToken(n.dollarBraceL)):(++this.pos,this.finishToken(n.backQuote));if(i===92)t+=this.input.slice(e,this.pos),t+=this.readEscapedChar(!0),e=this.pos;else if(lt(i)){switch(t+=this.input.slice(e,this.pos),++this.pos,i){case 13:this.input.charCodeAt(this.pos)===10&&++this.pos;case 10:t+=`
|
|
12
|
+
`;break;default:t+=String.fromCharCode(i)}this.options.locations&&(++this.curLine,this.lineStart=this.pos),e=this.pos}else++this.pos}},C.readInvalidTemplateToken=function(){for(;this.pos<this.input.length;this.pos++)switch(this.input[this.pos]){case"\\":++this.pos;break;case"$":if(this.input[this.pos+1]!=="{")break;case"`":return this.finishToken(n.invalidTemplate,this.input.slice(this.start,this.pos));case"\r":this.input[this.pos+1]===`
|
|
13
|
+
`&&++this.pos;case`
|
|
14
|
+
`:case"\u2028":case"\u2029":++this.curLine,this.lineStart=this.pos+1}this.raise(this.start,"Unterminated template")},C.readEscapedChar=function(t){var e=this.input.charCodeAt(++this.pos);switch(++this.pos,e){case 110:return`
|
|
15
|
+
`;case 114:return"\r";case 120:return String.fromCharCode(this.readHexChar(2));case 117:return St(this.readCodePoint());case 116:return" ";case 98:return"\b";case 118:return"\v";case 102:return"\f";case 13:this.input.charCodeAt(this.pos)===10&&++this.pos;case 10:return this.options.locations&&(this.lineStart=this.pos,++this.curLine),"";case 56:case 57:if(this.strict&&this.invalidStringToken(this.pos-1,"Invalid escape sequence"),t){var i=this.pos-1;this.invalidStringToken(i,"Invalid escape sequence in template string")}default:if(e>=48&&e<=55){var s=this.input.substr(this.pos-1,3).match(/^[0-7]+/)[0],r=parseInt(s,8);return r>255&&(s=s.slice(0,-1),r=parseInt(s,8)),this.pos+=s.length-1,e=this.input.charCodeAt(this.pos),s==="0"&&e!==56&&e!==57||!this.strict&&!t||this.invalidStringToken(this.pos-1-s.length,t?"Octal literal in template string":"Octal literal in strict mode"),String.fromCharCode(r)}return lt(e)?(this.options.locations&&(this.lineStart=this.pos,++this.curLine),""):String.fromCharCode(e)}},C.readHexChar=function(t){var e=this.pos,i=this.readInt(16,t);return i===null&&this.invalidStringToken(e,"Bad character escape sequence"),i},C.readWord1=function(){this.containsEsc=!1;for(var t="",e=!0,i=this.pos,s=this.options.ecmaVersion>=6;this.pos<this.input.length;){var r=this.fullCharCodeAtPos();if(z(r,s))this.pos+=r<=65535?1:2;else{if(r!==92)break;this.containsEsc=!0,t+=this.input.slice(i,this.pos);var o=this.pos;this.input.charCodeAt(++this.pos)!==117&&this.invalidStringToken(this.pos,"Expecting Unicode escape sequence \\uXXXX"),++this.pos;var u=this.readCodePoint();(e?pt:z)(u,s)||this.invalidStringToken(o,"Invalid Unicode escape"),t+=St(u),i=this.pos}e=!1}return t+this.input.slice(i,this.pos)},C.readWord=function(){var t=this.readWord1(),e=n.name;return this.keywords.test(t)&&(e=L[t]),this.finishToken(e,t)},nt.acorn={Parser:nt,version:"8.16.0",defaultOptions:Qt,Position:Mt,SourceLocation:vt,getLineInfo:Oe,Node:Ft,TokenType:V,tokTypes:n,keywordTypes:L,TokContext:kt,tokContexts:it,isIdentifierChar:z,isIdentifierStart:pt,Token:Nt,isNewLine:lt,lineBreak:J,lineBreakG:rt,nonASCIIwhitespace:Dt};var M=_t("node:module"),I=_t("node:fs");String.fromCharCode;let Te=/\/$|\/\?|\/#/,Je=/^\.?\//;function Ye(t="",e){return e?Te.test(t):t.endsWith("/")}d(Ye,"hasTrailingSlash");function Qe(t="",e){if(!e)return t.endsWith("/")?t:t+"/";if(Ye(t,!0))return t||"/";let i=t,s="",r=t.indexOf("#");if(r!==-1&&(i=t.slice(0,r),s=t.slice(r),!i))return s;let[o,...u]=i.split("?");return o+"/"+(u.length>0?`?${u.join("?")}`:"")+s}d(Qe,"withTrailingSlash");function Xe(t){return t&&t!=="/"}d(Xe,"isNonEmptyURL");function te(t,...e){let i=t||"";for(let s of e.filter(r=>Xe(r)))if(i){let r=s.replace(Je,"");i=Qe(i)+r}else i=s;return i}d(te,"dist_joinURL");let G=/^[A-Za-z]:\//;function ot(t=""){return t&&t.replace(/\\/g,"/").replace(G,e=>e.toUpperCase())}d(ot,"pathe_M_eThtNZ_normalizeWindowsPath");let Ze=/^[/\\]{2}/,de=/^[/\\](?![/\\])|^[/\\]{2}(?!\.)|^[A-Za-z]:[/\\]/,Fi=/^[A-Za-z]:$/,Ss=/.(\.[^./]+|\.)$/,Is=d(function(t){if(t.length===0)return".";let e=(t=ot(t)).match(Ze),i=ee(t),s=t[t.length-1]==="/";return(t=Ni(t,!i)).length===0?i?"/":s?"./":".":(s&&(t+="/"),Fi.test(t)&&(t+="/"),e?i?`//${t}`:`//./${t}`:i&&!ee(t)?`/${t}`:t)},"pathe_M_eThtNZ_normalize"),Lt=d(function(...t){let e="";for(let i of t)if(i)if(e.length>0){let s=e[e.length-1]==="/",r=i[0]==="/";e+=s&&r?i.slice(1):s||r?i:`/${i}`}else e+=i;return Is(e)},"pathe_M_eThtNZ_join");function Ds(){return typeof process<"u"&&typeof process.cwd=="function"?process.cwd().replace(/\\/g,"/"):"/"}d(Ds,"pathe_M_eThtNZ_cwd");let Ts=d(function(...t){let e="",i=!1;for(let s=(t=t.map(r=>ot(r))).length-1;s>=-1&&!i;s--){let r=s>=0?t[s]:Ds();r&&r.length!==0&&(e=`${r}/${e}`,i=ee(r))}return e=Ni(e,!i),i&&!ee(e)?`/${e}`:e.length>0?e:"."},"pathe_M_eThtNZ_resolve");function Ni(t,e){let i="",s=0,r=-1,o=0,u=null;for(let l=0;l<=t.length;++l){if(l<t.length)u=t[l];else{if(u==="/")break;u="/"}if(u==="/"){if(!(r===l-1||o===1))if(o===2){if(i.length<2||s!==2||i[i.length-1]!=="."||i[i.length-2]!=="."){if(i.length>2){let f=i.lastIndexOf("/");f===-1?(i="",s=0):(i=i.slice(0,f),s=i.length-1-i.lastIndexOf("/")),r=l,o=0;continue}if(i.length>0){i="",s=0,r=l,o=0;continue}}e&&(i+=i.length>0?"/..":"..",s=2)}else i.length>0?i+=`/${t.slice(r+1,l)}`:i=t.slice(r+1,l),s=l-r-1;r=l,o=0}else u==="."&&o!==-1?++o:o=-1}return i}d(Ni,"normalizeString");let ee=d(function(t){return de.test(t)},"isAbsolute"),fi=d(function(t){if(t==="..")return"";let e=Ss.exec(ot(t));return e&&e[1]||""},"extname"),Re=d(function(t){let e=ot(t).replace(/\/$/,"").split("/").slice(0,-1);return e.length===1&&Fi.test(e[0])&&(e[0]+="/"),e.join("/")||(ee(t)?"/":".")},"pathe_M_eThtNZ_dirname"),di=d(function(t,e){let i=ot(t).split("/"),s="";for(let r=i.length-1;r>=0;r--){let o=i[r];if(o){s=o;break}}return e&&s.endsWith(e)?s.slice(0,-e.length):s},"basename"),U=gt("node:url"),zt=gt("node:assert"),ie=gt("node:process");var mi=_t("node:path");let Rs=gt("node:v8"),ti=gt("node:util"),Li=new Set(M.builtinModules);function gi(t){return t.replace(/\\/g,"/")}d(gi,"normalizeSlash");let Ps={}.hasOwnProperty,Fs=/^([A-Z][a-z\d]*)+$/,Ns=new Set(["string","function","number","object","Function","Object","boolean","bigint","symbol"]),yt={};function xi(t,e="and"){return t.length<3?t.join(` ${e} `):`${t.slice(0,-1).join(", ")}, ${e} ${t[t.length-1]}`}d(xi,"formatList");let Bi=new Map,Oi;function It(t,e,i){return Bi.set(t,e),(function(s,r){return o;function o(...u){let l=Error.stackTraceLimit;vi()&&(Error.stackTraceLimit=0);let f=new s;vi()&&(Error.stackTraceLimit=l);let x=(function(g,_,y){let T=Bi.get(g);if(zt.ok(T!==void 0,"expected `message` to be found"),typeof T=="function")return zt.ok(T.length<=_.length,`Code: ${g}; The provided arguments length (${_.length}) does not match the required ones (${T.length}).`),Reflect.apply(T,y,_);let q=/%[dfijoOs]/g,B=0;for(;q.exec(T)!==null;)B++;return zt.ok(B===_.length,`Code: ${g}; The provided arguments length (${_.length}) does not match the required ones (${B}).`),_.length===0?T:(_.unshift(T),Reflect.apply(ti.format,null,_))})(r,u,f);return Object.defineProperties(f,{message:{value:x,enumerable:!1,writable:!0,configurable:!0},toString:{value(){return`${this.name} [${r}]: ${this.message}`},enumerable:!1,writable:!0,configurable:!0}}),Ls(f),f.code=r,f}})(i,t)}d(It,"createError");function vi(){try{if(Rs.startupSnapshot.isBuildingSnapshot())return!1}catch{}let t=Object.getOwnPropertyDescriptor(Error,"stackTraceLimit");return t===void 0?Object.isExtensible(Error):Ps.call(t,"writable")&&t.writable!==void 0?t.writable:t.set!==void 0}d(vi,"isErrorStackTraceLimitWritable"),yt.ERR_INVALID_ARG_TYPE=It("ERR_INVALID_ARG_TYPE",(t,e,i)=>{zt.ok(typeof t=="string","'name' must be a string"),Array.isArray(e)||(e=[e]);let s="The ";if(t.endsWith(" argument"))s+=`${t} `;else{let l=t.includes(".")?"property":"argument";s+=`"${t}" ${l} `}s+="must be ";let r=[],o=[],u=[];for(let l of e)zt.ok(typeof l=="string","All expected entries have to be of type string"),Ns.has(l)?r.push(l.toLowerCase()):Fs.exec(l)===null?(zt.ok(l!=="object",'The value "object" should be written as "Object"'),u.push(l)):o.push(l);if(o.length>0){let l=r.indexOf("object");l!==-1&&(r.slice(l,1),o.push("Object"))}return r.length>0&&(s+=`${r.length>1?"one of type":"of type"} ${xi(r,"or")}`,(o.length>0||u.length>0)&&(s+=" or ")),o.length>0&&(s+=`an instance of ${xi(o,"or")}`,u.length>0&&(s+=" or ")),u.length>0&&(u.length>1?s+=`one of ${xi(u,"or")}`:(u[0].toLowerCase()!==u[0]&&(s+="an "),s+=`${u[0]}`)),s+=`. Received ${(function(l){if(l==null)return String(l);if(typeof l=="function"&&l.name)return`function ${l.name}`;if(typeof l=="object")return l.constructor&&l.constructor.name?`an instance of ${l.constructor.name}`:`${(0,ti.inspect)(l,{depth:-1})}`;let f=(0,ti.inspect)(l,{colors:!1});return f.length>28&&(f=`${f.slice(0,25)}...`),`type ${typeof l} (${f})`})(i)}`,s},TypeError),yt.ERR_INVALID_MODULE_SPECIFIER=It("ERR_INVALID_MODULE_SPECIFIER",(t,e,i=void 0)=>`Invalid module "${t}" ${e}${i?` imported from ${i}`:""}`,TypeError),yt.ERR_INVALID_PACKAGE_CONFIG=It("ERR_INVALID_PACKAGE_CONFIG",(t,e,i)=>`Invalid package config ${t}${e?` while importing ${e}`:""}${i?`. ${i}`:""}`,Error),yt.ERR_INVALID_PACKAGE_TARGET=It("ERR_INVALID_PACKAGE_TARGET",(t,e,i,s=!1,r=void 0)=>{let o=typeof i=="string"&&!s&&i.length>0&&!i.startsWith("./");return e==="."?(zt.ok(s===!1),`Invalid "exports" main target ${JSON.stringify(i)} defined in the package config ${t}package.json${r?` imported from ${r}`:""}${o?'; targets must start with "./"':""}`):`Invalid "${s?"imports":"exports"}" target ${JSON.stringify(i)} defined for '${e}' in the package config ${t}package.json${r?` imported from ${r}`:""}${o?'; targets must start with "./"':""}`},Error),yt.ERR_MODULE_NOT_FOUND=It("ERR_MODULE_NOT_FOUND",(t,e,i=!1)=>`Cannot find ${i?"module":"package"} '${t}' imported from ${e}`,Error),yt.ERR_NETWORK_IMPORT_DISALLOWED=It("ERR_NETWORK_IMPORT_DISALLOWED","import of '%s' by %s is not supported: %s",Error),yt.ERR_PACKAGE_IMPORT_NOT_DEFINED=It("ERR_PACKAGE_IMPORT_NOT_DEFINED",(t,e,i)=>`Package import specifier "${t}" is not defined${e?` in package ${e}package.json`:""} imported from ${i}`,TypeError),yt.ERR_PACKAGE_PATH_NOT_EXPORTED=It("ERR_PACKAGE_PATH_NOT_EXPORTED",(t,e,i=void 0)=>e==="."?`No "exports" main defined in ${t}package.json${i?` imported from ${i}`:""}`:`Package subpath '${e}' is not defined by "exports" in ${t}package.json${i?` imported from ${i}`:""}`,Error),yt.ERR_UNSUPPORTED_DIR_IMPORT=It("ERR_UNSUPPORTED_DIR_IMPORT","Directory import '%s' is not supported resolving ES modules imported from %s",Error),yt.ERR_UNSUPPORTED_RESOLVE_REQUEST=It("ERR_UNSUPPORTED_RESOLVE_REQUEST",'Failed to resolve module specifier "%s" from "%s": Invalid relative URL or base scheme is not hierarchical.',TypeError),yt.ERR_UNKNOWN_FILE_EXTENSION=It("ERR_UNKNOWN_FILE_EXTENSION",(t,e)=>`Unknown file extension "${t}" for ${e}`,TypeError),yt.ERR_INVALID_ARG_VALUE=It("ERR_INVALID_ARG_VALUE",(t,e,i="is invalid")=>{let s=(0,ti.inspect)(e);return s.length>128&&(s=`${s.slice(0,128)}...`),`The ${t.includes(".")?"property":"argument"} '${t}' ${i}. Received ${s}`},TypeError);let Ls=(function(t){let e="__node_internal_"+t.name;return Object.defineProperty(t,"name",{value:e}),t})(function(t){let e=vi();return e&&(Oi=Error.stackTraceLimit,Error.stackTraceLimit=Number.POSITIVE_INFINITY),Error.captureStackTrace(t),e&&(Error.stackTraceLimit=Oi),t}),Pe={}.hasOwnProperty,{ERR_INVALID_PACKAGE_CONFIG:Bs}=yt,Vi=new Map;function Ui(t,{base:e,specifier:i}){let s=Vi.get(t);if(s)return s;let r;try{r=I.readFileSync(mi.toNamespacedPath(t),"utf8")}catch(u){let l=u;if(l.code!=="ENOENT")throw l}let o={exists:!1,pjsonPath:t,main:void 0,name:void 0,type:"none",exports:void 0,imports:void 0};if(r!==void 0){let u;try{u=JSON.parse(r)}catch(l){let f=l,x=new Bs(t,(e?`"${i}" from `:"")+(0,U.fileURLToPath)(e||i),f.message);throw x.cause=f,x}o.exists=!0,Pe.call(u,"name")&&typeof u.name=="string"&&(o.name=u.name),Pe.call(u,"main")&&typeof u.main=="string"&&(o.main=u.main),Pe.call(u,"exports")&&(o.exports=u.exports),Pe.call(u,"imports")&&(o.imports=u.imports),!Pe.call(u,"type")||u.type!=="commonjs"&&u.type!=="module"||(o.type=u.type)}return Vi.set(t,o),o}d(Ui,"read");function Ei(t){let e=new URL("package.json",t);for(;!e.pathname.endsWith("node_modules/package.json");){let i=Ui((0,U.fileURLToPath)(e),{specifier:t});if(i.exists)return i;let s=e;if(e=new URL("../package.json",e),e.pathname===s.pathname)break}return{pjsonPath:(0,U.fileURLToPath)(e),exists:!1,type:"none"}}d(Ei,"getPackageScopeConfig");function Mi(t){return Ei(t).type}d(Mi,"getPackageType");let{ERR_UNKNOWN_FILE_EXTENSION:Os}=yt,Vs={}.hasOwnProperty,Us={__proto__:null,".cjs":"commonjs",".js":"module",".json":"json",".mjs":"module"},ji={__proto__:null,"data:":d(function(t){let{1:e}=/^([^/]+\/[^;,]+)[^,]*?(;base64)?,/.exec(t.pathname)||[null,null,null];return(function(i){return i&&/\s*(text|application)\/javascript\s*(;\s*charset=utf-?8\s*)?/i.test(i)?"module":i==="application/json"?"json":null})(e)},"data:"),"file:":d(function(t,e,i){let s=(function(u){let l=u.pathname,f=l.length;for(;f--;){let x=l.codePointAt(f);if(x===47)return"";if(x===46)return l.codePointAt(f-1)===47?"":l.slice(f)}return""})(t);if(s===".js"){let u=Mi(t);return u!=="none"?u:"commonjs"}if(s===""){let u=Mi(t);return u==="none"||u==="commonjs"?"commonjs":"module"}let r=Us[s];if(r)return r;if(i)return;let o=(0,U.fileURLToPath)(t);throw new Os(s,o)},"file:"),"http:":$i,"https:":$i,"node:":d(()=>"builtin","node:")};function $i(){}d($i,"getHttpProtocolModuleFormat");let Ms=Object.freeze(["node","import"]),js=new Set(Ms);function $s(t){return js}d($s,"getConditionsSet");let ei=RegExp.prototype[Symbol.replace],{ERR_INVALID_MODULE_SPECIFIER:ii,ERR_INVALID_PACKAGE_CONFIG:Wi,ERR_INVALID_PACKAGE_TARGET:Ws,ERR_MODULE_NOT_FOUND:Gi,ERR_PACKAGE_IMPORT_NOT_DEFINED:Gs,ERR_PACKAGE_PATH_NOT_EXPORTED:qs,ERR_UNSUPPORTED_DIR_IMPORT:Ks,ERR_UNSUPPORTED_RESOLVE_REQUEST:qi}=yt,Ki={}.hasOwnProperty,Hi=/(^|\\|\/)((\.|%2e)(\.|%2e)?|(n|%6e|%4e)(o|%6f|%4f)(d|%64|%44)(e|%65|%45)(_|%5f)(m|%6d|%4d)(o|%6f|%4f)(d|%64|%44)(u|%75|%55)(l|%6c|%4c)(e|%65|%45)(s|%73|%53))?(\\|\/|$)/i,zi=/(^|\\|\/)((\.|%2e)(\.|%2e)?|(n|%6e|%4e)(o|%6f|%4f)(d|%64|%44)(e|%65|%45)(_|%5f)(m|%6d|%4d)(o|%6f|%4f)(d|%64|%44)(u|%75|%55)(l|%6c|%4c)(e|%65|%45)(s|%73|%53))(\\|\/|$)/i,Hs=/^\.|%|\\/,si=/\*/g,zs=/%2f|%5c/i,Ji=new Set,Js=/[/\\]{2}/;function Yi(t,e,i,s,r,o,u){if(ie.noDeprecation)return;let l=(0,U.fileURLToPath)(s),f=Js.exec(u?t:e)!==null;ie.emitWarning(`Use of deprecated ${f?"double slash":"leading or trailing slash matching"} resolving "${t}" for module request "${e}" ${e===i?"":`matched to "${i}" `}in the "${r?"imports":"exports"}" field module resolution of the package at ${l}${o?` imported from ${(0,U.fileURLToPath)(o)}`:""}.`,"DeprecationWarning","DEP0166")}d(Yi,"emitInvalidSegmentDeprecation");function Qi(t,e,i,s){if(ie.noDeprecation||(function(l,f){let x=l.protocol;return Vs.call(ji,x)&&ji[x](l,f,!0)||null})(t,{parentURL:i.href})!=="module")return;let r=(0,U.fileURLToPath)(t.href),o=(0,U.fileURLToPath)(new URL(".",e)),u=(0,U.fileURLToPath)(i);s?mi.resolve(o,s)!==r&&ie.emitWarning(`Package ${o} has a "main" field set to "${s}", excluding the full filename and extension to the resolved file at "${r.slice(o.length)}", imported from ${u}.
|
|
16
|
+
Automatic extension resolution of the "main" field is deprecated for ES modules.`,"DeprecationWarning","DEP0151"):ie.emitWarning(`No "main" or "exports" field defined in the package.json for ${o} resolving the main entry point "${r.slice(o.length)}", imported from ${u}.
|
|
17
|
+
Default "index" lookups for the main are deprecated for ES modules.`,"DeprecationWarning","DEP0151")}d(Qi,"emitLegacyIndexDeprecation");function Xi(t){try{return(0,I.statSync)(t)}catch{}}d(Xi,"tryStatSync");function Ai(t){let e=(0,I.statSync)(t,{throwIfNoEntry:!1}),i=e?e.isFile():void 0;return i!=null&&i}d(Ai,"fileExists");function Ys(t,e,i){let s;if(e.main!==void 0){if(s=new URL(e.main,t),Ai(s))return s;let u=[`./${e.main}.js`,`./${e.main}.json`,`./${e.main}.node`,`./${e.main}/index.js`,`./${e.main}/index.json`,`./${e.main}/index.node`],l=-1;for(;++l<u.length&&(s=new URL(u[l],t),!Ai(s));)s=void 0;if(s)return Qi(s,t,i,e.main),s}let r=["./index.js","./index.json","./index.node"],o=-1;for(;++o<r.length&&(s=new URL(r[o],t),!Ai(s));)s=void 0;if(s)return Qi(s,t,i,e.main),s;throw new Gi((0,U.fileURLToPath)(new URL(".",t)),(0,U.fileURLToPath)(i))}d(Ys,"legacyMainResolve");function yi(t,e,i){return new qs((0,U.fileURLToPath)(new URL(".",e)),t,i&&(0,U.fileURLToPath)(i))}d(yi,"exportsNotFound");function Fe(t,e,i,s,r){return e=typeof e=="object"&&e!==null?JSON.stringify(e,null,""):`${e}`,new Ws((0,U.fileURLToPath)(new URL(".",i)),t,e,s,r&&(0,U.fileURLToPath)(r))}d(Fe,"invalidPackageTarget");function Qs(t,e,i,s,r,o,u,l,f){if(e!==""&&!o&&t[t.length-1]!=="/")throw Fe(i,t,s,u,r);if(!t.startsWith("./")){if(u&&!t.startsWith("../")&&!t.startsWith("/")){let y=!1;try{new URL(t),y=!0}catch{}if(!y)return es(o?ei.call(si,t,()=>e):t+e,s,f)}throw Fe(i,t,s,u,r)}if(Hi.exec(t.slice(2))!==null){if(zi.exec(t.slice(2))!==null)throw Fe(i,t,s,u,r);if(!l){let y=o?i.replace("*",()=>e):i+e;Yi(o?ei.call(si,t,()=>e):t,y,i,s,u,r,!0)}}let x=new URL(t,s),g=x.pathname,_=new URL(".",s).pathname;if(!g.startsWith(_))throw Fe(i,t,s,u,r);if(e==="")return x;if(Hi.exec(e)!==null){let y=o?i.replace("*",()=>e):i+e;zi.exec(e)===null?l||Yi(o?ei.call(si,t,()=>e):t,y,i,s,u,r,!1):(function(T,q,B,K,H){let st=`request is not a valid match in pattern "${q}" for the "${K?"imports":"exports"}" resolution of ${(0,U.fileURLToPath)(B)}`;throw new ii(T,st,H&&(0,U.fileURLToPath)(H))})(y,i,s,u,r)}return o?new URL(ei.call(si,x.href,()=>e)):new URL(e,x)}d(Qs,"resolvePackageTargetString");function Xs(t){let e=Number(t);return`${e}`===t&&e>=0&&e<4294967295}d(Xs,"isArrayIndex");function me(t,e,i,s,r,o,u,l,f){if(typeof e=="string")return Qs(e,i,s,t,r,o,u,l,f);if(Array.isArray(e)){let x=e;if(x.length===0)return null;let g,_=-1;for(;++_<x.length;){let y=x[_],T;try{T=me(t,y,i,s,r,o,u,l,f)}catch(q){if(g=q,q.code==="ERR_INVALID_PACKAGE_TARGET")continue;throw q}if(T!==void 0){if(T!==null)return T;g=null}}if(g==null)return null;throw g}if(typeof e=="object"&&e!==null){let x=Object.getOwnPropertyNames(e),g=-1;for(;++g<x.length;)if(Xs(x[g]))throw new Wi((0,U.fileURLToPath)(t),r,'"exports" cannot contain numeric property keys.');for(g=-1;++g<x.length;){let _=x[g];if(_==="default"||f&&f.has(_)){let y=me(t,e[_],i,s,r,o,u,l,f);if(y===void 0)continue;return y}}return null}if(e===null)return null;throw Fe(s,e,t,u,r)}d(me,"resolvePackageTarget");function Zs(t,e,i){if(ie.noDeprecation)return;let s=(0,U.fileURLToPath)(e);Ji.has(s+"|"+t)||(Ji.add(s+"|"+t),ie.emitWarning(`Use of deprecated trailing slash pattern mapping "${t}" in the "exports" field module resolution of the package at ${s}${i?` imported from ${(0,U.fileURLToPath)(i)}`:""}. Mapping specifiers ending in "/" is no longer supported.`,"DeprecationWarning","DEP0155"))}d(Zs,"emitTrailingSlashPatternDeprecation");function Zi(t,e,i,s,r){let o=i.exports;if((function(g,_,y){if(typeof g=="string"||Array.isArray(g))return!0;if(typeof g!="object"||g===null)return!1;let T=Object.getOwnPropertyNames(g),q=!1,B=0,K=-1;for(;++K<T.length;){let H=T[K],st=H===""||H[0]!==".";if(B++===0)q=st;else if(q!==st)throw new Wi((0,U.fileURLToPath)(_),y,`"exports" cannot contain some keys starting with '.' and some not. The exports object must either be an object of package subpath keys or an object of main entry condition name keys only.`)}return q})(o,t,s)&&(o={".":o}),Ki.call(o,e)&&!e.includes("*")&&!e.endsWith("/")){let g=me(t,o[e],"",e,s,!1,!1,!1,r);if(g==null)throw yi(e,t,s);return g}let u="",l="",f=Object.getOwnPropertyNames(o),x=-1;for(;++x<f.length;){let g=f[x],_=g.indexOf("*");if(_!==-1&&e.startsWith(g.slice(0,_))){e.endsWith("/")&&Zs(e,t,s);let y=g.slice(_+1);e.length>=g.length&&e.endsWith(y)&&ts(u,g)===1&&g.lastIndexOf("*")===_&&(u=g,l=e.slice(_,e.length-y.length))}}if(u){let g=me(t,o[u],l,u,s,!0,!1,e.endsWith("/"),r);if(g==null)throw yi(e,t,s);return g}throw yi(e,t,s)}d(Zi,"packageExportsResolve");function ts(t,e){let i=t.indexOf("*"),s=e.indexOf("*"),r=i===-1?t.length:i+1,o=s===-1?e.length:s+1;return r>o?-1:o>r||i===-1?1:s===-1||t.length>e.length?-1:e.length>t.length?1:0}d(ts,"patternKeyCompare");function tr(t,e,i){if(t==="#"||t.startsWith("#/")||t.endsWith("/"))throw new ii(t,"is not a valid internal imports specifier name",(0,U.fileURLToPath)(e));let s,r=Ei(e);if(r.exists){s=(0,U.pathToFileURL)(r.pjsonPath);let o=r.imports;if(o)if(Ki.call(o,t)&&!t.includes("*")){let u=me(s,o[t],"",t,e,!1,!0,!1,i);if(u!=null)return u}else{let u="",l="",f=Object.getOwnPropertyNames(o),x=-1;for(;++x<f.length;){let g=f[x],_=g.indexOf("*");if(_!==-1&&t.startsWith(g.slice(0,-1))){let y=g.slice(_+1);t.length>=g.length&&t.endsWith(y)&&ts(u,g)===1&&g.lastIndexOf("*")===_&&(u=g,l=t.slice(_,t.length-y.length))}}if(u){let g=me(s,o[u],l,u,e,!0,!0,!1,i);if(g!=null)return g}}}throw(function(o,u,l){return new Gs(o,u&&(0,U.fileURLToPath)(new URL(".",u)),(0,U.fileURLToPath)(l))})(t,s,e)}d(tr,"packageImportsResolve");function es(t,e,i){if(M.builtinModules.includes(t))return new URL("node:"+t);let{packageName:s,packageSubpath:r,isScoped:o}=(function(g,_){let y=g.indexOf("/"),T=!0,q=!1;g[0]==="@"&&(q=!0,y===-1||g.length===0?T=!1:y=g.indexOf("/",y+1));let B=y===-1?g:g.slice(0,y);if(Hs.exec(B)!==null&&(T=!1),!T)throw new ii(g,"is not a valid package name",(0,U.fileURLToPath)(_));return{packageName:B,packageSubpath:"."+(y===-1?"":g.slice(y)),isScoped:q}})(t,e),u=Ei(e);if(u.exists){let g=(0,U.pathToFileURL)(u.pjsonPath);if(u.name===s&&u.exports!==void 0&&u.exports!==null)return Zi(g,r,u,e,i)}let l,f=new URL("./node_modules/"+s+"/package.json",e),x=(0,U.fileURLToPath)(f);do{let g=Xi(x.slice(0,-13));if(!g||!g.isDirectory()){l=x,f=new URL((o?"../../../../node_modules/":"../../../node_modules/")+s+"/package.json",f),x=(0,U.fileURLToPath)(f);continue}let _=Ui(x,{base:e,specifier:t});return _.exports!==void 0&&_.exports!==null?Zi(f,r,_,e,i):r==="."?Ys(f,_,e):new URL(r,f)}while(x.length!==l.length)}d(es,"packageResolve");function er(t,e,i,s){i===void 0&&(i=$s());let r=e.protocol,o=r==="data:"||r==="http:"||r==="https:",u;if((function(l){return l!==""&&(l[0]==="/"||(function(f){return f[0]==="."&&(f.length===1||f[1]==="/"||f[1]==="."&&(f.length===2||f[2]==="/"))})(l))})(t))try{u=new URL(t,e)}catch(l){let f=new qi(t,e);throw f.cause=l,f}else if(r==="file:"&&t[0]==="#")u=tr(t,e,i);else try{u=new URL(t)}catch(l){if(o&&!M.builtinModules.includes(t)){let f=new qi(t,e);throw f.cause=l,f}u=es(t,e,i)}return zt.ok(u!==void 0,"expected to be defined"),u.protocol!=="file:"?u:(function(l,f){if(zs.exec(l.pathname)!==null)throw new ii(l.pathname,'must not include encoded "/" or "\\" characters',(0,U.fileURLToPath)(f));let x;try{x=(0,U.fileURLToPath)(l)}catch(_){let y=_;throw Object.defineProperty(y,"input",{value:String(l)}),Object.defineProperty(y,"module",{value:String(f)}),y}let g=Xi(x.endsWith("/")?x.slice(-1):x);if(g&&g.isDirectory()){let _=new Ks(x,(0,U.fileURLToPath)(f));throw _.url=String(l),_}if(!g||!g.isFile()){let _=new Gi(x||l.pathname,f&&(0,U.fileURLToPath)(f),!0);throw _.url=String(l),_}{let _=(0,I.realpathSync)(x),{search:y,hash:T}=l;(l=(0,U.pathToFileURL)(_+(x.endsWith(mi.sep)?"/":""))).search=y,l.hash=T}return l})(u,e)}d(er,"moduleResolve");function ge(t){return typeof t!="string"||t.startsWith("file://")?gi((0,U.fileURLToPath)(t)):gi(t)}d(ge,"fileURLToPath");function se(t){return(0,U.pathToFileURL)(ge(t)).toString()}d(se,"pathToFileURL");let ir=new Set(["node","import"]),sr=[".mjs",".cjs",".js",".json"],rr=new Set(["ERR_MODULE_NOT_FOUND","ERR_UNSUPPORTED_DIR_IMPORT","MODULE_NOT_FOUND","ERR_PACKAGE_PATH_NOT_EXPORTED"]);function is(t,e,i){try{return er(t,e,i)}catch(s){if(!rr.has(s?.code))throw s}}d(is,"_tryModuleResolve");function nr(t,e={}){if(typeof t!="string"){if(!(t instanceof URL))throw new TypeError("input must be a `string` or `URL`");t=ge(t)}if(/(?:node|data|http|https):/.test(t))return t;if(Li.has(t))return"node:"+t;if(t.startsWith("file://")&&(t=ge(t)),ee(t))try{if((0,I.statSync)(t).isFile())return se(t)}catch(u){if(u?.code!=="ENOENT")throw u}let i=e.conditions?new Set(e.conditions):ir,s=(Array.isArray(e.url)?e.url:[e.url]).filter(Boolean).map(u=>new URL((function(l){return typeof l!="string"&&(l=l.toString()),/(?:node|data|http|https|file):/.test(l)?l:Li.has(l)?"node:"+l:"file://"+encodeURI(gi(l))})(u.toString())));s.length===0&&s.push(new URL(se(process.cwd())));let r=[...s];for(let u of s)u.protocol==="file:"&&r.push(new URL("./",u),new URL(te(u.pathname,"_index.js"),u),new URL("node_modules",u));let o;for(let u of r){if(o=is(t,u,i),o)break;for(let l of["","/index"]){for(let f of e.extensions||sr)if(o=is(te(t,l)+f,u,i),o)break;if(o)break}if(o)break}if(!o){let u=new Error(`Cannot find module ${t} imported from ${r.join(", ")}`);throw u.code="ERR_MODULE_NOT_FOUND",u}return se(o)}d(nr,"_resolve");function ar(t,e){return nr(t,e)}d(ar,"resolveSync");function or(t,e){return ge(ar(t,e))}d(or,"resolvePathSync");let ur=/(?:[\s;]|^)(?:import[\s\w*,{}]*from|import\s*["'*{]|export\b\s*(?:[*{]|default|class|type|function|const|var|let|async function)|import\.meta\b)/m,lr=/\/\*.+?\*\/|\/\/.*(?=[nr])/g;function hr(t,e={}){return e.stripComments&&(t=t.replace(lr,"")),ur.test(t)}d(hr,"hasESMSyntax");function ss(t){if(typeof t!="string")throw new TypeError("Expected a string");return t.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}d(ss,"escapeStringRegexp");let cr=new Set(["/","\\",void 0]),rs=Symbol.for("pathe:normalizedAlias"),pr=/[/\\]/;function ns(t){if(t[rs])return t;let e=Object.fromEntries(Object.entries(t).sort(([i],[s])=>(function(r,o){return o.split("/").length-r.split("/").length})(i,s)));for(let i in e)for(let s in e)s===i||i.startsWith(s)||e[i]?.startsWith(s)&&cr.has(e[i][s.length])&&(e[i]=e[s]+e[i].slice(s.length));return Object.defineProperty(e,rs,{value:!0,enumerable:!1}),e}d(ns,"normalizeAliases");function as(t="/"){let e=t[t.length-1];return e==="/"||e==="\\"}d(as,"utils_hasTrailingSlash");var fr={rE:"2.6.1"};let dr=gt("node:crypto");var Ci=_t.n(dr);let Ct=globalThis.process?.env||Object.create(null),Jt=globalThis.process||{env:Ct},ri=Jt!==void 0&&Jt.env&&Jt.env.NODE_ENV||void 0,mr=[["claude",["CLAUDECODE","CLAUDE_CODE"]],["replit",["REPL_ID"]],["gemini",["GEMINI_CLI"]],["codex",["CODEX_SANDBOX","CODEX_THREAD_ID"]],["opencode",["OPENCODE"]],["pi",[_i("PATH",/\.pi[\\/]agent/)]],["auggie",["AUGMENT_AGENT"]],["goose",["GOOSE_PROVIDER"]],["devin",[_i("EDITOR",/devin/)]],["cursor",["CURSOR_AGENT"]],["kiro",[_i("TERM_PROGRAM",/kiro/)]]];function _i(t,e){return()=>{let i=Ct[t];return!!i&&e.test(i)}}d(_i,"dist_i");let os=(function(){let t=Ct.AI_AGENT;if(t)return{name:t.toLowerCase()};for(let[e,i]of mr)for(let s of i)if(typeof s=="string"?Ct[s]:s())return{name:e};return{}})(),gr=(os.name,os.name,[["APPVEYOR"],["AWS_AMPLIFY","AWS_APP_ID",{ci:!0}],["AZURE_PIPELINES","SYSTEM_TEAMFOUNDATIONCOLLECTIONURI"],["AZURE_STATIC","INPUT_AZURE_STATIC_WEB_APPS_API_TOKEN"],["APPCIRCLE","AC_APPCIRCLE"],["BAMBOO","bamboo_planKey"],["BITBUCKET","BITBUCKET_COMMIT"],["BITRISE","BITRISE_IO"],["BUDDY","BUDDY_WORKSPACE_ID"],["BUILDKITE"],["CIRCLE","CIRCLECI"],["CIRRUS","CIRRUS_CI"],["CLOUDFLARE_PAGES","CF_PAGES",{ci:!0}],["CLOUDFLARE_WORKERS","WORKERS_CI",{ci:!0}],["GOOGLE_CLOUDRUN","K_SERVICE"],["GOOGLE_CLOUDRUN_JOB","CLOUD_RUN_JOB"],["CODEBUILD","CODEBUILD_BUILD_ARN"],["CODEFRESH","CF_BUILD_ID"],["DRONE"],["DRONE","DRONE_BUILD_EVENT"],["DSARI"],["GITHUB_ACTIONS"],["GITLAB","GITLAB_CI"],["GITLAB","CI_MERGE_REQUEST_ID"],["GOCD","GO_PIPELINE_LABEL"],["LAYERCI"],["JENKINS","JENKINS_URL"],["HUDSON","HUDSON_URL"],["MAGNUM"],["NETLIFY"],["NETLIFY","NETLIFY_LOCAL",{ci:!1}],["NEVERCODE"],["RENDER"],["SAIL","SAILCI"],["SEMAPHORE"],["SCREWDRIVER"],["SHIPPABLE"],["SOLANO","TDDIUM"],["STRIDER"],["TEAMCITY","TEAMCITY_VERSION"],["TRAVIS"],["VERCEL","NOW_BUILDER"],["VERCEL","VERCEL",{ci:!1}],["VERCEL","VERCEL_ENV",{ci:!1}],["APPCENTER","APPCENTER_BUILD_ID"],["CODESANDBOX","CODESANDBOX_SSE",{ci:!1}],["CODESANDBOX","CODESANDBOX_HOST",{ci:!1}],["STACKBLITZ"],["STORMKIT"],["CLEAVR"],["ZEABUR"],["CODESPHERE","CODESPHERE_APP_ID",{ci:!0}],["RAILWAY","RAILWAY_PROJECT_ID"],["RAILWAY","RAILWAY_SERVICE_ID"],["DENO-DEPLOY","DENO_DEPLOY"],["DENO-DEPLOY","DENO_DEPLOYMENT_ID"],["FIREBASE_APP_HOSTING","FIREBASE_APP_HOSTING",{ci:!0}],["EDGEONE_PAGES","EO_PAGES_CI",{ci:!0}]]),us=(function(){for(let t of gr)if(Ct[t[1]||t[0]])return{name:t[0].toLowerCase(),...t[2]};return Ct.SHELL==="/bin/jsh"&&Jt.versions?.webcontainer?{name:"stackblitz",ci:!1}:{name:"",ci:!1}})(),bi=(us.name,Jt.platform||""),Kr=!!Ct.CI||us.ci!==!1,xr=!!Jt.stdout?.isTTY,Hr=(Ct.DEBUG,ri==="test"||!!Ct.TEST),ls=(ri==="production"||Ct.MODE,ri==="dev"||ri==="development"||Ct.MODE,Ct.MINIMAL,/^win/i.test(bi)),vr=(/^linux/i.test(bi),/^darwin/i.test(bi),!Ct.NO_COLOR&&(Ct.FORCE_COLOR||(xr||ls)&&Ct.TERM),(Jt.versions?.node||"").replace(/^v/,"")||null),Er=(Number(vr?.split(".")[0]),!!Jt?.versions?.node),Ar="Bun"in globalThis,yr="Deno"in globalThis,Cr="fastly"in globalThis,_r=[["Netlify"in globalThis,"netlify"],["EdgeRuntime"in globalThis,"edge-light"],[globalThis.navigator?.userAgent==="Cloudflare-Workers","workerd"],[Cr,"fastly"],[yr,"deno"],[Ar,"bun"],[Er,"node"]];(function(){let t=_r.find(e=>e[0]);t&&t[1]})();let br=gt("node:tty"),kr=br?.WriteStream?.prototype?.hasColors?.()??!1,O=d((t,e)=>{if(!kr)return r=>r;let i=`\x1B[${t}m`,s=`\x1B[${e}m`;return r=>{let o=r+"",u=o.indexOf(s);if(u===-1)return i+o+s;let l=i,f=0,x=(e===22?s:"")+i;for(;u!==-1;)l+=o.slice(f,u)+x,f=u+s.length,u=o.indexOf(s,f);return l+=o.slice(f)+s,l}},"base_format"),hs=(O(0,0),O(1,22),O(2,22),O(3,23),O(4,24),O(53,55),O(7,27),O(8,28),O(9,29),O(30,39),O(31,39)),xe=O(32,39),ni=O(33,39),cs=O(34,39),wr=(O(35,39),O(36,39)),Sr=(O(37,39),O(90,39));O(40,49),O(41,49),O(42,49),O(43,49),O(44,49),O(45,49),O(46,49),O(47,49),O(100,49),O(91,39),O(92,39),O(93,39),O(94,39),O(95,39),O(96,39),O(97,39),O(101,49),O(102,49),O(103,49),O(104,49),O(105,49),O(106,49),O(107,49);function ps(t){if(typeof t!="string"||t.startsWith("file://"))return!1;try{return(0,I.lstatSync)(t).isDirectory()}catch{return!1}}d(ps,"isDir");function fs(t,e=8){return((function(){if(ve!==void 0)return ve;try{return ve=!!Ci().getFips?.(),ve}catch{return ve=!1,ve}})()?Ci().createHash("sha256"):Ci().createHash("md5")).update(t).digest("hex").slice(0,e)}d(fs,"utils_hash");let ds={true:xe("true"),false:ni("false"),"[rebuild]":ni("[rebuild]"),"[esm]":cs("[esm]"),"[cjs]":xe("[cjs]"),"[import]":cs("[import]"),"[require]":xe("[require]"),"[native]":wr("[native]"),"[transpile]":ni("[transpile]"),"[fallback]":hs("[fallback]"),"[unknown]":hs("[unknown]"),"[hit]":xe("[hit]"),"[miss]":ni("[miss]"),"[json]":xe("[json]"),"[data]":xe("[data]")};function ht(t,...e){if(!t.opts.debug)return;let i=process.cwd();console.log(Sr(["[jiti]",...e.map(s=>s in ds?ds[s]:typeof s!="string"?JSON.stringify(s):s.replace(i,"."))].join(" ")))}d(ht,"debug");function Wt(t,e){return t.opts.interopDefault?(function(i){let s=typeof i;if(i===null||s!=="object"&&s!=="function")return i;let r=i.default,o=typeof r,u=r==null,l=o==="object"||o==="function";if(u&&i instanceof Promise)return i;let f=o==="function"&&s!=="function",x=l&&!(r instanceof Promise),g=new Map;return new Proxy(i,{get(_,y){if(g.has(y))return g.get(y);let T;return y==="__esModule"?T=!0:y==="default"?T=u?i:typeof r?.default=="function"&&i.__esModule?r.default:r:y in _?T=_[y]:x&&(T=r[y],typeof T=="function"&&(T=T.bind(r))),g.set(y,T),T},apply:f?(_,y,T)=>Reflect.apply(r,y,T):void 0})})(e):e}d(Wt,"jitiInteropDefault");let ve;function Bt(t,e){return!!re(t,e)}d(Bt,"_booleanEnv");function re(t,e,i){let s=process.env[t];if(!(t in process.env))return e;try{return JSON.parse(s)}catch{return i?s:e}}d(re,"_jsonEnv");let ms=/\.(c|m)?j(sx?)$/,gs=/\.(c|m)?t(sx?)$/;function Ee(t,e,i){let s,r;if(t.isNativeRe.test(e))return e;if(t.resolveTsConfigPaths&&!i.skipTsConfigPaths){let l=t.resolveTsConfigPaths(e);for(let f of l){let x=Ee(t,f,{...i,try:!0,skipTsConfigPaths:!0});if(x)return x}}t.alias&&(e=(function(l,f){let x=ot(l);f=ns(f);for(let[g,_]of Object.entries(f)){if(!x.startsWith(g))continue;let y=as(g)?g.slice(0,-1):g;if(as(x[y.length]))return Lt(_,x.slice(g.length))}return x})(e,t.alias));let o=i?.parentURL||t.url;ps(o)&&(o=Lt(o,"_index.js"));let u=(i?.async?[i?.conditions,["node","import"],["node","require"]]:[i?.conditions,["node","require"],["node","import"]]).filter(Boolean);for(let l of u){try{s=or(e,{url:o,conditions:l,extensions:t.opts.extensions})}catch(f){r=f}if(s)return s}try{return t.nativeRequire.resolve(e,{paths:i.paths})}catch(l){r=l}for(let l of t.additionalExts)if(s=ki(t,e+l,o,i)||ki(t,e+"/index"+l,o,i),s||(gs.test(t.filename)||gs.test(t.parentModule?.filename||"")||ms.test(e))&&(s=ki(t,e.replace(ms,".$1t$2"),o,i),s))return s;if(!i?.try)throw r}d(Ee,"jitiResolve");function ki(t,e,i,s){try{return t.nativeRequire.resolve(e,{...s,paths:[Re(ge(i)),...s?.paths||[]]})}catch{}}d(ki,"tryNativeRequireResolve");let Ir=gt("node:fs/promises"),xs=gt("node:perf_hooks"),Dr=gt("node:vm");var Tr=_t.n(Dr);function ai(t,e,i){let s=t.parentCache||{};if(e.startsWith("node:"))return ne(t,e,i.async);if(e.startsWith("file:"))e=(0,U.fileURLToPath)(e);else if(e.startsWith("data:")){if(!i.async)throw new Error("`data:` URLs are only supported in ESM context. Use `import` or `jiti.import` instead.");return ht(t,"[native]","[data]","[import]",e),ne(t,e,!0)}if(M.builtinModules.includes(e)||e===".pnp.js")return ne(t,e,i.async);if(t.opts.virtualModules&&e in t.opts.virtualModules){ht(t,"[virtual]",e);let l=t.opts.virtualModules[e];return i.async?Promise.resolve(Wt(t,l)):Wt(t,l)}if(t.opts.tryNative&&!t.opts.transformOptions)try{if(!(e=Ee(t,e,i))&&i.try)return;if(ht(t,"[try-native]",i.async&&t.nativeImport?"[import]":"[require]",e),i.async&&t.nativeImport)return t.nativeImport(e).then(l=>(t.opts.moduleCache===!1&&delete t.nativeRequire.cache[e],Wt(t,l))).catch(l=>(ht(t,`[try-native] Using fallback for ${e} because of an error:`,l),ai({...t,opts:{...t.opts,tryNative:!1}},e,i)));{let l=t.nativeRequire(e);return t.opts.moduleCache===!1&&delete t.nativeRequire.cache[e],Wt(t,l)}}catch(l){ht(t,`[try-native] Using fallback for ${e} because of an error:`,l)}let r=Ee(t,e,i);if(!r&&i.try)return;let o=fi(r);if(o===".json"){ht(t,"[json]",r);let l=t.nativeRequire(r);return l&&!("default"in l)&&Object.defineProperty(l,"default",{value:l,enumerable:!1}),l}if(o&&!t.opts.extensions.includes(o))return ht(t,"[native]","[unknown]",i.async?"[import]":"[require]",r),ne(t,r,i.async);if(t.isNativeRe.test(r))return ht(t,"[native]",i.async?"[import]":"[require]",r),ne(t,r,i.async);if(s[r])return Wt(t,s[r]?.exports);if(t.opts.moduleCache){let l=t.nativeRequire.cache[r];if(l?.loaded)return Wt(t,l.exports)}let u=(0,I.readFileSync)(r,"utf8");return Si(t,u,{id:e,filename:r,ext:o,cache:s,async:i.async})}d(ai,"jitiRequire");function ne(t,e,i){return i&&t.nativeImport?t.nativeImport((function(s){return ls&&ee(s)?se(s):s})(e)).then(s=>Wt(t,s)):Wt(t,t.nativeRequire(e))}d(ne,"nativeImportOrRequire");let Rr="9";function Pr(t,e,i){if(!t.opts.fsCache||!e.filename)return i();let s=` /* v${Rr}-${fs(e.source,16)} */
|
|
18
|
+
`,r=`${di(Re(e.filename))}-${(function(f){let x=f.split(pr).pop();if(!x)return;let g=x.lastIndexOf(".");return g<=0?x:x.slice(0,g)})(e.filename)}`+(t.opts.sourceMaps?"+map":"")+(e.interopDefault?".i":"")+`.${fs(e.filename)}`+(e.async?".mjs":".cjs");e.jsx&&e.filename.endsWith("x")&&(r+="x");let o=t.opts.fsCache,u=Lt(o,r);if(!t.opts.rebuildFsCache&&(0,I.existsSync)(u)){let f=(0,I.readFileSync)(u,"utf8");if(f.endsWith(s))return ht(t,"[cache]","[hit]",e.filename,"~>",u),f}ht(t,"[cache]","[miss]",e.filename);let l=i();return l.includes("__JITI_ERROR__")||((0,I.writeFileSync)(u,l+s,"utf8"),ht(t,"[cache]","[store]",e.filename,"~>",u)),l}d(Pr,"getCache");function Fr(t){if(t.opts.fsCache===!0&&(t.opts.fsCache=(function(e){let i=e.filename&&Ts(e.filename,"../node_modules");if(i&&(0,I.existsSync)(i))return Lt(i,".cache/jiti");let s=(0,j.tmpdir)();if(process.env.TMPDIR&&s===process.cwd()&&!process.env.JITI_RESPECT_TMPDIR_ENV){let r=process.env.TMPDIR;delete process.env.TMPDIR,s=(0,j.tmpdir)(),process.env.TMPDIR=r}return Lt(s,"jiti")})(t)),t.opts.fsCache)try{if((0,I.mkdirSync)(t.opts.fsCache,{recursive:!0}),!(function(e){try{return(0,I.accessSync)(e,I.constants.W_OK),!0}catch{return!1}})(t.opts.fsCache))throw new Error("directory is not writable!")}catch(e){ht(t,"Error creating cache directory at ",t.opts.fsCache,e),t.opts.fsCache=!1}}d(Fr,"prepareCacheDir");function wi(t,e){let i=Pr(t,e,()=>{let s=t.opts.transform({...t.opts.transformOptions,babel:{...t.opts.sourceMaps?{sourceFileName:e.filename,sourceMaps:"inline"}:{},...t.opts.transformOptions?.babel},interopDefault:t.opts.interopDefault,...e});return s.error&&t.opts.debug&&ht(t,s.error),s.code});return i.startsWith("#!")&&(i="// "+i),i}d(wi,"transform");function Si(t,e,i={}){let s=i.id||(i.filename?di(i.filename):`_jitiEval.${i.ext||(i.async?"mjs":"js")}`),r=i.filename||Ee(t,s,{async:i.async}),o=i.ext||fi(r),u=i.cache||t.parentCache||{},l=/\.[cm]?tsx?$/.test(o),f=o===".mjs"||o===".js"&&(function(st){for(;st&&st!=="."&&st!=="/";){st=Lt(st,"..");try{let ae=(0,I.readFileSync)(Lt(st,"package.json"),"utf8");try{return JSON.parse(ae)}catch{}break}catch{}}})(r)?.type==="module",x=o===".cjs",g=i.forceTranspile??(!x&&!(f&&i.async)&&(l||f||t.isTransformRe.test(r)||hr(e))),_=xs.performance.now();if(g){e=wi(t,{filename:r,source:e,ts:l,async:i.async??!1,jsx:t.opts.jsx});let st=Math.round(1e3*(xs.performance.now()-_))/1e3;ht(t,"[transpile]",i.async?"[esm]":"[cjs]",r,`(${st}ms)`)}else{if(ht(t,"[native]",i.async?"[import]":"[require]",r),i.async)return Promise.resolve(ne(t,r,i.async)).catch(st=>(ht(t,"Native import error:",st),ht(t,"[fallback]",r),Si(t,e,{...i,forceTranspile:!0})));try{return ne(t,r,i.async)}catch(st){ht(t,"Native require error:",st),ht(t,"[fallback]",r),e=wi(t,{filename:r,source:e,ts:l,async:i.async??!1,jsx:t.opts.jsx})}}let y=new M.Module(r);y.filename=r,t.parentModule&&(y.parent=t.parentModule,Array.isArray(t.parentModule.children)&&!t.parentModule.children.includes(y)&&t.parentModule.children.push(y));let T=vs(r,t.opts,{parentModule:y,parentCache:u,nativeImport:t.nativeImport,onError:t.onError,createRequire:t.createRequire},!0),q;y.require=T,y.path=Re(r),y.paths=M.Module._nodeModulePaths(y.path),u[r]=y,t.opts.moduleCache&&(t.nativeRequire.cache[r]=y);let B=(function(st,ae){return`(${ae?.async?"async ":""}function (exports, require, module, __filename, __dirname, jitiImport, jitiESMResolve) { ${st}
|
|
19
|
+
});`})(e,{async:i.async});try{q=Tr().runInThisContext(B,{filename:r,lineOffset:0,displayErrors:!1})}catch(st){st.name==="SyntaxError"&&i.async&&t.nativeImport?(ht(t,"[esm]","[import]","[fallback]",r),q=(function(ae,Ii,Di,oi,ui){let Es=`export default ${Ii}`,As=ui?void 0:`data:text/javascript;base64,${Buffer.from(Es).toString("base64")}`;return(...Lr)=>{let Ne,ys=d(()=>(Ne=(function(Ae,Cs){let _s=Lt((0,j.tmpdir)(),"jiti-esm");try{(0,I.mkdirSync)(_s,{recursive:!0})}catch{}let bs=Lt(_s,`${di(Cs,fi(Cs))}-${Date.now()}-${Math.random().toString(36).slice(2)}.mjs`);return(0,I.writeFileSync)(bs,Ae),bs})(Es,Di),ht(ae,"[esm]","[tempfile]",Ne),oi(se(Ne))),"importViaTempFile");return(As?oi(As).catch(Ae=>{if(Ae?.code!=="ENAMETOOLONG")throw Ae;return ys()}):ys()).then(Ae=>Ae.default(...Lr)).finally(()=>{Ne&&(0,Ir.unlink)(Ne).catch(()=>{})})}})(t,B,r,t.nativeImport,t.opts.esmEvalTempFile)):(t.opts.moduleCache&&delete t.nativeRequire.cache[r],t.onError(st))}let K;try{K=q(y.exports,y.require,y,y.filename,Re(y.filename),T.import,T.esmResolve)}catch(st){t.opts.moduleCache&&delete t.nativeRequire.cache[r],t.onError(st)}function H(){if(y.exports&&y.exports.__JITI_ERROR__){let{filename:st,line:ae,column:Ii,code:Di,message:oi}=y.exports.__JITI_ERROR__,ui=new Error(`${Di}: ${oi}
|
|
20
|
+
${`${st}:${ae}:${Ii}`}`);Error.captureStackTrace(ui,ai),t.onError(ui)}return y.loaded=!0,Wt(t,y.exports)}return d(H,"next"),i.async?Promise.resolve(K).then(H):H()}d(Si,"eval_evalModule");let Nr=(0,j.platform)()==="win32";function vs(t,e={},i,s=!1){let r=s?e:(function(B){let K={fsCache:Bt("JITI_FS_CACHE",Bt("JITI_CACHE",!0)),rebuildFsCache:Bt("JITI_REBUILD_FS_CACHE",!1),moduleCache:Bt("JITI_MODULE_CACHE",Bt("JITI_REQUIRE_CACHE",!0)),debug:Bt("JITI_DEBUG",!1),sourceMaps:Bt("JITI_SOURCE_MAPS",!1),interopDefault:Bt("JITI_INTEROP_DEFAULT",!0),extensions:re("JITI_EXTENSIONS",[".js",".mjs",".cjs",".ts",".tsx",".mts",".cts",".mtsx",".ctsx"]),alias:re("JITI_ALIAS",{}),nativeModules:re("JITI_NATIVE_MODULES",[]),transformModules:re("JITI_TRANSFORM_MODULES",[]),tryNative:re("JITI_TRY_NATIVE","Bun"in globalThis),esmEvalTempFile:Bt("JITI_ESM_EVAL_TEMP_FILE",!1),jsx:Bt("JITI_JSX",!1),tsconfigPaths:re("JITI_TSCONFIG_PATHS",!1,!0)};K.jsx&&K.extensions.push(".jsx",".tsx");let H={};return B.cache!==void 0&&(H.fsCache=B.cache),B.requireCache!==void 0&&(H.moduleCache=B.requireCache),{...K,...H,...B}})(e);typeof t=="string"&&t.startsWith("file://")&&(t=ge(t));let o=r.alias&&Object.keys(r.alias).length>0?ns(r.alias||{}):void 0,u;if(r.tsconfigPaths){let{getTsconfig:B,createPathsMatcher:K}=_t("./node_modules/.pnpm/get-tsconfig@4.14.0/node_modules/get-tsconfig/dist/index.cjs"),H=B(typeof r.tsconfigPaths=="string"?r.tsconfigPaths:Re(t));H&&(u=K(H))}let l=["typescript","jiti",...r.nativeModules||[]],f=new RegExp(`node_modules/(${l.map(B=>ss(B)).join("|")})/`),x=[...r.transformModules||[]],g=new RegExp(`node_modules/(${x.map(B=>ss(B)).join("|")})/`);t||(t=process.cwd()),!s&&ps(t)&&(t=Lt(t,"_index.js"));let _=se(t),y=[...r.extensions].filter(B=>B!==".js"),T=i.createRequire(Nr?t.replace(/\//g,"\\"):t),q={filename:t,url:_,opts:r,alias:o,resolveTsConfigPaths:u,nativeModules:l,transformModules:x,isNativeRe:f,isTransformRe:g,additionalExts:y,nativeRequire:T,onError:i.onError,parentModule:i.parentModule,parentCache:i.parentCache,nativeImport:i.nativeImport,createRequire:i.createRequire};return s||ht(q,"[init]",...[["version:",fr.rE],["module-cache:",r.moduleCache],["fs-cache:",r.fsCache],["rebuild-fs-cache:",r.rebuildFsCache],["interop-defaults:",r.interopDefault]].flat()),s||Fr(q),Object.assign(function(B){return ai(q,B,{async:!1})},{cache:r.moduleCache?T.cache:Object.create(null),extensions:T.extensions,main:T.main,options:r,resolve:Object.assign(function(B,K){return Ee(q,B,{...K,async:!1})},{paths:T.resolve.paths}),transform:d(B=>wi(q,B),"transform"),evalModule:d((B,K)=>Si(q,B,K),"evalModule"),async import(B,K){let H=await ai(q,B,{...K,async:!0});return K?.default?H?.default??H:H},esmResolve(B,K){typeof K=="string"&&(K={parentURL:K});let H=Ee(q,B,{parentURL:_,...K,async:!0});return!H||typeof H!="string"||H.startsWith("file://")?H:se(H)}})}d(vs,"createJiti2")})(),Gt.exports=Pi.default})()}}),jr=Ur(Mr(),1);import{createRequire as ks}from"node:module";function $r(Tt){throw Tt}d($r,"onError");var Wr=d(Tt=>import(Tt),"nativeImport"),Ti;function Gr(...Tt){return Ti||(Ti=ks(import.meta.url)("../dist/babel.cjs")),Ti(...Tt)}d(Gr,"lazyTransform");function qr(Tt,Gt={}){return Gt.transform||(Gt={...Gt,transform:Gr}),(0,jr.default)(Tt,Gt,{onError:$r,nativeImport:Wr,createRequire:ks})}d(qr,"createJiti");export{qr as createJiti};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var a=Object.defineProperty;var r=(e,i)=>a(e,"name",{value:i,configurable:!0});import{createRequire as m}from"node:module";const n=m(import.meta.url);import"./chunk-JXWJOIH4.js";import{createRequire as o}from"node:module";var u=o(import.meta.url),t;function p(...e){return t??=u("jiti").createJiti,t(...e)}r(p,"createJiti");export{p as createJiti};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var C=Object.defineProperty;var s=(e,t)=>C(e,"name",{value:t,configurable:!0});import{createRequire as x}from"node:module";const l=x(import.meta.url);var k=(e=>typeof l<"u"?l:typeof Proxy<"u"?new Proxy(e,{get:s((t,i)=>(typeof l<"u"?l:t)[i],"get")}):e)(function(e){if(typeof l<"u")return l.apply(this,arguments);throw Error('Dynamic require of "'+e+'" is not supported')}),f=null;function I(e){if(!(typeof process>"u"||!process.versions?.bun||Object.keys(process.env).length>0)){if(f===null){f=new Map;try{let{readFileSync:t}=k("node:fs"),i=t("/proc/self/environ","utf-8");for(let o of i.split("\0")){let r=o.indexOf("=");r>0&&f.set(o.slice(0,r),o.slice(r+1))}}catch{}}return f.get(e)}}s(I,"getBunSandboxEnvValue");function _(e,t){return t?.[e]||(typeof process<"u"?process.env[e]:void 0)||I(e)||void 0}s(_,"getProviderEnvValue");function O(e,t){return new Promise((i,o)=>{t.throwIfAborted();let r=s(()=>{clearTimeout(n),o(t.reason)},"onAbort"),n=setTimeout(()=>{t.removeEventListener("abort",r),i()},e);t.addEventListener("abort",r,{once:!0})})}s(O,"sleep");var p="Login cancelled",$="Device flow timed out",A="Device flow timed out after one or more slow_down responses. This is often caused by clock drift in WSL or VM environments. Please sync or restart the VM clock and try again.";function S(e,t,i){return new Promise((o,r)=>{if(t.aborted){r(new Error(i));return}let n=s(()=>{clearTimeout(c),r(new Error(i))},"onAbort"),c=setTimeout(()=>{t.removeEventListener("abort",n),o()},e);t.addEventListener("abort",n,{once:!0})})}s(S,"abortableSleep");async function M(e){let t=typeof e.expiresInSeconds=="number"?Date.now()+e.expiresInSeconds*1e3:Number.POSITIVE_INFINITY,i=Math.max(1e3,Math.floor((e.intervalSeconds??5)*1e3)),o=0;if(e.waitBeforeFirstPoll){let r=t-Date.now();r>0&&await S(Math.min(i,r),e.signal,p)}for(;Date.now()<t;){if(e.signal.aborted)throw new Error(p);let r=await e.poll();if(r.status==="complete")return r.value;if(r.status==="failed")throw new Error(r.message);r.status==="slow_down"&&(o+=1,i=typeof r.intervalSeconds=="number"&&Number.isFinite(r.intervalSeconds)&&r.intervalSeconds>0?Math.max(1e3,Math.floor(r.intervalSeconds*1e3)):Math.max(1e3,i+5e3));let n=t-Date.now();if(n<=0)break;await S(Math.min(i,n),e.signal,p)}throw new Error(o>0?A:$)}s(M,"pollOAuthDeviceCodeFlow");function E(e){if(typeof e!="string"||!URL.canParse(e))return null;let t=new URL(e);return t.protocol==="https:"||t.protocol==="http:"?t.href:null}s(E,"trustedHttpUrl");var h="17e5f671-d194-4dfb-9706-5516cb48c098",D="https://auth.kimi.com",U=900,L=5,K=30*1e3,g=3;function b(){return(_("KIMI_CODE_OAUTH_HOST")||_("KIMI_OAUTH_HOST")||D).replace(/\/+$/,"")}s(b,"getOauthHost");function w(e){return AbortSignal.any([AbortSignal.timeout(K),e])}s(w,"requestSignal");function m(e){return new URLSearchParams(e).toString()}s(m,"formUrlEncode");async function y(e){try{let t=await e.json();return t&&typeof t=="object"?t:null}catch{return null}}s(y,"readJson");async function N(e,t){let i=await fetch(`${e}/api/oauth/device_authorization`,{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded",Accept:"application/json"},body:m({client_id:h}),signal:w(t)});if(!i.ok){let v=await i.text().catch(()=>"");throw new Error(`Kimi Code device authorization failed with status ${i.status}${v?`: ${v}`:""}`)}let o=await y(i),r=o?.device_code,n=o?.user_code,c=E(o?.verification_uri),a=E(o?.verification_uri_complete);if(typeof r!="string"||typeof n!="string"||!c||!a)throw new Error(`Invalid Kimi Code device authorization response: ${JSON.stringify(o)}`);let u=o?.interval,d=o?.expires_in;return{deviceCode:r,userCode:n,verificationUri:c,verificationUriComplete:a,intervalSeconds:typeof u=="number"&&Number.isFinite(u)&&u>0?u:L,expiresInSeconds:typeof d=="number"&&Number.isFinite(d)&&d>0?d:U}}s(N,"startDeviceAuthorization");function T(e,t){let i=e?.access_token,o=e?.refresh_token,r=e?.expires_in;if(typeof i!="string"||!i||typeof o!="string"||!o||typeof r!="number"||!Number.isFinite(r)||r<=0)throw new Error(`Kimi Code token ${t} response missing fields: ${JSON.stringify(e)}`);return{access:i,refresh:o,expires:Date.now()+r*1e3}}s(T,"parseTokenResponse");async function P(e,t,i){return M({intervalSeconds:t.intervalSeconds,expiresInSeconds:t.expiresInSeconds,waitBeforeFirstPoll:!0,signal:i,poll:s(async()=>{let o=await fetch(`${e}/api/oauth/token`,{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded",Accept:"application/json"},body:m({client_id:h,device_code:t.deviceCode,grant_type:"urn:ietf:params:oauth:grant-type:device_code"}),signal:w(i)});if(o.status>=500){let a=await o.text().catch(()=>"");return{status:"failed",message:`Kimi Code device token request failed with status ${o.status}${a?`: ${a}`:""}`}}let r=await y(o);if(o.ok&&typeof r?.access_token=="string")try{return{status:"complete",value:T(r,"poll")}}catch(a){return{status:"failed",message:a instanceof Error?a.message:String(a)}}let n=r?.error,c=typeof r?.error_description=="string"?`: ${r.error_description}`:"";if(n==="authorization_pending")return{status:"pending"};if(n==="slow_down"){let a=r?.interval;return{status:"slow_down",intervalSeconds:typeof a=="number"&&a>0?a:void 0}}return n==="expired_token"?{status:"failed",message:"Kimi Code device authorization expired. Please restart login."}:n==="access_denied"?{status:"failed",message:"Kimi Code login was denied."}:{status:"failed",message:`Kimi Code device token request failed (status ${o.status})${typeof n=="string"?`: ${n}${c}`:""}`}},"poll")})}s(P,"pollForToken");function R(e){return e.status===429||e.status>=500}s(R,"isRetryableRefreshFailure");async function F(e,t,i){let o;for(let r=0;r<=g;r++){if(r>0&&await O(1e3*2**(r-1),i),i.aborted)throw new Error("Kimi Code token refresh aborted");let n;try{n=await fetch(`${e}/api/oauth/token`,{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded",Accept:"application/json"},body:m({client_id:h,grant_type:"refresh_token",refresh_token:t}),signal:w(i)})}catch(u){o=u instanceof Error?u:new Error(String(u));continue}let c=await y(n);if(n.ok)return T(c,"refresh");if(n.status===401||n.status===403||c?.error==="invalid_grant"){let u=typeof c?.error_description=="string"?`: ${c.error_description}`:"";throw new Error(`Kimi Code token refresh unauthorized (status ${n.status})${u}`)}if(R(n)&&r<g){o=new Error(`Kimi Code token refresh failed with status ${n.status}`);continue}let a=JSON.stringify(c);throw new Error(`Kimi Code token refresh failed with status ${n.status}${a?`: ${a}`:""}`)}throw o??new Error("Kimi Code token refresh failed")}s(F,"refreshToken");async function H(e){let t=b(),i=await N(t,e.signal);e.notify({type:"device_code",userCode:i.userCode,verificationUri:i.verificationUriComplete,intervalSeconds:i.intervalSeconds,expiresInSeconds:i.expiresInSeconds});let o=await P(t,i,e.signal);return{type:"oauth",access:o.access,refresh:o.refresh,expires:o.expires}}s(H,"loginKimiCoding");var q={name:"Kimi Code (subscription)",isSubscription:!0,loginLabel:"Sign in with Kimi Code",login:H,refresh:s(async(e,t)=>{let i=await F(b(),e.refresh,t);return{type:"oauth",access:i.access,refresh:i.refresh,expires:i.expires}},"refresh"),async toAuth(e){return{headers:{Authorization:`Bearer ${e.access}`}}}};export{q as kimiCodingOAuth};
|