windmill-components 1.613.4 → 1.623.1
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/package/assets/tokens/tokens.json +1 -11
- package/package/ata/apis.js +5 -78
- package/package/components/AddUser.svelte +1 -1
- package/package/components/CenteredModal.svelte +24 -32
- package/package/components/CenteredModal.svelte.d.ts +27 -7
- package/package/components/CenteredPage.svelte +2 -5
- package/package/components/CenteredPage.svelte.d.ts +0 -2
- package/package/components/ConcurrentJobsChart.svelte +2 -3
- package/package/components/ConcurrentJobsChart.svelte.d.ts +2 -2
- package/package/components/CustomPopover.svelte +23 -20
- package/package/components/CustomPopover.svelte.d.ts +39 -14
- package/package/components/DBManager.svelte +17 -105
- package/package/components/DBManager.svelte.d.ts +1 -2
- package/package/components/DBManagerContent.svelte +3 -4
- package/package/components/DBManagerContent.svelte.d.ts +1 -1
- package/package/components/DBTableEditor.svelte +171 -210
- package/package/components/DBTableEditor.svelte.d.ts +3 -22
- package/package/components/Description.svelte +2 -3
- package/package/components/Dev.svelte +2 -36
- package/package/components/DiffDrawer.svelte +29 -8
- package/package/components/DiffEditor.svelte +2 -32
- package/package/components/DisplayResult.svelte +24 -32
- package/package/components/Editor.svelte +16 -70
- package/package/components/Editor.svelte.d.ts +0 -3
- package/package/components/EditorBar.svelte +1 -1
- package/package/components/FakeMonacoPlaceHolder.svelte +1 -1
- package/package/components/FlowBuilder.svelte +11 -17
- package/package/components/FlowPreviewContent.svelte +2 -3
- package/package/components/FlowPreviewResult.svelte +4 -0
- package/package/components/FlowRestartButton.svelte +3 -2
- package/package/components/FlowRestartButton.svelte.d.ts +0 -3
- package/package/components/FlowStatusViewerInner.svelte +33 -50
- package/package/components/FlowStatusViewerInner.svelte.d.ts +1 -1
- package/package/components/FlowStatusWaitingForEvents.svelte +23 -27
- package/package/components/FlowStatusWaitingForEvents.svelte.d.ts +18 -4
- package/package/components/FlowViewer.svelte +2 -103
- package/package/components/FlowViewer.svelte.d.ts +3 -9
- package/package/components/ForkWorkspaceBanner.svelte +13 -16
- package/package/components/GraphqlSchemaViewer.svelte +1 -8
- package/package/components/HistoricInputs.svelte +27 -25
- package/package/components/HistoricInputs.svelte.d.ts +2 -2
- package/package/components/InstanceSetting.svelte +0 -38
- package/package/components/InviteUser.svelte +42 -16
- package/package/components/InviteUser.svelte.d.ts +18 -4
- package/package/components/JsonInputs.svelte +8 -6
- package/package/components/JsonInputs.svelte.d.ts +8 -7
- package/package/components/LogViewer.svelte +33 -91
- package/package/components/Login.svelte +0 -21
- package/package/components/ManualPopover.svelte +6 -5
- package/package/components/ManualPopover.svelte.d.ts +35 -9
- package/package/components/MemoryFootprintViewer.svelte +6 -2
- package/package/components/ModulePreview.svelte +21 -23
- package/package/components/ModulePreview.svelte.d.ts +0 -1
- package/package/components/Path.svelte +2 -2
- package/package/components/Path.svelte.d.ts +1 -1
- package/package/components/ResourcePicker.svelte +0 -3
- package/package/components/ResourcePicker.svelte.d.ts +0 -1
- package/package/components/RunButton.svelte +15 -5
- package/package/components/RunButton.svelte.d.ts +19 -7
- package/package/components/RunChart.svelte +4 -8
- package/package/components/RunChart.svelte.d.ts +2 -2
- package/package/components/RunFormAdvancedPopup.svelte +1 -1
- package/package/components/RunsPage.svelte +539 -170
- package/package/components/RunsPage.svelte.d.ts +5 -5
- package/package/components/S3FilePicker.svelte +11 -7
- package/package/components/S3FilePickerInner.svelte +3 -2
- package/package/components/S3FilePickerInner.svelte.d.ts +2 -2
- package/package/components/SavedInputs.svelte +416 -0
- package/package/components/{tutorials/workspace/WorkspaceOnboardingOperatorTutorial.svelte.d.ts → SavedInputs.svelte.d.ts} +11 -8
- package/package/components/SchemaForm.svelte +19 -26
- package/package/components/SchemaFormWithArgPicker.svelte +3 -4
- package/package/components/ScriptBuilder.svelte +1 -1
- package/package/components/ScriptEditor.svelte +101 -575
- package/package/components/Section.svelte +1 -3
- package/package/components/ServiceLogsInner.svelte +4 -4
- package/package/components/SimpleEditor.svelte +2 -46
- package/package/components/SuperadminSettingsInner.svelte +1 -1
- package/package/components/TemplateEditor.svelte +29 -54
- package/package/components/TemplateEditor.svelte.d.ts +102 -13
- package/package/components/UserSettings.svelte +1 -1
- package/package/components/WorkerTagPicker.svelte +1 -1
- package/package/components/WorkerTagSelect.svelte +2 -5
- package/package/components/WorkspaceTutorials.svelte +0 -5
- package/package/components/apps/components/buttons/AppButton.svelte +6 -21
- package/package/components/apps/components/buttons/AppForm.svelte +1 -2
- package/package/components/apps/components/buttons/AppFormButton.svelte +1 -2
- package/package/components/apps/components/display/dbtable/AppDbExplorer.svelte +4 -0
- package/package/components/apps/components/display/dbtable/metadata.js +30 -69
- package/package/components/apps/components/display/dbtable/queries/createTable.d.ts +24 -2
- package/package/components/apps/components/display/dbtable/queries/createTable.js +25 -11
- package/package/components/apps/components/display/dbtable/queries/select.d.ts +0 -2
- package/package/components/apps/components/display/dbtable/queries/select.js +6 -37
- package/package/components/apps/components/display/dbtable/utils.d.ts +1 -10
- package/package/components/apps/components/display/dbtable/utils.js +20 -52
- package/package/components/apps/components/helpers/HiddenComponent.svelte +1 -1
- package/package/components/apps/components/helpers/InputValue.svelte +1 -1
- package/package/components/apps/components/helpers/ResolveConfig.svelte +1 -1
- package/package/components/apps/components/helpers/RunnableComponent.svelte +2 -3
- package/package/components/apps/components/helpers/RunnableComponent.svelte.d.ts +1 -1
- package/package/components/apps/components/helpers/RunnableWrapper.svelte +2 -2
- package/package/components/apps/editor/AppEditorHeader.svelte +1 -8
- package/package/components/apps/editor/AppEditorHeaderDeploy.svelte +29 -32
- package/package/components/apps/editor/AppEditorHeaderDeploy.svelte.d.ts +2 -2
- package/package/components/apps/editor/AppEditorHeaderDeployInitialDraft.svelte +4 -4
- package/package/components/apps/editor/AppEditorHeaderDeployInitialDraft.svelte.d.ts +3 -3
- package/package/components/apps/editor/PublicApp.svelte +30 -49
- package/package/components/apps/editor/PublicApp.svelte.d.ts +0 -1
- package/package/components/apps/editor/inlineScriptsPanel/InlineScriptRunnableByPath.svelte +7 -77
- package/package/components/apps/editor/inlineScriptsPanel/InlineScriptRunnableByPath.svelte.d.ts +2 -2
- package/package/components/apps/editor/inlineScriptsPanel/utils.d.ts +2 -2
- package/package/components/apps/editor/inlineScriptsPanel/utils.js +1 -10
- package/package/components/apps/inputType.d.ts +1 -6
- package/package/components/auditLogs/AuditLogsFilters.svelte +17 -9
- package/package/components/auditLogs/AuditLogsFilters.svelte.d.ts +1 -1
- package/package/components/common/button/model.js +1 -1
- package/package/components/common/calendarPicker/CalendarPicker.svelte.d.ts +1 -1
- package/package/components/common/languageIcons/TypeScript.svelte +3 -5
- package/package/components/common/languageIcons/TypeScript.svelte.d.ts +0 -1
- package/package/components/common/modal/Modal.svelte +3 -3
- package/package/components/copilot/autocomplete/Autocompletor.js +2 -3
- package/package/components/copilot/chat/AIButtonStyle.d.ts +1 -1
- package/package/components/copilot/chat/AIButtonStyle.js +1 -2
- package/package/components/copilot/chat/AIChat.svelte +1 -3
- package/package/components/copilot/chat/AIChatDisplay.svelte +4 -89
- package/package/components/copilot/chat/AIChatInput.svelte +0 -275
- package/package/components/copilot/chat/AIChatManager.svelte.js +1 -107
- package/package/components/copilot/chat/AiChatLayout.svelte +30 -15
- package/package/components/copilot/chat/ContextElementBadge.svelte +0 -44
- package/package/components/copilot/chat/DatatableCreationPolicy.svelte +33 -32
- package/package/components/copilot/chat/ProviderModelSelector.svelte +1 -1
- package/package/components/copilot/chat/__tests__/app/appEvalHelpers.js +0 -3
- package/package/components/copilot/chat/__tests__/flow/flowEvalHelpers.js +0 -4
- package/package/components/copilot/chat/app/core.d.ts +15 -56
- package/package/components/copilot/chat/app/core.js +22 -141
- package/package/components/copilot/chat/context.d.ts +2 -59
- package/package/components/copilot/chat/context.js +2 -6
- package/package/components/copilot/chat/flow/FlowAIChat.svelte +0 -22
- package/package/components/copilot/chat/flow/core.d.ts +1 -3
- package/package/components/copilot/chat/flow/core.js +2 -29
- package/package/components/copilot/chat/flow/openFlow.json +1 -1
- package/package/components/copilot/chat/flow/openFlowZod.d.ts +0 -1
- package/package/components/copilot/chat/flow/openFlowZod.js +2 -14
- package/package/components/copilot/chat/script/core.d.ts +1 -4
- package/package/components/copilot/chat/script/core.js +2 -38
- package/package/components/copilot/chat/shared.d.ts +0 -10
- package/package/components/copilot/chat/shared.js +0 -24
- package/package/components/copilot/lib.d.ts +1 -1
- package/package/components/custom_ui.d.ts +0 -2
- package/package/components/dbOps.d.ts +4 -18
- package/package/components/dbOps.js +3 -25
- package/package/components/flows/CreateActionsApp.svelte +4 -6
- package/package/components/flows/DebounceLimit.svelte.d.ts +1 -1
- package/package/components/flows/FlowHistoryInner.svelte +4 -15
- package/package/components/flows/content/AgentToolWrapper.svelte +1 -1
- package/package/components/flows/content/FlowInput.svelte +37 -211
- package/package/components/flows/content/FlowModuleComponent.svelte +67 -553
- package/package/components/flows/content/FlowModuleEarlyStop.svelte +10 -8
- package/package/components/flows/content/FlowModuleHeader.svelte +4 -7
- package/package/components/flows/content/FlowModuleWorkerTagSelect.svelte +1 -1
- package/package/components/flows/content/McpToolEditor.svelte +37 -50
- package/package/components/flows/content/McpToolEditor.svelte.d.ts +1 -0
- package/package/components/flows/conversations/FlowChat.svelte +2 -16
- package/package/components/flows/conversations/FlowChat.svelte.d.ts +1 -2
- package/package/components/flows/conversations/FlowChatInterface.svelte +6 -103
- package/package/components/flows/conversations/FlowChatInterface.svelte.d.ts +0 -2
- package/package/components/flows/conversations/FlowChatManager.svelte.js +21 -53
- package/package/components/flows/header/FlowImportExportMenu.svelte +1 -1
- package/package/components/flows/propPicker/PropPickerWrapper.svelte +1 -3
- package/package/components/flows/types.d.ts +0 -2
- package/package/components/git_sync/GitSyncRepositoryCard.svelte +8 -16
- package/package/components/home/ItemsList.svelte +5 -5
- package/package/components/home/TutorialBanner.svelte +18 -34
- package/package/components/icons/CssIcon.svelte +0 -20
- package/package/components/icons/CssIcon.svelte.d.ts +25 -7
- package/package/components/icons/JavaScriptIcon.svelte +2 -10
- package/package/components/icons/JavaScriptIcon.svelte.d.ts +0 -1
- package/package/components/icons/JsonIcon.svelte +2 -8
- package/package/components/icons/JsonIcon.svelte.d.ts +0 -1
- package/package/components/icons/ReactIcon.svelte +2 -10
- package/package/components/icons/ReactIcon.svelte.d.ts +0 -1
- package/package/components/icons/SvelteIcon.svelte +2 -10
- package/package/components/icons/SvelteIcon.svelte.d.ts +0 -1
- package/package/components/icons/VueIcon.svelte +2 -10
- package/package/components/icons/VueIcon.svelte.d.ts +0 -1
- package/package/components/instanceSettings.d.ts +1 -2
- package/package/components/instanceSettings.js +1 -32
- package/package/components/jobs/JobPreview.svelte +39 -46
- package/package/components/jobs/JobPreview.svelte.d.ts +0 -1
- package/package/components/monacoLanguagesOptions.js +15 -16
- package/package/components/propertyPicker/PropPicker.svelte +2 -16
- package/package/components/propertyPicker/PropPicker.svelte.d.ts +0 -2
- package/package/components/raw_apps/DefaultDatabaseSelector.svelte +5 -9
- package/package/components/raw_apps/FileEditorIcon.svelte +7 -12
- package/package/components/raw_apps/FileEditorIcon.svelte.d.ts +0 -2
- package/package/components/raw_apps/FileTreeNode.svelte +83 -119
- package/package/components/raw_apps/RawAppBackgroundRunner.svelte +8 -88
- package/package/components/raw_apps/RawAppDataTableList.svelte +9 -12
- package/package/components/raw_apps/RawAppEditor.svelte +68 -218
- package/package/components/raw_apps/RawAppEditorHeader.svelte +16 -33
- package/package/components/raw_apps/RawAppHistoryList.svelte +80 -264
- package/package/components/raw_apps/RawAppHistoryList.svelte.d.ts +0 -1
- package/package/components/raw_apps/RawAppHistoryManager.svelte.d.ts +1 -15
- package/package/components/raw_apps/RawAppHistoryManager.svelte.js +12 -46
- package/package/components/raw_apps/RawAppInlineScriptEditor.svelte +47 -549
- package/package/components/raw_apps/RawAppInlineScriptEditor.svelte.d.ts +5 -31
- package/package/components/raw_apps/RawAppInlineScriptPanelList.svelte +18 -25
- package/package/components/raw_apps/RawAppInlineScriptPanelList.svelte.d.ts +0 -1
- package/package/components/raw_apps/RawAppInlineScriptRunnable.svelte +10 -141
- package/package/components/raw_apps/RawAppInlineScriptRunnable.svelte.d.ts +0 -8
- package/package/components/raw_apps/RawAppInlineScriptsPanel.svelte +1 -2
- package/package/components/raw_apps/RawAppInlineScriptsPanel.svelte.d.ts +1 -9
- package/package/components/raw_apps/RawAppInputsSpecEditor.svelte +3 -47
- package/package/components/raw_apps/RawAppInputsSpecEditor.svelte.d.ts +2 -2
- package/package/components/raw_apps/RawAppModules.svelte +7 -13
- package/package/components/raw_apps/RawAppPreview.svelte +6 -48
- package/package/components/raw_apps/RawAppSidebar.svelte +125 -194
- package/package/components/raw_apps/RawAppSidebar.svelte.d.ts +0 -1
- package/package/components/raw_apps/utils.d.ts +1 -1
- package/package/components/raw_apps/utils.js +18 -76
- package/package/components/runs/JobsLoader.svelte +468 -0
- package/package/components/runs/JobsLoader.svelte.d.ts +49 -0
- package/package/components/runs/ManuelDatePicker.svelte +3 -3
- package/package/components/runs/ManuelDatePicker.svelte.d.ts +3 -3
- package/package/components/runs/NoWorkerWithTagWarning.svelte +1 -5
- package/package/components/runs/RunsFilter.svelte +63 -75
- package/package/components/runs/RunsFilter.svelte.d.ts +4 -35
- package/package/components/runs/RunsQueue.svelte.d.ts +1 -1
- package/package/components/runs/RunsTable.svelte +1 -1
- package/package/components/runs/RunsTable.svelte.d.ts +1 -1
- package/package/components/schema/SchemaPicker.svelte +92 -0
- package/package/components/{tutorials/RunsTutorial.svelte.d.ts → schema/SchemaPicker.svelte.d.ts} +12 -11
- package/package/components/scriptEditor/LogPanel.svelte +2 -17
- package/package/components/scriptEditor/LogPanel.svelte.d.ts +0 -2
- package/package/components/select/SelectDropdown.svelte +2 -2
- package/package/components/settings/ChangeWorkspaceColor.svelte +3 -4
- package/package/components/settings/ChangeWorkspaceId.svelte +10 -14
- package/package/components/settings/ChangeWorkspaceName.svelte +6 -7
- package/package/components/settings/CreateToken.svelte +1 -1
- package/package/components/settings/UserAIPromptsSettings.svelte +15 -56
- package/package/components/settings/WorkspaceOperatorSettings.svelte +85 -68
- package/package/components/settings/WorkspaceUserSettings.svelte +406 -531
- package/package/components/sidebar/MenuButton.svelte +24 -46
- package/package/components/sidebar/MenuButton.svelte.d.ts +0 -2
- package/package/components/sidebar/MultiplayerMenu.svelte +3 -3
- package/package/components/sidebar/OperatorMenu.svelte +88 -63
- package/package/components/sidebar/SidebarContent.svelte +2 -7
- package/package/components/sidebar/UserMenu.svelte +1 -1
- package/package/components/sidebar/WorkspaceMenu.svelte +85 -35
- package/package/components/sqlTypeService.js +3 -4
- package/package/components/table/DataTable.svelte +2 -3
- package/package/components/table/DataTable.svelte.d.ts +0 -1
- package/package/components/text_input/TextInput.svelte +0 -3
- package/package/components/text_input/TextInput.svelte.d.ts +0 -2
- package/package/components/triggers/utils.js +1 -0
- package/package/components/tutorials/FlowBuilderLiveTutorial.svelte +35 -6
- package/package/components/tutorials/TroubleshootFlowTutorial.svelte +20 -5
- package/package/components/tutorials/utils.d.ts +0 -16
- package/package/components/tutorials/utils.js +0 -96
- package/package/components/vscode.js +6 -6
- package/package/components/workspaceSettings/AISettings.svelte +108 -146
- package/package/components/workspaceSettings/CreateWorkspace.svelte +12 -26
- package/package/components/workspaceSettings/DucklakeSettings.svelte +23 -46
- package/package/components/workspaceSettings/DucklakeSettings.svelte.d.ts +1 -2
- package/package/components/workspaceSettings/ModelTokenLimits.svelte +18 -14
- package/package/components/workspaceSettings/StorageSettings.svelte +241 -280
- package/package/components/workspaceSettings/StorageSettings.svelte.d.ts +0 -1
- package/package/consts.js +1 -4
- package/package/gen/core/OpenAPI.js +1 -1
- package/package/gen/schemas.gen.d.ts +0 -126
- package/package/gen/schemas.gen.js +0 -126
- package/package/gen/services.gen.d.ts +2 -151
- package/package/gen/services.gen.js +4 -301
- package/package/gen/types.gen.d.ts +2 -584
- package/package/hubPaths.json +2 -3
- package/package/infer.js +0 -2
- package/package/logout.d.ts +2 -0
- package/package/logout.js +23 -2
- package/package/monaco_workers/graphql.worker.bundle.js +121 -121
- package/package/navigation.d.ts +1 -1
- package/package/rawAppWmillTs.d.ts +0 -11
- package/package/rawAppWmillTs.js +1 -38
- package/package/svelte5Utils.svelte.d.ts +1 -7
- package/package/svelte5Utils.svelte.js +2 -23
- package/package/tutorialUtils.js +4 -0
- package/package/tutorials/config.js +3 -31
- package/package/tutorials/roleUtils.d.ts +1 -1
- package/package/tutorials/roleUtils.js +2 -6
- package/package/utils.js +1 -159
- package/package.json +14 -16
- package/dist/sharedUtils/assets/tokens/colorTokensConfig.d.ts +0 -2
- package/dist/sharedUtils/base.d.ts +0 -1
- package/dist/sharedUtils/cloud.d.ts +0 -1
- package/dist/sharedUtils/common.d.ts +0 -111
- package/dist/sharedUtils/components/apps/components/display/dbtable/queries/count.d.ts +0 -5
- package/dist/sharedUtils/components/apps/components/display/dbtable/queries/delete.d.ts +0 -5
- package/dist/sharedUtils/components/apps/components/display/dbtable/queries/insert.d.ts +0 -5
- package/dist/sharedUtils/components/apps/components/display/dbtable/queries/select.d.ts +0 -13
- package/dist/sharedUtils/components/apps/components/display/dbtable/queries/update.d.ts +0 -11
- package/dist/sharedUtils/components/apps/components/display/dbtable/utils.d.ts +0 -95
- package/dist/sharedUtils/components/apps/editor/appPolicy.d.ts +0 -6
- package/dist/sharedUtils/components/apps/editor/appUtilsCore.d.ts +0 -7
- package/dist/sharedUtils/components/apps/editor/appUtilsS3.d.ts +0 -33
- package/dist/sharedUtils/components/apps/editor/commonAppUtils.d.ts +0 -10
- package/dist/sharedUtils/components/apps/editor/component/components.d.ts +0 -5371
- package/dist/sharedUtils/components/apps/editor/component/default-codes.d.ts +0 -3
- package/dist/sharedUtils/components/apps/editor/component/index.d.ts +0 -3
- package/dist/sharedUtils/components/apps/editor/component/sets.d.ts +0 -7
- package/dist/sharedUtils/components/apps/editor/componentsPanel/componentDefaultProps.d.ts +0 -3
- package/dist/sharedUtils/components/apps/gridUtils.d.ts +0 -14
- package/dist/sharedUtils/components/apps/inputType.d.ts +0 -178
- package/dist/sharedUtils/components/apps/rx.d.ts +0 -29
- package/dist/sharedUtils/components/apps/sharedTypes.d.ts +0 -21
- package/dist/sharedUtils/components/apps/types.d.ts +0 -274
- package/dist/sharedUtils/components/assets/lib.d.ts +0 -25
- package/dist/sharedUtils/components/common/alert/model.d.ts +0 -2
- package/dist/sharedUtils/components/common/badge/model.d.ts +0 -8
- package/dist/sharedUtils/components/common/button/model.d.ts +0 -45
- package/dist/sharedUtils/components/common/fileInput/model.d.ts +0 -1
- package/dist/sharedUtils/components/common/index.d.ts +0 -24
- package/dist/sharedUtils/components/common/skeleton/model.d.ts +0 -21
- package/dist/sharedUtils/components/dbTypes.d.ts +0 -14
- package/dist/sharedUtils/components/diff_drawer.d.ts +0 -26
- package/dist/sharedUtils/components/ducklake.d.ts +0 -1
- package/dist/sharedUtils/components/flows/scheduleUtils.d.ts +0 -7
- package/dist/sharedUtils/components/icons/index.d.ts +0 -101
- package/dist/sharedUtils/components/random_positive_adjetive.d.ts +0 -1
- package/dist/sharedUtils/components/raw_apps/rawAppPolicy.d.ts +0 -10
- package/dist/sharedUtils/components/raw_apps/utils.d.ts +0 -15
- package/dist/sharedUtils/components/triggers/email/utils.d.ts +0 -4
- package/dist/sharedUtils/components/triggers/gcp/utils.d.ts +0 -2
- package/dist/sharedUtils/components/triggers/http/utils.d.ts +0 -11
- package/dist/sharedUtils/components/triggers/kafka/utils.d.ts +0 -2
- package/dist/sharedUtils/components/triggers/mqtt/utils.d.ts +0 -2
- package/dist/sharedUtils/components/triggers/nats/utils.d.ts +0 -2
- package/dist/sharedUtils/components/triggers/postgres/utils.d.ts +0 -8
- package/dist/sharedUtils/components/triggers/sqs/utils.d.ts +0 -2
- package/dist/sharedUtils/components/triggers/triggers.svelte.d.ts +0 -32
- package/dist/sharedUtils/components/triggers/utils.d.ts +0 -80
- package/dist/sharedUtils/components/triggers/websocket/utils.d.ts +0 -2
- package/dist/sharedUtils/components/triggers.d.ts +0 -20
- package/dist/sharedUtils/gen/core/ApiError.d.ts +0 -10
- package/dist/sharedUtils/gen/core/ApiRequestOptions.d.ts +0 -13
- package/dist/sharedUtils/gen/core/ApiResult.d.ts +0 -7
- package/dist/sharedUtils/gen/core/CancelablePromise.d.ts +0 -26
- package/dist/sharedUtils/gen/core/OpenAPI.d.ts +0 -27
- package/dist/sharedUtils/gen/core/request.d.ts +0 -29
- package/dist/sharedUtils/gen/index.d.ts +0 -6
- package/dist/sharedUtils/gen/schemas.gen.d.ts +0 -7036
- package/dist/sharedUtils/gen/services.gen.d.ts +0 -6047
- package/dist/sharedUtils/gen/types.gen.d.ts +0 -21881
- package/dist/sharedUtils/history.svelte.d.ts +0 -9
- package/dist/sharedUtils/hub.d.ts +0 -49
- package/dist/sharedUtils/jsr.json +0 -6
- package/dist/sharedUtils/lib.d.ts +0 -5
- package/dist/sharedUtils/lib.es.js +0 -1588
- package/dist/sharedUtils/package.json +0 -12
- package/dist/sharedUtils/schema.d.ts +0 -3
- package/dist/sharedUtils/stores.d.ts +0 -97
- package/dist/sharedUtils/svelte5Utils.svelte.d.ts +0 -80
- package/dist/sharedUtils/toast.d.ts +0 -8
- package/dist/sharedUtils/utils.d.ts +0 -265
- package/package/components/FlowDiffViewer.svelte +0 -37
- package/package/components/FlowDiffViewer.svelte.d.ts +0 -7
- package/package/components/JobOtelTraces.svelte +0 -287
- package/package/components/JobOtelTraces.svelte.d.ts +0 -6
- package/package/components/apps/components/display/dbtable/queries/alterTable.d.ts +0 -46
- package/package/components/apps/components/display/dbtable/queries/alterTable.js +0 -314
- package/package/components/apps/components/display/dbtable/queries/alterTable.test.d.ts +0 -1
- package/package/components/apps/components/display/dbtable/queries/alterTable.test.js +0 -867
- package/package/components/apps/components/display/dbtable/queries/dbQueriesUtils.d.ts +0 -9
- package/package/components/apps/components/display/dbtable/queries/dbQueriesUtils.js +0 -45
- package/package/components/apps/components/display/dbtable/queries/relationalKeys.d.ts +0 -47
- package/package/components/apps/components/display/dbtable/queries/relationalKeys.js +0 -402
- package/package/components/apps/components/display/dbtable/tableEditor.d.ts +0 -35
- package/package/components/apps/components/display/dbtable/tableEditor.js +0 -49
- package/package/components/copilot/chat/AppAvailableContextList.svelte +0 -263
- package/package/components/copilot/chat/AppAvailableContextList.svelte.d.ts +0 -13
- package/package/components/debug/DebugConsole.svelte +0 -277
- package/package/components/debug/DebugConsole.svelte.d.ts +0 -13
- package/package/components/debug/DebugPanel.svelte +0 -97
- package/package/components/debug/DebugPanel.svelte.d.ts +0 -11
- package/package/components/debug/DebugToolbar.svelte +0 -148
- package/package/components/debug/DebugToolbar.svelte.d.ts +0 -17
- package/package/components/debug/DebugVariableViewer.svelte +0 -115
- package/package/components/debug/DebugVariableViewer.svelte.d.ts +0 -11
- package/package/components/debug/MonacoDebugger.svelte +0 -384
- package/package/components/debug/MonacoDebugger.svelte.d.ts +0 -15
- package/package/components/debug/dapClient.d.ts +0 -192
- package/package/components/debug/dapClient.js +0 -426
- package/package/components/debug/debugUtils.d.ts +0 -30
- package/package/components/debug/debugUtils.js +0 -131
- package/package/components/debug/index.d.ts +0 -75
- package/package/components/debug/index.js +0 -82
- package/package/components/flows/content/FlowEditorDrawer.svelte +0 -124
- package/package/components/flows/content/FlowEditorDrawer.svelte.d.ts +0 -22
- package/package/components/flows/content/McpOAuthConnect.svelte +0 -217
- package/package/components/flows/content/McpOAuthConnect.svelte.d.ts +0 -7
- package/package/components/icons/HtmlIcon.svelte +0 -20
- package/package/components/icons/HtmlIcon.svelte.d.ts +0 -8
- package/package/components/icons/LessIcon.svelte +0 -16
- package/package/components/icons/LessIcon.svelte.d.ts +0 -8
- package/package/components/icons/MarkdownIcon.svelte +0 -20
- package/package/components/icons/MarkdownIcon.svelte.d.ts +0 -8
- package/package/components/icons/SassIcon.svelte +0 -28
- package/package/components/icons/SassIcon.svelte.d.ts +0 -8
- package/package/components/icons/YamlIcon.svelte +0 -20
- package/package/components/icons/YamlIcon.svelte.d.ts +0 -8
- package/package/components/instanceSettings/SecretBackendConfig.svelte +0 -514
- package/package/components/instanceSettings/SecretBackendConfig.svelte.d.ts +0 -8
- package/package/components/raw_apps/RunnableRow.svelte +0 -41
- package/package/components/raw_apps/RunnableRow.svelte.d.ts +0 -11
- package/package/components/runs/useJobsLoader.svelte.d.ts +0 -34
- package/package/components/runs/useJobsLoader.svelte.js +0 -507
- package/package/components/settings/AIPromptsModal.svelte +0 -88
- package/package/components/settings/AIPromptsModal.svelte.d.ts +0 -11
- package/package/components/tutorials/RunsTutorial.svelte +0 -399
- package/package/components/tutorials/workspace/WorkspaceOnboardingOperatorTutorial.svelte +0 -133
- package/package/components/workspace/WorkspaceCard.svelte +0 -184
- package/package/components/workspace/WorkspaceCard.svelte.d.ts +0 -24
- package/package/components/workspace/WorkspaceIcon.svelte +0 -21
- package/package/components/workspace/WorkspaceIcon.svelte.d.ts +0 -9
- package/package/components/workspace/WorkspaceTreeView.svelte +0 -331
- package/package/components/workspace/WorkspaceTreeView.svelte.d.ts +0 -15
- package/package/logoutKit.d.ts +0 -2
- package/package/logoutKit.js +0 -26
- package/package/svelte5UtilsKit.svelte.d.ts +0 -3
- package/package/svelte5UtilsKit.svelte.js +0 -30
|
@@ -1,54 +1,59 @@
|
|
|
1
|
-
(()=>{var x5=Object.create;var ql=Object.defineProperty;var y5=Object.getOwnPropertyDescriptor;var L5=Object.getOwnPropertyNames;var A5=Object.getPrototypeOf,F5=Object.prototype.hasOwnProperty;var S5=(e,t)=>()=>(e&&(t=e(e=0)),t);var Ir=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),R5=(e,t)=>{for(var n in t)ql(e,n,{get:t[n],enumerable:!0})},I5=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of L5(t))!F5.call(e,i)&&i!==n&&ql(e,i,{get:()=>t[i],enumerable:!(r=y5(t,i))||r.enumerable});return e};var Hl=(e,t,n)=>(n=e!=null?x5(A5(e)):{},I5(t||!e||!e.__esModule?ql(n,"default",{value:e,enumerable:!0}):n,e));var E2=Ir((aB,cl)=>{"use strict";function _2(e,t){if(e!=null)return e;var n=new Error(t!==void 0?t:"Got unexpected "+e);throw n.framesToPop=1,n}cl.exports=_2;cl.exports.default=_2;Object.defineProperty(cl.exports,"__esModule",{value:!0})});var ca=Ir((rC,A2)=>{"use strict";var Jn="\\\\/",w2=`[^${Jn}]`,Tr="\\.",Gb="\\+",qb="\\?",bl="\\/",Hb="(?=.)",x2="[^/]",O1=`(?:${bl}|$)`,y2=`(?:^|${bl})`,k1=`${Tr}{1,2}${O1}`,Wb=`(?!${Tr})`,zb=`(?!${y2}${k1})`,Qb=`(?!${Tr}{0,1}${O1})`,Yb=`(?!${k1})`,Xb=`[^.${bl}]`,Jb=`${x2}*?`,Zb="/",L2={DOT_LITERAL:Tr,PLUS_LITERAL:Gb,QMARK_LITERAL:qb,SLASH_LITERAL:bl,ONE_CHAR:Hb,QMARK:x2,END_ANCHOR:O1,DOTS_SLASH:k1,NO_DOT:Wb,NO_DOTS:zb,NO_DOT_SLASH:Qb,NO_DOTS_SLASH:Yb,QMARK_NO_DOT:Xb,STAR:Jb,START_ANCHOR:y2,SEP:Zb},Kb={...L2,SLASH_LITERAL:`[${Jn}]`,QMARK:w2,STAR:`${w2}*?`,DOTS_SLASH:`${Tr}{1,2}(?:[${Jn}]|$)`,NO_DOT:`(?!${Tr})`,NO_DOTS:`(?!(?:^|[${Jn}])${Tr}{1,2}(?:[${Jn}]|$))`,NO_DOT_SLASH:`(?!${Tr}{0,1}(?:[${Jn}]|$))`,NO_DOTS_SLASH:`(?!${Tr}{1,2}(?:[${Jn}]|$))`,QMARK_NO_DOT:`[^.${Jn}]`,START_ANCHOR:`(?:^|[${Jn}])`,END_ANCHOR:`(?:[${Jn}]|$)`,SEP:"\\"},e9={alnum:"a-zA-Z0-9",alpha:"a-zA-Z",ascii:"\\x00-\\x7F",blank:" \\t",cntrl:"\\x00-\\x1F\\x7F",digit:"0-9",graph:"\\x21-\\x7E",lower:"a-z",print:"\\x20-\\x7E ",punct:"\\-!\"#$%&'()\\*+,./:;<=>?@[\\]^_`{|}~",space:" \\t\\r\\n\\v\\f",upper:"A-Z",word:"A-Za-z0-9_",xdigit:"A-Fa-f0-9"};A2.exports={MAX_LENGTH:1024*64,POSIX_REGEX_SOURCE:e9,REGEX_BACKSLASH:/\\(?![*+?^${}(|)[\]])/g,REGEX_NON_SPECIAL_CHARS:/^[^@![\].,$*+?^{}()|\\/]+/,REGEX_SPECIAL_CHARS:/[-*+?.^${}(|)[\]]/,REGEX_SPECIAL_CHARS_BACKREF:/(\\?)((\W)(\3*))/g,REGEX_SPECIAL_CHARS_GLOBAL:/([-*+?.^${}(|)[\]])/g,REGEX_REMOVE_BACKSLASH:/(?:\[.*?[^\\]\]|\\(?=.))/g,REPLACEMENTS:{"***":"*","**/**":"**","**/**/**":"**"},CHAR_0:48,CHAR_9:57,CHAR_UPPERCASE_A:65,CHAR_LOWERCASE_A:97,CHAR_UPPERCASE_Z:90,CHAR_LOWERCASE_Z:122,CHAR_LEFT_PARENTHESES:40,CHAR_RIGHT_PARENTHESES:41,CHAR_ASTERISK:42,CHAR_AMPERSAND:38,CHAR_AT:64,CHAR_BACKWARD_SLASH:92,CHAR_CARRIAGE_RETURN:13,CHAR_CIRCUMFLEX_ACCENT:94,CHAR_COLON:58,CHAR_COMMA:44,CHAR_DOT:46,CHAR_DOUBLE_QUOTE:34,CHAR_EQUAL:61,CHAR_EXCLAMATION_MARK:33,CHAR_FORM_FEED:12,CHAR_FORWARD_SLASH:47,CHAR_GRAVE_ACCENT:96,CHAR_HASH:35,CHAR_HYPHEN_MINUS:45,CHAR_LEFT_ANGLE_BRACKET:60,CHAR_LEFT_CURLY_BRACE:123,CHAR_LEFT_SQUARE_BRACKET:91,CHAR_LINE_FEED:10,CHAR_NO_BREAK_SPACE:160,CHAR_PERCENT:37,CHAR_PLUS:43,CHAR_QUESTION_MARK:63,CHAR_RIGHT_ANGLE_BRACKET:62,CHAR_RIGHT_CURLY_BRACE:125,CHAR_RIGHT_SQUARE_BRACKET:93,CHAR_SEMICOLON:59,CHAR_SINGLE_QUOTE:39,CHAR_SPACE:32,CHAR_TAB:9,CHAR_UNDERSCORE:95,CHAR_VERTICAL_LINE:124,CHAR_ZERO_WIDTH_NOBREAK_SPACE:65279,extglobChars(e){return{"!":{type:"negate",open:"(?:(?!(?:",close:`))${e.STAR})`},"?":{type:"qmark",open:"(?:",close:")?"},"+":{type:"plus",open:"(?:",close:")+"},"*":{type:"star",open:"(?:",close:")*"},"@":{type:"at",open:"(?:",close:")"}}},globChars(e){return e===!0?Kb:L2}}});var vl=Ir(en=>{"use strict";var{REGEX_BACKSLASH:t9,REGEX_REMOVE_BACKSLASH:n9,REGEX_SPECIAL_CHARS:r9,REGEX_SPECIAL_CHARS_GLOBAL:i9}=ca();en.isObject=e=>e!==null&&typeof e=="object"&&!Array.isArray(e);en.hasRegexChars=e=>r9.test(e);en.isRegexChar=e=>e.length===1&&en.hasRegexChars(e);en.escapeRegex=e=>e.replace(i9,"\\$1");en.toPosixSlashes=e=>e.replace(t9,"/");en.removeBackslashes=e=>e.replace(n9,t=>t==="\\"?"":t);en.supportsLookbehinds=()=>{let e=process.version.slice(1).split(".").map(Number);return e.length===3&&e[0]>=9||e[0]===8&&e[1]>=10};en.escapeLast=(e,t,n)=>{let r=e.lastIndexOf(t,n);return r===-1?e:e[r-1]==="\\"?en.escapeLast(e,t,r-1):`${e.slice(0,r)}\\${e.slice(r)}`};en.removePrefix=(e,t={})=>{let n=e;return n.startsWith("./")&&(n=n.slice(2),t.prefix="./"),n};en.wrapOutput=(e,t={},n={})=>{let r=n.contains?"":"^",i=n.contains?"":"$",s=`${r}(?:${e})${i}`;return t.negated===!0&&(s=`(?:^(?!${s}).*$)`),s};en.basename=(e,{windows:t}={})=>t?e.replace(/[\\/]$/,"").replace(/.*[\\/]/,""):e.replace(/\/$/,"").replace(/.*\//,"")});var P2=Ir((sC,U2)=>{"use strict";var F2=vl(),{CHAR_ASTERISK:M1,CHAR_AT:s9,CHAR_BACKWARD_SLASH:fa,CHAR_COMMA:o9,CHAR_DOT:U1,CHAR_EXCLAMATION_MARK:S2,CHAR_FORWARD_SLASH:M2,CHAR_LEFT_CURLY_BRACE:P1,CHAR_LEFT_PARENTHESES:B1,CHAR_LEFT_SQUARE_BRACKET:a9,CHAR_PLUS:u9,CHAR_QUESTION_MARK:R2,CHAR_RIGHT_CURLY_BRACE:l9,CHAR_RIGHT_PARENTHESES:I2,CHAR_RIGHT_SQUARE_BRACKET:c9}=ca(),O2=e=>e===M2||e===fa,k2=e=>{e.isPrefix!==!0&&(e.depth=e.isGlobstar?1/0:1)},f9=(e,t)=>{let n=t||{},r=e.length-1,i=n.parts===!0||n.scanToEnd===!0,s=[],o=[],a=[],u=e,l=-1,c=0,f=0,d=!1,m=!1,g=!1,E=!1,T=!1,v=!1,A=!1,S=!1,C=!1,q=0,G,I,k={value:"",depth:0,isGlob:!1},w=()=>l>=r,L=()=>u.charCodeAt(l+1),Z=()=>(G=I,u.charCodeAt(++l));for(;l<r;){I=Z();let J;if(I===fa){A=k.backslashes=!0,I=Z(),I===P1&&(v=!0);continue}if(v===!0||I===P1){for(q++;w()!==!0&&(I=Z());){if(I===fa){A=k.backslashes=!0,Z();continue}if(I===P1){q++;continue}if(v!==!0&&I===U1&&(I=Z())===U1){if(d=k.isBrace=!0,g=k.isGlob=!0,C=!0,i===!0)continue;break}if(v!==!0&&I===o9){if(d=k.isBrace=!0,g=k.isGlob=!0,C=!0,i===!0)continue;break}if(I===l9&&(q--,q===0)){v=!1,d=k.isBrace=!0,C=!0;break}}if(i===!0)continue;break}if(I===M2){if(s.push(l),o.push(k),k={value:"",depth:0,isGlob:!1},C===!0)continue;if(G===U1&&l===c+1){c+=2;continue}f=l+1;continue}if(n.noext!==!0&&(I===u9||I===s9||I===M1||I===R2||I===S2)===!0&&L()===B1){if(g=k.isGlob=!0,E=k.isExtglob=!0,C=!0,i===!0){for(;w()!==!0&&(I=Z());){if(I===fa){A=k.backslashes=!0,I=Z();continue}if(I===I2){g=k.isGlob=!0,C=!0;break}}continue}break}if(I===M1){if(G===M1&&(T=k.isGlobstar=!0),g=k.isGlob=!0,C=!0,i===!0)continue;break}if(I===R2){if(g=k.isGlob=!0,C=!0,i===!0)continue;break}if(I===a9)for(;w()!==!0&&(J=Z());){if(J===fa){A=k.backslashes=!0,Z();continue}if(J===c9){if(m=k.isBracket=!0,g=k.isGlob=!0,C=!0,i===!0)continue;break}}if(n.nonegate!==!0&&I===S2&&l===c){S=k.negated=!0,c++;continue}if(n.noparen!==!0&&I===B1){if(g=k.isGlob=!0,i===!0){for(;w()!==!0&&(I=Z());){if(I===B1){A=k.backslashes=!0,I=Z();continue}if(I===I2){C=!0;break}}continue}break}if(g===!0){if(C=!0,i===!0)continue;break}}n.noext===!0&&(E=!1,g=!1);let P=u,z="",O="";c>0&&(z=u.slice(0,c),u=u.slice(c),f-=c),P&&g===!0&&f>0?(P=u.slice(0,f),O=u.slice(f)):g===!0?(P="",O=u):P=u,P&&P!==""&&P!=="/"&&P!==u&&O2(P.charCodeAt(P.length-1))&&(P=P.slice(0,-1)),n.unescape===!0&&(O&&(O=F2.removeBackslashes(O)),P&&A===!0&&(P=F2.removeBackslashes(P)));let R={prefix:z,input:e,start:c,base:P,glob:O,isBrace:d,isBracket:m,isGlob:g,isExtglob:E,isGlobstar:T,negated:S};if(n.tokens===!0&&(R.maxDepth=0,O2(I)||o.push(k),R.tokens=o),n.parts===!0||n.tokens===!0){let J;for(let K=0;K<s.length;K++){let ce=J?J+1:c,Ee=s[K],De=e.slice(ce,Ee);n.tokens&&(K===0&&c!==0?(o[K].isPrefix=!0,o[K].value=z):o[K].value=De,k2(o[K]),R.maxDepth+=o[K].depth),(K!==0||De!=="")&&a.push(De),J=Ee}if(J&&J+1<e.length){let K=e.slice(J+1);a.push(K),n.tokens&&(o[o.length-1].value=K,k2(o[o.length-1]),R.maxDepth+=o[o.length-1].depth)}R.slashes=s,R.parts=a}return R};U2.exports=f9});var $2=Ir((oC,V2)=>{"use strict";var Nl=ca(),kn=vl(),{MAX_LENGTH:Tl,POSIX_REGEX_SOURCE:h9,REGEX_NON_SPECIAL_CHARS:p9,REGEX_SPECIAL_CHARS_BACKREF:d9,REPLACEMENTS:B2}=Nl,m9=(e,t)=>{if(typeof t.expandRange=="function")return t.expandRange(...e,t);e.sort();let n=`[${e.join("-")}]`;try{new RegExp(n)}catch{return e.map(i=>kn.escapeRegex(i)).join("..")}return n},Ks=(e,t)=>`Missing ${e}: "${t}" - use "\\\\${t}" to match literal characters`,C2=(e,t)=>{if(typeof e!="string")throw new TypeError("Expected a string");e=B2[e]||e;let n={...t},r=typeof n.maxLength=="number"?Math.min(Tl,n.maxLength):Tl,i=e.length;if(i>r)throw new SyntaxError(`Input length: ${i}, exceeds maximum allowed length: ${r}`);let s={type:"bos",value:"",output:n.prepend||""},o=[s],a=n.capture?"":"?:",u=Nl.globChars(n.windows),l=Nl.extglobChars(u),{DOT_LITERAL:c,PLUS_LITERAL:f,SLASH_LITERAL:d,ONE_CHAR:m,DOTS_SLASH:g,NO_DOT:E,NO_DOT_SLASH:T,NO_DOTS_SLASH:v,QMARK:A,QMARK_NO_DOT:S,STAR:C,START_ANCHOR:q}=u,G=ee=>`(${a}(?:(?!${q}${ee.dot?g:c}).)*?)`,I=n.dot?"":E,k=n.dot?A:S,w=n.bash===!0?G(n):C;n.capture&&(w=`(${w})`),typeof n.noext=="boolean"&&(n.noextglob=n.noext);let L={input:e,index:-1,start:0,dot:n.dot===!0,consumed:"",output:"",prefix:"",backtrack:!1,negated:!1,brackets:0,braces:0,parens:0,quotes:0,globstar:!1,tokens:o};e=kn.removePrefix(e,L),i=e.length;let Z=[],P=[],z=[],O=s,R,J=()=>L.index===i-1,K=L.peek=(ee=1)=>e[L.index+ee],ce=L.advance=()=>e[++L.index],Ee=()=>e.slice(L.index+1),De=(ee="",Me=0)=>{L.consumed+=ee,L.index+=Me},Ot=ee=>{L.output+=ee.output!=null?ee.output:ee.value,De(ee.value)},$=()=>{let ee=1;for(;K()==="!"&&(K(2)!=="("||K(3)==="?");)ce(),L.start++,ee++;return ee%2===0?!1:(L.negated=!0,L.start++,!0)},ae=ee=>{L[ee]++,z.push(ee)},re=ee=>{L[ee]--,z.pop()},X=ee=>{if(O.type==="globstar"){let Me=L.braces>0&&(ee.type==="comma"||ee.type==="brace"),ne=ee.extglob===!0||Z.length&&(ee.type==="pipe"||ee.type==="paren");ee.type!=="slash"&&ee.type!=="paren"&&!Me&&!ne&&(L.output=L.output.slice(0,-O.output.length),O.type="star",O.value="*",O.output=w,L.output+=O.output)}if(Z.length&&ee.type!=="paren"&&!l[ee.value]&&(Z[Z.length-1].inner+=ee.value),(ee.value||ee.output)&&Ot(ee),O&&O.type==="text"&&ee.type==="text"){O.value+=ee.value,O.output=(O.output||"")+ee.value;return}ee.prev=O,o.push(ee),O=ee},ke=(ee,Me)=>{let ne={...l[Me],conditions:1,inner:""};ne.prev=O,ne.parens=L.parens,ne.output=L.output;let Ne=(n.capture?"(":"")+ne.open;ae("parens"),X({type:ee,value:Me,output:L.output?"":m}),X({type:"paren",extglob:!0,value:ce(),output:Ne}),Z.push(ne)},He=ee=>{let Me=ee.close+(n.capture?")":"");if(ee.type==="negate"){let ne=w;ee.inner&&ee.inner.length>1&&ee.inner.includes("/")&&(ne=G(n)),(ne!==w||J()||/^\)+$/.test(Ee()))&&(Me=ee.close=`)$))${ne}`),ee.prev.type==="bos"&&J()&&(L.negatedExtglob=!0)}X({type:"paren",extglob:!0,value:R,output:Me}),re("parens")};if(n.fastpaths!==!1&&!/(^[*!]|[/()[\]{}"])/.test(e)){let ee=!1,Me=e.replace(d9,(ne,Ne,Ie,At,st,so)=>At==="\\"?(ee=!0,ne):At==="?"?Ne?Ne+At+(st?A.repeat(st.length):""):so===0?k+(st?A.repeat(st.length):""):A.repeat(Ie.length):At==="."?c.repeat(Ie.length):At==="*"?Ne?Ne+At+(st?w:""):w:Ne?ne:`\\${ne}`);return ee===!0&&(n.unescape===!0?Me=Me.replace(/\\/g,""):Me=Me.replace(/\\+/g,ne=>ne.length%2===0?"\\\\":ne?"\\":"")),Me===e&&n.contains===!0?(L.output=e,L):(L.output=kn.wrapOutput(Me,L,t),L)}for(;!J();){if(R=ce(),R==="\0")continue;if(R==="\\"){let ne=K();if(ne==="/"&&n.bash!==!0||ne==="."||ne===";")continue;if(!ne){R+="\\",X({type:"text",value:R});continue}let Ne=/^\\+/.exec(Ee()),Ie=0;if(Ne&&Ne[0].length>2&&(Ie=Ne[0].length,L.index+=Ie,Ie%2!==0&&(R+="\\")),n.unescape===!0?R=ce()||"":R+=ce()||"",L.brackets===0){X({type:"text",value:R});continue}}if(L.brackets>0&&(R!=="]"||O.value==="["||O.value==="[^")){if(n.posix!==!1&&R===":"){let ne=O.value.slice(1);if(ne.includes("[")&&(O.posix=!0,ne.includes(":"))){let Ne=O.value.lastIndexOf("["),Ie=O.value.slice(0,Ne),At=O.value.slice(Ne+2),st=h9[At];if(st){O.value=Ie+st,L.backtrack=!0,ce(),!s.output&&o.indexOf(O)===1&&(s.output=m);continue}}}(R==="["&&K()!==":"||R==="-"&&K()==="]")&&(R=`\\${R}`),R==="]"&&(O.value==="["||O.value==="[^")&&(R=`\\${R}`),n.posix===!0&&R==="!"&&O.value==="["&&(R="^"),O.value+=R,Ot({value:R});continue}if(L.quotes===1&&R!=='"'){R=kn.escapeRegex(R),O.value+=R,Ot({value:R});continue}if(R==='"'){L.quotes=L.quotes===1?0:1,n.keepQuotes===!0&&X({type:"text",value:R});continue}if(R==="("){ae("parens"),X({type:"paren",value:R});continue}if(R===")"){if(L.parens===0&&n.strictBrackets===!0)throw new SyntaxError(Ks("opening","("));let ne=Z[Z.length-1];if(ne&&L.parens===ne.parens+1){He(Z.pop());continue}X({type:"paren",value:R,output:L.parens?")":"\\)"}),re("parens");continue}if(R==="["){if(n.nobracket===!0||!Ee().includes("]")){if(n.nobracket!==!0&&n.strictBrackets===!0)throw new SyntaxError(Ks("closing","]"));R=`\\${R}`}else ae("brackets");X({type:"bracket",value:R});continue}if(R==="]"){if(n.nobracket===!0||O&&O.type==="bracket"&&O.value.length===1){X({type:"text",value:R,output:`\\${R}`});continue}if(L.brackets===0){if(n.strictBrackets===!0)throw new SyntaxError(Ks("opening","["));X({type:"text",value:R,output:`\\${R}`});continue}re("brackets");let ne=O.value.slice(1);if(O.posix!==!0&&ne[0]==="^"&&!ne.includes("/")&&(R=`/${R}`),O.value+=R,Ot({value:R}),n.literalBrackets===!1||kn.hasRegexChars(ne))continue;let Ne=kn.escapeRegex(O.value);if(L.output=L.output.slice(0,-O.value.length),n.literalBrackets===!0){L.output+=Ne,O.value=Ne;continue}O.value=`(${a}${Ne}|${O.value})`,L.output+=O.value;continue}if(R==="{"&&n.nobrace!==!0){ae("braces");let ne={type:"brace",value:R,output:"(",outputIndex:L.output.length,tokensIndex:L.tokens.length};P.push(ne),X(ne);continue}if(R==="}"){let ne=P[P.length-1];if(n.nobrace===!0||!ne){X({type:"text",value:R,output:R});continue}let Ne=")";if(ne.dots===!0){let Ie=o.slice(),At=[];for(let st=Ie.length-1;st>=0&&(o.pop(),Ie[st].type!=="brace");st--)Ie[st].type!=="dots"&&At.unshift(Ie[st].value);Ne=m9(At,n),L.backtrack=!0}if(ne.comma!==!0&&ne.dots!==!0){let Ie=L.output.slice(0,ne.outputIndex),At=L.tokens.slice(ne.tokensIndex);ne.value=ne.output="\\{",R=Ne="\\}",L.output=Ie;for(let st of At)L.output+=st.output||st.value}X({type:"brace",value:R,output:Ne}),re("braces"),P.pop();continue}if(R==="|"){Z.length>0&&Z[Z.length-1].conditions++,X({type:"text",value:R});continue}if(R===","){let ne=R,Ne=P[P.length-1];Ne&&z[z.length-1]==="braces"&&(Ne.comma=!0,ne="|"),X({type:"comma",value:R,output:ne});continue}if(R==="/"){if(O.type==="dot"&&L.index===L.start+1){L.start=L.index+1,L.consumed="",L.output="",o.pop(),O=s;continue}X({type:"slash",value:R,output:d});continue}if(R==="."){if(L.braces>0&&O.type==="dot"){O.value==="."&&(O.output=c);let ne=P[P.length-1];O.type="dots",O.output+=R,O.value+=R,ne.dots=!0;continue}if(L.braces+L.parens===0&&O.type!=="bos"&&O.type!=="slash"){X({type:"text",value:R,output:c});continue}X({type:"dot",value:R,output:c});continue}if(R==="?"){if(!(O&&O.value==="(")&&n.noextglob!==!0&&K()==="("&&K(2)!=="?"){ke("qmark",R);continue}if(O&&O.type==="paren"){let Ne=K(),Ie=R;if(Ne==="<"&&!kn.supportsLookbehinds())throw new Error("Node.js v10 or higher is required for regex lookbehinds");(O.value==="("&&!/[!=<:]/.test(Ne)||Ne==="<"&&!/<([!=]|\w+>)/.test(Ee()))&&(Ie=`\\${R}`),X({type:"text",value:R,output:Ie});continue}if(n.dot!==!0&&(O.type==="slash"||O.type==="bos")){X({type:"qmark",value:R,output:S});continue}X({type:"qmark",value:R,output:A});continue}if(R==="!"){if(n.noextglob!==!0&&K()==="("&&(K(2)!=="?"||!/[!=<:]/.test(K(3)))){ke("negate",R);continue}if(n.nonegate!==!0&&L.index===0){$();continue}}if(R==="+"){if(n.noextglob!==!0&&K()==="("&&K(2)!=="?"){ke("plus",R);continue}if(O&&O.value==="("||n.regex===!1){X({type:"plus",value:R,output:f});continue}if(O&&(O.type==="bracket"||O.type==="paren"||O.type==="brace")||L.parens>0){X({type:"plus",value:R});continue}X({type:"plus",value:f});continue}if(R==="@"){if(n.noextglob!==!0&&K()==="("&&K(2)!=="?"){X({type:"at",extglob:!0,value:R,output:""});continue}X({type:"text",value:R});continue}if(R!=="*"){(R==="$"||R==="^")&&(R=`\\${R}`);let ne=p9.exec(Ee());ne&&(R+=ne[0],L.index+=ne[0].length),X({type:"text",value:R});continue}if(O&&(O.type==="globstar"||O.star===!0)){O.type="star",O.star=!0,O.value+=R,O.output=w,L.backtrack=!0,L.globstar=!0,De(R);continue}let ee=Ee();if(n.noextglob!==!0&&/^\([^?]/.test(ee)){ke("star",R);continue}if(O.type==="star"){if(n.noglobstar===!0){De(R);continue}let ne=O.prev,Ne=ne.prev,Ie=ne.type==="slash"||ne.type==="bos",At=Ne&&(Ne.type==="star"||Ne.type==="globstar");if(n.bash===!0&&(!Ie||ee[0]&&ee[0]!=="/")){X({type:"star",value:R,output:""});continue}let st=L.braces>0&&(ne.type==="comma"||ne.type==="brace"),so=Z.length&&(ne.type==="pipe"||ne.type==="paren");if(!Ie&&ne.type!=="paren"&&!st&&!so){X({type:"star",value:R,output:""});continue}for(;ee.slice(0,3)==="/**";){let Pi=e[L.index+4];if(Pi&&Pi!=="/")break;ee=ee.slice(3),De("/**",3)}if(ne.type==="bos"&&J()){O.type="globstar",O.value+=R,O.output=G(n),L.output=O.output,L.globstar=!0,De(R);continue}if(ne.type==="slash"&&ne.prev.type!=="bos"&&!At&&J()){L.output=L.output.slice(0,-(ne.output+O.output).length),ne.output=`(?:${ne.output}`,O.type="globstar",O.output=G(n)+(n.strictSlashes?")":"|$)"),O.value+=R,L.globstar=!0,L.output+=ne.output+O.output,De(R);continue}if(ne.type==="slash"&&ne.prev.type!=="bos"&&ee[0]==="/"){let Pi=ee[1]!==void 0?"|$":"";L.output=L.output.slice(0,-(ne.output+O.output).length),ne.output=`(?:${ne.output}`,O.type="globstar",O.output=`${G(n)}${d}|${d}${Pi})`,O.value+=R,L.output+=ne.output+O.output,L.globstar=!0,De(R+ce()),X({type:"slash",value:"/",output:""});continue}if(ne.type==="bos"&&ee[0]==="/"){O.type="globstar",O.value+=R,O.output=`(?:^|${d}|${G(n)}${d})`,L.output=O.output,L.globstar=!0,De(R+ce()),X({type:"slash",value:"/",output:""});continue}L.output=L.output.slice(0,-O.output.length),O.type="globstar",O.output=G(n),O.value+=R,L.output+=O.output,L.globstar=!0,De(R);continue}let Me={type:"star",value:R,output:w};if(n.bash===!0){Me.output=".*?",(O.type==="bos"||O.type==="slash")&&(Me.output=I+Me.output),X(Me);continue}if(O&&(O.type==="bracket"||O.type==="paren")&&n.regex===!0){Me.output=R,X(Me);continue}(L.index===L.start||O.type==="slash"||O.type==="dot")&&(O.type==="dot"?(L.output+=T,O.output+=T):n.dot===!0?(L.output+=v,O.output+=v):(L.output+=I,O.output+=I),K()!=="*"&&(L.output+=m,O.output+=m)),X(Me)}for(;L.brackets>0;){if(n.strictBrackets===!0)throw new SyntaxError(Ks("closing","]"));L.output=kn.escapeLast(L.output,"["),re("brackets")}for(;L.parens>0;){if(n.strictBrackets===!0)throw new SyntaxError(Ks("closing",")"));L.output=kn.escapeLast(L.output,"("),re("parens")}for(;L.braces>0;){if(n.strictBrackets===!0)throw new SyntaxError(Ks("closing","}"));L.output=kn.escapeLast(L.output,"{"),re("braces")}if(n.strictSlashes!==!0&&(O.type==="star"||O.type==="bracket")&&X({type:"maybe_slash",value:"",output:`${d}?`}),L.backtrack===!0){L.output="";for(let ee of L.tokens)L.output+=ee.output!=null?ee.output:ee.value,ee.suffix&&(L.output+=ee.suffix)}return L};C2.fastpaths=(e,t)=>{let n={...t},r=typeof n.maxLength=="number"?Math.min(Tl,n.maxLength):Tl,i=e.length;if(i>r)throw new SyntaxError(`Input length: ${i}, exceeds maximum allowed length: ${r}`);e=B2[e]||e;let{DOT_LITERAL:s,SLASH_LITERAL:o,ONE_CHAR:a,DOTS_SLASH:u,NO_DOT:l,NO_DOTS:c,NO_DOTS_SLASH:f,STAR:d,START_ANCHOR:m}=Nl.globChars(n.windows),g=n.dot?c:l,E=n.dot?f:l,T=n.capture?"":"?:",v={negated:!1,prefix:""},A=n.bash===!0?".*?":d;n.capture&&(A=`(${A})`);let S=I=>I.noglobstar===!0?A:`(${T}(?:(?!${m}${I.dot?u:s}).)*?)`,C=I=>{switch(I){case"*":return`${g}${a}${A}`;case".*":return`${s}${a}${A}`;case"*.*":return`${g}${A}${s}${a}${A}`;case"*/*":return`${g}${A}${o}${a}${E}${A}`;case"**":return g+S(n);case"**/*":return`(?:${g}${S(n)}${o})?${E}${a}${A}`;case"**/*.*":return`(?:${g}${S(n)}${o})?${E}${A}${s}${a}${A}`;case"**/.*":return`(?:${g}${S(n)}${o})?${s}${a}${A}`;default:{let k=/^(.*?)\.(\w+)$/.exec(I);if(!k)return;let w=C(k[1]);return w?w+s+k[2]:void 0}}},q=kn.removePrefix(e,v),G=C(q);return G&&n.strictSlashes!==!0&&(G+=`${o}?`),G};V2.exports=C2});var q2=Ir((aC,G2)=>{"use strict";var g9=P2(),C1=$2(),j2=vl(),_9=ca(),E9=e=>e&&typeof e=="object"&&!Array.isArray(e),pt=(e,t,n=!1)=>{if(Array.isArray(e)){let c=e.map(d=>pt(d,t,n));return d=>{for(let m of c){let g=m(d);if(g)return g}return!1}}let r=E9(e)&&e.tokens&&e.input;if(e===""||typeof e!="string"&&!r)throw new TypeError("Expected pattern to be a non-empty string");let i=t||{},s=i.windows,o=r?pt.compileRe(e,t):pt.makeRe(e,t,!1,!0),a=o.state;delete o.state;let u=()=>!1;if(i.ignore){let c={...t,ignore:null,onMatch:null,onResult:null};u=pt(i.ignore,c,n)}let l=(c,f=!1)=>{let{isMatch:d,match:m,output:g}=pt.test(c,o,t,{glob:e,posix:s}),E={glob:e,state:a,regex:o,posix:s,input:c,output:g,match:m,isMatch:d};return typeof i.onResult=="function"&&i.onResult(E),d===!1?(E.isMatch=!1,f?E:!1):u(c)?(typeof i.onIgnore=="function"&&i.onIgnore(E),E.isMatch=!1,f?E:!1):(typeof i.onMatch=="function"&&i.onMatch(E),f?E:!0)};return n&&(l.state=a),l};pt.test=(e,t,n,{glob:r,posix:i}={})=>{if(typeof e!="string")throw new TypeError("Expected input to be a string");if(e==="")return{isMatch:!1,output:""};let s=n||{},o=s.format||(i?j2.toPosixSlashes:null),a=e===r,u=a&&o?o(e):e;return a===!1&&(u=o?o(e):e,a=u===r),(a===!1||s.capture===!0)&&(s.matchBase===!0||s.basename===!0?a=pt.matchBase(e,t,n,i):a=t.exec(u)),{isMatch:!!a,match:a,output:u}};pt.matchBase=(e,t,n)=>(t instanceof RegExp?t:pt.makeRe(t,n)).test(j2.basename(e));pt.isMatch=(e,t,n)=>pt(t,n)(e);pt.parse=(e,t)=>Array.isArray(e)?e.map(n=>pt.parse(n,t)):C1(e,{...t,fastpaths:!1});pt.scan=(e,t)=>g9(e,t);pt.compileRe=(e,t,n=!1,r=!1)=>{if(n===!0)return e.output;let i=t||{},s=i.contains?"":"^",o=i.contains?"":"$",a=`${s}(?:${e.output})${o}`;e&&e.negated===!0&&(a=`^(?!${a}).*$`);let u=pt.toRegex(a,t);return r===!0&&(u.state=e),u};pt.makeRe=(e,t,n=!1,r=!1)=>{if(!e||typeof e!="string")throw new TypeError("Expected a non-empty string");let i=t||{},s={negated:!1,fastpaths:!0},o="",a;return e.startsWith("./")&&(e=e.slice(2),o=s.prefix="./"),i.fastpaths!==!1&&(e[0]==="."||e[0]==="*")&&(a=C1.fastpaths(e,t)),a===void 0?(s=C1(e,t),s.prefix=o+(s.prefix||"")):s.output=a,pt.compileRe(s,t,n,r)};pt.toRegex=(e,t)=>{try{let n=t||{};return new RegExp(e,n.flags||(n.nocase?"i":""))}catch(n){if(t&&t.debug===!0)throw n;return/$^/}};pt.constants=_9;G2.exports=pt});var W2=Ir((uC,H2)=>{"use strict";H2.exports=q2()});var m4={};R5(m4,{__debug:()=>d4,check:()=>h4,default:()=>jN,doc:()=>gh,format:()=>Th,formatWithCursor:()=>Nh,getSupportInfo:()=>p4,util:()=>_h,version:()=>f4});function U9(e,t,n){return M9.diff(e,t,n)}function P9(e){let t=e.indexOf("\r");return t!==-1?e.charAt(t+1)===`
|
|
2
|
-
`?"crlf":"cr":"lf"}function
|
|
1
|
+
(()=>{var T5=Object.create;var Yl=Object.defineProperty;var y5=Object.getOwnPropertyDescriptor;var w5=Object.getOwnPropertyNames;var x5=Object.getPrototypeOf,L5=Object.prototype.hasOwnProperty;var A5=(e,t)=>()=>(e&&(t=e(e=0)),t);var Sr=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),F5=(e,t)=>{for(var n in t)Yl(e,n,{get:t[n],enumerable:!0})},S5=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of w5(t))!L5.call(e,i)&&i!==n&&Yl(e,i,{get:()=>t[i],enumerable:!(r=y5(t,i))||r.enumerable});return e};var Xl=(e,t,n)=>(n=e!=null?T5(x5(e)):{},S5(t||!e||!e.__esModule?Yl(n,"default",{value:e,enumerable:!0}):n,e));var b2=Sr((qP,cl)=>{"use strict";function D2(e,t){if(e!=null)return e;var n=new Error(t!==void 0?t:"Got unexpected "+e);throw n.framesToPop=1,n}cl.exports=D2;cl.exports.default=D2;Object.defineProperty(cl.exports,"__esModule",{value:!0})});var la=Sr((VB,S2)=>{"use strict";var Zn="\\\\/",x2=`[^${Zn}]`,vr="\\.",Pb="\\+",Bb="\\?",bl="\\/",Cb="(?=.)",L2="[^/]",M1=`(?:${bl}|$)`,A2=`(?:^|${bl})`,U1=`${vr}{1,2}${M1}`,Vb=`(?!${vr})`,$b=`(?!${A2}${U1})`,jb=`(?!${vr}{0,1}${M1})`,Gb=`(?!${U1})`,qb=`[^.${bl}]`,Hb=`${L2}*?`,Wb="/",F2={DOT_LITERAL:vr,PLUS_LITERAL:Pb,QMARK_LITERAL:Bb,SLASH_LITERAL:bl,ONE_CHAR:Cb,QMARK:L2,END_ANCHOR:M1,DOTS_SLASH:U1,NO_DOT:Vb,NO_DOTS:$b,NO_DOT_SLASH:jb,NO_DOTS_SLASH:Gb,QMARK_NO_DOT:qb,STAR:Hb,START_ANCHOR:A2,SEP:Wb},zb={...F2,SLASH_LITERAL:`[${Zn}]`,QMARK:x2,STAR:`${x2}*?`,DOTS_SLASH:`${vr}{1,2}(?:[${Zn}]|$)`,NO_DOT:`(?!${vr})`,NO_DOTS:`(?!(?:^|[${Zn}])${vr}{1,2}(?:[${Zn}]|$))`,NO_DOT_SLASH:`(?!${vr}{0,1}(?:[${Zn}]|$))`,NO_DOTS_SLASH:`(?!${vr}{1,2}(?:[${Zn}]|$))`,QMARK_NO_DOT:`[^.${Zn}]`,START_ANCHOR:`(?:^|[${Zn}])`,END_ANCHOR:`(?:[${Zn}]|$)`,SEP:"\\"},Qb={alnum:"a-zA-Z0-9",alpha:"a-zA-Z",ascii:"\\x00-\\x7F",blank:" \\t",cntrl:"\\x00-\\x1F\\x7F",digit:"0-9",graph:"\\x21-\\x7E",lower:"a-z",print:"\\x20-\\x7E ",punct:"\\-!\"#$%&'()\\*+,./:;<=>?@[\\]^_`{|}~",space:" \\t\\r\\n\\v\\f",upper:"A-Z",word:"A-Za-z0-9_",xdigit:"A-Fa-f0-9"};S2.exports={MAX_LENGTH:1024*64,POSIX_REGEX_SOURCE:Qb,REGEX_BACKSLASH:/\\(?![*+?^${}(|)[\]])/g,REGEX_NON_SPECIAL_CHARS:/^[^@![\].,$*+?^{}()|\\/]+/,REGEX_SPECIAL_CHARS:/[-*+?.^${}(|)[\]]/,REGEX_SPECIAL_CHARS_BACKREF:/(\\?)((\W)(\3*))/g,REGEX_SPECIAL_CHARS_GLOBAL:/([-*+?.^${}(|)[\]])/g,REGEX_REMOVE_BACKSLASH:/(?:\[.*?[^\\]\]|\\(?=.))/g,REPLACEMENTS:{"***":"*","**/**":"**","**/**/**":"**"},CHAR_0:48,CHAR_9:57,CHAR_UPPERCASE_A:65,CHAR_LOWERCASE_A:97,CHAR_UPPERCASE_Z:90,CHAR_LOWERCASE_Z:122,CHAR_LEFT_PARENTHESES:40,CHAR_RIGHT_PARENTHESES:41,CHAR_ASTERISK:42,CHAR_AMPERSAND:38,CHAR_AT:64,CHAR_BACKWARD_SLASH:92,CHAR_CARRIAGE_RETURN:13,CHAR_CIRCUMFLEX_ACCENT:94,CHAR_COLON:58,CHAR_COMMA:44,CHAR_DOT:46,CHAR_DOUBLE_QUOTE:34,CHAR_EQUAL:61,CHAR_EXCLAMATION_MARK:33,CHAR_FORM_FEED:12,CHAR_FORWARD_SLASH:47,CHAR_GRAVE_ACCENT:96,CHAR_HASH:35,CHAR_HYPHEN_MINUS:45,CHAR_LEFT_ANGLE_BRACKET:60,CHAR_LEFT_CURLY_BRACE:123,CHAR_LEFT_SQUARE_BRACKET:91,CHAR_LINE_FEED:10,CHAR_NO_BREAK_SPACE:160,CHAR_PERCENT:37,CHAR_PLUS:43,CHAR_QUESTION_MARK:63,CHAR_RIGHT_ANGLE_BRACKET:62,CHAR_RIGHT_CURLY_BRACE:125,CHAR_RIGHT_SQUARE_BRACKET:93,CHAR_SEMICOLON:59,CHAR_SINGLE_QUOTE:39,CHAR_SPACE:32,CHAR_TAB:9,CHAR_UNDERSCORE:95,CHAR_VERTICAL_LINE:124,CHAR_ZERO_WIDTH_NOBREAK_SPACE:65279,extglobChars(e){return{"!":{type:"negate",open:"(?:(?!(?:",close:`))${e.STAR})`},"?":{type:"qmark",open:"(?:",close:")?"},"+":{type:"plus",open:"(?:",close:")+"},"*":{type:"star",open:"(?:",close:")*"},"@":{type:"at",open:"(?:",close:")"}}},globChars(e){return e===!0?zb:F2}}});var vl=Sr(Zt=>{"use strict";var{REGEX_BACKSLASH:Yb,REGEX_REMOVE_BACKSLASH:Xb,REGEX_SPECIAL_CHARS:Jb,REGEX_SPECIAL_CHARS_GLOBAL:Zb}=la();Zt.isObject=e=>e!==null&&typeof e=="object"&&!Array.isArray(e);Zt.hasRegexChars=e=>Jb.test(e);Zt.isRegexChar=e=>e.length===1&&Zt.hasRegexChars(e);Zt.escapeRegex=e=>e.replace(Zb,"\\$1");Zt.toPosixSlashes=e=>e.replace(Yb,"/");Zt.removeBackslashes=e=>e.replace(Xb,t=>t==="\\"?"":t);Zt.supportsLookbehinds=()=>{let e=process.version.slice(1).split(".").map(Number);return e.length===3&&e[0]>=9||e[0]===8&&e[1]>=10};Zt.escapeLast=(e,t,n)=>{let r=e.lastIndexOf(t,n);return r===-1?e:e[r-1]==="\\"?Zt.escapeLast(e,t,r-1):`${e.slice(0,r)}\\${e.slice(r)}`};Zt.removePrefix=(e,t={})=>{let n=e;return n.startsWith("./")&&(n=n.slice(2),t.prefix="./"),n};Zt.wrapOutput=(e,t={},n={})=>{let r=n.contains?"":"^",i=n.contains?"":"$",s=`${r}(?:${e})${i}`;return t.negated===!0&&(s=`(?:^(?!${s}).*$)`),s};Zt.basename=(e,{windows:t}={})=>t?e.replace(/[\\/]$/,"").replace(/.*[\\/]/,""):e.replace(/\/$/,"").replace(/.*\//,"")});var C2=Sr((jB,B2)=>{"use strict";var R2=vl(),{CHAR_ASTERISK:P1,CHAR_AT:Kb,CHAR_BACKWARD_SLASH:ca,CHAR_COMMA:e9,CHAR_DOT:B1,CHAR_EXCLAMATION_MARK:I2,CHAR_FORWARD_SLASH:P2,CHAR_LEFT_CURLY_BRACE:C1,CHAR_LEFT_PARENTHESES:V1,CHAR_LEFT_SQUARE_BRACKET:t9,CHAR_PLUS:n9,CHAR_QUESTION_MARK:O2,CHAR_RIGHT_CURLY_BRACE:r9,CHAR_RIGHT_PARENTHESES:k2,CHAR_RIGHT_SQUARE_BRACKET:i9}=la(),M2=e=>e===P2||e===ca,U2=e=>{e.isPrefix!==!0&&(e.depth=e.isGlobstar?1/0:1)},s9=(e,t)=>{let n=t||{},r=e.length-1,i=n.parts===!0||n.scanToEnd===!0,s=[],o=[],a=[],u=e,l=-1,c=0,f=0,d=!1,m=!1,g=!1,_=!1,T=!1,A=!1,S=!1,L=!1,P=!1,q=0,Y,I,U={value:"",depth:0,isGlob:!1},w=()=>l>=r,F=()=>u.charCodeAt(l+1),Z=()=>(Y=I,u.charCodeAt(++l));for(;l<r;){I=Z();let K;if(I===ca){S=U.backslashes=!0,I=Z(),I===C1&&(A=!0);continue}if(A===!0||I===C1){for(q++;w()!==!0&&(I=Z());){if(I===ca){S=U.backslashes=!0,Z();continue}if(I===C1){q++;continue}if(A!==!0&&I===B1&&(I=Z())===B1){if(d=U.isBrace=!0,g=U.isGlob=!0,P=!0,i===!0)continue;break}if(A!==!0&&I===e9){if(d=U.isBrace=!0,g=U.isGlob=!0,P=!0,i===!0)continue;break}if(I===r9&&(q--,q===0)){A=!1,d=U.isBrace=!0,P=!0;break}}if(i===!0)continue;break}if(I===P2){if(s.push(l),o.push(U),U={value:"",depth:0,isGlob:!1},P===!0)continue;if(Y===B1&&l===c+1){c+=2;continue}f=l+1;continue}if(n.noext!==!0&&(I===n9||I===Kb||I===P1||I===O2||I===I2)===!0&&F()===V1){if(g=U.isGlob=!0,_=U.isExtglob=!0,P=!0,i===!0){for(;w()!==!0&&(I=Z());){if(I===ca){S=U.backslashes=!0,I=Z();continue}if(I===k2){g=U.isGlob=!0,P=!0;break}}continue}break}if(I===P1){if(Y===P1&&(T=U.isGlobstar=!0),g=U.isGlob=!0,P=!0,i===!0)continue;break}if(I===O2){if(g=U.isGlob=!0,P=!0,i===!0)continue;break}if(I===t9)for(;w()!==!0&&(K=Z());){if(K===ca){S=U.backslashes=!0,Z();continue}if(K===i9){if(m=U.isBracket=!0,g=U.isGlob=!0,P=!0,i===!0)continue;break}}if(n.nonegate!==!0&&I===I2&&l===c){L=U.negated=!0,c++;continue}if(n.noparen!==!0&&I===V1){if(g=U.isGlob=!0,i===!0){for(;w()!==!0&&(I=Z());){if(I===V1){S=U.backslashes=!0,I=Z();continue}if(I===k2){P=!0;break}}continue}break}if(g===!0){if(P=!0,i===!0)continue;break}}n.noext===!0&&(_=!1,g=!1);let re=u,ne="",R="";c>0&&(ne=u.slice(0,c),u=u.slice(c),f-=c),re&&g===!0&&f>0?(re=u.slice(0,f),R=u.slice(f)):g===!0?(re="",R=u):re=u,re&&re!==""&&re!=="/"&&re!==u&&M2(re.charCodeAt(re.length-1))&&(re=re.slice(0,-1)),n.unescape===!0&&(R&&(R=R2.removeBackslashes(R)),re&&S===!0&&(re=R2.removeBackslashes(re)));let k={prefix:ne,input:e,start:c,base:re,glob:R,isBrace:d,isBracket:m,isGlob:g,isExtglob:_,isGlobstar:T,negated:L};if(n.tokens===!0&&(k.maxDepth=0,M2(I)||o.push(U),k.tokens=o),n.parts===!0||n.tokens===!0){let K;for(let J=0;J<s.length;J++){let fe=K?K+1:c,_e=s[J],Fe=e.slice(fe,_e);n.tokens&&(J===0&&c!==0?(o[J].isPrefix=!0,o[J].value=ne):o[J].value=Fe,U2(o[J]),k.maxDepth+=o[J].depth),(J!==0||Fe!=="")&&a.push(Fe),K=_e}if(K&&K+1<e.length){let J=e.slice(K+1);a.push(J),n.tokens&&(o[o.length-1].value=J,U2(o[o.length-1]),k.maxDepth+=o[o.length-1].depth)}k.slashes=s,k.parts=a}return k};B2.exports=s9});var G2=Sr((GB,j2)=>{"use strict";var Nl=la(),Rn=vl(),{MAX_LENGTH:Tl,POSIX_REGEX_SOURCE:o9,REGEX_NON_SPECIAL_CHARS:a9,REGEX_SPECIAL_CHARS_BACKREF:u9,REPLACEMENTS:V2}=Nl,l9=(e,t)=>{if(typeof t.expandRange=="function")return t.expandRange(...e,t);e.sort();let n=`[${e.join("-")}]`;try{new RegExp(n)}catch{return e.map(i=>Rn.escapeRegex(i)).join("..")}return n},Ys=(e,t)=>`Missing ${e}: "${t}" - use "\\\\${t}" to match literal characters`,$2=(e,t)=>{if(typeof e!="string")throw new TypeError("Expected a string");e=V2[e]||e;let n={...t},r=typeof n.maxLength=="number"?Math.min(Tl,n.maxLength):Tl,i=e.length;if(i>r)throw new SyntaxError(`Input length: ${i}, exceeds maximum allowed length: ${r}`);let s={type:"bos",value:"",output:n.prepend||""},o=[s],a=n.capture?"":"?:",u=Nl.globChars(n.windows),l=Nl.extglobChars(u),{DOT_LITERAL:c,PLUS_LITERAL:f,SLASH_LITERAL:d,ONE_CHAR:m,DOTS_SLASH:g,NO_DOT:_,NO_DOT_SLASH:T,NO_DOTS_SLASH:A,QMARK:S,QMARK_NO_DOT:L,STAR:P,START_ANCHOR:q}=u,Y=Q=>`(${a}(?:(?!${q}${Q.dot?g:c}).)*?)`,I=n.dot?"":_,U=n.dot?S:L,w=n.bash===!0?Y(n):P;n.capture&&(w=`(${w})`),typeof n.noext=="boolean"&&(n.noextglob=n.noext);let F={input:e,index:-1,start:0,dot:n.dot===!0,consumed:"",output:"",prefix:"",backtrack:!1,negated:!1,brackets:0,braces:0,parens:0,quotes:0,globstar:!1,tokens:o};e=Rn.removePrefix(e,F),i=e.length;let Z=[],re=[],ne=[],R=s,k,K=()=>F.index===i-1,J=F.peek=(Q=1)=>e[F.index+Q],fe=F.advance=()=>e[++F.index],_e=()=>e.slice(F.index+1),Fe=(Q="",ke=0)=>{F.consumed+=Q,F.index+=ke},Xe=Q=>{F.output+=Q.output!=null?Q.output:Q.value,Fe(Q.value)},V=()=>{let Q=1;for(;J()==="!"&&(J(2)!=="("||J(3)==="?");)fe(),F.start++,Q++;return Q%2===0?!1:(F.negated=!0,F.start++,!0)},ae=Q=>{F[Q]++,ne.push(Q)},te=Q=>{F[Q]--,ne.pop()},z=Q=>{if(R.type==="globstar"){let ke=F.braces>0&&(Q.type==="comma"||Q.type==="brace"),ee=Q.extglob===!0||Z.length&&(Q.type==="pipe"||Q.type==="paren");Q.type!=="slash"&&Q.type!=="paren"&&!ke&&!ee&&(F.output=F.output.slice(0,-R.output.length),R.type="star",R.value="*",R.output=w,F.output+=R.output)}if(Z.length&&Q.type!=="paren"&&!l[Q.value]&&(Z[Z.length-1].inner+=Q.value),(Q.value||Q.output)&&Xe(Q),R&&R.type==="text"&&Q.type==="text"){R.value+=Q.value,R.output=(R.output||"")+Q.value;return}Q.prev=R,o.push(Q),R=Q},Se=(Q,ke)=>{let ee={...l[ke],conditions:1,inner:""};ee.prev=R,ee.parens=F.parens,ee.output=F.output;let ve=(n.capture?"(":"")+ee.open;ae("parens"),z({type:Q,value:ke,output:F.output?"":m}),z({type:"paren",extglob:!0,value:fe(),output:ve}),Z.push(ee)},We=Q=>{let ke=Q.close+(n.capture?")":"");if(Q.type==="negate"){let ee=w;Q.inner&&Q.inner.length>1&&Q.inner.includes("/")&&(ee=Y(n)),(ee!==w||K()||/^\)+$/.test(_e()))&&(ke=Q.close=`)$))${ee}`),Q.prev.type==="bos"&&K()&&(F.negatedExtglob=!0)}z({type:"paren",extglob:!0,value:k,output:ke}),te("parens")};if(n.fastpaths!==!1&&!/(^[*!]|[/()[\]{}"])/.test(e)){let Q=!1,ke=e.replace(u9,(ee,ve,Oe,At,ot,io)=>At==="\\"?(Q=!0,ee):At==="?"?ve?ve+At+(ot?S.repeat(ot.length):""):io===0?U+(ot?S.repeat(ot.length):""):S.repeat(Oe.length):At==="."?c.repeat(Oe.length):At==="*"?ve?ve+At+(ot?w:""):w:ve?ee:`\\${ee}`);return Q===!0&&(n.unescape===!0?ke=ke.replace(/\\/g,""):ke=ke.replace(/\\+/g,ee=>ee.length%2===0?"\\\\":ee?"\\":"")),ke===e&&n.contains===!0?(F.output=e,F):(F.output=Rn.wrapOutput(ke,F,t),F)}for(;!K();){if(k=fe(),k==="\0")continue;if(k==="\\"){let ee=J();if(ee==="/"&&n.bash!==!0||ee==="."||ee===";")continue;if(!ee){k+="\\",z({type:"text",value:k});continue}let ve=/^\\+/.exec(_e()),Oe=0;if(ve&&ve[0].length>2&&(Oe=ve[0].length,F.index+=Oe,Oe%2!==0&&(k+="\\")),n.unescape===!0?k=fe()||"":k+=fe()||"",F.brackets===0){z({type:"text",value:k});continue}}if(F.brackets>0&&(k!=="]"||R.value==="["||R.value==="[^")){if(n.posix!==!1&&k===":"){let ee=R.value.slice(1);if(ee.includes("[")&&(R.posix=!0,ee.includes(":"))){let ve=R.value.lastIndexOf("["),Oe=R.value.slice(0,ve),At=R.value.slice(ve+2),ot=o9[At];if(ot){R.value=Oe+ot,F.backtrack=!0,fe(),!s.output&&o.indexOf(R)===1&&(s.output=m);continue}}}(k==="["&&J()!==":"||k==="-"&&J()==="]")&&(k=`\\${k}`),k==="]"&&(R.value==="["||R.value==="[^")&&(k=`\\${k}`),n.posix===!0&&k==="!"&&R.value==="["&&(k="^"),R.value+=k,Xe({value:k});continue}if(F.quotes===1&&k!=='"'){k=Rn.escapeRegex(k),R.value+=k,Xe({value:k});continue}if(k==='"'){F.quotes=F.quotes===1?0:1,n.keepQuotes===!0&&z({type:"text",value:k});continue}if(k==="("){ae("parens"),z({type:"paren",value:k});continue}if(k===")"){if(F.parens===0&&n.strictBrackets===!0)throw new SyntaxError(Ys("opening","("));let ee=Z[Z.length-1];if(ee&&F.parens===ee.parens+1){We(Z.pop());continue}z({type:"paren",value:k,output:F.parens?")":"\\)"}),te("parens");continue}if(k==="["){if(n.nobracket===!0||!_e().includes("]")){if(n.nobracket!==!0&&n.strictBrackets===!0)throw new SyntaxError(Ys("closing","]"));k=`\\${k}`}else ae("brackets");z({type:"bracket",value:k});continue}if(k==="]"){if(n.nobracket===!0||R&&R.type==="bracket"&&R.value.length===1){z({type:"text",value:k,output:`\\${k}`});continue}if(F.brackets===0){if(n.strictBrackets===!0)throw new SyntaxError(Ys("opening","["));z({type:"text",value:k,output:`\\${k}`});continue}te("brackets");let ee=R.value.slice(1);if(R.posix!==!0&&ee[0]==="^"&&!ee.includes("/")&&(k=`/${k}`),R.value+=k,Xe({value:k}),n.literalBrackets===!1||Rn.hasRegexChars(ee))continue;let ve=Rn.escapeRegex(R.value);if(F.output=F.output.slice(0,-R.value.length),n.literalBrackets===!0){F.output+=ve,R.value=ve;continue}R.value=`(${a}${ve}|${R.value})`,F.output+=R.value;continue}if(k==="{"&&n.nobrace!==!0){ae("braces");let ee={type:"brace",value:k,output:"(",outputIndex:F.output.length,tokensIndex:F.tokens.length};re.push(ee),z(ee);continue}if(k==="}"){let ee=re[re.length-1];if(n.nobrace===!0||!ee){z({type:"text",value:k,output:k});continue}let ve=")";if(ee.dots===!0){let Oe=o.slice(),At=[];for(let ot=Oe.length-1;ot>=0&&(o.pop(),Oe[ot].type!=="brace");ot--)Oe[ot].type!=="dots"&&At.unshift(Oe[ot].value);ve=l9(At,n),F.backtrack=!0}if(ee.comma!==!0&&ee.dots!==!0){let Oe=F.output.slice(0,ee.outputIndex),At=F.tokens.slice(ee.tokensIndex);ee.value=ee.output="\\{",k=ve="\\}",F.output=Oe;for(let ot of At)F.output+=ot.output||ot.value}z({type:"brace",value:k,output:ve}),te("braces"),re.pop();continue}if(k==="|"){Z.length>0&&Z[Z.length-1].conditions++,z({type:"text",value:k});continue}if(k===","){let ee=k,ve=re[re.length-1];ve&&ne[ne.length-1]==="braces"&&(ve.comma=!0,ee="|"),z({type:"comma",value:k,output:ee});continue}if(k==="/"){if(R.type==="dot"&&F.index===F.start+1){F.start=F.index+1,F.consumed="",F.output="",o.pop(),R=s;continue}z({type:"slash",value:k,output:d});continue}if(k==="."){if(F.braces>0&&R.type==="dot"){R.value==="."&&(R.output=c);let ee=re[re.length-1];R.type="dots",R.output+=k,R.value+=k,ee.dots=!0;continue}if(F.braces+F.parens===0&&R.type!=="bos"&&R.type!=="slash"){z({type:"text",value:k,output:c});continue}z({type:"dot",value:k,output:c});continue}if(k==="?"){if(!(R&&R.value==="(")&&n.noextglob!==!0&&J()==="("&&J(2)!=="?"){Se("qmark",k);continue}if(R&&R.type==="paren"){let ve=J(),Oe=k;if(ve==="<"&&!Rn.supportsLookbehinds())throw new Error("Node.js v10 or higher is required for regex lookbehinds");(R.value==="("&&!/[!=<:]/.test(ve)||ve==="<"&&!/<([!=]|\w+>)/.test(_e()))&&(Oe=`\\${k}`),z({type:"text",value:k,output:Oe});continue}if(n.dot!==!0&&(R.type==="slash"||R.type==="bos")){z({type:"qmark",value:k,output:L});continue}z({type:"qmark",value:k,output:S});continue}if(k==="!"){if(n.noextglob!==!0&&J()==="("&&(J(2)!=="?"||!/[!=<:]/.test(J(3)))){Se("negate",k);continue}if(n.nonegate!==!0&&F.index===0){V();continue}}if(k==="+"){if(n.noextglob!==!0&&J()==="("&&J(2)!=="?"){Se("plus",k);continue}if(R&&R.value==="("||n.regex===!1){z({type:"plus",value:k,output:f});continue}if(R&&(R.type==="bracket"||R.type==="paren"||R.type==="brace")||F.parens>0){z({type:"plus",value:k});continue}z({type:"plus",value:f});continue}if(k==="@"){if(n.noextglob!==!0&&J()==="("&&J(2)!=="?"){z({type:"at",extglob:!0,value:k,output:""});continue}z({type:"text",value:k});continue}if(k!=="*"){(k==="$"||k==="^")&&(k=`\\${k}`);let ee=a9.exec(_e());ee&&(k+=ee[0],F.index+=ee[0].length),z({type:"text",value:k});continue}if(R&&(R.type==="globstar"||R.star===!0)){R.type="star",R.star=!0,R.value+=k,R.output=w,F.backtrack=!0,F.globstar=!0,Fe(k);continue}let Q=_e();if(n.noextglob!==!0&&/^\([^?]/.test(Q)){Se("star",k);continue}if(R.type==="star"){if(n.noglobstar===!0){Fe(k);continue}let ee=R.prev,ve=ee.prev,Oe=ee.type==="slash"||ee.type==="bos",At=ve&&(ve.type==="star"||ve.type==="globstar");if(n.bash===!0&&(!Oe||Q[0]&&Q[0]!=="/")){z({type:"star",value:k,output:""});continue}let ot=F.braces>0&&(ee.type==="comma"||ee.type==="brace"),io=Z.length&&(ee.type==="pipe"||ee.type==="paren");if(!Oe&&ee.type!=="paren"&&!ot&&!io){z({type:"star",value:k,output:""});continue}for(;Q.slice(0,3)==="/**";){let Oi=e[F.index+4];if(Oi&&Oi!=="/")break;Q=Q.slice(3),Fe("/**",3)}if(ee.type==="bos"&&K()){R.type="globstar",R.value+=k,R.output=Y(n),F.output=R.output,F.globstar=!0,Fe(k);continue}if(ee.type==="slash"&&ee.prev.type!=="bos"&&!At&&K()){F.output=F.output.slice(0,-(ee.output+R.output).length),ee.output=`(?:${ee.output}`,R.type="globstar",R.output=Y(n)+(n.strictSlashes?")":"|$)"),R.value+=k,F.globstar=!0,F.output+=ee.output+R.output,Fe(k);continue}if(ee.type==="slash"&&ee.prev.type!=="bos"&&Q[0]==="/"){let Oi=Q[1]!==void 0?"|$":"";F.output=F.output.slice(0,-(ee.output+R.output).length),ee.output=`(?:${ee.output}`,R.type="globstar",R.output=`${Y(n)}${d}|${d}${Oi})`,R.value+=k,F.output+=ee.output+R.output,F.globstar=!0,Fe(k+fe()),z({type:"slash",value:"/",output:""});continue}if(ee.type==="bos"&&Q[0]==="/"){R.type="globstar",R.value+=k,R.output=`(?:^|${d}|${Y(n)}${d})`,F.output=R.output,F.globstar=!0,Fe(k+fe()),z({type:"slash",value:"/",output:""});continue}F.output=F.output.slice(0,-R.output.length),R.type="globstar",R.output=Y(n),R.value+=k,F.output+=R.output,F.globstar=!0,Fe(k);continue}let ke={type:"star",value:k,output:w};if(n.bash===!0){ke.output=".*?",(R.type==="bos"||R.type==="slash")&&(ke.output=I+ke.output),z(ke);continue}if(R&&(R.type==="bracket"||R.type==="paren")&&n.regex===!0){ke.output=k,z(ke);continue}(F.index===F.start||R.type==="slash"||R.type==="dot")&&(R.type==="dot"?(F.output+=T,R.output+=T):n.dot===!0?(F.output+=A,R.output+=A):(F.output+=I,R.output+=I),J()!=="*"&&(F.output+=m,R.output+=m)),z(ke)}for(;F.brackets>0;){if(n.strictBrackets===!0)throw new SyntaxError(Ys("closing","]"));F.output=Rn.escapeLast(F.output,"["),te("brackets")}for(;F.parens>0;){if(n.strictBrackets===!0)throw new SyntaxError(Ys("closing",")"));F.output=Rn.escapeLast(F.output,"("),te("parens")}for(;F.braces>0;){if(n.strictBrackets===!0)throw new SyntaxError(Ys("closing","}"));F.output=Rn.escapeLast(F.output,"{"),te("braces")}if(n.strictSlashes!==!0&&(R.type==="star"||R.type==="bracket")&&z({type:"maybe_slash",value:"",output:`${d}?`}),F.backtrack===!0){F.output="";for(let Q of F.tokens)F.output+=Q.output!=null?Q.output:Q.value,Q.suffix&&(F.output+=Q.suffix)}return F};$2.fastpaths=(e,t)=>{let n={...t},r=typeof n.maxLength=="number"?Math.min(Tl,n.maxLength):Tl,i=e.length;if(i>r)throw new SyntaxError(`Input length: ${i}, exceeds maximum allowed length: ${r}`);e=V2[e]||e;let{DOT_LITERAL:s,SLASH_LITERAL:o,ONE_CHAR:a,DOTS_SLASH:u,NO_DOT:l,NO_DOTS:c,NO_DOTS_SLASH:f,STAR:d,START_ANCHOR:m}=Nl.globChars(n.windows),g=n.dot?c:l,_=n.dot?f:l,T=n.capture?"":"?:",A={negated:!1,prefix:""},S=n.bash===!0?".*?":d;n.capture&&(S=`(${S})`);let L=I=>I.noglobstar===!0?S:`(${T}(?:(?!${m}${I.dot?u:s}).)*?)`,P=I=>{switch(I){case"*":return`${g}${a}${S}`;case".*":return`${s}${a}${S}`;case"*.*":return`${g}${S}${s}${a}${S}`;case"*/*":return`${g}${S}${o}${a}${_}${S}`;case"**":return g+L(n);case"**/*":return`(?:${g}${L(n)}${o})?${_}${a}${S}`;case"**/*.*":return`(?:${g}${L(n)}${o})?${_}${S}${s}${a}${S}`;case"**/.*":return`(?:${g}${L(n)}${o})?${s}${a}${S}`;default:{let U=/^(.*?)\.(\w+)$/.exec(I);if(!U)return;let w=P(U[1]);return w?w+s+U[2]:void 0}}},q=Rn.removePrefix(e,A),Y=P(q);return Y&&n.strictSlashes!==!0&&(Y+=`${o}?`),Y};j2.exports=$2});var W2=Sr((qB,H2)=>{"use strict";var c9=C2(),$1=G2(),q2=vl(),f9=la(),h9=e=>e&&typeof e=="object"&&!Array.isArray(e),dt=(e,t,n=!1)=>{if(Array.isArray(e)){let c=e.map(d=>dt(d,t,n));return d=>{for(let m of c){let g=m(d);if(g)return g}return!1}}let r=h9(e)&&e.tokens&&e.input;if(e===""||typeof e!="string"&&!r)throw new TypeError("Expected pattern to be a non-empty string");let i=t||{},s=i.windows,o=r?dt.compileRe(e,t):dt.makeRe(e,t,!1,!0),a=o.state;delete o.state;let u=()=>!1;if(i.ignore){let c={...t,ignore:null,onMatch:null,onResult:null};u=dt(i.ignore,c,n)}let l=(c,f=!1)=>{let{isMatch:d,match:m,output:g}=dt.test(c,o,t,{glob:e,posix:s}),_={glob:e,state:a,regex:o,posix:s,input:c,output:g,match:m,isMatch:d};return typeof i.onResult=="function"&&i.onResult(_),d===!1?(_.isMatch=!1,f?_:!1):u(c)?(typeof i.onIgnore=="function"&&i.onIgnore(_),_.isMatch=!1,f?_:!1):(typeof i.onMatch=="function"&&i.onMatch(_),f?_:!0)};return n&&(l.state=a),l};dt.test=(e,t,n,{glob:r,posix:i}={})=>{if(typeof e!="string")throw new TypeError("Expected input to be a string");if(e==="")return{isMatch:!1,output:""};let s=n||{},o=s.format||(i?q2.toPosixSlashes:null),a=e===r,u=a&&o?o(e):e;return a===!1&&(u=o?o(e):e,a=u===r),(a===!1||s.capture===!0)&&(s.matchBase===!0||s.basename===!0?a=dt.matchBase(e,t,n,i):a=t.exec(u)),{isMatch:!!a,match:a,output:u}};dt.matchBase=(e,t,n)=>(t instanceof RegExp?t:dt.makeRe(t,n)).test(q2.basename(e));dt.isMatch=(e,t,n)=>dt(t,n)(e);dt.parse=(e,t)=>Array.isArray(e)?e.map(n=>dt.parse(n,t)):$1(e,{...t,fastpaths:!1});dt.scan=(e,t)=>c9(e,t);dt.compileRe=(e,t,n=!1,r=!1)=>{if(n===!0)return e.output;let i=t||{},s=i.contains?"":"^",o=i.contains?"":"$",a=`${s}(?:${e.output})${o}`;e&&e.negated===!0&&(a=`^(?!${a}).*$`);let u=dt.toRegex(a,t);return r===!0&&(u.state=e),u};dt.makeRe=(e,t,n=!1,r=!1)=>{if(!e||typeof e!="string")throw new TypeError("Expected a non-empty string");let i=t||{},s={negated:!1,fastpaths:!0},o="",a;return e.startsWith("./")&&(e=e.slice(2),o=s.prefix="./"),i.fastpaths!==!1&&(e[0]==="."||e[0]==="*")&&(a=$1.fastpaths(e,t)),a===void 0?(s=$1(e,t),s.prefix=o+(s.prefix||"")):s.output=a,dt.compileRe(s,t,n,r)};dt.toRegex=(e,t)=>{try{let n=t||{};return new RegExp(e,n.flags||(n.nocase?"i":""))}catch(n){if(t&&t.debug===!0)throw n;return/$^/}};dt.constants=f9;H2.exports=dt});var Q2=Sr((HB,z2)=>{"use strict";z2.exports=W2()});var _4={};F5(_4,{__debug:()=>g4,check:()=>d4,default:()=>LN,doc:()=>Th,format:()=>Sh,formatWithCursor:()=>Fh,getSupportInfo:()=>m4,util:()=>yh,version:()=>p4});function In(){}function Z2(e,t,n,r,i){for(var s=[],o;t;)s.push(t),o=t.previousComponent,delete t.previousComponent,t=o;s.reverse();for(var a=0,u=s.length,l=0,c=0;a<u;a++){var f=s[a];if(f.removed)f.value=e.join(r.slice(c,c+f.count)),c+=f.count;else{if(!f.added&&i){var d=n.slice(l,l+f.count);d=d.map(function(m,g){var _=r[c+g];return _.length>m.length?_:m}),f.value=e.join(d)}else f.value=e.join(n.slice(l,l+f.count));l+=f.count,f.added||(c+=f.count)}}return s}function K2(e,t){var n;for(n=0;n<e.length&&n<t.length;n++)if(e[n]!=t[n])return e.slice(0,n);return e.slice(0,n)}function e_(e,t){var n;if(!e||!t||e[e.length-1]!=t[t.length-1])return"";for(n=0;n<e.length&&n<t.length;n++)if(e[e.length-(n+1)]!=t[t.length-(n+1)])return e.slice(-n);return e.slice(-n)}function J1(e,t,n){if(e.slice(0,t.length)!=t)throw Error("string ".concat(JSON.stringify(e)," doesn't start with prefix ").concat(JSON.stringify(t),"; this is a bug"));return n+e.slice(t.length)}function Z1(e,t,n){if(!t)return e+n;if(e.slice(-t.length)!=t)throw Error("string ".concat(JSON.stringify(e)," doesn't end with suffix ").concat(JSON.stringify(t),"; this is a bug"));return e.slice(0,-t.length)+n}function ha(e,t){return J1(e,t,"")}function wl(e,t){return Z1(e,t,"")}function t_(e,t){return t.slice(0,y9(e,t))}function y9(e,t){var n=0;e.length>t.length&&(n=e.length-t.length);var r=t.length;e.length<t.length&&(r=e.length);var i=Array(r),s=0;i[0]=0;for(var o=1;o<r;o++){for(t[o]==t[s]?i[o]=i[s]:i[o]=s;s>0&&t[o]!=t[s];)s=i[s];t[o]==t[s]&&s++}s=0;for(var a=n;a<e.length;a++){for(;s>0&&e[a]!=t[s];)s=i[s];e[a]==t[s]&&s++}return s}function n_(e,t,n,r){if(t&&n){var i=t.value.match(/^\s*/)[0],s=t.value.match(/\s*$/)[0],o=n.value.match(/^\s*/)[0],a=n.value.match(/\s*$/)[0];if(e){var u=K2(i,o);e.value=Z1(e.value,o,u),t.value=ha(t.value,u),n.value=ha(n.value,u)}if(r){var l=e_(s,a);r.value=J1(r.value,a,l),t.value=wl(t.value,l),n.value=wl(n.value,l)}}else if(n)e&&(n.value=n.value.replace(/^\s*/,"")),r&&(r.value=r.value.replace(/^\s*/,""));else if(e&&r){var c=r.value.match(/^\s*/)[0],f=t.value.match(/^\s*/)[0],d=t.value.match(/\s*$/)[0],m=K2(c,f);t.value=ha(t.value,m);var g=e_(ha(c,m),d);t.value=wl(t.value,g),r.value=J1(r.value,c,g),e.value=Z1(e.value,c,c.slice(0,c.length-g.length))}else if(r){var _=r.value.match(/^\s*/)[0],T=t.value.match(/\s*$/)[0],A=t_(T,_);t.value=wl(t.value,A)}else if(e){var S=e.value.match(/\s*$/)[0],L=t.value.match(/^\s*/)[0],P=t_(S,L);t.value=ha(t.value,P)}}function K1(e){"@babel/helpers - typeof";return K1=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},K1(e)}function eh(e,t,n,r,i){t=t||[],n=n||[],r&&(e=r(i,e));var s;for(s=0;s<t.length;s+=1)if(t[s]===e)return n[s];var o;if(Object.prototype.toString.call(e)==="[object Array]"){for(t.push(e),o=new Array(e.length),n.push(o),s=0;s<e.length;s+=1)o[s]=eh(e[s],t,n,r,i);return t.pop(),n.pop(),o}if(e&&e.toJSON&&(e=e.toJSON()),K1(e)==="object"&&e!==null){t.push(e),o={},n.push(o);var a=[],u;for(u in e)Object.prototype.hasOwnProperty.call(e,u)&&a.push(u);for(a.sort(),s=0;s<a.length;s+=1)u=a[s],o[u]=eh(e[u],t,n,r,u);t.pop(),n.pop()}else o=e;return o}function F9(e,t,n){return Il.diff(e,t,n)}function S9(e){let t=e.indexOf("\r");return t!==-1?e.charAt(t+1)===`
|
|
2
|
+
`?"crlf":"cr":"lf"}function ph(e){switch(e){case"cr":return"\r";case"crlf":return`\r
|
|
3
3
|
`;default:return`
|
|
4
|
-
`}}function
|
|
4
|
+
`}}function I_(e,t){let n;switch(t){case`
|
|
5
5
|
`:n=/\n/gu;break;case"\r":n=/\r/gu;break;case`\r
|
|
6
|
-
`:n=/\r\n/gu;break;default:throw new Error(`Unexpected "eol" ${JSON.stringify(t)}.`)}let r=e.match(n);return r?r.length:0}function
|
|
7
|
-
`)}function
|
|
8
|
-
|
|
9
|
-
Expected it to be
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
`,i):g;a.push(E),o.length>0&&(s+=ch(E));break}case xr:for(let E=g.length-1;E>=0;E--)o.push({ind:d,mode:m,doc:g[E]});break;case Jr:if(c>=2)throw new Error("There are too many 'cursor' in doc.");a.push(eo),c++;break;case yr:o.push({ind:v8(d,t),mode:m,doc:g.contents});break;case Lr:o.push({ind:N8(d,g.n,t),mode:m,doc:g.contents});break;case Ar:s-=Z1(a);break;case nn:switch(m){case Zn:if(!u){o.push({ind:d,mode:g.break?tn:Zn,doc:g.contents});break}case tn:{u=!1;let E={ind:d,mode:Zn,doc:g.contents},T=r-s,v=l.length>0;if(!g.break&&xl(E,o,T,v,n))o.push(E);else if(g.expandedStates){let A=Lt(!1,g.expandedStates,-1);if(g.break){o.push({ind:d,mode:tn,doc:A});break}else for(let S=1;S<g.expandedStates.length+1;S++)if(S>=g.expandedStates.length){o.push({ind:d,mode:tn,doc:A});break}else{let C=g.expandedStates[S],q={ind:d,mode:Zn,doc:C};if(xl(q,o,T,v,n)){o.push(q);break}}}else o.push({ind:d,mode:tn,doc:g.contents});break}}g.id&&(n[g.id]=Lt(!1,o,-1).mode);break;case tr:{let E=r-s,T=g[X1]??0,{parts:v}=g,A=v.length-T;if(A===0)break;let S=v[T+0],C=v[T+1],q={ind:d,mode:Zn,doc:S},G={ind:d,mode:tn,doc:S},I=xl(q,[],E,l.length>0,n,!0);if(A===1){I?o.push(q):o.push(G);break}let k={ind:d,mode:Zn,doc:C},w={ind:d,mode:tn,doc:C};if(A===2){I?o.push(k,q):o.push(w,G);break}let L=v[T+2],Z={ind:d,mode:m,doc:{...g,[X1]:T+2}};xl({ind:d,mode:Zn,doc:[S,C,L]},[],E,l.length>0,n,!0)?o.push(Z,k,q):I?o.push(Z,w,q):o.push(Z,w,G);break}case hn:case Fr:{let E=g.groupId?n[g.groupId]:m;if(E===tn){let T=g.type===hn?g.breakContents:g.negate?g.contents:Sl(g.contents);T&&o.push({ind:d,mode:m,doc:T})}if(E===Zn){let T=g.type===hn?g.flatContents:g.negate?Sl(g.contents):g.contents;T&&o.push({ind:d,mode:m,doc:T})}break}case Sr:l.push({ind:d,mode:m,doc:g.contents});break;case Rr:l.length>0&&o.push({ind:d,mode:m,doc:lh});break;case It:switch(m){case Zn:if(g.hard)u=!0;else{g.soft||(a.push(" "),s+=1);break}case tn:if(l.length>0){o.push({ind:d,mode:m,doc:g},...l.reverse()),l.length=0;break}g.literal?d.root?(a.push(i,d.root.value),s=d.root.length):(a.push(i),s=0):(s-=Z1(a),a.push(i+d.value),s=d.length);break}break;case nr:o.push({ind:d,mode:m,doc:g.contents});break;case En:break;default:throw new no(g)}o.length===0&&l.length>0&&(o.push(...l.reverse()),l.length=0)}let f=a.indexOf(eo);if(f!==-1){let d=a.indexOf(eo,f+1);if(d===-1)return{formatted:a.filter(T=>T!==eo).join("")};let m=a.slice(0,f).join(""),g=a.slice(f+1,d).join(""),E=a.slice(d+1).join("");return{formatted:m+g+E,cursorNodeStart:m.length,cursorNodeText:g}}return{formatted:a.join("")}}function T8(e,t,n=0){let r=0;for(let i=n;i<e.length;++i)e[i]===" "?r=r+t-r%t:r++;return r}function y8(e){return e!==null&&typeof e=="object"}function*Ml(e,t){let{getVisitorKeys:n,filter:r=()=>!0}=t,i=s=>L8(s)&&r(s);for(let s of n(e)){let o=e[s];if(Array.isArray(o))for(let a of o)i(a)&&(yield a);else i(o)&&(yield o)}}function*A8(e,t){let n=[e];for(let r=0;r<n.length;r++){let i=n[r];for(let s of Ml(i,t))yield s,n.push(s)}}function F8(e,t){return Ml(e,t).next().done}function ga(e){return(t,n,r)=>{let i=!!(r!=null&&r.backwards);if(n===!1)return!1;let{length:s}=t,o=n;for(;o>=0&&o<s;){let a=t.charAt(o);if(e instanceof RegExp){if(!e.test(a))return o}else if(!e.includes(a))return o;i?o--:o++}return o===-1||o===s?o:!1}}function R8(e,t,n){let r=!!(n!=null&&n.backwards);if(t===!1)return!1;let i=e.charAt(t);if(r){if(e.charAt(t-1)==="\r"&&i===`
|
|
6
|
+
`:n=/\r\n/gu;break;default:throw new Error(`Unexpected "eol" ${JSON.stringify(t)}.`)}let r=e.match(n);return r?r.length:0}function R9(e){return Ml(!1,e,/\r\n?/gu,`
|
|
7
|
+
`)}function O9(e){if(typeof e=="string")return Si;if(Array.isArray(e))return Tr;if(!e)return;let{type:t}=e;if(O_.has(t))return t}function M9(e){let t=e===null?"null":typeof e;if(t!=="string"&&t!=="object")return`Unexpected doc '${t}',
|
|
8
|
+
Expected it to be 'string' or 'object'.`;if(Ii(e))throw new Error("doc is valid.");let n=Object.prototype.toString.call(e);if(n!=="[object Object]")return`Unexpected doc '${n}'.`;let r=k9([...O_].map(i=>`'${i}'`));return`Unexpected doc.type '${e.type}'.
|
|
9
|
+
Expected it to be ${r}.`}function P9(e,t,n,r){let i=[e];for(;i.length>0;){let s=i.pop();if(s===r_){n(i.pop());continue}n&&i.push(s,r_);let o=Ii(s);if(!o)throw new to(s);if(t?.(s)!==!1)switch(o){case Tr:case tr:{let a=o===Tr?s:s.parts;for(let u=a.length,l=u-1;l>=0;--l)i.push(a[l]);break}case hn:i.push(s.flatContents,s.breakContents);break;case en:if(r&&s.expandedStates)for(let a=s.expandedStates.length,u=a-1;u>=0;--u)i.push(s.expandedStates[u]);else i.push(s.contents);break;case wr:case yr:case Lr:case nr:case Ar:i.push(s.contents);break;case Si:case Ri:case xr:case Fr:case It:case _n:break;default:throw new to(s)}}}function Pl(e,t){if(typeof e=="string")return t(e);let n=new Map;return r(e);function r(s){if(n.has(s))return n.get(s);let o=i(s);return n.set(s,o),o}function i(s){switch(Ii(s)){case Tr:return t(s.map(r));case tr:return t({...s,parts:s.parts.map(r)});case hn:return t({...s,breakContents:r(s.breakContents),flatContents:r(s.flatContents)});case en:{let{expandedStates:o,contents:a}=s;return o?(o=o.map(r),a=o[0]):a=r(a),t({...s,contents:a,expandedStates:o})}case wr:case yr:case Lr:case nr:case Ar:return t({...s,contents:r(s.contents)});case Si:case Ri:case xr:case Fr:case It:case _n:return t(s);default:throw new to(s)}}}function mh(e,t,n){let r=n,i=!1;function s(o){if(i)return!1;let a=t(o);a!==void 0&&(i=!0,r=a)}return dh(e,s),r}function B9(e){if(e.type===en&&e.break||e.type===It&&e.hard||e.type===_n)return!0}function C9(e){return mh(e,B9,!1)}function i_(e){if(e.length>0){let t=Lt(!1,e,-1);!t.expandedStates&&!t.break&&(t.break="propagated")}return null}function V9(e){let t=new Set,n=[];function r(s){if(s.type===_n&&i_(n),s.type===en){if(n.push(s),t.has(s))return!1;t.add(s)}}function i(s){s.type===en&&n.pop().break&&i_(n)}dh(e,r,i,!0)}function $9(e){return e.type===It&&!e.hard?e.soft?"":" ":e.type===hn?e.flatContents:e}function j9(e){return Pl(e,$9)}function s_(e){for(e=[...e];e.length>=2&&Lt(!1,e,-2).type===It&&Lt(!1,e,-1).type===_n;)e.length-=2;if(e.length>0){let t=pa(Lt(!1,e,-1));e[e.length-1]=t}return e}function pa(e){switch(Ii(e)){case yr:case Lr:case en:case Ar:case nr:{let t=pa(e.contents);return{...e,contents:t}}case hn:return{...e,breakContents:pa(e.breakContents),flatContents:pa(e.flatContents)};case tr:return{...e,parts:s_(e.parts)};case Tr:return s_(e);case Si:return e.replace(/[\n\r]*$/u,"");case wr:case Ri:case xr:case Fr:case It:case _n:break;default:throw new to(e)}return e}function k_(e){return pa(q9(e))}function G9(e){switch(Ii(e)){case tr:if(e.parts.every(t=>t===""))return"";break;case en:if(!e.contents&&!e.id&&!e.break&&!e.expandedStates)return"";if(e.contents.type===en&&e.contents.id===e.id&&e.contents.break===e.break&&e.contents.expandedStates===e.expandedStates)return e.contents;break;case wr:case yr:case Lr:case Ar:if(!e.contents)return"";break;case hn:if(!e.flatContents&&!e.breakContents)return"";break;case Tr:{let t=[];for(let n of e){if(!n)continue;let[r,...i]=Array.isArray(n)?n:[n];typeof r=="string"&&typeof Lt(!1,t,-1)=="string"?t[t.length-1]+=r:t.push(r),t.push(...i)}return t.length===0?"":t.length===1?t[0]:t}case Si:case Ri:case xr:case Fr:case It:case nr:case _n:break;default:throw new to(e)}return e}function q9(e){return Pl(e,t=>G9(t))}function H9(e,t=C_){return Pl(e,n=>typeof n=="string"?V_(t,n.split(`
|
|
10
|
+
`)):n)}function W9(e){if(e.type===It)return!0}function z9(e){return mh(e,W9,!1)}function Al(e,t){return e.type===nr?{...e,contents:t(e.contents)}:t(e)}function Ol(e){return er(e),{type:yr,contents:e}}function no(e,t){return er(t),{type:wr,contents:t,n:e}}function U_(e,t={}){return er(e),M_(t.expandedStates,!0),{type:en,id:t.id,contents:e,break:!!t.shouldBreak,expandedStates:t.expandedStates}}function Y9(e){return no(Number.NEGATIVE_INFINITY,e)}function X9(e){return no({type:"root"},e)}function J9(e){return no(-1,e)}function Z9(e,t){return U_(e[0],{...t,expandedStates:e})}function K9(e){return Q9(e),{type:tr,parts:e}}function e8(e,t="",n={}){return er(e),t!==""&&er(t),{type:hn,breakContents:e,flatContents:t,groupId:n.groupId}}function t8(e,t){return er(e),{type:Lr,contents:e,groupId:t.groupId,negate:t.negate}}function th(e){return er(e),{type:Ar,contents:e}}function V_(e,t){er(e),M_(t);let n=[];for(let r=0;r<t.length;r++)r!==0&&n.push(e),n.push(t[r]);return n}function $_(e,t,n){er(e);let r=e;if(t>0){for(let i=0;i<Math.floor(t/n);++i)r=Ol(r);r=no(t%n,r),r=no(Number.NEGATIVE_INFINITY,r)}return r}function s8(e,t){return er(t),e?{type:nr,label:e,contents:t}:t}function Nr(e){var t;if(!e)return"";if(Array.isArray(e)){let n=[];for(let r of e)if(Array.isArray(r))n.push(...Nr(r));else{let i=Nr(r);i!==""&&n.push(i)}return n}return e.type===hn?{...e,breakContents:Nr(e.breakContents),flatContents:Nr(e.flatContents)}:e.type===en?{...e,contents:Nr(e.contents),expandedStates:(t=e.expandedStates)==null?void 0:t.map(Nr)}:e.type===tr?{type:"fill",parts:e.parts.map(Nr)}:e.contents?{...e,contents:Nr(e.contents)}:e}function o8(e){let t=Object.create(null),n=new Set;return r(Nr(e));function r(s,o,a){var u,l;if(typeof s=="string")return JSON.stringify(s);if(Array.isArray(s)){let c=s.map(r).filter(Boolean);return c.length===1?c[0]:`[${c.join(", ")}]`}if(s.type===It){let c=((u=a?.[o+1])==null?void 0:u.type)===_n;return s.literal?c?"literalline":"literallineWithoutBreakParent":s.hard?c?"hardline":"hardlineWithoutBreakParent":s.soft?"softline":"line"}if(s.type===_n)return((l=a?.[o-1])==null?void 0:l.type)===It&&a[o-1].hard?void 0:"breakParent";if(s.type===xr)return"trim";if(s.type===yr)return"indent("+r(s.contents)+")";if(s.type===wr)return s.n===Number.NEGATIVE_INFINITY?"dedentToRoot("+r(s.contents)+")":s.n<0?"dedent("+r(s.contents)+")":s.n.type==="root"?"markAsRoot("+r(s.contents)+")":"align("+JSON.stringify(s.n)+", "+r(s.contents)+")";if(s.type===hn)return"ifBreak("+r(s.breakContents)+(s.flatContents?", "+r(s.flatContents):"")+(s.groupId?(s.flatContents?"":', ""')+`, { groupId: ${i(s.groupId)} }`:"")+")";if(s.type===Lr){let c=[];s.negate&&c.push("negate: true"),s.groupId&&c.push(`groupId: ${i(s.groupId)}`);let f=c.length>0?`, { ${c.join(", ")} }`:"";return`indentIfBreak(${r(s.contents)}${f})`}if(s.type===en){let c=[];s.break&&s.break!=="propagated"&&c.push("shouldBreak: true"),s.id&&c.push(`id: ${i(s.id)}`);let f=c.length>0?`, { ${c.join(", ")} }`:"";return s.expandedStates?`conditionalGroup([${s.expandedStates.map(d=>r(d)).join(",")}]${f})`:`group(${r(s.contents)}${f})`}if(s.type===tr)return`fill([${s.parts.map(c=>r(c)).join(", ")}])`;if(s.type===Ar)return"lineSuffix("+r(s.contents)+")";if(s.type===Fr)return"lineSuffixBoundary";if(s.type===nr)return`label(${JSON.stringify(s.label)}, ${r(s.contents)})`;throw new Error("Unknown doc type "+s.type)}function i(s){if(typeof s!="symbol")return JSON.stringify(String(s));if(s in t)return t[s];let o=s.description||"symbol";for(let a=0;;a++){let u=o+(a>0?` #${a}`:"");if(!n.has(u))return n.add(u),t[s]=`Symbol.for(${JSON.stringify(u)})`}}}function u8(e){return e===12288||e>=65281&&e<=65376||e>=65504&&e<=65510}function l8(e){return e>=4352&&e<=4447||e===8986||e===8987||e===9001||e===9002||e>=9193&&e<=9196||e===9200||e===9203||e===9725||e===9726||e===9748||e===9749||e>=9776&&e<=9783||e>=9800&&e<=9811||e===9855||e>=9866&&e<=9871||e===9875||e===9889||e===9898||e===9899||e===9917||e===9918||e===9924||e===9925||e===9934||e===9940||e===9962||e===9970||e===9971||e===9973||e===9978||e===9981||e===9989||e===9994||e===9995||e===10024||e===10060||e===10062||e>=10067&&e<=10069||e===10071||e>=10133&&e<=10135||e===10160||e===10175||e===11035||e===11036||e===11088||e===11093||e>=11904&&e<=11929||e>=11931&&e<=12019||e>=12032&&e<=12245||e>=12272&&e<=12287||e>=12289&&e<=12350||e>=12353&&e<=12438||e>=12441&&e<=12543||e>=12549&&e<=12591||e>=12593&&e<=12686||e>=12688&&e<=12773||e>=12783&&e<=12830||e>=12832&&e<=12871||e>=12880&&e<=42124||e>=42128&&e<=42182||e>=43360&&e<=43388||e>=44032&&e<=55203||e>=63744&&e<=64255||e>=65040&&e<=65049||e>=65072&&e<=65106||e>=65108&&e<=65126||e>=65128&&e<=65131||e>=94176&&e<=94180||e===94192||e===94193||e>=94208&&e<=100343||e>=100352&&e<=101589||e>=101631&&e<=101640||e>=110576&&e<=110579||e>=110581&&e<=110587||e===110589||e===110590||e>=110592&&e<=110882||e===110898||e>=110928&&e<=110930||e===110933||e>=110948&&e<=110951||e>=110960&&e<=111355||e>=119552&&e<=119638||e>=119648&&e<=119670||e===126980||e===127183||e===127374||e>=127377&&e<=127386||e>=127488&&e<=127490||e>=127504&&e<=127547||e>=127552&&e<=127560||e===127568||e===127569||e>=127584&&e<=127589||e>=127744&&e<=127776||e>=127789&&e<=127797||e>=127799&&e<=127868||e>=127870&&e<=127891||e>=127904&&e<=127946||e>=127951&&e<=127955||e>=127968&&e<=127984||e===127988||e>=127992&&e<=128062||e===128064||e>=128066&&e<=128252||e>=128255&&e<=128317||e>=128331&&e<=128334||e>=128336&&e<=128359||e===128378||e===128405||e===128406||e===128420||e>=128507&&e<=128591||e>=128640&&e<=128709||e===128716||e>=128720&&e<=128722||e>=128725&&e<=128727||e>=128732&&e<=128735||e===128747||e===128748||e>=128756&&e<=128764||e>=128992&&e<=129003||e===129008||e>=129292&&e<=129338||e>=129340&&e<=129349||e>=129351&&e<=129535||e>=129648&&e<=129660||e>=129664&&e<=129673||e>=129679&&e<=129734||e>=129742&&e<=129756||e>=129759&&e<=129769||e>=129776&&e<=129784||e>=131072&&e<=196605||e>=196608&&e<=262141}function h8(e){if(!e)return 0;if(!f8.test(e))return e.length;e=e.replace(a8()," ");let t=0;for(let n of e){let r=n.codePointAt(0);r<=31||r>=127&&r<=159||r>=768&&r<=879||(t+=c8(r)?1:2)}return t}function j_(){return{value:"",length:0,queue:[]}}function p8(e,t){return rh(e,{type:"indent"},t)}function d8(e,t,n){return t===Number.NEGATIVE_INFINITY?e.root||j_():t<0?rh(e,{type:"dedent"},n):t?t.type==="root"?{...e,root:e}:rh(e,{type:typeof t=="string"?"stringAlign":"numberAlign",n:t},n):e}function rh(e,t,n){let r=t.type==="dedent"?e.queue.slice(0,-1):[...e.queue,t],i="",s=0,o=0,a=0;for(let g of r)switch(g.type){case"indent":c(),n.useTabs?u(1):l(n.tabWidth);break;case"stringAlign":c(),i+=g.n,s+=g.n.length;break;case"numberAlign":o+=1,a+=g.n;break;default:throw new Error(`Unexpected type '${g.type}'`)}return d(),{...e,value:i,length:s,queue:r};function u(g){i+=" ".repeat(g),s+=n.tabWidth*g}function l(g){i+=" ".repeat(g),s+=g}function c(){n.useTabs?f():d()}function f(){o>0&&u(o),m()}function d(){a>0&&l(a),m()}function m(){o=0,a=0}}function ih(e){let t=0,n=0,r=e.length;e:for(;r--;){let i=e[r];if(i===Xs){n++;continue}for(let s=i.length-1;s>=0;s--){let o=i[s];if(o===" "||o===" ")t++;else{e[r]=i.slice(0,s+1);break e}}}if(t>0||n>0)for(e.length=r+1;n-- >0;)e.push(Xs);return t}function xl(e,t,n,r,i,s){if(n===Number.POSITIVE_INFINITY)return!0;let o=t.length,a=[e],u=[];for(;n>=0;){if(a.length===0){if(o===0)return!0;a.push(t[--o]);continue}let{mode:l,doc:c}=a.pop(),f=Ii(c);switch(f){case Si:u.push(c),n-=Eh(c);break;case Tr:case tr:{let d=f===Tr?c:c.parts,m=c[nh]??0;for(let g=d.length-1;g>=m;g--)a.push({mode:l,doc:d[g]});break}case yr:case wr:case Lr:case nr:a.push({mode:l,doc:c.contents});break;case xr:n+=ih(u);break;case en:{if(s&&c.break)return!1;let d=c.break?Kt:l,m=c.expandedStates&&d===Kt?Lt(!1,c.expandedStates,-1):c.contents;a.push({mode:d,doc:m});break}case hn:{let d=(c.groupId?i[c.groupId]||Kn:l)===Kt?c.breakContents:c.flatContents;d&&a.push({mode:l,doc:d});break}case It:if(l===Kt||c.hard)return!0;c.soft||(u.push(" "),n--);break;case Ar:r=!0;break;case Fr:if(r)return!1;break}}return!1}function Cl(e,t){let n={},r=t.printWidth,i=ph(t.endOfLine),s=0,o=[{ind:j_(),mode:Kt,doc:e}],a=[],u=!1,l=[],c=0;for(V9(e);o.length>0;){let{ind:d,mode:m,doc:g}=o.pop();switch(Ii(g)){case Si:{let _=i!==`
|
|
11
|
+
`?Ml(!1,g,`
|
|
12
|
+
`,i):g;a.push(_),o.length>0&&(s+=Eh(_));break}case Tr:for(let _=g.length-1;_>=0;_--)o.push({ind:d,mode:m,doc:g[_]});break;case Ri:if(c>=2)throw new Error("There are too many 'cursor' in doc.");a.push(Xs),c++;break;case yr:o.push({ind:p8(d,t),mode:m,doc:g.contents});break;case wr:o.push({ind:d8(d,g.n,t),mode:m,doc:g.contents});break;case xr:s-=ih(a);break;case en:switch(m){case Kn:if(!u){o.push({ind:d,mode:g.break?Kt:Kn,doc:g.contents});break}case Kt:{u=!1;let _={ind:d,mode:Kn,doc:g.contents},T=r-s,A=l.length>0;if(!g.break&&xl(_,o,T,A,n))o.push(_);else if(g.expandedStates){let S=Lt(!1,g.expandedStates,-1);if(g.break){o.push({ind:d,mode:Kt,doc:S});break}else for(let L=1;L<g.expandedStates.length+1;L++)if(L>=g.expandedStates.length){o.push({ind:d,mode:Kt,doc:S});break}else{let P=g.expandedStates[L],q={ind:d,mode:Kn,doc:P};if(xl(q,o,T,A,n)){o.push(q);break}}}else o.push({ind:d,mode:Kt,doc:g.contents});break}}g.id&&(n[g.id]=Lt(!1,o,-1).mode);break;case tr:{let _=r-s,T=g[nh]??0,{parts:A}=g,S=A.length-T;if(S===0)break;let L=A[T+0],P=A[T+1],q={ind:d,mode:Kn,doc:L},Y={ind:d,mode:Kt,doc:L},I=xl(q,[],_,l.length>0,n,!0);if(S===1){I?o.push(q):o.push(Y);break}let U={ind:d,mode:Kn,doc:P},w={ind:d,mode:Kt,doc:P};if(S===2){I?o.push(U,q):o.push(w,Y);break}let F=A[T+2],Z={ind:d,mode:m,doc:{...g,[nh]:T+2}};xl({ind:d,mode:Kn,doc:[L,P,F]},[],_,l.length>0,n,!0)?o.push(Z,U,q):I?o.push(Z,w,q):o.push(Z,w,Y);break}case hn:case Lr:{let _=g.groupId?n[g.groupId]:m;if(_===Kt){let T=g.type===hn?g.breakContents:g.negate?g.contents:Ol(g.contents);T&&o.push({ind:d,mode:m,doc:T})}if(_===Kn){let T=g.type===hn?g.flatContents:g.negate?Ol(g.contents):g.contents;T&&o.push({ind:d,mode:m,doc:T})}break}case Ar:l.push({ind:d,mode:m,doc:g.contents});break;case Fr:l.length>0&&o.push({ind:d,mode:m,doc:_h});break;case It:switch(m){case Kn:if(g.hard)u=!0;else{g.soft||(a.push(" "),s+=1);break}case Kt:if(l.length>0){o.push({ind:d,mode:m,doc:g},...l.reverse()),l.length=0;break}g.literal?d.root?(a.push(i,d.root.value),s=d.root.length):(a.push(i),s=0):(s-=ih(a),a.push(i+d.value),s=d.length);break}break;case nr:o.push({ind:d,mode:m,doc:g.contents});break;case _n:break;default:throw new to(g)}o.length===0&&l.length>0&&(o.push(...l.reverse()),l.length=0)}let f=a.indexOf(Xs);if(f!==-1){let d=a.indexOf(Xs,f+1);if(d===-1)return{formatted:a.filter(T=>T!==Xs).join("")};let m=a.slice(0,f).join(""),g=a.slice(f+1,d).join(""),_=a.slice(d+1).join("");return{formatted:m+g+_,cursorNodeStart:m.length,cursorNodeText:g}}return{formatted:a.join("")}}function m8(e,t,n=0){let r=0;for(let i=n;i<e.length;++i)e[i]===" "?r=r+t-r%t:r++;return r}function E8(e){return e!==null&&typeof e=="object"}function*Vl(e,t){let{getVisitorKeys:n,filter:r=()=>!0}=t,i=s=>D8(s)&&r(s);for(let s of n(e)){let o=e[s];if(Array.isArray(o))for(let a of o)i(a)&&(yield a);else i(o)&&(yield o)}}function*b8(e,t){let n=[e];for(let r=0;r<n.length;r++){let i=n[r];for(let s of Vl(i,t))yield s,n.push(s)}}function v8(e,t){return Vl(e,t).next().done}function ma(e){return(t,n,r)=>{let i=!!(r!=null&&r.backwards);if(n===!1)return!1;let{length:s}=t,o=n;for(;o>=0&&o<s;){let a=t.charAt(o);if(e instanceof RegExp){if(!e.test(a))return o}else if(!e.includes(a))return o;i?o--:o++}return o===-1||o===s?o:!1}}function T8(e,t,n){let r=!!(n!=null&&n.backwards);if(t===!1)return!1;let i=e.charAt(t);if(r){if(e.charAt(t-1)==="\r"&&i===`
|
|
14
13
|
`)return t-2;if(i===`
|
|
15
14
|
`||i==="\r"||i==="\u2028"||i==="\u2029")return t-1}else{if(i==="\r"&&e.charAt(t+1)===`
|
|
16
15
|
`)return t+2;if(i===`
|
|
17
|
-
`||i==="\r"||i==="\u2028"||i==="\u2029")return t+1}return t}function
|
|
18
|
-
`)),
|
|
19
|
-
`,1)[0].length);return i>t&&i>s?r:n}function
|
|
20
|
-
`+r,e.codeFrame=r,e}throw e}async function
|
|
21
|
-
`,i)+1),u=r.slice(a,i).match(/^\s*/u)[0],l=
|
|
22
|
-
`&&(d+=
|
|
23
|
-
`)),m=
|
|
24
|
-
`,g)}return{formatted:m,cursorOffset:d,comments:c.comments}}function
|
|
25
|
-
`);n-=a(n),r-=a(r),i-=a(i),e=
|
|
26
|
-
`);return n===-1?0:
|
|
27
|
-
`)return!0;return!1}function
|
|
28
|
-
`,u.gutter(
|
|
29
|
-
`);return a.message&&!m&&(
|
|
30
|
-
${E}`),E}e.codeFrameColumns=i}),L_={};ih(L_,{__debug:()=>d4,check:()=>h4,doc:()=>gh,format:()=>Th,formatWithCursor:()=>Nh,getSupportInfo:()=>p4,util:()=>_h,version:()=>f4});I9=(e,t,n,r)=>{if(!(e&&t==null))return t.replaceAll?t.replaceAll(n,r):n.global?t.replace(n,r):t.split(n).join(r)},Rl=I9,O9=class{diff(e,t,n={}){let r;typeof n=="function"?(r=n,n={}):"callback"in n&&(r=n.callback);let i=this.castInput(e,n),s=this.castInput(t,n),o=this.removeEmpty(this.tokenize(i,n)),a=this.removeEmpty(this.tokenize(s,n));return this.diffWithOptionsObj(o,a,n,r)}diffWithOptionsObj(e,t,n,r){var i;let s=v=>{if(v=this.postProcess(v,n),r){setTimeout(function(){r(v)},0);return}else return v},o=t.length,a=e.length,u=1,l=o+a;n.maxEditLength!=null&&(l=Math.min(l,n.maxEditLength));let c=(i=n.timeout)!==null&&i!==void 0?i:1/0,f=Date.now()+c,d=[{oldPos:-1,lastComponent:void 0}],m=this.extractCommon(d[0],t,e,0,n);if(d[0].oldPos+1>=a&&m+1>=o)return s(this.buildValues(d[0].lastComponent,t,e));let g=-1/0,E=1/0,T=()=>{for(let v=Math.max(g,-u);v<=Math.min(E,u);v+=2){let A,S=d[v-1],C=d[v+1];S&&(d[v-1]=void 0);let q=!1;if(C){let I=C.oldPos-v;q=C&&0<=I&&I<o}let G=S&&S.oldPos+1<a;if(!q&&!G){d[v]=void 0;continue}if(!G||q&&S.oldPos<C.oldPos?A=this.addToPath(C,!0,!1,0,n):A=this.addToPath(S,!1,!0,1,n),m=this.extractCommon(A,t,e,v,n),A.oldPos+1>=a&&m+1>=o)return s(this.buildValues(A.lastComponent,t,e))||!0;d[v]=A,A.oldPos+1>=a&&(E=Math.min(E,v-1)),m+1>=o&&(g=Math.max(g,v+1))}u++};if(r)(function v(){setTimeout(function(){if(u>l||Date.now()>f)return r(void 0);T()||v()},0)})();else for(;u<=l&&Date.now()<=f;){let v=T();if(v)return v}}addToPath(e,t,n,r,i){let s=e.lastComponent;return s&&!i.oneChangePerToken&&s.added===t&&s.removed===n?{oldPos:e.oldPos+r,lastComponent:{count:s.count+1,added:t,removed:n,previousComponent:s.previousComponent}}:{oldPos:e.oldPos+r,lastComponent:{count:1,added:t,removed:n,previousComponent:s}}}extractCommon(e,t,n,r,i){let s=t.length,o=n.length,a=e.oldPos,u=a-r,l=0;for(;u+1<s&&a+1<o&&this.equals(n[a+1],t[u+1],i);)u++,a++,l++,i.oneChangePerToken&&(e.lastComponent={count:1,previousComponent:e.lastComponent,added:!1,removed:!1});return l&&!i.oneChangePerToken&&(e.lastComponent={count:l,previousComponent:e.lastComponent,added:!1,removed:!1}),e.oldPos=a,u}equals(e,t,n){return n.comparator?n.comparator(e,t):e===t||!!n.ignoreCase&&e.toLowerCase()===t.toLowerCase()}removeEmpty(e){let t=[];for(let n=0;n<e.length;n++)e[n]&&t.push(e[n]);return t}castInput(e,t){return e}tokenize(e,t){return Array.from(e)}join(e){return e.join("")}postProcess(e,t){return e}get useLongestToken(){return!1}buildValues(e,t,n){let r=[],i;for(;e;)r.push(e),i=e.previousComponent,delete e.previousComponent,e=i;r.reverse();let s=r.length,o=0,a=0,u=0;for(;o<s;o++){let l=r[o];if(l.removed)l.value=this.join(n.slice(u,u+l.count)),u+=l.count;else{if(!l.added&&this.useLongestToken){let c=t.slice(a,a+l.count);c=c.map(function(f,d){let m=n[u+d];return m.length>f.length?m:f}),l.value=this.join(c)}else l.value=this.join(t.slice(a,a+l.count));a+=l.count,l.added||(u+=l.count)}}return r}},k9=class extends O9{tokenize(e){return e.slice()}join(e){return e}removeEmpty(e){return e}},M9=new k9;Mi="string",xr="array",Jr="cursor",yr="indent",Lr="align",Ar="trim",nn="group",tr="fill",hn="if-break",Fr="indent-if-break",Sr="line-suffix",Rr="line-suffix-boundary",It="line",nr="label",En="break-parent",F_=new Set([Jr,yr,Lr,Ar,nn,tr,hn,Fr,Sr,Rr,It,nr,En]),C9=(e,t,n)=>{if(!(e&&t==null))return Array.isArray(t)||typeof t=="string"?t[n<0?t.length+n:n]:t.at(n)},Lt=C9;Ui=$9,j9=e=>new Intl.ListFormat("en-US",{type:"disjunction"}).format(e);q9=class extends Error{name="InvalidDocError";constructor(e){super(G9(e)),this.doc=e}},no=q9,X2={};oh=H9;uh=()=>{},er=uh,R_=uh,n8=uh;c8={type:Rr},Ol={type:En},f8={type:Ar},lh={type:It,hard:!0},O_={type:It,hard:!0,literal:!0},k_={type:It},h8={type:It,soft:!0},Oi=[lh,Ol],M_=[O_,Ol],Ii={type:Jr};m8=()=>/[#*0-9]\uFE0F?\u20E3|[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23ED-\u23EF\u23F1\u23F2\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB\u25FC\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692\u2694-\u2697\u2699\u269B\u269C\u26A0\u26A7\u26AA\u26B0\u26B1\u26BD\u26BE\u26C4\u26C8\u26CF\u26D1\u26E9\u26F0-\u26F5\u26F7\u26F8\u26FA\u2702\u2708\u2709\u270F\u2712\u2714\u2716\u271D\u2721\u2733\u2734\u2744\u2747\u2757\u2763\u27A1\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B55\u3030\u303D\u3297\u3299]\uFE0F?|[\u261D\u270C\u270D](?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?|[\u270A\u270B](?:\uD83C[\uDFFB-\uDFFF])?|[\u23E9-\u23EC\u23F0\u23F3\u25FD\u2693\u26A1\u26AB\u26C5\u26CE\u26D4\u26EA\u26FD\u2705\u2728\u274C\u274E\u2753-\u2755\u2795-\u2797\u27B0\u27BF\u2B50]|\u26D3\uFE0F?(?:\u200D\uD83D\uDCA5)?|\u26F9(?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?(?:\u200D[\u2640\u2642]\uFE0F?)?|\u2764\uFE0F?(?:\u200D(?:\uD83D\uDD25|\uD83E\uDE79))?|\uD83C(?:[\uDC04\uDD70\uDD71\uDD7E\uDD7F\uDE02\uDE37\uDF21\uDF24-\uDF2C\uDF36\uDF7D\uDF96\uDF97\uDF99-\uDF9B\uDF9E\uDF9F\uDFCD\uDFCE\uDFD4-\uDFDF\uDFF5\uDFF7]\uFE0F?|[\uDF85\uDFC2\uDFC7](?:\uD83C[\uDFFB-\uDFFF])?|[\uDFC4\uDFCA](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDFCB\uDFCC](?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDCCF\uDD8E\uDD91-\uDD9A\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF43\uDF45-\uDF4A\uDF4C-\uDF7C\uDF7E-\uDF84\uDF86-\uDF93\uDFA0-\uDFC1\uDFC5\uDFC6\uDFC8\uDFC9\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF8-\uDFFF]|\uDDE6\uD83C[\uDDE8-\uDDEC\uDDEE\uDDF1\uDDF2\uDDF4\uDDF6-\uDDFA\uDDFC\uDDFD\uDDFF]|\uDDE7\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEF\uDDF1-\uDDF4\uDDF6-\uDDF9\uDDFB\uDDFC\uDDFE\uDDFF]|\uDDE8\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDEE\uDDF0-\uDDF7\uDDFA-\uDDFF]|\uDDE9\uD83C[\uDDEA\uDDEC\uDDEF\uDDF0\uDDF2\uDDF4\uDDFF]|\uDDEA\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDED\uDDF7-\uDDFA]|\uDDEB\uD83C[\uDDEE-\uDDF0\uDDF2\uDDF4\uDDF7]|\uDDEC\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEE\uDDF1-\uDDF3\uDDF5-\uDDFA\uDDFC\uDDFE]|\uDDED\uD83C[\uDDF0\uDDF2\uDDF3\uDDF7\uDDF9\uDDFA]|\uDDEE\uD83C[\uDDE8-\uDDEA\uDDF1-\uDDF4\uDDF6-\uDDF9]|\uDDEF\uD83C[\uDDEA\uDDF2\uDDF4\uDDF5]|\uDDF0\uD83C[\uDDEA\uDDEC-\uDDEE\uDDF2\uDDF3\uDDF5\uDDF7\uDDFC\uDDFE\uDDFF]|\uDDF1\uD83C[\uDDE6-\uDDE8\uDDEE\uDDF0\uDDF7-\uDDFB\uDDFE]|\uDDF2\uD83C[\uDDE6\uDDE8-\uDDED\uDDF0-\uDDFF]|\uDDF3\uD83C[\uDDE6\uDDE8\uDDEA-\uDDEC\uDDEE\uDDF1\uDDF4\uDDF5\uDDF7\uDDFA\uDDFF]|\uDDF4\uD83C\uDDF2|\uDDF5\uD83C[\uDDE6\uDDEA-\uDDED\uDDF0-\uDDF3\uDDF7-\uDDF9\uDDFC\uDDFE]|\uDDF6\uD83C\uDDE6|\uDDF7\uD83C[\uDDEA\uDDF4\uDDF8\uDDFA\uDDFC]|\uDDF8\uD83C[\uDDE6-\uDDEA\uDDEC-\uDDF4\uDDF7-\uDDF9\uDDFB\uDDFD-\uDDFF]|\uDDF9\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDED\uDDEF-\uDDF4\uDDF7\uDDF9\uDDFB\uDDFC\uDDFF]|\uDDFA\uD83C[\uDDE6\uDDEC\uDDF2\uDDF3\uDDF8\uDDFE\uDDFF]|\uDDFB\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDEE\uDDF3\uDDFA]|\uDDFC\uD83C[\uDDEB\uDDF8]|\uDDFD\uD83C\uDDF0|\uDDFE\uD83C[\uDDEA\uDDF9]|\uDDFF\uD83C[\uDDE6\uDDF2\uDDFC]|\uDF44(?:\u200D\uD83D\uDFEB)?|\uDF4B(?:\u200D\uD83D\uDFE9)?|\uDFC3(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?|\uDFF3\uFE0F?(?:\u200D(?:\u26A7\uFE0F?|\uD83C\uDF08))?|\uDFF4(?:\u200D\u2620\uFE0F?|\uDB40\uDC67\uDB40\uDC62\uDB40(?:\uDC65\uDB40\uDC6E\uDB40\uDC67|\uDC73\uDB40\uDC63\uDB40\uDC74|\uDC77\uDB40\uDC6C\uDB40\uDC73)\uDB40\uDC7F)?)|\uD83D(?:[\uDC3F\uDCFD\uDD49\uDD4A\uDD6F\uDD70\uDD73\uDD76-\uDD79\uDD87\uDD8A-\uDD8D\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA\uDECB\uDECD-\uDECF\uDEE0-\uDEE5\uDEE9\uDEF0\uDEF3]\uFE0F?|[\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDC8F\uDC91\uDCAA\uDD7A\uDD95\uDD96\uDE4C\uDE4F\uDEC0\uDECC](?:\uD83C[\uDFFB-\uDFFF])?|[\uDC6E\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4\uDEB5](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD74\uDD90](?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?|[\uDC00-\uDC07\uDC09-\uDC14\uDC16-\uDC25\uDC27-\uDC3A\uDC3C-\uDC3E\uDC40\uDC44\uDC45\uDC51-\uDC65\uDC6A\uDC79-\uDC7B\uDC7D-\uDC80\uDC84\uDC88-\uDC8E\uDC90\uDC92-\uDCA9\uDCAB-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDDA4\uDDFB-\uDE2D\uDE2F-\uDE34\uDE37-\uDE41\uDE43\uDE44\uDE48-\uDE4A\uDE80-\uDEA2\uDEA4-\uDEB3\uDEB7-\uDEBF\uDEC1-\uDEC5\uDED0-\uDED2\uDED5-\uDED7\uDEDC-\uDEDF\uDEEB\uDEEC\uDEF4-\uDEFC\uDFE0-\uDFEB\uDFF0]|\uDC08(?:\u200D\u2B1B)?|\uDC15(?:\u200D\uD83E\uDDBA)?|\uDC26(?:\u200D(?:\u2B1B|\uD83D\uDD25))?|\uDC3B(?:\u200D\u2744\uFE0F?)?|\uDC41\uFE0F?(?:\u200D\uD83D\uDDE8\uFE0F?)?|\uDC68(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDC68\uDC69]\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFE])))?))?|\uDC69(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?[\uDC68\uDC69]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?|\uDC69\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?))|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFE])))?))?|\uDC6F(?:\u200D[\u2640\u2642]\uFE0F?)?|\uDD75(?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?(?:\u200D[\u2640\u2642]\uFE0F?)?|\uDE2E(?:\u200D\uD83D\uDCA8)?|\uDE35(?:\u200D\uD83D\uDCAB)?|\uDE36(?:\u200D\uD83C\uDF2B\uFE0F?)?|\uDE42(?:\u200D[\u2194\u2195]\uFE0F?)?|\uDEB6(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?)|\uD83E(?:[\uDD0C\uDD0F\uDD18-\uDD1F\uDD30-\uDD34\uDD36\uDD77\uDDB5\uDDB6\uDDBB\uDDD2\uDDD3\uDDD5\uDEC3-\uDEC5\uDEF0\uDEF2-\uDEF8](?:\uD83C[\uDFFB-\uDFFF])?|[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD\uDDCF\uDDD4\uDDD6-\uDDDD](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDDDE\uDDDF](?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD0D\uDD0E\uDD10-\uDD17\uDD20-\uDD25\uDD27-\uDD2F\uDD3A\uDD3F-\uDD45\uDD47-\uDD76\uDD78-\uDDB4\uDDB7\uDDBA\uDDBC-\uDDCC\uDDD0\uDDE0-\uDDFF\uDE70-\uDE7C\uDE80-\uDE89\uDE8F-\uDEC2\uDEC6\uDECE-\uDEDC\uDEDF-\uDEE9]|\uDD3C(?:\u200D[\u2640\u2642]\uFE0F?|\uD83C[\uDFFB-\uDFFF])?|\uDDCE(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?|\uDDD1(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1|\uDDD1\u200D\uD83E\uDDD2(?:\u200D\uD83E\uDDD2)?|\uDDD2(?:\u200D\uD83E\uDDD2)?))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFC-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFD-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFD\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFE]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?))?|\uDEF1(?:\uD83C(?:\uDFFB(?:\u200D\uD83E\uDEF2\uD83C[\uDFFC-\uDFFF])?|\uDFFC(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFD-\uDFFF])?|\uDFFD(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])?|\uDFFE(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFD\uDFFF])?|\uDFFF(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFE])?))?)/g;E8=e=>!(g8(e)||_8(e)),D8=/[^\x20-\x7F]/u;ch=b8,tn=Symbol("MODE_BREAK"),Zn=Symbol("MODE_FLAT"),eo=Symbol("cursor"),X1=Symbol("DOC_FILL_PRINTED_LENGTH");fh=T8,w8=class{constructor(e){S9(this,Fi),this.stack=[e]}get key(){let{stack:e,siblings:t}=this;return Lt(!1,e,t===null?-2:-4)??null}get index(){return this.siblings===null?null:Lt(!1,this.stack,-2)}get node(){return Lt(!1,this.stack,-1)}get parent(){return this.getNode(1)}get grandparent(){return this.getNode(2)}get isInArray(){return this.siblings!==null}get siblings(){let{stack:e}=this,t=Lt(!1,e,-3);return Array.isArray(t)?t:null}get next(){let{siblings:e}=this;return e===null?null:e[this.index+1]}get previous(){let{siblings:e}=this;return e===null?null:e[this.index-1]}get isFirst(){return this.index===0}get isLast(){let{siblings:e,index:t}=this;return e!==null&&t===e.length-1}get isRoot(){return this.stack.length===1}get root(){return this.stack[0]}get ancestors(){return[...ha(this,Fi,Al).call(this)]}getName(){let{stack:e}=this,{length:t}=e;return t>1?Lt(!1,e,-2):null}getValue(){return Lt(!1,this.stack,-1)}getNode(e=0){let t=ha(this,Fi,K1).call(this,e);return t===-1?null:this.stack[t]}getParentNode(e=0){return this.getNode(e+1)}call(e,...t){let{stack:n}=this,{length:r}=n,i=Lt(!1,n,-1);for(let s of t)i=i[s],n.push(s,i);try{return e(this)}finally{n.length=r}}callParent(e,t=0){let n=ha(this,Fi,K1).call(this,t+1),r=this.stack.splice(n+1);try{return e(this)}finally{this.stack.push(...r)}}each(e,...t){let{stack:n}=this,{length:r}=n,i=Lt(!1,n,-1);for(let s of t)i=i[s],n.push(s,i);try{for(let s=0;s<i.length;++s)n.push(s,i[s]),e(this,s,i),n.length-=2}finally{n.length=r}}map(e,...t){let n=[];return this.each((r,i,s)=>{n[i]=e(r,i,s)},...t),n}match(...e){let t=this.stack.length-1,n=null,r=this.stack[t--];for(let i of e){if(r===void 0)return!1;let s=null;if(typeof n=="number"&&(s=n,n=this.stack[t--],r=this.stack[t--]),i&&!i(r,n,s))return!1;n=this.stack[t--],r=this.stack[t--]}return!0}findAncestor(e){for(let t of ha(this,Fi,Al).call(this))if(e(t))return t}hasAncestor(e){for(let t of ha(this,Fi,Al).call(this))if(e(t))return!0;return!1}};Fi=new WeakSet,K1=function(e){let{stack:t}=this;for(let n=t.length-1;n>=0;n-=2)if(!Array.isArray(t[n])&&--e<0)return n;return-1},Al=function*(){let{stack:e}=this;for(let t=e.length-3;t>=0;t-=2){let n=e[t];Array.isArray(n)||(yield n)}};x8=w8,C_=new Proxy(()=>{},{get:()=>C_}),eh=C_;L8=y8;S8=ga(/\s/u),Xr=ga(" "),V_=ga(",; "),$_=ga(/[^\n\r]/u);ki=R8;Yr=I8;k8=O8,j_=new Set(["tokens","comments","parent","enclosingNode","precedingNode","followingNode"]),M8=e=>Object.keys(e).filter(t=>!j_.has(t));Ul=U8;G1=new WeakMap;q1=()=>!1;q_=e=>!/[\S\n\u2028\u2029]/u.test(e);dh=$8;Q8=z8,W_=class extends Error{name="ConfigError"},e_=class extends Error{name="UndefinedParserError"},Y8={checkIgnorePragma:{category:"Special",type:"boolean",default:!1,description:"Check whether the file's first docblock comment contains '@noprettier' or '@noformat' to determine if it should be formatted.",cliCategory:"Other"},cursorOffset:{category:"Special",type:"int",default:-1,range:{start:-1,end:1/0,step:1},description:"Print (to stderr) where a cursor at the given position would move to after formatting.",cliCategory:"Editor"},endOfLine:{category:"Global",type:"choice",default:"lf",description:"Which end of line characters to apply.",choices:[{value:"lf",description:"Line Feed only (\\n), common on Linux and macOS as well as inside git repos"},{value:"crlf",description:"Carriage Return + Line Feed characters (\\r\\n), common on Windows"},{value:"cr",description:"Carriage Return character only (\\r), used very rarely"},{value:"auto",description:`Maintain existing
|
|
31
|
-
|
|
16
|
+
`||i==="\r"||i==="\u2028"||i==="\u2029")return t+1}return t}function y8(e,t,n={}){let r=Qr(e,n.backwards?t-1:t,n),i=Fi(e,r,n);return r!==i}function w8(e){return Array.isArray(e)&&e.length>0}function A8(e){return e?t=>e(t,W_):L8}function F8(e){let t=e.type||e.kind||"(unknown type)",n=String(e.name||e.id&&(typeof e.id=="object"?e.id.name:e.id)||e.key&&(typeof e.key=="object"?e.key.name:e.key)||e.value&&(typeof e.value=="object"?"":String(e.value))||e.operator||"");return n.length>20&&(n=n.slice(0,19)+"\u2026"),t+(n?" "+n:"")}function bh(e,t){(e.comments??(e.comments=[])).push(t),t.printed=!1,t.nodeDescription=F8(e)}function Js(e,t){t.leading=!0,t.trailing=!1,bh(e,t)}function wi(e,t,n){t.leading=!1,t.trailing=!1,n&&(t.marker=n),bh(e,t)}function Zs(e,t){t.leading=!1,t.trailing=!0,bh(e,t)}function vh(e,t){if(H1.has(e))return H1.get(e);let{printer:{getCommentChildNodes:n,canAttachComment:r,getVisitorKeys:i},locStart:s,locEnd:o}=t;if(!r)return[];let a=(n?.(e,t)??[...Vl(e,{getVisitorKeys:$l(i)})]).flatMap(u=>r(u)?[u]:vh(u,t));return a.sort((u,l)=>s(u)-s(l)||o(u)-o(l)),H1.set(e,a),a}function z_(e,t,n,r){let{locStart:i,locEnd:s}=n,o=i(t),a=s(t),u=vh(e,n),l,c,f=0,d=u.length;for(;f<d;){let m=f+d>>1,g=u[m],_=i(g),T=s(g);if(_<=o&&a<=T)return z_(g,t,n,g);if(T<=o){l=g,f=m+1;continue}if(a<=_){c=g,d=m;continue}throw new Error("Comment location overlaps with node location")}if(r?.type==="TemplateLiteral"){let{quasis:m}=r,g=z1(m,t,n);l&&z1(m,l,n)!==g&&(l=null),c&&z1(m,c,n)!==g&&(c=null)}return{enclosingNode:r,precedingNode:l,followingNode:c}}function S8(e,t){let{comments:n}=e;if(delete e.comments,!x8(n)||!t.printer.canAttachComment)return;let r=[],{locStart:i,locEnd:s,printer:{experimentalFeatures:{avoidAstMutation:o=!1}={},handleComments:a={}},originalText:u}=t,{ownLine:l=W1,endOfLine:c=W1,remaining:f=W1}=a,d=n.map((m,g)=>({...z_(e,m,t),comment:m,text:u,options:t,ast:e,isLastComment:n.length-1===g}));for(let[m,g]of d.entries()){let{comment:_,precedingNode:T,enclosingNode:A,followingNode:S,text:L,options:P,ast:q,isLastComment:Y}=g;if(P.parser==="json"||P.parser==="json5"||P.parser==="jsonc"||P.parser==="__js_expression"||P.parser==="__ts_expression"||P.parser==="__vue_expression"||P.parser==="__vue_ts_expression"){if(i(_)-i(q)<=0){Js(q,_);continue}if(s(_)-s(q)>=0){Zs(q,_);continue}}let I;if(o?I=[g]:(_.enclosingNode=A,_.precedingNode=T,_.followingNode=S,I=[_,L,P,q,Y]),R8(L,P,d,m))_.placement="ownLine",l(...I)||(S?Js(S,_):T?Zs(T,_):wi(A||q,_));else if(I8(L,P,d,m))_.placement="endOfLine",c(...I)||(T?Zs(T,_):S?Js(S,_):wi(A||q,_));else if(_.placement="remaining",!f(...I))if(T&&S){let U=r.length;U>0&&r[U-1].followingNode!==S&&o_(r,P),r.push(g)}else T?Zs(T,_):S?Js(S,_):wi(A||q,_)}if(o_(r,t),!o)for(let m of n)delete m.precedingNode,delete m.enclosingNode,delete m.followingNode}function R8(e,t,n,r){let{comment:i,precedingNode:s}=n[r],{locStart:o,locEnd:a}=t,u=o(i);if(s)for(let l=r-1;l>=0;l--){let{comment:c,precedingNode:f}=n[l];if(f!==s||!Q_(e.slice(a(c),u)))break;u=o(c)}return zr(e,u,{backwards:!0})}function I8(e,t,n,r){let{comment:i,followingNode:s}=n[r],{locStart:o,locEnd:a}=t,u=a(i);if(s)for(let l=r+1;l<n.length;l++){let{comment:c,followingNode:f}=n[l];if(f!==s||!Q_(e.slice(u,o(c))))break;u=a(c)}return zr(e,u)}function o_(e,t){var n,r;let i=e.length;if(i===0)return;let{precedingNode:s,followingNode:o}=e[0],a=t.locStart(o),u;for(u=i;u>0;--u){let{comment:l,precedingNode:c,followingNode:f}=e[u-1];oh.strictEqual(c,s),oh.strictEqual(f,o);let d=t.originalText.slice(t.locEnd(l),a);if(((r=(n=t.printer).isGap)==null?void 0:r.call(n,d,t))??/^[\s(]*$/u.test(d))a=t.locStart(l);else break}for(let[l,{comment:c}]of e.entries())l<u?Zs(s,c):Js(o,c);for(let l of[s,o])l.comments&&l.comments.length>1&&l.comments.sort((c,f)=>t.locStart(c)-t.locStart(f));e.length=0}function z1(e,t,n){let r=n.locStart(t)-1;for(let i=1;i<e.length;++i)if(r<n.locStart(e[i]))return i-1;return 0}function O8(e,t){let n=t-1;n=Qr(e,n,{backwards:!0}),n=Fi(e,n,{backwards:!0}),n=Qr(e,n,{backwards:!0});let r=Fi(e,n,{backwards:!0});return n!==r}function Y_(e,t){let n=e.node;return n.printed=!0,t.printer.printComment(e,t)}function k8(e,t){var n;let r=e.node,i=[Y_(e,t)],{printer:s,originalText:o,locStart:a,locEnd:u}=t;if((n=s.isBlockComment)!=null&&n.call(s,r)){let c=zr(o,u(r))?zr(o,a(r),{backwards:!0})?Ai:B_:" ";i.push(c)}else i.push(Ai);let l=Fi(o,Qr(o,u(r)));return l!==!1&&zr(o,l)&&i.push(Ai),i}function M8(e,t,n){var r;let i=e.node,s=Y_(e,t),{printer:o,originalText:a,locStart:u}=t,l=(r=o.isBlockComment)==null?void 0:r.call(o,i);if(n!=null&&n.hasLineSuffix&&!(n!=null&&n.isBlock)||zr(a,u(i),{backwards:!0})){let c=Nh(a,u(i));return{doc:th([Ai,c?Ai:"",s]),isBlock:l,hasLineSuffix:!0}}return!l||n!=null&&n.hasLineSuffix?{doc:[th([" ",s]),Bl],isBlock:l,hasLineSuffix:!0}:{doc:[" ",s],isBlock:l,hasLineSuffix:!1}}function U8(e,t){let n=e.node;if(!n)return{};let r=t[Symbol.for("printedComments")];if((n.comments||[]).filter(a=>!r.has(a)).length===0)return{leading:"",trailing:""};let i=[],s=[],o;return e.each(()=>{let a=e.node;if(r!=null&&r.has(a))return;let{leading:u,trailing:l}=a;u?i.push(k8(e,t)):l&&(o=M8(e,t,o),s.push(o.doc))},"comments"),{leading:i,trailing:s}}function P8(e,t,n){let{leading:r,trailing:i}=U8(e,n);return!r&&!i?t:Al(t,s=>[r,s,i])}function B8(e){let{[Symbol.for("comments")]:t,[Symbol.for("printedComments")]:n}=e;for(let r of t){if(!r.printed&&!n.has(r))throw new Error('Comment "'+r.value.trim()+'" was not printed. Please report this error!');delete r.printed}}function C8(e){return()=>{}}function J_({plugins:e=[],showDeprecated:t=!1}={}){let n=e.flatMap(i=>i.languages??[]),r=[];for(let i of G8(Object.assign({},...e.map(({options:s})=>s),$8)))!t&&i.deprecated||(Array.isArray(i.choices)&&(t||(i.choices=i.choices.filter(s=>!s.deprecated)),i.name==="parser"&&(i.choices=[...i.choices,...j8(i.choices,n,e)])),i.pluginDefaults=Object.fromEntries(e.filter(s=>{var o;return((o=s.defaultOptions)==null?void 0:o[i.name])!==void 0}).map(s=>[s.name,s.defaultOptions[i.name]])),r.push(i));return{languages:n,options:r}}function*j8(e,t,n){let r=new Set(e.map(i=>i.value));for(let i of t)if(i.parsers){for(let s of i.parsers)if(!r.has(s)){r.add(s);let o=n.find(u=>u.parsers&&Object.prototype.hasOwnProperty.call(u.parsers,s)),a=i.name;o!=null&&o.name&&(a+=` (plugin: ${o.name})`),yield{value:s,description:a}}}}function G8(e){let t=[];for(let[n,r]of Object.entries(e)){let i={name:n,...r};Array.isArray(i.default)&&(i.default=Lt(!1,i.default,-1).value),t.push(i)}return t}function u_(e,t){if(!t)return;let n=q8(t).toLowerCase();return e.find(({filenames:r})=>r?.some(i=>i.toLowerCase()===n))??e.find(({extensions:r})=>r?.some(i=>n.endsWith(i)))}function H8(e,t){if(t)return e.find(({name:n})=>n.toLowerCase()===t)??e.find(({aliases:n})=>n?.includes(t))??e.find(({extensions:n})=>n?.includes(`.${t}`))}function W8(e,t){let n=e.plugins.flatMap(i=>i.languages??[]),r=H8(n,t.language)??u_(n,t.physicalFile)??u_(n,t.file)??(t.physicalFile,void 0);return r?.parsers[0]}function f_(e,t,n,r){return[`Invalid ${eo.default.red(r.key(e))} value.`,`Expected ${eo.default.blue(n)},`,`but received ${t===Z_?eo.default.gray("nothing"):eo.default.red(r.value(t))}.`].join(" ")}function K_({text:e,list:t},n){let r=[];return e&&r.push(`- ${eo.default.blue(e)}`),t&&r.push([`- ${eo.default.blue(t.title)}:`].concat(t.values.map(i=>K_(i,n-c_.length).replace(/^|\n/g,`$&${c_}`))).join(`
|
|
17
|
+
`)),e4(r,n)}function e4(e,t){if(e.length===1)return e[0];let[n,r]=e,[i,s]=e.map(o=>o.split(`
|
|
18
|
+
`,1)[0].length);return i>t&&i>s?r:n}function X8(e,t){if(e===t)return 0;let n=e;e.length>t.length&&(e=t,t=n);let r=e.length,i=t.length;for(;r>0&&e.charCodeAt(~-r)===t.charCodeAt(~-i);)r--,i--;let s=0;for(;s<r&&e.charCodeAt(s)===t.charCodeAt(s);)s++;if(r-=s,i-=s,r===0)return i;let o,a,u,l,c=0,f=0;for(;c<r;)p_[c]=e.charCodeAt(s+c),Q1[c]=++c;for(;f<i;)for(o=t.charCodeAt(s+f),u=f++,a=f,c=0;c<r;c++)l=o===p_[c]?u:u+1,u=Q1[c],a=Q1[c]=u>a?l>a?a+1:l:l>u?u+1:l;return a}function Z8(e,t){let n=new e(t),r=Object.create(n);for(let i of J8)i in t&&(r[i]=K8(t[i],n,Yr.prototype[i].length));return r}function K8(e,t,n){return typeof e=="function"?(...r)=>e(...r.slice(0,n-1),t,...r.slice(n-1)):()=>e}function d_({from:e,to:t}){return{from:[e],to:t}}function iv(e,t){let n=Object.create(null);for(let r of e){let i=r[t];if(n[i])throw new Error(`Duplicate ${t} ${JSON.stringify(i)}`);n[i]=r}return n}function sv(e,t){let n=new Map;for(let r of e){let i=r[t];if(n.has(i))throw new Error(`Duplicate ${t} ${JSON.stringify(i)}`);n.set(i,r)}return n}function ov(){let e=Object.create(null);return t=>{let n=JSON.stringify(t);return e[n]?!0:(e[n]=!0,!1)}}function av(e,t){let n=[],r=[];for(let i of e)t(i)?n.push(i):r.push(i);return[n,r]}function uv(e){return e===Math.floor(e)}function lv(e,t){if(e===t)return 0;let n=typeof e,r=typeof t,i=["undefined","object","boolean","number","string"];return n!==r?i.indexOf(n)-i.indexOf(r):n!=="string"?Number(e)-Number(t):e.localeCompare(t)}function cv(e){return(...t)=>{let n=e(...t);return typeof n=="string"?new Error(n):n}}function m_(e){return e===void 0?{}:e}function n4(e){if(typeof e=="string")return{text:e};let{text:t,list:n}=e;return fv((t||n)!==void 0,"Unexpected `expected` result, there should be at least one field."),n?{text:t,list:{title:n.title,values:n.values.map(n4)}}:{text:t}}function g_(e,t){return e===!0?!0:e===!1?{value:t}:e}function __(e,t,n=!1){return e===!1?!1:e===!0?n?!0:[{value:t}]:"value"in e?[e]:e.length===0?!1:e}function E_(e,t){return typeof e=="string"||"key"in e?{from:t,to:e}:"from"in e?{from:e.from,to:e.to}:{from:t,to:e.to}}function ah(e,t){return e===void 0?[]:Array.isArray(e)?e.map(n=>E_(n,t)):[E_(e,t)]}function D_(e,t){let n=ah(typeof e=="object"&&"redirect"in e?e.redirect:e,t);return n.length===0?{remain:t,redirect:n}:typeof e=="object"&&"remain"in e?{remain:e.remain,redirect:n}:{redirect:n}}function fv(e,t){if(!e)throw new Error(t)}function bv(e,t,{logger:n=!1,isCLI:r=!1,passThrough:i=!1,FlagSchema:s,descriptor:o}={}){if(r){if(!s)throw new Error("'FlagSchema' option is required.");if(!o)throw new Error("'descriptor' option is required.")}else o=Ks;let a=i?Array.isArray(i)?(d,m)=>i.includes(d)?{[d]:m}:void 0:(d,m)=>({[d]:m}):(d,m,g)=>{let{_,...T}=g.schemas;return t4(d,m,{...g,schemas:T})},u=vv(t,{isCLI:r,FlagSchema:s}),l=new Dv(u,{logger:n,unknown:a,descriptor:o}),c=n!==!1;c&&Y1&&(l._hasDeprecationWarned=Y1);let f=l.normalize(e);return c&&(Y1=l._hasDeprecationWarned),f}function vv(e,{isCLI:t,FlagSchema:n}){let r=[];t&&r.push(tv.create({name:"_"}));for(let i of e)r.push(Nv(i,{isCLI:t,optionInfos:e,FlagSchema:n})),i.alias&&t&&r.push(ev.create({name:i.alias,sourceName:i.name}));return r}function Nv(e,{isCLI:t,optionInfos:n,FlagSchema:r}){let{name:i}=e,s={name:i},o,a={};switch(e.type){case"int":o=dv,t&&(s.preprocess=Number);break;case"string":o=b_;break;case"choice":o=hv,s.choices=e.choices.map(u=>u!=null&&u.redirect?{...u,redirect:{to:{key:e.name,value:u.redirect}}}:u);break;case"boolean":o=rv;break;case"flag":o=r,s.flags=n.flatMap(u=>[u.alias,u.description&&u.name,u.oppositeDescription&&`no-${u.name}`].filter(Boolean));break;case"path":o=b_;break;default:throw new Error(`Unexpected type ${e.type}`)}if(e.exception?s.validate=(u,l,c)=>e.exception(u)||l.validate(u,c):s.validate=(u,l,c)=>u===void 0||l.validate(u,c),e.redirect&&(a.redirect=u=>u?{to:typeof e.redirect=="string"?e.redirect:{key:e.redirect.option,value:e.redirect.value}}:void 0),e.deprecated&&(a.deprecated=!0),t&&!e.array){let u=s.preprocess||(l=>l);s.preprocess=(l,c,f)=>c.preprocess(u(Array.isArray(l)?Lt(!1,l,-1):l),f)}return e.array?nv.create({...t?{preprocess:u=>Array.isArray(u)?u:[u]}:{},...a,valueSchema:o.create(s)}):o.create({...s,...a})}function i4(e,t){if(!t)throw new Error("parserName is required.");let n=r4(!1,e,i=>i.parsers&&Object.prototype.hasOwnProperty.call(i.parsers,t));if(n)return n;let r=`Couldn't resolve parser "${t}".`;throw r+=" Plugins must be explicitly added to the standalone bundle.",new X_(r)}function wv(e,t){if(!t)throw new Error("astFormat is required.");let n=r4(!1,e,i=>i.printers&&Object.prototype.hasOwnProperty.call(i.printers,t));if(n)return n;let r=`Couldn't find plugin for AST format "${t}".`;throw r+=" Plugins must be explicitly added to the standalone bundle.",new X_(r)}function s4({plugins:e,parser:t}){let n=i4(e,t);return o4(n,t)}function o4(e,t){let n=e.parsers[t];return typeof n=="function"?n():n}function xv(e,t){let n=e.printers[t];return typeof n=="function"?n():n}async function Lv(e,t={}){var n;let r={...e};if(!r.parser)if(r.filepath){if(r.parser=z8(r,{physicalFile:r.filepath}),!r.parser)throw new a_(`No parser could be inferred for file "${r.filepath}".`)}else throw new a_("No parser and no file path given, couldn't infer a parser.");let i=J_({plugins:e.plugins,showDeprecated:!0}).options,s={...v_,...Object.fromEntries(i.filter(d=>d.default!==void 0).map(d=>[d.name,d.default]))},o=i4(r.plugins,r.parser),a=await o4(o,r.parser);r.astFormat=a.astFormat,r.locEnd=a.locEnd,r.locStart=a.locStart;let u=(n=o.printers)!=null&&n[a.astFormat]?o:wv(r.plugins,a.astFormat),l=await xv(u,a.astFormat);r.printer=l;let c=u.defaultOptions?Object.fromEntries(Object.entries(u.defaultOptions).filter(([,d])=>d!==void 0)):{},f={...s,...c};for(let[d,m]of Object.entries(f))(r[d]===null||r[d]===void 0)&&(r[d]=m);return r.parser==="json"&&(r.trailingComma="none"),Tv(r,i,{passThrough:Object.keys(v_),...t})}async function Fv(e,t){let n=await s4(t),r=n.preprocess?n.preprocess(e,t):e;t.originalText=r;let i;try{i=await n.parse(r,t,t)}catch(s){Sv(s,e)}return{text:r,ast:i}}function Sv(e,t){let{loc:n}=e;if(n){let r=(0,Av.codeFrameColumns)(t,n,{highlightCode:!0});throw e.message+=`
|
|
19
|
+
`+r,e.codeFrame=r,e}throw e}async function Rv(e,t,n,r,i){let{embeddedLanguageFormatting:s,printer:{embed:o,hasPrettierIgnore:a=()=>!1,getVisitorKeys:u}}=n;if(!o||s!=="auto")return;if(o.length>2)throw new Error("printer.embed has too many parameters. The API changed in Prettier v3. Please update your plugin. See https://prettier.io/docs/plugins#optional-embed");let l=$l(o.getVisitorKeys??u),c=[];m();let f=e.stack;for(let{print:g,node:_,pathStack:T}of c)try{e.stack=T;let A=await g(d,t,e,n);A&&i.set(_,A)}catch(A){if(globalThis.PRETTIER_DEBUG)throw A}e.stack=f;function d(g,_){return Iv(g,_,n,r)}function m(){let{node:g}=e;if(g===null||typeof g!="object"||a(e))return;for(let T of l(g))Array.isArray(g[T])?e.each(m,T):e.call(m,T);let _=o(e,n);if(_){if(typeof _=="function"){c.push({print:_,node:g,pathStack:[...e.stack]});return}i.set(g,_)}}}async function Iv(e,t,n,r){let i=await ro({...n,...t,parentParser:n.parser,originalText:e},{passThrough:!0}),{ast:s}=await ga(e,i),o=await r(s,i);return k_(o)}function Ov(e,t){let{originalText:n,[Symbol.for("comments")]:r,locStart:i,locEnd:s,[Symbol.for("printedComments")]:o}=t,{node:a}=e,u=i(a),l=s(a);for(let c of r)i(c)>=u&&s(c)<=l&&o.add(c);return n.slice(u,l)}async function jl(e,t){({ast:e}=await a4(e,t));let n=new Map,r=new _8(e),i=V8(t),s=new Map;await Rv(r,a,t,jl,s);let o=await N_(r,t,a,void 0,s);if(B8(t),t.nodeAfterCursor&&!t.nodeBeforeCursor)return[Li,o];if(t.nodeBeforeCursor&&!t.nodeAfterCursor)return[o,Li];return o;function a(l,c){return l===void 0||l===r?u(c):Array.isArray(l)?r.call(()=>u(c),...l):r.call(()=>u(c),l)}function u(l){i(r);let c=r.node;if(c==null)return"";let f=c&&typeof c=="object"&&l===void 0;if(f&&n.has(c))return n.get(c);let d=N_(r,t,a,l,s);return f&&n.set(c,d),d}}function N_(e,t,n,r,i){var s;let{node:o}=e,{printer:a}=t,u;switch((s=a.hasPrettierIgnore)!=null&&s.call(a,e)?u=kv(e,t):i.has(o)?u=i.get(o):u=a.print(e,t,n,r),o){case t.cursorNode:u=Al(u,l=>[Li,l,Li]);break;case t.nodeBeforeCursor:u=Al(u,l=>[l,Li]);break;case t.nodeAfterCursor:u=Al(u,l=>[Li,l]);break}return a.printComment&&(!a.willPrintOwnComments||!a.willPrintOwnComments(e,t))&&(u=P8(e,u,t)),u}async function a4(e,t){let n=e.comments??[];t[Symbol.for("comments")]=n,t[Symbol.for("tokens")]=e.tokens??[],t[Symbol.for("printedComments")]=new Set,S8(e,t);let{printer:{preprocess:r}}=t;return e=r?await r(e,t):e,{ast:e,comments:n}}function Mv(e,t){let{cursorOffset:n,locStart:r,locEnd:i}=t,s=$l(t.printer.getVisitorKeys),o=m=>r(m)<=n&&i(m)>=n,a=e,u=[e];for(let m of b8(e,{getVisitorKeys:s,filter:o}))u.push(m),a=m;if(v8(a,{getVisitorKeys:s}))return{cursorNode:a};let l,c,f=-1,d=Number.POSITIVE_INFINITY;for(;u.length>0&&(l===void 0||c===void 0);){a=u.pop();let m=l!==void 0,g=c!==void 0;for(let _ of Vl(a,{getVisitorKeys:s})){if(!m){let T=i(_);T<=n&&T>f&&(l=_,f=T)}if(!g){let T=r(_);T>=n&&T<d&&(c=_,d=T)}}}return{nodeBeforeCursor:l,nodeAfterCursor:c}}function Pv(e,t){let{printer:{massageAstNode:n,getVisitorKeys:r}}=t;if(!n)return e;let i=$l(r),s=n.ignoredProperties??new Set;return o(e);function o(a,u){if(!(a!==null&&typeof a=="object"))return a;if(Array.isArray(a))return a.map(d=>o(d,u)).filter(Boolean);let l={},c=new Set(i(a));for(let d in a)!Object.prototype.hasOwnProperty.call(a,d)||s.has(d)||(c.has(d)?l[d]=o(a[d],a):l[d]=a[d]);let f=n(a,l,u);if(f!==null)return f??l}}function jv(e,t){let n=[e.node,...e.parentNodes],r=new Set([t.node,...t.parentNodes]);return n.find(i=>u4.has(i.type)&&r.has(i))}function T_(e){let t=Vv(!1,e,n=>n.type!=="Program"&&n.type!=="File");return t===-1?e:e.slice(0,t+1)}function Gv(e,t,{locStart:n,locEnd:r}){let i=e.node,s=t.node;if(i===s)return{startNode:i,endNode:s};let o=n(e.node);for(let u of T_(t.parentNodes))if(n(u)>=o)s=u;else break;let a=r(t.node);for(let u of T_(e.parentNodes)){if(r(u)<=a)i=u;else break;if(i===s)break}return{startNode:i,endNode:s}}function uh(e,t,n,r,i=[],s){let{locStart:o,locEnd:a}=n,u=o(e),l=a(e);if(!(t>l||t<u||s==="rangeEnd"&&t===u||s==="rangeStart"&&t===l)){for(let c of vh(e,n)){let f=uh(c,t,n,r,[e,...i],s);if(f)return f}if(!r||r(e,i[0]))return{node:e,parentNodes:i}}}function qv(e,t){return t!=="DeclareExportDeclaration"&&e!=="TypeParameterDeclaration"&&(e==="Directive"||e==="TypeAlias"||e==="TSExportAssignment"||e.startsWith("Declare")||e.startsWith("TSDeclare")||e.endsWith("Statement")||e.endsWith("Declaration"))}function y_(e,t,n){if(!t)return!1;switch(e.parser){case"flow":case"babel":case"babel-flow":case"babel-ts":case"typescript":case"acorn":case"espree":case"meriyah":case"__babel_estree":return qv(t.type,n?.type);case"json":case"json5":case"jsonc":case"json-stringify":return u4.has(t.type);case"graphql":return Hv.has(t.kind);case"vue":return t.tag!=="root"}return!1}function Wv(e,t,n){let{rangeStart:r,rangeEnd:i,locStart:s,locEnd:o}=t;oh.ok(i>r);let a=e.slice(r,i).search(/\S/u),u=a===-1;if(!u)for(r+=a;i>r&&!/\S/u.test(e[i-1]);--i);let l=uh(n,r,t,(m,g)=>y_(t,m,g),[],"rangeStart"),c=u?l:uh(n,i,t,m=>y_(t,m),[],"rangeEnd");if(!l||!c)return{rangeStart:0,rangeEnd:0};let f,d;if($v(t)){let m=jv(l,c);f=m,d=m}else({startNode:f,endNode:d}=Gv(l,c,t));return{rangeStart:Math.min(s(f),s(d)),rangeEnd:Math.max(o(f),o(d))}}async function c4(e,t,n=0){if(!e||e.trim().length===0)return{formatted:"",cursorOffset:-1,comments:[]};let{ast:r,text:i}=await ga(e,t);t.cursorOffset>=0&&(t={...t,...Uv(r,t)});let s=await jl(r,t,n);n>0&&(s=$_([Ai,s],n,t.tabWidth));let o=Cl(s,t);if(n>0){let u=o.formatted.trim();o.cursorNodeStart!==void 0&&(o.cursorNodeStart-=o.formatted.indexOf(u),o.cursorNodeStart<0&&(o.cursorNodeStart=0,o.cursorNodeText=o.cursorNodeText.trimStart()),o.cursorNodeStart+o.cursorNodeText.length>u.length&&(o.cursorNodeText=o.cursorNodeText.trimEnd())),o.formatted=u+ph(t.endOfLine)}let a=t[Symbol.for("comments")];if(t.cursorOffset>=0){let u,l,c,f;if((t.cursorNode||t.nodeBeforeCursor||t.nodeAfterCursor)&&o.cursorNodeText)if(c=o.cursorNodeStart,f=o.cursorNodeText,t.cursorNode)u=t.locStart(t.cursorNode),l=i.slice(u,t.locEnd(t.cursorNode));else{if(!t.nodeBeforeCursor&&!t.nodeAfterCursor)throw new Error("Cursor location must contain at least one of cursorNode, nodeBeforeCursor, nodeAfterCursor");u=t.nodeBeforeCursor?t.locEnd(t.nodeBeforeCursor):0;let A=t.nodeAfterCursor?t.locStart(t.nodeAfterCursor):i.length;l=i.slice(u,A)}else u=0,l=i,c=0,f=o.formatted;let d=t.cursorOffset-u;if(l===f)return{formatted:o.formatted,cursorOffset:c+d,comments:a};let m=l.split("");m.splice(d,0,w_);let g=f.split(""),_=F9(m,g),T=c;for(let A of _)if(A.removed){if(A.value.includes(w_))break}else T+=A.count;return{formatted:o.formatted,cursorOffset:T,comments:a}}return{formatted:o.formatted,cursorOffset:-1,comments:a}}async function zv(e,t){let{ast:n,text:r}=await ga(e,t),{rangeStart:i,rangeEnd:s}=Wv(r,t,n),o=r.slice(i,s),a=Math.min(i,r.lastIndexOf(`
|
|
20
|
+
`,i)+1),u=r.slice(a,i).match(/^\s*/u)[0],l=Dh(u,t.tabWidth),c=await c4(o,{...t,rangeStart:0,rangeEnd:Number.POSITIVE_INFINITY,cursorOffset:t.cursorOffset>i&&t.cursorOffset<=s?t.cursorOffset-i:-1,endOfLine:"lf"},l),f=c.formatted.trimEnd(),{cursorOffset:d}=t;d>s?d+=f.length-o.length:c.cursorOffset>=0&&(d=c.cursorOffset+i);let m=r.slice(0,i)+f+r.slice(s);if(t.endOfLine!=="lf"){let g=ph(t.endOfLine);d>=0&&g===`\r
|
|
21
|
+
`&&(d+=I_(m.slice(0,d),`
|
|
22
|
+
`)),m=Ml(!1,m,`
|
|
23
|
+
`,g)}return{formatted:m,cursorOffset:d,comments:c.comments}}function X1(e,t,n){return typeof t!="number"||Number.isNaN(t)||t<0||t>e.length?n:t}function x_(e,t){let{cursorOffset:n,rangeStart:r,rangeEnd:i}=t;return n=X1(e,n,-1),r=X1(e,r,0),i=X1(e,i,e.length),{...t,cursorOffset:n,rangeStart:r,rangeEnd:i}}function f4(e,t){let{cursorOffset:n,rangeStart:r,rangeEnd:i,endOfLine:s}=x_(e,t),o=e.charAt(0)===l4;if(o&&(e=e.slice(1),n--,r--,i--),s==="auto"&&(s=S9(e)),e.includes("\r")){let a=u=>I_(e.slice(0,Math.max(u,0)),`\r
|
|
24
|
+
`);n-=a(n),r-=a(r),i-=a(i),e=R9(e)}return{hasBOM:o,text:e,options:x_(e,{...t,cursorOffset:n,rangeStart:r,rangeEnd:i,endOfLine:s})}}async function L_(e,t){let n=await s4(t);return!n.hasPragma||n.hasPragma(e)}async function h4(e,t){let{hasBOM:n,text:r,options:i}=f4(e,await ro(t));if(i.rangeStart>=i.rangeEnd&&r!==""||i.requirePragma&&!await L_(r,i))return{formatted:e,cursorOffset:t.cursorOffset,comments:[]};let s;return i.rangeStart>0||i.rangeEnd<r.length?s=await zv(r,i):(!i.requirePragma&&i.insertPragma&&i.printer.insertPragma&&!await L_(r,i)&&(r=i.printer.insertPragma(r)),s=await c4(r,i)),n&&(s.formatted=l4+s.formatted,s.cursorOffset>=0&&s.cursorOffset++),s}async function Qv(e,t,n){let{text:r,options:i}=f4(e,await ro(t)),s=await ga(r,i);return n&&(n.preprocessForPrint&&(s.ast=await a4(s.ast,i)),n.massage&&(s.ast=Bv(s.ast,i))),s}async function Yv(e,t){t=await ro(t);let n=await jl(e,t);return Cl(n,t)}async function Xv(e,t){let n=o8(e),{formatted:r}=await h4(n,{...t,parser:"__js_expression"});return r}async function Jv(e,t){t=await ro(t);let{ast:n}=await ga(e,t);return jl(n,t)}async function Zv(e,t){return Cl(e,await ro(t))}function nN(e,t){if(t===!1)return!1;if(e.charAt(t)==="/"&&e.charAt(t+1)==="*"){for(let n=t+2;n<e.length;++n)if(e.charAt(n)==="*"&&e.charAt(n+1)==="/")return n+2}return t}function rN(e,t){return t===!1?!1:e.charAt(t)==="/"&&e.charAt(t+1)==="/"?H_(e,t):t}function iN(e,t){let n=null,r=t;for(;r!==n;)n=r,r=Qr(e,r),r=wh(e,r),r=xh(e,r),r=Fi(e,r);return r}function sN(e,t){let n=null,r=t;for(;r!==n;)n=r,r=q_(e,r),r=wh(e,r),r=Qr(e,r);return r=xh(e,r),r=Fi(e,r),r!==!1&&zr(e,r)}function oN(e,t){let n=e.lastIndexOf(`
|
|
25
|
+
`);return n===-1?0:Dh(e.slice(n+1).match(/^[\t ]*/u)[0],t)}function uN(e){if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}function lN(e,t){let n=e.match(new RegExp(`(${uN(t)})+`,"gu"));return n===null?0:n.reduce((r,i)=>Math.max(r,i.length/t.length),0)}function fN(e,t){let n=Lh(e,t);return n===!1?"":e.charAt(n)}function pN(e,t){let n=t===!0||t===Ll?Ll:A_,r=n===Ll?A_:Ll,i=0,s=0;for(let o of e)o===n?i++:o===r&&s++;return i>s?r:n}function mN(e,t,n){for(let r=t;r<n;++r)if(e.charAt(r)===`
|
|
26
|
+
`)return!0;return!1}function _N(e,t,n={}){return Qr(e,n.backwards?t-1:t,n)!==t}function DN(e,t,n){let r=t==='"'?"'":'"',i=Ml(!1,e,/\\(.)|(["'])/gsu,(s,o,a)=>o===r?o:a===t?"\\"+a:a||(n&&/^[^\n\r"'0-7\\bfnrt-vx\u2028\u2029]$/u.test(o)?o:"\\"+o));return t+i+t}function vN(e,t,n){return Lh(e,n(t))}function NN(e,t){return arguments.length===2||typeof t=="number"?Lh(e,t):vN(...arguments)}function TN(e,t,n){return Nh(e,n(t))}function yN(e,t){return arguments.length===2||typeof t=="number"?Nh(e,t):TN(...arguments)}function wN(e,t,n){return Ah(e,n(t))}function xN(e,t){return arguments.length===2||typeof t=="number"?Ah(e,t):wN(...arguments)}function xi(e,t=1){return async(...n)=>{let r=n[t]??{},i=r.plugins??[];return n[t]={...r,plugins:Array.isArray(i)?i:Object.values(i)},e(...n)}}async function Sh(e,t){let{formatted:n}=await Fh(e,{...t,cursorOffset:-1});return n}async function d4(e,t){return await Sh(e,t)===e}var d9,lh,m9,g9,_9,E9,F_,S_,ch,D9,kl,b9,v9,fa,fh,N9,R_,T9,Ml,eC,Rl,w9,Ul,x9,hh,L9,A9,da,Il,Si,Tr,Ri,yr,wr,xr,en,tr,hn,Lr,Ar,Fr,It,nr,_n,O_,I9,Lt,Ii,k9,U9,to,r_,dh,gh,er,M_,Q9,n8,Bl,r8,_h,P_,B_,i8,Ai,C_,Li,a8,c8,f8,Eh,Kt,Kn,Xs,nh,Dh,yi,sh,Fl,g8,_8,G_,oh,D8,N8,Qr,q_,H_,Fi,zr,x8,W_,L8,$l,H1,W1,Q_,Nh,V8,X_,a_,$8,q8,z8,Ks,l_,Q8,eo,Z_,Sl,c_,Y8,h_,Q1,p_,t4,J8,Yr,ev,tv,nv,rv,hv,pv,dv,b_,mv,gv,_v,Ev,Dv,Y1,Tv,yv,r4,v_,ro,Av,ga,kv,Uv,Bv,Cv,Vv,$v,u4,Hv,l4,w_,Th,Kv,eN,tN,p4,yh,wh,xh,Lh,Ah,aN,cN,hN,Ll,A_,dN,gN,EN,bN,Fh,m4,g4,LN,E4=A5(()=>{d9=Object.create,lh=Object.defineProperty,m9=Object.getOwnPropertyDescriptor,g9=Object.getOwnPropertyNames,_9=Object.getPrototypeOf,E9=Object.prototype.hasOwnProperty,F_=e=>{throw TypeError(e)},S_=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),ch=(e,t)=>{for(var n in t)lh(e,n,{get:t[n],enumerable:!0})},D9=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of g9(t))!E9.call(e,i)&&i!==n&&lh(e,i,{get:()=>t[i],enumerable:!(r=m9(t,i))||r.enumerable});return e},kl=(e,t,n)=>(n=e!=null?d9(_9(e)):{},D9(t||!e||!e.__esModule?lh(n,"default",{value:e,enumerable:!0}):n,e)),b9=(e,t,n)=>t.has(e)||F_("Cannot "+n),v9=(e,t,n)=>t.has(e)?F_("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),fa=(e,t,n)=>(b9(e,t,"access private method"),n),fh=S_((e,t)=>{"use strict";var n=new Proxy(String,{get:()=>n});t.exports=n}),N9=S_(e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});function t(){return new Proxy({},{get:()=>s=>s})}var n=/\r\n|[\n\r\u2028\u2029]/;function r(s,o,a){let u=Object.assign({column:0,line:-1},s.start),l=Object.assign({},u,s.end),{linesAbove:c=2,linesBelow:f=3}=a||{},d=u.line,m=u.column,g=l.line,_=l.column,T=Math.max(d-(c+1),0),A=Math.min(o.length,g+f);d===-1&&(T=0),g===-1&&(A=o.length);let S=g-d,L={};if(S)for(let P=0;P<=S;P++){let q=P+d;if(!m)L[q]=!0;else if(P===0){let Y=o[q-1].length;L[q]=[m,Y-m+1]}else if(P===S)L[q]=[0,_];else{let Y=o[q-P].length;L[q]=[0,Y]}}else m===_?m?L[d]=[m,0]:L[d]=!0:L[d]=[m,_-m];return{start:T,end:A,markerLines:L}}function i(s,o,a={}){let u=t(!1),l=s.split(n),{start:c,end:f,markerLines:d}=r(o,l,a),m=o.start&&typeof o.start.column=="number",g=String(f).length,_=s.split(n,f).slice(c,f).map((T,A)=>{let S=c+1+A,L=` ${` ${S}`.slice(-g)} |`,P=d[S],q=!d[S+1];if(P){let Y="";if(Array.isArray(P)){let I=T.slice(0,Math.max(P[0]-1,0)).replace(/[^\t]/g," "),U=P[1]||1;Y=[`
|
|
27
|
+
`,u.gutter(L.replace(/\d/g," "))," ",I,u.marker("^").repeat(U)].join(""),q&&a.message&&(Y+=" "+u.message(a.message))}return[u.marker(">"),u.gutter(L),T.length>0?` ${T}`:"",Y].join("")}else return` ${u.gutter(L)}${T.length>0?` ${T}`:""}`}).join(`
|
|
28
|
+
`);return a.message&&!m&&(_=`${" ".repeat(g+1)}${a.message}
|
|
29
|
+
${_}`),_}e.codeFrameColumns=i}),R_={};ch(R_,{__debug:()=>g4,check:()=>d4,doc:()=>Th,format:()=>Sh,formatWithCursor:()=>Fh,getSupportInfo:()=>m4,util:()=>yh,version:()=>p4});T9=(e,t,n,r)=>{if(!(e&&t==null))return t.replaceAll?t.replaceAll(n,r):n.global?t.replace(n,r):t.split(n).join(r)},Ml=T9;In.prototype={diff:function(e,t){var n,r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},i=r.callback;typeof r=="function"&&(i=r,r={});var s=this;function o(L){return L=s.postProcess(L,r),i?(setTimeout(function(){i(L)},0),!0):L}e=this.castInput(e,r),t=this.castInput(t,r),e=this.removeEmpty(this.tokenize(e,r)),t=this.removeEmpty(this.tokenize(t,r));var a=t.length,u=e.length,l=1,c=a+u;r.maxEditLength!=null&&(c=Math.min(c,r.maxEditLength));var f=(n=r.timeout)!==null&&n!==void 0?n:1/0,d=Date.now()+f,m=[{oldPos:-1,lastComponent:void 0}],g=this.extractCommon(m[0],t,e,0,r);if(m[0].oldPos+1>=u&&g+1>=a)return o(Z2(s,m[0].lastComponent,t,e,s.useLongestToken));var _=-1/0,T=1/0;function A(){for(var L=Math.max(_,-l);L<=Math.min(T,l);L+=2){var P=void 0,q=m[L-1],Y=m[L+1];q&&(m[L-1]=void 0);var I=!1;if(Y){var U=Y.oldPos-L;I=Y&&0<=U&&U<a}var w=q&&q.oldPos+1<u;if(!I&&!w){m[L]=void 0;continue}if(!w||I&&q.oldPos<Y.oldPos?P=s.addToPath(Y,!0,!1,0,r):P=s.addToPath(q,!1,!0,1,r),g=s.extractCommon(P,t,e,L,r),P.oldPos+1>=u&&g+1>=a)return o(Z2(s,P.lastComponent,t,e,s.useLongestToken));m[L]=P,P.oldPos+1>=u&&(T=Math.min(T,L-1)),g+1>=a&&(_=Math.max(_,L+1))}l++}if(i)(function L(){setTimeout(function(){if(l>c||Date.now()>d)return i();A()||L()},0)})();else for(;l<=c&&Date.now()<=d;){var S=A();if(S)return S}},addToPath:function(e,t,n,r,i){var s=e.lastComponent;return s&&!i.oneChangePerToken&&s.added===t&&s.removed===n?{oldPos:e.oldPos+r,lastComponent:{count:s.count+1,added:t,removed:n,previousComponent:s.previousComponent}}:{oldPos:e.oldPos+r,lastComponent:{count:1,added:t,removed:n,previousComponent:s}}},extractCommon:function(e,t,n,r,i){for(var s=t.length,o=n.length,a=e.oldPos,u=a-r,l=0;u+1<s&&a+1<o&&this.equals(n[a+1],t[u+1],i);)u++,a++,l++,i.oneChangePerToken&&(e.lastComponent={count:1,previousComponent:e.lastComponent,added:!1,removed:!1});return l&&!i.oneChangePerToken&&(e.lastComponent={count:l,previousComponent:e.lastComponent,added:!1,removed:!1}),e.oldPos=a,u},equals:function(e,t,n){return n.comparator?n.comparator(e,t):e===t||n.ignoreCase&&e.toLowerCase()===t.toLowerCase()},removeEmpty:function(e){for(var t=[],n=0;n<e.length;n++)e[n]&&t.push(e[n]);return t},castInput:function(e){return e},tokenize:function(e){return Array.from(e)},join:function(e){return e.join("")},postProcess:function(e){return e}};eC=new In;Rl="a-zA-Z0-9_\\u{C0}-\\u{FF}\\u{D8}-\\u{F6}\\u{F8}-\\u{2C6}\\u{2C8}-\\u{2D7}\\u{2DE}-\\u{2FF}\\u{1E00}-\\u{1EFF}",w9=new RegExp("[".concat(Rl,"]+|\\s+|[^").concat(Rl,"]"),"ug"),Ul=new In;Ul.equals=function(e,t,n){return n.ignoreCase&&(e=e.toLowerCase(),t=t.toLowerCase()),e.trim()===t.trim()};Ul.tokenize=function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n;if(t.intlSegmenter){if(t.intlSegmenter.resolvedOptions().granularity!="word")throw new Error('The segmenter passed must have a granularity of "word"');n=Array.from(t.intlSegmenter.segment(e),function(s){return s.segment})}else n=e.match(w9)||[];var r=[],i=null;return n.forEach(function(s){/\s/.test(s)?i==null?r.push(s):r.push(r.pop()+s):/\s/.test(i)?r[r.length-1]==i?r.push(r.pop()+s):r.push(i+s):r.push(s),i=s}),r};Ul.join=function(e){return e.map(function(t,n){return n==0?t:t.replace(/^\s+/,"")}).join("")};Ul.postProcess=function(e,t){if(!e||t.oneChangePerToken)return e;var n=null,r=null,i=null;return e.forEach(function(s){s.added?r=s:s.removed?i=s:((r||i)&&n_(n,i,r,s),n=s,r=null,i=null)}),(r||i)&&n_(n,i,r,null),e};x9=new In;x9.tokenize=function(e){var t=new RegExp("(\\r?\\n)|[".concat(Rl,"]+|[^\\S\\n\\r]+|[^").concat(Rl,"]"),"ug");return e.match(t)||[]};hh=new In;hh.tokenize=function(e,t){t.stripTrailingCr&&(e=e.replace(/\r\n/g,`
|
|
30
|
+
`));var n=[],r=e.split(/(\n|\r\n)/);r[r.length-1]||r.pop();for(var i=0;i<r.length;i++){var s=r[i];i%2&&!t.newlineIsToken?n[n.length-1]+=s:n.push(s)}return n};hh.equals=function(e,t,n){return n.ignoreWhitespace?((!n.newlineIsToken||!e.includes(`
|
|
31
|
+
`))&&(e=e.trim()),(!n.newlineIsToken||!t.includes(`
|
|
32
|
+
`))&&(t=t.trim())):n.ignoreNewlineAtEof&&!n.newlineIsToken&&(e.endsWith(`
|
|
33
|
+
`)&&(e=e.slice(0,-1)),t.endsWith(`
|
|
34
|
+
`)&&(t=t.slice(0,-1))),In.prototype.equals.call(this,e,t,n)};L9=new In;L9.tokenize=function(e){return e.split(/(\S.+?[.!?])(?=\s+|$)/)};A9=new In;A9.tokenize=function(e){return e.split(/([{}:;,]|\s+)/)};da=new In;da.useLongestToken=!0;da.tokenize=hh.tokenize;da.castInput=function(e,t){var n=t.undefinedReplacement,r=t.stringifyReplacer,i=r===void 0?function(s,o){return typeof o>"u"?n:o}:r;return typeof e=="string"?e:JSON.stringify(eh(e,null,null,i),i," ")};da.equals=function(e,t,n){return In.prototype.equals.call(da,e.replace(/,([\r\n])/g,"$1"),t.replace(/,([\r\n])/g,"$1"),n)};Il=new In;Il.tokenize=function(e){return e.slice()};Il.join=Il.removeEmpty=function(e){return e};Si="string",Tr="array",Ri="cursor",yr="indent",wr="align",xr="trim",en="group",tr="fill",hn="if-break",Lr="indent-if-break",Ar="line-suffix",Fr="line-suffix-boundary",It="line",nr="label",_n="break-parent",O_=new Set([Ri,yr,wr,xr,en,tr,hn,Lr,Ar,Fr,It,nr,_n]),I9=(e,t,n)=>{if(!(e&&t==null))return Array.isArray(t)||typeof t=="string"?t[n<0?t.length+n:n]:t.at(n)},Lt=I9;Ii=O9,k9=e=>new Intl.ListFormat("en-US",{type:"disjunction"}).format(e);U9=class extends Error{name="InvalidDocError";constructor(e){super(M9(e)),this.doc=e}},to=U9,r_={};dh=P9;gh=()=>{},er=gh,M_=gh,Q9=gh;n8={type:Fr},Bl={type:_n},r8={type:xr},_h={type:It,hard:!0},P_={type:It,hard:!0,literal:!0},B_={type:It},i8={type:It,soft:!0},Ai=[_h,Bl],C_=[P_,Bl],Li={type:Ri};a8=()=>/[#*0-9]\uFE0F?\u20E3|[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23ED-\u23EF\u23F1\u23F2\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB\u25FC\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692\u2694-\u2697\u2699\u269B\u269C\u26A0\u26A7\u26AA\u26B0\u26B1\u26BD\u26BE\u26C4\u26C8\u26CF\u26D1\u26E9\u26F0-\u26F5\u26F7\u26F8\u26FA\u2702\u2708\u2709\u270F\u2712\u2714\u2716\u271D\u2721\u2733\u2734\u2744\u2747\u2757\u2763\u27A1\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B55\u3030\u303D\u3297\u3299]\uFE0F?|[\u261D\u270C\u270D](?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?|[\u270A\u270B](?:\uD83C[\uDFFB-\uDFFF])?|[\u23E9-\u23EC\u23F0\u23F3\u25FD\u2693\u26A1\u26AB\u26C5\u26CE\u26D4\u26EA\u26FD\u2705\u2728\u274C\u274E\u2753-\u2755\u2795-\u2797\u27B0\u27BF\u2B50]|\u26D3\uFE0F?(?:\u200D\uD83D\uDCA5)?|\u26F9(?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?(?:\u200D[\u2640\u2642]\uFE0F?)?|\u2764\uFE0F?(?:\u200D(?:\uD83D\uDD25|\uD83E\uDE79))?|\uD83C(?:[\uDC04\uDD70\uDD71\uDD7E\uDD7F\uDE02\uDE37\uDF21\uDF24-\uDF2C\uDF36\uDF7D\uDF96\uDF97\uDF99-\uDF9B\uDF9E\uDF9F\uDFCD\uDFCE\uDFD4-\uDFDF\uDFF5\uDFF7]\uFE0F?|[\uDF85\uDFC2\uDFC7](?:\uD83C[\uDFFB-\uDFFF])?|[\uDFC4\uDFCA](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDFCB\uDFCC](?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDCCF\uDD8E\uDD91-\uDD9A\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF43\uDF45-\uDF4A\uDF4C-\uDF7C\uDF7E-\uDF84\uDF86-\uDF93\uDFA0-\uDFC1\uDFC5\uDFC6\uDFC8\uDFC9\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF8-\uDFFF]|\uDDE6\uD83C[\uDDE8-\uDDEC\uDDEE\uDDF1\uDDF2\uDDF4\uDDF6-\uDDFA\uDDFC\uDDFD\uDDFF]|\uDDE7\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEF\uDDF1-\uDDF4\uDDF6-\uDDF9\uDDFB\uDDFC\uDDFE\uDDFF]|\uDDE8\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDEE\uDDF0-\uDDF7\uDDFA-\uDDFF]|\uDDE9\uD83C[\uDDEA\uDDEC\uDDEF\uDDF0\uDDF2\uDDF4\uDDFF]|\uDDEA\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDED\uDDF7-\uDDFA]|\uDDEB\uD83C[\uDDEE-\uDDF0\uDDF2\uDDF4\uDDF7]|\uDDEC\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEE\uDDF1-\uDDF3\uDDF5-\uDDFA\uDDFC\uDDFE]|\uDDED\uD83C[\uDDF0\uDDF2\uDDF3\uDDF7\uDDF9\uDDFA]|\uDDEE\uD83C[\uDDE8-\uDDEA\uDDF1-\uDDF4\uDDF6-\uDDF9]|\uDDEF\uD83C[\uDDEA\uDDF2\uDDF4\uDDF5]|\uDDF0\uD83C[\uDDEA\uDDEC-\uDDEE\uDDF2\uDDF3\uDDF5\uDDF7\uDDFC\uDDFE\uDDFF]|\uDDF1\uD83C[\uDDE6-\uDDE8\uDDEE\uDDF0\uDDF7-\uDDFB\uDDFE]|\uDDF2\uD83C[\uDDE6\uDDE8-\uDDED\uDDF0-\uDDFF]|\uDDF3\uD83C[\uDDE6\uDDE8\uDDEA-\uDDEC\uDDEE\uDDF1\uDDF4\uDDF5\uDDF7\uDDFA\uDDFF]|\uDDF4\uD83C\uDDF2|\uDDF5\uD83C[\uDDE6\uDDEA-\uDDED\uDDF0-\uDDF3\uDDF7-\uDDF9\uDDFC\uDDFE]|\uDDF6\uD83C\uDDE6|\uDDF7\uD83C[\uDDEA\uDDF4\uDDF8\uDDFA\uDDFC]|\uDDF8\uD83C[\uDDE6-\uDDEA\uDDEC-\uDDF4\uDDF7-\uDDF9\uDDFB\uDDFD-\uDDFF]|\uDDF9\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDED\uDDEF-\uDDF4\uDDF7\uDDF9\uDDFB\uDDFC\uDDFF]|\uDDFA\uD83C[\uDDE6\uDDEC\uDDF2\uDDF3\uDDF8\uDDFE\uDDFF]|\uDDFB\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDEE\uDDF3\uDDFA]|\uDDFC\uD83C[\uDDEB\uDDF8]|\uDDFD\uD83C\uDDF0|\uDDFE\uD83C[\uDDEA\uDDF9]|\uDDFF\uD83C[\uDDE6\uDDF2\uDDFC]|\uDF44(?:\u200D\uD83D\uDFEB)?|\uDF4B(?:\u200D\uD83D\uDFE9)?|\uDFC3(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?|\uDFF3\uFE0F?(?:\u200D(?:\u26A7\uFE0F?|\uD83C\uDF08))?|\uDFF4(?:\u200D\u2620\uFE0F?|\uDB40\uDC67\uDB40\uDC62\uDB40(?:\uDC65\uDB40\uDC6E\uDB40\uDC67|\uDC73\uDB40\uDC63\uDB40\uDC74|\uDC77\uDB40\uDC6C\uDB40\uDC73)\uDB40\uDC7F)?)|\uD83D(?:[\uDC3F\uDCFD\uDD49\uDD4A\uDD6F\uDD70\uDD73\uDD76-\uDD79\uDD87\uDD8A-\uDD8D\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA\uDECB\uDECD-\uDECF\uDEE0-\uDEE5\uDEE9\uDEF0\uDEF3]\uFE0F?|[\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDC8F\uDC91\uDCAA\uDD7A\uDD95\uDD96\uDE4C\uDE4F\uDEC0\uDECC](?:\uD83C[\uDFFB-\uDFFF])?|[\uDC6E\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4\uDEB5](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD74\uDD90](?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?|[\uDC00-\uDC07\uDC09-\uDC14\uDC16-\uDC25\uDC27-\uDC3A\uDC3C-\uDC3E\uDC40\uDC44\uDC45\uDC51-\uDC65\uDC6A\uDC79-\uDC7B\uDC7D-\uDC80\uDC84\uDC88-\uDC8E\uDC90\uDC92-\uDCA9\uDCAB-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDDA4\uDDFB-\uDE2D\uDE2F-\uDE34\uDE37-\uDE41\uDE43\uDE44\uDE48-\uDE4A\uDE80-\uDEA2\uDEA4-\uDEB3\uDEB7-\uDEBF\uDEC1-\uDEC5\uDED0-\uDED2\uDED5-\uDED7\uDEDC-\uDEDF\uDEEB\uDEEC\uDEF4-\uDEFC\uDFE0-\uDFEB\uDFF0]|\uDC08(?:\u200D\u2B1B)?|\uDC15(?:\u200D\uD83E\uDDBA)?|\uDC26(?:\u200D(?:\u2B1B|\uD83D\uDD25))?|\uDC3B(?:\u200D\u2744\uFE0F?)?|\uDC41\uFE0F?(?:\u200D\uD83D\uDDE8\uFE0F?)?|\uDC68(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDC68\uDC69]\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFE])))?))?|\uDC69(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?[\uDC68\uDC69]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?|\uDC69\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?))|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFE])))?))?|\uDC6F(?:\u200D[\u2640\u2642]\uFE0F?)?|\uDD75(?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?(?:\u200D[\u2640\u2642]\uFE0F?)?|\uDE2E(?:\u200D\uD83D\uDCA8)?|\uDE35(?:\u200D\uD83D\uDCAB)?|\uDE36(?:\u200D\uD83C\uDF2B\uFE0F?)?|\uDE42(?:\u200D[\u2194\u2195]\uFE0F?)?|\uDEB6(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?)|\uD83E(?:[\uDD0C\uDD0F\uDD18-\uDD1F\uDD30-\uDD34\uDD36\uDD77\uDDB5\uDDB6\uDDBB\uDDD2\uDDD3\uDDD5\uDEC3-\uDEC5\uDEF0\uDEF2-\uDEF8](?:\uD83C[\uDFFB-\uDFFF])?|[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD\uDDCF\uDDD4\uDDD6-\uDDDD](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDDDE\uDDDF](?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD0D\uDD0E\uDD10-\uDD17\uDD20-\uDD25\uDD27-\uDD2F\uDD3A\uDD3F-\uDD45\uDD47-\uDD76\uDD78-\uDDB4\uDDB7\uDDBA\uDDBC-\uDDCC\uDDD0\uDDE0-\uDDFF\uDE70-\uDE7C\uDE80-\uDE89\uDE8F-\uDEC2\uDEC6\uDECE-\uDEDC\uDEDF-\uDEE9]|\uDD3C(?:\u200D[\u2640\u2642]\uFE0F?|\uD83C[\uDFFB-\uDFFF])?|\uDDCE(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?|\uDDD1(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1|\uDDD1\u200D\uD83E\uDDD2(?:\u200D\uD83E\uDDD2)?|\uDDD2(?:\u200D\uD83E\uDDD2)?))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFC-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFD-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFD\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFE]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?))?|\uDEF1(?:\uD83C(?:\uDFFB(?:\u200D\uD83E\uDEF2\uD83C[\uDFFC-\uDFFF])?|\uDFFC(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFD-\uDFFF])?|\uDFFD(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])?|\uDFFE(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFD\uDFFF])?|\uDFFF(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFE])?))?)/g;c8=e=>!(u8(e)||l8(e)),f8=/[^\x20-\x7F]/u;Eh=h8,Kt=Symbol("MODE_BREAK"),Kn=Symbol("MODE_FLAT"),Xs=Symbol("cursor"),nh=Symbol("DOC_FILL_PRINTED_LENGTH");Dh=m8,g8=class{constructor(e){v9(this,yi),this.stack=[e]}get key(){let{stack:e,siblings:t}=this;return Lt(!1,e,t===null?-2:-4)??null}get index(){return this.siblings===null?null:Lt(!1,this.stack,-2)}get node(){return Lt(!1,this.stack,-1)}get parent(){return this.getNode(1)}get grandparent(){return this.getNode(2)}get isInArray(){return this.siblings!==null}get siblings(){let{stack:e}=this,t=Lt(!1,e,-3);return Array.isArray(t)?t:null}get next(){let{siblings:e}=this;return e===null?null:e[this.index+1]}get previous(){let{siblings:e}=this;return e===null?null:e[this.index-1]}get isFirst(){return this.index===0}get isLast(){let{siblings:e,index:t}=this;return e!==null&&t===e.length-1}get isRoot(){return this.stack.length===1}get root(){return this.stack[0]}get ancestors(){return[...fa(this,yi,Fl).call(this)]}getName(){let{stack:e}=this,{length:t}=e;return t>1?Lt(!1,e,-2):null}getValue(){return Lt(!1,this.stack,-1)}getNode(e=0){let t=fa(this,yi,sh).call(this,e);return t===-1?null:this.stack[t]}getParentNode(e=0){return this.getNode(e+1)}call(e,...t){let{stack:n}=this,{length:r}=n,i=Lt(!1,n,-1);for(let s of t)i=i[s],n.push(s,i);try{return e(this)}finally{n.length=r}}callParent(e,t=0){let n=fa(this,yi,sh).call(this,t+1),r=this.stack.splice(n+1);try{return e(this)}finally{this.stack.push(...r)}}each(e,...t){let{stack:n}=this,{length:r}=n,i=Lt(!1,n,-1);for(let s of t)i=i[s],n.push(s,i);try{for(let s=0;s<i.length;++s)n.push(s,i[s]),e(this,s,i),n.length-=2}finally{n.length=r}}map(e,...t){let n=[];return this.each((r,i,s)=>{n[i]=e(r,i,s)},...t),n}match(...e){let t=this.stack.length-1,n=null,r=this.stack[t--];for(let i of e){if(r===void 0)return!1;let s=null;if(typeof n=="number"&&(s=n,n=this.stack[t--],r=this.stack[t--]),i&&!i(r,n,s))return!1;n=this.stack[t--],r=this.stack[t--]}return!0}findAncestor(e){for(let t of fa(this,yi,Fl).call(this))if(e(t))return t}hasAncestor(e){for(let t of fa(this,yi,Fl).call(this))if(e(t))return!0;return!1}};yi=new WeakSet,sh=function(e){let{stack:t}=this;for(let n=t.length-1;n>=0;n-=2)if(!Array.isArray(t[n])&&--e<0)return n;return-1},Fl=function*(){let{stack:e}=this;for(let t=e.length-3;t>=0;t-=2){let n=e[t];Array.isArray(n)||(yield n)}};_8=g8,G_=new Proxy(()=>{},{get:()=>G_}),oh=G_;D8=E8;N8=ma(/\s/u),Qr=ma(" "),q_=ma(",; "),H_=ma(/[^\n\r]/u);Fi=T8;zr=y8;x8=w8,W_=new Set(["tokens","comments","parent","enclosingNode","precedingNode","followingNode"]),L8=e=>Object.keys(e).filter(t=>!W_.has(t));$l=A8;H1=new WeakMap;W1=()=>!1;Q_=e=>!/[\S\n\u2028\u2029]/u.test(e);Nh=O8;V8=C8,X_=class extends Error{name="ConfigError"},a_=class extends Error{name="UndefinedParserError"},$8={cursorOffset:{category:"Special",type:"int",default:-1,range:{start:-1,end:1/0,step:1},description:"Print (to stderr) where a cursor at the given position would move to after formatting.",cliCategory:"Editor"},endOfLine:{category:"Global",type:"choice",default:"lf",description:"Which end of line characters to apply.",choices:[{value:"lf",description:"Line Feed only (\\n), common on Linux and macOS as well as inside git repos"},{value:"crlf",description:"Carriage Return + Line Feed characters (\\r\\n), common on Windows"},{value:"cr",description:"Carriage Return character only (\\r), used very rarely"},{value:"auto",description:`Maintain existing
|
|
35
|
+
(mixed values within one file are normalised by looking at what's used after the first line)`}]},filepath:{category:"Special",type:"path",description:"Specify the input filepath. This will be used to do parser inference.",cliName:"stdin-filepath",cliCategory:"Other",cliDescription:"Path to the file to pretend that stdin comes from."},insertPragma:{category:"Special",type:"boolean",default:!1,description:"Insert @format pragma into file's first docblock comment.",cliCategory:"Other"},parser:{category:"Global",type:"choice",default:void 0,description:"Which parser to use.",exception:e=>typeof e=="string"||typeof e=="function",choices:[{value:"flow",description:"Flow"},{value:"babel",description:"JavaScript"},{value:"babel-flow",description:"Flow"},{value:"babel-ts",description:"TypeScript"},{value:"typescript",description:"TypeScript"},{value:"acorn",description:"JavaScript"},{value:"espree",description:"JavaScript"},{value:"meriyah",description:"JavaScript"},{value:"css",description:"CSS"},{value:"less",description:"Less"},{value:"scss",description:"SCSS"},{value:"json",description:"JSON"},{value:"json5",description:"JSON5"},{value:"jsonc",description:"JSON with Comments"},{value:"json-stringify",description:"JSON.stringify"},{value:"graphql",description:"GraphQL"},{value:"markdown",description:"Markdown"},{value:"mdx",description:"MDX"},{value:"vue",description:"Vue"},{value:"yaml",description:"YAML"},{value:"glimmer",description:"Ember / Handlebars"},{value:"html",description:"HTML"},{value:"angular",description:"Angular"},{value:"lwc",description:"Lightning Web Components"}]},plugins:{type:"path",array:!0,default:[{value:[]}],category:"Global",description:"Add a plugin. Multiple plugins can be passed as separate `--plugin`s.",exception:e=>typeof e=="string"||typeof e=="object",cliName:"plugin",cliCategory:"Config"},printWidth:{category:"Global",type:"int",default:80,description:"The line length where Prettier will try wrap.",range:{start:0,end:1/0,step:1}},rangeEnd:{category:"Special",type:"int",default:1/0,range:{start:0,end:1/0,step:1},description:`Format code ending at a given character offset (exclusive).
|
|
32
36
|
The range will extend forwards to the end of the selected statement.`,cliCategory:"Editor"},rangeStart:{category:"Special",type:"int",default:0,range:{start:0,end:1/0,step:1},description:`Format code starting at a given character offset.
|
|
33
|
-
The range will extend backwards to the start of the first line containing the selected statement.`,cliCategory:"Editor"},requirePragma:{category:"Special",type:"boolean",default:!1,description
|
|
34
|
-
`)),Z_(s,n.loggerPrintWidth)};W1=[],c_=[];K_=(e,t,{descriptor:n,logger:r,schemas:i})=>{let s=[`Ignored unknown option ${Kn.yellow(n.pair({key:e,value:t}))}.`],o=Object.keys(i).sort().find(a=>fv(e,a)<3);o&&s.push(`Did you mean ${Kn.blue(n.key(o))}?`),r.warn(s.join(" "))},hv=["default","expected","validate","deprecated","forward","redirect","overlap","preprocess","postprocess"];Zr=class{static create(e){return pv(this,e)}constructor(e){this.name=e.name}default(e){}expected(e){return"nothing"}validate(e,t){return!1}deprecated(e,t){return!1}forward(e,t){}redirect(e,t){}overlap(e,t,n){return e}preprocess(e,t){return e}postprocess(e,t){return Fl}};mv=class extends Zr{constructor(e){super(e),this._sourceName=e.sourceName}expected(e){return e.schemas[this._sourceName].expected(e)}validate(e,t){return t.schemas[this._sourceName].validate(e,t)}redirect(e,t){return this._sourceName}},gv=class extends Zr{expected(){return"anything"}validate(){return!0}},_v=class extends Zr{constructor({valueSchema:e,name:t=e.name,...n}){super({...n,name:t}),this._valueSchema=e}expected(e){let{text:t,list:n}=e.normalizeExpectedResult(this._valueSchema.expected(e));return{text:t&&`an array of ${t}`,list:n&&{title:"an array of the following values",values:[{list:n}]}}}validate(e,t){if(!Array.isArray(e))return!1;let n=[];for(let r of e){let i=t.normalizeValidateResult(this._valueSchema.validate(r,t),r);i!==!0&&n.push(i.value)}return n.length===0?!0:{value:n}}deprecated(e,t){let n=[];for(let r of e){let i=t.normalizeDeprecatedResult(this._valueSchema.deprecated(r,t),r);i!==!1&&n.push(...i.map(({value:s})=>({value:[s]})))}return n}forward(e,t){let n=[];for(let r of e){let i=t.normalizeForwardResult(this._valueSchema.forward(r,t),r);n.push(...i.map(f_))}return n}redirect(e,t){let n=[],r=[];for(let i of e){let s=t.normalizeRedirectResult(this._valueSchema.redirect(i,t),i);"remain"in s&&n.push(s.remain),r.push(...s.redirect.map(f_))}return n.length===0?{redirect:r}:{redirect:r,remain:n}}overlap(e,t){return e.concat(t)}};Ev=class extends Zr{expected(){return"true or false"}validate(e){return typeof e=="boolean"}};Lv=class extends Zr{constructor(e){super(e),this._choices=bv(e.choices.map(t=>t&&typeof t=="object"?t:{value:t}),"value")}expected({descriptor:e}){let t=Array.from(this._choices.keys()).map(i=>this._choices.get(i)).filter(({hidden:i})=>!i).map(i=>i.value).sort(wv).map(e.value),n=t.slice(0,-2),r=t.slice(-2);return{text:n.concat(r.join(" or ")).join(", "),list:{title:"one of the following values",values:t}}}validate(e){return this._choices.has(e)}deprecated(e){let t=this._choices.get(e);return t&&t.deprecated?{value:e}:!1}forward(e){let t=this._choices.get(e);return t?t.forward:void 0}redirect(e){let t=this._choices.get(e);return t?t.redirect:void 0}},Av=class extends Zr{expected(){return"a number"}validate(e,t){return typeof e=="number"}},Fv=class extends Av{expected(){return"an integer"}validate(e,t){return t.normalizeValidateResult(super.validate(e,t),e)===!0&&Tv(e)}},__=class extends Zr{expected(){return"a string"}validate(e){return typeof e=="string"}},Sv=to,Rv=K_,Iv=cv,Ov=lv,kv=class{constructor(e,t){let{logger:n=console,loggerPrintWidth:r=80,descriptor:i=Sv,unknown:s=Rv,invalid:o=Iv,deprecated:a=Ov,missing:u=()=>!1,required:l=()=>!1,preprocess:c=d=>d,postprocess:f=()=>Fl}=t||{};this._utils={descriptor:i,logger:n||{warn:()=>{}},loggerPrintWidth:r,schemas:Dv(e,"name"),normalizeDefaultResult:h_,normalizeExpectedResult:e4,normalizeDeprecatedResult:d_,normalizeForwardResult:th,normalizeRedirectResult:g_,normalizeValidateResult:p_},this._unknownHandler=s,this._invalidHandler=xv(o),this._deprecatedHandler=a,this._identifyMissing=(d,m)=>!(d in m)||u(d,m),this._identifyRequired=l,this._preprocess=c,this._postprocess=f,this.cleanHistory()}cleanHistory(){this._hasDeprecationWarned=vv()}normalize(e){let t={},n=[this._preprocess(e,this._utils)],r=()=>{for(;n.length!==0;){let i=n.shift(),s=this._applyNormalization(i,t);n.push(...s)}};r();for(let i of Object.keys(this._utils.schemas)){let s=this._utils.schemas[i];if(!(i in t)){let o=h_(s.default(this._utils));"value"in o&&n.push({[i]:o.value})}}r();for(let i of Object.keys(this._utils.schemas)){if(!(i in t))continue;let s=this._utils.schemas[i],o=t[i],a=s.postprocess(o,this._utils);a!==Fl&&(this._applyValidation(a,i,s),t[i]=a)}return this._applyPostprocess(t),this._applyRequiredCheck(t),t}_applyNormalization(e,t){let n=[],{knownKeys:r,unknownKeys:i}=this._partitionOptionKeys(e);for(let s of r){let o=this._utils.schemas[s],a=o.preprocess(e[s],this._utils);this._applyValidation(a,s,o);let u=({from:f,to:d})=>{n.push(typeof d=="string"?{[d]:f}:{[d.key]:d.value})},l=({value:f,redirectTo:d})=>{let m=d_(o.deprecated(f,this._utils),a,!0);if(m!==!1)if(m===!0)this._hasDeprecationWarned(s)||this._utils.logger.warn(this._deprecatedHandler(s,d,this._utils));else for(let{value:g}of m){let E={key:s,value:g};if(!this._hasDeprecationWarned(E)){let T=typeof d=="string"?{key:d,value:g}:d;this._utils.logger.warn(this._deprecatedHandler(E,T,this._utils))}}};th(o.forward(a,this._utils),a).forEach(u);let c=g_(o.redirect(a,this._utils),a);if(c.redirect.forEach(u),"remain"in c){let f=c.remain;t[s]=s in t?o.overlap(t[s],f,this._utils):f,l({value:f})}for(let{from:f,to:d}of c.redirect)l({value:f,redirectTo:d})}for(let s of i){let o=e[s];this._applyUnknownHandler(s,o,t,(a,u)=>{n.push({[a]:u})})}return n}_applyRequiredCheck(e){for(let t of Object.keys(this._utils.schemas))if(this._identifyMissing(t,e)&&this._identifyRequired(t))throw this._invalidHandler(t,X_,this._utils)}_partitionOptionKeys(e){let[t,n]=Nv(Object.keys(e).filter(r=>!this._identifyMissing(r,e)),r=>r in this._utils.schemas);return{knownKeys:t,unknownKeys:n}}_applyValidation(e,t,n){let r=p_(n.validate(e,this._utils),e);if(r!==!0)throw this._invalidHandler(t,r.value,this._utils)}_applyUnknownHandler(e,t,n,r){let i=this._unknownHandler(e,t,this._utils);if(i)for(let s of Object.keys(i)){if(this._identifyMissing(s,i))continue;let o=i[s];s in this._utils.schemas?r(s,o):n[s]=o}}_applyPostprocess(e){let t=this._postprocess(e,this._utils);if(t!==Fl){if(t.delete)for(let n of t.delete)delete e[n];if(t.override){let{knownKeys:n,unknownKeys:r}=this._partitionOptionKeys(t.override);for(let i of n){let s=t.override[i];this._applyValidation(s,i,this._utils.schemas[i]),e[i]=s}for(let i of r){let s=t.override[i];this._applyUnknownHandler(i,s,e,(o,a)=>{let u=this._utils.schemas[o];this._applyValidation(a,o,u),e[o]=a})}}}}};Bv=Mv,Cv=(e,t,n)=>{if(!(e&&t==null)){if(t.findLast)return t.findLast(n);for(let r=t.length-1;r>=0;r--){let i=t[r];if(n(i,r,t))return i}}},t4=Cv;E_={astFormat:"estree",printer:{},originalText:void 0,locStart:null,locEnd:null};io=jv,Gv=A9(R9(),1);_a=qv;Yv=Qv;s4=Xv;Zv=Jv,Kv=(e,t,n)=>{if(!(e&&t==null)){if(t.findLastIndex)return t.findLastIndex(n);for(let r=t.length-1;r>=0;r--){let i=t[r];if(n(i,r,t))return r}return-1}},eN=Kv,tN=({parser:e})=>e==="json"||e==="json5"||e==="jsonc"||e==="json-stringify";o4=new Set(["JsonRoot","ObjectExpression","ArrayExpression","StringLiteral","NumericLiteral","BooleanLiteral","NullLiteral","UnaryExpression","TemplateLiteral"]),sN=new Set(["OperationDefinition","FragmentDefinition","VariableDefinition","TypeExtensionDefinition","ObjectTypeDefinition","FieldDefinition","DirectiveDefinition","EnumTypeDefinition","EnumValueDefinition","InputValueDefinition","InputObjectTypeDefinition","SchemaDefinition","OperationTypeDefinition","InterfaceTypeDefinition","UnionTypeDefinition","ScalarTypeDefinition"]);a4="\uFEFF",N_=Symbol("cursor");gh={};ih(gh,{builders:()=>dN,printer:()=>mN,utils:()=>gN});dN={join:U_,line:k_,softline:h8,hardline:Oi,literalline:M_,group:I_,conditionalGroup:o8,fill:a8,lineSuffix:Y1,lineSuffixBoundary:c8,cursor:Ii,breakParent:Ol,ifBreak:u8,trim:f8,indent:Sl,indentIfBreak:l8,align:ro,addAlignmentToDoc:P_,markAsRoot:i8,dedentToRoot:r8,dedent:s8,hardlineWithoutBreakParent:lh,literallineWithoutBreakParent:O_,label:p8,concat:e=>e},mN={printDocToString:kl},gN={willBreak:z9,traverseDoc:oh,findInDoc:ah,mapDoc:Il,removeLines:X9,stripTrailingHardline:S_,replaceEndOfLine:K9,canBreak:t8},f4="3.6.2",_h={};ih(_h,{addDanglingComment:()=>Si,addLeadingComment:()=>da,addTrailingComment:()=>ma,getAlignmentSize:()=>fh,getIndentSize:()=>NN,getMaxContinuousCount:()=>xN,getNextNonSpaceNonCommentCharacter:()=>LN,getNextNonSpaceNonCommentCharacterIndex:()=>PN,getPreferredQuote:()=>FN,getStringWidth:()=>ch,hasNewline:()=>Yr,hasNewlineInRange:()=>RN,hasSpaces:()=>ON,isNextLineEmpty:()=>$N,isNextLineEmptyAfterIndex:()=>vh,isPreviousLineEmpty:()=>CN,makeString:()=>MN,skip:()=>ga,skipEverythingButNewLine:()=>$_,skipInlineComment:()=>Eh,skipNewline:()=>ki,skipSpaces:()=>Xr,skipToLineEnd:()=>V_,skipTrailingComment:()=>Dh,skipWhitespace:()=>S8});Eh=_N;Dh=EN;bh=DN;vh=bN;NN=vN;xN=wN;LN=yN,yl="'",x_='"';FN=AN;RN=SN;ON=IN;MN=kN;Nh=Ri(c4);p4=Ri(z_,0),d4={parse:Ri(lN),formatAST:Ri(cN),formatDoc:Ri(fN),printToDoc:Ri(hN),printDocToString:Ri(pN)},jN=L_});var D4=Ir((E4,wh)=>{(function(e){function t(){var r=e();return r.default||r}if(typeof E4=="object"&&typeof wh=="object")wh.exports=t();else if(typeof define=="function"&&define.amd)define(t);else{var n=typeof globalThis<"u"?globalThis:typeof global<"u"?global:typeof self<"u"?self:this||{};n.prettierPlugins=n.prettierPlugins||{},n.prettierPlugins.graphql=t()}})(function(){"use strict";var e=Object.defineProperty,t=Object.getOwnPropertyDescriptor,n=Object.getOwnPropertyNames,r=Object.prototype.hasOwnProperty,i=(p,_)=>{for(var D in _)e(p,D,{get:_[D],enumerable:!0})},s=(p,_,D,F)=>{if(_&&typeof _=="object"||typeof _=="function")for(let x of n(_))!r.call(p,x)&&x!==D&&e(p,x,{get:()=>_[x],enumerable:!(F=t(_,x))||F.enumerable});return p},o=p=>s(e({},"__esModule",{value:!0}),p),a={};i(a,{languages:()=>U4,options:()=>C4,parsers:()=>Rh,printers:()=>w5});var u=(p,_,D,F)=>{if(!(p&&_==null))return _.replaceAll?_.replaceAll(D,F):D.global?_.replace(D,F):_.split(D).join(F)},l=u,c="indent",f="group",d="if-break",m="line",g="break-parent",E=()=>{},T=E,v=E;function A(p){return T(p),{type:c,contents:p}}function S(p,_={}){return T(p),v(_.expandedStates,!0),{type:f,id:_.id,contents:p,break:!!_.shouldBreak,expandedStates:_.expandedStates}}function C(p,_="",D={}){return T(p),_!==""&&T(_),{type:d,breakContents:p,flatContents:_,groupId:D.groupId}}var q={type:g},G={type:m,hard:!0},I={type:m},k={type:m,soft:!0},w=[G,q];function L(p,_){T(p),v(_);let D=[];for(let F=0;F<_.length;F++)F!==0&&D.push(p),D.push(_[F]);return D}function Z(p){return(_,D,F)=>{let x=!!(F!=null&&F.backwards);if(D===!1)return!1;let{length:j}=_,de=D;for(;de>=0&&de<j;){let Pe=_.charAt(de);if(p instanceof RegExp){if(!p.test(Pe))return de}else if(!p.includes(Pe))return de;x?de--:de++}return de===-1||de===j?de:!1}}var P=Z(/\s/u),z=Z(" "),O=Z(",; "),R=Z(/[^\n\r]/u);function J(p,_,D){let F=!!(D!=null&&D.backwards);if(_===!1)return!1;let x=p.charAt(_);if(F){if(p.charAt(_-1)==="\r"&&x===`
|
|
35
|
-
`)return _-2;if(x===`
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
`)
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
37
|
+
The range will extend backwards to the start of the first line containing the selected statement.`,cliCategory:"Editor"},requirePragma:{category:"Special",type:"boolean",default:!1,description:`Require either '@prettier' or '@format' to be present in the file's first docblock comment
|
|
38
|
+
in order for it to be formatted.`,cliCategory:"Other"},tabWidth:{type:"int",category:"Global",default:2,description:"Number of spaces per indentation level.",range:{start:0,end:1/0,step:1}},useTabs:{category:"Global",type:"boolean",default:!1,description:"Indent with tabs instead of spaces."},embeddedLanguageFormatting:{category:"Global",type:"choice",default:"auto",description:"Control how Prettier formats quoted code embedded in the file.",choices:[{value:"auto",description:"Format embedded code if Prettier can automatically identify it."},{value:"off",description:"Never automatically format embedded code."}]}};q8=e=>String(e).split(/[/\\]/u).pop();z8=W8,Ks={key:e=>/^[$_a-zA-Z][$_a-zA-Z0-9]*$/.test(e)?e:JSON.stringify(e),value(e){if(e===null||typeof e!="object")return JSON.stringify(e);if(Array.isArray(e))return`[${e.map(n=>Ks.value(n)).join(", ")}]`;let t=Object.keys(e);return t.length===0?"{}":`{ ${t.map(n=>`${Ks.key(n)}: ${Ks.value(e[n])}`).join(", ")} }`},pair:({key:e,value:t})=>Ks.value({[e]:t})},l_=kl(fh(),1),Q8=(e,t,{descriptor:n})=>{let r=[`${l_.default.yellow(typeof e=="string"?n.key(e):n.pair(e))} is deprecated`];return t&&r.push(`we now treat it as ${l_.default.blue(typeof t=="string"?n.key(t):n.pair(t))}`),r.join("; ")+"."},eo=kl(fh(),1),Z_=Symbol.for("vnopts.VALUE_NOT_EXIST"),Sl=Symbol.for("vnopts.VALUE_UNCHANGED"),c_=" ".repeat(2),Y8=(e,t,n)=>{let{text:r,list:i}=n.normalizeExpectedResult(n.schemas[e].expected(n)),s=[];return r&&s.push(f_(e,t,r,n.descriptor)),i&&s.push([f_(e,t,i.title,n.descriptor)].concat(i.values.map(o=>K_(o,n.loggerPrintWidth))).join(`
|
|
39
|
+
`)),e4(s,n.loggerPrintWidth)};h_=kl(fh(),1),Q1=[],p_=[];t4=(e,t,{descriptor:n,logger:r,schemas:i})=>{let s=[`Ignored unknown option ${h_.default.yellow(n.pair({key:e,value:t}))}.`],o=Object.keys(i).sort().find(a=>X8(e,a)<3);o&&s.push(`Did you mean ${h_.default.blue(n.key(o))}?`),r.warn(s.join(" "))},J8=["default","expected","validate","deprecated","forward","redirect","overlap","preprocess","postprocess"];Yr=class{static create(e){return Z8(this,e)}constructor(e){this.name=e.name}default(e){}expected(e){return"nothing"}validate(e,t){return!1}deprecated(e,t){return!1}forward(e,t){}redirect(e,t){}overlap(e,t,n){return e}preprocess(e,t){return e}postprocess(e,t){return Sl}};ev=class extends Yr{constructor(e){super(e),this._sourceName=e.sourceName}expected(e){return e.schemas[this._sourceName].expected(e)}validate(e,t){return t.schemas[this._sourceName].validate(e,t)}redirect(e,t){return this._sourceName}},tv=class extends Yr{expected(){return"anything"}validate(){return!0}},nv=class extends Yr{constructor({valueSchema:e,name:t=e.name,...n}){super({...n,name:t}),this._valueSchema=e}expected(e){let{text:t,list:n}=e.normalizeExpectedResult(this._valueSchema.expected(e));return{text:t&&`an array of ${t}`,list:n&&{title:"an array of the following values",values:[{list:n}]}}}validate(e,t){if(!Array.isArray(e))return!1;let n=[];for(let r of e){let i=t.normalizeValidateResult(this._valueSchema.validate(r,t),r);i!==!0&&n.push(i.value)}return n.length===0?!0:{value:n}}deprecated(e,t){let n=[];for(let r of e){let i=t.normalizeDeprecatedResult(this._valueSchema.deprecated(r,t),r);i!==!1&&n.push(...i.map(({value:s})=>({value:[s]})))}return n}forward(e,t){let n=[];for(let r of e){let i=t.normalizeForwardResult(this._valueSchema.forward(r,t),r);n.push(...i.map(d_))}return n}redirect(e,t){let n=[],r=[];for(let i of e){let s=t.normalizeRedirectResult(this._valueSchema.redirect(i,t),i);"remain"in s&&n.push(s.remain),r.push(...s.redirect.map(d_))}return n.length===0?{redirect:r}:{redirect:r,remain:n}}overlap(e,t){return e.concat(t)}};rv=class extends Yr{expected(){return"true or false"}validate(e){return typeof e=="boolean"}};hv=class extends Yr{constructor(e){super(e),this._choices=sv(e.choices.map(t=>t&&typeof t=="object"?t:{value:t}),"value")}expected({descriptor:e}){let t=Array.from(this._choices.keys()).map(i=>this._choices.get(i)).filter(({hidden:i})=>!i).map(i=>i.value).sort(lv).map(e.value),n=t.slice(0,-2),r=t.slice(-2);return{text:n.concat(r.join(" or ")).join(", "),list:{title:"one of the following values",values:t}}}validate(e){return this._choices.has(e)}deprecated(e){let t=this._choices.get(e);return t&&t.deprecated?{value:e}:!1}forward(e){let t=this._choices.get(e);return t?t.forward:void 0}redirect(e){let t=this._choices.get(e);return t?t.redirect:void 0}},pv=class extends Yr{expected(){return"a number"}validate(e,t){return typeof e=="number"}},dv=class extends pv{expected(){return"an integer"}validate(e,t){return t.normalizeValidateResult(super.validate(e,t),e)===!0&&uv(e)}},b_=class extends Yr{expected(){return"a string"}validate(e){return typeof e=="string"}},mv=Ks,gv=t4,_v=Y8,Ev=Q8,Dv=class{constructor(e,t){let{logger:n=console,loggerPrintWidth:r=80,descriptor:i=mv,unknown:s=gv,invalid:o=_v,deprecated:a=Ev,missing:u=()=>!1,required:l=()=>!1,preprocess:c=d=>d,postprocess:f=()=>Sl}=t||{};this._utils={descriptor:i,logger:n||{warn:()=>{}},loggerPrintWidth:r,schemas:iv(e,"name"),normalizeDefaultResult:m_,normalizeExpectedResult:n4,normalizeDeprecatedResult:__,normalizeForwardResult:ah,normalizeRedirectResult:D_,normalizeValidateResult:g_},this._unknownHandler=s,this._invalidHandler=cv(o),this._deprecatedHandler=a,this._identifyMissing=(d,m)=>!(d in m)||u(d,m),this._identifyRequired=l,this._preprocess=c,this._postprocess=f,this.cleanHistory()}cleanHistory(){this._hasDeprecationWarned=ov()}normalize(e){let t={},n=[this._preprocess(e,this._utils)],r=()=>{for(;n.length!==0;){let i=n.shift(),s=this._applyNormalization(i,t);n.push(...s)}};r();for(let i of Object.keys(this._utils.schemas)){let s=this._utils.schemas[i];if(!(i in t)){let o=m_(s.default(this._utils));"value"in o&&n.push({[i]:o.value})}}r();for(let i of Object.keys(this._utils.schemas)){if(!(i in t))continue;let s=this._utils.schemas[i],o=t[i],a=s.postprocess(o,this._utils);a!==Sl&&(this._applyValidation(a,i,s),t[i]=a)}return this._applyPostprocess(t),this._applyRequiredCheck(t),t}_applyNormalization(e,t){let n=[],{knownKeys:r,unknownKeys:i}=this._partitionOptionKeys(e);for(let s of r){let o=this._utils.schemas[s],a=o.preprocess(e[s],this._utils);this._applyValidation(a,s,o);let u=({from:f,to:d})=>{n.push(typeof d=="string"?{[d]:f}:{[d.key]:d.value})},l=({value:f,redirectTo:d})=>{let m=__(o.deprecated(f,this._utils),a,!0);if(m!==!1)if(m===!0)this._hasDeprecationWarned(s)||this._utils.logger.warn(this._deprecatedHandler(s,d,this._utils));else for(let{value:g}of m){let _={key:s,value:g};if(!this._hasDeprecationWarned(_)){let T=typeof d=="string"?{key:d,value:g}:d;this._utils.logger.warn(this._deprecatedHandler(_,T,this._utils))}}};ah(o.forward(a,this._utils),a).forEach(u);let c=D_(o.redirect(a,this._utils),a);if(c.redirect.forEach(u),"remain"in c){let f=c.remain;t[s]=s in t?o.overlap(t[s],f,this._utils):f,l({value:f})}for(let{from:f,to:d}of c.redirect)l({value:f,redirectTo:d})}for(let s of i){let o=e[s];this._applyUnknownHandler(s,o,t,(a,u)=>{n.push({[a]:u})})}return n}_applyRequiredCheck(e){for(let t of Object.keys(this._utils.schemas))if(this._identifyMissing(t,e)&&this._identifyRequired(t))throw this._invalidHandler(t,Z_,this._utils)}_partitionOptionKeys(e){let[t,n]=av(Object.keys(e).filter(r=>!this._identifyMissing(r,e)),r=>r in this._utils.schemas);return{knownKeys:t,unknownKeys:n}}_applyValidation(e,t,n){let r=g_(n.validate(e,this._utils),e);if(r!==!0)throw this._invalidHandler(t,r.value,this._utils)}_applyUnknownHandler(e,t,n,r){let i=this._unknownHandler(e,t,this._utils);if(i)for(let s of Object.keys(i)){if(this._identifyMissing(s,i))continue;let o=i[s];s in this._utils.schemas?r(s,o):n[s]=o}}_applyPostprocess(e){let t=this._postprocess(e,this._utils);if(t!==Sl){if(t.delete)for(let n of t.delete)delete e[n];if(t.override){let{knownKeys:n,unknownKeys:r}=this._partitionOptionKeys(t.override);for(let i of n){let s=t.override[i];this._applyValidation(s,i,this._utils.schemas[i]),e[i]=s}for(let i of r){let s=t.override[i];this._applyUnknownHandler(i,s,e,(o,a)=>{let u=this._utils.schemas[o];this._applyValidation(a,o,u),e[o]=a})}}}}};Tv=bv,yv=(e,t,n)=>{if(!(e&&t==null)){if(t.findLast)return t.findLast(n);for(let r=t.length-1;r>=0;r--){let i=t[r];if(n(i,r,t))return i}}},r4=yv;v_={astFormat:"estree",printer:{},originalText:void 0,locStart:null,locEnd:null};ro=Lv,Av=kl(N9(),1);ga=Fv;kv=Ov;Uv=Mv;Bv=Pv,Cv=(e,t,n)=>{if(!(e&&t==null)){if(t.findLastIndex)return t.findLastIndex(n);for(let r=t.length-1;r>=0;r--){let i=t[r];if(n(i,r,t))return r}return-1}},Vv=Cv,$v=({parser:e})=>e==="json"||e==="json5"||e==="jsonc"||e==="json-stringify";u4=new Set(["JsonRoot","ObjectExpression","ArrayExpression","StringLiteral","NumericLiteral","BooleanLiteral","NullLiteral","UnaryExpression","TemplateLiteral"]),Hv=new Set(["OperationDefinition","FragmentDefinition","VariableDefinition","TypeExtensionDefinition","ObjectTypeDefinition","FieldDefinition","DirectiveDefinition","EnumTypeDefinition","EnumValueDefinition","InputValueDefinition","InputObjectTypeDefinition","SchemaDefinition","OperationTypeDefinition","InterfaceTypeDefinition","UnionTypeDefinition","ScalarTypeDefinition"]);l4="\uFEFF",w_=Symbol("cursor");Th={};ch(Th,{builders:()=>Kv,printer:()=>eN,utils:()=>tN});Kv={join:V_,line:B_,softline:i8,hardline:Ai,literalline:C_,group:U_,conditionalGroup:Z9,fill:K9,lineSuffix:th,lineSuffixBoundary:n8,cursor:Li,breakParent:Bl,ifBreak:e8,trim:r8,indent:Ol,indentIfBreak:t8,align:no,addAlignmentToDoc:$_,markAsRoot:X9,dedentToRoot:Y9,dedent:J9,hardlineWithoutBreakParent:_h,literallineWithoutBreakParent:P_,label:s8,concat:e=>e},eN={printDocToString:Cl},tN={willBreak:C9,traverseDoc:dh,findInDoc:mh,mapDoc:Pl,removeLines:j9,stripTrailingHardline:k_,replaceEndOfLine:H9,canBreak:z9},p4="3.5.3",yh={};ch(yh,{addDanglingComment:()=>wi,addLeadingComment:()=>Js,addTrailingComment:()=>Zs,getAlignmentSize:()=>Dh,getIndentSize:()=>aN,getMaxContinuousCount:()=>cN,getNextNonSpaceNonCommentCharacter:()=>hN,getNextNonSpaceNonCommentCharacterIndex:()=>NN,getPreferredQuote:()=>dN,getStringWidth:()=>Eh,hasNewline:()=>zr,hasNewlineInRange:()=>gN,hasSpaces:()=>EN,isNextLineEmpty:()=>xN,isNextLineEmptyAfterIndex:()=>Ah,isPreviousLineEmpty:()=>yN,makeString:()=>bN,skip:()=>ma,skipEverythingButNewLine:()=>H_,skipInlineComment:()=>wh,skipNewline:()=>Fi,skipSpaces:()=>Qr,skipToLineEnd:()=>q_,skipTrailingComment:()=>xh,skipWhitespace:()=>N8});wh=nN;xh=rN;Lh=iN;Ah=sN;aN=oN;cN=lN;hN=fN,Ll="'",A_='"';dN=pN;gN=mN;EN=_N;bN=DN;Fh=xi(h4);m4=xi(J_,0),g4={parse:xi(Qv),formatAST:xi(Yv),formatDoc:xi(Xv),printToDoc:xi(Jv),printDocToString:xi(Zv)},LN=R_});var v4=Sr((b4,Rh)=>{(function(e){function t(){var r=e();return r.default||r}if(typeof b4=="object"&&typeof Rh=="object")Rh.exports=t();else if(typeof define=="function"&&define.amd)define(t);else{var n=typeof globalThis<"u"?globalThis:typeof global<"u"?global:typeof self<"u"?self:this||{};n.prettierPlugins=n.prettierPlugins||{},n.prettierPlugins.graphql=t()}})(function(){"use strict";var e=Object.defineProperty,t=Object.getOwnPropertyDescriptor,n=Object.getOwnPropertyNames,r=Object.prototype.hasOwnProperty,i=(p,E)=>{for(var D in E)e(p,D,{get:E[D],enumerable:!0})},s=(p,E,D,x)=>{if(E&&typeof E=="object"||typeof E=="function")for(let N of n(E))!r.call(p,N)&&N!==D&&e(p,N,{get:()=>E[N],enumerable:!(x=t(E,N))||x.enumerable});return p},o=p=>s(e({},"__esModule",{value:!0}),p),a={};i(a,{languages:()=>k4,options:()=>P4,parsers:()=>Bh,printers:()=>N5});var u=(p,E,D,x)=>{if(!(p&&E==null))return E.replaceAll?E.replaceAll(D,x):D.global?E.replace(D,x):E.split(D).join(x)},l=u,c="indent",f="group",d="if-break",m="line",g="break-parent",_=()=>{},T=_,A=_;function S(p){return T(p),{type:c,contents:p}}function L(p,E={}){return T(p),A(E.expandedStates,!0),{type:f,id:E.id,contents:p,break:!!E.shouldBreak,expandedStates:E.expandedStates}}function P(p,E="",D={}){return T(p),E!==""&&T(E),{type:d,breakContents:p,flatContents:E,groupId:D.groupId}}var q={type:g},Y={type:m,hard:!0},I={type:m},U={type:m,soft:!0},w=[Y,q];function F(p,E){T(p),A(E);let D=[];for(let x=0;x<E.length;x++)x!==0&&D.push(p),D.push(E[x]);return D}function Z(p){return(E,D,x)=>{let N=!!(x!=null&&x.backwards);if(D===!1)return!1;let{length:$}=E,de=D;for(;de>=0&&de<$;){let Ue=E.charAt(de);if(p instanceof RegExp){if(!p.test(Ue))return de}else if(!p.includes(Ue))return de;N?de--:de++}return de===-1||de===$?de:!1}}var re=Z(/\s/u),ne=Z(" "),R=Z(",; "),k=Z(/[^\n\r]/u);function K(p,E,D){let x=!!(D!=null&&D.backwards);if(E===!1)return!1;let N=p.charAt(E);if(x){if(p.charAt(E-1)==="\r"&&N===`
|
|
40
|
+
`)return E-2;if(N===`
|
|
41
|
+
`||N==="\r"||N==="\u2028"||N==="\u2029")return E-1}else{if(N==="\r"&&p.charAt(E+1)===`
|
|
42
|
+
`)return E+2;if(N===`
|
|
43
|
+
`||N==="\r"||N==="\u2028"||N==="\u2029")return E+1}return E}var J=K;function fe(p,E,D={}){let x=ne(p,D.backwards?E-1:E,D),N=J(p,x,D);return x!==N}var _e=fe;function Fe(p,E){if(E===!1)return!1;if(p.charAt(E)==="/"&&p.charAt(E+1)==="*"){for(let D=E+2;D<p.length;++D)if(p.charAt(D)==="*"&&p.charAt(D+1)==="/")return D+2}return E}var Xe=Fe;function V(p,E){return E===!1?!1:p.charAt(E)==="/"&&p.charAt(E+1)==="/"?k(p,E):E}var ae=V;function te(p,E){let D=null,x=E;for(;x!==D;)D=x,x=R(p,x),x=Xe(p,x),x=ne(p,x);return x=ae(p,x),x=J(p,x),x!==!1&&_e(p,x)}var z=te;function Se(p){return Array.isArray(p)&&p.length>0}var We=Se,Q=class extends Error{name="UnexpectedNodeError";constructor(p,E,D="type"){super(`Unexpected ${E} node ${D}: ${JSON.stringify(p[D])}.`),this.node=p}},ke=Q,ee=null;function ve(p){if(ee!==null&&typeof ee.property){let E=ee;return ee=ve.prototype=null,E}return ee=ve.prototype=p??Object.create(null),new ve}var Oe=10;for(let p=0;p<=Oe;p++)ve();function At(p){return ve(p)}function ot(p,E="type"){At(p);function D(x){let N=x[E],$=p[N];if(!Array.isArray($))throw Object.assign(new Error(`Missing visitor keys for '${N}'.`),{node:x});return $}return D}var io=ot,Oi=class{constructor(p,E,D){this.start=p.start,this.end=E.end,this.startToken=p,this.endToken=E,this.source=D}get[Symbol.toStringTag](){return"Location"}toJSON(){return{start:this.start,end:this.end}}},Ih=class{constructor(p,E,D,x,N,$){this.kind=p,this.start=E,this.end=D,this.line=x,this.column=N,this.value=$,this.prev=null,this.next=null}get[Symbol.toStringTag](){return"Token"}toJSON(){return{kind:this.kind,value:this.value,line:this.line,column:this.column}}},Oh={Name:[],Document:["definitions"],OperationDefinition:["name","variableDefinitions","directives","selectionSet"],VariableDefinition:["variable","type","defaultValue","directives"],Variable:["name"],SelectionSet:["selections"],Field:["alias","name","arguments","directives","selectionSet"],Argument:["name","value"],FragmentSpread:["name","directives"],InlineFragment:["typeCondition","directives","selectionSet"],FragmentDefinition:["name","variableDefinitions","typeCondition","directives","selectionSet"],IntValue:[],FloatValue:[],StringValue:[],BooleanValue:[],NullValue:[],EnumValue:[],ListValue:["values"],ObjectValue:["fields"],ObjectField:["name","value"],Directive:["name","arguments"],NamedType:["name"],ListType:["type"],NonNullType:["type"],SchemaDefinition:["description","directives","operationTypes"],OperationTypeDefinition:["type"],ScalarTypeDefinition:["description","name","directives"],ObjectTypeDefinition:["description","name","interfaces","directives","fields"],FieldDefinition:["description","name","arguments","type","directives"],InputValueDefinition:["description","name","type","defaultValue","directives"],InterfaceTypeDefinition:["description","name","interfaces","directives","fields"],UnionTypeDefinition:["description","name","directives","types"],EnumTypeDefinition:["description","name","directives","values"],EnumValueDefinition:["description","name","directives"],InputObjectTypeDefinition:["description","name","directives","fields"],DirectiveDefinition:["description","name","arguments","locations"],SchemaExtension:["directives","operationTypes"],ScalarTypeExtension:["name","directives"],ObjectTypeExtension:["name","interfaces","directives","fields"],InterfaceTypeExtension:["name","interfaces","directives","fields"],UnionTypeExtension:["name","directives","types"],EnumTypeExtension:["name","directives","values"],InputObjectTypeExtension:["name","directives","fields"]},AN=new Set(Object.keys(Oh)),ki;(function(p){p.QUERY="query",p.MUTATION="mutation",p.SUBSCRIPTION="subscription"})(ki||(ki={}));var N4=io(Oh,"kind"),T4=N4;function kh(p){return p.loc.start}function Mh(p){return p.loc.end}function y4(p){return/^\s*#[^\S\n]*@(?:format|prettier)\s*(?:\n|$)/u.test(p)}function w4(p){return`# @format
|
|
44
|
+
|
|
45
|
+
`+p}function x4(p,E,D){let{node:x}=p;if(!x.description)return"";let N=[D("description")];return x.kind==="InputValueDefinition"&&!x.description.block?N.push(I):N.push(w),N}var rr=x4;function L4(p,E,D){let{node:x}=p;switch(x.kind){case"Document":return[...F(w,On(p,E,D,"definitions")),w];case"OperationDefinition":{let N=E.originalText[kh(x)]!=="{",$=!!x.name;return[N?x.operation:"",N&&$?[" ",D("name")]:"",N&&!$&&We(x.variableDefinitions)?" ":"",Uh(p,D),Ct(p,D,x),!N&&!$?"":" ",D("selectionSet")]}case"FragmentDefinition":return["fragment ",D("name"),Uh(p,D)," on ",D("typeCondition"),Ct(p,D,x)," ",D("selectionSet")];case"SelectionSet":return["{",S([w,F(w,On(p,E,D,"selections"))]),w,"}"];case"Field":return L([x.alias?[D("alias"),": "]:"",D("name"),x.arguments.length>0?L(["(",S([U,F([P("",", "),U],On(p,E,D,"arguments"))]),U,")"]):"",Ct(p,D,x),x.selectionSet?" ":"",D("selectionSet")]);case"Name":return x.value;case"StringValue":if(x.block){let N=l(!1,x.value,'"""',String.raw`\"""`).split(`
|
|
46
|
+
`);return N.length===1&&(N[0]=N[0].trim()),N.every($=>$==="")&&(N.length=0),F(w,['"""',...N,'"""'])}return['"',l(!1,l(!1,x.value,/["\\]/gu,String.raw`\$&`),`
|
|
47
|
+
`,String.raw`\n`),'"'];case"IntValue":case"FloatValue":case"EnumValue":return x.value;case"BooleanValue":return x.value?"true":"false";case"NullValue":return"null";case"Variable":return["$",D("name")];case"ListValue":return L(["[",S([U,F([P("",", "),U],p.map(D,"values"))]),U,"]"]);case"ObjectValue":{let N=E.bracketSpacing&&x.fields.length>0?" ":"";return L(["{",N,S([U,F([P("",", "),U],p.map(D,"fields"))]),U,P("",N),"}"])}case"ObjectField":case"Argument":return[D("name"),": ",D("value")];case"Directive":return["@",D("name"),x.arguments.length>0?L(["(",S([U,F([P("",", "),U],On(p,E,D,"arguments"))]),U,")"]):""];case"NamedType":return D("name");case"VariableDefinition":return[D("variable"),": ",D("type"),x.defaultValue?[" = ",D("defaultValue")]:"",Ct(p,D,x)];case"ObjectTypeExtension":case"ObjectTypeDefinition":case"InputObjectTypeExtension":case"InputObjectTypeDefinition":case"InterfaceTypeExtension":case"InterfaceTypeDefinition":{let{kind:N}=x,$=[];return N.endsWith("TypeDefinition")?$.push(rr(p,E,D)):$.push("extend "),N.startsWith("ObjectType")?$.push("type"):N.startsWith("InputObjectType")?$.push("input"):$.push("interface"),$.push(" ",D("name")),!N.startsWith("InputObjectType")&&x.interfaces.length>0&&$.push(" implements ",...S4(p,E,D)),$.push(Ct(p,D,x)),x.fields.length>0&&$.push([" {",S([w,F(w,On(p,E,D,"fields"))]),w,"}"]),$}case"FieldDefinition":return[rr(p,E,D),D("name"),x.arguments.length>0?L(["(",S([U,F([P("",", "),U],On(p,E,D,"arguments"))]),U,")"]):"",": ",D("type"),Ct(p,D,x)];case"DirectiveDefinition":return[rr(p,E,D),"directive ","@",D("name"),x.arguments.length>0?L(["(",S([U,F([P("",", "),U],On(p,E,D,"arguments"))]),U,")"]):"",x.repeatable?" repeatable":""," on ",...F(" | ",p.map(D,"locations"))];case"EnumTypeExtension":case"EnumTypeDefinition":return[rr(p,E,D),x.kind==="EnumTypeExtension"?"extend ":"","enum ",D("name"),Ct(p,D,x),x.values.length>0?[" {",S([w,F(w,On(p,E,D,"values"))]),w,"}"]:""];case"EnumValueDefinition":return[rr(p,E,D),D("name"),Ct(p,D,x)];case"InputValueDefinition":return[rr(p,E,D),D("name"),": ",D("type"),x.defaultValue?[" = ",D("defaultValue")]:"",Ct(p,D,x)];case"SchemaExtension":return["extend schema",Ct(p,D,x),...x.operationTypes.length>0?[" {",S([w,F(w,On(p,E,D,"operationTypes"))]),w,"}"]:[]];case"SchemaDefinition":return[rr(p,E,D),"schema",Ct(p,D,x)," {",x.operationTypes.length>0?S([w,F(w,On(p,E,D,"operationTypes"))]):"",w,"}"];case"OperationTypeDefinition":return[x.operation,": ",D("type")];case"FragmentSpread":return["...",D("name"),Ct(p,D,x)];case"InlineFragment":return["...",x.typeCondition?[" on ",D("typeCondition")]:"",Ct(p,D,x)," ",D("selectionSet")];case"UnionTypeExtension":case"UnionTypeDefinition":return L([rr(p,E,D),L([x.kind==="UnionTypeExtension"?"extend ":"","union ",D("name"),Ct(p,D,x),x.types.length>0?[" =",P(""," "),S([P([I,"| "]),F([I,"| "],p.map(D,"types"))])]:""])]);case"ScalarTypeExtension":case"ScalarTypeDefinition":return[rr(p,E,D),x.kind==="ScalarTypeExtension"?"extend ":"","scalar ",D("name"),Ct(p,D,x)];case"NonNullType":return[D("type"),"!"];case"ListType":return["[",D("type"),"]"];default:throw new ke(x,"Graphql","kind")}}function Ct(p,E,D){if(D.directives.length===0)return"";let x=F(I,p.map(E,"directives"));return D.kind==="FragmentDefinition"||D.kind==="OperationDefinition"?L([I,x]):[" ",L(S([U,x]))]}function On(p,E,D,x){return p.map(({isLast:N,node:$})=>{let de=D();return!N&&z(E.originalText,Mh($))?[de,w]:de},x)}function A4(p){return p.kind!=="Comment"}function F4(p){let E=p.node;if(E.kind==="Comment")return"#"+E.value.trimEnd();throw new Error("Not a comment: "+JSON.stringify(E))}function S4(p,E,D){let{node:x}=p,N=[],{interfaces:$}=x,de=p.map(D,"interfaces");for(let Ue=0;Ue<$.length;Ue++){let it=$[Ue];N.push(de[Ue]);let Ht=$[Ue+1];if(Ht){let Ot=E.originalText.slice(it.loc.end,Ht.loc.start).includes("#");N.push(" &",Ot?I:" ")}}return N}function Uh(p,E){let{node:D}=p;return We(D.variableDefinitions)?L(["(",S([U,F([P("",", "),U],p.map(E,"variableDefinitions"))]),U,")"]):""}function Ph(p,E){p.kind==="StringValue"&&p.block&&!p.value.includes(`
|
|
48
|
+
`)&&(E.value=p.value.trim())}Ph.ignoredProperties=new Set(["loc","comments"]);function R4(p){var E;let{node:D}=p;return(E=D?.comments)==null?void 0:E.some(x=>x.value.trim()==="prettier-ignore")}var I4={print:L4,massageAstNode:Ph,hasPrettierIgnore:R4,insertPragma:w4,printComment:F4,canAttachComment:A4,getVisitorKeys:T4},O4=I4,k4=[{linguistLanguageId:139,name:"GraphQL",type:"data",color:"#e10098",extensions:[".graphql",".gql",".graphqls"],tmScope:"source.graphql",aceMode:"text",parsers:["graphql"],vscodeLanguageIds:["graphql"]}],M4={bracketSpacing:{category:"Common",type:"boolean",default:!0,description:"Print spaces between brackets.",oppositeDescription:"Do not print spaces between brackets."},objectWrap:{category:"Common",type:"choice",default:"preserve",description:"How to wrap object literals.",choices:[{value:"preserve",description:"Keep as multi-line, if there is a newline between the opening brace and first property."},{value:"collapse",description:"Fit to a single line when possible."}]},singleQuote:{category:"Common",type:"boolean",default:!1,description:"Use single quotes instead of double quotes."},proseWrap:{category:"Common",type:"choice",default:"preserve",description:"How to wrap prose.",choices:[{value:"always",description:"Wrap prose if it exceeds the print width."},{value:"never",description:"Do not wrap prose."},{value:"preserve",description:"Wrap prose as-is."}]},bracketSameLine:{category:"Common",type:"boolean",default:!1,description:"Put > of opening tags on the last line instead of on a new line."},singleAttributePerLine:{category:"Common",type:"boolean",default:!1,description:"Enforce single attribute per line in HTML, Vue and JSX."}},U4={bracketSpacing:M4.bracketSpacing},P4=U4,Bh={};i(Bh,{graphql:()=>v5});function B4(p){return typeof p=="object"&&p!==null}function C4(p,E){if(!p)throw new Error(E??"Unexpected invariant triggered.")}var V4=/\r\n|[\n\r]/g;function ql(p,E){let D=0,x=1;for(let N of p.body.matchAll(V4)){if(typeof N.index=="number"||C4(!1),N.index>=E)break;D=N.index+N[0].length,x+=1}return{line:x,column:E+1-D}}function $4(p){return Ch(p.source,ql(p.source,p.start))}function Ch(p,E){let D=p.locationOffset.column-1,x="".padStart(D)+p.body,N=E.line-1,$=p.locationOffset.line-1,de=E.line+$,Ue=E.line===1?D:0,it=E.column+Ue,Ht=`${p.name}:${de}:${it}
|
|
49
|
+
`,Ot=x.split(/\r\n|[\n\r]/g),Ui=Ot[N];if(Ui.length>120){let ir=Math.floor(it/80),Ql=it%80,Vt=[];for(let Pi=0;Pi<Ui.length;Pi+=80)Vt.push(Ui.slice(Pi,Pi+80));return Ht+Vh([[`${de} |`,Vt[0]],...Vt.slice(1,ir+1).map(Pi=>["|",Pi]),["|","^".padStart(Ql)],["|",Vt[ir+1]]])}return Ht+Vh([[`${de-1} |`,Ot[N-1]],[`${de} |`,Ui],["|","^".padStart(it)],[`${de+1} |`,Ot[N+1]]])}function Vh(p){let E=p.filter(([x,N])=>N!==void 0),D=Math.max(...E.map(([x])=>x.length));return E.map(([x,N])=>x.padStart(D)+(N?" "+N:"")).join(`
|
|
50
|
+
`)}function j4(p){let E=p[0];return E==null||"kind"in E||"length"in E?{nodes:E,source:p[1],positions:p[2],path:p[3],originalError:p[4],extensions:p[5]}:E}var G4=class D4 extends Error{constructor(E,...D){var x,N,$;let{nodes:de,source:Ue,positions:it,path:Ht,originalError:Ot,extensions:Ui}=j4(D);super(E),this.name="GraphQLError",this.path=Ht??void 0,this.originalError=Ot??void 0,this.nodes=$h(Array.isArray(de)?de:de?[de]:void 0);let ir=$h((x=this.nodes)===null||x===void 0?void 0:x.map(Vt=>Vt.loc).filter(Vt=>Vt!=null));this.source=Ue??(ir==null||(N=ir[0])===null||N===void 0?void 0:N.source),this.positions=it??ir?.map(Vt=>Vt.start),this.locations=it&&Ue?it.map(Vt=>ql(Ue,Vt)):ir?.map(Vt=>ql(Vt.source,Vt.start));let Ql=B4(Ot?.extensions)?Ot?.extensions:void 0;this.extensions=($=Ui??Ql)!==null&&$!==void 0?$:Object.create(null),Object.defineProperties(this,{message:{writable:!0,enumerable:!0},name:{enumerable:!1},nodes:{enumerable:!1},source:{enumerable:!1},positions:{enumerable:!1},originalError:{enumerable:!1}}),Ot!=null&&Ot.stack?Object.defineProperty(this,"stack",{value:Ot.stack,writable:!0,configurable:!0}):Error.captureStackTrace?Error.captureStackTrace(this,D4):Object.defineProperty(this,"stack",{value:Error().stack,writable:!0,configurable:!0})}get[Symbol.toStringTag](){return"GraphQLError"}toString(){let E=this.message;if(this.nodes)for(let D of this.nodes)D.loc&&(E+=`
|
|
51
|
+
|
|
52
|
+
`+$4(D.loc));else if(this.source&&this.locations)for(let D of this.locations)E+=`
|
|
53
|
+
|
|
54
|
+
`+Ch(this.source,D);return E}toJSON(){let E={message:this.message};return this.locations!=null&&(E.locations=this.locations),this.path!=null&&(E.path=this.path),this.extensions!=null&&Object.keys(this.extensions).length>0&&(E.extensions=this.extensions),E}};function $h(p){return p===void 0||p.length===0?void 0:p}function yt(p,E,D){return new G4(`Syntax Error: ${D}`,{source:p,positions:[E]})}var Hl;(function(p){p.QUERY="QUERY",p.MUTATION="MUTATION",p.SUBSCRIPTION="SUBSCRIPTION",p.FIELD="FIELD",p.FRAGMENT_DEFINITION="FRAGMENT_DEFINITION",p.FRAGMENT_SPREAD="FRAGMENT_SPREAD",p.INLINE_FRAGMENT="INLINE_FRAGMENT",p.VARIABLE_DEFINITION="VARIABLE_DEFINITION",p.SCHEMA="SCHEMA",p.SCALAR="SCALAR",p.OBJECT="OBJECT",p.FIELD_DEFINITION="FIELD_DEFINITION",p.ARGUMENT_DEFINITION="ARGUMENT_DEFINITION",p.INTERFACE="INTERFACE",p.UNION="UNION",p.ENUM="ENUM",p.ENUM_VALUE="ENUM_VALUE",p.INPUT_OBJECT="INPUT_OBJECT",p.INPUT_FIELD_DEFINITION="INPUT_FIELD_DEFINITION"})(Hl||(Hl={}));var Ee;(function(p){p.NAME="Name",p.DOCUMENT="Document",p.OPERATION_DEFINITION="OperationDefinition",p.VARIABLE_DEFINITION="VariableDefinition",p.SELECTION_SET="SelectionSet",p.FIELD="Field",p.ARGUMENT="Argument",p.FRAGMENT_SPREAD="FragmentSpread",p.INLINE_FRAGMENT="InlineFragment",p.FRAGMENT_DEFINITION="FragmentDefinition",p.VARIABLE="Variable",p.INT="IntValue",p.FLOAT="FloatValue",p.STRING="StringValue",p.BOOLEAN="BooleanValue",p.NULL="NullValue",p.ENUM="EnumValue",p.LIST="ListValue",p.OBJECT="ObjectValue",p.OBJECT_FIELD="ObjectField",p.DIRECTIVE="Directive",p.NAMED_TYPE="NamedType",p.LIST_TYPE="ListType",p.NON_NULL_TYPE="NonNullType",p.SCHEMA_DEFINITION="SchemaDefinition",p.OPERATION_TYPE_DEFINITION="OperationTypeDefinition",p.SCALAR_TYPE_DEFINITION="ScalarTypeDefinition",p.OBJECT_TYPE_DEFINITION="ObjectTypeDefinition",p.FIELD_DEFINITION="FieldDefinition",p.INPUT_VALUE_DEFINITION="InputValueDefinition",p.INTERFACE_TYPE_DEFINITION="InterfaceTypeDefinition",p.UNION_TYPE_DEFINITION="UnionTypeDefinition",p.ENUM_TYPE_DEFINITION="EnumTypeDefinition",p.ENUM_VALUE_DEFINITION="EnumValueDefinition",p.INPUT_OBJECT_TYPE_DEFINITION="InputObjectTypeDefinition",p.DIRECTIVE_DEFINITION="DirectiveDefinition",p.SCHEMA_EXTENSION="SchemaExtension",p.SCALAR_TYPE_EXTENSION="ScalarTypeExtension",p.OBJECT_TYPE_EXTENSION="ObjectTypeExtension",p.INTERFACE_TYPE_EXTENSION="InterfaceTypeExtension",p.UNION_TYPE_EXTENSION="UnionTypeExtension",p.ENUM_TYPE_EXTENSION="EnumTypeExtension",p.INPUT_OBJECT_TYPE_EXTENSION="InputObjectTypeExtension"})(Ee||(Ee={}));function q4(p){return p===9||p===32}function so(p){return p>=48&&p<=57}function jh(p){return p>=97&&p<=122||p>=65&&p<=90}function Gh(p){return jh(p)||p===95}function H4(p){return jh(p)||so(p)||p===95}function W4(p){var E;let D=Number.MAX_SAFE_INTEGER,x=null,N=-1;for(let de=0;de<p.length;++de){var $;let Ue=p[de],it=z4(Ue);it!==Ue.length&&(x=($=x)!==null&&$!==void 0?$:de,N=de,de!==0&&it<D&&(D=it))}return p.map((de,Ue)=>Ue===0?de:de.slice(D)).slice((E=x)!==null&&E!==void 0?E:0,N+1)}function z4(p){let E=0;for(;E<p.length&&q4(p.charCodeAt(E));)++E;return E}var H;(function(p){p.SOF="<SOF>",p.EOF="<EOF>",p.BANG="!",p.DOLLAR="$",p.AMP="&",p.PAREN_L="(",p.PAREN_R=")",p.SPREAD="...",p.COLON=":",p.EQUALS="=",p.AT="@",p.BRACKET_L="[",p.BRACKET_R="]",p.BRACE_L="{",p.PIPE="|",p.BRACE_R="}",p.NAME="Name",p.INT="Int",p.FLOAT="Float",p.STRING="String",p.BLOCK_STRING="BlockString",p.COMMENT="Comment"})(H||(H={}));var Q4=class{constructor(p){let E=new Ih(H.SOF,0,0,0,0);this.source=p,this.lastToken=E,this.token=E,this.line=1,this.lineStart=0}get[Symbol.toStringTag](){return"Lexer"}advance(){return this.lastToken=this.token,this.token=this.lookahead()}lookahead(){let p=this.token;if(p.kind!==H.EOF)do if(p.next)p=p.next;else{let E=X4(this,p.end);p.next=E,E.prev=p,p=E}while(p.kind===H.COMMENT);return p}};function Y4(p){return p===H.BANG||p===H.DOLLAR||p===H.AMP||p===H.PAREN_L||p===H.PAREN_R||p===H.SPREAD||p===H.COLON||p===H.EQUALS||p===H.AT||p===H.BRACKET_L||p===H.BRACKET_R||p===H.BRACE_L||p===H.PIPE||p===H.BRACE_R}function Mi(p){return p>=0&&p<=55295||p>=57344&&p<=1114111}function _a(p,E){return qh(p.charCodeAt(E))&&Hh(p.charCodeAt(E+1))}function qh(p){return p>=55296&&p<=56319}function Hh(p){return p>=56320&&p<=57343}function Xr(p,E){let D=p.source.body.codePointAt(E);if(D===void 0)return H.EOF;if(D>=32&&D<=126){let x=String.fromCodePoint(D);return x==='"'?`'"'`:`"${x}"`}return"U+"+D.toString(16).toUpperCase().padStart(4,"0")}function mt(p,E,D,x,N){let $=p.line,de=1+D-p.lineStart;return new Ih(E,D,x,$,de,N)}function X4(p,E){let D=p.source.body,x=D.length,N=E;for(;N<x;){let $=D.charCodeAt(N);switch($){case 65279:case 9:case 32:case 44:++N;continue;case 10:++N,++p.line,p.lineStart=N;continue;case 13:D.charCodeAt(N+1)===10?N+=2:++N,++p.line,p.lineStart=N;continue;case 35:return J4(p,N);case 33:return mt(p,H.BANG,N,N+1);case 36:return mt(p,H.DOLLAR,N,N+1);case 38:return mt(p,H.AMP,N,N+1);case 40:return mt(p,H.PAREN_L,N,N+1);case 41:return mt(p,H.PAREN_R,N,N+1);case 46:if(D.charCodeAt(N+1)===46&&D.charCodeAt(N+2)===46)return mt(p,H.SPREAD,N,N+3);break;case 58:return mt(p,H.COLON,N,N+1);case 61:return mt(p,H.EQUALS,N,N+1);case 64:return mt(p,H.AT,N,N+1);case 91:return mt(p,H.BRACKET_L,N,N+1);case 93:return mt(p,H.BRACKET_R,N,N+1);case 123:return mt(p,H.BRACE_L,N,N+1);case 124:return mt(p,H.PIPE,N,N+1);case 125:return mt(p,H.BRACE_R,N,N+1);case 34:return D.charCodeAt(N+1)===34&&D.charCodeAt(N+2)===34?r5(p,N):K4(p,N)}if(so($)||$===45)return Z4(p,N,$);if(Gh($))return i5(p,N);throw yt(p.source,N,$===39?`Unexpected single quote character ('), did you mean to use a double quote (")?`:Mi($)||_a(D,N)?`Unexpected character: ${Xr(p,N)}.`:`Invalid character: ${Xr(p,N)}.`)}return mt(p,H.EOF,x,x)}function J4(p,E){let D=p.source.body,x=D.length,N=E+1;for(;N<x;){let $=D.charCodeAt(N);if($===10||$===13)break;if(Mi($))++N;else if(_a(D,N))N+=2;else break}return mt(p,H.COMMENT,E,N,D.slice(E+1,N))}function Z4(p,E,D){let x=p.source.body,N=E,$=D,de=!1;if($===45&&($=x.charCodeAt(++N)),$===48){if($=x.charCodeAt(++N),so($))throw yt(p.source,N,`Invalid number, unexpected digit after 0: ${Xr(p,N)}.`)}else N=Wl(p,N,$),$=x.charCodeAt(N);if($===46&&(de=!0,$=x.charCodeAt(++N),N=Wl(p,N,$),$=x.charCodeAt(N)),($===69||$===101)&&(de=!0,$=x.charCodeAt(++N),($===43||$===45)&&($=x.charCodeAt(++N)),N=Wl(p,N,$),$=x.charCodeAt(N)),$===46||Gh($))throw yt(p.source,N,`Invalid number, expected digit but got: ${Xr(p,N)}.`);return mt(p,de?H.FLOAT:H.INT,E,N,x.slice(E,N))}function Wl(p,E,D){if(!so(D))throw yt(p.source,E,`Invalid number, expected digit but got: ${Xr(p,E)}.`);let x=p.source.body,N=E+1;for(;so(x.charCodeAt(N));)++N;return N}function K4(p,E){let D=p.source.body,x=D.length,N=E+1,$=N,de="";for(;N<x;){let Ue=D.charCodeAt(N);if(Ue===34)return de+=D.slice($,N),mt(p,H.STRING,E,N+1,de);if(Ue===92){de+=D.slice($,N);let it=D.charCodeAt(N+1)===117?D.charCodeAt(N+2)===123?e5(p,N):t5(p,N):n5(p,N);de+=it.value,N+=it.size,$=N;continue}if(Ue===10||Ue===13)break;if(Mi(Ue))++N;else if(_a(D,N))N+=2;else throw yt(p.source,N,`Invalid character within String: ${Xr(p,N)}.`)}throw yt(p.source,N,"Unterminated string.")}function e5(p,E){let D=p.source.body,x=0,N=3;for(;N<12;){let $=D.charCodeAt(E+N++);if($===125){if(N<5||!Mi(x))break;return{value:String.fromCodePoint(x),size:N}}if(x=x<<4|oo($),x<0)break}throw yt(p.source,E,`Invalid Unicode escape sequence: "${D.slice(E,E+N)}".`)}function t5(p,E){let D=p.source.body,x=Wh(D,E+2);if(Mi(x))return{value:String.fromCodePoint(x),size:6};if(qh(x)&&D.charCodeAt(E+6)===92&&D.charCodeAt(E+7)===117){let N=Wh(D,E+8);if(Hh(N))return{value:String.fromCodePoint(x,N),size:12}}throw yt(p.source,E,`Invalid Unicode escape sequence: "${D.slice(E,E+6)}".`)}function Wh(p,E){return oo(p.charCodeAt(E))<<12|oo(p.charCodeAt(E+1))<<8|oo(p.charCodeAt(E+2))<<4|oo(p.charCodeAt(E+3))}function oo(p){return p>=48&&p<=57?p-48:p>=65&&p<=70?p-55:p>=97&&p<=102?p-87:-1}function n5(p,E){let D=p.source.body;switch(D.charCodeAt(E+1)){case 34:return{value:'"',size:2};case 92:return{value:"\\",size:2};case 47:return{value:"/",size:2};case 98:return{value:"\b",size:2};case 102:return{value:"\f",size:2};case 110:return{value:`
|
|
55
|
+
`,size:2};case 114:return{value:"\r",size:2};case 116:return{value:" ",size:2}}throw yt(p.source,E,`Invalid character escape sequence: "${D.slice(E,E+2)}".`)}function r5(p,E){let D=p.source.body,x=D.length,N=p.lineStart,$=E+3,de=$,Ue="",it=[];for(;$<x;){let Ht=D.charCodeAt($);if(Ht===34&&D.charCodeAt($+1)===34&&D.charCodeAt($+2)===34){Ue+=D.slice(de,$),it.push(Ue);let Ot=mt(p,H.BLOCK_STRING,E,$+3,W4(it).join(`
|
|
56
|
+
`));return p.line+=it.length-1,p.lineStart=N,Ot}if(Ht===92&&D.charCodeAt($+1)===34&&D.charCodeAt($+2)===34&&D.charCodeAt($+3)===34){Ue+=D.slice(de,$),de=$+1,$+=4;continue}if(Ht===10||Ht===13){Ue+=D.slice(de,$),it.push(Ue),Ht===13&&D.charCodeAt($+1)===10?$+=2:++$,Ue="",de=$,N=$;continue}if(Mi(Ht))++$;else if(_a(D,$))$+=2;else throw yt(p.source,$,`Invalid character within String: ${Xr(p,$)}.`)}throw yt(p.source,$,"Unterminated string.")}function i5(p,E){let D=p.source.body,x=D.length,N=E+1;for(;N<x;){let $=D.charCodeAt(N);if(H4($))++N;else break}return mt(p,H.NAME,E,N,D.slice(E,N))}function zl(p,E){if(!p)throw new Error(E)}function zh(p){return Ea(p,[])}function Ea(p,E){switch(typeof p){case"string":return JSON.stringify(p);case"function":return p.name?`[function ${p.name}]`:"[function]";case"object":return s5(p,E);default:return String(p)}}function s5(p,E){if(p===null)return"null";if(E.includes(p))return"[Circular]";let D=[...E,p];if(o5(p)){let x=p.toJSON();if(x!==p)return typeof x=="string"?x:Ea(x,D)}else if(Array.isArray(p))return u5(p,D);return a5(p,D)}function o5(p){return typeof p.toJSON=="function"}function a5(p,E){let D=Object.entries(p);return D.length===0?"{}":E.length>2?"["+l5(p)+"]":"{ "+D.map(([x,N])=>x+": "+Ea(N,E)).join(", ")+" }"}function u5(p,E){if(p.length===0)return"[]";if(E.length>2)return"[Array]";let D=Math.min(10,p.length),x=p.length-D,N=[];for(let $=0;$<D;++$)N.push(Ea(p[$],E));return x===1?N.push("... 1 more item"):x>1&&N.push(`... ${x} more items`),"["+N.join(", ")+"]"}function l5(p){let E=Object.prototype.toString.call(p).replace(/^\[object /,"").replace(/]$/,"");if(E==="Object"&&typeof p.constructor=="function"){let D=p.constructor.name;if(typeof D=="string"&&D!=="")return D}return E}var c5=globalThis.process&&!0,f5=c5?function(p,E){return p instanceof E}:function(p,E){if(p instanceof E)return!0;if(typeof p=="object"&&p!==null){var D;let x=E.prototype[Symbol.toStringTag],N=Symbol.toStringTag in p?p[Symbol.toStringTag]:(D=p.constructor)===null||D===void 0?void 0:D.name;if(x===N){let $=zh(p);throw new Error(`Cannot use ${x} "${$}" from another module or realm.
|
|
52
57
|
|
|
53
58
|
Ensure that there is only one instance of "graphql" in the node_modules
|
|
54
59
|
directory. If different versions of "graphql" are the dependencies of other
|
|
@@ -59,15 +64,15 @@ https://yarnpkg.com/en/docs/selective-version-resolutions
|
|
|
59
64
|
Duplicate "graphql" modules cannot be used at the same time since different
|
|
60
65
|
versions may have different capabilities and behavior. The data from one
|
|
61
66
|
version used in the function from another could produce confusing and
|
|
62
|
-
spurious results.`)}}return!1},$h=class{constructor(p,_="GraphQL request",D={line:1,column:1}){typeof p=="string"||jl(!1,`Body must be a string. Received: ${Vh(p)}.`),this.body=p,this.name=_,this.locationOffset=D,this.locationOffset.line>0||jl(!1,"line in locationOffset is 1-indexed and must be positive."),this.locationOffset.column>0||jl(!1,"column in locationOffset is 1-indexed and must be positive.")}get[Symbol.toStringTag](){return"Source"}};function d5(p){return p5(p,$h)}function m5(p,_){let D=new g5(p,_),F=D.parseDocument();return Object.defineProperty(F,"tokenCount",{enumerable:!1,value:D.tokenCount}),F}var g5=class{constructor(p,_={}){let D=d5(p)?p:new $h(p);this._lexer=new X4(D),this._options=_,this._tokenCounter=0}get tokenCount(){return this._tokenCounter}parseName(){let p=this.expectToken(Q.NAME);return this.node(p,{kind:_e.NAME,value:p.value})}parseDocument(){return this.node(this._lexer.token,{kind:_e.DOCUMENT,definitions:this.many(Q.SOF,this.parseDefinition,Q.EOF)})}parseDefinition(){if(this.peek(Q.BRACE_L))return this.parseOperationDefinition();let p=this.peekDescription(),_=p?this._lexer.lookahead():this._lexer.token;if(_.kind===Q.NAME){switch(_.value){case"schema":return this.parseSchemaDefinition();case"scalar":return this.parseScalarTypeDefinition();case"type":return this.parseObjectTypeDefinition();case"interface":return this.parseInterfaceTypeDefinition();case"union":return this.parseUnionTypeDefinition();case"enum":return this.parseEnumTypeDefinition();case"input":return this.parseInputObjectTypeDefinition();case"directive":return this.parseDirectiveDefinition()}if(p)throw Nt(this._lexer.source,this._lexer.token.start,"Unexpected description, descriptions are supported only on type definitions.");switch(_.value){case"query":case"mutation":case"subscription":return this.parseOperationDefinition();case"fragment":return this.parseFragmentDefinition();case"extend":return this.parseTypeSystemExtension()}}throw this.unexpected(_)}parseOperationDefinition(){let p=this._lexer.token;if(this.peek(Q.BRACE_L))return this.node(p,{kind:_e.OPERATION_DEFINITION,operation:Bi.QUERY,name:void 0,variableDefinitions:[],directives:[],selectionSet:this.parseSelectionSet()});let _=this.parseOperationType(),D;return this.peek(Q.NAME)&&(D=this.parseName()),this.node(p,{kind:_e.OPERATION_DEFINITION,operation:_,name:D,variableDefinitions:this.parseVariableDefinitions(),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseOperationType(){let p=this.expectToken(Q.NAME);switch(p.value){case"query":return Bi.QUERY;case"mutation":return Bi.MUTATION;case"subscription":return Bi.SUBSCRIPTION}throw this.unexpected(p)}parseVariableDefinitions(){return this.optionalMany(Q.PAREN_L,this.parseVariableDefinition,Q.PAREN_R)}parseVariableDefinition(){return this.node(this._lexer.token,{kind:_e.VARIABLE_DEFINITION,variable:this.parseVariable(),type:(this.expectToken(Q.COLON),this.parseTypeReference()),defaultValue:this.expectOptionalToken(Q.EQUALS)?this.parseConstValueLiteral():void 0,directives:this.parseConstDirectives()})}parseVariable(){let p=this._lexer.token;return this.expectToken(Q.DOLLAR),this.node(p,{kind:_e.VARIABLE,name:this.parseName()})}parseSelectionSet(){return this.node(this._lexer.token,{kind:_e.SELECTION_SET,selections:this.many(Q.BRACE_L,this.parseSelection,Q.BRACE_R)})}parseSelection(){return this.peek(Q.SPREAD)?this.parseFragment():this.parseField()}parseField(){let p=this._lexer.token,_=this.parseName(),D,F;return this.expectOptionalToken(Q.COLON)?(D=_,F=this.parseName()):F=_,this.node(p,{kind:_e.FIELD,alias:D,name:F,arguments:this.parseArguments(!1),directives:this.parseDirectives(!1),selectionSet:this.peek(Q.BRACE_L)?this.parseSelectionSet():void 0})}parseArguments(p){let _=p?this.parseConstArgument:this.parseArgument;return this.optionalMany(Q.PAREN_L,_,Q.PAREN_R)}parseArgument(p=!1){let _=this._lexer.token,D=this.parseName();return this.expectToken(Q.COLON),this.node(_,{kind:_e.ARGUMENT,name:D,value:this.parseValueLiteral(p)})}parseConstArgument(){return this.parseArgument(!0)}parseFragment(){let p=this._lexer.token;this.expectToken(Q.SPREAD);let _=this.expectOptionalKeyword("on");return!_&&this.peek(Q.NAME)?this.node(p,{kind:_e.FRAGMENT_SPREAD,name:this.parseFragmentName(),directives:this.parseDirectives(!1)}):this.node(p,{kind:_e.INLINE_FRAGMENT,typeCondition:_?this.parseNamedType():void 0,directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseFragmentDefinition(){let p=this._lexer.token;return this.expectKeyword("fragment"),this._options.allowLegacyFragmentVariables===!0?this.node(p,{kind:_e.FRAGMENT_DEFINITION,name:this.parseFragmentName(),variableDefinitions:this.parseVariableDefinitions(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()}):this.node(p,{kind:_e.FRAGMENT_DEFINITION,name:this.parseFragmentName(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseFragmentName(){if(this._lexer.token.value==="on")throw this.unexpected();return this.parseName()}parseValueLiteral(p){let _=this._lexer.token;switch(_.kind){case Q.BRACKET_L:return this.parseList(p);case Q.BRACE_L:return this.parseObject(p);case Q.INT:return this.advanceLexer(),this.node(_,{kind:_e.INT,value:_.value});case Q.FLOAT:return this.advanceLexer(),this.node(_,{kind:_e.FLOAT,value:_.value});case Q.STRING:case Q.BLOCK_STRING:return this.parseStringLiteral();case Q.NAME:switch(this.advanceLexer(),_.value){case"true":return this.node(_,{kind:_e.BOOLEAN,value:!0});case"false":return this.node(_,{kind:_e.BOOLEAN,value:!1});case"null":return this.node(_,{kind:_e.NULL});default:return this.node(_,{kind:_e.ENUM,value:_.value})}case Q.DOLLAR:if(p)if(this.expectToken(Q.DOLLAR),this._lexer.token.kind===Q.NAME){let D=this._lexer.token.value;throw Nt(this._lexer.source,_.start,`Unexpected variable "$${D}" in constant value.`)}else throw this.unexpected(_);return this.parseVariable();default:throw this.unexpected()}}parseConstValueLiteral(){return this.parseValueLiteral(!0)}parseStringLiteral(){let p=this._lexer.token;return this.advanceLexer(),this.node(p,{kind:_e.STRING,value:p.value,block:p.kind===Q.BLOCK_STRING})}parseList(p){let _=()=>this.parseValueLiteral(p);return this.node(this._lexer.token,{kind:_e.LIST,values:this.any(Q.BRACKET_L,_,Q.BRACKET_R)})}parseObject(p){let _=()=>this.parseObjectField(p);return this.node(this._lexer.token,{kind:_e.OBJECT,fields:this.any(Q.BRACE_L,_,Q.BRACE_R)})}parseObjectField(p){let _=this._lexer.token,D=this.parseName();return this.expectToken(Q.COLON),this.node(_,{kind:_e.OBJECT_FIELD,name:D,value:this.parseValueLiteral(p)})}parseDirectives(p){let _=[];for(;this.peek(Q.AT);)_.push(this.parseDirective(p));return _}parseConstDirectives(){return this.parseDirectives(!0)}parseDirective(p){let _=this._lexer.token;return this.expectToken(Q.AT),this.node(_,{kind:_e.DIRECTIVE,name:this.parseName(),arguments:this.parseArguments(p)})}parseTypeReference(){let p=this._lexer.token,_;if(this.expectOptionalToken(Q.BRACKET_L)){let D=this.parseTypeReference();this.expectToken(Q.BRACKET_R),_=this.node(p,{kind:_e.LIST_TYPE,type:D})}else _=this.parseNamedType();return this.expectOptionalToken(Q.BANG)?this.node(p,{kind:_e.NON_NULL_TYPE,type:_}):_}parseNamedType(){return this.node(this._lexer.token,{kind:_e.NAMED_TYPE,name:this.parseName()})}peekDescription(){return this.peek(Q.STRING)||this.peek(Q.BLOCK_STRING)}parseDescription(){if(this.peekDescription())return this.parseStringLiteral()}parseSchemaDefinition(){let p=this._lexer.token,_=this.parseDescription();this.expectKeyword("schema");let D=this.parseConstDirectives(),F=this.many(Q.BRACE_L,this.parseOperationTypeDefinition,Q.BRACE_R);return this.node(p,{kind:_e.SCHEMA_DEFINITION,description:_,directives:D,operationTypes:F})}parseOperationTypeDefinition(){let p=this._lexer.token,_=this.parseOperationType();this.expectToken(Q.COLON);let D=this.parseNamedType();return this.node(p,{kind:_e.OPERATION_TYPE_DEFINITION,operation:_,type:D})}parseScalarTypeDefinition(){let p=this._lexer.token,_=this.parseDescription();this.expectKeyword("scalar");let D=this.parseName(),F=this.parseConstDirectives();return this.node(p,{kind:_e.SCALAR_TYPE_DEFINITION,description:_,name:D,directives:F})}parseObjectTypeDefinition(){let p=this._lexer.token,_=this.parseDescription();this.expectKeyword("type");let D=this.parseName(),F=this.parseImplementsInterfaces(),x=this.parseConstDirectives(),j=this.parseFieldsDefinition();return this.node(p,{kind:_e.OBJECT_TYPE_DEFINITION,description:_,name:D,interfaces:F,directives:x,fields:j})}parseImplementsInterfaces(){return this.expectOptionalKeyword("implements")?this.delimitedMany(Q.AMP,this.parseNamedType):[]}parseFieldsDefinition(){return this.optionalMany(Q.BRACE_L,this.parseFieldDefinition,Q.BRACE_R)}parseFieldDefinition(){let p=this._lexer.token,_=this.parseDescription(),D=this.parseName(),F=this.parseArgumentDefs();this.expectToken(Q.COLON);let x=this.parseTypeReference(),j=this.parseConstDirectives();return this.node(p,{kind:_e.FIELD_DEFINITION,description:_,name:D,arguments:F,type:x,directives:j})}parseArgumentDefs(){return this.optionalMany(Q.PAREN_L,this.parseInputValueDef,Q.PAREN_R)}parseInputValueDef(){let p=this._lexer.token,_=this.parseDescription(),D=this.parseName();this.expectToken(Q.COLON);let F=this.parseTypeReference(),x;this.expectOptionalToken(Q.EQUALS)&&(x=this.parseConstValueLiteral());let j=this.parseConstDirectives();return this.node(p,{kind:_e.INPUT_VALUE_DEFINITION,description:_,name:D,type:F,defaultValue:x,directives:j})}parseInterfaceTypeDefinition(){let p=this._lexer.token,_=this.parseDescription();this.expectKeyword("interface");let D=this.parseName(),F=this.parseImplementsInterfaces(),x=this.parseConstDirectives(),j=this.parseFieldsDefinition();return this.node(p,{kind:_e.INTERFACE_TYPE_DEFINITION,description:_,name:D,interfaces:F,directives:x,fields:j})}parseUnionTypeDefinition(){let p=this._lexer.token,_=this.parseDescription();this.expectKeyword("union");let D=this.parseName(),F=this.parseConstDirectives(),x=this.parseUnionMemberTypes();return this.node(p,{kind:_e.UNION_TYPE_DEFINITION,description:_,name:D,directives:F,types:x})}parseUnionMemberTypes(){return this.expectOptionalToken(Q.EQUALS)?this.delimitedMany(Q.PIPE,this.parseNamedType):[]}parseEnumTypeDefinition(){let p=this._lexer.token,_=this.parseDescription();this.expectKeyword("enum");let D=this.parseName(),F=this.parseConstDirectives(),x=this.parseEnumValuesDefinition();return this.node(p,{kind:_e.ENUM_TYPE_DEFINITION,description:_,name:D,directives:F,values:x})}parseEnumValuesDefinition(){return this.optionalMany(Q.BRACE_L,this.parseEnumValueDefinition,Q.BRACE_R)}parseEnumValueDefinition(){let p=this._lexer.token,_=this.parseDescription(),D=this.parseEnumValueName(),F=this.parseConstDirectives();return this.node(p,{kind:_e.ENUM_VALUE_DEFINITION,description:_,name:D,directives:F})}parseEnumValueName(){if(this._lexer.token.value==="true"||this._lexer.token.value==="false"||this._lexer.token.value==="null")throw Nt(this._lexer.source,this._lexer.token.start,`${ba(this._lexer.token)} is reserved and cannot be used for an enum value.`);return this.parseName()}parseInputObjectTypeDefinition(){let p=this._lexer.token,_=this.parseDescription();this.expectKeyword("input");let D=this.parseName(),F=this.parseConstDirectives(),x=this.parseInputFieldsDefinition();return this.node(p,{kind:_e.INPUT_OBJECT_TYPE_DEFINITION,description:_,name:D,directives:F,fields:x})}parseInputFieldsDefinition(){return this.optionalMany(Q.BRACE_L,this.parseInputValueDef,Q.BRACE_R)}parseTypeSystemExtension(){let p=this._lexer.lookahead();if(p.kind===Q.NAME)switch(p.value){case"schema":return this.parseSchemaExtension();case"scalar":return this.parseScalarTypeExtension();case"type":return this.parseObjectTypeExtension();case"interface":return this.parseInterfaceTypeExtension();case"union":return this.parseUnionTypeExtension();case"enum":return this.parseEnumTypeExtension();case"input":return this.parseInputObjectTypeExtension()}throw this.unexpected(p)}parseSchemaExtension(){let p=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("schema");let _=this.parseConstDirectives(),D=this.optionalMany(Q.BRACE_L,this.parseOperationTypeDefinition,Q.BRACE_R);if(_.length===0&&D.length===0)throw this.unexpected();return this.node(p,{kind:_e.SCHEMA_EXTENSION,directives:_,operationTypes:D})}parseScalarTypeExtension(){let p=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("scalar");let _=this.parseName(),D=this.parseConstDirectives();if(D.length===0)throw this.unexpected();return this.node(p,{kind:_e.SCALAR_TYPE_EXTENSION,name:_,directives:D})}parseObjectTypeExtension(){let p=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("type");let _=this.parseName(),D=this.parseImplementsInterfaces(),F=this.parseConstDirectives(),x=this.parseFieldsDefinition();if(D.length===0&&F.length===0&&x.length===0)throw this.unexpected();return this.node(p,{kind:_e.OBJECT_TYPE_EXTENSION,name:_,interfaces:D,directives:F,fields:x})}parseInterfaceTypeExtension(){let p=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("interface");let _=this.parseName(),D=this.parseImplementsInterfaces(),F=this.parseConstDirectives(),x=this.parseFieldsDefinition();if(D.length===0&&F.length===0&&x.length===0)throw this.unexpected();return this.node(p,{kind:_e.INTERFACE_TYPE_EXTENSION,name:_,interfaces:D,directives:F,fields:x})}parseUnionTypeExtension(){let p=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("union");let _=this.parseName(),D=this.parseConstDirectives(),F=this.parseUnionMemberTypes();if(D.length===0&&F.length===0)throw this.unexpected();return this.node(p,{kind:_e.UNION_TYPE_EXTENSION,name:_,directives:D,types:F})}parseEnumTypeExtension(){let p=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("enum");let _=this.parseName(),D=this.parseConstDirectives(),F=this.parseEnumValuesDefinition();if(D.length===0&&F.length===0)throw this.unexpected();return this.node(p,{kind:_e.ENUM_TYPE_EXTENSION,name:_,directives:D,values:F})}parseInputObjectTypeExtension(){let p=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("input");let _=this.parseName(),D=this.parseConstDirectives(),F=this.parseInputFieldsDefinition();if(D.length===0&&F.length===0)throw this.unexpected();return this.node(p,{kind:_e.INPUT_OBJECT_TYPE_EXTENSION,name:_,directives:D,fields:F})}parseDirectiveDefinition(){let p=this._lexer.token,_=this.parseDescription();this.expectKeyword("directive"),this.expectToken(Q.AT);let D=this.parseName(),F=this.parseArgumentDefs(),x=this.expectOptionalKeyword("repeatable");this.expectKeyword("on");let j=this.parseDirectiveLocations();return this.node(p,{kind:_e.DIRECTIVE_DEFINITION,description:_,name:D,arguments:F,repeatable:x,locations:j})}parseDirectiveLocations(){return this.delimitedMany(Q.PIPE,this.parseDirectiveLocation)}parseDirectiveLocation(){let p=this._lexer.token,_=this.parseName();if(Object.prototype.hasOwnProperty.call(Vl,_.value))return _;throw this.unexpected(p)}node(p,_){return this._options.noLocation!==!0&&(_.loc=new Pi(p,this._lexer.lastToken,this._lexer.source)),_}peek(p){return this._lexer.token.kind===p}expectToken(p){let _=this._lexer.token;if(_.kind===p)return this.advanceLexer(),_;throw Nt(this._lexer.source,_.start,`Expected ${jh(p)}, found ${ba(_)}.`)}expectOptionalToken(p){return this._lexer.token.kind===p?(this.advanceLexer(),!0):!1}expectKeyword(p){let _=this._lexer.token;if(_.kind===Q.NAME&&_.value===p)this.advanceLexer();else throw Nt(this._lexer.source,_.start,`Expected "${p}", found ${ba(_)}.`)}expectOptionalKeyword(p){let _=this._lexer.token;return _.kind===Q.NAME&&_.value===p?(this.advanceLexer(),!0):!1}unexpected(p){let _=p??this._lexer.token;return Nt(this._lexer.source,_.start,`Unexpected ${ba(_)}.`)}any(p,_,D){this.expectToken(p);let F=[];for(;!this.expectOptionalToken(D);)F.push(_.call(this));return F}optionalMany(p,_,D){if(this.expectOptionalToken(p)){let F=[];do F.push(_.call(this));while(!this.expectOptionalToken(D));return F}return[]}many(p,_,D){this.expectToken(p);let F=[];do F.push(_.call(this));while(!this.expectOptionalToken(D));return F}delimitedMany(p,_){this.expectOptionalToken(p);let D=[];do D.push(_.call(this));while(this.expectOptionalToken(p));return D}advanceLexer(){let{maxTokens:p}=this._options,_=this._lexer.advance();if(_.kind!==Q.EOF&&(++this._tokenCounter,p!==void 0&&this._tokenCounter>p))throw Nt(this._lexer.source,_.start,`Document contains more that ${p} tokens. Parsing aborted.`)}};function ba(p){let _=p.value;return jh(p.kind)+(_!=null?` "${_}"`:"")}function jh(p){return J4(p)?`"${p}"`:p}function _5(p,_){let D=new SyntaxError(p+" ("+_.loc.start.line+":"+_.loc.start.column+")");return Object.assign(D,_)}var E5=_5;function D5(p){let _=[],{startToken:D,endToken:F}=p.loc;for(let x=D;x!==F;x=x.next)x.kind==="Comment"&&_.push({...x,loc:{start:x.start,end:x.end}});return _}var b5={allowLegacyFragmentVariables:!0};function v5(p){if(p?.name==="GraphQLError"){let{message:_,locations:[D]}=p;return E5(_,{loc:{start:D},cause:p})}return p}function N5(p){let _;try{_=m5(p,b5)}catch(D){throw v5(D)}return _.comments=D5(_),_}var T5={parse:N5,astFormat:"graphql",hasPragma:x4,hasIgnorePragma:y4,locStart:Lh,locEnd:Ah},w5={graphql:M4};return o(a)})});var M;(function(e){e[e.Null=0]="Null",e[e.Backspace=8]="Backspace",e[e.Tab=9]="Tab",e[e.LineFeed=10]="LineFeed",e[e.CarriageReturn=13]="CarriageReturn",e[e.Space=32]="Space",e[e.ExclamationMark=33]="ExclamationMark",e[e.DoubleQuote=34]="DoubleQuote",e[e.Hash=35]="Hash",e[e.DollarSign=36]="DollarSign",e[e.PercentSign=37]="PercentSign",e[e.Ampersand=38]="Ampersand",e[e.SingleQuote=39]="SingleQuote",e[e.OpenParen=40]="OpenParen",e[e.CloseParen=41]="CloseParen",e[e.Asterisk=42]="Asterisk",e[e.Plus=43]="Plus",e[e.Comma=44]="Comma",e[e.Dash=45]="Dash",e[e.Period=46]="Period",e[e.Slash=47]="Slash",e[e.Digit0=48]="Digit0",e[e.Digit1=49]="Digit1",e[e.Digit2=50]="Digit2",e[e.Digit3=51]="Digit3",e[e.Digit4=52]="Digit4",e[e.Digit5=53]="Digit5",e[e.Digit6=54]="Digit6",e[e.Digit7=55]="Digit7",e[e.Digit8=56]="Digit8",e[e.Digit9=57]="Digit9",e[e.Colon=58]="Colon",e[e.Semicolon=59]="Semicolon",e[e.LessThan=60]="LessThan",e[e.Equals=61]="Equals",e[e.GreaterThan=62]="GreaterThan",e[e.QuestionMark=63]="QuestionMark",e[e.AtSign=64]="AtSign",e[e.A=65]="A",e[e.B=66]="B",e[e.C=67]="C",e[e.D=68]="D",e[e.E=69]="E",e[e.F=70]="F",e[e.G=71]="G",e[e.H=72]="H",e[e.I=73]="I",e[e.J=74]="J",e[e.K=75]="K",e[e.L=76]="L",e[e.M=77]="M",e[e.N=78]="N",e[e.O=79]="O",e[e.P=80]="P",e[e.Q=81]="Q",e[e.R=82]="R",e[e.S=83]="S",e[e.T=84]="T",e[e.U=85]="U",e[e.V=86]="V",e[e.W=87]="W",e[e.X=88]="X",e[e.Y=89]="Y",e[e.Z=90]="Z",e[e.OpenSquareBracket=91]="OpenSquareBracket",e[e.Backslash=92]="Backslash",e[e.CloseSquareBracket=93]="CloseSquareBracket",e[e.Caret=94]="Caret",e[e.Underline=95]="Underline",e[e.BackTick=96]="BackTick",e[e.a=97]="a",e[e.b=98]="b",e[e.c=99]="c",e[e.d=100]="d",e[e.e=101]="e",e[e.f=102]="f",e[e.g=103]="g",e[e.h=104]="h",e[e.i=105]="i",e[e.j=106]="j",e[e.k=107]="k",e[e.l=108]="l",e[e.m=109]="m",e[e.n=110]="n",e[e.o=111]="o",e[e.p=112]="p",e[e.q=113]="q",e[e.r=114]="r",e[e.s=115]="s",e[e.t=116]="t",e[e.u=117]="u",e[e.v=118]="v",e[e.w=119]="w",e[e.x=120]="x",e[e.y=121]="y",e[e.z=122]="z",e[e.OpenCurlyBrace=123]="OpenCurlyBrace",e[e.Pipe=124]="Pipe",e[e.CloseCurlyBrace=125]="CloseCurlyBrace",e[e.Tilde=126]="Tilde",e[e.NoBreakSpace=160]="NoBreakSpace",e[e.U_Combining_Grave_Accent=768]="U_Combining_Grave_Accent",e[e.U_Combining_Acute_Accent=769]="U_Combining_Acute_Accent",e[e.U_Combining_Circumflex_Accent=770]="U_Combining_Circumflex_Accent",e[e.U_Combining_Tilde=771]="U_Combining_Tilde",e[e.U_Combining_Macron=772]="U_Combining_Macron",e[e.U_Combining_Overline=773]="U_Combining_Overline",e[e.U_Combining_Breve=774]="U_Combining_Breve",e[e.U_Combining_Dot_Above=775]="U_Combining_Dot_Above",e[e.U_Combining_Diaeresis=776]="U_Combining_Diaeresis",e[e.U_Combining_Hook_Above=777]="U_Combining_Hook_Above",e[e.U_Combining_Ring_Above=778]="U_Combining_Ring_Above",e[e.U_Combining_Double_Acute_Accent=779]="U_Combining_Double_Acute_Accent",e[e.U_Combining_Caron=780]="U_Combining_Caron",e[e.U_Combining_Vertical_Line_Above=781]="U_Combining_Vertical_Line_Above",e[e.U_Combining_Double_Vertical_Line_Above=782]="U_Combining_Double_Vertical_Line_Above",e[e.U_Combining_Double_Grave_Accent=783]="U_Combining_Double_Grave_Accent",e[e.U_Combining_Candrabindu=784]="U_Combining_Candrabindu",e[e.U_Combining_Inverted_Breve=785]="U_Combining_Inverted_Breve",e[e.U_Combining_Turned_Comma_Above=786]="U_Combining_Turned_Comma_Above",e[e.U_Combining_Comma_Above=787]="U_Combining_Comma_Above",e[e.U_Combining_Reversed_Comma_Above=788]="U_Combining_Reversed_Comma_Above",e[e.U_Combining_Comma_Above_Right=789]="U_Combining_Comma_Above_Right",e[e.U_Combining_Grave_Accent_Below=790]="U_Combining_Grave_Accent_Below",e[e.U_Combining_Acute_Accent_Below=791]="U_Combining_Acute_Accent_Below",e[e.U_Combining_Left_Tack_Below=792]="U_Combining_Left_Tack_Below",e[e.U_Combining_Right_Tack_Below=793]="U_Combining_Right_Tack_Below",e[e.U_Combining_Left_Angle_Above=794]="U_Combining_Left_Angle_Above",e[e.U_Combining_Horn=795]="U_Combining_Horn",e[e.U_Combining_Left_Half_Ring_Below=796]="U_Combining_Left_Half_Ring_Below",e[e.U_Combining_Up_Tack_Below=797]="U_Combining_Up_Tack_Below",e[e.U_Combining_Down_Tack_Below=798]="U_Combining_Down_Tack_Below",e[e.U_Combining_Plus_Sign_Below=799]="U_Combining_Plus_Sign_Below",e[e.U_Combining_Minus_Sign_Below=800]="U_Combining_Minus_Sign_Below",e[e.U_Combining_Palatalized_Hook_Below=801]="U_Combining_Palatalized_Hook_Below",e[e.U_Combining_Retroflex_Hook_Below=802]="U_Combining_Retroflex_Hook_Below",e[e.U_Combining_Dot_Below=803]="U_Combining_Dot_Below",e[e.U_Combining_Diaeresis_Below=804]="U_Combining_Diaeresis_Below",e[e.U_Combining_Ring_Below=805]="U_Combining_Ring_Below",e[e.U_Combining_Comma_Below=806]="U_Combining_Comma_Below",e[e.U_Combining_Cedilla=807]="U_Combining_Cedilla",e[e.U_Combining_Ogonek=808]="U_Combining_Ogonek",e[e.U_Combining_Vertical_Line_Below=809]="U_Combining_Vertical_Line_Below",e[e.U_Combining_Bridge_Below=810]="U_Combining_Bridge_Below",e[e.U_Combining_Inverted_Double_Arch_Below=811]="U_Combining_Inverted_Double_Arch_Below",e[e.U_Combining_Caron_Below=812]="U_Combining_Caron_Below",e[e.U_Combining_Circumflex_Accent_Below=813]="U_Combining_Circumflex_Accent_Below",e[e.U_Combining_Breve_Below=814]="U_Combining_Breve_Below",e[e.U_Combining_Inverted_Breve_Below=815]="U_Combining_Inverted_Breve_Below",e[e.U_Combining_Tilde_Below=816]="U_Combining_Tilde_Below",e[e.U_Combining_Macron_Below=817]="U_Combining_Macron_Below",e[e.U_Combining_Low_Line=818]="U_Combining_Low_Line",e[e.U_Combining_Double_Low_Line=819]="U_Combining_Double_Low_Line",e[e.U_Combining_Tilde_Overlay=820]="U_Combining_Tilde_Overlay",e[e.U_Combining_Short_Stroke_Overlay=821]="U_Combining_Short_Stroke_Overlay",e[e.U_Combining_Long_Stroke_Overlay=822]="U_Combining_Long_Stroke_Overlay",e[e.U_Combining_Short_Solidus_Overlay=823]="U_Combining_Short_Solidus_Overlay",e[e.U_Combining_Long_Solidus_Overlay=824]="U_Combining_Long_Solidus_Overlay",e[e.U_Combining_Right_Half_Ring_Below=825]="U_Combining_Right_Half_Ring_Below",e[e.U_Combining_Inverted_Bridge_Below=826]="U_Combining_Inverted_Bridge_Below",e[e.U_Combining_Square_Below=827]="U_Combining_Square_Below",e[e.U_Combining_Seagull_Below=828]="U_Combining_Seagull_Below",e[e.U_Combining_X_Above=829]="U_Combining_X_Above",e[e.U_Combining_Vertical_Tilde=830]="U_Combining_Vertical_Tilde",e[e.U_Combining_Double_Overline=831]="U_Combining_Double_Overline",e[e.U_Combining_Grave_Tone_Mark=832]="U_Combining_Grave_Tone_Mark",e[e.U_Combining_Acute_Tone_Mark=833]="U_Combining_Acute_Tone_Mark",e[e.U_Combining_Greek_Perispomeni=834]="U_Combining_Greek_Perispomeni",e[e.U_Combining_Greek_Koronis=835]="U_Combining_Greek_Koronis",e[e.U_Combining_Greek_Dialytika_Tonos=836]="U_Combining_Greek_Dialytika_Tonos",e[e.U_Combining_Greek_Ypogegrammeni=837]="U_Combining_Greek_Ypogegrammeni",e[e.U_Combining_Bridge_Above=838]="U_Combining_Bridge_Above",e[e.U_Combining_Equals_Sign_Below=839]="U_Combining_Equals_Sign_Below",e[e.U_Combining_Double_Vertical_Line_Below=840]="U_Combining_Double_Vertical_Line_Below",e[e.U_Combining_Left_Angle_Below=841]="U_Combining_Left_Angle_Below",e[e.U_Combining_Not_Tilde_Above=842]="U_Combining_Not_Tilde_Above",e[e.U_Combining_Homothetic_Above=843]="U_Combining_Homothetic_Above",e[e.U_Combining_Almost_Equal_To_Above=844]="U_Combining_Almost_Equal_To_Above",e[e.U_Combining_Left_Right_Arrow_Below=845]="U_Combining_Left_Right_Arrow_Below",e[e.U_Combining_Upwards_Arrow_Below=846]="U_Combining_Upwards_Arrow_Below",e[e.U_Combining_Grapheme_Joiner=847]="U_Combining_Grapheme_Joiner",e[e.U_Combining_Right_Arrowhead_Above=848]="U_Combining_Right_Arrowhead_Above",e[e.U_Combining_Left_Half_Ring_Above=849]="U_Combining_Left_Half_Ring_Above",e[e.U_Combining_Fermata=850]="U_Combining_Fermata",e[e.U_Combining_X_Below=851]="U_Combining_X_Below",e[e.U_Combining_Left_Arrowhead_Below=852]="U_Combining_Left_Arrowhead_Below",e[e.U_Combining_Right_Arrowhead_Below=853]="U_Combining_Right_Arrowhead_Below",e[e.U_Combining_Right_Arrowhead_And_Up_Arrowhead_Below=854]="U_Combining_Right_Arrowhead_And_Up_Arrowhead_Below",e[e.U_Combining_Right_Half_Ring_Above=855]="U_Combining_Right_Half_Ring_Above",e[e.U_Combining_Dot_Above_Right=856]="U_Combining_Dot_Above_Right",e[e.U_Combining_Asterisk_Below=857]="U_Combining_Asterisk_Below",e[e.U_Combining_Double_Ring_Below=858]="U_Combining_Double_Ring_Below",e[e.U_Combining_Zigzag_Above=859]="U_Combining_Zigzag_Above",e[e.U_Combining_Double_Breve_Below=860]="U_Combining_Double_Breve_Below",e[e.U_Combining_Double_Breve=861]="U_Combining_Double_Breve",e[e.U_Combining_Double_Macron=862]="U_Combining_Double_Macron",e[e.U_Combining_Double_Macron_Below=863]="U_Combining_Double_Macron_Below",e[e.U_Combining_Double_Tilde=864]="U_Combining_Double_Tilde",e[e.U_Combining_Double_Inverted_Breve=865]="U_Combining_Double_Inverted_Breve",e[e.U_Combining_Double_Rightwards_Arrow_Below=866]="U_Combining_Double_Rightwards_Arrow_Below",e[e.U_Combining_Latin_Small_Letter_A=867]="U_Combining_Latin_Small_Letter_A",e[e.U_Combining_Latin_Small_Letter_E=868]="U_Combining_Latin_Small_Letter_E",e[e.U_Combining_Latin_Small_Letter_I=869]="U_Combining_Latin_Small_Letter_I",e[e.U_Combining_Latin_Small_Letter_O=870]="U_Combining_Latin_Small_Letter_O",e[e.U_Combining_Latin_Small_Letter_U=871]="U_Combining_Latin_Small_Letter_U",e[e.U_Combining_Latin_Small_Letter_C=872]="U_Combining_Latin_Small_Letter_C",e[e.U_Combining_Latin_Small_Letter_D=873]="U_Combining_Latin_Small_Letter_D",e[e.U_Combining_Latin_Small_Letter_H=874]="U_Combining_Latin_Small_Letter_H",e[e.U_Combining_Latin_Small_Letter_M=875]="U_Combining_Latin_Small_Letter_M",e[e.U_Combining_Latin_Small_Letter_R=876]="U_Combining_Latin_Small_Letter_R",e[e.U_Combining_Latin_Small_Letter_T=877]="U_Combining_Latin_Small_Letter_T",e[e.U_Combining_Latin_Small_Letter_V=878]="U_Combining_Latin_Small_Letter_V",e[e.U_Combining_Latin_Small_Letter_X=879]="U_Combining_Latin_Small_Letter_X",e[e.LINE_SEPARATOR=8232]="LINE_SEPARATOR",e[e.PARAGRAPH_SEPARATOR=8233]="PARAGRAPH_SEPARATOR",e[e.NEXT_LINE=133]="NEXT_LINE",e[e.U_CIRCUMFLEX=94]="U_CIRCUMFLEX",e[e.U_GRAVE_ACCENT=96]="U_GRAVE_ACCENT",e[e.U_DIAERESIS=168]="U_DIAERESIS",e[e.U_MACRON=175]="U_MACRON",e[e.U_ACUTE_ACCENT=180]="U_ACUTE_ACCENT",e[e.U_CEDILLA=184]="U_CEDILLA",e[e.U_MODIFIER_LETTER_LEFT_ARROWHEAD=706]="U_MODIFIER_LETTER_LEFT_ARROWHEAD",e[e.U_MODIFIER_LETTER_RIGHT_ARROWHEAD=707]="U_MODIFIER_LETTER_RIGHT_ARROWHEAD",e[e.U_MODIFIER_LETTER_UP_ARROWHEAD=708]="U_MODIFIER_LETTER_UP_ARROWHEAD",e[e.U_MODIFIER_LETTER_DOWN_ARROWHEAD=709]="U_MODIFIER_LETTER_DOWN_ARROWHEAD",e[e.U_MODIFIER_LETTER_CENTRED_RIGHT_HALF_RING=722]="U_MODIFIER_LETTER_CENTRED_RIGHT_HALF_RING",e[e.U_MODIFIER_LETTER_CENTRED_LEFT_HALF_RING=723]="U_MODIFIER_LETTER_CENTRED_LEFT_HALF_RING",e[e.U_MODIFIER_LETTER_UP_TACK=724]="U_MODIFIER_LETTER_UP_TACK",e[e.U_MODIFIER_LETTER_DOWN_TACK=725]="U_MODIFIER_LETTER_DOWN_TACK",e[e.U_MODIFIER_LETTER_PLUS_SIGN=726]="U_MODIFIER_LETTER_PLUS_SIGN",e[e.U_MODIFIER_LETTER_MINUS_SIGN=727]="U_MODIFIER_LETTER_MINUS_SIGN",e[e.U_BREVE=728]="U_BREVE",e[e.U_DOT_ABOVE=729]="U_DOT_ABOVE",e[e.U_RING_ABOVE=730]="U_RING_ABOVE",e[e.U_OGONEK=731]="U_OGONEK",e[e.U_SMALL_TILDE=732]="U_SMALL_TILDE",e[e.U_DOUBLE_ACUTE_ACCENT=733]="U_DOUBLE_ACUTE_ACCENT",e[e.U_MODIFIER_LETTER_RHOTIC_HOOK=734]="U_MODIFIER_LETTER_RHOTIC_HOOK",e[e.U_MODIFIER_LETTER_CROSS_ACCENT=735]="U_MODIFIER_LETTER_CROSS_ACCENT",e[e.U_MODIFIER_LETTER_EXTRA_HIGH_TONE_BAR=741]="U_MODIFIER_LETTER_EXTRA_HIGH_TONE_BAR",e[e.U_MODIFIER_LETTER_HIGH_TONE_BAR=742]="U_MODIFIER_LETTER_HIGH_TONE_BAR",e[e.U_MODIFIER_LETTER_MID_TONE_BAR=743]="U_MODIFIER_LETTER_MID_TONE_BAR",e[e.U_MODIFIER_LETTER_LOW_TONE_BAR=744]="U_MODIFIER_LETTER_LOW_TONE_BAR",e[e.U_MODIFIER_LETTER_EXTRA_LOW_TONE_BAR=745]="U_MODIFIER_LETTER_EXTRA_LOW_TONE_BAR",e[e.U_MODIFIER_LETTER_YIN_DEPARTING_TONE_MARK=746]="U_MODIFIER_LETTER_YIN_DEPARTING_TONE_MARK",e[e.U_MODIFIER_LETTER_YANG_DEPARTING_TONE_MARK=747]="U_MODIFIER_LETTER_YANG_DEPARTING_TONE_MARK",e[e.U_MODIFIER_LETTER_UNASPIRATED=749]="U_MODIFIER_LETTER_UNASPIRATED",e[e.U_MODIFIER_LETTER_LOW_DOWN_ARROWHEAD=751]="U_MODIFIER_LETTER_LOW_DOWN_ARROWHEAD",e[e.U_MODIFIER_LETTER_LOW_UP_ARROWHEAD=752]="U_MODIFIER_LETTER_LOW_UP_ARROWHEAD",e[e.U_MODIFIER_LETTER_LOW_LEFT_ARROWHEAD=753]="U_MODIFIER_LETTER_LOW_LEFT_ARROWHEAD",e[e.U_MODIFIER_LETTER_LOW_RIGHT_ARROWHEAD=754]="U_MODIFIER_LETTER_LOW_RIGHT_ARROWHEAD",e[e.U_MODIFIER_LETTER_LOW_RING=755]="U_MODIFIER_LETTER_LOW_RING",e[e.U_MODIFIER_LETTER_MIDDLE_GRAVE_ACCENT=756]="U_MODIFIER_LETTER_MIDDLE_GRAVE_ACCENT",e[e.U_MODIFIER_LETTER_MIDDLE_DOUBLE_GRAVE_ACCENT=757]="U_MODIFIER_LETTER_MIDDLE_DOUBLE_GRAVE_ACCENT",e[e.U_MODIFIER_LETTER_MIDDLE_DOUBLE_ACUTE_ACCENT=758]="U_MODIFIER_LETTER_MIDDLE_DOUBLE_ACUTE_ACCENT",e[e.U_MODIFIER_LETTER_LOW_TILDE=759]="U_MODIFIER_LETTER_LOW_TILDE",e[e.U_MODIFIER_LETTER_RAISED_COLON=760]="U_MODIFIER_LETTER_RAISED_COLON",e[e.U_MODIFIER_LETTER_BEGIN_HIGH_TONE=761]="U_MODIFIER_LETTER_BEGIN_HIGH_TONE",e[e.U_MODIFIER_LETTER_END_HIGH_TONE=762]="U_MODIFIER_LETTER_END_HIGH_TONE",e[e.U_MODIFIER_LETTER_BEGIN_LOW_TONE=763]="U_MODIFIER_LETTER_BEGIN_LOW_TONE",e[e.U_MODIFIER_LETTER_END_LOW_TONE=764]="U_MODIFIER_LETTER_END_LOW_TONE",e[e.U_MODIFIER_LETTER_SHELF=765]="U_MODIFIER_LETTER_SHELF",e[e.U_MODIFIER_LETTER_OPEN_SHELF=766]="U_MODIFIER_LETTER_OPEN_SHELF",e[e.U_MODIFIER_LETTER_LOW_LEFT_ARROW=767]="U_MODIFIER_LETTER_LOW_LEFT_ARROW",e[e.U_GREEK_LOWER_NUMERAL_SIGN=885]="U_GREEK_LOWER_NUMERAL_SIGN",e[e.U_GREEK_TONOS=900]="U_GREEK_TONOS",e[e.U_GREEK_DIALYTIKA_TONOS=901]="U_GREEK_DIALYTIKA_TONOS",e[e.U_GREEK_KORONIS=8125]="U_GREEK_KORONIS",e[e.U_GREEK_PSILI=8127]="U_GREEK_PSILI",e[e.U_GREEK_PERISPOMENI=8128]="U_GREEK_PERISPOMENI",e[e.U_GREEK_DIALYTIKA_AND_PERISPOMENI=8129]="U_GREEK_DIALYTIKA_AND_PERISPOMENI",e[e.U_GREEK_PSILI_AND_VARIA=8141]="U_GREEK_PSILI_AND_VARIA",e[e.U_GREEK_PSILI_AND_OXIA=8142]="U_GREEK_PSILI_AND_OXIA",e[e.U_GREEK_PSILI_AND_PERISPOMENI=8143]="U_GREEK_PSILI_AND_PERISPOMENI",e[e.U_GREEK_DASIA_AND_VARIA=8157]="U_GREEK_DASIA_AND_VARIA",e[e.U_GREEK_DASIA_AND_OXIA=8158]="U_GREEK_DASIA_AND_OXIA",e[e.U_GREEK_DASIA_AND_PERISPOMENI=8159]="U_GREEK_DASIA_AND_PERISPOMENI",e[e.U_GREEK_DIALYTIKA_AND_VARIA=8173]="U_GREEK_DIALYTIKA_AND_VARIA",e[e.U_GREEK_DIALYTIKA_AND_OXIA=8174]="U_GREEK_DIALYTIKA_AND_OXIA",e[e.U_GREEK_VARIA=8175]="U_GREEK_VARIA",e[e.U_GREEK_OXIA=8189]="U_GREEK_OXIA",e[e.U_GREEK_DASIA=8190]="U_GREEK_DASIA",e[e.U_IDEOGRAPHIC_FULL_STOP=12290]="U_IDEOGRAPHIC_FULL_STOP",e[e.U_LEFT_CORNER_BRACKET=12300]="U_LEFT_CORNER_BRACKET",e[e.U_RIGHT_CORNER_BRACKET=12301]="U_RIGHT_CORNER_BRACKET",e[e.U_LEFT_BLACK_LENTICULAR_BRACKET=12304]="U_LEFT_BLACK_LENTICULAR_BRACKET",e[e.U_RIGHT_BLACK_LENTICULAR_BRACKET=12305]="U_RIGHT_BLACK_LENTICULAR_BRACKET",e[e.U_OVERLINE=8254]="U_OVERLINE",e[e.UTF8_BOM=65279]="UTF8_BOM",e[e.U_FULLWIDTH_SEMICOLON=65307]="U_FULLWIDTH_SEMICOLON",e[e.U_FULLWIDTH_COMMA=65292]="U_FULLWIDTH_COMMA"})(M||(M={}));var Wl=class{constructor(){this.listeners=[],this.unexpectedErrorHandler=function(t){setTimeout(()=>{throw t.stack?lo.isErrorNoTelemetry(t)?new lo(t.message+`
|
|
67
|
+
spurious results.`)}}return!1},Qh=class{constructor(p,E="GraphQL request",D={line:1,column:1}){typeof p=="string"||zl(!1,`Body must be a string. Received: ${zh(p)}.`),this.body=p,this.name=E,this.locationOffset=D,this.locationOffset.line>0||zl(!1,"line in locationOffset is 1-indexed and must be positive."),this.locationOffset.column>0||zl(!1,"column in locationOffset is 1-indexed and must be positive.")}get[Symbol.toStringTag](){return"Source"}};function h5(p){return f5(p,Qh)}function p5(p,E){let D=new d5(p,E),x=D.parseDocument();return Object.defineProperty(x,"tokenCount",{enumerable:!1,value:D.tokenCount}),x}var d5=class{constructor(p,E={}){let D=h5(p)?p:new Qh(p);this._lexer=new Q4(D),this._options=E,this._tokenCounter=0}get tokenCount(){return this._tokenCounter}parseName(){let p=this.expectToken(H.NAME);return this.node(p,{kind:Ee.NAME,value:p.value})}parseDocument(){return this.node(this._lexer.token,{kind:Ee.DOCUMENT,definitions:this.many(H.SOF,this.parseDefinition,H.EOF)})}parseDefinition(){if(this.peek(H.BRACE_L))return this.parseOperationDefinition();let p=this.peekDescription(),E=p?this._lexer.lookahead():this._lexer.token;if(E.kind===H.NAME){switch(E.value){case"schema":return this.parseSchemaDefinition();case"scalar":return this.parseScalarTypeDefinition();case"type":return this.parseObjectTypeDefinition();case"interface":return this.parseInterfaceTypeDefinition();case"union":return this.parseUnionTypeDefinition();case"enum":return this.parseEnumTypeDefinition();case"input":return this.parseInputObjectTypeDefinition();case"directive":return this.parseDirectiveDefinition()}if(p)throw yt(this._lexer.source,this._lexer.token.start,"Unexpected description, descriptions are supported only on type definitions.");switch(E.value){case"query":case"mutation":case"subscription":return this.parseOperationDefinition();case"fragment":return this.parseFragmentDefinition();case"extend":return this.parseTypeSystemExtension()}}throw this.unexpected(E)}parseOperationDefinition(){let p=this._lexer.token;if(this.peek(H.BRACE_L))return this.node(p,{kind:Ee.OPERATION_DEFINITION,operation:ki.QUERY,name:void 0,variableDefinitions:[],directives:[],selectionSet:this.parseSelectionSet()});let E=this.parseOperationType(),D;return this.peek(H.NAME)&&(D=this.parseName()),this.node(p,{kind:Ee.OPERATION_DEFINITION,operation:E,name:D,variableDefinitions:this.parseVariableDefinitions(),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseOperationType(){let p=this.expectToken(H.NAME);switch(p.value){case"query":return ki.QUERY;case"mutation":return ki.MUTATION;case"subscription":return ki.SUBSCRIPTION}throw this.unexpected(p)}parseVariableDefinitions(){return this.optionalMany(H.PAREN_L,this.parseVariableDefinition,H.PAREN_R)}parseVariableDefinition(){return this.node(this._lexer.token,{kind:Ee.VARIABLE_DEFINITION,variable:this.parseVariable(),type:(this.expectToken(H.COLON),this.parseTypeReference()),defaultValue:this.expectOptionalToken(H.EQUALS)?this.parseConstValueLiteral():void 0,directives:this.parseConstDirectives()})}parseVariable(){let p=this._lexer.token;return this.expectToken(H.DOLLAR),this.node(p,{kind:Ee.VARIABLE,name:this.parseName()})}parseSelectionSet(){return this.node(this._lexer.token,{kind:Ee.SELECTION_SET,selections:this.many(H.BRACE_L,this.parseSelection,H.BRACE_R)})}parseSelection(){return this.peek(H.SPREAD)?this.parseFragment():this.parseField()}parseField(){let p=this._lexer.token,E=this.parseName(),D,x;return this.expectOptionalToken(H.COLON)?(D=E,x=this.parseName()):x=E,this.node(p,{kind:Ee.FIELD,alias:D,name:x,arguments:this.parseArguments(!1),directives:this.parseDirectives(!1),selectionSet:this.peek(H.BRACE_L)?this.parseSelectionSet():void 0})}parseArguments(p){let E=p?this.parseConstArgument:this.parseArgument;return this.optionalMany(H.PAREN_L,E,H.PAREN_R)}parseArgument(p=!1){let E=this._lexer.token,D=this.parseName();return this.expectToken(H.COLON),this.node(E,{kind:Ee.ARGUMENT,name:D,value:this.parseValueLiteral(p)})}parseConstArgument(){return this.parseArgument(!0)}parseFragment(){let p=this._lexer.token;this.expectToken(H.SPREAD);let E=this.expectOptionalKeyword("on");return!E&&this.peek(H.NAME)?this.node(p,{kind:Ee.FRAGMENT_SPREAD,name:this.parseFragmentName(),directives:this.parseDirectives(!1)}):this.node(p,{kind:Ee.INLINE_FRAGMENT,typeCondition:E?this.parseNamedType():void 0,directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseFragmentDefinition(){let p=this._lexer.token;return this.expectKeyword("fragment"),this._options.allowLegacyFragmentVariables===!0?this.node(p,{kind:Ee.FRAGMENT_DEFINITION,name:this.parseFragmentName(),variableDefinitions:this.parseVariableDefinitions(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()}):this.node(p,{kind:Ee.FRAGMENT_DEFINITION,name:this.parseFragmentName(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseFragmentName(){if(this._lexer.token.value==="on")throw this.unexpected();return this.parseName()}parseValueLiteral(p){let E=this._lexer.token;switch(E.kind){case H.BRACKET_L:return this.parseList(p);case H.BRACE_L:return this.parseObject(p);case H.INT:return this.advanceLexer(),this.node(E,{kind:Ee.INT,value:E.value});case H.FLOAT:return this.advanceLexer(),this.node(E,{kind:Ee.FLOAT,value:E.value});case H.STRING:case H.BLOCK_STRING:return this.parseStringLiteral();case H.NAME:switch(this.advanceLexer(),E.value){case"true":return this.node(E,{kind:Ee.BOOLEAN,value:!0});case"false":return this.node(E,{kind:Ee.BOOLEAN,value:!1});case"null":return this.node(E,{kind:Ee.NULL});default:return this.node(E,{kind:Ee.ENUM,value:E.value})}case H.DOLLAR:if(p)if(this.expectToken(H.DOLLAR),this._lexer.token.kind===H.NAME){let D=this._lexer.token.value;throw yt(this._lexer.source,E.start,`Unexpected variable "$${D}" in constant value.`)}else throw this.unexpected(E);return this.parseVariable();default:throw this.unexpected()}}parseConstValueLiteral(){return this.parseValueLiteral(!0)}parseStringLiteral(){let p=this._lexer.token;return this.advanceLexer(),this.node(p,{kind:Ee.STRING,value:p.value,block:p.kind===H.BLOCK_STRING})}parseList(p){let E=()=>this.parseValueLiteral(p);return this.node(this._lexer.token,{kind:Ee.LIST,values:this.any(H.BRACKET_L,E,H.BRACKET_R)})}parseObject(p){let E=()=>this.parseObjectField(p);return this.node(this._lexer.token,{kind:Ee.OBJECT,fields:this.any(H.BRACE_L,E,H.BRACE_R)})}parseObjectField(p){let E=this._lexer.token,D=this.parseName();return this.expectToken(H.COLON),this.node(E,{kind:Ee.OBJECT_FIELD,name:D,value:this.parseValueLiteral(p)})}parseDirectives(p){let E=[];for(;this.peek(H.AT);)E.push(this.parseDirective(p));return E}parseConstDirectives(){return this.parseDirectives(!0)}parseDirective(p){let E=this._lexer.token;return this.expectToken(H.AT),this.node(E,{kind:Ee.DIRECTIVE,name:this.parseName(),arguments:this.parseArguments(p)})}parseTypeReference(){let p=this._lexer.token,E;if(this.expectOptionalToken(H.BRACKET_L)){let D=this.parseTypeReference();this.expectToken(H.BRACKET_R),E=this.node(p,{kind:Ee.LIST_TYPE,type:D})}else E=this.parseNamedType();return this.expectOptionalToken(H.BANG)?this.node(p,{kind:Ee.NON_NULL_TYPE,type:E}):E}parseNamedType(){return this.node(this._lexer.token,{kind:Ee.NAMED_TYPE,name:this.parseName()})}peekDescription(){return this.peek(H.STRING)||this.peek(H.BLOCK_STRING)}parseDescription(){if(this.peekDescription())return this.parseStringLiteral()}parseSchemaDefinition(){let p=this._lexer.token,E=this.parseDescription();this.expectKeyword("schema");let D=this.parseConstDirectives(),x=this.many(H.BRACE_L,this.parseOperationTypeDefinition,H.BRACE_R);return this.node(p,{kind:Ee.SCHEMA_DEFINITION,description:E,directives:D,operationTypes:x})}parseOperationTypeDefinition(){let p=this._lexer.token,E=this.parseOperationType();this.expectToken(H.COLON);let D=this.parseNamedType();return this.node(p,{kind:Ee.OPERATION_TYPE_DEFINITION,operation:E,type:D})}parseScalarTypeDefinition(){let p=this._lexer.token,E=this.parseDescription();this.expectKeyword("scalar");let D=this.parseName(),x=this.parseConstDirectives();return this.node(p,{kind:Ee.SCALAR_TYPE_DEFINITION,description:E,name:D,directives:x})}parseObjectTypeDefinition(){let p=this._lexer.token,E=this.parseDescription();this.expectKeyword("type");let D=this.parseName(),x=this.parseImplementsInterfaces(),N=this.parseConstDirectives(),$=this.parseFieldsDefinition();return this.node(p,{kind:Ee.OBJECT_TYPE_DEFINITION,description:E,name:D,interfaces:x,directives:N,fields:$})}parseImplementsInterfaces(){return this.expectOptionalKeyword("implements")?this.delimitedMany(H.AMP,this.parseNamedType):[]}parseFieldsDefinition(){return this.optionalMany(H.BRACE_L,this.parseFieldDefinition,H.BRACE_R)}parseFieldDefinition(){let p=this._lexer.token,E=this.parseDescription(),D=this.parseName(),x=this.parseArgumentDefs();this.expectToken(H.COLON);let N=this.parseTypeReference(),$=this.parseConstDirectives();return this.node(p,{kind:Ee.FIELD_DEFINITION,description:E,name:D,arguments:x,type:N,directives:$})}parseArgumentDefs(){return this.optionalMany(H.PAREN_L,this.parseInputValueDef,H.PAREN_R)}parseInputValueDef(){let p=this._lexer.token,E=this.parseDescription(),D=this.parseName();this.expectToken(H.COLON);let x=this.parseTypeReference(),N;this.expectOptionalToken(H.EQUALS)&&(N=this.parseConstValueLiteral());let $=this.parseConstDirectives();return this.node(p,{kind:Ee.INPUT_VALUE_DEFINITION,description:E,name:D,type:x,defaultValue:N,directives:$})}parseInterfaceTypeDefinition(){let p=this._lexer.token,E=this.parseDescription();this.expectKeyword("interface");let D=this.parseName(),x=this.parseImplementsInterfaces(),N=this.parseConstDirectives(),$=this.parseFieldsDefinition();return this.node(p,{kind:Ee.INTERFACE_TYPE_DEFINITION,description:E,name:D,interfaces:x,directives:N,fields:$})}parseUnionTypeDefinition(){let p=this._lexer.token,E=this.parseDescription();this.expectKeyword("union");let D=this.parseName(),x=this.parseConstDirectives(),N=this.parseUnionMemberTypes();return this.node(p,{kind:Ee.UNION_TYPE_DEFINITION,description:E,name:D,directives:x,types:N})}parseUnionMemberTypes(){return this.expectOptionalToken(H.EQUALS)?this.delimitedMany(H.PIPE,this.parseNamedType):[]}parseEnumTypeDefinition(){let p=this._lexer.token,E=this.parseDescription();this.expectKeyword("enum");let D=this.parseName(),x=this.parseConstDirectives(),N=this.parseEnumValuesDefinition();return this.node(p,{kind:Ee.ENUM_TYPE_DEFINITION,description:E,name:D,directives:x,values:N})}parseEnumValuesDefinition(){return this.optionalMany(H.BRACE_L,this.parseEnumValueDefinition,H.BRACE_R)}parseEnumValueDefinition(){let p=this._lexer.token,E=this.parseDescription(),D=this.parseEnumValueName(),x=this.parseConstDirectives();return this.node(p,{kind:Ee.ENUM_VALUE_DEFINITION,description:E,name:D,directives:x})}parseEnumValueName(){if(this._lexer.token.value==="true"||this._lexer.token.value==="false"||this._lexer.token.value==="null")throw yt(this._lexer.source,this._lexer.token.start,`${Da(this._lexer.token)} is reserved and cannot be used for an enum value.`);return this.parseName()}parseInputObjectTypeDefinition(){let p=this._lexer.token,E=this.parseDescription();this.expectKeyword("input");let D=this.parseName(),x=this.parseConstDirectives(),N=this.parseInputFieldsDefinition();return this.node(p,{kind:Ee.INPUT_OBJECT_TYPE_DEFINITION,description:E,name:D,directives:x,fields:N})}parseInputFieldsDefinition(){return this.optionalMany(H.BRACE_L,this.parseInputValueDef,H.BRACE_R)}parseTypeSystemExtension(){let p=this._lexer.lookahead();if(p.kind===H.NAME)switch(p.value){case"schema":return this.parseSchemaExtension();case"scalar":return this.parseScalarTypeExtension();case"type":return this.parseObjectTypeExtension();case"interface":return this.parseInterfaceTypeExtension();case"union":return this.parseUnionTypeExtension();case"enum":return this.parseEnumTypeExtension();case"input":return this.parseInputObjectTypeExtension()}throw this.unexpected(p)}parseSchemaExtension(){let p=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("schema");let E=this.parseConstDirectives(),D=this.optionalMany(H.BRACE_L,this.parseOperationTypeDefinition,H.BRACE_R);if(E.length===0&&D.length===0)throw this.unexpected();return this.node(p,{kind:Ee.SCHEMA_EXTENSION,directives:E,operationTypes:D})}parseScalarTypeExtension(){let p=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("scalar");let E=this.parseName(),D=this.parseConstDirectives();if(D.length===0)throw this.unexpected();return this.node(p,{kind:Ee.SCALAR_TYPE_EXTENSION,name:E,directives:D})}parseObjectTypeExtension(){let p=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("type");let E=this.parseName(),D=this.parseImplementsInterfaces(),x=this.parseConstDirectives(),N=this.parseFieldsDefinition();if(D.length===0&&x.length===0&&N.length===0)throw this.unexpected();return this.node(p,{kind:Ee.OBJECT_TYPE_EXTENSION,name:E,interfaces:D,directives:x,fields:N})}parseInterfaceTypeExtension(){let p=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("interface");let E=this.parseName(),D=this.parseImplementsInterfaces(),x=this.parseConstDirectives(),N=this.parseFieldsDefinition();if(D.length===0&&x.length===0&&N.length===0)throw this.unexpected();return this.node(p,{kind:Ee.INTERFACE_TYPE_EXTENSION,name:E,interfaces:D,directives:x,fields:N})}parseUnionTypeExtension(){let p=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("union");let E=this.parseName(),D=this.parseConstDirectives(),x=this.parseUnionMemberTypes();if(D.length===0&&x.length===0)throw this.unexpected();return this.node(p,{kind:Ee.UNION_TYPE_EXTENSION,name:E,directives:D,types:x})}parseEnumTypeExtension(){let p=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("enum");let E=this.parseName(),D=this.parseConstDirectives(),x=this.parseEnumValuesDefinition();if(D.length===0&&x.length===0)throw this.unexpected();return this.node(p,{kind:Ee.ENUM_TYPE_EXTENSION,name:E,directives:D,values:x})}parseInputObjectTypeExtension(){let p=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("input");let E=this.parseName(),D=this.parseConstDirectives(),x=this.parseInputFieldsDefinition();if(D.length===0&&x.length===0)throw this.unexpected();return this.node(p,{kind:Ee.INPUT_OBJECT_TYPE_EXTENSION,name:E,directives:D,fields:x})}parseDirectiveDefinition(){let p=this._lexer.token,E=this.parseDescription();this.expectKeyword("directive"),this.expectToken(H.AT);let D=this.parseName(),x=this.parseArgumentDefs(),N=this.expectOptionalKeyword("repeatable");this.expectKeyword("on");let $=this.parseDirectiveLocations();return this.node(p,{kind:Ee.DIRECTIVE_DEFINITION,description:E,name:D,arguments:x,repeatable:N,locations:$})}parseDirectiveLocations(){return this.delimitedMany(H.PIPE,this.parseDirectiveLocation)}parseDirectiveLocation(){let p=this._lexer.token,E=this.parseName();if(Object.prototype.hasOwnProperty.call(Hl,E.value))return E;throw this.unexpected(p)}node(p,E){return this._options.noLocation!==!0&&(E.loc=new Oi(p,this._lexer.lastToken,this._lexer.source)),E}peek(p){return this._lexer.token.kind===p}expectToken(p){let E=this._lexer.token;if(E.kind===p)return this.advanceLexer(),E;throw yt(this._lexer.source,E.start,`Expected ${Yh(p)}, found ${Da(E)}.`)}expectOptionalToken(p){return this._lexer.token.kind===p?(this.advanceLexer(),!0):!1}expectKeyword(p){let E=this._lexer.token;if(E.kind===H.NAME&&E.value===p)this.advanceLexer();else throw yt(this._lexer.source,E.start,`Expected "${p}", found ${Da(E)}.`)}expectOptionalKeyword(p){let E=this._lexer.token;return E.kind===H.NAME&&E.value===p?(this.advanceLexer(),!0):!1}unexpected(p){let E=p??this._lexer.token;return yt(this._lexer.source,E.start,`Unexpected ${Da(E)}.`)}any(p,E,D){this.expectToken(p);let x=[];for(;!this.expectOptionalToken(D);)x.push(E.call(this));return x}optionalMany(p,E,D){if(this.expectOptionalToken(p)){let x=[];do x.push(E.call(this));while(!this.expectOptionalToken(D));return x}return[]}many(p,E,D){this.expectToken(p);let x=[];do x.push(E.call(this));while(!this.expectOptionalToken(D));return x}delimitedMany(p,E){this.expectOptionalToken(p);let D=[];do D.push(E.call(this));while(this.expectOptionalToken(p));return D}advanceLexer(){let{maxTokens:p}=this._options,E=this._lexer.advance();if(E.kind!==H.EOF&&(++this._tokenCounter,p!==void 0&&this._tokenCounter>p))throw yt(this._lexer.source,E.start,`Document contains more that ${p} tokens. Parsing aborted.`)}};function Da(p){let E=p.value;return Yh(p.kind)+(E!=null?` "${E}"`:"")}function Yh(p){return Y4(p)?`"${p}"`:p}function m5(p,E){let D=new SyntaxError(p+" ("+E.loc.start.line+":"+E.loc.start.column+")");return Object.assign(D,E)}var g5=m5;function _5(p){let E=[],{startToken:D,endToken:x}=p.loc;for(let N=D;N!==x;N=N.next)N.kind==="Comment"&&E.push({...N,loc:{start:N.start,end:N.end}});return E}var E5={allowLegacyFragmentVariables:!0};function D5(p){if(p?.name==="GraphQLError"){let{message:E,locations:[D]}=p;return g5(E,{loc:{start:D},cause:p})}return p}function b5(p){let E;try{E=p5(p,E5)}catch(D){throw D5(D)}return E.comments=_5(E),E}var v5={parse:b5,astFormat:"graphql",hasPragma:y4,locStart:kh,locEnd:Mh},N5={graphql:O4};return o(a)})});var O;(function(e){e[e.Null=0]="Null",e[e.Backspace=8]="Backspace",e[e.Tab=9]="Tab",e[e.LineFeed=10]="LineFeed",e[e.CarriageReturn=13]="CarriageReturn",e[e.Space=32]="Space",e[e.ExclamationMark=33]="ExclamationMark",e[e.DoubleQuote=34]="DoubleQuote",e[e.Hash=35]="Hash",e[e.DollarSign=36]="DollarSign",e[e.PercentSign=37]="PercentSign",e[e.Ampersand=38]="Ampersand",e[e.SingleQuote=39]="SingleQuote",e[e.OpenParen=40]="OpenParen",e[e.CloseParen=41]="CloseParen",e[e.Asterisk=42]="Asterisk",e[e.Plus=43]="Plus",e[e.Comma=44]="Comma",e[e.Dash=45]="Dash",e[e.Period=46]="Period",e[e.Slash=47]="Slash",e[e.Digit0=48]="Digit0",e[e.Digit1=49]="Digit1",e[e.Digit2=50]="Digit2",e[e.Digit3=51]="Digit3",e[e.Digit4=52]="Digit4",e[e.Digit5=53]="Digit5",e[e.Digit6=54]="Digit6",e[e.Digit7=55]="Digit7",e[e.Digit8=56]="Digit8",e[e.Digit9=57]="Digit9",e[e.Colon=58]="Colon",e[e.Semicolon=59]="Semicolon",e[e.LessThan=60]="LessThan",e[e.Equals=61]="Equals",e[e.GreaterThan=62]="GreaterThan",e[e.QuestionMark=63]="QuestionMark",e[e.AtSign=64]="AtSign",e[e.A=65]="A",e[e.B=66]="B",e[e.C=67]="C",e[e.D=68]="D",e[e.E=69]="E",e[e.F=70]="F",e[e.G=71]="G",e[e.H=72]="H",e[e.I=73]="I",e[e.J=74]="J",e[e.K=75]="K",e[e.L=76]="L",e[e.M=77]="M",e[e.N=78]="N",e[e.O=79]="O",e[e.P=80]="P",e[e.Q=81]="Q",e[e.R=82]="R",e[e.S=83]="S",e[e.T=84]="T",e[e.U=85]="U",e[e.V=86]="V",e[e.W=87]="W",e[e.X=88]="X",e[e.Y=89]="Y",e[e.Z=90]="Z",e[e.OpenSquareBracket=91]="OpenSquareBracket",e[e.Backslash=92]="Backslash",e[e.CloseSquareBracket=93]="CloseSquareBracket",e[e.Caret=94]="Caret",e[e.Underline=95]="Underline",e[e.BackTick=96]="BackTick",e[e.a=97]="a",e[e.b=98]="b",e[e.c=99]="c",e[e.d=100]="d",e[e.e=101]="e",e[e.f=102]="f",e[e.g=103]="g",e[e.h=104]="h",e[e.i=105]="i",e[e.j=106]="j",e[e.k=107]="k",e[e.l=108]="l",e[e.m=109]="m",e[e.n=110]="n",e[e.o=111]="o",e[e.p=112]="p",e[e.q=113]="q",e[e.r=114]="r",e[e.s=115]="s",e[e.t=116]="t",e[e.u=117]="u",e[e.v=118]="v",e[e.w=119]="w",e[e.x=120]="x",e[e.y=121]="y",e[e.z=122]="z",e[e.OpenCurlyBrace=123]="OpenCurlyBrace",e[e.Pipe=124]="Pipe",e[e.CloseCurlyBrace=125]="CloseCurlyBrace",e[e.Tilde=126]="Tilde",e[e.NoBreakSpace=160]="NoBreakSpace",e[e.U_Combining_Grave_Accent=768]="U_Combining_Grave_Accent",e[e.U_Combining_Acute_Accent=769]="U_Combining_Acute_Accent",e[e.U_Combining_Circumflex_Accent=770]="U_Combining_Circumflex_Accent",e[e.U_Combining_Tilde=771]="U_Combining_Tilde",e[e.U_Combining_Macron=772]="U_Combining_Macron",e[e.U_Combining_Overline=773]="U_Combining_Overline",e[e.U_Combining_Breve=774]="U_Combining_Breve",e[e.U_Combining_Dot_Above=775]="U_Combining_Dot_Above",e[e.U_Combining_Diaeresis=776]="U_Combining_Diaeresis",e[e.U_Combining_Hook_Above=777]="U_Combining_Hook_Above",e[e.U_Combining_Ring_Above=778]="U_Combining_Ring_Above",e[e.U_Combining_Double_Acute_Accent=779]="U_Combining_Double_Acute_Accent",e[e.U_Combining_Caron=780]="U_Combining_Caron",e[e.U_Combining_Vertical_Line_Above=781]="U_Combining_Vertical_Line_Above",e[e.U_Combining_Double_Vertical_Line_Above=782]="U_Combining_Double_Vertical_Line_Above",e[e.U_Combining_Double_Grave_Accent=783]="U_Combining_Double_Grave_Accent",e[e.U_Combining_Candrabindu=784]="U_Combining_Candrabindu",e[e.U_Combining_Inverted_Breve=785]="U_Combining_Inverted_Breve",e[e.U_Combining_Turned_Comma_Above=786]="U_Combining_Turned_Comma_Above",e[e.U_Combining_Comma_Above=787]="U_Combining_Comma_Above",e[e.U_Combining_Reversed_Comma_Above=788]="U_Combining_Reversed_Comma_Above",e[e.U_Combining_Comma_Above_Right=789]="U_Combining_Comma_Above_Right",e[e.U_Combining_Grave_Accent_Below=790]="U_Combining_Grave_Accent_Below",e[e.U_Combining_Acute_Accent_Below=791]="U_Combining_Acute_Accent_Below",e[e.U_Combining_Left_Tack_Below=792]="U_Combining_Left_Tack_Below",e[e.U_Combining_Right_Tack_Below=793]="U_Combining_Right_Tack_Below",e[e.U_Combining_Left_Angle_Above=794]="U_Combining_Left_Angle_Above",e[e.U_Combining_Horn=795]="U_Combining_Horn",e[e.U_Combining_Left_Half_Ring_Below=796]="U_Combining_Left_Half_Ring_Below",e[e.U_Combining_Up_Tack_Below=797]="U_Combining_Up_Tack_Below",e[e.U_Combining_Down_Tack_Below=798]="U_Combining_Down_Tack_Below",e[e.U_Combining_Plus_Sign_Below=799]="U_Combining_Plus_Sign_Below",e[e.U_Combining_Minus_Sign_Below=800]="U_Combining_Minus_Sign_Below",e[e.U_Combining_Palatalized_Hook_Below=801]="U_Combining_Palatalized_Hook_Below",e[e.U_Combining_Retroflex_Hook_Below=802]="U_Combining_Retroflex_Hook_Below",e[e.U_Combining_Dot_Below=803]="U_Combining_Dot_Below",e[e.U_Combining_Diaeresis_Below=804]="U_Combining_Diaeresis_Below",e[e.U_Combining_Ring_Below=805]="U_Combining_Ring_Below",e[e.U_Combining_Comma_Below=806]="U_Combining_Comma_Below",e[e.U_Combining_Cedilla=807]="U_Combining_Cedilla",e[e.U_Combining_Ogonek=808]="U_Combining_Ogonek",e[e.U_Combining_Vertical_Line_Below=809]="U_Combining_Vertical_Line_Below",e[e.U_Combining_Bridge_Below=810]="U_Combining_Bridge_Below",e[e.U_Combining_Inverted_Double_Arch_Below=811]="U_Combining_Inverted_Double_Arch_Below",e[e.U_Combining_Caron_Below=812]="U_Combining_Caron_Below",e[e.U_Combining_Circumflex_Accent_Below=813]="U_Combining_Circumflex_Accent_Below",e[e.U_Combining_Breve_Below=814]="U_Combining_Breve_Below",e[e.U_Combining_Inverted_Breve_Below=815]="U_Combining_Inverted_Breve_Below",e[e.U_Combining_Tilde_Below=816]="U_Combining_Tilde_Below",e[e.U_Combining_Macron_Below=817]="U_Combining_Macron_Below",e[e.U_Combining_Low_Line=818]="U_Combining_Low_Line",e[e.U_Combining_Double_Low_Line=819]="U_Combining_Double_Low_Line",e[e.U_Combining_Tilde_Overlay=820]="U_Combining_Tilde_Overlay",e[e.U_Combining_Short_Stroke_Overlay=821]="U_Combining_Short_Stroke_Overlay",e[e.U_Combining_Long_Stroke_Overlay=822]="U_Combining_Long_Stroke_Overlay",e[e.U_Combining_Short_Solidus_Overlay=823]="U_Combining_Short_Solidus_Overlay",e[e.U_Combining_Long_Solidus_Overlay=824]="U_Combining_Long_Solidus_Overlay",e[e.U_Combining_Right_Half_Ring_Below=825]="U_Combining_Right_Half_Ring_Below",e[e.U_Combining_Inverted_Bridge_Below=826]="U_Combining_Inverted_Bridge_Below",e[e.U_Combining_Square_Below=827]="U_Combining_Square_Below",e[e.U_Combining_Seagull_Below=828]="U_Combining_Seagull_Below",e[e.U_Combining_X_Above=829]="U_Combining_X_Above",e[e.U_Combining_Vertical_Tilde=830]="U_Combining_Vertical_Tilde",e[e.U_Combining_Double_Overline=831]="U_Combining_Double_Overline",e[e.U_Combining_Grave_Tone_Mark=832]="U_Combining_Grave_Tone_Mark",e[e.U_Combining_Acute_Tone_Mark=833]="U_Combining_Acute_Tone_Mark",e[e.U_Combining_Greek_Perispomeni=834]="U_Combining_Greek_Perispomeni",e[e.U_Combining_Greek_Koronis=835]="U_Combining_Greek_Koronis",e[e.U_Combining_Greek_Dialytika_Tonos=836]="U_Combining_Greek_Dialytika_Tonos",e[e.U_Combining_Greek_Ypogegrammeni=837]="U_Combining_Greek_Ypogegrammeni",e[e.U_Combining_Bridge_Above=838]="U_Combining_Bridge_Above",e[e.U_Combining_Equals_Sign_Below=839]="U_Combining_Equals_Sign_Below",e[e.U_Combining_Double_Vertical_Line_Below=840]="U_Combining_Double_Vertical_Line_Below",e[e.U_Combining_Left_Angle_Below=841]="U_Combining_Left_Angle_Below",e[e.U_Combining_Not_Tilde_Above=842]="U_Combining_Not_Tilde_Above",e[e.U_Combining_Homothetic_Above=843]="U_Combining_Homothetic_Above",e[e.U_Combining_Almost_Equal_To_Above=844]="U_Combining_Almost_Equal_To_Above",e[e.U_Combining_Left_Right_Arrow_Below=845]="U_Combining_Left_Right_Arrow_Below",e[e.U_Combining_Upwards_Arrow_Below=846]="U_Combining_Upwards_Arrow_Below",e[e.U_Combining_Grapheme_Joiner=847]="U_Combining_Grapheme_Joiner",e[e.U_Combining_Right_Arrowhead_Above=848]="U_Combining_Right_Arrowhead_Above",e[e.U_Combining_Left_Half_Ring_Above=849]="U_Combining_Left_Half_Ring_Above",e[e.U_Combining_Fermata=850]="U_Combining_Fermata",e[e.U_Combining_X_Below=851]="U_Combining_X_Below",e[e.U_Combining_Left_Arrowhead_Below=852]="U_Combining_Left_Arrowhead_Below",e[e.U_Combining_Right_Arrowhead_Below=853]="U_Combining_Right_Arrowhead_Below",e[e.U_Combining_Right_Arrowhead_And_Up_Arrowhead_Below=854]="U_Combining_Right_Arrowhead_And_Up_Arrowhead_Below",e[e.U_Combining_Right_Half_Ring_Above=855]="U_Combining_Right_Half_Ring_Above",e[e.U_Combining_Dot_Above_Right=856]="U_Combining_Dot_Above_Right",e[e.U_Combining_Asterisk_Below=857]="U_Combining_Asterisk_Below",e[e.U_Combining_Double_Ring_Below=858]="U_Combining_Double_Ring_Below",e[e.U_Combining_Zigzag_Above=859]="U_Combining_Zigzag_Above",e[e.U_Combining_Double_Breve_Below=860]="U_Combining_Double_Breve_Below",e[e.U_Combining_Double_Breve=861]="U_Combining_Double_Breve",e[e.U_Combining_Double_Macron=862]="U_Combining_Double_Macron",e[e.U_Combining_Double_Macron_Below=863]="U_Combining_Double_Macron_Below",e[e.U_Combining_Double_Tilde=864]="U_Combining_Double_Tilde",e[e.U_Combining_Double_Inverted_Breve=865]="U_Combining_Double_Inverted_Breve",e[e.U_Combining_Double_Rightwards_Arrow_Below=866]="U_Combining_Double_Rightwards_Arrow_Below",e[e.U_Combining_Latin_Small_Letter_A=867]="U_Combining_Latin_Small_Letter_A",e[e.U_Combining_Latin_Small_Letter_E=868]="U_Combining_Latin_Small_Letter_E",e[e.U_Combining_Latin_Small_Letter_I=869]="U_Combining_Latin_Small_Letter_I",e[e.U_Combining_Latin_Small_Letter_O=870]="U_Combining_Latin_Small_Letter_O",e[e.U_Combining_Latin_Small_Letter_U=871]="U_Combining_Latin_Small_Letter_U",e[e.U_Combining_Latin_Small_Letter_C=872]="U_Combining_Latin_Small_Letter_C",e[e.U_Combining_Latin_Small_Letter_D=873]="U_Combining_Latin_Small_Letter_D",e[e.U_Combining_Latin_Small_Letter_H=874]="U_Combining_Latin_Small_Letter_H",e[e.U_Combining_Latin_Small_Letter_M=875]="U_Combining_Latin_Small_Letter_M",e[e.U_Combining_Latin_Small_Letter_R=876]="U_Combining_Latin_Small_Letter_R",e[e.U_Combining_Latin_Small_Letter_T=877]="U_Combining_Latin_Small_Letter_T",e[e.U_Combining_Latin_Small_Letter_V=878]="U_Combining_Latin_Small_Letter_V",e[e.U_Combining_Latin_Small_Letter_X=879]="U_Combining_Latin_Small_Letter_X",e[e.LINE_SEPARATOR=8232]="LINE_SEPARATOR",e[e.PARAGRAPH_SEPARATOR=8233]="PARAGRAPH_SEPARATOR",e[e.NEXT_LINE=133]="NEXT_LINE",e[e.U_CIRCUMFLEX=94]="U_CIRCUMFLEX",e[e.U_GRAVE_ACCENT=96]="U_GRAVE_ACCENT",e[e.U_DIAERESIS=168]="U_DIAERESIS",e[e.U_MACRON=175]="U_MACRON",e[e.U_ACUTE_ACCENT=180]="U_ACUTE_ACCENT",e[e.U_CEDILLA=184]="U_CEDILLA",e[e.U_MODIFIER_LETTER_LEFT_ARROWHEAD=706]="U_MODIFIER_LETTER_LEFT_ARROWHEAD",e[e.U_MODIFIER_LETTER_RIGHT_ARROWHEAD=707]="U_MODIFIER_LETTER_RIGHT_ARROWHEAD",e[e.U_MODIFIER_LETTER_UP_ARROWHEAD=708]="U_MODIFIER_LETTER_UP_ARROWHEAD",e[e.U_MODIFIER_LETTER_DOWN_ARROWHEAD=709]="U_MODIFIER_LETTER_DOWN_ARROWHEAD",e[e.U_MODIFIER_LETTER_CENTRED_RIGHT_HALF_RING=722]="U_MODIFIER_LETTER_CENTRED_RIGHT_HALF_RING",e[e.U_MODIFIER_LETTER_CENTRED_LEFT_HALF_RING=723]="U_MODIFIER_LETTER_CENTRED_LEFT_HALF_RING",e[e.U_MODIFIER_LETTER_UP_TACK=724]="U_MODIFIER_LETTER_UP_TACK",e[e.U_MODIFIER_LETTER_DOWN_TACK=725]="U_MODIFIER_LETTER_DOWN_TACK",e[e.U_MODIFIER_LETTER_PLUS_SIGN=726]="U_MODIFIER_LETTER_PLUS_SIGN",e[e.U_MODIFIER_LETTER_MINUS_SIGN=727]="U_MODIFIER_LETTER_MINUS_SIGN",e[e.U_BREVE=728]="U_BREVE",e[e.U_DOT_ABOVE=729]="U_DOT_ABOVE",e[e.U_RING_ABOVE=730]="U_RING_ABOVE",e[e.U_OGONEK=731]="U_OGONEK",e[e.U_SMALL_TILDE=732]="U_SMALL_TILDE",e[e.U_DOUBLE_ACUTE_ACCENT=733]="U_DOUBLE_ACUTE_ACCENT",e[e.U_MODIFIER_LETTER_RHOTIC_HOOK=734]="U_MODIFIER_LETTER_RHOTIC_HOOK",e[e.U_MODIFIER_LETTER_CROSS_ACCENT=735]="U_MODIFIER_LETTER_CROSS_ACCENT",e[e.U_MODIFIER_LETTER_EXTRA_HIGH_TONE_BAR=741]="U_MODIFIER_LETTER_EXTRA_HIGH_TONE_BAR",e[e.U_MODIFIER_LETTER_HIGH_TONE_BAR=742]="U_MODIFIER_LETTER_HIGH_TONE_BAR",e[e.U_MODIFIER_LETTER_MID_TONE_BAR=743]="U_MODIFIER_LETTER_MID_TONE_BAR",e[e.U_MODIFIER_LETTER_LOW_TONE_BAR=744]="U_MODIFIER_LETTER_LOW_TONE_BAR",e[e.U_MODIFIER_LETTER_EXTRA_LOW_TONE_BAR=745]="U_MODIFIER_LETTER_EXTRA_LOW_TONE_BAR",e[e.U_MODIFIER_LETTER_YIN_DEPARTING_TONE_MARK=746]="U_MODIFIER_LETTER_YIN_DEPARTING_TONE_MARK",e[e.U_MODIFIER_LETTER_YANG_DEPARTING_TONE_MARK=747]="U_MODIFIER_LETTER_YANG_DEPARTING_TONE_MARK",e[e.U_MODIFIER_LETTER_UNASPIRATED=749]="U_MODIFIER_LETTER_UNASPIRATED",e[e.U_MODIFIER_LETTER_LOW_DOWN_ARROWHEAD=751]="U_MODIFIER_LETTER_LOW_DOWN_ARROWHEAD",e[e.U_MODIFIER_LETTER_LOW_UP_ARROWHEAD=752]="U_MODIFIER_LETTER_LOW_UP_ARROWHEAD",e[e.U_MODIFIER_LETTER_LOW_LEFT_ARROWHEAD=753]="U_MODIFIER_LETTER_LOW_LEFT_ARROWHEAD",e[e.U_MODIFIER_LETTER_LOW_RIGHT_ARROWHEAD=754]="U_MODIFIER_LETTER_LOW_RIGHT_ARROWHEAD",e[e.U_MODIFIER_LETTER_LOW_RING=755]="U_MODIFIER_LETTER_LOW_RING",e[e.U_MODIFIER_LETTER_MIDDLE_GRAVE_ACCENT=756]="U_MODIFIER_LETTER_MIDDLE_GRAVE_ACCENT",e[e.U_MODIFIER_LETTER_MIDDLE_DOUBLE_GRAVE_ACCENT=757]="U_MODIFIER_LETTER_MIDDLE_DOUBLE_GRAVE_ACCENT",e[e.U_MODIFIER_LETTER_MIDDLE_DOUBLE_ACUTE_ACCENT=758]="U_MODIFIER_LETTER_MIDDLE_DOUBLE_ACUTE_ACCENT",e[e.U_MODIFIER_LETTER_LOW_TILDE=759]="U_MODIFIER_LETTER_LOW_TILDE",e[e.U_MODIFIER_LETTER_RAISED_COLON=760]="U_MODIFIER_LETTER_RAISED_COLON",e[e.U_MODIFIER_LETTER_BEGIN_HIGH_TONE=761]="U_MODIFIER_LETTER_BEGIN_HIGH_TONE",e[e.U_MODIFIER_LETTER_END_HIGH_TONE=762]="U_MODIFIER_LETTER_END_HIGH_TONE",e[e.U_MODIFIER_LETTER_BEGIN_LOW_TONE=763]="U_MODIFIER_LETTER_BEGIN_LOW_TONE",e[e.U_MODIFIER_LETTER_END_LOW_TONE=764]="U_MODIFIER_LETTER_END_LOW_TONE",e[e.U_MODIFIER_LETTER_SHELF=765]="U_MODIFIER_LETTER_SHELF",e[e.U_MODIFIER_LETTER_OPEN_SHELF=766]="U_MODIFIER_LETTER_OPEN_SHELF",e[e.U_MODIFIER_LETTER_LOW_LEFT_ARROW=767]="U_MODIFIER_LETTER_LOW_LEFT_ARROW",e[e.U_GREEK_LOWER_NUMERAL_SIGN=885]="U_GREEK_LOWER_NUMERAL_SIGN",e[e.U_GREEK_TONOS=900]="U_GREEK_TONOS",e[e.U_GREEK_DIALYTIKA_TONOS=901]="U_GREEK_DIALYTIKA_TONOS",e[e.U_GREEK_KORONIS=8125]="U_GREEK_KORONIS",e[e.U_GREEK_PSILI=8127]="U_GREEK_PSILI",e[e.U_GREEK_PERISPOMENI=8128]="U_GREEK_PERISPOMENI",e[e.U_GREEK_DIALYTIKA_AND_PERISPOMENI=8129]="U_GREEK_DIALYTIKA_AND_PERISPOMENI",e[e.U_GREEK_PSILI_AND_VARIA=8141]="U_GREEK_PSILI_AND_VARIA",e[e.U_GREEK_PSILI_AND_OXIA=8142]="U_GREEK_PSILI_AND_OXIA",e[e.U_GREEK_PSILI_AND_PERISPOMENI=8143]="U_GREEK_PSILI_AND_PERISPOMENI",e[e.U_GREEK_DASIA_AND_VARIA=8157]="U_GREEK_DASIA_AND_VARIA",e[e.U_GREEK_DASIA_AND_OXIA=8158]="U_GREEK_DASIA_AND_OXIA",e[e.U_GREEK_DASIA_AND_PERISPOMENI=8159]="U_GREEK_DASIA_AND_PERISPOMENI",e[e.U_GREEK_DIALYTIKA_AND_VARIA=8173]="U_GREEK_DIALYTIKA_AND_VARIA",e[e.U_GREEK_DIALYTIKA_AND_OXIA=8174]="U_GREEK_DIALYTIKA_AND_OXIA",e[e.U_GREEK_VARIA=8175]="U_GREEK_VARIA",e[e.U_GREEK_OXIA=8189]="U_GREEK_OXIA",e[e.U_GREEK_DASIA=8190]="U_GREEK_DASIA",e[e.U_IDEOGRAPHIC_FULL_STOP=12290]="U_IDEOGRAPHIC_FULL_STOP",e[e.U_LEFT_CORNER_BRACKET=12300]="U_LEFT_CORNER_BRACKET",e[e.U_RIGHT_CORNER_BRACKET=12301]="U_RIGHT_CORNER_BRACKET",e[e.U_LEFT_BLACK_LENTICULAR_BRACKET=12304]="U_LEFT_BLACK_LENTICULAR_BRACKET",e[e.U_RIGHT_BLACK_LENTICULAR_BRACKET=12305]="U_RIGHT_BLACK_LENTICULAR_BRACKET",e[e.U_OVERLINE=8254]="U_OVERLINE",e[e.UTF8_BOM=65279]="UTF8_BOM",e[e.U_FULLWIDTH_SEMICOLON=65307]="U_FULLWIDTH_SEMICOLON",e[e.U_FULLWIDTH_COMMA=65292]="U_FULLWIDTH_COMMA"})(O||(O={}));var Jl=class{constructor(){this.listeners=[],this.unexpectedErrorHandler=function(t){setTimeout(()=>{throw t.stack?ao.isErrorNoTelemetry(t)?new ao(t.message+`
|
|
63
68
|
|
|
64
69
|
`+t.stack):new Error(t.message+`
|
|
65
70
|
|
|
66
|
-
`+t.stack):t},0)}}addListener(t){return this.listeners.push(t),()=>{this._removeListener(t)}}emit(t){this.listeners.forEach(n=>{n(t)})}_removeListener(t){this.listeners.splice(this.listeners.indexOf(t),1)}setUnexpectedErrorHandler(t){this.unexpectedErrorHandler=t}getUnexpectedErrorHandler(){return this.unexpectedErrorHandler}onUnexpectedError(t){this.unexpectedErrorHandler(t),this.emit(t)}onUnexpectedExternalError(t){this.unexpectedErrorHandler(t)}},O5=new Wl;function pn(e){k5(e)||O5.onUnexpectedError(e)}function va(e){if(e instanceof Error){let{name:t,message:n,cause:r}=e,i=e.stacktrace||e.stack;return{$isError:!0,name:t,message:n,stack:i,noTelemetry:lo.isErrorNoTelemetry(e),cause:r?va(r):void 0,code:e.code}}return e}var zl="Canceled";function k5(e){return e instanceof uo?!0:e instanceof Error&&e.name===zl&&e.message===zl}var uo=class extends Error{constructor(){super(zl),this.name=this.message}},Gh=class e extends Error{static{this._name="PendingMigrationError"}static is(t){return t instanceof e||t instanceof Error&&t.name===e._name}constructor(t){super(t),this.name=e._name}};var lo=class e extends Error{constructor(t){super(t),this.name="CodeExpectedError"}static fromError(t){if(t instanceof e)return t;let n=new e;return n.message=t.message,n.stack=t.stack,n}static isErrorNoTelemetry(t){return t.name==="CodeExpectedError"}},Oe=class e extends Error{constructor(t){super(t||"An unexpected bug occurred."),Object.setPrototypeOf(this,e.prototype)}};var qh;function Wh(e,t){let n=Object.create(null);for(let r of e){let i=t(r),s=n[i];s||(s=n[i]=[]),s.push(r)}return n}var Hh=class{static{qh=Symbol.toStringTag}constructor(t,n){this.toKey=n,this._map=new Map,this[qh]="SetWithKey";for(let r of t)this.add(r)}get size(){return this._map.size}add(t){let n=this.toKey(t);return this._map.set(n,t),this}delete(t){return this._map.delete(this.toKey(t))}has(t){return this._map.has(this.toKey(t))}*entries(){for(let t of this._map.values())yield[t,t]}keys(){return this.values()}*values(){for(let t of this._map.values())yield t}clear(){this._map.clear()}forEach(t,n){this._map.forEach(r=>t.call(n,r,r,this))}[Symbol.iterator](){return this.values()}};function sr(e,t){let n=or(e,t);return n===-1?void 0:e[n]}function or(e,t,n=0,r=e.length){let i=n,s=r;for(;i<s;){let o=Math.floor((i+s)/2);t(e[o])?i=o+1:s=o}return i-1}function zh(e,t){let n=fo(e,t);return n===e.length?void 0:e[n]}function fo(e,t,n=0,r=e.length){let i=n,s=r;for(;i<s;){let o=Math.floor((i+s)/2);t(e[o])?s=o:i=o+1}return i}var co=class e{static{this.assertInvariants=!1}constructor(t){this._array=t,this._findLastMonotonousLastIdx=0}findLastMonotonous(t){if(e.assertInvariants){if(this._prevFindLastPredicate){for(let r of this._array)if(this._prevFindLastPredicate(r)&&!t(r))throw new Error("MonotonousArray: current predicate must be weaker than (or equal to) the previous predicate.")}this._prevFindLastPredicate=t}let n=or(this._array,t,this._findLastMonotonousLastIdx);return this._findLastMonotonousLastIdx=n+1,n===-1?void 0:this._array[n]}};function Na(e,t,n=(r,i)=>r===i){if(e===t)return!0;if(!e||!t||e.length!==t.length)return!1;for(let r=0,i=e.length;r<i;r++)if(!n(e[r],t[r]))return!1;return!0}function*Yh(e,t){let n,r;for(let i of e)r!==void 0&&t(r,i)?n.push(i):(n&&(yield n),n=[i]),r=i;n&&(yield n)}function Xh(e,t){for(let n=0;n<=e.length;n++)t(n===0?void 0:e[n-1],n===e.length?void 0:e[n])}function Jh(e,t){for(let n=0;n<e.length;n++)t(n===0?void 0:e[n-1],e[n],n+1===e.length?void 0:e[n+1])}function Zh(e,t){for(let n of t)e.push(n)}var Ql;(function(e){function t(s){return s<0}e.isLessThan=t;function n(s){return s<=0}e.isLessThanOrEqual=n;function r(s){return s>0}e.isGreaterThan=r;function i(s){return s===0}e.isNeitherLessOrGreaterThan=i,e.greaterThan=1,e.lessThan=-1,e.neitherLessOrGreaterThan=0})(Ql||(Ql={}));function Dn(e,t){return(n,r)=>t(e(n),e(r))}var ar=(e,t)=>e-t;function Kh(e){return(t,n)=>-e(t,n)}var Qh=class e{static{this.empty=new e(t=>{})}constructor(t){this.iterate=t}forEach(t){this.iterate(n=>(t(n),!0))}toArray(){let t=[];return this.iterate(n=>(t.push(n),!0)),t}filter(t){return new e(n=>this.iterate(r=>t(r)?n(r):!0))}map(t){return new e(n=>this.iterate(r=>n(t(r))))}some(t){let n=!1;return this.iterate(r=>(n=t(r),!n)),n}findFirst(t){let n;return this.iterate(r=>t(r)?(n=r,!1):!0),n}findLast(t){let n;return this.iterate(r=>(t(r)&&(n=r),!0)),n}findLastMaxBy(t){let n,r=!0;return this.iterate(i=>((r||Ql.isGreaterThan(t(i,n)))&&(r=!1,n=i),!0)),n}};function ep(e,t){return e.reduce((n,r)=>n+t(r),0)}var tp,np,rp;var Yl=class{constructor(t,n){this.uri=t,this.value=n}};function M5(e){return Array.isArray(e)}var ei=class e{static{this.defaultToKey=t=>t.toString()}constructor(t,n){if(this[tp]="ResourceMap",t instanceof e)this.map=new Map(t.map),this.toKey=n??e.defaultToKey;else if(M5(t)){this.map=new Map,this.toKey=n??e.defaultToKey;for(let[r,i]of t)this.set(r,i)}else this.map=new Map,this.toKey=t??e.defaultToKey}set(t,n){return this.map.set(this.toKey(t),new Yl(t,n)),this}get(t){return this.map.get(this.toKey(t))?.value}has(t){return this.map.has(this.toKey(t))}get size(){return this.map.size}clear(){this.map.clear()}delete(t){return this.map.delete(this.toKey(t))}forEach(t,n){typeof n<"u"&&(t=t.bind(n));for(let[r,i]of this.map)t(i.value,i.uri,this)}*values(){for(let t of this.map.values())yield t.value}*keys(){for(let t of this.map.values())yield t.uri}*entries(){for(let t of this.map.values())yield[t.uri,t.value]}*[(tp=Symbol.toStringTag,Symbol.iterator)](){for(let[,t]of this.map)yield[t.uri,t.value]}},ip=class{constructor(t,n){this[np]="ResourceSet",!t||typeof t=="function"?this._map=new ei(t):(this._map=new ei(n),t.forEach(this.add,this))}get size(){return this._map.size}add(t){return this._map.set(t,t),this}clear(){this._map.clear()}delete(t){return this._map.delete(t)}forEach(t,n){this._map.forEach((r,i)=>t.call(n,i,i,this))}has(t){return this._map.has(t)}entries(){return this._map.entries()}keys(){return this._map.keys()}values(){return this._map.keys()}[(np=Symbol.toStringTag,Symbol.iterator)](){return this.keys()}},Mt;(function(e){e[e.None=0]="None",e[e.AsOld=1]="AsOld",e[e.AsNew=2]="AsNew"})(Mt||(Mt={}));var Xl=class{constructor(){this[rp]="LinkedMap",this._map=new Map,this._head=void 0,this._tail=void 0,this._size=0,this._state=0}clear(){this._map.clear(),this._head=void 0,this._tail=void 0,this._size=0,this._state++}isEmpty(){return!this._head&&!this._tail}get size(){return this._size}get first(){return this._head?.value}get last(){return this._tail?.value}has(t){return this._map.has(t)}get(t,n=Mt.None){let r=this._map.get(t);if(r)return n!==Mt.None&&this.touch(r,n),r.value}set(t,n,r=Mt.None){let i=this._map.get(t);if(i)i.value=n,r!==Mt.None&&this.touch(i,r);else{switch(i={key:t,value:n,next:void 0,previous:void 0},r){case Mt.None:this.addItemLast(i);break;case Mt.AsOld:this.addItemFirst(i);break;case Mt.AsNew:this.addItemLast(i);break;default:this.addItemLast(i);break}this._map.set(t,i),this._size++}return this}delete(t){return!!this.remove(t)}remove(t){let n=this._map.get(t);if(n)return this._map.delete(t),this.removeItem(n),this._size--,n.value}shift(){if(!this._head&&!this._tail)return;if(!this._head||!this._tail)throw new Error("Invalid list");let t=this._head;return this._map.delete(t.key),this.removeItem(t),this._size--,t.value}forEach(t,n){let r=this._state,i=this._head;for(;i;){if(n?t.bind(n)(i.value,i.key,this):t(i.value,i.key,this),this._state!==r)throw new Error("LinkedMap got modified during iteration.");i=i.next}}keys(){let t=this,n=this._state,r=this._head,i={[Symbol.iterator](){return i},next(){if(t._state!==n)throw new Error("LinkedMap got modified during iteration.");if(r){let s={value:r.key,done:!1};return r=r.next,s}else return{value:void 0,done:!0}}};return i}values(){let t=this,n=this._state,r=this._head,i={[Symbol.iterator](){return i},next(){if(t._state!==n)throw new Error("LinkedMap got modified during iteration.");if(r){let s={value:r.value,done:!1};return r=r.next,s}else return{value:void 0,done:!0}}};return i}entries(){let t=this,n=this._state,r=this._head,i={[Symbol.iterator](){return i},next(){if(t._state!==n)throw new Error("LinkedMap got modified during iteration.");if(r){let s={value:[r.key,r.value],done:!1};return r=r.next,s}else return{value:void 0,done:!0}}};return i}[(rp=Symbol.toStringTag,Symbol.iterator)](){return this.entries()}trimOld(t){if(t>=this.size)return;if(t===0){this.clear();return}let n=this._head,r=this.size;for(;n&&r>t;)this._map.delete(n.key),n=n.next,r--;this._head=n,this._size=r,n&&(n.previous=void 0),this._state++}trimNew(t){if(t>=this.size)return;if(t===0){this.clear();return}let n=this._tail,r=this.size;for(;n&&r>t;)this._map.delete(n.key),n=n.previous,r--;this._tail=n,this._size=r,n&&(n.next=void 0),this._state++}addItemFirst(t){if(!this._head&&!this._tail)this._tail=t;else if(this._head)t.next=this._head,this._head.previous=t;else throw new Error("Invalid list");this._head=t,this._state++}addItemLast(t){if(!this._head&&!this._tail)this._head=t;else if(this._tail)t.previous=this._tail,this._tail.next=t;else throw new Error("Invalid list");this._tail=t,this._state++}removeItem(t){if(t===this._head&&t===this._tail)this._head=void 0,this._tail=void 0;else if(t===this._head){if(!t.next)throw new Error("Invalid list");t.next.previous=void 0,this._head=t.next}else if(t===this._tail){if(!t.previous)throw new Error("Invalid list");t.previous.next=void 0,this._tail=t.previous}else{let n=t.next,r=t.previous;if(!n||!r)throw new Error("Invalid list");n.previous=r,r.next=n}t.next=void 0,t.previous=void 0,this._state++}touch(t,n){if(!this._head||!this._tail)throw new Error("Invalid list");if(!(n!==Mt.AsOld&&n!==Mt.AsNew)){if(n===Mt.AsOld){if(t===this._head)return;let r=t.next,i=t.previous;t===this._tail?(i.next=void 0,this._tail=i):(r.previous=i,i.next=r),t.previous=void 0,t.next=this._head,this._head.previous=t,this._head=t,this._state++}else if(n===Mt.AsNew){if(t===this._tail)return;let r=t.next,i=t.previous;t===this._head?(r.previous=void 0,this._head=r):(r.previous=i,i.next=r),t.next=void 0,t.previous=this._tail,this._tail.next=t,this._tail=t,this._state++}}}toJSON(){let t=[];return this.forEach((n,r)=>{t.push([r,n])}),t}fromJSON(t){this.clear();for(let[n,r]of t)this.set(n,r)}},Jl=class extends Xl{constructor(t,n=1){super(),this._limit=t,this._ratio=Math.min(Math.max(0,n),1)}get limit(){return this._limit}set limit(t){this._limit=t,this.checkTrim()}get ratio(){return this._ratio}set ratio(t){this._ratio=Math.min(Math.max(0,t),1),this.checkTrim()}get(t,n=Mt.AsNew){return super.get(t,n)}peek(t){return super.get(t,Mt.None)}set(t,n){return super.set(t,n,Mt.AsNew),this}checkTrim(){this.size>this._limit&&this.trim(Math.round(this._limit*this._ratio))}},Ta=class extends Jl{constructor(t,n=1){super(t,n)}trim(t){this.trimOld(t)}set(t,n){return super.set(t,n),this.checkTrim(),this}};var ji=class{constructor(){this.map=new Map}add(t,n){let r=this.map.get(t);r||(r=new Set,this.map.set(t,r)),r.add(n)}delete(t,n){let r=this.map.get(t);r&&(r.delete(n),r.size===0&&this.map.delete(t))}forEach(t,n){let r=this.map.get(t);r&&r.forEach(n)}get(t){let n=this.map.get(t);return n||new Set}};function sp(e,t="Unreachable"){throw new Error(t)}function Zl(e,t="unexpected state"){if(!e)throw typeof t=="string"?new Oe(`Assertion Failed: ${t}`):t}function ur(e){if(!e()){debugger;e(),pn(new Oe("Assertion Failed"))}}function Gi(e,t){let n=0;for(;n<e.length-1;){let r=e[n],i=e[n+1];if(!t(r,i))return!1;n++}return!0}function op(e){return typeof e=="string"}function ap(e){return!!e&&typeof e[Symbol.iterator]=="function"}var qi;(function(e){function t(I){return!!I&&typeof I=="object"&&typeof I[Symbol.iterator]=="function"}e.is=t;let n=Object.freeze([]);function r(){return n}e.empty=r;function*i(I){yield I}e.single=i;function s(I){return t(I)?I:i(I)}e.wrap=s;function o(I){return I??n}e.from=o;function*a(I){for(let k=I.length-1;k>=0;k--)yield I[k]}e.reverse=a;function u(I){return!I||I[Symbol.iterator]().next().done===!0}e.isEmpty=u;function l(I){return I[Symbol.iterator]().next().value}e.first=l;function c(I,k){let w=0;for(let L of I)if(k(L,w++))return!0;return!1}e.some=c;function f(I,k){let w=0;for(let L of I)if(!k(L,w++))return!1;return!0}e.every=f;function d(I,k){for(let w of I)if(k(w))return w}e.find=d;function*m(I,k){for(let w of I)k(w)&&(yield w)}e.filter=m;function*g(I,k){let w=0;for(let L of I)yield k(L,w++)}e.map=g;function*E(I,k){let w=0;for(let L of I)yield*k(L,w++)}e.flatMap=E;function*T(...I){for(let k of I)ap(k)?yield*k:yield k}e.concat=T;function v(I,k,w){let L=w;for(let Z of I)L=k(L,Z);return L}e.reduce=v;function A(I){let k=0;for(let w of I)k++;return k}e.length=A;function*S(I,k,w=I.length){for(k<-I.length&&(k=0),k<0&&(k+=I.length),w<0?w+=I.length:w>I.length&&(w=I.length);k<w;k++)yield I[k]}e.slice=S;function C(I,k=Number.POSITIVE_INFINITY){let w=[];if(k===0)return[w,I];let L=I[Symbol.iterator]();for(let Z=0;Z<k;Z++){let P=L.next();if(P.done)return[w,e.empty()];w.push(P.value)}return[w,{[Symbol.iterator](){return L}}]}e.consume=C;async function q(I){let k=[];for await(let w of I)k.push(w);return k}e.asyncToArray=q;async function G(I){let k=[];for await(let w of I)k=k.concat(w);return k}e.asyncToArrayFlat=G})(qi||(qi={}));var ho=null;var up=class e{constructor(){this.livingDisposables=new Map}static{this.idx=0}getDisposableData(t){let n=this.livingDisposables.get(t);return n||(n={parent:null,source:null,isSingleton:!1,value:t,idx:e.idx++},this.livingDisposables.set(t,n)),n}trackDisposable(t){let n=this.getDisposableData(t);n.source||(n.source=new Error().stack)}setParent(t,n){let r=this.getDisposableData(t);r.parent=n}markAsDisposed(t){this.livingDisposables.delete(t)}markAsSingleton(t){this.getDisposableData(t).isSingleton=!0}getRootParent(t,n){let r=n.get(t);if(r)return r;let i=t.parent?this.getRootParent(this.getDisposableData(t.parent),n):t;return n.set(t,i),i}getTrackedDisposables(){let t=new Map;return[...this.livingDisposables.entries()].filter(([,r])=>r.source!==null&&!this.getRootParent(r,t).isSingleton).flatMap(([r])=>r)}computeLeakingDisposables(t=10,n){let r;if(n)r=n;else{let u=new Map,l=[...this.livingDisposables.values()].filter(f=>f.source!==null&&!this.getRootParent(f,u).isSingleton);if(l.length===0)return;let c=new Set(l.map(f=>f.value));if(r=l.filter(f=>!(f.parent&&c.has(f.parent))),r.length===0)throw new Error("There are cyclic diposable chains!")}if(!r)return;function i(u){function l(f,d){for(;f.length>0&&d.some(m=>typeof m=="string"?m===f[0]:f[0].match(m));)f.shift()}let c=u.source.split(`
|
|
67
|
-
`).map(f=>f.trim().replace("at ","")).filter(f=>f!=="");return l(c,["Error",/^trackDisposable \(.*\)$/,/^DisposableTracker.trackDisposable \(.*\)$/]),c.reverse()}let s=new
|
|
68
|
-
`),u)}r.sort(
|
|
71
|
+
`+t.stack):t},0)}}addListener(t){return this.listeners.push(t),()=>{this._removeListener(t)}}emit(t){this.listeners.forEach(n=>{n(t)})}_removeListener(t){this.listeners.splice(this.listeners.indexOf(t),1)}setUnexpectedErrorHandler(t){this.unexpectedErrorHandler=t}getUnexpectedErrorHandler(){return this.unexpectedErrorHandler}onUnexpectedError(t){this.unexpectedErrorHandler(t),this.emit(t)}onUnexpectedExternalError(t){this.unexpectedErrorHandler(t)}},R5=new Jl;function kn(e){I5(e)||R5.onUnexpectedError(e)}function va(e){if(e instanceof Error){let{name:t,message:n,cause:r}=e,i=e.stacktrace||e.stack;return{$isError:!0,name:t,message:n,stack:i,noTelemetry:ao.isErrorNoTelemetry(e),cause:r?va(r):void 0,code:e.code}}return e}var Zl="Canceled";function I5(e){return e instanceof ba?!0:e instanceof Error&&e.name===Zl&&e.message===Zl}var ba=class extends Error{constructor(){super(Zl),this.name=this.message}},Xh=class e extends Error{static{this._name="PendingMigrationError"}static is(t){return t instanceof e||t instanceof Error&&t.name===e._name}constructor(t){super(t),this.name=e._name}};var ao=class e extends Error{constructor(t){super(t),this.name="CodeExpectedError"}static fromError(t){if(t instanceof e)return t;let n=new e;return n.message=t.message,n.stack=t.stack,n}static isErrorNoTelemetry(t){return t.name==="CodeExpectedError"}},Ce=class e extends Error{constructor(t){super(t||"An unexpected bug occurred."),Object.setPrototypeOf(this,e.prototype)}};var Jh;function Kh(e,t){let n=Object.create(null);for(let r of e){let i=t(r),s=n[i];s||(s=n[i]=[]),s.push(r)}return n}var Zh=class{static{Jh=Symbol.toStringTag}constructor(t,n){this.toKey=n,this._map=new Map,this[Jh]="SetWithKey";for(let r of t)this.add(r)}get size(){return this._map.size}add(t){let n=this.toKey(t);return this._map.set(n,t),this}delete(t){return this._map.delete(this.toKey(t))}has(t){return this._map.has(this.toKey(t))}*entries(){for(let t of this._map.values())yield[t,t]}keys(){return this.values()}*values(){for(let t of this._map.values())yield t}clear(){this._map.clear()}forEach(t,n){this._map.forEach(r=>t.call(n,r,r,this))}[Symbol.iterator](){return this.values()}};function Kl(e,t){let n=this,r=!1,i;return function(){if(r)return i;if(r=!0,t)try{i=e.apply(n,arguments)}finally{t()}else i=e.apply(n,arguments);return i}}function sr(e,t){let n=or(e,t);return n===-1?void 0:e[n]}function or(e,t,n=0,r=e.length){let i=n,s=r;for(;i<s;){let o=Math.floor((i+s)/2);t(e[o])?i=o+1:s=o}return i-1}function ep(e,t){let n=lo(e,t);return n===e.length?void 0:e[n]}function lo(e,t,n=0,r=e.length){let i=n,s=r;for(;i<s;){let o=Math.floor((i+s)/2);t(e[o])?s=o:i=o+1}return i}var uo=class e{static{this.assertInvariants=!1}constructor(t){this._array=t,this._findLastMonotonousLastIdx=0}findLastMonotonous(t){if(e.assertInvariants){if(this._prevFindLastPredicate){for(let r of this._array)if(this._prevFindLastPredicate(r)&&!t(r))throw new Error("MonotonousArray: current predicate must be weaker than (or equal to) the previous predicate.")}this._prevFindLastPredicate=t}let n=or(this._array,t,this._findLastMonotonousLastIdx);return this._findLastMonotonousLastIdx=n+1,n===-1?void 0:this._array[n]}};function Na(e,t,n=(r,i)=>r===i){if(e===t)return!0;if(!e||!t||e.length!==t.length)return!1;for(let r=0,i=e.length;r<i;r++)if(!n(e[r],t[r]))return!1;return!0}function*np(e,t){let n,r;for(let i of e)r!==void 0&&t(r,i)?n.push(i):(n&&(yield n),n=[i]),r=i;n&&(yield n)}function rp(e,t){for(let n=0;n<=e.length;n++)t(n===0?void 0:e[n-1],n===e.length?void 0:e[n])}function ip(e,t){for(let n=0;n<e.length;n++)t(n===0?void 0:e[n-1],e[n],n+1===e.length?void 0:e[n+1])}function sp(e,t){for(let n of t)e.push(n)}var ec;(function(e){function t(s){return s<0}e.isLessThan=t;function n(s){return s<=0}e.isLessThanOrEqual=n;function r(s){return s>0}e.isGreaterThan=r;function i(s){return s===0}e.isNeitherLessOrGreaterThan=i,e.greaterThan=1,e.lessThan=-1,e.neitherLessOrGreaterThan=0})(ec||(ec={}));function En(e,t){return(n,r)=>t(e(n),e(r))}var ar=(e,t)=>e-t;function op(e){return(t,n)=>-e(t,n)}var tp=class e{static{this.empty=new e(t=>{})}constructor(t){this.iterate=t}forEach(t){this.iterate(n=>(t(n),!0))}toArray(){let t=[];return this.iterate(n=>(t.push(n),!0)),t}filter(t){return new e(n=>this.iterate(r=>t(r)?n(r):!0))}map(t){return new e(n=>this.iterate(r=>n(t(r))))}some(t){let n=!1;return this.iterate(r=>(n=t(r),!n)),n}findFirst(t){let n;return this.iterate(r=>t(r)?(n=r,!1):!0),n}findLast(t){let n;return this.iterate(r=>(t(r)&&(n=r),!0)),n}findLastMaxBy(t){let n,r=!0;return this.iterate(i=>((r||ec.isGreaterThan(t(i,n)))&&(r=!1,n=i),!0)),n}};function ap(e,t){return e.reduce((n,r)=>n+t(r),0)}var up,lp,cp;var tc=class{constructor(t,n){this.uri=t,this.value=n}};function O5(e){return Array.isArray(e)}var Bi=class e{static{this.defaultToKey=t=>t.toString()}constructor(t,n){if(this[up]="ResourceMap",t instanceof e)this.map=new Map(t.map),this.toKey=n??e.defaultToKey;else if(O5(t)){this.map=new Map,this.toKey=n??e.defaultToKey;for(let[r,i]of t)this.set(r,i)}else this.map=new Map,this.toKey=t??e.defaultToKey}set(t,n){return this.map.set(this.toKey(t),new tc(t,n)),this}get(t){return this.map.get(this.toKey(t))?.value}has(t){return this.map.has(this.toKey(t))}get size(){return this.map.size}clear(){this.map.clear()}delete(t){return this.map.delete(this.toKey(t))}forEach(t,n){typeof n<"u"&&(t=t.bind(n));for(let[r,i]of this.map)t(i.value,i.uri,this)}*values(){for(let t of this.map.values())yield t.value}*keys(){for(let t of this.map.values())yield t.uri}*entries(){for(let t of this.map.values())yield[t.uri,t.value]}*[(up=Symbol.toStringTag,Symbol.iterator)](){for(let[,t]of this.map)yield[t.uri,t.value]}},fp=class{constructor(t,n){this[lp]="ResourceSet",!t||typeof t=="function"?this._map=new Bi(t):(this._map=new Bi(n),t.forEach(this.add,this))}get size(){return this._map.size}add(t){return this._map.set(t,t),this}clear(){this._map.clear()}delete(t){return this._map.delete(t)}forEach(t,n){this._map.forEach((r,i)=>t.call(n,i,i,this))}has(t){return this._map.has(t)}entries(){return this._map.entries()}keys(){return this._map.keys()}values(){return this._map.keys()}[(lp=Symbol.toStringTag,Symbol.iterator)](){return this.keys()}},kt;(function(e){e[e.None=0]="None",e[e.AsOld=1]="AsOld",e[e.AsNew=2]="AsNew"})(kt||(kt={}));var nc=class{constructor(){this[cp]="LinkedMap",this._map=new Map,this._head=void 0,this._tail=void 0,this._size=0,this._state=0}clear(){this._map.clear(),this._head=void 0,this._tail=void 0,this._size=0,this._state++}isEmpty(){return!this._head&&!this._tail}get size(){return this._size}get first(){return this._head?.value}get last(){return this._tail?.value}has(t){return this._map.has(t)}get(t,n=kt.None){let r=this._map.get(t);if(r)return n!==kt.None&&this.touch(r,n),r.value}set(t,n,r=kt.None){let i=this._map.get(t);if(i)i.value=n,r!==kt.None&&this.touch(i,r);else{switch(i={key:t,value:n,next:void 0,previous:void 0},r){case kt.None:this.addItemLast(i);break;case kt.AsOld:this.addItemFirst(i);break;case kt.AsNew:this.addItemLast(i);break;default:this.addItemLast(i);break}this._map.set(t,i),this._size++}return this}delete(t){return!!this.remove(t)}remove(t){let n=this._map.get(t);if(n)return this._map.delete(t),this.removeItem(n),this._size--,n.value}shift(){if(!this._head&&!this._tail)return;if(!this._head||!this._tail)throw new Error("Invalid list");let t=this._head;return this._map.delete(t.key),this.removeItem(t),this._size--,t.value}forEach(t,n){let r=this._state,i=this._head;for(;i;){if(n?t.bind(n)(i.value,i.key,this):t(i.value,i.key,this),this._state!==r)throw new Error("LinkedMap got modified during iteration.");i=i.next}}keys(){let t=this,n=this._state,r=this._head,i={[Symbol.iterator](){return i},next(){if(t._state!==n)throw new Error("LinkedMap got modified during iteration.");if(r){let s={value:r.key,done:!1};return r=r.next,s}else return{value:void 0,done:!0}}};return i}values(){let t=this,n=this._state,r=this._head,i={[Symbol.iterator](){return i},next(){if(t._state!==n)throw new Error("LinkedMap got modified during iteration.");if(r){let s={value:r.value,done:!1};return r=r.next,s}else return{value:void 0,done:!0}}};return i}entries(){let t=this,n=this._state,r=this._head,i={[Symbol.iterator](){return i},next(){if(t._state!==n)throw new Error("LinkedMap got modified during iteration.");if(r){let s={value:[r.key,r.value],done:!1};return r=r.next,s}else return{value:void 0,done:!0}}};return i}[(cp=Symbol.toStringTag,Symbol.iterator)](){return this.entries()}trimOld(t){if(t>=this.size)return;if(t===0){this.clear();return}let n=this._head,r=this.size;for(;n&&r>t;)this._map.delete(n.key),n=n.next,r--;this._head=n,this._size=r,n&&(n.previous=void 0),this._state++}trimNew(t){if(t>=this.size)return;if(t===0){this.clear();return}let n=this._tail,r=this.size;for(;n&&r>t;)this._map.delete(n.key),n=n.previous,r--;this._tail=n,this._size=r,n&&(n.next=void 0),this._state++}addItemFirst(t){if(!this._head&&!this._tail)this._tail=t;else if(this._head)t.next=this._head,this._head.previous=t;else throw new Error("Invalid list");this._head=t,this._state++}addItemLast(t){if(!this._head&&!this._tail)this._head=t;else if(this._tail)t.previous=this._tail,this._tail.next=t;else throw new Error("Invalid list");this._tail=t,this._state++}removeItem(t){if(t===this._head&&t===this._tail)this._head=void 0,this._tail=void 0;else if(t===this._head){if(!t.next)throw new Error("Invalid list");t.next.previous=void 0,this._head=t.next}else if(t===this._tail){if(!t.previous)throw new Error("Invalid list");t.previous.next=void 0,this._tail=t.previous}else{let n=t.next,r=t.previous;if(!n||!r)throw new Error("Invalid list");n.previous=r,r.next=n}t.next=void 0,t.previous=void 0,this._state++}touch(t,n){if(!this._head||!this._tail)throw new Error("Invalid list");if(!(n!==kt.AsOld&&n!==kt.AsNew)){if(n===kt.AsOld){if(t===this._head)return;let r=t.next,i=t.previous;t===this._tail?(i.next=void 0,this._tail=i):(r.previous=i,i.next=r),t.previous=void 0,t.next=this._head,this._head.previous=t,this._head=t,this._state++}else if(n===kt.AsNew){if(t===this._tail)return;let r=t.next,i=t.previous;t===this._head?(r.previous=void 0,this._head=r):(r.previous=i,i.next=r),t.next=void 0,t.previous=this._tail,this._tail.next=t,this._tail=t,this._state++}}}toJSON(){let t=[];return this.forEach((n,r)=>{t.push([r,n])}),t}fromJSON(t){this.clear();for(let[n,r]of t)this.set(n,r)}},rc=class extends nc{constructor(t,n=1){super(),this._limit=t,this._ratio=Math.min(Math.max(0,n),1)}get limit(){return this._limit}set limit(t){this._limit=t,this.checkTrim()}get ratio(){return this._ratio}set ratio(t){this._ratio=Math.min(Math.max(0,t),1),this.checkTrim()}get(t,n=kt.AsNew){return super.get(t,n)}peek(t){return super.get(t,kt.None)}set(t,n){return super.set(t,n,kt.AsNew),this}checkTrim(){this.size>this._limit&&this.trim(Math.round(this._limit*this._ratio))}},Ta=class extends rc{constructor(t,n=1){super(t,n)}trim(t){this.trimOld(t)}set(t,n){return super.set(t,n),this.checkTrim(),this}};var Ci=class{constructor(){this.map=new Map}add(t,n){let r=this.map.get(t);r||(r=new Set,this.map.set(t,r)),r.add(n)}delete(t,n){let r=this.map.get(t);r&&(r.delete(n),r.size===0&&this.map.delete(t))}forEach(t,n){let r=this.map.get(t);r&&r.forEach(n)}get(t){let n=this.map.get(t);return n||new Set}};function hp(e,t="Unreachable"){throw new Error(t)}function ic(e,t="unexpected state"){if(!e)throw typeof t=="string"?new Ce(`Assertion Failed: ${t}`):t}function ur(e){if(!e()){debugger;e(),kn(new Ce("Assertion Failed"))}}function Vi(e,t){let n=0;for(;n<e.length-1;){let r=e[n],i=e[n+1];if(!t(r,i))return!1;n++}return!0}function pp(e){return typeof e=="string"}function dp(e){return!!e&&typeof e[Symbol.iterator]=="function"}var $i;(function(e){function t(I){return!!I&&typeof I=="object"&&typeof I[Symbol.iterator]=="function"}e.is=t;let n=Object.freeze([]);function r(){return n}e.empty=r;function*i(I){yield I}e.single=i;function s(I){return t(I)?I:i(I)}e.wrap=s;function o(I){return I||n}e.from=o;function*a(I){for(let U=I.length-1;U>=0;U--)yield I[U]}e.reverse=a;function u(I){return!I||I[Symbol.iterator]().next().done===!0}e.isEmpty=u;function l(I){return I[Symbol.iterator]().next().value}e.first=l;function c(I,U){let w=0;for(let F of I)if(U(F,w++))return!0;return!1}e.some=c;function f(I,U){let w=0;for(let F of I)if(!U(F,w++))return!1;return!0}e.every=f;function d(I,U){for(let w of I)if(U(w))return w}e.find=d;function*m(I,U){for(let w of I)U(w)&&(yield w)}e.filter=m;function*g(I,U){let w=0;for(let F of I)yield U(F,w++)}e.map=g;function*_(I,U){let w=0;for(let F of I)yield*U(F,w++)}e.flatMap=_;function*T(...I){for(let U of I)dp(U)?yield*U:yield U}e.concat=T;function A(I,U,w){let F=w;for(let Z of I)F=U(F,Z);return F}e.reduce=A;function S(I){let U=0;for(let w of I)U++;return U}e.length=S;function*L(I,U,w=I.length){for(U<-I.length&&(U=0),U<0&&(U+=I.length),w<0?w+=I.length:w>I.length&&(w=I.length);U<w;U++)yield I[U]}e.slice=L;function P(I,U=Number.POSITIVE_INFINITY){let w=[];if(U===0)return[w,I];let F=I[Symbol.iterator]();for(let Z=0;Z<U;Z++){let re=F.next();if(re.done)return[w,e.empty()];w.push(re.value)}return[w,{[Symbol.iterator](){return F}}]}e.consume=P;async function q(I){let U=[];for await(let w of I)U.push(w);return U}e.asyncToArray=q;async function Y(I){let U=[];for await(let w of I)U=U.concat(w);return U}e.asyncToArrayFlat=Y})($i||($i={}));var co=null;var mp=class e{constructor(){this.livingDisposables=new Map}static{this.idx=0}getDisposableData(t){let n=this.livingDisposables.get(t);return n||(n={parent:null,source:null,isSingleton:!1,value:t,idx:e.idx++},this.livingDisposables.set(t,n)),n}trackDisposable(t){let n=this.getDisposableData(t);n.source||(n.source=new Error().stack)}setParent(t,n){let r=this.getDisposableData(t);r.parent=n}markAsDisposed(t){this.livingDisposables.delete(t)}markAsSingleton(t){this.getDisposableData(t).isSingleton=!0}getRootParent(t,n){let r=n.get(t);if(r)return r;let i=t.parent?this.getRootParent(this.getDisposableData(t.parent),n):t;return n.set(t,i),i}getTrackedDisposables(){let t=new Map;return[...this.livingDisposables.entries()].filter(([,r])=>r.source!==null&&!this.getRootParent(r,t).isSingleton).flatMap(([r])=>r)}computeLeakingDisposables(t=10,n){let r;if(n)r=n;else{let u=new Map,l=[...this.livingDisposables.values()].filter(f=>f.source!==null&&!this.getRootParent(f,u).isSingleton);if(l.length===0)return;let c=new Set(l.map(f=>f.value));if(r=l.filter(f=>!(f.parent&&c.has(f.parent))),r.length===0)throw new Error("There are cyclic diposable chains!")}if(!r)return;function i(u){function l(f,d){for(;f.length>0&&d.some(m=>typeof m=="string"?m===f[0]:f[0].match(m));)f.shift()}let c=u.source.split(`
|
|
72
|
+
`).map(f=>f.trim().replace("at ","")).filter(f=>f!=="");return l(c,["Error",/^trackDisposable \(.*\)$/,/^DisposableTracker.trackDisposable \(.*\)$/]),c.reverse()}let s=new Ci;for(let u of r){let l=i(u);for(let c=0;c<=l.length;c++)s.add(l.slice(0,c).join(`
|
|
73
|
+
`),u)}r.sort(En(u=>u.idx,ar));let o="",a=0;for(let u of r.slice(0,t)){a++;let l=i(u),c=[];for(let f=0;f<l.length;f++){let d=l[f];d=`(shared with ${s.get(l.slice(0,f+1).join(`
|
|
69
74
|
`)).size}/${r.length} leaks) at ${d}`;let g=s.get(l.slice(0,f).join(`
|
|
70
|
-
`)),
|
|
75
|
+
`)),_=Kh([...g].map(T=>i(T)[f]),T=>T);delete _[l[f]];for(let[T,A]of Object.entries(_))c.unshift(` - stacktraces of ${A.length} other leaks continue with ${T}`);c.unshift(d)}o+=`
|
|
71
76
|
|
|
72
77
|
|
|
73
78
|
==================== Leaking disposable ${a}/${r.length}: ${u.value.constructor.name} ====================
|
|
@@ -80,45 +85,40 @@ ${c.join(`
|
|
|
80
85
|
|
|
81
86
|
... and ${r.length-t} more leaking disposables
|
|
82
87
|
|
|
83
|
-
`),{leaks:r,details:o}}};function
|
|
88
|
+
`),{leaks:r,details:o}}};function oc(e){return co?.trackDisposable(e),e}function ac(e){co?.markAsDisposed(e)}function sc(e,t){co?.setParent(e,t)}function k5(e,t){if(co)for(let n of e)co.setParent(n,t)}function uc(e){if($i.is(e)){let t=[];for(let n of e)if(n)try{n.dispose()}catch(r){t.push(r)}if(t.length===1)throw t[0];if(t.length>1)throw new AggregateError(t,"Encountered errors while disposing of store");return Array.isArray(e)?[]:e}else if(e)return e.dispose(),e}function gp(...e){let t=Dn(()=>uc(e));return k5(e,t),t}function Dn(e){let t=oc({dispose:Kl(()=>{ac(t),e()})});return t}var Rr=class e{static{this.DISABLE_DISPOSED_WARNING=!1}constructor(){this._toDispose=new Set,this._isDisposed=!1,oc(this)}dispose(){this._isDisposed||(ac(this),this._isDisposed=!0,this.clear())}get isDisposed(){return this._isDisposed}clear(){if(this._toDispose.size!==0)try{uc(this._toDispose)}finally{this._toDispose.clear()}}add(t){if(!t)return t;if(t===this)throw new Error("Cannot register a disposable on itself!");return sc(t,this),this._isDisposed?e.DISABLE_DISPOSED_WARNING||console.warn(new Error("Trying to add a disposable to a DisposableStore that has already been disposed of. The added object will be leaked!").stack):this._toDispose.add(t),t}delete(t){if(t){if(t===this)throw new Error("Cannot dispose a disposable on itself!");this._toDispose.delete(t),t.dispose()}}deleteAndLeak(t){t&&this._toDispose.has(t)&&(this._toDispose.delete(t),sc(t,null))}},Mn=class{static{this.None=Object.freeze({dispose(){}})}constructor(){this._store=new Rr,oc(this),sc(this._store,this)}dispose(){ac(this),this._store.dispose()}_register(t){if(t===this)throw new Error("Cannot register a disposable on itself!");return this._store.add(t)}};var Je=class e{static{this.Undefined=new e(void 0)}constructor(t){this.element=t,this.next=e.Undefined,this.prev=e.Undefined}},fo=class{constructor(){this._first=Je.Undefined,this._last=Je.Undefined,this._size=0}get size(){return this._size}isEmpty(){return this._first===Je.Undefined}clear(){let t=this._first;for(;t!==Je.Undefined;){let n=t.next;t.prev=Je.Undefined,t.next=Je.Undefined,t=n}this._first=Je.Undefined,this._last=Je.Undefined,this._size=0}unshift(t){return this._insert(t,!1)}push(t){return this._insert(t,!0)}_insert(t,n){let r=new Je(t);if(this._first===Je.Undefined)this._first=r,this._last=r;else if(n){let s=this._last;this._last=r,r.prev=s,s.next=r}else{let s=this._first;this._first=r,r.next=s,s.prev=r}this._size+=1;let i=!1;return()=>{i||(i=!0,this._remove(r))}}shift(){if(this._first!==Je.Undefined){let t=this._first.element;return this._remove(this._first),t}}pop(){if(this._last!==Je.Undefined){let t=this._last.element;return this._remove(this._last),t}}_remove(t){if(t.prev!==Je.Undefined&&t.next!==Je.Undefined){let n=t.prev;n.next=t.next,t.next.prev=n}else t.prev===Je.Undefined&&t.next===Je.Undefined?(this._first=Je.Undefined,this._last=Je.Undefined):t.next===Je.Undefined?(this._last=this._last.prev,this._last.next=Je.Undefined):t.prev===Je.Undefined&&(this._first=this._first.next,this._first.prev=Je.Undefined);this._size-=1}*[Symbol.iterator](){let t=this._first;for(;t!==Je.Undefined;)yield t.element,t=t.next}};var M5=globalThis.performance.now.bind(globalThis.performance),ji=class e{static create(t){return new e(t)}constructor(t){this._now=t===!1?Date.now:M5,this._startTime=this._now(),this._stopTime=-1}stop(){this._stopTime=this._now()}reset(){this._startTime=this._now(),this._stopTime=-1}elapsed(){return this._stopTime!==-1?this._stopTime-this._startTime:this._now()-this._startTime}};var Gi;(function(e){e.None=()=>Mn.None;function t(ne,R){return d(ne,()=>{},0,void 0,!0,void 0,R)}e.defer=t;function n(ne){return(R,k=null,K)=>{let J=!1,fe;return fe=ne(_e=>{if(!J)return fe?fe.dispose():J=!0,R.call(k,_e)},null,K),J&&fe.dispose(),fe}}e.once=n;function r(ne,R){return e.once(e.filter(ne,R))}e.onceIf=r;function i(ne,R,k){return c((K,J=null,fe)=>ne(_e=>K.call(J,R(_e)),null,fe),k)}e.map=i;function s(ne,R,k){return c((K,J=null,fe)=>ne(_e=>{R(_e),K.call(J,_e)},null,fe),k)}e.forEach=s;function o(ne,R,k){return c((K,J=null,fe)=>ne(_e=>R(_e)&&K.call(J,_e),null,fe),k)}e.filter=o;function a(ne){return ne}e.signal=a;function u(...ne){return(R,k=null,K)=>{let J=gp(...ne.map(fe=>fe(_e=>R.call(k,_e))));return f(J,K)}}e.any=u;function l(ne,R,k,K){let J=k;return i(ne,fe=>(J=R(J,fe),J),K)}e.reduce=l;function c(ne,R){let k,K={onWillAddFirstListener(){k=ne(J.fire,J)},onDidRemoveLastListener(){k?.dispose()}},J=new bt(K);return R?.add(J),J.event}function f(ne,R){return R instanceof Array?R.push(ne):R&&R.add(ne),ne}function d(ne,R,k=100,K=!1,J=!1,fe,_e){let Fe,Xe,V,ae=0,te,z={leakWarningThreshold:fe,onWillAddFirstListener(){Fe=ne(We=>{ae++,Xe=R(Xe,We),K&&!V&&(Se.fire(Xe),Xe=void 0),te=()=>{let Q=Xe;Xe=void 0,V=void 0,(!K||ae>1)&&Se.fire(Q),ae=0},typeof k=="number"?(V&&clearTimeout(V),V=setTimeout(te,k)):V===void 0&&(V=null,queueMicrotask(te))})},onWillRemoveListener(){J&&ae>0&&te?.()},onDidRemoveLastListener(){te=void 0,Fe.dispose()}},Se=new bt(z);return _e?.add(Se),Se.event}e.debounce=d;function m(ne,R=0,k){return e.debounce(ne,(K,J)=>K?(K.push(J),K):[J],R,void 0,!0,void 0,k)}e.accumulate=m;function g(ne,R=(K,J)=>K===J,k){let K=!0,J;return o(ne,fe=>{let _e=K||!R(fe,J);return K=!1,J=fe,_e},k)}e.latch=g;function _(ne,R,k){return[e.filter(ne,R,k),e.filter(ne,K=>!R(K),k)]}e.split=_;function T(ne,R=!1,k=[],K){let J=k.slice(),fe=ne(Xe=>{J?J.push(Xe):Fe.fire(Xe)});K&&K.add(fe);let _e=()=>{J?.forEach(Xe=>Fe.fire(Xe)),J=null},Fe=new bt({onWillAddFirstListener(){fe||(fe=ne(Xe=>Fe.fire(Xe)),K&&K.add(fe))},onDidAddFirstListener(){J&&(R?setTimeout(_e):_e())},onDidRemoveLastListener(){fe&&fe.dispose(),fe=null}});return K&&K.add(Fe),Fe.event}e.buffer=T;function A(ne,R){return(K,J,fe)=>{let _e=R(new L);return ne(function(Fe){let Xe=_e.evaluate(Fe);Xe!==S&&K.call(J,Xe)},void 0,fe)}}e.chain=A;let S=Symbol("HaltChainable");class L{constructor(){this.steps=[]}map(R){return this.steps.push(R),this}forEach(R){return this.steps.push(k=>(R(k),k)),this}filter(R){return this.steps.push(k=>R(k)?k:S),this}reduce(R,k){let K=k;return this.steps.push(J=>(K=R(K,J),K)),this}latch(R=(k,K)=>k===K){let k=!0,K;return this.steps.push(J=>{let fe=k||!R(J,K);return k=!1,K=J,fe?J:S}),this}evaluate(R){for(let k of this.steps)if(R=k(R),R===S)break;return R}}function P(ne,R,k=K=>K){let K=(...Fe)=>_e.fire(k(...Fe)),J=()=>ne.on(R,K),fe=()=>ne.removeListener(R,K),_e=new bt({onWillAddFirstListener:J,onDidRemoveLastListener:fe});return _e.event}e.fromNodeEventEmitter=P;function q(ne,R,k=K=>K){let K=(...Fe)=>_e.fire(k(...Fe)),J=()=>ne.addEventListener(R,K),fe=()=>ne.removeEventListener(R,K),_e=new bt({onWillAddFirstListener:J,onDidRemoveLastListener:fe});return _e.event}e.fromDOMEventEmitter=q;function Y(ne,R){let k,K=new Promise((J,fe)=>{let _e=n(ne)(J,null,R);k=()=>_e.dispose()});return K.cancel=k,K}e.toPromise=Y;function I(ne){let R=new bt;return ne.then(k=>{R.fire(k)},()=>{R.fire(void 0)}).finally(()=>{R.dispose()}),R.event}e.fromPromise=I;function U(ne,R){return ne(k=>R.fire(k))}e.forward=U;function w(ne,R,k){return R(k),ne(K=>R(K))}e.runAndSubscribe=w;class F{constructor(R,k){this._observable=R,this._counter=0,this._hasChanged=!1;let K={onWillAddFirstListener:()=>{R.addObserver(this),this._observable.reportChanges()},onDidRemoveLastListener:()=>{R.removeObserver(this)}};this.emitter=new bt(K),k&&k.add(this.emitter)}beginUpdate(R){this._counter++}handlePossibleChange(R){}handleChange(R,k){this._hasChanged=!0}endUpdate(R){this._counter--,this._counter===0&&(this._observable.reportChanges(),this._hasChanged&&(this._hasChanged=!1,this.emitter.fire(this._observable.get())))}}function Z(ne,R){return new F(ne,R).emitter.event}e.fromObservable=Z;function re(ne){return(R,k,K)=>{let J=0,fe=!1,_e={beginUpdate(){J++},endUpdate(){J--,J===0&&(ne.reportChanges(),fe&&(fe=!1,R.call(k)))},handlePossibleChange(){},handleChange(){fe=!0}};ne.addObserver(_e),ne.reportChanges();let Fe={dispose(){ne.removeObserver(_e)}};return K instanceof Rr?K.add(Fe):Array.isArray(K)&&K.push(Fe),Fe}}e.fromObservableLight=re})(Gi||(Gi={}));var lc=class e{static{this.all=new Set}static{this._idPool=0}constructor(t){this.listenerCount=0,this.invocationCount=0,this.elapsedOverall=0,this.durations=[],this.name=`${t}_${e._idPool++}`,e.all.add(this)}start(t){this._stopWatch=new ji,this.listenerCount=t}stop(){if(this._stopWatch){let t=this._stopWatch.elapsed();this.durations.push(t),this.elapsedOverall+=t,this.invocationCount+=1,this._stopWatch=void 0}}},_p=-1;var cc=class e{static{this._idPool=1}constructor(t,n,r=(e._idPool++).toString(16).padStart(3,"0")){this._errorHandler=t,this.threshold=n,this.name=r,this._warnCountdown=0}dispose(){this._stacks?.clear()}check(t,n){let r=this.threshold;if(r<=0||n<r)return;this._stacks||(this._stacks=new Map);let i=this._stacks.get(t.value)||0;if(this._stacks.set(t.value,i+1),this._warnCountdown-=1,this._warnCountdown<=0){this._warnCountdown=r*.5;let[s,o]=this.getMostFrequentStack(),a=`[${this.name}] potential listener LEAK detected, having ${n} listeners already. MOST frequent listener (${o}):`;console.warn(a),console.warn(s);let u=new hc(a,s);this._errorHandler(u)}return()=>{let s=this._stacks.get(t.value)||0;this._stacks.set(t.value,s-1)}}getMostFrequentStack(){if(!this._stacks)return;let t,n=0;for(let[r,i]of this._stacks)(!t||n<i)&&(t=[r,i],n=i);return t}},fc=class e{static create(){let t=new Error;return new e(t.stack??"")}constructor(t){this.value=t}print(){console.warn(this.value.split(`
|
|
84
89
|
`).slice(2).join(`
|
|
85
|
-
`))}},ac=class extends Error{constructor(t,n){super(t),this.name="ListenerLeakError",this.stack=n}},uc=class extends Error{constructor(t,n){super(t),this.name="ListenerRefusalError",this.stack=n}},V5=0,mo=class{constructor(t){this.value=t,this.id=V5++}},$5=2;var Tt=class{constructor(t){this._size=0,this._options=t,this._leakageMon=cp>0||this._options?.leakWarningThreshold?new sc(t?.onListenerError??pn,this._options?.leakWarningThreshold??cp):void 0,this._perfMon=this._options?._profName?new ic(this._options._profName):void 0,this._deliveryQueue=this._options?.deliveryQueue}dispose(){this._disposed||(this._disposed=!0,this._deliveryQueue?.current===this&&this._deliveryQueue.reset(),this._listeners&&(this._listeners=void 0,this._size=0),this._options?.onDidRemoveLastListener?.(),this._leakageMon?.dispose())}get event(){return this._event??=(t,n,r)=>{if(this._leakageMon&&this._size>this._leakageMon.threshold**2){let a=`[${this._leakageMon.name}] REFUSES to accept new listeners because it exceeded its threshold by far (${this._size} vs ${this._leakageMon.threshold})`;console.warn(a);let u=this._leakageMon.getMostFrequentStack()??["UNKNOWN stack",-1],l=new uc(`${a}. HINT: Stack shows most frequent listener (${u[1]}-times)`,u[0]);return(this._options?.onListenerError||pn)(l),bn.None}if(this._disposed)return bn.None;n&&(t=t.bind(n));let i=new mo(t),s;this._leakageMon&&this._size>=Math.ceil(this._leakageMon.threshold*.2)&&(i.stack=oc.create(),s=this._leakageMon.check(i.stack,this._size+1)),this._listeners?this._listeners instanceof mo?(this._deliveryQueue??=new lc,this._listeners=[this._listeners,i]):this._listeners.push(i):(this._options?.onWillAddFirstListener?.(this),this._listeners=i,this._options?.onDidAddFirstListener?.(this)),this._options?.onDidAddListener?.(this),this._size++;let o=vn(()=>{s?.(),this._removeListener(i)});return cc(o,r),o},this._event}_removeListener(t){if(this._options?.onWillRemoveListener?.(this),!this._listeners)return;if(this._size===1){this._listeners=void 0,this._options?.onDidRemoveLastListener?.(this),this._size=0;return}let n=this._listeners,r=n.indexOf(t);if(r===-1)throw console.log("disposed?",this._disposed),console.log("size?",this._size),console.log("arr?",JSON.stringify(this._listeners)),new Error("Attempted to dispose unknown listener");this._size--,n[r]=void 0;let i=this._deliveryQueue.current===this;if(this._size*$5<=n.length){let s=0;for(let o=0;o<n.length;o++)n[o]?n[s++]=n[o]:i&&s<this._deliveryQueue.end&&(this._deliveryQueue.end--,s<this._deliveryQueue.i&&this._deliveryQueue.i--);n.length=s}}_deliver(t,n){if(!t)return;let r=this._options?.onListenerError||pn;if(!r){t.value(n);return}try{t.value(n)}catch(i){r(i)}}_deliverQueue(t){let n=t.current._listeners;for(;t.i<t.end;)this._deliver(n[t.i++],t.value);t.reset()}fire(t){if(this._deliveryQueue?.current&&(this._deliverQueue(this._deliveryQueue),this._perfMon?.stop()),this._perfMon?.start(this._size),this._listeners)if(this._listeners instanceof mo)this._deliver(this._listeners,t);else{let n=this._deliveryQueue;n.enqueue(this,t,this._listeners.length),this._deliverQueue(n)}this._perfMon?.stop()}hasListeners(){return this._size>0}};var lc=class{constructor(){this.i=-1,this.end=0}enqueue(t,n,r){this.i=0,this.end=r,this.current=t,this.value=n}reset(){this.i=this.end,this.current=void 0,this.value=void 0}};function cc(e,t){t instanceof lr?t.add(e):Array.isArray(t)&&t.push(e)}function fp(e,t){if(t instanceof lr)t.delete(e);else if(Array.isArray(t)){let n=t.indexOf(e);n!==-1&&t.splice(n,1)}e.dispose()}function hp(){return globalThis._VSCODE_NLS_MESSAGES}function wa(){return globalThis._VSCODE_NLS_LANGUAGE}var j5=wa()==="pseudo"||typeof document<"u"&&document.location&&typeof document.location.hash=="string"&&document.location.hash.indexOf("pseudo=true")>=0;function pp(e,t){let n;return t.length===0?n=e:n=e.replace(/\{(\d+)\}/g,(r,i)=>{let s=i[0],o=t[s],a=r;return typeof o=="string"?a=o:(typeof o=="number"||typeof o=="boolean"||o===void 0||o===null)&&(a=String(o)),a}),j5&&(n="\uFF3B"+n.replace(/[aouei]/g,"$&$&")+"\uFF3D"),n}var G5=!1;function he(e,t,...n){return pp(typeof e=="number"?q5(e,t):t,n)}function q5(e,t){G5=!0;let n=hp()?.[e];if(typeof n!="string"){if(typeof t=="string")return t;throw new Error(`!!! NLS MISSING: ${e} !!!`)}return n}var ti="en",Eo=!1,Do=!1,go=!1,H5=!1,gp=!1,hc=!1,W5=!1,_p=!1,z5=!1,Q5=!1,xa,ya=ti,dp=ti,Y5,cr,fr=globalThis,zt;typeof fr.vscode<"u"&&typeof fr.vscode.process<"u"?zt=fr.vscode.process:typeof process<"u"&&typeof process?.versions?.node=="string"&&(zt=process);var Ep=typeof zt?.versions?.electron=="string",X5=Ep&&zt?.type==="renderer";if(typeof zt=="object"){Eo=zt.platform==="win32",Do=zt.platform==="darwin",go=zt.platform==="linux",H5=go&&!!zt.env.SNAP&&!!zt.env.SNAP_REVISION,W5=Ep,z5=!!zt.env.CI||!!zt.env.BUILD_ARTIFACTSTAGINGDIRECTORY||!!zt.env.GITHUB_WORKSPACE,xa=ti,ya=ti;let e=zt.env.VSCODE_NLS_CONFIG;if(e)try{let t=JSON.parse(e);xa=t.userLocale,dp=t.osLocale,ya=t.resolvedLanguage||ti,Y5=t.languagePack?.translationsConfigFile}catch{}gp=!0}else typeof navigator=="object"&&!X5?(cr=navigator.userAgent,Eo=cr.indexOf("Windows")>=0,Do=cr.indexOf("Macintosh")>=0,_p=(cr.indexOf("Macintosh")>=0||cr.indexOf("iPad")>=0||cr.indexOf("iPhone")>=0)&&!!navigator.maxTouchPoints&&navigator.maxTouchPoints>0,go=cr.indexOf("Linux")>=0,Q5=cr?.indexOf("Mobi")>=0,hc=!0,ya=wa()||ti,xa=navigator.language.toLowerCase(),dp=xa):console.error("Unable to resolve platform.");var zi;(function(e){e[e.Web=0]="Web",e[e.Mac=1]="Mac",e[e.Linux=2]="Linux",e[e.Windows=3]="Windows"})(zi||(zi={}));var fc=zi.Web;Do?fc=zi.Mac:Eo?fc=zi.Windows:go&&(fc=zi.Linux);var Pn=Eo,Dp=Do,bp=go;var vp=gp;var pc=hc,J5=hc&&typeof fr.importScripts=="function",Np=J5?fr.origin:void 0;var Un=cr,Or=ya,mp;(function(e){function t(){return Or}e.value=t;function n(){return Or.length===2?Or==="en":Or.length>=3?Or[0]==="e"&&Or[1]==="n"&&Or[2]==="-":!1}e.isDefaultVariant=n;function r(){return Or==="en"}e.isDefault=r})(mp||(mp={}));var Z5=typeof fr.postMessage=="function"&&!fr.importScripts,Tp=(()=>{if(Z5){let e=[];fr.addEventListener("message",n=>{if(n.data&&n.data.vscodeScheduleAsyncWork)for(let r=0,i=e.length;r<i;r++){let s=e[r];if(s.id===n.data.vscodeScheduleAsyncWork){e.splice(r,1),s.callback();return}}});let t=0;return n=>{let r=++t;e.push({id:r,callback:n}),fr.postMessage({vscodeScheduleAsyncWork:r},"*")}}return e=>setTimeout(e)})(),_o;(function(e){e[e.Windows=1]="Windows",e[e.Macintosh=2]="Macintosh",e[e.Linux=3]="Linux"})(_o||(_o={}));var AT=Do||_p?_o.Macintosh:Eo?_o.Windows:_o.Linux;var K5=!!(Un&&Un.indexOf("Chrome")>=0),FT=!!(Un&&Un.indexOf("Firefox")>=0),ST=!!(!K5&&Un&&Un.indexOf("Safari")>=0),RT=!!(Un&&Un.indexOf("Edg/")>=0),IT=!!(Un&&Un.indexOf("Android")>=0);var wp=Object.freeze(function(e,t){let n=setTimeout(e.bind(t),0);return{dispose(){clearTimeout(n)}}}),La;(function(e){function t(n){return n===e.None||n===e.Cancelled||n instanceof Qi?!0:!n||typeof n!="object"?!1:typeof n.isCancellationRequested=="boolean"&&typeof n.onCancellationRequested=="function"}e.isCancellationToken=t,e.None=Object.freeze({isCancellationRequested:!1,onCancellationRequested:Wi.None}),e.Cancelled=Object.freeze({isCancellationRequested:!0,onCancellationRequested:wp})})(La||(La={}));var Qi=class{constructor(){this._isCancelled=!1,this._emitter=null}cancel(){this._isCancelled||(this._isCancelled=!0,this._emitter&&(this._emitter.fire(void 0),this.dispose()))}get isCancellationRequested(){return this._isCancelled}get onCancellationRequested(){return this._isCancelled?wp:(this._emitter||(this._emitter=new Tt),this._emitter.event)}dispose(){this._emitter&&(this._emitter.dispose(),this._emitter=null)}},Yi=class{constructor(t){this._token=void 0,this._parentListener=void 0,this._parentListener=t&&t.onCancellationRequested(this.cancel,this)}get token(){return this._token||(this._token=new Qi),this._token}cancel(){this._token?this._token instanceof Qi&&this._token.cancel():this._token=La.Cancelled}dispose(t=!1){t&&this.cancel(),this._parentListener?.dispose(),this._token?this._token instanceof Qi&&this._token.dispose():this._token=La.None}};function eE(e){return e}var Aa=class{constructor(t,n){this.lastCache=void 0,this.lastArgKey=void 0,typeof t=="function"?(this._fn=t,this._computeKey=eE):(this._fn=n,this._computeKey=t.getCacheKey)}get(t){let n=this._computeKey(t);return this.lastArgKey!==n&&(this.lastArgKey=n,this.lastCache=this._fn(t)),this.lastCache}};var kr;(function(e){e[e.Uninitialized=0]="Uninitialized",e[e.Running=1]="Running",e[e.Completed=2]="Completed"})(kr||(kr={}));var hr=class{constructor(t){this.executor=t,this._state=kr.Uninitialized}get hasValue(){return this._state===kr.Completed}get value(){if(this._state===kr.Uninitialized){this._state=kr.Running;try{this._value=this.executor()}catch(t){this._error=t}finally{this._state=kr.Completed}}else if(this._state===kr.Running)throw new Error("Cannot read the value of a lazy that is being initialized");if(this._error)throw this._error;return this._value}get rawValue(){return this._value}};var Qt;(function(e){e[e.MAX_SAFE_SMALL_INTEGER=1073741824]="MAX_SAFE_SMALL_INTEGER",e[e.MIN_SAFE_SMALL_INTEGER=-1073741824]="MIN_SAFE_SMALL_INTEGER",e[e.MAX_UINT_8=255]="MAX_UINT_8",e[e.MAX_UINT_16=65535]="MAX_UINT_16",e[e.MAX_UINT_32=4294967295]="MAX_UINT_32",e[e.UNICODE_SUPPLEMENTARY_PLANE_BEGIN=65536]="UNICODE_SUPPLEMENTARY_PLANE_BEGIN"})(Qt||(Qt={}));function dc(e){return e<0?0:e>Qt.MAX_UINT_8?Qt.MAX_UINT_8:e|0}function ni(e){return e<0?0:e>Qt.MAX_UINT_32?Qt.MAX_UINT_32:e|0}function Lp(e){return e.replace(/[\\\{\}\*\+\?\|\^\$\.\[\]\(\)]/g,"\\$&")}function Ap(e){return e.source==="^"||e.source==="^$"||e.source==="$"||e.source==="^\\s*$"?!1:!!(e.exec("")&&e.lastIndex===0)}function Fa(e){return e.split(/\r\n|\r|\n/)}function Fp(e){for(let t=0,n=e.length;t<n;t++){let r=e.charCodeAt(t);if(r!==M.Space&&r!==M.Tab)return t}return-1}function Sp(e,t=e.length-1){for(let n=t;n>=0;n--){let r=e.charCodeAt(n);if(r!==M.Space&&r!==M.Tab)return n}return-1}function Rp(e,t){return e<t?-1:e>t?1:0}function tE(e,t,n=0,r=e.length,i=0,s=t.length){for(;n<r&&i<s;n++,i++){let u=e.charCodeAt(n),l=t.charCodeAt(i);if(u<l)return-1;if(u>l)return 1}let o=r-n,a=s-i;return o<a?-1:o>a?1:0}function Ip(e,t,n=0,r=e.length,i=0,s=t.length){for(;n<r&&i<s;n++,i++){let u=e.charCodeAt(n),l=t.charCodeAt(i);if(u===l)continue;if(u>=128||l>=128)return tE(e.toLowerCase(),t.toLowerCase(),n,r,i,s);xp(u)&&(u-=32),xp(l)&&(l-=32);let c=u-l;if(c!==0)return c}let o=r-n,a=s-i;return o<a?-1:o>a?1:0}function xp(e){return e>=M.a&&e<=M.z}function gc(e){return e>=M.A&&e<=M.Z}function Sa(e,t){return e.length===t.length&&Ip(e,t)===0}function _c(e,t){let n=t.length;return n<=e.length&&Ip(e,t,0,n)===0}function Zi(e,t){let n=Math.min(e.length,t.length),r;for(r=0;r<n;r++)if(e.charCodeAt(r)!==t.charCodeAt(r))return r;return n}function Ki(e,t){let n=Math.min(e.length,t.length),r,i=e.length-1,s=t.length-1;for(r=0;r<n;r++)if(e.charCodeAt(i-r)!==t.charCodeAt(s-r))return r;return n}function es(e){return 55296<=e&&e<=56319}function Ra(e){return 56320<=e&&e<=57343}function Ec(e,t){return(e-55296<<10)+(t-56320)+65536}function Op(e,t,n){let r=e.charCodeAt(n);if(es(r)&&n+1<t){let i=e.charCodeAt(n+1);if(Ra(i))return Ec(r,i)}return r}var nE=/^[\t\n\r\x20-\x7E]*$/;function kp(e){return nE.test(e)}var rE=/(?:\x1b\[|\x9b)[=?>!]?[\d;:]*["$#'* ]?[a-zA-Z@^`{}|~]/,iE=/(?:\x1b\]|\x9d).*?(?:\x1b\\|\x07|\x9c)/,sE=/\x1b(?:[ #%\(\)\*\+\-\.\/]?[a-zA-Z0-9\|}~@])/,HT=new RegExp("(?:"+[rE.source,iE.source,sE.source].join("|")+")","g");var WT=String.fromCharCode(M.UTF8_BOM);var ri;(function(e){e[e.Other=0]="Other",e[e.Prepend=1]="Prepend",e[e.CR=2]="CR",e[e.LF=3]="LF",e[e.Control=4]="Control",e[e.Extend=5]="Extend",e[e.Regional_Indicator=6]="Regional_Indicator",e[e.SpacingMark=7]="SpacingMark",e[e.L=8]="L",e[e.V=9]="V",e[e.T=10]="T",e[e.LV=11]="LV",e[e.LVT=12]="LVT",e[e.ZWJ=13]="ZWJ",e[e.Extended_Pictographic=14]="Extended_Pictographic"})(ri||(ri={}));var yp=class e{static{this._INSTANCE=null}static getInstance(){return e._INSTANCE||(e._INSTANCE=new e),e._INSTANCE}constructor(){this._data=oE()}getGraphemeBreakType(t){if(t<32)return t===M.LineFeed?ri.LF:t===M.CarriageReturn?ri.CR:ri.Control;if(t<127)return ri.Other;let n=this._data,r=n.length/3,i=1;for(;i<=r;)if(t<n[3*i])i=2*i;else if(t>n[3*i+1])i=2*i+1;else return n[3*i+2];return ri.Other}};function oE(){return JSON.parse("[0,0,0,51229,51255,12,44061,44087,12,127462,127487,6,7083,7085,5,47645,47671,12,54813,54839,12,128678,128678,14,3270,3270,5,9919,9923,14,45853,45879,12,49437,49463,12,53021,53047,12,71216,71218,7,128398,128399,14,129360,129374,14,2519,2519,5,4448,4519,9,9742,9742,14,12336,12336,14,44957,44983,12,46749,46775,12,48541,48567,12,50333,50359,12,52125,52151,12,53917,53943,12,69888,69890,5,73018,73018,5,127990,127990,14,128558,128559,14,128759,128760,14,129653,129655,14,2027,2035,5,2891,2892,7,3761,3761,5,6683,6683,5,8293,8293,4,9825,9826,14,9999,9999,14,43452,43453,5,44509,44535,12,45405,45431,12,46301,46327,12,47197,47223,12,48093,48119,12,48989,49015,12,49885,49911,12,50781,50807,12,51677,51703,12,52573,52599,12,53469,53495,12,54365,54391,12,65279,65279,4,70471,70472,7,72145,72147,7,119173,119179,5,127799,127818,14,128240,128244,14,128512,128512,14,128652,128652,14,128721,128722,14,129292,129292,14,129445,129450,14,129734,129743,14,1476,1477,5,2366,2368,7,2750,2752,7,3076,3076,5,3415,3415,5,4141,4144,5,6109,6109,5,6964,6964,5,7394,7400,5,9197,9198,14,9770,9770,14,9877,9877,14,9968,9969,14,10084,10084,14,43052,43052,5,43713,43713,5,44285,44311,12,44733,44759,12,45181,45207,12,45629,45655,12,46077,46103,12,46525,46551,12,46973,46999,12,47421,47447,12,47869,47895,12,48317,48343,12,48765,48791,12,49213,49239,12,49661,49687,12,50109,50135,12,50557,50583,12,51005,51031,12,51453,51479,12,51901,51927,12,52349,52375,12,52797,52823,12,53245,53271,12,53693,53719,12,54141,54167,12,54589,54615,12,55037,55063,12,69506,69509,5,70191,70193,5,70841,70841,7,71463,71467,5,72330,72342,5,94031,94031,5,123628,123631,5,127763,127765,14,127941,127941,14,128043,128062,14,128302,128317,14,128465,128467,14,128539,128539,14,128640,128640,14,128662,128662,14,128703,128703,14,128745,128745,14,129004,129007,14,129329,129330,14,129402,129402,14,129483,129483,14,129686,129704,14,130048,131069,14,173,173,4,1757,1757,1,2200,2207,5,2434,2435,7,2631,2632,5,2817,2817,5,3008,3008,5,3201,3201,5,3387,3388,5,3542,3542,5,3902,3903,7,4190,4192,5,6002,6003,5,6439,6440,5,6765,6770,7,7019,7027,5,7154,7155,7,8205,8205,13,8505,8505,14,9654,9654,14,9757,9757,14,9792,9792,14,9852,9853,14,9890,9894,14,9937,9937,14,9981,9981,14,10035,10036,14,11035,11036,14,42654,42655,5,43346,43347,7,43587,43587,5,44006,44007,7,44173,44199,12,44397,44423,12,44621,44647,12,44845,44871,12,45069,45095,12,45293,45319,12,45517,45543,12,45741,45767,12,45965,45991,12,46189,46215,12,46413,46439,12,46637,46663,12,46861,46887,12,47085,47111,12,47309,47335,12,47533,47559,12,47757,47783,12,47981,48007,12,48205,48231,12,48429,48455,12,48653,48679,12,48877,48903,12,49101,49127,12,49325,49351,12,49549,49575,12,49773,49799,12,49997,50023,12,50221,50247,12,50445,50471,12,50669,50695,12,50893,50919,12,51117,51143,12,51341,51367,12,51565,51591,12,51789,51815,12,52013,52039,12,52237,52263,12,52461,52487,12,52685,52711,12,52909,52935,12,53133,53159,12,53357,53383,12,53581,53607,12,53805,53831,12,54029,54055,12,54253,54279,12,54477,54503,12,54701,54727,12,54925,54951,12,55149,55175,12,68101,68102,5,69762,69762,7,70067,70069,7,70371,70378,5,70720,70721,7,71087,71087,5,71341,71341,5,71995,71996,5,72249,72249,7,72850,72871,5,73109,73109,5,118576,118598,5,121505,121519,5,127245,127247,14,127568,127569,14,127777,127777,14,127872,127891,14,127956,127967,14,128015,128016,14,128110,128172,14,128259,128259,14,128367,128368,14,128424,128424,14,128488,128488,14,128530,128532,14,128550,128551,14,128566,128566,14,128647,128647,14,128656,128656,14,128667,128673,14,128691,128693,14,128715,128715,14,128728,128732,14,128752,128752,14,128765,128767,14,129096,129103,14,129311,129311,14,129344,129349,14,129394,129394,14,129413,129425,14,129466,129471,14,129511,129535,14,129664,129666,14,129719,129722,14,129760,129767,14,917536,917631,5,13,13,2,1160,1161,5,1564,1564,4,1807,1807,1,2085,2087,5,2307,2307,7,2382,2383,7,2497,2500,5,2563,2563,7,2677,2677,5,2763,2764,7,2879,2879,5,2914,2915,5,3021,3021,5,3142,3144,5,3263,3263,5,3285,3286,5,3398,3400,7,3530,3530,5,3633,3633,5,3864,3865,5,3974,3975,5,4155,4156,7,4229,4230,5,5909,5909,7,6078,6085,7,6277,6278,5,6451,6456,7,6744,6750,5,6846,6846,5,6972,6972,5,7074,7077,5,7146,7148,7,7222,7223,5,7416,7417,5,8234,8238,4,8417,8417,5,9000,9000,14,9203,9203,14,9730,9731,14,9748,9749,14,9762,9763,14,9776,9783,14,9800,9811,14,9831,9831,14,9872,9873,14,9882,9882,14,9900,9903,14,9929,9933,14,9941,9960,14,9974,9974,14,9989,9989,14,10006,10006,14,10062,10062,14,10160,10160,14,11647,11647,5,12953,12953,14,43019,43019,5,43232,43249,5,43443,43443,5,43567,43568,7,43696,43696,5,43765,43765,7,44013,44013,5,44117,44143,12,44229,44255,12,44341,44367,12,44453,44479,12,44565,44591,12,44677,44703,12,44789,44815,12,44901,44927,12,45013,45039,12,45125,45151,12,45237,45263,12,45349,45375,12,45461,45487,12,45573,45599,12,45685,45711,12,45797,45823,12,45909,45935,12,46021,46047,12,46133,46159,12,46245,46271,12,46357,46383,12,46469,46495,12,46581,46607,12,46693,46719,12,46805,46831,12,46917,46943,12,47029,47055,12,47141,47167,12,47253,47279,12,47365,47391,12,47477,47503,12,47589,47615,12,47701,47727,12,47813,47839,12,47925,47951,12,48037,48063,12,48149,48175,12,48261,48287,12,48373,48399,12,48485,48511,12,48597,48623,12,48709,48735,12,48821,48847,12,48933,48959,12,49045,49071,12,49157,49183,12,49269,49295,12,49381,49407,12,49493,49519,12,49605,49631,12,49717,49743,12,49829,49855,12,49941,49967,12,50053,50079,12,50165,50191,12,50277,50303,12,50389,50415,12,50501,50527,12,50613,50639,12,50725,50751,12,50837,50863,12,50949,50975,12,51061,51087,12,51173,51199,12,51285,51311,12,51397,51423,12,51509,51535,12,51621,51647,12,51733,51759,12,51845,51871,12,51957,51983,12,52069,52095,12,52181,52207,12,52293,52319,12,52405,52431,12,52517,52543,12,52629,52655,12,52741,52767,12,52853,52879,12,52965,52991,12,53077,53103,12,53189,53215,12,53301,53327,12,53413,53439,12,53525,53551,12,53637,53663,12,53749,53775,12,53861,53887,12,53973,53999,12,54085,54111,12,54197,54223,12,54309,54335,12,54421,54447,12,54533,54559,12,54645,54671,12,54757,54783,12,54869,54895,12,54981,55007,12,55093,55119,12,55243,55291,10,66045,66045,5,68325,68326,5,69688,69702,5,69817,69818,5,69957,69958,7,70089,70092,5,70198,70199,5,70462,70462,5,70502,70508,5,70750,70750,5,70846,70846,7,71100,71101,5,71230,71230,7,71351,71351,5,71737,71738,5,72000,72000,7,72160,72160,5,72273,72278,5,72752,72758,5,72882,72883,5,73031,73031,5,73461,73462,7,94192,94193,7,119149,119149,7,121403,121452,5,122915,122916,5,126980,126980,14,127358,127359,14,127535,127535,14,127759,127759,14,127771,127771,14,127792,127793,14,127825,127867,14,127897,127899,14,127945,127945,14,127985,127986,14,128000,128007,14,128021,128021,14,128066,128100,14,128184,128235,14,128249,128252,14,128266,128276,14,128335,128335,14,128379,128390,14,128407,128419,14,128444,128444,14,128481,128481,14,128499,128499,14,128526,128526,14,128536,128536,14,128543,128543,14,128556,128556,14,128564,128564,14,128577,128580,14,128643,128645,14,128649,128649,14,128654,128654,14,128660,128660,14,128664,128664,14,128675,128675,14,128686,128689,14,128695,128696,14,128705,128709,14,128717,128719,14,128725,128725,14,128736,128741,14,128747,128748,14,128755,128755,14,128762,128762,14,128981,128991,14,129009,129023,14,129160,129167,14,129296,129304,14,129320,129327,14,129340,129342,14,129356,129356,14,129388,129392,14,129399,129400,14,129404,129407,14,129432,129442,14,129454,129455,14,129473,129474,14,129485,129487,14,129648,129651,14,129659,129660,14,129671,129679,14,129709,129711,14,129728,129730,14,129751,129753,14,129776,129782,14,917505,917505,4,917760,917999,5,10,10,3,127,159,4,768,879,5,1471,1471,5,1536,1541,1,1648,1648,5,1767,1768,5,1840,1866,5,2070,2073,5,2137,2139,5,2274,2274,1,2363,2363,7,2377,2380,7,2402,2403,5,2494,2494,5,2507,2508,7,2558,2558,5,2622,2624,7,2641,2641,5,2691,2691,7,2759,2760,5,2786,2787,5,2876,2876,5,2881,2884,5,2901,2902,5,3006,3006,5,3014,3016,7,3072,3072,5,3134,3136,5,3157,3158,5,3260,3260,5,3266,3266,5,3274,3275,7,3328,3329,5,3391,3392,7,3405,3405,5,3457,3457,5,3536,3537,7,3551,3551,5,3636,3642,5,3764,3772,5,3895,3895,5,3967,3967,7,3993,4028,5,4146,4151,5,4182,4183,7,4226,4226,5,4253,4253,5,4957,4959,5,5940,5940,7,6070,6070,7,6087,6088,7,6158,6158,4,6432,6434,5,6448,6449,7,6679,6680,5,6742,6742,5,6754,6754,5,6783,6783,5,6912,6915,5,6966,6970,5,6978,6978,5,7042,7042,7,7080,7081,5,7143,7143,7,7150,7150,7,7212,7219,5,7380,7392,5,7412,7412,5,8203,8203,4,8232,8232,4,8265,8265,14,8400,8412,5,8421,8432,5,8617,8618,14,9167,9167,14,9200,9200,14,9410,9410,14,9723,9726,14,9733,9733,14,9745,9745,14,9752,9752,14,9760,9760,14,9766,9766,14,9774,9774,14,9786,9786,14,9794,9794,14,9823,9823,14,9828,9828,14,9833,9850,14,9855,9855,14,9875,9875,14,9880,9880,14,9885,9887,14,9896,9897,14,9906,9916,14,9926,9927,14,9935,9935,14,9939,9939,14,9962,9962,14,9972,9972,14,9978,9978,14,9986,9986,14,9997,9997,14,10002,10002,14,10017,10017,14,10055,10055,14,10071,10071,14,10133,10135,14,10548,10549,14,11093,11093,14,12330,12333,5,12441,12442,5,42608,42610,5,43010,43010,5,43045,43046,5,43188,43203,7,43302,43309,5,43392,43394,5,43446,43449,5,43493,43493,5,43571,43572,7,43597,43597,7,43703,43704,5,43756,43757,5,44003,44004,7,44009,44010,7,44033,44059,12,44089,44115,12,44145,44171,12,44201,44227,12,44257,44283,12,44313,44339,12,44369,44395,12,44425,44451,12,44481,44507,12,44537,44563,12,44593,44619,12,44649,44675,12,44705,44731,12,44761,44787,12,44817,44843,12,44873,44899,12,44929,44955,12,44985,45011,12,45041,45067,12,45097,45123,12,45153,45179,12,45209,45235,12,45265,45291,12,45321,45347,12,45377,45403,12,45433,45459,12,45489,45515,12,45545,45571,12,45601,45627,12,45657,45683,12,45713,45739,12,45769,45795,12,45825,45851,12,45881,45907,12,45937,45963,12,45993,46019,12,46049,46075,12,46105,46131,12,46161,46187,12,46217,46243,12,46273,46299,12,46329,46355,12,46385,46411,12,46441,46467,12,46497,46523,12,46553,46579,12,46609,46635,12,46665,46691,12,46721,46747,12,46777,46803,12,46833,46859,12,46889,46915,12,46945,46971,12,47001,47027,12,47057,47083,12,47113,47139,12,47169,47195,12,47225,47251,12,47281,47307,12,47337,47363,12,47393,47419,12,47449,47475,12,47505,47531,12,47561,47587,12,47617,47643,12,47673,47699,12,47729,47755,12,47785,47811,12,47841,47867,12,47897,47923,12,47953,47979,12,48009,48035,12,48065,48091,12,48121,48147,12,48177,48203,12,48233,48259,12,48289,48315,12,48345,48371,12,48401,48427,12,48457,48483,12,48513,48539,12,48569,48595,12,48625,48651,12,48681,48707,12,48737,48763,12,48793,48819,12,48849,48875,12,48905,48931,12,48961,48987,12,49017,49043,12,49073,49099,12,49129,49155,12,49185,49211,12,49241,49267,12,49297,49323,12,49353,49379,12,49409,49435,12,49465,49491,12,49521,49547,12,49577,49603,12,49633,49659,12,49689,49715,12,49745,49771,12,49801,49827,12,49857,49883,12,49913,49939,12,49969,49995,12,50025,50051,12,50081,50107,12,50137,50163,12,50193,50219,12,50249,50275,12,50305,50331,12,50361,50387,12,50417,50443,12,50473,50499,12,50529,50555,12,50585,50611,12,50641,50667,12,50697,50723,12,50753,50779,12,50809,50835,12,50865,50891,12,50921,50947,12,50977,51003,12,51033,51059,12,51089,51115,12,51145,51171,12,51201,51227,12,51257,51283,12,51313,51339,12,51369,51395,12,51425,51451,12,51481,51507,12,51537,51563,12,51593,51619,12,51649,51675,12,51705,51731,12,51761,51787,12,51817,51843,12,51873,51899,12,51929,51955,12,51985,52011,12,52041,52067,12,52097,52123,12,52153,52179,12,52209,52235,12,52265,52291,12,52321,52347,12,52377,52403,12,52433,52459,12,52489,52515,12,52545,52571,12,52601,52627,12,52657,52683,12,52713,52739,12,52769,52795,12,52825,52851,12,52881,52907,12,52937,52963,12,52993,53019,12,53049,53075,12,53105,53131,12,53161,53187,12,53217,53243,12,53273,53299,12,53329,53355,12,53385,53411,12,53441,53467,12,53497,53523,12,53553,53579,12,53609,53635,12,53665,53691,12,53721,53747,12,53777,53803,12,53833,53859,12,53889,53915,12,53945,53971,12,54001,54027,12,54057,54083,12,54113,54139,12,54169,54195,12,54225,54251,12,54281,54307,12,54337,54363,12,54393,54419,12,54449,54475,12,54505,54531,12,54561,54587,12,54617,54643,12,54673,54699,12,54729,54755,12,54785,54811,12,54841,54867,12,54897,54923,12,54953,54979,12,55009,55035,12,55065,55091,12,55121,55147,12,55177,55203,12,65024,65039,5,65520,65528,4,66422,66426,5,68152,68154,5,69291,69292,5,69633,69633,5,69747,69748,5,69811,69814,5,69826,69826,5,69932,69932,7,70016,70017,5,70079,70080,7,70095,70095,5,70196,70196,5,70367,70367,5,70402,70403,7,70464,70464,5,70487,70487,5,70709,70711,7,70725,70725,7,70833,70834,7,70843,70844,7,70849,70849,7,71090,71093,5,71103,71104,5,71227,71228,7,71339,71339,5,71344,71349,5,71458,71461,5,71727,71735,5,71985,71989,7,71998,71998,5,72002,72002,7,72154,72155,5,72193,72202,5,72251,72254,5,72281,72283,5,72344,72345,5,72766,72766,7,72874,72880,5,72885,72886,5,73023,73029,5,73104,73105,5,73111,73111,5,92912,92916,5,94095,94098,5,113824,113827,4,119142,119142,7,119155,119162,4,119362,119364,5,121476,121476,5,122888,122904,5,123184,123190,5,125252,125258,5,127183,127183,14,127340,127343,14,127377,127386,14,127491,127503,14,127548,127551,14,127744,127756,14,127761,127761,14,127769,127769,14,127773,127774,14,127780,127788,14,127796,127797,14,127820,127823,14,127869,127869,14,127894,127895,14,127902,127903,14,127943,127943,14,127947,127950,14,127972,127972,14,127988,127988,14,127992,127994,14,128009,128011,14,128019,128019,14,128023,128041,14,128064,128064,14,128102,128107,14,128174,128181,14,128238,128238,14,128246,128247,14,128254,128254,14,128264,128264,14,128278,128299,14,128329,128330,14,128348,128359,14,128371,128377,14,128392,128393,14,128401,128404,14,128421,128421,14,128433,128434,14,128450,128452,14,128476,128478,14,128483,128483,14,128495,128495,14,128506,128506,14,128519,128520,14,128528,128528,14,128534,128534,14,128538,128538,14,128540,128542,14,128544,128549,14,128552,128555,14,128557,128557,14,128560,128563,14,128565,128565,14,128567,128576,14,128581,128591,14,128641,128642,14,128646,128646,14,128648,128648,14,128650,128651,14,128653,128653,14,128655,128655,14,128657,128659,14,128661,128661,14,128663,128663,14,128665,128666,14,128674,128674,14,128676,128677,14,128679,128685,14,128690,128690,14,128694,128694,14,128697,128702,14,128704,128704,14,128710,128714,14,128716,128716,14,128720,128720,14,128723,128724,14,128726,128727,14,128733,128735,14,128742,128744,14,128746,128746,14,128749,128751,14,128753,128754,14,128756,128758,14,128761,128761,14,128763,128764,14,128884,128895,14,128992,129003,14,129008,129008,14,129036,129039,14,129114,129119,14,129198,129279,14,129293,129295,14,129305,129310,14,129312,129319,14,129328,129328,14,129331,129338,14,129343,129343,14,129351,129355,14,129357,129359,14,129375,129387,14,129393,129393,14,129395,129398,14,129401,129401,14,129403,129403,14,129408,129412,14,129426,129431,14,129443,129444,14,129451,129453,14,129456,129465,14,129472,129472,14,129475,129482,14,129484,129484,14,129488,129510,14,129536,129647,14,129652,129652,14,129656,129658,14,129661,129663,14,129667,129670,14,129680,129685,14,129705,129708,14,129712,129718,14,129723,129727,14,129731,129733,14,129744,129750,14,129754,129759,14,129768,129775,14,129783,129791,14,917504,917504,4,917506,917535,4,917632,917759,4,918000,921599,4,0,9,4,11,12,4,14,31,4,169,169,14,174,174,14,1155,1159,5,1425,1469,5,1473,1474,5,1479,1479,5,1552,1562,5,1611,1631,5,1750,1756,5,1759,1764,5,1770,1773,5,1809,1809,5,1958,1968,5,2045,2045,5,2075,2083,5,2089,2093,5,2192,2193,1,2250,2273,5,2275,2306,5,2362,2362,5,2364,2364,5,2369,2376,5,2381,2381,5,2385,2391,5,2433,2433,5,2492,2492,5,2495,2496,7,2503,2504,7,2509,2509,5,2530,2531,5,2561,2562,5,2620,2620,5,2625,2626,5,2635,2637,5,2672,2673,5,2689,2690,5,2748,2748,5,2753,2757,5,2761,2761,7,2765,2765,5,2810,2815,5,2818,2819,7,2878,2878,5,2880,2880,7,2887,2888,7,2893,2893,5,2903,2903,5,2946,2946,5,3007,3007,7,3009,3010,7,3018,3020,7,3031,3031,5,3073,3075,7,3132,3132,5,3137,3140,7,3146,3149,5,3170,3171,5,3202,3203,7,3262,3262,7,3264,3265,7,3267,3268,7,3271,3272,7,3276,3277,5,3298,3299,5,3330,3331,7,3390,3390,5,3393,3396,5,3402,3404,7,3406,3406,1,3426,3427,5,3458,3459,7,3535,3535,5,3538,3540,5,3544,3550,7,3570,3571,7,3635,3635,7,3655,3662,5,3763,3763,7,3784,3789,5,3893,3893,5,3897,3897,5,3953,3966,5,3968,3972,5,3981,3991,5,4038,4038,5,4145,4145,7,4153,4154,5,4157,4158,5,4184,4185,5,4209,4212,5,4228,4228,7,4237,4237,5,4352,4447,8,4520,4607,10,5906,5908,5,5938,5939,5,5970,5971,5,6068,6069,5,6071,6077,5,6086,6086,5,6089,6099,5,6155,6157,5,6159,6159,5,6313,6313,5,6435,6438,7,6441,6443,7,6450,6450,5,6457,6459,5,6681,6682,7,6741,6741,7,6743,6743,7,6752,6752,5,6757,6764,5,6771,6780,5,6832,6845,5,6847,6862,5,6916,6916,7,6965,6965,5,6971,6971,7,6973,6977,7,6979,6980,7,7040,7041,5,7073,7073,7,7078,7079,7,7082,7082,7,7142,7142,5,7144,7145,5,7149,7149,5,7151,7153,5,7204,7211,7,7220,7221,7,7376,7378,5,7393,7393,7,7405,7405,5,7415,7415,7,7616,7679,5,8204,8204,5,8206,8207,4,8233,8233,4,8252,8252,14,8288,8292,4,8294,8303,4,8413,8416,5,8418,8420,5,8482,8482,14,8596,8601,14,8986,8987,14,9096,9096,14,9193,9196,14,9199,9199,14,9201,9202,14,9208,9210,14,9642,9643,14,9664,9664,14,9728,9729,14,9732,9732,14,9735,9741,14,9743,9744,14,9746,9746,14,9750,9751,14,9753,9756,14,9758,9759,14,9761,9761,14,9764,9765,14,9767,9769,14,9771,9773,14,9775,9775,14,9784,9785,14,9787,9791,14,9793,9793,14,9795,9799,14,9812,9822,14,9824,9824,14,9827,9827,14,9829,9830,14,9832,9832,14,9851,9851,14,9854,9854,14,9856,9861,14,9874,9874,14,9876,9876,14,9878,9879,14,9881,9881,14,9883,9884,14,9888,9889,14,9895,9895,14,9898,9899,14,9904,9905,14,9917,9918,14,9924,9925,14,9928,9928,14,9934,9934,14,9936,9936,14,9938,9938,14,9940,9940,14,9961,9961,14,9963,9967,14,9970,9971,14,9973,9973,14,9975,9977,14,9979,9980,14,9982,9985,14,9987,9988,14,9992,9996,14,9998,9998,14,10000,10001,14,10004,10004,14,10013,10013,14,10024,10024,14,10052,10052,14,10060,10060,14,10067,10069,14,10083,10083,14,10085,10087,14,10145,10145,14,10175,10175,14,11013,11015,14,11088,11088,14,11503,11505,5,11744,11775,5,12334,12335,5,12349,12349,14,12951,12951,14,42607,42607,5,42612,42621,5,42736,42737,5,43014,43014,5,43043,43044,7,43047,43047,7,43136,43137,7,43204,43205,5,43263,43263,5,43335,43345,5,43360,43388,8,43395,43395,7,43444,43445,7,43450,43451,7,43454,43456,7,43561,43566,5,43569,43570,5,43573,43574,5,43596,43596,5,43644,43644,5,43698,43700,5,43710,43711,5,43755,43755,7,43758,43759,7,43766,43766,5,44005,44005,5,44008,44008,5,44012,44012,7,44032,44032,11,44060,44060,11,44088,44088,11,44116,44116,11,44144,44144,11,44172,44172,11,44200,44200,11,44228,44228,11,44256,44256,11,44284,44284,11,44312,44312,11,44340,44340,11,44368,44368,11,44396,44396,11,44424,44424,11,44452,44452,11,44480,44480,11,44508,44508,11,44536,44536,11,44564,44564,11,44592,44592,11,44620,44620,11,44648,44648,11,44676,44676,11,44704,44704,11,44732,44732,11,44760,44760,11,44788,44788,11,44816,44816,11,44844,44844,11,44872,44872,11,44900,44900,11,44928,44928,11,44956,44956,11,44984,44984,11,45012,45012,11,45040,45040,11,45068,45068,11,45096,45096,11,45124,45124,11,45152,45152,11,45180,45180,11,45208,45208,11,45236,45236,11,45264,45264,11,45292,45292,11,45320,45320,11,45348,45348,11,45376,45376,11,45404,45404,11,45432,45432,11,45460,45460,11,45488,45488,11,45516,45516,11,45544,45544,11,45572,45572,11,45600,45600,11,45628,45628,11,45656,45656,11,45684,45684,11,45712,45712,11,45740,45740,11,45768,45768,11,45796,45796,11,45824,45824,11,45852,45852,11,45880,45880,11,45908,45908,11,45936,45936,11,45964,45964,11,45992,45992,11,46020,46020,11,46048,46048,11,46076,46076,11,46104,46104,11,46132,46132,11,46160,46160,11,46188,46188,11,46216,46216,11,46244,46244,11,46272,46272,11,46300,46300,11,46328,46328,11,46356,46356,11,46384,46384,11,46412,46412,11,46440,46440,11,46468,46468,11,46496,46496,11,46524,46524,11,46552,46552,11,46580,46580,11,46608,46608,11,46636,46636,11,46664,46664,11,46692,46692,11,46720,46720,11,46748,46748,11,46776,46776,11,46804,46804,11,46832,46832,11,46860,46860,11,46888,46888,11,46916,46916,11,46944,46944,11,46972,46972,11,47000,47000,11,47028,47028,11,47056,47056,11,47084,47084,11,47112,47112,11,47140,47140,11,47168,47168,11,47196,47196,11,47224,47224,11,47252,47252,11,47280,47280,11,47308,47308,11,47336,47336,11,47364,47364,11,47392,47392,11,47420,47420,11,47448,47448,11,47476,47476,11,47504,47504,11,47532,47532,11,47560,47560,11,47588,47588,11,47616,47616,11,47644,47644,11,47672,47672,11,47700,47700,11,47728,47728,11,47756,47756,11,47784,47784,11,47812,47812,11,47840,47840,11,47868,47868,11,47896,47896,11,47924,47924,11,47952,47952,11,47980,47980,11,48008,48008,11,48036,48036,11,48064,48064,11,48092,48092,11,48120,48120,11,48148,48148,11,48176,48176,11,48204,48204,11,48232,48232,11,48260,48260,11,48288,48288,11,48316,48316,11,48344,48344,11,48372,48372,11,48400,48400,11,48428,48428,11,48456,48456,11,48484,48484,11,48512,48512,11,48540,48540,11,48568,48568,11,48596,48596,11,48624,48624,11,48652,48652,11,48680,48680,11,48708,48708,11,48736,48736,11,48764,48764,11,48792,48792,11,48820,48820,11,48848,48848,11,48876,48876,11,48904,48904,11,48932,48932,11,48960,48960,11,48988,48988,11,49016,49016,11,49044,49044,11,49072,49072,11,49100,49100,11,49128,49128,11,49156,49156,11,49184,49184,11,49212,49212,11,49240,49240,11,49268,49268,11,49296,49296,11,49324,49324,11,49352,49352,11,49380,49380,11,49408,49408,11,49436,49436,11,49464,49464,11,49492,49492,11,49520,49520,11,49548,49548,11,49576,49576,11,49604,49604,11,49632,49632,11,49660,49660,11,49688,49688,11,49716,49716,11,49744,49744,11,49772,49772,11,49800,49800,11,49828,49828,11,49856,49856,11,49884,49884,11,49912,49912,11,49940,49940,11,49968,49968,11,49996,49996,11,50024,50024,11,50052,50052,11,50080,50080,11,50108,50108,11,50136,50136,11,50164,50164,11,50192,50192,11,50220,50220,11,50248,50248,11,50276,50276,11,50304,50304,11,50332,50332,11,50360,50360,11,50388,50388,11,50416,50416,11,50444,50444,11,50472,50472,11,50500,50500,11,50528,50528,11,50556,50556,11,50584,50584,11,50612,50612,11,50640,50640,11,50668,50668,11,50696,50696,11,50724,50724,11,50752,50752,11,50780,50780,11,50808,50808,11,50836,50836,11,50864,50864,11,50892,50892,11,50920,50920,11,50948,50948,11,50976,50976,11,51004,51004,11,51032,51032,11,51060,51060,11,51088,51088,11,51116,51116,11,51144,51144,11,51172,51172,11,51200,51200,11,51228,51228,11,51256,51256,11,51284,51284,11,51312,51312,11,51340,51340,11,51368,51368,11,51396,51396,11,51424,51424,11,51452,51452,11,51480,51480,11,51508,51508,11,51536,51536,11,51564,51564,11,51592,51592,11,51620,51620,11,51648,51648,11,51676,51676,11,51704,51704,11,51732,51732,11,51760,51760,11,51788,51788,11,51816,51816,11,51844,51844,11,51872,51872,11,51900,51900,11,51928,51928,11,51956,51956,11,51984,51984,11,52012,52012,11,52040,52040,11,52068,52068,11,52096,52096,11,52124,52124,11,52152,52152,11,52180,52180,11,52208,52208,11,52236,52236,11,52264,52264,11,52292,52292,11,52320,52320,11,52348,52348,11,52376,52376,11,52404,52404,11,52432,52432,11,52460,52460,11,52488,52488,11,52516,52516,11,52544,52544,11,52572,52572,11,52600,52600,11,52628,52628,11,52656,52656,11,52684,52684,11,52712,52712,11,52740,52740,11,52768,52768,11,52796,52796,11,52824,52824,11,52852,52852,11,52880,52880,11,52908,52908,11,52936,52936,11,52964,52964,11,52992,52992,11,53020,53020,11,53048,53048,11,53076,53076,11,53104,53104,11,53132,53132,11,53160,53160,11,53188,53188,11,53216,53216,11,53244,53244,11,53272,53272,11,53300,53300,11,53328,53328,11,53356,53356,11,53384,53384,11,53412,53412,11,53440,53440,11,53468,53468,11,53496,53496,11,53524,53524,11,53552,53552,11,53580,53580,11,53608,53608,11,53636,53636,11,53664,53664,11,53692,53692,11,53720,53720,11,53748,53748,11,53776,53776,11,53804,53804,11,53832,53832,11,53860,53860,11,53888,53888,11,53916,53916,11,53944,53944,11,53972,53972,11,54000,54000,11,54028,54028,11,54056,54056,11,54084,54084,11,54112,54112,11,54140,54140,11,54168,54168,11,54196,54196,11,54224,54224,11,54252,54252,11,54280,54280,11,54308,54308,11,54336,54336,11,54364,54364,11,54392,54392,11,54420,54420,11,54448,54448,11,54476,54476,11,54504,54504,11,54532,54532,11,54560,54560,11,54588,54588,11,54616,54616,11,54644,54644,11,54672,54672,11,54700,54700,11,54728,54728,11,54756,54756,11,54784,54784,11,54812,54812,11,54840,54840,11,54868,54868,11,54896,54896,11,54924,54924,11,54952,54952,11,54980,54980,11,55008,55008,11,55036,55036,11,55064,55064,11,55092,55092,11,55120,55120,11,55148,55148,11,55176,55176,11,55216,55238,9,64286,64286,5,65056,65071,5,65438,65439,5,65529,65531,4,66272,66272,5,68097,68099,5,68108,68111,5,68159,68159,5,68900,68903,5,69446,69456,5,69632,69632,7,69634,69634,7,69744,69744,5,69759,69761,5,69808,69810,7,69815,69816,7,69821,69821,1,69837,69837,1,69927,69931,5,69933,69940,5,70003,70003,5,70018,70018,7,70070,70078,5,70082,70083,1,70094,70094,7,70188,70190,7,70194,70195,7,70197,70197,7,70206,70206,5,70368,70370,7,70400,70401,5,70459,70460,5,70463,70463,7,70465,70468,7,70475,70477,7,70498,70499,7,70512,70516,5,70712,70719,5,70722,70724,5,70726,70726,5,70832,70832,5,70835,70840,5,70842,70842,5,70845,70845,5,70847,70848,5,70850,70851,5,71088,71089,7,71096,71099,7,71102,71102,7,71132,71133,5,71219,71226,5,71229,71229,5,71231,71232,5,71340,71340,7,71342,71343,7,71350,71350,7,71453,71455,5,71462,71462,7,71724,71726,7,71736,71736,7,71984,71984,5,71991,71992,7,71997,71997,7,71999,71999,1,72001,72001,1,72003,72003,5,72148,72151,5,72156,72159,7,72164,72164,7,72243,72248,5,72250,72250,1,72263,72263,5,72279,72280,7,72324,72329,1,72343,72343,7,72751,72751,7,72760,72765,5,72767,72767,5,72873,72873,7,72881,72881,7,72884,72884,7,73009,73014,5,73020,73021,5,73030,73030,1,73098,73102,7,73107,73108,7,73110,73110,7,73459,73460,5,78896,78904,4,92976,92982,5,94033,94087,7,94180,94180,5,113821,113822,5,118528,118573,5,119141,119141,5,119143,119145,5,119150,119154,5,119163,119170,5,119210,119213,5,121344,121398,5,121461,121461,5,121499,121503,5,122880,122886,5,122907,122913,5,122918,122922,5,123566,123566,5,125136,125142,5,126976,126979,14,126981,127182,14,127184,127231,14,127279,127279,14,127344,127345,14,127374,127374,14,127405,127461,14,127489,127490,14,127514,127514,14,127538,127546,14,127561,127567,14,127570,127743,14,127757,127758,14,127760,127760,14,127762,127762,14,127766,127768,14,127770,127770,14,127772,127772,14,127775,127776,14,127778,127779,14,127789,127791,14,127794,127795,14,127798,127798,14,127819,127819,14,127824,127824,14,127868,127868,14,127870,127871,14,127892,127893,14,127896,127896,14,127900,127901,14,127904,127940,14,127942,127942,14,127944,127944,14,127946,127946,14,127951,127955,14,127968,127971,14,127973,127984,14,127987,127987,14,127989,127989,14,127991,127991,14,127995,127999,5,128008,128008,14,128012,128014,14,128017,128018,14,128020,128020,14,128022,128022,14,128042,128042,14,128063,128063,14,128065,128065,14,128101,128101,14,128108,128109,14,128173,128173,14,128182,128183,14,128236,128237,14,128239,128239,14,128245,128245,14,128248,128248,14,128253,128253,14,128255,128258,14,128260,128263,14,128265,128265,14,128277,128277,14,128300,128301,14,128326,128328,14,128331,128334,14,128336,128347,14,128360,128366,14,128369,128370,14,128378,128378,14,128391,128391,14,128394,128397,14,128400,128400,14,128405,128406,14,128420,128420,14,128422,128423,14,128425,128432,14,128435,128443,14,128445,128449,14,128453,128464,14,128468,128475,14,128479,128480,14,128482,128482,14,128484,128487,14,128489,128494,14,128496,128498,14,128500,128505,14,128507,128511,14,128513,128518,14,128521,128525,14,128527,128527,14,128529,128529,14,128533,128533,14,128535,128535,14,128537,128537,14]")}var mc;(function(e){e[e.zwj=8205]="zwj",e[e.emojiVariantSelector=65039]="emojiVariantSelector",e[e.enclosingKeyCap=8419]="enclosingKeyCap",e[e.space=32]="space"})(mc||(mc={}));var Xi=class e{static{this.ambiguousCharacterData=new hr(()=>JSON.parse('{"_common":[8232,32,8233,32,5760,32,8192,32,8193,32,8194,32,8195,32,8196,32,8197,32,8198,32,8200,32,8201,32,8202,32,8287,32,8199,32,8239,32,2042,95,65101,95,65102,95,65103,95,8208,45,8209,45,8210,45,65112,45,1748,45,8259,45,727,45,8722,45,10134,45,11450,45,1549,44,1643,44,184,44,42233,44,894,59,2307,58,2691,58,1417,58,1795,58,1796,58,5868,58,65072,58,6147,58,6153,58,8282,58,1475,58,760,58,42889,58,8758,58,720,58,42237,58,451,33,11601,33,660,63,577,63,2429,63,5038,63,42731,63,119149,46,8228,46,1793,46,1794,46,42510,46,68176,46,1632,46,1776,46,42232,46,1373,96,65287,96,8219,96,1523,96,8242,96,1370,96,8175,96,65344,96,900,96,8189,96,8125,96,8127,96,8190,96,697,96,884,96,712,96,714,96,715,96,756,96,699,96,701,96,700,96,702,96,42892,96,1497,96,2036,96,2037,96,5194,96,5836,96,94033,96,94034,96,65339,91,10088,40,10098,40,12308,40,64830,40,65341,93,10089,41,10099,41,12309,41,64831,41,10100,123,119060,123,10101,125,65342,94,8270,42,1645,42,8727,42,66335,42,5941,47,8257,47,8725,47,8260,47,9585,47,10187,47,10744,47,119354,47,12755,47,12339,47,11462,47,20031,47,12035,47,65340,92,65128,92,8726,92,10189,92,10741,92,10745,92,119311,92,119355,92,12756,92,20022,92,12034,92,42872,38,708,94,710,94,5869,43,10133,43,66203,43,8249,60,10094,60,706,60,119350,60,5176,60,5810,60,5120,61,11840,61,12448,61,42239,61,8250,62,10095,62,707,62,119351,62,5171,62,94015,62,8275,126,732,126,8128,126,8764,126,65372,124,65293,45,118002,50,120784,50,120794,50,120804,50,120814,50,120824,50,130034,50,42842,50,423,50,1000,50,42564,50,5311,50,42735,50,119302,51,118003,51,120785,51,120795,51,120805,51,120815,51,120825,51,130035,51,42923,51,540,51,439,51,42858,51,11468,51,1248,51,94011,51,71882,51,118004,52,120786,52,120796,52,120806,52,120816,52,120826,52,130036,52,5070,52,71855,52,118005,53,120787,53,120797,53,120807,53,120817,53,120827,53,130037,53,444,53,71867,53,118006,54,120788,54,120798,54,120808,54,120818,54,120828,54,130038,54,11474,54,5102,54,71893,54,119314,55,118007,55,120789,55,120799,55,120809,55,120819,55,120829,55,130039,55,66770,55,71878,55,2819,56,2538,56,2666,56,125131,56,118008,56,120790,56,120800,56,120810,56,120820,56,120830,56,130040,56,547,56,546,56,66330,56,2663,57,2920,57,2541,57,3437,57,118009,57,120791,57,120801,57,120811,57,120821,57,120831,57,130041,57,42862,57,11466,57,71884,57,71852,57,71894,57,9082,97,65345,97,119834,97,119886,97,119938,97,119990,97,120042,97,120094,97,120146,97,120198,97,120250,97,120302,97,120354,97,120406,97,120458,97,593,97,945,97,120514,97,120572,97,120630,97,120688,97,120746,97,65313,65,117974,65,119808,65,119860,65,119912,65,119964,65,120016,65,120068,65,120120,65,120172,65,120224,65,120276,65,120328,65,120380,65,120432,65,913,65,120488,65,120546,65,120604,65,120662,65,120720,65,5034,65,5573,65,42222,65,94016,65,66208,65,119835,98,119887,98,119939,98,119991,98,120043,98,120095,98,120147,98,120199,98,120251,98,120303,98,120355,98,120407,98,120459,98,388,98,5071,98,5234,98,5551,98,65314,66,8492,66,117975,66,119809,66,119861,66,119913,66,120017,66,120069,66,120121,66,120173,66,120225,66,120277,66,120329,66,120381,66,120433,66,42932,66,914,66,120489,66,120547,66,120605,66,120663,66,120721,66,5108,66,5623,66,42192,66,66178,66,66209,66,66305,66,65347,99,8573,99,119836,99,119888,99,119940,99,119992,99,120044,99,120096,99,120148,99,120200,99,120252,99,120304,99,120356,99,120408,99,120460,99,7428,99,1010,99,11429,99,43951,99,66621,99,128844,67,71913,67,71922,67,65315,67,8557,67,8450,67,8493,67,117976,67,119810,67,119862,67,119914,67,119966,67,120018,67,120174,67,120226,67,120278,67,120330,67,120382,67,120434,67,1017,67,11428,67,5087,67,42202,67,66210,67,66306,67,66581,67,66844,67,8574,100,8518,100,119837,100,119889,100,119941,100,119993,100,120045,100,120097,100,120149,100,120201,100,120253,100,120305,100,120357,100,120409,100,120461,100,1281,100,5095,100,5231,100,42194,100,8558,68,8517,68,117977,68,119811,68,119863,68,119915,68,119967,68,120019,68,120071,68,120123,68,120175,68,120227,68,120279,68,120331,68,120383,68,120435,68,5024,68,5598,68,5610,68,42195,68,8494,101,65349,101,8495,101,8519,101,119838,101,119890,101,119942,101,120046,101,120098,101,120150,101,120202,101,120254,101,120306,101,120358,101,120410,101,120462,101,43826,101,1213,101,8959,69,65317,69,8496,69,117978,69,119812,69,119864,69,119916,69,120020,69,120072,69,120124,69,120176,69,120228,69,120280,69,120332,69,120384,69,120436,69,917,69,120492,69,120550,69,120608,69,120666,69,120724,69,11577,69,5036,69,42224,69,71846,69,71854,69,66182,69,119839,102,119891,102,119943,102,119995,102,120047,102,120099,102,120151,102,120203,102,120255,102,120307,102,120359,102,120411,102,120463,102,43829,102,42905,102,383,102,7837,102,1412,102,119315,70,8497,70,117979,70,119813,70,119865,70,119917,70,120021,70,120073,70,120125,70,120177,70,120229,70,120281,70,120333,70,120385,70,120437,70,42904,70,988,70,120778,70,5556,70,42205,70,71874,70,71842,70,66183,70,66213,70,66853,70,65351,103,8458,103,119840,103,119892,103,119944,103,120048,103,120100,103,120152,103,120204,103,120256,103,120308,103,120360,103,120412,103,120464,103,609,103,7555,103,397,103,1409,103,117980,71,119814,71,119866,71,119918,71,119970,71,120022,71,120074,71,120126,71,120178,71,120230,71,120282,71,120334,71,120386,71,120438,71,1292,71,5056,71,5107,71,42198,71,65352,104,8462,104,119841,104,119945,104,119997,104,120049,104,120101,104,120153,104,120205,104,120257,104,120309,104,120361,104,120413,104,120465,104,1211,104,1392,104,5058,104,65320,72,8459,72,8460,72,8461,72,117981,72,119815,72,119867,72,119919,72,120023,72,120179,72,120231,72,120283,72,120335,72,120387,72,120439,72,919,72,120494,72,120552,72,120610,72,120668,72,120726,72,11406,72,5051,72,5500,72,42215,72,66255,72,731,105,9075,105,65353,105,8560,105,8505,105,8520,105,119842,105,119894,105,119946,105,119998,105,120050,105,120102,105,120154,105,120206,105,120258,105,120310,105,120362,105,120414,105,120466,105,120484,105,618,105,617,105,953,105,8126,105,890,105,120522,105,120580,105,120638,105,120696,105,120754,105,1110,105,42567,105,1231,105,43893,105,5029,105,71875,105,65354,106,8521,106,119843,106,119895,106,119947,106,119999,106,120051,106,120103,106,120155,106,120207,106,120259,106,120311,106,120363,106,120415,106,120467,106,1011,106,1112,106,65322,74,117983,74,119817,74,119869,74,119921,74,119973,74,120025,74,120077,74,120129,74,120181,74,120233,74,120285,74,120337,74,120389,74,120441,74,42930,74,895,74,1032,74,5035,74,5261,74,42201,74,119844,107,119896,107,119948,107,120000,107,120052,107,120104,107,120156,107,120208,107,120260,107,120312,107,120364,107,120416,107,120468,107,8490,75,65323,75,117984,75,119818,75,119870,75,119922,75,119974,75,120026,75,120078,75,120130,75,120182,75,120234,75,120286,75,120338,75,120390,75,120442,75,922,75,120497,75,120555,75,120613,75,120671,75,120729,75,11412,75,5094,75,5845,75,42199,75,66840,75,1472,108,8739,73,9213,73,65512,73,1633,108,1777,73,66336,108,125127,108,118001,108,120783,73,120793,73,120803,73,120813,73,120823,73,130033,73,65321,73,8544,73,8464,73,8465,73,117982,108,119816,73,119868,73,119920,73,120024,73,120128,73,120180,73,120232,73,120284,73,120336,73,120388,73,120440,73,65356,108,8572,73,8467,108,119845,108,119897,108,119949,108,120001,108,120053,108,120105,73,120157,73,120209,73,120261,73,120313,73,120365,73,120417,73,120469,73,448,73,120496,73,120554,73,120612,73,120670,73,120728,73,11410,73,1030,73,1216,73,1493,108,1503,108,1575,108,126464,108,126592,108,65166,108,65165,108,1994,108,11599,73,5825,73,42226,73,93992,73,66186,124,66313,124,119338,76,8556,76,8466,76,117985,76,119819,76,119871,76,119923,76,120027,76,120079,76,120131,76,120183,76,120235,76,120287,76,120339,76,120391,76,120443,76,11472,76,5086,76,5290,76,42209,76,93974,76,71843,76,71858,76,66587,76,66854,76,65325,77,8559,77,8499,77,117986,77,119820,77,119872,77,119924,77,120028,77,120080,77,120132,77,120184,77,120236,77,120288,77,120340,77,120392,77,120444,77,924,77,120499,77,120557,77,120615,77,120673,77,120731,77,1018,77,11416,77,5047,77,5616,77,5846,77,42207,77,66224,77,66321,77,119847,110,119899,110,119951,110,120003,110,120055,110,120107,110,120159,110,120211,110,120263,110,120315,110,120367,110,120419,110,120471,110,1400,110,1404,110,65326,78,8469,78,117987,78,119821,78,119873,78,119925,78,119977,78,120029,78,120081,78,120185,78,120237,78,120289,78,120341,78,120393,78,120445,78,925,78,120500,78,120558,78,120616,78,120674,78,120732,78,11418,78,42208,78,66835,78,3074,111,3202,111,3330,111,3458,111,2406,111,2662,111,2790,111,3046,111,3174,111,3302,111,3430,111,3664,111,3792,111,4160,111,1637,111,1781,111,65359,111,8500,111,119848,111,119900,111,119952,111,120056,111,120108,111,120160,111,120212,111,120264,111,120316,111,120368,111,120420,111,120472,111,7439,111,7441,111,43837,111,959,111,120528,111,120586,111,120644,111,120702,111,120760,111,963,111,120532,111,120590,111,120648,111,120706,111,120764,111,11423,111,4351,111,1413,111,1505,111,1607,111,126500,111,126564,111,126596,111,65259,111,65260,111,65258,111,65257,111,1726,111,64428,111,64429,111,64427,111,64426,111,1729,111,64424,111,64425,111,64423,111,64422,111,1749,111,3360,111,4125,111,66794,111,71880,111,71895,111,66604,111,1984,79,2534,79,2918,79,12295,79,70864,79,71904,79,118000,79,120782,79,120792,79,120802,79,120812,79,120822,79,130032,79,65327,79,117988,79,119822,79,119874,79,119926,79,119978,79,120030,79,120082,79,120134,79,120186,79,120238,79,120290,79,120342,79,120394,79,120446,79,927,79,120502,79,120560,79,120618,79,120676,79,120734,79,11422,79,1365,79,11604,79,4816,79,2848,79,66754,79,42227,79,71861,79,66194,79,66219,79,66564,79,66838,79,9076,112,65360,112,119849,112,119901,112,119953,112,120005,112,120057,112,120109,112,120161,112,120213,112,120265,112,120317,112,120369,112,120421,112,120473,112,961,112,120530,112,120544,112,120588,112,120602,112,120646,112,120660,112,120704,112,120718,112,120762,112,120776,112,11427,112,65328,80,8473,80,117989,80,119823,80,119875,80,119927,80,119979,80,120031,80,120083,80,120187,80,120239,80,120291,80,120343,80,120395,80,120447,80,929,80,120504,80,120562,80,120620,80,120678,80,120736,80,11426,80,5090,80,5229,80,42193,80,66197,80,119850,113,119902,113,119954,113,120006,113,120058,113,120110,113,120162,113,120214,113,120266,113,120318,113,120370,113,120422,113,120474,113,1307,113,1379,113,1382,113,8474,81,117990,81,119824,81,119876,81,119928,81,119980,81,120032,81,120084,81,120188,81,120240,81,120292,81,120344,81,120396,81,120448,81,11605,81,119851,114,119903,114,119955,114,120007,114,120059,114,120111,114,120163,114,120215,114,120267,114,120319,114,120371,114,120423,114,120475,114,43847,114,43848,114,7462,114,11397,114,43905,114,119318,82,8475,82,8476,82,8477,82,117991,82,119825,82,119877,82,119929,82,120033,82,120189,82,120241,82,120293,82,120345,82,120397,82,120449,82,422,82,5025,82,5074,82,66740,82,5511,82,42211,82,94005,82,65363,115,119852,115,119904,115,119956,115,120008,115,120060,115,120112,115,120164,115,120216,115,120268,115,120320,115,120372,115,120424,115,120476,115,42801,115,445,115,1109,115,43946,115,71873,115,66632,115,65331,83,117992,83,119826,83,119878,83,119930,83,119982,83,120034,83,120086,83,120138,83,120190,83,120242,83,120294,83,120346,83,120398,83,120450,83,1029,83,1359,83,5077,83,5082,83,42210,83,94010,83,66198,83,66592,83,119853,116,119905,116,119957,116,120009,116,120061,116,120113,116,120165,116,120217,116,120269,116,120321,116,120373,116,120425,116,120477,116,8868,84,10201,84,128872,84,65332,84,117993,84,119827,84,119879,84,119931,84,119983,84,120035,84,120087,84,120139,84,120191,84,120243,84,120295,84,120347,84,120399,84,120451,84,932,84,120507,84,120565,84,120623,84,120681,84,120739,84,11430,84,5026,84,42196,84,93962,84,71868,84,66199,84,66225,84,66325,84,119854,117,119906,117,119958,117,120010,117,120062,117,120114,117,120166,117,120218,117,120270,117,120322,117,120374,117,120426,117,120478,117,42911,117,7452,117,43854,117,43858,117,651,117,965,117,120534,117,120592,117,120650,117,120708,117,120766,117,1405,117,66806,117,71896,117,8746,85,8899,85,117994,85,119828,85,119880,85,119932,85,119984,85,120036,85,120088,85,120140,85,120192,85,120244,85,120296,85,120348,85,120400,85,120452,85,1357,85,4608,85,66766,85,5196,85,42228,85,94018,85,71864,85,8744,118,8897,118,65366,118,8564,118,119855,118,119907,118,119959,118,120011,118,120063,118,120115,118,120167,118,120219,118,120271,118,120323,118,120375,118,120427,118,120479,118,7456,118,957,118,120526,118,120584,118,120642,118,120700,118,120758,118,1141,118,1496,118,71430,118,43945,118,71872,118,119309,86,1639,86,1783,86,8548,86,117995,86,119829,86,119881,86,119933,86,119985,86,120037,86,120089,86,120141,86,120193,86,120245,86,120297,86,120349,86,120401,86,120453,86,1140,86,11576,86,5081,86,5167,86,42719,86,42214,86,93960,86,71840,86,66845,86,623,119,119856,119,119908,119,119960,119,120012,119,120064,119,120116,119,120168,119,120220,119,120272,119,120324,119,120376,119,120428,119,120480,119,7457,119,1121,119,1309,119,1377,119,71434,119,71438,119,71439,119,43907,119,71910,87,71919,87,117996,87,119830,87,119882,87,119934,87,119986,87,120038,87,120090,87,120142,87,120194,87,120246,87,120298,87,120350,87,120402,87,120454,87,1308,87,5043,87,5076,87,42218,87,5742,120,10539,120,10540,120,10799,120,65368,120,8569,120,119857,120,119909,120,119961,120,120013,120,120065,120,120117,120,120169,120,120221,120,120273,120,120325,120,120377,120,120429,120,120481,120,5441,120,5501,120,5741,88,9587,88,66338,88,71916,88,65336,88,8553,88,117997,88,119831,88,119883,88,119935,88,119987,88,120039,88,120091,88,120143,88,120195,88,120247,88,120299,88,120351,88,120403,88,120455,88,42931,88,935,88,120510,88,120568,88,120626,88,120684,88,120742,88,11436,88,11613,88,5815,88,42219,88,66192,88,66228,88,66327,88,66855,88,611,121,7564,121,65369,121,119858,121,119910,121,119962,121,120014,121,120066,121,120118,121,120170,121,120222,121,120274,121,120326,121,120378,121,120430,121,120482,121,655,121,7935,121,43866,121,947,121,8509,121,120516,121,120574,121,120632,121,120690,121,120748,121,1199,121,4327,121,71900,121,65337,89,117998,89,119832,89,119884,89,119936,89,119988,89,120040,89,120092,89,120144,89,120196,89,120248,89,120300,89,120352,89,120404,89,120456,89,933,89,978,89,120508,89,120566,89,120624,89,120682,89,120740,89,11432,89,1198,89,5033,89,5053,89,42220,89,94019,89,71844,89,66226,89,119859,122,119911,122,119963,122,120015,122,120067,122,120119,122,120171,122,120223,122,120275,122,120327,122,120379,122,120431,122,120483,122,7458,122,43923,122,71876,122,71909,90,66293,90,65338,90,8484,90,8488,90,117999,90,119833,90,119885,90,119937,90,119989,90,120041,90,120197,90,120249,90,120301,90,120353,90,120405,90,120457,90,918,90,120493,90,120551,90,120609,90,120667,90,120725,90,5059,90,42204,90,71849,90,65282,34,65283,35,65284,36,65285,37,65286,38,65290,42,65291,43,65294,46,65295,47,65296,48,65298,50,65299,51,65300,52,65301,53,65302,54,65303,55,65304,56,65305,57,65308,60,65309,61,65310,62,65312,64,65316,68,65318,70,65319,71,65324,76,65329,81,65330,82,65333,85,65334,86,65335,87,65343,95,65346,98,65348,100,65350,102,65355,107,65357,109,65358,110,65361,113,65362,114,65364,116,65365,117,65367,119,65370,122,65371,123,65373,125,119846,109],"_default":[160,32,8211,45,65374,126,8218,44,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65288,40,65289,41,65292,44,65297,49,65307,59,65311,63],"cs":[65374,126,8218,44,65306,58,65281,33,8216,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,1093,120,1061,88,1091,121,1059,89,65288,40,65289,41,65292,44,65297,49,65307,59,65311,63],"de":[65374,126,65306,58,65281,33,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,1093,120,1061,88,1091,121,1059,89,65288,40,65289,41,65292,44,65297,49,65307,59,65311,63],"es":[8211,45,65374,126,8218,44,65306,58,65281,33,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65288,40,65289,41,65292,44,65297,49,65307,59,65311,63],"fr":[65374,126,8218,44,65306,58,65281,33,8216,96,8245,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65288,40,65289,41,65292,44,65297,49,65307,59,65311,63],"it":[160,32,8211,45,65374,126,8218,44,65306,58,65281,33,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65288,40,65289,41,65292,44,65297,49,65307,59,65311,63],"ja":[8211,45,8218,44,65281,33,8216,96,8245,96,180,96,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65292,44,65297,49,65307,59],"ko":[8211,45,65374,126,8218,44,65306,58,65281,33,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65288,40,65289,41,65292,44,65297,49,65307,59,65311,63],"pl":[65374,126,65306,58,65281,33,8216,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65288,40,65289,41,65292,44,65297,49,65307,59,65311,63],"pt-BR":[65374,126,8218,44,65306,58,65281,33,8216,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65288,40,65289,41,65292,44,65297,49,65307,59,65311,63],"qps-ploc":[160,32,8211,45,65374,126,8218,44,65306,58,65281,33,8216,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65288,40,65289,41,65292,44,65297,49,65307,59,65311,63],"ru":[65374,126,8218,44,65306,58,65281,33,8216,96,8245,96,180,96,12494,47,305,105,921,73,1009,112,215,120,65288,40,65289,41,65292,44,65297,49,65307,59,65311,63],"tr":[160,32,8211,45,65374,126,8218,44,65306,58,65281,33,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65288,40,65289,41,65292,44,65297,49,65307,59,65311,63],"zh-hans":[160,32,65374,126,8218,44,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65297,49],"zh-hant":[8211,45,65374,126,8218,44,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89]}'))}static{this.cache=new Aa(t=>{let n=t.split(",");function r(f){let d=new Map;for(let m=0;m<f.length;m+=2)d.set(f[m],f[m+1]);return d}function i(f,d){let m=new Map(f);for(let[g,E]of d)m.set(g,E);return m}function s(f,d){if(!f)return d;let m=new Map;for(let[g,E]of f)d.has(g)&&m.set(g,E);return m}let o=this.ambiguousCharacterData.value,a=n.filter(f=>!f.startsWith("_")&&Object.hasOwn(o,f));a.length===0&&(a=["_default"]);let u;for(let f of a){let d=r(o[f]);u=s(u,d)}let l=r(o._common),c=i(l,u);return new e(c)})}static getInstance(t){return e.cache.get(Array.from(t).join(","))}static{this._locales=new hr(()=>Object.keys(e.ambiguousCharacterData.value).filter(t=>!t.startsWith("_")))}static getLocales(){return e._locales.value}constructor(t){this.confusableDictionary=t}isAmbiguous(t){return this.confusableDictionary.has(t)}containsAmbiguousCharacter(t){for(let n=0;n<t.length;n++){let r=t.codePointAt(n);if(typeof r=="number"&&this.isAmbiguous(r))return!0}return!1}getPrimaryConfusable(t){return this.confusableDictionary.get(t)}getConfusableCodePoints(){return new Set(this.confusableDictionary.keys())}},Ji=class e{static getRawData(){return JSON.parse('{"_common":[11,12,13,127,847,1564,4447,4448,6068,6069,6155,6156,6157,6158,7355,7356,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8204,8205,8206,8207,8234,8235,8236,8237,8238,8239,8287,8288,8289,8290,8291,8292,8293,8294,8295,8296,8297,8298,8299,8300,8301,8302,8303,10240,12644,65024,65025,65026,65027,65028,65029,65030,65031,65032,65033,65034,65035,65036,65037,65038,65039,65279,65440,65520,65521,65522,65523,65524,65525,65526,65527,65528,65532,78844,119155,119156,119157,119158,119159,119160,119161,119162,917504,917505,917506,917507,917508,917509,917510,917511,917512,917513,917514,917515,917516,917517,917518,917519,917520,917521,917522,917523,917524,917525,917526,917527,917528,917529,917530,917531,917532,917533,917534,917535,917536,917537,917538,917539,917540,917541,917542,917543,917544,917545,917546,917547,917548,917549,917550,917551,917552,917553,917554,917555,917556,917557,917558,917559,917560,917561,917562,917563,917564,917565,917566,917567,917568,917569,917570,917571,917572,917573,917574,917575,917576,917577,917578,917579,917580,917581,917582,917583,917584,917585,917586,917587,917588,917589,917590,917591,917592,917593,917594,917595,917596,917597,917598,917599,917600,917601,917602,917603,917604,917605,917606,917607,917608,917609,917610,917611,917612,917613,917614,917615,917616,917617,917618,917619,917620,917621,917622,917623,917624,917625,917626,917627,917628,917629,917630,917631,917760,917761,917762,917763,917764,917765,917766,917767,917768,917769,917770,917771,917772,917773,917774,917775,917776,917777,917778,917779,917780,917781,917782,917783,917784,917785,917786,917787,917788,917789,917790,917791,917792,917793,917794,917795,917796,917797,917798,917799,917800,917801,917802,917803,917804,917805,917806,917807,917808,917809,917810,917811,917812,917813,917814,917815,917816,917817,917818,917819,917820,917821,917822,917823,917824,917825,917826,917827,917828,917829,917830,917831,917832,917833,917834,917835,917836,917837,917838,917839,917840,917841,917842,917843,917844,917845,917846,917847,917848,917849,917850,917851,917852,917853,917854,917855,917856,917857,917858,917859,917860,917861,917862,917863,917864,917865,917866,917867,917868,917869,917870,917871,917872,917873,917874,917875,917876,917877,917878,917879,917880,917881,917882,917883,917884,917885,917886,917887,917888,917889,917890,917891,917892,917893,917894,917895,917896,917897,917898,917899,917900,917901,917902,917903,917904,917905,917906,917907,917908,917909,917910,917911,917912,917913,917914,917915,917916,917917,917918,917919,917920,917921,917922,917923,917924,917925,917926,917927,917928,917929,917930,917931,917932,917933,917934,917935,917936,917937,917938,917939,917940,917941,917942,917943,917944,917945,917946,917947,917948,917949,917950,917951,917952,917953,917954,917955,917956,917957,917958,917959,917960,917961,917962,917963,917964,917965,917966,917967,917968,917969,917970,917971,917972,917973,917974,917975,917976,917977,917978,917979,917980,917981,917982,917983,917984,917985,917986,917987,917988,917989,917990,917991,917992,917993,917994,917995,917996,917997,917998,917999],"cs":[173,8203,12288],"de":[173,8203,12288],"es":[8203,12288],"fr":[173,8203,12288],"it":[160,173,12288],"ja":[173],"ko":[173,12288],"pl":[173,8203,12288],"pt-BR":[173,8203,12288],"qps-ploc":[160,173,8203,12288],"ru":[173,12288],"tr":[160,173,8203,12288],"zh-hans":[160,173,8203,12288],"zh-hant":[173,12288]}')}static{this._data=void 0}static getData(){return this._data||(this._data=new Set([...Object.values(e.getRawData())].flat())),this._data}static isInvisibleCharacter(t){return e.getData().has(t)}static containsInvisibleCharacter(t){for(let n=0;n<t.length;n++){let r=t.codePointAt(n);if(typeof r=="number"&&(e.isInvisibleCharacter(r)||r===mc.space))return!0}return!1}static get codePoints(){return e.getData()}};var Dc="default",aE="$initialize";var Yt;(function(e){e[e.Request=0]="Request",e[e.Reply=1]="Reply",e[e.SubscribeEvent=2]="SubscribeEvent",e[e.Event=3]="Event",e[e.UnsubscribeEvent=4]="UnsubscribeEvent"})(Yt||(Yt={}));var bc=class{constructor(t,n,r,i,s){this.vsWorker=t,this.req=n,this.channel=r,this.method=i,this.args=s,this.type=Yt.Request}},Ia=class{constructor(t,n,r,i){this.vsWorker=t,this.seq=n,this.res=r,this.err=i,this.type=Yt.Reply}},vc=class{constructor(t,n,r,i,s){this.vsWorker=t,this.req=n,this.channel=r,this.eventName=i,this.arg=s,this.type=Yt.SubscribeEvent}},Nc=class{constructor(t,n,r){this.vsWorker=t,this.req=n,this.event=r,this.type=Yt.Event}},Tc=class{constructor(t,n){this.vsWorker=t,this.req=n,this.type=Yt.UnsubscribeEvent}},wc=class{constructor(t){this._workerId=-1,this._handler=t,this._lastSentReq=0,this._pendingReplies=Object.create(null),this._pendingEmitters=new Map,this._pendingEvents=new Map}setWorkerId(t){this._workerId=t}async sendMessage(t,n,r){let i=String(++this._lastSentReq);return new Promise((s,o)=>{this._pendingReplies[i]={resolve:s,reject:o},this._send(new bc(this._workerId,i,t,n,r))})}listen(t,n,r){let i=null,s=new Tt({onWillAddFirstListener:()=>{i=String(++this._lastSentReq),this._pendingEmitters.set(i,s),this._send(new vc(this._workerId,i,t,n,r))},onDidRemoveLastListener:()=>{this._pendingEmitters.delete(i),this._send(new Tc(this._workerId,i)),i=null}});return s.event}handleMessage(t){!t||!t.vsWorker||this._workerId!==-1&&t.vsWorker!==this._workerId||this._handleMessage(t)}createProxyToRemoteChannel(t,n){let r={get:(i,s)=>(typeof s=="string"&&!i[s]&&(Up(s)?i[s]=o=>this.listen(t,s,o):Mp(s)?i[s]=this.listen(t,s,void 0):s.charCodeAt(0)===M.DollarSign&&(i[s]=async(...o)=>(await n?.(),this.sendMessage(t,s,o)))),i[s])};return new Proxy(Object.create(null),r)}_handleMessage(t){switch(t.type){case Yt.Reply:return this._handleReplyMessage(t);case Yt.Request:return this._handleRequestMessage(t);case Yt.SubscribeEvent:return this._handleSubscribeEventMessage(t);case Yt.Event:return this._handleEventMessage(t);case Yt.UnsubscribeEvent:return this._handleUnsubscribeEventMessage(t)}}_handleReplyMessage(t){if(!this._pendingReplies[t.seq]){console.warn("Got reply to unknown seq");return}let n=this._pendingReplies[t.seq];if(delete this._pendingReplies[t.seq],t.err){let r=t.err;if(t.err.$isError){let i=new Error;i.name=t.err.name,i.message=t.err.message,i.stack=t.err.stack,r=i}n.reject(r);return}n.resolve(t.res)}_handleRequestMessage(t){let n=t.req;this._handler.handleMessage(t.channel,t.method,t.args).then(i=>{this._send(new Ia(this._workerId,n,i,void 0))},i=>{i.detail instanceof Error&&(i.detail=va(i.detail)),this._send(new Ia(this._workerId,n,void 0,va(i)))})}_handleSubscribeEventMessage(t){let n=t.req,r=this._handler.handleEvent(t.channel,t.eventName,t.arg)(i=>{this._send(new Nc(this._workerId,n,i))});this._pendingEvents.set(n,r)}_handleEventMessage(t){let n=this._pendingEmitters.get(t.req);if(n===void 0){console.warn("Got event for unknown req");return}n.fire(t.event)}_handleUnsubscribeEventMessage(t){let n=this._pendingEvents.get(t.req);if(n===void 0){console.warn("Got unsubscribe for unknown req");return}n.dispose(),this._pendingEvents.delete(t.req)}_send(t){let n=[];if(t.type===Yt.Request)for(let r=0;r<t.args.length;r++){let i=t.args[r];i instanceof ArrayBuffer&&n.push(i)}else t.type===Yt.Reply&&t.res instanceof ArrayBuffer&&n.push(t.res);this._handler.sendMessage(t,n)}};function Mp(e){return e[0]==="o"&&e[1]==="n"&&gc(e.charCodeAt(2))}function Up(e){return/^onDynamic/.test(e)&&gc(e.charCodeAt(9))}var Oa=class{constructor(t,n){this._localChannels=new Map,this._remoteChannels=new Map,this._protocol=new wc({sendMessage:(r,i)=>{t(r,i)},handleMessage:(r,i,s)=>this._handleMessage(r,i,s),handleEvent:(r,i,s)=>this._handleEvent(r,i,s)}),this.requestHandler=n(this)}onmessage(t){this._protocol.handleMessage(t)}_handleMessage(t,n,r){if(t===Dc&&n===aE)return this.initialize(r[0]);let i=t===Dc?this.requestHandler:this._localChannels.get(t);if(!i)return Promise.reject(new Error(`Missing channel ${t} on worker thread`));let s=i[n];if(typeof s!="function")return Promise.reject(new Error(`Missing method ${n} on worker thread channel ${t}`));try{return Promise.resolve(s.apply(i,r))}catch(o){return Promise.reject(o)}}_handleEvent(t,n,r){let i=t===Dc?this.requestHandler:this._localChannels.get(t);if(!i)throw new Error(`Missing channel ${t} on worker thread`);if(Up(n)){let s=i[n];if(typeof s!="function")throw new Error(`Missing dynamic event ${n} on request handler.`);let o=s.call(i,r);if(typeof o!="function")throw new Error(`Missing dynamic event ${n} on request handler.`);return o}if(Mp(n)){let s=i[n];if(typeof s!="function")throw new Error(`Missing event ${n} on request handler.`);return s}throw new Error(`Malformed event name ${n}`)}setChannel(t,n){this._localChannels.set(t,n)}getChannel(t){let n=this._remoteChannels.get(t);return n===void 0&&(n=this._protocol.createProxyToRemoteChannel(t),this._remoteChannels.set(t,n)),n}async initialize(t){this._protocol.setWorkerId(t)}};var xc=!1;function yc(e){if(xc)throw new Error("WebWorker already initialized!");xc=!0;let t=new Oa(n=>globalThis.postMessage(n),n=>e(n));return globalThis.onmessage=n=>{t.onmessage(n.data)},t}function Pp(e){globalThis.onmessage=t=>{xc||yc(e)}}var Nn=class{constructor(t,n,r,i){this.originalStart=t,this.originalLength=n,this.modifiedStart=r,this.modifiedLength=i}getOriginalEnd(){return this.originalStart+this.originalLength}getModifiedEnd(){return this.modifiedStart+this.modifiedLength}};var bo=typeof Buffer<"u",uE=new hr(()=>new Uint8Array(256)),Lc,Ac,ka=class e{static alloc(t){return bo?new e(Buffer.allocUnsafe(t)):new e(new Uint8Array(t))}static wrap(t){return bo&&!Buffer.isBuffer(t)&&(t=Buffer.from(t.buffer,t.byteOffset,t.byteLength)),new e(t)}static fromString(t,n){return!(n?.dontUseNodeBuffer||!1)&&bo?new e(Buffer.from(t)):(Lc||(Lc=new TextEncoder),new e(Lc.encode(t)))}static fromByteArray(t){let n=e.alloc(t.length);for(let r=0,i=t.length;r<i;r++)n.buffer[r]=t[r];return n}static concat(t,n){if(typeof n>"u"){n=0;for(let s=0,o=t.length;s<o;s++)n+=t[s].byteLength}let r=e.alloc(n),i=0;for(let s=0,o=t.length;s<o;s++){let a=t[s];r.set(a,i),i+=a.byteLength}return r}static isNativeBuffer(t){return bo&&Buffer.isBuffer(t)}constructor(t){this.buffer=t,this.byteLength=this.buffer.byteLength}clone(){let t=e.alloc(this.byteLength);return t.set(this),t}toString(){return bo?this.buffer.toString():(Ac||(Ac=new TextDecoder(void 0,{ignoreBOM:!0})),Ac.decode(this.buffer))}slice(t,n){return new e(this.buffer.subarray(t,n))}set(t,n){if(t instanceof e)this.buffer.set(t.buffer,n);else if(t instanceof Uint8Array)this.buffer.set(t,n);else if(t instanceof ArrayBuffer)this.buffer.set(new Uint8Array(t),n);else if(ArrayBuffer.isView(t))this.buffer.set(new Uint8Array(t.buffer,t.byteOffset,t.byteLength),n);else throw new Error("Unknown argument 'array'")}readUInt32BE(t){return cE(this.buffer,t)}writeUInt32BE(t,n){fE(this.buffer,t,n)}readUInt32LE(t){return hE(this.buffer,t)}writeUInt32LE(t,n){pE(this.buffer,t,n)}readUInt8(t){return dE(this.buffer,t)}writeUInt8(t,n){mE(this.buffer,t,n)}indexOf(t,n=0){return lE(this.buffer,t instanceof e?t.buffer:t,n)}equals(t){return this===t?!0:this.byteLength!==t.byteLength?!1:this.buffer.every((n,r)=>n===t.buffer[r])}};function lE(e,t,n=0){let r=t.byteLength,i=e.byteLength;if(r===0)return 0;if(r===1)return e.indexOf(t[0]);if(r>i-n)return-1;let s=uE.value;s.fill(t.length);for(let l=0;l<t.length;l++)s[t[l]]=t.length-l-1;let o=n+t.length-1,a=o,u=-1;for(;o<i;)if(e[o]===t[a]){if(a===0){u=o;break}o--,a--}else o+=Math.max(t.length-a,s[e[o]]),a=t.length-1;return u}function cE(e,t){return e[t]*2**24+e[t+1]*2**16+e[t+2]*2**8+e[t+3]}function fE(e,t,n){e[n+3]=t,t=t>>>8,e[n+2]=t,t=t>>>8,e[n+1]=t,t=t>>>8,e[n]=t}function hE(e,t){return e[t+0]<<0>>>0|e[t+1]<<8>>>0|e[t+2]<<16>>>0|e[t+3]<<24>>>0}function pE(e,t,n){e[n+0]=t&255,t=t>>>8,e[n+1]=t&255,t=t>>>8,e[n+2]=t&255,t=t>>>8,e[n+3]=t&255}function dE(e,t){return e[t]}function mE(e,t,n){e[n]=t}var Bp="0123456789abcdef";function Cp({buffer:e}){let t="";for(let n=0;n<e.length;n++){let r=e[n];t+=Bp[r>>>4],t+=Bp[r&15]}return t}function Vp(e,t){return(t<<5)-t+e|0}function jp(e,t){t=Vp(149417,t);for(let n=0,r=e.length;n<r;n++)t=Vp(e.charCodeAt(n),t);return t}var dn;(function(e){e[e.BLOCK_SIZE=64]="BLOCK_SIZE",e[e.UNICODE_REPLACEMENT=65533]="UNICODE_REPLACEMENT"})(dn||(dn={}));function Fc(e,t,n=32){let r=n-t,i=~((1<<r)-1);return(e<<t|(i&e)>>>r)>>>0}function vo(e,t=32){return e instanceof ArrayBuffer?Cp(ka.wrap(new Uint8Array(e))):(e>>>0).toString(16).padStart(t/4,"0")}var $p=class e{static{this._bigBlock32=new DataView(new ArrayBuffer(320))}constructor(){this._h0=1732584193,this._h1=4023233417,this._h2=2562383102,this._h3=271733878,this._h4=3285377520,this._buff=new Uint8Array(dn.BLOCK_SIZE+3),this._buffDV=new DataView(this._buff.buffer),this._buffLen=0,this._totalLen=0,this._leftoverHighSurrogate=0,this._finished=!1}update(t){let n=t.length;if(n===0)return;let r=this._buff,i=this._buffLen,s=this._leftoverHighSurrogate,o,a;for(s!==0?(o=s,a=-1,s=0):(o=t.charCodeAt(0),a=0);;){let u=o;if(es(o))if(a+1<n){let l=t.charCodeAt(a+1);Ra(l)?(a++,u=Ec(o,l)):u=dn.UNICODE_REPLACEMENT}else{s=o;break}else Ra(o)&&(u=dn.UNICODE_REPLACEMENT);if(i=this._push(r,i,u),a++,a<n)o=t.charCodeAt(a);else break}this._buffLen=i,this._leftoverHighSurrogate=s}_push(t,n,r){return r<128?t[n++]=r:r<2048?(t[n++]=192|(r&1984)>>>6,t[n++]=128|(r&63)>>>0):r<65536?(t[n++]=224|(r&61440)>>>12,t[n++]=128|(r&4032)>>>6,t[n++]=128|(r&63)>>>0):(t[n++]=240|(r&1835008)>>>18,t[n++]=128|(r&258048)>>>12,t[n++]=128|(r&4032)>>>6,t[n++]=128|(r&63)>>>0),n>=dn.BLOCK_SIZE&&(this._step(),n-=dn.BLOCK_SIZE,this._totalLen+=dn.BLOCK_SIZE,t[0]=t[dn.BLOCK_SIZE+0],t[1]=t[dn.BLOCK_SIZE+1],t[2]=t[dn.BLOCK_SIZE+2]),n}digest(){return this._finished||(this._finished=!0,this._leftoverHighSurrogate&&(this._leftoverHighSurrogate=0,this._buffLen=this._push(this._buff,this._buffLen,dn.UNICODE_REPLACEMENT)),this._totalLen+=this._buffLen,this._wrapUp()),vo(this._h0)+vo(this._h1)+vo(this._h2)+vo(this._h3)+vo(this._h4)}_wrapUp(){this._buff[this._buffLen++]=128,this._buff.subarray(this._buffLen).fill(0),this._buffLen>56&&(this._step(),this._buff.fill(0));let t=8*this._totalLen;this._buffDV.setUint32(56,Math.floor(t/4294967296),!1),this._buffDV.setUint32(60,t%4294967296,!1),this._step()}_step(){let t=e._bigBlock32,n=this._buffDV;for(let f=0;f<64;f+=4)t.setUint32(f,n.getUint32(f,!1),!1);for(let f=64;f<320;f+=4)t.setUint32(f,Fc(t.getUint32(f-12,!1)^t.getUint32(f-32,!1)^t.getUint32(f-56,!1)^t.getUint32(f-64,!1),1),!1);let r=this._h0,i=this._h1,s=this._h2,o=this._h3,a=this._h4,u,l,c;for(let f=0;f<80;f++)f<20?(u=i&s|~i&o,l=1518500249):f<40?(u=i^s^o,l=1859775393):f<60?(u=i&s|i&o|s&o,l=2400959708):(u=i^s^o,l=3395469782),c=Fc(r,5)+u+a+l+t.getUint32(f*4,!1)&4294967295,a=o,o=s,s=Fc(i,30),i=r,r=c;this._h0=this._h0+r&4294967295,this._h1=this._h1+i&4294967295,this._h2=this._h2+s&4294967295,this._h3=this._h3+o&4294967295,this._h4=this._h4+a&4294967295}};var Ma=class{constructor(t){this.source=t}getElements(){let t=this.source,n=new Int32Array(t.length);for(let r=0,i=t.length;r<i;r++)n[r]=t.charCodeAt(r);return n}};function Gp(e,t,n){return new No(new Ma(e),new Ma(t)).ComputeDiff(n).changes}var Mr=class{static Assert(t,n){if(!t)throw new Error(n)}},Ur=class{static Copy(t,n,r,i,s){for(let o=0;o<s;o++)r[i+o]=t[n+o]}static Copy2(t,n,r,i,s){for(let o=0;o<s;o++)r[i+o]=t[n+o]}},pr;(function(e){e[e.MaxDifferencesHistory=1447]="MaxDifferencesHistory"})(pr||(pr={}));var Ua=class{constructor(){this.m_changes=[],this.m_originalStart=Qt.MAX_SAFE_SMALL_INTEGER,this.m_modifiedStart=Qt.MAX_SAFE_SMALL_INTEGER,this.m_originalCount=0,this.m_modifiedCount=0}MarkNextChange(){(this.m_originalCount>0||this.m_modifiedCount>0)&&this.m_changes.push(new Nn(this.m_originalStart,this.m_originalCount,this.m_modifiedStart,this.m_modifiedCount)),this.m_originalCount=0,this.m_modifiedCount=0,this.m_originalStart=Qt.MAX_SAFE_SMALL_INTEGER,this.m_modifiedStart=Qt.MAX_SAFE_SMALL_INTEGER}AddOriginalElement(t,n){this.m_originalStart=Math.min(this.m_originalStart,t),this.m_modifiedStart=Math.min(this.m_modifiedStart,n),this.m_originalCount++}AddModifiedElement(t,n){this.m_originalStart=Math.min(this.m_originalStart,t),this.m_modifiedStart=Math.min(this.m_modifiedStart,n),this.m_modifiedCount++}getChanges(){return(this.m_originalCount>0||this.m_modifiedCount>0)&&this.MarkNextChange(),this.m_changes}getReverseChanges(){return(this.m_originalCount>0||this.m_modifiedCount>0)&&this.MarkNextChange(),this.m_changes.reverse(),this.m_changes}},No=class e{constructor(t,n,r=null){this.ContinueProcessingPredicate=r,this._originalSequence=t,this._modifiedSequence=n;let[i,s,o]=e._getElements(t),[a,u,l]=e._getElements(n);this._hasStrings=o&&l,this._originalStringElements=i,this._originalElementsOrHash=s,this._modifiedStringElements=a,this._modifiedElementsOrHash=u,this.m_forwardHistory=[],this.m_reverseHistory=[]}static _isStringArray(t){return t.length>0&&typeof t[0]=="string"}static _getElements(t){let n=t.getElements();if(e._isStringArray(n)){let r=new Int32Array(n.length);for(let i=0,s=n.length;i<s;i++)r[i]=jp(n[i],0);return[n,r,!0]}return n instanceof Int32Array?[[],n,!1]:[[],new Int32Array(n),!1]}ElementsAreEqual(t,n){return this._originalElementsOrHash[t]!==this._modifiedElementsOrHash[n]?!1:this._hasStrings?this._originalStringElements[t]===this._modifiedStringElements[n]:!0}ElementsAreStrictEqual(t,n){if(!this.ElementsAreEqual(t,n))return!1;let r=e._getStrictElement(this._originalSequence,t),i=e._getStrictElement(this._modifiedSequence,n);return r===i}static _getStrictElement(t,n){return typeof t.getStrictElement=="function"?t.getStrictElement(n):null}OriginalElementsAreEqual(t,n){return this._originalElementsOrHash[t]!==this._originalElementsOrHash[n]?!1:this._hasStrings?this._originalStringElements[t]===this._originalStringElements[n]:!0}ModifiedElementsAreEqual(t,n){return this._modifiedElementsOrHash[t]!==this._modifiedElementsOrHash[n]?!1:this._hasStrings?this._modifiedStringElements[t]===this._modifiedStringElements[n]:!0}ComputeDiff(t){return this._ComputeDiff(0,this._originalElementsOrHash.length-1,0,this._modifiedElementsOrHash.length-1,t)}_ComputeDiff(t,n,r,i,s){let o=[!1],a=this.ComputeDiffRecursive(t,n,r,i,o);return s&&(a=this.PrettifyChanges(a)),{quitEarly:o[0],changes:a}}ComputeDiffRecursive(t,n,r,i,s){for(s[0]=!1;t<=n&&r<=i&&this.ElementsAreEqual(t,r);)t++,r++;for(;n>=t&&i>=r&&this.ElementsAreEqual(n,i);)n--,i--;if(t>n||r>i){let f;return r<=i?(Mr.Assert(t===n+1,"originalStart should only be one more than originalEnd"),f=[new Nn(t,0,r,i-r+1)]):t<=n?(Mr.Assert(r===i+1,"modifiedStart should only be one more than modifiedEnd"),f=[new Nn(t,n-t+1,r,0)]):(Mr.Assert(t===n+1,"originalStart should only be one more than originalEnd"),Mr.Assert(r===i+1,"modifiedStart should only be one more than modifiedEnd"),f=[]),f}let o=[0],a=[0],u=this.ComputeRecursionPoint(t,n,r,i,o,a,s),l=o[0],c=a[0];if(u!==null)return u;if(!s[0]){let f=this.ComputeDiffRecursive(t,l,r,c,s),d=[];return s[0]?d=[new Nn(l+1,n-(l+1)+1,c+1,i-(c+1)+1)]:d=this.ComputeDiffRecursive(l+1,n,c+1,i,s),this.ConcatenateChanges(f,d)}return[new Nn(t,n-t+1,r,i-r+1)]}WALKTRACE(t,n,r,i,s,o,a,u,l,c,f,d,m,g,E,T,v,A){let S=null,C=null,q=new Ua,G=n,I=r,k=m[0]-T[0]-i,w=Qt.MIN_SAFE_SMALL_INTEGER,L=this.m_forwardHistory.length-1;do{let Z=k+t;Z===G||Z<I&&l[Z-1]<l[Z+1]?(f=l[Z+1],g=f-k-i,f<w&&q.MarkNextChange(),w=f,q.AddModifiedElement(f+1,g),k=Z+1-t):(f=l[Z-1]+1,g=f-k-i,f<w&&q.MarkNextChange(),w=f-1,q.AddOriginalElement(f,g+1),k=Z-1-t),L>=0&&(l=this.m_forwardHistory[L],t=l[0],G=1,I=l.length-1)}while(--L>=-1);if(S=q.getReverseChanges(),A[0]){let Z=m[0]+1,P=T[0]+1;if(S!==null&&S.length>0){let z=S[S.length-1];Z=Math.max(Z,z.getOriginalEnd()),P=Math.max(P,z.getModifiedEnd())}C=[new Nn(Z,d-Z+1,P,E-P+1)]}else{q=new Ua,G=o,I=a,k=m[0]-T[0]-u,w=Qt.MAX_SAFE_SMALL_INTEGER,L=v?this.m_reverseHistory.length-1:this.m_reverseHistory.length-2;do{let Z=k+s;Z===G||Z<I&&c[Z-1]>=c[Z+1]?(f=c[Z+1]-1,g=f-k-u,f>w&&q.MarkNextChange(),w=f+1,q.AddOriginalElement(f+1,g+1),k=Z+1-s):(f=c[Z-1],g=f-k-u,f>w&&q.MarkNextChange(),w=f,q.AddModifiedElement(f+1,g+1),k=Z-1-s),L>=0&&(c=this.m_reverseHistory[L],s=c[0],G=1,I=c.length-1)}while(--L>=-1);C=q.getChanges()}return this.ConcatenateChanges(S,C)}ComputeRecursionPoint(t,n,r,i,s,o,a){let u=0,l=0,c=0,f=0,d=0,m=0;t--,r--,s[0]=0,o[0]=0,this.m_forwardHistory=[],this.m_reverseHistory=[];let g=n-t+(i-r),E=g+1,T=new Int32Array(E),v=new Int32Array(E),A=i-r,S=n-t,C=t-r,q=n-i,I=(S-A)%2===0;T[A]=t,v[S]=n,a[0]=!1;for(let k=1;k<=g/2+1;k++){let w=0,L=0;c=this.ClipDiagonalBound(A-k,k,A,E),f=this.ClipDiagonalBound(A+k,k,A,E);for(let P=c;P<=f;P+=2){P===c||P<f&&T[P-1]<T[P+1]?u=T[P+1]:u=T[P-1]+1,l=u-(P-A)-C;let z=u;for(;u<n&&l<i&&this.ElementsAreEqual(u+1,l+1);)u++,l++;if(T[P]=u,u+l>w+L&&(w=u,L=l),!I&&Math.abs(P-S)<=k-1&&u>=v[P])return s[0]=u,o[0]=l,z<=v[P]&&pr.MaxDifferencesHistory>0&&k<=pr.MaxDifferencesHistory+1?this.WALKTRACE(A,c,f,C,S,d,m,q,T,v,u,n,s,l,i,o,I,a):null}let Z=(w-t+(L-r)-k)/2;if(this.ContinueProcessingPredicate!==null&&!this.ContinueProcessingPredicate(w,Z))return a[0]=!0,s[0]=w,o[0]=L,Z>0&&pr.MaxDifferencesHistory>0&&k<=pr.MaxDifferencesHistory+1?this.WALKTRACE(A,c,f,C,S,d,m,q,T,v,u,n,s,l,i,o,I,a):(t++,r++,[new Nn(t,n-t+1,r,i-r+1)]);d=this.ClipDiagonalBound(S-k,k,S,E),m=this.ClipDiagonalBound(S+k,k,S,E);for(let P=d;P<=m;P+=2){P===d||P<m&&v[P-1]>=v[P+1]?u=v[P+1]-1:u=v[P-1],l=u-(P-S)-q;let z=u;for(;u>t&&l>r&&this.ElementsAreEqual(u,l);)u--,l--;if(v[P]=u,I&&Math.abs(P-A)<=k&&u<=T[P])return s[0]=u,o[0]=l,z>=T[P]&&pr.MaxDifferencesHistory>0&&k<=pr.MaxDifferencesHistory+1?this.WALKTRACE(A,c,f,C,S,d,m,q,T,v,u,n,s,l,i,o,I,a):null}if(k<=pr.MaxDifferencesHistory){let P=new Int32Array(f-c+2);P[0]=A-c+1,Ur.Copy2(T,c,P,1,f-c+1),this.m_forwardHistory.push(P),P=new Int32Array(m-d+2),P[0]=S-d+1,Ur.Copy2(v,d,P,1,m-d+1),this.m_reverseHistory.push(P)}}return this.WALKTRACE(A,c,f,C,S,d,m,q,T,v,u,n,s,l,i,o,I,a)}PrettifyChanges(t){for(let n=0;n<t.length;n++){let r=t[n],i=n<t.length-1?t[n+1].originalStart:this._originalElementsOrHash.length,s=n<t.length-1?t[n+1].modifiedStart:this._modifiedElementsOrHash.length,o=r.originalLength>0,a=r.modifiedLength>0;for(;r.originalStart+r.originalLength<i&&r.modifiedStart+r.modifiedLength<s&&(!o||this.OriginalElementsAreEqual(r.originalStart,r.originalStart+r.originalLength))&&(!a||this.ModifiedElementsAreEqual(r.modifiedStart,r.modifiedStart+r.modifiedLength));){let l=this.ElementsAreStrictEqual(r.originalStart,r.modifiedStart);if(this.ElementsAreStrictEqual(r.originalStart+r.originalLength,r.modifiedStart+r.modifiedLength)&&!l)break;r.originalStart++,r.modifiedStart++}let u=[null];if(n<t.length-1&&this.ChangesOverlap(t[n],t[n+1],u)){t[n]=u[0],t.splice(n+1,1),n--;continue}}for(let n=t.length-1;n>=0;n--){let r=t[n],i=0,s=0;if(n>0){let f=t[n-1];i=f.originalStart+f.originalLength,s=f.modifiedStart+f.modifiedLength}let o=r.originalLength>0,a=r.modifiedLength>0,u=0,l=this._boundaryScore(r.originalStart,r.originalLength,r.modifiedStart,r.modifiedLength);for(let f=1;;f++){let d=r.originalStart-f,m=r.modifiedStart-f;if(d<i||m<s||o&&!this.OriginalElementsAreEqual(d,d+r.originalLength)||a&&!this.ModifiedElementsAreEqual(m,m+r.modifiedLength))break;let E=(d===i&&m===s?5:0)+this._boundaryScore(d,r.originalLength,m,r.modifiedLength);E>l&&(l=E,u=f)}r.originalStart-=u,r.modifiedStart-=u;let c=[null];if(n>0&&this.ChangesOverlap(t[n-1],t[n],c)){t[n-1]=c[0],t.splice(n,1),n++;continue}}if(this._hasStrings)for(let n=1,r=t.length;n<r;n++){let i=t[n-1],s=t[n],o=s.originalStart-i.originalStart-i.originalLength,a=i.originalStart,u=s.originalStart+s.originalLength,l=u-a,c=i.modifiedStart,f=s.modifiedStart+s.modifiedLength,d=f-c;if(o<5&&l<20&&d<20){let m=this._findBetterContiguousSequence(a,l,c,d,o);if(m){let[g,E]=m;(g!==i.originalStart+i.originalLength||E!==i.modifiedStart+i.modifiedLength)&&(i.originalLength=g-i.originalStart,i.modifiedLength=E-i.modifiedStart,s.originalStart=g+o,s.modifiedStart=E+o,s.originalLength=u-s.originalStart,s.modifiedLength=f-s.modifiedStart)}}}return t}_findBetterContiguousSequence(t,n,r,i,s){if(n<s||i<s)return null;let o=t+n-s+1,a=r+i-s+1,u=0,l=0,c=0;for(let f=t;f<o;f++)for(let d=r;d<a;d++){let m=this._contiguousSequenceScore(f,d,s);m>0&&m>u&&(u=m,l=f,c=d)}return u>0?[l,c]:null}_contiguousSequenceScore(t,n,r){let i=0;for(let s=0;s<r;s++){if(!this.ElementsAreEqual(t+s,n+s))return 0;i+=this._originalStringElements[t+s].length}return i}_OriginalIsBoundary(t){return t<=0||t>=this._originalElementsOrHash.length-1?!0:this._hasStrings&&/^\s*$/.test(this._originalStringElements[t])}_OriginalRegionIsBoundary(t,n){if(this._OriginalIsBoundary(t)||this._OriginalIsBoundary(t-1))return!0;if(n>0){let r=t+n;if(this._OriginalIsBoundary(r-1)||this._OriginalIsBoundary(r))return!0}return!1}_ModifiedIsBoundary(t){return t<=0||t>=this._modifiedElementsOrHash.length-1?!0:this._hasStrings&&/^\s*$/.test(this._modifiedStringElements[t])}_ModifiedRegionIsBoundary(t,n){if(this._ModifiedIsBoundary(t)||this._ModifiedIsBoundary(t-1))return!0;if(n>0){let r=t+n;if(this._ModifiedIsBoundary(r-1)||this._ModifiedIsBoundary(r))return!0}return!1}_boundaryScore(t,n,r,i){let s=this._OriginalRegionIsBoundary(t,n)?1:0,o=this._ModifiedRegionIsBoundary(r,i)?1:0;return s+o}ConcatenateChanges(t,n){let r=[];if(t.length===0||n.length===0)return n.length>0?n:t;if(this.ChangesOverlap(t[t.length-1],n[0],r)){let i=new Array(t.length+n.length-1);return Ur.Copy(t,0,i,0,t.length-1),i[t.length-1]=r[0],Ur.Copy(n,1,i,t.length,n.length-1),i}else{let i=new Array(t.length+n.length);return Ur.Copy(t,0,i,0,t.length),Ur.Copy(n,0,i,t.length,n.length),i}}ChangesOverlap(t,n,r){if(Mr.Assert(t.originalStart<=n.originalStart,"Left change is not less than or equal to right change"),Mr.Assert(t.modifiedStart<=n.modifiedStart,"Left change is not less than or equal to right change"),t.originalStart+t.originalLength>=n.originalStart||t.modifiedStart+t.modifiedLength>=n.modifiedStart){let i=t.originalStart,s=t.originalLength,o=t.modifiedStart,a=t.modifiedLength;return t.originalStart+t.originalLength>=n.originalStart&&(s=n.originalStart+n.originalLength-t.originalStart),t.modifiedStart+t.modifiedLength>=n.modifiedStart&&(a=n.modifiedStart+n.modifiedLength-t.modifiedStart),r[0]=new Nn(i,s,o,a),!0}else return r[0]=null,!1}ClipDiagonalBound(t,n,r,i){if(t>=0&&t<i)return t;let s=r,o=i-r-1,a=n%2===0;if(t<0){let u=s%2===0;return a===u?0:1}else{let u=o%2===0;return a===u?i-1:i-2}}},T6=new Uint32Array(65536);var me=class e{constructor(t,n){this.lineNumber=t,this.column=n}with(t=this.lineNumber,n=this.column){return t===this.lineNumber&&n===this.column?this:new e(t,n)}delta(t=0,n=0){return this.with(Math.max(1,this.lineNumber+t),Math.max(1,this.column+n))}equals(t){return e.equals(this,t)}static equals(t,n){return!t&&!n?!0:!!t&&!!n&&t.lineNumber===n.lineNumber&&t.column===n.column}isBefore(t){return e.isBefore(this,t)}static isBefore(t,n){return t.lineNumber<n.lineNumber?!0:n.lineNumber<t.lineNumber?!1:t.column<n.column}isBeforeOrEqual(t){return e.isBeforeOrEqual(this,t)}static isBeforeOrEqual(t,n){return t.lineNumber<n.lineNumber?!0:n.lineNumber<t.lineNumber?!1:t.column<=n.column}static compare(t,n){let r=t.lineNumber|0,i=n.lineNumber|0;if(r===i){let s=t.column|0,o=n.column|0;return s-o}return r-i}clone(){return new e(this.lineNumber,this.column)}toString(){return"("+this.lineNumber+","+this.column+")"}static lift(t){return new e(t.lineNumber,t.column)}static isIPosition(t){return!!t&&typeof t.lineNumber=="number"&&typeof t.column=="number"}toJSON(){return{lineNumber:this.lineNumber,column:this.column}}};var ie=class e{constructor(t,n,r,i){t>r||t===r&&n>i?(this.startLineNumber=r,this.startColumn=i,this.endLineNumber=t,this.endColumn=n):(this.startLineNumber=t,this.startColumn=n,this.endLineNumber=r,this.endColumn=i)}isEmpty(){return e.isEmpty(this)}static isEmpty(t){return t.startLineNumber===t.endLineNumber&&t.startColumn===t.endColumn}containsPosition(t){return e.containsPosition(this,t)}static containsPosition(t,n){return!(n.lineNumber<t.startLineNumber||n.lineNumber>t.endLineNumber||n.lineNumber===t.startLineNumber&&n.column<t.startColumn||n.lineNumber===t.endLineNumber&&n.column>t.endColumn)}static strictContainsPosition(t,n){return!(n.lineNumber<t.startLineNumber||n.lineNumber>t.endLineNumber||n.lineNumber===t.startLineNumber&&n.column<=t.startColumn||n.lineNumber===t.endLineNumber&&n.column>=t.endColumn)}containsRange(t){return e.containsRange(this,t)}static containsRange(t,n){return!(n.startLineNumber<t.startLineNumber||n.endLineNumber<t.startLineNumber||n.startLineNumber>t.endLineNumber||n.endLineNumber>t.endLineNumber||n.startLineNumber===t.startLineNumber&&n.startColumn<t.startColumn||n.endLineNumber===t.endLineNumber&&n.endColumn>t.endColumn)}strictContainsRange(t){return e.strictContainsRange(this,t)}static strictContainsRange(t,n){return!(n.startLineNumber<t.startLineNumber||n.endLineNumber<t.startLineNumber||n.startLineNumber>t.endLineNumber||n.endLineNumber>t.endLineNumber||n.startLineNumber===t.startLineNumber&&n.startColumn<=t.startColumn||n.endLineNumber===t.endLineNumber&&n.endColumn>=t.endColumn)}plusRange(t){return e.plusRange(this,t)}static plusRange(t,n){let r,i,s,o;return n.startLineNumber<t.startLineNumber?(r=n.startLineNumber,i=n.startColumn):n.startLineNumber===t.startLineNumber?(r=n.startLineNumber,i=Math.min(n.startColumn,t.startColumn)):(r=t.startLineNumber,i=t.startColumn),n.endLineNumber>t.endLineNumber?(s=n.endLineNumber,o=n.endColumn):n.endLineNumber===t.endLineNumber?(s=n.endLineNumber,o=Math.max(n.endColumn,t.endColumn)):(s=t.endLineNumber,o=t.endColumn),new e(r,i,s,o)}intersectRanges(t){return e.intersectRanges(this,t)}static intersectRanges(t,n){let r=t.startLineNumber,i=t.startColumn,s=t.endLineNumber,o=t.endColumn,a=n.startLineNumber,u=n.startColumn,l=n.endLineNumber,c=n.endColumn;return r<a?(r=a,i=u):r===a&&(i=Math.max(i,u)),s>l?(s=l,o=c):s===l&&(o=Math.min(o,c)),r>s||r===s&&i>o?null:new e(r,i,s,o)}equalsRange(t){return e.equalsRange(this,t)}static equalsRange(t,n){return!t&&!n?!0:!!t&&!!n&&t.startLineNumber===n.startLineNumber&&t.startColumn===n.startColumn&&t.endLineNumber===n.endLineNumber&&t.endColumn===n.endColumn}getEndPosition(){return e.getEndPosition(this)}static getEndPosition(t){return new me(t.endLineNumber,t.endColumn)}getStartPosition(){return e.getStartPosition(this)}static getStartPosition(t){return new me(t.startLineNumber,t.startColumn)}toString(){return"["+this.startLineNumber+","+this.startColumn+" -> "+this.endLineNumber+","+this.endColumn+"]"}setEndPosition(t,n){return new e(this.startLineNumber,this.startColumn,t,n)}setStartPosition(t,n){return new e(t,n,this.endLineNumber,this.endColumn)}collapseToStart(){return e.collapseToStart(this)}static collapseToStart(t){return new e(t.startLineNumber,t.startColumn,t.startLineNumber,t.startColumn)}collapseToEnd(){return e.collapseToEnd(this)}static collapseToEnd(t){return new e(t.endLineNumber,t.endColumn,t.endLineNumber,t.endColumn)}delta(t){return new e(this.startLineNumber+t,this.startColumn,this.endLineNumber+t,this.endColumn)}isSingleLine(){return this.startLineNumber===this.endLineNumber}static fromPositions(t,n=t){return new e(t.lineNumber,t.column,n.lineNumber,n.column)}static lift(t){return t?new e(t.startLineNumber,t.startColumn,t.endLineNumber,t.endColumn):null}static isIRange(t){return!!t&&typeof t.startLineNumber=="number"&&typeof t.startColumn=="number"&&typeof t.endLineNumber=="number"&&typeof t.endColumn=="number"}static areIntersectingOrTouching(t,n){return!(t.endLineNumber<n.startLineNumber||t.endLineNumber===n.startLineNumber&&t.endColumn<n.startColumn||n.endLineNumber<t.startLineNumber||n.endLineNumber===t.startLineNumber&&n.endColumn<t.startColumn)}static areIntersecting(t,n){return!(t.endLineNumber<n.startLineNumber||t.endLineNumber===n.startLineNumber&&t.endColumn<=n.startColumn||n.endLineNumber<t.startLineNumber||n.endLineNumber===t.startLineNumber&&n.endColumn<=t.startColumn)}static areOnlyIntersecting(t,n){return!(t.endLineNumber<n.startLineNumber-1||t.endLineNumber===n.startLineNumber&&t.endColumn<n.startColumn-1||n.endLineNumber<t.startLineNumber-1||n.endLineNumber===t.startLineNumber&&n.endColumn<t.startColumn-1)}static compareRangesUsingStarts(t,n){if(t&&n){let s=t.startLineNumber|0,o=n.startLineNumber|0;if(s===o){let a=t.startColumn|0,u=n.startColumn|0;if(a===u){let l=t.endLineNumber|0,c=n.endLineNumber|0;if(l===c){let f=t.endColumn|0,d=n.endColumn|0;return f-d}return l-c}return a-u}return s-o}return(t?1:0)-(n?1:0)}static compareRangesUsingEnds(t,n){return t.endLineNumber===n.endLineNumber?t.endColumn===n.endColumn?t.startLineNumber===n.startLineNumber?t.startColumn-n.startColumn:t.startLineNumber-n.startLineNumber:t.endColumn-n.endColumn:t.endLineNumber-n.endLineNumber}static spansMultipleLines(t){return t.endLineNumber>t.startLineNumber}toJSON(){return this}};var To=class e{constructor(t){let n=dc(t);this._defaultValue=n,this._asciiMap=e._createAsciiMap(n),this._map=new Map}static _createAsciiMap(t){let n=new Uint8Array(256);return n.fill(t),n}set(t,n){let r=dc(n);t>=0&&t<256?this._asciiMap[t]=r:this._map.set(t,r)}get(t){return t>=0&&t<256?this._asciiMap[t]:this._map.get(t)||this._defaultValue}clear(){this._asciiMap.fill(this._defaultValue),this._map.clear()}},qp;(function(e){e[e.False=0]="False",e[e.True=1]="True"})(qp||(qp={}));var pe;(function(e){e[e.Invalid=0]="Invalid",e[e.Start=1]="Start",e[e.H=2]="H",e[e.HT=3]="HT",e[e.HTT=4]="HTT",e[e.HTTP=5]="HTTP",e[e.F=6]="F",e[e.FI=7]="FI",e[e.FIL=8]="FIL",e[e.BeforeColon=9]="BeforeColon",e[e.AfterColon=10]="AfterColon",e[e.AlmostThere=11]="AlmostThere",e[e.End=12]="End",e[e.Accept=13]="Accept",e[e.LastKnownState=14]="LastKnownState"})(pe||(pe={}));var Rc=class{constructor(t,n,r){let i=new Uint8Array(t*n);for(let s=0,o=t*n;s<o;s++)i[s]=r;this._data=i,this.rows=t,this.cols=n}get(t,n){return this._data[t*this.cols+n]}set(t,n,r){this._data[t*this.cols+n]=r}},Ic=class{constructor(t){let n=0,r=pe.Invalid;for(let s=0,o=t.length;s<o;s++){let[a,u,l]=t[s];u>n&&(n=u),a>r&&(r=a),l>r&&(r=l)}n++,r++;let i=new Rc(r,n,pe.Invalid);for(let s=0,o=t.length;s<o;s++){let[a,u,l]=t[s];i.set(a,u,l)}this._states=i,this._maxCharCode=n}nextState(t,n){return n<0||n>=this._maxCharCode?pe.Invalid:this._states.get(t,n)}},Sc=null;function gE(){return Sc===null&&(Sc=new Ic([[pe.Start,M.h,pe.H],[pe.Start,M.H,pe.H],[pe.Start,M.f,pe.F],[pe.Start,M.F,pe.F],[pe.H,M.t,pe.HT],[pe.H,M.T,pe.HT],[pe.HT,M.t,pe.HTT],[pe.HT,M.T,pe.HTT],[pe.HTT,M.p,pe.HTTP],[pe.HTT,M.P,pe.HTTP],[pe.HTTP,M.s,pe.BeforeColon],[pe.HTTP,M.S,pe.BeforeColon],[pe.HTTP,M.Colon,pe.AfterColon],[pe.F,M.i,pe.FI],[pe.F,M.I,pe.FI],[pe.FI,M.l,pe.FIL],[pe.FI,M.L,pe.FIL],[pe.FIL,M.e,pe.BeforeColon],[pe.FIL,M.E,pe.BeforeColon],[pe.BeforeColon,M.Colon,pe.AfterColon],[pe.AfterColon,M.Slash,pe.AlmostThere],[pe.AlmostThere,M.Slash,pe.End]])),Sc}var Xe;(function(e){e[e.None=0]="None",e[e.ForceTermination=1]="ForceTermination",e[e.CannotEndIn=2]="CannotEndIn"})(Xe||(Xe={}));var wo=null;function _E(){if(wo===null){wo=new To(Xe.None);let e=` <>'"\u3001\u3002\uFF61\uFF64\uFF0C\uFF0E\uFF1A\uFF1B\u2018\u3008\u300C\u300E\u3014\uFF08\uFF3B\uFF5B\uFF62\uFF63\uFF5D\uFF3D\uFF09\u3015\u300F\u300D\u3009\u2019\uFF40\uFF5E\u2026|`;for(let n=0;n<e.length;n++)wo.set(e.charCodeAt(n),Xe.ForceTermination);let t=".,;:";for(let n=0;n<t.length;n++)wo.set(t.charCodeAt(n),Xe.CannotEndIn)}return wo}var Oc=class e{static _createLink(t,n,r,i,s){let o=s-1;do{let a=n.charCodeAt(o);if(t.get(a)!==Xe.CannotEndIn)break;o--}while(o>i);if(i>0){let a=n.charCodeAt(i-1),u=n.charCodeAt(o);(a===M.OpenParen&&u===M.CloseParen||a===M.OpenSquareBracket&&u===M.CloseSquareBracket||a===M.OpenCurlyBrace&&u===M.CloseCurlyBrace)&&o--}return{range:{startLineNumber:r,startColumn:i+1,endLineNumber:r,endColumn:o+2},url:n.substring(i,o+1)}}static computeLinks(t,n=gE()){let r=_E(),i=[];for(let s=1,o=t.getLineCount();s<=o;s++){let a=t.getLineContent(s),u=a.length,l=0,c=0,f=0,d=pe.Start,m=!1,g=!1,E=!1,T=!1;for(;l<u;){let v=!1,A=a.charCodeAt(l);if(d===pe.Accept){let S;switch(A){case M.OpenParen:m=!0,S=Xe.None;break;case M.CloseParen:S=m?Xe.None:Xe.ForceTermination;break;case M.OpenSquareBracket:E=!0,g=!0,S=Xe.None;break;case M.CloseSquareBracket:E=!1,S=g?Xe.None:Xe.ForceTermination;break;case M.OpenCurlyBrace:T=!0,S=Xe.None;break;case M.CloseCurlyBrace:S=T?Xe.None:Xe.ForceTermination;break;case M.SingleQuote:case M.DoubleQuote:case M.BackTick:f===A?S=Xe.ForceTermination:f===M.SingleQuote||f===M.DoubleQuote||f===M.BackTick?S=Xe.None:S=Xe.ForceTermination;break;case M.Asterisk:S=f===M.Asterisk?Xe.ForceTermination:Xe.None;break;case M.Space:S=E?Xe.None:Xe.ForceTermination;break;default:S=r.get(A)}S===Xe.ForceTermination&&(i.push(e._createLink(r,a,s,c,l)),v=!0)}else if(d===pe.End){let S;A===M.OpenSquareBracket?(g=!0,S=Xe.None):S=r.get(A),S===Xe.ForceTermination?v=!0:d=pe.Accept}else d=n.nextState(d,A),d===pe.Invalid&&(v=!0);v&&(d=pe.Start,m=!1,g=!1,T=!1,c=l+1,f=A),l++}d===pe.Accept&&i.push(e._createLink(r,a,s,c,u))}return i}};function Hp(e){return!e||typeof e.getLineCount!="function"||typeof e.getLineContent!="function"?[]:Oc.computeLinks(e)}var Pa=class e{constructor(){this._defaultValueSet=[["true","false"],["True","False"],["Private","Public","Friend","ReadOnly","Partial","Protected","WriteOnly"],["public","protected","private"]]}static{this.INSTANCE=new e}navigateValueSet(t,n,r,i,s){if(t&&n){let o=this.doNavigateValueSet(n,s);if(o)return{range:t,value:o}}if(r&&i){let o=this.doNavigateValueSet(i,s);if(o)return{range:r,value:o}}return null}doNavigateValueSet(t,n){let r=this.numberReplace(t,n);return r!==null?r:this.textReplace(t,n)}numberReplace(t,n){let r=Math.pow(10,t.length-(t.lastIndexOf(".")+1)),i=Number(t),s=parseFloat(t);return!isNaN(i)&&!isNaN(s)&&i===s?i===0&&!n?null:(i=Math.floor(i*r),i+=n?r:-r,String(i/r)):null}textReplace(t,n){return this.valueSetsReplace(this._defaultValueSet,t,n)}valueSetsReplace(t,n,r){let i=null;for(let s=0,o=t.length;i===null&&s<o;s++)i=this.valueSetReplace(t[s],n,r);return i}valueSetReplace(t,n,r){let i=t.indexOf(n);return i>=0?(i+=r?1:-1,i<0?i=t.length-1:i%=t.length,t[i]):null}};var N;(function(e){e[e.DependsOnKbLayout=-1]="DependsOnKbLayout",e[e.Unknown=0]="Unknown",e[e.Backspace=1]="Backspace",e[e.Tab=2]="Tab",e[e.Enter=3]="Enter",e[e.Shift=4]="Shift",e[e.Ctrl=5]="Ctrl",e[e.Alt=6]="Alt",e[e.PauseBreak=7]="PauseBreak",e[e.CapsLock=8]="CapsLock",e[e.Escape=9]="Escape",e[e.Space=10]="Space",e[e.PageUp=11]="PageUp",e[e.PageDown=12]="PageDown",e[e.End=13]="End",e[e.Home=14]="Home",e[e.LeftArrow=15]="LeftArrow",e[e.UpArrow=16]="UpArrow",e[e.RightArrow=17]="RightArrow",e[e.DownArrow=18]="DownArrow",e[e.Insert=19]="Insert",e[e.Delete=20]="Delete",e[e.Digit0=21]="Digit0",e[e.Digit1=22]="Digit1",e[e.Digit2=23]="Digit2",e[e.Digit3=24]="Digit3",e[e.Digit4=25]="Digit4",e[e.Digit5=26]="Digit5",e[e.Digit6=27]="Digit6",e[e.Digit7=28]="Digit7",e[e.Digit8=29]="Digit8",e[e.Digit9=30]="Digit9",e[e.KeyA=31]="KeyA",e[e.KeyB=32]="KeyB",e[e.KeyC=33]="KeyC",e[e.KeyD=34]="KeyD",e[e.KeyE=35]="KeyE",e[e.KeyF=36]="KeyF",e[e.KeyG=37]="KeyG",e[e.KeyH=38]="KeyH",e[e.KeyI=39]="KeyI",e[e.KeyJ=40]="KeyJ",e[e.KeyK=41]="KeyK",e[e.KeyL=42]="KeyL",e[e.KeyM=43]="KeyM",e[e.KeyN=44]="KeyN",e[e.KeyO=45]="KeyO",e[e.KeyP=46]="KeyP",e[e.KeyQ=47]="KeyQ",e[e.KeyR=48]="KeyR",e[e.KeyS=49]="KeyS",e[e.KeyT=50]="KeyT",e[e.KeyU=51]="KeyU",e[e.KeyV=52]="KeyV",e[e.KeyW=53]="KeyW",e[e.KeyX=54]="KeyX",e[e.KeyY=55]="KeyY",e[e.KeyZ=56]="KeyZ",e[e.Meta=57]="Meta",e[e.ContextMenu=58]="ContextMenu",e[e.F1=59]="F1",e[e.F2=60]="F2",e[e.F3=61]="F3",e[e.F4=62]="F4",e[e.F5=63]="F5",e[e.F6=64]="F6",e[e.F7=65]="F7",e[e.F8=66]="F8",e[e.F9=67]="F9",e[e.F10=68]="F10",e[e.F11=69]="F11",e[e.F12=70]="F12",e[e.F13=71]="F13",e[e.F14=72]="F14",e[e.F15=73]="F15",e[e.F16=74]="F16",e[e.F17=75]="F17",e[e.F18=76]="F18",e[e.F19=77]="F19",e[e.F20=78]="F20",e[e.F21=79]="F21",e[e.F22=80]="F22",e[e.F23=81]="F23",e[e.F24=82]="F24",e[e.NumLock=83]="NumLock",e[e.ScrollLock=84]="ScrollLock",e[e.Semicolon=85]="Semicolon",e[e.Equal=86]="Equal",e[e.Comma=87]="Comma",e[e.Minus=88]="Minus",e[e.Period=89]="Period",e[e.Slash=90]="Slash",e[e.Backquote=91]="Backquote",e[e.BracketLeft=92]="BracketLeft",e[e.Backslash=93]="Backslash",e[e.BracketRight=94]="BracketRight",e[e.Quote=95]="Quote",e[e.OEM_8=96]="OEM_8",e[e.IntlBackslash=97]="IntlBackslash",e[e.Numpad0=98]="Numpad0",e[e.Numpad1=99]="Numpad1",e[e.Numpad2=100]="Numpad2",e[e.Numpad3=101]="Numpad3",e[e.Numpad4=102]="Numpad4",e[e.Numpad5=103]="Numpad5",e[e.Numpad6=104]="Numpad6",e[e.Numpad7=105]="Numpad7",e[e.Numpad8=106]="Numpad8",e[e.Numpad9=107]="Numpad9",e[e.NumpadMultiply=108]="NumpadMultiply",e[e.NumpadAdd=109]="NumpadAdd",e[e.NUMPAD_SEPARATOR=110]="NUMPAD_SEPARATOR",e[e.NumpadSubtract=111]="NumpadSubtract",e[e.NumpadDecimal=112]="NumpadDecimal",e[e.NumpadDivide=113]="NumpadDivide",e[e.KEY_IN_COMPOSITION=114]="KEY_IN_COMPOSITION",e[e.ABNT_C1=115]="ABNT_C1",e[e.ABNT_C2=116]="ABNT_C2",e[e.AudioVolumeMute=117]="AudioVolumeMute",e[e.AudioVolumeUp=118]="AudioVolumeUp",e[e.AudioVolumeDown=119]="AudioVolumeDown",e[e.BrowserSearch=120]="BrowserSearch",e[e.BrowserHome=121]="BrowserHome",e[e.BrowserBack=122]="BrowserBack",e[e.BrowserForward=123]="BrowserForward",e[e.MediaTrackNext=124]="MediaTrackNext",e[e.MediaTrackPrevious=125]="MediaTrackPrevious",e[e.MediaStop=126]="MediaStop",e[e.MediaPlayPause=127]="MediaPlayPause",e[e.LaunchMediaPlayer=128]="LaunchMediaPlayer",e[e.LaunchMail=129]="LaunchMail",e[e.LaunchApp2=130]="LaunchApp2",e[e.Clear=131]="Clear",e[e.MAX_VALUE=132]="MAX_VALUE"})(N||(N={}));var y;(function(e){e[e.DependsOnKbLayout=-1]="DependsOnKbLayout",e[e.None=0]="None",e[e.Hyper=1]="Hyper",e[e.Super=2]="Super",e[e.Fn=3]="Fn",e[e.FnLock=4]="FnLock",e[e.Suspend=5]="Suspend",e[e.Resume=6]="Resume",e[e.Turbo=7]="Turbo",e[e.Sleep=8]="Sleep",e[e.WakeUp=9]="WakeUp",e[e.KeyA=10]="KeyA",e[e.KeyB=11]="KeyB",e[e.KeyC=12]="KeyC",e[e.KeyD=13]="KeyD",e[e.KeyE=14]="KeyE",e[e.KeyF=15]="KeyF",e[e.KeyG=16]="KeyG",e[e.KeyH=17]="KeyH",e[e.KeyI=18]="KeyI",e[e.KeyJ=19]="KeyJ",e[e.KeyK=20]="KeyK",e[e.KeyL=21]="KeyL",e[e.KeyM=22]="KeyM",e[e.KeyN=23]="KeyN",e[e.KeyO=24]="KeyO",e[e.KeyP=25]="KeyP",e[e.KeyQ=26]="KeyQ",e[e.KeyR=27]="KeyR",e[e.KeyS=28]="KeyS",e[e.KeyT=29]="KeyT",e[e.KeyU=30]="KeyU",e[e.KeyV=31]="KeyV",e[e.KeyW=32]="KeyW",e[e.KeyX=33]="KeyX",e[e.KeyY=34]="KeyY",e[e.KeyZ=35]="KeyZ",e[e.Digit1=36]="Digit1",e[e.Digit2=37]="Digit2",e[e.Digit3=38]="Digit3",e[e.Digit4=39]="Digit4",e[e.Digit5=40]="Digit5",e[e.Digit6=41]="Digit6",e[e.Digit7=42]="Digit7",e[e.Digit8=43]="Digit8",e[e.Digit9=44]="Digit9",e[e.Digit0=45]="Digit0",e[e.Enter=46]="Enter",e[e.Escape=47]="Escape",e[e.Backspace=48]="Backspace",e[e.Tab=49]="Tab",e[e.Space=50]="Space",e[e.Minus=51]="Minus",e[e.Equal=52]="Equal",e[e.BracketLeft=53]="BracketLeft",e[e.BracketRight=54]="BracketRight",e[e.Backslash=55]="Backslash",e[e.IntlHash=56]="IntlHash",e[e.Semicolon=57]="Semicolon",e[e.Quote=58]="Quote",e[e.Backquote=59]="Backquote",e[e.Comma=60]="Comma",e[e.Period=61]="Period",e[e.Slash=62]="Slash",e[e.CapsLock=63]="CapsLock",e[e.F1=64]="F1",e[e.F2=65]="F2",e[e.F3=66]="F3",e[e.F4=67]="F4",e[e.F5=68]="F5",e[e.F6=69]="F6",e[e.F7=70]="F7",e[e.F8=71]="F8",e[e.F9=72]="F9",e[e.F10=73]="F10",e[e.F11=74]="F11",e[e.F12=75]="F12",e[e.PrintScreen=76]="PrintScreen",e[e.ScrollLock=77]="ScrollLock",e[e.Pause=78]="Pause",e[e.Insert=79]="Insert",e[e.Home=80]="Home",e[e.PageUp=81]="PageUp",e[e.Delete=82]="Delete",e[e.End=83]="End",e[e.PageDown=84]="PageDown",e[e.ArrowRight=85]="ArrowRight",e[e.ArrowLeft=86]="ArrowLeft",e[e.ArrowDown=87]="ArrowDown",e[e.ArrowUp=88]="ArrowUp",e[e.NumLock=89]="NumLock",e[e.NumpadDivide=90]="NumpadDivide",e[e.NumpadMultiply=91]="NumpadMultiply",e[e.NumpadSubtract=92]="NumpadSubtract",e[e.NumpadAdd=93]="NumpadAdd",e[e.NumpadEnter=94]="NumpadEnter",e[e.Numpad1=95]="Numpad1",e[e.Numpad2=96]="Numpad2",e[e.Numpad3=97]="Numpad3",e[e.Numpad4=98]="Numpad4",e[e.Numpad5=99]="Numpad5",e[e.Numpad6=100]="Numpad6",e[e.Numpad7=101]="Numpad7",e[e.Numpad8=102]="Numpad8",e[e.Numpad9=103]="Numpad9",e[e.Numpad0=104]="Numpad0",e[e.NumpadDecimal=105]="NumpadDecimal",e[e.IntlBackslash=106]="IntlBackslash",e[e.ContextMenu=107]="ContextMenu",e[e.Power=108]="Power",e[e.NumpadEqual=109]="NumpadEqual",e[e.F13=110]="F13",e[e.F14=111]="F14",e[e.F15=112]="F15",e[e.F16=113]="F16",e[e.F17=114]="F17",e[e.F18=115]="F18",e[e.F19=116]="F19",e[e.F20=117]="F20",e[e.F21=118]="F21",e[e.F22=119]="F22",e[e.F23=120]="F23",e[e.F24=121]="F24",e[e.Open=122]="Open",e[e.Help=123]="Help",e[e.Select=124]="Select",e[e.Again=125]="Again",e[e.Undo=126]="Undo",e[e.Cut=127]="Cut",e[e.Copy=128]="Copy",e[e.Paste=129]="Paste",e[e.Find=130]="Find",e[e.AudioVolumeMute=131]="AudioVolumeMute",e[e.AudioVolumeUp=132]="AudioVolumeUp",e[e.AudioVolumeDown=133]="AudioVolumeDown",e[e.NumpadComma=134]="NumpadComma",e[e.IntlRo=135]="IntlRo",e[e.KanaMode=136]="KanaMode",e[e.IntlYen=137]="IntlYen",e[e.Convert=138]="Convert",e[e.NonConvert=139]="NonConvert",e[e.Lang1=140]="Lang1",e[e.Lang2=141]="Lang2",e[e.Lang3=142]="Lang3",e[e.Lang4=143]="Lang4",e[e.Lang5=144]="Lang5",e[e.Abort=145]="Abort",e[e.Props=146]="Props",e[e.NumpadParenLeft=147]="NumpadParenLeft",e[e.NumpadParenRight=148]="NumpadParenRight",e[e.NumpadBackspace=149]="NumpadBackspace",e[e.NumpadMemoryStore=150]="NumpadMemoryStore",e[e.NumpadMemoryRecall=151]="NumpadMemoryRecall",e[e.NumpadMemoryClear=152]="NumpadMemoryClear",e[e.NumpadMemoryAdd=153]="NumpadMemoryAdd",e[e.NumpadMemorySubtract=154]="NumpadMemorySubtract",e[e.NumpadClear=155]="NumpadClear",e[e.NumpadClearEntry=156]="NumpadClearEntry",e[e.ControlLeft=157]="ControlLeft",e[e.ShiftLeft=158]="ShiftLeft",e[e.AltLeft=159]="AltLeft",e[e.MetaLeft=160]="MetaLeft",e[e.ControlRight=161]="ControlRight",e[e.ShiftRight=162]="ShiftRight",e[e.AltRight=163]="AltRight",e[e.MetaRight=164]="MetaRight",e[e.BrightnessUp=165]="BrightnessUp",e[e.BrightnessDown=166]="BrightnessDown",e[e.MediaPlay=167]="MediaPlay",e[e.MediaRecord=168]="MediaRecord",e[e.MediaFastForward=169]="MediaFastForward",e[e.MediaRewind=170]="MediaRewind",e[e.MediaTrackNext=171]="MediaTrackNext",e[e.MediaTrackPrevious=172]="MediaTrackPrevious",e[e.MediaStop=173]="MediaStop",e[e.Eject=174]="Eject",e[e.MediaPlayPause=175]="MediaPlayPause",e[e.MediaSelect=176]="MediaSelect",e[e.LaunchMail=177]="LaunchMail",e[e.LaunchApp2=178]="LaunchApp2",e[e.LaunchApp1=179]="LaunchApp1",e[e.SelectTask=180]="SelectTask",e[e.LaunchScreenSaver=181]="LaunchScreenSaver",e[e.BrowserSearch=182]="BrowserSearch",e[e.BrowserHome=183]="BrowserHome",e[e.BrowserBack=184]="BrowserBack",e[e.BrowserForward=185]="BrowserForward",e[e.BrowserStop=186]="BrowserStop",e[e.BrowserRefresh=187]="BrowserRefresh",e[e.BrowserFavorites=188]="BrowserFavorites",e[e.ZoomToggle=189]="ZoomToggle",e[e.MailReply=190]="MailReply",e[e.MailForward=191]="MailForward",e[e.MailSend=192]="MailSend",e[e.MAX_VALUE=193]="MAX_VALUE"})(y||(y={}));var xo=class{constructor(){this._keyCodeToStr=[],this._strToKeyCode=Object.create(null)}define(t,n){this._keyCodeToStr[t]=n,this._strToKeyCode[n.toLowerCase()]=t}keyCodeToStr(t){return this._keyCodeToStr[t]}strToKeyCode(t){return this._strToKeyCode[t.toLowerCase()]||N.Unknown}},Ba=new xo,kc=new xo,Mc=new xo,EE=new Array(230),DE={},bE=[],vE=Object.create(null),NE=Object.create(null);var zp=[],Uc=[];for(let e=0;e<=y.MAX_VALUE;e++)zp[e]=N.DependsOnKbLayout;for(let e=0;e<=N.MAX_VALUE;e++)Uc[e]=y.DependsOnKbLayout;(function(){let e="",t=[[1,y.None,"None",N.Unknown,"unknown",0,"VK_UNKNOWN",e,e],[1,y.Hyper,"Hyper",N.Unknown,e,0,e,e,e],[1,y.Super,"Super",N.Unknown,e,0,e,e,e],[1,y.Fn,"Fn",N.Unknown,e,0,e,e,e],[1,y.FnLock,"FnLock",N.Unknown,e,0,e,e,e],[1,y.Suspend,"Suspend",N.Unknown,e,0,e,e,e],[1,y.Resume,"Resume",N.Unknown,e,0,e,e,e],[1,y.Turbo,"Turbo",N.Unknown,e,0,e,e,e],[1,y.Sleep,"Sleep",N.Unknown,e,0,"VK_SLEEP",e,e],[1,y.WakeUp,"WakeUp",N.Unknown,e,0,e,e,e],[0,y.KeyA,"KeyA",N.KeyA,"A",65,"VK_A",e,e],[0,y.KeyB,"KeyB",N.KeyB,"B",66,"VK_B",e,e],[0,y.KeyC,"KeyC",N.KeyC,"C",67,"VK_C",e,e],[0,y.KeyD,"KeyD",N.KeyD,"D",68,"VK_D",e,e],[0,y.KeyE,"KeyE",N.KeyE,"E",69,"VK_E",e,e],[0,y.KeyF,"KeyF",N.KeyF,"F",70,"VK_F",e,e],[0,y.KeyG,"KeyG",N.KeyG,"G",71,"VK_G",e,e],[0,y.KeyH,"KeyH",N.KeyH,"H",72,"VK_H",e,e],[0,y.KeyI,"KeyI",N.KeyI,"I",73,"VK_I",e,e],[0,y.KeyJ,"KeyJ",N.KeyJ,"J",74,"VK_J",e,e],[0,y.KeyK,"KeyK",N.KeyK,"K",75,"VK_K",e,e],[0,y.KeyL,"KeyL",N.KeyL,"L",76,"VK_L",e,e],[0,y.KeyM,"KeyM",N.KeyM,"M",77,"VK_M",e,e],[0,y.KeyN,"KeyN",N.KeyN,"N",78,"VK_N",e,e],[0,y.KeyO,"KeyO",N.KeyO,"O",79,"VK_O",e,e],[0,y.KeyP,"KeyP",N.KeyP,"P",80,"VK_P",e,e],[0,y.KeyQ,"KeyQ",N.KeyQ,"Q",81,"VK_Q",e,e],[0,y.KeyR,"KeyR",N.KeyR,"R",82,"VK_R",e,e],[0,y.KeyS,"KeyS",N.KeyS,"S",83,"VK_S",e,e],[0,y.KeyT,"KeyT",N.KeyT,"T",84,"VK_T",e,e],[0,y.KeyU,"KeyU",N.KeyU,"U",85,"VK_U",e,e],[0,y.KeyV,"KeyV",N.KeyV,"V",86,"VK_V",e,e],[0,y.KeyW,"KeyW",N.KeyW,"W",87,"VK_W",e,e],[0,y.KeyX,"KeyX",N.KeyX,"X",88,"VK_X",e,e],[0,y.KeyY,"KeyY",N.KeyY,"Y",89,"VK_Y",e,e],[0,y.KeyZ,"KeyZ",N.KeyZ,"Z",90,"VK_Z",e,e],[0,y.Digit1,"Digit1",N.Digit1,"1",49,"VK_1",e,e],[0,y.Digit2,"Digit2",N.Digit2,"2",50,"VK_2",e,e],[0,y.Digit3,"Digit3",N.Digit3,"3",51,"VK_3",e,e],[0,y.Digit4,"Digit4",N.Digit4,"4",52,"VK_4",e,e],[0,y.Digit5,"Digit5",N.Digit5,"5",53,"VK_5",e,e],[0,y.Digit6,"Digit6",N.Digit6,"6",54,"VK_6",e,e],[0,y.Digit7,"Digit7",N.Digit7,"7",55,"VK_7",e,e],[0,y.Digit8,"Digit8",N.Digit8,"8",56,"VK_8",e,e],[0,y.Digit9,"Digit9",N.Digit9,"9",57,"VK_9",e,e],[0,y.Digit0,"Digit0",N.Digit0,"0",48,"VK_0",e,e],[1,y.Enter,"Enter",N.Enter,"Enter",13,"VK_RETURN",e,e],[1,y.Escape,"Escape",N.Escape,"Escape",27,"VK_ESCAPE",e,e],[1,y.Backspace,"Backspace",N.Backspace,"Backspace",8,"VK_BACK",e,e],[1,y.Tab,"Tab",N.Tab,"Tab",9,"VK_TAB",e,e],[1,y.Space,"Space",N.Space,"Space",32,"VK_SPACE",e,e],[0,y.Minus,"Minus",N.Minus,"-",189,"VK_OEM_MINUS","-","OEM_MINUS"],[0,y.Equal,"Equal",N.Equal,"=",187,"VK_OEM_PLUS","=","OEM_PLUS"],[0,y.BracketLeft,"BracketLeft",N.BracketLeft,"[",219,"VK_OEM_4","[","OEM_4"],[0,y.BracketRight,"BracketRight",N.BracketRight,"]",221,"VK_OEM_6","]","OEM_6"],[0,y.Backslash,"Backslash",N.Backslash,"\\",220,"VK_OEM_5","\\","OEM_5"],[0,y.IntlHash,"IntlHash",N.Unknown,e,0,e,e,e],[0,y.Semicolon,"Semicolon",N.Semicolon,";",186,"VK_OEM_1",";","OEM_1"],[0,y.Quote,"Quote",N.Quote,"'",222,"VK_OEM_7","'","OEM_7"],[0,y.Backquote,"Backquote",N.Backquote,"`",192,"VK_OEM_3","`","OEM_3"],[0,y.Comma,"Comma",N.Comma,",",188,"VK_OEM_COMMA",",","OEM_COMMA"],[0,y.Period,"Period",N.Period,".",190,"VK_OEM_PERIOD",".","OEM_PERIOD"],[0,y.Slash,"Slash",N.Slash,"/",191,"VK_OEM_2","/","OEM_2"],[1,y.CapsLock,"CapsLock",N.CapsLock,"CapsLock",20,"VK_CAPITAL",e,e],[1,y.F1,"F1",N.F1,"F1",112,"VK_F1",e,e],[1,y.F2,"F2",N.F2,"F2",113,"VK_F2",e,e],[1,y.F3,"F3",N.F3,"F3",114,"VK_F3",e,e],[1,y.F4,"F4",N.F4,"F4",115,"VK_F4",e,e],[1,y.F5,"F5",N.F5,"F5",116,"VK_F5",e,e],[1,y.F6,"F6",N.F6,"F6",117,"VK_F6",e,e],[1,y.F7,"F7",N.F7,"F7",118,"VK_F7",e,e],[1,y.F8,"F8",N.F8,"F8",119,"VK_F8",e,e],[1,y.F9,"F9",N.F9,"F9",120,"VK_F9",e,e],[1,y.F10,"F10",N.F10,"F10",121,"VK_F10",e,e],[1,y.F11,"F11",N.F11,"F11",122,"VK_F11",e,e],[1,y.F12,"F12",N.F12,"F12",123,"VK_F12",e,e],[1,y.PrintScreen,"PrintScreen",N.Unknown,e,0,e,e,e],[1,y.ScrollLock,"ScrollLock",N.ScrollLock,"ScrollLock",145,"VK_SCROLL",e,e],[1,y.Pause,"Pause",N.PauseBreak,"PauseBreak",19,"VK_PAUSE",e,e],[1,y.Insert,"Insert",N.Insert,"Insert",45,"VK_INSERT",e,e],[1,y.Home,"Home",N.Home,"Home",36,"VK_HOME",e,e],[1,y.PageUp,"PageUp",N.PageUp,"PageUp",33,"VK_PRIOR",e,e],[1,y.Delete,"Delete",N.Delete,"Delete",46,"VK_DELETE",e,e],[1,y.End,"End",N.End,"End",35,"VK_END",e,e],[1,y.PageDown,"PageDown",N.PageDown,"PageDown",34,"VK_NEXT",e,e],[1,y.ArrowRight,"ArrowRight",N.RightArrow,"RightArrow",39,"VK_RIGHT","Right",e],[1,y.ArrowLeft,"ArrowLeft",N.LeftArrow,"LeftArrow",37,"VK_LEFT","Left",e],[1,y.ArrowDown,"ArrowDown",N.DownArrow,"DownArrow",40,"VK_DOWN","Down",e],[1,y.ArrowUp,"ArrowUp",N.UpArrow,"UpArrow",38,"VK_UP","Up",e],[1,y.NumLock,"NumLock",N.NumLock,"NumLock",144,"VK_NUMLOCK",e,e],[1,y.NumpadDivide,"NumpadDivide",N.NumpadDivide,"NumPad_Divide",111,"VK_DIVIDE",e,e],[1,y.NumpadMultiply,"NumpadMultiply",N.NumpadMultiply,"NumPad_Multiply",106,"VK_MULTIPLY",e,e],[1,y.NumpadSubtract,"NumpadSubtract",N.NumpadSubtract,"NumPad_Subtract",109,"VK_SUBTRACT",e,e],[1,y.NumpadAdd,"NumpadAdd",N.NumpadAdd,"NumPad_Add",107,"VK_ADD",e,e],[1,y.NumpadEnter,"NumpadEnter",N.Enter,e,0,e,e,e],[1,y.Numpad1,"Numpad1",N.Numpad1,"NumPad1",97,"VK_NUMPAD1",e,e],[1,y.Numpad2,"Numpad2",N.Numpad2,"NumPad2",98,"VK_NUMPAD2",e,e],[1,y.Numpad3,"Numpad3",N.Numpad3,"NumPad3",99,"VK_NUMPAD3",e,e],[1,y.Numpad4,"Numpad4",N.Numpad4,"NumPad4",100,"VK_NUMPAD4",e,e],[1,y.Numpad5,"Numpad5",N.Numpad5,"NumPad5",101,"VK_NUMPAD5",e,e],[1,y.Numpad6,"Numpad6",N.Numpad6,"NumPad6",102,"VK_NUMPAD6",e,e],[1,y.Numpad7,"Numpad7",N.Numpad7,"NumPad7",103,"VK_NUMPAD7",e,e],[1,y.Numpad8,"Numpad8",N.Numpad8,"NumPad8",104,"VK_NUMPAD8",e,e],[1,y.Numpad9,"Numpad9",N.Numpad9,"NumPad9",105,"VK_NUMPAD9",e,e],[1,y.Numpad0,"Numpad0",N.Numpad0,"NumPad0",96,"VK_NUMPAD0",e,e],[1,y.NumpadDecimal,"NumpadDecimal",N.NumpadDecimal,"NumPad_Decimal",110,"VK_DECIMAL",e,e],[0,y.IntlBackslash,"IntlBackslash",N.IntlBackslash,"OEM_102",226,"VK_OEM_102",e,e],[1,y.ContextMenu,"ContextMenu",N.ContextMenu,"ContextMenu",93,e,e,e],[1,y.Power,"Power",N.Unknown,e,0,e,e,e],[1,y.NumpadEqual,"NumpadEqual",N.Unknown,e,0,e,e,e],[1,y.F13,"F13",N.F13,"F13",124,"VK_F13",e,e],[1,y.F14,"F14",N.F14,"F14",125,"VK_F14",e,e],[1,y.F15,"F15",N.F15,"F15",126,"VK_F15",e,e],[1,y.F16,"F16",N.F16,"F16",127,"VK_F16",e,e],[1,y.F17,"F17",N.F17,"F17",128,"VK_F17",e,e],[1,y.F18,"F18",N.F18,"F18",129,"VK_F18",e,e],[1,y.F19,"F19",N.F19,"F19",130,"VK_F19",e,e],[1,y.F20,"F20",N.F20,"F20",131,"VK_F20",e,e],[1,y.F21,"F21",N.F21,"F21",132,"VK_F21",e,e],[1,y.F22,"F22",N.F22,"F22",133,"VK_F22",e,e],[1,y.F23,"F23",N.F23,"F23",134,"VK_F23",e,e],[1,y.F24,"F24",N.F24,"F24",135,"VK_F24",e,e],[1,y.Open,"Open",N.Unknown,e,0,e,e,e],[1,y.Help,"Help",N.Unknown,e,0,e,e,e],[1,y.Select,"Select",N.Unknown,e,0,e,e,e],[1,y.Again,"Again",N.Unknown,e,0,e,e,e],[1,y.Undo,"Undo",N.Unknown,e,0,e,e,e],[1,y.Cut,"Cut",N.Unknown,e,0,e,e,e],[1,y.Copy,"Copy",N.Unknown,e,0,e,e,e],[1,y.Paste,"Paste",N.Unknown,e,0,e,e,e],[1,y.Find,"Find",N.Unknown,e,0,e,e,e],[1,y.AudioVolumeMute,"AudioVolumeMute",N.AudioVolumeMute,"AudioVolumeMute",173,"VK_VOLUME_MUTE",e,e],[1,y.AudioVolumeUp,"AudioVolumeUp",N.AudioVolumeUp,"AudioVolumeUp",175,"VK_VOLUME_UP",e,e],[1,y.AudioVolumeDown,"AudioVolumeDown",N.AudioVolumeDown,"AudioVolumeDown",174,"VK_VOLUME_DOWN",e,e],[1,y.NumpadComma,"NumpadComma",N.NUMPAD_SEPARATOR,"NumPad_Separator",108,"VK_SEPARATOR",e,e],[0,y.IntlRo,"IntlRo",N.ABNT_C1,"ABNT_C1",193,"VK_ABNT_C1",e,e],[1,y.KanaMode,"KanaMode",N.Unknown,e,0,e,e,e],[0,y.IntlYen,"IntlYen",N.Unknown,e,0,e,e,e],[1,y.Convert,"Convert",N.Unknown,e,0,e,e,e],[1,y.NonConvert,"NonConvert",N.Unknown,e,0,e,e,e],[1,y.Lang1,"Lang1",N.Unknown,e,0,e,e,e],[1,y.Lang2,"Lang2",N.Unknown,e,0,e,e,e],[1,y.Lang3,"Lang3",N.Unknown,e,0,e,e,e],[1,y.Lang4,"Lang4",N.Unknown,e,0,e,e,e],[1,y.Lang5,"Lang5",N.Unknown,e,0,e,e,e],[1,y.Abort,"Abort",N.Unknown,e,0,e,e,e],[1,y.Props,"Props",N.Unknown,e,0,e,e,e],[1,y.NumpadParenLeft,"NumpadParenLeft",N.Unknown,e,0,e,e,e],[1,y.NumpadParenRight,"NumpadParenRight",N.Unknown,e,0,e,e,e],[1,y.NumpadBackspace,"NumpadBackspace",N.Unknown,e,0,e,e,e],[1,y.NumpadMemoryStore,"NumpadMemoryStore",N.Unknown,e,0,e,e,e],[1,y.NumpadMemoryRecall,"NumpadMemoryRecall",N.Unknown,e,0,e,e,e],[1,y.NumpadMemoryClear,"NumpadMemoryClear",N.Unknown,e,0,e,e,e],[1,y.NumpadMemoryAdd,"NumpadMemoryAdd",N.Unknown,e,0,e,e,e],[1,y.NumpadMemorySubtract,"NumpadMemorySubtract",N.Unknown,e,0,e,e,e],[1,y.NumpadClear,"NumpadClear",N.Clear,"Clear",12,"VK_CLEAR",e,e],[1,y.NumpadClearEntry,"NumpadClearEntry",N.Unknown,e,0,e,e,e],[1,y.None,e,N.Ctrl,"Ctrl",17,"VK_CONTROL",e,e],[1,y.None,e,N.Shift,"Shift",16,"VK_SHIFT",e,e],[1,y.None,e,N.Alt,"Alt",18,"VK_MENU",e,e],[1,y.None,e,N.Meta,"Meta",91,"VK_COMMAND",e,e],[1,y.ControlLeft,"ControlLeft",N.Ctrl,e,0,"VK_LCONTROL",e,e],[1,y.ShiftLeft,"ShiftLeft",N.Shift,e,0,"VK_LSHIFT",e,e],[1,y.AltLeft,"AltLeft",N.Alt,e,0,"VK_LMENU",e,e],[1,y.MetaLeft,"MetaLeft",N.Meta,e,0,"VK_LWIN",e,e],[1,y.ControlRight,"ControlRight",N.Ctrl,e,0,"VK_RCONTROL",e,e],[1,y.ShiftRight,"ShiftRight",N.Shift,e,0,"VK_RSHIFT",e,e],[1,y.AltRight,"AltRight",N.Alt,e,0,"VK_RMENU",e,e],[1,y.MetaRight,"MetaRight",N.Meta,e,0,"VK_RWIN",e,e],[1,y.BrightnessUp,"BrightnessUp",N.Unknown,e,0,e,e,e],[1,y.BrightnessDown,"BrightnessDown",N.Unknown,e,0,e,e,e],[1,y.MediaPlay,"MediaPlay",N.Unknown,e,0,e,e,e],[1,y.MediaRecord,"MediaRecord",N.Unknown,e,0,e,e,e],[1,y.MediaFastForward,"MediaFastForward",N.Unknown,e,0,e,e,e],[1,y.MediaRewind,"MediaRewind",N.Unknown,e,0,e,e,e],[1,y.MediaTrackNext,"MediaTrackNext",N.MediaTrackNext,"MediaTrackNext",176,"VK_MEDIA_NEXT_TRACK",e,e],[1,y.MediaTrackPrevious,"MediaTrackPrevious",N.MediaTrackPrevious,"MediaTrackPrevious",177,"VK_MEDIA_PREV_TRACK",e,e],[1,y.MediaStop,"MediaStop",N.MediaStop,"MediaStop",178,"VK_MEDIA_STOP",e,e],[1,y.Eject,"Eject",N.Unknown,e,0,e,e,e],[1,y.MediaPlayPause,"MediaPlayPause",N.MediaPlayPause,"MediaPlayPause",179,"VK_MEDIA_PLAY_PAUSE",e,e],[1,y.MediaSelect,"MediaSelect",N.LaunchMediaPlayer,"LaunchMediaPlayer",181,"VK_MEDIA_LAUNCH_MEDIA_SELECT",e,e],[1,y.LaunchMail,"LaunchMail",N.LaunchMail,"LaunchMail",180,"VK_MEDIA_LAUNCH_MAIL",e,e],[1,y.LaunchApp2,"LaunchApp2",N.LaunchApp2,"LaunchApp2",183,"VK_MEDIA_LAUNCH_APP2",e,e],[1,y.LaunchApp1,"LaunchApp1",N.Unknown,e,0,"VK_MEDIA_LAUNCH_APP1",e,e],[1,y.SelectTask,"SelectTask",N.Unknown,e,0,e,e,e],[1,y.LaunchScreenSaver,"LaunchScreenSaver",N.Unknown,e,0,e,e,e],[1,y.BrowserSearch,"BrowserSearch",N.BrowserSearch,"BrowserSearch",170,"VK_BROWSER_SEARCH",e,e],[1,y.BrowserHome,"BrowserHome",N.BrowserHome,"BrowserHome",172,"VK_BROWSER_HOME",e,e],[1,y.BrowserBack,"BrowserBack",N.BrowserBack,"BrowserBack",166,"VK_BROWSER_BACK",e,e],[1,y.BrowserForward,"BrowserForward",N.BrowserForward,"BrowserForward",167,"VK_BROWSER_FORWARD",e,e],[1,y.BrowserStop,"BrowserStop",N.Unknown,e,0,"VK_BROWSER_STOP",e,e],[1,y.BrowserRefresh,"BrowserRefresh",N.Unknown,e,0,"VK_BROWSER_REFRESH",e,e],[1,y.BrowserFavorites,"BrowserFavorites",N.Unknown,e,0,"VK_BROWSER_FAVORITES",e,e],[1,y.ZoomToggle,"ZoomToggle",N.Unknown,e,0,e,e,e],[1,y.MailReply,"MailReply",N.Unknown,e,0,e,e,e],[1,y.MailForward,"MailForward",N.Unknown,e,0,e,e,e],[1,y.MailSend,"MailSend",N.Unknown,e,0,e,e,e],[1,y.None,e,N.KEY_IN_COMPOSITION,"KeyInComposition",229,e,e,e],[1,y.None,e,N.ABNT_C2,"ABNT_C2",194,"VK_ABNT_C2",e,e],[1,y.None,e,N.OEM_8,"OEM_8",223,"VK_OEM_8",e,e],[1,y.None,e,N.Unknown,e,0,"VK_KANA",e,e],[1,y.None,e,N.Unknown,e,0,"VK_HANGUL",e,e],[1,y.None,e,N.Unknown,e,0,"VK_JUNJA",e,e],[1,y.None,e,N.Unknown,e,0,"VK_FINAL",e,e],[1,y.None,e,N.Unknown,e,0,"VK_HANJA",e,e],[1,y.None,e,N.Unknown,e,0,"VK_KANJI",e,e],[1,y.None,e,N.Unknown,e,0,"VK_CONVERT",e,e],[1,y.None,e,N.Unknown,e,0,"VK_NONCONVERT",e,e],[1,y.None,e,N.Unknown,e,0,"VK_ACCEPT",e,e],[1,y.None,e,N.Unknown,e,0,"VK_MODECHANGE",e,e],[1,y.None,e,N.Unknown,e,0,"VK_SELECT",e,e],[1,y.None,e,N.Unknown,e,0,"VK_PRINT",e,e],[1,y.None,e,N.Unknown,e,0,"VK_EXECUTE",e,e],[1,y.None,e,N.Unknown,e,0,"VK_SNAPSHOT",e,e],[1,y.None,e,N.Unknown,e,0,"VK_HELP",e,e],[1,y.None,e,N.Unknown,e,0,"VK_APPS",e,e],[1,y.None,e,N.Unknown,e,0,"VK_PROCESSKEY",e,e],[1,y.None,e,N.Unknown,e,0,"VK_PACKET",e,e],[1,y.None,e,N.Unknown,e,0,"VK_DBE_SBCSCHAR",e,e],[1,y.None,e,N.Unknown,e,0,"VK_DBE_DBCSCHAR",e,e],[1,y.None,e,N.Unknown,e,0,"VK_ATTN",e,e],[1,y.None,e,N.Unknown,e,0,"VK_CRSEL",e,e],[1,y.None,e,N.Unknown,e,0,"VK_EXSEL",e,e],[1,y.None,e,N.Unknown,e,0,"VK_EREOF",e,e],[1,y.None,e,N.Unknown,e,0,"VK_PLAY",e,e],[1,y.None,e,N.Unknown,e,0,"VK_ZOOM",e,e],[1,y.None,e,N.Unknown,e,0,"VK_NONAME",e,e],[1,y.None,e,N.Unknown,e,0,"VK_PA1",e,e],[1,y.None,e,N.Unknown,e,0,"VK_OEM_CLEAR",e,e]],n=[],r=[];for(let i of t){let[s,o,a,u,l,c,f,d,m]=i;if(r[o]||(r[o]=!0,bE[o]=a,vE[a]=o,NE[a.toLowerCase()]=o,s&&(zp[o]=u,u!==N.Unknown&&u!==N.Enter&&!TE(u)&&(Uc[u]=o))),!n[u]){if(n[u]=!0,!l)throw new Error(`String representation missing for key code ${u} around scan code ${a}`);Ba.define(u,l),kc.define(u,d||l),Mc.define(u,m||d||l)}c&&(EE[c]=u),f&&(DE[f]=u)}Uc[N.Enter]=y.Enter})();var Wp;(function(e){function t(a){return Ba.keyCodeToStr(a)}e.toString=t;function n(a){return Ba.strToKeyCode(a)}e.fromString=n;function r(a){return kc.keyCodeToStr(a)}e.toUserSettingsUS=r;function i(a){return Mc.keyCodeToStr(a)}e.toUserSettingsGeneral=i;function s(a){return kc.strToKeyCode(a)||Mc.strToKeyCode(a)}e.fromUserSettings=s;function o(a){if(a>=N.Numpad0&&a<=N.NumpadDivide)return null;switch(a){case N.UpArrow:return"Up";case N.DownArrow:return"Down";case N.LeftArrow:return"Left";case N.RightArrow:return"Right"}return Ba.keyCodeToStr(a)}e.toElectronAccelerator=o})(Wp||(Wp={}));var ii;(function(e){e[e.CtrlCmd=2048]="CtrlCmd",e[e.Shift=1024]="Shift",e[e.Alt=512]="Alt",e[e.WinCtrl=256]="WinCtrl"})(ii||(ii={}));function Qp(e,t){let n=(t&65535)<<16>>>0;return(e|n)>>>0}function TE(e){return e===N.Ctrl||e===N.Shift||e===N.Alt||e===N.Meta}var Ca;(function(e){e[e.Uri=1]="Uri",e[e.Regexp=2]="Regexp",e[e.ScmResource=3]="ScmResource",e[e.ScmResourceGroup=4]="ScmResourceGroup",e[e.ScmProvider=5]="ScmProvider",e[e.CommentController=6]="CommentController",e[e.CommentThread=7]="CommentThread",e[e.CommentThreadInstance=8]="CommentThreadInstance",e[e.CommentThreadReply=9]="CommentThreadReply",e[e.CommentNode=10]="CommentNode",e[e.CommentThreadNode=11]="CommentThreadNode",e[e.TimelineActionContext=12]="TimelineActionContext",e[e.NotebookCellActionContext=13]="NotebookCellActionContext",e[e.NotebookActionContext=14]="NotebookActionContext",e[e.TerminalContext=15]="TerminalContext",e[e.TestItemContext=16]="TestItemContext",e[e.Date=17]="Date",e[e.TestMessageMenuArgs=18]="TestMessageMenuArgs",e[e.ChatViewContext=19]="ChatViewContext",e[e.LanguageModelToolResult=20]="LanguageModelToolResult",e[e.LanguageModelTextPart=21]="LanguageModelTextPart",e[e.LanguageModelThinkingPart=22]="LanguageModelThinkingPart",e[e.LanguageModelPromptTsxPart=23]="LanguageModelPromptTsxPart",e[e.LanguageModelDataPart=24]="LanguageModelDataPart",e[e.ChatSessionContext=25]="ChatSessionContext",e[e.ChatResponsePullRequestPart=26]="ChatResponsePullRequestPart"})(Ca||(Ca={}));var si,Pc=globalThis.vscode;if(typeof Pc<"u"&&typeof Pc.process<"u"){let e=Pc.process;si={get platform(){return e.platform},get arch(){return e.arch},get env(){return e.env},cwd(){return e.cwd()}}}else typeof process<"u"&&typeof process?.versions?.node=="string"?si={get platform(){return process.platform},get arch(){return process.arch},get env(){return process.env},cwd(){return process.env.VSCODE_CWD||process.cwd()}}:si={get platform(){return Pn?"win32":Dp?"darwin":"linux"},get arch(){},get env(){return{}},cwd(){return"/"}};var yo=si.cwd,Yp=si.env,Xp=si.platform,P6=si.arch;var wE=65,xE=97,yE=90,LE=122,oi=46,wt=47,Xt=92,dr=58,AE=63,Va=class extends Error{constructor(t,n,r){let i;typeof n=="string"&&n.indexOf("not ")===0?(i="must not be",n=n.replace(/^not /,"")):i="must be";let s=t.indexOf(".")!==-1?"property":"argument",o=`The "${t}" ${s} ${i} of type ${n}`;o+=`. Received type ${typeof r}`,super(o),this.code="ERR_INVALID_ARG_TYPE"}};function FE(e,t){if(e===null||typeof e!="object")throw new Va(t,"Object",e)}function it(e,t){if(typeof e!="string")throw new Va(t,"string",e)}var Tn=Xp==="win32";function Te(e){return e===wt||e===Xt}function Bc(e){return e===wt}function mr(e){return e>=wE&&e<=yE||e>=xE&&e<=LE}function $a(e,t,n,r){let i="",s=0,o=-1,a=0,u=0;for(let l=0;l<=e.length;++l){if(l<e.length)u=e.charCodeAt(l);else{if(r(u))break;u=wt}if(r(u)){if(!(o===l-1||a===1))if(a===2){if(i.length<2||s!==2||i.charCodeAt(i.length-1)!==oi||i.charCodeAt(i.length-2)!==oi){if(i.length>2){let c=i.lastIndexOf(n);c===-1?(i="",s=0):(i=i.slice(0,c),s=i.length-1-i.lastIndexOf(n)),o=l,a=0;continue}else if(i.length!==0){i="",s=0,o=l,a=0;continue}}t&&(i+=i.length>0?`${n}..`:"..",s=2)}else i.length>0?i+=`${n}${e.slice(o+1,l)}`:i=e.slice(o+1,l),s=l-o-1;o=l,a=0}else u===oi&&a!==-1?++a:a=-1}return i}function SE(e){return e?`${e[0]==="."?"":"."}${e}`:""}function Jp(e,t){FE(t,"pathObject");let n=t.dir||t.root,r=t.base||`${t.name||""}${SE(t.ext)}`;return n?n===t.root?`${n}${r}`:`${n}${e}${r}`:r}var Dt={resolve(...e){let t="",n="",r=!1;for(let i=e.length-1;i>=-1;i--){let s;if(i>=0){if(s=e[i],it(s,`paths[${i}]`),s.length===0)continue}else t.length===0?s=yo():(s=Yp[`=${t}`]||yo(),(s===void 0||s.slice(0,2).toLowerCase()!==t.toLowerCase()&&s.charCodeAt(2)===Xt)&&(s=`${t}\\`));let o=s.length,a=0,u="",l=!1,c=s.charCodeAt(0);if(o===1)Te(c)&&(a=1,l=!0);else if(Te(c))if(l=!0,Te(s.charCodeAt(1))){let f=2,d=f;for(;f<o&&!Te(s.charCodeAt(f));)f++;if(f<o&&f!==d){let m=s.slice(d,f);for(d=f;f<o&&Te(s.charCodeAt(f));)f++;if(f<o&&f!==d){for(d=f;f<o&&!Te(s.charCodeAt(f));)f++;(f===o||f!==d)&&(u=`\\\\${m}\\${s.slice(d,f)}`,a=f)}}}else a=1;else mr(c)&&s.charCodeAt(1)===dr&&(u=s.slice(0,2),a=2,o>2&&Te(s.charCodeAt(2))&&(l=!0,a=3));if(u.length>0)if(t.length>0){if(u.toLowerCase()!==t.toLowerCase())continue}else t=u;if(r){if(t.length>0)break}else if(n=`${s.slice(a)}\\${n}`,r=l,l&&t.length>0)break}return n=$a(n,!r,"\\",Te),r?`${t}\\${n}`:`${t}${n}`||"."},normalize(e){it(e,"path");let t=e.length;if(t===0)return".";let n=0,r,i=!1,s=e.charCodeAt(0);if(t===1)return Bc(s)?"\\":e;if(Te(s))if(i=!0,Te(e.charCodeAt(1))){let a=2,u=a;for(;a<t&&!Te(e.charCodeAt(a));)a++;if(a<t&&a!==u){let l=e.slice(u,a);for(u=a;a<t&&Te(e.charCodeAt(a));)a++;if(a<t&&a!==u){for(u=a;a<t&&!Te(e.charCodeAt(a));)a++;if(a===t)return`\\\\${l}\\${e.slice(u)}\\`;a!==u&&(r=`\\\\${l}\\${e.slice(u,a)}`,n=a)}}}else n=1;else mr(s)&&e.charCodeAt(1)===dr&&(r=e.slice(0,2),n=2,t>2&&Te(e.charCodeAt(2))&&(i=!0,n=3));let o=n<t?$a(e.slice(n),!i,"\\",Te):"";if(o.length===0&&!i&&(o="."),o.length>0&&Te(e.charCodeAt(t-1))&&(o+="\\"),!i&&r===void 0&&e.includes(":")){if(o.length>=2&&mr(o.charCodeAt(0))&&o.charCodeAt(1)===dr)return`.\\${o}`;let a=e.indexOf(":");do if(a===t-1||Te(e.charCodeAt(a+1)))return`.\\${o}`;while((a=e.indexOf(":",a+1))!==-1)}return r===void 0?i?`\\${o}`:o:i?`${r}\\${o}`:`${r}${o}`},isAbsolute(e){it(e,"path");let t=e.length;if(t===0)return!1;let n=e.charCodeAt(0);return Te(n)||t>2&&mr(n)&&e.charCodeAt(1)===dr&&Te(e.charCodeAt(2))},join(...e){if(e.length===0)return".";let t,n;for(let s=0;s<e.length;++s){let o=e[s];it(o,"path"),o.length>0&&(t===void 0?t=n=o:t+=`\\${o}`)}if(t===void 0)return".";let r=!0,i=0;if(typeof n=="string"&&Te(n.charCodeAt(0))){++i;let s=n.length;s>1&&Te(n.charCodeAt(1))&&(++i,s>2&&(Te(n.charCodeAt(2))?++i:r=!1))}if(r){for(;i<t.length&&Te(t.charCodeAt(i));)i++;i>=2&&(t=`\\${t.slice(i)}`)}return Dt.normalize(t)},relative(e,t){if(it(e,"from"),it(t,"to"),e===t)return"";let n=Dt.resolve(e),r=Dt.resolve(t);if(n===r||(e=n.toLowerCase(),t=r.toLowerCase(),e===t))return"";if(n.length!==e.length||r.length!==t.length){let g=n.split("\\"),E=r.split("\\");g[g.length-1]===""&&g.pop(),E[E.length-1]===""&&E.pop();let T=g.length,v=E.length,A=T<v?T:v,S;for(S=0;S<A&&g[S].toLowerCase()===E[S].toLowerCase();S++);return S===0?r:S===A?v>A?E.slice(S).join("\\"):T>A?"..\\".repeat(T-1-S)+"..":"":"..\\".repeat(T-S)+E.slice(S).join("\\")}let i=0;for(;i<e.length&&e.charCodeAt(i)===Xt;)i++;let s=e.length;for(;s-1>i&&e.charCodeAt(s-1)===Xt;)s--;let o=s-i,a=0;for(;a<t.length&&t.charCodeAt(a)===Xt;)a++;let u=t.length;for(;u-1>a&&t.charCodeAt(u-1)===Xt;)u--;let l=u-a,c=o<l?o:l,f=-1,d=0;for(;d<c;d++){let g=e.charCodeAt(i+d);if(g!==t.charCodeAt(a+d))break;g===Xt&&(f=d)}if(d!==c){if(f===-1)return r}else{if(l>c){if(t.charCodeAt(a+d)===Xt)return r.slice(a+d+1);if(d===2)return r.slice(a+d)}o>c&&(e.charCodeAt(i+d)===Xt?f=d:d===2&&(f=3)),f===-1&&(f=0)}let m="";for(d=i+f+1;d<=s;++d)(d===s||e.charCodeAt(d)===Xt)&&(m+=m.length===0?"..":"\\..");return a+=f,m.length>0?`${m}${r.slice(a,u)}`:(r.charCodeAt(a)===Xt&&++a,r.slice(a,u))},toNamespacedPath(e){if(typeof e!="string"||e.length===0)return e;let t=Dt.resolve(e);if(t.length<=2)return e;if(t.charCodeAt(0)===Xt){if(t.charCodeAt(1)===Xt){let n=t.charCodeAt(2);if(n!==AE&&n!==oi)return`\\\\?\\UNC\\${t.slice(2)}`}}else if(mr(t.charCodeAt(0))&&t.charCodeAt(1)===dr&&t.charCodeAt(2)===Xt)return`\\\\?\\${t}`;return t},dirname(e){it(e,"path");let t=e.length;if(t===0)return".";let n=-1,r=0,i=e.charCodeAt(0);if(t===1)return Te(i)?e:".";if(Te(i)){if(n=r=1,Te(e.charCodeAt(1))){let a=2,u=a;for(;a<t&&!Te(e.charCodeAt(a));)a++;if(a<t&&a!==u){for(u=a;a<t&&Te(e.charCodeAt(a));)a++;if(a<t&&a!==u){for(u=a;a<t&&!Te(e.charCodeAt(a));)a++;if(a===t)return e;a!==u&&(n=r=a+1)}}}}else mr(i)&&e.charCodeAt(1)===dr&&(n=t>2&&Te(e.charCodeAt(2))?3:2,r=n);let s=-1,o=!0;for(let a=t-1;a>=r;--a)if(Te(e.charCodeAt(a))){if(!o){s=a;break}}else o=!1;if(s===-1){if(n===-1)return".";s=n}return e.slice(0,s)},basename(e,t){t!==void 0&&it(t,"suffix"),it(e,"path");let n=0,r=-1,i=!0,s;if(e.length>=2&&mr(e.charCodeAt(0))&&e.charCodeAt(1)===dr&&(n=2),t!==void 0&&t.length>0&&t.length<=e.length){if(t===e)return"";let o=t.length-1,a=-1;for(s=e.length-1;s>=n;--s){let u=e.charCodeAt(s);if(Te(u)){if(!i){n=s+1;break}}else a===-1&&(i=!1,a=s+1),o>=0&&(u===t.charCodeAt(o)?--o===-1&&(r=s):(o=-1,r=a))}return n===r?r=a:r===-1&&(r=e.length),e.slice(n,r)}for(s=e.length-1;s>=n;--s)if(Te(e.charCodeAt(s))){if(!i){n=s+1;break}}else r===-1&&(i=!1,r=s+1);return r===-1?"":e.slice(n,r)},extname(e){it(e,"path");let t=0,n=-1,r=0,i=-1,s=!0,o=0;e.length>=2&&e.charCodeAt(1)===dr&&mr(e.charCodeAt(0))&&(t=r=2);for(let a=e.length-1;a>=t;--a){let u=e.charCodeAt(a);if(Te(u)){if(!s){r=a+1;break}continue}i===-1&&(s=!1,i=a+1),u===oi?n===-1?n=a:o!==1&&(o=1):n!==-1&&(o=-1)}return n===-1||i===-1||o===0||o===1&&n===i-1&&n===r+1?"":e.slice(n,i)},format:Jp.bind(null,"\\"),parse(e){it(e,"path");let t={root:"",dir:"",base:"",ext:"",name:""};if(e.length===0)return t;let n=e.length,r=0,i=e.charCodeAt(0);if(n===1)return Te(i)?(t.root=t.dir=e,t):(t.base=t.name=e,t);if(Te(i)){if(r=1,Te(e.charCodeAt(1))){let f=2,d=f;for(;f<n&&!Te(e.charCodeAt(f));)f++;if(f<n&&f!==d){for(d=f;f<n&&Te(e.charCodeAt(f));)f++;if(f<n&&f!==d){for(d=f;f<n&&!Te(e.charCodeAt(f));)f++;f===n?r=f:f!==d&&(r=f+1)}}}}else if(mr(i)&&e.charCodeAt(1)===dr){if(n<=2)return t.root=t.dir=e,t;if(r=2,Te(e.charCodeAt(2))){if(n===3)return t.root=t.dir=e,t;r=3}}r>0&&(t.root=e.slice(0,r));let s=-1,o=r,a=-1,u=!0,l=e.length-1,c=0;for(;l>=r;--l){if(i=e.charCodeAt(l),Te(i)){if(!u){o=l+1;break}continue}a===-1&&(u=!1,a=l+1),i===oi?s===-1?s=l:c!==1&&(c=1):s!==-1&&(c=-1)}return a!==-1&&(s===-1||c===0||c===1&&s===a-1&&s===o+1?t.base=t.name=e.slice(o,a):(t.name=e.slice(o,s),t.base=e.slice(o,a),t.ext=e.slice(s,a))),o>0&&o!==r?t.dir=e.slice(0,o-1):t.dir=t.root,t},sep:"\\",delimiter:";",win32:null,posix:null},RE=(()=>{if(Tn){let e=/\\/g;return()=>{let t=yo().replace(e,"/");return t.slice(t.indexOf("/"))}}return()=>yo()})(),Ve={resolve(...e){let t="",n=!1;for(let r=e.length-1;r>=0&&!n;r--){let i=e[r];it(i,`paths[${r}]`),i.length!==0&&(t=`${i}/${t}`,n=i.charCodeAt(0)===wt)}if(!n){let r=RE();t=`${r}/${t}`,n=r.charCodeAt(0)===wt}return t=$a(t,!n,"/",Bc),n?`/${t}`:t.length>0?t:"."},normalize(e){if(it(e,"path"),e.length===0)return".";let t=e.charCodeAt(0)===wt,n=e.charCodeAt(e.length-1)===wt;return e=$a(e,!t,"/",Bc),e.length===0?t?"/":n?"./":".":(n&&(e+="/"),t?`/${e}`:e)},isAbsolute(e){return it(e,"path"),e.length>0&&e.charCodeAt(0)===wt},join(...e){if(e.length===0)return".";let t=[];for(let n=0;n<e.length;++n){let r=e[n];it(r,"path"),r.length>0&&t.push(r)}return t.length===0?".":Ve.normalize(t.join("/"))},relative(e,t){if(it(e,"from"),it(t,"to"),e===t||(e=Ve.resolve(e),t=Ve.resolve(t),e===t))return"";let n=1,r=e.length,i=r-n,s=1,o=t.length-s,a=i<o?i:o,u=-1,l=0;for(;l<a;l++){let f=e.charCodeAt(n+l);if(f!==t.charCodeAt(s+l))break;f===wt&&(u=l)}if(l===a)if(o>a){if(t.charCodeAt(s+l)===wt)return t.slice(s+l+1);if(l===0)return t.slice(s+l)}else i>a&&(e.charCodeAt(n+l)===wt?u=l:l===0&&(u=0));let c="";for(l=n+u+1;l<=r;++l)(l===r||e.charCodeAt(l)===wt)&&(c+=c.length===0?"..":"/..");return`${c}${t.slice(s+u)}`},toNamespacedPath(e){return e},dirname(e){if(it(e,"path"),e.length===0)return".";let t=e.charCodeAt(0)===wt,n=-1,r=!0;for(let i=e.length-1;i>=1;--i)if(e.charCodeAt(i)===wt){if(!r){n=i;break}}else r=!1;return n===-1?t?"/":".":t&&n===1?"//":e.slice(0,n)},basename(e,t){t!==void 0&&it(t,"suffix"),it(e,"path");let n=0,r=-1,i=!0,s;if(t!==void 0&&t.length>0&&t.length<=e.length){if(t===e)return"";let o=t.length-1,a=-1;for(s=e.length-1;s>=0;--s){let u=e.charCodeAt(s);if(u===wt){if(!i){n=s+1;break}}else a===-1&&(i=!1,a=s+1),o>=0&&(u===t.charCodeAt(o)?--o===-1&&(r=s):(o=-1,r=a))}return n===r?r=a:r===-1&&(r=e.length),e.slice(n,r)}for(s=e.length-1;s>=0;--s)if(e.charCodeAt(s)===wt){if(!i){n=s+1;break}}else r===-1&&(i=!1,r=s+1);return r===-1?"":e.slice(n,r)},extname(e){it(e,"path");let t=-1,n=0,r=-1,i=!0,s=0;for(let o=e.length-1;o>=0;--o){let a=e[o];if(a==="/"){if(!i){n=o+1;break}continue}r===-1&&(i=!1,r=o+1),a==="."?t===-1?t=o:s!==1&&(s=1):t!==-1&&(s=-1)}return t===-1||r===-1||s===0||s===1&&t===r-1&&t===n+1?"":e.slice(t,r)},format:Jp.bind(null,"/"),parse(e){it(e,"path");let t={root:"",dir:"",base:"",ext:"",name:""};if(e.length===0)return t;let n=e.charCodeAt(0)===wt,r;n?(t.root="/",r=1):r=0;let i=-1,s=0,o=-1,a=!0,u=e.length-1,l=0;for(;u>=r;--u){let c=e.charCodeAt(u);if(c===wt){if(!a){s=u+1;break}continue}o===-1&&(a=!1,o=u+1),c===oi?i===-1?i=u:l!==1&&(l=1):i!==-1&&(l=-1)}if(o!==-1){let c=s===0&&n?1:s;i===-1||l===0||l===1&&i===o-1&&i===s+1?t.base=t.name=e.slice(c,o):(t.name=e.slice(c,i),t.base=e.slice(c,o),t.ext=e.slice(i,o))}return s>0?t.dir=e.slice(0,s-1):n&&(t.dir="/"),t},sep:"/",delimiter:":",win32:null,posix:null};Ve.win32=Dt.win32=Dt;Ve.posix=Dt.posix=Ve;var Zp=Tn?Dt.normalize:Ve.normalize,V6=Tn?Dt.isAbsolute:Ve.isAbsolute,Kp=Tn?Dt.join:Ve.join,ed=Tn?Dt.resolve:Ve.resolve,td=Tn?Dt.relative:Ve.relative,nd=Tn?Dt.dirname:Ve.dirname,$6=Tn?Dt.basename:Ve.basename,j6=Tn?Dt.extname:Ve.extname,G6=Tn?Dt.parse:Ve.parse,ts=Tn?Dt.sep:Ve.sep;var IE=/^\w[\w\d+.-]*$/,OE=/^\//,kE=/^\/\//;function ME(e,t){if(!e.scheme&&t)throw new Error(`[UriError]: Scheme is missing: {scheme: "", authority: "${e.authority}", path: "${e.path}", query: "${e.query}", fragment: "${e.fragment}"}`);if(e.scheme&&!IE.test(e.scheme))throw new Error("[UriError]: Scheme contains illegal characters.");if(e.path){if(e.authority){if(!OE.test(e.path))throw new Error('[UriError]: If a URI contains an authority component, then the path component must either be empty or begin with a slash ("/") character')}else if(kE.test(e.path))throw new Error('[UriError]: If a URI does not contain an authority component, then the path cannot begin with two slash characters ("//")')}}function UE(e,t){return!e&&!t?"file":e}function PE(e,t){switch(e){case"https":case"http":case"file":t?t[0]!==wn&&(t=wn+t):t=wn;break}return t}var Ge="",wn="/",BE=/^(([^:/?#]+?):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?/,ot=class e{static isUri(t){return t instanceof e?!0:!t||typeof t!="object"?!1:typeof t.authority=="string"&&typeof t.fragment=="string"&&typeof t.path=="string"&&typeof t.query=="string"&&typeof t.scheme=="string"&&typeof t.fsPath=="string"&&typeof t.with=="function"&&typeof t.toString=="function"}constructor(t,n,r,i,s,o=!1){typeof t=="object"?(this.scheme=t.scheme||Ge,this.authority=t.authority||Ge,this.path=t.path||Ge,this.query=t.query||Ge,this.fragment=t.fragment||Ge):(this.scheme=UE(t,o),this.authority=n||Ge,this.path=PE(this.scheme,r||Ge),this.query=i||Ge,this.fragment=s||Ge,ME(this,o))}get fsPath(){return Lo(this,!1)}with(t){if(!t)return this;let{scheme:n,authority:r,path:i,query:s,fragment:o}=t;return n===void 0?n=this.scheme:n===null&&(n=Ge),r===void 0?r=this.authority:r===null&&(r=Ge),i===void 0?i=this.path:i===null&&(i=Ge),s===void 0?s=this.query:s===null&&(s=Ge),o===void 0?o=this.fragment:o===null&&(o=Ge),n===this.scheme&&r===this.authority&&i===this.path&&s===this.query&&o===this.fragment?this:new Pr(n,r,i,s,o)}static parse(t,n=!1){let r=BE.exec(t);return r?new Pr(r[2]||Ge,ja(r[4]||Ge),ja(r[5]||Ge),ja(r[7]||Ge),ja(r[9]||Ge),n):new Pr(Ge,Ge,Ge,Ge,Ge)}static file(t){let n=Ge;if(Pn&&(t=t.replace(/\\/g,wn)),t[0]===wn&&t[1]===wn){let r=t.indexOf(wn,2);r===-1?(n=t.substring(2),t=wn):(n=t.substring(2,r),t=t.substring(r)||wn)}return new Pr("file",n,t,Ge,Ge)}static from(t,n){return new Pr(t.scheme,t.authority,t.path,t.query,t.fragment,n)}static joinPath(t,...n){if(!t.path)throw new Error("[UriError]: cannot call joinPath on URI without path");let r;return Pn&&t.scheme==="file"?r=e.file(Dt.join(Lo(t,!0),...n)).path:r=Ve.join(t.path,...n),t.with({path:r})}toString(t=!1){return Cc(this,t)}toJSON(){return this}static revive(t){if(t){if(t instanceof e)return t;{let n=new Pr(t);return n._formatted=t.external??null,n._fsPath=t._sep===sd?t.fsPath??null:null,n}}else return t}[Symbol.for("debug.description")](){return`URI(${this.toString()})`}};var sd=Pn?1:void 0,Pr=class extends ot{constructor(){super(...arguments),this._formatted=null,this._fsPath=null}get fsPath(){return this._fsPath||(this._fsPath=Lo(this,!1)),this._fsPath}toString(t=!1){return t?Cc(this,!0):(this._formatted||(this._formatted=Cc(this,!1)),this._formatted)}toJSON(){let t={$mid:Ca.Uri};return this._fsPath&&(t.fsPath=this._fsPath,t._sep=sd),this._formatted&&(t.external=this._formatted),this.path&&(t.path=this.path),this.scheme&&(t.scheme=this.scheme),this.authority&&(t.authority=this.authority),this.query&&(t.query=this.query),this.fragment&&(t.fragment=this.fragment),t}},od={[M.Colon]:"%3A",[M.Slash]:"%2F",[M.QuestionMark]:"%3F",[M.Hash]:"%23",[M.OpenSquareBracket]:"%5B",[M.CloseSquareBracket]:"%5D",[M.AtSign]:"%40",[M.ExclamationMark]:"%21",[M.DollarSign]:"%24",[M.Ampersand]:"%26",[M.SingleQuote]:"%27",[M.OpenParen]:"%28",[M.CloseParen]:"%29",[M.Asterisk]:"%2A",[M.Plus]:"%2B",[M.Comma]:"%2C",[M.Semicolon]:"%3B",[M.Equals]:"%3D",[M.Space]:"%20"};function rd(e,t,n){let r,i=-1;for(let s=0;s<e.length;s++){let o=e.charCodeAt(s);if(o>=M.a&&o<=M.z||o>=M.A&&o<=M.Z||o>=M.Digit0&&o<=M.Digit9||o===M.Dash||o===M.Period||o===M.Underline||o===M.Tilde||t&&o===M.Slash||n&&o===M.OpenSquareBracket||n&&o===M.CloseSquareBracket||n&&o===M.Colon)i!==-1&&(r+=encodeURIComponent(e.substring(i,s)),i=-1),r!==void 0&&(r+=e.charAt(s));else{r===void 0&&(r=e.substr(0,s));let a=od[o];a!==void 0?(i!==-1&&(r+=encodeURIComponent(e.substring(i,s)),i=-1),r+=a):i===-1&&(i=s)}}return i!==-1&&(r+=encodeURIComponent(e.substring(i))),r!==void 0?r:e}function CE(e){let t;for(let n=0;n<e.length;n++){let r=e.charCodeAt(n);r===M.Hash||r===M.QuestionMark?(t===void 0&&(t=e.substr(0,n)),t+=od[r]):t!==void 0&&(t+=e[n])}return t!==void 0?t:e}function Lo(e,t){let n;return e.authority&&e.path.length>1&&e.scheme==="file"?n=`//${e.authority}${e.path}`:e.path.charCodeAt(0)===M.Slash&&(e.path.charCodeAt(1)>=M.A&&e.path.charCodeAt(1)<=M.Z||e.path.charCodeAt(1)>=M.a&&e.path.charCodeAt(1)<=M.z)&&e.path.charCodeAt(2)===M.Colon?t?n=e.path.substr(1):n=e.path[1].toLowerCase()+e.path.substr(2):n=e.path,Pn&&(n=n.replace(/\//g,"\\")),n}function Cc(e,t){let n=t?CE:rd,r="",{scheme:i,authority:s,path:o,query:a,fragment:u}=e;if(i&&(r+=i,r+=":"),(s||i==="file")&&(r+=wn,r+=wn),s){let l=s.indexOf("@");if(l!==-1){let c=s.substr(0,l);s=s.substr(l+1),l=c.lastIndexOf(":"),l===-1?r+=n(c,!1,!1):(r+=n(c.substr(0,l),!1,!1),r+=":",r+=n(c.substr(l+1),!1,!0)),r+="@"}s=s.toLowerCase(),l=s.lastIndexOf(":"),l===-1?r+=n(s,!1,!0):(r+=n(s.substr(0,l),!1,!0),r+=s.substr(l))}if(o){if(o.length>=3&&o.charCodeAt(0)===M.Slash&&o.charCodeAt(2)===M.Colon){let l=o.charCodeAt(1);l>=M.A&&l<=M.Z&&(o=`/${String.fromCharCode(l+32)}:${o.substr(3)}`)}else if(o.length>=2&&o.charCodeAt(1)===M.Colon){let l=o.charCodeAt(0);l>=M.A&&l<=M.Z&&(o=`${String.fromCharCode(l+32)}:${o.substr(2)}`)}r+=n(o,!0,!1)}return a&&(r+="?",r+=n(a,!1,!1)),u&&(r+="#",r+=t?u:rd(u,!1,!1)),r}function ad(e){try{return decodeURIComponent(e)}catch{return e.length>3?e.substr(0,3)+ad(e.substr(3)):e}}var id=/(%[0-9A-Za-z][0-9A-Za-z])+/g;function ja(e){return e.match(id)?e.replace(id,t=>ad(t)):e}var Br;(function(e){e[e.LTR=0]="LTR",e[e.RTL=1]="RTL"})(Br||(Br={}));var Ga=class e extends ie{constructor(t,n,r,i){super(t,n,r,i),this.selectionStartLineNumber=t,this.selectionStartColumn=n,this.positionLineNumber=r,this.positionColumn=i}toString(){return"["+this.selectionStartLineNumber+","+this.selectionStartColumn+" -> "+this.positionLineNumber+","+this.positionColumn+"]"}equalsSelection(t){return e.selectionsEqual(this,t)}static selectionsEqual(t,n){return t.selectionStartLineNumber===n.selectionStartLineNumber&&t.selectionStartColumn===n.selectionStartColumn&&t.positionLineNumber===n.positionLineNumber&&t.positionColumn===n.positionColumn}getDirection(){return this.selectionStartLineNumber===this.startLineNumber&&this.selectionStartColumn===this.startColumn?Br.LTR:Br.RTL}setEndPosition(t,n){return this.getDirection()===Br.LTR?new e(this.startLineNumber,this.startColumn,t,n):new e(t,n,this.startLineNumber,this.startColumn)}getPosition(){return new me(this.positionLineNumber,this.positionColumn)}getSelectionStart(){return new me(this.selectionStartLineNumber,this.selectionStartColumn)}setStartPosition(t,n){return this.getDirection()===Br.LTR?new e(t,n,this.endLineNumber,this.endColumn):new e(this.endLineNumber,this.endColumn,t,n)}static fromPositions(t,n=t){return new e(t.lineNumber,t.column,n.lineNumber,n.column)}static fromRange(t,n){return n===Br.LTR?new e(t.startLineNumber,t.startColumn,t.endLineNumber,t.endColumn):new e(t.endLineNumber,t.endColumn,t.startLineNumber,t.startColumn)}static liftSelection(t){return new e(t.selectionStartLineNumber,t.selectionStartColumn,t.positionLineNumber,t.positionColumn)}static selectionsArrEqual(t,n){if(t&&!n||!t&&n)return!1;if(!t&&!n)return!0;if(t.length!==n.length)return!1;for(let r=0,i=t.length;r<i;r++)if(!this.selectionsEqual(t[r],n[r]))return!1;return!0}static isISelection(t){return!!t&&typeof t.selectionStartLineNumber=="number"&&typeof t.selectionStartColumn=="number"&&typeof t.positionLineNumber=="number"&&typeof t.positionColumn=="number"}static createWithDirection(t,n,r,i,s){return s===Br.LTR?new e(t,n,r,i):new e(r,i,t,n)}};var ud=Object.create(null);function h(e,t){if(op(t)){let n=ud[t];if(n===void 0)throw new Error(`${e} references an unknown codicon: ${t}`);t=n}return ud[e]=t,{id:e}}var ld={add:h("add",6e4),plus:h("plus",6e4),gistNew:h("gist-new",6e4),repoCreate:h("repo-create",6e4),lightbulb:h("lightbulb",60001),lightBulb:h("light-bulb",60001),repo:h("repo",60002),repoDelete:h("repo-delete",60002),gistFork:h("gist-fork",60003),repoForked:h("repo-forked",60003),gitPullRequest:h("git-pull-request",60004),gitPullRequestAbandoned:h("git-pull-request-abandoned",60004),recordKeys:h("record-keys",60005),keyboard:h("keyboard",60005),tag:h("tag",60006),gitPullRequestLabel:h("git-pull-request-label",60006),tagAdd:h("tag-add",60006),tagRemove:h("tag-remove",60006),person:h("person",60007),personFollow:h("person-follow",60007),personOutline:h("person-outline",60007),personFilled:h("person-filled",60007),sourceControl:h("source-control",60008),mirror:h("mirror",60009),mirrorPublic:h("mirror-public",60009),star:h("star",60010),starAdd:h("star-add",60010),starDelete:h("star-delete",60010),starEmpty:h("star-empty",60010),comment:h("comment",60011),commentAdd:h("comment-add",60011),alert:h("alert",60012),warning:h("warning",60012),search:h("search",60013),searchSave:h("search-save",60013),logOut:h("log-out",60014),signOut:h("sign-out",60014),logIn:h("log-in",60015),signIn:h("sign-in",60015),eye:h("eye",60016),eyeUnwatch:h("eye-unwatch",60016),eyeWatch:h("eye-watch",60016),circleFilled:h("circle-filled",60017),primitiveDot:h("primitive-dot",60017),closeDirty:h("close-dirty",60017),debugBreakpoint:h("debug-breakpoint",60017),debugBreakpointDisabled:h("debug-breakpoint-disabled",60017),debugHint:h("debug-hint",60017),terminalDecorationSuccess:h("terminal-decoration-success",60017),primitiveSquare:h("primitive-square",60018),edit:h("edit",60019),pencil:h("pencil",60019),info:h("info",60020),issueOpened:h("issue-opened",60020),gistPrivate:h("gist-private",60021),gitForkPrivate:h("git-fork-private",60021),lock:h("lock",60021),mirrorPrivate:h("mirror-private",60021),close:h("close",60022),removeClose:h("remove-close",60022),x:h("x",60022),repoSync:h("repo-sync",60023),sync:h("sync",60023),clone:h("clone",60024),desktopDownload:h("desktop-download",60024),beaker:h("beaker",60025),microscope:h("microscope",60025),vm:h("vm",60026),deviceDesktop:h("device-desktop",60026),file:h("file",60027),more:h("more",60028),ellipsis:h("ellipsis",60028),kebabHorizontal:h("kebab-horizontal",60028),mailReply:h("mail-reply",60029),reply:h("reply",60029),organization:h("organization",60030),organizationFilled:h("organization-filled",60030),organizationOutline:h("organization-outline",60030),newFile:h("new-file",60031),fileAdd:h("file-add",60031),newFolder:h("new-folder",60032),fileDirectoryCreate:h("file-directory-create",60032),trash:h("trash",60033),trashcan:h("trashcan",60033),history:h("history",60034),clock:h("clock",60034),folder:h("folder",60035),fileDirectory:h("file-directory",60035),symbolFolder:h("symbol-folder",60035),logoGithub:h("logo-github",60036),markGithub:h("mark-github",60036),github:h("github",60036),terminal:h("terminal",60037),console:h("console",60037),repl:h("repl",60037),zap:h("zap",60038),symbolEvent:h("symbol-event",60038),error:h("error",60039),stop:h("stop",60039),variable:h("variable",60040),symbolVariable:h("symbol-variable",60040),array:h("array",60042),symbolArray:h("symbol-array",60042),symbolModule:h("symbol-module",60043),symbolPackage:h("symbol-package",60043),symbolNamespace:h("symbol-namespace",60043),symbolObject:h("symbol-object",60043),symbolMethod:h("symbol-method",60044),symbolFunction:h("symbol-function",60044),symbolConstructor:h("symbol-constructor",60044),symbolBoolean:h("symbol-boolean",60047),symbolNull:h("symbol-null",60047),symbolNumeric:h("symbol-numeric",60048),symbolNumber:h("symbol-number",60048),symbolStructure:h("symbol-structure",60049),symbolStruct:h("symbol-struct",60049),symbolParameter:h("symbol-parameter",60050),symbolTypeParameter:h("symbol-type-parameter",60050),symbolKey:h("symbol-key",60051),symbolText:h("symbol-text",60051),symbolReference:h("symbol-reference",60052),goToFile:h("go-to-file",60052),symbolEnum:h("symbol-enum",60053),symbolValue:h("symbol-value",60053),symbolRuler:h("symbol-ruler",60054),symbolUnit:h("symbol-unit",60054),activateBreakpoints:h("activate-breakpoints",60055),archive:h("archive",60056),arrowBoth:h("arrow-both",60057),arrowDown:h("arrow-down",60058),arrowLeft:h("arrow-left",60059),arrowRight:h("arrow-right",60060),arrowSmallDown:h("arrow-small-down",60061),arrowSmallLeft:h("arrow-small-left",60062),arrowSmallRight:h("arrow-small-right",60063),arrowSmallUp:h("arrow-small-up",60064),arrowUp:h("arrow-up",60065),bell:h("bell",60066),bold:h("bold",60067),book:h("book",60068),bookmark:h("bookmark",60069),debugBreakpointConditionalUnverified:h("debug-breakpoint-conditional-unverified",60070),debugBreakpointConditional:h("debug-breakpoint-conditional",60071),debugBreakpointConditionalDisabled:h("debug-breakpoint-conditional-disabled",60071),debugBreakpointDataUnverified:h("debug-breakpoint-data-unverified",60072),debugBreakpointData:h("debug-breakpoint-data",60073),debugBreakpointDataDisabled:h("debug-breakpoint-data-disabled",60073),debugBreakpointLogUnverified:h("debug-breakpoint-log-unverified",60074),debugBreakpointLog:h("debug-breakpoint-log",60075),debugBreakpointLogDisabled:h("debug-breakpoint-log-disabled",60075),briefcase:h("briefcase",60076),broadcast:h("broadcast",60077),browser:h("browser",60078),bug:h("bug",60079),calendar:h("calendar",60080),caseSensitive:h("case-sensitive",60081),check:h("check",60082),checklist:h("checklist",60083),chevronDown:h("chevron-down",60084),chevronLeft:h("chevron-left",60085),chevronRight:h("chevron-right",60086),chevronUp:h("chevron-up",60087),chromeClose:h("chrome-close",60088),chromeMaximize:h("chrome-maximize",60089),chromeMinimize:h("chrome-minimize",60090),chromeRestore:h("chrome-restore",60091),circleOutline:h("circle-outline",60092),circle:h("circle",60092),debugBreakpointUnverified:h("debug-breakpoint-unverified",60092),terminalDecorationIncomplete:h("terminal-decoration-incomplete",60092),circleSlash:h("circle-slash",60093),circuitBoard:h("circuit-board",60094),clearAll:h("clear-all",60095),clippy:h("clippy",60096),closeAll:h("close-all",60097),cloudDownload:h("cloud-download",60098),cloudUpload:h("cloud-upload",60099),code:h("code",60100),collapseAll:h("collapse-all",60101),colorMode:h("color-mode",60102),commentDiscussion:h("comment-discussion",60103),creditCard:h("credit-card",60105),dash:h("dash",60108),dashboard:h("dashboard",60109),database:h("database",60110),debugContinue:h("debug-continue",60111),debugDisconnect:h("debug-disconnect",60112),debugPause:h("debug-pause",60113),debugRestart:h("debug-restart",60114),debugStart:h("debug-start",60115),debugStepInto:h("debug-step-into",60116),debugStepOut:h("debug-step-out",60117),debugStepOver:h("debug-step-over",60118),debugStop:h("debug-stop",60119),debug:h("debug",60120),deviceCameraVideo:h("device-camera-video",60121),deviceCamera:h("device-camera",60122),deviceMobile:h("device-mobile",60123),diffAdded:h("diff-added",60124),diffIgnored:h("diff-ignored",60125),diffModified:h("diff-modified",60126),diffRemoved:h("diff-removed",60127),diffRenamed:h("diff-renamed",60128),diff:h("diff",60129),diffSidebyside:h("diff-sidebyside",60129),discard:h("discard",60130),editorLayout:h("editor-layout",60131),emptyWindow:h("empty-window",60132),exclude:h("exclude",60133),extensions:h("extensions",60134),eyeClosed:h("eye-closed",60135),fileBinary:h("file-binary",60136),fileCode:h("file-code",60137),fileMedia:h("file-media",60138),filePdf:h("file-pdf",60139),fileSubmodule:h("file-submodule",60140),fileSymlinkDirectory:h("file-symlink-directory",60141),fileSymlinkFile:h("file-symlink-file",60142),fileZip:h("file-zip",60143),files:h("files",60144),filter:h("filter",60145),flame:h("flame",60146),foldDown:h("fold-down",60147),foldUp:h("fold-up",60148),fold:h("fold",60149),folderActive:h("folder-active",60150),folderOpened:h("folder-opened",60151),gear:h("gear",60152),gift:h("gift",60153),gistSecret:h("gist-secret",60154),gist:h("gist",60155),gitCommit:h("git-commit",60156),gitCompare:h("git-compare",60157),compareChanges:h("compare-changes",60157),gitMerge:h("git-merge",60158),githubAction:h("github-action",60159),githubAlt:h("github-alt",60160),globe:h("globe",60161),grabber:h("grabber",60162),graph:h("graph",60163),gripper:h("gripper",60164),heart:h("heart",60165),home:h("home",60166),horizontalRule:h("horizontal-rule",60167),hubot:h("hubot",60168),inbox:h("inbox",60169),issueReopened:h("issue-reopened",60171),issues:h("issues",60172),italic:h("italic",60173),jersey:h("jersey",60174),json:h("json",60175),kebabVertical:h("kebab-vertical",60176),key:h("key",60177),law:h("law",60178),lightbulbAutofix:h("lightbulb-autofix",60179),linkExternal:h("link-external",60180),link:h("link",60181),listOrdered:h("list-ordered",60182),listUnordered:h("list-unordered",60183),liveShare:h("live-share",60184),loading:h("loading",60185),location:h("location",60186),mailRead:h("mail-read",60187),mail:h("mail",60188),markdown:h("markdown",60189),megaphone:h("megaphone",60190),mention:h("mention",60191),milestone:h("milestone",60192),gitPullRequestMilestone:h("git-pull-request-milestone",60192),mortarBoard:h("mortar-board",60193),move:h("move",60194),multipleWindows:h("multiple-windows",60195),mute:h("mute",60196),noNewline:h("no-newline",60197),note:h("note",60198),octoface:h("octoface",60199),openPreview:h("open-preview",60200),package:h("package",60201),paintcan:h("paintcan",60202),pin:h("pin",60203),play:h("play",60204),run:h("run",60204),plug:h("plug",60205),preserveCase:h("preserve-case",60206),preview:h("preview",60207),project:h("project",60208),pulse:h("pulse",60209),question:h("question",60210),quote:h("quote",60211),radioTower:h("radio-tower",60212),reactions:h("reactions",60213),references:h("references",60214),refresh:h("refresh",60215),regex:h("regex",60216),remoteExplorer:h("remote-explorer",60217),remote:h("remote",60218),remove:h("remove",60219),replaceAll:h("replace-all",60220),replace:h("replace",60221),repoClone:h("repo-clone",60222),repoForcePush:h("repo-force-push",60223),repoPull:h("repo-pull",60224),repoPush:h("repo-push",60225),report:h("report",60226),requestChanges:h("request-changes",60227),rocket:h("rocket",60228),rootFolderOpened:h("root-folder-opened",60229),rootFolder:h("root-folder",60230),rss:h("rss",60231),ruby:h("ruby",60232),saveAll:h("save-all",60233),saveAs:h("save-as",60234),save:h("save",60235),screenFull:h("screen-full",60236),screenNormal:h("screen-normal",60237),searchStop:h("search-stop",60238),server:h("server",60240),settingsGear:h("settings-gear",60241),settings:h("settings",60242),shield:h("shield",60243),smiley:h("smiley",60244),sortPrecedence:h("sort-precedence",60245),splitHorizontal:h("split-horizontal",60246),splitVertical:h("split-vertical",60247),squirrel:h("squirrel",60248),starFull:h("star-full",60249),starHalf:h("star-half",60250),symbolClass:h("symbol-class",60251),symbolColor:h("symbol-color",60252),symbolConstant:h("symbol-constant",60253),symbolEnumMember:h("symbol-enum-member",60254),symbolField:h("symbol-field",60255),symbolFile:h("symbol-file",60256),symbolInterface:h("symbol-interface",60257),symbolKeyword:h("symbol-keyword",60258),symbolMisc:h("symbol-misc",60259),symbolOperator:h("symbol-operator",60260),symbolProperty:h("symbol-property",60261),wrench:h("wrench",60261),wrenchSubaction:h("wrench-subaction",60261),symbolSnippet:h("symbol-snippet",60262),tasklist:h("tasklist",60263),telescope:h("telescope",60264),textSize:h("text-size",60265),threeBars:h("three-bars",60266),thumbsdown:h("thumbsdown",60267),thumbsup:h("thumbsup",60268),tools:h("tools",60269),triangleDown:h("triangle-down",60270),triangleLeft:h("triangle-left",60271),triangleRight:h("triangle-right",60272),triangleUp:h("triangle-up",60273),twitter:h("twitter",60274),unfold:h("unfold",60275),unlock:h("unlock",60276),unmute:h("unmute",60277),unverified:h("unverified",60278),verified:h("verified",60279),versions:h("versions",60280),vmActive:h("vm-active",60281),vmOutline:h("vm-outline",60282),vmRunning:h("vm-running",60283),watch:h("watch",60284),whitespace:h("whitespace",60285),wholeWord:h("whole-word",60286),window:h("window",60287),wordWrap:h("word-wrap",60288),zoomIn:h("zoom-in",60289),zoomOut:h("zoom-out",60290),listFilter:h("list-filter",60291),listFlat:h("list-flat",60292),listSelection:h("list-selection",60293),selection:h("selection",60293),listTree:h("list-tree",60294),debugBreakpointFunctionUnverified:h("debug-breakpoint-function-unverified",60295),debugBreakpointFunction:h("debug-breakpoint-function",60296),debugBreakpointFunctionDisabled:h("debug-breakpoint-function-disabled",60296),debugStackframeActive:h("debug-stackframe-active",60297),circleSmallFilled:h("circle-small-filled",60298),debugStackframeDot:h("debug-stackframe-dot",60298),terminalDecorationMark:h("terminal-decoration-mark",60298),debugStackframe:h("debug-stackframe",60299),debugStackframeFocused:h("debug-stackframe-focused",60299),debugBreakpointUnsupported:h("debug-breakpoint-unsupported",60300),symbolString:h("symbol-string",60301),debugReverseContinue:h("debug-reverse-continue",60302),debugStepBack:h("debug-step-back",60303),debugRestartFrame:h("debug-restart-frame",60304),debugAlt:h("debug-alt",60305),callIncoming:h("call-incoming",60306),callOutgoing:h("call-outgoing",60307),menu:h("menu",60308),expandAll:h("expand-all",60309),feedback:h("feedback",60310),gitPullRequestReviewer:h("git-pull-request-reviewer",60310),groupByRefType:h("group-by-ref-type",60311),ungroupByRefType:h("ungroup-by-ref-type",60312),account:h("account",60313),gitPullRequestAssignee:h("git-pull-request-assignee",60313),bellDot:h("bell-dot",60314),debugConsole:h("debug-console",60315),library:h("library",60316),output:h("output",60317),runAll:h("run-all",60318),syncIgnored:h("sync-ignored",60319),pinned:h("pinned",60320),githubInverted:h("github-inverted",60321),serverProcess:h("server-process",60322),serverEnvironment:h("server-environment",60323),pass:h("pass",60324),issueClosed:h("issue-closed",60324),stopCircle:h("stop-circle",60325),playCircle:h("play-circle",60326),record:h("record",60327),debugAltSmall:h("debug-alt-small",60328),vmConnect:h("vm-connect",60329),cloud:h("cloud",60330),merge:h("merge",60331),export:h("export",60332),graphLeft:h("graph-left",60333),magnet:h("magnet",60334),notebook:h("notebook",60335),redo:h("redo",60336),checkAll:h("check-all",60337),pinnedDirty:h("pinned-dirty",60338),passFilled:h("pass-filled",60339),circleLargeFilled:h("circle-large-filled",60340),circleLarge:h("circle-large",60341),circleLargeOutline:h("circle-large-outline",60341),combine:h("combine",60342),gather:h("gather",60342),table:h("table",60343),variableGroup:h("variable-group",60344),typeHierarchy:h("type-hierarchy",60345),typeHierarchySub:h("type-hierarchy-sub",60346),typeHierarchySuper:h("type-hierarchy-super",60347),gitPullRequestCreate:h("git-pull-request-create",60348),runAbove:h("run-above",60349),runBelow:h("run-below",60350),notebookTemplate:h("notebook-template",60351),debugRerun:h("debug-rerun",60352),workspaceTrusted:h("workspace-trusted",60353),workspaceUntrusted:h("workspace-untrusted",60354),workspaceUnknown:h("workspace-unknown",60355),terminalCmd:h("terminal-cmd",60356),terminalDebian:h("terminal-debian",60357),terminalLinux:h("terminal-linux",60358),terminalPowershell:h("terminal-powershell",60359),terminalTmux:h("terminal-tmux",60360),terminalUbuntu:h("terminal-ubuntu",60361),terminalBash:h("terminal-bash",60362),arrowSwap:h("arrow-swap",60363),copy:h("copy",60364),personAdd:h("person-add",60365),filterFilled:h("filter-filled",60366),wand:h("wand",60367),debugLineByLine:h("debug-line-by-line",60368),inspect:h("inspect",60369),layers:h("layers",60370),layersDot:h("layers-dot",60371),layersActive:h("layers-active",60372),compass:h("compass",60373),compassDot:h("compass-dot",60374),compassActive:h("compass-active",60375),azure:h("azure",60376),issueDraft:h("issue-draft",60377),gitPullRequestClosed:h("git-pull-request-closed",60378),gitPullRequestDraft:h("git-pull-request-draft",60379),debugAll:h("debug-all",60380),debugCoverage:h("debug-coverage",60381),runErrors:h("run-errors",60382),folderLibrary:h("folder-library",60383),debugContinueSmall:h("debug-continue-small",60384),beakerStop:h("beaker-stop",60385),graphLine:h("graph-line",60386),graphScatter:h("graph-scatter",60387),pieChart:h("pie-chart",60388),bracket:h("bracket",60175),bracketDot:h("bracket-dot",60389),bracketError:h("bracket-error",60390),lockSmall:h("lock-small",60391),azureDevops:h("azure-devops",60392),verifiedFilled:h("verified-filled",60393),newline:h("newline",60394),layout:h("layout",60395),layoutActivitybarLeft:h("layout-activitybar-left",60396),layoutActivitybarRight:h("layout-activitybar-right",60397),layoutPanelLeft:h("layout-panel-left",60398),layoutPanelCenter:h("layout-panel-center",60399),layoutPanelJustify:h("layout-panel-justify",60400),layoutPanelRight:h("layout-panel-right",60401),layoutPanel:h("layout-panel",60402),layoutSidebarLeft:h("layout-sidebar-left",60403),layoutSidebarRight:h("layout-sidebar-right",60404),layoutStatusbar:h("layout-statusbar",60405),layoutMenubar:h("layout-menubar",60406),layoutCentered:h("layout-centered",60407),target:h("target",60408),indent:h("indent",60409),recordSmall:h("record-small",60410),errorSmall:h("error-small",60411),terminalDecorationError:h("terminal-decoration-error",60411),arrowCircleDown:h("arrow-circle-down",60412),arrowCircleLeft:h("arrow-circle-left",60413),arrowCircleRight:h("arrow-circle-right",60414),arrowCircleUp:h("arrow-circle-up",60415),layoutSidebarRightOff:h("layout-sidebar-right-off",60416),layoutPanelOff:h("layout-panel-off",60417),layoutSidebarLeftOff:h("layout-sidebar-left-off",60418),blank:h("blank",60419),heartFilled:h("heart-filled",60420),map:h("map",60421),mapHorizontal:h("map-horizontal",60421),foldHorizontal:h("fold-horizontal",60421),mapFilled:h("map-filled",60422),mapHorizontalFilled:h("map-horizontal-filled",60422),foldHorizontalFilled:h("fold-horizontal-filled",60422),circleSmall:h("circle-small",60423),bellSlash:h("bell-slash",60424),bellSlashDot:h("bell-slash-dot",60425),commentUnresolved:h("comment-unresolved",60426),gitPullRequestGoToChanges:h("git-pull-request-go-to-changes",60427),gitPullRequestNewChanges:h("git-pull-request-new-changes",60428),searchFuzzy:h("search-fuzzy",60429),commentDraft:h("comment-draft",60430),send:h("send",60431),sparkle:h("sparkle",60432),insert:h("insert",60433),mic:h("mic",60434),thumbsdownFilled:h("thumbsdown-filled",60435),thumbsupFilled:h("thumbsup-filled",60436),coffee:h("coffee",60437),snake:h("snake",60438),game:h("game",60439),vr:h("vr",60440),chip:h("chip",60441),piano:h("piano",60442),music:h("music",60443),micFilled:h("mic-filled",60444),repoFetch:h("repo-fetch",60445),copilot:h("copilot",60446),lightbulbSparkle:h("lightbulb-sparkle",60447),robot:h("robot",60448),sparkleFilled:h("sparkle-filled",60449),diffSingle:h("diff-single",60450),diffMultiple:h("diff-multiple",60451),surroundWith:h("surround-with",60452),share:h("share",60453),gitStash:h("git-stash",60454),gitStashApply:h("git-stash-apply",60455),gitStashPop:h("git-stash-pop",60456),vscode:h("vscode",60457),vscodeInsiders:h("vscode-insiders",60458),codeOss:h("code-oss",60459),runCoverage:h("run-coverage",60460),runAllCoverage:h("run-all-coverage",60461),coverage:h("coverage",60462),githubProject:h("github-project",60463),mapVertical:h("map-vertical",60464),foldVertical:h("fold-vertical",60464),mapVerticalFilled:h("map-vertical-filled",60465),foldVerticalFilled:h("fold-vertical-filled",60465),goToSearch:h("go-to-search",60466),percentage:h("percentage",60467),sortPercentage:h("sort-percentage",60467),attach:h("attach",60468),goToEditingSession:h("go-to-editing-session",60469),editSession:h("edit-session",60470),codeReview:h("code-review",60471),copilotWarning:h("copilot-warning",60472),python:h("python",60473),copilotLarge:h("copilot-large",60474),copilotWarningLarge:h("copilot-warning-large",60475),keyboardTab:h("keyboard-tab",60476),copilotBlocked:h("copilot-blocked",60477),copilotNotConnected:h("copilot-not-connected",60478),flag:h("flag",60479),lightbulbEmpty:h("lightbulb-empty",60480),symbolMethodArrow:h("symbol-method-arrow",60481),copilotUnavailable:h("copilot-unavailable",60482),repoPinned:h("repo-pinned",60483),keyboardTabAbove:h("keyboard-tab-above",60484),keyboardTabBelow:h("keyboard-tab-below",60485),gitPullRequestDone:h("git-pull-request-done",60486),mcp:h("mcp",60487),extensionsLarge:h("extensions-large",60488),layoutPanelDock:h("layout-panel-dock",60489),layoutSidebarLeftDock:h("layout-sidebar-left-dock",60490),layoutSidebarRightDock:h("layout-sidebar-right-dock",60491),copilotInProgress:h("copilot-in-progress",60492),copilotError:h("copilot-error",60493),copilotSuccess:h("copilot-success",60494),chatSparkle:h("chat-sparkle",60495),searchSparkle:h("search-sparkle",60496),editSparkle:h("edit-sparkle",60497),copilotSnooze:h("copilot-snooze",60498),sendToRemoteAgent:h("send-to-remote-agent",60499),commentDiscussionSparkle:h("comment-discussion-sparkle",60500),chatSparkleWarning:h("chat-sparkle-warning",60501),chatSparkleError:h("chat-sparkle-error",60502),collection:h("collection",60503),newCollection:h("new-collection",60504),thinking:h("thinking",60505),build:h("build",60506),commentDiscussionQuote:h("comment-discussion-quote",60507),cursor:h("cursor",60508),eraser:h("eraser",60509),fileText:h("file-text",60510),gitLens:h("git-lens",60511),quotes:h("quotes",60512),rename:h("rename",60513),runWithDeps:h("run-with-deps",60514),debugConnected:h("debug-connected",60515),strikethrough:h("strikethrough",60516),openInProduct:h("open-in-product",60517),indexZero:h("index-zero",60518),agent:h("agent",60519),editCode:h("edit-code",60520),repoSelected:h("repo-selected",60521),skip:h("skip",60522),mergeInto:h("merge-into",60523),gitBranchChanges:h("git-branch-changes",60524),gitBranchStagedChanges:h("git-branch-staged-changes",60525),gitBranchConflicts:h("git-branch-conflicts",60526),gitBranch:h("git-branch",60527),gitBranchCreate:h("git-branch-create",60527),gitBranchDelete:h("git-branch-delete",60527),searchLarge:h("search-large",60528),terminalGitBash:h("terminal-git-bash",60529),windowActive:h("window-active",60530),forward:h("forward",60531),download:h("download",60532),clockface:h("clockface",60533),unarchive:h("unarchive",60534),sessionInProgress:h("session-in-progress",60535),collectionSmall:h("collection-small",60536),vmSmall:h("vm-small",60537),cloudSmall:h("cloud-small",60538)};var VE={dialogError:h("dialog-error","error"),dialogWarning:h("dialog-warning","warning"),dialogInfo:h("dialog-info","info"),dialogClose:h("dialog-close","close"),treeItemExpanded:h("tree-item-expanded","chevron-down"),treeFilterOnTypeOn:h("tree-filter-on-type-on","list-filter"),treeFilterOnTypeOff:h("tree-filter-on-type-off","list-selection"),treeFilterClear:h("tree-filter-clear","close"),treeItemLoading:h("tree-item-loading","loading"),menuSelection:h("menu-selection","check"),menuSubmenu:h("menu-submenu","chevron-right"),menuBarMore:h("menubar-more","more"),scrollbarButtonLeft:h("scrollbar-button-left","triangle-left"),scrollbarButtonRight:h("scrollbar-button-right","triangle-right"),scrollbarButtonUp:h("scrollbar-button-up","triangle-up"),scrollbarButtonDown:h("scrollbar-button-down","triangle-down"),toolBarMore:h("toolbar-more","more"),quickInputBack:h("quick-input-back","arrow-left"),dropDownButton:h("drop-down-button",60084),symbolCustomColor:h("symbol-customcolor",60252),exportIcon:h("export",60332),workspaceUnspecified:h("workspace-unspecified",60355),newLine:h("newline",60394),thumbsDownFilled:h("thumbsdown-filled",60435),thumbsUpFilled:h("thumbsup-filled",60436),gitFetch:h("git-fetch",60445),lightbulbSparkleAutofix:h("lightbulb-sparkle-autofix",60447),debugBreakpointPending:h("debug-breakpoint-pending",60377)},fe={...ld,...VE};var cd;(function(e){e[e.Null=0]="Null",e[e.PlainText=1]="PlainText"})(cd||(cd={}));var fd;(function(e){e[e.NotSet=-1]="NotSet",e[e.None=0]="None",e[e.Italic=1]="Italic",e[e.Bold=2]="Bold",e[e.Underline=4]="Underline",e[e.Strikethrough=8]="Strikethrough"})(fd||(fd={}));var Ao;(function(e){e[e.None=0]="None",e[e.DefaultForeground=1]="DefaultForeground",e[e.DefaultBackground=2]="DefaultBackground"})(Ao||(Ao={}));var hd;(function(e){e[e.Other=0]="Other",e[e.Comment=1]="Comment",e[e.String=2]="String",e[e.RegEx=3]="RegEx"})(hd||(hd={}));var pd;(function(e){e[e.LANGUAGEID_MASK=255]="LANGUAGEID_MASK",e[e.TOKEN_TYPE_MASK=768]="TOKEN_TYPE_MASK",e[e.BALANCED_BRACKETS_MASK=1024]="BALANCED_BRACKETS_MASK",e[e.FONT_STYLE_MASK=30720]="FONT_STYLE_MASK",e[e.FOREGROUND_MASK=16744448]="FOREGROUND_MASK",e[e.BACKGROUND_MASK=4278190080]="BACKGROUND_MASK",e[e.ITALIC_MASK=2048]="ITALIC_MASK",e[e.BOLD_MASK=4096]="BOLD_MASK",e[e.UNDERLINE_MASK=8192]="UNDERLINE_MASK",e[e.STRIKETHROUGH_MASK=16384]="STRIKETHROUGH_MASK",e[e.SEMANTIC_USE_ITALIC=1]="SEMANTIC_USE_ITALIC",e[e.SEMANTIC_USE_BOLD=2]="SEMANTIC_USE_BOLD",e[e.SEMANTIC_USE_UNDERLINE=4]="SEMANTIC_USE_UNDERLINE",e[e.SEMANTIC_USE_STRIKETHROUGH=8]="SEMANTIC_USE_STRIKETHROUGH",e[e.SEMANTIC_USE_FOREGROUND=16]="SEMANTIC_USE_FOREGROUND",e[e.SEMANTIC_USE_BACKGROUND=32]="SEMANTIC_USE_BACKGROUND",e[e.LANGUAGEID_OFFSET=0]="LANGUAGEID_OFFSET",e[e.TOKEN_TYPE_OFFSET=8]="TOKEN_TYPE_OFFSET",e[e.BALANCED_BRACKETS_OFFSET=10]="BALANCED_BRACKETS_OFFSET",e[e.FONT_STYLE_OFFSET=11]="FONT_STYLE_OFFSET",e[e.FOREGROUND_OFFSET=15]="FOREGROUND_OFFSET",e[e.BACKGROUND_OFFSET=24]="BACKGROUND_OFFSET"})(pd||(pd={}));var qa=class{constructor(){this._tokenizationSupports=new Map,this._factories=new Map,this._onDidChange=new Tt,this.onDidChange=this._onDidChange.event,this._colorMap=null}handleChange(t){this._onDidChange.fire({changedLanguages:t,changedColorMap:!1})}register(t,n){return this._tokenizationSupports.set(t,n),this.handleChange([t]),vn(()=>{this._tokenizationSupports.get(t)===n&&(this._tokenizationSupports.delete(t),this.handleChange([t]))})}get(t){return this._tokenizationSupports.get(t)||null}registerFactory(t,n){this._factories.get(t)?.dispose();let r=new Vc(this,t,n);return this._factories.set(t,r),vn(()=>{let i=this._factories.get(t);!i||i!==r||(this._factories.delete(t),i.dispose())})}async getOrCreate(t){let n=this.get(t);if(n)return n;let r=this._factories.get(t);return!r||r.isResolved?null:(await r.resolve(),this.get(t))}isResolved(t){if(this.get(t))return!0;let r=this._factories.get(t);return!!(!r||r.isResolved)}setColorMap(t){this._colorMap=t,this._onDidChange.fire({changedLanguages:Array.from(this._tokenizationSupports.keys()),changedColorMap:!0})}getColorMap(){return this._colorMap}getDefaultBackground(){return this._colorMap&&this._colorMap.length>Ao.DefaultBackground?this._colorMap[Ao.DefaultBackground]:null}},Vc=class extends bn{get isResolved(){return this._isResolved}constructor(t,n,r){super(),this._registry=t,this._languageId=n,this._factory=r,this._isDisposed=!1,this._resolvePromise=null,this._isResolved=!1}dispose(){this._isDisposed=!0,super.dispose()}async resolve(){return this._resolvePromise||(this._resolvePromise=this._create()),this._resolvePromise}async _create(){let t=await this._factory.tokenizationSupport;this._isResolved=!0,t&&!this._isDisposed&&this._register(this._registry.register(this._languageId,t))}};var Ha=class{constructor(t,n,r){this.offset=t,this.type=n,this.language=r,this._tokenBrand=void 0}toString(){return"("+this.offset+", "+this.type+")"}};var dd;(function(e){e[e.Increase=0]="Increase",e[e.Decrease=1]="Decrease"})(dd||(dd={}));var H;(function(e){e[e.Method=0]="Method",e[e.Function=1]="Function",e[e.Constructor=2]="Constructor",e[e.Field=3]="Field",e[e.Variable=4]="Variable",e[e.Class=5]="Class",e[e.Struct=6]="Struct",e[e.Interface=7]="Interface",e[e.Module=8]="Module",e[e.Property=9]="Property",e[e.Event=10]="Event",e[e.Operator=11]="Operator",e[e.Unit=12]="Unit",e[e.Value=13]="Value",e[e.Constant=14]="Constant",e[e.Enum=15]="Enum",e[e.EnumMember=16]="EnumMember",e[e.Keyword=17]="Keyword",e[e.Text=18]="Text",e[e.Color=19]="Color",e[e.File=20]="File",e[e.Reference=21]="Reference",e[e.Customcolor=22]="Customcolor",e[e.Folder=23]="Folder",e[e.TypeParameter=24]="TypeParameter",e[e.User=25]="User",e[e.Issue=26]="Issue",e[e.Tool=27]="Tool",e[e.Snippet=28]="Snippet"})(H||(H={}));var md;(function(e){let t=new Map;t.set(H.Method,fe.symbolMethod),t.set(H.Function,fe.symbolFunction),t.set(H.Constructor,fe.symbolConstructor),t.set(H.Field,fe.symbolField),t.set(H.Variable,fe.symbolVariable),t.set(H.Class,fe.symbolClass),t.set(H.Struct,fe.symbolStruct),t.set(H.Interface,fe.symbolInterface),t.set(H.Module,fe.symbolModule),t.set(H.Property,fe.symbolProperty),t.set(H.Event,fe.symbolEvent),t.set(H.Operator,fe.symbolOperator),t.set(H.Unit,fe.symbolUnit),t.set(H.Value,fe.symbolValue),t.set(H.Enum,fe.symbolEnum),t.set(H.Constant,fe.symbolConstant),t.set(H.Enum,fe.symbolEnum),t.set(H.EnumMember,fe.symbolEnumMember),t.set(H.Keyword,fe.symbolKeyword),t.set(H.Snippet,fe.symbolSnippet),t.set(H.Text,fe.symbolText),t.set(H.Color,fe.symbolColor),t.set(H.File,fe.symbolFile),t.set(H.Reference,fe.symbolReference),t.set(H.Customcolor,fe.symbolCustomColor),t.set(H.Folder,fe.symbolFolder),t.set(H.TypeParameter,fe.symbolTypeParameter),t.set(H.User,fe.account),t.set(H.Issue,fe.issues),t.set(H.Tool,fe.tools);function n(o){let a=t.get(o);return a||(console.info("No codicon found for CompletionItemKind "+o),a=fe.symbolProperty),a}e.toIcon=n;function r(o){switch(o){case H.Method:return he(795,"Method");case H.Function:return he(796,"Function");case H.Constructor:return he(797,"Constructor");case H.Field:return he(798,"Field");case H.Variable:return he(799,"Variable");case H.Class:return he(800,"Class");case H.Struct:return he(801,"Struct");case H.Interface:return he(802,"Interface");case H.Module:return he(803,"Module");case H.Property:return he(804,"Property");case H.Event:return he(805,"Event");case H.Operator:return he(806,"Operator");case H.Unit:return he(807,"Unit");case H.Value:return he(808,"Value");case H.Constant:return he(809,"Constant");case H.Enum:return he(810,"Enum");case H.EnumMember:return he(811,"Enum Member");case H.Keyword:return he(812,"Keyword");case H.Text:return he(813,"Text");case H.Color:return he(814,"Color");case H.File:return he(815,"File");case H.Reference:return he(816,"Reference");case H.Customcolor:return he(817,"Custom Color");case H.Folder:return he(818,"Folder");case H.TypeParameter:return he(819,"Type Parameter");case H.User:return he(820,"User");case H.Issue:return he(821,"Issue");case H.Tool:return he(822,"Tool");case H.Snippet:return he(823,"Snippet");default:return""}}e.toLabel=r;let i=new Map;i.set("method",H.Method),i.set("function",H.Function),i.set("constructor",H.Constructor),i.set("field",H.Field),i.set("variable",H.Variable),i.set("class",H.Class),i.set("struct",H.Struct),i.set("interface",H.Interface),i.set("module",H.Module),i.set("property",H.Property),i.set("event",H.Event),i.set("operator",H.Operator),i.set("unit",H.Unit),i.set("value",H.Value),i.set("constant",H.Constant),i.set("enum",H.Enum),i.set("enum-member",H.EnumMember),i.set("enumMember",H.EnumMember),i.set("keyword",H.Keyword),i.set("snippet",H.Snippet),i.set("text",H.Text),i.set("color",H.Color),i.set("file",H.File),i.set("reference",H.Reference),i.set("customcolor",H.Customcolor),i.set("folder",H.Folder),i.set("type-parameter",H.TypeParameter),i.set("typeParameter",H.TypeParameter),i.set("account",H.User),i.set("issue",H.Issue),i.set("tool",H.Tool);function s(o,a){let u=i.get(o);return typeof u>"u"&&!a&&(u=H.Property),u}e.fromString=s})(md||(md={}));var gd;(function(e){e[e.Deprecated=1]="Deprecated"})(gd||(gd={}));var _d;(function(e){e[e.None=0]="None",e[e.KeepWhitespace=1]="KeepWhitespace",e[e.InsertAsSnippet=4]="InsertAsSnippet"})(_d||(_d={}));var Ed;(function(e){e[e.Word=0]="Word",e[e.Line=1]="Line",e[e.Suggest=2]="Suggest"})(Ed||(Ed={}));var Dd;(function(e){e[e.Invoke=0]="Invoke",e[e.TriggerCharacter=1]="TriggerCharacter",e[e.TriggerForIncompleteCompletions=2]="TriggerForIncompleteCompletions"})(Dd||(Dd={}));var bd;(function(e){e[e.Automatic=0]="Automatic",e[e.Explicit=1]="Explicit"})(bd||(bd={}));var vd;(function(e){e[e.Code=1]="Code",e[e.Label=2]="Label"})(vd||(vd={}));var Nd;(function(e){e[e.Accepted=0]="Accepted",e[e.Rejected=1]="Rejected",e[e.Ignored=2]="Ignored"})(Nd||(Nd={}));var Td;(function(e){e[e.Invoke=1]="Invoke",e[e.Auto=2]="Auto"})(Td||(Td={}));var wd;(function(e){e[e.Automatic=0]="Automatic",e[e.PasteAs=1]="PasteAs"})(wd||(wd={}));var xd;(function(e){e[e.Invoke=1]="Invoke",e[e.TriggerCharacter=2]="TriggerCharacter",e[e.ContentChange=3]="ContentChange"})(xd||(xd={}));var yd;(function(e){e[e.Text=0]="Text",e[e.Read=1]="Read",e[e.Write=2]="Write"})(yd||(yd={}));var se;(function(e){e[e.File=0]="File",e[e.Module=1]="Module",e[e.Namespace=2]="Namespace",e[e.Package=3]="Package",e[e.Class=4]="Class",e[e.Method=5]="Method",e[e.Property=6]="Property",e[e.Field=7]="Field",e[e.Constructor=8]="Constructor",e[e.Enum=9]="Enum",e[e.Interface=10]="Interface",e[e.Function=11]="Function",e[e.Variable=12]="Variable",e[e.Constant=13]="Constant",e[e.String=14]="String",e[e.Number=15]="Number",e[e.Boolean=16]="Boolean",e[e.Array=17]="Array",e[e.Object=18]="Object",e[e.Key=19]="Key",e[e.Null=20]="Null",e[e.EnumMember=21]="EnumMember",e[e.Struct=22]="Struct",e[e.Event=23]="Event",e[e.Operator=24]="Operator",e[e.TypeParameter=25]="TypeParameter"})(se||(se={}));var bw={[se.Array]:he(824,"array"),[se.Boolean]:he(825,"boolean"),[se.Class]:he(826,"class"),[se.Constant]:he(827,"constant"),[se.Constructor]:he(828,"constructor"),[se.Enum]:he(829,"enumeration"),[se.EnumMember]:he(830,"enumeration member"),[se.Event]:he(831,"event"),[se.Field]:he(832,"field"),[se.File]:he(833,"file"),[se.Function]:he(834,"function"),[se.Interface]:he(835,"interface"),[se.Key]:he(836,"key"),[se.Method]:he(837,"method"),[se.Module]:he(838,"module"),[se.Namespace]:he(839,"namespace"),[se.Null]:he(840,"null"),[se.Number]:he(841,"number"),[se.Object]:he(842,"object"),[se.Operator]:he(843,"operator"),[se.Package]:he(844,"package"),[se.Property]:he(845,"property"),[se.String]:he(846,"string"),[se.Struct]:he(847,"struct"),[se.TypeParameter]:he(848,"type parameter"),[se.Variable]:he(849,"variable")};var Ld;(function(e){e[e.Deprecated=1]="Deprecated"})(Ld||(Ld={}));var Ad;(function(e){let t=new Map;t.set(se.File,fe.symbolFile),t.set(se.Module,fe.symbolModule),t.set(se.Namespace,fe.symbolNamespace),t.set(se.Package,fe.symbolPackage),t.set(se.Class,fe.symbolClass),t.set(se.Method,fe.symbolMethod),t.set(se.Property,fe.symbolProperty),t.set(se.Field,fe.symbolField),t.set(se.Constructor,fe.symbolConstructor),t.set(se.Enum,fe.symbolEnum),t.set(se.Interface,fe.symbolInterface),t.set(se.Function,fe.symbolFunction),t.set(se.Variable,fe.symbolVariable),t.set(se.Constant,fe.symbolConstant),t.set(se.String,fe.symbolString),t.set(se.Number,fe.symbolNumber),t.set(se.Boolean,fe.symbolBoolean),t.set(se.Array,fe.symbolArray),t.set(se.Object,fe.symbolObject),t.set(se.Key,fe.symbolKey),t.set(se.Null,fe.symbolNull),t.set(se.EnumMember,fe.symbolEnumMember),t.set(se.Struct,fe.symbolStruct),t.set(se.Event,fe.symbolEvent),t.set(se.Operator,fe.symbolOperator),t.set(se.TypeParameter,fe.symbolTypeParameter);function n(s){let o=t.get(s);return o||(console.info("No codicon found for SymbolKind "+s),o=fe.symbolProperty),o}e.toIcon=n;let r=new Map;r.set(se.File,H.File),r.set(se.Module,H.Module),r.set(se.Namespace,H.Module),r.set(se.Package,H.Module),r.set(se.Class,H.Class),r.set(se.Method,H.Method),r.set(se.Property,H.Property),r.set(se.Field,H.Field),r.set(se.Constructor,H.Constructor),r.set(se.Enum,H.Enum),r.set(se.Interface,H.Interface),r.set(se.Function,H.Function),r.set(se.Variable,H.Variable),r.set(se.Constant,H.Constant),r.set(se.String,H.Text),r.set(se.Number,H.Value),r.set(se.Boolean,H.Value),r.set(se.Array,H.Value),r.set(se.Object,H.Value),r.set(se.Key,H.Keyword),r.set(se.Null,H.Value),r.set(se.EnumMember,H.EnumMember),r.set(se.Struct,H.Struct),r.set(se.Event,H.Event),r.set(se.Operator,H.Operator),r.set(se.TypeParameter,H.TypeParameter);function i(s){let o=r.get(s);return o===void 0&&(console.info("No completion kind found for SymbolKind "+s),o=H.File),o}e.toCompletionKind=i})(Ad||(Ad={}));var Fd=class e{static{this.Comment=new e("comment")}static{this.Imports=new e("imports")}static{this.Region=new e("region")}static fromValue(t){switch(t){case"comment":return e.Comment;case"imports":return e.Imports;case"region":return e.Region}return new e(t)}constructor(t){this.value=t}},Sd;(function(e){e[e.AIGenerated=1]="AIGenerated"})(Sd||(Sd={}));var Rd;(function(e){e[e.Invoke=0]="Invoke",e[e.Automatic=1]="Automatic"})(Rd||(Rd={}));var Id;(function(e){function t(n){return!n||typeof n!="object"?!1:typeof n.id=="string"&&typeof n.title=="string"}e.is=t})(Id||(Id={}));var Od;(function(e){e[e.Collapsed=0]="Collapsed",e[e.Expanded=1]="Expanded"})(Od||(Od={}));var kd;(function(e){e[e.Unresolved=0]="Unresolved",e[e.Resolved=1]="Resolved"})(kd||(kd={}));var Md;(function(e){e[e.Current=0]="Current",e[e.Outdated=1]="Outdated"})(Md||(Md={}));var Ud;(function(e){e[e.Editing=0]="Editing",e[e.Preview=1]="Preview"})(Ud||(Ud={}));var Pd;(function(e){e[e.Published=0]="Published",e[e.Draft=1]="Draft"})(Pd||(Pd={}));var Bd;(function(e){e[e.Type=1]="Type",e[e.Parameter=2]="Parameter"})(Bd||(Bd={}));var vw=new qa,Cd;(function(e){e[e.None=0]="None",e[e.Option=1]="Option",e[e.Default=2]="Default",e[e.Preferred=3]="Preferred"})(Cd||(Cd={}));var Vd;(function(e){e[e.Unknown=0]="Unknown",e[e.Disabled=1]="Disabled",e[e.Enabled=2]="Enabled"})(Vd||(Vd={}));var $d;(function(e){e[e.Invoke=1]="Invoke",e[e.Auto=2]="Auto"})($d||($d={}));var jd;(function(e){e[e.None=0]="None",e[e.KeepWhitespace=1]="KeepWhitespace",e[e.InsertAsSnippet=4]="InsertAsSnippet"})(jd||(jd={}));var Gd;(function(e){e[e.Method=0]="Method",e[e.Function=1]="Function",e[e.Constructor=2]="Constructor",e[e.Field=3]="Field",e[e.Variable=4]="Variable",e[e.Class=5]="Class",e[e.Struct=6]="Struct",e[e.Interface=7]="Interface",e[e.Module=8]="Module",e[e.Property=9]="Property",e[e.Event=10]="Event",e[e.Operator=11]="Operator",e[e.Unit=12]="Unit",e[e.Value=13]="Value",e[e.Constant=14]="Constant",e[e.Enum=15]="Enum",e[e.EnumMember=16]="EnumMember",e[e.Keyword=17]="Keyword",e[e.Text=18]="Text",e[e.Color=19]="Color",e[e.File=20]="File",e[e.Reference=21]="Reference",e[e.Customcolor=22]="Customcolor",e[e.Folder=23]="Folder",e[e.TypeParameter=24]="TypeParameter",e[e.User=25]="User",e[e.Issue=26]="Issue",e[e.Tool=27]="Tool",e[e.Snippet=28]="Snippet"})(Gd||(Gd={}));var qd;(function(e){e[e.Deprecated=1]="Deprecated"})(qd||(qd={}));var Hd;(function(e){e[e.Invoke=0]="Invoke",e[e.TriggerCharacter=1]="TriggerCharacter",e[e.TriggerForIncompleteCompletions=2]="TriggerForIncompleteCompletions"})(Hd||(Hd={}));var Wd;(function(e){e[e.EXACT=0]="EXACT",e[e.ABOVE=1]="ABOVE",e[e.BELOW=2]="BELOW"})(Wd||(Wd={}));var zd;(function(e){e[e.NotSet=0]="NotSet",e[e.ContentFlush=1]="ContentFlush",e[e.RecoverFromMarkers=2]="RecoverFromMarkers",e[e.Explicit=3]="Explicit",e[e.Paste=4]="Paste",e[e.Undo=5]="Undo",e[e.Redo=6]="Redo"})(zd||(zd={}));var Qd;(function(e){e[e.LF=1]="LF",e[e.CRLF=2]="CRLF"})(Qd||(Qd={}));var Yd;(function(e){e[e.Text=0]="Text",e[e.Read=1]="Read",e[e.Write=2]="Write"})(Yd||(Yd={}));var Xd;(function(e){e[e.None=0]="None",e[e.Keep=1]="Keep",e[e.Brackets=2]="Brackets",e[e.Advanced=3]="Advanced",e[e.Full=4]="Full"})(Xd||(Xd={}));var Jd;(function(e){e[e.acceptSuggestionOnCommitCharacter=0]="acceptSuggestionOnCommitCharacter",e[e.acceptSuggestionOnEnter=1]="acceptSuggestionOnEnter",e[e.accessibilitySupport=2]="accessibilitySupport",e[e.accessibilityPageSize=3]="accessibilityPageSize",e[e.allowOverflow=4]="allowOverflow",e[e.allowVariableLineHeights=5]="allowVariableLineHeights",e[e.allowVariableFonts=6]="allowVariableFonts",e[e.allowVariableFontsInAccessibilityMode=7]="allowVariableFontsInAccessibilityMode",e[e.ariaLabel=8]="ariaLabel",e[e.ariaRequired=9]="ariaRequired",e[e.autoClosingBrackets=10]="autoClosingBrackets",e[e.autoClosingComments=11]="autoClosingComments",e[e.screenReaderAnnounceInlineSuggestion=12]="screenReaderAnnounceInlineSuggestion",e[e.autoClosingDelete=13]="autoClosingDelete",e[e.autoClosingOvertype=14]="autoClosingOvertype",e[e.autoClosingQuotes=15]="autoClosingQuotes",e[e.autoIndent=16]="autoIndent",e[e.autoIndentOnPaste=17]="autoIndentOnPaste",e[e.autoIndentOnPasteWithinString=18]="autoIndentOnPasteWithinString",e[e.automaticLayout=19]="automaticLayout",e[e.autoSurround=20]="autoSurround",e[e.bracketPairColorization=21]="bracketPairColorization",e[e.guides=22]="guides",e[e.codeLens=23]="codeLens",e[e.codeLensFontFamily=24]="codeLensFontFamily",e[e.codeLensFontSize=25]="codeLensFontSize",e[e.colorDecorators=26]="colorDecorators",e[e.colorDecoratorsLimit=27]="colorDecoratorsLimit",e[e.columnSelection=28]="columnSelection",e[e.comments=29]="comments",e[e.contextmenu=30]="contextmenu",e[e.copyWithSyntaxHighlighting=31]="copyWithSyntaxHighlighting",e[e.cursorBlinking=32]="cursorBlinking",e[e.cursorSmoothCaretAnimation=33]="cursorSmoothCaretAnimation",e[e.cursorStyle=34]="cursorStyle",e[e.cursorSurroundingLines=35]="cursorSurroundingLines",e[e.cursorSurroundingLinesStyle=36]="cursorSurroundingLinesStyle",e[e.cursorWidth=37]="cursorWidth",e[e.cursorHeight=38]="cursorHeight",e[e.disableLayerHinting=39]="disableLayerHinting",e[e.disableMonospaceOptimizations=40]="disableMonospaceOptimizations",e[e.domReadOnly=41]="domReadOnly",e[e.dragAndDrop=42]="dragAndDrop",e[e.dropIntoEditor=43]="dropIntoEditor",e[e.editContext=44]="editContext",e[e.emptySelectionClipboard=45]="emptySelectionClipboard",e[e.experimentalGpuAcceleration=46]="experimentalGpuAcceleration",e[e.experimentalWhitespaceRendering=47]="experimentalWhitespaceRendering",e[e.extraEditorClassName=48]="extraEditorClassName",e[e.fastScrollSensitivity=49]="fastScrollSensitivity",e[e.find=50]="find",e[e.fixedOverflowWidgets=51]="fixedOverflowWidgets",e[e.folding=52]="folding",e[e.foldingStrategy=53]="foldingStrategy",e[e.foldingHighlight=54]="foldingHighlight",e[e.foldingImportsByDefault=55]="foldingImportsByDefault",e[e.foldingMaximumRegions=56]="foldingMaximumRegions",e[e.unfoldOnClickAfterEndOfLine=57]="unfoldOnClickAfterEndOfLine",e[e.fontFamily=58]="fontFamily",e[e.fontInfo=59]="fontInfo",e[e.fontLigatures=60]="fontLigatures",e[e.fontSize=61]="fontSize",e[e.fontWeight=62]="fontWeight",e[e.fontVariations=63]="fontVariations",e[e.formatOnPaste=64]="formatOnPaste",e[e.formatOnType=65]="formatOnType",e[e.glyphMargin=66]="glyphMargin",e[e.gotoLocation=67]="gotoLocation",e[e.hideCursorInOverviewRuler=68]="hideCursorInOverviewRuler",e[e.hover=69]="hover",e[e.inDiffEditor=70]="inDiffEditor",e[e.inlineSuggest=71]="inlineSuggest",e[e.letterSpacing=72]="letterSpacing",e[e.lightbulb=73]="lightbulb",e[e.lineDecorationsWidth=74]="lineDecorationsWidth",e[e.lineHeight=75]="lineHeight",e[e.lineNumbers=76]="lineNumbers",e[e.lineNumbersMinChars=77]="lineNumbersMinChars",e[e.linkedEditing=78]="linkedEditing",e[e.links=79]="links",e[e.matchBrackets=80]="matchBrackets",e[e.minimap=81]="minimap",e[e.mouseStyle=82]="mouseStyle",e[e.mouseWheelScrollSensitivity=83]="mouseWheelScrollSensitivity",e[e.mouseWheelZoom=84]="mouseWheelZoom",e[e.multiCursorMergeOverlapping=85]="multiCursorMergeOverlapping",e[e.multiCursorModifier=86]="multiCursorModifier",e[e.mouseMiddleClickAction=87]="mouseMiddleClickAction",e[e.multiCursorPaste=88]="multiCursorPaste",e[e.multiCursorLimit=89]="multiCursorLimit",e[e.occurrencesHighlight=90]="occurrencesHighlight",e[e.occurrencesHighlightDelay=91]="occurrencesHighlightDelay",e[e.overtypeCursorStyle=92]="overtypeCursorStyle",e[e.overtypeOnPaste=93]="overtypeOnPaste",e[e.overviewRulerBorder=94]="overviewRulerBorder",e[e.overviewRulerLanes=95]="overviewRulerLanes",e[e.padding=96]="padding",e[e.pasteAs=97]="pasteAs",e[e.parameterHints=98]="parameterHints",e[e.peekWidgetDefaultFocus=99]="peekWidgetDefaultFocus",e[e.placeholder=100]="placeholder",e[e.definitionLinkOpensInPeek=101]="definitionLinkOpensInPeek",e[e.quickSuggestions=102]="quickSuggestions",e[e.quickSuggestionsDelay=103]="quickSuggestionsDelay",e[e.readOnly=104]="readOnly",e[e.readOnlyMessage=105]="readOnlyMessage",e[e.renameOnType=106]="renameOnType",e[e.renderRichScreenReaderContent=107]="renderRichScreenReaderContent",e[e.renderControlCharacters=108]="renderControlCharacters",e[e.renderFinalNewline=109]="renderFinalNewline",e[e.renderLineHighlight=110]="renderLineHighlight",e[e.renderLineHighlightOnlyWhenFocus=111]="renderLineHighlightOnlyWhenFocus",e[e.renderValidationDecorations=112]="renderValidationDecorations",e[e.renderWhitespace=113]="renderWhitespace",e[e.revealHorizontalRightPadding=114]="revealHorizontalRightPadding",e[e.roundedSelection=115]="roundedSelection",e[e.rulers=116]="rulers",e[e.scrollbar=117]="scrollbar",e[e.scrollBeyondLastColumn=118]="scrollBeyondLastColumn",e[e.scrollBeyondLastLine=119]="scrollBeyondLastLine",e[e.scrollPredominantAxis=120]="scrollPredominantAxis",e[e.selectionClipboard=121]="selectionClipboard",e[e.selectionHighlight=122]="selectionHighlight",e[e.selectionHighlightMaxLength=123]="selectionHighlightMaxLength",e[e.selectionHighlightMultiline=124]="selectionHighlightMultiline",e[e.selectOnLineNumbers=125]="selectOnLineNumbers",e[e.showFoldingControls=126]="showFoldingControls",e[e.showUnused=127]="showUnused",e[e.snippetSuggestions=128]="snippetSuggestions",e[e.smartSelect=129]="smartSelect",e[e.smoothScrolling=130]="smoothScrolling",e[e.stickyScroll=131]="stickyScroll",e[e.stickyTabStops=132]="stickyTabStops",e[e.stopRenderingLineAfter=133]="stopRenderingLineAfter",e[e.suggest=134]="suggest",e[e.suggestFontSize=135]="suggestFontSize",e[e.suggestLineHeight=136]="suggestLineHeight",e[e.suggestOnTriggerCharacters=137]="suggestOnTriggerCharacters",e[e.suggestSelection=138]="suggestSelection",e[e.tabCompletion=139]="tabCompletion",e[e.tabIndex=140]="tabIndex",e[e.trimWhitespaceOnDelete=141]="trimWhitespaceOnDelete",e[e.unicodeHighlighting=142]="unicodeHighlighting",e[e.unusualLineTerminators=143]="unusualLineTerminators",e[e.useShadowDOM=144]="useShadowDOM",e[e.useTabStops=145]="useTabStops",e[e.wordBreak=146]="wordBreak",e[e.wordSegmenterLocales=147]="wordSegmenterLocales",e[e.wordSeparators=148]="wordSeparators",e[e.wordWrap=149]="wordWrap",e[e.wordWrapBreakAfterCharacters=150]="wordWrapBreakAfterCharacters",e[e.wordWrapBreakBeforeCharacters=151]="wordWrapBreakBeforeCharacters",e[e.wordWrapColumn=152]="wordWrapColumn",e[e.wordWrapOverride1=153]="wordWrapOverride1",e[e.wordWrapOverride2=154]="wordWrapOverride2",e[e.wrappingIndent=155]="wrappingIndent",e[e.wrappingStrategy=156]="wrappingStrategy",e[e.showDeprecated=157]="showDeprecated",e[e.inertialScroll=158]="inertialScroll",e[e.inlayHints=159]="inlayHints",e[e.wrapOnEscapedLineFeeds=160]="wrapOnEscapedLineFeeds",e[e.effectiveCursorStyle=161]="effectiveCursorStyle",e[e.editorClassName=162]="editorClassName",e[e.pixelRatio=163]="pixelRatio",e[e.tabFocusMode=164]="tabFocusMode",e[e.layoutInfo=165]="layoutInfo",e[e.wrappingInfo=166]="wrappingInfo",e[e.defaultColorDecorators=167]="defaultColorDecorators",e[e.colorDecoratorsActivatedOn=168]="colorDecoratorsActivatedOn",e[e.inlineCompletionsAccessibilityVerbose=169]="inlineCompletionsAccessibilityVerbose",e[e.effectiveEditContext=170]="effectiveEditContext",e[e.scrollOnMiddleClick=171]="scrollOnMiddleClick",e[e.effectiveAllowVariableFonts=172]="effectiveAllowVariableFonts"})(Jd||(Jd={}));var Zd;(function(e){e[e.TextDefined=0]="TextDefined",e[e.LF=1]="LF",e[e.CRLF=2]="CRLF"})(Zd||(Zd={}));var Kd;(function(e){e[e.LF=0]="LF",e[e.CRLF=1]="CRLF"})(Kd||(Kd={}));var e0;(function(e){e[e.Left=1]="Left",e[e.Center=2]="Center",e[e.Right=3]="Right"})(e0||(e0={}));var t0;(function(e){e[e.Increase=0]="Increase",e[e.Decrease=1]="Decrease"})(t0||(t0={}));var n0;(function(e){e[e.None=0]="None",e[e.Indent=1]="Indent",e[e.IndentOutdent=2]="IndentOutdent",e[e.Outdent=3]="Outdent"})(n0||(n0={}));var r0;(function(e){e[e.Both=0]="Both",e[e.Right=1]="Right",e[e.Left=2]="Left",e[e.None=3]="None"})(r0||(r0={}));var i0;(function(e){e[e.Type=1]="Type",e[e.Parameter=2]="Parameter"})(i0||(i0={}));var s0;(function(e){e[e.Accepted=0]="Accepted",e[e.Rejected=1]="Rejected",e[e.Ignored=2]="Ignored"})(s0||(s0={}));var o0;(function(e){e[e.Code=1]="Code",e[e.Label=2]="Label"})(o0||(o0={}));var a0;(function(e){e[e.Automatic=0]="Automatic",e[e.Explicit=1]="Explicit"})(a0||(a0={}));var Wa;(function(e){e[e.DependsOnKbLayout=-1]="DependsOnKbLayout",e[e.Unknown=0]="Unknown",e[e.Backspace=1]="Backspace",e[e.Tab=2]="Tab",e[e.Enter=3]="Enter",e[e.Shift=4]="Shift",e[e.Ctrl=5]="Ctrl",e[e.Alt=6]="Alt",e[e.PauseBreak=7]="PauseBreak",e[e.CapsLock=8]="CapsLock",e[e.Escape=9]="Escape",e[e.Space=10]="Space",e[e.PageUp=11]="PageUp",e[e.PageDown=12]="PageDown",e[e.End=13]="End",e[e.Home=14]="Home",e[e.LeftArrow=15]="LeftArrow",e[e.UpArrow=16]="UpArrow",e[e.RightArrow=17]="RightArrow",e[e.DownArrow=18]="DownArrow",e[e.Insert=19]="Insert",e[e.Delete=20]="Delete",e[e.Digit0=21]="Digit0",e[e.Digit1=22]="Digit1",e[e.Digit2=23]="Digit2",e[e.Digit3=24]="Digit3",e[e.Digit4=25]="Digit4",e[e.Digit5=26]="Digit5",e[e.Digit6=27]="Digit6",e[e.Digit7=28]="Digit7",e[e.Digit8=29]="Digit8",e[e.Digit9=30]="Digit9",e[e.KeyA=31]="KeyA",e[e.KeyB=32]="KeyB",e[e.KeyC=33]="KeyC",e[e.KeyD=34]="KeyD",e[e.KeyE=35]="KeyE",e[e.KeyF=36]="KeyF",e[e.KeyG=37]="KeyG",e[e.KeyH=38]="KeyH",e[e.KeyI=39]="KeyI",e[e.KeyJ=40]="KeyJ",e[e.KeyK=41]="KeyK",e[e.KeyL=42]="KeyL",e[e.KeyM=43]="KeyM",e[e.KeyN=44]="KeyN",e[e.KeyO=45]="KeyO",e[e.KeyP=46]="KeyP",e[e.KeyQ=47]="KeyQ",e[e.KeyR=48]="KeyR",e[e.KeyS=49]="KeyS",e[e.KeyT=50]="KeyT",e[e.KeyU=51]="KeyU",e[e.KeyV=52]="KeyV",e[e.KeyW=53]="KeyW",e[e.KeyX=54]="KeyX",e[e.KeyY=55]="KeyY",e[e.KeyZ=56]="KeyZ",e[e.Meta=57]="Meta",e[e.ContextMenu=58]="ContextMenu",e[e.F1=59]="F1",e[e.F2=60]="F2",e[e.F3=61]="F3",e[e.F4=62]="F4",e[e.F5=63]="F5",e[e.F6=64]="F6",e[e.F7=65]="F7",e[e.F8=66]="F8",e[e.F9=67]="F9",e[e.F10=68]="F10",e[e.F11=69]="F11",e[e.F12=70]="F12",e[e.F13=71]="F13",e[e.F14=72]="F14",e[e.F15=73]="F15",e[e.F16=74]="F16",e[e.F17=75]="F17",e[e.F18=76]="F18",e[e.F19=77]="F19",e[e.F20=78]="F20",e[e.F21=79]="F21",e[e.F22=80]="F22",e[e.F23=81]="F23",e[e.F24=82]="F24",e[e.NumLock=83]="NumLock",e[e.ScrollLock=84]="ScrollLock",e[e.Semicolon=85]="Semicolon",e[e.Equal=86]="Equal",e[e.Comma=87]="Comma",e[e.Minus=88]="Minus",e[e.Period=89]="Period",e[e.Slash=90]="Slash",e[e.Backquote=91]="Backquote",e[e.BracketLeft=92]="BracketLeft",e[e.Backslash=93]="Backslash",e[e.BracketRight=94]="BracketRight",e[e.Quote=95]="Quote",e[e.OEM_8=96]="OEM_8",e[e.IntlBackslash=97]="IntlBackslash",e[e.Numpad0=98]="Numpad0",e[e.Numpad1=99]="Numpad1",e[e.Numpad2=100]="Numpad2",e[e.Numpad3=101]="Numpad3",e[e.Numpad4=102]="Numpad4",e[e.Numpad5=103]="Numpad5",e[e.Numpad6=104]="Numpad6",e[e.Numpad7=105]="Numpad7",e[e.Numpad8=106]="Numpad8",e[e.Numpad9=107]="Numpad9",e[e.NumpadMultiply=108]="NumpadMultiply",e[e.NumpadAdd=109]="NumpadAdd",e[e.NUMPAD_SEPARATOR=110]="NUMPAD_SEPARATOR",e[e.NumpadSubtract=111]="NumpadSubtract",e[e.NumpadDecimal=112]="NumpadDecimal",e[e.NumpadDivide=113]="NumpadDivide",e[e.KEY_IN_COMPOSITION=114]="KEY_IN_COMPOSITION",e[e.ABNT_C1=115]="ABNT_C1",e[e.ABNT_C2=116]="ABNT_C2",e[e.AudioVolumeMute=117]="AudioVolumeMute",e[e.AudioVolumeUp=118]="AudioVolumeUp",e[e.AudioVolumeDown=119]="AudioVolumeDown",e[e.BrowserSearch=120]="BrowserSearch",e[e.BrowserHome=121]="BrowserHome",e[e.BrowserBack=122]="BrowserBack",e[e.BrowserForward=123]="BrowserForward",e[e.MediaTrackNext=124]="MediaTrackNext",e[e.MediaTrackPrevious=125]="MediaTrackPrevious",e[e.MediaStop=126]="MediaStop",e[e.MediaPlayPause=127]="MediaPlayPause",e[e.LaunchMediaPlayer=128]="LaunchMediaPlayer",e[e.LaunchMail=129]="LaunchMail",e[e.LaunchApp2=130]="LaunchApp2",e[e.Clear=131]="Clear",e[e.MAX_VALUE=132]="MAX_VALUE"})(Wa||(Wa={}));var gr;(function(e){e[e.Hint=1]="Hint",e[e.Info=2]="Info",e[e.Warning=4]="Warning",e[e.Error=8]="Error"})(gr||(gr={}));var za;(function(e){e[e.Unnecessary=1]="Unnecessary",e[e.Deprecated=2]="Deprecated"})(za||(za={}));var u0;(function(e){e[e.Inline=1]="Inline",e[e.Gutter=2]="Gutter"})(u0||(u0={}));var l0;(function(e){e[e.Normal=1]="Normal",e[e.Underlined=2]="Underlined"})(l0||(l0={}));var c0;(function(e){e[e.UNKNOWN=0]="UNKNOWN",e[e.TEXTAREA=1]="TEXTAREA",e[e.GUTTER_GLYPH_MARGIN=2]="GUTTER_GLYPH_MARGIN",e[e.GUTTER_LINE_NUMBERS=3]="GUTTER_LINE_NUMBERS",e[e.GUTTER_LINE_DECORATIONS=4]="GUTTER_LINE_DECORATIONS",e[e.GUTTER_VIEW_ZONE=5]="GUTTER_VIEW_ZONE",e[e.CONTENT_TEXT=6]="CONTENT_TEXT",e[e.CONTENT_EMPTY=7]="CONTENT_EMPTY",e[e.CONTENT_VIEW_ZONE=8]="CONTENT_VIEW_ZONE",e[e.CONTENT_WIDGET=9]="CONTENT_WIDGET",e[e.OVERVIEW_RULER=10]="OVERVIEW_RULER",e[e.SCROLLBAR=11]="SCROLLBAR",e[e.OVERLAY_WIDGET=12]="OVERLAY_WIDGET",e[e.OUTSIDE_EDITOR=13]="OUTSIDE_EDITOR"})(c0||(c0={}));var f0;(function(e){e[e.AIGenerated=1]="AIGenerated"})(f0||(f0={}));var h0;(function(e){e[e.Invoke=0]="Invoke",e[e.Automatic=1]="Automatic"})(h0||(h0={}));var p0;(function(e){e[e.TOP_RIGHT_CORNER=0]="TOP_RIGHT_CORNER",e[e.BOTTOM_RIGHT_CORNER=1]="BOTTOM_RIGHT_CORNER",e[e.TOP_CENTER=2]="TOP_CENTER"})(p0||(p0={}));var d0;(function(e){e[e.Left=1]="Left",e[e.Center=2]="Center",e[e.Right=4]="Right",e[e.Full=7]="Full"})(d0||(d0={}));var m0;(function(e){e[e.Word=0]="Word",e[e.Line=1]="Line",e[e.Suggest=2]="Suggest"})(m0||(m0={}));var g0;(function(e){e[e.Left=0]="Left",e[e.Right=1]="Right",e[e.None=2]="None",e[e.LeftOfInjectedText=3]="LeftOfInjectedText",e[e.RightOfInjectedText=4]="RightOfInjectedText"})(g0||(g0={}));var _0;(function(e){e[e.Off=0]="Off",e[e.On=1]="On",e[e.Relative=2]="Relative",e[e.Interval=3]="Interval",e[e.Custom=4]="Custom"})(_0||(_0={}));var E0;(function(e){e[e.None=0]="None",e[e.Text=1]="Text",e[e.Blocks=2]="Blocks"})(E0||(E0={}));var D0;(function(e){e[e.Smooth=0]="Smooth",e[e.Immediate=1]="Immediate"})(D0||(D0={}));var b0;(function(e){e[e.Auto=1]="Auto",e[e.Hidden=2]="Hidden",e[e.Visible=3]="Visible"})(b0||(b0={}));var Qa;(function(e){e[e.LTR=0]="LTR",e[e.RTL=1]="RTL"})(Qa||(Qa={}));var v0;(function(e){e.Off="off",e.OnCode="onCode",e.On="on"})(v0||(v0={}));var N0;(function(e){e[e.Invoke=1]="Invoke",e[e.TriggerCharacter=2]="TriggerCharacter",e[e.ContentChange=3]="ContentChange"})(N0||(N0={}));var T0;(function(e){e[e.File=0]="File",e[e.Module=1]="Module",e[e.Namespace=2]="Namespace",e[e.Package=3]="Package",e[e.Class=4]="Class",e[e.Method=5]="Method",e[e.Property=6]="Property",e[e.Field=7]="Field",e[e.Constructor=8]="Constructor",e[e.Enum=9]="Enum",e[e.Interface=10]="Interface",e[e.Function=11]="Function",e[e.Variable=12]="Variable",e[e.Constant=13]="Constant",e[e.String=14]="String",e[e.Number=15]="Number",e[e.Boolean=16]="Boolean",e[e.Array=17]="Array",e[e.Object=18]="Object",e[e.Key=19]="Key",e[e.Null=20]="Null",e[e.EnumMember=21]="EnumMember",e[e.Struct=22]="Struct",e[e.Event=23]="Event",e[e.Operator=24]="Operator",e[e.TypeParameter=25]="TypeParameter"})(T0||(T0={}));var w0;(function(e){e[e.Deprecated=1]="Deprecated"})(w0||(w0={}));var x0;(function(e){e[e.LTR=0]="LTR",e[e.RTL=1]="RTL"})(x0||(x0={}));var y0;(function(e){e[e.Hidden=0]="Hidden",e[e.Blink=1]="Blink",e[e.Smooth=2]="Smooth",e[e.Phase=3]="Phase",e[e.Expand=4]="Expand",e[e.Solid=5]="Solid"})(y0||(y0={}));var L0;(function(e){e[e.Line=1]="Line",e[e.Block=2]="Block",e[e.Underline=3]="Underline",e[e.LineThin=4]="LineThin",e[e.BlockOutline=5]="BlockOutline",e[e.UnderlineThin=6]="UnderlineThin"})(L0||(L0={}));var A0;(function(e){e[e.AlwaysGrowsWhenTypingAtEdges=0]="AlwaysGrowsWhenTypingAtEdges",e[e.NeverGrowsWhenTypingAtEdges=1]="NeverGrowsWhenTypingAtEdges",e[e.GrowsOnlyWhenTypingBefore=2]="GrowsOnlyWhenTypingBefore",e[e.GrowsOnlyWhenTypingAfter=3]="GrowsOnlyWhenTypingAfter"})(A0||(A0={}));var F0;(function(e){e[e.None=0]="None",e[e.Same=1]="Same",e[e.Indent=2]="Indent",e[e.DeepIndent=3]="DeepIndent"})(F0||(F0={}));var $c=class{static{this.CtrlCmd=ii.CtrlCmd}static{this.Shift=ii.Shift}static{this.Alt=ii.Alt}static{this.WinCtrl=ii.WinCtrl}static chord(t,n){return Qp(t,n)}};function S0(){return{editor:void 0,languages:void 0,CancellationTokenSource:Yi,Emitter:Tt,KeyCode:Wa,KeyMod:$c,Position:me,Range:ie,Selection:Ga,SelectionDirection:Qa,MarkerSeverity:gr,MarkerTag:za,Uri:ot,Token:Ha}}var $E=60,jE=$E*60,jc=jE*24,Pw=jc*7,Bw=jc*30,Cw=jc*365;var ai;(function(e){e[e.Regular=0]="Regular",e[e.Whitespace=1]="Whitespace",e[e.WordSeparator=2]="WordSeparator"})(ai||(ai={}));var Ww=new Ta(10);var R0;(function(e){e[e.Left=1]="Left",e[e.Center=2]="Center",e[e.Right=4]="Right",e[e.Full=7]="Full"})(R0||(R0={}));var I0;(function(e){e[e.Left=1]="Left",e[e.Center=2]="Center",e[e.Right=3]="Right"})(I0||(I0={}));var O0;(function(e){e[e.Inline=1]="Inline",e[e.Gutter=2]="Gutter"})(O0||(O0={}));var k0;(function(e){e[e.Normal=1]="Normal",e[e.Underlined=2]="Underlined"})(k0||(k0={}));var M0;(function(e){e[e.LTR=0]="LTR",e[e.RTL=1]="RTL"})(M0||(M0={}));var U0;(function(e){e[e.Both=0]="Both",e[e.Right=1]="Right",e[e.Left=2]="Left",e[e.None=3]="None"})(U0||(U0={}));var Gc;(function(e){e[e.TextDefined=0]="TextDefined",e[e.LF=1]="LF",e[e.CRLF=2]="CRLF"})(Gc||(Gc={}));var P0;(function(e){e[e.LF=1]="LF",e[e.CRLF=2]="CRLF"})(P0||(P0={}));var B0;(function(e){e[e.LF=0]="LF",e[e.CRLF=1]="CRLF"})(B0||(B0={}));var C0;(function(e){e[e.AlwaysGrowsWhenTypingAtEdges=0]="AlwaysGrowsWhenTypingAtEdges",e[e.NeverGrowsWhenTypingAtEdges=1]="NeverGrowsWhenTypingAtEdges",e[e.GrowsOnlyWhenTypingBefore=2]="GrowsOnlyWhenTypingBefore",e[e.GrowsOnlyWhenTypingAfter=3]="GrowsOnlyWhenTypingAfter"})(C0||(C0={}));var V0;(function(e){e[e.Left=0]="Left",e[e.Right=1]="Right",e[e.None=2]="None",e[e.LeftOfInjectedText=3]="LeftOfInjectedText",e[e.RightOfInjectedText=4]="RightOfInjectedText"})(V0||(V0={}));var $0;(function(e){e[e.FIRST_LINE_DETECTION_LENGTH_LIMIT=1e3]="FIRST_LINE_DETECTION_LENGTH_LIMIT"})($0||($0={}));function j0(e){if(!e||e.length===0)return!1;for(let t=0,n=e.length;t<n;t++){let r=e.charCodeAt(t);if(r===M.LineFeed)return!0;if(r===M.Backslash){if(t++,t>=n)break;let i=e.charCodeAt(t);if(i===M.n||i===M.r||i===M.W)return!0}}return!1}function GE(e,t,n,r,i){if(r===0)return!0;let s=t.charCodeAt(r-1);if(e.get(s)!==ai.Regular||s===M.CarriageReturn||s===M.LineFeed)return!0;if(i>0){let o=t.charCodeAt(r);if(e.get(o)!==ai.Regular)return!0}return!1}function qE(e,t,n,r,i){if(r+i===n)return!0;let s=t.charCodeAt(r+i);if(e.get(s)!==ai.Regular||s===M.CarriageReturn||s===M.LineFeed)return!0;if(i>0){let o=t.charCodeAt(r+i-1);if(e.get(o)!==ai.Regular)return!0}return!1}function HE(e,t,n,r,i){return GE(e,t,n,r,i)&&qE(e,t,n,r,i)}var Ya=class{constructor(t,n){this._wordSeparators=t,this._searchRegex=n,this._prevMatchStartIndex=-1,this._prevMatchLength=0}reset(t){this._searchRegex.lastIndex=t,this._prevMatchStartIndex=-1,this._prevMatchLength=0}next(t){let n=t.length,r;do{if(this._prevMatchStartIndex+this._prevMatchLength===n||(r=this._searchRegex.exec(t),!r))return null;let i=r.index,s=r[0].length;if(i===this._prevMatchStartIndex&&s===this._prevMatchLength){if(s===0){Op(t,n,this._searchRegex.lastIndex)>65535?this._searchRegex.lastIndex+=2:this._searchRegex.lastIndex+=1;continue}return null}if(this._prevMatchStartIndex=i,this._prevMatchLength=s,!this._wordSeparators||HE(this._wordSeparators,t,n,i,s))return r}while(r);return null}};var WE="`~!@#$%^&*()-=+[{]}\\|;:'\",.<>/?";function zE(e=""){let t="(-?\\d*\\.\\d\\w*)|([^";for(let n of WE)e.indexOf(n)>=0||(t+="\\"+n);return t+="\\s]+)",new RegExp(t,"g")}var qc=zE();function Hc(e){let t=qc;if(e&&e instanceof RegExp)if(e.global)t=e;else{let n="g";e.ignoreCase&&(n+="i"),e.multiline&&(n+="m"),e.unicode&&(n+="u"),t=new RegExp(e.source,n)}return t.lastIndex=0,t}var G0=new po;G0.unshift({maxLen:1e3,windowSize:15,timeBudget:150});function Fo(e,t,n,r,i){if(t=Hc(t),i||(i=qi.first(G0)),n.length>i.maxLen){let l=e-i.maxLen/2;return l<0?l=0:r+=l,n=n.substring(l,e+i.maxLen/2),Fo(e,t,n,r,i)}let s=Date.now(),o=e-1-r,a=-1,u=null;for(let l=1;!(Date.now()-s>=i.timeBudget);l++){let c=o-i.windowSize*l;t.lastIndex=Math.max(0,c);let f=QE(t,n,o,a);if(!f&&u||(u=f,c<=0))break;a=c}if(u){let l={word:u[0],startColumn:r+1+u.index,endColumn:r+1+u.index+u[0].length};return t.lastIndex=0,l}return null}function QE(e,t,n,r){let i;for(;i=e.exec(t);){let s=i.index||0;if(s<=n&&e.lastIndex>=n)return i;if(r>0&&s>r)return null}return null}var Xa=class{static computeUnicodeHighlights(t,n,r){let i=r?r.startLineNumber:1,s=r?r.endLineNumber:t.getLineCount(),o=new Ja(n),a=o.getCandidateCodePoints(),u;a==="allNonBasicAscii"?u=new RegExp("[^\\t\\n\\r\\x20-\\x7E]","g"):u=new RegExp(`${YE(Array.from(a))}`,"g");let l=new Ya(null,u),c=[],f=!1,d,m=0,g=0,E=0;e:for(let T=i,v=s;T<=v;T++){let A=t.getLineContent(T),S=A.length;l.reset(0);do if(d=l.next(A),d){let C=d.index,q=d.index+d[0].length;if(C>0){let w=A.charCodeAt(C-1);es(w)&&C--}if(q+1<S){let w=A.charCodeAt(q-1);es(w)&&q++}let G=A.substring(C,q),I=Fo(C+1,qc,A,0);I&&I.endColumn<=C+1&&(I=null);let k=o.shouldHighlightNonBasicASCII(G,I?I.word:null);if(k!==Ut.None){if(k===Ut.Ambiguous?m++:k===Ut.Invisible?g++:k===Ut.NonBasicASCII?E++:sp(),c.length>=1e3){f=!0;break e}c.push(new ie(T,C+1,T,q+1))}}while(d)}return{ranges:c,hasMore:f,ambiguousCharacterCount:m,invisibleCharacterCount:g,nonBasicAsciiCharacterCount:E}}static computeUnicodeHighlightReason(t,n){let r=new Ja(n);switch(r.shouldHighlightNonBasicASCII(t,null)){case Ut.None:return null;case Ut.Invisible:return{kind:So.Invisible};case Ut.Ambiguous:{let s=t.codePointAt(0),o=r.ambiguousCharacters.getPrimaryConfusable(s),a=Xi.getLocales().filter(u=>!Xi.getInstance(new Set([...n.allowedLocales,u])).isAmbiguous(s));return{kind:So.Ambiguous,confusableWith:String.fromCodePoint(o),notAmbiguousInLocales:a}}case Ut.NonBasicASCII:return{kind:So.NonBasicAscii}}}};function YE(e,t){return`[${Lp(e.map(r=>String.fromCodePoint(r)).join(""))}]`}var So;(function(e){e[e.Ambiguous=0]="Ambiguous",e[e.Invisible=1]="Invisible",e[e.NonBasicAscii=2]="NonBasicAscii"})(So||(So={}));var Ja=class{constructor(t){this.options=t,this.allowedCodePoints=new Set(t.allowedCodePoints),this.ambiguousCharacters=Xi.getInstance(new Set(t.allowedLocales))}getCandidateCodePoints(){if(this.options.nonBasicASCII)return"allNonBasicAscii";let t=new Set;if(this.options.invisibleCharacters)for(let n of Ji.codePoints)q0(String.fromCodePoint(n))||t.add(n);if(this.options.ambiguousCharacters)for(let n of this.ambiguousCharacters.getConfusableCodePoints())t.add(n);for(let n of this.allowedCodePoints)t.delete(n);return t}shouldHighlightNonBasicASCII(t,n){let r=t.codePointAt(0);if(this.allowedCodePoints.has(r))return Ut.None;if(this.options.nonBasicASCII)return Ut.NonBasicASCII;let i=!1,s=!1;if(n)for(let o of n){let a=o.codePointAt(0),u=kp(o);i=i||u,!u&&!this.ambiguousCharacters.isAmbiguous(a)&&!Ji.isInvisibleCharacter(a)&&(s=!0)}return!i&&s?Ut.None:this.options.invisibleCharacters&&!q0(t)&&Ji.isInvisibleCharacter(r)?Ut.Invisible:this.options.ambiguousCharacters&&this.ambiguousCharacters.isAmbiguous(r)?Ut.Ambiguous:Ut.None}};function q0(e){return e===" "||e===`
|
|
86
|
-
`||e===" "}var
|
|
87
|
-
`?(n++,r=0):r++;return new e(n,r)}
|
|
88
|
-
`&&(this.
|
|
90
|
+
`))}},hc=class extends Error{constructor(t,n){super(t),this.name="ListenerLeakError",this.stack=n}},pc=class extends Error{constructor(t,n){super(t),this.name="ListenerRefusalError",this.stack=n}},P5=0,ho=class{constructor(t){this.value=t,this.id=P5++}},B5=2;var bt=class{constructor(t){this._size=0,this._options=t,this._leakageMon=_p>0||this._options?.leakWarningThreshold?new cc(t?.onListenerError??kn,this._options?.leakWarningThreshold??_p):void 0,this._perfMon=this._options?._profName?new lc(this._options._profName):void 0,this._deliveryQueue=this._options?.deliveryQueue}dispose(){this._disposed||(this._disposed=!0,this._deliveryQueue?.current===this&&this._deliveryQueue.reset(),this._listeners&&(this._listeners=void 0,this._size=0),this._options?.onDidRemoveLastListener?.(),this._leakageMon?.dispose())}get event(){return this._event??=(t,n,r)=>{if(this._leakageMon&&this._size>this._leakageMon.threshold**2){let a=`[${this._leakageMon.name}] REFUSES to accept new listeners because it exceeded its threshold by far (${this._size} vs ${this._leakageMon.threshold})`;console.warn(a);let u=this._leakageMon.getMostFrequentStack()??["UNKNOWN stack",-1],l=new pc(`${a}. HINT: Stack shows most frequent listener (${u[1]}-times)`,u[0]);return(this._options?.onListenerError||kn)(l),Mn.None}if(this._disposed)return Mn.None;n&&(t=t.bind(n));let i=new ho(t),s;this._leakageMon&&this._size>=Math.ceil(this._leakageMon.threshold*.2)&&(i.stack=fc.create(),s=this._leakageMon.check(i.stack,this._size+1)),this._listeners?this._listeners instanceof ho?(this._deliveryQueue??=new dc,this._listeners=[this._listeners,i]):this._listeners.push(i):(this._options?.onWillAddFirstListener?.(this),this._listeners=i,this._options?.onDidAddFirstListener?.(this)),this._options?.onDidAddListener?.(this),this._size++;let o=Dn(()=>{s?.(),this._removeListener(i)});return r instanceof Rr?r.add(o):Array.isArray(r)&&r.push(o),o},this._event}_removeListener(t){if(this._options?.onWillRemoveListener?.(this),!this._listeners)return;if(this._size===1){this._listeners=void 0,this._options?.onDidRemoveLastListener?.(this),this._size=0;return}let n=this._listeners,r=n.indexOf(t);if(r===-1)throw console.log("disposed?",this._disposed),console.log("size?",this._size),console.log("arr?",JSON.stringify(this._listeners)),new Error("Attempted to dispose unknown listener");this._size--,n[r]=void 0;let i=this._deliveryQueue.current===this;if(this._size*B5<=n.length){let s=0;for(let o=0;o<n.length;o++)n[o]?n[s++]=n[o]:i&&s<this._deliveryQueue.end&&(this._deliveryQueue.end--,s<this._deliveryQueue.i&&this._deliveryQueue.i--);n.length=s}}_deliver(t,n){if(!t)return;let r=this._options?.onListenerError||kn;if(!r){t.value(n);return}try{t.value(n)}catch(i){r(i)}}_deliverQueue(t){let n=t.current._listeners;for(;t.i<t.end;)this._deliver(n[t.i++],t.value);t.reset()}fire(t){if(this._deliveryQueue?.current&&(this._deliverQueue(this._deliveryQueue),this._perfMon?.stop()),this._perfMon?.start(this._size),this._listeners)if(this._listeners instanceof ho)this._deliver(this._listeners,t);else{let n=this._deliveryQueue;n.enqueue(this,t,this._listeners.length),this._deliverQueue(n)}this._perfMon?.stop()}hasListeners(){return this._size>0}};var dc=class{constructor(){this.i=-1,this.end=0}enqueue(t,n,r){this.i=0,this.end=r,this.current=t,this.value=n}reset(){this.i=this.end,this.current=void 0,this.value=void 0}};function Ep(){return globalThis._VSCODE_NLS_MESSAGES}function ya(){return globalThis._VSCODE_NLS_LANGUAGE}var C5=ya()==="pseudo"||typeof document<"u"&&document.location&&typeof document.location.hash=="string"&&document.location.hash.indexOf("pseudo=true")>=0;function Dp(e,t){let n;return t.length===0?n=e:n=e.replace(/\{(\d+)\}/g,(r,i)=>{let s=i[0],o=t[s],a=r;return typeof o=="string"?a=o:(typeof o=="number"||typeof o=="boolean"||o===void 0||o===null)&&(a=String(o)),a}),C5&&(n="\uFF3B"+n.replace(/[aouei]/g,"$&$&")+"\uFF3D"),n}var V5=!1;function he(e,t,...n){return Dp(typeof e=="number"?$5(e,t):t,n)}function $5(e,t){V5=!0;let n=Ep()?.[e];if(typeof n!="string"){if(typeof t=="string")return t;throw new Error(`!!! NLS MISSING: ${e} !!!`)}return n}var Jr="en",go=!1,_o=!1,po=!1,j5=!1,Np=!1,gc=!1,G5=!1,Tp=!1,q5=!1,H5=!1,wa,xa=Jr,bp=Jr,W5,lr,cr=globalThis,tn;typeof cr.vscode<"u"&&typeof cr.vscode.process<"u"?tn=cr.vscode.process:typeof process<"u"&&typeof process?.versions?.node=="string"&&(tn=process);var yp=typeof tn?.versions?.electron=="string",z5=yp&&tn?.type==="renderer";if(typeof tn=="object"){go=tn.platform==="win32",_o=tn.platform==="darwin",po=tn.platform==="linux",j5=po&&!!tn.env.SNAP&&!!tn.env.SNAP_REVISION,G5=yp,q5=!!tn.env.CI||!!tn.env.BUILD_ARTIFACTSTAGINGDIRECTORY,wa=Jr,xa=Jr;let e=tn.env.VSCODE_NLS_CONFIG;if(e)try{let t=JSON.parse(e);wa=t.userLocale,bp=t.osLocale,xa=t.resolvedLanguage||Jr,W5=t.languagePack?.translationsConfigFile}catch{}Np=!0}else typeof navigator=="object"&&!z5?(lr=navigator.userAgent,go=lr.indexOf("Windows")>=0,_o=lr.indexOf("Macintosh")>=0,Tp=(lr.indexOf("Macintosh")>=0||lr.indexOf("iPad")>=0||lr.indexOf("iPhone")>=0)&&!!navigator.maxTouchPoints&&navigator.maxTouchPoints>0,po=lr.indexOf("Linux")>=0,H5=lr?.indexOf("Mobi")>=0,gc=!0,xa=ya()||Jr,wa=navigator.language.toLowerCase(),bp=wa):console.error("Unable to resolve platform.");var qi;(function(e){e[e.Web=0]="Web",e[e.Mac=1]="Mac",e[e.Linux=2]="Linux",e[e.Windows=3]="Windows"})(qi||(qi={}));var mc=qi.Web;_o?mc=qi.Mac:go?mc=qi.Windows:po&&(mc=qi.Linux);var Pn=go,wp=_o,xp=po;var Lp=Np;var _c=gc,Q5=gc&&typeof cr.importScripts=="function",Ap=Q5?cr.origin:void 0;var Un=lr,Ir=xa,vp;(function(e){function t(){return Ir}e.value=t;function n(){return Ir.length===2?Ir==="en":Ir.length>=3?Ir[0]==="e"&&Ir[1]==="n"&&Ir[2]==="-":!1}e.isDefaultVariant=n;function r(){return Ir==="en"}e.isDefault=r})(vp||(vp={}));var Y5=typeof cr.postMessage=="function"&&!cr.importScripts,Fp=(()=>{if(Y5){let e=[];cr.addEventListener("message",n=>{if(n.data&&n.data.vscodeScheduleAsyncWork)for(let r=0,i=e.length;r<i;r++){let s=e[r];if(s.id===n.data.vscodeScheduleAsyncWork){e.splice(r,1),s.callback();return}}});let t=0;return n=>{let r=++t;e.push({id:r,callback:n}),cr.postMessage({vscodeScheduleAsyncWork:r},"*")}}return e=>setTimeout(e)})(),mo;(function(e){e[e.Windows=1]="Windows",e[e.Macintosh=2]="Macintosh",e[e.Linux=3]="Linux"})(mo||(mo={}));var hT=_o||Tp?mo.Macintosh:go?mo.Windows:mo.Linux;var X5=!!(Un&&Un.indexOf("Chrome")>=0),pT=!!(Un&&Un.indexOf("Firefox")>=0),dT=!!(!X5&&Un&&Un.indexOf("Safari")>=0),mT=!!(Un&&Un.indexOf("Edg/")>=0),gT=!!(Un&&Un.indexOf("Android")>=0);var Sp=Object.freeze(function(e,t){let n=setTimeout(e.bind(t),0);return{dispose(){clearTimeout(n)}}}),La;(function(e){function t(n){return n===e.None||n===e.Cancelled||n instanceof Hi?!0:!n||typeof n!="object"?!1:typeof n.isCancellationRequested=="boolean"&&typeof n.onCancellationRequested=="function"}e.isCancellationToken=t,e.None=Object.freeze({isCancellationRequested:!1,onCancellationRequested:Gi.None}),e.Cancelled=Object.freeze({isCancellationRequested:!0,onCancellationRequested:Sp})})(La||(La={}));var Hi=class{constructor(){this._isCancelled=!1,this._emitter=null}cancel(){this._isCancelled||(this._isCancelled=!0,this._emitter&&(this._emitter.fire(void 0),this.dispose()))}get isCancellationRequested(){return this._isCancelled}get onCancellationRequested(){return this._isCancelled?Sp:(this._emitter||(this._emitter=new bt),this._emitter.event)}dispose(){this._emitter&&(this._emitter.dispose(),this._emitter=null)}},Wi=class{constructor(t){this._token=void 0,this._parentListener=void 0,this._parentListener=t&&t.onCancellationRequested(this.cancel,this)}get token(){return this._token||(this._token=new Hi),this._token}cancel(){this._token?this._token instanceof Hi&&this._token.cancel():this._token=La.Cancelled}dispose(t=!1){t&&this.cancel(),this._parentListener?.dispose(),this._token?this._token instanceof Hi&&this._token.dispose():this._token=La.None}};function J5(e){return e}var Aa=class{constructor(t,n){this.lastCache=void 0,this.lastArgKey=void 0,typeof t=="function"?(this._fn=t,this._computeKey=J5):(this._fn=n,this._computeKey=t.getCacheKey)}get(t){let n=this._computeKey(t);return this.lastArgKey!==n&&(this.lastArgKey=n,this.lastCache=this._fn(t)),this.lastCache}};var fr=class{constructor(t){this.executor=t,this._didRun=!1}get hasValue(){return this._didRun}get value(){if(!this._didRun)try{this._value=this.executor()}catch(t){this._error=t}finally{this._didRun=!0}if(this._error)throw this._error;return this._value}get rawValue(){return this._value}};var Wt;(function(e){e[e.MAX_SAFE_SMALL_INTEGER=1073741824]="MAX_SAFE_SMALL_INTEGER",e[e.MIN_SAFE_SMALL_INTEGER=-1073741824]="MIN_SAFE_SMALL_INTEGER",e[e.MAX_UINT_8=255]="MAX_UINT_8",e[e.MAX_UINT_16=65535]="MAX_UINT_16",e[e.MAX_UINT_32=4294967295]="MAX_UINT_32",e[e.UNICODE_SUPPLEMENTARY_PLANE_BEGIN=65536]="UNICODE_SUPPLEMENTARY_PLANE_BEGIN"})(Wt||(Wt={}));function Ec(e){return e<0?0:e>Wt.MAX_UINT_8?Wt.MAX_UINT_8:e|0}function Zr(e){return e<0?0:e>Wt.MAX_UINT_32?Wt.MAX_UINT_32:e|0}function Op(e){return e.replace(/[\\\{\}\*\+\?\|\^\$\.\[\]\(\)]/g,"\\$&")}function kp(e){return e.source==="^"||e.source==="^$"||e.source==="$"||e.source==="^\\s*$"?!1:!!(e.exec("")&&e.lastIndex===0)}function Fa(e){return e.split(/\r\n|\r|\n/)}function Mp(e){for(let t=0,n=e.length;t<n;t++){let r=e.charCodeAt(t);if(r!==O.Space&&r!==O.Tab)return t}return-1}function Up(e,t=e.length-1){for(let n=t;n>=0;n--){let r=e.charCodeAt(n);if(r!==O.Space&&r!==O.Tab)return n}return-1}function Pp(e,t){return e<t?-1:e>t?1:0}function Z5(e,t,n=0,r=e.length,i=0,s=t.length){for(;n<r&&i<s;n++,i++){let u=e.charCodeAt(n),l=t.charCodeAt(i);if(u<l)return-1;if(u>l)return 1}let o=r-n,a=s-i;return o<a?-1:o>a?1:0}function Bp(e,t,n=0,r=e.length,i=0,s=t.length){for(;n<r&&i<s;n++,i++){let u=e.charCodeAt(n),l=t.charCodeAt(i);if(u===l)continue;if(u>=128||l>=128)return Z5(e.toLowerCase(),t.toLowerCase(),n,r,i,s);Rp(u)&&(u-=32),Rp(l)&&(l-=32);let c=u-l;if(c!==0)return c}let o=r-n,a=s-i;return o<a?-1:o>a?1:0}function Rp(e){return e>=O.a&&e<=O.z}function bc(e){return e>=O.A&&e<=O.Z}function Sa(e,t){return e.length===t.length&&Bp(e,t)===0}function vc(e,t){let n=t.length;return t.length>e.length?!1:Bp(e,t,0,n)===0}function Yi(e,t){let n=Math.min(e.length,t.length),r;for(r=0;r<n;r++)if(e.charCodeAt(r)!==t.charCodeAt(r))return r;return n}function Eo(e,t){let n=Math.min(e.length,t.length),r,i=e.length-1,s=t.length-1;for(r=0;r<n;r++)if(e.charCodeAt(i-r)!==t.charCodeAt(s-r))return r;return n}function Xi(e){return 55296<=e&&e<=56319}function Ra(e){return 56320<=e&&e<=57343}function Nc(e,t){return(e-55296<<10)+(t-56320)+65536}function Cp(e,t,n){let r=e.charCodeAt(n);if(Xi(r)&&n+1<t){let i=e.charCodeAt(n+1);if(Ra(i))return Nc(r,i)}return r}var K5=/^[\t\n\r\x20-\x7E]*$/;function Vp(e){return K5.test(e)}var eE=/(?:\x1b\[|\x9b)[=?>!]?[\d;:]*["$#'* ]?[a-zA-Z@^`{}|~]/,tE=/(?:\x1b\]|\x9d).*?(?:\x1b\\|\x07|\x9c)/,nE=/\x1b(?:[ #%\(\)\*\+\-\.\/]?[a-zA-Z0-9\|}~@])/,AT=new RegExp("(?:"+[eE.source,tE.source,nE.source].join("|")+")","g");var FT=String.fromCharCode(O.UTF8_BOM);var Kr;(function(e){e[e.Other=0]="Other",e[e.Prepend=1]="Prepend",e[e.CR=2]="CR",e[e.LF=3]="LF",e[e.Control=4]="Control",e[e.Extend=5]="Extend",e[e.Regional_Indicator=6]="Regional_Indicator",e[e.SpacingMark=7]="SpacingMark",e[e.L=8]="L",e[e.V=9]="V",e[e.T=10]="T",e[e.LV=11]="LV",e[e.LVT=12]="LVT",e[e.ZWJ=13]="ZWJ",e[e.Extended_Pictographic=14]="Extended_Pictographic"})(Kr||(Kr={}));var Ip=class e{static{this._INSTANCE=null}static getInstance(){return e._INSTANCE||(e._INSTANCE=new e),e._INSTANCE}constructor(){this._data=rE()}getGraphemeBreakType(t){if(t<32)return t===O.LineFeed?Kr.LF:t===O.CarriageReturn?Kr.CR:Kr.Control;if(t<127)return Kr.Other;let n=this._data,r=n.length/3,i=1;for(;i<=r;)if(t<n[3*i])i=2*i;else if(t>n[3*i+1])i=2*i+1;else return n[3*i+2];return Kr.Other}};function rE(){return JSON.parse("[0,0,0,51229,51255,12,44061,44087,12,127462,127487,6,7083,7085,5,47645,47671,12,54813,54839,12,128678,128678,14,3270,3270,5,9919,9923,14,45853,45879,12,49437,49463,12,53021,53047,12,71216,71218,7,128398,128399,14,129360,129374,14,2519,2519,5,4448,4519,9,9742,9742,14,12336,12336,14,44957,44983,12,46749,46775,12,48541,48567,12,50333,50359,12,52125,52151,12,53917,53943,12,69888,69890,5,73018,73018,5,127990,127990,14,128558,128559,14,128759,128760,14,129653,129655,14,2027,2035,5,2891,2892,7,3761,3761,5,6683,6683,5,8293,8293,4,9825,9826,14,9999,9999,14,43452,43453,5,44509,44535,12,45405,45431,12,46301,46327,12,47197,47223,12,48093,48119,12,48989,49015,12,49885,49911,12,50781,50807,12,51677,51703,12,52573,52599,12,53469,53495,12,54365,54391,12,65279,65279,4,70471,70472,7,72145,72147,7,119173,119179,5,127799,127818,14,128240,128244,14,128512,128512,14,128652,128652,14,128721,128722,14,129292,129292,14,129445,129450,14,129734,129743,14,1476,1477,5,2366,2368,7,2750,2752,7,3076,3076,5,3415,3415,5,4141,4144,5,6109,6109,5,6964,6964,5,7394,7400,5,9197,9198,14,9770,9770,14,9877,9877,14,9968,9969,14,10084,10084,14,43052,43052,5,43713,43713,5,44285,44311,12,44733,44759,12,45181,45207,12,45629,45655,12,46077,46103,12,46525,46551,12,46973,46999,12,47421,47447,12,47869,47895,12,48317,48343,12,48765,48791,12,49213,49239,12,49661,49687,12,50109,50135,12,50557,50583,12,51005,51031,12,51453,51479,12,51901,51927,12,52349,52375,12,52797,52823,12,53245,53271,12,53693,53719,12,54141,54167,12,54589,54615,12,55037,55063,12,69506,69509,5,70191,70193,5,70841,70841,7,71463,71467,5,72330,72342,5,94031,94031,5,123628,123631,5,127763,127765,14,127941,127941,14,128043,128062,14,128302,128317,14,128465,128467,14,128539,128539,14,128640,128640,14,128662,128662,14,128703,128703,14,128745,128745,14,129004,129007,14,129329,129330,14,129402,129402,14,129483,129483,14,129686,129704,14,130048,131069,14,173,173,4,1757,1757,1,2200,2207,5,2434,2435,7,2631,2632,5,2817,2817,5,3008,3008,5,3201,3201,5,3387,3388,5,3542,3542,5,3902,3903,7,4190,4192,5,6002,6003,5,6439,6440,5,6765,6770,7,7019,7027,5,7154,7155,7,8205,8205,13,8505,8505,14,9654,9654,14,9757,9757,14,9792,9792,14,9852,9853,14,9890,9894,14,9937,9937,14,9981,9981,14,10035,10036,14,11035,11036,14,42654,42655,5,43346,43347,7,43587,43587,5,44006,44007,7,44173,44199,12,44397,44423,12,44621,44647,12,44845,44871,12,45069,45095,12,45293,45319,12,45517,45543,12,45741,45767,12,45965,45991,12,46189,46215,12,46413,46439,12,46637,46663,12,46861,46887,12,47085,47111,12,47309,47335,12,47533,47559,12,47757,47783,12,47981,48007,12,48205,48231,12,48429,48455,12,48653,48679,12,48877,48903,12,49101,49127,12,49325,49351,12,49549,49575,12,49773,49799,12,49997,50023,12,50221,50247,12,50445,50471,12,50669,50695,12,50893,50919,12,51117,51143,12,51341,51367,12,51565,51591,12,51789,51815,12,52013,52039,12,52237,52263,12,52461,52487,12,52685,52711,12,52909,52935,12,53133,53159,12,53357,53383,12,53581,53607,12,53805,53831,12,54029,54055,12,54253,54279,12,54477,54503,12,54701,54727,12,54925,54951,12,55149,55175,12,68101,68102,5,69762,69762,7,70067,70069,7,70371,70378,5,70720,70721,7,71087,71087,5,71341,71341,5,71995,71996,5,72249,72249,7,72850,72871,5,73109,73109,5,118576,118598,5,121505,121519,5,127245,127247,14,127568,127569,14,127777,127777,14,127872,127891,14,127956,127967,14,128015,128016,14,128110,128172,14,128259,128259,14,128367,128368,14,128424,128424,14,128488,128488,14,128530,128532,14,128550,128551,14,128566,128566,14,128647,128647,14,128656,128656,14,128667,128673,14,128691,128693,14,128715,128715,14,128728,128732,14,128752,128752,14,128765,128767,14,129096,129103,14,129311,129311,14,129344,129349,14,129394,129394,14,129413,129425,14,129466,129471,14,129511,129535,14,129664,129666,14,129719,129722,14,129760,129767,14,917536,917631,5,13,13,2,1160,1161,5,1564,1564,4,1807,1807,1,2085,2087,5,2307,2307,7,2382,2383,7,2497,2500,5,2563,2563,7,2677,2677,5,2763,2764,7,2879,2879,5,2914,2915,5,3021,3021,5,3142,3144,5,3263,3263,5,3285,3286,5,3398,3400,7,3530,3530,5,3633,3633,5,3864,3865,5,3974,3975,5,4155,4156,7,4229,4230,5,5909,5909,7,6078,6085,7,6277,6278,5,6451,6456,7,6744,6750,5,6846,6846,5,6972,6972,5,7074,7077,5,7146,7148,7,7222,7223,5,7416,7417,5,8234,8238,4,8417,8417,5,9000,9000,14,9203,9203,14,9730,9731,14,9748,9749,14,9762,9763,14,9776,9783,14,9800,9811,14,9831,9831,14,9872,9873,14,9882,9882,14,9900,9903,14,9929,9933,14,9941,9960,14,9974,9974,14,9989,9989,14,10006,10006,14,10062,10062,14,10160,10160,14,11647,11647,5,12953,12953,14,43019,43019,5,43232,43249,5,43443,43443,5,43567,43568,7,43696,43696,5,43765,43765,7,44013,44013,5,44117,44143,12,44229,44255,12,44341,44367,12,44453,44479,12,44565,44591,12,44677,44703,12,44789,44815,12,44901,44927,12,45013,45039,12,45125,45151,12,45237,45263,12,45349,45375,12,45461,45487,12,45573,45599,12,45685,45711,12,45797,45823,12,45909,45935,12,46021,46047,12,46133,46159,12,46245,46271,12,46357,46383,12,46469,46495,12,46581,46607,12,46693,46719,12,46805,46831,12,46917,46943,12,47029,47055,12,47141,47167,12,47253,47279,12,47365,47391,12,47477,47503,12,47589,47615,12,47701,47727,12,47813,47839,12,47925,47951,12,48037,48063,12,48149,48175,12,48261,48287,12,48373,48399,12,48485,48511,12,48597,48623,12,48709,48735,12,48821,48847,12,48933,48959,12,49045,49071,12,49157,49183,12,49269,49295,12,49381,49407,12,49493,49519,12,49605,49631,12,49717,49743,12,49829,49855,12,49941,49967,12,50053,50079,12,50165,50191,12,50277,50303,12,50389,50415,12,50501,50527,12,50613,50639,12,50725,50751,12,50837,50863,12,50949,50975,12,51061,51087,12,51173,51199,12,51285,51311,12,51397,51423,12,51509,51535,12,51621,51647,12,51733,51759,12,51845,51871,12,51957,51983,12,52069,52095,12,52181,52207,12,52293,52319,12,52405,52431,12,52517,52543,12,52629,52655,12,52741,52767,12,52853,52879,12,52965,52991,12,53077,53103,12,53189,53215,12,53301,53327,12,53413,53439,12,53525,53551,12,53637,53663,12,53749,53775,12,53861,53887,12,53973,53999,12,54085,54111,12,54197,54223,12,54309,54335,12,54421,54447,12,54533,54559,12,54645,54671,12,54757,54783,12,54869,54895,12,54981,55007,12,55093,55119,12,55243,55291,10,66045,66045,5,68325,68326,5,69688,69702,5,69817,69818,5,69957,69958,7,70089,70092,5,70198,70199,5,70462,70462,5,70502,70508,5,70750,70750,5,70846,70846,7,71100,71101,5,71230,71230,7,71351,71351,5,71737,71738,5,72000,72000,7,72160,72160,5,72273,72278,5,72752,72758,5,72882,72883,5,73031,73031,5,73461,73462,7,94192,94193,7,119149,119149,7,121403,121452,5,122915,122916,5,126980,126980,14,127358,127359,14,127535,127535,14,127759,127759,14,127771,127771,14,127792,127793,14,127825,127867,14,127897,127899,14,127945,127945,14,127985,127986,14,128000,128007,14,128021,128021,14,128066,128100,14,128184,128235,14,128249,128252,14,128266,128276,14,128335,128335,14,128379,128390,14,128407,128419,14,128444,128444,14,128481,128481,14,128499,128499,14,128526,128526,14,128536,128536,14,128543,128543,14,128556,128556,14,128564,128564,14,128577,128580,14,128643,128645,14,128649,128649,14,128654,128654,14,128660,128660,14,128664,128664,14,128675,128675,14,128686,128689,14,128695,128696,14,128705,128709,14,128717,128719,14,128725,128725,14,128736,128741,14,128747,128748,14,128755,128755,14,128762,128762,14,128981,128991,14,129009,129023,14,129160,129167,14,129296,129304,14,129320,129327,14,129340,129342,14,129356,129356,14,129388,129392,14,129399,129400,14,129404,129407,14,129432,129442,14,129454,129455,14,129473,129474,14,129485,129487,14,129648,129651,14,129659,129660,14,129671,129679,14,129709,129711,14,129728,129730,14,129751,129753,14,129776,129782,14,917505,917505,4,917760,917999,5,10,10,3,127,159,4,768,879,5,1471,1471,5,1536,1541,1,1648,1648,5,1767,1768,5,1840,1866,5,2070,2073,5,2137,2139,5,2274,2274,1,2363,2363,7,2377,2380,7,2402,2403,5,2494,2494,5,2507,2508,7,2558,2558,5,2622,2624,7,2641,2641,5,2691,2691,7,2759,2760,5,2786,2787,5,2876,2876,5,2881,2884,5,2901,2902,5,3006,3006,5,3014,3016,7,3072,3072,5,3134,3136,5,3157,3158,5,3260,3260,5,3266,3266,5,3274,3275,7,3328,3329,5,3391,3392,7,3405,3405,5,3457,3457,5,3536,3537,7,3551,3551,5,3636,3642,5,3764,3772,5,3895,3895,5,3967,3967,7,3993,4028,5,4146,4151,5,4182,4183,7,4226,4226,5,4253,4253,5,4957,4959,5,5940,5940,7,6070,6070,7,6087,6088,7,6158,6158,4,6432,6434,5,6448,6449,7,6679,6680,5,6742,6742,5,6754,6754,5,6783,6783,5,6912,6915,5,6966,6970,5,6978,6978,5,7042,7042,7,7080,7081,5,7143,7143,7,7150,7150,7,7212,7219,5,7380,7392,5,7412,7412,5,8203,8203,4,8232,8232,4,8265,8265,14,8400,8412,5,8421,8432,5,8617,8618,14,9167,9167,14,9200,9200,14,9410,9410,14,9723,9726,14,9733,9733,14,9745,9745,14,9752,9752,14,9760,9760,14,9766,9766,14,9774,9774,14,9786,9786,14,9794,9794,14,9823,9823,14,9828,9828,14,9833,9850,14,9855,9855,14,9875,9875,14,9880,9880,14,9885,9887,14,9896,9897,14,9906,9916,14,9926,9927,14,9935,9935,14,9939,9939,14,9962,9962,14,9972,9972,14,9978,9978,14,9986,9986,14,9997,9997,14,10002,10002,14,10017,10017,14,10055,10055,14,10071,10071,14,10133,10135,14,10548,10549,14,11093,11093,14,12330,12333,5,12441,12442,5,42608,42610,5,43010,43010,5,43045,43046,5,43188,43203,7,43302,43309,5,43392,43394,5,43446,43449,5,43493,43493,5,43571,43572,7,43597,43597,7,43703,43704,5,43756,43757,5,44003,44004,7,44009,44010,7,44033,44059,12,44089,44115,12,44145,44171,12,44201,44227,12,44257,44283,12,44313,44339,12,44369,44395,12,44425,44451,12,44481,44507,12,44537,44563,12,44593,44619,12,44649,44675,12,44705,44731,12,44761,44787,12,44817,44843,12,44873,44899,12,44929,44955,12,44985,45011,12,45041,45067,12,45097,45123,12,45153,45179,12,45209,45235,12,45265,45291,12,45321,45347,12,45377,45403,12,45433,45459,12,45489,45515,12,45545,45571,12,45601,45627,12,45657,45683,12,45713,45739,12,45769,45795,12,45825,45851,12,45881,45907,12,45937,45963,12,45993,46019,12,46049,46075,12,46105,46131,12,46161,46187,12,46217,46243,12,46273,46299,12,46329,46355,12,46385,46411,12,46441,46467,12,46497,46523,12,46553,46579,12,46609,46635,12,46665,46691,12,46721,46747,12,46777,46803,12,46833,46859,12,46889,46915,12,46945,46971,12,47001,47027,12,47057,47083,12,47113,47139,12,47169,47195,12,47225,47251,12,47281,47307,12,47337,47363,12,47393,47419,12,47449,47475,12,47505,47531,12,47561,47587,12,47617,47643,12,47673,47699,12,47729,47755,12,47785,47811,12,47841,47867,12,47897,47923,12,47953,47979,12,48009,48035,12,48065,48091,12,48121,48147,12,48177,48203,12,48233,48259,12,48289,48315,12,48345,48371,12,48401,48427,12,48457,48483,12,48513,48539,12,48569,48595,12,48625,48651,12,48681,48707,12,48737,48763,12,48793,48819,12,48849,48875,12,48905,48931,12,48961,48987,12,49017,49043,12,49073,49099,12,49129,49155,12,49185,49211,12,49241,49267,12,49297,49323,12,49353,49379,12,49409,49435,12,49465,49491,12,49521,49547,12,49577,49603,12,49633,49659,12,49689,49715,12,49745,49771,12,49801,49827,12,49857,49883,12,49913,49939,12,49969,49995,12,50025,50051,12,50081,50107,12,50137,50163,12,50193,50219,12,50249,50275,12,50305,50331,12,50361,50387,12,50417,50443,12,50473,50499,12,50529,50555,12,50585,50611,12,50641,50667,12,50697,50723,12,50753,50779,12,50809,50835,12,50865,50891,12,50921,50947,12,50977,51003,12,51033,51059,12,51089,51115,12,51145,51171,12,51201,51227,12,51257,51283,12,51313,51339,12,51369,51395,12,51425,51451,12,51481,51507,12,51537,51563,12,51593,51619,12,51649,51675,12,51705,51731,12,51761,51787,12,51817,51843,12,51873,51899,12,51929,51955,12,51985,52011,12,52041,52067,12,52097,52123,12,52153,52179,12,52209,52235,12,52265,52291,12,52321,52347,12,52377,52403,12,52433,52459,12,52489,52515,12,52545,52571,12,52601,52627,12,52657,52683,12,52713,52739,12,52769,52795,12,52825,52851,12,52881,52907,12,52937,52963,12,52993,53019,12,53049,53075,12,53105,53131,12,53161,53187,12,53217,53243,12,53273,53299,12,53329,53355,12,53385,53411,12,53441,53467,12,53497,53523,12,53553,53579,12,53609,53635,12,53665,53691,12,53721,53747,12,53777,53803,12,53833,53859,12,53889,53915,12,53945,53971,12,54001,54027,12,54057,54083,12,54113,54139,12,54169,54195,12,54225,54251,12,54281,54307,12,54337,54363,12,54393,54419,12,54449,54475,12,54505,54531,12,54561,54587,12,54617,54643,12,54673,54699,12,54729,54755,12,54785,54811,12,54841,54867,12,54897,54923,12,54953,54979,12,55009,55035,12,55065,55091,12,55121,55147,12,55177,55203,12,65024,65039,5,65520,65528,4,66422,66426,5,68152,68154,5,69291,69292,5,69633,69633,5,69747,69748,5,69811,69814,5,69826,69826,5,69932,69932,7,70016,70017,5,70079,70080,7,70095,70095,5,70196,70196,5,70367,70367,5,70402,70403,7,70464,70464,5,70487,70487,5,70709,70711,7,70725,70725,7,70833,70834,7,70843,70844,7,70849,70849,7,71090,71093,5,71103,71104,5,71227,71228,7,71339,71339,5,71344,71349,5,71458,71461,5,71727,71735,5,71985,71989,7,71998,71998,5,72002,72002,7,72154,72155,5,72193,72202,5,72251,72254,5,72281,72283,5,72344,72345,5,72766,72766,7,72874,72880,5,72885,72886,5,73023,73029,5,73104,73105,5,73111,73111,5,92912,92916,5,94095,94098,5,113824,113827,4,119142,119142,7,119155,119162,4,119362,119364,5,121476,121476,5,122888,122904,5,123184,123190,5,125252,125258,5,127183,127183,14,127340,127343,14,127377,127386,14,127491,127503,14,127548,127551,14,127744,127756,14,127761,127761,14,127769,127769,14,127773,127774,14,127780,127788,14,127796,127797,14,127820,127823,14,127869,127869,14,127894,127895,14,127902,127903,14,127943,127943,14,127947,127950,14,127972,127972,14,127988,127988,14,127992,127994,14,128009,128011,14,128019,128019,14,128023,128041,14,128064,128064,14,128102,128107,14,128174,128181,14,128238,128238,14,128246,128247,14,128254,128254,14,128264,128264,14,128278,128299,14,128329,128330,14,128348,128359,14,128371,128377,14,128392,128393,14,128401,128404,14,128421,128421,14,128433,128434,14,128450,128452,14,128476,128478,14,128483,128483,14,128495,128495,14,128506,128506,14,128519,128520,14,128528,128528,14,128534,128534,14,128538,128538,14,128540,128542,14,128544,128549,14,128552,128555,14,128557,128557,14,128560,128563,14,128565,128565,14,128567,128576,14,128581,128591,14,128641,128642,14,128646,128646,14,128648,128648,14,128650,128651,14,128653,128653,14,128655,128655,14,128657,128659,14,128661,128661,14,128663,128663,14,128665,128666,14,128674,128674,14,128676,128677,14,128679,128685,14,128690,128690,14,128694,128694,14,128697,128702,14,128704,128704,14,128710,128714,14,128716,128716,14,128720,128720,14,128723,128724,14,128726,128727,14,128733,128735,14,128742,128744,14,128746,128746,14,128749,128751,14,128753,128754,14,128756,128758,14,128761,128761,14,128763,128764,14,128884,128895,14,128992,129003,14,129008,129008,14,129036,129039,14,129114,129119,14,129198,129279,14,129293,129295,14,129305,129310,14,129312,129319,14,129328,129328,14,129331,129338,14,129343,129343,14,129351,129355,14,129357,129359,14,129375,129387,14,129393,129393,14,129395,129398,14,129401,129401,14,129403,129403,14,129408,129412,14,129426,129431,14,129443,129444,14,129451,129453,14,129456,129465,14,129472,129472,14,129475,129482,14,129484,129484,14,129488,129510,14,129536,129647,14,129652,129652,14,129656,129658,14,129661,129663,14,129667,129670,14,129680,129685,14,129705,129708,14,129712,129718,14,129723,129727,14,129731,129733,14,129744,129750,14,129754,129759,14,129768,129775,14,129783,129791,14,917504,917504,4,917506,917535,4,917632,917759,4,918000,921599,4,0,9,4,11,12,4,14,31,4,169,169,14,174,174,14,1155,1159,5,1425,1469,5,1473,1474,5,1479,1479,5,1552,1562,5,1611,1631,5,1750,1756,5,1759,1764,5,1770,1773,5,1809,1809,5,1958,1968,5,2045,2045,5,2075,2083,5,2089,2093,5,2192,2193,1,2250,2273,5,2275,2306,5,2362,2362,5,2364,2364,5,2369,2376,5,2381,2381,5,2385,2391,5,2433,2433,5,2492,2492,5,2495,2496,7,2503,2504,7,2509,2509,5,2530,2531,5,2561,2562,5,2620,2620,5,2625,2626,5,2635,2637,5,2672,2673,5,2689,2690,5,2748,2748,5,2753,2757,5,2761,2761,7,2765,2765,5,2810,2815,5,2818,2819,7,2878,2878,5,2880,2880,7,2887,2888,7,2893,2893,5,2903,2903,5,2946,2946,5,3007,3007,7,3009,3010,7,3018,3020,7,3031,3031,5,3073,3075,7,3132,3132,5,3137,3140,7,3146,3149,5,3170,3171,5,3202,3203,7,3262,3262,7,3264,3265,7,3267,3268,7,3271,3272,7,3276,3277,5,3298,3299,5,3330,3331,7,3390,3390,5,3393,3396,5,3402,3404,7,3406,3406,1,3426,3427,5,3458,3459,7,3535,3535,5,3538,3540,5,3544,3550,7,3570,3571,7,3635,3635,7,3655,3662,5,3763,3763,7,3784,3789,5,3893,3893,5,3897,3897,5,3953,3966,5,3968,3972,5,3981,3991,5,4038,4038,5,4145,4145,7,4153,4154,5,4157,4158,5,4184,4185,5,4209,4212,5,4228,4228,7,4237,4237,5,4352,4447,8,4520,4607,10,5906,5908,5,5938,5939,5,5970,5971,5,6068,6069,5,6071,6077,5,6086,6086,5,6089,6099,5,6155,6157,5,6159,6159,5,6313,6313,5,6435,6438,7,6441,6443,7,6450,6450,5,6457,6459,5,6681,6682,7,6741,6741,7,6743,6743,7,6752,6752,5,6757,6764,5,6771,6780,5,6832,6845,5,6847,6862,5,6916,6916,7,6965,6965,5,6971,6971,7,6973,6977,7,6979,6980,7,7040,7041,5,7073,7073,7,7078,7079,7,7082,7082,7,7142,7142,5,7144,7145,5,7149,7149,5,7151,7153,5,7204,7211,7,7220,7221,7,7376,7378,5,7393,7393,7,7405,7405,5,7415,7415,7,7616,7679,5,8204,8204,5,8206,8207,4,8233,8233,4,8252,8252,14,8288,8292,4,8294,8303,4,8413,8416,5,8418,8420,5,8482,8482,14,8596,8601,14,8986,8987,14,9096,9096,14,9193,9196,14,9199,9199,14,9201,9202,14,9208,9210,14,9642,9643,14,9664,9664,14,9728,9729,14,9732,9732,14,9735,9741,14,9743,9744,14,9746,9746,14,9750,9751,14,9753,9756,14,9758,9759,14,9761,9761,14,9764,9765,14,9767,9769,14,9771,9773,14,9775,9775,14,9784,9785,14,9787,9791,14,9793,9793,14,9795,9799,14,9812,9822,14,9824,9824,14,9827,9827,14,9829,9830,14,9832,9832,14,9851,9851,14,9854,9854,14,9856,9861,14,9874,9874,14,9876,9876,14,9878,9879,14,9881,9881,14,9883,9884,14,9888,9889,14,9895,9895,14,9898,9899,14,9904,9905,14,9917,9918,14,9924,9925,14,9928,9928,14,9934,9934,14,9936,9936,14,9938,9938,14,9940,9940,14,9961,9961,14,9963,9967,14,9970,9971,14,9973,9973,14,9975,9977,14,9979,9980,14,9982,9985,14,9987,9988,14,9992,9996,14,9998,9998,14,10000,10001,14,10004,10004,14,10013,10013,14,10024,10024,14,10052,10052,14,10060,10060,14,10067,10069,14,10083,10083,14,10085,10087,14,10145,10145,14,10175,10175,14,11013,11015,14,11088,11088,14,11503,11505,5,11744,11775,5,12334,12335,5,12349,12349,14,12951,12951,14,42607,42607,5,42612,42621,5,42736,42737,5,43014,43014,5,43043,43044,7,43047,43047,7,43136,43137,7,43204,43205,5,43263,43263,5,43335,43345,5,43360,43388,8,43395,43395,7,43444,43445,7,43450,43451,7,43454,43456,7,43561,43566,5,43569,43570,5,43573,43574,5,43596,43596,5,43644,43644,5,43698,43700,5,43710,43711,5,43755,43755,7,43758,43759,7,43766,43766,5,44005,44005,5,44008,44008,5,44012,44012,7,44032,44032,11,44060,44060,11,44088,44088,11,44116,44116,11,44144,44144,11,44172,44172,11,44200,44200,11,44228,44228,11,44256,44256,11,44284,44284,11,44312,44312,11,44340,44340,11,44368,44368,11,44396,44396,11,44424,44424,11,44452,44452,11,44480,44480,11,44508,44508,11,44536,44536,11,44564,44564,11,44592,44592,11,44620,44620,11,44648,44648,11,44676,44676,11,44704,44704,11,44732,44732,11,44760,44760,11,44788,44788,11,44816,44816,11,44844,44844,11,44872,44872,11,44900,44900,11,44928,44928,11,44956,44956,11,44984,44984,11,45012,45012,11,45040,45040,11,45068,45068,11,45096,45096,11,45124,45124,11,45152,45152,11,45180,45180,11,45208,45208,11,45236,45236,11,45264,45264,11,45292,45292,11,45320,45320,11,45348,45348,11,45376,45376,11,45404,45404,11,45432,45432,11,45460,45460,11,45488,45488,11,45516,45516,11,45544,45544,11,45572,45572,11,45600,45600,11,45628,45628,11,45656,45656,11,45684,45684,11,45712,45712,11,45740,45740,11,45768,45768,11,45796,45796,11,45824,45824,11,45852,45852,11,45880,45880,11,45908,45908,11,45936,45936,11,45964,45964,11,45992,45992,11,46020,46020,11,46048,46048,11,46076,46076,11,46104,46104,11,46132,46132,11,46160,46160,11,46188,46188,11,46216,46216,11,46244,46244,11,46272,46272,11,46300,46300,11,46328,46328,11,46356,46356,11,46384,46384,11,46412,46412,11,46440,46440,11,46468,46468,11,46496,46496,11,46524,46524,11,46552,46552,11,46580,46580,11,46608,46608,11,46636,46636,11,46664,46664,11,46692,46692,11,46720,46720,11,46748,46748,11,46776,46776,11,46804,46804,11,46832,46832,11,46860,46860,11,46888,46888,11,46916,46916,11,46944,46944,11,46972,46972,11,47000,47000,11,47028,47028,11,47056,47056,11,47084,47084,11,47112,47112,11,47140,47140,11,47168,47168,11,47196,47196,11,47224,47224,11,47252,47252,11,47280,47280,11,47308,47308,11,47336,47336,11,47364,47364,11,47392,47392,11,47420,47420,11,47448,47448,11,47476,47476,11,47504,47504,11,47532,47532,11,47560,47560,11,47588,47588,11,47616,47616,11,47644,47644,11,47672,47672,11,47700,47700,11,47728,47728,11,47756,47756,11,47784,47784,11,47812,47812,11,47840,47840,11,47868,47868,11,47896,47896,11,47924,47924,11,47952,47952,11,47980,47980,11,48008,48008,11,48036,48036,11,48064,48064,11,48092,48092,11,48120,48120,11,48148,48148,11,48176,48176,11,48204,48204,11,48232,48232,11,48260,48260,11,48288,48288,11,48316,48316,11,48344,48344,11,48372,48372,11,48400,48400,11,48428,48428,11,48456,48456,11,48484,48484,11,48512,48512,11,48540,48540,11,48568,48568,11,48596,48596,11,48624,48624,11,48652,48652,11,48680,48680,11,48708,48708,11,48736,48736,11,48764,48764,11,48792,48792,11,48820,48820,11,48848,48848,11,48876,48876,11,48904,48904,11,48932,48932,11,48960,48960,11,48988,48988,11,49016,49016,11,49044,49044,11,49072,49072,11,49100,49100,11,49128,49128,11,49156,49156,11,49184,49184,11,49212,49212,11,49240,49240,11,49268,49268,11,49296,49296,11,49324,49324,11,49352,49352,11,49380,49380,11,49408,49408,11,49436,49436,11,49464,49464,11,49492,49492,11,49520,49520,11,49548,49548,11,49576,49576,11,49604,49604,11,49632,49632,11,49660,49660,11,49688,49688,11,49716,49716,11,49744,49744,11,49772,49772,11,49800,49800,11,49828,49828,11,49856,49856,11,49884,49884,11,49912,49912,11,49940,49940,11,49968,49968,11,49996,49996,11,50024,50024,11,50052,50052,11,50080,50080,11,50108,50108,11,50136,50136,11,50164,50164,11,50192,50192,11,50220,50220,11,50248,50248,11,50276,50276,11,50304,50304,11,50332,50332,11,50360,50360,11,50388,50388,11,50416,50416,11,50444,50444,11,50472,50472,11,50500,50500,11,50528,50528,11,50556,50556,11,50584,50584,11,50612,50612,11,50640,50640,11,50668,50668,11,50696,50696,11,50724,50724,11,50752,50752,11,50780,50780,11,50808,50808,11,50836,50836,11,50864,50864,11,50892,50892,11,50920,50920,11,50948,50948,11,50976,50976,11,51004,51004,11,51032,51032,11,51060,51060,11,51088,51088,11,51116,51116,11,51144,51144,11,51172,51172,11,51200,51200,11,51228,51228,11,51256,51256,11,51284,51284,11,51312,51312,11,51340,51340,11,51368,51368,11,51396,51396,11,51424,51424,11,51452,51452,11,51480,51480,11,51508,51508,11,51536,51536,11,51564,51564,11,51592,51592,11,51620,51620,11,51648,51648,11,51676,51676,11,51704,51704,11,51732,51732,11,51760,51760,11,51788,51788,11,51816,51816,11,51844,51844,11,51872,51872,11,51900,51900,11,51928,51928,11,51956,51956,11,51984,51984,11,52012,52012,11,52040,52040,11,52068,52068,11,52096,52096,11,52124,52124,11,52152,52152,11,52180,52180,11,52208,52208,11,52236,52236,11,52264,52264,11,52292,52292,11,52320,52320,11,52348,52348,11,52376,52376,11,52404,52404,11,52432,52432,11,52460,52460,11,52488,52488,11,52516,52516,11,52544,52544,11,52572,52572,11,52600,52600,11,52628,52628,11,52656,52656,11,52684,52684,11,52712,52712,11,52740,52740,11,52768,52768,11,52796,52796,11,52824,52824,11,52852,52852,11,52880,52880,11,52908,52908,11,52936,52936,11,52964,52964,11,52992,52992,11,53020,53020,11,53048,53048,11,53076,53076,11,53104,53104,11,53132,53132,11,53160,53160,11,53188,53188,11,53216,53216,11,53244,53244,11,53272,53272,11,53300,53300,11,53328,53328,11,53356,53356,11,53384,53384,11,53412,53412,11,53440,53440,11,53468,53468,11,53496,53496,11,53524,53524,11,53552,53552,11,53580,53580,11,53608,53608,11,53636,53636,11,53664,53664,11,53692,53692,11,53720,53720,11,53748,53748,11,53776,53776,11,53804,53804,11,53832,53832,11,53860,53860,11,53888,53888,11,53916,53916,11,53944,53944,11,53972,53972,11,54000,54000,11,54028,54028,11,54056,54056,11,54084,54084,11,54112,54112,11,54140,54140,11,54168,54168,11,54196,54196,11,54224,54224,11,54252,54252,11,54280,54280,11,54308,54308,11,54336,54336,11,54364,54364,11,54392,54392,11,54420,54420,11,54448,54448,11,54476,54476,11,54504,54504,11,54532,54532,11,54560,54560,11,54588,54588,11,54616,54616,11,54644,54644,11,54672,54672,11,54700,54700,11,54728,54728,11,54756,54756,11,54784,54784,11,54812,54812,11,54840,54840,11,54868,54868,11,54896,54896,11,54924,54924,11,54952,54952,11,54980,54980,11,55008,55008,11,55036,55036,11,55064,55064,11,55092,55092,11,55120,55120,11,55148,55148,11,55176,55176,11,55216,55238,9,64286,64286,5,65056,65071,5,65438,65439,5,65529,65531,4,66272,66272,5,68097,68099,5,68108,68111,5,68159,68159,5,68900,68903,5,69446,69456,5,69632,69632,7,69634,69634,7,69744,69744,5,69759,69761,5,69808,69810,7,69815,69816,7,69821,69821,1,69837,69837,1,69927,69931,5,69933,69940,5,70003,70003,5,70018,70018,7,70070,70078,5,70082,70083,1,70094,70094,7,70188,70190,7,70194,70195,7,70197,70197,7,70206,70206,5,70368,70370,7,70400,70401,5,70459,70460,5,70463,70463,7,70465,70468,7,70475,70477,7,70498,70499,7,70512,70516,5,70712,70719,5,70722,70724,5,70726,70726,5,70832,70832,5,70835,70840,5,70842,70842,5,70845,70845,5,70847,70848,5,70850,70851,5,71088,71089,7,71096,71099,7,71102,71102,7,71132,71133,5,71219,71226,5,71229,71229,5,71231,71232,5,71340,71340,7,71342,71343,7,71350,71350,7,71453,71455,5,71462,71462,7,71724,71726,7,71736,71736,7,71984,71984,5,71991,71992,7,71997,71997,7,71999,71999,1,72001,72001,1,72003,72003,5,72148,72151,5,72156,72159,7,72164,72164,7,72243,72248,5,72250,72250,1,72263,72263,5,72279,72280,7,72324,72329,1,72343,72343,7,72751,72751,7,72760,72765,5,72767,72767,5,72873,72873,7,72881,72881,7,72884,72884,7,73009,73014,5,73020,73021,5,73030,73030,1,73098,73102,7,73107,73108,7,73110,73110,7,73459,73460,5,78896,78904,4,92976,92982,5,94033,94087,7,94180,94180,5,113821,113822,5,118528,118573,5,119141,119141,5,119143,119145,5,119150,119154,5,119163,119170,5,119210,119213,5,121344,121398,5,121461,121461,5,121499,121503,5,122880,122886,5,122907,122913,5,122918,122922,5,123566,123566,5,125136,125142,5,126976,126979,14,126981,127182,14,127184,127231,14,127279,127279,14,127344,127345,14,127374,127374,14,127405,127461,14,127489,127490,14,127514,127514,14,127538,127546,14,127561,127567,14,127570,127743,14,127757,127758,14,127760,127760,14,127762,127762,14,127766,127768,14,127770,127770,14,127772,127772,14,127775,127776,14,127778,127779,14,127789,127791,14,127794,127795,14,127798,127798,14,127819,127819,14,127824,127824,14,127868,127868,14,127870,127871,14,127892,127893,14,127896,127896,14,127900,127901,14,127904,127940,14,127942,127942,14,127944,127944,14,127946,127946,14,127951,127955,14,127968,127971,14,127973,127984,14,127987,127987,14,127989,127989,14,127991,127991,14,127995,127999,5,128008,128008,14,128012,128014,14,128017,128018,14,128020,128020,14,128022,128022,14,128042,128042,14,128063,128063,14,128065,128065,14,128101,128101,14,128108,128109,14,128173,128173,14,128182,128183,14,128236,128237,14,128239,128239,14,128245,128245,14,128248,128248,14,128253,128253,14,128255,128258,14,128260,128263,14,128265,128265,14,128277,128277,14,128300,128301,14,128326,128328,14,128331,128334,14,128336,128347,14,128360,128366,14,128369,128370,14,128378,128378,14,128391,128391,14,128394,128397,14,128400,128400,14,128405,128406,14,128420,128420,14,128422,128423,14,128425,128432,14,128435,128443,14,128445,128449,14,128453,128464,14,128468,128475,14,128479,128480,14,128482,128482,14,128484,128487,14,128489,128494,14,128496,128498,14,128500,128505,14,128507,128511,14,128513,128518,14,128521,128525,14,128527,128527,14,128529,128529,14,128533,128533,14,128535,128535,14,128537,128537,14]")}var Dc;(function(e){e[e.zwj=8205]="zwj",e[e.emojiVariantSelector=65039]="emojiVariantSelector",e[e.enclosingKeyCap=8419]="enclosingKeyCap",e[e.space=32]="space"})(Dc||(Dc={}));var zi=class e{static{this.ambiguousCharacterData=new fr(()=>JSON.parse('{"_common":[8232,32,8233,32,5760,32,8192,32,8193,32,8194,32,8195,32,8196,32,8197,32,8198,32,8200,32,8201,32,8202,32,8287,32,8199,32,8239,32,2042,95,65101,95,65102,95,65103,95,8208,45,8209,45,8210,45,65112,45,1748,45,8259,45,727,45,8722,45,10134,45,11450,45,1549,44,1643,44,184,44,42233,44,894,59,2307,58,2691,58,1417,58,1795,58,1796,58,5868,58,65072,58,6147,58,6153,58,8282,58,1475,58,760,58,42889,58,8758,58,720,58,42237,58,451,33,11601,33,660,63,577,63,2429,63,5038,63,42731,63,119149,46,8228,46,1793,46,1794,46,42510,46,68176,46,1632,46,1776,46,42232,46,1373,96,65287,96,8219,96,1523,96,8242,96,1370,96,8175,96,65344,96,900,96,8189,96,8125,96,8127,96,8190,96,697,96,884,96,712,96,714,96,715,96,756,96,699,96,701,96,700,96,702,96,42892,96,1497,96,2036,96,2037,96,5194,96,5836,96,94033,96,94034,96,65339,91,10088,40,10098,40,12308,40,64830,40,65341,93,10089,41,10099,41,12309,41,64831,41,10100,123,119060,123,10101,125,65342,94,8270,42,1645,42,8727,42,66335,42,5941,47,8257,47,8725,47,8260,47,9585,47,10187,47,10744,47,119354,47,12755,47,12339,47,11462,47,20031,47,12035,47,65340,92,65128,92,8726,92,10189,92,10741,92,10745,92,119311,92,119355,92,12756,92,20022,92,12034,92,42872,38,708,94,710,94,5869,43,10133,43,66203,43,8249,60,10094,60,706,60,119350,60,5176,60,5810,60,5120,61,11840,61,12448,61,42239,61,8250,62,10095,62,707,62,119351,62,5171,62,94015,62,8275,126,732,126,8128,126,8764,126,65372,124,65293,45,118002,50,120784,50,120794,50,120804,50,120814,50,120824,50,130034,50,42842,50,423,50,1000,50,42564,50,5311,50,42735,50,119302,51,118003,51,120785,51,120795,51,120805,51,120815,51,120825,51,130035,51,42923,51,540,51,439,51,42858,51,11468,51,1248,51,94011,51,71882,51,118004,52,120786,52,120796,52,120806,52,120816,52,120826,52,130036,52,5070,52,71855,52,118005,53,120787,53,120797,53,120807,53,120817,53,120827,53,130037,53,444,53,71867,53,118006,54,120788,54,120798,54,120808,54,120818,54,120828,54,130038,54,11474,54,5102,54,71893,54,119314,55,118007,55,120789,55,120799,55,120809,55,120819,55,120829,55,130039,55,66770,55,71878,55,2819,56,2538,56,2666,56,125131,56,118008,56,120790,56,120800,56,120810,56,120820,56,120830,56,130040,56,547,56,546,56,66330,56,2663,57,2920,57,2541,57,3437,57,118009,57,120791,57,120801,57,120811,57,120821,57,120831,57,130041,57,42862,57,11466,57,71884,57,71852,57,71894,57,9082,97,65345,97,119834,97,119886,97,119938,97,119990,97,120042,97,120094,97,120146,97,120198,97,120250,97,120302,97,120354,97,120406,97,120458,97,593,97,945,97,120514,97,120572,97,120630,97,120688,97,120746,97,65313,65,117974,65,119808,65,119860,65,119912,65,119964,65,120016,65,120068,65,120120,65,120172,65,120224,65,120276,65,120328,65,120380,65,120432,65,913,65,120488,65,120546,65,120604,65,120662,65,120720,65,5034,65,5573,65,42222,65,94016,65,66208,65,119835,98,119887,98,119939,98,119991,98,120043,98,120095,98,120147,98,120199,98,120251,98,120303,98,120355,98,120407,98,120459,98,388,98,5071,98,5234,98,5551,98,65314,66,8492,66,117975,66,119809,66,119861,66,119913,66,120017,66,120069,66,120121,66,120173,66,120225,66,120277,66,120329,66,120381,66,120433,66,42932,66,914,66,120489,66,120547,66,120605,66,120663,66,120721,66,5108,66,5623,66,42192,66,66178,66,66209,66,66305,66,65347,99,8573,99,119836,99,119888,99,119940,99,119992,99,120044,99,120096,99,120148,99,120200,99,120252,99,120304,99,120356,99,120408,99,120460,99,7428,99,1010,99,11429,99,43951,99,66621,99,128844,67,71913,67,71922,67,65315,67,8557,67,8450,67,8493,67,117976,67,119810,67,119862,67,119914,67,119966,67,120018,67,120174,67,120226,67,120278,67,120330,67,120382,67,120434,67,1017,67,11428,67,5087,67,42202,67,66210,67,66306,67,66581,67,66844,67,8574,100,8518,100,119837,100,119889,100,119941,100,119993,100,120045,100,120097,100,120149,100,120201,100,120253,100,120305,100,120357,100,120409,100,120461,100,1281,100,5095,100,5231,100,42194,100,8558,68,8517,68,117977,68,119811,68,119863,68,119915,68,119967,68,120019,68,120071,68,120123,68,120175,68,120227,68,120279,68,120331,68,120383,68,120435,68,5024,68,5598,68,5610,68,42195,68,8494,101,65349,101,8495,101,8519,101,119838,101,119890,101,119942,101,120046,101,120098,101,120150,101,120202,101,120254,101,120306,101,120358,101,120410,101,120462,101,43826,101,1213,101,8959,69,65317,69,8496,69,117978,69,119812,69,119864,69,119916,69,120020,69,120072,69,120124,69,120176,69,120228,69,120280,69,120332,69,120384,69,120436,69,917,69,120492,69,120550,69,120608,69,120666,69,120724,69,11577,69,5036,69,42224,69,71846,69,71854,69,66182,69,119839,102,119891,102,119943,102,119995,102,120047,102,120099,102,120151,102,120203,102,120255,102,120307,102,120359,102,120411,102,120463,102,43829,102,42905,102,383,102,7837,102,1412,102,119315,70,8497,70,117979,70,119813,70,119865,70,119917,70,120021,70,120073,70,120125,70,120177,70,120229,70,120281,70,120333,70,120385,70,120437,70,42904,70,988,70,120778,70,5556,70,42205,70,71874,70,71842,70,66183,70,66213,70,66853,70,65351,103,8458,103,119840,103,119892,103,119944,103,120048,103,120100,103,120152,103,120204,103,120256,103,120308,103,120360,103,120412,103,120464,103,609,103,7555,103,397,103,1409,103,117980,71,119814,71,119866,71,119918,71,119970,71,120022,71,120074,71,120126,71,120178,71,120230,71,120282,71,120334,71,120386,71,120438,71,1292,71,5056,71,5107,71,42198,71,65352,104,8462,104,119841,104,119945,104,119997,104,120049,104,120101,104,120153,104,120205,104,120257,104,120309,104,120361,104,120413,104,120465,104,1211,104,1392,104,5058,104,65320,72,8459,72,8460,72,8461,72,117981,72,119815,72,119867,72,119919,72,120023,72,120179,72,120231,72,120283,72,120335,72,120387,72,120439,72,919,72,120494,72,120552,72,120610,72,120668,72,120726,72,11406,72,5051,72,5500,72,42215,72,66255,72,731,105,9075,105,65353,105,8560,105,8505,105,8520,105,119842,105,119894,105,119946,105,119998,105,120050,105,120102,105,120154,105,120206,105,120258,105,120310,105,120362,105,120414,105,120466,105,120484,105,618,105,617,105,953,105,8126,105,890,105,120522,105,120580,105,120638,105,120696,105,120754,105,1110,105,42567,105,1231,105,43893,105,5029,105,71875,105,65354,106,8521,106,119843,106,119895,106,119947,106,119999,106,120051,106,120103,106,120155,106,120207,106,120259,106,120311,106,120363,106,120415,106,120467,106,1011,106,1112,106,65322,74,117983,74,119817,74,119869,74,119921,74,119973,74,120025,74,120077,74,120129,74,120181,74,120233,74,120285,74,120337,74,120389,74,120441,74,42930,74,895,74,1032,74,5035,74,5261,74,42201,74,119844,107,119896,107,119948,107,120000,107,120052,107,120104,107,120156,107,120208,107,120260,107,120312,107,120364,107,120416,107,120468,107,8490,75,65323,75,117984,75,119818,75,119870,75,119922,75,119974,75,120026,75,120078,75,120130,75,120182,75,120234,75,120286,75,120338,75,120390,75,120442,75,922,75,120497,75,120555,75,120613,75,120671,75,120729,75,11412,75,5094,75,5845,75,42199,75,66840,75,1472,108,8739,73,9213,73,65512,73,1633,108,1777,73,66336,108,125127,108,118001,108,120783,73,120793,73,120803,73,120813,73,120823,73,130033,73,65321,73,8544,73,8464,73,8465,73,117982,108,119816,73,119868,73,119920,73,120024,73,120128,73,120180,73,120232,73,120284,73,120336,73,120388,73,120440,73,65356,108,8572,73,8467,108,119845,108,119897,108,119949,108,120001,108,120053,108,120105,73,120157,73,120209,73,120261,73,120313,73,120365,73,120417,73,120469,73,448,73,120496,73,120554,73,120612,73,120670,73,120728,73,11410,73,1030,73,1216,73,1493,108,1503,108,1575,108,126464,108,126592,108,65166,108,65165,108,1994,108,11599,73,5825,73,42226,73,93992,73,66186,124,66313,124,119338,76,8556,76,8466,76,117985,76,119819,76,119871,76,119923,76,120027,76,120079,76,120131,76,120183,76,120235,76,120287,76,120339,76,120391,76,120443,76,11472,76,5086,76,5290,76,42209,76,93974,76,71843,76,71858,76,66587,76,66854,76,65325,77,8559,77,8499,77,117986,77,119820,77,119872,77,119924,77,120028,77,120080,77,120132,77,120184,77,120236,77,120288,77,120340,77,120392,77,120444,77,924,77,120499,77,120557,77,120615,77,120673,77,120731,77,1018,77,11416,77,5047,77,5616,77,5846,77,42207,77,66224,77,66321,77,119847,110,119899,110,119951,110,120003,110,120055,110,120107,110,120159,110,120211,110,120263,110,120315,110,120367,110,120419,110,120471,110,1400,110,1404,110,65326,78,8469,78,117987,78,119821,78,119873,78,119925,78,119977,78,120029,78,120081,78,120185,78,120237,78,120289,78,120341,78,120393,78,120445,78,925,78,120500,78,120558,78,120616,78,120674,78,120732,78,11418,78,42208,78,66835,78,3074,111,3202,111,3330,111,3458,111,2406,111,2662,111,2790,111,3046,111,3174,111,3302,111,3430,111,3664,111,3792,111,4160,111,1637,111,1781,111,65359,111,8500,111,119848,111,119900,111,119952,111,120056,111,120108,111,120160,111,120212,111,120264,111,120316,111,120368,111,120420,111,120472,111,7439,111,7441,111,43837,111,959,111,120528,111,120586,111,120644,111,120702,111,120760,111,963,111,120532,111,120590,111,120648,111,120706,111,120764,111,11423,111,4351,111,1413,111,1505,111,1607,111,126500,111,126564,111,126596,111,65259,111,65260,111,65258,111,65257,111,1726,111,64428,111,64429,111,64427,111,64426,111,1729,111,64424,111,64425,111,64423,111,64422,111,1749,111,3360,111,4125,111,66794,111,71880,111,71895,111,66604,111,1984,79,2534,79,2918,79,12295,79,70864,79,71904,79,118000,79,120782,79,120792,79,120802,79,120812,79,120822,79,130032,79,65327,79,117988,79,119822,79,119874,79,119926,79,119978,79,120030,79,120082,79,120134,79,120186,79,120238,79,120290,79,120342,79,120394,79,120446,79,927,79,120502,79,120560,79,120618,79,120676,79,120734,79,11422,79,1365,79,11604,79,4816,79,2848,79,66754,79,42227,79,71861,79,66194,79,66219,79,66564,79,66838,79,9076,112,65360,112,119849,112,119901,112,119953,112,120005,112,120057,112,120109,112,120161,112,120213,112,120265,112,120317,112,120369,112,120421,112,120473,112,961,112,120530,112,120544,112,120588,112,120602,112,120646,112,120660,112,120704,112,120718,112,120762,112,120776,112,11427,112,65328,80,8473,80,117989,80,119823,80,119875,80,119927,80,119979,80,120031,80,120083,80,120187,80,120239,80,120291,80,120343,80,120395,80,120447,80,929,80,120504,80,120562,80,120620,80,120678,80,120736,80,11426,80,5090,80,5229,80,42193,80,66197,80,119850,113,119902,113,119954,113,120006,113,120058,113,120110,113,120162,113,120214,113,120266,113,120318,113,120370,113,120422,113,120474,113,1307,113,1379,113,1382,113,8474,81,117990,81,119824,81,119876,81,119928,81,119980,81,120032,81,120084,81,120188,81,120240,81,120292,81,120344,81,120396,81,120448,81,11605,81,119851,114,119903,114,119955,114,120007,114,120059,114,120111,114,120163,114,120215,114,120267,114,120319,114,120371,114,120423,114,120475,114,43847,114,43848,114,7462,114,11397,114,43905,114,119318,82,8475,82,8476,82,8477,82,117991,82,119825,82,119877,82,119929,82,120033,82,120189,82,120241,82,120293,82,120345,82,120397,82,120449,82,422,82,5025,82,5074,82,66740,82,5511,82,42211,82,94005,82,65363,115,119852,115,119904,115,119956,115,120008,115,120060,115,120112,115,120164,115,120216,115,120268,115,120320,115,120372,115,120424,115,120476,115,42801,115,445,115,1109,115,43946,115,71873,115,66632,115,65331,83,117992,83,119826,83,119878,83,119930,83,119982,83,120034,83,120086,83,120138,83,120190,83,120242,83,120294,83,120346,83,120398,83,120450,83,1029,83,1359,83,5077,83,5082,83,42210,83,94010,83,66198,83,66592,83,119853,116,119905,116,119957,116,120009,116,120061,116,120113,116,120165,116,120217,116,120269,116,120321,116,120373,116,120425,116,120477,116,8868,84,10201,84,128872,84,65332,84,117993,84,119827,84,119879,84,119931,84,119983,84,120035,84,120087,84,120139,84,120191,84,120243,84,120295,84,120347,84,120399,84,120451,84,932,84,120507,84,120565,84,120623,84,120681,84,120739,84,11430,84,5026,84,42196,84,93962,84,71868,84,66199,84,66225,84,66325,84,119854,117,119906,117,119958,117,120010,117,120062,117,120114,117,120166,117,120218,117,120270,117,120322,117,120374,117,120426,117,120478,117,42911,117,7452,117,43854,117,43858,117,651,117,965,117,120534,117,120592,117,120650,117,120708,117,120766,117,1405,117,66806,117,71896,117,8746,85,8899,85,117994,85,119828,85,119880,85,119932,85,119984,85,120036,85,120088,85,120140,85,120192,85,120244,85,120296,85,120348,85,120400,85,120452,85,1357,85,4608,85,66766,85,5196,85,42228,85,94018,85,71864,85,8744,118,8897,118,65366,118,8564,118,119855,118,119907,118,119959,118,120011,118,120063,118,120115,118,120167,118,120219,118,120271,118,120323,118,120375,118,120427,118,120479,118,7456,118,957,118,120526,118,120584,118,120642,118,120700,118,120758,118,1141,118,1496,118,71430,118,43945,118,71872,118,119309,86,1639,86,1783,86,8548,86,117995,86,119829,86,119881,86,119933,86,119985,86,120037,86,120089,86,120141,86,120193,86,120245,86,120297,86,120349,86,120401,86,120453,86,1140,86,11576,86,5081,86,5167,86,42719,86,42214,86,93960,86,71840,86,66845,86,623,119,119856,119,119908,119,119960,119,120012,119,120064,119,120116,119,120168,119,120220,119,120272,119,120324,119,120376,119,120428,119,120480,119,7457,119,1121,119,1309,119,1377,119,71434,119,71438,119,71439,119,43907,119,71910,87,71919,87,117996,87,119830,87,119882,87,119934,87,119986,87,120038,87,120090,87,120142,87,120194,87,120246,87,120298,87,120350,87,120402,87,120454,87,1308,87,5043,87,5076,87,42218,87,5742,120,10539,120,10540,120,10799,120,65368,120,8569,120,119857,120,119909,120,119961,120,120013,120,120065,120,120117,120,120169,120,120221,120,120273,120,120325,120,120377,120,120429,120,120481,120,5441,120,5501,120,5741,88,9587,88,66338,88,71916,88,65336,88,8553,88,117997,88,119831,88,119883,88,119935,88,119987,88,120039,88,120091,88,120143,88,120195,88,120247,88,120299,88,120351,88,120403,88,120455,88,42931,88,935,88,120510,88,120568,88,120626,88,120684,88,120742,88,11436,88,11613,88,5815,88,42219,88,66192,88,66228,88,66327,88,66855,88,611,121,7564,121,65369,121,119858,121,119910,121,119962,121,120014,121,120066,121,120118,121,120170,121,120222,121,120274,121,120326,121,120378,121,120430,121,120482,121,655,121,7935,121,43866,121,947,121,8509,121,120516,121,120574,121,120632,121,120690,121,120748,121,1199,121,4327,121,71900,121,65337,89,117998,89,119832,89,119884,89,119936,89,119988,89,120040,89,120092,89,120144,89,120196,89,120248,89,120300,89,120352,89,120404,89,120456,89,933,89,978,89,120508,89,120566,89,120624,89,120682,89,120740,89,11432,89,1198,89,5033,89,5053,89,42220,89,94019,89,71844,89,66226,89,119859,122,119911,122,119963,122,120015,122,120067,122,120119,122,120171,122,120223,122,120275,122,120327,122,120379,122,120431,122,120483,122,7458,122,43923,122,71876,122,71909,90,66293,90,65338,90,8484,90,8488,90,117999,90,119833,90,119885,90,119937,90,119989,90,120041,90,120197,90,120249,90,120301,90,120353,90,120405,90,120457,90,918,90,120493,90,120551,90,120609,90,120667,90,120725,90,5059,90,42204,90,71849,90,65282,34,65283,35,65284,36,65285,37,65286,38,65290,42,65291,43,65294,46,65295,47,65296,48,65298,50,65299,51,65300,52,65301,53,65302,54,65303,55,65304,56,65305,57,65308,60,65309,61,65310,62,65312,64,65316,68,65318,70,65319,71,65324,76,65329,81,65330,82,65333,85,65334,86,65335,87,65343,95,65346,98,65348,100,65350,102,65355,107,65357,109,65358,110,65361,113,65362,114,65364,116,65365,117,65367,119,65370,122,65371,123,65373,125,119846,109],"_default":[160,32,8211,45,65374,126,8218,44,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65288,40,65289,41,65292,44,65297,49,65307,59,65311,63],"cs":[65374,126,8218,44,65306,58,65281,33,8216,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,1093,120,1061,88,1091,121,1059,89,65288,40,65289,41,65292,44,65297,49,65307,59,65311,63],"de":[65374,126,65306,58,65281,33,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,1093,120,1061,88,1091,121,1059,89,65288,40,65289,41,65292,44,65297,49,65307,59,65311,63],"es":[8211,45,65374,126,8218,44,65306,58,65281,33,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65288,40,65289,41,65292,44,65297,49,65307,59,65311,63],"fr":[65374,126,8218,44,65306,58,65281,33,8216,96,8245,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65288,40,65289,41,65292,44,65297,49,65307,59,65311,63],"it":[160,32,8211,45,65374,126,8218,44,65306,58,65281,33,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65288,40,65289,41,65292,44,65297,49,65307,59,65311,63],"ja":[8211,45,8218,44,65281,33,8216,96,8245,96,180,96,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65292,44,65297,49,65307,59],"ko":[8211,45,65374,126,8218,44,65306,58,65281,33,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65288,40,65289,41,65292,44,65297,49,65307,59,65311,63],"pl":[65374,126,65306,58,65281,33,8216,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65288,40,65289,41,65292,44,65297,49,65307,59,65311,63],"pt-BR":[65374,126,8218,44,65306,58,65281,33,8216,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65288,40,65289,41,65292,44,65297,49,65307,59,65311,63],"qps-ploc":[160,32,8211,45,65374,126,8218,44,65306,58,65281,33,8216,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65288,40,65289,41,65292,44,65297,49,65307,59,65311,63],"ru":[65374,126,8218,44,65306,58,65281,33,8216,96,8245,96,180,96,12494,47,305,105,921,73,1009,112,215,120,65288,40,65289,41,65292,44,65297,49,65307,59,65311,63],"tr":[160,32,8211,45,65374,126,8218,44,65306,58,65281,33,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65288,40,65289,41,65292,44,65297,49,65307,59,65311,63],"zh-hans":[160,32,65374,126,8218,44,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65297,49],"zh-hant":[8211,45,65374,126,8218,44,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89]}'))}static{this.cache=new Aa({getCacheKey:JSON.stringify},t=>{function n(c){let f=new Map;for(let d=0;d<c.length;d+=2)f.set(c[d],c[d+1]);return f}function r(c,f){let d=new Map(c);for(let[m,g]of f)d.set(m,g);return d}function i(c,f){if(!c)return f;let d=new Map;for(let[m,g]of c)f.has(m)&&d.set(m,g);return d}let s=this.ambiguousCharacterData.value,o=t.filter(c=>!c.startsWith("_")&&c in s);o.length===0&&(o=["_default"]);let a;for(let c of o){let f=n(s[c]);a=i(a,f)}let u=n(s._common),l=r(u,a);return new e(l)})}static getInstance(t){return e.cache.get(Array.from(t))}static{this._locales=new fr(()=>Object.keys(e.ambiguousCharacterData.value).filter(t=>!t.startsWith("_")))}static getLocales(){return e._locales.value}constructor(t){this.confusableDictionary=t}isAmbiguous(t){return this.confusableDictionary.has(t)}containsAmbiguousCharacter(t){for(let n=0;n<t.length;n++){let r=t.codePointAt(n);if(typeof r=="number"&&this.isAmbiguous(r))return!0}return!1}getPrimaryConfusable(t){return this.confusableDictionary.get(t)}getConfusableCodePoints(){return new Set(this.confusableDictionary.keys())}},Qi=class e{static getRawData(){return JSON.parse('{"_common":[11,12,13,127,847,1564,4447,4448,6068,6069,6155,6156,6157,6158,7355,7356,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8204,8205,8206,8207,8234,8235,8236,8237,8238,8239,8287,8288,8289,8290,8291,8292,8293,8294,8295,8296,8297,8298,8299,8300,8301,8302,8303,10240,12644,65024,65025,65026,65027,65028,65029,65030,65031,65032,65033,65034,65035,65036,65037,65038,65039,65279,65440,65520,65521,65522,65523,65524,65525,65526,65527,65528,65532,78844,119155,119156,119157,119158,119159,119160,119161,119162,917504,917505,917506,917507,917508,917509,917510,917511,917512,917513,917514,917515,917516,917517,917518,917519,917520,917521,917522,917523,917524,917525,917526,917527,917528,917529,917530,917531,917532,917533,917534,917535,917536,917537,917538,917539,917540,917541,917542,917543,917544,917545,917546,917547,917548,917549,917550,917551,917552,917553,917554,917555,917556,917557,917558,917559,917560,917561,917562,917563,917564,917565,917566,917567,917568,917569,917570,917571,917572,917573,917574,917575,917576,917577,917578,917579,917580,917581,917582,917583,917584,917585,917586,917587,917588,917589,917590,917591,917592,917593,917594,917595,917596,917597,917598,917599,917600,917601,917602,917603,917604,917605,917606,917607,917608,917609,917610,917611,917612,917613,917614,917615,917616,917617,917618,917619,917620,917621,917622,917623,917624,917625,917626,917627,917628,917629,917630,917631,917760,917761,917762,917763,917764,917765,917766,917767,917768,917769,917770,917771,917772,917773,917774,917775,917776,917777,917778,917779,917780,917781,917782,917783,917784,917785,917786,917787,917788,917789,917790,917791,917792,917793,917794,917795,917796,917797,917798,917799,917800,917801,917802,917803,917804,917805,917806,917807,917808,917809,917810,917811,917812,917813,917814,917815,917816,917817,917818,917819,917820,917821,917822,917823,917824,917825,917826,917827,917828,917829,917830,917831,917832,917833,917834,917835,917836,917837,917838,917839,917840,917841,917842,917843,917844,917845,917846,917847,917848,917849,917850,917851,917852,917853,917854,917855,917856,917857,917858,917859,917860,917861,917862,917863,917864,917865,917866,917867,917868,917869,917870,917871,917872,917873,917874,917875,917876,917877,917878,917879,917880,917881,917882,917883,917884,917885,917886,917887,917888,917889,917890,917891,917892,917893,917894,917895,917896,917897,917898,917899,917900,917901,917902,917903,917904,917905,917906,917907,917908,917909,917910,917911,917912,917913,917914,917915,917916,917917,917918,917919,917920,917921,917922,917923,917924,917925,917926,917927,917928,917929,917930,917931,917932,917933,917934,917935,917936,917937,917938,917939,917940,917941,917942,917943,917944,917945,917946,917947,917948,917949,917950,917951,917952,917953,917954,917955,917956,917957,917958,917959,917960,917961,917962,917963,917964,917965,917966,917967,917968,917969,917970,917971,917972,917973,917974,917975,917976,917977,917978,917979,917980,917981,917982,917983,917984,917985,917986,917987,917988,917989,917990,917991,917992,917993,917994,917995,917996,917997,917998,917999],"cs":[173,8203,12288],"de":[173,8203,12288],"es":[8203,12288],"fr":[173,8203,12288],"it":[160,173,12288],"ja":[173],"ko":[173,12288],"pl":[173,8203,12288],"pt-BR":[173,8203,12288],"qps-ploc":[160,173,8203,12288],"ru":[173,12288],"tr":[160,173,8203,12288],"zh-hans":[160,173,8203,12288],"zh-hant":[173,12288]}')}static{this._data=void 0}static getData(){return this._data||(this._data=new Set([...Object.values(e.getRawData())].flat())),this._data}static isInvisibleCharacter(t){return e.getData().has(t)}static containsInvisibleCharacter(t){for(let n=0;n<t.length;n++){let r=t.codePointAt(n);if(typeof r=="number"&&(e.isInvisibleCharacter(r)||r===Dc.space))return!0}return!1}static get codePoints(){return e.getData()}};var Tc="default",iE="$initialize";var zt;(function(e){e[e.Request=0]="Request",e[e.Reply=1]="Reply",e[e.SubscribeEvent=2]="SubscribeEvent",e[e.Event=3]="Event",e[e.UnsubscribeEvent=4]="UnsubscribeEvent"})(zt||(zt={}));var yc=class{constructor(t,n,r,i,s){this.vsWorker=t,this.req=n,this.channel=r,this.method=i,this.args=s,this.type=zt.Request}},Ia=class{constructor(t,n,r,i){this.vsWorker=t,this.seq=n,this.res=r,this.err=i,this.type=zt.Reply}},wc=class{constructor(t,n,r,i,s){this.vsWorker=t,this.req=n,this.channel=r,this.eventName=i,this.arg=s,this.type=zt.SubscribeEvent}},xc=class{constructor(t,n,r){this.vsWorker=t,this.req=n,this.event=r,this.type=zt.Event}},Lc=class{constructor(t,n){this.vsWorker=t,this.req=n,this.type=zt.UnsubscribeEvent}},Ac=class{constructor(t){this._workerId=-1,this._handler=t,this._lastSentReq=0,this._pendingReplies=Object.create(null),this._pendingEmitters=new Map,this._pendingEvents=new Map}setWorkerId(t){this._workerId=t}sendMessage(t,n,r){let i=String(++this._lastSentReq);return new Promise((s,o)=>{this._pendingReplies[i]={resolve:s,reject:o},this._send(new yc(this._workerId,i,t,n,r))})}listen(t,n,r){let i=null,s=new bt({onWillAddFirstListener:()=>{i=String(++this._lastSentReq),this._pendingEmitters.set(i,s),this._send(new wc(this._workerId,i,t,n,r))},onDidRemoveLastListener:()=>{this._pendingEmitters.delete(i),this._send(new Lc(this._workerId,i)),i=null}});return s.event}handleMessage(t){!t||!t.vsWorker||this._workerId!==-1&&t.vsWorker!==this._workerId||this._handleMessage(t)}createProxyToRemoteChannel(t,n){let r={get:(i,s)=>(typeof s=="string"&&!i[s]&&(jp(s)?i[s]=o=>this.listen(t,s,o):$p(s)?i[s]=this.listen(t,s,void 0):s.charCodeAt(0)===O.DollarSign&&(i[s]=async(...o)=>(await n?.(),this.sendMessage(t,s,o)))),i[s])};return new Proxy(Object.create(null),r)}_handleMessage(t){switch(t.type){case zt.Reply:return this._handleReplyMessage(t);case zt.Request:return this._handleRequestMessage(t);case zt.SubscribeEvent:return this._handleSubscribeEventMessage(t);case zt.Event:return this._handleEventMessage(t);case zt.UnsubscribeEvent:return this._handleUnsubscribeEventMessage(t)}}_handleReplyMessage(t){if(!this._pendingReplies[t.seq]){console.warn("Got reply to unknown seq");return}let n=this._pendingReplies[t.seq];if(delete this._pendingReplies[t.seq],t.err){let r=t.err;t.err.$isError&&(r=new Error,r.name=t.err.name,r.message=t.err.message,r.stack=t.err.stack),n.reject(r);return}n.resolve(t.res)}_handleRequestMessage(t){let n=t.req;this._handler.handleMessage(t.channel,t.method,t.args).then(i=>{this._send(new Ia(this._workerId,n,i,void 0))},i=>{i.detail instanceof Error&&(i.detail=va(i.detail)),this._send(new Ia(this._workerId,n,void 0,va(i)))})}_handleSubscribeEventMessage(t){let n=t.req,r=this._handler.handleEvent(t.channel,t.eventName,t.arg)(i=>{this._send(new xc(this._workerId,n,i))});this._pendingEvents.set(n,r)}_handleEventMessage(t){if(!this._pendingEmitters.has(t.req)){console.warn("Got event for unknown req");return}this._pendingEmitters.get(t.req).fire(t.event)}_handleUnsubscribeEventMessage(t){if(!this._pendingEvents.has(t.req)){console.warn("Got unsubscribe for unknown req");return}this._pendingEvents.get(t.req).dispose(),this._pendingEvents.delete(t.req)}_send(t){let n=[];if(t.type===zt.Request)for(let r=0;r<t.args.length;r++)t.args[r]instanceof ArrayBuffer&&n.push(t.args[r]);else t.type===zt.Reply&&t.res instanceof ArrayBuffer&&n.push(t.res);this._handler.sendMessage(t,n)}};function $p(e){return e[0]==="o"&&e[1]==="n"&&bc(e.charCodeAt(2))}function jp(e){return/^onDynamic/.test(e)&&bc(e.charCodeAt(9))}var Oa=class{constructor(t,n){this._localChannels=new Map,this._remoteChannels=new Map,this._protocol=new Ac({sendMessage:(r,i)=>{t(r,i)},handleMessage:(r,i,s)=>this._handleMessage(r,i,s),handleEvent:(r,i,s)=>this._handleEvent(r,i,s)}),this.requestHandler=n(this)}onmessage(t){this._protocol.handleMessage(t)}_handleMessage(t,n,r){if(t===Tc&&n===iE)return this.initialize(r[0]);let i=t===Tc?this.requestHandler:this._localChannels.get(t);if(!i)return Promise.reject(new Error(`Missing channel ${t} on worker thread`));if(typeof i[n]!="function")return Promise.reject(new Error(`Missing method ${n} on worker thread channel ${t}`));try{return Promise.resolve(i[n].apply(i,r))}catch(s){return Promise.reject(s)}}_handleEvent(t,n,r){let i=t===Tc?this.requestHandler:this._localChannels.get(t);if(!i)throw new Error(`Missing channel ${t} on worker thread`);if(jp(n)){let s=i[n].call(i,r);if(typeof s!="function")throw new Error(`Missing dynamic event ${n} on request handler.`);return s}if($p(n)){let s=i[n];if(typeof s!="function")throw new Error(`Missing event ${n} on request handler.`);return s}throw new Error(`Malformed event name ${n}`)}setChannel(t,n){this._localChannels.set(t,n)}getChannel(t){if(!this._remoteChannels.has(t)){let n=this._protocol.createProxyToRemoteChannel(t);this._remoteChannels.set(t,n)}return this._remoteChannels.get(t)}async initialize(t){this._protocol.setWorkerId(t)}};var Fc=!1;function Sc(e){if(Fc)throw new Error("WebWorker already initialized!");Fc=!0;let t=new Oa(n=>globalThis.postMessage(n),n=>e(n));return globalThis.onmessage=n=>{t.onmessage(n.data)},t}function Gp(e){globalThis.onmessage=t=>{Fc||Sc(e)}}var bn=class{constructor(t,n,r,i){this.originalStart=t,this.originalLength=n,this.modifiedStart=r,this.modifiedLength=i}getOriginalEnd(){return this.originalStart+this.originalLength}getModifiedEnd(){return this.modifiedStart+this.modifiedLength}};var Do=typeof Buffer<"u",sE=new fr(()=>new Uint8Array(256)),Rc,Ic,ka=class e{static alloc(t){return Do?new e(Buffer.allocUnsafe(t)):new e(new Uint8Array(t))}static wrap(t){return Do&&!Buffer.isBuffer(t)&&(t=Buffer.from(t.buffer,t.byteOffset,t.byteLength)),new e(t)}static fromString(t,n){return!(n?.dontUseNodeBuffer||!1)&&Do?new e(Buffer.from(t)):(Rc||(Rc=new TextEncoder),new e(Rc.encode(t)))}static fromByteArray(t){let n=e.alloc(t.length);for(let r=0,i=t.length;r<i;r++)n.buffer[r]=t[r];return n}static concat(t,n){if(typeof n>"u"){n=0;for(let s=0,o=t.length;s<o;s++)n+=t[s].byteLength}let r=e.alloc(n),i=0;for(let s=0,o=t.length;s<o;s++){let a=t[s];r.set(a,i),i+=a.byteLength}return r}static isNativeBuffer(t){return Do&&Buffer.isBuffer(t)}constructor(t){this.buffer=t,this.byteLength=this.buffer.byteLength}clone(){let t=e.alloc(this.byteLength);return t.set(this),t}toString(){return Do?this.buffer.toString():(Ic||(Ic=new TextDecoder),Ic.decode(this.buffer))}slice(t,n){return new e(this.buffer.subarray(t,n))}set(t,n){if(t instanceof e)this.buffer.set(t.buffer,n);else if(t instanceof Uint8Array)this.buffer.set(t,n);else if(t instanceof ArrayBuffer)this.buffer.set(new Uint8Array(t),n);else if(ArrayBuffer.isView(t))this.buffer.set(new Uint8Array(t.buffer,t.byteOffset,t.byteLength),n);else throw new Error("Unknown argument 'array'")}readUInt32BE(t){return aE(this.buffer,t)}writeUInt32BE(t,n){uE(this.buffer,t,n)}readUInt32LE(t){return lE(this.buffer,t)}writeUInt32LE(t,n){cE(this.buffer,t,n)}readUInt8(t){return fE(this.buffer,t)}writeUInt8(t,n){hE(this.buffer,t,n)}indexOf(t,n=0){return oE(this.buffer,t instanceof e?t.buffer:t,n)}equals(t){return this===t?!0:this.byteLength!==t.byteLength?!1:this.buffer.every((n,r)=>n===t.buffer[r])}};function oE(e,t,n=0){let r=t.byteLength,i=e.byteLength;if(r===0)return 0;if(r===1)return e.indexOf(t[0]);if(r>i-n)return-1;let s=sE.value;s.fill(t.length);for(let l=0;l<t.length;l++)s[t[l]]=t.length-l-1;let o=n+t.length-1,a=o,u=-1;for(;o<i;)if(e[o]===t[a]){if(a===0){u=o;break}o--,a--}else o+=Math.max(t.length-a,s[e[o]]),a=t.length-1;return u}function aE(e,t){return e[t]*2**24+e[t+1]*2**16+e[t+2]*2**8+e[t+3]}function uE(e,t,n){e[n+3]=t,t=t>>>8,e[n+2]=t,t=t>>>8,e[n+1]=t,t=t>>>8,e[n]=t}function lE(e,t){return e[t+0]<<0>>>0|e[t+1]<<8>>>0|e[t+2]<<16>>>0|e[t+3]<<24>>>0}function cE(e,t,n){e[n+0]=t&255,t=t>>>8,e[n+1]=t&255,t=t>>>8,e[n+2]=t&255,t=t>>>8,e[n+3]=t&255}function fE(e,t){return e[t]}function hE(e,t,n){e[n]=t}var qp="0123456789abcdef";function Hp({buffer:e}){let t="";for(let n=0;n<e.length;n++){let r=e[n];t+=qp[r>>>4],t+=qp[r&15]}return t}function Wp(e,t){return(t<<5)-t+e|0}function Qp(e,t){t=Wp(149417,t);for(let n=0,r=e.length;n<r;n++)t=Wp(e.charCodeAt(n),t);return t}var pn;(function(e){e[e.BLOCK_SIZE=64]="BLOCK_SIZE",e[e.UNICODE_REPLACEMENT=65533]="UNICODE_REPLACEMENT"})(pn||(pn={}));function Oc(e,t,n=32){let r=n-t,i=~((1<<r)-1);return(e<<t|(i&e)>>>r)>>>0}function bo(e,t=32){return e instanceof ArrayBuffer?Hp(ka.wrap(new Uint8Array(e))):(e>>>0).toString(16).padStart(t/4,"0")}var zp=class e{static{this._bigBlock32=new DataView(new ArrayBuffer(320))}constructor(){this._h0=1732584193,this._h1=4023233417,this._h2=2562383102,this._h3=271733878,this._h4=3285377520,this._buff=new Uint8Array(pn.BLOCK_SIZE+3),this._buffDV=new DataView(this._buff.buffer),this._buffLen=0,this._totalLen=0,this._leftoverHighSurrogate=0,this._finished=!1}update(t){let n=t.length;if(n===0)return;let r=this._buff,i=this._buffLen,s=this._leftoverHighSurrogate,o,a;for(s!==0?(o=s,a=-1,s=0):(o=t.charCodeAt(0),a=0);;){let u=o;if(Xi(o))if(a+1<n){let l=t.charCodeAt(a+1);Ra(l)?(a++,u=Nc(o,l)):u=pn.UNICODE_REPLACEMENT}else{s=o;break}else Ra(o)&&(u=pn.UNICODE_REPLACEMENT);if(i=this._push(r,i,u),a++,a<n)o=t.charCodeAt(a);else break}this._buffLen=i,this._leftoverHighSurrogate=s}_push(t,n,r){return r<128?t[n++]=r:r<2048?(t[n++]=192|(r&1984)>>>6,t[n++]=128|(r&63)>>>0):r<65536?(t[n++]=224|(r&61440)>>>12,t[n++]=128|(r&4032)>>>6,t[n++]=128|(r&63)>>>0):(t[n++]=240|(r&1835008)>>>18,t[n++]=128|(r&258048)>>>12,t[n++]=128|(r&4032)>>>6,t[n++]=128|(r&63)>>>0),n>=pn.BLOCK_SIZE&&(this._step(),n-=pn.BLOCK_SIZE,this._totalLen+=pn.BLOCK_SIZE,t[0]=t[pn.BLOCK_SIZE+0],t[1]=t[pn.BLOCK_SIZE+1],t[2]=t[pn.BLOCK_SIZE+2]),n}digest(){return this._finished||(this._finished=!0,this._leftoverHighSurrogate&&(this._leftoverHighSurrogate=0,this._buffLen=this._push(this._buff,this._buffLen,pn.UNICODE_REPLACEMENT)),this._totalLen+=this._buffLen,this._wrapUp()),bo(this._h0)+bo(this._h1)+bo(this._h2)+bo(this._h3)+bo(this._h4)}_wrapUp(){this._buff[this._buffLen++]=128,this._buff.subarray(this._buffLen).fill(0),this._buffLen>56&&(this._step(),this._buff.fill(0));let t=8*this._totalLen;this._buffDV.setUint32(56,Math.floor(t/4294967296),!1),this._buffDV.setUint32(60,t%4294967296,!1),this._step()}_step(){let t=e._bigBlock32,n=this._buffDV;for(let f=0;f<64;f+=4)t.setUint32(f,n.getUint32(f,!1),!1);for(let f=64;f<320;f+=4)t.setUint32(f,Oc(t.getUint32(f-12,!1)^t.getUint32(f-32,!1)^t.getUint32(f-56,!1)^t.getUint32(f-64,!1),1),!1);let r=this._h0,i=this._h1,s=this._h2,o=this._h3,a=this._h4,u,l,c;for(let f=0;f<80;f++)f<20?(u=i&s|~i&o,l=1518500249):f<40?(u=i^s^o,l=1859775393):f<60?(u=i&s|i&o|s&o,l=2400959708):(u=i^s^o,l=3395469782),c=Oc(r,5)+u+a+l+t.getUint32(f*4,!1)&4294967295,a=o,o=s,s=Oc(i,30),i=r,r=c;this._h0=this._h0+r&4294967295,this._h1=this._h1+i&4294967295,this._h2=this._h2+s&4294967295,this._h3=this._h3+o&4294967295,this._h4=this._h4+a&4294967295}};var Ma=class{constructor(t){this.source=t}getElements(){let t=this.source,n=new Int32Array(t.length);for(let r=0,i=t.length;r<i;r++)n[r]=t.charCodeAt(r);return n}};function Yp(e,t,n){return new vo(new Ma(e),new Ma(t)).ComputeDiff(n).changes}var Or=class{static Assert(t,n){if(!t)throw new Error(n)}},kr=class{static Copy(t,n,r,i,s){for(let o=0;o<s;o++)r[i+o]=t[n+o]}static Copy2(t,n,r,i,s){for(let o=0;o<s;o++)r[i+o]=t[n+o]}},hr;(function(e){e[e.MaxDifferencesHistory=1447]="MaxDifferencesHistory"})(hr||(hr={}));var Ua=class{constructor(){this.m_changes=[],this.m_originalStart=Wt.MAX_SAFE_SMALL_INTEGER,this.m_modifiedStart=Wt.MAX_SAFE_SMALL_INTEGER,this.m_originalCount=0,this.m_modifiedCount=0}MarkNextChange(){(this.m_originalCount>0||this.m_modifiedCount>0)&&this.m_changes.push(new bn(this.m_originalStart,this.m_originalCount,this.m_modifiedStart,this.m_modifiedCount)),this.m_originalCount=0,this.m_modifiedCount=0,this.m_originalStart=Wt.MAX_SAFE_SMALL_INTEGER,this.m_modifiedStart=Wt.MAX_SAFE_SMALL_INTEGER}AddOriginalElement(t,n){this.m_originalStart=Math.min(this.m_originalStart,t),this.m_modifiedStart=Math.min(this.m_modifiedStart,n),this.m_originalCount++}AddModifiedElement(t,n){this.m_originalStart=Math.min(this.m_originalStart,t),this.m_modifiedStart=Math.min(this.m_modifiedStart,n),this.m_modifiedCount++}getChanges(){return(this.m_originalCount>0||this.m_modifiedCount>0)&&this.MarkNextChange(),this.m_changes}getReverseChanges(){return(this.m_originalCount>0||this.m_modifiedCount>0)&&this.MarkNextChange(),this.m_changes.reverse(),this.m_changes}},vo=class e{constructor(t,n,r=null){this.ContinueProcessingPredicate=r,this._originalSequence=t,this._modifiedSequence=n;let[i,s,o]=e._getElements(t),[a,u,l]=e._getElements(n);this._hasStrings=o&&l,this._originalStringElements=i,this._originalElementsOrHash=s,this._modifiedStringElements=a,this._modifiedElementsOrHash=u,this.m_forwardHistory=[],this.m_reverseHistory=[]}static _isStringArray(t){return t.length>0&&typeof t[0]=="string"}static _getElements(t){let n=t.getElements();if(e._isStringArray(n)){let r=new Int32Array(n.length);for(let i=0,s=n.length;i<s;i++)r[i]=Qp(n[i],0);return[n,r,!0]}return n instanceof Int32Array?[[],n,!1]:[[],new Int32Array(n),!1]}ElementsAreEqual(t,n){return this._originalElementsOrHash[t]!==this._modifiedElementsOrHash[n]?!1:this._hasStrings?this._originalStringElements[t]===this._modifiedStringElements[n]:!0}ElementsAreStrictEqual(t,n){if(!this.ElementsAreEqual(t,n))return!1;let r=e._getStrictElement(this._originalSequence,t),i=e._getStrictElement(this._modifiedSequence,n);return r===i}static _getStrictElement(t,n){return typeof t.getStrictElement=="function"?t.getStrictElement(n):null}OriginalElementsAreEqual(t,n){return this._originalElementsOrHash[t]!==this._originalElementsOrHash[n]?!1:this._hasStrings?this._originalStringElements[t]===this._originalStringElements[n]:!0}ModifiedElementsAreEqual(t,n){return this._modifiedElementsOrHash[t]!==this._modifiedElementsOrHash[n]?!1:this._hasStrings?this._modifiedStringElements[t]===this._modifiedStringElements[n]:!0}ComputeDiff(t){return this._ComputeDiff(0,this._originalElementsOrHash.length-1,0,this._modifiedElementsOrHash.length-1,t)}_ComputeDiff(t,n,r,i,s){let o=[!1],a=this.ComputeDiffRecursive(t,n,r,i,o);return s&&(a=this.PrettifyChanges(a)),{quitEarly:o[0],changes:a}}ComputeDiffRecursive(t,n,r,i,s){for(s[0]=!1;t<=n&&r<=i&&this.ElementsAreEqual(t,r);)t++,r++;for(;n>=t&&i>=r&&this.ElementsAreEqual(n,i);)n--,i--;if(t>n||r>i){let f;return r<=i?(Or.Assert(t===n+1,"originalStart should only be one more than originalEnd"),f=[new bn(t,0,r,i-r+1)]):t<=n?(Or.Assert(r===i+1,"modifiedStart should only be one more than modifiedEnd"),f=[new bn(t,n-t+1,r,0)]):(Or.Assert(t===n+1,"originalStart should only be one more than originalEnd"),Or.Assert(r===i+1,"modifiedStart should only be one more than modifiedEnd"),f=[]),f}let o=[0],a=[0],u=this.ComputeRecursionPoint(t,n,r,i,o,a,s),l=o[0],c=a[0];if(u!==null)return u;if(!s[0]){let f=this.ComputeDiffRecursive(t,l,r,c,s),d=[];return s[0]?d=[new bn(l+1,n-(l+1)+1,c+1,i-(c+1)+1)]:d=this.ComputeDiffRecursive(l+1,n,c+1,i,s),this.ConcatenateChanges(f,d)}return[new bn(t,n-t+1,r,i-r+1)]}WALKTRACE(t,n,r,i,s,o,a,u,l,c,f,d,m,g,_,T,A,S){let L=null,P=null,q=new Ua,Y=n,I=r,U=m[0]-T[0]-i,w=Wt.MIN_SAFE_SMALL_INTEGER,F=this.m_forwardHistory.length-1;do{let Z=U+t;Z===Y||Z<I&&l[Z-1]<l[Z+1]?(f=l[Z+1],g=f-U-i,f<w&&q.MarkNextChange(),w=f,q.AddModifiedElement(f+1,g),U=Z+1-t):(f=l[Z-1]+1,g=f-U-i,f<w&&q.MarkNextChange(),w=f-1,q.AddOriginalElement(f,g+1),U=Z-1-t),F>=0&&(l=this.m_forwardHistory[F],t=l[0],Y=1,I=l.length-1)}while(--F>=-1);if(L=q.getReverseChanges(),S[0]){let Z=m[0]+1,re=T[0]+1;if(L!==null&&L.length>0){let ne=L[L.length-1];Z=Math.max(Z,ne.getOriginalEnd()),re=Math.max(re,ne.getModifiedEnd())}P=[new bn(Z,d-Z+1,re,_-re+1)]}else{q=new Ua,Y=o,I=a,U=m[0]-T[0]-u,w=Wt.MAX_SAFE_SMALL_INTEGER,F=A?this.m_reverseHistory.length-1:this.m_reverseHistory.length-2;do{let Z=U+s;Z===Y||Z<I&&c[Z-1]>=c[Z+1]?(f=c[Z+1]-1,g=f-U-u,f>w&&q.MarkNextChange(),w=f+1,q.AddOriginalElement(f+1,g+1),U=Z+1-s):(f=c[Z-1],g=f-U-u,f>w&&q.MarkNextChange(),w=f,q.AddModifiedElement(f+1,g+1),U=Z-1-s),F>=0&&(c=this.m_reverseHistory[F],s=c[0],Y=1,I=c.length-1)}while(--F>=-1);P=q.getChanges()}return this.ConcatenateChanges(L,P)}ComputeRecursionPoint(t,n,r,i,s,o,a){let u=0,l=0,c=0,f=0,d=0,m=0;t--,r--,s[0]=0,o[0]=0,this.m_forwardHistory=[],this.m_reverseHistory=[];let g=n-t+(i-r),_=g+1,T=new Int32Array(_),A=new Int32Array(_),S=i-r,L=n-t,P=t-r,q=n-i,I=(L-S)%2===0;T[S]=t,A[L]=n,a[0]=!1;for(let U=1;U<=g/2+1;U++){let w=0,F=0;c=this.ClipDiagonalBound(S-U,U,S,_),f=this.ClipDiagonalBound(S+U,U,S,_);for(let re=c;re<=f;re+=2){re===c||re<f&&T[re-1]<T[re+1]?u=T[re+1]:u=T[re-1]+1,l=u-(re-S)-P;let ne=u;for(;u<n&&l<i&&this.ElementsAreEqual(u+1,l+1);)u++,l++;if(T[re]=u,u+l>w+F&&(w=u,F=l),!I&&Math.abs(re-L)<=U-1&&u>=A[re])return s[0]=u,o[0]=l,ne<=A[re]&&hr.MaxDifferencesHistory>0&&U<=hr.MaxDifferencesHistory+1?this.WALKTRACE(S,c,f,P,L,d,m,q,T,A,u,n,s,l,i,o,I,a):null}let Z=(w-t+(F-r)-U)/2;if(this.ContinueProcessingPredicate!==null&&!this.ContinueProcessingPredicate(w,Z))return a[0]=!0,s[0]=w,o[0]=F,Z>0&&hr.MaxDifferencesHistory>0&&U<=hr.MaxDifferencesHistory+1?this.WALKTRACE(S,c,f,P,L,d,m,q,T,A,u,n,s,l,i,o,I,a):(t++,r++,[new bn(t,n-t+1,r,i-r+1)]);d=this.ClipDiagonalBound(L-U,U,L,_),m=this.ClipDiagonalBound(L+U,U,L,_);for(let re=d;re<=m;re+=2){re===d||re<m&&A[re-1]>=A[re+1]?u=A[re+1]-1:u=A[re-1],l=u-(re-L)-q;let ne=u;for(;u>t&&l>r&&this.ElementsAreEqual(u,l);)u--,l--;if(A[re]=u,I&&Math.abs(re-S)<=U&&u<=T[re])return s[0]=u,o[0]=l,ne>=T[re]&&hr.MaxDifferencesHistory>0&&U<=hr.MaxDifferencesHistory+1?this.WALKTRACE(S,c,f,P,L,d,m,q,T,A,u,n,s,l,i,o,I,a):null}if(U<=hr.MaxDifferencesHistory){let re=new Int32Array(f-c+2);re[0]=S-c+1,kr.Copy2(T,c,re,1,f-c+1),this.m_forwardHistory.push(re),re=new Int32Array(m-d+2),re[0]=L-d+1,kr.Copy2(A,d,re,1,m-d+1),this.m_reverseHistory.push(re)}}return this.WALKTRACE(S,c,f,P,L,d,m,q,T,A,u,n,s,l,i,o,I,a)}PrettifyChanges(t){for(let n=0;n<t.length;n++){let r=t[n],i=n<t.length-1?t[n+1].originalStart:this._originalElementsOrHash.length,s=n<t.length-1?t[n+1].modifiedStart:this._modifiedElementsOrHash.length,o=r.originalLength>0,a=r.modifiedLength>0;for(;r.originalStart+r.originalLength<i&&r.modifiedStart+r.modifiedLength<s&&(!o||this.OriginalElementsAreEqual(r.originalStart,r.originalStart+r.originalLength))&&(!a||this.ModifiedElementsAreEqual(r.modifiedStart,r.modifiedStart+r.modifiedLength));){let l=this.ElementsAreStrictEqual(r.originalStart,r.modifiedStart);if(this.ElementsAreStrictEqual(r.originalStart+r.originalLength,r.modifiedStart+r.modifiedLength)&&!l)break;r.originalStart++,r.modifiedStart++}let u=[null];if(n<t.length-1&&this.ChangesOverlap(t[n],t[n+1],u)){t[n]=u[0],t.splice(n+1,1),n--;continue}}for(let n=t.length-1;n>=0;n--){let r=t[n],i=0,s=0;if(n>0){let f=t[n-1];i=f.originalStart+f.originalLength,s=f.modifiedStart+f.modifiedLength}let o=r.originalLength>0,a=r.modifiedLength>0,u=0,l=this._boundaryScore(r.originalStart,r.originalLength,r.modifiedStart,r.modifiedLength);for(let f=1;;f++){let d=r.originalStart-f,m=r.modifiedStart-f;if(d<i||m<s||o&&!this.OriginalElementsAreEqual(d,d+r.originalLength)||a&&!this.ModifiedElementsAreEqual(m,m+r.modifiedLength))break;let _=(d===i&&m===s?5:0)+this._boundaryScore(d,r.originalLength,m,r.modifiedLength);_>l&&(l=_,u=f)}r.originalStart-=u,r.modifiedStart-=u;let c=[null];if(n>0&&this.ChangesOverlap(t[n-1],t[n],c)){t[n-1]=c[0],t.splice(n,1),n++;continue}}if(this._hasStrings)for(let n=1,r=t.length;n<r;n++){let i=t[n-1],s=t[n],o=s.originalStart-i.originalStart-i.originalLength,a=i.originalStart,u=s.originalStart+s.originalLength,l=u-a,c=i.modifiedStart,f=s.modifiedStart+s.modifiedLength,d=f-c;if(o<5&&l<20&&d<20){let m=this._findBetterContiguousSequence(a,l,c,d,o);if(m){let[g,_]=m;(g!==i.originalStart+i.originalLength||_!==i.modifiedStart+i.modifiedLength)&&(i.originalLength=g-i.originalStart,i.modifiedLength=_-i.modifiedStart,s.originalStart=g+o,s.modifiedStart=_+o,s.originalLength=u-s.originalStart,s.modifiedLength=f-s.modifiedStart)}}}return t}_findBetterContiguousSequence(t,n,r,i,s){if(n<s||i<s)return null;let o=t+n-s+1,a=r+i-s+1,u=0,l=0,c=0;for(let f=t;f<o;f++)for(let d=r;d<a;d++){let m=this._contiguousSequenceScore(f,d,s);m>0&&m>u&&(u=m,l=f,c=d)}return u>0?[l,c]:null}_contiguousSequenceScore(t,n,r){let i=0;for(let s=0;s<r;s++){if(!this.ElementsAreEqual(t+s,n+s))return 0;i+=this._originalStringElements[t+s].length}return i}_OriginalIsBoundary(t){return t<=0||t>=this._originalElementsOrHash.length-1?!0:this._hasStrings&&/^\s*$/.test(this._originalStringElements[t])}_OriginalRegionIsBoundary(t,n){if(this._OriginalIsBoundary(t)||this._OriginalIsBoundary(t-1))return!0;if(n>0){let r=t+n;if(this._OriginalIsBoundary(r-1)||this._OriginalIsBoundary(r))return!0}return!1}_ModifiedIsBoundary(t){return t<=0||t>=this._modifiedElementsOrHash.length-1?!0:this._hasStrings&&/^\s*$/.test(this._modifiedStringElements[t])}_ModifiedRegionIsBoundary(t,n){if(this._ModifiedIsBoundary(t)||this._ModifiedIsBoundary(t-1))return!0;if(n>0){let r=t+n;if(this._ModifiedIsBoundary(r-1)||this._ModifiedIsBoundary(r))return!0}return!1}_boundaryScore(t,n,r,i){let s=this._OriginalRegionIsBoundary(t,n)?1:0,o=this._ModifiedRegionIsBoundary(r,i)?1:0;return s+o}ConcatenateChanges(t,n){let r=[];if(t.length===0||n.length===0)return n.length>0?n:t;if(this.ChangesOverlap(t[t.length-1],n[0],r)){let i=new Array(t.length+n.length-1);return kr.Copy(t,0,i,0,t.length-1),i[t.length-1]=r[0],kr.Copy(n,1,i,t.length,n.length-1),i}else{let i=new Array(t.length+n.length);return kr.Copy(t,0,i,0,t.length),kr.Copy(n,0,i,t.length,n.length),i}}ChangesOverlap(t,n,r){if(Or.Assert(t.originalStart<=n.originalStart,"Left change is not less than or equal to right change"),Or.Assert(t.modifiedStart<=n.modifiedStart,"Left change is not less than or equal to right change"),t.originalStart+t.originalLength>=n.originalStart||t.modifiedStart+t.modifiedLength>=n.modifiedStart){let i=t.originalStart,s=t.originalLength,o=t.modifiedStart,a=t.modifiedLength;return t.originalStart+t.originalLength>=n.originalStart&&(s=n.originalStart+n.originalLength-t.originalStart),t.modifiedStart+t.modifiedLength>=n.modifiedStart&&(a=n.modifiedStart+n.modifiedLength-t.modifiedStart),r[0]=new bn(i,s,o,a),!0}else return r[0]=null,!1}ClipDiagonalBound(t,n,r,i){if(t>=0&&t<i)return t;let s=r,o=i-r-1,a=n%2===0;if(t<0){let u=s%2===0;return a===u?0:1}else{let u=o%2===0;return a===u?i-1:i-2}}},o6=new Uint32Array(65536);var me=class e{constructor(t,n){this.lineNumber=t,this.column=n}with(t=this.lineNumber,n=this.column){return t===this.lineNumber&&n===this.column?this:new e(t,n)}delta(t=0,n=0){return this.with(Math.max(1,this.lineNumber+t),Math.max(1,this.column+n))}equals(t){return e.equals(this,t)}static equals(t,n){return!t&&!n?!0:!!t&&!!n&&t.lineNumber===n.lineNumber&&t.column===n.column}isBefore(t){return e.isBefore(this,t)}static isBefore(t,n){return t.lineNumber<n.lineNumber?!0:n.lineNumber<t.lineNumber?!1:t.column<n.column}isBeforeOrEqual(t){return e.isBeforeOrEqual(this,t)}static isBeforeOrEqual(t,n){return t.lineNumber<n.lineNumber?!0:n.lineNumber<t.lineNumber?!1:t.column<=n.column}static compare(t,n){let r=t.lineNumber|0,i=n.lineNumber|0;if(r===i){let s=t.column|0,o=n.column|0;return s-o}return r-i}clone(){return new e(this.lineNumber,this.column)}toString(){return"("+this.lineNumber+","+this.column+")"}static lift(t){return new e(t.lineNumber,t.column)}static isIPosition(t){return t&&typeof t.lineNumber=="number"&&typeof t.column=="number"}toJSON(){return{lineNumber:this.lineNumber,column:this.column}}};var oe=class e{constructor(t,n,r,i){t>r||t===r&&n>i?(this.startLineNumber=r,this.startColumn=i,this.endLineNumber=t,this.endColumn=n):(this.startLineNumber=t,this.startColumn=n,this.endLineNumber=r,this.endColumn=i)}isEmpty(){return e.isEmpty(this)}static isEmpty(t){return t.startLineNumber===t.endLineNumber&&t.startColumn===t.endColumn}containsPosition(t){return e.containsPosition(this,t)}static containsPosition(t,n){return!(n.lineNumber<t.startLineNumber||n.lineNumber>t.endLineNumber||n.lineNumber===t.startLineNumber&&n.column<t.startColumn||n.lineNumber===t.endLineNumber&&n.column>t.endColumn)}static strictContainsPosition(t,n){return!(n.lineNumber<t.startLineNumber||n.lineNumber>t.endLineNumber||n.lineNumber===t.startLineNumber&&n.column<=t.startColumn||n.lineNumber===t.endLineNumber&&n.column>=t.endColumn)}containsRange(t){return e.containsRange(this,t)}static containsRange(t,n){return!(n.startLineNumber<t.startLineNumber||n.endLineNumber<t.startLineNumber||n.startLineNumber>t.endLineNumber||n.endLineNumber>t.endLineNumber||n.startLineNumber===t.startLineNumber&&n.startColumn<t.startColumn||n.endLineNumber===t.endLineNumber&&n.endColumn>t.endColumn)}strictContainsRange(t){return e.strictContainsRange(this,t)}static strictContainsRange(t,n){return!(n.startLineNumber<t.startLineNumber||n.endLineNumber<t.startLineNumber||n.startLineNumber>t.endLineNumber||n.endLineNumber>t.endLineNumber||n.startLineNumber===t.startLineNumber&&n.startColumn<=t.startColumn||n.endLineNumber===t.endLineNumber&&n.endColumn>=t.endColumn)}plusRange(t){return e.plusRange(this,t)}static plusRange(t,n){let r,i,s,o;return n.startLineNumber<t.startLineNumber?(r=n.startLineNumber,i=n.startColumn):n.startLineNumber===t.startLineNumber?(r=n.startLineNumber,i=Math.min(n.startColumn,t.startColumn)):(r=t.startLineNumber,i=t.startColumn),n.endLineNumber>t.endLineNumber?(s=n.endLineNumber,o=n.endColumn):n.endLineNumber===t.endLineNumber?(s=n.endLineNumber,o=Math.max(n.endColumn,t.endColumn)):(s=t.endLineNumber,o=t.endColumn),new e(r,i,s,o)}intersectRanges(t){return e.intersectRanges(this,t)}static intersectRanges(t,n){let r=t.startLineNumber,i=t.startColumn,s=t.endLineNumber,o=t.endColumn,a=n.startLineNumber,u=n.startColumn,l=n.endLineNumber,c=n.endColumn;return r<a?(r=a,i=u):r===a&&(i=Math.max(i,u)),s>l?(s=l,o=c):s===l&&(o=Math.min(o,c)),r>s||r===s&&i>o?null:new e(r,i,s,o)}equalsRange(t){return e.equalsRange(this,t)}static equalsRange(t,n){return!t&&!n?!0:!!t&&!!n&&t.startLineNumber===n.startLineNumber&&t.startColumn===n.startColumn&&t.endLineNumber===n.endLineNumber&&t.endColumn===n.endColumn}getEndPosition(){return e.getEndPosition(this)}static getEndPosition(t){return new me(t.endLineNumber,t.endColumn)}getStartPosition(){return e.getStartPosition(this)}static getStartPosition(t){return new me(t.startLineNumber,t.startColumn)}toString(){return"["+this.startLineNumber+","+this.startColumn+" -> "+this.endLineNumber+","+this.endColumn+"]"}setEndPosition(t,n){return new e(this.startLineNumber,this.startColumn,t,n)}setStartPosition(t,n){return new e(t,n,this.endLineNumber,this.endColumn)}collapseToStart(){return e.collapseToStart(this)}static collapseToStart(t){return new e(t.startLineNumber,t.startColumn,t.startLineNumber,t.startColumn)}collapseToEnd(){return e.collapseToEnd(this)}static collapseToEnd(t){return new e(t.endLineNumber,t.endColumn,t.endLineNumber,t.endColumn)}delta(t){return new e(this.startLineNumber+t,this.startColumn,this.endLineNumber+t,this.endColumn)}isSingleLine(){return this.startLineNumber===this.endLineNumber}static fromPositions(t,n=t){return new e(t.lineNumber,t.column,n.lineNumber,n.column)}static lift(t){return t?new e(t.startLineNumber,t.startColumn,t.endLineNumber,t.endColumn):null}static isIRange(t){return t&&typeof t.startLineNumber=="number"&&typeof t.startColumn=="number"&&typeof t.endLineNumber=="number"&&typeof t.endColumn=="number"}static areIntersectingOrTouching(t,n){return!(t.endLineNumber<n.startLineNumber||t.endLineNumber===n.startLineNumber&&t.endColumn<n.startColumn||n.endLineNumber<t.startLineNumber||n.endLineNumber===t.startLineNumber&&n.endColumn<t.startColumn)}static areIntersecting(t,n){return!(t.endLineNumber<n.startLineNumber||t.endLineNumber===n.startLineNumber&&t.endColumn<=n.startColumn||n.endLineNumber<t.startLineNumber||n.endLineNumber===t.startLineNumber&&n.endColumn<=t.startColumn)}static areOnlyIntersecting(t,n){return!(t.endLineNumber<n.startLineNumber-1||t.endLineNumber===n.startLineNumber&&t.endColumn<n.startColumn-1||n.endLineNumber<t.startLineNumber-1||n.endLineNumber===t.startLineNumber&&n.endColumn<t.startColumn-1)}static compareRangesUsingStarts(t,n){if(t&&n){let s=t.startLineNumber|0,o=n.startLineNumber|0;if(s===o){let a=t.startColumn|0,u=n.startColumn|0;if(a===u){let l=t.endLineNumber|0,c=n.endLineNumber|0;if(l===c){let f=t.endColumn|0,d=n.endColumn|0;return f-d}return l-c}return a-u}return s-o}return(t?1:0)-(n?1:0)}static compareRangesUsingEnds(t,n){return t.endLineNumber===n.endLineNumber?t.endColumn===n.endColumn?t.startLineNumber===n.startLineNumber?t.startColumn-n.startColumn:t.startLineNumber-n.startLineNumber:t.endColumn-n.endColumn:t.endLineNumber-n.endLineNumber}static spansMultipleLines(t){return t.endLineNumber>t.startLineNumber}toJSON(){return this}};var No=class e{constructor(t){let n=Ec(t);this._defaultValue=n,this._asciiMap=e._createAsciiMap(n),this._map=new Map}static _createAsciiMap(t){let n=new Uint8Array(256);return n.fill(t),n}set(t,n){let r=Ec(n);t>=0&&t<256?this._asciiMap[t]=r:this._map.set(t,r)}get(t){return t>=0&&t<256?this._asciiMap[t]:this._map.get(t)||this._defaultValue}clear(){this._asciiMap.fill(this._defaultValue),this._map.clear()}},Xp;(function(e){e[e.False=0]="False",e[e.True=1]="True"})(Xp||(Xp={}));var pe;(function(e){e[e.Invalid=0]="Invalid",e[e.Start=1]="Start",e[e.H=2]="H",e[e.HT=3]="HT",e[e.HTT=4]="HTT",e[e.HTTP=5]="HTTP",e[e.F=6]="F",e[e.FI=7]="FI",e[e.FIL=8]="FIL",e[e.BeforeColon=9]="BeforeColon",e[e.AfterColon=10]="AfterColon",e[e.AlmostThere=11]="AlmostThere",e[e.End=12]="End",e[e.Accept=13]="Accept",e[e.LastKnownState=14]="LastKnownState"})(pe||(pe={}));var Mc=class{constructor(t,n,r){let i=new Uint8Array(t*n);for(let s=0,o=t*n;s<o;s++)i[s]=r;this._data=i,this.rows=t,this.cols=n}get(t,n){return this._data[t*this.cols+n]}set(t,n,r){this._data[t*this.cols+n]=r}},Uc=class{constructor(t){let n=0,r=pe.Invalid;for(let s=0,o=t.length;s<o;s++){let[a,u,l]=t[s];u>n&&(n=u),a>r&&(r=a),l>r&&(r=l)}n++,r++;let i=new Mc(r,n,pe.Invalid);for(let s=0,o=t.length;s<o;s++){let[a,u,l]=t[s];i.set(a,u,l)}this._states=i,this._maxCharCode=n}nextState(t,n){return n<0||n>=this._maxCharCode?pe.Invalid:this._states.get(t,n)}},kc=null;function pE(){return kc===null&&(kc=new Uc([[pe.Start,O.h,pe.H],[pe.Start,O.H,pe.H],[pe.Start,O.f,pe.F],[pe.Start,O.F,pe.F],[pe.H,O.t,pe.HT],[pe.H,O.T,pe.HT],[pe.HT,O.t,pe.HTT],[pe.HT,O.T,pe.HTT],[pe.HTT,O.p,pe.HTTP],[pe.HTT,O.P,pe.HTTP],[pe.HTTP,O.s,pe.BeforeColon],[pe.HTTP,O.S,pe.BeforeColon],[pe.HTTP,O.Colon,pe.AfterColon],[pe.F,O.i,pe.FI],[pe.F,O.I,pe.FI],[pe.FI,O.l,pe.FIL],[pe.FI,O.L,pe.FIL],[pe.FIL,O.e,pe.BeforeColon],[pe.FIL,O.E,pe.BeforeColon],[pe.BeforeColon,O.Colon,pe.AfterColon],[pe.AfterColon,O.Slash,pe.AlmostThere],[pe.AlmostThere,O.Slash,pe.End]])),kc}var Ge;(function(e){e[e.None=0]="None",e[e.ForceTermination=1]="ForceTermination",e[e.CannotEndIn=2]="CannotEndIn"})(Ge||(Ge={}));var To=null;function dE(){if(To===null){To=new No(Ge.None);let e=` <>'"\u3001\u3002\uFF61\uFF64\uFF0C\uFF0E\uFF1A\uFF1B\u2018\u3008\u300C\u300E\u3014\uFF08\uFF3B\uFF5B\uFF62\uFF63\uFF5D\uFF3D\uFF09\u3015\u300F\u300D\u3009\u2019\uFF40\uFF5E\u2026`;for(let n=0;n<e.length;n++)To.set(e.charCodeAt(n),Ge.ForceTermination);let t=".,;:";for(let n=0;n<t.length;n++)To.set(t.charCodeAt(n),Ge.CannotEndIn)}return To}var Pc=class e{static _createLink(t,n,r,i,s){let o=s-1;do{let a=n.charCodeAt(o);if(t.get(a)!==Ge.CannotEndIn)break;o--}while(o>i);if(i>0){let a=n.charCodeAt(i-1),u=n.charCodeAt(o);(a===O.OpenParen&&u===O.CloseParen||a===O.OpenSquareBracket&&u===O.CloseSquareBracket||a===O.OpenCurlyBrace&&u===O.CloseCurlyBrace)&&o--}return{range:{startLineNumber:r,startColumn:i+1,endLineNumber:r,endColumn:o+2},url:n.substring(i,o+1)}}static computeLinks(t,n=pE()){let r=dE(),i=[];for(let s=1,o=t.getLineCount();s<=o;s++){let a=t.getLineContent(s),u=a.length,l=0,c=0,f=0,d=pe.Start,m=!1,g=!1,_=!1,T=!1;for(;l<u;){let A=!1,S=a.charCodeAt(l);if(d===pe.Accept){let L;switch(S){case O.OpenParen:m=!0,L=Ge.None;break;case O.CloseParen:L=m?Ge.None:Ge.ForceTermination;break;case O.OpenSquareBracket:_=!0,g=!0,L=Ge.None;break;case O.CloseSquareBracket:_=!1,L=g?Ge.None:Ge.ForceTermination;break;case O.OpenCurlyBrace:T=!0,L=Ge.None;break;case O.CloseCurlyBrace:L=T?Ge.None:Ge.ForceTermination;break;case O.SingleQuote:case O.DoubleQuote:case O.BackTick:f===S?L=Ge.ForceTermination:f===O.SingleQuote||f===O.DoubleQuote||f===O.BackTick?L=Ge.None:L=Ge.ForceTermination;break;case O.Asterisk:L=f===O.Asterisk?Ge.ForceTermination:Ge.None;break;case O.Pipe:L=f===O.Pipe?Ge.ForceTermination:Ge.None;break;case O.Space:L=_?Ge.None:Ge.ForceTermination;break;default:L=r.get(S)}L===Ge.ForceTermination&&(i.push(e._createLink(r,a,s,c,l)),A=!0)}else if(d===pe.End){let L;S===O.OpenSquareBracket?(g=!0,L=Ge.None):L=r.get(S),L===Ge.ForceTermination?A=!0:d=pe.Accept}else d=n.nextState(d,S),d===pe.Invalid&&(A=!0);A&&(d=pe.Start,m=!1,g=!1,T=!1,c=l+1,f=S),l++}d===pe.Accept&&i.push(e._createLink(r,a,s,c,u))}return i}};function Jp(e){return!e||typeof e.getLineCount!="function"||typeof e.getLineContent!="function"?[]:Pc.computeLinks(e)}var Pa=class e{constructor(){this._defaultValueSet=[["true","false"],["True","False"],["Private","Public","Friend","ReadOnly","Partial","Protected","WriteOnly"],["public","protected","private"]]}static{this.INSTANCE=new e}navigateValueSet(t,n,r,i,s){if(t&&n){let o=this.doNavigateValueSet(n,s);if(o)return{range:t,value:o}}if(r&&i){let o=this.doNavigateValueSet(i,s);if(o)return{range:r,value:o}}return null}doNavigateValueSet(t,n){let r=this.numberReplace(t,n);return r!==null?r:this.textReplace(t,n)}numberReplace(t,n){let r=Math.pow(10,t.length-(t.lastIndexOf(".")+1)),i=Number(t),s=parseFloat(t);return!isNaN(i)&&!isNaN(s)&&i===s?i===0&&!n?null:(i=Math.floor(i*r),i+=n?r:-r,String(i/r)):null}textReplace(t,n){return this.valueSetsReplace(this._defaultValueSet,t,n)}valueSetsReplace(t,n,r){let i=null;for(let s=0,o=t.length;i===null&&s<o;s++)i=this.valueSetReplace(t[s],n,r);return i}valueSetReplace(t,n,r){let i=t.indexOf(n);return i>=0?(i+=r?1:-1,i<0?i=t.length-1:i%=t.length,t[i]):null}};var v;(function(e){e[e.DependsOnKbLayout=-1]="DependsOnKbLayout",e[e.Unknown=0]="Unknown",e[e.Backspace=1]="Backspace",e[e.Tab=2]="Tab",e[e.Enter=3]="Enter",e[e.Shift=4]="Shift",e[e.Ctrl=5]="Ctrl",e[e.Alt=6]="Alt",e[e.PauseBreak=7]="PauseBreak",e[e.CapsLock=8]="CapsLock",e[e.Escape=9]="Escape",e[e.Space=10]="Space",e[e.PageUp=11]="PageUp",e[e.PageDown=12]="PageDown",e[e.End=13]="End",e[e.Home=14]="Home",e[e.LeftArrow=15]="LeftArrow",e[e.UpArrow=16]="UpArrow",e[e.RightArrow=17]="RightArrow",e[e.DownArrow=18]="DownArrow",e[e.Insert=19]="Insert",e[e.Delete=20]="Delete",e[e.Digit0=21]="Digit0",e[e.Digit1=22]="Digit1",e[e.Digit2=23]="Digit2",e[e.Digit3=24]="Digit3",e[e.Digit4=25]="Digit4",e[e.Digit5=26]="Digit5",e[e.Digit6=27]="Digit6",e[e.Digit7=28]="Digit7",e[e.Digit8=29]="Digit8",e[e.Digit9=30]="Digit9",e[e.KeyA=31]="KeyA",e[e.KeyB=32]="KeyB",e[e.KeyC=33]="KeyC",e[e.KeyD=34]="KeyD",e[e.KeyE=35]="KeyE",e[e.KeyF=36]="KeyF",e[e.KeyG=37]="KeyG",e[e.KeyH=38]="KeyH",e[e.KeyI=39]="KeyI",e[e.KeyJ=40]="KeyJ",e[e.KeyK=41]="KeyK",e[e.KeyL=42]="KeyL",e[e.KeyM=43]="KeyM",e[e.KeyN=44]="KeyN",e[e.KeyO=45]="KeyO",e[e.KeyP=46]="KeyP",e[e.KeyQ=47]="KeyQ",e[e.KeyR=48]="KeyR",e[e.KeyS=49]="KeyS",e[e.KeyT=50]="KeyT",e[e.KeyU=51]="KeyU",e[e.KeyV=52]="KeyV",e[e.KeyW=53]="KeyW",e[e.KeyX=54]="KeyX",e[e.KeyY=55]="KeyY",e[e.KeyZ=56]="KeyZ",e[e.Meta=57]="Meta",e[e.ContextMenu=58]="ContextMenu",e[e.F1=59]="F1",e[e.F2=60]="F2",e[e.F3=61]="F3",e[e.F4=62]="F4",e[e.F5=63]="F5",e[e.F6=64]="F6",e[e.F7=65]="F7",e[e.F8=66]="F8",e[e.F9=67]="F9",e[e.F10=68]="F10",e[e.F11=69]="F11",e[e.F12=70]="F12",e[e.F13=71]="F13",e[e.F14=72]="F14",e[e.F15=73]="F15",e[e.F16=74]="F16",e[e.F17=75]="F17",e[e.F18=76]="F18",e[e.F19=77]="F19",e[e.F20=78]="F20",e[e.F21=79]="F21",e[e.F22=80]="F22",e[e.F23=81]="F23",e[e.F24=82]="F24",e[e.NumLock=83]="NumLock",e[e.ScrollLock=84]="ScrollLock",e[e.Semicolon=85]="Semicolon",e[e.Equal=86]="Equal",e[e.Comma=87]="Comma",e[e.Minus=88]="Minus",e[e.Period=89]="Period",e[e.Slash=90]="Slash",e[e.Backquote=91]="Backquote",e[e.BracketLeft=92]="BracketLeft",e[e.Backslash=93]="Backslash",e[e.BracketRight=94]="BracketRight",e[e.Quote=95]="Quote",e[e.OEM_8=96]="OEM_8",e[e.IntlBackslash=97]="IntlBackslash",e[e.Numpad0=98]="Numpad0",e[e.Numpad1=99]="Numpad1",e[e.Numpad2=100]="Numpad2",e[e.Numpad3=101]="Numpad3",e[e.Numpad4=102]="Numpad4",e[e.Numpad5=103]="Numpad5",e[e.Numpad6=104]="Numpad6",e[e.Numpad7=105]="Numpad7",e[e.Numpad8=106]="Numpad8",e[e.Numpad9=107]="Numpad9",e[e.NumpadMultiply=108]="NumpadMultiply",e[e.NumpadAdd=109]="NumpadAdd",e[e.NUMPAD_SEPARATOR=110]="NUMPAD_SEPARATOR",e[e.NumpadSubtract=111]="NumpadSubtract",e[e.NumpadDecimal=112]="NumpadDecimal",e[e.NumpadDivide=113]="NumpadDivide",e[e.KEY_IN_COMPOSITION=114]="KEY_IN_COMPOSITION",e[e.ABNT_C1=115]="ABNT_C1",e[e.ABNT_C2=116]="ABNT_C2",e[e.AudioVolumeMute=117]="AudioVolumeMute",e[e.AudioVolumeUp=118]="AudioVolumeUp",e[e.AudioVolumeDown=119]="AudioVolumeDown",e[e.BrowserSearch=120]="BrowserSearch",e[e.BrowserHome=121]="BrowserHome",e[e.BrowserBack=122]="BrowserBack",e[e.BrowserForward=123]="BrowserForward",e[e.MediaTrackNext=124]="MediaTrackNext",e[e.MediaTrackPrevious=125]="MediaTrackPrevious",e[e.MediaStop=126]="MediaStop",e[e.MediaPlayPause=127]="MediaPlayPause",e[e.LaunchMediaPlayer=128]="LaunchMediaPlayer",e[e.LaunchMail=129]="LaunchMail",e[e.LaunchApp2=130]="LaunchApp2",e[e.Clear=131]="Clear",e[e.MAX_VALUE=132]="MAX_VALUE"})(v||(v={}));var y;(function(e){e[e.DependsOnKbLayout=-1]="DependsOnKbLayout",e[e.None=0]="None",e[e.Hyper=1]="Hyper",e[e.Super=2]="Super",e[e.Fn=3]="Fn",e[e.FnLock=4]="FnLock",e[e.Suspend=5]="Suspend",e[e.Resume=6]="Resume",e[e.Turbo=7]="Turbo",e[e.Sleep=8]="Sleep",e[e.WakeUp=9]="WakeUp",e[e.KeyA=10]="KeyA",e[e.KeyB=11]="KeyB",e[e.KeyC=12]="KeyC",e[e.KeyD=13]="KeyD",e[e.KeyE=14]="KeyE",e[e.KeyF=15]="KeyF",e[e.KeyG=16]="KeyG",e[e.KeyH=17]="KeyH",e[e.KeyI=18]="KeyI",e[e.KeyJ=19]="KeyJ",e[e.KeyK=20]="KeyK",e[e.KeyL=21]="KeyL",e[e.KeyM=22]="KeyM",e[e.KeyN=23]="KeyN",e[e.KeyO=24]="KeyO",e[e.KeyP=25]="KeyP",e[e.KeyQ=26]="KeyQ",e[e.KeyR=27]="KeyR",e[e.KeyS=28]="KeyS",e[e.KeyT=29]="KeyT",e[e.KeyU=30]="KeyU",e[e.KeyV=31]="KeyV",e[e.KeyW=32]="KeyW",e[e.KeyX=33]="KeyX",e[e.KeyY=34]="KeyY",e[e.KeyZ=35]="KeyZ",e[e.Digit1=36]="Digit1",e[e.Digit2=37]="Digit2",e[e.Digit3=38]="Digit3",e[e.Digit4=39]="Digit4",e[e.Digit5=40]="Digit5",e[e.Digit6=41]="Digit6",e[e.Digit7=42]="Digit7",e[e.Digit8=43]="Digit8",e[e.Digit9=44]="Digit9",e[e.Digit0=45]="Digit0",e[e.Enter=46]="Enter",e[e.Escape=47]="Escape",e[e.Backspace=48]="Backspace",e[e.Tab=49]="Tab",e[e.Space=50]="Space",e[e.Minus=51]="Minus",e[e.Equal=52]="Equal",e[e.BracketLeft=53]="BracketLeft",e[e.BracketRight=54]="BracketRight",e[e.Backslash=55]="Backslash",e[e.IntlHash=56]="IntlHash",e[e.Semicolon=57]="Semicolon",e[e.Quote=58]="Quote",e[e.Backquote=59]="Backquote",e[e.Comma=60]="Comma",e[e.Period=61]="Period",e[e.Slash=62]="Slash",e[e.CapsLock=63]="CapsLock",e[e.F1=64]="F1",e[e.F2=65]="F2",e[e.F3=66]="F3",e[e.F4=67]="F4",e[e.F5=68]="F5",e[e.F6=69]="F6",e[e.F7=70]="F7",e[e.F8=71]="F8",e[e.F9=72]="F9",e[e.F10=73]="F10",e[e.F11=74]="F11",e[e.F12=75]="F12",e[e.PrintScreen=76]="PrintScreen",e[e.ScrollLock=77]="ScrollLock",e[e.Pause=78]="Pause",e[e.Insert=79]="Insert",e[e.Home=80]="Home",e[e.PageUp=81]="PageUp",e[e.Delete=82]="Delete",e[e.End=83]="End",e[e.PageDown=84]="PageDown",e[e.ArrowRight=85]="ArrowRight",e[e.ArrowLeft=86]="ArrowLeft",e[e.ArrowDown=87]="ArrowDown",e[e.ArrowUp=88]="ArrowUp",e[e.NumLock=89]="NumLock",e[e.NumpadDivide=90]="NumpadDivide",e[e.NumpadMultiply=91]="NumpadMultiply",e[e.NumpadSubtract=92]="NumpadSubtract",e[e.NumpadAdd=93]="NumpadAdd",e[e.NumpadEnter=94]="NumpadEnter",e[e.Numpad1=95]="Numpad1",e[e.Numpad2=96]="Numpad2",e[e.Numpad3=97]="Numpad3",e[e.Numpad4=98]="Numpad4",e[e.Numpad5=99]="Numpad5",e[e.Numpad6=100]="Numpad6",e[e.Numpad7=101]="Numpad7",e[e.Numpad8=102]="Numpad8",e[e.Numpad9=103]="Numpad9",e[e.Numpad0=104]="Numpad0",e[e.NumpadDecimal=105]="NumpadDecimal",e[e.IntlBackslash=106]="IntlBackslash",e[e.ContextMenu=107]="ContextMenu",e[e.Power=108]="Power",e[e.NumpadEqual=109]="NumpadEqual",e[e.F13=110]="F13",e[e.F14=111]="F14",e[e.F15=112]="F15",e[e.F16=113]="F16",e[e.F17=114]="F17",e[e.F18=115]="F18",e[e.F19=116]="F19",e[e.F20=117]="F20",e[e.F21=118]="F21",e[e.F22=119]="F22",e[e.F23=120]="F23",e[e.F24=121]="F24",e[e.Open=122]="Open",e[e.Help=123]="Help",e[e.Select=124]="Select",e[e.Again=125]="Again",e[e.Undo=126]="Undo",e[e.Cut=127]="Cut",e[e.Copy=128]="Copy",e[e.Paste=129]="Paste",e[e.Find=130]="Find",e[e.AudioVolumeMute=131]="AudioVolumeMute",e[e.AudioVolumeUp=132]="AudioVolumeUp",e[e.AudioVolumeDown=133]="AudioVolumeDown",e[e.NumpadComma=134]="NumpadComma",e[e.IntlRo=135]="IntlRo",e[e.KanaMode=136]="KanaMode",e[e.IntlYen=137]="IntlYen",e[e.Convert=138]="Convert",e[e.NonConvert=139]="NonConvert",e[e.Lang1=140]="Lang1",e[e.Lang2=141]="Lang2",e[e.Lang3=142]="Lang3",e[e.Lang4=143]="Lang4",e[e.Lang5=144]="Lang5",e[e.Abort=145]="Abort",e[e.Props=146]="Props",e[e.NumpadParenLeft=147]="NumpadParenLeft",e[e.NumpadParenRight=148]="NumpadParenRight",e[e.NumpadBackspace=149]="NumpadBackspace",e[e.NumpadMemoryStore=150]="NumpadMemoryStore",e[e.NumpadMemoryRecall=151]="NumpadMemoryRecall",e[e.NumpadMemoryClear=152]="NumpadMemoryClear",e[e.NumpadMemoryAdd=153]="NumpadMemoryAdd",e[e.NumpadMemorySubtract=154]="NumpadMemorySubtract",e[e.NumpadClear=155]="NumpadClear",e[e.NumpadClearEntry=156]="NumpadClearEntry",e[e.ControlLeft=157]="ControlLeft",e[e.ShiftLeft=158]="ShiftLeft",e[e.AltLeft=159]="AltLeft",e[e.MetaLeft=160]="MetaLeft",e[e.ControlRight=161]="ControlRight",e[e.ShiftRight=162]="ShiftRight",e[e.AltRight=163]="AltRight",e[e.MetaRight=164]="MetaRight",e[e.BrightnessUp=165]="BrightnessUp",e[e.BrightnessDown=166]="BrightnessDown",e[e.MediaPlay=167]="MediaPlay",e[e.MediaRecord=168]="MediaRecord",e[e.MediaFastForward=169]="MediaFastForward",e[e.MediaRewind=170]="MediaRewind",e[e.MediaTrackNext=171]="MediaTrackNext",e[e.MediaTrackPrevious=172]="MediaTrackPrevious",e[e.MediaStop=173]="MediaStop",e[e.Eject=174]="Eject",e[e.MediaPlayPause=175]="MediaPlayPause",e[e.MediaSelect=176]="MediaSelect",e[e.LaunchMail=177]="LaunchMail",e[e.LaunchApp2=178]="LaunchApp2",e[e.LaunchApp1=179]="LaunchApp1",e[e.SelectTask=180]="SelectTask",e[e.LaunchScreenSaver=181]="LaunchScreenSaver",e[e.BrowserSearch=182]="BrowserSearch",e[e.BrowserHome=183]="BrowserHome",e[e.BrowserBack=184]="BrowserBack",e[e.BrowserForward=185]="BrowserForward",e[e.BrowserStop=186]="BrowserStop",e[e.BrowserRefresh=187]="BrowserRefresh",e[e.BrowserFavorites=188]="BrowserFavorites",e[e.ZoomToggle=189]="ZoomToggle",e[e.MailReply=190]="MailReply",e[e.MailForward=191]="MailForward",e[e.MailSend=192]="MailSend",e[e.MAX_VALUE=193]="MAX_VALUE"})(y||(y={}));var yo=class{constructor(){this._keyCodeToStr=[],this._strToKeyCode=Object.create(null)}define(t,n){this._keyCodeToStr[t]=n,this._strToKeyCode[n.toLowerCase()]=t}keyCodeToStr(t){return this._keyCodeToStr[t]}strToKeyCode(t){return this._strToKeyCode[t.toLowerCase()]||v.Unknown}},Ba=new yo,Bc=new yo,Cc=new yo,mE=new Array(230),gE={},_E=[],EE=Object.create(null),DE=Object.create(null);var Kp=[],Vc=[];for(let e=0;e<=y.MAX_VALUE;e++)Kp[e]=v.DependsOnKbLayout;for(let e=0;e<=v.MAX_VALUE;e++)Vc[e]=y.DependsOnKbLayout;(function(){let e="",t=[[1,y.None,"None",v.Unknown,"unknown",0,"VK_UNKNOWN",e,e],[1,y.Hyper,"Hyper",v.Unknown,e,0,e,e,e],[1,y.Super,"Super",v.Unknown,e,0,e,e,e],[1,y.Fn,"Fn",v.Unknown,e,0,e,e,e],[1,y.FnLock,"FnLock",v.Unknown,e,0,e,e,e],[1,y.Suspend,"Suspend",v.Unknown,e,0,e,e,e],[1,y.Resume,"Resume",v.Unknown,e,0,e,e,e],[1,y.Turbo,"Turbo",v.Unknown,e,0,e,e,e],[1,y.Sleep,"Sleep",v.Unknown,e,0,"VK_SLEEP",e,e],[1,y.WakeUp,"WakeUp",v.Unknown,e,0,e,e,e],[0,y.KeyA,"KeyA",v.KeyA,"A",65,"VK_A",e,e],[0,y.KeyB,"KeyB",v.KeyB,"B",66,"VK_B",e,e],[0,y.KeyC,"KeyC",v.KeyC,"C",67,"VK_C",e,e],[0,y.KeyD,"KeyD",v.KeyD,"D",68,"VK_D",e,e],[0,y.KeyE,"KeyE",v.KeyE,"E",69,"VK_E",e,e],[0,y.KeyF,"KeyF",v.KeyF,"F",70,"VK_F",e,e],[0,y.KeyG,"KeyG",v.KeyG,"G",71,"VK_G",e,e],[0,y.KeyH,"KeyH",v.KeyH,"H",72,"VK_H",e,e],[0,y.KeyI,"KeyI",v.KeyI,"I",73,"VK_I",e,e],[0,y.KeyJ,"KeyJ",v.KeyJ,"J",74,"VK_J",e,e],[0,y.KeyK,"KeyK",v.KeyK,"K",75,"VK_K",e,e],[0,y.KeyL,"KeyL",v.KeyL,"L",76,"VK_L",e,e],[0,y.KeyM,"KeyM",v.KeyM,"M",77,"VK_M",e,e],[0,y.KeyN,"KeyN",v.KeyN,"N",78,"VK_N",e,e],[0,y.KeyO,"KeyO",v.KeyO,"O",79,"VK_O",e,e],[0,y.KeyP,"KeyP",v.KeyP,"P",80,"VK_P",e,e],[0,y.KeyQ,"KeyQ",v.KeyQ,"Q",81,"VK_Q",e,e],[0,y.KeyR,"KeyR",v.KeyR,"R",82,"VK_R",e,e],[0,y.KeyS,"KeyS",v.KeyS,"S",83,"VK_S",e,e],[0,y.KeyT,"KeyT",v.KeyT,"T",84,"VK_T",e,e],[0,y.KeyU,"KeyU",v.KeyU,"U",85,"VK_U",e,e],[0,y.KeyV,"KeyV",v.KeyV,"V",86,"VK_V",e,e],[0,y.KeyW,"KeyW",v.KeyW,"W",87,"VK_W",e,e],[0,y.KeyX,"KeyX",v.KeyX,"X",88,"VK_X",e,e],[0,y.KeyY,"KeyY",v.KeyY,"Y",89,"VK_Y",e,e],[0,y.KeyZ,"KeyZ",v.KeyZ,"Z",90,"VK_Z",e,e],[0,y.Digit1,"Digit1",v.Digit1,"1",49,"VK_1",e,e],[0,y.Digit2,"Digit2",v.Digit2,"2",50,"VK_2",e,e],[0,y.Digit3,"Digit3",v.Digit3,"3",51,"VK_3",e,e],[0,y.Digit4,"Digit4",v.Digit4,"4",52,"VK_4",e,e],[0,y.Digit5,"Digit5",v.Digit5,"5",53,"VK_5",e,e],[0,y.Digit6,"Digit6",v.Digit6,"6",54,"VK_6",e,e],[0,y.Digit7,"Digit7",v.Digit7,"7",55,"VK_7",e,e],[0,y.Digit8,"Digit8",v.Digit8,"8",56,"VK_8",e,e],[0,y.Digit9,"Digit9",v.Digit9,"9",57,"VK_9",e,e],[0,y.Digit0,"Digit0",v.Digit0,"0",48,"VK_0",e,e],[1,y.Enter,"Enter",v.Enter,"Enter",13,"VK_RETURN",e,e],[1,y.Escape,"Escape",v.Escape,"Escape",27,"VK_ESCAPE",e,e],[1,y.Backspace,"Backspace",v.Backspace,"Backspace",8,"VK_BACK",e,e],[1,y.Tab,"Tab",v.Tab,"Tab",9,"VK_TAB",e,e],[1,y.Space,"Space",v.Space,"Space",32,"VK_SPACE",e,e],[0,y.Minus,"Minus",v.Minus,"-",189,"VK_OEM_MINUS","-","OEM_MINUS"],[0,y.Equal,"Equal",v.Equal,"=",187,"VK_OEM_PLUS","=","OEM_PLUS"],[0,y.BracketLeft,"BracketLeft",v.BracketLeft,"[",219,"VK_OEM_4","[","OEM_4"],[0,y.BracketRight,"BracketRight",v.BracketRight,"]",221,"VK_OEM_6","]","OEM_6"],[0,y.Backslash,"Backslash",v.Backslash,"\\",220,"VK_OEM_5","\\","OEM_5"],[0,y.IntlHash,"IntlHash",v.Unknown,e,0,e,e,e],[0,y.Semicolon,"Semicolon",v.Semicolon,";",186,"VK_OEM_1",";","OEM_1"],[0,y.Quote,"Quote",v.Quote,"'",222,"VK_OEM_7","'","OEM_7"],[0,y.Backquote,"Backquote",v.Backquote,"`",192,"VK_OEM_3","`","OEM_3"],[0,y.Comma,"Comma",v.Comma,",",188,"VK_OEM_COMMA",",","OEM_COMMA"],[0,y.Period,"Period",v.Period,".",190,"VK_OEM_PERIOD",".","OEM_PERIOD"],[0,y.Slash,"Slash",v.Slash,"/",191,"VK_OEM_2","/","OEM_2"],[1,y.CapsLock,"CapsLock",v.CapsLock,"CapsLock",20,"VK_CAPITAL",e,e],[1,y.F1,"F1",v.F1,"F1",112,"VK_F1",e,e],[1,y.F2,"F2",v.F2,"F2",113,"VK_F2",e,e],[1,y.F3,"F3",v.F3,"F3",114,"VK_F3",e,e],[1,y.F4,"F4",v.F4,"F4",115,"VK_F4",e,e],[1,y.F5,"F5",v.F5,"F5",116,"VK_F5",e,e],[1,y.F6,"F6",v.F6,"F6",117,"VK_F6",e,e],[1,y.F7,"F7",v.F7,"F7",118,"VK_F7",e,e],[1,y.F8,"F8",v.F8,"F8",119,"VK_F8",e,e],[1,y.F9,"F9",v.F9,"F9",120,"VK_F9",e,e],[1,y.F10,"F10",v.F10,"F10",121,"VK_F10",e,e],[1,y.F11,"F11",v.F11,"F11",122,"VK_F11",e,e],[1,y.F12,"F12",v.F12,"F12",123,"VK_F12",e,e],[1,y.PrintScreen,"PrintScreen",v.Unknown,e,0,e,e,e],[1,y.ScrollLock,"ScrollLock",v.ScrollLock,"ScrollLock",145,"VK_SCROLL",e,e],[1,y.Pause,"Pause",v.PauseBreak,"PauseBreak",19,"VK_PAUSE",e,e],[1,y.Insert,"Insert",v.Insert,"Insert",45,"VK_INSERT",e,e],[1,y.Home,"Home",v.Home,"Home",36,"VK_HOME",e,e],[1,y.PageUp,"PageUp",v.PageUp,"PageUp",33,"VK_PRIOR",e,e],[1,y.Delete,"Delete",v.Delete,"Delete",46,"VK_DELETE",e,e],[1,y.End,"End",v.End,"End",35,"VK_END",e,e],[1,y.PageDown,"PageDown",v.PageDown,"PageDown",34,"VK_NEXT",e,e],[1,y.ArrowRight,"ArrowRight",v.RightArrow,"RightArrow",39,"VK_RIGHT","Right",e],[1,y.ArrowLeft,"ArrowLeft",v.LeftArrow,"LeftArrow",37,"VK_LEFT","Left",e],[1,y.ArrowDown,"ArrowDown",v.DownArrow,"DownArrow",40,"VK_DOWN","Down",e],[1,y.ArrowUp,"ArrowUp",v.UpArrow,"UpArrow",38,"VK_UP","Up",e],[1,y.NumLock,"NumLock",v.NumLock,"NumLock",144,"VK_NUMLOCK",e,e],[1,y.NumpadDivide,"NumpadDivide",v.NumpadDivide,"NumPad_Divide",111,"VK_DIVIDE",e,e],[1,y.NumpadMultiply,"NumpadMultiply",v.NumpadMultiply,"NumPad_Multiply",106,"VK_MULTIPLY",e,e],[1,y.NumpadSubtract,"NumpadSubtract",v.NumpadSubtract,"NumPad_Subtract",109,"VK_SUBTRACT",e,e],[1,y.NumpadAdd,"NumpadAdd",v.NumpadAdd,"NumPad_Add",107,"VK_ADD",e,e],[1,y.NumpadEnter,"NumpadEnter",v.Enter,e,0,e,e,e],[1,y.Numpad1,"Numpad1",v.Numpad1,"NumPad1",97,"VK_NUMPAD1",e,e],[1,y.Numpad2,"Numpad2",v.Numpad2,"NumPad2",98,"VK_NUMPAD2",e,e],[1,y.Numpad3,"Numpad3",v.Numpad3,"NumPad3",99,"VK_NUMPAD3",e,e],[1,y.Numpad4,"Numpad4",v.Numpad4,"NumPad4",100,"VK_NUMPAD4",e,e],[1,y.Numpad5,"Numpad5",v.Numpad5,"NumPad5",101,"VK_NUMPAD5",e,e],[1,y.Numpad6,"Numpad6",v.Numpad6,"NumPad6",102,"VK_NUMPAD6",e,e],[1,y.Numpad7,"Numpad7",v.Numpad7,"NumPad7",103,"VK_NUMPAD7",e,e],[1,y.Numpad8,"Numpad8",v.Numpad8,"NumPad8",104,"VK_NUMPAD8",e,e],[1,y.Numpad9,"Numpad9",v.Numpad9,"NumPad9",105,"VK_NUMPAD9",e,e],[1,y.Numpad0,"Numpad0",v.Numpad0,"NumPad0",96,"VK_NUMPAD0",e,e],[1,y.NumpadDecimal,"NumpadDecimal",v.NumpadDecimal,"NumPad_Decimal",110,"VK_DECIMAL",e,e],[0,y.IntlBackslash,"IntlBackslash",v.IntlBackslash,"OEM_102",226,"VK_OEM_102",e,e],[1,y.ContextMenu,"ContextMenu",v.ContextMenu,"ContextMenu",93,e,e,e],[1,y.Power,"Power",v.Unknown,e,0,e,e,e],[1,y.NumpadEqual,"NumpadEqual",v.Unknown,e,0,e,e,e],[1,y.F13,"F13",v.F13,"F13",124,"VK_F13",e,e],[1,y.F14,"F14",v.F14,"F14",125,"VK_F14",e,e],[1,y.F15,"F15",v.F15,"F15",126,"VK_F15",e,e],[1,y.F16,"F16",v.F16,"F16",127,"VK_F16",e,e],[1,y.F17,"F17",v.F17,"F17",128,"VK_F17",e,e],[1,y.F18,"F18",v.F18,"F18",129,"VK_F18",e,e],[1,y.F19,"F19",v.F19,"F19",130,"VK_F19",e,e],[1,y.F20,"F20",v.F20,"F20",131,"VK_F20",e,e],[1,y.F21,"F21",v.F21,"F21",132,"VK_F21",e,e],[1,y.F22,"F22",v.F22,"F22",133,"VK_F22",e,e],[1,y.F23,"F23",v.F23,"F23",134,"VK_F23",e,e],[1,y.F24,"F24",v.F24,"F24",135,"VK_F24",e,e],[1,y.Open,"Open",v.Unknown,e,0,e,e,e],[1,y.Help,"Help",v.Unknown,e,0,e,e,e],[1,y.Select,"Select",v.Unknown,e,0,e,e,e],[1,y.Again,"Again",v.Unknown,e,0,e,e,e],[1,y.Undo,"Undo",v.Unknown,e,0,e,e,e],[1,y.Cut,"Cut",v.Unknown,e,0,e,e,e],[1,y.Copy,"Copy",v.Unknown,e,0,e,e,e],[1,y.Paste,"Paste",v.Unknown,e,0,e,e,e],[1,y.Find,"Find",v.Unknown,e,0,e,e,e],[1,y.AudioVolumeMute,"AudioVolumeMute",v.AudioVolumeMute,"AudioVolumeMute",173,"VK_VOLUME_MUTE",e,e],[1,y.AudioVolumeUp,"AudioVolumeUp",v.AudioVolumeUp,"AudioVolumeUp",175,"VK_VOLUME_UP",e,e],[1,y.AudioVolumeDown,"AudioVolumeDown",v.AudioVolumeDown,"AudioVolumeDown",174,"VK_VOLUME_DOWN",e,e],[1,y.NumpadComma,"NumpadComma",v.NUMPAD_SEPARATOR,"NumPad_Separator",108,"VK_SEPARATOR",e,e],[0,y.IntlRo,"IntlRo",v.ABNT_C1,"ABNT_C1",193,"VK_ABNT_C1",e,e],[1,y.KanaMode,"KanaMode",v.Unknown,e,0,e,e,e],[0,y.IntlYen,"IntlYen",v.Unknown,e,0,e,e,e],[1,y.Convert,"Convert",v.Unknown,e,0,e,e,e],[1,y.NonConvert,"NonConvert",v.Unknown,e,0,e,e,e],[1,y.Lang1,"Lang1",v.Unknown,e,0,e,e,e],[1,y.Lang2,"Lang2",v.Unknown,e,0,e,e,e],[1,y.Lang3,"Lang3",v.Unknown,e,0,e,e,e],[1,y.Lang4,"Lang4",v.Unknown,e,0,e,e,e],[1,y.Lang5,"Lang5",v.Unknown,e,0,e,e,e],[1,y.Abort,"Abort",v.Unknown,e,0,e,e,e],[1,y.Props,"Props",v.Unknown,e,0,e,e,e],[1,y.NumpadParenLeft,"NumpadParenLeft",v.Unknown,e,0,e,e,e],[1,y.NumpadParenRight,"NumpadParenRight",v.Unknown,e,0,e,e,e],[1,y.NumpadBackspace,"NumpadBackspace",v.Unknown,e,0,e,e,e],[1,y.NumpadMemoryStore,"NumpadMemoryStore",v.Unknown,e,0,e,e,e],[1,y.NumpadMemoryRecall,"NumpadMemoryRecall",v.Unknown,e,0,e,e,e],[1,y.NumpadMemoryClear,"NumpadMemoryClear",v.Unknown,e,0,e,e,e],[1,y.NumpadMemoryAdd,"NumpadMemoryAdd",v.Unknown,e,0,e,e,e],[1,y.NumpadMemorySubtract,"NumpadMemorySubtract",v.Unknown,e,0,e,e,e],[1,y.NumpadClear,"NumpadClear",v.Clear,"Clear",12,"VK_CLEAR",e,e],[1,y.NumpadClearEntry,"NumpadClearEntry",v.Unknown,e,0,e,e,e],[1,y.None,e,v.Ctrl,"Ctrl",17,"VK_CONTROL",e,e],[1,y.None,e,v.Shift,"Shift",16,"VK_SHIFT",e,e],[1,y.None,e,v.Alt,"Alt",18,"VK_MENU",e,e],[1,y.None,e,v.Meta,"Meta",91,"VK_COMMAND",e,e],[1,y.ControlLeft,"ControlLeft",v.Ctrl,e,0,"VK_LCONTROL",e,e],[1,y.ShiftLeft,"ShiftLeft",v.Shift,e,0,"VK_LSHIFT",e,e],[1,y.AltLeft,"AltLeft",v.Alt,e,0,"VK_LMENU",e,e],[1,y.MetaLeft,"MetaLeft",v.Meta,e,0,"VK_LWIN",e,e],[1,y.ControlRight,"ControlRight",v.Ctrl,e,0,"VK_RCONTROL",e,e],[1,y.ShiftRight,"ShiftRight",v.Shift,e,0,"VK_RSHIFT",e,e],[1,y.AltRight,"AltRight",v.Alt,e,0,"VK_RMENU",e,e],[1,y.MetaRight,"MetaRight",v.Meta,e,0,"VK_RWIN",e,e],[1,y.BrightnessUp,"BrightnessUp",v.Unknown,e,0,e,e,e],[1,y.BrightnessDown,"BrightnessDown",v.Unknown,e,0,e,e,e],[1,y.MediaPlay,"MediaPlay",v.Unknown,e,0,e,e,e],[1,y.MediaRecord,"MediaRecord",v.Unknown,e,0,e,e,e],[1,y.MediaFastForward,"MediaFastForward",v.Unknown,e,0,e,e,e],[1,y.MediaRewind,"MediaRewind",v.Unknown,e,0,e,e,e],[1,y.MediaTrackNext,"MediaTrackNext",v.MediaTrackNext,"MediaTrackNext",176,"VK_MEDIA_NEXT_TRACK",e,e],[1,y.MediaTrackPrevious,"MediaTrackPrevious",v.MediaTrackPrevious,"MediaTrackPrevious",177,"VK_MEDIA_PREV_TRACK",e,e],[1,y.MediaStop,"MediaStop",v.MediaStop,"MediaStop",178,"VK_MEDIA_STOP",e,e],[1,y.Eject,"Eject",v.Unknown,e,0,e,e,e],[1,y.MediaPlayPause,"MediaPlayPause",v.MediaPlayPause,"MediaPlayPause",179,"VK_MEDIA_PLAY_PAUSE",e,e],[1,y.MediaSelect,"MediaSelect",v.LaunchMediaPlayer,"LaunchMediaPlayer",181,"VK_MEDIA_LAUNCH_MEDIA_SELECT",e,e],[1,y.LaunchMail,"LaunchMail",v.LaunchMail,"LaunchMail",180,"VK_MEDIA_LAUNCH_MAIL",e,e],[1,y.LaunchApp2,"LaunchApp2",v.LaunchApp2,"LaunchApp2",183,"VK_MEDIA_LAUNCH_APP2",e,e],[1,y.LaunchApp1,"LaunchApp1",v.Unknown,e,0,"VK_MEDIA_LAUNCH_APP1",e,e],[1,y.SelectTask,"SelectTask",v.Unknown,e,0,e,e,e],[1,y.LaunchScreenSaver,"LaunchScreenSaver",v.Unknown,e,0,e,e,e],[1,y.BrowserSearch,"BrowserSearch",v.BrowserSearch,"BrowserSearch",170,"VK_BROWSER_SEARCH",e,e],[1,y.BrowserHome,"BrowserHome",v.BrowserHome,"BrowserHome",172,"VK_BROWSER_HOME",e,e],[1,y.BrowserBack,"BrowserBack",v.BrowserBack,"BrowserBack",166,"VK_BROWSER_BACK",e,e],[1,y.BrowserForward,"BrowserForward",v.BrowserForward,"BrowserForward",167,"VK_BROWSER_FORWARD",e,e],[1,y.BrowserStop,"BrowserStop",v.Unknown,e,0,"VK_BROWSER_STOP",e,e],[1,y.BrowserRefresh,"BrowserRefresh",v.Unknown,e,0,"VK_BROWSER_REFRESH",e,e],[1,y.BrowserFavorites,"BrowserFavorites",v.Unknown,e,0,"VK_BROWSER_FAVORITES",e,e],[1,y.ZoomToggle,"ZoomToggle",v.Unknown,e,0,e,e,e],[1,y.MailReply,"MailReply",v.Unknown,e,0,e,e,e],[1,y.MailForward,"MailForward",v.Unknown,e,0,e,e,e],[1,y.MailSend,"MailSend",v.Unknown,e,0,e,e,e],[1,y.None,e,v.KEY_IN_COMPOSITION,"KeyInComposition",229,e,e,e],[1,y.None,e,v.ABNT_C2,"ABNT_C2",194,"VK_ABNT_C2",e,e],[1,y.None,e,v.OEM_8,"OEM_8",223,"VK_OEM_8",e,e],[1,y.None,e,v.Unknown,e,0,"VK_KANA",e,e],[1,y.None,e,v.Unknown,e,0,"VK_HANGUL",e,e],[1,y.None,e,v.Unknown,e,0,"VK_JUNJA",e,e],[1,y.None,e,v.Unknown,e,0,"VK_FINAL",e,e],[1,y.None,e,v.Unknown,e,0,"VK_HANJA",e,e],[1,y.None,e,v.Unknown,e,0,"VK_KANJI",e,e],[1,y.None,e,v.Unknown,e,0,"VK_CONVERT",e,e],[1,y.None,e,v.Unknown,e,0,"VK_NONCONVERT",e,e],[1,y.None,e,v.Unknown,e,0,"VK_ACCEPT",e,e],[1,y.None,e,v.Unknown,e,0,"VK_MODECHANGE",e,e],[1,y.None,e,v.Unknown,e,0,"VK_SELECT",e,e],[1,y.None,e,v.Unknown,e,0,"VK_PRINT",e,e],[1,y.None,e,v.Unknown,e,0,"VK_EXECUTE",e,e],[1,y.None,e,v.Unknown,e,0,"VK_SNAPSHOT",e,e],[1,y.None,e,v.Unknown,e,0,"VK_HELP",e,e],[1,y.None,e,v.Unknown,e,0,"VK_APPS",e,e],[1,y.None,e,v.Unknown,e,0,"VK_PROCESSKEY",e,e],[1,y.None,e,v.Unknown,e,0,"VK_PACKET",e,e],[1,y.None,e,v.Unknown,e,0,"VK_DBE_SBCSCHAR",e,e],[1,y.None,e,v.Unknown,e,0,"VK_DBE_DBCSCHAR",e,e],[1,y.None,e,v.Unknown,e,0,"VK_ATTN",e,e],[1,y.None,e,v.Unknown,e,0,"VK_CRSEL",e,e],[1,y.None,e,v.Unknown,e,0,"VK_EXSEL",e,e],[1,y.None,e,v.Unknown,e,0,"VK_EREOF",e,e],[1,y.None,e,v.Unknown,e,0,"VK_PLAY",e,e],[1,y.None,e,v.Unknown,e,0,"VK_ZOOM",e,e],[1,y.None,e,v.Unknown,e,0,"VK_NONAME",e,e],[1,y.None,e,v.Unknown,e,0,"VK_PA1",e,e],[1,y.None,e,v.Unknown,e,0,"VK_OEM_CLEAR",e,e]],n=[],r=[];for(let i of t){let[s,o,a,u,l,c,f,d,m]=i;if(r[o]||(r[o]=!0,_E[o]=a,EE[a]=o,DE[a.toLowerCase()]=o,s&&(Kp[o]=u,u!==v.Unknown&&u!==v.Enter&&u!==v.Ctrl&&u!==v.Shift&&u!==v.Alt&&u!==v.Meta&&(Vc[u]=o))),!n[u]){if(n[u]=!0,!l)throw new Error(`String representation missing for key code ${u} around scan code ${a}`);Ba.define(u,l),Bc.define(u,d||l),Cc.define(u,m||d||l)}c&&(mE[c]=u),f&&(gE[f]=u)}Vc[v.Enter]=y.Enter})();var Zp;(function(e){function t(a){return Ba.keyCodeToStr(a)}e.toString=t;function n(a){return Ba.strToKeyCode(a)}e.fromString=n;function r(a){return Bc.keyCodeToStr(a)}e.toUserSettingsUS=r;function i(a){return Cc.keyCodeToStr(a)}e.toUserSettingsGeneral=i;function s(a){return Bc.strToKeyCode(a)||Cc.strToKeyCode(a)}e.fromUserSettings=s;function o(a){if(a>=v.Numpad0&&a<=v.NumpadDivide)return null;switch(a){case v.UpArrow:return"Up";case v.DownArrow:return"Down";case v.LeftArrow:return"Left";case v.RightArrow:return"Right"}return Ba.keyCodeToStr(a)}e.toElectronAccelerator=o})(Zp||(Zp={}));var ei;(function(e){e[e.CtrlCmd=2048]="CtrlCmd",e[e.Shift=1024]="Shift",e[e.Alt=512]="Alt",e[e.WinCtrl=256]="WinCtrl"})(ei||(ei={}));function ed(e,t){let n=(t&65535)<<16>>>0;return(e|n)>>>0}var Ca;(function(e){e[e.Uri=1]="Uri",e[e.Regexp=2]="Regexp",e[e.ScmResource=3]="ScmResource",e[e.ScmResourceGroup=4]="ScmResourceGroup",e[e.ScmProvider=5]="ScmProvider",e[e.CommentController=6]="CommentController",e[e.CommentThread=7]="CommentThread",e[e.CommentThreadInstance=8]="CommentThreadInstance",e[e.CommentThreadReply=9]="CommentThreadReply",e[e.CommentNode=10]="CommentNode",e[e.CommentThreadNode=11]="CommentThreadNode",e[e.TimelineActionContext=12]="TimelineActionContext",e[e.NotebookCellActionContext=13]="NotebookCellActionContext",e[e.NotebookActionContext=14]="NotebookActionContext",e[e.TerminalContext=15]="TerminalContext",e[e.TestItemContext=16]="TestItemContext",e[e.Date=17]="Date",e[e.TestMessageMenuArgs=18]="TestMessageMenuArgs",e[e.ChatViewContext=19]="ChatViewContext",e[e.LanguageModelToolResult=20]="LanguageModelToolResult",e[e.LanguageModelTextPart=21]="LanguageModelTextPart",e[e.LanguageModelPromptTsxPart=22]="LanguageModelPromptTsxPart",e[e.LanguageModelDataPart=23]="LanguageModelDataPart"})(Ca||(Ca={}));var ti,$c=globalThis.vscode;if(typeof $c<"u"&&typeof $c.process<"u"){let e=$c.process;ti={get platform(){return e.platform},get arch(){return e.arch},get env(){return e.env},cwd(){return e.cwd()}}}else typeof process<"u"&&typeof process?.versions?.node=="string"?ti={get platform(){return process.platform},get arch(){return process.arch},get env(){return process.env},cwd(){return process.env.VSCODE_CWD||process.cwd()}}:ti={get platform(){return Pn?"win32":wp?"darwin":"linux"},get arch(){},get env(){return{}},cwd(){return"/"}};var wo=ti.cwd,td=ti.env,nd=ti.platform,b6=ti.arch;var bE=65,vE=97,NE=90,TE=122,ni=46,wt=47,Qt=92,pr=58,yE=63,Va=class extends Error{constructor(t,n,r){let i;typeof n=="string"&&n.indexOf("not ")===0?(i="must not be",n=n.replace(/^not /,"")):i="must be";let s=t.indexOf(".")!==-1?"property":"argument",o=`The "${t}" ${s} ${i} of type ${n}`;o+=`. Received type ${typeof r}`,super(o),this.code="ERR_INVALID_ARG_TYPE"}};function wE(e,t){if(e===null||typeof e!="object")throw new Va(t,"Object",e)}function st(e,t){if(typeof e!="string")throw new Va(t,"string",e)}var vn=nd==="win32";function Ne(e){return e===wt||e===Qt}function jc(e){return e===wt}function dr(e){return e>=bE&&e<=NE||e>=vE&&e<=TE}function $a(e,t,n,r){let i="",s=0,o=-1,a=0,u=0;for(let l=0;l<=e.length;++l){if(l<e.length)u=e.charCodeAt(l);else{if(r(u))break;u=wt}if(r(u)){if(!(o===l-1||a===1))if(a===2){if(i.length<2||s!==2||i.charCodeAt(i.length-1)!==ni||i.charCodeAt(i.length-2)!==ni){if(i.length>2){let c=i.lastIndexOf(n);c===-1?(i="",s=0):(i=i.slice(0,c),s=i.length-1-i.lastIndexOf(n)),o=l,a=0;continue}else if(i.length!==0){i="",s=0,o=l,a=0;continue}}t&&(i+=i.length>0?`${n}..`:"..",s=2)}else i.length>0?i+=`${n}${e.slice(o+1,l)}`:i=e.slice(o+1,l),s=l-o-1;o=l,a=0}else u===ni&&a!==-1?++a:a=-1}return i}function xE(e){return e?`${e[0]==="."?"":"."}${e}`:""}function rd(e,t){wE(t,"pathObject");let n=t.dir||t.root,r=t.base||`${t.name||""}${xE(t.ext)}`;return n?n===t.root?`${n}${r}`:`${n}${e}${r}`:r}var vt={resolve(...e){let t="",n="",r=!1;for(let i=e.length-1;i>=-1;i--){let s;if(i>=0){if(s=e[i],st(s,`paths[${i}]`),s.length===0)continue}else t.length===0?s=wo():(s=td[`=${t}`]||wo(),(s===void 0||s.slice(0,2).toLowerCase()!==t.toLowerCase()&&s.charCodeAt(2)===Qt)&&(s=`${t}\\`));let o=s.length,a=0,u="",l=!1,c=s.charCodeAt(0);if(o===1)Ne(c)&&(a=1,l=!0);else if(Ne(c))if(l=!0,Ne(s.charCodeAt(1))){let f=2,d=f;for(;f<o&&!Ne(s.charCodeAt(f));)f++;if(f<o&&f!==d){let m=s.slice(d,f);for(d=f;f<o&&Ne(s.charCodeAt(f));)f++;if(f<o&&f!==d){for(d=f;f<o&&!Ne(s.charCodeAt(f));)f++;(f===o||f!==d)&&(u=`\\\\${m}\\${s.slice(d,f)}`,a=f)}}}else a=1;else dr(c)&&s.charCodeAt(1)===pr&&(u=s.slice(0,2),a=2,o>2&&Ne(s.charCodeAt(2))&&(l=!0,a=3));if(u.length>0)if(t.length>0){if(u.toLowerCase()!==t.toLowerCase())continue}else t=u;if(r){if(t.length>0)break}else if(n=`${s.slice(a)}\\${n}`,r=l,l&&t.length>0)break}return n=$a(n,!r,"\\",Ne),r?`${t}\\${n}`:`${t}${n}`||"."},normalize(e){st(e,"path");let t=e.length;if(t===0)return".";let n=0,r,i=!1,s=e.charCodeAt(0);if(t===1)return jc(s)?"\\":e;if(Ne(s))if(i=!0,Ne(e.charCodeAt(1))){let a=2,u=a;for(;a<t&&!Ne(e.charCodeAt(a));)a++;if(a<t&&a!==u){let l=e.slice(u,a);for(u=a;a<t&&Ne(e.charCodeAt(a));)a++;if(a<t&&a!==u){for(u=a;a<t&&!Ne(e.charCodeAt(a));)a++;if(a===t)return`\\\\${l}\\${e.slice(u)}\\`;a!==u&&(r=`\\\\${l}\\${e.slice(u,a)}`,n=a)}}}else n=1;else dr(s)&&e.charCodeAt(1)===pr&&(r=e.slice(0,2),n=2,t>2&&Ne(e.charCodeAt(2))&&(i=!0,n=3));let o=n<t?$a(e.slice(n),!i,"\\",Ne):"";if(o.length===0&&!i&&(o="."),o.length>0&&Ne(e.charCodeAt(t-1))&&(o+="\\"),!i&&r===void 0&&e.includes(":")){if(o.length>=2&&dr(o.charCodeAt(0))&&o.charCodeAt(1)===pr)return`.\\${o}`;let a=e.indexOf(":");do if(a===t-1||Ne(e.charCodeAt(a+1)))return`.\\${o}`;while((a=e.indexOf(":",a+1))!==-1)}return r===void 0?i?`\\${o}`:o:i?`${r}\\${o}`:`${r}${o}`},isAbsolute(e){st(e,"path");let t=e.length;if(t===0)return!1;let n=e.charCodeAt(0);return Ne(n)||t>2&&dr(n)&&e.charCodeAt(1)===pr&&Ne(e.charCodeAt(2))},join(...e){if(e.length===0)return".";let t,n;for(let s=0;s<e.length;++s){let o=e[s];st(o,"path"),o.length>0&&(t===void 0?t=n=o:t+=`\\${o}`)}if(t===void 0)return".";let r=!0,i=0;if(typeof n=="string"&&Ne(n.charCodeAt(0))){++i;let s=n.length;s>1&&Ne(n.charCodeAt(1))&&(++i,s>2&&(Ne(n.charCodeAt(2))?++i:r=!1))}if(r){for(;i<t.length&&Ne(t.charCodeAt(i));)i++;i>=2&&(t=`\\${t.slice(i)}`)}return vt.normalize(t)},relative(e,t){if(st(e,"from"),st(t,"to"),e===t)return"";let n=vt.resolve(e),r=vt.resolve(t);if(n===r||(e=n.toLowerCase(),t=r.toLowerCase(),e===t))return"";if(n.length!==e.length||r.length!==t.length){let g=n.split("\\"),_=r.split("\\");g[g.length-1]===""&&g.pop(),_[_.length-1]===""&&_.pop();let T=g.length,A=_.length,S=T<A?T:A,L;for(L=0;L<S&&g[L].toLowerCase()===_[L].toLowerCase();L++);return L===0?r:L===S?A>S?_.slice(L).join("\\"):T>S?"..\\".repeat(T-1-L)+"..":"":"..\\".repeat(T-L)+_.slice(L).join("\\")}let i=0;for(;i<e.length&&e.charCodeAt(i)===Qt;)i++;let s=e.length;for(;s-1>i&&e.charCodeAt(s-1)===Qt;)s--;let o=s-i,a=0;for(;a<t.length&&t.charCodeAt(a)===Qt;)a++;let u=t.length;for(;u-1>a&&t.charCodeAt(u-1)===Qt;)u--;let l=u-a,c=o<l?o:l,f=-1,d=0;for(;d<c;d++){let g=e.charCodeAt(i+d);if(g!==t.charCodeAt(a+d))break;g===Qt&&(f=d)}if(d!==c){if(f===-1)return r}else{if(l>c){if(t.charCodeAt(a+d)===Qt)return r.slice(a+d+1);if(d===2)return r.slice(a+d)}o>c&&(e.charCodeAt(i+d)===Qt?f=d:d===2&&(f=3)),f===-1&&(f=0)}let m="";for(d=i+f+1;d<=s;++d)(d===s||e.charCodeAt(d)===Qt)&&(m+=m.length===0?"..":"\\..");return a+=f,m.length>0?`${m}${r.slice(a,u)}`:(r.charCodeAt(a)===Qt&&++a,r.slice(a,u))},toNamespacedPath(e){if(typeof e!="string"||e.length===0)return e;let t=vt.resolve(e);if(t.length<=2)return e;if(t.charCodeAt(0)===Qt){if(t.charCodeAt(1)===Qt){let n=t.charCodeAt(2);if(n!==yE&&n!==ni)return`\\\\?\\UNC\\${t.slice(2)}`}}else if(dr(t.charCodeAt(0))&&t.charCodeAt(1)===pr&&t.charCodeAt(2)===Qt)return`\\\\?\\${t}`;return t},dirname(e){st(e,"path");let t=e.length;if(t===0)return".";let n=-1,r=0,i=e.charCodeAt(0);if(t===1)return Ne(i)?e:".";if(Ne(i)){if(n=r=1,Ne(e.charCodeAt(1))){let a=2,u=a;for(;a<t&&!Ne(e.charCodeAt(a));)a++;if(a<t&&a!==u){for(u=a;a<t&&Ne(e.charCodeAt(a));)a++;if(a<t&&a!==u){for(u=a;a<t&&!Ne(e.charCodeAt(a));)a++;if(a===t)return e;a!==u&&(n=r=a+1)}}}}else dr(i)&&e.charCodeAt(1)===pr&&(n=t>2&&Ne(e.charCodeAt(2))?3:2,r=n);let s=-1,o=!0;for(let a=t-1;a>=r;--a)if(Ne(e.charCodeAt(a))){if(!o){s=a;break}}else o=!1;if(s===-1){if(n===-1)return".";s=n}return e.slice(0,s)},basename(e,t){t!==void 0&&st(t,"suffix"),st(e,"path");let n=0,r=-1,i=!0,s;if(e.length>=2&&dr(e.charCodeAt(0))&&e.charCodeAt(1)===pr&&(n=2),t!==void 0&&t.length>0&&t.length<=e.length){if(t===e)return"";let o=t.length-1,a=-1;for(s=e.length-1;s>=n;--s){let u=e.charCodeAt(s);if(Ne(u)){if(!i){n=s+1;break}}else a===-1&&(i=!1,a=s+1),o>=0&&(u===t.charCodeAt(o)?--o===-1&&(r=s):(o=-1,r=a))}return n===r?r=a:r===-1&&(r=e.length),e.slice(n,r)}for(s=e.length-1;s>=n;--s)if(Ne(e.charCodeAt(s))){if(!i){n=s+1;break}}else r===-1&&(i=!1,r=s+1);return r===-1?"":e.slice(n,r)},extname(e){st(e,"path");let t=0,n=-1,r=0,i=-1,s=!0,o=0;e.length>=2&&e.charCodeAt(1)===pr&&dr(e.charCodeAt(0))&&(t=r=2);for(let a=e.length-1;a>=t;--a){let u=e.charCodeAt(a);if(Ne(u)){if(!s){r=a+1;break}continue}i===-1&&(s=!1,i=a+1),u===ni?n===-1?n=a:o!==1&&(o=1):n!==-1&&(o=-1)}return n===-1||i===-1||o===0||o===1&&n===i-1&&n===r+1?"":e.slice(n,i)},format:rd.bind(null,"\\"),parse(e){st(e,"path");let t={root:"",dir:"",base:"",ext:"",name:""};if(e.length===0)return t;let n=e.length,r=0,i=e.charCodeAt(0);if(n===1)return Ne(i)?(t.root=t.dir=e,t):(t.base=t.name=e,t);if(Ne(i)){if(r=1,Ne(e.charCodeAt(1))){let f=2,d=f;for(;f<n&&!Ne(e.charCodeAt(f));)f++;if(f<n&&f!==d){for(d=f;f<n&&Ne(e.charCodeAt(f));)f++;if(f<n&&f!==d){for(d=f;f<n&&!Ne(e.charCodeAt(f));)f++;f===n?r=f:f!==d&&(r=f+1)}}}}else if(dr(i)&&e.charCodeAt(1)===pr){if(n<=2)return t.root=t.dir=e,t;if(r=2,Ne(e.charCodeAt(2))){if(n===3)return t.root=t.dir=e,t;r=3}}r>0&&(t.root=e.slice(0,r));let s=-1,o=r,a=-1,u=!0,l=e.length-1,c=0;for(;l>=r;--l){if(i=e.charCodeAt(l),Ne(i)){if(!u){o=l+1;break}continue}a===-1&&(u=!1,a=l+1),i===ni?s===-1?s=l:c!==1&&(c=1):s!==-1&&(c=-1)}return a!==-1&&(s===-1||c===0||c===1&&s===a-1&&s===o+1?t.base=t.name=e.slice(o,a):(t.name=e.slice(o,s),t.base=e.slice(o,a),t.ext=e.slice(s,a))),o>0&&o!==r?t.dir=e.slice(0,o-1):t.dir=t.root,t},sep:"\\",delimiter:";",win32:null,posix:null},LE=(()=>{if(vn){let e=/\\/g;return()=>{let t=wo().replace(e,"/");return t.slice(t.indexOf("/"))}}return()=>wo()})(),Ve={resolve(...e){let t="",n=!1;for(let r=e.length-1;r>=0&&!n;r--){let i=e[r];st(i,`paths[${r}]`),i.length!==0&&(t=`${i}/${t}`,n=i.charCodeAt(0)===wt)}if(!n){let r=LE();t=`${r}/${t}`,n=r.charCodeAt(0)===wt}return t=$a(t,!n,"/",jc),n?`/${t}`:t.length>0?t:"."},normalize(e){if(st(e,"path"),e.length===0)return".";let t=e.charCodeAt(0)===wt,n=e.charCodeAt(e.length-1)===wt;return e=$a(e,!t,"/",jc),e.length===0?t?"/":n?"./":".":(n&&(e+="/"),t?`/${e}`:e)},isAbsolute(e){return st(e,"path"),e.length>0&&e.charCodeAt(0)===wt},join(...e){if(e.length===0)return".";let t=[];for(let n=0;n<e.length;++n){let r=e[n];st(r,"path"),r.length>0&&t.push(r)}return t.length===0?".":Ve.normalize(t.join("/"))},relative(e,t){if(st(e,"from"),st(t,"to"),e===t||(e=Ve.resolve(e),t=Ve.resolve(t),e===t))return"";let n=1,r=e.length,i=r-n,s=1,o=t.length-s,a=i<o?i:o,u=-1,l=0;for(;l<a;l++){let f=e.charCodeAt(n+l);if(f!==t.charCodeAt(s+l))break;f===wt&&(u=l)}if(l===a)if(o>a){if(t.charCodeAt(s+l)===wt)return t.slice(s+l+1);if(l===0)return t.slice(s+l)}else i>a&&(e.charCodeAt(n+l)===wt?u=l:l===0&&(u=0));let c="";for(l=n+u+1;l<=r;++l)(l===r||e.charCodeAt(l)===wt)&&(c+=c.length===0?"..":"/..");return`${c}${t.slice(s+u)}`},toNamespacedPath(e){return e},dirname(e){if(st(e,"path"),e.length===0)return".";let t=e.charCodeAt(0)===wt,n=-1,r=!0;for(let i=e.length-1;i>=1;--i)if(e.charCodeAt(i)===wt){if(!r){n=i;break}}else r=!1;return n===-1?t?"/":".":t&&n===1?"//":e.slice(0,n)},basename(e,t){t!==void 0&&st(t,"suffix"),st(e,"path");let n=0,r=-1,i=!0,s;if(t!==void 0&&t.length>0&&t.length<=e.length){if(t===e)return"";let o=t.length-1,a=-1;for(s=e.length-1;s>=0;--s){let u=e.charCodeAt(s);if(u===wt){if(!i){n=s+1;break}}else a===-1&&(i=!1,a=s+1),o>=0&&(u===t.charCodeAt(o)?--o===-1&&(r=s):(o=-1,r=a))}return n===r?r=a:r===-1&&(r=e.length),e.slice(n,r)}for(s=e.length-1;s>=0;--s)if(e.charCodeAt(s)===wt){if(!i){n=s+1;break}}else r===-1&&(i=!1,r=s+1);return r===-1?"":e.slice(n,r)},extname(e){st(e,"path");let t=-1,n=0,r=-1,i=!0,s=0;for(let o=e.length-1;o>=0;--o){let a=e[o];if(a==="/"){if(!i){n=o+1;break}continue}r===-1&&(i=!1,r=o+1),a==="."?t===-1?t=o:s!==1&&(s=1):t!==-1&&(s=-1)}return t===-1||r===-1||s===0||s===1&&t===r-1&&t===n+1?"":e.slice(t,r)},format:rd.bind(null,"/"),parse(e){st(e,"path");let t={root:"",dir:"",base:"",ext:"",name:""};if(e.length===0)return t;let n=e.charCodeAt(0)===wt,r;n?(t.root="/",r=1):r=0;let i=-1,s=0,o=-1,a=!0,u=e.length-1,l=0;for(;u>=r;--u){let c=e.charCodeAt(u);if(c===wt){if(!a){s=u+1;break}continue}o===-1&&(a=!1,o=u+1),c===ni?i===-1?i=u:l!==1&&(l=1):i!==-1&&(l=-1)}if(o!==-1){let c=s===0&&n?1:s;i===-1||l===0||l===1&&i===o-1&&i===s+1?t.base=t.name=e.slice(c,o):(t.name=e.slice(c,i),t.base=e.slice(c,o),t.ext=e.slice(i,o))}return s>0?t.dir=e.slice(0,s-1):n&&(t.dir="/"),t},sep:"/",delimiter:":",win32:null,posix:null};Ve.win32=vt.win32=vt;Ve.posix=vt.posix=Ve;var id=vn?vt.normalize:Ve.normalize,T6=vn?vt.isAbsolute:Ve.isAbsolute,sd=vn?vt.join:Ve.join,od=vn?vt.resolve:Ve.resolve,ad=vn?vt.relative:Ve.relative,ud=vn?vt.dirname:Ve.dirname,y6=vn?vt.basename:Ve.basename,w6=vn?vt.extname:Ve.extname,x6=vn?vt.parse:Ve.parse,Ji=vn?vt.sep:Ve.sep;var AE=/^\w[\w\d+.-]*$/,FE=/^\//,SE=/^\/\//;function RE(e,t){if(!e.scheme&&t)throw new Error(`[UriError]: Scheme is missing: {scheme: "", authority: "${e.authority}", path: "${e.path}", query: "${e.query}", fragment: "${e.fragment}"}`);if(e.scheme&&!AE.test(e.scheme))throw new Error("[UriError]: Scheme contains illegal characters.");if(e.path){if(e.authority){if(!FE.test(e.path))throw new Error('[UriError]: If a URI contains an authority component, then the path component must either be empty or begin with a slash ("/") character')}else if(SE.test(e.path))throw new Error('[UriError]: If a URI does not contain an authority component, then the path cannot begin with two slash characters ("//")')}}function IE(e,t){return!e&&!t?"file":e}function OE(e,t){switch(e){case"https":case"http":case"file":t?t[0]!==Nn&&(t=Nn+t):t=Nn;break}return t}var qe="",Nn="/",kE=/^(([^:/?#]+?):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?/,at=class e{static isUri(t){return t instanceof e?!0:!t||typeof t!="object"?!1:typeof t.authority=="string"&&typeof t.fragment=="string"&&typeof t.path=="string"&&typeof t.query=="string"&&typeof t.scheme=="string"&&typeof t.fsPath=="string"&&typeof t.with=="function"&&typeof t.toString=="function"}constructor(t,n,r,i,s,o=!1){typeof t=="object"?(this.scheme=t.scheme||qe,this.authority=t.authority||qe,this.path=t.path||qe,this.query=t.query||qe,this.fragment=t.fragment||qe):(this.scheme=IE(t,o),this.authority=n||qe,this.path=OE(this.scheme,r||qe),this.query=i||qe,this.fragment=s||qe,RE(this,o))}get fsPath(){return xo(this,!1)}with(t){if(!t)return this;let{scheme:n,authority:r,path:i,query:s,fragment:o}=t;return n===void 0?n=this.scheme:n===null&&(n=qe),r===void 0?r=this.authority:r===null&&(r=qe),i===void 0?i=this.path:i===null&&(i=qe),s===void 0?s=this.query:s===null&&(s=qe),o===void 0?o=this.fragment:o===null&&(o=qe),n===this.scheme&&r===this.authority&&i===this.path&&s===this.query&&o===this.fragment?this:new Mr(n,r,i,s,o)}static parse(t,n=!1){let r=kE.exec(t);return r?new Mr(r[2]||qe,ja(r[4]||qe),ja(r[5]||qe),ja(r[7]||qe),ja(r[9]||qe),n):new Mr(qe,qe,qe,qe,qe)}static file(t){let n=qe;if(Pn&&(t=t.replace(/\\/g,Nn)),t[0]===Nn&&t[1]===Nn){let r=t.indexOf(Nn,2);r===-1?(n=t.substring(2),t=Nn):(n=t.substring(2,r),t=t.substring(r)||Nn)}return new Mr("file",n,t,qe,qe)}static from(t,n){return new Mr(t.scheme,t.authority,t.path,t.query,t.fragment,n)}static joinPath(t,...n){if(!t.path)throw new Error("[UriError]: cannot call joinPath on URI without path");let r;return Pn&&t.scheme==="file"?r=e.file(vt.join(xo(t,!0),...n)).path:r=Ve.join(t.path,...n),t.with({path:r})}toString(t=!1){return Gc(this,t)}toJSON(){return this}static revive(t){if(t){if(t instanceof e)return t;{let n=new Mr(t);return n._formatted=t.external??null,n._fsPath=t._sep===fd?t.fsPath??null:null,n}}else return t}[Symbol.for("debug.description")](){return`URI(${this.toString()})`}};var fd=Pn?1:void 0,Mr=class extends at{constructor(){super(...arguments),this._formatted=null,this._fsPath=null}get fsPath(){return this._fsPath||(this._fsPath=xo(this,!1)),this._fsPath}toString(t=!1){return t?Gc(this,!0):(this._formatted||(this._formatted=Gc(this,!1)),this._formatted)}toJSON(){let t={$mid:Ca.Uri};return this._fsPath&&(t.fsPath=this._fsPath,t._sep=fd),this._formatted&&(t.external=this._formatted),this.path&&(t.path=this.path),this.scheme&&(t.scheme=this.scheme),this.authority&&(t.authority=this.authority),this.query&&(t.query=this.query),this.fragment&&(t.fragment=this.fragment),t}},hd={[O.Colon]:"%3A",[O.Slash]:"%2F",[O.QuestionMark]:"%3F",[O.Hash]:"%23",[O.OpenSquareBracket]:"%5B",[O.CloseSquareBracket]:"%5D",[O.AtSign]:"%40",[O.ExclamationMark]:"%21",[O.DollarSign]:"%24",[O.Ampersand]:"%26",[O.SingleQuote]:"%27",[O.OpenParen]:"%28",[O.CloseParen]:"%29",[O.Asterisk]:"%2A",[O.Plus]:"%2B",[O.Comma]:"%2C",[O.Semicolon]:"%3B",[O.Equals]:"%3D",[O.Space]:"%20"};function ld(e,t,n){let r,i=-1;for(let s=0;s<e.length;s++){let o=e.charCodeAt(s);if(o>=O.a&&o<=O.z||o>=O.A&&o<=O.Z||o>=O.Digit0&&o<=O.Digit9||o===O.Dash||o===O.Period||o===O.Underline||o===O.Tilde||t&&o===O.Slash||n&&o===O.OpenSquareBracket||n&&o===O.CloseSquareBracket||n&&o===O.Colon)i!==-1&&(r+=encodeURIComponent(e.substring(i,s)),i=-1),r!==void 0&&(r+=e.charAt(s));else{r===void 0&&(r=e.substr(0,s));let a=hd[o];a!==void 0?(i!==-1&&(r+=encodeURIComponent(e.substring(i,s)),i=-1),r+=a):i===-1&&(i=s)}}return i!==-1&&(r+=encodeURIComponent(e.substring(i))),r!==void 0?r:e}function ME(e){let t;for(let n=0;n<e.length;n++){let r=e.charCodeAt(n);r===O.Hash||r===O.QuestionMark?(t===void 0&&(t=e.substr(0,n)),t+=hd[r]):t!==void 0&&(t+=e[n])}return t!==void 0?t:e}function xo(e,t){let n;return e.authority&&e.path.length>1&&e.scheme==="file"?n=`//${e.authority}${e.path}`:e.path.charCodeAt(0)===O.Slash&&(e.path.charCodeAt(1)>=O.A&&e.path.charCodeAt(1)<=O.Z||e.path.charCodeAt(1)>=O.a&&e.path.charCodeAt(1)<=O.z)&&e.path.charCodeAt(2)===O.Colon?t?n=e.path.substr(1):n=e.path[1].toLowerCase()+e.path.substr(2):n=e.path,Pn&&(n=n.replace(/\//g,"\\")),n}function Gc(e,t){let n=t?ME:ld,r="",{scheme:i,authority:s,path:o,query:a,fragment:u}=e;if(i&&(r+=i,r+=":"),(s||i==="file")&&(r+=Nn,r+=Nn),s){let l=s.indexOf("@");if(l!==-1){let c=s.substr(0,l);s=s.substr(l+1),l=c.lastIndexOf(":"),l===-1?r+=n(c,!1,!1):(r+=n(c.substr(0,l),!1,!1),r+=":",r+=n(c.substr(l+1),!1,!0)),r+="@"}s=s.toLowerCase(),l=s.lastIndexOf(":"),l===-1?r+=n(s,!1,!0):(r+=n(s.substr(0,l),!1,!0),r+=s.substr(l))}if(o){if(o.length>=3&&o.charCodeAt(0)===O.Slash&&o.charCodeAt(2)===O.Colon){let l=o.charCodeAt(1);l>=O.A&&l<=O.Z&&(o=`/${String.fromCharCode(l+32)}:${o.substr(3)}`)}else if(o.length>=2&&o.charCodeAt(1)===O.Colon){let l=o.charCodeAt(0);l>=O.A&&l<=O.Z&&(o=`${String.fromCharCode(l+32)}:${o.substr(2)}`)}r+=n(o,!0,!1)}return a&&(r+="?",r+=n(a,!1,!1)),u&&(r+="#",r+=t?u:ld(u,!1,!1)),r}function pd(e){try{return decodeURIComponent(e)}catch{return e.length>3?e.substr(0,3)+pd(e.substr(3)):e}}var cd=/(%[0-9A-Za-z][0-9A-Za-z])+/g;function ja(e){return e.match(cd)?e.replace(cd,t=>pd(t)):e}var Ur;(function(e){e[e.LTR=0]="LTR",e[e.RTL=1]="RTL"})(Ur||(Ur={}));var Ga=class e extends oe{constructor(t,n,r,i){super(t,n,r,i),this.selectionStartLineNumber=t,this.selectionStartColumn=n,this.positionLineNumber=r,this.positionColumn=i}toString(){return"["+this.selectionStartLineNumber+","+this.selectionStartColumn+" -> "+this.positionLineNumber+","+this.positionColumn+"]"}equalsSelection(t){return e.selectionsEqual(this,t)}static selectionsEqual(t,n){return t.selectionStartLineNumber===n.selectionStartLineNumber&&t.selectionStartColumn===n.selectionStartColumn&&t.positionLineNumber===n.positionLineNumber&&t.positionColumn===n.positionColumn}getDirection(){return this.selectionStartLineNumber===this.startLineNumber&&this.selectionStartColumn===this.startColumn?Ur.LTR:Ur.RTL}setEndPosition(t,n){return this.getDirection()===Ur.LTR?new e(this.startLineNumber,this.startColumn,t,n):new e(t,n,this.startLineNumber,this.startColumn)}getPosition(){return new me(this.positionLineNumber,this.positionColumn)}getSelectionStart(){return new me(this.selectionStartLineNumber,this.selectionStartColumn)}setStartPosition(t,n){return this.getDirection()===Ur.LTR?new e(t,n,this.endLineNumber,this.endColumn):new e(this.endLineNumber,this.endColumn,t,n)}static fromPositions(t,n=t){return new e(t.lineNumber,t.column,n.lineNumber,n.column)}static fromRange(t,n){return n===Ur.LTR?new e(t.startLineNumber,t.startColumn,t.endLineNumber,t.endColumn):new e(t.endLineNumber,t.endColumn,t.startLineNumber,t.startColumn)}static liftSelection(t){return new e(t.selectionStartLineNumber,t.selectionStartColumn,t.positionLineNumber,t.positionColumn)}static selectionsArrEqual(t,n){if(t&&!n||!t&&n)return!1;if(!t&&!n)return!0;if(t.length!==n.length)return!1;for(let r=0,i=t.length;r<i;r++)if(!this.selectionsEqual(t[r],n[r]))return!1;return!0}static isISelection(t){return t&&typeof t.selectionStartLineNumber=="number"&&typeof t.selectionStartColumn=="number"&&typeof t.positionLineNumber=="number"&&typeof t.positionColumn=="number"}static createWithDirection(t,n,r,i,s){return s===Ur.LTR?new e(t,n,r,i):new e(r,i,t,n)}};var dd=Object.create(null);function h(e,t){if(pp(t)){let n=dd[t];if(n===void 0)throw new Error(`${e} references an unknown codicon: ${t}`);t=n}return dd[e]=t,{id:e}}var md={add:h("add",6e4),plus:h("plus",6e4),gistNew:h("gist-new",6e4),repoCreate:h("repo-create",6e4),lightbulb:h("lightbulb",60001),lightBulb:h("light-bulb",60001),repo:h("repo",60002),repoDelete:h("repo-delete",60002),gistFork:h("gist-fork",60003),repoForked:h("repo-forked",60003),gitPullRequest:h("git-pull-request",60004),gitPullRequestAbandoned:h("git-pull-request-abandoned",60004),recordKeys:h("record-keys",60005),keyboard:h("keyboard",60005),tag:h("tag",60006),gitPullRequestLabel:h("git-pull-request-label",60006),tagAdd:h("tag-add",60006),tagRemove:h("tag-remove",60006),person:h("person",60007),personFollow:h("person-follow",60007),personOutline:h("person-outline",60007),personFilled:h("person-filled",60007),gitBranch:h("git-branch",60008),gitBranchCreate:h("git-branch-create",60008),gitBranchDelete:h("git-branch-delete",60008),sourceControl:h("source-control",60008),mirror:h("mirror",60009),mirrorPublic:h("mirror-public",60009),star:h("star",60010),starAdd:h("star-add",60010),starDelete:h("star-delete",60010),starEmpty:h("star-empty",60010),comment:h("comment",60011),commentAdd:h("comment-add",60011),alert:h("alert",60012),warning:h("warning",60012),search:h("search",60013),searchSave:h("search-save",60013),logOut:h("log-out",60014),signOut:h("sign-out",60014),logIn:h("log-in",60015),signIn:h("sign-in",60015),eye:h("eye",60016),eyeUnwatch:h("eye-unwatch",60016),eyeWatch:h("eye-watch",60016),circleFilled:h("circle-filled",60017),primitiveDot:h("primitive-dot",60017),closeDirty:h("close-dirty",60017),debugBreakpoint:h("debug-breakpoint",60017),debugBreakpointDisabled:h("debug-breakpoint-disabled",60017),debugHint:h("debug-hint",60017),terminalDecorationSuccess:h("terminal-decoration-success",60017),primitiveSquare:h("primitive-square",60018),edit:h("edit",60019),pencil:h("pencil",60019),info:h("info",60020),issueOpened:h("issue-opened",60020),gistPrivate:h("gist-private",60021),gitForkPrivate:h("git-fork-private",60021),lock:h("lock",60021),mirrorPrivate:h("mirror-private",60021),close:h("close",60022),removeClose:h("remove-close",60022),x:h("x",60022),repoSync:h("repo-sync",60023),sync:h("sync",60023),clone:h("clone",60024),desktopDownload:h("desktop-download",60024),beaker:h("beaker",60025),microscope:h("microscope",60025),vm:h("vm",60026),deviceDesktop:h("device-desktop",60026),file:h("file",60027),fileText:h("file-text",60027),more:h("more",60028),ellipsis:h("ellipsis",60028),kebabHorizontal:h("kebab-horizontal",60028),mailReply:h("mail-reply",60029),reply:h("reply",60029),organization:h("organization",60030),organizationFilled:h("organization-filled",60030),organizationOutline:h("organization-outline",60030),newFile:h("new-file",60031),fileAdd:h("file-add",60031),newFolder:h("new-folder",60032),fileDirectoryCreate:h("file-directory-create",60032),trash:h("trash",60033),trashcan:h("trashcan",60033),history:h("history",60034),clock:h("clock",60034),folder:h("folder",60035),fileDirectory:h("file-directory",60035),symbolFolder:h("symbol-folder",60035),logoGithub:h("logo-github",60036),markGithub:h("mark-github",60036),github:h("github",60036),terminal:h("terminal",60037),console:h("console",60037),repl:h("repl",60037),zap:h("zap",60038),symbolEvent:h("symbol-event",60038),error:h("error",60039),stop:h("stop",60039),variable:h("variable",60040),symbolVariable:h("symbol-variable",60040),array:h("array",60042),symbolArray:h("symbol-array",60042),symbolModule:h("symbol-module",60043),symbolPackage:h("symbol-package",60043),symbolNamespace:h("symbol-namespace",60043),symbolObject:h("symbol-object",60043),symbolMethod:h("symbol-method",60044),symbolFunction:h("symbol-function",60044),symbolConstructor:h("symbol-constructor",60044),symbolBoolean:h("symbol-boolean",60047),symbolNull:h("symbol-null",60047),symbolNumeric:h("symbol-numeric",60048),symbolNumber:h("symbol-number",60048),symbolStructure:h("symbol-structure",60049),symbolStruct:h("symbol-struct",60049),symbolParameter:h("symbol-parameter",60050),symbolTypeParameter:h("symbol-type-parameter",60050),symbolKey:h("symbol-key",60051),symbolText:h("symbol-text",60051),symbolReference:h("symbol-reference",60052),goToFile:h("go-to-file",60052),symbolEnum:h("symbol-enum",60053),symbolValue:h("symbol-value",60053),symbolRuler:h("symbol-ruler",60054),symbolUnit:h("symbol-unit",60054),activateBreakpoints:h("activate-breakpoints",60055),archive:h("archive",60056),arrowBoth:h("arrow-both",60057),arrowDown:h("arrow-down",60058),arrowLeft:h("arrow-left",60059),arrowRight:h("arrow-right",60060),arrowSmallDown:h("arrow-small-down",60061),arrowSmallLeft:h("arrow-small-left",60062),arrowSmallRight:h("arrow-small-right",60063),arrowSmallUp:h("arrow-small-up",60064),arrowUp:h("arrow-up",60065),bell:h("bell",60066),bold:h("bold",60067),book:h("book",60068),bookmark:h("bookmark",60069),debugBreakpointConditionalUnverified:h("debug-breakpoint-conditional-unverified",60070),debugBreakpointConditional:h("debug-breakpoint-conditional",60071),debugBreakpointConditionalDisabled:h("debug-breakpoint-conditional-disabled",60071),debugBreakpointDataUnverified:h("debug-breakpoint-data-unverified",60072),debugBreakpointData:h("debug-breakpoint-data",60073),debugBreakpointDataDisabled:h("debug-breakpoint-data-disabled",60073),debugBreakpointLogUnverified:h("debug-breakpoint-log-unverified",60074),debugBreakpointLog:h("debug-breakpoint-log",60075),debugBreakpointLogDisabled:h("debug-breakpoint-log-disabled",60075),briefcase:h("briefcase",60076),broadcast:h("broadcast",60077),browser:h("browser",60078),bug:h("bug",60079),calendar:h("calendar",60080),caseSensitive:h("case-sensitive",60081),check:h("check",60082),checklist:h("checklist",60083),chevronDown:h("chevron-down",60084),chevronLeft:h("chevron-left",60085),chevronRight:h("chevron-right",60086),chevronUp:h("chevron-up",60087),chromeClose:h("chrome-close",60088),chromeMaximize:h("chrome-maximize",60089),chromeMinimize:h("chrome-minimize",60090),chromeRestore:h("chrome-restore",60091),circleOutline:h("circle-outline",60092),circle:h("circle",60092),debugBreakpointUnverified:h("debug-breakpoint-unverified",60092),terminalDecorationIncomplete:h("terminal-decoration-incomplete",60092),circleSlash:h("circle-slash",60093),circuitBoard:h("circuit-board",60094),clearAll:h("clear-all",60095),clippy:h("clippy",60096),closeAll:h("close-all",60097),cloudDownload:h("cloud-download",60098),cloudUpload:h("cloud-upload",60099),code:h("code",60100),collapseAll:h("collapse-all",60101),colorMode:h("color-mode",60102),commentDiscussion:h("comment-discussion",60103),creditCard:h("credit-card",60105),dash:h("dash",60108),dashboard:h("dashboard",60109),database:h("database",60110),debugContinue:h("debug-continue",60111),debugDisconnect:h("debug-disconnect",60112),debugPause:h("debug-pause",60113),debugRestart:h("debug-restart",60114),debugStart:h("debug-start",60115),debugStepInto:h("debug-step-into",60116),debugStepOut:h("debug-step-out",60117),debugStepOver:h("debug-step-over",60118),debugStop:h("debug-stop",60119),debug:h("debug",60120),deviceCameraVideo:h("device-camera-video",60121),deviceCamera:h("device-camera",60122),deviceMobile:h("device-mobile",60123),diffAdded:h("diff-added",60124),diffIgnored:h("diff-ignored",60125),diffModified:h("diff-modified",60126),diffRemoved:h("diff-removed",60127),diffRenamed:h("diff-renamed",60128),diff:h("diff",60129),diffSidebyside:h("diff-sidebyside",60129),discard:h("discard",60130),editorLayout:h("editor-layout",60131),emptyWindow:h("empty-window",60132),exclude:h("exclude",60133),extensions:h("extensions",60134),eyeClosed:h("eye-closed",60135),fileBinary:h("file-binary",60136),fileCode:h("file-code",60137),fileMedia:h("file-media",60138),filePdf:h("file-pdf",60139),fileSubmodule:h("file-submodule",60140),fileSymlinkDirectory:h("file-symlink-directory",60141),fileSymlinkFile:h("file-symlink-file",60142),fileZip:h("file-zip",60143),files:h("files",60144),filter:h("filter",60145),flame:h("flame",60146),foldDown:h("fold-down",60147),foldUp:h("fold-up",60148),fold:h("fold",60149),folderActive:h("folder-active",60150),folderOpened:h("folder-opened",60151),gear:h("gear",60152),gift:h("gift",60153),gistSecret:h("gist-secret",60154),gist:h("gist",60155),gitCommit:h("git-commit",60156),gitCompare:h("git-compare",60157),compareChanges:h("compare-changes",60157),gitMerge:h("git-merge",60158),githubAction:h("github-action",60159),githubAlt:h("github-alt",60160),globe:h("globe",60161),grabber:h("grabber",60162),graph:h("graph",60163),gripper:h("gripper",60164),heart:h("heart",60165),home:h("home",60166),horizontalRule:h("horizontal-rule",60167),hubot:h("hubot",60168),inbox:h("inbox",60169),issueReopened:h("issue-reopened",60171),issues:h("issues",60172),italic:h("italic",60173),jersey:h("jersey",60174),json:h("json",60175),kebabVertical:h("kebab-vertical",60176),key:h("key",60177),law:h("law",60178),lightbulbAutofix:h("lightbulb-autofix",60179),linkExternal:h("link-external",60180),link:h("link",60181),listOrdered:h("list-ordered",60182),listUnordered:h("list-unordered",60183),liveShare:h("live-share",60184),loading:h("loading",60185),location:h("location",60186),mailRead:h("mail-read",60187),mail:h("mail",60188),markdown:h("markdown",60189),megaphone:h("megaphone",60190),mention:h("mention",60191),milestone:h("milestone",60192),gitPullRequestMilestone:h("git-pull-request-milestone",60192),mortarBoard:h("mortar-board",60193),move:h("move",60194),multipleWindows:h("multiple-windows",60195),mute:h("mute",60196),noNewline:h("no-newline",60197),note:h("note",60198),octoface:h("octoface",60199),openPreview:h("open-preview",60200),package:h("package",60201),paintcan:h("paintcan",60202),pin:h("pin",60203),play:h("play",60204),run:h("run",60204),plug:h("plug",60205),preserveCase:h("preserve-case",60206),preview:h("preview",60207),project:h("project",60208),pulse:h("pulse",60209),question:h("question",60210),quote:h("quote",60211),radioTower:h("radio-tower",60212),reactions:h("reactions",60213),references:h("references",60214),refresh:h("refresh",60215),regex:h("regex",60216),remoteExplorer:h("remote-explorer",60217),remote:h("remote",60218),remove:h("remove",60219),replaceAll:h("replace-all",60220),replace:h("replace",60221),repoClone:h("repo-clone",60222),repoForcePush:h("repo-force-push",60223),repoPull:h("repo-pull",60224),repoPush:h("repo-push",60225),report:h("report",60226),requestChanges:h("request-changes",60227),rocket:h("rocket",60228),rootFolderOpened:h("root-folder-opened",60229),rootFolder:h("root-folder",60230),rss:h("rss",60231),ruby:h("ruby",60232),saveAll:h("save-all",60233),saveAs:h("save-as",60234),save:h("save",60235),screenFull:h("screen-full",60236),screenNormal:h("screen-normal",60237),searchStop:h("search-stop",60238),server:h("server",60240),settingsGear:h("settings-gear",60241),settings:h("settings",60242),shield:h("shield",60243),smiley:h("smiley",60244),sortPrecedence:h("sort-precedence",60245),splitHorizontal:h("split-horizontal",60246),splitVertical:h("split-vertical",60247),squirrel:h("squirrel",60248),starFull:h("star-full",60249),starHalf:h("star-half",60250),symbolClass:h("symbol-class",60251),symbolColor:h("symbol-color",60252),symbolConstant:h("symbol-constant",60253),symbolEnumMember:h("symbol-enum-member",60254),symbolField:h("symbol-field",60255),symbolFile:h("symbol-file",60256),symbolInterface:h("symbol-interface",60257),symbolKeyword:h("symbol-keyword",60258),symbolMisc:h("symbol-misc",60259),symbolOperator:h("symbol-operator",60260),symbolProperty:h("symbol-property",60261),wrench:h("wrench",60261),wrenchSubaction:h("wrench-subaction",60261),symbolSnippet:h("symbol-snippet",60262),tasklist:h("tasklist",60263),telescope:h("telescope",60264),textSize:h("text-size",60265),threeBars:h("three-bars",60266),thumbsdown:h("thumbsdown",60267),thumbsup:h("thumbsup",60268),tools:h("tools",60269),triangleDown:h("triangle-down",60270),triangleLeft:h("triangle-left",60271),triangleRight:h("triangle-right",60272),triangleUp:h("triangle-up",60273),twitter:h("twitter",60274),unfold:h("unfold",60275),unlock:h("unlock",60276),unmute:h("unmute",60277),unverified:h("unverified",60278),verified:h("verified",60279),versions:h("versions",60280),vmActive:h("vm-active",60281),vmOutline:h("vm-outline",60282),vmRunning:h("vm-running",60283),watch:h("watch",60284),whitespace:h("whitespace",60285),wholeWord:h("whole-word",60286),window:h("window",60287),wordWrap:h("word-wrap",60288),zoomIn:h("zoom-in",60289),zoomOut:h("zoom-out",60290),listFilter:h("list-filter",60291),listFlat:h("list-flat",60292),listSelection:h("list-selection",60293),selection:h("selection",60293),listTree:h("list-tree",60294),debugBreakpointFunctionUnverified:h("debug-breakpoint-function-unverified",60295),debugBreakpointFunction:h("debug-breakpoint-function",60296),debugBreakpointFunctionDisabled:h("debug-breakpoint-function-disabled",60296),debugStackframeActive:h("debug-stackframe-active",60297),circleSmallFilled:h("circle-small-filled",60298),debugStackframeDot:h("debug-stackframe-dot",60298),terminalDecorationMark:h("terminal-decoration-mark",60298),debugStackframe:h("debug-stackframe",60299),debugStackframeFocused:h("debug-stackframe-focused",60299),debugBreakpointUnsupported:h("debug-breakpoint-unsupported",60300),symbolString:h("symbol-string",60301),debugReverseContinue:h("debug-reverse-continue",60302),debugStepBack:h("debug-step-back",60303),debugRestartFrame:h("debug-restart-frame",60304),debugAlt:h("debug-alt",60305),callIncoming:h("call-incoming",60306),callOutgoing:h("call-outgoing",60307),menu:h("menu",60308),expandAll:h("expand-all",60309),feedback:h("feedback",60310),gitPullRequestReviewer:h("git-pull-request-reviewer",60310),groupByRefType:h("group-by-ref-type",60311),ungroupByRefType:h("ungroup-by-ref-type",60312),account:h("account",60313),gitPullRequestAssignee:h("git-pull-request-assignee",60313),bellDot:h("bell-dot",60314),debugConsole:h("debug-console",60315),library:h("library",60316),output:h("output",60317),runAll:h("run-all",60318),syncIgnored:h("sync-ignored",60319),pinned:h("pinned",60320),githubInverted:h("github-inverted",60321),serverProcess:h("server-process",60322),serverEnvironment:h("server-environment",60323),pass:h("pass",60324),issueClosed:h("issue-closed",60324),stopCircle:h("stop-circle",60325),playCircle:h("play-circle",60326),record:h("record",60327),debugAltSmall:h("debug-alt-small",60328),vmConnect:h("vm-connect",60329),cloud:h("cloud",60330),merge:h("merge",60331),export:h("export",60332),graphLeft:h("graph-left",60333),magnet:h("magnet",60334),notebook:h("notebook",60335),redo:h("redo",60336),checkAll:h("check-all",60337),pinnedDirty:h("pinned-dirty",60338),passFilled:h("pass-filled",60339),circleLargeFilled:h("circle-large-filled",60340),circleLarge:h("circle-large",60341),circleLargeOutline:h("circle-large-outline",60341),combine:h("combine",60342),gather:h("gather",60342),table:h("table",60343),variableGroup:h("variable-group",60344),typeHierarchy:h("type-hierarchy",60345),typeHierarchySub:h("type-hierarchy-sub",60346),typeHierarchySuper:h("type-hierarchy-super",60347),gitPullRequestCreate:h("git-pull-request-create",60348),runAbove:h("run-above",60349),runBelow:h("run-below",60350),notebookTemplate:h("notebook-template",60351),debugRerun:h("debug-rerun",60352),workspaceTrusted:h("workspace-trusted",60353),workspaceUntrusted:h("workspace-untrusted",60354),workspaceUnknown:h("workspace-unknown",60355),terminalCmd:h("terminal-cmd",60356),terminalDebian:h("terminal-debian",60357),terminalLinux:h("terminal-linux",60358),terminalPowershell:h("terminal-powershell",60359),terminalTmux:h("terminal-tmux",60360),terminalUbuntu:h("terminal-ubuntu",60361),terminalBash:h("terminal-bash",60362),arrowSwap:h("arrow-swap",60363),copy:h("copy",60364),personAdd:h("person-add",60365),filterFilled:h("filter-filled",60366),wand:h("wand",60367),debugLineByLine:h("debug-line-by-line",60368),inspect:h("inspect",60369),layers:h("layers",60370),layersDot:h("layers-dot",60371),layersActive:h("layers-active",60372),compass:h("compass",60373),compassDot:h("compass-dot",60374),compassActive:h("compass-active",60375),azure:h("azure",60376),issueDraft:h("issue-draft",60377),gitPullRequestClosed:h("git-pull-request-closed",60378),gitPullRequestDraft:h("git-pull-request-draft",60379),debugAll:h("debug-all",60380),debugCoverage:h("debug-coverage",60381),runErrors:h("run-errors",60382),folderLibrary:h("folder-library",60383),debugContinueSmall:h("debug-continue-small",60384),beakerStop:h("beaker-stop",60385),graphLine:h("graph-line",60386),graphScatter:h("graph-scatter",60387),pieChart:h("pie-chart",60388),bracket:h("bracket",60175),bracketDot:h("bracket-dot",60389),bracketError:h("bracket-error",60390),lockSmall:h("lock-small",60391),azureDevops:h("azure-devops",60392),verifiedFilled:h("verified-filled",60393),newline:h("newline",60394),layout:h("layout",60395),layoutActivitybarLeft:h("layout-activitybar-left",60396),layoutActivitybarRight:h("layout-activitybar-right",60397),layoutPanelLeft:h("layout-panel-left",60398),layoutPanelCenter:h("layout-panel-center",60399),layoutPanelJustify:h("layout-panel-justify",60400),layoutPanelRight:h("layout-panel-right",60401),layoutPanel:h("layout-panel",60402),layoutSidebarLeft:h("layout-sidebar-left",60403),layoutSidebarRight:h("layout-sidebar-right",60404),layoutStatusbar:h("layout-statusbar",60405),layoutMenubar:h("layout-menubar",60406),layoutCentered:h("layout-centered",60407),target:h("target",60408),indent:h("indent",60409),recordSmall:h("record-small",60410),errorSmall:h("error-small",60411),terminalDecorationError:h("terminal-decoration-error",60411),arrowCircleDown:h("arrow-circle-down",60412),arrowCircleLeft:h("arrow-circle-left",60413),arrowCircleRight:h("arrow-circle-right",60414),arrowCircleUp:h("arrow-circle-up",60415),layoutSidebarRightOff:h("layout-sidebar-right-off",60416),layoutPanelOff:h("layout-panel-off",60417),layoutSidebarLeftOff:h("layout-sidebar-left-off",60418),blank:h("blank",60419),heartFilled:h("heart-filled",60420),map:h("map",60421),mapHorizontal:h("map-horizontal",60421),foldHorizontal:h("fold-horizontal",60421),mapFilled:h("map-filled",60422),mapHorizontalFilled:h("map-horizontal-filled",60422),foldHorizontalFilled:h("fold-horizontal-filled",60422),circleSmall:h("circle-small",60423),bellSlash:h("bell-slash",60424),bellSlashDot:h("bell-slash-dot",60425),commentUnresolved:h("comment-unresolved",60426),gitPullRequestGoToChanges:h("git-pull-request-go-to-changes",60427),gitPullRequestNewChanges:h("git-pull-request-new-changes",60428),searchFuzzy:h("search-fuzzy",60429),commentDraft:h("comment-draft",60430),send:h("send",60431),sparkle:h("sparkle",60432),insert:h("insert",60433),mic:h("mic",60434),thumbsdownFilled:h("thumbsdown-filled",60435),thumbsupFilled:h("thumbsup-filled",60436),coffee:h("coffee",60437),snake:h("snake",60438),game:h("game",60439),vr:h("vr",60440),chip:h("chip",60441),piano:h("piano",60442),music:h("music",60443),micFilled:h("mic-filled",60444),repoFetch:h("repo-fetch",60445),copilot:h("copilot",60446),lightbulbSparkle:h("lightbulb-sparkle",60447),robot:h("robot",60448),sparkleFilled:h("sparkle-filled",60449),diffSingle:h("diff-single",60450),diffMultiple:h("diff-multiple",60451),surroundWith:h("surround-with",60452),share:h("share",60453),gitStash:h("git-stash",60454),gitStashApply:h("git-stash-apply",60455),gitStashPop:h("git-stash-pop",60456),vscode:h("vscode",60457),vscodeInsiders:h("vscode-insiders",60458),codeOss:h("code-oss",60459),runCoverage:h("run-coverage",60460),runAllCoverage:h("run-all-coverage",60461),coverage:h("coverage",60462),githubProject:h("github-project",60463),mapVertical:h("map-vertical",60464),foldVertical:h("fold-vertical",60464),mapVerticalFilled:h("map-vertical-filled",60465),foldVerticalFilled:h("fold-vertical-filled",60465),goToSearch:h("go-to-search",60466),percentage:h("percentage",60467),sortPercentage:h("sort-percentage",60467),attach:h("attach",60468),goToEditingSession:h("go-to-editing-session",60469),editSession:h("edit-session",60470),codeReview:h("code-review",60471),copilotWarning:h("copilot-warning",60472),python:h("python",60473),copilotLarge:h("copilot-large",60474),copilotWarningLarge:h("copilot-warning-large",60475),keyboardTab:h("keyboard-tab",60476),copilotBlocked:h("copilot-blocked",60477),copilotNotConnected:h("copilot-not-connected",60478),flag:h("flag",60479),lightbulbEmpty:h("lightbulb-empty",60480),symbolMethodArrow:h("symbol-method-arrow",60481),copilotUnavailable:h("copilot-unavailable",60482),repoPinned:h("repo-pinned",60483),keyboardTabAbove:h("keyboard-tab-above",60484),keyboardTabBelow:h("keyboard-tab-below",60485),gitPullRequestDone:h("git-pull-request-done",60486),mcp:h("mcp",60487),extensionsLarge:h("extensions-large",60488),layoutPanelDock:h("layout-panel-dock",60489),layoutSidebarLeftDock:h("layout-sidebar-left-dock",60490),layoutSidebarRightDock:h("layout-sidebar-right-dock",60491),copilotInProgress:h("copilot-in-progress",60492),copilotError:h("copilot-error",60493),copilotSuccess:h("copilot-success",60494),chatSparkle:h("chat-sparkle",60495),searchSparkle:h("search-sparkle",60496),editSparkle:h("edit-sparkle",60497),copilotSnooze:h("copilot-snooze",60498)};var UE={dialogError:h("dialog-error","error"),dialogWarning:h("dialog-warning","warning"),dialogInfo:h("dialog-info","info"),dialogClose:h("dialog-close","close"),treeItemExpanded:h("tree-item-expanded","chevron-down"),treeFilterOnTypeOn:h("tree-filter-on-type-on","list-filter"),treeFilterOnTypeOff:h("tree-filter-on-type-off","list-selection"),treeFilterClear:h("tree-filter-clear","close"),treeItemLoading:h("tree-item-loading","loading"),menuSelection:h("menu-selection","check"),menuSubmenu:h("menu-submenu","chevron-right"),menuBarMore:h("menubar-more","more"),scrollbarButtonLeft:h("scrollbar-button-left","triangle-left"),scrollbarButtonRight:h("scrollbar-button-right","triangle-right"),scrollbarButtonUp:h("scrollbar-button-up","triangle-up"),scrollbarButtonDown:h("scrollbar-button-down","triangle-down"),toolBarMore:h("toolbar-more","more"),quickInputBack:h("quick-input-back","arrow-left"),dropDownButton:h("drop-down-button",60084),symbolCustomColor:h("symbol-customcolor",60252),exportIcon:h("export",60332),workspaceUnspecified:h("workspace-unspecified",60355),newLine:h("newline",60394),thumbsDownFilled:h("thumbsdown-filled",60435),thumbsUpFilled:h("thumbsup-filled",60436),gitFetch:h("git-fetch",60445),lightbulbSparkleAutofix:h("lightbulb-sparkle-autofix",60447),debugBreakpointPending:h("debug-breakpoint-pending",60377)},ce={...md,...UE};var gd;(function(e){e[e.Null=0]="Null",e[e.PlainText=1]="PlainText"})(gd||(gd={}));var _d;(function(e){e[e.NotSet=-1]="NotSet",e[e.None=0]="None",e[e.Italic=1]="Italic",e[e.Bold=2]="Bold",e[e.Underline=4]="Underline",e[e.Strikethrough=8]="Strikethrough"})(_d||(_d={}));var Lo;(function(e){e[e.None=0]="None",e[e.DefaultForeground=1]="DefaultForeground",e[e.DefaultBackground=2]="DefaultBackground"})(Lo||(Lo={}));var Ed;(function(e){e[e.Other=0]="Other",e[e.Comment=1]="Comment",e[e.String=2]="String",e[e.RegEx=3]="RegEx"})(Ed||(Ed={}));var Dd;(function(e){e[e.LANGUAGEID_MASK=255]="LANGUAGEID_MASK",e[e.TOKEN_TYPE_MASK=768]="TOKEN_TYPE_MASK",e[e.BALANCED_BRACKETS_MASK=1024]="BALANCED_BRACKETS_MASK",e[e.FONT_STYLE_MASK=30720]="FONT_STYLE_MASK",e[e.FOREGROUND_MASK=16744448]="FOREGROUND_MASK",e[e.BACKGROUND_MASK=4278190080]="BACKGROUND_MASK",e[e.ITALIC_MASK=2048]="ITALIC_MASK",e[e.BOLD_MASK=4096]="BOLD_MASK",e[e.UNDERLINE_MASK=8192]="UNDERLINE_MASK",e[e.STRIKETHROUGH_MASK=16384]="STRIKETHROUGH_MASK",e[e.SEMANTIC_USE_ITALIC=1]="SEMANTIC_USE_ITALIC",e[e.SEMANTIC_USE_BOLD=2]="SEMANTIC_USE_BOLD",e[e.SEMANTIC_USE_UNDERLINE=4]="SEMANTIC_USE_UNDERLINE",e[e.SEMANTIC_USE_STRIKETHROUGH=8]="SEMANTIC_USE_STRIKETHROUGH",e[e.SEMANTIC_USE_FOREGROUND=16]="SEMANTIC_USE_FOREGROUND",e[e.SEMANTIC_USE_BACKGROUND=32]="SEMANTIC_USE_BACKGROUND",e[e.LANGUAGEID_OFFSET=0]="LANGUAGEID_OFFSET",e[e.TOKEN_TYPE_OFFSET=8]="TOKEN_TYPE_OFFSET",e[e.BALANCED_BRACKETS_OFFSET=10]="BALANCED_BRACKETS_OFFSET",e[e.FONT_STYLE_OFFSET=11]="FONT_STYLE_OFFSET",e[e.FOREGROUND_OFFSET=15]="FOREGROUND_OFFSET",e[e.BACKGROUND_OFFSET=24]="BACKGROUND_OFFSET"})(Dd||(Dd={}));var qa=class{constructor(){this._tokenizationSupports=new Map,this._factories=new Map,this._onDidChange=new bt,this.onDidChange=this._onDidChange.event,this._colorMap=null}handleChange(t){this._onDidChange.fire({changedLanguages:t,changedColorMap:!1})}register(t,n){return this._tokenizationSupports.set(t,n),this.handleChange([t]),Dn(()=>{this._tokenizationSupports.get(t)===n&&(this._tokenizationSupports.delete(t),this.handleChange([t]))})}get(t){return this._tokenizationSupports.get(t)||null}registerFactory(t,n){this._factories.get(t)?.dispose();let r=new qc(this,t,n);return this._factories.set(t,r),Dn(()=>{let i=this._factories.get(t);!i||i!==r||(this._factories.delete(t),i.dispose())})}async getOrCreate(t){let n=this.get(t);if(n)return n;let r=this._factories.get(t);return!r||r.isResolved?null:(await r.resolve(),this.get(t))}isResolved(t){if(this.get(t))return!0;let r=this._factories.get(t);return!!(!r||r.isResolved)}setColorMap(t){this._colorMap=t,this._onDidChange.fire({changedLanguages:Array.from(this._tokenizationSupports.keys()),changedColorMap:!0})}getColorMap(){return this._colorMap}getDefaultBackground(){return this._colorMap&&this._colorMap.length>Lo.DefaultBackground?this._colorMap[Lo.DefaultBackground]:null}},qc=class extends Mn{get isResolved(){return this._isResolved}constructor(t,n,r){super(),this._registry=t,this._languageId=n,this._factory=r,this._isDisposed=!1,this._resolvePromise=null,this._isResolved=!1}dispose(){this._isDisposed=!0,super.dispose()}async resolve(){return this._resolvePromise||(this._resolvePromise=this._create()),this._resolvePromise}async _create(){let t=await this._factory.tokenizationSupport;this._isResolved=!0,t&&!this._isDisposed&&this._register(this._registry.register(this._languageId,t))}};var Ha=class{constructor(t,n,r){this.offset=t,this.type=n,this.language=r,this._tokenBrand=void 0}toString(){return"("+this.offset+", "+this.type+")"}};var bd;(function(e){e[e.Increase=0]="Increase",e[e.Decrease=1]="Decrease"})(bd||(bd={}));var j;(function(e){e[e.Method=0]="Method",e[e.Function=1]="Function",e[e.Constructor=2]="Constructor",e[e.Field=3]="Field",e[e.Variable=4]="Variable",e[e.Class=5]="Class",e[e.Struct=6]="Struct",e[e.Interface=7]="Interface",e[e.Module=8]="Module",e[e.Property=9]="Property",e[e.Event=10]="Event",e[e.Operator=11]="Operator",e[e.Unit=12]="Unit",e[e.Value=13]="Value",e[e.Constant=14]="Constant",e[e.Enum=15]="Enum",e[e.EnumMember=16]="EnumMember",e[e.Keyword=17]="Keyword",e[e.Text=18]="Text",e[e.Color=19]="Color",e[e.File=20]="File",e[e.Reference=21]="Reference",e[e.Customcolor=22]="Customcolor",e[e.Folder=23]="Folder",e[e.TypeParameter=24]="TypeParameter",e[e.User=25]="User",e[e.Issue=26]="Issue",e[e.Tool=27]="Tool",e[e.Snippet=28]="Snippet"})(j||(j={}));var vd;(function(e){let t=new Map;t.set(j.Method,ce.symbolMethod),t.set(j.Function,ce.symbolFunction),t.set(j.Constructor,ce.symbolConstructor),t.set(j.Field,ce.symbolField),t.set(j.Variable,ce.symbolVariable),t.set(j.Class,ce.symbolClass),t.set(j.Struct,ce.symbolStruct),t.set(j.Interface,ce.symbolInterface),t.set(j.Module,ce.symbolModule),t.set(j.Property,ce.symbolProperty),t.set(j.Event,ce.symbolEvent),t.set(j.Operator,ce.symbolOperator),t.set(j.Unit,ce.symbolUnit),t.set(j.Value,ce.symbolValue),t.set(j.Enum,ce.symbolEnum),t.set(j.Constant,ce.symbolConstant),t.set(j.Enum,ce.symbolEnum),t.set(j.EnumMember,ce.symbolEnumMember),t.set(j.Keyword,ce.symbolKeyword),t.set(j.Snippet,ce.symbolSnippet),t.set(j.Text,ce.symbolText),t.set(j.Color,ce.symbolColor),t.set(j.File,ce.symbolFile),t.set(j.Reference,ce.symbolReference),t.set(j.Customcolor,ce.symbolCustomColor),t.set(j.Folder,ce.symbolFolder),t.set(j.TypeParameter,ce.symbolTypeParameter),t.set(j.User,ce.account),t.set(j.Issue,ce.issues),t.set(j.Tool,ce.tools);function n(o){let a=t.get(o);return a||(console.info("No codicon found for CompletionItemKind "+o),a=ce.symbolProperty),a}e.toIcon=n;function r(o){switch(o){case j.Method:return he(776,"Method");case j.Function:return he(777,"Function");case j.Constructor:return he(778,"Constructor");case j.Field:return he(779,"Field");case j.Variable:return he(780,"Variable");case j.Class:return he(781,"Class");case j.Struct:return he(782,"Struct");case j.Interface:return he(783,"Interface");case j.Module:return he(784,"Module");case j.Property:return he(785,"Property");case j.Event:return he(786,"Event");case j.Operator:return he(787,"Operator");case j.Unit:return he(788,"Unit");case j.Value:return he(789,"Value");case j.Constant:return he(790,"Constant");case j.Enum:return he(791,"Enum");case j.EnumMember:return he(792,"Enum Member");case j.Keyword:return he(793,"Keyword");case j.Text:return he(794,"Text");case j.Color:return he(795,"Color");case j.File:return he(796,"File");case j.Reference:return he(797,"Reference");case j.Customcolor:return he(798,"Custom Color");case j.Folder:return he(799,"Folder");case j.TypeParameter:return he(800,"Type Parameter");case j.User:return he(801,"User");case j.Issue:return he(802,"Issue");case j.Tool:return he(803,"Tool");case j.Snippet:return he(804,"Snippet");default:return""}}e.toLabel=r;let i=new Map;i.set("method",j.Method),i.set("function",j.Function),i.set("constructor",j.Constructor),i.set("field",j.Field),i.set("variable",j.Variable),i.set("class",j.Class),i.set("struct",j.Struct),i.set("interface",j.Interface),i.set("module",j.Module),i.set("property",j.Property),i.set("event",j.Event),i.set("operator",j.Operator),i.set("unit",j.Unit),i.set("value",j.Value),i.set("constant",j.Constant),i.set("enum",j.Enum),i.set("enum-member",j.EnumMember),i.set("enumMember",j.EnumMember),i.set("keyword",j.Keyword),i.set("snippet",j.Snippet),i.set("text",j.Text),i.set("color",j.Color),i.set("file",j.File),i.set("reference",j.Reference),i.set("customcolor",j.Customcolor),i.set("folder",j.Folder),i.set("type-parameter",j.TypeParameter),i.set("typeParameter",j.TypeParameter),i.set("account",j.User),i.set("issue",j.Issue),i.set("tool",j.Tool);function s(o,a){let u=i.get(o);return typeof u>"u"&&!a&&(u=j.Property),u}e.fromString=s})(vd||(vd={}));var Nd;(function(e){e[e.Deprecated=1]="Deprecated"})(Nd||(Nd={}));var Td;(function(e){e[e.None=0]="None",e[e.KeepWhitespace=1]="KeepWhitespace",e[e.InsertAsSnippet=4]="InsertAsSnippet"})(Td||(Td={}));var yd;(function(e){e[e.Word=0]="Word",e[e.Line=1]="Line",e[e.Suggest=2]="Suggest"})(yd||(yd={}));var wd;(function(e){e[e.Invoke=0]="Invoke",e[e.TriggerCharacter=1]="TriggerCharacter",e[e.TriggerForIncompleteCompletions=2]="TriggerForIncompleteCompletions"})(wd||(wd={}));var xd;(function(e){e[e.Automatic=0]="Automatic",e[e.Explicit=1]="Explicit"})(xd||(xd={}));var Ld;(function(e){e[e.Accepted=0]="Accepted",e[e.Rejected=1]="Rejected",e[e.Ignored=2]="Ignored"})(Ld||(Ld={}));var Ad;(function(e){e[e.Invoke=1]="Invoke",e[e.Auto=2]="Auto"})(Ad||(Ad={}));var Fd;(function(e){e[e.Automatic=0]="Automatic",e[e.PasteAs=1]="PasteAs"})(Fd||(Fd={}));var Sd;(function(e){e[e.Invoke=1]="Invoke",e[e.TriggerCharacter=2]="TriggerCharacter",e[e.ContentChange=3]="ContentChange"})(Sd||(Sd={}));var Rd;(function(e){e[e.Text=0]="Text",e[e.Read=1]="Read",e[e.Write=2]="Write"})(Rd||(Rd={}));var ie;(function(e){e[e.File=0]="File",e[e.Module=1]="Module",e[e.Namespace=2]="Namespace",e[e.Package=3]="Package",e[e.Class=4]="Class",e[e.Method=5]="Method",e[e.Property=6]="Property",e[e.Field=7]="Field",e[e.Constructor=8]="Constructor",e[e.Enum=9]="Enum",e[e.Interface=10]="Interface",e[e.Function=11]="Function",e[e.Variable=12]="Variable",e[e.Constant=13]="Constant",e[e.String=14]="String",e[e.Number=15]="Number",e[e.Boolean=16]="Boolean",e[e.Array=17]="Array",e[e.Object=18]="Object",e[e.Key=19]="Key",e[e.Null=20]="Null",e[e.EnumMember=21]="EnumMember",e[e.Struct=22]="Struct",e[e.Event=23]="Event",e[e.Operator=24]="Operator",e[e.TypeParameter=25]="TypeParameter"})(ie||(ie={}));var r3={[ie.Array]:he(805,"array"),[ie.Boolean]:he(806,"boolean"),[ie.Class]:he(807,"class"),[ie.Constant]:he(808,"constant"),[ie.Constructor]:he(809,"constructor"),[ie.Enum]:he(810,"enumeration"),[ie.EnumMember]:he(811,"enumeration member"),[ie.Event]:he(812,"event"),[ie.Field]:he(813,"field"),[ie.File]:he(814,"file"),[ie.Function]:he(815,"function"),[ie.Interface]:he(816,"interface"),[ie.Key]:he(817,"key"),[ie.Method]:he(818,"method"),[ie.Module]:he(819,"module"),[ie.Namespace]:he(820,"namespace"),[ie.Null]:he(821,"null"),[ie.Number]:he(822,"number"),[ie.Object]:he(823,"object"),[ie.Operator]:he(824,"operator"),[ie.Package]:he(825,"package"),[ie.Property]:he(826,"property"),[ie.String]:he(827,"string"),[ie.Struct]:he(828,"struct"),[ie.TypeParameter]:he(829,"type parameter"),[ie.Variable]:he(830,"variable")};var Id;(function(e){e[e.Deprecated=1]="Deprecated"})(Id||(Id={}));var Od;(function(e){let t=new Map;t.set(ie.File,ce.symbolFile),t.set(ie.Module,ce.symbolModule),t.set(ie.Namespace,ce.symbolNamespace),t.set(ie.Package,ce.symbolPackage),t.set(ie.Class,ce.symbolClass),t.set(ie.Method,ce.symbolMethod),t.set(ie.Property,ce.symbolProperty),t.set(ie.Field,ce.symbolField),t.set(ie.Constructor,ce.symbolConstructor),t.set(ie.Enum,ce.symbolEnum),t.set(ie.Interface,ce.symbolInterface),t.set(ie.Function,ce.symbolFunction),t.set(ie.Variable,ce.symbolVariable),t.set(ie.Constant,ce.symbolConstant),t.set(ie.String,ce.symbolString),t.set(ie.Number,ce.symbolNumber),t.set(ie.Boolean,ce.symbolBoolean),t.set(ie.Array,ce.symbolArray),t.set(ie.Object,ce.symbolObject),t.set(ie.Key,ce.symbolKey),t.set(ie.Null,ce.symbolNull),t.set(ie.EnumMember,ce.symbolEnumMember),t.set(ie.Struct,ce.symbolStruct),t.set(ie.Event,ce.symbolEvent),t.set(ie.Operator,ce.symbolOperator),t.set(ie.TypeParameter,ce.symbolTypeParameter);function n(s){let o=t.get(s);return o||(console.info("No codicon found for SymbolKind "+s),o=ce.symbolProperty),o}e.toIcon=n;let r=new Map;r.set(ie.File,j.File),r.set(ie.Module,j.Module),r.set(ie.Namespace,j.Module),r.set(ie.Package,j.Module),r.set(ie.Class,j.Class),r.set(ie.Method,j.Method),r.set(ie.Property,j.Property),r.set(ie.Field,j.Field),r.set(ie.Constructor,j.Constructor),r.set(ie.Enum,j.Enum),r.set(ie.Interface,j.Interface),r.set(ie.Function,j.Function),r.set(ie.Variable,j.Variable),r.set(ie.Constant,j.Constant),r.set(ie.String,j.Text),r.set(ie.Number,j.Value),r.set(ie.Boolean,j.Value),r.set(ie.Array,j.Value),r.set(ie.Object,j.Value),r.set(ie.Key,j.Keyword),r.set(ie.Null,j.Value),r.set(ie.EnumMember,j.EnumMember),r.set(ie.Struct,j.Struct),r.set(ie.Event,j.Event),r.set(ie.Operator,j.Operator),r.set(ie.TypeParameter,j.TypeParameter);function i(s){let o=r.get(s);return o===void 0&&(console.info("No completion kind found for SymbolKind "+s),o=j.File),o}e.toCompletionKind=i})(Od||(Od={}));var kd=class e{static{this.Comment=new e("comment")}static{this.Imports=new e("imports")}static{this.Region=new e("region")}static fromValue(t){switch(t){case"comment":return e.Comment;case"imports":return e.Imports;case"region":return e.Region}return new e(t)}constructor(t){this.value=t}},Md;(function(e){e[e.AIGenerated=1]="AIGenerated"})(Md||(Md={}));var Ud;(function(e){e[e.Invoke=0]="Invoke",e[e.Automatic=1]="Automatic"})(Ud||(Ud={}));var Pd;(function(e){function t(n){return!n||typeof n!="object"?!1:typeof n.id=="string"&&typeof n.title=="string"}e.is=t})(Pd||(Pd={}));var Bd;(function(e){e[e.Collapsed=0]="Collapsed",e[e.Expanded=1]="Expanded"})(Bd||(Bd={}));var Cd;(function(e){e[e.Unresolved=0]="Unresolved",e[e.Resolved=1]="Resolved"})(Cd||(Cd={}));var Vd;(function(e){e[e.Current=0]="Current",e[e.Outdated=1]="Outdated"})(Vd||(Vd={}));var $d;(function(e){e[e.Editing=0]="Editing",e[e.Preview=1]="Preview"})($d||($d={}));var jd;(function(e){e[e.Published=0]="Published",e[e.Draft=1]="Draft"})(jd||(jd={}));var Gd;(function(e){e[e.Type=1]="Type",e[e.Parameter=2]="Parameter"})(Gd||(Gd={}));var i3=new qa,qd;(function(e){e[e.None=0]="None",e[e.Option=1]="Option",e[e.Default=2]="Default",e[e.Preferred=3]="Preferred"})(qd||(qd={}));var Hd;(function(e){e[e.Unknown=0]="Unknown",e[e.Disabled=1]="Disabled",e[e.Enabled=2]="Enabled"})(Hd||(Hd={}));var Wd;(function(e){e[e.Invoke=1]="Invoke",e[e.Auto=2]="Auto"})(Wd||(Wd={}));var zd;(function(e){e[e.None=0]="None",e[e.KeepWhitespace=1]="KeepWhitespace",e[e.InsertAsSnippet=4]="InsertAsSnippet"})(zd||(zd={}));var Qd;(function(e){e[e.Method=0]="Method",e[e.Function=1]="Function",e[e.Constructor=2]="Constructor",e[e.Field=3]="Field",e[e.Variable=4]="Variable",e[e.Class=5]="Class",e[e.Struct=6]="Struct",e[e.Interface=7]="Interface",e[e.Module=8]="Module",e[e.Property=9]="Property",e[e.Event=10]="Event",e[e.Operator=11]="Operator",e[e.Unit=12]="Unit",e[e.Value=13]="Value",e[e.Constant=14]="Constant",e[e.Enum=15]="Enum",e[e.EnumMember=16]="EnumMember",e[e.Keyword=17]="Keyword",e[e.Text=18]="Text",e[e.Color=19]="Color",e[e.File=20]="File",e[e.Reference=21]="Reference",e[e.Customcolor=22]="Customcolor",e[e.Folder=23]="Folder",e[e.TypeParameter=24]="TypeParameter",e[e.User=25]="User",e[e.Issue=26]="Issue",e[e.Tool=27]="Tool",e[e.Snippet=28]="Snippet"})(Qd||(Qd={}));var Yd;(function(e){e[e.Deprecated=1]="Deprecated"})(Yd||(Yd={}));var Xd;(function(e){e[e.Invoke=0]="Invoke",e[e.TriggerCharacter=1]="TriggerCharacter",e[e.TriggerForIncompleteCompletions=2]="TriggerForIncompleteCompletions"})(Xd||(Xd={}));var Jd;(function(e){e[e.EXACT=0]="EXACT",e[e.ABOVE=1]="ABOVE",e[e.BELOW=2]="BELOW"})(Jd||(Jd={}));var Zd;(function(e){e[e.NotSet=0]="NotSet",e[e.ContentFlush=1]="ContentFlush",e[e.RecoverFromMarkers=2]="RecoverFromMarkers",e[e.Explicit=3]="Explicit",e[e.Paste=4]="Paste",e[e.Undo=5]="Undo",e[e.Redo=6]="Redo"})(Zd||(Zd={}));var Kd;(function(e){e[e.LF=1]="LF",e[e.CRLF=2]="CRLF"})(Kd||(Kd={}));var e0;(function(e){e[e.Text=0]="Text",e[e.Read=1]="Read",e[e.Write=2]="Write"})(e0||(e0={}));var t0;(function(e){e[e.None=0]="None",e[e.Keep=1]="Keep",e[e.Brackets=2]="Brackets",e[e.Advanced=3]="Advanced",e[e.Full=4]="Full"})(t0||(t0={}));var n0;(function(e){e[e.acceptSuggestionOnCommitCharacter=0]="acceptSuggestionOnCommitCharacter",e[e.acceptSuggestionOnEnter=1]="acceptSuggestionOnEnter",e[e.accessibilitySupport=2]="accessibilitySupport",e[e.accessibilityPageSize=3]="accessibilityPageSize",e[e.allowVariableLineHeights=4]="allowVariableLineHeights",e[e.allowVariableFonts=5]="allowVariableFonts",e[e.allowVariableFontsInAccessibilityMode=6]="allowVariableFontsInAccessibilityMode",e[e.ariaLabel=7]="ariaLabel",e[e.ariaRequired=8]="ariaRequired",e[e.autoClosingBrackets=9]="autoClosingBrackets",e[e.autoClosingComments=10]="autoClosingComments",e[e.screenReaderAnnounceInlineSuggestion=11]="screenReaderAnnounceInlineSuggestion",e[e.autoClosingDelete=12]="autoClosingDelete",e[e.autoClosingOvertype=13]="autoClosingOvertype",e[e.autoClosingQuotes=14]="autoClosingQuotes",e[e.autoIndent=15]="autoIndent",e[e.autoIndentOnPaste=16]="autoIndentOnPaste",e[e.autoIndentOnPasteWithinString=17]="autoIndentOnPasteWithinString",e[e.automaticLayout=18]="automaticLayout",e[e.autoSurround=19]="autoSurround",e[e.bracketPairColorization=20]="bracketPairColorization",e[e.guides=21]="guides",e[e.codeLens=22]="codeLens",e[e.codeLensFontFamily=23]="codeLensFontFamily",e[e.codeLensFontSize=24]="codeLensFontSize",e[e.colorDecorators=25]="colorDecorators",e[e.colorDecoratorsLimit=26]="colorDecoratorsLimit",e[e.columnSelection=27]="columnSelection",e[e.comments=28]="comments",e[e.contextmenu=29]="contextmenu",e[e.copyWithSyntaxHighlighting=30]="copyWithSyntaxHighlighting",e[e.cursorBlinking=31]="cursorBlinking",e[e.cursorSmoothCaretAnimation=32]="cursorSmoothCaretAnimation",e[e.cursorStyle=33]="cursorStyle",e[e.cursorSurroundingLines=34]="cursorSurroundingLines",e[e.cursorSurroundingLinesStyle=35]="cursorSurroundingLinesStyle",e[e.cursorWidth=36]="cursorWidth",e[e.disableLayerHinting=37]="disableLayerHinting",e[e.disableMonospaceOptimizations=38]="disableMonospaceOptimizations",e[e.domReadOnly=39]="domReadOnly",e[e.dragAndDrop=40]="dragAndDrop",e[e.dropIntoEditor=41]="dropIntoEditor",e[e.editContext=42]="editContext",e[e.emptySelectionClipboard=43]="emptySelectionClipboard",e[e.experimentalGpuAcceleration=44]="experimentalGpuAcceleration",e[e.experimentalWhitespaceRendering=45]="experimentalWhitespaceRendering",e[e.extraEditorClassName=46]="extraEditorClassName",e[e.fastScrollSensitivity=47]="fastScrollSensitivity",e[e.find=48]="find",e[e.fixedOverflowWidgets=49]="fixedOverflowWidgets",e[e.folding=50]="folding",e[e.foldingStrategy=51]="foldingStrategy",e[e.foldingHighlight=52]="foldingHighlight",e[e.foldingImportsByDefault=53]="foldingImportsByDefault",e[e.foldingMaximumRegions=54]="foldingMaximumRegions",e[e.unfoldOnClickAfterEndOfLine=55]="unfoldOnClickAfterEndOfLine",e[e.fontFamily=56]="fontFamily",e[e.fontInfo=57]="fontInfo",e[e.fontLigatures=58]="fontLigatures",e[e.fontSize=59]="fontSize",e[e.fontWeight=60]="fontWeight",e[e.fontVariations=61]="fontVariations",e[e.formatOnPaste=62]="formatOnPaste",e[e.formatOnType=63]="formatOnType",e[e.glyphMargin=64]="glyphMargin",e[e.gotoLocation=65]="gotoLocation",e[e.hideCursorInOverviewRuler=66]="hideCursorInOverviewRuler",e[e.hover=67]="hover",e[e.inDiffEditor=68]="inDiffEditor",e[e.inlineSuggest=69]="inlineSuggest",e[e.letterSpacing=70]="letterSpacing",e[e.lightbulb=71]="lightbulb",e[e.lineDecorationsWidth=72]="lineDecorationsWidth",e[e.lineHeight=73]="lineHeight",e[e.lineNumbers=74]="lineNumbers",e[e.lineNumbersMinChars=75]="lineNumbersMinChars",e[e.linkedEditing=76]="linkedEditing",e[e.links=77]="links",e[e.matchBrackets=78]="matchBrackets",e[e.minimap=79]="minimap",e[e.mouseStyle=80]="mouseStyle",e[e.mouseWheelScrollSensitivity=81]="mouseWheelScrollSensitivity",e[e.mouseWheelZoom=82]="mouseWheelZoom",e[e.multiCursorMergeOverlapping=83]="multiCursorMergeOverlapping",e[e.multiCursorModifier=84]="multiCursorModifier",e[e.multiCursorPaste=85]="multiCursorPaste",e[e.multiCursorLimit=86]="multiCursorLimit",e[e.occurrencesHighlight=87]="occurrencesHighlight",e[e.occurrencesHighlightDelay=88]="occurrencesHighlightDelay",e[e.overtypeCursorStyle=89]="overtypeCursorStyle",e[e.overtypeOnPaste=90]="overtypeOnPaste",e[e.overviewRulerBorder=91]="overviewRulerBorder",e[e.overviewRulerLanes=92]="overviewRulerLanes",e[e.padding=93]="padding",e[e.pasteAs=94]="pasteAs",e[e.parameterHints=95]="parameterHints",e[e.peekWidgetDefaultFocus=96]="peekWidgetDefaultFocus",e[e.placeholder=97]="placeholder",e[e.definitionLinkOpensInPeek=98]="definitionLinkOpensInPeek",e[e.quickSuggestions=99]="quickSuggestions",e[e.quickSuggestionsDelay=100]="quickSuggestionsDelay",e[e.readOnly=101]="readOnly",e[e.readOnlyMessage=102]="readOnlyMessage",e[e.renameOnType=103]="renameOnType",e[e.renderControlCharacters=104]="renderControlCharacters",e[e.renderFinalNewline=105]="renderFinalNewline",e[e.renderLineHighlight=106]="renderLineHighlight",e[e.renderLineHighlightOnlyWhenFocus=107]="renderLineHighlightOnlyWhenFocus",e[e.renderValidationDecorations=108]="renderValidationDecorations",e[e.renderWhitespace=109]="renderWhitespace",e[e.revealHorizontalRightPadding=110]="revealHorizontalRightPadding",e[e.roundedSelection=111]="roundedSelection",e[e.rulers=112]="rulers",e[e.scrollbar=113]="scrollbar",e[e.scrollBeyondLastColumn=114]="scrollBeyondLastColumn",e[e.scrollBeyondLastLine=115]="scrollBeyondLastLine",e[e.scrollPredominantAxis=116]="scrollPredominantAxis",e[e.selectionClipboard=117]="selectionClipboard",e[e.selectionHighlight=118]="selectionHighlight",e[e.selectOnLineNumbers=119]="selectOnLineNumbers",e[e.showFoldingControls=120]="showFoldingControls",e[e.showUnused=121]="showUnused",e[e.snippetSuggestions=122]="snippetSuggestions",e[e.smartSelect=123]="smartSelect",e[e.smoothScrolling=124]="smoothScrolling",e[e.stickyScroll=125]="stickyScroll",e[e.stickyTabStops=126]="stickyTabStops",e[e.stopRenderingLineAfter=127]="stopRenderingLineAfter",e[e.suggest=128]="suggest",e[e.suggestFontSize=129]="suggestFontSize",e[e.suggestLineHeight=130]="suggestLineHeight",e[e.suggestOnTriggerCharacters=131]="suggestOnTriggerCharacters",e[e.suggestSelection=132]="suggestSelection",e[e.tabCompletion=133]="tabCompletion",e[e.tabIndex=134]="tabIndex",e[e.unicodeHighlighting=135]="unicodeHighlighting",e[e.unusualLineTerminators=136]="unusualLineTerminators",e[e.useShadowDOM=137]="useShadowDOM",e[e.useTabStops=138]="useTabStops",e[e.wordBreak=139]="wordBreak",e[e.wordSegmenterLocales=140]="wordSegmenterLocales",e[e.wordSeparators=141]="wordSeparators",e[e.wordWrap=142]="wordWrap",e[e.wordWrapBreakAfterCharacters=143]="wordWrapBreakAfterCharacters",e[e.wordWrapBreakBeforeCharacters=144]="wordWrapBreakBeforeCharacters",e[e.wordWrapColumn=145]="wordWrapColumn",e[e.wordWrapOverride1=146]="wordWrapOverride1",e[e.wordWrapOverride2=147]="wordWrapOverride2",e[e.wrappingIndent=148]="wrappingIndent",e[e.wrappingStrategy=149]="wrappingStrategy",e[e.showDeprecated=150]="showDeprecated",e[e.inlayHints=151]="inlayHints",e[e.effectiveCursorStyle=152]="effectiveCursorStyle",e[e.editorClassName=153]="editorClassName",e[e.pixelRatio=154]="pixelRatio",e[e.tabFocusMode=155]="tabFocusMode",e[e.layoutInfo=156]="layoutInfo",e[e.wrappingInfo=157]="wrappingInfo",e[e.defaultColorDecorators=158]="defaultColorDecorators",e[e.colorDecoratorsActivatedOn=159]="colorDecoratorsActivatedOn",e[e.inlineCompletionsAccessibilityVerbose=160]="inlineCompletionsAccessibilityVerbose",e[e.effectiveEditContext=161]="effectiveEditContext",e[e.scrollOnMiddleClick=162]="scrollOnMiddleClick",e[e.effectiveAllowVariableFonts=163]="effectiveAllowVariableFonts"})(n0||(n0={}));var r0;(function(e){e[e.TextDefined=0]="TextDefined",e[e.LF=1]="LF",e[e.CRLF=2]="CRLF"})(r0||(r0={}));var i0;(function(e){e[e.LF=0]="LF",e[e.CRLF=1]="CRLF"})(i0||(i0={}));var s0;(function(e){e[e.Left=1]="Left",e[e.Center=2]="Center",e[e.Right=3]="Right"})(s0||(s0={}));var o0;(function(e){e[e.Increase=0]="Increase",e[e.Decrease=1]="Decrease"})(o0||(o0={}));var a0;(function(e){e[e.None=0]="None",e[e.Indent=1]="Indent",e[e.IndentOutdent=2]="IndentOutdent",e[e.Outdent=3]="Outdent"})(a0||(a0={}));var u0;(function(e){e[e.Both=0]="Both",e[e.Right=1]="Right",e[e.Left=2]="Left",e[e.None=3]="None"})(u0||(u0={}));var l0;(function(e){e[e.Type=1]="Type",e[e.Parameter=2]="Parameter"})(l0||(l0={}));var c0;(function(e){e[e.Accepted=0]="Accepted",e[e.Rejected=1]="Rejected",e[e.Ignored=2]="Ignored"})(c0||(c0={}));var f0;(function(e){e[e.Automatic=0]="Automatic",e[e.Explicit=1]="Explicit"})(f0||(f0={}));var Wa;(function(e){e[e.DependsOnKbLayout=-1]="DependsOnKbLayout",e[e.Unknown=0]="Unknown",e[e.Backspace=1]="Backspace",e[e.Tab=2]="Tab",e[e.Enter=3]="Enter",e[e.Shift=4]="Shift",e[e.Ctrl=5]="Ctrl",e[e.Alt=6]="Alt",e[e.PauseBreak=7]="PauseBreak",e[e.CapsLock=8]="CapsLock",e[e.Escape=9]="Escape",e[e.Space=10]="Space",e[e.PageUp=11]="PageUp",e[e.PageDown=12]="PageDown",e[e.End=13]="End",e[e.Home=14]="Home",e[e.LeftArrow=15]="LeftArrow",e[e.UpArrow=16]="UpArrow",e[e.RightArrow=17]="RightArrow",e[e.DownArrow=18]="DownArrow",e[e.Insert=19]="Insert",e[e.Delete=20]="Delete",e[e.Digit0=21]="Digit0",e[e.Digit1=22]="Digit1",e[e.Digit2=23]="Digit2",e[e.Digit3=24]="Digit3",e[e.Digit4=25]="Digit4",e[e.Digit5=26]="Digit5",e[e.Digit6=27]="Digit6",e[e.Digit7=28]="Digit7",e[e.Digit8=29]="Digit8",e[e.Digit9=30]="Digit9",e[e.KeyA=31]="KeyA",e[e.KeyB=32]="KeyB",e[e.KeyC=33]="KeyC",e[e.KeyD=34]="KeyD",e[e.KeyE=35]="KeyE",e[e.KeyF=36]="KeyF",e[e.KeyG=37]="KeyG",e[e.KeyH=38]="KeyH",e[e.KeyI=39]="KeyI",e[e.KeyJ=40]="KeyJ",e[e.KeyK=41]="KeyK",e[e.KeyL=42]="KeyL",e[e.KeyM=43]="KeyM",e[e.KeyN=44]="KeyN",e[e.KeyO=45]="KeyO",e[e.KeyP=46]="KeyP",e[e.KeyQ=47]="KeyQ",e[e.KeyR=48]="KeyR",e[e.KeyS=49]="KeyS",e[e.KeyT=50]="KeyT",e[e.KeyU=51]="KeyU",e[e.KeyV=52]="KeyV",e[e.KeyW=53]="KeyW",e[e.KeyX=54]="KeyX",e[e.KeyY=55]="KeyY",e[e.KeyZ=56]="KeyZ",e[e.Meta=57]="Meta",e[e.ContextMenu=58]="ContextMenu",e[e.F1=59]="F1",e[e.F2=60]="F2",e[e.F3=61]="F3",e[e.F4=62]="F4",e[e.F5=63]="F5",e[e.F6=64]="F6",e[e.F7=65]="F7",e[e.F8=66]="F8",e[e.F9=67]="F9",e[e.F10=68]="F10",e[e.F11=69]="F11",e[e.F12=70]="F12",e[e.F13=71]="F13",e[e.F14=72]="F14",e[e.F15=73]="F15",e[e.F16=74]="F16",e[e.F17=75]="F17",e[e.F18=76]="F18",e[e.F19=77]="F19",e[e.F20=78]="F20",e[e.F21=79]="F21",e[e.F22=80]="F22",e[e.F23=81]="F23",e[e.F24=82]="F24",e[e.NumLock=83]="NumLock",e[e.ScrollLock=84]="ScrollLock",e[e.Semicolon=85]="Semicolon",e[e.Equal=86]="Equal",e[e.Comma=87]="Comma",e[e.Minus=88]="Minus",e[e.Period=89]="Period",e[e.Slash=90]="Slash",e[e.Backquote=91]="Backquote",e[e.BracketLeft=92]="BracketLeft",e[e.Backslash=93]="Backslash",e[e.BracketRight=94]="BracketRight",e[e.Quote=95]="Quote",e[e.OEM_8=96]="OEM_8",e[e.IntlBackslash=97]="IntlBackslash",e[e.Numpad0=98]="Numpad0",e[e.Numpad1=99]="Numpad1",e[e.Numpad2=100]="Numpad2",e[e.Numpad3=101]="Numpad3",e[e.Numpad4=102]="Numpad4",e[e.Numpad5=103]="Numpad5",e[e.Numpad6=104]="Numpad6",e[e.Numpad7=105]="Numpad7",e[e.Numpad8=106]="Numpad8",e[e.Numpad9=107]="Numpad9",e[e.NumpadMultiply=108]="NumpadMultiply",e[e.NumpadAdd=109]="NumpadAdd",e[e.NUMPAD_SEPARATOR=110]="NUMPAD_SEPARATOR",e[e.NumpadSubtract=111]="NumpadSubtract",e[e.NumpadDecimal=112]="NumpadDecimal",e[e.NumpadDivide=113]="NumpadDivide",e[e.KEY_IN_COMPOSITION=114]="KEY_IN_COMPOSITION",e[e.ABNT_C1=115]="ABNT_C1",e[e.ABNT_C2=116]="ABNT_C2",e[e.AudioVolumeMute=117]="AudioVolumeMute",e[e.AudioVolumeUp=118]="AudioVolumeUp",e[e.AudioVolumeDown=119]="AudioVolumeDown",e[e.BrowserSearch=120]="BrowserSearch",e[e.BrowserHome=121]="BrowserHome",e[e.BrowserBack=122]="BrowserBack",e[e.BrowserForward=123]="BrowserForward",e[e.MediaTrackNext=124]="MediaTrackNext",e[e.MediaTrackPrevious=125]="MediaTrackPrevious",e[e.MediaStop=126]="MediaStop",e[e.MediaPlayPause=127]="MediaPlayPause",e[e.LaunchMediaPlayer=128]="LaunchMediaPlayer",e[e.LaunchMail=129]="LaunchMail",e[e.LaunchApp2=130]="LaunchApp2",e[e.Clear=131]="Clear",e[e.MAX_VALUE=132]="MAX_VALUE"})(Wa||(Wa={}));var za;(function(e){e[e.Hint=1]="Hint",e[e.Info=2]="Info",e[e.Warning=4]="Warning",e[e.Error=8]="Error"})(za||(za={}));var Qa;(function(e){e[e.Unnecessary=1]="Unnecessary",e[e.Deprecated=2]="Deprecated"})(Qa||(Qa={}));var h0;(function(e){e[e.Inline=1]="Inline",e[e.Gutter=2]="Gutter"})(h0||(h0={}));var p0;(function(e){e[e.Normal=1]="Normal",e[e.Underlined=2]="Underlined"})(p0||(p0={}));var d0;(function(e){e[e.UNKNOWN=0]="UNKNOWN",e[e.TEXTAREA=1]="TEXTAREA",e[e.GUTTER_GLYPH_MARGIN=2]="GUTTER_GLYPH_MARGIN",e[e.GUTTER_LINE_NUMBERS=3]="GUTTER_LINE_NUMBERS",e[e.GUTTER_LINE_DECORATIONS=4]="GUTTER_LINE_DECORATIONS",e[e.GUTTER_VIEW_ZONE=5]="GUTTER_VIEW_ZONE",e[e.CONTENT_TEXT=6]="CONTENT_TEXT",e[e.CONTENT_EMPTY=7]="CONTENT_EMPTY",e[e.CONTENT_VIEW_ZONE=8]="CONTENT_VIEW_ZONE",e[e.CONTENT_WIDGET=9]="CONTENT_WIDGET",e[e.OVERVIEW_RULER=10]="OVERVIEW_RULER",e[e.SCROLLBAR=11]="SCROLLBAR",e[e.OVERLAY_WIDGET=12]="OVERLAY_WIDGET",e[e.OUTSIDE_EDITOR=13]="OUTSIDE_EDITOR"})(d0||(d0={}));var m0;(function(e){e[e.AIGenerated=1]="AIGenerated"})(m0||(m0={}));var g0;(function(e){e[e.Invoke=0]="Invoke",e[e.Automatic=1]="Automatic"})(g0||(g0={}));var _0;(function(e){e[e.TOP_RIGHT_CORNER=0]="TOP_RIGHT_CORNER",e[e.BOTTOM_RIGHT_CORNER=1]="BOTTOM_RIGHT_CORNER",e[e.TOP_CENTER=2]="TOP_CENTER"})(_0||(_0={}));var E0;(function(e){e[e.Left=1]="Left",e[e.Center=2]="Center",e[e.Right=4]="Right",e[e.Full=7]="Full"})(E0||(E0={}));var D0;(function(e){e[e.Word=0]="Word",e[e.Line=1]="Line",e[e.Suggest=2]="Suggest"})(D0||(D0={}));var b0;(function(e){e[e.Left=0]="Left",e[e.Right=1]="Right",e[e.None=2]="None",e[e.LeftOfInjectedText=3]="LeftOfInjectedText",e[e.RightOfInjectedText=4]="RightOfInjectedText"})(b0||(b0={}));var v0;(function(e){e[e.Off=0]="Off",e[e.On=1]="On",e[e.Relative=2]="Relative",e[e.Interval=3]="Interval",e[e.Custom=4]="Custom"})(v0||(v0={}));var N0;(function(e){e[e.None=0]="None",e[e.Text=1]="Text",e[e.Blocks=2]="Blocks"})(N0||(N0={}));var T0;(function(e){e[e.Smooth=0]="Smooth",e[e.Immediate=1]="Immediate"})(T0||(T0={}));var y0;(function(e){e[e.Auto=1]="Auto",e[e.Hidden=2]="Hidden",e[e.Visible=3]="Visible"})(y0||(y0={}));var Ya;(function(e){e[e.LTR=0]="LTR",e[e.RTL=1]="RTL"})(Ya||(Ya={}));var w0;(function(e){e.Off="off",e.OnCode="onCode",e.On="on"})(w0||(w0={}));var x0;(function(e){e[e.Invoke=1]="Invoke",e[e.TriggerCharacter=2]="TriggerCharacter",e[e.ContentChange=3]="ContentChange"})(x0||(x0={}));var L0;(function(e){e[e.File=0]="File",e[e.Module=1]="Module",e[e.Namespace=2]="Namespace",e[e.Package=3]="Package",e[e.Class=4]="Class",e[e.Method=5]="Method",e[e.Property=6]="Property",e[e.Field=7]="Field",e[e.Constructor=8]="Constructor",e[e.Enum=9]="Enum",e[e.Interface=10]="Interface",e[e.Function=11]="Function",e[e.Variable=12]="Variable",e[e.Constant=13]="Constant",e[e.String=14]="String",e[e.Number=15]="Number",e[e.Boolean=16]="Boolean",e[e.Array=17]="Array",e[e.Object=18]="Object",e[e.Key=19]="Key",e[e.Null=20]="Null",e[e.EnumMember=21]="EnumMember",e[e.Struct=22]="Struct",e[e.Event=23]="Event",e[e.Operator=24]="Operator",e[e.TypeParameter=25]="TypeParameter"})(L0||(L0={}));var A0;(function(e){e[e.Deprecated=1]="Deprecated"})(A0||(A0={}));var F0;(function(e){e[e.Hidden=0]="Hidden",e[e.Blink=1]="Blink",e[e.Smooth=2]="Smooth",e[e.Phase=3]="Phase",e[e.Expand=4]="Expand",e[e.Solid=5]="Solid"})(F0||(F0={}));var S0;(function(e){e[e.Line=1]="Line",e[e.Block=2]="Block",e[e.Underline=3]="Underline",e[e.LineThin=4]="LineThin",e[e.BlockOutline=5]="BlockOutline",e[e.UnderlineThin=6]="UnderlineThin"})(S0||(S0={}));var R0;(function(e){e[e.AlwaysGrowsWhenTypingAtEdges=0]="AlwaysGrowsWhenTypingAtEdges",e[e.NeverGrowsWhenTypingAtEdges=1]="NeverGrowsWhenTypingAtEdges",e[e.GrowsOnlyWhenTypingBefore=2]="GrowsOnlyWhenTypingBefore",e[e.GrowsOnlyWhenTypingAfter=3]="GrowsOnlyWhenTypingAfter"})(R0||(R0={}));var I0;(function(e){e[e.None=0]="None",e[e.Same=1]="Same",e[e.Indent=2]="Indent",e[e.DeepIndent=3]="DeepIndent"})(I0||(I0={}));var Hc=class{static{this.CtrlCmd=ei.CtrlCmd}static{this.Shift=ei.Shift}static{this.Alt=ei.Alt}static{this.WinCtrl=ei.WinCtrl}static chord(t,n){return ed(t,n)}};function O0(){return{editor:void 0,languages:void 0,CancellationTokenSource:Wi,Emitter:bt,KeyCode:Wa,KeyMod:Hc,Position:me,Range:oe,Selection:Ga,SelectionDirection:Ya,MarkerSeverity:za,MarkerTag:Qa,Uri:at,Token:Ha}}var PE=60,BE=PE*60,Wc=BE*24,b3=Wc*7,v3=Wc*30,N3=Wc*365;var ri;(function(e){e[e.Regular=0]="Regular",e[e.Whitespace=1]="Whitespace",e[e.WordSeparator=2]="WordSeparator"})(ri||(ri={}));var F3=new Ta(10);var k0;(function(e){e[e.Left=1]="Left",e[e.Center=2]="Center",e[e.Right=4]="Right",e[e.Full=7]="Full"})(k0||(k0={}));var M0;(function(e){e[e.Left=1]="Left",e[e.Center=2]="Center",e[e.Right=3]="Right"})(M0||(M0={}));var U0;(function(e){e[e.Inline=1]="Inline",e[e.Gutter=2]="Gutter"})(U0||(U0={}));var P0;(function(e){e[e.Normal=1]="Normal",e[e.Underlined=2]="Underlined"})(P0||(P0={}));var B0;(function(e){e[e.Both=0]="Both",e[e.Right=1]="Right",e[e.Left=2]="Left",e[e.None=3]="None"})(B0||(B0={}));var zc;(function(e){e[e.TextDefined=0]="TextDefined",e[e.LF=1]="LF",e[e.CRLF=2]="CRLF"})(zc||(zc={}));var C0;(function(e){e[e.LF=1]="LF",e[e.CRLF=2]="CRLF"})(C0||(C0={}));var V0;(function(e){e[e.LF=0]="LF",e[e.CRLF=1]="CRLF"})(V0||(V0={}));var $0;(function(e){e[e.AlwaysGrowsWhenTypingAtEdges=0]="AlwaysGrowsWhenTypingAtEdges",e[e.NeverGrowsWhenTypingAtEdges=1]="NeverGrowsWhenTypingAtEdges",e[e.GrowsOnlyWhenTypingBefore=2]="GrowsOnlyWhenTypingBefore",e[e.GrowsOnlyWhenTypingAfter=3]="GrowsOnlyWhenTypingAfter"})($0||($0={}));var j0;(function(e){e[e.Left=0]="Left",e[e.Right=1]="Right",e[e.None=2]="None",e[e.LeftOfInjectedText=3]="LeftOfInjectedText",e[e.RightOfInjectedText=4]="RightOfInjectedText"})(j0||(j0={}));var G0;(function(e){e[e.FIRST_LINE_DETECTION_LENGTH_LIMIT=1e3]="FIRST_LINE_DETECTION_LENGTH_LIMIT"})(G0||(G0={}));function q0(e){if(!e||e.length===0)return!1;for(let t=0,n=e.length;t<n;t++){let r=e.charCodeAt(t);if(r===O.LineFeed)return!0;if(r===O.Backslash){if(t++,t>=n)break;let i=e.charCodeAt(t);if(i===O.n||i===O.r||i===O.W)return!0}}return!1}function CE(e,t,n,r,i){if(r===0)return!0;let s=t.charCodeAt(r-1);if(e.get(s)!==ri.Regular||s===O.CarriageReturn||s===O.LineFeed)return!0;if(i>0){let o=t.charCodeAt(r);if(e.get(o)!==ri.Regular)return!0}return!1}function VE(e,t,n,r,i){if(r+i===n)return!0;let s=t.charCodeAt(r+i);if(e.get(s)!==ri.Regular||s===O.CarriageReturn||s===O.LineFeed)return!0;if(i>0){let o=t.charCodeAt(r+i-1);if(e.get(o)!==ri.Regular)return!0}return!1}function $E(e,t,n,r,i){return CE(e,t,n,r,i)&&VE(e,t,n,r,i)}var Xa=class{constructor(t,n){this._wordSeparators=t,this._searchRegex=n,this._prevMatchStartIndex=-1,this._prevMatchLength=0}reset(t){this._searchRegex.lastIndex=t,this._prevMatchStartIndex=-1,this._prevMatchLength=0}next(t){let n=t.length,r;do{if(this._prevMatchStartIndex+this._prevMatchLength===n||(r=this._searchRegex.exec(t),!r))return null;let i=r.index,s=r[0].length;if(i===this._prevMatchStartIndex&&s===this._prevMatchLength){if(s===0){Cp(t,n,this._searchRegex.lastIndex)>65535?this._searchRegex.lastIndex+=2:this._searchRegex.lastIndex+=1;continue}return null}if(this._prevMatchStartIndex=i,this._prevMatchLength=s,!this._wordSeparators||$E(this._wordSeparators,t,n,i,s))return r}while(r);return null}};var jE="`~!@#$%^&*()-=+[{]}\\|;:'\",.<>/?";function GE(e=""){let t="(-?\\d*\\.\\d\\w*)|([^";for(let n of jE)e.indexOf(n)>=0||(t+="\\"+n);return t+="\\s]+)",new RegExp(t,"g")}var Qc=GE();function Yc(e){let t=Qc;if(e&&e instanceof RegExp)if(e.global)t=e;else{let n="g";e.ignoreCase&&(n+="i"),e.multiline&&(n+="m"),e.unicode&&(n+="u"),t=new RegExp(e.source,n)}return t.lastIndex=0,t}var H0=new fo;H0.unshift({maxLen:1e3,windowSize:15,timeBudget:150});function Ao(e,t,n,r,i){if(t=Yc(t),i||(i=$i.first(H0)),n.length>i.maxLen){let l=e-i.maxLen/2;return l<0?l=0:r+=l,n=n.substring(l,e+i.maxLen/2),Ao(e,t,n,r,i)}let s=Date.now(),o=e-1-r,a=-1,u=null;for(let l=1;!(Date.now()-s>=i.timeBudget);l++){let c=o-i.windowSize*l;t.lastIndex=Math.max(0,c);let f=qE(t,n,o,a);if(!f&&u||(u=f,c<=0))break;a=c}if(u){let l={word:u[0],startColumn:r+1+u.index,endColumn:r+1+u.index+u[0].length};return t.lastIndex=0,l}return null}function qE(e,t,n,r){let i;for(;i=e.exec(t);){let s=i.index||0;if(s<=n&&e.lastIndex>=n)return i;if(r>0&&s>r)return null}return null}var Ja=class{static computeUnicodeHighlights(t,n,r){let i=r?r.startLineNumber:1,s=r?r.endLineNumber:t.getLineCount(),o=new Za(n),a=o.getCandidateCodePoints(),u;a==="allNonBasicAscii"?u=new RegExp("[^\\t\\n\\r\\x20-\\x7E]","g"):u=new RegExp(`${HE(Array.from(a))}`,"g");let l=new Xa(null,u),c=[],f=!1,d,m=0,g=0,_=0;e:for(let T=i,A=s;T<=A;T++){let S=t.getLineContent(T),L=S.length;l.reset(0);do if(d=l.next(S),d){let P=d.index,q=d.index+d[0].length;if(P>0){let w=S.charCodeAt(P-1);Xi(w)&&P--}if(q+1<L){let w=S.charCodeAt(q-1);Xi(w)&&q++}let Y=S.substring(P,q),I=Ao(P+1,Qc,S,0);I&&I.endColumn<=P+1&&(I=null);let U=o.shouldHighlightNonBasicASCII(Y,I?I.word:null);if(U!==Mt.None){if(U===Mt.Ambiguous?m++:U===Mt.Invisible?g++:U===Mt.NonBasicASCII?_++:hp(),c.length>=1e3){f=!0;break e}c.push(new oe(T,P+1,T,q+1))}}while(d)}return{ranges:c,hasMore:f,ambiguousCharacterCount:m,invisibleCharacterCount:g,nonBasicAsciiCharacterCount:_}}static computeUnicodeHighlightReason(t,n){let r=new Za(n);switch(r.shouldHighlightNonBasicASCII(t,null)){case Mt.None:return null;case Mt.Invisible:return{kind:Fo.Invisible};case Mt.Ambiguous:{let s=t.codePointAt(0),o=r.ambiguousCharacters.getPrimaryConfusable(s),a=zi.getLocales().filter(u=>!zi.getInstance(new Set([...n.allowedLocales,u])).isAmbiguous(s));return{kind:Fo.Ambiguous,confusableWith:String.fromCodePoint(o),notAmbiguousInLocales:a}}case Mt.NonBasicASCII:return{kind:Fo.NonBasicAscii}}}};function HE(e,t){return`[${Op(e.map(r=>String.fromCodePoint(r)).join(""))}]`}var Fo;(function(e){e[e.Ambiguous=0]="Ambiguous",e[e.Invisible=1]="Invisible",e[e.NonBasicAscii=2]="NonBasicAscii"})(Fo||(Fo={}));var Za=class{constructor(t){this.options=t,this.allowedCodePoints=new Set(t.allowedCodePoints),this.ambiguousCharacters=zi.getInstance(new Set(t.allowedLocales))}getCandidateCodePoints(){if(this.options.nonBasicASCII)return"allNonBasicAscii";let t=new Set;if(this.options.invisibleCharacters)for(let n of Qi.codePoints)W0(String.fromCodePoint(n))||t.add(n);if(this.options.ambiguousCharacters)for(let n of this.ambiguousCharacters.getConfusableCodePoints())t.add(n);for(let n of this.allowedCodePoints)t.delete(n);return t}shouldHighlightNonBasicASCII(t,n){let r=t.codePointAt(0);if(this.allowedCodePoints.has(r))return Mt.None;if(this.options.nonBasicASCII)return Mt.NonBasicASCII;let i=!1,s=!1;if(n)for(let o of n){let a=o.codePointAt(0),u=Vp(o);i=i||u,!u&&!this.ambiguousCharacters.isAmbiguous(a)&&!Qi.isInvisibleCharacter(a)&&(s=!0)}return!i&&s?Mt.None:this.options.invisibleCharacters&&!W0(t)&&Qi.isInvisibleCharacter(r)?Mt.Invisible:this.options.ambiguousCharacters&&this.ambiguousCharacters.isAmbiguous(r)?Mt.Ambiguous:Mt.None}};function W0(e){return e===" "||e===`
|
|
91
|
+
`||e===" "}var Mt;(function(e){e[e.None=0]="None",e[e.NonBasicASCII=1]="NonBasicASCII",e[e.Invisible=2]="Invisible",e[e.Ambiguous=3]="Ambiguous"})(Mt||(Mt={}));var Pr=class{constructor(t,n,r){this.changes=t,this.moves=n,this.hitTimeout=r}},Ka=class e{constructor(t,n){this.lineRangeMapping=t,this.changes=n}flip(){return new e(this.lineRangeMapping.flip(),this.changes.map(t=>t.flip()))}};var le=class e{static fromTo(t,n){return new e(t,n)}static addRange(t,n){let r=0;for(;r<n.length&&n[r].endExclusive<t.start;)r++;let i=r;for(;i<n.length&&n[i].start<=t.endExclusive;)i++;if(r===i)n.splice(r,0,t);else{let s=Math.min(t.start,n[r].start),o=Math.max(t.endExclusive,n[i-1].endExclusive);n.splice(r,i-r,new e(s,o))}}static tryCreate(t,n){if(!(t>n))return new e(t,n)}static ofLength(t){return new e(0,t)}static ofStartAndLength(t,n){return new e(t,t+n)}static emptyAt(t){return new e(t,t)}constructor(t,n){if(this.start=t,this.endExclusive=n,t>n)throw new Ce(`Invalid range: ${this.toString()}`)}get isEmpty(){return this.start===this.endExclusive}delta(t){return new e(this.start+t,this.endExclusive+t)}deltaStart(t){return new e(this.start+t,this.endExclusive)}deltaEnd(t){return new e(this.start,this.endExclusive+t)}get length(){return this.endExclusive-this.start}toString(){return`[${this.start}, ${this.endExclusive})`}equals(t){return this.start===t.start&&this.endExclusive===t.endExclusive}containsRange(t){return this.start<=t.start&&t.endExclusive<=this.endExclusive}contains(t){return this.start<=t&&t<this.endExclusive}join(t){return new e(Math.min(this.start,t.start),Math.max(this.endExclusive,t.endExclusive))}intersect(t){let n=Math.max(this.start,t.start),r=Math.min(this.endExclusive,t.endExclusive);if(n<=r)return new e(n,r)}intersectionLength(t){let n=Math.max(this.start,t.start),r=Math.min(this.endExclusive,t.endExclusive);return Math.max(0,r-n)}intersects(t){let n=Math.max(this.start,t.start),r=Math.min(this.endExclusive,t.endExclusive);return n<r}intersectsOrTouches(t){let n=Math.max(this.start,t.start),r=Math.min(this.endExclusive,t.endExclusive);return n<=r}isBefore(t){return this.endExclusive<=t.start}isAfter(t){return this.start>=t.endExclusive}slice(t){return t.slice(this.start,this.endExclusive)}substring(t){return t.substring(this.start,this.endExclusive)}clip(t){if(this.isEmpty)throw new Ce(`Invalid clipping range: ${this.toString()}`);return Math.max(this.start,Math.min(this.endExclusive-1,t))}clipCyclic(t){if(this.isEmpty)throw new Ce(`Invalid clipping range: ${this.toString()}`);return t<this.start?this.endExclusive-(this.start-t)%this.length:t>=this.endExclusive?this.start+(t-this.start)%this.length:t}map(t){let n=[];for(let r=this.start;r<this.endExclusive;r++)n.push(t(r));return n}forEach(t){for(let n=this.start;n<this.endExclusive;n++)t(n)}joinRightTouching(t){if(this.endExclusive!==t.start)throw new Ce(`Invalid join: ${this.toString()} and ${t.toString()}`);return new e(this.start,t.endExclusive)}};var ye=class e{static ofLength(t,n){return new e(t,t+n)}static fromRange(t){return new e(t.startLineNumber,t.endLineNumber)}static fromRangeInclusive(t){return new e(t.startLineNumber,t.endLineNumber+1)}static{this.compareByStart=En(t=>t.startLineNumber,ar)}static subtract(t,n){return n?t.startLineNumber<n.startLineNumber&&n.endLineNumberExclusive<t.endLineNumberExclusive?[new e(t.startLineNumber,n.startLineNumber),new e(n.endLineNumberExclusive,t.endLineNumberExclusive)]:n.startLineNumber<=t.startLineNumber&&t.endLineNumberExclusive<=n.endLineNumberExclusive?[]:n.endLineNumberExclusive<t.endLineNumberExclusive?[new e(Math.max(n.endLineNumberExclusive,t.startLineNumber),t.endLineNumberExclusive)]:[new e(t.startLineNumber,Math.min(n.startLineNumber,t.endLineNumberExclusive))]:[t]}static joinMany(t){if(t.length===0)return[];let n=new ii(t[0].slice());for(let r=1;r<t.length;r++)n=n.getUnion(new ii(t[r].slice()));return n.ranges}static join(t){if(t.length===0)throw new Ce("lineRanges cannot be empty");let n=t[0].startLineNumber,r=t[0].endLineNumberExclusive;for(let i=1;i<t.length;i++)n=Math.min(n,t[i].startLineNumber),r=Math.max(r,t[i].endLineNumberExclusive);return new e(n,r)}static deserialize(t){return new e(t[0],t[1])}constructor(t,n){if(t>n)throw new Ce(`startLineNumber ${t} cannot be after endLineNumberExclusive ${n}`);this.startLineNumber=t,this.endLineNumberExclusive=n}contains(t){return this.startLineNumber<=t&&t<this.endLineNumberExclusive}containsRange(t){return this.startLineNumber<=t.startLineNumber&&t.endLineNumberExclusive<=this.endLineNumberExclusive}get isEmpty(){return this.startLineNumber===this.endLineNumberExclusive}delta(t){return new e(this.startLineNumber+t,this.endLineNumberExclusive+t)}deltaLength(t){return new e(this.startLineNumber,this.endLineNumberExclusive+t)}get length(){return this.endLineNumberExclusive-this.startLineNumber}join(t){return new e(Math.min(this.startLineNumber,t.startLineNumber),Math.max(this.endLineNumberExclusive,t.endLineNumberExclusive))}toString(){return`[${this.startLineNumber},${this.endLineNumberExclusive})`}intersect(t){let n=Math.max(this.startLineNumber,t.startLineNumber),r=Math.min(this.endLineNumberExclusive,t.endLineNumberExclusive);if(n<=r)return new e(n,r)}intersectsStrict(t){return this.startLineNumber<t.endLineNumberExclusive&&t.startLineNumber<this.endLineNumberExclusive}intersectsOrTouches(t){return this.startLineNumber<=t.endLineNumberExclusive&&t.startLineNumber<=this.endLineNumberExclusive}equals(t){return this.startLineNumber===t.startLineNumber&&this.endLineNumberExclusive===t.endLineNumberExclusive}toInclusiveRange(){return this.isEmpty?null:new oe(this.startLineNumber,1,this.endLineNumberExclusive-1,Number.MAX_SAFE_INTEGER)}toExclusiveRange(){return new oe(this.startLineNumber,1,this.endLineNumberExclusive,1)}mapToLineArray(t){let n=[];for(let r=this.startLineNumber;r<this.endLineNumberExclusive;r++)n.push(t(r));return n}forEach(t){for(let n=this.startLineNumber;n<this.endLineNumberExclusive;n++)t(n)}serialize(){return[this.startLineNumber,this.endLineNumberExclusive]}toOffsetRange(){return new le(this.startLineNumber-1,this.endLineNumberExclusive-1)}distanceToRange(t){return this.endLineNumberExclusive<=t.startLineNumber?t.startLineNumber-this.endLineNumberExclusive:t.endLineNumberExclusive<=this.startLineNumber?this.startLineNumber-t.endLineNumberExclusive:0}distanceToLine(t){return this.contains(t)?0:t<this.startLineNumber?this.startLineNumber-t:t-this.endLineNumberExclusive}addMargin(t,n){return new e(this.startLineNumber-t,this.endLineNumberExclusive+n)}},ii=class e{constructor(t=[]){this._normalizedRanges=t}get ranges(){return this._normalizedRanges}addRange(t){if(t.length===0)return;let n=lo(this._normalizedRanges,i=>i.endLineNumberExclusive>=t.startLineNumber),r=or(this._normalizedRanges,i=>i.startLineNumber<=t.endLineNumberExclusive)+1;if(n===r)this._normalizedRanges.splice(n,0,t);else if(n===r-1){let i=this._normalizedRanges[n];this._normalizedRanges[n]=i.join(t)}else{let i=this._normalizedRanges[n].join(this._normalizedRanges[r-1]).join(t);this._normalizedRanges.splice(n,r-n,i)}}contains(t){let n=sr(this._normalizedRanges,r=>r.startLineNumber<=t);return!!n&&n.endLineNumberExclusive>t}intersects(t){let n=sr(this._normalizedRanges,r=>r.startLineNumber<t.endLineNumberExclusive);return!!n&&n.endLineNumberExclusive>t.startLineNumber}getUnion(t){if(this._normalizedRanges.length===0)return t;if(t._normalizedRanges.length===0)return this;let n=[],r=0,i=0,s=null;for(;r<this._normalizedRanges.length||i<t._normalizedRanges.length;){let o=null;if(r<this._normalizedRanges.length&&i<t._normalizedRanges.length){let a=this._normalizedRanges[r],u=t._normalizedRanges[i];a.startLineNumber<u.startLineNumber?(o=a,r++):(o=u,i++)}else r<this._normalizedRanges.length?(o=this._normalizedRanges[r],r++):(o=t._normalizedRanges[i],i++);s===null?s=o:s.endLineNumberExclusive>=o.startLineNumber?s=new ye(s.startLineNumber,Math.max(s.endLineNumberExclusive,o.endLineNumberExclusive)):(n.push(s),s=o)}return s!==null&&n.push(s),new e(n)}subtractFrom(t){let n=lo(this._normalizedRanges,o=>o.endLineNumberExclusive>=t.startLineNumber),r=or(this._normalizedRanges,o=>o.startLineNumber<=t.endLineNumberExclusive)+1;if(n===r)return new e([t]);let i=[],s=t.startLineNumber;for(let o=n;o<r;o++){let a=this._normalizedRanges[o];a.startLineNumber>s&&i.push(new ye(s,a.startLineNumber)),s=a.endLineNumberExclusive}return s<t.endLineNumberExclusive&&i.push(new ye(s,t.endLineNumberExclusive)),new e(i)}toString(){return this._normalizedRanges.map(t=>t.toString()).join(", ")}getIntersection(t){let n=[],r=0,i=0;for(;r<this._normalizedRanges.length&&i<t._normalizedRanges.length;){let s=this._normalizedRanges[r],o=t._normalizedRanges[i],a=s.intersect(o);a&&!a.isEmpty&&n.push(a),s.endLineNumberExclusive<o.endLineNumberExclusive?r++:i++}return new e(n)}getWithDelta(t){return new e(this._normalizedRanges.map(n=>n.delta(t)))}};var Bn=class e{static{this.zero=new e(0,0)}static lengthDiffNonNegative(t,n){return n.isLessThan(t)?e.zero:t.lineCount===n.lineCount?new e(0,n.columnCount-t.columnCount):new e(n.lineCount-t.lineCount,n.columnCount)}static betweenPositions(t,n){return t.lineNumber===n.lineNumber?new e(0,n.column-t.column):new e(n.lineNumber-t.lineNumber,n.column-1)}static fromPosition(t){return new e(t.lineNumber-1,t.column-1)}static ofRange(t){return e.betweenPositions(t.getStartPosition(),t.getEndPosition())}static ofText(t){let n=0,r=0;for(let i of t)i===`
|
|
92
|
+
`?(n++,r=0):r++;return new e(n,r)}constructor(t,n){this.lineCount=t,this.columnCount=n}isZero(){return this.lineCount===0&&this.columnCount===0}isLessThan(t){return this.lineCount!==t.lineCount?this.lineCount<t.lineCount:this.columnCount<t.columnCount}isGreaterThan(t){return this.lineCount!==t.lineCount?this.lineCount>t.lineCount:this.columnCount>t.columnCount}isGreaterThanOrEqualTo(t){return this.lineCount!==t.lineCount?this.lineCount>t.lineCount:this.columnCount>=t.columnCount}equals(t){return this.lineCount===t.lineCount&&this.columnCount===t.columnCount}compare(t){return this.lineCount!==t.lineCount?this.lineCount-t.lineCount:this.columnCount-t.columnCount}add(t){return t.lineCount===0?new e(this.lineCount,this.columnCount+t.columnCount):new e(this.lineCount+t.lineCount,t.columnCount)}createRange(t){return this.lineCount===0?new oe(t.lineNumber,t.column,t.lineNumber,t.column+this.columnCount):new oe(t.lineNumber,t.column,t.lineNumber+this.lineCount,this.columnCount+1)}toRange(){return new oe(1,1,this.lineCount+1,this.columnCount+1)}toLineRange(){return ye.ofLength(1,this.lineCount+1)}addToPosition(t){return this.lineCount===0?new me(t.lineNumber,t.column+this.columnCount):new me(t.lineNumber+this.lineCount,this.columnCount+1)}addToRange(t){return oe.fromPositions(this.addToPosition(t.getStartPosition()),this.addToPosition(t.getEndPosition()))}toString(){return`${this.lineCount},${this.columnCount}`}};var eu=class{getOffsetRange(t){return new le(this.getOffset(t.getStartPosition()),this.getOffset(t.getEndPosition()))}getRange(t){return oe.fromPositions(this.getPosition(t.start),this.getPosition(t.endExclusive))}getStringEdit(t){let n=t.replacements.map(r=>this.getStringReplacement(r));return new mr.deps.StringEdit(n)}getStringReplacement(t){return new mr.deps.StringReplacement(this.getOffsetRange(t.range),t.text)}getSingleTextEdit(t){return new mr.deps.TextReplacement(this.getRange(t.replaceRange),t.newText)}getTextEdit(t){let n=t.replacements.map(r=>this.getSingleTextEdit(r));return new mr.deps.TextEdit(n)}},mr=class{static{this._deps=void 0}static get deps(){if(!this._deps)throw new Error("Dependencies not set. Call _setDependencies first.");return this._deps}};function z0(e){mr._deps=e}var Zi=class extends eu{constructor(t){super(),this.text=t,this.lineStartOffsetByLineIdx=[],this.lineEndOffsetByLineIdx=[],this.lineStartOffsetByLineIdx.push(0);for(let n=0;n<t.length;n++)t.charAt(n)===`
|
|
93
|
+
`&&(this.lineStartOffsetByLineIdx.push(n+1),n>0&&t.charAt(n-1)==="\r"?this.lineEndOffsetByLineIdx.push(n-1):this.lineEndOffsetByLineIdx.push(n));this.lineEndOffsetByLineIdx.push(t.length)}getOffset(t){let n=this._validatePosition(t);return this.lineStartOffsetByLineIdx[n.lineNumber-1]+n.column-1}_validatePosition(t){if(t.lineNumber<1)return new me(1,1);let n=this.textLength.lineCount+1;if(t.lineNumber>n){let i=this.getLineLength(n);return new me(n,i+1)}if(t.column<1)return new me(t.lineNumber,1);let r=this.getLineLength(t.lineNumber);return t.column-1>r?new me(t.lineNumber,r+1):t}getPosition(t){let n=or(this.lineStartOffsetByLineIdx,s=>s<=t),r=n+1,i=t-this.lineStartOffsetByLineIdx[n]+1;return new me(r,i)}getTextLength(t){return mr.deps.TextLength.ofRange(this.getRange(t))}get textLength(){let t=this.lineStartOffsetByLineIdx.length-1;return new mr.deps.TextLength(t,this.text.length-this.lineStartOffsetByLineIdx[t])}getLineLength(t){return this.lineEndOffsetByLineIdx[t-1]-this.lineStartOffsetByLineIdx[t-1]}};var tu=class{constructor(){this._transformer=void 0}get endPositionExclusive(){return this.length.addToPosition(new me(1,1))}get lineRange(){return this.length.toLineRange()}getValue(){return this.getValueOfRange(this.length.toRange())}getLineLength(t){return this.getValueOfRange(new oe(t,1,t,Number.MAX_SAFE_INTEGER)).length}getTransformer(){return this._transformer||(this._transformer=new Zi(this.getValue())),this._transformer}getLineAt(t){return this.getValueOfRange(new oe(t,1,t,Number.MAX_SAFE_INTEGER))}getLines(){let t=this.getValue();return Fa(t)}getLinesOfRange(t){return t.mapToLineArray(n=>this.getLineAt(n))}equals(t){return this===t?!0:this.getValue()===t.getValue()}},Xc=class extends tu{constructor(t,n){ic(n>=1),super(),this._getLineContent=t,this._lineCount=n}getValueOfRange(t){if(t.startLineNumber===t.endLineNumber)return this._getLineContent(t.startLineNumber).substring(t.startColumn-1,t.endColumn-1);let n=this._getLineContent(t.startLineNumber).substring(t.startColumn-1);for(let r=t.startLineNumber+1;r<t.endLineNumber;r++)n+=`
|
|
89
94
|
`+this._getLineContent(r);return n+=`
|
|
90
|
-
`+this._getLineContent(t.endLineNumber).substring(0,t.endColumn-1),n}getLineLength(t){return this._getLineContent(t).length}get length(){let t=this._getLineContent(this._lineCount);return new
|
|
91
|
-
|
|
92
|
-
`)
|
|
93
|
-
`)}},xt=class e{static joinReplacements(t,n){if(t.length===0)throw new Oe;if(t.length===1)return t[0];let r=t[0].range.getStartPosition(),i=t[t.length-1].range.getEndPosition(),s="";for(let o=0;o<t.length;o++){let a=t[o];if(s+=a.text,o<t.length-1){let u=t[o+1],l=ie.fromPositions(a.range.getEndPosition(),u.range.getStartPosition()),c=n.getValueOfRange(l);s+=c}}return new e(ie.fromPositions(r,i),s)}static fromStringReplacement(t,n){return new e(n.getTransformer().getRange(t.replaceRange),t.newText)}static delete(t){return new e(t,"")}constructor(t,n){this.range=t,this.text=n}get isEmpty(){return this.range.isEmpty()&&this.text.length===0}static equals(t,n){return t.range.equalsRange(n.range)&&t.text===n.text}toSingleEditOperation(){return{range:this.range,text:this.text}}toEdit(){return new ci([this])}equals(t){return e.equals(this,t)}extendToCoverRange(t,n){if(this.range.containsRange(t))return this;let r=this.range.plusRange(t),i=n.getValueOfRange(ie.fromPositions(r.getStartPosition(),this.range.getStartPosition())),s=n.getValueOfRange(ie.fromPositions(this.range.getEndPosition(),r.getEndPosition())),o=i+this.text+s;return new e(r,o)}extendToFullLine(t){let n=new ie(this.range.startLineNumber,1,this.range.endLineNumber,t.getTransformer().getLineLength(this.range.endLineNumber)+1);return this.extendToCoverRange(n,t)}removeCommonPrefixAndSuffix(t){return this.removeCommonPrefix(t).removeCommonSuffix(t)}removeCommonPrefix(t){let n=t.getValueOfRange(this.range).replaceAll(`\r
|
|
95
|
+
`+this._getLineContent(t.endLineNumber).substring(0,t.endColumn-1),n}getLineLength(t){return this._getLineContent(t).length}get length(){let t=this._getLineContent(this._lineCount);return new Bn(this._lineCount-1,t.length)}},si=class extends Xc{constructor(t){super(n=>t[n-1],t.length)}},Cn=class extends tu{constructor(t){super(),this.value=t,this._t=new Zi(this.value)}getValueOfRange(t){return this._t.getOffsetRange(t).substring(this.value)}get length(){return this._t.textLength}};var oi=class e{static fromStringEdit(t,n){let r=t.replacements.map(i=>nn.fromStringReplacement(i,n));return new e(r)}static replace(t,n){return new e([new nn(t,n)])}static delete(t){return new e([new nn(t,"")])}static insert(t,n){return new e([new nn(oe.fromPositions(t,t),n)])}static fromParallelReplacementsUnsorted(t){let n=t.slice().sort(En(r=>r.range,oe.compareRangesUsingStarts));return new e(n)}constructor(t){this.replacements=t,ur(()=>Vi(t,(n,r)=>n.range.getEndPosition().isBeforeOrEqual(r.range.getStartPosition())))}normalize(){let t=[];for(let n of this.replacements)if(t.length>0&&t[t.length-1].range.getEndPosition().equals(n.range.getStartPosition())){let r=t[t.length-1];t[t.length-1]=new nn(r.range.plusRange(n.range),r.text+n.text)}else n.isEmpty||t.push(n);return new e(t)}mapPosition(t){let n=0,r=0,i=0;for(let s of this.replacements){let o=s.range.getStartPosition();if(t.isBeforeOrEqual(o))break;let a=s.range.getEndPosition(),u=Bn.ofText(s.text);if(t.isBefore(a)){let l=new me(o.lineNumber+n,o.column+(o.lineNumber+n===r?i:0)),c=u.addToPosition(l);return nu(l,c)}o.lineNumber+n!==r&&(i=0),n+=u.lineCount-(s.range.endLineNumber-s.range.startLineNumber),u.lineCount===0?a.lineNumber!==o.lineNumber?i+=u.columnCount-(a.column-1):i+=u.columnCount-(a.column-o.column):i=u.columnCount,r=a.lineNumber+n}return new me(t.lineNumber+n,t.column+(t.lineNumber+n===r?i:0))}mapRange(t){function n(o){return o instanceof me?o:o.getStartPosition()}function r(o){return o instanceof me?o:o.getEndPosition()}let i=n(this.mapPosition(t.getStartPosition())),s=r(this.mapPosition(t.getEndPosition()));return nu(i,s)}inverseMapPosition(t,n){return this.inverse(n).mapPosition(t)}inverseMapRange(t,n){return this.inverse(n).mapRange(t)}apply(t){let n="",r=new me(1,1);for(let s of this.replacements){let o=s.range,a=o.getStartPosition(),u=o.getEndPosition(),l=nu(r,a);l.isEmpty()||(n+=t.getValueOfRange(l)),n+=s.text,r=u}let i=nu(r,t.endPositionExclusive);return i.isEmpty()||(n+=t.getValueOfRange(i)),n}applyToString(t){let n=new Cn(t);return this.apply(n)}inverse(t){let n=this.getNewRanges();return new e(this.replacements.map((r,i)=>new nn(n[i],t.getValueOfRange(r.range))))}getNewRanges(){let t=[],n=0,r=0,i=0;for(let s of this.replacements){let o=Bn.ofText(s.text),a=me.lift({lineNumber:s.range.startLineNumber+r,column:s.range.startColumn+(s.range.startLineNumber===n?i:0)}),u=o.createRange(a);t.push(u),r=u.endLineNumber-s.range.endLineNumber,i=u.endColumn-s.range.endColumn,n=s.range.endLineNumber}return t}toReplacement(t){if(this.replacements.length===0)throw new Ce;if(this.replacements.length===1)return this.replacements[0];let n=this.replacements[0].range.getStartPosition(),r=this.replacements[this.replacements.length-1].range.getEndPosition(),i="";for(let s=0;s<this.replacements.length;s++){let o=this.replacements[s];if(i+=o.text,s<this.replacements.length-1){let a=this.replacements[s+1],u=oe.fromPositions(o.range.getEndPosition(),a.range.getStartPosition()),l=t.getValueOfRange(u);i+=l}}return new nn(oe.fromPositions(n,r),i)}equals(t){return Na(this.replacements,t.replacements,(n,r)=>n.equals(r))}toString(t){return t===void 0?this.replacements.map(n=>n.toString()).join(`
|
|
96
|
+
`):typeof t=="string"?this.toString(new Cn(t)):this.replacements.length===0?"":this.replacements.map(n=>{let i=t.getValueOfRange(n.range),s=oe.fromPositions(new me(Math.max(1,n.range.startLineNumber-1),1),n.range.getStartPosition()),o=t.getValueOfRange(s);o.length>10&&(o="..."+o.substring(o.length-10));let a=oe.fromPositions(n.range.getEndPosition(),new me(n.range.endLineNumber+1,1)),u=t.getValueOfRange(a);u.length>10&&(u=u.substring(0,10)+"...");let l=i;if(l.length>10){let f=Math.floor(5);l=l.substring(0,f)+"..."+l.substring(l.length-f)}let c=n.text;if(c.length>10){let f=Math.floor(5);c=c.substring(0,f)+"..."+c.substring(c.length-f)}return l.length===0?`${o}\u2770${c}\u2771${u}`:`${o}\u2770${l}\u21A6${c}\u2771${u}`}).join(`
|
|
97
|
+
`)}},nn=class e{static joinReplacements(t,n){if(t.length===0)throw new Ce;if(t.length===1)return t[0];let r=t[0].range.getStartPosition(),i=t[t.length-1].range.getEndPosition(),s="";for(let o=0;o<t.length;o++){let a=t[o];if(s+=a.text,o<t.length-1){let u=t[o+1],l=oe.fromPositions(a.range.getEndPosition(),u.range.getStartPosition()),c=n.getValueOfRange(l);s+=c}}return new e(oe.fromPositions(r,i),s)}static fromStringReplacement(t,n){return new e(n.getTransformer().getRange(t.replaceRange),t.newText)}static delete(t){return new e(t,"")}constructor(t,n){this.range=t,this.text=n}get isEmpty(){return this.range.isEmpty()&&this.text.length===0}static equals(t,n){return t.range.equalsRange(n.range)&&t.text===n.text}toSingleEditOperation(){return{range:this.range,text:this.text}}toEdit(){return new oi([this])}equals(t){return e.equals(this,t)}extendToCoverRange(t,n){if(this.range.containsRange(t))return this;let r=this.range.plusRange(t),i=n.getValueOfRange(oe.fromPositions(r.getStartPosition(),this.range.getStartPosition())),s=n.getValueOfRange(oe.fromPositions(this.range.getEndPosition(),r.getEndPosition())),o=i+this.text+s;return new e(r,o)}extendToFullLine(t){let n=new oe(this.range.startLineNumber,1,this.range.endLineNumber,t.getTransformer().getLineLength(this.range.endLineNumber)+1);return this.extendToCoverRange(n,t)}removeCommonPrefix(t){let n=t.getValueOfRange(this.range).replaceAll(`\r
|
|
94
98
|
`,`
|
|
95
99
|
`),r=this.text.replaceAll(`\r
|
|
96
100
|
`,`
|
|
97
|
-
`),i=
|
|
98
|
-
`,`
|
|
99
|
-
`),r=this.text.replaceAll(`\r
|
|
100
|
-
`,`
|
|
101
|
-
`),i=Ki(n,r),s=xn.ofText(n.substring(0,n.length-i)).addToPosition(this.range.getStartPosition()),o=r.substring(0,r.length-i),a=ie.fromPositions(this.range.getStartPosition(),s);return new e(a,o)}isEffectiveDeletion(t){let n=this.text.replaceAll(`\r
|
|
101
|
+
`),i=Yi(n,r),s=Bn.ofText(n.substring(0,i)).addToPosition(this.range.getStartPosition()),o=r.substring(i),a=oe.fromPositions(s,this.range.getEndPosition());return new e(a,o)}isEffectiveDeletion(t){let n=this.text.replaceAll(`\r
|
|
102
102
|
`,`
|
|
103
103
|
`),r=t.getValueOfRange(this.range).replaceAll(`\r
|
|
104
104
|
`,`
|
|
105
|
-
`),i=Zi(n,r);n=n.substring(i),r=r.substring(i);let s=Ki(n,r);return n=n.substring(0,n.length-s),r=r.substring(0,r.length-s),n===""}toString(){let t=this.range.getStartPosition(),n=this.range.getEndPosition();return`(${t.lineNumber},${t.column} -> ${n.lineNumber},${n.column}): "${this.text}"`}};function tu(e,t){if(e.lineNumber===t.lineNumber&&e.column===Number.MAX_SAFE_INTEGER)return ie.fromPositions(t,t);if(!e.isBeforeOrEqual(t))throw new Oe("start must be before end");return new ie(e.lineNumber,e.column,t.lineNumber,t.column)}var Cn=class e{static inverse(t,n,r){let i=[],s=1,o=1;for(let u of t){let l=new e(new xe(s,u.original.startLineNumber),new xe(o,u.modified.startLineNumber));l.modified.isEmpty||i.push(l),s=u.original.endLineNumberExclusive,o=u.modified.endLineNumberExclusive}let a=new e(new xe(s,n+1),new xe(o,r+1));return a.modified.isEmpty||i.push(a),i}static clip(t,n,r){let i=[];for(let s of t){let o=s.original.intersect(n),a=s.modified.intersect(r);o&&!o.isEmpty&&a&&!a.isEmpty&&i.push(new e(o,a))}return i}constructor(t,n){this.original=t,this.modified=n}toString(){return`{${this.original.toString()}->${this.modified.toString()}}`}flip(){return new e(this.modified,this.original)}join(t){return new e(this.original.join(t.original),this.modified.join(t.modified))}get changedLineCount(){return Math.max(this.original.length,this.modified.length)}toRangeMapping(){let t=this.original.toInclusiveRange(),n=this.modified.toInclusiveRange();if(t&&n)return new rn(t,n);if(this.original.startLineNumber===1||this.modified.startLineNumber===1){if(!(this.modified.startLineNumber===1&&this.original.startLineNumber===1))throw new Oe("not a valid diff");return new rn(new ie(this.original.startLineNumber,1,this.original.endLineNumberExclusive,1),new ie(this.modified.startLineNumber,1,this.modified.endLineNumberExclusive,1))}else return new rn(new ie(this.original.startLineNumber-1,Number.MAX_SAFE_INTEGER,this.original.endLineNumberExclusive-1,Number.MAX_SAFE_INTEGER),new ie(this.modified.startLineNumber-1,Number.MAX_SAFE_INTEGER,this.modified.endLineNumberExclusive-1,Number.MAX_SAFE_INTEGER))}toRangeMapping2(t,n){if(W0(this.original.endLineNumberExclusive,t)&&W0(this.modified.endLineNumberExclusive,n))return new rn(new ie(this.original.startLineNumber,1,this.original.endLineNumberExclusive,1),new ie(this.modified.startLineNumber,1,this.modified.endLineNumberExclusive,1));if(!this.original.isEmpty&&!this.modified.isEmpty)return new rn(ie.fromPositions(new me(this.original.startLineNumber,1),rs(new me(this.original.endLineNumberExclusive-1,Number.MAX_SAFE_INTEGER),t)),ie.fromPositions(new me(this.modified.startLineNumber,1),rs(new me(this.modified.endLineNumberExclusive-1,Number.MAX_SAFE_INTEGER),n)));if(this.original.startLineNumber>1&&this.modified.startLineNumber>1)return new rn(ie.fromPositions(rs(new me(this.original.startLineNumber-1,Number.MAX_SAFE_INTEGER),t),rs(new me(this.original.endLineNumberExclusive-1,Number.MAX_SAFE_INTEGER),t)),ie.fromPositions(rs(new me(this.modified.startLineNumber-1,Number.MAX_SAFE_INTEGER),n),rs(new me(this.modified.endLineNumberExclusive-1,Number.MAX_SAFE_INTEGER),n)));throw new Oe}};function rs(e,t){if(e.lineNumber<1)return new me(1,1);if(e.lineNumber>t.length)return new me(t.length,t[t.length-1].length+1);let n=t[e.lineNumber-1];return e.column>n.length+1?new me(e.lineNumber,n.length+1):e}function W0(e,t){return e>=1&&e<=t.length}var yn=class e extends Cn{static toTextEdit(t,n){let r=[];for(let i of t)for(let s of i.innerChanges??[]){let o=s.toTextEdit(n);r.push(o)}return new ci(r)}static fromRangeMappings(t){let n=xe.join(t.map(i=>xe.fromRangeInclusive(i.originalRange))),r=xe.join(t.map(i=>xe.fromRangeInclusive(i.modifiedRange)));return new e(n,r,t)}constructor(t,n,r){super(t,n),this.innerChanges=r}flip(){return new e(this.modified,this.original,this.innerChanges?.map(t=>t.flip()))}withInnerChangesFromLineRanges(){return new e(this.original,this.modified,[this.toRangeMapping()])}},rn=class e{static fromEdit(t){let n=t.getNewRanges();return t.replacements.map((i,s)=>new e(i.range,n[s]))}static fromEditJoin(t){let n=t.getNewRanges(),r=t.replacements.map((i,s)=>new e(i.range,n[s]));return e.join(r)}static join(t){if(t.length===0)throw new Oe("Cannot join an empty list of range mappings");let n=t[0];for(let r=1;r<t.length;r++)n=n.join(t[r]);return n}static assertSorted(t){for(let n=1;n<t.length;n++){let r=t[n-1],i=t[n];if(!(r.originalRange.getEndPosition().isBeforeOrEqual(i.originalRange.getStartPosition())&&r.modifiedRange.getEndPosition().isBeforeOrEqual(i.modifiedRange.getStartPosition())))throw new Oe("Range mappings must be sorted")}}constructor(t,n){this.originalRange=t,this.modifiedRange=n}toString(){return`{${this.originalRange.toString()}->${this.modifiedRange.toString()}}`}flip(){return new e(this.modifiedRange,this.originalRange)}toTextEdit(t){let n=t.getValueOfRange(this.modifiedRange);return new xt(this.originalRange,n)}join(t){return new e(this.originalRange.plusRange(t.originalRange),this.modifiedRange.plusRange(t.modifiedRange))}};function zc(e,t,n,r=!1){let i=[];for(let s of Yh(e.map(o=>XE(o,t,n)),(o,a)=>o.original.intersectsOrTouches(a.original)||o.modified.intersectsOrTouches(a.modified))){let o=s[0],a=s[s.length-1];i.push(new yn(o.original.join(a.original),o.modified.join(a.modified),s.map(u=>u.innerChanges[0])))}return ur(()=>!r&&i.length>0&&(i[0].modified.startLineNumber!==i[0].original.startLineNumber||n.length.lineCount-i[i.length-1].modified.endLineNumberExclusive!==t.length.lineCount-i[i.length-1].original.endLineNumberExclusive)?!1:Gi(i,(s,o)=>o.original.startLineNumber-s.original.endLineNumberExclusive===o.modified.startLineNumber-s.modified.endLineNumberExclusive&&s.original.endLineNumberExclusive<o.original.startLineNumber&&s.modified.endLineNumberExclusive<o.modified.startLineNumber)),i}function XE(e,t,n){let r=0,i=0;e.modifiedRange.endColumn===1&&e.originalRange.endColumn===1&&e.originalRange.startLineNumber+r<=e.originalRange.endLineNumber&&e.modifiedRange.startLineNumber+r<=e.modifiedRange.endLineNumber&&(i=-1),e.modifiedRange.startColumn-1>=n.getLineLength(e.modifiedRange.startLineNumber)&&e.originalRange.startColumn-1>=t.getLineLength(e.originalRange.startLineNumber)&&e.originalRange.startLineNumber<=e.originalRange.endLineNumber+i&&e.modifiedRange.startLineNumber<=e.modifiedRange.endLineNumber+i&&(r=1);let s=new xe(e.originalRange.startLineNumber+r,e.originalRange.endLineNumber+1+i),o=new xe(e.modifiedRange.startLineNumber+r,e.modifiedRange.endLineNumber+1+i);return new yn(s,o,[e])}var JE=3,nu=class{computeDiff(t,n,r){let s=new Io(t,n,{maxComputationTime:r.maxComputationTimeMs,shouldIgnoreTrimWhitespace:r.ignoreTrimWhitespace,shouldComputeCharChanges:!0,shouldMakePrettyDiff:!0,shouldPostProcessCharChanges:!0}).computeDiff(),o=[],a=null;for(let u of s.changes){let l;u.originalEndLineNumber===0?l=new xe(u.originalStartLineNumber+1,u.originalStartLineNumber+1):l=new xe(u.originalStartLineNumber,u.originalEndLineNumber+1);let c;u.modifiedEndLineNumber===0?c=new xe(u.modifiedStartLineNumber+1,u.modifiedStartLineNumber+1):c=new xe(u.modifiedStartLineNumber,u.modifiedEndLineNumber+1);let f=new yn(l,c,u.charChanges?.map(d=>new rn(new ie(d.originalStartLineNumber,d.originalStartColumn,d.originalEndLineNumber,d.originalEndColumn),new ie(d.modifiedStartLineNumber,d.modifiedStartColumn,d.modifiedEndLineNumber,d.modifiedEndColumn))));a&&(a.modified.endLineNumberExclusive===f.modified.startLineNumber||a.original.endLineNumberExclusive===f.original.startLineNumber)&&(f=new yn(a.original.join(f.original),a.modified.join(f.modified),a.innerChanges&&f.innerChanges?a.innerChanges.concat(f.innerChanges):void 0),o.pop()),o.push(f),a=f}return ur(()=>Gi(o,(u,l)=>l.original.startLineNumber-u.original.endLineNumberExclusive===l.modified.startLineNumber-u.modified.endLineNumberExclusive&&u.original.endLineNumberExclusive<l.original.startLineNumber&&u.modified.endLineNumberExclusive<l.modified.startLineNumber)),new Cr(o,[],s.quitEarly)}};function Q0(e,t,n,r){return new No(e,t,n).ComputeDiff(r)}var ru=class{constructor(t){let n=[],r=[];for(let i=0,s=t.length;i<s;i++)n[i]=Yc(t[i],1),r[i]=Xc(t[i],1);this.lines=t,this._startColumns=n,this._endColumns=r}getElements(){let t=[];for(let n=0,r=this.lines.length;n<r;n++)t[n]=this.lines[n].substring(this._startColumns[n]-1,this._endColumns[n]-1);return t}getStrictElement(t){return this.lines[t]}getStartLineNumber(t){return t+1}getEndLineNumber(t){return t+1}createCharSequence(t,n,r){let i=[],s=[],o=[],a=0;for(let u=n;u<=r;u++){let l=this.lines[u],c=t?this._startColumns[u]:1,f=t?this._endColumns[u]:l.length+1;for(let d=c;d<f;d++)i[a]=l.charCodeAt(d-1),s[a]=u+1,o[a]=d,a++;!t&&u<r&&(i[a]=M.LineFeed,s[a]=u+1,o[a]=l.length+1,a++)}return new Qc(i,s,o)}},Qc=class{constructor(t,n,r){this._charCodes=t,this._lineNumbers=n,this._columns=r}toString(){return"["+this._charCodes.map((t,n)=>(t===M.LineFeed?"\\n":String.fromCharCode(t))+`-(${this._lineNumbers[n]},${this._columns[n]})`).join(", ")+"]"}_assertIndex(t,n){if(t<0||t>=n.length)throw new Error("Illegal index")}getElements(){return this._charCodes}getStartLineNumber(t){return t>0&&t===this._lineNumbers.length?this.getEndLineNumber(t-1):(this._assertIndex(t,this._lineNumbers),this._lineNumbers[t])}getEndLineNumber(t){return t===-1?this.getStartLineNumber(t+1):(this._assertIndex(t,this._lineNumbers),this._charCodes[t]===M.LineFeed?this._lineNumbers[t]+1:this._lineNumbers[t])}getStartColumn(t){return t>0&&t===this._columns.length?this.getEndColumn(t-1):(this._assertIndex(t,this._columns),this._columns[t])}getEndColumn(t){return t===-1?this.getStartColumn(t+1):(this._assertIndex(t,this._columns),this._charCodes[t]===M.LineFeed?1:this._columns[t]+1)}},is=class e{constructor(t,n,r,i,s,o,a,u){this.originalStartLineNumber=t,this.originalStartColumn=n,this.originalEndLineNumber=r,this.originalEndColumn=i,this.modifiedStartLineNumber=s,this.modifiedStartColumn=o,this.modifiedEndLineNumber=a,this.modifiedEndColumn=u}static createFromDiffChange(t,n,r){let i=n.getStartLineNumber(t.originalStart),s=n.getStartColumn(t.originalStart),o=n.getEndLineNumber(t.originalStart+t.originalLength-1),a=n.getEndColumn(t.originalStart+t.originalLength-1),u=r.getStartLineNumber(t.modifiedStart),l=r.getStartColumn(t.modifiedStart),c=r.getEndLineNumber(t.modifiedStart+t.modifiedLength-1),f=r.getEndColumn(t.modifiedStart+t.modifiedLength-1);return new e(i,s,o,a,u,l,c,f)}};function ZE(e){if(e.length<=1)return e;let t=[e[0]],n=t[0];for(let r=1,i=e.length;r<i;r++){let s=e[r],o=s.originalStart-(n.originalStart+n.originalLength),a=s.modifiedStart-(n.modifiedStart+n.modifiedLength);Math.min(o,a)<JE?(n.originalLength=s.originalStart+s.originalLength-n.originalStart,n.modifiedLength=s.modifiedStart+s.modifiedLength-n.modifiedStart):(t.push(s),n=s)}return t}var Ro=class e{constructor(t,n,r,i,s){this.originalStartLineNumber=t,this.originalEndLineNumber=n,this.modifiedStartLineNumber=r,this.modifiedEndLineNumber=i,this.charChanges=s}static createFromDiffResult(t,n,r,i,s,o,a){let u,l,c,f,d;if(n.originalLength===0?(u=r.getStartLineNumber(n.originalStart)-1,l=0):(u=r.getStartLineNumber(n.originalStart),l=r.getEndLineNumber(n.originalStart+n.originalLength-1)),n.modifiedLength===0?(c=i.getStartLineNumber(n.modifiedStart)-1,f=0):(c=i.getStartLineNumber(n.modifiedStart),f=i.getEndLineNumber(n.modifiedStart+n.modifiedLength-1)),o&&n.originalLength>0&&n.originalLength<20&&n.modifiedLength>0&&n.modifiedLength<20&&s()){let m=r.createCharSequence(t,n.originalStart,n.originalStart+n.originalLength-1),g=i.createCharSequence(t,n.modifiedStart,n.modifiedStart+n.modifiedLength-1);if(m.getElements().length>0&&g.getElements().length>0){let E=Q0(m,g,s,!0).changes;a&&(E=ZE(E)),d=[];for(let T=0,v=E.length;T<v;T++)d.push(is.createFromDiffChange(E[T],m,g))}}return new e(u,l,c,f,d)}},Io=class{constructor(t,n,r){this.shouldComputeCharChanges=r.shouldComputeCharChanges,this.shouldPostProcessCharChanges=r.shouldPostProcessCharChanges,this.shouldIgnoreTrimWhitespace=r.shouldIgnoreTrimWhitespace,this.shouldMakePrettyDiff=r.shouldMakePrettyDiff,this.originalLines=t,this.modifiedLines=n,this.original=new ru(t),this.modified=new ru(n),this.continueLineDiff=z0(r.maxComputationTime),this.continueCharDiff=z0(r.maxComputationTime===0?0:Math.min(r.maxComputationTime,5e3))}computeDiff(){if(this.original.lines.length===1&&this.original.lines[0].length===0)return this.modified.lines.length===1&&this.modified.lines[0].length===0?{quitEarly:!1,changes:[]}:{quitEarly:!1,changes:[{originalStartLineNumber:1,originalEndLineNumber:1,modifiedStartLineNumber:1,modifiedEndLineNumber:this.modified.lines.length,charChanges:void 0}]};if(this.modified.lines.length===1&&this.modified.lines[0].length===0)return{quitEarly:!1,changes:[{originalStartLineNumber:1,originalEndLineNumber:this.original.lines.length,modifiedStartLineNumber:1,modifiedEndLineNumber:1,charChanges:void 0}]};let t=Q0(this.original,this.modified,this.continueLineDiff,this.shouldMakePrettyDiff),n=t.changes,r=t.quitEarly;if(this.shouldIgnoreTrimWhitespace){let a=[];for(let u=0,l=n.length;u<l;u++)a.push(Ro.createFromDiffResult(this.shouldIgnoreTrimWhitespace,n[u],this.original,this.modified,this.continueCharDiff,this.shouldComputeCharChanges,this.shouldPostProcessCharChanges));return{quitEarly:r,changes:a}}let i=[],s=0,o=0;for(let a=-1,u=n.length;a<u;a++){let l=a+1<u?n[a+1]:null,c=l?l.originalStart:this.originalLines.length,f=l?l.modifiedStart:this.modifiedLines.length;for(;s<c&&o<f;){let d=this.originalLines[s],m=this.modifiedLines[o];if(d!==m){{let g=Yc(d,1),E=Yc(m,1);for(;g>1&&E>1;){let T=d.charCodeAt(g-2),v=m.charCodeAt(E-2);if(T!==v)break;g--,E--}(g>1||E>1)&&this._pushTrimWhitespaceCharChange(i,s+1,1,g,o+1,1,E)}{let g=Xc(d,1),E=Xc(m,1),T=d.length+1,v=m.length+1;for(;g<T&&E<v;){let A=d.charCodeAt(g-1),S=d.charCodeAt(E-1);if(A!==S)break;g++,E++}(g<T||E<v)&&this._pushTrimWhitespaceCharChange(i,s+1,g,T,o+1,E,v)}}s++,o++}l&&(i.push(Ro.createFromDiffResult(this.shouldIgnoreTrimWhitespace,l,this.original,this.modified,this.continueCharDiff,this.shouldComputeCharChanges,this.shouldPostProcessCharChanges)),s+=l.originalLength,o+=l.modifiedLength)}return{quitEarly:r,changes:i}}_pushTrimWhitespaceCharChange(t,n,r,i,s,o,a){if(this._mergeTrimWhitespaceCharChange(t,n,r,i,s,o,a))return;let u;this.shouldComputeCharChanges&&(u=[new is(n,r,n,i,s,o,s,a)]),t.push(new Ro(n,n,s,s,u))}_mergeTrimWhitespaceCharChange(t,n,r,i,s,o,a){let u=t.length;if(u===0)return!1;let l=t[u-1];return l.originalEndLineNumber===0||l.modifiedEndLineNumber===0?!1:l.originalEndLineNumber===n&&l.modifiedEndLineNumber===s?(this.shouldComputeCharChanges&&l.charChanges&&l.charChanges.push(new is(n,r,n,i,s,o,s,a)),!0):l.originalEndLineNumber+1===n&&l.modifiedEndLineNumber+1===s?(l.originalEndLineNumber=n,l.modifiedEndLineNumber=s,this.shouldComputeCharChanges&&l.charChanges&&l.charChanges.push(new is(n,r,n,i,s,o,s,a)),!0):!1}};function Yc(e,t){let n=Fp(e);return n===-1?t:n+1}function Xc(e,t){let n=Sp(e);return n===-1?t:n+2}function z0(e){if(e===0)return()=>!0;let t=Date.now();return()=>Date.now()-t<e}var $n=class e{static trivial(t,n){return new e([new at(le.ofLength(t.length),le.ofLength(n.length))],!1)}static trivialTimedOut(t,n){return new e([new at(le.ofLength(t.length),le.ofLength(n.length))],!0)}constructor(t,n){this.diffs=t,this.hitTimeout=n}},at=class e{static invert(t,n){let r=[];return Xh(t,(i,s)=>{r.push(e.fromOffsetPairs(i?i.getEndExclusives():Vn.zero,s?s.getStarts():new Vn(n,(i?i.seq2Range.endExclusive-i.seq1Range.endExclusive:0)+n)))}),r}static fromOffsetPairs(t,n){return new e(new le(t.offset1,n.offset1),new le(t.offset2,n.offset2))}static assertSorted(t){let n;for(let r of t){if(n&&!(n.seq1Range.endExclusive<=r.seq1Range.start&&n.seq2Range.endExclusive<=r.seq2Range.start))throw new Oe("Sequence diffs must be sorted");n=r}}constructor(t,n){this.seq1Range=t,this.seq2Range=n}swap(){return new e(this.seq2Range,this.seq1Range)}toString(){return`${this.seq1Range} <-> ${this.seq2Range}`}join(t){return new e(this.seq1Range.join(t.seq1Range),this.seq2Range.join(t.seq2Range))}delta(t){return t===0?this:new e(this.seq1Range.delta(t),this.seq2Range.delta(t))}deltaStart(t){return t===0?this:new e(this.seq1Range.deltaStart(t),this.seq2Range.deltaStart(t))}deltaEnd(t){return t===0?this:new e(this.seq1Range.deltaEnd(t),this.seq2Range.deltaEnd(t))}intersectsOrTouches(t){return this.seq1Range.intersectsOrTouches(t.seq1Range)||this.seq2Range.intersectsOrTouches(t.seq2Range)}intersect(t){let n=this.seq1Range.intersect(t.seq1Range),r=this.seq2Range.intersect(t.seq2Range);if(!(!n||!r))return new e(n,r)}getStarts(){return new Vn(this.seq1Range.start,this.seq2Range.start)}getEndExclusives(){return new Vn(this.seq1Range.endExclusive,this.seq2Range.endExclusive)}},Vn=class e{static{this.zero=new e(0,0)}static{this.max=new e(Number.MAX_SAFE_INTEGER,Number.MAX_SAFE_INTEGER)}constructor(t,n){this.offset1=t,this.offset2=n}toString(){return`${this.offset1} <-> ${this.offset2}`}delta(t){return t===0?this:new e(this.offset1+t,this.offset2+t)}equals(t){return this.offset1===t.offset1&&this.offset2===t.offset2}},Vr=class e{static{this.instance=new e}isValid(){return!0}},iu=class{constructor(t){if(this.timeout=t,this.startTime=Date.now(),this.valid=!0,t<=0)throw new Oe("timeout must be positive")}isValid(){return!(Date.now()-this.startTime<this.timeout)&&this.valid&&(this.valid=!1),this.valid}disable(){this.timeout=Number.MAX_SAFE_INTEGER,this.isValid=()=>!0,this.valid=!0}};var ss=class{constructor(t,n){this.width=t,this.height=n,this.array=[],this.array=new Array(t*n)}get(t,n){return this.array[t+n*this.width]}set(t,n,r){this.array[t+n*this.width]=r}};function ko(e){return e===M.Space||e===M.Tab}var Oo=class e{static{this.chrKeys=new Map}static getKey(t){let n=this.chrKeys.get(t);return n===void 0&&(n=this.chrKeys.size,this.chrKeys.set(t,n)),n}constructor(t,n,r){this.range=t,this.lines=n,this.source=r,this.histogram=[];let i=0;for(let s=t.startLineNumber-1;s<t.endLineNumberExclusive-1;s++){let o=n[s];for(let u=0;u<o.length;u++){i++;let l=o[u],c=e.getKey(l);this.histogram[c]=(this.histogram[c]||0)+1}i++;let a=e.getKey(`
|
|
106
|
-
`);this.histogram[a]=(this.histogram[a]||0)+1}this.totalCount=i}computeSimilarity(t){let n=0,r=Math.max(this.histogram.length,t.histogram.length);for(let i=0;i<r;i++)n+=Math.abs((this.histogram[i]??0)-(t.histogram[i]??0));return 1-n/(this.totalCount+t.totalCount)}};var
|
|
107
|
-
`).length>=15&&eD(f,m=>m.length>=2)>=2}),o=iD(e,o),o}function eD(e,t){let n=0;for(let r of e)t(r)&&n++;return n}function tD(e,t,n,r){let i=[],s=e.filter(u=>u.modified.isEmpty&&u.original.length>=3).map(u=>new Oo(u.original,t,u)),o=new Set(e.filter(u=>u.original.isEmpty&&u.modified.length>=3).map(u=>new Oo(u.modified,n,u))),a=new Set;for(let u of s){let l=-1,c;for(let f of o){let d=u.computeSimilarity(f);d>l&&(l=d,c=f)}if(l>.9&&c&&(o.delete(c),i.push(new Cn(u.range,c.range)),a.add(u.source),a.add(c.source)),!r.isValid())return{moves:i,excludedChanges:a}}return{moves:i,excludedChanges:a}}function nD(e,t,n,r,i,s){let o=[],a=new ji;for(let d of e)for(let m=d.original.startLineNumber;m<d.original.endLineNumberExclusive-2;m++){let g=`${t[m-1]}:${t[m+1-1]}:${t[m+2-1]}`;a.add(g,{range:new xe(m,m+3)})}let u=[];e.sort(Dn(d=>d.modified.startLineNumber,ar));for(let d of e){let m=[];for(let g=d.modified.startLineNumber;g<d.modified.endLineNumberExclusive-2;g++){let E=`${n[g-1]}:${n[g+1-1]}:${n[g+2-1]}`,T=new xe(g,g+3),v=[];a.forEach(E,({range:A})=>{for(let C of m)if(C.originalLineRange.endLineNumberExclusive+1===A.endLineNumberExclusive&&C.modifiedLineRange.endLineNumberExclusive+1===T.endLineNumberExclusive){C.originalLineRange=new xe(C.originalLineRange.startLineNumber,A.endLineNumberExclusive),C.modifiedLineRange=new xe(C.modifiedLineRange.startLineNumber,T.endLineNumberExclusive),v.push(C);return}let S={modifiedLineRange:T,originalLineRange:A};u.push(S),v.push(S)}),m=v}if(!s.isValid())return[]}u.sort(Kh(Dn(d=>d.modifiedLineRange.length,ar)));let l=new ui,c=new ui;for(let d of u){let m=d.modifiedLineRange.startLineNumber-d.originalLineRange.startLineNumber,g=l.subtractFrom(d.modifiedLineRange),E=c.subtractFrom(d.originalLineRange).getWithDelta(m),T=g.getIntersection(E);for(let v of T.ranges){if(v.length<3)continue;let A=v,S=v.delta(-m);o.push(new Cn(S,A)),l.addRange(A),c.addRange(S)}}o.sort(Dn(d=>d.original.startLineNumber,ar));let f=new co(e);for(let d=0;d<o.length;d++){let m=o[d],g=f.findLastMonotonous(G=>G.original.startLineNumber<=m.original.startLineNumber),E=sr(e,G=>G.modified.startLineNumber<=m.modified.startLineNumber),T=Math.max(m.original.startLineNumber-g.original.startLineNumber,m.modified.startLineNumber-E.modified.startLineNumber),v=f.findLastMonotonous(G=>G.original.startLineNumber<m.original.endLineNumberExclusive),A=sr(e,G=>G.modified.startLineNumber<m.modified.endLineNumberExclusive),S=Math.max(v.original.endLineNumberExclusive-m.original.endLineNumberExclusive,A.modified.endLineNumberExclusive-m.modified.endLineNumberExclusive),C;for(C=0;C<T;C++){let G=m.original.startLineNumber-C-1,I=m.modified.startLineNumber-C-1;if(G>r.length||I>i.length||l.contains(I)||c.contains(G)||!Z0(r[G-1],i[I-1],s))break}C>0&&(c.addRange(new xe(m.original.startLineNumber-C,m.original.startLineNumber)),l.addRange(new xe(m.modified.startLineNumber-C,m.modified.startLineNumber)));let q;for(q=0;q<S;q++){let G=m.original.endLineNumberExclusive+q,I=m.modified.endLineNumberExclusive+q;if(G>r.length||I>i.length||l.contains(I)||c.contains(G)||!Z0(r[G-1],i[I-1],s))break}q>0&&(c.addRange(new xe(m.original.endLineNumberExclusive,m.original.endLineNumberExclusive+q)),l.addRange(new xe(m.modified.endLineNumberExclusive,m.modified.endLineNumberExclusive+q))),(C>0||q>0)&&(o[d]=new Cn(new xe(m.original.startLineNumber-C,m.original.endLineNumberExclusive+q),new xe(m.modified.startLineNumber-C,m.modified.endLineNumberExclusive+q)))}return o}function Z0(e,t,n){if(e.trim()===t.trim())return!0;if(e.length>300&&t.length>300)return!1;let i=new os().compute(new $r([e],new ie(1,1,1,e.length),!1),new $r([t],new ie(1,1,1,t.length),!1),n),s=0,o=at.invert(i.diffs,e.length);for(let c of o)c.seq1Range.forEach(f=>{ko(e.charCodeAt(f))||s++});function a(c){let f=0;for(let d=0;d<e.length;d++)ko(c.charCodeAt(d))||f++;return f}let u=a(e.length>t.length?e:t);return s/u>.6&&u>10}function rD(e){if(e.length===0)return e;e.sort(Dn(n=>n.original.startLineNumber,ar));let t=[e[0]];for(let n=1;n<e.length;n++){let r=t[t.length-1],i=e[n],s=i.original.startLineNumber-r.original.endLineNumberExclusive,o=i.modified.startLineNumber-r.modified.endLineNumberExclusive;if(s>=0&&o>=0&&s+o<=2){t[t.length-1]=r.join(i);continue}t.push(i)}return t}function iD(e,t){let n=new co(e);return t=t.filter(r=>{let i=n.findLastMonotonous(a=>a.original.startLineNumber<r.original.endLineNumberExclusive)||new Cn(new xe(1,1),new xe(1,1)),s=sr(e,a=>a.modified.startLineNumber<r.modified.endLineNumberExclusive);return i!==s}),t}function Kc(e,t,n){let r=n;return r=em(e,t,r),r=em(e,t,r),r=sD(e,t,r),r}function em(e,t,n){if(n.length===0)return n;let r=[];r.push(n[0]);for(let s=1;s<n.length;s++){let o=r[r.length-1],a=n[s];if(a.seq1Range.isEmpty||a.seq2Range.isEmpty){let u=a.seq1Range.start-o.seq1Range.endExclusive,l;for(l=1;l<=u&&!(e.getElement(a.seq1Range.start-l)!==e.getElement(a.seq1Range.endExclusive-l)||t.getElement(a.seq2Range.start-l)!==t.getElement(a.seq2Range.endExclusive-l));l++);if(l--,l===u){r[r.length-1]=new at(new le(o.seq1Range.start,a.seq1Range.endExclusive-u),new le(o.seq2Range.start,a.seq2Range.endExclusive-u));continue}a=a.delta(-l)}r.push(a)}let i=[];for(let s=0;s<r.length-1;s++){let o=r[s+1],a=r[s];if(a.seq1Range.isEmpty||a.seq2Range.isEmpty){let u=o.seq1Range.start-a.seq1Range.endExclusive,l;for(l=0;l<u&&!(!e.isStronglyEqual(a.seq1Range.start+l,a.seq1Range.endExclusive+l)||!t.isStronglyEqual(a.seq2Range.start+l,a.seq2Range.endExclusive+l));l++);if(l===u){r[s+1]=new at(new le(a.seq1Range.start+u,o.seq1Range.endExclusive),new le(a.seq2Range.start+u,o.seq2Range.endExclusive));continue}l>0&&(a=a.delta(l))}i.push(a)}return r.length>0&&i.push(r[r.length-1]),i}function sD(e,t,n){if(!e.getBoundaryScore||!t.getBoundaryScore)return n;for(let r=0;r<n.length;r++){let i=r>0?n[r-1]:void 0,s=n[r],o=r+1<n.length?n[r+1]:void 0,a=new le(i?i.seq1Range.endExclusive+1:0,o?o.seq1Range.start-1:e.length),u=new le(i?i.seq2Range.endExclusive+1:0,o?o.seq2Range.start-1:t.length);s.seq1Range.isEmpty?n[r]=tm(s,e,t,a,u):s.seq2Range.isEmpty&&(n[r]=tm(s.swap(),t,e,u,a).swap())}return n}function tm(e,t,n,r,i){let o=1;for(;e.seq1Range.start-o>=r.start&&e.seq2Range.start-o>=i.start&&n.isStronglyEqual(e.seq2Range.start-o,e.seq2Range.endExclusive-o)&&o<100;)o++;o--;let a=0;for(;e.seq1Range.start+a<r.endExclusive&&e.seq2Range.endExclusive+a<i.endExclusive&&n.isStronglyEqual(e.seq2Range.start+a,e.seq2Range.endExclusive+a)&&a<100;)a++;if(o===0&&a===0)return e;let u=0,l=-1;for(let c=-o;c<=a;c++){let f=e.seq2Range.start+c,d=e.seq2Range.endExclusive+c,m=e.seq1Range.start+c,g=t.getBoundaryScore(m)+n.getBoundaryScore(f)+n.getBoundaryScore(d);g>l&&(l=g,u=c)}return e.delta(u)}function nm(e,t,n){let r=[];for(let i of n){let s=r[r.length-1];if(!s){r.push(i);continue}i.seq1Range.start-s.seq1Range.endExclusive<=2||i.seq2Range.start-s.seq2Range.endExclusive<=2?r[r.length-1]=new at(s.seq1Range.join(i.seq1Range),s.seq2Range.join(i.seq2Range)):r.push(i)}return r}function ef(e,t,n,r,i=!1){let s=at.invert(n,e.length),o=[],a=new Vn(0,0);function u(c,f){if(c.offset1<a.offset1||c.offset2<a.offset2)return;let d=r(e,c.offset1),m=r(t,c.offset2);if(!d||!m)return;let g=new at(d,m),E=g.intersect(f),T=E.seq1Range.length,v=E.seq2Range.length;for(;s.length>0;){let A=s[0];if(!(A.seq1Range.intersects(g.seq1Range)||A.seq2Range.intersects(g.seq2Range)))break;let C=r(e,A.seq1Range.start),q=r(t,A.seq2Range.start),G=new at(C,q),I=G.intersect(A);if(T+=I.seq1Range.length,v+=I.seq2Range.length,g=g.join(G),g.seq1Range.endExclusive>=A.seq1Range.endExclusive)s.shift();else break}(i&&T+v<g.seq1Range.length+g.seq2Range.length||T+v<(g.seq1Range.length+g.seq2Range.length)*2/3)&&o.push(g),a=g.getEndExclusives()}for(;s.length>0;){let c=s.shift();c.seq1Range.isEmpty||(u(c.getStarts(),c),u(c.getEndExclusives().delta(-1),c))}return oD(n,o)}function oD(e,t){let n=[];for(;e.length>0||t.length>0;){let r=e[0],i=t[0],s;r&&(!i||r.seq1Range.start<i.seq1Range.start)?s=e.shift():s=t.shift(),n.length>0&&n[n.length-1].seq1Range.endExclusive>=s.seq1Range.start?n[n.length-1]=n[n.length-1].join(s):n.push(s)}return n}function rm(e,t,n){let r=n;if(r.length===0)return r;let i=0,s;do{s=!1;let o=[r[0]];for(let a=1;a<r.length;a++){let c=function(d,m){let g=new le(l.seq1Range.endExclusive,u.seq1Range.start);return e.getText(g).replace(/\s/g,"").length<=4&&(d.seq1Range.length+d.seq2Range.length>5||m.seq1Range.length+m.seq2Range.length>5)},u=r[a],l=o[o.length-1];c(l,u)?(s=!0,o[o.length-1]=o[o.length-1].join(u)):o.push(u)}r=o}while(i++<10&&s);return r}function im(e,t,n){let r=n;if(r.length===0)return r;let i=0,s;do{s=!1;let a=[r[0]];for(let u=1;u<r.length;u++){let f=function(m,g){let E=new le(c.seq1Range.endExclusive,l.seq1Range.start);if(e.countLinesIn(E)>5||E.length>500)return!1;let v=e.getText(E).trim();if(v.length>20||v.split(/\r\n|\r|\n/).length>1)return!1;let A=e.countLinesIn(m.seq1Range),S=m.seq1Range.length,C=t.countLinesIn(m.seq2Range),q=m.seq2Range.length,G=e.countLinesIn(g.seq1Range),I=g.seq1Range.length,k=t.countLinesIn(g.seq2Range),w=g.seq2Range.length,L=2*40+50;function Z(P){return Math.min(P,L)}return Math.pow(Math.pow(Z(A*40+S),1.5)+Math.pow(Z(C*40+q),1.5),1.5)+Math.pow(Math.pow(Z(G*40+I),1.5)+Math.pow(Z(k*40+w),1.5),1.5)>(L**1.5)**1.5*1.3},l=r[u],c=a[a.length-1];f(c,l)?(s=!0,a[a.length-1]=a[a.length-1].join(l)):a.push(l)}r=a}while(i++<10&&s);let o=[];return Jh(r,(a,u,l)=>{let c=u;function f(v){return v.length>0&&v.trim().length<=3&&u.seq1Range.length+u.seq2Range.length>100}let d=e.extendToFullLines(u.seq1Range),m=e.getText(new le(d.start,u.seq1Range.start));f(m)&&(c=c.deltaStart(-m.length));let g=e.getText(new le(u.seq1Range.endExclusive,d.endExclusive));f(g)&&(c=c.deltaEnd(g.length));let E=at.fromOffsetPairs(a?a.getEndExclusives():Vn.zero,l?l.getStarts():Vn.max),T=c.intersect(E);o.length>0&&T.getStarts().equals(o[o.length-1].getEndExclusives())?o[o.length-1]=o[o.length-1].join(T):o.push(T)}),o}var Mo=class{constructor(t,n){this.trimmedHash=t,this.lines=n}getElement(t){return this.trimmedHash[t]}get length(){return this.trimmedHash.length}getBoundaryScore(t){let n=t===0?0:sm(this.lines[t-1]),r=t===this.lines.length?0:sm(this.lines[t]);return 1e3-(n+r)}getText(t){return this.lines.slice(t.start,t.endExclusive).join(`
|
|
108
|
-
`)}isStronglyEqual(t,n){return this.lines[t]===this.lines[n]}};function sm(e){let t=0;for(;t<e.length&&(e.charCodeAt(t)===M.Space||e.charCodeAt(t)===M.Tab);)t++;return t}var au=class{constructor(){this.dynamicProgrammingDiffing=new su,this.myersDiffingAlgorithm=new os}computeDiff(t,n,r){if(t.length<=1&&Na(t,n,(I,k)=>I===k))return new Cr([],[],!1);if(t.length===1&&t[0].length===0||n.length===1&&n[0].length===0)return new Cr([new yn(new xe(1,t.length+1),new xe(1,n.length+1),[new rn(new ie(1,1,t.length,t[t.length-1].length+1),new ie(1,1,n.length,n[n.length-1].length+1))])],[],!1);let i=r.maxComputationTimeMs===0?Vr.instance:new iu(r.maxComputationTimeMs),s=!r.ignoreTrimWhitespace,o=new Map;function a(I){let k=o.get(I);return k===void 0&&(k=o.size,o.set(I,k)),k}let u=t.map(I=>a(I.trim())),l=n.map(I=>a(I.trim())),c=new Mo(u,t),f=new Mo(l,n),d=c.length+f.length<1700?this.dynamicProgrammingDiffing.compute(c,f,i,(I,k)=>t[I]===n[k]?n[k].length===0?.1:1+Math.log(1+n[k].length):.99):this.myersDiffingAlgorithm.compute(c,f,i),m=d.diffs,g=d.hitTimeout;m=Kc(c,f,m),m=rm(c,f,m);let E=[],T=I=>{if(s)for(let k=0;k<I;k++){let w=v+k,L=A+k;if(t[w]!==n[L]){let Z=this.refineDiff(t,n,new at(new le(w,w+1),new le(L,L+1)),i,s,r);for(let P of Z.mappings)E.push(P);Z.hitTimeout&&(g=!0)}}},v=0,A=0;for(let I of m){ur(()=>I.seq1Range.start-v===I.seq2Range.start-A);let k=I.seq1Range.start-v;T(k),v=I.seq1Range.endExclusive,A=I.seq2Range.endExclusive;let w=this.refineDiff(t,n,I,i,s,r);w.hitTimeout&&(g=!0);for(let L of w.mappings)E.push(L)}T(t.length-v);let S=new li(t),C=new li(n),q=zc(E,S,C),G=[];return r.computeMoves&&(G=this.computeMoves(q,t,n,u,l,i,s,r)),ur(()=>{function I(w,L){if(w.lineNumber<1||w.lineNumber>L.length)return!1;let Z=L[w.lineNumber-1];return!(w.column<1||w.column>Z.length+1)}function k(w,L){return!(w.startLineNumber<1||w.startLineNumber>L.length+1||w.endLineNumberExclusive<1||w.endLineNumberExclusive>L.length+1)}for(let w of q){if(!w.innerChanges)return!1;for(let L of w.innerChanges)if(!(I(L.modifiedRange.getStartPosition(),n)&&I(L.modifiedRange.getEndPosition(),n)&&I(L.originalRange.getStartPosition(),t)&&I(L.originalRange.getEndPosition(),t)))return!1;if(!k(w.modified,n)||!k(w.original,t))return!1}return!0}),new Cr(q,G,g)}computeMoves(t,n,r,i,s,o,a,u){return K0(t,n,r,i,s,o).map(f=>{let d=this.refineDiff(n,r,new at(f.original.toOffsetRange(),f.modified.toOffsetRange()),o,a,u),m=zc(d.mappings,new li(n),new li(r),!0);return new Za(f,m)})}refineDiff(t,n,r,i,s,o){let u=aD(r).toRangeMapping2(t,n),l=new $r(t,u.originalRange,s),c=new $r(n,u.modifiedRange,s),f=l.length+c.length<500?this.dynamicProgrammingDiffing.compute(l,c,i):this.myersDiffingAlgorithm.compute(l,c,i),d=f.diffs;return d=Kc(l,c,d),d=ef(l,c,d,(g,E)=>g.findWordContaining(E)),o.extendToSubwords&&(d=ef(l,c,d,(g,E)=>g.findSubWordContaining(E),!0)),d=nm(l,c,d),d=im(l,c,d),{mappings:d.map(g=>new rn(l.translateRange(g.seq1Range),c.translateRange(g.seq2Range))),hitTimeout:f.hitTimeout}}};function aD(e){return new Cn(new xe(e.seq1Range.start+1,e.seq1Range.endExclusive+1),new xe(e.seq2Range.start+1,e.seq2Range.endExclusive+1))}var us={getLegacy:()=>new nu,getDefault:()=>new au};function jr(e,t){let n=Math.pow(10,t);return Math.round(e*n)/n}var U=class{constructor(t,n,r,i=1){this._rgbaBrand=void 0,this.r=Math.min(255,Math.max(0,t))|0,this.g=Math.min(255,Math.max(0,n))|0,this.b=Math.min(255,Math.max(0,r))|0,this.a=jr(Math.max(Math.min(1,i),0),3)}static equals(t,n){return t.r===n.r&&t.g===n.g&&t.b===n.b&&t.a===n.a}},jn=class e{constructor(t,n,r,i){this._hslaBrand=void 0,this.h=Math.max(Math.min(360,t),0)|0,this.s=jr(Math.max(Math.min(1,n),0),3),this.l=jr(Math.max(Math.min(1,r),0),3),this.a=jr(Math.max(Math.min(1,i),0),3)}static equals(t,n){return t.h===n.h&&t.s===n.s&&t.l===n.l&&t.a===n.a}static fromRGBA(t){let n=t.r/255,r=t.g/255,i=t.b/255,s=t.a,o=Math.max(n,r,i),a=Math.min(n,r,i),u=0,l=0,c=(a+o)/2,f=o-a;if(f>0){switch(l=Math.min(c<=.5?f/(2*c):f/(2-2*c),1),o){case n:u=(r-i)/f+(r<i?6:0);break;case r:u=(i-n)/f+2;break;case i:u=(n-r)/f+4;break}u*=60,u=Math.round(u)}return new e(u,l,c,s)}static _hue2rgb(t,n,r){return r<0&&(r+=1),r>1&&(r-=1),r<1/6?t+(n-t)*6*r:r<1/2?n:r<2/3?t+(n-t)*(2/3-r)*6:t}static toRGBA(t){let n=t.h/360,{s:r,l:i,a:s}=t,o,a,u;if(r===0)o=a=u=i;else{let l=i<.5?i*(1+r):i+r-i*r,c=2*i-l;o=e._hue2rgb(c,l,n+1/3),a=e._hue2rgb(c,l,n),u=e._hue2rgb(c,l,n-1/3)}return new U(Math.round(o*255),Math.round(a*255),Math.round(u*255),s)}},ls=class e{constructor(t,n,r,i){this._hsvaBrand=void 0,this.h=Math.max(Math.min(360,t),0)|0,this.s=jr(Math.max(Math.min(1,n),0),3),this.v=jr(Math.max(Math.min(1,r),0),3),this.a=jr(Math.max(Math.min(1,i),0),3)}static equals(t,n){return t.h===n.h&&t.s===n.s&&t.v===n.v&&t.a===n.a}static fromRGBA(t){let n=t.r/255,r=t.g/255,i=t.b/255,s=Math.max(n,r,i),o=Math.min(n,r,i),a=s-o,u=s===0?0:a/s,l;return a===0?l=0:s===n?l=((r-i)/a%6+6)%6:s===r?l=(i-n)/a+2:l=(n-r)/a+4,new e(Math.round(l*60),u,s,t.a)}static toRGBA(t){let{h:n,s:r,v:i,a:s}=t,o=i*r,a=o*(1-Math.abs(n/60%2-1)),u=i-o,[l,c,f]=[0,0,0];return n<60?(l=o,c=a):n<120?(l=a,c=o):n<180?(c=o,f=a):n<240?(c=a,f=o):n<300?(l=a,f=o):n<=360&&(l=o,f=a),l=Math.round((l+u)*255),c=Math.round((c+u)*255),f=Math.round((f+u)*255),new U(l,c,f,s)}},fi=class e{static fromHex(t){return e.Format.CSS.parseHex(t)||e.red}static equals(t,n){return!t&&!n?!0:!t||!n?!1:t.equals(n)}get hsla(){return this._hsla?this._hsla:jn.fromRGBA(this.rgba)}get hsva(){return this._hsva?this._hsva:ls.fromRGBA(this.rgba)}constructor(t){if(t)if(t instanceof U)this.rgba=t;else if(t instanceof jn)this._hsla=t,this.rgba=jn.toRGBA(t);else if(t instanceof ls)this._hsva=t,this.rgba=ls.toRGBA(t);else throw new Error("Invalid color ctor argument");else throw new Error("Color needs a value")}equals(t){return!!t&&U.equals(this.rgba,t.rgba)&&jn.equals(this.hsla,t.hsla)&&ls.equals(this.hsva,t.hsva)}getRelativeLuminance(){let t=e._relativeLuminanceForComponent(this.rgba.r),n=e._relativeLuminanceForComponent(this.rgba.g),r=e._relativeLuminanceForComponent(this.rgba.b),i=.2126*t+.7152*n+.0722*r;return jr(i,4)}reduceRelativeLuminace(t,n){let{r,g:i,b:s}=t.rgba,o=this.getContrastRatio(t);for(;o<n&&(r>0||i>0||s>0);)r-=Math.max(0,Math.ceil(r*.1)),i-=Math.max(0,Math.ceil(i*.1)),s-=Math.max(0,Math.ceil(s*.1)),o=this.getContrastRatio(new e(new U(r,i,s)));return new e(new U(r,i,s))}increaseRelativeLuminace(t,n){let{r,g:i,b:s}=t.rgba,o=this.getContrastRatio(t);for(;o<n&&(r<255||i<255||s<255);)r=Math.min(255,r+Math.ceil((255-r)*.1)),i=Math.min(255,i+Math.ceil((255-i)*.1)),s=Math.min(255,s+Math.ceil((255-s)*.1)),o=this.getContrastRatio(new e(new U(r,i,s)));return new e(new U(r,i,s))}static _relativeLuminanceForComponent(t){let n=t/255;return n<=.03928?n/12.92:Math.pow((n+.055)/1.055,2.4)}getContrastRatio(t){let n=this.getRelativeLuminance(),r=t.getRelativeLuminance();return n>r?(n+.05)/(r+.05):(r+.05)/(n+.05)}isDarker(){return(this.rgba.r*299+this.rgba.g*587+this.rgba.b*114)/1e3<128}isLighter(){return(this.rgba.r*299+this.rgba.g*587+this.rgba.b*114)/1e3>=128}isLighterThan(t){let n=this.getRelativeLuminance(),r=t.getRelativeLuminance();return n>r}isDarkerThan(t){let n=this.getRelativeLuminance(),r=t.getRelativeLuminance();return n<r}ensureConstrast(t,n){let r=this.getRelativeLuminance(),i=t.getRelativeLuminance();if(this.getContrastRatio(t)<n){if(i<r){let u=this.reduceRelativeLuminace(t,n),l=this.getContrastRatio(u);if(l<n){let c=this.increaseRelativeLuminace(t,n),f=this.getContrastRatio(c);return l>f?u:c}return u}let o=this.increaseRelativeLuminace(t,n),a=this.getContrastRatio(o);if(a<n){let u=this.reduceRelativeLuminace(t,n),l=this.getContrastRatio(u);return a>l?o:u}return o}return t}lighten(t){return new e(new jn(this.hsla.h,this.hsla.s,this.hsla.l+this.hsla.l*t,this.hsla.a))}darken(t){return new e(new jn(this.hsla.h,this.hsla.s,this.hsla.l-this.hsla.l*t,this.hsla.a))}transparent(t){let{r:n,g:r,b:i,a:s}=this.rgba;return new e(new U(n,r,i,s*t))}isTransparent(){return this.rgba.a===0}isOpaque(){return this.rgba.a===1}opposite(){return new e(new U(255-this.rgba.r,255-this.rgba.g,255-this.rgba.b,this.rgba.a))}blend(t){let n=t.rgba,r=this.rgba.a,i=n.a,s=r+i*(1-r);if(s<1e-6)return e.transparent;let o=this.rgba.r*r/s+n.r*i*(1-r)/s,a=this.rgba.g*r/s+n.g*i*(1-r)/s,u=this.rgba.b*r/s+n.b*i*(1-r)/s;return new e(new U(o,a,u,s))}mix(t,n=.5){let r=Math.min(Math.max(n,0),1),i=this.rgba,s=t.rgba,o=i.r+(s.r-i.r)*r,a=i.g+(s.g-i.g)*r,u=i.b+(s.b-i.b)*r,l=i.a+(s.a-i.a)*r;return new e(new U(o,a,u,l))}makeOpaque(t){if(this.isOpaque()||t.rgba.a!==1)return this;let{r:n,g:r,b:i,a:s}=this.rgba;return new e(new U(t.rgba.r-s*(t.rgba.r-n),t.rgba.g-s*(t.rgba.g-r),t.rgba.b-s*(t.rgba.b-i),1))}flatten(...t){let n=t.reduceRight((r,i)=>e._flatten(i,r));return e._flatten(this,n)}static _flatten(t,n){let r=1-t.rgba.a;return new e(new U(r*n.rgba.r+t.rgba.a*t.rgba.r,r*n.rgba.g+t.rgba.a*t.rgba.g,r*n.rgba.b+t.rgba.a*t.rgba.b))}toString(){return this._toString||(this._toString=e.Format.CSS.format(this)),this._toString}toNumber32Bit(){return this._toNumber32Bit||(this._toNumber32Bit=(this.rgba.r<<24|this.rgba.g<<16|this.rgba.b<<8|this.rgba.a*255<<0)>>>0),this._toNumber32Bit}static getLighterColor(t,n,r){if(t.isLighterThan(n))return t;r=r||.5;let i=t.getRelativeLuminance(),s=n.getRelativeLuminance();return r=r*(s-i)/s,t.lighten(r)}static getDarkerColor(t,n,r){if(t.isDarkerThan(n))return t;r=r||.5;let i=t.getRelativeLuminance(),s=n.getRelativeLuminance();return r=r*(i-s)/i,t.darken(r)}static{this.white=new e(new U(255,255,255,1))}static{this.black=new e(new U(0,0,0,1))}static{this.red=new e(new U(255,0,0,1))}static{this.blue=new e(new U(0,0,255,1))}static{this.green=new e(new U(0,255,0,1))}static{this.cyan=new e(new U(0,255,255,1))}static{this.lightgrey=new e(new U(211,211,211,1))}static{this.transparent=new e(new U(0,0,0,0))}};(function(e){(function(t){(function(n){function r(E){return E.rgba.a===1?`rgb(${E.rgba.r}, ${E.rgba.g}, ${E.rgba.b})`:e.Format.CSS.formatRGBA(E)}n.formatRGB=r;function i(E){return`rgba(${E.rgba.r}, ${E.rgba.g}, ${E.rgba.b}, ${+E.rgba.a.toFixed(2)})`}n.formatRGBA=i;function s(E){return E.hsla.a===1?`hsl(${E.hsla.h}, ${Math.round(E.hsla.s*100)}%, ${Math.round(E.hsla.l*100)}%)`:e.Format.CSS.formatHSLA(E)}n.formatHSL=s;function o(E){return`hsla(${E.hsla.h}, ${Math.round(E.hsla.s*100)}%, ${Math.round(E.hsla.l*100)}%, ${E.hsla.a.toFixed(2)})`}n.formatHSLA=o;function a(E){let T=E.toString(16);return T.length!==2?"0"+T:T}function u(E){return`#${a(E.rgba.r)}${a(E.rgba.g)}${a(E.rgba.b)}`}n.formatHex=u;function l(E,T=!1){return T&&E.rgba.a===1?e.Format.CSS.formatHex(E):`#${a(E.rgba.r)}${a(E.rgba.g)}${a(E.rgba.b)}${a(Math.round(E.rgba.a*255))}`}n.formatHexA=l;function c(E){return E.isOpaque()?e.Format.CSS.formatHex(E):e.Format.CSS.formatRGBA(E)}n.format=c;function f(E){if(E==="transparent")return e.transparent;if(E.startsWith("#"))return m(E);if(E.startsWith("rgba(")){let T=E.match(/rgba\((?<r>(?:\+|-)?\d+), *(?<g>(?:\+|-)?\d+), *(?<b>(?:\+|-)?\d+), *(?<a>(?:\+|-)?\d+(\.\d+)?)\)/);if(!T)throw new Error("Invalid color format "+E);let v=parseInt(T.groups?.r??"0"),A=parseInt(T.groups?.g??"0"),S=parseInt(T.groups?.b??"0"),C=parseFloat(T.groups?.a??"0");return new e(new U(v,A,S,C))}if(E.startsWith("rgb(")){let T=E.match(/rgb\((?<r>(?:\+|-)?\d+), *(?<g>(?:\+|-)?\d+), *(?<b>(?:\+|-)?\d+)\)/);if(!T)throw new Error("Invalid color format "+E);let v=parseInt(T.groups?.r??"0"),A=parseInt(T.groups?.g??"0"),S=parseInt(T.groups?.b??"0");return new e(new U(v,A,S))}return d(E)}n.parse=f;function d(E){switch(E){case"aliceblue":return new e(new U(240,248,255,1));case"antiquewhite":return new e(new U(250,235,215,1));case"aqua":return new e(new U(0,255,255,1));case"aquamarine":return new e(new U(127,255,212,1));case"azure":return new e(new U(240,255,255,1));case"beige":return new e(new U(245,245,220,1));case"bisque":return new e(new U(255,228,196,1));case"black":return new e(new U(0,0,0,1));case"blanchedalmond":return new e(new U(255,235,205,1));case"blue":return new e(new U(0,0,255,1));case"blueviolet":return new e(new U(138,43,226,1));case"brown":return new e(new U(165,42,42,1));case"burlywood":return new e(new U(222,184,135,1));case"cadetblue":return new e(new U(95,158,160,1));case"chartreuse":return new e(new U(127,255,0,1));case"chocolate":return new e(new U(210,105,30,1));case"coral":return new e(new U(255,127,80,1));case"cornflowerblue":return new e(new U(100,149,237,1));case"cornsilk":return new e(new U(255,248,220,1));case"crimson":return new e(new U(220,20,60,1));case"cyan":return new e(new U(0,255,255,1));case"darkblue":return new e(new U(0,0,139,1));case"darkcyan":return new e(new U(0,139,139,1));case"darkgoldenrod":return new e(new U(184,134,11,1));case"darkgray":return new e(new U(169,169,169,1));case"darkgreen":return new e(new U(0,100,0,1));case"darkgrey":return new e(new U(169,169,169,1));case"darkkhaki":return new e(new U(189,183,107,1));case"darkmagenta":return new e(new U(139,0,139,1));case"darkolivegreen":return new e(new U(85,107,47,1));case"darkorange":return new e(new U(255,140,0,1));case"darkorchid":return new e(new U(153,50,204,1));case"darkred":return new e(new U(139,0,0,1));case"darksalmon":return new e(new U(233,150,122,1));case"darkseagreen":return new e(new U(143,188,143,1));case"darkslateblue":return new e(new U(72,61,139,1));case"darkslategray":return new e(new U(47,79,79,1));case"darkslategrey":return new e(new U(47,79,79,1));case"darkturquoise":return new e(new U(0,206,209,1));case"darkviolet":return new e(new U(148,0,211,1));case"deeppink":return new e(new U(255,20,147,1));case"deepskyblue":return new e(new U(0,191,255,1));case"dimgray":return new e(new U(105,105,105,1));case"dimgrey":return new e(new U(105,105,105,1));case"dodgerblue":return new e(new U(30,144,255,1));case"firebrick":return new e(new U(178,34,34,1));case"floralwhite":return new e(new U(255,250,240,1));case"forestgreen":return new e(new U(34,139,34,1));case"fuchsia":return new e(new U(255,0,255,1));case"gainsboro":return new e(new U(220,220,220,1));case"ghostwhite":return new e(new U(248,248,255,1));case"gold":return new e(new U(255,215,0,1));case"goldenrod":return new e(new U(218,165,32,1));case"gray":return new e(new U(128,128,128,1));case"green":return new e(new U(0,128,0,1));case"greenyellow":return new e(new U(173,255,47,1));case"grey":return new e(new U(128,128,128,1));case"honeydew":return new e(new U(240,255,240,1));case"hotpink":return new e(new U(255,105,180,1));case"indianred":return new e(new U(205,92,92,1));case"indigo":return new e(new U(75,0,130,1));case"ivory":return new e(new U(255,255,240,1));case"khaki":return new e(new U(240,230,140,1));case"lavender":return new e(new U(230,230,250,1));case"lavenderblush":return new e(new U(255,240,245,1));case"lawngreen":return new e(new U(124,252,0,1));case"lemonchiffon":return new e(new U(255,250,205,1));case"lightblue":return new e(new U(173,216,230,1));case"lightcoral":return new e(new U(240,128,128,1));case"lightcyan":return new e(new U(224,255,255,1));case"lightgoldenrodyellow":return new e(new U(250,250,210,1));case"lightgray":return new e(new U(211,211,211,1));case"lightgreen":return new e(new U(144,238,144,1));case"lightgrey":return new e(new U(211,211,211,1));case"lightpink":return new e(new U(255,182,193,1));case"lightsalmon":return new e(new U(255,160,122,1));case"lightseagreen":return new e(new U(32,178,170,1));case"lightskyblue":return new e(new U(135,206,250,1));case"lightslategray":return new e(new U(119,136,153,1));case"lightslategrey":return new e(new U(119,136,153,1));case"lightsteelblue":return new e(new U(176,196,222,1));case"lightyellow":return new e(new U(255,255,224,1));case"lime":return new e(new U(0,255,0,1));case"limegreen":return new e(new U(50,205,50,1));case"linen":return new e(new U(250,240,230,1));case"magenta":return new e(new U(255,0,255,1));case"maroon":return new e(new U(128,0,0,1));case"mediumaquamarine":return new e(new U(102,205,170,1));case"mediumblue":return new e(new U(0,0,205,1));case"mediumorchid":return new e(new U(186,85,211,1));case"mediumpurple":return new e(new U(147,112,219,1));case"mediumseagreen":return new e(new U(60,179,113,1));case"mediumslateblue":return new e(new U(123,104,238,1));case"mediumspringgreen":return new e(new U(0,250,154,1));case"mediumturquoise":return new e(new U(72,209,204,1));case"mediumvioletred":return new e(new U(199,21,133,1));case"midnightblue":return new e(new U(25,25,112,1));case"mintcream":return new e(new U(245,255,250,1));case"mistyrose":return new e(new U(255,228,225,1));case"moccasin":return new e(new U(255,228,181,1));case"navajowhite":return new e(new U(255,222,173,1));case"navy":return new e(new U(0,0,128,1));case"oldlace":return new e(new U(253,245,230,1));case"olive":return new e(new U(128,128,0,1));case"olivedrab":return new e(new U(107,142,35,1));case"orange":return new e(new U(255,165,0,1));case"orangered":return new e(new U(255,69,0,1));case"orchid":return new e(new U(218,112,214,1));case"palegoldenrod":return new e(new U(238,232,170,1));case"palegreen":return new e(new U(152,251,152,1));case"paleturquoise":return new e(new U(175,238,238,1));case"palevioletred":return new e(new U(219,112,147,1));case"papayawhip":return new e(new U(255,239,213,1));case"peachpuff":return new e(new U(255,218,185,1));case"peru":return new e(new U(205,133,63,1));case"pink":return new e(new U(255,192,203,1));case"plum":return new e(new U(221,160,221,1));case"powderblue":return new e(new U(176,224,230,1));case"purple":return new e(new U(128,0,128,1));case"rebeccapurple":return new e(new U(102,51,153,1));case"red":return new e(new U(255,0,0,1));case"rosybrown":return new e(new U(188,143,143,1));case"royalblue":return new e(new U(65,105,225,1));case"saddlebrown":return new e(new U(139,69,19,1));case"salmon":return new e(new U(250,128,114,1));case"sandybrown":return new e(new U(244,164,96,1));case"seagreen":return new e(new U(46,139,87,1));case"seashell":return new e(new U(255,245,238,1));case"sienna":return new e(new U(160,82,45,1));case"silver":return new e(new U(192,192,192,1));case"skyblue":return new e(new U(135,206,235,1));case"slateblue":return new e(new U(106,90,205,1));case"slategray":return new e(new U(112,128,144,1));case"slategrey":return new e(new U(112,128,144,1));case"snow":return new e(new U(255,250,250,1));case"springgreen":return new e(new U(0,255,127,1));case"steelblue":return new e(new U(70,130,180,1));case"tan":return new e(new U(210,180,140,1));case"teal":return new e(new U(0,128,128,1));case"thistle":return new e(new U(216,191,216,1));case"tomato":return new e(new U(255,99,71,1));case"turquoise":return new e(new U(64,224,208,1));case"violet":return new e(new U(238,130,238,1));case"wheat":return new e(new U(245,222,179,1));case"white":return new e(new U(255,255,255,1));case"whitesmoke":return new e(new U(245,245,245,1));case"yellow":return new e(new U(255,255,0,1));case"yellowgreen":return new e(new U(154,205,50,1));default:return null}}function m(E){let T=E.length;if(T===0||E.charCodeAt(0)!==M.Hash)return null;if(T===7){let v=16*g(E.charCodeAt(1))+g(E.charCodeAt(2)),A=16*g(E.charCodeAt(3))+g(E.charCodeAt(4)),S=16*g(E.charCodeAt(5))+g(E.charCodeAt(6));return new e(new U(v,A,S,1))}if(T===9){let v=16*g(E.charCodeAt(1))+g(E.charCodeAt(2)),A=16*g(E.charCodeAt(3))+g(E.charCodeAt(4)),S=16*g(E.charCodeAt(5))+g(E.charCodeAt(6)),C=16*g(E.charCodeAt(7))+g(E.charCodeAt(8));return new e(new U(v,A,S,C/255))}if(T===4){let v=g(E.charCodeAt(1)),A=g(E.charCodeAt(2)),S=g(E.charCodeAt(3));return new e(new U(16*v+v,16*A+A,16*S+S))}if(T===5){let v=g(E.charCodeAt(1)),A=g(E.charCodeAt(2)),S=g(E.charCodeAt(3)),C=g(E.charCodeAt(4));return new e(new U(16*v+v,16*A+A,16*S+S,(16*C+C)/255))}return null}n.parseHex=m;function g(E){switch(E){case M.Digit0:return 0;case M.Digit1:return 1;case M.Digit2:return 2;case M.Digit3:return 3;case M.Digit4:return 4;case M.Digit5:return 5;case M.Digit6:return 6;case M.Digit7:return 7;case M.Digit8:return 8;case M.Digit9:return 9;case M.a:return 10;case M.A:return 10;case M.b:return 11;case M.B:return 11;case M.c:return 12;case M.C:return 12;case M.d:return 13;case M.D:return 13;case M.e:return 14;case M.E:return 14;case M.f:return 15;case M.F:return 15}return 0}})(t.CSS||(t.CSS={}))})(e.Format||(e.Format={}))})(fi||(fi={}));function um(e){let t=[];for(let n of e){let r=Number(n);(r||r===0&&n.replace(/\s/g,"")!=="")&&t.push(r)}return t}function tf(e,t,n,r){return{red:e/255,blue:n/255,green:t/255,alpha:r}}function Uo(e,t){let n=t.index,r=t[0].length;if(n===void 0)return;let i=e.positionAt(n);return{startLineNumber:i.lineNumber,startColumn:i.column,endLineNumber:i.lineNumber,endColumn:i.column+r}}function uD(e,t){if(!e)return;let n=fi.Format.CSS.parseHex(t);if(n)return{range:e,color:tf(n.rgba.r,n.rgba.g,n.rgba.b,n.rgba.a)}}function om(e,t,n){if(!e||t.length!==1)return;let i=t[0].values(),s=um(i);return{range:e,color:tf(s[0],s[1],s[2],n?s[3]:1)}}function am(e,t,n){if(!e||t.length!==1)return;let i=t[0].values(),s=um(i),o=new fi(new jn(s[0],s[1]/100,s[2]/100,n?s[3]:1));return{range:e,color:tf(o.rgba.r,o.rgba.g,o.rgba.b,o.rgba.a)}}function Po(e,t){return typeof e=="string"?[...e.matchAll(t)]:e.findMatches(t)}function lD(e){let t=[],r=Po(e,/\b(rgb|rgba|hsl|hsla)(\([0-9\s,.\%]*\))|^(#)([A-Fa-f0-9]{3})\b|^(#)([A-Fa-f0-9]{4})\b|^(#)([A-Fa-f0-9]{6})\b|^(#)([A-Fa-f0-9]{8})\b|(?<=['"\s])(#)([A-Fa-f0-9]{3})\b|(?<=['"\s])(#)([A-Fa-f0-9]{4})\b|(?<=['"\s])(#)([A-Fa-f0-9]{6})\b|(?<=['"\s])(#)([A-Fa-f0-9]{8})\b/gm);if(r.length>0)for(let i of r){let s=i.filter(l=>l!==void 0),o=s[1],a=s[2];if(!a)continue;let u;if(o==="rgb"){let l=/^\(\s*(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9][0-9]|[0-9])\s*,\s*(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9][0-9]|[0-9])\s*,\s*(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9][0-9]|[0-9])\s*\)$/gm;u=om(Uo(e,i),Po(a,l),!1)}else if(o==="rgba"){let l=/^\(\s*(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9][0-9]|[0-9])\s*,\s*(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9][0-9]|[0-9])\s*,\s*(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9][0-9]|[0-9])\s*,\s*(0[.][0-9]+|[.][0-9]+|[01][.]|[01])\s*\)$/gm;u=om(Uo(e,i),Po(a,l),!0)}else if(o==="hsl"){let l=/^\(\s*((?:360(?:\.0+)?|(?:36[0]|3[0-5][0-9]|[12][0-9][0-9]|[1-9]?[0-9])(?:\.\d+)?))\s*[\s,]\s*(100|\d{1,2}[.]\d*|\d{1,2})%\s*[\s,]\s*(100|\d{1,2}[.]\d*|\d{1,2})%\s*\)$/gm;u=am(Uo(e,i),Po(a,l),!1)}else if(o==="hsla"){let l=/^\(\s*((?:360(?:\.0+)?|(?:36[0]|3[0-5][0-9]|[12][0-9][0-9]|[1-9]?[0-9])(?:\.\d+)?))\s*[\s,]\s*(100|\d{1,2}[.]\d*|\d{1,2})%\s*[\s,]\s*(100|\d{1,2}[.]\d*|\d{1,2})%\s*[\s,]\s*(0[.][0-9]+|[.][0-9]+|[01][.]0*|[01])\s*\)$/gm;u=am(Uo(e,i),Po(a,l),!0)}else o==="#"&&(u=uD(Uo(e,i),o+a));u&&t.push(u)}return t}function lm(e){return!e||typeof e.getValue!="function"||typeof e.positionAt!="function"?[]:lD(e)}var cD=/^-+|-+$/g,cm=100,fD=5;function fm(e,t){let n=[];if(t.findRegionSectionHeaders&&t.foldingRules?.markers){let r=hD(e,t);n=n.concat(r)}if(t.findMarkSectionHeaders){let r=pD(e,t);n=n.concat(r)}return n}function hD(e,t){let n=[],r=e.getLineCount();for(let i=1;i<=r;i++){let s=e.getLineContent(i),o=s.match(t.foldingRules.markers.start);if(o){let a={startLineNumber:i,startColumn:o[0].length+1,endLineNumber:i,endColumn:s.length+1};if(a.endColumn>a.startColumn){let u={range:a,...dD(s.substring(o[0].length)),shouldBeInComments:!1};(u.text||u.hasSeparatorLine)&&n.push(u)}}}return n}function pD(e,t){let n=[],r=e.getLineCount();if(!t.markSectionHeaderRegex||t.markSectionHeaderRegex.trim()==="")return n;let i=j0(t.markSectionHeaderRegex),s=new RegExp(t.markSectionHeaderRegex,`gdm${i?"s":""}`);if(Ap(s))return n;for(let o=1;o<=r;o+=cm-fD){let a=Math.min(o+cm-1,r),u=[];for(let f=o;f<=a;f++)u.push(e.getLineContent(f));let l=u.join(`
|
|
105
|
+
`),i=Yi(n,r);n=n.substring(i),r=r.substring(i);let s=Eo(n,r);return n=n.substring(0,n.length-s),r=r.substring(0,r.length-s),n===""}};function nu(e,t){if(e.lineNumber===t.lineNumber&&e.column===Number.MAX_SAFE_INTEGER)return oe.fromPositions(t,t);if(!e.isBeforeOrEqual(t))throw new Ce("start must be before end");return new oe(e.lineNumber,e.column,t.lineNumber,t.column)}var Vn=class e{static inverse(t,n,r){let i=[],s=1,o=1;for(let u of t){let l=new e(new ye(s,u.original.startLineNumber),new ye(o,u.modified.startLineNumber));l.modified.isEmpty||i.push(l),s=u.original.endLineNumberExclusive,o=u.modified.endLineNumberExclusive}let a=new e(new ye(s,n+1),new ye(o,r+1));return a.modified.isEmpty||i.push(a),i}static clip(t,n,r){let i=[];for(let s of t){let o=s.original.intersect(n),a=s.modified.intersect(r);o&&!o.isEmpty&&a&&!a.isEmpty&&i.push(new e(o,a))}return i}constructor(t,n){this.original=t,this.modified=n}toString(){return`{${this.original.toString()}->${this.modified.toString()}}`}flip(){return new e(this.modified,this.original)}join(t){return new e(this.original.join(t.original),this.modified.join(t.modified))}get changedLineCount(){return Math.max(this.original.length,this.modified.length)}toRangeMapping(){let t=this.original.toInclusiveRange(),n=this.modified.toInclusiveRange();if(t&&n)return new rn(t,n);if(this.original.startLineNumber===1||this.modified.startLineNumber===1){if(!(this.modified.startLineNumber===1&&this.original.startLineNumber===1))throw new Ce("not a valid diff");return new rn(new oe(this.original.startLineNumber,1,this.original.endLineNumberExclusive,1),new oe(this.modified.startLineNumber,1,this.modified.endLineNumberExclusive,1))}else return new rn(new oe(this.original.startLineNumber-1,Number.MAX_SAFE_INTEGER,this.original.endLineNumberExclusive-1,Number.MAX_SAFE_INTEGER),new oe(this.modified.startLineNumber-1,Number.MAX_SAFE_INTEGER,this.modified.endLineNumberExclusive-1,Number.MAX_SAFE_INTEGER))}toRangeMapping2(t,n){if(Q0(this.original.endLineNumberExclusive,t)&&Q0(this.modified.endLineNumberExclusive,n))return new rn(new oe(this.original.startLineNumber,1,this.original.endLineNumberExclusive,1),new oe(this.modified.startLineNumber,1,this.modified.endLineNumberExclusive,1));if(!this.original.isEmpty&&!this.modified.isEmpty)return new rn(oe.fromPositions(new me(this.original.startLineNumber,1),Ki(new me(this.original.endLineNumberExclusive-1,Number.MAX_SAFE_INTEGER),t)),oe.fromPositions(new me(this.modified.startLineNumber,1),Ki(new me(this.modified.endLineNumberExclusive-1,Number.MAX_SAFE_INTEGER),n)));if(this.original.startLineNumber>1&&this.modified.startLineNumber>1)return new rn(oe.fromPositions(Ki(new me(this.original.startLineNumber-1,Number.MAX_SAFE_INTEGER),t),Ki(new me(this.original.endLineNumberExclusive-1,Number.MAX_SAFE_INTEGER),t)),oe.fromPositions(Ki(new me(this.modified.startLineNumber-1,Number.MAX_SAFE_INTEGER),n),Ki(new me(this.modified.endLineNumberExclusive-1,Number.MAX_SAFE_INTEGER),n)));throw new Ce}};function Ki(e,t){if(e.lineNumber<1)return new me(1,1);if(e.lineNumber>t.length)return new me(t.length,t[t.length-1].length+1);let n=t[e.lineNumber-1];return e.column>n.length+1?new me(e.lineNumber,n.length+1):e}function Q0(e,t){return e>=1&&e<=t.length}var Tn=class e extends Vn{static toTextEdit(t,n){let r=[];for(let i of t)for(let s of i.innerChanges??[]){let o=s.toTextEdit(n);r.push(o)}return new oi(r)}static fromRangeMappings(t){let n=ye.join(t.map(i=>ye.fromRangeInclusive(i.originalRange))),r=ye.join(t.map(i=>ye.fromRangeInclusive(i.modifiedRange)));return new e(n,r,t)}constructor(t,n,r){super(t,n),this.innerChanges=r}flip(){return new e(this.modified,this.original,this.innerChanges?.map(t=>t.flip()))}withInnerChangesFromLineRanges(){return new e(this.original,this.modified,[this.toRangeMapping()])}},rn=class e{static fromEdit(t){let n=t.getNewRanges();return t.replacements.map((i,s)=>new e(i.range,n[s]))}static fromEditJoin(t){let n=t.getNewRanges(),r=t.replacements.map((i,s)=>new e(i.range,n[s]));return e.join(r)}static join(t){if(t.length===0)throw new Ce("Cannot join an empty list of range mappings");let n=t[0];for(let r=1;r<t.length;r++)n=n.join(t[r]);return n}static assertSorted(t){for(let n=1;n<t.length;n++){let r=t[n-1],i=t[n];if(!(r.originalRange.getEndPosition().isBeforeOrEqual(i.originalRange.getStartPosition())&&r.modifiedRange.getEndPosition().isBeforeOrEqual(i.modifiedRange.getStartPosition())))throw new Ce("Range mappings must be sorted")}}constructor(t,n){this.originalRange=t,this.modifiedRange=n}toString(){return`{${this.originalRange.toString()}->${this.modifiedRange.toString()}}`}flip(){return new e(this.modifiedRange,this.originalRange)}toTextEdit(t){let n=t.getValueOfRange(this.modifiedRange);return new nn(this.originalRange,n)}join(t){return new e(this.originalRange.plusRange(t.originalRange),this.modifiedRange.plusRange(t.modifiedRange))}};function Jc(e,t,n,r=!1){let i=[];for(let s of np(e.map(o=>WE(o,t,n)),(o,a)=>o.original.intersectsOrTouches(a.original)||o.modified.intersectsOrTouches(a.modified))){let o=s[0],a=s[s.length-1];i.push(new Tn(o.original.join(a.original),o.modified.join(a.modified),s.map(u=>u.innerChanges[0])))}return ur(()=>!r&&i.length>0&&(i[0].modified.startLineNumber!==i[0].original.startLineNumber||n.length.lineCount-i[i.length-1].modified.endLineNumberExclusive!==t.length.lineCount-i[i.length-1].original.endLineNumberExclusive)?!1:Vi(i,(s,o)=>o.original.startLineNumber-s.original.endLineNumberExclusive===o.modified.startLineNumber-s.modified.endLineNumberExclusive&&s.original.endLineNumberExclusive<o.original.startLineNumber&&s.modified.endLineNumberExclusive<o.modified.startLineNumber)),i}function WE(e,t,n){let r=0,i=0;e.modifiedRange.endColumn===1&&e.originalRange.endColumn===1&&e.originalRange.startLineNumber+r<=e.originalRange.endLineNumber&&e.modifiedRange.startLineNumber+r<=e.modifiedRange.endLineNumber&&(i=-1),e.modifiedRange.startColumn-1>=n.getLineLength(e.modifiedRange.startLineNumber)&&e.originalRange.startColumn-1>=t.getLineLength(e.originalRange.startLineNumber)&&e.originalRange.startLineNumber<=e.originalRange.endLineNumber+i&&e.modifiedRange.startLineNumber<=e.modifiedRange.endLineNumber+i&&(r=1);let s=new ye(e.originalRange.startLineNumber+r,e.originalRange.endLineNumber+1+i),o=new ye(e.modifiedRange.startLineNumber+r,e.modifiedRange.endLineNumber+1+i);return new Tn(s,o,[e])}var zE=3,ru=class{computeDiff(t,n,r){let s=new Ro(t,n,{maxComputationTime:r.maxComputationTimeMs,shouldIgnoreTrimWhitespace:r.ignoreTrimWhitespace,shouldComputeCharChanges:!0,shouldMakePrettyDiff:!0,shouldPostProcessCharChanges:!0}).computeDiff(),o=[],a=null;for(let u of s.changes){let l;u.originalEndLineNumber===0?l=new ye(u.originalStartLineNumber+1,u.originalStartLineNumber+1):l=new ye(u.originalStartLineNumber,u.originalEndLineNumber+1);let c;u.modifiedEndLineNumber===0?c=new ye(u.modifiedStartLineNumber+1,u.modifiedStartLineNumber+1):c=new ye(u.modifiedStartLineNumber,u.modifiedEndLineNumber+1);let f=new Tn(l,c,u.charChanges?.map(d=>new rn(new oe(d.originalStartLineNumber,d.originalStartColumn,d.originalEndLineNumber,d.originalEndColumn),new oe(d.modifiedStartLineNumber,d.modifiedStartColumn,d.modifiedEndLineNumber,d.modifiedEndColumn))));a&&(a.modified.endLineNumberExclusive===f.modified.startLineNumber||a.original.endLineNumberExclusive===f.original.startLineNumber)&&(f=new Tn(a.original.join(f.original),a.modified.join(f.modified),a.innerChanges&&f.innerChanges?a.innerChanges.concat(f.innerChanges):void 0),o.pop()),o.push(f),a=f}return ur(()=>Vi(o,(u,l)=>l.original.startLineNumber-u.original.endLineNumberExclusive===l.modified.startLineNumber-u.modified.endLineNumberExclusive&&u.original.endLineNumberExclusive<l.original.startLineNumber&&u.modified.endLineNumberExclusive<l.modified.startLineNumber)),new Pr(o,[],s.quitEarly)}};function X0(e,t,n,r){return new vo(e,t,n).ComputeDiff(r)}var iu=class{constructor(t){let n=[],r=[];for(let i=0,s=t.length;i<s;i++)n[i]=Kc(t[i],1),r[i]=ef(t[i],1);this.lines=t,this._startColumns=n,this._endColumns=r}getElements(){let t=[];for(let n=0,r=this.lines.length;n<r;n++)t[n]=this.lines[n].substring(this._startColumns[n]-1,this._endColumns[n]-1);return t}getStrictElement(t){return this.lines[t]}getStartLineNumber(t){return t+1}getEndLineNumber(t){return t+1}createCharSequence(t,n,r){let i=[],s=[],o=[],a=0;for(let u=n;u<=r;u++){let l=this.lines[u],c=t?this._startColumns[u]:1,f=t?this._endColumns[u]:l.length+1;for(let d=c;d<f;d++)i[a]=l.charCodeAt(d-1),s[a]=u+1,o[a]=d,a++;!t&&u<r&&(i[a]=O.LineFeed,s[a]=u+1,o[a]=l.length+1,a++)}return new Zc(i,s,o)}},Zc=class{constructor(t,n,r){this._charCodes=t,this._lineNumbers=n,this._columns=r}toString(){return"["+this._charCodes.map((t,n)=>(t===O.LineFeed?"\\n":String.fromCharCode(t))+`-(${this._lineNumbers[n]},${this._columns[n]})`).join(", ")+"]"}_assertIndex(t,n){if(t<0||t>=n.length)throw new Error("Illegal index")}getElements(){return this._charCodes}getStartLineNumber(t){return t>0&&t===this._lineNumbers.length?this.getEndLineNumber(t-1):(this._assertIndex(t,this._lineNumbers),this._lineNumbers[t])}getEndLineNumber(t){return t===-1?this.getStartLineNumber(t+1):(this._assertIndex(t,this._lineNumbers),this._charCodes[t]===O.LineFeed?this._lineNumbers[t]+1:this._lineNumbers[t])}getStartColumn(t){return t>0&&t===this._columns.length?this.getEndColumn(t-1):(this._assertIndex(t,this._columns),this._columns[t])}getEndColumn(t){return t===-1?this.getStartColumn(t+1):(this._assertIndex(t,this._columns),this._charCodes[t]===O.LineFeed?1:this._columns[t]+1)}},es=class e{constructor(t,n,r,i,s,o,a,u){this.originalStartLineNumber=t,this.originalStartColumn=n,this.originalEndLineNumber=r,this.originalEndColumn=i,this.modifiedStartLineNumber=s,this.modifiedStartColumn=o,this.modifiedEndLineNumber=a,this.modifiedEndColumn=u}static createFromDiffChange(t,n,r){let i=n.getStartLineNumber(t.originalStart),s=n.getStartColumn(t.originalStart),o=n.getEndLineNumber(t.originalStart+t.originalLength-1),a=n.getEndColumn(t.originalStart+t.originalLength-1),u=r.getStartLineNumber(t.modifiedStart),l=r.getStartColumn(t.modifiedStart),c=r.getEndLineNumber(t.modifiedStart+t.modifiedLength-1),f=r.getEndColumn(t.modifiedStart+t.modifiedLength-1);return new e(i,s,o,a,u,l,c,f)}};function QE(e){if(e.length<=1)return e;let t=[e[0]],n=t[0];for(let r=1,i=e.length;r<i;r++){let s=e[r],o=s.originalStart-(n.originalStart+n.originalLength),a=s.modifiedStart-(n.modifiedStart+n.modifiedLength);Math.min(o,a)<zE?(n.originalLength=s.originalStart+s.originalLength-n.originalStart,n.modifiedLength=s.modifiedStart+s.modifiedLength-n.modifiedStart):(t.push(s),n=s)}return t}var So=class e{constructor(t,n,r,i,s){this.originalStartLineNumber=t,this.originalEndLineNumber=n,this.modifiedStartLineNumber=r,this.modifiedEndLineNumber=i,this.charChanges=s}static createFromDiffResult(t,n,r,i,s,o,a){let u,l,c,f,d;if(n.originalLength===0?(u=r.getStartLineNumber(n.originalStart)-1,l=0):(u=r.getStartLineNumber(n.originalStart),l=r.getEndLineNumber(n.originalStart+n.originalLength-1)),n.modifiedLength===0?(c=i.getStartLineNumber(n.modifiedStart)-1,f=0):(c=i.getStartLineNumber(n.modifiedStart),f=i.getEndLineNumber(n.modifiedStart+n.modifiedLength-1)),o&&n.originalLength>0&&n.originalLength<20&&n.modifiedLength>0&&n.modifiedLength<20&&s()){let m=r.createCharSequence(t,n.originalStart,n.originalStart+n.originalLength-1),g=i.createCharSequence(t,n.modifiedStart,n.modifiedStart+n.modifiedLength-1);if(m.getElements().length>0&&g.getElements().length>0){let _=X0(m,g,s,!0).changes;a&&(_=QE(_)),d=[];for(let T=0,A=_.length;T<A;T++)d.push(es.createFromDiffChange(_[T],m,g))}}return new e(u,l,c,f,d)}},Ro=class{constructor(t,n,r){this.shouldComputeCharChanges=r.shouldComputeCharChanges,this.shouldPostProcessCharChanges=r.shouldPostProcessCharChanges,this.shouldIgnoreTrimWhitespace=r.shouldIgnoreTrimWhitespace,this.shouldMakePrettyDiff=r.shouldMakePrettyDiff,this.originalLines=t,this.modifiedLines=n,this.original=new iu(t),this.modified=new iu(n),this.continueLineDiff=Y0(r.maxComputationTime),this.continueCharDiff=Y0(r.maxComputationTime===0?0:Math.min(r.maxComputationTime,5e3))}computeDiff(){if(this.original.lines.length===1&&this.original.lines[0].length===0)return this.modified.lines.length===1&&this.modified.lines[0].length===0?{quitEarly:!1,changes:[]}:{quitEarly:!1,changes:[{originalStartLineNumber:1,originalEndLineNumber:1,modifiedStartLineNumber:1,modifiedEndLineNumber:this.modified.lines.length,charChanges:void 0}]};if(this.modified.lines.length===1&&this.modified.lines[0].length===0)return{quitEarly:!1,changes:[{originalStartLineNumber:1,originalEndLineNumber:this.original.lines.length,modifiedStartLineNumber:1,modifiedEndLineNumber:1,charChanges:void 0}]};let t=X0(this.original,this.modified,this.continueLineDiff,this.shouldMakePrettyDiff),n=t.changes,r=t.quitEarly;if(this.shouldIgnoreTrimWhitespace){let a=[];for(let u=0,l=n.length;u<l;u++)a.push(So.createFromDiffResult(this.shouldIgnoreTrimWhitespace,n[u],this.original,this.modified,this.continueCharDiff,this.shouldComputeCharChanges,this.shouldPostProcessCharChanges));return{quitEarly:r,changes:a}}let i=[],s=0,o=0;for(let a=-1,u=n.length;a<u;a++){let l=a+1<u?n[a+1]:null,c=l?l.originalStart:this.originalLines.length,f=l?l.modifiedStart:this.modifiedLines.length;for(;s<c&&o<f;){let d=this.originalLines[s],m=this.modifiedLines[o];if(d!==m){{let g=Kc(d,1),_=Kc(m,1);for(;g>1&&_>1;){let T=d.charCodeAt(g-2),A=m.charCodeAt(_-2);if(T!==A)break;g--,_--}(g>1||_>1)&&this._pushTrimWhitespaceCharChange(i,s+1,1,g,o+1,1,_)}{let g=ef(d,1),_=ef(m,1),T=d.length+1,A=m.length+1;for(;g<T&&_<A;){let S=d.charCodeAt(g-1),L=d.charCodeAt(_-1);if(S!==L)break;g++,_++}(g<T||_<A)&&this._pushTrimWhitespaceCharChange(i,s+1,g,T,o+1,_,A)}}s++,o++}l&&(i.push(So.createFromDiffResult(this.shouldIgnoreTrimWhitespace,l,this.original,this.modified,this.continueCharDiff,this.shouldComputeCharChanges,this.shouldPostProcessCharChanges)),s+=l.originalLength,o+=l.modifiedLength)}return{quitEarly:r,changes:i}}_pushTrimWhitespaceCharChange(t,n,r,i,s,o,a){if(this._mergeTrimWhitespaceCharChange(t,n,r,i,s,o,a))return;let u;this.shouldComputeCharChanges&&(u=[new es(n,r,n,i,s,o,s,a)]),t.push(new So(n,n,s,s,u))}_mergeTrimWhitespaceCharChange(t,n,r,i,s,o,a){let u=t.length;if(u===0)return!1;let l=t[u-1];return l.originalEndLineNumber===0||l.modifiedEndLineNumber===0?!1:l.originalEndLineNumber===n&&l.modifiedEndLineNumber===s?(this.shouldComputeCharChanges&&l.charChanges&&l.charChanges.push(new es(n,r,n,i,s,o,s,a)),!0):l.originalEndLineNumber+1===n&&l.modifiedEndLineNumber+1===s?(l.originalEndLineNumber=n,l.modifiedEndLineNumber=s,this.shouldComputeCharChanges&&l.charChanges&&l.charChanges.push(new es(n,r,n,i,s,o,s,a)),!0):!1}};function Kc(e,t){let n=Mp(e);return n===-1?t:n+1}function ef(e,t){let n=Up(e);return n===-1?t:n+2}function Y0(e){if(e===0)return()=>!0;let t=Date.now();return()=>Date.now()-t<e}var jn=class e{static trivial(t,n){return new e([new ut(le.ofLength(t.length),le.ofLength(n.length))],!1)}static trivialTimedOut(t,n){return new e([new ut(le.ofLength(t.length),le.ofLength(n.length))],!0)}constructor(t,n){this.diffs=t,this.hitTimeout=n}},ut=class e{static invert(t,n){let r=[];return rp(t,(i,s)=>{r.push(e.fromOffsetPairs(i?i.getEndExclusives():$n.zero,s?s.getStarts():new $n(n,(i?i.seq2Range.endExclusive-i.seq1Range.endExclusive:0)+n)))}),r}static fromOffsetPairs(t,n){return new e(new le(t.offset1,n.offset1),new le(t.offset2,n.offset2))}static assertSorted(t){let n;for(let r of t){if(n&&!(n.seq1Range.endExclusive<=r.seq1Range.start&&n.seq2Range.endExclusive<=r.seq2Range.start))throw new Ce("Sequence diffs must be sorted");n=r}}constructor(t,n){this.seq1Range=t,this.seq2Range=n}swap(){return new e(this.seq2Range,this.seq1Range)}toString(){return`${this.seq1Range} <-> ${this.seq2Range}`}join(t){return new e(this.seq1Range.join(t.seq1Range),this.seq2Range.join(t.seq2Range))}delta(t){return t===0?this:new e(this.seq1Range.delta(t),this.seq2Range.delta(t))}deltaStart(t){return t===0?this:new e(this.seq1Range.deltaStart(t),this.seq2Range.deltaStart(t))}deltaEnd(t){return t===0?this:new e(this.seq1Range.deltaEnd(t),this.seq2Range.deltaEnd(t))}intersectsOrTouches(t){return this.seq1Range.intersectsOrTouches(t.seq1Range)||this.seq2Range.intersectsOrTouches(t.seq2Range)}intersect(t){let n=this.seq1Range.intersect(t.seq1Range),r=this.seq2Range.intersect(t.seq2Range);if(!(!n||!r))return new e(n,r)}getStarts(){return new $n(this.seq1Range.start,this.seq2Range.start)}getEndExclusives(){return new $n(this.seq1Range.endExclusive,this.seq2Range.endExclusive)}},$n=class e{static{this.zero=new e(0,0)}static{this.max=new e(Number.MAX_SAFE_INTEGER,Number.MAX_SAFE_INTEGER)}constructor(t,n){this.offset1=t,this.offset2=n}toString(){return`${this.offset1} <-> ${this.offset2}`}delta(t){return t===0?this:new e(this.offset1+t,this.offset2+t)}equals(t){return this.offset1===t.offset1&&this.offset2===t.offset2}},Br=class e{static{this.instance=new e}isValid(){return!0}},su=class{constructor(t){if(this.timeout=t,this.startTime=Date.now(),this.valid=!0,t<=0)throw new Ce("timeout must be positive")}isValid(){return!(Date.now()-this.startTime<this.timeout)&&this.valid&&(this.valid=!1),this.valid}disable(){this.timeout=Number.MAX_SAFE_INTEGER,this.isValid=()=>!0,this.valid=!0}};var ts=class{constructor(t,n){this.width=t,this.height=n,this.array=[],this.array=new Array(t*n)}get(t,n){return this.array[t+n*this.width]}set(t,n,r){this.array[t+n*this.width]=r}};function Oo(e){return e===O.Space||e===O.Tab}var Io=class e{static{this.chrKeys=new Map}static getKey(t){let n=this.chrKeys.get(t);return n===void 0&&(n=this.chrKeys.size,this.chrKeys.set(t,n)),n}constructor(t,n,r){this.range=t,this.lines=n,this.source=r,this.histogram=[];let i=0;for(let s=t.startLineNumber-1;s<t.endLineNumberExclusive-1;s++){let o=n[s];for(let u=0;u<o.length;u++){i++;let l=o[u],c=e.getKey(l);this.histogram[c]=(this.histogram[c]||0)+1}i++;let a=e.getKey(`
|
|
106
|
+
`);this.histogram[a]=(this.histogram[a]||0)+1}this.totalCount=i}computeSimilarity(t){let n=0,r=Math.max(this.histogram.length,t.histogram.length);for(let i=0;i<r;i++)n+=Math.abs((this.histogram[i]??0)-(t.histogram[i]??0));return 1-n/(this.totalCount+t.totalCount)}};var ou=class{compute(t,n,r=Br.instance,i){if(t.length===0||n.length===0)return jn.trivial(t,n);let s=new ts(t.length,n.length),o=new ts(t.length,n.length),a=new ts(t.length,n.length);for(let g=0;g<t.length;g++)for(let _=0;_<n.length;_++){if(!r.isValid())return jn.trivialTimedOut(t,n);let T=g===0?0:s.get(g-1,_),A=_===0?0:s.get(g,_-1),S;t.getElement(g)===n.getElement(_)?(g===0||_===0?S=0:S=s.get(g-1,_-1),g>0&&_>0&&o.get(g-1,_-1)===3&&(S+=a.get(g-1,_-1)),S+=i?i(g,_):1):S=-1;let L=Math.max(T,A,S);if(L===S){let P=g>0&&_>0?a.get(g-1,_-1):0;a.set(g,_,P+1),o.set(g,_,3)}else L===T?(a.set(g,_,0),o.set(g,_,1)):L===A&&(a.set(g,_,0),o.set(g,_,2));s.set(g,_,L)}let u=[],l=t.length,c=n.length;function f(g,_){(g+1!==l||_+1!==c)&&u.push(new ut(new le(g+1,l),new le(_+1,c))),l=g,c=_}let d=t.length-1,m=n.length-1;for(;d>=0&&m>=0;)o.get(d,m)===3?(f(d,m),d--,m--):o.get(d,m)===1?d--:m--;return f(-1,-1),u.reverse(),new jn(u,!1)}};var ns=class{compute(t,n,r=Br.instance){if(t.length===0||n.length===0)return jn.trivial(t,n);let i=t,s=n;function o(_,T){for(;_<i.length&&T<s.length&&i.getElement(_)===s.getElement(T);)_++,T++;return _}let a=0,u=new tf;u.set(0,o(0,0));let l=new nf;l.set(0,u.get(0)===0?null:new au(null,0,0,u.get(0)));let c=0;e:for(;;){if(a++,!r.isValid())return jn.trivialTimedOut(i,s);let _=-Math.min(a,s.length+a%2),T=Math.min(a,i.length+a%2);for(c=_;c<=T;c+=2){let A=c===T?-1:u.get(c+1),S=c===_?-1:u.get(c-1)+1,L=Math.min(Math.max(A,S),i.length),P=L-c;if(L>i.length||P>s.length)continue;let q=o(L,P);u.set(c,q);let Y=L===A?l.get(c+1):l.get(c-1);if(l.set(c,q!==L?new au(Y,L,P,q-L):Y),u.get(c)===i.length&&u.get(c)-c===s.length)break e}}let f=l.get(c),d=[],m=i.length,g=s.length;for(;;){let _=f?f.x+f.length:0,T=f?f.y+f.length:0;if((_!==m||T!==g)&&d.push(new ut(new le(_,m),new le(T,g))),!f)break;m=f.x,g=f.y,f=f.prev}return d.reverse(),new jn(d,!1)}},au=class{constructor(t,n,r,i){this.prev=t,this.x=n,this.y=r,this.length=i}},tf=class{constructor(){this.positiveArr=new Int32Array(10),this.negativeArr=new Int32Array(10)}get(t){return t<0?(t=-t-1,this.negativeArr[t]):this.positiveArr[t]}set(t,n){if(t<0){if(t=-t-1,t>=this.negativeArr.length){let r=this.negativeArr;this.negativeArr=new Int32Array(r.length*2),this.negativeArr.set(r)}this.negativeArr[t]=n}else{if(t>=this.positiveArr.length){let r=this.positiveArr;this.positiveArr=new Int32Array(r.length*2),this.positiveArr.set(r)}this.positiveArr[t]=n}}},nf=class{constructor(){this.positiveArr=[],this.negativeArr=[]}get(t){return t<0?(t=-t-1,this.negativeArr[t]):this.positiveArr[t]}set(t,n){t<0?(t=-t-1,this.negativeArr[t]=n):this.positiveArr[t]=n}};var Cr=class{constructor(t,n,r){this.lines=t,this.range=n,this.considerWhitespaceChanges=r,this.elements=[],this.firstElementOffsetByLineIdx=[],this.lineStartOffsets=[],this.trimmedWsLengthsByLineIdx=[],this.firstElementOffsetByLineIdx.push(0);for(let i=this.range.startLineNumber;i<=this.range.endLineNumber;i++){let s=t[i-1],o=0;i===this.range.startLineNumber&&this.range.startColumn>1&&(o=this.range.startColumn-1,s=s.substring(o)),this.lineStartOffsets.push(o);let a=0;if(!r){let l=s.trimStart();a=s.length-l.length,s=l.trimEnd()}this.trimmedWsLengthsByLineIdx.push(a);let u=i===this.range.endLineNumber?Math.min(this.range.endColumn-1-o-a,s.length):s.length;for(let l=0;l<u;l++)this.elements.push(s.charCodeAt(l));i<this.range.endLineNumber&&(this.elements.push(10),this.firstElementOffsetByLineIdx.push(this.elements.length))}}toString(){return`Slice: "${this.text}"`}get text(){return this.getText(new le(0,this.length))}getText(t){return this.elements.slice(t.start,t.endExclusive).map(n=>String.fromCharCode(n)).join("")}getElement(t){return this.elements[t]}get length(){return this.elements.length}getBoundaryScore(t){let n=K0(t>0?this.elements[t-1]:-1),r=K0(t<this.elements.length?this.elements[t]:-1);if(n===Ze.LineBreakCR&&r===Ze.LineBreakLF)return 0;if(n===Ze.LineBreakLF)return 150;let i=0;return n!==r&&(i+=10,n===Ze.WordLower&&r===Ze.WordUpper&&(i+=1)),i+=Z0(n),i+=Z0(r),i}translateOffset(t,n="right"){let r=or(this.firstElementOffsetByLineIdx,s=>s<=t),i=t-this.firstElementOffsetByLineIdx[r];return new me(this.range.startLineNumber+r,1+this.lineStartOffsets[r]+i+(i===0&&n==="left"?0:this.trimmedWsLengthsByLineIdx[r]))}translateRange(t){let n=this.translateOffset(t.start,"right"),r=this.translateOffset(t.endExclusive,"left");return r.isBefore(n)?oe.fromPositions(r,r):oe.fromPositions(n,r)}findWordContaining(t){if(t<0||t>=this.elements.length||!rs(this.elements[t]))return;let n=t;for(;n>0&&rs(this.elements[n-1]);)n--;let r=t;for(;r<this.elements.length&&rs(this.elements[r]);)r++;return new le(n,r)}findSubWordContaining(t){if(t<0||t>=this.elements.length||!rs(this.elements[t]))return;let n=t;for(;n>0&&rs(this.elements[n-1])&&!J0(this.elements[n]);)n--;let r=t;for(;r<this.elements.length&&rs(this.elements[r])&&!J0(this.elements[r]);)r++;return new le(n,r)}countLinesIn(t){return this.translateOffset(t.endExclusive).lineNumber-this.translateOffset(t.start).lineNumber}isStronglyEqual(t,n){return this.elements[t]===this.elements[n]}extendToFullLines(t){let n=sr(this.firstElementOffsetByLineIdx,i=>i<=t.start)??0,r=ep(this.firstElementOffsetByLineIdx,i=>t.endExclusive<=i)??this.elements.length;return new le(n,r)}};function rs(e){return e>=O.a&&e<=O.z||e>=O.A&&e<=O.Z||e>=O.Digit0&&e<=O.Digit9}function J0(e){return e>=O.A&&e<=O.Z}var Ze;(function(e){e[e.WordLower=0]="WordLower",e[e.WordUpper=1]="WordUpper",e[e.WordNumber=2]="WordNumber",e[e.End=3]="End",e[e.Other=4]="Other",e[e.Separator=5]="Separator",e[e.Space=6]="Space",e[e.LineBreakCR=7]="LineBreakCR",e[e.LineBreakLF=8]="LineBreakLF"})(Ze||(Ze={}));var YE={[Ze.WordLower]:0,[Ze.WordUpper]:0,[Ze.WordNumber]:0,[Ze.End]:10,[Ze.Other]:2,[Ze.Separator]:30,[Ze.Space]:3,[Ze.LineBreakCR]:10,[Ze.LineBreakLF]:10};function Z0(e){return YE[e]}function K0(e){return e===O.LineFeed?Ze.LineBreakLF:e===O.CarriageReturn?Ze.LineBreakCR:Oo(e)?Ze.Space:e>=O.a&&e<=O.z?Ze.WordLower:e>=O.A&&e<=O.Z?Ze.WordUpper:e>=O.Digit0&&e<=O.Digit9?Ze.WordNumber:e===-1?Ze.End:e===O.Comma||e===O.Semicolon?Ze.Separator:Ze.Other}function tm(e,t,n,r,i,s){let{moves:o,excludedChanges:a}=JE(e,t,n,s);if(!s.isValid())return[];let u=e.filter(c=>!a.has(c)),l=ZE(u,r,i,t,n,s);return sp(o,l),o=KE(o),o=o.filter(c=>{let f=c.original.toOffsetRange().slice(t).map(m=>m.trim());return f.join(`
|
|
107
|
+
`).length>=15&&XE(f,m=>m.length>=2)>=2}),o=eD(e,o),o}function XE(e,t){let n=0;for(let r of e)t(r)&&n++;return n}function JE(e,t,n,r){let i=[],s=e.filter(u=>u.modified.isEmpty&&u.original.length>=3).map(u=>new Io(u.original,t,u)),o=new Set(e.filter(u=>u.original.isEmpty&&u.modified.length>=3).map(u=>new Io(u.modified,n,u))),a=new Set;for(let u of s){let l=-1,c;for(let f of o){let d=u.computeSimilarity(f);d>l&&(l=d,c=f)}if(l>.9&&c&&(o.delete(c),i.push(new Vn(u.range,c.range)),a.add(u.source),a.add(c.source)),!r.isValid())return{moves:i,excludedChanges:a}}return{moves:i,excludedChanges:a}}function ZE(e,t,n,r,i,s){let o=[],a=new Ci;for(let d of e)for(let m=d.original.startLineNumber;m<d.original.endLineNumberExclusive-2;m++){let g=`${t[m-1]}:${t[m+1-1]}:${t[m+2-1]}`;a.add(g,{range:new ye(m,m+3)})}let u=[];e.sort(En(d=>d.modified.startLineNumber,ar));for(let d of e){let m=[];for(let g=d.modified.startLineNumber;g<d.modified.endLineNumberExclusive-2;g++){let _=`${n[g-1]}:${n[g+1-1]}:${n[g+2-1]}`,T=new ye(g,g+3),A=[];a.forEach(_,({range:S})=>{for(let P of m)if(P.originalLineRange.endLineNumberExclusive+1===S.endLineNumberExclusive&&P.modifiedLineRange.endLineNumberExclusive+1===T.endLineNumberExclusive){P.originalLineRange=new ye(P.originalLineRange.startLineNumber,S.endLineNumberExclusive),P.modifiedLineRange=new ye(P.modifiedLineRange.startLineNumber,T.endLineNumberExclusive),A.push(P);return}let L={modifiedLineRange:T,originalLineRange:S};u.push(L),A.push(L)}),m=A}if(!s.isValid())return[]}u.sort(op(En(d=>d.modifiedLineRange.length,ar)));let l=new ii,c=new ii;for(let d of u){let m=d.modifiedLineRange.startLineNumber-d.originalLineRange.startLineNumber,g=l.subtractFrom(d.modifiedLineRange),_=c.subtractFrom(d.originalLineRange).getWithDelta(m),T=g.getIntersection(_);for(let A of T.ranges){if(A.length<3)continue;let S=A,L=A.delta(-m);o.push(new Vn(L,S)),l.addRange(S),c.addRange(L)}}o.sort(En(d=>d.original.startLineNumber,ar));let f=new uo(e);for(let d=0;d<o.length;d++){let m=o[d],g=f.findLastMonotonous(Y=>Y.original.startLineNumber<=m.original.startLineNumber),_=sr(e,Y=>Y.modified.startLineNumber<=m.modified.startLineNumber),T=Math.max(m.original.startLineNumber-g.original.startLineNumber,m.modified.startLineNumber-_.modified.startLineNumber),A=f.findLastMonotonous(Y=>Y.original.startLineNumber<m.original.endLineNumberExclusive),S=sr(e,Y=>Y.modified.startLineNumber<m.modified.endLineNumberExclusive),L=Math.max(A.original.endLineNumberExclusive-m.original.endLineNumberExclusive,S.modified.endLineNumberExclusive-m.modified.endLineNumberExclusive),P;for(P=0;P<T;P++){let Y=m.original.startLineNumber-P-1,I=m.modified.startLineNumber-P-1;if(Y>r.length||I>i.length||l.contains(I)||c.contains(Y)||!em(r[Y-1],i[I-1],s))break}P>0&&(c.addRange(new ye(m.original.startLineNumber-P,m.original.startLineNumber)),l.addRange(new ye(m.modified.startLineNumber-P,m.modified.startLineNumber)));let q;for(q=0;q<L;q++){let Y=m.original.endLineNumberExclusive+q,I=m.modified.endLineNumberExclusive+q;if(Y>r.length||I>i.length||l.contains(I)||c.contains(Y)||!em(r[Y-1],i[I-1],s))break}q>0&&(c.addRange(new ye(m.original.endLineNumberExclusive,m.original.endLineNumberExclusive+q)),l.addRange(new ye(m.modified.endLineNumberExclusive,m.modified.endLineNumberExclusive+q))),(P>0||q>0)&&(o[d]=new Vn(new ye(m.original.startLineNumber-P,m.original.endLineNumberExclusive+q),new ye(m.modified.startLineNumber-P,m.modified.endLineNumberExclusive+q)))}return o}function em(e,t,n){if(e.trim()===t.trim())return!0;if(e.length>300&&t.length>300)return!1;let i=new ns().compute(new Cr([e],new oe(1,1,1,e.length),!1),new Cr([t],new oe(1,1,1,t.length),!1),n),s=0,o=ut.invert(i.diffs,e.length);for(let c of o)c.seq1Range.forEach(f=>{Oo(e.charCodeAt(f))||s++});function a(c){let f=0;for(let d=0;d<e.length;d++)Oo(c.charCodeAt(d))||f++;return f}let u=a(e.length>t.length?e:t);return s/u>.6&&u>10}function KE(e){if(e.length===0)return e;e.sort(En(n=>n.original.startLineNumber,ar));let t=[e[0]];for(let n=1;n<e.length;n++){let r=t[t.length-1],i=e[n],s=i.original.startLineNumber-r.original.endLineNumberExclusive,o=i.modified.startLineNumber-r.modified.endLineNumberExclusive;if(s>=0&&o>=0&&s+o<=2){t[t.length-1]=r.join(i);continue}t.push(i)}return t}function eD(e,t){let n=new uo(e);return t=t.filter(r=>{let i=n.findLastMonotonous(a=>a.original.startLineNumber<r.original.endLineNumberExclusive)||new Vn(new ye(1,1),new ye(1,1)),s=sr(e,a=>a.modified.startLineNumber<r.modified.endLineNumberExclusive);return i!==s}),t}function rf(e,t,n){let r=n;return r=nm(e,t,r),r=nm(e,t,r),r=tD(e,t,r),r}function nm(e,t,n){if(n.length===0)return n;let r=[];r.push(n[0]);for(let s=1;s<n.length;s++){let o=r[r.length-1],a=n[s];if(a.seq1Range.isEmpty||a.seq2Range.isEmpty){let u=a.seq1Range.start-o.seq1Range.endExclusive,l;for(l=1;l<=u&&!(e.getElement(a.seq1Range.start-l)!==e.getElement(a.seq1Range.endExclusive-l)||t.getElement(a.seq2Range.start-l)!==t.getElement(a.seq2Range.endExclusive-l));l++);if(l--,l===u){r[r.length-1]=new ut(new le(o.seq1Range.start,a.seq1Range.endExclusive-u),new le(o.seq2Range.start,a.seq2Range.endExclusive-u));continue}a=a.delta(-l)}r.push(a)}let i=[];for(let s=0;s<r.length-1;s++){let o=r[s+1],a=r[s];if(a.seq1Range.isEmpty||a.seq2Range.isEmpty){let u=o.seq1Range.start-a.seq1Range.endExclusive,l;for(l=0;l<u&&!(!e.isStronglyEqual(a.seq1Range.start+l,a.seq1Range.endExclusive+l)||!t.isStronglyEqual(a.seq2Range.start+l,a.seq2Range.endExclusive+l));l++);if(l===u){r[s+1]=new ut(new le(a.seq1Range.start+u,o.seq1Range.endExclusive),new le(a.seq2Range.start+u,o.seq2Range.endExclusive));continue}l>0&&(a=a.delta(l))}i.push(a)}return r.length>0&&i.push(r[r.length-1]),i}function tD(e,t,n){if(!e.getBoundaryScore||!t.getBoundaryScore)return n;for(let r=0;r<n.length;r++){let i=r>0?n[r-1]:void 0,s=n[r],o=r+1<n.length?n[r+1]:void 0,a=new le(i?i.seq1Range.endExclusive+1:0,o?o.seq1Range.start-1:e.length),u=new le(i?i.seq2Range.endExclusive+1:0,o?o.seq2Range.start-1:t.length);s.seq1Range.isEmpty?n[r]=rm(s,e,t,a,u):s.seq2Range.isEmpty&&(n[r]=rm(s.swap(),t,e,u,a).swap())}return n}function rm(e,t,n,r,i){let o=1;for(;e.seq1Range.start-o>=r.start&&e.seq2Range.start-o>=i.start&&n.isStronglyEqual(e.seq2Range.start-o,e.seq2Range.endExclusive-o)&&o<100;)o++;o--;let a=0;for(;e.seq1Range.start+a<r.endExclusive&&e.seq2Range.endExclusive+a<i.endExclusive&&n.isStronglyEqual(e.seq2Range.start+a,e.seq2Range.endExclusive+a)&&a<100;)a++;if(o===0&&a===0)return e;let u=0,l=-1;for(let c=-o;c<=a;c++){let f=e.seq2Range.start+c,d=e.seq2Range.endExclusive+c,m=e.seq1Range.start+c,g=t.getBoundaryScore(m)+n.getBoundaryScore(f)+n.getBoundaryScore(d);g>l&&(l=g,u=c)}return e.delta(u)}function im(e,t,n){let r=[];for(let i of n){let s=r[r.length-1];if(!s){r.push(i);continue}i.seq1Range.start-s.seq1Range.endExclusive<=2||i.seq2Range.start-s.seq2Range.endExclusive<=2?r[r.length-1]=new ut(s.seq1Range.join(i.seq1Range),s.seq2Range.join(i.seq2Range)):r.push(i)}return r}function sf(e,t,n,r,i=!1){let s=ut.invert(n,e.length),o=[],a=new $n(0,0);function u(c,f){if(c.offset1<a.offset1||c.offset2<a.offset2)return;let d=r(e,c.offset1),m=r(t,c.offset2);if(!d||!m)return;let g=new ut(d,m),_=g.intersect(f),T=_.seq1Range.length,A=_.seq2Range.length;for(;s.length>0;){let S=s[0];if(!(S.seq1Range.intersects(g.seq1Range)||S.seq2Range.intersects(g.seq2Range)))break;let P=r(e,S.seq1Range.start),q=r(t,S.seq2Range.start),Y=new ut(P,q),I=Y.intersect(S);if(T+=I.seq1Range.length,A+=I.seq2Range.length,g=g.join(Y),g.seq1Range.endExclusive>=S.seq1Range.endExclusive)s.shift();else break}(i&&T+A<g.seq1Range.length+g.seq2Range.length||T+A<(g.seq1Range.length+g.seq2Range.length)*2/3)&&o.push(g),a=g.getEndExclusives()}for(;s.length>0;){let c=s.shift();c.seq1Range.isEmpty||(u(c.getStarts(),c),u(c.getEndExclusives().delta(-1),c))}return nD(n,o)}function nD(e,t){let n=[];for(;e.length>0||t.length>0;){let r=e[0],i=t[0],s;r&&(!i||r.seq1Range.start<i.seq1Range.start)?s=e.shift():s=t.shift(),n.length>0&&n[n.length-1].seq1Range.endExclusive>=s.seq1Range.start?n[n.length-1]=n[n.length-1].join(s):n.push(s)}return n}function sm(e,t,n){let r=n;if(r.length===0)return r;let i=0,s;do{s=!1;let o=[r[0]];for(let a=1;a<r.length;a++){let c=function(d,m){let g=new le(l.seq1Range.endExclusive,u.seq1Range.start);return e.getText(g).replace(/\s/g,"").length<=4&&(d.seq1Range.length+d.seq2Range.length>5||m.seq1Range.length+m.seq2Range.length>5)},u=r[a],l=o[o.length-1];c(l,u)?(s=!0,o[o.length-1]=o[o.length-1].join(u)):o.push(u)}r=o}while(i++<10&&s);return r}function om(e,t,n){let r=n;if(r.length===0)return r;let i=0,s;do{s=!1;let a=[r[0]];for(let u=1;u<r.length;u++){let f=function(m,g){let _=new le(c.seq1Range.endExclusive,l.seq1Range.start);if(e.countLinesIn(_)>5||_.length>500)return!1;let A=e.getText(_).trim();if(A.length>20||A.split(/\r\n|\r|\n/).length>1)return!1;let S=e.countLinesIn(m.seq1Range),L=m.seq1Range.length,P=t.countLinesIn(m.seq2Range),q=m.seq2Range.length,Y=e.countLinesIn(g.seq1Range),I=g.seq1Range.length,U=t.countLinesIn(g.seq2Range),w=g.seq2Range.length,F=2*40+50;function Z(re){return Math.min(re,F)}return Math.pow(Math.pow(Z(S*40+L),1.5)+Math.pow(Z(P*40+q),1.5),1.5)+Math.pow(Math.pow(Z(Y*40+I),1.5)+Math.pow(Z(U*40+w),1.5),1.5)>(F**1.5)**1.5*1.3},l=r[u],c=a[a.length-1];f(c,l)?(s=!0,a[a.length-1]=a[a.length-1].join(l)):a.push(l)}r=a}while(i++<10&&s);let o=[];return ip(r,(a,u,l)=>{let c=u;function f(A){return A.length>0&&A.trim().length<=3&&u.seq1Range.length+u.seq2Range.length>100}let d=e.extendToFullLines(u.seq1Range),m=e.getText(new le(d.start,u.seq1Range.start));f(m)&&(c=c.deltaStart(-m.length));let g=e.getText(new le(u.seq1Range.endExclusive,d.endExclusive));f(g)&&(c=c.deltaEnd(g.length));let _=ut.fromOffsetPairs(a?a.getEndExclusives():$n.zero,l?l.getStarts():$n.max),T=c.intersect(_);o.length>0&&T.getStarts().equals(o[o.length-1].getEndExclusives())?o[o.length-1]=o[o.length-1].join(T):o.push(T)}),o}var ko=class{constructor(t,n){this.trimmedHash=t,this.lines=n}getElement(t){return this.trimmedHash[t]}get length(){return this.trimmedHash.length}getBoundaryScore(t){let n=t===0?0:am(this.lines[t-1]),r=t===this.lines.length?0:am(this.lines[t]);return 1e3-(n+r)}getText(t){return this.lines.slice(t.start,t.endExclusive).join(`
|
|
108
|
+
`)}isStronglyEqual(t,n){return this.lines[t]===this.lines[n]}};function am(e){let t=0;for(;t<e.length&&(e.charCodeAt(t)===O.Space||e.charCodeAt(t)===O.Tab);)t++;return t}var uu=class{constructor(){this.dynamicProgrammingDiffing=new ou,this.myersDiffingAlgorithm=new ns}computeDiff(t,n,r){if(t.length<=1&&Na(t,n,(I,U)=>I===U))return new Pr([],[],!1);if(t.length===1&&t[0].length===0||n.length===1&&n[0].length===0)return new Pr([new Tn(new ye(1,t.length+1),new ye(1,n.length+1),[new rn(new oe(1,1,t.length,t[t.length-1].length+1),new oe(1,1,n.length,n[n.length-1].length+1))])],[],!1);let i=r.maxComputationTimeMs===0?Br.instance:new su(r.maxComputationTimeMs),s=!r.ignoreTrimWhitespace,o=new Map;function a(I){let U=o.get(I);return U===void 0&&(U=o.size,o.set(I,U)),U}let u=t.map(I=>a(I.trim())),l=n.map(I=>a(I.trim())),c=new ko(u,t),f=new ko(l,n),d=c.length+f.length<1700?this.dynamicProgrammingDiffing.compute(c,f,i,(I,U)=>t[I]===n[U]?n[U].length===0?.1:1+Math.log(1+n[U].length):.99):this.myersDiffingAlgorithm.compute(c,f,i),m=d.diffs,g=d.hitTimeout;m=rf(c,f,m),m=sm(c,f,m);let _=[],T=I=>{if(s)for(let U=0;U<I;U++){let w=A+U,F=S+U;if(t[w]!==n[F]){let Z=this.refineDiff(t,n,new ut(new le(w,w+1),new le(F,F+1)),i,s,r);for(let re of Z.mappings)_.push(re);Z.hitTimeout&&(g=!0)}}},A=0,S=0;for(let I of m){ur(()=>I.seq1Range.start-A===I.seq2Range.start-S);let U=I.seq1Range.start-A;T(U),A=I.seq1Range.endExclusive,S=I.seq2Range.endExclusive;let w=this.refineDiff(t,n,I,i,s,r);w.hitTimeout&&(g=!0);for(let F of w.mappings)_.push(F)}T(t.length-A);let L=new si(t),P=new si(n),q=Jc(_,L,P),Y=[];return r.computeMoves&&(Y=this.computeMoves(q,t,n,u,l,i,s,r)),ur(()=>{function I(w,F){if(w.lineNumber<1||w.lineNumber>F.length)return!1;let Z=F[w.lineNumber-1];return!(w.column<1||w.column>Z.length+1)}function U(w,F){return!(w.startLineNumber<1||w.startLineNumber>F.length+1||w.endLineNumberExclusive<1||w.endLineNumberExclusive>F.length+1)}for(let w of q){if(!w.innerChanges)return!1;for(let F of w.innerChanges)if(!(I(F.modifiedRange.getStartPosition(),n)&&I(F.modifiedRange.getEndPosition(),n)&&I(F.originalRange.getStartPosition(),t)&&I(F.originalRange.getEndPosition(),t)))return!1;if(!U(w.modified,n)||!U(w.original,t))return!1}return!0}),new Pr(q,Y,g)}computeMoves(t,n,r,i,s,o,a,u){return tm(t,n,r,i,s,o).map(f=>{let d=this.refineDiff(n,r,new ut(f.original.toOffsetRange(),f.modified.toOffsetRange()),o,a,u),m=Jc(d.mappings,new si(n),new si(r),!0);return new Ka(f,m)})}refineDiff(t,n,r,i,s,o){let u=rD(r).toRangeMapping2(t,n),l=new Cr(t,u.originalRange,s),c=new Cr(n,u.modifiedRange,s),f=l.length+c.length<500?this.dynamicProgrammingDiffing.compute(l,c,i):this.myersDiffingAlgorithm.compute(l,c,i),d=f.diffs;return d=rf(l,c,d),d=sf(l,c,d,(g,_)=>g.findWordContaining(_)),o.extendToSubwords&&(d=sf(l,c,d,(g,_)=>g.findSubWordContaining(_),!0)),d=im(l,c,d),d=om(l,c,d),{mappings:d.map(g=>new rn(l.translateRange(g.seq1Range),c.translateRange(g.seq2Range))),hitTimeout:f.hitTimeout}}};function rD(e){return new Vn(new ye(e.seq1Range.start+1,e.seq1Range.endExclusive+1),new ye(e.seq2Range.start+1,e.seq2Range.endExclusive+1))}var is={getLegacy:()=>new ru,getDefault:()=>new uu};function Vr(e,t){let n=Math.pow(10,t);return Math.round(e*n)/n}var M=class{constructor(t,n,r,i=1){this._rgbaBrand=void 0,this.r=Math.min(255,Math.max(0,t))|0,this.g=Math.min(255,Math.max(0,n))|0,this.b=Math.min(255,Math.max(0,r))|0,this.a=Vr(Math.max(Math.min(1,i),0),3)}static equals(t,n){return t.r===n.r&&t.g===n.g&&t.b===n.b&&t.a===n.a}},Gn=class e{constructor(t,n,r,i){this._hslaBrand=void 0,this.h=Math.max(Math.min(360,t),0)|0,this.s=Vr(Math.max(Math.min(1,n),0),3),this.l=Vr(Math.max(Math.min(1,r),0),3),this.a=Vr(Math.max(Math.min(1,i),0),3)}static equals(t,n){return t.h===n.h&&t.s===n.s&&t.l===n.l&&t.a===n.a}static fromRGBA(t){let n=t.r/255,r=t.g/255,i=t.b/255,s=t.a,o=Math.max(n,r,i),a=Math.min(n,r,i),u=0,l=0,c=(a+o)/2,f=o-a;if(f>0){switch(l=Math.min(c<=.5?f/(2*c):f/(2-2*c),1),o){case n:u=(r-i)/f+(r<i?6:0);break;case r:u=(i-n)/f+2;break;case i:u=(n-r)/f+4;break}u*=60,u=Math.round(u)}return new e(u,l,c,s)}static _hue2rgb(t,n,r){return r<0&&(r+=1),r>1&&(r-=1),r<1/6?t+(n-t)*6*r:r<1/2?n:r<2/3?t+(n-t)*(2/3-r)*6:t}static toRGBA(t){let n=t.h/360,{s:r,l:i,a:s}=t,o,a,u;if(r===0)o=a=u=i;else{let l=i<.5?i*(1+r):i+r-i*r,c=2*i-l;o=e._hue2rgb(c,l,n+1/3),a=e._hue2rgb(c,l,n),u=e._hue2rgb(c,l,n-1/3)}return new M(Math.round(o*255),Math.round(a*255),Math.round(u*255),s)}},ss=class e{constructor(t,n,r,i){this._hsvaBrand=void 0,this.h=Math.max(Math.min(360,t),0)|0,this.s=Vr(Math.max(Math.min(1,n),0),3),this.v=Vr(Math.max(Math.min(1,r),0),3),this.a=Vr(Math.max(Math.min(1,i),0),3)}static equals(t,n){return t.h===n.h&&t.s===n.s&&t.v===n.v&&t.a===n.a}static fromRGBA(t){let n=t.r/255,r=t.g/255,i=t.b/255,s=Math.max(n,r,i),o=Math.min(n,r,i),a=s-o,u=s===0?0:a/s,l;return a===0?l=0:s===n?l=((r-i)/a%6+6)%6:s===r?l=(i-n)/a+2:l=(n-r)/a+4,new e(Math.round(l*60),u,s,t.a)}static toRGBA(t){let{h:n,s:r,v:i,a:s}=t,o=i*r,a=o*(1-Math.abs(n/60%2-1)),u=i-o,[l,c,f]=[0,0,0];return n<60?(l=o,c=a):n<120?(l=a,c=o):n<180?(c=o,f=a):n<240?(c=a,f=o):n<300?(l=a,f=o):n<=360&&(l=o,f=a),l=Math.round((l+u)*255),c=Math.round((c+u)*255),f=Math.round((f+u)*255),new M(l,c,f,s)}},ai=class e{static fromHex(t){return e.Format.CSS.parseHex(t)||e.red}static equals(t,n){return!t&&!n?!0:!t||!n?!1:t.equals(n)}get hsla(){return this._hsla?this._hsla:Gn.fromRGBA(this.rgba)}get hsva(){return this._hsva?this._hsva:ss.fromRGBA(this.rgba)}constructor(t){if(t)if(t instanceof M)this.rgba=t;else if(t instanceof Gn)this._hsla=t,this.rgba=Gn.toRGBA(t);else if(t instanceof ss)this._hsva=t,this.rgba=ss.toRGBA(t);else throw new Error("Invalid color ctor argument");else throw new Error("Color needs a value")}equals(t){return!!t&&M.equals(this.rgba,t.rgba)&&Gn.equals(this.hsla,t.hsla)&&ss.equals(this.hsva,t.hsva)}getRelativeLuminance(){let t=e._relativeLuminanceForComponent(this.rgba.r),n=e._relativeLuminanceForComponent(this.rgba.g),r=e._relativeLuminanceForComponent(this.rgba.b),i=.2126*t+.7152*n+.0722*r;return Vr(i,4)}reduceRelativeLuminace(t,n){let{r,g:i,b:s}=t.rgba,o=this.getContrastRatio(t);for(;o<n&&(r>0||i>0||s>0);)r-=Math.max(0,Math.ceil(r*.1)),i-=Math.max(0,Math.ceil(i*.1)),s-=Math.max(0,Math.ceil(s*.1)),o=this.getContrastRatio(new e(new M(r,i,s)));return new e(new M(r,i,s))}increaseRelativeLuminace(t,n){let{r,g:i,b:s}=t.rgba,o=this.getContrastRatio(t);for(;o<n&&(r<255||i<255||s<255);)r=Math.min(255,r+Math.ceil((255-r)*.1)),i=Math.min(255,i+Math.ceil((255-i)*.1)),s=Math.min(255,s+Math.ceil((255-s)*.1)),o=this.getContrastRatio(new e(new M(r,i,s)));return new e(new M(r,i,s))}static _relativeLuminanceForComponent(t){let n=t/255;return n<=.03928?n/12.92:Math.pow((n+.055)/1.055,2.4)}getContrastRatio(t){let n=this.getRelativeLuminance(),r=t.getRelativeLuminance();return n>r?(n+.05)/(r+.05):(r+.05)/(n+.05)}isDarker(){return(this.rgba.r*299+this.rgba.g*587+this.rgba.b*114)/1e3<128}isLighter(){return(this.rgba.r*299+this.rgba.g*587+this.rgba.b*114)/1e3>=128}isLighterThan(t){let n=this.getRelativeLuminance(),r=t.getRelativeLuminance();return n>r}isDarkerThan(t){let n=this.getRelativeLuminance(),r=t.getRelativeLuminance();return n<r}ensureConstrast(t,n){let r=this.getRelativeLuminance(),i=t.getRelativeLuminance();if(this.getContrastRatio(t)<n){if(i<r){let u=this.reduceRelativeLuminace(t,n),l=this.getContrastRatio(u);if(l<n){let c=this.increaseRelativeLuminace(t,n),f=this.getContrastRatio(c);return l>f?u:c}return u}let o=this.increaseRelativeLuminace(t,n),a=this.getContrastRatio(o);if(a<n){let u=this.reduceRelativeLuminace(t,n),l=this.getContrastRatio(u);return a>l?o:u}return o}return t}lighten(t){return new e(new Gn(this.hsla.h,this.hsla.s,this.hsla.l+this.hsla.l*t,this.hsla.a))}darken(t){return new e(new Gn(this.hsla.h,this.hsla.s,this.hsla.l-this.hsla.l*t,this.hsla.a))}transparent(t){let{r:n,g:r,b:i,a:s}=this.rgba;return new e(new M(n,r,i,s*t))}isTransparent(){return this.rgba.a===0}isOpaque(){return this.rgba.a===1}opposite(){return new e(new M(255-this.rgba.r,255-this.rgba.g,255-this.rgba.b,this.rgba.a))}blend(t){let n=t.rgba,r=this.rgba.a,i=n.a,s=r+i*(1-r);if(s<1e-6)return e.transparent;let o=this.rgba.r*r/s+n.r*i*(1-r)/s,a=this.rgba.g*r/s+n.g*i*(1-r)/s,u=this.rgba.b*r/s+n.b*i*(1-r)/s;return new e(new M(o,a,u,s))}mix(t,n=.5){let r=Math.min(Math.max(n,0),1),i=this.rgba,s=t.rgba,o=i.r+(s.r-i.r)*r,a=i.g+(s.g-i.g)*r,u=i.b+(s.b-i.b)*r,l=i.a+(s.a-i.a)*r;return new e(new M(o,a,u,l))}makeOpaque(t){if(this.isOpaque()||t.rgba.a!==1)return this;let{r:n,g:r,b:i,a:s}=this.rgba;return new e(new M(t.rgba.r-s*(t.rgba.r-n),t.rgba.g-s*(t.rgba.g-r),t.rgba.b-s*(t.rgba.b-i),1))}flatten(...t){let n=t.reduceRight((r,i)=>e._flatten(i,r));return e._flatten(this,n)}static _flatten(t,n){let r=1-t.rgba.a;return new e(new M(r*n.rgba.r+t.rgba.a*t.rgba.r,r*n.rgba.g+t.rgba.a*t.rgba.g,r*n.rgba.b+t.rgba.a*t.rgba.b))}toString(){return this._toString||(this._toString=e.Format.CSS.format(this)),this._toString}toNumber32Bit(){return this._toNumber32Bit||(this._toNumber32Bit=(this.rgba.r<<24|this.rgba.g<<16|this.rgba.b<<8|this.rgba.a*255<<0)>>>0),this._toNumber32Bit}static getLighterColor(t,n,r){if(t.isLighterThan(n))return t;r=r||.5;let i=t.getRelativeLuminance(),s=n.getRelativeLuminance();return r=r*(s-i)/s,t.lighten(r)}static getDarkerColor(t,n,r){if(t.isDarkerThan(n))return t;r=r||.5;let i=t.getRelativeLuminance(),s=n.getRelativeLuminance();return r=r*(i-s)/i,t.darken(r)}static{this.white=new e(new M(255,255,255,1))}static{this.black=new e(new M(0,0,0,1))}static{this.red=new e(new M(255,0,0,1))}static{this.blue=new e(new M(0,0,255,1))}static{this.green=new e(new M(0,255,0,1))}static{this.cyan=new e(new M(0,255,255,1))}static{this.lightgrey=new e(new M(211,211,211,1))}static{this.transparent=new e(new M(0,0,0,0))}};(function(e){(function(t){(function(n){function r(_){return _.rgba.a===1?`rgb(${_.rgba.r}, ${_.rgba.g}, ${_.rgba.b})`:e.Format.CSS.formatRGBA(_)}n.formatRGB=r;function i(_){return`rgba(${_.rgba.r}, ${_.rgba.g}, ${_.rgba.b}, ${+_.rgba.a.toFixed(2)})`}n.formatRGBA=i;function s(_){return _.hsla.a===1?`hsl(${_.hsla.h}, ${Math.round(_.hsla.s*100)}%, ${Math.round(_.hsla.l*100)}%)`:e.Format.CSS.formatHSLA(_)}n.formatHSL=s;function o(_){return`hsla(${_.hsla.h}, ${Math.round(_.hsla.s*100)}%, ${Math.round(_.hsla.l*100)}%, ${_.hsla.a.toFixed(2)})`}n.formatHSLA=o;function a(_){let T=_.toString(16);return T.length!==2?"0"+T:T}function u(_){return`#${a(_.rgba.r)}${a(_.rgba.g)}${a(_.rgba.b)}`}n.formatHex=u;function l(_,T=!1){return T&&_.rgba.a===1?e.Format.CSS.formatHex(_):`#${a(_.rgba.r)}${a(_.rgba.g)}${a(_.rgba.b)}${a(Math.round(_.rgba.a*255))}`}n.formatHexA=l;function c(_){return _.isOpaque()?e.Format.CSS.formatHex(_):e.Format.CSS.formatRGBA(_)}n.format=c;function f(_){if(_==="transparent")return e.transparent;if(_.startsWith("#"))return m(_);if(_.startsWith("rgba(")){let T=_.match(/rgba\((?<r>(?:\+|-)?\d+), *(?<g>(?:\+|-)?\d+), *(?<b>(?:\+|-)?\d+), *(?<a>(?:\+|-)?\d+(\.\d+)?)\)/);if(!T)throw new Error("Invalid color format "+_);let A=parseInt(T.groups?.r??"0"),S=parseInt(T.groups?.g??"0"),L=parseInt(T.groups?.b??"0"),P=parseFloat(T.groups?.a??"0");return new e(new M(A,S,L,P))}if(_.startsWith("rgb(")){let T=_.match(/rgb\((?<r>(?:\+|-)?\d+), *(?<g>(?:\+|-)?\d+), *(?<b>(?:\+|-)?\d+)\)/);if(!T)throw new Error("Invalid color format "+_);let A=parseInt(T.groups?.r??"0"),S=parseInt(T.groups?.g??"0"),L=parseInt(T.groups?.b??"0");return new e(new M(A,S,L))}return d(_)}n.parse=f;function d(_){switch(_){case"aliceblue":return new e(new M(240,248,255,1));case"antiquewhite":return new e(new M(250,235,215,1));case"aqua":return new e(new M(0,255,255,1));case"aquamarine":return new e(new M(127,255,212,1));case"azure":return new e(new M(240,255,255,1));case"beige":return new e(new M(245,245,220,1));case"bisque":return new e(new M(255,228,196,1));case"black":return new e(new M(0,0,0,1));case"blanchedalmond":return new e(new M(255,235,205,1));case"blue":return new e(new M(0,0,255,1));case"blueviolet":return new e(new M(138,43,226,1));case"brown":return new e(new M(165,42,42,1));case"burlywood":return new e(new M(222,184,135,1));case"cadetblue":return new e(new M(95,158,160,1));case"chartreuse":return new e(new M(127,255,0,1));case"chocolate":return new e(new M(210,105,30,1));case"coral":return new e(new M(255,127,80,1));case"cornflowerblue":return new e(new M(100,149,237,1));case"cornsilk":return new e(new M(255,248,220,1));case"crimson":return new e(new M(220,20,60,1));case"cyan":return new e(new M(0,255,255,1));case"darkblue":return new e(new M(0,0,139,1));case"darkcyan":return new e(new M(0,139,139,1));case"darkgoldenrod":return new e(new M(184,134,11,1));case"darkgray":return new e(new M(169,169,169,1));case"darkgreen":return new e(new M(0,100,0,1));case"darkgrey":return new e(new M(169,169,169,1));case"darkkhaki":return new e(new M(189,183,107,1));case"darkmagenta":return new e(new M(139,0,139,1));case"darkolivegreen":return new e(new M(85,107,47,1));case"darkorange":return new e(new M(255,140,0,1));case"darkorchid":return new e(new M(153,50,204,1));case"darkred":return new e(new M(139,0,0,1));case"darksalmon":return new e(new M(233,150,122,1));case"darkseagreen":return new e(new M(143,188,143,1));case"darkslateblue":return new e(new M(72,61,139,1));case"darkslategray":return new e(new M(47,79,79,1));case"darkslategrey":return new e(new M(47,79,79,1));case"darkturquoise":return new e(new M(0,206,209,1));case"darkviolet":return new e(new M(148,0,211,1));case"deeppink":return new e(new M(255,20,147,1));case"deepskyblue":return new e(new M(0,191,255,1));case"dimgray":return new e(new M(105,105,105,1));case"dimgrey":return new e(new M(105,105,105,1));case"dodgerblue":return new e(new M(30,144,255,1));case"firebrick":return new e(new M(178,34,34,1));case"floralwhite":return new e(new M(255,250,240,1));case"forestgreen":return new e(new M(34,139,34,1));case"fuchsia":return new e(new M(255,0,255,1));case"gainsboro":return new e(new M(220,220,220,1));case"ghostwhite":return new e(new M(248,248,255,1));case"gold":return new e(new M(255,215,0,1));case"goldenrod":return new e(new M(218,165,32,1));case"gray":return new e(new M(128,128,128,1));case"green":return new e(new M(0,128,0,1));case"greenyellow":return new e(new M(173,255,47,1));case"grey":return new e(new M(128,128,128,1));case"honeydew":return new e(new M(240,255,240,1));case"hotpink":return new e(new M(255,105,180,1));case"indianred":return new e(new M(205,92,92,1));case"indigo":return new e(new M(75,0,130,1));case"ivory":return new e(new M(255,255,240,1));case"khaki":return new e(new M(240,230,140,1));case"lavender":return new e(new M(230,230,250,1));case"lavenderblush":return new e(new M(255,240,245,1));case"lawngreen":return new e(new M(124,252,0,1));case"lemonchiffon":return new e(new M(255,250,205,1));case"lightblue":return new e(new M(173,216,230,1));case"lightcoral":return new e(new M(240,128,128,1));case"lightcyan":return new e(new M(224,255,255,1));case"lightgoldenrodyellow":return new e(new M(250,250,210,1));case"lightgray":return new e(new M(211,211,211,1));case"lightgreen":return new e(new M(144,238,144,1));case"lightgrey":return new e(new M(211,211,211,1));case"lightpink":return new e(new M(255,182,193,1));case"lightsalmon":return new e(new M(255,160,122,1));case"lightseagreen":return new e(new M(32,178,170,1));case"lightskyblue":return new e(new M(135,206,250,1));case"lightslategray":return new e(new M(119,136,153,1));case"lightslategrey":return new e(new M(119,136,153,1));case"lightsteelblue":return new e(new M(176,196,222,1));case"lightyellow":return new e(new M(255,255,224,1));case"lime":return new e(new M(0,255,0,1));case"limegreen":return new e(new M(50,205,50,1));case"linen":return new e(new M(250,240,230,1));case"magenta":return new e(new M(255,0,255,1));case"maroon":return new e(new M(128,0,0,1));case"mediumaquamarine":return new e(new M(102,205,170,1));case"mediumblue":return new e(new M(0,0,205,1));case"mediumorchid":return new e(new M(186,85,211,1));case"mediumpurple":return new e(new M(147,112,219,1));case"mediumseagreen":return new e(new M(60,179,113,1));case"mediumslateblue":return new e(new M(123,104,238,1));case"mediumspringgreen":return new e(new M(0,250,154,1));case"mediumturquoise":return new e(new M(72,209,204,1));case"mediumvioletred":return new e(new M(199,21,133,1));case"midnightblue":return new e(new M(25,25,112,1));case"mintcream":return new e(new M(245,255,250,1));case"mistyrose":return new e(new M(255,228,225,1));case"moccasin":return new e(new M(255,228,181,1));case"navajowhite":return new e(new M(255,222,173,1));case"navy":return new e(new M(0,0,128,1));case"oldlace":return new e(new M(253,245,230,1));case"olive":return new e(new M(128,128,0,1));case"olivedrab":return new e(new M(107,142,35,1));case"orange":return new e(new M(255,165,0,1));case"orangered":return new e(new M(255,69,0,1));case"orchid":return new e(new M(218,112,214,1));case"palegoldenrod":return new e(new M(238,232,170,1));case"palegreen":return new e(new M(152,251,152,1));case"paleturquoise":return new e(new M(175,238,238,1));case"palevioletred":return new e(new M(219,112,147,1));case"papayawhip":return new e(new M(255,239,213,1));case"peachpuff":return new e(new M(255,218,185,1));case"peru":return new e(new M(205,133,63,1));case"pink":return new e(new M(255,192,203,1));case"plum":return new e(new M(221,160,221,1));case"powderblue":return new e(new M(176,224,230,1));case"purple":return new e(new M(128,0,128,1));case"rebeccapurple":return new e(new M(102,51,153,1));case"red":return new e(new M(255,0,0,1));case"rosybrown":return new e(new M(188,143,143,1));case"royalblue":return new e(new M(65,105,225,1));case"saddlebrown":return new e(new M(139,69,19,1));case"salmon":return new e(new M(250,128,114,1));case"sandybrown":return new e(new M(244,164,96,1));case"seagreen":return new e(new M(46,139,87,1));case"seashell":return new e(new M(255,245,238,1));case"sienna":return new e(new M(160,82,45,1));case"silver":return new e(new M(192,192,192,1));case"skyblue":return new e(new M(135,206,235,1));case"slateblue":return new e(new M(106,90,205,1));case"slategray":return new e(new M(112,128,144,1));case"slategrey":return new e(new M(112,128,144,1));case"snow":return new e(new M(255,250,250,1));case"springgreen":return new e(new M(0,255,127,1));case"steelblue":return new e(new M(70,130,180,1));case"tan":return new e(new M(210,180,140,1));case"teal":return new e(new M(0,128,128,1));case"thistle":return new e(new M(216,191,216,1));case"tomato":return new e(new M(255,99,71,1));case"turquoise":return new e(new M(64,224,208,1));case"violet":return new e(new M(238,130,238,1));case"wheat":return new e(new M(245,222,179,1));case"white":return new e(new M(255,255,255,1));case"whitesmoke":return new e(new M(245,245,245,1));case"yellow":return new e(new M(255,255,0,1));case"yellowgreen":return new e(new M(154,205,50,1));default:return null}}function m(_){let T=_.length;if(T===0||_.charCodeAt(0)!==O.Hash)return null;if(T===7){let A=16*g(_.charCodeAt(1))+g(_.charCodeAt(2)),S=16*g(_.charCodeAt(3))+g(_.charCodeAt(4)),L=16*g(_.charCodeAt(5))+g(_.charCodeAt(6));return new e(new M(A,S,L,1))}if(T===9){let A=16*g(_.charCodeAt(1))+g(_.charCodeAt(2)),S=16*g(_.charCodeAt(3))+g(_.charCodeAt(4)),L=16*g(_.charCodeAt(5))+g(_.charCodeAt(6)),P=16*g(_.charCodeAt(7))+g(_.charCodeAt(8));return new e(new M(A,S,L,P/255))}if(T===4){let A=g(_.charCodeAt(1)),S=g(_.charCodeAt(2)),L=g(_.charCodeAt(3));return new e(new M(16*A+A,16*S+S,16*L+L))}if(T===5){let A=g(_.charCodeAt(1)),S=g(_.charCodeAt(2)),L=g(_.charCodeAt(3)),P=g(_.charCodeAt(4));return new e(new M(16*A+A,16*S+S,16*L+L,(16*P+P)/255))}return null}n.parseHex=m;function g(_){switch(_){case O.Digit0:return 0;case O.Digit1:return 1;case O.Digit2:return 2;case O.Digit3:return 3;case O.Digit4:return 4;case O.Digit5:return 5;case O.Digit6:return 6;case O.Digit7:return 7;case O.Digit8:return 8;case O.Digit9:return 9;case O.a:return 10;case O.A:return 10;case O.b:return 11;case O.B:return 11;case O.c:return 12;case O.C:return 12;case O.d:return 13;case O.D:return 13;case O.e:return 14;case O.E:return 14;case O.f:return 15;case O.F:return 15}return 0}})(t.CSS||(t.CSS={}))})(e.Format||(e.Format={}))})(ai||(ai={}));function cm(e){let t=[];for(let n of e){let r=Number(n);(r||r===0&&n.replace(/\s/g,"")!=="")&&t.push(r)}return t}function of(e,t,n,r){return{red:e/255,blue:n/255,green:t/255,alpha:r}}function Mo(e,t){let n=t.index,r=t[0].length;if(n===void 0)return;let i=e.positionAt(n);return{startLineNumber:i.lineNumber,startColumn:i.column,endLineNumber:i.lineNumber,endColumn:i.column+r}}function iD(e,t){if(!e)return;let n=ai.Format.CSS.parseHex(t);if(n)return{range:e,color:of(n.rgba.r,n.rgba.g,n.rgba.b,n.rgba.a)}}function um(e,t,n){if(!e||t.length!==1)return;let i=t[0].values(),s=cm(i);return{range:e,color:of(s[0],s[1],s[2],n?s[3]:1)}}function lm(e,t,n){if(!e||t.length!==1)return;let i=t[0].values(),s=cm(i),o=new ai(new Gn(s[0],s[1]/100,s[2]/100,n?s[3]:1));return{range:e,color:of(o.rgba.r,o.rgba.g,o.rgba.b,o.rgba.a)}}function Uo(e,t){return typeof e=="string"?[...e.matchAll(t)]:e.findMatches(t)}function sD(e){let t=[],r=Uo(e,/\b(rgb|rgba|hsl|hsla)(\([0-9\s,.\%]*\))|^(#)([A-Fa-f0-9]{6})\b|^(#)([A-Fa-f0-9]{8})\b|(?<=['"\s])(#)([A-Fa-f0-9]{6})\b|(?<=['"\s])(#)([A-Fa-f0-9]{8})\b/gm);if(r.length>0)for(let i of r){let s=i.filter(l=>l!==void 0),o=s[1],a=s[2];if(!a)continue;let u;if(o==="rgb"){let l=/^\(\s*(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9][0-9]|[0-9])\s*,\s*(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9][0-9]|[0-9])\s*,\s*(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9][0-9]|[0-9])\s*\)$/gm;u=um(Mo(e,i),Uo(a,l),!1)}else if(o==="rgba"){let l=/^\(\s*(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9][0-9]|[0-9])\s*,\s*(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9][0-9]|[0-9])\s*,\s*(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9][0-9]|[0-9])\s*,\s*(0[.][0-9]+|[.][0-9]+|[01][.]|[01])\s*\)$/gm;u=um(Mo(e,i),Uo(a,l),!0)}else if(o==="hsl"){let l=/^\(\s*(36[0]|3[0-5][0-9]|[12][0-9][0-9]|[1-9]?[0-9])\s*,\s*(100|\d{1,2}[.]\d*|\d{1,2})%\s*,\s*(100|\d{1,2}[.]\d*|\d{1,2})%\s*\)$/gm;u=lm(Mo(e,i),Uo(a,l),!1)}else if(o==="hsla"){let l=/^\(\s*(36[0]|3[0-5][0-9]|[12][0-9][0-9]|[1-9]?[0-9])\s*,\s*(100|\d{1,2}[.]\d*|\d{1,2})%\s*,\s*(100|\d{1,2}[.]\d*|\d{1,2})%\s*,\s*(0[.][0-9]+|[.][0-9]+|[01][.]|[01])\s*\)$/gm;u=lm(Mo(e,i),Uo(a,l),!0)}else o==="#"&&(u=iD(Mo(e,i),o+a));u&&t.push(u)}return t}function fm(e){return!e||typeof e.getValue!="function"||typeof e.positionAt!="function"?[]:sD(e)}var oD=/^-+|-+$/g,hm=100,aD=5;function pm(e,t){let n=[];if(t.findRegionSectionHeaders&&t.foldingRules?.markers){let r=uD(e,t);n=n.concat(r)}if(t.findMarkSectionHeaders){let r=lD(e,t);n=n.concat(r)}return n}function uD(e,t){let n=[],r=e.getLineCount();for(let i=1;i<=r;i++){let s=e.getLineContent(i),o=s.match(t.foldingRules.markers.start);if(o){let a={startLineNumber:i,startColumn:o[0].length+1,endLineNumber:i,endColumn:s.length+1};if(a.endColumn>a.startColumn){let u={range:a,...cD(s.substring(o[0].length)),shouldBeInComments:!1};(u.text||u.hasSeparatorLine)&&n.push(u)}}}return n}function lD(e,t){let n=[],r=e.getLineCount();if(!t.markSectionHeaderRegex||t.markSectionHeaderRegex.trim()==="")return n;let i=q0(t.markSectionHeaderRegex),s=new RegExp(t.markSectionHeaderRegex,`gdm${i?"s":""}`);if(kp(s))return n;for(let o=1;o<=r;o+=hm-aD){let a=Math.min(o+hm-1,r),u=[];for(let f=o;f<=a;f++)u.push(e.getLineContent(f));let l=u.join(`
|
|
109
109
|
`);s.lastIndex=0;let c;for(;(c=s.exec(l))!==null;){let f=l.substring(0,c.index),d=(f.match(/\n/g)||[]).length,m=o+d,g=c[0].split(`
|
|
110
|
-
`),
|
|
111
|
-
`)+1,A=c.index-v+1,S=g[g.length-1],C=E===1?A+c[0].length:S.length+1,q={startLineNumber:m,startColumn:A,endLineNumber:T,endColumn:C},G=(c.groups??{}).label??"",I=((c.groups??{}).separator??"")!=="",k={range:q,text:G,hasSeparatorLine:I,shouldBeInComments:!0};(k.text||k.hasSeparatorLine)&&(n.length===0||n[n.length-1].range.endLineNumber<k.range.startLineNumber)&&n.push(k),s.lastIndex=c.index+c[0].length}}return n}function dD(e){e=e.trim();let t=e.startsWith("-");return e=e.replace(cD,""),{text:e,hasSeparatorLine:t}}function Gr(e){return e===M.Slash||e===M.Backslash}function nf(e){return e.replace(/[\\/]/g,Ve.sep)}function hm(e){return e.indexOf("/")===-1&&(e=nf(e)),/^[a-zA-Z]:(\/|$)/.test(e)&&(e="/"+e),e}function rf(e,t=Ve.sep){if(!e)return"";let n=e.length,r=e.charCodeAt(0);if(Gr(r)){if(Gr(e.charCodeAt(1))&&!Gr(e.charCodeAt(2))){let s=3,o=s;for(;s<n&&!Gr(e.charCodeAt(s));s++);if(o!==s&&!Gr(e.charCodeAt(s+1))){for(s+=1;s<n;s++)if(Gr(e.charCodeAt(s)))return e.slice(0,s+1).replace(/[\\/]/g,t)}}return t}else if(mD(r)&&e.charCodeAt(1)===M.Colon)return Gr(e.charCodeAt(2))?e.slice(0,2)+t:e.slice(0,2);let i=e.indexOf("://");if(i!==-1){for(i+=3;i<n;i++)if(Gr(e.charCodeAt(i)))return e.slice(0,i+1)}return""}function sf(e,t,n,r=ts){if(e===t)return!0;if(!e||!t||t.length>e.length)return!1;if(n){if(!_c(e,t))return!1;if(t.length===e.length)return!0;let s=t.length;return t.charAt(t.length-1)===r&&s--,e.charAt(s)===r}return t.charAt(t.length-1)!==r&&(t+=r),e.indexOf(t)===0}function mD(e){return e>=M.A&&e<=M.Z||e>=M.a&&e<=M.z}var bD={},bt;(function(e){e.inMemory="inmemory",e.vscode="vscode",e.internal="private",e.walkThrough="walkThrough",e.walkThroughSnippet="walkThroughSnippet",e.http="http",e.https="https",e.file="file",e.mailto="mailto",e.untitled="untitled",e.data="data",e.command="command",e.vscodeRemote="vscode-remote",e.vscodeRemoteResource="vscode-remote-resource",e.vscodeManagedRemoteResource="vscode-managed-remote-resource",e.vscodeUserData="vscode-userdata",e.vscodeCustomEditor="vscode-custom-editor",e.vscodeNotebookCell="vscode-notebook-cell",e.vscodeNotebookCellMetadata="vscode-notebook-cell-metadata",e.vscodeNotebookCellMetadataDiff="vscode-notebook-cell-metadata-diff",e.vscodeNotebookCellOutput="vscode-notebook-cell-output",e.vscodeNotebookCellOutputDiff="vscode-notebook-cell-output-diff",e.vscodeNotebookMetadata="vscode-notebook-metadata",e.vscodeInteractiveInput="vscode-interactive-input",e.vscodeSettings="vscode-settings",e.vscodeWorkspaceTrust="vscode-workspace-trust",e.vscodeTerminal="vscode-terminal",e.vscodeChatCodeBlock="vscode-chat-code-block",e.vscodeChatCodeCompareBlock="vscode-chat-code-compare-block",e.vscodeChatEditor="vscode-chat-editor",e.vscodeChatInput="chatSessionInput",e.vscodeLocalChatSession="vscode-chat-session",e.webviewPanel="webview-panel",e.vscodeWebview="vscode-webview",e.extension="extension",e.vscodeFileResource="vscode-file",e.tmp="tmp",e.vsls="vsls",e.vscodeSourceControl="vscode-scm",e.commentsInput="comment",e.codeSetting="code-setting",e.outputChannel="output",e.accessibleView="accessible-view",e.chatEditingSnapshotScheme="chat-editing-snapshot-text-model",e.chatEditingModel="chat-editing-text-model",e.copilotPr="copilot-pr"})(bt||(bt={}));var gD="tkn",of=class{constructor(){this._hosts=Object.create(null),this._ports=Object.create(null),this._connectionTokens=Object.create(null),this._preferredWebSchema="http",this._delegate=null,this._serverRootPath="/"}setPreferredWebSchema(t){this._preferredWebSchema=t}setDelegate(t){this._delegate=t}setServerRootPath(t,n){this._serverRootPath=Ve.join(n??"/",ED(t))}getServerRootPath(){return this._serverRootPath}get _remoteResourcesPath(){return Ve.join(this._serverRootPath,bt.vscodeRemoteResource)}set(t,n,r){this._hosts[t]=n,this._ports[t]=r}setConnectionToken(t,n){this._connectionTokens[t]=n}getPreferredWebSchema(){return this._preferredWebSchema}rewrite(t){if(this._delegate)try{return this._delegate(t)}catch(a){return pn(a),t}let n=t.authority,r=this._hosts[n];r&&r.indexOf(":")!==-1&&r.indexOf("[")===-1&&(r=`[${r}]`);let i=this._ports[n],s=this._connectionTokens[n],o=`path=${encodeURIComponent(t.path)}`;return typeof s=="string"&&(o+=`&${gD}=${encodeURIComponent(s)}`),ot.from({scheme:pc?this._preferredWebSchema:bt.vscodeRemoteResource,authority:`${r}:${i}`,path:this._remoteResourcesPath,query:o})}},_D=new of;function ED(e){return`${e.quality??"oss"}-${e.commit??"dev"}`}var DD="vscode-app",af=class e{constructor(){this.staticBrowserUris=new ei,this.appResourcePathUrls=new Map}static{this.FALLBACK_AUTHORITY=DD}registerAppResourcePathUrl(t,n){this.appResourcePathUrls.set(t,n)}toUrl(t){let n=this.appResourcePathUrls.get(t);return typeof n=="function"&&(n=n()),new URL(n??t,globalThis.location?.href??bD.url).toString()}asBrowserUri(t){let n=this.toUri(t);return this.uriToBrowserUri(n)}uriToBrowserUri(t){return t.scheme===bt.vscodeRemote?_D.rewrite(t):t.scheme===bt.file&&(vp||Np===`${bt.vscodeFileResource}://${e.FALLBACK_AUTHORITY}`)?t.with({scheme:bt.vscodeFileResource,authority:t.authority||e.FALLBACK_AUTHORITY,query:null,fragment:null}):this.staticBrowserUris.get(t)??t}asFileUri(t){let n=this.toUri(t);return this.uriToFileUri(n)}uriToFileUri(t){return t.scheme===bt.vscodeFileResource?t.with({scheme:bt.file,authority:t.authority!==e.FALLBACK_AUTHORITY?t.authority:null,query:null,fragment:null}):t}toUri(t){if(ot.isUri(t))return t;if(globalThis._VSCODE_FILE_ROOT){let n=globalThis._VSCODE_FILE_ROOT;if(/^\w[\w\d+.-]*:\/\//.test(n))return ot.joinPath(ot.parse(n,!0),t);let r=Kp(n,t);return ot.file(r)}return ot.parse(this.toUrl(t))}registerStaticBrowserUri(t,n){return this.staticBrowserUris.set(t,n),vn(()=>{this.staticBrowserUris.get(t)===n&&this.staticBrowserUris.delete(t)})}getRegisteredBrowserUris(){return this.staticBrowserUris.keys()}},Gy=new af,pm;(function(e){let t=new Map([["1",{"Cross-Origin-Opener-Policy":"same-origin"}],["2",{"Cross-Origin-Embedder-Policy":"require-corp"}],["3",{"Cross-Origin-Opener-Policy":"same-origin","Cross-Origin-Embedder-Policy":"require-corp"}]]);e.CoopAndCoep=Object.freeze(t.get("3"));let n="vscode-coi";function r(s){let o;typeof s=="string"?o=new URL(s).searchParams:s instanceof URL?o=s.searchParams:ot.isUri(s)&&(o=new URL(s.toString(!0)).searchParams);let a=o?.get(n);if(a)return t.get(a)}e.getHeadersFromQuery=r;function i(s,o,a){if(!globalThis.crossOriginIsolated)return;let u=o&&a?"3":a?"2":"1";s instanceof URLSearchParams?s.set(n,u):s[n]=u}e.addSearchParam=i})(pm||(pm={}));function Er(e){return Lo(e,!0)}var Bo=class{constructor(t){this._ignorePathCasing=t}compare(t,n,r=!1){return t===n?0:Rp(this.getComparisonKey(t,r),this.getComparisonKey(n,r))}isEqual(t,n,r=!1){return t===n?!0:!t||!n?!1:this.getComparisonKey(t,r)===this.getComparisonKey(n,r)}getComparisonKey(t,n=!1){return t.with({path:this._ignorePathCasing(t)?t.path.toLowerCase():void 0,fragment:n?null:void 0}).toString()}ignorePathCasing(t){return this._ignorePathCasing(t)}isEqualOrParent(t,n,r=!1){if(t.scheme===n.scheme){if(t.scheme===bt.file)return sf(Er(t),Er(n),this._ignorePathCasing(t))&&t.query===n.query&&(r||t.fragment===n.fragment);if(dm(t.authority,n.authority))return sf(t.path,n.path,this._ignorePathCasing(t),"/")&&t.query===n.query&&(r||t.fragment===n.fragment)}return!1}joinPath(t,...n){return ot.joinPath(t,...n)}basenameOrAuthority(t){return vD(t)||t.authority}basename(t){return Ve.basename(t.path)}extname(t){return Ve.extname(t.path)}dirname(t){if(t.path.length===0)return t;let n;return t.scheme===bt.file?n=ot.file(nd(Er(t))).path:(n=Ve.dirname(t.path),t.authority&&n.length&&n.charCodeAt(0)!==M.Slash&&(console.error(`dirname("${t.toString})) resulted in a relative path`),n="/")),t.with({path:n})}normalizePath(t){if(!t.path.length)return t;let n;return t.scheme===bt.file?n=ot.file(Zp(Er(t))).path:n=Ve.normalize(t.path),t.with({path:n})}relativePath(t,n){if(t.scheme!==n.scheme||!dm(t.authority,n.authority))return;if(t.scheme===bt.file){let s=td(Er(t),Er(n));return Pn?nf(s):s}let r=t.path||"/",i=n.path||"/";if(this._ignorePathCasing(t)){let s=0;for(let o=Math.min(r.length,i.length);s<o&&!(r.charCodeAt(s)!==i.charCodeAt(s)&&r.charAt(s).toLowerCase()!==i.charAt(s).toLowerCase());s++);r=i.substr(0,s)+r.substr(s)}return Ve.relative(r,i)}resolvePath(t,n){if(t.scheme===bt.file){let r=ot.file(ed(Er(t),n));return t.with({authority:r.authority,path:r.path})}return n=hm(n),t.with({path:Ve.resolve(t.path,n)})}isAbsolutePath(t){return!!t.path&&t.path[0]==="/"}isEqualAuthority(t,n){return t===n||t!==void 0&&n!==void 0&&Sa(t,n)}hasTrailingPathSeparator(t,n=ts){if(t.scheme===bt.file){let r=Er(t);return r.length>rf(r).length&&r[r.length-1]===n}else{let r=t.path;return r.length>1&&r.charCodeAt(r.length-1)===M.Slash&&!/^[a-zA-Z]:(\/$|\\$)/.test(t.fsPath)}}removeTrailingPathSeparator(t,n=ts){return mm(t,n)?t.with({path:t.path.substr(0,t.path.length-1)}):t}addTrailingPathSeparator(t,n=ts){let r=!1;if(t.scheme===bt.file){let i=Er(t);r=i!==void 0&&i.length===rf(i).length&&i[i.length-1]===n}else{n="/";let i=t.path;r=i.length===1&&i.charCodeAt(i.length-1)===M.Slash}return!r&&!mm(t,n)?t.with({path:t.path+"/"}):t}},Ue=new Bo(()=>!1),Zy=new Bo(e=>e.scheme===bt.file?!bp:!0),Ky=new Bo(e=>!0),eL=Ue.isEqual.bind(Ue),tL=Ue.isEqualOrParent.bind(Ue);Ue.getComparisonKey.bind(Ue);var nL=Ue.basenameOrAuthority.bind(Ue),vD=Ue.basename.bind(Ue),rL=Ue.extname.bind(Ue),iL=Ue.dirname.bind(Ue),sL=Ue.joinPath.bind(Ue),oL=Ue.normalizePath.bind(Ue),aL=Ue.relativePath.bind(Ue),uL=Ue.resolvePath.bind(Ue),lL=Ue.isAbsolutePath.bind(Ue),dm=Ue.isEqualAuthority.bind(Ue),mm=Ue.hasTrailingPathSeparator.bind(Ue),cL=Ue.removeTrailingPathSeparator.bind(Ue),fL=Ue.addTrailingPathSeparator.bind(Ue);var gm;(function(e){e.META_DATA_LABEL="label",e.META_DATA_DESCRIPTION="description",e.META_DATA_SIZE="size",e.META_DATA_MIME="mime";function t(n){let r=new Map;n.path.substring(n.path.indexOf(";")+1,n.path.lastIndexOf(";")).split(";").forEach(o=>{let[a,u]=o.split(":");a&&u&&r.set(a,u)});let s=n.path.substring(0,n.path.indexOf(";"));return s&&r.set(e.META_DATA_MIME,s),r}e.parseMetaData=t})(gm||(gm={}));var ND=Symbol("MicrotaskDelay");var TD,uf;(function(){let e=globalThis;typeof e.requestIdleCallback!="function"||typeof e.cancelIdleCallback!="function"?uf=(t,n,r)=>{Tp(()=>{if(i)return;let s=Date.now()+15;n(Object.freeze({didTimeout:!0,timeRemaining(){return Math.max(0,s-Date.now())}}))});let i=!1;return{dispose(){i||(i=!0)}}}:uf=(t,n,r)=>{let i=t.requestIdleCallback(n,typeof r=="number"?{timeout:r}:void 0),s=!1;return{dispose(){s||(s=!0,t.cancelIdleCallback(i))}}},TD=(t,n)=>uf(globalThis,t,n)})();var hi;(function(e){e[e.Resolved=0]="Resolved",e[e.Rejected=1]="Rejected"})(hi||(hi={}));var uu=class e{static fromPromise(t){let n=new e;return n.settleWith(t),n}get isRejected(){return this.outcome?.outcome===hi.Rejected}get isResolved(){return this.outcome?.outcome===hi.Resolved}get isSettled(){return!!this.outcome}get value(){return this.outcome?.outcome===hi.Resolved?this.outcome?.value:void 0}constructor(){this.p=new Promise((t,n)=>{this.completeCallback=t,this.errorCallback=n})}complete(t){return this.isSettled?Promise.resolve():new Promise(n=>{this.completeCallback(t),this.outcome={outcome:hi.Resolved,value:t},n()})}error(t){return this.isSettled?Promise.resolve():new Promise(n=>{this.errorCallback(t),this.outcome={outcome:hi.Rejected,value:t},n()})}settleWith(t){return t.then(n=>this.complete(n),n=>this.error(n))}cancel(){return this.error(new uo)}},_m;(function(e){async function t(r){let i,s=await Promise.all(r.map(o=>o.then(a=>a,a=>{i||(i=a)})));if(typeof i<"u")throw i;return s}e.settled=t;function n(r){return new Promise(async(i,s)=>{try{await r(i,s)}catch(o){s(o)}})}e.withAsyncBody=n})(_m||(_m={}));var Ln;(function(e){e[e.Initial=0]="Initial",e[e.DoneOK=1]="DoneOK",e[e.DoneError=2]="DoneError"})(Ln||(Ln={}));var Em=class e{static fromArray(t){return new e(n=>{n.emitMany(t)})}static fromPromise(t){return new e(async n=>{n.emitMany(await t)})}static fromPromisesResolveOrder(t){return new e(async n=>{await Promise.all(t.map(async r=>n.emitOne(await r)))})}static merge(t){return new e(async n=>{await Promise.all(t.map(async r=>{for await(let i of r)n.emitOne(i)}))})}static{this.EMPTY=e.fromArray([])}constructor(t,n){this._state=Ln.Initial,this._results=[],this._error=null,this._onReturn=n,this._onStateChanged=new Tt,queueMicrotask(async()=>{let r={emitOne:i=>this.emitOne(i),emitMany:i=>this.emitMany(i),reject:i=>this.reject(i)};try{await Promise.resolve(t(r)),this.resolve()}catch(i){this.reject(i)}finally{r.emitOne=void 0,r.emitMany=void 0,r.reject=void 0}})}[Symbol.asyncIterator](){let t=0;return{next:async()=>{do{if(this._state===Ln.DoneError)throw this._error;if(t<this._results.length)return{done:!1,value:this._results[t++]};if(this._state===Ln.DoneOK)return{done:!0,value:void 0};await Wi.toPromise(this._onStateChanged.event)}while(!0)},return:async()=>(this._onReturn?.(),{done:!0,value:void 0})}}static map(t,n){return new e(async r=>{for await(let i of t)r.emitOne(n(i))})}map(t){return e.map(this,t)}static filter(t,n){return new e(async r=>{for await(let i of t)n(i)&&r.emitOne(i)})}filter(t){return e.filter(this,t)}static coalesce(t){return e.filter(t,n=>!!n)}coalesce(){return e.coalesce(this)}static async toPromise(t){let n=[];for await(let r of t)n.push(r);return n}toPromise(){return e.toPromise(this)}emitOne(t){this._state===Ln.Initial&&(this._results.push(t),this._onStateChanged.fire())}emitMany(t){this._state===Ln.Initial&&(this._results=this._results.concat(t),this._onStateChanged.fire())}resolve(){this._state===Ln.Initial&&(this._state=Ln.DoneOK,this._onStateChanged.fire())}reject(t){this._state===Ln.Initial&&(this._state=Ln.DoneError,this._error=t,this._onStateChanged.fire())}};var lf=class{constructor(){this._unsatisfiedConsumers=[],this._unconsumedValues=[]}get hasFinalValue(){return!!this._finalValue}produce(t){if(this._ensureNoFinalValue(),this._unsatisfiedConsumers.length>0){let n=this._unsatisfiedConsumers.shift();this._resolveOrRejectDeferred(n,t)}else this._unconsumedValues.push(t)}produceFinal(t){this._ensureNoFinalValue(),this._finalValue=t;for(let n of this._unsatisfiedConsumers)this._resolveOrRejectDeferred(n,t);this._unsatisfiedConsumers.length=0}_ensureNoFinalValue(){if(this._finalValue)throw new Oe("ProducerConsumer: cannot produce after final value has been set")}_resolveOrRejectDeferred(t,n){n.ok?t.complete(n.value):t.error(n.error)}consume(){if(this._unconsumedValues.length>0||this._finalValue){let t=this._unconsumedValues.length>0?this._unconsumedValues.shift():this._finalValue;return t.ok?Promise.resolve(t.value):Promise.reject(t.error)}else{let t=new uu;return this._unsatisfiedConsumers.push(t),t.p}}},Dm=class e{constructor(t,n){this._onReturn=n,this._producerConsumer=new lf,this._iterator={next:()=>this._producerConsumer.consume(),return:()=>(this._onReturn?.(),Promise.resolve({done:!0,value:void 0})),throw:async r=>(this._finishError(r),{done:!0,value:void 0})},queueMicrotask(async()=>{let r=t({emitOne:i=>this._producerConsumer.produce({ok:!0,value:{done:!1,value:i}}),emitMany:i=>{for(let s of i)this._producerConsumer.produce({ok:!0,value:{done:!1,value:s}})},reject:i=>this._finishError(i)});if(!this._producerConsumer.hasFinalValue)try{await r,this._finishOk()}catch(i){this._finishError(i)}})}static fromArray(t){return new e(n=>{n.emitMany(t)})}static fromPromise(t){return new e(async n=>{n.emitMany(await t)})}static fromPromisesResolveOrder(t){return new e(async n=>{await Promise.all(t.map(async r=>n.emitOne(await r)))})}static merge(t){return new e(async n=>{await Promise.all(t.map(async r=>{for await(let i of r)n.emitOne(i)}))})}static{this.EMPTY=e.fromArray([])}static map(t,n){return new e(async r=>{for await(let i of t)r.emitOne(n(i))})}static tee(t){let n,r,i=new uu,s=async()=>{if(!(!n||!r))try{for await(let u of t)n.emitOne(u),r.emitOne(u)}catch(u){n.reject(u),r.reject(u)}finally{i.complete()}},o=new e(async u=>(n=u,s(),i.p)),a=new e(async u=>(r=u,s(),i.p));return[o,a]}map(t){return e.map(this,t)}static coalesce(t){return e.filter(t,n=>!!n)}coalesce(){return e.coalesce(this)}static filter(t,n){return new e(async r=>{for await(let i of t)n(i)&&r.emitOne(i)})}filter(t){return e.filter(this,t)}_finishOk(){this._producerConsumer.hasFinalValue||this._producerConsumer.produceFinal({ok:!0,value:{done:!0,value:void 0}})}_finishError(t){this._producerConsumer.hasFinalValue||this._producerConsumer.produceFinal({ok:!1,error:t})}[Symbol.asyncIterator](){return this._iterator}};var lu=class{constructor(t){this.values=t,this.prefixSum=new Uint32Array(t.length),this.prefixSumValidIndex=new Int32Array(1),this.prefixSumValidIndex[0]=-1}getCount(){return this.values.length}insertValues(t,n){t=ni(t);let r=this.values,i=this.prefixSum,s=n.length;return s===0?!1:(this.values=new Uint32Array(r.length+s),this.values.set(r.subarray(0,t),0),this.values.set(r.subarray(t),t+s),this.values.set(n,t),t-1<this.prefixSumValidIndex[0]&&(this.prefixSumValidIndex[0]=t-1),this.prefixSum=new Uint32Array(this.values.length),this.prefixSumValidIndex[0]>=0&&this.prefixSum.set(i.subarray(0,this.prefixSumValidIndex[0]+1)),!0)}setValue(t,n){return t=ni(t),n=ni(n),this.values[t]===n?!1:(this.values[t]=n,t-1<this.prefixSumValidIndex[0]&&(this.prefixSumValidIndex[0]=t-1),!0)}removeValues(t,n){t=ni(t),n=ni(n);let r=this.values,i=this.prefixSum;if(t>=r.length)return!1;let s=r.length-t;return n>=s&&(n=s),n===0?!1:(this.values=new Uint32Array(r.length-n),this.values.set(r.subarray(0,t),0),this.values.set(r.subarray(t+n),t),this.prefixSum=new Uint32Array(this.values.length),t-1<this.prefixSumValidIndex[0]&&(this.prefixSumValidIndex[0]=t-1),this.prefixSumValidIndex[0]>=0&&this.prefixSum.set(i.subarray(0,this.prefixSumValidIndex[0]+1)),!0)}getTotalSum(){return this.values.length===0?0:this._getPrefixSum(this.values.length-1)}getPrefixSum(t){return t<0?0:(t=ni(t),this._getPrefixSum(t))}_getPrefixSum(t){if(t<=this.prefixSumValidIndex[0])return this.prefixSum[t];let n=this.prefixSumValidIndex[0]+1;n===0&&(this.prefixSum[0]=this.values[0],n++),t>=this.values.length&&(t=this.values.length-1);for(let r=n;r<=t;r++)this.prefixSum[r]=this.prefixSum[r-1]+this.values[r];return this.prefixSumValidIndex[0]=Math.max(this.prefixSumValidIndex[0],t),this.prefixSum[t]}getIndexOf(t){t=Math.floor(t),this.getTotalSum();let n=0,r=this.values.length-1,i=0,s=0,o=0;for(;n<=r;)if(i=n+(r-n)/2|0,s=this.prefixSum[i],o=s-this.values[i],t<o)r=i-1;else if(t>=s)n=i+1;else break;return new cf(i,t-o)}};var cf=class{constructor(t,n){this.index=t,this.remainder=n,this._prefixSumIndexOfResultBrand=void 0,this.index=t,this.remainder=n}};var cu=class{constructor(t,n,r,i){this._uri=t,this._lines=n,this._eol=r,this._versionId=i,this._lineStarts=null,this._cachedTextValue=null}dispose(){this._lines.length=0}get version(){return this._versionId}getText(){return this._cachedTextValue===null&&(this._cachedTextValue=this._lines.join(this._eol)),this._cachedTextValue}onEvents(t){t.eol&&t.eol!==this._eol&&(this._eol=t.eol,this._lineStarts=null);let n=t.changes;for(let r of n)this._acceptDeleteRange(r.range),this._acceptInsertText(new me(r.range.startLineNumber,r.range.startColumn),r.text);this._versionId=t.versionId,this._cachedTextValue=null}_ensureLineStarts(){if(!this._lineStarts){let t=this._eol.length,n=this._lines.length,r=new Uint32Array(n);for(let i=0;i<n;i++)r[i]=this._lines[i].length+t;this._lineStarts=new lu(r)}}_setLineText(t,n){this._lines[t]=n,this._lineStarts&&this._lineStarts.setValue(t,this._lines[t].length+this._eol.length)}_acceptDeleteRange(t){if(t.startLineNumber===t.endLineNumber){if(t.startColumn===t.endColumn)return;this._setLineText(t.startLineNumber-1,this._lines[t.startLineNumber-1].substring(0,t.startColumn-1)+this._lines[t.startLineNumber-1].substring(t.endColumn-1));return}this._setLineText(t.startLineNumber-1,this._lines[t.startLineNumber-1].substring(0,t.startColumn-1)+this._lines[t.endLineNumber-1].substring(t.endColumn-1)),this._lines.splice(t.startLineNumber,t.endLineNumber-t.startLineNumber),this._lineStarts&&this._lineStarts.removeValues(t.startLineNumber,t.endLineNumber-t.startLineNumber)}_acceptInsertText(t,n){if(n.length===0)return;let r=Fa(n);if(r.length===1){this._setLineText(t.lineNumber-1,this._lines[t.lineNumber-1].substring(0,t.column-1)+r[0]+this._lines[t.lineNumber-1].substring(t.column-1));return}r[r.length-1]+=this._lines[t.lineNumber-1].substring(t.column-1),this._setLineText(t.lineNumber-1,this._lines[t.lineNumber-1].substring(0,t.column-1)+r[0]);let i=new Uint32Array(r.length-1);for(let s=1;s<r.length;s++)this._lines.splice(t.lineNumber+s-1,0,r[s]),i[s-1]=r[s].length+this._eol.length;this._lineStarts&&this._lineStarts.insertValues(t.lineNumber,i)}};var VL=60*1e3,wD="workerTextModelSync";var fu=class{constructor(){this._models=Object.create(null)}bindToServer(t){t.setChannel(wD,this)}getModel(t){return this._models[t]}getModels(){let t=[];return Object.keys(this._models).forEach(n=>t.push(this._models[n])),t}$acceptNewModel(t){this._models[t.url]=new ff(ot.parse(t.url),t.lines,t.EOL,t.versionId)}$acceptModelChanged(t,n){if(!this._models[t])return;this._models[t].onEvents(n)}$acceptRemovedModel(t){this._models[t]&&delete this._models[t]}},ff=class extends cu{get uri(){return this._uri}get eol(){return this._eol}getValue(){return this.getText()}findMatches(t){let n=[];for(let r=0;r<this._lines.length;r++){let i=this._lines[r],s=this.offsetAt(new me(r+1,1)),o=i.matchAll(t);for(let a of o)(a.index||a.index===0)&&(a.index=a.index+s),n.push(a)}return n}getLinesContent(){return this._lines.slice(0)}getLineCount(){return this._lines.length}getLineContent(t){return this._lines[t-1]}getWordAtPosition(t,n){let r=Fo(t.column,Hc(n),this._lines[t.lineNumber-1],0);return r?new ie(t.lineNumber,r.startColumn,t.lineNumber,r.endColumn):null}getWordUntilPosition(t,n){let r=this.getWordAtPosition(t,n);return r?{word:this._lines[t.lineNumber-1].substring(r.startColumn-1,t.column-1),startColumn:r.startColumn,endColumn:t.column}:{word:"",startColumn:t.column,endColumn:t.column}}words(t){let n=this._lines,r=this._wordenize.bind(this),i=0,s="",o=0,a=[];return{*[Symbol.iterator](){for(;;)if(o<a.length){let u=s.substring(a[o].start,a[o].end);o+=1,yield u}else if(i<n.length)s=n[i],a=r(s,t),o=0,i+=1;else break}}}getLineWords(t,n){let r=this._lines[t-1],i=this._wordenize(r,n),s=[];for(let o of i)s.push({word:r.substring(o.start,o.end),startColumn:o.start+1,endColumn:o.end+1});return s}_wordenize(t,n){let r=[],i;for(n.lastIndex=0;(i=n.exec(t))&&i[0].length!==0;)r.push({start:i.index,end:i.index+i[0].length});return r}getValueInRange(t){if(t=this._validateRange(t),t.startLineNumber===t.endLineNumber)return this._lines[t.startLineNumber-1].substring(t.startColumn-1,t.endColumn-1);let n=this._eol,r=t.startLineNumber-1,i=t.endLineNumber-1,s=[];s.push(this._lines[r].substring(t.startColumn-1));for(let o=r+1;o<i;o++)s.push(this._lines[o]);return s.push(this._lines[i].substring(0,t.endColumn-1)),s.join(n)}offsetAt(t){return t=this._validatePosition(t),this._ensureLineStarts(),this._lineStarts.getPrefixSum(t.lineNumber-2)+(t.column-1)}positionAt(t){t=Math.floor(t),t=Math.max(0,t),this._ensureLineStarts();let n=this._lineStarts.getIndexOf(t),r=this._lines[n.index].length;return{lineNumber:1+n.index,column:1+Math.min(n.remainder,r)}}_validateRange(t){let n=this._validatePosition({lineNumber:t.startLineNumber,column:t.startColumn}),r=this._validatePosition({lineNumber:t.endLineNumber,column:t.endColumn});return n.lineNumber!==t.startLineNumber||n.column!==t.startColumn||r.lineNumber!==t.endLineNumber||r.column!==t.endColumn?{startLineNumber:n.lineNumber,startColumn:n.column,endLineNumber:r.lineNumber,endColumn:r.column}:t}_validatePosition(t){if(!me.isIPosition(t))throw new Error("bad position");let{lineNumber:n,column:r}=t,i=!1;if(n<1)n=1,r=1,i=!0;else if(n>this._lines.length)n=this._lines.length,r=this._lines[n-1].length+1,i=!0;else{let s=this._lines[n-1].length+1;r<1?(r=1,i=!0):r>s&&(r=s,i=!0)}return i?{lineNumber:n,column:r}:t}};var Co=class{constructor(t){this.replacements=t;let n=-1;for(let r of t){if(!(r.replaceRange.start>=n))throw new Oe(`Edits must be disjoint and sorted. Found ${r} after ${n}`);n=r.replaceRange.endExclusive}}equals(t){if(this.replacements.length!==t.replacements.length)return!1;for(let n=0;n<this.replacements.length;n++)if(!this.replacements[n].equals(t.replacements[n]))return!1;return!0}toString(){return`[${this.replacements.map(n=>n.toString()).join(", ")}]`}normalize(){let t=[],n;for(let r of this.replacements)if(!(r.getNewLength()===0&&r.replaceRange.length===0)){if(n&&n.replaceRange.endExclusive===r.replaceRange.start){let i=n.tryJoinTouching(r);if(i){n=i;continue}}n&&t.push(n),n=r}return n&&t.push(n),this._createNew(t)}compose(t){let n=this.normalize(),r=t.normalize();if(n.isEmpty())return r;if(r.isEmpty())return n;let i=[...n.replacements],s=[],o=0;for(let a of r.replacements){for(;;){let f=i[0];if(!f||f.replaceRange.start+o+f.getNewLength()>=a.replaceRange.start)break;i.shift(),s.push(f),o+=f.getNewLength()-f.replaceRange.length}let u=o,l,c;for(;;){let f=i[0];if(!f||f.replaceRange.start+o>a.replaceRange.endExclusive)break;l||(l=f),c=f,i.shift(),o+=f.getNewLength()-f.replaceRange.length}if(!l)s.push(a.delta(-o));else{let f=Math.min(l.replaceRange.start,a.replaceRange.start-u),d=a.replaceRange.start-(l.replaceRange.start+u);if(d>0){let T=l.slice(le.emptyAt(f),new le(0,d));s.push(T)}if(!c)throw new Oe("Invariant violation: lastIntersecting is undefined");let m=c.replaceRange.endExclusive+o-a.replaceRange.endExclusive;if(m>0){let T=c.slice(le.ofStartAndLength(c.replaceRange.endExclusive,0),new le(c.getNewLength()-m,c.getNewLength()));i.unshift(T),o-=T.getNewLength()-T.replaceRange.length}let g=new le(f,a.replaceRange.endExclusive-o),E=a.slice(g,new le(0,a.getNewLength()));s.push(E)}}for(;;){let a=i.shift();if(!a)break;s.push(a)}return this._createNew(s).normalize()}decomposeSplit(t){let n=[],r=[],i=0;for(let s of this.replacements)t(s)?(n.push(s),i+=s.getNewLength()-s.replaceRange.length):r.push(s.slice(s.replaceRange.delta(i),new le(0,s.getNewLength())));return{e1:this._createNew(n),e2:this._createNew(r)}}getNewRanges(){let t=[],n=0;for(let r of this.replacements)t.push(le.ofStartAndLength(r.replaceRange.start+n,r.getNewLength())),n+=r.getLengthDelta();return t}getJoinedReplaceRange(){if(this.replacements.length!==0)return this.replacements[0].replaceRange.join(this.replacements.at(-1).replaceRange)}isEmpty(){return this.replacements.length===0}getLengthDelta(){return ep(this.replacements,t=>t.getLengthDelta())}getNewDataLength(t){return t+this.getLengthDelta()}applyToOffset(t){let n=0;for(let r of this.replacements)if(r.replaceRange.start<=t){if(t<r.replaceRange.endExclusive)return r.replaceRange.start+n;n+=r.getNewLength()-r.replaceRange.length}else break;return t+n}applyToOffsetRange(t){return new le(this.applyToOffset(t.start),this.applyToOffset(t.endExclusive))}applyInverseToOffset(t){let n=0;for(let r of this.replacements){let i=r.getNewLength();if(r.replaceRange.start<=t-n){if(t-n<r.replaceRange.start+i)return r.replaceRange.start;n+=i-r.replaceRange.length}else break}return t-n}applyToOffsetOrUndefined(t){let n=0;for(let r of this.replacements)if(r.replaceRange.start<=t){if(t<r.replaceRange.endExclusive)return;n+=r.getNewLength()-r.replaceRange.length}else break;return t+n}applyToOffsetRangeOrUndefined(t){let n=this.applyToOffsetOrUndefined(t.start);if(n===void 0)return;let r=this.applyToOffsetOrUndefined(t.endExclusive);if(r!==void 0)return new le(n,r)}},hu=class{constructor(t){this.replaceRange=t}delta(t){return this.slice(this.replaceRange.delta(t),new le(0,this.getNewLength()))}getLengthDelta(){return this.getNewLength()-this.replaceRange.length}toString(){return`{ ${this.replaceRange.toString()} -> ${this.getNewLength()} }`}get isEmpty(){return this.getNewLength()===0&&this.replaceRange.length===0}getRangeAfterReplace(){return new le(this.replaceRange.start,this.replaceRange.start+this.getNewLength())}},bm=class e extends Co{static{this.empty=new e([])}static create(t){return new e(t)}static single(t){return new e([t])}_createNew(t){return new e(t)}};var pu=class extends Co{get TReplacement(){throw new Error("TReplacement is not defined for BaseStringEdit")}static composeOrUndefined(t){if(t.length===0)return;let n=t[0];for(let r=1;r<t.length;r++)n=n.compose(t[r]);return n}static trySwap(t,n){let r=t.inverseOnSlice((o,a)=>" ".repeat(a-o)),i=n.tryRebase(r);if(!i)return;let s=t.tryRebase(i);if(s)return{e1:i,e2:s}}apply(t){let n=[],r=0;for(let i of this.replacements)n.push(t.substring(r,i.replaceRange.start)),n.push(i.newText),r=i.replaceRange.endExclusive;return n.push(t.substring(r)),n.join("")}inverseOnSlice(t){let n=[],r=0;for(let i of this.replacements)n.push(jt.replace(le.ofStartAndLength(i.replaceRange.start+r,i.newText.length),t(i.replaceRange.start,i.replaceRange.endExclusive))),r+=i.newText.length-i.replaceRange.length;return new An(n)}inverse(t){return this.inverseOnSlice((n,r)=>t.substring(n,r))}rebaseSkipConflicting(t){return this._tryRebase(t,!1)}tryRebase(t){return this._tryRebase(t,!0)}_tryRebase(t,n){let r=[],i=0,s=0,o=0;for(;s<this.replacements.length||i<t.replacements.length;){let a=t.replacements[i],u=this.replacements[s];if(u)if(!a)r.push(new jt(u.replaceRange.delta(o),u.newText)),s++;else if(u.replaceRange.intersectsOrTouches(a.replaceRange)){if(s++,n)return}else u.replaceRange.start<a.replaceRange.start?(r.push(new jt(u.replaceRange.delta(o),u.newText)),s++):(i++,o+=a.newText.length-a.replaceRange.length);else break}return new An(r)}toJson(){return this.replacements.map(t=>t.toJson())}isNeutralOn(t){return this.replacements.every(n=>n.isNeutralOn(t))}removeCommonSuffixPrefix(t){let n=[];for(let r of this.replacements){let i=r.removeCommonSuffixPrefix(t);i.isEmpty||n.push(i)}return new An(n)}normalizeEOL(t){return new An(this.replacements.map(n=>n.normalizeEOL(t)))}normalizeOnSource(t){let n=this.apply(t),i=jt.replace(le.ofLength(t.length),n).removeCommonSuffixAndPrefix(t);return i.isEmpty?An.empty:i.toEdit()}removeCommonSuffixAndPrefix(t){return this._createNew(this.replacements.map(n=>n.removeCommonSuffixAndPrefix(t))).normalize()}applyOnText(t){return new Bn(this.apply(t.value))}mapData(t){return new hf(this.replacements.map(n=>new cs(n.replaceRange,n.newText,t(n))))}},du=class extends hu{constructor(t,n){super(t),this.newText=n}getNewLength(){return this.newText.length}toString(){return`${this.replaceRange} -> ${JSON.stringify(this.newText)}`}replace(t){return t.substring(0,this.replaceRange.start)+this.newText+t.substring(this.replaceRange.endExclusive)}isNeutralOn(t){return this.newText===t.substring(this.replaceRange.start,this.replaceRange.endExclusive)}removeCommonSuffixPrefix(t){let n=t.substring(this.replaceRange.start,this.replaceRange.endExclusive),r=Zi(n,this.newText),i=Math.min(n.length-r,this.newText.length-r,Ki(n,this.newText)),s=new le(this.replaceRange.start+r,this.replaceRange.endExclusive-i),o=this.newText.substring(r,this.newText.length-i);return new jt(s,o)}normalizeEOL(t){let n=this.newText.replace(/\r\n|\n/g,t);return new jt(this.replaceRange,n)}removeCommonSuffixAndPrefix(t){return this.removeCommonSuffix(t).removeCommonPrefix(t)}removeCommonPrefix(t){let n=this.replaceRange.substring(t),r=Zi(n,this.newText);return r===0?this:this.slice(this.replaceRange.deltaStart(r),new le(r,this.newText.length))}removeCommonSuffix(t){let n=this.replaceRange.substring(t),r=Ki(n,this.newText);return r===0?this:this.slice(this.replaceRange.deltaEnd(-r),new le(0,this.newText.length-r))}toEdit(){return new An([this])}toJson(){return{txt:this.newText,pos:this.replaceRange.start,len:this.replaceRange.length}}},An=class e extends pu{static{this.empty=new e([])}static create(t){return new e(t)}static single(t){return new e([t])}static replace(t,n){return new e([new jt(t,n)])}static insert(t,n){return new e([new jt(le.emptyAt(t),n)])}static delete(t){return new e([new jt(t,"")])}static fromJson(t){return new e(t.map(jt.fromJson))}static compose(t){if(t.length===0)return e.empty;let n=t[0];for(let r=1;r<t.length;r++)n=n.compose(t[r]);return n}static composeSequentialReplacements(t){let n=e.empty,r=[];for(let i of t){let s=r.at(-1);!s||i.replaceRange.isBefore(s.replaceRange)?r.push(i):(n=n.compose(e.create(r.reverse())),r=[i])}return n=n.compose(e.create(r.reverse())),n}constructor(t){super(t)}_createNew(t){return new e(t)}},jt=class e extends du{static insert(t,n){return new e(le.emptyAt(t),n)}static replace(t,n){return new e(t,n)}static delete(t){return new e(t,"")}static fromJson(t){return new e(le.ofStartAndLength(t.pos,t.len),t.txt)}equals(t){return this.replaceRange.equals(t.replaceRange)&&this.newText===t.newText}tryJoinTouching(t){return new e(this.replaceRange.joinRightTouching(t.replaceRange),this.newText+t.newText)}slice(t,n){return new e(t,n?n.substring(this.newText):this.newText)}};var hf=class e extends pu{static{this.empty=new e([])}static create(t){return new e(t)}static single(t){return new e([t])}static replace(t,n,r){return new e([new cs(t,n,r)])}static insert(t,n,r){return new e([new cs(le.emptyAt(t),n,r)])}static delete(t,n){return new e([new cs(t,"",n)])}static compose(t){if(t.length===0)return e.empty;let n=t[0];for(let r=1;r<t.length;r++)n=n.compose(t[r]);return n}constructor(t){super(t)}_createNew(t){return new e(t)}toStringEdit(t){let n=[];for(let r of this.replacements)(!t||t(r))&&n.push(new jt(r.replaceRange,r.newText));return new An(n)}},cs=class e extends du{static insert(t,n,r){return new e(le.emptyAt(t),n,r)}static replace(t,n,r){return new e(t,n,r)}static delete(t,n){return new e(t,"",n)}constructor(t,n,r){super(t,n),this.data=r}equals(t){return this.replaceRange.equals(t.replaceRange)&&this.newText===t.newText&&this.data===t.data}tryJoinTouching(t){let n=this.data.join(t.data);if(n!==void 0)return new e(this.replaceRange.joinRightTouching(t.replaceRange),this.newText+t.newText,n)}slice(t,n){return new e(t,n?n.substring(this.newText):this.newText,this.data)}};H0({StringEdit:An,StringReplacement:jt,TextReplacement:xt,TextEdit:ci,TextLength:xn});var fs=class e{constructor(t=null){this._foreignModule=t,this._requestHandlerBrand=void 0,this._workerTextModelSyncServer=new fu}dispose(){}async $ping(){return"pong"}_getModel(t){return this._workerTextModelSyncServer.getModel(t)}getModels(){return this._workerTextModelSyncServer.getModels()}$acceptNewModel(t){this._workerTextModelSyncServer.$acceptNewModel(t)}$acceptModelChanged(t,n){this._workerTextModelSyncServer.$acceptModelChanged(t,n)}$acceptRemovedModel(t){this._workerTextModelSyncServer.$acceptRemovedModel(t)}async $computeUnicodeHighlights(t,n,r){let i=this._getModel(t);return i?Xa.computeUnicodeHighlights(i,n,r):{ranges:[],hasMore:!1,ambiguousCharacterCount:0,invisibleCharacterCount:0,nonBasicAsciiCharacterCount:0}}async $findSectionHeaders(t,n){let r=this._getModel(t);return r?fm(r,n):[]}async $computeDiff(t,n,r,i){let s=this._getModel(t),o=this._getModel(n);return!s||!o?null:e.computeDiff(s,o,r,i)}static computeDiff(t,n,r,i){let s=i==="advanced"?us.getDefault():us.getLegacy(),o=t.getLinesContent(),a=n.getLinesContent(),u=s.computeDiff(o,a,r),l=u.changes.length>0?!1:this._modelsAreIdentical(t,n);function c(f){return f.map(d=>[d.original.startLineNumber,d.original.endLineNumberExclusive,d.modified.startLineNumber,d.modified.endLineNumberExclusive,d.innerChanges?.map(m=>[m.originalRange.startLineNumber,m.originalRange.startColumn,m.originalRange.endLineNumber,m.originalRange.endColumn,m.modifiedRange.startLineNumber,m.modifiedRange.startColumn,m.modifiedRange.endLineNumber,m.modifiedRange.endColumn])])}return{identical:l,quitEarly:u.hitTimeout,changes:c(u.changes),moves:u.moves.map(f=>[f.lineRangeMapping.original.startLineNumber,f.lineRangeMapping.original.endLineNumberExclusive,f.lineRangeMapping.modified.startLineNumber,f.lineRangeMapping.modified.endLineNumberExclusive,c(f.changes)])}}static _modelsAreIdentical(t,n){let r=t.getLineCount(),i=n.getLineCount();if(r!==i)return!1;for(let s=1;s<=r;s++){let o=t.getLineContent(s),a=n.getLineContent(s);if(o!==a)return!1}return!0}async $computeDirtyDiff(t,n,r){let i=this._getModel(t),s=this._getModel(n);if(!i||!s)return null;let o=i.getLinesContent(),a=s.getLinesContent();return new Io(o,a,{shouldComputeCharChanges:!1,shouldPostProcessCharChanges:!1,shouldIgnoreTrimWhitespace:r,shouldMakePrettyDiff:!0,maxComputationTime:1e3}).computeDiff().changes}$computeStringDiff(t,n,r,i){return xD(t,n,r,i).toJson()}static{this._diffLimit=1e5}async $computeMoreMinimalEdits(t,n,r){let i=this._getModel(t);if(!i)return n;let s=[],o;n=n.slice(0).sort((u,l)=>{if(u.range&&l.range)return ie.compareRangesUsingStarts(u.range,l.range);let c=u.range?0:1,f=l.range?0:1;return c-f});let a=0;for(let u=1;u<n.length;u++)ie.getEndPosition(n[a].range).equals(ie.getStartPosition(n[u].range))?(n[a].range=ie.fromPositions(ie.getStartPosition(n[a].range),ie.getEndPosition(n[u].range)),n[a].text+=n[u].text):(a++,n[a]=n[u]);n.length=a+1;for(let{range:u,text:l,eol:c}of n){if(typeof c=="number"&&(o=c),ie.isEmpty(u)&&!l)continue;let f=i.getValueInRange(u);if(l=l.replace(/\r\n|\n|\r/g,i.eol),f===l)continue;if(Math.max(l.length,f.length)>e._diffLimit){s.push({range:u,text:l});continue}let d=Gp(f,l,r),m=i.offsetAt(ie.lift(u).getStartPosition());for(let g of d){let E=i.positionAt(m+g.originalStart),T=i.positionAt(m+g.originalStart+g.originalLength),v={text:l.substr(g.modifiedStart,g.modifiedLength),range:{startLineNumber:E.lineNumber,startColumn:E.column,endLineNumber:T.lineNumber,endColumn:T.column}};i.getValueInRange(v.range)!==v.text&&s.push(v)}}return typeof o=="number"&&s.push({eol:o,text:"",range:{startLineNumber:0,startColumn:0,endLineNumber:0,endColumn:0}}),s}$computeHumanReadableDiff(t,n,r){let i=this._getModel(t);if(!i)return n;let s=[],o;n=n.slice(0).sort((a,u)=>{if(a.range&&u.range)return ie.compareRangesUsingStarts(a.range,u.range);let l=a.range?0:1,c=u.range?0:1;return l-c});for(let{range:a,text:u,eol:l}of n){let E=function(v,A){return new me(v.lineNumber+A.lineNumber-1,A.lineNumber===1?v.column+A.column-1:A.column)},T=function(v,A){let S=[];for(let C=A.startLineNumber;C<=A.endLineNumber;C++){let q=v[C-1];C===A.startLineNumber&&C===A.endLineNumber?S.push(q.substring(A.startColumn-1,A.endColumn-1)):C===A.startLineNumber?S.push(q.substring(A.startColumn-1)):C===A.endLineNumber?S.push(q.substring(0,A.endColumn-1)):S.push(q)}return S};if(typeof l=="number"&&(o=l),ie.isEmpty(a)&&!u)continue;let c=i.getValueInRange(a);if(u=u.replace(/\r\n|\n|\r/g,i.eol),c===u)continue;if(Math.max(u.length,c.length)>e._diffLimit){s.push({range:a,text:u});continue}let f=c.split(/\r\n|\n|\r/),d=u.split(/\r\n|\n|\r/),m=us.getDefault().computeDiff(f,d,r),g=ie.lift(a).getStartPosition();for(let v of m.changes)if(v.innerChanges)for(let A of v.innerChanges)s.push({range:ie.fromPositions(E(g,A.originalRange.getStartPosition()),E(g,A.originalRange.getEndPosition())),text:T(d,A.modifiedRange).join(i.eol)});else throw new Oe("The experimental diff algorithm always produces inner changes")}return typeof o=="number"&&s.push({eol:o,text:"",range:{startLineNumber:0,startColumn:0,endLineNumber:0,endColumn:0}}),s}async $computeLinks(t){let n=this._getModel(t);return n?Hp(n):null}async $computeDefaultDocumentColors(t){let n=this._getModel(t);return n?lm(n):null}static{this._suggestionsLimit=1e4}async $textualSuggest(t,n,r,i){let s=new Hi,o=new RegExp(r,i),a=new Set;e:for(let u of t){let l=this._getModel(u);if(l){for(let c of l.words(o))if(!(c===n||!isNaN(Number(c)))&&(a.add(c),a.size>e._suggestionsLimit))break e}}return{words:Array.from(a),duration:s.elapsed()}}async $computeWordRanges(t,n,r,i){let s=this._getModel(t);if(!s)return Object.create(null);let o=new RegExp(r,i),a=Object.create(null);for(let u=n.startLineNumber;u<n.endLineNumber;u++){let l=s.getLineWords(u,o);for(let c of l){if(!isNaN(Number(c.word)))continue;let f=a[c.word];f||(f=[],a[c.word]=f),f.push({startLineNumber:u,startColumn:c.startColumn,endLineNumber:u,endColumn:c.endColumn})}}return a}async $navigateValueSet(t,n,r,i,s){let o=this._getModel(t);if(!o)return null;let a=new RegExp(i,s);n.startColumn===n.endColumn&&(n={startLineNumber:n.startLineNumber,startColumn:n.startColumn,endLineNumber:n.endLineNumber,endColumn:n.endColumn+1});let u=o.getValueInRange(n),l=o.getWordAtPosition({lineNumber:n.startLineNumber,column:n.startColumn},a);if(!l)return null;let c=o.getValueInRange(l);return Pa.INSTANCE.navigateValueSet(n,u,l,c,r)}$fmr(t,n){if(!this._foreignModule||typeof this._foreignModule[t]!="function")return Promise.reject(new Error("Missing requestHandler or method: "+t));try{return Promise.resolve(this._foreignModule[t].apply(this._foreignModule,n))}catch(r){return Promise.reject(r)}}};typeof importScripts=="function"&&(globalThis.monaco=S0());function xD(e,t,n,r){let i=r==="advanced"?us.getDefault():us.getLegacy(),s=new Bn(e),o=s.getLines(),a=new Bn(t),u=a.getLines(),l=i.computeDiff(o,u,{ignoreTrimWhitespace:!1,maxComputationTimeMs:n.maxComputationTimeMs,computeMoves:!1,extendToSubwords:!1}),c=yn.toTextEdit(l.changes,a);return s.getTransformer().getStringEdit(c)}Pp(()=>new fs(null));var mu=class e{static{this.CHANNEL_NAME="editorWorkerHost"}static getChannel(t){return t.getChannel(e.CHANNEL_NAME)}static setChannel(t,n){t.setChannel(e.CHANNEL_NAME,n)}};function pf(e){let t,n=yc(r=>{let i=mu.getChannel(r),o={host:new Proxy({},{get(a,u,l){if(u!=="then"){if(typeof u!="string")throw new Error("Not supported");return(...c)=>i.$fhr(u,c)}}}),getMirrorModels:()=>n.requestHandler.getModels()};return t=e(o),new fs(t)});return t}var vm=!1;function yD(){return vm}function Nm(e){vm=!0,self.onmessage=t=>{pf(n=>e(n,t.data))}}self.onmessage=()=>{yD()||pf(()=>({}))};function we(e,t){if(!!!e)throw new Error(t)}function Pt(e){return typeof e=="object"&&e!==null}function et(e,t){if(!!!e)throw new Error(t??"Unexpected invariant triggered.")}var LD=/\r\n|[\n\r]/g;function hs(e,t){let n=0,r=1;for(let i of e.body.matchAll(LD)){if(typeof i.index=="number"||et(!1),i.index>=t)break;n=i.index+i[0].length,r+=1}return{line:r,column:t+1-n}}function df(e){return gu(e.source,hs(e.source,e.start))}function gu(e,t){let n=e.locationOffset.column-1,r="".padStart(n)+e.body,i=t.line-1,s=e.locationOffset.line-1,o=t.line+s,a=t.line===1?n:0,u=t.column+a,l=`${e.name}:${o}:${u}
|
|
112
|
-
`,c=r.split(/\r\n|[\n\r]/g),f=c[i];if(f.length>120){let d=Math.floor(u/80),m=u%80,g=[];for(let
|
|
113
|
-
`)}function
|
|
110
|
+
`),_=g.length,T=m+_-1,A=f.lastIndexOf(`
|
|
111
|
+
`)+1,S=c.index-A+1,L=g[g.length-1],P=_===1?S+c[0].length:L.length+1,q={startLineNumber:m,startColumn:S,endLineNumber:T,endColumn:P},Y=(c.groups??{}).label??"",I=((c.groups??{}).separator??"")!=="",U={range:q,text:Y,hasSeparatorLine:I,shouldBeInComments:!0};(U.text||U.hasSeparatorLine)&&(n.length===0||n[n.length-1].range.endLineNumber<U.range.startLineNumber)&&n.push(U),s.lastIndex=c.index+c[0].length}}return n}function cD(e){e=e.trim();let t=e.startsWith("-");return e=e.replace(oD,""),{text:e,hasSeparatorLine:t}}function $r(e){return e===O.Slash||e===O.Backslash}function af(e){return e.replace(/[\\/]/g,Ve.sep)}function dm(e){return e.indexOf("/")===-1&&(e=af(e)),/^[a-zA-Z]:(\/|$)/.test(e)&&(e="/"+e),e}function uf(e,t=Ve.sep){if(!e)return"";let n=e.length,r=e.charCodeAt(0);if($r(r)){if($r(e.charCodeAt(1))&&!$r(e.charCodeAt(2))){let s=3,o=s;for(;s<n&&!$r(e.charCodeAt(s));s++);if(o!==s&&!$r(e.charCodeAt(s+1))){for(s+=1;s<n;s++)if($r(e.charCodeAt(s)))return e.slice(0,s+1).replace(/[\\/]/g,t)}}return t}else if(fD(r)&&e.charCodeAt(1)===O.Colon)return $r(e.charCodeAt(2))?e.slice(0,2)+t:e.slice(0,2);let i=e.indexOf("://");if(i!==-1){for(i+=3;i<n;i++)if($r(e.charCodeAt(i)))return e.slice(0,i+1)}return""}function lf(e,t,n,r=Ji){if(e===t)return!0;if(!e||!t||t.length>e.length)return!1;if(n){if(!vc(e,t))return!1;if(t.length===e.length)return!0;let s=t.length;return t.charAt(t.length-1)===r&&s--,e.charAt(s)===r}return t.charAt(t.length-1)!==r&&(t+=r),e.indexOf(t)===0}function fD(e){return e>=O.A&&e<=O.Z||e>=O.a&&e<=O.z}var gD={},Nt;(function(e){e.inMemory="inmemory",e.vscode="vscode",e.internal="private",e.walkThrough="walkThrough",e.walkThroughSnippet="walkThroughSnippet",e.http="http",e.https="https",e.file="file",e.mailto="mailto",e.untitled="untitled",e.data="data",e.command="command",e.vscodeRemote="vscode-remote",e.vscodeRemoteResource="vscode-remote-resource",e.vscodeManagedRemoteResource="vscode-managed-remote-resource",e.vscodeUserData="vscode-userdata",e.vscodeCustomEditor="vscode-custom-editor",e.vscodeNotebookCell="vscode-notebook-cell",e.vscodeNotebookCellMetadata="vscode-notebook-cell-metadata",e.vscodeNotebookCellMetadataDiff="vscode-notebook-cell-metadata-diff",e.vscodeNotebookCellOutput="vscode-notebook-cell-output",e.vscodeNotebookCellOutputDiff="vscode-notebook-cell-output-diff",e.vscodeNotebookMetadata="vscode-notebook-metadata",e.vscodeInteractiveInput="vscode-interactive-input",e.vscodeSettings="vscode-settings",e.vscodeWorkspaceTrust="vscode-workspace-trust",e.vscodeTerminal="vscode-terminal",e.vscodeChatCodeBlock="vscode-chat-code-block",e.vscodeChatCodeCompareBlock="vscode-chat-code-compare-block",e.vscodeChatSesssion="vscode-chat-editor",e.vscodeChatInput="chatSessionInput",e.webviewPanel="webview-panel",e.vscodeWebview="vscode-webview",e.extension="extension",e.vscodeFileResource="vscode-file",e.tmp="tmp",e.vsls="vsls",e.vscodeSourceControl="vscode-scm",e.commentsInput="comment",e.codeSetting="code-setting",e.outputChannel="output",e.accessibleView="accessible-view"})(Nt||(Nt={}));var hD="tkn",cf=class{constructor(){this._hosts=Object.create(null),this._ports=Object.create(null),this._connectionTokens=Object.create(null),this._preferredWebSchema="http",this._delegate=null,this._serverRootPath="/"}setPreferredWebSchema(t){this._preferredWebSchema=t}setDelegate(t){this._delegate=t}setServerRootPath(t,n){this._serverRootPath=Ve.join(n??"/",dD(t))}getServerRootPath(){return this._serverRootPath}get _remoteResourcesPath(){return Ve.join(this._serverRootPath,Nt.vscodeRemoteResource)}set(t,n,r){this._hosts[t]=n,this._ports[t]=r}setConnectionToken(t,n){this._connectionTokens[t]=n}getPreferredWebSchema(){return this._preferredWebSchema}rewrite(t){if(this._delegate)try{return this._delegate(t)}catch(a){return kn(a),t}let n=t.authority,r=this._hosts[n];r&&r.indexOf(":")!==-1&&r.indexOf("[")===-1&&(r=`[${r}]`);let i=this._ports[n],s=this._connectionTokens[n],o=`path=${encodeURIComponent(t.path)}`;return typeof s=="string"&&(o+=`&${hD}=${encodeURIComponent(s)}`),at.from({scheme:_c?this._preferredWebSchema:Nt.vscodeRemoteResource,authority:`${r}:${i}`,path:this._remoteResourcesPath,query:o})}},pD=new cf;function dD(e){return`${e.quality??"oss"}-${e.commit??"dev"}`}var mD="vscode-app",ff=class e{constructor(){this.staticBrowserUris=new Bi,this.appResourcePathUrls=new Map}static{this.FALLBACK_AUTHORITY=mD}registerAppResourcePathUrl(t,n){this.appResourcePathUrls.set(t,n)}toUrl(t){let n=this.appResourcePathUrls.get(t);return typeof n=="function"&&(n=n()),new URL(n??t,globalThis.location?.href??gD.url).toString()}asBrowserUri(t){let n=this.toUri(t);return this.uriToBrowserUri(n)}uriToBrowserUri(t){return t.scheme===Nt.vscodeRemote?pD.rewrite(t):t.scheme===Nt.file&&(Lp||Ap===`${Nt.vscodeFileResource}://${e.FALLBACK_AUTHORITY}`)?t.with({scheme:Nt.vscodeFileResource,authority:t.authority||e.FALLBACK_AUTHORITY,query:null,fragment:null}):this.staticBrowserUris.get(t)??t}asFileUri(t){let n=this.toUri(t);return this.uriToFileUri(n)}uriToFileUri(t){return t.scheme===Nt.vscodeFileResource?t.with({scheme:Nt.file,authority:t.authority!==e.FALLBACK_AUTHORITY?t.authority:null,query:null,fragment:null}):t}toUri(t){if(at.isUri(t))return t;if(globalThis._VSCODE_FILE_ROOT){let n=globalThis._VSCODE_FILE_ROOT;if(/^\w[\w\d+.-]*:\/\//.test(n))return at.joinPath(at.parse(n,!0),t);let r=sd(n,t);return at.file(r)}return at.parse(this.toUrl(t))}registerStaticBrowserUri(t,n){return this.staticBrowserUris.set(t,n),Dn(()=>{this.staticBrowserUris.get(t)===n&&this.staticBrowserUris.delete(t)})}getRegisteredBrowserUris(){return this.staticBrowserUris.keys()}},xx=new ff,mm;(function(e){let t=new Map([["1",{"Cross-Origin-Opener-Policy":"same-origin"}],["2",{"Cross-Origin-Embedder-Policy":"require-corp"}],["3",{"Cross-Origin-Opener-Policy":"same-origin","Cross-Origin-Embedder-Policy":"require-corp"}]]);e.CoopAndCoep=Object.freeze(t.get("3"));let n="vscode-coi";function r(s){let o;typeof s=="string"?o=new URL(s).searchParams:s instanceof URL?o=s.searchParams:at.isUri(s)&&(o=new URL(s.toString(!0)).searchParams);let a=o?.get(n);if(a)return t.get(a)}e.getHeadersFromQuery=r;function i(s,o,a){if(!globalThis.crossOriginIsolated)return;let u=o&&a?"3":a?"2":"1";s instanceof URLSearchParams?s.set(n,u):s[n]=u}e.addSearchParam=i})(mm||(mm={}));function gr(e){return xo(e,!0)}var Po=class{constructor(t){this._ignorePathCasing=t}compare(t,n,r=!1){return t===n?0:Pp(this.getComparisonKey(t,r),this.getComparisonKey(n,r))}isEqual(t,n,r=!1){return t===n?!0:!t||!n?!1:this.getComparisonKey(t,r)===this.getComparisonKey(n,r)}getComparisonKey(t,n=!1){return t.with({path:this._ignorePathCasing(t)?t.path.toLowerCase():void 0,fragment:n?null:void 0}).toString()}ignorePathCasing(t){return this._ignorePathCasing(t)}isEqualOrParent(t,n,r=!1){if(t.scheme===n.scheme){if(t.scheme===Nt.file)return lf(gr(t),gr(n),this._ignorePathCasing(t))&&t.query===n.query&&(r||t.fragment===n.fragment);if(gm(t.authority,n.authority))return lf(t.path,n.path,this._ignorePathCasing(t),"/")&&t.query===n.query&&(r||t.fragment===n.fragment)}return!1}joinPath(t,...n){return at.joinPath(t,...n)}basenameOrAuthority(t){return _D(t)||t.authority}basename(t){return Ve.basename(t.path)}extname(t){return Ve.extname(t.path)}dirname(t){if(t.path.length===0)return t;let n;return t.scheme===Nt.file?n=at.file(ud(gr(t))).path:(n=Ve.dirname(t.path),t.authority&&n.length&&n.charCodeAt(0)!==O.Slash&&(console.error(`dirname("${t.toString})) resulted in a relative path`),n="/")),t.with({path:n})}normalizePath(t){if(!t.path.length)return t;let n;return t.scheme===Nt.file?n=at.file(id(gr(t))).path:n=Ve.normalize(t.path),t.with({path:n})}relativePath(t,n){if(t.scheme!==n.scheme||!gm(t.authority,n.authority))return;if(t.scheme===Nt.file){let s=ad(gr(t),gr(n));return Pn?af(s):s}let r=t.path||"/",i=n.path||"/";if(this._ignorePathCasing(t)){let s=0;for(let o=Math.min(r.length,i.length);s<o&&!(r.charCodeAt(s)!==i.charCodeAt(s)&&r.charAt(s).toLowerCase()!==i.charAt(s).toLowerCase());s++);r=i.substr(0,s)+r.substr(s)}return Ve.relative(r,i)}resolvePath(t,n){if(t.scheme===Nt.file){let r=at.file(od(gr(t),n));return t.with({authority:r.authority,path:r.path})}return n=dm(n),t.with({path:Ve.resolve(t.path,n)})}isAbsolutePath(t){return!!t.path&&t.path[0]==="/"}isEqualAuthority(t,n){return t===n||t!==void 0&&n!==void 0&&Sa(t,n)}hasTrailingPathSeparator(t,n=Ji){if(t.scheme===Nt.file){let r=gr(t);return r.length>uf(r).length&&r[r.length-1]===n}else{let r=t.path;return r.length>1&&r.charCodeAt(r.length-1)===O.Slash&&!/^[a-zA-Z]:(\/$|\\$)/.test(t.fsPath)}}removeTrailingPathSeparator(t,n=Ji){return _m(t,n)?t.with({path:t.path.substr(0,t.path.length-1)}):t}addTrailingPathSeparator(t,n=Ji){let r=!1;if(t.scheme===Nt.file){let i=gr(t);r=i!==void 0&&i.length===uf(i).length&&i[i.length-1]===n}else{n="/";let i=t.path;r=i.length===1&&i.charCodeAt(i.length-1)===O.Slash}return!r&&!_m(t,n)?t.with({path:t.path+"/"}):t}},Me=new Po(()=>!1),Mx=new Po(e=>e.scheme===Nt.file?!xp:!0),Ux=new Po(e=>!0),Px=Me.isEqual.bind(Me),Bx=Me.isEqualOrParent.bind(Me);Me.getComparisonKey.bind(Me);var Cx=Me.basenameOrAuthority.bind(Me),_D=Me.basename.bind(Me),Vx=Me.extname.bind(Me),$x=Me.dirname.bind(Me),jx=Me.joinPath.bind(Me),Gx=Me.normalizePath.bind(Me),qx=Me.relativePath.bind(Me),Hx=Me.resolvePath.bind(Me),Wx=Me.isAbsolutePath.bind(Me),gm=Me.isEqualAuthority.bind(Me),_m=Me.hasTrailingPathSeparator.bind(Me),zx=Me.removeTrailingPathSeparator.bind(Me),Qx=Me.addTrailingPathSeparator.bind(Me);var Em;(function(e){e.META_DATA_LABEL="label",e.META_DATA_DESCRIPTION="description",e.META_DATA_SIZE="size",e.META_DATA_MIME="mime";function t(n){let r=new Map;n.path.substring(n.path.indexOf(";")+1,n.path.lastIndexOf(";")).split(";").forEach(o=>{let[a,u]=o.split(":");a&&u&&r.set(a,u)});let s=n.path.substring(0,n.path.indexOf(";"));return s&&r.set(e.META_DATA_MIME,s),r}e.parseMetaData=t})(Em||(Em={}));var ED=Symbol("MicrotaskDelay");var DD,hf;(function(){let e=globalThis;typeof e.requestIdleCallback!="function"||typeof e.cancelIdleCallback!="function"?hf=(t,n,r)=>{Fp(()=>{if(i)return;let s=Date.now()+15;n(Object.freeze({didTimeout:!0,timeRemaining(){return Math.max(0,s-Date.now())}}))});let i=!1;return{dispose(){i||(i=!0)}}}:hf=(t,n,r)=>{let i=t.requestIdleCallback(n,typeof r=="number"?{timeout:r}:void 0),s=!1;return{dispose(){s||(s=!0,t.cancelIdleCallback(i))}}},DD=(t,n)=>hf(globalThis,t,n)})();var Dm;(function(e){e[e.Resolved=0]="Resolved",e[e.Rejected=1]="Rejected"})(Dm||(Dm={}));var bm;(function(e){async function t(r){let i,s=await Promise.all(r.map(o=>o.then(a=>a,a=>{i||(i=a)})));if(typeof i<"u")throw i;return s}e.settled=t;function n(r){return new Promise(async(i,s)=>{try{await r(i,s)}catch(o){s(o)}})}e.withAsyncBody=n})(bm||(bm={}));var yn;(function(e){e[e.Initial=0]="Initial",e[e.DoneOK=1]="DoneOK",e[e.DoneError=2]="DoneError"})(yn||(yn={}));var vm=class e{static fromArray(t){return new e(n=>{n.emitMany(t)})}static fromPromise(t){return new e(async n=>{n.emitMany(await t)})}static fromPromisesResolveOrder(t){return new e(async n=>{await Promise.all(t.map(async r=>n.emitOne(await r)))})}static merge(t){return new e(async n=>{await Promise.all(t.map(async r=>{for await(let i of r)n.emitOne(i)}))})}static{this.EMPTY=e.fromArray([])}constructor(t,n){this._state=yn.Initial,this._results=[],this._error=null,this._onReturn=n,this._onStateChanged=new bt,queueMicrotask(async()=>{let r={emitOne:i=>this.emitOne(i),emitMany:i=>this.emitMany(i),reject:i=>this.reject(i)};try{await Promise.resolve(t(r)),this.resolve()}catch(i){this.reject(i)}finally{r.emitOne=void 0,r.emitMany=void 0,r.reject=void 0}})}[Symbol.asyncIterator](){let t=0;return{next:async()=>{do{if(this._state===yn.DoneError)throw this._error;if(t<this._results.length)return{done:!1,value:this._results[t++]};if(this._state===yn.DoneOK)return{done:!0,value:void 0};await Gi.toPromise(this._onStateChanged.event)}while(!0)},return:async()=>(this._onReturn?.(),{done:!0,value:void 0})}}static map(t,n){return new e(async r=>{for await(let i of t)r.emitOne(n(i))})}map(t){return e.map(this,t)}static filter(t,n){return new e(async r=>{for await(let i of t)n(i)&&r.emitOne(i)})}filter(t){return e.filter(this,t)}static coalesce(t){return e.filter(t,n=>!!n)}coalesce(){return e.coalesce(this)}static async toPromise(t){let n=[];for await(let r of t)n.push(r);return n}toPromise(){return e.toPromise(this)}emitOne(t){this._state===yn.Initial&&(this._results.push(t),this._onStateChanged.fire())}emitMany(t){this._state===yn.Initial&&(this._results=this._results.concat(t),this._onStateChanged.fire())}resolve(){this._state===yn.Initial&&(this._state=yn.DoneOK,this._onStateChanged.fire())}reject(t){this._state===yn.Initial&&(this._state=yn.DoneError,this._error=t,this._onStateChanged.fire())}};var lu=class{constructor(t){this.values=t,this.prefixSum=new Uint32Array(t.length),this.prefixSumValidIndex=new Int32Array(1),this.prefixSumValidIndex[0]=-1}getCount(){return this.values.length}insertValues(t,n){t=Zr(t);let r=this.values,i=this.prefixSum,s=n.length;return s===0?!1:(this.values=new Uint32Array(r.length+s),this.values.set(r.subarray(0,t),0),this.values.set(r.subarray(t),t+s),this.values.set(n,t),t-1<this.prefixSumValidIndex[0]&&(this.prefixSumValidIndex[0]=t-1),this.prefixSum=new Uint32Array(this.values.length),this.prefixSumValidIndex[0]>=0&&this.prefixSum.set(i.subarray(0,this.prefixSumValidIndex[0]+1)),!0)}setValue(t,n){return t=Zr(t),n=Zr(n),this.values[t]===n?!1:(this.values[t]=n,t-1<this.prefixSumValidIndex[0]&&(this.prefixSumValidIndex[0]=t-1),!0)}removeValues(t,n){t=Zr(t),n=Zr(n);let r=this.values,i=this.prefixSum;if(t>=r.length)return!1;let s=r.length-t;return n>=s&&(n=s),n===0?!1:(this.values=new Uint32Array(r.length-n),this.values.set(r.subarray(0,t),0),this.values.set(r.subarray(t+n),t),this.prefixSum=new Uint32Array(this.values.length),t-1<this.prefixSumValidIndex[0]&&(this.prefixSumValidIndex[0]=t-1),this.prefixSumValidIndex[0]>=0&&this.prefixSum.set(i.subarray(0,this.prefixSumValidIndex[0]+1)),!0)}getTotalSum(){return this.values.length===0?0:this._getPrefixSum(this.values.length-1)}getPrefixSum(t){return t<0?0:(t=Zr(t),this._getPrefixSum(t))}_getPrefixSum(t){if(t<=this.prefixSumValidIndex[0])return this.prefixSum[t];let n=this.prefixSumValidIndex[0]+1;n===0&&(this.prefixSum[0]=this.values[0],n++),t>=this.values.length&&(t=this.values.length-1);for(let r=n;r<=t;r++)this.prefixSum[r]=this.prefixSum[r-1]+this.values[r];return this.prefixSumValidIndex[0]=Math.max(this.prefixSumValidIndex[0],t),this.prefixSum[t]}getIndexOf(t){t=Math.floor(t),this.getTotalSum();let n=0,r=this.values.length-1,i=0,s=0,o=0;for(;n<=r;)if(i=n+(r-n)/2|0,s=this.prefixSum[i],o=s-this.values[i],t<o)r=i-1;else if(t>=s)n=i+1;else break;return new pf(i,t-o)}};var pf=class{constructor(t,n){this.index=t,this.remainder=n,this._prefixSumIndexOfResultBrand=void 0,this.index=t,this.remainder=n}};var cu=class{constructor(t,n,r,i){this._uri=t,this._lines=n,this._eol=r,this._versionId=i,this._lineStarts=null,this._cachedTextValue=null}dispose(){this._lines.length=0}get version(){return this._versionId}getText(){return this._cachedTextValue===null&&(this._cachedTextValue=this._lines.join(this._eol)),this._cachedTextValue}onEvents(t){t.eol&&t.eol!==this._eol&&(this._eol=t.eol,this._lineStarts=null);let n=t.changes;for(let r of n)this._acceptDeleteRange(r.range),this._acceptInsertText(new me(r.range.startLineNumber,r.range.startColumn),r.text);this._versionId=t.versionId,this._cachedTextValue=null}_ensureLineStarts(){if(!this._lineStarts){let t=this._eol.length,n=this._lines.length,r=new Uint32Array(n);for(let i=0;i<n;i++)r[i]=this._lines[i].length+t;this._lineStarts=new lu(r)}}_setLineText(t,n){this._lines[t]=n,this._lineStarts&&this._lineStarts.setValue(t,this._lines[t].length+this._eol.length)}_acceptDeleteRange(t){if(t.startLineNumber===t.endLineNumber){if(t.startColumn===t.endColumn)return;this._setLineText(t.startLineNumber-1,this._lines[t.startLineNumber-1].substring(0,t.startColumn-1)+this._lines[t.startLineNumber-1].substring(t.endColumn-1));return}this._setLineText(t.startLineNumber-1,this._lines[t.startLineNumber-1].substring(0,t.startColumn-1)+this._lines[t.endLineNumber-1].substring(t.endColumn-1)),this._lines.splice(t.startLineNumber,t.endLineNumber-t.startLineNumber),this._lineStarts&&this._lineStarts.removeValues(t.startLineNumber,t.endLineNumber-t.startLineNumber)}_acceptInsertText(t,n){if(n.length===0)return;let r=Fa(n);if(r.length===1){this._setLineText(t.lineNumber-1,this._lines[t.lineNumber-1].substring(0,t.column-1)+r[0]+this._lines[t.lineNumber-1].substring(t.column-1));return}r[r.length-1]+=this._lines[t.lineNumber-1].substring(t.column-1),this._setLineText(t.lineNumber-1,this._lines[t.lineNumber-1].substring(0,t.column-1)+r[0]);let i=new Uint32Array(r.length-1);for(let s=1;s<r.length;s++)this._lines.splice(t.lineNumber+s-1,0,r[s]),i[s-1]=r[s].length+this._eol.length;this._lineStarts&&this._lineStarts.insertValues(t.lineNumber,i)}};var TL=60*1e3,bD="workerTextModelSync";var fu=class{constructor(){this._models=Object.create(null)}bindToServer(t){t.setChannel(bD,this)}getModel(t){return this._models[t]}getModels(){let t=[];return Object.keys(this._models).forEach(n=>t.push(this._models[n])),t}$acceptNewModel(t){this._models[t.url]=new df(at.parse(t.url),t.lines,t.EOL,t.versionId)}$acceptModelChanged(t,n){if(!this._models[t])return;this._models[t].onEvents(n)}$acceptRemovedModel(t){this._models[t]&&delete this._models[t]}},df=class extends cu{get uri(){return this._uri}get eol(){return this._eol}getValue(){return this.getText()}findMatches(t){let n=[];for(let r=0;r<this._lines.length;r++){let i=this._lines[r],s=this.offsetAt(new me(r+1,1)),o=i.matchAll(t);for(let a of o)(a.index||a.index===0)&&(a.index=a.index+s),n.push(a)}return n}getLinesContent(){return this._lines.slice(0)}getLineCount(){return this._lines.length}getLineContent(t){return this._lines[t-1]}getWordAtPosition(t,n){let r=Ao(t.column,Yc(n),this._lines[t.lineNumber-1],0);return r?new oe(t.lineNumber,r.startColumn,t.lineNumber,r.endColumn):null}getWordUntilPosition(t,n){let r=this.getWordAtPosition(t,n);return r?{word:this._lines[t.lineNumber-1].substring(r.startColumn-1,t.column-1),startColumn:r.startColumn,endColumn:t.column}:{word:"",startColumn:t.column,endColumn:t.column}}words(t){let n=this._lines,r=this._wordenize.bind(this),i=0,s="",o=0,a=[];return{*[Symbol.iterator](){for(;;)if(o<a.length){let u=s.substring(a[o].start,a[o].end);o+=1,yield u}else if(i<n.length)s=n[i],a=r(s,t),o=0,i+=1;else break}}}getLineWords(t,n){let r=this._lines[t-1],i=this._wordenize(r,n),s=[];for(let o of i)s.push({word:r.substring(o.start,o.end),startColumn:o.start+1,endColumn:o.end+1});return s}_wordenize(t,n){let r=[],i;for(n.lastIndex=0;(i=n.exec(t))&&i[0].length!==0;)r.push({start:i.index,end:i.index+i[0].length});return r}getValueInRange(t){if(t=this._validateRange(t),t.startLineNumber===t.endLineNumber)return this._lines[t.startLineNumber-1].substring(t.startColumn-1,t.endColumn-1);let n=this._eol,r=t.startLineNumber-1,i=t.endLineNumber-1,s=[];s.push(this._lines[r].substring(t.startColumn-1));for(let o=r+1;o<i;o++)s.push(this._lines[o]);return s.push(this._lines[i].substring(0,t.endColumn-1)),s.join(n)}offsetAt(t){return t=this._validatePosition(t),this._ensureLineStarts(),this._lineStarts.getPrefixSum(t.lineNumber-2)+(t.column-1)}positionAt(t){t=Math.floor(t),t=Math.max(0,t),this._ensureLineStarts();let n=this._lineStarts.getIndexOf(t),r=this._lines[n.index].length;return{lineNumber:1+n.index,column:1+Math.min(n.remainder,r)}}_validateRange(t){let n=this._validatePosition({lineNumber:t.startLineNumber,column:t.startColumn}),r=this._validatePosition({lineNumber:t.endLineNumber,column:t.endColumn});return n.lineNumber!==t.startLineNumber||n.column!==t.startColumn||r.lineNumber!==t.endLineNumber||r.column!==t.endColumn?{startLineNumber:n.lineNumber,startColumn:n.column,endLineNumber:r.lineNumber,endColumn:r.column}:t}_validatePosition(t){if(!me.isIPosition(t))throw new Error("bad position");let{lineNumber:n,column:r}=t,i=!1;if(n<1)n=1,r=1,i=!0;else if(n>this._lines.length)n=this._lines.length,r=this._lines[n-1].length+1,i=!0;else{let s=this._lines[n-1].length+1;r<1?(r=1,i=!0):r>s&&(r=s,i=!0)}return i?{lineNumber:n,column:r}:t}};var Bo=class{constructor(t){this.replacements=t;let n=-1;for(let r of t){if(!(r.replaceRange.start>=n))throw new Ce(`Edits must be disjoint and sorted. Found ${r} after ${n}`);n=r.replaceRange.endExclusive}}equals(t){if(this.replacements.length!==t.replacements.length)return!1;for(let n=0;n<this.replacements.length;n++)if(!this.replacements[n].equals(t.replacements[n]))return!1;return!0}toString(){return`[${this.replacements.map(n=>n.toString()).join(", ")}]`}normalize(){let t=[],n;for(let r of this.replacements)if(!(r.getNewLength()===0&&r.replaceRange.length===0)){if(n&&n.replaceRange.endExclusive===r.replaceRange.start){let i=n.tryJoinTouching(r);if(i){n=i;continue}}n&&t.push(n),n=r}return n&&t.push(n),this._createNew(t)}compose(t){let n=this.normalize(),r=t.normalize();if(n.isEmpty())return r;if(r.isEmpty())return n;let i=[...n.replacements],s=[],o=0;for(let a of r.replacements){for(;;){let f=i[0];if(!f||f.replaceRange.start+o+f.getNewLength()>=a.replaceRange.start)break;i.shift(),s.push(f),o+=f.getNewLength()-f.replaceRange.length}let u=o,l,c;for(;;){let f=i[0];if(!f||f.replaceRange.start+o>a.replaceRange.endExclusive)break;l||(l=f),c=f,i.shift(),o+=f.getNewLength()-f.replaceRange.length}if(!l)s.push(a.delta(-o));else{let f=Math.min(l.replaceRange.start,a.replaceRange.start-u),d=a.replaceRange.start-(l.replaceRange.start+u);if(d>0){let T=l.slice(le.emptyAt(f),new le(0,d));s.push(T)}if(!c)throw new Ce("Invariant violation: lastIntersecting is undefined");let m=c.replaceRange.endExclusive+o-a.replaceRange.endExclusive;if(m>0){let T=c.slice(le.ofStartAndLength(c.replaceRange.endExclusive,0),new le(c.getNewLength()-m,c.getNewLength()));i.unshift(T),o-=T.getNewLength()-T.replaceRange.length}let g=new le(f,a.replaceRange.endExclusive-o),_=a.slice(g,new le(0,a.getNewLength()));s.push(_)}}for(;;){let a=i.shift();if(!a)break;s.push(a)}return this._createNew(s).normalize()}decomposeSplit(t){let n=[],r=[],i=0;for(let s of this.replacements)t(s)?(n.push(s),i+=s.getNewLength()-s.replaceRange.length):r.push(s.slice(s.replaceRange.delta(i),new le(0,s.getNewLength())));return{e1:this._createNew(n),e2:this._createNew(r)}}getNewRanges(){let t=[],n=0;for(let r of this.replacements)t.push(le.ofStartAndLength(r.replaceRange.start+n,r.getNewLength())),n+=r.getLengthDelta();return t}getJoinedReplaceRange(){if(this.replacements.length!==0)return this.replacements[0].replaceRange.join(this.replacements.at(-1).replaceRange)}isEmpty(){return this.replacements.length===0}getLengthDelta(){return ap(this.replacements,t=>t.getLengthDelta())}getNewDataLength(t){return t+this.getLengthDelta()}applyToOffset(t){let n=0;for(let r of this.replacements)if(r.replaceRange.start<=t){if(t<r.replaceRange.endExclusive)return r.replaceRange.start+n;n+=r.getNewLength()-r.replaceRange.length}else break;return t+n}applyToOffsetRange(t){return new le(this.applyToOffset(t.start),this.applyToOffset(t.endExclusive))}applyInverseToOffset(t){let n=0;for(let r of this.replacements){let i=r.getNewLength();if(r.replaceRange.start<=t-n){if(t-n<r.replaceRange.start+i)return r.replaceRange.start;n+=i-r.replaceRange.length}else break}return t-n}applyToOffsetOrUndefined(t){let n=0;for(let r of this.replacements)if(r.replaceRange.start<=t){if(t<r.replaceRange.endExclusive)return;n+=r.getNewLength()-r.replaceRange.length}else break;return t+n}applyToOffsetRangeOrUndefined(t){let n=this.applyToOffsetOrUndefined(t.start);if(n===void 0)return;let r=this.applyToOffsetOrUndefined(t.endExclusive);if(r!==void 0)return new le(n,r)}},hu=class{constructor(t){this.replaceRange=t}delta(t){return this.slice(this.replaceRange.delta(t),new le(0,this.getNewLength()))}getLengthDelta(){return this.getNewLength()-this.replaceRange.length}toString(){return`{ ${this.replaceRange.toString()} -> ${this.getNewLength()} }`}get isEmpty(){return this.getNewLength()===0&&this.replaceRange.length===0}getRangeAfterReplace(){return new le(this.replaceRange.start,this.replaceRange.start+this.getNewLength())}},Nm=class e extends Bo{static{this.empty=new e([])}static create(t){return new e(t)}static single(t){return new e([t])}_createNew(t){return new e(t)}};var pu=class extends Bo{get TReplacement(){throw new Error("TReplacement is not defined for BaseStringEdit")}static composeOrUndefined(t){if(t.length===0)return;let n=t[0];for(let r=1;r<t.length;r++)n=n.compose(t[r]);return n}apply(t){let n=[],r=0;for(let i of this.replacements)n.push(t.substring(r,i.replaceRange.start)),n.push(i.newText),r=i.replaceRange.endExclusive;return n.push(t.substring(r)),n.join("")}inverse(t){let n=[],r=0;for(let i of this.replacements)n.push(new $t(le.ofStartAndLength(i.replaceRange.start+r,i.newText.length),t.substring(i.replaceRange.start,i.replaceRange.endExclusive))),r+=i.newText.length-i.replaceRange.length;return new wn(n)}tryRebase(t,n){let r=[],i=0,s=0,o=0;for(;s<this.replacements.length||i<t.replacements.length;){let a=t.replacements[i],u=this.replacements[s];if(u)if(!a)r.push(new $t(u.replaceRange.delta(o),u.newText)),s++;else if(u.replaceRange.intersectsOrTouches(a.replaceRange)){if(s++,n)return}else u.replaceRange.start<a.replaceRange.start?(r.push(new $t(u.replaceRange.delta(o),u.newText)),s++):(i++,o+=a.newText.length-a.replaceRange.length);else break}return new wn(r)}toJson(){return this.replacements.map(t=>({txt:t.newText,pos:t.replaceRange.start,len:t.replaceRange.length}))}isNeutralOn(t){return this.replacements.every(n=>n.isNeutralOn(t))}removeCommonSuffixPrefix(t){let n=[];for(let r of this.replacements){let i=r.removeCommonSuffixPrefix(t);i.isEmpty||n.push(i)}return new wn(n)}normalizeEOL(t){return new wn(this.replacements.map(n=>n.normalizeEOL(t)))}normalizeOnSource(t){let n=this.apply(t),i=$t.replace(le.ofLength(t.length),n).removeCommonSuffixAndPrefix(t);return i.isEmpty?wn.empty:i.toEdit()}removeCommonSuffixAndPrefix(t){return this._createNew(this.replacements.map(n=>n.removeCommonSuffixAndPrefix(t))).normalize()}applyOnText(t){return new Cn(this.apply(t.value))}mapData(t){return new mf(this.replacements.map(n=>new os(n.replaceRange,n.newText,t(n))))}},du=class extends hu{constructor(t,n){super(t),this.newText=n}getNewLength(){return this.newText.length}toString(){return`${this.replaceRange} -> "${this.newText}"`}replace(t){return t.substring(0,this.replaceRange.start)+this.newText+t.substring(this.replaceRange.endExclusive)}isNeutralOn(t){return this.newText===t.substring(this.replaceRange.start,this.replaceRange.endExclusive)}removeCommonSuffixPrefix(t){let n=t.substring(this.replaceRange.start,this.replaceRange.endExclusive),r=Yi(n,this.newText),i=Math.min(n.length-r,this.newText.length-r,Eo(n,this.newText)),s=new le(this.replaceRange.start+r,this.replaceRange.endExclusive-i),o=this.newText.substring(r,this.newText.length-i);return new $t(s,o)}normalizeEOL(t){let n=this.newText.replace(/\r\n|\n/g,t);return new $t(this.replaceRange,n)}removeCommonSuffixAndPrefix(t){return this.removeCommonSuffix(t).removeCommonPrefix(t)}removeCommonPrefix(t){let n=this.replaceRange.substring(t),r=Yi(n,this.newText);return r===0?this:this.slice(this.replaceRange.deltaStart(r),new le(r,this.newText.length))}removeCommonSuffix(t){let n=this.replaceRange.substring(t),r=Eo(n,this.newText);return r===0?this:this.slice(this.replaceRange.deltaEnd(-r),new le(0,this.newText.length-r))}toEdit(){return new wn([this])}},wn=class e extends pu{static{this.empty=new e([])}static create(t){return new e(t)}static single(t){return new e([t])}static replace(t,n){return new e([new $t(t,n)])}static insert(t,n){return new e([new $t(le.emptyAt(t),n)])}static delete(t){return new e([new $t(t,"")])}static fromJson(t){return new e(t.map($t.fromJson))}static compose(t){if(t.length===0)return e.empty;let n=t[0];for(let r=1;r<t.length;r++)n=n.compose(t[r]);return n}static composeSequentialReplacements(t){let n=e.empty,r=[];for(let i of t){let s=r.at(-1);!s||i.replaceRange.isBefore(s.replaceRange)?r.push(i):(n=n.compose(e.create(r.reverse())),r=[i])}return n=n.compose(e.create(r.reverse())),n}constructor(t){super(t)}_createNew(t){return new e(t)}},$t=class e extends du{static insert(t,n){return new e(le.emptyAt(t),n)}static replace(t,n){return new e(t,n)}static delete(t){return new e(t,"")}static fromJson(t){return new e(le.ofStartAndLength(t.pos,t.len),t.txt)}equals(t){return this.replaceRange.equals(t.replaceRange)&&this.newText===t.newText}tryJoinTouching(t){return new e(this.replaceRange.joinRightTouching(t.replaceRange),this.newText+t.newText)}slice(t,n){return new e(t,n.substring(this.newText))}};var mf=class e extends pu{static{this.empty=new e([])}static create(t){return new e(t)}static single(t){return new e([t])}static replace(t,n,r){return new e([new os(t,n,r)])}static insert(t,n,r){return new e([new os(le.emptyAt(t),n,r)])}static delete(t,n){return new e([new os(t,"",n)])}static compose(t){if(t.length===0)return e.empty;let n=t[0];for(let r=1;r<t.length;r++)n=n.compose(t[r]);return n}constructor(t){super(t)}_createNew(t){return new e(t)}toStringEdit(){return new wn(this.replacements.map(t=>new $t(t.replaceRange,t.newText)))}},os=class e extends du{static insert(t,n,r){return new e(le.emptyAt(t),n,r)}static replace(t,n,r){return new e(t,n,r)}static delete(t,n){return new e(t,"",n)}constructor(t,n,r){super(t,n),this.data=r}equals(t){return this.replaceRange.equals(t.replaceRange)&&this.newText===t.newText&&this.data===t.data}tryJoinTouching(t){let n=this.data.join(t.data);if(n!==void 0)return new e(this.replaceRange.joinRightTouching(t.replaceRange),this.newText+t.newText,n)}slice(t,n){return new e(t,n?n.substring(this.newText):this.newText,this.data)}};z0({StringEdit:wn,StringReplacement:$t,TextReplacement:nn,TextEdit:oi,TextLength:Bn});var as=class e{constructor(t=null){this._foreignModule=t,this._workerTextModelSyncServer=new fu}dispose(){}async $ping(){return"pong"}_getModel(t){return this._workerTextModelSyncServer.getModel(t)}getModels(){return this._workerTextModelSyncServer.getModels()}$acceptNewModel(t){this._workerTextModelSyncServer.$acceptNewModel(t)}$acceptModelChanged(t,n){this._workerTextModelSyncServer.$acceptModelChanged(t,n)}$acceptRemovedModel(t){this._workerTextModelSyncServer.$acceptRemovedModel(t)}async $computeUnicodeHighlights(t,n,r){let i=this._getModel(t);return i?Ja.computeUnicodeHighlights(i,n,r):{ranges:[],hasMore:!1,ambiguousCharacterCount:0,invisibleCharacterCount:0,nonBasicAsciiCharacterCount:0}}async $findSectionHeaders(t,n){let r=this._getModel(t);return r?pm(r,n):[]}async $computeDiff(t,n,r,i){let s=this._getModel(t),o=this._getModel(n);return!s||!o?null:e.computeDiff(s,o,r,i)}static computeDiff(t,n,r,i){let s=i==="advanced"?is.getDefault():is.getLegacy(),o=t.getLinesContent(),a=n.getLinesContent(),u=s.computeDiff(o,a,r),l=u.changes.length>0?!1:this._modelsAreIdentical(t,n);function c(f){return f.map(d=>[d.original.startLineNumber,d.original.endLineNumberExclusive,d.modified.startLineNumber,d.modified.endLineNumberExclusive,d.innerChanges?.map(m=>[m.originalRange.startLineNumber,m.originalRange.startColumn,m.originalRange.endLineNumber,m.originalRange.endColumn,m.modifiedRange.startLineNumber,m.modifiedRange.startColumn,m.modifiedRange.endLineNumber,m.modifiedRange.endColumn])])}return{identical:l,quitEarly:u.hitTimeout,changes:c(u.changes),moves:u.moves.map(f=>[f.lineRangeMapping.original.startLineNumber,f.lineRangeMapping.original.endLineNumberExclusive,f.lineRangeMapping.modified.startLineNumber,f.lineRangeMapping.modified.endLineNumberExclusive,c(f.changes)])}}static _modelsAreIdentical(t,n){let r=t.getLineCount(),i=n.getLineCount();if(r!==i)return!1;for(let s=1;s<=r;s++){let o=t.getLineContent(s),a=n.getLineContent(s);if(o!==a)return!1}return!0}async $computeDirtyDiff(t,n,r){let i=this._getModel(t),s=this._getModel(n);if(!i||!s)return null;let o=i.getLinesContent(),a=s.getLinesContent();return new Ro(o,a,{shouldComputeCharChanges:!1,shouldPostProcessCharChanges:!1,shouldIgnoreTrimWhitespace:r,shouldMakePrettyDiff:!0,maxComputationTime:1e3}).computeDiff().changes}$computeStringDiff(t,n,r,i){let s=i==="advanced"?is.getDefault():is.getLegacy(),o=new Cn(t),a=o.getLines(),u=new Cn(n),l=u.getLines(),c=s.computeDiff(a,l,{ignoreTrimWhitespace:!1,maxComputationTimeMs:r.maxComputationTimeMs,computeMoves:!1,extendToSubwords:!1}),f=Tn.toTextEdit(c.changes,u);return o.getTransformer().getStringEdit(f).toJson()}static{this._diffLimit=1e5}async $computeMoreMinimalEdits(t,n,r){let i=this._getModel(t);if(!i)return n;let s=[],o;n=n.slice(0).sort((u,l)=>{if(u.range&&l.range)return oe.compareRangesUsingStarts(u.range,l.range);let c=u.range?0:1,f=l.range?0:1;return c-f});let a=0;for(let u=1;u<n.length;u++)oe.getEndPosition(n[a].range).equals(oe.getStartPosition(n[u].range))?(n[a].range=oe.fromPositions(oe.getStartPosition(n[a].range),oe.getEndPosition(n[u].range)),n[a].text+=n[u].text):(a++,n[a]=n[u]);n.length=a+1;for(let{range:u,text:l,eol:c}of n){if(typeof c=="number"&&(o=c),oe.isEmpty(u)&&!l)continue;let f=i.getValueInRange(u);if(l=l.replace(/\r\n|\n|\r/g,i.eol),f===l)continue;if(Math.max(l.length,f.length)>e._diffLimit){s.push({range:u,text:l});continue}let d=Yp(f,l,r),m=i.offsetAt(oe.lift(u).getStartPosition());for(let g of d){let _=i.positionAt(m+g.originalStart),T=i.positionAt(m+g.originalStart+g.originalLength),A={text:l.substr(g.modifiedStart,g.modifiedLength),range:{startLineNumber:_.lineNumber,startColumn:_.column,endLineNumber:T.lineNumber,endColumn:T.column}};i.getValueInRange(A.range)!==A.text&&s.push(A)}}return typeof o=="number"&&s.push({eol:o,text:"",range:{startLineNumber:0,startColumn:0,endLineNumber:0,endColumn:0}}),s}$computeHumanReadableDiff(t,n,r){let i=this._getModel(t);if(!i)return n;let s=[],o;n=n.slice(0).sort((a,u)=>{if(a.range&&u.range)return oe.compareRangesUsingStarts(a.range,u.range);let l=a.range?0:1,c=u.range?0:1;return l-c});for(let{range:a,text:u,eol:l}of n){let _=function(A,S){return new me(A.lineNumber+S.lineNumber-1,S.lineNumber===1?A.column+S.column-1:S.column)},T=function(A,S){let L=[];for(let P=S.startLineNumber;P<=S.endLineNumber;P++){let q=A[P-1];P===S.startLineNumber&&P===S.endLineNumber?L.push(q.substring(S.startColumn-1,S.endColumn-1)):P===S.startLineNumber?L.push(q.substring(S.startColumn-1)):P===S.endLineNumber?L.push(q.substring(0,S.endColumn-1)):L.push(q)}return L};if(typeof l=="number"&&(o=l),oe.isEmpty(a)&&!u)continue;let c=i.getValueInRange(a);if(u=u.replace(/\r\n|\n|\r/g,i.eol),c===u)continue;if(Math.max(u.length,c.length)>e._diffLimit){s.push({range:a,text:u});continue}let f=c.split(/\r\n|\n|\r/),d=u.split(/\r\n|\n|\r/),m=is.getDefault().computeDiff(f,d,r),g=oe.lift(a).getStartPosition();for(let A of m.changes)if(A.innerChanges)for(let S of A.innerChanges)s.push({range:oe.fromPositions(_(g,S.originalRange.getStartPosition()),_(g,S.originalRange.getEndPosition())),text:T(d,S.modifiedRange).join(i.eol)});else throw new Ce("The experimental diff algorithm always produces inner changes")}return typeof o=="number"&&s.push({eol:o,text:"",range:{startLineNumber:0,startColumn:0,endLineNumber:0,endColumn:0}}),s}async $computeLinks(t){let n=this._getModel(t);return n?Jp(n):null}async $computeDefaultDocumentColors(t){let n=this._getModel(t);return n?fm(n):null}static{this._suggestionsLimit=1e4}async $textualSuggest(t,n,r,i){let s=new ji,o=new RegExp(r,i),a=new Set;e:for(let u of t){let l=this._getModel(u);if(l){for(let c of l.words(o))if(!(c===n||!isNaN(Number(c)))&&(a.add(c),a.size>e._suggestionsLimit))break e}}return{words:Array.from(a),duration:s.elapsed()}}async $computeWordRanges(t,n,r,i){let s=this._getModel(t);if(!s)return Object.create(null);let o=new RegExp(r,i),a=Object.create(null);for(let u=n.startLineNumber;u<n.endLineNumber;u++){let l=s.getLineWords(u,o);for(let c of l){if(!isNaN(Number(c.word)))continue;let f=a[c.word];f||(f=[],a[c.word]=f),f.push({startLineNumber:u,startColumn:c.startColumn,endLineNumber:u,endColumn:c.endColumn})}}return a}async $navigateValueSet(t,n,r,i,s){let o=this._getModel(t);if(!o)return null;let a=new RegExp(i,s);n.startColumn===n.endColumn&&(n={startLineNumber:n.startLineNumber,startColumn:n.startColumn,endLineNumber:n.endLineNumber,endColumn:n.endColumn+1});let u=o.getValueInRange(n),l=o.getWordAtPosition({lineNumber:n.startLineNumber,column:n.startColumn},a);if(!l)return null;let c=o.getValueInRange(l);return Pa.INSTANCE.navigateValueSet(n,u,l,c,r)}$fmr(t,n){if(!this._foreignModule||typeof this._foreignModule[t]!="function")return Promise.reject(new Error("Missing requestHandler or method: "+t));try{return Promise.resolve(this._foreignModule[t].apply(this._foreignModule,n))}catch(r){return Promise.reject(r)}}};typeof importScripts=="function"&&(globalThis.monaco=O0());Gp(()=>new as(null));var mu=class e{static{this.CHANNEL_NAME="editorWorkerHost"}static getChannel(t){return t.getChannel(e.CHANNEL_NAME)}static setChannel(t,n){t.setChannel(e.CHANNEL_NAME,n)}};function Tm(e){let t=Sc(()=>new as(e)),n=mu.getChannel(t);return{host:new Proxy({},{get(i,s,o){if(typeof s!="string")throw new Error("Not supported");return(...a)=>n.$fhr(s,a)}}),getMirrorModels:()=>t.requestHandler.getModels()}}function ym(e){let t,n=new Proxy({},{get(i,s){if(s==="$initialize")return async a=>{t||(t=e(r,a))};let o=t?.[s];return typeof o=="function"?o.bind(t):o}}),r=Tm(n)}function Te(e,t){if(!!!e)throw new Error(t)}function Ut(e){return typeof e=="object"&&e!==null}function tt(e,t){if(!!!e)throw new Error(t??"Unexpected invariant triggered.")}var vD=/\r\n|[\n\r]/g;function us(e,t){let n=0,r=1;for(let i of e.body.matchAll(vD)){if(typeof i.index=="number"||tt(!1),i.index>=t)break;n=i.index+i[0].length,r+=1}return{line:r,column:t+1-n}}function gf(e){return gu(e.source,us(e.source,e.start))}function gu(e,t){let n=e.locationOffset.column-1,r="".padStart(n)+e.body,i=t.line-1,s=e.locationOffset.line-1,o=t.line+s,a=t.line===1?n:0,u=t.column+a,l=`${e.name}:${o}:${u}
|
|
112
|
+
`,c=r.split(/\r\n|[\n\r]/g),f=c[i];if(f.length>120){let d=Math.floor(u/80),m=u%80,g=[];for(let _=0;_<f.length;_+=80)g.push(f.slice(_,_+80));return l+wm([[`${o} |`,g[0]],...g.slice(1,d+1).map(_=>["|",_]),["|","^".padStart(m)],["|",g[d+1]]])}return l+wm([[`${o-1} |`,c[i-1]],[`${o} |`,f],["|","^".padStart(u)],[`${o+1} |`,c[i+1]]])}function wm(e){let t=e.filter(([r,i])=>i!==void 0),n=Math.max(...t.map(([r])=>r.length));return t.map(([r,i])=>r.padStart(n)+(i?" "+i:"")).join(`
|
|
113
|
+
`)}function ND(e){let t=e[0];return t==null||"kind"in t||"length"in t?{nodes:t,source:e[1],positions:e[2],path:e[3],originalError:e[4],extensions:e[5]}:t}var C=class e extends Error{constructor(t,...n){var r,i,s;let{nodes:o,source:a,positions:u,path:l,originalError:c,extensions:f}=ND(n);super(t),this.name="GraphQLError",this.path=l??void 0,this.originalError=c??void 0,this.nodes=xm(Array.isArray(o)?o:o?[o]:void 0);let d=xm((r=this.nodes)===null||r===void 0?void 0:r.map(g=>g.loc).filter(g=>g!=null));this.source=a??(d==null||(i=d[0])===null||i===void 0?void 0:i.source),this.positions=u??d?.map(g=>g.start),this.locations=u&&a?u.map(g=>us(a,g)):d?.map(g=>us(g.source,g.start));let m=Ut(c?.extensions)?c?.extensions:void 0;this.extensions=(s=f??m)!==null&&s!==void 0?s:Object.create(null),Object.defineProperties(this,{message:{writable:!0,enumerable:!0},name:{enumerable:!1},nodes:{enumerable:!1},source:{enumerable:!1},positions:{enumerable:!1},originalError:{enumerable:!1}}),c!=null&&c.stack?Object.defineProperty(this,"stack",{value:c.stack,writable:!0,configurable:!0}):Error.captureStackTrace?Error.captureStackTrace(this,e):Object.defineProperty(this,"stack",{value:Error().stack,writable:!0,configurable:!0})}get[Symbol.toStringTag](){return"GraphQLError"}toString(){let t=this.message;if(this.nodes)for(let n of this.nodes)n.loc&&(t+=`
|
|
114
114
|
|
|
115
|
-
`+
|
|
115
|
+
`+gf(n.loc));else if(this.source&&this.locations)for(let n of this.locations)t+=`
|
|
116
116
|
|
|
117
|
-
`+gu(this.source,n);return t}toJSON(){let t={message:this.message};return this.locations!=null&&(t.locations=this.locations),this.path!=null&&(t.path=this.path),this.extensions!=null&&Object.keys(this.extensions).length>0&&(t.extensions=this.extensions),t}};function
|
|
117
|
+
`+gu(this.source,n);return t}toJSON(){let t={message:this.message};return this.locations!=null&&(t.locations=this.locations),this.path!=null&&(t.path=this.path),this.extensions!=null&&Object.keys(this.extensions).length>0&&(t.extensions=this.extensions),t}};function xm(e){return e===void 0||e.length===0?void 0:e}function lt(e,t,n){return new C(`Syntax Error: ${n}`,{source:e,positions:[t]})}var Co=class{constructor(t,n,r){this.start=t.start,this.end=n.end,this.startToken=t,this.endToken=n,this.source=r}get[Symbol.toStringTag](){return"Location"}toJSON(){return{start:this.start,end:this.end}}},ls=class{constructor(t,n,r,i,s,o){this.kind=t,this.start=n,this.end=r,this.line=i,this.column=s,this.value=o,this.prev=null,this.next=null}get[Symbol.toStringTag](){return"Token"}toJSON(){return{kind:this.kind,value:this.value,line:this.line,column:this.column}}},_f={Name:[],Document:["definitions"],OperationDefinition:["name","variableDefinitions","directives","selectionSet"],VariableDefinition:["variable","type","defaultValue","directives"],Variable:["name"],SelectionSet:["selections"],Field:["alias","name","arguments","directives","selectionSet"],Argument:["name","value"],FragmentSpread:["name","directives"],InlineFragment:["typeCondition","directives","selectionSet"],FragmentDefinition:["name","variableDefinitions","typeCondition","directives","selectionSet"],IntValue:[],FloatValue:[],StringValue:[],BooleanValue:[],NullValue:[],EnumValue:[],ListValue:["values"],ObjectValue:["fields"],ObjectField:["name","value"],Directive:["name","arguments"],NamedType:["name"],ListType:["type"],NonNullType:["type"],SchemaDefinition:["description","directives","operationTypes"],OperationTypeDefinition:["type"],ScalarTypeDefinition:["description","name","directives"],ObjectTypeDefinition:["description","name","interfaces","directives","fields"],FieldDefinition:["description","name","arguments","type","directives"],InputValueDefinition:["description","name","type","defaultValue","directives"],InterfaceTypeDefinition:["description","name","interfaces","directives","fields"],UnionTypeDefinition:["description","name","directives","types"],EnumTypeDefinition:["description","name","directives","values"],EnumValueDefinition:["description","name","directives"],InputObjectTypeDefinition:["description","name","directives","fields"],DirectiveDefinition:["description","name","arguments","locations"],SchemaExtension:["directives","operationTypes"],ScalarTypeExtension:["name","directives"],ObjectTypeExtension:["name","interfaces","directives","fields"],InterfaceTypeExtension:["name","interfaces","directives","fields"],UnionTypeExtension:["name","directives","types"],EnumTypeExtension:["name","directives","values"],InputObjectTypeExtension:["name","directives","fields"]},TD=new Set(Object.keys(_f));function Vo(e){let t=e?.kind;return typeof t=="string"&&TD.has(t)}var gt;(function(e){e.QUERY="query",e.MUTATION="mutation",e.SUBSCRIPTION="subscription"})(gt||(gt={}));var se;(function(e){e.QUERY="QUERY",e.MUTATION="MUTATION",e.SUBSCRIPTION="SUBSCRIPTION",e.FIELD="FIELD",e.FRAGMENT_DEFINITION="FRAGMENT_DEFINITION",e.FRAGMENT_SPREAD="FRAGMENT_SPREAD",e.INLINE_FRAGMENT="INLINE_FRAGMENT",e.VARIABLE_DEFINITION="VARIABLE_DEFINITION",e.SCHEMA="SCHEMA",e.SCALAR="SCALAR",e.OBJECT="OBJECT",e.FIELD_DEFINITION="FIELD_DEFINITION",e.ARGUMENT_DEFINITION="ARGUMENT_DEFINITION",e.INTERFACE="INTERFACE",e.UNION="UNION",e.ENUM="ENUM",e.ENUM_VALUE="ENUM_VALUE",e.INPUT_OBJECT="INPUT_OBJECT",e.INPUT_FIELD_DEFINITION="INPUT_FIELD_DEFINITION"})(se||(se={}));var b;(function(e){e.NAME="Name",e.DOCUMENT="Document",e.OPERATION_DEFINITION="OperationDefinition",e.VARIABLE_DEFINITION="VariableDefinition",e.SELECTION_SET="SelectionSet",e.FIELD="Field",e.ARGUMENT="Argument",e.FRAGMENT_SPREAD="FragmentSpread",e.INLINE_FRAGMENT="InlineFragment",e.FRAGMENT_DEFINITION="FragmentDefinition",e.VARIABLE="Variable",e.INT="IntValue",e.FLOAT="FloatValue",e.STRING="StringValue",e.BOOLEAN="BooleanValue",e.NULL="NullValue",e.ENUM="EnumValue",e.LIST="ListValue",e.OBJECT="ObjectValue",e.OBJECT_FIELD="ObjectField",e.DIRECTIVE="Directive",e.NAMED_TYPE="NamedType",e.LIST_TYPE="ListType",e.NON_NULL_TYPE="NonNullType",e.SCHEMA_DEFINITION="SchemaDefinition",e.OPERATION_TYPE_DEFINITION="OperationTypeDefinition",e.SCALAR_TYPE_DEFINITION="ScalarTypeDefinition",e.OBJECT_TYPE_DEFINITION="ObjectTypeDefinition",e.FIELD_DEFINITION="FieldDefinition",e.INPUT_VALUE_DEFINITION="InputValueDefinition",e.INTERFACE_TYPE_DEFINITION="InterfaceTypeDefinition",e.UNION_TYPE_DEFINITION="UnionTypeDefinition",e.ENUM_TYPE_DEFINITION="EnumTypeDefinition",e.ENUM_VALUE_DEFINITION="EnumValueDefinition",e.INPUT_OBJECT_TYPE_DEFINITION="InputObjectTypeDefinition",e.DIRECTIVE_DEFINITION="DirectiveDefinition",e.SCHEMA_EXTENSION="SchemaExtension",e.SCALAR_TYPE_EXTENSION="ScalarTypeExtension",e.OBJECT_TYPE_EXTENSION="ObjectTypeExtension",e.INTERFACE_TYPE_EXTENSION="InterfaceTypeExtension",e.UNION_TYPE_EXTENSION="UnionTypeExtension",e.ENUM_TYPE_EXTENSION="EnumTypeExtension",e.INPUT_OBJECT_TYPE_EXTENSION="InputObjectTypeExtension"})(b||(b={}));function _u(e){return e===9||e===32}function cs(e){return e>=48&&e<=57}function Lm(e){return e>=97&&e<=122||e>=65&&e<=90}function $o(e){return Lm(e)||e===95}function Eu(e){return Lm(e)||cs(e)||e===95}function Am(e){var t;let n=Number.MAX_SAFE_INTEGER,r=null,i=-1;for(let o=0;o<e.length;++o){var s;let a=e[o],u=yD(a);u!==a.length&&(r=(s=r)!==null&&s!==void 0?s:o,i=o,o!==0&&u<n&&(n=u))}return e.map((o,a)=>a===0?o:o.slice(n)).slice((t=r)!==null&&t!==void 0?t:0,i+1)}function yD(e){let t=0;for(;t<e.length&&_u(e.charCodeAt(t));)++t;return t}function Fm(e,t){let n=e.replace(/"""/g,'\\"""'),r=n.split(/\r\n|[\n\r]/g),i=r.length===1,s=r.length>1&&r.slice(1).every(m=>m.length===0||_u(m.charCodeAt(0))),o=n.endsWith('\\"""'),a=e.endsWith('"')&&!o,u=e.endsWith("\\"),l=a||u,c=!(t!=null&&t.minimize)&&(!i||e.length>70||l||s||o),f="",d=i&&_u(e.charCodeAt(0));return(c&&!d||s)&&(f+=`
|
|
118
118
|
`),f+=n,(c||l)&&(f+=`
|
|
119
|
-
`),'"""'+f+'"""'}var
|
|
120
|
-
`,size:2};case 114:return{value:"\r",size:2};case 116:return{value:" ",size:2}}throw
|
|
121
|
-
`));return e.line+=u.length-1,e.lineStart=i,c}if(l===92&&n.charCodeAt(s+1)===34&&n.charCodeAt(s+2)===34&&n.charCodeAt(s+3)===34){a+=n.slice(o,s),o=s+1,s+=4;continue}if(l===10||l===13){a+=n.slice(o,s),u.push(a),l===13&&n.charCodeAt(s+1)===10?s+=2:++s,a="",o=s,i=s;continue}if(
|
|
119
|
+
`),'"""'+f+'"""'}var G;(function(e){e.SOF="<SOF>",e.EOF="<EOF>",e.BANG="!",e.DOLLAR="$",e.AMP="&",e.PAREN_L="(",e.PAREN_R=")",e.SPREAD="...",e.COLON=":",e.EQUALS="=",e.AT="@",e.BRACKET_L="[",e.BRACKET_R="]",e.BRACE_L="{",e.PIPE="|",e.BRACE_R="}",e.NAME="Name",e.INT="Int",e.FLOAT="Float",e.STRING="String",e.BLOCK_STRING="BlockString",e.COMMENT="Comment"})(G||(G={}));var Go=class{constructor(t){let n=new ls(G.SOF,0,0,0,0);this.source=t,this.lastToken=n,this.token=n,this.line=1,this.lineStart=0}get[Symbol.toStringTag](){return"Lexer"}advance(){return this.lastToken=this.token,this.token=this.lookahead()}lookahead(){let t=this.token;if(t.kind!==G.EOF)do if(t.next)t=t.next;else{let n=wD(this,t.end);t.next=n,n.prev=t,t=n}while(t.kind===G.COMMENT);return t}};function Rm(e){return e===G.BANG||e===G.DOLLAR||e===G.AMP||e===G.PAREN_L||e===G.PAREN_R||e===G.SPREAD||e===G.COLON||e===G.EQUALS||e===G.AT||e===G.BRACKET_L||e===G.BRACKET_R||e===G.BRACE_L||e===G.PIPE||e===G.BRACE_R}function fs(e){return e>=0&&e<=55295||e>=57344&&e<=1114111}function Du(e,t){return Im(e.charCodeAt(t))&&Om(e.charCodeAt(t+1))}function Im(e){return e>=55296&&e<=56319}function Om(e){return e>=56320&&e<=57343}function ui(e,t){let n=e.source.body.codePointAt(t);if(n===void 0)return G.EOF;if(n>=32&&n<=126){let r=String.fromCodePoint(n);return r==='"'?`'"'`:`"${r}"`}return"U+"+n.toString(16).toUpperCase().padStart(4,"0")}function _t(e,t,n,r,i){let s=e.line,o=1+n-e.lineStart;return new ls(t,n,r,s,o,i)}function wD(e,t){let n=e.source.body,r=n.length,i=t;for(;i<r;){let s=n.charCodeAt(i);switch(s){case 65279:case 9:case 32:case 44:++i;continue;case 10:++i,++e.line,e.lineStart=i;continue;case 13:n.charCodeAt(i+1)===10?i+=2:++i,++e.line,e.lineStart=i;continue;case 35:return xD(e,i);case 33:return _t(e,G.BANG,i,i+1);case 36:return _t(e,G.DOLLAR,i,i+1);case 38:return _t(e,G.AMP,i,i+1);case 40:return _t(e,G.PAREN_L,i,i+1);case 41:return _t(e,G.PAREN_R,i,i+1);case 46:if(n.charCodeAt(i+1)===46&&n.charCodeAt(i+2)===46)return _t(e,G.SPREAD,i,i+3);break;case 58:return _t(e,G.COLON,i,i+1);case 61:return _t(e,G.EQUALS,i,i+1);case 64:return _t(e,G.AT,i,i+1);case 91:return _t(e,G.BRACKET_L,i,i+1);case 93:return _t(e,G.BRACKET_R,i,i+1);case 123:return _t(e,G.BRACE_L,i,i+1);case 124:return _t(e,G.PIPE,i,i+1);case 125:return _t(e,G.BRACE_R,i,i+1);case 34:return n.charCodeAt(i+1)===34&&n.charCodeAt(i+2)===34?ID(e,i):AD(e,i)}if(cs(s)||s===45)return LD(e,i,s);if($o(s))return OD(e,i);throw lt(e.source,i,s===39?`Unexpected single quote character ('), did you mean to use a double quote (")?`:fs(s)||Du(n,i)?`Unexpected character: ${ui(e,i)}.`:`Invalid character: ${ui(e,i)}.`)}return _t(e,G.EOF,r,r)}function xD(e,t){let n=e.source.body,r=n.length,i=t+1;for(;i<r;){let s=n.charCodeAt(i);if(s===10||s===13)break;if(fs(s))++i;else if(Du(n,i))i+=2;else break}return _t(e,G.COMMENT,t,i,n.slice(t+1,i))}function LD(e,t,n){let r=e.source.body,i=t,s=n,o=!1;if(s===45&&(s=r.charCodeAt(++i)),s===48){if(s=r.charCodeAt(++i),cs(s))throw lt(e.source,i,`Invalid number, unexpected digit after 0: ${ui(e,i)}.`)}else i=Ef(e,i,s),s=r.charCodeAt(i);if(s===46&&(o=!0,s=r.charCodeAt(++i),i=Ef(e,i,s),s=r.charCodeAt(i)),(s===69||s===101)&&(o=!0,s=r.charCodeAt(++i),(s===43||s===45)&&(s=r.charCodeAt(++i)),i=Ef(e,i,s),s=r.charCodeAt(i)),s===46||$o(s))throw lt(e.source,i,`Invalid number, expected digit but got: ${ui(e,i)}.`);return _t(e,o?G.FLOAT:G.INT,t,i,r.slice(t,i))}function Ef(e,t,n){if(!cs(n))throw lt(e.source,t,`Invalid number, expected digit but got: ${ui(e,t)}.`);let r=e.source.body,i=t+1;for(;cs(r.charCodeAt(i));)++i;return i}function AD(e,t){let n=e.source.body,r=n.length,i=t+1,s=i,o="";for(;i<r;){let a=n.charCodeAt(i);if(a===34)return o+=n.slice(s,i),_t(e,G.STRING,t,i+1,o);if(a===92){o+=n.slice(s,i);let u=n.charCodeAt(i+1)===117?n.charCodeAt(i+2)===123?FD(e,i):SD(e,i):RD(e,i);o+=u.value,i+=u.size,s=i;continue}if(a===10||a===13)break;if(fs(a))++i;else if(Du(n,i))i+=2;else throw lt(e.source,i,`Invalid character within String: ${ui(e,i)}.`)}throw lt(e.source,i,"Unterminated string.")}function FD(e,t){let n=e.source.body,r=0,i=3;for(;i<12;){let s=n.charCodeAt(t+i++);if(s===125){if(i<5||!fs(r))break;return{value:String.fromCodePoint(r),size:i}}if(r=r<<4|jo(s),r<0)break}throw lt(e.source,t,`Invalid Unicode escape sequence: "${n.slice(t,t+i)}".`)}function SD(e,t){let n=e.source.body,r=Sm(n,t+2);if(fs(r))return{value:String.fromCodePoint(r),size:6};if(Im(r)&&n.charCodeAt(t+6)===92&&n.charCodeAt(t+7)===117){let i=Sm(n,t+8);if(Om(i))return{value:String.fromCodePoint(r,i),size:12}}throw lt(e.source,t,`Invalid Unicode escape sequence: "${n.slice(t,t+6)}".`)}function Sm(e,t){return jo(e.charCodeAt(t))<<12|jo(e.charCodeAt(t+1))<<8|jo(e.charCodeAt(t+2))<<4|jo(e.charCodeAt(t+3))}function jo(e){return e>=48&&e<=57?e-48:e>=65&&e<=70?e-55:e>=97&&e<=102?e-87:-1}function RD(e,t){let n=e.source.body;switch(n.charCodeAt(t+1)){case 34:return{value:'"',size:2};case 92:return{value:"\\",size:2};case 47:return{value:"/",size:2};case 98:return{value:"\b",size:2};case 102:return{value:"\f",size:2};case 110:return{value:`
|
|
120
|
+
`,size:2};case 114:return{value:"\r",size:2};case 116:return{value:" ",size:2}}throw lt(e.source,t,`Invalid character escape sequence: "${n.slice(t,t+2)}".`)}function ID(e,t){let n=e.source.body,r=n.length,i=e.lineStart,s=t+3,o=s,a="",u=[];for(;s<r;){let l=n.charCodeAt(s);if(l===34&&n.charCodeAt(s+1)===34&&n.charCodeAt(s+2)===34){a+=n.slice(o,s),u.push(a);let c=_t(e,G.BLOCK_STRING,t,s+3,Am(u).join(`
|
|
121
|
+
`));return e.line+=u.length-1,e.lineStart=i,c}if(l===92&&n.charCodeAt(s+1)===34&&n.charCodeAt(s+2)===34&&n.charCodeAt(s+3)===34){a+=n.slice(o,s),o=s+1,s+=4;continue}if(l===10||l===13){a+=n.slice(o,s),u.push(a),l===13&&n.charCodeAt(s+1)===10?s+=2:++s,a="",o=s,i=s;continue}if(fs(l))++s;else if(Du(n,s))s+=2;else throw lt(e.source,s,`Invalid character within String: ${ui(e,s)}.`)}throw lt(e.source,s,"Unterminated string.")}function OD(e,t){let n=e.source.body,r=n.length,i=t+1;for(;i<r;){let s=n.charCodeAt(i);if(Eu(s))++i;else break}return _t(e,G.NAME,t,i,n.slice(t,i))}function W(e){return bu(e,[])}function bu(e,t){switch(typeof e){case"string":return JSON.stringify(e);case"function":return e.name?`[function ${e.name}]`:"[function]";case"object":return kD(e,t);default:return String(e)}}function kD(e,t){if(e===null)return"null";if(t.includes(e))return"[Circular]";let n=[...t,e];if(MD(e)){let r=e.toJSON();if(r!==e)return typeof r=="string"?r:bu(r,n)}else if(Array.isArray(e))return PD(e,n);return UD(e,n)}function MD(e){return typeof e.toJSON=="function"}function UD(e,t){let n=Object.entries(e);return n.length===0?"{}":t.length>2?"["+BD(e)+"]":"{ "+n.map(([i,s])=>i+": "+bu(s,t)).join(", ")+" }"}function PD(e,t){if(e.length===0)return"[]";if(t.length>2)return"[Array]";let n=Math.min(10,e.length),r=e.length-n,i=[];for(let s=0;s<n;++s)i.push(bu(e[s],t));return r===1?i.push("... 1 more item"):r>1&&i.push(`... ${r} more items`),"["+i.join(", ")+"]"}function BD(e){let t=Object.prototype.toString.call(e).replace(/^\[object /,"").replace(/]$/,"");if(t==="Object"&&typeof e.constructor=="function"){let n=e.constructor.name;if(typeof n=="string"&&n!=="")return n}return t}var CD=globalThis.process&&!0,jt=CD?function(t,n){return t instanceof n}:function(t,n){if(t instanceof n)return!0;if(typeof t=="object"&&t!==null){var r;let i=n.prototype[Symbol.toStringTag],s=Symbol.toStringTag in t?t[Symbol.toStringTag]:(r=t.constructor)===null||r===void 0?void 0:r.name;if(i===s){let o=W(t);throw new Error(`Cannot use ${i} "${o}" from another module or realm.
|
|
122
122
|
|
|
123
123
|
Ensure that there is only one instance of "graphql" in the node_modules
|
|
124
124
|
directory. If different versions of "graphql" are the dependencies of other
|
|
@@ -129,62 +129,62 @@ https://yarnpkg.com/en/docs/selective-version-resolutions
|
|
|
129
129
|
Duplicate "graphql" modules cannot be used at the same time since different
|
|
130
130
|
versions may have different capabilities and behavior. The data from one
|
|
131
131
|
version used in the function from another could produce confusing and
|
|
132
|
-
spurious results.`)}}return!1};var gs=class{constructor(t,n="GraphQL request",r={line:1,column:1}){typeof t=="string"||we(!1,`Body must be a string. Received: ${Y(t)}.`),this.body=t,this.name=n,this.locationOffset=r,this.locationOffset.line>0||we(!1,"line in locationOffset is 1-indexed and must be positive."),this.locationOffset.column>0||we(!1,"column in locationOffset is 1-indexed and must be positive.")}get[Symbol.toStringTag](){return"Source"}};function Im(e){return Gt(e,gs)}function Fn(e,t){let n=new Nu(e,t),r=n.parseDocument();return Object.defineProperty(r,"tokenCount",{enumerable:!1,value:n.tokenCount}),r}function Tu(e,t){let n=new Nu(e,t);n.expectToken(W.SOF);let r=n.parseValueLiteral(!1);return n.expectToken(W.EOF),r}var Nu=class{constructor(t,n={}){let r=Im(t)?t:new gs(t);this._lexer=new qo(r),this._options=n,this._tokenCounter=0}get tokenCount(){return this._tokenCounter}parseName(){let t=this.expectToken(W.NAME);return this.node(t,{kind:b.NAME,value:t.value})}parseDocument(){return this.node(this._lexer.token,{kind:b.DOCUMENT,definitions:this.many(W.SOF,this.parseDefinition,W.EOF)})}parseDefinition(){if(this.peek(W.BRACE_L))return this.parseOperationDefinition();let t=this.peekDescription(),n=t?this._lexer.lookahead():this._lexer.token;if(n.kind===W.NAME){switch(n.value){case"schema":return this.parseSchemaDefinition();case"scalar":return this.parseScalarTypeDefinition();case"type":return this.parseObjectTypeDefinition();case"interface":return this.parseInterfaceTypeDefinition();case"union":return this.parseUnionTypeDefinition();case"enum":return this.parseEnumTypeDefinition();case"input":return this.parseInputObjectTypeDefinition();case"directive":return this.parseDirectiveDefinition()}if(t)throw ut(this._lexer.source,this._lexer.token.start,"Unexpected description, descriptions are supported only on type definitions.");switch(n.value){case"query":case"mutation":case"subscription":return this.parseOperationDefinition();case"fragment":return this.parseFragmentDefinition();case"extend":return this.parseTypeSystemExtension()}}throw this.unexpected(n)}parseOperationDefinition(){let t=this._lexer.token;if(this.peek(W.BRACE_L))return this.node(t,{kind:b.OPERATION_DEFINITION,operation:mt.QUERY,name:void 0,variableDefinitions:[],directives:[],selectionSet:this.parseSelectionSet()});let n=this.parseOperationType(),r;return this.peek(W.NAME)&&(r=this.parseName()),this.node(t,{kind:b.OPERATION_DEFINITION,operation:n,name:r,variableDefinitions:this.parseVariableDefinitions(),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseOperationType(){let t=this.expectToken(W.NAME);switch(t.value){case"query":return mt.QUERY;case"mutation":return mt.MUTATION;case"subscription":return mt.SUBSCRIPTION}throw this.unexpected(t)}parseVariableDefinitions(){return this.optionalMany(W.PAREN_L,this.parseVariableDefinition,W.PAREN_R)}parseVariableDefinition(){return this.node(this._lexer.token,{kind:b.VARIABLE_DEFINITION,variable:this.parseVariable(),type:(this.expectToken(W.COLON),this.parseTypeReference()),defaultValue:this.expectOptionalToken(W.EQUALS)?this.parseConstValueLiteral():void 0,directives:this.parseConstDirectives()})}parseVariable(){let t=this._lexer.token;return this.expectToken(W.DOLLAR),this.node(t,{kind:b.VARIABLE,name:this.parseName()})}parseSelectionSet(){return this.node(this._lexer.token,{kind:b.SELECTION_SET,selections:this.many(W.BRACE_L,this.parseSelection,W.BRACE_R)})}parseSelection(){return this.peek(W.SPREAD)?this.parseFragment():this.parseField()}parseField(){let t=this._lexer.token,n=this.parseName(),r,i;return this.expectOptionalToken(W.COLON)?(r=n,i=this.parseName()):i=n,this.node(t,{kind:b.FIELD,alias:r,name:i,arguments:this.parseArguments(!1),directives:this.parseDirectives(!1),selectionSet:this.peek(W.BRACE_L)?this.parseSelectionSet():void 0})}parseArguments(t){let n=t?this.parseConstArgument:this.parseArgument;return this.optionalMany(W.PAREN_L,n,W.PAREN_R)}parseArgument(t=!1){let n=this._lexer.token,r=this.parseName();return this.expectToken(W.COLON),this.node(n,{kind:b.ARGUMENT,name:r,value:this.parseValueLiteral(t)})}parseConstArgument(){return this.parseArgument(!0)}parseFragment(){let t=this._lexer.token;this.expectToken(W.SPREAD);let n=this.expectOptionalKeyword("on");return!n&&this.peek(W.NAME)?this.node(t,{kind:b.FRAGMENT_SPREAD,name:this.parseFragmentName(),directives:this.parseDirectives(!1)}):this.node(t,{kind:b.INLINE_FRAGMENT,typeCondition:n?this.parseNamedType():void 0,directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseFragmentDefinition(){let t=this._lexer.token;return this.expectKeyword("fragment"),this._options.allowLegacyFragmentVariables===!0?this.node(t,{kind:b.FRAGMENT_DEFINITION,name:this.parseFragmentName(),variableDefinitions:this.parseVariableDefinitions(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()}):this.node(t,{kind:b.FRAGMENT_DEFINITION,name:this.parseFragmentName(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseFragmentName(){if(this._lexer.token.value==="on")throw this.unexpected();return this.parseName()}parseValueLiteral(t){let n=this._lexer.token;switch(n.kind){case W.BRACKET_L:return this.parseList(t);case W.BRACE_L:return this.parseObject(t);case W.INT:return this.advanceLexer(),this.node(n,{kind:b.INT,value:n.value});case W.FLOAT:return this.advanceLexer(),this.node(n,{kind:b.FLOAT,value:n.value});case W.STRING:case W.BLOCK_STRING:return this.parseStringLiteral();case W.NAME:switch(this.advanceLexer(),n.value){case"true":return this.node(n,{kind:b.BOOLEAN,value:!0});case"false":return this.node(n,{kind:b.BOOLEAN,value:!1});case"null":return this.node(n,{kind:b.NULL});default:return this.node(n,{kind:b.ENUM,value:n.value})}case W.DOLLAR:if(t)if(this.expectToken(W.DOLLAR),this._lexer.token.kind===W.NAME){let r=this._lexer.token.value;throw ut(this._lexer.source,n.start,`Unexpected variable "$${r}" in constant value.`)}else throw this.unexpected(n);return this.parseVariable();default:throw this.unexpected()}}parseConstValueLiteral(){return this.parseValueLiteral(!0)}parseStringLiteral(){let t=this._lexer.token;return this.advanceLexer(),this.node(t,{kind:b.STRING,value:t.value,block:t.kind===W.BLOCK_STRING})}parseList(t){let n=()=>this.parseValueLiteral(t);return this.node(this._lexer.token,{kind:b.LIST,values:this.any(W.BRACKET_L,n,W.BRACKET_R)})}parseObject(t){let n=()=>this.parseObjectField(t);return this.node(this._lexer.token,{kind:b.OBJECT,fields:this.any(W.BRACE_L,n,W.BRACE_R)})}parseObjectField(t){let n=this._lexer.token,r=this.parseName();return this.expectToken(W.COLON),this.node(n,{kind:b.OBJECT_FIELD,name:r,value:this.parseValueLiteral(t)})}parseDirectives(t){let n=[];for(;this.peek(W.AT);)n.push(this.parseDirective(t));return n}parseConstDirectives(){return this.parseDirectives(!0)}parseDirective(t){let n=this._lexer.token;return this.expectToken(W.AT),this.node(n,{kind:b.DIRECTIVE,name:this.parseName(),arguments:this.parseArguments(t)})}parseTypeReference(){let t=this._lexer.token,n;if(this.expectOptionalToken(W.BRACKET_L)){let r=this.parseTypeReference();this.expectToken(W.BRACKET_R),n=this.node(t,{kind:b.LIST_TYPE,type:r})}else n=this.parseNamedType();return this.expectOptionalToken(W.BANG)?this.node(t,{kind:b.NON_NULL_TYPE,type:n}):n}parseNamedType(){return this.node(this._lexer.token,{kind:b.NAMED_TYPE,name:this.parseName()})}peekDescription(){return this.peek(W.STRING)||this.peek(W.BLOCK_STRING)}parseDescription(){if(this.peekDescription())return this.parseStringLiteral()}parseSchemaDefinition(){let t=this._lexer.token,n=this.parseDescription();this.expectKeyword("schema");let r=this.parseConstDirectives(),i=this.many(W.BRACE_L,this.parseOperationTypeDefinition,W.BRACE_R);return this.node(t,{kind:b.SCHEMA_DEFINITION,description:n,directives:r,operationTypes:i})}parseOperationTypeDefinition(){let t=this._lexer.token,n=this.parseOperationType();this.expectToken(W.COLON);let r=this.parseNamedType();return this.node(t,{kind:b.OPERATION_TYPE_DEFINITION,operation:n,type:r})}parseScalarTypeDefinition(){let t=this._lexer.token,n=this.parseDescription();this.expectKeyword("scalar");let r=this.parseName(),i=this.parseConstDirectives();return this.node(t,{kind:b.SCALAR_TYPE_DEFINITION,description:n,name:r,directives:i})}parseObjectTypeDefinition(){let t=this._lexer.token,n=this.parseDescription();this.expectKeyword("type");let r=this.parseName(),i=this.parseImplementsInterfaces(),s=this.parseConstDirectives(),o=this.parseFieldsDefinition();return this.node(t,{kind:b.OBJECT_TYPE_DEFINITION,description:n,name:r,interfaces:i,directives:s,fields:o})}parseImplementsInterfaces(){return this.expectOptionalKeyword("implements")?this.delimitedMany(W.AMP,this.parseNamedType):[]}parseFieldsDefinition(){return this.optionalMany(W.BRACE_L,this.parseFieldDefinition,W.BRACE_R)}parseFieldDefinition(){let t=this._lexer.token,n=this.parseDescription(),r=this.parseName(),i=this.parseArgumentDefs();this.expectToken(W.COLON);let s=this.parseTypeReference(),o=this.parseConstDirectives();return this.node(t,{kind:b.FIELD_DEFINITION,description:n,name:r,arguments:i,type:s,directives:o})}parseArgumentDefs(){return this.optionalMany(W.PAREN_L,this.parseInputValueDef,W.PAREN_R)}parseInputValueDef(){let t=this._lexer.token,n=this.parseDescription(),r=this.parseName();this.expectToken(W.COLON);let i=this.parseTypeReference(),s;this.expectOptionalToken(W.EQUALS)&&(s=this.parseConstValueLiteral());let o=this.parseConstDirectives();return this.node(t,{kind:b.INPUT_VALUE_DEFINITION,description:n,name:r,type:i,defaultValue:s,directives:o})}parseInterfaceTypeDefinition(){let t=this._lexer.token,n=this.parseDescription();this.expectKeyword("interface");let r=this.parseName(),i=this.parseImplementsInterfaces(),s=this.parseConstDirectives(),o=this.parseFieldsDefinition();return this.node(t,{kind:b.INTERFACE_TYPE_DEFINITION,description:n,name:r,interfaces:i,directives:s,fields:o})}parseUnionTypeDefinition(){let t=this._lexer.token,n=this.parseDescription();this.expectKeyword("union");let r=this.parseName(),i=this.parseConstDirectives(),s=this.parseUnionMemberTypes();return this.node(t,{kind:b.UNION_TYPE_DEFINITION,description:n,name:r,directives:i,types:s})}parseUnionMemberTypes(){return this.expectOptionalToken(W.EQUALS)?this.delimitedMany(W.PIPE,this.parseNamedType):[]}parseEnumTypeDefinition(){let t=this._lexer.token,n=this.parseDescription();this.expectKeyword("enum");let r=this.parseName(),i=this.parseConstDirectives(),s=this.parseEnumValuesDefinition();return this.node(t,{kind:b.ENUM_TYPE_DEFINITION,description:n,name:r,directives:i,values:s})}parseEnumValuesDefinition(){return this.optionalMany(W.BRACE_L,this.parseEnumValueDefinition,W.BRACE_R)}parseEnumValueDefinition(){let t=this._lexer.token,n=this.parseDescription(),r=this.parseEnumValueName(),i=this.parseConstDirectives();return this.node(t,{kind:b.ENUM_VALUE_DEFINITION,description:n,name:r,directives:i})}parseEnumValueName(){if(this._lexer.token.value==="true"||this._lexer.token.value==="false"||this._lexer.token.value==="null")throw ut(this._lexer.source,this._lexer.token.start,`${vu(this._lexer.token)} is reserved and cannot be used for an enum value.`);return this.parseName()}parseInputObjectTypeDefinition(){let t=this._lexer.token,n=this.parseDescription();this.expectKeyword("input");let r=this.parseName(),i=this.parseConstDirectives(),s=this.parseInputFieldsDefinition();return this.node(t,{kind:b.INPUT_OBJECT_TYPE_DEFINITION,description:n,name:r,directives:i,fields:s})}parseInputFieldsDefinition(){return this.optionalMany(W.BRACE_L,this.parseInputValueDef,W.BRACE_R)}parseTypeSystemExtension(){let t=this._lexer.lookahead();if(t.kind===W.NAME)switch(t.value){case"schema":return this.parseSchemaExtension();case"scalar":return this.parseScalarTypeExtension();case"type":return this.parseObjectTypeExtension();case"interface":return this.parseInterfaceTypeExtension();case"union":return this.parseUnionTypeExtension();case"enum":return this.parseEnumTypeExtension();case"input":return this.parseInputObjectTypeExtension()}throw this.unexpected(t)}parseSchemaExtension(){let t=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("schema");let n=this.parseConstDirectives(),r=this.optionalMany(W.BRACE_L,this.parseOperationTypeDefinition,W.BRACE_R);if(n.length===0&&r.length===0)throw this.unexpected();return this.node(t,{kind:b.SCHEMA_EXTENSION,directives:n,operationTypes:r})}parseScalarTypeExtension(){let t=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("scalar");let n=this.parseName(),r=this.parseConstDirectives();if(r.length===0)throw this.unexpected();return this.node(t,{kind:b.SCALAR_TYPE_EXTENSION,name:n,directives:r})}parseObjectTypeExtension(){let t=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("type");let n=this.parseName(),r=this.parseImplementsInterfaces(),i=this.parseConstDirectives(),s=this.parseFieldsDefinition();if(r.length===0&&i.length===0&&s.length===0)throw this.unexpected();return this.node(t,{kind:b.OBJECT_TYPE_EXTENSION,name:n,interfaces:r,directives:i,fields:s})}parseInterfaceTypeExtension(){let t=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("interface");let n=this.parseName(),r=this.parseImplementsInterfaces(),i=this.parseConstDirectives(),s=this.parseFieldsDefinition();if(r.length===0&&i.length===0&&s.length===0)throw this.unexpected();return this.node(t,{kind:b.INTERFACE_TYPE_EXTENSION,name:n,interfaces:r,directives:i,fields:s})}parseUnionTypeExtension(){let t=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("union");let n=this.parseName(),r=this.parseConstDirectives(),i=this.parseUnionMemberTypes();if(r.length===0&&i.length===0)throw this.unexpected();return this.node(t,{kind:b.UNION_TYPE_EXTENSION,name:n,directives:r,types:i})}parseEnumTypeExtension(){let t=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("enum");let n=this.parseName(),r=this.parseConstDirectives(),i=this.parseEnumValuesDefinition();if(r.length===0&&i.length===0)throw this.unexpected();return this.node(t,{kind:b.ENUM_TYPE_EXTENSION,name:n,directives:r,values:i})}parseInputObjectTypeExtension(){let t=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("input");let n=this.parseName(),r=this.parseConstDirectives(),i=this.parseInputFieldsDefinition();if(r.length===0&&i.length===0)throw this.unexpected();return this.node(t,{kind:b.INPUT_OBJECT_TYPE_EXTENSION,name:n,directives:r,fields:i})}parseDirectiveDefinition(){let t=this._lexer.token,n=this.parseDescription();this.expectKeyword("directive"),this.expectToken(W.AT);let r=this.parseName(),i=this.parseArgumentDefs(),s=this.expectOptionalKeyword("repeatable");this.expectKeyword("on");let o=this.parseDirectiveLocations();return this.node(t,{kind:b.DIRECTIVE_DEFINITION,description:n,name:r,arguments:i,repeatable:s,locations:o})}parseDirectiveLocations(){return this.delimitedMany(W.PIPE,this.parseDirectiveLocation)}parseDirectiveLocation(){let t=this._lexer.token,n=this.parseName();if(Object.prototype.hasOwnProperty.call(oe,n.value))return n;throw this.unexpected(t)}node(t,n){return this._options.noLocation!==!0&&(n.loc=new Vo(t,this._lexer.lastToken,this._lexer.source)),n}peek(t){return this._lexer.token.kind===t}expectToken(t){let n=this._lexer.token;if(n.kind===t)return this.advanceLexer(),n;throw ut(this._lexer.source,n.start,`Expected ${Om(t)}, found ${vu(n)}.`)}expectOptionalToken(t){return this._lexer.token.kind===t?(this.advanceLexer(),!0):!1}expectKeyword(t){let n=this._lexer.token;if(n.kind===W.NAME&&n.value===t)this.advanceLexer();else throw ut(this._lexer.source,n.start,`Expected "${t}", found ${vu(n)}.`)}expectOptionalKeyword(t){let n=this._lexer.token;return n.kind===W.NAME&&n.value===t?(this.advanceLexer(),!0):!1}unexpected(t){let n=t??this._lexer.token;return ut(this._lexer.source,n.start,`Unexpected ${vu(n)}.`)}any(t,n,r){this.expectToken(t);let i=[];for(;!this.expectOptionalToken(r);)i.push(n.call(this));return i}optionalMany(t,n,r){if(this.expectOptionalToken(t)){let i=[];do i.push(n.call(this));while(!this.expectOptionalToken(r));return i}return[]}many(t,n,r){this.expectToken(t);let i=[];do i.push(n.call(this));while(!this.expectOptionalToken(r));return i}delimitedMany(t,n){this.expectOptionalToken(t);let r=[];do r.push(n.call(this));while(this.expectOptionalToken(t));return r}advanceLexer(){let{maxTokens:t}=this._options,n=this._lexer.advance();if(n.kind!==W.EOF&&(++this._tokenCounter,t!==void 0&&this._tokenCounter>t))throw ut(this._lexer.source,n.start,`Document contains more that ${t} tokens. Parsing aborted.`)}};function vu(e){let t=e.value;return Om(e.kind)+(t!=null?` "${t}"`:"")}function Om(e){return Fm(e)?`"${e}"`:e}function Jt(e,t){let[n,r]=t?[e,t]:[void 0,e],i=" Did you mean ";n&&(i+=n+" ");let s=r.map(u=>`"${u}"`);switch(s.length){case 0:return"";case 1:return i+s[0]+"?";case 2:return i+s[0]+" or "+s[1]+"?"}let o=s.slice(0,5),a=o.pop();return i+o.join(", ")+", or "+a+"?"}function _f(e){return e}function sn(e,t){let n=Object.create(null);for(let r of e)n[t(r)]=r;return n}function Gn(e,t,n){let r=Object.create(null);for(let i of e)r[t(i)]=n(i);return r}function Sn(e,t){let n=Object.create(null);for(let r of Object.keys(e))n[r]=t(e[r],r);return n}function _s(e,t){let n=0,r=0;for(;n<e.length&&r<t.length;){let i=e.charCodeAt(n),s=t.charCodeAt(r);if(wu(i)&&wu(s)){let o=0;do++n,o=o*10+i-Ef,i=e.charCodeAt(n);while(wu(i)&&o>0);let a=0;do++r,a=a*10+s-Ef,s=t.charCodeAt(r);while(wu(s)&&a>0);if(o<a)return-1;if(o>a)return 1}else{if(i<s)return-1;if(i>s)return 1;++n,++r}}return e.length-t.length}var Ef=48,WD=57;function wu(e){return!isNaN(e)&&Ef<=e&&e<=WD}function on(e,t){let n=Object.create(null),r=new Df(e),i=Math.floor(e.length*.4)+1;for(let s of t){let o=r.measure(s,i);o!==void 0&&(n[s]=o)}return Object.keys(n).sort((s,o)=>{let a=n[s]-n[o];return a!==0?a:_s(s,o)})}var Df=class{constructor(t){this._input=t,this._inputLowerCase=t.toLowerCase(),this._inputArray=km(this._inputLowerCase),this._rows=[new Array(t.length+1).fill(0),new Array(t.length+1).fill(0),new Array(t.length+1).fill(0)]}measure(t,n){if(this._input===t)return 0;let r=t.toLowerCase();if(this._inputLowerCase===r)return 1;let i=km(r),s=this._inputArray;if(i.length<s.length){let c=i;i=s,s=c}let o=i.length,a=s.length;if(o-a>n)return;let u=this._rows;for(let c=0;c<=a;c++)u[0][c]=c;for(let c=1;c<=o;c++){let f=u[(c-1)%3],d=u[c%3],m=d[0]=c;for(let g=1;g<=a;g++){let E=i[c-1]===s[g-1]?0:1,T=Math.min(f[g]+1,d[g-1]+1,f[g-1]+E);if(c>1&&g>1&&i[c-1]===s[g-2]&&i[c-2]===s[g-1]){let v=u[(c-2)%3][g-2];T=Math.min(T,v+1)}T<m&&(m=T),d[g]=T}if(m>n)return}let l=u[o%3][a];return l<=n?l:void 0}};function km(e){let t=e.length,n=new Array(t);for(let r=0;r<t;++r)n[r]=e.charCodeAt(r);return n}function qt(e){if(e==null)return Object.create(null);if(Object.getPrototypeOf(e)===null)return e;let t=Object.create(null);for(let[n,r]of Object.entries(e))t[n]=r;return t}function Mm(e){return`"${e.replace(zD,QD)}"`}var zD=/[\x00-\x1f\x22\x5c\x7f-\x9f]/g;function QD(e){return YD[e.charCodeAt(0)]}var YD=["\\u0000","\\u0001","\\u0002","\\u0003","\\u0004","\\u0005","\\u0006","\\u0007","\\b","\\t","\\n","\\u000B","\\f","\\r","\\u000E","\\u000F","\\u0010","\\u0011","\\u0012","\\u0013","\\u0014","\\u0015","\\u0016","\\u0017","\\u0018","\\u0019","\\u001A","\\u001B","\\u001C","\\u001D","\\u001E","\\u001F","","",'\\"',"","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","\\\\","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","\\u007F","\\u0080","\\u0081","\\u0082","\\u0083","\\u0084","\\u0085","\\u0086","\\u0087","\\u0088","\\u0089","\\u008A","\\u008B","\\u008C","\\u008D","\\u008E","\\u008F","\\u0090","\\u0091","\\u0092","\\u0093","\\u0094","\\u0095","\\u0096","\\u0097","\\u0098","\\u0099","\\u009A","\\u009B","\\u009C","\\u009D","\\u009E","\\u009F"];var Dr=Object.freeze({});function Ft(e,t,n=mf){let r=new Map;for(let v of Object.values(b))r.set(v,di(t,v));let i,s=Array.isArray(e),o=[e],a=-1,u=[],l=e,c,f,d=[],m=[];do{a++;let v=a===o.length,A=v&&u.length!==0;if(v){if(c=m.length===0?void 0:d[d.length-1],l=f,f=m.pop(),A)if(s){l=l.slice();let C=0;for(let[q,G]of u){let I=q-C;G===null?(l.splice(I,1),C++):l[I]=G}}else{l={...l};for(let[C,q]of u)l[C]=q}a=i.index,o=i.keys,u=i.edits,s=i.inArray,i=i.prev}else if(f){if(c=s?a:o[a],l=f[c],l==null)continue;d.push(c)}let S;if(!Array.isArray(l)){var g,E;$o(l)||we(!1,`Invalid AST Node: ${Y(l)}.`);let C=v?(g=r.get(l.kind))===null||g===void 0?void 0:g.leave:(E=r.get(l.kind))===null||E===void 0?void 0:E.enter;if(S=C?.call(t,l,c,f,d,m),S===Dr)break;if(S===!1){if(!v){d.pop();continue}}else if(S!==void 0&&(u.push([c,S]),!v))if($o(S))l=S;else{d.pop();continue}}if(S===void 0&&A&&u.push([c,l]),v)d.pop();else{var T;i={inArray:s,index:a,keys:o,edits:u,prev:i},s=Array.isArray(l),o=s?l:(T=n[l.kind])!==null&&T!==void 0?T:[],a=-1,u=[],f&&m.push(f),f=l}}while(i!==void 0);return u.length!==0?u[u.length-1][1]:e}function Ho(e){let t=new Array(e.length).fill(null),n=Object.create(null);for(let r of Object.values(b)){let i=!1,s=new Array(e.length).fill(void 0),o=new Array(e.length).fill(void 0);for(let u=0;u<e.length;++u){let{enter:l,leave:c}=di(e[u],r);i||(i=l!=null||c!=null),s[u]=l,o[u]=c}if(!i)continue;let a={enter(...u){let l=u[0];for(let f=0;f<e.length;f++)if(t[f]===null){var c;let d=(c=s[f])===null||c===void 0?void 0:c.apply(e[f],u);if(d===!1)t[f]=l;else if(d===Dr)t[f]=Dr;else if(d!==void 0)return d}},leave(...u){let l=u[0];for(let f=0;f<e.length;f++)if(t[f]===null){var c;let d=(c=o[f])===null||c===void 0?void 0:c.apply(e[f],u);if(d===Dr)t[f]=Dr;else if(d!==void 0&&d!==!1)return d}else t[f]===l&&(t[f]=null)}};n[r]=a}return n}function di(e,t){let n=e[t];return typeof n=="object"?n:typeof n=="function"?{enter:n,leave:void 0}:{enter:e.enter,leave:e.leave}}function $e(e){return Ft(e,JD)}var XD=80,JD={Name:{leave:e=>e.value},Variable:{leave:e=>"$"+e.name},Document:{leave:e=>ue(e.definitions,`
|
|
132
|
+
spurious results.`)}}return!1};var hs=class{constructor(t,n="GraphQL request",r={line:1,column:1}){typeof t=="string"||Te(!1,`Body must be a string. Received: ${W(t)}.`),this.body=t,this.name=n,this.locationOffset=r,this.locationOffset.line>0||Te(!1,"line in locationOffset is 1-indexed and must be positive."),this.locationOffset.column>0||Te(!1,"column in locationOffset is 1-indexed and must be positive.")}get[Symbol.toStringTag](){return"Source"}};function km(e){return jt(e,hs)}function xn(e,t){let n=new Nu(e,t),r=n.parseDocument();return Object.defineProperty(r,"tokenCount",{enumerable:!1,value:n.tokenCount}),r}function Tu(e,t){let n=new Nu(e,t);n.expectToken(G.SOF);let r=n.parseValueLiteral(!1);return n.expectToken(G.EOF),r}var Nu=class{constructor(t,n={}){let r=km(t)?t:new hs(t);this._lexer=new Go(r),this._options=n,this._tokenCounter=0}get tokenCount(){return this._tokenCounter}parseName(){let t=this.expectToken(G.NAME);return this.node(t,{kind:b.NAME,value:t.value})}parseDocument(){return this.node(this._lexer.token,{kind:b.DOCUMENT,definitions:this.many(G.SOF,this.parseDefinition,G.EOF)})}parseDefinition(){if(this.peek(G.BRACE_L))return this.parseOperationDefinition();let t=this.peekDescription(),n=t?this._lexer.lookahead():this._lexer.token;if(n.kind===G.NAME){switch(n.value){case"schema":return this.parseSchemaDefinition();case"scalar":return this.parseScalarTypeDefinition();case"type":return this.parseObjectTypeDefinition();case"interface":return this.parseInterfaceTypeDefinition();case"union":return this.parseUnionTypeDefinition();case"enum":return this.parseEnumTypeDefinition();case"input":return this.parseInputObjectTypeDefinition();case"directive":return this.parseDirectiveDefinition()}if(t)throw lt(this._lexer.source,this._lexer.token.start,"Unexpected description, descriptions are supported only on type definitions.");switch(n.value){case"query":case"mutation":case"subscription":return this.parseOperationDefinition();case"fragment":return this.parseFragmentDefinition();case"extend":return this.parseTypeSystemExtension()}}throw this.unexpected(n)}parseOperationDefinition(){let t=this._lexer.token;if(this.peek(G.BRACE_L))return this.node(t,{kind:b.OPERATION_DEFINITION,operation:gt.QUERY,name:void 0,variableDefinitions:[],directives:[],selectionSet:this.parseSelectionSet()});let n=this.parseOperationType(),r;return this.peek(G.NAME)&&(r=this.parseName()),this.node(t,{kind:b.OPERATION_DEFINITION,operation:n,name:r,variableDefinitions:this.parseVariableDefinitions(),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseOperationType(){let t=this.expectToken(G.NAME);switch(t.value){case"query":return gt.QUERY;case"mutation":return gt.MUTATION;case"subscription":return gt.SUBSCRIPTION}throw this.unexpected(t)}parseVariableDefinitions(){return this.optionalMany(G.PAREN_L,this.parseVariableDefinition,G.PAREN_R)}parseVariableDefinition(){return this.node(this._lexer.token,{kind:b.VARIABLE_DEFINITION,variable:this.parseVariable(),type:(this.expectToken(G.COLON),this.parseTypeReference()),defaultValue:this.expectOptionalToken(G.EQUALS)?this.parseConstValueLiteral():void 0,directives:this.parseConstDirectives()})}parseVariable(){let t=this._lexer.token;return this.expectToken(G.DOLLAR),this.node(t,{kind:b.VARIABLE,name:this.parseName()})}parseSelectionSet(){return this.node(this._lexer.token,{kind:b.SELECTION_SET,selections:this.many(G.BRACE_L,this.parseSelection,G.BRACE_R)})}parseSelection(){return this.peek(G.SPREAD)?this.parseFragment():this.parseField()}parseField(){let t=this._lexer.token,n=this.parseName(),r,i;return this.expectOptionalToken(G.COLON)?(r=n,i=this.parseName()):i=n,this.node(t,{kind:b.FIELD,alias:r,name:i,arguments:this.parseArguments(!1),directives:this.parseDirectives(!1),selectionSet:this.peek(G.BRACE_L)?this.parseSelectionSet():void 0})}parseArguments(t){let n=t?this.parseConstArgument:this.parseArgument;return this.optionalMany(G.PAREN_L,n,G.PAREN_R)}parseArgument(t=!1){let n=this._lexer.token,r=this.parseName();return this.expectToken(G.COLON),this.node(n,{kind:b.ARGUMENT,name:r,value:this.parseValueLiteral(t)})}parseConstArgument(){return this.parseArgument(!0)}parseFragment(){let t=this._lexer.token;this.expectToken(G.SPREAD);let n=this.expectOptionalKeyword("on");return!n&&this.peek(G.NAME)?this.node(t,{kind:b.FRAGMENT_SPREAD,name:this.parseFragmentName(),directives:this.parseDirectives(!1)}):this.node(t,{kind:b.INLINE_FRAGMENT,typeCondition:n?this.parseNamedType():void 0,directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseFragmentDefinition(){let t=this._lexer.token;return this.expectKeyword("fragment"),this._options.allowLegacyFragmentVariables===!0?this.node(t,{kind:b.FRAGMENT_DEFINITION,name:this.parseFragmentName(),variableDefinitions:this.parseVariableDefinitions(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()}):this.node(t,{kind:b.FRAGMENT_DEFINITION,name:this.parseFragmentName(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseFragmentName(){if(this._lexer.token.value==="on")throw this.unexpected();return this.parseName()}parseValueLiteral(t){let n=this._lexer.token;switch(n.kind){case G.BRACKET_L:return this.parseList(t);case G.BRACE_L:return this.parseObject(t);case G.INT:return this.advanceLexer(),this.node(n,{kind:b.INT,value:n.value});case G.FLOAT:return this.advanceLexer(),this.node(n,{kind:b.FLOAT,value:n.value});case G.STRING:case G.BLOCK_STRING:return this.parseStringLiteral();case G.NAME:switch(this.advanceLexer(),n.value){case"true":return this.node(n,{kind:b.BOOLEAN,value:!0});case"false":return this.node(n,{kind:b.BOOLEAN,value:!1});case"null":return this.node(n,{kind:b.NULL});default:return this.node(n,{kind:b.ENUM,value:n.value})}case G.DOLLAR:if(t)if(this.expectToken(G.DOLLAR),this._lexer.token.kind===G.NAME){let r=this._lexer.token.value;throw lt(this._lexer.source,n.start,`Unexpected variable "$${r}" in constant value.`)}else throw this.unexpected(n);return this.parseVariable();default:throw this.unexpected()}}parseConstValueLiteral(){return this.parseValueLiteral(!0)}parseStringLiteral(){let t=this._lexer.token;return this.advanceLexer(),this.node(t,{kind:b.STRING,value:t.value,block:t.kind===G.BLOCK_STRING})}parseList(t){let n=()=>this.parseValueLiteral(t);return this.node(this._lexer.token,{kind:b.LIST,values:this.any(G.BRACKET_L,n,G.BRACKET_R)})}parseObject(t){let n=()=>this.parseObjectField(t);return this.node(this._lexer.token,{kind:b.OBJECT,fields:this.any(G.BRACE_L,n,G.BRACE_R)})}parseObjectField(t){let n=this._lexer.token,r=this.parseName();return this.expectToken(G.COLON),this.node(n,{kind:b.OBJECT_FIELD,name:r,value:this.parseValueLiteral(t)})}parseDirectives(t){let n=[];for(;this.peek(G.AT);)n.push(this.parseDirective(t));return n}parseConstDirectives(){return this.parseDirectives(!0)}parseDirective(t){let n=this._lexer.token;return this.expectToken(G.AT),this.node(n,{kind:b.DIRECTIVE,name:this.parseName(),arguments:this.parseArguments(t)})}parseTypeReference(){let t=this._lexer.token,n;if(this.expectOptionalToken(G.BRACKET_L)){let r=this.parseTypeReference();this.expectToken(G.BRACKET_R),n=this.node(t,{kind:b.LIST_TYPE,type:r})}else n=this.parseNamedType();return this.expectOptionalToken(G.BANG)?this.node(t,{kind:b.NON_NULL_TYPE,type:n}):n}parseNamedType(){return this.node(this._lexer.token,{kind:b.NAMED_TYPE,name:this.parseName()})}peekDescription(){return this.peek(G.STRING)||this.peek(G.BLOCK_STRING)}parseDescription(){if(this.peekDescription())return this.parseStringLiteral()}parseSchemaDefinition(){let t=this._lexer.token,n=this.parseDescription();this.expectKeyword("schema");let r=this.parseConstDirectives(),i=this.many(G.BRACE_L,this.parseOperationTypeDefinition,G.BRACE_R);return this.node(t,{kind:b.SCHEMA_DEFINITION,description:n,directives:r,operationTypes:i})}parseOperationTypeDefinition(){let t=this._lexer.token,n=this.parseOperationType();this.expectToken(G.COLON);let r=this.parseNamedType();return this.node(t,{kind:b.OPERATION_TYPE_DEFINITION,operation:n,type:r})}parseScalarTypeDefinition(){let t=this._lexer.token,n=this.parseDescription();this.expectKeyword("scalar");let r=this.parseName(),i=this.parseConstDirectives();return this.node(t,{kind:b.SCALAR_TYPE_DEFINITION,description:n,name:r,directives:i})}parseObjectTypeDefinition(){let t=this._lexer.token,n=this.parseDescription();this.expectKeyword("type");let r=this.parseName(),i=this.parseImplementsInterfaces(),s=this.parseConstDirectives(),o=this.parseFieldsDefinition();return this.node(t,{kind:b.OBJECT_TYPE_DEFINITION,description:n,name:r,interfaces:i,directives:s,fields:o})}parseImplementsInterfaces(){return this.expectOptionalKeyword("implements")?this.delimitedMany(G.AMP,this.parseNamedType):[]}parseFieldsDefinition(){return this.optionalMany(G.BRACE_L,this.parseFieldDefinition,G.BRACE_R)}parseFieldDefinition(){let t=this._lexer.token,n=this.parseDescription(),r=this.parseName(),i=this.parseArgumentDefs();this.expectToken(G.COLON);let s=this.parseTypeReference(),o=this.parseConstDirectives();return this.node(t,{kind:b.FIELD_DEFINITION,description:n,name:r,arguments:i,type:s,directives:o})}parseArgumentDefs(){return this.optionalMany(G.PAREN_L,this.parseInputValueDef,G.PAREN_R)}parseInputValueDef(){let t=this._lexer.token,n=this.parseDescription(),r=this.parseName();this.expectToken(G.COLON);let i=this.parseTypeReference(),s;this.expectOptionalToken(G.EQUALS)&&(s=this.parseConstValueLiteral());let o=this.parseConstDirectives();return this.node(t,{kind:b.INPUT_VALUE_DEFINITION,description:n,name:r,type:i,defaultValue:s,directives:o})}parseInterfaceTypeDefinition(){let t=this._lexer.token,n=this.parseDescription();this.expectKeyword("interface");let r=this.parseName(),i=this.parseImplementsInterfaces(),s=this.parseConstDirectives(),o=this.parseFieldsDefinition();return this.node(t,{kind:b.INTERFACE_TYPE_DEFINITION,description:n,name:r,interfaces:i,directives:s,fields:o})}parseUnionTypeDefinition(){let t=this._lexer.token,n=this.parseDescription();this.expectKeyword("union");let r=this.parseName(),i=this.parseConstDirectives(),s=this.parseUnionMemberTypes();return this.node(t,{kind:b.UNION_TYPE_DEFINITION,description:n,name:r,directives:i,types:s})}parseUnionMemberTypes(){return this.expectOptionalToken(G.EQUALS)?this.delimitedMany(G.PIPE,this.parseNamedType):[]}parseEnumTypeDefinition(){let t=this._lexer.token,n=this.parseDescription();this.expectKeyword("enum");let r=this.parseName(),i=this.parseConstDirectives(),s=this.parseEnumValuesDefinition();return this.node(t,{kind:b.ENUM_TYPE_DEFINITION,description:n,name:r,directives:i,values:s})}parseEnumValuesDefinition(){return this.optionalMany(G.BRACE_L,this.parseEnumValueDefinition,G.BRACE_R)}parseEnumValueDefinition(){let t=this._lexer.token,n=this.parseDescription(),r=this.parseEnumValueName(),i=this.parseConstDirectives();return this.node(t,{kind:b.ENUM_VALUE_DEFINITION,description:n,name:r,directives:i})}parseEnumValueName(){if(this._lexer.token.value==="true"||this._lexer.token.value==="false"||this._lexer.token.value==="null")throw lt(this._lexer.source,this._lexer.token.start,`${vu(this._lexer.token)} is reserved and cannot be used for an enum value.`);return this.parseName()}parseInputObjectTypeDefinition(){let t=this._lexer.token,n=this.parseDescription();this.expectKeyword("input");let r=this.parseName(),i=this.parseConstDirectives(),s=this.parseInputFieldsDefinition();return this.node(t,{kind:b.INPUT_OBJECT_TYPE_DEFINITION,description:n,name:r,directives:i,fields:s})}parseInputFieldsDefinition(){return this.optionalMany(G.BRACE_L,this.parseInputValueDef,G.BRACE_R)}parseTypeSystemExtension(){let t=this._lexer.lookahead();if(t.kind===G.NAME)switch(t.value){case"schema":return this.parseSchemaExtension();case"scalar":return this.parseScalarTypeExtension();case"type":return this.parseObjectTypeExtension();case"interface":return this.parseInterfaceTypeExtension();case"union":return this.parseUnionTypeExtension();case"enum":return this.parseEnumTypeExtension();case"input":return this.parseInputObjectTypeExtension()}throw this.unexpected(t)}parseSchemaExtension(){let t=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("schema");let n=this.parseConstDirectives(),r=this.optionalMany(G.BRACE_L,this.parseOperationTypeDefinition,G.BRACE_R);if(n.length===0&&r.length===0)throw this.unexpected();return this.node(t,{kind:b.SCHEMA_EXTENSION,directives:n,operationTypes:r})}parseScalarTypeExtension(){let t=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("scalar");let n=this.parseName(),r=this.parseConstDirectives();if(r.length===0)throw this.unexpected();return this.node(t,{kind:b.SCALAR_TYPE_EXTENSION,name:n,directives:r})}parseObjectTypeExtension(){let t=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("type");let n=this.parseName(),r=this.parseImplementsInterfaces(),i=this.parseConstDirectives(),s=this.parseFieldsDefinition();if(r.length===0&&i.length===0&&s.length===0)throw this.unexpected();return this.node(t,{kind:b.OBJECT_TYPE_EXTENSION,name:n,interfaces:r,directives:i,fields:s})}parseInterfaceTypeExtension(){let t=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("interface");let n=this.parseName(),r=this.parseImplementsInterfaces(),i=this.parseConstDirectives(),s=this.parseFieldsDefinition();if(r.length===0&&i.length===0&&s.length===0)throw this.unexpected();return this.node(t,{kind:b.INTERFACE_TYPE_EXTENSION,name:n,interfaces:r,directives:i,fields:s})}parseUnionTypeExtension(){let t=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("union");let n=this.parseName(),r=this.parseConstDirectives(),i=this.parseUnionMemberTypes();if(r.length===0&&i.length===0)throw this.unexpected();return this.node(t,{kind:b.UNION_TYPE_EXTENSION,name:n,directives:r,types:i})}parseEnumTypeExtension(){let t=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("enum");let n=this.parseName(),r=this.parseConstDirectives(),i=this.parseEnumValuesDefinition();if(r.length===0&&i.length===0)throw this.unexpected();return this.node(t,{kind:b.ENUM_TYPE_EXTENSION,name:n,directives:r,values:i})}parseInputObjectTypeExtension(){let t=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("input");let n=this.parseName(),r=this.parseConstDirectives(),i=this.parseInputFieldsDefinition();if(r.length===0&&i.length===0)throw this.unexpected();return this.node(t,{kind:b.INPUT_OBJECT_TYPE_EXTENSION,name:n,directives:r,fields:i})}parseDirectiveDefinition(){let t=this._lexer.token,n=this.parseDescription();this.expectKeyword("directive"),this.expectToken(G.AT);let r=this.parseName(),i=this.parseArgumentDefs(),s=this.expectOptionalKeyword("repeatable");this.expectKeyword("on");let o=this.parseDirectiveLocations();return this.node(t,{kind:b.DIRECTIVE_DEFINITION,description:n,name:r,arguments:i,repeatable:s,locations:o})}parseDirectiveLocations(){return this.delimitedMany(G.PIPE,this.parseDirectiveLocation)}parseDirectiveLocation(){let t=this._lexer.token,n=this.parseName();if(Object.prototype.hasOwnProperty.call(se,n.value))return n;throw this.unexpected(t)}node(t,n){return this._options.noLocation!==!0&&(n.loc=new Co(t,this._lexer.lastToken,this._lexer.source)),n}peek(t){return this._lexer.token.kind===t}expectToken(t){let n=this._lexer.token;if(n.kind===t)return this.advanceLexer(),n;throw lt(this._lexer.source,n.start,`Expected ${Mm(t)}, found ${vu(n)}.`)}expectOptionalToken(t){return this._lexer.token.kind===t?(this.advanceLexer(),!0):!1}expectKeyword(t){let n=this._lexer.token;if(n.kind===G.NAME&&n.value===t)this.advanceLexer();else throw lt(this._lexer.source,n.start,`Expected "${t}", found ${vu(n)}.`)}expectOptionalKeyword(t){let n=this._lexer.token;return n.kind===G.NAME&&n.value===t?(this.advanceLexer(),!0):!1}unexpected(t){let n=t??this._lexer.token;return lt(this._lexer.source,n.start,`Unexpected ${vu(n)}.`)}any(t,n,r){this.expectToken(t);let i=[];for(;!this.expectOptionalToken(r);)i.push(n.call(this));return i}optionalMany(t,n,r){if(this.expectOptionalToken(t)){let i=[];do i.push(n.call(this));while(!this.expectOptionalToken(r));return i}return[]}many(t,n,r){this.expectToken(t);let i=[];do i.push(n.call(this));while(!this.expectOptionalToken(r));return i}delimitedMany(t,n){this.expectOptionalToken(t);let r=[];do r.push(n.call(this));while(this.expectOptionalToken(t));return r}advanceLexer(){let{maxTokens:t}=this._options,n=this._lexer.advance();if(n.kind!==G.EOF&&(++this._tokenCounter,t!==void 0&&this._tokenCounter>t))throw lt(this._lexer.source,n.start,`Document contains more that ${t} tokens. Parsing aborted.`)}};function vu(e){let t=e.value;return Mm(e.kind)+(t!=null?` "${t}"`:"")}function Mm(e){return Rm(e)?`"${e}"`:e}function Yt(e,t){let[n,r]=t?[e,t]:[void 0,e],i=" Did you mean ";n&&(i+=n+" ");let s=r.map(u=>`"${u}"`);switch(s.length){case 0:return"";case 1:return i+s[0]+"?";case 2:return i+s[0]+" or "+s[1]+"?"}let o=s.slice(0,5),a=o.pop();return i+o.join(", ")+", or "+a+"?"}function Df(e){return e}function sn(e,t){let n=Object.create(null);for(let r of e)n[t(r)]=r;return n}function qn(e,t,n){let r=Object.create(null);for(let i of e)r[t(i)]=n(i);return r}function Ln(e,t){let n=Object.create(null);for(let r of Object.keys(e))n[r]=t(e[r],r);return n}function ps(e,t){let n=0,r=0;for(;n<e.length&&r<t.length;){let i=e.charCodeAt(n),s=t.charCodeAt(r);if(yu(i)&&yu(s)){let o=0;do++n,o=o*10+i-bf,i=e.charCodeAt(n);while(yu(i)&&o>0);let a=0;do++r,a=a*10+s-bf,s=t.charCodeAt(r);while(yu(s)&&a>0);if(o<a)return-1;if(o>a)return 1}else{if(i<s)return-1;if(i>s)return 1;++n,++r}}return e.length-t.length}var bf=48,VD=57;function yu(e){return!isNaN(e)&&bf<=e&&e<=VD}function on(e,t){let n=Object.create(null),r=new vf(e),i=Math.floor(e.length*.4)+1;for(let s of t){let o=r.measure(s,i);o!==void 0&&(n[s]=o)}return Object.keys(n).sort((s,o)=>{let a=n[s]-n[o];return a!==0?a:ps(s,o)})}var vf=class{constructor(t){this._input=t,this._inputLowerCase=t.toLowerCase(),this._inputArray=Um(this._inputLowerCase),this._rows=[new Array(t.length+1).fill(0),new Array(t.length+1).fill(0),new Array(t.length+1).fill(0)]}measure(t,n){if(this._input===t)return 0;let r=t.toLowerCase();if(this._inputLowerCase===r)return 1;let i=Um(r),s=this._inputArray;if(i.length<s.length){let c=i;i=s,s=c}let o=i.length,a=s.length;if(o-a>n)return;let u=this._rows;for(let c=0;c<=a;c++)u[0][c]=c;for(let c=1;c<=o;c++){let f=u[(c-1)%3],d=u[c%3],m=d[0]=c;for(let g=1;g<=a;g++){let _=i[c-1]===s[g-1]?0:1,T=Math.min(f[g]+1,d[g-1]+1,f[g-1]+_);if(c>1&&g>1&&i[c-1]===s[g-2]&&i[c-2]===s[g-1]){let A=u[(c-2)%3][g-2];T=Math.min(T,A+1)}T<m&&(m=T),d[g]=T}if(m>n)return}let l=u[o%3][a];return l<=n?l:void 0}};function Um(e){let t=e.length,n=new Array(t);for(let r=0;r<t;++r)n[r]=e.charCodeAt(r);return n}function Gt(e){if(e==null)return Object.create(null);if(Object.getPrototypeOf(e)===null)return e;let t=Object.create(null);for(let[n,r]of Object.entries(e))t[n]=r;return t}function Pm(e){return`"${e.replace($D,jD)}"`}var $D=/[\x00-\x1f\x22\x5c\x7f-\x9f]/g;function jD(e){return GD[e.charCodeAt(0)]}var GD=["\\u0000","\\u0001","\\u0002","\\u0003","\\u0004","\\u0005","\\u0006","\\u0007","\\b","\\t","\\n","\\u000B","\\f","\\r","\\u000E","\\u000F","\\u0010","\\u0011","\\u0012","\\u0013","\\u0014","\\u0015","\\u0016","\\u0017","\\u0018","\\u0019","\\u001A","\\u001B","\\u001C","\\u001D","\\u001E","\\u001F","","",'\\"',"","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","\\\\","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","\\u007F","\\u0080","\\u0081","\\u0082","\\u0083","\\u0084","\\u0085","\\u0086","\\u0087","\\u0088","\\u0089","\\u008A","\\u008B","\\u008C","\\u008D","\\u008E","\\u008F","\\u0090","\\u0091","\\u0092","\\u0093","\\u0094","\\u0095","\\u0096","\\u0097","\\u0098","\\u0099","\\u009A","\\u009B","\\u009C","\\u009D","\\u009E","\\u009F"];var _r=Object.freeze({});function Ft(e,t,n=_f){let r=new Map;for(let A of Object.values(b))r.set(A,li(t,A));let i,s=Array.isArray(e),o=[e],a=-1,u=[],l=e,c,f,d=[],m=[];do{a++;let A=a===o.length,S=A&&u.length!==0;if(A){if(c=m.length===0?void 0:d[d.length-1],l=f,f=m.pop(),S)if(s){l=l.slice();let P=0;for(let[q,Y]of u){let I=q-P;Y===null?(l.splice(I,1),P++):l[I]=Y}}else{l={...l};for(let[P,q]of u)l[P]=q}a=i.index,o=i.keys,u=i.edits,s=i.inArray,i=i.prev}else if(f){if(c=s?a:o[a],l=f[c],l==null)continue;d.push(c)}let L;if(!Array.isArray(l)){var g,_;Vo(l)||Te(!1,`Invalid AST Node: ${W(l)}.`);let P=A?(g=r.get(l.kind))===null||g===void 0?void 0:g.leave:(_=r.get(l.kind))===null||_===void 0?void 0:_.enter;if(L=P?.call(t,l,c,f,d,m),L===_r)break;if(L===!1){if(!A){d.pop();continue}}else if(L!==void 0&&(u.push([c,L]),!A))if(Vo(L))l=L;else{d.pop();continue}}if(L===void 0&&S&&u.push([c,l]),A)d.pop();else{var T;i={inArray:s,index:a,keys:o,edits:u,prev:i},s=Array.isArray(l),o=s?l:(T=n[l.kind])!==null&&T!==void 0?T:[],a=-1,u=[],f&&m.push(f),f=l}}while(i!==void 0);return u.length!==0?u[u.length-1][1]:e}function qo(e){let t=new Array(e.length).fill(null),n=Object.create(null);for(let r of Object.values(b)){let i=!1,s=new Array(e.length).fill(void 0),o=new Array(e.length).fill(void 0);for(let u=0;u<e.length;++u){let{enter:l,leave:c}=li(e[u],r);i||(i=l!=null||c!=null),s[u]=l,o[u]=c}if(!i)continue;let a={enter(...u){let l=u[0];for(let f=0;f<e.length;f++)if(t[f]===null){var c;let d=(c=s[f])===null||c===void 0?void 0:c.apply(e[f],u);if(d===!1)t[f]=l;else if(d===_r)t[f]=_r;else if(d!==void 0)return d}},leave(...u){let l=u[0];for(let f=0;f<e.length;f++)if(t[f]===null){var c;let d=(c=o[f])===null||c===void 0?void 0:c.apply(e[f],u);if(d===_r)t[f]=_r;else if(d!==void 0&&d!==!1)return d}else t[f]===l&&(t[f]=null)}};n[r]=a}return n}function li(e,t){let n=e[t];return typeof n=="object"?n:typeof n=="function"?{enter:n,leave:void 0}:{enter:e.enter,leave:e.leave}}function $e(e){return Ft(e,HD)}var qD=80,HD={Name:{leave:e=>e.value},Variable:{leave:e=>"$"+e.name},Document:{leave:e=>ue(e.definitions,`
|
|
133
133
|
|
|
134
|
-
`)},OperationDefinition:{leave(e){let t=
|
|
135
|
-
`,
|
|
134
|
+
`)},OperationDefinition:{leave(e){let t=Re("(",ue(e.variableDefinitions,", "),")"),n=ue([e.operation,ue([e.name,t]),ue(e.directives," ")]," ");return(n==="query"?"":n+" ")+e.selectionSet}},VariableDefinition:{leave:({variable:e,type:t,defaultValue:n,directives:r})=>e+": "+t+Re(" = ",n)+Re(" ",ue(r," "))},SelectionSet:{leave:({selections:e})=>An(e)},Field:{leave({alias:e,name:t,arguments:n,directives:r,selectionSet:i}){let s=Re("",e,": ")+t,o=s+Re("(",ue(n,", "),")");return o.length>qD&&(o=s+Re(`(
|
|
135
|
+
`,wu(ue(n,`
|
|
136
136
|
`)),`
|
|
137
|
-
)`)),ue([o,ue(r," "),i]," ")}},Argument:{leave:({name:e,value:t})=>e+": "+t},FragmentSpread:{leave:({name:e,directives:t})=>"..."+e+
|
|
138
|
-
`)+ue(["schema",ue(t," "),
|
|
139
|
-
`)+ue(["scalar",t,ue(n," ")]," ")},ObjectTypeDefinition:{leave:({description:e,name:t,interfaces:n,directives:r,fields:i})=>
|
|
140
|
-
`)+ue(["type",t,
|
|
141
|
-
`)+t+(
|
|
142
|
-
`,
|
|
137
|
+
)`)),ue([o,ue(r," "),i]," ")}},Argument:{leave:({name:e,value:t})=>e+": "+t},FragmentSpread:{leave:({name:e,directives:t})=>"..."+e+Re(" ",ue(t," "))},InlineFragment:{leave:({typeCondition:e,directives:t,selectionSet:n})=>ue(["...",Re("on ",e),ue(t," "),n]," ")},FragmentDefinition:{leave:({name:e,typeCondition:t,variableDefinitions:n,directives:r,selectionSet:i})=>`fragment ${e}${Re("(",ue(n,", "),")")} on ${t} ${Re("",ue(r," ")," ")}`+i},IntValue:{leave:({value:e})=>e},FloatValue:{leave:({value:e})=>e},StringValue:{leave:({value:e,block:t})=>t?Fm(e):Pm(e)},BooleanValue:{leave:({value:e})=>e?"true":"false"},NullValue:{leave:()=>"null"},EnumValue:{leave:({value:e})=>e},ListValue:{leave:({values:e})=>"["+ue(e,", ")+"]"},ObjectValue:{leave:({fields:e})=>"{"+ue(e,", ")+"}"},ObjectField:{leave:({name:e,value:t})=>e+": "+t},Directive:{leave:({name:e,arguments:t})=>"@"+e+Re("(",ue(t,", "),")")},NamedType:{leave:({name:e})=>e},ListType:{leave:({type:e})=>"["+e+"]"},NonNullType:{leave:({type:e})=>e+"!"},SchemaDefinition:{leave:({description:e,directives:t,operationTypes:n})=>Re("",e,`
|
|
138
|
+
`)+ue(["schema",ue(t," "),An(n)]," ")},OperationTypeDefinition:{leave:({operation:e,type:t})=>e+": "+t},ScalarTypeDefinition:{leave:({description:e,name:t,directives:n})=>Re("",e,`
|
|
139
|
+
`)+ue(["scalar",t,ue(n," ")]," ")},ObjectTypeDefinition:{leave:({description:e,name:t,interfaces:n,directives:r,fields:i})=>Re("",e,`
|
|
140
|
+
`)+ue(["type",t,Re("implements ",ue(n," & ")),ue(r," "),An(i)]," ")},FieldDefinition:{leave:({description:e,name:t,arguments:n,type:r,directives:i})=>Re("",e,`
|
|
141
|
+
`)+t+(Bm(n)?Re(`(
|
|
142
|
+
`,wu(ue(n,`
|
|
143
143
|
`)),`
|
|
144
|
-
)`):
|
|
145
|
-
`)+ue([t+": "+n,
|
|
146
|
-
`)+ue(["interface",t,
|
|
147
|
-
`)+ue(["union",t,ue(n," "),
|
|
148
|
-
`)+ue(["enum",t,ue(n," "),
|
|
149
|
-
`)+ue([t,ue(n," ")]," ")},InputObjectTypeDefinition:{leave:({description:e,name:t,directives:n,fields:r})=>
|
|
150
|
-
`)+ue(["input",t,ue(n," "),
|
|
151
|
-
`)+"directive @"+t+(
|
|
152
|
-
`,
|
|
144
|
+
)`):Re("(",ue(n,", "),")"))+": "+r+Re(" ",ue(i," "))},InputValueDefinition:{leave:({description:e,name:t,type:n,defaultValue:r,directives:i})=>Re("",e,`
|
|
145
|
+
`)+ue([t+": "+n,Re("= ",r),ue(i," ")]," ")},InterfaceTypeDefinition:{leave:({description:e,name:t,interfaces:n,directives:r,fields:i})=>Re("",e,`
|
|
146
|
+
`)+ue(["interface",t,Re("implements ",ue(n," & ")),ue(r," "),An(i)]," ")},UnionTypeDefinition:{leave:({description:e,name:t,directives:n,types:r})=>Re("",e,`
|
|
147
|
+
`)+ue(["union",t,ue(n," "),Re("= ",ue(r," | "))]," ")},EnumTypeDefinition:{leave:({description:e,name:t,directives:n,values:r})=>Re("",e,`
|
|
148
|
+
`)+ue(["enum",t,ue(n," "),An(r)]," ")},EnumValueDefinition:{leave:({description:e,name:t,directives:n})=>Re("",e,`
|
|
149
|
+
`)+ue([t,ue(n," ")]," ")},InputObjectTypeDefinition:{leave:({description:e,name:t,directives:n,fields:r})=>Re("",e,`
|
|
150
|
+
`)+ue(["input",t,ue(n," "),An(r)]," ")},DirectiveDefinition:{leave:({description:e,name:t,arguments:n,repeatable:r,locations:i})=>Re("",e,`
|
|
151
|
+
`)+"directive @"+t+(Bm(n)?Re(`(
|
|
152
|
+
`,wu(ue(n,`
|
|
153
153
|
`)),`
|
|
154
|
-
)`):
|
|
155
|
-
`,
|
|
154
|
+
)`):Re("(",ue(n,", "),")"))+(r?" repeatable":"")+" on "+ue(i," | ")},SchemaExtension:{leave:({directives:e,operationTypes:t})=>ue(["extend schema",ue(e," "),An(t)]," ")},ScalarTypeExtension:{leave:({name:e,directives:t})=>ue(["extend scalar",e,ue(t," ")]," ")},ObjectTypeExtension:{leave:({name:e,interfaces:t,directives:n,fields:r})=>ue(["extend type",e,Re("implements ",ue(t," & ")),ue(n," "),An(r)]," ")},InterfaceTypeExtension:{leave:({name:e,interfaces:t,directives:n,fields:r})=>ue(["extend interface",e,Re("implements ",ue(t," & ")),ue(n," "),An(r)]," ")},UnionTypeExtension:{leave:({name:e,directives:t,types:n})=>ue(["extend union",e,ue(t," "),Re("= ",ue(n," | "))]," ")},EnumTypeExtension:{leave:({name:e,directives:t,values:n})=>ue(["extend enum",e,ue(t," "),An(n)]," ")},InputObjectTypeExtension:{leave:({name:e,directives:t,fields:n})=>ue(["extend input",e,ue(t," "),An(n)]," ")}};function ue(e,t=""){var n;return(n=e?.filter(r=>r).join(t))!==null&&n!==void 0?n:""}function An(e){return Re(`{
|
|
155
|
+
`,wu(ue(e,`
|
|
156
156
|
`)),`
|
|
157
|
-
}`)}function
|
|
158
|
-
`))}function
|
|
159
|
-
`)))!==null&&t!==void 0?t:!1}function Wo(e,t){switch(e.kind){case b.NULL:return null;case b.INT:return parseInt(e.value,10);case b.FLOAT:return parseFloat(e.value);case b.STRING:case b.ENUM:case b.BOOLEAN:return e.value;case b.LIST:return e.values.map(n=>Wo(n,t));case b.OBJECT:return Gn(e.fields,n=>n.name.value,n=>Wo(n.value,t));case b.VARIABLE:return t?.[e.name.value]}}function Zt(e){if(e!=null||we(!1,"Must provide name."),typeof e=="string"||we(!1,"Expected name to be a string."),e.length===0)throw new V("Expected name to be a non-empty string.");for(let t=1;t<e.length;++t)if(!Eu(e.charCodeAt(t)))throw new V(`Names must only contain [_a-zA-Z0-9] but "${e}" does not.`);if(!jo(e.charCodeAt(0)))throw new V(`Names must start with [_a-zA-Z] but "${e}" does not.`);return e}function bf(e){if(e==="true"||e==="false"||e==="null")throw new V(`Enum values cannot be named: ${e}`);return Zt(e)}function Ds(e){return vt(e)||ye(e)||Le(e)||ct(e)||ze(e)||Ae(e)||Be(e)||ve(e)}function vt(e){return Gt(e,Bt)}function ye(e){return Gt(e,lt)}function Lu(e){if(!ye(e))throw new Error(`Expected ${Y(e)} to be a GraphQL Object type.`);return e}function Le(e){return Gt(e,Ct)}function Au(e){if(!Le(e))throw new Error(`Expected ${Y(e)} to be a GraphQL Interface type.`);return e}function ct(e){return Gt(e,qn)}function ze(e){return Gt(e,St)}function Ae(e){return Gt(e,mn)}function Be(e){return Gt(e,qe)}function ve(e){return Gt(e,ge)}function ft(e){return vt(e)||ze(e)||Ae(e)||zo(e)&&ft(e.ofType)}function an(e){return vt(e)||ye(e)||Le(e)||ct(e)||ze(e)||zo(e)&&an(e.ofType)}function un(e){return vt(e)||ze(e)}function _t(e){return ye(e)||Le(e)||ct(e)}function yt(e){return Le(e)||ct(e)}function Fu(e){if(!yt(e))throw new Error(`Expected ${Y(e)} to be a GraphQL abstract type.`);return e}var qe=class{constructor(t){Ds(t)||we(!1,`Expected ${Y(t)} to be a GraphQL type.`),this.ofType=t}get[Symbol.toStringTag](){return"GraphQLList"}toString(){return"["+String(this.ofType)+"]"}toJSON(){return this.toString()}},ge=class{constructor(t){bs(t)||we(!1,`Expected ${Y(t)} to be a GraphQL nullable type.`),this.ofType=t}get[Symbol.toStringTag](){return"GraphQLNonNull"}toString(){return String(this.ofType)+"!"}toJSON(){return this.toString()}};function zo(e){return Be(e)||ve(e)}function bs(e){return Ds(e)&&!ve(e)}function Su(e){if(!bs(e))throw new Error(`Expected ${Y(e)} to be a GraphQL nullable type.`);return e}function qr(e){if(e)return ve(e)?e.ofType:e}function Ru(e){return vt(e)||ye(e)||Le(e)||ct(e)||ze(e)||Ae(e)}function Ce(e){if(e){let t=e;for(;zo(t);)t=t.ofType;return t}}function Iu(e){return typeof e=="function"?e():e}function Ou(e){return typeof e=="function"?e():e}var Bt=class{constructor(t){var n,r,i,s;let o=(n=t.parseValue)!==null&&n!==void 0?n:_f;this.name=Zt(t.name),this.description=t.description,this.specifiedByURL=t.specifiedByURL,this.serialize=(r=t.serialize)!==null&&r!==void 0?r:_f,this.parseValue=o,this.parseLiteral=(i=t.parseLiteral)!==null&&i!==void 0?i:(a,u)=>o(Wo(a,u)),this.extensions=qt(t.extensions),this.astNode=t.astNode,this.extensionASTNodes=(s=t.extensionASTNodes)!==null&&s!==void 0?s:[],t.specifiedByURL==null||typeof t.specifiedByURL=="string"||we(!1,`${this.name} must provide "specifiedByURL" as a string, but got: ${Y(t.specifiedByURL)}.`),t.serialize==null||typeof t.serialize=="function"||we(!1,`${this.name} must provide "serialize" function. If this custom Scalar is also used as an input type, ensure "parseValue" and "parseLiteral" functions are also provided.`),t.parseLiteral&&(typeof t.parseValue=="function"&&typeof t.parseLiteral=="function"||we(!1,`${this.name} must provide both "parseValue" and "parseLiteral" functions.`))}get[Symbol.toStringTag](){return"GraphQLScalarType"}toConfig(){return{name:this.name,description:this.description,specifiedByURL:this.specifiedByURL,serialize:this.serialize,parseValue:this.parseValue,parseLiteral:this.parseLiteral,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes}}toString(){return this.name}toJSON(){return this.toString()}},lt=class{constructor(t){var n;this.name=Zt(t.name),this.description=t.description,this.isTypeOf=t.isTypeOf,this.extensions=qt(t.extensions),this.astNode=t.astNode,this.extensionASTNodes=(n=t.extensionASTNodes)!==null&&n!==void 0?n:[],this._fields=()=>Cm(t),this._interfaces=()=>Bm(t),t.isTypeOf==null||typeof t.isTypeOf=="function"||we(!1,`${this.name} must provide "isTypeOf" as a function, but got: ${Y(t.isTypeOf)}.`)}get[Symbol.toStringTag](){return"GraphQLObjectType"}getFields(){return typeof this._fields=="function"&&(this._fields=this._fields()),this._fields}getInterfaces(){return typeof this._interfaces=="function"&&(this._interfaces=this._interfaces()),this._interfaces}toConfig(){return{name:this.name,description:this.description,interfaces:this.getInterfaces(),fields:Vm(this.getFields()),isTypeOf:this.isTypeOf,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes}}toString(){return this.name}toJSON(){return this.toString()}};function Bm(e){var t;let n=Iu((t=e.interfaces)!==null&&t!==void 0?t:[]);return Array.isArray(n)||we(!1,`${e.name} interfaces must be an Array or a function which returns an Array.`),n}function Cm(e){let t=Ou(e.fields);return Es(t)||we(!1,`${e.name} fields must be an object with field names as keys or a function which returns such an object.`),Sn(t,(n,r)=>{var i;Es(n)||we(!1,`${e.name}.${r} field config must be an object.`),n.resolve==null||typeof n.resolve=="function"||we(!1,`${e.name}.${r} field resolver must be a function if provided, but got: ${Y(n.resolve)}.`);let s=(i=n.args)!==null&&i!==void 0?i:{};return Es(s)||we(!1,`${e.name}.${r} args must be an object with argument names as keys.`),{name:Zt(r),description:n.description,type:n.type,args:vf(s),resolve:n.resolve,subscribe:n.subscribe,deprecationReason:n.deprecationReason,extensions:qt(n.extensions),astNode:n.astNode}})}function vf(e){return Object.entries(e).map(([t,n])=>({name:Zt(t),description:n.description,type:n.type,defaultValue:n.defaultValue,deprecationReason:n.deprecationReason,extensions:qt(n.extensions),astNode:n.astNode}))}function Es(e){return Pt(e)&&!Array.isArray(e)}function Vm(e){return Sn(e,t=>({description:t.description,type:t.type,args:Nf(t.args),resolve:t.resolve,subscribe:t.subscribe,deprecationReason:t.deprecationReason,extensions:t.extensions,astNode:t.astNode}))}function Nf(e){return Gn(e,t=>t.name,t=>({description:t.description,type:t.type,defaultValue:t.defaultValue,deprecationReason:t.deprecationReason,extensions:t.extensions,astNode:t.astNode}))}function br(e){return ve(e.type)&&e.defaultValue===void 0}var Ct=class{constructor(t){var n;this.name=Zt(t.name),this.description=t.description,this.resolveType=t.resolveType,this.extensions=qt(t.extensions),this.astNode=t.astNode,this.extensionASTNodes=(n=t.extensionASTNodes)!==null&&n!==void 0?n:[],this._fields=Cm.bind(void 0,t),this._interfaces=Bm.bind(void 0,t),t.resolveType==null||typeof t.resolveType=="function"||we(!1,`${this.name} must provide "resolveType" as a function, but got: ${Y(t.resolveType)}.`)}get[Symbol.toStringTag](){return"GraphQLInterfaceType"}getFields(){return typeof this._fields=="function"&&(this._fields=this._fields()),this._fields}getInterfaces(){return typeof this._interfaces=="function"&&(this._interfaces=this._interfaces()),this._interfaces}toConfig(){return{name:this.name,description:this.description,interfaces:this.getInterfaces(),fields:Vm(this.getFields()),resolveType:this.resolveType,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes}}toString(){return this.name}toJSON(){return this.toString()}},qn=class{constructor(t){var n;this.name=Zt(t.name),this.description=t.description,this.resolveType=t.resolveType,this.extensions=qt(t.extensions),this.astNode=t.astNode,this.extensionASTNodes=(n=t.extensionASTNodes)!==null&&n!==void 0?n:[],this._types=ZD.bind(void 0,t),t.resolveType==null||typeof t.resolveType=="function"||we(!1,`${this.name} must provide "resolveType" as a function, but got: ${Y(t.resolveType)}.`)}get[Symbol.toStringTag](){return"GraphQLUnionType"}getTypes(){return typeof this._types=="function"&&(this._types=this._types()),this._types}toConfig(){return{name:this.name,description:this.description,types:this.getTypes(),resolveType:this.resolveType,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes}}toString(){return this.name}toJSON(){return this.toString()}};function ZD(e){let t=Iu(e.types);return Array.isArray(t)||we(!1,`Must provide Array of types or a function which returns such an array for Union ${e.name}.`),t}var St=class{constructor(t){var n;this.name=Zt(t.name),this.description=t.description,this.extensions=qt(t.extensions),this.astNode=t.astNode,this.extensionASTNodes=(n=t.extensionASTNodes)!==null&&n!==void 0?n:[],this._values=typeof t.values=="function"?t.values:Pm(this.name,t.values),this._valueLookup=null,this._nameLookup=null}get[Symbol.toStringTag](){return"GraphQLEnumType"}getValues(){return typeof this._values=="function"&&(this._values=Pm(this.name,this._values())),this._values}getValue(t){return this._nameLookup===null&&(this._nameLookup=sn(this.getValues(),n=>n.name)),this._nameLookup[t]}serialize(t){this._valueLookup===null&&(this._valueLookup=new Map(this.getValues().map(r=>[r.value,r])));let n=this._valueLookup.get(t);if(n===void 0)throw new V(`Enum "${this.name}" cannot represent value: ${Y(t)}`);return n.name}parseValue(t){if(typeof t!="string"){let r=Y(t);throw new V(`Enum "${this.name}" cannot represent non-string value: ${r}.`+yu(this,r))}let n=this.getValue(t);if(n==null)throw new V(`Value "${t}" does not exist in "${this.name}" enum.`+yu(this,t));return n.value}parseLiteral(t,n){if(t.kind!==b.ENUM){let i=$e(t);throw new V(`Enum "${this.name}" cannot represent non-enum value: ${i}.`+yu(this,i),{nodes:t})}let r=this.getValue(t.value);if(r==null){let i=$e(t);throw new V(`Value "${i}" does not exist in "${this.name}" enum.`+yu(this,i),{nodes:t})}return r.value}toConfig(){let t=Gn(this.getValues(),n=>n.name,n=>({description:n.description,value:n.value,deprecationReason:n.deprecationReason,extensions:n.extensions,astNode:n.astNode}));return{name:this.name,description:this.description,values:t,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes}}toString(){return this.name}toJSON(){return this.toString()}};function yu(e,t){let n=e.getValues().map(i=>i.name),r=on(t,n);return Jt("the enum value",r)}function Pm(e,t){return Es(t)||we(!1,`${e} values must be an object with value names as keys.`),Object.entries(t).map(([n,r])=>(Es(r)||we(!1,`${e}.${n} must refer to an object with a "value" key representing an internal value but got: ${Y(r)}.`),{name:bf(n),description:r.description,value:r.value!==void 0?r.value:n,deprecationReason:r.deprecationReason,extensions:qt(r.extensions),astNode:r.astNode}))}var mn=class{constructor(t){var n,r;this.name=Zt(t.name),this.description=t.description,this.extensions=qt(t.extensions),this.astNode=t.astNode,this.extensionASTNodes=(n=t.extensionASTNodes)!==null&&n!==void 0?n:[],this.isOneOf=(r=t.isOneOf)!==null&&r!==void 0?r:!1,this._fields=KD.bind(void 0,t)}get[Symbol.toStringTag](){return"GraphQLInputObjectType"}getFields(){return typeof this._fields=="function"&&(this._fields=this._fields()),this._fields}toConfig(){let t=Sn(this.getFields(),n=>({description:n.description,type:n.type,defaultValue:n.defaultValue,deprecationReason:n.deprecationReason,extensions:n.extensions,astNode:n.astNode}));return{name:this.name,description:this.description,fields:t,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes,isOneOf:this.isOneOf}}toString(){return this.name}toJSON(){return this.toString()}};function KD(e){let t=Ou(e.fields);return Es(t)||we(!1,`${e.name} fields must be an object with field names as keys or a function which returns such an object.`),Sn(t,(n,r)=>(!("resolve"in n)||we(!1,`${e.name}.${r} field has a resolve property, but Input Types cannot define resolvers.`),{name:Zt(r),description:n.description,type:n.type,defaultValue:n.defaultValue,deprecationReason:n.deprecationReason,extensions:qt(n.extensions),astNode:n.astNode}))}function vs(e){return ve(e.type)&&e.defaultValue===void 0}function Ns(e,t){return e===t?!0:ve(e)&&ve(t)||Be(e)&&Be(t)?Ns(e.ofType,t.ofType):!1}function Hn(e,t,n){return t===n?!0:ve(n)?ve(t)?Hn(e,t.ofType,n.ofType):!1:ve(t)?Hn(e,t.ofType,n):Be(n)?Be(t)?Hn(e,t.ofType,n.ofType):!1:Be(t)?!1:yt(n)&&(Le(t)||ye(t))&&e.isSubType(n,t)}function mi(e,t,n){return t===n?!0:yt(t)?yt(n)?e.getPossibleTypes(t).some(r=>e.isSubType(n,r)):e.isSubType(t,n):yt(n)?e.isSubType(n,t):!1}var Qo=2147483647,Yo=-2147483648,Tf=new Bt({name:"Int",description:"The `Int` scalar type represents non-fractional signed whole numeric values. Int can represent values between -(2^31) and 2^31 - 1.",serialize(e){let t=Zo(e);if(typeof t=="boolean")return t?1:0;let n=t;if(typeof t=="string"&&t!==""&&(n=Number(t)),typeof n!="number"||!Number.isInteger(n))throw new V(`Int cannot represent non-integer value: ${Y(t)}`);if(n>Qo||n<Yo)throw new V("Int cannot represent non 32-bit signed integer value: "+Y(t));return n},parseValue(e){if(typeof e!="number"||!Number.isInteger(e))throw new V(`Int cannot represent non-integer value: ${Y(e)}`);if(e>Qo||e<Yo)throw new V(`Int cannot represent non 32-bit signed integer value: ${e}`);return e},parseLiteral(e){if(e.kind!==b.INT)throw new V(`Int cannot represent non-integer value: ${$e(e)}`,{nodes:e});let t=parseInt(e.value,10);if(t>Qo||t<Yo)throw new V(`Int cannot represent non 32-bit signed integer value: ${e.value}`,{nodes:e});return t}}),Xo=new Bt({name:"Float",description:"The `Float` scalar type represents signed double-precision fractional values as specified by [IEEE 754](https://en.wikipedia.org/wiki/IEEE_floating_point).",serialize(e){let t=Zo(e);if(typeof t=="boolean")return t?1:0;let n=t;if(typeof t=="string"&&t!==""&&(n=Number(t)),typeof n!="number"||!Number.isFinite(n))throw new V(`Float cannot represent non numeric value: ${Y(t)}`);return n},parseValue(e){if(typeof e!="number"||!Number.isFinite(e))throw new V(`Float cannot represent non numeric value: ${Y(e)}`);return e},parseLiteral(e){if(e.kind!==b.FLOAT&&e.kind!==b.INT)throw new V(`Float cannot represent non numeric value: ${$e(e)}`,e);return parseFloat(e.value)}}),Ze=new Bt({name:"String",description:"The `String` scalar type represents textual data, represented as UTF-8 character sequences. The String type is most often used by GraphQL to represent free-form human-readable text.",serialize(e){let t=Zo(e);if(typeof t=="string")return t;if(typeof t=="boolean")return t?"true":"false";if(typeof t=="number"&&Number.isFinite(t))return t.toString();throw new V(`String cannot represent value: ${Y(e)}`)},parseValue(e){if(typeof e!="string")throw new V(`String cannot represent a non string value: ${Y(e)}`);return e},parseLiteral(e){if(e.kind!==b.STRING)throw new V(`String cannot represent a non string value: ${$e(e)}`,{nodes:e});return e.value}}),tt=new Bt({name:"Boolean",description:"The `Boolean` scalar type represents `true` or `false`.",serialize(e){let t=Zo(e);if(typeof t=="boolean")return t;if(Number.isFinite(t))return t!==0;throw new V(`Boolean cannot represent a non boolean value: ${Y(t)}`)},parseValue(e){if(typeof e!="boolean")throw new V(`Boolean cannot represent a non boolean value: ${Y(e)}`);return e},parseLiteral(e){if(e.kind!==b.BOOLEAN)throw new V(`Boolean cannot represent a non boolean value: ${$e(e)}`,{nodes:e});return e.value}}),Jo=new Bt({name:"ID",description:'The `ID` scalar type represents a unique identifier, often used to refetch an object or as key for a cache. The ID type appears in a JSON response as a String; however, it is not intended to be human-readable. When expected as an input type, any string (such as `"4"`) or integer (such as `4`) input value will be accepted as an ID.',serialize(e){let t=Zo(e);if(typeof t=="string")return t;if(Number.isInteger(t))return String(t);throw new V(`ID cannot represent value: ${Y(e)}`)},parseValue(e){if(typeof e=="string")return e;if(typeof e=="number"&&Number.isInteger(e))return e.toString();throw new V(`ID cannot represent value: ${Y(e)}`)},parseLiteral(e){if(e.kind!==b.STRING&&e.kind!==b.INT)throw new V("ID cannot represent a non-string and non-integer value: "+$e(e),{nodes:e});return e.value}}),vr=Object.freeze([Ze,Tf,Xo,tt,Jo]);function ku(e){return vr.some(({name:t})=>e.name===t)}function Zo(e){if(Pt(e)){if(typeof e.valueOf=="function"){let t=e.valueOf();if(!Pt(t))return t}if(typeof e.toJSON=="function")return e.toJSON()}return e}function Ko(e){return Gt(e,Kt)}var Kt=class{constructor(t){var n,r;this.name=Zt(t.name),this.description=t.description,this.locations=t.locations,this.isRepeatable=(n=t.isRepeatable)!==null&&n!==void 0?n:!1,this.extensions=qt(t.extensions),this.astNode=t.astNode,Array.isArray(t.locations)||we(!1,`@${t.name} locations must be an Array.`);let i=(r=t.args)!==null&&r!==void 0?r:{};Pt(i)&&!Array.isArray(i)||we(!1,`@${t.name} args must be an object with argument names as keys.`),this.args=vf(i)}get[Symbol.toStringTag](){return"GraphQLDirective"}toConfig(){return{name:this.name,description:this.description,locations:this.locations,args:Nf(this.args),isRepeatable:this.isRepeatable,extensions:this.extensions,astNode:this.astNode}}toString(){return"@"+this.name}toJSON(){return this.toString()}},Mu=new Kt({name:"include",description:"Directs the executor to include this field or fragment only when the `if` argument is true.",locations:[oe.FIELD,oe.FRAGMENT_SPREAD,oe.INLINE_FRAGMENT],args:{if:{type:new ge(tt),description:"Included when true."}}}),Uu=new Kt({name:"skip",description:"Directs the executor to skip this field or fragment when the `if` argument is true.",locations:[oe.FIELD,oe.FRAGMENT_SPREAD,oe.INLINE_FRAGMENT],args:{if:{type:new ge(tt),description:"Skipped when true."}}}),$m="No longer supported",Ts=new Kt({name:"deprecated",description:"Marks an element of a GraphQL schema as no longer supported.",locations:[oe.FIELD_DEFINITION,oe.ARGUMENT_DEFINITION,oe.INPUT_FIELD_DEFINITION,oe.ENUM_VALUE],args:{reason:{type:Ze,description:"Explains why this element was deprecated, usually also including a suggestion for how to access supported similar data. Formatted using the Markdown syntax, as specified by [CommonMark](https://commonmark.org/).",defaultValue:$m}}}),Pu=new Kt({name:"specifiedBy",description:"Exposes a URL that specifies the behavior of this scalar.",locations:[oe.SCALAR],args:{url:{type:new ge(Ze),description:"The URL that specifies the behavior of this scalar."}}}),Bu=new Kt({name:"oneOf",description:"Indicates exactly one field must be supplied and this field must not be `null`.",locations:[oe.INPUT_OBJECT],args:{}}),ln=Object.freeze([Mu,Uu,Ts,Pu,Bu]);function jm(e){return typeof e=="object"&&typeof e?.[Symbol.iterator]=="function"}function gi(e,t){if(ve(t)){let n=gi(e,t.ofType);return n?.kind===b.NULL?null:n}if(e===null)return{kind:b.NULL};if(e===void 0)return null;if(Be(t)){let n=t.ofType;if(jm(e)){let r=[];for(let i of e){let s=gi(i,n);s!=null&&r.push(s)}return{kind:b.LIST,values:r}}return gi(e,n)}if(Ae(t)){if(!Pt(e))return null;let n=[];for(let r of Object.values(t.getFields())){let i=gi(e[r.name],r.type);i&&n.push({kind:b.OBJECT_FIELD,name:{kind:b.NAME,value:r.name},value:i})}return{kind:b.OBJECT,fields:n}}if(un(t)){let n=t.serialize(e);if(n==null)return null;if(typeof n=="boolean")return{kind:b.BOOLEAN,value:n};if(typeof n=="number"&&Number.isFinite(n)){let r=String(n);return Gm.test(r)?{kind:b.INT,value:r}:{kind:b.FLOAT,value:r}}if(typeof n=="string")return ze(t)?{kind:b.ENUM,value:n}:t===Jo&&Gm.test(n)?{kind:b.INT,value:n}:{kind:b.STRING,value:n};throw new TypeError(`Cannot convert value to AST: ${Y(n)}.`)}et(!1,"Unexpected input type: "+Y(t))}var Gm=/^-?(?:0|[1-9][0-9]*)$/;var ws=new lt({name:"__Schema",description:"A GraphQL Schema defines the capabilities of a GraphQL server. It exposes all available types and directives on the server, as well as the entry points for query, mutation, and subscription operations.",fields:()=>({description:{type:Ze,resolve:e=>e.description},types:{description:"A list of all types supported by this server.",type:new ge(new qe(new ge(cn))),resolve(e){return Object.values(e.getTypeMap())}},queryType:{description:"The type that query operations will be rooted at.",type:new ge(cn),resolve:e=>e.getQueryType()},mutationType:{description:"If this server supports mutation, the type that mutation operations will be rooted at.",type:cn,resolve:e=>e.getMutationType()},subscriptionType:{description:"If this server support subscription, the type that subscription operations will be rooted at.",type:cn,resolve:e=>e.getSubscriptionType()},directives:{description:"A list of all directives supported by this server.",type:new ge(new qe(new ge(Cu))),resolve:e=>e.getDirectives()}})}),Cu=new lt({name:"__Directive",description:`A Directive provides a way to describe alternate runtime execution and type validation behavior in a GraphQL document.
|
|
157
|
+
}`)}function Re(e,t,n=""){return t!=null&&t!==""?e+t+n:""}function wu(e){return Re(" ",e.replace(/\n/g,`
|
|
158
|
+
`))}function Bm(e){var t;return(t=e?.some(n=>n.includes(`
|
|
159
|
+
`)))!==null&&t!==void 0?t:!1}function Ho(e,t){switch(e.kind){case b.NULL:return null;case b.INT:return parseInt(e.value,10);case b.FLOAT:return parseFloat(e.value);case b.STRING:case b.ENUM:case b.BOOLEAN:return e.value;case b.LIST:return e.values.map(n=>Ho(n,t));case b.OBJECT:return qn(e.fields,n=>n.name.value,n=>Ho(n.value,t));case b.VARIABLE:return t?.[e.name.value]}}function Xt(e){if(e!=null||Te(!1,"Must provide name."),typeof e=="string"||Te(!1,"Expected name to be a string."),e.length===0)throw new C("Expected name to be a non-empty string.");for(let t=1;t<e.length;++t)if(!Eu(e.charCodeAt(t)))throw new C(`Names must only contain [_a-zA-Z0-9] but "${e}" does not.`);if(!$o(e.charCodeAt(0)))throw new C(`Names must start with [_a-zA-Z] but "${e}" does not.`);return e}function Nf(e){if(e==="true"||e==="false"||e==="null")throw new C(`Enum values cannot be named: ${e}`);return Xt(e)}function ms(e){return Tt(e)||we(e)||xe(e)||ft(e)||ze(e)||Le(e)||Pe(e)||be(e)}function Tt(e){return jt(e,Pt)}function we(e){return jt(e,ct)}function Lu(e){if(!we(e))throw new Error(`Expected ${W(e)} to be a GraphQL Object type.`);return e}function xe(e){return jt(e,Bt)}function Au(e){if(!xe(e))throw new Error(`Expected ${W(e)} to be a GraphQL Interface type.`);return e}function ft(e){return jt(e,Hn)}function ze(e){return jt(e,St)}function Le(e){return jt(e,dn)}function Pe(e){return jt(e,He)}function be(e){return jt(e,ge)}function ht(e){return Tt(e)||ze(e)||Le(e)||Wo(e)&&ht(e.ofType)}function an(e){return Tt(e)||we(e)||xe(e)||ft(e)||ze(e)||Wo(e)&&an(e.ofType)}function un(e){return Tt(e)||ze(e)}function Et(e){return we(e)||xe(e)||ft(e)}function xt(e){return xe(e)||ft(e)}function Fu(e){if(!xt(e))throw new Error(`Expected ${W(e)} to be a GraphQL abstract type.`);return e}var He=class{constructor(t){ms(t)||Te(!1,`Expected ${W(t)} to be a GraphQL type.`),this.ofType=t}get[Symbol.toStringTag](){return"GraphQLList"}toString(){return"["+String(this.ofType)+"]"}toJSON(){return this.toString()}},ge=class{constructor(t){gs(t)||Te(!1,`Expected ${W(t)} to be a GraphQL nullable type.`),this.ofType=t}get[Symbol.toStringTag](){return"GraphQLNonNull"}toString(){return String(this.ofType)+"!"}toJSON(){return this.toString()}};function Wo(e){return Pe(e)||be(e)}function gs(e){return ms(e)&&!be(e)}function Su(e){if(!gs(e))throw new Error(`Expected ${W(e)} to be a GraphQL nullable type.`);return e}function jr(e){if(e)return be(e)?e.ofType:e}function Ru(e){return Tt(e)||we(e)||xe(e)||ft(e)||ze(e)||Le(e)}function Be(e){if(e){let t=e;for(;Wo(t);)t=t.ofType;return t}}function Iu(e){return typeof e=="function"?e():e}function Ou(e){return typeof e=="function"?e():e}var Pt=class{constructor(t){var n,r,i,s;let o=(n=t.parseValue)!==null&&n!==void 0?n:Df;this.name=Xt(t.name),this.description=t.description,this.specifiedByURL=t.specifiedByURL,this.serialize=(r=t.serialize)!==null&&r!==void 0?r:Df,this.parseValue=o,this.parseLiteral=(i=t.parseLiteral)!==null&&i!==void 0?i:(a,u)=>o(Ho(a,u)),this.extensions=Gt(t.extensions),this.astNode=t.astNode,this.extensionASTNodes=(s=t.extensionASTNodes)!==null&&s!==void 0?s:[],t.specifiedByURL==null||typeof t.specifiedByURL=="string"||Te(!1,`${this.name} must provide "specifiedByURL" as a string, but got: ${W(t.specifiedByURL)}.`),t.serialize==null||typeof t.serialize=="function"||Te(!1,`${this.name} must provide "serialize" function. If this custom Scalar is also used as an input type, ensure "parseValue" and "parseLiteral" functions are also provided.`),t.parseLiteral&&(typeof t.parseValue=="function"&&typeof t.parseLiteral=="function"||Te(!1,`${this.name} must provide both "parseValue" and "parseLiteral" functions.`))}get[Symbol.toStringTag](){return"GraphQLScalarType"}toConfig(){return{name:this.name,description:this.description,specifiedByURL:this.specifiedByURL,serialize:this.serialize,parseValue:this.parseValue,parseLiteral:this.parseLiteral,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes}}toString(){return this.name}toJSON(){return this.toString()}},ct=class{constructor(t){var n;this.name=Xt(t.name),this.description=t.description,this.isTypeOf=t.isTypeOf,this.extensions=Gt(t.extensions),this.astNode=t.astNode,this.extensionASTNodes=(n=t.extensionASTNodes)!==null&&n!==void 0?n:[],this._fields=()=>$m(t),this._interfaces=()=>Vm(t),t.isTypeOf==null||typeof t.isTypeOf=="function"||Te(!1,`${this.name} must provide "isTypeOf" as a function, but got: ${W(t.isTypeOf)}.`)}get[Symbol.toStringTag](){return"GraphQLObjectType"}getFields(){return typeof this._fields=="function"&&(this._fields=this._fields()),this._fields}getInterfaces(){return typeof this._interfaces=="function"&&(this._interfaces=this._interfaces()),this._interfaces}toConfig(){return{name:this.name,description:this.description,interfaces:this.getInterfaces(),fields:jm(this.getFields()),isTypeOf:this.isTypeOf,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes}}toString(){return this.name}toJSON(){return this.toString()}};function Vm(e){var t;let n=Iu((t=e.interfaces)!==null&&t!==void 0?t:[]);return Array.isArray(n)||Te(!1,`${e.name} interfaces must be an Array or a function which returns an Array.`),n}function $m(e){let t=Ou(e.fields);return ds(t)||Te(!1,`${e.name} fields must be an object with field names as keys or a function which returns such an object.`),Ln(t,(n,r)=>{var i;ds(n)||Te(!1,`${e.name}.${r} field config must be an object.`),n.resolve==null||typeof n.resolve=="function"||Te(!1,`${e.name}.${r} field resolver must be a function if provided, but got: ${W(n.resolve)}.`);let s=(i=n.args)!==null&&i!==void 0?i:{};return ds(s)||Te(!1,`${e.name}.${r} args must be an object with argument names as keys.`),{name:Xt(r),description:n.description,type:n.type,args:Tf(s),resolve:n.resolve,subscribe:n.subscribe,deprecationReason:n.deprecationReason,extensions:Gt(n.extensions),astNode:n.astNode}})}function Tf(e){return Object.entries(e).map(([t,n])=>({name:Xt(t),description:n.description,type:n.type,defaultValue:n.defaultValue,deprecationReason:n.deprecationReason,extensions:Gt(n.extensions),astNode:n.astNode}))}function ds(e){return Ut(e)&&!Array.isArray(e)}function jm(e){return Ln(e,t=>({description:t.description,type:t.type,args:yf(t.args),resolve:t.resolve,subscribe:t.subscribe,deprecationReason:t.deprecationReason,extensions:t.extensions,astNode:t.astNode}))}function yf(e){return qn(e,t=>t.name,t=>({description:t.description,type:t.type,defaultValue:t.defaultValue,deprecationReason:t.deprecationReason,extensions:t.extensions,astNode:t.astNode}))}function Er(e){return be(e.type)&&e.defaultValue===void 0}var Bt=class{constructor(t){var n;this.name=Xt(t.name),this.description=t.description,this.resolveType=t.resolveType,this.extensions=Gt(t.extensions),this.astNode=t.astNode,this.extensionASTNodes=(n=t.extensionASTNodes)!==null&&n!==void 0?n:[],this._fields=$m.bind(void 0,t),this._interfaces=Vm.bind(void 0,t),t.resolveType==null||typeof t.resolveType=="function"||Te(!1,`${this.name} must provide "resolveType" as a function, but got: ${W(t.resolveType)}.`)}get[Symbol.toStringTag](){return"GraphQLInterfaceType"}getFields(){return typeof this._fields=="function"&&(this._fields=this._fields()),this._fields}getInterfaces(){return typeof this._interfaces=="function"&&(this._interfaces=this._interfaces()),this._interfaces}toConfig(){return{name:this.name,description:this.description,interfaces:this.getInterfaces(),fields:jm(this.getFields()),resolveType:this.resolveType,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes}}toString(){return this.name}toJSON(){return this.toString()}},Hn=class{constructor(t){var n;this.name=Xt(t.name),this.description=t.description,this.resolveType=t.resolveType,this.extensions=Gt(t.extensions),this.astNode=t.astNode,this.extensionASTNodes=(n=t.extensionASTNodes)!==null&&n!==void 0?n:[],this._types=WD.bind(void 0,t),t.resolveType==null||typeof t.resolveType=="function"||Te(!1,`${this.name} must provide "resolveType" as a function, but got: ${W(t.resolveType)}.`)}get[Symbol.toStringTag](){return"GraphQLUnionType"}getTypes(){return typeof this._types=="function"&&(this._types=this._types()),this._types}toConfig(){return{name:this.name,description:this.description,types:this.getTypes(),resolveType:this.resolveType,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes}}toString(){return this.name}toJSON(){return this.toString()}};function WD(e){let t=Iu(e.types);return Array.isArray(t)||Te(!1,`Must provide Array of types or a function which returns such an array for Union ${e.name}.`),t}var St=class{constructor(t){var n;this.name=Xt(t.name),this.description=t.description,this.extensions=Gt(t.extensions),this.astNode=t.astNode,this.extensionASTNodes=(n=t.extensionASTNodes)!==null&&n!==void 0?n:[],this._values=typeof t.values=="function"?t.values:Cm(this.name,t.values),this._valueLookup=null,this._nameLookup=null}get[Symbol.toStringTag](){return"GraphQLEnumType"}getValues(){return typeof this._values=="function"&&(this._values=Cm(this.name,this._values())),this._values}getValue(t){return this._nameLookup===null&&(this._nameLookup=sn(this.getValues(),n=>n.name)),this._nameLookup[t]}serialize(t){this._valueLookup===null&&(this._valueLookup=new Map(this.getValues().map(r=>[r.value,r])));let n=this._valueLookup.get(t);if(n===void 0)throw new C(`Enum "${this.name}" cannot represent value: ${W(t)}`);return n.name}parseValue(t){if(typeof t!="string"){let r=W(t);throw new C(`Enum "${this.name}" cannot represent non-string value: ${r}.`+xu(this,r))}let n=this.getValue(t);if(n==null)throw new C(`Value "${t}" does not exist in "${this.name}" enum.`+xu(this,t));return n.value}parseLiteral(t,n){if(t.kind!==b.ENUM){let i=$e(t);throw new C(`Enum "${this.name}" cannot represent non-enum value: ${i}.`+xu(this,i),{nodes:t})}let r=this.getValue(t.value);if(r==null){let i=$e(t);throw new C(`Value "${i}" does not exist in "${this.name}" enum.`+xu(this,i),{nodes:t})}return r.value}toConfig(){let t=qn(this.getValues(),n=>n.name,n=>({description:n.description,value:n.value,deprecationReason:n.deprecationReason,extensions:n.extensions,astNode:n.astNode}));return{name:this.name,description:this.description,values:t,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes}}toString(){return this.name}toJSON(){return this.toString()}};function xu(e,t){let n=e.getValues().map(i=>i.name),r=on(t,n);return Yt("the enum value",r)}function Cm(e,t){return ds(t)||Te(!1,`${e} values must be an object with value names as keys.`),Object.entries(t).map(([n,r])=>(ds(r)||Te(!1,`${e}.${n} must refer to an object with a "value" key representing an internal value but got: ${W(r)}.`),{name:Nf(n),description:r.description,value:r.value!==void 0?r.value:n,deprecationReason:r.deprecationReason,extensions:Gt(r.extensions),astNode:r.astNode}))}var dn=class{constructor(t){var n,r;this.name=Xt(t.name),this.description=t.description,this.extensions=Gt(t.extensions),this.astNode=t.astNode,this.extensionASTNodes=(n=t.extensionASTNodes)!==null&&n!==void 0?n:[],this.isOneOf=(r=t.isOneOf)!==null&&r!==void 0?r:!1,this._fields=zD.bind(void 0,t)}get[Symbol.toStringTag](){return"GraphQLInputObjectType"}getFields(){return typeof this._fields=="function"&&(this._fields=this._fields()),this._fields}toConfig(){let t=Ln(this.getFields(),n=>({description:n.description,type:n.type,defaultValue:n.defaultValue,deprecationReason:n.deprecationReason,extensions:n.extensions,astNode:n.astNode}));return{name:this.name,description:this.description,fields:t,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes,isOneOf:this.isOneOf}}toString(){return this.name}toJSON(){return this.toString()}};function zD(e){let t=Ou(e.fields);return ds(t)||Te(!1,`${e.name} fields must be an object with field names as keys or a function which returns such an object.`),Ln(t,(n,r)=>(!("resolve"in n)||Te(!1,`${e.name}.${r} field has a resolve property, but Input Types cannot define resolvers.`),{name:Xt(r),description:n.description,type:n.type,defaultValue:n.defaultValue,deprecationReason:n.deprecationReason,extensions:Gt(n.extensions),astNode:n.astNode}))}function _s(e){return be(e.type)&&e.defaultValue===void 0}function Es(e,t){return e===t?!0:be(e)&&be(t)||Pe(e)&&Pe(t)?Es(e.ofType,t.ofType):!1}function Wn(e,t,n){return t===n?!0:be(n)?be(t)?Wn(e,t.ofType,n.ofType):!1:be(t)?Wn(e,t.ofType,n):Pe(n)?Pe(t)?Wn(e,t.ofType,n.ofType):!1:Pe(t)?!1:xt(n)&&(xe(t)||we(t))&&e.isSubType(n,t)}function ci(e,t,n){return t===n?!0:xt(t)?xt(n)?e.getPossibleTypes(t).some(r=>e.isSubType(n,r)):e.isSubType(t,n):xt(n)?e.isSubType(n,t):!1}var zo=2147483647,Qo=-2147483648,wf=new Pt({name:"Int",description:"The `Int` scalar type represents non-fractional signed whole numeric values. Int can represent values between -(2^31) and 2^31 - 1.",serialize(e){let t=Jo(e);if(typeof t=="boolean")return t?1:0;let n=t;if(typeof t=="string"&&t!==""&&(n=Number(t)),typeof n!="number"||!Number.isInteger(n))throw new C(`Int cannot represent non-integer value: ${W(t)}`);if(n>zo||n<Qo)throw new C("Int cannot represent non 32-bit signed integer value: "+W(t));return n},parseValue(e){if(typeof e!="number"||!Number.isInteger(e))throw new C(`Int cannot represent non-integer value: ${W(e)}`);if(e>zo||e<Qo)throw new C(`Int cannot represent non 32-bit signed integer value: ${e}`);return e},parseLiteral(e){if(e.kind!==b.INT)throw new C(`Int cannot represent non-integer value: ${$e(e)}`,{nodes:e});let t=parseInt(e.value,10);if(t>zo||t<Qo)throw new C(`Int cannot represent non 32-bit signed integer value: ${e.value}`,{nodes:e});return t}}),Yo=new Pt({name:"Float",description:"The `Float` scalar type represents signed double-precision fractional values as specified by [IEEE 754](https://en.wikipedia.org/wiki/IEEE_floating_point).",serialize(e){let t=Jo(e);if(typeof t=="boolean")return t?1:0;let n=t;if(typeof t=="string"&&t!==""&&(n=Number(t)),typeof n!="number"||!Number.isFinite(n))throw new C(`Float cannot represent non numeric value: ${W(t)}`);return n},parseValue(e){if(typeof e!="number"||!Number.isFinite(e))throw new C(`Float cannot represent non numeric value: ${W(e)}`);return e},parseLiteral(e){if(e.kind!==b.FLOAT&&e.kind!==b.INT)throw new C(`Float cannot represent non numeric value: ${$e(e)}`,e);return parseFloat(e.value)}}),Ke=new Pt({name:"String",description:"The `String` scalar type represents textual data, represented as UTF-8 character sequences. The String type is most often used by GraphQL to represent free-form human-readable text.",serialize(e){let t=Jo(e);if(typeof t=="string")return t;if(typeof t=="boolean")return t?"true":"false";if(typeof t=="number"&&Number.isFinite(t))return t.toString();throw new C(`String cannot represent value: ${W(e)}`)},parseValue(e){if(typeof e!="string")throw new C(`String cannot represent a non string value: ${W(e)}`);return e},parseLiteral(e){if(e.kind!==b.STRING)throw new C(`String cannot represent a non string value: ${$e(e)}`,{nodes:e});return e.value}}),nt=new Pt({name:"Boolean",description:"The `Boolean` scalar type represents `true` or `false`.",serialize(e){let t=Jo(e);if(typeof t=="boolean")return t;if(Number.isFinite(t))return t!==0;throw new C(`Boolean cannot represent a non boolean value: ${W(t)}`)},parseValue(e){if(typeof e!="boolean")throw new C(`Boolean cannot represent a non boolean value: ${W(e)}`);return e},parseLiteral(e){if(e.kind!==b.BOOLEAN)throw new C(`Boolean cannot represent a non boolean value: ${$e(e)}`,{nodes:e});return e.value}}),Xo=new Pt({name:"ID",description:'The `ID` scalar type represents a unique identifier, often used to refetch an object or as key for a cache. The ID type appears in a JSON response as a String; however, it is not intended to be human-readable. When expected as an input type, any string (such as `"4"`) or integer (such as `4`) input value will be accepted as an ID.',serialize(e){let t=Jo(e);if(typeof t=="string")return t;if(Number.isInteger(t))return String(t);throw new C(`ID cannot represent value: ${W(e)}`)},parseValue(e){if(typeof e=="string")return e;if(typeof e=="number"&&Number.isInteger(e))return e.toString();throw new C(`ID cannot represent value: ${W(e)}`)},parseLiteral(e){if(e.kind!==b.STRING&&e.kind!==b.INT)throw new C("ID cannot represent a non-string and non-integer value: "+$e(e),{nodes:e});return e.value}}),Dr=Object.freeze([Ke,wf,Yo,nt,Xo]);function ku(e){return Dr.some(({name:t})=>e.name===t)}function Jo(e){if(Ut(e)){if(typeof e.valueOf=="function"){let t=e.valueOf();if(!Ut(t))return t}if(typeof e.toJSON=="function")return e.toJSON()}return e}function Zo(e){return jt(e,Jt)}var Jt=class{constructor(t){var n,r;this.name=Xt(t.name),this.description=t.description,this.locations=t.locations,this.isRepeatable=(n=t.isRepeatable)!==null&&n!==void 0?n:!1,this.extensions=Gt(t.extensions),this.astNode=t.astNode,Array.isArray(t.locations)||Te(!1,`@${t.name} locations must be an Array.`);let i=(r=t.args)!==null&&r!==void 0?r:{};Ut(i)&&!Array.isArray(i)||Te(!1,`@${t.name} args must be an object with argument names as keys.`),this.args=Tf(i)}get[Symbol.toStringTag](){return"GraphQLDirective"}toConfig(){return{name:this.name,description:this.description,locations:this.locations,args:yf(this.args),isRepeatable:this.isRepeatable,extensions:this.extensions,astNode:this.astNode}}toString(){return"@"+this.name}toJSON(){return this.toString()}},Mu=new Jt({name:"include",description:"Directs the executor to include this field or fragment only when the `if` argument is true.",locations:[se.FIELD,se.FRAGMENT_SPREAD,se.INLINE_FRAGMENT],args:{if:{type:new ge(nt),description:"Included when true."}}}),Uu=new Jt({name:"skip",description:"Directs the executor to skip this field or fragment when the `if` argument is true.",locations:[se.FIELD,se.FRAGMENT_SPREAD,se.INLINE_FRAGMENT],args:{if:{type:new ge(nt),description:"Skipped when true."}}}),Gm="No longer supported",Ds=new Jt({name:"deprecated",description:"Marks an element of a GraphQL schema as no longer supported.",locations:[se.FIELD_DEFINITION,se.ARGUMENT_DEFINITION,se.INPUT_FIELD_DEFINITION,se.ENUM_VALUE],args:{reason:{type:Ke,description:"Explains why this element was deprecated, usually also including a suggestion for how to access supported similar data. Formatted using the Markdown syntax, as specified by [CommonMark](https://commonmark.org/).",defaultValue:Gm}}}),Pu=new Jt({name:"specifiedBy",description:"Exposes a URL that specifies the behavior of this scalar.",locations:[se.SCALAR],args:{url:{type:new ge(Ke),description:"The URL that specifies the behavior of this scalar."}}}),Bu=new Jt({name:"oneOf",description:"Indicates exactly one field must be supplied and this field must not be `null`.",locations:[se.INPUT_OBJECT],args:{}}),ln=Object.freeze([Mu,Uu,Ds,Pu,Bu]);function qm(e){return typeof e=="object"&&typeof e?.[Symbol.iterator]=="function"}function fi(e,t){if(be(t)){let n=fi(e,t.ofType);return n?.kind===b.NULL?null:n}if(e===null)return{kind:b.NULL};if(e===void 0)return null;if(Pe(t)){let n=t.ofType;if(qm(e)){let r=[];for(let i of e){let s=fi(i,n);s!=null&&r.push(s)}return{kind:b.LIST,values:r}}return fi(e,n)}if(Le(t)){if(!Ut(e))return null;let n=[];for(let r of Object.values(t.getFields())){let i=fi(e[r.name],r.type);i&&n.push({kind:b.OBJECT_FIELD,name:{kind:b.NAME,value:r.name},value:i})}return{kind:b.OBJECT,fields:n}}if(un(t)){let n=t.serialize(e);if(n==null)return null;if(typeof n=="boolean")return{kind:b.BOOLEAN,value:n};if(typeof n=="number"&&Number.isFinite(n)){let r=String(n);return Hm.test(r)?{kind:b.INT,value:r}:{kind:b.FLOAT,value:r}}if(typeof n=="string")return ze(t)?{kind:b.ENUM,value:n}:t===Xo&&Hm.test(n)?{kind:b.INT,value:n}:{kind:b.STRING,value:n};throw new TypeError(`Cannot convert value to AST: ${W(n)}.`)}tt(!1,"Unexpected input type: "+W(t))}var Hm=/^-?(?:0|[1-9][0-9]*)$/;var bs=new ct({name:"__Schema",description:"A GraphQL Schema defines the capabilities of a GraphQL server. It exposes all available types and directives on the server, as well as the entry points for query, mutation, and subscription operations.",fields:()=>({description:{type:Ke,resolve:e=>e.description},types:{description:"A list of all types supported by this server.",type:new ge(new He(new ge(cn))),resolve(e){return Object.values(e.getTypeMap())}},queryType:{description:"The type that query operations will be rooted at.",type:new ge(cn),resolve:e=>e.getQueryType()},mutationType:{description:"If this server supports mutation, the type that mutation operations will be rooted at.",type:cn,resolve:e=>e.getMutationType()},subscriptionType:{description:"If this server support subscription, the type that subscription operations will be rooted at.",type:cn,resolve:e=>e.getSubscriptionType()},directives:{description:"A list of all directives supported by this server.",type:new ge(new He(new ge(Cu))),resolve:e=>e.getDirectives()}})}),Cu=new ct({name:"__Directive",description:`A Directive provides a way to describe alternate runtime execution and type validation behavior in a GraphQL document.
|
|
160
160
|
|
|
161
|
-
In some cases, you need to provide options to alter GraphQL's execution behavior in ways field arguments will not suffice, such as conditionally including or skipping a field. Directives provide this by describing additional information to the executor.`,fields:()=>({name:{type:new ge(Ze),resolve:e=>e.name},description:{type:Ze,resolve:e=>e.description},isRepeatable:{type:new ge(tt),resolve:e=>e.isRepeatable},locations:{type:new ge(new qe(new ge(Vu))),resolve:e=>e.locations},args:{type:new ge(new qe(new ge(xs))),args:{includeDeprecated:{type:tt,defaultValue:!1}},resolve(e,{includeDeprecated:t}){return t?e.args:e.args.filter(n=>n.deprecationReason==null)}}})}),Vu=new St({name:"__DirectiveLocation",description:"A Directive can be adjacent to many parts of the GraphQL language, a __DirectiveLocation describes one such possible adjacencies.",values:{QUERY:{value:oe.QUERY,description:"Location adjacent to a query operation."},MUTATION:{value:oe.MUTATION,description:"Location adjacent to a mutation operation."},SUBSCRIPTION:{value:oe.SUBSCRIPTION,description:"Location adjacent to a subscription operation."},FIELD:{value:oe.FIELD,description:"Location adjacent to a field."},FRAGMENT_DEFINITION:{value:oe.FRAGMENT_DEFINITION,description:"Location adjacent to a fragment definition."},FRAGMENT_SPREAD:{value:oe.FRAGMENT_SPREAD,description:"Location adjacent to a fragment spread."},INLINE_FRAGMENT:{value:oe.INLINE_FRAGMENT,description:"Location adjacent to an inline fragment."},VARIABLE_DEFINITION:{value:oe.VARIABLE_DEFINITION,description:"Location adjacent to a variable definition."},SCHEMA:{value:oe.SCHEMA,description:"Location adjacent to a schema definition."},SCALAR:{value:oe.SCALAR,description:"Location adjacent to a scalar definition."},OBJECT:{value:oe.OBJECT,description:"Location adjacent to an object type definition."},FIELD_DEFINITION:{value:oe.FIELD_DEFINITION,description:"Location adjacent to a field definition."},ARGUMENT_DEFINITION:{value:oe.ARGUMENT_DEFINITION,description:"Location adjacent to an argument definition."},INTERFACE:{value:oe.INTERFACE,description:"Location adjacent to an interface definition."},UNION:{value:oe.UNION,description:"Location adjacent to a union definition."},ENUM:{value:oe.ENUM,description:"Location adjacent to an enum definition."},ENUM_VALUE:{value:oe.ENUM_VALUE,description:"Location adjacent to an enum value definition."},INPUT_OBJECT:{value:oe.INPUT_OBJECT,description:"Location adjacent to an input object type definition."},INPUT_FIELD_DEFINITION:{value:oe.INPUT_FIELD_DEFINITION,description:"Location adjacent to an input object field definition."}}}),cn=new lt({name:"__Type",description:"The fundamental unit of any GraphQL Schema is the type. There are many kinds of types in GraphQL as represented by the `__TypeKind` enum.\n\nDepending on the kind of a type, certain fields describe information about that type. Scalar types provide no information beyond a name, description and optional `specifiedByURL`, while Enum types provide their values. Object and Interface types provide the fields they describe. Abstract types, Union and Interface, provide the Object types possible at runtime. List and NonNull types compose other types.",fields:()=>({kind:{type:new ge(Gu),resolve(e){if(vt(e))return je.SCALAR;if(ye(e))return je.OBJECT;if(Le(e))return je.INTERFACE;if(ct(e))return je.UNION;if(ze(e))return je.ENUM;if(Ae(e))return je.INPUT_OBJECT;if(Be(e))return je.LIST;if(ve(e))return je.NON_NULL;et(!1,`Unexpected type: "${Y(e)}".`)}},name:{type:Ze,resolve:e=>"name"in e?e.name:void 0},description:{type:Ze,resolve:e=>"description"in e?e.description:void 0},specifiedByURL:{type:Ze,resolve:e=>"specifiedByURL"in e?e.specifiedByURL:void 0},fields:{type:new qe(new ge($u)),args:{includeDeprecated:{type:tt,defaultValue:!1}},resolve(e,{includeDeprecated:t}){if(ye(e)||Le(e)){let n=Object.values(e.getFields());return t?n:n.filter(r=>r.deprecationReason==null)}}},interfaces:{type:new qe(new ge(cn)),resolve(e){if(ye(e)||Le(e))return e.getInterfaces()}},possibleTypes:{type:new qe(new ge(cn)),resolve(e,t,n,{schema:r}){if(yt(e))return r.getPossibleTypes(e)}},enumValues:{type:new qe(new ge(ju)),args:{includeDeprecated:{type:tt,defaultValue:!1}},resolve(e,{includeDeprecated:t}){if(ze(e)){let n=e.getValues();return t?n:n.filter(r=>r.deprecationReason==null)}}},inputFields:{type:new qe(new ge(xs)),args:{includeDeprecated:{type:tt,defaultValue:!1}},resolve(e,{includeDeprecated:t}){if(Ae(e)){let n=Object.values(e.getFields());return t?n:n.filter(r=>r.deprecationReason==null)}}},ofType:{type:cn,resolve:e=>"ofType"in e?e.ofType:void 0},isOneOf:{type:tt,resolve:e=>{if(Ae(e))return e.isOneOf}}})}),$u=new lt({name:"__Field",description:"Object and Interface types are described by a list of Fields, each of which has a name, potentially a list of arguments, and a return type.",fields:()=>({name:{type:new ge(Ze),resolve:e=>e.name},description:{type:Ze,resolve:e=>e.description},args:{type:new ge(new qe(new ge(xs))),args:{includeDeprecated:{type:tt,defaultValue:!1}},resolve(e,{includeDeprecated:t}){return t?e.args:e.args.filter(n=>n.deprecationReason==null)}},type:{type:new ge(cn),resolve:e=>e.type},isDeprecated:{type:new ge(tt),resolve:e=>e.deprecationReason!=null},deprecationReason:{type:Ze,resolve:e=>e.deprecationReason}})}),xs=new lt({name:"__InputValue",description:"Arguments provided to Fields or Directives and the input fields of an InputObject are represented as Input Values which describe their type and optionally a default value.",fields:()=>({name:{type:new ge(Ze),resolve:e=>e.name},description:{type:Ze,resolve:e=>e.description},type:{type:new ge(cn),resolve:e=>e.type},defaultValue:{type:Ze,description:"A GraphQL-formatted string representing the default value for this input value.",resolve(e){let{type:t,defaultValue:n}=e,r=gi(n,t);return r?$e(r):null}},isDeprecated:{type:new ge(tt),resolve:e=>e.deprecationReason!=null},deprecationReason:{type:Ze,resolve:e=>e.deprecationReason}})}),ju=new lt({name:"__EnumValue",description:"One possible value for a given Enum. Enum values are unique values, not a placeholder for a string or numeric value. However an Enum value is returned in a JSON response as a string.",fields:()=>({name:{type:new ge(Ze),resolve:e=>e.name},description:{type:Ze,resolve:e=>e.description},isDeprecated:{type:new ge(tt),resolve:e=>e.deprecationReason!=null},deprecationReason:{type:Ze,resolve:e=>e.deprecationReason}})}),je;(function(e){e.SCALAR="SCALAR",e.OBJECT="OBJECT",e.INTERFACE="INTERFACE",e.UNION="UNION",e.ENUM="ENUM",e.INPUT_OBJECT="INPUT_OBJECT",e.LIST="LIST",e.NON_NULL="NON_NULL"})(je||(je={}));var Gu=new St({name:"__TypeKind",description:"An enum describing what kind of type a given `__Type` is.",values:{SCALAR:{value:je.SCALAR,description:"Indicates this type is a scalar."},OBJECT:{value:je.OBJECT,description:"Indicates this type is an object. `fields` and `interfaces` are valid fields."},INTERFACE:{value:je.INTERFACE,description:"Indicates this type is an interface. `fields`, `interfaces`, and `possibleTypes` are valid fields."},UNION:{value:je.UNION,description:"Indicates this type is a union. `possibleTypes` is a valid field."},ENUM:{value:je.ENUM,description:"Indicates this type is an enum. `enumValues` is a valid field."},INPUT_OBJECT:{value:je.INPUT_OBJECT,description:"Indicates this type is an input object. `inputFields` is a valid field."},LIST:{value:je.LIST,description:"Indicates this type is a list. `ofType` is a valid field."},NON_NULL:{value:je.NON_NULL,description:"Indicates this type is a non-null. `ofType` is a valid field."}}}),Wn={name:"__schema",type:new ge(ws),description:"Access the current type schema of this server.",args:[],resolve:(e,t,n,{schema:r})=>r,deprecationReason:void 0,extensions:Object.create(null),astNode:void 0},zn={name:"__type",type:cn,description:"Request the type information of a single type.",args:[{name:"name",description:void 0,type:new ge(Ze),defaultValue:void 0,deprecationReason:void 0,extensions:Object.create(null),astNode:void 0}],resolve:(e,{name:t},n,{schema:r})=>r.getType(t),deprecationReason:void 0,extensions:Object.create(null),astNode:void 0},Qn={name:"__typename",type:new ge(Ze),description:"The name of the current Object type at runtime.",args:[],resolve:(e,t,n,{parentType:r})=>r.name,deprecationReason:void 0,extensions:Object.create(null),astNode:void 0},Nr=Object.freeze([ws,Cu,Vu,cn,$u,xs,ju,Gu]);function ys(e){return Nr.some(({name:t})=>e.name===t)}function qm(e){return Gt(e,Hr)}function wf(e){if(!qm(e))throw new Error(`Expected ${Y(e)} to be a GraphQL schema.`);return e}var Hr=class{constructor(t){var n,r;this.__validationErrors=t.assumeValid===!0?[]:void 0,Pt(t)||we(!1,"Must provide configuration object."),!t.types||Array.isArray(t.types)||we(!1,`"types" must be Array if provided but got: ${Y(t.types)}.`),!t.directives||Array.isArray(t.directives)||we(!1,`"directives" must be Array if provided but got: ${Y(t.directives)}.`),this.description=t.description,this.extensions=qt(t.extensions),this.astNode=t.astNode,this.extensionASTNodes=(n=t.extensionASTNodes)!==null&&n!==void 0?n:[],this._queryType=t.query,this._mutationType=t.mutation,this._subscriptionType=t.subscription,this._directives=(r=t.directives)!==null&&r!==void 0?r:ln;let i=new Set(t.types);if(t.types!=null)for(let s of t.types)i.delete(s),In(s,i);this._queryType!=null&&In(this._queryType,i),this._mutationType!=null&&In(this._mutationType,i),this._subscriptionType!=null&&In(this._subscriptionType,i);for(let s of this._directives)if(Ko(s))for(let o of s.args)In(o.type,i);In(ws,i),this._typeMap=Object.create(null),this._subTypeMap=Object.create(null),this._implementationsMap=Object.create(null);for(let s of i){if(s==null)continue;let o=s.name;if(o||we(!1,"One of the provided types for building the Schema is missing a name."),this._typeMap[o]!==void 0)throw new Error(`Schema must contain uniquely named types but contains multiple types named "${o}".`);if(this._typeMap[o]=s,Le(s)){for(let a of s.getInterfaces())if(Le(a)){let u=this._implementationsMap[a.name];u===void 0&&(u=this._implementationsMap[a.name]={objects:[],interfaces:[]}),u.interfaces.push(s)}}else if(ye(s)){for(let a of s.getInterfaces())if(Le(a)){let u=this._implementationsMap[a.name];u===void 0&&(u=this._implementationsMap[a.name]={objects:[],interfaces:[]}),u.objects.push(s)}}}}get[Symbol.toStringTag](){return"GraphQLSchema"}getQueryType(){return this._queryType}getMutationType(){return this._mutationType}getSubscriptionType(){return this._subscriptionType}getRootType(t){switch(t){case mt.QUERY:return this.getQueryType();case mt.MUTATION:return this.getMutationType();case mt.SUBSCRIPTION:return this.getSubscriptionType()}}getTypeMap(){return this._typeMap}getType(t){return this.getTypeMap()[t]}getPossibleTypes(t){return ct(t)?t.getTypes():this.getImplementations(t).objects}getImplementations(t){let n=this._implementationsMap[t.name];return n??{objects:[],interfaces:[]}}isSubType(t,n){let r=this._subTypeMap[t.name];if(r===void 0){if(r=Object.create(null),ct(t))for(let i of t.getTypes())r[i.name]=!0;else{let i=this.getImplementations(t);for(let s of i.objects)r[s.name]=!0;for(let s of i.interfaces)r[s.name]=!0}this._subTypeMap[t.name]=r}return r[n.name]!==void 0}getDirectives(){return this._directives}getDirective(t){return this.getDirectives().find(n=>n.name===t)}toConfig(){return{description:this.description,query:this.getQueryType(),mutation:this.getMutationType(),subscription:this.getSubscriptionType(),types:Object.values(this.getTypeMap()),directives:this.getDirectives(),extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes,assumeValid:this.__validationErrors!==void 0}}};function In(e,t){let n=Ce(e);if(!t.has(n)){if(t.add(n),ct(n))for(let r of n.getTypes())In(r,t);else if(ye(n)||Le(n)){for(let r of n.getInterfaces())In(r,t);for(let r of Object.values(n.getFields())){In(r.type,t);for(let i of r.args)In(i.type,t)}}else if(Ae(n))for(let r of Object.values(n.getFields()))In(r.type,t)}return t}function Qm(e){if(wf(e),e.__validationErrors)return e.__validationErrors;let t=new yf(e);e7(t),t7(t),n7(t);let n=t.getErrors();return e.__validationErrors=n,n}function Lf(e){let t=Qm(e);if(t.length!==0)throw new Error(t.map(n=>n.message).join(`
|
|
161
|
+
In some cases, you need to provide options to alter GraphQL's execution behavior in ways field arguments will not suffice, such as conditionally including or skipping a field. Directives provide this by describing additional information to the executor.`,fields:()=>({name:{type:new ge(Ke),resolve:e=>e.name},description:{type:Ke,resolve:e=>e.description},isRepeatable:{type:new ge(nt),resolve:e=>e.isRepeatable},locations:{type:new ge(new He(new ge(Vu))),resolve:e=>e.locations},args:{type:new ge(new He(new ge(vs))),args:{includeDeprecated:{type:nt,defaultValue:!1}},resolve(e,{includeDeprecated:t}){return t?e.args:e.args.filter(n=>n.deprecationReason==null)}}})}),Vu=new St({name:"__DirectiveLocation",description:"A Directive can be adjacent to many parts of the GraphQL language, a __DirectiveLocation describes one such possible adjacencies.",values:{QUERY:{value:se.QUERY,description:"Location adjacent to a query operation."},MUTATION:{value:se.MUTATION,description:"Location adjacent to a mutation operation."},SUBSCRIPTION:{value:se.SUBSCRIPTION,description:"Location adjacent to a subscription operation."},FIELD:{value:se.FIELD,description:"Location adjacent to a field."},FRAGMENT_DEFINITION:{value:se.FRAGMENT_DEFINITION,description:"Location adjacent to a fragment definition."},FRAGMENT_SPREAD:{value:se.FRAGMENT_SPREAD,description:"Location adjacent to a fragment spread."},INLINE_FRAGMENT:{value:se.INLINE_FRAGMENT,description:"Location adjacent to an inline fragment."},VARIABLE_DEFINITION:{value:se.VARIABLE_DEFINITION,description:"Location adjacent to a variable definition."},SCHEMA:{value:se.SCHEMA,description:"Location adjacent to a schema definition."},SCALAR:{value:se.SCALAR,description:"Location adjacent to a scalar definition."},OBJECT:{value:se.OBJECT,description:"Location adjacent to an object type definition."},FIELD_DEFINITION:{value:se.FIELD_DEFINITION,description:"Location adjacent to a field definition."},ARGUMENT_DEFINITION:{value:se.ARGUMENT_DEFINITION,description:"Location adjacent to an argument definition."},INTERFACE:{value:se.INTERFACE,description:"Location adjacent to an interface definition."},UNION:{value:se.UNION,description:"Location adjacent to a union definition."},ENUM:{value:se.ENUM,description:"Location adjacent to an enum definition."},ENUM_VALUE:{value:se.ENUM_VALUE,description:"Location adjacent to an enum value definition."},INPUT_OBJECT:{value:se.INPUT_OBJECT,description:"Location adjacent to an input object type definition."},INPUT_FIELD_DEFINITION:{value:se.INPUT_FIELD_DEFINITION,description:"Location adjacent to an input object field definition."}}}),cn=new ct({name:"__Type",description:"The fundamental unit of any GraphQL Schema is the type. There are many kinds of types in GraphQL as represented by the `__TypeKind` enum.\n\nDepending on the kind of a type, certain fields describe information about that type. Scalar types provide no information beyond a name, description and optional `specifiedByURL`, while Enum types provide their values. Object and Interface types provide the fields they describe. Abstract types, Union and Interface, provide the Object types possible at runtime. List and NonNull types compose other types.",fields:()=>({kind:{type:new ge(Gu),resolve(e){if(Tt(e))return je.SCALAR;if(we(e))return je.OBJECT;if(xe(e))return je.INTERFACE;if(ft(e))return je.UNION;if(ze(e))return je.ENUM;if(Le(e))return je.INPUT_OBJECT;if(Pe(e))return je.LIST;if(be(e))return je.NON_NULL;tt(!1,`Unexpected type: "${W(e)}".`)}},name:{type:Ke,resolve:e=>"name"in e?e.name:void 0},description:{type:Ke,resolve:e=>"description"in e?e.description:void 0},specifiedByURL:{type:Ke,resolve:e=>"specifiedByURL"in e?e.specifiedByURL:void 0},fields:{type:new He(new ge($u)),args:{includeDeprecated:{type:nt,defaultValue:!1}},resolve(e,{includeDeprecated:t}){if(we(e)||xe(e)){let n=Object.values(e.getFields());return t?n:n.filter(r=>r.deprecationReason==null)}}},interfaces:{type:new He(new ge(cn)),resolve(e){if(we(e)||xe(e))return e.getInterfaces()}},possibleTypes:{type:new He(new ge(cn)),resolve(e,t,n,{schema:r}){if(xt(e))return r.getPossibleTypes(e)}},enumValues:{type:new He(new ge(ju)),args:{includeDeprecated:{type:nt,defaultValue:!1}},resolve(e,{includeDeprecated:t}){if(ze(e)){let n=e.getValues();return t?n:n.filter(r=>r.deprecationReason==null)}}},inputFields:{type:new He(new ge(vs)),args:{includeDeprecated:{type:nt,defaultValue:!1}},resolve(e,{includeDeprecated:t}){if(Le(e)){let n=Object.values(e.getFields());return t?n:n.filter(r=>r.deprecationReason==null)}}},ofType:{type:cn,resolve:e=>"ofType"in e?e.ofType:void 0},isOneOf:{type:nt,resolve:e=>{if(Le(e))return e.isOneOf}}})}),$u=new ct({name:"__Field",description:"Object and Interface types are described by a list of Fields, each of which has a name, potentially a list of arguments, and a return type.",fields:()=>({name:{type:new ge(Ke),resolve:e=>e.name},description:{type:Ke,resolve:e=>e.description},args:{type:new ge(new He(new ge(vs))),args:{includeDeprecated:{type:nt,defaultValue:!1}},resolve(e,{includeDeprecated:t}){return t?e.args:e.args.filter(n=>n.deprecationReason==null)}},type:{type:new ge(cn),resolve:e=>e.type},isDeprecated:{type:new ge(nt),resolve:e=>e.deprecationReason!=null},deprecationReason:{type:Ke,resolve:e=>e.deprecationReason}})}),vs=new ct({name:"__InputValue",description:"Arguments provided to Fields or Directives and the input fields of an InputObject are represented as Input Values which describe their type and optionally a default value.",fields:()=>({name:{type:new ge(Ke),resolve:e=>e.name},description:{type:Ke,resolve:e=>e.description},type:{type:new ge(cn),resolve:e=>e.type},defaultValue:{type:Ke,description:"A GraphQL-formatted string representing the default value for this input value.",resolve(e){let{type:t,defaultValue:n}=e,r=fi(n,t);return r?$e(r):null}},isDeprecated:{type:new ge(nt),resolve:e=>e.deprecationReason!=null},deprecationReason:{type:Ke,resolve:e=>e.deprecationReason}})}),ju=new ct({name:"__EnumValue",description:"One possible value for a given Enum. Enum values are unique values, not a placeholder for a string or numeric value. However an Enum value is returned in a JSON response as a string.",fields:()=>({name:{type:new ge(Ke),resolve:e=>e.name},description:{type:Ke,resolve:e=>e.description},isDeprecated:{type:new ge(nt),resolve:e=>e.deprecationReason!=null},deprecationReason:{type:Ke,resolve:e=>e.deprecationReason}})}),je;(function(e){e.SCALAR="SCALAR",e.OBJECT="OBJECT",e.INTERFACE="INTERFACE",e.UNION="UNION",e.ENUM="ENUM",e.INPUT_OBJECT="INPUT_OBJECT",e.LIST="LIST",e.NON_NULL="NON_NULL"})(je||(je={}));var Gu=new St({name:"__TypeKind",description:"An enum describing what kind of type a given `__Type` is.",values:{SCALAR:{value:je.SCALAR,description:"Indicates this type is a scalar."},OBJECT:{value:je.OBJECT,description:"Indicates this type is an object. `fields` and `interfaces` are valid fields."},INTERFACE:{value:je.INTERFACE,description:"Indicates this type is an interface. `fields`, `interfaces`, and `possibleTypes` are valid fields."},UNION:{value:je.UNION,description:"Indicates this type is a union. `possibleTypes` is a valid field."},ENUM:{value:je.ENUM,description:"Indicates this type is an enum. `enumValues` is a valid field."},INPUT_OBJECT:{value:je.INPUT_OBJECT,description:"Indicates this type is an input object. `inputFields` is a valid field."},LIST:{value:je.LIST,description:"Indicates this type is a list. `ofType` is a valid field."},NON_NULL:{value:je.NON_NULL,description:"Indicates this type is a non-null. `ofType` is a valid field."}}}),zn={name:"__schema",type:new ge(bs),description:"Access the current type schema of this server.",args:[],resolve:(e,t,n,{schema:r})=>r,deprecationReason:void 0,extensions:Object.create(null),astNode:void 0},Qn={name:"__type",type:cn,description:"Request the type information of a single type.",args:[{name:"name",description:void 0,type:new ge(Ke),defaultValue:void 0,deprecationReason:void 0,extensions:Object.create(null),astNode:void 0}],resolve:(e,{name:t},n,{schema:r})=>r.getType(t),deprecationReason:void 0,extensions:Object.create(null),astNode:void 0},Yn={name:"__typename",type:new ge(Ke),description:"The name of the current Object type at runtime.",args:[],resolve:(e,t,n,{parentType:r})=>r.name,deprecationReason:void 0,extensions:Object.create(null),astNode:void 0},br=Object.freeze([bs,Cu,Vu,cn,$u,vs,ju,Gu]);function Ns(e){return br.some(({name:t})=>e.name===t)}function Wm(e){return jt(e,Gr)}function xf(e){if(!Wm(e))throw new Error(`Expected ${W(e)} to be a GraphQL schema.`);return e}var Gr=class{constructor(t){var n,r;this.__validationErrors=t.assumeValid===!0?[]:void 0,Ut(t)||Te(!1,"Must provide configuration object."),!t.types||Array.isArray(t.types)||Te(!1,`"types" must be Array if provided but got: ${W(t.types)}.`),!t.directives||Array.isArray(t.directives)||Te(!1,`"directives" must be Array if provided but got: ${W(t.directives)}.`),this.description=t.description,this.extensions=Gt(t.extensions),this.astNode=t.astNode,this.extensionASTNodes=(n=t.extensionASTNodes)!==null&&n!==void 0?n:[],this._queryType=t.query,this._mutationType=t.mutation,this._subscriptionType=t.subscription,this._directives=(r=t.directives)!==null&&r!==void 0?r:ln;let i=new Set(t.types);if(t.types!=null)for(let s of t.types)i.delete(s),Fn(s,i);this._queryType!=null&&Fn(this._queryType,i),this._mutationType!=null&&Fn(this._mutationType,i),this._subscriptionType!=null&&Fn(this._subscriptionType,i);for(let s of this._directives)if(Zo(s))for(let o of s.args)Fn(o.type,i);Fn(bs,i),this._typeMap=Object.create(null),this._subTypeMap=Object.create(null),this._implementationsMap=Object.create(null);for(let s of i){if(s==null)continue;let o=s.name;if(o||Te(!1,"One of the provided types for building the Schema is missing a name."),this._typeMap[o]!==void 0)throw new Error(`Schema must contain uniquely named types but contains multiple types named "${o}".`);if(this._typeMap[o]=s,xe(s)){for(let a of s.getInterfaces())if(xe(a)){let u=this._implementationsMap[a.name];u===void 0&&(u=this._implementationsMap[a.name]={objects:[],interfaces:[]}),u.interfaces.push(s)}}else if(we(s)){for(let a of s.getInterfaces())if(xe(a)){let u=this._implementationsMap[a.name];u===void 0&&(u=this._implementationsMap[a.name]={objects:[],interfaces:[]}),u.objects.push(s)}}}}get[Symbol.toStringTag](){return"GraphQLSchema"}getQueryType(){return this._queryType}getMutationType(){return this._mutationType}getSubscriptionType(){return this._subscriptionType}getRootType(t){switch(t){case gt.QUERY:return this.getQueryType();case gt.MUTATION:return this.getMutationType();case gt.SUBSCRIPTION:return this.getSubscriptionType()}}getTypeMap(){return this._typeMap}getType(t){return this.getTypeMap()[t]}getPossibleTypes(t){return ft(t)?t.getTypes():this.getImplementations(t).objects}getImplementations(t){let n=this._implementationsMap[t.name];return n??{objects:[],interfaces:[]}}isSubType(t,n){let r=this._subTypeMap[t.name];if(r===void 0){if(r=Object.create(null),ft(t))for(let i of t.getTypes())r[i.name]=!0;else{let i=this.getImplementations(t);for(let s of i.objects)r[s.name]=!0;for(let s of i.interfaces)r[s.name]=!0}this._subTypeMap[t.name]=r}return r[n.name]!==void 0}getDirectives(){return this._directives}getDirective(t){return this.getDirectives().find(n=>n.name===t)}toConfig(){return{description:this.description,query:this.getQueryType(),mutation:this.getMutationType(),subscription:this.getSubscriptionType(),types:Object.values(this.getTypeMap()),directives:this.getDirectives(),extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes,assumeValid:this.__validationErrors!==void 0}}};function Fn(e,t){let n=Be(e);if(!t.has(n)){if(t.add(n),ft(n))for(let r of n.getTypes())Fn(r,t);else if(we(n)||xe(n)){for(let r of n.getInterfaces())Fn(r,t);for(let r of Object.values(n.getFields())){Fn(r.type,t);for(let i of r.args)Fn(i.type,t)}}else if(Le(n))for(let r of Object.values(n.getFields()))Fn(r.type,t)}return t}function Xm(e){if(xf(e),e.__validationErrors)return e.__validationErrors;let t=new Af(e);QD(t),YD(t),XD(t);let n=t.getErrors();return e.__validationErrors=n,n}function Ff(e){let t=Xm(e);if(t.length!==0)throw new Error(t.map(n=>n.message).join(`
|
|
162
162
|
|
|
163
|
-
`))}var yf=class{constructor(t){this._errors=[],this.schema=t}reportError(t,n){let r=Array.isArray(n)?n.filter(Boolean):n;this._errors.push(new V(t,{nodes:r}))}getErrors(){return this._errors}};function e7(e){let t=e.schema,n=t.getQueryType();if(!n)e.reportError("Query root type must be provided.",t.astNode);else if(!ye(n)){var r;e.reportError(`Query root type must be Object type, it cannot be ${Y(n)}.`,(r=xf(t,mt.QUERY))!==null&&r!==void 0?r:n.astNode)}let i=t.getMutationType();if(i&&!ye(i)){var s;e.reportError(`Mutation root type must be Object type if provided, it cannot be ${Y(i)}.`,(s=xf(t,mt.MUTATION))!==null&&s!==void 0?s:i.astNode)}let o=t.getSubscriptionType();if(o&&!ye(o)){var a;e.reportError(`Subscription root type must be Object type if provided, it cannot be ${Y(o)}.`,(a=xf(t,mt.SUBSCRIPTION))!==null&&a!==void 0?a:o.astNode)}}function xf(e,t){var n;return(n=[e.astNode,...e.extensionASTNodes].flatMap(r=>{var i;return(i=r?.operationTypes)!==null&&i!==void 0?i:[]}).find(r=>r.operation===t))===null||n===void 0?void 0:n.type}function t7(e){for(let n of e.schema.getDirectives()){if(!Ko(n)){e.reportError(`Expected directive but got: ${Y(n)}.`,n?.astNode);continue}_i(e,n),n.locations.length===0&&e.reportError(`Directive @${n.name} must include 1 or more locations.`,n.astNode);for(let r of n.args)if(_i(e,r),ft(r.type)||e.reportError(`The type of @${n.name}(${r.name}:) must be Input Type but got: ${Y(r.type)}.`,r.astNode),br(r)&&r.deprecationReason!=null){var t;e.reportError(`Required argument @${n.name}(${r.name}:) cannot be deprecated.`,[Af(r.astNode),(t=r.astNode)===null||t===void 0?void 0:t.type])}}}function _i(e,t){t.name.startsWith("__")&&e.reportError(`Name "${t.name}" must not begin with "__", which is reserved by GraphQL introspection.`,t.astNode)}function n7(e){let t=l7(e),n=e.schema.getTypeMap();for(let r of Object.values(n)){if(!Ru(r)){e.reportError(`Expected GraphQL named type but got: ${Y(r)}.`,r.astNode);continue}ys(r)||_i(e,r),ye(r)||Le(r)?(Hm(e,r),Wm(e,r)):ct(r)?s7(e,r):ze(r)?o7(e,r):Ae(r)&&(a7(e,r),t(r))}}function Hm(e,t){let n=Object.values(t.getFields());n.length===0&&e.reportError(`Type ${t.name} must define one or more fields.`,[t.astNode,...t.extensionASTNodes]);for(let o of n){if(_i(e,o),!an(o.type)){var r;e.reportError(`The type of ${t.name}.${o.name} must be Output Type but got: ${Y(o.type)}.`,(r=o.astNode)===null||r===void 0?void 0:r.type)}for(let a of o.args){let u=a.name;if(_i(e,a),!ft(a.type)){var i;e.reportError(`The type of ${t.name}.${o.name}(${u}:) must be Input Type but got: ${Y(a.type)}.`,(i=a.astNode)===null||i===void 0?void 0:i.type)}if(br(a)&&a.deprecationReason!=null){var s;e.reportError(`Required argument ${t.name}.${o.name}(${u}:) cannot be deprecated.`,[Af(a.astNode),(s=a.astNode)===null||s===void 0?void 0:s.type])}}}}function Wm(e,t){let n=Object.create(null);for(let r of t.getInterfaces()){if(!Le(r)){e.reportError(`Type ${Y(t)} must only implement Interface types, it cannot implement ${Y(r)}.`,ea(t,r));continue}if(t===r){e.reportError(`Type ${t.name} cannot implement itself because it would create a circular reference.`,ea(t,r));continue}if(n[r.name]){e.reportError(`Type ${t.name} can only implement ${r.name} once.`,ea(t,r));continue}n[r.name]=!0,i7(e,t,r),r7(e,t,r)}}function r7(e,t,n){let r=t.getFields();for(let u of Object.values(n.getFields())){let l=u.name,c=r[l];if(!c){e.reportError(`Interface field ${n.name}.${l} expected but ${t.name} does not provide it.`,[u.astNode,t.astNode,...t.extensionASTNodes]);continue}if(!Hn(e.schema,c.type,u.type)){var i,s;e.reportError(`Interface field ${n.name}.${l} expects type ${Y(u.type)} but ${t.name}.${l} is type ${Y(c.type)}.`,[(i=u.astNode)===null||i===void 0?void 0:i.type,(s=c.astNode)===null||s===void 0?void 0:s.type])}for(let f of u.args){let d=f.name,m=c.args.find(g=>g.name===d);if(!m){e.reportError(`Interface field argument ${n.name}.${l}(${d}:) expected but ${t.name}.${l} does not provide it.`,[f.astNode,c.astNode]);continue}if(!Ns(f.type,m.type)){var o,a;e.reportError(`Interface field argument ${n.name}.${l}(${d}:) expects type ${Y(f.type)} but ${t.name}.${l}(${d}:) is type ${Y(m.type)}.`,[(o=f.astNode)===null||o===void 0?void 0:o.type,(a=m.astNode)===null||a===void 0?void 0:a.type])}}for(let f of c.args){let d=f.name;!u.args.find(g=>g.name===d)&&br(f)&&e.reportError(`Object field ${t.name}.${l} includes required argument ${d} that is missing from the Interface field ${n.name}.${l}.`,[f.astNode,u.astNode])}}}function i7(e,t,n){let r=t.getInterfaces();for(let i of n.getInterfaces())r.includes(i)||e.reportError(i===t?`Type ${t.name} cannot implement ${n.name} because it would create a circular reference.`:`Type ${t.name} must implement ${i.name} because it is implemented by ${n.name}.`,[...ea(n,i),...ea(t,n)])}function s7(e,t){let n=t.getTypes();n.length===0&&e.reportError(`Union type ${t.name} must define one or more member types.`,[t.astNode,...t.extensionASTNodes]);let r=Object.create(null);for(let i of n){if(r[i.name]){e.reportError(`Union type ${t.name} can only include type ${i.name} once.`,zm(t,i.name));continue}r[i.name]=!0,ye(i)||e.reportError(`Union type ${t.name} can only include Object types, it cannot include ${Y(i)}.`,zm(t,String(i)))}}function o7(e,t){let n=t.getValues();n.length===0&&e.reportError(`Enum type ${t.name} must define one or more values.`,[t.astNode,...t.extensionASTNodes]);for(let r of n)_i(e,r)}function a7(e,t){let n=Object.values(t.getFields());n.length===0&&e.reportError(`Input Object type ${t.name} must define one or more fields.`,[t.astNode,...t.extensionASTNodes]);for(let s of n){if(_i(e,s),!ft(s.type)){var r;e.reportError(`The type of ${t.name}.${s.name} must be Input Type but got: ${Y(s.type)}.`,(r=s.astNode)===null||r===void 0?void 0:r.type)}if(vs(s)&&s.deprecationReason!=null){var i;e.reportError(`Required input field ${t.name}.${s.name} cannot be deprecated.`,[Af(s.astNode),(i=s.astNode)===null||i===void 0?void 0:i.type])}t.isOneOf&&u7(t,s,e)}}function u7(e,t,n){if(ve(t.type)){var r;n.reportError(`OneOf input field ${e.name}.${t.name} must be nullable.`,(r=t.astNode)===null||r===void 0?void 0:r.type)}t.defaultValue!==void 0&&n.reportError(`OneOf input field ${e.name}.${t.name} cannot have a default value.`,t.astNode)}function l7(e){let t=Object.create(null),n=[],r=Object.create(null);return i;function i(s){if(t[s.name])return;t[s.name]=!0,r[s.name]=n.length;let o=Object.values(s.getFields());for(let a of o)if(ve(a.type)&&Ae(a.type.ofType)){let u=a.type.ofType,l=r[u.name];if(n.push(a),l===void 0)i(u);else{let c=n.slice(l),f=c.map(d=>d.name).join(".");e.reportError(`Cannot reference Input Object "${u.name}" within itself through a series of non-null fields: "${f}".`,c.map(d=>d.astNode))}n.pop()}r[s.name]=void 0}}function ea(e,t){let{astNode:n,extensionASTNodes:r}=e;return(n!=null?[n,...r]:r).flatMap(s=>{var o;return(o=s.interfaces)!==null&&o!==void 0?o:[]}).filter(s=>s.name.value===t.name)}function zm(e,t){let{astNode:n,extensionASTNodes:r}=e;return(n!=null?[n,...r]:r).flatMap(s=>{var o;return(o=s.types)!==null&&o!==void 0?o:[]}).filter(s=>s.name.value===t)}function Af(e){var t;return e==null||(t=e.directives)===null||t===void 0?void 0:t.find(n=>n.name.value===Ts.name)}function nt(e,t){switch(t.kind){case b.LIST_TYPE:{let n=nt(e,t.type);return n&&new qe(n)}case b.NON_NULL_TYPE:{let n=nt(e,t.type);return n&&new ge(n)}case b.NAMED_TYPE:return e.getType(t.name.value)}}var Ei=class{constructor(t,n,r){this._schema=t,this._typeStack=[],this._parentTypeStack=[],this._inputTypeStack=[],this._fieldDefStack=[],this._defaultValueStack=[],this._directive=null,this._argument=null,this._enumValue=null,this._getFieldDef=r??c7,n&&(ft(n)&&this._inputTypeStack.push(n),_t(n)&&this._parentTypeStack.push(n),an(n)&&this._typeStack.push(n))}get[Symbol.toStringTag](){return"TypeInfo"}getType(){if(this._typeStack.length>0)return this._typeStack[this._typeStack.length-1]}getParentType(){if(this._parentTypeStack.length>0)return this._parentTypeStack[this._parentTypeStack.length-1]}getInputType(){if(this._inputTypeStack.length>0)return this._inputTypeStack[this._inputTypeStack.length-1]}getParentInputType(){if(this._inputTypeStack.length>1)return this._inputTypeStack[this._inputTypeStack.length-2]}getFieldDef(){if(this._fieldDefStack.length>0)return this._fieldDefStack[this._fieldDefStack.length-1]}getDefaultValue(){if(this._defaultValueStack.length>0)return this._defaultValueStack[this._defaultValueStack.length-1]}getDirective(){return this._directive}getArgument(){return this._argument}getEnumValue(){return this._enumValue}enter(t){let n=this._schema;switch(t.kind){case b.SELECTION_SET:{let i=Ce(this.getType());this._parentTypeStack.push(_t(i)?i:void 0);break}case b.FIELD:{let i=this.getParentType(),s,o;i&&(s=this._getFieldDef(n,i,t),s&&(o=s.type)),this._fieldDefStack.push(s),this._typeStack.push(an(o)?o:void 0);break}case b.DIRECTIVE:this._directive=n.getDirective(t.name.value);break;case b.OPERATION_DEFINITION:{let i=n.getRootType(t.operation);this._typeStack.push(ye(i)?i:void 0);break}case b.INLINE_FRAGMENT:case b.FRAGMENT_DEFINITION:{let i=t.typeCondition,s=i?nt(n,i):Ce(this.getType());this._typeStack.push(an(s)?s:void 0);break}case b.VARIABLE_DEFINITION:{let i=nt(n,t.type);this._inputTypeStack.push(ft(i)?i:void 0);break}case b.ARGUMENT:{var r;let i,s,o=(r=this.getDirective())!==null&&r!==void 0?r:this.getFieldDef();o&&(i=o.args.find(a=>a.name===t.name.value),i&&(s=i.type)),this._argument=i,this._defaultValueStack.push(i?i.defaultValue:void 0),this._inputTypeStack.push(ft(s)?s:void 0);break}case b.LIST:{let i=qr(this.getInputType()),s=Be(i)?i.ofType:i;this._defaultValueStack.push(void 0),this._inputTypeStack.push(ft(s)?s:void 0);break}case b.OBJECT_FIELD:{let i=Ce(this.getInputType()),s,o;Ae(i)&&(o=i.getFields()[t.name.value],o&&(s=o.type)),this._defaultValueStack.push(o?o.defaultValue:void 0),this._inputTypeStack.push(ft(s)?s:void 0);break}case b.ENUM:{let i=Ce(this.getInputType()),s;ze(i)&&(s=i.getValue(t.value)),this._enumValue=s;break}default:}}leave(t){switch(t.kind){case b.SELECTION_SET:this._parentTypeStack.pop();break;case b.FIELD:this._fieldDefStack.pop(),this._typeStack.pop();break;case b.DIRECTIVE:this._directive=null;break;case b.OPERATION_DEFINITION:case b.INLINE_FRAGMENT:case b.FRAGMENT_DEFINITION:this._typeStack.pop();break;case b.VARIABLE_DEFINITION:this._inputTypeStack.pop();break;case b.ARGUMENT:this._argument=null,this._defaultValueStack.pop(),this._inputTypeStack.pop();break;case b.LIST:case b.OBJECT_FIELD:this._defaultValueStack.pop(),this._inputTypeStack.pop();break;case b.ENUM:this._enumValue=null;break;default:}}};function c7(e,t,n){let r=n.name.value;if(r===Wn.name&&e.getQueryType()===t)return Wn;if(r===zn.name&&e.getQueryType()===t)return zn;if(r===Qn.name&&_t(t))return Qn;if(ye(t)||Le(t))return t.getFields()[r]}function ta(e,t){return{enter(...n){let r=n[0];e.enter(r);let i=di(t,r.kind).enter;if(i){let s=i.apply(t,n);return s!==void 0&&(e.leave(r),$o(s)&&e.enter(s)),s}},leave(...n){let r=n[0],i=di(t,r.kind).leave,s;return i&&(s=i.apply(t,n)),e.leave(r),s}}}function Ff(e){return e.kind===b.OPERATION_DEFINITION||e.kind===b.FRAGMENT_DEFINITION}function Sf(e){return e.kind===b.SCHEMA_DEFINITION||Yn(e)||e.kind===b.DIRECTIVE_DEFINITION}function Yn(e){return e.kind===b.SCALAR_TYPE_DEFINITION||e.kind===b.OBJECT_TYPE_DEFINITION||e.kind===b.INTERFACE_TYPE_DEFINITION||e.kind===b.UNION_TYPE_DEFINITION||e.kind===b.ENUM_TYPE_DEFINITION||e.kind===b.INPUT_OBJECT_TYPE_DEFINITION}function Rf(e){return e.kind===b.SCHEMA_EXTENSION||Ls(e)}function Ls(e){return e.kind===b.SCALAR_TYPE_EXTENSION||e.kind===b.OBJECT_TYPE_EXTENSION||e.kind===b.INTERFACE_TYPE_EXTENSION||e.kind===b.UNION_TYPE_EXTENSION||e.kind===b.ENUM_TYPE_EXTENSION||e.kind===b.INPUT_OBJECT_TYPE_EXTENSION}function As(e){return{Document(t){for(let n of t.definitions)if(!Ff(n)){let r=n.kind===b.SCHEMA_DEFINITION||n.kind===b.SCHEMA_EXTENSION?"schema":'"'+n.name.value+'"';e.reportError(new V(`The ${r} definition is not executable.`,{nodes:n}))}return!1}}}function If(e){return{Field(t){let n=e.getParentType();if(n&&!e.getFieldDef()){let i=e.getSchema(),s=t.name.value,o=Jt("to use an inline fragment on",f7(i,n,s));o===""&&(o=Jt(h7(n,s))),e.reportError(new V(`Cannot query field "${s}" on type "${n.name}".`+o,{nodes:t}))}}}}function f7(e,t,n){if(!yt(t))return[];let r=new Set,i=Object.create(null);for(let o of e.getPossibleTypes(t))if(o.getFields()[n]){r.add(o),i[o.name]=1;for(let a of o.getInterfaces()){var s;a.getFields()[n]&&(r.add(a),i[a.name]=((s=i[a.name])!==null&&s!==void 0?s:0)+1)}}return[...r].sort((o,a)=>{let u=i[a.name]-i[o.name];return u!==0?u:Le(o)&&e.isSubType(o,a)?-1:Le(a)&&e.isSubType(a,o)?1:_s(o.name,a.name)}).map(o=>o.name)}function h7(e,t){if(ye(e)||Le(e)){let n=Object.keys(e.getFields());return on(t,n)}return[]}function Fs(e){return{InlineFragment(t){let n=t.typeCondition;if(n){let r=nt(e.getSchema(),n);if(r&&!_t(r)){let i=$e(n);e.reportError(new V(`Fragment cannot condition on non composite type "${i}".`,{nodes:n}))}}},FragmentDefinition(t){let n=nt(e.getSchema(),t.typeCondition);if(n&&!_t(n)){let r=$e(t.typeCondition);e.reportError(new V(`Fragment "${t.name.value}" cannot condition on non composite type "${r}".`,{nodes:t.typeCondition}))}}}}function Of(e){return{...kf(e),Argument(t){let n=e.getArgument(),r=e.getFieldDef(),i=e.getParentType();if(!n&&r&&i){let s=t.name.value,o=r.args.map(u=>u.name),a=on(s,o);e.reportError(new V(`Unknown argument "${s}" on field "${i.name}.${r.name}".`+Jt(a),{nodes:t}))}}}}function kf(e){let t=Object.create(null),n=e.getSchema(),r=n?n.getDirectives():ln;for(let o of r)t[o.name]=o.args.map(a=>a.name);let i=e.getDocument().definitions;for(let o of i)if(o.kind===b.DIRECTIVE_DEFINITION){var s;let a=(s=o.arguments)!==null&&s!==void 0?s:[];t[o.name.value]=a.map(u=>u.name.value)}return{Directive(o){let a=o.name.value,u=t[a];if(o.arguments&&u)for(let l of o.arguments){let c=l.name.value;if(!u.includes(c)){let f=on(c,u);e.reportError(new V(`Unknown argument "${c}" on directive "@${a}".`+Jt(f),{nodes:l}))}}return!1}}}function Di(e){let t=Object.create(null),n=e.getSchema(),r=n?n.getDirectives():ln;for(let s of r)t[s.name]=s.locations;let i=e.getDocument().definitions;for(let s of i)s.kind===b.DIRECTIVE_DEFINITION&&(t[s.name.value]=s.locations.map(o=>o.value));return{Directive(s,o,a,u,l){let c=s.name.value,f=t[c];if(!f){e.reportError(new V(`Unknown directive "@${c}".`,{nodes:s}));return}let d=p7(l);d&&!f.includes(d)&&e.reportError(new V(`Directive "@${c}" may not be used on ${d}.`,{nodes:s}))}}}function p7(e){let t=e[e.length-1];switch("kind"in t||et(!1),t.kind){case b.OPERATION_DEFINITION:return d7(t.operation);case b.FIELD:return oe.FIELD;case b.FRAGMENT_SPREAD:return oe.FRAGMENT_SPREAD;case b.INLINE_FRAGMENT:return oe.INLINE_FRAGMENT;case b.FRAGMENT_DEFINITION:return oe.FRAGMENT_DEFINITION;case b.VARIABLE_DEFINITION:return oe.VARIABLE_DEFINITION;case b.SCHEMA_DEFINITION:case b.SCHEMA_EXTENSION:return oe.SCHEMA;case b.SCALAR_TYPE_DEFINITION:case b.SCALAR_TYPE_EXTENSION:return oe.SCALAR;case b.OBJECT_TYPE_DEFINITION:case b.OBJECT_TYPE_EXTENSION:return oe.OBJECT;case b.FIELD_DEFINITION:return oe.FIELD_DEFINITION;case b.INTERFACE_TYPE_DEFINITION:case b.INTERFACE_TYPE_EXTENSION:return oe.INTERFACE;case b.UNION_TYPE_DEFINITION:case b.UNION_TYPE_EXTENSION:return oe.UNION;case b.ENUM_TYPE_DEFINITION:case b.ENUM_TYPE_EXTENSION:return oe.ENUM;case b.ENUM_VALUE_DEFINITION:return oe.ENUM_VALUE;case b.INPUT_OBJECT_TYPE_DEFINITION:case b.INPUT_OBJECT_TYPE_EXTENSION:return oe.INPUT_OBJECT;case b.INPUT_VALUE_DEFINITION:{let n=e[e.length-3];return"kind"in n||et(!1),n.kind===b.INPUT_OBJECT_TYPE_DEFINITION?oe.INPUT_FIELD_DEFINITION:oe.ARGUMENT_DEFINITION}default:et(!1,"Unexpected kind: "+Y(t.kind))}}function d7(e){switch(e){case mt.QUERY:return oe.QUERY;case mt.MUTATION:return oe.MUTATION;case mt.SUBSCRIPTION:return oe.SUBSCRIPTION}}function Ss(e){return{FragmentSpread(t){let n=t.name.value;e.getFragment(n)||e.reportError(new V(`Unknown fragment "${n}".`,{nodes:t.name}))}}}function bi(e){let t=e.getSchema(),n=t?t.getTypeMap():Object.create(null),r=Object.create(null);for(let s of e.getDocument().definitions)Yn(s)&&(r[s.name.value]=!0);let i=[...Object.keys(n),...Object.keys(r)];return{NamedType(s,o,a,u,l){let c=s.name.value;if(!n[c]&&!r[c]){var f;let d=(f=l[2])!==null&&f!==void 0?f:a,m=d!=null&&m7(d);if(m&&Ym.includes(c))return;let g=on(c,m?Ym.concat(i):i);e.reportError(new V(`Unknown type "${c}".`+Jt(g),{nodes:s}))}}}}var Ym=[...vr,...Nr].map(e=>e.name);function m7(e){return"kind"in e&&(Sf(e)||Rf(e))}function Mf(e){let t=0;return{Document(n){t=n.definitions.filter(r=>r.kind===b.OPERATION_DEFINITION).length},OperationDefinition(n){!n.name&&t>1&&e.reportError(new V("This anonymous operation must be the only defined operation.",{nodes:n}))}}}function Rs(e){var t,n,r;let i=e.getSchema(),s=(t=(n=(r=i?.astNode)!==null&&r!==void 0?r:i?.getQueryType())!==null&&n!==void 0?n:i?.getMutationType())!==null&&t!==void 0?t:i?.getSubscriptionType(),o=0;return{SchemaDefinition(a){if(s){e.reportError(new V("Cannot define a new schema within a schema extension.",{nodes:a}));return}o>0&&e.reportError(new V("Must provide only one schema definition.",{nodes:a})),++o}}}var g7=3;function Uf(e){function t(n,r=Object.create(null),i=0){if(n.kind===b.FRAGMENT_SPREAD){let s=n.name.value;if(r[s]===!0)return!1;let o=e.getFragment(s);if(!o)return!1;try{return r[s]=!0,t(o,r,i)}finally{r[s]=void 0}}if(n.kind===b.FIELD&&(n.name.value==="fields"||n.name.value==="interfaces"||n.name.value==="possibleTypes"||n.name.value==="inputFields")&&(i++,i>=g7))return!0;if("selectionSet"in n&&n.selectionSet){for(let s of n.selectionSet.selections)if(t(s,r,i))return!0}return!1}return{Field(n){if((n.name.value==="__schema"||n.name.value==="__type")&&t(n))return e.reportError(new V("Maximum introspection depth exceeded",{nodes:[n]})),!1}}}function Pf(e){let t=Object.create(null),n=[],r=Object.create(null);return{OperationDefinition:()=>!1,FragmentDefinition(s){return i(s),!1}};function i(s){if(t[s.name.value])return;let o=s.name.value;t[o]=!0;let a=e.getFragmentSpreads(s.selectionSet);if(a.length!==0){r[o]=n.length;for(let u of a){let l=u.name.value,c=r[l];if(n.push(u),c===void 0){let f=e.getFragment(l);f&&i(f)}else{let f=n.slice(c),d=f.slice(0,-1).map(m=>'"'+m.name.value+'"').join(", ");e.reportError(new V(`Cannot spread fragment "${l}" within itself`+(d!==""?` via ${d}.`:"."),{nodes:f}))}n.pop()}r[o]=void 0}}}function Bf(e){let t=Object.create(null);return{OperationDefinition:{enter(){t=Object.create(null)},leave(n){let r=e.getRecursiveVariableUsages(n);for(let{node:i}of r){let s=i.name.value;t[s]!==!0&&e.reportError(new V(n.name?`Variable "$${s}" is not defined by operation "${n.name.value}".`:`Variable "$${s}" is not defined.`,{nodes:[i,n]}))}}},VariableDefinition(n){t[n.variable.name.value]=!0}}}function Is(e){let t=[],n=[];return{OperationDefinition(r){return t.push(r),!1},FragmentDefinition(r){return n.push(r),!1},Document:{leave(){let r=Object.create(null);for(let i of t)for(let s of e.getRecursivelyReferencedFragments(i))r[s.name.value]=!0;for(let i of n){let s=i.name.value;r[s]!==!0&&e.reportError(new V(`Fragment "${s}" is never used.`,{nodes:i}))}}}}}function Cf(e){let t=[];return{OperationDefinition:{enter(){t=[]},leave(n){let r=Object.create(null),i=e.getRecursiveVariableUsages(n);for(let{node:s}of i)r[s.name.value]=!0;for(let s of t){let o=s.variable.name.value;r[o]!==!0&&e.reportError(new V(n.name?`Variable "$${o}" is never used in operation "${n.name.value}".`:`Variable "$${o}" is never used.`,{nodes:s}))}}},VariableDefinition(n){t.push(n)}}}function qu(e){switch(e.kind){case b.OBJECT:return{...e,fields:_7(e.fields)};case b.LIST:return{...e,values:e.values.map(qu)};case b.INT:case b.FLOAT:case b.STRING:case b.BOOLEAN:case b.NULL:case b.ENUM:case b.VARIABLE:return e}}function _7(e){return e.map(t=>({...t,value:qu(t.value)})).sort((t,n)=>_s(t.name.value,n.name.value))}function Jm(e){return Array.isArray(e)?e.map(([t,n])=>`subfields "${t}" conflict because `+Jm(n)).join(" and "):e}function Gf(e){let t=new Qu,n=new jf,r=new Map;return{SelectionSet(i){let s=E7(e,r,t,n,e.getParentType(),i);for(let[[o,a],u,l]of s){let c=Jm(a);e.reportError(new V(`Fields "${o}" conflict because ${c}. Use different aliases on the fields to fetch both if this was intentional.`,{nodes:u.concat(l)}))}}}}function E7(e,t,n,r,i,s){let o=[],[a,u]=zu(e,t,i,s);if(b7(e,o,t,n,r,a),u.length!==0)for(let l=0;l<u.length;l++){Hu(e,o,t,n,r,!1,a,u[l]);for(let c=l+1;c<u.length;c++)Wu(e,o,t,n,r,!1,u[l],u[c])}return o}function Hu(e,t,n,r,i,s,o,a){if(r.has(o,a,s))return;r.add(o,a,s);let u=e.getFragment(a);if(!u)return;let[l,c]=$f(e,n,u);if(o!==l){qf(e,t,n,r,i,s,o,l);for(let f of c)Hu(e,t,n,r,i,s,o,f)}}function Wu(e,t,n,r,i,s,o,a){if(o===a||i.has(o,a,s))return;i.add(o,a,s);let u=e.getFragment(o),l=e.getFragment(a);if(!u||!l)return;let[c,f]=$f(e,n,u),[d,m]=$f(e,n,l);qf(e,t,n,r,i,s,c,d);for(let g of m)Wu(e,t,n,r,i,s,o,g);for(let g of f)Wu(e,t,n,r,i,s,g,a)}function D7(e,t,n,r,i,s,o,a,u){let l=[],[c,f]=zu(e,t,s,o),[d,m]=zu(e,t,a,u);qf(e,l,t,n,r,i,c,d);for(let g of m)Hu(e,l,t,n,r,i,c,g);for(let g of f)Hu(e,l,t,n,r,i,d,g);for(let g of f)for(let E of m)Wu(e,l,t,n,r,i,g,E);return l}function b7(e,t,n,r,i,s){for(let[o,a]of Object.entries(s))if(a.length>1)for(let u=0;u<a.length;u++)for(let l=u+1;l<a.length;l++){let c=Zm(e,n,r,i,!1,o,a[u],a[l]);c&&t.push(c)}}function qf(e,t,n,r,i,s,o,a){for(let[u,l]of Object.entries(o)){let c=a[u];if(c)for(let f of l)for(let d of c){let m=Zm(e,n,r,i,s,u,f,d);m&&t.push(m)}}}function Zm(e,t,n,r,i,s,o,a){let[u,l,c]=o,[f,d,m]=a,g=i||u!==f&&ye(u)&&ye(f);if(!g){let S=l.name.value,C=d.name.value;if(S!==C)return[[s,`"${S}" and "${C}" are different fields`],[l],[d]];if(!v7(l,d))return[[s,"they have differing arguments"],[l],[d]]}let E=c?.type,T=m?.type;if(E&&T&&Vf(E,T))return[[s,`they return conflicting types "${Y(E)}" and "${Y(T)}"`],[l],[d]];let v=l.selectionSet,A=d.selectionSet;if(v&&A){let S=D7(e,t,n,r,g,Ce(E),v,Ce(T),A);return N7(S,s,l,d)}}function v7(e,t){let n=e.arguments,r=t.arguments;if(n===void 0||n.length===0)return r===void 0||r.length===0;if(r===void 0||r.length===0||n.length!==r.length)return!1;let i=new Map(r.map(({name:s,value:o})=>[s.value,o]));return n.every(s=>{let o=s.value,a=i.get(s.name.value);return a===void 0?!1:Xm(o)===Xm(a)})}function Xm(e){return $e(qu(e))}function Vf(e,t){return Be(e)?Be(t)?Vf(e.ofType,t.ofType):!0:Be(t)?!0:ve(e)?ve(t)?Vf(e.ofType,t.ofType):!0:ve(t)?!0:un(e)||un(t)?e!==t:!1}function zu(e,t,n,r){let i=t.get(r);if(i)return i;let s=Object.create(null),o=Object.create(null);Km(e,n,r,s,o);let a=[s,Object.keys(o)];return t.set(r,a),a}function $f(e,t,n){let r=t.get(n.selectionSet);if(r)return r;let i=nt(e.getSchema(),n.typeCondition);return zu(e,t,i,n.selectionSet)}function Km(e,t,n,r,i){for(let s of n.selections)switch(s.kind){case b.FIELD:{let o=s.name.value,a;(ye(t)||Le(t))&&(a=t.getFields()[o]);let u=s.alias?s.alias.value:o;r[u]||(r[u]=[]),r[u].push([t,s,a]);break}case b.FRAGMENT_SPREAD:i[s.name.value]=!0;break;case b.INLINE_FRAGMENT:{let o=s.typeCondition,a=o?nt(e.getSchema(),o):t;Km(e,a,s.selectionSet,r,i);break}}}function N7(e,t,n,r){if(e.length>0)return[[t,e.map(([i])=>i)],[n,...e.map(([,i])=>i).flat()],[r,...e.map(([,,i])=>i).flat()]]}var Qu=class{constructor(){this._data=new Map}has(t,n,r){var i;let s=(i=this._data.get(t))===null||i===void 0?void 0:i.get(n);return s===void 0?!1:r?!0:r===s}add(t,n,r){let i=this._data.get(t);i===void 0?this._data.set(t,new Map([[n,r]])):i.set(n,r)}},jf=class{constructor(){this._orderedPairSet=new Qu}has(t,n,r){return t<n?this._orderedPairSet.has(t,n,r):this._orderedPairSet.has(n,t,r)}add(t,n,r){t<n?this._orderedPairSet.add(t,n,r):this._orderedPairSet.add(n,t,r)}};function Hf(e){return{InlineFragment(t){let n=e.getType(),r=e.getParentType();if(_t(n)&&_t(r)&&!mi(e.getSchema(),n,r)){let i=Y(r),s=Y(n);e.reportError(new V(`Fragment cannot be spread here as objects of type "${i}" can never be of type "${s}".`,{nodes:t}))}},FragmentSpread(t){let n=t.name.value,r=T7(e,n),i=e.getParentType();if(r&&i&&!mi(e.getSchema(),r,i)){let s=Y(i),o=Y(r);e.reportError(new V(`Fragment "${n}" cannot be spread here as objects of type "${s}" can never be of type "${o}".`,{nodes:t}))}}}}function T7(e,t){let n=e.getFragment(t);if(n){let r=nt(e.getSchema(),n.typeCondition);if(_t(r))return r}}function Os(e){let t=e.getSchema(),n=Object.create(null);for(let i of e.getDocument().definitions)Yn(i)&&(n[i.name.value]=i);return{ScalarTypeExtension:r,ObjectTypeExtension:r,InterfaceTypeExtension:r,UnionTypeExtension:r,EnumTypeExtension:r,InputObjectTypeExtension:r};function r(i){let s=i.name.value,o=n[s],a=t?.getType(s),u;if(o?u=w7[o.kind]:a&&(u=x7(a)),u){if(u!==i.kind){let l=y7(i.kind);e.reportError(new V(`Cannot extend non-${l} type "${s}".`,{nodes:o?[o,i]:i}))}}else{let l=Object.keys({...n,...t?.getTypeMap()}),c=on(s,l);e.reportError(new V(`Cannot extend type "${s}" because it is not defined.`+Jt(c),{nodes:i.name}))}}}var w7={[b.SCALAR_TYPE_DEFINITION]:b.SCALAR_TYPE_EXTENSION,[b.OBJECT_TYPE_DEFINITION]:b.OBJECT_TYPE_EXTENSION,[b.INTERFACE_TYPE_DEFINITION]:b.INTERFACE_TYPE_EXTENSION,[b.UNION_TYPE_DEFINITION]:b.UNION_TYPE_EXTENSION,[b.ENUM_TYPE_DEFINITION]:b.ENUM_TYPE_EXTENSION,[b.INPUT_OBJECT_TYPE_DEFINITION]:b.INPUT_OBJECT_TYPE_EXTENSION};function x7(e){if(vt(e))return b.SCALAR_TYPE_EXTENSION;if(ye(e))return b.OBJECT_TYPE_EXTENSION;if(Le(e))return b.INTERFACE_TYPE_EXTENSION;if(ct(e))return b.UNION_TYPE_EXTENSION;if(ze(e))return b.ENUM_TYPE_EXTENSION;if(Ae(e))return b.INPUT_OBJECT_TYPE_EXTENSION;et(!1,"Unexpected type: "+Y(e))}function y7(e){switch(e){case b.SCALAR_TYPE_EXTENSION:return"scalar";case b.OBJECT_TYPE_EXTENSION:return"object";case b.INTERFACE_TYPE_EXTENSION:return"interface";case b.UNION_TYPE_EXTENSION:return"union";case b.ENUM_TYPE_EXTENSION:return"enum";case b.INPUT_OBJECT_TYPE_EXTENSION:return"input object";default:et(!1,"Unexpected kind: "+Y(e))}}function ks(e){return{...Wf(e),Field:{leave(t){var n;let r=e.getFieldDef();if(!r)return!1;let i=new Set((n=t.arguments)===null||n===void 0?void 0:n.map(s=>s.name.value));for(let s of r.args)if(!i.has(s.name)&&br(s)){let o=Y(s.type);e.reportError(new V(`Field "${r.name}" argument "${s.name}" of type "${o}" is required, but it was not provided.`,{nodes:t}))}}}}}function Wf(e){var t;let n=Object.create(null),r=e.getSchema(),i=(t=r?.getDirectives())!==null&&t!==void 0?t:ln;for(let a of i)n[a.name]=sn(a.args.filter(br),u=>u.name);let s=e.getDocument().definitions;for(let a of s)if(a.kind===b.DIRECTIVE_DEFINITION){var o;let u=(o=a.arguments)!==null&&o!==void 0?o:[];n[a.name.value]=sn(u.filter(L7),l=>l.name.value)}return{Directive:{leave(a){let u=a.name.value,l=n[u];if(l){var c;let f=(c=a.arguments)!==null&&c!==void 0?c:[],d=new Set(f.map(m=>m.name.value));for(let[m,g]of Object.entries(l))if(!d.has(m)){let E=Ds(g.type)?Y(g.type):$e(g.type);e.reportError(new V(`Directive "@${u}" argument "${m}" of type "${E}" is required, but it was not provided.`,{nodes:a}))}}}}}}function L7(e){return e.type.kind===b.NON_NULL_TYPE&&e.defaultValue==null}function zf(e){return{Field(t){let n=e.getType(),r=t.selectionSet;if(n)if(un(Ce(n))){if(r){let i=t.name.value,s=Y(n);e.reportError(new V(`Field "${i}" must not have a selection since type "${s}" has no subfields.`,{nodes:r}))}}else if(r){if(r.selections.length===0){let i=t.name.value,s=Y(n);e.reportError(new V(`Field "${i}" of type "${s}" must have at least one field selected.`,{nodes:t}))}}else{let i=t.name.value,s=Y(n);e.reportError(new V(`Field "${i}" of type "${s}" must have a selection of subfields. Did you mean "${i} { ... }"?`,{nodes:t}))}}}}function gn(e,t,n){if(e){if(e.kind===b.VARIABLE){let r=e.name.value;if(n==null||n[r]===void 0)return;let i=n[r];return i===null&&ve(t)?void 0:i}if(ve(t))return e.kind===b.NULL?void 0:gn(e,t.ofType,n);if(e.kind===b.NULL)return null;if(Be(t)){let r=t.ofType;if(e.kind===b.LIST){let s=[];for(let o of e.values)if(eg(o,n)){if(ve(r))return;s.push(null)}else{let a=gn(o,r,n);if(a===void 0)return;s.push(a)}return s}let i=gn(e,r,n);return i===void 0?void 0:[i]}if(Ae(t)){if(e.kind!==b.OBJECT)return;let r=Object.create(null),i=sn(e.fields,s=>s.name.value);for(let s of Object.values(t.getFields())){let o=i[s.name];if(!o||eg(o.value,n)){if(s.defaultValue!==void 0)r[s.name]=s.defaultValue;else if(ve(s.type))return;continue}let a=gn(o.value,s.type,n);if(a===void 0)return;r[s.name]=a}if(t.isOneOf){let s=Object.keys(r);if(s.length!==1||r[s[0]]===null)return}return r}if(un(t)){let r;try{r=t.parseLiteral(e,n)}catch{return}return r===void 0?void 0:r}et(!1,"Unexpected input type: "+Y(t))}}function eg(e,t){return e.kind===b.VARIABLE&&(t==null||t[e.name.value]===void 0)}function A7(e,t,n){var r;let i={},s=(r=t.arguments)!==null&&r!==void 0?r:[],o=sn(s,a=>a.name.value);for(let a of e.args){let u=a.name,l=a.type,c=o[u];if(!c){if(a.defaultValue!==void 0)i[u]=a.defaultValue;else if(ve(l))throw new V(`Argument "${u}" of required type "${Y(l)}" was not provided.`,{nodes:t});continue}let f=c.value,d=f.kind===b.NULL;if(f.kind===b.VARIABLE){let g=f.name.value;if(n==null||!F7(n,g)){if(a.defaultValue!==void 0)i[u]=a.defaultValue;else if(ve(l))throw new V(`Argument "${u}" of required type "${Y(l)}" was provided the variable "$${g}" which was not provided a runtime value.`,{nodes:f});continue}d=n[g]==null}if(d&&ve(l))throw new V(`Argument "${u}" of non-null type "${Y(l)}" must not be null.`,{nodes:f});let m=gn(f,l,n);if(m===void 0)throw new V(`Argument "${u}" has invalid value ${$e(f)}.`,{nodes:f});i[u]=m}return i}function vi(e,t,n){var r;let i=(r=t.directives)===null||r===void 0?void 0:r.find(s=>s.name.value===e.name);if(i)return A7(e,i,n)}function F7(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function ng(e,t,n,r,i){let s=new Map;return Yf(e,t,n,r,i,s,new Set),s}function Yf(e,t,n,r,i,s,o){for(let a of i.selections)switch(a.kind){case b.FIELD:{if(!Qf(n,a))continue;let u=S7(a),l=s.get(u);l!==void 0?l.push(a):s.set(u,[a]);break}case b.INLINE_FRAGMENT:{if(!Qf(n,a)||!tg(e,a,r))continue;Yf(e,t,n,r,a.selectionSet,s,o);break}case b.FRAGMENT_SPREAD:{let u=a.name.value;if(o.has(u)||!Qf(n,a))continue;o.add(u);let l=t[u];if(!l||!tg(e,l,r))continue;Yf(e,t,n,r,l.selectionSet,s,o);break}}}function Qf(e,t){let n=vi(Uu,t,e);if(n?.if===!0)return!1;let r=vi(Mu,t,e);return r?.if!==!1}function tg(e,t,n){let r=t.typeCondition;if(!r)return!0;let i=nt(e,r);return i===n?!0:yt(i)?e.isSubType(i,n):!1}function S7(e){return e.alias?e.alias.value:e.name.value}function Xf(e){return{OperationDefinition(t){if(t.operation==="subscription"){let n=e.getSchema(),r=n.getSubscriptionType();if(r){let i=t.name?t.name.value:null,s=Object.create(null),o=e.getDocument(),a=Object.create(null);for(let l of o.definitions)l.kind===b.FRAGMENT_DEFINITION&&(a[l.name.value]=l);let u=ng(n,a,s,r,t.selectionSet);if(u.size>1){let f=[...u.values()].slice(1).flat();e.reportError(new V(i!=null?`Subscription "${i}" must select only one top level field.`:"Anonymous Subscription must select only one top level field.",{nodes:f}))}for(let l of u.values())l[0].name.value.startsWith("__")&&e.reportError(new V(i!=null?`Subscription "${i}" must not select an introspection top level field.`:"Anonymous Subscription must not select an introspection top level field.",{nodes:l}))}}}}}function Ms(e,t){let n=new Map;for(let r of e){let i=t(r),s=n.get(i);s===void 0?n.set(i,[r]):s.push(r)}return n}function Jf(e){return{DirectiveDefinition(r){var i;let s=(i=r.arguments)!==null&&i!==void 0?i:[];return n(`@${r.name.value}`,s)},InterfaceTypeDefinition:t,InterfaceTypeExtension:t,ObjectTypeDefinition:t,ObjectTypeExtension:t};function t(r){var i;let s=r.name.value,o=(i=r.fields)!==null&&i!==void 0?i:[];for(let u of o){var a;let l=u.name.value,c=(a=u.arguments)!==null&&a!==void 0?a:[];n(`${s}.${l}`,c)}return!1}function n(r,i){let s=Ms(i,o=>o.name.value);for(let[o,a]of s)a.length>1&&e.reportError(new V(`Argument "${r}(${o}:)" can only be defined once.`,{nodes:a.map(u=>u.name)}));return!1}}function Ni(e){return{Field:t,Directive:t};function t(n){var r;let i=(r=n.arguments)!==null&&r!==void 0?r:[],s=Ms(i,o=>o.name.value);for(let[o,a]of s)a.length>1&&e.reportError(new V(`There can be only one argument named "${o}".`,{nodes:a.map(u=>u.name)}))}}function Us(e){let t=Object.create(null),n=e.getSchema();return{DirectiveDefinition(r){let i=r.name.value;if(n!=null&&n.getDirective(i)){e.reportError(new V(`Directive "@${i}" already exists in the schema. It cannot be redefined.`,{nodes:r.name}));return}return t[i]?e.reportError(new V(`There can be only one directive named "@${i}".`,{nodes:[t[i],r.name]})):t[i]=r.name,!1}}}function Ti(e){let t=Object.create(null),n=e.getSchema(),r=n?n.getDirectives():ln;for(let a of r)t[a.name]=!a.isRepeatable;let i=e.getDocument().definitions;for(let a of i)a.kind===b.DIRECTIVE_DEFINITION&&(t[a.name.value]=!a.repeatable);let s=Object.create(null),o=Object.create(null);return{enter(a){if(!("directives"in a)||!a.directives)return;let u;if(a.kind===b.SCHEMA_DEFINITION||a.kind===b.SCHEMA_EXTENSION)u=s;else if(Yn(a)||Ls(a)){let l=a.name.value;u=o[l],u===void 0&&(o[l]=u=Object.create(null))}else u=Object.create(null);for(let l of a.directives){let c=l.name.value;t[c]&&(u[c]?e.reportError(new V(`The directive "@${c}" can only be used once at this location.`,{nodes:[u[c],l]})):u[c]=l)}}}}function Ps(e){let t=e.getSchema(),n=t?t.getTypeMap():Object.create(null),r=Object.create(null);return{EnumTypeDefinition:i,EnumTypeExtension:i};function i(s){var o;let a=s.name.value;r[a]||(r[a]=Object.create(null));let u=(o=s.values)!==null&&o!==void 0?o:[],l=r[a];for(let c of u){let f=c.name.value,d=n[a];ze(d)&&d.getValue(f)?e.reportError(new V(`Enum value "${a}.${f}" already exists in the schema. It cannot also be defined in this type extension.`,{nodes:c.name})):l[f]?e.reportError(new V(`Enum value "${a}.${f}" can only be defined once.`,{nodes:[l[f],c.name]})):l[f]=c.name}return!1}}function Bs(e){let t=e.getSchema(),n=t?t.getTypeMap():Object.create(null),r=Object.create(null);return{InputObjectTypeDefinition:i,InputObjectTypeExtension:i,InterfaceTypeDefinition:i,InterfaceTypeExtension:i,ObjectTypeDefinition:i,ObjectTypeExtension:i};function i(s){var o;let a=s.name.value;r[a]||(r[a]=Object.create(null));let u=(o=s.fields)!==null&&o!==void 0?o:[],l=r[a];for(let c of u){let f=c.name.value;R7(n[a],f)?e.reportError(new V(`Field "${a}.${f}" already exists in the schema. It cannot also be defined in this type extension.`,{nodes:c.name})):l[f]?e.reportError(new V(`Field "${a}.${f}" can only be defined once.`,{nodes:[l[f],c.name]})):l[f]=c.name}return!1}}function R7(e,t){return ye(e)||Le(e)||Ae(e)?e.getFields()[t]!=null:!1}function Zf(e){let t=Object.create(null);return{OperationDefinition:()=>!1,FragmentDefinition(n){let r=n.name.value;return t[r]?e.reportError(new V(`There can be only one fragment named "${r}".`,{nodes:[t[r],n.name]})):t[r]=n.name,!1}}}function wi(e){let t=[],n=Object.create(null);return{ObjectValue:{enter(){t.push(n),n=Object.create(null)},leave(){let r=t.pop();r||et(!1),n=r}},ObjectField(r){let i=r.name.value;n[i]?e.reportError(new V(`There can be only one input field named "${i}".`,{nodes:[n[i],r.name]})):n[i]=r.name}}}function Kf(e){let t=Object.create(null);return{OperationDefinition(n){let r=n.name;return r&&(t[r.value]?e.reportError(new V(`There can be only one operation named "${r.value}".`,{nodes:[t[r.value],r]})):t[r.value]=r),!1},FragmentDefinition:()=>!1}}function Cs(e){let t=e.getSchema(),n=Object.create(null),r=t?{query:t.getQueryType(),mutation:t.getMutationType(),subscription:t.getSubscriptionType()}:{};return{SchemaDefinition:i,SchemaExtension:i};function i(s){var o;let a=(o=s.operationTypes)!==null&&o!==void 0?o:[];for(let u of a){let l=u.operation,c=n[l];r[l]?e.reportError(new V(`Type for ${l} already defined in the schema. It cannot be redefined.`,{nodes:u})):c?e.reportError(new V(`There can be only one ${l} type in schema.`,{nodes:[c,u]})):n[l]=u}return!1}}function Vs(e){let t=Object.create(null),n=e.getSchema();return{ScalarTypeDefinition:r,ObjectTypeDefinition:r,InterfaceTypeDefinition:r,UnionTypeDefinition:r,EnumTypeDefinition:r,InputObjectTypeDefinition:r};function r(i){let s=i.name.value;if(n!=null&&n.getType(s)){e.reportError(new V(`Type "${s}" already exists in the schema. It cannot also be defined in this type definition.`,{nodes:i.name}));return}return t[s]?e.reportError(new V(`There can be only one type named "${s}".`,{nodes:[t[s],i.name]})):t[s]=i.name,!1}}function $s(e){return{OperationDefinition(t){var n;let r=(n=t.variableDefinitions)!==null&&n!==void 0?n:[],i=Ms(r,s=>s.variable.name.value);for(let[s,o]of i)o.length>1&&e.reportError(new V(`There can be only one variable named "$${s}".`,{nodes:o.map(a=>a.variable.name)}))}}}function e1(e){let t={};return{OperationDefinition:{enter(){t={}}},VariableDefinition(n){t[n.variable.name.value]=n},ListValue(n){let r=qr(e.getParentInputType());if(!Be(r))return xi(e,n),!1},ObjectValue(n){let r=Ce(e.getInputType());if(!Ae(r))return xi(e,n),!1;let i=sn(n.fields,s=>s.name.value);for(let s of Object.values(r.getFields()))if(!i[s.name]&&vs(s)){let a=Y(s.type);e.reportError(new V(`Field "${r.name}.${s.name}" of required type "${a}" was not provided.`,{nodes:n}))}r.isOneOf&&I7(e,n,r,i,t)},ObjectField(n){let r=Ce(e.getParentInputType());if(!e.getInputType()&&Ae(r)){let s=on(n.name.value,Object.keys(r.getFields()));e.reportError(new V(`Field "${n.name.value}" is not defined by type "${r.name}".`+Jt(s),{nodes:n}))}},NullValue(n){let r=e.getInputType();ve(r)&&e.reportError(new V(`Expected value of type "${Y(r)}", found ${$e(n)}.`,{nodes:n}))},EnumValue:n=>xi(e,n),IntValue:n=>xi(e,n),FloatValue:n=>xi(e,n),StringValue:n=>xi(e,n),BooleanValue:n=>xi(e,n)}}function xi(e,t){let n=e.getInputType();if(!n)return;let r=Ce(n);if(!un(r)){let i=Y(n);e.reportError(new V(`Expected value of type "${i}", found ${$e(t)}.`,{nodes:t}));return}try{if(r.parseLiteral(t,void 0)===void 0){let s=Y(n);e.reportError(new V(`Expected value of type "${s}", found ${$e(t)}.`,{nodes:t}))}}catch(i){let s=Y(n);i instanceof V?e.reportError(i):e.reportError(new V(`Expected value of type "${s}", found ${$e(t)}; `+i.message,{nodes:t,originalError:i}))}}function I7(e,t,n,r,i){var s;let o=Object.keys(r);if(o.length!==1){e.reportError(new V(`OneOf Input Object "${n.name}" must specify exactly one key.`,{nodes:[t]}));return}let u=(s=r[o[0]])===null||s===void 0?void 0:s.value,l=!u||u.kind===b.NULL,c=u?.kind===b.VARIABLE;if(l){e.reportError(new V(`Field "${n.name}.${o[0]}" must be non-null.`,{nodes:[t]}));return}if(c){let f=u.name.value;i[f].type.kind!==b.NON_NULL_TYPE&&e.reportError(new V(`Variable "${f}" must be non-nullable to be used for OneOf Input Object "${n.name}".`,{nodes:[t]}))}}function t1(e){return{VariableDefinition(t){let n=nt(e.getSchema(),t.type);if(n!==void 0&&!ft(n)){let r=t.variable.name.value,i=$e(t.type);e.reportError(new V(`Variable "$${r}" cannot be non-input type "${i}".`,{nodes:t.type}))}}}}function n1(e){let t=Object.create(null);return{OperationDefinition:{enter(){t=Object.create(null)},leave(n){let r=e.getRecursiveVariableUsages(n);for(let{node:i,type:s,defaultValue:o,parentType:a}of r){let u=i.name.value,l=t[u];if(l&&s){let c=e.getSchema(),f=nt(c,l.type);if(f&&!O7(c,f,l.defaultValue,s,o)){let d=Y(f),m=Y(s);e.reportError(new V(`Variable "$${u}" of type "${d}" used in position expecting type "${m}".`,{nodes:[l,i]}))}Ae(a)&&a.isOneOf&&bs(f)&&e.reportError(new V(`Variable "$${u}" is of type "${f}" but must be non-nullable to be used for OneOf Input Object "${a}".`,{nodes:[l,i]}))}}}},VariableDefinition(n){t[n.variable.name.value]=n}}}function O7(e,t,n,r,i){if(ve(r)&&!ve(t)){if(!(n!=null&&n.kind!==b.NULL)&&!(i!==void 0))return!1;let a=r.ofType;return Hn(e,t,a)}return Hn(e,t,r)}var r1=Object.freeze([Uf]),js=Object.freeze([As,Kf,Mf,Xf,bi,Fs,t1,zf,If,Zf,Ss,Is,Hf,Pf,$s,Bf,Cf,Di,Ti,Of,Ni,e1,ks,n1,Gf,wi,...r1]),rg=Object.freeze([Rs,Cs,Vs,Ps,Bs,Jf,Us,bi,Di,Ti,Os,kf,Ni,wi,Wf]);var Yu=class{constructor(t,n){this._ast=t,this._fragments=void 0,this._fragmentSpreads=new Map,this._recursivelyReferencedFragments=new Map,this._onError=n}get[Symbol.toStringTag](){return"ASTValidationContext"}reportError(t){this._onError(t)}getDocument(){return this._ast}getFragment(t){let n;if(this._fragments)n=this._fragments;else{n=Object.create(null);for(let r of this.getDocument().definitions)r.kind===b.FRAGMENT_DEFINITION&&(n[r.name.value]=r);this._fragments=n}return n[t]}getFragmentSpreads(t){let n=this._fragmentSpreads.get(t);if(!n){n=[];let r=[t],i;for(;i=r.pop();)for(let s of i.selections)s.kind===b.FRAGMENT_SPREAD?n.push(s):s.selectionSet&&r.push(s.selectionSet);this._fragmentSpreads.set(t,n)}return n}getRecursivelyReferencedFragments(t){let n=this._recursivelyReferencedFragments.get(t);if(!n){n=[];let r=Object.create(null),i=[t.selectionSet],s;for(;s=i.pop();)for(let o of this.getFragmentSpreads(s)){let a=o.name.value;if(r[a]!==!0){r[a]=!0;let u=this.getFragment(a);u&&(n.push(u),i.push(u.selectionSet))}}this._recursivelyReferencedFragments.set(t,n)}return n}},Xu=class extends Yu{constructor(t,n,r){super(t,r),this._schema=n}get[Symbol.toStringTag](){return"SDLValidationContext"}getSchema(){return this._schema}},na=class extends Yu{constructor(t,n,r,i){super(n,i),this._schema=t,this._typeInfo=r,this._variableUsages=new Map,this._recursiveVariableUsages=new Map}get[Symbol.toStringTag](){return"ValidationContext"}getSchema(){return this._schema}getVariableUsages(t){let n=this._variableUsages.get(t);if(!n){let r=[],i=new Ei(this._schema);Ft(t,ta(i,{VariableDefinition:()=>!1,Variable(s){r.push({node:s,type:i.getInputType(),defaultValue:i.getDefaultValue(),parentType:i.getParentInputType()})}})),n=r,this._variableUsages.set(t,n)}return n}getRecursiveVariableUsages(t){let n=this._recursiveVariableUsages.get(t);if(!n){n=this.getVariableUsages(t);for(let r of this.getRecursivelyReferencedFragments(t))n=n.concat(this.getVariableUsages(r));this._recursiveVariableUsages.set(t,n)}return n}getType(){return this._typeInfo.getType()}getParentType(){return this._typeInfo.getParentType()}getInputType(){return this._typeInfo.getInputType()}getParentInputType(){return this._typeInfo.getParentInputType()}getFieldDef(){return this._typeInfo.getFieldDef()}getDirective(){return this._typeInfo.getDirective()}getArgument(){return this._typeInfo.getArgument()}getEnumValue(){return this._typeInfo.getEnumValue()}};function Gs(e,t,n=js,r,i=new Ei(e)){var s;let o=(s=r?.maxErrors)!==null&&s!==void 0?s:100;t||we(!1,"Must provide document."),Lf(e);let a=Object.freeze({}),u=[],l=new na(e,t,i,f=>{if(u.length>=o)throw u.push(new V("Too many validation errors, error limit reached. Validation aborted.")),a;u.push(f)}),c=Ho(n.map(f=>f(l)));try{Ft(t,ta(i,c))}catch(f){if(f!==a)throw f}return u}function k7(e,t,n=rg){let r=[],i=new Xu(e,t,o=>{r.push(o)}),s=n.map(o=>o(i));return Ft(e,Ho(s)),r}function ig(e){let t=k7(e);if(t.length!==0)throw new Error(t.map(n=>n.message).join(`
|
|
163
|
+
`))}var Af=class{constructor(t){this._errors=[],this.schema=t}reportError(t,n){let r=Array.isArray(n)?n.filter(Boolean):n;this._errors.push(new C(t,{nodes:r}))}getErrors(){return this._errors}};function QD(e){let t=e.schema,n=t.getQueryType();if(!n)e.reportError("Query root type must be provided.",t.astNode);else if(!we(n)){var r;e.reportError(`Query root type must be Object type, it cannot be ${W(n)}.`,(r=Lf(t,gt.QUERY))!==null&&r!==void 0?r:n.astNode)}let i=t.getMutationType();if(i&&!we(i)){var s;e.reportError(`Mutation root type must be Object type if provided, it cannot be ${W(i)}.`,(s=Lf(t,gt.MUTATION))!==null&&s!==void 0?s:i.astNode)}let o=t.getSubscriptionType();if(o&&!we(o)){var a;e.reportError(`Subscription root type must be Object type if provided, it cannot be ${W(o)}.`,(a=Lf(t,gt.SUBSCRIPTION))!==null&&a!==void 0?a:o.astNode)}}function Lf(e,t){var n;return(n=[e.astNode,...e.extensionASTNodes].flatMap(r=>{var i;return(i=r?.operationTypes)!==null&&i!==void 0?i:[]}).find(r=>r.operation===t))===null||n===void 0?void 0:n.type}function YD(e){for(let n of e.schema.getDirectives()){if(!Zo(n)){e.reportError(`Expected directive but got: ${W(n)}.`,n?.astNode);continue}hi(e,n),n.locations.length===0&&e.reportError(`Directive @${n.name} must include 1 or more locations.`,n.astNode);for(let r of n.args)if(hi(e,r),ht(r.type)||e.reportError(`The type of @${n.name}(${r.name}:) must be Input Type but got: ${W(r.type)}.`,r.astNode),Er(r)&&r.deprecationReason!=null){var t;e.reportError(`Required argument @${n.name}(${r.name}:) cannot be deprecated.`,[Sf(r.astNode),(t=r.astNode)===null||t===void 0?void 0:t.type])}}}function hi(e,t){t.name.startsWith("__")&&e.reportError(`Name "${t.name}" must not begin with "__", which is reserved by GraphQL introspection.`,t.astNode)}function XD(e){let t=r7(e),n=e.schema.getTypeMap();for(let r of Object.values(n)){if(!Ru(r)){e.reportError(`Expected GraphQL named type but got: ${W(r)}.`,r.astNode);continue}Ns(r)||hi(e,r),we(r)||xe(r)?(zm(e,r),Qm(e,r)):ft(r)?KD(e,r):ze(r)?e7(e,r):Le(r)&&(t7(e,r),t(r))}}function zm(e,t){let n=Object.values(t.getFields());n.length===0&&e.reportError(`Type ${t.name} must define one or more fields.`,[t.astNode,...t.extensionASTNodes]);for(let o of n){if(hi(e,o),!an(o.type)){var r;e.reportError(`The type of ${t.name}.${o.name} must be Output Type but got: ${W(o.type)}.`,(r=o.astNode)===null||r===void 0?void 0:r.type)}for(let a of o.args){let u=a.name;if(hi(e,a),!ht(a.type)){var i;e.reportError(`The type of ${t.name}.${o.name}(${u}:) must be Input Type but got: ${W(a.type)}.`,(i=a.astNode)===null||i===void 0?void 0:i.type)}if(Er(a)&&a.deprecationReason!=null){var s;e.reportError(`Required argument ${t.name}.${o.name}(${u}:) cannot be deprecated.`,[Sf(a.astNode),(s=a.astNode)===null||s===void 0?void 0:s.type])}}}}function Qm(e,t){let n=Object.create(null);for(let r of t.getInterfaces()){if(!xe(r)){e.reportError(`Type ${W(t)} must only implement Interface types, it cannot implement ${W(r)}.`,Ko(t,r));continue}if(t===r){e.reportError(`Type ${t.name} cannot implement itself because it would create a circular reference.`,Ko(t,r));continue}if(n[r.name]){e.reportError(`Type ${t.name} can only implement ${r.name} once.`,Ko(t,r));continue}n[r.name]=!0,ZD(e,t,r),JD(e,t,r)}}function JD(e,t,n){let r=t.getFields();for(let u of Object.values(n.getFields())){let l=u.name,c=r[l];if(!c){e.reportError(`Interface field ${n.name}.${l} expected but ${t.name} does not provide it.`,[u.astNode,t.astNode,...t.extensionASTNodes]);continue}if(!Wn(e.schema,c.type,u.type)){var i,s;e.reportError(`Interface field ${n.name}.${l} expects type ${W(u.type)} but ${t.name}.${l} is type ${W(c.type)}.`,[(i=u.astNode)===null||i===void 0?void 0:i.type,(s=c.astNode)===null||s===void 0?void 0:s.type])}for(let f of u.args){let d=f.name,m=c.args.find(g=>g.name===d);if(!m){e.reportError(`Interface field argument ${n.name}.${l}(${d}:) expected but ${t.name}.${l} does not provide it.`,[f.astNode,c.astNode]);continue}if(!Es(f.type,m.type)){var o,a;e.reportError(`Interface field argument ${n.name}.${l}(${d}:) expects type ${W(f.type)} but ${t.name}.${l}(${d}:) is type ${W(m.type)}.`,[(o=f.astNode)===null||o===void 0?void 0:o.type,(a=m.astNode)===null||a===void 0?void 0:a.type])}}for(let f of c.args){let d=f.name;!u.args.find(g=>g.name===d)&&Er(f)&&e.reportError(`Object field ${t.name}.${l} includes required argument ${d} that is missing from the Interface field ${n.name}.${l}.`,[f.astNode,u.astNode])}}}function ZD(e,t,n){let r=t.getInterfaces();for(let i of n.getInterfaces())r.includes(i)||e.reportError(i===t?`Type ${t.name} cannot implement ${n.name} because it would create a circular reference.`:`Type ${t.name} must implement ${i.name} because it is implemented by ${n.name}.`,[...Ko(n,i),...Ko(t,n)])}function KD(e,t){let n=t.getTypes();n.length===0&&e.reportError(`Union type ${t.name} must define one or more member types.`,[t.astNode,...t.extensionASTNodes]);let r=Object.create(null);for(let i of n){if(r[i.name]){e.reportError(`Union type ${t.name} can only include type ${i.name} once.`,Ym(t,i.name));continue}r[i.name]=!0,we(i)||e.reportError(`Union type ${t.name} can only include Object types, it cannot include ${W(i)}.`,Ym(t,String(i)))}}function e7(e,t){let n=t.getValues();n.length===0&&e.reportError(`Enum type ${t.name} must define one or more values.`,[t.astNode,...t.extensionASTNodes]);for(let r of n)hi(e,r)}function t7(e,t){let n=Object.values(t.getFields());n.length===0&&e.reportError(`Input Object type ${t.name} must define one or more fields.`,[t.astNode,...t.extensionASTNodes]);for(let s of n){if(hi(e,s),!ht(s.type)){var r;e.reportError(`The type of ${t.name}.${s.name} must be Input Type but got: ${W(s.type)}.`,(r=s.astNode)===null||r===void 0?void 0:r.type)}if(_s(s)&&s.deprecationReason!=null){var i;e.reportError(`Required input field ${t.name}.${s.name} cannot be deprecated.`,[Sf(s.astNode),(i=s.astNode)===null||i===void 0?void 0:i.type])}t.isOneOf&&n7(t,s,e)}}function n7(e,t,n){if(be(t.type)){var r;n.reportError(`OneOf input field ${e.name}.${t.name} must be nullable.`,(r=t.astNode)===null||r===void 0?void 0:r.type)}t.defaultValue!==void 0&&n.reportError(`OneOf input field ${e.name}.${t.name} cannot have a default value.`,t.astNode)}function r7(e){let t=Object.create(null),n=[],r=Object.create(null);return i;function i(s){if(t[s.name])return;t[s.name]=!0,r[s.name]=n.length;let o=Object.values(s.getFields());for(let a of o)if(be(a.type)&&Le(a.type.ofType)){let u=a.type.ofType,l=r[u.name];if(n.push(a),l===void 0)i(u);else{let c=n.slice(l),f=c.map(d=>d.name).join(".");e.reportError(`Cannot reference Input Object "${u.name}" within itself through a series of non-null fields: "${f}".`,c.map(d=>d.astNode))}n.pop()}r[s.name]=void 0}}function Ko(e,t){let{astNode:n,extensionASTNodes:r}=e;return(n!=null?[n,...r]:r).flatMap(s=>{var o;return(o=s.interfaces)!==null&&o!==void 0?o:[]}).filter(s=>s.name.value===t.name)}function Ym(e,t){let{astNode:n,extensionASTNodes:r}=e;return(n!=null?[n,...r]:r).flatMap(s=>{var o;return(o=s.types)!==null&&o!==void 0?o:[]}).filter(s=>s.name.value===t)}function Sf(e){var t;return e==null||(t=e.directives)===null||t===void 0?void 0:t.find(n=>n.name.value===Ds.name)}function rt(e,t){switch(t.kind){case b.LIST_TYPE:{let n=rt(e,t.type);return n&&new He(n)}case b.NON_NULL_TYPE:{let n=rt(e,t.type);return n&&new ge(n)}case b.NAMED_TYPE:return e.getType(t.name.value)}}var pi=class{constructor(t,n,r){this._schema=t,this._typeStack=[],this._parentTypeStack=[],this._inputTypeStack=[],this._fieldDefStack=[],this._defaultValueStack=[],this._directive=null,this._argument=null,this._enumValue=null,this._getFieldDef=r??i7,n&&(ht(n)&&this._inputTypeStack.push(n),Et(n)&&this._parentTypeStack.push(n),an(n)&&this._typeStack.push(n))}get[Symbol.toStringTag](){return"TypeInfo"}getType(){if(this._typeStack.length>0)return this._typeStack[this._typeStack.length-1]}getParentType(){if(this._parentTypeStack.length>0)return this._parentTypeStack[this._parentTypeStack.length-1]}getInputType(){if(this._inputTypeStack.length>0)return this._inputTypeStack[this._inputTypeStack.length-1]}getParentInputType(){if(this._inputTypeStack.length>1)return this._inputTypeStack[this._inputTypeStack.length-2]}getFieldDef(){if(this._fieldDefStack.length>0)return this._fieldDefStack[this._fieldDefStack.length-1]}getDefaultValue(){if(this._defaultValueStack.length>0)return this._defaultValueStack[this._defaultValueStack.length-1]}getDirective(){return this._directive}getArgument(){return this._argument}getEnumValue(){return this._enumValue}enter(t){let n=this._schema;switch(t.kind){case b.SELECTION_SET:{let i=Be(this.getType());this._parentTypeStack.push(Et(i)?i:void 0);break}case b.FIELD:{let i=this.getParentType(),s,o;i&&(s=this._getFieldDef(n,i,t),s&&(o=s.type)),this._fieldDefStack.push(s),this._typeStack.push(an(o)?o:void 0);break}case b.DIRECTIVE:this._directive=n.getDirective(t.name.value);break;case b.OPERATION_DEFINITION:{let i=n.getRootType(t.operation);this._typeStack.push(we(i)?i:void 0);break}case b.INLINE_FRAGMENT:case b.FRAGMENT_DEFINITION:{let i=t.typeCondition,s=i?rt(n,i):Be(this.getType());this._typeStack.push(an(s)?s:void 0);break}case b.VARIABLE_DEFINITION:{let i=rt(n,t.type);this._inputTypeStack.push(ht(i)?i:void 0);break}case b.ARGUMENT:{var r;let i,s,o=(r=this.getDirective())!==null&&r!==void 0?r:this.getFieldDef();o&&(i=o.args.find(a=>a.name===t.name.value),i&&(s=i.type)),this._argument=i,this._defaultValueStack.push(i?i.defaultValue:void 0),this._inputTypeStack.push(ht(s)?s:void 0);break}case b.LIST:{let i=jr(this.getInputType()),s=Pe(i)?i.ofType:i;this._defaultValueStack.push(void 0),this._inputTypeStack.push(ht(s)?s:void 0);break}case b.OBJECT_FIELD:{let i=Be(this.getInputType()),s,o;Le(i)&&(o=i.getFields()[t.name.value],o&&(s=o.type)),this._defaultValueStack.push(o?o.defaultValue:void 0),this._inputTypeStack.push(ht(s)?s:void 0);break}case b.ENUM:{let i=Be(this.getInputType()),s;ze(i)&&(s=i.getValue(t.value)),this._enumValue=s;break}default:}}leave(t){switch(t.kind){case b.SELECTION_SET:this._parentTypeStack.pop();break;case b.FIELD:this._fieldDefStack.pop(),this._typeStack.pop();break;case b.DIRECTIVE:this._directive=null;break;case b.OPERATION_DEFINITION:case b.INLINE_FRAGMENT:case b.FRAGMENT_DEFINITION:this._typeStack.pop();break;case b.VARIABLE_DEFINITION:this._inputTypeStack.pop();break;case b.ARGUMENT:this._argument=null,this._defaultValueStack.pop(),this._inputTypeStack.pop();break;case b.LIST:case b.OBJECT_FIELD:this._defaultValueStack.pop(),this._inputTypeStack.pop();break;case b.ENUM:this._enumValue=null;break;default:}}};function i7(e,t,n){let r=n.name.value;if(r===zn.name&&e.getQueryType()===t)return zn;if(r===Qn.name&&e.getQueryType()===t)return Qn;if(r===Yn.name&&Et(t))return Yn;if(we(t)||xe(t))return t.getFields()[r]}function ea(e,t){return{enter(...n){let r=n[0];e.enter(r);let i=li(t,r.kind).enter;if(i){let s=i.apply(t,n);return s!==void 0&&(e.leave(r),Vo(s)&&e.enter(s)),s}},leave(...n){let r=n[0],i=li(t,r.kind).leave,s;return i&&(s=i.apply(t,n)),e.leave(r),s}}}function Rf(e){return e.kind===b.OPERATION_DEFINITION||e.kind===b.FRAGMENT_DEFINITION}function If(e){return e.kind===b.SCHEMA_DEFINITION||Xn(e)||e.kind===b.DIRECTIVE_DEFINITION}function Xn(e){return e.kind===b.SCALAR_TYPE_DEFINITION||e.kind===b.OBJECT_TYPE_DEFINITION||e.kind===b.INTERFACE_TYPE_DEFINITION||e.kind===b.UNION_TYPE_DEFINITION||e.kind===b.ENUM_TYPE_DEFINITION||e.kind===b.INPUT_OBJECT_TYPE_DEFINITION}function Of(e){return e.kind===b.SCHEMA_EXTENSION||Ts(e)}function Ts(e){return e.kind===b.SCALAR_TYPE_EXTENSION||e.kind===b.OBJECT_TYPE_EXTENSION||e.kind===b.INTERFACE_TYPE_EXTENSION||e.kind===b.UNION_TYPE_EXTENSION||e.kind===b.ENUM_TYPE_EXTENSION||e.kind===b.INPUT_OBJECT_TYPE_EXTENSION}function ys(e){return{Document(t){for(let n of t.definitions)if(!Rf(n)){let r=n.kind===b.SCHEMA_DEFINITION||n.kind===b.SCHEMA_EXTENSION?"schema":'"'+n.name.value+'"';e.reportError(new C(`The ${r} definition is not executable.`,{nodes:n}))}return!1}}}function kf(e){return{Field(t){let n=e.getParentType();if(n&&!e.getFieldDef()){let i=e.getSchema(),s=t.name.value,o=Yt("to use an inline fragment on",s7(i,n,s));o===""&&(o=Yt(o7(n,s))),e.reportError(new C(`Cannot query field "${s}" on type "${n.name}".`+o,{nodes:t}))}}}}function s7(e,t,n){if(!xt(t))return[];let r=new Set,i=Object.create(null);for(let o of e.getPossibleTypes(t))if(o.getFields()[n]){r.add(o),i[o.name]=1;for(let a of o.getInterfaces()){var s;a.getFields()[n]&&(r.add(a),i[a.name]=((s=i[a.name])!==null&&s!==void 0?s:0)+1)}}return[...r].sort((o,a)=>{let u=i[a.name]-i[o.name];return u!==0?u:xe(o)&&e.isSubType(o,a)?-1:xe(a)&&e.isSubType(a,o)?1:ps(o.name,a.name)}).map(o=>o.name)}function o7(e,t){if(we(e)||xe(e)){let n=Object.keys(e.getFields());return on(t,n)}return[]}function ws(e){return{InlineFragment(t){let n=t.typeCondition;if(n){let r=rt(e.getSchema(),n);if(r&&!Et(r)){let i=$e(n);e.reportError(new C(`Fragment cannot condition on non composite type "${i}".`,{nodes:n}))}}},FragmentDefinition(t){let n=rt(e.getSchema(),t.typeCondition);if(n&&!Et(n)){let r=$e(t.typeCondition);e.reportError(new C(`Fragment "${t.name.value}" cannot condition on non composite type "${r}".`,{nodes:t.typeCondition}))}}}}function Mf(e){return{...Uf(e),Argument(t){let n=e.getArgument(),r=e.getFieldDef(),i=e.getParentType();if(!n&&r&&i){let s=t.name.value,o=r.args.map(u=>u.name),a=on(s,o);e.reportError(new C(`Unknown argument "${s}" on field "${i.name}.${r.name}".`+Yt(a),{nodes:t}))}}}}function Uf(e){let t=Object.create(null),n=e.getSchema(),r=n?n.getDirectives():ln;for(let o of r)t[o.name]=o.args.map(a=>a.name);let i=e.getDocument().definitions;for(let o of i)if(o.kind===b.DIRECTIVE_DEFINITION){var s;let a=(s=o.arguments)!==null&&s!==void 0?s:[];t[o.name.value]=a.map(u=>u.name.value)}return{Directive(o){let a=o.name.value,u=t[a];if(o.arguments&&u)for(let l of o.arguments){let c=l.name.value;if(!u.includes(c)){let f=on(c,u);e.reportError(new C(`Unknown argument "${c}" on directive "@${a}".`+Yt(f),{nodes:l}))}}return!1}}}function di(e){let t=Object.create(null),n=e.getSchema(),r=n?n.getDirectives():ln;for(let s of r)t[s.name]=s.locations;let i=e.getDocument().definitions;for(let s of i)s.kind===b.DIRECTIVE_DEFINITION&&(t[s.name.value]=s.locations.map(o=>o.value));return{Directive(s,o,a,u,l){let c=s.name.value,f=t[c];if(!f){e.reportError(new C(`Unknown directive "@${c}".`,{nodes:s}));return}let d=a7(l);d&&!f.includes(d)&&e.reportError(new C(`Directive "@${c}" may not be used on ${d}.`,{nodes:s}))}}}function a7(e){let t=e[e.length-1];switch("kind"in t||tt(!1),t.kind){case b.OPERATION_DEFINITION:return u7(t.operation);case b.FIELD:return se.FIELD;case b.FRAGMENT_SPREAD:return se.FRAGMENT_SPREAD;case b.INLINE_FRAGMENT:return se.INLINE_FRAGMENT;case b.FRAGMENT_DEFINITION:return se.FRAGMENT_DEFINITION;case b.VARIABLE_DEFINITION:return se.VARIABLE_DEFINITION;case b.SCHEMA_DEFINITION:case b.SCHEMA_EXTENSION:return se.SCHEMA;case b.SCALAR_TYPE_DEFINITION:case b.SCALAR_TYPE_EXTENSION:return se.SCALAR;case b.OBJECT_TYPE_DEFINITION:case b.OBJECT_TYPE_EXTENSION:return se.OBJECT;case b.FIELD_DEFINITION:return se.FIELD_DEFINITION;case b.INTERFACE_TYPE_DEFINITION:case b.INTERFACE_TYPE_EXTENSION:return se.INTERFACE;case b.UNION_TYPE_DEFINITION:case b.UNION_TYPE_EXTENSION:return se.UNION;case b.ENUM_TYPE_DEFINITION:case b.ENUM_TYPE_EXTENSION:return se.ENUM;case b.ENUM_VALUE_DEFINITION:return se.ENUM_VALUE;case b.INPUT_OBJECT_TYPE_DEFINITION:case b.INPUT_OBJECT_TYPE_EXTENSION:return se.INPUT_OBJECT;case b.INPUT_VALUE_DEFINITION:{let n=e[e.length-3];return"kind"in n||tt(!1),n.kind===b.INPUT_OBJECT_TYPE_DEFINITION?se.INPUT_FIELD_DEFINITION:se.ARGUMENT_DEFINITION}default:tt(!1,"Unexpected kind: "+W(t.kind))}}function u7(e){switch(e){case gt.QUERY:return se.QUERY;case gt.MUTATION:return se.MUTATION;case gt.SUBSCRIPTION:return se.SUBSCRIPTION}}function xs(e){return{FragmentSpread(t){let n=t.name.value;e.getFragment(n)||e.reportError(new C(`Unknown fragment "${n}".`,{nodes:t.name}))}}}function mi(e){let t=e.getSchema(),n=t?t.getTypeMap():Object.create(null),r=Object.create(null);for(let s of e.getDocument().definitions)Xn(s)&&(r[s.name.value]=!0);let i=[...Object.keys(n),...Object.keys(r)];return{NamedType(s,o,a,u,l){let c=s.name.value;if(!n[c]&&!r[c]){var f;let d=(f=l[2])!==null&&f!==void 0?f:a,m=d!=null&&l7(d);if(m&&Jm.includes(c))return;let g=on(c,m?Jm.concat(i):i);e.reportError(new C(`Unknown type "${c}".`+Yt(g),{nodes:s}))}}}}var Jm=[...Dr,...br].map(e=>e.name);function l7(e){return"kind"in e&&(If(e)||Of(e))}function Pf(e){let t=0;return{Document(n){t=n.definitions.filter(r=>r.kind===b.OPERATION_DEFINITION).length},OperationDefinition(n){!n.name&&t>1&&e.reportError(new C("This anonymous operation must be the only defined operation.",{nodes:n}))}}}function Ls(e){var t,n,r;let i=e.getSchema(),s=(t=(n=(r=i?.astNode)!==null&&r!==void 0?r:i?.getQueryType())!==null&&n!==void 0?n:i?.getMutationType())!==null&&t!==void 0?t:i?.getSubscriptionType(),o=0;return{SchemaDefinition(a){if(s){e.reportError(new C("Cannot define a new schema within a schema extension.",{nodes:a}));return}o>0&&e.reportError(new C("Must provide only one schema definition.",{nodes:a})),++o}}}var c7=3;function Bf(e){function t(n,r=Object.create(null),i=0){if(n.kind===b.FRAGMENT_SPREAD){let s=n.name.value;if(r[s]===!0)return!1;let o=e.getFragment(s);if(!o)return!1;try{return r[s]=!0,t(o,r,i)}finally{r[s]=void 0}}if(n.kind===b.FIELD&&(n.name.value==="fields"||n.name.value==="interfaces"||n.name.value==="possibleTypes"||n.name.value==="inputFields")&&(i++,i>=c7))return!0;if("selectionSet"in n&&n.selectionSet){for(let s of n.selectionSet.selections)if(t(s,r,i))return!0}return!1}return{Field(n){if((n.name.value==="__schema"||n.name.value==="__type")&&t(n))return e.reportError(new C("Maximum introspection depth exceeded",{nodes:[n]})),!1}}}function Cf(e){let t=Object.create(null),n=[],r=Object.create(null);return{OperationDefinition:()=>!1,FragmentDefinition(s){return i(s),!1}};function i(s){if(t[s.name.value])return;let o=s.name.value;t[o]=!0;let a=e.getFragmentSpreads(s.selectionSet);if(a.length!==0){r[o]=n.length;for(let u of a){let l=u.name.value,c=r[l];if(n.push(u),c===void 0){let f=e.getFragment(l);f&&i(f)}else{let f=n.slice(c),d=f.slice(0,-1).map(m=>'"'+m.name.value+'"').join(", ");e.reportError(new C(`Cannot spread fragment "${l}" within itself`+(d!==""?` via ${d}.`:"."),{nodes:f}))}n.pop()}r[o]=void 0}}}function Vf(e){let t=Object.create(null);return{OperationDefinition:{enter(){t=Object.create(null)},leave(n){let r=e.getRecursiveVariableUsages(n);for(let{node:i}of r){let s=i.name.value;t[s]!==!0&&e.reportError(new C(n.name?`Variable "$${s}" is not defined by operation "${n.name.value}".`:`Variable "$${s}" is not defined.`,{nodes:[i,n]}))}}},VariableDefinition(n){t[n.variable.name.value]=!0}}}function As(e){let t=[],n=[];return{OperationDefinition(r){return t.push(r),!1},FragmentDefinition(r){return n.push(r),!1},Document:{leave(){let r=Object.create(null);for(let i of t)for(let s of e.getRecursivelyReferencedFragments(i))r[s.name.value]=!0;for(let i of n){let s=i.name.value;r[s]!==!0&&e.reportError(new C(`Fragment "${s}" is never used.`,{nodes:i}))}}}}}function $f(e){let t=[];return{OperationDefinition:{enter(){t=[]},leave(n){let r=Object.create(null),i=e.getRecursiveVariableUsages(n);for(let{node:s}of i)r[s.name.value]=!0;for(let s of t){let o=s.variable.name.value;r[o]!==!0&&e.reportError(new C(n.name?`Variable "$${o}" is never used in operation "${n.name.value}".`:`Variable "$${o}" is never used.`,{nodes:s}))}}},VariableDefinition(n){t.push(n)}}}function qu(e){switch(e.kind){case b.OBJECT:return{...e,fields:f7(e.fields)};case b.LIST:return{...e,values:e.values.map(qu)};case b.INT:case b.FLOAT:case b.STRING:case b.BOOLEAN:case b.NULL:case b.ENUM:case b.VARIABLE:return e}}function f7(e){return e.map(t=>({...t,value:qu(t.value)})).sort((t,n)=>ps(t.name.value,n.name.value))}function Km(e){return Array.isArray(e)?e.map(([t,n])=>`subfields "${t}" conflict because `+Km(n)).join(" and "):e}function Hf(e){let t=new Qu,n=new qf,r=new Map;return{SelectionSet(i){let s=h7(e,r,t,n,e.getParentType(),i);for(let[[o,a],u,l]of s){let c=Km(a);e.reportError(new C(`Fields "${o}" conflict because ${c}. Use different aliases on the fields to fetch both if this was intentional.`,{nodes:u.concat(l)}))}}}}function h7(e,t,n,r,i,s){let o=[],[a,u]=zu(e,t,i,s);if(d7(e,o,t,n,r,a),u.length!==0)for(let l=0;l<u.length;l++){Hu(e,o,t,n,r,!1,a,u[l]);for(let c=l+1;c<u.length;c++)Wu(e,o,t,n,r,!1,u[l],u[c])}return o}function Hu(e,t,n,r,i,s,o,a){if(r.has(o,a,s))return;r.add(o,a,s);let u=e.getFragment(a);if(!u)return;let[l,c]=Gf(e,n,u);if(o!==l){Wf(e,t,n,r,i,s,o,l);for(let f of c)Hu(e,t,n,r,i,s,o,f)}}function Wu(e,t,n,r,i,s,o,a){if(o===a||i.has(o,a,s))return;i.add(o,a,s);let u=e.getFragment(o),l=e.getFragment(a);if(!u||!l)return;let[c,f]=Gf(e,n,u),[d,m]=Gf(e,n,l);Wf(e,t,n,r,i,s,c,d);for(let g of m)Wu(e,t,n,r,i,s,o,g);for(let g of f)Wu(e,t,n,r,i,s,g,a)}function p7(e,t,n,r,i,s,o,a,u){let l=[],[c,f]=zu(e,t,s,o),[d,m]=zu(e,t,a,u);Wf(e,l,t,n,r,i,c,d);for(let g of m)Hu(e,l,t,n,r,i,c,g);for(let g of f)Hu(e,l,t,n,r,i,d,g);for(let g of f)for(let _ of m)Wu(e,l,t,n,r,i,g,_);return l}function d7(e,t,n,r,i,s){for(let[o,a]of Object.entries(s))if(a.length>1)for(let u=0;u<a.length;u++)for(let l=u+1;l<a.length;l++){let c=eg(e,n,r,i,!1,o,a[u],a[l]);c&&t.push(c)}}function Wf(e,t,n,r,i,s,o,a){for(let[u,l]of Object.entries(o)){let c=a[u];if(c)for(let f of l)for(let d of c){let m=eg(e,n,r,i,s,u,f,d);m&&t.push(m)}}}function eg(e,t,n,r,i,s,o,a){let[u,l,c]=o,[f,d,m]=a,g=i||u!==f&&we(u)&&we(f);if(!g){let L=l.name.value,P=d.name.value;if(L!==P)return[[s,`"${L}" and "${P}" are different fields`],[l],[d]];if(!m7(l,d))return[[s,"they have differing arguments"],[l],[d]]}let _=c?.type,T=m?.type;if(_&&T&&jf(_,T))return[[s,`they return conflicting types "${W(_)}" and "${W(T)}"`],[l],[d]];let A=l.selectionSet,S=d.selectionSet;if(A&&S){let L=p7(e,t,n,r,g,Be(_),A,Be(T),S);return g7(L,s,l,d)}}function m7(e,t){let n=e.arguments,r=t.arguments;if(n===void 0||n.length===0)return r===void 0||r.length===0;if(r===void 0||r.length===0||n.length!==r.length)return!1;let i=new Map(r.map(({name:s,value:o})=>[s.value,o]));return n.every(s=>{let o=s.value,a=i.get(s.name.value);return a===void 0?!1:Zm(o)===Zm(a)})}function Zm(e){return $e(qu(e))}function jf(e,t){return Pe(e)?Pe(t)?jf(e.ofType,t.ofType):!0:Pe(t)?!0:be(e)?be(t)?jf(e.ofType,t.ofType):!0:be(t)?!0:un(e)||un(t)?e!==t:!1}function zu(e,t,n,r){let i=t.get(r);if(i)return i;let s=Object.create(null),o=Object.create(null);tg(e,n,r,s,o);let a=[s,Object.keys(o)];return t.set(r,a),a}function Gf(e,t,n){let r=t.get(n.selectionSet);if(r)return r;let i=rt(e.getSchema(),n.typeCondition);return zu(e,t,i,n.selectionSet)}function tg(e,t,n,r,i){for(let s of n.selections)switch(s.kind){case b.FIELD:{let o=s.name.value,a;(we(t)||xe(t))&&(a=t.getFields()[o]);let u=s.alias?s.alias.value:o;r[u]||(r[u]=[]),r[u].push([t,s,a]);break}case b.FRAGMENT_SPREAD:i[s.name.value]=!0;break;case b.INLINE_FRAGMENT:{let o=s.typeCondition,a=o?rt(e.getSchema(),o):t;tg(e,a,s.selectionSet,r,i);break}}}function g7(e,t,n,r){if(e.length>0)return[[t,e.map(([i])=>i)],[n,...e.map(([,i])=>i).flat()],[r,...e.map(([,,i])=>i).flat()]]}var Qu=class{constructor(){this._data=new Map}has(t,n,r){var i;let s=(i=this._data.get(t))===null||i===void 0?void 0:i.get(n);return s===void 0?!1:r?!0:r===s}add(t,n,r){let i=this._data.get(t);i===void 0?this._data.set(t,new Map([[n,r]])):i.set(n,r)}},qf=class{constructor(){this._orderedPairSet=new Qu}has(t,n,r){return t<n?this._orderedPairSet.has(t,n,r):this._orderedPairSet.has(n,t,r)}add(t,n,r){t<n?this._orderedPairSet.add(t,n,r):this._orderedPairSet.add(n,t,r)}};function zf(e){return{InlineFragment(t){let n=e.getType(),r=e.getParentType();if(Et(n)&&Et(r)&&!ci(e.getSchema(),n,r)){let i=W(r),s=W(n);e.reportError(new C(`Fragment cannot be spread here as objects of type "${i}" can never be of type "${s}".`,{nodes:t}))}},FragmentSpread(t){let n=t.name.value,r=_7(e,n),i=e.getParentType();if(r&&i&&!ci(e.getSchema(),r,i)){let s=W(i),o=W(r);e.reportError(new C(`Fragment "${n}" cannot be spread here as objects of type "${s}" can never be of type "${o}".`,{nodes:t}))}}}}function _7(e,t){let n=e.getFragment(t);if(n){let r=rt(e.getSchema(),n.typeCondition);if(Et(r))return r}}function Fs(e){let t=e.getSchema(),n=Object.create(null);for(let i of e.getDocument().definitions)Xn(i)&&(n[i.name.value]=i);return{ScalarTypeExtension:r,ObjectTypeExtension:r,InterfaceTypeExtension:r,UnionTypeExtension:r,EnumTypeExtension:r,InputObjectTypeExtension:r};function r(i){let s=i.name.value,o=n[s],a=t?.getType(s),u;if(o?u=E7[o.kind]:a&&(u=D7(a)),u){if(u!==i.kind){let l=b7(i.kind);e.reportError(new C(`Cannot extend non-${l} type "${s}".`,{nodes:o?[o,i]:i}))}}else{let l=Object.keys({...n,...t?.getTypeMap()}),c=on(s,l);e.reportError(new C(`Cannot extend type "${s}" because it is not defined.`+Yt(c),{nodes:i.name}))}}}var E7={[b.SCALAR_TYPE_DEFINITION]:b.SCALAR_TYPE_EXTENSION,[b.OBJECT_TYPE_DEFINITION]:b.OBJECT_TYPE_EXTENSION,[b.INTERFACE_TYPE_DEFINITION]:b.INTERFACE_TYPE_EXTENSION,[b.UNION_TYPE_DEFINITION]:b.UNION_TYPE_EXTENSION,[b.ENUM_TYPE_DEFINITION]:b.ENUM_TYPE_EXTENSION,[b.INPUT_OBJECT_TYPE_DEFINITION]:b.INPUT_OBJECT_TYPE_EXTENSION};function D7(e){if(Tt(e))return b.SCALAR_TYPE_EXTENSION;if(we(e))return b.OBJECT_TYPE_EXTENSION;if(xe(e))return b.INTERFACE_TYPE_EXTENSION;if(ft(e))return b.UNION_TYPE_EXTENSION;if(ze(e))return b.ENUM_TYPE_EXTENSION;if(Le(e))return b.INPUT_OBJECT_TYPE_EXTENSION;tt(!1,"Unexpected type: "+W(e))}function b7(e){switch(e){case b.SCALAR_TYPE_EXTENSION:return"scalar";case b.OBJECT_TYPE_EXTENSION:return"object";case b.INTERFACE_TYPE_EXTENSION:return"interface";case b.UNION_TYPE_EXTENSION:return"union";case b.ENUM_TYPE_EXTENSION:return"enum";case b.INPUT_OBJECT_TYPE_EXTENSION:return"input object";default:tt(!1,"Unexpected kind: "+W(e))}}function Ss(e){return{...Qf(e),Field:{leave(t){var n;let r=e.getFieldDef();if(!r)return!1;let i=new Set((n=t.arguments)===null||n===void 0?void 0:n.map(s=>s.name.value));for(let s of r.args)if(!i.has(s.name)&&Er(s)){let o=W(s.type);e.reportError(new C(`Field "${r.name}" argument "${s.name}" of type "${o}" is required, but it was not provided.`,{nodes:t}))}}}}}function Qf(e){var t;let n=Object.create(null),r=e.getSchema(),i=(t=r?.getDirectives())!==null&&t!==void 0?t:ln;for(let a of i)n[a.name]=sn(a.args.filter(Er),u=>u.name);let s=e.getDocument().definitions;for(let a of s)if(a.kind===b.DIRECTIVE_DEFINITION){var o;let u=(o=a.arguments)!==null&&o!==void 0?o:[];n[a.name.value]=sn(u.filter(v7),l=>l.name.value)}return{Directive:{leave(a){let u=a.name.value,l=n[u];if(l){var c;let f=(c=a.arguments)!==null&&c!==void 0?c:[],d=new Set(f.map(m=>m.name.value));for(let[m,g]of Object.entries(l))if(!d.has(m)){let _=ms(g.type)?W(g.type):$e(g.type);e.reportError(new C(`Directive "@${u}" argument "${m}" of type "${_}" is required, but it was not provided.`,{nodes:a}))}}}}}}function v7(e){return e.type.kind===b.NON_NULL_TYPE&&e.defaultValue==null}function Yf(e){return{Field(t){let n=e.getType(),r=t.selectionSet;if(n)if(un(Be(n))){if(r){let i=t.name.value,s=W(n);e.reportError(new C(`Field "${i}" must not have a selection since type "${s}" has no subfields.`,{nodes:r}))}}else if(r){if(r.selections.length===0){let i=t.name.value,s=W(n);e.reportError(new C(`Field "${i}" of type "${s}" must have at least one field selected.`,{nodes:t}))}}else{let i=t.name.value,s=W(n);e.reportError(new C(`Field "${i}" of type "${s}" must have a selection of subfields. Did you mean "${i} { ... }"?`,{nodes:t}))}}}}function mn(e,t,n){if(e){if(e.kind===b.VARIABLE){let r=e.name.value;if(n==null||n[r]===void 0)return;let i=n[r];return i===null&&be(t)?void 0:i}if(be(t))return e.kind===b.NULL?void 0:mn(e,t.ofType,n);if(e.kind===b.NULL)return null;if(Pe(t)){let r=t.ofType;if(e.kind===b.LIST){let s=[];for(let o of e.values)if(ng(o,n)){if(be(r))return;s.push(null)}else{let a=mn(o,r,n);if(a===void 0)return;s.push(a)}return s}let i=mn(e,r,n);return i===void 0?void 0:[i]}if(Le(t)){if(e.kind!==b.OBJECT)return;let r=Object.create(null),i=sn(e.fields,s=>s.name.value);for(let s of Object.values(t.getFields())){let o=i[s.name];if(!o||ng(o.value,n)){if(s.defaultValue!==void 0)r[s.name]=s.defaultValue;else if(be(s.type))return;continue}let a=mn(o.value,s.type,n);if(a===void 0)return;r[s.name]=a}if(t.isOneOf){let s=Object.keys(r);if(s.length!==1||r[s[0]]===null)return}return r}if(un(t)){let r;try{r=t.parseLiteral(e,n)}catch{return}return r===void 0?void 0:r}tt(!1,"Unexpected input type: "+W(t))}}function ng(e,t){return e.kind===b.VARIABLE&&(t==null||t[e.name.value]===void 0)}function N7(e,t,n){var r;let i={},s=(r=t.arguments)!==null&&r!==void 0?r:[],o=sn(s,a=>a.name.value);for(let a of e.args){let u=a.name,l=a.type,c=o[u];if(!c){if(a.defaultValue!==void 0)i[u]=a.defaultValue;else if(be(l))throw new C(`Argument "${u}" of required type "${W(l)}" was not provided.`,{nodes:t});continue}let f=c.value,d=f.kind===b.NULL;if(f.kind===b.VARIABLE){let g=f.name.value;if(n==null||!T7(n,g)){if(a.defaultValue!==void 0)i[u]=a.defaultValue;else if(be(l))throw new C(`Argument "${u}" of required type "${W(l)}" was provided the variable "$${g}" which was not provided a runtime value.`,{nodes:f});continue}d=n[g]==null}if(d&&be(l))throw new C(`Argument "${u}" of non-null type "${W(l)}" must not be null.`,{nodes:f});let m=mn(f,l,n);if(m===void 0)throw new C(`Argument "${u}" has invalid value ${$e(f)}.`,{nodes:f});i[u]=m}return i}function gi(e,t,n){var r;let i=(r=t.directives)===null||r===void 0?void 0:r.find(s=>s.name.value===e.name);if(i)return N7(e,i,n)}function T7(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function ig(e,t,n,r,i){let s=new Map;return Jf(e,t,n,r,i,s,new Set),s}function Jf(e,t,n,r,i,s,o){for(let a of i.selections)switch(a.kind){case b.FIELD:{if(!Xf(n,a))continue;let u=y7(a),l=s.get(u);l!==void 0?l.push(a):s.set(u,[a]);break}case b.INLINE_FRAGMENT:{if(!Xf(n,a)||!rg(e,a,r))continue;Jf(e,t,n,r,a.selectionSet,s,o);break}case b.FRAGMENT_SPREAD:{let u=a.name.value;if(o.has(u)||!Xf(n,a))continue;o.add(u);let l=t[u];if(!l||!rg(e,l,r))continue;Jf(e,t,n,r,l.selectionSet,s,o);break}}}function Xf(e,t){let n=gi(Uu,t,e);if(n?.if===!0)return!1;let r=gi(Mu,t,e);return r?.if!==!1}function rg(e,t,n){let r=t.typeCondition;if(!r)return!0;let i=rt(e,r);return i===n?!0:xt(i)?e.isSubType(i,n):!1}function y7(e){return e.alias?e.alias.value:e.name.value}function Zf(e){return{OperationDefinition(t){if(t.operation==="subscription"){let n=e.getSchema(),r=n.getSubscriptionType();if(r){let i=t.name?t.name.value:null,s=Object.create(null),o=e.getDocument(),a=Object.create(null);for(let l of o.definitions)l.kind===b.FRAGMENT_DEFINITION&&(a[l.name.value]=l);let u=ig(n,a,s,r,t.selectionSet);if(u.size>1){let f=[...u.values()].slice(1).flat();e.reportError(new C(i!=null?`Subscription "${i}" must select only one top level field.`:"Anonymous Subscription must select only one top level field.",{nodes:f}))}for(let l of u.values())l[0].name.value.startsWith("__")&&e.reportError(new C(i!=null?`Subscription "${i}" must not select an introspection top level field.`:"Anonymous Subscription must not select an introspection top level field.",{nodes:l}))}}}}}function Rs(e,t){let n=new Map;for(let r of e){let i=t(r),s=n.get(i);s===void 0?n.set(i,[r]):s.push(r)}return n}function Kf(e){return{DirectiveDefinition(r){var i;let s=(i=r.arguments)!==null&&i!==void 0?i:[];return n(`@${r.name.value}`,s)},InterfaceTypeDefinition:t,InterfaceTypeExtension:t,ObjectTypeDefinition:t,ObjectTypeExtension:t};function t(r){var i;let s=r.name.value,o=(i=r.fields)!==null&&i!==void 0?i:[];for(let u of o){var a;let l=u.name.value,c=(a=u.arguments)!==null&&a!==void 0?a:[];n(`${s}.${l}`,c)}return!1}function n(r,i){let s=Rs(i,o=>o.name.value);for(let[o,a]of s)a.length>1&&e.reportError(new C(`Argument "${r}(${o}:)" can only be defined once.`,{nodes:a.map(u=>u.name)}));return!1}}function _i(e){return{Field:t,Directive:t};function t(n){var r;let i=(r=n.arguments)!==null&&r!==void 0?r:[],s=Rs(i,o=>o.name.value);for(let[o,a]of s)a.length>1&&e.reportError(new C(`There can be only one argument named "${o}".`,{nodes:a.map(u=>u.name)}))}}function Is(e){let t=Object.create(null),n=e.getSchema();return{DirectiveDefinition(r){let i=r.name.value;if(n!=null&&n.getDirective(i)){e.reportError(new C(`Directive "@${i}" already exists in the schema. It cannot be redefined.`,{nodes:r.name}));return}return t[i]?e.reportError(new C(`There can be only one directive named "@${i}".`,{nodes:[t[i],r.name]})):t[i]=r.name,!1}}}function Ei(e){let t=Object.create(null),n=e.getSchema(),r=n?n.getDirectives():ln;for(let a of r)t[a.name]=!a.isRepeatable;let i=e.getDocument().definitions;for(let a of i)a.kind===b.DIRECTIVE_DEFINITION&&(t[a.name.value]=!a.repeatable);let s=Object.create(null),o=Object.create(null);return{enter(a){if(!("directives"in a)||!a.directives)return;let u;if(a.kind===b.SCHEMA_DEFINITION||a.kind===b.SCHEMA_EXTENSION)u=s;else if(Xn(a)||Ts(a)){let l=a.name.value;u=o[l],u===void 0&&(o[l]=u=Object.create(null))}else u=Object.create(null);for(let l of a.directives){let c=l.name.value;t[c]&&(u[c]?e.reportError(new C(`The directive "@${c}" can only be used once at this location.`,{nodes:[u[c],l]})):u[c]=l)}}}}function Os(e){let t=e.getSchema(),n=t?t.getTypeMap():Object.create(null),r=Object.create(null);return{EnumTypeDefinition:i,EnumTypeExtension:i};function i(s){var o;let a=s.name.value;r[a]||(r[a]=Object.create(null));let u=(o=s.values)!==null&&o!==void 0?o:[],l=r[a];for(let c of u){let f=c.name.value,d=n[a];ze(d)&&d.getValue(f)?e.reportError(new C(`Enum value "${a}.${f}" already exists in the schema. It cannot also be defined in this type extension.`,{nodes:c.name})):l[f]?e.reportError(new C(`Enum value "${a}.${f}" can only be defined once.`,{nodes:[l[f],c.name]})):l[f]=c.name}return!1}}function ks(e){let t=e.getSchema(),n=t?t.getTypeMap():Object.create(null),r=Object.create(null);return{InputObjectTypeDefinition:i,InputObjectTypeExtension:i,InterfaceTypeDefinition:i,InterfaceTypeExtension:i,ObjectTypeDefinition:i,ObjectTypeExtension:i};function i(s){var o;let a=s.name.value;r[a]||(r[a]=Object.create(null));let u=(o=s.fields)!==null&&o!==void 0?o:[],l=r[a];for(let c of u){let f=c.name.value;w7(n[a],f)?e.reportError(new C(`Field "${a}.${f}" already exists in the schema. It cannot also be defined in this type extension.`,{nodes:c.name})):l[f]?e.reportError(new C(`Field "${a}.${f}" can only be defined once.`,{nodes:[l[f],c.name]})):l[f]=c.name}return!1}}function w7(e,t){return we(e)||xe(e)||Le(e)?e.getFields()[t]!=null:!1}function e1(e){let t=Object.create(null);return{OperationDefinition:()=>!1,FragmentDefinition(n){let r=n.name.value;return t[r]?e.reportError(new C(`There can be only one fragment named "${r}".`,{nodes:[t[r],n.name]})):t[r]=n.name,!1}}}function Di(e){let t=[],n=Object.create(null);return{ObjectValue:{enter(){t.push(n),n=Object.create(null)},leave(){let r=t.pop();r||tt(!1),n=r}},ObjectField(r){let i=r.name.value;n[i]?e.reportError(new C(`There can be only one input field named "${i}".`,{nodes:[n[i],r.name]})):n[i]=r.name}}}function t1(e){let t=Object.create(null);return{OperationDefinition(n){let r=n.name;return r&&(t[r.value]?e.reportError(new C(`There can be only one operation named "${r.value}".`,{nodes:[t[r.value],r]})):t[r.value]=r),!1},FragmentDefinition:()=>!1}}function Ms(e){let t=e.getSchema(),n=Object.create(null),r=t?{query:t.getQueryType(),mutation:t.getMutationType(),subscription:t.getSubscriptionType()}:{};return{SchemaDefinition:i,SchemaExtension:i};function i(s){var o;let a=(o=s.operationTypes)!==null&&o!==void 0?o:[];for(let u of a){let l=u.operation,c=n[l];r[l]?e.reportError(new C(`Type for ${l} already defined in the schema. It cannot be redefined.`,{nodes:u})):c?e.reportError(new C(`There can be only one ${l} type in schema.`,{nodes:[c,u]})):n[l]=u}return!1}}function Us(e){let t=Object.create(null),n=e.getSchema();return{ScalarTypeDefinition:r,ObjectTypeDefinition:r,InterfaceTypeDefinition:r,UnionTypeDefinition:r,EnumTypeDefinition:r,InputObjectTypeDefinition:r};function r(i){let s=i.name.value;if(n!=null&&n.getType(s)){e.reportError(new C(`Type "${s}" already exists in the schema. It cannot also be defined in this type definition.`,{nodes:i.name}));return}return t[s]?e.reportError(new C(`There can be only one type named "${s}".`,{nodes:[t[s],i.name]})):t[s]=i.name,!1}}function Ps(e){return{OperationDefinition(t){var n;let r=(n=t.variableDefinitions)!==null&&n!==void 0?n:[],i=Rs(r,s=>s.variable.name.value);for(let[s,o]of i)o.length>1&&e.reportError(new C(`There can be only one variable named "$${s}".`,{nodes:o.map(a=>a.variable.name)}))}}}function n1(e){let t={};return{OperationDefinition:{enter(){t={}}},VariableDefinition(n){t[n.variable.name.value]=n},ListValue(n){let r=jr(e.getParentInputType());if(!Pe(r))return bi(e,n),!1},ObjectValue(n){let r=Be(e.getInputType());if(!Le(r))return bi(e,n),!1;let i=sn(n.fields,s=>s.name.value);for(let s of Object.values(r.getFields()))if(!i[s.name]&&_s(s)){let a=W(s.type);e.reportError(new C(`Field "${r.name}.${s.name}" of required type "${a}" was not provided.`,{nodes:n}))}r.isOneOf&&x7(e,n,r,i,t)},ObjectField(n){let r=Be(e.getParentInputType());if(!e.getInputType()&&Le(r)){let s=on(n.name.value,Object.keys(r.getFields()));e.reportError(new C(`Field "${n.name.value}" is not defined by type "${r.name}".`+Yt(s),{nodes:n}))}},NullValue(n){let r=e.getInputType();be(r)&&e.reportError(new C(`Expected value of type "${W(r)}", found ${$e(n)}.`,{nodes:n}))},EnumValue:n=>bi(e,n),IntValue:n=>bi(e,n),FloatValue:n=>bi(e,n),StringValue:n=>bi(e,n),BooleanValue:n=>bi(e,n)}}function bi(e,t){let n=e.getInputType();if(!n)return;let r=Be(n);if(!un(r)){let i=W(n);e.reportError(new C(`Expected value of type "${i}", found ${$e(t)}.`,{nodes:t}));return}try{if(r.parseLiteral(t,void 0)===void 0){let s=W(n);e.reportError(new C(`Expected value of type "${s}", found ${$e(t)}.`,{nodes:t}))}}catch(i){let s=W(n);i instanceof C?e.reportError(i):e.reportError(new C(`Expected value of type "${s}", found ${$e(t)}; `+i.message,{nodes:t,originalError:i}))}}function x7(e,t,n,r,i){var s;let o=Object.keys(r);if(o.length!==1){e.reportError(new C(`OneOf Input Object "${n.name}" must specify exactly one key.`,{nodes:[t]}));return}let u=(s=r[o[0]])===null||s===void 0?void 0:s.value,l=!u||u.kind===b.NULL,c=u?.kind===b.VARIABLE;if(l){e.reportError(new C(`Field "${n.name}.${o[0]}" must be non-null.`,{nodes:[t]}));return}if(c){let f=u.name.value;i[f].type.kind!==b.NON_NULL_TYPE&&e.reportError(new C(`Variable "${f}" must be non-nullable to be used for OneOf Input Object "${n.name}".`,{nodes:[t]}))}}function r1(e){return{VariableDefinition(t){let n=rt(e.getSchema(),t.type);if(n!==void 0&&!ht(n)){let r=t.variable.name.value,i=$e(t.type);e.reportError(new C(`Variable "$${r}" cannot be non-input type "${i}".`,{nodes:t.type}))}}}}function i1(e){let t=Object.create(null);return{OperationDefinition:{enter(){t=Object.create(null)},leave(n){let r=e.getRecursiveVariableUsages(n);for(let{node:i,type:s,defaultValue:o,parentType:a}of r){let u=i.name.value,l=t[u];if(l&&s){let c=e.getSchema(),f=rt(c,l.type);if(f&&!L7(c,f,l.defaultValue,s,o)){let d=W(f),m=W(s);e.reportError(new C(`Variable "$${u}" of type "${d}" used in position expecting type "${m}".`,{nodes:[l,i]}))}Le(a)&&a.isOneOf&&gs(f)&&e.reportError(new C(`Variable "$${u}" is of type "${f}" but must be non-nullable to be used for OneOf Input Object "${a}".`,{nodes:[l,i]}))}}}},VariableDefinition(n){t[n.variable.name.value]=n}}}function L7(e,t,n,r,i){if(be(r)&&!be(t)){if(!(n!=null&&n.kind!==b.NULL)&&!(i!==void 0))return!1;let a=r.ofType;return Wn(e,t,a)}return Wn(e,t,r)}var s1=Object.freeze([Bf]),Bs=Object.freeze([ys,t1,Pf,Zf,mi,ws,r1,Yf,kf,e1,xs,As,zf,Cf,Ps,Vf,$f,di,Ei,Mf,_i,n1,Ss,i1,Hf,Di,...s1]),sg=Object.freeze([Ls,Ms,Us,Os,ks,Kf,Is,mi,di,Ei,Fs,Uf,_i,Di,Qf]);var Yu=class{constructor(t,n){this._ast=t,this._fragments=void 0,this._fragmentSpreads=new Map,this._recursivelyReferencedFragments=new Map,this._onError=n}get[Symbol.toStringTag](){return"ASTValidationContext"}reportError(t){this._onError(t)}getDocument(){return this._ast}getFragment(t){let n;if(this._fragments)n=this._fragments;else{n=Object.create(null);for(let r of this.getDocument().definitions)r.kind===b.FRAGMENT_DEFINITION&&(n[r.name.value]=r);this._fragments=n}return n[t]}getFragmentSpreads(t){let n=this._fragmentSpreads.get(t);if(!n){n=[];let r=[t],i;for(;i=r.pop();)for(let s of i.selections)s.kind===b.FRAGMENT_SPREAD?n.push(s):s.selectionSet&&r.push(s.selectionSet);this._fragmentSpreads.set(t,n)}return n}getRecursivelyReferencedFragments(t){let n=this._recursivelyReferencedFragments.get(t);if(!n){n=[];let r=Object.create(null),i=[t.selectionSet],s;for(;s=i.pop();)for(let o of this.getFragmentSpreads(s)){let a=o.name.value;if(r[a]!==!0){r[a]=!0;let u=this.getFragment(a);u&&(n.push(u),i.push(u.selectionSet))}}this._recursivelyReferencedFragments.set(t,n)}return n}},Xu=class extends Yu{constructor(t,n,r){super(t,r),this._schema=n}get[Symbol.toStringTag](){return"SDLValidationContext"}getSchema(){return this._schema}},ta=class extends Yu{constructor(t,n,r,i){super(n,i),this._schema=t,this._typeInfo=r,this._variableUsages=new Map,this._recursiveVariableUsages=new Map}get[Symbol.toStringTag](){return"ValidationContext"}getSchema(){return this._schema}getVariableUsages(t){let n=this._variableUsages.get(t);if(!n){let r=[],i=new pi(this._schema);Ft(t,ea(i,{VariableDefinition:()=>!1,Variable(s){r.push({node:s,type:i.getInputType(),defaultValue:i.getDefaultValue(),parentType:i.getParentInputType()})}})),n=r,this._variableUsages.set(t,n)}return n}getRecursiveVariableUsages(t){let n=this._recursiveVariableUsages.get(t);if(!n){n=this.getVariableUsages(t);for(let r of this.getRecursivelyReferencedFragments(t))n=n.concat(this.getVariableUsages(r));this._recursiveVariableUsages.set(t,n)}return n}getType(){return this._typeInfo.getType()}getParentType(){return this._typeInfo.getParentType()}getInputType(){return this._typeInfo.getInputType()}getParentInputType(){return this._typeInfo.getParentInputType()}getFieldDef(){return this._typeInfo.getFieldDef()}getDirective(){return this._typeInfo.getDirective()}getArgument(){return this._typeInfo.getArgument()}getEnumValue(){return this._typeInfo.getEnumValue()}};function Cs(e,t,n=Bs,r,i=new pi(e)){var s;let o=(s=r?.maxErrors)!==null&&s!==void 0?s:100;t||Te(!1,"Must provide document."),Ff(e);let a=Object.freeze({}),u=[],l=new ta(e,t,i,f=>{if(u.length>=o)throw u.push(new C("Too many validation errors, error limit reached. Validation aborted.")),a;u.push(f)}),c=qo(n.map(f=>f(l)));try{Ft(t,ea(i,c))}catch(f){if(f!==a)throw f}return u}function A7(e,t,n=sg){let r=[],i=new Xu(e,t,o=>{r.push(o)}),s=n.map(o=>o(i));return Ft(e,qo(s)),r}function og(e){let t=A7(e);if(t.length!==0)throw new Error(t.map(n=>n.message).join(`
|
|
164
164
|
|
|
165
|
-
`))}function Ju(e){return{Field(t){let n=e.getFieldDef(),r=n?.deprecationReason;if(n&&r!=null){let i=e.getParentType();i!=null||et(!1),e.reportError(new V(`The field ${i.name}.${n.name} is deprecated. ${r}`,{nodes:t}))}},Argument(t){let n=e.getArgument(),r=n?.deprecationReason;if(n&&r!=null){let i=e.getDirective();if(i!=null)e.reportError(new V(`Directive "@${i.name}" argument "${n.name}" is deprecated. ${r}`,{nodes:t}));else{let s=e.getParentType(),o=e.getFieldDef();s!=null&&o!=null||et(!1),e.reportError(new V(`Field "${s.name}.${o.name}" argument "${n.name}" is deprecated. ${r}`,{nodes:t}))}}},ObjectField(t){let n=Ce(e.getParentInputType());if(Ae(n)){let r=n.getFields()[t.name.value],i=r?.deprecationReason;i!=null&&e.reportError(new V(`The input field ${n.name}.${r.name} is deprecated. ${i}`,{nodes:t}))}},EnumValue(t){let n=e.getEnumValue(),r=n?.deprecationReason;if(n&&r!=null){let i=Ce(e.getInputType());i!=null||et(!1),e.reportError(new V(`The enum value "${i.name}.${n.name}" is deprecated. ${r}`,{nodes:t}))}}}}function ra(e,t){Pt(e)&&Pt(e.__schema)||we(!1,`Invalid or incomplete introspection result. Ensure that you are passing "data" property of introspection response and no "errors" was returned alongside: ${Y(e)}.`);let n=e.__schema,r=Gn(n.types,w=>w.name,w=>d(w));for(let w of[...vr,...Nr])r[w.name]&&(r[w.name]=w);let i=n.queryType?c(n.queryType):null,s=n.mutationType?c(n.mutationType):null,o=n.subscriptionType?c(n.subscriptionType):null,a=n.directives?n.directives.map(k):[];return new Hr({description:n.description,query:i,mutation:s,subscription:o,types:Object.values(r),directives:a,assumeValid:t?.assumeValid});function u(w){if(w.kind===je.LIST){let L=w.ofType;if(!L)throw new Error("Decorated type deeper than introspection query.");return new qe(u(L))}if(w.kind===je.NON_NULL){let L=w.ofType;if(!L)throw new Error("Decorated type deeper than introspection query.");let Z=u(L);return new ge(Su(Z))}return l(w)}function l(w){let L=w.name;if(!L)throw new Error(`Unknown type reference: ${Y(w)}.`);let Z=r[L];if(!Z)throw new Error(`Invalid or incomplete schema, unknown type: ${L}. Ensure that a full introspection query is used in order to build a client schema.`);return Z}function c(w){return Lu(l(w))}function f(w){return Au(l(w))}function d(w){if(w!=null&&w.name!=null&&w.kind!=null)switch(w.kind){case je.SCALAR:return m(w);case je.OBJECT:return E(w);case je.INTERFACE:return T(w);case je.UNION:return v(w);case je.ENUM:return A(w);case je.INPUT_OBJECT:return S(w)}let L=Y(w);throw new Error(`Invalid or incomplete introspection result. Ensure that a full introspection query is used in order to build a client schema: ${L}.`)}function m(w){return new Bt({name:w.name,description:w.description,specifiedByURL:w.specifiedByURL})}function g(w){if(w.interfaces===null&&w.kind===je.INTERFACE)return[];if(!w.interfaces){let L=Y(w);throw new Error(`Introspection result missing interfaces: ${L}.`)}return w.interfaces.map(f)}function E(w){return new lt({name:w.name,description:w.description,interfaces:()=>g(w),fields:()=>C(w)})}function T(w){return new Ct({name:w.name,description:w.description,interfaces:()=>g(w),fields:()=>C(w)})}function v(w){if(!w.possibleTypes){let L=Y(w);throw new Error(`Introspection result missing possibleTypes: ${L}.`)}return new qn({name:w.name,description:w.description,types:()=>w.possibleTypes.map(c)})}function A(w){if(!w.enumValues){let L=Y(w);throw new Error(`Introspection result missing enumValues: ${L}.`)}return new St({name:w.name,description:w.description,values:Gn(w.enumValues,L=>L.name,L=>({description:L.description,deprecationReason:L.deprecationReason}))})}function S(w){if(!w.inputFields){let L=Y(w);throw new Error(`Introspection result missing inputFields: ${L}.`)}return new mn({name:w.name,description:w.description,fields:()=>G(w.inputFields),isOneOf:w.isOneOf})}function C(w){if(!w.fields)throw new Error(`Introspection result missing fields: ${Y(w)}.`);return Gn(w.fields,L=>L.name,q)}function q(w){let L=u(w.type);if(!an(L)){let Z=Y(L);throw new Error(`Introspection must provide output type for fields, but received: ${Z}.`)}if(!w.args){let Z=Y(w);throw new Error(`Introspection result missing field args: ${Z}.`)}return{description:w.description,deprecationReason:w.deprecationReason,type:L,args:G(w.args)}}function G(w){return Gn(w,L=>L.name,I)}function I(w){let L=u(w.type);if(!ft(L)){let P=Y(L);throw new Error(`Introspection must provide input type for arguments, but received: ${P}.`)}let Z=w.defaultValue!=null?gn(Tu(w.defaultValue),L):void 0;return{description:w.description,type:L,defaultValue:Z,deprecationReason:w.deprecationReason}}function k(w){if(!w.args){let L=Y(w);throw new Error(`Introspection result missing directive args: ${L}.`)}if(!w.locations){let L=Y(w);throw new Error(`Introspection result missing directive locations: ${L}.`)}return new Kt({name:w.name,description:w.description,isRepeatable:w.isRepeatable,locations:w.locations.slice(),args:G(w.args)})}}function ag(e,t,n){var r,i,s,o;let a=[],u=Object.create(null),l=[],c,f=[];for(let $ of t.definitions)if($.kind===b.SCHEMA_DEFINITION)c=$;else if($.kind===b.SCHEMA_EXTENSION)f.push($);else if(Yn($))a.push($);else if(Ls($)){let ae=$.name.value,re=u[ae];u[ae]=re?re.concat([$]):[$]}else $.kind===b.DIRECTIVE_DEFINITION&&l.push($);if(Object.keys(u).length===0&&a.length===0&&l.length===0&&f.length===0&&c==null)return e;let d=Object.create(null);for(let $ of e.types)d[$.name]=A($);for(let $ of a){var m;let ae=$.name.value;d[ae]=(m=sg[ae])!==null&&m!==void 0?m:Ot($)}let g={query:e.query&&T(e.query),mutation:e.mutation&&T(e.mutation),subscription:e.subscription&&T(e.subscription),...c&&Z([c]),...Z(f)};return{description:(r=c)===null||r===void 0||(i=r.description)===null||i===void 0?void 0:i.value,...g,types:Object.values(d),directives:[...e.directives.map(v),...l.map(O)],extensions:Object.create(null),astNode:(s=c)!==null&&s!==void 0?s:e.astNode,extensionASTNodes:e.extensionASTNodes.concat(f),assumeValid:(o=n?.assumeValid)!==null&&o!==void 0?o:!1};function E($){return Be($)?new qe(E($.ofType)):ve($)?new ge(E($.ofType)):T($)}function T($){return d[$.name]}function v($){let ae=$.toConfig();return new Kt({...ae,args:Sn(ae.args,L)})}function A($){if(ys($)||ku($))return $;if(vt($))return q($);if(ye($))return G($);if(Le($))return I($);if(ct($))return k($);if(ze($))return C($);if(Ae($))return S($);et(!1,"Unexpected type: "+Y($))}function S($){var ae;let re=$.toConfig(),X=(ae=u[re.name])!==null&&ae!==void 0?ae:[];return new mn({...re,fields:()=>({...Sn(re.fields,ke=>({...ke,type:E(ke.type)})),...K(X)}),extensionASTNodes:re.extensionASTNodes.concat(X)})}function C($){var ae;let re=$.toConfig(),X=(ae=u[$.name])!==null&&ae!==void 0?ae:[];return new St({...re,values:{...re.values,...ce(X)},extensionASTNodes:re.extensionASTNodes.concat(X)})}function q($){var ae;let re=$.toConfig(),X=(ae=u[re.name])!==null&&ae!==void 0?ae:[],ke=re.specifiedByURL;for(let ee of X){var He;ke=(He=og(ee))!==null&&He!==void 0?He:ke}return new Bt({...re,specifiedByURL:ke,extensionASTNodes:re.extensionASTNodes.concat(X)})}function G($){var ae;let re=$.toConfig(),X=(ae=u[re.name])!==null&&ae!==void 0?ae:[];return new lt({...re,interfaces:()=>[...$.getInterfaces().map(T),...Ee(X)],fields:()=>({...Sn(re.fields,w),...R(X)}),extensionASTNodes:re.extensionASTNodes.concat(X)})}function I($){var ae;let re=$.toConfig(),X=(ae=u[re.name])!==null&&ae!==void 0?ae:[];return new Ct({...re,interfaces:()=>[...$.getInterfaces().map(T),...Ee(X)],fields:()=>({...Sn(re.fields,w),...R(X)}),extensionASTNodes:re.extensionASTNodes.concat(X)})}function k($){var ae;let re=$.toConfig(),X=(ae=u[re.name])!==null&&ae!==void 0?ae:[];return new qn({...re,types:()=>[...$.getTypes().map(T),...De(X)],extensionASTNodes:re.extensionASTNodes.concat(X)})}function w($){return{...$,type:E($.type),args:$.args&&Sn($.args,L)}}function L($){return{...$,type:E($.type)}}function Z($){let ae={};for(let X of $){var re;let ke=(re=X.operationTypes)!==null&&re!==void 0?re:[];for(let He of ke)ae[He.operation]=P(He.type)}return ae}function P($){var ae;let re=$.name.value,X=(ae=sg[re])!==null&&ae!==void 0?ae:d[re];if(X===void 0)throw new Error(`Unknown type: "${re}".`);return X}function z($){return $.kind===b.LIST_TYPE?new qe(z($.type)):$.kind===b.NON_NULL_TYPE?new ge(z($.type)):P($)}function O($){var ae;return new Kt({name:$.name.value,description:(ae=$.description)===null||ae===void 0?void 0:ae.value,locations:$.locations.map(({value:re})=>re),isRepeatable:$.repeatable,args:J($.arguments),astNode:$})}function R($){let ae=Object.create(null);for(let ke of $){var re;let He=(re=ke.fields)!==null&&re!==void 0?re:[];for(let ee of He){var X;ae[ee.name.value]={type:z(ee.type),description:(X=ee.description)===null||X===void 0?void 0:X.value,args:J(ee.arguments),deprecationReason:Zu(ee),astNode:ee}}}return ae}function J($){let ae=$??[],re=Object.create(null);for(let ke of ae){var X;let He=z(ke.type);re[ke.name.value]={type:He,description:(X=ke.description)===null||X===void 0?void 0:X.value,defaultValue:gn(ke.defaultValue,He),deprecationReason:Zu(ke),astNode:ke}}return re}function K($){let ae=Object.create(null);for(let ke of $){var re;let He=(re=ke.fields)!==null&&re!==void 0?re:[];for(let ee of He){var X;let Me=z(ee.type);ae[ee.name.value]={type:Me,description:(X=ee.description)===null||X===void 0?void 0:X.value,defaultValue:gn(ee.defaultValue,Me),deprecationReason:Zu(ee),astNode:ee}}}return ae}function ce($){let ae=Object.create(null);for(let ke of $){var re;let He=(re=ke.values)!==null&&re!==void 0?re:[];for(let ee of He){var X;ae[ee.name.value]={description:(X=ee.description)===null||X===void 0?void 0:X.value,deprecationReason:Zu(ee),astNode:ee}}}return ae}function Ee($){return $.flatMap(ae=>{var re,X;return(re=(X=ae.interfaces)===null||X===void 0?void 0:X.map(P))!==null&&re!==void 0?re:[]})}function De($){return $.flatMap(ae=>{var re,X;return(re=(X=ae.types)===null||X===void 0?void 0:X.map(P))!==null&&re!==void 0?re:[]})}function Ot($){var ae;let re=$.name.value,X=(ae=u[re])!==null&&ae!==void 0?ae:[];switch($.kind){case b.OBJECT_TYPE_DEFINITION:{var ke;let Ie=[$,...X];return new lt({name:re,description:(ke=$.description)===null||ke===void 0?void 0:ke.value,interfaces:()=>Ee(Ie),fields:()=>R(Ie),astNode:$,extensionASTNodes:X})}case b.INTERFACE_TYPE_DEFINITION:{var He;let Ie=[$,...X];return new Ct({name:re,description:(He=$.description)===null||He===void 0?void 0:He.value,interfaces:()=>Ee(Ie),fields:()=>R(Ie),astNode:$,extensionASTNodes:X})}case b.ENUM_TYPE_DEFINITION:{var ee;let Ie=[$,...X];return new St({name:re,description:(ee=$.description)===null||ee===void 0?void 0:ee.value,values:ce(Ie),astNode:$,extensionASTNodes:X})}case b.UNION_TYPE_DEFINITION:{var Me;let Ie=[$,...X];return new qn({name:re,description:(Me=$.description)===null||Me===void 0?void 0:Me.value,types:()=>De(Ie),astNode:$,extensionASTNodes:X})}case b.SCALAR_TYPE_DEFINITION:{var ne;return new Bt({name:re,description:(ne=$.description)===null||ne===void 0?void 0:ne.value,specifiedByURL:og($),astNode:$,extensionASTNodes:X})}case b.INPUT_OBJECT_TYPE_DEFINITION:{var Ne;let Ie=[$,...X];return new mn({name:re,description:(Ne=$.description)===null||Ne===void 0?void 0:Ne.value,fields:()=>K(Ie),astNode:$,extensionASTNodes:X,isOneOf:K7($)})}}}}var sg=sn([...vr,...Nr],e=>e.name);function Zu(e){let t=vi(Ts,e);return t?.reason}function og(e){let t=vi(Pu,e);return t?.url}function K7(e){return!!vi(Bu,e)}function ia(e,t){e!=null&&e.kind===b.DOCUMENT||we(!1,"Must provide valid Document AST."),t?.assumeValid!==!0&&t?.assumeValidSDL!==!0&&ig(e);let r=ag({description:void 0,types:[],directives:[],extensions:Object.create(null),extensionASTNodes:[],assumeValid:!1},e,t);if(r.astNode==null)for(let s of r.types)switch(s.name){case"Query":r.query=s;break;case"Mutation":r.mutation=s;break;case"Subscription":r.subscription=s;break}let i=[...r.directives,...ln.filter(s=>r.directives.every(o=>o.name!==s.name))];return new Hr({...r,directives:i})}function Wr(e){let t=Object.keys(e),n=t.length,r=new Array(n);for(let i=0;i<n;++i)r[i]=e[t[i]];return r}function Qe(e,t){return tb(t,ug(e.string))}function tb(e,t){if(!t||t.trim()===""||t.trim()===":"||t.trim()==="{")return i1(e,r=>!r.isDeprecated);let n=e.map(r=>({proximity:nb(ug(r.label),t),entry:r}));return i1(i1(n,r=>r.proximity<=2),r=>!r.entry.isDeprecated).sort((r,i)=>(r.entry.isDeprecated?1:0)-(i.entry.isDeprecated?1:0)||r.proximity-i.proximity||r.entry.label.length-i.entry.label.length).map(r=>r.entry)}function i1(e,t){let n=e.filter(t);return n.length===0?e:n}function ug(e){return e.toLowerCase().replaceAll(/\W/g,"")}function nb(e,t){let n=rb(t,e);return e.length>t.length&&(n-=e.length-t.length-1,n+=e.indexOf(t)===0?0:.5),n}function rb(e,t){let n,r,i=[],s=e.length,o=t.length;for(n=0;n<=s;n++)i[n]=[n];for(r=1;r<=o;r++)i[0][r]=r;for(n=1;n<=s;n++)for(r=1;r<=o;r++){let a=e[n-1]===t[r-1]?0:1;i[n][r]=Math.min(i[n-1][r]+1,i[n][r-1]+1,i[n-1][r-1]+a),n>1&&r>1&&e[n-1]===t[r-2]&&e[n-2]===t[r-1]&&(i[n][r]=Math.min(i[n][r],i[n-2][r-2]+a))}return i[s][o]}var ib=e=>` {
|
|
165
|
+
`))}function Ju(e){return{Field(t){let n=e.getFieldDef(),r=n?.deprecationReason;if(n&&r!=null){let i=e.getParentType();i!=null||tt(!1),e.reportError(new C(`The field ${i.name}.${n.name} is deprecated. ${r}`,{nodes:t}))}},Argument(t){let n=e.getArgument(),r=n?.deprecationReason;if(n&&r!=null){let i=e.getDirective();if(i!=null)e.reportError(new C(`Directive "@${i.name}" argument "${n.name}" is deprecated. ${r}`,{nodes:t}));else{let s=e.getParentType(),o=e.getFieldDef();s!=null&&o!=null||tt(!1),e.reportError(new C(`Field "${s.name}.${o.name}" argument "${n.name}" is deprecated. ${r}`,{nodes:t}))}}},ObjectField(t){let n=Be(e.getParentInputType());if(Le(n)){let r=n.getFields()[t.name.value],i=r?.deprecationReason;i!=null&&e.reportError(new C(`The input field ${n.name}.${r.name} is deprecated. ${i}`,{nodes:t}))}},EnumValue(t){let n=e.getEnumValue(),r=n?.deprecationReason;if(n&&r!=null){let i=Be(e.getInputType());i!=null||tt(!1),e.reportError(new C(`The enum value "${i.name}.${n.name}" is deprecated. ${r}`,{nodes:t}))}}}}function na(e,t){Ut(e)&&Ut(e.__schema)||Te(!1,`Invalid or incomplete introspection result. Ensure that you are passing "data" property of introspection response and no "errors" was returned alongside: ${W(e)}.`);let n=e.__schema,r=qn(n.types,w=>w.name,w=>d(w));for(let w of[...Dr,...br])r[w.name]&&(r[w.name]=w);let i=n.queryType?c(n.queryType):null,s=n.mutationType?c(n.mutationType):null,o=n.subscriptionType?c(n.subscriptionType):null,a=n.directives?n.directives.map(U):[];return new Gr({description:n.description,query:i,mutation:s,subscription:o,types:Object.values(r),directives:a,assumeValid:t?.assumeValid});function u(w){if(w.kind===je.LIST){let F=w.ofType;if(!F)throw new Error("Decorated type deeper than introspection query.");return new He(u(F))}if(w.kind===je.NON_NULL){let F=w.ofType;if(!F)throw new Error("Decorated type deeper than introspection query.");let Z=u(F);return new ge(Su(Z))}return l(w)}function l(w){let F=w.name;if(!F)throw new Error(`Unknown type reference: ${W(w)}.`);let Z=r[F];if(!Z)throw new Error(`Invalid or incomplete schema, unknown type: ${F}. Ensure that a full introspection query is used in order to build a client schema.`);return Z}function c(w){return Lu(l(w))}function f(w){return Au(l(w))}function d(w){if(w!=null&&w.name!=null&&w.kind!=null)switch(w.kind){case je.SCALAR:return m(w);case je.OBJECT:return _(w);case je.INTERFACE:return T(w);case je.UNION:return A(w);case je.ENUM:return S(w);case je.INPUT_OBJECT:return L(w)}let F=W(w);throw new Error(`Invalid or incomplete introspection result. Ensure that a full introspection query is used in order to build a client schema: ${F}.`)}function m(w){return new Pt({name:w.name,description:w.description,specifiedByURL:w.specifiedByURL})}function g(w){if(w.interfaces===null&&w.kind===je.INTERFACE)return[];if(!w.interfaces){let F=W(w);throw new Error(`Introspection result missing interfaces: ${F}.`)}return w.interfaces.map(f)}function _(w){return new ct({name:w.name,description:w.description,interfaces:()=>g(w),fields:()=>P(w)})}function T(w){return new Bt({name:w.name,description:w.description,interfaces:()=>g(w),fields:()=>P(w)})}function A(w){if(!w.possibleTypes){let F=W(w);throw new Error(`Introspection result missing possibleTypes: ${F}.`)}return new Hn({name:w.name,description:w.description,types:()=>w.possibleTypes.map(c)})}function S(w){if(!w.enumValues){let F=W(w);throw new Error(`Introspection result missing enumValues: ${F}.`)}return new St({name:w.name,description:w.description,values:qn(w.enumValues,F=>F.name,F=>({description:F.description,deprecationReason:F.deprecationReason}))})}function L(w){if(!w.inputFields){let F=W(w);throw new Error(`Introspection result missing inputFields: ${F}.`)}return new dn({name:w.name,description:w.description,fields:()=>Y(w.inputFields),isOneOf:w.isOneOf})}function P(w){if(!w.fields)throw new Error(`Introspection result missing fields: ${W(w)}.`);return qn(w.fields,F=>F.name,q)}function q(w){let F=u(w.type);if(!an(F)){let Z=W(F);throw new Error(`Introspection must provide output type for fields, but received: ${Z}.`)}if(!w.args){let Z=W(w);throw new Error(`Introspection result missing field args: ${Z}.`)}return{description:w.description,deprecationReason:w.deprecationReason,type:F,args:Y(w.args)}}function Y(w){return qn(w,F=>F.name,I)}function I(w){let F=u(w.type);if(!ht(F)){let re=W(F);throw new Error(`Introspection must provide input type for arguments, but received: ${re}.`)}let Z=w.defaultValue!=null?mn(Tu(w.defaultValue),F):void 0;return{description:w.description,type:F,defaultValue:Z,deprecationReason:w.deprecationReason}}function U(w){if(!w.args){let F=W(w);throw new Error(`Introspection result missing directive args: ${F}.`)}if(!w.locations){let F=W(w);throw new Error(`Introspection result missing directive locations: ${F}.`)}return new Jt({name:w.name,description:w.description,isRepeatable:w.isRepeatable,locations:w.locations.slice(),args:Y(w.args)})}}function lg(e,t,n){var r,i,s,o;let a=[],u=Object.create(null),l=[],c,f=[];for(let V of t.definitions)if(V.kind===b.SCHEMA_DEFINITION)c=V;else if(V.kind===b.SCHEMA_EXTENSION)f.push(V);else if(Xn(V))a.push(V);else if(Ts(V)){let ae=V.name.value,te=u[ae];u[ae]=te?te.concat([V]):[V]}else V.kind===b.DIRECTIVE_DEFINITION&&l.push(V);if(Object.keys(u).length===0&&a.length===0&&l.length===0&&f.length===0&&c==null)return e;let d=Object.create(null);for(let V of e.types)d[V.name]=S(V);for(let V of a){var m;let ae=V.name.value;d[ae]=(m=ag[ae])!==null&&m!==void 0?m:Xe(V)}let g={query:e.query&&T(e.query),mutation:e.mutation&&T(e.mutation),subscription:e.subscription&&T(e.subscription),...c&&Z([c]),...Z(f)};return{description:(r=c)===null||r===void 0||(i=r.description)===null||i===void 0?void 0:i.value,...g,types:Object.values(d),directives:[...e.directives.map(A),...l.map(R)],extensions:Object.create(null),astNode:(s=c)!==null&&s!==void 0?s:e.astNode,extensionASTNodes:e.extensionASTNodes.concat(f),assumeValid:(o=n?.assumeValid)!==null&&o!==void 0?o:!1};function _(V){return Pe(V)?new He(_(V.ofType)):be(V)?new ge(_(V.ofType)):T(V)}function T(V){return d[V.name]}function A(V){let ae=V.toConfig();return new Jt({...ae,args:Ln(ae.args,F)})}function S(V){if(Ns(V)||ku(V))return V;if(Tt(V))return q(V);if(we(V))return Y(V);if(xe(V))return I(V);if(ft(V))return U(V);if(ze(V))return P(V);if(Le(V))return L(V);tt(!1,"Unexpected type: "+W(V))}function L(V){var ae;let te=V.toConfig(),z=(ae=u[te.name])!==null&&ae!==void 0?ae:[];return new dn({...te,fields:()=>({...Ln(te.fields,Se=>({...Se,type:_(Se.type)})),...J(z)}),extensionASTNodes:te.extensionASTNodes.concat(z)})}function P(V){var ae;let te=V.toConfig(),z=(ae=u[V.name])!==null&&ae!==void 0?ae:[];return new St({...te,values:{...te.values,...fe(z)},extensionASTNodes:te.extensionASTNodes.concat(z)})}function q(V){var ae;let te=V.toConfig(),z=(ae=u[te.name])!==null&&ae!==void 0?ae:[],Se=te.specifiedByURL;for(let Q of z){var We;Se=(We=ug(Q))!==null&&We!==void 0?We:Se}return new Pt({...te,specifiedByURL:Se,extensionASTNodes:te.extensionASTNodes.concat(z)})}function Y(V){var ae;let te=V.toConfig(),z=(ae=u[te.name])!==null&&ae!==void 0?ae:[];return new ct({...te,interfaces:()=>[...V.getInterfaces().map(T),..._e(z)],fields:()=>({...Ln(te.fields,w),...k(z)}),extensionASTNodes:te.extensionASTNodes.concat(z)})}function I(V){var ae;let te=V.toConfig(),z=(ae=u[te.name])!==null&&ae!==void 0?ae:[];return new Bt({...te,interfaces:()=>[...V.getInterfaces().map(T),..._e(z)],fields:()=>({...Ln(te.fields,w),...k(z)}),extensionASTNodes:te.extensionASTNodes.concat(z)})}function U(V){var ae;let te=V.toConfig(),z=(ae=u[te.name])!==null&&ae!==void 0?ae:[];return new Hn({...te,types:()=>[...V.getTypes().map(T),...Fe(z)],extensionASTNodes:te.extensionASTNodes.concat(z)})}function w(V){return{...V,type:_(V.type),args:V.args&&Ln(V.args,F)}}function F(V){return{...V,type:_(V.type)}}function Z(V){let ae={};for(let z of V){var te;let Se=(te=z.operationTypes)!==null&&te!==void 0?te:[];for(let We of Se)ae[We.operation]=re(We.type)}return ae}function re(V){var ae;let te=V.name.value,z=(ae=ag[te])!==null&&ae!==void 0?ae:d[te];if(z===void 0)throw new Error(`Unknown type: "${te}".`);return z}function ne(V){return V.kind===b.LIST_TYPE?new He(ne(V.type)):V.kind===b.NON_NULL_TYPE?new ge(ne(V.type)):re(V)}function R(V){var ae;return new Jt({name:V.name.value,description:(ae=V.description)===null||ae===void 0?void 0:ae.value,locations:V.locations.map(({value:te})=>te),isRepeatable:V.repeatable,args:K(V.arguments),astNode:V})}function k(V){let ae=Object.create(null);for(let Se of V){var te;let We=(te=Se.fields)!==null&&te!==void 0?te:[];for(let Q of We){var z;ae[Q.name.value]={type:ne(Q.type),description:(z=Q.description)===null||z===void 0?void 0:z.value,args:K(Q.arguments),deprecationReason:Zu(Q),astNode:Q}}}return ae}function K(V){let ae=V??[],te=Object.create(null);for(let Se of ae){var z;let We=ne(Se.type);te[Se.name.value]={type:We,description:(z=Se.description)===null||z===void 0?void 0:z.value,defaultValue:mn(Se.defaultValue,We),deprecationReason:Zu(Se),astNode:Se}}return te}function J(V){let ae=Object.create(null);for(let Se of V){var te;let We=(te=Se.fields)!==null&&te!==void 0?te:[];for(let Q of We){var z;let ke=ne(Q.type);ae[Q.name.value]={type:ke,description:(z=Q.description)===null||z===void 0?void 0:z.value,defaultValue:mn(Q.defaultValue,ke),deprecationReason:Zu(Q),astNode:Q}}}return ae}function fe(V){let ae=Object.create(null);for(let Se of V){var te;let We=(te=Se.values)!==null&&te!==void 0?te:[];for(let Q of We){var z;ae[Q.name.value]={description:(z=Q.description)===null||z===void 0?void 0:z.value,deprecationReason:Zu(Q),astNode:Q}}}return ae}function _e(V){return V.flatMap(ae=>{var te,z;return(te=(z=ae.interfaces)===null||z===void 0?void 0:z.map(re))!==null&&te!==void 0?te:[]})}function Fe(V){return V.flatMap(ae=>{var te,z;return(te=(z=ae.types)===null||z===void 0?void 0:z.map(re))!==null&&te!==void 0?te:[]})}function Xe(V){var ae;let te=V.name.value,z=(ae=u[te])!==null&&ae!==void 0?ae:[];switch(V.kind){case b.OBJECT_TYPE_DEFINITION:{var Se;let Oe=[V,...z];return new ct({name:te,description:(Se=V.description)===null||Se===void 0?void 0:Se.value,interfaces:()=>_e(Oe),fields:()=>k(Oe),astNode:V,extensionASTNodes:z})}case b.INTERFACE_TYPE_DEFINITION:{var We;let Oe=[V,...z];return new Bt({name:te,description:(We=V.description)===null||We===void 0?void 0:We.value,interfaces:()=>_e(Oe),fields:()=>k(Oe),astNode:V,extensionASTNodes:z})}case b.ENUM_TYPE_DEFINITION:{var Q;let Oe=[V,...z];return new St({name:te,description:(Q=V.description)===null||Q===void 0?void 0:Q.value,values:fe(Oe),astNode:V,extensionASTNodes:z})}case b.UNION_TYPE_DEFINITION:{var ke;let Oe=[V,...z];return new Hn({name:te,description:(ke=V.description)===null||ke===void 0?void 0:ke.value,types:()=>Fe(Oe),astNode:V,extensionASTNodes:z})}case b.SCALAR_TYPE_DEFINITION:{var ee;return new Pt({name:te,description:(ee=V.description)===null||ee===void 0?void 0:ee.value,specifiedByURL:ug(V),astNode:V,extensionASTNodes:z})}case b.INPUT_OBJECT_TYPE_DEFINITION:{var ve;let Oe=[V,...z];return new dn({name:te,description:(ve=V.description)===null||ve===void 0?void 0:ve.value,fields:()=>J(Oe),astNode:V,extensionASTNodes:z,isOneOf:z7(V)})}}}}var ag=sn([...Dr,...br],e=>e.name);function Zu(e){let t=gi(Ds,e);return t?.reason}function ug(e){let t=gi(Pu,e);return t?.url}function z7(e){return!!gi(Bu,e)}function ra(e,t){e!=null&&e.kind===b.DOCUMENT||Te(!1,"Must provide valid Document AST."),t?.assumeValid!==!0&&t?.assumeValidSDL!==!0&&og(e);let r=lg({description:void 0,types:[],directives:[],extensions:Object.create(null),extensionASTNodes:[],assumeValid:!1},e,t);if(r.astNode==null)for(let s of r.types)switch(s.name){case"Query":r.query=s;break;case"Mutation":r.mutation=s;break;case"Subscription":r.subscription=s;break}let i=[...r.directives,...ln.filter(s=>r.directives.every(o=>o.name!==s.name))];return new Gr({...r,directives:i})}function qr(e){let t=Object.keys(e),n=t.length,r=new Array(n);for(let i=0;i<n;++i)r[i]=e[t[i]];return r}function Qe(e,t){return Y7(t,cg(e.string))}function Y7(e,t){if(!t||t.trim()===""||t.trim()===":"||t.trim()==="{")return o1(e,r=>!r.isDeprecated);let n=e.map(r=>({proximity:X7(cg(r.label),t),entry:r}));return o1(o1(n,r=>r.proximity<=2),r=>!r.entry.isDeprecated).sort((r,i)=>(r.entry.isDeprecated?1:0)-(i.entry.isDeprecated?1:0)||r.proximity-i.proximity||r.entry.label.length-i.entry.label.length).map(r=>r.entry)}function o1(e,t){let n=e.filter(t);return n.length===0?e:n}function cg(e){return e.toLowerCase().replaceAll(/\W/g,"")}function X7(e,t){let n=J7(t,e);return e.length>t.length&&(n-=e.length-t.length-1,n+=e.indexOf(t)===0?0:.5),n}function J7(e,t){let n,r,i=[],s=e.length,o=t.length;for(n=0;n<=s;n++)i[n]=[n];for(r=1;r<=o;r++)i[0][r]=r;for(n=1;n<=s;n++)for(r=1;r<=o;r++){let a=e[n-1]===t[r-1]?0:1;i[n][r]=Math.min(i[n-1][r]+1,i[n][r-1]+1,i[n-1][r-1]+a),n>1&&r>1&&e[n-1]===t[r-2]&&e[n-2]===t[r-1]&&(i[n][r]=Math.min(i[n][r],i[n-2][r-2]+a))}return i[s][o]}var Z7=e=>` {
|
|
166
166
|
$${e??1}
|
|
167
|
-
}`,
|
|
168
|
-
`)}`};var cg;(function(e){function t(n){return typeof n=="string"}e.is=t})(cg||(cg={}));var o1;(function(e){function t(n){return typeof n=="string"}e.is=t})(o1||(o1={}));var fg;(function(e){e.MIN_VALUE=-2147483648,e.MAX_VALUE=2147483647;function t(n){return typeof n=="number"&&e.MIN_VALUE<=n&&n<=e.MAX_VALUE}e.is=t})(fg||(fg={}));var Ku;(function(e){e.MIN_VALUE=0,e.MAX_VALUE=2147483647;function t(n){return typeof n=="number"&&e.MIN_VALUE<=n&&n<=e.MAX_VALUE}e.is=t})(Ku||(Ku={}));var On;(function(e){function t(r,i){return r===Number.MAX_VALUE&&(r=Ku.MAX_VALUE),i===Number.MAX_VALUE&&(i=Ku.MAX_VALUE),{line:r,character:i}}e.create=t;function n(r){let i=r;return B.objectLiteral(i)&&B.uinteger(i.line)&&B.uinteger(i.character)}e.is=n})(On||(On={}));var ht;(function(e){function t(r,i,s,o){if(B.uinteger(r)&&B.uinteger(i)&&B.uinteger(s)&&B.uinteger(o))return{start:On.create(r,i),end:On.create(s,o)};if(On.is(r)&&On.is(i))return{start:r,end:i};throw new Error(`Range#create called with invalid arguments[${r}, ${i}, ${s}, ${o}]`)}e.create=t;function n(r){let i=r;return B.objectLiteral(i)&&On.is(i.start)&&On.is(i.end)}e.is=n})(ht||(ht={}));var el;(function(e){function t(r,i){return{uri:r,range:i}}e.create=t;function n(r){let i=r;return B.objectLiteral(i)&&ht.is(i.range)&&(B.string(i.uri)||B.undefined(i.uri))}e.is=n})(el||(el={}));var hg;(function(e){function t(r,i,s,o){return{targetUri:r,targetRange:i,targetSelectionRange:s,originSelectionRange:o}}e.create=t;function n(r){let i=r;return B.objectLiteral(i)&&ht.is(i.targetRange)&&B.string(i.targetUri)&&ht.is(i.targetSelectionRange)&&(ht.is(i.originSelectionRange)||B.undefined(i.originSelectionRange))}e.is=n})(hg||(hg={}));var a1;(function(e){function t(r,i,s,o){return{red:r,green:i,blue:s,alpha:o}}e.create=t;function n(r){let i=r;return B.objectLiteral(i)&&B.numberRange(i.red,0,1)&&B.numberRange(i.green,0,1)&&B.numberRange(i.blue,0,1)&&B.numberRange(i.alpha,0,1)}e.is=n})(a1||(a1={}));var pg;(function(e){function t(r,i){return{range:r,color:i}}e.create=t;function n(r){let i=r;return B.objectLiteral(i)&&ht.is(i.range)&&a1.is(i.color)}e.is=n})(pg||(pg={}));var dg;(function(e){function t(r,i,s){return{label:r,textEdit:i,additionalTextEdits:s}}e.create=t;function n(r){let i=r;return B.objectLiteral(i)&&B.string(i.label)&&(B.undefined(i.textEdit)||Hs.is(i))&&(B.undefined(i.additionalTextEdits)||B.typedArray(i.additionalTextEdits,Hs.is))}e.is=n})(dg||(dg={}));var mg;(function(e){e.Comment="comment",e.Imports="imports",e.Region="region"})(mg||(mg={}));var gg;(function(e){function t(r,i,s,o,a,u){let l={startLine:r,endLine:i};return B.defined(s)&&(l.startCharacter=s),B.defined(o)&&(l.endCharacter=o),B.defined(a)&&(l.kind=a),B.defined(u)&&(l.collapsedText=u),l}e.create=t;function n(r){let i=r;return B.objectLiteral(i)&&B.uinteger(i.startLine)&&B.uinteger(i.startLine)&&(B.undefined(i.startCharacter)||B.uinteger(i.startCharacter))&&(B.undefined(i.endCharacter)||B.uinteger(i.endCharacter))&&(B.undefined(i.kind)||B.string(i.kind))}e.is=n})(gg||(gg={}));var u1;(function(e){function t(r,i){return{location:r,message:i}}e.create=t;function n(r){let i=r;return B.defined(i)&&el.is(i.location)&&B.string(i.message)}e.is=n})(u1||(u1={}));var _g;(function(e){e.Error=1,e.Warning=2,e.Information=3,e.Hint=4})(_g||(_g={}));var Eg;(function(e){e.Unnecessary=1,e.Deprecated=2})(Eg||(Eg={}));var Dg;(function(e){function t(n){let r=n;return B.objectLiteral(r)&&B.string(r.href)}e.is=t})(Dg||(Dg={}));var tl;(function(e){function t(r,i,s,o,a,u){let l={range:r,message:i};return B.defined(s)&&(l.severity=s),B.defined(o)&&(l.code=o),B.defined(a)&&(l.source=a),B.defined(u)&&(l.relatedInformation=u),l}e.create=t;function n(r){var i;let s=r;return B.defined(s)&&ht.is(s.range)&&B.string(s.message)&&(B.number(s.severity)||B.undefined(s.severity))&&(B.integer(s.code)||B.string(s.code)||B.undefined(s.code))&&(B.undefined(s.codeDescription)||B.string((i=s.codeDescription)===null||i===void 0?void 0:i.href))&&(B.string(s.source)||B.undefined(s.source))&&(B.undefined(s.relatedInformation)||B.typedArray(s.relatedInformation,u1.is))}e.is=n})(tl||(tl={}));var qs;(function(e){function t(r,i,...s){let o={title:r,command:i};return B.defined(s)&&s.length>0&&(o.arguments=s),o}e.create=t;function n(r){let i=r;return B.defined(i)&&B.string(i.title)&&B.string(i.command)}e.is=n})(qs||(qs={}));var Hs;(function(e){function t(s,o){return{range:s,newText:o}}e.replace=t;function n(s,o){return{range:{start:s,end:s},newText:o}}e.insert=n;function r(s){return{range:s,newText:""}}e.del=r;function i(s){let o=s;return B.objectLiteral(o)&&B.string(o.newText)&&ht.is(o.range)}e.is=i})(Hs||(Hs={}));var l1;(function(e){function t(r,i,s){let o={label:r};return i!==void 0&&(o.needsConfirmation=i),s!==void 0&&(o.description=s),o}e.create=t;function n(r){let i=r;return B.objectLiteral(i)&&B.string(i.label)&&(B.boolean(i.needsConfirmation)||i.needsConfirmation===void 0)&&(B.string(i.description)||i.description===void 0)}e.is=n})(l1||(l1={}));var Ws;(function(e){function t(n){let r=n;return B.string(r)}e.is=t})(Ws||(Ws={}));var bg;(function(e){function t(s,o,a){return{range:s,newText:o,annotationId:a}}e.replace=t;function n(s,o,a){return{range:{start:s,end:s},newText:o,annotationId:a}}e.insert=n;function r(s,o){return{range:s,newText:"",annotationId:o}}e.del=r;function i(s){let o=s;return Hs.is(o)&&(l1.is(o.annotationId)||Ws.is(o.annotationId))}e.is=i})(bg||(bg={}));var c1;(function(e){function t(r,i){return{textDocument:r,edits:i}}e.create=t;function n(r){let i=r;return B.defined(i)&&m1.is(i.textDocument)&&Array.isArray(i.edits)}e.is=n})(c1||(c1={}));var f1;(function(e){function t(r,i,s){let o={kind:"create",uri:r};return i!==void 0&&(i.overwrite!==void 0||i.ignoreIfExists!==void 0)&&(o.options=i),s!==void 0&&(o.annotationId=s),o}e.create=t;function n(r){let i=r;return i&&i.kind==="create"&&B.string(i.uri)&&(i.options===void 0||(i.options.overwrite===void 0||B.boolean(i.options.overwrite))&&(i.options.ignoreIfExists===void 0||B.boolean(i.options.ignoreIfExists)))&&(i.annotationId===void 0||Ws.is(i.annotationId))}e.is=n})(f1||(f1={}));var h1;(function(e){function t(r,i,s,o){let a={kind:"rename",oldUri:r,newUri:i};return s!==void 0&&(s.overwrite!==void 0||s.ignoreIfExists!==void 0)&&(a.options=s),o!==void 0&&(a.annotationId=o),a}e.create=t;function n(r){let i=r;return i&&i.kind==="rename"&&B.string(i.oldUri)&&B.string(i.newUri)&&(i.options===void 0||(i.options.overwrite===void 0||B.boolean(i.options.overwrite))&&(i.options.ignoreIfExists===void 0||B.boolean(i.options.ignoreIfExists)))&&(i.annotationId===void 0||Ws.is(i.annotationId))}e.is=n})(h1||(h1={}));var p1;(function(e){function t(r,i,s){let o={kind:"delete",uri:r};return i!==void 0&&(i.recursive!==void 0||i.ignoreIfNotExists!==void 0)&&(o.options=i),s!==void 0&&(o.annotationId=s),o}e.create=t;function n(r){let i=r;return i&&i.kind==="delete"&&B.string(i.uri)&&(i.options===void 0||(i.options.recursive===void 0||B.boolean(i.options.recursive))&&(i.options.ignoreIfNotExists===void 0||B.boolean(i.options.ignoreIfNotExists)))&&(i.annotationId===void 0||Ws.is(i.annotationId))}e.is=n})(p1||(p1={}));var d1;(function(e){function t(n){let r=n;return r&&(r.changes!==void 0||r.documentChanges!==void 0)&&(r.documentChanges===void 0||r.documentChanges.every(i=>B.string(i.kind)?f1.is(i)||h1.is(i)||p1.is(i):c1.is(i)))}e.is=t})(d1||(d1={}));var vg;(function(e){function t(r){return{uri:r}}e.create=t;function n(r){let i=r;return B.defined(i)&&B.string(i.uri)}e.is=n})(vg||(vg={}));var Ng;(function(e){function t(r,i){return{uri:r,version:i}}e.create=t;function n(r){let i=r;return B.defined(i)&&B.string(i.uri)&&B.integer(i.version)}e.is=n})(Ng||(Ng={}));var m1;(function(e){function t(r,i){return{uri:r,version:i}}e.create=t;function n(r){let i=r;return B.defined(i)&&B.string(i.uri)&&(i.version===null||B.integer(i.version))}e.is=n})(m1||(m1={}));var Tg;(function(e){function t(r,i,s,o){return{uri:r,languageId:i,version:s,text:o}}e.create=t;function n(r){let i=r;return B.defined(i)&&B.string(i.uri)&&B.string(i.languageId)&&B.integer(i.version)&&B.string(i.text)}e.is=n})(Tg||(Tg={}));var g1;(function(e){e.PlainText="plaintext",e.Markdown="markdown";function t(n){let r=n;return r===e.PlainText||r===e.Markdown}e.is=t})(g1||(g1={}));var oa;(function(e){function t(n){let r=n;return B.objectLiteral(n)&&g1.is(r.kind)&&B.string(r.value)}e.is=t})(oa||(oa={}));var wg;(function(e){e.Text=1,e.Method=2,e.Function=3,e.Constructor=4,e.Field=5,e.Variable=6,e.Class=7,e.Interface=8,e.Module=9,e.Property=10,e.Unit=11,e.Value=12,e.Enum=13,e.Keyword=14,e.Snippet=15,e.Color=16,e.File=17,e.Reference=18,e.Folder=19,e.EnumMember=20,e.Constant=21,e.Struct=22,e.Event=23,e.Operator=24,e.TypeParameter=25})(wg||(wg={}));var zr;(function(e){e.PlainText=1,e.Snippet=2})(zr||(zr={}));var xg;(function(e){e.Deprecated=1})(xg||(xg={}));var yg;(function(e){function t(r,i,s){return{newText:r,insert:i,replace:s}}e.create=t;function n(r){let i=r;return i&&B.string(i.newText)&&ht.is(i.insert)&&ht.is(i.replace)}e.is=n})(yg||(yg={}));var Qr;(function(e){e.asIs=1,e.adjustIndentation=2})(Qr||(Qr={}));var Lg;(function(e){function t(n){let r=n;return r&&(B.string(r.detail)||r.detail===void 0)&&(B.string(r.description)||r.description===void 0)}e.is=t})(Lg||(Lg={}));var Ag;(function(e){function t(n){return{label:n}}e.create=t})(Ag||(Ag={}));var Fg;(function(e){function t(n,r){return{items:n||[],isIncomplete:!!r}}e.create=t})(Fg||(Fg={}));var nl;(function(e){function t(r){return r.replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&")}e.fromPlainText=t;function n(r){let i=r;return B.string(i)||B.objectLiteral(i)&&B.string(i.language)&&B.string(i.value)}e.is=n})(nl||(nl={}));var Sg;(function(e){function t(n){let r=n;return!!r&&B.objectLiteral(r)&&(oa.is(r.contents)||nl.is(r.contents)||B.typedArray(r.contents,nl.is))&&(n.range===void 0||ht.is(n.range))}e.is=t})(Sg||(Sg={}));var Rg;(function(e){function t(n,r){return r?{label:n,documentation:r}:{label:n}}e.create=t})(Rg||(Rg={}));var Ig;(function(e){function t(n,r,...i){let s={label:n};return B.defined(r)&&(s.documentation=r),B.defined(i)?s.parameters=i:s.parameters=[],s}e.create=t})(Ig||(Ig={}));var Og;(function(e){e.Text=1,e.Read=2,e.Write=3})(Og||(Og={}));var kg;(function(e){function t(n,r){let i={range:n};return B.number(r)&&(i.kind=r),i}e.create=t})(kg||(kg={}));var Mg;(function(e){e.File=1,e.Module=2,e.Namespace=3,e.Package=4,e.Class=5,e.Method=6,e.Property=7,e.Field=8,e.Constructor=9,e.Enum=10,e.Interface=11,e.Function=12,e.Variable=13,e.Constant=14,e.String=15,e.Number=16,e.Boolean=17,e.Array=18,e.Object=19,e.Key=20,e.Null=21,e.EnumMember=22,e.Struct=23,e.Event=24,e.Operator=25,e.TypeParameter=26})(Mg||(Mg={}));var Ug;(function(e){e.Deprecated=1})(Ug||(Ug={}));var Pg;(function(e){function t(n,r,i,s,o){let a={name:n,kind:r,location:{uri:s,range:i}};return o&&(a.containerName=o),a}e.create=t})(Pg||(Pg={}));var Bg;(function(e){function t(n,r,i,s){return s!==void 0?{name:n,kind:r,location:{uri:i,range:s}}:{name:n,kind:r,location:{uri:i}}}e.create=t})(Bg||(Bg={}));var Cg;(function(e){function t(r,i,s,o,a,u){let l={name:r,detail:i,kind:s,range:o,selectionRange:a};return u!==void 0&&(l.children=u),l}e.create=t;function n(r){let i=r;return i&&B.string(i.name)&&B.number(i.kind)&&ht.is(i.range)&&ht.is(i.selectionRange)&&(i.detail===void 0||B.string(i.detail))&&(i.deprecated===void 0||B.boolean(i.deprecated))&&(i.children===void 0||Array.isArray(i.children))&&(i.tags===void 0||Array.isArray(i.tags))}e.is=n})(Cg||(Cg={}));var Vg;(function(e){e.Empty="",e.QuickFix="quickfix",e.Refactor="refactor",e.RefactorExtract="refactor.extract",e.RefactorInline="refactor.inline",e.RefactorRewrite="refactor.rewrite",e.Source="source",e.SourceOrganizeImports="source.organizeImports",e.SourceFixAll="source.fixAll"})(Vg||(Vg={}));var rl;(function(e){e.Invoked=1,e.Automatic=2})(rl||(rl={}));var $g;(function(e){function t(r,i,s){let o={diagnostics:r};return i!=null&&(o.only=i),s!=null&&(o.triggerKind=s),o}e.create=t;function n(r){let i=r;return B.defined(i)&&B.typedArray(i.diagnostics,tl.is)&&(i.only===void 0||B.typedArray(i.only,B.string))&&(i.triggerKind===void 0||i.triggerKind===rl.Invoked||i.triggerKind===rl.Automatic)}e.is=n})($g||($g={}));var jg;(function(e){function t(r,i,s){let o={title:r},a=!0;return typeof i=="string"?(a=!1,o.kind=i):qs.is(i)?o.command=i:o.edit=i,a&&s!==void 0&&(o.kind=s),o}e.create=t;function n(r){let i=r;return i&&B.string(i.title)&&(i.diagnostics===void 0||B.typedArray(i.diagnostics,tl.is))&&(i.kind===void 0||B.string(i.kind))&&(i.edit!==void 0||i.command!==void 0)&&(i.command===void 0||qs.is(i.command))&&(i.isPreferred===void 0||B.boolean(i.isPreferred))&&(i.edit===void 0||d1.is(i.edit))}e.is=n})(jg||(jg={}));var Gg;(function(e){function t(r,i){let s={range:r};return B.defined(i)&&(s.data=i),s}e.create=t;function n(r){let i=r;return B.defined(i)&&ht.is(i.range)&&(B.undefined(i.command)||qs.is(i.command))}e.is=n})(Gg||(Gg={}));var qg;(function(e){function t(r,i){return{tabSize:r,insertSpaces:i}}e.create=t;function n(r){let i=r;return B.defined(i)&&B.uinteger(i.tabSize)&&B.boolean(i.insertSpaces)}e.is=n})(qg||(qg={}));var Hg;(function(e){function t(r,i,s){return{range:r,target:i,data:s}}e.create=t;function n(r){let i=r;return B.defined(i)&&ht.is(i.range)&&(B.undefined(i.target)||B.string(i.target))}e.is=n})(Hg||(Hg={}));var Wg;(function(e){function t(r,i){return{range:r,parent:i}}e.create=t;function n(r){let i=r;return B.objectLiteral(i)&&ht.is(i.range)&&(i.parent===void 0||e.is(i.parent))}e.is=n})(Wg||(Wg={}));var zg;(function(e){e.namespace="namespace",e.type="type",e.class="class",e.enum="enum",e.interface="interface",e.struct="struct",e.typeParameter="typeParameter",e.parameter="parameter",e.variable="variable",e.property="property",e.enumMember="enumMember",e.event="event",e.function="function",e.method="method",e.macro="macro",e.keyword="keyword",e.modifier="modifier",e.comment="comment",e.string="string",e.number="number",e.regexp="regexp",e.operator="operator",e.decorator="decorator"})(zg||(zg={}));var Qg;(function(e){e.declaration="declaration",e.definition="definition",e.readonly="readonly",e.static="static",e.deprecated="deprecated",e.abstract="abstract",e.async="async",e.modification="modification",e.documentation="documentation",e.defaultLibrary="defaultLibrary"})(Qg||(Qg={}));var Yg;(function(e){function t(n){let r=n;return B.objectLiteral(r)&&(r.resultId===void 0||typeof r.resultId=="string")&&Array.isArray(r.data)&&(r.data.length===0||typeof r.data[0]=="number")}e.is=t})(Yg||(Yg={}));var Xg;(function(e){function t(r,i){return{range:r,text:i}}e.create=t;function n(r){let i=r;return i!=null&&ht.is(i.range)&&B.string(i.text)}e.is=n})(Xg||(Xg={}));var Jg;(function(e){function t(r,i,s){return{range:r,variableName:i,caseSensitiveLookup:s}}e.create=t;function n(r){let i=r;return i!=null&&ht.is(i.range)&&B.boolean(i.caseSensitiveLookup)&&(B.string(i.variableName)||i.variableName===void 0)}e.is=n})(Jg||(Jg={}));var Zg;(function(e){function t(r,i){return{range:r,expression:i}}e.create=t;function n(r){let i=r;return i!=null&&ht.is(i.range)&&(B.string(i.expression)||i.expression===void 0)}e.is=n})(Zg||(Zg={}));var Kg;(function(e){function t(r,i){return{frameId:r,stoppedLocation:i}}e.create=t;function n(r){let i=r;return B.defined(i)&&ht.is(r.stoppedLocation)}e.is=n})(Kg||(Kg={}));var _1;(function(e){e.Type=1,e.Parameter=2;function t(n){return n===1||n===2}e.is=t})(_1||(_1={}));var E1;(function(e){function t(r){return{value:r}}e.create=t;function n(r){let i=r;return B.objectLiteral(i)&&(i.tooltip===void 0||B.string(i.tooltip)||oa.is(i.tooltip))&&(i.location===void 0||el.is(i.location))&&(i.command===void 0||qs.is(i.command))}e.is=n})(E1||(E1={}));var e2;(function(e){function t(r,i,s){let o={position:r,label:i};return s!==void 0&&(o.kind=s),o}e.create=t;function n(r){let i=r;return B.objectLiteral(i)&&On.is(i.position)&&(B.string(i.label)||B.typedArray(i.label,E1.is))&&(i.kind===void 0||_1.is(i.kind))&&i.textEdits===void 0||B.typedArray(i.textEdits,Hs.is)&&(i.tooltip===void 0||B.string(i.tooltip)||oa.is(i.tooltip))&&(i.paddingLeft===void 0||B.boolean(i.paddingLeft))&&(i.paddingRight===void 0||B.boolean(i.paddingRight))}e.is=n})(e2||(e2={}));var t2;(function(e){function t(n){return{kind:"snippet",value:n}}e.createSnippet=t})(t2||(t2={}));var n2;(function(e){function t(n,r,i,s){return{insertText:n,filterText:r,range:i,command:s}}e.create=t})(n2||(n2={}));var r2;(function(e){function t(n){return{items:n}}e.create=t})(r2||(r2={}));var i2;(function(e){e.Invoked=0,e.Automatic=1})(i2||(i2={}));var s2;(function(e){function t(n,r){return{range:n,text:r}}e.create=t})(s2||(s2={}));var o2;(function(e){function t(n,r){return{triggerKind:n,selectedCompletionInfo:r}}e.create=t})(o2||(o2={}));var a2;(function(e){function t(n){let r=n;return B.objectLiteral(r)&&o1.is(r.uri)&&B.string(r.name)}e.is=t})(a2||(a2={}));var u2;(function(e){function t(s,o,a,u){return new D1(s,o,a,u)}e.create=t;function n(s){let o=s;return!!(B.defined(o)&&B.string(o.uri)&&(B.undefined(o.languageId)||B.string(o.languageId))&&B.uinteger(o.lineCount)&&B.func(o.getText)&&B.func(o.positionAt)&&B.func(o.offsetAt))}e.is=n;function r(s,o){let a=s.getText(),u=i(o,(c,f)=>{let d=c.range.start.line-f.range.start.line;return d===0?c.range.start.character-f.range.start.character:d}),l=a.length;for(let c=u.length-1;c>=0;c--){let f=u[c],d=s.offsetAt(f.range.start),m=s.offsetAt(f.range.end);if(m<=l)a=a.substring(0,d)+f.newText+a.substring(m,a.length);else throw new Error("Overlapping edit");l=d}return a}e.applyEdits=r;function i(s,o){if(s.length<=1)return s;let a=s.length/2|0,u=s.slice(0,a),l=s.slice(a);i(u,o),i(l,o);let c=0,f=0,d=0;for(;c<u.length&&f<l.length;)o(u[c],l[f])<=0?s[d++]=u[c++]:s[d++]=l[f++];for(;c<u.length;)s[d++]=u[c++];for(;f<l.length;)s[d++]=l[f++];return s}})(u2||(u2={}));var D1=class{constructor(t,n,r,i){this._uri=t,this._languageId=n,this._version=r,this._content=i,this._lineOffsets=void 0}get uri(){return this._uri}get languageId(){return this._languageId}get version(){return this._version}getText(t){if(t){let n=this.offsetAt(t.start),r=this.offsetAt(t.end);return this._content.substring(n,r)}return this._content}update(t,n){this._content=t.text,this._version=n,this._lineOffsets=void 0}getLineOffsets(){if(this._lineOffsets===void 0){let t=[],n=this._content,r=!0;for(let i=0;i<n.length;i++){r&&(t.push(i),r=!1);let s=n.charAt(i);r=s==="\r"||s===`
|
|
167
|
+
}`,ia=(e,t,n)=>{if(!t)return n??e;let r=Be(t);return we(r)||Le(r)||Pe(r)||xt(r)?e+Z7():n??e},a1=(e,t,n)=>{if(Pe(t)){let r=Be(t.ofType);return e+`[${ia("",r,"$1")}]`}return ia(e,t,n)},fg=e=>{let t=e.args.filter(n=>n.type.toString().endsWith("!"));if(t.length)return e.name+`(${t.map((n,r)=>`${n.name}: $${r+1}`)}) ${ia("",e.type,`
|
|
168
|
+
`)}`};var hg;(function(e){function t(n){return typeof n=="string"}e.is=t})(hg||(hg={}));var u1;(function(e){function t(n){return typeof n=="string"}e.is=t})(u1||(u1={}));var pg;(function(e){e.MIN_VALUE=-2147483648,e.MAX_VALUE=2147483647;function t(n){return typeof n=="number"&&e.MIN_VALUE<=n&&n<=e.MAX_VALUE}e.is=t})(pg||(pg={}));var Ku;(function(e){e.MIN_VALUE=0,e.MAX_VALUE=2147483647;function t(n){return typeof n=="number"&&e.MIN_VALUE<=n&&n<=e.MAX_VALUE}e.is=t})(Ku||(Ku={}));var Sn;(function(e){function t(r,i){return r===Number.MAX_VALUE&&(r=Ku.MAX_VALUE),i===Number.MAX_VALUE&&(i=Ku.MAX_VALUE),{line:r,character:i}}e.create=t;function n(r){let i=r;return B.objectLiteral(i)&&B.uinteger(i.line)&&B.uinteger(i.character)}e.is=n})(Sn||(Sn={}));var pt;(function(e){function t(r,i,s,o){if(B.uinteger(r)&&B.uinteger(i)&&B.uinteger(s)&&B.uinteger(o))return{start:Sn.create(r,i),end:Sn.create(s,o)};if(Sn.is(r)&&Sn.is(i))return{start:r,end:i};throw new Error(`Range#create called with invalid arguments[${r}, ${i}, ${s}, ${o}]`)}e.create=t;function n(r){let i=r;return B.objectLiteral(i)&&Sn.is(i.start)&&Sn.is(i.end)}e.is=n})(pt||(pt={}));var el;(function(e){function t(r,i){return{uri:r,range:i}}e.create=t;function n(r){let i=r;return B.objectLiteral(i)&&pt.is(i.range)&&(B.string(i.uri)||B.undefined(i.uri))}e.is=n})(el||(el={}));var dg;(function(e){function t(r,i,s,o){return{targetUri:r,targetRange:i,targetSelectionRange:s,originSelectionRange:o}}e.create=t;function n(r){let i=r;return B.objectLiteral(i)&&pt.is(i.targetRange)&&B.string(i.targetUri)&&pt.is(i.targetSelectionRange)&&(pt.is(i.originSelectionRange)||B.undefined(i.originSelectionRange))}e.is=n})(dg||(dg={}));var l1;(function(e){function t(r,i,s,o){return{red:r,green:i,blue:s,alpha:o}}e.create=t;function n(r){let i=r;return B.objectLiteral(i)&&B.numberRange(i.red,0,1)&&B.numberRange(i.green,0,1)&&B.numberRange(i.blue,0,1)&&B.numberRange(i.alpha,0,1)}e.is=n})(l1||(l1={}));var mg;(function(e){function t(r,i){return{range:r,color:i}}e.create=t;function n(r){let i=r;return B.objectLiteral(i)&&pt.is(i.range)&&l1.is(i.color)}e.is=n})(mg||(mg={}));var gg;(function(e){function t(r,i,s){return{label:r,textEdit:i,additionalTextEdits:s}}e.create=t;function n(r){let i=r;return B.objectLiteral(i)&&B.string(i.label)&&(B.undefined(i.textEdit)||$s.is(i))&&(B.undefined(i.additionalTextEdits)||B.typedArray(i.additionalTextEdits,$s.is))}e.is=n})(gg||(gg={}));var _g;(function(e){e.Comment="comment",e.Imports="imports",e.Region="region"})(_g||(_g={}));var Eg;(function(e){function t(r,i,s,o,a,u){let l={startLine:r,endLine:i};return B.defined(s)&&(l.startCharacter=s),B.defined(o)&&(l.endCharacter=o),B.defined(a)&&(l.kind=a),B.defined(u)&&(l.collapsedText=u),l}e.create=t;function n(r){let i=r;return B.objectLiteral(i)&&B.uinteger(i.startLine)&&B.uinteger(i.startLine)&&(B.undefined(i.startCharacter)||B.uinteger(i.startCharacter))&&(B.undefined(i.endCharacter)||B.uinteger(i.endCharacter))&&(B.undefined(i.kind)||B.string(i.kind))}e.is=n})(Eg||(Eg={}));var c1;(function(e){function t(r,i){return{location:r,message:i}}e.create=t;function n(r){let i=r;return B.defined(i)&&el.is(i.location)&&B.string(i.message)}e.is=n})(c1||(c1={}));var Dg;(function(e){e.Error=1,e.Warning=2,e.Information=3,e.Hint=4})(Dg||(Dg={}));var bg;(function(e){e.Unnecessary=1,e.Deprecated=2})(bg||(bg={}));var vg;(function(e){function t(n){let r=n;return B.objectLiteral(r)&&B.string(r.href)}e.is=t})(vg||(vg={}));var tl;(function(e){function t(r,i,s,o,a,u){let l={range:r,message:i};return B.defined(s)&&(l.severity=s),B.defined(o)&&(l.code=o),B.defined(a)&&(l.source=a),B.defined(u)&&(l.relatedInformation=u),l}e.create=t;function n(r){var i;let s=r;return B.defined(s)&&pt.is(s.range)&&B.string(s.message)&&(B.number(s.severity)||B.undefined(s.severity))&&(B.integer(s.code)||B.string(s.code)||B.undefined(s.code))&&(B.undefined(s.codeDescription)||B.string((i=s.codeDescription)===null||i===void 0?void 0:i.href))&&(B.string(s.source)||B.undefined(s.source))&&(B.undefined(s.relatedInformation)||B.typedArray(s.relatedInformation,c1.is))}e.is=n})(tl||(tl={}));var Vs;(function(e){function t(r,i,...s){let o={title:r,command:i};return B.defined(s)&&s.length>0&&(o.arguments=s),o}e.create=t;function n(r){let i=r;return B.defined(i)&&B.string(i.title)&&B.string(i.command)}e.is=n})(Vs||(Vs={}));var $s;(function(e){function t(s,o){return{range:s,newText:o}}e.replace=t;function n(s,o){return{range:{start:s,end:s},newText:o}}e.insert=n;function r(s){return{range:s,newText:""}}e.del=r;function i(s){let o=s;return B.objectLiteral(o)&&B.string(o.newText)&&pt.is(o.range)}e.is=i})($s||($s={}));var f1;(function(e){function t(r,i,s){let o={label:r};return i!==void 0&&(o.needsConfirmation=i),s!==void 0&&(o.description=s),o}e.create=t;function n(r){let i=r;return B.objectLiteral(i)&&B.string(i.label)&&(B.boolean(i.needsConfirmation)||i.needsConfirmation===void 0)&&(B.string(i.description)||i.description===void 0)}e.is=n})(f1||(f1={}));var js;(function(e){function t(n){let r=n;return B.string(r)}e.is=t})(js||(js={}));var Ng;(function(e){function t(s,o,a){return{range:s,newText:o,annotationId:a}}e.replace=t;function n(s,o,a){return{range:{start:s,end:s},newText:o,annotationId:a}}e.insert=n;function r(s,o){return{range:s,newText:"",annotationId:o}}e.del=r;function i(s){let o=s;return $s.is(o)&&(f1.is(o.annotationId)||js.is(o.annotationId))}e.is=i})(Ng||(Ng={}));var h1;(function(e){function t(r,i){return{textDocument:r,edits:i}}e.create=t;function n(r){let i=r;return B.defined(i)&&_1.is(i.textDocument)&&Array.isArray(i.edits)}e.is=n})(h1||(h1={}));var p1;(function(e){function t(r,i,s){let o={kind:"create",uri:r};return i!==void 0&&(i.overwrite!==void 0||i.ignoreIfExists!==void 0)&&(o.options=i),s!==void 0&&(o.annotationId=s),o}e.create=t;function n(r){let i=r;return i&&i.kind==="create"&&B.string(i.uri)&&(i.options===void 0||(i.options.overwrite===void 0||B.boolean(i.options.overwrite))&&(i.options.ignoreIfExists===void 0||B.boolean(i.options.ignoreIfExists)))&&(i.annotationId===void 0||js.is(i.annotationId))}e.is=n})(p1||(p1={}));var d1;(function(e){function t(r,i,s,o){let a={kind:"rename",oldUri:r,newUri:i};return s!==void 0&&(s.overwrite!==void 0||s.ignoreIfExists!==void 0)&&(a.options=s),o!==void 0&&(a.annotationId=o),a}e.create=t;function n(r){let i=r;return i&&i.kind==="rename"&&B.string(i.oldUri)&&B.string(i.newUri)&&(i.options===void 0||(i.options.overwrite===void 0||B.boolean(i.options.overwrite))&&(i.options.ignoreIfExists===void 0||B.boolean(i.options.ignoreIfExists)))&&(i.annotationId===void 0||js.is(i.annotationId))}e.is=n})(d1||(d1={}));var m1;(function(e){function t(r,i,s){let o={kind:"delete",uri:r};return i!==void 0&&(i.recursive!==void 0||i.ignoreIfNotExists!==void 0)&&(o.options=i),s!==void 0&&(o.annotationId=s),o}e.create=t;function n(r){let i=r;return i&&i.kind==="delete"&&B.string(i.uri)&&(i.options===void 0||(i.options.recursive===void 0||B.boolean(i.options.recursive))&&(i.options.ignoreIfNotExists===void 0||B.boolean(i.options.ignoreIfNotExists)))&&(i.annotationId===void 0||js.is(i.annotationId))}e.is=n})(m1||(m1={}));var g1;(function(e){function t(n){let r=n;return r&&(r.changes!==void 0||r.documentChanges!==void 0)&&(r.documentChanges===void 0||r.documentChanges.every(i=>B.string(i.kind)?p1.is(i)||d1.is(i)||m1.is(i):h1.is(i)))}e.is=t})(g1||(g1={}));var Tg;(function(e){function t(r){return{uri:r}}e.create=t;function n(r){let i=r;return B.defined(i)&&B.string(i.uri)}e.is=n})(Tg||(Tg={}));var yg;(function(e){function t(r,i){return{uri:r,version:i}}e.create=t;function n(r){let i=r;return B.defined(i)&&B.string(i.uri)&&B.integer(i.version)}e.is=n})(yg||(yg={}));var _1;(function(e){function t(r,i){return{uri:r,version:i}}e.create=t;function n(r){let i=r;return B.defined(i)&&B.string(i.uri)&&(i.version===null||B.integer(i.version))}e.is=n})(_1||(_1={}));var wg;(function(e){function t(r,i,s,o){return{uri:r,languageId:i,version:s,text:o}}e.create=t;function n(r){let i=r;return B.defined(i)&&B.string(i.uri)&&B.string(i.languageId)&&B.integer(i.version)&&B.string(i.text)}e.is=n})(wg||(wg={}));var E1;(function(e){e.PlainText="plaintext",e.Markdown="markdown";function t(n){let r=n;return r===e.PlainText||r===e.Markdown}e.is=t})(E1||(E1={}));var sa;(function(e){function t(n){let r=n;return B.objectLiteral(n)&&E1.is(r.kind)&&B.string(r.value)}e.is=t})(sa||(sa={}));var xg;(function(e){e.Text=1,e.Method=2,e.Function=3,e.Constructor=4,e.Field=5,e.Variable=6,e.Class=7,e.Interface=8,e.Module=9,e.Property=10,e.Unit=11,e.Value=12,e.Enum=13,e.Keyword=14,e.Snippet=15,e.Color=16,e.File=17,e.Reference=18,e.Folder=19,e.EnumMember=20,e.Constant=21,e.Struct=22,e.Event=23,e.Operator=24,e.TypeParameter=25})(xg||(xg={}));var Hr;(function(e){e.PlainText=1,e.Snippet=2})(Hr||(Hr={}));var Lg;(function(e){e.Deprecated=1})(Lg||(Lg={}));var Ag;(function(e){function t(r,i,s){return{newText:r,insert:i,replace:s}}e.create=t;function n(r){let i=r;return i&&B.string(i.newText)&&pt.is(i.insert)&&pt.is(i.replace)}e.is=n})(Ag||(Ag={}));var Wr;(function(e){e.asIs=1,e.adjustIndentation=2})(Wr||(Wr={}));var Fg;(function(e){function t(n){let r=n;return r&&(B.string(r.detail)||r.detail===void 0)&&(B.string(r.description)||r.description===void 0)}e.is=t})(Fg||(Fg={}));var Sg;(function(e){function t(n){return{label:n}}e.create=t})(Sg||(Sg={}));var Rg;(function(e){function t(n,r){return{items:n||[],isIncomplete:!!r}}e.create=t})(Rg||(Rg={}));var nl;(function(e){function t(r){return r.replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&")}e.fromPlainText=t;function n(r){let i=r;return B.string(i)||B.objectLiteral(i)&&B.string(i.language)&&B.string(i.value)}e.is=n})(nl||(nl={}));var Ig;(function(e){function t(n){let r=n;return!!r&&B.objectLiteral(r)&&(sa.is(r.contents)||nl.is(r.contents)||B.typedArray(r.contents,nl.is))&&(n.range===void 0||pt.is(n.range))}e.is=t})(Ig||(Ig={}));var Og;(function(e){function t(n,r){return r?{label:n,documentation:r}:{label:n}}e.create=t})(Og||(Og={}));var kg;(function(e){function t(n,r,...i){let s={label:n};return B.defined(r)&&(s.documentation=r),B.defined(i)?s.parameters=i:s.parameters=[],s}e.create=t})(kg||(kg={}));var Mg;(function(e){e.Text=1,e.Read=2,e.Write=3})(Mg||(Mg={}));var Ug;(function(e){function t(n,r){let i={range:n};return B.number(r)&&(i.kind=r),i}e.create=t})(Ug||(Ug={}));var Pg;(function(e){e.File=1,e.Module=2,e.Namespace=3,e.Package=4,e.Class=5,e.Method=6,e.Property=7,e.Field=8,e.Constructor=9,e.Enum=10,e.Interface=11,e.Function=12,e.Variable=13,e.Constant=14,e.String=15,e.Number=16,e.Boolean=17,e.Array=18,e.Object=19,e.Key=20,e.Null=21,e.EnumMember=22,e.Struct=23,e.Event=24,e.Operator=25,e.TypeParameter=26})(Pg||(Pg={}));var Bg;(function(e){e.Deprecated=1})(Bg||(Bg={}));var Cg;(function(e){function t(n,r,i,s,o){let a={name:n,kind:r,location:{uri:s,range:i}};return o&&(a.containerName=o),a}e.create=t})(Cg||(Cg={}));var Vg;(function(e){function t(n,r,i,s){return s!==void 0?{name:n,kind:r,location:{uri:i,range:s}}:{name:n,kind:r,location:{uri:i}}}e.create=t})(Vg||(Vg={}));var $g;(function(e){function t(r,i,s,o,a,u){let l={name:r,detail:i,kind:s,range:o,selectionRange:a};return u!==void 0&&(l.children=u),l}e.create=t;function n(r){let i=r;return i&&B.string(i.name)&&B.number(i.kind)&&pt.is(i.range)&&pt.is(i.selectionRange)&&(i.detail===void 0||B.string(i.detail))&&(i.deprecated===void 0||B.boolean(i.deprecated))&&(i.children===void 0||Array.isArray(i.children))&&(i.tags===void 0||Array.isArray(i.tags))}e.is=n})($g||($g={}));var jg;(function(e){e.Empty="",e.QuickFix="quickfix",e.Refactor="refactor",e.RefactorExtract="refactor.extract",e.RefactorInline="refactor.inline",e.RefactorRewrite="refactor.rewrite",e.Source="source",e.SourceOrganizeImports="source.organizeImports",e.SourceFixAll="source.fixAll"})(jg||(jg={}));var rl;(function(e){e.Invoked=1,e.Automatic=2})(rl||(rl={}));var Gg;(function(e){function t(r,i,s){let o={diagnostics:r};return i!=null&&(o.only=i),s!=null&&(o.triggerKind=s),o}e.create=t;function n(r){let i=r;return B.defined(i)&&B.typedArray(i.diagnostics,tl.is)&&(i.only===void 0||B.typedArray(i.only,B.string))&&(i.triggerKind===void 0||i.triggerKind===rl.Invoked||i.triggerKind===rl.Automatic)}e.is=n})(Gg||(Gg={}));var qg;(function(e){function t(r,i,s){let o={title:r},a=!0;return typeof i=="string"?(a=!1,o.kind=i):Vs.is(i)?o.command=i:o.edit=i,a&&s!==void 0&&(o.kind=s),o}e.create=t;function n(r){let i=r;return i&&B.string(i.title)&&(i.diagnostics===void 0||B.typedArray(i.diagnostics,tl.is))&&(i.kind===void 0||B.string(i.kind))&&(i.edit!==void 0||i.command!==void 0)&&(i.command===void 0||Vs.is(i.command))&&(i.isPreferred===void 0||B.boolean(i.isPreferred))&&(i.edit===void 0||g1.is(i.edit))}e.is=n})(qg||(qg={}));var Hg;(function(e){function t(r,i){let s={range:r};return B.defined(i)&&(s.data=i),s}e.create=t;function n(r){let i=r;return B.defined(i)&&pt.is(i.range)&&(B.undefined(i.command)||Vs.is(i.command))}e.is=n})(Hg||(Hg={}));var Wg;(function(e){function t(r,i){return{tabSize:r,insertSpaces:i}}e.create=t;function n(r){let i=r;return B.defined(i)&&B.uinteger(i.tabSize)&&B.boolean(i.insertSpaces)}e.is=n})(Wg||(Wg={}));var zg;(function(e){function t(r,i,s){return{range:r,target:i,data:s}}e.create=t;function n(r){let i=r;return B.defined(i)&&pt.is(i.range)&&(B.undefined(i.target)||B.string(i.target))}e.is=n})(zg||(zg={}));var Qg;(function(e){function t(r,i){return{range:r,parent:i}}e.create=t;function n(r){let i=r;return B.objectLiteral(i)&&pt.is(i.range)&&(i.parent===void 0||e.is(i.parent))}e.is=n})(Qg||(Qg={}));var Yg;(function(e){e.namespace="namespace",e.type="type",e.class="class",e.enum="enum",e.interface="interface",e.struct="struct",e.typeParameter="typeParameter",e.parameter="parameter",e.variable="variable",e.property="property",e.enumMember="enumMember",e.event="event",e.function="function",e.method="method",e.macro="macro",e.keyword="keyword",e.modifier="modifier",e.comment="comment",e.string="string",e.number="number",e.regexp="regexp",e.operator="operator",e.decorator="decorator"})(Yg||(Yg={}));var Xg;(function(e){e.declaration="declaration",e.definition="definition",e.readonly="readonly",e.static="static",e.deprecated="deprecated",e.abstract="abstract",e.async="async",e.modification="modification",e.documentation="documentation",e.defaultLibrary="defaultLibrary"})(Xg||(Xg={}));var Jg;(function(e){function t(n){let r=n;return B.objectLiteral(r)&&(r.resultId===void 0||typeof r.resultId=="string")&&Array.isArray(r.data)&&(r.data.length===0||typeof r.data[0]=="number")}e.is=t})(Jg||(Jg={}));var Zg;(function(e){function t(r,i){return{range:r,text:i}}e.create=t;function n(r){let i=r;return i!=null&&pt.is(i.range)&&B.string(i.text)}e.is=n})(Zg||(Zg={}));var Kg;(function(e){function t(r,i,s){return{range:r,variableName:i,caseSensitiveLookup:s}}e.create=t;function n(r){let i=r;return i!=null&&pt.is(i.range)&&B.boolean(i.caseSensitiveLookup)&&(B.string(i.variableName)||i.variableName===void 0)}e.is=n})(Kg||(Kg={}));var e2;(function(e){function t(r,i){return{range:r,expression:i}}e.create=t;function n(r){let i=r;return i!=null&&pt.is(i.range)&&(B.string(i.expression)||i.expression===void 0)}e.is=n})(e2||(e2={}));var t2;(function(e){function t(r,i){return{frameId:r,stoppedLocation:i}}e.create=t;function n(r){let i=r;return B.defined(i)&&pt.is(r.stoppedLocation)}e.is=n})(t2||(t2={}));var D1;(function(e){e.Type=1,e.Parameter=2;function t(n){return n===1||n===2}e.is=t})(D1||(D1={}));var b1;(function(e){function t(r){return{value:r}}e.create=t;function n(r){let i=r;return B.objectLiteral(i)&&(i.tooltip===void 0||B.string(i.tooltip)||sa.is(i.tooltip))&&(i.location===void 0||el.is(i.location))&&(i.command===void 0||Vs.is(i.command))}e.is=n})(b1||(b1={}));var n2;(function(e){function t(r,i,s){let o={position:r,label:i};return s!==void 0&&(o.kind=s),o}e.create=t;function n(r){let i=r;return B.objectLiteral(i)&&Sn.is(i.position)&&(B.string(i.label)||B.typedArray(i.label,b1.is))&&(i.kind===void 0||D1.is(i.kind))&&i.textEdits===void 0||B.typedArray(i.textEdits,$s.is)&&(i.tooltip===void 0||B.string(i.tooltip)||sa.is(i.tooltip))&&(i.paddingLeft===void 0||B.boolean(i.paddingLeft))&&(i.paddingRight===void 0||B.boolean(i.paddingRight))}e.is=n})(n2||(n2={}));var r2;(function(e){function t(n){return{kind:"snippet",value:n}}e.createSnippet=t})(r2||(r2={}));var i2;(function(e){function t(n,r,i,s){return{insertText:n,filterText:r,range:i,command:s}}e.create=t})(i2||(i2={}));var s2;(function(e){function t(n){return{items:n}}e.create=t})(s2||(s2={}));var o2;(function(e){e.Invoked=0,e.Automatic=1})(o2||(o2={}));var a2;(function(e){function t(n,r){return{range:n,text:r}}e.create=t})(a2||(a2={}));var u2;(function(e){function t(n,r){return{triggerKind:n,selectedCompletionInfo:r}}e.create=t})(u2||(u2={}));var l2;(function(e){function t(n){let r=n;return B.objectLiteral(r)&&u1.is(r.uri)&&B.string(r.name)}e.is=t})(l2||(l2={}));var c2;(function(e){function t(s,o,a,u){return new v1(s,o,a,u)}e.create=t;function n(s){let o=s;return!!(B.defined(o)&&B.string(o.uri)&&(B.undefined(o.languageId)||B.string(o.languageId))&&B.uinteger(o.lineCount)&&B.func(o.getText)&&B.func(o.positionAt)&&B.func(o.offsetAt))}e.is=n;function r(s,o){let a=s.getText(),u=i(o,(c,f)=>{let d=c.range.start.line-f.range.start.line;return d===0?c.range.start.character-f.range.start.character:d}),l=a.length;for(let c=u.length-1;c>=0;c--){let f=u[c],d=s.offsetAt(f.range.start),m=s.offsetAt(f.range.end);if(m<=l)a=a.substring(0,d)+f.newText+a.substring(m,a.length);else throw new Error("Overlapping edit");l=d}return a}e.applyEdits=r;function i(s,o){if(s.length<=1)return s;let a=s.length/2|0,u=s.slice(0,a),l=s.slice(a);i(u,o),i(l,o);let c=0,f=0,d=0;for(;c<u.length&&f<l.length;)o(u[c],l[f])<=0?s[d++]=u[c++]:s[d++]=l[f++];for(;c<u.length;)s[d++]=u[c++];for(;f<l.length;)s[d++]=l[f++];return s}})(c2||(c2={}));var v1=class{constructor(t,n,r,i){this._uri=t,this._languageId=n,this._version=r,this._content=i,this._lineOffsets=void 0}get uri(){return this._uri}get languageId(){return this._languageId}get version(){return this._version}getText(t){if(t){let n=this.offsetAt(t.start),r=this.offsetAt(t.end);return this._content.substring(n,r)}return this._content}update(t,n){this._content=t.text,this._version=n,this._lineOffsets=void 0}getLineOffsets(){if(this._lineOffsets===void 0){let t=[],n=this._content,r=!0;for(let i=0;i<n.length;i++){r&&(t.push(i),r=!1);let s=n.charAt(i);r=s==="\r"||s===`
|
|
169
169
|
`,s==="\r"&&i+1<n.length&&n.charAt(i+1)===`
|
|
170
|
-
`&&i++}r&&n.length>0&&t.push(n.length),this._lineOffsets=t}return this._lineOffsets}positionAt(t){t=Math.max(Math.min(t,this._content.length),0);let n=this.getLineOffsets(),r=0,i=n.length;if(i===0)return
|
|
171
|
-
`||e==="\r"||e==="\uFEFF"||e==="\xA0",sl={Name:/^[_A-Za-z][_0-9A-Za-z]*/,Punctuation:/^(?:!|\$|\(|\)|\.\.\.|:|=|&|@|\[|]|\{|\||\})/,Number:/^-?(?:0|(?:[1-9][0-9]*))(?:\.[0-9]*)?(?:[eE][+-]?[0-9]+)?/,String:/^(?:"""(?:\\"""|[^"]|"[^"]|""[^"])*(?:""")?|"(?:[^"\\]|\\(?:"|\/|\\|b|f|n|r|t|u[0-9a-fA-F]{4}))*"?)/,Comment:/^#.*/},ol={Document:[
|
|
172
|
-
`),r=
|
|
173
|
-
`:
|
|
174
|
-
$1`:
|
|
175
|
-
`))),l.insertText&&(l.insertTextFormat=
|
|
176
|
-
|
|
177
|
-
`)),
|
|
178
|
-
`),
|
|
179
|
-
`),
|
|
180
|
-
`),
|
|
170
|
+
`&&i++}r&&n.length>0&&t.push(n.length),this._lineOffsets=t}return this._lineOffsets}positionAt(t){t=Math.max(Math.min(t,this._content.length),0);let n=this.getLineOffsets(),r=0,i=n.length;if(i===0)return Sn.create(0,t);for(;r<i;){let o=Math.floor((r+i)/2);n[o]>t?i=o:r=o+1}let s=r-1;return Sn.create(s,t-n[s])}offsetAt(t){let n=this.getLineOffsets();if(t.line>=n.length)return this._content.length;if(t.line<0)return 0;let r=n[t.line],i=t.line+1<n.length?n[t.line+1]:this._content.length;return Math.max(Math.min(r+t.character,i),r)}get lineCount(){return this.getLineOffsets().length}},B;(function(e){let t=Object.prototype.toString;function n(m){return typeof m<"u"}e.defined=n;function r(m){return typeof m>"u"}e.undefined=r;function i(m){return m===!0||m===!1}e.boolean=i;function s(m){return t.call(m)==="[object String]"}e.string=s;function o(m){return t.call(m)==="[object Number]"}e.number=o;function a(m,g,_){return t.call(m)==="[object Number]"&&g<=m&&m<=_}e.numberRange=a;function u(m){return t.call(m)==="[object Number]"&&-2147483648<=m&&m<=2147483647}e.integer=u;function l(m){return t.call(m)==="[object Number]"&&0<=m&&m<=2147483647}e.uinteger=l;function c(m){return t.call(m)==="[object Function]"}e.func=c;function f(m){return m!==null&&typeof m=="object"}e.objectLiteral=f;function d(m,g){return Array.isArray(m)&&m.every(g)}e.typedArray=d})(B||(B={}));var Jn=class{constructor(t){this._start=0,this._pos=0,this.getStartOfToken=()=>this._start,this.getCurrentPosition=()=>this._pos,this.eol=()=>this._sourceText.length===this._pos,this.sol=()=>this._pos===0,this.peek=()=>this._sourceText.charAt(this._pos)||null,this.next=()=>{let n=this._sourceText.charAt(this._pos);return this._pos++,n},this.eat=n=>{if(this._testNextCharacter(n))return this._start=this._pos,this._pos++,this._sourceText.charAt(this._pos-1)},this.eatWhile=n=>{let r=this._testNextCharacter(n),i=!1;for(r&&(i=r,this._start=this._pos);r;)this._pos++,r=this._testNextCharacter(n),i=!0;return i},this.eatSpace=()=>this.eatWhile(/[\s\u00a0]/),this.skipToEnd=()=>{this._pos=this._sourceText.length},this.skipTo=n=>{this._pos=n},this.match=(n,r=!0,i=!1)=>{let s=null,o=null;return typeof n=="string"?(o=new RegExp(n,i?"i":"g").test(this._sourceText.slice(this._pos,this._pos+n.length)),s=n):n instanceof RegExp&&(o=this._sourceText.slice(this._pos).match(n),s=o?.[0]),o!=null&&(typeof n=="string"||o instanceof Array&&this._sourceText.startsWith(o[0],this._pos))?(r&&(this._start=this._pos,s&&s.length&&(this._pos+=s.length)),o):!1},this.backUp=n=>{this._pos-=n},this.column=()=>this._pos,this.indentation=()=>{let n=this._sourceText.match(/\s*/),r=0;if(n&&n.length!==0){let i=n[0],s=0;for(;i.length>s;)i.charCodeAt(s)===9?r+=2:r++,s++}return r},this.current=()=>this._sourceText.slice(this._start,this._pos),this._sourceText=t}_testNextCharacter(t){let n=this._sourceText.charAt(this._pos),r=!1;return typeof t=="string"?r=n===t:r=t instanceof RegExp?t.test(n):t(n),r}};function et(e){return{ofRule:e}}function Ie(e,t){return{ofRule:e,isList:!0,separator:t}}function N1(e,t){let n=e.match;return e.match=r=>{let i=!1;return n&&(i=n(r)),i&&t.every(s=>s.match&&!s.match(r))},e}function Gs(e,t){return{style:t,match:n=>n.kind===e}}function De(e,t){return{style:t||"punctuation",match:n=>n.kind==="Punctuation"&&n.value===e}}var il=e=>e===" "||e===" "||e===","||e===`
|
|
171
|
+
`||e==="\r"||e==="\uFEFF"||e==="\xA0",sl={Name:/^[_A-Za-z][_0-9A-Za-z]*/,Punctuation:/^(?:!|\$|\(|\)|\.\.\.|:|=|&|@|\[|]|\{|\||\})/,Number:/^-?(?:0|(?:[1-9][0-9]*))(?:\.[0-9]*)?(?:[eE][+-]?[0-9]+)?/,String:/^(?:"""(?:\\"""|[^"]|"[^"]|""[^"])*(?:""")?|"(?:[^"\\]|\\(?:"|\/|\\|b|f|n|r|t|u[0-9a-fA-F]{4}))*"?)/,Comment:/^#.*/},ol={Document:[Ie("Definition")],Definition(e){switch(e.value){case"{":return"ShortQuery";case"query":return"Query";case"mutation":return"Mutation";case"subscription":return"Subscription";case"fragment":return b.FRAGMENT_DEFINITION;case"schema":return"SchemaDef";case"scalar":return"ScalarDef";case"type":return"ObjectTypeDef";case"interface":return"InterfaceDef";case"union":return"UnionDef";case"enum":return"EnumDef";case"input":return"InputDef";case"extend":return"ExtendDef";case"directive":return"DirectiveDef"}},ShortQuery:["SelectionSet"],Query:[Rt("query"),et(Ye("def")),et("VariableDefinitions"),Ie("Directive"),"SelectionSet"],Mutation:[Rt("mutation"),et(Ye("def")),et("VariableDefinitions"),Ie("Directive"),"SelectionSet"],Subscription:[Rt("subscription"),et(Ye("def")),et("VariableDefinitions"),Ie("Directive"),"SelectionSet"],VariableDefinitions:[De("("),Ie("VariableDefinition"),De(")")],VariableDefinition:["Variable",De(":"),"Type",et("DefaultValue")],Variable:[De("$","variable"),Ye("variable")],DefaultValue:[De("="),"Value"],SelectionSet:[De("{"),Ie("Selection"),De("}")],Selection(e,t){return e.value==="..."?t.match(/[\s\u00a0,]*(on\b|@|{)/,!1)?"InlineFragment":"FragmentSpread":t.match(/[\s\u00a0,]*:/,!1)?"AliasedField":"Field"},AliasedField:[Ye("property"),De(":"),Ye("qualifier"),et("Arguments"),Ie("Directive"),et("SelectionSet")],Field:[Ye("property"),et("Arguments"),Ie("Directive"),et("SelectionSet")],Arguments:[De("("),Ie("Argument"),De(")")],Argument:[Ye("attribute"),De(":"),"Value"],FragmentSpread:[De("..."),Ye("def"),Ie("Directive")],InlineFragment:[De("..."),et("TypeCondition"),Ie("Directive"),"SelectionSet"],FragmentDefinition:[Rt("fragment"),et(N1(Ye("def"),[Rt("on")])),"TypeCondition",Ie("Directive"),"SelectionSet"],TypeCondition:[Rt("on"),"NamedType"],Value(e){switch(e.kind){case"Number":return"NumberValue";case"String":return"StringValue";case"Punctuation":switch(e.value){case"[":return"ListValue";case"{":return"ObjectValue";case"$":return"Variable";case"&":return"NamedType"}return null;case"Name":switch(e.value){case"true":case"false":return"BooleanValue"}return e.value==="null"?"NullValue":"EnumValue"}},NumberValue:[Gs("Number","number")],StringValue:[{style:"string",match:e=>e.kind==="String",update(e,t){t.value.startsWith('"""')&&(e.inBlockstring=!t.value.slice(3).endsWith('"""'))}}],BooleanValue:[Gs("Name","builtin")],NullValue:[Gs("Name","keyword")],EnumValue:[Ye("string-2")],ListValue:[De("["),Ie("Value"),De("]")],ObjectValue:[De("{"),Ie("ObjectField"),De("}")],ObjectField:[Ye("attribute"),De(":"),"Value"],Type(e){return e.value==="["?"ListType":"NonNullType"},ListType:[De("["),"Type",De("]"),et(De("!"))],NonNullType:["NamedType",et(De("!"))],NamedType:[K7("atom")],Directive:[De("@","meta"),Ye("meta"),et("Arguments")],DirectiveDef:[Rt("directive"),De("@","meta"),Ye("meta"),et("ArgumentsDef"),Rt("on"),Ie("DirectiveLocation",De("|"))],InterfaceDef:[Rt("interface"),Ye("atom"),et("Implements"),Ie("Directive"),De("{"),Ie("FieldDef"),De("}")],Implements:[Rt("implements"),Ie("NamedType",De("&"))],DirectiveLocation:[Ye("string-2")],SchemaDef:[Rt("schema"),Ie("Directive"),De("{"),Ie("OperationTypeDef"),De("}")],OperationTypeDef:[Ye("keyword"),De(":"),Ye("atom")],ScalarDef:[Rt("scalar"),Ye("atom"),Ie("Directive")],ObjectTypeDef:[Rt("type"),Ye("atom"),et("Implements"),Ie("Directive"),De("{"),Ie("FieldDef"),De("}")],FieldDef:[Ye("property"),et("ArgumentsDef"),De(":"),"Type",Ie("Directive")],ArgumentsDef:[De("("),Ie("InputValueDef"),De(")")],InputValueDef:[Ye("attribute"),De(":"),"Type",et("DefaultValue"),Ie("Directive")],UnionDef:[Rt("union"),Ye("atom"),Ie("Directive"),De("="),Ie("UnionMember",De("|"))],UnionMember:["NamedType"],EnumDef:[Rt("enum"),Ye("atom"),Ie("Directive"),De("{"),Ie("EnumValueDef"),De("}")],EnumValueDef:[Ye("string-2"),Ie("Directive")],InputDef:[Rt("input"),Ye("atom"),Ie("Directive"),De("{"),Ie("InputValueDef"),De("}")],ExtendDef:[Rt("extend"),"ExtensionDefinition"],ExtensionDefinition(e){switch(e.value){case"schema":return b.SCHEMA_EXTENSION;case"scalar":return b.SCALAR_TYPE_EXTENSION;case"type":return b.OBJECT_TYPE_EXTENSION;case"interface":return b.INTERFACE_TYPE_EXTENSION;case"union":return b.UNION_TYPE_EXTENSION;case"enum":return b.ENUM_TYPE_EXTENSION;case"input":return b.INPUT_OBJECT_TYPE_EXTENSION}},[b.SCHEMA_EXTENSION]:["SchemaDef"],[b.SCALAR_TYPE_EXTENSION]:["ScalarDef"],[b.OBJECT_TYPE_EXTENSION]:["ObjectTypeDef"],[b.INTERFACE_TYPE_EXTENSION]:["InterfaceDef"],[b.UNION_TYPE_EXTENSION]:["UnionDef"],[b.ENUM_TYPE_EXTENSION]:["EnumDef"],[b.INPUT_OBJECT_TYPE_EXTENSION]:["InputDef"]};function Rt(e){return{style:"keyword",match:t=>t.kind==="Name"&&t.value===e}}function Ye(e){return{style:e,match:t=>t.kind==="Name",update(t,n){t.name=n.value}}}function K7(e){return{style:e,match:t=>t.kind==="Name",update(t,n){var r;!((r=t.prevState)===null||r===void 0)&&r.prevState&&(t.name=n.value,t.prevState.prevState.type=n.value)}}}function vi(e={eatWhitespace:t=>t.eatWhile(il),lexRules:sl,parseRules:ol,editorConfig:{}}){return{startState(){let t={level:0,step:0,name:null,kind:null,type:null,rule:null,needsSeparator:!1,prevState:null};return oa(e.parseRules,t,b.DOCUMENT),t},token(t,n){return eb(t,n,e)}}}function eb(e,t,n){var r;if(t.inBlockstring)return e.match(/.*"""/)?(t.inBlockstring=!1,"string"):(e.skipToEnd(),"string");let{lexRules:i,parseRules:s,eatWhitespace:o,editorConfig:a}=n;if(t.rule&&t.rule.length===0?w1(t):t.needsAdvance&&(t.needsAdvance=!1,y1(t,!0)),e.sol()){let c=a?.tabSize||2;t.indentLevel=Math.floor(e.indentation()/c)}if(o(e))return"ws";let u=nb(i,e);if(!u)return e.match(/\S+/)||e.match(/\s/),oa(T1,t,"Invalid"),"invalidchar";if(u.kind==="Comment")return oa(T1,t,"Comment"),"comment";let l=f2({},t);if(u.kind==="Punctuation"){if(/^[{([]/.test(u.value))t.indentLevel!==void 0&&(t.levels=(t.levels||[]).concat(t.indentLevel+1));else if(/^[})\]]/.test(u.value)){let c=t.levels=(t.levels||[]).slice(0,-1);t.indentLevel&&c.length>0&&c.at(-1)<t.indentLevel&&(t.indentLevel=c.at(-1))}}for(;t.rule;){let c=typeof t.rule=="function"?t.step===0?t.rule(u,e):null:t.rule[t.step];if(t.needsSeparator&&(c=c?.separator),c){if(c.ofRule&&(c=c.ofRule),typeof c=="string"){oa(s,t,c);continue}if(!((r=c.match)===null||r===void 0)&&r.call(c,u))return c.update&&c.update(t,u),u.kind==="Punctuation"?y1(t,!0):t.needsAdvance=!0,c.style}tb(t)}return f2(t,l),oa(T1,t,"Invalid"),"invalidchar"}function f2(e,t){let n=Object.keys(t);for(let r=0;r<n.length;r++)e[n[r]]=t[n[r]];return e}var T1={Invalid:[],Comment:[]};function oa(e,t,n){if(!e[n])throw new TypeError("Unknown rule: "+n);t.prevState=Object.assign({},t),t.kind=n,t.name=null,t.type=null,t.rule=e[n],t.step=0,t.needsSeparator=!1}function w1(e){e.prevState&&(e.kind=e.prevState.kind,e.name=e.prevState.name,e.type=e.prevState.type,e.rule=e.prevState.rule,e.step=e.prevState.step,e.needsSeparator=e.prevState.needsSeparator,e.prevState=e.prevState.prevState)}function y1(e,t){var n;if(h2(e)&&e.rule){let r=e.rule[e.step];if(r.separator){let{separator:i}=r;if(e.needsSeparator=!e.needsSeparator,!e.needsSeparator&&i.ofRule)return}if(t)return}for(e.needsSeparator=!1,e.step++;e.rule&&!(Array.isArray(e.rule)&&e.step<e.rule.length);)w1(e),e.rule&&(h2(e)?!((n=e.rule)===null||n===void 0)&&n[e.step].separator&&(e.needsSeparator=!e.needsSeparator):(e.needsSeparator=!1,e.step++))}function h2(e){let t=Array.isArray(e.rule)&&typeof e.rule[e.step]!="string"&&e.rule[e.step];return t&&t.isList}function tb(e){for(;e.rule&&!(Array.isArray(e.rule)&&e.rule[e.step].ofRule);)w1(e);e.rule&&y1(e,!1)}function nb(e,t){let n=Object.keys(e);for(let r=0;r<n.length;r++){let i=t.match(e[n[r]]);if(i&&i instanceof Array)return{kind:n[r],value:i[0]}}}function qs(e,t){let n=e.split(`
|
|
172
|
+
`),r=vi(),i=r.startState(),s="",o=new Jn("");for(let a=0;a<n.length;a++){for(o=new Jn(n[a]);!o.eol()&&(s=r.token(o,i),t(o,i,s,a)!=="BREAK"););t(o,i,s,a),i.kind||(i=r.startState())}return{start:o.getStartOfToken(),end:o.getCurrentPosition(),string:o.current(),state:i,style:s}}var gn;(function(e){e.TYPE_SYSTEM="TYPE_SYSTEM",e.EXECUTABLE="EXECUTABLE",e.UNKNOWN="UNKNOWN"})(gn||(gn={}));var rb=[b.SCHEMA_DEFINITION,b.OPERATION_TYPE_DEFINITION,b.SCALAR_TYPE_DEFINITION,b.OBJECT_TYPE_DEFINITION,b.INTERFACE_TYPE_DEFINITION,b.UNION_TYPE_DEFINITION,b.ENUM_TYPE_DEFINITION,b.INPUT_OBJECT_TYPE_DEFINITION,b.DIRECTIVE_DEFINITION,b.SCHEMA_EXTENSION,b.SCALAR_TYPE_EXTENSION,b.OBJECT_TYPE_EXTENSION,b.INTERFACE_TYPE_EXTENSION,b.UNION_TYPE_EXTENSION,b.ENUM_TYPE_EXTENSION,b.INPUT_OBJECT_TYPE_EXTENSION],ib=e=>{let t=gn.UNKNOWN;if(e)try{Ft(xn(e),{enter(n){if(n.kind==="Document"){t=gn.EXECUTABLE;return}return rb.includes(n.kind)?(t=gn.TYPE_SYSTEM,_r):!1}})}catch{return t}return t};function p2(e,t){return t?.endsWith(".graphqls")?gn.TYPE_SYSTEM:ib(e)}function x1(e,t,n=0){let r=null,i=null,s=null,o=qs(e,(a,u,l,c)=>{if(!(c!==t.line||a.getCurrentPosition()+n<t.character+1))return r=l,i=Object.assign({},u),s=a.current(),"BREAK"});return{start:o.start,end:o.end,string:s||o.string,state:i||o.state,style:r||o.style}}function Hs(e,t,n,r,i){let s=r||x1(e,t,1);if(!s)return null;let o=s.state.kind==="Invalid"?s.state.prevState:s.state;if(!o)return null;let a=aa(n,s.state),u=i?.mode||p2(e,i?.uri);return{token:s,state:o,typeInfo:a,mode:u}}function al(e,t,n){return n===zn.name&&e.getQueryType()===t?zn:n===Qn.name&&e.getQueryType()===t?Qn:n===Yn.name&&Et(t)?Yn:"getFields"in t?t.getFields()[n]:null}function d2(e,t){let n=[],r=e;for(;r?.kind;)n.push(r),r=r.prevState;for(let i=n.length-1;i>=0;i--)t(n[i])}function ul(e){let t;return d2(e,n=>{switch(n.kind){case"Query":case"ShortQuery":case"Mutation":case"Subscription":case"FragmentDefinition":t=n;break}}),t}function aa(e,t){let n,r,i,s,o,a,u,l,c,f,d;return d2(t,m=>{var g;switch(m.kind){case X.QUERY:case"ShortQuery":f=e.getQueryType();break;case X.MUTATION:f=e.getMutationType();break;case X.SUBSCRIPTION:f=e.getSubscriptionType();break;case X.INLINE_FRAGMENT:case X.FRAGMENT_DEFINITION:m.type&&(f=e.getType(m.type));break;case X.FIELD:case X.ALIASED_FIELD:{!f||!m.name?o=null:(o=c?al(e,c,m.name):null,f=o?o.type:null);break}case X.SELECTION_SET:c=Be(f);break;case X.DIRECTIVE:i=m.name?e.getDirective(m.name):null;break;case X.INTERFACE_DEF:m.name&&(u=null,d=new Bt({name:m.name,interfaces:[],fields:{}}));break;case X.OBJECT_TYPE_DEF:m.name&&(d=null,u=new ct({name:m.name,interfaces:[],fields:{}}));break;case X.ARGUMENTS:{if(m.prevState)switch(m.prevState.kind){case X.FIELD:r=o&&o.args;break;case X.DIRECTIVE:r=i&&i.args;break;case X.ALIASED_FIELD:{let L=(g=m.prevState)===null||g===void 0?void 0:g.name;if(!L){r=null;break}let P=c?al(e,c,L):null;if(!P){r=null;break}r=P.args;break}default:r=null;break}else r=null;break}case X.ARGUMENT:if(r){for(let L=0;L<r.length;L++)if(r[L].name===m.name){n=r[L];break}}a=n?.type;break;case X.VARIABLE_DEFINITION:case X.VARIABLE:f=a;break;case X.ENUM_VALUE:let _=Be(a);s=_ instanceof St?_.getValues().find(L=>L.value===m.name):null;break;case X.LIST_VALUE:let T=jr(a);a=T instanceof He?T.ofType:null;break;case X.OBJECT_VALUE:let A=Be(a);l=A instanceof dn?A.getFields():null;break;case X.OBJECT_FIELD:let S=m.name&&l?l[m.name]:null;a=S?.type,o=S,f=o?o.type:null;break;case X.NAMED_TYPE:m.name&&(f=e.getType(m.name));break}}),{argDef:n,argDefs:r,directiveDef:i,enumValue:s,fieldDef:o,inputType:a,objectFieldDefs:l,parentType:c,type:f,interfaceDef:d,objectTypeDef:u}}var sb={ALIASED_FIELD:"AliasedField",ARGUMENTS:"Arguments",SHORT_QUERY:"ShortQuery",QUERY:"Query",MUTATION:"Mutation",SUBSCRIPTION:"Subscription",TYPE_CONDITION:"TypeCondition",INVALID:"Invalid",COMMENT:"Comment",SCHEMA_DEF:"SchemaDef",SCALAR_DEF:"ScalarDef",OBJECT_TYPE_DEF:"ObjectTypeDef",OBJECT_VALUE:"ObjectValue",LIST_VALUE:"ListValue",INTERFACE_DEF:"InterfaceDef",UNION_DEF:"UnionDef",ENUM_DEF:"EnumDef",ENUM_VALUE:"EnumValue",FIELD_DEF:"FieldDef",INPUT_DEF:"InputDef",INPUT_VALUE_DEF:"InputValueDef",ARGUMENTS_DEF:"ArgumentsDef",EXTEND_DEF:"ExtendDef",EXTENSION_DEFINITION:"ExtensionDefinition",DIRECTIVE_DEF:"DirectiveDef",IMPLEMENTS:"Implements",VARIABLE_DEFINITIONS:"VariableDefinitions",TYPE:"Type",VARIABLE:"Variable"},X=Object.assign(Object.assign({},b),sb);var Ae;(function(e){e.Text=1,e.Method=2,e.Function=3,e.Constructor=4,e.Field=5,e.Variable=6,e.Class=7,e.Interface=8,e.Module=9,e.Property=10,e.Unit=11,e.Value=12,e.Enum=13,e.Keyword=14,e.Snippet=15,e.Color=16,e.File=17,e.Reference=18,e.Folder=19,e.EnumMember=20,e.Constant=21,e.Struct=22,e.Event=23,e.Operator=24,e.TypeParameter=25})(Ae||(Ae={}));var ll={command:"editor.action.triggerSuggest",title:"Suggestions"},ob=e=>{let t=[];if(e)try{Ft(xn(e),{FragmentDefinition(n){t.push(n)}})}catch{return[]}return t};function L1(e,t,n,r,i,s){var o;let a=Object.assign(Object.assign({},s),{schema:e}),u=Hs(t,n,e,r,s);if(!u)return[];let{state:l,typeInfo:c,mode:f,token:d}=u,{kind:m,step:g,prevState:_}=l;if(m===X.DOCUMENT)return f===gn.TYPE_SYSTEM?ab(d):f===gn.EXECUTABLE?ub(d):lb(d);if(m===X.EXTEND_DEF)return cb(d);if(((o=_?.prevState)===null||o===void 0?void 0:o.kind)===X.EXTENSION_DEFINITION&&l.name)return Qe(d,[]);if(_?.kind===b.SCALAR_TYPE_EXTENSION)return Qe(d,Object.values(e.getTypeMap()).filter(Tt).map(A=>({label:A.name,kind:Ae.Function})));if(_?.kind===b.OBJECT_TYPE_EXTENSION)return Qe(d,Object.values(e.getTypeMap()).filter(A=>we(A)&&!A.name.startsWith("__")).map(A=>({label:A.name,kind:Ae.Function})));if(_?.kind===b.INTERFACE_TYPE_EXTENSION)return Qe(d,Object.values(e.getTypeMap()).filter(xe).map(A=>({label:A.name,kind:Ae.Function})));if(_?.kind===b.UNION_TYPE_EXTENSION)return Qe(d,Object.values(e.getTypeMap()).filter(ft).map(A=>({label:A.name,kind:Ae.Function})));if(_?.kind===b.ENUM_TYPE_EXTENSION)return Qe(d,Object.values(e.getTypeMap()).filter(A=>ze(A)&&!A.name.startsWith("__")).map(A=>({label:A.name,kind:Ae.Function})));if(_?.kind===b.INPUT_OBJECT_TYPE_EXTENSION)return Qe(d,Object.values(e.getTypeMap()).filter(Le).map(A=>({label:A.name,kind:Ae.Function})));if(m===X.IMPLEMENTS||m===X.NAMED_TYPE&&_?.kind===X.IMPLEMENTS)return pb(d,l,e,t,c);if(m===X.SELECTION_SET||m===X.FIELD||m===X.ALIASED_FIELD)return fb(d,c,a);if(m===X.ARGUMENTS||m===X.ARGUMENT&&g===0){let{argDefs:A}=c;if(A)return Qe(d,A.map(S=>{var L;return{label:S.name,insertText:a1(S.name+": ",S.type),insertTextMode:Wr.adjustIndentation,insertTextFormat:Hr.Snippet,command:ll,labelDetails:{detail:" "+String(S.type)},documentation:(L=S.description)!==null&&L!==void 0?L:void 0,kind:Ae.Variable,type:S.type}}))}if((m===X.OBJECT_VALUE||m===X.OBJECT_FIELD&&g===0)&&c.objectFieldDefs){let A=qr(c.objectFieldDefs),S=m===X.OBJECT_VALUE?Ae.Value:Ae.Field;return Qe(d,A.map(L=>{var P;return{label:L.name,detail:String(L.type),documentation:(P=L?.description)!==null&&P!==void 0?P:void 0,kind:S,type:L.type,insertText:a1(L.name+": ",L.type),insertTextMode:Wr.adjustIndentation,insertTextFormat:Hr.Snippet,command:ll}}))}if(m===X.ENUM_VALUE||m===X.LIST_VALUE&&g===1||m===X.OBJECT_FIELD&&g===2||m===X.ARGUMENT&&g===2)return hb(d,c,t,e);if(m===X.VARIABLE&&g===1){let A=Be(c.inputType),S=F1(t,e,d);return Qe(d,S.filter(L=>L.detail===A?.name))}if(m===X.TYPE_CONDITION&&g===1||m===X.NAMED_TYPE&&_!=null&&_.kind===X.TYPE_CONDITION)return db(d,c,e,m);if(m===X.FRAGMENT_SPREAD&&g===1)return mb(d,c,e,t,Array.isArray(i)?i:ob(i));let T=E2(l);return T.kind===X.FIELD_DEF?Qe(d,Object.values(e.getTypeMap()).filter(A=>an(A)&&!A.name.startsWith("__")).map(A=>({label:A.name,kind:Ae.Function,insertText:s?.fillLeafsOnComplete?A.name+`
|
|
173
|
+
`:A.name,insertTextMode:Wr.adjustIndentation}))):T.kind===X.INPUT_VALUE_DEF&&g===2?Qe(d,Object.values(e.getTypeMap()).filter(A=>ht(A)&&!A.name.startsWith("__")).map(A=>({label:A.name,kind:Ae.Function,insertText:s?.fillLeafsOnComplete?A.name+`
|
|
174
|
+
$1`:A.name,insertTextMode:Wr.adjustIndentation,insertTextFormat:Hr.Snippet}))):m===X.VARIABLE_DEFINITION&&g===2||m===X.LIST_TYPE&&g===1||m===X.NAMED_TYPE&&_&&(_.kind===X.VARIABLE_DEFINITION||_.kind===X.LIST_TYPE||_.kind===X.NON_NULL_TYPE)?_b(d,e,m):m===X.DIRECTIVE?Eb(d,l,e,m):m===X.DIRECTIVE_DEF?Db(d,l,e,m):[]}var A1=[{label:"type",kind:Ae.Function},{label:"interface",kind:Ae.Function},{label:"union",kind:Ae.Function},{label:"input",kind:Ae.Function},{label:"scalar",kind:Ae.Function},{label:"schema",kind:Ae.Function}],m2=[{label:"query",kind:Ae.Function},{label:"mutation",kind:Ae.Function},{label:"subscription",kind:Ae.Function},{label:"fragment",kind:Ae.Function},{label:"{",kind:Ae.Constructor}];function ab(e){return Qe(e,[{label:"extend",kind:Ae.Function},...A1])}function ub(e){return Qe(e,m2)}function lb(e){return Qe(e,[{label:"extend",kind:Ae.Function},...m2,...A1])}function cb(e){return Qe(e,A1)}function fb(e,t,n){var r;if(t.parentType){let{parentType:i}=t,s=[];return"getFields"in i&&(s=qr(i.getFields())),Et(i)&&s.push(Yn),i===((r=n?.schema)===null||r===void 0?void 0:r.getQueryType())&&s.push(zn,Qn),Qe(e,s.map((o,a)=>{var u;let l={sortText:String(a)+o.name,label:o.name,detail:String(o.type),documentation:(u=o.description)!==null&&u!==void 0?u:void 0,deprecated:!!o.deprecationReason,isDeprecated:!!o.deprecationReason,deprecationReason:o.deprecationReason,kind:Ae.Field,labelDetails:{detail:" "+o.type.toString()},type:o.type};return n?.fillLeafsOnComplete&&(l.insertText=fg(o),l.insertText||(l.insertText=ia(o.name,o.type,o.name+(e.state.needsAdvance?"":`
|
|
175
|
+
`))),l.insertText&&(l.insertTextFormat=Hr.Snippet,l.insertTextMode=Wr.adjustIndentation,l.command=ll)),l}))}return[]}function hb(e,t,n,r){let i=Be(t.inputType),s=F1(n,r,e).filter(o=>o.detail===i?.name);if(i instanceof St){let o=i.getValues();return Qe(e,o.map(a=>{var u;return{label:a.name,detail:String(i),documentation:(u=a.description)!==null&&u!==void 0?u:void 0,deprecated:!!a.deprecationReason,isDeprecated:!!a.deprecationReason,deprecationReason:a.deprecationReason,kind:Ae.EnumMember,type:i}}).concat(s))}return i===nt?Qe(e,s.concat([{label:"true",detail:String(nt),documentation:"Not false.",kind:Ae.Variable,type:nt},{label:"false",detail:String(nt),documentation:"Not true.",kind:Ae.Variable,type:nt}])):s}function pb(e,t,n,r,i){if(t.needsSeparator)return[];let s=n.getTypeMap(),o=qr(s).filter(xe),a=o.map(({name:m})=>m),u=new Set;qs(r,(m,g)=>{var _,T,A,S,L;if(g.name&&(g.kind===X.INTERFACE_DEF&&!a.includes(g.name)&&u.add(g.name),g.kind===X.NAMED_TYPE&&((_=g.prevState)===null||_===void 0?void 0:_.kind)===X.IMPLEMENTS)){if(i.interfaceDef){if((T=i.interfaceDef)===null||T===void 0?void 0:T.getInterfaces().find(({name:I})=>I===g.name))return;let q=n.getType(g.name),Y=(A=i.interfaceDef)===null||A===void 0?void 0:A.toConfig();i.interfaceDef=new Bt(Object.assign(Object.assign({},Y),{interfaces:[...Y.interfaces,q||new Bt({name:g.name,fields:{}})]}))}else if(i.objectTypeDef){if((S=i.objectTypeDef)===null||S===void 0?void 0:S.getInterfaces().find(({name:I})=>I===g.name))return;let q=n.getType(g.name),Y=(L=i.objectTypeDef)===null||L===void 0?void 0:L.toConfig();i.objectTypeDef=new ct(Object.assign(Object.assign({},Y),{interfaces:[...Y.interfaces,q||new Bt({name:g.name,fields:{}})]}))}}});let l=i.interfaceDef||i.objectTypeDef,f=(l?.getInterfaces()||[]).map(({name:m})=>m),d=o.concat([...u].map(m=>({name:m}))).filter(({name:m})=>m!==l?.name&&!f.includes(m));return Qe(e,d.map(m=>{let g={label:m.name,kind:Ae.Interface,type:m};return m?.description&&(g.documentation=m.description),g}))}function db(e,t,n,r){let i;if(t.parentType)if(xt(t.parentType)){let s=Fu(t.parentType),o=n.getPossibleTypes(s),a=Object.create(null);for(let u of o)for(let l of u.getInterfaces())a[l.name]=l;i=o.concat(qr(a))}else i=[t.parentType];else{let s=n.getTypeMap();i=qr(s).filter(o=>Et(o)&&!o.name.startsWith("__"))}return Qe(e,i.map(s=>{let o=Be(s);return{label:String(s),documentation:o?.description||"",kind:Ae.Field}}))}function mb(e,t,n,r,i){if(!r)return[];let s=n.getTypeMap(),o=ul(e.state),a=g2(r);i&&i.length>0&&a.push(...i);let u=a.filter(l=>s[l.typeCondition.name.value]&&!(o&&o.kind===X.FRAGMENT_DEFINITION&&o.name===l.name.value)&&Et(t.parentType)&&Et(s[l.typeCondition.name.value])&&ci(n,t.parentType,s[l.typeCondition.name.value]));return Qe(e,u.map(l=>({label:l.name.value,detail:String(s[l.typeCondition.name.value]),documentation:`fragment ${l.name.value} on ${l.typeCondition.name.value}`,labelDetails:{detail:`fragment ${l.name.value} on ${l.typeCondition.name.value}`},kind:Ae.Field,type:s[l.typeCondition.name.value]})))}var gb=(e,t)=>{var n,r,i,s,o,a,u,l,c,f;if(((n=e.prevState)===null||n===void 0?void 0:n.kind)===t)return e.prevState;if(((i=(r=e.prevState)===null||r===void 0?void 0:r.prevState)===null||i===void 0?void 0:i.kind)===t)return e.prevState.prevState;if(((a=(o=(s=e.prevState)===null||s===void 0?void 0:s.prevState)===null||o===void 0?void 0:o.prevState)===null||a===void 0?void 0:a.kind)===t)return e.prevState.prevState.prevState;if(((f=(c=(l=(u=e.prevState)===null||u===void 0?void 0:u.prevState)===null||l===void 0?void 0:l.prevState)===null||c===void 0?void 0:c.prevState)===null||f===void 0?void 0:f.kind)===t)return e.prevState.prevState.prevState.prevState};function F1(e,t,n){let r=null,i,s=Object.create({});return qs(e,(o,a)=>{var u;if(a?.kind===X.VARIABLE&&a.name&&(r=a.name),a?.kind===X.NAMED_TYPE&&r){let l=gb(a,X.TYPE);l?.type&&(i=t.getType(l?.type))}if(r&&i&&!s[r]){let l=n.string==="$"||((u=n?.state)===null||u===void 0?void 0:u.kind)==="Variable"?r:"$"+r;s[r]={detail:i.toString(),insertText:l,label:"$"+r,rawInsert:l,type:i,kind:Ae.Variable},r=null,i=null}}),qr(s)}function g2(e){let t=[];return qs(e,(n,r)=>{r.kind===X.FRAGMENT_DEFINITION&&r.name&&r.type&&t.push({kind:X.FRAGMENT_DEFINITION,name:{kind:b.NAME,value:r.name},selectionSet:{kind:X.SELECTION_SET,selections:[]},typeCondition:{kind:X.NAMED_TYPE,name:{kind:b.NAME,value:r.type}}})}),t}function _b(e,t,n){let r=t.getTypeMap(),i=qr(r).filter(ht);return Qe(e,i.map(s=>({label:s.name,documentation:s?.description||"",kind:Ae.Variable})))}function Eb(e,t,n,r){var i;if(!((i=t.prevState)===null||i===void 0)&&i.kind){let s=n.getDirectives().filter(o=>_2(t.prevState,o));return Qe(e,s.map(o=>({label:o.name,documentation:o?.description||"",kind:Ae.Function})))}return[]}function Db(e,t,n,r){let i=n.getDirectives().find(s=>s.name===t.name);return Qe(e,i?.args.map(s=>({label:s.name,documentation:s.description||"",kind:Ae.Field}))||[])}function _2(e,t){if(!e?.kind)return!1;let{kind:n,prevState:r}=e,{locations:i}=t;switch(n){case X.QUERY:return i.includes(se.QUERY);case X.MUTATION:return i.includes(se.MUTATION);case X.SUBSCRIPTION:return i.includes(se.SUBSCRIPTION);case X.FIELD:case X.ALIASED_FIELD:return i.includes(se.FIELD);case X.FRAGMENT_DEFINITION:return i.includes(se.FRAGMENT_DEFINITION);case X.FRAGMENT_SPREAD:return i.includes(se.FRAGMENT_SPREAD);case X.INLINE_FRAGMENT:return i.includes(se.INLINE_FRAGMENT);case X.SCHEMA_DEF:return i.includes(se.SCHEMA);case X.SCALAR_DEF:return i.includes(se.SCALAR);case X.OBJECT_TYPE_DEF:return i.includes(se.OBJECT);case X.FIELD_DEF:return i.includes(se.FIELD_DEFINITION);case X.INTERFACE_DEF:return i.includes(se.INTERFACE);case X.UNION_DEF:return i.includes(se.UNION);case X.ENUM_DEF:return i.includes(se.ENUM);case X.ENUM_VALUE:return i.includes(se.ENUM_VALUE);case X.INPUT_DEF:return i.includes(se.INPUT_OBJECT);case X.INPUT_VALUE_DEF:switch(r?.kind){case X.ARGUMENTS_DEF:return i.includes(se.ARGUMENT_DEFINITION);case X.INPUT_DEF:return i.includes(se.INPUT_FIELD_DEFINITION)}}return!1}function E2(e){return e.prevState&&e.kind&&[X.NAMED_TYPE,X.LIST_TYPE,X.TYPE,X.NON_NULL_TYPE].includes(e.kind)?E2(e.prevState):e}var bb=Xl(b2());function qt(e,t){e.push(t)}function S1(e,t){be(t)?(S1(e,t.ofType),qt(e,"!")):Pe(t)?(qt(e,"["),S1(e,t.ofType),qt(e,"]")):qt(e,t.name)}function fl(e,t,n){let r=[],i="type"in e?e.type:e;return"type"in e&&e.description&&(qt(r,e.description),qt(r,`
|
|
176
|
+
|
|
177
|
+
`)),qt(r,vb(i,t)),n?(qt(r,`
|
|
178
|
+
`),qt(r,n)):!Tt(i)&&"description"in i&&i.description?(qt(r,`
|
|
179
|
+
`),qt(r,i.description)):"ofType"in i&&!Tt(i.ofType)&&"description"in i.ofType&&i.ofType.description&&(qt(r,`
|
|
180
|
+
`),qt(r,i.ofType.description)),r.join("")}function vb(e,t){let n=[];return t&&qt(n,"```graphql\n"),S1(n,e),t&&qt(n,"\n```"),n.join("")}var Nb={Int:{type:"integer"},String:{type:"string"},Float:{type:"number"},ID:{type:"string"},Boolean:{type:"boolean"},DateTime:{type:"string"}},R1=class{constructor(){this.set=new Set}mark(t){return this.set.has(t)?!1:(this.set.add(t),!0)}};function I1(e,t){var n,r;let i=Object.create(null),s=Object.create(null),a="type"in e?e.type:e,u=be(a)?a.ofType:a,l=be(a);if(Tt(u))!((n=t?.scalarSchemas)===null||n===void 0)&&n[u.name]?i=JSON.parse(JSON.stringify(t.scalarSchemas[u.name])):i.type=["string","number","boolean","integer"],l||(Array.isArray(i.type)?i.type.push("null"):i.type?i.type=[i.type,"null"]:i.enum?i.enum.push(null):i.oneOf?i.oneOf.push({type:"null"}):i={oneOf:[i,{type:"null"}]});else if(ze(u))i.enum=u.getValues().map(f=>f.name),l||i.enum.push(null);else if(Pe(u)){l?i.type="array":i.type=["array","null"];let{definition:f,definitions:d}=I1(u.ofType,t);if(i.items=f,d)for(let m of Object.keys(d))s[m]=d[m]}else if(Le(u)&&(l?i.$ref=`#/definitions/${u.name}`:i.oneOf=[{$ref:`#/definitions/${u.name}`},{type:"null"}],!((r=t?.definitionMarker)===null||r===void 0)&&r.mark(u.name))){let f=u.getFields(),d={type:"object",properties:{},required:[]};d.description=fl(u),t?.useMarkdownDescription&&(d.markdownDescription=fl(u,!0));for(let m of Object.keys(f)){let g=f[m],{required:_,definition:T,definitions:A}=I1(g,t);if(d.properties[m]=T,_&&d.required.push(m),A)for(let[S,L]of Object.entries(A))s[S]=L}s[u.name]=d}"defaultValue"in e&&e.defaultValue!==void 0&&(i.default=e.defaultValue);let{description:c}=i;return i.description=fl(e,!1,c),t?.useMarkdownDescription&&(i.markdownDescription=fl(e,!0,c)),{required:l,definition:i,definitions:s}}function hl(e,t){var n;let r={$schema:"http://json-schema.org/draft-04/schema",type:"object",properties:{},required:[],additionalProperties:!1},i=Object.assign(Object.assign({},t),{definitionMarker:new R1,scalarSchemas:Object.assign(Object.assign({},Nb),t?.scalarSchemas)});if(e)for(let[s,o]of Object.entries(e)){let{definition:a,required:u,definitions:l}=I1(o,i);r.properties[s]=a,u&&((n=r.required)===null||n===void 0||n.push(s)),l&&(r.definitions=Object.assign(Object.assign({},r?.definitions),l))}return r}var Ni=class{constructor(t,n){this.containsPosition=r=>this.start.line===r.line?this.start.character<=r.character:this.end.line===r.line?this.end.character>=r.character:this.start.line<=r.line&&this.end.line>=r.line,this.start=t,this.end=n}setStart(t,n){this.start=new fn(t,n)}setEnd(t,n){this.end=new fn(t,n)}},fn=class{constructor(t,n){this.lessThanOrEqualTo=r=>this.line<r.line||this.line===r.line&&this.character<=r.character,this.line=t,this.character=n}setLine(t){this.line=t}setCharacter(t){this.character=t}};var Tb=[Ls,Ms,Us,Os,ks,Is,mi,di,Ei,Fs,_i,Di,Ps,ws,Ss];function pl(e,t,n,r,i){let s=Bs.filter(a=>!(a===As||a===ys||r&&a===xs));return n&&Array.prototype.push.apply(s,n),i&&Array.prototype.push.apply(s,Tb),Cs(e,t,s).filter(a=>{if(a.message.includes("Unknown directive")&&a.nodes){let u=a.nodes[0];if(u&&u.kind===b.DIRECTIVE){let l=u.name.value;if(l==="arguments"||l==="argumentDefinitions")return!1}}return!0})}function dl(e,t){let n=Object.create(null);for(let r of t.definitions)if(r.kind==="OperationDefinition"){let{variableDefinitions:i}=r;if(i)for(let{variable:s,type:o}of i){let a=rt(e,o);a?n[s.name.value]=a:o.kind===b.NAMED_TYPE&&o.name.value==="Float"&&(n[s.name.value]=Yo)}}return n}function ml(e,t){let n=t?dl(t,e):void 0,r=[];return Ft(e,{OperationDefinition(i){r.push(i)}}),{variableToType:n,operations:r}}var ua={Error:"Error",Warning:"Warning",Information:"Information",Hint:"Hint"},gl={[ua.Error]:1,[ua.Warning]:2,[ua.Information]:3,[ua.Hint]:4},_l=(e,t)=>{if(!e)throw new Error(t)};function k1(e,t=null,n,r,i){var s,o;let a=null,u="";i&&(u=typeof i=="string"?i:i.reduce((c,f)=>c+$e(f)+`
|
|
181
181
|
|
|
182
182
|
`,""));let l=u?`${e}
|
|
183
183
|
|
|
184
|
-
${u}`:e;try{a=
|
|
185
|
-
`);_l(i.length>=e.line,"Query text must have more lines than where the error happened");let s=null;for(let l=0;l<e.line;l++)for(s=new
|
|
184
|
+
${u}`:e;try{a=xn(l)}catch(c){if(c instanceof C){let f=El((o=(s=c.locations)===null||s===void 0?void 0:s[0])!==null&&o!==void 0?o:{line:0,column:0},l);return[{severity:gl.Error,message:c.message,source:"GraphQL: Syntax",range:f}]}throw c}return N2(a,t,n,r)}function N2(e,t=null,n,r){if(!t)return[];let i=pl(t,e,n,r).flatMap(o=>v2(o,gl.Error,"Validation")),s=Cs(t,e,[Ju]).flatMap(o=>v2(o,gl.Warning,"Deprecation"));return i.concat(s)}function v2(e,t,n){if(!e.nodes)return[];let r=[];for(let[i,s]of e.nodes.entries()){let o=s.kind!=="Variable"&&"name"in s&&s.name!==void 0?s.name:"variable"in s&&s.variable!==void 0?s.variable:s;if(o){_l(e.locations,"GraphQL validation error requires locations.");let a=e.locations[i],u=Rb(o),l=a.column+(u.end-u.start);r.push({source:`GraphQL: ${n}`,message:e.message,severity:t,range:new Ni(new fn(a.line-1,a.column-1),new fn(a.line-1,l))})}}return r}function El(e,t){let n=vi(),r=n.startState(),i=t.split(`
|
|
185
|
+
`);_l(i.length>=e.line,"Query text must have more lines than where the error happened");let s=null;for(let l=0;l<e.line;l++)for(s=new Jn(i[l]);!s.eol()&&n.token(s,r)!=="invalidchar";);_l(s,"Expected Parser stream to be available.");let o=e.line-1,a=s.getStartOfToken(),u=s.getCurrentPosition();return new Ni(new fn(o,a),new fn(o,u))}function Rb(e){let n=e.loc;return _l(n,"Expected ASTNode to have a location."),n}function Dl(e,t,n,r,i){let s=Object.assign(Object.assign({},i),{schema:e}),o=Hs(t,n,e,r);if(!o)return"";let{typeInfo:a,token:u}=o,{kind:l,step:c}=u.state;if(l==="Field"&&c===0&&a.fieldDef||l==="AliasedField"&&c===2&&a.fieldDef||l==="ObjectField"&&c===0&&a.fieldDef){let f=[];return Ws(f,s),Ib(f,a,s),zs(f,s),Qs(f,s,a.fieldDef),f.join("").trim()}if(l==="Directive"&&c===1&&a.directiveDef){let f=[];return Ws(f,s),y2(f,a,s),zs(f,s),Qs(f,s,a.directiveDef),f.join("").trim()}if(l==="Variable"&&a.type){let f=[];return Ws(f,s),Ti(f,a,s,a.type),zs(f,s),Qs(f,s,a.type),f.join("").trim()}if(l==="Argument"&&c===0&&a.argDef){let f=[];return Ws(f,s),Ob(f,a,s),zs(f,s),Qs(f,s,a.argDef),f.join("").trim()}if(l==="EnumValue"&&a.enumValue&&"description"in a.enumValue){let f=[];return Ws(f,s),kb(f,a,s),zs(f,s),Qs(f,s,a.enumValue),f.join("").trim()}if(l==="NamedType"&&a.type&&"description"in a.type){let f=[];return Ws(f,s),Ti(f,a,s,a.type),zs(f,s),Qs(f,s,a.type),f.join("").trim()}return""}function Ws(e,t){t.useMarkdown&&Dt(e,"```graphql\n")}function zs(e,t){t.useMarkdown&&Dt(e,"\n```")}function Ib(e,t,n){T2(e,t,n),w2(e,t,n,t.type)}function T2(e,t,n){if(!t.fieldDef)return;let r=t.fieldDef.name;r.slice(0,2)!=="__"&&(Ti(e,t,n,t.parentType),Dt(e,".")),Dt(e,r)}function y2(e,t,n){if(!t.directiveDef)return;let r="@"+t.directiveDef.name;Dt(e,r)}function Ob(e,t,n){if(t.directiveDef?y2(e,t,n):t.fieldDef&&T2(e,t,n),!t.argDef)return;let{name:r}=t.argDef;Dt(e,"("),Dt(e,r),w2(e,t,n,t.inputType),Dt(e,")")}function w2(e,t,n,r){Dt(e,": "),Ti(e,t,n,r)}function kb(e,t,n){if(!t.enumValue)return;let{name:r}=t.enumValue;Ti(e,t,n,t.inputType),Dt(e,"."),Dt(e,r)}function Ti(e,t,n,r){r&&(r instanceof ge?(Ti(e,t,n,r.ofType),Dt(e,"!")):r instanceof He?(Dt(e,"["),Ti(e,t,n,r.ofType),Dt(e,"]")):Dt(e,r.name))}function Qs(e,t,n){if(!n)return;let r=typeof n.description=="string"?n.description:null;r&&(Dt(e,`
|
|
186
186
|
|
|
187
|
-
`),
|
|
187
|
+
`),Dt(e,r)),Mb(e,t,n)}function Mb(e,t,n){if(!n)return;let r=n.deprecationReason;r&&(Dt(e,`
|
|
188
188
|
|
|
189
|
-
`),
|
|
190
|
-
${this._externalFragmentDefinitionsString}`)}this._externalFragmentDefinitionNodes=t}return this._externalFragmentDefinitionNodes}async updateSchemas(t){this._schemas=t,this._cacheSchemas()}updateSchema(t){let n=this._schemas.findIndex(r=>r.uri===t.uri);if(n<0){console.warn("updateSchema could not find a schema in your config by that URI",t.uri);return}this._schemas[n]=t,this._cacheSchema(t)}addSchema(t){this._schemas.push(t),this._cacheSchema(t)}parse(t,n){return this._parser(t,n||this._parseOptions)}getCompletion=(t,n,r)=>{let i=this.getSchemaForFile(t);return!n||!i?.schema?[]:
|
|
189
|
+
`),Dt(e,"Deprecated: "),Dt(e,r))}function Dt(e,t){e.push(t)}var Y2=Xl(Q2());var j1=(e,t)=>{let{schema:n,documentAST:r,introspectionJSON:i,introspectionJSONString:s,buildSchemaOptions:o,documentString:a}=e;if(n)return n;if(s){let u=JSON.parse(s);return na(u,o)}if(a&&t){let u=t(a);return ra(u,o)}if(i)return na(i,o);if(r)return ra(r,o);throw new Error("no schema supplied")};var p9=new Map,yl=class{_parser=xn;_schemas=[];_schemaCache=p9;_schemaLoader=j1;_parseOptions=void 0;_customValidationRules=void 0;_externalFragmentDefinitionNodes=null;_externalFragmentDefinitionsString=null;_completionSettings;constructor({parser:t,schemas:n,parseOptions:r,externalFragmentDefinitions:i,customValidationRules:s,fillLeafsOnComplete:o,completionSettings:a}){this._schemaLoader=j1,n&&(this._schemas=n,this._cacheSchemas()),t&&(this._parser=t),this._completionSettings={...a,fillLeafsOnComplete:a?.fillLeafsOnComplete??o},r&&(this._parseOptions=r),s&&(this._customValidationRules=s),i&&(Array.isArray(i)?this._externalFragmentDefinitionNodes=i:this._externalFragmentDefinitionsString=i)}_cacheSchemas(){for(let t of this._schemas)this._cacheSchema(t)}_cacheSchema(t){let n=this._schemaLoader(t,this.parse.bind(this));return this._schemaCache.set(t.uri,{...t,schema:n})}getSchemaForFile(t){if(!this._schemas?.length)return;if(this._schemas.length===1)return this._schemaCache.get(this._schemas[0].uri);let n=this._schemas.find(r=>r.fileMatch?r.fileMatch.some(i=>(0,Y2.default)(i)(t)):!1);if(n){let r=this._schemaCache.get(n.uri);return r||this._cacheSchema(n).get(n.uri)}}getExternalFragmentDefinitions(){if(!this._externalFragmentDefinitionNodes&&this._externalFragmentDefinitionsString){let t=[];try{Ft(this._parser(this._externalFragmentDefinitionsString),{FragmentDefinition(n){t.push(n)}})}catch{throw new Error(`Failed parsing externalFragmentDefinitions string:
|
|
190
|
+
${this._externalFragmentDefinitionsString}`)}this._externalFragmentDefinitionNodes=t}return this._externalFragmentDefinitionNodes}async updateSchemas(t){this._schemas=t,this._cacheSchemas()}updateSchema(t){let n=this._schemas.findIndex(r=>r.uri===t.uri);if(n<0){console.warn("updateSchema could not find a schema in your config by that URI",t.uri);return}this._schemas[n]=t,this._cacheSchema(t)}addSchema(t){this._schemas.push(t),this._cacheSchema(t)}parse(t,n){return this._parser(t,n||this._parseOptions)}getCompletion=(t,n,r)=>{let i=this.getSchemaForFile(t);return!n||n.length<1||!i?.schema?[]:L1(i.schema,n,r,void 0,this.getExternalFragmentDefinitions(),{uri:t,...this._completionSettings})};getDiagnostics=(t,n,r)=>{let i=this.getSchemaForFile(t);return!n||n.trim().length<2||!i?.schema?[]:k1(n,i.schema,r??this._customValidationRules,!1,this.getExternalFragmentDefinitions())};getHover=(t,n,r,i)=>{let s=this.getSchemaForFile(t);if(s&&n?.length>3)return Dl(s.schema,n,r,void 0,{useMarkdown:!0,...i})};getVariablesJSONSchema=(t,n,r)=>{let i=this.getSchemaForFile(t);if(i&&n.length>3)try{let s=this.parse(n),o=ml(s,i.schema);if(o?.variableToType)return hl(o.variableToType,{...r,scalarSchemas:i.customScalarSchemas})}catch{}return null}};function G1(e){return{startLineNumber:e.start.line+1,startColumn:e.start.character+1,endLineNumber:e.end.line+1,endColumn:e.end.character+1}}function q1(e){return new fn(e.lineNumber-1,e.column-1)}function X2(e,t){let n={label:e.label,insertText:e?.insertText,sortText:e.sortText,filterText:e?.filterText,documentation:e.documentation,detail:e.detail,range:t?G1(t):void 0,kind:e.kind};return e.insertTextFormat&&(n.insertTextFormat=e.insertTextFormat),e.insertTextMode&&(n.insertTextMode=e.insertTextMode),e.command&&(n.command={...e.command,id:e.command.command}),e.labelDetails&&(n.labelDetails=e.labelDetails),n}function J2(e){return{startLineNumber:e.range.start.line+1,endLineNumber:e.range.end.line+1,startColumn:e.range.start.character+1,endColumn:e.range.end.character,message:e.message,severity:5,code:e.code||void 0}}var Gl=class{_ctx;_languageService;_formattingOptions;constructor(t,n){this._ctx=t,this._languageService=new yl(n.languageConfig),this._formattingOptions=n.formattingOptions}async doValidation(t){try{let r=this._getTextModel(t)?.getValue();return r?this._languageService.getDiagnostics(t,r).map(J2):[]}catch(n){return console.error(n),[]}}async doComplete(t,n){try{let i=this._getTextModel(t)?.getValue();if(!i)return[];let s=q1(n);return this._languageService.getCompletion(t,i,s).map(a=>X2(a))}catch(r){return console.error(r),[]}}async doHover(t,n){try{let i=this._getTextModel(t)?.getValue();if(!i)return null;let s=q1(n);return{content:this._languageService.getHover(t,i,s),range:G1(El({column:s.character,line:s.line},i))}}catch(r){return console.error(r),null}}async doGetVariablesJSONSchema(t){let n=this._getTextModel(t),r=n?.getValue();if(!n||!r)return null;let i=this._languageService.getVariablesJSONSchema(t,r,{useMarkdownDescription:!0});return i?(i.$id="monaco://variables-schema.json",i.title="GraphQL Variables",i):null}async doFormat(t){let n=this._getTextModel(t),r=n?.getValue();if(!n||!r)return null;let i=await Promise.resolve().then(()=>(E4(),_4)),s=await Promise.resolve().then(()=>Xl(v4()));return i.format(r,{parser:"graphql",plugins:[s],...this._formattingOptions?.prettierConfig})}_getTextModel(t){let n=this._ctx.getMirrorModels();for(let r of n)if(r.uri.toString()===t)return r;return null}doUpdateSchema(t){return this._languageService.updateSchema(t)}doUpdateSchemas(t){return this._languageService.updateSchemas(t)}};self.onmessage=()=>{ym((e,t)=>new Gl(e,t))};})();
|