web.assets.vs.editor.editor.main.js Maven / Gradle / Ivy
/*!-----------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Version: 0.31.1(5a1b4999493d49c857497ad481d73a737439f305)
* Released under the MIT license
* https://github.com/microsoft/vscode/blob/main/LICENSE.txt
*-----------------------------------------------------------*/(function(){var ee=["require","exports","vs/base/common/lifecycle","vs/editor/common/core/range","vs/base/common/event","vs/nls","vs/nls!vs/editor/editor.main","vs/base/browser/dom","vs/base/common/strings","vs/platform/instantiation/common/instantiation","vs/base/common/async","vs/css!vs/editor/editor.main","vs/platform/theme/common/themeService","vs/base/common/errors","vs/editor/common/core/position","vs/editor/browser/editorExtensions","vs/platform/contextkey/common/contextkey","vs/base/common/platform","vs/editor/common/modes","vs/base/common/arrays","vs/base/common/types","vs/editor/common/core/selection","vs/platform/theme/common/colorRegistry","vs/base/common/cancellation","vs/editor/common/editorContextKeys","vs/base/common/uri","vs/platform/commands/common/commands","vs/base/common/codicons","vs/editor/browser/services/codeEditorService","vs/base/common/color","vs/editor/common/config/editorOptions","vs/editor/common/model/textModel","vs/base/browser/fastDomNode","vs/platform/registry/common/platform","vs/base/browser/browser","vs/platform/configuration/common/configuration","vs/platform/actions/common/actions","vs/base/common/objects","vs/editor/common/services/modeService","vs/editor/common/modes/languageConfigurationRegistry","vs/platform/notification/common/notification","vs/platform/keybinding/common/keybinding","vs/base/common/resources","vs/editor/common/services/modelService","vs/base/browser/ui/aria/aria","vs/editor/common/controller/cursorCommon","vs/base/browser/keyboardEvent","vs/base/common/map","vs/base/common/network","vs/editor/common/model","vs/editor/browser/view/viewPart","vs/base/common/actions","vs/editor/common/view/editorColorRegistry","vs/platform/opener/common/opener","vs/base/browser/ui/widget","vs/base/common/iterator","vs/base/common/keyCodes","vs/base/browser/mouseEvent","vs/base/browser/touch","vs/editor/common/core/editOperation","vs/platform/accessibility/common/accessibility","vs/platform/progress/common/progress","vs/editor/browser/config/configuration","vs/base/browser/ui/scrollbar/scrollableElement","vs/editor/common/viewModel/viewModel","vs/editor/common/standaloneStrings","vs/editor/common/services/resolverService","vs/editor/browser/core/editorState","vs/platform/theme/common/iconRegistry","vs/base/common/filters","vs/base/common/htmlContent","vs/platform/instantiation/common/extensions","vs/editor/common/services/editorWorkerService","vs/platform/contextview/browser/contextView","vs/platform/log/common/log","vs/platform/quickinput/common/quickInput","vs/platform/storage/common/storage","vs/base/common/linkedList","vs/base/common/path","vs/base/common/severity","vs/editor/common/modes/nullMode","vs/base/browser/ui/actionbar/actionbar","vs/platform/keybinding/common/keybindingsRegistry","vs/platform/telemetry/common/telemetry","vs/base/common/functional","vs/base/common/stopwatch","vs/base/browser/event","vs/editor/common/core/stringBuilder","vs/editor/common/model/bracketPairs/bracketPairsTree/length","vs/editor/common/model/textModelEvents","vs/editor/common/core/lineTokens","vs/platform/clipboard/common/clipboardService","vs/platform/markers/common/markers","vs/editor/contrib/suggest/suggest","vs/base/common/decorators","vs/base/common/keybindings","vs/base/browser/globalMouseMoveMonitor","vs/editor/common/core/characterClassifier","vs/editor/common/commands/replaceCommand","vs/editor/browser/view/dynamicViewOverlay","vs/platform/configuration/common/configurationRegistry","vs/editor/browser/core/markdownRenderer","vs/platform/quickinput/common/quickAccess","vs/base/browser/ui/tree/tree","vs/base/common/buffer","vs/base/common/numbers","vs/base/common/hash","vs/base/common/iconLabels","vs/base/browser/ui/iconLabel/iconLabels","vs/base/common/mime","vs/base/browser/ui/sash/sash","vs/base/browser/ui/list/listWidget","vs/editor/common/controller/wordCharacterClassifier","vs/editor/browser/editorBrowser","vs/editor/common/model/bracketPairs/bracketPairsTree/smallImmutableSet","vs/editor/common/modes/languageConfiguration","vs/editor/common/view/renderingContext","vs/editor/common/viewLayout/viewLineRenderer","vs/editor/common/viewModel/viewEventHandler","vs/editor/contrib/snippet/snippetParser","vs/base/browser/ui/actionbar/actionViewItems","vs/editor/contrib/gotoSymbol/referencesModel","vs/editor/common/model/tokensStore","vs/editor/standalone/common/standaloneThemeService","vs/platform/dialogs/common/dialogs","vs/platform/label/common/label","vs/editor/common/modes/modesRegistry","vs/editor/browser/editorDom","vs/platform/theme/common/styler","vs/platform/theme/common/theme","vs/platform/undoRedo/common/undoRedo","vs/editor/contrib/peekView/peekView","vs/base/common/idGenerator","vs/base/common/range","vs/base/common/scrollable","vs/base/common/diff/diff","vs/base/common/uint","vs/base/browser/ui/codicons/codiconStyles","vs/base/browser/ui/mouseCursor/mouseCursor","vs/css!vs/base/parts/quickinput/browser/media/quickInput","vs/editor/common/config/editorZoom","vs/editor/common/controller/cursorColumns","vs/editor/common/core/token","vs/editor/common/editorCommon","vs/editor/common/model/bracketPairs/bracketPairsTree/ast","vs/editor/common/model/textModelSearch","vs/editor/common/model/wordHelper","vs/editor/common/modes/supports","vs/editor/common/viewLayout/lineDecorations","vs/editor/contrib/codeAction/types","vs/editor/browser/services/bulkEditService","vs/editor/common/modes/languageFeatureRegistry","vs/editor/common/services/textResourceConfigurationService","vs/platform/instantiation/common/serviceCollection","vs/platform/layout/browser/layoutService","vs/editor/contrib/codeAction/codeAction","vs/editor/contrib/message/messageController","vs/platform/list/browser/listService","vs/editor/common/controller/cursorWordOperations","vs/editor/browser/controller/coreCommands","vs/editor/browser/widget/codeEditorWidget","vs/editor/browser/widget/embeddedCodeEditorWidget","vs/editor/contrib/find/findModel","vs/base/common/lazy","vs/base/browser/canIUse","vs/base/common/extpath","vs/base/browser/ui/tree/indexTreeModel","vs/base/browser/ui/tree/objectTreeModel","vs/base/browser/formattedTextRenderer","vs/base/browser/ui/scrollbar/scrollbarArrow","vs/base/common/labels","vs/base/browser/dnd","vs/base/browser/ui/checkbox/checkbox","vs/base/browser/ui/list/listView","vs/editor/common/config/fontInfo","vs/editor/browser/controller/textAreaInput","vs/editor/browser/view/viewLayer","vs/editor/common/modes/supports/richEditBrackets","vs/editor/common/standalone/standaloneEnums","vs/editor/common/view/viewEvents","vs/editor/browser/viewParts/glyphMargin/glyphMargin","vs/editor/common/viewModel/viewModelEventDispatcher","vs/editor/contrib/folding/foldingRanges","vs/editor/contrib/inlineCompletions/ghostText","vs/editor/contrib/inlineCompletions/inlineCompletionToGhostText","vs/base/browser/ui/iconLabel/iconLabel","vs/base/browser/ui/tree/abstractTree","vs/base/browser/ui/inputbox/inputBox","vs/base/common/keybindingLabels","vs/editor/common/services/markersDecorationService","vs/editor/contrib/parameterHints/provideSignatureHelp","vs/platform/jsonschemas/common/jsonContributionRegistry","vs/editor/common/config/commonEditorConfig","vs/platform/actions/browser/menuEntryActionViewItem","vs/editor/common/commands/shiftCommand","vs/editor/browser/controller/mouseTarget","vs/editor/common/controller/cursorMoveOperations","vs/editor/common/controller/cursorDeleteOperations","vs/editor/common/controller/cursorTypeOperations","vs/editor/common/controller/cursorMoveCommands","vs/editor/contrib/inlineCompletions/inlineCompletionsModel","vs/platform/workspace/common/workspace","vs/editor/standalone/browser/simpleServices","vs/editor/contrib/snippet/snippetController2","vs/base/browser/iframe","vs/base/browser/ui/scrollbar/scrollbarState","vs/base/common/assert","vs/base/common/collections","vs/base/common/glob","vs/base/common/marshalling","vs/base/browser/ui/highlightedlabel/highlightedLabel","vs/base/browser/ui/scrollbar/abstractScrollbar","vs/base/common/worker/simpleWorker","vs/base/parts/quickinput/common/quickInput","vs/css!vs/base/browser/ui/actionbar/actionbar","vs/base/browser/ui/contextview/contextview","vs/base/browser/ui/countBadge/countBadge","vs/css!vs/base/browser/ui/dropdown/dropdown","vs/css!vs/base/browser/ui/findinput/findInput","vs/css!vs/base/browser/ui/list/list","vs/base/browser/ui/hover/hoverWidget","vs/base/browser/ui/splitview/splitview","vs/base/parts/quickinput/browser/quickInputUtils","vs/editor/browser/config/elementSizeObserver","vs/editor/browser/viewParts/minimap/minimapCharSheet","vs/editor/browser/controller/textAreaState","vs/editor/browser/widget/diffNavigator","vs/editor/common/core/rgba","vs/editor/common/editorAction","vs/editor/common/model/bracketPairs/bracketPairsTree/beforeEditPositionMapper","vs/editor/common/model/textChange","vs/editor/common/model/pieceTreeTextBuffer/pieceTreeBase","vs/editor/common/modes/unicodeTextModelHighlighter","vs/editor/common/standalone/standaloneBase","vs/editor/common/view/overviewZoneManager","vs/editor/common/viewModel/modelLineProjectionData","vs/editor/common/viewModel/prefixSumComputer","vs/editor/browser/viewParts/margin/margin","vs/editor/contrib/folding/syntaxRangeProvider","vs/editor/contrib/format/formattingEdit","vs/editor/contrib/gotoSymbol/link/clickLinkGesture","vs/editor/contrib/hover/hoverOperation","vs/editor/contrib/hover/hoverTypes","vs/editor/contrib/indentation/indentUtils","vs/editor/contrib/inlineCompletions/consts","vs/editor/contrib/inlineCompletions/utils","vs/editor/contrib/smartSelect/bracketSelections","vs/editor/contrib/suggest/resizable","vs/editor/standalone/common/monarch/monarchCommon","vs/base/browser/ui/findinput/findInputCheckboxes","vs/base/browser/ui/tree/objectTree","vs/editor/common/viewModel/viewModelDecorations","vs/editor/common/model/editStack","vs/platform/files/common/files","vs/platform/instantiation/common/descriptors","vs/editor/common/model/bracketPairs/bracketPairsTree/tokenizer","vs/editor/common/model/pieceTreeTextBuffer/pieceTreeTextBuffer","vs/editor/common/modes/textToHtmlTokenizer","vs/editor/common/viewModel/minimapTokensColorTracker","vs/editor/contrib/documentSymbols/outlineModel","vs/editor/standalone/common/monarch/monarchLexer","vs/editor/common/services/getSemanticTokens","vs/editor/contrib/codelens/codelens","vs/editor/contrib/colorPicker/color","vs/editor/contrib/comment/blockCommentCommand","vs/platform/contextkey/common/contextkeys","vs/platform/keybinding/common/keybindingResolver","vs/platform/keybinding/common/resolvedKeybindingItem","vs/editor/common/services/editorWorkerServiceImpl","vs/editor/contrib/suggest/suggestWidgetDetails","vs/editor/browser/viewParts/lines/viewLine","vs/editor/common/services/semanticTokensProviderStyling","vs/editor/browser/viewParts/lineNumbers/lineNumbers","vs/editor/contrib/quickAccess/editorNavigationQuickAccess","vs/editor/contrib/symbolIcons/symbolIcons","vs/editor/standalone/browser/standaloneCodeServiceImpl","vs/editor/contrib/format/format","vs/editor/contrib/gotoSymbol/goToSymbol","vs/editor/contrib/hover/markdownHoverParticipant","vs/editor/contrib/toggleTabFocusMode/toggleTabFocusMode","vs/editor/common/controller/cursorAtomicMoveOperations","vs/editor/browser/view/viewUserInputEvents","vs/editor/common/controller/cursor","vs/editor/common/services/modelServiceImpl","vs/editor/browser/widget/diffEditorWidget","vs/editor/contrib/codeAction/codeActionCommands","vs/editor/contrib/colorPicker/colorDetector","vs/editor/contrib/find/findController","vs/editor/contrib/wordOperations/wordOperations","vs/editor/contrib/gotoError/gotoError","vs/editor/contrib/gotoSymbol/peek/referencesController","vs/editor/contrib/gotoSymbol/goToCommands","vs/editor/contrib/gotoSymbol/link/goToDefinitionAtPosition","vs/platform/workspace/common/workspaceTrust","vs/editor/contrib/unicodeHighlighter/unicodeHighlighter","vs/editor/standalone/browser/standaloneServices","vs/editor/contrib/snippet/snippetSession","vs/editor/contrib/suggest/suggestController","vs/editor/contrib/inlineCompletions/ghostTextController","vs/editor/contrib/hover/hover","vs/base/browser/ui/list/list","vs/base/browser/ui/list/splice","vs/base/common/diff/diffChange","vs/base/common/navigator","vs/base/common/history","vs/base/common/process","vs/base/browser/ui/list/rangeMap","vs/base/browser/ui/scrollbar/scrollbarVisibilityController","vs/base/common/comparers","vs/base/browser/ui/tree/compressedObjectTreeModel","vs/base/common/fuzzyScorer","vs/base/common/search","vs/base/browser/ui/list/rowCache","vs/base/browser/ui/scrollbar/horizontalScrollbar","vs/base/browser/ui/scrollbar/verticalScrollbar","vs/base/browser/markdownRenderer","vs/base/common/uuid","vs/base/parts/storage/common/storage","vs/base/worker/defaultWorkerFactory","vs/css!vs/base/browser/ui/aria/aria","vs/css!vs/base/browser/ui/button/button","vs/base/browser/ui/button/button","vs/css!vs/base/browser/ui/checkbox/checkbox","vs/css!vs/base/browser/ui/codicons/codicon/codicon","vs/css!vs/base/browser/ui/codicons/codicon/codicon-modifiers","vs/css!vs/base/browser/ui/contextview/contextview","vs/css!vs/base/browser/ui/countBadge/countBadge","vs/css!vs/base/browser/ui/hover/hover","vs/css!vs/base/browser/ui/iconLabel/iconlabel","vs/css!vs/base/browser/ui/inputbox/inputBox","vs/css!vs/base/browser/ui/keybindingLabel/keybindingLabel","vs/css!vs/base/browser/ui/mouseCursor/mouseCursor","vs/css!vs/base/browser/ui/progressbar/progressbar","vs/base/browser/ui/progressbar/progressbar","vs/css!vs/base/browser/ui/sash/sash","vs/css!vs/base/browser/ui/scrollbar/media/scrollbars","vs/base/browser/ui/list/listPaging","vs/css!vs/base/browser/ui/splitview/splitview","vs/css!vs/base/browser/ui/table/table","vs/base/browser/ui/table/tableWidget","vs/css!vs/base/browser/ui/tree/media/tree","vs/css!vs/editor/browser/controller/textAreaHandler","vs/css!vs/editor/browser/viewParts/currentLineHighlight/currentLineHighlight","vs/css!vs/editor/browser/viewParts/decorations/decorations","vs/css!vs/editor/browser/viewParts/glyphMargin/glyphMargin","vs/css!vs/editor/browser/viewParts/indentGuides/indentGuides","vs/css!vs/editor/browser/viewParts/lineNumbers/lineNumbers","vs/css!vs/editor/browser/viewParts/lines/viewLines","vs/css!vs/editor/browser/viewParts/linesDecorations/linesDecorations","vs/css!vs/editor/browser/viewParts/marginDecorations/marginDecorations","vs/css!vs/editor/browser/viewParts/minimap/minimap","vs/css!vs/editor/browser/viewParts/overlayWidgets/overlayWidgets","vs/css!vs/editor/browser/viewParts/rulers/rulers","vs/css!vs/editor/browser/viewParts/scrollDecoration/scrollDecoration","vs/css!vs/editor/browser/viewParts/selections/selections","vs/css!vs/editor/browser/viewParts/viewCursors/viewCursors","vs/css!vs/editor/browser/widget/media/diffEditor","vs/css!vs/editor/browser/widget/media/diffReview","vs/css!vs/editor/browser/widget/media/editor","vs/css!vs/editor/contrib/anchorSelect/anchorSelect","vs/css!vs/editor/contrib/bracketMatching/bracketMatching","vs/css!vs/editor/contrib/codeAction/lightBulbWidget","vs/css!vs/editor/contrib/codelens/codelensWidget","vs/css!vs/editor/contrib/colorPicker/colorPicker","vs/css!vs/editor/contrib/dnd/dnd","vs/css!vs/editor/contrib/find/findWidget","vs/css!vs/editor/contrib/folding/folding","vs/css!vs/editor/contrib/gotoError/media/gotoErrorWidget","vs/css!vs/editor/contrib/gotoSymbol/link/goToDefinitionAtPosition","vs/css!vs/editor/contrib/gotoSymbol/peek/referencesWidget","vs/css!vs/editor/contrib/inlineCompletions/ghostText","vs/css!vs/editor/contrib/links/links","vs/css!vs/editor/contrib/message/messageController","vs/css!vs/editor/contrib/parameterHints/parameterHints","vs/css!vs/editor/contrib/peekView/media/peekViewWidget","vs/css!vs/editor/contrib/rename/renameInputField","vs/css!vs/editor/contrib/snippet/snippetSession","vs/css!vs/editor/contrib/suggest/media/suggest","vs/css!vs/editor/contrib/unicodeHighlighter/bannerController","vs/css!vs/editor/contrib/unicodeHighlighter/unicodeHighlighter","vs/css!vs/editor/contrib/zoneWidget/zoneWidget","vs/css!vs/editor/standalone/browser/accessibilityHelp/accessibilityHelp","vs/css!vs/editor/standalone/browser/iPadShowKeyboard/iPadShowKeyboard","vs/css!vs/editor/standalone/browser/inspectTokens/inspectTokens","vs/css!vs/editor/standalone/browser/quickInput/standaloneQuickInput","vs/css!vs/editor/standalone/browser/standalone-tokens","vs/css!vs/platform/actions/browser/menuEntryActionViewItem","vs/css!vs/platform/contextview/browser/contextMenuHandler","vs/editor/browser/services/abstractCodeEditorService","vs/editor/browser/viewParts/minimap/minimapCharRenderer","vs/editor/browser/viewParts/minimap/minimapPreBaked","vs/editor/browser/viewParts/minimap/minimapCharRendererFactory","vs/editor/common/commands/trimTrailingWhitespaceCommand","vs/editor/common/commands/surroundSelectionCommand","vs/editor/common/diff/diffComputer","vs/editor/common/model/bracketPairs/bracketPairs","vs/editor/common/model/bracketPairs/bracketPairsTree/nodeReader","vs/editor/common/model/bracketPairs/bracketPairsTree/concat23Trees","vs/editor/common/model/bracketPairs/bracketPairsTree/parser","vs/editor/common/model/indentationGuesser","vs/editor/common/model/intervalTree","vs/editor/common/model/pieceTreeTextBuffer/rbTreeBase","vs/editor/common/modes/languageSelector","vs/editor/common/modes/linkComputer","vs/editor/common/modes/supports/characterPair","vs/editor/common/modes/supports/indentRules","vs/editor/common/modes/supports/inplaceReplaceSupport","vs/editor/common/modes/supports/onEnter","vs/editor/common/modes/supports/electricCharacter","vs/editor/common/modes/supports/tokenization","vs/editor/common/modes/tokenizationRegistry","vs/editor/common/services/semanticTokensDto","vs/editor/browser/viewParts/lines/rangeUtil","vs/editor/common/view/viewContext","vs/editor/common/viewLayout/linesLayout","vs/editor/common/viewLayout/viewLinesViewportData","vs/editor/common/viewModel/monospaceLineBreaksComputer","vs/editor/common/model/mirrorTextModel","vs/editor/common/services/editorSimpleWorker","vs/editor/browser/viewParts/contentWidgets/contentWidgets","vs/editor/browser/viewParts/decorations/decorations","vs/editor/browser/viewParts/linesDecorations/linesDecorations","vs/editor/browser/viewParts/marginDecorations/marginDecorations","vs/editor/browser/viewParts/overlayWidgets/overlayWidgets","vs/editor/browser/viewParts/overviewRuler/overviewRuler","vs/editor/browser/viewParts/viewZones/viewZones","vs/editor/common/viewLayout/viewLayout","vs/editor/contrib/caretOperations/moveCaretCommand","vs/editor/contrib/colorPicker/colorPickerModel","vs/editor/contrib/dnd/dragAndDropCommand","vs/editor/contrib/find/replaceAllCommand","vs/editor/contrib/find/replacePattern","vs/editor/contrib/folding/foldingModel","vs/editor/contrib/folding/intializingRangeProvider","vs/editor/contrib/inPlaceReplace/inPlaceReplaceCommand","vs/editor/contrib/linesOperations/copyLinesCommand","vs/editor/contrib/linesOperations/sortLinesCommand","vs/editor/contrib/smartSelect/wordSelections","vs/editor/contrib/suggest/completionModel","vs/editor/contrib/suggest/suggestCommitCharacters","vs/editor/contrib/suggest/suggestOvertypingCapturer","vs/editor/contrib/suggest/wordDistance","vs/editor/standalone/common/monarch/monarchCompile","vs/nls!vs/base/browser/ui/actionbar/actionViewItems","vs/nls!vs/base/browser/ui/findinput/findInput","vs/nls!vs/base/browser/ui/findinput/findInputCheckboxes","vs/nls!vs/base/browser/ui/findinput/replaceInput","vs/nls!vs/base/browser/ui/iconLabel/iconLabelHover","vs/base/browser/ui/iconLabel/iconLabelHover","vs/nls!vs/base/browser/ui/inputbox/inputBox","vs/nls!vs/base/browser/ui/keybindingLabel/keybindingLabel","vs/nls!vs/base/browser/ui/menu/menu","vs/nls!vs/base/browser/ui/tree/abstractTree","vs/base/browser/ui/tree/dataTree","vs/base/browser/ui/tree/asyncDataTree","vs/nls!vs/base/common/actions","vs/base/browser/ui/dropdown/dropdown","vs/base/browser/ui/dropdown/dropdownActionViewItem","vs/base/browser/ui/findinput/findInput","vs/base/browser/ui/findinput/replaceInput","vs/base/browser/ui/menu/menu","vs/base/parts/quickinput/browser/quickInputBox","vs/nls!vs/base/common/errorMessage","vs/base/common/errorMessage","vs/nls!vs/base/common/keybindingLabels","vs/base/browser/ui/keybindingLabel/keybindingLabel","vs/nls!vs/base/parts/quickinput/browser/quickInput","vs/nls!vs/base/parts/quickinput/browser/quickInputList","vs/base/parts/quickinput/browser/quickInputList","vs/base/parts/quickinput/browser/quickInput","vs/nls!vs/editor/browser/controller/coreCommands","vs/nls!vs/editor/browser/controller/textAreaHandler","vs/nls!vs/editor/browser/core/keybindingCancellation","vs/nls!vs/editor/browser/editorExtensions","vs/nls!vs/editor/browser/widget/codeEditorWidget","vs/nls!vs/editor/browser/widget/diffEditorWidget","vs/nls!vs/editor/browser/widget/diffReview","vs/nls!vs/editor/browser/widget/inlineDiffMargin","vs/editor/browser/widget/inlineDiffMargin","vs/nls!vs/editor/common/config/commonEditorConfig","vs/nls!vs/editor/common/config/editorOptions","vs/editor/browser/config/charWidthReader","vs/nls!vs/editor/common/editorContextKeys","vs/nls!vs/editor/common/model/editStack","vs/nls!vs/editor/common/modes/modesRegistry","vs/nls!vs/editor/common/standaloneStrings","vs/nls!vs/editor/common/view/editorColorRegistry","vs/nls!vs/editor/contrib/anchorSelect/anchorSelect","vs/nls!vs/editor/contrib/bracketMatching/bracketMatching","vs/nls!vs/editor/contrib/caretOperations/caretOperations","vs/nls!vs/editor/contrib/caretOperations/transpose","vs/nls!vs/editor/contrib/clipboard/clipboard","vs/nls!vs/editor/contrib/codeAction/codeActionCommands","vs/nls!vs/editor/contrib/codeAction/lightBulbWidget","vs/nls!vs/editor/contrib/codelens/codelensController","vs/nls!vs/editor/contrib/colorPicker/colorPickerWidget","vs/nls!vs/editor/contrib/comment/comment","vs/nls!vs/editor/contrib/contextmenu/contextmenu","vs/nls!vs/editor/contrib/cursorUndo/cursorUndo","vs/nls!vs/editor/contrib/find/findController","vs/nls!vs/editor/contrib/find/findWidget","vs/nls!vs/editor/contrib/folding/folding","vs/nls!vs/editor/contrib/folding/foldingDecorations","vs/nls!vs/editor/contrib/fontZoom/fontZoom","vs/nls!vs/editor/contrib/format/format","vs/nls!vs/editor/contrib/format/formatActions","vs/nls!vs/editor/contrib/gotoError/gotoError","vs/nls!vs/editor/contrib/gotoError/gotoErrorWidget","vs/nls!vs/editor/contrib/gotoSymbol/goToCommands","vs/nls!vs/editor/contrib/gotoSymbol/link/goToDefinitionAtPosition","vs/nls!vs/editor/contrib/gotoSymbol/peek/referencesController","vs/nls!vs/editor/contrib/gotoSymbol/peek/referencesTree","vs/nls!vs/editor/contrib/gotoSymbol/peek/referencesWidget","vs/nls!vs/editor/contrib/gotoSymbol/referencesModel","vs/nls!vs/editor/contrib/gotoSymbol/symbolNavigation","vs/nls!vs/editor/contrib/hover/hover","vs/nls!vs/editor/contrib/hover/markdownHoverParticipant","vs/nls!vs/editor/contrib/hover/markerHoverParticipant","vs/nls!vs/editor/contrib/inPlaceReplace/inPlaceReplace","vs/nls!vs/editor/contrib/indentation/indentation","vs/nls!vs/editor/contrib/inlineCompletions/ghostTextController","vs/nls!vs/editor/contrib/inlineCompletions/inlineCompletionsHoverParticipant","vs/nls!vs/editor/contrib/lineSelection/lineSelection","vs/nls!vs/editor/contrib/linesOperations/linesOperations","vs/nls!vs/editor/contrib/linkedEditing/linkedEditing","vs/nls!vs/editor/contrib/links/links","vs/nls!vs/editor/contrib/message/messageController","vs/nls!vs/editor/contrib/multicursor/multicursor","vs/nls!vs/editor/contrib/parameterHints/parameterHints","vs/nls!vs/editor/contrib/parameterHints/parameterHintsWidget","vs/nls!vs/editor/contrib/peekView/peekView","vs/nls!vs/editor/contrib/quickAccess/gotoLineQuickAccess","vs/nls!vs/editor/contrib/quickAccess/gotoSymbolQuickAccess","vs/nls!vs/editor/contrib/rename/rename","vs/nls!vs/editor/contrib/rename/renameInputField","vs/nls!vs/editor/contrib/smartSelect/smartSelect","vs/nls!vs/editor/contrib/snippet/snippetController2","vs/nls!vs/editor/contrib/snippet/snippetVariables","vs/nls!vs/editor/contrib/suggest/suggest","vs/nls!vs/editor/contrib/suggest/suggestController","vs/nls!vs/editor/contrib/suggest/suggestWidget","vs/nls!vs/editor/contrib/suggest/suggestWidgetDetails","vs/nls!vs/editor/contrib/suggest/suggestWidgetRenderer","vs/nls!vs/editor/contrib/suggest/suggestWidgetStatus","vs/nls!vs/editor/contrib/symbolIcons/symbolIcons","vs/nls!vs/editor/contrib/toggleTabFocusMode/toggleTabFocusMode","vs/nls!vs/editor/contrib/tokenization/tokenization","vs/nls!vs/editor/contrib/unicodeHighlighter/unicodeHighlighter","vs/nls!vs/editor/contrib/unusualLineTerminators/unusualLineTerminators","vs/nls!vs/editor/contrib/wordHighlighter/wordHighlighter","vs/nls!vs/editor/contrib/wordOperations/wordOperations","vs/nls!vs/platform/actions/browser/menuEntryActionViewItem","vs/nls!vs/platform/configuration/common/configurationRegistry","vs/nls!vs/platform/contextkey/browser/contextKeyService","vs/nls!vs/platform/contextkey/common/contextkeys","vs/nls!vs/platform/keybinding/common/abstractKeybindingService","vs/nls!vs/platform/list/browser/listService","vs/nls!vs/platform/markers/common/markers","vs/nls!vs/platform/quickinput/browser/commandsQuickAccess","vs/nls!vs/platform/quickinput/browser/helpQuickAccess","vs/nls!vs/platform/theme/common/colorRegistry","vs/nls!vs/platform/theme/common/iconRegistry","vs/nls!vs/platform/undoRedo/common/undoRedoService","vs/nls!vs/platform/workspaces/common/workspaces","vs/platform/browser/historyWidgetKeybindingHint","vs/platform/clipboard/browser/clipboardService","vs/platform/editor/common/editor","vs/platform/extensions/common/extensions","vs/platform/instantiation/common/graph","vs/editor/common/model/bracketPairs/bracketPairsTree/brackets","vs/editor/common/model/bracketPairs/bracketPairsTree/bracketPairsTree","vs/editor/common/model/bracketPairs/bracketPairsImpl","vs/editor/common/model/pieceTreeTextBuffer/pieceTreeTextBufferBuilder","vs/editor/common/model/textModelTokens","vs/editor/common/viewModel/modelLineProjection","vs/editor/contrib/folding/hiddenRangeModel","vs/editor/standalone/browser/colorizer","vs/editor/contrib/documentSymbols/documentSymbols","vs/editor/contrib/links/getLinks","vs/editor/contrib/comment/lineCommentCommand","vs/editor/contrib/parameterHints/parameterHintsModel","vs/editor/contrib/suggest/suggestAlternatives","vs/editor/contrib/suggest/wordContextKey","vs/platform/accessibility/browser/accessibilityService","vs/platform/instantiation/common/instantiationService","vs/platform/keybinding/common/abstractKeybindingService","vs/platform/keybinding/common/baseResolvedKeybinding","vs/platform/contextkey/browser/contextKeyService","vs/platform/keybinding/common/usLayoutResolvedKeybinding","vs/platform/contextview/browser/contextViewService","vs/editor/common/services/webWorker","vs/editor/contrib/gotoError/markerNavigationService","vs/platform/markers/common/markerService","vs/editor/browser/services/openerService","vs/platform/quickinput/browser/pickerQuickAccess","vs/editor/browser/view/domLineBreaksComputer","vs/editor/browser/view/viewOverlays","vs/editor/browser/viewParts/viewCursors/viewCursor","vs/editor/common/services/getIconClasses","vs/editor/common/services/languagesRegistry","vs/editor/common/services/modeServiceImpl","vs/editor/contrib/hover/modesGlyphHover","vs/platform/configuration/common/configurationModels","vs/platform/quickinput/browser/helpQuickAccess","vs/editor/standalone/browser/quickAccess/standaloneHelpQuickAccess","vs/platform/quickinput/browser/quickAccess","vs/editor/contrib/codelens/codeLensCache","vs/editor/contrib/suggest/suggestMemory","vs/platform/quickinput/browser/commandsQuickAccess","vs/editor/contrib/quickAccess/commandsQuickAccess","vs/platform/contextview/browser/contextMenuHandler","vs/editor/browser/viewParts/lines/viewLines","vs/editor/browser/services/codeEditorServiceImpl","vs/editor/browser/viewParts/editorScrollbar/editorScrollbar","vs/editor/browser/viewParts/minimap/minimap","vs/editor/browser/viewParts/scrollDecoration/scrollDecoration","vs/editor/browser/viewParts/selections/selections","vs/editor/browser/viewParts/currentLineHighlight/currentLineHighlight","vs/editor/browser/controller/textAreaHandler","vs/editor/browser/viewParts/overviewRuler/decorationsOverviewRuler","vs/editor/browser/viewParts/rulers/rulers","vs/editor/browser/viewParts/viewCursors/viewCursors","vs/editor/common/model/bracketPairs/colorizedBracketPairsDecorationProvider","vs/editor/common/services/markerDecorationsServiceImpl","vs/editor/contrib/colorPicker/colorPickerWidget","vs/editor/contrib/gotoSymbol/peek/referencesTree","vs/editor/contrib/inlineCompletions/ghostTextWidget","vs/editor/contrib/quickAccess/gotoLineQuickAccess","vs/editor/contrib/quickAccess/gotoSymbolQuickAccess","vs/editor/contrib/rename/renameInputField","vs/editor/standalone/common/themes","vs/editor/browser/core/keybindingCancellation","vs/editor/browser/services/markerDecorations","vs/editor/contrib/anchorSelect/anchorSelect","vs/editor/contrib/caretOperations/caretOperations","vs/editor/contrib/clipboard/clipboard","vs/editor/contrib/codeAction/codeActionMenu","vs/editor/contrib/codeAction/codeActionModel","vs/editor/contrib/comment/comment","vs/editor/contrib/contextmenu/contextmenu","vs/editor/contrib/cursorUndo/cursorUndo","vs/editor/contrib/fontZoom/fontZoom","vs/editor/contrib/format/formatActions","vs/editor/contrib/gotoSymbol/symbolNavigation","vs/editor/contrib/hover/getHover","vs/editor/contrib/inlayHints/inlayHintsController","vs/editor/contrib/rename/rename","vs/editor/contrib/smartSelect/smartSelect","vs/editor/contrib/tokenization/tokenization","vs/editor/contrib/unusualLineTerminators/unusualLineTerminators","vs/editor/standalone/browser/accessibilityHelp/accessibilityHelp","vs/editor/standalone/browser/iPadShowKeyboard/iPadShowKeyboard","vs/editor/standalone/browser/inspectTokens/inspectTokens","vs/editor/standalone/browser/quickAccess/standaloneCommandsQuickAccess","vs/editor/standalone/browser/quickAccess/standaloneGotoLineQuickAccess","vs/editor/standalone/browser/quickAccess/standaloneGotoSymbolQuickAccess","vs/editor/standalone/browser/toggleHighContrast/toggleHighContrast","vs/editor/contrib/suggest/suggestWidgetStatus","vs/platform/actions/common/menuService","vs/platform/browser/contextScopedHistoryWidget","vs/platform/contextview/browser/contextMenuService","vs/platform/opener/browser/link","vs/platform/quickinput/browser/quickInput","vs/editor/standalone/browser/quickInput/standaloneQuickInputServiceImpl","vs/platform/severityIcon/common/severityIcon","vs/editor/browser/widget/diffReview","vs/editor/contrib/parameterHints/parameterHintsWidget","vs/editor/contrib/parameterHints/parameterHints","vs/editor/contrib/suggest/suggestWidgetRenderer","vs/editor/contrib/unicodeHighlighter/bannerController","vs/platform/theme/browser/iconsStyleSheet","vs/editor/standalone/browser/standaloneThemeServiceImpl","vs/editor/browser/viewParts/indentGuides/indentGuides","vs/editor/browser/controller/mouseHandler","vs/editor/browser/controller/pointerHandler","vs/editor/common/controller/cursorColumnSelection","vs/editor/browser/view/viewController","vs/editor/browser/view/viewImpl","vs/editor/common/controller/oneCursor","vs/editor/common/controller/cursorCollection","vs/editor/common/viewModel/viewModelLines","vs/editor/common/viewModel/viewModelImpl","vs/editor/contrib/bracketMatching/bracketMatching","vs/editor/contrib/caretOperations/transpose","vs/editor/contrib/codeAction/lightBulbWidget","vs/editor/contrib/codeAction/codeActionUi","vs/editor/contrib/codeAction/codeActionContributions","vs/editor/contrib/codelens/codelensWidget","vs/editor/contrib/codelens/codelensController","vs/editor/contrib/dnd/dnd","vs/editor/contrib/find/findDecorations","vs/editor/contrib/find/findOptionsWidget","vs/editor/contrib/find/findState","vs/editor/contrib/find/findWidget","vs/editor/contrib/folding/foldingDecorations","vs/editor/contrib/folding/indentRangeProvider","vs/editor/contrib/folding/folding","vs/editor/contrib/hover/colorHoverParticipant","vs/editor/contrib/inPlaceReplace/inPlaceReplace","vs/editor/contrib/indentation/indentation","vs/editor/contrib/lineSelection/lineSelection","vs/editor/contrib/linesOperations/moveLinesCommand","vs/editor/contrib/linesOperations/linesOperations","vs/editor/contrib/linkedEditing/linkedEditing","vs/editor/contrib/links/links","vs/editor/contrib/multicursor/multicursor","vs/editor/contrib/suggest/suggestWidget","vs/editor/contrib/viewportSemanticTokens/viewportSemanticTokens","vs/editor/contrib/wordHighlighter/wordHighlighter","vs/editor/contrib/wordPartOperations/wordPartOperations","vs/editor/contrib/zoneWidget/zoneWidget","vs/editor/contrib/gotoError/gotoErrorWidget","vs/editor/contrib/gotoSymbol/peek/referencesWidget","vs/editor/contrib/hover/markerHoverParticipant","vs/editor/standalone/browser/referenceSearch/standaloneReferenceSearch","vs/platform/undoRedo/common/undoRedoService","vs/editor/standalone/browser/standaloneCodeEditor","vs/editor/standalone/browser/standaloneEditor","vs/editor/standalone/browser/standaloneLanguages","vs/editor/editor.api","vs/platform/workspaces/common/workspaces","vs/editor/contrib/snippet/snippetVariables","vs/editor/contrib/suggest/suggestModel","vs/editor/contrib/inlineCompletions/suggestWidgetInlineCompletionProvider","vs/editor/contrib/inlineCompletions/suggestWidgetPreviewModel","vs/editor/contrib/inlineCompletions/ghostTextModel","vs/editor/contrib/inlineCompletions/inlineCompletionsHoverParticipant","vs/editor/contrib/hover/modesContentHover","vs/editor/contrib/colorPicker/colorContributions","vs/editor/editor.all","vs/base/browser/dompurify/dompurify","vs/base/common/marked/marked","vs/editor/edcore.main"],te=function(q){for(var e=[],y=0,N=q.length;y=0)},C}();function y(C,p,h){var g;return p.length===0?g=C:g=C.replace(/\{(\d+)\}/g,function(i,t){var r=t[0],c=p[r],l=i;return typeof c=="string"?l=c:(typeof c=="number"||typeof c=="boolean"||c===void 0||c===null)&&(l=String(c)),l}),h.isPseudo&&(g="\uFF3B"+g.replace(/[aouei]/g,"$&$&")+"\uFF3D"),g}function N(C,p){var h=C[p];return h||(h=C["*"],h)?h:null}function T(C,p,h){for(var g=[],i=3;i1?y-1:0),T=1;T/gm),an=gt(/^data-[\-\w.\u00B7-\uFFFF]/),ln=gt(/^aria-[\-\w]+$/),dn=gt(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),cn=gt(/^(?:\w+script|data):/i),un=gt(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),yt=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(q){return typeof q}:function(q){return q&&typeof Symbol=="function"&&q.constructor===Symbol&&q!==Symbol.prototype?"symbol":typeof q};function ct(q){if(Array.isArray(q)){for(var e=0,y=Array(q.length);e0&&arguments[0]!==void 0?arguments[0]:hn(),e=function(we){return mi(we)};if(e.version="2.3.1",e.removed=[],!q||!q.document||q.document.nodeType!==9)return e.isSupported=!1,e;var y=q.document,N=q.document,T=q.DocumentFragment,I=q.HTMLTemplateElement,b=q.Node,C=q.Element,p=q.NodeFilter,h=q.NamedNodeMap,g=h===void 0?q.NamedNodeMap||q.MozNamedAttrMap:h,i=q.Text,t=q.Comment,r=q.DOMParser,c=q.trustedTypes,l=C.prototype,a=Nt(l,"cloneNode"),s=Nt(l,"nextSibling"),o=Nt(l,"childNodes"),n=Nt(l,"parentNode");if(typeof I=="function"){var d=N.createElement("template");d.content&&d.content.ownerDocument&&(N=d.content.ownerDocument)}var u=gn(c,y),f=u&&fe?u.createHTML(""):"",S=N,v=S.implementation,m=S.createNodeIterator,_=S.createDocumentFragment,L=S.getElementsByTagName,w=y.importNode,k={};try{k=vt(N).documentMode?N.documentMode:{}}catch(ye){}var D={};e.isSupported=typeof n=="function"&&v&&typeof v.createHTMLDocument!="undefined"&&k!==9;var M=on,O=rn,F=an,R=ln,A=cn,P=un,E=dn,B=null,V=Xe({},[].concat(ct(ui),ct(Vt),ct(zt),ct(Ht),ct(hi))),j=null,K=Xe({},[].concat(ct(gi),ct(Ut),ct(fi),ct(Tt))),Y=null,J=null,Z=!0,ie=!0,ne=!1,G=!1,W=!1,z=!1,U=!1,x=!1,X=!1,le=!0,fe=!1,$=!0,H=!0,Q=!1,re={},ce=null,oe=Xe({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]),de=null,pe=Xe({},["audio","video","img","source","image","track"]),_e=null,se=Xe({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),ue="http://www.w3.org/1998/Math/MathML",be="http://www.w3.org/2000/svg",ge="http://www.w3.org/1999/xhtml",Se=ge,ae=!1,he=null,De=N.createElement("form"),ke=function(we){he&&he===we||((!we||(typeof we=="undefined"?"undefined":yt(we))!=="object")&&(we={}),we=vt(we),B="ALLOWED_TAGS"in we?Xe({},we.ALLOWED_TAGS):V,j="ALLOWED_ATTR"in we?Xe({},we.ALLOWED_ATTR):K,_e="ADD_URI_SAFE_ATTR"in we?Xe(vt(se),we.ADD_URI_SAFE_ATTR):se,de="ADD_DATA_URI_TAGS"in we?Xe(vt(pe),we.ADD_DATA_URI_TAGS):pe,ce="FORBID_CONTENTS"in we?Xe({},we.FORBID_CONTENTS):oe,Y="FORBID_TAGS"in we?Xe({},we.FORBID_TAGS):{},J="FORBID_ATTR"in we?Xe({},we.FORBID_ATTR):{},re="USE_PROFILES"in we?we.USE_PROFILES:!1,Z=we.ALLOW_ARIA_ATTR!==!1,ie=we.ALLOW_DATA_ATTR!==!1,ne=we.ALLOW_UNKNOWN_PROTOCOLS||!1,G=we.SAFE_FOR_TEMPLATES||!1,W=we.WHOLE_DOCUMENT||!1,x=we.RETURN_DOM||!1,X=we.RETURN_DOM_FRAGMENT||!1,le=we.RETURN_DOM_IMPORT!==!1,fe=we.RETURN_TRUSTED_TYPE||!1,U=we.FORCE_BODY||!1,$=we.SANITIZE_DOM!==!1,H=we.KEEP_CONTENT!==!1,Q=we.IN_PLACE||!1,E=we.ALLOWED_URI_REGEXP||E,Se=we.NAMESPACE||ge,G&&(ie=!1),X&&(x=!0),re&&(B=Xe({},[].concat(ct(hi))),j=[],re.html===!0&&(Xe(B,ui),Xe(j,gi)),re.svg===!0&&(Xe(B,Vt),Xe(j,Ut),Xe(j,Tt)),re.svgFilters===!0&&(Xe(B,zt),Xe(j,Ut),Xe(j,Tt)),re.mathMl===!0&&(Xe(B,Ht),Xe(j,fi),Xe(j,Tt))),we.ADD_TAGS&&(B===V&&(B=vt(B)),Xe(B,we.ADD_TAGS)),we.ADD_ATTR&&(j===K&&(j=vt(j)),Xe(j,we.ADD_ATTR)),we.ADD_URI_SAFE_ATTR&&Xe(_e,we.ADD_URI_SAFE_ATTR),we.FORBID_CONTENTS&&(ce===oe&&(ce=vt(ce)),Xe(ce,we.FORBID_CONTENTS)),H&&(B["#text"]=!0),W&&Xe(B,["html","head","body"]),B.table&&(Xe(B,["tbody"]),delete Y.tbody),nt&&nt(we),he=we)},Ve=Xe({},["mi","mo","mn","ms","mtext"]),Fe=Xe({},["foreignobject","desc","title","annotation-xml"]),xe=Xe({},Vt);Xe(xe,zt),Xe(xe,nn);var Ze=Xe({},Ht);Xe(Ze,sn);var je=function(we){var Oe=n(we);(!Oe||!Oe.tagName)&&(Oe={namespaceURI:ge,tagName:"template"});var Re=Ct(we.tagName),We=Ct(Oe.tagName);if(we.namespaceURI===be)return Oe.namespaceURI===ge?Re==="svg":Oe.namespaceURI===ue?Re==="svg"&&(We==="annotation-xml"||Ve[We]):Boolean(xe[Re]);if(we.namespaceURI===ue)return Oe.namespaceURI===ge?Re==="math":Oe.namespaceURI===be?Re==="math"&&Fe[We]:Boolean(Ze[Re]);if(we.namespaceURI===ge){if(Oe.namespaceURI===be&&!Fe[We]||Oe.namespaceURI===ue&&!Ve[We])return!1;var Ke=Xe({},["title","style","font","a","script"]);return!Ze[Re]&&(Ke[Re]||!xe[Re])}return!1},$e=function(we){wt(e.removed,{element:we});try{we.parentNode.removeChild(we)}catch(Oe){try{we.outerHTML=f}catch(Re){we.remove()}}},Le=function(we,Oe){try{wt(e.removed,{attribute:Oe.getAttributeNode(we),from:Oe})}catch(Re){wt(e.removed,{attribute:null,from:Oe})}if(Oe.removeAttribute(we),we==="is"&&!j[we])if(x||X)try{$e(Oe)}catch(Re){}else try{Oe.setAttribute(we,"")}catch(Re){}},Ee=function(we){var Oe=void 0,Re=void 0;if(U)we=" "+we;else{var We=di(we,/^[\r\n\t ]+/);Re=We&&We[0]}var Ke=u?u.createHTML(we):we;if(Se===ge)try{Oe=new r().parseFromString(Ke,"text/html")}catch(Ge){}if(!Oe||!Oe.documentElement){Oe=v.createDocument(Se,"template",null);try{Oe.documentElement.innerHTML=ae?"":Ke}catch(Ge){}}var He=Oe.body||Oe.documentElement;return we&&Re&&He.insertBefore(N.createTextNode(Re),He.childNodes[0]||null),Se===ge?L.call(Oe,W?"html":"body")[0]:W?Oe.documentElement:He},Pe=function(we){return m.call(we.ownerDocument||we,we,p.SHOW_ELEMENT|p.SHOW_COMMENT|p.SHOW_TEXT,null,!1)},ze=function(we){return we instanceof i||we instanceof t?!1:typeof we.nodeName!="string"||typeof we.textContent!="string"||typeof we.removeChild!="function"||!(we.attributes instanceof g)||typeof we.removeAttribute!="function"||typeof we.setAttribute!="function"||typeof we.namespaceURI!="string"||typeof we.insertBefore!="function"},Te=function(we){return(typeof b=="undefined"?"undefined":yt(b))==="object"?we instanceof b:we&&(typeof we=="undefined"?"undefined":yt(we))==="object"&&typeof we.nodeType=="number"&&typeof we.nodeName=="string"},Ne=function(we,Oe,Re){!D[we]||Qi(D[we],function(We){We.call(e,Oe,Re,he)})},Me=function(we){var Oe=void 0;if(Ne("beforeSanitizeElements",we,null),ze(we)||di(we.nodeName,/[\u0080-\uFFFF]/))return $e(we),!0;var Re=Ct(we.nodeName);if(Ne("uponSanitizeElement",we,{tagName:Re,allowedTags:B}),!Te(we.firstElementChild)&&(!Te(we.content)||!Te(we.content.firstElementChild))&&ft(/<[/\w]/g,we.innerHTML)&&ft(/<[/\w]/g,we.textContent)||Re==="select"&&ft(/=0;--Ge)We.insertBefore(a(Ke[Ge],!0),s(we))}return $e(we),!0}return we instanceof C&&!je(we)||(Re==="noscript"||Re==="noembed")&&ft(/<\/no(script|embed)/i,we.innerHTML)?($e(we),!0):(G&&we.nodeType===3&&(Oe=we.textContent,Oe=pt(Oe,M," "),Oe=pt(Oe,O," "),we.textContent!==Oe&&(wt(e.removed,{element:we.cloneNode()}),we.textContent=Oe)),Ne("afterSanitizeElements",we,null),!1)},me=function(we,Oe,Re){if($&&(Oe==="id"||Oe==="name")&&(Re in N||Re in De))return!1;if(!(ie&&!J[Oe]&&ft(F,Oe))){if(!(Z&&ft(R,Oe))){if(!j[Oe]||J[Oe])return!1;if(!_e[Oe]){if(!ft(E,pt(Re,P,""))){if(!((Oe==="src"||Oe==="xlink:href"||Oe==="href")&&we!=="script"&&Ji(Re,"data:")===0&&de[we])){if(!(ne&&!ft(A,pt(Re,P,"")))){if(Re)return!1}}}}}}return!0},ve=function(we){var Oe=void 0,Re=void 0,We=void 0,Ke=void 0;Ne("beforeSanitizeAttributes",we,null);var He=we.attributes;if(!!He){var Ge={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:j};for(Ke=He.length;Ke--;){Oe=He[Ke];var qe=Oe,Ue=qe.name,Qe=qe.namespaceURI;if(Re=en(Oe.value),We=Ct(Ue),Ge.attrName=We,Ge.attrValue=Re,Ge.keepAttr=!0,Ge.forceKeepAttr=void 0,Ne("uponSanitizeAttribute",we,Ge),Re=Ge.attrValue,!Ge.forceKeepAttr&&(Le(Ue,we),!!Ge.keepAttr)){if(ft(/\/>/i,Re)){Le(Ue,we);continue}G&&(Re=pt(Re,M," "),Re=pt(Re,O," "));var Ye=we.nodeName.toLowerCase();if(!!me(Ye,We,Re))try{Qe?we.setAttributeNS(Qe,Ue,Re):we.setAttribute(Ue,Re),li(e.removed)}catch(et){}}}Ne("afterSanitizeAttributes",we,null)}},Ie=function ye(we){var Oe=void 0,Re=Pe(we);for(Ne("beforeSanitizeShadowDOM",we,null);Oe=Re.nextNode();)Ne("uponSanitizeShadowNode",Oe,null),!Me(Oe)&&(Oe.content instanceof T&&ye(Oe.content),ve(Oe));Ne("afterSanitizeShadowDOM",we,null)};return e.sanitize=function(ye,we){var Oe=void 0,Re=void 0,We=void 0,Ke=void 0,He=void 0;if(ae=!ye,ae&&(ye=""),typeof ye!="string"&&!Te(ye)){if(typeof ye.toString!="function")throw ci("toString is not a function");if(ye=ye.toString(),typeof ye!="string")throw ci("dirty is not a string, aborting")}if(!e.isSupported){if(yt(q.toStaticHTML)==="object"||typeof q.toStaticHTML=="function"){if(typeof ye=="string")return q.toStaticHTML(ye);if(Te(ye))return q.toStaticHTML(ye.outerHTML)}return ye}if(z||ke(we),e.removed=[],typeof ye=="string"&&(Q=!1),!Q)if(ye instanceof b)Oe=Ee(""),Re=Oe.ownerDocument.importNode(ye,!0),Re.nodeType===1&&Re.nodeName==="BODY"||Re.nodeName==="HTML"?Oe=Re:Oe.appendChild(Re);else{if(!x&&!G&&!W&&ye.indexOf("<")===-1)return u&&fe?u.createHTML(ye):ye;if(Oe=Ee(ye),!Oe)return x?null:f}Oe&&U&&$e(Oe.firstChild);for(var Ge=Pe(Q?ye:Oe);We=Ge.nextNode();)We.nodeType===3&&We===Ke||Me(We)||(We.content instanceof T&&Ie(We.content),ve(We),Ke=We);if(Ke=null,Q)return ye;if(x){if(X)for(He=_.call(Oe.ownerDocument);Oe.firstChild;)He.appendChild(Oe.firstChild);else He=Oe;return le&&(He=w.call(y,He,!0)),He}var qe=W?Oe.outerHTML:Oe.innerHTML;return G&&(qe=pt(qe,M," "),qe=pt(qe,O," ")),u&&fe?u.createHTML(qe):qe},e.setConfig=function(ye){ke(ye),z=!0},e.clearConfig=function(){he=null,z=!1},e.isValidAttribute=function(ye,we,Oe){he||ke({});var Re=Ct(ye),We=Ct(we);return me(Re,We,Oe)},e.addHook=function(ye,we){typeof we=="function"&&(D[ye]=D[ye]||[],wt(D[ye],we))},e.removeHook=function(ye){D[ye]&&li(D[ye])},e.removeHooks=function(ye){D[ye]&&(D[ye]=[])},e.removeAllHooks=function(){D={}},e}var fn=mi();define("vs/base/browser/dompurify/dompurify",function(){return fn}),define(ee[32],te([0,1]),function(q,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.createFastDomNode=e.FastDomNode=void 0;class y{constructor(I){this.domNode=I,this._maxWidth=-1,this._width=-1,this._height=-1,this._top=-1,this._left=-1,this._bottom=-1,this._right=-1,this._fontFamily="",this._fontWeight="",this._fontSize=-1,this._fontFeatureSettings="",this._lineHeight=-1,this._letterSpacing=-100,this._className="",this._display="",this._position="",this._visibility="",this._backgroundColor="",this._layerHint=!1,this._contain="none",this._boxShadow=""}setMaxWidth(I){this._maxWidth!==I&&(this._maxWidth=I,this.domNode.style.maxWidth=this._maxWidth+"px")}setWidth(I){this._width!==I&&(this._width=I,this.domNode.style.width=this._width+"px")}setHeight(I){this._height!==I&&(this._height=I,this.domNode.style.height=this._height+"px")}setTop(I){this._top!==I&&(this._top=I,this.domNode.style.top=this._top+"px")}unsetTop(){this._top!==-1&&(this._top=-1,this.domNode.style.top="")}setLeft(I){this._left!==I&&(this._left=I,this.domNode.style.left=this._left+"px")}setBottom(I){this._bottom!==I&&(this._bottom=I,this.domNode.style.bottom=this._bottom+"px")}setRight(I){this._right!==I&&(this._right=I,this.domNode.style.right=this._right+"px")}setFontFamily(I){this._fontFamily!==I&&(this._fontFamily=I,this.domNode.style.fontFamily=this._fontFamily)}setFontWeight(I){this._fontWeight!==I&&(this._fontWeight=I,this.domNode.style.fontWeight=this._fontWeight)}setFontSize(I){this._fontSize!==I&&(this._fontSize=I,this.domNode.style.fontSize=this._fontSize+"px")}setFontFeatureSettings(I){this._fontFeatureSettings!==I&&(this._fontFeatureSettings=I,this.domNode.style.fontFeatureSettings=this._fontFeatureSettings)}setLineHeight(I){this._lineHeight!==I&&(this._lineHeight=I,this.domNode.style.lineHeight=this._lineHeight+"px")}setLetterSpacing(I){this._letterSpacing!==I&&(this._letterSpacing=I,this.domNode.style.letterSpacing=this._letterSpacing+"px")}setClassName(I){this._className!==I&&(this._className=I,this.domNode.className=this._className)}toggleClassName(I,b){this.domNode.classList.toggle(I,b),this._className=this.domNode.className}setDisplay(I){this._display!==I&&(this._display=I,this.domNode.style.display=this._display)}setPosition(I){this._position!==I&&(this._position=I,this.domNode.style.position=this._position)}setVisibility(I){this._visibility!==I&&(this._visibility=I,this.domNode.style.visibility=this._visibility)}setBackgroundColor(I){this._backgroundColor!==I&&(this._backgroundColor=I,this.domNode.style.backgroundColor=this._backgroundColor)}setLayerHinting(I){this._layerHint!==I&&(this._layerHint=I,this.domNode.style.transform=this._layerHint?"translate3d(0px, 0px, 0px)":"")}setBoxShadow(I){this._boxShadow!==I&&(this._boxShadow=I,this.domNode.style.boxShadow=I)}setContain(I){this._contain!==I&&(this._contain=I,this.domNode.style.contain=this._contain)}setAttribute(I,b){this.domNode.setAttribute(I,b)}removeAttribute(I){this.domNode.removeAttribute(I)}appendChild(I){this.domNode.appendChild(I.domNode)}removeChild(I){this.domNode.removeChild(I.domNode)}}e.FastDomNode=y;function N(T){return new y(T)}e.createFastDomNode=N}),define(ee[204],te([0,1]),function(q,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.IframeUtils=void 0;let y=!1,N=null;function T(b){if(!b.parent||b.parent===b)return null;try{let C=b.location,p=b.parent.location;if(C.origin!=="null"&&p.origin!=="null"&&C.origin!==p.origin)return y=!0,null}catch(C){return y=!0,null}return b.parent}class I{static getSameOriginWindowChain(){if(!N){N=[];let C=window,p;do p=T(C),p?N.push({window:C,iframeElement:C.frameElement||null}):N.push({window:C,iframeElement:null}),C=p;while(C)}return N.slice(0)}static hasDifferentOriginAncestor(){return N||this.getSameOriginWindowChain(),y}static getPositionOfChildWindowRelativeToAncestorWindow(C,p){if(!p||C===p)return{top:0,left:0};let h=0,g=0,i=this.getSameOriginWindowChain();for(const t of i){if(h+=t.window.scrollY,g+=t.window.scrollX,t.window===p||!t.iframeElement)break;let r=t.iframeElement.getBoundingClientRect();h+=r.top,g+=r.left}return{top:h,left:g}}}e.IframeUtils=I}),define(ee[300],te([0,1]),function(q,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ListError=void 0;class y extends Error{constructor(T,I){super(`ListError [${T}] ${I}`)}}e.ListError=y}),define(ee[301],te([0,1]),function(q,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.CombinedSpliceable=void 0;class y{constructor(T){this.spliceables=T}splice(T,I,b){this.spliceables.forEach(C=>C.splice(T,I,b))}}e.CombinedSpliceable=y}),define(ee[205],te([0,1]),function(q,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ScrollbarState=void 0;const y=20;class N{constructor(I,b,C,p,h,g){this._scrollbarSize=Math.round(b),this._oppositeScrollbarSize=Math.round(C),this._arrowSize=Math.round(I),this._visibleSize=p,this._scrollSize=h,this._scrollPosition=g,this._computedAvailableSize=0,this._computedIsNeeded=!1,this._computedSliderSize=0,this._computedSliderRatio=0,this._computedSliderPosition=0,this._refreshComputedValues()}clone(){return new N(this._arrowSize,this._scrollbarSize,this._oppositeScrollbarSize,this._visibleSize,this._scrollSize,this._scrollPosition)}setVisibleSize(I){const b=Math.round(I);return this._visibleSize!==b?(this._visibleSize=b,this._refreshComputedValues(),!0):!1}setScrollSize(I){const b=Math.round(I);return this._scrollSize!==b?(this._scrollSize=b,this._refreshComputedValues(),!0):!1}setScrollPosition(I){const b=Math.round(I);return this._scrollPosition!==b?(this._scrollPosition=b,this._refreshComputedValues(),!0):!1}setScrollbarSize(I){this._scrollbarSize=Math.round(I)}setOppositeScrollbarSize(I){this._oppositeScrollbarSize=Math.round(I)}static _computeValues(I,b,C,p,h){const g=Math.max(0,C-I),i=Math.max(0,g-2*b),t=p>0&&p>C;if(!t)return{computedAvailableSize:Math.round(g),computedIsNeeded:t,computedSliderSize:Math.round(i),computedSliderRatio:0,computedSliderPosition:0};const r=Math.round(Math.max(y,Math.floor(C*i/p))),c=(i-r)/(p-C),l=h*c;return{computedAvailableSize:Math.round(g),computedIsNeeded:t,computedSliderSize:Math.round(r),computedSliderRatio:c,computedSliderPosition:Math.round(l)}}_refreshComputedValues(){const I=N._computeValues(this._oppositeScrollbarSize,this._arrowSize,this._visibleSize,this._scrollSize,this._scrollPosition);this._computedAvailableSize=I.computedAvailableSize,this._computedIsNeeded=I.computedIsNeeded,this._computedSliderSize=I.computedSliderSize,this._computedSliderRatio=I.computedSliderRatio,this._computedSliderPosition=I.computedSliderPosition}getArrowSize(){return this._arrowSize}getScrollPosition(){return this._scrollPosition}getRectangleLargeSize(){return this._computedAvailableSize}getRectangleSmallSize(){return this._scrollbarSize}isNeeded(){return this._computedIsNeeded}getSliderSize(){return this._computedSliderSize}getSliderPosition(){return this._computedSliderPosition}getDesiredScrollPositionFromOffset(I){if(!this._computedIsNeeded)return 0;const b=I-this._arrowSize-this._computedSliderSize/2;return Math.round(b/this._computedSliderRatio)}getDesiredScrollPositionFromOffsetPaged(I){if(!this._computedIsNeeded)return 0;const b=I-this._arrowSize;let C=this._scrollPosition;return bk===D){if(_===L)return!0;if(!_||!L||_.length!==L.length)return!1;for(let k=0,D=_.length;k0)D=M-1;else return M}return-(k+1)}e.binarySearch=I;function b(_,L){let w=0,k=_.length;if(k===0)return 0;for(;w=L.length)throw new TypeError("invalid index");let k=L[Math.floor(L.length*Math.random())],D=[],M=[],O=[];for(let F of L){const R=w(F,k);R<0?D.push(F):R>0?M.push(F):O.push(F)}return _!!L)}e.coalesce=h;function g(_){return!Array.isArray(_)||_.length===0}e.isFalsyOrEmpty=g;function i(_){return Array.isArray(_)&&_.length>0}e.isNonEmptyArray=i;function t(_,L=w=>w){const w=new Set;return _.filter(k=>{const D=L(k);return w.has(D)?!1:(w.add(D),!0)})}e.distinct=t;function r(_,L){const w=c(_,L);if(w!==-1)return _[w]}e.findLast=r;function c(_,L){for(let w=_.length-1;w>=0;w--){const k=_[w];if(L(k))return w}return-1}e.lastIndex=c;function l(_,L){return _.length>0?_[0]:L}e.firstOrDefault=l;function a(_){return[].concat(..._)}e.flatten=a;function s(_,L){let w=typeof L=="number"?_:0;typeof L=="number"?w=_:(w=0,L=_);const k=[];if(w<=L)for(let D=w;DL;D--)k.push(D);return k}e.range=s;function o(_,L,w){const k=_.slice(0,L),D=_.slice(L);return k.concat(w,D)}e.arrayInsert=o;function n(_,L){const w=_.indexOf(L);w>-1&&(_.splice(w,1),_.unshift(L))}e.pushToStart=n;function d(_,L){const w=_.indexOf(L);w>-1&&(_.splice(w,1),_.push(L))}e.pushToEnd=d;function u(_){return Array.isArray(_)?_:[_]}e.asArray=u;function f(_,L,w){const k=v(_,L),D=_.length,M=w.length;_.length=D+M;for(let O=D-1;O>=k;O--)_[O+M]=_[O];for(let O=0;O=0&&L(this.items[w]);)w--;const k=w===this.lastIdx?null:this.items.slice(w+1,this.lastIdx+1);return this.lastIdx=w,k}peek(){return this.items[this.firstIdx]}dequeue(){const L=this.items[this.firstIdx];return this.firstIdx++,L}takeCount(L){const w=this.items.slice(this.firstIdx,this.firstIdx+L);return this.firstIdx+=L,w}}e.ArrayQueue=m}),define(ee[206],te([0,1]),function(q,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ok=void 0;function y(N,T){if(!N)throw new Error(T?`Assertion failed (${T})`:"Assertion Failed")}e.ok=y}),define(ee[104],te([0,1]),function(q,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.writeUInt8=e.readUInt8=e.writeUInt32BE=e.readUInt32BE=e.writeUInt16LE=e.readUInt16LE=e.VSBuffer=void 0;const y=typeof Buffer!="undefined";let N;class T{constructor(t){this.buffer=t,this.byteLength=this.buffer.byteLength}static wrap(t){return y&&!Buffer.isBuffer(t)&&(t=Buffer.from(t.buffer,t.byteOffset,t.byteLength)),new T(t)}toString(){return y?this.buffer.toString():(N||(N=new TextDecoder),N.decode(this.buffer))}}e.VSBuffer=T;function I(i,t){return i[t+0]<<0>>>0|i[t+1]<<8>>>0}e.readUInt16LE=I;function b(i,t,r){i[r+0]=t&255,t=t>>>8,i[r+1]=t&255}e.writeUInt16LE=b;function C(i,t){return i[t]*Math.pow(2,24)+i[t+1]*Math.pow(2,16)+i[t+2]*Math.pow(2,8)+i[t+3]}e.readUInt32BE=C;function p(i,t,r){i[r+3]=t,t=t>>>8,i[r+2]=t,t=t>>>8,i[r+1]=t,t=t>>>8,i[r]=t}e.writeUInt32BE=p;function h(i,t){return i[t]}e.readUInt8=h;function g(i,t,r){i[r]=t}e.writeUInt8=g}),define(ee[207],te([0,1]),function(q,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.SetMap=e.forEach=void 0;const y=Object.prototype.hasOwnProperty;function N(I,b){for(let C in I)if(y.call(I,C)&&b({key:C,value:I[C]},function(){delete I[C]})===!1)return}e.forEach=N;class T{constructor(){this.map=new Map}add(b,C){let p=this.map.get(b);p||(p=new Set,this.map.set(b,p)),p.add(C)}delete(b,C){const p=this.map.get(b);!p||(p.delete(C),p.size===0&&this.map.delete(b))}forEach(b,C){const p=this.map.get(b);!p||p.forEach(C)}}e.SetMap=T}),define(ee[29],te([0,1]),function(q,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Color=e.HSVA=e.HSLA=e.RGBA=void 0;function y(C,p){const h=Math.pow(10,p);return Math.round(C*h)/h}class N{constructor(p,h,g,i=1){this._rgbaBrand=void 0,this.r=Math.min(255,Math.max(0,p))|0,this.g=Math.min(255,Math.max(0,h))|0,this.b=Math.min(255,Math.max(0,g))|0,this.a=y(Math.max(Math.min(1,i),0),3)}static equals(p,h){return p.r===h.r&&p.g===h.g&&p.b===h.b&&p.a===h.a}}e.RGBA=N;class T{constructor(p,h,g,i){this._hslaBrand=void 0,this.h=Math.max(Math.min(360,p),0)|0,this.s=y(Math.max(Math.min(1,h),0),3),this.l=y(Math.max(Math.min(1,g),0),3),this.a=y(Math.max(Math.min(1,i),0),3)}static equals(p,h){return p.h===h.h&&p.s===h.s&&p.l===h.l&&p.a===h.a}static fromRGBA(p){const h=p.r/255,g=p.g/255,i=p.b/255,t=p.a,r=Math.max(h,g,i),c=Math.min(h,g,i);let l=0,a=0;const s=(c+r)/2,o=r-c;if(o>0){switch(a=Math.min(s<=.5?o/(2*s):o/(2-2*s),1),r){case h:l=(g-i)/o+(g1&&(g-=1),g<1/6?p+(h-p)*6*g:g<1/2?h:g<2/3?p+(h-p)*(2/3-g)*6:p}static toRGBA(p){const h=p.h/360,{s:g,l:i,a:t}=p;let r,c,l;if(g===0)r=c=l=i;else{const a=i<.5?i*(1+g):i+g-i*g,s=2*i-a;r=T._hue2rgb(s,a,h+1/3),c=T._hue2rgb(s,a,h),l=T._hue2rgb(s,a,h-1/3)}return new N(Math.round(r*255),Math.round(c*255),Math.round(l*255),t)}}e.HSLA=T;class I{constructor(p,h,g,i){this._hsvaBrand=void 0,this.h=Math.max(Math.min(360,p),0)|0,this.s=y(Math.max(Math.min(1,h),0),3),this.v=y(Math.max(Math.min(1,g),0),3),this.a=y(Math.max(Math.min(1,i),0),3)}static equals(p,h){return p.h===h.h&&p.s===h.s&&p.v===h.v&&p.a===h.a}static fromRGBA(p){const h=p.r/255,g=p.g/255,i=p.b/255,t=Math.max(h,g,i),r=Math.min(h,g,i),c=t-r,l=t===0?0:c/t;let a;return c===0?a=0:t===h?a=((g-i)/c%6+6)%6:t===g?a=(i-h)/c+2:a=(h-g)/c+4,new I(Math.round(a*60),l,t,p.a)}static toRGBA(p){const{h,s:g,v:i,a:t}=p,r=i*g,c=r*(1-Math.abs(h/60%2-1)),l=i-r;let[a,s,o]=[0,0,0];return h<60?(a=r,s=c):h<120?(a=c,s=r):h<180?(s=r,o=c):h<240?(s=c,o=r):h<300?(a=c,o=r):h<=360&&(a=r,o=c),a=Math.round((a+l)*255),s=Math.round((s+l)*255),o=Math.round((o+l)*255),new N(a,s,o,t)}}e.HSVA=I;class b{constructor(p){if(p)if(p instanceof N)this.rgba=p;else if(p instanceof T)this._hsla=p,this.rgba=T.toRGBA(p);else if(p instanceof I)this._hsva=p,this.rgba=I.toRGBA(p);else throw new Error("Invalid color ctor argument");else throw new Error("Color needs a value")}static fromHex(p){return b.Format.CSS.parseHex(p)||b.red}get hsla(){return this._hsla?this._hsla:T.fromRGBA(this.rgba)}get hsva(){return this._hsva?this._hsva:I.fromRGBA(this.rgba)}equals(p){return!!p&&N.equals(this.rgba,p.rgba)&&T.equals(this.hsla,p.hsla)&&I.equals(this.hsva,p.hsva)}getRelativeLuminance(){const p=b._relativeLuminanceForComponent(this.rgba.r),h=b._relativeLuminanceForComponent(this.rgba.g),g=b._relativeLuminanceForComponent(this.rgba.b),i=.2126*p+.7152*h+.0722*g;return y(i,4)}static _relativeLuminanceForComponent(p){const h=p/255;return h<=.03928?h/12.92:Math.pow((h+.055)/1.055,2.4)}isLighter(){return(this.rgba.r*299+this.rgba.g*587+this.rgba.b*114)/1e3>=128}isLighterThan(p){const h=this.getRelativeLuminance(),g=p.getRelativeLuminance();return h>g}isDarkerThan(p){const h=this.getRelativeLuminance(),g=p.getRelativeLuminance();return h{throw r.stack?new Error(r.message+`
`+r.stack):r},0)}}emit(r){this.listeners.forEach(c=>{c(r)})}onUnexpectedError(r){this.unexpectedErrorHandler(r),this.emit(r)}onUnexpectedExternalError(r){this.unexpectedErrorHandler(r)}}e.ErrorHandler=y,e.errorHandler=new y;function N(t){C(t)||e.errorHandler.onUnexpectedError(t)}e.onUnexpectedError=N;function T(t){C(t)||e.errorHandler.onUnexpectedExternalError(t)}e.onUnexpectedExternalError=T;function I(t){if(t instanceof Error){let{name:r,message:c}=t;const l=t.stacktrace||t.stack;return{$isError:!0,name:r,message:c,stack:l}}return t}e.transformErrorForSerialization=I;const b="Canceled";function C(t){return t instanceof Error&&t.name===b&&t.message===b}e.isPromiseCanceledError=C;function p(){const t=new Error(b);return t.name=t.message,t}e.canceled=p;function h(t){return t?new Error(`Illegal argument: ${t}`):new Error("Illegal argument")}e.illegalArgument=h;function g(t){return t?new Error(`Illegal state: ${t}`):new Error("Illegal state")}e.illegalState=g;class i extends Error{constructor(r){super("NotSupported");r&&(this.message=r)}}e.NotSupportedError=i}),define(ee[84],te([0,1]),function(q,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.once=void 0;function y(N){const T=this;let I=!1,b;return function(){return I||(I=!0,b=N.apply(T,arguments)),b}}e.once=y}),define(ee[132],te([0,1]),function(q,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.defaultGenerator=e.IdGenerator=void 0;class y{constructor(T){this._prefix=T,this._lastId=0}nextId(){return this._prefix+ ++this._lastId}}e.IdGenerator=y,e.defaultGenerator=new y("id#")}),define(ee[55],te([0,1]),function(q,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Iterable=void 0;var y;(function(N){function T(u){return u&&typeof u=="object"&&typeof u[Symbol.iterator]=="function"}N.is=T;const I=Object.freeze([]);function b(){return I}N.empty=b;function*C(u){yield u}N.single=C;function p(u){return u||I}N.from=p;function h(u){return!u||u[Symbol.iterator]().next().done===!0}N.isEmpty=h;function g(u){return u[Symbol.iterator]().next().value}N.first=g;function i(u,f){for(const S of u)if(f(S))return!0;return!1}N.some=i;function t(u,f){for(const S of u)if(f(S))return S}N.find=t;function*r(u,f){for(const S of u)f(S)&&(yield S)}N.filter=r;function*c(u,f){let S=0;for(const v of u)yield f(v,S++)}N.map=c;function*l(...u){for(const f of u)for(const S of f)yield S}N.concat=l;function*a(u){for(const f of u)for(const S of f)yield S}N.concatNested=a;function s(u,f,S){let v=S;for(const m of u)v=f(v,m);return v}N.reduce=s;function*o(u,f,S=u.length){for(f<0&&(f+=u.length),S<0?S+=u.length:S>u.length&&(S=u.length);fv===m){const v=u[Symbol.iterator](),m=f[Symbol.iterator]();for(;;){const _=v.next(),L=m.next();if(_.done!==L.done)return!1;if(_.done)return!0;if(!S(_.value,L.value))return!1}}N.equals=d})(y=e.Iterable||(e.Iterable={}))}),define(ee[56],te([0,1]),function(q,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.KeyChord=e.KeyCodeUtils=e.IMMUTABLE_KEY_CODE_TO_CODE=e.IMMUTABLE_CODE_TO_KEY_CODE=e.NATIVE_WINDOWS_KEY_CODE_TO_KEY_CODE=e.EVENT_KEY_CODE_MAP=void 0;class y{constructor(){this._keyCodeToStr=[],this._strToKeyCode=Object.create(null)}define(t,r){this._keyCodeToStr[t]=r,this._strToKeyCode[r.toLowerCase()]=t}keyCodeToStr(t){return this._keyCodeToStr[t]}strToKeyCode(t){return this._strToKeyCode[t.toLowerCase()]||0}}const N=new y,T=new y,I=new y;e.EVENT_KEY_CODE_MAP=new Array(230),e.NATIVE_WINDOWS_KEY_CODE_TO_KEY_CODE={};const b=[],C=Object.create(null),p=Object.create(null);e.IMMUTABLE_CODE_TO_KEY_CODE=[],e.IMMUTABLE_KEY_CODE_TO_CODE=[];for(let i=0;i<=193;i++)e.IMMUTABLE_CODE_TO_KEY_CODE[i]=-1;for(let i=0;i<=126;i++)e.IMMUTABLE_KEY_CODE_TO_CODE[i]=-1;(function(){const i="",t=[[0,1,0,"None",0,"unknown",0,"VK_UNKNOWN",i,i],[0,1,1,"Hyper",0,i,0,i,i,i],[0,1,2,"Super",0,i,0,i,i,i],[0,1,3,"Fn",0,i,0,i,i,i],[0,1,4,"FnLock",0,i,0,i,i,i],[0,1,5,"Suspend",0,i,0,i,i,i],[0,1,6,"Resume",0,i,0,i,i,i],[0,1,7,"Turbo",0,i,0,i,i,i],[0,1,8,"Sleep",0,i,0,"VK_SLEEP",i,i],[0,1,9,"WakeUp",0,i,0,i,i,i],[31,0,10,"KeyA",31,"A",65,"VK_A",i,i],[32,0,11,"KeyB",32,"B",66,"VK_B",i,i],[33,0,12,"KeyC",33,"C",67,"VK_C",i,i],[34,0,13,"KeyD",34,"D",68,"VK_D",i,i],[35,0,14,"KeyE",35,"E",69,"VK_E",i,i],[36,0,15,"KeyF",36,"F",70,"VK_F",i,i],[37,0,16,"KeyG",37,"G",71,"VK_G",i,i],[38,0,17,"KeyH",38,"H",72,"VK_H",i,i],[39,0,18,"KeyI",39,"I",73,"VK_I",i,i],[40,0,19,"KeyJ",40,"J",74,"VK_J",i,i],[41,0,20,"KeyK",41,"K",75,"VK_K",i,i],[42,0,21,"KeyL",42,"L",76,"VK_L",i,i],[43,0,22,"KeyM",43,"M",77,"VK_M",i,i],[44,0,23,"KeyN",44,"N",78,"VK_N",i,i],[45,0,24,"KeyO",45,"O",79,"VK_O",i,i],[46,0,25,"KeyP",46,"P",80,"VK_P",i,i],[47,0,26,"KeyQ",47,"Q",81,"VK_Q",i,i],[48,0,27,"KeyR",48,"R",82,"VK_R",i,i],[49,0,28,"KeyS",49,"S",83,"VK_S",i,i],[50,0,29,"KeyT",50,"T",84,"VK_T",i,i],[51,0,30,"KeyU",51,"U",85,"VK_U",i,i],[52,0,31,"KeyV",52,"V",86,"VK_V",i,i],[53,0,32,"KeyW",53,"W",87,"VK_W",i,i],[54,0,33,"KeyX",54,"X",88,"VK_X",i,i],[55,0,34,"KeyY",55,"Y",89,"VK_Y",i,i],[56,0,35,"KeyZ",56,"Z",90,"VK_Z",i,i],[22,0,36,"Digit1",22,"1",49,"VK_1",i,i],[23,0,37,"Digit2",23,"2",50,"VK_2",i,i],[24,0,38,"Digit3",24,"3",51,"VK_3",i,i],[25,0,39,"Digit4",25,"4",52,"VK_4",i,i],[26,0,40,"Digit5",26,"5",53,"VK_5",i,i],[27,0,41,"Digit6",27,"6",54,"VK_6",i,i],[28,0,42,"Digit7",28,"7",55,"VK_7",i,i],[29,0,43,"Digit8",29,"8",56,"VK_8",i,i],[30,0,44,"Digit9",30,"9",57,"VK_9",i,i],[21,0,45,"Digit0",21,"0",48,"VK_0",i,i],[3,1,46,"Enter",3,"Enter",13,"VK_RETURN",i,i],[9,1,47,"Escape",9,"Escape",27,"VK_ESCAPE",i,i],[1,1,48,"Backspace",1,"Backspace",8,"VK_BACK",i,i],[2,1,49,"Tab",2,"Tab",9,"VK_TAB",i,i],[10,1,50,"Space",10,"Space",32,"VK_SPACE",i,i],[83,0,51,"Minus",83,"-",189,"VK_OEM_MINUS","-","OEM_MINUS"],[81,0,52,"Equal",81,"=",187,"VK_OEM_PLUS","=","OEM_PLUS"],[87,0,53,"BracketLeft",87,"[",219,"VK_OEM_4","[","OEM_4"],[89,0,54,"BracketRight",89,"]",221,"VK_OEM_6","]","OEM_6"],[88,0,55,"Backslash",88,"\\",220,"VK_OEM_5","\\","OEM_5"],[0,0,56,"IntlHash",0,i,0,i,i,i],[80,0,57,"Semicolon",80,";",186,"VK_OEM_1",";","OEM_1"],[90,0,58,"Quote",90,"'",222,"VK_OEM_7","'","OEM_7"],[86,0,59,"Backquote",86,"`",192,"VK_OEM_3","`","OEM_3"],[82,0,60,"Comma",82,",",188,"VK_OEM_COMMA",",","OEM_COMMA"],[84,0,61,"Period",84,".",190,"VK_OEM_PERIOD",".","OEM_PERIOD"],[85,0,62,"Slash",85,"/",191,"VK_OEM_2","/","OEM_2"],[8,1,63,"CapsLock",8,"CapsLock",20,"VK_CAPITAL",i,i],[59,1,64,"F1",59,"F1",112,"VK_F1",i,i],[60,1,65,"F2",60,"F2",113,"VK_F2",i,i],[61,1,66,"F3",61,"F3",114,"VK_F3",i,i],[62,1,67,"F4",62,"F4",115,"VK_F4",i,i],[63,1,68,"F5",63,"F5",116,"VK_F5",i,i],[64,1,69,"F6",64,"F6",117,"VK_F6",i,i],[65,1,70,"F7",65,"F7",118,"VK_F7",i,i],[66,1,71,"F8",66,"F8",119,"VK_F8",i,i],[67,1,72,"F9",67,"F9",120,"VK_F9",i,i],[68,1,73,"F10",68,"F10",121,"VK_F10",i,i],[69,1,74,"F11",69,"F11",122,"VK_F11",i,i],[70,1,75,"F12",70,"F12",123,"VK_F12",i,i],[0,1,76,"PrintScreen",0,i,0,i,i,i],[79,1,77,"ScrollLock",79,"ScrollLock",145,"VK_SCROLL",i,i],[7,1,78,"Pause",7,"PauseBreak",19,"VK_PAUSE",i,i],[19,1,79,"Insert",19,"Insert",45,"VK_INSERT",i,i],[14,1,80,"Home",14,"Home",36,"VK_HOME",i,i],[11,1,81,"PageUp",11,"PageUp",33,"VK_PRIOR",i,i],[20,1,82,"Delete",20,"Delete",46,"VK_DELETE",i,i],[13,1,83,"End",13,"End",35,"VK_END",i,i],[12,1,84,"PageDown",12,"PageDown",34,"VK_NEXT",i,i],[17,1,85,"ArrowRight",17,"RightArrow",39,"VK_RIGHT","Right",i],[15,1,86,"ArrowLeft",15,"LeftArrow",37,"VK_LEFT","Left",i],[18,1,87,"ArrowDown",18,"DownArrow",40,"VK_DOWN","Down",i],[16,1,88,"ArrowUp",16,"UpArrow",38,"VK_UP","Up",i],[78,1,89,"NumLock",78,"NumLock",144,"VK_NUMLOCK",i,i],[108,1,90,"NumpadDivide",108,"NumPad_Divide",111,"VK_DIVIDE",i,i],[103,1,91,"NumpadMultiply",103,"NumPad_Multiply",106,"VK_MULTIPLY",i,i],[106,1,92,"NumpadSubtract",106,"NumPad_Subtract",109,"VK_SUBTRACT",i,i],[104,1,93,"NumpadAdd",104,"NumPad_Add",107,"VK_ADD",i,i],[3,1,94,"NumpadEnter",3,i,0,i,i,i],[94,1,95,"Numpad1",94,"NumPad1",97,"VK_NUMPAD1",i,i],[95,1,96,"Numpad2",95,"NumPad2",98,"VK_NUMPAD2",i,i],[96,1,97,"Numpad3",96,"NumPad3",99,"VK_NUMPAD3",i,i],[97,1,98,"Numpad4",97,"NumPad4",100,"VK_NUMPAD4",i,i],[98,1,99,"Numpad5",98,"NumPad5",101,"VK_NUMPAD5",i,i],[99,1,100,"Numpad6",99,"NumPad6",102,"VK_NUMPAD6",i,i],[100,1,101,"Numpad7",100,"NumPad7",103,"VK_NUMPAD7",i,i],[101,1,102,"Numpad8",101,"NumPad8",104,"VK_NUMPAD8",i,i],[102,1,103,"Numpad9",102,"NumPad9",105,"VK_NUMPAD9",i,i],[93,1,104,"Numpad0",93,"NumPad0",96,"VK_NUMPAD0",i,i],[107,1,105,"NumpadDecimal",107,"NumPad_Decimal",110,"VK_DECIMAL",i,i],[92,0,106,"IntlBackslash",92,"OEM_102",226,"VK_OEM_102",i,i],[58,1,107,"ContextMenu",58,"ContextMenu",93,i,i,i],[0,1,108,"Power",0,i,0,i,i,i],[0,1,109,"NumpadEqual",0,i,0,i,i,i],[71,1,110,"F13",71,"F13",124,"VK_F13",i,i],[72,1,111,"F14",72,"F14",125,"VK_F14",i,i],[73,1,112,"F15",73,"F15",126,"VK_F15",i,i],[74,1,113,"F16",74,"F16",127,"VK_F16",i,i],[75,1,114,"F17",75,"F17",128,"VK_F17",i,i],[76,1,115,"F18",76,"F18",129,"VK_F18",i,i],[77,1,116,"F19",77,"F19",130,"VK_F19",i,i],[0,1,117,"F20",0,i,0,"VK_F20",i,i],[0,1,118,"F21",0,i,0,"VK_F21",i,i],[0,1,119,"F22",0,i,0,"VK_F22",i,i],[0,1,120,"F23",0,i,0,"VK_F23",i,i],[0,1,121,"F24",0,i,0,"VK_F24",i,i],[0,1,122,"Open",0,i,0,i,i,i],[0,1,123,"Help",0,i,0,i,i,i],[0,1,124,"Select",0,i,0,i,i,i],[0,1,125,"Again",0,i,0,i,i,i],[0,1,126,"Undo",0,i,0,i,i,i],[0,1,127,"Cut",0,i,0,i,i,i],[0,1,128,"Copy",0,i,0,i,i,i],[0,1,129,"Paste",0,i,0,i,i,i],[0,1,130,"Find",0,i,0,i,i,i],[0,1,131,"AudioVolumeMute",112,"AudioVolumeMute",173,"VK_VOLUME_MUTE",i,i],[0,1,132,"AudioVolumeUp",113,"AudioVolumeUp",175,"VK_VOLUME_UP",i,i],[0,1,133,"AudioVolumeDown",114,"AudioVolumeDown",174,"VK_VOLUME_DOWN",i,i],[105,1,134,"NumpadComma",105,"NumPad_Separator",108,"VK_SEPARATOR",i,i],[110,0,135,"IntlRo",110,"ABNT_C1",193,"VK_ABNT_C1",i,i],[0,1,136,"KanaMode",0,i,0,i,i,i],[0,0,137,"IntlYen",0,i,0,i,i,i],[0,1,138,"Convert",0,i,0,i,i,i],[0,1,139,"NonConvert",0,i,0,i,i,i],[0,1,140,"Lang1",0,i,0,i,i,i],[0,1,141,"Lang2",0,i,0,i,i,i],[0,1,142,"Lang3",0,i,0,i,i,i],[0,1,143,"Lang4",0,i,0,i,i,i],[0,1,144,"Lang5",0,i,0,i,i,i],[0,1,145,"Abort",0,i,0,i,i,i],[0,1,146,"Props",0,i,0,i,i,i],[0,1,147,"NumpadParenLeft",0,i,0,i,i,i],[0,1,148,"NumpadParenRight",0,i,0,i,i,i],[0,1,149,"NumpadBackspace",0,i,0,i,i,i],[0,1,150,"NumpadMemoryStore",0,i,0,i,i,i],[0,1,151,"NumpadMemoryRecall",0,i,0,i,i,i],[0,1,152,"NumpadMemoryClear",0,i,0,i,i,i],[0,1,153,"NumpadMemoryAdd",0,i,0,i,i,i],[0,1,154,"NumpadMemorySubtract",0,i,0,i,i,i],[0,1,155,"NumpadClear",0,i,0,i,i,i],[0,1,156,"NumpadClearEntry",0,i,0,i,i,i],[5,1,0,i,5,"Ctrl",17,"VK_CONTROL",i,i],[4,1,0,i,4,"Shift",16,"VK_SHIFT",i,i],[6,1,0,i,6,"Alt",18,"VK_MENU",i,i],[57,1,0,i,57,"Meta",0,"VK_COMMAND",i,i],[5,1,157,"ControlLeft",5,i,0,"VK_LCONTROL",i,i],[4,1,158,"ShiftLeft",4,i,0,"VK_LSHIFT",i,i],[6,1,159,"AltLeft",6,i,0,"VK_LMENU",i,i],[57,1,160,"MetaLeft",57,i,0,"VK_LWIN",i,i],[5,1,161,"ControlRight",5,i,0,"VK_RCONTROL",i,i],[4,1,162,"ShiftRight",4,i,0,"VK_RSHIFT",i,i],[6,1,163,"AltRight",6,i,0,"VK_RMENU",i,i],[57,1,164,"MetaRight",57,i,0,"VK_RWIN",i,i],[0,1,165,"BrightnessUp",0,i,0,i,i,i],[0,1,166,"BrightnessDown",0,i,0,i,i,i],[0,1,167,"MediaPlay",0,i,0,i,i,i],[0,1,168,"MediaRecord",0,i,0,i,i,i],[0,1,169,"MediaFastForward",0,i,0,i,i,i],[0,1,170,"MediaRewind",0,i,0,i,i,i],[114,1,171,"MediaTrackNext",119,"MediaTrackNext",176,"VK_MEDIA_NEXT_TRACK",i,i],[115,1,172,"MediaTrackPrevious",120,"MediaTrackPrevious",177,"VK_MEDIA_PREV_TRACK",i,i],[116,1,173,"MediaStop",121,"MediaStop",178,"VK_MEDIA_STOP",i,i],[0,1,174,"Eject",0,i,0,i,i,i],[117,1,175,"MediaPlayPause",122,"MediaPlayPause",179,"VK_MEDIA_PLAY_PAUSE",i,i],[0,1,176,"MediaSelect",123,"LaunchMediaPlayer",181,"VK_MEDIA_LAUNCH_MEDIA_SELECT",i,i],[0,1,177,"LaunchMail",124,"LaunchMail",180,"VK_MEDIA_LAUNCH_MAIL",i,i],[0,1,178,"LaunchApp2",125,"LaunchApp2",183,"VK_MEDIA_LAUNCH_APP2",i,i],[0,1,179,"LaunchApp1",0,i,0,"VK_MEDIA_LAUNCH_APP1",i,i],[0,1,180,"SelectTask",0,i,0,i,i,i],[0,1,181,"LaunchScreenSaver",0,i,0,i,i,i],[0,1,182,"BrowserSearch",115,"BrowserSearch",170,"VK_BROWSER_SEARCH",i,i],[0,1,183,"BrowserHome",116,"BrowserHome",172,"VK_BROWSER_HOME",i,i],[112,1,184,"BrowserBack",117,"BrowserBack",166,"VK_BROWSER_BACK",i,i],[113,1,185,"BrowserForward",118,"BrowserForward",167,"VK_BROWSER_FORWARD",i,i],[0,1,186,"BrowserStop",0,i,0,"VK_BROWSER_STOP",i,i],[0,1,187,"BrowserRefresh",0,i,0,"VK_BROWSER_REFRESH",i,i],[0,1,188,"BrowserFavorites",0,i,0,"VK_BROWSER_FAVORITES",i,i],[0,1,189,"ZoomToggle",0,i,0,i,i,i],[0,1,190,"MailReply",0,i,0,i,i,i],[0,1,191,"MailForward",0,i,0,i,i,i],[0,1,192,"MailSend",0,i,0,i,i,i],[109,1,0,i,109,"KeyInComposition",229,i,i,i],[111,1,0,i,111,"ABNT_C2",194,"VK_ABNT_C2",i,i],[91,1,0,i,91,"OEM_8",223,"VK_OEM_8",i,i],[0,1,0,i,0,i,0,"VK_CLEAR",i,i],[0,1,0,i,0,i,0,"VK_KANA",i,i],[0,1,0,i,0,i,0,"VK_HANGUL",i,i],[0,1,0,i,0,i,0,"VK_JUNJA",i,i],[0,1,0,i,0,i,0,"VK_FINAL",i,i],[0,1,0,i,0,i,0,"VK_HANJA",i,i],[0,1,0,i,0,i,0,"VK_KANJI",i,i],[0,1,0,i,0,i,0,"VK_CONVERT",i,i],[0,1,0,i,0,i,0,"VK_NONCONVERT",i,i],[0,1,0,i,0,i,0,"VK_ACCEPT",i,i],[0,1,0,i,0,i,0,"VK_MODECHANGE",i,i],[0,1,0,i,0,i,0,"VK_SELECT",i,i],[0,1,0,i,0,i,0,"VK_PRINT",i,i],[0,1,0,i,0,i,0,"VK_EXECUTE",i,i],[0,1,0,i,0,i,0,"VK_SNAPSHOT",i,i],[0,1,0,i,0,i,0,"VK_HELP",i,i],[0,1,0,i,0,i,0,"VK_APPS",i,i],[0,1,0,i,0,i,0,"VK_PROCESSKEY",i,i],[0,1,0,i,0,i,0,"VK_PACKET",i,i],[0,1,0,i,0,i,0,"VK_DBE_SBCSCHAR",i,i],[0,1,0,i,0,i,0,"VK_DBE_DBCSCHAR",i,i],[0,1,0,i,0,i,0,"VK_ATTN",i,i],[0,1,0,i,0,i,0,"VK_CRSEL",i,i],[0,1,0,i,0,i,0,"VK_EXSEL",i,i],[0,1,0,i,0,i,0,"VK_EREOF",i,i],[0,1,0,i,0,i,0,"VK_PLAY",i,i],[0,1,0,i,0,i,0,"VK_ZOOM",i,i],[0,1,0,i,0,i,0,"VK_NONAME",i,i],[0,1,0,i,0,i,0,"VK_PA1",i,i],[0,1,0,i,0,i,0,"VK_OEM_CLEAR",i,i]];let r=[],c=[];for(const l of t){const[a,s,o,n,d,u,f,S,v,m]=l;if(c[o]||(c[o]=!0,b[o]=n,C[n]=o,p[n.toLowerCase()]=o,s&&(e.IMMUTABLE_CODE_TO_KEY_CODE[o]=d,d!==0&&d!==3&&d!==5&&d!==4&&d!==6&&d!==57&&(e.IMMUTABLE_KEY_CODE_TO_CODE[d]=o))),!r[d]){if(r[d]=!0,!u)throw new Error(`String representation missing for key code ${d} around scan code ${n}`);N.define(d,u),T.define(d,v||u),I.define(d,m||v||u)}f&&(e.EVENT_KEY_CODE_MAP[f]=d),S&&(e.NATIVE_WINDOWS_KEY_CODE_TO_KEY_CODE[S]=d)}e.IMMUTABLE_KEY_CODE_TO_CODE[3]=46})();var h;(function(i){function t(o){return N.keyCodeToStr(o)}i.toString=t;function r(o){return N.strToKeyCode(o)}i.fromString=r;function c(o){return T.keyCodeToStr(o)}i.toUserSettingsUS=c;function l(o){return I.keyCodeToStr(o)}i.toUserSettingsGeneral=l;function a(o){return T.strToKeyCode(o)||I.strToKeyCode(o)}i.fromUserSettings=a;function s(o){if(o>=93&&o<=108)return null;switch(o){case 16:return"Up";case 18:return"Down";case 15:return"Left";case 17:return"Right"}return N.keyCodeToStr(o)}i.toElectronAccelerator=s})(h=e.KeyCodeUtils||(e.KeyCodeUtils={}));function g(i,t){const r=(t&65535)<<16>>>0;return(i|r)>>>0}e.KeyChord=g}),define(ee[95],te([0,1,13]),function(q,e,y){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ResolvedKeybinding=e.ResolvedKeybindingPart=e.ScanCodeBinding=e.ChordKeybinding=e.SimpleKeybinding=e.createSimpleKeybinding=e.createKeybinding=void 0;function N(g,i){if(g===0)return null;const t=(g&65535)>>>0,r=(g&4294901760)>>>16;return r!==0?new b([T(t,i),T(r,i)]):new b([T(t,i)])}e.createKeybinding=N;function T(g,i){const t=!!(g&2048),r=!!(g&256),c=i===2?r:t,l=!!(g&1024),a=!!(g&512),s=i===2?t:r,o=g&255;return new I(c,l,a,s,o)}e.createSimpleKeybinding=T;class I{constructor(i,t,r,c,l){this.ctrlKey=i,this.shiftKey=t,this.altKey=r,this.metaKey=c,this.keyCode=l}equals(i){return this.ctrlKey===i.ctrlKey&&this.shiftKey===i.shiftKey&&this.altKey===i.altKey&&this.metaKey===i.metaKey&&this.keyCode===i.keyCode}isModifierKey(){return this.keyCode===0||this.keyCode===5||this.keyCode===57||this.keyCode===6||this.keyCode===4}toChord(){return new b([this])}isDuplicateModifierCase(){return this.ctrlKey&&this.keyCode===5||this.shiftKey&&this.keyCode===4||this.altKey&&this.keyCode===6||this.metaKey&&this.keyCode===57}}e.SimpleKeybinding=I;class b{constructor(i){if(i.length===0)throw(0,y.illegalArgument)("parts");this.parts=i}}e.ChordKeybinding=b;class C{constructor(i,t,r,c,l){this.ctrlKey=i,this.shiftKey=t,this.altKey=r,this.metaKey=c,this.scanCode=l}isDuplicateModifierCase(){return this.ctrlKey&&(this.scanCode===157||this.scanCode===161)||this.shiftKey&&(this.scanCode===158||this.scanCode===162)||this.altKey&&(this.scanCode===159||this.scanCode===163)||this.metaKey&&(this.scanCode===160||this.scanCode===164)}}e.ScanCodeBinding=C;class p{constructor(i,t,r,c,l,a){this.ctrlKey=i,this.shiftKey=t,this.altKey=r,this.metaKey=c,this.keyLabel=l,this.keyAriaLabel=a}}e.ResolvedKeybindingPart=p;class h{}e.ResolvedKeybinding=h}),define(ee[163],te([0,1]),function(q,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Lazy=void 0;class y{constructor(T){this.executor=T,this._didRun=!1}getValue(){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}}e.Lazy=y}),define(ee[2],te([0,1,84,55]),function(q,e,y,N){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ImmortalReference=e.MutableDisposable=e.Disposable=e.DisposableStore=e.toDisposable=e.combinedDisposable=e.dispose=e.isDisposable=e.MultiDisposeError=e.markAsSingleton=e.setDisposableTracker=void 0;const T=!1;let I=null;function b(u){I=u}if(e.setDisposableTracker=b,T){const u="__is_disposable_tracked__";b(new class{trackDisposable(f){const S=new Error("Potentially leaked disposable").stack;setTimeout(()=>{f[u]||console.log(S)},3e3)}setParent(f,S){if(f&&f!==o.None)try{f[u]=!0}catch(v){}}markAsDisposed(f){if(f&&f!==o.None)try{f[u]=!0}catch(S){}}markAsSingleton(f){}})}function C(u){return I==null||I.trackDisposable(u),u}function p(u){I==null||I.markAsDisposed(u)}function h(u,f){I==null||I.setParent(u,f)}function g(u,f){if(!!I)for(const S of u)I.setParent(S,f)}function i(u){return I==null||I.markAsSingleton(u),u}e.markAsSingleton=i;class t extends Error{constructor(f){super(`Encountered errors while disposing of store. Errors: [${f.join(", ")}]`);this.errors=f}}e.MultiDisposeError=t;function r(u){return typeof u.dispose=="function"&&u.dispose.length===0}e.isDisposable=r;function c(u){if(N.Iterable.is(u)){let f=[];for(const S of u)if(S)try{S.dispose()}catch(v){f.push(v)}if(f.length===1)throw f[0];if(f.length>1)throw new t(f);return Array.isArray(u)?[]:u}else if(u)return u.dispose(),u}e.dispose=c;function l(...u){const f=a(()=>c(u));return g(u,f),f}e.combinedDisposable=l;function a(u){const f=C({dispose:(0,y.once)(()=>{p(f),u()})});return f}e.toDisposable=a;class s{constructor(){this._toDispose=new Set,this._isDisposed=!1,C(this)}dispose(){this._isDisposed||(p(this),this._isDisposed=!0,this.clear())}clear(){try{c(this._toDispose.values())}finally{this._toDispose.clear()}}add(f){if(!f)return f;if(f===this)throw new Error("Cannot register a disposable on itself!");return h(f,this),this._isDisposed?s.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(f),f}}e.DisposableStore=s,s.DISABLE_DISPOSED_WARNING=!1;class o{constructor(){this._store=new s,C(this),h(this._store,this)}dispose(){p(this),this._store.dispose()}_register(f){if(f===this)throw new Error("Cannot register a disposable on itself!");return this._store.add(f)}}e.Disposable=o,o.None=Object.freeze({dispose(){}});class n{constructor(){this._isDisposed=!1,C(this)}get value(){return this._isDisposed?void 0:this._value}set value(f){var S;this._isDisposed||f===this._value||((S=this._value)===null||S===void 0||S.dispose(),f&&h(f,this),this._value=f)}clear(){this.value=void 0}dispose(){var f;this._isDisposed=!0,p(this),(f=this._value)===null||f===void 0||f.dispose(),this._value=void 0}clearAndLeak(){const f=this._value;return this._value=void 0,f&&h(f,null),f}}e.MutableDisposable=n;class d{constructor(f){this.object=f}dispose(){}}e.ImmortalReference=d}),define(ee[77],te([0,1]),function(q,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.LinkedList=void 0;class y{constructor(I){this.element=I,this.next=y.Undefined,this.prev=y.Undefined}}y.Undefined=new y(void 0);class N{constructor(){this._first=y.Undefined,this._last=y.Undefined,this._size=0}get size(){return this._size}isEmpty(){return this._first===y.Undefined}clear(){let I=this._first;for(;I!==y.Undefined;){const b=I.next;I.prev=y.Undefined,I.next=y.Undefined,I=b}this._first=y.Undefined,this._last=y.Undefined,this._size=0}unshift(I){return this._insert(I,!1)}push(I){return this._insert(I,!0)}_insert(I,b){const C=new y(I);if(this._first===y.Undefined)this._first=C,this._last=C;else if(b){const h=this._last;this._last=C,C.prev=h,h.next=C}else{const h=this._first;this._first=C,C.next=h,h.prev=C}this._size+=1;let p=!1;return()=>{p||(p=!0,this._remove(C))}}shift(){if(this._first!==y.Undefined){const I=this._first.element;return this._remove(this._first),I}}pop(){if(this._last!==y.Undefined){const I=this._last.element;return this._remove(this._last),I}}_remove(I){if(I.prev!==y.Undefined&&I.next!==y.Undefined){const b=I.prev;b.next=I.next,I.next.prev=b}else I.prev===y.Undefined&&I.next===y.Undefined?(this._first=y.Undefined,this._last=y.Undefined):I.next===y.Undefined?(this._last=this._last.prev,this._last.next=y.Undefined):I.prev===y.Undefined&&(this._first=this._first.next,this._first.prev=y.Undefined);this._size-=1}*[Symbol.iterator](){let I=this._first;for(;I!==y.Undefined;)yield I.element,I=I.next}}e.LinkedList=N}),function(q,e){typeof exports=="object"&&typeof module!="undefined"?module.exports=e():typeof define=="function"&&define.amd?define("vs/base/common/marked/marked",e):(q=typeof globalThis!="undefined"?globalThis:q||self,q.marked=e())}(this,function(){"use strict";function q(Te,Ne){for(var Me=0;MeTe.length)&&(Ne=Te.length);for(var Me=0,me=new Array(Ne);Me=Te.length?{done:!0}:{done:!1,value:Te[me++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var I={exports:{}};function b(){return{baseUrl:null,breaks:!1,extensions:null,gfm:!0,headerIds:!0,headerPrefix:"",highlight:null,langPrefix:"language-",mangle:!0,pedantic:!1,renderer:null,sanitize:!1,sanitizer:null,silent:!1,smartLists:!1,smartypants:!1,tokenizer:null,walkTokens:null,xhtml:!1}}function C(Te){I.exports.defaults=Te}I.exports={defaults:b(),getDefaults:b,changeDefaults:C};var p=/[&<>"']/,h=/[&<>"']/g,g=/[<>"']|&(?!#?\w+;)/,i=/[<>"']|&(?!#?\w+;)/g,t={"&":"&","<":"<",">":">",'"':""","'":"'"},r=function(Ne){return t[Ne]};function c(Te,Ne){if(Ne){if(p.test(Te))return Te.replace(h,r)}else if(g.test(Te))return Te.replace(i,r);return Te}var l=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig;function a(Te){return Te.replace(l,function(Ne,Me){return Me=Me.toLowerCase(),Me==="colon"?":":Me.charAt(0)==="#"?Me.charAt(1)==="x"?String.fromCharCode(parseInt(Me.substring(2),16)):String.fromCharCode(+Me.substring(1)):""})}var s=/(^|[^\[])\^/g;function o(Te,Ne){Te=Te.source||Te,Ne=Ne||"";var Me={replace:function(ve,Ie){return Ie=Ie.source||Ie,Ie=Ie.replace(s,"$1"),Te=Te.replace(ve,Ie),Me},getRegex:function(){return new RegExp(Te,Ne)}};return Me}var n=/[^\w:]/g,d=/^$|^[a-z][a-z0-9+.-]*:|^[?#]/i;function u(Te,Ne,Me){if(Te){var me;try{me=decodeURIComponent(a(Me)).replace(n,"").toLowerCase()}catch(ve){return null}if(me.indexOf("javascript:")===0||me.indexOf("vbscript:")===0||me.indexOf("data:")===0)return null}Ne&&!d.test(Me)&&(Me=_(Ne,Me));try{Me=encodeURI(Me).replace(/%25/g,"%")}catch(ve){return null}return Me}var f={},S=/^[^:]+:\/*[^/]*$/,v=/^([^:]+:)[\s\S]*$/,m=/^([^:]+:\/*[^/]*)[\s\S]*$/;function _(Te,Ne){f[" "+Te]||(S.test(Te)?f[" "+Te]=Te+"/":f[" "+Te]=D(Te,"/",!0)),Te=f[" "+Te];var Me=Te.indexOf(":")===-1;return Ne.substring(0,2)==="//"?Me?Ne:Te.replace(v,"$1")+Ne:Ne.charAt(0)==="/"?Me?Ne:Te.replace(m,"$1")+Ne:Te+Ne}var L={exec:function(){}};function w(Te){for(var Ne=1,Me,me;Ne=0&&we[Re]==="\\";)Oe=!Oe;return Oe?"|":" |"}),me=Me.split(/ \|/),ve=0;if(me[0].trim()||me.shift(),me[me.length-1].trim()||me.pop(),me.length>Ne)me.splice(Ne);else for(;me.length1;)Ne&1&&(Me+=Te),Ne>>=1,Te+=Te;return Me+Te}var R={escape:c,unescape:a,edit:o,cleanUrl:u,resolveUrl:_,noopTest:L,merge:w,splitCells:k,rtrim:D,findClosingBracket:M,checkSanitizeDeprecation:O,repeatString:F},A=I.exports.defaults,P=R.rtrim,E=R.splitCells,B=R.escape,V=R.findClosingBracket;function j(Te,Ne,Me,me){var ve=Ne.href,Ie=Ne.title?B(Ne.title):null,ye=Te[1].replace(/\\([\[\]])/g,"$1");if(Te[0].charAt(0)!=="!"){me.state.inLink=!0;var we={type:"link",raw:Me,href:ve,title:Ie,text:ye,tokens:me.inlineTokens(ye,[])};return me.state.inLink=!1,we}else return{type:"image",raw:Me,href:ve,title:Ie,text:B(ye)}}function K(Te,Ne){var Me=Te.match(/^(\s+)(?:```)/);if(Me===null)return Ne;var me=Me[1];return Ne.split(`
`).map(function(ve){var Ie=ve.match(/^\s+/);if(Ie===null)return ve;var ye=Ie[0];return ye.length>=me.length?ve.slice(me.length):ve}).join(`
`)}var Y=function(){function Te(Me){this.options=Me||A}var Ne=Te.prototype;return Ne.space=function(me){var ve=this.rules.block.newline.exec(me);if(ve)return ve[0].length>1?{type:"space",raw:ve[0]}:{raw:`
`}},Ne.code=function(me){var ve=this.rules.block.code.exec(me);if(ve){var Ie=ve[0].replace(/^ {1,4}/gm,"");return{type:"code",raw:ve[0],codeBlockStyle:"indented",text:this.options.pedantic?Ie:P(Ie,`
`)}}},Ne.fences=function(me){var ve=this.rules.block.fences.exec(me);if(ve){var Ie=ve[0],ye=K(Ie,ve[3]||"");return{type:"code",raw:Ie,lang:ve[2]?ve[2].trim():ve[2],text:ye}}},Ne.heading=function(me){var ve=this.rules.block.heading.exec(me);if(ve){var Ie=ve[2].trim();if(/#$/.test(Ie)){var ye=P(Ie,"#");(this.options.pedantic||!ye||/ $/.test(ye))&&(Ie=ye.trim())}var we={type:"heading",raw:ve[0],depth:ve[1].length,text:Ie,tokens:[]};return this.lexer.inline(we.text,we.tokens),we}},Ne.hr=function(me){var ve=this.rules.block.hr.exec(me);if(ve)return{type:"hr",raw:ve[0]}},Ne.blockquote=function(me){var ve=this.rules.block.blockquote.exec(me);if(ve){var Ie=ve[0].replace(/^ *> ?/gm,"");return{type:"blockquote",raw:ve[0],tokens:this.lexer.blockTokens(Ie,[]),text:Ie}}},Ne.list=function(me){var ve=this.rules.block.list.exec(me);if(ve){var Ie,ye,we,Oe,Re,We,Ke,He,Ge,qe,Ue=ve[1].trim(),Qe=Ue.length>1,Ye={type:"list",raw:"",ordered:Qe,start:Qe?+Ue.slice(0,-1):"",loose:!1,items:[]};Ue=Qe?"\\d{1,9}\\"+Ue.slice(-1):"\\"+Ue,this.options.pedantic&&(Ue=Qe?Ue:"[*+-]");for(var et=new RegExp("^( {0,3}"+Ue+")((?: [^\\n]*| *)(?:\\n[^\\n]*)*(?:\\n|$))");me&&!(this.rules.block.hr.test(me)||!(ve=et.exec(me)));){Ge=ve[2].split(`
`),this.options.pedantic?(Oe=2,qe=Ge[0].trimLeft()):(Oe=ve[2].search(/[^ ]/),Oe=ve[1].length+(Oe>4?1:Oe),qe=Ge[0].slice(Oe-ve[1].length)),We=!1,Ie=ve[0],!Ge[0]&&/^ *$/.test(Ge[1])&&(Ie=ve[1]+Ge.slice(0,2).join(`
`)+`
`,Ye.loose=!0,Ge=[]);var st=new RegExp("^ {0,"+Math.min(3,Oe-1)+"}(?:[*+-]|\\d{1,9}[.)])");for(Re=1;Re=Oe?qe+=`
`+He.slice(Oe):qe+=`
`+He;continue}if(He.search(/[^ ]/)>=Oe||!He.trim()){qe+=`
`+He.slice(Oe);continue}else{Ie=ve[1]+Ge.slice(0,Re).join(`
`)+`
`;break}}Ye.loose||(Ke?Ye.loose=!0:/\n *\n *$/.test(Ie)&&(Ke=!0)),this.options.gfm&&(ye=/^\[[ xX]\] /.exec(qe),ye&&(we=ye[0]!=="[ ] ",qe=qe.replace(/^\[[ xX]\] +/,""))),Ye.items.push({type:"list_item",raw:Ie,task:!!ye,checked:we,loose:!1,text:qe}),Ye.raw+=Ie,me=me.slice(Ie.length)}Ye.items[Ye.items.length-1].raw=Ie.trimRight(),Ye.items[Ye.items.length-1].text=qe.trimRight(),Ye.raw=Ye.raw.trimRight();var Je=Ye.items.length;for(Re=0;Re/i.test(ve[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&/^<(pre|code|kbd|script)(\s|>)/i.test(ve[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&/^<\/(pre|code|kbd|script)(\s|>)/i.test(ve[0])&&(this.lexer.state.inRawBlock=!1),{type:this.options.sanitize?"text":"html",raw:ve[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,text:this.options.sanitize?this.options.sanitizer?this.options.sanitizer(ve[0]):B(ve[0]):ve[0]}},Ne.link=function(me){var ve=this.rules.inline.link.exec(me);if(ve){var Ie=ve[2].trim();if(!this.options.pedantic&&/^$/.test(Ie))return;var ye=P(Ie.slice(0,-1),"\\");if((Ie.length-ye.length)%2==0)return}else{var we=V(ve[2],"()");if(we>-1){var Oe=ve[0].indexOf("!")===0?5:4,Re=Oe+ve[1].length+we;ve[2]=ve[2].substring(0,we),ve[0]=ve[0].substring(0,Re).trim(),ve[3]=""}}var We=ve[2],Ke="";if(this.options.pedantic){var He=/^([^'"]*[^\s])\s+(['"])(.*)\2/.exec(We);He&&(We=He[1],Ke=He[3])}else Ke=ve[3]?ve[3].slice(1,-1):"";return We=We.trim(),/^$/.test(Ie)?We=We.slice(1):We=We.slice(1,-1)),j(ve,{href:We&&We.replace(this.rules.inline._escapes,"$1"),title:Ke&&Ke.replace(this.rules.inline._escapes,"$1")},ve[0],this.lexer)}},Ne.reflink=function(me,ve){var Ie;if((Ie=this.rules.inline.reflink.exec(me))||(Ie=this.rules.inline.nolink.exec(me))){var ye=(Ie[2]||Ie[1]).replace(/\s+/g," ");if(ye=ve[ye.toLowerCase()],!ye||!ye.href){var we=Ie[0].charAt(0);return{type:"text",raw:we,text:we}}return j(Ie,ye,Ie[0],this.lexer)}},Ne.emStrong=function(me,ve,Ie){Ie===void 0&&(Ie="");var ye=this.rules.inline.emStrong.lDelim.exec(me);if(!!ye&&!(ye[3]&&Ie.match(/(?:[0-9A-Za-z\xAA\xB2\xB3\xB5\xB9\xBA\xBC-\xBE\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0560-\u0588\u05D0-\u05EA\u05EF-\u05F2\u0620-\u064A\u0660-\u0669\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07C0-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u08A0-\u08B4\u08B6-\u08C7\u0904-\u0939\u093D\u0950\u0958-\u0961\u0966-\u096F\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09E6-\u09F1\u09F4-\u09F9\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A66-\u0A6F\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AE6-\u0AEF\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B66-\u0B6F\u0B71-\u0B77\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0BE6-\u0BF2\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C60\u0C61\u0C66-\u0C6F\u0C78-\u0C7E\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CE6-\u0CEF\u0CF1\u0CF2\u0D04-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D58-\u0D61\u0D66-\u0D78\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0DE6-\u0DEF\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E50-\u0E59\u0E81\u0E82\u0E84\u0E86-\u0E8A\u0E8C-\u0EA3\u0EA5\u0EA7-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0ED0-\u0ED9\u0EDC-\u0EDF\u0F00\u0F20-\u0F33\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F-\u1049\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u1090-\u1099\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1369-\u137C\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u17E0-\u17E9\u17F0-\u17F9\u1810-\u1819\u1820-\u1878\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1946-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u19D0-\u19DA\u1A00-\u1A16\u1A20-\u1A54\u1A80-\u1A89\u1A90-\u1A99\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B50-\u1B59\u1B83-\u1BA0\u1BAE-\u1BE5\u1C00-\u1C23\u1C40-\u1C49\u1C4D-\u1C7D\u1C80-\u1C88\u1C90-\u1CBA\u1CBD-\u1CBF\u1CE9-\u1CEC\u1CEE-\u1CF3\u1CF5\u1CF6\u1CFA\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2070\u2071\u2074-\u2079\u207F-\u2089\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2150-\u2189\u2460-\u249B\u24EA-\u24FF\u2776-\u2793\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2CFD\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312F\u3131-\u318E\u3192-\u3195\u31A0-\u31BF\u31F0-\u31FF\u3220-\u3229\u3248-\u324F\u3251-\u325F\u3280-\u3289\u32B1-\u32BF\u3400-\u4DBF\u4E00-\u9FFC\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7BF\uA7C2-\uA7CA\uA7F5-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA830-\uA835\uA840-\uA873\uA882-\uA8B3\uA8D0-\uA8D9\uA8F2-\uA8F7\uA8FB\uA8FD\uA8FE\uA900-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF-\uA9D9\uA9E0-\uA9E4\uA9E6-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA50-\uAA59\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB69\uAB70-\uABE2\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF10-\uFF19\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD07-\uDD33\uDD40-\uDD78\uDD8A\uDD8B\uDE80-\uDE9C\uDEA0-\uDED0\uDEE1-\uDEFB\uDF00-\uDF23\uDF2D-\uDF4A\uDF50-\uDF75\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCA0-\uDCA9\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC58-\uDC76\uDC79-\uDC9E\uDCA7-\uDCAF\uDCE0-\uDCF2\uDCF4\uDCF5\uDCFB-\uDD1B\uDD20-\uDD39\uDD80-\uDDB7\uDDBC-\uDDCF\uDDD2-\uDE00\uDE10-\uDE13\uDE15-\uDE17\uDE19-\uDE35\uDE40-\uDE48\uDE60-\uDE7E\uDE80-\uDE9F\uDEC0-\uDEC7\uDEC9-\uDEE4\uDEEB-\uDEEF\uDF00-\uDF35\uDF40-\uDF55\uDF58-\uDF72\uDF78-\uDF91\uDFA9-\uDFAF]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2\uDCFA-\uDD23\uDD30-\uDD39\uDE60-\uDE7E\uDE80-\uDEA9\uDEB0\uDEB1\uDF00-\uDF27\uDF30-\uDF45\uDF51-\uDF54\uDFB0-\uDFCB\uDFE0-\uDFF6]|\uD804[\uDC03-\uDC37\uDC52-\uDC6F\uDC83-\uDCAF\uDCD0-\uDCE8\uDCF0-\uDCF9\uDD03-\uDD26\uDD36-\uDD3F\uDD44\uDD47\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDD0-\uDDDA\uDDDC\uDDE1-\uDDF4\uDE00-\uDE11\uDE13-\uDE2B\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEDE\uDEF0-\uDEF9\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF50\uDF5D-\uDF61]|\uD805[\uDC00-\uDC34\uDC47-\uDC4A\uDC50-\uDC59\uDC5F-\uDC61\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDCD0-\uDCD9\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE50-\uDE59\uDE80-\uDEAA\uDEB8\uDEC0-\uDEC9\uDF00-\uDF1A\uDF30-\uDF3B]|\uD806[\uDC00-\uDC2B\uDCA0-\uDCF2\uDCFF-\uDD06\uDD09\uDD0C-\uDD13\uDD15\uDD16\uDD18-\uDD2F\uDD3F\uDD41\uDD50-\uDD59\uDDA0-\uDDA7\uDDAA-\uDDD0\uDDE1\uDDE3\uDE00\uDE0B-\uDE32\uDE3A\uDE50\uDE5C-\uDE89\uDE9D\uDEC0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC2E\uDC40\uDC50-\uDC6C\uDC72-\uDC8F\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD30\uDD46\uDD50-\uDD59\uDD60-\uDD65\uDD67\uDD68\uDD6A-\uDD89\uDD98\uDDA0-\uDDA9\uDEE0-\uDEF2\uDFB0\uDFC0-\uDFD4]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD81C-\uD820\uD822\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879\uD880-\uD883][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDE60-\uDE69\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF50-\uDF59\uDF5B-\uDF61\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDE40-\uDE96\uDF00-\uDF4A\uDF50\uDF93-\uDF9F\uDFE0\uDFE1\uDFE3]|\uD821[\uDC00-\uDFF7]|\uD823[\uDC00-\uDCD5\uDD00-\uDD08]|\uD82C[\uDC00-\uDD1E\uDD50-\uDD52\uDD64-\uDD67\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD834[\uDEE0-\uDEF3\uDF60-\uDF78]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB\uDFCE-\uDFFF]|\uD838[\uDD00-\uDD2C\uDD37-\uDD3D\uDD40-\uDD49\uDD4E\uDEC0-\uDEEB\uDEF0-\uDEF9]|\uD83A[\uDC00-\uDCC4\uDCC7-\uDCCF\uDD00-\uDD43\uDD4B\uDD50-\uDD59]|\uD83B[\uDC71-\uDCAB\uDCAD-\uDCAF\uDCB1-\uDCB4\uDD01-\uDD2D\uDD2F-\uDD3D\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD83C[\uDD00-\uDD0C]|\uD83E[\uDFF0-\uDFF9]|\uD869[\uDC00-\uDEDD\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0]|\uD87E[\uDC00-\uDE1D]|\uD884[\uDC00-\uDF4A])/))){var we=ye[1]||ye[2]||"";if(!we||we&&(Ie===""||this.rules.inline.punctuation.exec(Ie))){var Oe=ye[0].length-1,Re,We,Ke=Oe,He=0,Ge=ye[0][0]==="*"?this.rules.inline.emStrong.rDelimAst:this.rules.inline.emStrong.rDelimUnd;for(Ge.lastIndex=0,ve=ve.slice(-1*me.length+Oe);(ye=Ge.exec(ve))!=null;)if(Re=ye[1]||ye[2]||ye[3]||ye[4]||ye[5]||ye[6],!!Re){if(We=Re.length,ye[3]||ye[4]){Ke+=We;continue}else if((ye[5]||ye[6])&&Oe%3&&!((Oe+We)%3)){He+=We;continue}if(Ke-=We,!(Ke>0)){if(We=Math.min(We,We+Ke+He),Math.min(Oe,We)%2){var qe=me.slice(1,Oe+ye.index+We);return{type:"em",raw:me.slice(0,Oe+ye.index+We+1),text:qe,tokens:this.lexer.inlineTokens(qe,[])}}var Ue=me.slice(2,Oe+ye.index+We-1);return{type:"strong",raw:me.slice(0,Oe+ye.index+We+1),text:Ue,tokens:this.lexer.inlineTokens(Ue,[])}}}}}},Ne.codespan=function(me){var ve=this.rules.inline.code.exec(me);if(ve){var Ie=ve[2].replace(/\n/g," "),ye=/[^ ]/.test(Ie),we=/^ /.test(Ie)&&/ $/.test(Ie);return ye&&we&&(Ie=Ie.substring(1,Ie.length-1)),Ie=B(Ie,!0),{type:"codespan",raw:ve[0],text:Ie}}},Ne.br=function(me){var ve=this.rules.inline.br.exec(me);if(ve)return{type:"br",raw:ve[0]}},Ne.del=function(me){var ve=this.rules.inline.del.exec(me);if(ve)return{type:"del",raw:ve[0],text:ve[2],tokens:this.lexer.inlineTokens(ve[2],[])}},Ne.autolink=function(me,ve){var Ie=this.rules.inline.autolink.exec(me);if(Ie){var ye,we;return Ie[2]==="@"?(ye=B(this.options.mangle?ve(Ie[1]):Ie[1]),we="mailto:"+ye):(ye=B(Ie[1]),we=ye),{type:"link",raw:Ie[0],text:ye,href:we,tokens:[{type:"text",raw:ye,text:ye}]}}},Ne.url=function(me,ve){var Ie;if(Ie=this.rules.inline.url.exec(me)){var ye,we;if(Ie[2]==="@")ye=B(this.options.mangle?ve(Ie[0]):Ie[0]),we="mailto:"+ye;else{var Oe;do Oe=Ie[0],Ie[0]=this.rules.inline._backpedal.exec(Ie[0])[0];while(Oe!==Ie[0]);ye=B(Ie[0]),Ie[1]==="www."?we="http://"+ye:we=ye}return{type:"link",raw:Ie[0],text:ye,href:we,tokens:[{type:"text",raw:ye,text:ye}]}}},Ne.inlineText=function(me,ve){var Ie=this.rules.inline.text.exec(me);if(Ie){var ye;return this.lexer.state.inRawBlock?ye=this.options.sanitize?this.options.sanitizer?this.options.sanitizer(Ie[0]):B(Ie[0]):Ie[0]:ye=B(this.options.smartypants?ve(Ie[0]):Ie[0]),{type:"text",raw:Ie[0],text:ye}}},Te}(),J=R.noopTest,Z=R.edit,ie=R.merge,ne={newline:/^(?: *(?:\n|$))+/,code:/^( {4}[^\n]+(?:\n(?: *(?:\n|$))*)?)+/,fences:/^ {0,3}(`{3,}(?=[^`\n]*\n)|~{3,})([^\n]*)\n(?:|([\s\S]*?)\n)(?: {0,3}\1[~`]* *(?=\n|$)|$)/,hr:/^ {0,3}((?:- *){3,}|(?:_ *){3,}|(?:\* *){3,})(?:\n+|$)/,heading:/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,blockquote:/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/,list:/^( {0,3}bull)( [^\n]+?)?(?:\n|$)/,html:"^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|\\n*|$)|\\n*|$)|?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n *)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n *)+\\n|$)|(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n *)+\\n|$))",def:/^ {0,3}\[(label)\]: *\n? *([^\s>]+)>?(?:(?: +\n? *| *\n *)(title))? *(?:\n+|$)/,table:J,lheading:/^([^\n]+)\n {0,3}(=+|-+) *(?:\n+|$)/,_paragraph:/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html| +\n)[^\n]+)*)/,text:/^[^\n]+/};ne._label=/(?!\s*\])(?:\\[\[\]]|[^\[\]])+/,ne._title=/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/,ne.def=Z(ne.def).replace("label",ne._label).replace("title",ne._title).getRegex(),ne.bullet=/(?:[*+-]|\d{1,9}[.)])/,ne.listItemStart=Z(/^( *)(bull) */).replace("bull",ne.bullet).getRegex(),ne.list=Z(ne.list).replace(/bull/g,ne.bullet).replace("hr","\\n+(?=\\1?(?:(?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$))").replace("def","\\n+(?="+ne.def.source+")").getRegex(),ne._tag="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|section|source|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",ne._comment=/|$)/,ne.html=Z(ne.html,"i").replace("comment",ne._comment).replace("tag",ne._tag).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),ne.paragraph=Z(ne._paragraph).replace("hr",ne.hr).replace("heading"," {0,3}#{1,6} ").replace("|lheading","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",ne._tag).getRegex(),ne.blockquote=Z(ne.blockquote).replace("paragraph",ne.paragraph).getRegex(),ne.normal=ie({},ne),ne.gfm=ie({},ne.normal,{table:"^ *([^\\n ].*\\|.*)\\n {0,3}(?:\\| *)?(:?-+:? *(?:\\| *:?-+:? *)*)\\|?(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)"}),ne.gfm.table=Z(ne.gfm.table).replace("hr",ne.hr).replace("heading"," {0,3}#{1,6} ").replace("blockquote"," {0,3}>").replace("code"," {4}[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",ne._tag).getRegex(),ne.pedantic=ie({},ne.normal,{html:Z(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?\\1> *(?:\\n{2,}|\\s*$)| \\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",ne._comment).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:J,paragraph:Z(ne.normal._paragraph).replace("hr",ne.hr).replace("heading",` *#{1,6} *[^
]`).replace("lheading",ne.lheading).replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").getRegex()});var G={escape:/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,autolink:/^<(scheme:[^\s\x00-\x1f<>]*|email)>/,url:J,tag:"^comment|^[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^|^",link:/^!?\[(label)\]\(\s*(href)(?:\s+(title))?\s*\)/,reflink:/^!?\[(label)\]\[(?!\s*\])((?:\\[\[\]]?|[^\[\]\\])+)\]/,nolink:/^!?\[(?!\s*\])((?:\[[^\[\]]*\]|\\[\[\]]|[^\[\]])*)\](?:\[\])?/,reflinkSearch:"reflink|nolink(?!\\()",emStrong:{lDelim:/^(?:\*+(?:([punct_])|[^\s*]))|^_+(?:([punct*])|([^\s_]))/,rDelimAst:/\_\_[^_*]*?\*[^_*]*?\_\_|[punct_](\*+)(?=[\s]|$)|[^punct*_\s](\*+)(?=[punct_\s]|$)|[punct_\s](\*+)(?=[^punct*_\s])|[\s](\*+)(?=[punct_])|[punct_](\*+)(?=[punct_])|[^punct*_\s](\*+)(?=[^punct*_\s])/,rDelimUnd:/\*\*[^_*]*?\_[^_*]*?\*\*|[punct*](\_+)(?=[\s]|$)|[^punct*_\s](\_+)(?=[punct*\s]|$)|[punct*\s](\_+)(?=[^punct*_\s])|[\s](\_+)(?=[punct*])|[punct*](\_+)(?=[punct*])/},code:/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,br:/^( {2,}|\\)\n(?!\s*$)/,del:J,text:/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\?@\\[\\]`^{|}~",G.punctuation=Z(G.punctuation).replace(/punctuation/g,G._punctuation).getRegex(),G.blockSkip=/\[[^\]]*?\]\([^\)]*?\)|`[^`]*?`|<[^>]*?>/g,G.escapedEmSt=/\\\*|\\_/g,G._comment=Z(ne._comment).replace("(?:-->|$)","-->").getRegex(),G.emStrong.lDelim=Z(G.emStrong.lDelim).replace(/punct/g,G._punctuation).getRegex(),G.emStrong.rDelimAst=Z(G.emStrong.rDelimAst,"g").replace(/punct/g,G._punctuation).getRegex(),G.emStrong.rDelimUnd=Z(G.emStrong.rDelimUnd,"g").replace(/punct/g,G._punctuation).getRegex(),G._escapes=/\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/g,G._scheme=/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/,G._email=/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/,G.autolink=Z(G.autolink).replace("scheme",G._scheme).replace("email",G._email).getRegex(),G._attribute=/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/,G.tag=Z(G.tag).replace("comment",G._comment).replace("attribute",G._attribute).getRegex(),G._label=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,G._href=/<(?:\\.|[^\n<>\\])+>|[^\s\x00-\x1f]*/,G._title=/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/,G.link=Z(G.link).replace("label",G._label).replace("href",G._href).replace("title",G._title).getRegex(),G.reflink=Z(G.reflink).replace("label",G._label).getRegex(),G.reflinkSearch=Z(G.reflinkSearch,"g").replace("reflink",G.reflink).replace("nolink",G.nolink).getRegex(),G.normal=ie({},G),G.pedantic=ie({},G.normal,{strong:{start:/^__|\*\*/,middle:/^__(?=\S)([\s\S]*?\S)__(?!_)|^\*\*(?=\S)([\s\S]*?\S)\*\*(?!\*)/,endAst:/\*\*(?!\*)/g,endUnd:/__(?!_)/g},em:{start:/^_|\*/,middle:/^()\*(?=\S)([\s\S]*?\S)\*(?!\*)|^_(?=\S)([\s\S]*?\S)_(?!_)/,endAst:/\*(?!\*)/g,endUnd:/_(?!_)/g},link:Z(/^!?\[(label)\]\((.*?)\)/).replace("label",G._label).getRegex(),reflink:Z(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",G._label).getRegex()}),G.gfm=ie({},G.normal,{escape:Z(G.escape).replace("])","~|])").getRegex(),_extended_email:/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/,url:/^((?:ftp|https?):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/,_backpedal:/(?:[^?!.,:;*_~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])([\s\S]*?[^\s~])\1(?=[^~]|$)/,text:/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\.5&&(me="x"+me.toString(16)),Ne+=""+me+";";return Ne}var H=function(){function Te(Me){this.tokens=[],this.tokens.links=Object.create(null),this.options=Me||U,this.options.tokenizer=this.options.tokenizer||new z,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options,this.tokenizer.lexer=this,this.inlineQueue=[],this.state={inLink:!1,inRawBlock:!1,top:!0};var me={block:x.normal,inline:X.normal};this.options.pedantic?(me.block=x.pedantic,me.inline=X.pedantic):this.options.gfm&&(me.block=x.gfm,this.options.breaks?me.inline=X.breaks:me.inline=X.gfm),this.tokenizer.rules=me}Te.lex=function(me,ve){var Ie=new Te(ve);return Ie.lex(me)},Te.lexInline=function(me,ve){var Ie=new Te(ve);return Ie.inlineTokens(me)};var Ne=Te.prototype;return Ne.lex=function(me){me=me.replace(/\r\n|\r/g,`
`).replace(/\t/g," "),this.blockTokens(me,this.tokens);for(var ve;ve=this.inlineQueue.shift();)this.inlineTokens(ve.src,ve.tokens);return this.tokens},Ne.blockTokens=function(me,ve){var Ie=this;ve===void 0&&(ve=[]),this.options.pedantic&&(me=me.replace(/^ +$/gm,""));for(var ye,we,Oe,Re;me;)if(!(this.options.extensions&&this.options.extensions.block&&this.options.extensions.block.some(function(Ke){return(ye=Ke.call({lexer:Ie},me,ve))?(me=me.substring(ye.raw.length),ve.push(ye),!0):!1}))){if(ye=this.tokenizer.space(me)){me=me.substring(ye.raw.length),ye.type&&ve.push(ye);continue}if(ye=this.tokenizer.code(me)){me=me.substring(ye.raw.length),we=ve[ve.length-1],we&&(we.type==="paragraph"||we.type==="text")?(we.raw+=`
`+ye.raw,we.text+=`
`+ye.text,this.inlineQueue[this.inlineQueue.length-1].src=we.text):ve.push(ye);continue}if(ye=this.tokenizer.fences(me)){me=me.substring(ye.raw.length),ve.push(ye);continue}if(ye=this.tokenizer.heading(me)){me=me.substring(ye.raw.length),ve.push(ye);continue}if(ye=this.tokenizer.hr(me)){me=me.substring(ye.raw.length),ve.push(ye);continue}if(ye=this.tokenizer.blockquote(me)){me=me.substring(ye.raw.length),ve.push(ye);continue}if(ye=this.tokenizer.list(me)){me=me.substring(ye.raw.length),ve.push(ye);continue}if(ye=this.tokenizer.html(me)){me=me.substring(ye.raw.length),ve.push(ye);continue}if(ye=this.tokenizer.def(me)){me=me.substring(ye.raw.length),we=ve[ve.length-1],we&&(we.type==="paragraph"||we.type==="text")?(we.raw+=`
`+ye.raw,we.text+=`
`+ye.raw,this.inlineQueue[this.inlineQueue.length-1].src=we.text):this.tokens.links[ye.tag]||(this.tokens.links[ye.tag]={href:ye.href,title:ye.title});continue}if(ye=this.tokenizer.table(me)){me=me.substring(ye.raw.length),ve.push(ye);continue}if(ye=this.tokenizer.lheading(me)){me=me.substring(ye.raw.length),ve.push(ye);continue}if(Oe=me,this.options.extensions&&this.options.extensions.startBlock&&function(){var Ke=Infinity,He=me.slice(1),Ge=void 0;Ie.options.extensions.startBlock.forEach(function(qe){Ge=qe.call({lexer:this},He),typeof Ge=="number"&&Ge>=0&&(Ke=Math.min(Ke,Ge))}),Ke=0&&(Oe=me.substring(0,Ke+1))}(),this.state.top&&(ye=this.tokenizer.paragraph(Oe))){we=ve[ve.length-1],Re&&we.type==="paragraph"?(we.raw+=`
`+ye.raw,we.text+=`
`+ye.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=we.text):ve.push(ye),Re=Oe.length!==me.length,me=me.substring(ye.raw.length);continue}if(ye=this.tokenizer.text(me)){me=me.substring(ye.raw.length),we=ve[ve.length-1],we&&we.type==="text"?(we.raw+=`
`+ye.raw,we.text+=`
`+ye.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=we.text):ve.push(ye);continue}if(me){var We="Infinite loop on byte: "+me.charCodeAt(0);if(this.options.silent){console.error(We);break}else throw new Error(We)}}return this.state.top=!0,ve},Ne.inline=function(me,ve){this.inlineQueue.push({src:me,tokens:ve})},Ne.inlineTokens=function(me,ve){var Ie=this;ve===void 0&&(ve=[]);var ye,we,Oe,Re=me,We,Ke,He;if(this.tokens.links){var Ge=Object.keys(this.tokens.links);if(Ge.length>0)for(;(We=this.tokenizer.rules.inline.reflinkSearch.exec(Re))!=null;)Ge.includes(We[0].slice(We[0].lastIndexOf("[")+1,-1))&&(Re=Re.slice(0,We.index)+"["+le("a",We[0].length-2)+"]"+Re.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;(We=this.tokenizer.rules.inline.blockSkip.exec(Re))!=null;)Re=Re.slice(0,We.index)+"["+le("a",We[0].length-2)+"]"+Re.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);for(;(We=this.tokenizer.rules.inline.escapedEmSt.exec(Re))!=null;)Re=Re.slice(0,We.index)+"++"+Re.slice(this.tokenizer.rules.inline.escapedEmSt.lastIndex);for(;me;)if(Ke||(He=""),Ke=!1,!(this.options.extensions&&this.options.extensions.inline&&this.options.extensions.inline.some(function(Ue){return(ye=Ue.call({lexer:Ie},me,ve))?(me=me.substring(ye.raw.length),ve.push(ye),!0):!1}))){if(ye=this.tokenizer.escape(me)){me=me.substring(ye.raw.length),ve.push(ye);continue}if(ye=this.tokenizer.tag(me)){me=me.substring(ye.raw.length),we=ve[ve.length-1],we&&ye.type==="text"&&we.type==="text"?(we.raw+=ye.raw,we.text+=ye.text):ve.push(ye);continue}if(ye=this.tokenizer.link(me)){me=me.substring(ye.raw.length),ve.push(ye);continue}if(ye=this.tokenizer.reflink(me,this.tokens.links)){me=me.substring(ye.raw.length),we=ve[ve.length-1],we&&ye.type==="text"&&we.type==="text"?(we.raw+=ye.raw,we.text+=ye.text):ve.push(ye);continue}if(ye=this.tokenizer.emStrong(me,Re,He)){me=me.substring(ye.raw.length),ve.push(ye);continue}if(ye=this.tokenizer.codespan(me)){me=me.substring(ye.raw.length),ve.push(ye);continue}if(ye=this.tokenizer.br(me)){me=me.substring(ye.raw.length),ve.push(ye);continue}if(ye=this.tokenizer.del(me)){me=me.substring(ye.raw.length),ve.push(ye);continue}if(ye=this.tokenizer.autolink(me,$)){me=me.substring(ye.raw.length),ve.push(ye);continue}if(!this.state.inLink&&(ye=this.tokenizer.url(me,$))){me=me.substring(ye.raw.length),ve.push(ye);continue}if(Oe=me,this.options.extensions&&this.options.extensions.startInline&&function(){var Ue=Infinity,Qe=me.slice(1),Ye=void 0;Ie.options.extensions.startInline.forEach(function(et){Ye=et.call({lexer:this},Qe),typeof Ye=="number"&&Ye>=0&&(Ue=Math.min(Ue,Ye))}),Ue=0&&(Oe=me.substring(0,Ue+1))}(),ye=this.tokenizer.inlineText(Oe,fe)){me=me.substring(ye.raw.length),ye.raw.slice(-1)!=="_"&&(He=ye.raw.slice(-1)),Ke=!0,we=ve[ve.length-1],we&&we.type==="text"?(we.raw+=ye.raw,we.text+=ye.text):ve.push(ye);continue}if(me){var qe="Infinite loop on byte: "+me.charCodeAt(0);if(this.options.silent){console.error(qe);break}else throw new Error(qe)}}return ve},e(Te,null,[{key:"rules",get:function(){return{block:x,inline:X}}}]),Te}(),Q=I.exports.defaults,re=R.cleanUrl,ce=R.escape,oe=function(){function Te(Me){this.options=Me||Q}var Ne=Te.prototype;return Ne.code=function(me,ve,Ie){var ye=(ve||"").match(/\S*/)[0];if(this.options.highlight){var we=this.options.highlight(me,ye);we!=null&&we!==me&&(Ie=!0,me=we)}return me=me.replace(/\n$/,"")+`
`,ye?''+(Ie?me:ce(me,!0))+`
`:""+(Ie?me:ce(me,!0))+`
`},Ne.blockquote=function(me){return`
`+me+`
`},Ne.html=function(me){return me},Ne.heading=function(me,ve,Ie,ye){return this.options.headerIds?"'+me+"
`:""+me+"
`},Ne.hr=function(){return this.options.xhtml?`
`:`
`},Ne.list=function(me,ve,Ie){var ye=ve?"ol":"ul",we=ve&&Ie!==1?' start="'+Ie+'"':"";return"<"+ye+we+`>
`+me+""+ye+`>
`},Ne.listitem=function(me){return""+me+`
`},Ne.checkbox=function(me){return" "},Ne.paragraph=function(me){return""+me+`
`},Ne.table=function(me,ve){return ve&&(ve=""+ve+""),`
`+me+`
`+ve+`
`},Ne.tablerow=function(me){return`
`+me+`
`},Ne.tablecell=function(me,ve){var Ie=ve.header?"th":"td",ye=ve.align?"<"+Ie+' align="'+ve.align+'">':"<"+Ie+">";return ye+me+""+Ie+`>
`},Ne.strong=function(me){return""+me+""},Ne.em=function(me){return""+me+""},Ne.codespan=function(me){return""+me+"
"},Ne.br=function(){return this.options.xhtml?"
":"
"},Ne.del=function(me){return""+me+""},Ne.link=function(me,ve,Ie){if(me=re(this.options.sanitize,this.options.baseUrl,me),me===null)return Ie;var ye='"+Ie+"",ye},Ne.image=function(me,ve,Ie){if(me=re(this.options.sanitize,this.options.baseUrl,me),me===null)return Ie;var ye='":">",ye},Ne.text=function(me){return me},Te}(),de=function(){function Te(){}var Ne=Te.prototype;return Ne.strong=function(me){return me},Ne.em=function(me){return me},Ne.codespan=function(me){return me},Ne.del=function(me){return me},Ne.html=function(me){return me},Ne.text=function(me){return me},Ne.link=function(me,ve,Ie){return""+Ie},Ne.image=function(me,ve,Ie){return""+Ie},Ne.br=function(){return""},Te}(),pe=function(){function Te(){this.seen={}}var Ne=Te.prototype;return Ne.serialize=function(me){return me.toLowerCase().trim().replace(/<[!\/a-z].*?>/ig,"").replace(/[\u2000-\u206F\u2E00-\u2E7F\\'!"#$%&()*+,./:;<=>?@[\]^`{|}~]/g,"").replace(/\s/g,"-")},Ne.getNextSafeSlug=function(me,ve){var Ie=me,ye=0;if(this.seen.hasOwnProperty(Ie)){ye=this.seen[me];do ye++,Ie=me+"-"+ye;while(this.seen.hasOwnProperty(Ie))}return ve||(this.seen[me]=ye,this.seen[Ie]=0),Ie},Ne.slug=function(me,ve){ve===void 0&&(ve={});var Ie=this.serialize(me);return this.getNextSafeSlug(Ie,ve.dryrun)},Te}(),_e=oe,se=de,ue=pe,be=I.exports.defaults,ge=R.unescape,Se=function(){function Te(Me){this.options=Me||be,this.options.renderer=this.options.renderer||new _e,this.renderer=this.options.renderer,this.renderer.options=this.options,this.textRenderer=new se,this.slugger=new ue}Te.parse=function(me,ve){var Ie=new Te(ve);return Ie.parse(me)},Te.parseInline=function(me,ve){var Ie=new Te(ve);return Ie.parseInline(me)};var Ne=Te.prototype;return Ne.parse=function(me,ve){ve===void 0&&(ve=!0);var Ie="",ye,we,Oe,Re,We,Ke,He,Ge,qe,Ue,Qe,Ye,et,st,Je,at,mt,lt,rt,ot=me.length;for(ye=0;ye0&&Je.tokens[0].type==="paragraph"?(Je.tokens[0].text=lt+" "+Je.tokens[0].text,Je.tokens[0].tokens&&Je.tokens[0].tokens.length>0&&Je.tokens[0].tokens[0].type==="text"&&(Je.tokens[0].tokens[0].text=lt+" "+Je.tokens[0].tokens[0].text)):Je.tokens.unshift({type:"text",text:lt}):st+=lt),st+=this.parse(Je.tokens,et),qe+=this.renderer.listitem(st,mt,at);Ie+=this.renderer.list(qe,Qe,Ye);continue}case"html":{Ie+=this.renderer.html(Ue.text);continue}case"paragraph":{Ie+=this.renderer.paragraph(this.parseInline(Ue.tokens));continue}case"text":{for(qe=Ue.tokens?this.parseInline(Ue.tokens):Ue.text;ye+1An error occurred:"+je(Oe.message+"",!0)+"
";throw Oe}}Pe.options=Pe.setOptions=function(Te){return xe(Pe.defaults,Te),Le(Pe.defaults),Pe},Pe.getDefaults=$e,Pe.defaults=Ee,Pe.use=function(){for(var Te=this,Ne=arguments.length,Me=new Array(Ne),me=0;meAn error occurred:"+je(me.message+"",!0)+"
";throw me}},Pe.Parser=he,Pe.parser=he.parse,Pe.Renderer=ke,Pe.TextRenderer=Ve,Pe.Lexer=ae,Pe.lexer=ae.lex,Pe.Tokenizer=De,Pe.Slugger=Fe,Pe.parse=Pe;var ze=Pe;return ze}),define(ee[303],te([0,1]),function(q,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ArrayNavigator=void 0;class y{constructor(T,I=0,b=T.length,C=I-1){this.items=T,this.start=I,this.end=b,this.index=C}current(){return this.index===this.start-1||this.index===this.end?null:this.items[this.index]}next(){return this.index=Math.min(this.index+1,this.end),this.current()}previous(){return this.index=Math.max(this.index-1,this.start-1),this.current()}first(){return this.index=this.start,this.current()}last(){return this.index=this.end-1,this.current()}}e.ArrayNavigator=y}),define(ee[304],te([0,1,303]),function(q,e,y){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.HistoryNavigator=void 0;class N{constructor(I=[],b=10){this._initialize(I),this._limit=b,this._onChange()}getHistory(){return this._elements}add(I){this._history.delete(I),this._history.add(I),this._onChange()}next(){return this._currentPosition()!==this._elements.length-1?this._navigator.next():null}previous(){return this._currentPosition()!==0?this._navigator.previous():null}current(){return this._navigator.current()}first(){return this._navigator.first()}last(){return this._navigator.last()}has(I){return this._history.has(I)}_onChange(){this._reduceToLimit();const I=this._elements;this._navigator=new y.ArrayNavigator(I,0,I.length,I.length)}_reduceToLimit(){const I=this._elements;I.length>this._limit&&this._initialize(I.slice(I.length-this._limit))}_currentPosition(){const I=this._navigator.current();return I?this._elements.indexOf(I):-1}_initialize(I){this._history=new Set;for(const b of I)this._history.add(b)}get _elements(){const I=[];return this._history.forEach(b=>I.push(b)),I}}e.HistoryNavigator=N}),define(ee[105],te([0,1]),function(q,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.MovingAverage=e.clamp=void 0;function y(T,I,b){return Math.min(Math.max(T,I),b)}e.clamp=y;class N{constructor(){this._n=1,this._val=0}update(I){return this._val=this._val+(I-this._val)/this._n,this._n+=1,this}get value(){return this._val}}e.MovingAverage=N}),define(ee[17],te([0,1]),function(q,e){"use strict";var y;Object.defineProperty(e,"__esModule",{value:!0}),e.isLittleEndian=e.OS=e.setImmediate=e.setTimeout0=e.locale=e.language=e.userAgent=e.isIOS=e.isWeb=e.isNative=e.isLinux=e.isMacintosh=e.isWindows=e.globals=void 0;const N="en";let T=!1,I=!1,b=!1,C=!1,p=!1,h=!1,g=!1,i=!1,t,r=N,c,l;e.globals=typeof self=="object"?self:typeof global=="object"?global:{};let a;typeof e.globals.vscode!="undefined"&&typeof e.globals.vscode.process!="undefined"?a=e.globals.vscode.process:typeof process!="undefined"&&(a=process);const s=typeof((y=a==null?void 0:a.versions)===null||y===void 0?void 0:y.electron)=="string",o=s&&(a==null?void 0:a.type)==="renderer";if(typeof navigator=="object"&&!o)l=navigator.userAgent,T=l.indexOf("Windows")>=0,I=l.indexOf("Macintosh")>=0,i=(l.indexOf("Macintosh")>=0||l.indexOf("iPad")>=0||l.indexOf("iPhone")>=0)&&!!navigator.maxTouchPoints&&navigator.maxTouchPoints>0,b=l.indexOf("Linux")>=0,h=!0,t=navigator.language,r=t;else if(typeof a=="object"){T=a.platform==="win32",I=a.platform==="darwin",b=a.platform==="linux",C=b&&!!a.env.SNAP&&!!a.env.SNAP_REVISION,g=s,t=N,r=N;const S=a.env.VSCODE_NLS_CONFIG;if(S)try{const v=JSON.parse(S),m=v.availableLanguages["*"];t=v.locale,r=m||N,c=v._translationsConfigFile}catch(v){}p=!0}else console.error("Unable to resolve platform.");let n=0;I?n=1:T?n=3:b&&(n=2),e.isWindows=T,e.isMacintosh=I,e.isLinux=b,e.isNative=p,e.isWeb=h,e.isIOS=i,e.userAgent=l,e.language=r,e.locale=t,e.setTimeout0=(()=>{if(typeof e.globals.postMessage=="function"&&!e.globals.importScripts){let S=[];e.globals.addEventListener("message",m=>{if(m.data&&m.data.vscodeScheduleAsyncWork)for(let _=0,L=S.length;_{const _=++v;S.push({id:_,callback:m}),e.globals.postMessage({vscodeScheduleAsyncWork:_},"*")}}return S=>setTimeout(S)})(),e.setImmediate=function(){if(e.globals.setImmediate)return e.globals.setImmediate.bind(e.globals);if(typeof e.globals.postMessage=="function"&&!e.globals.importScripts)return e.setTimeout0;if(typeof(a==null?void 0:a.nextTick)=="function")return a.nextTick.bind(a);const v=Promise.resolve();return m=>v.then(m)}(),e.OS=I||i?2:T?1:3;let d=!0,u=!1;function f(){if(!u){u=!0;const S=new Uint8Array(2);S[0]=1,S[1]=2,d=new Uint16Array(S.buffer)[0]===(2<<8)+1}return d}e.isLittleEndian=f}),define(ee[305],te([0,1,17]),function(q,e,y){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.platform=e.env=e.cwd=void 0;let N;if(typeof y.globals.vscode!="undefined"&&typeof y.globals.vscode.process!="undefined"){const T=y.globals.vscode.process;N={get platform(){return T.platform},get arch(){return T.arch},get env(){return T.env},cwd(){return T.cwd()}}}else typeof process!="undefined"?N={get platform(){return process.platform},get arch(){return process.arch},get env(){return process.env},cwd(){return process.env.VSCODE_CWD||process.cwd()}}:N={get platform(){return y.isWindows?"win32":y.isMacintosh?"darwin":"linux"},get arch(){},get env(){return{}},cwd(){return"/"}};e.cwd=N.cwd,e.env=N.env,e.platform=N.platform}),define(ee[78],te([0,1,305]),function(q,e,y){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.sep=e.extname=e.basename=e.dirname=e.relative=e.resolve=e.normalize=e.posix=e.win32=void 0;const N=65,T=97,I=90,b=122,C=46,p=47,h=92,g=58,i=63;class t extends Error{constructor(d,u,f){let S;typeof u=="string"&&u.indexOf("not ")===0?(S="must not be",u=u.replace(/^not /,"")):S="must be";const v=d.indexOf(".")!==-1?"property":"argument";let m=`The "${d}" ${v} ${S} of type ${u}`;m+=`. Received type ${typeof f}`,super(m),this.code="ERR_INVALID_ARG_TYPE"}}function r(n,d){if(typeof n!="string")throw new t(d,"string",n)}function c(n){return n===p||n===h}function l(n){return n===p}function a(n){return n>=N&&n<=I||n>=T&&n<=b}function s(n,d,u,f){let S="",v=0,m=-1,_=0,L=0;for(let w=0;w<=n.length;++w){if(w2){const k=S.lastIndexOf(u);k===-1?(S="",v=0):(S=S.slice(0,k),v=S.length-1-S.lastIndexOf(u)),m=w,_=0;continue}else if(S.length!==0){S="",v=0,m=w,_=0;continue}}d&&(S+=S.length>0?`${u}..`:"..",v=2)}else S.length>0?S+=`${u}${n.slice(m+1,w)}`:S=n.slice(m+1,w),v=w-m-1;m=w,_=0}else L===C&&_!==-1?++_:_=-1}return S}function o(n,d){if(d===null||typeof d!="object")throw new t("pathObject","Object",d);const u=d.dir||d.root,f=d.base||`${d.name||""}${d.ext||""}`;return u?u===d.root?`${u}${f}`:`${u}${n}${f}`:f}e.win32={resolve(...n){let d="",u="",f=!1;for(let S=n.length-1;S>=-1;S--){let v;if(S>=0){if(v=n[S],r(v,"path"),v.length===0)continue}else d.length===0?v=y.cwd():(v=y.env[`=${d}`]||y.cwd(),(v===void 0||v.slice(0,2).toLowerCase()!==d.toLowerCase()&&v.charCodeAt(2)===h)&&(v=`${d}\\`));const m=v.length;let _=0,L="",w=!1;const k=v.charCodeAt(0);if(m===1)c(k)&&(_=1,w=!0);else if(c(k))if(w=!0,c(v.charCodeAt(1))){let D=2,M=D;for(;D2&&c(v.charCodeAt(2))&&(w=!0,_=3));if(L.length>0)if(d.length>0){if(L.toLowerCase()!==d.toLowerCase())continue}else d=L;if(f){if(d.length>0)break}else if(u=`${v.slice(_)}\\${u}`,f=w,w&&d.length>0)break}return u=s(u,!f,"\\",c),f?`${d}\\${u}`:`${d}${u}`||"."},normalize(n){r(n,"path");const d=n.length;if(d===0)return".";let u=0,f,S=!1;const v=n.charCodeAt(0);if(d===1)return l(v)?"\\":n;if(c(v))if(S=!0,c(n.charCodeAt(1))){let _=2,L=_;for(;_2&&c(n.charCodeAt(2))&&(S=!0,u=3));let m=u0&&c(n.charCodeAt(d-1))&&(m+="\\"),f===void 0?S?`\\${m}`:m:S?`${f}\\${m}`:`${f}${m}`},isAbsolute(n){r(n,"path");const d=n.length;if(d===0)return!1;const u=n.charCodeAt(0);return c(u)||d>2&&a(u)&&n.charCodeAt(1)===g&&c(n.charCodeAt(2))},join(...n){if(n.length===0)return".";let d,u;for(let v=0;v0&&(d===void 0?d=u=m:d+=`\\${m}`)}if(d===void 0)return".";let f=!0,S=0;if(typeof u=="string"&&c(u.charCodeAt(0))){++S;const v=u.length;v>1&&c(u.charCodeAt(1))&&(++S,v>2&&(c(u.charCodeAt(2))?++S:f=!1))}if(f){for(;S=2&&(d=`\\${d.slice(S)}`)}return e.win32.normalize(d)},relative(n,d){if(r(n,"from"),r(d,"to"),n===d)return"";const u=e.win32.resolve(n),f=e.win32.resolve(d);if(u===f||(n=u.toLowerCase(),d=f.toLowerCase(),n===d))return"";let S=0;for(;SS&&n.charCodeAt(v-1)===h;)v--;const m=v-S;let _=0;for(;__&&d.charCodeAt(L-1)===h;)L--;const w=L-_,k=mk){if(d.charCodeAt(_+M)===h)return f.slice(_+M+1);if(M===2)return f.slice(_+M)}m>k&&(n.charCodeAt(S+M)===h?D=M:M===2&&(D=3)),D===-1&&(D=0)}let O="";for(M=S+D+1;M<=v;++M)(M===v||n.charCodeAt(M)===h)&&(O+=O.length===0?"..":"\\..");return _+=D,O.length>0?`${O}${f.slice(_,L)}`:(f.charCodeAt(_)===h&&++_,f.slice(_,L))},toNamespacedPath(n){if(typeof n!="string")return n;if(n.length===0)return"";const d=e.win32.resolve(n);if(d.length<=2)return n;if(d.charCodeAt(0)===h){if(d.charCodeAt(1)===h){const u=d.charCodeAt(2);if(u!==i&&u!==C)return`\\\\?\\UNC\\${d.slice(2)}`}}else if(a(d.charCodeAt(0))&&d.charCodeAt(1)===g&&d.charCodeAt(2)===h)return`\\\\?\\${d}`;return n},dirname(n){r(n,"path");const d=n.length;if(d===0)return".";let u=-1,f=0;const S=n.charCodeAt(0);if(d===1)return c(S)?n:".";if(c(S)){if(u=f=1,c(n.charCodeAt(1))){let _=2,L=_;for(;_2&&c(n.charCodeAt(2))?3:2,f=u);let v=-1,m=!0;for(let _=d-1;_>=f;--_)if(c(n.charCodeAt(_))){if(!m){v=_;break}}else m=!1;if(v===-1){if(u===-1)return".";v=u}return n.slice(0,v)},basename(n,d){d!==void 0&&r(d,"ext"),r(n,"path");let u=0,f=-1,S=!0,v;if(n.length>=2&&a(n.charCodeAt(0))&&n.charCodeAt(1)===g&&(u=2),d!==void 0&&d.length>0&&d.length<=n.length){if(d===n)return"";let m=d.length-1,_=-1;for(v=n.length-1;v>=u;--v){const L=n.charCodeAt(v);if(c(L)){if(!S){u=v+1;break}}else _===-1&&(S=!1,_=v+1),m>=0&&(L===d.charCodeAt(m)?--m==-1&&(f=v):(m=-1,f=_))}return u===f?f=_:f===-1&&(f=n.length),n.slice(u,f)}for(v=n.length-1;v>=u;--v)if(c(n.charCodeAt(v))){if(!S){u=v+1;break}}else f===-1&&(S=!1,f=v+1);return f===-1?"":n.slice(u,f)},extname(n){r(n,"path");let d=0,u=-1,f=0,S=-1,v=!0,m=0;n.length>=2&&n.charCodeAt(1)===g&&a(n.charCodeAt(0))&&(d=f=2);for(let _=n.length-1;_>=d;--_){const L=n.charCodeAt(_);if(c(L)){if(!v){f=_+1;break}continue}S===-1&&(v=!1,S=_+1),L===C?u===-1?u=_:m!==1&&(m=1):u!==-1&&(m=-1)}return u===-1||S===-1||m===0||m===1&&u===S-1&&u===f+1?"":n.slice(u,S)},format:o.bind(null,"\\"),parse(n){r(n,"path");const d={root:"",dir:"",base:"",ext:"",name:""};if(n.length===0)return d;const u=n.length;let f=0,S=n.charCodeAt(0);if(u===1)return c(S)?(d.root=d.dir=n,d):(d.base=d.name=n,d);if(c(S)){if(f=1,c(n.charCodeAt(1))){let D=2,M=D;for(;D0&&(d.root=n.slice(0,f));let v=-1,m=f,_=-1,L=!0,w=n.length-1,k=0;for(;w>=f;--w){if(S=n.charCodeAt(w),c(S)){if(!L){m=w+1;break}continue}_===-1&&(L=!1,_=w+1),S===C?v===-1?v=w:k!==1&&(k=1):v!==-1&&(k=-1)}return _!==-1&&(v===-1||k===0||k===1&&v===_-1&&v===m+1?d.base=d.name=n.slice(m,_):(d.name=n.slice(m,v),d.base=n.slice(m,_),d.ext=n.slice(v,_))),m>0&&m!==f?d.dir=n.slice(0,m-1):d.dir=d.root,d},sep:"\\",delimiter:";",win32:null,posix:null},e.posix={resolve(...n){let d="",u=!1;for(let f=n.length-1;f>=-1&&!u;f--){const S=f>=0?n[f]:y.cwd();r(S,"path"),S.length!==0&&(d=`${S}/${d}`,u=S.charCodeAt(0)===p)}return d=s(d,!u,"/",l),u?`/${d}`:d.length>0?d:"."},normalize(n){if(r(n,"path"),n.length===0)return".";const d=n.charCodeAt(0)===p,u=n.charCodeAt(n.length-1)===p;return n=s(n,!d,"/",l),n.length===0?d?"/":u?"./":".":(u&&(n+="/"),d?`/${n}`:n)},isAbsolute(n){return r(n,"path"),n.length>0&&n.charCodeAt(0)===p},join(...n){if(n.length===0)return".";let d;for(let u=0;u0&&(d===void 0?d=f:d+=`/${f}`)}return d===void 0?".":e.posix.normalize(d)},relative(n,d){if(r(n,"from"),r(d,"to"),n===d||(n=e.posix.resolve(n),d=e.posix.resolve(d),n===d))return"";const u=1,f=n.length,S=f-u,v=1,m=d.length-v,_=S_){if(d.charCodeAt(v+w)===p)return d.slice(v+w+1);if(w===0)return d.slice(v+w)}else S>_&&(n.charCodeAt(u+w)===p?L=w:w===0&&(L=0));let k="";for(w=u+L+1;w<=f;++w)(w===f||n.charCodeAt(w)===p)&&(k+=k.length===0?"..":"/..");return`${k}${d.slice(v+L)}`},toNamespacedPath(n){return n},dirname(n){if(r(n,"path"),n.length===0)return".";const d=n.charCodeAt(0)===p;let u=-1,f=!0;for(let S=n.length-1;S>=1;--S)if(n.charCodeAt(S)===p){if(!f){u=S;break}}else f=!1;return u===-1?d?"/":".":d&&u===1?"//":n.slice(0,u)},basename(n,d){d!==void 0&&r(d,"ext"),r(n,"path");let u=0,f=-1,S=!0,v;if(d!==void 0&&d.length>0&&d.length<=n.length){if(d===n)return"";let m=d.length-1,_=-1;for(v=n.length-1;v>=0;--v){const L=n.charCodeAt(v);if(L===p){if(!S){u=v+1;break}}else _===-1&&(S=!1,_=v+1),m>=0&&(L===d.charCodeAt(m)?--m==-1&&(f=v):(m=-1,f=_))}return u===f?f=_:f===-1&&(f=n.length),n.slice(u,f)}for(v=n.length-1;v>=0;--v)if(n.charCodeAt(v)===p){if(!S){u=v+1;break}}else f===-1&&(S=!1,f=v+1);return f===-1?"":n.slice(u,f)},extname(n){r(n,"path");let d=-1,u=0,f=-1,S=!0,v=0;for(let m=n.length-1;m>=0;--m){const _=n.charCodeAt(m);if(_===p){if(!S){u=m+1;break}continue}f===-1&&(S=!1,f=m+1),_===C?d===-1?d=m:v!==1&&(v=1):d!==-1&&(v=-1)}return d===-1||f===-1||v===0||v===1&&d===f-1&&d===u+1?"":n.slice(d,f)},format:o.bind(null,"/"),parse(n){r(n,"path");const d={root:"",dir:"",base:"",ext:"",name:""};if(n.length===0)return d;const u=n.charCodeAt(0)===p;let f;u?(d.root="/",f=1):f=0;let S=-1,v=0,m=-1,_=!0,L=n.length-1,w=0;for(;L>=f;--L){const k=n.charCodeAt(L);if(k===p){if(!_){v=L+1;break}continue}m===-1&&(_=!1,m=L+1),k===C?S===-1?S=L:w!==1&&(w=1):S!==-1&&(w=-1)}if(m!==-1){const k=v===0&&u?1:v;S===-1||w===0||w===1&&S===m-1&&S===v+1?d.base=d.name=n.slice(k,m):(d.name=n.slice(k,S),d.base=n.slice(k,m),d.ext=n.slice(S,m))}return v>0?d.dir=n.slice(0,v-1):u&&(d.dir="/"),d},sep:"/",delimiter:":",win32:null,posix:null},e.posix.win32=e.win32.win32=e.win32,e.posix.posix=e.win32.posix=e.posix,e.normalize=y.platform==="win32"?e.win32.normalize:e.posix.normalize,e.resolve=y.platform==="win32"?e.win32.resolve:e.posix.resolve,e.relative=y.platform==="win32"?e.win32.relative:e.posix.relative,e.dirname=y.platform==="win32"?e.win32.dirname:e.posix.dirname,e.basename=y.platform==="win32"?e.win32.basename:e.posix.basename,e.extname=y.platform==="win32"?e.win32.extname:e.posix.extname,e.sep=y.platform==="win32"?e.win32.sep:e.posix.sep}),define(ee[133],te([0,1]),function(q,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Range=void 0;var y;(function(N){function T(p,h){if(p.start>=h.end||h.start>=p.end)return{start:0,end:0};const g=Math.max(p.start,h.start),i=Math.min(p.end,h.end);return i-g<=0?{start:0,end:0}:{start:g,end:i}}N.intersect=T;function I(p){return p.end-p.start<=0}N.isEmpty=I;function b(p,h){return!I(T(p,h))}N.intersects=b;function C(p,h){const g=[],i={start:p.start,end:Math.min(h.start,p.end)},t={start:Math.max(h.end,p.start),end:p.end};return I(i)||g.push(i),I(t)||g.push(t),g}N.relativeComplement=C})(y=e.Range||(e.Range={}))}),define(ee[306],te([0,1,133]),function(q,e,y){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.RangeMap=e.consolidate=e.shift=e.groupIntersect=void 0;function N(p,h){const g=[];for(let i of h){if(p.start>=i.range.end)continue;if(p.endh.concat(g),[]))}class C{constructor(){this.groups=[],this._size=0}splice(h,g,i=[]){const t=i.length-g,r=N({start:0,end:h},this.groups),c=N({start:h+g,end:Number.POSITIVE_INFINITY},this.groups).map(a=>({range:T(a.range,t),size:a.size})),l=i.map((a,s)=>({range:{start:h+s,end:h+s+1},size:a.size}));this.groups=b(r,l,c),this._size=this.groups.reduce((a,s)=>a+s.size*(s.range.end-s.range.start),0)}get count(){const h=this.groups.length;return h?this.groups[h-1].range.end:0}get size(){return this._size}indexAt(h){if(h<0)return-1;let g=0,i=0;for(let t of this.groups){const r=t.range.end-t.range.start,c=i+r*t.size;if(hN.Disposable.None;function a(F){return(R,A=null,P)=>{let E=!1,B;return B=F(V=>{if(!E)return B?B.dispose():E=!0,R.call(A,V)},null,P),E&&B.dispose(),B}}l.once=a;function s(F,R){return S((A,P=null,E)=>F(B=>A.call(P,R(B)),null,E))}l.map=s;function o(F,R){return S((A,P=null,E)=>F(B=>{R(B),A.call(P,B)},null,E))}l.forEach=o;function n(F,R){return S((A,P=null,E)=>F(B=>R(B)&&A.call(P,B),null,E))}l.filter=n;function d(F){return F}l.signal=d;function u(...F){return(R,A=null,P)=>(0,N.combinedDisposable)(...F.map(E=>E(B=>R.call(A,B),null,P)))}l.any=u;function f(F,R,A){let P=A;return s(F,E=>(P=R(P,E),P))}l.reduce=f;function S(F){let R;const A=new g({onFirstListenerAdd(){R=F(A.fire,A)},onLastListenerRemove(){R.dispose()}});return A.event}function v(F,R,A=100,P=!1,E){let B,V,j,K=0;const Y=new g({leakWarningThreshold:E,onFirstListenerAdd(){B=F(J=>{K++,V=R(V,J),P&&!j&&(Y.fire(V),V=void 0),clearTimeout(j),j=setTimeout(()=>{const Z=V;V=void 0,j=void 0,(!P||K>1)&&Y.fire(Z),K=0},A)})},onLastListenerRemove(){B.dispose()}});return Y.event}l.debounce=v;function m(F,R=(A,P)=>A===P){let A=!0,P;return n(F,E=>{const B=A||!R(E,P);return A=!1,P=E,B})}l.latch=m;function _(F,R){return[l.filter(F,R),l.filter(F,A=>!R(A))]}l.split=_;function L(F,R=!1,A=[]){let P=A.slice(),E=F(j=>{P?P.push(j):V.fire(j)});const B=()=>{P&&P.forEach(j=>V.fire(j)),P=null},V=new g({onFirstListenerAdd(){E||(E=F(j=>V.fire(j)))},onFirstListenerDidAdd(){P&&(R?setTimeout(B):B())},onLastListenerRemove(){E&&E.dispose(),E=null}});return V.event}l.buffer=L;class w{constructor(R){this.event=R}map(R){return new w(s(this.event,R))}forEach(R){return new w(o(this.event,R))}filter(R){return new w(n(this.event,R))}reduce(R,A){return new w(f(this.event,R,A))}latch(){return new w(m(this.event))}debounce(R,A=100,P=!1,E){return new w(v(this.event,R,A,P,E))}on(R,A,P){return this.event(R,A,P)}once(R,A,P){return a(this.event)(R,A,P)}}function k(F){return new w(F)}l.chain=k;function D(F,R,A=P=>P){const P=(...j)=>V.fire(A(...j)),E=()=>F.on(R,P),B=()=>F.removeListener(R,P),V=new g({onFirstListenerAdd:E,onLastListenerRemove:B});return V.event}l.fromNodeEventEmitter=D;function M(F,R,A=P=>P){const P=(...j)=>V.fire(A(...j)),E=()=>F.addEventListener(R,P),B=()=>F.removeEventListener(R,P),V=new g({onFirstListenerAdd:E,onLastListenerRemove:B});return V.event}l.fromDOMEventEmitter=M;function O(F){return new Promise(R=>a(F)(R))}l.toPromise=O})(b=e.Event||(e.Event={}));class C{constructor(a){this._listenerCount=0,this._invocationCount=0,this._elapsedOverall=0,this._name=`${a}_${C._idPool++}`}start(a){this._stopWatch=new I.StopWatch(!0),this._listenerCount=a}stop(){if(this._stopWatch){const a=this._stopWatch.elapsed();this._elapsedOverall+=a,this._invocationCount+=1,console.info(`did FIRE ${this._name}: elapsed_ms: ${a.toFixed(5)}, listener: ${this._listenerCount} (elapsed_overall: ${this._elapsedOverall.toFixed(2)}, invocations: ${this._invocationCount})`),this._stopWatch=void 0}}}C._idPool=0;let p=-1;class h{constructor(a,s=Math.random().toString(18).slice(2,5)){this.customThreshold=a,this.name=s,this._warnCountdown=0}dispose(){this._stacks&&this._stacks.clear()}check(a){let s=p;if(typeof this.customThreshold=="number"&&(s=this.customThreshold),s<=0||a{const d=this._stacks.get(o)||0;this._stacks.set(o,d-1)}}}class g{constructor(a){var s;this._disposed=!1,this._options=a,this._leakageMon=p>0?new h(this._options&&this._options.leakWarningThreshold):void 0,this._perfMon=((s=this._options)===null||s===void 0?void 0:s._profName)?new C(this._options._profName):void 0}get event(){return this._event||(this._event=(a,s,o)=>{var n;this._listeners||(this._listeners=new T.LinkedList);const d=this._listeners.isEmpty();d&&this._options&&this._options.onFirstListenerAdd&&this._options.onFirstListenerAdd(this);const u=this._listeners.push(s?[a,s]:a);d&&this._options&&this._options.onFirstListenerDidAdd&&this._options.onFirstListenerDidAdd(this),this._options&&this._options.onListenerDidAdd&&this._options.onListenerDidAdd(this,a,s);const f=(n=this._leakageMon)===null||n===void 0?void 0:n.check(this._listeners.size),S=(0,N.toDisposable)(()=>{f&&f(),this._disposed||(u(),this._options&&this._options.onLastListenerRemove&&(this._listeners&&!this._listeners.isEmpty()||this._options.onLastListenerRemove(this)))});return o instanceof N.DisposableStore?o.add(S):Array.isArray(o)&&o.push(S),S}),this._event}fire(a){var s,o;if(this._listeners){this._deliveryQueue||(this._deliveryQueue=new T.LinkedList);for(let n of this._listeners)this._deliveryQueue.push([n,a]);for((s=this._perfMon)===null||s===void 0||s.start(this._deliveryQueue.size);this._deliveryQueue.size>0;){const[n,d]=this._deliveryQueue.shift();try{typeof n=="function"?n.call(void 0,d):n[0].call(n[1],d)}catch(u){(0,y.onUnexpectedError)(u)}}(o=this._perfMon)===null||o===void 0||o.stop()}}dispose(){var a,s,o,n,d;this._disposed||(this._disposed=!0,(a=this._listeners)===null||a===void 0||a.clear(),(s=this._deliveryQueue)===null||s===void 0||s.clear(),(n=(o=this._options)===null||o===void 0?void 0:o.onLastListenerRemove)===null||n===void 0||n.call(o),(d=this._leakageMon)===null||d===void 0||d.dispose())}}e.Emitter=g;class i extends g{constructor(a){super(a);this._isPaused=0,this._eventQueue=new T.LinkedList,this._mergeFn=a==null?void 0:a.merge}pause(){this._isPaused++}resume(){if(this._isPaused!==0&&--this._isPaused==0)if(this._mergeFn){const a=Array.from(this._eventQueue);this._eventQueue.clear(),super.fire(this._mergeFn(a))}else for(;!this._isPaused&&this._eventQueue.size!==0;)super.fire(this._eventQueue.shift())}fire(a){this._listeners&&(this._isPaused!==0?this._eventQueue.push(a):super.fire(a))}}e.PauseableEmitter=i;class t extends i{constructor(a){var s;super(a);this._delay=(s=a.delay)!==null&&s!==void 0?s:100}fire(a){this._handle||(this.pause(),this._handle=setTimeout(()=>{this._handle=void 0,this.resume()},this._delay)),super.fire(a)}}e.DebounceEmitter=t;class r{constructor(){this.buffers=[]}wrapEvent(a){return(s,o,n)=>a(d=>{const u=this.buffers[this.buffers.length-1];u?u.push(()=>s.call(o,d)):s.call(o,d)},void 0,n)}bufferEvents(a){const s=[];this.buffers.push(s);const o=a();return this.buffers.pop(),s.forEach(n=>n()),o}}e.EventBufferer=r;class c{constructor(){this.listening=!1,this.inputEvent=b.None,this.inputEventListener=N.Disposable.None,this.emitter=new g({onFirstListenerDidAdd:()=>{this.listening=!0,this.inputEventListener=this.inputEvent(this.emitter.fire,this.emitter)},onLastListenerRemove:()=>{this.listening=!1,this.inputEventListener.dispose()}}),this.event=this.emitter.event}set input(a){this.inputEvent=a,this.listening&&(this.inputEventListener.dispose(),this.inputEventListener=a(this.emitter.fire,this.emitter))}dispose(){this.inputEventListener.dispose(),this.emitter.dispose()}}e.Relay=c}),define(ee[34],te([0,1,4]),function(q,e,y){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.isStandalone=e.isAndroid=e.isElectron=e.isEdgeLegacyWebView=e.isWebkitWebView=e.isSafari=e.isChrome=e.isWebKit=e.isFirefox=e.getPixelRatio=e.getZoomFactor=e.onDidChangeZoomLevel=e.getTimeSinceLastZoomLevelChanged=e.getZoomLevel=void 0;class N{constructor(){this._zoomLevel=0,this._lastZoomLevelChangeTime=0,this._onDidChangeZoomLevel=new y.Emitter,this.onDidChangeZoomLevel=this._onDidChangeZoomLevel.event,this._zoomFactor=1}getZoomLevel(){return this._zoomLevel}getTimeSinceLastZoomLevelChanged(){return Date.now()-this._lastZoomLevelChangeTime}getZoomFactor(){return this._zoomFactor}getPixelRatio(){let i=document.createElement("canvas").getContext("2d"),t=window.devicePixelRatio||1,r=i.webkitBackingStorePixelRatio||i.mozBackingStorePixelRatio||i.msBackingStorePixelRatio||i.oBackingStorePixelRatio||i.backingStorePixelRatio||1;return t/r}}N.INSTANCE=new N;function T(){return N.INSTANCE.getZoomLevel()}e.getZoomLevel=T;function I(){return N.INSTANCE.getTimeSinceLastZoomLevelChanged()}e.getTimeSinceLastZoomLevelChanged=I;function b(g){return N.INSTANCE.onDidChangeZoomLevel(g)}e.onDidChangeZoomLevel=b;function C(){return N.INSTANCE.getZoomFactor()}e.getZoomFactor=C;function p(){return N.INSTANCE.getPixelRatio()}e.getPixelRatio=p;const h=navigator.userAgent;e.isFirefox=h.indexOf("Firefox")>=0,e.isWebKit=h.indexOf("AppleWebKit")>=0,e.isChrome=h.indexOf("Chrome")>=0,e.isSafari=!e.isChrome&&h.indexOf("Safari")>=0,e.isWebkitWebView=!e.isChrome&&!e.isSafari&&e.isWebKit,e.isEdgeLegacyWebView=h.indexOf("Edge/")>=0&&h.indexOf("WebView/")>=0,e.isElectron=h.indexOf("Electron/")>=0,e.isAndroid=h.indexOf("Android")>=0,e.isStandalone=window.matchMedia&&window.matchMedia("(display-mode: standalone)").matches}),define(ee[164],te([0,1,34,17]),function(q,e,y,N){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.BrowserFeatures=void 0,e.BrowserFeatures={clipboard:{writeText:N.isNative||document.queryCommandSupported&&document.queryCommandSupported("copy")||!!(navigator&&navigator.clipboard&&navigator.clipboard.writeText),readText:N.isNative||!!(navigator&&navigator.clipboard&&navigator.clipboard.readText)},keyboard:(()=>N.isNative||y.isStandalone?0:navigator.keyboard||y.isSafari?1:2)(),touch:"ontouchstart"in window||navigator.maxTouchPoints>0,pointerEvents:window.PointerEvent&&("ontouchstart"in window||window.navigator.maxTouchPoints>0||navigator.maxTouchPoints>0)}}),define(ee[86],te([0,1,4]),function(q,e,y){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.stopEvent=e.DomEmitter=void 0;class N{constructor(b,C,p){const h=g=>this.emitter.fire(g);this.emitter=new y.Emitter({onFirstListenerAdd:()=>b.addEventListener(C,h,p),onLastListenerRemove:()=>b.removeEventListener(C,h,p)})}get event(){return this.emitter.event}dispose(){this.emitter.dispose()}}e.DomEmitter=N;function T(I){return I.preventDefault(),I.stopPropagation(),I}e.stopEvent=T}),define(ee[46],te([0,1,34,56,95,17]),function(q,e,y,N,T,I){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.StandardKeyboardEvent=void 0;function b(t){if(t.charCode){let c=String.fromCharCode(t.charCode).toUpperCase();return N.KeyCodeUtils.fromString(c)}const r=t.keyCode;if(r===3)return 7;if(y.isFirefox){if(r===59)return 80;if(r===107)return 81;if(r===109)return 83;if(I.isMacintosh&&r===224)return 57}else if(y.isWebKit){if(r===91)return 57;if(I.isMacintosh&&r===93)return 57;if(!I.isMacintosh&&r===92)return 57}return N.EVENT_KEY_CODE_MAP[r]||0}const C=I.isMacintosh?256:2048,p=512,h=1024,g=I.isMacintosh?2048:256;class i{constructor(r){this._standardKeyboardEventBrand=!0;let c=r;this.browserEvent=c,this.target=c.target,this.ctrlKey=c.ctrlKey,this.shiftKey=c.shiftKey,this.altKey=c.altKey,this.metaKey=c.metaKey,this.keyCode=b(c),this.code=c.code,this.ctrlKey=this.ctrlKey||this.keyCode===5,this.altKey=this.altKey||this.keyCode===6,this.shiftKey=this.shiftKey||this.keyCode===4,this.metaKey=this.metaKey||this.keyCode===57,this._asKeybinding=this._computeKeybinding(),this._asRuntimeKeybinding=this._computeRuntimeKeybinding()}preventDefault(){this.browserEvent&&this.browserEvent.preventDefault&&this.browserEvent.preventDefault()}stopPropagation(){this.browserEvent&&this.browserEvent.stopPropagation&&this.browserEvent.stopPropagation()}toKeybinding(){return this._asRuntimeKeybinding}equals(r){return this._asKeybinding===r}_computeKeybinding(){let r=0;this.keyCode!==5&&this.keyCode!==4&&this.keyCode!==6&&this.keyCode!==57&&(r=this.keyCode);let c=0;return this.ctrlKey&&(c|=C),this.altKey&&(c|=p),this.shiftKey&&(c|=h),this.metaKey&&(c|=g),c|=r,c}_computeRuntimeKeybinding(){let r=0;return this.keyCode!==5&&this.keyCode!==4&&this.keyCode!==6&&this.keyCode!==57&&(r=this.keyCode),new T.SimpleKeybinding(this.ctrlKey,this.shiftKey,this.altKey,this.metaKey,r)}}e.StandardKeyboardEvent=i}),define(ee[57],te([0,1,34,204,17]),function(q,e,y,N,T){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.StandardWheelEvent=e.StandardMouseEvent=void 0;class I{constructor(p){this.timestamp=Date.now(),this.browserEvent=p,this.leftButton=p.button===0,this.middleButton=p.button===1,this.rightButton=p.button===2,this.buttons=p.buttons,this.target=p.target,this.detail=p.detail||1,p.type==="dblclick"&&(this.detail=2),this.ctrlKey=p.ctrlKey,this.shiftKey=p.shiftKey,this.altKey=p.altKey,this.metaKey=p.metaKey,typeof p.pageX=="number"?(this.posx=p.pageX,this.posy=p.pageY):(this.posx=p.clientX+document.body.scrollLeft+document.documentElement.scrollLeft,this.posy=p.clientY+document.body.scrollTop+document.documentElement.scrollTop);let h=N.IframeUtils.getPositionOfChildWindowRelativeToAncestorWindow(self,p.view);this.posx-=h.left,this.posy-=h.top}preventDefault(){this.browserEvent.preventDefault()}stopPropagation(){this.browserEvent.stopPropagation()}}e.StandardMouseEvent=I;class b{constructor(p,h=0,g=0){if(this.browserEvent=p||null,this.target=p?p.target||p.targetNode||p.srcElement:null,this.deltaY=g,this.deltaX=h,p){let i=p,t=p;if(typeof i.wheelDeltaY!="undefined")this.deltaY=i.wheelDeltaY/120;else if(typeof t.VERTICAL_AXIS!="undefined"&&t.axis===t.VERTICAL_AXIS)this.deltaY=-t.detail/3;else if(p.type==="wheel"){const r=p;r.deltaMode===r.DOM_DELTA_LINE?y.isFirefox&&!T.isMacintosh?this.deltaY=-p.deltaY/3:this.deltaY=-p.deltaY:this.deltaY=-p.deltaY/40}if(typeof i.wheelDeltaX!="undefined")y.isSafari&&T.isWindows?this.deltaX=-(i.wheelDeltaX/120):this.deltaX=i.wheelDeltaX/120;else if(typeof t.HORIZONTAL_AXIS!="undefined"&&t.axis===t.HORIZONTAL_AXIS)this.deltaX=-p.detail/3;else if(p.type==="wheel"){const r=p;r.deltaMode===r.DOM_DELTA_LINE?y.isFirefox&&!T.isMacintosh?this.deltaX=-p.deltaX/3:this.deltaX=-p.deltaX:this.deltaX=-p.deltaX/40}this.deltaY===0&&this.deltaX===0&&p.wheelDelta&&(this.deltaY=p.wheelDelta/120)}}preventDefault(){this.browserEvent&&this.browserEvent.preventDefault()}stopPropagation(){this.browserEvent&&this.browserEvent.stopPropagation()}}e.StandardWheelEvent=b}),define(ee[23],te([0,1,4]),function(q,e,y){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.CancellationTokenSource=e.CancellationToken=void 0;const N=Object.freeze(function(C,p){const h=setTimeout(C.bind(p),0);return{dispose(){clearTimeout(h)}}});var T;(function(C){function p(h){return h===C.None||h===C.Cancelled||h instanceof I?!0:!h||typeof h!="object"?!1:typeof h.isCancellationRequested=="boolean"&&typeof h.onCancellationRequested=="function"}C.isCancellationToken=p,C.None=Object.freeze({isCancellationRequested:!1,onCancellationRequested:y.Event.None}),C.Cancelled=Object.freeze({isCancellationRequested:!0,onCancellationRequested:N})})(T=e.CancellationToken||(e.CancellationToken={}));class I{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?N:(this._emitter||(this._emitter=new y.Emitter),this._emitter.event)}dispose(){this._emitter&&(this._emitter.dispose(),this._emitter=null)}}class b{constructor(p){this._token=void 0,this._parentListener=void 0,this._parentListener=p&&p.onCancellationRequested(this.cancel,this)}get token(){return this._token||(this._token=new I),this._token}cancel(){this._token?this._token instanceof I&&this._token.cancel():this._token=T.Cancelled}dispose(p=!1){p&&this.cancel(),this._parentListener&&this._parentListener.dispose(),this._token?this._token instanceof I&&this._token.dispose():this._token=T.None}}e.CancellationTokenSource=b});var Ae=this&&this.__awaiter||function(q,e,y,N){function T(I){return I instanceof y?I:new y(function(b){b(I)})}return new(y||(y=Promise))(function(I,b){function C(g){try{h(N.next(g))}catch(i){b(i)}}function p(g){try{h(N.throw(g))}catch(i){b(i)}}function h(g){g.done?I(g.value):T(g.value).then(C,p)}h((N=N.apply(q,e||[])).next())})},_t=this&&this.__asyncValues||function(q){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e=q[Symbol.asyncIterator],y;return e?e.call(q):(q=typeof __values=="function"?__values(q):q[Symbol.iterator](),y={},N("next"),N("throw"),N("return"),y[Symbol.asyncIterator]=function(){return this},y);function N(I){y[I]=q[I]&&function(b){return new Promise(function(C,p){b=q[I](b),T(C,p,b.done,b.value)})}}function T(I,b,C,p){Promise.resolve(p).then(function(h){I({value:h,done:C})},b)}};define(ee[10],te([0,1,23,13,4,2,17]),function(q,e,y,N,T,I,b){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.createCancelableAsyncIterable=e.CancelableAsyncIterableObject=e.AsyncIterableObject=e.Promises=e.DeferredPromise=e.IdleValue=e.runWhenIdle=e.RunOnceScheduler=e.IntervalTimer=e.TimeoutTimer=e.first=e.disposableTimeout=e.timeout=e.ThrottledDelayer=e.Delayer=e.Throttler=e.raceCancellation=e.createCancelablePromise=e.isThenable=void 0;function C(m){return!!m&&typeof m.then=="function"}e.isThenable=C;function p(m){const _=new y.CancellationTokenSource,L=m(_.token),w=new Promise((k,D)=>{const M=_.token.onCancellationRequested(()=>{M.dispose(),_.dispose(),D((0,N.canceled)())});Promise.resolve(L).then(O=>{M.dispose(),_.dispose(),k(O)},O=>{M.dispose(),_.dispose(),D(O)})});return new class{cancel(){_.cancel()}then(k,D){return w.then(k,D)}catch(k){return this.then(void 0,k)}finally(k){return w.finally(k)}}}e.createCancelablePromise=p;function h(m,_,L){return Promise.race([m,new Promise(w=>_.onCancellationRequested(()=>w(L)))])}e.raceCancellation=h;class g{constructor(){this.activePromise=null,this.queuedPromise=null,this.queuedPromiseFactory=null}queue(_){if(this.activePromise){if(this.queuedPromiseFactory=_,!this.queuedPromise){const L=()=>{this.queuedPromise=null;const w=this.queue(this.queuedPromiseFactory);return this.queuedPromiseFactory=null,w};this.queuedPromise=new Promise(w=>{this.activePromise.then(L,L).then(w)})}return new Promise((L,w)=>{this.queuedPromise.then(L,w)})}return this.activePromise=_(),new Promise((L,w)=>{this.activePromise.then(k=>{this.activePromise=null,L(k)},k=>{this.activePromise=null,w(k)})})}}e.Throttler=g;class i{constructor(_){this.defaultDelay=_,this.timeout=null,this.completionPromise=null,this.doResolve=null,this.doReject=null,this.task=null}trigger(_,L=this.defaultDelay){return this.task=_,this.cancelTimeout(),this.completionPromise||(this.completionPromise=new Promise((w,k)=>{this.doResolve=w,this.doReject=k}).then(()=>{if(this.completionPromise=null,this.doResolve=null,this.task){const w=this.task;return this.task=null,w()}})),this.timeout=setTimeout(()=>{this.timeout=null,this.doResolve&&this.doResolve(null)},L),this.completionPromise}isTriggered(){return this.timeout!==null}cancel(){this.cancelTimeout(),this.completionPromise&&(this.doReject&&this.doReject((0,N.canceled)()),this.completionPromise=null)}cancelTimeout(){this.timeout!==null&&(clearTimeout(this.timeout),this.timeout=null)}dispose(){this.cancel()}}e.Delayer=i;class t{constructor(_){this.delayer=new i(_),this.throttler=new g}trigger(_,L){return this.delayer.trigger(()=>this.throttler.queue(_),L)}dispose(){this.delayer.dispose()}}e.ThrottledDelayer=t;function r(m,_){return _?new Promise((L,w)=>{const k=setTimeout(()=>{D.dispose(),L()},m),D=_.onCancellationRequested(()=>{clearTimeout(k),D.dispose(),w((0,N.canceled)())})}):p(L=>r(m,L))}e.timeout=r;function c(m,_=0){const L=setTimeout(m,_);return(0,I.toDisposable)(()=>clearTimeout(L))}e.disposableTimeout=c;function l(m,_=w=>!!w,L=null){let w=0;const k=m.length,D=()=>{if(w>=k)return Promise.resolve(L);const M=m[w++];return Promise.resolve(M()).then(F=>_(F)?Promise.resolve(F):D())};return D()}e.first=l;class a{constructor(_,L){this._token=-1,typeof _=="function"&&typeof L=="number"&&this.setIfNotSet(_,L)}dispose(){this.cancel()}cancel(){this._token!==-1&&(clearTimeout(this._token),this._token=-1)}cancelAndSet(_,L){this.cancel(),this._token=setTimeout(()=>{this._token=-1,_()},L)}setIfNotSet(_,L){this._token===-1&&(this._token=setTimeout(()=>{this._token=-1,_()},L))}}e.TimeoutTimer=a;class s{constructor(){this._token=-1}dispose(){this.cancel()}cancel(){this._token!==-1&&(clearInterval(this._token),this._token=-1)}cancelAndSet(_,L){this.cancel(),this._token=setInterval(()=>{_()},L)}}e.IntervalTimer=s;class o{constructor(_,L){this.timeoutToken=-1,this.runner=_,this.timeout=L,this.timeoutHandler=this.onTimeout.bind(this)}dispose(){this.cancel(),this.runner=null}cancel(){this.isScheduled()&&(clearTimeout(this.timeoutToken),this.timeoutToken=-1)}schedule(_=this.timeout){this.cancel(),this.timeoutToken=setTimeout(this.timeoutHandler,_)}get delay(){return this.timeout}set delay(_){this.timeout=_}isScheduled(){return this.timeoutToken!==-1}onTimeout(){this.timeoutToken=-1,this.runner&&this.doRun()}doRun(){this.runner&&this.runner()}}e.RunOnceScheduler=o,function(){typeof requestIdleCallback!="function"||typeof cancelIdleCallback!="function"?e.runWhenIdle=m=>{(0,b.setTimeout0)(()=>{if(_)return;const L=Date.now()+3;m(Object.freeze({didTimeout:!0,timeRemaining(){return Math.max(0,L-Date.now())}}))});let _=!1;return{dispose(){_||(_=!0)}}}:e.runWhenIdle=(m,_)=>{const L=requestIdleCallback(m,typeof _=="number"?{timeout:_}:void 0);let w=!1;return{dispose(){w||(w=!0,cancelIdleCallback(L))}}}}();class n{constructor(_){this._didRun=!1,this._executor=()=>{try{this._value=_()}catch(L){this._error=L}finally{this._didRun=!0}},this._handle=(0,e.runWhenIdle)(()=>this._executor())}dispose(){this._handle.dispose()}get value(){if(this._didRun||(this._handle.dispose(),this._executor()),this._error)throw this._error;return this._value}get isInitialized(){return this._didRun}}e.IdleValue=n;class d{constructor(){this.resolved=!1,this.p=new Promise((_,L)=>{this.completeCallback=_,this.errorCallback=L})}complete(_){return new Promise(L=>{this.completeCallback(_),this.resolved=!0,L()})}}e.DeferredPromise=d;var u;(function(m){function _(w){return Ae(this,void 0,void 0,function*(){let k;const D=yield Promise.all(w.map(M=>M.then(O=>O,O=>{k||(k=O)})));if(typeof k!="undefined")throw k;return D})}m.settled=_;function L(w){return new Promise((k,D)=>Ae(this,void 0,void 0,function*(){try{yield w(k,D)}catch(M){D(M)}}))}m.withAsyncBody=L})(u=e.Promises||(e.Promises={}));class f{constructor(_){this._state=0,this._results=[],this._error=null,this._onStateChanged=new T.Emitter,queueMicrotask(()=>Ae(this,void 0,void 0,function*(){const L={emitOne:w=>this.emitOne(w),emitMany:w=>this.emitMany(w),reject:w=>this.reject(w)};try{yield Promise.resolve(_(L)),this.resolve()}catch(w){this.reject(w)}finally{L.emitOne=void 0,L.emitMany=void 0,L.reject=void 0}}))}static fromArray(_){return new f(L=>{L.emitMany(_)})}static fromPromise(_){return new f(L=>Ae(this,void 0,void 0,function*(){L.emitMany(yield _)}))}static fromPromises(_){return new f(L=>Ae(this,void 0,void 0,function*(){yield Promise.all(_.map(w=>Ae(this,void 0,void 0,function*(){return L.emitOne(yield w)})))}))}static merge(_){return new f(L=>Ae(this,void 0,void 0,function*(){yield Promise.all(_.map(w=>{var k,D;return Ae(this,void 0,void 0,function*(){var M,O;try{for(k=_t(w);D=yield k.next(),!D.done;){const F=D.value;L.emitOne(F)}}catch(F){M={error:F}}finally{try{D&&!D.done&&(O=k.return)&&(yield O.call(k))}finally{if(M)throw M.error}}})}))}))}[Symbol.asyncIterator](){let _=0;return{next:()=>Ae(this,void 0,void 0,function*(){do{if(this._state===2)throw this._error;if(_Ae(this,void 0,void 0,function*(){var k,D;try{for(var M=_t(_),O;O=yield M.next(),!O.done;){const F=O.value;w.emitOne(L(F))}}catch(F){k={error:F}}finally{try{O&&!O.done&&(D=M.return)&&(yield D.call(M))}finally{if(k)throw k.error}}}))}map(_){return f.map(this,_)}static filter(_,L){return new f(w=>Ae(this,void 0,void 0,function*(){var k,D;try{for(var M=_t(_),O;O=yield M.next(),!O.done;){const F=O.value;L(F)&&w.emitOne(F)}}catch(F){k={error:F}}finally{try{O&&!O.done&&(D=M.return)&&(yield D.call(M))}finally{if(k)throw k.error}}}))}filter(_){return f.filter(this,_)}static coalesce(_){return f.filter(_,L=>!!L)}coalesce(){return f.coalesce(this)}static toPromise(_){var L,w,k,D;return Ae(this,void 0,void 0,function*(){const M=[];try{for(L=_t(_);w=yield L.next(),!w.done;){const O=w.value;M.push(O)}}catch(O){k={error:O}}finally{try{w&&!w.done&&(D=L.return)&&(yield D.call(L))}finally{if(k)throw k.error}}return M})}toPromise(){return f.toPromise(this)}emitOne(_){this._state===0&&(this._results.push(_),this._onStateChanged.fire())}emitMany(_){this._state===0&&(this._results=this._results.concat(_),this._onStateChanged.fire())}resolve(){this._state===0&&(this._state=1,this._onStateChanged.fire())}reject(_){this._state===0&&(this._state=2,this._error=_,this._onStateChanged.fire())}}e.AsyncIterableObject=f,f.EMPTY=f.fromArray([]);class S extends f{constructor(_,L){super(L);this._source=_}cancel(){this._source.cancel()}}e.CancelableAsyncIterableObject=S;function v(m){const _=new y.CancellationTokenSource,L=m(_.token);return new S(_,w=>Ae(this,void 0,void 0,function*(){var k,D;const M=_.token.onCancellationRequested(()=>{M.dispose(),_.dispose(),w.reject((0,N.canceled)())});try{try{for(var O=_t(L),F;F=yield O.next(),!F.done;){const R=F.value;if(_.token.isCancellationRequested)return;w.emitOne(R)}}catch(R){k={error:R}}finally{try{F&&!F.done&&(D=O.return)&&(yield D.call(O))}finally{if(k)throw k.error}}M.dispose(),_.dispose()}catch(R){M.dispose(),_.dispose(),w.reject(R)}}))}e.createCancelableAsyncIterable=v}),define(ee[307],te([0,1,10,2]),function(q,e,y,N){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ScrollbarVisibilityController=void 0;class T extends N.Disposable{constructor(b,C,p){super();this._visibility=b,this._visibleClassName=C,this._invisibleClassName=p,this._domNode=null,this._isVisible=!1,this._isNeeded=!1,this._rawShouldBeVisible=!1,this._shouldBeVisible=!1,this._revealTimer=this._register(new y.TimeoutTimer)}setVisibility(b){this._visibility!==b&&(this._visibility=b,this._updateShouldBeVisible())}setShouldBeVisible(b){this._rawShouldBeVisible=b,this._updateShouldBeVisible()}_applyVisibilitySetting(){return this._visibility===2?!1:this._visibility===3?!0:this._rawShouldBeVisible}_updateShouldBeVisible(){const b=this._applyVisibilitySetting();this._shouldBeVisible!==b&&(this._shouldBeVisible=b,this.ensureVisibility())}setIsNeeded(b){this._isNeeded!==b&&(this._isNeeded=b,this.ensureVisibility())}setDomNode(b){this._domNode=b,this._domNode.setClassName(this._invisibleClassName),this.setShouldBeVisible(!1)}ensureVisibility(){if(!this._isNeeded){this._hide(!1);return}this._shouldBeVisible?this._reveal():this._hide(!0)}_reveal(){this._isVisible||(this._isVisible=!0,this._revealTimer.setIfNotSet(()=>{this._domNode&&this._domNode.setClassName(this._visibleClassName)},0))}_hide(b){this._revealTimer.cancel(),!!this._isVisible&&(this._isVisible=!1,this._domNode&&this._domNode.setClassName(this._invisibleClassName+(b?" fade":"")))}}e.ScrollbarVisibilityController=T}),define(ee[27],te([0,1,4]),function(q,e,y){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.CSSIcon=e.Codicon=e.getCodiconAriaLabel=e.iconRegistry=void 0;class N{constructor(){this._icons=new Map,this._onDidRegister=new y.Emitter}add(h){const g=this._icons.get(h.id);g?h.description?g.description=h.description:console.error(`Duplicate registration of codicon ${h.id}`):(this._icons.set(h.id,h),this._onDidRegister.fire(h))}get(h){return this._icons.get(h)}get all(){return this._icons.values()}get onDidRegister(){return this._onDidRegister.event}}const T=new N;e.iconRegistry=T;function I(p){return p?p.replace(/\$\((.*?)\)/g,(h,g)=>` ${g} `).trim():""}e.getCodiconAriaLabel=I;class b{constructor(h,g,i){this.id=h,this.definition=g,this.description=i,T.add(this)}get classNames(){return"codicon codicon-"+this.id}get classNamesArray(){return["codicon","codicon-"+this.id]}get cssSelector(){return".codicon.codicon-"+this.id}}e.Codicon=b,b.add=new b("add",{fontCharacter:"\\ea60"}),b.lightBulb=new b("light-bulb",{fontCharacter:"\\ea61"}),b.warning=new b("warning",{fontCharacter:"\\ea6c"}),b.info=new b("info",{fontCharacter:"\\ea74"}),b.close=new b("close",{fontCharacter:"\\ea76"}),b.sync=new b("sync",{fontCharacter:"\\ea77"}),b.symbolFolder=new b("symbol-folder",{fontCharacter:"\\ea83"}),b.symbolEvent=new b("symbol-event",{fontCharacter:"\\ea86"}),b.error=new b("error",{fontCharacter:"\\ea87"}),b.symbolVariable=new b("symbol-variable",{fontCharacter:"\\ea88"}),b.symbolArray=new b("symbol-array",{fontCharacter:"\\ea8a"}),b.symbolModule=new b("symbol-module",{fontCharacter:"\\ea8b"}),b.symbolPackage=new b("symbol-package",{fontCharacter:"\\ea8b"}),b.symbolNamespace=new b("symbol-namespace",{fontCharacter:"\\ea8b"}),b.symbolObject=new b("symbol-object",{fontCharacter:"\\ea8b"}),b.symbolMethod=new b("symbol-method",{fontCharacter:"\\ea8c"}),b.symbolFunction=new b("symbol-function",{fontCharacter:"\\ea8c"}),b.symbolConstructor=new b("symbol-constructor",{fontCharacter:"\\ea8c"}),b.symbolBoolean=new b("symbol-boolean",{fontCharacter:"\\ea8f"}),b.symbolNull=new b("symbol-null",{fontCharacter:"\\ea8f"}),b.symbolNumber=new b("symbol-number",{fontCharacter:"\\ea90"}),b.symbolStruct=new b("symbol-struct",{fontCharacter:"\\ea91"}),b.symbolTypeParameter=new b("symbol-type-parameter",{fontCharacter:"\\ea92"}),b.symbolKey=new b("symbol-key",{fontCharacter:"\\ea93"}),b.symbolText=new b("symbol-text",{fontCharacter:"\\ea93"}),b.symbolReference=new b("symbol-reference",{fontCharacter:"\\ea94"}),b.symbolEnum=new b("symbol-enum",{fontCharacter:"\\ea95"}),b.symbolValue=new b("symbol-value",{fontCharacter:"\\ea95"}),b.symbolUnit=new b("symbol-unit",{fontCharacter:"\\ea96"}),b.arrowDown=new b("arrow-down",{fontCharacter:"\\ea9a"}),b.arrowLeft=new b("arrow-left",{fontCharacter:"\\ea9b"}),b.arrowUp=new b("arrow-up",{fontCharacter:"\\eaa1"}),b.caseSensitive=new b("case-sensitive",{fontCharacter:"\\eab1"}),b.check=new b("check",{fontCharacter:"\\eab2"}),b.chevronDown=new b("chevron-down",{fontCharacter:"\\eab4"}),b.chevronRight=new b("chevron-right",{fontCharacter:"\\eab6"}),b.chevronUp=new b("chevron-up",{fontCharacter:"\\eab7"}),b.lightbulbAutofix=new b("lightbulb-autofix",{fontCharacter:"\\eb13"}),b.loading=new b("loading",{fontCharacter:"\\eb19"}),b.preserveCase=new b("preserve-case",{fontCharacter:"\\eb2e"}),b.regex=new b("regex",{fontCharacter:"\\eb38"}),b.remove=new b("remove",{fontCharacter:"\\eb3b"}),b.replaceAll=new b("replace-all",{fontCharacter:"\\eb3c"}),b.replace=new b("replace",{fontCharacter:"\\eb3d"}),b.splitHorizontal=new b("split-horizontal",{fontCharacter:"\\eb56"}),b.splitVertical=new b("split-vertical",{fontCharacter:"\\eb57"}),b.symbolClass=new b("symbol-class",{fontCharacter:"\\eb5b"}),b.symbolColor=new b("symbol-color",{fontCharacter:"\\eb5c"}),b.symbolConstant=new b("symbol-constant",{fontCharacter:"\\eb5d"}),b.symbolEnumMember=new b("symbol-enum-member",{fontCharacter:"\\eb5e"}),b.symbolField=new b("symbol-field",{fontCharacter:"\\eb5f"}),b.symbolFile=new b("symbol-file",{fontCharacter:"\\eb60"}),b.symbolInterface=new b("symbol-interface",{fontCharacter:"\\eb61"}),b.symbolKeyword=new b("symbol-keyword",{fontCharacter:"\\eb62"}),b.symbolOperator=new b("symbol-operator",{fontCharacter:"\\eb64"}),b.symbolProperty=new b("symbol-property",{fontCharacter:"\\eb65"}),b.symbolSnippet=new b("symbol-snippet",{fontCharacter:"\\eb66"}),b.triangleDown=new b("triangle-down",{fontCharacter:"\\eb6e"}),b.triangleLeft=new b("triangle-left",{fontCharacter:"\\eb6f"}),b.triangleRight=new b("triangle-right",{fontCharacter:"\\eb70"}),b.triangleUp=new b("triangle-up",{fontCharacter:"\\eb71"}),b.wholeWord=new b("whole-word",{fontCharacter:"\\eb7e"}),b.listFilter=new b("list-filter",{fontCharacter:"\\eb83"}),b.listSelection=new b("list-selection",{fontCharacter:"\\eb85"}),b.selection=new b("selection",{fontCharacter:"\\eb85"}),b.symbolString=new b("symbol-string",{fontCharacter:"\\eb8d"}),b.treeItemExpanded=new b("tree-item-expanded",b.chevronDown.definition),b.treeFilterOnTypeOn=new b("tree-filter-on-type-on",b.listFilter.definition),b.treeFilterOnTypeOff=new b("tree-filter-on-type-off",b.listSelection.definition),b.treeFilterClear=new b("tree-filter-clear",b.close.definition),b.treeItemLoading=new b("tree-item-loading",b.loading.definition),b.menuSelection=new b("menu-selection",b.check.definition),b.menuSubmenu=new b("menu-submenu",b.chevronRight.definition),b.scrollbarButtonLeft=new b("scrollbar-button-left",b.triangleLeft.definition),b.scrollbarButtonRight=new b("scrollbar-button-right",b.triangleRight.definition),b.scrollbarButtonUp=new b("scrollbar-button-up",b.triangleUp.definition),b.scrollbarButtonDown=new b("scrollbar-button-down",b.triangleDown.definition),b.quickInputBack=new b("quick-input-back",b.arrowLeft.definition);var C;(function(p){p.iconNameSegment="[A-Za-z0-9]+",p.iconNameExpression="[A-Za-z0-9-]+",p.iconModifierExpression="~[A-Za-z]+",p.iconNameCharacter="[A-Za-z0-9~-]";const h=new RegExp(`^(${p.iconNameExpression})(${p.iconModifierExpression})?$`);function g(r){if(r instanceof b)return["codicon","codicon-"+r.id];const c=h.exec(r.id);if(!c)return g(b.error);let[,l,a]=c;const s=["codicon","codicon-"+l];return a&&s.push("codicon-modifier-"+a.substr(1)),s}p.asClassNameArray=g;function i(r){return g(r).join(" ")}p.asClassName=i;function t(r){return"."+g(r).join(".")}p.asCSSSelector=t})(C=e.CSSIcon||(e.CSSIcon={}))}),define(ee[308],te([0,1,10]),function(q,e,y){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.compareByPrefix=e.compareAnything=e.compareFileNames=void 0;const N=new y.IdleValue(()=>{const C=new Intl.Collator(void 0,{numeric:!0,sensitivity:"base"});return{collator:C,collatorIsNumeric:C.resolvedOptions().numeric}});function T(C,p,h=!1){const g=C||"",i=p||"",t=N.value.collator.compare(g,i);return N.value.collatorIsNumeric&&t===0&&g!==i?gi.length)return 1}return 0}e.compareByPrefix=b}),define(ee[134],te([0,1,4,2]),function(q,e,y,N){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.SmoothScrollingOperation=e.SmoothScrollingUpdate=e.Scrollable=e.ScrollState=void 0;class T{constructor(r,c,l,a,s,o){this._scrollStateBrand=void 0,r=r|0,c=c|0,l=l|0,a=a|0,s=s|0,o=o|0,this.rawScrollLeft=l,this.rawScrollTop=o,r<0&&(r=0),l+r>c&&(l=c-r),l<0&&(l=0),a<0&&(a=0),o+a>s&&(o=s-a),o<0&&(o=0),this.width=r,this.scrollWidth=c,this.scrollLeft=l,this.height=a,this.scrollHeight=s,this.scrollTop=o}equals(r){return this.rawScrollLeft===r.rawScrollLeft&&this.rawScrollTop===r.rawScrollTop&&this.width===r.width&&this.scrollWidth===r.scrollWidth&&this.scrollLeft===r.scrollLeft&&this.height===r.height&&this.scrollHeight===r.scrollHeight&&this.scrollTop===r.scrollTop}withScrollDimensions(r,c){return new T(typeof r.width!="undefined"?r.width:this.width,typeof r.scrollWidth!="undefined"?r.scrollWidth:this.scrollWidth,c?this.rawScrollLeft:this.scrollLeft,typeof r.height!="undefined"?r.height:this.height,typeof r.scrollHeight!="undefined"?r.scrollHeight:this.scrollHeight,c?this.rawScrollTop:this.scrollTop)}withScrollPosition(r){return new T(this.width,this.scrollWidth,typeof r.scrollLeft!="undefined"?r.scrollLeft:this.rawScrollLeft,this.height,this.scrollHeight,typeof r.scrollTop!="undefined"?r.scrollTop:this.rawScrollTop)}createScrollEvent(r,c){const l=this.width!==r.width,a=this.scrollWidth!==r.scrollWidth,s=this.scrollLeft!==r.scrollLeft,o=this.height!==r.height,n=this.scrollHeight!==r.scrollHeight,d=this.scrollTop!==r.scrollTop;return{inSmoothScrolling:c,oldWidth:r.width,oldScrollWidth:r.scrollWidth,oldScrollLeft:r.scrollLeft,width:this.width,scrollWidth:this.scrollWidth,scrollLeft:this.scrollLeft,oldHeight:r.height,oldScrollHeight:r.scrollHeight,oldScrollTop:r.scrollTop,height:this.height,scrollHeight:this.scrollHeight,scrollTop:this.scrollTop,widthChanged:l,scrollWidthChanged:a,scrollLeftChanged:s,heightChanged:o,scrollHeightChanged:n,scrollTopChanged:d}}}e.ScrollState=T;class I extends N.Disposable{constructor(r,c){super();this._scrollableBrand=void 0,this._onScroll=this._register(new y.Emitter),this.onScroll=this._onScroll.event,this._smoothScrollDuration=r,this._scheduleAtNextAnimationFrame=c,this._state=new T(0,0,0,0,0,0),this._smoothScrolling=null}dispose(){this._smoothScrolling&&(this._smoothScrolling.dispose(),this._smoothScrolling=null),super.dispose()}setSmoothScrollDuration(r){this._smoothScrollDuration=r}validateScrollPosition(r){return this._state.withScrollPosition(r)}getScrollDimensions(){return this._state}setScrollDimensions(r,c){const l=this._state.withScrollDimensions(r,c);this._setState(l,Boolean(this._smoothScrolling)),this._smoothScrolling&&this._smoothScrolling.acceptScrollDimensions(this._state)}getFutureScrollPosition(){return this._smoothScrolling?this._smoothScrolling.to:this._state}getCurrentScrollPosition(){return this._state}setScrollPositionNow(r){const c=this._state.withScrollPosition(r);this._smoothScrolling&&(this._smoothScrolling.dispose(),this._smoothScrolling=null),this._setState(c,!1)}setScrollPositionSmooth(r,c){if(this._smoothScrollDuration===0)return this.setScrollPositionNow(r);if(this._smoothScrolling){r={scrollLeft:typeof r.scrollLeft=="undefined"?this._smoothScrolling.to.scrollLeft:r.scrollLeft,scrollTop:typeof r.scrollTop=="undefined"?this._smoothScrolling.to.scrollTop:r.scrollTop};const l=this._state.withScrollPosition(r);if(this._smoothScrolling.to.scrollLeft===l.scrollLeft&&this._smoothScrolling.to.scrollTop===l.scrollTop)return;let a;c?a=new h(this._smoothScrolling.from,l,this._smoothScrolling.startTime,this._smoothScrolling.duration):a=this._smoothScrolling.combine(this._state,l,this._smoothScrollDuration),this._smoothScrolling.dispose(),this._smoothScrolling=a}else{const l=this._state.withScrollPosition(r);this._smoothScrolling=h.start(this._state,l,this._smoothScrollDuration)}this._smoothScrolling.animationFrameDisposable=this._scheduleAtNextAnimationFrame(()=>{!this._smoothScrolling||(this._smoothScrolling.animationFrameDisposable=null,this._performSmoothScrolling())})}_performSmoothScrolling(){if(!this._smoothScrolling)return;const r=this._smoothScrolling.tick(),c=this._state.withScrollPosition(r);if(this._setState(c,!0),!!this._smoothScrolling){if(r.isDone){this._smoothScrolling.dispose(),this._smoothScrolling=null;return}this._smoothScrolling.animationFrameDisposable=this._scheduleAtNextAnimationFrame(()=>{!this._smoothScrolling||(this._smoothScrolling.animationFrameDisposable=null,this._performSmoothScrolling())})}}_setState(r,c){const l=this._state;l.equals(r)||(this._state=r,this._onScroll.fire(this._state.createScrollEvent(l,c)))}}e.Scrollable=I;class b{constructor(r,c,l){this.scrollLeft=r,this.scrollTop=c,this.isDone=l}}e.SmoothScrollingUpdate=b;function C(t,r){const c=r-t;return function(l){return t+c*i(l)}}function p(t,r,c){return function(l){return l2.5*l){let s,o;return r=de.length?pe:de[se]})}e.format=I;function b(oe){return oe.replace(/[<>&]/g,function(de){switch(de){case"<":return"<";case">":return">";case"&":return"&";default:return de}})}e.escape=b;function C(oe){return oe.replace(/[\\\{\}\*\+\?\|\^\$\.\[\]\(\)]/g,"\\$&")}e.escapeRegExpCharacters=C;function p(oe,de=" "){const pe=h(oe,de);return g(pe,de)}e.trim=p;function h(oe,de){if(!oe||!de)return oe;const pe=de.length;if(pe===0||oe.length===0)return oe;let _e=0;for(;oe.indexOf(de,_e)===_e;)_e=_e+pe;return oe.substring(_e)}e.ltrim=h;function g(oe,de){if(!oe||!de)return oe;const pe=de.length,_e=oe.length;if(pe===0||_e===0)return oe;let se=_e,ue=-1;for(;ue=oe.lastIndexOf(de,se-1),!(ue===-1||ue+pe!==se);){if(ue===0)return"";se=ue}return oe.substring(0,se)}e.rtrim=g;function i(oe){return oe.replace(/[\-\\\{\}\+\?\|\^\$\.\,\[\]\(\)\#\s]/g,"\\$&").replace(/[\*]/g,".*")}e.convertSimple2RegExpPattern=i;function t(oe){return oe.replace(/\*/g,"")}e.stripWildcards=t;function r(oe,de,pe={}){if(!oe)throw new Error("Cannot create regex from empty string");de||(oe=C(oe)),pe.wholeWord&&(/\B/.test(oe.charAt(0))||(oe="\\b"+oe),/\B/.test(oe.charAt(oe.length-1))||(oe=oe+"\\b"));let _e="";return pe.global&&(_e+="g"),pe.matchCase||(_e+="i"),pe.multiline&&(_e+="m"),pe.unicode&&(_e+="u"),new RegExp(oe,_e)}e.createRegExp=r;function c(oe){return oe.source==="^"||oe.source==="^$"||oe.source==="$"||oe.source==="^\\s*$"?!1:!!(oe.exec("")&&oe.lastIndex===0)}e.regExpLeadsToEndlessLoop=c;function l(oe){return(oe.global?"g":"")+(oe.ignoreCase?"i":"")+(oe.multiline?"m":"")+(oe.unicode?"u":"")}e.regExpFlags=l;function a(oe){return oe.split(/\r\n|\r|\n/)}e.splitLines=a;function s(oe){for(let de=0,pe=oe.length;de=0;pe--){const _e=oe.charCodeAt(pe);if(_e!==32&&_e!==9)return pe}return-1}e.lastNonWhitespaceIndex=n;function d(oe,de){return oede?1:0}e.compare=d;function u(oe,de,pe=0,_e=oe.length,se=0,ue=de.length){for(;pe<_e&&seae)return 1}const be=_e-pe,ge=ue-se;return bege?1:0}e.compareSubstring=u;function f(oe,de){return S(oe,de,0,oe.length,0,de.length)}e.compareIgnoreCase=f;function S(oe,de,pe=0,_e=oe.length,se=0,ue=de.length){for(;pe<_e&&se=128||ae>=128)return u(oe.toLowerCase(),de.toLowerCase(),pe,_e,se,ue);v(Se)&&(Se-=32),v(ae)&&(ae-=32);const he=Se-ae;if(he!==0)return he}const be=_e-pe,ge=ue-se;return bege?1:0}e.compareSubstringIgnoreCase=S;function v(oe){return oe>=97&&oe<=122}e.isLowerAsciiLetter=v;function m(oe){return oe>=65&&oe<=90}e.isUpperAsciiLetter=m;function _(oe,de){return oe.length===de.length&&S(oe,de)===0}e.equalsIgnoreCase=_;function L(oe,de){const pe=de.length;return de.length>oe.length?!1:S(oe,de,0,pe)===0}e.startsWithIgnoreCase=L;function w(oe,de){let pe,_e=Math.min(oe.length,de.length);for(pe=0;pe<_e;pe++)if(oe.charCodeAt(pe)!==de.charCodeAt(pe))return pe;return _e}e.commonPrefixLength=w;function k(oe,de){let pe,_e=Math.min(oe.length,de.length);const se=oe.length-1,ue=de.length-1;for(pe=0;pe<_e;pe++)if(oe.charCodeAt(se-pe)!==de.charCodeAt(ue-pe))return pe;return _e}e.commonSuffixLength=k;function D(oe){return 55296<=oe&&oe<=56319}e.isHighSurrogate=D;function M(oe){return 56320<=oe&&oe<=57343}e.isLowSurrogate=M;function O(oe,de){return(oe-55296<<10)+(de-56320)+65536}e.computeCodePoint=O;function F(oe,de,pe){const _e=oe.charCodeAt(pe);if(D(_e)&&pe+11){const _e=oe.charCodeAt(de-2);if(D(_e))return O(_e,pe)}return pe}function A(oe,de){const pe=X.getInstance(),_e=de,se=oe.length,ue=F(oe,se,de);de+=ue>=65536?2:1;let be=pe.getGraphemeBreakType(ue);for(;de=65536?2:1,be=Se}return de-_e}e.nextCharLength=A;function P(oe,de){const pe=X.getInstance(),_e=de,se=R(oe,de);de-=se>=65536?2:1;let ue=pe.getGraphemeBreakType(se);for(;de>0;){const be=R(oe,de),ge=pe.getGraphemeBreakType(be);if(x(ge,ue))break;de-=be>=65536?2:1,ue=ge}return _e-de}e.prevCharLength=P;const E=/(?:[\u05BE\u05C0\u05C3\u05C6\u05D0-\u05F4\u0608\u060B\u060D\u061B-\u064A\u066D-\u066F\u0671-\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u0710\u0712-\u072F\u074D-\u07A5\u07B1-\u07EA\u07F4\u07F5\u07FA\u07FE-\u0815\u081A\u0824\u0828\u0830-\u0858\u085E-\u088E\u08A0-\u08C9\u200F\uFB1D\uFB1F-\uFB28\uFB2A-\uFD3D\uFD50-\uFDC7\uFDF0-\uFDFC\uFE70-\uFEFC]|\uD802[\uDC00-\uDD1B\uDD20-\uDE00\uDE10-\uDE35\uDE40-\uDEE4\uDEEB-\uDF35\uDF40-\uDFFF]|\uD803[\uDC00-\uDD23\uDE80-\uDEA9\uDEAD-\uDF45\uDF51-\uDF81\uDF86-\uDFF6]|\uD83A[\uDC00-\uDCCF\uDD00-\uDD43\uDD4B-\uDFFF]|\uD83B[\uDC00-\uDEBB])/;function B(oe){return E.test(oe)}e.containsRTL=B;const V=/(?:[\u231A\u231B\u23F0\u23F3\u2600-\u27BF\u2B50\u2B55]|\uD83C[\uDDE6-\uDDFF\uDF00-\uDFFF]|\uD83D[\uDC00-\uDE4F\uDE80-\uDEFC\uDFE0-\uDFF0]|\uD83E[\uDD00-\uDDFF\uDE70-\uDEF6])/;function j(oe){return V.test(oe)}e.containsEmoji=j;const K=/^[\t\n\r\x20-\x7E]*$/;function Y(oe){return K.test(oe)}e.isBasicASCII=Y,e.UNUSUAL_LINE_TERMINATORS=/[\u2028\u2029]/;function J(oe){return e.UNUSUAL_LINE_TERMINATORS.test(oe)}e.containsUnusualLineTerminators=J;function Z(oe){for(let de=0,pe=oe.length;de=11904&&oe<=55215||oe>=63744&&oe<=64255||oe>=65281&&oe<=65374}e.isFullWidthCharacter=ie;function ne(oe){return oe>=127462&&oe<=127487||oe===8986||oe===8987||oe===9200||oe===9203||oe>=9728&&oe<=10175||oe===11088||oe===11093||oe>=127744&&oe<=128591||oe>=128640&&oe<=128764||oe>=128992&&oe<=129008||oe>=129280&&oe<=129535||oe>=129648&&oe<=129782}e.isEmojiImprecise=ne,e.UTF8_BOM_CHARACTER=String.fromCharCode(65279);function G(oe){return!!(oe&&oe.length>0&&oe.charCodeAt(0)===65279)}e.startsWithUTF8BOM=G;function W(oe,de=!1){return oe?(de&&(oe=oe.replace(/\\./g,"")),oe.toLowerCase()!==oe):!1}e.containsUppercaseCharacter=W;function z(oe){const de=90-65+1;return oe=oe%(2*de),oepe[3*se+1])se=2*se+1;else return pe[3*se+2];return 0}}X._INSTANCE=null;function le(){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]")}function fe(oe,de){if(oe===0)return 0;const pe=$(oe,de);if(pe!==void 0)return pe;const _e=R(de,oe);return oe-=H(_e),oe}e.getLeftDeleteOffset=fe;function $(oe,de){let pe=R(de,oe);for(oe-=H(pe);Q(pe)||pe===65039||pe===8419;){if(oe===0)return;pe=R(de,oe),oe-=H(pe)}if(!!ne(pe)){if(oe>=0){const _e=R(de,oe);_e===8205&&(oe-=H(_e))}return oe}}function H(oe){return oe>=65536?2:1}function Q(oe){return 127995<=oe&&oe<=127999}e.noBreakWhitespace="\xA0";class re{static getData(){return 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,8218,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,8242,96,1370,96,1523,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,40,10088,40,10098,40,12308,40,64830,40,65341,41,10089,41,10099,41,12309,41,64831,41,10100,123,119060,123,10101,125,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,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,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,120786,52,120796,52,120806,52,120816,52,120826,52,130036,52,5070,52,71855,52,120787,53,120797,53,120807,53,120817,53,120827,53,130037,53,444,53,71867,53,120788,54,120798,54,120808,54,120818,54,120828,54,130038,54,11474,54,5102,54,71893,54,119314,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,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,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,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,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,71922,67,71913,67,65315,67,8557,67,8450,67,8493,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,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,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,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,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,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,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,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,124,8739,124,9213,124,65512,124,1633,124,1777,124,66336,124,125127,124,120783,124,120793,124,120803,124,120813,124,120823,124,130033,124,65321,124,8544,124,8464,124,8465,124,119816,124,119868,124,119920,124,120024,124,120128,124,120180,124,120232,124,120284,124,120336,124,120388,124,120440,124,406,124,65356,124,8572,124,8467,124,119845,124,119897,124,119949,124,120001,124,120053,124,120105,124,120157,124,120209,124,120261,124,120313,124,120365,124,120417,124,120469,124,448,124,120496,124,120554,124,120612,124,120670,124,120728,124,11410,124,1030,124,1216,124,1493,124,1503,124,1575,124,126464,124,126592,124,65166,124,65165,124,1994,124,11599,124,5825,124,42226,124,93992,124,66186,124,66313,124,119338,76,8556,76,8466,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,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,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,120782,79,120792,79,120802,79,120812,79,120822,79,130032,79,65327,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,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,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,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,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,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,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,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,71919,87,71910,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,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,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,66293,90,71909,90,65338,90,8484,90,8488,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],"_default":[160,32,8211,45,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,124,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],"cs":[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,124,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,1093,120,1061,88,1091,121,1059,89],"de":[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,124,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,1093,120,1061,88,1091,121,1059,89],"es":[8211,45,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],"fr":[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,124,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],"it":[160,32,8211,45,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,124,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],"ja":[8211,45,65306,58,65281,33,8216,96,8217,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,124,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],"ko":[8211,45,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,124,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],"pl":[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,124,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],"pt-BR":[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,124,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],"qps-ploc":[160,32,8211,45,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,124,1052,77,1086,111,1054,79,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89],"ru":[65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,305,105,921,124,1009,112,215,120],"tr":[160,32,8211,45,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,124,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],"zh-hans":[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,124,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],"zh-hant":[8211,45,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,124,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 getConfusablesForCurrentLocale(){if(!re.map){let _e=function(be){const ge=new Map;for(let Se=0;Ser.length)return!1;if(l){if(!(0,T.startsWithIgnoreCase)(r,c))return!1;if(c.length===r.length)return!0;let o=c.length;return c.charAt(c.length-1)===a&&o--,r.charAt(o)===a}return c.charAt(c.length-1)!==a&&(c+=a),r.indexOf(c)===0}e.isEqualOrParent=h;function g(r){return r>=65&&r<=90||r>=97&&r<=122}e.isWindowsDriveLetter=g;function i(r){const c=(0,y.normalize)(r);return N.isWindows?r.length>3?!1:t(c)&&(r.length===2||c.charCodeAt(2)===92):c===y.posix.sep}e.isRootOrDriveLetter=i;function t(r,c){return(c!==void 0?c:N.isWindows)?g(r.charCodeAt(0))&&r.charCodeAt(1)===58:!1}e.hasDriveLetter=t}),define(ee[106],te([0,1,8]),function(q,e,y){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.StringSHA1=e.toHexString=e.stringHash=e.numberHash=e.doHash=e.hash=void 0;function N(l){return T(l,0)}e.hash=N;function T(l,a){switch(typeof l){case"object":return l===null?I(349,a):Array.isArray(l)?p(l,a):h(l,a);case"string":return C(l,a);case"boolean":return b(l,a);case"number":return I(l,a);case"undefined":return I(937,a);default:return I(617,a)}}e.doHash=T;function I(l,a){return(a<<5)-a+l|0}e.numberHash=I;function b(l,a){return I(l?433:863,a)}function C(l,a){a=I(149417,a);for(let s=0,o=l.length;sT(o,s),a)}function h(l,a){return a=I(181387,a),Object.keys(l).sort().reduce((s,o)=>(s=C(o,s),T(l[o],s)),a)}function g(l,a,s=32){const o=s-a,n=~((1<>>o)>>>0}function i(l,a=0,s=l.byteLength,o=0){for(let n=0;ns.toString(16).padStart(2,"0")).join(""):t((l>>>0).toString(16),a/4)}e.toHexString=r;class c{constructor(){this._h0=1732584193,this._h1=4023233417,this._h2=2562383102,this._h3=271733878,this._h4=3285377520,this._buff=new Uint8Array(64+3),this._buffDV=new DataView(this._buff.buffer),this._buffLen=0,this._totalLen=0,this._leftoverHighSurrogate=0,this._finished=!1}update(a){const s=a.length;if(s===0)return;const o=this._buff;let n=this._buffLen,d=this._leftoverHighSurrogate,u,f;for(d!==0?(u=d,f=-1,d=0):(u=a.charCodeAt(0),f=0);;){let S=u;if(y.isHighSurrogate(u))if(f+1>>6,a[s++]=128|(o&63)>>>0):o<65536?(a[s++]=224|(o&61440)>>>12,a[s++]=128|(o&4032)>>>6,a[s++]=128|(o&63)>>>0):(a[s++]=240|(o&1835008)>>>18,a[s++]=128|(o&258048)>>>12,a[s++]=128|(o&4032)>>>6,a[s++]=128|(o&63)>>>0),s>=64&&(this._step(),s-=64,this._totalLen+=64,a[0]=a[64+0],a[1]=a[64+1],a[2]=a[64+2]),s}digest(){return this._finished||(this._finished=!0,this._leftoverHighSurrogate&&(this._leftoverHighSurrogate=0,this._buffLen=this._push(this._buff,this._buffLen,65533)),this._totalLen+=this._buffLen,this._wrapUp()),r(this._h0)+r(this._h1)+r(this._h2)+r(this._h3)+r(this._h4)}_wrapUp(){this._buff[this._buffLen++]=128,i(this._buff,this._buffLen),this._buffLen>56&&(this._step(),i(this._buff));const a=8*this._totalLen;this._buffDV.setUint32(56,Math.floor(a/4294967296),!1),this._buffDV.setUint32(60,a%4294967296,!1),this._step()}_step(){const a=c._bigBlock32,s=this._buffDV;for(let _=0;_<64;_+=4)a.setUint32(_,s.getUint32(_,!1),!1);for(let _=64;_<320;_+=4)a.setUint32(_,g(a.getUint32(_-12,!1)^a.getUint32(_-32,!1)^a.getUint32(_-56,!1)^a.getUint32(_-64,!1),1),!1);let o=this._h0,n=this._h1,d=this._h2,u=this._h3,f=this._h4,S,v,m;for(let _=0;_<80;_++)_<20?(S=n&d|~n&u,v=1518500249):_<40?(S=n^d^u,v=1859775393):_<60?(S=n&d|n&u|d&u,v=2400959708):(S=n^d^u,v=3395469782),m=g(o,5)+S+f+v+a.getUint32(_*4,!1)&4294967295,f=u,u=d,d=g(n,30),n=o,o=m;this._h0=this._h0+o&4294967295,this._h1=this._h1+n&4294967295,this._h2=this._h2+d&4294967295,this._h3=this._h3+u&4294967295,this._h4=this._h4+f&4294967295}}e.StringSHA1=c,c._bigBlock32=new DataView(new ArrayBuffer(320))}),define(ee[135],te([0,1,302,106]),function(q,e,y,N){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.LcsDiff=e.MyArray=e.Debug=e.stringDiff=e.StringDiffSequence=void 0;class T{constructor(i){this.source=i}getElements(){const i=this.source,t=new Int32Array(i.length);for(let r=0,c=i.length;r0||this.m_modifiedCount>0)&&this.m_changes.push(new y.DiffChange(this.m_originalStart,this.m_originalCount,this.m_modifiedStart,this.m_modifiedCount)),this.m_originalCount=0,this.m_modifiedCount=0,this.m_originalStart=1073741824,this.m_modifiedStart=1073741824}AddOriginalElement(i,t){this.m_originalStart=Math.min(this.m_originalStart,i),this.m_modifiedStart=Math.min(this.m_modifiedStart,t),this.m_originalCount++}AddModifiedElement(i,t){this.m_originalStart=Math.min(this.m_originalStart,i),this.m_modifiedStart=Math.min(this.m_modifiedStart,t),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}}class h{constructor(i,t,r=null){this.ContinueProcessingPredicate=r,this._originalSequence=i,this._modifiedSequence=t;const[c,l,a]=h._getElements(i),[s,o,n]=h._getElements(t);this._hasStrings=a&&n,this._originalStringElements=c,this._originalElementsOrHash=l,this._modifiedStringElements=s,this._modifiedElementsOrHash=o,this.m_forwardHistory=[],this.m_reverseHistory=[]}static _isStringArray(i){return i.length>0&&typeof i[0]=="string"}static _getElements(i){const t=i.getElements();if(h._isStringArray(t)){const r=new Int32Array(t.length);for(let c=0,l=t.length;c=i&&c>=r&&this.ElementsAreEqual(t,c);)t--,c--;if(i>t||r>c){let u;return r<=c?(b.Assert(i===t+1,"originalStart should only be one more than originalEnd"),u=[new y.DiffChange(i,0,r,c-r+1)]):i<=t?(b.Assert(r===c+1,"modifiedStart should only be one more than modifiedEnd"),u=[new y.DiffChange(i,t-i+1,r,0)]):(b.Assert(i===t+1,"originalStart should only be one more than originalEnd"),b.Assert(r===c+1,"modifiedStart should only be one more than modifiedEnd"),u=[]),u}const a=[0],s=[0],o=this.ComputeRecursionPoint(i,t,r,c,a,s,l),n=a[0],d=s[0];if(o!==null)return o;if(!l[0]){const u=this.ComputeDiffRecursive(i,n,r,d,l);let f=[];return l[0]?f=[new y.DiffChange(n+1,t-(n+1)+1,d+1,c-(d+1)+1)]:f=this.ComputeDiffRecursive(n+1,t,d+1,c,l),this.ConcatenateChanges(u,f)}return[new y.DiffChange(i,t-i+1,r,c-r+1)]}WALKTRACE(i,t,r,c,l,a,s,o,n,d,u,f,S,v,m,_,L,w){let k=null,D=null,M=new p,O=t,F=r,R=S[0]-_[0]-c,A=-1073741824,P=this.m_forwardHistory.length-1;do{const E=R+i;E===O||E=0&&(n=this.m_forwardHistory[P],i=n[0],O=1,F=n.length-1)}while(--P>=-1);if(k=M.getReverseChanges(),w[0]){let E=S[0]+1,B=_[0]+1;if(k!==null&&k.length>0){const V=k[k.length-1];E=Math.max(E,V.getOriginalEnd()),B=Math.max(B,V.getModifiedEnd())}D=[new y.DiffChange(E,f-E+1,B,m-B+1)]}else{M=new p,O=a,F=s,R=S[0]-_[0]-o,A=1073741824,P=L?this.m_reverseHistory.length-1:this.m_reverseHistory.length-2;do{const E=R+l;E===O||E=d[E+1]?(u=d[E+1]-1,v=u-R-o,u>A&&M.MarkNextChange(),A=u+1,M.AddOriginalElement(u+1,v+1),R=E+1-l):(u=d[E-1],v=u-R-o,u>A&&M.MarkNextChange(),A=u,M.AddModifiedElement(u+1,v+1),R=E-1-l),P>=0&&(d=this.m_reverseHistory[P],l=d[0],O=1,F=d.length-1)}while(--P>=-1);D=M.getChanges()}return this.ConcatenateChanges(k,D)}ComputeRecursionPoint(i,t,r,c,l,a,s){let o=0,n=0,d=0,u=0,f=0,S=0;i--,r--,l[0]=0,a[0]=0,this.m_forwardHistory=[],this.m_reverseHistory=[];const v=t-i+(c-r),m=v+1,_=new Int32Array(m),L=new Int32Array(m),w=c-r,k=t-i,D=i-r,M=t-c,F=(k-w)%2==0;_[w]=i,L[k]=t,s[0]=!1;for(let R=1;R<=v/2+1;R++){let A=0,P=0;d=this.ClipDiagonalBound(w-R,R,w,m),u=this.ClipDiagonalBound(w+R,R,w,m);for(let B=d;B<=u;B+=2){B===d||BA+P&&(A=o,P=n),!F&&Math.abs(B-k)<=R-1&&o>=L[B])return l[0]=o,a[0]=n,V<=L[B]&&1447>0&&R<=1447+1?this.WALKTRACE(w,d,u,D,k,f,S,M,_,L,o,t,l,n,c,a,F,s):null}const E=(A-i+(P-r)-R)/2;if(this.ContinueProcessingPredicate!==null&&!this.ContinueProcessingPredicate(A,E))return s[0]=!0,l[0]=A,a[0]=P,E>0&&1447>0&&R<=1447+1?this.WALKTRACE(w,d,u,D,k,f,S,M,_,L,o,t,l,n,c,a,F,s):(i++,r++,[new y.DiffChange(i,t-i+1,r,c-r+1)]);f=this.ClipDiagonalBound(k-R,R,k,m),S=this.ClipDiagonalBound(k+R,R,k,m);for(let B=f;B<=S;B+=2){B===f||B=L[B+1]?o=L[B+1]-1:o=L[B-1],n=o-(B-k)-M;const V=o;for(;o>i&&n>r&&this.ElementsAreEqual(o,n);)o--,n--;if(L[B]=o,F&&Math.abs(B-w)<=R&&o<=_[B])return l[0]=o,a[0]=n,V>=_[B]&&1447>0&&R<=1447+1?this.WALKTRACE(w,d,u,D,k,f,S,M,_,L,o,t,l,n,c,a,F,s):null}if(R<=1447){let B=new Int32Array(u-d+2);B[0]=w-d+1,C.Copy2(_,d,B,1,u-d+1),this.m_forwardHistory.push(B),B=new Int32Array(S-f+2),B[0]=k-f+1,C.Copy2(L,f,B,1,S-f+1),this.m_reverseHistory.push(B)}}return this.WALKTRACE(w,d,u,D,k,f,S,M,_,L,o,t,l,n,c,a,F,s)}PrettifyChanges(i){for(let t=0;t0,s=r.modifiedLength>0;for(;r.originalStart+r.originalLength=0;t--){const r=i[t];let c=0,l=0;if(t>0){const u=i[t-1];c=u.originalStart+u.originalLength,l=u.modifiedStart+u.modifiedLength}const a=r.originalLength>0,s=r.modifiedLength>0;let o=0,n=this._boundaryScore(r.originalStart,r.originalLength,r.modifiedStart,r.modifiedLength);for(let u=1;;u++){const f=r.originalStart-u,S=r.modifiedStart-u;if(fn&&(n=m,o=u)}r.originalStart-=o,r.modifiedStart-=o;const d=[null];if(t>0&&this.ChangesOverlap(i[t-1],i[t],d)){i[t-1]=d[0],i.splice(t,1),t++;continue}}if(this._hasStrings)for(let t=1,r=i.length;t0&&S>o&&(o=S,n=u,d=f)}return o>0?[n,d]:null}_contiguousSequenceScore(i,t,r){let c=0;for(let l=0;l=this._originalElementsOrHash.length-1?!0:this._hasStrings&&/^\s*$/.test(this._originalStringElements[i])}_OriginalRegionIsBoundary(i,t){if(this._OriginalIsBoundary(i)||this._OriginalIsBoundary(i-1))return!0;if(t>0){const r=i+t;if(this._OriginalIsBoundary(r-1)||this._OriginalIsBoundary(r))return!0}return!1}_ModifiedIsBoundary(i){return i<=0||i>=this._modifiedElementsOrHash.length-1?!0:this._hasStrings&&/^\s*$/.test(this._modifiedStringElements[i])}_ModifiedRegionIsBoundary(i,t){if(this._ModifiedIsBoundary(i)||this._ModifiedIsBoundary(i-1))return!0;if(t>0){const r=i+t;if(this._ModifiedIsBoundary(r-1)||this._ModifiedIsBoundary(r))return!0}return!1}_boundaryScore(i,t,r,c){const l=this._OriginalRegionIsBoundary(i,t)?1:0,a=this._ModifiedRegionIsBoundary(r,c)?1:0;return l+a}ConcatenateChanges(i,t){let r=[];if(i.length===0||t.length===0)return t.length>0?t:i;if(this.ChangesOverlap(i[i.length-1],t[0],r)){const c=new Array(i.length+t.length-1);return C.Copy(i,0,c,0,i.length-1),c[i.length-1]=r[0],C.Copy(t,1,c,i.length,t.length-1),c}else{const c=new Array(i.length+t.length);return C.Copy(i,0,c,0,i.length),C.Copy(t,0,c,i.length,t.length),c}}ChangesOverlap(i,t,r){if(b.Assert(i.originalStart<=t.originalStart,"Left change is not less than or equal to right change"),b.Assert(i.modifiedStart<=t.modifiedStart,"Left change is not less than or equal to right change"),i.originalStart+i.originalLength>=t.originalStart||i.modifiedStart+i.modifiedLength>=t.modifiedStart){const c=i.originalStart;let l=i.originalLength;const a=i.modifiedStart;let s=i.modifiedLength;return i.originalStart+i.originalLength>=t.originalStart&&(l=t.originalStart+t.originalLength-i.originalStart),i.modifiedStart+i.modifiedLength>=t.modifiedStart&&(s=t.modifiedStart+t.modifiedLength-i.modifiedStart),r[0]=new y.DiffChange(c,l,a,s),!0}else return r[0]=null,!1}ClipDiagonalBound(i,t,r,c){if(i>=0&&in.lastDiffIds},{getElements:()=>[...n.children.slice(0,u),...d,...n.children.slice(u+c)].map(L=>t.getId(L.element).toString())}).ComputeDiff(!1);if(f.quitEarly)return n.lastDiffIds=void 0,this.spliceSimple(r,c,d,a);const S=r.slice(0,-1),v=(L,w,k)=>{if(s>0)for(let D=0;Dk.originalStart-w.originalStart))v(m,_,m-(L.originalStart+L.originalLength)),m=L.originalStart,_=L.modifiedStart-u,this.spliceSimple([...S,m],L.originalLength,b.Iterable.slice(d,_,_+L.modifiedLength),a);v(m,_,m)}spliceSimple(t,r,c=b.Iterable.empty(),{onDidCreateNode:l,onDidDeleteNode:a,diffIdentityProvider:s}){const{parentNode:o,listIndex:n,revealed:d,visible:u}=this.getParentNodeWithListIndex(t),f=[],S=b.Iterable.map(c,R=>this.createTreeNode(R,o,o.visible?1:0,d,f,l)),v=t[t.length-1],m=o.children.length>0;let _=0;for(let R=v;R>=0&&Rs.getId(R.element).toString())):o.lastDiffIds=o.children.map(R=>s.getId(R.element).toString()):o.lastDiffIds=void 0;let M=0;for(const R of D)R.visible&&M++;if(M!==0)for(let R=v+L.length;RA+(P.visible?P.renderNodeCount:0),0);this._updateAncestorsRenderNodeCount(o,k-R),this.list.splice(n,R,f)}if(D.length>0&&a){const R=A=>{a(A),A.children.forEach(R)};D.forEach(R)}const O=o.children.length>0;m!==O&&this.setCollapsible(t.slice(0,-1),O),this._onDidSplice.fire({insertedNodes:L,deletedNodes:D});let F=o;for(;F;){if(F.visibility===2){this.refilter();break}F=F.parent}}rerender(t){if(t.length===0)throw new y.TreeError(this.user,"Invalid tree location");const{node:r,listIndex:c,revealed:l}=this.getTreeNodeWithListIndex(t);r.visible&&l&&this.list.splice(c,1,[r])}has(t){return this.hasTreeNode(t)}getListIndex(t){const{listIndex:r,visible:c,revealed:l}=this.getTreeNodeWithListIndex(t);return c&&l?r:-1}getListRenderCount(t){return this.getTreeNode(t).renderNodeCount}isCollapsible(t){return this.getTreeNode(t).collapsible}setCollapsible(t,r){const c=this.getTreeNode(t);typeof r=="undefined"&&(r=!c.collapsible);const l={collapsible:r};return this.eventBufferer.bufferEvents(()=>this._setCollapseState(t,l))}isCollapsed(t){return this.getTreeNode(t).collapsed}setCollapsed(t,r,c){const l=this.getTreeNode(t);typeof r=="undefined"&&(r=!l.collapsed);const a={collapsed:r,recursive:c||!1};return this.eventBufferer.bufferEvents(()=>this._setCollapseState(t,a))}_setCollapseState(t,r){const{node:c,listIndex:l,revealed:a}=this.getTreeNodeWithListIndex(t),s=this._setListNodeCollapseState(c,l,a,r);if(c!==this.root&&this.autoExpandSingleChildren&&s&&!h(r)&&c.collapsible&&!c.collapsed&&!r.recursive){let o=-1;for(let n=0;n-1){o=-1;break}else o=n;o>-1&&this._setCollapseState([...t,o],r)}return s}_setListNodeCollapseState(t,r,c,l){const a=this._setNodeCollapseState(t,l,!1);if(!c||!t.visible||!a)return a;const s=t.renderNodeCount,o=this.updateNodeAfterCollapseChange(t),n=s-(r===-1?0:1);return this.list.splice(r+1,n,o.slice(1)),a}_setNodeCollapseState(t,r,c){let l;if(t===this.root?l=!1:(h(r)?(l=t.collapsible!==r.collapsible,t.collapsible=r.collapsible):t.collapsible?(l=t.collapsed!==r.collapsed,t.collapsed=r.collapsed):l=!1,l&&this._onDidChangeCollapseState.fire({node:t,deep:c})),!h(r)&&r.recursive)for(const a of t.children)l=this._setNodeCollapseState(a,r,!0)||l;return l}expandTo(t){this.eventBufferer.bufferEvents(()=>{let r=this.getTreeNode(t);for(;r.parent;)r=r.parent,t=t.slice(0,t.length-1),r.collapsed&&this._setCollapseState(t,{collapsed:!1,recursive:!1})})}refilter(){const t=this.root.renderNodeCount,r=this.updateNodeAfterFilterChange(this.root);this.list.splice(0,t,r)}createTreeNode(t,r,c,l,a,s){const o={parent:r,element:t.element,children:[],depth:r.depth+1,visibleChildrenCount:0,visibleChildIndex:-1,collapsible:typeof t.collapsible=="boolean"?t.collapsible:typeof t.collapsed!="undefined",collapsed:typeof t.collapsed=="undefined"?this.collapseByDefault:t.collapsed,renderNodeCount:1,visibility:1,visible:!0,filterData:void 0},n=this._filterNode(o,c);o.visibility=n,l&&a.push(o);const d=t.children||b.Iterable.empty(),u=l&&n!==0&&!o.collapsed,f=b.Iterable.map(d,m=>this.createTreeNode(m,o,n,u,a,s));let S=0,v=1;for(const m of f)o.children.push(m),v+=m.renderNodeCount,m.visible&&(m.visibleChildIndex=S++);return o.collapsible=o.collapsible||o.children.length>0,o.visibleChildrenCount=S,o.visible=n===2?S>0:n===1,o.visible?o.collapsed||(o.renderNodeCount=v):(o.renderNodeCount=0,l&&a.pop()),s&&s(o),o}updateNodeAfterCollapseChange(t){const r=t.renderNodeCount,c=[];return this._updateNodeAfterCollapseChange(t,c),this._updateAncestorsRenderNodeCount(t.parent,c.length-r),c}_updateNodeAfterCollapseChange(t,r){if(t.visible===!1)return 0;if(r.push(t),t.renderNodeCount=1,!t.collapsed)for(const c of t.children)t.renderNodeCount+=this._updateNodeAfterCollapseChange(c,r);return this._onDidChangeRenderNodeCount.fire(t),t.renderNodeCount}updateNodeAfterFilterChange(t){const r=t.renderNodeCount,c=[];return this._updateNodeAfterFilterChange(t,t.visible?1:0,c),this._updateAncestorsRenderNodeCount(t.parent,c.length-r),c}_updateNodeAfterFilterChange(t,r,c,l=!0){let a;if(t!==this.root){if(a=this._filterNode(t,r),a===0)return t.visible=!1,t.renderNodeCount=0,!1;l&&c.push(t)}const s=c.length;t.renderNodeCount=t===this.root?0:1;let o=!1;if(!t.collapsed||a!==0){let n=0;for(const d of t.children)o=this._updateNodeAfterFilterChange(d,a,c,l&&!t.collapsed)||o,d.visible&&(d.visibleChildIndex=n++);t.visibleChildrenCount=n}else t.visibleChildrenCount=0;return t!==this.root&&(t.visible=a===2?o:a===1,t.visibility=a),t.visible?t.collapsed||(t.renderNodeCount+=c.length-s):(t.renderNodeCount=0,l&&c.pop()),this._onDidChangeRenderNodeCount.fire(t),t.visible}_updateAncestorsRenderNodeCount(t,r){if(r!==0)for(;t;)t.renderNodeCount+=r,this._onDidChangeRenderNodeCount.fire(t),t=t.parent}_filterNode(t,r){const c=this.filter?this.filter.filter(t.element,r):1;return typeof c=="boolean"?(t.filterData=void 0,c?1:0):C(c)?(t.filterData=c.data,p(c.visibility)):(t.filterData=void 0,p(c))}hasTreeNode(t,r=this.root){if(!t||t.length===0)return!0;const[c,...l]=t;return c<0||c>r.children.length?!1:this.hasTreeNode(l,r.children[c])}getTreeNode(t,r=this.root){if(!t||t.length===0)return r;const[c,...l]=t;if(c<0||c>r.children.length)throw new y.TreeError(this.user,"Invalid tree location");return this.getTreeNode(l,r.children[c])}getTreeNodeWithListIndex(t){if(t.length===0)return{node:this.root,listIndex:-1,revealed:!0,visible:!1};const{parentNode:r,listIndex:c,revealed:l,visible:a}=this.getParentNodeWithListIndex(t),s=t[t.length-1];if(s<0||s>r.children.length)throw new y.TreeError(this.user,"Invalid tree location");const o=r.children[s];return{node:o,listIndex:c,revealed:l,visible:a&&o.visible}}getParentNodeWithListIndex(t,r=this.root,c=0,l=!0,a=!0){const[s,...o]=t;if(s<0||s>r.children.length)throw new y.TreeError(this.user,"Invalid tree location");for(let n=0;n{var l;if(c.element===null)return;const a=c;if(g.add(a.element),this.nodes.set(a.element,a),this.identityProvider){const s=this.identityProvider.getId(a.element).toString();i.add(s),this.nodesByIdentity.set(s,a)}(l=h.onDidCreateNode)===null||l===void 0||l.call(h,a)},r=c=>{var l;if(c.element===null)return;const a=c;if(g.has(a.element)||this.nodes.delete(a.element),this.identityProvider){const s=this.identityProvider.getId(a.element).toString();i.has(s)||this.nodesByIdentity.delete(s)}(l=h.onDidDeleteNode)===null||l===void 0||l.call(h,a)};this.model.splice([...C,0],Number.MAX_VALUE,p,Object.assign(Object.assign({},h),{onDidCreateNode:t,onDidDeleteNode:r}))}preserveCollapseState(C=T.Iterable.empty()){return this.sorter&&(C=[...C].sort(this.sorter.compare.bind(this.sorter))),T.Iterable.map(C,p=>{let h=this.nodes.get(p.element);if(!h&&this.identityProvider){const t=this.identityProvider.getId(p.element).toString();h=this.nodesByIdentity.get(t)}if(!h)return Object.assign(Object.assign({},p),{children:this.preserveCollapseState(p.children)});const g=typeof p.collapsible=="boolean"?p.collapsible:h.collapsible,i=typeof p.collapsed!="undefined"?p.collapsed:h.collapsed;return Object.assign(Object.assign({},p),{collapsible:g,collapsed:i,children:this.preserveCollapseState(p.children)})})}rerender(C){const p=this.getElementLocation(C);this.model.rerender(p)}getFirstElementChild(C=null){const p=this.getElementLocation(C);return this.model.getFirstElementChild(p)}has(C){return this.nodes.has(C)}getListIndex(C){const p=this.getElementLocation(C);return this.model.getListIndex(p)}getListRenderCount(C){const p=this.getElementLocation(C);return this.model.getListRenderCount(p)}isCollapsible(C){const p=this.getElementLocation(C);return this.model.isCollapsible(p)}setCollapsible(C,p){const h=this.getElementLocation(C);return this.model.setCollapsible(h,p)}isCollapsed(C){const p=this.getElementLocation(C);return this.model.isCollapsed(p)}setCollapsed(C,p,h){const g=this.getElementLocation(C);return this.model.setCollapsed(g,p,h)}expandTo(C){const p=this.getElementLocation(C);this.model.expandTo(p)}refilter(){this.model.refilter()}getNode(C=null){if(C===null)return this.model.getNode(this.model.rootRef);const p=this.nodes.get(C);if(!p)throw new N.TreeError(this.user,`Tree element not found: ${C}`);return p}getNodeLocation(C){return C.element}getParentNodeLocation(C){if(C===null)throw new N.TreeError(this.user,"Invalid getParentNodeLocation call");const p=this.nodes.get(C);if(!p)throw new N.TreeError(this.user,`Tree element not found: ${C}`);const h=this.model.getNodeLocation(p),g=this.model.getParentNodeLocation(h);return this.model.getNode(g).element}getElementLocation(C){if(C===null)return[];const p=this.nodes.get(C);if(!p)throw new N.TreeError(this.user,`Tree element not found: ${C}`);return this.model.getNodeLocation(p)}}e.ObjectTreeModel=I}),define(ee[309],te([0,1,167,103,4,55]),function(q,e,y,N,T,I){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.CompressibleObjectTreeModel=e.DefaultElementMapper=e.CompressedObjectTreeModel=e.decompress=e.compress=void 0;function b(o){const n=[o.element],d=o.incompressible||!1;return{element:{elements:n,incompressible:d},children:I.Iterable.map(I.Iterable.from(o.children),b),collapsible:o.collapsible,collapsed:o.collapsed}}function C(o){const n=[o.element],d=o.incompressible||!1;let u,f;for(;[f,u]=I.Iterable.consume(I.Iterable.from(o.children),2),!(f.length!==1||f[0].incompressible);)o=f[0],n.push(o.element);return{element:{elements:n,incompressible:d},children:I.Iterable.map(I.Iterable.concat(f,u),C),collapsible:o.collapsible,collapsed:o.collapsed}}e.compress=C;function p(o,n=0){let d;return np(u,0)),n===0&&o.element.incompressible?{element:o.element.elements[n],children:d,incompressible:!0,collapsible:o.collapsible,collapsed:o.collapsed}:{element:o.element.elements[n],children:d,collapsible:o.collapsible,collapsed:o.collapsed}}function h(o){return p(o,0)}e.decompress=h;function g(o,n,d){return o.element===n?Object.assign(Object.assign({},o),{children:d}):Object.assign(Object.assign({},o),{children:I.Iterable.map(I.Iterable.from(o.children),u=>g(u,n,d))})}const i=o=>({getId(n){return n.elements.map(d=>o.getId(d).toString()).join("\0")}});class t{constructor(n,d,u={}){this.user=n,this.rootRef=null,this.nodes=new Map,this.model=new y.ObjectTreeModel(n,d,u),this.enabled=typeof u.compressionEnabled=="undefined"?!0:u.compressionEnabled,this.identityProvider=u.identityProvider}get onDidSplice(){return this.model.onDidSplice}get onDidChangeCollapseState(){return this.model.onDidChangeCollapseState}get onDidChangeRenderNodeCount(){return this.model.onDidChangeRenderNodeCount}setChildren(n,d=I.Iterable.empty(),u){const f=u.diffIdentityProvider&&i(u.diffIdentityProvider);if(n===null){const M=I.Iterable.map(d,this.enabled?C:b);this._setChildren(null,M,{diffIdentityProvider:f,diffDepth:Infinity});return}const S=this.nodes.get(n);if(!S)throw new Error("Unknown compressed tree node");const v=this.model.getNode(S),m=this.model.getParentNodeLocation(S),_=this.model.getNode(m),L=h(v),w=g(L,n,d),k=(this.enabled?C:b)(w),D=_.children.map(M=>M===v?k:M);this._setChildren(_.element,D,{diffIdentityProvider:f,diffDepth:v.depth-_.depth})}setCompressionEnabled(n){if(n===this.enabled)return;this.enabled=n;const u=this.model.getNode().children,f=I.Iterable.map(u,h),S=I.Iterable.map(f,n?C:b);this._setChildren(null,S,{diffIdentityProvider:this.identityProvider,diffDepth:Infinity})}_setChildren(n,d,u){const f=new Set,S=m=>{for(const _ of m.element.elements)f.add(_),this.nodes.set(_,m.element)},v=m=>{for(const _ of m.element.elements)f.has(_)||this.nodes.delete(_)};this.model.setChildren(n,d,Object.assign(Object.assign({},u),{onDidCreateNode:S,onDidDeleteNode:v}))}has(n){return this.nodes.has(n)}getListIndex(n){const d=this.getCompressedNode(n);return this.model.getListIndex(d)}getListRenderCount(n){const d=this.getCompressedNode(n);return this.model.getListRenderCount(d)}getNode(n){if(typeof n=="undefined")return this.model.getNode();const d=this.getCompressedNode(n);return this.model.getNode(d)}getNodeLocation(n){const d=this.model.getNodeLocation(n);return d===null?null:d.elements[d.elements.length-1]}getParentNodeLocation(n){const d=this.getCompressedNode(n),u=this.model.getParentNodeLocation(d);return u===null?null:u.elements[u.elements.length-1]}getFirstElementChild(n){const d=this.getCompressedNode(n);return this.model.getFirstElementChild(d)}isCollapsible(n){const d=this.getCompressedNode(n);return this.model.isCollapsible(d)}setCollapsible(n,d){const u=this.getCompressedNode(n);return this.model.setCollapsible(u,d)}isCollapsed(n){const d=this.getCompressedNode(n);return this.model.isCollapsed(d)}setCollapsed(n,d,u){const f=this.getCompressedNode(n);return this.model.setCollapsed(f,d,u)}expandTo(n){const d=this.getCompressedNode(n);this.model.expandTo(d)}rerender(n){const d=this.getCompressedNode(n);this.model.rerender(d)}refilter(){this.model.refilter()}getCompressedNode(n){if(n===null)return null;const d=this.nodes.get(n);if(!d)throw new N.TreeError(this.user,`Tree element not found: ${n}`);return d}}e.CompressedObjectTreeModel=t;const r=o=>o[o.length-1];e.DefaultElementMapper=r;class c{constructor(n,d){this.unwrapper=n,this.node=d}get element(){return this.node.element===null?null:this.unwrapper(this.node.element)}get children(){return this.node.children.map(n=>new c(this.unwrapper,n))}get depth(){return this.node.depth}get visibleChildrenCount(){return this.node.visibleChildrenCount}get visibleChildIndex(){return this.node.visibleChildIndex}get collapsible(){return this.node.collapsible}get collapsed(){return this.node.collapsed}get visible(){return this.node.visible}get filterData(){return this.node.filterData}}function l(o,n){return{splice(d,u,f){n.splice(d,u,f.map(S=>o.map(S)))},updateElementHeight(d,u){n.updateElementHeight(d,u)}}}function a(o,n){return Object.assign(Object.assign({},n),{identityProvider:n.identityProvider&&{getId(d){return n.identityProvider.getId(o(d))}},sorter:n.sorter&&{compare(d,u){return n.sorter.compare(d.elements[0],u.elements[0])}},filter:n.filter&&{filter(d,u){return n.filter.filter(o(d),u)}}})}class s{constructor(n,d,u={}){this.rootRef=null,this.elementMapper=u.elementMapper||e.DefaultElementMapper;const f=S=>this.elementMapper(S.elements);this.nodeMapper=new N.WeakMapper(S=>new c(f,S)),this.model=new t(n,l(this.nodeMapper,d),a(f,u))}get onDidSplice(){return T.Event.map(this.model.onDidSplice,({insertedNodes:n,deletedNodes:d})=>({insertedNodes:n.map(u=>this.nodeMapper.map(u)),deletedNodes:d.map(u=>this.nodeMapper.map(u))}))}get onDidChangeCollapseState(){return T.Event.map(this.model.onDidChangeCollapseState,({node:n,deep:d})=>({node:this.nodeMapper.map(n),deep:d}))}get onDidChangeRenderNodeCount(){return T.Event.map(this.model.onDidChangeRenderNodeCount,n=>this.nodeMapper.map(n))}setChildren(n,d=I.Iterable.empty(),u={}){this.model.setChildren(n,d,u)}setCompressionEnabled(n){this.model.setCompressionEnabled(n)}has(n){return this.model.has(n)}getListIndex(n){return this.model.getListIndex(n)}getListRenderCount(n){return this.model.getListRenderCount(n)}getNode(n){return this.nodeMapper.map(this.model.getNode(n))}getNodeLocation(n){return n.element}getParentNodeLocation(n){return this.model.getParentNodeLocation(n)}getFirstElementChild(n){const d=this.model.getFirstElementChild(n);return d===null||typeof d=="undefined"?d:this.elementMapper(d.elements)}isCollapsible(n){return this.model.isCollapsible(n)}setCollapsible(n,d){return this.model.setCollapsible(n,d)}isCollapsed(n){return this.model.isCollapsed(n)}setCollapsed(n,d,u){return this.model.setCollapsed(n,d,u)}expandTo(n){return this.model.expandTo(n)}rerender(n){return this.model.rerender(n)}refilter(){return this.model.refilter()}getCompressedTreeNode(n=null){return this.model.getNode(n)}}e.CompressibleObjectTreeModel=s}),define(ee[47],te([0,1,8]),function(q,e,y){"use strict";var N,T;Object.defineProperty(e,"__esModule",{value:!0}),e.LRUCache=e.LinkedMap=e.ResourceMap=e.TernarySearchTree=e.UriIterator=e.PathIterator=e.ConfigKeysIterator=e.StringIterator=void 0;class I{constructor(){this._value="",this._pos=0}reset(a){return this._value=a,this._pos=0,this}next(){return this._pos+=1,this}hasNext(){return this._pos!1){return new g(new p(a))}static forStrings(){return new g(new I)}static forConfigKeys(){return new g(new b)}clear(){this._root=void 0}set(a,s){const o=this._iter.reset(a);let n;this._root||(this._root=new h,this._root.segment=o.value());const d=[];for(n=this._root;;){const f=o.cmp(n.segment);if(f>0)n.left||(n.left=new h,n.left.segment=o.value()),d.push([-1,n]),n=n.left;else if(f<0)n.right||(n.right=new h,n.right.segment=o.value()),d.push([1,n]),n=n.right;else if(o.hasNext())o.next(),n.mid||(n.mid=new h,n.mid.segment=o.value()),d.push([0,n]),n=n.mid;else break}const u=n.value;n.value=s,n.key=a;for(let f=d.length-1;f>=0;f--){const S=d[f][1];S.updateHeight();const v=S.balanceFactor();if(v<-1||v>1){const m=d[f][0],_=d[f+1][0];if(m===1&&_===1)d[f][1]=S.rotateLeft();else if(m===-1&&_===-1)d[f][1]=S.rotateRight();else if(m===1&&_===-1)S.right=d[f+1][1]=d[f+1][1].rotateRight(),d[f][1]=S.rotateLeft();else if(m===-1&&_===1)S.left=d[f+1][1]=d[f+1][1].rotateLeft(),d[f][1]=S.rotateRight();else throw new Error;if(f>0)switch(d[f-1][0]){case-1:d[f-1][1].left=d[f][1];break;case 1:d[f-1][1].right=d[f][1];break;case 0:d[f-1][1].mid=d[f][1];break}else this._root=d[0][1]}}return u}get(a){var s;return(s=this._getNode(a))===null||s===void 0?void 0:s.value}_getNode(a){const s=this._iter.reset(a);let o=this._root;for(;o;){const n=s.cmp(o.segment);if(n>0)o=o.left;else if(n<0)o=o.right;else if(s.hasNext())s.next(),o=o.mid;else break}return o}has(a){const s=this._getNode(a);return!((s==null?void 0:s.value)===void 0&&(s==null?void 0:s.mid)===void 0)}delete(a){return this._delete(a,!1)}deleteSuperstr(a){return this._delete(a,!0)}_delete(a,s){var o;const n=this._iter.reset(a),d=[];let u=this._root;for(;u;){const f=n.cmp(u.segment);if(f>0)d.push([-1,u]),u=u.left;else if(f<0)d.push([1,u]),u=u.right;else if(n.hasNext())n.next(),d.push([0,u]),u=u.mid;else break}if(!!u){if(s?(u.left=void 0,u.mid=void 0,u.right=void 0,u.height=1):(u.key=void 0,u.value=void 0),!u.mid&&!u.value)if(u.left&&u.right){const f=this._min(u.right),{key:S,value:v,segment:m}=f;this._delete(f.key,!1),u.key=S,u.value=v,u.segment=m}else{const f=(o=u.left)!==null&&o!==void 0?o:u.right;if(d.length>0){const[S,v]=d[d.length-1];switch(S){case-1:v.left=f;break;case 0:v.mid=f;break;case 1:v.right=f;break}}else this._root=f}for(let f=d.length-1;f>=0;f--){const S=d[f][1];S.updateHeight();const v=S.balanceFactor();if(v>1?(S.right.balanceFactor()>=0||(S.right=d[f+1][1]=d[f+1][1].rotateRight()),d[f][1]=S.rotateLeft()):v<-1&&(S.left.balanceFactor()<=0||(S.left=d[f+1][1]=d[f+1][1].rotateLeft()),d[f][1]=S.rotateRight()),f>0)switch(d[f-1][0]){case-1:d[f-1][1].left=d[f][1];break;case 1:d[f-1][1].right=d[f][1];break;case 0:d[f-1][1].mid=d[f][1];break}else this._root=d[0][1]}}}_min(a){for(;a.left;)a=a.left;return a}findSubstr(a){const s=this._iter.reset(a);let o=this._root,n;for(;o;){const d=s.cmp(o.segment);if(d>0)o=o.left;else if(d<0)o=o.right;else if(s.hasNext())s.next(),n=o.value||n,o=o.mid;else break}return o&&o.value||n}findSuperstr(a){const s=this._iter.reset(a);let o=this._root;for(;o;){const n=s.cmp(o.segment);if(n>0)o=o.left;else if(n<0)o=o.right;else if(s.hasNext())s.next(),o=o.mid;else return o.mid?this._entries(o.mid):void 0}}forEach(a){for(const[s,o]of this)a(o,s)}*[Symbol.iterator](){yield*this._entries(this._root)}*_entries(a){!a||(a.left&&(yield*this._entries(a.left)),a.value&&(yield[a.key,a.value]),a.mid&&(yield*this._entries(a.mid)),a.right&&(yield*this._entries(a.right)))}}e.TernarySearchTree=g;class i{constructor(a,s){this.uri=a,this.value=s}}class t{constructor(a,s){this[N]="ResourceMap",a instanceof t?(this.map=new Map(a.map),this.toKey=s??t.defaultToKey):(this.map=new Map,this.toKey=a??t.defaultToKey)}set(a,s){return this.map.set(this.toKey(a),new i(a,s)),this}get(a){var s;return(s=this.map.get(this.toKey(a)))===null||s===void 0?void 0:s.value}has(a){return this.map.has(this.toKey(a))}get size(){return this.map.size}clear(){this.map.clear()}delete(a){return this.map.delete(this.toKey(a))}forEach(a,s){typeof s!="undefined"&&(a=a.bind(s));for(let[o,n]of this.map)a(n.value,n.uri,this)}*values(){for(let a of this.map.values())yield a.value}*keys(){for(let a of this.map.values())yield a.uri}*entries(){for(let a of this.map.values())yield[a.uri,a.value]}*[(N=Symbol.toStringTag,Symbol.iterator)](){for(let[,a]of this.map)yield[a.uri,a.value]}}e.ResourceMap=t,t.defaultToKey=l=>l.toString();class r{constructor(){this[T]="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(){var a;return(a=this._head)===null||a===void 0?void 0:a.value}get last(){var a;return(a=this._tail)===null||a===void 0?void 0:a.value}has(a){return this._map.has(a)}get(a,s=0){const o=this._map.get(a);if(!!o)return s!==0&&this.touch(o,s),o.value}set(a,s,o=0){let n=this._map.get(a);if(n)n.value=s,o!==0&&this.touch(n,o);else{switch(n={key:a,value:s,next:void 0,previous:void 0},o){case 0:this.addItemLast(n);break;case 1:this.addItemFirst(n);break;case 2:this.addItemLast(n);break;default:this.addItemLast(n);break}this._map.set(a,n),this._size++}return this}delete(a){return!!this.remove(a)}remove(a){const s=this._map.get(a);if(!!s)return this._map.delete(a),this.removeItem(s),this._size--,s.value}shift(){if(!this._head&&!this._tail)return;if(!this._head||!this._tail)throw new Error("Invalid list");const a=this._head;return this._map.delete(a.key),this.removeItem(a),this._size--,a.value}forEach(a,s){const o=this._state;let n=this._head;for(;n;){if(s?a.bind(s)(n.value,n.key,this):a(n.value,n.key,this),this._state!==o)throw new Error("LinkedMap got modified during iteration.");n=n.next}}keys(){const a=this,s=this._state;let o=this._head;const n={[Symbol.iterator](){return n},next(){if(a._state!==s)throw new Error("LinkedMap got modified during iteration.");if(o){const d={value:o.key,done:!1};return o=o.next,d}else return{value:void 0,done:!0}}};return n}values(){const a=this,s=this._state;let o=this._head;const n={[Symbol.iterator](){return n},next(){if(a._state!==s)throw new Error("LinkedMap got modified during iteration.");if(o){const d={value:o.value,done:!1};return o=o.next,d}else return{value:void 0,done:!0}}};return n}entries(){const a=this,s=this._state;let o=this._head;const n={[Symbol.iterator](){return n},next(){if(a._state!==s)throw new Error("LinkedMap got modified during iteration.");if(o){const d={value:[o.key,o.value],done:!1};return o=o.next,d}else return{value:void 0,done:!0}}};return n}[(T=Symbol.toStringTag,Symbol.iterator)](){return this.entries()}trimOld(a){if(a>=this.size)return;if(a===0){this.clear();return}let s=this._head,o=this.size;for(;s&&o>a;)this._map.delete(s.key),s=s.next,o--;this._head=s,this._size=o,s&&(s.previous=void 0),this._state++}addItemFirst(a){if(!this._head&&!this._tail)this._tail=a;else if(this._head)a.next=this._head,this._head.previous=a;else throw new Error("Invalid list");this._head=a,this._state++}addItemLast(a){if(!this._head&&!this._tail)this._head=a;else if(this._tail)a.previous=this._tail,this._tail.next=a;else throw new Error("Invalid list");this._tail=a,this._state++}removeItem(a){if(a===this._head&&a===this._tail)this._head=void 0,this._tail=void 0;else if(a===this._head){if(!a.next)throw new Error("Invalid list");a.next.previous=void 0,this._head=a.next}else if(a===this._tail){if(!a.previous)throw new Error("Invalid list");a.previous.next=void 0,this._tail=a.previous}else{const s=a.next,o=a.previous;if(!s||!o)throw new Error("Invalid list");s.previous=o,o.next=s}a.next=void 0,a.previous=void 0,this._state++}touch(a,s){if(!this._head||!this._tail)throw new Error("Invalid list");if(!(s!==1&&s!==2)){if(s===1){if(a===this._head)return;const o=a.next,n=a.previous;a===this._tail?(n.next=void 0,this._tail=n):(o.previous=n,n.next=o),a.previous=void 0,a.next=this._head,this._head.previous=a,this._head=a,this._state++}else if(s===2){if(a===this._tail)return;const o=a.next,n=a.previous;a===this._head?(o.previous=void 0,this._head=o):(o.previous=n,n.next=o),a.next=void 0,a.previous=this._tail,this._tail.next=a,this._tail=a,this._state++}}}toJSON(){const a=[];return this.forEach((s,o)=>{a.push([o,s])}),a}fromJSON(a){this.clear();for(const[s,o]of a)this.set(s,o)}}e.LinkedMap=r;class c extends r{constructor(a,s=1){super();this._limit=a,this._ratio=Math.min(Math.max(0,s),1)}get limit(){return this._limit}set limit(a){this._limit=a,this.checkTrim()}get(a,s=2){return super.get(a,s)}peek(a){return super.get(a,0)}set(a,s){return super.set(a,s,2),this.checkTrim(),this}checkTrim(){this.size>this._limit&&this.trimOld(Math.round(this._limit*this._ratio))}}e.LRUCache=c}),define(ee[69],te([0,1,47,8]),function(q,e,y,N){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.fuzzyScoreGracefulAggressive=e.fuzzyScore=e.FuzzyScore=e.isPatternInWord=e.createMatches=e.anyScore=e.matchesFuzzy=e.matchesWords=e.matchesCamelCase=e.isUpper=e.matchesSubString=e.matchesContiguousSubString=e.matchesPrefix=e.matchesStrictPrefix=e.or=void 0;function T(...H){return function(Q,re){for(let ce=0,oe=H.length;ce0?[{start:0,end:Q.length}]:[]:null}function b(H,Q){const re=Q.toLowerCase().indexOf(H.toLowerCase());return re===-1?null:[{start:re,end:re+H.length}]}e.matchesContiguousSubString=b;function C(H,Q){return p(H.toLowerCase(),Q.toLowerCase(),0,0)}e.matchesSubString=C;function p(H,Q,re,ce){if(re===H.length)return[];if(ce===Q.length)return null;if(H[re]===Q[ce]){let oe=null;return(oe=p(H,Q,re+1,ce+1))?s({start:ce,end:ce+1},oe):null}return p(H,Q,re,ce+1)}function h(H){return 97<=H&&H<=122}function g(H){return 65<=H&&H<=90}e.isUpper=g;function i(H){return 48<=H&&H<=57}function t(H){return H===32||H===9||H===10||H===13}const r=new Set;"()[]{}<>`'\"-/;:,.?!".split("").forEach(H=>r.add(H.charCodeAt(0)));function c(H){return t(H)||r.has(H)}function l(H,Q){return H===Q||c(H)&&c(Q)}function a(H){return h(H)||g(H)||i(H)}function s(H,Q){return Q.length===0?Q=[H]:H.end===Q[0].start?Q[0].start=H.start:Q.unshift(H),Q}function o(H,Q){for(let re=Q;re0&&!a(H.charCodeAt(re-1)))return re}return H.length}function n(H,Q,re,ce){if(re===H.length)return[];if(ce===Q.length)return null;if(H[re]!==Q[ce].toLowerCase())return null;{let oe=null,de=ce+1;for(oe=n(H,Q,re+1,ce+1);!oe&&(de=o(Q,de)).6}function f(H){const{upperPercent:Q,lowerPercent:re,alphaPercent:ce,numericPercent:oe}=H;return re>.2&&Q<.8&&ce>.6&&oe<.2}function S(H){let Q=0,re=0,ce=0,oe=0;for(let de=0;de60)return null;const re=d(Q);if(!f(re)){if(!u(re))return null;Q=Q.toLowerCase()}let ce=null,oe=0;for(H=H.toLowerCase();oe0&&c(H.charCodeAt(re-1)))return re;return H.length}const w=T(e.matchesPrefix,v,b),k=T(e.matchesPrefix,v,C),D=new y.LRUCache(1e4);function M(H,Q,re=!1){if(typeof H!="string"||typeof Q!="string")return null;let ce=D.get(H);ce||(ce=new RegExp(N.convertSimple2RegExpPattern(H),"i"),D.set(H,ce));const oe=ce.exec(Q);return oe?[{start:oe.index,end:oe.index+oe[0].length}]:re?k(H,Q):w(H,Q)}e.matchesFuzzy=M;function O(H,Q,re,ce,oe,de){const pe=Math.min(13,H.length);for(;re1;ce--){const oe=H[ce]+re,de=Q[Q.length-1];de&&de.end===oe?de.end=oe+1:Q.push({start:oe,end:oe+1})}return Q}e.createMatches=F;const R=128;function A(){const H=[],Q=[];for(let re=0;re<=R;re++)Q[re]=0;for(let re=0;re<=R;re++)H.push(Q.slice(0));return H}function P(H){const Q=[];for(let re=0;re<=H;re++)Q[re]=0;return Q}const E=P(2*R),B=P(2*R),V=A(),j=A(),K=A(),Y=!1;function J(H,Q,re,ce,oe){function de(_e,se,ue=" "){for(;_e.lengthde(_e,3)).join("|")}
`;for(let _e=0;_e<=re;_e++)_e===0?pe+=" |":pe+=`${Q[_e-1]}|`,pe+=H[_e].slice(0,oe+1).map(se=>de(se.toString(),3)).join("|")+`
`;return pe}function Z(H,Q,re,ce){H=H.substr(Q),re=re.substr(ce),console.log(J(j,H,H.length,re,re.length)),console.log(J(K,H,H.length,re,re.length)),console.log(J(V,H,H.length,re,re.length))}function ie(H,Q){if(Q<0||Q>=H.length)return!1;const re=H.codePointAt(Q);switch(re){case 95:case 45:case 46:case 32:case 47:case 92:case 39:case 34:case 58:case 36:case 60:case 40:case 91:return!0;case void 0:return!1;default:return!!N.isEmojiImprecise(re)}}function ne(H,Q){if(Q<0||Q>=H.length)return!1;switch(H.charCodeAt(Q)){case 32:case 9:return!0;default:return!1}}function G(H,Q,re){return Q[H]!==re[H]}function W(H,Q,re,ce,oe,de,pe=!1){for(;QR?R:H.length,se=ce.length>R?R:ce.length;if(re>=_e||de>=se||_e-re>se-de||!W(Q,re,_e,oe,de,se,!0))return;x(_e,se,re,de,Q,oe);let ue=1,be=1,ge=re,Se=de;const ae=[!1];for(ue=1,ge=re;ge<_e;ue++,ge++){const Fe=E[ge],xe=B[ge],Ze=ge+1<_e?B[ge+1]:se;for(be=Fe-de+1,Se=Fe;SeFe,Pe=Ee?j[ue][be-1]+(V[ue][be-1]>0?-5:0):0,ze=Se>Fe+1&&V[ue][be-1]>0,Te=ze?j[ue][be-2]+(V[ue][be-2]>0?-5:0):0;if(ze&&(!Ee||Te>=Pe)&&(!$e||Te>=Le))j[ue][be]=Te,K[ue][be]=3,V[ue][be]=0;else if(Ee&&(!$e||Pe>=Le))j[ue][be]=Pe,K[ue][be]=2,V[ue][be]=0;else if($e)j[ue][be]=Le,K[ue][be]=1,V[ue][be]=V[ue-1][be-1]+1;else throw new Error("not possible")}}if(Y&&Z(H,re,ce,de),!ae[0]&&!pe)return;ue--,be--;const he=[j[ue][be],de];let De=0,ke=0;for(;ue>=1;){let Fe=be;do{const xe=K[ue][Fe];if(xe===3)Fe=Fe-2;else if(xe===2)Fe=Fe-1;else break}while(Fe>=1);De>1&&Q[re+ue-1]===oe[de+be-1]&&!G(Fe+de-1,ce,oe)&&De+1>V[ue][Fe]&&(Fe=be),Fe===be?De++:De=1,ke||(ke=Fe),ue--,be=Fe-1,he.push(be)}se===_e&&(he[0]+=2);const Ve=ke-_e;return he[0]-=Ve,he}e.fuzzyScore=U;function x(H,Q,re,ce,oe,de){let pe=H-1,_e=Q-1;for(;pe>=re&&_e>=ce;)oe[pe]===de[_e]&&(B[pe]=_e,pe--),_e--}function X(H,Q,re,ce,oe,de,pe,_e,se,ue,be){if(Q[re]!==de[pe])return Number.MIN_SAFE_INTEGER;let ge=1,Se=!1;return pe===re-ce?ge=H[re]===oe[pe]?7:5:G(pe,oe,de)&&(pe===0||!G(pe-1,oe,de))?(ge=H[re]===oe[pe]?7:5,Se=!0):ie(de,pe)&&(pe===0||!ie(de,pe-1))?ge=5:(ie(de,pe-1)||ne(de,pe-1))&&(ge=5,Se=!0),ge>1&&re===ce&&(be[0]=!0),Se||(Se=G(pe,oe,de)||ie(de,pe-1)||ne(de,pe-1)),re===ce?pe>se&&(ge-=Se?3:5):ue?ge+=Se?2:0:ge+=Se?0:1,pe+1===_e&&(ge-=Se?3:5),ge}function le(H,Q,re,ce,oe,de,pe){return fe(H,Q,re,ce,oe,de,!0,pe)}e.fuzzyScoreGracefulAggressive=le;function fe(H,Q,re,ce,oe,de,pe,_e){let se=U(H,Q,re,ce,oe,de,_e);if(se&&!pe)return se;if(H.length>=3){const ue=Math.min(7,H.length-1);for(let be=re+1;bese[0])&&(se=Se))}}}return se}function $(H,Q){if(Q+1>=H.length)return;const re=H[Q],ce=H[Q+1];if(re!==ce)return H.slice(0,Q)+ce+re+H.slice(Q+2)}}),define(ee[310],te([0,1,69,78,17,8]),function(q,e,y,N,T,I){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.pieceToQuery=e.prepareQuery=e.scoreFuzzy2=void 0;const b=[void 0,[]];function C(o,n,d=0,u=0){const f=n;return f.values&&f.values.length>1?p(o,f.values,d,u):h(o,n,d,u)}e.scoreFuzzy2=C;function p(o,n,d,u){let f=0;const S=[];for(const v of n){const[m,_]=h(o,v,d,u);if(typeof m!="number")return b;f+=m,S.push(..._)}return[f,i(S)]}function h(o,n,d,u){const f=(0,y.fuzzyScore)(n.original,n.originalLowercase,d,o,o.toLowerCase(),u,!0);return f?[f[0],(0,y.createMatches)(f)]:b}const g=Object.freeze({score:0});function i(o){const n=o.sort((f,S)=>f.start-S.start),d=[];let u;for(const f of n)!u||!t(u,f)?(u=f,d.push(f)):(u.start=Math.min(u.start,f.start),u.end=Math.max(u.end,f.end));return d}function t(o,n){return!(o.end=0,v=r(o);let m;const _=o.split(c);if(_.length>1)for(const L of _){const w=r(L),{pathNormalized:k,normalized:D,normalizedLowercase:M}=a(L);D&&(m||(m=[]),m.push({original:L,originalLowercase:L.toLowerCase(),pathNormalized:k,normalized:D,normalizedLowercase:M,expectContiguousMatch:w}))}return{original:o,originalLowercase:n,pathNormalized:d,normalized:u,normalizedLowercase:f,values:m,containsPathSeparator:S,expectContiguousMatch:v}}e.prepareQuery=l;function a(o){let n;T.isWindows?n=o.replace(/\//g,N.sep):n=o.replace(/\\/g,N.sep);const d=(0,I.stripWildcards)(n).replace(/\s|"/g,"");return{pathNormalized:n,normalized:d,normalizedLowercase:d.toLowerCase()}}function s(o){return Array.isArray(o)?l(o.map(n=>n.original).join(c)):l(o.original)}e.pieceToQuery=s}),define(ee[208],te([0,1,10,165,47,78,8]),function(q,e,y,N,T,I,b){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.isRelativePattern=e.parse=e.match=e.splitGlobAware=void 0;const C="**",p="/",h="[/\\\\]",g="[^/\\\\]",i=/\//g;function t(E){switch(E){case 0:return"";case 1:return`${g}*?`;default:return`(?:${h}|${g}+${h}|${h}${g}+)*?`}}function r(E,B){if(!E)return[];const V=[];let j=!1,K=!1,Y="";for(const J of E){switch(J){case B:if(!j&&!K){V.push(Y),Y="";continue}break;case"{":j=!0;break;case"}":j=!1;break;case"[":K=!0;break;case"]":K=!1;break}Y+=J}return Y&&V.push(Y),V}e.splitGlobAware=r;function c(E){if(!E)return"";let B="";const V=r(E,p);if(V.every(j=>j===C))B=".*";else{let j=!1;V.forEach((K,Y)=>{if(K===C){j||(B+=t(2),j=!0);return}let J=!1,Z="",ie=!1,ne="";for(const G of K){if(G!=="}"&&J){Z+=G;continue}if(ie&&(G!=="]"||!ne)){let W;G==="-"?W=G:(G==="^"||G==="!")&&!ne?W="^":G===p?W="":W=b.escapeRegExpCharacters(G),ne+=W;continue}switch(G){case"{":J=!0;continue;case"[":ie=!0;continue;case"}":B+=`(?:${r(Z,",").map(U=>c(U)).join("|")})`,J=!1,Z="";break;case"]":B+="["+ne+"]",ie=!1,ne="";break;case"?":B+=g;continue;case"*":B+=t(1);continue;default:B+=b.escapeRegExpCharacters(G)}}Yv(Z,B)).filter(Z=>Z!==S),E),j=V.length;if(!j)return S;if(j===1)return V[0];const K=function(Z,ie){for(let ne=0,G=V.length;ne!!Z.allBasenames);Y&&(K.allBasenames=Y.allBasenames);const J=V.reduce((Z,ie)=>ie.allPaths?Z.concat(ie.allPaths):Z,[]);return J.length&&(K.allPaths=J),K}function k(E,B,V){const j=I.sep===I.posix.sep,K=j?E:E.replace(i,I.sep),Y=I.sep+K,J=I.posix.sep+E,Z=V?function(ie,ne){return typeof ie=="string"&&(ie===K||ie.endsWith(Y)||!j&&(ie===E||ie.endsWith(J)))?B:null}:function(ie,ne){return typeof ie=="string"&&(ie===K||!j&&ie===E)?B:null};return Z.allPaths=[(V?"*/":"./")+E],Z}function D(E){try{const B=new RegExp(`^${c(E)}$`);return function(V){return B.lastIndex=0,typeof V=="string"&&B.test(V)?E:null}}catch(B){return S}}function M(E,B,V){return!E||typeof B!="string"?!1:O(E)(B,void 0,V)}e.match=M;function O(E,B={}){if(!E)return f;if(typeof E=="string"||F(E)){const V=v(E,B);if(V===S)return f;const j=function(K,Y){return!!V(K,Y)};return V.allBasenames&&(j.allBasenames=V.allBasenames),V.allPaths&&(j.allPaths=V.allPaths),j}return R(E,B)}e.parse=O;function F(E){const B=E;return B&&typeof B.base=="string"&&typeof B.pattern=="string"}e.isRelativePattern=F;function R(E,B){const V=P(Object.getOwnPropertyNames(E).map(Z=>A(Z,E[Z],B)).filter(Z=>Z!==S)),j=V.length;if(!j)return S;if(!V.some(Z=>!!Z.requiresSiblings)){if(j===1)return V[0];const Z=function(G,W){for(let z=0,U=V.length;z!!G.allBasenames);ie&&(Z.allBasenames=ie.allBasenames);const ne=V.reduce((G,W)=>W.allPaths?G.concat(W.allPaths):G,[]);return ne.length&&(Z.allPaths=ne),Z}const K=function(Z,ie,ne){let G;for(let W=0,z=V.length;W!!Z.allBasenames);Y&&(K.allBasenames=Y.allBasenames);const J=V.reduce((Z,ie)=>ie.allPaths?Z.concat(ie.allPaths):Z,[]);return J.length&&(K.allPaths=J),K}function A(E,B,V){if(B===!1)return S;const j=v(E,V);if(j===S)return S;if(typeof B=="boolean")return j;if(B){const K=B.when;if(typeof K=="string"){const Y=(J,Z,ie,ne)=>{if(!ne||!j(J,Z))return null;const G=K.replace("$(basename)",ie),W=ne(G);return(0,y.isThenable)(W)?W.then(z=>z?E:null):W?E:null};return Y.requiresSiblings=!0,Y}}return j}function P(E,B){const V=E.filter(Z=>!!Z.basenames);if(V.length<2)return E;const j=V.reduce((Z,ie)=>{const ne=ie.basenames;return ne?Z.concat(ne):Z},[]);let K;if(B){K=[];for(let Z=0,ie=j.length;Z{const ne=ie.patterns;return ne?Z.concat(ne):Z},[]);const Y=function(Z,ie){if(typeof Z!="string")return null;if(!ie){let G;for(G=Z.length;G>0;G--){const W=Z.charCodeAt(G-1);if(W===47||W===92)break}ie=Z.substr(G)}const ne=j.indexOf(ie);return ne!==-1?K[ne]:null};Y.basenames=j,Y.patterns=K,Y.allBasenames=j;const J=E.filter(Z=>!Z.basenames);return J.push(Y),J}}),define(ee[107],te([0,1,27,69,8]),function(q,e,y,N,T){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.matchesFuzzyIconAware=e.parseLabelWithIcons=e.stripIcons=e.markdownEscapeEscapedIcons=e.escapeIcons=e.iconStartMarker=void 0,e.iconStartMarker="$(";const I=new RegExp(`\\$\\(${y.CSSIcon.iconNameExpression}(?:${y.CSSIcon.iconModifierExpression})?\\)`,"g"),b=new RegExp(y.CSSIcon.iconNameCharacter),C=new RegExp(`(\\\\)?${I.source}`,"g");function p(a){return a.replace(C,(s,o)=>o?s:`\\${s}`)}e.escapeIcons=p;const h=new RegExp(`\\\\${I.source}`,"g");function g(a){return a.replace(h,s=>`\\${s}`)}e.markdownEscapeEscapedIcons=g;const i=new RegExp(`(\\s)?(\\\\)?${I.source}(\\s)?`,"g");function t(a){return a.indexOf(e.iconStartMarker)===-1?a:a.replace(i,(s,o,n,d)=>n?s:o||d||"")}e.stripIcons=t;function r(a){const s=a.indexOf(e.iconStartMarker);return s===-1?{text:a}:c(a,s)}e.parseLabelWithIcons=r;function c(a,s){const o=[];let n="";function d(w){if(w){n+=w;for(const k of w)o.push(S)}}let u=-1,f="",S=0,v,m,_=s;const L=a.length;for(d(a.substr(0,s));_" ".repeat(c.length)).replace(/\>/gm,"\\>").replace(/\n/g,t===1?`\\
`:`
`),this}appendMarkdown(i){return this.value+=i,this}appendCodeblock(i,t){return this.value+="\n```",this.value+=i,this.value+=`
`,this.value+=t,this.value+="\n```\n",this}}e.MarkdownString=T;function I(g){return b(g)?!g.value:Array.isArray(g)?g.every(I):!0}e.isEmptyMarkdownString=I;function b(g){return g instanceof T?!0:g&&typeof g=="object"?typeof g.value=="string"&&(typeof g.isTrusted=="boolean"||g.isTrusted===void 0)&&(typeof g.supportThemeIcons=="boolean"||g.supportThemeIcons===void 0):!1}e.isMarkdownString=b;function C(g){return g.replace(/[\\`*_{}[\]()#+\-!]/g,"\\$&")}e.escapeMarkdownSyntaxTokens=C;function p(g){return g&&g.replace(/\\([\\`*_{}[\]()#+\-.!])/g,"$1")}e.removeMarkdownEscapes=p;function h(g){const i=[],t=g.split("|").map(c=>c.trim());g=t[0];const r=t[1];if(r){const c=/height=(\d+)/.exec(r),l=/width=(\d+)/.exec(r),a=c?c[1]:"",s=l?l[1]:"",o=isFinite(parseInt(s)),n=isFinite(parseInt(a));o&&i.push(`width="${s}"`),n&&i.push(`height="${a}"`)}return{href:g,dimensions:i}}e.parseHrefAndDimensions=h}),define(ee[311],te([0,1,8]),function(q,e,y){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.buildReplaceStringWithCasePreserved=void 0;function N(b,C){if(b&&b[0]!==""){const p=T(b,C,"-"),h=T(b,C,"_");return p&&!h?I(b,C,"-"):!p&&h?I(b,C,"_"):b[0].toUpperCase()===b[0]?C.toUpperCase():b[0].toLowerCase()===b[0]?C.toLowerCase():y.containsUppercaseCharacter(b[0][0])&&C.length>0?C[0].toUpperCase()+C.substr(1):b[0][0].toUpperCase()!==b[0][0]&&C.length>0?C[0].toLowerCase()+C.substr(1):C}else return C}e.buildReplaceStringWithCasePreserved=N;function T(b,C,p){return b[0].indexOf(p)!==-1&&C.indexOf(p)!==-1&&b[0].split(p).length===C.split(p).length}function I(b,C,p){const h=C.split(p),g=b[0].split(p);let i="";return h.forEach((t,r)=>{i+=N([g[r]],t)+p}),i.slice(0,-1)}}),define(ee[79],te([0,1,8]),function(q,e,y){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var N;(function(T){T[T.Ignore=0]="Ignore",T[T.Info=1]="Info",T[T.Warning=2]="Warning",T[T.Error=3]="Error"})(N||(N={})),function(T){const I="error",b="warning",C="warn",p="info",h="ignore";function g(t){return t?y.equalsIgnoreCase(I,t)?T.Error:y.equalsIgnoreCase(b,t)||y.equalsIgnoreCase(C,t)?T.Warning:y.equalsIgnoreCase(p,t)?T.Info:T.Ignore:T.Ignore}T.fromValue=g;function i(t){switch(t){case T.Error:return I;case T.Warning:return b;case T.Info:return p;default:return h}}T.toString=i}(N||(N={})),e.default=N}),define(ee[20],te([0,1]),function(q,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.assertNever=e.withNullAsUndefined=e.createProxyObject=e.getAllMethodNames=e.getAllPropertyNames=e.validateConstraint=e.validateConstraints=e.isFunction=e.assertIsDefined=e.assertType=e.isUndefinedOrNull=e.isDefined=e.isUndefined=e.isBoolean=e.isNumber=e.isObject=e.isString=e.isArray=void 0;function y(d){return Array.isArray(d)}e.isArray=y;function N(d){return typeof d=="string"}e.isString=N;function T(d){return typeof d=="object"&&d!==null&&!Array.isArray(d)&&!(d instanceof RegExp)&&!(d instanceof Date)}e.isObject=T;function I(d){return typeof d=="number"&&!isNaN(d)}e.isNumber=I;function b(d){return d===!0||d===!1}e.isBoolean=b;function C(d){return typeof d=="undefined"}e.isUndefined=C;function p(d){return!h(d)}e.isDefined=p;function h(d){return C(d)||d===null}e.isUndefinedOrNull=h;function g(d,u){if(!d)throw new Error(u?`Unexpected type, expected '${u}'`:"Unexpected type")}e.assertType=g;function i(d){if(h(d))throw new Error("Assertion Failed: argument is undefined or null");return d}e.assertIsDefined=i;function t(d){return typeof d=="function"}e.isFunction=t;function r(d,u){const f=Math.min(d.length,u.length);for(let S=0;Sfunction(){const m=Array.prototype.slice.call(arguments,0);return u(v,m)};let S={};for(const v of d)S[v]=f(v);return S}e.createProxyObject=s;function o(d){return d===null?void 0:d}e.withNullAsUndefined=o;function n(d,u="Unreachable"){throw new Error(u)}e.assertNever=n}),define(ee[37],te([0,1,20]),function(q,e,y){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getOrDefault=e.equals=e.mixin=e.cloneAndChange=e.deepFreeze=e.deepClone=void 0;function N(i){if(!i||typeof i!="object"||i instanceof RegExp)return i;const t=Array.isArray(i)?[]:{};return Object.keys(i).forEach(r=>{i[r]&&typeof i[r]=="object"?t[r]=N(i[r]):t[r]=i[r]}),t}e.deepClone=N;function T(i){if(!i||typeof i!="object")return i;const t=[i];for(;t.length>0;){const r=t.shift();Object.freeze(r);for(const c in r)if(I.call(r,c)){const l=r[c];typeof l=="object"&&!Object.isFrozen(l)&&t.push(l)}}return i}e.deepFreeze=T;const I=Object.prototype.hasOwnProperty;function b(i,t){return C(i,t,new Set)}e.cloneAndChange=b;function C(i,t,r){if((0,y.isUndefinedOrNull)(i))return i;const c=t(i);if(typeof c!="undefined")return c;if((0,y.isArray)(i)){const l=[];for(const a of i)l.push(C(a,t,r));return l}if((0,y.isObject)(i)){if(r.has(i))throw new Error("Cannot clone recursive data-structure");r.add(i);const l={};for(let a in i)I.call(i,a)&&(l[a]=C(i[a],t,r));return r.delete(i),l}return i}function p(i,t,r=!0){return(0,y.isObject)(i)?((0,y.isObject)(t)&&Object.keys(t).forEach(c=>{c in i?r&&((0,y.isObject)(i[c])&&(0,y.isObject)(t[c])?p(i[c],t[c],r):i[c]=t[c]):i[c]=t[c]}),i):t}e.mixin=p;function h(i,t){if(i===t)return!0;if(i==null||t===null||t===void 0||typeof i!=typeof t||typeof i!="object"||Array.isArray(i)!==Array.isArray(t))return!1;let r,c;if(Array.isArray(i)){if(i.length!==t.length)return!1;for(r=0;r255?255:T|0}e.toUint8=y;function N(T){return T<0?0:T>4294967295?4294967295:T|0}e.toUint32=N}),define(ee[25],te([0,1,78,17]),function(q,e,y,N){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.uriToFsPath=e.URI=void 0;const T=/^\w[\w\d+.-]*$/,I=/^\//,b=/^\/\//;function C(v,m){if(!v.scheme&&m)throw new Error(`[UriError]: Scheme is missing: {scheme: "", authority: "${v.authority}", path: "${v.path}", query: "${v.query}", fragment: "${v.fragment}"}`);if(v.scheme&&!T.test(v.scheme))throw new Error("[UriError]: Scheme contains illegal characters.");if(v.path){if(v.authority){if(!I.test(v.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(b.test(v.path))throw new Error('[UriError]: If a URI does not contain an authority component, then the path cannot begin with two slash characters ("//")')}}function p(v,m){return!v&&!m?"file":v}function h(v,m){switch(v){case"https":case"http":case"file":m?m[0]!==i&&(m=i+m):m=i;break}return m}const g="",i="/",t=/^(([^:/?#]+?):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?/;class r{constructor(m,_,L,w,k,D=!1){typeof m=="object"?(this.scheme=m.scheme||g,this.authority=m.authority||g,this.path=m.path||g,this.query=m.query||g,this.fragment=m.fragment||g):(this.scheme=p(m,D),this.authority=_||g,this.path=h(this.scheme,L||g),this.query=w||g,this.fragment=k||g,C(this,D))}static isUri(m){return m instanceof r?!0:m?typeof m.authority=="string"&&typeof m.fragment=="string"&&typeof m.path=="string"&&typeof m.query=="string"&&typeof m.scheme=="string"&&typeof m.fsPath=="string"&&typeof m.with=="function"&&typeof m.toString=="function":!1}get fsPath(){return n(this,!1)}with(m){if(!m)return this;let{scheme:_,authority:L,path:w,query:k,fragment:D}=m;return _===void 0?_=this.scheme:_===null&&(_=g),L===void 0?L=this.authority:L===null&&(L=g),w===void 0?w=this.path:w===null&&(w=g),k===void 0?k=this.query:k===null&&(k=g),D===void 0?D=this.fragment:D===null&&(D=g),_===this.scheme&&L===this.authority&&w===this.path&&k===this.query&&D===this.fragment?this:new l(_,L,w,k,D)}static parse(m,_=!1){const L=t.exec(m);return L?new l(L[2]||g,S(L[4]||g),S(L[5]||g),S(L[7]||g),S(L[9]||g),_):new l(g,g,g,g,g)}static file(m){let _=g;if(N.isWindows&&(m=m.replace(/\\/g,i)),m[0]===i&&m[1]===i){const L=m.indexOf(i,2);L===-1?(_=m.substring(2),m=i):(_=m.substring(2,L),m=m.substring(L)||i)}return new l("file",_,m,g,g)}static from(m){const _=new l(m.scheme,m.authority,m.path,m.query,m.fragment);return C(_,!0),_}static joinPath(m,..._){if(!m.path)throw new Error("[UriError]: cannot call joinPath on URI without path");let L;return N.isWindows&&m.scheme==="file"?L=r.file(y.win32.join(n(m,!0),..._)).path:L=y.posix.join(m.path,..._),m.with({path:L})}toString(m=!1){return d(this,m)}toJSON(){return this}static revive(m){if(m){if(m instanceof r)return m;{const _=new l(m);return _._formatted=m.external,_._fsPath=m._sep===c?m.fsPath:null,_}}else return m}}e.URI=r;const c=N.isWindows?1:void 0;class l extends r{constructor(){super(...arguments);this._formatted=null,this._fsPath=null}get fsPath(){return this._fsPath||(this._fsPath=n(this,!1)),this._fsPath}toString(m=!1){return m?d(this,!0):(this._formatted||(this._formatted=d(this,!1)),this._formatted)}toJSON(){const m={$mid:1};return this._fsPath&&(m.fsPath=this._fsPath,m._sep=c),this._formatted&&(m.external=this._formatted),this.path&&(m.path=this.path),this.scheme&&(m.scheme=this.scheme),this.authority&&(m.authority=this.authority),this.query&&(m.query=this.query),this.fragment&&(m.fragment=this.fragment),m}}const a={[58]:"%3A",[47]:"%2F",[63]:"%3F",[35]:"%23",[91]:"%5B",[93]:"%5D",[64]:"%40",[33]:"%21",[36]:"%24",[38]:"%26",[39]:"%27",[40]:"%28",[41]:"%29",[42]:"%2A",[43]:"%2B",[44]:"%2C",[59]:"%3B",[61]:"%3D",[32]:"%20"};function s(v,m){let _,L=-1;for(let w=0;w=97&&k<=122||k>=65&&k<=90||k>=48&&k<=57||k===45||k===46||k===95||k===126||m&&k===47)L!==-1&&(_+=encodeURIComponent(v.substring(L,w)),L=-1),_!==void 0&&(_+=v.charAt(w));else{_===void 0&&(_=v.substr(0,w));const D=a[k];D!==void 0?(L!==-1&&(_+=encodeURIComponent(v.substring(L,w)),L=-1),_+=D):L===-1&&(L=w)}}return L!==-1&&(_+=encodeURIComponent(v.substring(L))),_!==void 0?_:v}function o(v){let m;for(let _=0;_1&&v.scheme==="file"?_=`//${v.authority}${v.path}`:v.path.charCodeAt(0)===47&&(v.path.charCodeAt(1)>=65&&v.path.charCodeAt(1)<=90||v.path.charCodeAt(1)>=97&&v.path.charCodeAt(1)<=122)&&v.path.charCodeAt(2)===58?m?_=v.path.substr(1):_=v.path[1].toLowerCase()+v.path.substr(2):_=v.path,N.isWindows&&(_=_.replace(/\//g,"\\")),_}e.uriToFsPath=n;function d(v,m){const _=m?o:s;let L="",{scheme:w,authority:k,path:D,query:M,fragment:O}=v;if(w&&(L+=w,L+=":"),(k||w==="file")&&(L+=i,L+=i),k){let F=k.indexOf("@");if(F!==-1){const R=k.substr(0,F);k=k.substr(F+1),F=R.indexOf(":"),F===-1?L+=_(R,!1):(L+=_(R.substr(0,F),!1),L+=":",L+=_(R.substr(F+1),!1)),L+="@"}k=k.toLowerCase(),F=k.indexOf(":"),F===-1?L+=_(k,!1):(L+=_(k.substr(0,F),!1),L+=k.substr(F))}if(D){if(D.length>=3&&D.charCodeAt(0)===47&&D.charCodeAt(2)===58){const F=D.charCodeAt(1);F>=65&&F<=90&&(D=`/${String.fromCharCode(F+32)}:${D.substr(3)}`)}else if(D.length>=2&&D.charCodeAt(1)===58){const F=D.charCodeAt(0);F>=65&&F<=90&&(D=`${String.fromCharCode(F+32)}:${D.substr(2)}`)}L+=_(D,!0)}return M&&(L+="?",L+=_(M,!1)),O&&(L+="#",L+=m?O:s(O,!1)),L}function u(v){try{return decodeURIComponent(v)}catch(m){return v.length>3?v.substr(0,3)+u(v.substr(3)):v}}const f=/(%[0-9A-Za-z][0-9A-Za-z])+/g;function S(v){return v.match(f)?v.replace(f,m=>u(m)):v}}),define(ee[209],te([0,1,104,25]),function(q,e,y,N){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.revive=e.parse=void 0;function T(b){let C=JSON.parse(b);return C=I(C),C}e.parse=T;function I(b,C=0){if(!b||C>200)return b;if(typeof b=="object"){switch(b.$mid){case 1:return N.URI.revive(b);case 2:return new RegExp(b.source,b.flags)}if(b instanceof y.VSBuffer||b instanceof Uint8Array)return b;if(Array.isArray(b))for(let p=0;p{let ze=Pe.relatedTarget;for(;ze&&ze!==Le;)ze=ze.parentNode;ze!==Le&&Ee(Pe)})}e.addDisposableNonBubblingMouseOutListener=S;function v(Le,Ee){return l(Le,"pointerout",Pe=>{let ze=Pe.relatedTarget;for(;ze&&ze!==Le;)ze=ze.parentNode;ze!==Le&&Ee(Pe)})}e.addDisposableNonBubblingPointerOutListener=v;function m(Le,Ee,Pe){let ze=null;const Te=ve=>me.fire(ve),Ne=()=>{ze||(ze=new c(Le,Ee,Te,Pe))},Me=()=>{ze&&(ze.dispose(),ze=null)},me=new p.Emitter({onFirstListenerAdd:Ne,onLastListenerRemove:Me});return me}e.createEventEmitter=m;let _=null;function L(Le){if(!_){const Ee=Pe=>setTimeout(()=>Pe(new Date().getTime()),0);_=self.requestAnimationFrame||self.msRequestAnimationFrame||self.webkitRequestAnimationFrame||self.mozRequestAnimationFrame||self.oRequestAnimationFrame||Ee}return _.call(self,Le)}class w{constructor(Ee,Pe=0){this._runner=Ee,this.priority=Pe,this._canceled=!1}dispose(){this._canceled=!0}execute(){if(!this._canceled)try{this._runner()}catch(Ee){(0,C.onUnexpectedError)(Ee)}}static sort(Ee,Pe){return Pe.priority-Ee.priority}}(function(){let Le=[],Ee=null,Pe=!1,ze=!1,Te=()=>{for(Pe=!1,Ee=Le,Le=[],ze=!0;Ee.length>0;)Ee.sort(w.sort),Ee.shift().execute();ze=!1};e.scheduleAtNextAnimationFrame=(Ne,Me=0)=>{let me=new w(Ne,Me);return Le.push(me),Pe||(Pe=!0,L(Te)),me},e.runAtThisOrScheduleAtNextAnimationFrame=(Ne,Me)=>{if(ze){let me=new w(Ne,Me);return Ee.push(me),me}else return(0,e.scheduleAtNextAnimationFrame)(Ne,Me)}})();const k=8,D=function(Le,Ee){return Ee};class M extends h.Disposable{constructor(Ee,Pe,ze,Te=D,Ne=k){super();let Me=null,me=0,ve=this._register(new b.TimeoutTimer),Ie=()=>{me=new Date().getTime(),ze(Me),Me=null};this._register(l(Ee,Pe,ye=>{Me=Te(Me,ye);let we=new Date().getTime()-me;we>=Ne?(ve.cancel(),Ie()):ve.setIfNotSet(Ie,Ne-we)}))}}function O(Le,Ee,Pe,ze,Te){return new M(Le,Ee,Pe,ze,Te)}e.addDisposableThrottledListener=O;function F(Le){return document.defaultView.getComputedStyle(Le,null)}e.getComputedStyle=F;function R(Le){if(Le!==document.body)return new P(Le.clientWidth,Le.clientHeight);if(i.isIOS&&window.visualViewport)return new P(window.visualViewport.width,window.visualViewport.height);if(window.innerWidth&&window.innerHeight)return new P(window.innerWidth,window.innerHeight);if(document.body&&document.body.clientWidth&&document.body.clientHeight)return new P(document.body.clientWidth,document.body.clientHeight);if(document.documentElement&&document.documentElement.clientWidth&&document.documentElement.clientHeight)return new P(document.documentElement.clientWidth,document.documentElement.clientHeight);throw new Error("Unable to figure out browser width and height")}e.getClientArea=R;class A{static convertToPixels(Ee,Pe){return parseFloat(Pe)||0}static getDimension(Ee,Pe,ze){let Te=F(Ee),Ne="0";return Te&&(Te.getPropertyValue?Ne=Te.getPropertyValue(Pe):Ne=Te.getAttribute(ze)),A.convertToPixels(Ee,Ne)}static getBorderLeftWidth(Ee){return A.getDimension(Ee,"border-left-width","borderLeftWidth")}static getBorderRightWidth(Ee){return A.getDimension(Ee,"border-right-width","borderRightWidth")}static getBorderTopWidth(Ee){return A.getDimension(Ee,"border-top-width","borderTopWidth")}static getBorderBottomWidth(Ee){return A.getDimension(Ee,"border-bottom-width","borderBottomWidth")}static getPaddingLeft(Ee){return A.getDimension(Ee,"padding-left","paddingLeft")}static getPaddingRight(Ee){return A.getDimension(Ee,"padding-right","paddingRight")}static getPaddingTop(Ee){return A.getDimension(Ee,"padding-top","paddingTop")}static getPaddingBottom(Ee){return A.getDimension(Ee,"padding-bottom","paddingBottom")}static getMarginLeft(Ee){return A.getDimension(Ee,"margin-left","marginLeft")}static getMarginTop(Ee){return A.getDimension(Ee,"margin-top","marginTop")}static getMarginRight(Ee){return A.getDimension(Ee,"margin-right","marginRight")}static getMarginBottom(Ee){return A.getDimension(Ee,"margin-bottom","marginBottom")}}class P{constructor(Ee,Pe){this.width=Ee,this.height=Pe}with(Ee=this.width,Pe=this.height){return Ee!==this.width||Pe!==this.height?new P(Ee,Pe):this}static is(Ee){return typeof Ee=="object"&&typeof Ee.height=="number"&&typeof Ee.width=="number"}static lift(Ee){return Ee instanceof P?Ee:new P(Ee.width,Ee.height)}static equals(Ee,Pe){return Ee===Pe?!0:!Ee||!Pe?!1:Ee.width===Pe.width&&Ee.height===Pe.height}}e.Dimension=P;function E(Le){let Ee=Le.offsetParent,Pe=Le.offsetTop,ze=Le.offsetLeft;for(;(Le=Le.parentNode)!==null&&Le!==document.body&&Le!==document.documentElement;){Pe-=Le.scrollTop;const Te=G(Le)?null:F(Le);Te&&(ze-=Te.direction!=="rtl"?Le.scrollLeft:-Le.scrollLeft),Le===Ee&&(ze+=A.getBorderLeftWidth(Le),Pe+=A.getBorderTopWidth(Le),Pe+=Le.offsetTop,ze+=Le.offsetLeft,Ee=Le.offsetParent)}return{left:ze,top:Pe}}e.getTopLeftOffset=E;function B(Le,Ee,Pe){typeof Ee=="number"&&(Le.style.width=`${Ee}px`),typeof Pe=="number"&&(Le.style.height=`${Pe}px`)}e.size=B;function V(Le){let Ee=Le.getBoundingClientRect();return{left:Ee.left+e.StandardWindow.scrollX,top:Ee.top+e.StandardWindow.scrollY,width:Ee.width,height:Ee.height}}e.getDomNodePagePosition=V,e.StandardWindow=new class{get scrollX(){return typeof window.scrollX=="number"?window.scrollX:document.body.scrollLeft+document.documentElement.scrollLeft}get scrollY(){return typeof window.scrollY=="number"?window.scrollY:document.body.scrollTop+document.documentElement.scrollTop}};function j(Le){let Ee=A.getMarginLeft(Le)+A.getMarginRight(Le);return Le.offsetWidth+Ee}e.getTotalWidth=j;function K(Le){let Ee=A.getBorderLeftWidth(Le)+A.getBorderRightWidth(Le),Pe=A.getPaddingLeft(Le)+A.getPaddingRight(Le);return Le.offsetWidth-Ee-Pe}e.getContentWidth=K;function Y(Le){let Ee=A.getBorderTopWidth(Le)+A.getBorderBottomWidth(Le),Pe=A.getPaddingTop(Le)+A.getPaddingBottom(Le);return Le.offsetHeight-Ee-Pe}e.getContentHeight=Y;function J(Le){let Ee=A.getMarginTop(Le)+A.getMarginBottom(Le);return Le.offsetHeight+Ee}e.getTotalHeight=J;function Z(Le,Ee){for(;Le;){if(Le===Ee)return!0;Le=Le.parentNode}return!1}e.isAncestor=Z;function ie(Le,Ee,Pe){for(;Le&&Le.nodeType===Le.ELEMENT_NODE;){if(Le.classList.contains(Ee))return Le;if(Pe){if(typeof Pe=="string"){if(Le.classList.contains(Pe))return null}else if(Le===Pe)return null}Le=Le.parentNode}return null}e.findParentWithClass=ie;function ne(Le,Ee,Pe){return!!ie(Le,Ee,Pe)}e.hasParentWithClass=ne;function G(Le){return Le&&!!Le.host&&!!Le.mode}e.isShadowRoot=G;function W(Le){return!!z(Le)}e.isInShadowDOM=W;function z(Le){for(;Le.parentNode;){if(Le===document.body)return null;Le=Le.parentNode}return G(Le)?Le:null}e.getShadowRoot=z;function U(){let Le=document.activeElement;for(;Le==null?void 0:Le.shadowRoot;)Le=Le.shadowRoot.activeElement;return Le}e.getActiveElement=U;function x(Le=document.getElementsByTagName("head")[0]){let Ee=document.createElement("style");return Ee.type="text/css",Ee.media="screen",Le.appendChild(Ee),Ee}e.createStyleSheet=x;let X=null;function le(){return X||(X=x()),X}function fe(Le){var Ee,Pe;return((Ee=Le==null?void 0:Le.sheet)===null||Ee===void 0?void 0:Ee.rules)?Le.sheet.rules:((Pe=Le==null?void 0:Le.sheet)===null||Pe===void 0?void 0:Pe.cssRules)?Le.sheet.cssRules:[]}function $(Le,Ee,Pe=le()){!Pe||!Ee||Pe.sheet.insertRule(Le+"{"+Ee+"}",0)}e.createCSSRule=$;function H(Le,Ee=le()){if(!Ee)return;let Pe=fe(Ee),ze=[];for(let Te=0;Te=0;Te--)Ee.sheet.deleteRule(ze[Te])}e.removeCSSRulesContainingSelector=H;function Q(Le){return typeof HTMLElement=="object"?Le instanceof HTMLElement:Le&&typeof Le=="object"&&Le.nodeType===1&&typeof Le.nodeName=="string"}e.isHTMLElement=Q,e.EventType={CLICK:"click",AUXCLICK:"auxclick",DBLCLICK:"dblclick",MOUSE_UP:"mouseup",MOUSE_DOWN:"mousedown",MOUSE_OVER:"mouseover",MOUSE_MOVE:"mousemove",MOUSE_OUT:"mouseout",MOUSE_ENTER:"mouseenter",MOUSE_LEAVE:"mouseleave",MOUSE_WHEEL:"wheel",POINTER_UP:"pointerup",POINTER_DOWN:"pointerdown",POINTER_MOVE:"pointermove",CONTEXT_MENU:"contextmenu",WHEEL:"wheel",KEY_DOWN:"keydown",KEY_PRESS:"keypress",KEY_UP:"keyup",LOAD:"load",BEFORE_UNLOAD:"beforeunload",UNLOAD:"unload",PAGE_SHOW:"pageshow",PAGE_HIDE:"pagehide",ABORT:"abort",ERROR:"error",RESIZE:"resize",SCROLL:"scroll",FULLSCREEN_CHANGE:"fullscreenchange",WK_FULLSCREEN_CHANGE:"webkitfullscreenchange",SELECT:"select",CHANGE:"change",SUBMIT:"submit",RESET:"reset",FOCUS:"focus",FOCUS_IN:"focusin",FOCUS_OUT:"focusout",BLUR:"blur",INPUT:"input",STORAGE:"storage",DRAG_START:"dragstart",DRAG:"drag",DRAG_ENTER:"dragenter",DRAG_LEAVE:"dragleave",DRAG_OVER:"dragover",DROP:"drop",DRAG_END:"dragend",ANIMATION_START:y.isWebKit?"webkitAnimationStart":"animationstart",ANIMATION_END:y.isWebKit?"webkitAnimationEnd":"animationend",ANIMATION_ITERATION:y.isWebKit?"webkitAnimationIteration":"animationiteration"},e.EventHelper={stop:function(Le,Ee){Le.preventDefault?Le.preventDefault():Le.returnValue=!1,Ee&&(Le.stopPropagation?Le.stopPropagation():Le.cancelBubble=!0)}};function re(Le){let Ee=[];for(let Pe=0;Le&&Le.nodeType===Le.ELEMENT_NODE;Pe++)Ee[Pe]=Le.scrollTop,Le=Le.parentNode;return Ee}e.saveParentsScrollTop=re;function ce(Le,Ee){for(let Pe=0;Le&&Le.nodeType===Le.ELEMENT_NODE;Pe++)Le.scrollTop!==Ee[Pe]&&(Le.scrollTop=Ee[Pe]),Le=Le.parentNode}e.restoreParentsScrollTop=ce;class oe extends h.Disposable{constructor(Ee){super();this._onDidFocus=this._register(new p.Emitter),this.onDidFocus=this._onDidFocus.event,this._onDidBlur=this._register(new p.Emitter),this.onDidBlur=this._onDidBlur.event;let Pe=oe.hasFocusWithin(Ee),ze=!1;const Te=()=>{ze=!1,Pe||(Pe=!0,this._onDidFocus.fire())},Ne=()=>{Pe&&(ze=!0,window.setTimeout(()=>{ze&&(ze=!1,Pe=!1,this._onDidBlur.fire())},0))};this._refreshStateHandler=()=>{oe.hasFocusWithin(Ee)!==Pe&&(Pe?Ne():Te())},this._register(l(Ee,e.EventType.FOCUS,Te,!0)),this._register(l(Ee,e.EventType.BLUR,Ne,!0)),this._register(l(Ee,e.EventType.FOCUS_IN,()=>this._refreshStateHandler())),this._register(l(Ee,e.EventType.FOCUS_OUT,()=>this._refreshStateHandler()))}static hasFocusWithin(Ee){const Pe=z(Ee),ze=Pe?Pe.activeElement:document.activeElement;return Z(ze,Ee)}}function de(Le){return new oe(Le)}e.trackFocus=de;function pe(Le,...Ee){if(Le.append(...Ee),Ee.length===1&&typeof Ee[0]!="string")return Ee[0]}e.append=pe;function _e(Le,Ee){return Le.insertBefore(Ee,Le.firstChild),Ee}e.prepend=_e;function se(Le,...Ee){Le.innerText="",pe(Le,...Ee)}e.reset=se;const ue=/([\w\-]+)?(#([\w\-]+))?((\.([\w\-]+))*)/;var be;(function(Le){Le.HTML="http://www.w3.org/1999/xhtml",Le.SVG="http://www.w3.org/2000/svg"})(be=e.Namespace||(e.Namespace={}));function ge(Le,Ee,Pe,...ze){let Te=ue.exec(Ee);if(!Te)throw new Error("Bad use of emmet");Pe=Object.assign({},Pe||{});let Ne=Te[1]||"div",Me;return Le!==be.HTML?Me=document.createElementNS(Le,Ne):Me=document.createElement(Ne),Te[3]&&(Me.id=Te[3]),Te[4]&&(Me.className=Te[4].replace(/\./g," ").trim()),Object.keys(Pe).forEach(me=>{const ve=Pe[me];typeof ve!="undefined"&&(/^on\w+$/.test(me)?Me[me]=ve:me==="selected"?ve&&Me.setAttribute(me,"true"):Me.setAttribute(me,ve))}),Me.append(...ze),Me}function Se(Le,Ee,...Pe){return ge(be.HTML,Le,Ee,...Pe)}e.$=Se,Se.SVG=function(Le,Ee,...Pe){return ge(be.SVG,Le,Ee,...Pe)};function ae(...Le){for(let Ee of Le)Ee.style.display="",Ee.removeAttribute("aria-hidden")}e.show=ae;function he(...Le){for(let Ee of Le)Ee.style.display="none",Ee.setAttribute("aria-hidden","true")}e.hide=he;function De(Le){return Array.prototype.slice.call(document.getElementsByTagName(Le),0)}e.getElementsByTagName=De;function ke(Le){const Ee=window.devicePixelRatio*Le;return Math.max(1,Math.floor(Ee))/window.devicePixelRatio}e.computeScreenAwareSize=ke;function Ve(Le){window.open(Le,"_blank","noopener")}e.windowOpenNoOpener=Ve;function Fe(Le){const Ee=()=>{Le(),Pe=(0,e.scheduleAtNextAnimationFrame)(Ee)};let Pe=(0,e.scheduleAtNextAnimationFrame)(Ee);return(0,h.toDisposable)(()=>Pe.dispose())}e.animate=Fe,g.RemoteAuthorities.setPreferredWebSchema(/^https:/.test(window.location.href)?"https":"http");function xe(Le){return Le?`url('${g.FileAccess.asBrowserUri(Le).toString(!0).replace(/'/g,"%27")}')`:"url('')"}e.asCSSUrl=xe;function Ze(Le){return`'${Le.replace(/'/g,"%27")}'`}e.asCSSPropertyValue=Ze;class je extends p.Emitter{constructor(){super();this._subscriptions=new h.DisposableStore,this._keyStatus={altKey:!1,shiftKey:!1,ctrlKey:!1,metaKey:!1},this._subscriptions.add(l(window,"keydown",Ee=>{if(Ee.defaultPrevented)return;const Pe=new T.StandardKeyboardEvent(Ee);if(!(Pe.keyCode===6&&Ee.repeat)){if(Ee.altKey&&!this._keyStatus.altKey)this._keyStatus.lastKeyPressed="alt";else if(Ee.ctrlKey&&!this._keyStatus.ctrlKey)this._keyStatus.lastKeyPressed="ctrl";else if(Ee.metaKey&&!this._keyStatus.metaKey)this._keyStatus.lastKeyPressed="meta";else if(Ee.shiftKey&&!this._keyStatus.shiftKey)this._keyStatus.lastKeyPressed="shift";else if(Pe.keyCode!==6)this._keyStatus.lastKeyPressed=void 0;else return;this._keyStatus.altKey=Ee.altKey,this._keyStatus.ctrlKey=Ee.ctrlKey,this._keyStatus.metaKey=Ee.metaKey,this._keyStatus.shiftKey=Ee.shiftKey,this._keyStatus.lastKeyPressed&&(this._keyStatus.event=Ee,this.fire(this._keyStatus))}},!0)),this._subscriptions.add(l(window,"keyup",Ee=>{Ee.defaultPrevented||(!Ee.altKey&&this._keyStatus.altKey?this._keyStatus.lastKeyReleased="alt":!Ee.ctrlKey&&this._keyStatus.ctrlKey?this._keyStatus.lastKeyReleased="ctrl":!Ee.metaKey&&this._keyStatus.metaKey?this._keyStatus.lastKeyReleased="meta":!Ee.shiftKey&&this._keyStatus.shiftKey?this._keyStatus.lastKeyReleased="shift":this._keyStatus.lastKeyReleased=void 0,this._keyStatus.lastKeyPressed!==this._keyStatus.lastKeyReleased&&(this._keyStatus.lastKeyPressed=void 0),this._keyStatus.altKey=Ee.altKey,this._keyStatus.ctrlKey=Ee.ctrlKey,this._keyStatus.metaKey=Ee.metaKey,this._keyStatus.shiftKey=Ee.shiftKey,this._keyStatus.lastKeyReleased&&(this._keyStatus.event=Ee,this.fire(this._keyStatus)))},!0)),this._subscriptions.add(l(document.body,"mousedown",()=>{this._keyStatus.lastKeyPressed=void 0},!0)),this._subscriptions.add(l(document.body,"mouseup",()=>{this._keyStatus.lastKeyPressed=void 0},!0)),this._subscriptions.add(l(document.body,"mousemove",Ee=>{Ee.buttons&&(this._keyStatus.lastKeyPressed=void 0)},!0)),this._subscriptions.add(l(window,"blur",()=>{this.resetKeyStatus()}))}get keyStatus(){return this._keyStatus}resetKeyStatus(){this.doResetKeyStatus(),this.fire(this._keyStatus)}doResetKeyStatus(){this._keyStatus={altKey:!1,shiftKey:!1,ctrlKey:!1,metaKey:!1}}static getInstance(){return je.instance||(je.instance=new je),je.instance}dispose(){super.dispose(),this._subscriptions.dispose()}}e.ModifierKeyEmitter=je;function $e(Le,Ee){const Pe=window.matchMedia(Le);typeof Pe.addEventListener=="function"?Pe.addEventListener("change",Ee):Pe.addListener(Ee)}e.addMatchMediaChangeListener=$e}),define(ee[168],te([0,1,7]),function(q,e,y){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.createElement=e.renderFormattedText=e.renderText=void 0;function N(i,t={}){const r=I(t);return r.textContent=i,r}e.renderText=N;function T(i,t={}){const r=I(t);return C(r,p(i,!!t.renderCodeSegments),t.actionHandler,t.renderCodeSegments),r}e.renderFormattedText=T;function I(i){const t=i.inline?"span":"div",r=document.createElement(t);return i.className&&(r.className=i.className),r}e.createElement=I;class b{constructor(t){this.source=t,this.index=0}eos(){return this.index>=this.source.length}next(){const t=this.peek();return this.advance(),t}peek(){return this.source[this.index]}advance(){this.index++}}function C(i,t,r,c){let l;if(t.type===2)l=document.createTextNode(t.content||"");else if(t.type===3)l=document.createElement("b");else if(t.type===4)l=document.createElement("i");else if(t.type===7&&c)l=document.createElement("code");else if(t.type===5&&r){const a=document.createElement("a");a.href="#",r.disposables.add(y.addStandardDisposableListener(a,"click",s=>{r.callback(String(t.index),s)})),l=a}else t.type===8?l=document.createElement("br"):t.type===1&&(l=i);l&&i!==l&&i.appendChild(l),l&&Array.isArray(t.children)&&t.children.forEach(a=>{C(l,a,r,c)})}function p(i,t){const r={type:1,children:[]};let c=0,l=r;const a=[],s=new b(i);for(;!s.eos();){let o=s.next();const n=o==="\\"&&g(s.peek(),t)!==0;if(n&&(o=s.next()),!n&&h(o,t)&&o===s.peek()){s.advance(),l.type===2&&(l=a.pop());const d=g(o,t);if(l.type===d||l.type===5&&d===6)l=a.pop();else{const u={type:d,children:[]};d===5&&(u.index=c,c++),l.children.push(u),a.push(l),l=u}}else if(o===`
`)l.type===2&&(l=a.pop()),l.children.push({type:8});else if(l.type!==2){const d={type:2,content:o};l.children.push(d),a.push(l),l=d}else l.content+=o}return l.type===2&&(l=a.pop()),a.length,r}function h(i,t){return g(i,t)!==0}function g(i,t){switch(i){case"*":return 3;case"_":return 4;case"[":return 5;case"]":return 6;case"`":return t?7:0;default:return 0}}}),define(ee[96],te([0,1,7,204,57,2,17]),function(q,e,y,N,T,I,b){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.GlobalMouseMoveMonitor=e.standardMouseMoveMerger=void 0;function C(h,g){let i=new T.StandardMouseEvent(g);return i.preventDefault(),{leftButton:i.leftButton,buttons:i.buttons,posx:i.posx,posy:i.posy}}e.standardMouseMoveMerger=C;class p{constructor(){this._hooks=new I.DisposableStore,this._mouseMoveEventMerger=null,this._mouseMoveCallback=null,this._onStopCallback=null}dispose(){this.stopMonitoring(!1),this._hooks.dispose()}stopMonitoring(g,i){if(!this.isMonitoring())return;this._hooks.clear(),this._mouseMoveEventMerger=null,this._mouseMoveCallback=null;const t=this._onStopCallback;this._onStopCallback=null,g&&t&&t(i)}isMonitoring(){return!!this._mouseMoveEventMerger}startMonitoring(g,i,t,r,c){if(this.isMonitoring())return;this._mouseMoveEventMerger=t,this._mouseMoveCallback=r,this._onStopCallback=c;const l=N.IframeUtils.getSameOriginWindowChain(),a=b.isIOS?"pointermove":"mousemove",s="mouseup",o=l.map(d=>d.window.document),n=y.getShadowRoot(g);n&&o.unshift(n);for(const d of o)this._hooks.add(y.addDisposableThrottledListener(d,a,u=>{if(u.buttons!==i){this.stopMonitoring(!0);return}this._mouseMoveCallback(u)},(u,f)=>this._mouseMoveEventMerger(u,f))),this._hooks.add(y.addDisposableListener(d,s,u=>this.stopMonitoring(!0)));if(N.IframeUtils.hasDifferentOriginAncestor()){let d=l[l.length-1];this._hooks.add(y.addDisposableListener(d.window.document,"mouseout",u=>{new T.StandardMouseEvent(u).target.tagName.toLowerCase()==="html"&&this.stopMonitoring(!0)})),this._hooks.add(y.addDisposableListener(d.window.document,"mouseover",u=>{new T.StandardMouseEvent(u).target.tagName.toLowerCase()==="html"&&this.stopMonitoring(!0)})),this._hooks.add(y.addDisposableListener(d.window.document.body,"mouseleave",u=>{this.stopMonitoring(!0)}))}}}e.GlobalMouseMoveMonitor=p});var Be=this&&this.__decorate||function(q,e,y,N){var T=arguments.length,I=T<3?e:N===null?N=Object.getOwnPropertyDescriptor(e,y):N,b;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")I=Reflect.decorate(q,e,y,N);else for(var C=q.length-1;C>=0;C--)(b=q[C])&&(I=(T<3?b(I):T>3?b(e,y,I):b(e,y))||I);return T>3&&I&&Object.defineProperty(e,y,I),I};define(ee[58],te([0,1,7,19,94,2]),function(q,e,y,N,T,I){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Gesture=e.EventType=void 0;var b;(function(p){p.Tap="-monaco-gesturetap",p.Change="-monaco-gesturechange",p.Start="-monaco-gesturestart",p.End="-monaco-gesturesend",p.Contextmenu="-monaco-gesturecontextmenu"})(b=e.EventType||(e.EventType={}));class C extends I.Disposable{constructor(){super();this.dispatched=!1,this.activeTouches={},this.handle=null,this.targets=[],this.ignoreTargets=[],this._lastSetTapCountTime=0,this._register(y.addDisposableListener(document,"touchstart",h=>this.onTouchStart(h),{passive:!1})),this._register(y.addDisposableListener(document,"touchend",h=>this.onTouchEnd(h))),this._register(y.addDisposableListener(document,"touchmove",h=>this.onTouchMove(h),{passive:!1}))}static addTarget(h){return C.isTouchDevice()?(C.INSTANCE||(C.INSTANCE=new C),C.INSTANCE.targets.push(h),{dispose:()=>{C.INSTANCE.targets=C.INSTANCE.targets.filter(g=>g!==h)}}):I.Disposable.None}static ignoreTarget(h){return C.isTouchDevice()?(C.INSTANCE||(C.INSTANCE=new C),C.INSTANCE.ignoreTargets.push(h),{dispose:()=>{C.INSTANCE.ignoreTargets=C.INSTANCE.ignoreTargets.filter(g=>g!==h)}}):I.Disposable.None}static isTouchDevice(){return"ontouchstart"in window||navigator.maxTouchPoints>0}dispose(){this.handle&&(this.handle.dispose(),this.handle=null),super.dispose()}onTouchStart(h){let g=Date.now();this.handle&&(this.handle.dispose(),this.handle=null);for(let i=0,t=h.targetTouches.length;i=C.HOLD_DELAY&&Math.abs(l.initialPageX-N.tail(l.rollingPageX))<30&&Math.abs(l.initialPageY-N.tail(l.rollingPageY))<30){let s=this.newGestureEvent(b.Contextmenu,l.initialTarget);s.pageX=N.tail(l.rollingPageX),s.pageY=N.tail(l.rollingPageY),this.dispatchEvent(s)}else if(i===1){let s=N.tail(l.rollingPageX),o=N.tail(l.rollingPageY),n=N.tail(l.rollingTimestamps)-l.rollingTimestamps[0],d=s-l.rollingPageX[0],u=o-l.rollingPageY[0];const f=this.targets.filter(S=>l.initialTarget instanceof Node&&S.contains(l.initialTarget));this.inertia(f,g,Math.abs(d)/n,d>0?1:-1,s,Math.abs(u)/n,u>0?1:-1,o)}this.dispatchEvent(this.newGestureEvent(b.End,l.initialTarget)),delete this.activeTouches[c.identifier]}this.dispatched&&(h.preventDefault(),h.stopPropagation(),this.dispatched=!1)}newGestureEvent(h,g){let i=document.createEvent("CustomEvent");return i.initEvent(h,!1,!0),i.initialTarget=g,i.tapCount=0,i}dispatchEvent(h){if(h.type===b.Tap){const g=new Date().getTime();let i=0;g-this._lastSetTapCountTime>C.CLEAR_TAP_COUNT_TIME?i=1:i=2,this._lastSetTapCountTime=g,h.tapCount=i}else(h.type===b.Change||h.type===b.Contextmenu)&&(this._lastSetTapCountTime=0);for(let g=0;g{h.initialTarget instanceof Node&&g.contains(h.initialTarget)&&(g.dispatchEvent(h),this.dispatched=!0)})}inertia(h,g,i,t,r,c,l,a){this.handle=y.scheduleAtNextAnimationFrame(()=>{let s=Date.now(),o=s-g,n=0,d=0,u=!0;i+=C.SCROLL_FRICTION*o,c+=C.SCROLL_FRICTION*o,i>0&&(u=!1,n=t*i*o),c>0&&(u=!1,d=l*c*o);let f=this.newGestureEvent(b.Change);f.translationX=n,f.translationY=d,h.forEach(S=>S.dispatchEvent(f)),u||this.inertia(h,s,i,t,r+n,c,l,a+d)})}onTouchMove(h){let g=Date.now();for(let i=0,t=h.changedTouches.length;i3&&(c.rollingPageX.shift(),c.rollingPageY.shift(),c.rollingTimestamps.shift()),c.rollingPageX.push(r.pageX),c.rollingPageY.push(r.pageY),c.rollingTimestamps.push(g)}this.dispatched&&(h.preventDefault(),h.stopPropagation(),this.dispatched=!1)}}C.SCROLL_FRICTION=-.005,C.HOLD_DELAY=700,C.CLEAR_TAP_COUNT_TIME=400,Be([T.memoize],C,"isTouchDevice",null),e.Gesture=C}),define(ee[108],te([0,1,7,27]),function(q,e,y,N){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.renderIcon=e.renderLabelWithIcons=void 0;const T=new RegExp(`(\\\\)?\\$\\((${N.CSSIcon.iconNameExpression}(?:${N.CSSIcon.iconModifierExpression})?)\\)`,"g");function I(C){const p=new Array;let h,g=0,i=0;for(;(h=T.exec(C))!==null;){i=h.index||0,p.push(C.substring(g,i)),g=(h.index||0)+h[0].length;const[,t,r]=h;p.push(t?`$(${r})`:b({id:r}))}return g{g=i===`\r
`?-1:0,t+=h;for(const r of p)r.end<=t||(r.start>=t&&(r.start+=g),r.end>=t&&(r.end+=g));return h+=g,"\u23CE"})}}e.HighlightedLabel=I}),define(ee[312],te([0,1,7]),function(q,e,y){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.RowCache=void 0;function N(I){try{I.parentElement&&I.parentElement.removeChild(I)}catch(b){}}class T{constructor(b){this.renderers=b,this.cache=new Map}alloc(b){let C=this.getTemplateCache(b).pop();if(!C){const p=(0,y.$)(".monaco-list-row"),g=this.getRenderer(b).renderTemplate(p);C={domNode:p,templateId:b,templateData:g}}return C}release(b){!b||this.releaseRow(b)}releaseRow(b){const{domNode:C,templateId:p}=b;C&&(C.classList.remove("scrolling"),N(C)),this.getTemplateCache(p).push(b)}getTemplateCache(b){let C=this.cache.get(b);return C||(C=[],this.cache.set(b,C)),C}dispose(){this.cache.forEach((b,C)=>{for(const p of b)this.getRenderer(C).disposeTemplate(p.templateData),p.templateData=null}),this.cache.clear()}getRenderer(b){const C=this.renderers.get(b);if(!C)throw new Error(`No renderer found for ${b}`);return C}}e.RowCache=T}),define(ee[54],te([0,1,7,46,57,58,2]),function(q,e,y,N,T,I,b){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Widget=void 0;class C extends b.Disposable{onclick(h,g){this._register(y.addDisposableListener(h,y.EventType.CLICK,i=>g(new T.StandardMouseEvent(i))))}onmousedown(h,g){this._register(y.addDisposableListener(h,y.EventType.MOUSE_DOWN,i=>g(new T.StandardMouseEvent(i))))}onmouseover(h,g){this._register(y.addDisposableListener(h,y.EventType.MOUSE_OVER,i=>g(new T.StandardMouseEvent(i))))}onnonbubblingmouseout(h,g){this._register(y.addDisposableNonBubblingMouseOutListener(h,i=>g(new T.StandardMouseEvent(i))))}onkeydown(h,g){this._register(y.addDisposableListener(h,y.EventType.KEY_DOWN,i=>g(new N.StandardKeyboardEvent(i))))}onkeyup(h,g){this._register(y.addDisposableListener(h,y.EventType.KEY_UP,i=>g(new N.StandardKeyboardEvent(i))))}oninput(h,g){this._register(y.addDisposableListener(h,y.EventType.INPUT,g))}onblur(h,g){this._register(y.addDisposableListener(h,y.EventType.BLUR,g))}onfocus(h,g){this._register(y.addDisposableListener(h,y.EventType.FOCUS,g))}ignoreGesture(h){I.Gesture.ignoreTarget(h)}}e.Widget=C}),define(ee[169],te([0,1,96,54,10]),function(q,e,y,N,T){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ScrollbarArrow=e.ARROW_IMG_SIZE=void 0,e.ARROW_IMG_SIZE=11;class I extends N.Widget{constructor(C){super();this._onActivate=C.onActivate,this.bgDomNode=document.createElement("div"),this.bgDomNode.className="arrow-background",this.bgDomNode.style.position="absolute",this.bgDomNode.style.width=C.bgWidth+"px",this.bgDomNode.style.height=C.bgHeight+"px",typeof C.top!="undefined"&&(this.bgDomNode.style.top="0px"),typeof C.left!="undefined"&&(this.bgDomNode.style.left="0px"),typeof C.bottom!="undefined"&&(this.bgDomNode.style.bottom="0px"),typeof C.right!="undefined"&&(this.bgDomNode.style.right="0px"),this.domNode=document.createElement("div"),this.domNode.className=C.className,this.domNode.classList.add(...C.icon.classNamesArray),this.domNode.style.position="absolute",this.domNode.style.width=e.ARROW_IMG_SIZE+"px",this.domNode.style.height=e.ARROW_IMG_SIZE+"px",typeof C.top!="undefined"&&(this.domNode.style.top=C.top+"px"),typeof C.left!="undefined"&&(this.domNode.style.left=C.left+"px"),typeof C.bottom!="undefined"&&(this.domNode.style.bottom=C.bottom+"px"),typeof C.right!="undefined"&&(this.domNode.style.right=C.right+"px"),this._mouseMoveMonitor=this._register(new y.GlobalMouseMoveMonitor),this.onmousedown(this.bgDomNode,p=>this._arrowMouseDown(p)),this.onmousedown(this.domNode,p=>this._arrowMouseDown(p)),this._mousedownRepeatTimer=this._register(new T.IntervalTimer),this._mousedownScheduleRepeatTimer=this._register(new T.TimeoutTimer)}_arrowMouseDown(C){const p=()=>{this._mousedownRepeatTimer.cancelAndSet(()=>this._onActivate(),1e3/24)};this._onActivate(),this._mousedownRepeatTimer.cancel(),this._mousedownScheduleRepeatTimer.cancelAndSet(p,200),this._mouseMoveMonitor.startMonitoring(C.target,C.buttons,y.standardMouseMoveMerger,h=>{},()=>{this._mousedownRepeatTimer.cancel(),this._mousedownScheduleRepeatTimer.cancel()}),C.preventDefault()}}e.ScrollbarArrow=I}),define(ee[211],te([0,1,7,32,96,169,307,54,17]),function(q,e,y,N,T,I,b,C,p){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.AbstractScrollbar=void 0;const h=140;class g extends C.Widget{constructor(t){super();this._lazyRender=t.lazyRender,this._host=t.host,this._scrollable=t.scrollable,this._scrollByPage=t.scrollByPage,this._scrollbarState=t.scrollbarState,this._visibilityController=this._register(new b.ScrollbarVisibilityController(t.visibility,"visible scrollbar "+t.extraScrollbarClassName,"invisible scrollbar "+t.extraScrollbarClassName)),this._visibilityController.setIsNeeded(this._scrollbarState.isNeeded()),this._mouseMoveMonitor=this._register(new T.GlobalMouseMoveMonitor),this._shouldRender=!0,this.domNode=(0,N.createFastDomNode)(document.createElement("div")),this.domNode.setAttribute("role","presentation"),this.domNode.setAttribute("aria-hidden","true"),this._visibilityController.setDomNode(this.domNode),this.domNode.setPosition("absolute"),this.onmousedown(this.domNode.domNode,r=>this._domNodeMouseDown(r))}_createArrow(t){const r=this._register(new I.ScrollbarArrow(t));this.domNode.domNode.appendChild(r.bgDomNode),this.domNode.domNode.appendChild(r.domNode)}_createSlider(t,r,c,l){this.slider=(0,N.createFastDomNode)(document.createElement("div")),this.slider.setClassName("slider"),this.slider.setPosition("absolute"),this.slider.setTop(t),this.slider.setLeft(r),typeof c=="number"&&this.slider.setWidth(c),typeof l=="number"&&this.slider.setHeight(l),this.slider.setLayerHinting(!0),this.slider.setContain("strict"),this.domNode.domNode.appendChild(this.slider.domNode),this.onmousedown(this.slider.domNode,a=>{a.leftButton&&(a.preventDefault(),this._sliderMouseDown(a,()=>{}))}),this.onclick(this.slider.domNode,a=>{a.leftButton&&a.stopPropagation()})}_onElementSize(t){return this._scrollbarState.setVisibleSize(t)&&(this._visibilityController.setIsNeeded(this._scrollbarState.isNeeded()),this._shouldRender=!0,this._lazyRender||this.render()),this._shouldRender}_onElementScrollSize(t){return this._scrollbarState.setScrollSize(t)&&(this._visibilityController.setIsNeeded(this._scrollbarState.isNeeded()),this._shouldRender=!0,this._lazyRender||this.render()),this._shouldRender}_onElementScrollPosition(t){return this._scrollbarState.setScrollPosition(t)&&(this._visibilityController.setIsNeeded(this._scrollbarState.isNeeded()),this._shouldRender=!0,this._lazyRender||this.render()),this._shouldRender}beginReveal(){this._visibilityController.setShouldBeVisible(!0)}beginHide(){this._visibilityController.setShouldBeVisible(!1)}render(){!this._shouldRender||(this._shouldRender=!1,this._renderDomNode(this._scrollbarState.getRectangleLargeSize(),this._scrollbarState.getRectangleSmallSize()),this._updateSlider(this._scrollbarState.getSliderSize(),this._scrollbarState.getArrowSize()+this._scrollbarState.getSliderPosition()))}_domNodeMouseDown(t){t.target===this.domNode.domNode&&this._onMouseDown(t)}delegateMouseDown(t){const r=this.domNode.domNode.getClientRects()[0].top,c=r+this._scrollbarState.getSliderPosition(),l=r+this._scrollbarState.getSliderPosition()+this._scrollbarState.getSliderSize(),a=this._sliderMousePosition(t);c<=a&&a<=l?t.leftButton&&(t.preventDefault(),this._sliderMouseDown(t,()=>{})):this._onMouseDown(t)}_onMouseDown(t){let r,c;if(t.target===this.domNode.domNode&&typeof t.browserEvent.offsetX=="number"&&typeof t.browserEvent.offsetY=="number")r=t.browserEvent.offsetX,c=t.browserEvent.offsetY;else{const a=y.getDomNodePagePosition(this.domNode.domNode);r=t.posx-a.left,c=t.posy-a.top}const l=this._mouseDownRelativePosition(r,c);this._setDesiredScrollPositionNow(this._scrollByPage?this._scrollbarState.getDesiredScrollPositionFromOffsetPaged(l):this._scrollbarState.getDesiredScrollPositionFromOffset(l)),t.leftButton&&(t.preventDefault(),this._sliderMouseDown(t,()=>{}))}_sliderMouseDown(t,r){const c=this._sliderMousePosition(t),l=this._sliderOrthogonalMousePosition(t),a=this._scrollbarState.clone();this.slider.toggleClassName("active",!0),this._mouseMoveMonitor.startMonitoring(t.target,t.buttons,T.standardMouseMoveMerger,s=>{const o=this._sliderOrthogonalMousePosition(s),n=Math.abs(o-l);if(p.isWindows&&n>h){this._setDesiredScrollPositionNow(a.getScrollPosition());return}const u=this._sliderMousePosition(s)-c;this._setDesiredScrollPositionNow(a.getDesiredScrollPositionFromDelta(u))},()=>{this.slider.toggleClassName("active",!1),this._host.onDragEnd(),r()}),this._host.onDragStart()}_setDesiredScrollPositionNow(t){const r={};this.writeScrollPosition(r,t),this._scrollable.setScrollPositionNow(r)}updateScrollbarSize(t){this._updateScrollbarSize(t),this._scrollbarState.setScrollbarSize(t),this._shouldRender=!0,this._lazyRender||this.render()}isNeeded(){return this._scrollbarState.isNeeded()}}e.AbstractScrollbar=g}),define(ee[313],te([0,1,57,211,169,205,27]),function(q,e,y,N,T,I,b){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.HorizontalScrollbar=void 0;class C extends N.AbstractScrollbar{constructor(h,g,i){const t=h.getScrollDimensions(),r=h.getCurrentScrollPosition();super({lazyRender:g.lazyRender,host:i,scrollbarState:new I.ScrollbarState(g.horizontalHasArrows?g.arrowSize:0,g.horizontal===2?0:g.horizontalScrollbarSize,g.vertical===2?0:g.verticalScrollbarSize,t.width,t.scrollWidth,r.scrollLeft),visibility:g.horizontal,extraScrollbarClassName:"horizontal",scrollable:h,scrollByPage:g.scrollByPage});if(g.horizontalHasArrows){const c=(g.arrowSize-T.ARROW_IMG_SIZE)/2,l=(g.horizontalScrollbarSize-T.ARROW_IMG_SIZE)/2;this._createArrow({className:"scra",icon:b.Codicon.scrollbarButtonLeft,top:l,left:c,bottom:void 0,right:void 0,bgWidth:g.arrowSize,bgHeight:g.horizontalScrollbarSize,onActivate:()=>this._host.onMouseWheel(new y.StandardWheelEvent(null,1,0))}),this._createArrow({className:"scra",icon:b.Codicon.scrollbarButtonRight,top:l,left:void 0,bottom:void 0,right:c,bgWidth:g.arrowSize,bgHeight:g.horizontalScrollbarSize,onActivate:()=>this._host.onMouseWheel(new y.StandardWheelEvent(null,-1,0))})}this._createSlider(Math.floor((g.horizontalScrollbarSize-g.horizontalSliderSize)/2),0,void 0,g.horizontalSliderSize)}_updateSlider(h,g){this.slider.setWidth(h),this.slider.setLeft(g)}_renderDomNode(h,g){this.domNode.setWidth(h),this.domNode.setHeight(g),this.domNode.setLeft(0),this.domNode.setBottom(0)}onDidScroll(h){return this._shouldRender=this._onElementScrollSize(h.scrollWidth)||this._shouldRender,this._shouldRender=this._onElementScrollPosition(h.scrollLeft)||this._shouldRender,this._shouldRender=this._onElementSize(h.width)||this._shouldRender,this._shouldRender}_mouseDownRelativePosition(h,g){return h}_sliderMousePosition(h){return h.posx}_sliderOrthogonalMousePosition(h){return h.posy}_updateScrollbarSize(h){this.slider.setHeight(h)}writeScrollPosition(h,g){h.scrollLeft=g}updateOptions(h){this.updateScrollbarSize(h.horizontal===2?0:h.horizontalScrollbarSize),this._scrollbarState.setOppositeScrollbarSize(h.vertical===2?0:h.verticalScrollbarSize),this._visibilityController.setVisibility(h.horizontal),this._scrollByPage=h.scrollByPage}}e.HorizontalScrollbar=C}),define(ee[314],te([0,1,57,211,169,205,27]),function(q,e,y,N,T,I,b){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.VerticalScrollbar=void 0;class C extends N.AbstractScrollbar{constructor(h,g,i){const t=h.getScrollDimensions(),r=h.getCurrentScrollPosition();super({lazyRender:g.lazyRender,host:i,scrollbarState:new I.ScrollbarState(g.verticalHasArrows?g.arrowSize:0,g.vertical===2?0:g.verticalScrollbarSize,0,t.height,t.scrollHeight,r.scrollTop),visibility:g.vertical,extraScrollbarClassName:"vertical",scrollable:h,scrollByPage:g.scrollByPage});if(g.verticalHasArrows){const c=(g.arrowSize-T.ARROW_IMG_SIZE)/2,l=(g.verticalScrollbarSize-T.ARROW_IMG_SIZE)/2;this._createArrow({className:"scra",icon:b.Codicon.scrollbarButtonUp,top:c,left:l,bottom:void 0,right:void 0,bgWidth:g.verticalScrollbarSize,bgHeight:g.arrowSize,onActivate:()=>this._host.onMouseWheel(new y.StandardWheelEvent(null,0,1))}),this._createArrow({className:"scra",icon:b.Codicon.scrollbarButtonDown,top:void 0,left:l,bottom:c,right:void 0,bgWidth:g.verticalScrollbarSize,bgHeight:g.arrowSize,onActivate:()=>this._host.onMouseWheel(new y.StandardWheelEvent(null,0,-1))})}this._createSlider(0,Math.floor((g.verticalScrollbarSize-g.verticalSliderSize)/2),g.verticalSliderSize,void 0)}_updateSlider(h,g){this.slider.setHeight(h),this.slider.setTop(g)}_renderDomNode(h,g){this.domNode.setWidth(g),this.domNode.setHeight(h),this.domNode.setRight(0),this.domNode.setTop(0)}onDidScroll(h){return this._shouldRender=this._onElementScrollSize(h.scrollHeight)||this._shouldRender,this._shouldRender=this._onElementScrollPosition(h.scrollTop)||this._shouldRender,this._shouldRender=this._onElementSize(h.height)||this._shouldRender,this._shouldRender}_mouseDownRelativePosition(h,g){return g}_sliderMousePosition(h){return h.posy}_sliderOrthogonalMousePosition(h){return h.posx}_updateScrollbarSize(h){this.slider.setWidth(h)}writeScrollPosition(h,g){h.scrollTop=g}updateOptions(h){this.updateScrollbarSize(h.vertical===2?0:h.verticalScrollbarSize),this._scrollbarState.setOppositeScrollbarSize(0),this._visibilityController.setVisibility(h.vertical),this._scrollByPage=h.scrollByPage}}e.VerticalScrollbar=C}),define(ee[42],te([0,1,165,48,78,17,8,25]),function(q,e,y,N,T,I,b,C){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.DataUri=e.addTrailingPathSeparator=e.removeTrailingPathSeparator=e.hasTrailingPathSeparator=e.isEqualAuthority=e.isAbsolutePath=e.resolvePath=e.relativePath=e.normalizePath=e.joinPath=e.dirname=e.extname=e.basename=e.basenameOrAuthority=e.getComparisonKey=e.isEqualOrParent=e.isEqual=e.extUri=e.ExtUri=e.originalFSPath=void 0;function p(i){return(0,C.uriToFsPath)(i,!0)}e.originalFSPath=p;class h{constructor(t){this._ignorePathCasing=t}compare(t,r,c=!1){return t===r?0:(0,b.compare)(this.getComparisonKey(t,c),this.getComparisonKey(r,c))}isEqual(t,r,c=!1){return t===r?!0:!t||!r?!1:this.getComparisonKey(t,c)===this.getComparisonKey(r,c)}getComparisonKey(t,r=!1){return t.with({path:this._ignorePathCasing(t)?t.path.toLowerCase():void 0,fragment:r?null:void 0}).toString()}isEqualOrParent(t,r,c=!1){if(t.scheme===r.scheme){if(t.scheme===N.Schemas.file)return y.isEqualOrParent(p(t),p(r),this._ignorePathCasing(t))&&t.query===r.query&&(c||t.fragment===r.fragment);if((0,e.isEqualAuthority)(t.authority,r.authority))return y.isEqualOrParent(t.path,r.path,this._ignorePathCasing(t),"/")&&t.query===r.query&&(c||t.fragment===r.fragment)}return!1}joinPath(t,...r){return C.URI.joinPath(t,...r)}basenameOrAuthority(t){return(0,e.basename)(t)||t.authority}basename(t){return T.posix.basename(t.path)}extname(t){return T.posix.extname(t.path)}dirname(t){if(t.path.length===0)return t;let r;return t.scheme===N.Schemas.file?r=C.URI.file(T.dirname(p(t))).path:(r=T.posix.dirname(t.path),t.authority&&r.length&&r.charCodeAt(0)!==47&&(console.error(`dirname("${t.toString})) resulted in a relative path`),r="/")),t.with({path:r})}normalizePath(t){if(!t.path.length)return t;let r;return t.scheme===N.Schemas.file?r=C.URI.file(T.normalize(p(t))).path:r=T.posix.normalize(t.path),t.with({path:r})}relativePath(t,r){if(t.scheme!==r.scheme||!(0,e.isEqualAuthority)(t.authority,r.authority))return;if(t.scheme===N.Schemas.file){const a=T.relative(p(t),p(r));return I.isWindows?y.toSlashes(a):a}let c=t.path||"/",l=r.path||"/";if(this._ignorePathCasing(t)){let a=0;for(const s=Math.min(c.length,l.length);ay.getRoot(c).length&&c[c.length-1]===r}else{const c=t.path;return c.length>1&&c.charCodeAt(c.length-1)===47&&!/^[a-zA-Z]:(\/$|\\$)/.test(t.fsPath)}}removeTrailingPathSeparator(t,r=T.sep){return(0,e.hasTrailingPathSeparator)(t,r)?t.with({path:t.path.substr(0,t.path.length-1)}):t}addTrailingPathSeparator(t,r=T.sep){let c=!1;if(t.scheme===N.Schemas.file){const l=p(t);c=l!==void 0&&l.length===y.getRoot(l).length&&l[l.length-1]===r}else{r="/";const l=t.path;c=l.length===1&&l.charCodeAt(l.length-1)===47}return!c&&!(0,e.hasTrailingPathSeparator)(t,r)?t.with({path:t.path+"/"}):t}}e.ExtUri=h,e.extUri=new h(()=>!1),e.isEqual=e.extUri.isEqual.bind(e.extUri),e.isEqualOrParent=e.extUri.isEqualOrParent.bind(e.extUri),e.getComparisonKey=e.extUri.getComparisonKey.bind(e.extUri),e.basenameOrAuthority=e.extUri.basenameOrAuthority.bind(e.extUri),e.basename=e.extUri.basename.bind(e.extUri),e.extname=e.extUri.extname.bind(e.extUri),e.dirname=e.extUri.dirname.bind(e.extUri),e.joinPath=e.extUri.joinPath.bind(e.extUri),e.normalizePath=e.extUri.normalizePath.bind(e.extUri),e.relativePath=e.extUri.relativePath.bind(e.extUri),e.resolvePath=e.extUri.resolvePath.bind(e.extUri),e.isAbsolutePath=e.extUri.isAbsolutePath.bind(e.extUri),e.isEqualAuthority=e.extUri.isEqualAuthority.bind(e.extUri),e.hasTrailingPathSeparator=e.extUri.hasTrailingPathSeparator.bind(e.extUri),e.removeTrailingPathSeparator=e.extUri.removeTrailingPathSeparator.bind(e.extUri),e.addTrailingPathSeparator=e.extUri.addTrailingPathSeparator.bind(e.extUri);var g;(function(i){i.META_DATA_LABEL="label",i.META_DATA_DESCRIPTION="description",i.META_DATA_SIZE="size",i.META_DATA_MIME="mime";function t(r){const c=new Map;r.path.substring(r.path.indexOf(";")+1,r.path.lastIndexOf(";")).split(";").forEach(s=>{const[o,n]=s.split(":");o&&n&&c.set(o,n)});const a=r.path.substring(0,r.path.indexOf(";"));return a&&c.set(i.META_DATA_MIME,a),c}i.parseMetaData=t})(g=e.DataUri||(e.DataUri={}))}),define(ee[315],te([0,1,7,730,86,168,57,108,10,23,13,4,70,107,132,2,731,209,48,37,42,8,25]),function(q,e,y,N,T,I,b,C,p,h,g,i,t,r,c,l,a,s,o,n,d,u,f){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.renderMarkdown=void 0;function S(_,L={},w={}){var k;const D=new l.DisposableStore;let M=!1;const O=D.add(new h.CancellationTokenSource),F=(0,I.createElement)(L),R=function(J){let Z;try{Z=(0,s.parse)(decodeURIComponent(J))}catch(ie){}return Z?(Z=(0,n.cloneAndChange)(Z,ie=>{if(_.uris&&_.uris[ie])return f.URI.revive(_.uris[ie])}),encodeURIComponent(JSON.stringify(Z))):J},A=function(J,Z){const ie=_.uris&&_.uris[J];let ne=f.URI.revive(ie);return Z?J.startsWith(o.Schemas.data+":")?J:(ne||(ne=f.URI.parse(J)),o.FileAccess.asBrowserUri(ne).toString(!0)):!ne||f.URI.parse(J).toString()===ne.toString()?J:(ne.query&&(ne=ne.with({query:R(ne.query)})),ne.toString())};let P;const E=new Promise(J=>P=J),B=new a.Renderer;if(B.image=(J,Z,ie)=>{let ne=[],G=[];return J&&({href:J,dimensions:ne}=(0,t.parseHrefAndDimensions)(J),G.push(`src="${J}"`)),ie&&G.push(`alt="${ie}"`),Z&&G.push(`title="${Z}"`),ne.length&&(G=G.concat(ne)),""},B.link=(J,Z,ie)=>(J===ie&&(ie=(0,t.removeMarkdownEscapes)(ie)),J=A(J,!1),L.baseUrl&&(/^\w[\w\d+.-]*:/.test(J)||(J=(0,d.resolvePath)(L.baseUrl,J).toString())),Z=(0,t.removeMarkdownEscapes)(Z),J=(0,t.removeMarkdownEscapes)(J),!J||J.match(/^data:|javascript:/i)||J.match(/^command:/i)&&!_.isTrusted||J.match(/^command:(\/\/\/)?_workbench\.downloadResource/i)?ie:(J=J.replace(/&/g,"&").replace(/ /g,">").replace(/"/g,""").replace(/'/g,"'"),`${ie}`)),B.paragraph=J=>`${J}
`,L.codeBlockRenderer&&(B.code=(J,Z)=>{const ie=L.codeBlockRenderer(Z,J),ne=c.defaultGenerator.nextId();return(0,p.raceCancellation)(Promise.all([ie,E]),O.token).then(G=>{var W;if(!M&&G){const z=F.querySelector(`div[data-code="${ne}"]`);z&&y.reset(z,G[0]),(W=L.asyncRenderCallback)===null||W===void 0||W.call(L)}}).catch(()=>{}),`${(0,u.escape)(J)}`}),L.actionHandler){const J=L.actionHandler.disposables.add(new T.DomEmitter(F,"click")),Z=L.actionHandler.disposables.add(new T.DomEmitter(F,"auxclick"));L.actionHandler.disposables.add(i.Event.any(J.event,Z.event)(ie=>{const ne=new b.StandardMouseEvent(ie);if(!ne.leftButton&&!ne.middleButton)return;let G=ne.target;if(!(G.tagName!=="A"&&(G=G.parentElement,!G||G.tagName!=="A")))try{const W=G.dataset.href;W&&L.actionHandler.callback(W,ne)}catch(W){(0,g.onUnexpectedError)(W)}finally{ne.preventDefault()}}))}_.supportHtml||(w.sanitizer=J=>(_.isTrusted?J.match(/^(]+>)|(<\/\s*span>)$/):void 0)?J:"",w.sanitize=!0,w.silent=!0),w.renderer=B;let V=(k=_.value)!==null&&k!==void 0?k:"";V.length>1e5&&(V=`${V.substr(0,1e5)}\u2026`),_.supportThemeIcons&&(V=(0,r.markdownEscapeEscapedIcons)(V));let j=a.parse(V,w);_.supportThemeIcons&&(j=(0,C.renderLabelWithIcons)(j).map(Z=>typeof Z=="string"?Z:Z.outerHTML).join(""));const Y=new DOMParser().parseFromString(v(_,j),"text/html");if(Y.body.querySelectorAll("img").forEach(J=>{if(J.src){let Z=A(J.src,!0);try{const ie=f.URI.parse(Z);L.baseUrl&&ie.scheme===o.Schemas.file&&(Z=(0,d.resolvePath)(L.baseUrl,Z).toString())}catch(ie){}J.src=Z}}),F.innerHTML=v(_,Y.body.innerHTML),P(),L.asyncRenderCallback)for(const J of F.getElementsByTagName("img")){const Z=D.add(y.addDisposableListener(J,"load",()=>{Z.dispose(),L.asyncRenderCallback()}))}return{element:F,dispose:()=>{M=!0,O.cancel(),D.dispose()}}}e.renderMarkdown=S;function v(_,L){const{config:w,allowedSchemes:k}=m(_);N.addHook("uponSanitizeAttribute",(M,O)=>{if(O.attrName==="style"||O.attrName==="class"){if(M.tagName==="SPAN"){if(O.attrName==="style"){O.keepAttr=/^(color\:#[0-9a-fA-F]+;)?(background-color\:#[0-9a-fA-F]+;)?$/.test(O.attrValue);return}else if(O.attrName==="class"){O.keepAttr=/^codicon codicon-[a-z\-]+( codicon-modifier-[a-z\-]+)?$/.test(O.attrValue);return}}O.keepAttr=!1;return}});const D=document.createElement("a");N.addHook("afterSanitizeAttributes",M=>{for(const O of["href","src"])M.hasAttribute(O)&&(D.href=M.getAttribute(O),k.includes(D.protocol.replace(/:$/,""))||M.removeAttribute(O))});try{return N.sanitize(L,Object.assign(Object.assign({},w),{RETURN_TRUSTED_TYPE:!0}))}finally{N.removeHook("uponSanitizeAttribute"),N.removeHook("afterSanitizeAttributes")}}function m(_){const L=[o.Schemas.http,o.Schemas.https,o.Schemas.mailto,o.Schemas.data,o.Schemas.file,o.Schemas.vscodeFileResource,o.Schemas.vscodeRemote,o.Schemas.vscodeRemoteResource];return _.isTrusted&&L.push(o.Schemas.command),{config:{ALLOWED_TAGS:["ul","li","p","b","i","code","blockquote","ol","h1","h2","h3","h4","h5","h6","hr","em","pre","table","thead","tbody","tr","th","td","div","del","a","strong","br","img","span"],ALLOWED_ATTR:["href","data-href","target","title","src","alt","class","style","data-code","width","height","align"],ALLOW_UNKNOWN_PROTOCOLS:!0},allowedSchemes:L}}}),define(ee[170],te([0,1,165,48,17,42,25]),function(q,e,y,N,T,I,b){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.normalizeDriveLetter=e.getBaseLabel=void 0;function C(g){if(!g)return;typeof g=="string"&&(g=b.URI.file(g));const i=(0,I.basename)(g)||(g.scheme===N.Schemas.file?g.fsPath:g.path);return T.isWindows&&(0,y.isRootOrDriveLetter)(i)?p(i):i}e.getBaseLabel=C;function p(g,i){return(0,y.hasDriveLetter)(g,i)?g.charAt(0).toUpperCase()+g.slice(1):g}e.normalizeDriveLetter=p;let h=Object.create(null)}),define(ee[109],te([0,1,208,48,78,42,8]),function(q,e,y,N,T,I,b){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.guessMimeTypes=e.clearTextMimes=e.registerTextMime=e.Mimes=void 0;var C;(function(s){s.text="text/plain",s.binary="application/octet-stream",s.unknown="application/unknown",s.markdown="text/markdown",s.latex="text/latex"})(C=e.Mimes||(e.Mimes={}));let p=[],h=[],g=[];function i(s,o=!1){const n=t(s);p.push(n),n.userConfigured?g.push(n):h.push(n),o&&!n.userConfigured&&p.forEach(d=>{d.mime===n.mime||d.userConfigured||(n.extension&&d.extension===n.extension&&console.warn(`Overwriting extension <<${n.extension}>> to now point to mime <<${n.mime}>>`),n.filename&&d.filename===n.filename&&console.warn(`Overwriting filename <<${n.filename}>> to now point to mime <<${n.mime}>>`),n.filepattern&&d.filepattern===n.filepattern&&console.warn(`Overwriting filepattern <<${n.filepattern}>> to now point to mime <<${n.mime}>>`),n.firstline&&d.firstline===n.firstline&&console.warn(`Overwriting firstline <<${n.firstline}>> to now point to mime <<${n.mime}>>`))})}e.registerTextMime=i;function t(s){return{id:s.id,mime:s.mime,filename:s.filename,extension:s.extension,filepattern:s.filepattern,firstline:s.firstline,userConfigured:s.userConfigured,filenameLowercase:s.filename?s.filename.toLowerCase():void 0,extensionLowercase:s.extension?s.extension.toLowerCase():void 0,filepatternLowercase:s.filepattern?(0,y.parse)(s.filepattern.toLowerCase()):void 0,filepatternOnPath:s.filepattern?s.filepattern.indexOf(T.posix.sep)>=0:!1}}function r(s){s?(p=p.filter(o=>!o.userConfigured),g=[]):(p=[],h=[],g=[])}e.clearTextMimes=r;function c(s,o){let n;if(s)switch(s.scheme){case N.Schemas.file:n=s.fsPath;break;case N.Schemas.data:n=I.DataUri.parseMetaData(s).get(I.DataUri.META_DATA_LABEL);break;default:n=s.path}if(!n)return[C.unknown];n=n.toLowerCase();const d=(0,T.basename)(n),u=l(n,d,g);if(u)return[u,C.text];const f=l(n,d,h);if(f)return[f,C.text];if(o){const S=a(o);if(S)return[S,C.text]}return[C.unknown]}e.guessMimeTypes=c;function l(s,o,n){var d;let u=null,f=null,S=null;for(let v=n.length-1;v>=0;v--){const m=n[v];if(o===m.filenameLowercase){u=m;break}if(m.filepattern&&(!f||m.filepattern.length>f.filepattern.length)){const _=m.filepatternOnPath?s:o;((d=m.filepatternLowercase)===null||d===void 0?void 0:d.call(m,_))&&(f=m)}m.extension&&(!S||m.extension.length>S.extension.length)&&o.endsWith(m.extensionLowercase)&&(S=m)}return u?u.mime:f?f.mime:S?S.mime:null}function a(s){if((0,b.startsWithUTF8BOM)(s)&&(s=s.substr(1)),s.length>0)for(let o=p.length-1;o>=0;o--){const n=p[o];if(!n.firstline)continue;const d=s.match(n.firstline);if(d&&d.length>0)return n.mime}return null}}),define(ee[171],te([0,1,109]),function(q,e,y){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.StaticDND=e.DragAndDropData=e.DataTransfers=void 0,e.DataTransfers={RESOURCES:"ResourceURLs",DOWNLOAD_URL:"DownloadURL",FILES:"Files",TEXT:y.Mimes.text,TERMINALS:"Terminals"};class N{constructor(I){this.data=I}update(){}getData(){return this.data}}e.DragAndDropData=N,e.StaticDND={CurrentDragAndDropData:void 0}}),define(ee[316],te([0,1]),function(q,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.generateUuid=void 0;const y=new Uint8Array(16),N=[];for(let b=0;b<256;b++)N.push(b.toString(16).padStart(2,"0"));let T;typeof crypto=="object"&&typeof crypto.getRandomValues=="function"?T=crypto.getRandomValues.bind(crypto):T=function(b){for(let C=0;C{this._pendingReplies[_]={resolve:L,reject:w},this._send(new i(this._workerId,_,v,m))})}listen(v,m){let _=null;const L=new N.Emitter({onFirstListenerAdd:()=>{_=String(++this._lastSentReq),this._pendingEmitters.set(_,L),this._send(new r(this._workerId,_,v,m))},onLastListenerRemove:()=>{this._pendingEmitters.delete(_),this._send(new l(this._workerId,_)),_=null}});return L.event}handleMessage(v){!v||!v.vsWorker||this._workerId!==-1&&v.vsWorker!==this._workerId||this._handleMessage(v)}_handleMessage(v){switch(v.type){case 1:return this._handleReplyMessage(v);case 0:return this._handleRequestMessage(v);case 2:return this._handleSubscribeEventMessage(v);case 3:return this._handleEventMessage(v);case 4:return this._handleUnsubscribeEventMessage(v)}}_handleReplyMessage(v){if(!this._pendingReplies[v.seq]){console.warn("Got reply to unknown seq");return}let m=this._pendingReplies[v.seq];if(delete this._pendingReplies[v.seq],v.err){let _=v.err;v.err.$isError&&(_=new Error,_.name=v.err.name,_.message=v.err.message,_.stack=v.err.stack),m.reject(_);return}m.resolve(v.res)}_handleRequestMessage(v){let m=v.req;this._handler.handleMessage(v.method,v.args).then(L=>{this._send(new t(this._workerId,m,L,void 0))},L=>{L.detail instanceof Error&&(L.detail=(0,y.transformErrorForSerialization)(L.detail)),this._send(new t(this._workerId,m,void 0,(0,y.transformErrorForSerialization)(L)))})}_handleSubscribeEventMessage(v){const m=v.req,_=this._handler.handleEvent(v.eventName,v.arg)(L=>{this._send(new c(this._workerId,m,L))});this._pendingEvents.set(m,_)}_handleEventMessage(v){if(!this._pendingEmitters.has(v.req)){console.warn("Got event for unknown req");return}this._pendingEmitters.get(v.req).fire(v.event)}_handleUnsubscribeEventMessage(v){if(!this._pendingEvents.has(v.req)){console.warn("Got unsubscribe for unknown req");return}this._pendingEvents.get(v.req).dispose(),this._pendingEvents.delete(v.req)}_send(v){let m=[];if(v.type===0)for(let _=0;_{this._protocol.handleMessage(O)},O=>{L&&L(O)})),this._protocol=new a({sendMessage:(O,F)=>{this._worker.postMessage(O,F)},handleMessage:(O,F)=>{if(typeof _[O]!="function")return Promise.reject(new Error("Missing method "+O+" on main thread host."));try{return Promise.resolve(_[O].apply(_,F))}catch(R){return Promise.reject(R)}},handleEvent:(O,F)=>{if(n(O)){const R=_[O].call(_,F);if(typeof R!="function")throw new Error(`Missing dynamic event ${O} on main thread host.`);return R}if(o(O)){const R=_[O];if(typeof R!="function")throw new Error(`Missing event ${O} on main thread host.`);return R}throw new Error(`Malformed event name ${O}`)}}),this._protocol.setWorkerId(this._worker.getId());let w=null;typeof I.globals.require!="undefined"&&typeof I.globals.require.getConfig=="function"?w=I.globals.require.getConfig():typeof I.globals.requirejs!="undefined"&&(w=I.globals.requirejs.s.contexts._.config);const k=b.getAllMethodNames(_);this._onModuleLoaded=this._protocol.sendMessage(p,[this._worker.getId(),JSON.parse(JSON.stringify(w)),m,k]);const D=(O,F)=>this._request(O,F),M=(O,F)=>this._protocol.listen(O,F);this._lazyProxy=new Promise((O,F)=>{L=F,this._onModuleLoaded.then(R=>{O(d(R,D,M))},R=>{F(R),this._onError("Worker failed to load "+m,R)})})}getProxyObject(){return this._lazyProxy}_request(v,m){return new Promise((_,L)=>{this._onModuleLoaded.then(()=>{this._protocol.sendMessage(v,m).then(_,L)},L)})}_onError(v,m){console.error(v),console.info(m)}}e.SimpleWorkerClient=s;function o(S){return S[0]==="o"&&S[1]==="n"&&C.isUpperAsciiLetter(S.charCodeAt(2))}function n(S){return/^onDynamic/.test(S)&&C.isUpperAsciiLetter(S.charCodeAt(9))}function d(S,v,m){const _=k=>function(){const D=Array.prototype.slice.call(arguments,0);return v(k,D)},L=k=>function(D){return m(k,D)};let w={};for(const k of S){if(n(k)){w[k]=L(k);continue}if(o(k)){w[k]=m(k,void 0);continue}w[k]=_(k)}return w}class u{constructor(v,m){this._requestHandlerFactory=m,this._requestHandler=null,this._protocol=new a({sendMessage:(_,L)=>{v(_,L)},handleMessage:(_,L)=>this._handleMessage(_,L),handleEvent:(_,L)=>this._handleEvent(_,L)})}onmessage(v){this._protocol.handleMessage(v)}_handleMessage(v,m){if(v===p)return this.initialize(m[0],m[1],m[2],m[3]);if(!this._requestHandler||typeof this._requestHandler[v]!="function")return Promise.reject(new Error("Missing requestHandler or method: "+v));try{return Promise.resolve(this._requestHandler[v].apply(this._requestHandler,m))}catch(_){return Promise.reject(_)}}_handleEvent(v,m){if(!this._requestHandler)throw new Error("Missing requestHandler");if(n(v)){const _=this._requestHandler[v].call(this._requestHandler,m);if(typeof _!="function")throw new Error(`Missing dynamic event ${v} on request handler.`);return _}if(o(v)){const _=this._requestHandler[v];if(typeof _!="function")throw new Error(`Missing event ${v} on request handler.`);return _}throw new Error(`Malformed event name ${v}`)}initialize(v,m,_,L){this._protocol.setWorkerId(v);const D=d(L,(M,O)=>this._protocol.sendMessage(M,O),(M,O)=>this._protocol.listen(M,O));return this._requestHandlerFactory?(this._requestHandler=this._requestHandlerFactory(D),Promise.resolve(b.getAllMethodNames(this._requestHandler))):(m&&(typeof m.baseUrl!="undefined"&&delete m.baseUrl,typeof m.paths!="undefined"&&typeof m.paths.vs!="undefined"&&delete m.paths.vs,typeof m.trustedTypesPolicy!==void 0&&delete m.trustedTypesPolicy,m.catchError=!0,I.globals.require.config(m)),new Promise((M,O)=>{(I.globals.require||q)([_],R=>{if(this._requestHandler=R.create(D),!this._requestHandler){O(new Error("No RequestHandler!"));return}M(b.getAllMethodNames(this._requestHandler))},O)}))}}e.SimpleWorkerServer=u;function f(S){return new u(S,null)}e.create=f}),define(ee[213],te([0,1]),function(q,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ItemActivation=e.QuickInputHideReason=e.NO_KEY_MODS=void 0,e.NO_KEY_MODS={ctrlCmd:!1,alt:!1};var y;(function(T){T[T.Blur=1]="Blur",T[T.Gesture=2]="Gesture",T[T.Other=3]="Other"})(y=e.QuickInputHideReason||(e.QuickInputHideReason={}));var N;(function(T){T[T.NONE=0]="NONE",T[T.FIRST=1]="FIRST",T[T.SECOND=2]="SECOND",T[T.LAST=3]="LAST"})(N=e.ItemActivation||(e.ItemActivation={}))}),define(ee[317],te([0,1,10,4,2,20]),function(q,e,y,N,T,I){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.InMemoryStorageDatabase=e.Storage=void 0;var b;(function(h){h[h.None=0]="None",h[h.Initialized=1]="Initialized",h[h.Closed=2]="Closed"})(b||(b={}));class C extends T.Disposable{constructor(g,i=Object.create(null)){super();this.database=g,this.options=i,this._onDidChangeStorage=this._register(new N.Emitter),this.onDidChangeStorage=this._onDidChangeStorage.event,this.state=b.None,this.cache=new Map,this.flushDelayer=new y.ThrottledDelayer(C.DEFAULT_FLUSH_DELAY),this.pendingDeletes=new Set,this.pendingInserts=new Map,this.whenFlushedCallbacks=[],this.registerListeners()}registerListeners(){this._register(this.database.onDidChangeItemsExternal(g=>this.onDidChangeItemsExternal(g)))}onDidChangeItemsExternal(g){var i,t;(i=g.changed)===null||i===void 0||i.forEach((r,c)=>this.accept(c,r)),(t=g.deleted)===null||t===void 0||t.forEach(r=>this.accept(r,void 0))}accept(g,i){if(this.state===b.Closed)return;let t=!1;(0,I.isUndefinedOrNull)(i)?t=this.cache.delete(g):this.cache.get(g)!==i&&(this.cache.set(g,i),t=!0),t&&this._onDidChangeStorage.fire(g)}get(g,i){const t=this.cache.get(g);return(0,I.isUndefinedOrNull)(t)?i:t}getBoolean(g,i){const t=this.get(g);return(0,I.isUndefinedOrNull)(t)?i:t==="true"}getNumber(g,i){const t=this.get(g);return(0,I.isUndefinedOrNull)(t)?i:parseInt(t,10)}set(g,i){return Ae(this,void 0,void 0,function*(){if(this.state===b.Closed)return;if((0,I.isUndefinedOrNull)(i))return this.delete(g);const t=String(i);if(this.cache.get(g)!==t)return this.cache.set(g,t),this.pendingInserts.set(g,t),this.pendingDeletes.delete(g),this._onDidChangeStorage.fire(g),this.doFlush()})}delete(g){return Ae(this,void 0,void 0,function*(){if(!(this.state===b.Closed||!this.cache.delete(g)))return this.pendingDeletes.has(g)||this.pendingDeletes.add(g),this.pendingInserts.delete(g),this._onDidChangeStorage.fire(g),this.doFlush()})}get hasPending(){return this.pendingInserts.size>0||this.pendingDeletes.size>0}flushPending(){return Ae(this,void 0,void 0,function*(){if(!this.hasPending)return;const g={insert:this.pendingInserts,delete:this.pendingDeletes};return this.pendingDeletes=new Set,this.pendingInserts=new Map,this.database.updateItems(g).finally(()=>{var i;if(!this.hasPending)for(;this.whenFlushedCallbacks.length;)(i=this.whenFlushedCallbacks.pop())===null||i===void 0||i()})})}doFlush(g){return Ae(this,void 0,void 0,function*(){return this.flushDelayer.trigger(()=>this.flushPending(),g)})}dispose(){this.flushDelayer.dispose(),super.dispose()}}e.Storage=C,C.DEFAULT_FLUSH_DELAY=100;class p{constructor(){this.onDidChangeItemsExternal=N.Event.None,this.items=new Map}updateItems(g){return Ae(this,void 0,void 0,function*(){g.insert&&g.insert.forEach((i,t)=>this.items.set(t,i)),g.delete&&g.delete.forEach(i=>this.items.delete(i))})}}e.InMemoryStorageDatabase=p}),define(ee[318],te([0,1,17,212]),function(q,e,y,N){"use strict";var T;Object.defineProperty(e,"__esModule",{value:!0}),e.DefaultWorkerFactory=e.getWorkerBootstrapUrl=void 0;const I=(T=window.trustedTypes)===null||T===void 0?void 0:T.createPolicy("defaultWorkerFactory",{createScriptURL:i=>i});function b(i,t){if(y.globals.MonacoEnvironment){if(typeof y.globals.MonacoEnvironment.getWorker=="function")return y.globals.MonacoEnvironment.getWorker(i,t);if(typeof y.globals.MonacoEnvironment.getWorkerUrl=="function"){const r=y.globals.MonacoEnvironment.getWorkerUrl(i,t);return new Worker(I?I.createScriptURL(r):r,{name:t})}}if(typeof q=="function"){const r=q.toUrl("./"+i),c=C(r,t);return new Worker(I?I.createScriptURL(c):c,{name:t})}throw new Error("You must define a function MonacoEnvironment.getWorkerUrl or MonacoEnvironment.getWorker")}function C(i,t){if(/^((http:)|(https:)|(file:))/.test(i)&&i.substring(0,self.origin.length)!==self.origin){const r="vs/base/worker/defaultWorkerFactory.js",c=q.toUrl(r).slice(0,-r.length),l=`/*${t}*/self.MonacoEnvironment={baseUrl: '${c}'};const ttPolicy = self.trustedTypes?.createPolicy('defaultWorkerFactory', { createScriptURL: value => value });importScripts(ttPolicy?.createScriptURL('${i}') ?? '${i}');/*${t}*/`,a=new Blob([l],{type:"application/javascript"});return URL.createObjectURL(a)}return i+"#"+t}e.getWorkerBootstrapUrl=C;function p(i){return typeof i.then=="function"}class h{constructor(t,r,c,l,a){this.id=r;const s=b("workerMain.js",c);p(s)?this.worker=s:this.worker=Promise.resolve(s),this.postMessage(t,[]),this.worker.then(o=>{o.onmessage=function(n){l(n.data)},o.onmessageerror=a,typeof o.addEventListener=="function"&&o.addEventListener("error",a)})}getId(){return this.id}postMessage(t,r){this.worker&&this.worker.then(c=>c.postMessage(t,r))}dispose(){this.worker&&this.worker.then(t=>t.terminate()),this.worker=null}}class g{constructor(t){this._label=t,this._webWorkerFailedBeforeError=!1}create(t,r,c){let l=++g.LAST_WORKER_ID;if(this._webWorkerFailedBeforeError)throw this._webWorkerFailedBeforeError;return new h(t,l,this._label||"anonymous"+l,r,a=>{(0,N.logOnceWebWorkerWarning)(a),this._webWorkerFailedBeforeError=a,c(a)})}}e.DefaultWorkerFactory=g,g.LAST_WORKER_ID=0}),define(ee[214],te([11]),{}),define(ee[319],te([11]),{}),define(ee[44],te([0,1,7,17,319]),function(q,e,y,N){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.status=e.alert=e.setARIAContainer=void 0;const T=2e4;let I,b,C,p,h;function g(c){I=document.createElement("div"),I.className="monaco-aria-container";const l=()=>{const s=document.createElement("div");return s.className="monaco-alert",s.setAttribute("role","alert"),s.setAttribute("aria-atomic","true"),I.appendChild(s),s};b=l(),C=l();const a=()=>{const s=document.createElement("div");return s.className="monaco-status",s.setAttribute("role","complementary"),s.setAttribute("aria-live","polite"),s.setAttribute("aria-atomic","true"),I.appendChild(s),s};p=a(),h=a(),c.appendChild(I)}e.setARIAContainer=g;function i(c){!I||(b.textContent!==c?(y.clearNode(C),r(b,c)):(y.clearNode(b),r(C,c)))}e.alert=i;function t(c){!I||(N.isMacintosh?i(c):p.textContent!==c?(y.clearNode(h),r(p,c)):(y.clearNode(p),r(h,c)))}e.status=t;function r(c,l){y.clearNode(c),l.length>T&&(l=l.substr(0,T)),c.textContent=l,c.style.visibility="hidden",c.style.visibility="visible"}}),define(ee[320],te([11]),{}),define(ee[321],te([0,1,7,46,58,108,29,4,2,37,320]),function(q,e,y,N,T,I,b,C,p,h){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Button=void 0;const g={buttonBackground:b.Color.fromHex("#0E639C"),buttonHoverBackground:b.Color.fromHex("#006BB3"),buttonForeground:b.Color.white};class i extends p.Disposable{constructor(r,c){super();this._onDidClick=this._register(new C.Emitter),this.options=c||Object.create(null),(0,h.mixin)(this.options,g,!1),this.buttonForeground=this.options.buttonForeground,this.buttonBackground=this.options.buttonBackground,this.buttonHoverBackground=this.options.buttonHoverBackground,this.buttonSecondaryForeground=this.options.buttonSecondaryForeground,this.buttonSecondaryBackground=this.options.buttonSecondaryBackground,this.buttonSecondaryHoverBackground=this.options.buttonSecondaryHoverBackground,this.buttonBorder=this.options.buttonBorder,this._element=document.createElement("a"),this._element.classList.add("monaco-button"),this._element.tabIndex=0,this._element.setAttribute("role","button"),r.appendChild(this._element),this._register(T.Gesture.addTarget(this._element)),[y.EventType.CLICK,T.EventType.Tap].forEach(l=>{this._register((0,y.addDisposableListener)(this._element,l,a=>{if(!this.enabled){y.EventHelper.stop(a);return}this._onDidClick.fire(a)}))}),this._register((0,y.addDisposableListener)(this._element,y.EventType.KEY_DOWN,l=>{const a=new N.StandardKeyboardEvent(l);let s=!1;this.enabled&&(a.equals(3)||a.equals(10))?(this._onDidClick.fire(l),s=!0):a.equals(9)&&(this._element.blur(),s=!0),s&&y.EventHelper.stop(a,!0)})),this._register((0,y.addDisposableListener)(this._element,y.EventType.MOUSE_OVER,l=>{this._element.classList.contains("disabled")||this.setHoverBackground()})),this._register((0,y.addDisposableListener)(this._element,y.EventType.MOUSE_OUT,l=>{this.applyStyles()})),this.focusTracker=this._register((0,y.trackFocus)(this._element)),this._register(this.focusTracker.onDidFocus(()=>this.setHoverBackground())),this._register(this.focusTracker.onDidBlur(()=>this.applyStyles())),this.applyStyles()}get onDidClick(){return this._onDidClick.event}setHoverBackground(){let r;this.options.secondary?r=this.buttonSecondaryHoverBackground?this.buttonSecondaryHoverBackground.toString():null:r=this.buttonHoverBackground?this.buttonHoverBackground.toString():null,r&&(this._element.style.backgroundColor=r)}style(r){this.buttonForeground=r.buttonForeground,this.buttonBackground=r.buttonBackground,this.buttonHoverBackground=r.buttonHoverBackground,this.buttonSecondaryForeground=r.buttonSecondaryForeground,this.buttonSecondaryBackground=r.buttonSecondaryBackground,this.buttonSecondaryHoverBackground=r.buttonSecondaryHoverBackground,this.buttonBorder=r.buttonBorder,this.applyStyles()}applyStyles(){if(this._element){let r,c;this.options.secondary?(c=this.buttonSecondaryForeground?this.buttonSecondaryForeground.toString():"",r=this.buttonSecondaryBackground?this.buttonSecondaryBackground.toString():""):(c=this.buttonForeground?this.buttonForeground.toString():"",r=this.buttonBackground?this.buttonBackground.toString():"");const l=this.buttonBorder?this.buttonBorder.toString():"";this._element.style.color=c,this._element.style.backgroundColor=r,this._element.style.borderWidth=l?"1px":"",this._element.style.borderStyle=l?"solid":"",this._element.style.borderColor=l}}get element(){return this._element}set label(r){this._element.classList.add("monaco-text-button"),this.options.supportIcons?(0,y.reset)(this._element,...(0,I.renderLabelWithIcons)(r)):this._element.textContent=r,typeof this.options.title=="string"?this._element.title=this.options.title:this.options.title&&(this._element.title=r)}set enabled(r){r?(this._element.classList.remove("disabled"),this._element.setAttribute("aria-disabled",String(!1)),this._element.tabIndex=0):(this._element.classList.add("disabled"),this._element.setAttribute("aria-disabled",String(!0)))}get enabled(){return!this._element.classList.contains("disabled")}}e.Button=i}),define(ee[322],te([11]),{}),define(ee[172],te([0,1,54,27,29,4,322]),function(q,e,y,N,T,I){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Checkbox=void 0;const b={inputActiveOptionBorder:T.Color.fromHex("#007ACC00"),inputActiveOptionForeground:T.Color.fromHex("#FFFFFF"),inputActiveOptionBackground:T.Color.fromHex("#0E639C50")};class C extends y.Widget{constructor(h){super();this._onChange=this._register(new I.Emitter),this.onChange=this._onChange.event,this._onKeyDown=this._register(new I.Emitter),this.onKeyDown=this._onKeyDown.event,this._opts=Object.assign(Object.assign({},b),h),this._checked=this._opts.isChecked;const g=["monaco-custom-checkbox"];this._opts.icon&&g.push(...N.CSSIcon.asClassNameArray(this._opts.icon)),this._opts.actionClassName&&g.push(...this._opts.actionClassName.split(" ")),this._checked&&g.push("checked"),this.domNode=document.createElement("div"),this.domNode.title=this._opts.title,this.domNode.classList.add(...g),this._opts.notFocusable||(this.domNode.tabIndex=0),this.domNode.setAttribute("role","checkbox"),this.domNode.setAttribute("aria-checked",String(this._checked)),this.domNode.setAttribute("aria-label",this._opts.title),this.applyStyles(),this.onclick(this.domNode,i=>{this.checked=!this._checked,this._onChange.fire(!1),i.preventDefault()}),this.ignoreGesture(this.domNode),this.onkeydown(this.domNode,i=>{if(i.keyCode===10||i.keyCode===3){this.checked=!this._checked,this._onChange.fire(!0),i.preventDefault();return}this._onKeyDown.fire(i)})}get enabled(){return this.domNode.getAttribute("aria-disabled")!=="true"}focus(){this.domNode.focus()}get checked(){return this._checked}set checked(h){this._checked=h,this.domNode.setAttribute("aria-checked",String(this._checked)),this.domNode.classList.toggle("checked",this._checked),this.applyStyles()}width(){return 2+2+2+16}style(h){h.inputActiveOptionBorder&&(this._opts.inputActiveOptionBorder=h.inputActiveOptionBorder),h.inputActiveOptionForeground&&(this._opts.inputActiveOptionForeground=h.inputActiveOptionForeground),h.inputActiveOptionBackground&&(this._opts.inputActiveOptionBackground=h.inputActiveOptionBackground),this.applyStyles()}applyStyles(){this.domNode&&(this.domNode.style.borderColor=this._checked&&this._opts.inputActiveOptionBorder?this._opts.inputActiveOptionBorder.toString():"",this.domNode.style.color=this._checked&&this._opts.inputActiveOptionForeground?this._opts.inputActiveOptionForeground.toString():"inherit",this.domNode.style.backgroundColor=this._checked&&this._opts.inputActiveOptionBackground?this._opts.inputActiveOptionBackground.toString():"")}enable(){this.domNode.setAttribute("aria-disabled",String(!1))}disable(){this.domNode.setAttribute("aria-disabled",String(!0))}}e.Checkbox=C}),define(ee[323],te([11]),{}),define(ee[324],te([11]),{}),define(ee[137],te([0,1,27,323,324]),function(q,e,y){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.formatRule=void 0;function N(T){let I=T.definition;for(;I instanceof y.Codicon;)I=I.definition;return`.codicon-${T.id}:before { content: '${I.fontCharacter}'; }`}e.formatRule=N}),define(ee[325],te([11]),{}),define(ee[215],te([0,1,164,7,2,17,133,325]),function(q,e,y,N,T,I,b){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ContextView=e.layout=e.LayoutAnchorMode=void 0;var C;(function(i){i[i.AVOID=0]="AVOID",i[i.ALIGN=1]="ALIGN"})(C=e.LayoutAnchorMode||(e.LayoutAnchorMode={}));function p(i,t,r){const c=r.mode===C.ALIGN?r.offset:r.offset+r.size,l=r.mode===C.ALIGN?r.offset+r.size:r.offset;return r.position===0?t<=i-c?c:t<=l?l-t:Math.max(i-t,0):t<=l?l-t:t<=i-c?c:0}e.layout=p;class h extends T.Disposable{constructor(t,r){super();this.container=null,this.delegate=null,this.toDisposeOnClean=T.Disposable.None,this.toDisposeOnSetContainer=T.Disposable.None,this.shadowRoot=null,this.shadowRootHostElement=null,this.view=N.$(".context-view"),this.useFixedPosition=!1,this.useShadowDOM=!1,N.hide(this.view),this.setContainer(t,r),this._register((0,T.toDisposable)(()=>this.setContainer(null,1)))}setContainer(t,r){var c;if(this.container&&(this.toDisposeOnSetContainer.dispose(),this.shadowRoot?(this.shadowRoot.removeChild(this.view),this.shadowRoot=null,(c=this.shadowRootHostElement)===null||c===void 0||c.remove(),this.shadowRootHostElement=null):this.container.removeChild(this.view),this.container=null),t){if(this.container=t,this.useFixedPosition=r!==1,this.useShadowDOM=r===3,this.useShadowDOM){this.shadowRootHostElement=N.$(".shadow-root-host"),this.container.appendChild(this.shadowRootHostElement),this.shadowRoot=this.shadowRootHostElement.attachShadow({mode:"open"});const a=document.createElement("style");a.textContent=g,this.shadowRoot.appendChild(a),this.shadowRoot.appendChild(this.view),this.shadowRoot.appendChild(N.$("slot"))}else this.container.appendChild(this.view);const l=new T.DisposableStore;h.BUBBLE_UP_EVENTS.forEach(a=>{l.add(N.addStandardDisposableListener(this.container,a,s=>{this.onDOMEvent(s,!1)}))}),h.BUBBLE_DOWN_EVENTS.forEach(a=>{l.add(N.addStandardDisposableListener(this.container,a,s=>{this.onDOMEvent(s,!0)},!0))}),this.toDisposeOnSetContainer=l}}show(t){this.isVisible()&&this.hide(),N.clearNode(this.view),this.view.className="context-view",this.view.style.top="0px",this.view.style.left="0px",this.view.style.zIndex="2500",this.view.style.position=this.useFixedPosition?"fixed":"absolute",N.show(this.view),this.toDisposeOnClean=t.render(this.view)||T.Disposable.None,this.delegate=t,this.doLayout(),this.delegate.focus&&this.delegate.focus()}getViewElement(){return this.view}layout(){if(!!this.isVisible()){if(this.delegate.canRelayout===!1&&!(I.isIOS&&y.BrowserFeatures.pointerEvents)){this.hide();return}this.delegate.layout&&this.delegate.layout(),this.doLayout()}}doLayout(){if(!this.isVisible())return;let t=this.delegate.getAnchor(),r;if(N.isHTMLElement(t)){let f=N.getDomNodePagePosition(t);r={top:f.top,left:f.left,width:f.width,height:f.height}}else r={top:t.y,left:t.x,width:t.width||1,height:t.height||2};const c=N.getTotalWidth(this.view),l=N.getTotalHeight(this.view),a=this.delegate.anchorPosition||0,s=this.delegate.anchorAlignment||0,o=this.delegate.anchorAxisAlignment||0;let n,d;if(o===0){const f={offset:r.top-window.pageYOffset,size:r.height,position:a===0?0:1},S={offset:r.left,size:r.width,position:s===0?0:1,mode:C.ALIGN};n=p(window.innerHeight,l,f)+window.pageYOffset,b.Range.intersects({start:n,end:n+l},{start:f.offset,end:f.offset+f.size})&&(S.mode=C.AVOID),d=p(window.innerWidth,c,S)}else{const f={offset:r.left,size:r.width,position:s===0?0:1},S={offset:r.top,size:r.height,position:a===0?0:1,mode:C.ALIGN};d=p(window.innerWidth,c,f),b.Range.intersects({start:d,end:d+c},{start:f.offset,end:f.offset+f.size})&&(S.mode=C.AVOID),n=p(window.innerHeight,l,S)+window.pageYOffset}this.view.classList.remove("top","bottom","left","right"),this.view.classList.add(a===0?"bottom":"top"),this.view.classList.add(s===0?"left":"right"),this.view.classList.toggle("fixed",this.useFixedPosition);const u=N.getDomNodePagePosition(this.container);this.view.style.top=`${n-(this.useFixedPosition?N.getDomNodePagePosition(this.view).top:u.top)}px`,this.view.style.left=`${d-(this.useFixedPosition?N.getDomNodePagePosition(this.view).left:u.left)}px`,this.view.style.width="initial"}hide(t){const r=this.delegate;this.delegate=null,(r==null?void 0:r.onHide)&&r.onHide(t),this.toDisposeOnClean.dispose(),N.hide(this.view)}isVisible(){return!!this.delegate}onDOMEvent(t,r){this.delegate&&(this.delegate.onDOMEvent?this.delegate.onDOMEvent(t,document.activeElement):r&&!N.isAncestor(t.target,this.container)&&this.hide())}dispose(){this.hide(),super.dispose()}}e.ContextView=h,h.BUBBLE_UP_EVENTS=["click","keydown","focus","blur"],h.BUBBLE_DOWN_EVENTS=["click"];let g=`
:host {
all: initial; /* 1st rule so subsequent properties are reset. */
}
@font-face {
font-family: "codicon";
font-display: block;
src: url("./codicon.ttf?5d4d76ab2ce5108968ad644d591a16a6") format("truetype");
}
.codicon[class*='codicon-'] {
font: normal normal normal 16px/1 codicon;
display: inline-block;
text-decoration: none;
text-rendering: auto;
text-align: center;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
user-select: none;
-webkit-user-select: none;
-ms-user-select: none;
}
:host {
font-family: -apple-system, BlinkMacSystemFont, "Segoe WPC", "Segoe UI", "HelveticaNeue-Light", system-ui, "Ubuntu", "Droid Sans", sans-serif;
}
:host-context(.mac) { font-family: -apple-system, BlinkMacSystemFont, sans-serif; }
:host-context(.mac:lang(zh-Hans)) { font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", sans-serif; }
:host-context(.mac:lang(zh-Hant)) { font-family: -apple-system, BlinkMacSystemFont, "PingFang TC", sans-serif; }
:host-context(.mac:lang(ja)) { font-family: -apple-system, BlinkMacSystemFont, "Hiragino Kaku Gothic Pro", sans-serif; }
:host-context(.mac:lang(ko)) { font-family: -apple-system, BlinkMacSystemFont, "Nanum Gothic", "Apple SD Gothic Neo", "AppleGothic", sans-serif; }
:host-context(.windows) { font-family: "Segoe WPC", "Segoe UI", sans-serif; }
:host-context(.windows:lang(zh-Hans)) { font-family: "Segoe WPC", "Segoe UI", "Microsoft YaHei", sans-serif; }
:host-context(.windows:lang(zh-Hant)) { font-family: "Segoe WPC", "Segoe UI", "Microsoft Jhenghei", sans-serif; }
:host-context(.windows:lang(ja)) { font-family: "Segoe WPC", "Segoe UI", "Yu Gothic UI", "Meiryo UI", sans-serif; }
:host-context(.windows:lang(ko)) { font-family: "Segoe WPC", "Segoe UI", "Malgun Gothic", "Dotom", sans-serif; }
:host-context(.linux) { font-family: system-ui, "Ubuntu", "Droid Sans", sans-serif; }
:host-context(.linux:lang(zh-Hans)) { font-family: system-ui, "Ubuntu", "Droid Sans", "Source Han Sans SC", "Source Han Sans CN", "Source Han Sans", sans-serif; }
:host-context(.linux:lang(zh-Hant)) { font-family: system-ui, "Ubuntu", "Droid Sans", "Source Han Sans TC", "Source Han Sans TW", "Source Han Sans", sans-serif; }
:host-context(.linux:lang(ja)) { font-family: system-ui, "Ubuntu", "Droid Sans", "Source Han Sans J", "Source Han Sans JP", "Source Han Sans", sans-serif; }
:host-context(.linux:lang(ko)) { font-family: system-ui, "Ubuntu", "Droid Sans", "Source Han Sans K", "Source Han Sans JR", "Source Han Sans", "UnDotum", "FBaekmuk Gulim", sans-serif; }
`}),define(ee[326],te([11]),{}),define(ee[216],te([0,1,7,29,37,8,326]),function(q,e,y,N,T,I){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.CountBadge=void 0;const b={badgeBackground:N.Color.fromHex("#4D4D4D"),badgeForeground:N.Color.fromHex("#FFFFFF")};class C{constructor(h,g){this.count=0,this.options=g||Object.create(null),(0,T.mixin)(this.options,b,!1),this.badgeBackground=this.options.badgeBackground,this.badgeForeground=this.options.badgeForeground,this.badgeBorder=this.options.badgeBorder,this.element=(0,y.append)(h,(0,y.$)(".monaco-count-badge")),this.countFormat=this.options.countFormat||"{0}",this.titleFormat=this.options.titleFormat||"",this.setCount(this.options.count||0)}setCount(h){this.count=h,this.render()}setTitleFormat(h){this.titleFormat=h,this.render()}render(){this.element.textContent=(0,I.format)(this.countFormat,this.count),this.element.title=(0,I.format)(this.titleFormat,this.count),this.applyStyles()}style(h){this.badgeBackground=h.badgeBackground,this.badgeForeground=h.badgeForeground,this.badgeBorder=h.badgeBorder,this.applyStyles()}applyStyles(){if(this.element){const h=this.badgeBackground?this.badgeBackground.toString():"",g=this.badgeForeground?this.badgeForeground.toString():"",i=this.badgeBorder?this.badgeBorder.toString():"";this.element.style.backgroundColor=h,this.element.style.color=g,this.element.style.borderWidth=i?"1px":"",this.element.style.borderStyle=i?"solid":"",this.element.style.borderColor=i}}}e.CountBadge=C}),define(ee[217],te([11]),{}),define(ee[218],te([11]),{}),define(ee[327],te([11]),{}),define(ee[328],te([11]),{}),define(ee[329],te([11]),{}),define(ee[330],te([11]),{}),define(ee[219],te([11]),{}),define(ee[331],te([11]),{}),define(ee[138],te([0,1,331]),function(q,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.MOUSE_CURSOR_TEXT_CSS_CLASS_NAME=void 0,e.MOUSE_CURSOR_TEXT_CSS_CLASS_NAME="monaco-mouse-cursor-text"}),define(ee[332],te([11]),{}),define(ee[333],te([0,1,7,10,29,2,37,332]),function(q,e,y,N,T,I,b){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ProgressBar=void 0;const C="done",p="active",h="infinite",g="discrete",i={progressBarBackground:T.Color.fromHex("#0E70C0")};class t extends I.Disposable{constructor(c,l){super();this.options=l||Object.create(null),(0,b.mixin)(this.options,i,!1),this.workedVal=0,this.progressBarBackground=this.options.progressBarBackground,this._register(this.showDelayedScheduler=new N.RunOnceScheduler(()=>(0,y.show)(this.element),0)),this.create(c)}create(c){this.element=document.createElement("div"),this.element.classList.add("monaco-progress-container"),this.element.setAttribute("role","progressbar"),this.element.setAttribute("aria-valuemin","0"),c.appendChild(this.element),this.bit=document.createElement("div"),this.bit.classList.add("progress-bit"),this.element.appendChild(this.bit),this.applyStyles()}off(){this.bit.style.width="inherit",this.bit.style.opacity="1",this.element.classList.remove(p,h,g),this.workedVal=0,this.totalWork=void 0}stop(){return this.doDone(!1)}doDone(c){return this.element.classList.add(C),this.element.classList.contains(h)?(this.bit.style.opacity="0",c?setTimeout(()=>this.off(),200):this.off()):(this.bit.style.width="inherit",c?setTimeout(()=>this.off(),200):this.off()),this}infinite(){return this.bit.style.width="2%",this.bit.style.opacity="1",this.element.classList.remove(g,C),this.element.classList.add(p,h),this}getContainer(){return this.element}style(c){this.progressBarBackground=c.progressBarBackground,this.applyStyles()}applyStyles(){if(this.bit){const c=this.progressBarBackground?this.progressBarBackground.toString():"";this.bit.style.backgroundColor=c}}}e.ProgressBar=t}),define(ee[334],te([11]),{}),define(ee[110],te([0,1,7,86,58,10,94,4,2,17,334]),function(q,e,y,N,T,I,b,C,p,h){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Sash=e.OrthogonalEdge=void 0;let g=!1;var i;(function(d){d.North="north",d.South="south",d.East="east",d.West="west"})(i=e.OrthogonalEdge||(e.OrthogonalEdge={}));let t=4;const r=new C.Emitter;let c=300;const l=new C.Emitter;class a{constructor(){this.disposables=new p.DisposableStore}get onPointerMove(){return this.disposables.add(new N.DomEmitter(window,"mousemove")).event}get onPointerUp(){return this.disposables.add(new N.DomEmitter(window,"mouseup")).event}dispose(){this.disposables.dispose()}}Be([b.memoize],a.prototype,"onPointerMove",null),Be([b.memoize],a.prototype,"onPointerUp",null);class s{constructor(u){this.el=u,this.disposables=new p.DisposableStore}get onPointerMove(){return this.disposables.add(new N.DomEmitter(this.el,T.EventType.Change)).event}get onPointerUp(){return this.disposables.add(new N.DomEmitter(this.el,T.EventType.End)).event}dispose(){this.disposables.dispose()}}Be([b.memoize],s.prototype,"onPointerMove",null),Be([b.memoize],s.prototype,"onPointerUp",null);class o{constructor(u){this.factory=u}get onPointerMove(){return this.factory.onPointerMove}get onPointerUp(){return this.factory.onPointerUp}dispose(){}}Be([b.memoize],o.prototype,"onPointerMove",null),Be([b.memoize],o.prototype,"onPointerUp",null);class n extends p.Disposable{constructor(u,f,S){super();this.hoverDelay=c,this.hoverDelayer=this._register(new I.Delayer(this.hoverDelay)),this._state=3,this.onDidEnablementChange=this._register(new C.Emitter),this._onDidStart=this._register(new C.Emitter),this._onDidChange=this._register(new C.Emitter),this._onDidReset=this._register(new C.Emitter),this._onDidEnd=this._register(new C.Emitter),this.orthogonalStartSashDisposables=this._register(new p.DisposableStore),this.orthogonalStartDragHandleDisposables=this._register(new p.DisposableStore),this.orthogonalEndSashDisposables=this._register(new p.DisposableStore),this.orthogonalEndDragHandleDisposables=this._register(new p.DisposableStore),this.onDidStart=this._onDidStart.event,this.onDidChange=this._onDidChange.event,this.onDidReset=this._onDidReset.event,this.onDidEnd=this._onDidEnd.event,this.linkedSash=void 0,this.el=(0,y.append)(u,(0,y.$)(".monaco-sash")),S.orthogonalEdge&&this.el.classList.add(`orthogonal-edge-${S.orthogonalEdge}`),h.isMacintosh&&this.el.classList.add("mac");const v=this._register(new N.DomEmitter(this.el,"mousedown")).event;this._register(v(M=>this.onPointerStart(M,new a),this));const m=this._register(new N.DomEmitter(this.el,"dblclick")).event;this._register(m(this.onPointerDoublePress,this));const _=this._register(new N.DomEmitter(this.el,"mouseenter")).event;this._register(_(()=>n.onMouseEnter(this)));const L=this._register(new N.DomEmitter(this.el,"mouseleave")).event;this._register(L(()=>n.onMouseLeave(this))),this._register(T.Gesture.addTarget(this.el));const w=C.Event.map(this._register(new N.DomEmitter(this.el,T.EventType.Start)).event,M=>{var O;return Object.assign(Object.assign({},M),{target:(O=M.initialTarget)!==null&&O!==void 0?O:null})});this._register(w(M=>this.onPointerStart(M,new s(this.el)),this));const k=this._register(new N.DomEmitter(this.el,T.EventType.Tap)).event,D=C.Event.map(C.Event.filter(C.Event.debounce(k,(M,O)=>{var F;return{event:O,count:((F=M==null?void 0:M.count)!==null&&F!==void 0?F:0)+1}},250),({count:M})=>M===2),({event:M})=>{var O;return Object.assign(Object.assign({},M),{target:(O=M.initialTarget)!==null&&O!==void 0?O:null})});this._register(D(this.onPointerDoublePress,this)),typeof S.size=="number"?(this.size=S.size,S.orientation===0?this.el.style.width=`${this.size}px`:this.el.style.height=`${this.size}px`):(this.size=t,this._register(r.event(M=>{this.size=M,this.layout()}))),this._register(l.event(M=>this.hoverDelay=M)),this.layoutProvider=f,this.orthogonalStartSash=S.orthogonalStartSash,this.orthogonalEndSash=S.orthogonalEndSash,this.orientation=S.orientation||0,this.orientation===1?(this.el.classList.add("horizontal"),this.el.classList.remove("vertical")):(this.el.classList.remove("horizontal"),this.el.classList.add("vertical")),this.el.classList.toggle("debug",g),this.layout()}get state(){return this._state}get orthogonalStartSash(){return this._orthogonalStartSash}get orthogonalEndSash(){return this._orthogonalEndSash}set state(u){this._state!==u&&(this.el.classList.toggle("disabled",u===0),this.el.classList.toggle("minimum",u===1),this.el.classList.toggle("maximum",u===2),this._state=u,this.onDidEnablementChange.fire(u))}set orthogonalStartSash(u){if(this.orthogonalStartDragHandleDisposables.clear(),this.orthogonalStartSashDisposables.clear(),u){const f=S=>{this.orthogonalStartDragHandleDisposables.clear(),S!==0&&(this._orthogonalStartDragHandle=(0,y.append)(this.el,(0,y.$)(".orthogonal-drag-handle.start")),this.orthogonalStartDragHandleDisposables.add((0,p.toDisposable)(()=>this._orthogonalStartDragHandle.remove())),this.orthogonalStartDragHandleDisposables.add(new N.DomEmitter(this._orthogonalStartDragHandle,"mouseenter")).event(()=>n.onMouseEnter(u),void 0,this.orthogonalStartDragHandleDisposables),this.orthogonalStartDragHandleDisposables.add(new N.DomEmitter(this._orthogonalStartDragHandle,"mouseleave")).event(()=>n.onMouseLeave(u),void 0,this.orthogonalStartDragHandleDisposables))};this.orthogonalStartSashDisposables.add(u.onDidEnablementChange.event(f,this)),f(u.state)}this._orthogonalStartSash=u}set orthogonalEndSash(u){if(this.orthogonalEndDragHandleDisposables.clear(),this.orthogonalEndSashDisposables.clear(),u){const f=S=>{this.orthogonalEndDragHandleDisposables.clear(),S!==0&&(this._orthogonalEndDragHandle=(0,y.append)(this.el,(0,y.$)(".orthogonal-drag-handle.end")),this.orthogonalEndDragHandleDisposables.add((0,p.toDisposable)(()=>this._orthogonalEndDragHandle.remove())),this.orthogonalEndDragHandleDisposables.add(new N.DomEmitter(this._orthogonalEndDragHandle,"mouseenter")).event(()=>n.onMouseEnter(u),void 0,this.orthogonalEndDragHandleDisposables),this.orthogonalEndDragHandleDisposables.add(new N.DomEmitter(this._orthogonalEndDragHandle,"mouseleave")).event(()=>n.onMouseLeave(u),void 0,this.orthogonalEndDragHandleDisposables))};this.orthogonalEndSashDisposables.add(u.onDidEnablementChange.event(f,this)),f(u.state)}this._orthogonalEndSash=u}onPointerStart(u,f){y.EventHelper.stop(u);let S=!1;if(!u.__orthogonalSashEvent){const R=this.getOrthogonalSash(u);R&&(S=!0,u.__orthogonalSashEvent=!0,R.onPointerStart(u,new o(f)))}if(this.linkedSash&&!u.__linkedSashEvent&&(u.__linkedSashEvent=!0,this.linkedSash.onPointerStart(u,new o(f))),!this.state)return;const v=(0,y.getElementsByTagName)("iframe");for(const R of v)R.style.pointerEvents="none";const m=u.pageX,_=u.pageY,L=u.altKey,w={startX:m,currentX:m,startY:_,currentY:_,altKey:L};this.el.classList.add("active"),this._onDidStart.fire(w);const k=(0,y.createStyleSheet)(this.el),D=()=>{let R="";S?R="all-scroll":this.orientation===1?this.state===1?R="s-resize":this.state===2?R="n-resize":R=h.isMacintosh?"row-resize":"ns-resize":this.state===1?R="e-resize":this.state===2?R="w-resize":R=h.isMacintosh?"col-resize":"ew-resize",k.textContent=`* { cursor: ${R} !important; }`},M=new p.DisposableStore;D(),S||this.onDidEnablementChange.event(D,null,M);const O=R=>{y.EventHelper.stop(R,!1);const A={startX:m,currentX:R.pageX,startY:_,currentY:R.pageY,altKey:L};this._onDidChange.fire(A)},F=R=>{y.EventHelper.stop(R,!1),this.el.removeChild(k),this.el.classList.remove("active"),this._onDidEnd.fire(),M.dispose();for(const A of v)A.style.pointerEvents="auto"};f.onPointerMove(O,null,M),f.onPointerUp(F,null,M),M.add(f)}onPointerDoublePress(u){const f=this.getOrthogonalSash(u);f&&f._onDidReset.fire(),this.linkedSash&&this.linkedSash._onDidReset.fire(),this._onDidReset.fire()}static onMouseEnter(u,f=!1){u.el.classList.contains("active")?(u.hoverDelayer.cancel(),u.el.classList.add("hover")):u.hoverDelayer.trigger(()=>u.el.classList.add("hover"),u.hoverDelay).then(void 0,()=>{}),!f&&u.linkedSash&&n.onMouseEnter(u.linkedSash,!0)}static onMouseLeave(u,f=!1){u.hoverDelayer.cancel(),u.el.classList.remove("hover"),!f&&u.linkedSash&&n.onMouseLeave(u.linkedSash,!0)}clearSashHoverState(){n.onMouseLeave(this)}layout(){if(this.orientation===0){const u=this.layoutProvider;this.el.style.left=u.getVerticalSashLeft(this)-this.size/2+"px",u.getVerticalSashTop&&(this.el.style.top=u.getVerticalSashTop(this)+"px"),u.getVerticalSashHeight&&(this.el.style.height=u.getVerticalSashHeight(this)+"px")}else{const u=this.layoutProvider;this.el.style.top=u.getHorizontalSashTop(this)-this.size/2+"px",u.getHorizontalSashLeft&&(this.el.style.left=u.getHorizontalSashLeft(this)+"px"),u.getHorizontalSashWidth&&(this.el.style.width=u.getHorizontalSashWidth(this)+"px")}}getOrthogonalSash(u){if(!(!u.target||!(u.target instanceof HTMLElement))&&u.target.classList.contains("orthogonal-drag-handle"))return u.target.classList.contains("start")?this.orthogonalStartSash:this.orthogonalEndSash}dispose(){super.dispose(),this.el.remove()}}e.Sash=n}),define(ee[335],te([11]),{}),define(ee[63],te([0,1,34,7,32,57,313,314,54,10,4,2,17,134,335]),function(q,e,y,N,T,I,b,C,p,h,g,i,t,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.DomScrollableElement=e.SmoothScrollableElement=e.ScrollableElement=e.AbstractScrollableElement=e.MouseWheelClassifier=void 0;const c=500,l=50,a=!0;class s{constructor(m,_,L){this.timestamp=m,this.deltaX=_,this.deltaY=L,this.score=0}}class o{constructor(){this._capacity=5,this._memory=[],this._front=-1,this._rear=-1}isPhysicalMouseWheel(){if(this._front===-1&&this._rear===-1)return!1;let m=1,_=0,L=1,w=this._rear;do{const k=w===this._front?m:Math.pow(2,-L);if(m-=k,_+=this._memory[w].score*k,w===this._front)break;w=(this._capacity+w-1)%this._capacity,L++}while(!0);return _<=.5}accept(m,_,L){const w=new s(m,_,L);w.score=this._computeScore(w),this._front===-1&&this._rear===-1?(this._memory[0]=w,this._front=0,this._rear=0):(this._rear=(this._rear+1)%this._capacity,this._rear===this._front&&(this._front=(this._front+1)%this._capacity),this._memory[this._rear]=w)}_computeScore(m){if(Math.abs(m.deltaX)>0&&Math.abs(m.deltaY)>0)return 1;let _=.5;const L=this._front===-1&&this._rear===-1?null:this._memory[this._rear];return(!this._isAlmostInt(m.deltaX)||!this._isAlmostInt(m.deltaY))&&(_+=.25),Math.min(Math.max(_,0),1)}_isAlmostInt(m){return Math.abs(Math.round(m)-m)<.01}}e.MouseWheelClassifier=o,o.INSTANCE=new o;class n extends p.Widget{constructor(m,_,L){super();this._onScroll=this._register(new g.Emitter),this.onScroll=this._onScroll.event,this._onWillScroll=this._register(new g.Emitter),m.style.overflow="hidden",this._options=S(_),this._scrollable=L,this._register(this._scrollable.onScroll(k=>{this._onWillScroll.fire(k),this._onDidScroll(k),this._onScroll.fire(k)}));const w={onMouseWheel:k=>this._onMouseWheel(k),onDragStart:()=>this._onDragStart(),onDragEnd:()=>this._onDragEnd()};this._verticalScrollbar=this._register(new C.VerticalScrollbar(this._scrollable,this._options,w)),this._horizontalScrollbar=this._register(new b.HorizontalScrollbar(this._scrollable,this._options,w)),this._domNode=document.createElement("div"),this._domNode.className="monaco-scrollable-element "+this._options.className,this._domNode.setAttribute("role","presentation"),this._domNode.style.position="relative",this._domNode.style.overflow="hidden",this._domNode.appendChild(m),this._domNode.appendChild(this._horizontalScrollbar.domNode.domNode),this._domNode.appendChild(this._verticalScrollbar.domNode.domNode),this._options.useShadows?(this._leftShadowDomNode=(0,T.createFastDomNode)(document.createElement("div")),this._leftShadowDomNode.setClassName("shadow"),this._domNode.appendChild(this._leftShadowDomNode.domNode),this._topShadowDomNode=(0,T.createFastDomNode)(document.createElement("div")),this._topShadowDomNode.setClassName("shadow"),this._domNode.appendChild(this._topShadowDomNode.domNode),this._topLeftShadowDomNode=(0,T.createFastDomNode)(document.createElement("div")),this._topLeftShadowDomNode.setClassName("shadow"),this._domNode.appendChild(this._topLeftShadowDomNode.domNode)):(this._leftShadowDomNode=null,this._topShadowDomNode=null,this._topLeftShadowDomNode=null),this._listenOnDomNode=this._options.listenOnDomNode||this._domNode,this._mouseWheelToDispose=[],this._setListeningToMouseWheel(this._options.handleMouseWheel),this.onmouseover(this._listenOnDomNode,k=>this._onMouseOver(k)),this.onnonbubblingmouseout(this._listenOnDomNode,k=>this._onMouseOut(k)),this._hideTimeout=this._register(new h.TimeoutTimer),this._isDragging=!1,this._mouseIsOver=!1,this._shouldRender=!0,this._revealOnScroll=!0}dispose(){this._mouseWheelToDispose=(0,i.dispose)(this._mouseWheelToDispose),super.dispose()}getDomNode(){return this._domNode}getOverviewRulerLayoutInfo(){return{parent:this._domNode,insertBefore:this._verticalScrollbar.domNode.domNode}}delegateVerticalScrollbarMouseDown(m){this._verticalScrollbar.delegateMouseDown(m)}getScrollDimensions(){return this._scrollable.getScrollDimensions()}setScrollDimensions(m){this._scrollable.setScrollDimensions(m,!1)}updateClassName(m){this._options.className=m,t.isMacintosh&&(this._options.className+=" mac"),this._domNode.className="monaco-scrollable-element "+this._options.className}updateOptions(m){typeof m.handleMouseWheel!="undefined"&&(this._options.handleMouseWheel=m.handleMouseWheel,this._setListeningToMouseWheel(this._options.handleMouseWheel)),typeof m.mouseWheelScrollSensitivity!="undefined"&&(this._options.mouseWheelScrollSensitivity=m.mouseWheelScrollSensitivity),typeof m.fastScrollSensitivity!="undefined"&&(this._options.fastScrollSensitivity=m.fastScrollSensitivity),typeof m.scrollPredominantAxis!="undefined"&&(this._options.scrollPredominantAxis=m.scrollPredominantAxis),typeof m.horizontal!="undefined"&&(this._options.horizontal=m.horizontal),typeof m.vertical!="undefined"&&(this._options.vertical=m.vertical),typeof m.horizontalScrollbarSize!="undefined"&&(this._options.horizontalScrollbarSize=m.horizontalScrollbarSize),typeof m.verticalScrollbarSize!="undefined"&&(this._options.verticalScrollbarSize=m.verticalScrollbarSize),typeof m.scrollByPage!="undefined"&&(this._options.scrollByPage=m.scrollByPage),this._horizontalScrollbar.updateOptions(this._options),this._verticalScrollbar.updateOptions(this._options),this._options.lazyRender||this._render()}_setListeningToMouseWheel(m){if(this._mouseWheelToDispose.length>0!==m&&(this._mouseWheelToDispose=(0,i.dispose)(this._mouseWheelToDispose),m)){const L=w=>{this._onMouseWheel(new I.StandardWheelEvent(w))};this._mouseWheelToDispose.push(N.addDisposableListener(this._listenOnDomNode,N.EventType.MOUSE_WHEEL,L,{passive:!1}))}}_onMouseWheel(m){const _=o.INSTANCE;if(a){const k=window.devicePixelRatio/(0,y.getZoomFactor)();t.isWindows||t.isLinux?_.accept(Date.now(),m.deltaX/k,m.deltaY/k):_.accept(Date.now(),m.deltaX,m.deltaY)}let L=!1;if(m.deltaY||m.deltaX){let k=m.deltaY*this._options.mouseWheelScrollSensitivity,D=m.deltaX*this._options.mouseWheelScrollSensitivity;this._options.scrollPredominantAxis&&(Math.abs(k)>=Math.abs(D)?D=0:k=0),this._options.flipAxes&&([k,D]=[D,k]);const M=!t.isMacintosh&&m.browserEvent&&m.browserEvent.shiftKey;(this._options.scrollYToX||M)&&!D&&(D=k,k=0),m.browserEvent&&m.browserEvent.altKey&&(D=D*this._options.fastScrollSensitivity,k=k*this._options.fastScrollSensitivity);const O=this._scrollable.getFutureScrollPosition();let F={};if(k){const R=l*k,A=O.scrollTop-(R<0?Math.floor(R):Math.ceil(R));this._verticalScrollbar.writeScrollPosition(F,A)}if(D){const R=l*D,A=O.scrollLeft-(R<0?Math.floor(R):Math.ceil(R));this._horizontalScrollbar.writeScrollPosition(F,A)}F=this._scrollable.validateScrollPosition(F),(O.scrollLeft!==F.scrollLeft||O.scrollTop!==F.scrollTop)&&(a&&this._options.mouseWheelSmoothScroll&&_.isPhysicalMouseWheel()?this._scrollable.setScrollPositionSmooth(F):this._scrollable.setScrollPositionNow(F),L=!0)}let w=L;!w&&this._options.alwaysConsumeMouseWheel&&(w=!0),!w&&this._options.consumeMouseWheelIfScrollbarIsNeeded&&(this._verticalScrollbar.isNeeded()||this._horizontalScrollbar.isNeeded())&&(w=!0),w&&(m.preventDefault(),m.stopPropagation())}_onDidScroll(m){this._shouldRender=this._horizontalScrollbar.onDidScroll(m)||this._shouldRender,this._shouldRender=this._verticalScrollbar.onDidScroll(m)||this._shouldRender,this._options.useShadows&&(this._shouldRender=!0),this._revealOnScroll&&this._reveal(),this._options.lazyRender||this._render()}renderNow(){if(!this._options.lazyRender)throw new Error("Please use `lazyRender` together with `renderNow`!");this._render()}_render(){if(!!this._shouldRender&&(this._shouldRender=!1,this._horizontalScrollbar.render(),this._verticalScrollbar.render(),this._options.useShadows)){const m=this._scrollable.getCurrentScrollPosition(),_=m.scrollTop>0,L=m.scrollLeft>0,w=L?" left":"",k=_?" top":"",D=L||_?" top-left-corner":"";this._leftShadowDomNode.setClassName(`shadow${w}`),this._topShadowDomNode.setClassName(`shadow${k}`),this._topLeftShadowDomNode.setClassName(`shadow${D}${k}${w}`)}}_onDragStart(){this._isDragging=!0,this._reveal()}_onDragEnd(){this._isDragging=!1,this._hide()}_onMouseOut(m){this._mouseIsOver=!1,this._hide()}_onMouseOver(m){this._mouseIsOver=!0,this._reveal()}_reveal(){this._verticalScrollbar.beginReveal(),this._horizontalScrollbar.beginReveal(),this._scheduleHide()}_hide(){!this._mouseIsOver&&!this._isDragging&&(this._verticalScrollbar.beginHide(),this._horizontalScrollbar.beginHide())}_scheduleHide(){!this._mouseIsOver&&!this._isDragging&&this._hideTimeout.cancelAndSet(()=>this._hide(),c)}}e.AbstractScrollableElement=n;class d extends n{constructor(m,_){_=_||{},_.mouseWheelSmoothScroll=!1;const L=new r.Scrollable(0,w=>N.scheduleAtNextAnimationFrame(w));super(m,_,L);this._register(L)}setScrollPosition(m){this._scrollable.setScrollPositionNow(m)}getScrollPosition(){return this._scrollable.getCurrentScrollPosition()}}e.ScrollableElement=d;class u extends n{constructor(m,_,L){super(m,_,L)}setScrollPosition(m){m.reuseAnimation?this._scrollable.setScrollPositionSmooth(m,m.reuseAnimation):this._scrollable.setScrollPositionNow(m)}getScrollPosition(){return this._scrollable.getCurrentScrollPosition()}}e.SmoothScrollableElement=u;class f extends d{constructor(m,_){super(m,_);this._element=m,this.onScroll(L=>{L.scrollTopChanged&&(this._element.scrollTop=L.scrollTop),L.scrollLeftChanged&&(this._element.scrollLeft=L.scrollLeft)}),this.scanDomNode()}scanDomNode(){this.setScrollDimensions({width:this._element.clientWidth,scrollWidth:this._element.scrollWidth,height:this._element.clientHeight,scrollHeight:this._element.scrollHeight}),this.setScrollPosition({scrollLeft:this._element.scrollLeft,scrollTop:this._element.scrollTop})}}e.DomScrollableElement=f;function S(v){const m={lazyRender:typeof v.lazyRender!="undefined"?v.lazyRender:!1,className:typeof v.className!="undefined"?v.className:"",useShadows:typeof v.useShadows!="undefined"?v.useShadows:!0,handleMouseWheel:typeof v.handleMouseWheel!="undefined"?v.handleMouseWheel:!0,flipAxes:typeof v.flipAxes!="undefined"?v.flipAxes:!1,consumeMouseWheelIfScrollbarIsNeeded:typeof v.consumeMouseWheelIfScrollbarIsNeeded!="undefined"?v.consumeMouseWheelIfScrollbarIsNeeded:!1,alwaysConsumeMouseWheel:typeof v.alwaysConsumeMouseWheel!="undefined"?v.alwaysConsumeMouseWheel:!1,scrollYToX:typeof v.scrollYToX!="undefined"?v.scrollYToX:!1,mouseWheelScrollSensitivity:typeof v.mouseWheelScrollSensitivity!="undefined"?v.mouseWheelScrollSensitivity:1,fastScrollSensitivity:typeof v.fastScrollSensitivity!="undefined"?v.fastScrollSensitivity:5,scrollPredominantAxis:typeof v.scrollPredominantAxis!="undefined"?v.scrollPredominantAxis:!0,mouseWheelSmoothScroll:typeof v.mouseWheelSmoothScroll!="undefined"?v.mouseWheelSmoothScroll:!0,arrowSize:typeof v.arrowSize!="undefined"?v.arrowSize:11,listenOnDomNode:typeof v.listenOnDomNode!="undefined"?v.listenOnDomNode:null,horizontal:typeof v.horizontal!="undefined"?v.horizontal:1,horizontalScrollbarSize:typeof v.horizontalScrollbarSize!="undefined"?v.horizontalScrollbarSize:10,horizontalSliderSize:typeof v.horizontalSliderSize!="undefined"?v.horizontalSliderSize:0,horizontalHasArrows:typeof v.horizontalHasArrows!="undefined"?v.horizontalHasArrows:!1,vertical:typeof v.vertical!="undefined"?v.vertical:1,verticalScrollbarSize:typeof v.verticalScrollbarSize!="undefined"?v.verticalScrollbarSize:10,verticalHasArrows:typeof v.verticalHasArrows!="undefined"?v.verticalHasArrows:!1,verticalSliderSize:typeof v.verticalSliderSize!="undefined"?v.verticalSliderSize:0,scrollByPage:typeof v.scrollByPage!="undefined"?v.scrollByPage:!1};return m.horizontalSliderSize=typeof v.horizontalSliderSize!="undefined"?v.horizontalSliderSize:m.horizontalScrollbarSize,m.verticalSliderSize=typeof v.verticalSliderSize!="undefined"?v.verticalSliderSize:m.verticalScrollbarSize,t.isMacintosh&&(m.className+=" mac"),m}}),define(ee[220],te([0,1,7,63,2,327]),function(q,e,y,N,T){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.HoverAction=e.HoverWidget=void 0;const I=y.$;class b extends T.Disposable{constructor(){super();this.containerDomNode=document.createElement("div"),this.containerDomNode.className="monaco-hover",this.containerDomNode.tabIndex=0,this.containerDomNode.setAttribute("role","tooltip"),this.contentsDomNode=document.createElement("div"),this.contentsDomNode.className="monaco-hover-content",this._scrollbar=this._register(new N.DomScrollableElement(this.contentsDomNode,{consumeMouseWheelIfScrollbarIsNeeded:!0})),this.containerDomNode.appendChild(this._scrollbar.getDomNode())}onContentsChanged(){this._scrollbar.scanDomNode()}}e.HoverWidget=b;class C extends T.Disposable{constructor(h,g,i){super();this.actionContainer=y.append(h,I("div.action-container")),this.action=y.append(this.actionContainer,I("a.action")),this.action.setAttribute("role","button"),g.iconClass&&y.append(this.action,I(`span.icon.${g.iconClass}`));const t=y.append(this.action,I("span"));t.textContent=i?`${g.label} (${i})`:g.label,this._register(y.addDisposableListener(this.actionContainer,y.EventType.MOUSE_DOWN,r=>{r.stopPropagation(),r.preventDefault(),g.run(this.actionContainer)})),this.setEnabled(!0)}static render(h,g,i){return new C(h,g,i)}setEnabled(h){h?(this.actionContainer.classList.remove("disabled"),this.actionContainer.removeAttribute("aria-disabled")):(this.actionContainer.classList.add("disabled"),this.actionContainer.setAttribute("aria-disabled","true"))}}e.HoverAction=C}),define(ee[173],te([0,1,34,171,7,86,58,63,19,10,94,4,2,37,133,134,306,312]),function(q,e,y,N,T,I,b,C,p,h,g,i,t,r,c,l,a,s){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ListView=e.NativeDragAndDropData=e.ExternalElementsDragAndDropData=e.ElementsDragAndDropData=void 0;const o={useShadows:!0,verticalScrollMode:1,setRowLineHeight:!0,setRowHeight:!0,supportDynamicHeights:!1,dnd:{getDragElements(m){return[m]},getDragURI(){return null},onDragStart(){},onDragOver(){return!1},drop(){}},horizontalScrolling:!1,transformOptimization:!0,alwaysConsumeMouseWheel:!0};class n{constructor(_){this.elements=_}update(){}getData(){return this.elements}}e.ElementsDragAndDropData=n;class d{constructor(_){this.elements=_}update(){}getData(){return this.elements}}e.ExternalElementsDragAndDropData=d;class u{constructor(){this.types=[],this.files=[]}update(_){if(_.types&&this.types.splice(0,this.types.length,..._.types),_.files){this.files.splice(0,this.files.length);for(let L=0;L<_.files.length;L++){const w=_.files.item(L);w&&(w.size||w.type)&&this.files.push(w)}}}getData(){return{types:this.types,files:this.files}}}e.NativeDragAndDropData=u;function f(m,_){return Array.isArray(m)&&Array.isArray(_)?(0,p.equals)(m,_):m===_}class S{constructor(_){(_==null?void 0:_.getSetSize)?this.getSetSize=_.getSetSize.bind(_):this.getSetSize=(L,w,k)=>k,(_==null?void 0:_.getPosInSet)?this.getPosInSet=_.getPosInSet.bind(_):this.getPosInSet=(L,w)=>w+1,(_==null?void 0:_.getRole)?this.getRole=_.getRole.bind(_):this.getRole=L=>"listitem",(_==null?void 0:_.isChecked)?this.isChecked=_.isChecked.bind(_):this.isChecked=L=>{}}}class v{constructor(_,L,w,k=o){if(this.virtualDelegate=L,this.domId=`list_id_${++v.InstanceCount}`,this.renderers=new Map,this.renderWidth=0,this._scrollHeight=0,this.scrollableElementUpdateDisposable=null,this.scrollableElementWidthDelayer=new h.Delayer(50),this.splicing=!1,this.dragOverAnimationStopDisposable=t.Disposable.None,this.dragOverMouseY=0,this.canDrop=!1,this.currentDragFeedbackDisposable=t.Disposable.None,this.onDragLeaveTimeout=t.Disposable.None,this.disposables=new t.DisposableStore,this._onDidChangeContentHeight=new i.Emitter,this._horizontalScrolling=!1,k.horizontalScrolling&&k.supportDynamicHeights)throw new Error("Horizontal scrolling and dynamic heights not supported simultaneously");this.items=[],this.itemId=0,this.rangeMap=new a.RangeMap;for(const M of w)this.renderers.set(M.templateId,M);this.cache=this.disposables.add(new s.RowCache(this.renderers)),this.lastRenderTop=0,this.lastRenderHeight=0,this.domNode=document.createElement("div"),this.domNode.className="monaco-list",this.domNode.classList.add(this.domId),this.domNode.tabIndex=0,this.domNode.classList.toggle("mouse-support",typeof k.mouseSupport=="boolean"?k.mouseSupport:!0),this._horizontalScrolling=(0,r.getOrDefault)(k,M=>M.horizontalScrolling,o.horizontalScrolling),this.domNode.classList.toggle("horizontal-scrolling",this._horizontalScrolling),this.additionalScrollHeight=typeof k.additionalScrollHeight=="undefined"?0:k.additionalScrollHeight,this.accessibilityProvider=new S(k.accessibilityProvider),this.rowsContainer=document.createElement("div"),this.rowsContainer.className="monaco-list-rows",(0,r.getOrDefault)(k,M=>M.transformOptimization,o.transformOptimization)&&(this.rowsContainer.style.transform="translate3d(0px, 0px, 0px)"),this.disposables.add(b.Gesture.addTarget(this.rowsContainer)),this.scrollable=new l.Scrollable((0,r.getOrDefault)(k,M=>M.smoothScrolling,!1)?125:0,M=>(0,T.scheduleAtNextAnimationFrame)(M)),this.scrollableElement=this.disposables.add(new C.SmoothScrollableElement(this.rowsContainer,{alwaysConsumeMouseWheel:(0,r.getOrDefault)(k,M=>M.alwaysConsumeMouseWheel,o.alwaysConsumeMouseWheel),horizontal:1,vertical:(0,r.getOrDefault)(k,M=>M.verticalScrollMode,o.verticalScrollMode),useShadows:(0,r.getOrDefault)(k,M=>M.useShadows,o.useShadows),mouseWheelScrollSensitivity:k.mouseWheelScrollSensitivity,fastScrollSensitivity:k.fastScrollSensitivity},this.scrollable)),this.domNode.appendChild(this.scrollableElement.getDomNode()),_.appendChild(this.domNode),this.scrollableElement.onScroll(this.onScroll,this,this.disposables),this.disposables.add((0,T.addDisposableListener)(this.rowsContainer,b.EventType.Change,M=>this.onTouchChange(M))),this.disposables.add((0,T.addDisposableListener)(this.scrollableElement.getDomNode(),"scroll",M=>M.target.scrollTop=0)),this.disposables.add((0,T.addDisposableListener)(this.domNode,"dragover",M=>this.onDragOver(this.toDragEvent(M)))),this.disposables.add((0,T.addDisposableListener)(this.domNode,"drop",M=>this.onDrop(this.toDragEvent(M)))),this.disposables.add((0,T.addDisposableListener)(this.domNode,"dragleave",M=>this.onDragLeave(this.toDragEvent(M)))),this.disposables.add((0,T.addDisposableListener)(this.domNode,"dragend",M=>this.onDragEnd(M))),this.setRowLineHeight=(0,r.getOrDefault)(k,M=>M.setRowLineHeight,o.setRowLineHeight),this.setRowHeight=(0,r.getOrDefault)(k,M=>M.setRowHeight,o.setRowHeight),this.supportDynamicHeights=(0,r.getOrDefault)(k,M=>M.supportDynamicHeights,o.supportDynamicHeights),this.dnd=(0,r.getOrDefault)(k,M=>M.dnd,o.dnd),this.layout()}get contentHeight(){return this.rangeMap.size}get horizontalScrolling(){return this._horizontalScrolling}set horizontalScrolling(_){if(_!==this._horizontalScrolling){if(_&&this.supportDynamicHeights)throw new Error("Horizontal scrolling and dynamic heights not supported simultaneously");if(this._horizontalScrolling=_,this.domNode.classList.toggle("horizontal-scrolling",this._horizontalScrolling),this._horizontalScrolling){for(const L of this.items)this.measureItemWidth(L);this.updateScrollWidth(),this.scrollableElement.setScrollDimensions({width:(0,T.getContentWidth)(this.domNode)}),this.rowsContainer.style.width=`${Math.max(this.scrollWidth||0,this.renderWidth)}px`}else this.scrollableElementWidthDelayer.cancel(),this.scrollableElement.setScrollDimensions({width:this.renderWidth,scrollWidth:this.renderWidth}),this.rowsContainer.style.width=""}}updateOptions(_){_.additionalScrollHeight!==void 0&&(this.additionalScrollHeight=_.additionalScrollHeight,this.scrollableElement.setScrollDimensions({scrollHeight:this.scrollHeight})),_.smoothScrolling!==void 0&&this.scrollable.setSmoothScrollDuration(_.smoothScrolling?125:0),_.horizontalScrolling!==void 0&&(this.horizontalScrolling=_.horizontalScrolling),_.mouseWheelScrollSensitivity!==void 0&&this.scrollableElement.updateOptions({mouseWheelScrollSensitivity:_.mouseWheelScrollSensitivity}),_.fastScrollSensitivity!==void 0&&this.scrollableElement.updateOptions({fastScrollSensitivity:_.fastScrollSensitivity})}splice(_,L,w=[]){if(this.splicing)throw new Error("Can't run recursive splices.");this.splicing=!0;try{return this._splice(_,L,w)}finally{this.splicing=!1,this._onDidChangeContentHeight.fire(this.contentHeight)}}_splice(_,L,w=[]){const k=this.getRenderRange(this.lastRenderTop,this.lastRenderHeight),D={start:_,end:_+L},M=c.Range.intersect(k,D),O=new Map;for(let G=M.start;G({id:String(this.itemId++),element:G,templateId:this.virtualDelegate.getTemplateId(G),size:this.virtualDelegate.getHeight(G),width:void 0,hasDynamicHeight:!!this.virtualDelegate.hasDynamicHeight&&this.virtualDelegate.hasDynamicHeight(G),lastDynamicHeightWidth:void 0,row:null,uri:void 0,dropTarget:!1,dragStartDisposable:t.Disposable.None}));let E;_===0&&L>=this.items.length?(this.rangeMap=new a.RangeMap,this.rangeMap.splice(0,0,P),E=this.items,this.items=P):(this.rangeMap.splice(_,L,P),E=this.items.splice(_,L,...P));const B=w.length-L,V=this.getRenderRange(this.lastRenderTop,this.lastRenderHeight),j=(0,a.shift)(R,B),K=c.Range.intersect(V,j);for(let G=K.start;G(0,a.shift)(G,B)),ie=[{start:_,end:_+w.length},...J].map(G=>c.Range.intersect(V,G)),ne=this.getNextToLastElement(ie);for(const G of ie)for(let W=G.start;WG.element)}eventuallyUpdateScrollDimensions(){this._scrollHeight=this.contentHeight,this.rowsContainer.style.height=`${this._scrollHeight}px`,this.scrollableElementUpdateDisposable||(this.scrollableElementUpdateDisposable=(0,T.scheduleAtNextAnimationFrame)(()=>{this.scrollableElement.setScrollDimensions({scrollHeight:this.scrollHeight}),this.updateScrollWidth(),this.scrollableElementUpdateDisposable=null}))}eventuallyUpdateScrollWidth(){if(!this.horizontalScrolling){this.scrollableElementWidthDelayer.cancel();return}this.scrollableElementWidthDelayer.trigger(()=>this.updateScrollWidth())}updateScrollWidth(){if(!this.horizontalScrolling)return;let _=0;for(const L of this.items)typeof L.width!="undefined"&&(_=Math.max(_,L.width));this.scrollWidth=_,this.scrollableElement.setScrollDimensions({scrollWidth:_===0?0:_+10})}rerender(){if(!!this.supportDynamicHeights){for(const _ of this.items)_.lastDynamicHeightWidth=void 0;this._rerender(this.lastRenderTop,this.lastRenderHeight)}}get length(){return this.items.length}get renderHeight(){return this.scrollableElement.getScrollDimensions().height}element(_){return this.items[_].element}domElement(_){const L=this.items[_].row;return L&&L.domNode}elementHeight(_){return this.items[_].size}elementTop(_){return this.rangeMap.positionAt(_)}indexAt(_){return this.rangeMap.indexAt(_)}indexAfter(_){return this.rangeMap.indexAfter(_)}layout(_,L){let w={height:typeof _=="number"?_:(0,T.getContentHeight)(this.domNode)};this.scrollableElementUpdateDisposable&&(this.scrollableElementUpdateDisposable.dispose(),this.scrollableElementUpdateDisposable=null,w.scrollHeight=this.scrollHeight),this.scrollableElement.setScrollDimensions(w),typeof L!="undefined"&&(this.renderWidth=L,this.supportDynamicHeights&&this._rerender(this.scrollTop,this.renderHeight)),this.horizontalScrolling&&this.scrollableElement.setScrollDimensions({width:typeof L=="number"?L:(0,T.getContentWidth)(this.domNode)})}render(_,L,w,k,D,M=!1){const O=this.getRenderRange(L,w),F=c.Range.relativeComplement(O,_),R=c.Range.relativeComplement(_,O),A=this.getNextToLastElement(F);if(M){const P=c.Range.intersect(_,O);for(let E=P.start;Ethis.onDragStart(k.element,F,R))),this.horizontalScrolling&&(this.measureItemWidth(k),this.eventuallyUpdateScrollWidth())}measureItemWidth(_){if(!_.row||!_.row.domNode)return;_.row.domNode.style.width=y.isFirefox?"-moz-fit-content":"fit-content",_.width=(0,T.getContentWidth)(_.row.domNode);const L=window.getComputedStyle(_.row.domNode);L.paddingLeft&&(_.width+=parseFloat(L.paddingLeft)),L.paddingRight&&(_.width+=parseFloat(L.paddingRight)),_.row.domNode.style.width=""}updateItemInDOM(_,L){_.row.domNode.style.top=`${this.elementTop(L)}px`,this.setRowHeight&&(_.row.domNode.style.height=`${_.size}px`),this.setRowLineHeight&&(_.row.domNode.style.lineHeight=`${_.size}px`),_.row.domNode.setAttribute("data-index",`${L}`),_.row.domNode.setAttribute("data-last-element",L===this.length-1?"true":"false"),_.row.domNode.setAttribute("data-parity",L%2==0?"even":"odd"),_.row.domNode.setAttribute("aria-setsize",String(this.accessibilityProvider.getSetSize(_.element,L,this.length))),_.row.domNode.setAttribute("aria-posinset",String(this.accessibilityProvider.getPosInSet(_.element,L))),_.row.domNode.setAttribute("id",this.getElementDomId(L)),_.row.domNode.classList.toggle("drop-target",_.dropTarget)}removeItemFromDOM(_){const L=this.items[_];if(L.dragStartDisposable.dispose(),L.row){const w=this.renderers.get(L.templateId);w&&w.disposeElement&&w.disposeElement(L.element,_,L.row.templateData,L.size),this.cache.release(L.row),L.row=null}this.horizontalScrolling&&this.eventuallyUpdateScrollWidth()}getScrollTop(){return this.scrollableElement.getScrollPosition().scrollTop}setScrollTop(_,L){this.scrollableElementUpdateDisposable&&(this.scrollableElementUpdateDisposable.dispose(),this.scrollableElementUpdateDisposable=null,this.scrollableElement.setScrollDimensions({scrollHeight:this.scrollHeight})),this.scrollableElement.setScrollPosition({scrollTop:_,reuseAnimation:L})}get scrollTop(){return this.getScrollTop()}set scrollTop(_){this.setScrollTop(_)}get scrollHeight(){return this._scrollHeight+(this.horizontalScrolling?10:0)+this.additionalScrollHeight}get onMouseClick(){return i.Event.map(this.disposables.add(new I.DomEmitter(this.domNode,"click")).event,_=>this.toMouseEvent(_))}get onMouseDblClick(){return i.Event.map(this.disposables.add(new I.DomEmitter(this.domNode,"dblclick")).event,_=>this.toMouseEvent(_))}get onMouseMiddleClick(){return i.Event.filter(i.Event.map(this.disposables.add(new I.DomEmitter(this.domNode,"auxclick")).event,_=>this.toMouseEvent(_)),_=>_.browserEvent.button===1)}get onMouseDown(){return i.Event.map(this.disposables.add(new I.DomEmitter(this.domNode,"mousedown")).event,_=>this.toMouseEvent(_))}get onContextMenu(){return i.Event.any(i.Event.map(this.disposables.add(new I.DomEmitter(this.domNode,"contextmenu")).event,_=>this.toMouseEvent(_)),i.Event.map(this.disposables.add(new I.DomEmitter(this.domNode,b.EventType.Contextmenu)).event,_=>this.toGestureEvent(_)))}get onTouchStart(){return i.Event.map(this.disposables.add(new I.DomEmitter(this.domNode,"touchstart")).event,_=>this.toTouchEvent(_))}get onTap(){return i.Event.map(this.disposables.add(new I.DomEmitter(this.rowsContainer,b.EventType.Tap)).event,_=>this.toGestureEvent(_))}toMouseEvent(_){const L=this.getItemIndexFromEventTarget(_.target||null),w=typeof L=="undefined"?void 0:this.items[L],k=w&&w.element;return{browserEvent:_,index:L,element:k}}toTouchEvent(_){const L=this.getItemIndexFromEventTarget(_.target||null),w=typeof L=="undefined"?void 0:this.items[L],k=w&&w.element;return{browserEvent:_,index:L,element:k}}toGestureEvent(_){const L=this.getItemIndexFromEventTarget(_.initialTarget||null),w=typeof L=="undefined"?void 0:this.items[L],k=w&&w.element;return{browserEvent:_,index:L,element:k}}toDragEvent(_){const L=this.getItemIndexFromEventTarget(_.target||null),w=typeof L=="undefined"?void 0:this.items[L],k=w&&w.element;return{browserEvent:_,index:L,element:k}}onScroll(_){try{const L=this.getRenderRange(this.lastRenderTop,this.lastRenderHeight);this.render(L,_.scrollTop,_.height,_.scrollLeft,_.scrollWidth),this.supportDynamicHeights&&this._rerender(_.scrollTop,_.height,_.inSmoothScrolling)}catch(L){throw console.error("Got bad scroll event:",_),L}}onTouchChange(_){_.preventDefault(),_.stopPropagation(),this.scrollTop-=_.translationY}onDragStart(_,L,w){if(!w.dataTransfer)return;const k=this.dnd.getDragElements(_);if(w.dataTransfer.effectAllowed="copyMove",w.dataTransfer.setData(N.DataTransfers.TEXT,L),w.dataTransfer.setDragImage){let D;this.dnd.getDragLabel&&(D=this.dnd.getDragLabel(k,w)),typeof D=="undefined"&&(D=String(k.length));const M=(0,T.$)(".monaco-drag-image");M.textContent=D,document.body.appendChild(M),w.dataTransfer.setDragImage(M,-10,-10),setTimeout(()=>document.body.removeChild(M),0)}this.currentDragData=new n(k),N.StaticDND.CurrentDragAndDropData=new d(k),this.dnd.onDragStart&&this.dnd.onDragStart(this.currentDragData,w)}onDragOver(_){if(_.browserEvent.preventDefault(),this.onDragLeaveTimeout.dispose(),N.StaticDND.CurrentDragAndDropData&&N.StaticDND.CurrentDragAndDropData.getData()==="vscode-ui"||(this.setupDragAndDropScrollTopAnimation(_.browserEvent),!_.browserEvent.dataTransfer))return!1;if(!this.currentDragData)if(N.StaticDND.CurrentDragAndDropData)this.currentDragData=N.StaticDND.CurrentDragAndDropData;else{if(!_.browserEvent.dataTransfer.types)return!1;this.currentDragData=new u}const L=this.dnd.onDragOver(this.currentDragData,_.element,_.index,_.browserEvent);if(this.canDrop=typeof L=="boolean"?L:L.accept,!this.canDrop)return this.currentDragFeedback=void 0,this.currentDragFeedbackDisposable.dispose(),!1;_.browserEvent.dataTransfer.dropEffect=typeof L!="boolean"&&L.effect===0?"copy":"move";let w;if(typeof L!="boolean"&&L.feedback?w=L.feedback:typeof _.index=="undefined"?w=[-1]:w=[_.index],w=(0,p.distinct)(w).filter(k=>k>=-1&&kk-D),w=w[0]===-1?[-1]:w,f(this.currentDragFeedback,w))return!0;if(this.currentDragFeedback=w,this.currentDragFeedbackDisposable.dispose(),w[0]===-1)this.domNode.classList.add("drop-target"),this.rowsContainer.classList.add("drop-target"),this.currentDragFeedbackDisposable=(0,t.toDisposable)(()=>{this.domNode.classList.remove("drop-target"),this.rowsContainer.classList.remove("drop-target")});else{for(const k of w){const D=this.items[k];D.dropTarget=!0,D.row&&D.row.domNode.classList.add("drop-target")}this.currentDragFeedbackDisposable=(0,t.toDisposable)(()=>{for(const k of w){const D=this.items[k];D.dropTarget=!1,D.row&&D.row.domNode.classList.remove("drop-target")}})}return!0}onDragLeave(_){var L,w;this.onDragLeaveTimeout.dispose(),this.onDragLeaveTimeout=(0,h.disposableTimeout)(()=>this.clearDragOverFeedback(),100),this.currentDragData&&((w=(L=this.dnd).onDragLeave)===null||w===void 0||w.call(L,this.currentDragData,_.element,_.index,_.browserEvent))}onDrop(_){if(!this.canDrop)return;const L=this.currentDragData;this.teardownDragAndDropScrollTopAnimation(),this.clearDragOverFeedback(),this.currentDragData=void 0,N.StaticDND.CurrentDragAndDropData=void 0,!(!L||!_.browserEvent.dataTransfer)&&(_.browserEvent.preventDefault(),L.update(_.browserEvent.dataTransfer),this.dnd.drop(L,_.element,_.index,_.browserEvent))}onDragEnd(_){this.canDrop=!1,this.teardownDragAndDropScrollTopAnimation(),this.clearDragOverFeedback(),this.currentDragData=void 0,N.StaticDND.CurrentDragAndDropData=void 0,this.dnd.onDragEnd&&this.dnd.onDragEnd(_)}clearDragOverFeedback(){this.currentDragFeedback=void 0,this.currentDragFeedbackDisposable.dispose(),this.currentDragFeedbackDisposable=t.Disposable.None}setupDragAndDropScrollTopAnimation(_){if(!this.dragOverAnimationDisposable){const L=(0,T.getTopLeftOffset)(this.domNode).top;this.dragOverAnimationDisposable=(0,T.animate)(this.animateDragAndDropScrollTop.bind(this,L))}this.dragOverAnimationStopDisposable.dispose(),this.dragOverAnimationStopDisposable=(0,h.disposableTimeout)(()=>{this.dragOverAnimationDisposable&&(this.dragOverAnimationDisposable.dispose(),this.dragOverAnimationDisposable=void 0)},1e3),this.dragOverMouseY=_.pageY}animateDragAndDropScrollTop(_){if(this.dragOverMouseY===void 0)return;const L=this.dragOverMouseY-_,w=this.renderHeight-35;L<35?this.scrollTop+=Math.max(-14,Math.floor(.3*(L-35))):L>w&&(this.scrollTop+=Math.min(14,Math.floor(.3*(L-w))))}teardownDragAndDropScrollTopAnimation(){this.dragOverAnimationStopDisposable.dispose(),this.dragOverAnimationDisposable&&(this.dragOverAnimationDisposable.dispose(),this.dragOverAnimationDisposable=void 0)}getItemIndexFromEventTarget(_){const L=this.scrollableElement.getDomNode();let w=_;for(;w instanceof HTMLElement&&w!==this.rowsContainer&&L.contains(w);){const k=w.getAttribute("data-index");if(k){const D=Number(k);if(!isNaN(D))return D}w=w.parentElement}}getRenderRange(_,L){return{start:this.rangeMap.indexAt(_),end:this.rangeMap.indexAfter(_+L-1)}}_rerender(_,L,w){const k=this.getRenderRange(_,L);let D,M;_===this.elementTop(k.start)?(D=k.start,M=0):k.end-k.start>1&&(D=k.start+1,M=this.elementTop(D)-_);let O=0;for(;;){const F=this.getRenderRange(_,L);let R=!1;for(let A=F.start;AX.templateData===U);if(x>=0){const X=this.renderedElements[x];this.trait.unrender(U),X.index=z}else{const X={index:z,templateData:U};this.renderedElements.push(X)}this.trait.renderIndex(z,U)}splice(W,z,U){const x=[];for(const X of this.renderedElements)X.index=W+z&&x.push({index:X.index+U-z,templateData:X.templateData});this.renderedElements=x}renderIndexes(W){for(const{index:z,templateData:U}of this.renderedElements)W.indexOf(z)>-1&&this.trait.renderIndex(z,U)}disposeTemplate(W){const z=this.renderedElements.findIndex(U=>U.templateData===W);z<0||this.renderedElements.splice(z,1)}}class f{constructor(W){this._trait=W,this.length=0,this.indexes=[],this.sortedIndexes=[],this._onChange=new t.Emitter,this.onChange=this._onChange.event}get trait(){return this._trait}get renderer(){return new u(this)}splice(W,z,U){var x;z=Math.max(0,Math.min(z,this.length-W));const X=U.length-z,le=W+z,fe=[...this.sortedIndexes.filter(H=>HH?Q+W:-1).filter(H=>H!==-1),...this.sortedIndexes.filter(H=>H>=le).map(H=>H+X)],$=this.length+X;if(this.sortedIndexes.length>0&&fe.length===0&&$>0){const H=(x=this.sortedIndexes.find(Q=>Q>=W))!==null&&x!==void 0?x:$-1;fe.push(Math.min(H,$-1))}this.renderer.splice(W,z,U.length),this._set(fe,fe),this.length=$}renderIndex(W,z){z.classList.toggle(this._trait,this.contains(W))}unrender(W){W.classList.remove(this._trait)}set(W,z){return this._set(W,[...W].sort(Y),z)}_set(W,z,U){const x=this.indexes,X=this.sortedIndexes;this.indexes=W,this.sortedIndexes=z;const le=j(X,W);return this.renderer.renderIndexes(le),this._onChange.fire({indexes:W,browserEvent:U}),x}get(){return this.indexes}contains(W){return(0,p.binarySearch)(this.sortedIndexes,W,Y)>=0}dispose(){(0,c.dispose)(this._onChange)}}Be([i.memoize],f.prototype,"renderer",null);class S extends f{constructor(W){super("selected");this.setAriaSelected=W}renderIndex(W,z){super.renderIndex(W,z),this.setAriaSelected&&(this.contains(W)?z.setAttribute("aria-selected","true"):z.setAttribute("aria-selected","false"))}}class v{constructor(W,z,U){this.trait=W,this.view=z,this.identityProvider=U}splice(W,z,U){if(!this.identityProvider)return this.trait.splice(W,z,U.map(()=>!1));const x=this.trait.get().map(le=>this.identityProvider.getId(this.view.element(le)).toString()),X=U.map(le=>x.indexOf(this.identityProvider.getId(le).toString())>-1);this.trait.splice(W,z,X)}}function m(G){return G.tagName==="INPUT"||G.tagName==="TEXTAREA"}e.isInputElement=m;function _(G){return G.classList.contains("monaco-editor")?!0:G.classList.contains("monaco-list")||!G.parentElement?!1:_(G.parentElement)}e.isMonacoEditor=_;class L{constructor(W,z,U){this.list=W,this.view=z,this.disposables=new c.DisposableStore,this.multipleSelectionDisposables=new c.DisposableStore,this.onKeyDown.filter(x=>x.keyCode===3).on(this.onEnter,this,this.disposables),this.onKeyDown.filter(x=>x.keyCode===16).on(this.onUpArrow,this,this.disposables),this.onKeyDown.filter(x=>x.keyCode===18).on(this.onDownArrow,this,this.disposables),this.onKeyDown.filter(x=>x.keyCode===11).on(this.onPageUpArrow,this,this.disposables),this.onKeyDown.filter(x=>x.keyCode===12).on(this.onPageDownArrow,this,this.disposables),this.onKeyDown.filter(x=>x.keyCode===9).on(this.onEscape,this,this.disposables),U.multipleSelectionSupport!==!1&&this.onKeyDown.filter(x=>(s.isMacintosh?x.metaKey:x.ctrlKey)&&x.keyCode===31).on(this.onCtrlA,this,this.multipleSelectionDisposables)}get onKeyDown(){return t.Event.chain(this.disposables.add(new N.DomEmitter(this.view.domNode,"keydown")).event).filter(W=>!m(W.target)).map(W=>new T.StandardKeyboardEvent(W))}updateOptions(W){W.multipleSelectionSupport!==void 0&&(this.multipleSelectionDisposables.clear(),W.multipleSelectionSupport&&this.onKeyDown.filter(z=>(s.isMacintosh?z.metaKey:z.ctrlKey)&&z.keyCode===31).on(this.onCtrlA,this,this.multipleSelectionDisposables))}onEnter(W){W.preventDefault(),W.stopPropagation(),this.list.setSelection(this.list.getFocus(),W.browserEvent)}onUpArrow(W){W.preventDefault(),W.stopPropagation(),this.list.focusPrevious(1,!1,W.browserEvent);const z=this.list.getFocus()[0];this.list.setAnchor(z),this.list.reveal(z),this.view.domNode.focus()}onDownArrow(W){W.preventDefault(),W.stopPropagation(),this.list.focusNext(1,!1,W.browserEvent);const z=this.list.getFocus()[0];this.list.setAnchor(z),this.list.reveal(z),this.view.domNode.focus()}onPageUpArrow(W){W.preventDefault(),W.stopPropagation(),this.list.focusPreviousPage(W.browserEvent);const z=this.list.getFocus()[0];this.list.setAnchor(z),this.list.reveal(z),this.view.domNode.focus()}onPageDownArrow(W){W.preventDefault(),W.stopPropagation(),this.list.focusNextPage(W.browserEvent);const z=this.list.getFocus()[0];this.list.setAnchor(z),this.list.reveal(z),this.view.domNode.focus()}onCtrlA(W){W.preventDefault(),W.stopPropagation(),this.list.setSelection((0,p.range)(this.list.length),W.browserEvent),this.list.setAnchor(void 0),this.view.domNode.focus()}onEscape(W){this.list.getSelection().length&&(W.preventDefault(),W.stopPropagation(),this.list.setSelection([],W.browserEvent),this.list.setAnchor(void 0),this.view.domNode.focus())}dispose(){this.disposables.dispose(),this.multipleSelectionDisposables.dispose()}}Be([i.memoize],L.prototype,"onKeyDown",null);var w;(function(G){G[G.Idle=0]="Idle",G[G.Typing=1]="Typing"})(w||(w={})),e.DefaultKeyboardNavigationDelegate=new class{mightProducePrintableCharacter(G){return G.ctrlKey||G.metaKey||G.altKey?!1:G.keyCode>=31&&G.keyCode<=56||G.keyCode>=21&&G.keyCode<=30||G.keyCode>=93&&G.keyCode<=102||G.keyCode>=80&&G.keyCode<=90}};class k{constructor(W,z,U,x){this.list=W,this.view=z,this.keyboardNavigationLabelProvider=U,this.delegate=x,this.enabled=!1,this.state=w.Idle,this.automaticKeyboardNavigation=!0,this.triggered=!1,this.previouslyFocused=-1,this.enabledDisposables=new c.DisposableStore,this.disposables=new c.DisposableStore,this.updateOptions(W.options)}updateOptions(W){(typeof W.enableKeyboardNavigation=="undefined"?!0:!!W.enableKeyboardNavigation)?this.enable():this.disable(),typeof W.automaticKeyboardNavigation!="undefined"&&(this.automaticKeyboardNavigation=W.automaticKeyboardNavigation)}enable(){if(this.enabled)return;const W=t.Event.chain(this.enabledDisposables.add(new N.DomEmitter(this.view.domNode,"keydown")).event).filter(x=>!m(x.target)).filter(()=>this.automaticKeyboardNavigation||this.triggered).map(x=>new T.StandardKeyboardEvent(x)).filter(x=>this.delegate.mightProducePrintableCharacter(x)).forEach(x=>x.preventDefault()).map(x=>x.browserEvent.key).event,z=t.Event.debounce(W,()=>null,800);t.Event.reduce(t.Event.any(W,z),(x,X)=>X===null?null:(x||"")+X)(this.onInput,this,this.enabledDisposables),z(this.onClear,this,this.enabledDisposables),this.enabled=!0,this.triggered=!1}disable(){!this.enabled||(this.enabledDisposables.clear(),this.enabled=!1,this.triggered=!1)}onClear(){var W;const z=this.list.getFocus();if(z.length>0&&z[0]===this.previouslyFocused){const U=(W=this.list.options.accessibilityProvider)===null||W===void 0?void 0:W.getAriaLabel(this.list.element(z[0]));U&&(0,b.alert)(U)}this.previouslyFocused=-1}onInput(W){if(!W){this.state=w.Idle,this.triggered=!1;return}const z=this.list.getFocus(),U=z.length>0?z[0]:0,x=this.state===w.Idle?1:0;this.state=w.Typing;for(let X=0;X!m(x.target)).map(x=>new T.StandardKeyboardEvent(x)).filter(x=>x.keyCode===2&&!x.ctrlKey&&!x.metaKey&&!x.shiftKey&&!x.altKey).on(this.onTab,this,this.disposables)}onTab(W){if(W.target!==this.view.domNode)return;const z=this.list.getFocus();if(z.length===0)return;const U=this.view.domElement(z[0]);if(!U)return;const x=U.querySelector("[tabIndex]");if(!x||!(x instanceof HTMLElement)||x.tabIndex===-1)return;const X=window.getComputedStyle(x);X.visibility==="hidden"||X.display==="none"||(W.preventDefault(),W.stopPropagation(),x.focus())}dispose(){this.disposables.dispose()}}function M(G){return s.isMacintosh?G.browserEvent.metaKey:G.browserEvent.ctrlKey}e.isSelectionSingleChangeEvent=M;function O(G){return G.browserEvent.shiftKey}e.isSelectionRangeChangeEvent=O;function F(G){return G instanceof MouseEvent&&G.button===2}const R={isSelectionSingleChangeEvent:M,isSelectionRangeChangeEvent:O};class A{constructor(W){this.list=W,this.disposables=new c.DisposableStore,this._onPointer=new t.Emitter,this.onPointer=this._onPointer.event,W.options.multipleSelectionSupport!==!1&&(this.multipleSelectionController=this.list.options.multipleSelectionController||R),this.mouseSupport=typeof W.options.mouseSupport=="undefined"||!!W.options.mouseSupport,this.mouseSupport&&(W.onMouseDown(this.onMouseDown,this,this.disposables),W.onContextMenu(this.onContextMenu,this,this.disposables),W.onMouseDblClick(this.onDoubleClick,this,this.disposables),W.onTouchStart(this.onMouseDown,this,this.disposables),this.disposables.add(I.Gesture.addTarget(W.getHTMLElement()))),t.Event.any(W.onMouseClick,W.onMouseMiddleClick,W.onTap)(this.onViewPointer,this,this.disposables)}updateOptions(W){W.multipleSelectionSupport!==void 0&&(this.multipleSelectionController=void 0,W.multipleSelectionSupport&&(this.multipleSelectionController=this.list.options.multipleSelectionController||R))}isSelectionSingleChangeEvent(W){return this.multipleSelectionController?this.multipleSelectionController.isSelectionSingleChangeEvent(W):!1}isSelectionRangeChangeEvent(W){return this.multipleSelectionController?this.multipleSelectionController.isSelectionRangeChangeEvent(W):!1}isSelectionChangeEvent(W){return this.isSelectionSingleChangeEvent(W)||this.isSelectionRangeChangeEvent(W)}onMouseDown(W){_(W.browserEvent.target)||document.activeElement!==W.browserEvent.target&&this.list.domFocus()}onContextMenu(W){if(_(W.browserEvent.target))return;const z=typeof W.index=="undefined"?[]:[W.index];this.list.setFocus(z,W.browserEvent)}onViewPointer(W){if(!this.mouseSupport||m(W.browserEvent.target)||_(W.browserEvent.target))return;const z=W.index;if(typeof z=="undefined"){this.list.setFocus([],W.browserEvent),this.list.setSelection([],W.browserEvent),this.list.setAnchor(void 0);return}if(this.isSelectionRangeChangeEvent(W))return this.changeSelection(W);if(this.isSelectionChangeEvent(W))return this.changeSelection(W);this.list.setFocus([z],W.browserEvent),this.list.setAnchor(z),F(W.browserEvent)||this.list.setSelection([z],W.browserEvent),this._onPointer.fire(W)}onDoubleClick(W){if(m(W.browserEvent.target)||_(W.browserEvent.target)||this.isSelectionChangeEvent(W))return;const z=this.list.getFocus();this.list.setSelection(z,W.browserEvent)}changeSelection(W){const z=W.index;let U=this.list.getAnchor();if(this.isSelectionRangeChangeEvent(W)){if(typeof U=="undefined"){const Q=this.list.getFocus()[0];U=Q??z,this.list.setAnchor(U)}const x=Math.min(U,z),X=Math.max(U,z),le=(0,p.range)(x,X+1),fe=this.list.getSelection(),$=V(j(fe,[U]),U);if($.length===0)return;const H=j(le,K(fe,$));this.list.setSelection(H,W.browserEvent),this.list.setFocus([z],W.browserEvent)}else if(this.isSelectionSingleChangeEvent(W)){const x=this.list.getSelection(),X=x.filter(le=>le!==z);this.list.setFocus([z]),this.list.setAnchor(z),x.length===X.length?this.list.setSelection([...X,z],W.browserEvent):this.list.setSelection(X,W.browserEvent)}}dispose(){this.disposables.dispose()}}e.MouseController=A;class P{constructor(W,z){this.styleElement=W,this.selectorSuffix=z}style(W){const z=this.selectorSuffix&&`.${this.selectorSuffix}`,U=[];W.listBackground&&(W.listBackground.isOpaque()?U.push(`.monaco-list${z} .monaco-list-rows { background: ${W.listBackground}; }`):s.isMacintosh||console.warn(`List with id '${this.selectorSuffix}' was styled with a non-opaque background color. This will break sub-pixel antialiasing.`)),W.listFocusBackground&&(U.push(`.monaco-list${z}:focus .monaco-list-row.focused { background-color: ${W.listFocusBackground}; }`),U.push(`.monaco-list${z}:focus .monaco-list-row.focused:hover { background-color: ${W.listFocusBackground}; }`)),W.listFocusForeground&&U.push(`.monaco-list${z}:focus .monaco-list-row.focused { color: ${W.listFocusForeground}; }`),W.listActiveSelectionBackground&&(U.push(`.monaco-list${z}:focus .monaco-list-row.selected { background-color: ${W.listActiveSelectionBackground}; }`),U.push(`.monaco-list${z}:focus .monaco-list-row.selected:hover { background-color: ${W.listActiveSelectionBackground}; }`)),W.listActiveSelectionForeground&&U.push(`.monaco-list${z}:focus .monaco-list-row.selected { color: ${W.listActiveSelectionForeground}; }`),W.listActiveSelectionIconForeground&&U.push(`.monaco-list${z}:focus .monaco-list-row.selected .codicon { color: ${W.listActiveSelectionIconForeground}; }`),W.listFocusAndSelectionBackground&&U.push(`
.monaco-drag-image,
.monaco-list${z}:focus .monaco-list-row.selected.focused { background-color: ${W.listFocusAndSelectionBackground}; }
`),W.listFocusAndSelectionForeground&&U.push(`
.monaco-drag-image,
.monaco-list${z}:focus .monaco-list-row.selected.focused { color: ${W.listFocusAndSelectionForeground}; }
`),W.listInactiveFocusForeground&&(U.push(`.monaco-list${z} .monaco-list-row.focused { color: ${W.listInactiveFocusForeground}; }`),U.push(`.monaco-list${z} .monaco-list-row.focused:hover { color: ${W.listInactiveFocusForeground}; }`)),W.listInactiveSelectionIconForeground&&U.push(`.monaco-list${z} .monaco-list-row.focused .codicon { color: ${W.listInactiveSelectionIconForeground}; }`),W.listInactiveFocusBackground&&(U.push(`.monaco-list${z} .monaco-list-row.focused { background-color: ${W.listInactiveFocusBackground}; }`),U.push(`.monaco-list${z} .monaco-list-row.focused:hover { background-color: ${W.listInactiveFocusBackground}; }`)),W.listInactiveSelectionBackground&&(U.push(`.monaco-list${z} .monaco-list-row.selected { background-color: ${W.listInactiveSelectionBackground}; }`),U.push(`.monaco-list${z} .monaco-list-row.selected:hover { background-color: ${W.listInactiveSelectionBackground}; }`)),W.listInactiveSelectionForeground&&U.push(`.monaco-list${z} .monaco-list-row.selected { color: ${W.listInactiveSelectionForeground}; }`),W.listHoverBackground&&U.push(`.monaco-list${z}:not(.drop-target) .monaco-list-row:hover:not(.selected):not(.focused) { background-color: ${W.listHoverBackground}; }`),W.listHoverForeground&&U.push(`.monaco-list${z} .monaco-list-row:hover:not(.selected):not(.focused) { color: ${W.listHoverForeground}; }`),W.listSelectionOutline&&U.push(`.monaco-list${z} .monaco-list-row.selected { outline: 1px dotted ${W.listSelectionOutline}; outline-offset: -1px; }`),W.listFocusOutline&&U.push(`
.monaco-drag-image,
.monaco-list${z}:focus .monaco-list-row.focused { outline: 1px solid ${W.listFocusOutline}; outline-offset: -1px; }
.monaco-workbench.context-menu-visible .monaco-list${z}.last-focused .monaco-list-row.focused { outline: 1px solid ${W.listFocusOutline}; outline-offset: -1px; }
`),W.listInactiveFocusOutline&&U.push(`.monaco-list${z} .monaco-list-row.focused { outline: 1px dotted ${W.listInactiveFocusOutline}; outline-offset: -1px; }`),W.listHoverOutline&&U.push(`.monaco-list${z} .monaco-list-row:hover { outline: 1px dashed ${W.listHoverOutline}; outline-offset: -1px; }`),W.listDropBackground&&U.push(`
.monaco-list${z}.drop-target,
.monaco-list${z} .monaco-list-rows.drop-target,
.monaco-list${z} .monaco-list-row.drop-target { background-color: ${W.listDropBackground} !important; color: inherit !important; }
`),W.listFilterWidgetBackground&&U.push(`.monaco-list-type-filter { background-color: ${W.listFilterWidgetBackground} }`),W.listFilterWidgetOutline&&U.push(`.monaco-list-type-filter { border: 1px solid ${W.listFilterWidgetOutline}; }`),W.listFilterWidgetNoMatchesOutline&&U.push(`.monaco-list-type-filter.no-matches { border: 1px solid ${W.listFilterWidgetNoMatchesOutline}; }`),W.listMatchesShadow&&U.push(`.monaco-list-type-filter { box-shadow: 1px 1px 1px ${W.listMatchesShadow}; }`),W.tableColumnsBorder&&U.push(`
.monaco-table:hover > .monaco-split-view2,
.monaco-table:hover > .monaco-split-view2 .monaco-sash.vertical::before {
border-color: ${W.tableColumnsBorder};
}`),W.tableOddRowsBackgroundColor&&U.push(`
.monaco-table .monaco-list-row[data-parity=odd]:not(.focused):not(.selected):not(:hover) .monaco-table-tr,
.monaco-table .monaco-list:not(:focus) .monaco-list-row[data-parity=odd].focused:not(.selected):not(:hover) .monaco-table-tr,
.monaco-table .monaco-list:not(.focused) .monaco-list-row[data-parity=odd].focused:not(.selected):not(:hover) .monaco-table-tr {
background-color: ${W.tableOddRowsBackgroundColor};
}
`),this.styleElement.textContent=U.join(`
`)}}e.DefaultStyleController=P;const E={listFocusBackground:g.Color.fromHex("#7FB0D0"),listActiveSelectionBackground:g.Color.fromHex("#0E639C"),listActiveSelectionForeground:g.Color.fromHex("#FFFFFF"),listActiveSelectionIconForeground:g.Color.fromHex("#FFFFFF"),listFocusAndSelectionBackground:g.Color.fromHex("#094771"),listFocusAndSelectionForeground:g.Color.fromHex("#FFFFFF"),listInactiveSelectionBackground:g.Color.fromHex("#3F3F46"),listInactiveSelectionIconForeground:g.Color.fromHex("#FFFFFF"),listHoverBackground:g.Color.fromHex("#2A2D2E"),listDropBackground:g.Color.fromHex("#383B3D"),treeIndentGuidesStroke:g.Color.fromHex("#a9a9a9"),tableColumnsBorder:g.Color.fromHex("#cccccc").transparent(.2),tableOddRowsBackgroundColor:g.Color.fromHex("#cccccc").transparent(.04)},B={keyboardSupport:!0,mouseSupport:!0,multipleSelectionSupport:!0,dnd:{getDragURI(){return null},onDragStart(){},onDragOver(){return!1},drop(){}}};function V(G,W){const z=G.indexOf(W);if(z===-1)return[];const U=[];let x=z-1;for(;x>=0&&G[x]===W-(z-x);)U.push(G[x--]);for(U.reverse(),x=z;x=G.length)z.push(W[x++]);else if(x>=W.length)z.push(G[U++]);else if(G[U]===W[x]){z.push(G[U]),U++,x++;continue}else G[U]=G.length)z.push(W[x++]);else if(x>=W.length)z.push(G[U++]);else if(G[U]===W[x]){U++,x++;continue}else G[U]G-W;class J{constructor(W,z){this._templateId=W,this.renderers=z}get templateId(){return this._templateId}renderTemplate(W){return this.renderers.map(z=>z.renderTemplate(W))}renderElement(W,z,U,x){let X=0;for(const le of this.renderers)le.renderElement(W,z,U[X++],x)}disposeElement(W,z,U,x){let X=0;for(const le of this.renderers)le.disposeElement&&le.disposeElement(W,z,U[X],x),X+=1}disposeTemplate(W){let z=0;for(const U of this.renderers)U.disposeTemplate(W[z++])}}class Z{constructor(W){this.accessibilityProvider=W,this.templateId="a18n"}renderTemplate(W){return W}renderElement(W,z,U){const x=this.accessibilityProvider.getAriaLabel(W);x?U.setAttribute("aria-label",x):U.removeAttribute("aria-label");const X=this.accessibilityProvider.getAriaLevel&&this.accessibilityProvider.getAriaLevel(W);typeof X=="number"?U.setAttribute("aria-level",`${X}`):U.removeAttribute("aria-level")}disposeTemplate(W){}}class ie{constructor(W,z){this.list=W,this.dnd=z}getDragElements(W){const z=this.list.getSelectedElements();return z.indexOf(W)>-1?z:[W]}getDragURI(W){return this.dnd.getDragURI(W)}getDragLabel(W,z){if(this.dnd.getDragLabel)return this.dnd.getDragLabel(W,z)}onDragStart(W,z){this.dnd.onDragStart&&this.dnd.onDragStart(W,z)}onDragOver(W,z,U,x){return this.dnd.onDragOver(W,z,U,x)}onDragLeave(W,z,U,x){var X,le;(le=(X=this.dnd).onDragLeave)===null||le===void 0||le.call(X,W,z,U,x)}onDragEnd(W){this.dnd.onDragEnd&&this.dnd.onDragEnd(W)}drop(W,z,U,x){this.dnd.drop(W,z,U,x)}}class ne{constructor(W,z,U,x,X=B){var le;this.user=W,this._options=X,this.focus=new f("focused"),this.anchor=new f("anchor"),this.eventBufferer=new t.EventBufferer,this._ariaLabel="",this.disposables=new c.DisposableStore,this._onDidDispose=new t.Emitter,this.onDidDispose=this._onDidDispose.event;const fe=this._options.accessibilityProvider&&this._options.accessibilityProvider.getWidgetRole?(le=this._options.accessibilityProvider)===null||le===void 0?void 0:le.getWidgetRole():"list";this.selection=new S(fe!=="listbox"),(0,a.mixin)(X,E,!1);const $=[this.focus.renderer,this.selection.renderer];this.accessibilityProvider=X.accessibilityProvider,this.accessibilityProvider&&($.push(new Z(this.accessibilityProvider)),this.accessibilityProvider.onDidChangeActiveDescendant&&this.accessibilityProvider.onDidChangeActiveDescendant(this.onDidChangeActiveDescendant,this,this.disposables)),x=x.map(Q=>new J(Q.templateId,[...$,Q]));const H=Object.assign(Object.assign({},X),{dnd:X.dnd&&new ie(this,X.dnd)});if(this.view=new d.ListView(z,U,x,H),this.view.domNode.setAttribute("role",fe),X.styleController)this.styleController=X.styleController(this.view.domId);else{const Q=(0,y.createStyleSheet)(this.view.domNode);this.styleController=new P(Q,this.view.domId)}if(this.spliceable=new C.CombinedSpliceable([new v(this.focus,this.view,X.identityProvider),new v(this.selection,this.view,X.identityProvider),new v(this.anchor,this.view,X.identityProvider),this.view]),this.disposables.add(this.focus),this.disposables.add(this.selection),this.disposables.add(this.anchor),this.disposables.add(this.view),this.disposables.add(this._onDidDispose),this.disposables.add(new D(this,this.view)),(typeof X.keyboardSupport!="boolean"||X.keyboardSupport)&&(this.keyboardController=new L(this,this.view,X),this.disposables.add(this.keyboardController)),X.keyboardNavigationLabelProvider){const Q=X.keyboardNavigationDelegate||e.DefaultKeyboardNavigationDelegate;this.typeLabelController=new k(this,this.view,X.keyboardNavigationLabelProvider,Q),this.disposables.add(this.typeLabelController)}this.mouseController=this.createMouseController(X),this.disposables.add(this.mouseController),this.onDidChangeFocus(this._onFocusChange,this,this.disposables),this.onDidChangeSelection(this._onSelectionChange,this,this.disposables),this.accessibilityProvider&&(this.ariaLabel=this.accessibilityProvider.getWidgetAriaLabel()),this._options.multipleSelectionSupport!==!1&&this.view.domNode.setAttribute("aria-multiselectable","true")}get onDidChangeFocus(){return t.Event.map(this.eventBufferer.wrapEvent(this.focus.onChange),W=>this.toListEvent(W))}get onDidChangeSelection(){return t.Event.map(this.eventBufferer.wrapEvent(this.selection.onChange),W=>this.toListEvent(W))}get domId(){return this.view.domId}get onMouseClick(){return this.view.onMouseClick}get onMouseDblClick(){return this.view.onMouseDblClick}get onMouseMiddleClick(){return this.view.onMouseMiddleClick}get onPointer(){return this.mouseController.onPointer}get onMouseDown(){return this.view.onMouseDown}get onTouchStart(){return this.view.onTouchStart}get onTap(){return this.view.onTap}get onContextMenu(){let W=!1;const z=t.Event.chain(this.disposables.add(new N.DomEmitter(this.view.domNode,"keydown")).event).map(X=>new T.StandardKeyboardEvent(X)).filter(X=>W=X.keyCode===58||X.shiftKey&&X.keyCode===68).map(N.stopEvent).filter(()=>!1).event,U=t.Event.chain(this.disposables.add(new N.DomEmitter(this.view.domNode,"keyup")).event).forEach(()=>W=!1).map(X=>new T.StandardKeyboardEvent(X)).filter(X=>X.keyCode===58||X.shiftKey&&X.keyCode===68).map(N.stopEvent).map(({browserEvent:X})=>{const le=this.getFocus(),fe=le.length?le[0]:void 0,$=typeof fe!="undefined"?this.view.element(fe):void 0,H=typeof fe!="undefined"?this.view.domElement(fe):this.view.domNode;return{index:fe,element:$,anchor:H,browserEvent:X}}).event,x=t.Event.chain(this.view.onContextMenu).filter(X=>!W).map(({element:X,index:le,browserEvent:fe})=>({element:X,index:le,anchor:{x:fe.pageX+1,y:fe.pageY},browserEvent:fe})).event;return t.Event.any(z,U,x)}get onKeyDown(){return this.disposables.add(new N.DomEmitter(this.view.domNode,"keydown")).event}get onDidFocus(){return t.Event.signal(this.disposables.add(new N.DomEmitter(this.view.domNode,"focus",!0)).event)}createMouseController(W){return new A(this)}updateOptions(W={}){var z;this._options=Object.assign(Object.assign({},this._options),W),this.typeLabelController&&this.typeLabelController.updateOptions(this._options),this._options.multipleSelectionController!==void 0&&(this._options.multipleSelectionSupport?this.view.domNode.setAttribute("aria-multiselectable","true"):this.view.domNode.removeAttribute("aria-multiselectable")),this.mouseController.updateOptions(W),(z=this.keyboardController)===null||z===void 0||z.updateOptions(W),this.view.updateOptions(W)}get options(){return this._options}splice(W,z,U=[]){if(W<0||W>this.view.length)throw new n.ListError(this.user,`Invalid start index: ${W}`);if(z<0)throw new n.ListError(this.user,`Invalid delete count: ${z}`);z===0&&U.length===0||this.eventBufferer.bufferEvents(()=>this.spliceable.splice(W,z,U))}rerender(){this.view.rerender()}element(W){return this.view.element(W)}get length(){return this.view.length}get contentHeight(){return this.view.contentHeight}get scrollTop(){return this.view.getScrollTop()}set scrollTop(W){this.view.setScrollTop(W)}get ariaLabel(){return this._ariaLabel}set ariaLabel(W){this._ariaLabel=W,this.view.domNode.setAttribute("aria-label",W)}domFocus(){this.view.domNode.focus({preventScroll:!0})}layout(W,z){this.view.layout(W,z)}setSelection(W,z){for(const U of W)if(U<0||U>=this.length)throw new n.ListError(this.user,`Invalid index ${U}`);this.selection.set(W,z)}getSelection(){return this.selection.get()}getSelectedElements(){return this.getSelection().map(W=>this.view.element(W))}setAnchor(W){if(typeof W=="undefined"){this.anchor.set([]);return}if(W<0||W>=this.length)throw new n.ListError(this.user,`Invalid index ${W}`);this.anchor.set([W])}getAnchor(){return(0,p.firstOrDefault)(this.anchor.get(),void 0)}getAnchorElement(){const W=this.getAnchor();return typeof W=="undefined"?void 0:this.element(W)}setFocus(W,z){for(const U of W)if(U<0||U>=this.length)throw new n.ListError(this.user,`Invalid index ${U}`);this.focus.set(W,z)}focusNext(W=1,z=!1,U,x){if(this.length===0)return;const X=this.focus.get(),le=this.findNextIndex(X.length>0?X[0]+W:0,z,x);le>-1&&this.setFocus([le],U)}focusPrevious(W=1,z=!1,U,x){if(this.length===0)return;const X=this.focus.get(),le=this.findPreviousIndex(X.length>0?X[0]-W:0,z,x);le>-1&&this.setFocus([le],U)}focusNextPage(W,z){return Ae(this,void 0,void 0,function*(){let U=this.view.indexAt(this.view.getScrollTop()+this.view.renderHeight);U=U===0?0:U-1;const x=this.view.element(U),X=this.getFocusedElements()[0];if(X!==x){const le=this.findPreviousIndex(U,!1,z);le>-1&&X!==this.view.element(le)?this.setFocus([le],W):this.setFocus([U],W)}else{const le=this.view.getScrollTop();this.view.setScrollTop(le+this.view.renderHeight-this.view.elementHeight(U)),this.view.getScrollTop()!==le&&(this.setFocus([]),yield(0,h.timeout)(0),yield this.focusNextPage(W,z))}})}focusPreviousPage(W,z){return Ae(this,void 0,void 0,function*(){let U;const x=this.view.getScrollTop();x===0?U=this.view.indexAt(x):U=this.view.indexAfter(x-1);const X=this.view.element(U),le=this.getFocusedElements()[0];if(le!==X){const fe=this.findNextIndex(U,!1,z);fe>-1&&le!==this.view.element(fe)?this.setFocus([fe],W):this.setFocus([U],W)}else{const fe=x;this.view.setScrollTop(x-this.view.renderHeight),this.view.getScrollTop()!==fe&&(this.setFocus([]),yield(0,h.timeout)(0),yield this.focusPreviousPage(W,z))}})}focusLast(W,z){if(this.length===0)return;const U=this.findPreviousIndex(this.length-1,!1,z);U>-1&&this.setFocus([U],W)}focusFirst(W,z){this.focusNth(0,W,z)}focusNth(W,z,U){if(this.length===0)return;const x=this.findNextIndex(W,!1,U);x>-1&&this.setFocus([x],z)}findNextIndex(W,z=!1,U){for(let x=0;x=this.length&&!z)return-1;if(W=W%this.length,!U||U(this.element(W)))return W;W++}return-1}findPreviousIndex(W,z=!1,U){for(let x=0;xthis.view.element(W))}reveal(W,z){if(W<0||W>=this.length)throw new n.ListError(this.user,`Invalid index ${W}`);const U=this.view.getScrollTop(),x=this.view.elementTop(W),X=this.view.elementHeight(W);if((0,o.isNumber)(z)){const le=X-this.view.renderHeight;this.view.setScrollTop(le*(0,l.clamp)(z,0,1)+x)}else{const le=x+X,fe=U+this.view.renderHeight;x=fe||(x=fe&&X>=this.view.renderHeight?this.view.setScrollTop(x):le>=fe&&this.view.setScrollTop(le-this.view.renderHeight))}}getRelativeTop(W){if(W<0||W>=this.length)throw new n.ListError(this.user,`Invalid index ${W}`);const z=this.view.getScrollTop(),U=this.view.elementTop(W),x=this.view.elementHeight(W);if(Uz+this.view.renderHeight)return null;const X=x-this.view.renderHeight;return Math.abs((z-U)/X)}getHTMLElement(){return this.view.domNode}style(W){this.styleController.style(W)}toListEvent({indexes:W,browserEvent:z}){return{indexes:W,elements:W.map(U=>this.view.element(U)),browserEvent:z}}_onFocusChange(){const W=this.focus.get();this.view.domNode.classList.toggle("element-focused",W.length>0),this.onDidChangeActiveDescendant()}onDidChangeActiveDescendant(){var W;const z=this.focus.get();if(z.length>0){let U;((W=this.accessibilityProvider)===null||W===void 0?void 0:W.getActiveDescendantId)&&(U=this.accessibilityProvider.getActiveDescendantId(this.view.element(z[0]))),this.view.domNode.setAttribute("aria-activedescendant",U||this.view.getElementDomId(z[0]))}else this.view.domNode.removeAttribute("aria-activedescendant")}_onSelectionChange(){const W=this.selection.get();this.view.domNode.classList.toggle("selection-none",W.length===0),this.view.domNode.classList.toggle("selection-single",W.length===1),this.view.domNode.classList.toggle("selection-multiple",W.length>1)}dispose(){this._onDidDispose.fire(),this.disposables.dispose(),this._onDidDispose.dispose()}}Be([i.memoize],ne.prototype,"onDidChangeFocus",null),Be([i.memoize],ne.prototype,"onDidChangeSelection",null),Be([i.memoize],ne.prototype,"onContextMenu",null),Be([i.memoize],ne.prototype,"onKeyDown",null),Be([i.memoize],ne.prototype,"onDidFocus",null),e.List=ne}),define(ee[336],te([0,1,19,23,4,2,111,219]),function(q,e,y,N,T,I,b){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.PagedList=void 0;class C{constructor(t,r){this.renderer=t,this.modelProvider=r}get templateId(){return this.renderer.templateId}renderTemplate(t){return{data:this.renderer.renderTemplate(t),disposable:I.Disposable.None}}renderElement(t,r,c,l){if(c.disposable&&c.disposable.dispose(),!c.data)return;const a=this.modelProvider();if(a.isResolved(t))return this.renderer.renderElement(a.get(t),t,c.data,l);const s=new N.CancellationTokenSource,o=a.resolve(t,s.token);c.disposable={dispose:()=>s.cancel()},this.renderer.renderPlaceholder(t,c.data),o.then(n=>this.renderer.renderElement(n,t,c.data,l))}disposeTemplate(t){t.disposable&&(t.disposable.dispose(),t.disposable=void 0),t.data&&(this.renderer.disposeTemplate(t.data),t.data=void 0)}}class p{constructor(t,r){this.modelProvider=t,this.accessibilityProvider=r}getWidgetAriaLabel(){return this.accessibilityProvider.getWidgetAriaLabel()}getAriaLabel(t){const r=this.modelProvider();return r.isResolved(t)?this.accessibilityProvider.getAriaLabel(r.get(t)):null}}function h(i,t){return Object.assign(Object.assign({},t),{accessibilityProvider:t.accessibilityProvider&&new p(i,t.accessibilityProvider)})}class g{constructor(t,r,c,l,a={}){const s=()=>this.model,o=l.map(n=>new C(n,s));this.list=new b.List(t,r,c,o,h(s,a))}updateOptions(t){this.list.updateOptions(t)}getHTMLElement(){return this.list.getHTMLElement()}get onDidFocus(){return this.list.onDidFocus}get onDidDispose(){return this.list.onDidDispose}get onMouseDblClick(){return T.Event.map(this.list.onMouseDblClick,({element:t,index:r,browserEvent:c})=>({element:t===void 0?void 0:this._model.get(t),index:r,browserEvent:c}))}get onPointer(){return T.Event.map(this.list.onPointer,({element:t,index:r,browserEvent:c})=>({element:t===void 0?void 0:this._model.get(t),index:r,browserEvent:c}))}get onDidChangeSelection(){return T.Event.map(this.list.onDidChangeSelection,({elements:t,indexes:r,browserEvent:c})=>({elements:t.map(l=>this._model.get(l)),indexes:r,browserEvent:c}))}get model(){return this._model}set model(t){this._model=t,this.list.splice(0,this.list.length,(0,y.range)(t.length))}getFocus(){return this.list.getFocus()}getSelection(){return this.list.getSelection()}getSelectedElements(){return this.getSelection().map(t=>this.model.get(t))}style(t){this.list.style(t)}dispose(){this.list.dispose()}}e.PagedList=g}),define(ee[337],te([11]),{}),define(ee[221],te([0,1,7,110,63,19,29,4,2,105,134,20,337]),function(q,e,y,N,T,I,b,C,p,h,g,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.SplitView=e.Sizing=void 0;const t={separatorBorder:b.Color.transparent};class r{constructor(d,u,f,S){this.container=d,this.view=u,this.disposable=S,this._cachedVisibleSize=void 0,typeof f=="number"?(this._size=f,this._cachedVisibleSize=void 0,d.classList.add("visible")):(this._size=0,this._cachedVisibleSize=f.cachedVisibleSize)}set size(d){this._size=d}get size(){return this._size}get visible(){return typeof this._cachedVisibleSize=="undefined"}setVisible(d,u){d!==this.visible&&(d?(this.size=(0,h.clamp)(this._cachedVisibleSize,this.viewMinimumSize,this.viewMaximumSize),this._cachedVisibleSize=void 0):(this._cachedVisibleSize=typeof u=="number"?u:this.size,this.size=0),this.container.classList.toggle("visible",d),this.view.setVisible&&this.view.setVisible(d))}get minimumSize(){return this.visible?this.view.minimumSize:0}get viewMinimumSize(){return this.view.minimumSize}get maximumSize(){return this.visible?this.view.maximumSize:0}get viewMaximumSize(){return this.view.maximumSize}get priority(){return this.view.priority}get snap(){return!!this.view.snap}set enabled(d){this.container.style.pointerEvents=d?"":"none"}layout(d,u){this.layoutContainer(d),this.view.layout(this.size,d,u)}dispose(){return this.disposable.dispose(),this.view}}class c extends r{layoutContainer(d){this.container.style.top=`${d}px`,this.container.style.height=`${this.size}px`}}class l extends r{layoutContainer(d){this.container.style.left=`${d}px`,this.container.style.width=`${this.size}px`}}var a;(function(n){n[n.Idle=0]="Idle",n[n.Busy=1]="Busy"})(a||(a={}));var s;(function(n){n.Distribute={type:"distribute"};function d(f){return{type:"split",index:f}}n.Split=d;function u(f){return{type:"invisible",cachedVisibleSize:f}}n.Invisible=u})(s=e.Sizing||(e.Sizing={}));class o extends p.Disposable{constructor(d,u={}){var f,S,v,m,_;super();this.size=0,this.contentSize=0,this.proportions=void 0,this.viewItems=[],this.sashItems=[],this.state=a.Idle,this._onDidSashChange=this._register(new C.Emitter),this._onDidSashReset=this._register(new C.Emitter),this._startSnappingEnabled=!0,this._endSnappingEnabled=!0,this.onDidSashChange=this._onDidSashChange.event,this.onDidSashReset=this._onDidSashReset.event,this.orientation=(f=u.orientation)!==null&&f!==void 0?f:0,this.inverseAltBehavior=(S=u.inverseAltBehavior)!==null&&S!==void 0?S:!1,this.proportionalLayout=(v=u.proportionalLayout)!==null&&v!==void 0?v:!0,this.getSashOrthogonalSize=u.getSashOrthogonalSize,this.el=document.createElement("div"),this.el.classList.add("monaco-split-view2"),this.el.classList.add(this.orientation===0?"vertical":"horizontal"),d.appendChild(this.el),this.sashContainer=(0,y.append)(this.el,(0,y.$)(".sash-container")),this.viewContainer=(0,y.$)(".split-view-container"),this.scrollable=new g.Scrollable(125,y.scheduleAtNextAnimationFrame),this.scrollableElement=this._register(new T.SmoothScrollableElement(this.viewContainer,{vertical:this.orientation===0?(m=u.scrollbarVisibility)!==null&&m!==void 0?m:1:2,horizontal:this.orientation===1?(_=u.scrollbarVisibility)!==null&&_!==void 0?_:1:2},this.scrollable)),this.onDidScroll=this.scrollableElement.onScroll,this._register(this.onDidScroll(L=>{this.viewContainer.scrollTop=L.scrollTop,this.viewContainer.scrollLeft=L.scrollLeft})),(0,y.append)(this.el,this.scrollableElement.getDomNode()),this.style(u.styles||t),u.descriptor&&(this.size=u.descriptor.size,u.descriptor.views.forEach((L,w)=>{const k=i.isUndefined(L.visible)||L.visible?L.size:{type:"invisible",cachedVisibleSize:L.size},D=L.view;this.doAddView(D,k,w,!0)}),this.contentSize=this.viewItems.reduce((L,w)=>L+w.size,0),this.saveProportions())}get orthogonalStartSash(){return this._orthogonalStartSash}get orthogonalEndSash(){return this._orthogonalEndSash}get startSnappingEnabled(){return this._startSnappingEnabled}get endSnappingEnabled(){return this._endSnappingEnabled}set orthogonalStartSash(d){for(const u of this.sashItems)u.sash.orthogonalStartSash=d;this._orthogonalStartSash=d}set orthogonalEndSash(d){for(const u of this.sashItems)u.sash.orthogonalEndSash=d;this._orthogonalEndSash=d}set startSnappingEnabled(d){this._startSnappingEnabled!==d&&(this._startSnappingEnabled=d,this.updateSashEnablement())}set endSnappingEnabled(d){this._endSnappingEnabled!==d&&(this._endSnappingEnabled=d,this.updateSashEnablement())}style(d){d.separatorBorder.isTransparent()?(this.el.classList.remove("separator-border"),this.el.style.removeProperty("--separator-border")):(this.el.classList.add("separator-border"),this.el.style.setProperty("--separator-border",d.separatorBorder.toString()))}addView(d,u,f=this.viewItems.length,S){this.doAddView(d,u,f,S)}layout(d,u){const f=Math.max(this.size,this.contentSize);if(this.size=d,this.layoutContext=u,this.proportions)for(let S=0;Sthis.viewItems[_].priority===1),m=S.filter(_=>this.viewItems[_].priority===2);this.resize(this.viewItems.length-1,d-f,void 0,v,m)}this.distributeEmptySpace(),this.layoutViews()}saveProportions(){this.proportionalLayout&&this.contentSize>0&&(this.proportions=this.viewItems.map(d=>d.size/this.contentSize))}onSashStart({sash:d,start:u,alt:f}){for(const _ of this.viewItems)_.enabled=!1;const S=this.sashItems.findIndex(_=>_.sash===d),v=(0,p.combinedDisposable)((0,y.addDisposableListener)(document.body,"keydown",_=>m(this.sashDragState.current,_.altKey)),(0,y.addDisposableListener)(document.body,"keyup",()=>m(this.sashDragState.current,!1))),m=(_,L)=>{const w=this.viewItems.map(F=>F.size);let k=Number.NEGATIVE_INFINITY,D=Number.POSITIVE_INFINITY;if(this.inverseAltBehavior&&(L=!L),L)if(S===this.sashItems.length-1){const R=this.viewItems[S];k=(R.minimumSize-R.size)/2,D=(R.maximumSize-R.size)/2}else{const R=this.viewItems[S+1];k=(R.size-R.maximumSize)/2,D=(R.size-R.minimumSize)/2}let M,O;if(!L){const F=(0,I.range)(S,-1),R=(0,I.range)(S+1,this.viewItems.length),A=F.reduce((J,Z)=>J+(this.viewItems[Z].minimumSize-w[Z]),0),P=F.reduce((J,Z)=>J+(this.viewItems[Z].viewMaximumSize-w[Z]),0),E=R.length===0?Number.POSITIVE_INFINITY:R.reduce((J,Z)=>J+(w[Z]-this.viewItems[Z].minimumSize),0),B=R.length===0?Number.NEGATIVE_INFINITY:R.reduce((J,Z)=>J+(w[Z]-this.viewItems[Z].viewMaximumSize),0),V=Math.max(A,B),j=Math.min(E,P),K=this.findFirstSnapIndex(F),Y=this.findFirstSnapIndex(R);if(typeof K=="number"){const J=this.viewItems[K],Z=Math.floor(J.viewMinimumSize/2);M={index:K,limitDelta:J.visible?V-Z:V+Z,size:J.size}}if(typeof Y=="number"){const J=this.viewItems[Y],Z=Math.floor(J.viewMinimumSize/2);O={index:Y,limitDelta:J.visible?j+Z:j-Z,size:J.size}}}this.sashDragState={start:_,current:_,index:S,sizes:w,minDelta:k,maxDelta:D,alt:L,snapBefore:M,snapAfter:O,disposable:v}};m(u,f)}onSashChange({current:d}){const{index:u,start:f,sizes:S,alt:v,minDelta:m,maxDelta:_,snapBefore:L,snapAfter:w}=this.sashDragState;this.sashDragState.current=d;const k=d-f,D=this.resize(u,k,S,void 0,void 0,m,_,L,w);if(v){const M=u===this.sashItems.length-1,O=this.viewItems.map(B=>B.size),F=M?u:u+1,R=this.viewItems[F],A=R.size-R.maximumSize,P=R.size-R.minimumSize,E=M?u-1:u+1;this.resize(E,-D,O,void 0,void 0,A,P)}this.distributeEmptySpace(),this.layoutViews()}onSashEnd(d){this._onDidSashChange.fire(d),this.sashDragState.disposable.dispose(),this.saveProportions();for(const u of this.viewItems)u.enabled=!0}onViewChange(d,u){const f=this.viewItems.indexOf(d);f<0||f>=this.viewItems.length||(u=typeof u=="number"?u:d.size,u=(0,h.clamp)(u,d.minimumSize,d.maximumSize),this.inverseAltBehavior&&f>0?(this.resize(f-1,Math.floor((d.size-u)/2)),this.distributeEmptySpace(),this.layoutViews()):(d.size=u,this.relayout([f],void 0)))}resizeView(d,u){if(this.state!==a.Idle)throw new Error("Cant modify splitview");if(this.state=a.Busy,d<0||d>=this.viewItems.length)return;const f=(0,I.range)(this.viewItems.length).filter(_=>_!==d),S=[...f.filter(_=>this.viewItems[_].priority===1),d],v=f.filter(_=>this.viewItems[_].priority===2),m=this.viewItems[d];u=Math.round(u),u=(0,h.clamp)(u,m.minimumSize,Math.min(m.maximumSize,this.size)),m.size=u,this.relayout(S,v),this.state=a.Idle}distributeViewSizes(){const d=[];let u=0;for(const _ of this.viewItems)_.maximumSize-_.minimumSize>0&&(d.push(_),u+=_.size);const f=Math.floor(u/d.length);for(const _ of d)_.size=(0,h.clamp)(f,_.minimumSize,_.maximumSize);const S=(0,I.range)(this.viewItems.length),v=S.filter(_=>this.viewItems[_].priority===1),m=S.filter(_=>this.viewItems[_].priority===2);this.relayout(v,m)}getViewSize(d){return d<0||d>=this.viewItems.length?-1:this.viewItems[d].size}doAddView(d,u,f=this.viewItems.length,S){if(this.state!==a.Idle)throw new Error("Cant modify splitview");this.state=a.Busy;const v=(0,y.$)(".split-view-view");f===this.viewItems.length?this.viewContainer.appendChild(v):this.viewContainer.insertBefore(v,this.viewContainer.children.item(f));const m=d.onDidChange(M=>this.onViewChange(k,M)),_=(0,p.toDisposable)(()=>this.viewContainer.removeChild(v)),L=(0,p.combinedDisposable)(m,_);let w;typeof u=="number"?w=u:u.type==="split"?w=this.getViewSize(u.index)/2:u.type==="invisible"?w={cachedVisibleSize:u.cachedVisibleSize}:w=d.minimumSize;const k=this.orientation===0?new c(v,d,w,L):new l(v,d,w,L);if(this.viewItems.splice(f,0,k),this.viewItems.length>1){let M={orthogonalStartSash:this.orthogonalStartSash,orthogonalEndSash:this.orthogonalEndSash};const O=this.orientation===0?new N.Sash(this.sashContainer,{getHorizontalSashTop:J=>this.getSashPosition(J),getHorizontalSashWidth:this.getSashOrthogonalSize},Object.assign(Object.assign({},M),{orientation:1})):new N.Sash(this.sashContainer,{getVerticalSashLeft:J=>this.getSashPosition(J),getVerticalSashHeight:this.getSashOrthogonalSize},Object.assign(Object.assign({},M),{orientation:0})),F=this.orientation===0?J=>({sash:O,start:J.startY,current:J.currentY,alt:J.altKey}):J=>({sash:O,start:J.startX,current:J.currentX,alt:J.altKey}),A=C.Event.map(O.onDidStart,F)(this.onSashStart,this),E=C.Event.map(O.onDidChange,F)(this.onSashChange,this),V=C.Event.map(O.onDidEnd,()=>this.sashItems.findIndex(J=>J.sash===O))(this.onSashEnd,this),j=O.onDidReset(()=>{const J=this.sashItems.findIndex(W=>W.sash===O),Z=(0,I.range)(J,-1),ie=(0,I.range)(J+1,this.viewItems.length),ne=this.findFirstSnapIndex(Z),G=this.findFirstSnapIndex(ie);typeof ne=="number"&&!this.viewItems[ne].visible||typeof G=="number"&&!this.viewItems[G].visible||this._onDidSashReset.fire(J)}),K=(0,p.combinedDisposable)(A,E,V,j,O),Y={sash:O,disposable:K};this.sashItems.splice(f-1,0,Y)}v.appendChild(d.element);let D;typeof u!="number"&&u.type==="split"&&(D=[u.index]),S||this.relayout([f],D),this.state=a.Idle,!S&&typeof u!="number"&&u.type==="distribute"&&this.distributeViewSizes()}relayout(d,u){const f=this.viewItems.reduce((S,v)=>S+v.size,0);this.resize(this.viewItems.length-1,this.size-f,void 0,d,u),this.distributeEmptySpace(),this.layoutViews(),this.saveProportions()}resize(d,u,f=this.viewItems.map(k=>k.size),S,v,m=Number.NEGATIVE_INFINITY,_=Number.POSITIVE_INFINITY,L,w){if(d<0||d>=this.viewItems.length)return 0;const k=(0,I.range)(d,-1),D=(0,I.range)(d+1,this.viewItems.length);if(v)for(const Y of v)(0,I.pushToStart)(k,Y),(0,I.pushToStart)(D,Y);if(S)for(const Y of S)(0,I.pushToEnd)(k,Y),(0,I.pushToEnd)(D,Y);const M=k.map(Y=>this.viewItems[Y]),O=k.map(Y=>f[Y]),F=D.map(Y=>this.viewItems[Y]),R=D.map(Y=>f[Y]),A=k.reduce((Y,J)=>Y+(this.viewItems[J].minimumSize-f[J]),0),P=k.reduce((Y,J)=>Y+(this.viewItems[J].maximumSize-f[J]),0),E=D.length===0?Number.POSITIVE_INFINITY:D.reduce((Y,J)=>Y+(f[J]-this.viewItems[J].minimumSize),0),B=D.length===0?Number.NEGATIVE_INFINITY:D.reduce((Y,J)=>Y+(f[J]-this.viewItems[J].maximumSize),0),V=Math.max(A,B,m),j=Math.min(E,P,_);let K=!1;if(L){const Y=this.viewItems[L.index],J=u>=L.limitDelta;K=J!==Y.visible,Y.setVisible(J,L.size)}if(!K&&w){const Y=this.viewItems[w.index],J=u_+L.size,0);let f=this.size-u;const S=(0,I.range)(this.viewItems.length-1,-1),v=S.filter(_=>this.viewItems[_].priority===1),m=S.filter(_=>this.viewItems[_].priority===2);for(const _ of m)(0,I.pushToStart)(S,_);for(const _ of v)(0,I.pushToEnd)(S,_);typeof d=="number"&&(0,I.pushToEnd)(S,d);for(let _=0;f!==0&&_u+f.size,0);let d=0;for(const u of this.viewItems)u.layout(d,this.layoutContext),d+=u.size;this.sashItems.forEach(u=>u.sash.layout()),this.updateSashEnablement(),this.updateScrollableElement()}updateScrollableElement(){this.orientation===0?this.scrollableElement.setScrollDimensions({height:this.size,scrollHeight:this.contentSize}):this.scrollableElement.setScrollDimensions({width:this.size,scrollWidth:this.contentSize})}updateSashEnablement(){let d=!1;const u=this.viewItems.map(L=>d=L.size-L.minimumSize>0||d);d=!1;const f=this.viewItems.map(L=>d=L.maximumSize-L.size>0||d),S=[...this.viewItems].reverse();d=!1;const v=S.map(L=>d=L.size-L.minimumSize>0||d).reverse();d=!1;const m=S.map(L=>d=L.maximumSize-L.size>0||d).reverse();let _=0;for(let L=0;L0||this.startSnappingEnabled)?w.state=1:E&&u[L]&&(_0)return;if(!f.visible&&f.snap)return u}}dispose(){super.dispose(),this.viewItems.forEach(d=>d.dispose()),this.viewItems=[],this.sashItems.forEach(d=>d.disposable.dispose()),this.sashItems=[]}}e.SplitView=o}),define(ee[338],te([11]),{}),define(ee[339],te([0,1,7,111,221,4,2,338]),function(q,e,y,N,T,I,b){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Table=void 0;class C{constructor(t,r,c){this.columns=t,this.getColumnSize=c,this.templateId=C.TemplateId,this.renderedTemplates=new Set;const l=new Map(r.map(a=>[a.templateId,a]));this.renderers=[];for(const a of t){const s=l.get(a.templateId);if(!s)throw new Error(`Table cell renderer for template id ${a.templateId} not found.`);this.renderers.push(s)}}renderTemplate(t){const r=(0,y.append)(t,(0,y.$)(".monaco-table-tr")),c=[],l=[];for(let s=0;snew h(u,f)),n={size:o.reduce((u,f)=>u+f.column.weight,0),views:o.map(u=>({size:u.column.weight,view:u}))};this.splitview=this.disposables.add(new T.SplitView(this.domNode,{orientation:1,scrollbarVisibility:2,getSashOrthogonalSize:()=>this.cachedHeight,descriptor:n})),this.splitview.el.style.height=`${c.headerRowHeight}px`,this.splitview.el.style.lineHeight=`${c.headerRowHeight}px`;const d=new C(l,a,u=>this.splitview.getViewSize(u));this.list=this.disposables.add(new N.List(t,this.domNode,p(c),[d],s)),I.Event.any(...o.map(u=>u.onDidLayout))(([u,f])=>d.layoutColumn(u,f),null,this.disposables),this.splitview.onDidSashReset(u=>{const f=l.reduce((v,m)=>v+m.weight,0),S=l[u].weight/f*this.cachedWidth;this.splitview.resizeView(u,S)},null,this.disposables),this.styleElement=(0,y.createStyleSheet)(this.domNode),this.style({})}get onDidChangeFocus(){return this.list.onDidChangeFocus}get onDidChangeSelection(){return this.list.onDidChangeSelection}get onMouseDblClick(){return this.list.onMouseDblClick}get onPointer(){return this.list.onPointer}get onDidFocus(){return this.list.onDidFocus}get onDidDispose(){return this.list.onDidDispose}updateOptions(t){this.list.updateOptions(t)}splice(t,r,c=[]){this.list.splice(t,r,c)}getHTMLElement(){return this.domNode}style(t){const r=[];r.push(`.monaco-table.${this.domId} > .monaco-split-view2 .monaco-sash.vertical::before {
top: ${this.virtualDelegate.headerRowHeight+1}px;
height: calc(100% - ${this.virtualDelegate.headerRowHeight}px);
}`),this.styleElement.textContent=r.join(`
`),this.list.style(t)}getSelectedElements(){return this.list.getSelectedElements()}getSelection(){return this.list.getSelection()}getFocus(){return this.list.getFocus()}dispose(){this.disposables.dispose()}}e.Table=g,g.InstanceCount=0}),define(ee[340],te([11]),{}),define(ee[139],te([11]),{}),define(ee[222],te([0,1,7,132,139]),function(q,e,y,N){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getIconClass=void 0;const T={},I=new N.IdGenerator("quick-input-button-icon-");function b(C){if(!C)return;let p;const h=C.dark.toString();return T[h]?p=T[h]:(p=I.nextId(),y.createCSSRule(`.${p}`,`background-image: ${y.asCSSUrl(C.light||C.dark)}`),y.createCSSRule(`.vs-dark .${p}, .hc-black .${p}`,`background-image: ${y.asCSSUrl(C.dark)}`),T[h]=p),p}e.getIconClass=b}),define(ee[341],te([11]),{}),define(ee[342],te([11]),{}),define(ee[343],te([11]),{}),define(ee[344],te([11]),{}),define(ee[345],te([11]),{}),define(ee[346],te([11]),{}),define(ee[347],te([11]),{}),define(ee[348],te([11]),{}),define(ee[349],te([11]),{}),define(ee[350],te([11]),{}),define(ee[351],te([11]),{}),define(ee[352],te([11]),{}),define(ee[353],te([11]),{}),define(ee[354],te([11]),{}),define(ee[355],te([11]),{}),define(ee[356],te([11]),{}),define(ee[357],te([11]),{}),define(ee[358],te([11]),{}),define(ee[359],te([11]),{}),define(ee[360],te([11]),{}),define(ee[361],te([11]),{}),define(ee[362],te([11]),{}),define(ee[363],te([11]),{}),define(ee[364],te([11]),{}),define(ee[365],te([11]),{}),define(ee[366],te([11]),{}),define(ee[367],te([11]),{}),define(ee[368],te([11]),{}),define(ee[369],te([11]),{}),define(ee[370],te([11]),{}),define(ee[371],te([11]),{}),define(ee[372],te([11]),{}),define(ee[373],te([11]),{}),define(ee[374],te([11]),{}),define(ee[375],te([11]),{}),define(ee[376],te([11]),{}),define(ee[377],te([11]),{}),define(ee[378],te([11]),{}),define(ee[379],te([11]),{}),define(ee[380],te([11]),{}),define(ee[381],te([11]),{}),define(ee[382],te([11]),{}),define(ee[383],te([11]),{}),define(ee[384],te([11]),{}),define(ee[385],te([11]),{}),define(ee[386],te([11]),{}),define(ee[387],te([11]),{}),define(ee[223],te([0,1,2]),function(q,e,y){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ElementSizeObserver=void 0;class N extends y.Disposable{constructor(I,b,C){super();this.referenceDomElement=I,this.changeCallback=C,this.width=-1,this.height=-1,this.resizeObserver=null,this.measureReferenceDomElementToken=-1,this.measureReferenceDomElement(!1,b)}dispose(){this.stopObserving(),super.dispose()}getWidth(){return this.width}getHeight(){return this.height}startObserving(){typeof ResizeObserver!="undefined"?!this.resizeObserver&&this.referenceDomElement&&(this.resizeObserver=new ResizeObserver(I=>{I&&I[0]&&I[0].contentRect?this.observe({width:I[0].contentRect.width,height:I[0].contentRect.height}):this.observe()}),this.resizeObserver.observe(this.referenceDomElement)):this.measureReferenceDomElementToken===-1&&(this.measureReferenceDomElementToken=setInterval(()=>this.observe(),100))}stopObserving(){this.resizeObserver&&(this.resizeObserver.disconnect(),this.resizeObserver=null),this.measureReferenceDomElementToken!==-1&&(clearInterval(this.measureReferenceDomElementToken),this.measureReferenceDomElementToken=-1)}observe(I){this.measureReferenceDomElement(!0,I)}measureReferenceDomElement(I,b){let C=0,p=0;b?(C=b.width,p=b.height):this.referenceDomElement&&(C=this.referenceDomElement.clientWidth,p=this.referenceDomElement.clientHeight),C=Math.max(5,C),p=Math.max(5,p),(this.width!==C||this.height!==p)&&(this.width=C,this.height=p,I&&this.changeCallback())}}e.ElementSizeObserver=N}),define(ee[388],te([0,1,4,2]),function(q,e,y,N){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.AbstractCodeEditorService=void 0;class T extends N.Disposable{constructor(){super();this._onCodeEditorAdd=this._register(new y.Emitter),this.onCodeEditorAdd=this._onCodeEditorAdd.event,this._onCodeEditorRemove=this._register(new y.Emitter),this.onCodeEditorRemove=this._onCodeEditorRemove.event,this._onDiffEditorAdd=this._register(new y.Emitter),this._onDiffEditorRemove=this._register(new y.Emitter),this._modelProperties=new Map,this._codeEditors=Object.create(null),this._diffEditors=Object.create(null)}addCodeEditor(b){this._codeEditors[b.getId()]=b,this._onCodeEditorAdd.fire(b)}removeCodeEditor(b){delete this._codeEditors[b.getId()]&&this._onCodeEditorRemove.fire(b)}listCodeEditors(){return Object.keys(this._codeEditors).map(b=>this._codeEditors[b])}addDiffEditor(b){this._diffEditors[b.getId()]=b,this._onDiffEditorAdd.fire(b)}removeDiffEditor(b){delete this._diffEditors[b.getId()]&&this._onDiffEditorRemove.fire(b)}listDiffEditors(){return Object.keys(this._diffEditors).map(b=>this._diffEditors[b])}getFocusedCodeEditor(){let b=null;const C=this.listCodeEditors();for(const p of C){if(p.hasTextFocus())return p;p.hasWidgetFocus()&&(b=p)}return b}setModelProperty(b,C,p){const h=b.toString();let g;this._modelProperties.has(h)?g=this._modelProperties.get(h):(g=new Map,this._modelProperties.set(h,g)),g.set(C,p)}getModelProperty(b,C){const p=b.toString();if(this._modelProperties.has(p))return this._modelProperties.get(p).get(C)}}e.AbstractCodeEditorService=T}),define(ee[224],te([0,1]),function(q,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getCharIndex=e.allCharCodes=void 0,e.allCharCodes=(()=>{const N=[];for(let T=32;T<=126;T++)N.push(T);return N.push(65533),N})();const y=(N,T)=>(N-=32,N<0||N>96?T<=2?(N+96)%96:96-1:N);e.getCharIndex=y}),define(ee[389],te([0,1,224,136]),function(q,e,y,N){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.MinimapCharRenderer=void 0;class T{constructor(b,C){this.scale=C,this._minimapCharRendererBrand=void 0,this.charDataNormal=T.soften(b,12/15),this.charDataLight=T.soften(b,50/60)}static soften(b,C){let p=new Uint8ClampedArray(b.length);for(let h=0,g=b.length;hb.width||p+n>b.height){console.warn("bad render request outside image data");return}const d=l?this.charDataLight:this.charDataNormal,u=(0,y.getCharIndex)(h,c),f=b.width*4,S=t.r,v=t.g,m=t.b,_=g.r-S,L=g.g-v,w=g.b-m,k=Math.max(i,r),D=b.data;let M=u*s*o,O=p*f+C*4;for(let F=0;Fb.width||p+a>b.height){console.warn("bad render request outside image data");return}const s=b.width*4,o=.5*(g/255),n=i.r,d=i.g,u=i.b,f=h.r-n,S=h.g-d,v=h.b-u,m=n+f*o,_=d+S*o,L=u+v*o,w=Math.max(g,t),k=b.data;let D=p*s+C*4;for(let M=0;M{const b=new Uint8ClampedArray(I.length/2);for(let C=0;C>1]=N[I[C]]<<4|N[I[C+1]]&15;return b};e.prebakedMiniMaps={1:(0,y.once)(()=>T("0000511D6300CF609C709645A78432005642574171487021003C451900274D35D762755E8B629C5BA856AF57BA649530C167D1512A272A3F6038604460398526BCA2A968DB6F8957C768BE5FBE2FB467CF5D8D5B795DC7625B5DFF50DE64C466DB2FC47CD860A65E9A2EB96CB54CE06DA763AB2EA26860524D3763536601005116008177A8705E53AB738E6A982F88BAA35B5F5B626D9C636B449B737E5B7B678598869A662F6B5B8542706C704C80736A607578685B70594A49715A4522E792")),2:(0,y.once)(()=>T("000000000000000055394F383D2800008B8B1F210002000081B1CBCBCC820000847AAF6B9AAF2119BE08B8881AD60000A44FD07DCCF107015338130C00000000385972265F390B406E2437634B4B48031B12B8A0847000001E15B29A402F0000000000004B33460B00007A752C2A0000000000004D3900000084394B82013400ABA5CFC7AD9C0302A45A3E5A98AB000089A43382D97900008BA54AA087A70A0248A6A7AE6DBE0000BF6F94987EA40A01A06DCFA7A7A9030496C32F77891D0000A99FB1A0AFA80603B29AB9CA75930D010C0948354D3900000C0948354F37460D0028BE673D8400000000AF9D7B6E00002B007AA8933400007AA642675C2700007984CFB9C3985B768772A8A6B7B20000CAAECAAFC4B700009F94A6009F840009D09F9BA4CA9C0000CC8FC76DC87F0000C991C472A2000000A894A48CA7B501079BA2C9C69BA20000B19A5D3FA89000005CA6009DA2960901B0A7F0669FB200009D009E00B7890000DAD0F5D092820000D294D4C48BD10000B5A7A4A3B1A50402CAB6CBA6A2000000B5A7A4A3B1A8044FCDADD19D9CB00000B7778F7B8AAE0803C9AB5D3F5D3F00009EA09EA0BAB006039EA0989A8C7900009B9EF4D6B7C00000A9A7816CACA80000ABAC84705D3F000096DA635CDC8C00006F486F266F263D4784006124097B00374F6D2D6D2D6D4A3A95872322000000030000000000008D8939130000000000002E22A5C9CBC70600AB25C0B5C9B400061A2DB04CA67001082AA6BEBEBFC606002321DACBC19E03087AA08B6768380000282FBAC0B8CA7A88AD25BBA5A29900004C396C5894A6000040485A6E356E9442A32CD17EADA70000B4237923628600003E2DE9C1D7B500002F25BBA5A2990000231DB6AFB4A804023025C0B5CAB588062B2CBDBEC0C706882435A75CA20000002326BD6A82A908048B4B9A5A668000002423A09CB4BB060025259C9D8A7900001C1FCAB2C7C700002A2A9387ABA200002626A4A47D6E9D14333163A0C87500004B6F9C2D643A257049364936493647358A34438355497F1A0000A24C1D590000D38DFFBDD4CD3126"))}}),define(ee[391],te([0,1,389,224,390,136]),function(q,e,y,N,T,I){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.MinimapCharRendererFactory=void 0;class b{static create(p,h){if(this.lastCreated&&p===this.lastCreated.scale&&h===this.lastFontFamily)return this.lastCreated;let g;return T.prebakedMiniMaps[p]?g=new y.MinimapCharRenderer(T.prebakedMiniMaps[p](),p):g=b.createFromSampleData(b.createSampleData(h).data,p),this.lastFontFamily=h,this.lastCreated=g,g}static createSampleData(p){const h=document.createElement("canvas"),g=h.getContext("2d");h.style.height=`${16}px`,h.height=16,h.width=96*10,h.style.width=96*10+"px",g.fillStyle="#ffffff",g.font=`bold ${16}px ${p}`,g.textBaseline="middle";let i=0;for(const t of N.allCharCodes)g.fillText(String.fromCharCode(t),i,16/2),i+=10;return g.getImageData(0,0,96*10,16)}static createFromSampleData(p,h){const g=16*10*4*96;if(p.length!==g)throw new Error("Unexpected source in MinimapCharRenderer");let i=b._downsample(p,h);return new y.MinimapCharRenderer(i,h)}static _downsampleChar(p,h,g,i,t){const r=1*t,c=2*t;let l=i,a=0;for(let s=0;s0){const a=255/l;for(let s=0;s=65536?2:1,t===9)g=N.nextRenderTabStop(g,C);else{let r=y.getGraphemeBreakType(t);for(;i=65536?2:1,r=l}y.isFullWidthCharacter(t)||y.isEmojiImprecise(t)?g=g+2:g=g+1}}return g}static visibleColumnFromColumn2(I,b,C){return this.visibleColumnFromColumn(b.getLineContent(C.lineNumber),C.column,I.tabSize)}static columnFromVisibleColumn(I,b,C){if(b<=0)return 1;const p=I.length;let h=0,g=1,i=0;for(;i=65536?2:1;let r;if(t===9)r=N.nextRenderTabStop(h,C);else{let l=y.getGraphemeBreakType(t);for(;i
=65536?2:1,l=s}y.isFullWidthCharacter(t)||y.isEmojiImprecise(t)?r=h+2:r=h+1}const c=i+1;if(r>=b){const l=b-h;return r-bi?i:h}static nextRenderTabStop(I,b){return I+b-I%b}static nextIndentTabStop(I,b){return I+b-I%b}static prevRenderTabStop(I,b){return Math.max(0,I-1-(I-1)%b)}static prevIndentTabStop(I,b){return Math.max(0,I-1-(I-1)%b)}}e.CursorColumns=N}),define(ee[97],te([0,1,136]),function(q,e,y){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.CharacterSet=e.CharacterClassifier=void 0;class N{constructor(b){let C=(0,y.toUint8)(b);this._defaultValue=C,this._asciiMap=N._createAsciiMap(C),this._map=new Map}static _createAsciiMap(b){let C=new Uint8Array(256);for(let p=0;p<256;p++)C[p]=b;return C}set(b,C){let p=(0,y.toUint8)(C);b>=0&&b<256?this._asciiMap[b]=p:this._map.set(b,p)}get(b){return b>=0&&b<256?this._asciiMap[b]:this._map.get(b)||this._defaultValue}}e.CharacterClassifier=N;class T{constructor(){this._actual=new N(0)}add(b){this._actual.set(b,1)}has(b){return this._actual.get(b)===1}}e.CharacterSet=T}),define(ee[112],te([0,1,97]),function(q,e,y){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getMapForWordSeparators=e.WordCharacterClassifier=void 0;class N extends y.CharacterClassifier{constructor(b){super(0);for(let C=0,p=b.length;C(b.hasOwnProperty(C)||(b[C]=I(C)),b[C])}e.getMapForWordSeparators=T(I=>new N(I))}),define(ee[14],te([0,1]),function(q,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Position=void 0;class y{constructor(T,I){this.lineNumber=T,this.column=I}with(T=this.lineNumber,I=this.column){return T===this.lineNumber&&I===this.column?this:new y(T,I)}delta(T=0,I=0){return this.with(this.lineNumber+T,this.column+I)}equals(T){return y.equals(this,T)}static equals(T,I){return!T&&!I?!0:!!T&&!!I&&T.lineNumber===I.lineNumber&&T.column===I.column}isBefore(T){return y.isBefore(this,T)}static isBefore(T,I){return T.lineNumberC||I===C&&b>p?(this.startLineNumber=C,this.startColumn=p,this.endLineNumber=I,this.endColumn=b):(this.startLineNumber=I,this.startColumn=b,this.endLineNumber=C,this.endColumn=p)}isEmpty(){return N.isEmpty(this)}static isEmpty(I){return I.startLineNumber===I.endLineNumber&&I.startColumn===I.endColumn}containsPosition(I){return N.containsPosition(this,I)}static containsPosition(I,b){return!(b.lineNumberI.endLineNumber||b.lineNumber===I.startLineNumber&&b.columnI.endColumn)}static strictContainsPosition(I,b){return!(b.lineNumberI.endLineNumber||b.lineNumber===I.startLineNumber&&b.column<=I.startColumn||b.lineNumber===I.endLineNumber&&b.column>=I.endColumn)}containsRange(I){return N.containsRange(this,I)}static containsRange(I,b){return!(b.startLineNumberI.endLineNumber||b.endLineNumber>I.endLineNumber||b.startLineNumber===I.startLineNumber&&b.startColumnI.endColumn)}strictContainsRange(I){return N.strictContainsRange(this,I)}static strictContainsRange(I,b){return!(b.startLineNumberI.endLineNumber||b.endLineNumber>I.endLineNumber||b.startLineNumber===I.startLineNumber&&b.startColumn<=I.startColumn||b.endLineNumber===I.endLineNumber&&b.endColumn>=I.endColumn)}plusRange(I){return N.plusRange(this,I)}static plusRange(I,b){let C,p,h,g;return b.startLineNumberI.endLineNumber?(h=b.endLineNumber,g=b.endColumn):b.endLineNumber===I.endLineNumber?(h=b.endLineNumber,g=Math.max(b.endColumn,I.endColumn)):(h=I.endLineNumber,g=I.endColumn),new N(C,p,h,g)}intersectRanges(I){return N.intersectRanges(this,I)}static intersectRanges(I,b){let C=I.startLineNumber,p=I.startColumn,h=I.endLineNumber,g=I.endColumn,i=b.startLineNumber,t=b.startColumn,r=b.endLineNumber,c=b.endColumn;return Cr?(h=r,g=c):h===r&&(g=Math.min(g,c)),C>h||C===h&&p>g?null:new N(C,p,h,g)}equalsRange(I){return N.equalsRange(this,I)}static equalsRange(I,b){return!!I&&!!b&&I.startLineNumber===b.startLineNumber&&I.startColumn===b.startColumn&&I.endLineNumber===b.endLineNumber&&I.endColumn===b.endColumn}getEndPosition(){return N.getEndPosition(this)}static getEndPosition(I){return new y.Position(I.endLineNumber,I.endColumn)}getStartPosition(){return N.getStartPosition(this)}static getStartPosition(I){return new y.Position(I.startLineNumber,I.startColumn)}toString(){return"["+this.startLineNumber+","+this.startColumn+" -> "+this.endLineNumber+","+this.endColumn+"]"}setEndPosition(I,b){return new N(this.startLineNumber,this.startColumn,I,b)}setStartPosition(I,b){return new N(I,b,this.endLineNumber,this.endColumn)}collapseToStart(){return N.collapseToStart(this)}static collapseToStart(I){return new N(I.startLineNumber,I.startColumn,I.startLineNumber,I.startColumn)}static fromPositions(I,b=I){return new N(I.lineNumber,I.column,b.lineNumber,b.column)}static lift(I){return I?new N(I.startLineNumber,I.startColumn,I.endLineNumber,I.endColumn):null}static isIRange(I){return I&&typeof I.startLineNumber=="number"&&typeof I.startColumn=="number"&&typeof I.endLineNumber=="number"&&typeof I.endColumn=="number"}static areIntersectingOrTouching(I,b){return!(I.endLineNumberI.startLineNumber}}e.Range=N}),define(ee[225],te([0,1,8,14,3]),function(q,e,y,N,T){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.PagedScreenReaderStrategy=e.TextAreaState=e._debugComposition=void 0,e._debugComposition=!1;class I{constructor(p,h,g,i,t){this.value=p,this.selectionStart=h,this.selectionEnd=g,this.selectionStartPosition=i,this.selectionEndPosition=t}toString(){return"[ <"+this.value+">, selectionStart: "+this.selectionStart+", selectionEnd: "+this.selectionEnd+"]"}static readFromTextArea(p){return new I(p.getValue(),p.getSelectionStart(),p.getSelectionEnd(),null,null)}collapseSelection(){return new I(this.value,this.value.length,this.value.length,null,null)}writeToTextArea(p,h,g){e._debugComposition&&console.log("writeToTextArea "+p+": "+this.toString()),h.setValue(p,this.value),g&&h.setSelectionRange(p,this.selectionStart,this.selectionEnd)}deduceEditorPosition(p){if(p<=this.selectionStart){const i=this.value.substring(p,this.selectionStart);return this._finishDeduceEditorPosition(this.selectionStartPosition,i,-1)}if(p>=this.selectionEnd){const i=this.value.substring(this.selectionEnd,p);return this._finishDeduceEditorPosition(this.selectionEndPosition,i,1)}const h=this.value.substring(this.selectionStart,p);if(h.indexOf(String.fromCharCode(8230))===-1)return this._finishDeduceEditorPosition(this.selectionStartPosition,h,1);const g=this.value.substring(p,this.selectionEnd);return this._finishDeduceEditorPosition(this.selectionEndPosition,g,-1)}_finishDeduceEditorPosition(p,h,g){let i=0,t=-1;for(;(t=h.indexOf(`
`,t+1))!==-1;)i++;return[p,g*h.length,i]}static selectedText(p){return new I(p,0,p.length,null,null)}static deduceInput(p,h,g){if(!p)return{text:"",replacePrevCharCnt:0,replaceNextCharCnt:0,positionDelta:0};e._debugComposition&&(console.log("------------------------deduceInput"),console.log("PREVIOUS STATE: "+p.toString()),console.log("CURRENT STATE: "+h.toString()));let i=p.value,t=p.selectionStart,r=p.selectionEnd,c=h.value,l=h.selectionStart,a=h.selectionEnd;const s=i.substring(r),o=c.substring(a),n=y.commonSuffixLength(s,o);c=c.substring(0,c.length-n),i=i.substring(0,i.length-n);const d=i.substring(0,t),u=c.substring(0,l),f=y.commonPrefixLength(d,u);if(c=c.substring(f),i=i.substring(f),l-=f,t-=f,a-=f,r-=f,e._debugComposition&&(console.log("AFTER DIFFING PREVIOUS STATE: <"+i+">, selectionStart: "+t+", selectionEnd: "+r),console.log("AFTER DIFFING CURRENT STATE: <"+c+">, selectionStart: "+l+", selectionEnd: "+a)),g&&l===a&&i.length>0){let v=null;if(l===c.length?c.startsWith(i)&&(v=c.substring(i.length)):c.endsWith(i)&&(v=c.substring(0,c.length-i.length)),v!==null&&v.length>0&&(/\uFE0F/.test(v)||y.containsEmoji(v)))return{text:v,replacePrevCharCnt:0,replaceNextCharCnt:0,positionDelta:0}}if(l===a){if(i===c&&t===0&&r===i.length&&l===c.length&&c.indexOf(`
`)===-1&&y.containsFullWidthCharacter(c))return{text:"",replacePrevCharCnt:0,replaceNextCharCnt:0,positionDelta:0};const v=d.length-f;return e._debugComposition&&console.log("REMOVE PREVIOUS: "+(d.length-f)+" chars"),{text:c,replacePrevCharCnt:v,replaceNextCharCnt:0,positionDelta:0}}const S=r-t;return{text:c,replacePrevCharCnt:S,replaceNextCharCnt:0,positionDelta:0}}static deduceAndroidCompositionInput(p,h){if(!p)return{text:"",replacePrevCharCnt:0,replaceNextCharCnt:0,positionDelta:0};if(e._debugComposition&&(console.log("------------------------deduceAndroidCompositionInput"),console.log("PREVIOUS STATE: "+p.toString()),console.log("CURRENT STATE: "+h.toString())),p.value===h.value)return{text:"",replacePrevCharCnt:0,replaceNextCharCnt:0,positionDelta:h.selectionEnd-p.selectionEnd};const g=Math.min(y.commonPrefixLength(p.value,h.value),p.selectionEnd),i=Math.min(y.commonSuffixLength(p.value,h.value),p.value.length-p.selectionEnd),t=p.value.substring(g,p.value.length-i),r=h.value.substring(g,h.value.length-i),c=p.selectionStart-g,l=p.selectionEnd-g,a=h.selectionStart-g,s=h.selectionEnd-g;return e._debugComposition&&(console.log("AFTER DIFFING PREVIOUS STATE: <"+t+">, selectionStart: "+c+", selectionEnd: "+l),console.log("AFTER DIFFING CURRENT STATE: <"+r+">, selectionStart: "+a+", selectionEnd: "+s)),{text:r,replacePrevCharCnt:l,replaceNextCharCnt:t.length-l,positionDelta:s-r.length}}}e.TextAreaState=I,I.EMPTY=new I("",0,0,null,null);class b{static _getPageOfLine(p,h){return Math.floor((p-1)/h)}static _getRangeForPage(p,h){const g=p*h,i=g+1,t=g+h;return new T.Range(i,1,t+1,1)}static fromEditorSelection(p,h,g,i,t){const r=b._getPageOfLine(g.startLineNumber,i),c=b._getRangeForPage(r,i),l=b._getPageOfLine(g.endLineNumber,i),a=b._getRangeForPage(l,i),s=c.intersectRanges(new T.Range(1,1,g.startLineNumber,g.startColumn));let o=h.getValueInRange(s,1);const n=h.getLineCount(),d=h.getLineMaxColumn(n),u=a.intersectRanges(new T.Range(g.endLineNumber,g.endColumn,n,d));let f=h.getValueInRange(u,1),S;if(r===l||r+1===l)S=h.getValueInRange(g,1);else{const v=c.intersectRanges(g),m=a.intersectRanges(g);S=h.getValueInRange(v,1)+String.fromCharCode(8230)+h.getValueInRange(m,1)}if(t){const v=500;o.length>v&&(o=o.substring(o.length-v,o.length)),f.length>v&&(f=f.substring(0,v)),S.length>2*v&&(S=S.substring(0,v)+String.fromCharCode(8230)+S.substring(S.length-v,S.length))}return new I(o+S+f,o.length,o.length+S.length,new N.Position(g.startLineNumber,g.startColumn),new N.Position(g.endLineNumber,g.endColumn))}}e.PagedScreenReaderStrategy=b}),define(ee[226],te([0,1,206,4,2,37,3]),function(q,e,y,N,T,I,b){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.DiffNavigator=void 0;const C={followsCaret:!0,ignoreCharChanges:!0,alwaysRevealFirst:!0};class p extends T.Disposable{constructor(g,i={}){super();this._onDidUpdate=this._register(new N.Emitter),this._editor=g,this._options=I.mixin(i,C,!1),this.disposed=!1,this.nextIdx=-1,this.ranges=[],this.ignoreSelectionChange=!1,this.revealFirst=Boolean(this._options.alwaysRevealFirst),this._register(this._editor.onDidDispose(()=>this.dispose())),this._register(this._editor.onDidUpdateDiff(()=>this._onDiffUpdated())),this._options.followsCaret&&this._register(this._editor.getModifiedEditor().onDidChangeCursorPosition(t=>{this.ignoreSelectionChange||(this.nextIdx=-1)})),this._options.alwaysRevealFirst&&this._register(this._editor.getModifiedEditor().onDidChangeModel(t=>{this.revealFirst=!0})),this._init()}_init(){!!this._editor.getLineChanges()}_onDiffUpdated(){this._init(),this._compute(this._editor.getLineChanges()),this.revealFirst&&this._editor.getLineChanges()!==null&&(this.revealFirst=!1,this.nextIdx=-1,this.next(1))}_compute(g){this.ranges=[],g&&g.forEach(i=>{!this._options.ignoreCharChanges&&i.charChanges?i.charChanges.forEach(t=>{this.ranges.push({rhs:!0,range:new b.Range(t.modifiedStartLineNumber,t.modifiedStartColumn,t.modifiedEndLineNumber,t.modifiedEndColumn)})}):i.modifiedEndLineNumber===0?this.ranges.push({rhs:!0,range:new b.Range(i.modifiedStartLineNumber,1,i.modifiedStartLineNumber+1,1)}):this.ranges.push({rhs:!0,range:new b.Range(i.modifiedStartLineNumber,1,i.modifiedEndLineNumber+1,1)})}),this.ranges.sort((i,t)=>b.Range.compareRangesUsingStarts(i.range,t.range)),this._onDidUpdate.fire(this)}_initIdx(g){let i=!1,t=this._editor.getPosition();if(!t){this.nextIdx=0;return}for(let r=0,c=this.ranges.length;r=this.ranges.length&&(this.nextIdx=0)):(this.nextIdx-=1,this.nextIdx<0&&(this.nextIdx=this.ranges.length-1));let t=this.ranges[this.nextIdx];this.ignoreSelectionChange=!0;try{let r=t.range.getStartPosition();this._editor.setPosition(r),this._editor.revealRangeInCenter(t.range,i)}finally{this.ignoreSelectionChange=!1}}canNavigate(){return this.ranges&&this.ranges.length>0}next(g=0){this._move(!0,g)}previous(g=0){this._move(!1,g)}dispose(){super.dispose(),this.ranges=[],this.disposed=!0}}e.DiffNavigator=p}),define(ee[59],te([0,1,3]),function(q,e,y){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.EditOperation=void 0;class N{static insert(I,b){return{range:new y.Range(I.lineNumber,I.column,I.lineNumber,I.column),text:b,forceMoveMarkers:!0}}static delete(I){return{range:I,text:null}}static replace(I,b){return{range:I,text:b}}static replaceMove(I,b){return{range:I,text:b,forceMoveMarkers:!0}}}e.EditOperation=N}),define(ee[392],te([0,1,8,59,3]),function(q,e,y,N,T){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.trimTrailingWhitespace=e.TrimTrailingWhitespaceCommand=void 0;class I{constructor(p,h){this._selection=p,this._cursors=h,this._selectionId=null}getEditOperations(p,h){let g=b(p,this._cursors);for(let i=0,t=g.length;ir.lineNumber===c.lineNumber?r.column-c.column:r.lineNumber-c.lineNumber);for(let r=p.length-2;r>=0;r--)p[r].lineNumber===p[r+1].lineNumber&&p.splice(r,1);let h=[],g=0,i=0,t=p.length;for(let r=1,c=C.getLineCount();r<=c;r++){let l=C.getLineContent(r),a=l.length+1,s=0;if(i255?255:T|0}}e.RGBA8=y,y.Empty=new y(0,0,0,0)}),define(ee[21],te([0,1,14,3]),function(q,e,y,N){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Selection=void 0;class T extends N.Range{constructor(b,C,p,h){super(b,C,p,h);this.selectionStartLineNumber=b,this.selectionStartColumn=C,this.positionLineNumber=p,this.positionColumn=h}toString(){return"["+this.selectionStartLineNumber+","+this.selectionStartColumn+" -> "+this.positionLineNumber+","+this.positionColumn+"]"}equalsSelection(b){return T.selectionsEqual(this,b)}static selectionsEqual(b,C){return b.selectionStartLineNumber===C.selectionStartLineNumber&&b.selectionStartColumn===C.selectionStartColumn&&b.positionLineNumber===C.positionLineNumber&&b.positionColumn===C.positionColumn}getDirection(){return this.selectionStartLineNumber===this.startLineNumber&&this.selectionStartColumn===this.startColumn?0:1}setEndPosition(b,C){return this.getDirection()===0?new T(this.startLineNumber,this.startColumn,b,C):new T(b,C,this.startLineNumber,this.startColumn)}getPosition(){return new y.Position(this.positionLineNumber,this.positionColumn)}getSelectionStart(){return new y.Position(this.selectionStartLineNumber,this.selectionStartColumn)}setStartPosition(b,C){return this.getDirection()===0?new T(b,C,this.endLineNumber,this.endColumn):new T(this.endLineNumber,this.endColumn,b,C)}static fromPositions(b,C=b){return new T(b.lineNumber,b.column,C.lineNumber,C.column)}static fromRange(b,C){return C===0?new T(b.startLineNumber,b.startColumn,b.endLineNumber,b.endColumn):new T(b.endLineNumber,b.endColumn,b.startLineNumber,b.startColumn)}static liftSelection(b){return new T(b.selectionStartLineNumber,b.selectionStartColumn,b.positionLineNumber,b.positionColumn)}static selectionsArrEqual(b,C){if(b&&!C||!b&&C)return!1;if(!b&&!C)return!0;if(b.length!==C.length)return!1;for(let p=0,h=b.length;pthis._onCut.fire(),0)),this._asyncFocusGainWriteScreenReaderContent=this._register(new I.RunOnceScheduler(()=>this.writeScreenReaderContent("asyncFocusGain"),0)),this._textAreaState=g.TextAreaState.EMPTY,this._selectionChangeListener=null,this.writeScreenReaderContent("ctor"),this._hasFocus=!1,this._currentComposition=null,this._nextCommand=0;let S=null;this._register(this._textArea.onKeyDown(v=>{const m=new T.StandardKeyboardEvent(v);(m.keyCode===109||this._currentComposition&&m.keyCode===1)&&m.stopPropagation(),m.equals(9)&&m.preventDefault(),S=m,this._onKeyDown.fire(m)})),this._register(this._textArea.onKeyUp(v=>{const m=new T.StandardKeyboardEvent(v);this._onKeyUp.fire(m)})),this._register(this._textArea.onCompositionStart(v=>{g._debugComposition&&console.log("[compositionstart]",v);const m=new c;if(this._currentComposition){this._currentComposition=m;return}if(this._currentComposition=m,this._OS===2&&this._textAreaState.selectionStart===this._textAreaState.selectionEnd&&this._textAreaState.selectionStart>0&&this._textAreaState.value.substr(this._textAreaState.selectionStart-1,1)===v.data&&(S&&S.equals(109)&&(S.code==="ArrowRight"||S.code==="ArrowLeft")||this._browser.isFirefox)){g._debugComposition&&console.log("[compositionstart] Handling long press case on macOS + arrow key or Firefox",v),m.handleCompositionUpdate("x"),this._onCompositionStart.fire({revealDeltaColumns:-1});return}if(this._browser.isAndroid){this._onCompositionStart.fire({revealDeltaColumns:-this._textAreaState.selectionStart});return}this._onCompositionStart.fire({revealDeltaColumns:0})})),this._register(this._textArea.onCompositionUpdate(v=>{g._debugComposition&&console.log("[compositionupdate]",v);const m=this._currentComposition;if(!m)return;if(this._browser.isAndroid){const L=g.TextAreaState.readFromTextArea(this._textArea),w=g.TextAreaState.deduceAndroidCompositionInput(this._textAreaState,L);this._textAreaState=L,this._onType.fire(w),this._onCompositionUpdate.fire(v);return}const _=m.handleCompositionUpdate(v.data);this._textAreaState=g.TextAreaState.readFromTextArea(this._textArea),this._onType.fire(_),this._onCompositionUpdate.fire(v)})),this._register(this._textArea.onCompositionEnd(v=>{g._debugComposition&&console.log("[compositionend]",v);const m=this._currentComposition;if(!m)return;if(this._currentComposition=null,this._browser.isAndroid){const L=g.TextAreaState.readFromTextArea(this._textArea),w=g.TextAreaState.deduceAndroidCompositionInput(this._textAreaState,L);this._textAreaState=L,this._onType.fire(w),this._onCompositionEnd.fire();return}const _=m.handleCompositionUpdate(v.data);this._textAreaState=g.TextAreaState.readFromTextArea(this._textArea),this._onType.fire(_),this._onCompositionEnd.fire()})),this._register(this._textArea.onInput(v=>{if(g._debugComposition&&console.log("[input]",v),this._textArea.setIgnoreSelectionChangeTime("received input event"),this._currentComposition)return;const m=g.TextAreaState.readFromTextArea(this._textArea),_=g.TextAreaState.deduceInput(this._textAreaState,m,this._OS===2);if(_.replacePrevCharCnt===0&&_.text.length===1&&h.isHighSurrogate(_.text.charCodeAt(0)))return;this._textAreaState=m;const L=_.text===""&&_.replacePrevCharCnt===0&&_.replaceNextCharCnt===0&&_.positionDelta===0;this._nextCommand===0?L||this._onType.fire(_):(L||this._firePaste(_.text,null),this._nextCommand=0)})),this._register(this._textArea.onCut(v=>{this._textArea.setIgnoreSelectionChangeTime("received cut event"),this._ensureClipboardGetsEditorSelection(v),this._asyncTriggerCut.schedule()})),this._register(this._textArea.onCopy(v=>{this._ensureClipboardGetsEditorSelection(v)})),this._register(this._textArea.onPaste(v=>{if(this._textArea.setIgnoreSelectionChangeTime("received paste event"),a.canUseTextData(v)){const[m,_]=a.getTextData(v);m!==""&&this._firePaste(m,_)}else this._textArea.getSelectionStart()!==this._textArea.getSelectionEnd()&&this._setAndWriteTextAreaState("paste",g.TextAreaState.EMPTY),this._nextCommand=1})),this._register(this._textArea.onFocus(()=>{const v=this._hasFocus;this._setHasFocus(!0),this._browser.isSafari&&!v&&this._hasFocus&&this._asyncFocusGainWriteScreenReaderContent.schedule()})),this._register(this._textArea.onBlur(()=>{this._currentComposition&&(this._currentComposition=null,this.writeScreenReaderContent("blurWithoutCompositionEnd"),this._onCompositionEnd.fire()),this._setHasFocus(!1)})),this._register(this._textArea.onSyntheticTap(()=>{this._browser.isAndroid&&this._currentComposition&&(this._currentComposition=null,this.writeScreenReaderContent("tapWithoutCompositionEnd"),this._onCompositionEnd.fire())}))}_installSelectionChangeListener(){let n=0;return N.addDisposableListener(document,"selectionchange",d=>{if(!this._hasFocus||this._currentComposition||!this._browser.isChrome)return;const u=Date.now(),f=u-n;if(n=u,f<5)return;const S=u-this._textArea.getIgnoreSelectionChangeTime();if(this._textArea.resetSelectionChangeTime(),S<100||!this._textAreaState.selectionStartPosition||!this._textAreaState.selectionEndPosition)return;const v=this._textArea.getValue();if(this._textAreaState.value!==v)return;const m=this._textArea.getSelectionStart(),_=this._textArea.getSelectionEnd();if(this._textAreaState.selectionStart===m&&this._textAreaState.selectionEnd===_)return;const L=this._textAreaState.deduceEditorPosition(m),w=this._host.deduceModelPosition(L[0],L[1],L[2]),k=this._textAreaState.deduceEditorPosition(_),D=this._host.deduceModelPosition(k[0],k[1],k[2]),M=new i.Selection(w.lineNumber,w.column,D.lineNumber,D.column);this._onSelectionChangeRequest.fire(M)})}dispose(){super.dispose(),this._selectionChangeListener&&(this._selectionChangeListener.dispose(),this._selectionChangeListener=null)}focusTextArea(){this._setHasFocus(!0),this.refreshFocusState()}isFocused(){return this._hasFocus}refreshFocusState(){this._setHasFocus(this._textArea.hasFocus())}_setHasFocus(n){this._hasFocus!==n&&(this._hasFocus=n,this._selectionChangeListener&&(this._selectionChangeListener.dispose(),this._selectionChangeListener=null),this._hasFocus&&(this._selectionChangeListener=this._installSelectionChangeListener()),this._hasFocus&&this.writeScreenReaderContent("focusgain"),this._hasFocus?this._onFocus.fire():this._onBlur.fire())}_setAndWriteTextAreaState(n,d){this._hasFocus||(d=d.collapseSelection()),d.writeToTextArea(n,this._textArea,this._hasFocus),this._textAreaState=d}writeScreenReaderContent(n){this._currentComposition||this._setAndWriteTextAreaState(n,this._host.getScreenReaderContent(this._textAreaState))}_ensureClipboardGetsEditorSelection(n){const d=this._host.getDataToCopy(a.canUseTextData(n)),u={version:1,isFromEmptySelection:d.isFromEmptySelection,multicursorText:d.multicursorText,mode:d.mode};if(r.INSTANCE.set(this._browser.isFirefox?d.text.replace(/\r\n/g,`
`):d.text,u),!a.canUseTextData(n)){this._setAndWriteTextAreaState("copy or cut",g.TextAreaState.selectedText(d.text));return}a.setTextData(n,d.text,d.html,u)}_firePaste(n,d){d||(d=r.INSTANCE.get(n)),this._onPaste.fire({text:n,metadata:d})}}e.TextAreaInput=l;class a{static canUseTextData(n){return!!n.clipboardData}static getTextData(n){if(n.clipboardData){n.preventDefault();const d=n.clipboardData.getData(p.Mimes.text);let u=null;const f=n.clipboardData.getData("vscode-editor-data");if(typeof f=="string")try{u=JSON.parse(f),u.version!==1&&(u=null)}catch(S){}return[d,u]}throw new Error("ClipboardEventUtils.getTextData: Cannot use text data!")}static setTextData(n,d,u,f){if(n.clipboardData){n.clipboardData.setData(p.Mimes.text,d),typeof u=="string"&&n.clipboardData.setData("text/html",u),n.clipboardData.setData("vscode-editor-data",JSON.stringify(f)),n.preventDefault();return}throw new Error("ClipboardEventUtils.setTextData: Cannot use text data!")}}class s extends C.Disposable{constructor(n){super();this._actual=n,this.onKeyDown=this._register(N.createEventEmitter(this._actual,"keydown")).event,this.onKeyUp=this._register(N.createEventEmitter(this._actual,"keyup")).event,this.onCompositionStart=this._register(N.createEventEmitter(this._actual,"compositionstart")).event,this.onCompositionUpdate=this._register(N.createEventEmitter(this._actual,"compositionupdate")).event,this.onCompositionEnd=this._register(N.createEventEmitter(this._actual,"compositionend")).event,this.onInput=this._register(N.createEventEmitter(this._actual,"input")).event,this.onCut=this._register(N.createEventEmitter(this._actual,"cut")).event,this.onCopy=this._register(N.createEventEmitter(this._actual,"copy")).event,this.onPaste=this._register(N.createEventEmitter(this._actual,"paste")).event,this.onFocus=this._register(N.createEventEmitter(this._actual,"focus")).event,this.onBlur=this._register(N.createEventEmitter(this._actual,"blur")).event,this._onSyntheticTap=this._register(new b.Emitter),this.onSyntheticTap=this._onSyntheticTap.event,this._ignoreSelectionChangeTime=0,this._register(N.addDisposableListener(this._actual,t.Tap,()=>this._onSyntheticTap.fire()))}hasFocus(){const n=N.getShadowRoot(this._actual);return n?n.activeElement===this._actual:N.isInDOM(this._actual)?document.activeElement===this._actual:!1}setIgnoreSelectionChangeTime(n){this._ignoreSelectionChangeTime=Date.now()}getIgnoreSelectionChangeTime(){return this._ignoreSelectionChangeTime}resetSelectionChangeTime(){this._ignoreSelectionChangeTime=0}getValue(){return this._actual.value}setValue(n,d){const u=this._actual;u.value!==d&&(this.setIgnoreSelectionChangeTime("setValue"),u.value=d)}getSelectionStart(){return this._actual.selectionDirection==="backward"?this._actual.selectionEnd:this._actual.selectionStart}getSelectionEnd(){return this._actual.selectionDirection==="backward"?this._actual.selectionStart:this._actual.selectionEnd}setSelectionRange(n,d,u){const f=this._actual;let S=null;const v=N.getShadowRoot(f);v?S=v.activeElement:S=document.activeElement;const m=S===f,_=f.selectionStart,L=f.selectionEnd;if(m&&_===d&&L===u){y.isFirefox&&window.parent!==window&&f.focus();return}if(m){this.setIgnoreSelectionChangeTime("setSelectionRange"),f.setSelectionRange(d,u),y.isFirefox&&window.parent!==window&&f.focus();return}try{const w=N.saveParentsScrollTop(f);this.setIgnoreSelectionChangeTime("setSelectionRange"),f.focus(),f.setSelectionRange(d,u),N.restoreParentsScrollTop(f,w)}catch(w){}}}e.TextAreaWrapper=s}),define(ee[98],te([0,1,21]),function(q,e,y){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ReplaceCommandThatPreservesSelection=e.ReplaceCommandWithOffsetCursorState=e.ReplaceCommandWithoutChangingPosition=e.ReplaceCommandThatSelectsText=e.ReplaceCommand=void 0;class N{constructor(h,g,i=!1){this._range=h,this._text=g,this.insertsAutoWhitespace=i}getEditOperations(h,g){g.addTrackedEditOperation(this._range,this._text)}computeCursorState(h,g){let t=g.getInverseEditOperations()[0].range;return y.Selection.fromPositions(t.getEndPosition())}}e.ReplaceCommand=N;class T{constructor(h,g){this._range=h,this._text=g}getEditOperations(h,g){g.addTrackedEditOperation(this._range,this._text)}computeCursorState(h,g){const t=g.getInverseEditOperations()[0].range;return y.Selection.fromRange(t,0)}}e.ReplaceCommandThatSelectsText=T;class I{constructor(h,g,i=!1){this._range=h,this._text=g,this.insertsAutoWhitespace=i}getEditOperations(h,g){g.addTrackedEditOperation(this._range,this._text)}computeCursorState(h,g){let t=g.getInverseEditOperations()[0].range;return y.Selection.fromPositions(t.getStartPosition())}}e.ReplaceCommandWithoutChangingPosition=I;class b{constructor(h,g,i,t,r=!1){this._range=h,this._text=g,this._columnDeltaOffset=t,this._lineNumberDeltaOffset=i,this.insertsAutoWhitespace=r}getEditOperations(h,g){g.addTrackedEditOperation(this._range,this._text)}computeCursorState(h,g){let t=g.getInverseEditOperations()[0].range;return y.Selection.fromPositions(t.getEndPosition().delta(this._lineNumberDeltaOffset,this._columnDeltaOffset))}}e.ReplaceCommandWithOffsetCursorState=b;class C{constructor(h,g,i,t=!1){this._range=h,this._text=g,this._initialSelection=i,this._forceMoveMarkers=t,this._selectionId=null}getEditOperations(h,g){g.addTrackedEditOperation(this._range,this._text,this._forceMoveMarkers),this._selectionId=g.trackSelection(this._initialSelection)}computeCursorState(h,g){return g.getTrackedSelection(this._selectionId)}}e.ReplaceCommandThatPreservesSelection=C}),define(ee[393],te([0,1,3,21]),function(q,e,y,N){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.SurroundSelectionCommand=void 0;class T{constructor(b,C,p){this._range=b,this._charBeforeSelection=C,this._charAfterSelection=p}getEditOperations(b,C){C.addTrackedEditOperation(new y.Range(this._range.startLineNumber,this._range.startColumn,this._range.startLineNumber,this._range.startColumn),this._charBeforeSelection),C.addTrackedEditOperation(new y.Range(this._range.endLineNumber,this._range.endColumn,this._range.endLineNumber,this._range.endColumn),this._charAfterSelection)}computeCursorState(b,C){let p=C.getInverseEditOperations(),h=p[0].range,g=p[1].range;return new N.Selection(h.endLineNumber,h.endColumn,g.endLineNumber,g.endColumn-this._charAfterSelection.length)}}e.SurroundSelectionCommand=T}),define(ee[87],te([0,1,8,17,104]),function(q,e,y,N,T){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.decodeUTF16LE=e.createStringBuilder=e.hasTextDecoder=e.getPlatformTextDecoder=void 0;let I;function b(){return I||(I=new TextDecoder("UTF-16LE")),I}let C;function p(){return C||(C=new TextDecoder("UTF-16BE")),C}let h;function g(){return h||(h=N.isLittleEndian()?b():p()),h}e.getPlatformTextDecoder=g,e.hasTextDecoder=typeof TextDecoder!="undefined",e.hasTextDecoder?(e.createStringBuilder=l=>new r(l),e.decodeUTF16LE=i):(e.createStringBuilder=l=>new c,e.decodeUTF16LE=t);function i(l,a,s){const o=new Uint16Array(l.buffer,a,s);return s>0&&(o[0]===65279||o[0]===65534)?t(l,a,s):b().decode(o)}function t(l,a,s){let o=[],n=0;for(let d=0;d=this._capacity){this._flushBuffer(),this._completedStrings[this._completedStrings.length]=a;return}for(let o=0;o=this._lines.length)throw new Error("Illegal value for lineNumber");return this._lines[g]}onLinesDeleted(h,g){if(this.getCount()===0)return null;const i=this.getStartLineNumber(),t=this.getEndLineNumber();if(gt)return null;let r=0,c=0;for(let a=i;a<=t;a++){const s=a-this._rendLineNumberStart;h<=a&&a<=g&&(c===0?(r=s,c=1):c++)}if(h=i&&c<=t&&(this._lines[c-this._rendLineNumberStart].onContentChanged(),r=!0);return r}onLinesInserted(h,g){if(this.getCount()===0)return null;const i=g-h+1,t=this.getStartLineNumber(),r=this.getEndLineNumber();if(h<=t)return this._rendLineNumberStart+=i,null;if(h>r)return null;if(i+h>r)return this._lines.splice(h-this._rendLineNumberStart,r-h+1);const c=[];for(let n=0;ni)continue;const a=Math.max(g,l.fromLineNumber),s=Math.min(i,l.toLineNumber);for(let o=a;o<=s;o++){const n=o-this._rendLineNumberStart;this._lines[n].onTokensChanged(),t=!0}}return t}}e.RenderedLinesCollection=I;class b{constructor(h){this._host=h,this.domNode=this._createDomNode(),this._linesCollection=new I(()=>this._host.createVisibleLine())}_createDomNode(){const h=(0,y.createFastDomNode)(document.createElement("div"));return h.setClassName("view-layer"),h.setPosition("absolute"),h.domNode.setAttribute("role","presentation"),h.domNode.setAttribute("aria-hidden","true"),h}onConfigurationChanged(h){return!!h.hasChanged(130)}onFlushed(h){return this._linesCollection.flush(),!0}onLinesChanged(h){return this._linesCollection.onLinesChanged(h.fromLineNumber,h.toLineNumber)}onLinesDeleted(h){const g=this._linesCollection.onLinesDeleted(h.fromLineNumber,h.toLineNumber);if(g)for(let i=0,t=g.length;ig){const c=g,l=Math.min(i,r.rendLineNumberStart-1);c<=l&&(this._insertLinesBefore(r,c,l,t,g),r.linesLength+=l-c+1)}else if(r.rendLineNumberStart0&&(this._removeLinesBefore(r,c),r.linesLength-=c)}if(r.rendLineNumberStart=g,r.rendLineNumberStart+r.linesLength-1i){const c=Math.max(0,i-r.rendLineNumberStart+1),a=r.linesLength-1-c+1;a>0&&(this._removeLinesAfter(r,a),r.linesLength-=a)}return this._finishRendering(r,!1,t),r}_renderUntouchedLines(h,g,i,t,r){const c=h.rendLineNumberStart,l=h.lines;for(let a=g;a<=i;a++){const s=c+a;l[a].layoutLine(s,t[s-r])}}_insertLinesBefore(h,g,i,t,r){const c=[];let l=0;for(let a=g;a<=i;a++)c[l++]=this.host.createVisibleLine();h.lines=c.concat(h.lines)}_removeLinesBefore(h,g){for(let i=0;i=0;l--){const a=h.lines[l];t[l]&&(a.setDomNode(c),c=c.previousSibling)}}_finishRenderingInvalidLines(h,g,i){const t=document.createElement("div");C._ttPolicy&&(g=C._ttPolicy.createHTML(g)),t.innerHTML=g;for(let r=0;rp}),C._sb=(0,N.createStringBuilder)(1e5)}),define(ee[142],te([0,1]),function(q,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.TokenizationResult2=e.TokenizationResult=e.Token=void 0;class y{constructor(b,C,p){this._tokenBrand=void 0,this.offset=b,this.type=C,this.language=p}toString(){return"("+this.offset+", "+this.type+")"}}e.Token=y;class N{constructor(b,C){this._tokenizationResultBrand=void 0,this.tokens=b,this.endState=C}}e.TokenizationResult=N;class T{constructor(b,C){this._tokenizationResult2Brand=void 0,this.tokens=b,this.endState=C}}e.TokenizationResult2=T}),define(ee[394],te([0,1,135,8]),function(q,e,y,N){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.DiffComputer=void 0;const T=3;function I(l,a,s,o){return new y.LcsDiff(l,a,s).ComputeDiff(o)}class b{constructor(a){const s=[],o=[];for(let n=0,d=a.length;n0&&s.originalLength<20&&s.modifiedLength>0&&s.modifiedLength<20&&d()){const w=o.createCharSequence(a,s.originalStart,s.originalStart+s.originalLength-1),k=n.createCharSequence(a,s.modifiedStart,s.modifiedStart+s.modifiedLength-1);let D=I(w,k,d,!0).changes;f&&(D=h(D)),L=[];for(let M=0,O=D.length;M1&&D>1;){const M=L.charCodeAt(k-2),O=w.charCodeAt(D-2);if(M!==O)break;k--,D--}(k>1||D>1)&&this._pushTrimWhitespaceCharChange(n,d+1,1,k,u+1,1,D)}{let k=r(L,1),D=r(w,1);const M=L.length+1,O=w.length+1;for(;k!0;const a=Date.now();return()=>Date.now()-a=f}e.lengthGreaterThanEqual=a;function s(u){return p(u.lineNumber-1,u.column-1)}e.positionToLength=s;function o(u,f){const S=u,v=Math.floor(S/C),m=S-v*C,_=f,L=Math.floor(_/C),w=_-L*C;return new N.Range(v+1,m+1,L+1,w+1)}e.lengthsToRange=o;function n(u){const f=(0,y.splitLines)(u);return p(f.length-1,f[f.length-1].length)}e.lengthOfString=n;function d(u){return u}e.lengthHash=d}),define(ee[229],te([0,1,88]),function(q,e,y){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.BeforeEditPositionMapper=e.TextEditInfo=void 0;class N{constructor(C,p,h){this.startOffset=C,this.endOffset=p,this.newLength=h}}e.TextEditInfo=N;class T{constructor(C,p){this.documentLength=p,this.nextEditIdx=0,this.deltaOldToNewLineCount=0,this.deltaOldToNewColumnCount=0,this.deltaLineIdxInOld=-1,this.edits=C.map(h=>I.from(h))}getOffsetBeforeChange(C){return this.adjustNextEdit(C),this.translateCurToOld(C)}getDistanceToNextChange(C){this.adjustNextEdit(C);const p=this.edits[this.nextEditIdx],h=p?this.translateOldToCur(p.offsetObj):this.documentLength;return(0,y.lengthDiffNonNegative)(C,h)}translateOldToCur(C){return C.lineCount===this.deltaLineIdxInOld?(0,y.toLength)(C.lineCount+this.deltaOldToNewLineCount,C.columnCount+this.deltaOldToNewColumnCount):(0,y.toLength)(C.lineCount+this.deltaOldToNewLineCount,C.columnCount)}translateCurToOld(C){const p=(0,y.lengthToObj)(C);return p.lineCount-this.deltaOldToNewLineCount===this.deltaLineIdxInOld?(0,y.toLength)(p.lineCount-this.deltaOldToNewLineCount,p.columnCount-this.deltaOldToNewColumnCount):(0,y.toLength)(p.lineCount-this.deltaOldToNewLineCount,p.columnCount)}adjustNextEdit(C){for(;this.nextEditIdx=b.childrenLength)return-1;if(b.getChild(C))return C}}function I(b){return b.length>0?b[b.length-1]:void 0}}),define(ee[114],te([0,1]),function(q,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.DenseKeyProvider=e.identityKeyProvider=e.SmallImmutableSet=void 0;const y=new Array;class N{constructor(b,C){this.items=b,this.additionalItems=C}static create(b,C){if(b<=128&&C.length===0){let p=N.cache[b];return p||(p=new N(b,C),N.cache[b]=p),p}return new N(b,C)}static getEmpty(){return this.empty}add(b,C){const p=C.getKey(b);let h=p>>5;if(h===0){const i=1<0;)n=n.getChild(d-1);return n.canBeReused(o)}handleChildrenChanged(){this.throwIfImmutable();const o=this.childrenLength;let n=this.getChild(0).length,d=this.getChild(0).missingOpeningBracketIds;for(let u=1;u=h.length)return null;const l=g,a=h[l].listHeight;for(g++;g=2?T(l===0&&g===h.length?h:h.slice(l,g),!1):h[l]}let t=i(),r=i();if(!r)return t;for(let l=i();l;l=i())I(t,r)<=I(r,l)?(t=b(t,r),r=l):r=b(r,l);return b(t,r)}e.concat23Trees=N;function T(h,g=!1){if(h.length===0)return null;if(h.length===1)return h[0];let i=h.length;for(;i>3;){const t=i>>1;for(let r=0;r=3?h[2]:null,g)}e.concat23TreesOfSameHeight=T;function I(h,g){return Math.abs(h.listHeight-g.listHeight)}function b(h,g){return h.listHeight===g.listHeight?y.ListAstNode.create23(h,g,null,!1):h.listHeight>g.listHeight?C(h,g):p(g,h)}function C(h,g){h=h.toMutable();let i=h;const t=new Array;let r;for(;;){if(g.listHeight===i.listHeight){r=g;break}if(i.kind!==4)throw new Error("unexpected");t.push(i),i=i.makeLastElementMutable()}for(let c=t.length-1;c>=0;c--){const l=t[c];r?l.childrenLength>=3?r=y.ListAstNode.create23(l.unappendChild(),r,null,!1):(l.appendChildOfSameHeight(r),r=void 0):l.handleChildrenChanged()}return r?y.ListAstNode.create23(h,r,null,!1):h}function p(h,g){h=h.toMutable();let i=h;const t=new Array;for(;g.listHeight!==i.listHeight;){if(i.kind!==4)throw new Error("unexpected");t.push(i),i=i.makeFirstElementMutable()}let r=g;for(let c=t.length-1;c>=0;c--){const l=t[c];r?l.childrenLength>=3?r=y.ListAstNode.create23(r,l.unprependChild(),null,!1):(l.prependChildOfSameHeight(r),r=void 0):l.handleChildrenChanged()}return r?y.ListAstNode.create23(r,h,null,!1):h}}),define(ee[398],te([0,1,144,229,114,88,397,396]),function(q,e,y,N,T,I,b,C){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.parseDocument=void 0;function p(g,i,t,r){return new h(g,i,t,r).parseDocument()}e.parseDocument=p;class h{constructor(i,t,r,c){if(this.tokenizer=i,this.createImmutableLists=c,this._itemsConstructed=0,this._itemsFromCache=0,r&&c)throw new Error("Not supported");this.oldNodeReader=r?new C.NodeReader(r):void 0,this.positionMapper=new N.BeforeEditPositionMapper(t,i.length)}parseDocument(){this._itemsConstructed=0,this._itemsFromCache=0;let i=this.parseList(T.SmallImmutableSet.getEmpty());return i||(i=y.ListAstNode.getEmpty()),i}parseList(i){const t=new Array;for(;;){const c=this.tokenizer.peek();if(!c||c.kind===2&&c.bracketIds.intersects(i))break;const l=this.parseChild(i);l.kind===4&&l.childrenLength===0||t.push(l)}return this.oldNodeReader?(0,b.concat23Trees)(t):(0,b.concat23TreesOfSameHeight)(t,this.createImmutableLists)}parseChild(i){if(this.oldNodeReader){const r=this.positionMapper.getDistanceToNextChange(this.tokenizer.offset);if(!(0,I.lengthIsZero)(r)){const c=this.oldNodeReader.readLongestNodeAt(this.positionMapper.getOffsetBeforeChange(this.tokenizer.offset),l=>(0,I.lengthLessThan)(l.length,r)?l.canBeReused(i):!1);if(c)return this._itemsFromCache++,this.tokenizer.skip(c.length),c}}this._itemsConstructed++;const t=this.tokenizer.read();switch(t.kind){case 2:return new y.InvalidBracketAstNode(t.bracketIds,t.length);case 0:return t.astNode;case 1:const r=i.merge(t.bracketIds),c=this.parseList(r),l=this.tokenizer.peek();return l&&l.kind===2&&(l.bracketId===t.bracketId||l.bracketIds.intersects(t.bracketIds))?(this.tokenizer.read(),y.PairAstNode.create(t.astNode,c,l.astNode)):y.PairAstNode.create(t.astNode,c,null);default:throw new Error("unexpected")}}}}),define(ee[399],te([0,1]),function(q,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.guessIndentation=void 0;class y{constructor(){this.spacesDiff=0,this.looksLikeAlignment=!1}}function N(I,b,C,p,h){h.spacesDiff=0,h.looksLikeAlignment=!1;let g;for(g=0;g0&&t>0||r>0&&c>0)return;let l=Math.abs(t-c),a=Math.abs(i-r);if(l===0){h.spacesDiff=a,a>0&&0<=r-1&&r-10?h++:m>1&&g++,N(i,t,u,v,a),a.looksLikeAlignment&&!(C&&b===a.spacesDiff)))continue;let L=a.spacesDiff;L<=c&&l[L]++,i=u,t=v}let s=C;h!==g&&(s=h{let u=l[d];u>n&&(n=u,o=d)}),o===4&&l[4]>0&&l[2]>0&&l[2]>=l[4]/2&&(o=2)}return{insertSpaces:s,tabSize:o}}e.guessIndentation=T}),define(ee[400],te([0,1]),function(q,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.intervalCompare=e.recomputeMaxEnd=e.nodeAcceptEdit=e.IntervalTree=e.SENTINEL=e.IntervalNode=e.getNodeColor=void 0;function y(R){return(R.metadata&1)>>>0}e.getNodeColor=y;function N(R,A){R.metadata=R.metadata&254|A<<0}function T(R){return(R.metadata&2)>>>1==1}function I(R,A){R.metadata=R.metadata&253|(A?1:0)<<1}function b(R){return(R.metadata&4)>>>2==1}function C(R,A){R.metadata=R.metadata&251|(A?1:0)<<2}function p(R){return(R.metadata&24)>>>3}function h(R,A){R.metadata=R.metadata&231|A<<3}function g(R){return(R.metadata&32)>>>5==1}function i(R,A){R.metadata=R.metadata&223|(A?1:0)<<5}class t{constructor(A,P,E){this.metadata=0,this.parent=this,this.left=this,this.right=this,N(this,1),this.start=P,this.end=E,this.delta=0,this.maxEnd=E,this.id=A,this.ownerId=0,this.options=null,C(this,!1),h(this,1),i(this,!1),this.cachedVersionId=0,this.cachedAbsoluteStart=P,this.cachedAbsoluteEnd=E,this.range=null,I(this,!1)}reset(A,P,E,B){this.start=P,this.end=E,this.maxEnd=E,this.cachedVersionId=A,this.cachedAbsoluteStart=P,this.cachedAbsoluteEnd=E,this.range=B}setOptions(A){this.options=A;let P=this.options.className;C(this,P==="squiggly-error"||P==="squiggly-warning"||P==="squiggly-info"),h(this,this.options.stickiness),i(this,this.options.collapseOnReplaceEdit)}setCachedOffsets(A,P,E){this.cachedVersionId!==E&&(this.range=null),this.cachedVersionId=E,this.cachedAbsoluteStart=A,this.cachedAbsoluteEnd=P}detach(){this.parent=null,this.left=null,this.right=null}}e.IntervalNode=t,e.SENTINEL=new t(null,0,0),e.SENTINEL.parent=e.SENTINEL,e.SENTINEL.left=e.SENTINEL,e.SENTINEL.right=e.SENTINEL,N(e.SENTINEL,0);class r{constructor(){this.root=e.SENTINEL,this.requestNormalizeDelta=!1}intervalSearch(A,P,E,B,V){return this.root===e.SENTINEL?[]:f(this,A,P,E,B,V)}search(A,P,E){return this.root===e.SENTINEL?[]:u(this,A,P,E)}collectNodesFromOwner(A){return n(this,A)}collectNodesPostOrder(){return d(this)}insert(A){S(this,A),this._normalizeDeltaIfNecessary()}delete(A){m(this,A),this._normalizeDeltaIfNecessary()}resolveNode(A,P){const E=A;let B=0;for(;A!==this.root;)A===A.parent.right&&(B+=A.parent.delta),A=A.parent;const V=E.start+B,j=E.end+B;E.setCachedOffsets(V,j,P)}acceptReplace(A,P,E,B){const V=s(this,A,A+P);for(let j=0,K=V.length;jP||E===1?!1:E===2?!0:A}function a(R,A,P,E,B){const V=p(R),j=V===0||V===2,K=V===1||V===2,Y=P-A,J=E,Z=Math.min(Y,J),ie=R.start;let ne=!1;const G=R.end;let W=!1;A<=ie&&G<=P&&g(R)&&(R.start=A,ne=!0,R.end=A,W=!0);{const U=B?1:Y>0?2:0;!ne&&l(ie,j,A,U)&&(ne=!0),!W&&l(G,K,A,U)&&(W=!0)}if(Z>0&&!B){const U=Y>J?2:0;!ne&&l(ie,j,A+Z,U)&&(ne=!0),!W&&l(G,K,A+Z,U)&&(W=!0)}{const U=B?1:0;!ne&&l(ie,j,P,U)&&(R.start=A+J,ne=!0),!W&&l(G,K,P,U)&&(R.end=A+J,W=!0)}const z=J-Y;ne||(R.start=Math.max(0,ie+z)),W||(R.end=Math.max(0,G+z)),R.start>R.end&&(R.end=R.start)}e.nodeAcceptEdit=a;function s(R,A,P){let E=R.root,B=0,V=0,j=0,K=0,Y=[],J=0;for(;E!==e.SENTINEL;){if(T(E)){I(E.left,!1),I(E.right,!1),E===E.parent.right&&(B-=E.parent.delta),E=E.parent;continue}if(!T(E.left)){if(V=B+E.maxEnd,VP){I(E,!0);continue}if(K=B+E.end,K>=A&&(E.setCachedOffsets(j,K,0),Y[J++]=E),I(E,!0),E.right!==e.SENTINEL&&!T(E.right)){B+=E.delta,E=E.right;continue}}return I(R.root,!1),Y}function o(R,A,P,E){let B=R.root,V=0,j=0,K=0;const Y=E-(P-A);for(;B!==e.SENTINEL;){if(T(B)){I(B.left,!1),I(B.right,!1),B===B.parent.right&&(V-=B.parent.delta),M(B),B=B.parent;continue}if(!T(B.left)){if(j=V+B.maxEnd,jP){B.start+=Y,B.end+=Y,B.delta+=Y,(B.delta<-1073741824||B.delta>1073741824)&&(R.requestNormalizeDelta=!0),I(B,!0);continue}if(I(B,!0),B.right!==e.SENTINEL&&!T(B.right)){V+=B.delta,B=B.right;continue}}I(R.root,!1)}function n(R,A){let P=R.root,E=[],B=0;for(;P!==e.SENTINEL;){if(T(P)){I(P.left,!1),I(P.right,!1),P=P.parent;continue}if(P.left!==e.SENTINEL&&!T(P.left)){P=P.left;continue}if(P.ownerId===A&&(E[B++]=P),I(P,!0),P.right!==e.SENTINEL&&!T(P.right)){P=P.right;continue}}return I(R.root,!1),E}function d(R){let A=R.root,P=[],E=0;for(;A!==e.SENTINEL;){if(T(A)){I(A.left,!1),I(A.right,!1),A=A.parent;continue}if(A.left!==e.SENTINEL&&!T(A.left)){A=A.left;continue}if(A.right!==e.SENTINEL&&!T(A.right)){A=A.right;continue}P[E++]=A,I(A,!0)}return I(R.root,!1),P}function u(R,A,P,E){let B=R.root,V=0,j=0,K=0,Y=[],J=0;for(;B!==e.SENTINEL;){if(T(B)){I(B.left,!1),I(B.right,!1),B===B.parent.right&&(V-=B.parent.delta),B=B.parent;continue}if(B.left!==e.SENTINEL&&!T(B.left)){B=B.left;continue}j=V+B.start,K=V+B.end,B.setCachedOffsets(j,K,E);let Z=!0;if(A&&B.ownerId&&B.ownerId!==A&&(Z=!1),P&&b(B)&&(Z=!1),Z&&(Y[J++]=B),I(B,!0),B.right!==e.SENTINEL&&!T(B.right)){V+=B.delta,B=B.right;continue}}return I(R.root,!1),Y}function f(R,A,P,E,B,V){let j=R.root,K=0,Y=0,J=0,Z=0,ie=[],ne=0;for(;j!==e.SENTINEL;){if(T(j)){I(j.left,!1),I(j.right,!1),j===j.parent.right&&(K-=j.parent.delta),j=j.parent;continue}if(!T(j.left)){if(Y=K+j.maxEnd,YP){I(j,!0);continue}if(Z=K+j.end,Z>=A){j.setCachedOffsets(J,Z,V);let G=!0;E&&j.ownerId&&j.ownerId!==E&&(G=!1),B&&b(j)&&(G=!1),G&&(ie[ne++]=j)}if(I(j,!0),j.right!==e.SENTINEL&&!T(j.right)){K+=j.delta,j=j.right;continue}}return I(R.root,!1),ie}function S(R,A){if(R.root===e.SENTINEL)return A.parent=e.SENTINEL,A.left=e.SENTINEL,A.right=e.SENTINEL,N(A,0),R.root=A,R.root;v(R,A),O(A.parent);let P=A;for(;P!==R.root&&y(P.parent)===1;)if(P.parent===P.parent.parent.left){const E=P.parent.parent.right;y(E)===1?(N(P.parent,0),N(E,0),N(P.parent.parent,1),P=P.parent.parent):(P===P.parent.right&&(P=P.parent,w(R,P)),N(P.parent,0),N(P.parent.parent,1),k(R,P.parent.parent))}else{const E=P.parent.parent.left;y(E)===1?(N(P.parent,0),N(E,0),N(P.parent.parent,1),P=P.parent.parent):(P===P.parent.left&&(P=P.parent,k(R,P)),N(P.parent,0),N(P.parent.parent,1),w(R,P.parent.parent))}return N(R.root,0),A}function v(R,A){let P=0,E=R.root;const B=A.start,V=A.end;for(;;)if(F(B,V,E.start+P,E.end+P)<0)if(E.left===e.SENTINEL){A.start-=P,A.end-=P,A.maxEnd-=P,E.left=A;break}else E=E.left;else if(E.right===e.SENTINEL){A.start-=P+E.delta,A.end-=P+E.delta,A.maxEnd-=P+E.delta,E.right=A;break}else P+=E.delta,E=E.right;A.parent=E,A.left=e.SENTINEL,A.right=e.SENTINEL,N(A,1)}function m(R,A){let P,E;if(A.left===e.SENTINEL?(P=A.right,E=A,P.delta+=A.delta,(P.delta<-1073741824||P.delta>1073741824)&&(R.requestNormalizeDelta=!0),P.start+=A.delta,P.end+=A.delta):A.right===e.SENTINEL?(P=A.left,E=A):(E=_(A.right),P=E.right,P.start+=E.delta,P.end+=E.delta,P.delta+=E.delta,(P.delta<-1073741824||P.delta>1073741824)&&(R.requestNormalizeDelta=!0),E.start+=A.delta,E.end+=A.delta,E.delta=A.delta,(E.delta<-1073741824||E.delta>1073741824)&&(R.requestNormalizeDelta=!0)),E===R.root){R.root=P,N(P,0),A.detach(),L(),M(P),R.root.parent=e.SENTINEL;return}let B=y(E)===1;if(E===E.parent.left?E.parent.left=P:E.parent.right=P,E===A?P.parent=E.parent:(E.parent===A?P.parent=E:P.parent=E.parent,E.left=A.left,E.right=A.right,E.parent=A.parent,N(E,y(A)),A===R.root?R.root=E:A===A.parent.left?A.parent.left=E:A.parent.right=E,E.left!==e.SENTINEL&&(E.left.parent=E),E.right!==e.SENTINEL&&(E.right.parent=E)),A.detach(),B){O(P.parent),E!==A&&(O(E),O(E.parent)),L();return}O(P),O(P.parent),E!==A&&(O(E),O(E.parent));let V;for(;P!==R.root&&y(P)===0;)P===P.parent.left?(V=P.parent.right,y(V)===1&&(N(V,0),N(P.parent,1),w(R,P.parent),V=P.parent.right),y(V.left)===0&&y(V.right)===0?(N(V,1),P=P.parent):(y(V.right)===0&&(N(V.left,0),N(V,1),k(R,V),V=P.parent.right),N(V,y(P.parent)),N(P.parent,0),N(V.right,0),w(R,P.parent),P=R.root)):(V=P.parent.left,y(V)===1&&(N(V,0),N(P.parent,1),k(R,P.parent),V=P.parent.left),y(V.left)===0&&y(V.right)===0?(N(V,1),P=P.parent):(y(V.left)===0&&(N(V.right,0),N(V,1),w(R,V),V=P.parent.left),N(V,y(P.parent)),N(P.parent,0),N(V.left,0),k(R,P.parent),P=R.root));N(P,0),L()}function _(R){for(;R.left!==e.SENTINEL;)R=R.left;return R}function L(){e.SENTINEL.parent=e.SENTINEL,e.SENTINEL.delta=0,e.SENTINEL.start=0,e.SENTINEL.end=0}function w(R,A){const P=A.right;P.delta+=A.delta,(P.delta<-1073741824||P.delta>1073741824)&&(R.requestNormalizeDelta=!0),P.start+=A.delta,P.end+=A.delta,A.right=P.left,P.left!==e.SENTINEL&&(P.left.parent=A),P.parent=A.parent,A.parent===e.SENTINEL?R.root=P:A===A.parent.left?A.parent.left=P:A.parent.right=P,P.left=A,A.parent=P,M(A),M(P)}function k(R,A){const P=A.left;A.delta-=P.delta,(A.delta<-1073741824||A.delta>1073741824)&&(R.requestNormalizeDelta=!0),A.start-=P.delta,A.end-=P.delta,A.left=P.right,P.right!==e.SENTINEL&&(P.right.parent=A),P.parent=A.parent,A.parent===e.SENTINEL?R.root=P:A===A.parent.right?A.parent.right=P:A.parent.left=P,P.right=A,A.parent=P,M(A),M(P)}function D(R){let A=R.end;if(R.left!==e.SENTINEL){const P=R.left.maxEnd;P>A&&(A=P)}if(R.right!==e.SENTINEL){const P=R.right.maxEnd+R.delta;P>A&&(A=P)}return A}function M(R){R.maxEnd=D(R)}e.recomputeMaxEnd=M;function O(R){for(;R!==e.SENTINEL;){const A=D(R);if(R.maxEnd===A)return;R.maxEnd=A,R=R.parent}}function F(R,A,P,E){return R===P?A-E:R-P}e.intervalCompare=F}),define(ee[401],te([0,1]),function(q,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.recomputeTreeMetadata=e.updateTreeMetadata=e.fixInsert=e.rbDelete=e.rightRotate=e.leftRotate=e.resetSentinel=e.calculateLF=e.calculateSize=e.righttest=e.leftest=e.SENTINEL=e.TreeNode=void 0;class y{constructor(l,a){this.piece=l,this.color=a,this.size_left=0,this.lf_left=0,this.parent=this,this.left=this,this.right=this}next(){if(this.right!==e.SENTINEL)return N(this.right);let l=this;for(;l.parent!==e.SENTINEL&&l.parent.left!==l;)l=l.parent;return l.parent===e.SENTINEL?e.SENTINEL:l.parent}prev(){if(this.left!==e.SENTINEL)return T(this.left);let l=this;for(;l.parent!==e.SENTINEL&&l.parent.right!==l;)l=l.parent;return l.parent===e.SENTINEL?e.SENTINEL:l.parent}detach(){this.parent=null,this.left=null,this.right=null}}e.TreeNode=y,e.SENTINEL=new y(null,0),e.SENTINEL.parent=e.SENTINEL,e.SENTINEL.left=e.SENTINEL,e.SENTINEL.right=e.SENTINEL,e.SENTINEL.color=0;function N(c){for(;c.left!==e.SENTINEL;)c=c.left;return c}e.leftest=N;function T(c){for(;c.right!==e.SENTINEL;)c=c.right;return c}e.righttest=T;function I(c){return c===e.SENTINEL?0:c.size_left+c.piece.length+I(c.right)}e.calculateSize=I;function b(c){return c===e.SENTINEL?0:c.lf_left+c.piece.lineFeedCnt+b(c.right)}e.calculateLF=b;function C(){e.SENTINEL.parent=e.SENTINEL}e.resetSentinel=C;function p(c,l){let a=l.right;a.size_left+=l.size_left+(l.piece?l.piece.length:0),a.lf_left+=l.lf_left+(l.piece?l.piece.lineFeedCnt:0),l.right=a.left,a.left!==e.SENTINEL&&(a.left.parent=l),a.parent=l.parent,l.parent===e.SENTINEL?c.root=a:l.parent.left===l?l.parent.left=a:l.parent.right=a,a.left=l,l.parent=a}e.leftRotate=p;function h(c,l){let a=l.left;l.left=a.right,a.right!==e.SENTINEL&&(a.right.parent=l),a.parent=l.parent,l.size_left-=a.size_left+(a.piece?a.piece.length:0),l.lf_left-=a.lf_left+(a.piece?a.piece.lineFeedCnt:0),l.parent===e.SENTINEL?c.root=a:l===l.parent.right?l.parent.right=a:l.parent.left=a,a.right=l,l.parent=a}e.rightRotate=h;function g(c,l){let a,s;if(l.left===e.SENTINEL?(s=l,a=s.right):l.right===e.SENTINEL?(s=l,a=s.left):(s=N(l.right),a=s.right),s===c.root){c.root=a,a.color=0,l.detach(),C(),c.root.parent=e.SENTINEL;return}let o=s.color===1;if(s===s.parent.left?s.parent.left=a:s.parent.right=a,s===l?(a.parent=s.parent,r(c,a)):(s.parent===l?a.parent=s:a.parent=s.parent,r(c,a),s.left=l.left,s.right=l.right,s.parent=l.parent,s.color=l.color,l===c.root?c.root=s:l===l.parent.left?l.parent.left=s:l.parent.right=s,s.left!==e.SENTINEL&&(s.left.parent=s),s.right!==e.SENTINEL&&(s.right.parent=s),s.size_left=l.size_left,s.lf_left=l.lf_left,r(c,s)),l.detach(),a.parent.left===a){let d=I(a),u=b(a);if(d!==a.parent.size_left||u!==a.parent.lf_left){let f=d-a.parent.size_left,S=u-a.parent.lf_left;a.parent.size_left=d,a.parent.lf_left=u,t(c,a.parent,f,S)}}if(r(c,a.parent),o){C();return}let n;for(;a!==c.root&&a.color===0;)a===a.parent.left?(n=a.parent.right,n.color===1&&(n.color=0,a.parent.color=1,p(c,a.parent),n=a.parent.right),n.left.color===0&&n.right.color===0?(n.color=1,a=a.parent):(n.right.color===0&&(n.left.color=0,n.color=1,h(c,n),n=a.parent.right),n.color=a.parent.color,a.parent.color=0,n.right.color=0,p(c,a.parent),a=c.root)):(n=a.parent.left,n.color===1&&(n.color=0,a.parent.color=1,h(c,a.parent),n=a.parent.left),n.left.color===0&&n.right.color===0?(n.color=1,a=a.parent):(n.left.color===0&&(n.right.color=0,n.color=1,p(c,n),n=a.parent.left),n.color=a.parent.color,a.parent.color=0,n.left.color=0,h(c,a.parent),a=c.root));a.color=0,C()}e.rbDelete=g;function i(c,l){for(r(c,l);l!==c.root&&l.parent.color===1;)if(l.parent===l.parent.parent.left){const a=l.parent.parent.right;a.color===1?(l.parent.color=0,a.color=0,l.parent.parent.color=1,l=l.parent.parent):(l===l.parent.right&&(l=l.parent,p(c,l)),l.parent.color=0,l.parent.parent.color=1,h(c,l.parent.parent))}else{const a=l.parent.parent.left;a.color===1?(l.parent.color=0,a.color=0,l.parent.parent.color=1,l=l.parent.parent):(l===l.parent.left&&(l=l.parent,h(c,l)),l.parent.color=0,l.parent.parent.color=1,p(c,l.parent.parent))}c.root.color=0}e.fixInsert=i;function t(c,l,a,s){for(;l!==c.root&&l!==e.SENTINEL;)l.parent.left===l&&(l.parent.size_left+=a,l.parent.lf_left+=s),l=l.parent}e.updateTreeMetadata=t;function r(c,l){let a=0,s=0;if(l!==c.root){for(;l!==c.root&&l===l.parent.right;)l=l.parent;if(l!==c.root)for(l=l.parent,a=I(l.left)-l.size_left,s=b(l.left)-l.lf_left,l.size_left+=a,l.lf_left+=s;l!==c.root&&(a!==0||s!==0);)l.parent.left===l&&(l.parent.size_left+=a,l.parent.lf_left+=s),l=l.parent}}e.recomputeTreeMetadata=r}),define(ee[230],te([0,1,104,87]),function(q,e,y,N){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.compressConsecutiveTextChanges=e.TextChange=void 0;function T(p){return p.replace(/\n/g,"\\n").replace(/\r/g,"\\r")}class I{constructor(h,g,i,t){this.oldPosition=h,this.oldText=g,this.newPosition=i,this.newText=t}get oldLength(){return this.oldText.length}get oldEnd(){return this.oldPosition+this.oldText.length}get newLength(){return this.newText.length}get newEnd(){return this.newPosition+this.newText.length}toString(){return this.oldText.length===0?`(insert@${this.oldPosition} "${T(this.newText)}")`:this.newText.length===0?`(delete@${this.oldPosition} "${T(this.oldText)}")`:`(replace@${this.oldPosition} "${T(this.oldText)}" with "${T(this.newText)}")`}static _writeStringSize(h){return 4+2*h.length}static _writeString(h,g,i){const t=g.length;y.writeUInt32BE(h,t,i),i+=4;for(let r=0;r0&&r.push(new N(c.ownerId,c.range.startLineNumber,c.range.startColumn,c.options.before,0)),c.options.after&&c.options.after.content.length>0&&r.push(new N(c.ownerId,c.range.endLineNumber,c.range.endColumn,c.options.after,1));return r.sort((c,l)=>c.lineNumber===l.lineNumber?c.column===l.column?c.order-l.order:c.column-l.column:c.lineNumber-l.lineNumber),r}}e.LineInjectedText=N;class T{constructor(t,r,c){this.changeType=2,this.lineNumber=t,this.detail=r,this.injectedText=c}}e.ModelRawLineChanged=T;class I{constructor(t,r){this.changeType=3,this.fromLineNumber=t,this.toLineNumber=r}}e.ModelRawLinesDeleted=I;class b{constructor(t,r,c,l){this.changeType=4,this.injectedTexts=l,this.fromLineNumber=t,this.toLineNumber=r,this.detail=c}}e.ModelRawLinesInserted=b;class C{constructor(){this.changeType=5}}e.ModelRawEOLChanged=C;class p{constructor(t,r,c,l){this.changes=t,this.versionId=r,this.isUndoing=c,this.isRedoing=l,this.resultingSelection=null}containsEvent(t){for(let r=0,c=this.changes.length;r=0;let d=null;try{d=y.createRegExp(this.searchString,this.isRegex,{matchCase:this.matchCase,wholeWord:!1,multiline:n,global:!0,unicode:!0})}catch(f){return null}if(!d)return null;let u=!this.isRegex&&!n;return u&&this.searchString.toLowerCase()!==this.searchString.toUpperCase()&&(u=this.matchCase),new g(d,this.wordSeparators?(0,N.getMapForWordSeparators)(this.wordSeparators):null,u?this.searchString:null)}}e.SearchParams=p;function h(o){if(!o||o.length===0)return!1;for(let n=0,d=o.length;n=d)break;const f=o.charCodeAt(n);if(f===110||f===114||f===87)return!0}return!1}e.isMultilineRegexSource=h;class g{constructor(n,d,u){this.regex=n,this.wordSeparators=d,this.simpleSearch=u}}e.SearchData=g;function i(o,n,d){if(!d)return new b.FindMatch(o,null);let u=[];for(let f=0,S=n.length;f>0);d[S]>=n?f=S-1:d[S+1]>=n?(u=S,f=S):u=S+1}return u+1}}class r{static findMatches(n,d,u,f,S){const v=d.parseSearchRequest();return v?v.regex.multiline?this._doFindMatchesMultiline(n,u,new s(v.wordSeparators,v.regex),f,S):this._doFindMatchesLineByLine(n,u,v,f,S):[]}static _getMultilineMatchRange(n,d,u,f,S,v){let m,_=0;f?(_=f.findLineFeedCountBeforeOffset(S),m=d+S+_):m=d+S;let L;if(f){let M=f.findLineFeedCountBeforeOffset(S+v.length)-_;L=m+v.length+M}else L=m+v.length;const w=n.getPositionAt(m),k=n.getPositionAt(L);return new I.Range(w.lineNumber,w.column,k.lineNumber,k.column)}static _doFindMatchesMultiline(n,d,u,f,S){const v=n.getOffsetAt(d.getStartPosition()),m=n.getValueInRange(d,1),_=n.getEOL()===`\r
`?new t(m):null,L=[];let w=0,k;for(u.reset(0);k=u.next(m);)if(L[w++]=i(this._getMultilineMatchRange(n,v,m,_,k.index,k[0]),k,f),w>=S)return L;return L}static _doFindMatchesLineByLine(n,d,u,f,S){const v=[];let m=0;if(d.startLineNumber===d.endLineNumber){const L=n.getLineContent(d.startLineNumber).substring(d.startColumn-1,d.endColumn-1);return m=this._findMatchesInLine(u,L,d.startLineNumber,d.startColumn-1,m,v,f,S),v}const _=n.getLineContent(d.startLineNumber).substring(d.startColumn-1);m=this._findMatchesInLine(u,_,d.startLineNumber,d.startColumn-1,m,v,f,S);for(let L=d.startLineNumber+1;L=_))return S;return S}const w=new s(n.wordSeparators,n.regex);let k;w.reset(0);do if(k=w.next(d),k&&(v[S++]=i(new I.Range(u,k.index+1+f,u,k.index+1+k[0].length+f),k,m),S>=_))return S;while(k);return S}static findNextMatch(n,d,u,f){const S=d.parseSearchRequest();if(!S)return null;const v=new s(S.wordSeparators,S.regex);return S.regex.multiline?this._doFindNextMatchMultiline(n,u,v,f):this._doFindNextMatchLineByLine(n,u,v,f)}static _doFindNextMatchMultiline(n,d,u,f){const S=new T.Position(d.lineNumber,1),v=n.getOffsetAt(S),m=n.getLineCount(),_=n.getValueInRange(new I.Range(S.lineNumber,S.column,m,n.getLineMaxColumn(m)),1),L=n.getEOL()===`\r
`?new t(_):null;u.reset(d.column-1);let w=u.next(_);return w?i(this._getMultilineMatchRange(n,v,_,L,w.index,w[0]),w,f):d.lineNumber!==1||d.column!==1?this._doFindNextMatchMultiline(n,new T.Position(1,1),u,f):null}static _doFindNextMatchLineByLine(n,d,u,f){const S=n.getLineCount(),v=d.lineNumber,m=n.getLineContent(v),_=this._findFirstMatchInLine(u,m,v,d.column,f);if(_)return _;for(let L=1;L<=S;L++){const w=(v+L-1)%S,k=n.getLineContent(w+1),D=this._findFirstMatchInLine(u,k,w+1,1,f);if(D)return D}return null}static _findFirstMatchInLine(n,d,u,f,S){n.reset(f-1);const v=n.next(d);return v?i(new I.Range(u,v.index+1,u,v.index+1+v[0].length),v,S):null}static findPreviousMatch(n,d,u,f){const S=d.parseSearchRequest();if(!S)return null;const v=new s(S.wordSeparators,S.regex);return S.regex.multiline?this._doFindPreviousMatchMultiline(n,u,v,f):this._doFindPreviousMatchLineByLine(n,u,v,f)}static _doFindPreviousMatchMultiline(n,d,u,f){const S=this._doFindMatchesMultiline(n,new I.Range(1,1,d.lineNumber,d.column),u,f,10*C);if(S.length>0)return S[S.length-1];const v=n.getLineCount();return d.lineNumber!==v||d.column!==n.getLineMaxColumn(v)?this._doFindPreviousMatchMultiline(n,new T.Position(v,n.getLineMaxColumn(v)),u,f):null}static _doFindPreviousMatchLineByLine(n,d,u,f){const S=n.getLineCount(),v=d.lineNumber,m=n.getLineContent(v).substring(0,d.column-1),_=this._findLastMatchInLine(u,m,v,f);if(_)return _;for(let L=1;L<=S;L++){const w=(S+v-L-1)%S,k=n.getLineContent(w+1),D=this._findLastMatchInLine(u,k,w+1,f);if(D)return D}return null}static _findLastMatchInLine(n,d,u,f){let S=null,v;for(n.reset(0);v=n.next(d);)S=i(new I.Range(u,v.index+1,u,v.index+1+v[0].length),v,f);return S}}e.TextModelSearch=r;function c(o,n,d,u,f){if(u===0)return!0;const S=n.charCodeAt(u-1);if(o.get(S)!==0||S===13||S===10)return!0;if(f>0){const v=n.charCodeAt(u);if(o.get(v)!==0)return!0}return!1}function l(o,n,d,u,f){if(u+f===d)return!0;const S=n.charCodeAt(u+f);if(o.get(S)!==0||S===13||S===10)return!0;if(f>0){const v=n.charCodeAt(u+f-1);if(o.get(v)!==0)return!0}return!1}function a(o,n,d,u,f){return c(o,n,d,u,f)&&l(o,n,d,u,f)}e.isValidMatch=a;class s{constructor(n,d){this._wordSeparators=n,this._searchRegex=d,this._prevMatchStartIndex=-1,this._prevMatchLength=0}reset(n){this._searchRegex.lastIndex=n,this._prevMatchStartIndex=-1,this._prevMatchLength=0}next(n){const d=n.length;let u;do{if(this._prevMatchStartIndex+this._prevMatchLength===d||(u=this._searchRegex.exec(n),!u))return null;const f=u.index,S=u[0].length;if(f===this._prevMatchStartIndex&&S===this._prevMatchLength){if(S===0){y.getNextCodePoint(n,d,this._searchRegex.lastIndex)>65535?this._searchRegex.lastIndex+=2:this._searchRegex.lastIndex+=1;continue}return null}if(this._prevMatchStartIndex=f,this._prevMatchLength=S,!this._wordSeparators||a(this._wordSeparators,n,d,f,S))return u}while(u);return null}}e.Searcher=s}),define(ee[231],te([0,1,14,3,49,401,145]),function(q,e,y,N,T,I,b){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.PieceTreeBase=e.StringBuffer=e.Piece=e.createLineStarts=e.createLineStartsFast=e.LineStarts=e.createUintArray=e.AverageBufferSize=void 0,e.AverageBufferSize=65535;function C(a){let s;return a[a.length-1]<65536?s=new Uint16Array(a.length):s=new Uint32Array(a.length),s.set(a,0),s}e.createUintArray=C;class p{constructor(s,o,n,d,u){this.lineStarts=s,this.cr=o,this.lf=n,this.crlf=d,this.isBasicASCII=u}}e.LineStarts=p;function h(a,s=!0){let o=[0],n=1;for(let d=0,u=a.length;d126)&&(f=!1)}const S=new p(C(a),n,d,u,f);return a.length=0,S}e.createLineStarts=g;class i{constructor(s,o,n,d,u){this.bufferIndex=s,this.start=o,this.end=n,this.lineFeedCnt=d,this.length=u}}e.Piece=i;class t{constructor(s,o){this.buffer=s,this.lineStarts=o}}e.StringBuffer=t;class r{constructor(s,o){this._pieces=[],this._tree=s,this._BOM=o,this._index=0,s.root!==I.SENTINEL&&s.iterate(s.root,n=>(n!==I.SENTINEL&&this._pieces.push(n.piece),!0))}read(){return this._pieces.length===0?this._index===0?(this._index++,this._BOM):null:this._index>this._pieces.length-1?null:this._index===0?this._BOM+this._tree.getPieceContent(this._pieces[this._index++]):this._tree.getPieceContent(this._pieces[this._index++])}}class c{constructor(s){this._limit=s,this._cache=[]}get(s){for(let o=this._cache.length-1;o>=0;o--){let n=this._cache[o];if(n.nodeStartOffset<=s&&n.nodeStartOffset+n.node.piece.length>=s)return n}return null}get2(s){for(let o=this._cache.length-1;o>=0;o--){let n=this._cache[o];if(n.nodeStartLineNumber&&n.nodeStartLineNumber=s)return n}return null}set(s){this._cache.length>=this._limit&&this._cache.shift(),this._cache.push(s)}validate(s){let o=!1,n=this._cache;for(let d=0;d=s){n[d]=null,o=!0;continue}}if(o){let d=[];for(const u of n)u!==null&&d.push(u);this._cache=d}}}class l{constructor(s,o,n){this.create(s,o,n)}create(s,o,n){this._buffers=[new t("",[0])],this._lastChangeBufferPos={line:0,column:0},this.root=I.SENTINEL,this._lineCnt=1,this._length=0,this._EOL=o,this._EOLLength=o.length,this._EOLNormalized=n;let d=null;for(let u=0,f=s.length;u0){s[u].lineStarts||(s[u].lineStarts=h(s[u].buffer));let S=new i(u+1,{line:0,column:0},{line:s[u].lineStarts.length-1,column:s[u].buffer.length-s[u].lineStarts[s[u].lineStarts.length-1]},s[u].lineStarts.length-1,s[u].buffer.length);this._buffers.push(s[u]),d=this.rbInsertRight(d,S)}this._searchCache=new c(1),this._lastVisitedLine={lineNumber:0,value:""},this.computeBufferMetadata()}normalizeEOL(s){let o=e.AverageBufferSize,n=o-Math.floor(o/3),d=n*2,u="",f=0,S=[];if(this.iterate(this.root,v=>{let m=this.getNodeContent(v),_=m.length;if(f<=n||f+_0){let v=u.replace(/\r\n|\r|\n/g,s);S.push(new t(v,h(v)))}this.create(S,s,!0)}getEOL(){return this._EOL}setEOL(s){this._EOL=s,this._EOLLength=this._EOL.length,this.normalizeEOL(s)}createSnapshot(s){return new r(this,s)}getOffsetAt(s,o){let n=0,d=this.root;for(;d!==I.SENTINEL;)if(d.left!==I.SENTINEL&&d.lf_left+1>=s)d=d.left;else{if(d.lf_left+d.piece.lineFeedCnt+1>=s)return n+=d.size_left,n+=this.getAccumulatedValue(d,s-d.lf_left-2)+o-1;s-=d.lf_left+d.piece.lineFeedCnt,n+=d.size_left+d.piece.length,d=d.right}return n}getPositionAt(s){s=Math.floor(s),s=Math.max(0,s);let o=this.root,n=0,d=s;for(;o!==I.SENTINEL;)if(o.size_left!==0&&o.size_left>=s)o=o.left;else if(o.size_left+o.piece.length>=s){let u=this.getIndexOf(o,s-o.size_left);if(n+=o.lf_left+u.index,u.index===0){let f=this.getOffsetAt(n+1,1),S=d-f;return new y.Position(n+1,S+1)}return new y.Position(n+1,u.remainder+1)}else if(s-=o.size_left+o.piece.length,n+=o.lf_left+o.piece.lineFeedCnt,o.right===I.SENTINEL){let u=this.getOffsetAt(n+1,1),f=d-s-u;return new y.Position(n+1,f+1)}else o=o.right;return new y.Position(1,1)}getValueInRange(s,o){if(s.startLineNumber===s.endLineNumber&&s.startColumn===s.endColumn)return"";let n=this.nodeAt2(s.startLineNumber,s.startColumn),d=this.nodeAt2(s.endLineNumber,s.endColumn),u=this.getValueInRange2(n,d);return o?o!==this._EOL||!this._EOLNormalized?u.replace(/\r\n|\r|\n/g,o):o===this.getEOL()&&this._EOLNormalized?u:u.replace(/\r\n|\r|\n/g,o):u}getValueInRange2(s,o){if(s.node===o.node){let S=s.node,v=this._buffers[S.piece.bufferIndex].buffer,m=this.offsetInBuffer(S.piece.bufferIndex,S.piece.start);return v.substring(m+s.remainder,m+o.remainder)}let n=s.node,d=this._buffers[n.piece.bufferIndex].buffer,u=this.offsetInBuffer(n.piece.bufferIndex,n.piece.start),f=d.substring(u+s.remainder,u+n.piece.length);for(n=n.next();n!==I.SENTINEL;){let S=this._buffers[n.piece.bufferIndex].buffer,v=this.offsetInBuffer(n.piece.bufferIndex,n.piece.start);if(n===o.node){f+=S.substring(v,v+o.remainder);break}else f+=S.substr(v,n.piece.length);n=n.next()}return f}getLinesContent(){let s=[],o=0,n="",d=!1;return this.iterate(this.root,u=>{if(u===I.SENTINEL)return!0;const f=u.piece;let S=f.length;if(S===0)return!0;const v=this._buffers[f.bufferIndex].buffer,m=this._buffers[f.bufferIndex].lineStarts,_=f.start.line,L=f.end.line;let w=m[_]+f.start.column;if(d&&(v.charCodeAt(w)===10&&(w++,S--),s[o++]=n,n="",d=!1,S===0))return!0;if(_===L)return!this._EOLNormalized&&v.charCodeAt(w+S-1)===13?(d=!0,n+=v.substr(w,S-1)):n+=v.substr(w,S),!0;n+=this._EOLNormalized?v.substring(w,Math.max(w,m[_+1]-this._EOLLength)):v.substring(w,m[_+1]).replace(/(\r\n|\r|\n)$/,""),s[o++]=n;for(let k=_+1;kP+D,o.reset(0)):(R=w.buffer,A=P=>P,o.reset(D));do if(O=o.next(R),O){if(A(O.index)>=M)return _;this.positionInBuffer(s,A(O.index)-k,F);let P=this.getLineFeedCnt(s.piece.bufferIndex,u,F),E=F.line===u.line?F.column-u.column+d:F.column+1,B=E+O[0].length;if(L[_++]=(0,b.createFindMatch)(new N.Range(n+P,E,n+P,B),O,v),A(O.index)+O[0].length>=M||_>=m)return _}while(O);return _}findMatchesLineByLine(s,o,n,d){const u=[];let f=0;const S=new b.Searcher(o.wordSeparators,o.regex);let v=this.nodeAt2(s.startLineNumber,s.startColumn);if(v===null)return[];let m=this.nodeAt2(s.endLineNumber,s.endColumn);if(m===null)return[];let _=this.positionInBuffer(v.node,v.remainder),L=this.positionInBuffer(m.node,m.remainder);if(v.node===m.node)return this.findMatchesInNode(v.node,S,s.startLineNumber,s.startColumn,_,L,o,n,d,f,u),u;let w=s.startLineNumber,k=v.node;for(;k!==m.node;){let M=this.getLineFeedCnt(k.piece.bufferIndex,_,k.piece.end);if(M>=1){let F=this._buffers[k.piece.bufferIndex].lineStarts,R=this.offsetInBuffer(k.piece.bufferIndex,k.piece.start),A=F[_.line+M],P=w===s.startLineNumber?s.startColumn:1;if(f=this.findMatchesInNode(k,S,w,P,_,this.positionInBuffer(k,A-R),o,n,d,f,u),f>=d)return u;w+=M}let O=w===s.startLineNumber?s.startColumn-1:0;if(w===s.endLineNumber){const F=this.getLineContent(w).substring(O,s.endColumn-1);return f=this._findMatchesInLine(o,S,F,s.endLineNumber,O,f,u,n,d),u}if(f=this._findMatchesInLine(o,S,this.getLineContent(w).substr(O),w,O,f,u,n,d),f>=d)return u;w++,v=this.nodeAt2(w,1),k=v.node,_=this.positionInBuffer(v.node,v.remainder)}if(w===s.endLineNumber){let M=w===s.startLineNumber?s.startColumn-1:0;const O=this.getLineContent(w).substring(M,s.endColumn-1);return f=this._findMatchesInLine(o,S,O,s.endLineNumber,M,f,u,n,d),u}let D=w===s.startLineNumber?s.startColumn:1;return f=this.findMatchesInNode(m.node,S,w,D,_,L,o,n,d,f,u),u}_findMatchesInLine(s,o,n,d,u,f,S,v,m){const _=s.wordSeparators;if(!v&&s.simpleSearch){const w=s.simpleSearch,k=w.length,D=n.length;let M=-k;for(;(M=n.indexOf(w,M+k))!==-1;)if((!_||(0,b.isValidMatch)(_,n,D,M,k))&&(S[f++]=new T.FindMatch(new N.Range(d,M+1+u,d,M+1+k+u),null),f>=m))return f;return f}let L;o.reset(0);do if(L=o.next(n),L&&(S[f++]=(0,b.createFindMatch)(new N.Range(d,L.index+1+u,d,L.index+1+L[0].length+u),L,v),f>=m))return f;while(L);return f}insert(s,o,n=!1){if(this._EOLNormalized=this._EOLNormalized&&n,this._lastVisitedLine.lineNumber=0,this._lastVisitedLine.value="",this.root!==I.SENTINEL){let{node:d,remainder:u,nodeStartOffset:f}=this.nodeAt(s),S=d.piece,v=S.bufferIndex,m=this.positionInBuffer(d,u);if(d.piece.bufferIndex===0&&S.end.line===this._lastChangeBufferPos.line&&S.end.column===this._lastChangeBufferPos.column&&f+S.length===s&&o.lengths){let _=[],L=new i(S.bufferIndex,m,S.end,this.getLineFeedCnt(S.bufferIndex,m,S.end),this.offsetInBuffer(v,S.end)-this.offsetInBuffer(v,m));if(this.shouldCheckCRLF()&&this.endWithCR(o)&&this.nodeCharCodeAt(d,u)===10){let M={line:L.start.line+1,column:0};L=new i(L.bufferIndex,M,L.end,this.getLineFeedCnt(L.bufferIndex,M,L.end),L.length-1),o+=`
`}if(this.shouldCheckCRLF()&&this.startWithLF(o))if(this.nodeCharCodeAt(d,u-1)===13){let M=this.positionInBuffer(d,u-1);this.deleteNodeTail(d,M),o="\r"+o,d.piece.length===0&&_.push(d)}else this.deleteNodeTail(d,m);else this.deleteNodeTail(d,m);let w=this.createNewPieces(o);L.length>0&&this.rbInsertRight(d,L);let k=d;for(let D=0;D=0;f--)u=this.rbInsertLeft(u,d[f]);this.validateCRLFWithPrevNode(u),this.deleteNodes(n)}insertContentToNodeRight(s,o){this.adjustCarriageReturnFromNext(s,o)&&(s+=`
`);let n=this.createNewPieces(s),d=this.rbInsertRight(o,n[0]),u=d;for(let f=1;f=w)m=L+1;else break;return n?(n.line=L,n.column=v-k,null):{line:L,column:v-k}}getLineFeedCnt(s,o,n){if(n.column===0)return n.line-o.line;let d=this._buffers[s].lineStarts;if(n.line===d.length-1)return n.line-o.line;let u=d[n.line+1],f=d[n.line]+n.column;if(u>f+1)return n.line-o.line;let S=f-1;return this._buffers[s].buffer.charCodeAt(S)===13?n.line-o.line+1:n.line-o.line}offsetInBuffer(s,o){return this._buffers[s].lineStarts[o.line]+o.column}deleteNodes(s){for(let o=0;oe.AverageBufferSize){let _=[];for(;s.length>e.AverageBufferSize;){const w=s.charCodeAt(e.AverageBufferSize-1);let k;w===13||w>=55296&&w<=56319?(k=s.substring(0,e.AverageBufferSize-1),s=s.substring(e.AverageBufferSize-1)):(k=s.substring(0,e.AverageBufferSize),s=s.substring(e.AverageBufferSize));let D=h(k);_.push(new i(this._buffers.length,{line:0,column:0},{line:D.length-1,column:k.length-D[D.length-1]},D.length-1,k.length)),this._buffers.push(new t(k,D))}let L=h(s);return _.push(new i(this._buffers.length,{line:0,column:0},{line:L.length-1,column:s.length-L[L.length-1]},L.length-1,s.length)),this._buffers.push(new t(s,L)),_}let o=this._buffers[0].buffer.length;const n=h(s,!1);let d=this._lastChangeBufferPos;if(this._buffers[0].lineStarts[this._buffers[0].lineStarts.length-1]===o&&o!==0&&this.startWithLF(s)&&this.endWithCR(this._buffers[0].buffer)){this._lastChangeBufferPos={line:this._lastChangeBufferPos.line,column:this._lastChangeBufferPos.column+1},d=this._lastChangeBufferPos;for(let _=0;_=s-1)n=n.left;else if(n.lf_left+n.piece.lineFeedCnt>s-1){let v=this.getAccumulatedValue(n,s-n.lf_left-2),m=this.getAccumulatedValue(n,s-n.lf_left-1),_=this._buffers[n.piece.bufferIndex].buffer,L=this.offsetInBuffer(n.piece.bufferIndex,n.piece.start);return f+=n.size_left,this._searchCache.set({node:n,nodeStartOffset:f,nodeStartLineNumber:S-(s-1-n.lf_left)}),_.substring(L+v,L+m-o)}else if(n.lf_left+n.piece.lineFeedCnt===s-1){let v=this.getAccumulatedValue(n,s-n.lf_left-2),m=this._buffers[n.piece.bufferIndex].buffer,_=this.offsetInBuffer(n.piece.bufferIndex,n.piece.start);d=m.substring(_+v,_+n.piece.length);break}else s-=n.lf_left+n.piece.lineFeedCnt,f+=n.size_left+n.piece.length,n=n.right}for(n=n.next();n!==I.SENTINEL;){let f=this._buffers[n.piece.bufferIndex].buffer;if(n.piece.lineFeedCnt>0){let S=this.getAccumulatedValue(n,0),v=this.offsetInBuffer(n.piece.bufferIndex,n.piece.start);return d+=f.substring(v,v+S-o),d}else{let S=this.offsetInBuffer(n.piece.bufferIndex,n.piece.start);d+=f.substr(S,n.piece.length)}n=n.next()}return d}computeBufferMetadata(){let s=this.root,o=1,n=0;for(;s!==I.SENTINEL;)o+=s.lf_left+s.piece.lineFeedCnt,n+=s.size_left+s.piece.length,s=s.right;this._lineCnt=o,this._length=n,this._searchCache.validate(this._length)}getIndexOf(s,o){let n=s.piece,d=this.positionInBuffer(s,o),u=d.line-n.start.line;if(this.offsetInBuffer(n.bufferIndex,n.end)-this.offsetInBuffer(n.bufferIndex,n.start)===o){let f=this.getLineFeedCnt(s.piece.bufferIndex,n.start,d);if(f!==u)return{index:f,remainder:0}}return{index:u,remainder:d.column}}getAccumulatedValue(s,o){if(o<0)return 0;let n=s.piece,d=this._buffers[n.bufferIndex].lineStarts,u=n.start.line+o+1;return u>n.end.line?d[n.end.line]+n.end.column-d[n.start.line]-n.start.column:d[u]-d[n.start.line]-n.start.column}deleteNodeTail(s,o){const n=s.piece,d=n.lineFeedCnt,u=this.offsetInBuffer(n.bufferIndex,n.end),f=o,S=this.offsetInBuffer(n.bufferIndex,f),v=this.getLineFeedCnt(n.bufferIndex,n.start,f),m=v-d,_=S-u,L=n.length+_;s.piece=new i(n.bufferIndex,n.start,f,v,L),(0,I.updateTreeMetadata)(this,s,_,m)}deleteNodeHead(s,o){const n=s.piece,d=n.lineFeedCnt,u=this.offsetInBuffer(n.bufferIndex,n.start),f=o,S=this.getLineFeedCnt(n.bufferIndex,f,n.end),v=this.offsetInBuffer(n.bufferIndex,f),m=S-d,_=u-v,L=n.length+_;s.piece=new i(n.bufferIndex,f,n.end,S,L),(0,I.updateTreeMetadata)(this,s,_,m)}shrinkNode(s,o,n){const d=s.piece,u=d.start,f=d.end,S=d.length,v=d.lineFeedCnt,m=o,_=this.getLineFeedCnt(d.bufferIndex,d.start,m),L=this.offsetInBuffer(d.bufferIndex,o)-this.offsetInBuffer(d.bufferIndex,u);s.piece=new i(d.bufferIndex,d.start,m,_,L),(0,I.updateTreeMetadata)(this,s,L-S,_-v);let w=new i(d.bufferIndex,n,f,this.getLineFeedCnt(d.bufferIndex,n,f),this.offsetInBuffer(d.bufferIndex,f)-this.offsetInBuffer(d.bufferIndex,n)),k=this.rbInsertRight(s,w);this.validateCRLFWithPrevNode(k)}appendToNode(s,o){this.adjustCarriageReturnFromNext(o,s)&&(o+=`
`);const n=this.shouldCheckCRLF()&&this.startWithLF(o)&&this.endWithCR(s),d=this._buffers[0].buffer.length;this._buffers[0].buffer+=o;const u=h(o,!1);for(let k=0;ks)o=o.left;else if(o.size_left+o.piece.length>=s){d+=o.size_left;let u={node:o,remainder:s-o.size_left,nodeStartOffset:d};return this._searchCache.set(u),u}else s-=o.size_left+o.piece.length,d+=o.size_left+o.piece.length,o=o.right;return null}nodeAt2(s,o){let n=this.root,d=0;for(;n!==I.SENTINEL;)if(n.left!==I.SENTINEL&&n.lf_left>=s-1)n=n.left;else if(n.lf_left+n.piece.lineFeedCnt>s-1){let u=this.getAccumulatedValue(n,s-n.lf_left-2),f=this.getAccumulatedValue(n,s-n.lf_left-1);return d+=n.size_left,{node:n,remainder:Math.min(u+o-1,f),nodeStartOffset:d}}else if(n.lf_left+n.piece.lineFeedCnt===s-1){let u=this.getAccumulatedValue(n,s-n.lf_left-2);if(u+o-1<=n.piece.length)return{node:n,remainder:u+o-1,nodeStartOffset:d};o-=n.piece.length-u;break}else s-=n.lf_left+n.piece.lineFeedCnt,d+=n.size_left+n.piece.length,n=n.right;for(n=n.next();n!==I.SENTINEL;){if(n.piece.lineFeedCnt>0){let u=this.getAccumulatedValue(n,0),f=this.offsetOfNode(n);return{node:n,remainder:Math.min(o-1,u),nodeStartOffset:f}}else if(n.piece.length>=o-1){let u=this.offsetOfNode(n);return{node:n,remainder:o-1,nodeStartOffset:u}}else o-=n.piece.length;n=n.next()}return null}nodeCharCodeAt(s,o){if(s.piece.lineFeedCnt<1)return-1;let n=this._buffers[s.piece.bufferIndex],d=this.offsetInBuffer(s.piece.bufferIndex,s.piece.start)+o;return n.buffer.charCodeAt(d)}offsetOfNode(s){if(!s)return 0;let o=s.size_left;for(;s!==this.root;)s.parent.right===s&&(o+=s.parent.size_left+s.parent.piece.length),s=s.parent;return o}shouldCheckCRLF(){return!(this._EOLNormalized&&this._EOL===`
`)}startWithLF(s){if(typeof s=="string")return s.charCodeAt(0)===10;if(s===I.SENTINEL||s.piece.lineFeedCnt===0)return!1;let o=s.piece,n=this._buffers[o.bufferIndex].lineStarts,d=o.start.line,u=n[d]+o.start.column;return d===n.length-1||n[d+1]>u+1?!1:this._buffers[o.bufferIndex].buffer.charCodeAt(u)===10}endWithCR(s){return typeof s=="string"?s.charCodeAt(s.length-1)===13:s===I.SENTINEL||s.piece.lineFeedCnt===0?!1:this.nodeCharCodeAt(s,s.piece.length-1)===13}validateCRLFWithPrevNode(s){if(this.shouldCheckCRLF()&&this.startWithLF(s)){let o=s.prev();this.endWithCR(o)&&this.fixCRLF(o,s)}}validateCRLFWithNextNode(s){if(this.shouldCheckCRLF()&&this.endWithCR(s)){let o=s.next();this.startWithLF(o)&&this.fixCRLF(s,o)}}fixCRLF(s,o){let n=[],d=this._buffers[s.piece.bufferIndex].lineStarts,u;s.piece.end.column===0?u={line:s.piece.end.line-1,column:d[s.piece.end.line]-d[s.piece.end.line-1]-1}:u={line:s.piece.end.line,column:s.piece.end.column-1};const f=s.piece.length-1,S=s.piece.lineFeedCnt-1;s.piece=new i(s.piece.bufferIndex,s.piece.start,u,S,f),(0,I.updateTreeMetadata)(this,s,-1,-1),s.piece.length===0&&n.push(s);let v={line:o.piece.start.line+1,column:0};const m=o.piece.length-1,_=this.getLineFeedCnt(o.piece.bufferIndex,v,o.piece.end);o.piece=new i(o.piece.bufferIndex,v,o.piece.end,_,m),(0,I.updateTreeMetadata)(this,o,-1,-1),o.piece.length===0&&n.push(o);let L=this.createNewPieces(`\r
`);this.rbInsertRight(s,L[0]);for(let w=0;w/?";function y(C=""){let p="(-?\\d*\\.\\d\\w*)|([^";for(const h of e.USUAL_WORD_SEPARATORS)C.indexOf(h)>=0||(p+="\\"+h);return p+="\\s]+)",new RegExp(p,"g")}e.DEFAULT_WORD_REGEXP=y();function N(C){let p=e.DEFAULT_WORD_REGEXP;if(C&&C instanceof RegExp)if(C.global)p=C;else{let h="g";C.ignoreCase&&(h+="i"),C.multiline&&(h+="m"),C.unicode&&(h+="u"),p=new RegExp(C.source,h)}return p.lastIndex=0,p}e.ensureValidWordDefinition=N;const T={maxLen:1e3,windowSize:15,timeBudget:150};function I(C,p,h,g,i=T){if(h.length>i.maxLen){let a=C-i.maxLen/2;return a<0?a=0:g+=a,h=h.substring(a,C+i.maxLen/2),I(C,p,h,g,i)}const t=Date.now(),r=C-1-g;let c=-1,l=null;for(let a=1;!(Date.now()-t>=i.timeBudget);a++){const s=r-i.windowSize*a;p.lastIndex=Math.max(0,s);const o=b(p,h,r,c);if(!o&&l||(l=o,s<=0))break;c=s}if(l){let a={word:l[0],startColumn:g+1+l.index,endColumn:g+1+l.index+l[0].length};return p.lastIndex=0,a}return null}e.getWordAtText=I;function b(C,p,h,g){let i;for(;i=C.exec(p);){const t=i.index||0;if(t<=h&&C.lastIndex>=h)return i;if(g>0&&t>g)return null}return null}}),define(ee[115],te([0,1]),function(q,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.AutoClosingPairs=e.StandardAutoClosingPairConditional=e.IndentAction=void 0;var y;(function(b){b[b.None=0]="None",b[b.Indent=1]="Indent",b[b.IndentOutdent=2]="IndentOutdent",b[b.Outdent=3]="Outdent"})(y=e.IndentAction||(e.IndentAction={}));class N{constructor(C){if(this._neutralCharacter=null,this._neutralCharacterSearched=!1,this.open=C.open,this.close=C.close,this._standardTokenMask=0,Array.isArray(C.notIn))for(let p=0,h=C.notIn.length;ph&&(h=i)}return h}else{if(typeof I=="string")return p?I==="*"?5:I===C?10:0:0;if(I){const{language:h,pattern:g,scheme:i,hasAccessToAllModels:t}=I;if(!p&&!t)return 0;let r=0;if(i)if(i===b.scheme)r=10;else if(i==="*")r=5;else return 0;if(h)if(h===C)r=10;else if(h==="*")r=Math.max(r,5);else return 0;if(g){let c;if(typeof g=="string"?c=g:c=Object.assign(Object.assign({},g),{base:(0,N.normalize)(g.base)}),c===b.fsPath||(0,y.match)(c,b.fsPath))r=10;else return 0}return r}else return 0}}e.score=T}),define(ee[403],te([0,1,97]),function(q,e,y){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.computeLinks=e.LinkComputer=e.StateMachine=e.Uint8Matrix=void 0;class N{constructor(t,r,c){const l=new Uint8Array(t*r);for(let a=0,s=t*r;ar&&(r=n),o>c&&(c=o),d>c&&(c=d)}r++,c++;let l=new N(c,r,0);for(let a=0,s=t.length;a=this._maxCharCode?0:this._states.get(t,r)}}e.StateMachine=T;let I=null;function b(){return I===null&&(I=new T([[1,104,2],[1,72,2],[1,102,6],[1,70,6],[2,116,3],[2,84,3],[3,116,4],[3,84,4],[4,112,5],[4,80,5],[5,115,9],[5,83,9],[5,58,10],[6,105,7],[6,73,7],[7,108,8],[7,76,8],[8,101,9],[8,69,9],[9,58,10],[10,47,11],[11,47,12]])),I}let C=null;function p(){if(C===null){C=new y.CharacterClassifier(0);const i=` <>'"\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 r=0;rl);if(l>0){const o=r.charCodeAt(l-1),n=r.charCodeAt(s);(o===40&&n===41||o===91&&n===93||o===123&&n===125)&&s--}return{range:{startLineNumber:c,startColumn:l+1,endLineNumber:c,endColumn:s+2},url:r.substring(l,s+1)}}static computeLinks(t,r=b()){const c=p();let l=[];for(let a=1,s=t.getLineCount();a<=s;a++){const o=t.getLineContent(a),n=o.length;let d=0,u=0,f=0,S=1,v=!1,m=!1,_=!1,L=!1;for(;d>>0,new y.TokenizationResult2(g,p===null?e.NULL_STATE:p)}e.nullTokenize2=I}),define(ee[147],te([0,1]),function(q,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ignoreBracketsInToken=e.ScopedLineTokens=e.createScopedLineTokens=void 0;function y(I,b){let C=I.getCount(),p=I.findTokenIndexAtOffset(b),h=I.getLanguageId(p),g=p;for(;g+10&&I.getLanguageId(i-1)===h;)i--;return new N(I,h,i,g+1,I.getStartOffset(i),I.getEndOffset(g))}e.createScopedLineTokens=y;class N{constructor(b,C,p,h,g,i){this._scopedLineTokensBrand=void 0,this._actual=b,this.languageId=C,this._firstTokenIndex=p,this._lastTokenIndex=h,this.firstCharOffset=g,this._lastCharOffset=i}getLineContent(){return this._actual.getLineContent().substring(this.firstCharOffset,this._lastCharOffset)}getActualLineContentBefore(b){return this._actual.getLineContent().substring(0,this.firstCharOffset+b)}getTokenCount(){return this._lastTokenIndex-this._firstTokenIndex}findTokenIndexAtOffset(b){return this._actual.findTokenIndexAtOffset(b+this.firstCharOffset)-this._firstTokenIndex}getStandardTokenType(b){return this._actual.getStandardTokenType(b+this._firstTokenIndex)}}e.ScopedLineTokens=N;function T(I){return(I&7)!=0}e.ignoreBracketsInToken=T}),define(ee[404],te([0,1,115]),function(q,e,y){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.CharacterPairSupport=void 0;class N{constructor(b){if(b.autoClosingPairs?this._autoClosingPairs=b.autoClosingPairs.map(C=>new y.StandardAutoClosingPairConditional(C)):b.brackets?this._autoClosingPairs=b.brackets.map(C=>new y.StandardAutoClosingPairConditional({open:C[0],close:C[1]})):this._autoClosingPairs=[],b.colorizedBracketPairs?this._colorizedBracketPairs=T(b.colorizedBracketPairs.map(C=>[C[0],C[1]])):b.brackets?this._colorizedBracketPairs=T(b.brackets.map(C=>[C[0],C[1]]).filter(C=>!(C[0]==="<"&&C[1]===">"))):this._colorizedBracketPairs=[],b.__electricCharacterSupport&&b.__electricCharacterSupport.docComment){const C=b.__electricCharacterSupport.docComment;this._autoClosingPairs.push(new y.StandardAutoClosingPairConditional({open:C.open,close:C.close||""}))}this._autoCloseBefore=typeof b.autoCloseBefore=="string"?b.autoCloseBefore:N.DEFAULT_AUTOCLOSE_BEFORE_LANGUAGE_DEFINED,this._surroundingPairs=b.surroundingPairs||this._autoClosingPairs}getAutoClosingPairs(){return this._autoClosingPairs}getAutoCloseBeforeSet(){return this._autoCloseBefore}getSurroundingPairs(){return this._surroundingPairs}getColorizedBrackets(){return this._colorizedBracketPairs}}e.CharacterPairSupport=N,N.DEFAULT_AUTOCLOSE_BEFORE_LANGUAGE_DEFINED=`;:.,=}])>
`;function T(I){return I.filter(([b,C])=>b!==""&&C!=="")}}),define(ee[405],te([0,1]),function(q,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.IndentRulesSupport=void 0;function y(T){return T.global&&(T.lastIndex=0),!0}class N{constructor(I){this._indentationRules=I}shouldIncrease(I){return!!(this._indentationRules&&this._indentationRules.increaseIndentPattern&&y(this._indentationRules.increaseIndentPattern)&&this._indentationRules.increaseIndentPattern.test(I))}shouldDecrease(I){return!!(this._indentationRules&&this._indentationRules.decreaseIndentPattern&&y(this._indentationRules.decreaseIndentPattern)&&this._indentationRules.decreaseIndentPattern.test(I))}shouldIndentNextLine(I){return!!(this._indentationRules&&this._indentationRules.indentNextLinePattern&&y(this._indentationRules.indentNextLinePattern)&&this._indentationRules.indentNextLinePattern.test(I))}shouldIgnore(I){return!!(this._indentationRules&&this._indentationRules.unIndentedLinePattern&&y(this._indentationRules.unIndentedLinePattern)&&this._indentationRules.unIndentedLinePattern.test(I))}getIndentMetadata(I){let b=0;return this.shouldIncrease(I)&&(b+=1),this.shouldDecrease(I)&&(b+=2),this.shouldIndentNextLine(I)&&(b+=4),this.shouldIgnore(I)&&(b+=8),b}}e.IndentRulesSupport=N}),define(ee[406],te([0,1]),function(q,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.BasicInplaceReplace=void 0;class y{constructor(){this._defaultValueSet=[["true","false"],["True","False"],["Private","Public","Friend","ReadOnly","Partial","Protected","WriteOnly"],["public","protected","private"]]}navigateValueSet(T,I,b,C,p){if(T&&I){let h=this.doNavigateValueSet(I,p);if(h)return{range:T,value:h}}if(b&&C){let h=this.doNavigateValueSet(C,p);if(h)return{range:b,value:h}}return null}doNavigateValueSet(T,I){let b=this.numberReplace(T,I);return b!==null?b:this.textReplace(T,I)}numberReplace(T,I){let b=Math.pow(10,T.length-(T.lastIndexOf(".")+1)),C=Number(T),p=parseFloat(T);return!isNaN(C)&&!isNaN(p)&&C===p?C===0&&!I?null:(C=Math.floor(C*b),C+=I?b:-b,String(C/b)):null}textReplace(T,I){return this.valueSetsReplace(this._defaultValueSet,T,I)}valueSetsReplace(T,I,b){let C=null;for(let p=0,h=T.length;C===null&&p=0?(C+=b?1:-1,C<0?C=T.length-1:C%=T.length,T[C]):null}}e.BasicInplaceReplace=y,y.INSTANCE=new y}),define(ee[407],te([0,1,13,8,115]),function(q,e,y,N,T){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.OnEnterSupport=void 0;class I{constructor(C){C=C||{},C.brackets=C.brackets||[["(",")"],["{","}"],["[","]"]],this._brackets=[],C.brackets.forEach(p=>{const h=I._createOpenBracketRegExp(p[0]),g=I._createCloseBracketRegExp(p[1]);h&&g&&this._brackets.push({open:p[0],openRegExp:h,close:p[1],closeRegExp:g})}),this._regExpRules=C.onEnterRules||[]}onEnter(C,p,h,g){if(C>=3)for(let i=0,t=this._regExpRules.length;il.reg?(l.reg.lastIndex=0,l.reg.test(l.text)):!0))return r.action}if(C>=2&&h.length>0&&g.length>0)for(let i=0,t=this._brackets.length;i=2&&h.length>0){for(let i=0,t=this._brackets.length;i[m[0].toLowerCase(),m[1].toLowerCase()]);const u=[];for(let m=0;m{const[L,w]=m,[k,D]=_;return L===k||L===D||w===k||w===D},S=(m,_)=>{const L=Math.min(m,_),w=Math.max(m,_);for(let k=0;k0&&v.push({open:_,close:L})}return v}class C{constructor(d,u){this._richEditBracketsBrand=void 0;const f=b(u);this.brackets=f.map((S,v)=>new I(d,v,S.open,S.close,i(S.open,S.close,f,v),t(S.open,S.close,f,v))),this.forwardRegex=r(this.brackets),this.reversedRegex=c(this.brackets),this.textIsBracket={},this.textIsOpenBracket={},this.maxBracketLength=0;for(const S of this.brackets){for(const v of S.open)this.textIsBracket[v]=S,this.textIsOpenBracket[v]=!0,this.maxBracketLength=Math.max(this.maxBracketLength,v.length);for(const v of S.close)this.textIsBracket[v]=S,this.textIsOpenBracket[v]=!1,this.maxBracketLength=Math.max(this.maxBracketLength,v.length)}}}e.RichEditBrackets=C;function p(n,d,u,f){for(let S=0,v=d.length;S=0&&f.push(_);for(const _ of m.close)_.indexOf(n)>=0&&f.push(_)}}function h(n,d){return n.length-d.length}function g(n){if(n.length<=1)return n;const d=[],u=new Set;for(const f of n)u.has(f)||(d.push(f),u.add(f));return d}function i(n,d,u,f){let S=[];S=S.concat(n),S=S.concat(d);for(let v=0,m=S.length;v=0;m--)S[v++]=f.charCodeAt(m);return N.getPlatformTextDecoder().decode(S)}else{let S=[],v=0;for(let m=f.length-1;m>=0;m--)S[v++]=f.charAt(m);return S.join("")}}let d=null,u=null;return function(S){return d!==S&&(d=S,u=n(d)),u}}();class o{static _findPrevBracketInText(d,u,f,S){let v=f.match(d);if(!v)return null;let m=f.length-(v.index||0),_=v[0].length,L=S+m;return new T.Range(u,L-_+1,u,L+1)}static findPrevBracketInRange(d,u,f,S,v){const _=s(f).substring(f.length-v,f.length-S);return this._findPrevBracketInText(d,u,_,S)}static findNextBracketInText(d,u,f,S){let v=f.match(d);if(!v)return null;let m=v.index||0,_=v[0].length;if(_===0)return null;let L=S+m;return new T.Range(u,L+1,u,L+1+_)}static findNextBracketInRange(d,u,f,S,v){const m=f.substring(S,v);return this.findNextBracketInText(d,u,m,S)}}e.BracketsUtils=o}),define(ee[408],te([0,1,19,147,177]),function(q,e,y,N,T){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.BracketElectricCharacterSupport=void 0;class I{constructor(C){this._richEditBrackets=C}getElectricCharacters(){let C=[];if(this._richEditBrackets)for(const p of this._richEditBrackets.brackets)for(const h of p.close){const g=h.charAt(h.length-1);C.push(g)}return(0,y.distinct)(C)}onElectricCharacter(C,p,h){if(!this._richEditBrackets||this._richEditBrackets.brackets.length===0)return null;const g=p.findTokenIndexAtOffset(h-1);if((0,N.ignoreBracketsInToken)(p.getStandardTokenType(g)))return null;const i=this._richEditBrackets.reversedRegex,t=p.getLineContent().substring(0,h-1)+C,r=T.BracketsUtils.findPrevBracketInRange(i,1,t,0,t.length);if(!r)return null;const c=t.substring(r.startColumn-1,r.endColumn-1).toLowerCase();if(this._richEditBrackets.textIsOpenBracket[c])return null;const a=p.getActualLineContentBefore(r.startColumn-1);return/^\s*$/.test(a)?{matchOpenBracket:c}:null}}e.BracketElectricCharacterSupport=I}),define(ee[409],te([0,1,29]),function(q,e,y){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.generateTokensCSSForColorMap=e.ThemeTrieElement=e.ThemeTrieElementRule=e.strcmp=e.toStandardTokenType=e.TokenTheme=e.ColorMap=e.parseTokenTheme=e.ParsedTokenThemeRule=void 0;class N{constructor(a,s,o,n,d){this._parsedThemeRuleBrand=void 0,this.token=a,this.index=s,this.fontStyle=o,this.foreground=n,this.background=d}}e.ParsedTokenThemeRule=N;function T(l){if(!l||!Array.isArray(l))return[];let a=[],s=0;for(let o=0,n=l.length;o{let L=i(m.token,_.token);return L!==0?L:m.index-_.index});let s=0,o="000000",n="ffffff";for(;l.length>=1&&l[0].token==="";){let m=l.shift();m.fontStyle!==-1&&(s=m.fontStyle),m.foreground!==null&&(o=m.foreground),m.background!==null&&(n=m.background)}let d=new C;for(let m of a)d.getId(m);let u=d.getId(o),f=d.getId(n),S=new t(s,u,f),v=new r(S);for(let m=0,_=l.length;m<_;m++){let L=l[m];v.insert(L.token,L.fontStyle,d.getId(L.foreground),d.getId(L.background))}return new p(d,v)}const b=/^#?([0-9A-Fa-f]{6})([0-9A-Fa-f]{2})?$/;class C{constructor(){this._lastColorId=0,this._id2color=[],this._color2id=new Map}getId(a){if(a===null)return 0;const s=a.match(b);if(!s)throw new Error("Illegal value for token color: "+a);a=s[1].toUpperCase();let o=this._color2id.get(a);return o||(o=++this._lastColorId,this._color2id.set(a,o),this._id2color[o]=y.Color.fromHex("#"+a),o)}getColorMap(){return this._id2color.slice(0)}}e.ColorMap=C;class p{constructor(a,s){this._colorMap=a,this._root=s,this._cache=new Map}static createFromRawTokenTheme(a,s){return this.createFromParsedTokenTheme(T(a),s)}static createFromParsedTokenTheme(a,s){return I(a,s)}getColorMap(){return this._colorMap.getColorMap()}_match(a){return this._root.match(a)}match(a,s){let o=this._cache.get(s);if(typeof o=="undefined"){let n=this._match(s),d=g(s);o=(n.metadata|d<<8)>>>0,this._cache.set(s,o)}return(o|a<<0)>>>0}}e.TokenTheme=p;const h=/\b(comment|string|regex|regexp)\b/;function g(l){let a=l.match(h);if(!a)return 0;switch(a[1]){case"comment":return 1;case"string":return 2;case"regex":return 4;case"regexp":return 4}throw new Error("Unexpected match for standard token type!")}e.toStandardTokenType=g;function i(l,a){return la?1:0}e.strcmp=i;class t{constructor(a,s,o){this._themeTrieElementRuleBrand=void 0,this._fontStyle=a,this._foreground=s,this._background=o,this.metadata=(this._fontStyle<<11|this._foreground<<14|this._background<<23)>>>0}clone(){return new t(this._fontStyle,this._foreground,this._background)}acceptOverwrite(a,s,o){a!==-1&&(this._fontStyle=a),s!==0&&(this._foreground=s),o!==0&&(this._background=o),this.metadata=(this._fontStyle<<11|this._foreground<<14|this._background<<23)>>>0}}e.ThemeTrieElementRule=t;class r{constructor(a){this._themeTrieElementBrand=void 0,this._mainRule=a,this._children=new Map}match(a){if(a==="")return this._mainRule;let s=a.indexOf("."),o,n;s===-1?(o=a,n=""):(o=a.substring(0,s),n=a.substring(s+1));let d=this._children.get(o);return typeof d!="undefined"?d.match(n):this._mainRule}insert(a,s,o,n){if(a===""){this._mainRule.acceptOverwrite(s,o,n);return}let d=a.indexOf("."),u,f;d===-1?(u=a,f=""):(u=a.substring(0,d),f=a.substring(d+1));let S=this._children.get(u);typeof S=="undefined"&&(S=new r(this._mainRule.clone()),this._children.set(u,S)),S.insert(f,s,o,n)}}e.ThemeTrieElement=r;function c(l){let a=[];for(let s=1,o=l.length;s{this._map.get(b)===C&&(this._map.delete(b),this.fire([b]))})}registerPromise(b,C){let p=null,h=!1;return this._promises.set(b,C.then(g=>{this._promises.delete(b),!(h||!g)&&(p=this.register(b,g))})),(0,N.toDisposable)(()=>{h=!0,p&&p.dispose()})}getPromise(b){const C=this.get(b);if(C)return Promise.resolve(C);const p=this._promises.get(b);return p?p.then(h=>this.get(b)):null}get(b){return this._map.get(b)||null}setColorMap(b){this._colorMap=b,this._onDidChange.fire({changedLanguages:Array.from(this._map.keys()),changedColorMap:!0})}getColorMap(){return this._colorMap}getDefaultBackground(){return this._colorMap&&this._colorMap.length>2?this._colorMap[2]:null}}e.TokenizationRegistryImpl=T}),define(ee[232],te([0,1,3,145,8,20]),function(q,e,y,N,T,I){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.UnicodeTextModelHighlighter=void 0;class b{static computeUnicodeHighlights(g,i,t){const r=t?t.startLineNumber:1,c=t?t.endLineNumber:g.getLineCount(),l=new p(i),a=l.getCandidateCodePoints();let s;a==="allNonBasicAscii"?s=new RegExp("[^\\t\\n\\r\\x20-\\x7E]","g"):s=new RegExp(`${C(Array.from(a))}`,"g");const o=new N.Searcher(null,s),n=[];let d=!1,u,f=0,S=0,v=0;e:for(let m=r,_=c;m<=_;m++){const L=g.getLineContent(m),w=L.length;o.reset(0);do if(u=o.next(L),u){let k=u.index,D=u.index+u[0].length;if(k>0){const F=L.charCodeAt(k-1);T.isHighSurrogate(F)&&k--}if(D+1=F){d=!0;break e}n.push(new y.Range(m,k+1,m,D+1))}}while(u)}return{ranges:n,hasMore:d,ambiguousCharacterCount:f,invisibleCharacterCount:S,nonBasicAsciiCharacterCount:v}}static computeUnicodeHighlightReason(g,i){switch(new p(i).shouldHighlightNonBasicASCII(g)){case 0:return null;case 2:return{kind:1};case 3:const c=T.AmbiguousCharacters.getPrimaryConfusable(g.codePointAt(0));return{kind:0,confusableWith:String.fromCodePoint(c)};case 1:return{kind:2}}}}e.UnicodeTextModelHighlighter=b;function C(h,g){return`[${T.escapeRegExpCharacters(h.map(t=>String.fromCodePoint(t)).join(""))}]`}class p{constructor(g){this.options=g,this.allowedCodePoints=new Set(g.allowedCodePoints)}getCandidateCodePoints(){if(this.options.nonBasicASCII)return"allNonBasicAscii";const g=new Set;if(this.options.invisibleCharacters)for(const i of T.InvisibleCharacters.codePoints)g.add(i);if(this.options.ambiguousCharacters)for(const i of T.AmbiguousCharacters.getPrimaryConfusableCodePoints())g.add(i);for(const i of this.allowedCodePoints)g.delete(i);return g}shouldHighlightNonBasicASCII(g){const i=g.codePointAt(0);return this.allowedCodePoints.has(i)?0:this.options.nonBasicASCII?1:this.options.invisibleCharacters&&!(g===" "||g===`
`||g===" ")&&T.InvisibleCharacters.isInvisibleCharacter(i)?2:this.options.ambiguousCharacters&&T.AmbiguousCharacters.isAmbiguous(i)?3:0}}}),define(ee[411],te([0,1,104,17]),function(q,e,y,N){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.encodeSemanticTokensDto=void 0;function T(p){for(let h=0,g=p.length;hp&&(o=p-n);const d=l.color;let u=this._color2Id[d];u||(u=++this._lastAssignedId,this._color2Id[d]=u,this._id2Color[u]=d);const f=new y(o-n,o+n,u);l.setColorZone(f),t.push(f)}return this._colorZonesInvalid=!1,t.sort(y.compare),t}}e.OverviewZoneManager=T}),define(ee[116],te([0,1]),function(q,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.VisibleRanges=e.HorizontalPosition=e.FloatHorizontalRange=e.HorizontalRange=e.LineVisibleRanges=e.RenderingContext=e.RestrictedRenderingContext=void 0;class y{constructor(g,i){this._restrictedRenderingContextBrand=void 0,this._viewLayout=g,this.viewportData=i,this.scrollWidth=this._viewLayout.getScrollWidth(),this.scrollHeight=this._viewLayout.getScrollHeight(),this.visibleRange=this.viewportData.visibleRange,this.bigNumbersDelta=this.viewportData.bigNumbersDelta;const t=this._viewLayout.getCurrentViewport();this.scrollTop=t.top,this.scrollLeft=t.left,this.viewportWidth=t.width,this.viewportHeight=t.height}getScrolledTopFromAbsoluteTop(g){return g-this.scrollTop}getVerticalOffsetForLineNumber(g){return this._viewLayout.getVerticalOffsetForLineNumber(g)}getDecorationsInViewport(){return this.viewportData.getDecorationsInViewport()}}e.RestrictedRenderingContext=y;class N extends y{constructor(g,i,t){super(g,i);this._renderingContextBrand=void 0,this._viewLines=t}linesVisibleRangesForRange(g,i){return this._viewLines.linesVisibleRangesForRange(g,i)}visibleRangeForPosition(g){return this._viewLines.visibleRangeForPosition(g)}}e.RenderingContext=N;class T{constructor(g,i,t){this.outsideRenderedLine=g,this.lineNumber=i,this.ranges=t}}e.LineVisibleRanges=T;class I{constructor(g,i){this._horizontalRangeBrand=void 0,this.left=Math.round(g),this.width=Math.round(i)}static from(g){const i=new Array(g.length);for(let t=0,r=g.length;t=i.left?p.width=Math.max(p.width,i.left+i.width-p.left):(b[C++]=p,p=i)}return b[C++]=p,b}static _createHorizontalRangesFromClientRects(I,b){if(!I||I.length===0)return null;const C=[];for(let p=0,h=I.length;pr)return null;if(b=Math.min(r,Math.max(t,b)),p=Math.min(r,Math.max(t,p)),b===p&&C===h&&C===0&&!I.children[b].firstChild){const s=I.children[b].getClientRects();return this._createHorizontalRangesFromClientRects(s,g)}b!==p&&p>0&&h===0&&(p--,h=1073741824);let c=I.children[b].firstChild,l=I.children[p].firstChild;if((!c||!l)&&(!c&&C===0&&b>0&&(c=I.children[b-1].firstChild,C=1073741824),!l&&h===0&&p>0&&(l=I.children[p-1].firstChild,h=1073741824)),!c||!l)return null;C=Math.min(c.textContent.length,Math.max(0,C)),h=Math.min(l.textContent.length,Math.max(0,h));const a=this._readClientRects(c,C,l,h,i);return this._createHorizontalRangesFromClientRects(a,g)}}e.RangeUtil=N}),define(ee[413],te([0,1]),function(q,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ViewContext=e.EditorTheme=void 0;class y{constructor(I){this._theme=I}get type(){return this._theme.type}update(I){this._theme=I}getColor(I){return this._theme.getColor(I)}}e.EditorTheme=y;class N{constructor(I,b,C){this.configuration=I,this.theme=new y(b),this.model=C,this.viewLayout=C.viewLayout}addEventHandler(I){this.model.addViewEventHandler(I)}removeEventHandler(I){this.model.removeViewEventHandler(I)}}e.ViewContext=N}),define(ee[179],te([0,1]),function(q,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ViewZonesChangedEvent=e.ViewTokensColorsChangedEvent=e.ViewTokensChangedEvent=e.ViewThemeChangedEvent=e.ViewScrollChangedEvent=e.ViewRevealRangeRequestEvent=e.ViewLinesInsertedEvent=e.ViewLinesDeletedEvent=e.ViewLinesChangedEvent=e.ViewLineMappingChangedEvent=e.ViewLanguageConfigurationEvent=e.ViewFocusChangedEvent=e.ViewFlushedEvent=e.ViewDecorationsChangedEvent=e.ViewCursorStateChangedEvent=e.ViewConfigurationChangedEvent=e.ViewCompositionEndEvent=e.ViewCompositionStartEvent=void 0;class y{constructor(){this.type=0}}e.ViewCompositionStartEvent=y;class N{constructor(){this.type=1}}e.ViewCompositionEndEvent=N;class T{constructor(u){this.type=2,this._source=u}hasChanged(u){return this._source.hasChanged(u)}}e.ViewConfigurationChangedEvent=T;class I{constructor(u,f){this.type=3,this.selections=u,this.modelSelections=f}}e.ViewCursorStateChangedEvent=I;class b{constructor(u){this.type=4,u?(this.affectsMinimap=u.affectsMinimap,this.affectsOverviewRuler=u.affectsOverviewRuler):(this.affectsMinimap=!0,this.affectsOverviewRuler=!0)}}e.ViewDecorationsChangedEvent=b;class C{constructor(){this.type=5}}e.ViewFlushedEvent=C;class p{constructor(u){this.type=6,this.isFocused=u}}e.ViewFocusChangedEvent=p;class h{constructor(){this.type=7}}e.ViewLanguageConfigurationEvent=h;class g{constructor(){this.type=8}}e.ViewLineMappingChangedEvent=g;class i{constructor(u,f){this.type=9,this.fromLineNumber=u,this.toLineNumber=f}}e.ViewLinesChangedEvent=i;class t{constructor(u,f){this.type=10,this.fromLineNumber=u,this.toLineNumber=f}}e.ViewLinesDeletedEvent=t;class r{constructor(u,f){this.type=11,this.fromLineNumber=u,this.toLineNumber=f}}e.ViewLinesInsertedEvent=r;class c{constructor(u,f,S,v,m,_){this.type=12,this.source=u,this.range=f,this.selections=S,this.verticalType=v,this.revealHorizontal=m,this.scrollType=_}}e.ViewRevealRangeRequestEvent=c;class l{constructor(u){this.type=13,this.scrollWidth=u.scrollWidth,this.scrollLeft=u.scrollLeft,this.scrollHeight=u.scrollHeight,this.scrollTop=u.scrollTop,this.scrollWidthChanged=u.scrollWidthChanged,this.scrollLeftChanged=u.scrollLeftChanged,this.scrollHeightChanged=u.scrollHeightChanged,this.scrollTopChanged=u.scrollTopChanged}}e.ViewScrollChangedEvent=l;class a{constructor(){this.type=14}}e.ViewThemeChangedEvent=a;class s{constructor(u){this.type=15,this.ranges=u}}e.ViewTokensChangedEvent=s;class o{constructor(){this.type=16}}e.ViewTokensColorsChangedEvent=o;class n{constructor(){this.type=17}}e.ViewZonesChangedEvent=n}),define(ee[148],te([0,1,8]),function(q,e,y){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.LineDecorationsNormalizer=e.DecorationSegment=e.LineDecoration=void 0;class N{constructor(p,h,g,i){this.startColumn=p,this.endColumn=h,this.className=g,this.type=i,this._lineDecorationBrand=void 0}static _equals(p,h){return p.startColumn===h.startColumn&&p.endColumn===h.endColumn&&p.className===h.className&&p.type===h.type}static equalsArr(p,h){const g=p.length,i=h.length;if(g!==i)return!1;for(let t=0;t=t||(c[l++]=new N(Math.max(1,a.startColumn-i+1),Math.min(r+1,a.endColumn-i+1),a.className,a.type));return c}static filter(p,h,g,i){if(p.length===0)return[];let t=[],r=0;for(let c=0,l=p.length;ch||s.isEmpty()&&(a.type===0||a.type===3))continue;const o=s.startLineNumber===h?s.startColumn:g,n=s.endLineNumber===h?s.endColumn:i;t[r++]=new N(o,n,a.inlineClassName,a.type)}return t}static _typeCompare(p,h){const g=[2,0,1,3];return g[p]-g[h]}static compare(p,h){if(p.startColumn!==h.startColumn)return p.startColumn-h.startColumn;if(p.endColumn!==h.endColumn)return p.endColumn-h.endColumn;const g=N._typeCompare(p.type,h.type);return g!==0?g:p.className!==h.className?p.className0&&this.stopOffsets[0]0&&h
=p){this.stopOffsets.splice(i,0,p),this.classNames.splice(i,0,h),this.metadata.splice(i,0,g);break}this.count++}}class b{static normalize(p,h){if(h.length===0)return[];let g=[];const i=new I;let t=0;for(let r=0,c=h.length;r1){const f=p.charCodeAt(a-2);y.isHighSurrogate(f)&&a--}if(s>1){const f=p.charCodeAt(s-2);y.isHighSurrogate(f)&&s--}const d=a-1,u=s-2;t=i.consumeLowerThan(d,t,g),i.count===0&&(t=d),i.insert(u,o,n)}return i.consumeLowerThan(1073741824,t,g),g}}e.LineDecorationsNormalizer=b}),define(ee[414],te([0,1,8]),function(q,e,y){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.LinesLayout=e.EditorWhitespace=void 0;class N{constructor(){this._hasPending=!1,this._inserts=[],this._changes=[],this._removes=[]}insert(C){this._hasPending=!0,this._inserts.push(C)}change(C){this._hasPending=!0,this._changes.push(C)}remove(C){this._hasPending=!0,this._removes.push(C)}mustCommit(){return this._hasPending}commit(C){if(!this._hasPending)return;const p=this._inserts,h=this._changes,g=this._removes;this._hasPending=!1,this._inserts=[],this._changes=[],this._removes=[],C._commitPendingChanges(p,h,g)}}class T{constructor(C,p,h,g,i){this.id=C,this.afterLineNumber=p,this.ordinal=h,this.height=g,this.minWidth=i,this.prefixSum=0}}e.EditorWhitespace=T;class I{constructor(C,p,h,g){this._instanceId=y.singleLetterHash(++I.INSTANCE_COUNT),this._pendingChanges=new N,this._lastWhitespaceId=0,this._arr=[],this._prefixSumValidIndex=-1,this._minWidth=-1,this._lineCount=C,this._lineHeight=p,this._paddingTop=h,this._paddingBottom=g}static findInsertionIndex(C,p,h){let g=0,i=C.length;for(;g>>1;p===C[t].afterLineNumber?h{p=!0,g=g|0,i=i|0,t=t|0,r=r|0;const c=this._instanceId+ ++this._lastWhitespaceId;return this._pendingChanges.insert(new T(c,g,i,t,r)),c},changeOneWhitespace:(g,i,t)=>{p=!0,i=i|0,t=t|0,this._pendingChanges.change({id:g,newAfterLineNumber:i,newHeight:t})},removeWhitespace:g=>{p=!0,this._pendingChanges.remove({id:g})}})}finally{this._pendingChanges.commit(this)}return p}_commitPendingChanges(C,p,h){if((C.length>0||h.length>0)&&(this._minWidth=-1),C.length+p.length+h.length<=1){for(const c of C)this._insertWhitespace(c);for(const c of p)this._changeOneWhitespace(c.id,c.newAfterLineNumber,c.newHeight);for(const c of h){const l=this._findWhitespaceIndex(c.id);l!==-1&&this._removeWhitespace(l)}return}const g=new Set;for(const c of h)g.add(c.id);const i=new Map;for(const c of p)i.set(c.id,c);const t=c=>{let l=[];for(const a of c)if(!g.has(a.id)){if(i.has(a.id)){const s=i.get(a.id);a.afterLineNumber=s.newAfterLineNumber,a.height=s.newHeight}l.push(a)}return l},r=t(this._arr).concat(t(C));r.sort((c,l)=>c.afterLineNumber===l.afterLineNumber?c.ordinal-l.ordinal:c.afterLineNumber-l.afterLineNumber),this._arr=r,this._prefixSumValidIndex=-1}_checkPendingChanges(){this._pendingChanges.mustCommit()&&this._pendingChanges.commit(this)}_insertWhitespace(C){const p=I.findInsertionIndex(this._arr,C.afterLineNumber,C.ordinal);this._arr.splice(p,0,C),this._prefixSumValidIndex=Math.min(this._prefixSumValidIndex,p-1)}_findWhitespaceIndex(C){const p=this._arr;for(let h=0,g=p.length;hp&&(this._arr[h].afterLineNumber-=p-C+1)}}onLinesInserted(C,p){this._checkPendingChanges(),C=C|0,p=p|0,this._lineCount+=p-C+1;for(let h=0,g=this._arr.length;h=p.length||p[r+1].afterLineNumber>=C)return r;h=r+1|0}else g=r-1|0}return-1}_findFirstWhitespaceAfterLineNumber(C){C=C|0;const h=this._findLastWhitespaceBeforeLineNumber(C)+1;return h1?p=this._lineHeight*(C-1):p=0;const h=this.getWhitespaceAccumulatedHeightBeforeLineNumber(C);return p+h+this._paddingTop}getWhitespaceMinWidth(){if(this._checkPendingChanges(),this._minWidth===-1){let C=0;for(let p=0,h=this._arr.length;pp}isInTopPadding(C){return this._paddingTop===0?!1:(this._checkPendingChanges(),C=p-this._paddingBottom}getLineNumberAtOrAfterVerticalOffset(C){if(this._checkPendingChanges(),C=C|0,C<0)return 1;const p=this._lineCount|0,h=this._lineHeight;let g=1,i=p;for(;g=r+h)g=t+1;else{if(C>=r)return t;i=t}}return g>p?p:g}getLinesViewportData(C,p){this._checkPendingChanges(),C=C|0,p=p|0;const h=this._lineHeight,g=this.getLineNumberAtOrAfterVerticalOffset(C)|0,i=this.getVerticalOffsetForLineNumber(g)|0;let t=this._lineCount|0,r=this.getFirstWhitespaceIndexAfterLineNumber(g)|0;const c=this.getWhitespacesCount()|0;let l,a;r===-1?(r=c,a=t+1,l=0):(a=this.getAfterLineNumberForWhitespaceIndex(r)|0,l=this.getHeightForWhitespaceIndex(r)|0);let s=i,o=s;const n=5e5;let d=0;i>=n&&(d=Math.floor(i/n)*n,d=Math.floor(d/h)*h,o-=d);const u=[],f=C+(p-C)/2;let S=-1;for(let L=g;L<=t;L++){if(S===-1){const w=s,k=s+h;(w<=f&&ff)&&(S=L)}for(s+=h,u[L-g]=o,o+=h;a===L;)o+=l,s+=l,r++,r>=c?a=t+1:(a=this.getAfterLineNumberForWhitespaceIndex(r)|0,l=this.getHeightForWhitespaceIndex(r)|0);if(s>=p){t=L;break}}S===-1&&(S=t);const v=this.getVerticalOffsetForLineNumber(t)|0;let m=g,_=t;return m<_&&ip&&_--,{bigNumbersDelta:d,startLineNumber:g,endLineNumber:t,relativeVerticalOffset:u,centeredLineNumber:S,completelyVisibleStartLineNumber:m,completelyVisibleEndLineNumber:_}}getVerticalOffsetForWhitespaceIndex(C){this._checkPendingChanges(),C=C|0;const p=this.getAfterLineNumberForWhitespaceIndex(C);let h;p>=1?h=this._lineHeight*p:h=0;let g;return C>0?g=this.getWhitespacesAccumulatedHeight(C-1):g=0,h+g+this._paddingTop}getWhitespaceIndexAtOrAfterVerticallOffset(C){this._checkPendingChanges(),C=C|0;let p=0,h=this.getWhitespacesCount()-1;if(h<0)return-1;const g=this.getVerticalOffsetForWhitespaceIndex(h),i=this.getHeightForWhitespaceIndex(h);if(C>=g+i)return-1;for(;p=r+c)p=t+1;else{if(C>=r)return t;h=t}}return p}getWhitespaceAtVerticalOffset(C){this._checkPendingChanges(),C=C|0;const p=this.getWhitespaceIndexAtOrAfterVerticallOffset(C);if(p<0||p>=this.getWhitespacesCount())return null;const h=this.getVerticalOffsetForWhitespaceIndex(p);if(h>C)return null;const g=this.getHeightForWhitespaceIndex(p),i=this.getIdForWhitespaceIndex(p),t=this.getAfterLineNumberForWhitespaceIndex(p);return{id:i,afterLineNumber:t,verticalOffset:h,height:g}}getWhitespaceViewportData(C,p){this._checkPendingChanges(),C=C|0,p=p|0;const h=this.getWhitespaceIndexAtOrAfterVerticallOffset(C),g=this.getWhitespacesCount()-1;if(h<0)return[];let i=[];for(let t=h;t<=g;t++){const r=this.getVerticalOffsetForWhitespaceIndex(t),c=this.getHeightForWhitespaceIndex(t);if(r>=p)break;i.push({id:this.getIdForWhitespaceIndex(t),afterLineNumber:this.getAfterLineNumberForWhitespaceIndex(t),verticalOffset:r,height:c})}return i}getWhitespaces(){return this._checkPendingChanges(),this._arr.slice(0)}getWhitespacesCount(){return this._checkPendingChanges(),this._arr.length}getIdForWhitespaceIndex(C){return this._checkPendingChanges(),C=C|0,this._arr[C].id}getAfterLineNumberForWhitespaceIndex(C){return this._checkPendingChanges(),C=C|0,this._arr[C].afterLineNumber}getHeightForWhitespaceIndex(C){return this._checkPendingChanges(),C=C|0,this._arr[C].height}}e.LinesLayout=I,I.INSTANCE_COUNT=0}),define(ee[117],te([0,1,8,87,148]),function(q,e,y,N,T){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.renderViewLine2=e.RenderLineOutput2=e.renderViewLine=e.RenderLineOutput=e.CharacterMapping=e.DomPosition=e.RenderLineInput=e.LineRange=void 0;class I{constructor(m,_,L){this._linePartBrand=void 0,this.endIndex=m,this.type=_,this.metadata=L}isWhitespace(){return!!(this.metadata&1)}isPseudoAfter(){return!!(this.metadata&4)}}class b{constructor(m,_){this.startOffset=m,this.endOffset=_}equals(m){return this.startOffset===m.startOffset&&this.endOffset===m.endOffset}}e.LineRange=b;class C{constructor(m,_,L,w,k,D,M,O,F,R,A,P,E,B,V,j,K,Y,J){this.useMonospaceOptimizations=m,this.canUseHalfwidthRightwardsArrow=_,this.lineContent=L,this.continuesWithWrappedLine=w,this.isBasicASCII=k,this.containsRTL=D,this.fauxIndentLength=M,this.lineTokens=O,this.lineDecorations=F.sort(T.LineDecoration.compare),this.tabSize=R,this.startVisibleColumn=A,this.spaceWidth=P,this.stopRenderingLineAfter=V,this.renderWhitespace=j==="all"?4:j==="boundary"?1:j==="selection"?2:j==="trailing"?3:0,this.renderControlCharacters=K,this.fontLigatures=Y,this.selectionsOnLine=J&&J.sort((ne,G)=>ne.startOffset>>16}static getCharIndex(m){return(m&65535)>>>0}setColumnInfo(m,_,L,w){const k=(_<<16|L<<0)>>>0;this._data[m-1]=k,this._absoluteOffsets[m-1]=w+L}getAbsoluteOffset(m){return this._absoluteOffsets.length===0?0:this._absoluteOffsets[m-1]}charOffsetToPartData(m){return this.length===0?0:m<0?this._data[0]:m>=this.length?this._data[this.length-1]:this._data[m]}getDomPosition(m){const _=this.charOffsetToPartData(m-1),L=h.getPartIndex(_),w=h.getCharIndex(_);return new p(L,w)}getColumn(m,_){return this.partDataToCharOffset(m.partIndex,_,m.charIndex)+1}partDataToCharOffset(m,_,L){if(this.length===0)return 0;let w=(m<<16|L<<0)>>>0,k=0,D=this.length-1;for(;k+1>>1,j=this._data[V];if(j===w)return V;j>w?D=V:k=V}if(k===D)return k;let M=this._data[k],O=this._data[D];if(M===w)return k;if(O===w)return D;let F=h.getPartIndex(M),R=h.getCharIndex(M),A=h.getPartIndex(O),P;F!==A?P=_:P=h.getCharIndex(O);let E=L-R,B=P-L;return E<=B?k:D}}e.CharacterMapping=h;class g{constructor(m,_,L){this._renderLineOutputBrand=void 0,this.characterMapping=m,this.containsRTL=_,this.containsForeignElements=L}}e.RenderLineOutput=g;function i(v,m){if(v.lineContent.length===0){if(v.lineDecorations.length>0){m.appendASCIIString("");let _=0,L=0,w=0;for(const D of v.lineDecorations)(D.type===1||D.type===2)&&(m.appendASCIIString(''),D.type===1&&(w|=1,_++),D.type===2&&(w|=2,L++));m.appendASCIIString("");const k=new h(1,_+L);return k.setColumnInfo(1,_,0,0),new g(k,!1,w)}return m.appendASCIIString(""),new g(new h(0,0),!1,0)}return f(l(v),m)}e.renderViewLine=i;class t{constructor(m,_,L,w){this.characterMapping=m,this.html=_,this.containsRTL=L,this.containsForeignElements=w}}e.RenderLineOutput2=t;function r(v){let m=(0,N.createStringBuilder)(1e4),_=i(v,m);return new t(_.characterMapping,m.build(),_.containsRTL,_.containsForeignElements)}e.renderViewLine2=r;class c{constructor(m,_,L,w,k,D,M,O,F,R,A,P,E,B,V){this.fontIsMonospace=m,this.canUseHalfwidthRightwardsArrow=_,this.lineContent=L,this.len=w,this.isOverflowing=k,this.parts=D,this.containsForeignElements=M,this.fauxIndentLength=O,this.tabSize=F,this.startVisibleColumn=R,this.containsRTL=A,this.spaceWidth=P,this.renderSpaceCharCode=E,this.renderWhitespace=B,this.renderControlCharacters=V}}function l(v){const m=v.lineContent;let _,L;v.stopRenderingLineAfter!==-1&&v.stopRenderingLineAfter0){for(let D=0,M=v.lineDecorations.length;D0&&(L[w++]=new I(m,"",0));for(let k=0,D=v.getCount();k=_){L[w++]=new I(_,O,0);break}L[w++]=new I(M,O,0)}return L}function s(v,m,_){let L=0,w=[],k=0;if(_)for(let D=0,M=m.length;D=50&&(w[k++]=new I(P+1,R,A),E=P+1,P=-1);E!==F&&(w[k++]=new I(F,R,A))}else w[k++]=O;L=F}else for(let D=0,M=m.length;D50){const A=O.type,P=O.metadata,E=Math.ceil(R/50);for(let B=1;B=8234&&v<=8238||v>=8294&&v<=8297||v>=8206&&v<=8207||v===1564}function n(v,m){let _=[],L=new I(0,"",0),w=0;for(const k of m){const D=k.endIndex;for(;wL.endIndex&&(L=new I(w,k.type,k.metadata),_.push(L)),L=new I(w+1,"mtkcontrol",k.metadata),_.push(L))}w>L.endIndex&&(L=new I(D,k.type,k.metadata),_.push(L))}return _}function d(v,m,_,L){const w=v.continuesWithWrappedLine,k=v.fauxIndentLength,D=v.tabSize,M=v.startVisibleColumn,O=v.useMonospaceOptimizations,F=v.selectionsOnLine,R=v.renderWhitespace===1,A=v.renderWhitespace===3,P=v.renderSpaceWidth!==v.spaceWidth;let E=[],B=0,V=0,j=L[V].type,K=L[V].endIndex;const Y=L.length;let J=!1,Z=y.firstNonWhitespaceIndex(m),ie;Z===-1?(J=!0,Z=_,ie=_):ie=y.lastNonWhitespaceIndex(m);let ne=!1,G=0,W=F&&F[G],z=M%D;for(let x=k;x<_;x++){const X=m.charCodeAt(x);W&&x>=W.endOffset&&(G++,W=F&&F[G]);let le;if(xie)le=!0;else if(X===9)le=!0;else if(X===32)if(R)if(ne)le=!0;else{const fe=x+1<_?m.charCodeAt(x+1):0;le=fe===32||fe===9}else le=!0;else le=!1;if(le&&F&&(le=!!W&&W.startOffset<=x&&W.endOffset>x),le&&A&&(le=J||x>ie),ne){if(!le||!O&&z>=D){if(P){const fe=B>0?E[B-1].endIndex:k;for(let $=fe+1;$<=x;$++)E[B++]=new I($,"mtkw",1)}else E[B++]=new I(x,"mtkw",1);z=z%D}}else(x===K||le&&x>k)&&(E[B++]=new I(x,j,0),z=z%D);for(X===9?z=D:y.isFullWidthCharacter(X)?z+=2:z++,ne=le;x===K&&(V++,V0?m.charCodeAt(_-1):0,X=_>1?m.charCodeAt(_-2):0;x===32&&X!==32&&X!==9||(U=!0)}else U=!0;if(U)if(P){const x=B>0?E[B-1].endIndex:k;for(let X=x+1;X<=_;X++)E[B++]=new I(X,"mtkw",1)}else E[B++]=new I(_,"mtkw",1);else E[B++]=new I(_,j,0);return E}function u(v,m,_,L){L.sort(T.LineDecoration.compare);const w=T.LineDecorationsNormalizer.normalize(v,L),k=w.length;let D=0,M=[],O=0,F=0;for(let A=0,P=_.length;AF&&(F=K.startOffset,M[O++]=new I(F,V,j)),K.endOffset+1<=B)F=K.endOffset+1,M[O++]=new I(F,V+" "+K.className,j|K.metadata),D++;else{F=B,M[O++]=new I(F,V+" "+K.className,j|K.metadata);break}}B>F&&(F=B,M[O++]=new I(F,V,j))}const R=_[_.length-1].endIndex;if(D'):m.appendASCIIString("");for(let z=0,U=O.length;z=F&&(ce+=de)}}for($&&(m.appendASCIIString(' style="width:'),m.appendASCIIString(String(E*Q)),m.appendASCIIString('px"')),m.appendASCII(62);J1?m.write1(8594):m.write1(65515);for(let oe=2;oe<=ce;oe++)m.write1(160)}else ce=1,m.write1(B);ie+=ce,J>=F&&(Z+=ce)}G=Q}else{let Q=0;for(m.appendASCII(62);J=F&&(Z+=oe)}G=Q}H?ne++:ne=0,J>=D&&!Y&&x.isPseudoAfter()&&(Y=!0,K.setColumnInfo(J+1,z,ie,W)),m.appendASCIIString(" ")}return Y||K.setColumnInfo(D+1,O.length-1,ie,W),M&&m.appendASCIIString("…"),m.appendASCIIString("
"),new g(K,P,w)}function S(v){return v.toString(16).toUpperCase().padStart(4,"0")}}),define(ee[415],te([0,1,3]),function(q,e,y){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ViewportData=void 0;class N{constructor(I,b,C,p){this.selections=I,this.startLineNumber=b.startLineNumber|0,this.endLineNumber=b.endLineNumber|0,this.relativeVerticalOffset=b.relativeVerticalOffset,this.bigNumbersDelta=b.bigNumbersDelta|0,this.whitespaceViewportData=C,this._model=p,this.visibleRange=new y.Range(b.startLineNumber,this._model.getLineMinColumn(b.startLineNumber),b.endLineNumber,this._model.getLineMaxColumn(b.endLineNumber))}getViewLineRenderingData(I){return this._model.getViewLineRenderingData(this.visibleRange,I)}getDecorationsInViewport(){return this._model.getDecorationsInViewport(this.visibleRange)}}e.ViewportData=N}),define(ee[235],te([0,1,14]),function(q,e,y){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.OutputPosition=e.InjectedText=e.ModelLineProjectionData=void 0;class N{constructor(C,p,h,g,i){this.injectionOffsets=C,this.injectionOptions=p,this.breakOffsets=h,this.breakOffsetsVisibleColumn=g,this.wrappedTextIndentLength=i}getOutputLineCount(){return this.breakOffsets.length}getMinOutputOffset(C){return C>0?this.wrappedTextIndentLength:0}getLineLength(C){const p=C>0?this.breakOffsets[C-1]:0;let g=this.breakOffsets[C]-p;return C>0&&(g+=this.wrappedTextIndentLength),g}getMaxOutputOffset(C){return this.getLineLength(C)}translateToInputOffset(C,p){C>0&&(p=Math.max(0,p-this.wrappedTextIndentLength));let g=C===0?p:this.breakOffsets[C-1]+p;if(this.injectionOffsets!==null)for(let i=0;ithis.injectionOffsets[i];i++)g0?this.breakOffsets[i-1]:0,p===0)if(C<=t)g=i-1;else if(C>c)h=i+1;else break;else if(C=c)h=i+1;else break}let r=C-t;return i>0&&(r+=this.wrappedTextIndentLength),new I(i,r)}normalizeOutputPosition(C,p,h){if(this.injectionOffsets!==null){const g=this.outputPositionToOffsetInInputWithInjections(C,p),i=this.normalizeOffsetInInputWithInjectionsAroundInjections(g,h);if(i!==g)return this.offsetInInputWithInjectionsToOutputPosition(i,h)}if(h===0){if(C>0&&p===this.getMinOutputOffset(C))return new I(C-1,this.getMaxOutputOffset(C-1))}else if(h===1){const g=this.getOutputLineCount()-1;if(C0&&(p=Math.max(0,p-this.wrappedTextIndentLength)),(C>0?this.breakOffsets[C-1]:0)+p}normalizeOffsetInInputWithInjectionsAroundInjections(C,p){const h=this.getInjectedTextAtOffset(C);if(!h)return C;if(p===2)return C===h.offsetInInputWithInjections+h.length?h.offsetInInputWithInjections+h.length:h.offsetInInputWithInjections;if(p===1){let t=h.offsetInInputWithInjections+h.length,r=h.injectedTextIndex;for(;r+1=0&&this.injectionOffsets[i-1]===this.injectionOffsets[i];)g-=this.injectionOptions[i-1].content.length,i++;return g}getInjectedText(C,p){const h=this.outputPositionToOffsetInInputWithInjections(C,p),g=this.getInjectedTextAtOffset(h);return g?{options:this.injectionOptions[g.injectedTextIndex]}:null}getInjectedTextAtOffset(C){const p=this.injectionOffsets,h=this.injectionOptions;if(p!==null){let g=0;for(let i=0;iC)break;if(C<=c)return{injectedTextIndex:i,offsetInInputWithInjections:r,length:t};g+=t}}}}e.ModelLineProjectionData=N;class T{constructor(C){this.options=C}}e.InjectedText=T;class I{constructor(C,p){this.outputLineIndex=C,this.outputOffset=p}toString(){return`${this.outputLineIndex}:${this.outputOffset}`}toPosition(C){return new y.Position(C+this.outputLineIndex,this.outputOffset+1)}}e.OutputPosition=I}),define(ee[416],te([0,1,8,97,89,235]),function(q,e,y,N,T,I){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.MonospaceLineBreaksComputerFactory=void 0;class b{constructor(s,o){this.classifier=new C(s,o)}static create(s){return new b(s.get(119),s.get(118))}createLineBreaksComputer(s,o,n,d){const u=[],f=[],S=[];return{addRequest:(v,m,_)=>{u.push(v),f.push(m),S.push(_)},finalize:()=>{const v=s.typicalFullwidthCharacterWidth/s.typicalHalfwidthCharacterWidth;let m=[];for(let _=0,L=u.length;_=0&&s<256?this._asciiMap[s]:s>=12352&&s<=12543||s>=13312&&s<=19903||s>=19968&&s<=40959?3:this._map.get(s)||this._defaultValue}}let p=[],h=[];function g(a,s,o,n,d,u,f){if(d===-1)return null;const S=o.length;if(S<=1)return null;const v=s.breakOffsets,m=s.breakOffsetsVisibleColumn,_=l(o,n,d,u,f),L=d-_;let w=p,k=h,D=0,M=0,O=0,F=d;const R=v.length;let A=0;if(A>=0){let P=Math.abs(m[A]-F);for(;A+1=P)break;P=E,A++}}for(;AP&&(P=M,E=O);let B=0,V=0,j=0,K=0;if(E<=F){let J=E,Z=P===0?0:o.charCodeAt(P-1),ie=P===0?0:a.get(Z),ne=!0;for(let G=P;GM&&c(Z,ie,z,U)&&(B=W,V=J),J+=x,J>F){W>M?(j=W,K=J-x):(j=G+1,K=J),J-V>L&&(B=0),ne=!1;break}Z=z,ie=U}if(ne){D>0&&(w[D]=v[v.length-1],k[D]=m[v.length-1],D++);break}}if(B===0){let J=E,Z=o.charCodeAt(P),ie=a.get(Z),ne=!1;for(let G=P-1;G>=M;G--){const W=G+1,z=o.charCodeAt(G);if(z===9){ne=!0;break}let U,x;if(y.isLowSurrogate(z)?(G--,U=0,x=2):(U=a.get(z),x=y.isFullWidthCharacter(z)?u:1),J<=F){if(j===0&&(j=W,K=J),J<=F-L)break;if(c(z,U,Z,ie)){B=W,V=J;break}}J-=x,Z=z,ie=U}if(B!==0){const G=L-(K-V);if(G<=n){const W=o.charCodeAt(j);let z;y.isHighSurrogate(W)?z=2:z=t(W,K,n,u),G-z<0&&(B=0)}}if(ne){A--;continue}}if(B===0&&(B=j,V=K),B<=M){const J=o.charCodeAt(M);y.isHighSurrogate(J)?(B=M+2,V=O+2):(B=M+1,V=O+t(J,O,n,u))}for(M=B,w[D]=B,O=V,k[D]=V,D++,F=V+L;A<0||A=Y)break;Y=J,A++}}return D===0?null:(w.length=D,k.length=D,p=s.breakOffsets,h=s.breakOffsetsVisibleColumn,s.breakOffsets=w,s.breakOffsetsVisibleColumn=k,s.wrappedTextIndentLength=_,s)}function i(a,s,o,n,d,u,f){const S=T.LineInjectedText.applyInjectedText(s,o);let v,m;if(o&&o.length>0?(v=o.map(V=>V.options),m=o.map(V=>V.column-1)):(v=null,m=null),d===-1)return v?new I.ModelLineProjectionData(m,v,[S.length],[],0):null;const _=S.length;if(_<=1)return v?new I.ModelLineProjectionData(m,v,[S.length],[],0):null;const L=l(S,n,d,u,f),w=d-L;let k=[],D=[],M=0,O=0,F=0,R=d,A=S.charCodeAt(0),P=a.get(A),E=t(A,0,n,u),B=1;y.isHighSurrogate(A)&&(E+=1,A=S.charCodeAt(1),P=a.get(A),B++);for(let V=B;V<_;V++){const j=V,K=S.charCodeAt(V);let Y,J;y.isHighSurrogate(K)?(V++,Y=0,J=2):(Y=a.get(K),J=t(K,E,n,u)),c(A,P,K,Y)&&(O=j,F=E),E+=J,E>R&&((O===0||E-F>w)&&(O=j,F=E-J),k[M]=O,D[M]=F,M++,R=F+w,O=0),A=K,P=Y}return M===0&&(!o||o.length===0)?null:(k[M]=_,D[M]=E,new I.ModelLineProjectionData(m,v,k,D,L))}function t(a,s,o,n){return a===9?o-s%o:y.isFullWidthCharacter(a)||a<32?n:1}function r(a,s){return s-a%s}function c(a,s,o,n){return o!==32&&(s===2||s===3&&n!==2||n===1||n===3&&s!==1)}function l(a,s,o,n,d){let u=0;if(d!==0){const f=y.firstNonWhitespaceIndex(a);if(f!==-1){for(let v=0;vo&&(u=0)}}return u}}),define(ee[236],te([0,1,19,136]),function(q,e,y,N){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.PrefixSumIndexOfResult=e.ConstantTimePrefixSumComputer=e.PrefixSumComputer=void 0;class T{constructor(p){this.values=p,this.prefixSum=new Uint32Array(p.length),this.prefixSumValidIndex=new Int32Array(1),this.prefixSumValidIndex[0]=-1}insertValues(p,h){p=(0,N.toUint32)(p);const g=this.values,i=this.prefixSum,t=h.length;return t===0?!1:(this.values=new Uint32Array(g.length+t),this.values.set(g.subarray(0,p),0),this.values.set(g.subarray(p),p+t),this.values.set(h,p),p-1=0&&this.prefixSum.set(i.subarray(0,this.prefixSumValidIndex[0]+1)),!0)}setValue(p,h){return p=(0,N.toUint32)(p),h=(0,N.toUint32)(h),this.values[p]===h?!1:(this.values[p]=h,p-1=g.length)return!1;let t=g.length-p;return h>=t&&(h=t),h===0?!1:(this.values=new Uint32Array(g.length-h),this.values.set(g.subarray(0,p),0),this.values.set(g.subarray(p+h),p),this.prefixSum=new Uint32Array(this.values.length),p-1=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(p){return p<0?0:(p=(0,N.toUint32)(p),this._getPrefixSum(p))}_getPrefixSum(p){if(p<=this.prefixSumValidIndex[0])return this.prefixSum[p];let h=this.prefixSumValidIndex[0]+1;h===0&&(this.prefixSum[0]=this.values[0],h++),p>=this.values.length&&(p=this.values.length-1);for(let g=h;g<=p;g++)this.prefixSum[g]=this.prefixSum[g-1]+this.values[g];return this.prefixSumValidIndex[0]=Math.max(this.prefixSumValidIndex[0],p),this.prefixSum[p]}getIndexOf(p){p=Math.floor(p),this.getTotalSum();let h=0,g=this.values.length-1,i=0,t=0,r=0;for(;h<=g;)if(i=h+(g-h)/2|0,t=this.prefixSum[i],r=t-this.values[i],p=t)h=i+1;else break;return new b(i,p-r)}}e.PrefixSumComputer=T;class I{constructor(p){this._values=p,this._isValid=!1,this._validEndIndex=-1,this._prefixSum=[],this._indexBySum=[]}getTotalSum(){return this._ensureValid(),this._indexBySum.length}getPrefixSum(p){return this._ensureValid(),p===0?0:this._prefixSum[p-1]}getIndexOf(p){this._ensureValid();const h=this._indexBySum[p],g=h>0?this._prefixSum[h-1]:0;return new b(h,p-g)}removeValues(p,h){this._values.splice(p,h),this._invalidate(p)}insertValues(p,h){this._values=(0,y.arrayInsert)(this._values,p,h),this._invalidate(p)}_invalidate(p){this._isValid=!1,this._validEndIndex=Math.min(this._validEndIndex,p-1)}_ensureValid(){if(!this._isValid){for(let p=this._validEndIndex+1,h=this._values.length;p0?this._prefixSum[p-1]:0;this._prefixSum[p]=i+g;for(let t=0;tthis._lines.length)u=this._lines.length,f=this._lines[u-1].length+1,S=!0;else{let v=this._lines[u-1].length+1;f<1?(f=1,S=!0):f>v&&(f=v,S=!0)}return S?{lineNumber:u,column:f}:d}}e.MirrorModel=a;class s{constructor(d,u){this._host=d,this._models=Object.create(null),this._foreignModuleFactory=u,this._foreignModule=null}dispose(){this._models=Object.create(null)}_getModel(d){return this._models[d]}_getModels(){let d=[];return Object.keys(this._models).forEach(u=>d.push(this._models[u])),d}acceptNewModel(d){this._models[d.url]=new a(T.URI.parse(d.url),d.lines,d.EOL,d.versionId)}acceptModelChanged(d,u){if(!this._models[d])return;this._models[d].onEvents(u)}acceptRemovedModel(d){!this._models[d]||delete this._models[d]}computeUnicodeHighlights(d,u,f){return Ae(this,void 0,void 0,function*(){const S=this._getModel(d);return S?l.UnicodeTextModelHighlighter.computeUnicodeHighlights(S,u,f):{ranges:[],hasMore:!1,ambiguousCharacterCount:0,invisibleCharacterCount:0,nonBasicAsciiCharacterCount:0}})}computeDiff(d,u,f,S){return Ae(this,void 0,void 0,function*(){const v=this._getModel(d),m=this._getModel(u);if(!v||!m)return null;const _=v.getLinesContent(),L=m.getLinesContent(),k=new C.DiffComputer(_,L,{shouldComputeCharChanges:!0,shouldPostProcessCharChanges:!0,shouldIgnoreTrimWhitespace:f,shouldMakePrettyDiff:!0,maxComputationTime:S}).computeDiff(),D=k.changes.length>0?!1:this._modelsAreIdentical(v,m);return{quitEarly:k.quitEarly,identical:D,changes:k.changes}})}_modelsAreIdentical(d,u){const f=d.getLineCount(),S=u.getLineCount();if(f!==S)return!1;for(let v=1;v<=f;v++){const m=d.getLineContent(v),_=u.getLineContent(v);if(m!==_)return!1}return!0}computeMoreMinimalEdits(d,u){return Ae(this,void 0,void 0,function*(){const f=this._getModel(d);if(!f)return u;const S=[];let v;u=u.slice(0).sort((m,_)=>{if(m.range&&_.range)return b.Range.compareRangesUsingStarts(m.range,_.range);let L=m.range?0:1,w=_.range?0:1;return L-w});for(let{range:m,text:_,eol:L}of u){if(typeof L=="number"&&(v=L),b.Range.isEmpty(m)&&!_)continue;const w=f.getValueInRange(m);if(_=_.replace(/\r\n|\n|\r/g,f.eol),w===_)continue;if(Math.max(_.length,w.length)>s._diffLimit){S.push({range:m,text:_});continue}const k=(0,y.stringDiff)(w,_,!1),D=f.offsetAt(b.Range.lift(m).getStartPosition());for(const M of k){const O=f.positionAt(D+M.originalStart),F=f.positionAt(D+M.originalStart+M.originalLength),R={text:_.substr(M.modifiedStart,M.modifiedLength),range:{startLineNumber:O.lineNumber,startColumn:O.column,endLineNumber:F.lineNumber,endColumn:F.column}};f.getValueInRange(R.range)!==R.text&&S.push(R)}}return typeof v=="number"&&S.push({eol:v,text:"",range:{startLineNumber:0,startColumn:0,endLineNumber:0,endColumn:0}}),S})}computeLinks(d){return Ae(this,void 0,void 0,function*(){let u=this._getModel(d);return u?(0,g.computeLinks)(u):null})}textualSuggest(d,u,f,S){return Ae(this,void 0,void 0,function*(){const v=new c.StopWatch(!0),m=new RegExp(f,S),_=new Set;e:for(let L of d){const w=this._getModel(L);if(!!w){for(let k of w.words(m))if(!(k===u||!isNaN(Number(k)))&&(_.add(k),_.size>s._suggestionsLimit))break e}}return{words:Array.from(_),duration:v.elapsed()}})}computeWordRanges(d,u,f,S){return Ae(this,void 0,void 0,function*(){let v=this._getModel(d);if(!v)return Object.create(null);const m=new RegExp(f,S),_=Object.create(null);for(let L=u.startLineNumber;Lthis._host.fhr(_,L);let m={host:r.createProxyObject(f,S),getMirrorModels:()=>this._getModels()};return this._foreignModuleFactory?(this._foreignModule=this._foreignModuleFactory(m,u),Promise.resolve(r.getAllMethodNames(this._foreignModule))):new Promise((_,L)=>{q([d],w=>{this._foreignModule=w.create(m,u),_(r.getAllMethodNames(this._foreignModule))},L)})}fmr(d,u){if(!this._foreignModule||typeof this._foreignModule[d]!="function")return Promise.reject(new Error("Missing requestHandler or method: "+d));try{return Promise.resolve(this._foreignModule[d].apply(this._foreignModule,u))}catch(f){return Promise.reject(f)}}}e.EditorSimpleWorker=s,s._diffLimit=1e5,s._suggestionsLimit=1e4;function o(n){return new s(n,null)}e.create=o,typeof importScripts=="function"&&(N.globals.monaco=(0,t.createMonacoBaseAPI)())}),define(ee[118],te([0,1,2]),function(q,e,y){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ViewEventHandler=void 0;class N extends y.Disposable{constructor(){super();this._shouldRender=!0}shouldRender(){return this._shouldRender}forceShouldRender(){this._shouldRender=!0}setShouldRender(){this._shouldRender=!0}onDidRender(){this._shouldRender=!1}onCompositionStart(I){return!1}onCompositionEnd(I){return!1}onConfigurationChanged(I){return!1}onCursorStateChanged(I){return!1}onDecorationsChanged(I){return!1}onFlushed(I){return!1}onFocusChanged(I){return!1}onLanguageConfigurationChanged(I){return!1}onLineMappingChanged(I){return!1}onLinesChanged(I){return!1}onLinesDeleted(I){return!1}onLinesInserted(I){return!1}onRevealRangeRequest(I){return!1}onScrollChanged(I){return!1}onThemeChanged(I){return!1}onTokensChanged(I){return!1}onTokensColorsChanged(I){return!1}onZonesChanged(I){return!1}handleEvents(I){let b=!1;for(let C=0,p=I.length;C0?this.domNode.setDisplay("block"):this.domNode.setDisplay("none"),this._cachedDomNodeClientWidth=-1,this._cachedDomNodeClientHeight=-1}_layoutBoxInViewport(g,i,t,r,c){const l=g.top,a=l,s=i.top+this._lineHeight,o=c.viewportHeight-s,n=l-r,d=a>=r,u=s,f=o>=r;let S=g.left,v=i.left;return S+t>c.scrollLeft+c.viewportWidth&&(S=c.scrollLeft+c.viewportWidth-t),v+t>c.scrollLeft+c.viewportWidth&&(v=c.scrollLeft+c.viewportWidth-t),Sl){const s=a-(l-r);a-=s,t-=s}if(a=m,w=n+r<=d.height-_;return this._fixedOverflowWidgets?{fitsAbove:L,aboveTop:Math.max(o,m),aboveLeft:f,fitsBelow:w,belowTop:n,belowLeft:v}:{fitsAbove:L,aboveTop:l,aboveLeft:u,fitsBelow:w,belowTop:a,belowLeft:S}}_prepareRenderWidgetAtExactPositionOverflowing(g){return new I(g.top,g.left+this._contentLeft)}_getTopAndBottomLeft(g){if(!this._viewRange)return[null,null];const i=g.linesVisibleRangesForRange(this._viewRange,!1);if(!i||i.length===0)return[null,null];let t=i[0],r=i[0];for(const d of i)d.lineNumberr.lineNumber&&(r=d);let c=1073741824;for(const d of t.ranges)d.leftg.endLineNumber||this.domNode.setMaxWidth(this._maxWidth)}prepareRender(g){this._renderData=this._prepareRenderWidget(g)}render(g){if(!this._renderData){this._isVisible&&(this.domNode.removeAttribute("monaco-visible-content-widget"),this._isVisible=!1,this.domNode.setVisibility("hidden")),typeof this._actual.afterRender=="function"&&p(this._actual.afterRender,this._actual,null);return}this.allowEditorOverflow?(this.domNode.setTop(this._renderData.coordinate.top),this.domNode.setLeft(this._renderData.coordinate.left)):(this.domNode.setTop(this._renderData.coordinate.top+g.scrollTop-g.bigNumbersDelta),this.domNode.setLeft(this._renderData.coordinate.left)),this._isVisible||(this.domNode.setVisibility("inherit"),this.domNode.setAttribute("monaco-visible-content-widget","true"),this._isVisible=!0),typeof this._actual.afterRender=="function"&&p(this._actual.afterRender,this._actual,this._renderData.position)}}function p(h,g,...i){try{return h.call(g,...i)}catch(t){return null}}}),define(ee[420],te([0,1,99,3,116,343]),function(q,e,y,N,T){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.DecorationsOverlay=void 0;class I extends y.DynamicViewOverlay{constructor(C){super();this._context=C;const p=this._context.configuration.options;this._lineHeight=p.get(58),this._typicalHalfwidthCharacterWidth=p.get(43).typicalHalfwidthCharacterWidth,this._renderResult=null,this._context.addEventHandler(this)}dispose(){this._context.removeEventHandler(this),this._renderResult=null,super.dispose()}onConfigurationChanged(C){const p=this._context.configuration.options;return this._lineHeight=p.get(58),this._typicalHalfwidthCharacterWidth=p.get(43).typicalHalfwidthCharacterWidth,!0}onDecorationsChanged(C){return!0}onFlushed(C){return!0}onLinesChanged(C){return!0}onLinesDeleted(C){return!0}onLinesInserted(C){return!0}onScrollChanged(C){return C.scrollTopChanged||C.scrollWidthChanged}onZonesChanged(C){return!0}prepareRender(C){const p=C.getDecorationsInViewport();let h=[],g=0;for(let c=0,l=p.length;c{if(c.options.zIndexl.options.zIndex)return 1;const a=c.options.className,s=l.options.className;return as?1:N.Range.compareRangesUsingStarts(c.range,l.range)});const i=C.visibleRange.startLineNumber,t=C.visibleRange.endLineNumber,r=[];for(let c=i;c<=t;c++){const l=c-i;r[l]=""}this._renderWholeLineDecorations(C,h,r),this._renderNormalDecorations(C,h,r),this._renderResult=r}_renderWholeLineDecorations(C,p,h){const g=String(this._lineHeight),i=C.visibleRange.startLineNumber,t=C.visibleRange.endLineNumber;for(let r=0,c=p.length;r