@tencent-ai/agent-sdk 0.3.263-dev.90f0e98.202609190050 → 0.3.263
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/cli/dist/codebuddy-headless.js +1 -1
- package/cli/dist/codebuddy-lite-wb.mjs +1 -1
- package/cli/dist-server/codebuddy.js +1 -1
- package/cli/dist-server/types/node/references/index.d.ts +2 -0
- package/cli/dist-server/types/node/settings/settings-controller.d.ts +23 -0
- package/cli/dist-server/types/node/settings/settings-validate-middleware.d.ts +9 -0
- package/cli/dist-server/types/node/utils/compress-path.source.d.ts +59 -0
- package/cli/package.json +2 -3
- package/cli/product.cloudhosted.json +2 -2
- package/cli/product.internal.json +2 -2
- package/cli/product.ioa.json +2 -2
- package/cli/product.json +2 -2
- package/cli/product.selfhosted.json +2 -2
- package/package.json +2 -3
- package/cli/dist-server/types/node/a2a/a2a-artifact-download-service.d.ts +0 -51
- package/cli/dist-server/types/node/a2a/a2a-context-store.d.ts +0 -100
- package/cli/dist-server/types/node/a2a/a2a-remote-cancel.d.ts +0 -111
- package/cli/dist-server/types/node/acp/usage-by-category-calculator.d.ts +0 -45
- package/cli/dist-server/types/node/acp/usage-by-category-char-weight.d.ts +0 -9
- package/cli/dist-server/types/node/acp/usage-by-category-distribute.d.ts +0 -6
- package/cli/dist-server/types/node/acp/usage-by-category-tools-split.d.ts +0 -11
- package/cli/dist-server/types/node/agent/agent-config-cli-fields.d.ts +0 -57
- package/cli/dist-server/types/node/agent/agent-controller.d.ts +0 -127
- package/cli/dist-server/types/node/agent/agent-display.d.ts +0 -77
- package/cli/dist-server/types/node/agent/agent-runtime-adapter.d.ts +0 -69
- package/cli/dist-server/types/node/agent/custom-agent-identity.d.ts +0 -54
- package/cli/dist-server/types/node/agent/custom-agent-manager.d.ts +0 -43
- package/cli/dist-server/types/node/agent/custom-agent-path-registry.d.ts +0 -19
- package/cli/dist-server/types/node/agent/insights-data-agent-run-interceptor.d.ts +0 -67
- package/cli/dist-server/types/node/agent/interceptor-name-registry.d.ts +0 -4
- package/cli/dist-server/types/node/agent/interceptors/channel-event-interceptor.d.ts +0 -44
- package/cli/dist-server/types/node/agent/interceptors/command-interceptors.d.ts +0 -71
- package/cli/dist-server/types/node/agent/interceptors/deep-research-pending-interceptor.d.ts +0 -30
- package/cli/dist-server/types/node/agent/interceptors/env-interceptor.d.ts +0 -7
- package/cli/dist-server/types/node/agent/interceptors/file-interceptors.d.ts +0 -38
- package/cli/dist-server/types/node/agent/interceptors/image-interceptors.d.ts +0 -47
- package/cli/dist-server/types/node/agent/interceptors/index.d.ts +0 -15
- package/cli/dist-server/types/node/agent/interceptors/initial-prompt-interceptor.d.ts +0 -29
- package/cli/dist-server/types/node/agent/interceptors/model-interceptors.d.ts +0 -43
- package/cli/dist-server/types/node/agent/interceptors/sandbox-interceptor.d.ts +0 -68
- package/cli/dist-server/types/node/agent/interceptors/sensitive-user-input-interceptor.d.ts +0 -7
- package/cli/dist-server/types/node/agent/interceptors/system-reminder-interceptor.d.ts +0 -76
- package/cli/dist-server/types/node/agent/interceptors/team-resume-intent-interceptor.d.ts +0 -31
- package/cli/dist-server/types/node/agent/interceptors/telemetry-interceptors.d.ts +0 -43
- package/cli/dist-server/types/node/agent/interceptors/ultracode-effort-reminder-interceptor.d.ts +0 -21
- package/cli/dist-server/types/node/agent/interceptors/ultracode-keyword-interceptor.d.ts +0 -34
- package/cli/dist-server/types/node/agent/main-agent-acp-handler.d.ts +0 -203
- package/cli/dist-server/types/node/agent/main-agent-policy.d.ts +0 -33
- package/cli/dist-server/types/node/agent/memory-context-interceptor.d.ts +0 -84
- package/cli/dist-server/types/node/agent/stream-json-init-interceptor.d.ts +0 -9
- package/cli/dist-server/types/node/agent/subagent-limits.d.ts +0 -75
- package/cli/dist-server/types/node/agent/team-context-interceptor.d.ts +0 -42
- package/cli/dist-server/types/node/agent/team-resume-intent.d.ts +0 -20
- package/cli/dist-server/types/node/agent/teammate-failure-interceptor.d.ts +0 -67
- package/cli/dist-server/types/node/agent-home/agent-home-acp-forward.d.ts +0 -11
- package/cli/dist-server/types/node/agent-home/agent-home-agent-create.d.ts +0 -31
- package/cli/dist-server/types/node/agent-home/agent-home-audit.d.ts +0 -54
- package/cli/dist-server/types/node/agent-home/agent-home-channel-context.d.ts +0 -44
- package/cli/dist-server/types/node/agent-home/agent-home-channel-create.d.ts +0 -73
- package/cli/dist-server/types/node/agent-home/agent-home-channel-events.d.ts +0 -8
- package/cli/dist-server/types/node/agent-home/agent-home-channel-lookup.d.ts +0 -30
- package/cli/dist-server/types/node/agent-home/agent-home-channel-speech.d.ts +0 -72
- package/cli/dist-server/types/node/agent-home/agent-home-channel-task-events.d.ts +0 -45
- package/cli/dist-server/types/node/agent-home/agent-home-channel-task-order.d.ts +0 -25
- package/cli/dist-server/types/node/agent-home/agent-home-channel-tasks.d.ts +0 -156
- package/cli/dist-server/types/node/agent-home/agent-home-channel-wake-guard.d.ts +0 -35
- package/cli/dist-server/types/node/agent-home/agent-home-channel-wake.d.ts +0 -102
- package/cli/dist-server/types/node/agent-home/agent-home-colleague-job.d.ts +0 -37
- package/cli/dist-server/types/node/agent-home/agent-home-colleague-memory.d.ts +0 -52
- package/cli/dist-server/types/node/agent-home/agent-home-deliver.d.ts +0 -76
- package/cli/dist-server/types/node/agent-home/agent-home-directory-lock.d.ts +0 -22
- package/cli/dist-server/types/node/agent-home/agent-home-errors.d.ts +0 -17
- package/cli/dist-server/types/node/agent-home/agent-home-inbox.d.ts +0 -101
- package/cli/dist-server/types/node/agent-home/agent-home-main-session.d.ts +0 -33
- package/cli/dist-server/types/node/agent-home/agent-home-recipients.d.ts +0 -38
- package/cli/dist-server/types/node/agent-home/agent-home-room-context-interceptor.d.ts +0 -30
- package/cli/dist-server/types/node/agent-home/agent-home-runtime-arm-state.d.ts +0 -14
- package/cli/dist-server/types/node/agent-home/agent-home-runtime.d.ts +0 -87
- package/cli/dist-server/types/node/agent-home/agent-home-settings.d.ts +0 -39
- package/cli/dist-server/types/node/agent-home/agent-home-tool-gate.d.ts +0 -53
- package/cli/dist-server/types/node/agent-home/channel-wake-service.d.ts +0 -69
- package/cli/dist-server/types/node/agent-task/categorize-failure.d.ts +0 -65
- package/cli/dist-server/types/node/agent-team/shutdown-coordinator.d.ts +0 -98
- package/cli/dist-server/types/node/agent-team/team-runtime-adopter.d.ts +0 -13
- package/cli/dist-server/types/node/agent-team/team-runtime-manifest.d.ts +0 -66
- package/cli/dist-server/types/node/agent-team/team-runtime-status.d.ts +0 -34
- package/cli/dist-server/types/node/agent-view/agent-view-actions.d.ts +0 -205
- package/cli/dist-server/types/node/agent-view/job-reclaim-gate.d.ts +0 -13
- package/cli/dist-server/types/node/ask/index.d.ts +0 -3
- package/cli/dist-server/types/node/bash-sandbox/index.d.ts +0 -4
- package/cli/dist-server/types/node/code-ratio/cli-git-commit-watcher.d.ts +0 -159
- package/cli/dist-server/types/node/code-ratio/cli-svn-commit-watcher.d.ts +0 -111
- package/cli/dist-server/types/node/code-ratio/code-ratio-reporting-service.d.ts +0 -90
- package/cli/dist-server/types/node/code-ratio/fs-file-reader.d.ts +0 -26
- package/cli/dist-server/types/node/code-ratio/index.d.ts +0 -5
- package/cli/dist-server/types/node/code-ratio/repo-discovery.d.ts +0 -32
- package/cli/dist-server/types/node/code-ratio/vcs-repo-resolver.d.ts +0 -51
- package/cli/dist-server/types/node/control-signal/stdout-writer.d.ts +0 -99
- package/cli/dist-server/types/node/elicitation/elicitation-service.d.ts +0 -100
- package/cli/dist-server/types/node/hooks/admin-trusted.d.ts +0 -41
- package/cli/dist-server/types/node/http/api-galileo-metrics.d.ts +0 -19
- package/cli/dist-server/types/node/http/classify-network-error.d.ts +0 -21
- package/cli/dist-server/types/node/http/custom-header-http-interceptor.d.ts +0 -14
- package/cli/dist-server/types/node/http/fetch-proxy.d.ts +0 -22
- package/cli/dist-server/types/node/http/http-proxy-interceptor.d.ts +0 -74
- package/cli/dist-server/types/node/http/index.d.ts +0 -6
- package/cli/dist-server/types/node/http/workbuddy-config-dir.d.ts +0 -17
- package/cli/dist-server/types/node/lsp/index.d.ts +0 -6
- package/cli/dist-server/types/node/lsp/lsp-client.d.ts +0 -104
- package/cli/dist-server/types/node/lsp/lsp-exit-registry.d.ts +0 -16
- package/cli/dist-server/types/node/lsp/lsp-manager.d.ts +0 -91
- package/cli/dist-server/types/node/lsp/lsp-protocol.d.ts +0 -245
- package/cli/dist-server/types/node/model/effort-capabilities.d.ts +0 -64
- package/cli/dist-server/types/node/model/passthrough-header-policy.d.ts +0 -25
- package/cli/dist-server/types/node/multitask/completion-bus.d.ts +0 -36
- package/cli/dist-server/types/node/multitask/coordinator-acp-bridge.d.ts +0 -41
- package/cli/dist-server/types/node/multitask/coordinator-interceptor.d.ts +0 -7
- package/cli/dist-server/types/node/multitask/coordinator-tool-policy.d.ts +0 -18
- package/cli/dist-server/types/node/multitask/delegation-planner.d.ts +0 -6
- package/cli/dist-server/types/node/multitask/entry-guard.d.ts +0 -12
- package/cli/dist-server/types/node/multitask/host-api.d.ts +0 -63
- package/cli/dist-server/types/node/multitask/inspect-self-tool.d.ts +0 -18
- package/cli/dist-server/types/node/multitask/multitask-log.d.ts +0 -2
- package/cli/dist-server/types/node/multitask/multitask-metrics.d.ts +0 -2
- package/cli/dist-server/types/node/multitask/planner-runtime.d.ts +0 -7
- package/cli/dist-server/types/node/multitask/sandbox-reveal.d.ts +0 -35
- package/cli/dist-server/types/node/multitask/self-model.d.ts +0 -7
- package/cli/dist-server/types/node/multitask/slash-entry.d.ts +0 -14
- package/cli/dist-server/types/node/multitask/spawn-detached.d.ts +0 -9
- package/cli/dist-server/types/node/multitask/subagent-alias.d.ts +0 -5
- package/cli/dist-server/types/node/multitask/surface-reminder.d.ts +0 -5
- package/cli/dist-server/types/node/multitask/types.d.ts +0 -123
- package/cli/dist-server/types/node/multitask/wakeup-gate.d.ts +0 -21
- package/cli/dist-server/types/node/navigation/index.d.ts +0 -2
- package/cli/dist-server/types/node/runtime/add-dir-middleware.d.ts +0 -13
- package/cli/dist-server/types/node/runtime/external-uri-opener.d.ts +0 -8
- package/cli/dist-server/types/node/runtime/file-local-storage.d.ts +0 -17
- package/cli/dist-server/types/node/runtime/workspace-folder-manager.d.ts +0 -45
- package/cli/dist-server/types/node/runtime/workspace.d.ts +0 -5
- package/cli/dist-server/types/node/sandbox-cli/network-block-records.d.ts +0 -18
- package/cli/dist-server/types/node/shortcut/shortcut-protocol.d.ts +0 -41
- package/cli/dist-server/types/node/stats/index.d.ts +0 -5
- package/cli/dist-server/types/node/tools/a2a-cancel-task-tool.d.ts +0 -55
- package/cli/dist-server/types/node/tools/a2a-get-agent-card-tool.d.ts +0 -59
- package/cli/dist-server/types/node/tools/a2a-get-task-tool.d.ts +0 -316
- package/cli/dist-server/types/node/tools/a2a-poll-retry.d.ts +0 -46
- package/cli/dist-server/types/node/tools/a2a-send-message-tool.d.ts +0 -138
- package/cli/dist-server/types/node/tools/a2a-tool-guards.d.ts +0 -48
- package/cli/dist-server/types/node/tools/agent-tool.d.ts +0 -154
- package/cli/dist-server/types/node/tools/artifact-common.d.ts +0 -80
- package/cli/dist-server/types/node/tools/artifact-control-tool.d.ts +0 -103
- package/cli/dist-server/types/node/tools/artifact-tool.d.ts +0 -109
- package/cli/dist-server/types/node/tools/ask-user-for-structured-input-tool.d.ts +0 -127
- package/cli/dist-server/types/node/tools/ask-user-question-tool.d.ts +0 -237
- package/cli/dist-server/types/node/tools/ask-user-question-validation.d.ts +0 -22
- package/cli/dist-server/types/node/tools/auto-mode/auto-mode-critique-client.d.ts +0 -51
- package/cli/dist-server/types/node/tools/auto-mode/auto-mode-strategy.d.ts +0 -21
- package/cli/dist-server/types/node/tools/auto-mode/index.d.ts +0 -15
- package/cli/dist-server/types/node/tools/background-output-files.d.ts +0 -39
- package/cli/dist-server/types/node/tools/background-output-tail-poller.d.ts +0 -60
- package/cli/dist-server/types/node/tools/bash-output-tool.d.ts +0 -34
- package/cli/dist-server/types/node/tools/bash-sandbox-approval-requester.d.ts +0 -48
- package/cli/dist-server/types/node/tools/bash-security-windows.d.ts +0 -34
- package/cli/dist-server/types/node/tools/bash-tool.d.ts +0 -204
- package/cli/dist-server/types/node/tools/channel-tasks-tool.d.ts +0 -174
- package/cli/dist-server/types/node/tools/computer-use-capabilities.d.ts +0 -23
- package/cli/dist-server/types/node/tools/computer-use-executor.d.ts +0 -130
- package/cli/dist-server/types/node/tools/computer-use-tool.d.ts +0 -86
- package/cli/dist-server/types/node/tools/create-channel-tool.d.ts +0 -82
- package/cli/dist-server/types/node/tools/create-colleague-tool.d.ts +0 -64
- package/cli/dist-server/types/node/tools/create-mode-write-guard.d.ts +0 -3
- package/cli/dist-server/types/node/tools/cron-create-tool.d.ts +0 -41
- package/cli/dist-server/types/node/tools/cron-delete-tool.d.ts +0 -28
- package/cli/dist-server/types/node/tools/cron-list-tool.d.ts +0 -27
- package/cli/dist-server/types/node/tools/defer-execute-tool.d.ts +0 -260
- package/cli/dist-server/types/node/tools/delegate-tool.d.ts +0 -71
- package/cli/dist-server/types/node/tools/edit-tool.d.ts +0 -78
- package/cli/dist-server/types/node/tools/enter-planmode-tool.d.ts +0 -29
- package/cli/dist-server/types/node/tools/enter-worktree-tool.d.ts +0 -59
- package/cli/dist-server/types/node/tools/exit-planmode-tool.d.ts +0 -86
- package/cli/dist-server/types/node/tools/file-action-report-utils.d.ts +0 -35
- package/cli/dist-server/types/node/tools/glob-tool.d.ts +0 -102
- package/cli/dist-server/types/node/tools/grep-tool.d.ts +0 -141
- package/cli/dist-server/types/node/tools/image-edit-tool.d.ts +0 -94
- package/cli/dist-server/types/node/tools/image-gen-tool.d.ts +0 -107
- package/cli/dist-server/types/node/tools/kill-shell-tool.d.ts +0 -27
- package/cli/dist-server/types/node/tools/leave-worktree-tool.d.ts +0 -54
- package/cli/dist-server/types/node/tools/list-colleagues-tool.d.ts +0 -35
- package/cli/dist-server/types/node/tools/list-mcp-resources-tool.d.ts +0 -58
- package/cli/dist-server/types/node/tools/lsp-tool.d.ts +0 -68
- package/cli/dist-server/types/node/tools/main-agent-meta-tools.d.ts +0 -107
- package/cli/dist-server/types/node/tools/malicious-block-guidance.d.ts +0 -11
- package/cli/dist-server/types/node/tools/memory-tool.d.ts +0 -33
- package/cli/dist-server/types/node/tools/message-colleague-tool.d.ts +0 -79
- package/cli/dist-server/types/node/tools/monitor-tool.d.ts +0 -216
- package/cli/dist-server/types/node/tools/monitor-ws-network-policy.d.ts +0 -64
- package/cli/dist-server/types/node/tools/monitor-ws-source.d.ts +0 -72
- package/cli/dist-server/types/node/tools/multi-edit-tool.d.ts +0 -104
- package/cli/dist-server/types/node/tools/notebook-edit-tool.d.ts +0 -75
- package/cli/dist-server/types/node/tools/notebook-read-tool.d.ts +0 -55
- package/cli/dist-server/types/node/tools/notebook-write-tool.d.ts +0 -7
- package/cli/dist-server/types/node/tools/powershell-clm-types.d.ts +0 -30
- package/cli/dist-server/types/node/tools/powershell-command-semantics.d.ts +0 -23
- package/cli/dist-server/types/node/tools/powershell-dangerous-cmdlets.d.ts +0 -72
- package/cli/dist-server/types/node/tools/powershell-destructive-warning.d.ts +0 -12
- package/cli/dist-server/types/node/tools/powershell-detection.d.ts +0 -51
- package/cli/dist-server/types/node/tools/powershell-git-safety.d.ts +0 -60
- package/cli/dist-server/types/node/tools/powershell-pty-utils.d.ts +0 -13
- package/cli/dist-server/types/node/tools/powershell-security.d.ts +0 -93
- package/cli/dist-server/types/node/tools/powershell-tool.d.ts +0 -174
- package/cli/dist-server/types/node/tools/product-interaction-tools.d.ts +0 -23
- package/cli/dist-server/types/node/tools/push-notification-tool.d.ts +0 -55
- package/cli/dist-server/types/node/tools/read-mcp-resource-tool.d.ts +0 -71
- package/cli/dist-server/types/node/tools/read-state-guard.d.ts +0 -22
- package/cli/dist-server/types/node/tools/read-tool.d.ts +0 -71
- package/cli/dist-server/types/node/tools/repl/index.d.ts +0 -10
- package/cli/dist-server/types/node/tools/repl/repl-bridge-broker.d.ts +0 -109
- package/cli/dist-server/types/node/tools/repl/repl-bridge-host.d.ts +0 -29
- package/cli/dist-server/types/node/tools/repl/repl-catalog-protocol.d.ts +0 -136
- package/cli/dist-server/types/node/tools/repl/repl-catalog-render.d.ts +0 -56
- package/cli/dist-server/types/node/tools/repl/repl-catalog-source.d.ts +0 -117
- package/cli/dist-server/types/node/tools/repl/repl-import-rewrite.d.ts +0 -17
- package/cli/dist-server/types/node/tools/repl/repl-nested-interaction.d.ts +0 -32
- package/cli/dist-server/types/node/tools/repl/repl-sandbox-result.d.ts +0 -111
- package/cli/dist-server/types/node/tools/repl/repl-tool.d.ts +0 -128
- package/cli/dist-server/types/node/tools/repl/repl-worker-manager.d.ts +0 -95
- package/cli/dist-server/types/node/tools/repl/repl-worker-source.d.ts +0 -16
- package/cli/dist-server/types/node/tools/repl/repl-worker-source.generated.d.ts +0 -2
- package/cli/dist-server/types/node/tools/report-findings-tool.d.ts +0 -97
- package/cli/dist-server/types/node/tools/running-background-tasks.d.ts +0 -26
- package/cli/dist-server/types/node/tools/sandbox-approval-helpers.d.ts +0 -19
- package/cli/dist-server/types/node/tools/sandbox-intercept-message.d.ts +0 -22
- package/cli/dist-server/types/node/tools/sandbox-network-intercept-message.d.ts +0 -25
- package/cli/dist-server/types/node/tools/sandbox-permission-file-tool.d.ts +0 -14
- package/cli/dist-server/types/node/tools/sandbox-program-blacklist-message.d.ts +0 -9
- package/cli/dist-server/types/node/tools/send-message-tool.d.ts +0 -116
- package/cli/dist-server/types/node/tools/send-user-message-attachments.d.ts +0 -22
- package/cli/dist-server/types/node/tools/send-user-message-tool.d.ts +0 -60
- package/cli/dist-server/types/node/tools/shell-stream-pusher.d.ts +0 -25
- package/cli/dist-server/types/node/tools/skill-manage-tool.d.ts +0 -77
- package/cli/dist-server/types/node/tools/skill-tool.d.ts +0 -129
- package/cli/dist-server/types/node/tools/slash-command-tool.d.ts +0 -45
- package/cli/dist-server/types/node/tools/speak-in-channel-tool.d.ts +0 -178
- package/cli/dist-server/types/node/tools/structured-output-tool.d.ts +0 -43
- package/cli/dist-server/types/node/tools/task-create-tool.d.ts +0 -72
- package/cli/dist-server/types/node/tools/task-get-tool.d.ts +0 -31
- package/cli/dist-server/types/node/tools/task-list-tool.d.ts +0 -21
- package/cli/dist-server/types/node/tools/task-output-tool.d.ts +0 -127
- package/cli/dist-server/types/node/tools/task-stop-tool.d.ts +0 -61
- package/cli/dist-server/types/node/tools/task-update-tool.d.ts +0 -79
- package/cli/dist-server/types/node/tools/team-delete-tool.d.ts +0 -38
- package/cli/dist-server/types/node/tools/todo-write-tool.d.ts +0 -117
- package/cli/dist-server/types/node/tools/tool-permission-strategy.d.ts +0 -83
- package/cli/dist-server/types/node/tools/tool-search-tool.d.ts +0 -113
- package/cli/dist-server/types/node/tools/video-gen-tool.d.ts +0 -82
- package/cli/dist-server/types/node/tools/wait-for-mcp-servers-tool.d.ts +0 -79
- package/cli/dist-server/types/node/tools/web-fetch-tool.d.ts +0 -164
- package/cli/dist-server/types/node/tools/web-search-tool.d.ts +0 -79
- package/cli/dist-server/types/node/tools/webfetch-resource-kind.d.ts +0 -25
- package/cli/dist-server/types/node/tools/wechat-reply-tool.d.ts +0 -43
- package/cli/dist-server/types/node/tools/wecom-reply-tool.d.ts +0 -65
- package/cli/dist-server/types/node/tools/workflow-tool.d.ts +0 -100
- package/cli/dist-server/types/node/tools/write-tool.d.ts +0 -74
- package/cli/dist-server/types/node/utils/stdio-persistence.d.ts +0 -39
|
@@ -108,7 +108,7 @@ function __cbcChunkRequire(p){switch(p){
|
|
|
108
108
|
case "./lazy-headless/9889.76c28cd4.js": return require("./lazy-headless/9889.76c28cd4.js");
|
|
109
109
|
case "./lazy-headless/9918.6411d0cf.js": return require("./lazy-headless/9918.6411d0cf.js");
|
|
110
110
|
default: throw new Error('unknown lazy chunk '+p);}}
|
|
111
|
-
!function(L,ei){if("object"==typeof exports&&"object"==typeof module)module.exports=ei(function(){try{return require("fsevents")}catch(L){}}(),function(){try{return require("@lydell/node-pty")}catch(L){}}());else if("function"==typeof define&&define.amd)define(["fsevents","@lydell/node-pty"],ei);else{var ea="object"==typeof exports?ei(function(){try{return require("fsevents")}catch(L){}}(),function(){try{return require("@lydell/node-pty")}catch(L){}}()):ei(L.fsevents,L["@lydell/node-pty"]);for(var es in ea)("object"==typeof exports?exports:L)[es]=ea[es]}}(global,(__rspack_external__32834,__rspack_external__58903)=>(()=>{var __webpack_modules__={20602(L,ei,ea){ea(65929);let{ContainerFactory:es}=ea(38850);ea(65816).install();let el=es.create();function load(L){return Promise.resolve(L.default).then(L=>el.load(L))}el.load(ea(35499).default),el.load(ea(56242).default),L.exports.container=Promise.resolve().then(function(){return Promise.resolve(ea(59055)).then(load)}).then(function(){return Promise.resolve(ea(59357)).then(load)}).then(function(){return Promise.resolve(ea(60414)).then(load)}).then(function(){return Promise.resolve(ea(8630)).then(load)}).then(function(){return Promise.resolve(ea(20778)).then(load)}).then(function(){return Promise.resolve(ea(80280)).then(load)}).then(function(){return Promise.resolve(ea(1451)).then(load)}).then(function(){return Promise.resolve(ea(38633)).then(load)}).then(function(){return Promise.resolve(ea(4322)).then(load)}).then(function(){return Promise.resolve(ea(91918)).then(load)}).then(function(){return Promise.resolve(ea(23665)).then(load)}).then(function(){return Promise.resolve(ea(83232)).then(load)}).then(function(){return Promise.resolve(ea(16578)).then(load)}).then(function(){return Promise.resolve(ea(51581)).then(load)}).then(function(){return Promise.resolve(ea(95503)).then(load)}).then(function(){return Promise.resolve(ea(90512)).then(load)}).then(function(){return Promise.resolve(ea(62228)).then(load)}).then(function(){return Promise.resolve(ea(37263)).then(load)}).then(function(){return Promise.resolve(ea(77573)).then(load)}).then(function(){return Promise.resolve(ea(25334)).then(load)}).then(function(){return Promise.resolve(ea(54950)).then(load)}).then(function(){return Promise.resolve(ea(80985)).then(load)}).then(function(){return Promise.resolve(ea(67759)).then(load)}).then(function(){return Promise.resolve(ea(58832)).then(load)}).then(function(){return Promise.resolve(ea(37971)).then(load)}).then(function(){return Promise.resolve(ea(28538)).then(load)}).then(function(){return Promise.resolve(ea(74437)).then(load)}).then(function(){return Promise.resolve(ea(63079)).then(load)}).then(function(){return Promise.resolve(ea(65304)).then(load)}).then(function(){return Promise.resolve(ea(81556)).then(load)}).then(function(){return Promise.resolve(ea(70645)).then(load)}).then(function(){return Promise.resolve(ea(12440)).then(load)}).then(function(){return Promise.resolve(ea(64331)).then(load)}).then(function(){return Promise.resolve(ea(71302)).then(load)}).then(function(){return Promise.resolve(ea(66191)).then(load)}).then(()=>el).catch(L=>{console.error("Failed to start the backend application."),L&&console.error(L)})},83902(L,ei){ei.config=L.exports.config={cell:{name:"Cell Framework",hostDomId:"cell-root",annotation:{Component:{proxy:!1}},aop:{enabled:!0},logger:{level:"info"},tenant:{enabled:!1},client:{config:{withCredentials:!0,headers:{"X-Requested-With":"XMLHttpRequest"}}},session:{autoCommit:!0,maxAge:864e5,sessionIdKey:"cell:sessionId",sessionKey:"cell:session"},cookies:{keys:["abcdef"]},server:{path:"/",port:0,endpoint:"http://localhost:0"},trace:{requestField:"X-Cell-Trace-ID",responseField:"X-Cell-Trace-ID"},health:{url:"/health",method:"GET"},web:{route:{cacheSize:500},validationPipeOptions:{detailedOutputDisabled:!1,transformEnabled:!0},body:{limit:"50mb"}},mvc:{path:"/*",defaultViewName:"composite",baseFileDir:"assets"},mustache:{cache:!1,baseViewDir:"assets/views"},includeModules:!0,webpack:{config:{externals:{vm2:"vm2","better-sqlite3":"better-sqlite3",vscode:"vscode"},resolve:{extensionAlias:{".js":[".js",".ts"]},alias:{e2b:!1,"@connectrpc/connect":!1,"@connectrpc/connect-node":!1,"@connectrpc/connect-web":!1,"@bufbuild/protobuf":!1,"lodash-es":!1,archiver:!1,"archiver-utils":!1,"compress-commons":!1,"crc32-stream":!1,"zip-stream":!1,"cos-nodejs-sdk-v5":!1,esprima:!1,execa:!1,"@opentelemetry/exporter-trace-otlp-proto":"@opentelemetry/exporter-trace-otlp-http","@opentelemetry/otlp-proto-exporter-base":!1,protobufjs:!1,lodash:!1,"lodash.mergewith":!1,"common-tags":!1,"har-validator":!1,"es-abstract":!1,ink:!1,"ink-spinner":!1,react:!1,"react-reconciler":!1,"use-context-selector":!1,"yoga-wasm-web":!1,"ansi-escapes":!1,"gradient-string":!1,"cli-highlight":!1,asciichart:!1,"string-width":!1,"react-devtools-core":!1}},output:{path:"/workspace/packages/agent-cli/.dist-headless",filename:"codebuddy-headless.js"}},definePlugin:{"process.env.DEV":!1,"process.env.HEADLESS":'"true"'}}},targets:["backend"],propsHooks:[],infoHooks:[],mode:["build","local","remote","externals","headless","cell"],stage:"prod",devComponents:{"@celljs/cli-service":"3.7.8"},webpack:{config:{externals:{vm2:"vm2","better-sqlite3":"better-sqlite3",vscode:"vscode"},resolve:{extensionAlias:{".js":[".js",".ts"]},alias:{e2b:!1,"@connectrpc/connect":!1,"@connectrpc/connect-node":!1,"@connectrpc/connect-web":!1,"@bufbuild/protobuf":!1,"lodash-es":!1,archiver:!1,"archiver-utils":!1,"compress-commons":!1,"crc32-stream":!1,"zip-stream":!1,"cos-nodejs-sdk-v5":!1,esprima:!1,execa:!1,"@opentelemetry/exporter-trace-otlp-proto":"@opentelemetry/exporter-trace-otlp-http","@opentelemetry/otlp-proto-exporter-base":!1,protobufjs:!1,lodash:!1,"lodash.mergewith":!1,"common-tags":!1,"har-validator":!1,"es-abstract":!1,ink:!1,"ink-spinner":!1,react:!1,"react-reconciler":!1,"use-context-selector":!1,"yoga-wasm-web":!1,"ansi-escapes":!1,"gradient-string":!1,"cli-highlight":!1,asciichart:!1,"string-width":!1,"react-devtools-core":!1}},output:{path:"/workspace/packages/agent-cli/.dist-headless",filename:"codebuddy-headless.js"}},definePlugin:{"process.env.DEV":!1,"process.env.HEADLESS":'"true"'}},env:{},currentTarget:"backend",uuid:"1fe8653b-f593-4925-94b5-28cd863c72ab",tmpDir:"/tmp",tmpSockFile:"/tmp/tmp-sock-1fe8653b-f593-4925-94b5-28cd863c72ab.sock",includeModules:!0}},21275(L,ei,ea){var es={};L.exports=es,es.themes={};var el=ea(39023),ec=es.styles=ea(90509),ed=Object.defineProperties,eu=new RegExp(/[\r\n]+/g);es.supportsColor=ea(8678).supportsColor,void 0===es.enabled&&(es.enabled=!1!==es.supportsColor()),es.enable=function(){es.enabled=!0},es.disable=function(){es.enabled=!1},es.stripColors=es.strip=function(L){return(""+L).replace(/\x1B\[\d+m/g,"")},es.stylize=function(L,ei){if(!es.enabled)return L+"";var ea=ec[ei];return!ea&&ei in es?es[ei](L):ea.open+L+ea.close};var ep=/[|\\{}()[\]^$+*?.]/g,escapeStringRegexp=function(L){if("string"!=typeof L)throw TypeError("Expected a string");return L.replace(ep,"\\$&")};function build(L){var builder=function builder(){return applyStyle.apply(builder,arguments)};return builder._styles=L,builder.__proto__=ef,builder}var eh=function(){var L={};return ec.grey=ec.gray,Object.keys(ec).forEach(function(ei){ec[ei].closeRe=RegExp(escapeStringRegexp(ec[ei].close),"g"),L[ei]={get:function(){return build(this._styles.concat(ei))}}}),L}(),ef=ed(function(){},eh);function applyStyle(){var L=Array.prototype.slice.call(arguments),ei=L.map(function(L){return null!=L&&L.constructor===String?L:el.inspect(L)}).join(" ");if(!es.enabled||!ei)return ei;for(var ea=-1!=ei.indexOf("\n"),ed=this._styles,ep=ed.length;ep--;){var eh=ec[ed[ep]];ei=eh.open+ei.replace(eh.closeRe,eh.open)+eh.close,ea&&(ei=ei.replace(eu,function(L){return eh.close+L+eh.open}))}return ei}function init(){var L={};return Object.keys(eh).forEach(function(ei){L[ei]={get:function(){return build([ei])}}}),L}es.setTheme=function(L){if("string"==typeof L)return void console.log("colors.setTheme now only accepts an object, not a string. If you are trying to set a theme from a file, it is now your (the caller's) responsibility to require the file. The old syntax looked like colors.setTheme(__dirname + '/../themes/generic-logging.js'); The new syntax looks like colors.setTheme(require(__dirname + '/../themes/generic-logging.js'));");for(var ei in L)!function(ei){es[ei]=function(ea){if("object"==typeof L[ei]){var el=ea;for(var ec in L[ei])el=es[L[ei][ec]](el);return el}return es[L[ei]](ea)}}(ei)};var sequencer=function(L,ei){var ea=ei.split("");return(ea=ea.map(L)).join("")};for(var em in es.trap=ea(40332),es.zalgo=ea(24662),es.maps={},es.maps.america=ea(55947)(es),es.maps.zebra=ea(87671)(es),es.maps.rainbow=ea(22493)(es),es.maps.random=ea(86428)(es),es.maps)!function(L){es[L]=function(ei){return sequencer(es.maps[L],ei)}}(em);ed(es,init())},40332(L){L.exports=function(L,ei){var ea="";L=(L=L||"Run the trap, drop the bass").split("");var es={a:["@","\u0104","\u023A","\u0245","\u0394","\u039B","\u0414"],b:["\xdf","\u0181","\u0243","\u026E","\u03B2","\u0E3F"],c:["\xa9","\u023B","\u03FE"],d:["\xd0","\u018A","\u0500","\u0501","\u0502","\u0503"],e:["\xcb","\u0115","\u018E","\u0258","\u03A3","\u03BE","\u04BC","\u0A6C"],f:["\u04FA"],g:["\u0262"],h:["\u0126","\u0195","\u04A2","\u04BA","\u04C7","\u050A"],i:["\u0F0F"],j:["\u0134"],k:["\u0138","\u04A0","\u04C3","\u051E"],l:["\u0139"],m:["\u028D","\u04CD","\u04CE","\u0520","\u0521","\u0D69"],n:["\xd1","\u014B","\u019D","\u0376","\u03A0","\u048A"],o:["\xd8","\xf5","\xf8","\u01FE","\u0298","\u047A","\u05DD","\u06DD","\u0E4F"],p:["\u01F7","\u048E"],q:["\u09CD"],r:["\xae","\u01A6","\u0210","\u024C","\u0280","\u042F"],s:["\xa7","\u03DE","\u03DF","\u03E8"],t:["\u0141","\u0166","\u0373"],u:["\u01B1","\u054D"],v:["\u05D8"],w:["\u0428","\u0460","\u047C","\u0D70"],x:["\u04B2","\u04FE","\u04FC","\u04FD"],y:["\xa5","\u04B0","\u04CB"],z:["\u01B5","\u0240"]};return L.forEach(function(L){var ei=Math.floor(Math.random()*(es[L=L.toLowerCase()]||[" "]).length);void 0!==es[L]?ea+=es[L][ei]:ea+=L}),ea}},24662(L){L.exports=function(L,ei){L=L||" he is here ";var ea={up:["\u030D","\u030E","\u0304","\u0305","\u033F","\u0311","\u0306","\u0310","\u0352","\u0357","\u0351","\u0307","\u0308","\u030A","\u0342","\u0313","\u0308","\u034A","\u034B","\u034C","\u0303","\u0302","\u030C","\u0350","\u0300","\u0301","\u030B","\u030F","\u0312","\u0313","\u0314","\u033D","\u0309","\u0363","\u0364","\u0365","\u0366","\u0367","\u0368","\u0369","\u036A","\u036B","\u036C","\u036D","\u036E","\u036F","\u033E","\u035B","\u0346","\u031A"],down:["\u0316","\u0317","\u0318","\u0319","\u031C","\u031D","\u031E","\u031F","\u0320","\u0324","\u0325","\u0326","\u0329","\u032A","\u032B","\u032C","\u032D","\u032E","\u032F","\u0330","\u0331","\u0332","\u0333","\u0339","\u033A","\u033B","\u033C","\u0345","\u0347","\u0348","\u0349","\u034D","\u034E","\u0353","\u0354","\u0355","\u0356","\u0359","\u035A","\u0323"],mid:["\u0315","\u031B","\u0300","\u0301","\u0358","\u0321","\u0322","\u0327","\u0328","\u0334","\u0335","\u0336","\u035C","\u035D","\u035E","\u035F","\u0360","\u0362","\u0338","\u0337","\u0361"," \u0489"]},es=[].concat(ea.up,ea.down,ea.mid);function randomNumber(L){return Math.floor(Math.random()*L)}function isChar(L){var ei=!1;return es.filter(function(ea){ei=ea===L}),ei}return function(L,ei){var es,el,ec="";for(el in(ei=ei||{}).up=void 0===ei.up||ei.up,ei.mid=void 0===ei.mid||ei.mid,ei.down=void 0===ei.down||ei.down,ei.size=void 0!==ei.size?ei.size:"maxi",L=L.split(""))if(!isChar(el)){switch(ec+=L[el],es={up:0,down:0,mid:0},ei.size){case"mini":es.up=randomNumber(8),es.mid=randomNumber(2),es.down=randomNumber(8);break;case"maxi":es.up=randomNumber(16)+3,es.mid=randomNumber(4)+1,es.down=randomNumber(64)+3;break;default:es.up=randomNumber(8)+1,es.mid=randomNumber(6)/2,es.down=randomNumber(8)+1}var ed=["up","mid","down"];for(var eu in ed)for(var ep=ed[eu],eh=0;eh<=es[ep];eh++)ei[ep]&&(ec+=ea[ep][randomNumber(ea[ep].length)])}return ec}(L,ei)}},55947(L){L.exports=function(L){return function(ei,ea,es){if(" "===ei)return ei;switch(ea%3){case 0:return L.red(ei);case 1:return L.white(ei);case 2:return L.blue(ei)}}}},22493(L){L.exports=function(L){var ei=["red","yellow","green","blue","magenta"];return function(ea,es,el){return" "===ea?ea:L[ei[es++%ei.length]](ea)}}},86428(L){L.exports=function(L){var ei=["underline","inverse","grey","yellow","red","green","blue","white","cyan","magenta","brightYellow","brightRed","brightGreen","brightBlue","brightWhite","brightCyan","brightMagenta"];return function(ea,es,el){return" "===ea?ea:L[ei[Math.round(Math.random()*(ei.length-2))]](ea)}}},87671(L){L.exports=function(L){return function(ei,ea,es){return ea%2==0?ei:L.inverse(ei)}}},90509(L){var ei={};L.exports=ei;var ea={reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],inverse:[7,27],hidden:[8,28],strikethrough:[9,29],black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],gray:[90,39],grey:[90,39],brightRed:[91,39],brightGreen:[92,39],brightYellow:[93,39],brightBlue:[94,39],brightMagenta:[95,39],brightCyan:[96,39],brightWhite:[97,39],bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgGray:[100,49],bgGrey:[100,49],bgBrightRed:[101,49],bgBrightGreen:[102,49],bgBrightYellow:[103,49],bgBrightBlue:[104,49],bgBrightMagenta:[105,49],bgBrightCyan:[106,49],bgBrightWhite:[107,49],blackBG:[40,49],redBG:[41,49],greenBG:[42,49],yellowBG:[43,49],blueBG:[44,49],magentaBG:[45,49],cyanBG:[46,49],whiteBG:[47,49]};Object.keys(ea).forEach(function(L){var es=ea[L],el=ei[L]=[];el.open="\x1b["+es[0]+"m",el.close="\x1b["+es[1]+"m"})},90324(L){"use strict";L.exports=function(L,ei){var ea=(ei=ei||process.argv||[]).indexOf("--"),es=/^-{1,2}/.test(L)?"":"--",el=ei.indexOf(es+L);return -1!==el&&(-1===ea||el<ea)}},8678(L,ei,ea){"use strict";var es=ea(70857),el=ea(90324),ec=process.env,ed=void 0;function translateLevel(L){return 0!==L&&{level:L,hasBasic:!0,has256:L>=2,has16m:L>=3}}function supportsColor(L){if(!1===ed)return 0;if(el("color=16m")||el("color=full")||el("color=truecolor"))return 3;if(el("color=256"))return 2;if(L&&!L.isTTY&&!0!==ed)return 0;var ei=+!!ed;if("win32"===process.platform){var ea=es.release().split(".");return Number(process.versions.node.split(".")[0])>=8&&Number(ea[0])>=10&&Number(ea[2])>=10586?Number(ea[2])>=14931?3:2:1}if("CI"in ec)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI"].some(function(L){return L in ec})||"codeship"===ec.CI_NAME?1:ei;if("TEAMCITY_VERSION"in ec)return+!!/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(ec.TEAMCITY_VERSION);if("TERM_PROGRAM"in ec){var eu=parseInt((ec.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(ec.TERM_PROGRAM){case"iTerm.app":return eu>=3?3:2;case"Hyper":return 3;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(ec.TERM)?2:/^screen|^xterm|^vt100|^rxvt|color|ansi|cygwin|linux/i.test(ec.TERM)||"COLORTERM"in ec?1:(ec.TERM,ei)}function getSupportLevel(L){return translateLevel(supportsColor(L))}el("no-color")||el("no-colors")||el("color=false")?ed=!1:(el("color")||el("colors")||el("color=true")||el("color=always"))&&(ed=!0),"FORCE_COLOR"in ec&&(ed=0===ec.FORCE_COLOR.length||0!==parseInt(ec.FORCE_COLOR,10)),L.exports={supportsColor:getSupportLevel,stdout:getSupportLevel(process.stdout),stderr:getSupportLevel(process.stderr)}},5406(L,ei,ea){L.exports=ea(21275)},97215(L){var ei=[],ea=[],logger=function(){};function use(L){return!~ei.indexOf(L)&&(ei.push(L),!0)}function set(L){logger=L}function enabled(L){for(var ea=[],es=0;es<ei.length;es++){if(ei[es].async){ea.push(ei[es]);continue}if(ei[es](L))return!0}return!!ea.length&&new Promise(function(ei){Promise.all(ea.map(function(ei){return ei(L)})).then(function(L){ei(L.some(Boolean))})})}function modify(L){return!~ea.indexOf(L)&&(ea.push(L),!0)}function write(){logger.apply(logger,arguments)}function process(L){for(var ei=0;ei<ea.length;ei++)L=ea[ei].apply(ea[ei],arguments);return L}function introduce(L,ei){var ea=Object.prototype.hasOwnProperty;for(var es in ei)ea.call(ei,es)&&(L[es]=ei[es]);return L}function nope(L){return L.enabled=!1,L.modify=modify,L.set=set,L.use=use,introduce(function(){return!1},L)}function yep(L){function diagnostics(){var ei=Array.prototype.slice.call(arguments,0);return write.call(write,L,process(ei,L)),!0}return L.enabled=!0,L.modify=modify,L.set=set,L.use=use,introduce(diagnostics,L)}L.exports=function(L){return L.introduce=introduce,L.enabled=enabled,L.process=process,L.modify=modify,L.write=write,L.nope=nope,L.yep=yep,L.set=set,L.use=use,L}},50048(L,ei,ea){L.exports=ea(7149)},7149(L,ei,ea){L.exports=ea(97215)(function prod(L,ei){return((ei=ei||{}).namespace=L,ei.prod=!0,ei.dev=!1,ei.force||prod.force)?prod.yep(ei):prod.nope(ei)})},61435(L,ei,ea){"use strict";Object.defineProperty(ei,"__esModule",{value:!0}),ei.createFileSystemAdapter=ei.FILE_SYSTEM_ADAPTER=void 0;let es=ea(79896);function createFileSystemAdapter(L){return void 0===L?ei.FILE_SYSTEM_ADAPTER:Object.assign(Object.assign({},ei.FILE_SYSTEM_ADAPTER),L)}ei.FILE_SYSTEM_ADAPTER={lstat:es.lstat,stat:es.stat,lstatSync:es.lstatSync,statSync:es.statSync,readdir:es.readdir,readdirSync:es.readdirSync},ei.createFileSystemAdapter=createFileSystemAdapter},92976(L,ei){"use strict";Object.defineProperty(ei,"__esModule",{value:!0}),ei.IS_SUPPORT_READDIR_WITH_FILE_TYPES=void 0;let ea=process.versions.node.split(".");if(void 0===ea[0]||void 0===ea[1])throw Error(`Unexpected behavior. The 'process.versions.node' variable has invalid value: ${process.versions.node}`);let es=Number.parseInt(ea[0],10),el=Number.parseInt(ea[1],10),ec=10,ed=es>10,eu=10===es&&el>=ec;ei.IS_SUPPORT_READDIR_WITH_FILE_TYPES=ed||eu},87497(L,ei,ea){"use strict";Object.defineProperty(ei,"__esModule",{value:!0}),ei.Settings=ei.scandirSync=ei.scandir=void 0;let es=ea(52928),el=ea(9921),ec=ea(22564);function getSettings(L={}){return L instanceof ec.default?L:new ec.default(L)}ei.Settings=ec.default,ei.scandir=function(L,ei,ea){"function"==typeof ei?es.read(L,getSettings(),ei):es.read(L,getSettings(ei),ea)},ei.scandirSync=function(L,ei){let ea=getSettings(ei);return el.read(L,ea)}},52928(L,ei,ea){"use strict";Object.defineProperty(ei,"__esModule",{value:!0}),ei.readdir=ei.readdirWithFileTypes=ei.read=void 0;let es=ea(71452),el=ea(70339),ec=ea(92976),ed=ea(61531),eu=ea(51919);function readdirWithFileTypes(L,ei,ea){ei.fs.readdir(L,{withFileTypes:!0},(es,ec)=>{if(null!==es)return void callFailureCallback(ea,es);let ed=ec.map(ea=>({dirent:ea,name:ea.name,path:eu.joinPathSegments(L,ea.name,ei.pathSegmentSeparator)}));ei.followSymbolicLinks?el(ed.map(L=>makeRplTaskEntry(L,ei)),(L,ei)=>{null!==L?callFailureCallback(ea,L):callSuccessCallback(ea,ei)}):callSuccessCallback(ea,ed)})}function makeRplTaskEntry(L,ei){return ea=>{L.dirent.isSymbolicLink()?ei.fs.stat(L.path,(es,el)=>{null!==es?ei.throwErrorOnBrokenSymbolicLink?ea(es):ea(null,L):(L.dirent=ed.fs.createDirentFromStats(L.name,el),ea(null,L))}):ea(null,L)}}function readdir(L,ei,ea){ei.fs.readdir(L,(ec,ep)=>{null!==ec?callFailureCallback(ea,ec):el(ep.map(ea=>{let el=eu.joinPathSegments(L,ea,ei.pathSegmentSeparator);return L=>{es.stat(el,ei.fsStatSettings,(es,ec)=>{if(null!==es)return void L(es);let eu={name:ea,path:el,dirent:ed.fs.createDirentFromStats(ea,ec)};ei.stats&&(eu.stats=ec),L(null,eu)})}}),(L,ei)=>{null!==L?callFailureCallback(ea,L):callSuccessCallback(ea,ei)})})}function callFailureCallback(L,ei){L(ei)}function callSuccessCallback(L,ei){L(null,ei)}ei.read=function(L,ei,ea){!ei.stats&&ec.IS_SUPPORT_READDIR_WITH_FILE_TYPES?readdirWithFileTypes(L,ei,ea):readdir(L,ei,ea)},ei.readdirWithFileTypes=readdirWithFileTypes,ei.readdir=readdir},51919(L,ei){"use strict";Object.defineProperty(ei,"__esModule",{value:!0}),ei.joinPathSegments=void 0,ei.joinPathSegments=function(L,ei,ea){return L.endsWith(ea)?L+ei:L+ea+ei}},9921(L,ei,ea){"use strict";Object.defineProperty(ei,"__esModule",{value:!0}),ei.readdir=ei.readdirWithFileTypes=ei.read=void 0;let es=ea(71452),el=ea(92976),ec=ea(61531),ed=ea(51919);function readdirWithFileTypes(L,ei){return ei.fs.readdirSync(L,{withFileTypes:!0}).map(ea=>{let es={dirent:ea,name:ea.name,path:ed.joinPathSegments(L,ea.name,ei.pathSegmentSeparator)};if(es.dirent.isSymbolicLink()&&ei.followSymbolicLinks)try{let L=ei.fs.statSync(es.path);es.dirent=ec.fs.createDirentFromStats(es.name,L)}catch(L){if(ei.throwErrorOnBrokenSymbolicLink)throw L}return es})}function readdir(L,ei){return ei.fs.readdirSync(L).map(ea=>{let el=ed.joinPathSegments(L,ea,ei.pathSegmentSeparator),eu=es.statSync(el,ei.fsStatSettings),ep={name:ea,path:el,dirent:ec.fs.createDirentFromStats(ea,eu)};return ei.stats&&(ep.stats=eu),ep})}ei.read=function(L,ei){return!ei.stats&&el.IS_SUPPORT_READDIR_WITH_FILE_TYPES?readdirWithFileTypes(L,ei):readdir(L,ei)},ei.readdirWithFileTypes=readdirWithFileTypes,ei.readdir=readdir},22564(L,ei,ea){"use strict";Object.defineProperty(ei,"__esModule",{value:!0});let es=ea(16928),el=ea(71452),ec=ea(61435);let Settings=class Settings{constructor(L={}){this._options=L,this.followSymbolicLinks=this._getValue(this._options.followSymbolicLinks,!1),this.fs=ec.createFileSystemAdapter(this._options.fs),this.pathSegmentSeparator=this._getValue(this._options.pathSegmentSeparator,es.sep),this.stats=this._getValue(this._options.stats,!1),this.throwErrorOnBrokenSymbolicLink=this._getValue(this._options.throwErrorOnBrokenSymbolicLink,!0),this.fsStatSettings=new el.Settings({followSymbolicLink:this.followSymbolicLinks,fs:this.fs,throwErrorOnBrokenSymbolicLink:this.throwErrorOnBrokenSymbolicLink})}_getValue(L,ei){return null!=L?L:ei}};ei.default=Settings},68024(L,ei){"use strict";Object.defineProperty(ei,"__esModule",{value:!0}),ei.createDirentFromStats=void 0;let DirentFromStats=class DirentFromStats{constructor(L,ei){this.name=L,this.isBlockDevice=ei.isBlockDevice.bind(ei),this.isCharacterDevice=ei.isCharacterDevice.bind(ei),this.isDirectory=ei.isDirectory.bind(ei),this.isFIFO=ei.isFIFO.bind(ei),this.isFile=ei.isFile.bind(ei),this.isSocket=ei.isSocket.bind(ei),this.isSymbolicLink=ei.isSymbolicLink.bind(ei)}};ei.createDirentFromStats=function(L,ei){return new DirentFromStats(L,ei)}},61531(L,ei,ea){"use strict";Object.defineProperty(ei,"__esModule",{value:!0}),ei.fs=void 0,ei.fs=ea(68024)},79062(L,ei,ea){"use strict";Object.defineProperty(ei,"__esModule",{value:!0}),ei.createFileSystemAdapter=ei.FILE_SYSTEM_ADAPTER=void 0;let es=ea(79896);function createFileSystemAdapter(L){return void 0===L?ei.FILE_SYSTEM_ADAPTER:Object.assign(Object.assign({},ei.FILE_SYSTEM_ADAPTER),L)}ei.FILE_SYSTEM_ADAPTER={lstat:es.lstat,stat:es.stat,lstatSync:es.lstatSync,statSync:es.statSync},ei.createFileSystemAdapter=createFileSystemAdapter},71452(L,ei,ea){"use strict";Object.defineProperty(ei,"__esModule",{value:!0}),ei.statSync=ei.stat=ei.Settings=void 0;let es=ea(51081),el=ea(3858),ec=ea(24691);function getSettings(L={}){return L instanceof ec.default?L:new ec.default(L)}ei.Settings=ec.default,ei.stat=function(L,ei,ea){"function"==typeof ei?es.read(L,getSettings(),ei):es.read(L,getSettings(ei),ea)},ei.statSync=function(L,ei){let ea=getSettings(ei);return el.read(L,ea)}},51081(L,ei){"use strict";function callFailureCallback(L,ei){L(ei)}function callSuccessCallback(L,ei){L(null,ei)}Object.defineProperty(ei,"__esModule",{value:!0}),ei.read=void 0,ei.read=function(L,ei,ea){ei.fs.lstat(L,(es,el)=>{null!==es?callFailureCallback(ea,es):el.isSymbolicLink()&&ei.followSymbolicLink?ei.fs.stat(L,(L,es)=>{null!==L?ei.throwErrorOnBrokenSymbolicLink?callFailureCallback(ea,L):callSuccessCallback(ea,el):(ei.markSymbolicLink&&(es.isSymbolicLink=()=>!0),callSuccessCallback(ea,es))}):callSuccessCallback(ea,el)})}},3858(L,ei){"use strict";Object.defineProperty(ei,"__esModule",{value:!0}),ei.read=void 0,ei.read=function(L,ei){let ea=ei.fs.lstatSync(L);if(!ea.isSymbolicLink()||!ei.followSymbolicLink)return ea;try{let ea=ei.fs.statSync(L);return ei.markSymbolicLink&&(ea.isSymbolicLink=()=>!0),ea}catch(L){if(!ei.throwErrorOnBrokenSymbolicLink)return ea;throw L}}},24691(L,ei,ea){"use strict";Object.defineProperty(ei,"__esModule",{value:!0});let es=ea(79062);let Settings=class Settings{constructor(L={}){this._options=L,this.followSymbolicLink=this._getValue(this._options.followSymbolicLink,!0),this.fs=es.createFileSystemAdapter(this._options.fs),this.markSymbolicLink=this._getValue(this._options.markSymbolicLink,!1),this.throwErrorOnBrokenSymbolicLink=this._getValue(this._options.throwErrorOnBrokenSymbolicLink,!0)}_getValue(L,ei){return null!=L?L:ei}};ei.default=Settings},54176(L,ei,ea){"use strict";Object.defineProperty(ei,"__esModule",{value:!0}),ei.Settings=ei.walkStream=ei.walkSync=ei.walk=void 0;let es=ea(66757),el=ea(59905),ec=ea(60134),ed=ea(17567);function getSettings(L={}){return L instanceof ed.default?L:new ed.default(L)}ei.Settings=ed.default,ei.walk=function(L,ei,ea){"function"==typeof ei?new es.default(L,getSettings()).read(ei):new es.default(L,getSettings(ei)).read(ea)},ei.walkSync=function(L,ei){let ea=getSettings(ei);return new ec.default(L,ea).read()},ei.walkStream=function(L,ei){let ea=getSettings(ei);return new el.default(L,ea).read()}},66757(L,ei,ea){"use strict";Object.defineProperty(ei,"__esModule",{value:!0});let es=ea(23339);let AsyncProvider=class AsyncProvider{constructor(L,ei){this._root=L,this._settings=ei,this._reader=new es.default(this._root,this._settings),this._storage=[]}read(L){this._reader.onError(ei=>{callFailureCallback(L,ei)}),this._reader.onEntry(L=>{this._storage.push(L)}),this._reader.onEnd(()=>{callSuccessCallback(L,this._storage)}),this._reader.read()}};function callFailureCallback(L,ei){L(ei)}function callSuccessCallback(L,ei){L(null,ei)}ei.default=AsyncProvider},59905(L,ei,ea){"use strict";Object.defineProperty(ei,"__esModule",{value:!0});let es=ea(2203),el=ea(23339);let StreamProvider=class StreamProvider{constructor(L,ei){this._root=L,this._settings=ei,this._reader=new el.default(this._root,this._settings),this._stream=new es.Readable({objectMode:!0,read:()=>{},destroy:()=>{this._reader.isDestroyed||this._reader.destroy()}})}read(){return this._reader.onError(L=>{this._stream.emit("error",L)}),this._reader.onEntry(L=>{this._stream.push(L)}),this._reader.onEnd(()=>{this._stream.push(null)}),this._reader.read(),this._stream}};ei.default=StreamProvider},60134(L,ei,ea){"use strict";Object.defineProperty(ei,"__esModule",{value:!0});let es=ea(17432);let SyncProvider=class SyncProvider{constructor(L,ei){this._root=L,this._settings=ei,this._reader=new es.default(this._root,this._settings)}read(){return this._reader.read()}};ei.default=SyncProvider},23339(L,ei,ea){"use strict";Object.defineProperty(ei,"__esModule",{value:!0});let es=ea(24434),el=ea(87497),ec=ea(49669),ed=ea(18714),eu=ea(73280);let AsyncReader=class AsyncReader extends eu.default{constructor(L,ei){super(L,ei),this._settings=ei,this._scandir=el.scandir,this._emitter=new es.EventEmitter,this._queue=ec(this._worker.bind(this),this._settings.concurrency),this._isFatalError=!1,this._isDestroyed=!1,this._queue.drain=()=>{this._isFatalError||this._emitter.emit("end")}}read(){return this._isFatalError=!1,this._isDestroyed=!1,setImmediate(()=>{this._pushToQueue(this._root,this._settings.basePath)}),this._emitter}get isDestroyed(){return this._isDestroyed}destroy(){if(this._isDestroyed)throw Error("The reader is already destroyed");this._isDestroyed=!0,this._queue.killAndDrain()}onEntry(L){this._emitter.on("entry",L)}onError(L){this._emitter.once("error",L)}onEnd(L){this._emitter.once("end",L)}_pushToQueue(L,ei){let ea={directory:L,base:ei};this._queue.push(ea,L=>{null!==L&&this._handleError(L)})}_worker(L,ei){this._scandir(L.directory,this._settings.fsScandirSettings,(ea,es)=>{if(null!==ea)return void ei(ea,void 0);for(let ei of es)this._handleEntry(ei,L.base);ei(null,void 0)})}_handleError(L){!this._isDestroyed&&ed.isFatalError(this._settings,L)&&(this._isFatalError=!0,this._isDestroyed=!0,this._emitter.emit("error",L))}_handleEntry(L,ei){if(this._isDestroyed||this._isFatalError)return;let ea=L.path;void 0!==ei&&(L.path=ed.joinPathSegments(ei,L.name,this._settings.pathSegmentSeparator)),ed.isAppliedFilter(this._settings.entryFilter,L)&&this._emitEntry(L),L.dirent.isDirectory()&&ed.isAppliedFilter(this._settings.deepFilter,L)&&this._pushToQueue(ea,void 0===ei?void 0:L.path)}_emitEntry(L){this._emitter.emit("entry",L)}};ei.default=AsyncReader},18714(L,ei){"use strict";Object.defineProperty(ei,"__esModule",{value:!0}),ei.joinPathSegments=ei.replacePathSegmentSeparator=ei.isAppliedFilter=ei.isFatalError=void 0,ei.isFatalError=function(L,ei){return null===L.errorFilter||!L.errorFilter(ei)},ei.isAppliedFilter=function(L,ei){return null===L||L(ei)},ei.replacePathSegmentSeparator=function(L,ei){return L.split(/[/\\]/).join(ei)},ei.joinPathSegments=function(L,ei,ea){return""===L?ei:L.endsWith(ea)?L+ei:L+ea+ei}},73280(L,ei,ea){"use strict";Object.defineProperty(ei,"__esModule",{value:!0});let es=ea(18714);let Reader=class Reader{constructor(L,ei){this._root=L,this._settings=ei,this._root=es.replacePathSegmentSeparator(L,ei.pathSegmentSeparator)}};ei.default=Reader},17432(L,ei,ea){"use strict";Object.defineProperty(ei,"__esModule",{value:!0});let es=ea(87497),el=ea(18714),ec=ea(73280);let SyncReader=class SyncReader extends ec.default{constructor(){super(...arguments),this._scandir=es.scandirSync,this._storage=[],this._queue=new Set}read(){return this._pushToQueue(this._root,this._settings.basePath),this._handleQueue(),this._storage}_pushToQueue(L,ei){this._queue.add({directory:L,base:ei})}_handleQueue(){for(let L of this._queue.values())this._handleDirectory(L.directory,L.base)}_handleDirectory(L,ei){try{for(let ea of this._scandir(L,this._settings.fsScandirSettings))this._handleEntry(ea,ei)}catch(L){this._handleError(L)}}_handleError(L){if(el.isFatalError(this._settings,L))throw L}_handleEntry(L,ei){let ea=L.path;void 0!==ei&&(L.path=el.joinPathSegments(ei,L.name,this._settings.pathSegmentSeparator)),el.isAppliedFilter(this._settings.entryFilter,L)&&this._pushToStorage(L),L.dirent.isDirectory()&&el.isAppliedFilter(this._settings.deepFilter,L)&&this._pushToQueue(ea,void 0===ei?void 0:L.path)}_pushToStorage(L){this._storage.push(L)}};ei.default=SyncReader},17567(L,ei,ea){"use strict";Object.defineProperty(ei,"__esModule",{value:!0});let es=ea(16928),el=ea(87497);let Settings=class Settings{constructor(L={}){this._options=L,this.basePath=this._getValue(this._options.basePath,void 0),this.concurrency=this._getValue(this._options.concurrency,1/0),this.deepFilter=this._getValue(this._options.deepFilter,null),this.entryFilter=this._getValue(this._options.entryFilter,null),this.errorFilter=this._getValue(this._options.errorFilter,null),this.pathSegmentSeparator=this._getValue(this._options.pathSegmentSeparator,es.sep),this.fsScandirSettings=new el.Settings({followSymbolicLinks:this._options.followSymbolicLinks,fs:this._options.fs,pathSegmentSeparator:this._options.pathSegmentSeparator,stats:this._options.stats,throwErrorOnBrokenSymbolicLink:this._options.throwErrorOnBrokenSymbolicLink})}_getValue(L,ei){return null!=L?L:ei}};ei.default=Settings},48295(L,ei,ea){"use strict";ea.d(ei,{_:()=>eh});var es=ea(73122),__read=function(L,ei){var ea="function"==typeof Symbol&&L[Symbol.iterator];if(!ea)return L;var es,el,ec=ea.call(L),ed=[];try{for(;(void 0===ei||ei-- >0)&&!(es=ec.next()).done;)ed.push(es.value)}catch(L){el={error:L}}finally{try{es&&!es.done&&(ea=ec.return)&&ea.call(ec)}finally{if(el)throw el.error}}return ed},__spreadArray=function(L,ei,ea){if(ea||2==arguments.length)for(var es,el=0,ec=ei.length;el<ec;el++)!es&&el in ei||(es||(es=Array.prototype.slice.call(ei,0,el)),es[el]=ei[el]);return L.concat(es||Array.prototype.slice.call(ei))},el=function(){function NoopContextManager(){}return NoopContextManager.prototype.active=function(){return es.l},NoopContextManager.prototype.with=function(L,ei,ea){for(var es=[],el=3;el<arguments.length;el++)es[el-3]=arguments[el];return ei.call.apply(ei,__spreadArray([ea],__read(es),!1))},NoopContextManager.prototype.bind=function(L,ei){return ei},NoopContextManager.prototype.enable=function(){return this},NoopContextManager.prototype.disable=function(){return this},NoopContextManager}(),ec=ea(47018),ed=ea(74561),context_read=function(L,ei){var ea="function"==typeof Symbol&&L[Symbol.iterator];if(!ea)return L;var es,el,ec=ea.call(L),ed=[];try{for(;(void 0===ei||ei-- >0)&&!(es=ec.next()).done;)ed.push(es.value)}catch(L){el={error:L}}finally{try{es&&!es.done&&(ea=ec.return)&&ea.call(ec)}finally{if(el)throw el.error}}return ed},context_spreadArray=function(L,ei,ea){if(ea||2==arguments.length)for(var es,el=0,ec=ei.length;el<ec;el++)!es&&el in ei||(es||(es=Array.prototype.slice.call(ei,0,el)),es[el]=ei[el]);return L.concat(es||Array.prototype.slice.call(ei))},eu="context",ep=new el,eh=function(){function ContextAPI(){}return ContextAPI.getInstance=function(){return this._instance||(this._instance=new ContextAPI),this._instance},ContextAPI.prototype.setGlobalContextManager=function(L){return(0,ec.$G)(eu,L,ed.K.instance())},ContextAPI.prototype.active=function(){return this._getContextManager().active()},ContextAPI.prototype.with=function(L,ei,ea){for(var es,el=[],ec=3;ec<arguments.length;ec++)el[ec-3]=arguments[ec];return(es=this._getContextManager()).with.apply(es,context_spreadArray([L,ei,ea],context_read(el),!1))},ContextAPI.prototype.bind=function(L,ei){return this._getContextManager().bind(L,ei)},ContextAPI.prototype._getContextManager=function(){return(0,ec.mS)(eu)||ep},ContextAPI.prototype.disable=function(){this._getContextManager().disable(),(0,ec.kv)(eu,ed.K.instance())},ContextAPI}()},74561(L,ei,ea){"use strict";ea.d(ei,{K:()=>eu});var es=ea(47018),__read=function(L,ei){var ea="function"==typeof Symbol&&L[Symbol.iterator];if(!ea)return L;var es,el,ec=ea.call(L),ed=[];try{for(;(void 0===ei||ei-- >0)&&!(es=ec.next()).done;)ed.push(es.value)}catch(L){el={error:L}}finally{try{es&&!es.done&&(ea=ec.return)&&ea.call(ec)}finally{if(el)throw el.error}}return ed},__spreadArray=function(L,ei,ea){if(ea||2==arguments.length)for(var es,el=0,ec=ei.length;el<ec;el++)!es&&el in ei||(es||(es=Array.prototype.slice.call(ei,0,el)),es[el]=ei[el]);return L.concat(es||Array.prototype.slice.call(ei))},el=function(){function DiagComponentLogger(L){this._namespace=L.namespace||"DiagComponentLogger"}return DiagComponentLogger.prototype.debug=function(){for(var L=[],ei=0;ei<arguments.length;ei++)L[ei]=arguments[ei];return logProxy("debug",this._namespace,L)},DiagComponentLogger.prototype.error=function(){for(var L=[],ei=0;ei<arguments.length;ei++)L[ei]=arguments[ei];return logProxy("error",this._namespace,L)},DiagComponentLogger.prototype.info=function(){for(var L=[],ei=0;ei<arguments.length;ei++)L[ei]=arguments[ei];return logProxy("info",this._namespace,L)},DiagComponentLogger.prototype.warn=function(){for(var L=[],ei=0;ei<arguments.length;ei++)L[ei]=arguments[ei];return logProxy("warn",this._namespace,L)},DiagComponentLogger.prototype.verbose=function(){for(var L=[],ei=0;ei<arguments.length;ei++)L[ei]=arguments[ei];return logProxy("verbose",this._namespace,L)},DiagComponentLogger}();function logProxy(L,ei,ea){var el=(0,es.mS)("diag");if(el)return ea.unshift(ei),el[L].apply(el,__spreadArray([],__read(ea),!1))}var ec=ea(14484);function createLogLevelDiagLogger(L,ei){function _filterFunc(ea,es){var el=ei[ea];return"function"==typeof el&&L>=es?el.bind(ei):function(){}}return L<ec.u.NONE?L=ec.u.NONE:L>ec.u.ALL&&(L=ec.u.ALL),ei=ei||{},{error:_filterFunc("error",ec.u.ERROR),warn:_filterFunc("warn",ec.u.WARN),info:_filterFunc("info",ec.u.INFO),debug:_filterFunc("debug",ec.u.DEBUG),verbose:_filterFunc("verbose",ec.u.VERBOSE)}}var diag_read=function(L,ei){var ea="function"==typeof Symbol&&L[Symbol.iterator];if(!ea)return L;var es,el,ec=ea.call(L),ed=[];try{for(;(void 0===ei||ei-- >0)&&!(es=ec.next()).done;)ed.push(es.value)}catch(L){el={error:L}}finally{try{es&&!es.done&&(ea=ec.return)&&ea.call(ec)}finally{if(el)throw el.error}}return ed},diag_spreadArray=function(L,ei,ea){if(ea||2==arguments.length)for(var es,el=0,ec=ei.length;el<ec;el++)!es&&el in ei||(es||(es=Array.prototype.slice.call(ei,0,el)),es[el]=ei[el]);return L.concat(es||Array.prototype.slice.call(ei))},ed="diag",eu=function(){function DiagAPI(){function _logProxy(L){return function(){for(var ei=[],ea=0;ea<arguments.length;ea++)ei[ea]=arguments[ea];var el=(0,es.mS)("diag");if(el)return el[L].apply(el,diag_spreadArray([],diag_read(ei),!1))}}var L=this,setLogger=function(ei,ea){if(void 0===ea&&(ea={logLevel:ec.u.INFO}),ei===L){var el,ed,eu,ep=Error("Cannot use diag as the logger for itself. Please use a DiagLogger implementation like ConsoleDiagLogger or a custom implementation");return L.error(null!=(el=ep.stack)?el:ep.message),!1}"number"==typeof ea&&(ea={logLevel:ea});var eh=(0,es.mS)("diag"),ef=createLogLevelDiagLogger(null!=(ed=ea.logLevel)?ed:ec.u.INFO,ei);if(eh&&!ea.suppressOverrideMessage){var em=null!=(eu=Error().stack)?eu:"<failed to generate stacktrace>";eh.warn("Current logger will be overwritten from "+em),ef.warn("Current logger will overwrite one already registered from "+em)}return(0,es.$G)("diag",ef,L,!0)};L.setLogger=setLogger,L.disable=function(){(0,es.kv)(ed,L)},L.createComponentLogger=function(L){return new el(L)},L.verbose=_logProxy("verbose"),L.debug=_logProxy("debug"),L.info=_logProxy("info"),L.warn=_logProxy("warn"),L.error=_logProxy("error")}return DiagAPI.instance=function(){return this._instance||(this._instance=new DiagAPI),this._instance},DiagAPI}()},99229(L,ei,ea){"use strict";ea.d(ei,{L:()=>createBaggage,B:()=>baggageEntryMetadataFromString});var es=ea(74561),__read=function(L,ei){var ea="function"==typeof Symbol&&L[Symbol.iterator];if(!ea)return L;var es,el,ec=ea.call(L),ed=[];try{for(;(void 0===ei||ei-- >0)&&!(es=ec.next()).done;)ed.push(es.value)}catch(L){el={error:L}}finally{try{es&&!es.done&&(ea=ec.return)&&ea.call(ec)}finally{if(el)throw el.error}}return ed},__values=function(L){var ei="function"==typeof Symbol&&Symbol.iterator,ea=ei&&L[ei],es=0;if(ea)return ea.call(L);if(L&&"number"==typeof L.length)return{next:function(){return L&&es>=L.length&&(L=void 0),{value:L&&L[es++],done:!L}}};throw TypeError(ei?"Object is not iterable.":"Symbol.iterator is not defined.")},el=function(){function BaggageImpl(L){this._entries=L?new Map(L):new Map}return BaggageImpl.prototype.getEntry=function(L){var ei=this._entries.get(L);if(ei)return Object.assign({},ei)},BaggageImpl.prototype.getAllEntries=function(){return Array.from(this._entries.entries()).map(function(L){var ei=__read(L,2);return[ei[0],ei[1]]})},BaggageImpl.prototype.setEntry=function(L,ei){var ea=new BaggageImpl(this._entries);return ea._entries.set(L,ei),ea},BaggageImpl.prototype.removeEntry=function(L){var ei=new BaggageImpl(this._entries);return ei._entries.delete(L),ei},BaggageImpl.prototype.removeEntries=function(){for(var L,ei,ea=[],es=0;es<arguments.length;es++)ea[es]=arguments[es];var el=new BaggageImpl(this._entries);try{for(var ec=__values(ea),ed=ec.next();!ed.done;ed=ec.next()){var eu=ed.value;el._entries.delete(eu)}}catch(ei){L={error:ei}}finally{try{ed&&!ed.done&&(ei=ec.return)&&ei.call(ec)}finally{if(L)throw L.error}}return el},BaggageImpl.prototype.clear=function(){return new BaggageImpl},BaggageImpl}(),ec=Symbol("BaggageEntryMetadata"),ed=es.K.instance();function createBaggage(L){return void 0===L&&(L={}),new el(new Map(Object.entries(L)))}function baggageEntryMetadataFromString(L){return"string"!=typeof L&&(ed.error("Cannot create baggage metadata from unknown type: "+typeof L),L=""),{__TYPE__:ec,toString:function(){return L}}}},49839(L,ei,ea){"use strict";ea.d(ei,{_:()=>es});var es=ea(48295)._.getInstance()},73122(L,ei,ea){"use strict";function createContextKey(L){return Symbol.for(L)}ea.d(ei,{l:()=>es,n:()=>createContextKey});var es=new(function(){function BaseContext(L){var ei=this;ei._currentContext=L?new Map(L):new Map,ei.getValue=function(L){return ei._currentContext.get(L)},ei.setValue=function(L,ea){var es=new BaseContext(ei._currentContext);return es._currentContext.set(L,ea),es},ei.deleteValue=function(L){var ea=new BaseContext(ei._currentContext);return ea._currentContext.delete(L),ea}}return BaseContext}())},57812(L,ei,ea){"use strict";ea.d(ei,{s:()=>es});var es=ea(74561).K.instance()},14484(L,ei,ea){"use strict";var es;ea.d(ei,{u:()=>es}),function(L){L[L.NONE=0]="NONE",L[L.ERROR=30]="ERROR",L[L.WARN=50]="WARN",L[L.INFO=60]="INFO",L[L.DEBUG=70]="DEBUG",L[L.VERBOSE=80]="VERBOSE",L[L.ALL=9999]="ALL"}(es||(es={}))},19377(L,ei,ea){"use strict";ea.r(ei),ea.d(ei,{TraceFlags:()=>ev.X,createContextKey:()=>el.n,createNoopMeter:()=>ep.Ac,metrics:()=>eD.q,propagation:()=>e$.$,ValueType:()=>eh.e,context:()=>eI._,ProxyTracerProvider:()=>eg.n,createTraceState:()=>createTraceState,defaultTextMapGetter:()=>ef.q,DiagLogLevel:()=>eu.u,trace:()=>eN.u,SpanStatusCode:()=>e_.s,isValidTraceId:()=>eP.hX,ProxyTracer:()=>em.y,INVALID_TRACEID:()=>eO.RH,INVALID_SPAN_CONTEXT:()=>eO.dM,ROOT_CONTEXT:()=>el.l,default:()=>eL,DiagConsoleLogger:()=>ed,defaultTextMapSetter:()=>ef.U,isSpanContextValid:()=>eP.YA,INVALID_SPANID:()=>eO.w9,SamplingDecision:()=>ey.i,diag:()=>eM.s,SpanKind:()=>eb.v,isValidSpanId:()=>eP.wN,baggageEntryMetadataFromString:()=>es.B});var es=ea(99229),el=ea(73122),ec=[{n:"error",c:"error"},{n:"warn",c:"warn"},{n:"info",c:"info"},{n:"debug",c:"debug"},{n:"verbose",c:"trace"}],ed=function(){return function(){function _consoleFunc(L){return function(){for(var ei=[],ea=0;ea<arguments.length;ea++)ei[ea]=arguments[ea];if(console){var es=console[L];if("function"!=typeof es&&(es=console.log),"function"==typeof es)return es.apply(console,ei)}}}for(var L=0;L<ec.length;L++)this[ec[L].n]=_consoleFunc(ec[L].c)}}(),eu=ea(14484),ep=ea(31394),eh=ea(80619),ef=ea(79366),em=ea(3722),eg=ea(49899),ey=ea(31531),eb=ea(19672),e_=ea(20173),ev=ea(66678),ew="[_0-9a-z-*/]",eS=RegExp("^(?:[a-z]"+ew+"{0,255}|"+("[a-z0-9]"+ew+"{0,240}@[a-z]"+ew)+"{0,13})$"),ek=/^[ -~]{0,255}[!-~]$/,eE=/,|=/;function validateKey(L){return eS.test(L)}function validateValue(L){return ek.test(L)&&!eE.test(L)}var eC=32,eT=512,eA=",",ex="=",eR=function(){function TraceStateImpl(L){this._internalState=new Map,L&&this._parse(L)}return TraceStateImpl.prototype.set=function(L,ei){var ea=this._clone();return ea._internalState.has(L)&&ea._internalState.delete(L),ea._internalState.set(L,ei),ea},TraceStateImpl.prototype.unset=function(L){var ei=this._clone();return ei._internalState.delete(L),ei},TraceStateImpl.prototype.get=function(L){return this._internalState.get(L)},TraceStateImpl.prototype.serialize=function(){var L=this;return this._keys().reduce(function(ei,ea){return ei.push(ea+ex+L.get(ea)),ei},[]).join(eA)},TraceStateImpl.prototype._parse=function(L){!(L.length>eT)&&(this._internalState=L.split(eA).reverse().reduce(function(L,ei){var ea=ei.trim(),es=ea.indexOf(ex);if(-1!==es){var el=ea.slice(0,es),ec=ea.slice(es+1,ei.length);validateKey(el)&&validateValue(ec)&&L.set(el,ec)}return L},new Map),this._internalState.size>eC&&(this._internalState=new Map(Array.from(this._internalState.entries()).reverse().slice(0,eC))))},TraceStateImpl.prototype._keys=function(){return Array.from(this._internalState.keys()).reverse()},TraceStateImpl.prototype._clone=function(){var L=new TraceStateImpl;return L._internalState=new Map(this._internalState),L},TraceStateImpl}();function createTraceState(L){return new eR(L)}var eP=ea(58988),eO=ea(37037),eI=ea(49839),eM=ea(57812),eD=ea(64923),e$=ea(47824),eN=ea(96453);let eL={context:eI._,diag:eM.s,metrics:eD.q,propagation:e$.$,trace:eN.u}},47018(L,ei,ea){"use strict";ea.d(ei,{$G:()=>registerGlobal,kv:()=>unregisterGlobal,mS:()=>getGlobal});var es="object"==typeof globalThis?globalThis:global,el="1.9.0",ec=/^(\d+)\.(\d+)\.(\d+)(-(.+))?$/,ed=function(L){var ei=new Set([L]),ea=new Set,es=L.match(ec);if(!es)return function(){return!1};var el={major:+es[1],minor:+es[2],patch:+es[3],prerelease:es[4]};if(null!=el.prerelease)return function(ei){return ei===L};function _reject(L){return ea.add(L),!1}function _accept(L){return ei.add(L),!0}return function(L){if(ei.has(L))return!0;if(ea.has(L))return!1;var es=L.match(ec);if(!es)return _reject(L);var ed={major:+es[1],minor:+es[2],patch:+es[3],prerelease:es[4]};return null!=ed.prerelease||el.major!==ed.major?_reject(L):0===el.major?el.minor===ed.minor&&el.patch<=ed.patch?_accept(L):_reject(L):el.minor<=ed.minor?_accept(L):_reject(L)}}(el),eu=Symbol.for("opentelemetry.js.api."+el.split(".")[0]),ep=es;function registerGlobal(L,ei,ea,es){void 0===es&&(es=!1);var ec,ed=ep[eu]=null!=(ec=ep[eu])?ec:{version:el};if(!es&&ed[L]){var eh=Error("@opentelemetry/api: Attempted duplicate registration of API: "+L);return ea.error(eh.stack||eh.message),!1}if(ed.version!==el){var eh=Error("@opentelemetry/api: Registration of version v"+ed.version+" for "+L+" does not match previously registered API v"+el);return ea.error(eh.stack||eh.message),!1}return ed[L]=ei,ea.debug("@opentelemetry/api: Registered a global for "+L+" v"+el+"."),!0}function getGlobal(L){var ei,ea,es=null==(ei=ep[eu])?void 0:ei.version;if(es&&ed(es))return null==(ea=ep[eu])?void 0:ea[L]}function unregisterGlobal(L,ei){ei.debug("@opentelemetry/api: Unregistering a global for "+L+" v"+el+".");var ea=ep[eu];ea&&delete ea[L]}},64923(L,ei,ea){"use strict";ea.d(ei,{q:()=>ep});var es=ea(31394),el=new(function(){function NoopMeterProvider(){}return NoopMeterProvider.prototype.getMeter=function(L,ei,ea){return es.Dq},NoopMeterProvider}()),ec=ea(47018),ed=ea(74561),eu="metrics",ep=(function(){function MetricsAPI(){}return MetricsAPI.getInstance=function(){return this._instance||(this._instance=new MetricsAPI),this._instance},MetricsAPI.prototype.setGlobalMeterProvider=function(L){return(0,ec.$G)(eu,L,ed.K.instance())},MetricsAPI.prototype.getMeterProvider=function(){return(0,ec.mS)(eu)||el},MetricsAPI.prototype.getMeter=function(L,ei,ea){return this.getMeterProvider().getMeter(L,ei,ea)},MetricsAPI.prototype.disable=function(){(0,ec.kv)(eu,ed.K.instance())},MetricsAPI})().getInstance()},80619(L,ei,ea){"use strict";var es;ea.d(ei,{e:()=>es}),function(L){L[L.INT=0]="INT",L[L.DOUBLE=1]="DOUBLE"}(es||(es={}))},31394(L,ei,ea){"use strict";ea.d(ei,{Ac:()=>createNoopMeter,Dq:()=>eb});var es=function(){var extendStatics=function(L,ei){return(extendStatics=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(L,ei){L.__proto__=ei}||function(L,ei){for(var ea in ei)Object.prototype.hasOwnProperty.call(ei,ea)&&(L[ea]=ei[ea])})(L,ei)};return function(L,ei){if("function"!=typeof ei&&null!==ei)throw TypeError("Class extends value "+String(ei)+" is not a constructor or null");function __(){this.constructor=L}extendStatics(L,ei),L.prototype=null===ei?Object.create(ei):(__.prototype=ei.prototype,new __)}}(),el=function(){function NoopMeter(){}return NoopMeter.prototype.createGauge=function(L,ei){return ev},NoopMeter.prototype.createHistogram=function(L,ei){return ew},NoopMeter.prototype.createCounter=function(L,ei){return e_},NoopMeter.prototype.createUpDownCounter=function(L,ei){return eS},NoopMeter.prototype.createObservableGauge=function(L,ei){return eE},NoopMeter.prototype.createObservableCounter=function(L,ei){return ek},NoopMeter.prototype.createObservableUpDownCounter=function(L,ei){return eC},NoopMeter.prototype.addBatchObservableCallback=function(L,ei){},NoopMeter.prototype.removeBatchObservableCallback=function(L){},NoopMeter}(),ec=function(){return function(){}}(),ed=function(L){function NoopCounterMetric(){return null!==L&&L.apply(this,arguments)||this}return es(NoopCounterMetric,L),NoopCounterMetric.prototype.add=function(L,ei){},NoopCounterMetric}(ec),eu=function(L){function NoopUpDownCounterMetric(){return null!==L&&L.apply(this,arguments)||this}return es(NoopUpDownCounterMetric,L),NoopUpDownCounterMetric.prototype.add=function(L,ei){},NoopUpDownCounterMetric}(ec),ep=function(L){function NoopGaugeMetric(){return null!==L&&L.apply(this,arguments)||this}return es(NoopGaugeMetric,L),NoopGaugeMetric.prototype.record=function(L,ei){},NoopGaugeMetric}(ec),eh=function(L){function NoopHistogramMetric(){return null!==L&&L.apply(this,arguments)||this}return es(NoopHistogramMetric,L),NoopHistogramMetric.prototype.record=function(L,ei){},NoopHistogramMetric}(ec),ef=function(){function NoopObservableMetric(){}return NoopObservableMetric.prototype.addCallback=function(L){},NoopObservableMetric.prototype.removeCallback=function(L){},NoopObservableMetric}(),em=function(L){function NoopObservableCounterMetric(){return null!==L&&L.apply(this,arguments)||this}return es(NoopObservableCounterMetric,L),NoopObservableCounterMetric}(ef),eg=function(L){function NoopObservableGaugeMetric(){return null!==L&&L.apply(this,arguments)||this}return es(NoopObservableGaugeMetric,L),NoopObservableGaugeMetric}(ef),ey=function(L){function NoopObservableUpDownCounterMetric(){return null!==L&&L.apply(this,arguments)||this}return es(NoopObservableUpDownCounterMetric,L),NoopObservableUpDownCounterMetric}(ef),eb=new el,e_=new ed,ev=new ep,ew=new eh,eS=new eu,ek=new em,eE=new eg,eC=new ey;function createNoopMeter(){return eb}},47824(L,ei,ea){"use strict";ea.d(ei,{$:()=>eg});var es=ea(47018),el=function(){function NoopTextMapPropagator(){}return NoopTextMapPropagator.prototype.inject=function(L,ei){},NoopTextMapPropagator.prototype.extract=function(L,ei){return L},NoopTextMapPropagator.prototype.fields=function(){return[]},NoopTextMapPropagator}(),ec=ea(79366),ed=ea(48295),eu=(0,ea(73122).n)("OpenTelemetry Baggage Key");function getBaggage(L){return L.getValue(eu)||void 0}function getActiveBaggage(){return getBaggage(ed._.getInstance().active())}function setBaggage(L,ei){return L.setValue(eu,ei)}function deleteBaggage(L){return L.deleteValue(eu)}var ep=ea(99229),eh=ea(74561),ef="propagation",em=new el,eg=(function(){function PropagationAPI(){this.createBaggage=ep.L,this.getBaggage=getBaggage,this.getActiveBaggage=getActiveBaggage,this.setBaggage=setBaggage,this.deleteBaggage=deleteBaggage}return PropagationAPI.getInstance=function(){return this._instance||(this._instance=new PropagationAPI),this._instance},PropagationAPI.prototype.setGlobalPropagator=function(L){return(0,es.$G)(ef,L,eh.K.instance())},PropagationAPI.prototype.inject=function(L,ei,ea){return void 0===ea&&(ea=ec.U),this._getGlobalPropagator().inject(L,ei,ea)},PropagationAPI.prototype.extract=function(L,ei,ea){return void 0===ea&&(ea=ec.q),this._getGlobalPropagator().extract(L,ei,ea)},PropagationAPI.prototype.fields=function(){return this._getGlobalPropagator().fields()},PropagationAPI.prototype.disable=function(){(0,es.kv)(ef,eh.K.instance())},PropagationAPI.prototype._getGlobalPropagator=function(){return(0,es.mS)(ef)||em},PropagationAPI})().getInstance()},79366(L,ei,ea){"use strict";ea.d(ei,{U:()=>el,q:()=>es});var es={get:function(L,ei){if(null!=L)return L[ei]},keys:function(L){return null==L?[]:Object.keys(L)}},el={set:function(L,ei,ea){null!=L&&(L[ei]=ea)}}},96453(L,ei,ea){"use strict";ea.d(ei,{u:()=>eh});var es=ea(47018),el=ea(49899),ec=ea(58988),ed=ea(34228),eu=ea(74561),ep="trace",eh=(function(){function TraceAPI(){this._proxyTracerProvider=new el.n,this.wrapSpanContext=ec.IP,this.isSpanContextValid=ec.YA,this.deleteSpan=ed.EW,this.getSpan=ed.fU,this.getActiveSpan=ed.Bk,this.getSpanContext=ed.w8,this.setSpan=ed.Bx,this.setSpanContext=ed.g_}return TraceAPI.getInstance=function(){return this._instance||(this._instance=new TraceAPI),this._instance},TraceAPI.prototype.setGlobalTracerProvider=function(L){var ei=(0,es.$G)(ep,this._proxyTracerProvider,eu.K.instance());return ei&&this._proxyTracerProvider.setDelegate(L),ei},TraceAPI.prototype.getTracerProvider=function(){return(0,es.mS)(ep)||this._proxyTracerProvider},TraceAPI.prototype.getTracer=function(L,ei){return this.getTracerProvider().getTracer(L,ei)},TraceAPI.prototype.disable=function(){(0,es.kv)(ep,eu.K.instance()),this._proxyTracerProvider=new el.n},TraceAPI})().getInstance()},57497(L,ei,ea){"use strict";ea.d(ei,{d:()=>el});var es=ea(37037),el=function(){function NonRecordingSpan(L){void 0===L&&(L=es.dM),this._spanContext=L}return NonRecordingSpan.prototype.spanContext=function(){return this._spanContext},NonRecordingSpan.prototype.setAttribute=function(L,ei){return this},NonRecordingSpan.prototype.setAttributes=function(L){return this},NonRecordingSpan.prototype.addEvent=function(L,ei){return this},NonRecordingSpan.prototype.addLink=function(L){return this},NonRecordingSpan.prototype.addLinks=function(L){return this},NonRecordingSpan.prototype.setStatus=function(L){return this},NonRecordingSpan.prototype.updateName=function(L){return this},NonRecordingSpan.prototype.end=function(L){},NonRecordingSpan.prototype.isRecording=function(){return!1},NonRecordingSpan.prototype.recordException=function(L,ei){},NonRecordingSpan}()},72962(L,ei,ea){"use strict";ea.d(ei,{o:()=>ep});var es=ea(48295),el=ea(34228),ec=ea(57497),ed=ea(58988),eu=es._.getInstance(),ep=function(){function NoopTracer(){}return NoopTracer.prototype.startSpan=function(L,ei,ea){if(void 0===ea&&(ea=eu.active()),null==ei?void 0:ei.root)return new ec.d;var es=ea&&(0,el.w8)(ea);return isSpanContext(es)&&(0,ed.YA)(es)?new ec.d(es):new ec.d},NoopTracer.prototype.startActiveSpan=function(L,ei,ea,es){if(!(arguments.length<2)){2==arguments.length?ep=ei:3==arguments.length?(ec=ei,ep=ea):(ec=ei,ed=ea,ep=es);var ec,ed,ep,eh=null!=ed?ed:eu.active(),ef=this.startSpan(L,ec,eh),em=(0,el.Bx)(eh,ef);return eu.with(em,ep,void 0,ef)}},NoopTracer}();function isSpanContext(L){return"object"==typeof L&&"string"==typeof L.spanId&&"string"==typeof L.traceId&&"number"==typeof L.traceFlags}},3722(L,ei,ea){"use strict";ea.d(ei,{y:()=>el});var es=new(ea(72962)).o,el=function(){function ProxyTracer(L,ei,ea,es){this._provider=L,this.name=ei,this.version=ea,this.options=es}return ProxyTracer.prototype.startSpan=function(L,ei,ea){return this._getTracer().startSpan(L,ei,ea)},ProxyTracer.prototype.startActiveSpan=function(L,ei,ea,es){var el=this._getTracer();return Reflect.apply(el.startActiveSpan,el,arguments)},ProxyTracer.prototype._getTracer=function(){if(this._delegate)return this._delegate;var L=this._provider.getDelegateTracer(this.name,this.version,this.options);return L?(this._delegate=L,this._delegate):es},ProxyTracer}()},49899(L,ei,ea){"use strict";ea.d(ei,{n:()=>ed});var es=ea(3722),el=ea(72962),ec=new(function(){function NoopTracerProvider(){}return NoopTracerProvider.prototype.getTracer=function(L,ei,ea){return new el.o},NoopTracerProvider}()),ed=function(){function ProxyTracerProvider(){}return ProxyTracerProvider.prototype.getTracer=function(L,ei,ea){var el;return null!=(el=this.getDelegateTracer(L,ei,ea))?el:new es.y(this,L,ei,ea)},ProxyTracerProvider.prototype.getDelegate=function(){var L;return null!=(L=this._delegate)?L:ec},ProxyTracerProvider.prototype.setDelegate=function(L){this._delegate=L},ProxyTracerProvider.prototype.getDelegateTracer=function(L,ei,ea){var es;return null==(es=this._delegate)?void 0:es.getTracer(L,ei,ea)},ProxyTracerProvider}()},31531(L,ei,ea){"use strict";var es;ea.d(ei,{i:()=>es}),function(L){L[L.NOT_RECORD=0]="NOT_RECORD",L[L.RECORD=1]="RECORD",L[L.RECORD_AND_SAMPLED=2]="RECORD_AND_SAMPLED"}(es||(es={}))},34228(L,ei,ea){"use strict";ea.d(ei,{Bk:()=>getActiveSpan,Bx:()=>setSpan,EW:()=>deleteSpan,fU:()=>getSpan,g_:()=>setSpanContext,w8:()=>getSpanContext});var es=ea(73122),el=ea(57497),ec=ea(48295),ed=(0,es.n)("OpenTelemetry Context Key SPAN");function getSpan(L){return L.getValue(ed)||void 0}function getActiveSpan(){return getSpan(ec._.getInstance().active())}function setSpan(L,ei){return L.setValue(ed,ei)}function deleteSpan(L){return L.deleteValue(ed)}function setSpanContext(L,ei){return setSpan(L,new el.d(ei))}function getSpanContext(L){var ei;return null==(ei=getSpan(L))?void 0:ei.spanContext()}},37037(L,ei,ea){"use strict";ea.d(ei,{RH:()=>ec,dM:()=>ed,w9:()=>el});var es=ea(66678),el="0000000000000000",ec="00000000000000000000000000000000",ed={traceId:ec,spanId:el,traceFlags:es.X.NONE}},19672(L,ei,ea){"use strict";var es;ea.d(ei,{v:()=>es}),function(L){L[L.INTERNAL=0]="INTERNAL",L[L.SERVER=1]="SERVER",L[L.CLIENT=2]="CLIENT",L[L.PRODUCER=3]="PRODUCER",L[L.CONSUMER=4]="CONSUMER"}(es||(es={}))},58988(L,ei,ea){"use strict";ea.d(ei,{IP:()=>wrapSpanContext,YA:()=>isSpanContextValid,hX:()=>isValidTraceId,wN:()=>isValidSpanId});var es=ea(37037),el=ea(57497),ec=/^([0-9a-f]{32})$/i,ed=/^[0-9a-f]{16}$/i;function isValidTraceId(L){return ec.test(L)&&L!==es.RH}function isValidSpanId(L){return ed.test(L)&&L!==es.w9}function isSpanContextValid(L){return isValidTraceId(L.traceId)&&isValidSpanId(L.spanId)}function wrapSpanContext(L){return new el.d(L)}},20173(L,ei,ea){"use strict";var es;ea.d(ei,{s:()=>es}),function(L){L[L.UNSET=0]="UNSET",L[L.OK=1]="OK",L[L.ERROR=2]="ERROR"}(es||(es={}))},66678(L,ei,ea){"use strict";var es;ea.d(ei,{X:()=>es}),function(L){L[L.NONE=0]="NONE",L[L.SAMPLED=1]="SAMPLED"}(es||(es={}))},30245(L,ei,ea){"use strict";var es;ea.d(ei,{V:()=>es}),function(L){L[L.SUCCESS=0]="SUCCESS",L[L.FAILED=1]="FAILED"}(es||(es={}))},54807(L,ei,ea){"use strict";ea.d(ei,{L:()=>sanitizeAttributes,m:()=>isAttributeValue,oU:()=>isAttributeKey});var es=ea(57812),__values=function(L){var ei="function"==typeof Symbol&&Symbol.iterator,ea=ei&&L[ei],es=0;if(ea)return ea.call(L);if(L&&"number"==typeof L.length)return{next:function(){return L&&es>=L.length&&(L=void 0),{value:L&&L[es++],done:!L}}};throw TypeError(ei?"Object is not iterable.":"Symbol.iterator is not defined.")},__read=function(L,ei){var ea="function"==typeof Symbol&&L[Symbol.iterator];if(!ea)return L;var es,el,ec=ea.call(L),ed=[];try{for(;(void 0===ei||ei-- >0)&&!(es=ec.next()).done;)ed.push(es.value)}catch(L){el={error:L}}finally{try{es&&!es.done&&(ea=ec.return)&&ea.call(ec)}finally{if(el)throw el.error}}return ed};function sanitizeAttributes(L){var ei,ea,el={};if("object"!=typeof L||null==L)return el;try{for(var ec=__values(Object.entries(L)),ed=ec.next();!ed.done;ed=ec.next()){var eu=__read(ed.value,2),ep=eu[0],eh=eu[1];if(!isAttributeKey(ep)){es.s.warn("Invalid attribute key: "+ep);continue}if(!isAttributeValue(eh)){es.s.warn("Invalid attribute value set for key: "+ep);continue}Array.isArray(eh)?el[ep]=eh.slice():el[ep]=eh}}catch(L){ei={error:L}}finally{try{ed&&!ed.done&&(ea=ec.return)&&ea.call(ec)}finally{if(ei)throw ei.error}}return el}function isAttributeKey(L){return"string"==typeof L&&L.length>0}function isAttributeValue(L){return null==L||(Array.isArray(L)?isHomogeneousAttributeValueArray(L):isValidPrimitiveAttributeValue(L))}function isHomogeneousAttributeValueArray(L){try{for(var ei,ea,es,el=__values(L),ec=el.next();!ec.done;ec=el.next()){var ed=ec.value;if(null!=ed){if(!es){if(isValidPrimitiveAttributeValue(ed)){es=typeof ed;continue}return!1}if(typeof ed!==es)return!1}}}catch(L){ei={error:L}}finally{try{ec&&!ec.done&&(ea=el.return)&&ea.call(el)}finally{if(ei)throw ei.error}}return!0}function isValidPrimitiveAttributeValue(L){switch(typeof L){case"number":case"boolean":case"string":return!0}return!1}},73647(L,ei,ea){"use strict";ea.d(ei,{s:()=>globalErrorHandler,u:()=>setGlobalErrorHandler});var es=(0,ea(8799).o)();function setGlobalErrorHandler(L){es=L}function globalErrorHandler(L){try{es(L)}catch(L){}}},8799(L,ei,ea){"use strict";ea.d(ei,{o:()=>loggingErrorHandler});var es=ea(57812);function loggingErrorHandler(){return function(L){es.s.error(stringifyException(L))}}function stringifyException(L){return"string"==typeof L?L:JSON.stringify(flattenException(L))}function flattenException(L){for(var ei={},ea=L;null!==ea;)Object.getOwnPropertyNames(ea).forEach(function(L){if(!ei[L]){var es=ea[L];es&&(ei[L]=String(es))}}),ea=Object.getPrototypeOf(ea);return ei}},80647(L,ei,ea){"use strict";ea.d(ei,{Ir:()=>isTimeInput,JU:()=>hrTimeToMilliseconds,KJ:()=>timeInputToHrTime,VL:()=>isTimeInputHrTime,W5:()=>hrTimeDuration,_5:()=>hrTime,lg:()=>millisToHrTime,mw:()=>addHrTimes,tq:()=>hrTimeToTimeStamp,u5:()=>hrTimeToNanoseconds,uc:()=>getTimeOrigin,w_:()=>hrTimeToMicroseconds});var es=ea(11001),el=9,ec=1e6,ed=1e9;function millisToHrTime(L){return[Math.trunc(L/1e3),Math.round(L%1e3*ec)]}function getTimeOrigin(){var L=es.u.timeOrigin;if("number"!=typeof L){var ei=es.u;L=ei.timing&&ei.timing.fetchStart}return L}function hrTime(L){return addHrTimes(millisToHrTime(getTimeOrigin()),millisToHrTime("number"==typeof L?L:es.u.now()))}function timeInputToHrTime(L){if(isTimeInputHrTime(L))return L;if("number"==typeof L)if(L<getTimeOrigin())return hrTime(L);else return millisToHrTime(L);if(L instanceof Date)return millisToHrTime(L.getTime());throw TypeError("Invalid input type")}function hrTimeDuration(L,ei){var ea=ei[0]-L[0],es=ei[1]-L[1];return es<0&&(ea-=1,es+=ed),[ea,es]}function hrTimeToTimeStamp(L){var ei=el,ea=""+"0".repeat(ei)+L[1]+"Z",es=ea.substr(ea.length-ei-1);return new Date(1e3*L[0]).toISOString().replace("000Z",es)}function hrTimeToNanoseconds(L){return L[0]*ed+L[1]}function hrTimeToMilliseconds(L){return 1e3*L[0]+L[1]/1e6}function hrTimeToMicroseconds(L){return 1e6*L[0]+L[1]/1e3}function isTimeInputHrTime(L){return Array.isArray(L)&&2===L.length&&"number"==typeof L[0]&&"number"==typeof L[1]}function isTimeInput(L){return isTimeInputHrTime(L)||"number"==typeof L||L instanceof Date}function addHrTimes(L,ei){var ea=[L[0]+ei[0],L[1]+ei[1]];return ea[1]>=ed&&(ea[1]-=ed,ea[0]+=1),ea}},99271(L,ei,ea){"use strict";ea.r(ei),ea.d(ei,{baggageUtils:()=>el,hrTime:()=>eC._5,timeInputToHrTime:()=>eC.KJ,W3CTraceContextPropagator:()=>e0,callWithTimeout:()=>ti.o,AlwaysOnSampler:()=>e4,isTracingSuppressed:()=>isTracingSuppressed,AlwaysOffSampler:()=>e3,loggingErrorHandler:()=>eE.o,DEFAULT_ATTRIBUTE_COUNT_LIMIT:()=>e6.fv,deleteRPCMetadata:()=>deleteRPCMetadata,suppressTracing:()=>suppressTracing,RPCType:()=>es,RandomIdGenerator:()=>eO,setRPCMetadata:()=>setRPCMetadata,unrefTimer:()=>e$.K,hrTimeToMilliseconds:()=>eC.JU,TRACE_PARENT_HEADER:()=>eY,unsuppressTracing:()=>unsuppressTracing,globalErrorHandler:()=>ek.s,_globalThis:()=>ex,getEnvWithoutDefaults:()=>eA.w,ParentBasedSampler:()=>e5,millisToHrTime:()=>eC.lg,isTimeInputHrTime:()=>eC.VL,otperformance:()=>eM.u,internal:()=>tl,urlMatches:()=>urlMatches,BindOnceFuture:()=>tn.I,DEFAULT_ENVIRONMENT:()=>e6.Uz,SDK_INFO:()=>eD.q,isWrapped:()=>isWrapped,isAttributeKey:()=>eS.oU,TraceState:()=>eJ,hexToBase64:()=>hexToBase64,TRACE_STATE_HEADER:()=>eQ,getEnv:()=>eA._,getTimeOrigin:()=>eC.uc,TraceIdRatioBasedSampler:()=>e8,hrTimeDuration:()=>eC.W5,DEFAULT_SPAN_ATTRIBUTE_PER_EVENT_COUNT_LIMIT:()=>e6.h9,isTimeInput:()=>eC.Ir,hexToBinary:()=>hexToBinary,DEFAULT_SPAN_ATTRIBUTE_PER_LINK_COUNT_LIMIT:()=>e6.V,parseTraceParent:()=>parseTraceParent,isUrlIgnored:()=>isUrlIgnored,parseEnvironment:()=>e6.Nq,setGlobalErrorHandler:()=>ek.u,DEFAULT_ATTRIBUTE_VALUE_LENGTH_LIMIT:()=>e6.aE,isAttributeValue:()=>eS.m,CompositePropagator:()=>eL,hrTimeToMicroseconds:()=>eC.w_,AnchoredClock:()=>ew,TracesSamplerValues:()=>e7.R,ExportResultCode:()=>eT.V,hrTimeToNanoseconds:()=>eC.u5,merge:()=>e9.h,TimeoutError:()=>ti.M,W3CBaggagePropagator:()=>ev,addHrTimes:()=>eC.mw,getRPCMetadata:()=>getRPCMetadata,sanitizeAttributes:()=>eS.L,hrTimeToTimeStamp:()=>eC.tq,VERSION:()=>ta.x});var es,el={};ea.r(el),ea.d(el,{getKeyPairs:()=>getKeyPairs,parseKeyPairsIntoRecord:()=>parseKeyPairsIntoRecord,parsePairKeyValue:()=>parsePairKeyValue,serializeKeyPairs:()=>serializeKeyPairs});var ec=ea(47824),ed=ea(73122),eu=(0,ed.n)("OpenTelemetry SDK Context Key SUPPRESS_TRACING");function suppressTracing(L){return L.setValue(eu,!0)}function unsuppressTracing(L){return L.deleteValue(eu)}function isTracingSuppressed(L){return!0===L.getValue(eu)}var ep="=",eh=";",ef=",",em="baggage",eg=180,ey=4096,eb=8192,e_=ea(99229),__read=function(L,ei){var ea="function"==typeof Symbol&&L[Symbol.iterator];if(!ea)return L;var es,el,ec=ea.call(L),ed=[];try{for(;(void 0===ei||ei-- >0)&&!(es=ec.next()).done;)ed.push(es.value)}catch(L){el={error:L}}finally{try{es&&!es.done&&(ea=ec.return)&&ea.call(ec)}finally{if(el)throw el.error}}return ed};function serializeKeyPairs(L){return L.reduce(function(L,ei){var ea=""+L+(""!==L?ef:"")+ei;return ea.length>eb?L:ea},"")}function getKeyPairs(L){return L.getAllEntries().map(function(L){var ei=__read(L,2),ea=ei[0],es=ei[1],el=encodeURIComponent(ea)+"="+encodeURIComponent(es.value);return void 0!==es.metadata&&(el+=eh+es.metadata.toString()),el})}function parsePairKeyValue(L){var ei,ea=L.split(eh);if(!(ea.length<=0)){var es=ea.shift();if(es){var el=es.indexOf(ep);if(!(el<=0)){var ec=decodeURIComponent(es.substring(0,el).trim()),ed=decodeURIComponent(es.substring(el+1).trim());return ea.length>0&&(ei=(0,e_.B)(ea.join(eh))),{key:ec,value:ed,metadata:ei}}}}}function parseKeyPairsIntoRecord(L){return"string"!=typeof L||0===L.length?{}:L.split(ef).map(function(L){return parsePairKeyValue(L)}).filter(function(L){return void 0!==L&&L.value.length>0}).reduce(function(L,ei){return L[ei.key]=ei.value,L},{})}var ev=function(){function W3CBaggagePropagator(){}return W3CBaggagePropagator.prototype.inject=function(L,ei,ea){var es=ec.$.getBaggage(L);if(!(!es||isTracingSuppressed(L))){var el=getKeyPairs(es).filter(function(L){return L.length<=ey}).slice(0,eg),ed=serializeKeyPairs(el);ed.length>0&&ea.set(ei,em,ed)}},W3CBaggagePropagator.prototype.extract=function(L,ei,ea){var es=ea.get(ei,em),el=Array.isArray(es)?es.join(ef):es;if(!el)return L;var ed={};return 0===el.length||(el.split(ef).forEach(function(L){var ei=parsePairKeyValue(L);if(ei){var ea={value:ei.value};ei.metadata&&(ea.metadata=ei.metadata),ed[ei.key]=ea}}),0===Object.entries(ed).length)?L:ec.$.setBaggage(L,ec.$.createBaggage(ed))},W3CBaggagePropagator.prototype.fields=function(){return[em]},W3CBaggagePropagator}(),ew=function(){function AnchoredClock(L,ei){this._monotonicClock=ei,this._epochMillis=L.now(),this._performanceMillis=ei.now()}return AnchoredClock.prototype.now=function(){var L=this._monotonicClock.now()-this._performanceMillis;return this._epochMillis+L},AnchoredClock}(),eS=ea(54807),ek=ea(73647),eE=ea(8799),eC=ea(80647);function intValue(L){return L>=48&&L<=57?L-48:L>=97&&L<=102?L-87:L-55}function hexToBinary(L){for(var ei=new Uint8Array(L.length/2),ea=0,es=0;es<L.length;es+=2){var el=intValue(L.charCodeAt(es)),ec=intValue(L.charCodeAt(es+1));ei[ea++]=el<<4|ec}return ei}var eT=ea(30245),eA=ea(39850),ex="object"==typeof globalThis?globalThis:global;function hexToBase64(L){return Buffer.from(hexToBinary(L)).toString("base64")}var eR=8,eP=16,eO=function(){return function(){this.generateTraceId=getIdGenerator(eP),this.generateSpanId=getIdGenerator(eR)}}(),eI=Buffer.allocUnsafe(eP);function getIdGenerator(L){return function(){for(var ei=0;ei<L/4;ei++)eI.writeUInt32BE(0x100000000*Math.random()>>>0,4*ei);for(var ei=0;ei<L;ei++)if(eI[ei]>0)break;else ei===L-1&&(eI[L-1]=1);return eI.toString("hex",0,L)}}var eM=ea(11001),eD=ea(63524),e$=ea(90975),eN=ea(57812),__values=function(L){var ei="function"==typeof Symbol&&Symbol.iterator,ea=ei&&L[ei],es=0;if(ea)return ea.call(L);if(L&&"number"==typeof L.length)return{next:function(){return L&&es>=L.length&&(L=void 0),{value:L&&L[es++],done:!L}}};throw TypeError(ei?"Object is not iterable.":"Symbol.iterator is not defined.")},eL=function(){function CompositePropagator(L){var ei;void 0===L&&(L={}),this._propagators=null!=(ei=L.propagators)?ei:[],this._fields=Array.from(new Set(this._propagators.map(function(L){return"function"==typeof L.fields?L.fields():[]}).reduce(function(L,ei){return L.concat(ei)},[])))}return CompositePropagator.prototype.inject=function(L,ei,ea){var es,el;try{for(var ec=__values(this._propagators),ed=ec.next();!ed.done;ed=ec.next()){var eu=ed.value;try{eu.inject(L,ei,ea)}catch(L){eN.s.warn("Failed to inject with "+eu.constructor.name+". Err: "+L.message)}}}catch(L){es={error:L}}finally{try{ed&&!ed.done&&(el=ec.return)&&el.call(ec)}finally{if(es)throw es.error}}},CompositePropagator.prototype.extract=function(L,ei,ea){return this._propagators.reduce(function(L,es){try{return es.extract(L,ei,ea)}catch(L){eN.s.warn("Failed to inject with "+es.constructor.name+". Err: "+L.message)}return L},L)},CompositePropagator.prototype.fields=function(){return this._fields.slice()},CompositePropagator}(),ej=ea(96453),eU=ea(58988),eF=ea(66678),eB="[_0-9a-z-*/]",eW=RegExp("^(?:[a-z]"+eB+"{0,255}|"+("[a-z0-9]"+eB+"{0,240}@[a-z]"+eB)+"{0,13})$"),eH=/^[ -~]{0,255}[!-~]$/,eq=/,|=/;function validateKey(L){return eW.test(L)}function validateValue(L){return eH.test(L)&&!eq.test(L)}var eG=32,ez=512,eV=",",eK="=",eJ=function(){function TraceState(L){this._internalState=new Map,L&&this._parse(L)}return TraceState.prototype.set=function(L,ei){var ea=this._clone();return ea._internalState.has(L)&&ea._internalState.delete(L),ea._internalState.set(L,ei),ea},TraceState.prototype.unset=function(L){var ei=this._clone();return ei._internalState.delete(L),ei},TraceState.prototype.get=function(L){return this._internalState.get(L)},TraceState.prototype.serialize=function(){var L=this;return this._keys().reduce(function(ei,ea){return ei.push(ea+eK+L.get(ea)),ei},[]).join(eV)},TraceState.prototype._parse=function(L){!(L.length>ez)&&(this._internalState=L.split(eV).reverse().reduce(function(L,ei){var ea=ei.trim(),es=ea.indexOf(eK);if(-1!==es){var el=ea.slice(0,es),ec=ea.slice(es+1,ei.length);validateKey(el)&&validateValue(ec)&&L.set(el,ec)}return L},new Map),this._internalState.size>eG&&(this._internalState=new Map(Array.from(this._internalState.entries()).reverse().slice(0,eG))))},TraceState.prototype._keys=function(){return Array.from(this._internalState.keys()).reverse()},TraceState.prototype._clone=function(){var L=new TraceState;return L._internalState=new Map(this._internalState),L},TraceState}(),eY="traceparent",eQ="tracestate",eZ="00",eX=RegExp("^\\s?((?!ff)[\\da-f]{2})-((?![0]{32})[\\da-f]{32})-((?![0]{16})[\\da-f]{16})-([\\da-f]{2})(-.*)?\\s?$");function parseTraceParent(L){var ei=eX.exec(L);return!ei||"00"===ei[1]&&ei[5]?null:{traceId:ei[2],spanId:ei[3],traceFlags:parseInt(ei[4],16)}}var e0=function(){function W3CTraceContextPropagator(){}return W3CTraceContextPropagator.prototype.inject=function(L,ei,ea){var es=ej.u.getSpanContext(L);if(!(!es||isTracingSuppressed(L))&&(0,eU.YA)(es)){var el=eZ+"-"+es.traceId+"-"+es.spanId+"-0"+Number(es.traceFlags||eF.X.NONE).toString(16);ea.set(ei,eY,el),es.traceState&&ea.set(ei,eQ,es.traceState.serialize())}},W3CTraceContextPropagator.prototype.extract=function(L,ei,ea){var es=ea.get(ei,eY);if(!es)return L;var el=Array.isArray(es)?es[0]:es;if("string"!=typeof el)return L;var ec=parseTraceParent(el);if(!ec)return L;ec.isRemote=!0;var ed=ea.get(ei,eQ);if(ed){var eu=Array.isArray(ed)?ed.join(","):ed;ec.traceState=new eJ("string"==typeof eu?eu:void 0)}return ej.u.setSpanContext(L,ec)},W3CTraceContextPropagator.prototype.fields=function(){return[eY,eQ]},W3CTraceContextPropagator}(),e1=(0,ed.n)("OpenTelemetry SDK Context Key RPC_METADATA");function setRPCMetadata(L,ei){return L.setValue(e1,ei)}function deleteRPCMetadata(L){return L.deleteValue(e1)}function getRPCMetadata(L){return L.getValue(e1)}!function(L){L.HTTP="http"}(es||(es={}));var e2=ea(31531),e3=function(){function AlwaysOffSampler(){}return AlwaysOffSampler.prototype.shouldSample=function(){return{decision:e2.i.NOT_RECORD}},AlwaysOffSampler.prototype.toString=function(){return"AlwaysOffSampler"},AlwaysOffSampler}(),e4=function(){function AlwaysOnSampler(){}return AlwaysOnSampler.prototype.shouldSample=function(){return{decision:e2.i.RECORD_AND_SAMPLED}},AlwaysOnSampler.prototype.toString=function(){return"AlwaysOnSampler"},AlwaysOnSampler}(),e5=function(){function ParentBasedSampler(L){var ei,ea,es,el;this._root=L.root,this._root||((0,ek.s)(Error("ParentBasedSampler must have a root sampler configured")),this._root=new e4),this._remoteParentSampled=null!=(ei=L.remoteParentSampled)?ei:new e4,this._remoteParentNotSampled=null!=(ea=L.remoteParentNotSampled)?ea:new e3,this._localParentSampled=null!=(es=L.localParentSampled)?es:new e4,this._localParentNotSampled=null!=(el=L.localParentNotSampled)?el:new e3}return ParentBasedSampler.prototype.shouldSample=function(L,ei,ea,es,el,ec){var ed=ej.u.getSpanContext(L);return ed&&(0,eU.YA)(ed)?ed.isRemote?ed.traceFlags&eF.X.SAMPLED?this._remoteParentSampled.shouldSample(L,ei,ea,es,el,ec):this._remoteParentNotSampled.shouldSample(L,ei,ea,es,el,ec):ed.traceFlags&eF.X.SAMPLED?this._localParentSampled.shouldSample(L,ei,ea,es,el,ec):this._localParentNotSampled.shouldSample(L,ei,ea,es,el,ec):this._root.shouldSample(L,ei,ea,es,el,ec)},ParentBasedSampler.prototype.toString=function(){return"ParentBased{root="+this._root.toString()+", remoteParentSampled="+this._remoteParentSampled.toString()+", remoteParentNotSampled="+this._remoteParentNotSampled.toString()+", localParentSampled="+this._localParentSampled.toString()+", localParentNotSampled="+this._localParentNotSampled.toString()+"}"},ParentBasedSampler}(),e8=function(){function TraceIdRatioBasedSampler(L){void 0===L&&(L=0),this._ratio=L,this._ratio=this._normalize(L),this._upperBound=Math.floor(0xffffffff*this._ratio)}return TraceIdRatioBasedSampler.prototype.shouldSample=function(L,ei){return{decision:(0,eU.hX)(ei)&&this._accumulate(ei)<this._upperBound?e2.i.RECORD_AND_SAMPLED:e2.i.NOT_RECORD}},TraceIdRatioBasedSampler.prototype.toString=function(){return"TraceIdRatioBased{"+this._ratio+"}"},TraceIdRatioBasedSampler.prototype._normalize=function(L){return"number"!=typeof L||isNaN(L)?0:L>=1?1:L<=0?0:L},TraceIdRatioBasedSampler.prototype._accumulate=function(L){for(var ei=0,ea=0;ea<L.length/8;ea++){var es=8*ea;ei=(ei^parseInt(L.slice(es,es+8),16))>>>0}return ei},TraceIdRatioBasedSampler}(),e6=ea(73955),e9=ea(41586),e7=ea(98557),ti=ea(42881),url_values=function(L){var ei="function"==typeof Symbol&&Symbol.iterator,ea=ei&&L[ei],es=0;if(ea)return ea.call(L);if(L&&"number"==typeof L.length)return{next:function(){return L&&es>=L.length&&(L=void 0),{value:L&&L[es++],done:!L}}};throw TypeError(ei?"Object is not iterable.":"Symbol.iterator is not defined.")};function urlMatches(L,ei){return"string"==typeof ei?L===ei:!!L.match(ei)}function isUrlIgnored(L,ei){var ea,es;if(!ei)return!1;try{for(var el=url_values(ei),ec=el.next();!ec.done;ec=el.next()){var ed=ec.value;if(urlMatches(L,ed))return!0}}catch(L){ea={error:L}}finally{try{ec&&!ec.done&&(es=el.return)&&es.call(el)}finally{if(ea)throw ea.error}}return!1}function isWrapped(L){return"function"==typeof L&&"function"==typeof L.__original&&"function"==typeof L.__unwrap&&!0===L.__wrapped}var tn=ea(62717),ta=ea(25068),ts=ea(49839),tl={_export:function(L,ei){return new Promise(function(ea){ts._.with(suppressTracing(ts._.active()),function(){L.export(ei,function(L){ea(L)})})})}}},39850(L,ei,ea){"use strict";ea.d(ei,{_:()=>getEnv,w:()=>getEnvWithoutDefaults});var es=ea(73955);function getEnv(){var L=(0,es.Nq)(process.env);return Object.assign({},es.Uz,L)}function getEnvWithoutDefaults(){return(0,es.Nq)(process.env)}},11001(L,ei,ea){"use strict";ea.d(ei,{u:()=>es});var es=ea(82987).performance},63524(L,ei,ea){"use strict";ea.d(ei,{q:()=>ed});var es,el=ea(25068),ec=ea(58819),ed=((es={})[ec._2.TELEMETRY_SDK_NAME]="opentelemetry",es[ec._2.PROCESS_RUNTIME_NAME]="node",es[ec._2.TELEMETRY_SDK_LANGUAGE]=ec.wP.NODEJS,es[ec._2.TELEMETRY_SDK_VERSION]=el.x,es)},90975(L,ei,ea){"use strict";function unrefTimer(L){L.unref()}ea.d(ei,{K:()=>unrefTimer})},62717(L,ei,ea){"use strict";ea.d(ei,{I:()=>el});var es=function(){function Deferred(){var L=this;this._promise=new Promise(function(ei,ea){L._resolve=ei,L._reject=ea})}return Object.defineProperty(Deferred.prototype,"promise",{get:function(){return this._promise},enumerable:!1,configurable:!0}),Deferred.prototype.resolve=function(L){this._resolve(L)},Deferred.prototype.reject=function(L){this._reject(L)},Deferred}(),__read=function(L,ei){var ea="function"==typeof Symbol&&L[Symbol.iterator];if(!ea)return L;var es,el,ec=ea.call(L),ed=[];try{for(;(void 0===ei||ei-- >0)&&!(es=ec.next()).done;)ed.push(es.value)}catch(L){el={error:L}}finally{try{es&&!es.done&&(ea=ec.return)&&ea.call(ec)}finally{if(el)throw el.error}}return ed},__spreadArray=function(L,ei,ea){if(ea||2==arguments.length)for(var es,el=0,ec=ei.length;el<ec;el++)!es&&el in ei||(es||(es=Array.prototype.slice.call(ei,0,el)),es[el]=ei[el]);return L.concat(es||Array.prototype.slice.call(ei))},el=function(){function BindOnceFuture(L,ei){this._callback=L,this._that=ei,this._isCalled=!1,this._deferred=new es}return Object.defineProperty(BindOnceFuture.prototype,"isCalled",{get:function(){return this._isCalled},enumerable:!1,configurable:!0}),Object.defineProperty(BindOnceFuture.prototype,"promise",{get:function(){return this._deferred.promise},enumerable:!1,configurable:!0}),BindOnceFuture.prototype.call=function(){for(var L,ei=this,ea=[],es=0;es<arguments.length;es++)ea[es]=arguments[es];if(!this._isCalled){this._isCalled=!0;try{Promise.resolve((L=this._callback).call.apply(L,__spreadArray([this._that],__read(ea),!1))).then(function(L){return ei._deferred.resolve(L)},function(L){return ei._deferred.reject(L)})}catch(L){this._deferred.reject(L)}}return this._deferred.promise},BindOnceFuture}()},73955(L,ei,ea){"use strict";ea.d(ei,{Nq:()=>parseEnvironment,Uz:()=>ey,V:()=>eg,aE:()=>eh,fv:()=>ef,h9:()=>em});var es=ea(14484),el=ea(98557),ec=",",ed=["OTEL_SDK_DISABLED"];function isEnvVarABoolean(L){return ed.indexOf(L)>-1}var eu=["OTEL_BSP_EXPORT_TIMEOUT","OTEL_BSP_MAX_EXPORT_BATCH_SIZE","OTEL_BSP_MAX_QUEUE_SIZE","OTEL_BSP_SCHEDULE_DELAY","OTEL_BLRP_EXPORT_TIMEOUT","OTEL_BLRP_MAX_EXPORT_BATCH_SIZE","OTEL_BLRP_MAX_QUEUE_SIZE","OTEL_BLRP_SCHEDULE_DELAY","OTEL_ATTRIBUTE_VALUE_LENGTH_LIMIT","OTEL_ATTRIBUTE_COUNT_LIMIT","OTEL_SPAN_ATTRIBUTE_VALUE_LENGTH_LIMIT","OTEL_SPAN_ATTRIBUTE_COUNT_LIMIT","OTEL_LOGRECORD_ATTRIBUTE_VALUE_LENGTH_LIMIT","OTEL_LOGRECORD_ATTRIBUTE_COUNT_LIMIT","OTEL_SPAN_EVENT_COUNT_LIMIT","OTEL_SPAN_LINK_COUNT_LIMIT","OTEL_SPAN_ATTRIBUTE_PER_EVENT_COUNT_LIMIT","OTEL_SPAN_ATTRIBUTE_PER_LINK_COUNT_LIMIT","OTEL_EXPORTER_OTLP_TIMEOUT","OTEL_EXPORTER_OTLP_TRACES_TIMEOUT","OTEL_EXPORTER_OTLP_METRICS_TIMEOUT","OTEL_EXPORTER_OTLP_LOGS_TIMEOUT","OTEL_EXPORTER_JAEGER_AGENT_PORT"];function isEnvVarANumber(L){return eu.indexOf(L)>-1}var ep=["OTEL_NO_PATCH_MODULES","OTEL_PROPAGATORS"];function isEnvVarAList(L){return ep.indexOf(L)>-1}var eh=1/0,ef=128,em=128,eg=128,ey={OTEL_SDK_DISABLED:!1,CONTAINER_NAME:"",ECS_CONTAINER_METADATA_URI_V4:"",ECS_CONTAINER_METADATA_URI:"",HOSTNAME:"",KUBERNETES_SERVICE_HOST:"",NAMESPACE:"",OTEL_BSP_EXPORT_TIMEOUT:3e4,OTEL_BSP_MAX_EXPORT_BATCH_SIZE:512,OTEL_BSP_MAX_QUEUE_SIZE:2048,OTEL_BSP_SCHEDULE_DELAY:5e3,OTEL_BLRP_EXPORT_TIMEOUT:3e4,OTEL_BLRP_MAX_EXPORT_BATCH_SIZE:512,OTEL_BLRP_MAX_QUEUE_SIZE:2048,OTEL_BLRP_SCHEDULE_DELAY:5e3,OTEL_EXPORTER_JAEGER_AGENT_HOST:"",OTEL_EXPORTER_JAEGER_AGENT_PORT:6832,OTEL_EXPORTER_JAEGER_ENDPOINT:"",OTEL_EXPORTER_JAEGER_PASSWORD:"",OTEL_EXPORTER_JAEGER_USER:"",OTEL_EXPORTER_OTLP_ENDPOINT:"",OTEL_EXPORTER_OTLP_TRACES_ENDPOINT:"",OTEL_EXPORTER_OTLP_METRICS_ENDPOINT:"",OTEL_EXPORTER_OTLP_LOGS_ENDPOINT:"",OTEL_EXPORTER_OTLP_HEADERS:"",OTEL_EXPORTER_OTLP_TRACES_HEADERS:"",OTEL_EXPORTER_OTLP_METRICS_HEADERS:"",OTEL_EXPORTER_OTLP_LOGS_HEADERS:"",OTEL_EXPORTER_OTLP_TIMEOUT:1e4,OTEL_EXPORTER_OTLP_TRACES_TIMEOUT:1e4,OTEL_EXPORTER_OTLP_METRICS_TIMEOUT:1e4,OTEL_EXPORTER_OTLP_LOGS_TIMEOUT:1e4,OTEL_EXPORTER_ZIPKIN_ENDPOINT:"http://localhost:9411/api/v2/spans",OTEL_LOG_LEVEL:es.u.INFO,OTEL_NO_PATCH_MODULES:[],OTEL_PROPAGATORS:["tracecontext","baggage"],OTEL_RESOURCE_ATTRIBUTES:"",OTEL_SERVICE_NAME:"",OTEL_ATTRIBUTE_VALUE_LENGTH_LIMIT:eh,OTEL_ATTRIBUTE_COUNT_LIMIT:ef,OTEL_SPAN_ATTRIBUTE_VALUE_LENGTH_LIMIT:eh,OTEL_SPAN_ATTRIBUTE_COUNT_LIMIT:ef,OTEL_LOGRECORD_ATTRIBUTE_VALUE_LENGTH_LIMIT:eh,OTEL_LOGRECORD_ATTRIBUTE_COUNT_LIMIT:ef,OTEL_SPAN_EVENT_COUNT_LIMIT:128,OTEL_SPAN_LINK_COUNT_LIMIT:128,OTEL_SPAN_ATTRIBUTE_PER_EVENT_COUNT_LIMIT:em,OTEL_SPAN_ATTRIBUTE_PER_LINK_COUNT_LIMIT:eg,OTEL_TRACES_EXPORTER:"",OTEL_TRACES_SAMPLER:el.R.ParentBasedAlwaysOn,OTEL_TRACES_SAMPLER_ARG:"",OTEL_LOGS_EXPORTER:"",OTEL_EXPORTER_OTLP_INSECURE:"",OTEL_EXPORTER_OTLP_TRACES_INSECURE:"",OTEL_EXPORTER_OTLP_METRICS_INSECURE:"",OTEL_EXPORTER_OTLP_LOGS_INSECURE:"",OTEL_EXPORTER_OTLP_CERTIFICATE:"",OTEL_EXPORTER_OTLP_TRACES_CERTIFICATE:"",OTEL_EXPORTER_OTLP_METRICS_CERTIFICATE:"",OTEL_EXPORTER_OTLP_LOGS_CERTIFICATE:"",OTEL_EXPORTER_OTLP_COMPRESSION:"",OTEL_EXPORTER_OTLP_TRACES_COMPRESSION:"",OTEL_EXPORTER_OTLP_METRICS_COMPRESSION:"",OTEL_EXPORTER_OTLP_LOGS_COMPRESSION:"",OTEL_EXPORTER_OTLP_CLIENT_KEY:"",OTEL_EXPORTER_OTLP_TRACES_CLIENT_KEY:"",OTEL_EXPORTER_OTLP_METRICS_CLIENT_KEY:"",OTEL_EXPORTER_OTLP_LOGS_CLIENT_KEY:"",OTEL_EXPORTER_OTLP_CLIENT_CERTIFICATE:"",OTEL_EXPORTER_OTLP_TRACES_CLIENT_CERTIFICATE:"",OTEL_EXPORTER_OTLP_METRICS_CLIENT_CERTIFICATE:"",OTEL_EXPORTER_OTLP_LOGS_CLIENT_CERTIFICATE:"",OTEL_EXPORTER_OTLP_PROTOCOL:"http/protobuf",OTEL_EXPORTER_OTLP_TRACES_PROTOCOL:"http/protobuf",OTEL_EXPORTER_OTLP_METRICS_PROTOCOL:"http/protobuf",OTEL_EXPORTER_OTLP_LOGS_PROTOCOL:"http/protobuf",OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE:"cumulative"};function parseBoolean(L,ei,ea){if(void 0!==ea[L]){var es=String(ea[L]);ei[L]="true"===es.toLowerCase()}}function parseNumber(L,ei,ea,es,el){if(void 0===es&&(es=-1/0),void 0===el&&(el=1/0),void 0!==ea[L]){var ec=Number(ea[L]);isNaN(ec)||(ec<es?ei[L]=es:ec>el?ei[L]=el:ei[L]=ec)}}function parseStringList(L,ei,ea,es){void 0===es&&(es=ec);var el=ea[L];"string"==typeof el&&(ei[L]=el.split(es).map(function(L){return L.trim()}))}var eb={ALL:es.u.ALL,VERBOSE:es.u.VERBOSE,DEBUG:es.u.DEBUG,INFO:es.u.INFO,WARN:es.u.WARN,ERROR:es.u.ERROR,NONE:es.u.NONE};function setLogLevelFromEnv(L,ei,ea){var es=ea[L];if("string"==typeof es){var el=eb[es.toUpperCase()];null!=el&&(ei[L]=el)}}function parseEnvironment(L){var ei={};for(var ea in ey){var es=ea;if("OTEL_LOG_LEVEL"===es)setLogLevelFromEnv(es,ei,L);else if(isEnvVarABoolean(es))parseBoolean(es,ei,L);else if(isEnvVarANumber(es))parseNumber(es,ei,L);else if(isEnvVarAList(es))parseStringList(es,ei,L);else{var el=L[es];null!=el&&(ei[es]=String(el))}}return ei}},41586(L,ei,ea){"use strict";ea.d(ei,{h:()=>merge});var es="[object Object]",el="[object Null]",ec="[object Undefined]",ed=Function.prototype.toString,eu=ed.call(Object),ep=overArg(Object.getPrototypeOf,Object),eh=Object.prototype,ef=eh.hasOwnProperty,em=Symbol?Symbol.toStringTag:void 0,eg=eh.toString;function overArg(L,ei){return function(ea){return L(ei(ea))}}function isPlainObject(L){if(!isObjectLike(L)||baseGetTag(L)!==es)return!1;var ei=ep(L);if(null===ei)return!0;var ea=ef.call(ei,"constructor")&&ei.constructor;return"function"==typeof ea&&ea instanceof ea&&ed.call(ea)===eu}function isObjectLike(L){return null!=L&&"object"==typeof L}function baseGetTag(L){return null==L?void 0===L?ec:el:em&&em in Object(L)?getRawTag(L):objectToString(L)}function getRawTag(L){var ei=ef.call(L,em),ea=L[em],es=!1;try{L[em]=void 0,es=!0}catch(L){}var el=eg.call(L);return es&&(ei?L[em]=ea:delete L[em]),el}function objectToString(L){return eg.call(L)}var ey=20;function merge(){for(var L=[],ei=0;ei<arguments.length;ei++)L[ei]=arguments[ei];for(var ea=L.shift(),es=new WeakMap;L.length>0;)ea=mergeTwoObjects(ea,L.shift(),0,es);return ea}function takeValue(L){return isArray(L)?L.slice():L}function mergeTwoObjects(L,ei,ea,es){if(void 0===ea&&(ea=0),!(ea>ey)){if(ea++,isPrimitive(L)||isPrimitive(ei)||isFunction(ei))el=takeValue(ei);else if(isArray(L)){if(el=L.slice(),isArray(ei))for(var el,ec=0,ed=ei.length;ec<ed;ec++)el.push(takeValue(ei[ec]));else if(isObject(ei))for(var eu=Object.keys(ei),ec=0,ed=eu.length;ec<ed;ec++){var ep=eu[ec];el[ep]=takeValue(ei[ep])}}else if(isObject(L))if(isObject(ei)){if(!shouldMerge(L,ei))return ei;el=Object.assign({},L);for(var eu=Object.keys(ei),ec=0,ed=eu.length;ec<ed;ec++){var ep=eu[ec],eh=ei[ep];if(isPrimitive(eh))void 0===eh?delete el[ep]:el[ep]=eh;else{var ef=el[ep],em=eh;if(wasObjectReferenced(L,ep,es)||wasObjectReferenced(ei,ep,es))delete el[ep];else{if(isObject(ef)&&isObject(em)){var eg=es.get(ef)||[],eb=es.get(em)||[];eg.push({obj:L,key:ep}),eb.push({obj:ei,key:ep}),es.set(ef,eg),es.set(em,eb)}el[ep]=mergeTwoObjects(el[ep],eh,ea,es)}}}}else el=ei;return el}}function wasObjectReferenced(L,ei,ea){for(var es=ea.get(L[ei])||[],el=0,ec=es.length;el<ec;el++){var ed=es[el];if(ed.key===ei&&ed.obj===L)return!0}return!1}function isArray(L){return Array.isArray(L)}function isFunction(L){return"function"==typeof L}function isObject(L){return!isPrimitive(L)&&!isArray(L)&&!isFunction(L)&&"object"==typeof L}function isPrimitive(L){return"string"==typeof L||"number"==typeof L||"boolean"==typeof L||void 0===L||L instanceof Date||L instanceof RegExp||null===L}function shouldMerge(L,ei){return!!isPlainObject(L)&&!!isPlainObject(ei)}},98557(L,ei,ea){"use strict";var es;ea.d(ei,{R:()=>es}),function(L){L.AlwaysOff="always_off",L.AlwaysOn="always_on",L.ParentBasedAlwaysOff="parentbased_always_off",L.ParentBasedAlwaysOn="parentbased_always_on",L.ParentBasedTraceIdRatio="parentbased_traceidratio",L.TraceIdRatio="traceidratio"}(es||(es={}))},42881(L,ei,ea){"use strict";ea.d(ei,{M:()=>el,o:()=>callWithTimeout});var es=function(){var extendStatics=function(L,ei){return(extendStatics=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(L,ei){L.__proto__=ei}||function(L,ei){for(var ea in ei)Object.prototype.hasOwnProperty.call(ei,ea)&&(L[ea]=ei[ea])})(L,ei)};return function(L,ei){if("function"!=typeof ei&&null!==ei)throw TypeError("Class extends value "+String(ei)+" is not a constructor or null");function __(){this.constructor=L}extendStatics(L,ei),L.prototype=null===ei?Object.create(ei):(__.prototype=ei.prototype,new __)}}(),el=function(L){function TimeoutError(ei){var ea=L.call(this,ei)||this;return Object.setPrototypeOf(ea,TimeoutError.prototype),ea}return es(TimeoutError,L),TimeoutError}(Error);function callWithTimeout(L,ei){var ea;return Promise.race([L,new Promise(function(L,es){ea=setTimeout(function(){es(new el("Operation timed out."))},ei)})]).then(function(L){return clearTimeout(ea),L},function(L){throw clearTimeout(ea),L})}},25068(L,ei,ea){"use strict";ea.d(ei,{x:()=>es});var es="1.24.1"},36042(L,ei,ea){"use strict";var es,el,ec,ed,eu,ep,eh,ef;ea.d(ei,{fL:()=>ef,p2:()=>ey,_V:()=>es,o_:()=>ep,m7:()=>eg,G_:()=>ec,aS:()=>ed,rL:()=>eh,g_:()=>em,H_:()=>eu});let em={TARGET:"target",NAMESPACE:"namespace",ENV_NAME:"envname",HOST_IP:"net.host.ip",HOST_NAME:"net.host.name",HOST_PORT:"net.host.port",CONTAINER_NAME:"container.name",SET_NAME:"set.name",SERVICE_NAME:"service.name",SERVER_OWNER:"server.owner",TENANT_ID:"tps.tenant.id",CMDB_ID:"cmdb.module.id",LANGUAGE:"telemetry.sdk.language",SDK_NAME:"telemetry.sdk.name",SDK_VERSION:"telemetry.sdk.version"},eg={TRPC_CALLEE_SERVICE:"trpc.callee_service",TRPC_CALLEE_METHOD:"trpc.callee_method",TRPC_CALLER_SERVICE:"trpc.caller_service",TRPC_CALLER_METHOD:"trpc.caller_method",TRPC_NAMESPACE:"trpc.namespace",TRPC_ENV_NAME:"trpc.envname",TRPC_STATUS_CODE:"trpc.status_code",TRPC_STATUS_MSG:"trpc.status_msg",TRPC_STATUS_TYPE:"trpc.status_type",CALLEE_SERVICE:"callee_service",CALLEE_METHOD:"callee_method",CALLER_SERVICE:"caller_service",CALLER_METHOD:"caller_method",CALLEE_SYSTEM_NAME:"callee.system.name",CALLEE_SYSTEM_CATEGORY:"callee.system.category",CALLEE_SYSTEM_PROTOCOL:"callee.system.protocol",CALLER_SYSTEM_NAME:"caller.system.name",CALLER_SYSTEM_CATEGORY:"caller.system.category",CALLER_SYSTEM_PROTOCOL:"caller.system.protocol"};!function(L){L.ClientStartedTotal="rpc_client_started_total",L.ClientHandledTotal="rpc_client_handled_total",L.ClientHandledSeconds="rpc_client_handled_seconds",L.ServerStartedTotal="rpc_server_started_total",L.ServerHandledTotal="rpc_server_handled_total",L.ServerHandledSeconds="rpc_server_handled_seconds"}(es||(es={})),function(L){L.ProcessCpuUsage="process_cpu_usage",L.ProcessResidentMemoryUsage="process_resident_memory_usage",L.ProcessNetworkInBytes="process_network_in_bytes",L.ProcessNetworkOutBytes="process_network_out_bytes",L.ProcessBlockReadBytes="process_block_read_bytes",L.ProcessBlockWriteBytes="process_block_write_bytes",L.ProcessContainerNum="process_container_num",L.ProcessGpuUsage="process_gpu_usage",L.ProcessVideoMemoryUsage="process_video_memory_usage",L.ProcessDiskUsage="process_disk_usage",L.ProcessTcpNum="process_tcp_num",L.ProcessUdpNum="process_udp_num",L.ProcessMaxFds="process_max_fds",L.ProcessOpenFds="process_open_fds",L.ProcessPidNum="process_pid_num",L.ProcessDiskFree="process_disk_free",L.ProcessDiskUsed="process_disk_used",L.ProcessDiskUsedFraction="process_disk_used_fraction",L.ProcessCpuCores="process_cpu_cores"}(el||(el={})),function(L){L.CallerService="caller_service",L.CallerMethod="caller_method",L.CallerConSetid="caller_con_setid",L.CallerServer="caller_server",L.CalleeServer="callee_server",L.CalleeService="callee_service",L.CalleeMethod="callee_method",L.CalleeConSetid="callee_con_setid",L.CallerGroup="caller_group",L.CodeType="code_type",L.Code="code",L.UserExt1="user_ext1",L.UserExt2="user_ext2",L.UserExt3="user_ext3",L.CalleeIp="callee_ip",L.CalleeContainer="callee_container",L.CallerIp="caller_ip",L.CallerContainer="caller_container"}(ec||(ec={})),function(L){L.clientMetrics="client_metrics",L.serverMetrics="server_metrics"}(ed||(ed={})),function(L){L.Target="target",L.EnvName="env_name",L.Namespace="namespace",L.ServiceName="service_name",L.ContainerName="container_name",L.Instance="instance",L.Version="version",L.ConSetid="con_setid"}(eu||(eu={})),function(L){L.Development="Development",L.Production="Production"}(ep||(ep={})),function(L){L.Formal="formal",L.Test="test"}(eh||(eh={})),function(L){L.Webjs="webjs",L.Nodejs="nodejs"}(ef||(ef={}));let ey="galileo"},42122(L,ei,ea){"use strict";var es=ea(88609),el=ea(82829);function Accepts(L){if(!(this instanceof Accepts))return new Accepts(L);this.headers=L.headers,this.negotiator=new es(L)}function extToMime(L){return -1===L.indexOf("/")?el.lookup(L):L}function validMime(L){return"string"==typeof L}L.exports=Accepts,Accepts.prototype.type=Accepts.prototype.types=function(L){var ei=L;if(ei&&!Array.isArray(ei)){ei=Array(arguments.length);for(var ea=0;ea<ei.length;ea++)ei[ea]=arguments[ea]}if(!ei||0===ei.length)return this.negotiator.mediaTypes();if(!this.headers.accept)return ei[0];var es=ei.map(extToMime),el=this.negotiator.mediaTypes(es.filter(validMime))[0];return!!el&&ei[es.indexOf(el)]},Accepts.prototype.encoding=Accepts.prototype.encodings=function(L){var ei=L;if(ei&&!Array.isArray(ei)){ei=Array(arguments.length);for(var ea=0;ea<ei.length;ea++)ei[ea]=arguments[ea]}return ei&&0!==ei.length?this.negotiator.encodings(ei)[0]||!1:this.negotiator.encodings()},Accepts.prototype.charset=Accepts.prototype.charsets=function(L){var ei=L;if(ei&&!Array.isArray(ei)){ei=Array(arguments.length);for(var ea=0;ea<ei.length;ea++)ei[ea]=arguments[ea]}return ei&&0!==ei.length?this.negotiator.charsets(ei)[0]||!1:this.negotiator.charsets()},Accepts.prototype.lang=Accepts.prototype.langs=Accepts.prototype.language=Accepts.prototype.languages=function(L){var ei=L;if(ei&&!Array.isArray(ei)){ei=Array(arguments.length);for(var ea=0;ea<ei.length;ea++)ei[ea]=arguments[ea]}return ei&&0!==ei.length?this.negotiator.languages(ei)[0]||!1:this.negotiator.languages()}},81402(L,ei,ea){"use strict";var es=this&&this.__importDefault||function(L){return L&&L.__esModule?L:{default:L}};let el=ea(24434),ec=es(ea(94810)),ed=es(ea(69590)),eu=ec.default("agent-base");function isAgent(L){return!!L&&"function"==typeof L.addRequest}function isSecureEndpoint(){let{stack:L}=Error();return"string"==typeof L&&L.split("\n").some(L=>-1!==L.indexOf("(https.js:")||-1!==L.indexOf("node:https:"))}function createAgent(L,ei){return new createAgent.Agent(L,ei)}!function(L){let Agent=class Agent extends el.EventEmitter{constructor(L,ei){super();let ea=ei;"function"==typeof L?this.callback=L:L&&(ea=L),this.timeout=null,ea&&"number"==typeof ea.timeout&&(this.timeout=ea.timeout),this.maxFreeSockets=1,this.maxSockets=1,this.maxTotalSockets=1/0,this.sockets={},this.freeSockets={},this.requests={},this.options={}}get defaultPort(){return"number"==typeof this.explicitDefaultPort?this.explicitDefaultPort:isSecureEndpoint()?443:80}set defaultPort(L){this.explicitDefaultPort=L}get protocol(){return"string"==typeof this.explicitProtocol?this.explicitProtocol:isSecureEndpoint()?"https:":"http:"}set protocol(L){this.explicitProtocol=L}callback(L,ei,ea){throw Error('"agent-base" has no default implementation, you must subclass and override `callback()`')}addRequest(L,ei){let ea=Object.assign({},ei);"boolean"!=typeof ea.secureEndpoint&&(ea.secureEndpoint=isSecureEndpoint()),null==ea.host&&(ea.host="localhost"),null==ea.port&&(ea.port=ea.secureEndpoint?443:80),null==ea.protocol&&(ea.protocol=ea.secureEndpoint?"https:":"http:"),ea.host&&ea.path&&delete ea.path,delete ea.agent,delete ea.hostname,delete ea._defaultAgent,delete ea.defaultPort,delete ea.createConnection,L._last=!0,L.shouldKeepAlive=!1;let es=!1,el=null,ec=ea.timeout||this.timeout,onerror=ei=>{L._hadError||(L.emit("error",ei),L._hadError=!0)},ontimeout=()=>{el=null,es=!0;let L=Error(`A "socket" was not created for HTTP request before ${ec}ms`);L.code="ETIMEOUT",onerror(L)},callbackError=L=>{es||(null!==el&&(clearTimeout(el),el=null),onerror(L))},onsocket=ei=>{if(!es){if(null!=el&&(clearTimeout(el),el=null),isAgent(ei)){eu("Callback returned another Agent instance %o",ei.constructor.name),ei.addRequest(L,ea);return}if(ei){ei.once("free",()=>{this.freeSocket(ei,ea)}),L.onSocket(ei);return}onerror(Error(`no Duplex stream was returned to agent-base for \`${L.method} ${L.path}\``))}};if("function"!=typeof this.callback)return void onerror(Error("`callback` is not defined"));this.promisifiedCallback||(this.callback.length>=3?(eu("Converting legacy callback function to promise"),this.promisifiedCallback=ed.default(this.callback)):this.promisifiedCallback=this.callback),"number"==typeof ec&&ec>0&&(el=setTimeout(ontimeout,ec)),"port"in ea&&"number"!=typeof ea.port&&(ea.port=Number(ea.port));try{eu("Resolving socket for %o request: %o",ea.protocol,`${L.method} ${L.path}`),Promise.resolve(this.promisifiedCallback(L,ea)).then(onsocket,callbackError)}catch(L){Promise.reject(L).catch(callbackError)}}freeSocket(L,ei){eu("Freeing socket %o %o",L.constructor.name,ei),L.destroy()}destroy(){eu("Destroying agent %o",this.constructor.name)}};L.Agent=Agent,L.prototype=L.Agent.prototype}(createAgent||(createAgent={})),L.exports=createAgent},69590(L,ei){"use strict";Object.defineProperty(ei,"__esModule",{value:!0}),ei.default=function(L){return function(ei,ea){return new Promise((es,el)=>{L.call(this,ei,ea,(L,ei)=>{L?el(L):es(ei)})})}}},36743(L,ei,ea){"use strict";var es=this&&this.__createBinding||(Object.create?function(L,ei,ea,es){void 0===es&&(es=ea);var el=Object.getOwnPropertyDescriptor(ei,ea);(!el||("get"in el?!ei.__esModule:el.writable||el.configurable))&&(el={enumerable:!0,get:function(){return ei[ea]}}),Object.defineProperty(L,es,el)}:function(L,ei,ea,es){void 0===es&&(es=ea),L[es]=ei[ea]}),el=this&&this.__setModuleDefault||(Object.create?function(L,ei){Object.defineProperty(L,"default",{enumerable:!0,value:ei})}:function(L,ei){L.default=ei}),ec=this&&this.__importStar||function(L){if(L&&L.__esModule)return L;var ei={};if(null!=L)for(var ea in L)"default"!==ea&&Object.prototype.hasOwnProperty.call(L,ea)&&es(ei,L,ea);return el(ei,L),ei};Object.defineProperty(ei,"__esModule",{value:!0}),ei.req=ei.json=ei.toBuffer=void 0;let ed=ec(ea(58611)),eu=ec(ea(65692));async function toBuffer(L){let ei=0,ea=[];for await(let es of L)ei+=es.length,ea.push(es);return Buffer.concat(ea,ei)}ei.toBuffer=toBuffer,ei.json=async function(L){let ei=(await toBuffer(L)).toString("utf8");try{return JSON.parse(ei)}catch(ea){let L=ea;throw L.message+=` (input: ${ei})`,L}},ei.req=function(L,ei={}){let ea=(("string"==typeof L?L:L.href).startsWith("https:")?eu:ed).request(L,ei),es=new Promise((L,ei)=>{ea.once("response",L).once("error",ei).end()});return ea.then=es.then.bind(es),ea}},56406(L,ei,ea){"use strict";var es=this&&this.__createBinding||(Object.create?function(L,ei,ea,es){void 0===es&&(es=ea);var el=Object.getOwnPropertyDescriptor(ei,ea);(!el||("get"in el?!ei.__esModule:el.writable||el.configurable))&&(el={enumerable:!0,get:function(){return ei[ea]}}),Object.defineProperty(L,es,el)}:function(L,ei,ea,es){void 0===es&&(es=ea),L[es]=ei[ea]}),el=this&&this.__setModuleDefault||(Object.create?function(L,ei){Object.defineProperty(L,"default",{enumerable:!0,value:ei})}:function(L,ei){L.default=ei}),ec=this&&this.__importStar||function(L){if(L&&L.__esModule)return L;var ei={};if(null!=L)for(var ea in L)"default"!==ea&&Object.prototype.hasOwnProperty.call(L,ea)&&es(ei,L,ea);return el(ei,L),ei},ed=this&&this.__exportStar||function(L,ei){for(var ea in L)"default"===ea||Object.prototype.hasOwnProperty.call(ei,ea)||es(ei,L,ea)};Object.defineProperty(ei,"__esModule",{value:!0}),ei.Agent=void 0;let eu=ec(ea(69278)),ep=ec(ea(58611)),eh=ea(65692);ed(ea(36743),ei);let ef=Symbol("AgentBaseInternalState");let Agent=class Agent extends ep.Agent{constructor(L){super(L),this[ef]={}}isSecureEndpoint(L){if(L){if("boolean"==typeof L.secureEndpoint)return L.secureEndpoint;if("string"==typeof L.protocol)return"https:"===L.protocol}let{stack:ei}=Error();return"string"==typeof ei&&ei.split("\n").some(L=>-1!==L.indexOf("(https.js:")||-1!==L.indexOf("node:https:"))}incrementSockets(L){if(this.maxSockets===1/0&&this.maxTotalSockets===1/0)return null;this.sockets[L]||(this.sockets[L]=[]);let ei=new eu.Socket({writable:!1});return this.sockets[L].push(ei),this.totalSocketCount++,ei}decrementSockets(L,ei){if(!this.sockets[L]||null===ei)return;let ea=this.sockets[L],es=ea.indexOf(ei);-1!==es&&(ea.splice(es,1),this.totalSocketCount--,0===ea.length&&delete this.sockets[L])}getName(L){return("boolean"==typeof L.secureEndpoint?L.secureEndpoint:this.isSecureEndpoint(L))?eh.Agent.prototype.getName.call(this,L):super.getName(L)}createSocket(L,ei,ea){let es={...ei,secureEndpoint:this.isSecureEndpoint(ei)},el=this.getName(es),ec=this.incrementSockets(el);Promise.resolve().then(()=>this.connect(L,es)).then(ed=>{if(this.decrementSockets(el,ec),ed instanceof ep.Agent)try{return ed.addRequest(L,es)}catch(L){return ea(L)}this[ef].currentSocket=ed,super.createSocket(L,ei,ea)},L=>{this.decrementSockets(el,ec),ea(L)})}createConnection(){let L=this[ef].currentSocket;if(this[ef].currentSocket=void 0,!L)throw Error("No socket was returned in the `connect()` function");return L}get defaultPort(){return this[ef].defaultPort??("https:"===this.protocol?443:80)}set defaultPort(L){this[ef]&&(this[ef].defaultPort=L)}get protocol(){return this[ef].protocol??(this.isSecureEndpoint()?"https:":"http:")}set protocol(L){this[ef]&&(this[ef].protocol=L)}};ei.Agent=Agent},44850(L,ei,ea){"use strict";Object.defineProperty(ei,"__esModule",{value:!0}),ei.MissingRefError=ei.ValidationError=ei.CodeGen=ei.Name=ei.nil=ei.stringify=ei.str=ei._=ei.KeywordCxt=ei.Ajv=void 0;let es=ea(96042),el=ea(21888),ec=ea(9581),ed=ea(29199),eu=["/properties"],ep="http://json-schema.org/draft-07/schema";let Ajv=class Ajv extends es.default{_addVocabularies(){super._addVocabularies(),el.default.forEach(L=>this.addVocabulary(L)),this.opts.discriminator&&this.addKeyword(ec.default)}_addDefaultMetaSchema(){if(super._addDefaultMetaSchema(),!this.opts.meta)return;let L=this.opts.$data?this.$dataMetaSchema(ed,eu):ed;this.addMetaSchema(L,ep,!1),this.refs["http://json-schema.org/schema"]=ep}defaultMeta(){return this.opts.defaultMeta=super.defaultMeta()||(this.getSchema(ep)?ep:void 0)}};ei.Ajv=Ajv,L.exports=ei=Ajv,L.exports.Ajv=Ajv,Object.defineProperty(ei,"__esModule",{value:!0}),ei.default=Ajv;var eh=ea(41722);Object.defineProperty(ei,"KeywordCxt",{enumerable:!0,get:function(){return eh.KeywordCxt}});var ef=ea(46133);Object.defineProperty(ei,"_",{enumerable:!0,get:function(){return ef._}}),Object.defineProperty(ei,"str",{enumerable:!0,get:function(){return ef.str}}),Object.defineProperty(ei,"stringify",{enumerable:!0,get:function(){return ef.stringify}}),Object.defineProperty(ei,"nil",{enumerable:!0,get:function(){return ef.nil}}),Object.defineProperty(ei,"Name",{enumerable:!0,get:function(){return ef.Name}}),Object.defineProperty(ei,"CodeGen",{enumerable:!0,get:function(){return ef.CodeGen}});var em=ea(95894);Object.defineProperty(ei,"ValidationError",{enumerable:!0,get:function(){return em.default}});var eg=ea(53143);Object.defineProperty(ei,"MissingRefError",{enumerable:!0,get:function(){return eg.default}})},9872(L,ei){"use strict";Object.defineProperty(ei,"__esModule",{value:!0}),ei.regexpCode=ei.getEsmExportName=ei.getProperty=ei.safeStringify=ei.stringify=ei.strConcat=ei.addCodeArg=ei.str=ei._=ei.nil=ei._Code=ei.Name=ei.IDENTIFIER=ei._CodeOrName=void 0;let _CodeOrName=class _CodeOrName{};ei._CodeOrName=_CodeOrName,ei.IDENTIFIER=/^[a-z$_][a-z$_0-9]*$/i;let Name=class Name extends _CodeOrName{constructor(L){if(super(),!ei.IDENTIFIER.test(L))throw Error("CodeGen: name must be a valid identifier");this.str=L}toString(){return this.str}emptyStr(){return!1}get names(){return{[this.str]:1}}};ei.Name=Name;let _Code=class _Code extends _CodeOrName{constructor(L){super(),this._items="string"==typeof L?[L]:L}toString(){return this.str}emptyStr(){if(this._items.length>1)return!1;let L=this._items[0];return""===L||'""'===L}get str(){var L;return null!=(L=this._str)?L:this._str=this._items.reduce((L,ei)=>`${L}${ei}`,"")}get names(){var L;return null!=(L=this._names)?L:this._names=this._items.reduce((L,ei)=>(ei instanceof Name&&(L[ei.str]=(L[ei.str]||0)+1),L),{})}};function _(L,...ei){let ea=[L[0]],es=0;for(;es<ei.length;)addCodeArg(ea,ei[es]),ea.push(L[++es]);return new _Code(ea)}ei._Code=_Code,ei.nil=new _Code(""),ei._=_;let ea=new _Code("+");function str(L,...ei){let es=[safeStringify(L[0])],el=0;for(;el<ei.length;)es.push(ea),addCodeArg(es,ei[el]),es.push(ea,safeStringify(L[++el]));return optimize(es),new _Code(es)}function addCodeArg(L,ei){ei instanceof _Code?L.push(...ei._items):ei instanceof Name?L.push(ei):L.push(interpolate(ei))}function optimize(L){let ei=1;for(;ei<L.length-1;){if(L[ei]===ea){let ea=mergeExprItems(L[ei-1],L[ei+1]);if(void 0!==ea){L.splice(ei-1,3,ea);continue}L[ei++]="+"}ei++}}function mergeExprItems(L,ei){return'""'===ei?L:'""'===L?ei:"string"==typeof L?ei instanceof Name||'"'!==L[L.length-1]?void 0:"string"!=typeof ei?`${L.slice(0,-1)}${ei}"`:'"'===ei[0]?L.slice(0,-1)+ei.slice(1):void 0:"string"!=typeof ei||'"'!==ei[0]||L instanceof Name?void 0:`"${L}${ei.slice(1)}`}function interpolate(L){return"number"==typeof L||"boolean"==typeof L||null===L?L:safeStringify(Array.isArray(L)?L.join(","):L)}function safeStringify(L){return JSON.stringify(L).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")}function getProperty(L){return"string"==typeof L&&ei.IDENTIFIER.test(L)?new _Code(`.${L}`):_`[${L}]`}function getEsmExportName(L){if("string"==typeof L&&ei.IDENTIFIER.test(L))return new _Code(`${L}`);throw Error(`CodeGen: invalid export name: ${L}, use explicit $id name mapping`)}ei.str=str,ei.addCodeArg=addCodeArg,ei.strConcat=function(L,ei){return ei.emptyStr()?L:L.emptyStr()?ei:str`${L}${ei}`},ei.stringify=function(L){return new _Code(safeStringify(L))},ei.safeStringify=safeStringify,ei.getProperty=getProperty,ei.getEsmExportName=getEsmExportName,ei.regexpCode=function(L){return new _Code(L.toString())}},46133(L,ei,ea){"use strict";Object.defineProperty(ei,"__esModule",{value:!0}),ei.or=ei.and=ei.not=ei.CodeGen=ei.operators=ei.varKinds=ei.ValueScopeName=ei.ValueScope=ei.Scope=ei.Name=ei.regexpCode=ei.stringify=ei.getProperty=ei.nil=ei.strConcat=ei.str=ei._=void 0;let es=ea(9872),el=ea(4949);var ec=ea(9872);Object.defineProperty(ei,"_",{enumerable:!0,get:function(){return ec._}}),Object.defineProperty(ei,"str",{enumerable:!0,get:function(){return ec.str}}),Object.defineProperty(ei,"strConcat",{enumerable:!0,get:function(){return ec.strConcat}}),Object.defineProperty(ei,"nil",{enumerable:!0,get:function(){return ec.nil}}),Object.defineProperty(ei,"getProperty",{enumerable:!0,get:function(){return ec.getProperty}}),Object.defineProperty(ei,"stringify",{enumerable:!0,get:function(){return ec.stringify}}),Object.defineProperty(ei,"regexpCode",{enumerable:!0,get:function(){return ec.regexpCode}}),Object.defineProperty(ei,"Name",{enumerable:!0,get:function(){return ec.Name}});var ed=ea(4949);Object.defineProperty(ei,"Scope",{enumerable:!0,get:function(){return ed.Scope}}),Object.defineProperty(ei,"ValueScope",{enumerable:!0,get:function(){return ed.ValueScope}}),Object.defineProperty(ei,"ValueScopeName",{enumerable:!0,get:function(){return ed.ValueScopeName}}),Object.defineProperty(ei,"varKinds",{enumerable:!0,get:function(){return ed.varKinds}}),ei.operators={GT:new es._Code(">"),GTE:new es._Code(">="),LT:new es._Code("<"),LTE:new es._Code("<="),EQ:new es._Code("==="),NEQ:new es._Code("!=="),NOT:new es._Code("!"),OR:new es._Code("||"),AND:new es._Code("&&"),ADD:new es._Code("+")};let Node=class Node{optimizeNodes(){return this}optimizeNames(L,ei){return this}};let Def=class Def extends Node{constructor(L,ei,ea){super(),this.varKind=L,this.name=ei,this.rhs=ea}render({es5:L,_n:ei}){let ea=L?el.varKinds.var:this.varKind,es=void 0===this.rhs?"":` = ${this.rhs}`;return`${ea} ${this.name}${es};`+ei}optimizeNames(L,ei){if(L[this.name.str])return this.rhs&&(this.rhs=optimizeExpr(this.rhs,L,ei)),this}get names(){return this.rhs instanceof es._CodeOrName?this.rhs.names:{}}};let Assign=class Assign extends Node{constructor(L,ei,ea){super(),this.lhs=L,this.rhs=ei,this.sideEffects=ea}render({_n:L}){return`${this.lhs} = ${this.rhs};`+L}optimizeNames(L,ei){if(!(this.lhs instanceof es.Name)||L[this.lhs.str]||this.sideEffects)return this.rhs=optimizeExpr(this.rhs,L,ei),this}get names(){return addExprNames(this.lhs instanceof es.Name?{}:{...this.lhs.names},this.rhs)}};let AssignOp=class AssignOp extends Assign{constructor(L,ei,ea,es){super(L,ea,es),this.op=ei}render({_n:L}){return`${this.lhs} ${this.op}= ${this.rhs};`+L}};let Label=class Label extends Node{constructor(L){super(),this.label=L,this.names={}}render({_n:L}){return`${this.label}:`+L}};let Break=class Break extends Node{constructor(L){super(),this.label=L,this.names={}}render({_n:L}){let ei=this.label?` ${this.label}`:"";return`break${ei};`+L}};let Throw=class Throw extends Node{constructor(L){super(),this.error=L}render({_n:L}){return`throw ${this.error};`+L}get names(){return this.error.names}};let AnyCode=class AnyCode extends Node{constructor(L){super(),this.code=L}render({_n:L}){return`${this.code};`+L}optimizeNodes(){return`${this.code}`?this:void 0}optimizeNames(L,ei){return this.code=optimizeExpr(this.code,L,ei),this}get names(){return this.code instanceof es._CodeOrName?this.code.names:{}}};let ParentNode=class ParentNode extends Node{constructor(L=[]){super(),this.nodes=L}render(L){return this.nodes.reduce((ei,ea)=>ei+ea.render(L),"")}optimizeNodes(){let{nodes:L}=this,ei=L.length;for(;ei--;){let ea=L[ei].optimizeNodes();Array.isArray(ea)?L.splice(ei,1,...ea):ea?L[ei]=ea:L.splice(ei,1)}return L.length>0?this:void 0}optimizeNames(L,ei){let{nodes:ea}=this,es=ea.length;for(;es--;){let el=ea[es];el.optimizeNames(L,ei)||(subtractNames(L,el.names),ea.splice(es,1))}return ea.length>0?this:void 0}get names(){return this.nodes.reduce((L,ei)=>addNames(L,ei.names),{})}};let BlockNode=class BlockNode extends ParentNode{render(L){return"{"+L._n+super.render(L)+"}"+L._n}};let Root=class Root extends ParentNode{};let Else=class Else extends BlockNode{};Else.kind="else";let If=class If extends BlockNode{constructor(L,ei){super(ei),this.condition=L}render(L){let ei=`if(${this.condition})`+super.render(L);return this.else&&(ei+="else "+this.else.render(L)),ei}optimizeNodes(){super.optimizeNodes();let L=this.condition;if(!0===L)return this.nodes;let ei=this.else;if(ei){let L=ei.optimizeNodes();ei=this.else=Array.isArray(L)?new Else(L):L}return ei?!1===L?ei instanceof If?ei:ei.nodes:this.nodes.length?this:new If(not(L),ei instanceof If?[ei]:ei.nodes):!1!==L&&this.nodes.length?this:void 0}optimizeNames(L,ei){var ea;if(this.else=null==(ea=this.else)?void 0:ea.optimizeNames(L,ei),super.optimizeNames(L,ei)||this.else)return this.condition=optimizeExpr(this.condition,L,ei),this}get names(){let L=super.names;return addExprNames(L,this.condition),this.else&&addNames(L,this.else.names),L}};If.kind="if";let For=class For extends BlockNode{};For.kind="for";let ForLoop=class ForLoop extends For{constructor(L){super(),this.iteration=L}render(L){return`for(${this.iteration})`+super.render(L)}optimizeNames(L,ei){if(super.optimizeNames(L,ei))return this.iteration=optimizeExpr(this.iteration,L,ei),this}get names(){return addNames(super.names,this.iteration.names)}};let ForRange=class ForRange extends For{constructor(L,ei,ea,es){super(),this.varKind=L,this.name=ei,this.from=ea,this.to=es}render(L){let ei=L.es5?el.varKinds.var:this.varKind,{name:ea,from:es,to:ec}=this;return`for(${ei} ${ea}=${es}; ${ea}<${ec}; ${ea}++)`+super.render(L)}get names(){let L=addExprNames(super.names,this.from);return addExprNames(L,this.to)}};let ForIter=class ForIter extends For{constructor(L,ei,ea,es){super(),this.loop=L,this.varKind=ei,this.name=ea,this.iterable=es}render(L){return`for(${this.varKind} ${this.name} ${this.loop} ${this.iterable})`+super.render(L)}optimizeNames(L,ei){if(super.optimizeNames(L,ei))return this.iterable=optimizeExpr(this.iterable,L,ei),this}get names(){return addNames(super.names,this.iterable.names)}};let Func=class Func extends BlockNode{constructor(L,ei,ea){super(),this.name=L,this.args=ei,this.async=ea}render(L){let ei=this.async?"async ":"";return`${ei}function ${this.name}(${this.args})`+super.render(L)}};Func.kind="func";let Return=class Return extends ParentNode{render(L){return"return "+super.render(L)}};Return.kind="return";let Try=class Try extends BlockNode{render(L){let ei="try"+super.render(L);return this.catch&&(ei+=this.catch.render(L)),this.finally&&(ei+=this.finally.render(L)),ei}optimizeNodes(){var L,ei;return super.optimizeNodes(),null==(L=this.catch)||L.optimizeNodes(),null==(ei=this.finally)||ei.optimizeNodes(),this}optimizeNames(L,ei){var ea,es;return super.optimizeNames(L,ei),null==(ea=this.catch)||ea.optimizeNames(L,ei),null==(es=this.finally)||es.optimizeNames(L,ei),this}get names(){let L=super.names;return this.catch&&addNames(L,this.catch.names),this.finally&&addNames(L,this.finally.names),L}};let Catch=class Catch extends BlockNode{constructor(L){super(),this.error=L}render(L){return`catch(${this.error})`+super.render(L)}};Catch.kind="catch";let Finally=class Finally extends BlockNode{render(L){return"finally"+super.render(L)}};Finally.kind="finally";let CodeGen=class CodeGen{constructor(L,ei={}){this._values={},this._blockStarts=[],this._constants={},this.opts={...ei,_n:ei.lines?"\n":""},this._extScope=L,this._scope=new el.Scope({parent:L}),this._nodes=[new Root]}toString(){return this._root.render(this.opts)}name(L){return this._scope.name(L)}scopeName(L){return this._extScope.name(L)}scopeValue(L,ei){let ea=this._extScope.value(L,ei);return(this._values[ea.prefix]||(this._values[ea.prefix]=new Set)).add(ea),ea}getScopeValue(L,ei){return this._extScope.getValue(L,ei)}scopeRefs(L){return this._extScope.scopeRefs(L,this._values)}scopeCode(){return this._extScope.scopeCode(this._values)}_def(L,ei,ea,es){let el=this._scope.toName(ei);return void 0!==ea&&es&&(this._constants[el.str]=ea),this._leafNode(new Def(L,el,ea)),el}const(L,ei,ea){return this._def(el.varKinds.const,L,ei,ea)}let(L,ei,ea){return this._def(el.varKinds.let,L,ei,ea)}var(L,ei,ea){return this._def(el.varKinds.var,L,ei,ea)}assign(L,ei,ea){return this._leafNode(new Assign(L,ei,ea))}add(L,ea){return this._leafNode(new AssignOp(L,ei.operators.ADD,ea))}code(L){return"function"==typeof L?L():L!==es.nil&&this._leafNode(new AnyCode(L)),this}object(...L){let ei=["{"];for(let[ea,el]of L)ei.length>1&&ei.push(","),ei.push(ea),(ea!==el||this.opts.es5)&&(ei.push(":"),(0,es.addCodeArg)(ei,el));return ei.push("}"),new es._Code(ei)}if(L,ei,ea){if(this._blockNode(new If(L)),ei&&ea)this.code(ei).else().code(ea).endIf();else if(ei)this.code(ei).endIf();else if(ea)throw Error('CodeGen: "else" body without "then" body');return this}elseIf(L){return this._elseNode(new If(L))}else(){return this._elseNode(new Else)}endIf(){return this._endBlockNode(If,Else)}_for(L,ei){return this._blockNode(L),ei&&this.code(ei).endFor(),this}for(L,ei){return this._for(new ForLoop(L),ei)}forRange(L,ei,ea,es,ec=this.opts.es5?el.varKinds.var:el.varKinds.let){let ed=this._scope.toName(L);return this._for(new ForRange(ec,ed,ei,ea),()=>es(ed))}forOf(L,ei,ea,ec=el.varKinds.const){let ed=this._scope.toName(L);if(this.opts.es5){let L=ei instanceof es.Name?ei:this.var("_arr",ei);return this.forRange("_i",0,(0,es._)`${L}.length`,ei=>{this.var(ed,(0,es._)`${L}[${ei}]`),ea(ed)})}return this._for(new ForIter("of",ec,ed,ei),()=>ea(ed))}forIn(L,ei,ea,ec=this.opts.es5?el.varKinds.var:el.varKinds.const){if(this.opts.ownProperties)return this.forOf(L,(0,es._)`Object.keys(${ei})`,ea);let ed=this._scope.toName(L);return this._for(new ForIter("in",ec,ed,ei),()=>ea(ed))}endFor(){return this._endBlockNode(For)}label(L){return this._leafNode(new Label(L))}break(L){return this._leafNode(new Break(L))}return(L){let ei=new Return;if(this._blockNode(ei),this.code(L),1!==ei.nodes.length)throw Error('CodeGen: "return" should have one node');return this._endBlockNode(Return)}try(L,ei,ea){if(!ei&&!ea)throw Error('CodeGen: "try" without "catch" and "finally"');let es=new Try;if(this._blockNode(es),this.code(L),ei){let L=this.name("e");this._currNode=es.catch=new Catch(L),ei(L)}return ea&&(this._currNode=es.finally=new Finally,this.code(ea)),this._endBlockNode(Catch,Finally)}throw(L){return this._leafNode(new Throw(L))}block(L,ei){return this._blockStarts.push(this._nodes.length),L&&this.code(L).endBlock(ei),this}endBlock(L){let ei=this._blockStarts.pop();if(void 0===ei)throw Error("CodeGen: not in self-balancing block");let ea=this._nodes.length-ei;if(ea<0||void 0!==L&&ea!==L)throw Error(`CodeGen: wrong number of nodes: ${ea} vs ${L} expected`);return this._nodes.length=ei,this}func(L,ei=es.nil,ea,el){return this._blockNode(new Func(L,ei,ea)),el&&this.code(el).endFunc(),this}endFunc(){return this._endBlockNode(Func)}optimize(L=1){for(;L-- >0;)this._root.optimizeNodes(),this._root.optimizeNames(this._root.names,this._constants)}_leafNode(L){return this._currNode.nodes.push(L),this}_blockNode(L){this._currNode.nodes.push(L),this._nodes.push(L)}_endBlockNode(L,ei){let ea=this._currNode;if(ea instanceof L||ei&&ea instanceof ei)return this._nodes.pop(),this;throw Error(`CodeGen: not in block "${ei?`${L.kind}/${ei.kind}`:L.kind}"`)}_elseNode(L){let ei=this._currNode;if(!(ei instanceof If))throw Error('CodeGen: "else" without "if"');return this._currNode=ei.else=L,this}get _root(){return this._nodes[0]}get _currNode(){let L=this._nodes;return L[L.length-1]}set _currNode(L){let ei=this._nodes;ei[ei.length-1]=L}};function addNames(L,ei){for(let ea in ei)L[ea]=(L[ea]||0)+(ei[ea]||0);return L}function addExprNames(L,ei){return ei instanceof es._CodeOrName?addNames(L,ei.names):L}function optimizeExpr(L,ei,ea){if(L instanceof es.Name)return replaceName(L);if(!canOptimize(L))return L;return new es._Code(L._items.reduce((L,ei)=>(ei instanceof es.Name&&(ei=replaceName(ei)),ei instanceof es._Code?L.push(...ei._items):L.push(ei),L),[]));function replaceName(L){let es=ea[L.str];return void 0===es||1!==ei[L.str]?L:(delete ei[L.str],es)}function canOptimize(L){return L instanceof es._Code&&L._items.some(L=>L instanceof es.Name&&1===ei[L.str]&&void 0!==ea[L.str])}}function subtractNames(L,ei){for(let ea in ei)L[ea]=(L[ea]||0)-(ei[ea]||0)}function not(L){return"boolean"==typeof L||"number"==typeof L||null===L?!L:(0,es._)`!${par(L)}`}ei.CodeGen=CodeGen,ei.not=not;let eu=mappend(ei.operators.AND);ei.and=function(...L){return L.reduce(eu)};let ep=mappend(ei.operators.OR);function mappend(L){return(ei,ea)=>ei===es.nil?ea:ea===es.nil?ei:(0,es._)`${par(ei)} ${L} ${par(ea)}`}function par(L){return L instanceof es.Name?L:(0,es._)`(${L})`}ei.or=function(...L){return L.reduce(ep)}},4949(L,ei,ea){"use strict";var es;Object.defineProperty(ei,"__esModule",{value:!0}),ei.ValueScope=ei.ValueScopeName=ei.Scope=ei.varKinds=ei.UsedValueState=void 0;let el=ea(9872);let ValueError=class ValueError extends Error{constructor(L){super(`CodeGen: "code" for ${L} not defined`),this.value=L.value}};!function(L){L[L.Started=0]="Started",L[L.Completed=1]="Completed"}(es||(ei.UsedValueState=es={})),ei.varKinds={const:new el.Name("const"),let:new el.Name("let"),var:new el.Name("var")};let Scope=class Scope{constructor({prefixes:L,parent:ei}={}){this._names={},this._prefixes=L,this._parent=ei}toName(L){return L instanceof el.Name?L:this.name(L)}name(L){return new el.Name(this._newName(L))}_newName(L){let ei=this._names[L]||this._nameGroup(L);return`${L}${ei.index++}`}_nameGroup(L){var ei,ea;if((null==(ea=null==(ei=this._parent)?void 0:ei._prefixes)?void 0:ea.has(L))||this._prefixes&&!this._prefixes.has(L))throw Error(`CodeGen: prefix "${L}" is not allowed in this scope`);return this._names[L]={prefix:L,index:0}}};ei.Scope=Scope;let ValueScopeName=class ValueScopeName extends el.Name{constructor(L,ei){super(ei),this.prefix=L}setValue(L,{property:ei,itemIndex:ea}){this.value=L,this.scopePath=(0,el._)`.${new el.Name(ei)}[${ea}]`}};ei.ValueScopeName=ValueScopeName;let ec=(0,el._)`\n`;let ValueScope=class ValueScope extends Scope{constructor(L){super(L),this._values={},this._scope=L.scope,this.opts={...L,_n:L.lines?ec:el.nil}}get(){return this._scope}name(L){return new ValueScopeName(L,this._newName(L))}value(L,ei){var ea;if(void 0===ei.ref)throw Error("CodeGen: ref must be passed in value");let es=this.toName(L),{prefix:el}=es,ec=null!=(ea=ei.key)?ea:ei.ref,ed=this._values[el];if(ed){let L=ed.get(ec);if(L)return L}else ed=this._values[el]=new Map;ed.set(ec,es);let eu=this._scope[el]||(this._scope[el]=[]),ep=eu.length;return eu[ep]=ei.ref,es.setValue(ei,{property:el,itemIndex:ep}),es}getValue(L,ei){let ea=this._values[L];if(ea)return ea.get(ei)}scopeRefs(L,ei=this._values){return this._reduceValues(ei,ei=>{if(void 0===ei.scopePath)throw Error(`CodeGen: name "${ei}" has no value`);return(0,el._)`${L}${ei.scopePath}`})}scopeCode(L=this._values,ei,ea){return this._reduceValues(L,L=>{if(void 0===L.value)throw Error(`CodeGen: name "${L}" has no value`);return L.value.code},ei,ea)}_reduceValues(L,ea,ec={},ed){let eu=el.nil;for(let ep in L){let eh=L[ep];if(!eh)continue;let ef=ec[ep]=ec[ep]||new Map;eh.forEach(L=>{if(ef.has(L))return;ef.set(L,es.Started);let ec=ea(L);if(ec){let ea=this.opts.es5?ei.varKinds.var:ei.varKinds.const;eu=(0,el._)`${eu}${ea} ${L} = ${ec};${this.opts._n}`}else if(ec=null==ed?void 0:ed(L))eu=(0,el._)`${eu}${ec}${this.opts._n}`;else throw new ValueError(L);ef.set(L,es.Completed)})}return eu}};ei.ValueScope=ValueScope},29700(L,ei,ea){"use strict";Object.defineProperty(ei,"__esModule",{value:!0}),ei.extendErrors=ei.resetErrorsCount=ei.reportExtraError=ei.reportError=ei.keyword$DataError=ei.keywordError=void 0;let es=ea(46133),el=ea(16435),ec=ea(50951);function reportError(L,ea=ei.keywordError,el,ec){let{it:ed}=L,{gen:eu,compositeRule:ep,allErrors:eh}=ed,ef=errorObjectCode(L,ea,el);(null!=ec?ec:ep||eh)?addError(eu,ef):returnErrors(ed,(0,es._)`[${ef}]`)}function reportExtraError(L,ea=ei.keywordError,es){let{it:el}=L,{gen:ed,compositeRule:eu,allErrors:ep}=el;addError(ed,errorObjectCode(L,ea,es)),eu||ep||returnErrors(el,ec.default.vErrors)}function addError(L,ei){let ea=L.const("err",ei);L.if((0,es._)`${ec.default.vErrors} === null`,()=>L.assign(ec.default.vErrors,(0,es._)`[${ea}]`),(0,es._)`${ec.default.vErrors}.push(${ea})`),L.code((0,es._)`${ec.default.errors}++`)}function returnErrors(L,ei){let{gen:ea,validateName:el,schemaEnv:ec}=L;ec.$async?ea.throw((0,es._)`new ${L.ValidationError}(${ei})`):(ea.assign((0,es._)`${el}.errors`,ei),ea.return(!1))}ei.keywordError={message:({keyword:L})=>(0,es.str)`must pass "${L}" keyword validation`},ei.keyword$DataError={message:({keyword:L,schemaType:ei})=>ei?(0,es.str)`"${L}" keyword must be ${ei} ($data)`:(0,es.str)`"${L}" keyword is invalid ($data)`},ei.reportError=reportError,ei.reportExtraError=reportExtraError,ei.resetErrorsCount=function(L,ei){L.assign(ec.default.errors,ei),L.if((0,es._)`${ec.default.vErrors} !== null`,()=>L.if(ei,()=>L.assign((0,es._)`${ec.default.vErrors}.length`,ei),()=>L.assign(ec.default.vErrors,null)))},ei.extendErrors=function({gen:L,keyword:ei,schemaValue:ea,data:el,errsCount:ed,it:eu}){if(void 0===ed)throw Error("ajv implementation error");let ep=L.name("err");L.forRange("i",ed,ec.default.errors,ed=>{L.const(ep,(0,es._)`${ec.default.vErrors}[${ed}]`),L.if((0,es._)`${ep}.instancePath === undefined`,()=>L.assign((0,es._)`${ep}.instancePath`,(0,es.strConcat)(ec.default.instancePath,eu.errorPath))),L.assign((0,es._)`${ep}.schemaPath`,(0,es.str)`${eu.errSchemaPath}/${ei}`),eu.opts.verbose&&(L.assign((0,es._)`${ep}.schema`,ea),L.assign((0,es._)`${ep}.data`,el))})};let ed={keyword:new es.Name("keyword"),schemaPath:new es.Name("schemaPath"),params:new es.Name("params"),propertyName:new es.Name("propertyName"),message:new es.Name("message"),schema:new es.Name("schema"),parentSchema:new es.Name("parentSchema")};function errorObjectCode(L,ei,ea){let{createErrors:el}=L.it;return!1===el?(0,es._)`{}`:errorObject(L,ei,ea)}function errorObject(L,ei,ea={}){let{gen:es,it:el}=L,ec=[errorInstancePath(el,ea),errorSchemaPath(L,ea)];return extraErrorProps(L,ei,ec),es.object(...ec)}function errorInstancePath({errorPath:L},{instancePath:ei}){let ea=ei?(0,es.str)`${L}${(0,el.getErrorPath)(ei,el.Type.Str)}`:L;return[ec.default.instancePath,(0,es.strConcat)(ec.default.instancePath,ea)]}function errorSchemaPath({keyword:L,it:{errSchemaPath:ei}},{schemaPath:ea,parentSchema:ec}){let eu=ec?ei:(0,es.str)`${ei}/${L}`;return ea&&(eu=(0,es.str)`${eu}${(0,el.getErrorPath)(ea,el.Type.Str)}`),[ed.schemaPath,eu]}function extraErrorProps(L,{params:ei,message:ea},el){let{keyword:eu,data:ep,schemaValue:eh,it:ef}=L,{opts:em,propertyName:eg,topSchemaRef:ey,schemaPath:eb}=ef;el.push([ed.keyword,eu],[ed.params,"function"==typeof ei?ei(L):ei||(0,es._)`{}`]),em.messages&&el.push([ed.message,"function"==typeof ea?ea(L):ea]),em.verbose&&el.push([ed.schema,eh],[ed.parentSchema,(0,es._)`${ey}${eb}`],[ec.default.data,ep]),eg&&el.push([ed.propertyName,eg])}},82763(L,ei,ea){"use strict";Object.defineProperty(ei,"__esModule",{value:!0}),ei.resolveSchema=ei.getCompilingSchema=ei.resolveRef=ei.compileSchema=ei.SchemaEnv=void 0;let es=ea(46133),el=ea(95894),ec=ea(50951),ed=ea(72155),eu=ea(16435),ep=ea(41722);let SchemaEnv=class SchemaEnv{constructor(L){var ei;let ea;this.refs={},this.dynamicAnchors={},"object"==typeof L.schema&&(ea=L.schema),this.schema=L.schema,this.schemaId=L.schemaId,this.root=L.root||this,this.baseId=null!=(ei=L.baseId)?ei:(0,ed.normalizeId)(null==ea?void 0:ea[L.schemaId||"$id"]),this.schemaPath=L.schemaPath,this.localRefs=L.localRefs,this.meta=L.meta,this.$async=null==ea?void 0:ea.$async,this.refs={}}};function compileSchema(L){let ei,ea,eu=getCompilingSchema.call(this,L);if(eu)return eu;let eh=(0,ed.getFullPath)(this.opts.uriResolver,L.root.baseId),{es5:ef,lines:em}=this.opts.code,{ownProperties:eg}=this.opts,ey=new es.CodeGen(this.scope,{es5:ef,lines:em,ownProperties:eg});L.$async&&(ei=ey.scopeValue("Error",{ref:el.default,code:(0,es._)`require("ajv/dist/runtime/validation_error").default`}));let eb=ey.scopeName("validate");L.validateName=eb;let e_={gen:ey,allErrors:this.opts.allErrors,data:ec.default.data,parentData:ec.default.parentData,parentDataProperty:ec.default.parentDataProperty,dataNames:[ec.default.data],dataPathArr:[es.nil],dataLevel:0,dataTypes:[],definedProperties:new Set,topSchemaRef:ey.scopeValue("schema",!0===this.opts.code.source?{ref:L.schema,code:(0,es.stringify)(L.schema)}:{ref:L.schema}),validateName:eb,ValidationError:ei,schema:L.schema,schemaEnv:L,rootId:eh,baseId:L.baseId||eh,schemaPath:es.nil,errSchemaPath:L.schemaPath||(this.opts.jtd?"":"#"),errorPath:(0,es._)`""`,opts:this.opts,self:this};try{this._compilations.add(L),(0,ep.validateFunctionCode)(e_),ey.optimize(this.opts.code.optimize);let ei=ey.toString();ea=`${ey.scopeRefs(ec.default.scope)}return ${ei}`,this.opts.code.process&&(ea=this.opts.code.process(ea,L));let el=Function(`${ec.default.self}`,`${ec.default.scope}`,ea)(this,this.scope.get());if(this.scope.value(eb,{ref:el}),el.errors=null,el.schema=L.schema,el.schemaEnv=L,L.$async&&(el.$async=!0),!0===this.opts.code.source&&(el.source={validateName:eb,validateCode:ei,scopeValues:ey._values}),this.opts.unevaluated){let{props:L,items:ei}=e_;el.evaluated={props:L instanceof es.Name?void 0:L,items:ei instanceof es.Name?void 0:ei,dynamicProps:L instanceof es.Name,dynamicItems:ei instanceof es.Name},el.source&&(el.source.evaluated=(0,es.stringify)(el.evaluated))}return L.validate=el,L}catch(ei){throw delete L.validate,delete L.validateName,ea&&this.logger.error("Error compiling schema, function code:",ea),ei}finally{this._compilations.delete(L)}}function inlineOrCompile(L){return(0,ed.inlineRef)(L.schema,this.opts.inlineRefs)?L.schema:L.validate?L:compileSchema.call(this,L)}function getCompilingSchema(L){for(let ei of this._compilations)if(sameSchemaEnv(ei,L))return ei}function sameSchemaEnv(L,ei){return L.schema===ei.schema&&L.root===ei.root&&L.baseId===ei.baseId}function resolve(L,ei){let ea;for(;"string"==typeof(ea=this.refs[ei]);)ei=ea;return ea||this.schemas[ei]||resolveSchema.call(this,L,ei)}function resolveSchema(L,ei){let ea=this.opts.uriResolver.parse(ei),es=(0,ed._getFullPath)(this.opts.uriResolver,ea),el=(0,ed.getFullPath)(this.opts.uriResolver,L.baseId,void 0);if(Object.keys(L.schema).length>0&&es===el)return getJsonPointer.call(this,ea,L);let ec=(0,ed.normalizeId)(es),eu=this.refs[ec]||this.schemas[ec];if("string"==typeof eu){let ei=resolveSchema.call(this,L,eu);if("object"!=typeof(null==ei?void 0:ei.schema))return;return getJsonPointer.call(this,ea,ei)}if("object"==typeof(null==eu?void 0:eu.schema)){if(eu.validate||compileSchema.call(this,eu),ec===(0,ed.normalizeId)(ei)){let{schema:ei}=eu,{schemaId:ea}=this.opts,es=ei[ea];return es&&(el=(0,ed.resolveUrl)(this.opts.uriResolver,el,es)),new SchemaEnv({schema:ei,schemaId:ea,root:L,baseId:el})}return getJsonPointer.call(this,ea,eu)}}ei.SchemaEnv=SchemaEnv,ei.compileSchema=compileSchema,ei.resolveRef=function(L,ei,ea){var es;ea=(0,ed.resolveUrl)(this.opts.uriResolver,ei,ea);let el=L.refs[ea];if(el)return el;let ec=resolve.call(this,L,ea);if(void 0===ec){let el=null==(es=L.localRefs)?void 0:es[ea],{schemaId:ed}=this.opts;el&&(ec=new SchemaEnv({schema:el,schemaId:ed,root:L,baseId:ei}))}if(void 0!==ec)return L.refs[ea]=inlineOrCompile.call(this,ec)},ei.getCompilingSchema=getCompilingSchema,ei.resolveSchema=resolveSchema;let eh=new Set(["properties","patternProperties","enum","dependencies","definitions"]);function getJsonPointer(L,{baseId:ei,schema:ea,root:es}){var el;let ec;if((null==(el=L.fragment)?void 0:el[0])!=="/")return;for(let es of L.fragment.slice(1).split("/")){if("boolean"==typeof ea)return;let L=ea[(0,eu.unescapeFragment)(es)];if(void 0===L)return;let el="object"==typeof(ea=L)&&ea[this.opts.schemaId];!eh.has(es)&&el&&(ei=(0,ed.resolveUrl)(this.opts.uriResolver,ei,el))}if("boolean"!=typeof ea&&ea.$ref&&!(0,eu.schemaHasRulesButRef)(ea,this.RULES)){let L=(0,ed.resolveUrl)(this.opts.uriResolver,ei,ea.$ref);ec=resolveSchema.call(this,es,L)}let{schemaId:ep}=this.opts;if((ec=ec||new SchemaEnv({schema:ea,schemaId:ep,root:es,baseId:ei})).schema!==ec.root.schema)return ec}},50951(L,ei,ea){"use strict";Object.defineProperty(ei,"__esModule",{value:!0});let es=ea(46133);ei.default={data:new es.Name("data"),valCxt:new es.Name("valCxt"),instancePath:new es.Name("instancePath"),parentData:new es.Name("parentData"),parentDataProperty:new es.Name("parentDataProperty"),rootData:new es.Name("rootData"),dynamicAnchors:new es.Name("dynamicAnchors"),vErrors:new es.Name("vErrors"),errors:new es.Name("errors"),this:new es.Name("this"),self:new es.Name("self"),scope:new es.Name("scope"),json:new es.Name("json"),jsonPos:new es.Name("jsonPos"),jsonLen:new es.Name("jsonLen"),jsonPart:new es.Name("jsonPart")}},53143(L,ei,ea){"use strict";Object.defineProperty(ei,"__esModule",{value:!0});let es=ea(72155);let MissingRefError=class MissingRefError extends Error{constructor(L,ei,ea,el){super(el||`can't resolve reference ${ea} from id ${ei}`),this.missingRef=(0,es.resolveUrl)(L,ei,ea),this.missingSchema=(0,es.normalizeId)((0,es.getFullPath)(L,this.missingRef))}};ei.default=MissingRefError},72155(L,ei,ea){"use strict";Object.defineProperty(ei,"__esModule",{value:!0}),ei.getSchemaRefs=ei.resolveUrl=ei.normalizeId=ei._getFullPath=ei.getFullPath=ei.inlineRef=void 0;let es=ea(16435),el=ea(78779),ec=ea(50205),ed=new Set(["type","format","pattern","maxLength","minLength","maxProperties","minProperties","maxItems","minItems","maximum","minimum","uniqueItems","multipleOf","required","enum","const"]);ei.inlineRef=function(L,ei=!0){return"boolean"==typeof L||(!0===ei?!hasRef(L):!!ei&&countKeys(L)<=ei)};let eu=new Set(["$ref","$recursiveRef","$recursiveAnchor","$dynamicRef","$dynamicAnchor"]);function hasRef(L){for(let ei in L){if(eu.has(ei))return!0;let ea=L[ei];if(Array.isArray(ea)&&ea.some(hasRef)||"object"==typeof ea&&hasRef(ea))return!0}return!1}function countKeys(L){let ei=0;for(let ea in L)if("$ref"===ea||(ei++,!ed.has(ea)&&("object"==typeof L[ea]&&(0,es.eachItem)(L[ea],L=>ei+=countKeys(L)),ei===1/0)))return 1/0;return ei}function getFullPath(L,ei="",ea){!1!==ea&&(ei=normalizeId(ei));let es=L.parse(ei);return _getFullPath(L,es)}function _getFullPath(L,ei){return L.serialize(ei).split("#")[0]+"#"}ei.getFullPath=getFullPath,ei._getFullPath=_getFullPath;let ep=/#\/?$/;function normalizeId(L){return L?L.replace(ep,""):""}ei.normalizeId=normalizeId,ei.resolveUrl=function(L,ei,ea){return ea=normalizeId(ea),L.resolve(ei,ea)};let eh=/^[a-z_][-a-z0-9._]*$/i;ei.getSchemaRefs=function(L,ei){if("boolean"==typeof L)return{};let{schemaId:ea,uriResolver:es}=this.opts,ed=normalizeId(L[ea]||ei),eu={"":ed},ep=getFullPath(es,ed,!1),ef={},em=new Set;return ec(L,{allKeys:!0},(L,ei,es,el)=>{if(void 0===el)return;let ec=ep+ei,ed=eu[el];function addRef(ei){let ea=this.opts.uriResolver.resolve;if(ei=normalizeId(ed?ea(ed,ei):ei),em.has(ei))throw ambiguos(ei);em.add(ei);let es=this.refs[ei];return"string"==typeof es&&(es=this.refs[es]),"object"==typeof es?checkAmbiguosRef(L,es.schema,ei):ei!==normalizeId(ec)&&("#"===ei[0]?(checkAmbiguosRef(L,ef[ei],ei),ef[ei]=L):this.refs[ei]=ec),ei}function addAnchor(L){if("string"==typeof L){if(!eh.test(L))throw Error(`invalid anchor "${L}"`);addRef.call(this,`#${L}`)}}"string"==typeof L[ea]&&(ed=addRef.call(this,L[ea])),addAnchor.call(this,L.$anchor),addAnchor.call(this,L.$dynamicAnchor),eu[ei]=ed}),ef;function checkAmbiguosRef(L,ei,ea){if(void 0!==ei&&!el(L,ei))throw ambiguos(ea)}function ambiguos(L){return Error(`reference "${L}" resolves to more than one schema`)}}},19324(L,ei){"use strict";Object.defineProperty(ei,"__esModule",{value:!0}),ei.getRules=ei.isJSONType=void 0;let ea=new Set(["string","number","integer","boolean","null","object","array"]);ei.isJSONType=function(L){return"string"==typeof L&&ea.has(L)},ei.getRules=function(){let L={number:{type:"number",rules:[]},string:{type:"string",rules:[]},array:{type:"array",rules:[]},object:{type:"object",rules:[]}};return{types:{...L,integer:!0,boolean:!0,null:!0},rules:[{rules:[]},L.number,L.string,L.array,L.object],post:{rules:[]},all:{},keywords:{}}}},16435(L,ei,ea){"use strict";var es;Object.defineProperty(ei,"__esModule",{value:!0}),ei.checkStrictMode=ei.getErrorPath=ei.Type=ei.useFunc=ei.setEvaluated=ei.evaluatedPropsToName=ei.mergeEvaluated=ei.eachItem=ei.unescapeJsonPointer=ei.escapeJsonPointer=ei.escapeFragment=ei.unescapeFragment=ei.schemaRefOrVal=ei.schemaHasRulesButRef=ei.schemaHasRules=ei.checkUnknownRules=ei.alwaysValidSchema=ei.toHash=void 0;let el=ea(46133),ec=ea(9872);function checkUnknownRules(L,ei=L.schema){let{opts:ea,self:es}=L;if(!ea.strictSchema||"boolean"==typeof ei)return;let el=es.RULES.keywords;for(let ea in ei)el[ea]||checkStrictMode(L,`unknown keyword: "${ea}"`)}function schemaHasRules(L,ei){if("boolean"==typeof L)return!L;for(let ea in L)if(ei[ea])return!0;return!1}function escapeJsonPointer(L){return"number"==typeof L?`${L}`:L.replace(/~/g,"~0").replace(/\//g,"~1")}function unescapeJsonPointer(L){return L.replace(/~1/g,"/").replace(/~0/g,"~")}function makeMergeEvaluated({mergeNames:L,mergeToName:ei,mergeValues:ea,resultToName:es}){return(ec,ed,eu,ep)=>{let eh=void 0===eu?ed:eu instanceof el.Name?(ed instanceof el.Name?L(ec,ed,eu):ei(ec,ed,eu),eu):ed instanceof el.Name?(ei(ec,eu,ed),ed):ea(ed,eu);return ep!==el.Name||eh instanceof el.Name?eh:es(ec,eh)}}function evaluatedPropsToName(L,ei){if(!0===ei)return L.var("props",!0);let ea=L.var("props",(0,el._)`{}`);return void 0!==ei&&setEvaluated(L,ea,ei),ea}function setEvaluated(L,ei,ea){Object.keys(ea).forEach(ea=>L.assign((0,el._)`${ei}${(0,el.getProperty)(ea)}`,!0))}ei.toHash=function(L){let ei={};for(let ea of L)ei[ea]=!0;return ei},ei.alwaysValidSchema=function(L,ei){return"boolean"==typeof ei?ei:0===Object.keys(ei).length||(checkUnknownRules(L,ei),!schemaHasRules(ei,L.self.RULES.all))},ei.checkUnknownRules=checkUnknownRules,ei.schemaHasRules=schemaHasRules,ei.schemaHasRulesButRef=function(L,ei){if("boolean"==typeof L)return!L;for(let ea in L)if("$ref"!==ea&&ei.all[ea])return!0;return!1},ei.schemaRefOrVal=function({topSchemaRef:L,schemaPath:ei},ea,es,ec){if(!ec){if("number"==typeof ea||"boolean"==typeof ea)return ea;if("string"==typeof ea)return(0,el._)`${ea}`}return(0,el._)`${L}${ei}${(0,el.getProperty)(es)}`},ei.unescapeFragment=function(L){return unescapeJsonPointer(decodeURIComponent(L))},ei.escapeFragment=function(L){return encodeURIComponent(escapeJsonPointer(L))},ei.escapeJsonPointer=escapeJsonPointer,ei.unescapeJsonPointer=unescapeJsonPointer,ei.eachItem=function(L,ei){if(Array.isArray(L))for(let ea of L)ei(ea);else ei(L)},ei.mergeEvaluated={props:makeMergeEvaluated({mergeNames:(L,ei,ea)=>L.if((0,el._)`${ea} !== true && ${ei} !== undefined`,()=>{L.if((0,el._)`${ei} === true`,()=>L.assign(ea,!0),()=>L.assign(ea,(0,el._)`${ea} || {}`).code((0,el._)`Object.assign(${ea}, ${ei})`))}),mergeToName:(L,ei,ea)=>L.if((0,el._)`${ea} !== true`,()=>{!0===ei?L.assign(ea,!0):(L.assign(ea,(0,el._)`${ea} || {}`),setEvaluated(L,ea,ei))}),mergeValues:(L,ei)=>!0===L||{...L,...ei},resultToName:evaluatedPropsToName}),items:makeMergeEvaluated({mergeNames:(L,ei,ea)=>L.if((0,el._)`${ea} !== true && ${ei} !== undefined`,()=>L.assign(ea,(0,el._)`${ei} === true ? true : ${ea} > ${ei} ? ${ea} : ${ei}`)),mergeToName:(L,ei,ea)=>L.if((0,el._)`${ea} !== true`,()=>L.assign(ea,!0===ei||(0,el._)`${ea} > ${ei} ? ${ea} : ${ei}`)),mergeValues:(L,ei)=>!0===L||Math.max(L,ei),resultToName:(L,ei)=>L.var("items",ei)})},ei.evaluatedPropsToName=evaluatedPropsToName,ei.setEvaluated=setEvaluated;let ed={};function checkStrictMode(L,ei,ea=L.opts.strictSchema){if(ea){if(ei=`strict mode: ${ei}`,!0===ea)throw Error(ei);L.self.logger.warn(ei)}}ei.useFunc=function(L,ei){return L.scopeValue("func",{ref:ei,code:ed[ei.code]||(ed[ei.code]=new ec._Code(ei.code))})},function(L){L[L.Num=0]="Num",L[L.Str=1]="Str"}(es||(ei.Type=es={})),ei.getErrorPath=function(L,ei,ea){if(L instanceof el.Name){let ec=ei===es.Num;return ea?ec?(0,el._)`"[" + ${L} + "]"`:(0,el._)`"['" + ${L} + "']"`:ec?(0,el._)`"/" + ${L}`:(0,el._)`"/" + ${L}.replace(/~/g, "~0").replace(/\\//g, "~1")`}return ea?(0,el.getProperty)(L).toString():"/"+escapeJsonPointer(L)},ei.checkStrictMode=checkStrictMode},75215(L,ei){"use strict";function shouldUseGroup(L,ei){return ei.rules.some(ei=>shouldUseRule(L,ei))}function shouldUseRule(L,ei){var ea;return void 0!==L[ei.keyword]||(null==(ea=ei.definition.implements)?void 0:ea.some(ei=>void 0!==L[ei]))}Object.defineProperty(ei,"__esModule",{value:!0}),ei.shouldUseRule=ei.shouldUseGroup=ei.schemaHasRulesForType=void 0,ei.schemaHasRulesForType=function({schema:L,self:ei},ea){let es=ei.RULES.types[ea];return es&&!0!==es&&shouldUseGroup(L,es)},ei.shouldUseGroup=shouldUseGroup,ei.shouldUseRule=shouldUseRule},8503(L,ei,ea){"use strict";Object.defineProperty(ei,"__esModule",{value:!0}),ei.boolOrEmptySchema=ei.topBoolOrEmptySchema=void 0;let es=ea(29700),el=ea(46133),ec=ea(50951),ed={message:"boolean schema is false"};function falseSchemaError(L,ei){let{gen:ea,data:el}=L,ec={gen:ea,keyword:"false schema",data:el,schema:!1,schemaCode:!1,schemaValue:!1,params:{},it:L};(0,es.reportError)(ec,ed,void 0,ei)}ei.topBoolOrEmptySchema=function(L){let{gen:ei,schema:ea,validateName:es}=L;!1===ea?falseSchemaError(L,!1):"object"==typeof ea&&!0===ea.$async?ei.return(ec.default.data):(ei.assign((0,el._)`${es}.errors`,null),ei.return(!0))},ei.boolOrEmptySchema=function(L,ei){let{gen:ea,schema:es}=L;!1===es?(ea.var(ei,!1),falseSchemaError(L)):ea.var(ei,!0)}},28768(L,ei,ea){"use strict";var es;Object.defineProperty(ei,"__esModule",{value:!0}),ei.reportTypeError=ei.checkDataTypes=ei.checkDataType=ei.coerceAndCheckDataType=ei.getJSONTypes=ei.getSchemaTypes=ei.DataType=void 0;let el=ea(19324),ec=ea(75215),ed=ea(29700),eu=ea(46133),ep=ea(16435);function getJSONTypes(L){let ei=Array.isArray(L)?L:L?[L]:[];if(ei.every(el.isJSONType))return ei;throw Error("type must be JSONType or JSONType[]: "+ei.join(","))}!function(L){L[L.Correct=0]="Correct",L[L.Wrong=1]="Wrong"}(es||(ei.DataType=es={})),ei.getSchemaTypes=function(L){let ei=getJSONTypes(L.type);if(ei.includes("null")){if(!1===L.nullable)throw Error("type: null contradicts nullable: false")}else{if(!ei.length&&void 0!==L.nullable)throw Error('"nullable" cannot be used without "type"');!0===L.nullable&&ei.push("null")}return ei},ei.getJSONTypes=getJSONTypes,ei.coerceAndCheckDataType=function(L,ei){let{gen:ea,data:el,opts:ed}=L,eu=coerceToTypes(ei,ed.coerceTypes),ep=ei.length>0&&!(0===eu.length&&1===ei.length&&(0,ec.schemaHasRulesForType)(L,ei[0]));if(ep){let ec=checkDataTypes(ei,el,ed.strictNumbers,es.Wrong);ea.if(ec,()=>{eu.length?coerceData(L,ei,eu):reportTypeError(L)})}return ep};let eh=new Set(["string","number","integer","boolean","null"]);function coerceToTypes(L,ei){return ei?L.filter(L=>eh.has(L)||"array"===ei&&"array"===L):[]}function coerceData(L,ei,ea){let{gen:es,data:el,opts:ec}=L,ed=es.let("dataType",(0,eu._)`typeof ${el}`),ep=es.let("coerced",(0,eu._)`undefined`);for(let L of("array"===ec.coerceTypes&&es.if((0,eu._)`${ed} == 'object' && Array.isArray(${el}) && ${el}.length == 1`,()=>es.assign(el,(0,eu._)`${el}[0]`).assign(ed,(0,eu._)`typeof ${el}`).if(checkDataTypes(ei,el,ec.strictNumbers),()=>es.assign(ep,el))),es.if((0,eu._)`${ep} !== undefined`),ea))(eh.has(L)||"array"===L&&"array"===ec.coerceTypes)&&coerceSpecificType(L);function coerceSpecificType(L){switch(L){case"string":es.elseIf((0,eu._)`${ed} == "number" || ${ed} == "boolean"`).assign(ep,(0,eu._)`"" + ${el}`).elseIf((0,eu._)`${el} === null`).assign(ep,(0,eu._)`""`);return;case"number":es.elseIf((0,eu._)`${ed} == "boolean" || ${el} === null
|
|
111
|
+
!function(L,ei){if("object"==typeof exports&&"object"==typeof module)module.exports=ei(function(){try{return require("fsevents")}catch(L){}}(),function(){try{return require("@lydell/node-pty")}catch(L){}}());else if("function"==typeof define&&define.amd)define(["fsevents","@lydell/node-pty"],ei);else{var ea="object"==typeof exports?ei(function(){try{return require("fsevents")}catch(L){}}(),function(){try{return require("@lydell/node-pty")}catch(L){}}()):ei(L.fsevents,L["@lydell/node-pty"]);for(var es in ea)("object"==typeof exports?exports:L)[es]=ea[es]}}(global,(__rspack_external__32834,__rspack_external__58903)=>(()=>{var __webpack_modules__={20602(L,ei,ea){ea(65929);let{ContainerFactory:es}=ea(38850);ea(65816).install();let el=es.create();function load(L){return Promise.resolve(L.default).then(L=>el.load(L))}el.load(ea(35499).default),el.load(ea(56242).default),L.exports.container=Promise.resolve().then(function(){return Promise.resolve(ea(59055)).then(load)}).then(function(){return Promise.resolve(ea(59357)).then(load)}).then(function(){return Promise.resolve(ea(60414)).then(load)}).then(function(){return Promise.resolve(ea(8630)).then(load)}).then(function(){return Promise.resolve(ea(20778)).then(load)}).then(function(){return Promise.resolve(ea(80280)).then(load)}).then(function(){return Promise.resolve(ea(1451)).then(load)}).then(function(){return Promise.resolve(ea(38633)).then(load)}).then(function(){return Promise.resolve(ea(4322)).then(load)}).then(function(){return Promise.resolve(ea(91918)).then(load)}).then(function(){return Promise.resolve(ea(23665)).then(load)}).then(function(){return Promise.resolve(ea(83232)).then(load)}).then(function(){return Promise.resolve(ea(16578)).then(load)}).then(function(){return Promise.resolve(ea(51581)).then(load)}).then(function(){return Promise.resolve(ea(95503)).then(load)}).then(function(){return Promise.resolve(ea(90512)).then(load)}).then(function(){return Promise.resolve(ea(62228)).then(load)}).then(function(){return Promise.resolve(ea(37263)).then(load)}).then(function(){return Promise.resolve(ea(77573)).then(load)}).then(function(){return Promise.resolve(ea(25334)).then(load)}).then(function(){return Promise.resolve(ea(54950)).then(load)}).then(function(){return Promise.resolve(ea(80985)).then(load)}).then(function(){return Promise.resolve(ea(67759)).then(load)}).then(function(){return Promise.resolve(ea(58832)).then(load)}).then(function(){return Promise.resolve(ea(37971)).then(load)}).then(function(){return Promise.resolve(ea(28538)).then(load)}).then(function(){return Promise.resolve(ea(74437)).then(load)}).then(function(){return Promise.resolve(ea(63079)).then(load)}).then(function(){return Promise.resolve(ea(65304)).then(load)}).then(function(){return Promise.resolve(ea(81556)).then(load)}).then(function(){return Promise.resolve(ea(70645)).then(load)}).then(function(){return Promise.resolve(ea(12440)).then(load)}).then(function(){return Promise.resolve(ea(64331)).then(load)}).then(function(){return Promise.resolve(ea(71302)).then(load)}).then(function(){return Promise.resolve(ea(66191)).then(load)}).then(()=>el).catch(L=>{console.error("Failed to start the backend application."),L&&console.error(L)})},83902(L,ei){ei.config=L.exports.config={cell:{name:"Cell Framework",hostDomId:"cell-root",annotation:{Component:{proxy:!1}},aop:{enabled:!0},logger:{level:"info"},tenant:{enabled:!1},client:{config:{withCredentials:!0,headers:{"X-Requested-With":"XMLHttpRequest"}}},session:{autoCommit:!0,maxAge:864e5,sessionIdKey:"cell:sessionId",sessionKey:"cell:session"},cookies:{keys:["abcdef"]},server:{path:"/",port:0,endpoint:"http://localhost:0"},trace:{requestField:"X-Cell-Trace-ID",responseField:"X-Cell-Trace-ID"},health:{url:"/health",method:"GET"},web:{route:{cacheSize:500},validationPipeOptions:{detailedOutputDisabled:!1,transformEnabled:!0},body:{limit:"50mb"}},mvc:{path:"/*",defaultViewName:"composite",baseFileDir:"assets"},mustache:{cache:!1,baseViewDir:"assets/views"},includeModules:!0,webpack:{config:{externals:{vm2:"vm2","better-sqlite3":"better-sqlite3",vscode:"vscode"},resolve:{extensionAlias:{".js":[".js",".ts"]},alias:{e2b:!1,"@connectrpc/connect":!1,"@connectrpc/connect-node":!1,"@connectrpc/connect-web":!1,"@bufbuild/protobuf":!1,"lodash-es":!1,archiver:!1,"archiver-utils":!1,"compress-commons":!1,"crc32-stream":!1,"zip-stream":!1,"cos-nodejs-sdk-v5":!1,esprima:!1,execa:!1,"@opentelemetry/exporter-trace-otlp-proto":"@opentelemetry/exporter-trace-otlp-http","@opentelemetry/otlp-proto-exporter-base":!1,protobufjs:!1,lodash:!1,"lodash.mergewith":!1,"common-tags":!1,"har-validator":!1,"es-abstract":!1,ink:!1,"ink-spinner":!1,react:!1,"react-reconciler":!1,"use-context-selector":!1,"yoga-wasm-web":!1,"ansi-escapes":!1,"gradient-string":!1,"cli-highlight":!1,asciichart:!1,"string-width":!1,"react-devtools-core":!1}},output:{path:"/workspace/packages/agent-cli/.dist-headless",filename:"codebuddy-headless.js"}},definePlugin:{"process.env.DEV":!1,"process.env.HEADLESS":'"true"'}}},targets:["backend"],propsHooks:[],infoHooks:[],mode:["build","local","remote","externals","headless","cell"],stage:"prod",devComponents:{"@celljs/cli-service":"3.7.8"},webpack:{config:{externals:{vm2:"vm2","better-sqlite3":"better-sqlite3",vscode:"vscode"},resolve:{extensionAlias:{".js":[".js",".ts"]},alias:{e2b:!1,"@connectrpc/connect":!1,"@connectrpc/connect-node":!1,"@connectrpc/connect-web":!1,"@bufbuild/protobuf":!1,"lodash-es":!1,archiver:!1,"archiver-utils":!1,"compress-commons":!1,"crc32-stream":!1,"zip-stream":!1,"cos-nodejs-sdk-v5":!1,esprima:!1,execa:!1,"@opentelemetry/exporter-trace-otlp-proto":"@opentelemetry/exporter-trace-otlp-http","@opentelemetry/otlp-proto-exporter-base":!1,protobufjs:!1,lodash:!1,"lodash.mergewith":!1,"common-tags":!1,"har-validator":!1,"es-abstract":!1,ink:!1,"ink-spinner":!1,react:!1,"react-reconciler":!1,"use-context-selector":!1,"yoga-wasm-web":!1,"ansi-escapes":!1,"gradient-string":!1,"cli-highlight":!1,asciichart:!1,"string-width":!1,"react-devtools-core":!1}},output:{path:"/workspace/packages/agent-cli/.dist-headless",filename:"codebuddy-headless.js"}},definePlugin:{"process.env.DEV":!1,"process.env.HEADLESS":'"true"'}},env:{},currentTarget:"backend",uuid:"766de262-f9e7-4c1d-b1bb-d3d7fc188c91",tmpDir:"/tmp",tmpSockFile:"/tmp/tmp-sock-766de262-f9e7-4c1d-b1bb-d3d7fc188c91.sock",includeModules:!0}},21275(L,ei,ea){var es={};L.exports=es,es.themes={};var el=ea(39023),ec=es.styles=ea(90509),ed=Object.defineProperties,eu=new RegExp(/[\r\n]+/g);es.supportsColor=ea(8678).supportsColor,void 0===es.enabled&&(es.enabled=!1!==es.supportsColor()),es.enable=function(){es.enabled=!0},es.disable=function(){es.enabled=!1},es.stripColors=es.strip=function(L){return(""+L).replace(/\x1B\[\d+m/g,"")},es.stylize=function(L,ei){if(!es.enabled)return L+"";var ea=ec[ei];return!ea&&ei in es?es[ei](L):ea.open+L+ea.close};var ep=/[|\\{}()[\]^$+*?.]/g,escapeStringRegexp=function(L){if("string"!=typeof L)throw TypeError("Expected a string");return L.replace(ep,"\\$&")};function build(L){var builder=function builder(){return applyStyle.apply(builder,arguments)};return builder._styles=L,builder.__proto__=ef,builder}var eh=function(){var L={};return ec.grey=ec.gray,Object.keys(ec).forEach(function(ei){ec[ei].closeRe=RegExp(escapeStringRegexp(ec[ei].close),"g"),L[ei]={get:function(){return build(this._styles.concat(ei))}}}),L}(),ef=ed(function(){},eh);function applyStyle(){var L=Array.prototype.slice.call(arguments),ei=L.map(function(L){return null!=L&&L.constructor===String?L:el.inspect(L)}).join(" ");if(!es.enabled||!ei)return ei;for(var ea=-1!=ei.indexOf("\n"),ed=this._styles,ep=ed.length;ep--;){var eh=ec[ed[ep]];ei=eh.open+ei.replace(eh.closeRe,eh.open)+eh.close,ea&&(ei=ei.replace(eu,function(L){return eh.close+L+eh.open}))}return ei}function init(){var L={};return Object.keys(eh).forEach(function(ei){L[ei]={get:function(){return build([ei])}}}),L}es.setTheme=function(L){if("string"==typeof L)return void console.log("colors.setTheme now only accepts an object, not a string. If you are trying to set a theme from a file, it is now your (the caller's) responsibility to require the file. The old syntax looked like colors.setTheme(__dirname + '/../themes/generic-logging.js'); The new syntax looks like colors.setTheme(require(__dirname + '/../themes/generic-logging.js'));");for(var ei in L)!function(ei){es[ei]=function(ea){if("object"==typeof L[ei]){var el=ea;for(var ec in L[ei])el=es[L[ei][ec]](el);return el}return es[L[ei]](ea)}}(ei)};var sequencer=function(L,ei){var ea=ei.split("");return(ea=ea.map(L)).join("")};for(var em in es.trap=ea(40332),es.zalgo=ea(24662),es.maps={},es.maps.america=ea(55947)(es),es.maps.zebra=ea(87671)(es),es.maps.rainbow=ea(22493)(es),es.maps.random=ea(86428)(es),es.maps)!function(L){es[L]=function(ei){return sequencer(es.maps[L],ei)}}(em);ed(es,init())},40332(L){L.exports=function(L,ei){var ea="";L=(L=L||"Run the trap, drop the bass").split("");var es={a:["@","\u0104","\u023A","\u0245","\u0394","\u039B","\u0414"],b:["\xdf","\u0181","\u0243","\u026E","\u03B2","\u0E3F"],c:["\xa9","\u023B","\u03FE"],d:["\xd0","\u018A","\u0500","\u0501","\u0502","\u0503"],e:["\xcb","\u0115","\u018E","\u0258","\u03A3","\u03BE","\u04BC","\u0A6C"],f:["\u04FA"],g:["\u0262"],h:["\u0126","\u0195","\u04A2","\u04BA","\u04C7","\u050A"],i:["\u0F0F"],j:["\u0134"],k:["\u0138","\u04A0","\u04C3","\u051E"],l:["\u0139"],m:["\u028D","\u04CD","\u04CE","\u0520","\u0521","\u0D69"],n:["\xd1","\u014B","\u019D","\u0376","\u03A0","\u048A"],o:["\xd8","\xf5","\xf8","\u01FE","\u0298","\u047A","\u05DD","\u06DD","\u0E4F"],p:["\u01F7","\u048E"],q:["\u09CD"],r:["\xae","\u01A6","\u0210","\u024C","\u0280","\u042F"],s:["\xa7","\u03DE","\u03DF","\u03E8"],t:["\u0141","\u0166","\u0373"],u:["\u01B1","\u054D"],v:["\u05D8"],w:["\u0428","\u0460","\u047C","\u0D70"],x:["\u04B2","\u04FE","\u04FC","\u04FD"],y:["\xa5","\u04B0","\u04CB"],z:["\u01B5","\u0240"]};return L.forEach(function(L){var ei=Math.floor(Math.random()*(es[L=L.toLowerCase()]||[" "]).length);void 0!==es[L]?ea+=es[L][ei]:ea+=L}),ea}},24662(L){L.exports=function(L,ei){L=L||" he is here ";var ea={up:["\u030D","\u030E","\u0304","\u0305","\u033F","\u0311","\u0306","\u0310","\u0352","\u0357","\u0351","\u0307","\u0308","\u030A","\u0342","\u0313","\u0308","\u034A","\u034B","\u034C","\u0303","\u0302","\u030C","\u0350","\u0300","\u0301","\u030B","\u030F","\u0312","\u0313","\u0314","\u033D","\u0309","\u0363","\u0364","\u0365","\u0366","\u0367","\u0368","\u0369","\u036A","\u036B","\u036C","\u036D","\u036E","\u036F","\u033E","\u035B","\u0346","\u031A"],down:["\u0316","\u0317","\u0318","\u0319","\u031C","\u031D","\u031E","\u031F","\u0320","\u0324","\u0325","\u0326","\u0329","\u032A","\u032B","\u032C","\u032D","\u032E","\u032F","\u0330","\u0331","\u0332","\u0333","\u0339","\u033A","\u033B","\u033C","\u0345","\u0347","\u0348","\u0349","\u034D","\u034E","\u0353","\u0354","\u0355","\u0356","\u0359","\u035A","\u0323"],mid:["\u0315","\u031B","\u0300","\u0301","\u0358","\u0321","\u0322","\u0327","\u0328","\u0334","\u0335","\u0336","\u035C","\u035D","\u035E","\u035F","\u0360","\u0362","\u0338","\u0337","\u0361"," \u0489"]},es=[].concat(ea.up,ea.down,ea.mid);function randomNumber(L){return Math.floor(Math.random()*L)}function isChar(L){var ei=!1;return es.filter(function(ea){ei=ea===L}),ei}return function(L,ei){var es,el,ec="";for(el in(ei=ei||{}).up=void 0===ei.up||ei.up,ei.mid=void 0===ei.mid||ei.mid,ei.down=void 0===ei.down||ei.down,ei.size=void 0!==ei.size?ei.size:"maxi",L=L.split(""))if(!isChar(el)){switch(ec+=L[el],es={up:0,down:0,mid:0},ei.size){case"mini":es.up=randomNumber(8),es.mid=randomNumber(2),es.down=randomNumber(8);break;case"maxi":es.up=randomNumber(16)+3,es.mid=randomNumber(4)+1,es.down=randomNumber(64)+3;break;default:es.up=randomNumber(8)+1,es.mid=randomNumber(6)/2,es.down=randomNumber(8)+1}var ed=["up","mid","down"];for(var eu in ed)for(var ep=ed[eu],eh=0;eh<=es[ep];eh++)ei[ep]&&(ec+=ea[ep][randomNumber(ea[ep].length)])}return ec}(L,ei)}},55947(L){L.exports=function(L){return function(ei,ea,es){if(" "===ei)return ei;switch(ea%3){case 0:return L.red(ei);case 1:return L.white(ei);case 2:return L.blue(ei)}}}},22493(L){L.exports=function(L){var ei=["red","yellow","green","blue","magenta"];return function(ea,es,el){return" "===ea?ea:L[ei[es++%ei.length]](ea)}}},86428(L){L.exports=function(L){var ei=["underline","inverse","grey","yellow","red","green","blue","white","cyan","magenta","brightYellow","brightRed","brightGreen","brightBlue","brightWhite","brightCyan","brightMagenta"];return function(ea,es,el){return" "===ea?ea:L[ei[Math.round(Math.random()*(ei.length-2))]](ea)}}},87671(L){L.exports=function(L){return function(ei,ea,es){return ea%2==0?ei:L.inverse(ei)}}},90509(L){var ei={};L.exports=ei;var ea={reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],inverse:[7,27],hidden:[8,28],strikethrough:[9,29],black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],gray:[90,39],grey:[90,39],brightRed:[91,39],brightGreen:[92,39],brightYellow:[93,39],brightBlue:[94,39],brightMagenta:[95,39],brightCyan:[96,39],brightWhite:[97,39],bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgGray:[100,49],bgGrey:[100,49],bgBrightRed:[101,49],bgBrightGreen:[102,49],bgBrightYellow:[103,49],bgBrightBlue:[104,49],bgBrightMagenta:[105,49],bgBrightCyan:[106,49],bgBrightWhite:[107,49],blackBG:[40,49],redBG:[41,49],greenBG:[42,49],yellowBG:[43,49],blueBG:[44,49],magentaBG:[45,49],cyanBG:[46,49],whiteBG:[47,49]};Object.keys(ea).forEach(function(L){var es=ea[L],el=ei[L]=[];el.open="\x1b["+es[0]+"m",el.close="\x1b["+es[1]+"m"})},90324(L){"use strict";L.exports=function(L,ei){var ea=(ei=ei||process.argv||[]).indexOf("--"),es=/^-{1,2}/.test(L)?"":"--",el=ei.indexOf(es+L);return -1!==el&&(-1===ea||el<ea)}},8678(L,ei,ea){"use strict";var es=ea(70857),el=ea(90324),ec=process.env,ed=void 0;function translateLevel(L){return 0!==L&&{level:L,hasBasic:!0,has256:L>=2,has16m:L>=3}}function supportsColor(L){if(!1===ed)return 0;if(el("color=16m")||el("color=full")||el("color=truecolor"))return 3;if(el("color=256"))return 2;if(L&&!L.isTTY&&!0!==ed)return 0;var ei=+!!ed;if("win32"===process.platform){var ea=es.release().split(".");return Number(process.versions.node.split(".")[0])>=8&&Number(ea[0])>=10&&Number(ea[2])>=10586?Number(ea[2])>=14931?3:2:1}if("CI"in ec)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI"].some(function(L){return L in ec})||"codeship"===ec.CI_NAME?1:ei;if("TEAMCITY_VERSION"in ec)return+!!/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(ec.TEAMCITY_VERSION);if("TERM_PROGRAM"in ec){var eu=parseInt((ec.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(ec.TERM_PROGRAM){case"iTerm.app":return eu>=3?3:2;case"Hyper":return 3;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(ec.TERM)?2:/^screen|^xterm|^vt100|^rxvt|color|ansi|cygwin|linux/i.test(ec.TERM)||"COLORTERM"in ec?1:(ec.TERM,ei)}function getSupportLevel(L){return translateLevel(supportsColor(L))}el("no-color")||el("no-colors")||el("color=false")?ed=!1:(el("color")||el("colors")||el("color=true")||el("color=always"))&&(ed=!0),"FORCE_COLOR"in ec&&(ed=0===ec.FORCE_COLOR.length||0!==parseInt(ec.FORCE_COLOR,10)),L.exports={supportsColor:getSupportLevel,stdout:getSupportLevel(process.stdout),stderr:getSupportLevel(process.stderr)}},5406(L,ei,ea){L.exports=ea(21275)},97215(L){var ei=[],ea=[],logger=function(){};function use(L){return!~ei.indexOf(L)&&(ei.push(L),!0)}function set(L){logger=L}function enabled(L){for(var ea=[],es=0;es<ei.length;es++){if(ei[es].async){ea.push(ei[es]);continue}if(ei[es](L))return!0}return!!ea.length&&new Promise(function(ei){Promise.all(ea.map(function(ei){return ei(L)})).then(function(L){ei(L.some(Boolean))})})}function modify(L){return!~ea.indexOf(L)&&(ea.push(L),!0)}function write(){logger.apply(logger,arguments)}function process(L){for(var ei=0;ei<ea.length;ei++)L=ea[ei].apply(ea[ei],arguments);return L}function introduce(L,ei){var ea=Object.prototype.hasOwnProperty;for(var es in ei)ea.call(ei,es)&&(L[es]=ei[es]);return L}function nope(L){return L.enabled=!1,L.modify=modify,L.set=set,L.use=use,introduce(function(){return!1},L)}function yep(L){function diagnostics(){var ei=Array.prototype.slice.call(arguments,0);return write.call(write,L,process(ei,L)),!0}return L.enabled=!0,L.modify=modify,L.set=set,L.use=use,introduce(diagnostics,L)}L.exports=function(L){return L.introduce=introduce,L.enabled=enabled,L.process=process,L.modify=modify,L.write=write,L.nope=nope,L.yep=yep,L.set=set,L.use=use,L}},50048(L,ei,ea){L.exports=ea(7149)},7149(L,ei,ea){L.exports=ea(97215)(function prod(L,ei){return((ei=ei||{}).namespace=L,ei.prod=!0,ei.dev=!1,ei.force||prod.force)?prod.yep(ei):prod.nope(ei)})},61435(L,ei,ea){"use strict";Object.defineProperty(ei,"__esModule",{value:!0}),ei.createFileSystemAdapter=ei.FILE_SYSTEM_ADAPTER=void 0;let es=ea(79896);function createFileSystemAdapter(L){return void 0===L?ei.FILE_SYSTEM_ADAPTER:Object.assign(Object.assign({},ei.FILE_SYSTEM_ADAPTER),L)}ei.FILE_SYSTEM_ADAPTER={lstat:es.lstat,stat:es.stat,lstatSync:es.lstatSync,statSync:es.statSync,readdir:es.readdir,readdirSync:es.readdirSync},ei.createFileSystemAdapter=createFileSystemAdapter},92976(L,ei){"use strict";Object.defineProperty(ei,"__esModule",{value:!0}),ei.IS_SUPPORT_READDIR_WITH_FILE_TYPES=void 0;let ea=process.versions.node.split(".");if(void 0===ea[0]||void 0===ea[1])throw Error(`Unexpected behavior. The 'process.versions.node' variable has invalid value: ${process.versions.node}`);let es=Number.parseInt(ea[0],10),el=Number.parseInt(ea[1],10),ec=10,ed=es>10,eu=10===es&&el>=ec;ei.IS_SUPPORT_READDIR_WITH_FILE_TYPES=ed||eu},87497(L,ei,ea){"use strict";Object.defineProperty(ei,"__esModule",{value:!0}),ei.Settings=ei.scandirSync=ei.scandir=void 0;let es=ea(52928),el=ea(9921),ec=ea(22564);function getSettings(L={}){return L instanceof ec.default?L:new ec.default(L)}ei.Settings=ec.default,ei.scandir=function(L,ei,ea){"function"==typeof ei?es.read(L,getSettings(),ei):es.read(L,getSettings(ei),ea)},ei.scandirSync=function(L,ei){let ea=getSettings(ei);return el.read(L,ea)}},52928(L,ei,ea){"use strict";Object.defineProperty(ei,"__esModule",{value:!0}),ei.readdir=ei.readdirWithFileTypes=ei.read=void 0;let es=ea(71452),el=ea(70339),ec=ea(92976),ed=ea(61531),eu=ea(51919);function readdirWithFileTypes(L,ei,ea){ei.fs.readdir(L,{withFileTypes:!0},(es,ec)=>{if(null!==es)return void callFailureCallback(ea,es);let ed=ec.map(ea=>({dirent:ea,name:ea.name,path:eu.joinPathSegments(L,ea.name,ei.pathSegmentSeparator)}));ei.followSymbolicLinks?el(ed.map(L=>makeRplTaskEntry(L,ei)),(L,ei)=>{null!==L?callFailureCallback(ea,L):callSuccessCallback(ea,ei)}):callSuccessCallback(ea,ed)})}function makeRplTaskEntry(L,ei){return ea=>{L.dirent.isSymbolicLink()?ei.fs.stat(L.path,(es,el)=>{null!==es?ei.throwErrorOnBrokenSymbolicLink?ea(es):ea(null,L):(L.dirent=ed.fs.createDirentFromStats(L.name,el),ea(null,L))}):ea(null,L)}}function readdir(L,ei,ea){ei.fs.readdir(L,(ec,ep)=>{null!==ec?callFailureCallback(ea,ec):el(ep.map(ea=>{let el=eu.joinPathSegments(L,ea,ei.pathSegmentSeparator);return L=>{es.stat(el,ei.fsStatSettings,(es,ec)=>{if(null!==es)return void L(es);let eu={name:ea,path:el,dirent:ed.fs.createDirentFromStats(ea,ec)};ei.stats&&(eu.stats=ec),L(null,eu)})}}),(L,ei)=>{null!==L?callFailureCallback(ea,L):callSuccessCallback(ea,ei)})})}function callFailureCallback(L,ei){L(ei)}function callSuccessCallback(L,ei){L(null,ei)}ei.read=function(L,ei,ea){!ei.stats&&ec.IS_SUPPORT_READDIR_WITH_FILE_TYPES?readdirWithFileTypes(L,ei,ea):readdir(L,ei,ea)},ei.readdirWithFileTypes=readdirWithFileTypes,ei.readdir=readdir},51919(L,ei){"use strict";Object.defineProperty(ei,"__esModule",{value:!0}),ei.joinPathSegments=void 0,ei.joinPathSegments=function(L,ei,ea){return L.endsWith(ea)?L+ei:L+ea+ei}},9921(L,ei,ea){"use strict";Object.defineProperty(ei,"__esModule",{value:!0}),ei.readdir=ei.readdirWithFileTypes=ei.read=void 0;let es=ea(71452),el=ea(92976),ec=ea(61531),ed=ea(51919);function readdirWithFileTypes(L,ei){return ei.fs.readdirSync(L,{withFileTypes:!0}).map(ea=>{let es={dirent:ea,name:ea.name,path:ed.joinPathSegments(L,ea.name,ei.pathSegmentSeparator)};if(es.dirent.isSymbolicLink()&&ei.followSymbolicLinks)try{let L=ei.fs.statSync(es.path);es.dirent=ec.fs.createDirentFromStats(es.name,L)}catch(L){if(ei.throwErrorOnBrokenSymbolicLink)throw L}return es})}function readdir(L,ei){return ei.fs.readdirSync(L).map(ea=>{let el=ed.joinPathSegments(L,ea,ei.pathSegmentSeparator),eu=es.statSync(el,ei.fsStatSettings),ep={name:ea,path:el,dirent:ec.fs.createDirentFromStats(ea,eu)};return ei.stats&&(ep.stats=eu),ep})}ei.read=function(L,ei){return!ei.stats&&el.IS_SUPPORT_READDIR_WITH_FILE_TYPES?readdirWithFileTypes(L,ei):readdir(L,ei)},ei.readdirWithFileTypes=readdirWithFileTypes,ei.readdir=readdir},22564(L,ei,ea){"use strict";Object.defineProperty(ei,"__esModule",{value:!0});let es=ea(16928),el=ea(71452),ec=ea(61435);let Settings=class Settings{constructor(L={}){this._options=L,this.followSymbolicLinks=this._getValue(this._options.followSymbolicLinks,!1),this.fs=ec.createFileSystemAdapter(this._options.fs),this.pathSegmentSeparator=this._getValue(this._options.pathSegmentSeparator,es.sep),this.stats=this._getValue(this._options.stats,!1),this.throwErrorOnBrokenSymbolicLink=this._getValue(this._options.throwErrorOnBrokenSymbolicLink,!0),this.fsStatSettings=new el.Settings({followSymbolicLink:this.followSymbolicLinks,fs:this.fs,throwErrorOnBrokenSymbolicLink:this.throwErrorOnBrokenSymbolicLink})}_getValue(L,ei){return null!=L?L:ei}};ei.default=Settings},68024(L,ei){"use strict";Object.defineProperty(ei,"__esModule",{value:!0}),ei.createDirentFromStats=void 0;let DirentFromStats=class DirentFromStats{constructor(L,ei){this.name=L,this.isBlockDevice=ei.isBlockDevice.bind(ei),this.isCharacterDevice=ei.isCharacterDevice.bind(ei),this.isDirectory=ei.isDirectory.bind(ei),this.isFIFO=ei.isFIFO.bind(ei),this.isFile=ei.isFile.bind(ei),this.isSocket=ei.isSocket.bind(ei),this.isSymbolicLink=ei.isSymbolicLink.bind(ei)}};ei.createDirentFromStats=function(L,ei){return new DirentFromStats(L,ei)}},61531(L,ei,ea){"use strict";Object.defineProperty(ei,"__esModule",{value:!0}),ei.fs=void 0,ei.fs=ea(68024)},79062(L,ei,ea){"use strict";Object.defineProperty(ei,"__esModule",{value:!0}),ei.createFileSystemAdapter=ei.FILE_SYSTEM_ADAPTER=void 0;let es=ea(79896);function createFileSystemAdapter(L){return void 0===L?ei.FILE_SYSTEM_ADAPTER:Object.assign(Object.assign({},ei.FILE_SYSTEM_ADAPTER),L)}ei.FILE_SYSTEM_ADAPTER={lstat:es.lstat,stat:es.stat,lstatSync:es.lstatSync,statSync:es.statSync},ei.createFileSystemAdapter=createFileSystemAdapter},71452(L,ei,ea){"use strict";Object.defineProperty(ei,"__esModule",{value:!0}),ei.statSync=ei.stat=ei.Settings=void 0;let es=ea(51081),el=ea(3858),ec=ea(24691);function getSettings(L={}){return L instanceof ec.default?L:new ec.default(L)}ei.Settings=ec.default,ei.stat=function(L,ei,ea){"function"==typeof ei?es.read(L,getSettings(),ei):es.read(L,getSettings(ei),ea)},ei.statSync=function(L,ei){let ea=getSettings(ei);return el.read(L,ea)}},51081(L,ei){"use strict";function callFailureCallback(L,ei){L(ei)}function callSuccessCallback(L,ei){L(null,ei)}Object.defineProperty(ei,"__esModule",{value:!0}),ei.read=void 0,ei.read=function(L,ei,ea){ei.fs.lstat(L,(es,el)=>{null!==es?callFailureCallback(ea,es):el.isSymbolicLink()&&ei.followSymbolicLink?ei.fs.stat(L,(L,es)=>{null!==L?ei.throwErrorOnBrokenSymbolicLink?callFailureCallback(ea,L):callSuccessCallback(ea,el):(ei.markSymbolicLink&&(es.isSymbolicLink=()=>!0),callSuccessCallback(ea,es))}):callSuccessCallback(ea,el)})}},3858(L,ei){"use strict";Object.defineProperty(ei,"__esModule",{value:!0}),ei.read=void 0,ei.read=function(L,ei){let ea=ei.fs.lstatSync(L);if(!ea.isSymbolicLink()||!ei.followSymbolicLink)return ea;try{let ea=ei.fs.statSync(L);return ei.markSymbolicLink&&(ea.isSymbolicLink=()=>!0),ea}catch(L){if(!ei.throwErrorOnBrokenSymbolicLink)return ea;throw L}}},24691(L,ei,ea){"use strict";Object.defineProperty(ei,"__esModule",{value:!0});let es=ea(79062);let Settings=class Settings{constructor(L={}){this._options=L,this.followSymbolicLink=this._getValue(this._options.followSymbolicLink,!0),this.fs=es.createFileSystemAdapter(this._options.fs),this.markSymbolicLink=this._getValue(this._options.markSymbolicLink,!1),this.throwErrorOnBrokenSymbolicLink=this._getValue(this._options.throwErrorOnBrokenSymbolicLink,!0)}_getValue(L,ei){return null!=L?L:ei}};ei.default=Settings},54176(L,ei,ea){"use strict";Object.defineProperty(ei,"__esModule",{value:!0}),ei.Settings=ei.walkStream=ei.walkSync=ei.walk=void 0;let es=ea(66757),el=ea(59905),ec=ea(60134),ed=ea(17567);function getSettings(L={}){return L instanceof ed.default?L:new ed.default(L)}ei.Settings=ed.default,ei.walk=function(L,ei,ea){"function"==typeof ei?new es.default(L,getSettings()).read(ei):new es.default(L,getSettings(ei)).read(ea)},ei.walkSync=function(L,ei){let ea=getSettings(ei);return new ec.default(L,ea).read()},ei.walkStream=function(L,ei){let ea=getSettings(ei);return new el.default(L,ea).read()}},66757(L,ei,ea){"use strict";Object.defineProperty(ei,"__esModule",{value:!0});let es=ea(23339);let AsyncProvider=class AsyncProvider{constructor(L,ei){this._root=L,this._settings=ei,this._reader=new es.default(this._root,this._settings),this._storage=[]}read(L){this._reader.onError(ei=>{callFailureCallback(L,ei)}),this._reader.onEntry(L=>{this._storage.push(L)}),this._reader.onEnd(()=>{callSuccessCallback(L,this._storage)}),this._reader.read()}};function callFailureCallback(L,ei){L(ei)}function callSuccessCallback(L,ei){L(null,ei)}ei.default=AsyncProvider},59905(L,ei,ea){"use strict";Object.defineProperty(ei,"__esModule",{value:!0});let es=ea(2203),el=ea(23339);let StreamProvider=class StreamProvider{constructor(L,ei){this._root=L,this._settings=ei,this._reader=new el.default(this._root,this._settings),this._stream=new es.Readable({objectMode:!0,read:()=>{},destroy:()=>{this._reader.isDestroyed||this._reader.destroy()}})}read(){return this._reader.onError(L=>{this._stream.emit("error",L)}),this._reader.onEntry(L=>{this._stream.push(L)}),this._reader.onEnd(()=>{this._stream.push(null)}),this._reader.read(),this._stream}};ei.default=StreamProvider},60134(L,ei,ea){"use strict";Object.defineProperty(ei,"__esModule",{value:!0});let es=ea(17432);let SyncProvider=class SyncProvider{constructor(L,ei){this._root=L,this._settings=ei,this._reader=new es.default(this._root,this._settings)}read(){return this._reader.read()}};ei.default=SyncProvider},23339(L,ei,ea){"use strict";Object.defineProperty(ei,"__esModule",{value:!0});let es=ea(24434),el=ea(87497),ec=ea(49669),ed=ea(18714),eu=ea(73280);let AsyncReader=class AsyncReader extends eu.default{constructor(L,ei){super(L,ei),this._settings=ei,this._scandir=el.scandir,this._emitter=new es.EventEmitter,this._queue=ec(this._worker.bind(this),this._settings.concurrency),this._isFatalError=!1,this._isDestroyed=!1,this._queue.drain=()=>{this._isFatalError||this._emitter.emit("end")}}read(){return this._isFatalError=!1,this._isDestroyed=!1,setImmediate(()=>{this._pushToQueue(this._root,this._settings.basePath)}),this._emitter}get isDestroyed(){return this._isDestroyed}destroy(){if(this._isDestroyed)throw Error("The reader is already destroyed");this._isDestroyed=!0,this._queue.killAndDrain()}onEntry(L){this._emitter.on("entry",L)}onError(L){this._emitter.once("error",L)}onEnd(L){this._emitter.once("end",L)}_pushToQueue(L,ei){let ea={directory:L,base:ei};this._queue.push(ea,L=>{null!==L&&this._handleError(L)})}_worker(L,ei){this._scandir(L.directory,this._settings.fsScandirSettings,(ea,es)=>{if(null!==ea)return void ei(ea,void 0);for(let ei of es)this._handleEntry(ei,L.base);ei(null,void 0)})}_handleError(L){!this._isDestroyed&&ed.isFatalError(this._settings,L)&&(this._isFatalError=!0,this._isDestroyed=!0,this._emitter.emit("error",L))}_handleEntry(L,ei){if(this._isDestroyed||this._isFatalError)return;let ea=L.path;void 0!==ei&&(L.path=ed.joinPathSegments(ei,L.name,this._settings.pathSegmentSeparator)),ed.isAppliedFilter(this._settings.entryFilter,L)&&this._emitEntry(L),L.dirent.isDirectory()&&ed.isAppliedFilter(this._settings.deepFilter,L)&&this._pushToQueue(ea,void 0===ei?void 0:L.path)}_emitEntry(L){this._emitter.emit("entry",L)}};ei.default=AsyncReader},18714(L,ei){"use strict";Object.defineProperty(ei,"__esModule",{value:!0}),ei.joinPathSegments=ei.replacePathSegmentSeparator=ei.isAppliedFilter=ei.isFatalError=void 0,ei.isFatalError=function(L,ei){return null===L.errorFilter||!L.errorFilter(ei)},ei.isAppliedFilter=function(L,ei){return null===L||L(ei)},ei.replacePathSegmentSeparator=function(L,ei){return L.split(/[/\\]/).join(ei)},ei.joinPathSegments=function(L,ei,ea){return""===L?ei:L.endsWith(ea)?L+ei:L+ea+ei}},73280(L,ei,ea){"use strict";Object.defineProperty(ei,"__esModule",{value:!0});let es=ea(18714);let Reader=class Reader{constructor(L,ei){this._root=L,this._settings=ei,this._root=es.replacePathSegmentSeparator(L,ei.pathSegmentSeparator)}};ei.default=Reader},17432(L,ei,ea){"use strict";Object.defineProperty(ei,"__esModule",{value:!0});let es=ea(87497),el=ea(18714),ec=ea(73280);let SyncReader=class SyncReader extends ec.default{constructor(){super(...arguments),this._scandir=es.scandirSync,this._storage=[],this._queue=new Set}read(){return this._pushToQueue(this._root,this._settings.basePath),this._handleQueue(),this._storage}_pushToQueue(L,ei){this._queue.add({directory:L,base:ei})}_handleQueue(){for(let L of this._queue.values())this._handleDirectory(L.directory,L.base)}_handleDirectory(L,ei){try{for(let ea of this._scandir(L,this._settings.fsScandirSettings))this._handleEntry(ea,ei)}catch(L){this._handleError(L)}}_handleError(L){if(el.isFatalError(this._settings,L))throw L}_handleEntry(L,ei){let ea=L.path;void 0!==ei&&(L.path=el.joinPathSegments(ei,L.name,this._settings.pathSegmentSeparator)),el.isAppliedFilter(this._settings.entryFilter,L)&&this._pushToStorage(L),L.dirent.isDirectory()&&el.isAppliedFilter(this._settings.deepFilter,L)&&this._pushToQueue(ea,void 0===ei?void 0:L.path)}_pushToStorage(L){this._storage.push(L)}};ei.default=SyncReader},17567(L,ei,ea){"use strict";Object.defineProperty(ei,"__esModule",{value:!0});let es=ea(16928),el=ea(87497);let Settings=class Settings{constructor(L={}){this._options=L,this.basePath=this._getValue(this._options.basePath,void 0),this.concurrency=this._getValue(this._options.concurrency,1/0),this.deepFilter=this._getValue(this._options.deepFilter,null),this.entryFilter=this._getValue(this._options.entryFilter,null),this.errorFilter=this._getValue(this._options.errorFilter,null),this.pathSegmentSeparator=this._getValue(this._options.pathSegmentSeparator,es.sep),this.fsScandirSettings=new el.Settings({followSymbolicLinks:this._options.followSymbolicLinks,fs:this._options.fs,pathSegmentSeparator:this._options.pathSegmentSeparator,stats:this._options.stats,throwErrorOnBrokenSymbolicLink:this._options.throwErrorOnBrokenSymbolicLink})}_getValue(L,ei){return null!=L?L:ei}};ei.default=Settings},48295(L,ei,ea){"use strict";ea.d(ei,{_:()=>eh});var es=ea(73122),__read=function(L,ei){var ea="function"==typeof Symbol&&L[Symbol.iterator];if(!ea)return L;var es,el,ec=ea.call(L),ed=[];try{for(;(void 0===ei||ei-- >0)&&!(es=ec.next()).done;)ed.push(es.value)}catch(L){el={error:L}}finally{try{es&&!es.done&&(ea=ec.return)&&ea.call(ec)}finally{if(el)throw el.error}}return ed},__spreadArray=function(L,ei,ea){if(ea||2==arguments.length)for(var es,el=0,ec=ei.length;el<ec;el++)!es&&el in ei||(es||(es=Array.prototype.slice.call(ei,0,el)),es[el]=ei[el]);return L.concat(es||Array.prototype.slice.call(ei))},el=function(){function NoopContextManager(){}return NoopContextManager.prototype.active=function(){return es.l},NoopContextManager.prototype.with=function(L,ei,ea){for(var es=[],el=3;el<arguments.length;el++)es[el-3]=arguments[el];return ei.call.apply(ei,__spreadArray([ea],__read(es),!1))},NoopContextManager.prototype.bind=function(L,ei){return ei},NoopContextManager.prototype.enable=function(){return this},NoopContextManager.prototype.disable=function(){return this},NoopContextManager}(),ec=ea(47018),ed=ea(74561),context_read=function(L,ei){var ea="function"==typeof Symbol&&L[Symbol.iterator];if(!ea)return L;var es,el,ec=ea.call(L),ed=[];try{for(;(void 0===ei||ei-- >0)&&!(es=ec.next()).done;)ed.push(es.value)}catch(L){el={error:L}}finally{try{es&&!es.done&&(ea=ec.return)&&ea.call(ec)}finally{if(el)throw el.error}}return ed},context_spreadArray=function(L,ei,ea){if(ea||2==arguments.length)for(var es,el=0,ec=ei.length;el<ec;el++)!es&&el in ei||(es||(es=Array.prototype.slice.call(ei,0,el)),es[el]=ei[el]);return L.concat(es||Array.prototype.slice.call(ei))},eu="context",ep=new el,eh=function(){function ContextAPI(){}return ContextAPI.getInstance=function(){return this._instance||(this._instance=new ContextAPI),this._instance},ContextAPI.prototype.setGlobalContextManager=function(L){return(0,ec.$G)(eu,L,ed.K.instance())},ContextAPI.prototype.active=function(){return this._getContextManager().active()},ContextAPI.prototype.with=function(L,ei,ea){for(var es,el=[],ec=3;ec<arguments.length;ec++)el[ec-3]=arguments[ec];return(es=this._getContextManager()).with.apply(es,context_spreadArray([L,ei,ea],context_read(el),!1))},ContextAPI.prototype.bind=function(L,ei){return this._getContextManager().bind(L,ei)},ContextAPI.prototype._getContextManager=function(){return(0,ec.mS)(eu)||ep},ContextAPI.prototype.disable=function(){this._getContextManager().disable(),(0,ec.kv)(eu,ed.K.instance())},ContextAPI}()},74561(L,ei,ea){"use strict";ea.d(ei,{K:()=>eu});var es=ea(47018),__read=function(L,ei){var ea="function"==typeof Symbol&&L[Symbol.iterator];if(!ea)return L;var es,el,ec=ea.call(L),ed=[];try{for(;(void 0===ei||ei-- >0)&&!(es=ec.next()).done;)ed.push(es.value)}catch(L){el={error:L}}finally{try{es&&!es.done&&(ea=ec.return)&&ea.call(ec)}finally{if(el)throw el.error}}return ed},__spreadArray=function(L,ei,ea){if(ea||2==arguments.length)for(var es,el=0,ec=ei.length;el<ec;el++)!es&&el in ei||(es||(es=Array.prototype.slice.call(ei,0,el)),es[el]=ei[el]);return L.concat(es||Array.prototype.slice.call(ei))},el=function(){function DiagComponentLogger(L){this._namespace=L.namespace||"DiagComponentLogger"}return DiagComponentLogger.prototype.debug=function(){for(var L=[],ei=0;ei<arguments.length;ei++)L[ei]=arguments[ei];return logProxy("debug",this._namespace,L)},DiagComponentLogger.prototype.error=function(){for(var L=[],ei=0;ei<arguments.length;ei++)L[ei]=arguments[ei];return logProxy("error",this._namespace,L)},DiagComponentLogger.prototype.info=function(){for(var L=[],ei=0;ei<arguments.length;ei++)L[ei]=arguments[ei];return logProxy("info",this._namespace,L)},DiagComponentLogger.prototype.warn=function(){for(var L=[],ei=0;ei<arguments.length;ei++)L[ei]=arguments[ei];return logProxy("warn",this._namespace,L)},DiagComponentLogger.prototype.verbose=function(){for(var L=[],ei=0;ei<arguments.length;ei++)L[ei]=arguments[ei];return logProxy("verbose",this._namespace,L)},DiagComponentLogger}();function logProxy(L,ei,ea){var el=(0,es.mS)("diag");if(el)return ea.unshift(ei),el[L].apply(el,__spreadArray([],__read(ea),!1))}var ec=ea(14484);function createLogLevelDiagLogger(L,ei){function _filterFunc(ea,es){var el=ei[ea];return"function"==typeof el&&L>=es?el.bind(ei):function(){}}return L<ec.u.NONE?L=ec.u.NONE:L>ec.u.ALL&&(L=ec.u.ALL),ei=ei||{},{error:_filterFunc("error",ec.u.ERROR),warn:_filterFunc("warn",ec.u.WARN),info:_filterFunc("info",ec.u.INFO),debug:_filterFunc("debug",ec.u.DEBUG),verbose:_filterFunc("verbose",ec.u.VERBOSE)}}var diag_read=function(L,ei){var ea="function"==typeof Symbol&&L[Symbol.iterator];if(!ea)return L;var es,el,ec=ea.call(L),ed=[];try{for(;(void 0===ei||ei-- >0)&&!(es=ec.next()).done;)ed.push(es.value)}catch(L){el={error:L}}finally{try{es&&!es.done&&(ea=ec.return)&&ea.call(ec)}finally{if(el)throw el.error}}return ed},diag_spreadArray=function(L,ei,ea){if(ea||2==arguments.length)for(var es,el=0,ec=ei.length;el<ec;el++)!es&&el in ei||(es||(es=Array.prototype.slice.call(ei,0,el)),es[el]=ei[el]);return L.concat(es||Array.prototype.slice.call(ei))},ed="diag",eu=function(){function DiagAPI(){function _logProxy(L){return function(){for(var ei=[],ea=0;ea<arguments.length;ea++)ei[ea]=arguments[ea];var el=(0,es.mS)("diag");if(el)return el[L].apply(el,diag_spreadArray([],diag_read(ei),!1))}}var L=this,setLogger=function(ei,ea){if(void 0===ea&&(ea={logLevel:ec.u.INFO}),ei===L){var el,ed,eu,ep=Error("Cannot use diag as the logger for itself. Please use a DiagLogger implementation like ConsoleDiagLogger or a custom implementation");return L.error(null!=(el=ep.stack)?el:ep.message),!1}"number"==typeof ea&&(ea={logLevel:ea});var eh=(0,es.mS)("diag"),ef=createLogLevelDiagLogger(null!=(ed=ea.logLevel)?ed:ec.u.INFO,ei);if(eh&&!ea.suppressOverrideMessage){var em=null!=(eu=Error().stack)?eu:"<failed to generate stacktrace>";eh.warn("Current logger will be overwritten from "+em),ef.warn("Current logger will overwrite one already registered from "+em)}return(0,es.$G)("diag",ef,L,!0)};L.setLogger=setLogger,L.disable=function(){(0,es.kv)(ed,L)},L.createComponentLogger=function(L){return new el(L)},L.verbose=_logProxy("verbose"),L.debug=_logProxy("debug"),L.info=_logProxy("info"),L.warn=_logProxy("warn"),L.error=_logProxy("error")}return DiagAPI.instance=function(){return this._instance||(this._instance=new DiagAPI),this._instance},DiagAPI}()},99229(L,ei,ea){"use strict";ea.d(ei,{L:()=>createBaggage,B:()=>baggageEntryMetadataFromString});var es=ea(74561),__read=function(L,ei){var ea="function"==typeof Symbol&&L[Symbol.iterator];if(!ea)return L;var es,el,ec=ea.call(L),ed=[];try{for(;(void 0===ei||ei-- >0)&&!(es=ec.next()).done;)ed.push(es.value)}catch(L){el={error:L}}finally{try{es&&!es.done&&(ea=ec.return)&&ea.call(ec)}finally{if(el)throw el.error}}return ed},__values=function(L){var ei="function"==typeof Symbol&&Symbol.iterator,ea=ei&&L[ei],es=0;if(ea)return ea.call(L);if(L&&"number"==typeof L.length)return{next:function(){return L&&es>=L.length&&(L=void 0),{value:L&&L[es++],done:!L}}};throw TypeError(ei?"Object is not iterable.":"Symbol.iterator is not defined.")},el=function(){function BaggageImpl(L){this._entries=L?new Map(L):new Map}return BaggageImpl.prototype.getEntry=function(L){var ei=this._entries.get(L);if(ei)return Object.assign({},ei)},BaggageImpl.prototype.getAllEntries=function(){return Array.from(this._entries.entries()).map(function(L){var ei=__read(L,2);return[ei[0],ei[1]]})},BaggageImpl.prototype.setEntry=function(L,ei){var ea=new BaggageImpl(this._entries);return ea._entries.set(L,ei),ea},BaggageImpl.prototype.removeEntry=function(L){var ei=new BaggageImpl(this._entries);return ei._entries.delete(L),ei},BaggageImpl.prototype.removeEntries=function(){for(var L,ei,ea=[],es=0;es<arguments.length;es++)ea[es]=arguments[es];var el=new BaggageImpl(this._entries);try{for(var ec=__values(ea),ed=ec.next();!ed.done;ed=ec.next()){var eu=ed.value;el._entries.delete(eu)}}catch(ei){L={error:ei}}finally{try{ed&&!ed.done&&(ei=ec.return)&&ei.call(ec)}finally{if(L)throw L.error}}return el},BaggageImpl.prototype.clear=function(){return new BaggageImpl},BaggageImpl}(),ec=Symbol("BaggageEntryMetadata"),ed=es.K.instance();function createBaggage(L){return void 0===L&&(L={}),new el(new Map(Object.entries(L)))}function baggageEntryMetadataFromString(L){return"string"!=typeof L&&(ed.error("Cannot create baggage metadata from unknown type: "+typeof L),L=""),{__TYPE__:ec,toString:function(){return L}}}},49839(L,ei,ea){"use strict";ea.d(ei,{_:()=>es});var es=ea(48295)._.getInstance()},73122(L,ei,ea){"use strict";function createContextKey(L){return Symbol.for(L)}ea.d(ei,{l:()=>es,n:()=>createContextKey});var es=new(function(){function BaseContext(L){var ei=this;ei._currentContext=L?new Map(L):new Map,ei.getValue=function(L){return ei._currentContext.get(L)},ei.setValue=function(L,ea){var es=new BaseContext(ei._currentContext);return es._currentContext.set(L,ea),es},ei.deleteValue=function(L){var ea=new BaseContext(ei._currentContext);return ea._currentContext.delete(L),ea}}return BaseContext}())},57812(L,ei,ea){"use strict";ea.d(ei,{s:()=>es});var es=ea(74561).K.instance()},14484(L,ei,ea){"use strict";var es;ea.d(ei,{u:()=>es}),function(L){L[L.NONE=0]="NONE",L[L.ERROR=30]="ERROR",L[L.WARN=50]="WARN",L[L.INFO=60]="INFO",L[L.DEBUG=70]="DEBUG",L[L.VERBOSE=80]="VERBOSE",L[L.ALL=9999]="ALL"}(es||(es={}))},19377(L,ei,ea){"use strict";ea.r(ei),ea.d(ei,{TraceFlags:()=>ev.X,createContextKey:()=>el.n,createNoopMeter:()=>ep.Ac,metrics:()=>eD.q,propagation:()=>e$.$,ValueType:()=>eh.e,context:()=>eI._,ProxyTracerProvider:()=>eg.n,createTraceState:()=>createTraceState,defaultTextMapGetter:()=>ef.q,DiagLogLevel:()=>eu.u,trace:()=>eN.u,SpanStatusCode:()=>e_.s,isValidTraceId:()=>eP.hX,ProxyTracer:()=>em.y,INVALID_TRACEID:()=>eO.RH,INVALID_SPAN_CONTEXT:()=>eO.dM,ROOT_CONTEXT:()=>el.l,default:()=>eL,DiagConsoleLogger:()=>ed,defaultTextMapSetter:()=>ef.U,isSpanContextValid:()=>eP.YA,INVALID_SPANID:()=>eO.w9,SamplingDecision:()=>ey.i,diag:()=>eM.s,SpanKind:()=>eb.v,isValidSpanId:()=>eP.wN,baggageEntryMetadataFromString:()=>es.B});var es=ea(99229),el=ea(73122),ec=[{n:"error",c:"error"},{n:"warn",c:"warn"},{n:"info",c:"info"},{n:"debug",c:"debug"},{n:"verbose",c:"trace"}],ed=function(){return function(){function _consoleFunc(L){return function(){for(var ei=[],ea=0;ea<arguments.length;ea++)ei[ea]=arguments[ea];if(console){var es=console[L];if("function"!=typeof es&&(es=console.log),"function"==typeof es)return es.apply(console,ei)}}}for(var L=0;L<ec.length;L++)this[ec[L].n]=_consoleFunc(ec[L].c)}}(),eu=ea(14484),ep=ea(31394),eh=ea(80619),ef=ea(79366),em=ea(3722),eg=ea(49899),ey=ea(31531),eb=ea(19672),e_=ea(20173),ev=ea(66678),ew="[_0-9a-z-*/]",eS=RegExp("^(?:[a-z]"+ew+"{0,255}|"+("[a-z0-9]"+ew+"{0,240}@[a-z]"+ew)+"{0,13})$"),ek=/^[ -~]{0,255}[!-~]$/,eE=/,|=/;function validateKey(L){return eS.test(L)}function validateValue(L){return ek.test(L)&&!eE.test(L)}var eC=32,eT=512,eA=",",ex="=",eR=function(){function TraceStateImpl(L){this._internalState=new Map,L&&this._parse(L)}return TraceStateImpl.prototype.set=function(L,ei){var ea=this._clone();return ea._internalState.has(L)&&ea._internalState.delete(L),ea._internalState.set(L,ei),ea},TraceStateImpl.prototype.unset=function(L){var ei=this._clone();return ei._internalState.delete(L),ei},TraceStateImpl.prototype.get=function(L){return this._internalState.get(L)},TraceStateImpl.prototype.serialize=function(){var L=this;return this._keys().reduce(function(ei,ea){return ei.push(ea+ex+L.get(ea)),ei},[]).join(eA)},TraceStateImpl.prototype._parse=function(L){!(L.length>eT)&&(this._internalState=L.split(eA).reverse().reduce(function(L,ei){var ea=ei.trim(),es=ea.indexOf(ex);if(-1!==es){var el=ea.slice(0,es),ec=ea.slice(es+1,ei.length);validateKey(el)&&validateValue(ec)&&L.set(el,ec)}return L},new Map),this._internalState.size>eC&&(this._internalState=new Map(Array.from(this._internalState.entries()).reverse().slice(0,eC))))},TraceStateImpl.prototype._keys=function(){return Array.from(this._internalState.keys()).reverse()},TraceStateImpl.prototype._clone=function(){var L=new TraceStateImpl;return L._internalState=new Map(this._internalState),L},TraceStateImpl}();function createTraceState(L){return new eR(L)}var eP=ea(58988),eO=ea(37037),eI=ea(49839),eM=ea(57812),eD=ea(64923),e$=ea(47824),eN=ea(96453);let eL={context:eI._,diag:eM.s,metrics:eD.q,propagation:e$.$,trace:eN.u}},47018(L,ei,ea){"use strict";ea.d(ei,{$G:()=>registerGlobal,kv:()=>unregisterGlobal,mS:()=>getGlobal});var es="object"==typeof globalThis?globalThis:global,el="1.9.0",ec=/^(\d+)\.(\d+)\.(\d+)(-(.+))?$/,ed=function(L){var ei=new Set([L]),ea=new Set,es=L.match(ec);if(!es)return function(){return!1};var el={major:+es[1],minor:+es[2],patch:+es[3],prerelease:es[4]};if(null!=el.prerelease)return function(ei){return ei===L};function _reject(L){return ea.add(L),!1}function _accept(L){return ei.add(L),!0}return function(L){if(ei.has(L))return!0;if(ea.has(L))return!1;var es=L.match(ec);if(!es)return _reject(L);var ed={major:+es[1],minor:+es[2],patch:+es[3],prerelease:es[4]};return null!=ed.prerelease||el.major!==ed.major?_reject(L):0===el.major?el.minor===ed.minor&&el.patch<=ed.patch?_accept(L):_reject(L):el.minor<=ed.minor?_accept(L):_reject(L)}}(el),eu=Symbol.for("opentelemetry.js.api."+el.split(".")[0]),ep=es;function registerGlobal(L,ei,ea,es){void 0===es&&(es=!1);var ec,ed=ep[eu]=null!=(ec=ep[eu])?ec:{version:el};if(!es&&ed[L]){var eh=Error("@opentelemetry/api: Attempted duplicate registration of API: "+L);return ea.error(eh.stack||eh.message),!1}if(ed.version!==el){var eh=Error("@opentelemetry/api: Registration of version v"+ed.version+" for "+L+" does not match previously registered API v"+el);return ea.error(eh.stack||eh.message),!1}return ed[L]=ei,ea.debug("@opentelemetry/api: Registered a global for "+L+" v"+el+"."),!0}function getGlobal(L){var ei,ea,es=null==(ei=ep[eu])?void 0:ei.version;if(es&&ed(es))return null==(ea=ep[eu])?void 0:ea[L]}function unregisterGlobal(L,ei){ei.debug("@opentelemetry/api: Unregistering a global for "+L+" v"+el+".");var ea=ep[eu];ea&&delete ea[L]}},64923(L,ei,ea){"use strict";ea.d(ei,{q:()=>ep});var es=ea(31394),el=new(function(){function NoopMeterProvider(){}return NoopMeterProvider.prototype.getMeter=function(L,ei,ea){return es.Dq},NoopMeterProvider}()),ec=ea(47018),ed=ea(74561),eu="metrics",ep=(function(){function MetricsAPI(){}return MetricsAPI.getInstance=function(){return this._instance||(this._instance=new MetricsAPI),this._instance},MetricsAPI.prototype.setGlobalMeterProvider=function(L){return(0,ec.$G)(eu,L,ed.K.instance())},MetricsAPI.prototype.getMeterProvider=function(){return(0,ec.mS)(eu)||el},MetricsAPI.prototype.getMeter=function(L,ei,ea){return this.getMeterProvider().getMeter(L,ei,ea)},MetricsAPI.prototype.disable=function(){(0,ec.kv)(eu,ed.K.instance())},MetricsAPI})().getInstance()},80619(L,ei,ea){"use strict";var es;ea.d(ei,{e:()=>es}),function(L){L[L.INT=0]="INT",L[L.DOUBLE=1]="DOUBLE"}(es||(es={}))},31394(L,ei,ea){"use strict";ea.d(ei,{Ac:()=>createNoopMeter,Dq:()=>eb});var es=function(){var extendStatics=function(L,ei){return(extendStatics=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(L,ei){L.__proto__=ei}||function(L,ei){for(var ea in ei)Object.prototype.hasOwnProperty.call(ei,ea)&&(L[ea]=ei[ea])})(L,ei)};return function(L,ei){if("function"!=typeof ei&&null!==ei)throw TypeError("Class extends value "+String(ei)+" is not a constructor or null");function __(){this.constructor=L}extendStatics(L,ei),L.prototype=null===ei?Object.create(ei):(__.prototype=ei.prototype,new __)}}(),el=function(){function NoopMeter(){}return NoopMeter.prototype.createGauge=function(L,ei){return ev},NoopMeter.prototype.createHistogram=function(L,ei){return ew},NoopMeter.prototype.createCounter=function(L,ei){return e_},NoopMeter.prototype.createUpDownCounter=function(L,ei){return eS},NoopMeter.prototype.createObservableGauge=function(L,ei){return eE},NoopMeter.prototype.createObservableCounter=function(L,ei){return ek},NoopMeter.prototype.createObservableUpDownCounter=function(L,ei){return eC},NoopMeter.prototype.addBatchObservableCallback=function(L,ei){},NoopMeter.prototype.removeBatchObservableCallback=function(L){},NoopMeter}(),ec=function(){return function(){}}(),ed=function(L){function NoopCounterMetric(){return null!==L&&L.apply(this,arguments)||this}return es(NoopCounterMetric,L),NoopCounterMetric.prototype.add=function(L,ei){},NoopCounterMetric}(ec),eu=function(L){function NoopUpDownCounterMetric(){return null!==L&&L.apply(this,arguments)||this}return es(NoopUpDownCounterMetric,L),NoopUpDownCounterMetric.prototype.add=function(L,ei){},NoopUpDownCounterMetric}(ec),ep=function(L){function NoopGaugeMetric(){return null!==L&&L.apply(this,arguments)||this}return es(NoopGaugeMetric,L),NoopGaugeMetric.prototype.record=function(L,ei){},NoopGaugeMetric}(ec),eh=function(L){function NoopHistogramMetric(){return null!==L&&L.apply(this,arguments)||this}return es(NoopHistogramMetric,L),NoopHistogramMetric.prototype.record=function(L,ei){},NoopHistogramMetric}(ec),ef=function(){function NoopObservableMetric(){}return NoopObservableMetric.prototype.addCallback=function(L){},NoopObservableMetric.prototype.removeCallback=function(L){},NoopObservableMetric}(),em=function(L){function NoopObservableCounterMetric(){return null!==L&&L.apply(this,arguments)||this}return es(NoopObservableCounterMetric,L),NoopObservableCounterMetric}(ef),eg=function(L){function NoopObservableGaugeMetric(){return null!==L&&L.apply(this,arguments)||this}return es(NoopObservableGaugeMetric,L),NoopObservableGaugeMetric}(ef),ey=function(L){function NoopObservableUpDownCounterMetric(){return null!==L&&L.apply(this,arguments)||this}return es(NoopObservableUpDownCounterMetric,L),NoopObservableUpDownCounterMetric}(ef),eb=new el,e_=new ed,ev=new ep,ew=new eh,eS=new eu,ek=new em,eE=new eg,eC=new ey;function createNoopMeter(){return eb}},47824(L,ei,ea){"use strict";ea.d(ei,{$:()=>eg});var es=ea(47018),el=function(){function NoopTextMapPropagator(){}return NoopTextMapPropagator.prototype.inject=function(L,ei){},NoopTextMapPropagator.prototype.extract=function(L,ei){return L},NoopTextMapPropagator.prototype.fields=function(){return[]},NoopTextMapPropagator}(),ec=ea(79366),ed=ea(48295),eu=(0,ea(73122).n)("OpenTelemetry Baggage Key");function getBaggage(L){return L.getValue(eu)||void 0}function getActiveBaggage(){return getBaggage(ed._.getInstance().active())}function setBaggage(L,ei){return L.setValue(eu,ei)}function deleteBaggage(L){return L.deleteValue(eu)}var ep=ea(99229),eh=ea(74561),ef="propagation",em=new el,eg=(function(){function PropagationAPI(){this.createBaggage=ep.L,this.getBaggage=getBaggage,this.getActiveBaggage=getActiveBaggage,this.setBaggage=setBaggage,this.deleteBaggage=deleteBaggage}return PropagationAPI.getInstance=function(){return this._instance||(this._instance=new PropagationAPI),this._instance},PropagationAPI.prototype.setGlobalPropagator=function(L){return(0,es.$G)(ef,L,eh.K.instance())},PropagationAPI.prototype.inject=function(L,ei,ea){return void 0===ea&&(ea=ec.U),this._getGlobalPropagator().inject(L,ei,ea)},PropagationAPI.prototype.extract=function(L,ei,ea){return void 0===ea&&(ea=ec.q),this._getGlobalPropagator().extract(L,ei,ea)},PropagationAPI.prototype.fields=function(){return this._getGlobalPropagator().fields()},PropagationAPI.prototype.disable=function(){(0,es.kv)(ef,eh.K.instance())},PropagationAPI.prototype._getGlobalPropagator=function(){return(0,es.mS)(ef)||em},PropagationAPI})().getInstance()},79366(L,ei,ea){"use strict";ea.d(ei,{U:()=>el,q:()=>es});var es={get:function(L,ei){if(null!=L)return L[ei]},keys:function(L){return null==L?[]:Object.keys(L)}},el={set:function(L,ei,ea){null!=L&&(L[ei]=ea)}}},96453(L,ei,ea){"use strict";ea.d(ei,{u:()=>eh});var es=ea(47018),el=ea(49899),ec=ea(58988),ed=ea(34228),eu=ea(74561),ep="trace",eh=(function(){function TraceAPI(){this._proxyTracerProvider=new el.n,this.wrapSpanContext=ec.IP,this.isSpanContextValid=ec.YA,this.deleteSpan=ed.EW,this.getSpan=ed.fU,this.getActiveSpan=ed.Bk,this.getSpanContext=ed.w8,this.setSpan=ed.Bx,this.setSpanContext=ed.g_}return TraceAPI.getInstance=function(){return this._instance||(this._instance=new TraceAPI),this._instance},TraceAPI.prototype.setGlobalTracerProvider=function(L){var ei=(0,es.$G)(ep,this._proxyTracerProvider,eu.K.instance());return ei&&this._proxyTracerProvider.setDelegate(L),ei},TraceAPI.prototype.getTracerProvider=function(){return(0,es.mS)(ep)||this._proxyTracerProvider},TraceAPI.prototype.getTracer=function(L,ei){return this.getTracerProvider().getTracer(L,ei)},TraceAPI.prototype.disable=function(){(0,es.kv)(ep,eu.K.instance()),this._proxyTracerProvider=new el.n},TraceAPI})().getInstance()},57497(L,ei,ea){"use strict";ea.d(ei,{d:()=>el});var es=ea(37037),el=function(){function NonRecordingSpan(L){void 0===L&&(L=es.dM),this._spanContext=L}return NonRecordingSpan.prototype.spanContext=function(){return this._spanContext},NonRecordingSpan.prototype.setAttribute=function(L,ei){return this},NonRecordingSpan.prototype.setAttributes=function(L){return this},NonRecordingSpan.prototype.addEvent=function(L,ei){return this},NonRecordingSpan.prototype.addLink=function(L){return this},NonRecordingSpan.prototype.addLinks=function(L){return this},NonRecordingSpan.prototype.setStatus=function(L){return this},NonRecordingSpan.prototype.updateName=function(L){return this},NonRecordingSpan.prototype.end=function(L){},NonRecordingSpan.prototype.isRecording=function(){return!1},NonRecordingSpan.prototype.recordException=function(L,ei){},NonRecordingSpan}()},72962(L,ei,ea){"use strict";ea.d(ei,{o:()=>ep});var es=ea(48295),el=ea(34228),ec=ea(57497),ed=ea(58988),eu=es._.getInstance(),ep=function(){function NoopTracer(){}return NoopTracer.prototype.startSpan=function(L,ei,ea){if(void 0===ea&&(ea=eu.active()),null==ei?void 0:ei.root)return new ec.d;var es=ea&&(0,el.w8)(ea);return isSpanContext(es)&&(0,ed.YA)(es)?new ec.d(es):new ec.d},NoopTracer.prototype.startActiveSpan=function(L,ei,ea,es){if(!(arguments.length<2)){2==arguments.length?ep=ei:3==arguments.length?(ec=ei,ep=ea):(ec=ei,ed=ea,ep=es);var ec,ed,ep,eh=null!=ed?ed:eu.active(),ef=this.startSpan(L,ec,eh),em=(0,el.Bx)(eh,ef);return eu.with(em,ep,void 0,ef)}},NoopTracer}();function isSpanContext(L){return"object"==typeof L&&"string"==typeof L.spanId&&"string"==typeof L.traceId&&"number"==typeof L.traceFlags}},3722(L,ei,ea){"use strict";ea.d(ei,{y:()=>el});var es=new(ea(72962)).o,el=function(){function ProxyTracer(L,ei,ea,es){this._provider=L,this.name=ei,this.version=ea,this.options=es}return ProxyTracer.prototype.startSpan=function(L,ei,ea){return this._getTracer().startSpan(L,ei,ea)},ProxyTracer.prototype.startActiveSpan=function(L,ei,ea,es){var el=this._getTracer();return Reflect.apply(el.startActiveSpan,el,arguments)},ProxyTracer.prototype._getTracer=function(){if(this._delegate)return this._delegate;var L=this._provider.getDelegateTracer(this.name,this.version,this.options);return L?(this._delegate=L,this._delegate):es},ProxyTracer}()},49899(L,ei,ea){"use strict";ea.d(ei,{n:()=>ed});var es=ea(3722),el=ea(72962),ec=new(function(){function NoopTracerProvider(){}return NoopTracerProvider.prototype.getTracer=function(L,ei,ea){return new el.o},NoopTracerProvider}()),ed=function(){function ProxyTracerProvider(){}return ProxyTracerProvider.prototype.getTracer=function(L,ei,ea){var el;return null!=(el=this.getDelegateTracer(L,ei,ea))?el:new es.y(this,L,ei,ea)},ProxyTracerProvider.prototype.getDelegate=function(){var L;return null!=(L=this._delegate)?L:ec},ProxyTracerProvider.prototype.setDelegate=function(L){this._delegate=L},ProxyTracerProvider.prototype.getDelegateTracer=function(L,ei,ea){var es;return null==(es=this._delegate)?void 0:es.getTracer(L,ei,ea)},ProxyTracerProvider}()},31531(L,ei,ea){"use strict";var es;ea.d(ei,{i:()=>es}),function(L){L[L.NOT_RECORD=0]="NOT_RECORD",L[L.RECORD=1]="RECORD",L[L.RECORD_AND_SAMPLED=2]="RECORD_AND_SAMPLED"}(es||(es={}))},34228(L,ei,ea){"use strict";ea.d(ei,{Bk:()=>getActiveSpan,Bx:()=>setSpan,EW:()=>deleteSpan,fU:()=>getSpan,g_:()=>setSpanContext,w8:()=>getSpanContext});var es=ea(73122),el=ea(57497),ec=ea(48295),ed=(0,es.n)("OpenTelemetry Context Key SPAN");function getSpan(L){return L.getValue(ed)||void 0}function getActiveSpan(){return getSpan(ec._.getInstance().active())}function setSpan(L,ei){return L.setValue(ed,ei)}function deleteSpan(L){return L.deleteValue(ed)}function setSpanContext(L,ei){return setSpan(L,new el.d(ei))}function getSpanContext(L){var ei;return null==(ei=getSpan(L))?void 0:ei.spanContext()}},37037(L,ei,ea){"use strict";ea.d(ei,{RH:()=>ec,dM:()=>ed,w9:()=>el});var es=ea(66678),el="0000000000000000",ec="00000000000000000000000000000000",ed={traceId:ec,spanId:el,traceFlags:es.X.NONE}},19672(L,ei,ea){"use strict";var es;ea.d(ei,{v:()=>es}),function(L){L[L.INTERNAL=0]="INTERNAL",L[L.SERVER=1]="SERVER",L[L.CLIENT=2]="CLIENT",L[L.PRODUCER=3]="PRODUCER",L[L.CONSUMER=4]="CONSUMER"}(es||(es={}))},58988(L,ei,ea){"use strict";ea.d(ei,{IP:()=>wrapSpanContext,YA:()=>isSpanContextValid,hX:()=>isValidTraceId,wN:()=>isValidSpanId});var es=ea(37037),el=ea(57497),ec=/^([0-9a-f]{32})$/i,ed=/^[0-9a-f]{16}$/i;function isValidTraceId(L){return ec.test(L)&&L!==es.RH}function isValidSpanId(L){return ed.test(L)&&L!==es.w9}function isSpanContextValid(L){return isValidTraceId(L.traceId)&&isValidSpanId(L.spanId)}function wrapSpanContext(L){return new el.d(L)}},20173(L,ei,ea){"use strict";var es;ea.d(ei,{s:()=>es}),function(L){L[L.UNSET=0]="UNSET",L[L.OK=1]="OK",L[L.ERROR=2]="ERROR"}(es||(es={}))},66678(L,ei,ea){"use strict";var es;ea.d(ei,{X:()=>es}),function(L){L[L.NONE=0]="NONE",L[L.SAMPLED=1]="SAMPLED"}(es||(es={}))},30245(L,ei,ea){"use strict";var es;ea.d(ei,{V:()=>es}),function(L){L[L.SUCCESS=0]="SUCCESS",L[L.FAILED=1]="FAILED"}(es||(es={}))},54807(L,ei,ea){"use strict";ea.d(ei,{L:()=>sanitizeAttributes,m:()=>isAttributeValue,oU:()=>isAttributeKey});var es=ea(57812),__values=function(L){var ei="function"==typeof Symbol&&Symbol.iterator,ea=ei&&L[ei],es=0;if(ea)return ea.call(L);if(L&&"number"==typeof L.length)return{next:function(){return L&&es>=L.length&&(L=void 0),{value:L&&L[es++],done:!L}}};throw TypeError(ei?"Object is not iterable.":"Symbol.iterator is not defined.")},__read=function(L,ei){var ea="function"==typeof Symbol&&L[Symbol.iterator];if(!ea)return L;var es,el,ec=ea.call(L),ed=[];try{for(;(void 0===ei||ei-- >0)&&!(es=ec.next()).done;)ed.push(es.value)}catch(L){el={error:L}}finally{try{es&&!es.done&&(ea=ec.return)&&ea.call(ec)}finally{if(el)throw el.error}}return ed};function sanitizeAttributes(L){var ei,ea,el={};if("object"!=typeof L||null==L)return el;try{for(var ec=__values(Object.entries(L)),ed=ec.next();!ed.done;ed=ec.next()){var eu=__read(ed.value,2),ep=eu[0],eh=eu[1];if(!isAttributeKey(ep)){es.s.warn("Invalid attribute key: "+ep);continue}if(!isAttributeValue(eh)){es.s.warn("Invalid attribute value set for key: "+ep);continue}Array.isArray(eh)?el[ep]=eh.slice():el[ep]=eh}}catch(L){ei={error:L}}finally{try{ed&&!ed.done&&(ea=ec.return)&&ea.call(ec)}finally{if(ei)throw ei.error}}return el}function isAttributeKey(L){return"string"==typeof L&&L.length>0}function isAttributeValue(L){return null==L||(Array.isArray(L)?isHomogeneousAttributeValueArray(L):isValidPrimitiveAttributeValue(L))}function isHomogeneousAttributeValueArray(L){try{for(var ei,ea,es,el=__values(L),ec=el.next();!ec.done;ec=el.next()){var ed=ec.value;if(null!=ed){if(!es){if(isValidPrimitiveAttributeValue(ed)){es=typeof ed;continue}return!1}if(typeof ed!==es)return!1}}}catch(L){ei={error:L}}finally{try{ec&&!ec.done&&(ea=el.return)&&ea.call(el)}finally{if(ei)throw ei.error}}return!0}function isValidPrimitiveAttributeValue(L){switch(typeof L){case"number":case"boolean":case"string":return!0}return!1}},73647(L,ei,ea){"use strict";ea.d(ei,{s:()=>globalErrorHandler,u:()=>setGlobalErrorHandler});var es=(0,ea(8799).o)();function setGlobalErrorHandler(L){es=L}function globalErrorHandler(L){try{es(L)}catch(L){}}},8799(L,ei,ea){"use strict";ea.d(ei,{o:()=>loggingErrorHandler});var es=ea(57812);function loggingErrorHandler(){return function(L){es.s.error(stringifyException(L))}}function stringifyException(L){return"string"==typeof L?L:JSON.stringify(flattenException(L))}function flattenException(L){for(var ei={},ea=L;null!==ea;)Object.getOwnPropertyNames(ea).forEach(function(L){if(!ei[L]){var es=ea[L];es&&(ei[L]=String(es))}}),ea=Object.getPrototypeOf(ea);return ei}},80647(L,ei,ea){"use strict";ea.d(ei,{Ir:()=>isTimeInput,JU:()=>hrTimeToMilliseconds,KJ:()=>timeInputToHrTime,VL:()=>isTimeInputHrTime,W5:()=>hrTimeDuration,_5:()=>hrTime,lg:()=>millisToHrTime,mw:()=>addHrTimes,tq:()=>hrTimeToTimeStamp,u5:()=>hrTimeToNanoseconds,uc:()=>getTimeOrigin,w_:()=>hrTimeToMicroseconds});var es=ea(11001),el=9,ec=1e6,ed=1e9;function millisToHrTime(L){return[Math.trunc(L/1e3),Math.round(L%1e3*ec)]}function getTimeOrigin(){var L=es.u.timeOrigin;if("number"!=typeof L){var ei=es.u;L=ei.timing&&ei.timing.fetchStart}return L}function hrTime(L){return addHrTimes(millisToHrTime(getTimeOrigin()),millisToHrTime("number"==typeof L?L:es.u.now()))}function timeInputToHrTime(L){if(isTimeInputHrTime(L))return L;if("number"==typeof L)if(L<getTimeOrigin())return hrTime(L);else return millisToHrTime(L);if(L instanceof Date)return millisToHrTime(L.getTime());throw TypeError("Invalid input type")}function hrTimeDuration(L,ei){var ea=ei[0]-L[0],es=ei[1]-L[1];return es<0&&(ea-=1,es+=ed),[ea,es]}function hrTimeToTimeStamp(L){var ei=el,ea=""+"0".repeat(ei)+L[1]+"Z",es=ea.substr(ea.length-ei-1);return new Date(1e3*L[0]).toISOString().replace("000Z",es)}function hrTimeToNanoseconds(L){return L[0]*ed+L[1]}function hrTimeToMilliseconds(L){return 1e3*L[0]+L[1]/1e6}function hrTimeToMicroseconds(L){return 1e6*L[0]+L[1]/1e3}function isTimeInputHrTime(L){return Array.isArray(L)&&2===L.length&&"number"==typeof L[0]&&"number"==typeof L[1]}function isTimeInput(L){return isTimeInputHrTime(L)||"number"==typeof L||L instanceof Date}function addHrTimes(L,ei){var ea=[L[0]+ei[0],L[1]+ei[1]];return ea[1]>=ed&&(ea[1]-=ed,ea[0]+=1),ea}},99271(L,ei,ea){"use strict";ea.r(ei),ea.d(ei,{baggageUtils:()=>el,hrTime:()=>eC._5,timeInputToHrTime:()=>eC.KJ,W3CTraceContextPropagator:()=>e0,callWithTimeout:()=>ti.o,AlwaysOnSampler:()=>e4,isTracingSuppressed:()=>isTracingSuppressed,AlwaysOffSampler:()=>e3,loggingErrorHandler:()=>eE.o,DEFAULT_ATTRIBUTE_COUNT_LIMIT:()=>e6.fv,deleteRPCMetadata:()=>deleteRPCMetadata,suppressTracing:()=>suppressTracing,RPCType:()=>es,RandomIdGenerator:()=>eO,setRPCMetadata:()=>setRPCMetadata,unrefTimer:()=>e$.K,hrTimeToMilliseconds:()=>eC.JU,TRACE_PARENT_HEADER:()=>eY,unsuppressTracing:()=>unsuppressTracing,globalErrorHandler:()=>ek.s,_globalThis:()=>ex,getEnvWithoutDefaults:()=>eA.w,ParentBasedSampler:()=>e5,millisToHrTime:()=>eC.lg,isTimeInputHrTime:()=>eC.VL,otperformance:()=>eM.u,internal:()=>tl,urlMatches:()=>urlMatches,BindOnceFuture:()=>tn.I,DEFAULT_ENVIRONMENT:()=>e6.Uz,SDK_INFO:()=>eD.q,isWrapped:()=>isWrapped,isAttributeKey:()=>eS.oU,TraceState:()=>eJ,hexToBase64:()=>hexToBase64,TRACE_STATE_HEADER:()=>eQ,getEnv:()=>eA._,getTimeOrigin:()=>eC.uc,TraceIdRatioBasedSampler:()=>e8,hrTimeDuration:()=>eC.W5,DEFAULT_SPAN_ATTRIBUTE_PER_EVENT_COUNT_LIMIT:()=>e6.h9,isTimeInput:()=>eC.Ir,hexToBinary:()=>hexToBinary,DEFAULT_SPAN_ATTRIBUTE_PER_LINK_COUNT_LIMIT:()=>e6.V,parseTraceParent:()=>parseTraceParent,isUrlIgnored:()=>isUrlIgnored,parseEnvironment:()=>e6.Nq,setGlobalErrorHandler:()=>ek.u,DEFAULT_ATTRIBUTE_VALUE_LENGTH_LIMIT:()=>e6.aE,isAttributeValue:()=>eS.m,CompositePropagator:()=>eL,hrTimeToMicroseconds:()=>eC.w_,AnchoredClock:()=>ew,TracesSamplerValues:()=>e7.R,ExportResultCode:()=>eT.V,hrTimeToNanoseconds:()=>eC.u5,merge:()=>e9.h,TimeoutError:()=>ti.M,W3CBaggagePropagator:()=>ev,addHrTimes:()=>eC.mw,getRPCMetadata:()=>getRPCMetadata,sanitizeAttributes:()=>eS.L,hrTimeToTimeStamp:()=>eC.tq,VERSION:()=>ta.x});var es,el={};ea.r(el),ea.d(el,{getKeyPairs:()=>getKeyPairs,parseKeyPairsIntoRecord:()=>parseKeyPairsIntoRecord,parsePairKeyValue:()=>parsePairKeyValue,serializeKeyPairs:()=>serializeKeyPairs});var ec=ea(47824),ed=ea(73122),eu=(0,ed.n)("OpenTelemetry SDK Context Key SUPPRESS_TRACING");function suppressTracing(L){return L.setValue(eu,!0)}function unsuppressTracing(L){return L.deleteValue(eu)}function isTracingSuppressed(L){return!0===L.getValue(eu)}var ep="=",eh=";",ef=",",em="baggage",eg=180,ey=4096,eb=8192,e_=ea(99229),__read=function(L,ei){var ea="function"==typeof Symbol&&L[Symbol.iterator];if(!ea)return L;var es,el,ec=ea.call(L),ed=[];try{for(;(void 0===ei||ei-- >0)&&!(es=ec.next()).done;)ed.push(es.value)}catch(L){el={error:L}}finally{try{es&&!es.done&&(ea=ec.return)&&ea.call(ec)}finally{if(el)throw el.error}}return ed};function serializeKeyPairs(L){return L.reduce(function(L,ei){var ea=""+L+(""!==L?ef:"")+ei;return ea.length>eb?L:ea},"")}function getKeyPairs(L){return L.getAllEntries().map(function(L){var ei=__read(L,2),ea=ei[0],es=ei[1],el=encodeURIComponent(ea)+"="+encodeURIComponent(es.value);return void 0!==es.metadata&&(el+=eh+es.metadata.toString()),el})}function parsePairKeyValue(L){var ei,ea=L.split(eh);if(!(ea.length<=0)){var es=ea.shift();if(es){var el=es.indexOf(ep);if(!(el<=0)){var ec=decodeURIComponent(es.substring(0,el).trim()),ed=decodeURIComponent(es.substring(el+1).trim());return ea.length>0&&(ei=(0,e_.B)(ea.join(eh))),{key:ec,value:ed,metadata:ei}}}}}function parseKeyPairsIntoRecord(L){return"string"!=typeof L||0===L.length?{}:L.split(ef).map(function(L){return parsePairKeyValue(L)}).filter(function(L){return void 0!==L&&L.value.length>0}).reduce(function(L,ei){return L[ei.key]=ei.value,L},{})}var ev=function(){function W3CBaggagePropagator(){}return W3CBaggagePropagator.prototype.inject=function(L,ei,ea){var es=ec.$.getBaggage(L);if(!(!es||isTracingSuppressed(L))){var el=getKeyPairs(es).filter(function(L){return L.length<=ey}).slice(0,eg),ed=serializeKeyPairs(el);ed.length>0&&ea.set(ei,em,ed)}},W3CBaggagePropagator.prototype.extract=function(L,ei,ea){var es=ea.get(ei,em),el=Array.isArray(es)?es.join(ef):es;if(!el)return L;var ed={};return 0===el.length||(el.split(ef).forEach(function(L){var ei=parsePairKeyValue(L);if(ei){var ea={value:ei.value};ei.metadata&&(ea.metadata=ei.metadata),ed[ei.key]=ea}}),0===Object.entries(ed).length)?L:ec.$.setBaggage(L,ec.$.createBaggage(ed))},W3CBaggagePropagator.prototype.fields=function(){return[em]},W3CBaggagePropagator}(),ew=function(){function AnchoredClock(L,ei){this._monotonicClock=ei,this._epochMillis=L.now(),this._performanceMillis=ei.now()}return AnchoredClock.prototype.now=function(){var L=this._monotonicClock.now()-this._performanceMillis;return this._epochMillis+L},AnchoredClock}(),eS=ea(54807),ek=ea(73647),eE=ea(8799),eC=ea(80647);function intValue(L){return L>=48&&L<=57?L-48:L>=97&&L<=102?L-87:L-55}function hexToBinary(L){for(var ei=new Uint8Array(L.length/2),ea=0,es=0;es<L.length;es+=2){var el=intValue(L.charCodeAt(es)),ec=intValue(L.charCodeAt(es+1));ei[ea++]=el<<4|ec}return ei}var eT=ea(30245),eA=ea(39850),ex="object"==typeof globalThis?globalThis:global;function hexToBase64(L){return Buffer.from(hexToBinary(L)).toString("base64")}var eR=8,eP=16,eO=function(){return function(){this.generateTraceId=getIdGenerator(eP),this.generateSpanId=getIdGenerator(eR)}}(),eI=Buffer.allocUnsafe(eP);function getIdGenerator(L){return function(){for(var ei=0;ei<L/4;ei++)eI.writeUInt32BE(0x100000000*Math.random()>>>0,4*ei);for(var ei=0;ei<L;ei++)if(eI[ei]>0)break;else ei===L-1&&(eI[L-1]=1);return eI.toString("hex",0,L)}}var eM=ea(11001),eD=ea(63524),e$=ea(90975),eN=ea(57812),__values=function(L){var ei="function"==typeof Symbol&&Symbol.iterator,ea=ei&&L[ei],es=0;if(ea)return ea.call(L);if(L&&"number"==typeof L.length)return{next:function(){return L&&es>=L.length&&(L=void 0),{value:L&&L[es++],done:!L}}};throw TypeError(ei?"Object is not iterable.":"Symbol.iterator is not defined.")},eL=function(){function CompositePropagator(L){var ei;void 0===L&&(L={}),this._propagators=null!=(ei=L.propagators)?ei:[],this._fields=Array.from(new Set(this._propagators.map(function(L){return"function"==typeof L.fields?L.fields():[]}).reduce(function(L,ei){return L.concat(ei)},[])))}return CompositePropagator.prototype.inject=function(L,ei,ea){var es,el;try{for(var ec=__values(this._propagators),ed=ec.next();!ed.done;ed=ec.next()){var eu=ed.value;try{eu.inject(L,ei,ea)}catch(L){eN.s.warn("Failed to inject with "+eu.constructor.name+". Err: "+L.message)}}}catch(L){es={error:L}}finally{try{ed&&!ed.done&&(el=ec.return)&&el.call(ec)}finally{if(es)throw es.error}}},CompositePropagator.prototype.extract=function(L,ei,ea){return this._propagators.reduce(function(L,es){try{return es.extract(L,ei,ea)}catch(L){eN.s.warn("Failed to inject with "+es.constructor.name+". Err: "+L.message)}return L},L)},CompositePropagator.prototype.fields=function(){return this._fields.slice()},CompositePropagator}(),ej=ea(96453),eU=ea(58988),eF=ea(66678),eB="[_0-9a-z-*/]",eW=RegExp("^(?:[a-z]"+eB+"{0,255}|"+("[a-z0-9]"+eB+"{0,240}@[a-z]"+eB)+"{0,13})$"),eH=/^[ -~]{0,255}[!-~]$/,eq=/,|=/;function validateKey(L){return eW.test(L)}function validateValue(L){return eH.test(L)&&!eq.test(L)}var eG=32,ez=512,eV=",",eK="=",eJ=function(){function TraceState(L){this._internalState=new Map,L&&this._parse(L)}return TraceState.prototype.set=function(L,ei){var ea=this._clone();return ea._internalState.has(L)&&ea._internalState.delete(L),ea._internalState.set(L,ei),ea},TraceState.prototype.unset=function(L){var ei=this._clone();return ei._internalState.delete(L),ei},TraceState.prototype.get=function(L){return this._internalState.get(L)},TraceState.prototype.serialize=function(){var L=this;return this._keys().reduce(function(ei,ea){return ei.push(ea+eK+L.get(ea)),ei},[]).join(eV)},TraceState.prototype._parse=function(L){!(L.length>ez)&&(this._internalState=L.split(eV).reverse().reduce(function(L,ei){var ea=ei.trim(),es=ea.indexOf(eK);if(-1!==es){var el=ea.slice(0,es),ec=ea.slice(es+1,ei.length);validateKey(el)&&validateValue(ec)&&L.set(el,ec)}return L},new Map),this._internalState.size>eG&&(this._internalState=new Map(Array.from(this._internalState.entries()).reverse().slice(0,eG))))},TraceState.prototype._keys=function(){return Array.from(this._internalState.keys()).reverse()},TraceState.prototype._clone=function(){var L=new TraceState;return L._internalState=new Map(this._internalState),L},TraceState}(),eY="traceparent",eQ="tracestate",eZ="00",eX=RegExp("^\\s?((?!ff)[\\da-f]{2})-((?![0]{32})[\\da-f]{32})-((?![0]{16})[\\da-f]{16})-([\\da-f]{2})(-.*)?\\s?$");function parseTraceParent(L){var ei=eX.exec(L);return!ei||"00"===ei[1]&&ei[5]?null:{traceId:ei[2],spanId:ei[3],traceFlags:parseInt(ei[4],16)}}var e0=function(){function W3CTraceContextPropagator(){}return W3CTraceContextPropagator.prototype.inject=function(L,ei,ea){var es=ej.u.getSpanContext(L);if(!(!es||isTracingSuppressed(L))&&(0,eU.YA)(es)){var el=eZ+"-"+es.traceId+"-"+es.spanId+"-0"+Number(es.traceFlags||eF.X.NONE).toString(16);ea.set(ei,eY,el),es.traceState&&ea.set(ei,eQ,es.traceState.serialize())}},W3CTraceContextPropagator.prototype.extract=function(L,ei,ea){var es=ea.get(ei,eY);if(!es)return L;var el=Array.isArray(es)?es[0]:es;if("string"!=typeof el)return L;var ec=parseTraceParent(el);if(!ec)return L;ec.isRemote=!0;var ed=ea.get(ei,eQ);if(ed){var eu=Array.isArray(ed)?ed.join(","):ed;ec.traceState=new eJ("string"==typeof eu?eu:void 0)}return ej.u.setSpanContext(L,ec)},W3CTraceContextPropagator.prototype.fields=function(){return[eY,eQ]},W3CTraceContextPropagator}(),e1=(0,ed.n)("OpenTelemetry SDK Context Key RPC_METADATA");function setRPCMetadata(L,ei){return L.setValue(e1,ei)}function deleteRPCMetadata(L){return L.deleteValue(e1)}function getRPCMetadata(L){return L.getValue(e1)}!function(L){L.HTTP="http"}(es||(es={}));var e2=ea(31531),e3=function(){function AlwaysOffSampler(){}return AlwaysOffSampler.prototype.shouldSample=function(){return{decision:e2.i.NOT_RECORD}},AlwaysOffSampler.prototype.toString=function(){return"AlwaysOffSampler"},AlwaysOffSampler}(),e4=function(){function AlwaysOnSampler(){}return AlwaysOnSampler.prototype.shouldSample=function(){return{decision:e2.i.RECORD_AND_SAMPLED}},AlwaysOnSampler.prototype.toString=function(){return"AlwaysOnSampler"},AlwaysOnSampler}(),e5=function(){function ParentBasedSampler(L){var ei,ea,es,el;this._root=L.root,this._root||((0,ek.s)(Error("ParentBasedSampler must have a root sampler configured")),this._root=new e4),this._remoteParentSampled=null!=(ei=L.remoteParentSampled)?ei:new e4,this._remoteParentNotSampled=null!=(ea=L.remoteParentNotSampled)?ea:new e3,this._localParentSampled=null!=(es=L.localParentSampled)?es:new e4,this._localParentNotSampled=null!=(el=L.localParentNotSampled)?el:new e3}return ParentBasedSampler.prototype.shouldSample=function(L,ei,ea,es,el,ec){var ed=ej.u.getSpanContext(L);return ed&&(0,eU.YA)(ed)?ed.isRemote?ed.traceFlags&eF.X.SAMPLED?this._remoteParentSampled.shouldSample(L,ei,ea,es,el,ec):this._remoteParentNotSampled.shouldSample(L,ei,ea,es,el,ec):ed.traceFlags&eF.X.SAMPLED?this._localParentSampled.shouldSample(L,ei,ea,es,el,ec):this._localParentNotSampled.shouldSample(L,ei,ea,es,el,ec):this._root.shouldSample(L,ei,ea,es,el,ec)},ParentBasedSampler.prototype.toString=function(){return"ParentBased{root="+this._root.toString()+", remoteParentSampled="+this._remoteParentSampled.toString()+", remoteParentNotSampled="+this._remoteParentNotSampled.toString()+", localParentSampled="+this._localParentSampled.toString()+", localParentNotSampled="+this._localParentNotSampled.toString()+"}"},ParentBasedSampler}(),e8=function(){function TraceIdRatioBasedSampler(L){void 0===L&&(L=0),this._ratio=L,this._ratio=this._normalize(L),this._upperBound=Math.floor(0xffffffff*this._ratio)}return TraceIdRatioBasedSampler.prototype.shouldSample=function(L,ei){return{decision:(0,eU.hX)(ei)&&this._accumulate(ei)<this._upperBound?e2.i.RECORD_AND_SAMPLED:e2.i.NOT_RECORD}},TraceIdRatioBasedSampler.prototype.toString=function(){return"TraceIdRatioBased{"+this._ratio+"}"},TraceIdRatioBasedSampler.prototype._normalize=function(L){return"number"!=typeof L||isNaN(L)?0:L>=1?1:L<=0?0:L},TraceIdRatioBasedSampler.prototype._accumulate=function(L){for(var ei=0,ea=0;ea<L.length/8;ea++){var es=8*ea;ei=(ei^parseInt(L.slice(es,es+8),16))>>>0}return ei},TraceIdRatioBasedSampler}(),e6=ea(73955),e9=ea(41586),e7=ea(98557),ti=ea(42881),url_values=function(L){var ei="function"==typeof Symbol&&Symbol.iterator,ea=ei&&L[ei],es=0;if(ea)return ea.call(L);if(L&&"number"==typeof L.length)return{next:function(){return L&&es>=L.length&&(L=void 0),{value:L&&L[es++],done:!L}}};throw TypeError(ei?"Object is not iterable.":"Symbol.iterator is not defined.")};function urlMatches(L,ei){return"string"==typeof ei?L===ei:!!L.match(ei)}function isUrlIgnored(L,ei){var ea,es;if(!ei)return!1;try{for(var el=url_values(ei),ec=el.next();!ec.done;ec=el.next()){var ed=ec.value;if(urlMatches(L,ed))return!0}}catch(L){ea={error:L}}finally{try{ec&&!ec.done&&(es=el.return)&&es.call(el)}finally{if(ea)throw ea.error}}return!1}function isWrapped(L){return"function"==typeof L&&"function"==typeof L.__original&&"function"==typeof L.__unwrap&&!0===L.__wrapped}var tn=ea(62717),ta=ea(25068),ts=ea(49839),tl={_export:function(L,ei){return new Promise(function(ea){ts._.with(suppressTracing(ts._.active()),function(){L.export(ei,function(L){ea(L)})})})}}},39850(L,ei,ea){"use strict";ea.d(ei,{_:()=>getEnv,w:()=>getEnvWithoutDefaults});var es=ea(73955);function getEnv(){var L=(0,es.Nq)(process.env);return Object.assign({},es.Uz,L)}function getEnvWithoutDefaults(){return(0,es.Nq)(process.env)}},11001(L,ei,ea){"use strict";ea.d(ei,{u:()=>es});var es=ea(82987).performance},63524(L,ei,ea){"use strict";ea.d(ei,{q:()=>ed});var es,el=ea(25068),ec=ea(58819),ed=((es={})[ec._2.TELEMETRY_SDK_NAME]="opentelemetry",es[ec._2.PROCESS_RUNTIME_NAME]="node",es[ec._2.TELEMETRY_SDK_LANGUAGE]=ec.wP.NODEJS,es[ec._2.TELEMETRY_SDK_VERSION]=el.x,es)},90975(L,ei,ea){"use strict";function unrefTimer(L){L.unref()}ea.d(ei,{K:()=>unrefTimer})},62717(L,ei,ea){"use strict";ea.d(ei,{I:()=>el});var es=function(){function Deferred(){var L=this;this._promise=new Promise(function(ei,ea){L._resolve=ei,L._reject=ea})}return Object.defineProperty(Deferred.prototype,"promise",{get:function(){return this._promise},enumerable:!1,configurable:!0}),Deferred.prototype.resolve=function(L){this._resolve(L)},Deferred.prototype.reject=function(L){this._reject(L)},Deferred}(),__read=function(L,ei){var ea="function"==typeof Symbol&&L[Symbol.iterator];if(!ea)return L;var es,el,ec=ea.call(L),ed=[];try{for(;(void 0===ei||ei-- >0)&&!(es=ec.next()).done;)ed.push(es.value)}catch(L){el={error:L}}finally{try{es&&!es.done&&(ea=ec.return)&&ea.call(ec)}finally{if(el)throw el.error}}return ed},__spreadArray=function(L,ei,ea){if(ea||2==arguments.length)for(var es,el=0,ec=ei.length;el<ec;el++)!es&&el in ei||(es||(es=Array.prototype.slice.call(ei,0,el)),es[el]=ei[el]);return L.concat(es||Array.prototype.slice.call(ei))},el=function(){function BindOnceFuture(L,ei){this._callback=L,this._that=ei,this._isCalled=!1,this._deferred=new es}return Object.defineProperty(BindOnceFuture.prototype,"isCalled",{get:function(){return this._isCalled},enumerable:!1,configurable:!0}),Object.defineProperty(BindOnceFuture.prototype,"promise",{get:function(){return this._deferred.promise},enumerable:!1,configurable:!0}),BindOnceFuture.prototype.call=function(){for(var L,ei=this,ea=[],es=0;es<arguments.length;es++)ea[es]=arguments[es];if(!this._isCalled){this._isCalled=!0;try{Promise.resolve((L=this._callback).call.apply(L,__spreadArray([this._that],__read(ea),!1))).then(function(L){return ei._deferred.resolve(L)},function(L){return ei._deferred.reject(L)})}catch(L){this._deferred.reject(L)}}return this._deferred.promise},BindOnceFuture}()},73955(L,ei,ea){"use strict";ea.d(ei,{Nq:()=>parseEnvironment,Uz:()=>ey,V:()=>eg,aE:()=>eh,fv:()=>ef,h9:()=>em});var es=ea(14484),el=ea(98557),ec=",",ed=["OTEL_SDK_DISABLED"];function isEnvVarABoolean(L){return ed.indexOf(L)>-1}var eu=["OTEL_BSP_EXPORT_TIMEOUT","OTEL_BSP_MAX_EXPORT_BATCH_SIZE","OTEL_BSP_MAX_QUEUE_SIZE","OTEL_BSP_SCHEDULE_DELAY","OTEL_BLRP_EXPORT_TIMEOUT","OTEL_BLRP_MAX_EXPORT_BATCH_SIZE","OTEL_BLRP_MAX_QUEUE_SIZE","OTEL_BLRP_SCHEDULE_DELAY","OTEL_ATTRIBUTE_VALUE_LENGTH_LIMIT","OTEL_ATTRIBUTE_COUNT_LIMIT","OTEL_SPAN_ATTRIBUTE_VALUE_LENGTH_LIMIT","OTEL_SPAN_ATTRIBUTE_COUNT_LIMIT","OTEL_LOGRECORD_ATTRIBUTE_VALUE_LENGTH_LIMIT","OTEL_LOGRECORD_ATTRIBUTE_COUNT_LIMIT","OTEL_SPAN_EVENT_COUNT_LIMIT","OTEL_SPAN_LINK_COUNT_LIMIT","OTEL_SPAN_ATTRIBUTE_PER_EVENT_COUNT_LIMIT","OTEL_SPAN_ATTRIBUTE_PER_LINK_COUNT_LIMIT","OTEL_EXPORTER_OTLP_TIMEOUT","OTEL_EXPORTER_OTLP_TRACES_TIMEOUT","OTEL_EXPORTER_OTLP_METRICS_TIMEOUT","OTEL_EXPORTER_OTLP_LOGS_TIMEOUT","OTEL_EXPORTER_JAEGER_AGENT_PORT"];function isEnvVarANumber(L){return eu.indexOf(L)>-1}var ep=["OTEL_NO_PATCH_MODULES","OTEL_PROPAGATORS"];function isEnvVarAList(L){return ep.indexOf(L)>-1}var eh=1/0,ef=128,em=128,eg=128,ey={OTEL_SDK_DISABLED:!1,CONTAINER_NAME:"",ECS_CONTAINER_METADATA_URI_V4:"",ECS_CONTAINER_METADATA_URI:"",HOSTNAME:"",KUBERNETES_SERVICE_HOST:"",NAMESPACE:"",OTEL_BSP_EXPORT_TIMEOUT:3e4,OTEL_BSP_MAX_EXPORT_BATCH_SIZE:512,OTEL_BSP_MAX_QUEUE_SIZE:2048,OTEL_BSP_SCHEDULE_DELAY:5e3,OTEL_BLRP_EXPORT_TIMEOUT:3e4,OTEL_BLRP_MAX_EXPORT_BATCH_SIZE:512,OTEL_BLRP_MAX_QUEUE_SIZE:2048,OTEL_BLRP_SCHEDULE_DELAY:5e3,OTEL_EXPORTER_JAEGER_AGENT_HOST:"",OTEL_EXPORTER_JAEGER_AGENT_PORT:6832,OTEL_EXPORTER_JAEGER_ENDPOINT:"",OTEL_EXPORTER_JAEGER_PASSWORD:"",OTEL_EXPORTER_JAEGER_USER:"",OTEL_EXPORTER_OTLP_ENDPOINT:"",OTEL_EXPORTER_OTLP_TRACES_ENDPOINT:"",OTEL_EXPORTER_OTLP_METRICS_ENDPOINT:"",OTEL_EXPORTER_OTLP_LOGS_ENDPOINT:"",OTEL_EXPORTER_OTLP_HEADERS:"",OTEL_EXPORTER_OTLP_TRACES_HEADERS:"",OTEL_EXPORTER_OTLP_METRICS_HEADERS:"",OTEL_EXPORTER_OTLP_LOGS_HEADERS:"",OTEL_EXPORTER_OTLP_TIMEOUT:1e4,OTEL_EXPORTER_OTLP_TRACES_TIMEOUT:1e4,OTEL_EXPORTER_OTLP_METRICS_TIMEOUT:1e4,OTEL_EXPORTER_OTLP_LOGS_TIMEOUT:1e4,OTEL_EXPORTER_ZIPKIN_ENDPOINT:"http://localhost:9411/api/v2/spans",OTEL_LOG_LEVEL:es.u.INFO,OTEL_NO_PATCH_MODULES:[],OTEL_PROPAGATORS:["tracecontext","baggage"],OTEL_RESOURCE_ATTRIBUTES:"",OTEL_SERVICE_NAME:"",OTEL_ATTRIBUTE_VALUE_LENGTH_LIMIT:eh,OTEL_ATTRIBUTE_COUNT_LIMIT:ef,OTEL_SPAN_ATTRIBUTE_VALUE_LENGTH_LIMIT:eh,OTEL_SPAN_ATTRIBUTE_COUNT_LIMIT:ef,OTEL_LOGRECORD_ATTRIBUTE_VALUE_LENGTH_LIMIT:eh,OTEL_LOGRECORD_ATTRIBUTE_COUNT_LIMIT:ef,OTEL_SPAN_EVENT_COUNT_LIMIT:128,OTEL_SPAN_LINK_COUNT_LIMIT:128,OTEL_SPAN_ATTRIBUTE_PER_EVENT_COUNT_LIMIT:em,OTEL_SPAN_ATTRIBUTE_PER_LINK_COUNT_LIMIT:eg,OTEL_TRACES_EXPORTER:"",OTEL_TRACES_SAMPLER:el.R.ParentBasedAlwaysOn,OTEL_TRACES_SAMPLER_ARG:"",OTEL_LOGS_EXPORTER:"",OTEL_EXPORTER_OTLP_INSECURE:"",OTEL_EXPORTER_OTLP_TRACES_INSECURE:"",OTEL_EXPORTER_OTLP_METRICS_INSECURE:"",OTEL_EXPORTER_OTLP_LOGS_INSECURE:"",OTEL_EXPORTER_OTLP_CERTIFICATE:"",OTEL_EXPORTER_OTLP_TRACES_CERTIFICATE:"",OTEL_EXPORTER_OTLP_METRICS_CERTIFICATE:"",OTEL_EXPORTER_OTLP_LOGS_CERTIFICATE:"",OTEL_EXPORTER_OTLP_COMPRESSION:"",OTEL_EXPORTER_OTLP_TRACES_COMPRESSION:"",OTEL_EXPORTER_OTLP_METRICS_COMPRESSION:"",OTEL_EXPORTER_OTLP_LOGS_COMPRESSION:"",OTEL_EXPORTER_OTLP_CLIENT_KEY:"",OTEL_EXPORTER_OTLP_TRACES_CLIENT_KEY:"",OTEL_EXPORTER_OTLP_METRICS_CLIENT_KEY:"",OTEL_EXPORTER_OTLP_LOGS_CLIENT_KEY:"",OTEL_EXPORTER_OTLP_CLIENT_CERTIFICATE:"",OTEL_EXPORTER_OTLP_TRACES_CLIENT_CERTIFICATE:"",OTEL_EXPORTER_OTLP_METRICS_CLIENT_CERTIFICATE:"",OTEL_EXPORTER_OTLP_LOGS_CLIENT_CERTIFICATE:"",OTEL_EXPORTER_OTLP_PROTOCOL:"http/protobuf",OTEL_EXPORTER_OTLP_TRACES_PROTOCOL:"http/protobuf",OTEL_EXPORTER_OTLP_METRICS_PROTOCOL:"http/protobuf",OTEL_EXPORTER_OTLP_LOGS_PROTOCOL:"http/protobuf",OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE:"cumulative"};function parseBoolean(L,ei,ea){if(void 0!==ea[L]){var es=String(ea[L]);ei[L]="true"===es.toLowerCase()}}function parseNumber(L,ei,ea,es,el){if(void 0===es&&(es=-1/0),void 0===el&&(el=1/0),void 0!==ea[L]){var ec=Number(ea[L]);isNaN(ec)||(ec<es?ei[L]=es:ec>el?ei[L]=el:ei[L]=ec)}}function parseStringList(L,ei,ea,es){void 0===es&&(es=ec);var el=ea[L];"string"==typeof el&&(ei[L]=el.split(es).map(function(L){return L.trim()}))}var eb={ALL:es.u.ALL,VERBOSE:es.u.VERBOSE,DEBUG:es.u.DEBUG,INFO:es.u.INFO,WARN:es.u.WARN,ERROR:es.u.ERROR,NONE:es.u.NONE};function setLogLevelFromEnv(L,ei,ea){var es=ea[L];if("string"==typeof es){var el=eb[es.toUpperCase()];null!=el&&(ei[L]=el)}}function parseEnvironment(L){var ei={};for(var ea in ey){var es=ea;if("OTEL_LOG_LEVEL"===es)setLogLevelFromEnv(es,ei,L);else if(isEnvVarABoolean(es))parseBoolean(es,ei,L);else if(isEnvVarANumber(es))parseNumber(es,ei,L);else if(isEnvVarAList(es))parseStringList(es,ei,L);else{var el=L[es];null!=el&&(ei[es]=String(el))}}return ei}},41586(L,ei,ea){"use strict";ea.d(ei,{h:()=>merge});var es="[object Object]",el="[object Null]",ec="[object Undefined]",ed=Function.prototype.toString,eu=ed.call(Object),ep=overArg(Object.getPrototypeOf,Object),eh=Object.prototype,ef=eh.hasOwnProperty,em=Symbol?Symbol.toStringTag:void 0,eg=eh.toString;function overArg(L,ei){return function(ea){return L(ei(ea))}}function isPlainObject(L){if(!isObjectLike(L)||baseGetTag(L)!==es)return!1;var ei=ep(L);if(null===ei)return!0;var ea=ef.call(ei,"constructor")&&ei.constructor;return"function"==typeof ea&&ea instanceof ea&&ed.call(ea)===eu}function isObjectLike(L){return null!=L&&"object"==typeof L}function baseGetTag(L){return null==L?void 0===L?ec:el:em&&em in Object(L)?getRawTag(L):objectToString(L)}function getRawTag(L){var ei=ef.call(L,em),ea=L[em],es=!1;try{L[em]=void 0,es=!0}catch(L){}var el=eg.call(L);return es&&(ei?L[em]=ea:delete L[em]),el}function objectToString(L){return eg.call(L)}var ey=20;function merge(){for(var L=[],ei=0;ei<arguments.length;ei++)L[ei]=arguments[ei];for(var ea=L.shift(),es=new WeakMap;L.length>0;)ea=mergeTwoObjects(ea,L.shift(),0,es);return ea}function takeValue(L){return isArray(L)?L.slice():L}function mergeTwoObjects(L,ei,ea,es){if(void 0===ea&&(ea=0),!(ea>ey)){if(ea++,isPrimitive(L)||isPrimitive(ei)||isFunction(ei))el=takeValue(ei);else if(isArray(L)){if(el=L.slice(),isArray(ei))for(var el,ec=0,ed=ei.length;ec<ed;ec++)el.push(takeValue(ei[ec]));else if(isObject(ei))for(var eu=Object.keys(ei),ec=0,ed=eu.length;ec<ed;ec++){var ep=eu[ec];el[ep]=takeValue(ei[ep])}}else if(isObject(L))if(isObject(ei)){if(!shouldMerge(L,ei))return ei;el=Object.assign({},L);for(var eu=Object.keys(ei),ec=0,ed=eu.length;ec<ed;ec++){var ep=eu[ec],eh=ei[ep];if(isPrimitive(eh))void 0===eh?delete el[ep]:el[ep]=eh;else{var ef=el[ep],em=eh;if(wasObjectReferenced(L,ep,es)||wasObjectReferenced(ei,ep,es))delete el[ep];else{if(isObject(ef)&&isObject(em)){var eg=es.get(ef)||[],eb=es.get(em)||[];eg.push({obj:L,key:ep}),eb.push({obj:ei,key:ep}),es.set(ef,eg),es.set(em,eb)}el[ep]=mergeTwoObjects(el[ep],eh,ea,es)}}}}else el=ei;return el}}function wasObjectReferenced(L,ei,ea){for(var es=ea.get(L[ei])||[],el=0,ec=es.length;el<ec;el++){var ed=es[el];if(ed.key===ei&&ed.obj===L)return!0}return!1}function isArray(L){return Array.isArray(L)}function isFunction(L){return"function"==typeof L}function isObject(L){return!isPrimitive(L)&&!isArray(L)&&!isFunction(L)&&"object"==typeof L}function isPrimitive(L){return"string"==typeof L||"number"==typeof L||"boolean"==typeof L||void 0===L||L instanceof Date||L instanceof RegExp||null===L}function shouldMerge(L,ei){return!!isPlainObject(L)&&!!isPlainObject(ei)}},98557(L,ei,ea){"use strict";var es;ea.d(ei,{R:()=>es}),function(L){L.AlwaysOff="always_off",L.AlwaysOn="always_on",L.ParentBasedAlwaysOff="parentbased_always_off",L.ParentBasedAlwaysOn="parentbased_always_on",L.ParentBasedTraceIdRatio="parentbased_traceidratio",L.TraceIdRatio="traceidratio"}(es||(es={}))},42881(L,ei,ea){"use strict";ea.d(ei,{M:()=>el,o:()=>callWithTimeout});var es=function(){var extendStatics=function(L,ei){return(extendStatics=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(L,ei){L.__proto__=ei}||function(L,ei){for(var ea in ei)Object.prototype.hasOwnProperty.call(ei,ea)&&(L[ea]=ei[ea])})(L,ei)};return function(L,ei){if("function"!=typeof ei&&null!==ei)throw TypeError("Class extends value "+String(ei)+" is not a constructor or null");function __(){this.constructor=L}extendStatics(L,ei),L.prototype=null===ei?Object.create(ei):(__.prototype=ei.prototype,new __)}}(),el=function(L){function TimeoutError(ei){var ea=L.call(this,ei)||this;return Object.setPrototypeOf(ea,TimeoutError.prototype),ea}return es(TimeoutError,L),TimeoutError}(Error);function callWithTimeout(L,ei){var ea;return Promise.race([L,new Promise(function(L,es){ea=setTimeout(function(){es(new el("Operation timed out."))},ei)})]).then(function(L){return clearTimeout(ea),L},function(L){throw clearTimeout(ea),L})}},25068(L,ei,ea){"use strict";ea.d(ei,{x:()=>es});var es="1.24.1"},36042(L,ei,ea){"use strict";var es,el,ec,ed,eu,ep,eh,ef;ea.d(ei,{fL:()=>ef,p2:()=>ey,_V:()=>es,o_:()=>ep,m7:()=>eg,G_:()=>ec,aS:()=>ed,rL:()=>eh,g_:()=>em,H_:()=>eu});let em={TARGET:"target",NAMESPACE:"namespace",ENV_NAME:"envname",HOST_IP:"net.host.ip",HOST_NAME:"net.host.name",HOST_PORT:"net.host.port",CONTAINER_NAME:"container.name",SET_NAME:"set.name",SERVICE_NAME:"service.name",SERVER_OWNER:"server.owner",TENANT_ID:"tps.tenant.id",CMDB_ID:"cmdb.module.id",LANGUAGE:"telemetry.sdk.language",SDK_NAME:"telemetry.sdk.name",SDK_VERSION:"telemetry.sdk.version"},eg={TRPC_CALLEE_SERVICE:"trpc.callee_service",TRPC_CALLEE_METHOD:"trpc.callee_method",TRPC_CALLER_SERVICE:"trpc.caller_service",TRPC_CALLER_METHOD:"trpc.caller_method",TRPC_NAMESPACE:"trpc.namespace",TRPC_ENV_NAME:"trpc.envname",TRPC_STATUS_CODE:"trpc.status_code",TRPC_STATUS_MSG:"trpc.status_msg",TRPC_STATUS_TYPE:"trpc.status_type",CALLEE_SERVICE:"callee_service",CALLEE_METHOD:"callee_method",CALLER_SERVICE:"caller_service",CALLER_METHOD:"caller_method",CALLEE_SYSTEM_NAME:"callee.system.name",CALLEE_SYSTEM_CATEGORY:"callee.system.category",CALLEE_SYSTEM_PROTOCOL:"callee.system.protocol",CALLER_SYSTEM_NAME:"caller.system.name",CALLER_SYSTEM_CATEGORY:"caller.system.category",CALLER_SYSTEM_PROTOCOL:"caller.system.protocol"};!function(L){L.ClientStartedTotal="rpc_client_started_total",L.ClientHandledTotal="rpc_client_handled_total",L.ClientHandledSeconds="rpc_client_handled_seconds",L.ServerStartedTotal="rpc_server_started_total",L.ServerHandledTotal="rpc_server_handled_total",L.ServerHandledSeconds="rpc_server_handled_seconds"}(es||(es={})),function(L){L.ProcessCpuUsage="process_cpu_usage",L.ProcessResidentMemoryUsage="process_resident_memory_usage",L.ProcessNetworkInBytes="process_network_in_bytes",L.ProcessNetworkOutBytes="process_network_out_bytes",L.ProcessBlockReadBytes="process_block_read_bytes",L.ProcessBlockWriteBytes="process_block_write_bytes",L.ProcessContainerNum="process_container_num",L.ProcessGpuUsage="process_gpu_usage",L.ProcessVideoMemoryUsage="process_video_memory_usage",L.ProcessDiskUsage="process_disk_usage",L.ProcessTcpNum="process_tcp_num",L.ProcessUdpNum="process_udp_num",L.ProcessMaxFds="process_max_fds",L.ProcessOpenFds="process_open_fds",L.ProcessPidNum="process_pid_num",L.ProcessDiskFree="process_disk_free",L.ProcessDiskUsed="process_disk_used",L.ProcessDiskUsedFraction="process_disk_used_fraction",L.ProcessCpuCores="process_cpu_cores"}(el||(el={})),function(L){L.CallerService="caller_service",L.CallerMethod="caller_method",L.CallerConSetid="caller_con_setid",L.CallerServer="caller_server",L.CalleeServer="callee_server",L.CalleeService="callee_service",L.CalleeMethod="callee_method",L.CalleeConSetid="callee_con_setid",L.CallerGroup="caller_group",L.CodeType="code_type",L.Code="code",L.UserExt1="user_ext1",L.UserExt2="user_ext2",L.UserExt3="user_ext3",L.CalleeIp="callee_ip",L.CalleeContainer="callee_container",L.CallerIp="caller_ip",L.CallerContainer="caller_container"}(ec||(ec={})),function(L){L.clientMetrics="client_metrics",L.serverMetrics="server_metrics"}(ed||(ed={})),function(L){L.Target="target",L.EnvName="env_name",L.Namespace="namespace",L.ServiceName="service_name",L.ContainerName="container_name",L.Instance="instance",L.Version="version",L.ConSetid="con_setid"}(eu||(eu={})),function(L){L.Development="Development",L.Production="Production"}(ep||(ep={})),function(L){L.Formal="formal",L.Test="test"}(eh||(eh={})),function(L){L.Webjs="webjs",L.Nodejs="nodejs"}(ef||(ef={}));let ey="galileo"},42122(L,ei,ea){"use strict";var es=ea(88609),el=ea(82829);function Accepts(L){if(!(this instanceof Accepts))return new Accepts(L);this.headers=L.headers,this.negotiator=new es(L)}function extToMime(L){return -1===L.indexOf("/")?el.lookup(L):L}function validMime(L){return"string"==typeof L}L.exports=Accepts,Accepts.prototype.type=Accepts.prototype.types=function(L){var ei=L;if(ei&&!Array.isArray(ei)){ei=Array(arguments.length);for(var ea=0;ea<ei.length;ea++)ei[ea]=arguments[ea]}if(!ei||0===ei.length)return this.negotiator.mediaTypes();if(!this.headers.accept)return ei[0];var es=ei.map(extToMime),el=this.negotiator.mediaTypes(es.filter(validMime))[0];return!!el&&ei[es.indexOf(el)]},Accepts.prototype.encoding=Accepts.prototype.encodings=function(L){var ei=L;if(ei&&!Array.isArray(ei)){ei=Array(arguments.length);for(var ea=0;ea<ei.length;ea++)ei[ea]=arguments[ea]}return ei&&0!==ei.length?this.negotiator.encodings(ei)[0]||!1:this.negotiator.encodings()},Accepts.prototype.charset=Accepts.prototype.charsets=function(L){var ei=L;if(ei&&!Array.isArray(ei)){ei=Array(arguments.length);for(var ea=0;ea<ei.length;ea++)ei[ea]=arguments[ea]}return ei&&0!==ei.length?this.negotiator.charsets(ei)[0]||!1:this.negotiator.charsets()},Accepts.prototype.lang=Accepts.prototype.langs=Accepts.prototype.language=Accepts.prototype.languages=function(L){var ei=L;if(ei&&!Array.isArray(ei)){ei=Array(arguments.length);for(var ea=0;ea<ei.length;ea++)ei[ea]=arguments[ea]}return ei&&0!==ei.length?this.negotiator.languages(ei)[0]||!1:this.negotiator.languages()}},81402(L,ei,ea){"use strict";var es=this&&this.__importDefault||function(L){return L&&L.__esModule?L:{default:L}};let el=ea(24434),ec=es(ea(94810)),ed=es(ea(69590)),eu=ec.default("agent-base");function isAgent(L){return!!L&&"function"==typeof L.addRequest}function isSecureEndpoint(){let{stack:L}=Error();return"string"==typeof L&&L.split("\n").some(L=>-1!==L.indexOf("(https.js:")||-1!==L.indexOf("node:https:"))}function createAgent(L,ei){return new createAgent.Agent(L,ei)}!function(L){let Agent=class Agent extends el.EventEmitter{constructor(L,ei){super();let ea=ei;"function"==typeof L?this.callback=L:L&&(ea=L),this.timeout=null,ea&&"number"==typeof ea.timeout&&(this.timeout=ea.timeout),this.maxFreeSockets=1,this.maxSockets=1,this.maxTotalSockets=1/0,this.sockets={},this.freeSockets={},this.requests={},this.options={}}get defaultPort(){return"number"==typeof this.explicitDefaultPort?this.explicitDefaultPort:isSecureEndpoint()?443:80}set defaultPort(L){this.explicitDefaultPort=L}get protocol(){return"string"==typeof this.explicitProtocol?this.explicitProtocol:isSecureEndpoint()?"https:":"http:"}set protocol(L){this.explicitProtocol=L}callback(L,ei,ea){throw Error('"agent-base" has no default implementation, you must subclass and override `callback()`')}addRequest(L,ei){let ea=Object.assign({},ei);"boolean"!=typeof ea.secureEndpoint&&(ea.secureEndpoint=isSecureEndpoint()),null==ea.host&&(ea.host="localhost"),null==ea.port&&(ea.port=ea.secureEndpoint?443:80),null==ea.protocol&&(ea.protocol=ea.secureEndpoint?"https:":"http:"),ea.host&&ea.path&&delete ea.path,delete ea.agent,delete ea.hostname,delete ea._defaultAgent,delete ea.defaultPort,delete ea.createConnection,L._last=!0,L.shouldKeepAlive=!1;let es=!1,el=null,ec=ea.timeout||this.timeout,onerror=ei=>{L._hadError||(L.emit("error",ei),L._hadError=!0)},ontimeout=()=>{el=null,es=!0;let L=Error(`A "socket" was not created for HTTP request before ${ec}ms`);L.code="ETIMEOUT",onerror(L)},callbackError=L=>{es||(null!==el&&(clearTimeout(el),el=null),onerror(L))},onsocket=ei=>{if(!es){if(null!=el&&(clearTimeout(el),el=null),isAgent(ei)){eu("Callback returned another Agent instance %o",ei.constructor.name),ei.addRequest(L,ea);return}if(ei){ei.once("free",()=>{this.freeSocket(ei,ea)}),L.onSocket(ei);return}onerror(Error(`no Duplex stream was returned to agent-base for \`${L.method} ${L.path}\``))}};if("function"!=typeof this.callback)return void onerror(Error("`callback` is not defined"));this.promisifiedCallback||(this.callback.length>=3?(eu("Converting legacy callback function to promise"),this.promisifiedCallback=ed.default(this.callback)):this.promisifiedCallback=this.callback),"number"==typeof ec&&ec>0&&(el=setTimeout(ontimeout,ec)),"port"in ea&&"number"!=typeof ea.port&&(ea.port=Number(ea.port));try{eu("Resolving socket for %o request: %o",ea.protocol,`${L.method} ${L.path}`),Promise.resolve(this.promisifiedCallback(L,ea)).then(onsocket,callbackError)}catch(L){Promise.reject(L).catch(callbackError)}}freeSocket(L,ei){eu("Freeing socket %o %o",L.constructor.name,ei),L.destroy()}destroy(){eu("Destroying agent %o",this.constructor.name)}};L.Agent=Agent,L.prototype=L.Agent.prototype}(createAgent||(createAgent={})),L.exports=createAgent},69590(L,ei){"use strict";Object.defineProperty(ei,"__esModule",{value:!0}),ei.default=function(L){return function(ei,ea){return new Promise((es,el)=>{L.call(this,ei,ea,(L,ei)=>{L?el(L):es(ei)})})}}},36743(L,ei,ea){"use strict";var es=this&&this.__createBinding||(Object.create?function(L,ei,ea,es){void 0===es&&(es=ea);var el=Object.getOwnPropertyDescriptor(ei,ea);(!el||("get"in el?!ei.__esModule:el.writable||el.configurable))&&(el={enumerable:!0,get:function(){return ei[ea]}}),Object.defineProperty(L,es,el)}:function(L,ei,ea,es){void 0===es&&(es=ea),L[es]=ei[ea]}),el=this&&this.__setModuleDefault||(Object.create?function(L,ei){Object.defineProperty(L,"default",{enumerable:!0,value:ei})}:function(L,ei){L.default=ei}),ec=this&&this.__importStar||function(L){if(L&&L.__esModule)return L;var ei={};if(null!=L)for(var ea in L)"default"!==ea&&Object.prototype.hasOwnProperty.call(L,ea)&&es(ei,L,ea);return el(ei,L),ei};Object.defineProperty(ei,"__esModule",{value:!0}),ei.req=ei.json=ei.toBuffer=void 0;let ed=ec(ea(58611)),eu=ec(ea(65692));async function toBuffer(L){let ei=0,ea=[];for await(let es of L)ei+=es.length,ea.push(es);return Buffer.concat(ea,ei)}ei.toBuffer=toBuffer,ei.json=async function(L){let ei=(await toBuffer(L)).toString("utf8");try{return JSON.parse(ei)}catch(ea){let L=ea;throw L.message+=` (input: ${ei})`,L}},ei.req=function(L,ei={}){let ea=(("string"==typeof L?L:L.href).startsWith("https:")?eu:ed).request(L,ei),es=new Promise((L,ei)=>{ea.once("response",L).once("error",ei).end()});return ea.then=es.then.bind(es),ea}},56406(L,ei,ea){"use strict";var es=this&&this.__createBinding||(Object.create?function(L,ei,ea,es){void 0===es&&(es=ea);var el=Object.getOwnPropertyDescriptor(ei,ea);(!el||("get"in el?!ei.__esModule:el.writable||el.configurable))&&(el={enumerable:!0,get:function(){return ei[ea]}}),Object.defineProperty(L,es,el)}:function(L,ei,ea,es){void 0===es&&(es=ea),L[es]=ei[ea]}),el=this&&this.__setModuleDefault||(Object.create?function(L,ei){Object.defineProperty(L,"default",{enumerable:!0,value:ei})}:function(L,ei){L.default=ei}),ec=this&&this.__importStar||function(L){if(L&&L.__esModule)return L;var ei={};if(null!=L)for(var ea in L)"default"!==ea&&Object.prototype.hasOwnProperty.call(L,ea)&&es(ei,L,ea);return el(ei,L),ei},ed=this&&this.__exportStar||function(L,ei){for(var ea in L)"default"===ea||Object.prototype.hasOwnProperty.call(ei,ea)||es(ei,L,ea)};Object.defineProperty(ei,"__esModule",{value:!0}),ei.Agent=void 0;let eu=ec(ea(69278)),ep=ec(ea(58611)),eh=ea(65692);ed(ea(36743),ei);let ef=Symbol("AgentBaseInternalState");let Agent=class Agent extends ep.Agent{constructor(L){super(L),this[ef]={}}isSecureEndpoint(L){if(L){if("boolean"==typeof L.secureEndpoint)return L.secureEndpoint;if("string"==typeof L.protocol)return"https:"===L.protocol}let{stack:ei}=Error();return"string"==typeof ei&&ei.split("\n").some(L=>-1!==L.indexOf("(https.js:")||-1!==L.indexOf("node:https:"))}incrementSockets(L){if(this.maxSockets===1/0&&this.maxTotalSockets===1/0)return null;this.sockets[L]||(this.sockets[L]=[]);let ei=new eu.Socket({writable:!1});return this.sockets[L].push(ei),this.totalSocketCount++,ei}decrementSockets(L,ei){if(!this.sockets[L]||null===ei)return;let ea=this.sockets[L],es=ea.indexOf(ei);-1!==es&&(ea.splice(es,1),this.totalSocketCount--,0===ea.length&&delete this.sockets[L])}getName(L){return("boolean"==typeof L.secureEndpoint?L.secureEndpoint:this.isSecureEndpoint(L))?eh.Agent.prototype.getName.call(this,L):super.getName(L)}createSocket(L,ei,ea){let es={...ei,secureEndpoint:this.isSecureEndpoint(ei)},el=this.getName(es),ec=this.incrementSockets(el);Promise.resolve().then(()=>this.connect(L,es)).then(ed=>{if(this.decrementSockets(el,ec),ed instanceof ep.Agent)try{return ed.addRequest(L,es)}catch(L){return ea(L)}this[ef].currentSocket=ed,super.createSocket(L,ei,ea)},L=>{this.decrementSockets(el,ec),ea(L)})}createConnection(){let L=this[ef].currentSocket;if(this[ef].currentSocket=void 0,!L)throw Error("No socket was returned in the `connect()` function");return L}get defaultPort(){return this[ef].defaultPort??("https:"===this.protocol?443:80)}set defaultPort(L){this[ef]&&(this[ef].defaultPort=L)}get protocol(){return this[ef].protocol??(this.isSecureEndpoint()?"https:":"http:")}set protocol(L){this[ef]&&(this[ef].protocol=L)}};ei.Agent=Agent},44850(L,ei,ea){"use strict";Object.defineProperty(ei,"__esModule",{value:!0}),ei.MissingRefError=ei.ValidationError=ei.CodeGen=ei.Name=ei.nil=ei.stringify=ei.str=ei._=ei.KeywordCxt=ei.Ajv=void 0;let es=ea(96042),el=ea(21888),ec=ea(9581),ed=ea(29199),eu=["/properties"],ep="http://json-schema.org/draft-07/schema";let Ajv=class Ajv extends es.default{_addVocabularies(){super._addVocabularies(),el.default.forEach(L=>this.addVocabulary(L)),this.opts.discriminator&&this.addKeyword(ec.default)}_addDefaultMetaSchema(){if(super._addDefaultMetaSchema(),!this.opts.meta)return;let L=this.opts.$data?this.$dataMetaSchema(ed,eu):ed;this.addMetaSchema(L,ep,!1),this.refs["http://json-schema.org/schema"]=ep}defaultMeta(){return this.opts.defaultMeta=super.defaultMeta()||(this.getSchema(ep)?ep:void 0)}};ei.Ajv=Ajv,L.exports=ei=Ajv,L.exports.Ajv=Ajv,Object.defineProperty(ei,"__esModule",{value:!0}),ei.default=Ajv;var eh=ea(41722);Object.defineProperty(ei,"KeywordCxt",{enumerable:!0,get:function(){return eh.KeywordCxt}});var ef=ea(46133);Object.defineProperty(ei,"_",{enumerable:!0,get:function(){return ef._}}),Object.defineProperty(ei,"str",{enumerable:!0,get:function(){return ef.str}}),Object.defineProperty(ei,"stringify",{enumerable:!0,get:function(){return ef.stringify}}),Object.defineProperty(ei,"nil",{enumerable:!0,get:function(){return ef.nil}}),Object.defineProperty(ei,"Name",{enumerable:!0,get:function(){return ef.Name}}),Object.defineProperty(ei,"CodeGen",{enumerable:!0,get:function(){return ef.CodeGen}});var em=ea(95894);Object.defineProperty(ei,"ValidationError",{enumerable:!0,get:function(){return em.default}});var eg=ea(53143);Object.defineProperty(ei,"MissingRefError",{enumerable:!0,get:function(){return eg.default}})},9872(L,ei){"use strict";Object.defineProperty(ei,"__esModule",{value:!0}),ei.regexpCode=ei.getEsmExportName=ei.getProperty=ei.safeStringify=ei.stringify=ei.strConcat=ei.addCodeArg=ei.str=ei._=ei.nil=ei._Code=ei.Name=ei.IDENTIFIER=ei._CodeOrName=void 0;let _CodeOrName=class _CodeOrName{};ei._CodeOrName=_CodeOrName,ei.IDENTIFIER=/^[a-z$_][a-z$_0-9]*$/i;let Name=class Name extends _CodeOrName{constructor(L){if(super(),!ei.IDENTIFIER.test(L))throw Error("CodeGen: name must be a valid identifier");this.str=L}toString(){return this.str}emptyStr(){return!1}get names(){return{[this.str]:1}}};ei.Name=Name;let _Code=class _Code extends _CodeOrName{constructor(L){super(),this._items="string"==typeof L?[L]:L}toString(){return this.str}emptyStr(){if(this._items.length>1)return!1;let L=this._items[0];return""===L||'""'===L}get str(){var L;return null!=(L=this._str)?L:this._str=this._items.reduce((L,ei)=>`${L}${ei}`,"")}get names(){var L;return null!=(L=this._names)?L:this._names=this._items.reduce((L,ei)=>(ei instanceof Name&&(L[ei.str]=(L[ei.str]||0)+1),L),{})}};function _(L,...ei){let ea=[L[0]],es=0;for(;es<ei.length;)addCodeArg(ea,ei[es]),ea.push(L[++es]);return new _Code(ea)}ei._Code=_Code,ei.nil=new _Code(""),ei._=_;let ea=new _Code("+");function str(L,...ei){let es=[safeStringify(L[0])],el=0;for(;el<ei.length;)es.push(ea),addCodeArg(es,ei[el]),es.push(ea,safeStringify(L[++el]));return optimize(es),new _Code(es)}function addCodeArg(L,ei){ei instanceof _Code?L.push(...ei._items):ei instanceof Name?L.push(ei):L.push(interpolate(ei))}function optimize(L){let ei=1;for(;ei<L.length-1;){if(L[ei]===ea){let ea=mergeExprItems(L[ei-1],L[ei+1]);if(void 0!==ea){L.splice(ei-1,3,ea);continue}L[ei++]="+"}ei++}}function mergeExprItems(L,ei){return'""'===ei?L:'""'===L?ei:"string"==typeof L?ei instanceof Name||'"'!==L[L.length-1]?void 0:"string"!=typeof ei?`${L.slice(0,-1)}${ei}"`:'"'===ei[0]?L.slice(0,-1)+ei.slice(1):void 0:"string"!=typeof ei||'"'!==ei[0]||L instanceof Name?void 0:`"${L}${ei.slice(1)}`}function interpolate(L){return"number"==typeof L||"boolean"==typeof L||null===L?L:safeStringify(Array.isArray(L)?L.join(","):L)}function safeStringify(L){return JSON.stringify(L).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")}function getProperty(L){return"string"==typeof L&&ei.IDENTIFIER.test(L)?new _Code(`.${L}`):_`[${L}]`}function getEsmExportName(L){if("string"==typeof L&&ei.IDENTIFIER.test(L))return new _Code(`${L}`);throw Error(`CodeGen: invalid export name: ${L}, use explicit $id name mapping`)}ei.str=str,ei.addCodeArg=addCodeArg,ei.strConcat=function(L,ei){return ei.emptyStr()?L:L.emptyStr()?ei:str`${L}${ei}`},ei.stringify=function(L){return new _Code(safeStringify(L))},ei.safeStringify=safeStringify,ei.getProperty=getProperty,ei.getEsmExportName=getEsmExportName,ei.regexpCode=function(L){return new _Code(L.toString())}},46133(L,ei,ea){"use strict";Object.defineProperty(ei,"__esModule",{value:!0}),ei.or=ei.and=ei.not=ei.CodeGen=ei.operators=ei.varKinds=ei.ValueScopeName=ei.ValueScope=ei.Scope=ei.Name=ei.regexpCode=ei.stringify=ei.getProperty=ei.nil=ei.strConcat=ei.str=ei._=void 0;let es=ea(9872),el=ea(4949);var ec=ea(9872);Object.defineProperty(ei,"_",{enumerable:!0,get:function(){return ec._}}),Object.defineProperty(ei,"str",{enumerable:!0,get:function(){return ec.str}}),Object.defineProperty(ei,"strConcat",{enumerable:!0,get:function(){return ec.strConcat}}),Object.defineProperty(ei,"nil",{enumerable:!0,get:function(){return ec.nil}}),Object.defineProperty(ei,"getProperty",{enumerable:!0,get:function(){return ec.getProperty}}),Object.defineProperty(ei,"stringify",{enumerable:!0,get:function(){return ec.stringify}}),Object.defineProperty(ei,"regexpCode",{enumerable:!0,get:function(){return ec.regexpCode}}),Object.defineProperty(ei,"Name",{enumerable:!0,get:function(){return ec.Name}});var ed=ea(4949);Object.defineProperty(ei,"Scope",{enumerable:!0,get:function(){return ed.Scope}}),Object.defineProperty(ei,"ValueScope",{enumerable:!0,get:function(){return ed.ValueScope}}),Object.defineProperty(ei,"ValueScopeName",{enumerable:!0,get:function(){return ed.ValueScopeName}}),Object.defineProperty(ei,"varKinds",{enumerable:!0,get:function(){return ed.varKinds}}),ei.operators={GT:new es._Code(">"),GTE:new es._Code(">="),LT:new es._Code("<"),LTE:new es._Code("<="),EQ:new es._Code("==="),NEQ:new es._Code("!=="),NOT:new es._Code("!"),OR:new es._Code("||"),AND:new es._Code("&&"),ADD:new es._Code("+")};let Node=class Node{optimizeNodes(){return this}optimizeNames(L,ei){return this}};let Def=class Def extends Node{constructor(L,ei,ea){super(),this.varKind=L,this.name=ei,this.rhs=ea}render({es5:L,_n:ei}){let ea=L?el.varKinds.var:this.varKind,es=void 0===this.rhs?"":` = ${this.rhs}`;return`${ea} ${this.name}${es};`+ei}optimizeNames(L,ei){if(L[this.name.str])return this.rhs&&(this.rhs=optimizeExpr(this.rhs,L,ei)),this}get names(){return this.rhs instanceof es._CodeOrName?this.rhs.names:{}}};let Assign=class Assign extends Node{constructor(L,ei,ea){super(),this.lhs=L,this.rhs=ei,this.sideEffects=ea}render({_n:L}){return`${this.lhs} = ${this.rhs};`+L}optimizeNames(L,ei){if(!(this.lhs instanceof es.Name)||L[this.lhs.str]||this.sideEffects)return this.rhs=optimizeExpr(this.rhs,L,ei),this}get names(){return addExprNames(this.lhs instanceof es.Name?{}:{...this.lhs.names},this.rhs)}};let AssignOp=class AssignOp extends Assign{constructor(L,ei,ea,es){super(L,ea,es),this.op=ei}render({_n:L}){return`${this.lhs} ${this.op}= ${this.rhs};`+L}};let Label=class Label extends Node{constructor(L){super(),this.label=L,this.names={}}render({_n:L}){return`${this.label}:`+L}};let Break=class Break extends Node{constructor(L){super(),this.label=L,this.names={}}render({_n:L}){let ei=this.label?` ${this.label}`:"";return`break${ei};`+L}};let Throw=class Throw extends Node{constructor(L){super(),this.error=L}render({_n:L}){return`throw ${this.error};`+L}get names(){return this.error.names}};let AnyCode=class AnyCode extends Node{constructor(L){super(),this.code=L}render({_n:L}){return`${this.code};`+L}optimizeNodes(){return`${this.code}`?this:void 0}optimizeNames(L,ei){return this.code=optimizeExpr(this.code,L,ei),this}get names(){return this.code instanceof es._CodeOrName?this.code.names:{}}};let ParentNode=class ParentNode extends Node{constructor(L=[]){super(),this.nodes=L}render(L){return this.nodes.reduce((ei,ea)=>ei+ea.render(L),"")}optimizeNodes(){let{nodes:L}=this,ei=L.length;for(;ei--;){let ea=L[ei].optimizeNodes();Array.isArray(ea)?L.splice(ei,1,...ea):ea?L[ei]=ea:L.splice(ei,1)}return L.length>0?this:void 0}optimizeNames(L,ei){let{nodes:ea}=this,es=ea.length;for(;es--;){let el=ea[es];el.optimizeNames(L,ei)||(subtractNames(L,el.names),ea.splice(es,1))}return ea.length>0?this:void 0}get names(){return this.nodes.reduce((L,ei)=>addNames(L,ei.names),{})}};let BlockNode=class BlockNode extends ParentNode{render(L){return"{"+L._n+super.render(L)+"}"+L._n}};let Root=class Root extends ParentNode{};let Else=class Else extends BlockNode{};Else.kind="else";let If=class If extends BlockNode{constructor(L,ei){super(ei),this.condition=L}render(L){let ei=`if(${this.condition})`+super.render(L);return this.else&&(ei+="else "+this.else.render(L)),ei}optimizeNodes(){super.optimizeNodes();let L=this.condition;if(!0===L)return this.nodes;let ei=this.else;if(ei){let L=ei.optimizeNodes();ei=this.else=Array.isArray(L)?new Else(L):L}return ei?!1===L?ei instanceof If?ei:ei.nodes:this.nodes.length?this:new If(not(L),ei instanceof If?[ei]:ei.nodes):!1!==L&&this.nodes.length?this:void 0}optimizeNames(L,ei){var ea;if(this.else=null==(ea=this.else)?void 0:ea.optimizeNames(L,ei),super.optimizeNames(L,ei)||this.else)return this.condition=optimizeExpr(this.condition,L,ei),this}get names(){let L=super.names;return addExprNames(L,this.condition),this.else&&addNames(L,this.else.names),L}};If.kind="if";let For=class For extends BlockNode{};For.kind="for";let ForLoop=class ForLoop extends For{constructor(L){super(),this.iteration=L}render(L){return`for(${this.iteration})`+super.render(L)}optimizeNames(L,ei){if(super.optimizeNames(L,ei))return this.iteration=optimizeExpr(this.iteration,L,ei),this}get names(){return addNames(super.names,this.iteration.names)}};let ForRange=class ForRange extends For{constructor(L,ei,ea,es){super(),this.varKind=L,this.name=ei,this.from=ea,this.to=es}render(L){let ei=L.es5?el.varKinds.var:this.varKind,{name:ea,from:es,to:ec}=this;return`for(${ei} ${ea}=${es}; ${ea}<${ec}; ${ea}++)`+super.render(L)}get names(){let L=addExprNames(super.names,this.from);return addExprNames(L,this.to)}};let ForIter=class ForIter extends For{constructor(L,ei,ea,es){super(),this.loop=L,this.varKind=ei,this.name=ea,this.iterable=es}render(L){return`for(${this.varKind} ${this.name} ${this.loop} ${this.iterable})`+super.render(L)}optimizeNames(L,ei){if(super.optimizeNames(L,ei))return this.iterable=optimizeExpr(this.iterable,L,ei),this}get names(){return addNames(super.names,this.iterable.names)}};let Func=class Func extends BlockNode{constructor(L,ei,ea){super(),this.name=L,this.args=ei,this.async=ea}render(L){let ei=this.async?"async ":"";return`${ei}function ${this.name}(${this.args})`+super.render(L)}};Func.kind="func";let Return=class Return extends ParentNode{render(L){return"return "+super.render(L)}};Return.kind="return";let Try=class Try extends BlockNode{render(L){let ei="try"+super.render(L);return this.catch&&(ei+=this.catch.render(L)),this.finally&&(ei+=this.finally.render(L)),ei}optimizeNodes(){var L,ei;return super.optimizeNodes(),null==(L=this.catch)||L.optimizeNodes(),null==(ei=this.finally)||ei.optimizeNodes(),this}optimizeNames(L,ei){var ea,es;return super.optimizeNames(L,ei),null==(ea=this.catch)||ea.optimizeNames(L,ei),null==(es=this.finally)||es.optimizeNames(L,ei),this}get names(){let L=super.names;return this.catch&&addNames(L,this.catch.names),this.finally&&addNames(L,this.finally.names),L}};let Catch=class Catch extends BlockNode{constructor(L){super(),this.error=L}render(L){return`catch(${this.error})`+super.render(L)}};Catch.kind="catch";let Finally=class Finally extends BlockNode{render(L){return"finally"+super.render(L)}};Finally.kind="finally";let CodeGen=class CodeGen{constructor(L,ei={}){this._values={},this._blockStarts=[],this._constants={},this.opts={...ei,_n:ei.lines?"\n":""},this._extScope=L,this._scope=new el.Scope({parent:L}),this._nodes=[new Root]}toString(){return this._root.render(this.opts)}name(L){return this._scope.name(L)}scopeName(L){return this._extScope.name(L)}scopeValue(L,ei){let ea=this._extScope.value(L,ei);return(this._values[ea.prefix]||(this._values[ea.prefix]=new Set)).add(ea),ea}getScopeValue(L,ei){return this._extScope.getValue(L,ei)}scopeRefs(L){return this._extScope.scopeRefs(L,this._values)}scopeCode(){return this._extScope.scopeCode(this._values)}_def(L,ei,ea,es){let el=this._scope.toName(ei);return void 0!==ea&&es&&(this._constants[el.str]=ea),this._leafNode(new Def(L,el,ea)),el}const(L,ei,ea){return this._def(el.varKinds.const,L,ei,ea)}let(L,ei,ea){return this._def(el.varKinds.let,L,ei,ea)}var(L,ei,ea){return this._def(el.varKinds.var,L,ei,ea)}assign(L,ei,ea){return this._leafNode(new Assign(L,ei,ea))}add(L,ea){return this._leafNode(new AssignOp(L,ei.operators.ADD,ea))}code(L){return"function"==typeof L?L():L!==es.nil&&this._leafNode(new AnyCode(L)),this}object(...L){let ei=["{"];for(let[ea,el]of L)ei.length>1&&ei.push(","),ei.push(ea),(ea!==el||this.opts.es5)&&(ei.push(":"),(0,es.addCodeArg)(ei,el));return ei.push("}"),new es._Code(ei)}if(L,ei,ea){if(this._blockNode(new If(L)),ei&&ea)this.code(ei).else().code(ea).endIf();else if(ei)this.code(ei).endIf();else if(ea)throw Error('CodeGen: "else" body without "then" body');return this}elseIf(L){return this._elseNode(new If(L))}else(){return this._elseNode(new Else)}endIf(){return this._endBlockNode(If,Else)}_for(L,ei){return this._blockNode(L),ei&&this.code(ei).endFor(),this}for(L,ei){return this._for(new ForLoop(L),ei)}forRange(L,ei,ea,es,ec=this.opts.es5?el.varKinds.var:el.varKinds.let){let ed=this._scope.toName(L);return this._for(new ForRange(ec,ed,ei,ea),()=>es(ed))}forOf(L,ei,ea,ec=el.varKinds.const){let ed=this._scope.toName(L);if(this.opts.es5){let L=ei instanceof es.Name?ei:this.var("_arr",ei);return this.forRange("_i",0,(0,es._)`${L}.length`,ei=>{this.var(ed,(0,es._)`${L}[${ei}]`),ea(ed)})}return this._for(new ForIter("of",ec,ed,ei),()=>ea(ed))}forIn(L,ei,ea,ec=this.opts.es5?el.varKinds.var:el.varKinds.const){if(this.opts.ownProperties)return this.forOf(L,(0,es._)`Object.keys(${ei})`,ea);let ed=this._scope.toName(L);return this._for(new ForIter("in",ec,ed,ei),()=>ea(ed))}endFor(){return this._endBlockNode(For)}label(L){return this._leafNode(new Label(L))}break(L){return this._leafNode(new Break(L))}return(L){let ei=new Return;if(this._blockNode(ei),this.code(L),1!==ei.nodes.length)throw Error('CodeGen: "return" should have one node');return this._endBlockNode(Return)}try(L,ei,ea){if(!ei&&!ea)throw Error('CodeGen: "try" without "catch" and "finally"');let es=new Try;if(this._blockNode(es),this.code(L),ei){let L=this.name("e");this._currNode=es.catch=new Catch(L),ei(L)}return ea&&(this._currNode=es.finally=new Finally,this.code(ea)),this._endBlockNode(Catch,Finally)}throw(L){return this._leafNode(new Throw(L))}block(L,ei){return this._blockStarts.push(this._nodes.length),L&&this.code(L).endBlock(ei),this}endBlock(L){let ei=this._blockStarts.pop();if(void 0===ei)throw Error("CodeGen: not in self-balancing block");let ea=this._nodes.length-ei;if(ea<0||void 0!==L&&ea!==L)throw Error(`CodeGen: wrong number of nodes: ${ea} vs ${L} expected`);return this._nodes.length=ei,this}func(L,ei=es.nil,ea,el){return this._blockNode(new Func(L,ei,ea)),el&&this.code(el).endFunc(),this}endFunc(){return this._endBlockNode(Func)}optimize(L=1){for(;L-- >0;)this._root.optimizeNodes(),this._root.optimizeNames(this._root.names,this._constants)}_leafNode(L){return this._currNode.nodes.push(L),this}_blockNode(L){this._currNode.nodes.push(L),this._nodes.push(L)}_endBlockNode(L,ei){let ea=this._currNode;if(ea instanceof L||ei&&ea instanceof ei)return this._nodes.pop(),this;throw Error(`CodeGen: not in block "${ei?`${L.kind}/${ei.kind}`:L.kind}"`)}_elseNode(L){let ei=this._currNode;if(!(ei instanceof If))throw Error('CodeGen: "else" without "if"');return this._currNode=ei.else=L,this}get _root(){return this._nodes[0]}get _currNode(){let L=this._nodes;return L[L.length-1]}set _currNode(L){let ei=this._nodes;ei[ei.length-1]=L}};function addNames(L,ei){for(let ea in ei)L[ea]=(L[ea]||0)+(ei[ea]||0);return L}function addExprNames(L,ei){return ei instanceof es._CodeOrName?addNames(L,ei.names):L}function optimizeExpr(L,ei,ea){if(L instanceof es.Name)return replaceName(L);if(!canOptimize(L))return L;return new es._Code(L._items.reduce((L,ei)=>(ei instanceof es.Name&&(ei=replaceName(ei)),ei instanceof es._Code?L.push(...ei._items):L.push(ei),L),[]));function replaceName(L){let es=ea[L.str];return void 0===es||1!==ei[L.str]?L:(delete ei[L.str],es)}function canOptimize(L){return L instanceof es._Code&&L._items.some(L=>L instanceof es.Name&&1===ei[L.str]&&void 0!==ea[L.str])}}function subtractNames(L,ei){for(let ea in ei)L[ea]=(L[ea]||0)-(ei[ea]||0)}function not(L){return"boolean"==typeof L||"number"==typeof L||null===L?!L:(0,es._)`!${par(L)}`}ei.CodeGen=CodeGen,ei.not=not;let eu=mappend(ei.operators.AND);ei.and=function(...L){return L.reduce(eu)};let ep=mappend(ei.operators.OR);function mappend(L){return(ei,ea)=>ei===es.nil?ea:ea===es.nil?ei:(0,es._)`${par(ei)} ${L} ${par(ea)}`}function par(L){return L instanceof es.Name?L:(0,es._)`(${L})`}ei.or=function(...L){return L.reduce(ep)}},4949(L,ei,ea){"use strict";var es;Object.defineProperty(ei,"__esModule",{value:!0}),ei.ValueScope=ei.ValueScopeName=ei.Scope=ei.varKinds=ei.UsedValueState=void 0;let el=ea(9872);let ValueError=class ValueError extends Error{constructor(L){super(`CodeGen: "code" for ${L} not defined`),this.value=L.value}};!function(L){L[L.Started=0]="Started",L[L.Completed=1]="Completed"}(es||(ei.UsedValueState=es={})),ei.varKinds={const:new el.Name("const"),let:new el.Name("let"),var:new el.Name("var")};let Scope=class Scope{constructor({prefixes:L,parent:ei}={}){this._names={},this._prefixes=L,this._parent=ei}toName(L){return L instanceof el.Name?L:this.name(L)}name(L){return new el.Name(this._newName(L))}_newName(L){let ei=this._names[L]||this._nameGroup(L);return`${L}${ei.index++}`}_nameGroup(L){var ei,ea;if((null==(ea=null==(ei=this._parent)?void 0:ei._prefixes)?void 0:ea.has(L))||this._prefixes&&!this._prefixes.has(L))throw Error(`CodeGen: prefix "${L}" is not allowed in this scope`);return this._names[L]={prefix:L,index:0}}};ei.Scope=Scope;let ValueScopeName=class ValueScopeName extends el.Name{constructor(L,ei){super(ei),this.prefix=L}setValue(L,{property:ei,itemIndex:ea}){this.value=L,this.scopePath=(0,el._)`.${new el.Name(ei)}[${ea}]`}};ei.ValueScopeName=ValueScopeName;let ec=(0,el._)`\n`;let ValueScope=class ValueScope extends Scope{constructor(L){super(L),this._values={},this._scope=L.scope,this.opts={...L,_n:L.lines?ec:el.nil}}get(){return this._scope}name(L){return new ValueScopeName(L,this._newName(L))}value(L,ei){var ea;if(void 0===ei.ref)throw Error("CodeGen: ref must be passed in value");let es=this.toName(L),{prefix:el}=es,ec=null!=(ea=ei.key)?ea:ei.ref,ed=this._values[el];if(ed){let L=ed.get(ec);if(L)return L}else ed=this._values[el]=new Map;ed.set(ec,es);let eu=this._scope[el]||(this._scope[el]=[]),ep=eu.length;return eu[ep]=ei.ref,es.setValue(ei,{property:el,itemIndex:ep}),es}getValue(L,ei){let ea=this._values[L];if(ea)return ea.get(ei)}scopeRefs(L,ei=this._values){return this._reduceValues(ei,ei=>{if(void 0===ei.scopePath)throw Error(`CodeGen: name "${ei}" has no value`);return(0,el._)`${L}${ei.scopePath}`})}scopeCode(L=this._values,ei,ea){return this._reduceValues(L,L=>{if(void 0===L.value)throw Error(`CodeGen: name "${L}" has no value`);return L.value.code},ei,ea)}_reduceValues(L,ea,ec={},ed){let eu=el.nil;for(let ep in L){let eh=L[ep];if(!eh)continue;let ef=ec[ep]=ec[ep]||new Map;eh.forEach(L=>{if(ef.has(L))return;ef.set(L,es.Started);let ec=ea(L);if(ec){let ea=this.opts.es5?ei.varKinds.var:ei.varKinds.const;eu=(0,el._)`${eu}${ea} ${L} = ${ec};${this.opts._n}`}else if(ec=null==ed?void 0:ed(L))eu=(0,el._)`${eu}${ec}${this.opts._n}`;else throw new ValueError(L);ef.set(L,es.Completed)})}return eu}};ei.ValueScope=ValueScope},29700(L,ei,ea){"use strict";Object.defineProperty(ei,"__esModule",{value:!0}),ei.extendErrors=ei.resetErrorsCount=ei.reportExtraError=ei.reportError=ei.keyword$DataError=ei.keywordError=void 0;let es=ea(46133),el=ea(16435),ec=ea(50951);function reportError(L,ea=ei.keywordError,el,ec){let{it:ed}=L,{gen:eu,compositeRule:ep,allErrors:eh}=ed,ef=errorObjectCode(L,ea,el);(null!=ec?ec:ep||eh)?addError(eu,ef):returnErrors(ed,(0,es._)`[${ef}]`)}function reportExtraError(L,ea=ei.keywordError,es){let{it:el}=L,{gen:ed,compositeRule:eu,allErrors:ep}=el;addError(ed,errorObjectCode(L,ea,es)),eu||ep||returnErrors(el,ec.default.vErrors)}function addError(L,ei){let ea=L.const("err",ei);L.if((0,es._)`${ec.default.vErrors} === null`,()=>L.assign(ec.default.vErrors,(0,es._)`[${ea}]`),(0,es._)`${ec.default.vErrors}.push(${ea})`),L.code((0,es._)`${ec.default.errors}++`)}function returnErrors(L,ei){let{gen:ea,validateName:el,schemaEnv:ec}=L;ec.$async?ea.throw((0,es._)`new ${L.ValidationError}(${ei})`):(ea.assign((0,es._)`${el}.errors`,ei),ea.return(!1))}ei.keywordError={message:({keyword:L})=>(0,es.str)`must pass "${L}" keyword validation`},ei.keyword$DataError={message:({keyword:L,schemaType:ei})=>ei?(0,es.str)`"${L}" keyword must be ${ei} ($data)`:(0,es.str)`"${L}" keyword is invalid ($data)`},ei.reportError=reportError,ei.reportExtraError=reportExtraError,ei.resetErrorsCount=function(L,ei){L.assign(ec.default.errors,ei),L.if((0,es._)`${ec.default.vErrors} !== null`,()=>L.if(ei,()=>L.assign((0,es._)`${ec.default.vErrors}.length`,ei),()=>L.assign(ec.default.vErrors,null)))},ei.extendErrors=function({gen:L,keyword:ei,schemaValue:ea,data:el,errsCount:ed,it:eu}){if(void 0===ed)throw Error("ajv implementation error");let ep=L.name("err");L.forRange("i",ed,ec.default.errors,ed=>{L.const(ep,(0,es._)`${ec.default.vErrors}[${ed}]`),L.if((0,es._)`${ep}.instancePath === undefined`,()=>L.assign((0,es._)`${ep}.instancePath`,(0,es.strConcat)(ec.default.instancePath,eu.errorPath))),L.assign((0,es._)`${ep}.schemaPath`,(0,es.str)`${eu.errSchemaPath}/${ei}`),eu.opts.verbose&&(L.assign((0,es._)`${ep}.schema`,ea),L.assign((0,es._)`${ep}.data`,el))})};let ed={keyword:new es.Name("keyword"),schemaPath:new es.Name("schemaPath"),params:new es.Name("params"),propertyName:new es.Name("propertyName"),message:new es.Name("message"),schema:new es.Name("schema"),parentSchema:new es.Name("parentSchema")};function errorObjectCode(L,ei,ea){let{createErrors:el}=L.it;return!1===el?(0,es._)`{}`:errorObject(L,ei,ea)}function errorObject(L,ei,ea={}){let{gen:es,it:el}=L,ec=[errorInstancePath(el,ea),errorSchemaPath(L,ea)];return extraErrorProps(L,ei,ec),es.object(...ec)}function errorInstancePath({errorPath:L},{instancePath:ei}){let ea=ei?(0,es.str)`${L}${(0,el.getErrorPath)(ei,el.Type.Str)}`:L;return[ec.default.instancePath,(0,es.strConcat)(ec.default.instancePath,ea)]}function errorSchemaPath({keyword:L,it:{errSchemaPath:ei}},{schemaPath:ea,parentSchema:ec}){let eu=ec?ei:(0,es.str)`${ei}/${L}`;return ea&&(eu=(0,es.str)`${eu}${(0,el.getErrorPath)(ea,el.Type.Str)}`),[ed.schemaPath,eu]}function extraErrorProps(L,{params:ei,message:ea},el){let{keyword:eu,data:ep,schemaValue:eh,it:ef}=L,{opts:em,propertyName:eg,topSchemaRef:ey,schemaPath:eb}=ef;el.push([ed.keyword,eu],[ed.params,"function"==typeof ei?ei(L):ei||(0,es._)`{}`]),em.messages&&el.push([ed.message,"function"==typeof ea?ea(L):ea]),em.verbose&&el.push([ed.schema,eh],[ed.parentSchema,(0,es._)`${ey}${eb}`],[ec.default.data,ep]),eg&&el.push([ed.propertyName,eg])}},82763(L,ei,ea){"use strict";Object.defineProperty(ei,"__esModule",{value:!0}),ei.resolveSchema=ei.getCompilingSchema=ei.resolveRef=ei.compileSchema=ei.SchemaEnv=void 0;let es=ea(46133),el=ea(95894),ec=ea(50951),ed=ea(72155),eu=ea(16435),ep=ea(41722);let SchemaEnv=class SchemaEnv{constructor(L){var ei;let ea;this.refs={},this.dynamicAnchors={},"object"==typeof L.schema&&(ea=L.schema),this.schema=L.schema,this.schemaId=L.schemaId,this.root=L.root||this,this.baseId=null!=(ei=L.baseId)?ei:(0,ed.normalizeId)(null==ea?void 0:ea[L.schemaId||"$id"]),this.schemaPath=L.schemaPath,this.localRefs=L.localRefs,this.meta=L.meta,this.$async=null==ea?void 0:ea.$async,this.refs={}}};function compileSchema(L){let ei,ea,eu=getCompilingSchema.call(this,L);if(eu)return eu;let eh=(0,ed.getFullPath)(this.opts.uriResolver,L.root.baseId),{es5:ef,lines:em}=this.opts.code,{ownProperties:eg}=this.opts,ey=new es.CodeGen(this.scope,{es5:ef,lines:em,ownProperties:eg});L.$async&&(ei=ey.scopeValue("Error",{ref:el.default,code:(0,es._)`require("ajv/dist/runtime/validation_error").default`}));let eb=ey.scopeName("validate");L.validateName=eb;let e_={gen:ey,allErrors:this.opts.allErrors,data:ec.default.data,parentData:ec.default.parentData,parentDataProperty:ec.default.parentDataProperty,dataNames:[ec.default.data],dataPathArr:[es.nil],dataLevel:0,dataTypes:[],definedProperties:new Set,topSchemaRef:ey.scopeValue("schema",!0===this.opts.code.source?{ref:L.schema,code:(0,es.stringify)(L.schema)}:{ref:L.schema}),validateName:eb,ValidationError:ei,schema:L.schema,schemaEnv:L,rootId:eh,baseId:L.baseId||eh,schemaPath:es.nil,errSchemaPath:L.schemaPath||(this.opts.jtd?"":"#"),errorPath:(0,es._)`""`,opts:this.opts,self:this};try{this._compilations.add(L),(0,ep.validateFunctionCode)(e_),ey.optimize(this.opts.code.optimize);let ei=ey.toString();ea=`${ey.scopeRefs(ec.default.scope)}return ${ei}`,this.opts.code.process&&(ea=this.opts.code.process(ea,L));let el=Function(`${ec.default.self}`,`${ec.default.scope}`,ea)(this,this.scope.get());if(this.scope.value(eb,{ref:el}),el.errors=null,el.schema=L.schema,el.schemaEnv=L,L.$async&&(el.$async=!0),!0===this.opts.code.source&&(el.source={validateName:eb,validateCode:ei,scopeValues:ey._values}),this.opts.unevaluated){let{props:L,items:ei}=e_;el.evaluated={props:L instanceof es.Name?void 0:L,items:ei instanceof es.Name?void 0:ei,dynamicProps:L instanceof es.Name,dynamicItems:ei instanceof es.Name},el.source&&(el.source.evaluated=(0,es.stringify)(el.evaluated))}return L.validate=el,L}catch(ei){throw delete L.validate,delete L.validateName,ea&&this.logger.error("Error compiling schema, function code:",ea),ei}finally{this._compilations.delete(L)}}function inlineOrCompile(L){return(0,ed.inlineRef)(L.schema,this.opts.inlineRefs)?L.schema:L.validate?L:compileSchema.call(this,L)}function getCompilingSchema(L){for(let ei of this._compilations)if(sameSchemaEnv(ei,L))return ei}function sameSchemaEnv(L,ei){return L.schema===ei.schema&&L.root===ei.root&&L.baseId===ei.baseId}function resolve(L,ei){let ea;for(;"string"==typeof(ea=this.refs[ei]);)ei=ea;return ea||this.schemas[ei]||resolveSchema.call(this,L,ei)}function resolveSchema(L,ei){let ea=this.opts.uriResolver.parse(ei),es=(0,ed._getFullPath)(this.opts.uriResolver,ea),el=(0,ed.getFullPath)(this.opts.uriResolver,L.baseId,void 0);if(Object.keys(L.schema).length>0&&es===el)return getJsonPointer.call(this,ea,L);let ec=(0,ed.normalizeId)(es),eu=this.refs[ec]||this.schemas[ec];if("string"==typeof eu){let ei=resolveSchema.call(this,L,eu);if("object"!=typeof(null==ei?void 0:ei.schema))return;return getJsonPointer.call(this,ea,ei)}if("object"==typeof(null==eu?void 0:eu.schema)){if(eu.validate||compileSchema.call(this,eu),ec===(0,ed.normalizeId)(ei)){let{schema:ei}=eu,{schemaId:ea}=this.opts,es=ei[ea];return es&&(el=(0,ed.resolveUrl)(this.opts.uriResolver,el,es)),new SchemaEnv({schema:ei,schemaId:ea,root:L,baseId:el})}return getJsonPointer.call(this,ea,eu)}}ei.SchemaEnv=SchemaEnv,ei.compileSchema=compileSchema,ei.resolveRef=function(L,ei,ea){var es;ea=(0,ed.resolveUrl)(this.opts.uriResolver,ei,ea);let el=L.refs[ea];if(el)return el;let ec=resolve.call(this,L,ea);if(void 0===ec){let el=null==(es=L.localRefs)?void 0:es[ea],{schemaId:ed}=this.opts;el&&(ec=new SchemaEnv({schema:el,schemaId:ed,root:L,baseId:ei}))}if(void 0!==ec)return L.refs[ea]=inlineOrCompile.call(this,ec)},ei.getCompilingSchema=getCompilingSchema,ei.resolveSchema=resolveSchema;let eh=new Set(["properties","patternProperties","enum","dependencies","definitions"]);function getJsonPointer(L,{baseId:ei,schema:ea,root:es}){var el;let ec;if((null==(el=L.fragment)?void 0:el[0])!=="/")return;for(let es of L.fragment.slice(1).split("/")){if("boolean"==typeof ea)return;let L=ea[(0,eu.unescapeFragment)(es)];if(void 0===L)return;let el="object"==typeof(ea=L)&&ea[this.opts.schemaId];!eh.has(es)&&el&&(ei=(0,ed.resolveUrl)(this.opts.uriResolver,ei,el))}if("boolean"!=typeof ea&&ea.$ref&&!(0,eu.schemaHasRulesButRef)(ea,this.RULES)){let L=(0,ed.resolveUrl)(this.opts.uriResolver,ei,ea.$ref);ec=resolveSchema.call(this,es,L)}let{schemaId:ep}=this.opts;if((ec=ec||new SchemaEnv({schema:ea,schemaId:ep,root:es,baseId:ei})).schema!==ec.root.schema)return ec}},50951(L,ei,ea){"use strict";Object.defineProperty(ei,"__esModule",{value:!0});let es=ea(46133);ei.default={data:new es.Name("data"),valCxt:new es.Name("valCxt"),instancePath:new es.Name("instancePath"),parentData:new es.Name("parentData"),parentDataProperty:new es.Name("parentDataProperty"),rootData:new es.Name("rootData"),dynamicAnchors:new es.Name("dynamicAnchors"),vErrors:new es.Name("vErrors"),errors:new es.Name("errors"),this:new es.Name("this"),self:new es.Name("self"),scope:new es.Name("scope"),json:new es.Name("json"),jsonPos:new es.Name("jsonPos"),jsonLen:new es.Name("jsonLen"),jsonPart:new es.Name("jsonPart")}},53143(L,ei,ea){"use strict";Object.defineProperty(ei,"__esModule",{value:!0});let es=ea(72155);let MissingRefError=class MissingRefError extends Error{constructor(L,ei,ea,el){super(el||`can't resolve reference ${ea} from id ${ei}`),this.missingRef=(0,es.resolveUrl)(L,ei,ea),this.missingSchema=(0,es.normalizeId)((0,es.getFullPath)(L,this.missingRef))}};ei.default=MissingRefError},72155(L,ei,ea){"use strict";Object.defineProperty(ei,"__esModule",{value:!0}),ei.getSchemaRefs=ei.resolveUrl=ei.normalizeId=ei._getFullPath=ei.getFullPath=ei.inlineRef=void 0;let es=ea(16435),el=ea(78779),ec=ea(50205),ed=new Set(["type","format","pattern","maxLength","minLength","maxProperties","minProperties","maxItems","minItems","maximum","minimum","uniqueItems","multipleOf","required","enum","const"]);ei.inlineRef=function(L,ei=!0){return"boolean"==typeof L||(!0===ei?!hasRef(L):!!ei&&countKeys(L)<=ei)};let eu=new Set(["$ref","$recursiveRef","$recursiveAnchor","$dynamicRef","$dynamicAnchor"]);function hasRef(L){for(let ei in L){if(eu.has(ei))return!0;let ea=L[ei];if(Array.isArray(ea)&&ea.some(hasRef)||"object"==typeof ea&&hasRef(ea))return!0}return!1}function countKeys(L){let ei=0;for(let ea in L)if("$ref"===ea||(ei++,!ed.has(ea)&&("object"==typeof L[ea]&&(0,es.eachItem)(L[ea],L=>ei+=countKeys(L)),ei===1/0)))return 1/0;return ei}function getFullPath(L,ei="",ea){!1!==ea&&(ei=normalizeId(ei));let es=L.parse(ei);return _getFullPath(L,es)}function _getFullPath(L,ei){return L.serialize(ei).split("#")[0]+"#"}ei.getFullPath=getFullPath,ei._getFullPath=_getFullPath;let ep=/#\/?$/;function normalizeId(L){return L?L.replace(ep,""):""}ei.normalizeId=normalizeId,ei.resolveUrl=function(L,ei,ea){return ea=normalizeId(ea),L.resolve(ei,ea)};let eh=/^[a-z_][-a-z0-9._]*$/i;ei.getSchemaRefs=function(L,ei){if("boolean"==typeof L)return{};let{schemaId:ea,uriResolver:es}=this.opts,ed=normalizeId(L[ea]||ei),eu={"":ed},ep=getFullPath(es,ed,!1),ef={},em=new Set;return ec(L,{allKeys:!0},(L,ei,es,el)=>{if(void 0===el)return;let ec=ep+ei,ed=eu[el];function addRef(ei){let ea=this.opts.uriResolver.resolve;if(ei=normalizeId(ed?ea(ed,ei):ei),em.has(ei))throw ambiguos(ei);em.add(ei);let es=this.refs[ei];return"string"==typeof es&&(es=this.refs[es]),"object"==typeof es?checkAmbiguosRef(L,es.schema,ei):ei!==normalizeId(ec)&&("#"===ei[0]?(checkAmbiguosRef(L,ef[ei],ei),ef[ei]=L):this.refs[ei]=ec),ei}function addAnchor(L){if("string"==typeof L){if(!eh.test(L))throw Error(`invalid anchor "${L}"`);addRef.call(this,`#${L}`)}}"string"==typeof L[ea]&&(ed=addRef.call(this,L[ea])),addAnchor.call(this,L.$anchor),addAnchor.call(this,L.$dynamicAnchor),eu[ei]=ed}),ef;function checkAmbiguosRef(L,ei,ea){if(void 0!==ei&&!el(L,ei))throw ambiguos(ea)}function ambiguos(L){return Error(`reference "${L}" resolves to more than one schema`)}}},19324(L,ei){"use strict";Object.defineProperty(ei,"__esModule",{value:!0}),ei.getRules=ei.isJSONType=void 0;let ea=new Set(["string","number","integer","boolean","null","object","array"]);ei.isJSONType=function(L){return"string"==typeof L&&ea.has(L)},ei.getRules=function(){let L={number:{type:"number",rules:[]},string:{type:"string",rules:[]},array:{type:"array",rules:[]},object:{type:"object",rules:[]}};return{types:{...L,integer:!0,boolean:!0,null:!0},rules:[{rules:[]},L.number,L.string,L.array,L.object],post:{rules:[]},all:{},keywords:{}}}},16435(L,ei,ea){"use strict";var es;Object.defineProperty(ei,"__esModule",{value:!0}),ei.checkStrictMode=ei.getErrorPath=ei.Type=ei.useFunc=ei.setEvaluated=ei.evaluatedPropsToName=ei.mergeEvaluated=ei.eachItem=ei.unescapeJsonPointer=ei.escapeJsonPointer=ei.escapeFragment=ei.unescapeFragment=ei.schemaRefOrVal=ei.schemaHasRulesButRef=ei.schemaHasRules=ei.checkUnknownRules=ei.alwaysValidSchema=ei.toHash=void 0;let el=ea(46133),ec=ea(9872);function checkUnknownRules(L,ei=L.schema){let{opts:ea,self:es}=L;if(!ea.strictSchema||"boolean"==typeof ei)return;let el=es.RULES.keywords;for(let ea in ei)el[ea]||checkStrictMode(L,`unknown keyword: "${ea}"`)}function schemaHasRules(L,ei){if("boolean"==typeof L)return!L;for(let ea in L)if(ei[ea])return!0;return!1}function escapeJsonPointer(L){return"number"==typeof L?`${L}`:L.replace(/~/g,"~0").replace(/\//g,"~1")}function unescapeJsonPointer(L){return L.replace(/~1/g,"/").replace(/~0/g,"~")}function makeMergeEvaluated({mergeNames:L,mergeToName:ei,mergeValues:ea,resultToName:es}){return(ec,ed,eu,ep)=>{let eh=void 0===eu?ed:eu instanceof el.Name?(ed instanceof el.Name?L(ec,ed,eu):ei(ec,ed,eu),eu):ed instanceof el.Name?(ei(ec,eu,ed),ed):ea(ed,eu);return ep!==el.Name||eh instanceof el.Name?eh:es(ec,eh)}}function evaluatedPropsToName(L,ei){if(!0===ei)return L.var("props",!0);let ea=L.var("props",(0,el._)`{}`);return void 0!==ei&&setEvaluated(L,ea,ei),ea}function setEvaluated(L,ei,ea){Object.keys(ea).forEach(ea=>L.assign((0,el._)`${ei}${(0,el.getProperty)(ea)}`,!0))}ei.toHash=function(L){let ei={};for(let ea of L)ei[ea]=!0;return ei},ei.alwaysValidSchema=function(L,ei){return"boolean"==typeof ei?ei:0===Object.keys(ei).length||(checkUnknownRules(L,ei),!schemaHasRules(ei,L.self.RULES.all))},ei.checkUnknownRules=checkUnknownRules,ei.schemaHasRules=schemaHasRules,ei.schemaHasRulesButRef=function(L,ei){if("boolean"==typeof L)return!L;for(let ea in L)if("$ref"!==ea&&ei.all[ea])return!0;return!1},ei.schemaRefOrVal=function({topSchemaRef:L,schemaPath:ei},ea,es,ec){if(!ec){if("number"==typeof ea||"boolean"==typeof ea)return ea;if("string"==typeof ea)return(0,el._)`${ea}`}return(0,el._)`${L}${ei}${(0,el.getProperty)(es)}`},ei.unescapeFragment=function(L){return unescapeJsonPointer(decodeURIComponent(L))},ei.escapeFragment=function(L){return encodeURIComponent(escapeJsonPointer(L))},ei.escapeJsonPointer=escapeJsonPointer,ei.unescapeJsonPointer=unescapeJsonPointer,ei.eachItem=function(L,ei){if(Array.isArray(L))for(let ea of L)ei(ea);else ei(L)},ei.mergeEvaluated={props:makeMergeEvaluated({mergeNames:(L,ei,ea)=>L.if((0,el._)`${ea} !== true && ${ei} !== undefined`,()=>{L.if((0,el._)`${ei} === true`,()=>L.assign(ea,!0),()=>L.assign(ea,(0,el._)`${ea} || {}`).code((0,el._)`Object.assign(${ea}, ${ei})`))}),mergeToName:(L,ei,ea)=>L.if((0,el._)`${ea} !== true`,()=>{!0===ei?L.assign(ea,!0):(L.assign(ea,(0,el._)`${ea} || {}`),setEvaluated(L,ea,ei))}),mergeValues:(L,ei)=>!0===L||{...L,...ei},resultToName:evaluatedPropsToName}),items:makeMergeEvaluated({mergeNames:(L,ei,ea)=>L.if((0,el._)`${ea} !== true && ${ei} !== undefined`,()=>L.assign(ea,(0,el._)`${ei} === true ? true : ${ea} > ${ei} ? ${ea} : ${ei}`)),mergeToName:(L,ei,ea)=>L.if((0,el._)`${ea} !== true`,()=>L.assign(ea,!0===ei||(0,el._)`${ea} > ${ei} ? ${ea} : ${ei}`)),mergeValues:(L,ei)=>!0===L||Math.max(L,ei),resultToName:(L,ei)=>L.var("items",ei)})},ei.evaluatedPropsToName=evaluatedPropsToName,ei.setEvaluated=setEvaluated;let ed={};function checkStrictMode(L,ei,ea=L.opts.strictSchema){if(ea){if(ei=`strict mode: ${ei}`,!0===ea)throw Error(ei);L.self.logger.warn(ei)}}ei.useFunc=function(L,ei){return L.scopeValue("func",{ref:ei,code:ed[ei.code]||(ed[ei.code]=new ec._Code(ei.code))})},function(L){L[L.Num=0]="Num",L[L.Str=1]="Str"}(es||(ei.Type=es={})),ei.getErrorPath=function(L,ei,ea){if(L instanceof el.Name){let ec=ei===es.Num;return ea?ec?(0,el._)`"[" + ${L} + "]"`:(0,el._)`"['" + ${L} + "']"`:ec?(0,el._)`"/" + ${L}`:(0,el._)`"/" + ${L}.replace(/~/g, "~0").replace(/\\//g, "~1")`}return ea?(0,el.getProperty)(L).toString():"/"+escapeJsonPointer(L)},ei.checkStrictMode=checkStrictMode},75215(L,ei){"use strict";function shouldUseGroup(L,ei){return ei.rules.some(ei=>shouldUseRule(L,ei))}function shouldUseRule(L,ei){var ea;return void 0!==L[ei.keyword]||(null==(ea=ei.definition.implements)?void 0:ea.some(ei=>void 0!==L[ei]))}Object.defineProperty(ei,"__esModule",{value:!0}),ei.shouldUseRule=ei.shouldUseGroup=ei.schemaHasRulesForType=void 0,ei.schemaHasRulesForType=function({schema:L,self:ei},ea){let es=ei.RULES.types[ea];return es&&!0!==es&&shouldUseGroup(L,es)},ei.shouldUseGroup=shouldUseGroup,ei.shouldUseRule=shouldUseRule},8503(L,ei,ea){"use strict";Object.defineProperty(ei,"__esModule",{value:!0}),ei.boolOrEmptySchema=ei.topBoolOrEmptySchema=void 0;let es=ea(29700),el=ea(46133),ec=ea(50951),ed={message:"boolean schema is false"};function falseSchemaError(L,ei){let{gen:ea,data:el}=L,ec={gen:ea,keyword:"false schema",data:el,schema:!1,schemaCode:!1,schemaValue:!1,params:{},it:L};(0,es.reportError)(ec,ed,void 0,ei)}ei.topBoolOrEmptySchema=function(L){let{gen:ei,schema:ea,validateName:es}=L;!1===ea?falseSchemaError(L,!1):"object"==typeof ea&&!0===ea.$async?ei.return(ec.default.data):(ei.assign((0,el._)`${es}.errors`,null),ei.return(!0))},ei.boolOrEmptySchema=function(L,ei){let{gen:ea,schema:es}=L;!1===es?(ea.var(ei,!1),falseSchemaError(L)):ea.var(ei,!0)}},28768(L,ei,ea){"use strict";var es;Object.defineProperty(ei,"__esModule",{value:!0}),ei.reportTypeError=ei.checkDataTypes=ei.checkDataType=ei.coerceAndCheckDataType=ei.getJSONTypes=ei.getSchemaTypes=ei.DataType=void 0;let el=ea(19324),ec=ea(75215),ed=ea(29700),eu=ea(46133),ep=ea(16435);function getJSONTypes(L){let ei=Array.isArray(L)?L:L?[L]:[];if(ei.every(el.isJSONType))return ei;throw Error("type must be JSONType or JSONType[]: "+ei.join(","))}!function(L){L[L.Correct=0]="Correct",L[L.Wrong=1]="Wrong"}(es||(ei.DataType=es={})),ei.getSchemaTypes=function(L){let ei=getJSONTypes(L.type);if(ei.includes("null")){if(!1===L.nullable)throw Error("type: null contradicts nullable: false")}else{if(!ei.length&&void 0!==L.nullable)throw Error('"nullable" cannot be used without "type"');!0===L.nullable&&ei.push("null")}return ei},ei.getJSONTypes=getJSONTypes,ei.coerceAndCheckDataType=function(L,ei){let{gen:ea,data:el,opts:ed}=L,eu=coerceToTypes(ei,ed.coerceTypes),ep=ei.length>0&&!(0===eu.length&&1===ei.length&&(0,ec.schemaHasRulesForType)(L,ei[0]));if(ep){let ec=checkDataTypes(ei,el,ed.strictNumbers,es.Wrong);ea.if(ec,()=>{eu.length?coerceData(L,ei,eu):reportTypeError(L)})}return ep};let eh=new Set(["string","number","integer","boolean","null"]);function coerceToTypes(L,ei){return ei?L.filter(L=>eh.has(L)||"array"===ei&&"array"===L):[]}function coerceData(L,ei,ea){let{gen:es,data:el,opts:ec}=L,ed=es.let("dataType",(0,eu._)`typeof ${el}`),ep=es.let("coerced",(0,eu._)`undefined`);for(let L of("array"===ec.coerceTypes&&es.if((0,eu._)`${ed} == 'object' && Array.isArray(${el}) && ${el}.length == 1`,()=>es.assign(el,(0,eu._)`${el}[0]`).assign(ed,(0,eu._)`typeof ${el}`).if(checkDataTypes(ei,el,ec.strictNumbers),()=>es.assign(ep,el))),es.if((0,eu._)`${ep} !== undefined`),ea))(eh.has(L)||"array"===L&&"array"===ec.coerceTypes)&&coerceSpecificType(L);function coerceSpecificType(L){switch(L){case"string":es.elseIf((0,eu._)`${ed} == "number" || ${ed} == "boolean"`).assign(ep,(0,eu._)`"" + ${el}`).elseIf((0,eu._)`${el} === null`).assign(ep,(0,eu._)`""`);return;case"number":es.elseIf((0,eu._)`${ed} == "boolean" || ${el} === null
|
|
112
112
|
|| (${ed} == "string" && ${el} && ${el} == +${el})`).assign(ep,(0,eu._)`+${el}`);return;case"integer":es.elseIf((0,eu._)`${ed} === "boolean" || ${el} === null
|
|
113
113
|
|| (${ed} === "string" && ${el} && ${el} == +${el} && !(${el} % 1))`).assign(ep,(0,eu._)`+${el}`);return;case"boolean":es.elseIf((0,eu._)`${el} === "false" || ${el} === 0 || ${el} === null`).assign(ep,!1).elseIf((0,eu._)`${el} === "true" || ${el} === 1`).assign(ep,!0);return;case"null":es.elseIf((0,eu._)`${el} === "" || ${el} === 0 || ${el} === false`),es.assign(ep,null);return;case"array":es.elseIf((0,eu._)`${ed} === "string" || ${ed} === "number"
|
|
114
114
|
|| ${ed} === "boolean" || ${el} === null`).assign(ep,(0,eu._)`[${el}]`)}}es.else(),reportTypeError(L),es.endIf(),es.if((0,eu._)`${ep} !== undefined`,()=>{es.assign(el,ep),assignParentData(L,ep)})}function assignParentData({gen:L,parentData:ei,parentDataProperty:ea},es){L.if((0,eu._)`${ei} !== undefined`,()=>L.assign((0,eu._)`${ei}[${ea}]`,es))}function checkDataType(L,ei,ea,el=es.Correct){let ec,ed=el===es.Correct?eu.operators.EQ:eu.operators.NEQ;switch(L){case"null":return(0,eu._)`${ei} ${ed} null`;case"array":ec=(0,eu._)`Array.isArray(${ei})`;break;case"object":ec=(0,eu._)`${ei} && typeof ${ei} == "object" && !Array.isArray(${ei})`;break;case"integer":ec=numCond((0,eu._)`!(${ei} % 1) && !isNaN(${ei})`);break;case"number":ec=numCond();break;default:return(0,eu._)`typeof ${ei} ${ed} ${L}`}return el===es.Correct?ec:(0,eu.not)(ec);function numCond(L=eu.nil){return(0,eu.and)((0,eu._)`typeof ${ei} == "number"`,L,ea?(0,eu._)`isFinite(${ei})`:eu.nil)}}function checkDataTypes(L,ei,ea,es){let el;if(1===L.length)return checkDataType(L[0],ei,ea,es);let ec=(0,ep.toHash)(L);if(ec.array&&ec.object){let L=(0,eu._)`typeof ${ei} != "object"`;el=ec.null?L:(0,eu._)`!${ei} || ${L}`,delete ec.null,delete ec.array,delete ec.object}else el=eu.nil;for(let L in ec.number&&delete ec.integer,ec)el=(0,eu.and)(el,checkDataType(L,ei,ea,es));return el}ei.checkDataType=checkDataType,ei.checkDataTypes=checkDataTypes;let ef={message:({schema:L})=>`must be ${L}`,params:({schema:L,schemaValue:ei})=>"string"==typeof L?(0,eu._)`{type: ${L}}`:(0,eu._)`{type: ${ei}}`};function reportTypeError(L){let ei=getTypeErrorContext(L);(0,ed.reportError)(ei,ef)}function getTypeErrorContext(L){let{gen:ei,data:ea,schema:es}=L,el=(0,ep.schemaRefOrVal)(L,es,"type");return{gen:ei,keyword:"type",data:ea,schema:es.type,schemaCode:el,schemaValue:el,parentSchema:es,params:{},it:L}}ei.reportTypeError=reportTypeError},26430(L,ei,ea){"use strict";Object.defineProperty(ei,"__esModule",{value:!0}),ei.assignDefaults=void 0;let es=ea(46133),el=ea(16435);function assignDefault(L,ei,ea){let{gen:ec,compositeRule:ed,data:eu,opts:ep}=L;if(void 0===ea)return;let eh=(0,es._)`${eu}${(0,es.getProperty)(ei)}`;if(ed)return void(0,el.checkStrictMode)(L,`default is ignored for: ${eh}`);let ef=(0,es._)`${eh} === undefined`;"empty"===ep.useDefaults&&(ef=(0,es._)`${ef} || ${eh} === null || ${eh} === ""`),ec.if(ef,(0,es._)`${eh} = ${(0,es.stringify)(ea)}`)}ei.assignDefaults=function(L,ei){let{properties:ea,items:es}=L.schema;if("object"===ei&&ea)for(let ei in ea)assignDefault(L,ei,ea[ei].default);else"array"===ei&&Array.isArray(es)&&es.forEach((ei,ea)=>assignDefault(L,ea,ei.default))}},41722(L,ei,ea){"use strict";Object.defineProperty(ei,"__esModule",{value:!0}),ei.getData=ei.KeywordCxt=ei.validateFunctionCode=void 0;let es=ea(8503),el=ea(28768),ec=ea(75215),ed=ea(28768),eu=ea(26430),ep=ea(99657),eh=ea(89679),ef=ea(46133),em=ea(50951),eg=ea(72155),ey=ea(16435),eb=ea(29700);function validateFunction({gen:L,validateName:ei,schema:ea,schemaEnv:es,opts:el},ec){el.code.es5?L.func(ei,(0,ef._)`${em.default.data}, ${em.default.valCxt}`,es.$async,()=>{L.code((0,ef._)`"use strict"; ${funcSourceUrl(ea,el)}`),destructureValCxtES5(L,el),L.code(ec)}):L.func(ei,(0,ef._)`${em.default.data}, ${destructureValCxt(el)}`,es.$async,()=>L.code(funcSourceUrl(ea,el)).code(ec))}function destructureValCxt(L){return(0,ef._)`{${em.default.instancePath}="", ${em.default.parentData}, ${em.default.parentDataProperty}, ${em.default.rootData}=${em.default.data}${L.dynamicRef?(0,ef._)`, ${em.default.dynamicAnchors}={}`:ef.nil}}={}`}function destructureValCxtES5(L,ei){L.if(em.default.valCxt,()=>{L.var(em.default.instancePath,(0,ef._)`${em.default.valCxt}.${em.default.instancePath}`),L.var(em.default.parentData,(0,ef._)`${em.default.valCxt}.${em.default.parentData}`),L.var(em.default.parentDataProperty,(0,ef._)`${em.default.valCxt}.${em.default.parentDataProperty}`),L.var(em.default.rootData,(0,ef._)`${em.default.valCxt}.${em.default.rootData}`),ei.dynamicRef&&L.var(em.default.dynamicAnchors,(0,ef._)`${em.default.valCxt}.${em.default.dynamicAnchors}`)},()=>{L.var(em.default.instancePath,(0,ef._)`""`),L.var(em.default.parentData,(0,ef._)`undefined`),L.var(em.default.parentDataProperty,(0,ef._)`undefined`),L.var(em.default.rootData,em.default.data),ei.dynamicRef&&L.var(em.default.dynamicAnchors,(0,ef._)`{}`)})}function topSchemaObjCode(L){let{schema:ei,opts:ea,gen:es}=L;validateFunction(L,()=>{ea.$comment&&ei.$comment&&commentKeyword(L),checkNoDefault(L),es.let(em.default.vErrors,null),es.let(em.default.errors,0),ea.unevaluated&&resetEvaluated(L),typeAndKeywords(L),returnResults(L)})}function resetEvaluated(L){let{gen:ei,validateName:ea}=L;L.evaluated=ei.const("evaluated",(0,ef._)`${ea}.evaluated`),ei.if((0,ef._)`${L.evaluated}.dynamicProps`,()=>ei.assign((0,ef._)`${L.evaluated}.props`,(0,ef._)`undefined`)),ei.if((0,ef._)`${L.evaluated}.dynamicItems`,()=>ei.assign((0,ef._)`${L.evaluated}.items`,(0,ef._)`undefined`))}function funcSourceUrl(L,ei){let ea="object"==typeof L&&L[ei.schemaId];return ea&&(ei.code.source||ei.code.process)?(0,ef._)`/*# sourceURL=${ea} */`:ef.nil}function subschemaCode(L,ei){isSchemaObj(L)&&(checkKeywords(L),schemaCxtHasRules(L))?subSchemaObjCode(L,ei):(0,es.boolOrEmptySchema)(L,ei)}function schemaCxtHasRules({schema:L,self:ei}){if("boolean"==typeof L)return!L;for(let ea in L)if(ei.RULES.all[ea])return!0;return!1}function isSchemaObj(L){return"boolean"!=typeof L.schema}function subSchemaObjCode(L,ei){let{schema:ea,gen:es,opts:el}=L;el.$comment&&ea.$comment&&commentKeyword(L),updateContext(L),checkAsyncSchema(L);let ec=es.const("_errs",em.default.errors);typeAndKeywords(L,ec),es.var(ei,(0,ef._)`${ec} === ${em.default.errors}`)}function checkKeywords(L){(0,ey.checkUnknownRules)(L),checkRefsAndKeywords(L)}function typeAndKeywords(L,ei){if(L.opts.jtd)return schemaKeywords(L,[],!1,ei);let ea=(0,el.getSchemaTypes)(L.schema),es=(0,el.coerceAndCheckDataType)(L,ea);schemaKeywords(L,ea,!es,ei)}function checkRefsAndKeywords(L){let{schema:ei,errSchemaPath:ea,opts:es,self:el}=L;ei.$ref&&es.ignoreKeywordsWithRef&&(0,ey.schemaHasRulesButRef)(ei,el.RULES)&&el.logger.warn(`$ref: keywords ignored in schema at path "${ea}"`)}function checkNoDefault(L){let{schema:ei,opts:ea}=L;void 0!==ei.default&&ea.useDefaults&&ea.strictSchema&&(0,ey.checkStrictMode)(L,"default is ignored in the schema root")}function updateContext(L){let ei=L.schema[L.opts.schemaId];ei&&(L.baseId=(0,eg.resolveUrl)(L.opts.uriResolver,L.baseId,ei))}function checkAsyncSchema(L){if(L.schema.$async&&!L.schemaEnv.$async)throw Error("async schema in sync schema")}function commentKeyword({gen:L,schemaEnv:ei,schema:ea,errSchemaPath:es,opts:el}){let ec=ea.$comment;if(!0===el.$comment)L.code((0,ef._)`${em.default.self}.logger.log(${ec})`);else if("function"==typeof el.$comment){let ea=(0,ef.str)`${es}/$comment`,el=L.scopeValue("root",{ref:ei.root});L.code((0,ef._)`${em.default.self}.opts.$comment(${ec}, ${ea}, ${el}.schema)`)}}function returnResults(L){let{gen:ei,schemaEnv:ea,validateName:es,ValidationError:el,opts:ec}=L;ea.$async?ei.if((0,ef._)`${em.default.errors} === 0`,()=>ei.return(em.default.data),()=>ei.throw((0,ef._)`new ${el}(${em.default.vErrors})`)):(ei.assign((0,ef._)`${es}.errors`,em.default.vErrors),ec.unevaluated&&assignEvaluated(L),ei.return((0,ef._)`${em.default.errors} === 0`))}function assignEvaluated({gen:L,evaluated:ei,props:ea,items:es}){ea instanceof ef.Name&&L.assign((0,ef._)`${ei}.props`,ea),es instanceof ef.Name&&L.assign((0,ef._)`${ei}.items`,es)}function schemaKeywords(L,ei,ea,es){let{gen:el,schema:eu,data:ep,allErrors:eh,opts:eg,self:eb}=L,{RULES:e_}=eb;if(eu.$ref&&(eg.ignoreKeywordsWithRef||!(0,ey.schemaHasRulesButRef)(eu,e_)))return void el.block(()=>keywordCode(L,"$ref",e_.all.$ref.definition));function groupKeywords(ey){(0,ec.shouldUseGroup)(eu,ey)&&(ey.type?(el.if((0,ed.checkDataType)(ey.type,ep,eg.strictNumbers)),iterateKeywords(L,ey),1===ei.length&&ei[0]===ey.type&&ea&&(el.else(),(0,ed.reportTypeError)(L)),el.endIf()):iterateKeywords(L,ey),eh||el.if((0,ef._)`${em.default.errors} === ${es||0}`))}eg.jtd||checkStrictTypes(L,ei),el.block(()=>{for(let L of e_.rules)groupKeywords(L);groupKeywords(e_.post)})}function iterateKeywords(L,ei){let{gen:ea,schema:es,opts:{useDefaults:el}}=L;el&&(0,eu.assignDefaults)(L,ei.type),ea.block(()=>{for(let ea of ei.rules)(0,ec.shouldUseRule)(es,ea)&&keywordCode(L,ea.keyword,ea.definition,ei.type)})}function checkStrictTypes(L,ei){!L.schemaEnv.meta&&L.opts.strictTypes&&(checkContextTypes(L,ei),L.opts.allowUnionTypes||checkMultipleTypes(L,ei),checkKeywordTypes(L,L.dataTypes))}function checkContextTypes(L,ei){if(ei.length){if(!L.dataTypes.length){L.dataTypes=ei;return}ei.forEach(ei=>{includesType(L.dataTypes,ei)||strictTypesError(L,`type "${ei}" not allowed by context "${L.dataTypes.join(",")}"`)}),narrowSchemaTypes(L,ei)}}function checkMultipleTypes(L,ei){ei.length>1&&!(2===ei.length&&ei.includes("null"))&&strictTypesError(L,"use allowUnionTypes to allow union type keyword")}function checkKeywordTypes(L,ei){let ea=L.self.RULES.all;for(let es in ea){let el=ea[es];if("object"==typeof el&&(0,ec.shouldUseRule)(L.schema,el)){let{type:ea}=el.definition;ea.length&&!ea.some(L=>hasApplicableType(ei,L))&&strictTypesError(L,`missing type "${ea.join(",")}" for keyword "${es}"`)}}}function hasApplicableType(L,ei){return L.includes(ei)||"number"===ei&&L.includes("integer")}function includesType(L,ei){return L.includes(ei)||"integer"===ei&&L.includes("number")}function narrowSchemaTypes(L,ei){let ea=[];for(let es of L.dataTypes)includesType(ei,es)?ea.push(es):ei.includes("integer")&&"number"===es&&ea.push("integer");L.dataTypes=ea}function strictTypesError(L,ei){let ea=L.schemaEnv.baseId+L.errSchemaPath;ei+=` at "${ea}" (strictTypes)`,(0,ey.checkStrictMode)(L,ei,L.opts.strictTypes)}ei.validateFunctionCode=function(L){isSchemaObj(L)&&(checkKeywords(L),schemaCxtHasRules(L))?topSchemaObjCode(L):validateFunction(L,()=>(0,es.topBoolOrEmptySchema)(L))};let KeywordCxt=class KeywordCxt{constructor(L,ei,ea){if((0,ep.validateKeywordUsage)(L,ei,ea),this.gen=L.gen,this.allErrors=L.allErrors,this.keyword=ea,this.data=L.data,this.schema=L.schema[ea],this.$data=ei.$data&&L.opts.$data&&this.schema&&this.schema.$data,this.schemaValue=(0,ey.schemaRefOrVal)(L,this.schema,ea,this.$data),this.schemaType=ei.schemaType,this.parentSchema=L.schema,this.params={},this.it=L,this.def=ei,this.$data)this.schemaCode=L.gen.const("vSchema",getData(this.$data,L));else if(this.schemaCode=this.schemaValue,!(0,ep.validSchemaType)(this.schema,ei.schemaType,ei.allowUndefined))throw Error(`${ea} value must be ${JSON.stringify(ei.schemaType)}`);("code"in ei?ei.trackErrors:!1!==ei.errors)&&(this.errsCount=L.gen.const("_errs",em.default.errors))}result(L,ei,ea){this.failResult((0,ef.not)(L),ei,ea)}failResult(L,ei,ea){this.gen.if(L),ea?ea():this.error(),ei?(this.gen.else(),ei(),this.allErrors&&this.gen.endIf()):this.allErrors?this.gen.endIf():this.gen.else()}pass(L,ei){this.failResult((0,ef.not)(L),void 0,ei)}fail(L){if(void 0===L){this.error(),this.allErrors||this.gen.if(!1);return}this.gen.if(L),this.error(),this.allErrors?this.gen.endIf():this.gen.else()}fail$data(L){if(!this.$data)return this.fail(L);let{schemaCode:ei}=this;this.fail((0,ef._)`${ei} !== undefined && (${(0,ef.or)(this.invalid$data(),L)})`)}error(L,ei,ea){if(ei){this.setParams(ei),this._error(L,ea),this.setParams({});return}this._error(L,ea)}_error(L,ei){(L?eb.reportExtraError:eb.reportError)(this,this.def.error,ei)}$dataError(){(0,eb.reportError)(this,this.def.$dataError||eb.keyword$DataError)}reset(){if(void 0===this.errsCount)throw Error('add "trackErrors" to keyword definition');(0,eb.resetErrorsCount)(this.gen,this.errsCount)}ok(L){this.allErrors||this.gen.if(L)}setParams(L,ei){ei?Object.assign(this.params,L):this.params=L}block$data(L,ei,ea=ef.nil){this.gen.block(()=>{this.check$data(L,ea),ei()})}check$data(L=ef.nil,ei=ef.nil){if(!this.$data)return;let{gen:ea,schemaCode:es,schemaType:el,def:ec}=this;ea.if((0,ef.or)((0,ef._)`${es} === undefined`,ei)),L!==ef.nil&&ea.assign(L,!0),(el.length||ec.validateSchema)&&(ea.elseIf(this.invalid$data()),this.$dataError(),L!==ef.nil&&ea.assign(L,!1)),ea.else()}invalid$data(){let{gen:L,schemaCode:ei,schemaType:ea,def:es,it:el}=this;return(0,ef.or)(wrong$DataType(),invalid$DataSchema());function wrong$DataType(){if(ea.length){if(!(ei instanceof ef.Name))throw Error("ajv implementation error");let L=Array.isArray(ea)?ea:[ea];return(0,ef._)`${(0,ed.checkDataTypes)(L,ei,el.opts.strictNumbers,ed.DataType.Wrong)}`}return ef.nil}function invalid$DataSchema(){if(es.validateSchema){let ea=L.scopeValue("validate$data",{ref:es.validateSchema});return(0,ef._)`!${ea}(${ei})`}return ef.nil}}subschema(L,ei){let ea=(0,eh.getSubschema)(this.it,L);(0,eh.extendSubschemaData)(ea,this.it,L),(0,eh.extendSubschemaMode)(ea,L);let es={...this.it,...ea,items:void 0,props:void 0};return subschemaCode(es,ei),es}mergeEvaluated(L,ei){let{it:ea,gen:es}=this;ea.opts.unevaluated&&(!0!==ea.props&&void 0!==L.props&&(ea.props=ey.mergeEvaluated.props(es,L.props,ea.props,ei)),!0!==ea.items&&void 0!==L.items&&(ea.items=ey.mergeEvaluated.items(es,L.items,ea.items,ei)))}mergeValidEvaluated(L,ei){let{it:ea,gen:es}=this;if(ea.opts.unevaluated&&(!0!==ea.props||!0!==ea.items))return es.if(ei,()=>this.mergeEvaluated(L,ef.Name)),!0}};function keywordCode(L,ei,ea,es){let el=new KeywordCxt(L,ea,ei);"code"in ea?ea.code(el,es):el.$data&&ea.validate?(0,ep.funcKeywordCode)(el,ea):"macro"in ea?(0,ep.macroKeywordCode)(el,ea):(ea.compile||ea.validate)&&(0,ep.funcKeywordCode)(el,ea)}ei.KeywordCxt=KeywordCxt;let e_=/^\/(?:[^~]|~0|~1)*$/,ev=/^([0-9]+)(#|\/(?:[^~]|~0|~1)*)?$/;function getData(L,{dataLevel:ei,dataNames:ea,dataPathArr:es}){let el,ec;if(""===L)return em.default.rootData;if("/"===L[0]){if(!e_.test(L))throw Error(`Invalid JSON-pointer: ${L}`);el=L,ec=em.default.rootData}else{let ed=ev.exec(L);if(!ed)throw Error(`Invalid JSON-pointer: ${L}`);let eu=+ed[1];if("#"===(el=ed[2])){if(eu>=ei)throw Error(errorMsg("property/index",eu));return es[ei-eu]}if(eu>ei)throw Error(errorMsg("data",eu));if(ec=ea[ei-eu],!el)return ec}let ed=ec;for(let L of el.split("/"))L&&(ec=(0,ef._)`${ec}${(0,ef.getProperty)((0,ey.unescapeJsonPointer)(L))}`,ed=(0,ef._)`${ed} && ${ec}`);return ed;function errorMsg(L,ea){return`Cannot access ${L} ${ea} levels up, current level is ${ei}`}}ei.getData=getData},99657(L,ei,ea){"use strict";Object.defineProperty(ei,"__esModule",{value:!0}),ei.validateKeywordUsage=ei.validSchemaType=ei.funcKeywordCode=ei.macroKeywordCode=void 0;let es=ea(46133),el=ea(50951),ec=ea(34357),ed=ea(29700);function modifyData(L){let{gen:ei,data:ea,it:el}=L;ei.if(el.parentData,()=>ei.assign(ea,(0,es._)`${el.parentData}[${el.parentDataProperty}]`))}function addErrs(L,ei){let{gen:ea}=L;ea.if((0,es._)`Array.isArray(${ei})`,()=>{ea.assign(el.default.vErrors,(0,es._)`${el.default.vErrors} === null ? ${ei} : ${el.default.vErrors}.concat(${ei})`).assign(el.default.errors,(0,es._)`${el.default.vErrors}.length`),(0,ed.extendErrors)(L)},()=>L.error())}function checkAsyncKeyword({schemaEnv:L},ei){if(ei.async&&!L.$async)throw Error("async keyword in sync schema")}function useKeyword(L,ei,ea){if(void 0===ea)throw Error(`keyword "${ei}" failed to compile`);return L.scopeValue("keyword","function"==typeof ea?{ref:ea}:{ref:ea,code:(0,es.stringify)(ea)})}ei.macroKeywordCode=function(L,ei){let{gen:ea,keyword:el,schema:ec,parentSchema:ed,it:eu}=L,ep=ei.macro.call(eu.self,ec,ed,eu),eh=useKeyword(ea,el,ep);!1!==eu.opts.validateSchema&&eu.self.validateSchema(ep,!0);let ef=ea.name("valid");L.subschema({schema:ep,schemaPath:es.nil,errSchemaPath:`${eu.errSchemaPath}/${el}`,topSchemaRef:eh,compositeRule:!0},ef),L.pass(ef,()=>L.error(!0))},ei.funcKeywordCode=function(L,ei){var ea;let{gen:ed,keyword:eu,schema:ep,parentSchema:eh,$data:ef,it:em}=L;checkAsyncKeyword(em,ei);let eg=useKeyword(ed,eu,!ef&&ei.compile?ei.compile.call(em.self,ep,eh,em):ei.validate),ey=ed.let("valid");function validateKeyword(){if(!1===ei.errors)assignValid(),ei.modifying&&modifyData(L),reportErrs(()=>L.error());else{let ea=ei.async?validateAsync():validateSync();ei.modifying&&modifyData(L),reportErrs(()=>addErrs(L,ea))}}function validateAsync(){let L=ed.let("ruleErrs",null);return ed.try(()=>assignValid((0,es._)`await `),ei=>ed.assign(ey,!1).if((0,es._)`${ei} instanceof ${em.ValidationError}`,()=>ed.assign(L,(0,es._)`${ei}.errors`),()=>ed.throw(ei))),L}function validateSync(){let L=(0,es._)`${eg}.errors`;return ed.assign(L,null),assignValid(es.nil),L}function assignValid(ea=ei.async?(0,es._)`await `:es.nil){let eu=em.opts.passContext?el.default.this:el.default.self,ep=!("compile"in ei&&!ef||!1===ei.schema);ed.assign(ey,(0,es._)`${ea}${(0,ec.callValidateCode)(L,eg,eu,ep)}`,ei.modifying)}function reportErrs(L){var ea;ed.if((0,es.not)(null!=(ea=ei.valid)?ea:ey),L)}L.block$data(ey,validateKeyword),L.ok(null!=(ea=ei.valid)?ea:ey)},ei.validSchemaType=function(L,ei,ea=!1){return!ei.length||ei.some(ei=>"array"===ei?Array.isArray(L):"object"===ei?L&&"object"==typeof L&&!Array.isArray(L):typeof L==ei||ea&&void 0===L)},ei.validateKeywordUsage=function({schema:L,opts:ei,self:ea,errSchemaPath:es},el,ec){if(Array.isArray(el.keyword)?!el.keyword.includes(ec):el.keyword!==ec)throw Error("ajv implementation error");let ed=el.dependencies;if(null==ed?void 0:ed.some(ei=>!Object.prototype.hasOwnProperty.call(L,ei)))throw Error(`parent schema must have dependencies of ${ec}: ${ed.join(",")}`);if(el.validateSchema&&!el.validateSchema(L[ec])){let L=`keyword "${ec}" value is invalid at path "${es}": `+ea.errorsText(el.validateSchema.errors);if("log"===ei.validateSchema)ea.logger.error(L);else throw Error(L)}}},89679(L,ei,ea){"use strict";Object.defineProperty(ei,"__esModule",{value:!0}),ei.extendSubschemaMode=ei.extendSubschemaData=ei.getSubschema=void 0;let es=ea(46133),el=ea(16435);ei.getSubschema=function(L,{keyword:ei,schemaProp:ea,schema:ec,schemaPath:ed,errSchemaPath:eu,topSchemaRef:ep}){if(void 0!==ei&&void 0!==ec)throw Error('both "keyword" and "schema" passed, only one allowed');if(void 0!==ei){let ec=L.schema[ei];return void 0===ea?{schema:ec,schemaPath:(0,es._)`${L.schemaPath}${(0,es.getProperty)(ei)}`,errSchemaPath:`${L.errSchemaPath}/${ei}`}:{schema:ec[ea],schemaPath:(0,es._)`${L.schemaPath}${(0,es.getProperty)(ei)}${(0,es.getProperty)(ea)}`,errSchemaPath:`${L.errSchemaPath}/${ei}/${(0,el.escapeFragment)(ea)}`}}if(void 0!==ec){if(void 0===ed||void 0===eu||void 0===ep)throw Error('"schemaPath", "errSchemaPath" and "topSchemaRef" are required with "schema"');return{schema:ec,schemaPath:ed,topSchemaRef:ep,errSchemaPath:eu}}throw Error('either "keyword" or "schema" must be passed')},ei.extendSubschemaData=function(L,ei,{dataProp:ea,dataPropType:ec,data:ed,dataTypes:eu,propertyName:ep}){if(void 0!==ed&&void 0!==ea)throw Error('both "data" and "dataProp" passed, only one allowed');let{gen:eh}=ei;if(void 0!==ea){let{errorPath:ed,dataPathArr:eu,opts:ep}=ei;dataContextProps(eh.let("data",(0,es._)`${ei.data}${(0,es.getProperty)(ea)}`,!0)),L.errorPath=(0,es.str)`${ed}${(0,el.getErrorPath)(ea,ec,ep.jsPropertySyntax)}`,L.parentDataProperty=(0,es._)`${ea}`,L.dataPathArr=[...eu,L.parentDataProperty]}function dataContextProps(ea){L.data=ea,L.dataLevel=ei.dataLevel+1,L.dataTypes=[],ei.definedProperties=new Set,L.parentData=ei.data,L.dataNames=[...ei.dataNames,ea]}void 0!==ed&&(dataContextProps(ed instanceof es.Name?ed:eh.let("data",ed,!0)),void 0!==ep&&(L.propertyName=ep)),eu&&(L.dataTypes=eu)},ei.extendSubschemaMode=function(L,{jtdDiscriminator:ei,jtdMetadata:ea,compositeRule:es,createErrors:el,allErrors:ec}){void 0!==es&&(L.compositeRule=es),void 0!==el&&(L.createErrors=el),void 0!==ec&&(L.allErrors=ec),L.jtdDiscriminator=ei,L.jtdMetadata=ea}},96042(L,ei,ea){"use strict";Object.defineProperty(ei,"__esModule",{value:!0}),ei.CodeGen=ei.Name=ei.nil=ei.stringify=ei.str=ei._=ei.KeywordCxt=void 0;var es=ea(41722);Object.defineProperty(ei,"KeywordCxt",{enumerable:!0,get:function(){return es.KeywordCxt}});var el=ea(46133);Object.defineProperty(ei,"_",{enumerable:!0,get:function(){return el._}}),Object.defineProperty(ei,"str",{enumerable:!0,get:function(){return el.str}}),Object.defineProperty(ei,"stringify",{enumerable:!0,get:function(){return el.stringify}}),Object.defineProperty(ei,"nil",{enumerable:!0,get:function(){return el.nil}}),Object.defineProperty(ei,"Name",{enumerable:!0,get:function(){return el.Name}}),Object.defineProperty(ei,"CodeGen",{enumerable:!0,get:function(){return el.CodeGen}});let ec=ea(95894),ed=ea(53143),eu=ea(19324),ep=ea(82763),eh=ea(46133),ef=ea(72155),em=ea(28768),eg=ea(16435),ey=ea(91453),eb=ea(37640),defaultRegExp=(L,ei)=>new RegExp(L,ei);defaultRegExp.code="new RegExp";let e_=["removeAdditional","useDefaults","coerceTypes"],ev=new Set(["validate","serialize","parse","wrapper","root","schema","keyword","pattern","formats","validate$data","func","obj","Error"]),ew={errorDataPath:"",format:"`validateFormats: false` can be used instead.",nullable:'"nullable" keyword is supported by default.',jsonPointers:"Deprecated jsPropertySyntax can be used instead.",extendRefs:"Deprecated ignoreKeywordsWithRef can be used instead.",missingRefs:"Pass empty schema with $id that should be ignored to ajv.addSchema.",processCode:"Use option `code: {process: (code, schemaEnv: object) => string}`",sourceCode:"Use option `code: {source: true}`",strictDefaults:"It is default now, see option `strict`.",strictKeywords:"It is default now, see option `strict`.",uniqueItems:'"uniqueItems" keyword is always validated.',unknownFormats:"Disable strict mode or pass `true` to `ajv.addFormat` (or `formats` option).",cache:"Map is used as cache, schema object as key.",serialize:"Map is used as cache, schema object as key.",ajvErrors:"It is default now."},eS={ignoreKeywordsWithRef:"",jsPropertySyntax:"",unicode:'"minLength"/"maxLength" account for unicode characters by default.'},ek=200;function requiredOptions(L){var ei,ea,es,el,ec,ed,eu,ep,eh,ef,em,eg,ey,e_,ev,ew,eS,eE,eC,eT,eA,ex,eR,eP,eO;let eI=L.strict,eM=null==(ei=L.code)?void 0:ei.optimize,eD=!0===eM||void 0===eM?1:eM||0,e$=null!=(es=null==(ea=L.code)?void 0:ea.regExp)?es:defaultRegExp,eN=null!=(el=L.uriResolver)?el:eb.default;return{strictSchema:null==(ed=null!=(ec=L.strictSchema)?ec:eI)||ed,strictNumbers:null==(ep=null!=(eu=L.strictNumbers)?eu:eI)||ep,strictTypes:null!=(ef=null!=(eh=L.strictTypes)?eh:eI)?ef:"log",strictTuples:null!=(eg=null!=(em=L.strictTuples)?em:eI)?eg:"log",strictRequired:null!=(e_=null!=(ey=L.strictRequired)?ey:eI)&&e_,code:L.code?{...L.code,optimize:eD,regExp:e$}:{optimize:eD,regExp:e$},loopRequired:null!=(ev=L.loopRequired)?ev:ek,loopEnum:null!=(ew=L.loopEnum)?ew:ek,meta:null==(eS=L.meta)||eS,messages:null==(eE=L.messages)||eE,inlineRefs:null==(eC=L.inlineRefs)||eC,schemaId:null!=(eT=L.schemaId)?eT:"$id",addUsedSchema:null==(eA=L.addUsedSchema)||eA,validateSchema:null==(ex=L.validateSchema)||ex,validateFormats:null==(eR=L.validateFormats)||eR,unicodeRegExp:null==(eP=L.unicodeRegExp)||eP,int32range:null==(eO=L.int32range)||eO,uriResolver:eN}}let Ajv=class Ajv{constructor(L={}){this.schemas={},this.refs={},this.formats=Object.create(null),this._compilations=new Set,this._loading={},this._cache=new Map,L=this.opts={...L,...requiredOptions(L)};const{es5:ei,lines:ea}=this.opts.code;this.scope=new eh.ValueScope({scope:{},prefixes:ev,es5:ei,lines:ea}),this.logger=getLogger(L.logger);const es=L.validateFormats;L.validateFormats=!1,this.RULES=(0,eu.getRules)(),checkOptions.call(this,ew,L,"NOT SUPPORTED"),checkOptions.call(this,eS,L,"DEPRECATED","warn"),this._metaOpts=getMetaSchemaOptions.call(this),L.formats&&addInitialFormats.call(this),this._addVocabularies(),this._addDefaultMetaSchema(),L.keywords&&addInitialKeywords.call(this,L.keywords),"object"==typeof L.meta&&this.addMetaSchema(L.meta),addInitialSchemas.call(this),L.validateFormats=es}_addVocabularies(){this.addKeyword("$async")}_addDefaultMetaSchema(){let{$data:L,meta:ei,schemaId:ea}=this.opts,es=ey;"id"===ea&&((es={...ey}).id=es.$id,delete es.$id),ei&&L&&this.addMetaSchema(es,es[ea],!1)}defaultMeta(){let{meta:L,schemaId:ei}=this.opts;return this.opts.defaultMeta="object"==typeof L?L[ei]||L:void 0}validate(L,ei){let ea;if("string"==typeof L){if(!(ea=this.getSchema(L)))throw Error(`no schema with key or ref "${L}"`)}else ea=this.compile(L);let es=ea(ei);return"$async"in ea||(this.errors=ea.errors),es}compile(L,ei){let ea=this._addSchema(L,ei);return ea.validate||this._compileSchemaEnv(ea)}compileAsync(L,ei){if("function"!=typeof this.opts.loadSchema)throw Error("options.loadSchema should be a function");let{loadSchema:ea}=this.opts;return runCompileAsync.call(this,L,ei);async function runCompileAsync(L,ei){await loadMetaSchema.call(this,L.$schema);let ea=this._addSchema(L,ei);return ea.validate||_compileAsync.call(this,ea)}async function loadMetaSchema(L){L&&!this.getSchema(L)&&await runCompileAsync.call(this,{$ref:L},!0)}async function _compileAsync(L){try{return this._compileSchemaEnv(L)}catch(ei){if(!(ei instanceof ed.default))throw ei;return checkLoaded.call(this,ei),await loadMissingSchema.call(this,ei.missingSchema),_compileAsync.call(this,L)}}function checkLoaded({missingSchema:L,missingRef:ei}){if(this.refs[L])throw Error(`AnySchema ${L} is loaded but ${ei} cannot be resolved`)}async function loadMissingSchema(L){let ea=await _loadSchema.call(this,L);this.refs[L]||await loadMetaSchema.call(this,ea.$schema),this.refs[L]||this.addSchema(ea,L,ei)}async function _loadSchema(L){let ei=this._loading[L];if(ei)return ei;try{return await (this._loading[L]=ea(L))}finally{delete this._loading[L]}}}addSchema(L,ei,ea,es=this.opts.validateSchema){let el;if(Array.isArray(L)){for(let ei of L)this.addSchema(ei,void 0,ea,es);return this}if("object"==typeof L){let{schemaId:ei}=this.opts;if(void 0!==(el=L[ei])&&"string"!=typeof el)throw Error(`schema ${ei} must be string`)}return ei=(0,ef.normalizeId)(ei||el),this._checkUnique(ei),this.schemas[ei]=this._addSchema(L,ea,ei,es,!0),this}addMetaSchema(L,ei,ea=this.opts.validateSchema){return this.addSchema(L,ei,!0,ea),this}validateSchema(L,ei){let ea;if("boolean"==typeof L)return!0;if(void 0!==(ea=L.$schema)&&"string"!=typeof ea)throw Error("$schema must be a string");if(!(ea=ea||this.opts.defaultMeta||this.defaultMeta()))return this.logger.warn("meta-schema not available"),this.errors=null,!0;let es=this.validate(ea,L);if(!es&&ei){let L="schema is invalid: "+this.errorsText();if("log"===this.opts.validateSchema)this.logger.error(L);else throw Error(L)}return es}getSchema(L){let ei;for(;"string"==typeof(ei=getSchEnv.call(this,L));)L=ei;if(void 0===ei){let{schemaId:ea}=this.opts,es=new ep.SchemaEnv({schema:{},schemaId:ea});if(!(ei=ep.resolveSchema.call(this,es,L)))return;this.refs[L]=ei}return ei.validate||this._compileSchemaEnv(ei)}removeSchema(L){if(L instanceof RegExp)return this._removeAllSchemas(this.schemas,L),this._removeAllSchemas(this.refs,L),this;switch(typeof L){case"undefined":return this._removeAllSchemas(this.schemas),this._removeAllSchemas(this.refs),this._cache.clear(),this;case"string":{let ei=getSchEnv.call(this,L);return"object"==typeof ei&&this._cache.delete(ei.schema),delete this.schemas[L],delete this.refs[L],this}case"object":{let ei=L;this._cache.delete(ei);let ea=L[this.opts.schemaId];return ea&&(ea=(0,ef.normalizeId)(ea),delete this.schemas[ea],delete this.refs[ea]),this}default:throw Error("ajv.removeSchema: invalid parameter")}}addVocabulary(L){for(let ei of L)this.addKeyword(ei);return this}addKeyword(L,ei){let ea;if("string"==typeof L)ea=L,"object"==typeof ei&&(this.logger.warn("these parameters are deprecated, see docs for addKeyword"),ei.keyword=ea);else if("object"==typeof L&&void 0===ei){if(Array.isArray(ea=(ei=L).keyword)&&!ea.length)throw Error("addKeywords: keyword must be string or non-empty array")}else throw Error("invalid addKeywords parameters");if(checkKeyword.call(this,ea,ei),!ei)return(0,eg.eachItem)(ea,L=>addRule.call(this,L)),this;keywordMetaschema.call(this,ei);let es={...ei,type:(0,em.getJSONTypes)(ei.type),schemaType:(0,em.getJSONTypes)(ei.schemaType)};return(0,eg.eachItem)(ea,0===es.type.length?L=>addRule.call(this,L,es):L=>es.type.forEach(ei=>addRule.call(this,L,es,ei))),this}getKeyword(L){let ei=this.RULES.all[L];return"object"==typeof ei?ei.definition:!!ei}removeKeyword(L){let{RULES:ei}=this;for(let ea of(delete ei.keywords[L],delete ei.all[L],ei.rules)){let ei=ea.rules.findIndex(ei=>ei.keyword===L);ei>=0&&ea.rules.splice(ei,1)}return this}addFormat(L,ei){return"string"==typeof ei&&(ei=new RegExp(ei)),this.formats[L]=ei,this}errorsText(L=this.errors,{separator:ei=", ",dataVar:ea="data"}={}){return L&&0!==L.length?L.map(L=>`${ea}${L.instancePath} ${L.message}`).reduce((L,ea)=>L+ei+ea):"No errors"}$dataMetaSchema(L,ei){let ea=this.RULES.all;for(let es of(L=JSON.parse(JSON.stringify(L)),ei)){let ei=es.split("/").slice(1),el=L;for(let L of ei)el=el[L];for(let L in ea){let ei=ea[L];if("object"!=typeof ei)continue;let{$data:es}=ei.definition,ec=el[L];es&&ec&&(el[L]=schemaOrData(ec))}}return L}_removeAllSchemas(L,ei){for(let ea in L){let es=L[ea];(!ei||ei.test(ea))&&("string"==typeof es?delete L[ea]:es&&!es.meta&&(this._cache.delete(es.schema),delete L[ea]))}}_addSchema(L,ei,ea,es=this.opts.validateSchema,el=this.opts.addUsedSchema){let ec,{schemaId:ed}=this.opts;if("object"==typeof L)ec=L[ed];else if(this.opts.jtd)throw Error("schema must be object");else if("boolean"!=typeof L)throw Error("schema must be object or boolean");let eu=this._cache.get(L);if(void 0!==eu)return eu;ea=(0,ef.normalizeId)(ec||ea);let eh=ef.getSchemaRefs.call(this,L,ea);return eu=new ep.SchemaEnv({schema:L,schemaId:ed,meta:ei,baseId:ea,localRefs:eh}),this._cache.set(eu.schema,eu),el&&!ea.startsWith("#")&&(ea&&this._checkUnique(ea),this.refs[ea]=eu),es&&this.validateSchema(L,!0),eu}_checkUnique(L){if(this.schemas[L]||this.refs[L])throw Error(`schema with key or id "${L}" already exists`)}_compileSchemaEnv(L){if(L.meta?this._compileMetaSchema(L):ep.compileSchema.call(this,L),!L.validate)throw Error("ajv implementation error");return L.validate}_compileMetaSchema(L){let ei=this.opts;this.opts=this._metaOpts;try{ep.compileSchema.call(this,L)}finally{this.opts=ei}}};function checkOptions(L,ei,ea,es="error"){for(let el in L){let ec=el;ec in ei&&this.logger[es](`${ea}: option ${el}. ${L[ec]}`)}}function getSchEnv(L){return L=(0,ef.normalizeId)(L),this.schemas[L]||this.refs[L]}function addInitialSchemas(){let L=this.opts.schemas;if(L)if(Array.isArray(L))this.addSchema(L);else for(let ei in L)this.addSchema(L[ei],ei)}function addInitialFormats(){for(let L in this.opts.formats){let ei=this.opts.formats[L];ei&&this.addFormat(L,ei)}}function addInitialKeywords(L){if(Array.isArray(L))return void this.addVocabulary(L);for(let ei in this.logger.warn("keywords option as map is deprecated, pass array"),L){let ea=L[ei];ea.keyword||(ea.keyword=ei),this.addKeyword(ea)}}function getMetaSchemaOptions(){let L={...this.opts};for(let ei of e_)delete L[ei];return L}Ajv.ValidationError=ec.default,Ajv.MissingRefError=ed.default,ei.default=Ajv;let eE={log(){},warn(){},error(){}};function getLogger(L){if(!1===L)return eE;if(void 0===L)return console;if(L.log&&L.warn&&L.error)return L;throw Error("logger must implement log, warn and error methods")}let eC=/^[a-z_$][a-z0-9_$:-]*$/i;function checkKeyword(L,ei){let{RULES:ea}=this;if((0,eg.eachItem)(L,L=>{if(ea.keywords[L])throw Error(`Keyword ${L} is already defined`);if(!eC.test(L))throw Error(`Keyword ${L} has invalid name`)}),ei&&ei.$data&&!("code"in ei||"validate"in ei))throw Error('$data keyword must have "code" or "validate" function')}function addRule(L,ei,ea){var es;let el=null==ei?void 0:ei.post;if(ea&&el)throw Error('keyword with "post" flag cannot have "type"');let{RULES:ec}=this,ed=el?ec.post:ec.rules.find(({type:L})=>L===ea);if(ed||(ed={type:ea,rules:[]},ec.rules.push(ed)),ec.keywords[L]=!0,!ei)return;let eu={keyword:L,definition:{...ei,type:(0,em.getJSONTypes)(ei.type),schemaType:(0,em.getJSONTypes)(ei.schemaType)}};ei.before?addBeforeRule.call(this,ed,eu,ei.before):ed.rules.push(eu),ec.all[L]=eu,null==(es=ei.implements)||es.forEach(L=>this.addKeyword(L))}function addBeforeRule(L,ei,ea){let es=L.rules.findIndex(L=>L.keyword===ea);es>=0?L.rules.splice(es,0,ei):(L.rules.push(ei),this.logger.warn(`rule ${ea} is not defined`))}function keywordMetaschema(L){let{metaSchema:ei}=L;void 0!==ei&&(L.$data&&this.opts.$data&&(ei=schemaOrData(ei)),L.validateSchema=this.compile(ei,!0))}let eT={$ref:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#"};function schemaOrData(L){return{anyOf:[L,eT]}}},85178(L,ei,ea){"use strict";Object.defineProperty(ei,"__esModule",{value:!0});let es=ea(78779);es.code='require("ajv/dist/runtime/equal").default',ei.default=es},35709(L,ei){"use strict";function ucs2length(L){let ei,ea=L.length,es=0,el=0;for(;el<ea;)es++,(ei=L.charCodeAt(el++))>=55296&&ei<=56319&&el<ea&&(64512&(ei=L.charCodeAt(el)))==56320&&el++;return es}Object.defineProperty(ei,"__esModule",{value:!0}),ei.default=ucs2length,ucs2length.code='require("ajv/dist/runtime/ucs2length").default'},37640(L,ei,ea){"use strict";Object.defineProperty(ei,"__esModule",{value:!0});let es=ea(43142);es.code='require("ajv/dist/runtime/uri").default',ei.default=es},95894(L,ei){"use strict";Object.defineProperty(ei,"__esModule",{value:!0});let ValidationError=class ValidationError extends Error{constructor(L){super("validation failed"),this.errors=L,this.ajv=this.validation=!0}};ei.default=ValidationError},34657(L,ei,ea){"use strict";Object.defineProperty(ei,"__esModule",{value:!0}),ei.validateAdditionalItems=void 0;let es=ea(46133),el=ea(16435),ec={keyword:"additionalItems",type:"array",schemaType:["boolean","object"],before:"uniqueItems",error:{message:({params:{len:L}})=>(0,es.str)`must NOT have more than ${L} items`,params:({params:{len:L}})=>(0,es._)`{limit: ${L}}`},code(L){let{parentSchema:ei,it:ea}=L,{items:es}=ei;Array.isArray(es)?validateAdditionalItems(L,es):(0,el.checkStrictMode)(ea,'"additionalItems" is ignored when "items" is not an array of schemas')}};function validateAdditionalItems(L,ei){let{gen:ea,schema:ec,data:ed,keyword:eu,it:ep}=L;ep.items=!0;let eh=ea.const("len",(0,es._)`${ed}.length`);if(!1===ec)L.setParams({len:ei.length}),L.pass((0,es._)`${eh} <= ${ei.length}`);else if("object"==typeof ec&&!(0,el.alwaysValidSchema)(ep,ec)){let el=ea.var("valid",(0,es._)`${eh} <= ${ei.length}`);ea.if((0,es.not)(el),()=>validateItems(el)),L.ok(el)}function validateItems(ec){ea.forRange("i",ei.length,eh,ei=>{L.subschema({keyword:eu,dataProp:ei,dataPropType:el.Type.Num},ec),ep.allErrors||ea.if((0,es.not)(ec),()=>ea.break())})}}ei.validateAdditionalItems=validateAdditionalItems,ei.default=ec},61188(L,ei,ea){"use strict";Object.defineProperty(ei,"__esModule",{value:!0});let es=ea(34357),el=ea(46133),ec=ea(50951),ed=ea(16435);ei.default={keyword:"additionalProperties",type:["object"],schemaType:["boolean","object"],allowUndefined:!0,trackErrors:!0,error:{message:"must NOT have additional properties",params:({params:L})=>(0,el._)`{additionalProperty: ${L.additionalProperty}}`},code(L){let{gen:ei,schema:ea,parentSchema:eu,data:ep,errsCount:eh,it:ef}=L;if(!eh)throw Error("ajv implementation error");let{allErrors:em,opts:eg}=ef;if(ef.props=!0,"all"!==eg.removeAdditional&&(0,ed.alwaysValidSchema)(ef,ea))return;let ey=(0,es.allSchemaProperties)(eu.properties),eb=(0,es.allSchemaProperties)(eu.patternProperties);function isAdditional(ea){let ec;if(ey.length>8){let L=(0,ed.schemaRefOrVal)(ef,eu.properties,"properties");ec=(0,es.isOwnProperty)(ei,L,ea)}else ec=ey.length?(0,el.or)(...ey.map(L=>(0,el._)`${ea} === ${L}`)):el.nil;return eb.length&&(ec=(0,el.or)(ec,...eb.map(ei=>(0,el._)`${(0,es.usePattern)(L,ei)}.test(${ea})`))),(0,el.not)(ec)}function deleteAdditional(L){ei.code((0,el._)`delete ${ep}[${L}]`)}function additionalPropertyCode(es){if("all"===eg.removeAdditional||eg.removeAdditional&&!1===ea)return void deleteAdditional(es);if(!1===ea){L.setParams({additionalProperty:es}),L.error(),em||ei.break();return}if("object"==typeof ea&&!(0,ed.alwaysValidSchema)(ef,ea)){let ea=ei.name("valid");"failing"===eg.removeAdditional?(applyAdditionalSchema(es,ea,!1),ei.if((0,el.not)(ea),()=>{L.reset(),deleteAdditional(es)})):(applyAdditionalSchema(es,ea),em||ei.if((0,el.not)(ea),()=>ei.break()))}}function applyAdditionalSchema(ei,ea,es){let el={keyword:"additionalProperties",dataProp:ei,dataPropType:ed.Type.Str};!1===es&&Object.assign(el,{compositeRule:!0,createErrors:!1,allErrors:!1}),L.subschema(el,ea)}(function checkAdditionalProperties(){ei.forIn("key",ep,L=>{ey.length||eb.length?ei.if(isAdditional(L),()=>additionalPropertyCode(L)):additionalPropertyCode(L)})})(),L.ok((0,el._)`${eh} === ${ec.default.errors}`)}}},13188(L,ei,ea){"use strict";Object.defineProperty(ei,"__esModule",{value:!0});let es=ea(16435);ei.default={keyword:"allOf",schemaType:"array",code(L){let{gen:ei,schema:ea,it:el}=L;if(!Array.isArray(ea))throw Error("ajv implementation error");let ec=ei.name("valid");ea.forEach((ei,ea)=>{if((0,es.alwaysValidSchema)(el,ei))return;let ed=L.subschema({keyword:"allOf",schemaProp:ea},ec);L.ok(ec),L.mergeEvaluated(ed)})}}},13849(L,ei,ea){"use strict";Object.defineProperty(ei,"__esModule",{value:!0}),ei.default={keyword:"anyOf",schemaType:"array",trackErrors:!0,code:ea(34357).validateUnion,error:{message:"must match a schema in anyOf"}}},85589(L,ei,ea){"use strict";Object.defineProperty(ei,"__esModule",{value:!0});let es=ea(46133),el=ea(16435);ei.default={keyword:"contains",type:"array",schemaType:["object","boolean"],before:"uniqueItems",trackErrors:!0,error:{message:({params:{min:L,max:ei}})=>void 0===ei?(0,es.str)`must contain at least ${L} valid item(s)`:(0,es.str)`must contain at least ${L} and no more than ${ei} valid item(s)`,params:({params:{min:L,max:ei}})=>void 0===ei?(0,es._)`{minContains: ${L}}`:(0,es._)`{minContains: ${L}, maxContains: ${ei}}`},code(L){let ei,ea,{gen:ec,schema:ed,parentSchema:eu,data:ep,it:eh}=L,{minContains:ef,maxContains:em}=eu;eh.opts.next?(ei=void 0===ef?1:ef,ea=em):ei=1;let eg=ec.const("len",(0,es._)`${ep}.length`);if(L.setParams({min:ei,max:ea}),void 0===ea&&0===ei)return void(0,el.checkStrictMode)(eh,'"minContains" == 0 without "maxContains": "contains" keyword ignored');if(void 0!==ea&&ei>ea){(0,el.checkStrictMode)(eh,'"minContains" > "maxContains" is always invalid'),L.fail();return}if((0,el.alwaysValidSchema)(eh,ed)){let el=(0,es._)`${eg} >= ${ei}`;void 0!==ea&&(el=(0,es._)`${el} && ${eg} <= ${ea}`),L.pass(el);return}eh.items=!0;let ey=ec.name("valid");function validateItemsWithCount(){let L=ec.name("_valid"),ei=ec.let("count",0);validateItems(L,()=>ec.if(L,()=>checkLimits(ei)))}function validateItems(ei,ea){ec.forRange("i",0,eg,es=>{L.subschema({keyword:"contains",dataProp:es,dataPropType:el.Type.Num,compositeRule:!0},ei),ea()})}function checkLimits(L){ec.code((0,es._)`${L}++`),void 0===ea?ec.if((0,es._)`${L} >= ${ei}`,()=>ec.assign(ey,!0).break()):(ec.if((0,es._)`${L} > ${ea}`,()=>ec.assign(ey,!1).break()),1===ei?ec.assign(ey,!0):ec.if((0,es._)`${L} >= ${ei}`,()=>ec.assign(ey,!0)))}void 0===ea&&1===ei?validateItems(ey,()=>ec.if(ey,()=>ec.break())):0===ei?(ec.let(ey,!0),void 0!==ea&&ec.if((0,es._)`${ep}.length > 0`,validateItemsWithCount)):(ec.let(ey,!1),validateItemsWithCount()),L.result(ey,()=>L.reset())}}},25617(L,ei,ea){"use strict";Object.defineProperty(ei,"__esModule",{value:!0}),ei.validateSchemaDeps=ei.validatePropertyDeps=ei.error=void 0;let es=ea(46133),el=ea(16435),ec=ea(34357);ei.error={message:({params:{property:L,depsCount:ei,deps:ea}})=>{let el=1===ei?"property":"properties";return(0,es.str)`must have ${el} ${ea} when property ${L} is present`},params:({params:{property:L,depsCount:ei,deps:ea,missingProperty:el}})=>(0,es._)`{property: ${L},
|