web.monaco.min.vs.editor.editor.main.js Maven / Gradle / Ivy
/*!-----------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Version: 0.45.0(5e5af013f8d295555a7210df0d5f2cea0bf5dd56)
* Released under the MIT license
* https://github.com/microsoft/vscode/blob/main/LICENSE.txt
*-----------------------------------------------------------*/(function(){var ie=["exports","require","vs/base/common/lifecycle","vs/nls","vs/nls!vs/editor/editor.main","vs/editor/common/core/range","vs/base/common/event","vs/base/browser/dom","vs/platform/instantiation/common/instantiation","vs/base/common/errors","vs/css!vs/editor/editor.main","vs/editor/common/core/position","vs/base/common/strings","vs/base/common/arrays","vs/base/common/async","vs/platform/contextkey/common/contextkey","vs/editor/browser/editorExtensions","vs/base/common/platform","vs/editor/common/services/languageFeatures","vs/base/common/cancellation","vs/base/common/types","vs/editor/common/editorContextKeys","vs/base/common/uri","vs/platform/theme/common/themeService","vs/editor/common/core/selection","vs/platform/commands/common/commands","vs/base/common/codicons","vs/base/common/themables","vs/platform/configuration/common/configuration","vs/platform/actions/common/actions","vs/platform/theme/common/colorRegistry","vs/editor/common/languages","vs/editor/common/languages/languageConfigurationRegistry","vs/editor/browser/services/codeEditorService","vs/platform/keybinding/common/keybinding","vs/base/common/observable","vs/editor/common/config/editorOptions","vs/platform/registry/common/platform","vs/base/common/color","vs/editor/common/model/textModel","vs/base/browser/fastDomNode","vs/base/common/actions","vs/editor/common/languages/language","vs/editor/common/model","vs/base/common/network","vs/base/common/resources","vs/platform/instantiation/common/extensions","vs/platform/notification/common/notification","vs/base/browser/window","vs/base/common/iterator","vs/base/browser/keyboardEvent","vs/base/browser/ui/aria/aria","vs/editor/common/services/model","vs/base/common/map","vs/base/browser/browser","vs/base/common/objects","vs/editor/browser/view/viewPart","vs/platform/opener/common/opener","vs/base/common/htmlContent","vs/platform/contextview/browser/contextView","vs/base/common/arraysFind","vs/base/common/stopwatch","vs/editor/common/core/lineRange","vs/base/browser/touch","vs/platform/log/common/log","vs/base/common/keyCodes","vs/base/common/linkedList","vs/base/browser/mouseEvent","vs/editor/common/services/resolverService","vs/platform/accessibility/common/accessibility","vs/platform/quickinput/common/quickInput","vs/base/common/filters","vs/editor/browser/config/domFontInfo","vs/editor/common/core/offsetRange","vs/editor/common/core/editOperation","vs/editor/common/cursorCommon","vs/base/browser/ui/scrollbar/scrollableElement","vs/base/browser/ui/actionbar/actionbar","vs/editor/common/services/languageFeatureDebounce","vs/editor/common/languages/modesRegistry","vs/platform/telemetry/common/telemetry","vs/platform/theme/common/iconRegistry","vs/editor/common/core/editorColorRegistry","vs/base/browser/event","vs/editor/common/core/cursorColumns","vs/editor/common/viewModel","vs/base/browser/ui/widget","vs/platform/progress/common/progress","vs/platform/theme/common/theme","vs/editor/common/model/bracketPairsTextModelPart/bracketPairsTree/length","vs/editor/browser/widget/diffEditor/utils","vs/platform/storage/common/storage","vs/base/browser/trustedTypes","vs/editor/common/tokens/lineTokens","vs/base/common/path","vs/editor/common/standaloneStrings","vs/platform/markers/common/markers","vs/platform/configuration/common/configurationRegistry","vs/base/common/assert","vs/base/common/lazy","vs/base/common/severity","vs/editor/contrib/hover/browser/hoverTypes","vs/editor/common/core/stringBuilder","vs/platform/clipboard/common/clipboardService","vs/editor/contrib/editorState/browser/editorState","vs/platform/theme/browser/defaultStyles","vs/base/common/decorators","vs/base/common/functional","vs/base/common/mime","vs/base/common/observableInternal/base","vs/editor/common/diff/rangeMapping","vs/editor/common/languages/languageConfiguration","vs/editor/common/textModelEvents","vs/editor/browser/view/dynamicViewOverlay","vs/editor/contrib/codeAction/common/types","vs/base/browser/ui/iconLabel/iconLabels","vs/base/browser/ui/list/listWidget","vs/editor/common/viewLayout/viewLineRenderer","vs/editor/common/services/editorWorker","vs/editor/contrib/markdownRenderer/browser/markdownRenderer","vs/platform/keybinding/common/keybindingsRegistry","vs/base/common/keybindings","vs/base/common/hash","vs/base/common/iconLabels","vs/editor/browser/stableEditorScroll","vs/editor/common/core/characterClassifier","vs/editor/common/core/eolCounter","vs/editor/common/commands/replaceCommand","vs/editor/common/encodedTokenAttributes","vs/editor/common/languages/supports","vs/editor/common/model/bracketPairsTextModelPart/bracketPairsTree/smallImmutableSet","vs/editor/contrib/snippet/browser/snippetParser","vs/base/browser/ui/actionbar/actionViewItems","vs/editor/browser/services/bulkEditService","vs/editor/standalone/common/standaloneTheme","vs/platform/layout/browser/layoutService","vs/editor/contrib/suggest/browser/suggest","vs/platform/quickinput/common/quickAccess","vs/editor/contrib/codeAction/browser/codeAction","vs/platform/actions/browser/menuEntryActionViewItem","vs/editor/contrib/peekView/browser/peekView","vs/base/browser/ui/tree/tree","vs/base/common/buffer","vs/base/common/numbers","vs/base/common/observableInternal/logging","vs/base/common/scrollable","vs/editor/browser/view/renderingContext","vs/editor/common/config/editorZoom","vs/editor/common/core/wordCharacterClassifier","vs/editor/common/core/wordHelper","vs/editor/common/diff/defaultLinesDiffComputer/algorithms/diffAlgorithm","vs/editor/browser/editorBrowser","vs/editor/common/editorFeatures","vs/editor/common/viewEventHandler","vs/editor/common/viewLayout/lineDecorations","vs/editor/contrib/inlineCompletions/browser/utils","vs/base/browser/globalPointerMoveMonitor","vs/base/browser/ui/sash/sash","vs/base/browser/ui/toggle/toggle","vs/editor/common/languages/nullTokenize","vs/editor/contrib/gotoSymbol/browser/referencesModel","vs/platform/audioCues/browser/audioCueService","vs/platform/dialogs/common/dialogs","vs/platform/instantiation/common/serviceCollection","vs/platform/label/common/label","vs/editor/browser/editorDom","vs/editor/browser/widget/embeddedCodeEditorWidget","vs/platform/workspace/common/workspace","vs/base/common/idGenerator","vs/base/common/observableInternal/derived","vs/base/common/range","vs/base/common/diff/diff","vs/base/common/uint","vs/base/common/uuid","vs/base/common/dataTransfer","vs/base/browser/ui/codicons/codiconStyles","vs/css!vs/platform/quickinput/browser/media/quickInput","vs/editor/common/core/textModelDefaults","vs/editor/common/editorCommon","vs/editor/common/cursor/cursorWordOperations","vs/editor/common/model/bracketPairsTextModelPart/bracketPairsTree/beforeEditPositionMapper","vs/editor/common/model/bracketPairsTextModelPart/bracketPairsTree/ast","vs/editor/common/model/textModelSearch","vs/editor/contrib/folding/browser/foldingRanges","vs/base/browser/markdownRenderer","vs/base/browser/ui/tree/abstractTree","vs/editor/contrib/gotoSymbol/browser/link/clickLinkGesture","vs/editor/common/services/textResourceConfiguration","vs/editor/browser/controller/textAreaInput","vs/editor/contrib/documentSymbols/browser/outlineModel","vs/editor/browser/coreCommands","vs/editor/contrib/message/browser/messageController","vs/platform/list/browser/listService","vs/platform/undoRedo/common/undoRedo","vs/editor/browser/widget/codeEditorWidget","vs/editor/contrib/find/browser/findModel","vs/editor/contrib/snippet/browser/snippetController2","vs/base/browser/ui/scrollbar/scrollbarState","vs/base/browser/dnd","vs/base/common/ternarySearchTree","vs/base/browser/ui/mouseCursor/mouseCursor","vs/css!vs/editor/contrib/colorPicker/browser/colorPicker","vs/editor/browser/config/tabFocus","vs/editor/common/core/indentation","vs/editor/common/diff/defaultLinesDiffComputer/utils","vs/editor/common/diff/linesDiffComputer","vs/editor/common/cursor/cursorMoveOperations","vs/editor/common/cursor/cursorDeleteOperations","vs/editor/common/cursor/cursorMoveCommands","vs/editor/common/model/bracketPairsTextModelPart/bracketPairsTree/tokenizer","vs/editor/common/model/utils","vs/editor/common/standalone/standaloneEnums","vs/editor/common/textModelGuides","vs/editor/browser/viewParts/glyphMargin/glyphMargin","vs/editor/common/viewEvents","vs/editor/common/viewModelEventDispatcher","vs/editor/contrib/inlineCompletions/browser/commandIds","vs/editor/contrib/inlineCompletions/browser/ghostText","vs/base/common/keybindingLabels","vs/base/browser/canIUse","vs/base/browser/ui/tree/indexTreeModel","vs/base/browser/ui/tree/objectTreeModel","vs/base/common/process","vs/base/common/extpath","vs/base/common/marshalling","vs/base/browser/ui/keybindingLabel/keybindingLabel","vs/base/browser/ui/resizable/resizable","vs/base/browser/ui/scrollbar/scrollbarArrow","vs/base/browser/ui/list/listView","vs/base/browser/ui/button/button","vs/base/browser/ui/iconLabel/iconLabel","vs/base/browser/ui/inputbox/inputBox","vs/base/browser/ui/findinput/findInput","vs/editor/browser/view/viewLayer","vs/editor/common/languages/supports/richEditBrackets","vs/editor/common/config/fontInfo","vs/platform/instantiation/common/descriptors","vs/editor/common/services/markerDecorations","vs/editor/common/services/semanticTokensStyling","vs/editor/contrib/inlineCompletions/browser/inlineCompletionContextKeys","vs/editor/contrib/parameterHints/browser/provideSignatureHelp","vs/platform/contextkey/common/contextkeys","vs/platform/environment/common/environment","vs/platform/jsonschemas/common/jsonContributionRegistry","vs/editor/common/config/editorConfigurationSchema","vs/editor/browser/services/editorWorkerService","vs/editor/common/languages/autoIndent","vs/editor/common/languages/enterAction","vs/editor/common/commands/shiftCommand","vs/editor/common/cursor/cursorTypeOperations","vs/editor/contrib/gotoSymbol/browser/goToSymbol","vs/editor/contrib/hover/browser/markdownHoverParticipant","vs/editor/contrib/symbolIcons/browser/symbolIcons","vs/editor/browser/viewParts/lines/viewLine","vs/editor/common/services/semanticTokensProviderStyling","vs/editor/contrib/inlineCompletions/browser/inlineCompletionsHintsWidget","vs/editor/browser/widget/diffEditor/diffEditorWidget","vs/editor/contrib/codeAction/browser/codeActionController","vs/editor/contrib/folding/browser/folding","vs/editor/contrib/inlineProgress/browser/inlineProgress","vs/editor/contrib/gotoSymbol/browser/goToCommands","vs/editor/contrib/inlineCompletions/browser/inlineCompletionsController","vs/editor/standalone/browser/standaloneServices","vs/base/browser/performance","vs/base/common/cache","vs/base/common/collections","vs/base/common/observableInternal/autorun","vs/base/common/ime","vs/base/common/symbols","vs/css!vs/base/browser/ui/actionbar/actionbar","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/css!vs/platform/actionWidget/browser/actionWidget","vs/editor/browser/viewParts/minimap/minimapCharSheet","vs/editor/common/config/diffEditor","vs/editor/browser/view/viewUserInputEvents","vs/editor/browser/controller/textAreaState","vs/editor/common/core/rgba","vs/editor/common/cursor/cursorAtomicMoveOperations","vs/editor/common/diff/defaultLinesDiffComputer/algorithms/myersDiffAlgorithm","vs/editor/common/diff/defaultLinesDiffComputer/heuristicSequenceOptimizations","vs/editor/common/diff/defaultLinesDiffComputer/linesSliceCharSequence","vs/editor/common/diff/defaultLinesDiffComputer/defaultLinesDiffComputer","vs/editor/common/editorAction","vs/editor/common/model/bracketPairsTextModelPart/bracketPairsTree/combineTextEditInfos","vs/editor/common/model/bracketPairsTextModelPart/bracketPairsTree/parser","vs/editor/common/model/bracketPairsTextModelPart/bracketPairsTree/brackets","vs/editor/common/model/prefixSumComputer","vs/editor/common/model/textModelPart","vs/editor/common/model/pieceTreeTextBuffer/pieceTreeBase","vs/editor/common/modelLineProjectionData","vs/editor/common/services/treeViewsDnd","vs/editor/common/services/unicodeTextModelHighlighter","vs/editor/common/model/guidesTextModelPart","vs/editor/common/tokens/contiguousMultilineTokensBuilder","vs/editor/browser/viewParts/margin/margin","vs/editor/common/viewModel/overviewZoneManager","vs/editor/contrib/comment/browser/blockCommentCommand","vs/editor/contrib/folding/browser/foldingModel","vs/editor/contrib/folding/browser/indentRangeProvider","vs/editor/contrib/folding/browser/syntaxRangeProvider","vs/editor/contrib/format/browser/formattingEdit","vs/editor/contrib/indentation/browser/indentUtils","vs/editor/contrib/inlineCompletions/browser/singleTextEdit","vs/editor/contrib/semanticTokens/common/semanticTokensConfig","vs/editor/contrib/smartSelect/browser/bracketSelections","vs/editor/contrib/stickyScroll/browser/stickyScrollElement","vs/editor/contrib/suggest/browser/completionModel","vs/editor/contrib/suggest/browser/wordDistance","vs/editor/standalone/common/monarch/monarchCommon","vs/base/common/glob","vs/base/browser/dompurify/dompurify","vs/base/browser/formattedTextRenderer","vs/base/browser/ui/contextview/contextview","vs/base/browser/ui/countBadge/countBadge","vs/base/browser/ui/highlightedlabel/highlightedLabel","vs/base/browser/ui/scrollbar/abstractScrollbar","vs/base/browser/ui/hover/hoverWidget","vs/base/browser/ui/splitview/splitview","vs/base/browser/ui/findinput/findInputToggles","vs/base/browser/ui/iconLabel/iconLabelHover","vs/base/browser/ui/dropdown/dropdownActionViewItem","vs/base/browser/ui/tree/objectTree","vs/base/common/worker/simpleWorker","vs/editor/browser/config/elementSizeObserver","vs/editor/common/core/textChange","vs/editor/common/languageSelector","vs/editor/common/model/pieceTreeTextBuffer/pieceTreeTextBuffer","vs/editor/contrib/hover/browser/hoverOperation","vs/editor/contrib/inlayHints/browser/inlayHints","vs/editor/browser/widget/diffEditor/movedBlocksLines","vs/editor/browser/config/fontMeasurements","vs/editor/common/viewModel/viewModelDecorations","vs/editor/common/languages/textToHtmlTokenizer","vs/editor/common/services/editorBaseApi","vs/editor/common/viewModel/minimapTokensColorTracker","vs/editor/common/model/editStack","vs/platform/files/common/files","vs/editor/contrib/dropOrPasteInto/browser/edit","vs/editor/contrib/codelens/browser/codelens","vs/editor/contrib/semanticTokens/common/getSemanticTokens","vs/editor/standalone/common/monarch/monarchLexer","vs/editor/contrib/dropOrPasteInto/browser/postEditWidget","vs/platform/keybinding/common/keybindingResolver","vs/platform/keybinding/common/resolvedKeybindingItem","vs/editor/standalone/browser/standaloneLayoutService","vs/platform/quickinput/browser/quickInputUtils","vs/platform/dnd/browser/dnd","vs/editor/browser/dnd","vs/editor/contrib/colorPicker/browser/defaultDocumentColorProvider","vs/editor/contrib/colorPicker/browser/color","vs/editor/contrib/suggest/browser/suggestWidgetDetails","vs/platform/configuration/common/configurationModels","vs/platform/history/browser/contextScopedHistoryWidget","vs/editor/contrib/suggest/browser/suggestMemory","vs/editor/browser/widget/diffEditor/diffEditorViewModel","vs/editor/contrib/codeAction/browser/codeActionModel","vs/editor/contrib/codeAction/browser/lightBulbWidget","vs/editor/contrib/format/browser/format","vs/editor/contrib/hover/browser/getHover","vs/editor/contrib/wordOperations/browser/wordOperations","vs/editor/browser/controller/mouseTarget","vs/platform/quickinput/browser/quickInputList","vs/editor/browser/widget/diffEditor/overviewRulerPart","vs/editor/browser/viewParts/lineNumbers/lineNumbers","vs/editor/contrib/quickAccess/browser/editorNavigationQuickAccess","vs/editor/standalone/browser/standaloneCodeEditorService","vs/editor/standalone/browser/standaloneThemeService","vs/platform/actions/browser/toolbar","vs/editor/browser/widget/diffEditor/decorations","vs/editor/browser/widget/multiDiffEditorWidget/diffEditorItemTemplate","vs/editor/contrib/colorPicker/browser/colorDetector","vs/editor/contrib/colorPicker/browser/colorHoverParticipant","vs/editor/contrib/find/browser/findController","vs/editor/contrib/folding/browser/foldingDecorations","vs/editor/contrib/hover/browser/contentHover","vs/editor/contrib/wordHighlighter/browser/highlightDecorations","vs/editor/contrib/gotoError/browser/gotoError","vs/editor/contrib/gotoSymbol/browser/peek/referencesController","vs/editor/contrib/gotoSymbol/browser/link/goToDefinitionAtPosition","vs/editor/contrib/hover/browser/hover","vs/editor/contrib/inlayHints/browser/inlayHintsLocations","vs/editor/contrib/inlayHints/browser/inlayHintsController","vs/editor/contrib/stickyScroll/browser/stickyScrollController","vs/editor/contrib/dropOrPasteInto/browser/defaultProviders","vs/editor/contrib/snippet/browser/snippetSession","vs/editor/contrib/suggest/browser/suggestController","vs/platform/workspace/common/workspaceTrust","vs/base/browser/iframe","vs/base/browser/ui/list/list","vs/base/browser/ui/list/splice","vs/base/common/diff/diffChange","vs/base/common/comparers","vs/base/common/linkedText","vs/base/common/marked/marked","vs/base/common/naturalLanguage/korean","vs/base/common/navigator","vs/base/common/history","vs/base/common/observableInternal/utils","vs/base/browser/ui/list/rangeMap","vs/base/common/search","vs/base/common/tfIdf","vs/css!vs/base/browser/ui/aria/aria","vs/css!vs/base/browser/ui/button/button","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/css!vs/base/browser/ui/sash/sash","vs/css!vs/base/browser/ui/scrollbar/media/scrollbars","vs/css!vs/base/browser/ui/selectBox/selectBox","vs/css!vs/base/browser/ui/selectBox/selectBoxCustom","vs/css!vs/base/browser/ui/splitview/splitview","vs/css!vs/base/browser/ui/table/table","vs/css!vs/base/browser/ui/toggle/toggle","vs/css!vs/base/browser/ui/toolbar/toolbar","vs/css!vs/base/browser/ui/tree/media/tree","vs/css!vs/editor/browser/controller/textAreaHandler","vs/css!vs/editor/browser/viewParts/blockDecorations/blockDecorations","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/margin/margin","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/viewParts/whitespace/whitespace","vs/css!vs/editor/browser/widget/diffEditor/accessibleDiffViewer","vs/css!vs/editor/browser/widget/diffEditor/style","vs/css!vs/editor/browser/widget/media/editor","vs/css!vs/editor/browser/widget/multiDiffEditorWidget/style","vs/css!vs/editor/contrib/anchorSelect/browser/anchorSelect","vs/css!vs/editor/contrib/bracketMatching/browser/bracketMatching","vs/css!vs/editor/contrib/codeAction/browser/lightBulbWidget","vs/css!vs/editor/contrib/codelens/browser/codelensWidget","vs/css!vs/editor/contrib/dnd/browser/dnd","vs/css!vs/editor/contrib/dropOrPasteInto/browser/postEditWidget","vs/css!vs/editor/contrib/find/browser/findOptionsWidget","vs/css!vs/editor/contrib/find/browser/findWidget","vs/css!vs/editor/contrib/folding/browser/folding","vs/css!vs/editor/contrib/gotoError/browser/media/gotoErrorWidget","vs/css!vs/editor/contrib/gotoSymbol/browser/link/goToDefinitionAtPosition","vs/css!vs/editor/contrib/gotoSymbol/browser/peek/referencesWidget","vs/css!vs/editor/contrib/hover/browser/hover","vs/css!vs/editor/contrib/inPlaceReplace/browser/inPlaceReplace","vs/css!vs/editor/contrib/inlineCompletions/browser/ghostText","vs/css!vs/editor/contrib/inlineCompletions/browser/inlineCompletionsHintsWidget","vs/css!vs/editor/contrib/inlineProgress/browser/inlineProgressWidget","vs/css!vs/editor/contrib/linkedEditing/browser/linkedEditing","vs/css!vs/editor/contrib/links/browser/links","vs/css!vs/editor/contrib/markdownRenderer/browser/renderedMarkdown","vs/css!vs/editor/contrib/message/browser/messageController","vs/css!vs/editor/contrib/parameterHints/browser/parameterHints","vs/css!vs/editor/contrib/peekView/browser/media/peekViewWidget","vs/css!vs/editor/contrib/rename/browser/renameInputField","vs/css!vs/editor/contrib/snippet/browser/snippetSession","vs/css!vs/editor/contrib/stickyScroll/browser/stickyScroll","vs/css!vs/editor/contrib/suggest/browser/media/suggest","vs/css!vs/editor/contrib/symbolIcons/browser/symbolIcons","vs/css!vs/editor/contrib/unicodeHighlighter/browser/bannerController","vs/css!vs/editor/contrib/unicodeHighlighter/browser/unicodeHighlighter","vs/css!vs/editor/contrib/wordHighlighter/browser/highlightDecorations","vs/css!vs/editor/contrib/zoneWidget/browser/zoneWidget","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/opener/browser/link","vs/css!vs/platform/severityIcon/browser/media/severityIcon","vs/editor/browser/config/charWidthReader","vs/editor/browser/config/migrateOptions","vs/editor/browser/viewParts/lines/domReadingContext","vs/editor/browser/viewParts/lines/rangeUtil","vs/editor/browser/viewParts/minimap/minimapCharRenderer","vs/editor/browser/viewParts/minimap/minimapPreBaked","vs/editor/browser/viewParts/minimap/minimapCharRendererFactory","vs/editor/browser/widget/diffEditor/delegatingEditorImpl","vs/editor/browser/widget/multiDiffEditorWidget/objectPool","vs/editor/browser/widget/diffEditor/outlineModel","vs/editor/common/commands/trimTrailingWhitespaceCommand","vs/editor/common/commands/surroundSelectionCommand","vs/editor/common/cursor/cursorContext","vs/editor/common/diff/defaultLinesDiffComputer/lineSequence","vs/editor/common/diff/defaultLinesDiffComputer/algorithms/dynamicProgrammingDiffing","vs/editor/common/diff/defaultLinesDiffComputer/computeMovedLines","vs/editor/common/diff/legacyLinesDiffComputer","vs/editor/common/diff/linesDiffComputers","vs/editor/common/editorTheme","vs/editor/common/languages/defaultDocumentColorsComputer","vs/editor/common/languages/linkComputer","vs/editor/common/cursor/cursorColumnSelection","vs/editor/common/cursor/oneCursor","vs/editor/common/cursor/cursorCollection","vs/editor/common/languages/supports/characterPair","vs/editor/common/languages/supports/indentRules","vs/editor/common/languages/supports/inplaceReplaceSupport","vs/editor/common/languages/supports/languageBracketsConfiguration","vs/editor/common/languages/supports/onEnter","vs/editor/common/languages/supports/tokenization","vs/editor/common/model/bracketPairsTextModelPart/bracketPairsTree/nodeReader","vs/editor/common/model/bracketPairsTextModelPart/bracketPairsTree/concat23Trees","vs/editor/common/model/bracketPairsTextModelPart/fixBrackets","vs/editor/common/model/fixedArray","vs/editor/common/model/indentationGuesser","vs/editor/common/model/intervalTree","vs/editor/common/model/pieceTreeTextBuffer/rbTreeBase","vs/editor/common/model/mirrorTextModel","vs/editor/common/textModelBracketPairs","vs/editor/common/model/bracketPairsTextModelPart/bracketPairsTree/bracketPairsTree","vs/editor/common/tokenizationRegistry","vs/editor/common/tokens/contiguousMultilineTokens","vs/editor/common/tokens/contiguousTokensEditing","vs/editor/common/tokens/contiguousTokensStore","vs/editor/common/tokens/sparseMultilineTokens","vs/editor/common/tokens/sparseTokensStore","vs/editor/browser/viewParts/blockDecorations/blockDecorations","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/rulers/rulers","vs/editor/browser/viewParts/scrollDecoration/scrollDecoration","vs/editor/browser/viewParts/viewZones/viewZones","vs/editor/common/viewLayout/linePart","vs/editor/common/viewLayout/linesLayout","vs/editor/common/viewLayout/viewLinesViewportData","vs/editor/common/viewModel/modelLineProjection","vs/editor/common/viewModel/monospaceLineBreaksComputer","vs/editor/browser/viewParts/overviewRuler/overviewRuler","vs/editor/common/viewModel/viewContext","vs/editor/common/viewLayout/viewLayout","vs/editor/contrib/caretOperations/browser/moveCaretCommand","vs/editor/contrib/colorPicker/browser/colorPickerModel","vs/editor/contrib/comment/browser/lineCommentCommand","vs/editor/contrib/dnd/browser/dragAndDropCommand","vs/editor/contrib/find/browser/replaceAllCommand","vs/editor/contrib/find/browser/replacePattern","vs/editor/contrib/folding/browser/hiddenRangeModel","vs/editor/contrib/inPlaceReplace/browser/inPlaceReplaceCommand","vs/editor/contrib/linesOperations/browser/copyLinesCommand","vs/editor/contrib/linesOperations/browser/sortLinesCommand","vs/editor/contrib/smartSelect/browser/wordSelections","vs/editor/contrib/suggest/browser/suggestCommitCharacters","vs/editor/contrib/suggest/browser/suggestOvertypingCapturer","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/findInputToggles","vs/nls!vs/base/browser/ui/findinput/replaceInput","vs/nls!vs/base/browser/ui/hover/hoverWidget","vs/nls!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/selectBox/selectBoxCustom","vs/nls!vs/base/browser/ui/toolbar/toolbar","vs/nls!vs/base/browser/ui/tree/abstractTree","vs/nls!vs/base/common/actions","vs/editor/browser/widget/multiDiffEditorWidget/utils","vs/nls!vs/base/common/errorMessage","vs/base/common/errorMessage","vs/nls!vs/base/common/keybindingLabels","vs/nls!vs/base/common/platform","vs/base/browser/ui/scrollbar/scrollbarVisibilityController","vs/base/browser/ui/tree/compressedObjectTreeModel","vs/base/common/hotReload","vs/base/common/fuzzyScorer","vs/base/common/labels","vs/base/browser/ui/dropdown/dropdown","vs/base/browser/ui/list/rowCache","vs/base/browser/ui/progressbar/progressbar","vs/base/browser/ui/selectBox/selectBoxNative","vs/base/browser/ui/scrollbar/horizontalScrollbar","vs/base/browser/ui/scrollbar/verticalScrollbar","vs/base/browser/ui/list/listPaging","vs/base/browser/ui/table/tableWidget","vs/base/browser/ui/selectBox/selectBoxCustom","vs/base/browser/ui/selectBox/selectBox","vs/base/browser/ui/findinput/replaceInput","vs/base/browser/ui/menu/menu","vs/base/browser/ui/toolbar/toolbar","vs/base/browser/ui/tree/dataTree","vs/base/browser/ui/tree/asyncDataTree","vs/base/browser/defaultWorkerFactory","vs/base/parts/storage/common/storage","vs/editor/browser/viewParts/contentWidgets/contentWidgets","vs/editor/browser/widget/codeEditorContributions","vs/editor/browser/widget/diffEditor/diffEditorSash","vs/editor/browser/view/domLineBreaksComputer","vs/editor/browser/view/viewOverlays","vs/editor/common/languageFeatureRegistry","vs/editor/common/languages/supports/electricCharacter","vs/editor/common/model/bracketPairsTextModelPart/bracketPairsImpl","vs/editor/common/model/pieceTreeTextBuffer/pieceTreeTextBufferBuilder","vs/editor/common/services/semanticTokensDto","vs/editor/contrib/hover/browser/resizableContentWidget","vs/editor/contrib/inlineCompletions/browser/provideInlineCompletions","vs/nls!vs/editor/browser/controller/textAreaHandler","vs/nls!vs/editor/browser/coreCommands","vs/nls!vs/editor/browser/editorExtensions","vs/nls!vs/editor/browser/widget/codeEditorWidget","vs/nls!vs/editor/browser/widget/diffEditor/accessibleDiffViewer","vs/nls!vs/editor/browser/widget/diffEditor/colors","vs/nls!vs/editor/browser/widget/diffEditor/decorations","vs/nls!vs/editor/browser/widget/diffEditor/diffEditor.contribution","vs/nls!vs/editor/browser/widget/diffEditor/diffEditorDecorations","vs/nls!vs/editor/browser/widget/diffEditor/diffEditorEditors","vs/nls!vs/editor/browser/widget/diffEditor/hideUnchangedRegionsFeature","vs/nls!vs/editor/browser/widget/diffEditor/inlineDiffDeletedCodeMargin","vs/editor/browser/widget/diffEditor/inlineDiffDeletedCodeMargin","vs/nls!vs/editor/browser/widget/diffEditor/movedBlocksLines","vs/nls!vs/editor/browser/widget/multiDiffEditorWidget/colors","vs/nls!vs/editor/common/config/editorConfigurationSchema","vs/nls!vs/editor/common/config/editorOptions","vs/editor/browser/viewParts/viewCursors/viewCursor","vs/editor/browser/widget/diffEditor/diffEditorOptions","vs/nls!vs/editor/common/core/editorColorRegistry","vs/nls!vs/editor/common/editorContextKeys","vs/nls!vs/editor/common/languages","vs/editor/common/model/textModelTokens","vs/editor/common/model/tokenizationTextModelPart","vs/editor/common/services/editorSimpleWorker","vs/nls!vs/editor/common/languages/modesRegistry","vs/nls!vs/editor/common/model/editStack","vs/nls!vs/editor/common/standaloneStrings","vs/nls!vs/editor/common/viewLayout/viewLineRenderer","vs/editor/browser/widget/diffEditor/renderLines","vs/nls!vs/editor/contrib/anchorSelect/browser/anchorSelect","vs/nls!vs/editor/contrib/bracketMatching/browser/bracketMatching","vs/nls!vs/editor/contrib/caretOperations/browser/caretOperations","vs/nls!vs/editor/contrib/caretOperations/browser/transpose","vs/nls!vs/editor/contrib/clipboard/browser/clipboard","vs/nls!vs/editor/contrib/codeAction/browser/codeAction","vs/nls!vs/editor/contrib/codeAction/browser/codeActionCommands","vs/nls!vs/editor/contrib/codeAction/browser/codeActionContributions","vs/nls!vs/editor/contrib/codeAction/browser/codeActionController","vs/nls!vs/editor/contrib/codeAction/browser/codeActionMenu","vs/nls!vs/editor/contrib/codeAction/browser/lightBulbWidget","vs/nls!vs/editor/contrib/codelens/browser/codelensController","vs/nls!vs/editor/contrib/colorPicker/browser/colorPickerWidget","vs/nls!vs/editor/contrib/colorPicker/browser/standaloneColorPickerActions","vs/nls!vs/editor/contrib/comment/browser/comment","vs/nls!vs/editor/contrib/contextmenu/browser/contextmenu","vs/nls!vs/editor/contrib/cursorUndo/browser/cursorUndo","vs/nls!vs/editor/contrib/dropOrPasteInto/browser/copyPasteContribution","vs/nls!vs/editor/contrib/dropOrPasteInto/browser/copyPasteController","vs/nls!vs/editor/contrib/dropOrPasteInto/browser/defaultProviders","vs/nls!vs/editor/contrib/dropOrPasteInto/browser/dropIntoEditorContribution","vs/nls!vs/editor/contrib/dropOrPasteInto/browser/dropIntoEditorController","vs/nls!vs/editor/contrib/editorState/browser/keybindingCancellation","vs/nls!vs/editor/contrib/find/browser/findController","vs/nls!vs/editor/contrib/find/browser/findWidget","vs/nls!vs/editor/contrib/folding/browser/folding","vs/nls!vs/editor/contrib/folding/browser/foldingDecorations","vs/nls!vs/editor/contrib/fontZoom/browser/fontZoom","vs/nls!vs/editor/contrib/format/browser/formatActions","vs/nls!vs/editor/contrib/gotoError/browser/gotoError","vs/nls!vs/editor/contrib/gotoError/browser/gotoErrorWidget","vs/nls!vs/editor/contrib/gotoSymbol/browser/goToCommands","vs/nls!vs/editor/contrib/gotoSymbol/browser/link/goToDefinitionAtPosition","vs/nls!vs/editor/contrib/gotoSymbol/browser/peek/referencesController","vs/nls!vs/editor/contrib/gotoSymbol/browser/peek/referencesTree","vs/nls!vs/editor/contrib/gotoSymbol/browser/peek/referencesWidget","vs/nls!vs/editor/contrib/gotoSymbol/browser/referencesModel","vs/nls!vs/editor/contrib/gotoSymbol/browser/symbolNavigation","vs/nls!vs/editor/contrib/hover/browser/hover","vs/nls!vs/editor/contrib/hover/browser/markdownHoverParticipant","vs/nls!vs/editor/contrib/hover/browser/markerHoverParticipant","vs/nls!vs/editor/contrib/inPlaceReplace/browser/inPlaceReplace","vs/nls!vs/editor/contrib/indentation/browser/indentation","vs/nls!vs/editor/contrib/inlayHints/browser/inlayHintsHover","vs/nls!vs/editor/contrib/inlineCompletions/browser/commands","vs/nls!vs/editor/contrib/inlineCompletions/browser/hoverParticipant","vs/nls!vs/editor/contrib/inlineCompletions/browser/inlineCompletionContextKeys","vs/nls!vs/editor/contrib/inlineCompletions/browser/inlineCompletionsController","vs/nls!vs/editor/contrib/inlineCompletions/browser/inlineCompletionsHintsWidget","vs/nls!vs/editor/contrib/lineSelection/browser/lineSelection","vs/nls!vs/editor/contrib/linesOperations/browser/linesOperations","vs/nls!vs/editor/contrib/linkedEditing/browser/linkedEditing","vs/nls!vs/editor/contrib/links/browser/links","vs/nls!vs/editor/contrib/message/browser/messageController","vs/nls!vs/editor/contrib/multicursor/browser/multicursor","vs/nls!vs/editor/contrib/parameterHints/browser/parameterHints","vs/nls!vs/editor/contrib/parameterHints/browser/parameterHintsWidget","vs/nls!vs/editor/contrib/peekView/browser/peekView","vs/nls!vs/editor/contrib/quickAccess/browser/gotoLineQuickAccess","vs/nls!vs/editor/contrib/quickAccess/browser/gotoSymbolQuickAccess","vs/nls!vs/editor/contrib/readOnlyMessage/browser/contribution","vs/nls!vs/editor/contrib/rename/browser/rename","vs/nls!vs/editor/contrib/rename/browser/renameInputField","vs/nls!vs/editor/contrib/smartSelect/browser/smartSelect","vs/nls!vs/editor/contrib/snippet/browser/snippetController2","vs/nls!vs/editor/contrib/snippet/browser/snippetVariables","vs/nls!vs/editor/contrib/stickyScroll/browser/stickyScrollActions","vs/nls!vs/editor/contrib/suggest/browser/suggest","vs/nls!vs/editor/contrib/suggest/browser/suggestController","vs/nls!vs/editor/contrib/suggest/browser/suggestWidget","vs/nls!vs/editor/contrib/suggest/browser/suggestWidgetDetails","vs/nls!vs/editor/contrib/suggest/browser/suggestWidgetRenderer","vs/nls!vs/editor/contrib/suggest/browser/suggestWidgetStatus","vs/nls!vs/editor/contrib/symbolIcons/browser/symbolIcons","vs/nls!vs/editor/contrib/toggleTabFocusMode/browser/toggleTabFocusMode","vs/nls!vs/editor/contrib/tokenization/browser/tokenization","vs/nls!vs/editor/contrib/unicodeHighlighter/browser/unicodeHighlighter","vs/nls!vs/editor/contrib/unusualLineTerminators/browser/unusualLineTerminators","vs/nls!vs/editor/contrib/wordHighlighter/browser/highlightDecorations","vs/nls!vs/editor/contrib/wordHighlighter/browser/wordHighlighter","vs/nls!vs/editor/contrib/wordOperations/browser/wordOperations","vs/nls!vs/platform/action/common/actionCommonCategories","vs/nls!vs/platform/actionWidget/browser/actionList","vs/nls!vs/platform/actionWidget/browser/actionWidget","vs/nls!vs/platform/actions/browser/menuEntryActionViewItem","vs/nls!vs/platform/actions/browser/toolbar","vs/nls!vs/platform/actions/common/menuService","vs/nls!vs/platform/audioCues/browser/audioCueService","vs/nls!vs/platform/configuration/common/configurationRegistry","vs/nls!vs/platform/contextkey/browser/contextKeyService","vs/nls!vs/platform/contextkey/common/contextkey","vs/nls!vs/platform/contextkey/common/contextkeys","vs/nls!vs/platform/contextkey/common/scanner","vs/nls!vs/platform/history/browser/contextScopedHistoryWidget","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/quickinput/browser/quickInput","vs/nls!vs/platform/quickinput/browser/quickInputController","vs/nls!vs/platform/quickinput/browser/quickInputList","vs/nls!vs/platform/quickinput/browser/quickInputUtils","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/workspace/common/workspace","vs/platform/action/common/action","vs/platform/action/common/actionCommonCategories","vs/platform/contextkey/common/scanner","vs/platform/editor/common/editor","vs/platform/extensions/common/extensions","vs/platform/history/browser/historyWidgetKeybindingHint","vs/platform/instantiation/common/graph","vs/editor/browser/widget/diffEditor/hideUnchangedRegionsFeature","vs/editor/common/services/languageFeaturesService","vs/editor/common/services/treeViewsDndService","vs/editor/contrib/inlineCompletions/browser/ghostTextWidget","vs/editor/contrib/links/browser/getLinks","vs/editor/standalone/browser/colorizer","vs/editor/contrib/parameterHints/browser/parameterHintsModel","vs/editor/contrib/suggest/browser/suggestAlternatives","vs/editor/contrib/suggest/browser/wordContextKey","vs/editor/browser/config/editorConfiguration","vs/platform/contextkey/browser/contextKeyService","vs/platform/instantiation/common/instantiationService","vs/platform/keybinding/common/baseResolvedKeybinding","vs/platform/keybinding/common/abstractKeybindingService","vs/platform/keybinding/common/usLayoutResolvedKeybinding","vs/platform/accessibility/browser/accessibilityService","vs/platform/contextview/browser/contextViewService","vs/editor/contrib/documentSymbols/browser/documentSymbols","vs/platform/clipboard/browser/clipboardService","vs/platform/log/common/logService","vs/editor/contrib/gotoError/browser/markerNavigationService","vs/platform/markers/common/markerService","vs/editor/browser/services/openerService","vs/platform/opener/browser/link","vs/platform/product/common/product","vs/platform/quickinput/browser/pickerQuickAccess","vs/platform/quickinput/browser/quickInputBox","vs/editor/browser/services/webWorker","vs/editor/common/cursor/cursor","vs/editor/common/services/getIconClasses","vs/editor/common/services/languagesAssociations","vs/editor/common/services/languagesRegistry","vs/editor/common/services/languageService","vs/editor/contrib/inlineCompletions/browser/inlineCompletionsSource","vs/editor/contrib/linesOperations/browser/moveLinesCommand","vs/editor/contrib/hover/browser/marginHover","vs/platform/configuration/common/configurations","vs/editor/contrib/toggleTabFocusMode/browser/toggleTabFocusMode","vs/platform/quickinput/browser/helpQuickAccess","vs/editor/standalone/browser/quickAccess/standaloneHelpQuickAccess","vs/platform/quickinput/browser/quickAccess","vs/platform/severityIcon/browser/severityIcon","vs/editor/contrib/codelens/browser/codeLensCache","vs/platform/actions/common/menuService","vs/editor/browser/services/markerDecorations","vs/editor/browser/view/viewController","vs/editor/browser/widget/diffEditor/workerBasedDocumentDiffProvider","vs/editor/browser/widget/diffEditor/diffProviderFactoryService","vs/editor/contrib/anchorSelect/browser/anchorSelect","vs/editor/contrib/caretOperations/browser/caretOperations","vs/editor/contrib/caretOperations/browser/transpose","vs/editor/contrib/clipboard/browser/clipboard","vs/editor/contrib/comment/browser/comment","vs/editor/contrib/cursorUndo/browser/cursorUndo","vs/editor/contrib/editorState/browser/keybindingCancellation","vs/editor/contrib/codeAction/browser/codeActionKeybindingResolver","vs/editor/contrib/fontZoom/browser/fontZoom","vs/editor/contrib/format/browser/formatActions","vs/editor/contrib/gotoSymbol/browser/symbolNavigation","vs/editor/contrib/indentation/browser/indentation","vs/editor/contrib/lineSelection/browser/lineSelection","vs/editor/contrib/linesOperations/browser/linesOperations","vs/editor/contrib/longLinesHelper/browser/longLinesHelper","vs/editor/contrib/readOnlyMessage/browser/contribution","vs/editor/contrib/smartSelect/browser/smartSelect","vs/editor/contrib/suggest/browser/suggestInlineCompletions","vs/editor/contrib/tokenization/browser/tokenization","vs/editor/contrib/unusualLineTerminators/browser/unusualLineTerminators","vs/editor/contrib/wordPartOperations/browser/wordPartOperations","vs/editor/standalone/browser/iPadShowKeyboard/iPadShowKeyboard","vs/editor/standalone/browser/inspectTokens/inspectTokens","vs/platform/quickinput/browser/commandsQuickAccess","vs/editor/contrib/quickAccess/browser/commandsQuickAccess","vs/editor/standalone/browser/quickAccess/standaloneCommandsQuickAccess","vs/editor/browser/viewParts/minimap/minimap","vs/editor/browser/widget/diffEditor/colors","vs/editor/browser/widget/multiDiffEditorWidget/colors","vs/editor/contrib/codeAction/browser/codeActionMenu","vs/editor/contrib/gotoSymbol/browser/peek/referencesTree","vs/platform/actionWidget/browser/actionList","vs/platform/actionWidget/browser/actionWidget","vs/platform/contextview/browser/contextMenuHandler","vs/editor/browser/widget/diffEditor/accessibleDiffViewer","vs/editor/contrib/colorPicker/browser/colorPickerWidget","vs/editor/contrib/parameterHints/browser/parameterHintsWidget","vs/editor/contrib/parameterHints/browser/parameterHints","vs/editor/contrib/unicodeHighlighter/browser/bannerController","vs/platform/theme/browser/iconsStyleSheet","vs/editor/browser/controller/mouseHandler","vs/editor/browser/controller/pointerHandler","vs/editor/browser/viewParts/lines/viewLines","vs/platform/quickinput/browser/quickInput","vs/platform/quickinput/browser/quickInputController","vs/editor/browser/services/abstractCodeEditorService","vs/editor/browser/viewParts/editorScrollbar/editorScrollbar","vs/editor/browser/viewParts/selections/selections","vs/editor/browser/widget/diffEditor/diffEditorEditors","vs/editor/browser/viewParts/currentLineHighlight/currentLineHighlight","vs/editor/browser/viewParts/indentGuides/indentGuides","vs/editor/browser/controller/textAreaHandler","vs/editor/browser/viewParts/overviewRuler/decorationsOverviewRuler","vs/editor/browser/viewParts/viewCursors/viewCursors","vs/editor/browser/viewParts/whitespace/whitespace","vs/editor/browser/view","vs/editor/common/model/bracketPairsTextModelPart/colorizedBracketPairsDecorationProvider","vs/editor/common/services/markerDecorationsService","vs/editor/common/services/semanticTokensStylingService","vs/editor/contrib/quickAccess/browser/gotoLineQuickAccess","vs/editor/contrib/quickAccess/browser/gotoSymbolQuickAccess","vs/editor/contrib/rename/browser/renameInputField","vs/editor/contrib/rename/browser/rename","vs/editor/contrib/semanticTokens/browser/documentSemanticTokens","vs/editor/contrib/semanticTokens/browser/viewportSemanticTokens","vs/editor/contrib/suggest/browser/suggestWidgetRenderer","vs/editor/standalone/browser/quickAccess/standaloneGotoLineQuickAccess","vs/editor/standalone/browser/quickAccess/standaloneGotoSymbolQuickAccess","vs/editor/standalone/common/themes","vs/editor/standalone/browser/toggleHighContrast/toggleHighContrast","vs/editor/contrib/suggest/browser/suggestWidgetStatus","vs/platform/contextview/browser/contextMenuService","vs/platform/quickinput/browser/quickInputService","vs/editor/standalone/browser/quickInput/standaloneQuickInputService","vs/editor/browser/widget/diffEditor/diffEditorDecorations","vs/editor/browser/widget/diffEditor/lineAlignment","vs/editor/common/services/modelService","vs/editor/common/viewModel/viewModelLines","vs/editor/common/viewModel/viewModelImpl","vs/editor/browser/widget/diffEditor/diffEditor.contribution","vs/editor/browser/widget/multiDiffEditorWidget/multiDiffEditorWidgetImpl","vs/editor/browser/widget/multiDiffEditorWidget/multiDiffEditorWidget","vs/editor/contrib/bracketMatching/browser/bracketMatching","vs/editor/contrib/codeAction/browser/codeActionCommands","vs/editor/contrib/codeAction/browser/codeActionContributions","vs/editor/contrib/codelens/browser/codelensWidget","vs/editor/contrib/codelens/browser/codelensController","vs/editor/contrib/dnd/browser/dnd","vs/editor/contrib/find/browser/findDecorations","vs/editor/contrib/find/browser/findOptionsWidget","vs/editor/contrib/find/browser/findState","vs/editor/contrib/find/browser/findWidget","vs/editor/contrib/colorPicker/browser/standaloneColorPickerWidget","vs/editor/contrib/colorPicker/browser/standaloneColorPickerActions","vs/editor/contrib/inPlaceReplace/browser/inPlaceReplace","vs/editor/contrib/dropOrPasteInto/browser/copyPasteController","vs/editor/contrib/dropOrPasteInto/browser/dropIntoEditorController","vs/editor/contrib/linkedEditing/browser/linkedEditing","vs/editor/contrib/links/browser/links","vs/editor/contrib/stickyScroll/browser/stickyScrollModelProvider","vs/editor/contrib/stickyScroll/browser/stickyScrollProvider","vs/editor/contrib/stickyScroll/browser/stickyScrollWidget","vs/editor/contrib/suggest/browser/suggestWidget","vs/editor/contrib/multicursor/browser/multicursor","vs/editor/contrib/wordHighlighter/browser/wordHighlighter","vs/editor/contrib/zoneWidget/browser/zoneWidget","vs/editor/contrib/gotoError/browser/gotoErrorWidget","vs/editor/contrib/gotoSymbol/browser/peek/referencesWidget","vs/editor/contrib/hover/browser/markerHoverParticipant","vs/editor/contrib/colorPicker/browser/colorContributions","vs/editor/contrib/inlayHints/browser/inlayHintsHover","vs/editor/contrib/inlayHints/browser/inlayHintsContribution","vs/editor/contrib/stickyScroll/browser/stickyScrollActions","vs/editor/contrib/stickyScroll/browser/stickyScrollContribution","vs/editor/standalone/browser/referenceSearch/standaloneReferenceSearch","vs/platform/undoRedo/common/undoRedoService","vs/editor/contrib/contextmenu/browser/contextmenu","vs/editor/contrib/dropOrPasteInto/browser/copyPasteContribution","vs/editor/contrib/dropOrPasteInto/browser/dropIntoEditorContribution","vs/editor/contrib/snippet/browser/snippetVariables","vs/editor/contrib/inlineCompletions/browser/inlineCompletionsModel","vs/editor/contrib/suggest/browser/suggestModel","vs/editor/contrib/inlineCompletions/browser/suggestWidgetInlineCompletionProvider","vs/editor/contrib/inlineCompletions/browser/commands","vs/editor/contrib/inlineCompletions/browser/hoverParticipant","vs/editor/contrib/inlineCompletions/browser/inlineCompletions.contribution","vs/editor/contrib/unicodeHighlighter/browser/unicodeHighlighter","vs/editor/editor.all","vs/editor/standalone/browser/standaloneCodeEditor","vs/editor/standalone/browser/standaloneEditor","vs/editor/standalone/browser/standaloneLanguages","vs/editor/editor.api","vs/css","vs/editor/edcore.main"],ne=function(Q){for(var e=[],L=0,k=Q.length;L{v({})},n=>{typeof v.error=="function"&&v.error("Could not find "+i+".")})}e.load=L;function k(p,S,v,b){if(y(p,S)){v();return}E(p,S,v,b)}function y(p,S){const v=window.document.getElementsByTagName("link");for(let b=0,o=v.length;b{S.removeEventListener("load",i),S.removeEventListener("error",n)},i=t=>{o(),v()},n=t=>{o(),b(t)};S.addEventListener("load",i),S.addEventListener("error",n)}}),define(ie[3],ne([1,0]),function(Q,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.load=e.create=e.setPseudoTranslation=e.getConfiguredDefaultLocale=e.localize2=e.localize=void 0;let L=typeof document<"u"&&document.location&&document.location.hash.indexOf("pseudo=true")>=0;const k="i-default";function y(u,f){let c;return f.length===0?c=u:c=u.replace(/\{(\d+)\}/g,(d,r)=>{const l=r[0],s=f[l];let g=d;return typeof s=="string"?g=s:(typeof s=="number"||typeof s=="boolean"||s===void 0||s===null)&&(g=String(s)),g}),L&&(c="\uFF3B"+c.replace(/[aouei]/g,"$&$&")+"\uFF3D"),c}function E(u,f){let c=u[f];return c||(c=u["*"],c)?c:null}function _(u){return u.charAt(u.length-1)==="/"?u:u+"/"}async function p(u,f,c){const d=_(u)+_(f)+"vscode/"+_(c),r=await fetch(d);if(r.ok)return await r.json();throw new Error(`${r.status} - ${r.statusText}`)}function S(u){return function(f,c){const d=Array.prototype.slice.call(arguments,2);return y(u[f],d)}}function v(u){return(f,c,...d)=>({value:y(u[f],d),original:y(c,d)})}function b(u,f,...c){return y(f,c)}e.localize=b;function o(u,f,...c){const d=y(f,c);return{value:d,original:d}}e.localize2=o;function i(u){}e.getConfiguredDefaultLocale=i;function n(u){L=u}e.setPseudoTranslation=n;function t(u,f){var c;return{localize:S(f[u]),localize2:v(f[u]),getConfiguredDefaultLocale:(c=f.getConfiguredDefaultLocale)!==null&&c!==void 0?c:d=>{}}}e.create=t;function a(u,f,c,d){var r;const l=(r=d["vs/nls"])!==null&&r!==void 0?r:{};if(!u||u.length===0)return c({localize:b,localize2:o,getConfiguredDefaultLocale:()=>{var C;return(C=l.availableLanguages)===null||C===void 0?void 0:C["*"]}});const s=l.availableLanguages?E(l.availableLanguages,u):null,g=s===null||s===k;let h=".nls";g||(h=h+"."+s);const m=C=>{Array.isArray(C)?(C.localize=S(C),C.localize2=v(C)):(C.localize=S(C[u]),C.localize2=v(C[u])),C.getConfiguredDefaultLocale=()=>{var w;return(w=l.availableLanguages)===null||w===void 0?void 0:w["*"]},c(C)};typeof l.loadBundle=="function"?l.loadBundle(u,s,(C,w)=>{C?f([u+".nls"],m):m(w)}):l.translationServiceUrl&&!g?(async()=>{var C;try{const w=await p(l.translationServiceUrl,s,u);return m(w)}catch(w){if(!s.includes("-"))return console.error(w),f([u+".nls"],m);try{const D=s.split("-")[0],I=await p(l.translationServiceUrl,D,u);return(C=l.availableLanguages)!==null&&C!==void 0||(l.availableLanguages={}),l.availableLanguages["*"]=D,m(I)}catch(D){return console.error(D),f([u+".nls"],m)}}})():f([u+h],m,C=>{if(h===".nls"){console.error("Failed trying to load default language strings",C);return}console.error(`Failed to load message bundle for language ${s}. Falling back to the default language:`,C),f([u+".nls"],m)})}e.load=a});/*! @license DOMPurify 3.0.5 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.0.5/LICENSE */const{entries:Wt,setPrototypeOf:Vt,isFrozen:Yt,getPrototypeOf:Qt,getOwnPropertyDescriptor:Xt}=Object;let{freeze:vt,seal:_t,create:Jt}=Object,{apply:At,construct:Rt}=typeof Reflect<"u"&&Reflect;At||(At=function(e,L,k){return e.apply(L,k)}),vt||(vt=function(e){return e}),_t||(_t=function(e){return e}),Rt||(Rt=function(e,L){return new e(...L)});const ei=bt(Array.prototype.forEach),zt=bt(Array.prototype.pop),Et=bt(Array.prototype.push),Tt=bt(String.prototype.toLowerCase),Pt=bt(String.prototype.toString),ti=bt(String.prototype.match),St=bt(String.prototype.replace),ii=bt(String.prototype.indexOf),ni=bt(String.prototype.trim),Ct=bt(RegExp.prototype.test),It=si(TypeError);function bt(Q){return function(e){for(var L=arguments.length,k=new Array(L>1?L-1:0),y=1;y/gm),di=_t(/\${[\w\W]*}/gm),ci=_t(/^data-[\-\w.\u00B7-\uFFFF]/),ui=_t(/^aria-[\-\w]+$/),jt=_t(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),hi=_t(/^(?:\w+script|data):/i),gi=_t(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),$t=_t(/^html$/i);var Gt=Object.freeze({__proto__:null,MUSTACHE_EXPR:ai,ERB_EXPR:li,TMPLIT_EXPR:di,DATA_ATTR:ci,ARIA_ATTR:ui,IS_ALLOWED_URI:jt,IS_SCRIPT_OR_DATA:hi,ATTR_WHITESPACE:gi,DOCTYPE_NAME:$t});const fi=()=>typeof window>"u"?null:window,mi=function(e,L){if(typeof e!="object"||typeof e.createPolicy!="function")return null;let k=null;const y="data-tt-policy-suffix";L&&L.hasAttribute(y)&&(k=L.getAttribute(y));const E="dompurify"+(k?"#"+k:"");try{return e.createPolicy(E,{createHTML(_){return _},createScriptURL(_){return _}})}catch{return console.warn("TrustedTypes policy "+E+" could not be created."),null}};function Zt(){let Q=arguments.length>0&&arguments[0]!==void 0?arguments[0]:fi();const e=xe=>Zt(xe);if(e.version="3.0.5",e.removed=[],!Q||!Q.document||Q.document.nodeType!==9)return e.isSupported=!1,e;const L=Q.document,k=L.currentScript;let{document:y}=Q;const{DocumentFragment:E,HTMLTemplateElement:_,Node:p,Element:S,NodeFilter:v,NamedNodeMap:b=Q.NamedNodeMap||Q.MozNamedAttrMap,HTMLFormElement:o,DOMParser:i,trustedTypes:n}=Q,t=S.prototype,a=Mt(t,"cloneNode"),u=Mt(t,"nextSibling"),f=Mt(t,"childNodes"),c=Mt(t,"parentNode");if(typeof _=="function"){const xe=y.createElement("template");xe.content&&xe.content.ownerDocument&&(y=xe.content.ownerDocument)}let d,r="";const{implementation:l,createNodeIterator:s,createDocumentFragment:g,getElementsByTagName:h}=y,{importNode:m}=L;let C={};e.isSupported=typeof Wt=="function"&&typeof c=="function"&&l&&l.createHTMLDocument!==void 0;const{MUSTACHE_EXPR:w,ERB_EXPR:D,TMPLIT_EXPR:I,DATA_ATTR:M,ARIA_ATTR:A,IS_SCRIPT_OR_DATA:O,ATTR_WHITESPACE:T}=Gt;let{IS_ALLOWED_URI:N}=Gt,P=null;const x=Ye({},[...Ht,...Ot,...Ft,...xt,...Ut]);let R=null;const B=Ye({},[...Kt,...Bt,...qt,...Nt]);let W=Object.seal(Object.create(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),V=null,U=null,F=!0,j=!0,J=!1,le=!0,ee=!1,$=!1,te=!1,G=!1,de=!1,ue=!1,X=!1,Z=!0,re=!1;const oe="user-content-";let Y=!0,K=!1,H={},z=null;const se=Ye({},["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"]);let q=null;const ae=Ye({},["audio","video","img","source","image","track"]);let ce=null;const ge=Ye({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),pe="http://www.w3.org/1998/Math/MathML",me="http://www.w3.org/2000/svg",ve="http://www.w3.org/1999/xhtml";let Ce=ve,Se=!1,_e=null;const Te=Ye({},[pe,me,ve],Pt);let Me;const Pe=["application/xhtml+xml","text/html"],Be="text/html";let Le,Ne=null;const fe=y.createElement("form"),be=function(De){return De instanceof RegExp||De instanceof Function},ke=function(De){if(!(Ne&&Ne===De)){if((!De||typeof De!="object")&&(De={}),De=Lt(De),Me=Pe.indexOf(De.PARSER_MEDIA_TYPE)===-1?Me=Be:Me=De.PARSER_MEDIA_TYPE,Le=Me==="application/xhtml+xml"?Pt:Tt,P="ALLOWED_TAGS"in De?Ye({},De.ALLOWED_TAGS,Le):x,R="ALLOWED_ATTR"in De?Ye({},De.ALLOWED_ATTR,Le):B,_e="ALLOWED_NAMESPACES"in De?Ye({},De.ALLOWED_NAMESPACES,Pt):Te,ce="ADD_URI_SAFE_ATTR"in De?Ye(Lt(ge),De.ADD_URI_SAFE_ATTR,Le):ge,q="ADD_DATA_URI_TAGS"in De?Ye(Lt(ae),De.ADD_DATA_URI_TAGS,Le):ae,z="FORBID_CONTENTS"in De?Ye({},De.FORBID_CONTENTS,Le):se,V="FORBID_TAGS"in De?Ye({},De.FORBID_TAGS,Le):{},U="FORBID_ATTR"in De?Ye({},De.FORBID_ATTR,Le):{},H="USE_PROFILES"in De?De.USE_PROFILES:!1,F=De.ALLOW_ARIA_ATTR!==!1,j=De.ALLOW_DATA_ATTR!==!1,J=De.ALLOW_UNKNOWN_PROTOCOLS||!1,le=De.ALLOW_SELF_CLOSE_IN_ATTR!==!1,ee=De.SAFE_FOR_TEMPLATES||!1,$=De.WHOLE_DOCUMENT||!1,de=De.RETURN_DOM||!1,ue=De.RETURN_DOM_FRAGMENT||!1,X=De.RETURN_TRUSTED_TYPE||!1,G=De.FORCE_BODY||!1,Z=De.SANITIZE_DOM!==!1,re=De.SANITIZE_NAMED_PROPS||!1,Y=De.KEEP_CONTENT!==!1,K=De.IN_PLACE||!1,N=De.ALLOWED_URI_REGEXP||jt,Ce=De.NAMESPACE||ve,W=De.CUSTOM_ELEMENT_HANDLING||{},De.CUSTOM_ELEMENT_HANDLING&&be(De.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(W.tagNameCheck=De.CUSTOM_ELEMENT_HANDLING.tagNameCheck),De.CUSTOM_ELEMENT_HANDLING&&be(De.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(W.attributeNameCheck=De.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),De.CUSTOM_ELEMENT_HANDLING&&typeof De.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(W.allowCustomizedBuiltInElements=De.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),ee&&(j=!1),ue&&(de=!0),H&&(P=Ye({},[...Ut]),R=[],H.html===!0&&(Ye(P,Ht),Ye(R,Kt)),H.svg===!0&&(Ye(P,Ot),Ye(R,Bt),Ye(R,Nt)),H.svgFilters===!0&&(Ye(P,Ft),Ye(R,Bt),Ye(R,Nt)),H.mathMl===!0&&(Ye(P,xt),Ye(R,qt),Ye(R,Nt))),De.ADD_TAGS&&(P===x&&(P=Lt(P)),Ye(P,De.ADD_TAGS,Le)),De.ADD_ATTR&&(R===B&&(R=Lt(R)),Ye(R,De.ADD_ATTR,Le)),De.ADD_URI_SAFE_ATTR&&Ye(ce,De.ADD_URI_SAFE_ATTR,Le),De.FORBID_CONTENTS&&(z===se&&(z=Lt(z)),Ye(z,De.FORBID_CONTENTS,Le)),Y&&(P["#text"]=!0),$&&Ye(P,["html","head","body"]),P.table&&(Ye(P,["tbody"]),delete V.tbody),De.TRUSTED_TYPES_POLICY){if(typeof De.TRUSTED_TYPES_POLICY.createHTML!="function")throw It('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof De.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw It('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');d=De.TRUSTED_TYPES_POLICY,r=d.createHTML("")}else d===void 0&&(d=mi(n,k)),d!==null&&typeof r=="string"&&(r=d.createHTML(""));vt&&vt(De),Ne=De}},Re=Ye({},["mi","mo","mn","ms","mtext"]),Ve=Ye({},["foreignobject","desc","title","annotation-xml"]),Ke=Ye({},["title","style","font","a","script"]),je=Ye({},Ot);Ye(je,Ft),Ye(je,oi);const st=Ye({},xt);Ye(st,ri);const ot=function(De){let Fe=c(De);(!Fe||!Fe.tagName)&&(Fe={namespaceURI:Ce,tagName:"template"});const We=Tt(De.tagName),qe=Tt(Fe.tagName);return _e[De.namespaceURI]?De.namespaceURI===me?Fe.namespaceURI===ve?We==="svg":Fe.namespaceURI===pe?We==="svg"&&(qe==="annotation-xml"||Re[qe]):!!je[We]:De.namespaceURI===pe?Fe.namespaceURI===ve?We==="math":Fe.namespaceURI===me?We==="math"&&Ve[qe]:!!st[We]:De.namespaceURI===ve?Fe.namespaceURI===me&&!Ve[qe]||Fe.namespaceURI===pe&&!Re[qe]?!1:!st[We]&&(Ke[We]||!je[We]):!!(Me==="application/xhtml+xml"&&_e[De.namespaceURI]):!1},nt=function(De){Et(e.removed,{element:De});try{De.parentNode.removeChild(De)}catch{De.remove()}},rt=function(De,Fe){try{Et(e.removed,{attribute:Fe.getAttributeNode(De),from:Fe})}catch{Et(e.removed,{attribute:null,from:Fe})}if(Fe.removeAttribute(De),De==="is"&&!R[De])if(de||ue)try{nt(Fe)}catch{}else try{Fe.setAttribute(De,"")}catch{}},Qe=function(De){let Fe,We;if(G)De=" "+De;else{const ut=ti(De,/^[\r\n\t ]+/);We=ut&&ut[0]}Me==="application/xhtml+xml"&&Ce===ve&&(De=''+De+"");const qe=d?d.createHTML(De):De;if(Ce===ve)try{Fe=new i().parseFromString(qe,Me)}catch{}if(!Fe||!Fe.documentElement){Fe=l.createDocument(Ce,"template",null);try{Fe.documentElement.innerHTML=Se?r:qe}catch{}}const Ze=Fe.body||Fe.documentElement;return De&&We&&Ze.insertBefore(y.createTextNode(We),Ze.childNodes[0]||null),Ce===ve?h.call(Fe,$?"html":"body")[0]:$?Fe.documentElement:Ze},ht=function(De){return s.call(De.ownerDocument||De,De,v.SHOW_ELEMENT|v.SHOW_COMMENT|v.SHOW_TEXT,null,!1)},gt=function(De){return De instanceof o&&(typeof De.nodeName!="string"||typeof De.textContent!="string"||typeof De.removeChild!="function"||!(De.attributes instanceof b)||typeof De.removeAttribute!="function"||typeof De.setAttribute!="function"||typeof De.namespaceURI!="string"||typeof De.insertBefore!="function"||typeof De.hasChildNodes!="function")},ft=function(De){return typeof p=="object"?De instanceof p:De&&typeof De=="object"&&typeof De.nodeType=="number"&&typeof De.nodeName=="string"},dt=function(De,Fe,We){C[De]&&ei(C[De],qe=>{qe.call(e,Fe,We,Ne)})},we=function(De){let Fe;if(dt("beforeSanitizeElements",De,null),gt(De))return nt(De),!0;const We=Le(De.nodeName);if(dt("uponSanitizeElement",De,{tagName:We,allowedTags:P}),De.hasChildNodes()&&!ft(De.firstElementChild)&&(!ft(De.content)||!ft(De.content.firstElementChild))&&Ct(/<[/\w]/g,De.innerHTML)&&Ct(/<[/\w]/g,De.textContent))return nt(De),!0;if(!P[We]||V[We]){if(!V[We]&&Ie(We)&&(W.tagNameCheck instanceof RegExp&&Ct(W.tagNameCheck,We)||W.tagNameCheck instanceof Function&&W.tagNameCheck(We)))return!1;if(Y&&!z[We]){const qe=c(De)||De.parentNode,Ze=f(De)||De.childNodes;if(Ze&&qe){const ut=Ze.length;for(let Xe=ut-1;Xe>=0;--Xe)qe.insertBefore(a(Ze[Xe],!0),u(De))}}return nt(De),!0}return De instanceof S&&!ot(De)||(We==="noscript"||We==="noembed"||We==="noframes")&&Ct(/<\/no(script|embed|frames)/i,De.innerHTML)?(nt(De),!0):(ee&&De.nodeType===3&&(Fe=De.textContent,Fe=St(Fe,w," "),Fe=St(Fe,D," "),Fe=St(Fe,I," "),De.textContent!==Fe&&(Et(e.removed,{element:De.cloneNode()}),De.textContent=Fe)),dt("afterSanitizeElements",De,null),!1)},ye=function(De,Fe,We){if(Z&&(Fe==="id"||Fe==="name")&&(We in y||We in fe))return!1;if(!(j&&!U[Fe]&&Ct(M,Fe))){if(!(F&&Ct(A,Fe))){if(!R[Fe]||U[Fe]){if(!(Ie(De)&&(W.tagNameCheck instanceof RegExp&&Ct(W.tagNameCheck,De)||W.tagNameCheck instanceof Function&&W.tagNameCheck(De))&&(W.attributeNameCheck instanceof RegExp&&Ct(W.attributeNameCheck,Fe)||W.attributeNameCheck instanceof Function&&W.attributeNameCheck(Fe))||Fe==="is"&&W.allowCustomizedBuiltInElements&&(W.tagNameCheck instanceof RegExp&&Ct(W.tagNameCheck,We)||W.tagNameCheck instanceof Function&&W.tagNameCheck(We))))return!1}else if(!ce[Fe]){if(!Ct(N,St(We,T,""))){if(!((Fe==="src"||Fe==="xlink:href"||Fe==="href")&&De!=="script"&&ii(We,"data:")===0&&q[De])){if(!(J&&!Ct(O,St(We,T,"")))){if(We)return!1}}}}}}return!0},Ie=function(De){return De.indexOf("-")>0},Ae=function(De){let Fe,We,qe,Ze;dt("beforeSanitizeAttributes",De,null);const{attributes:ut}=De;if(!ut)return;const Xe={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:R};for(Ze=ut.length;Ze--;){Fe=ut[Ze];const{name:lt,namespaceURI:Ge}=Fe;if(We=lt==="value"?Fe.value:ni(Fe.value),qe=Le(lt),Xe.attrName=qe,Xe.attrValue=We,Xe.keepAttr=!0,Xe.forceKeepAttr=void 0,dt("uponSanitizeAttribute",De,Xe),We=Xe.attrValue,Xe.forceKeepAttr||(rt(lt,De),!Xe.keepAttr))continue;if(!le&&Ct(/\/>/i,We)){rt(lt,De);continue}ee&&(We=St(We,w," "),We=St(We,D," "),We=St(We,I," "));const Oe=Le(De.nodeName);if(ye(Oe,qe,We)){if(re&&(qe==="id"||qe==="name")&&(rt(lt,De),We=oe+We),d&&typeof n=="object"&&typeof n.getAttributeType=="function"&&!Ge)switch(n.getAttributeType(Oe,qe)){case"TrustedHTML":{We=d.createHTML(We);break}case"TrustedScriptURL":{We=d.createScriptURL(We);break}}try{Ge?De.setAttributeNS(Ge,lt,We):De.setAttribute(lt,We),zt(e.removed)}catch{}}}dt("afterSanitizeAttributes",De,null)},ze=function xe(De){let Fe;const We=ht(De);for(dt("beforeSanitizeShadowDOM",De,null);Fe=We.nextNode();)dt("uponSanitizeShadowNode",Fe,null),!we(Fe)&&(Fe.content instanceof E&&xe(Fe.content),Ae(Fe));dt("afterSanitizeShadowDOM",De,null)};return e.sanitize=function(xe){let De=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Fe,We,qe,Ze;if(Se=!xe,Se&&(xe=""),typeof xe!="string"&&!ft(xe))if(typeof xe.toString=="function"){if(xe=xe.toString(),typeof xe!="string")throw It("dirty is not a string, aborting")}else throw It("toString is not a function");if(!e.isSupported)return xe;if(te||ke(De),e.removed=[],typeof xe=="string"&&(K=!1),K){if(xe.nodeName){const lt=Le(xe.nodeName);if(!P[lt]||V[lt])throw It("root node is forbidden and cannot be sanitized in-place")}}else if(xe instanceof p)Fe=Qe(""),We=Fe.ownerDocument.importNode(xe,!0),We.nodeType===1&&We.nodeName==="BODY"||We.nodeName==="HTML"?Fe=We:Fe.appendChild(We);else{if(!de&&!ee&&!$&&xe.indexOf("<")===-1)return d&&X?d.createHTML(xe):xe;if(Fe=Qe(xe),!Fe)return de?null:X?r:""}Fe&&G&&nt(Fe.firstChild);const ut=ht(K?xe:Fe);for(;qe=ut.nextNode();)we(qe)||(qe.content instanceof E&&ze(qe.content),Ae(qe));if(K)return xe;if(de){if(ue)for(Ze=g.call(Fe.ownerDocument);Fe.firstChild;)Ze.appendChild(Fe.firstChild);else Ze=Fe;return(R.shadowroot||R.shadowrootmode)&&(Ze=m.call(L,Ze,!0)),Ze}let Xe=$?Fe.outerHTML:Fe.innerHTML;return $&&P["!doctype"]&&Fe.ownerDocument&&Fe.ownerDocument.doctype&&Fe.ownerDocument.doctype.name&&Ct($t,Fe.ownerDocument.doctype.name)&&(Xe="
`+Xe),ee&&(Xe=St(Xe,w," "),Xe=St(Xe,D," "),Xe=St(Xe,I," ")),d&&X?d.createHTML(Xe):Xe},e.setConfig=function(xe){ke(xe),te=!0},e.clearConfig=function(){Ne=null,te=!1},e.isValidAttribute=function(xe,De,Fe){Ne||ke({});const We=Le(xe),qe=Le(De);return ye(We,qe,Fe)},e.addHook=function(xe,De){typeof De=="function"&&(C[xe]=C[xe]||[],Et(C[xe],De))},e.removeHook=function(xe){if(C[xe])return zt(C[xe])},e.removeHooks=function(xe){C[xe]&&(C[xe]=[])},e.removeAllHooks=function(){C={}},e}var pi=Zt();define("vs/base/browser/dompurify/dompurify",function(){return pi}),define(ie[40],ne([1,0]),function(Q,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.createFastDomNode=e.FastDomNode=void 0;class L{constructor(_){this.domNode=_,this._maxWidth="",this._width="",this._height="",this._top="",this._left="",this._bottom="",this._right="",this._paddingLeft="",this._fontFamily="",this._fontWeight="",this._fontSize="",this._fontStyle="",this._fontFeatureSettings="",this._fontVariationSettings="",this._textDecoration="",this._lineHeight="",this._letterSpacing="",this._className="",this._display="",this._position="",this._visibility="",this._color="",this._backgroundColor="",this._layerHint=!1,this._contain="none",this._boxShadow=""}setMaxWidth(_){const p=k(_);this._maxWidth!==p&&(this._maxWidth=p,this.domNode.style.maxWidth=this._maxWidth)}setWidth(_){const p=k(_);this._width!==p&&(this._width=p,this.domNode.style.width=this._width)}setHeight(_){const p=k(_);this._height!==p&&(this._height=p,this.domNode.style.height=this._height)}setTop(_){const p=k(_);this._top!==p&&(this._top=p,this.domNode.style.top=this._top)}setLeft(_){const p=k(_);this._left!==p&&(this._left=p,this.domNode.style.left=this._left)}setBottom(_){const p=k(_);this._bottom!==p&&(this._bottom=p,this.domNode.style.bottom=this._bottom)}setRight(_){const p=k(_);this._right!==p&&(this._right=p,this.domNode.style.right=this._right)}setPaddingLeft(_){const p=k(_);this._paddingLeft!==p&&(this._paddingLeft=p,this.domNode.style.paddingLeft=this._paddingLeft)}setFontFamily(_){this._fontFamily!==_&&(this._fontFamily=_,this.domNode.style.fontFamily=this._fontFamily)}setFontWeight(_){this._fontWeight!==_&&(this._fontWeight=_,this.domNode.style.fontWeight=this._fontWeight)}setFontSize(_){const p=k(_);this._fontSize!==p&&(this._fontSize=p,this.domNode.style.fontSize=this._fontSize)}setFontStyle(_){this._fontStyle!==_&&(this._fontStyle=_,this.domNode.style.fontStyle=this._fontStyle)}setFontFeatureSettings(_){this._fontFeatureSettings!==_&&(this._fontFeatureSettings=_,this.domNode.style.fontFeatureSettings=this._fontFeatureSettings)}setFontVariationSettings(_){this._fontVariationSettings!==_&&(this._fontVariationSettings=_,this.domNode.style.fontVariationSettings=this._fontVariationSettings)}setTextDecoration(_){this._textDecoration!==_&&(this._textDecoration=_,this.domNode.style.textDecoration=this._textDecoration)}setLineHeight(_){const p=k(_);this._lineHeight!==p&&(this._lineHeight=p,this.domNode.style.lineHeight=this._lineHeight)}setLetterSpacing(_){const p=k(_);this._letterSpacing!==p&&(this._letterSpacing=p,this.domNode.style.letterSpacing=this._letterSpacing)}setClassName(_){this._className!==_&&(this._className=_,this.domNode.className=this._className)}toggleClassName(_,p){this.domNode.classList.toggle(_,p),this._className=this.domNode.className}setDisplay(_){this._display!==_&&(this._display=_,this.domNode.style.display=this._display)}setPosition(_){this._position!==_&&(this._position=_,this.domNode.style.position=this._position)}setVisibility(_){this._visibility!==_&&(this._visibility=_,this.domNode.style.visibility=this._visibility)}setColor(_){this._color!==_&&(this._color=_,this.domNode.style.color=this._color)}setBackgroundColor(_){this._backgroundColor!==_&&(this._backgroundColor=_,this.domNode.style.backgroundColor=this._backgroundColor)}setLayerHinting(_){this._layerHint!==_&&(this._layerHint=_,this.domNode.style.transform=this._layerHint?"translate3d(0px, 0px, 0px)":"")}setBoxShadow(_){this._boxShadow!==_&&(this._boxShadow=_,this.domNode.style.boxShadow=_)}setContain(_){this._contain!==_&&(this._contain=_,this.domNode.style.contain=this._contain)}setAttribute(_,p){this.domNode.setAttribute(_,p)}removeAttribute(_){this.domNode.removeAttribute(_)}appendChild(_){this.domNode.appendChild(_.domNode)}removeChild(_){this.domNode.removeChild(_.domNode)}}e.FastDomNode=L;function k(E){return typeof E=="number"?`${E}px`:E}function y(E){return new L(E)}e.createFastDomNode=y}),define(ie[389],ne([1,0]),function(Q,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.IframeUtils=void 0;const L=new WeakMap;function k(E){if(!E.parent||E.parent===E)return null;try{const _=E.location,p=E.parent.location;if(_.origin!=="null"&&p.origin!=="null"&&_.origin!==p.origin)return null}catch{return null}return E.parent}class y{static getSameOriginWindowChain(_){let p=L.get(_);if(!p){p=[],L.set(_,p);let S=_,v;do v=k(S),v?p.push({window:new WeakRef(S),iframeElement:S.frameElement||null}):p.push({window:new WeakRef(S),iframeElement:null}),S=v;while(S)}return p.slice(0)}static getPositionOfChildWindowRelativeToAncestorWindow(_,p){var S,v;if(!p||_===p)return{top:0,left:0};let b=0,o=0;const i=this.getSameOriginWindowChain(_);for(const n of i){const t=n.window.deref();if(b+=(S=t?.scrollY)!==null&&S!==void 0?S:0,o+=(v=t?.scrollX)!==null&&v!==void 0?v:0,t===p||!n.iframeElement)break;const a=n.iframeElement.getBoundingClientRect();b+=a.top,o+=a.left}return{top:b,left:o}}}e.IframeUtils=y}),define(ie[263],ne([1,0]),function(Q,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.inputLatency=void 0;var L;(function(k){const y={total:0,min:Number.MAX_VALUE,max:0},E={...y},_={...y},p={...y};let S=0;const v={keydown:0,input:0,render:0};function b(){r(),performance.mark("inputlatency/start"),performance.mark("keydown/start"),v.keydown=1,queueMicrotask(o)}k.onKeyDown=b;function o(){v.keydown===1&&(performance.mark("keydown/end"),v.keydown=2)}function i(){performance.mark("input/start"),v.input=1,d()}k.onBeforeInput=i;function n(){v.input===0&&i(),queueMicrotask(t)}k.onInput=n;function t(){v.input===1&&(performance.mark("input/end"),v.input=2)}function a(){r()}k.onKeyUp=a;function u(){r()}k.onSelectionChange=u;function f(){v.keydown===2&&v.input===2&&v.render===0&&(performance.mark("render/start"),v.render=1,queueMicrotask(c),d())}k.onRenderStart=f;function c(){v.render===1&&(performance.mark("render/end"),v.render=2)}function d(){setTimeout(r)}function r(){v.keydown===2&&v.input===2&&v.render===2&&(performance.mark("inputlatency/end"),performance.measure("keydown","keydown/start","keydown/end"),performance.measure("input","input/start","input/end"),performance.measure("render","render/start","render/end"),performance.measure("inputlatency","inputlatency/start","inputlatency/end"),l("keydown",y),l("input",E),l("render",_),l("inputlatency",p),S++,s())}function l(C,w){const D=performance.getEntriesByName(C)[0].duration;w.total+=D,w.min=Math.min(w.min,D),w.max=Math.max(w.max,D)}function s(){performance.clearMarks("keydown/start"),performance.clearMarks("keydown/end"),performance.clearMarks("input/start"),performance.clearMarks("input/end"),performance.clearMarks("render/start"),performance.clearMarks("render/end"),performance.clearMarks("inputlatency/start"),performance.clearMarks("inputlatency/end"),performance.clearMeasures("keydown"),performance.clearMeasures("input"),performance.clearMeasures("render"),performance.clearMeasures("inputlatency"),v.keydown=0,v.input=0,v.render=0}function g(){if(S===0)return;const C={keydown:h(y),input:h(E),render:h(_),total:h(p),sampleCount:S};return m(y),m(E),m(_),m(p),S=0,C}k.getAndClearMeasurements=g;function h(C){return{average:C.total/S,max:C.max,min:C.min}}function m(C){C.total=0,C.min=Number.MAX_VALUE,C.max=0}})(L||(e.inputLatency=L={}))}),define(ie[390],ne([1,0]),function(Q,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ListError=void 0;class L extends Error{constructor(y,E){super(`ListError [${y}] ${E}`)}}e.ListError=L}),define(ie[391],ne([1,0]),function(Q,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.CombinedSpliceable=void 0;class L{constructor(y){this.spliceables=y}splice(y,E,_){this.spliceables.forEach(p=>p.splice(y,E,_))}}e.CombinedSpliceable=L}),define(ie[197],ne([1,0]),function(Q,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ScrollbarState=void 0;const L=20;class k{constructor(E,_,p,S,v,b){this._scrollbarSize=Math.round(_),this._oppositeScrollbarSize=Math.round(p),this._arrowSize=Math.round(E),this._visibleSize=S,this._scrollSize=v,this._scrollPosition=b,this._computedAvailableSize=0,this._computedIsNeeded=!1,this._computedSliderSize=0,this._computedSliderRatio=0,this._computedSliderPosition=0,this._refreshComputedValues()}clone(){return new k(this._arrowSize,this._scrollbarSize,this._oppositeScrollbarSize,this._visibleSize,this._scrollSize,this._scrollPosition)}setVisibleSize(E){const _=Math.round(E);return this._visibleSize!==_?(this._visibleSize=_,this._refreshComputedValues(),!0):!1}setScrollSize(E){const _=Math.round(E);return this._scrollSize!==_?(this._scrollSize=_,this._refreshComputedValues(),!0):!1}setScrollPosition(E){const _=Math.round(E);return this._scrollPosition!==_?(this._scrollPosition=_,this._refreshComputedValues(),!0):!1}setScrollbarSize(E){this._scrollbarSize=Math.round(E)}setOppositeScrollbarSize(E){this._oppositeScrollbarSize=Math.round(E)}static _computeValues(E,_,p,S,v){const b=Math.max(0,p-E),o=Math.max(0,b-2*_),i=S>0&&S>p;if(!i)return{computedAvailableSize:Math.round(b),computedIsNeeded:i,computedSliderSize:Math.round(o),computedSliderRatio:0,computedSliderPosition:0};const n=Math.round(Math.max(L,Math.floor(p*o/S))),t=(o-n)/(S-p),a=v*t;return{computedAvailableSize:Math.round(b),computedIsNeeded:i,computedSliderSize:Math.round(n),computedSliderRatio:t,computedSliderPosition:Math.round(a)}}_refreshComputedValues(){const E=k._computeValues(this._oppositeScrollbarSize,this._arrowSize,this._visibleSize,this._scrollSize,this._scrollPosition);this._computedAvailableSize=E.computedAvailableSize,this._computedIsNeeded=E.computedIsNeeded,this._computedSliderSize=E.computedSliderSize,this._computedSliderRatio=E.computedSliderRatio,this._computedSliderPosition=E.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(E){if(!this._computedIsNeeded)return 0;const _=E-this._arrowSize-this._computedSliderSize/2;return Math.round(_/this._computedSliderRatio)}getDesiredScrollPositionFromOffsetPaged(E){if(!this._computedIsNeeded)return 0;const _=E-this._arrowSize;let p=this._scrollPosition;return _y})}e.ensureCodeWindow=L,e.mainWindow=window,e.$window=e.mainWindow}),define(ie[13],ne([1,0]),function(Q,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.CallbackIterable=e.ArrayQueue=e.reverseOrder=e.booleanComparator=e.numberComparator=e.tieBreakComparators=e.compareBy=e.CompareResult=e.splice=e.insertInto=e.asArray=e.pushMany=e.pushToEnd=e.pushToStart=e.arrayInsert=e.range=e.firstOrDefault=e.distinct=e.isNonEmptyArray=e.isFalsyOrEmpty=e.coalesceInPlace=e.coalesce=e.forEachWithNeighbors=e.forEachAdjacent=e.groupAdjacentBy=e.groupBy=e.quickSelect=e.binarySearch2=e.binarySearch=e.removeFastWithoutKeepingOrder=e.equals=e.tail2=e.tail=void 0;function L(x,R=0){return x[x.length-(1+R)]}e.tail=L;function k(x){if(x.length===0)throw new Error("Invalid tail call");return[x.slice(0,x.length-1),x[x.length-1]]}e.tail2=k;function y(x,R,B=(W,V)=>W===V){if(x===R)return!0;if(!x||!R||x.length!==R.length)return!1;for(let W=0,V=x.length;WB(x[W],R))}e.binarySearch=_;function p(x,R){let B=0,W=x-1;for(;B<=W;){const V=(B+W)/2|0,U=R(V);if(U<0)B=V+1;else if(U>0)W=V-1;else return V}return-(B+1)}e.binarySearch2=p;function S(x,R,B){if(x=x|0,x>=R.length)throw new TypeError("invalid index");const W=R[Math.floor(R.length*Math.random())],V=[],U=[],F=[];for(const j of R){const J=B(j,W);J<0?V.push(j):J>0?U.push(j):F.push(j)}return x!!R)}e.coalesce=n;function t(x){let R=0;for(let B=0;B0}e.isNonEmptyArray=u;function f(x,R=B=>B){const B=new Set;return x.filter(W=>{const V=R(W);return B.has(V)?!1:(B.add(V),!0)})}e.distinct=f;function c(x,R){return x.length>0?x[0]:R}e.firstOrDefault=c;function d(x,R){let B=typeof R=="number"?x:0;typeof R=="number"?B=x:(B=0,R=x);const W=[];if(B<=R)for(let V=B;VR;V--)W.push(V);return W}e.range=d;function r(x,R,B){const W=x.slice(0,R),V=x.slice(R);return W.concat(B,V)}e.arrayInsert=r;function l(x,R){const B=x.indexOf(R);B>-1&&(x.splice(B,1),x.unshift(R))}e.pushToStart=l;function s(x,R){const B=x.indexOf(R);B>-1&&(x.splice(B,1),x.push(R))}e.pushToEnd=s;function g(x,R){for(const B of R)x.push(B)}e.pushMany=g;function h(x){return Array.isArray(x)?x:[x]}e.asArray=h;function m(x,R,B){const W=w(x,R),V=x.length,U=B.length;x.length=V+U;for(let F=V-1;F>=W;F--)x[F+U]=x[F];for(let F=0;F0}x.isGreaterThan=W;function V(U){return U===0}x.isNeitherLessOrGreaterThan=V,x.greaterThan=1,x.lessThan=-1,x.neitherLessOrGreaterThan=0})(D||(e.CompareResult=D={}));function I(x,R){return(B,W)=>R(x(B),x(W))}e.compareBy=I;function M(...x){return(R,B)=>{for(const W of x){const V=W(R,B);if(!D.isNeitherLessOrGreaterThan(V))return V}return D.neitherLessOrGreaterThan}}e.tieBreakComparators=M;const A=(x,R)=>x-R;e.numberComparator=A;const O=(x,R)=>(0,e.numberComparator)(x?1:0,R?1:0);e.booleanComparator=O;function T(x){return(R,B)=>-x(R,B)}e.reverseOrder=T;class N{constructor(R){this.items=R,this.firstIdx=0,this.lastIdx=this.items.length-1}get length(){return this.lastIdx-this.firstIdx+1}takeWhile(R){let B=this.firstIdx;for(;B=0&&R(this.items[B]);)B--;const W=B===this.lastIdx?null:this.items.slice(B+1,this.lastIdx+1);return this.lastIdx=B,W}peek(){if(this.length!==0)return this.items[this.firstIdx]}dequeue(){const R=this.items[this.firstIdx];return this.firstIdx++,R}takeCount(R){const B=this.items.slice(this.firstIdx,this.firstIdx+R);return this.firstIdx+=R,B}}e.ArrayQueue=N;class P{constructor(R){this.iterate=R}toArray(){const R=[];return this.iterate(B=>(R.push(B),!0)),R}filter(R){return new P(B=>this.iterate(W=>R(W)?B(W):!0))}map(R){return new P(B=>this.iterate(W=>B(R(W))))}findLast(R){let B;return this.iterate(W=>(R(W)&&(B=W),!0)),B}findLastMaxBy(R){let B,W=!0;return this.iterate(V=>((W||D.isGreaterThan(R(V,B)))&&(W=!1,B=V),!0)),B}}e.CallbackIterable=P,P.empty=new P(x=>{})}),define(ie[60],ne([1,0]),function(Q,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.mapFindFirst=e.findMaxIdxBy=e.findFirstMinBy=e.findLastMaxBy=e.findFirstMaxBy=e.MonotonousArray=e.findFirstIdxMonotonousOrArrLen=e.findFirstMonotonous=e.findLastIdxMonotonous=e.findLastMonotonous=e.findLastIdx=e.findLast=void 0;function L(t,a,u){const f=k(t,a);if(f!==-1)return t[f]}e.findLast=L;function k(t,a,u=t.length-1){for(let f=u;f>=0;f--){const c=t[f];if(a(c))return f}return-1}e.findLastIdx=k;function y(t,a){const u=E(t,a);return u===-1?void 0:t[u]}e.findLastMonotonous=y;function E(t,a,u=0,f=t.length){let c=u,d=f;for(;c0&&(u=c)}return u}e.findFirstMaxBy=v;function b(t,a){if(t.length===0)return;let u=t[0];for(let f=1;f=0&&(u=c)}return u}e.findLastMaxBy=b;function o(t,a){return v(t,(u,f)=>-a(u,f))}e.findFirstMinBy=o;function i(t,a){if(t.length===0)return-1;let u=0;for(let f=1;f0&&(u=f)}return u}e.findMaxIdxBy=i;function n(t,a){for(const u of t){const f=a(u);if(f!==void 0)return f}}e.mapFindFirst=n}),define(ie[264],ne([1,0]),function(Q,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.CachedFunction=e.LRUCachedFunction=void 0;class L{constructor(E){this.fn=E,this.lastCache=void 0,this.lastArgKey=void 0}get(E){const _=JSON.stringify(E);return this.lastArgKey!==_&&(this.lastArgKey=_,this.lastCache=this.fn(E)),this.lastCache}}e.LRUCachedFunction=L;class k{get cachedValues(){return this._map}constructor(E){this.fn=E,this._map=new Map}get(E){if(this._map.has(E))return this._map.get(E);const _=this.fn(E);return this._map.set(E,_),_}}e.CachedFunction=k}),define(ie[265],ne([1,0]),function(Q,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.intersection=e.diffSets=void 0;function L(y,E){const _=[],p=[];for(const S of y)E.has(S)||_.push(S);for(const S of E)y.has(S)||p.push(S);return{removed:_,added:p}}e.diffSets=L;function k(y,E){const _=new Set;for(const p of E)y.has(p)&&_.add(p);return _}e.intersection=k}),define(ie[38],ne([1,0]),function(Q,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Color=e.HSVA=e.HSLA=e.RGBA=void 0;function L(p,S){const v=Math.pow(10,S);return Math.round(p*v)/v}class k{constructor(S,v,b,o=1){this._rgbaBrand=void 0,this.r=Math.min(255,Math.max(0,S))|0,this.g=Math.min(255,Math.max(0,v))|0,this.b=Math.min(255,Math.max(0,b))|0,this.a=L(Math.max(Math.min(1,o),0),3)}static equals(S,v){return S.r===v.r&&S.g===v.g&&S.b===v.b&&S.a===v.a}}e.RGBA=k;class y{constructor(S,v,b,o){this._hslaBrand=void 0,this.h=Math.max(Math.min(360,S),0)|0,this.s=L(Math.max(Math.min(1,v),0),3),this.l=L(Math.max(Math.min(1,b),0),3),this.a=L(Math.max(Math.min(1,o),0),3)}static equals(S,v){return S.h===v.h&&S.s===v.s&&S.l===v.l&&S.a===v.a}static fromRGBA(S){const v=S.r/255,b=S.g/255,o=S.b/255,i=S.a,n=Math.max(v,b,o),t=Math.min(v,b,o);let a=0,u=0;const f=(t+n)/2,c=n-t;if(c>0){switch(u=Math.min(f<=.5?c/(2*f):c/(2-2*f),1),n){case v:a=(b-o)/c+(b1&&(b-=1),b<1/6?S+(v-S)*6*b:b<1/2?v:b<2/3?S+(v-S)*(2/3-b)*6:S}static toRGBA(S){const v=S.h/360,{s:b,l:o,a:i}=S;let n,t,a;if(b===0)n=t=a=o;else{const u=o<.5?o*(1+b):o+b-o*b,f=2*o-u;n=y._hue2rgb(f,u,v+1/3),t=y._hue2rgb(f,u,v),a=y._hue2rgb(f,u,v-1/3)}return new k(Math.round(n*255),Math.round(t*255),Math.round(a*255),i)}}e.HSLA=y;class E{constructor(S,v,b,o){this._hsvaBrand=void 0,this.h=Math.max(Math.min(360,S),0)|0,this.s=L(Math.max(Math.min(1,v),0),3),this.v=L(Math.max(Math.min(1,b),0),3),this.a=L(Math.max(Math.min(1,o),0),3)}static equals(S,v){return S.h===v.h&&S.s===v.s&&S.v===v.v&&S.a===v.a}static fromRGBA(S){const v=S.r/255,b=S.g/255,o=S.b/255,i=Math.max(v,b,o),n=Math.min(v,b,o),t=i-n,a=i===0?0:t/i;let u;return t===0?u=0:i===v?u=((b-o)/t%6+6)%6:i===b?u=(o-v)/t+2:u=(v-b)/t+4,new E(Math.round(u*60),a,i,S.a)}static toRGBA(S){const{h:v,s:b,v:o,a:i}=S,n=o*b,t=n*(1-Math.abs(v/60%2-1)),a=o-n;let[u,f,c]=[0,0,0];return v<60?(u=n,f=t):v<120?(u=t,f=n):v<180?(f=n,c=t):v<240?(f=t,c=n):v<300?(u=t,c=n):v<=360&&(u=n,c=t),u=Math.round((u+a)*255),f=Math.round((f+a)*255),c=Math.round((c+a)*255),new k(u,f,c,i)}}e.HSVA=E;class _{static fromHex(S){return _.Format.CSS.parseHex(S)||_.red}static equals(S,v){return!S&&!v?!0:!S||!v?!1:S.equals(v)}get hsla(){return this._hsla?this._hsla:y.fromRGBA(this.rgba)}get hsva(){return this._hsva?this._hsva:E.fromRGBA(this.rgba)}constructor(S){if(S)if(S instanceof k)this.rgba=S;else if(S instanceof y)this._hsla=S,this.rgba=y.toRGBA(S);else if(S instanceof E)this._hsva=S,this.rgba=E.toRGBA(S);else throw new Error("Invalid color ctor argument");else throw new Error("Color needs a value")}equals(S){return!!S&&k.equals(this.rgba,S.rgba)&&y.equals(this.hsla,S.hsla)&&E.equals(this.hsva,S.hsva)}getRelativeLuminance(){const S=_._relativeLuminanceForComponent(this.rgba.r),v=_._relativeLuminanceForComponent(this.rgba.g),b=_._relativeLuminanceForComponent(this.rgba.b),o=.2126*S+.7152*v+.0722*b;return L(o,4)}static _relativeLuminanceForComponent(S){const v=S/255;return v<=.03928?v/12.92:Math.pow((v+.055)/1.055,2.4)}isLighter(){return(this.rgba.r*299+this.rgba.g*587+this.rgba.b*114)/1e3>=128}isLighterThan(S){const v=this.getRelativeLuminance(),b=S.getRelativeLuminance();return v>b}isDarkerThan(S){const v=this.getRelativeLuminance(),b=S.getRelativeLuminance();return v{throw u.stack?n.isErrorNoTelemetry(u)?new n(u.message+`
`+u.stack):new Error(u.message+`
`+u.stack):u},0)}}emit(u){this.listeners.forEach(f=>{f(u)})}onUnexpectedError(u){this.unexpectedErrorHandler(u),this.emit(u)}onUnexpectedExternalError(u){this.unexpectedErrorHandler(u)}}e.ErrorHandler=L,e.errorHandler=new L;function k(a){p(a)||e.errorHandler.onUnexpectedError(a)}e.onUnexpectedError=k;function y(a){p(a)||e.errorHandler.onUnexpectedExternalError(a)}e.onUnexpectedExternalError=y;function E(a){if(a instanceof Error){const{name:u,message:f}=a,c=a.stacktrace||a.stack;return{$isError:!0,name:u,message:f,stack:c,noTelemetry:n.isErrorNoTelemetry(a)}}return a}e.transformErrorForSerialization=E;const _="Canceled";function p(a){return a instanceof S?!0:a instanceof Error&&a.name===_&&a.message===_}e.isCancellationError=p;class S extends Error{constructor(){super(_),this.name=this.message}}e.CancellationError=S;function v(){const a=new Error(_);return a.name=a.message,a}e.canceled=v;function b(a){return a?new Error(`Illegal argument: ${a}`):new Error("Illegal argument")}e.illegalArgument=b;function o(a){return a?new Error(`Illegal state: ${a}`):new Error("Illegal state")}e.illegalState=o;class i extends Error{constructor(u){super("NotSupported"),u&&(this.message=u)}}e.NotSupportedError=i;class n extends Error{constructor(u){super(u),this.name="CodeExpectedError"}static fromError(u){if(u instanceof n)return u;const f=new n;return f.message=u.message,f.stack=u.stack,f}static isErrorNoTelemetry(u){return u.name==="CodeExpectedError"}}e.ErrorNoTelemetry=n;class t extends Error{constructor(u){super(u||"An unexpected bug occurred."),Object.setPrototypeOf(this,t.prototype)}}e.BugIndicatingError=t}),define(ie[92],ne([1,0,48,9]),function(Q,e,L,k){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.createTrustedTypesPolicy=void 0;function y(E,_){var p;const S=globalThis.MonacoEnvironment;if(S?.createTrustedTypesPolicy)try{return S.createTrustedTypesPolicy(E,_)}catch(v){(0,k.onUnexpectedError)(v);return}try{return(p=L.mainWindow.trustedTypes)===null||p===void 0?void 0:p.createPolicy(E,_)}catch(v){(0,k.onUnexpectedError)(v);return}}e.createTrustedTypesPolicy=y}),define(ie[98],ne([1,0,9]),function(Q,e,L){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.checkAdjacentItems=e.assertFn=e.assertNever=e.ok=void 0;function k(p,S){if(!p)throw new Error(S?`Assertion failed (${S})`:"Assertion Failed")}e.ok=k;function y(p,S="Unreachable"){throw new Error(S)}e.assertNever=y;function E(p){if(!p()){debugger;p(),(0,L.onUnexpectedError)(new L.BugIndicatingError("Assertion Failed"))}}e.assertFn=E;function _(p,S){let v=0;for(;v=0;s--)yield l[s]}k.reverse=b;function o(l){return!l||l[Symbol.iterator]().next().done===!0}k.isEmpty=o;function i(l){return l[Symbol.iterator]().next().value}k.first=i;function n(l,s){for(const g of l)if(s(g))return!0;return!1}k.some=n;function t(l,s){for(const g of l)if(s(g))return g}k.find=t;function*a(l,s){for(const g of l)s(g)&&(yield g)}k.filter=a;function*u(l,s){let g=0;for(const h of l)yield s(h,g++)}k.map=u;function*f(...l){for(const s of l)yield*s}k.concat=f;function c(l,s,g){let h=g;for(const m of l)h=s(h,m);return h}k.reduce=c;function*d(l,s,g=l.length){for(s<0&&(s+=l.length),g<0?g+=l.length:g>l.length&&(g=l.length);s=98&&c<=113)return null;switch(c){case 16:return"Up";case 18:return"Down";case 15:return"Left";case 17:return"Right"}return k.keyCodeToStr(c)}o.toElectronAccelerator=f})(v||(e.KeyCodeUtils=v={}));function b(o,i){const n=(i&65535)<<16>>>0;return(o|n)>>>0}e.KeyChord=b}),define(ie[121],ne([1,0,9]),function(Q,e,L){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ResolvedKeybinding=e.ResolvedChord=e.Keybinding=e.ScanCodeChord=e.KeyCodeChord=e.createSimpleKeybinding=e.decodeKeybinding=void 0;function k(b,o){if(typeof b=="number"){if(b===0)return null;const i=(b&65535)>>>0,n=(b&4294901760)>>>16;return n!==0?new p([y(i,o),y(n,o)]):new p([y(i,o)])}else{const i=[];for(let n=0;nnew Uint8Array(256));let E;class _{static wrap(t){return k&&!Buffer.isBuffer(t)&&(t=Buffer.from(t.buffer,t.byteOffset,t.byteLength)),new _(t)}constructor(t){this.buffer=t,this.byteLength=this.buffer.byteLength}toString(){return k?this.buffer.toString():(E||(E=new TextDecoder),E.decode(this.buffer))}}e.VSBuffer=_;function p(n,t){return n[t+0]<<0>>>0|n[t+1]<<8>>>0}e.readUInt16LE=p;function S(n,t,a){n[a+0]=t&255,t=t>>>8,n[a+1]=t&255}e.writeUInt16LE=S;function v(n,t){return n[t]*2**24+n[t+1]*2**16+n[t+2]*2**8+n[t+3]}e.readUInt32BE=v;function b(n,t,a){n[a+3]=t,t=t>>>8,n[a+2]=t,t=t>>>8,n[a+1]=t,t=t>>>8,n[a]=t}e.writeUInt32BE=b;function o(n,t){return n[t]}e.readUInt8=o;function i(n,t,a){n[a]=t}e.writeUInt8=i}),define(ie[393],ne([1,0,99]),function(Q,e,L){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.compareByPrefix=e.compareAnything=e.compareFileNames=void 0;const k=new L.Lazy(()=>{const v=new Intl.Collator(void 0,{numeric:!0,sensitivity:"base"});return{collator:v,collatorIsNumeric:v.resolvedOptions().numeric}}),y=new L.Lazy(()=>({collator:new Intl.Collator(void 0,{numeric:!0})})),E=new L.Lazy(()=>({collator:new Intl.Collator(void 0,{numeric:!0,sensitivity:"accent"})}));function _(v,b,o=!1){const i=v||"",n=b||"",t=k.value.collator.compare(i,n);return k.value.collatorIsNumeric&&t===0&&i!==n?in.length)return 1}return 0}e.compareByPrefix=S}),define(ie[2],ne([1,0,107,49]),function(Q,e,L,k){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.DisposableMap=e.ImmortalReference=e.RefCountedDisposable=e.MutableDisposable=e.Disposable=e.DisposableStore=e.toDisposable=e.combinedDisposable=e.dispose=e.isDisposable=e.markAsSingleton=e.markAsDisposed=e.trackDisposable=e.setDisposableTracker=void 0;const y=!1;let E=null;function _(s){E=s}if(e.setDisposableTracker=_,y){const s="__is_disposable_tracked__";_(new class{trackDisposable(g){const h=new Error("Potentially leaked disposable").stack;setTimeout(()=>{g[s]||console.log(h)},3e3)}setParent(g,h){if(g&&g!==f.None)try{g[s]=!0}catch{}}markAsDisposed(g){if(g&&g!==f.None)try{g[s]=!0}catch{}}markAsSingleton(g){}})}function p(s){return E?.trackDisposable(s),s}e.trackDisposable=p;function S(s){E?.markAsDisposed(s)}e.markAsDisposed=S;function v(s,g){E?.setParent(s,g)}function b(s,g){if(E)for(const h of s)E.setParent(h,g)}function o(s){return E?.markAsSingleton(s),s}e.markAsSingleton=o;function i(s){return typeof s.dispose=="function"&&s.dispose.length===0}e.isDisposable=i;function n(s){if(k.Iterable.is(s)){const g=[];for(const h of s)if(h)try{h.dispose()}catch(m){g.push(m)}if(g.length===1)throw g[0];if(g.length>1)throw new AggregateError(g,"Encountered errors while disposing of store");return Array.isArray(s)?[]:s}else if(s)return s.dispose(),s}e.dispose=n;function t(...s){const g=a(()=>n(s));return b(s,g),g}e.combinedDisposable=t;function a(s){const g=p({dispose:(0,L.createSingleCallFunction)(()=>{S(g),s()})});return g}e.toDisposable=a;class u{constructor(){this._toDispose=new Set,this._isDisposed=!1,p(this)}dispose(){this._isDisposed||(S(this),this._isDisposed=!0,this.clear())}get isDisposed(){return this._isDisposed}clear(){if(this._toDispose.size!==0)try{n(this._toDispose)}finally{this._toDispose.clear()}}add(g){if(!g)return g;if(g===this)throw new Error("Cannot register a disposable on itself!");return v(g,this),this._isDisposed?u.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(g),g}deleteAndLeak(g){g&&this._toDispose.has(g)&&(this._toDispose.delete(g),v(g,null))}}e.DisposableStore=u,u.DISABLE_DISPOSED_WARNING=!1;class f{constructor(){this._store=new u,p(this),v(this._store,this)}dispose(){S(this),this._store.dispose()}_register(g){if(g===this)throw new Error("Cannot register a disposable on itself!");return this._store.add(g)}}e.Disposable=f,f.None=Object.freeze({dispose(){}});class c{constructor(){this._isDisposed=!1,p(this)}get value(){return this._isDisposed?void 0:this._value}set value(g){var h;this._isDisposed||g===this._value||((h=this._value)===null||h===void 0||h.dispose(),g&&v(g,this),this._value=g)}clear(){this.value=void 0}dispose(){var g;this._isDisposed=!0,S(this),(g=this._value)===null||g===void 0||g.dispose(),this._value=void 0}}e.MutableDisposable=c;class d{constructor(g){this._disposable=g,this._counter=1}acquire(){return this._counter++,this}release(){return--this._counter===0&&this._disposable.dispose(),this}}e.RefCountedDisposable=d;class r{constructor(g){this.object=g}dispose(){}}e.ImmortalReference=r;class l{constructor(){this._store=new Map,this._isDisposed=!1,p(this)}dispose(){S(this),this._isDisposed=!0,this.clearAndDisposeAll()}clearAndDisposeAll(){if(this._store.size)try{n(this._store.values())}finally{this._store.clear()}}get(g){return this._store.get(g)}set(g,h,m=!1){var C;this._isDisposed&&console.warn(new Error("Trying to add a disposable to a DisposableMap that has already been disposed of. The added object will be leaked!").stack),m||(C=this._store.get(g))===null||C===void 0||C.dispose(),this._store.set(g,h)}deleteAndDispose(g){var h;(h=this._store.get(g))===null||h===void 0||h.dispose(),this._store.delete(g)}[Symbol.iterator](){return this._store[Symbol.iterator]()}}e.DisposableMap=l}),define(ie[66],ne([1,0]),function(Q,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.LinkedList=void 0;class L{constructor(E){this.element=E,this.next=L.Undefined,this.prev=L.Undefined}}L.Undefined=new L(void 0);class k{constructor(){this._first=L.Undefined,this._last=L.Undefined,this._size=0}get size(){return this._size}isEmpty(){return this._first===L.Undefined}clear(){let E=this._first;for(;E!==L.Undefined;){const _=E.next;E.prev=L.Undefined,E.next=L.Undefined,E=_}this._first=L.Undefined,this._last=L.Undefined,this._size=0}unshift(E){return this._insert(E,!1)}push(E){return this._insert(E,!0)}_insert(E,_){const p=new L(E);if(this._first===L.Undefined)this._first=p,this._last=p;else if(_){const v=this._last;this._last=p,p.prev=v,v.next=p}else{const v=this._first;this._first=p,p.next=v,v.prev=p}this._size+=1;let S=!1;return()=>{S||(S=!0,this._remove(p))}}shift(){if(this._first!==L.Undefined){const E=this._first.element;return this._remove(this._first),E}}pop(){if(this._last!==L.Undefined){const E=this._last.element;return this._remove(this._last),E}}_remove(E){if(E.prev!==L.Undefined&&E.next!==L.Undefined){const _=E.prev;_.next=E.next,E.next.prev=_}else E.prev===L.Undefined&&E.next===L.Undefined?(this._first=L.Undefined,this._last=L.Undefined):E.next===L.Undefined?(this._last=this._last.prev,this._last.next=L.Undefined):E.prev===L.Undefined&&(this._first=this._first.next,this._first.prev=L.Undefined);this._size-=1}*[Symbol.iterator](){let E=this._first;for(;E!==L.Undefined;)yield E.element,E=E.next}}e.LinkedList=k});var Ee=this&&this.__decorate||function(Q,e,L,k){var y=arguments.length,E=y<3?e:k===null?k=Object.getOwnPropertyDescriptor(e,L):k,_;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")E=Reflect.decorate(Q,e,L,k);else for(var p=Q.length-1;p>=0;p--)(_=Q[p])&&(E=(y<3?_(E):y>3?_(e,L,E):_(e,L))||E);return y>3&&E&&Object.defineProperty(e,L,E),E};define(ie[394],ne([1,0,106]),function(Q,e,L){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.parseLinkedText=e.LinkedText=void 0;class k{constructor(p){this.nodes=p}toString(){return this.nodes.map(p=>typeof p=="string"?p:p.label).join("")}}e.LinkedText=k,Ee([L.memoize],k.prototype,"toString",null);const y=/\[([^\]]+)\]\(((?:https?:\/\/|command:|file:)[^\)\s]+)(?: (["'])(.+?)(\3))?\)/gi;function E(_){const p=[];let S=0,v;for(;v=y.exec(_);){v.index-S>0&&p.push(_.substring(S,v.index));const[,b,o,,i]=v;i?p.push({label:b,href:o,title:i}):p.push({label:b,href:o}),S=v.index+v[0].length}return S<_.length&&p.push(_.substring(S)),new k(p)}e.parseLinkedText=E}),define(ie[53],ne([1,0]),function(Q,e){"use strict";var L,k;Object.defineProperty(e,"__esModule",{value:!0}),e.SetMap=e.BidirectionalMap=e.LRUCache=e.LinkedMap=e.ResourceMap=void 0;class y{constructor(i,n){this.uri=i,this.value=n}}function E(o){return Array.isArray(o)}class _{constructor(i,n){if(this[L]="ResourceMap",i instanceof _)this.map=new Map(i.map),this.toKey=n??_.defaultToKey;else if(E(i)){this.map=new Map,this.toKey=n??_.defaultToKey;for(const[t,a]of i)this.set(t,a)}else this.map=new Map,this.toKey=i??_.defaultToKey}set(i,n){return this.map.set(this.toKey(i),new y(i,n)),this}get(i){var n;return(n=this.map.get(this.toKey(i)))===null||n===void 0?void 0:n.value}has(i){return this.map.has(this.toKey(i))}get size(){return this.map.size}clear(){this.map.clear()}delete(i){return this.map.delete(this.toKey(i))}forEach(i,n){typeof n<"u"&&(i=i.bind(n));for(const[t,a]of this.map)i(a.value,a.uri,this)}*values(){for(const i of this.map.values())yield i.value}*keys(){for(const i of this.map.values())yield i.uri}*entries(){for(const i of this.map.values())yield[i.uri,i.value]}*[(L=Symbol.toStringTag,Symbol.iterator)](){for(const[,i]of this.map)yield[i.uri,i.value]}}e.ResourceMap=_,_.defaultToKey=o=>o.toString();class p{constructor(){this[k]="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 i;return(i=this._head)===null||i===void 0?void 0:i.value}get last(){var i;return(i=this._tail)===null||i===void 0?void 0:i.value}has(i){return this._map.has(i)}get(i,n=0){const t=this._map.get(i);if(t)return n!==0&&this.touch(t,n),t.value}set(i,n,t=0){let a=this._map.get(i);if(a)a.value=n,t!==0&&this.touch(a,t);else{switch(a={key:i,value:n,next:void 0,previous:void 0},t){case 0:this.addItemLast(a);break;case 1:this.addItemFirst(a);break;case 2:this.addItemLast(a);break;default:this.addItemLast(a);break}this._map.set(i,a),this._size++}return this}delete(i){return!!this.remove(i)}remove(i){const n=this._map.get(i);if(n)return this._map.delete(i),this.removeItem(n),this._size--,n.value}shift(){if(!this._head&&!this._tail)return;if(!this._head||!this._tail)throw new Error("Invalid list");const i=this._head;return this._map.delete(i.key),this.removeItem(i),this._size--,i.value}forEach(i,n){const t=this._state;let a=this._head;for(;a;){if(n?i.bind(n)(a.value,a.key,this):i(a.value,a.key,this),this._state!==t)throw new Error("LinkedMap got modified during iteration.");a=a.next}}keys(){const i=this,n=this._state;let t=this._head;const a={[Symbol.iterator](){return a},next(){if(i._state!==n)throw new Error("LinkedMap got modified during iteration.");if(t){const u={value:t.key,done:!1};return t=t.next,u}else return{value:void 0,done:!0}}};return a}values(){const i=this,n=this._state;let t=this._head;const a={[Symbol.iterator](){return a},next(){if(i._state!==n)throw new Error("LinkedMap got modified during iteration.");if(t){const u={value:t.value,done:!1};return t=t.next,u}else return{value:void 0,done:!0}}};return a}entries(){const i=this,n=this._state;let t=this._head;const a={[Symbol.iterator](){return a},next(){if(i._state!==n)throw new Error("LinkedMap got modified during iteration.");if(t){const u={value:[t.key,t.value],done:!1};return t=t.next,u}else return{value:void 0,done:!0}}};return a}[(k=Symbol.toStringTag,Symbol.iterator)](){return this.entries()}trimOld(i){if(i>=this.size)return;if(i===0){this.clear();return}let n=this._head,t=this.size;for(;n&&t>i;)this._map.delete(n.key),n=n.next,t--;this._head=n,this._size=t,n&&(n.previous=void 0),this._state++}addItemFirst(i){if(!this._head&&!this._tail)this._tail=i;else if(this._head)i.next=this._head,this._head.previous=i;else throw new Error("Invalid list");this._head=i,this._state++}addItemLast(i){if(!this._head&&!this._tail)this._head=i;else if(this._tail)i.previous=this._tail,this._tail.next=i;else throw new Error("Invalid list");this._tail=i,this._state++}removeItem(i){if(i===this._head&&i===this._tail)this._head=void 0,this._tail=void 0;else if(i===this._head){if(!i.next)throw new Error("Invalid list");i.next.previous=void 0,this._head=i.next}else if(i===this._tail){if(!i.previous)throw new Error("Invalid list");i.previous.next=void 0,this._tail=i.previous}else{const n=i.next,t=i.previous;if(!n||!t)throw new Error("Invalid list");n.previous=t,t.next=n}i.next=void 0,i.previous=void 0,this._state++}touch(i,n){if(!this._head||!this._tail)throw new Error("Invalid list");if(!(n!==1&&n!==2)){if(n===1){if(i===this._head)return;const t=i.next,a=i.previous;i===this._tail?(a.next=void 0,this._tail=a):(t.previous=a,a.next=t),i.previous=void 0,i.next=this._head,this._head.previous=i,this._head=i,this._state++}else if(n===2){if(i===this._tail)return;const t=i.next,a=i.previous;i===this._head?(t.previous=void 0,this._head=t):(t.previous=a,a.next=t),i.next=void 0,i.previous=this._tail,this._tail.next=i,this._tail=i,this._state++}}}toJSON(){const i=[];return this.forEach((n,t)=>{i.push([t,n])}),i}fromJSON(i){this.clear();for(const[n,t]of i)this.set(n,t)}}e.LinkedMap=p;class S extends p{constructor(i,n=1){super(),this._limit=i,this._ratio=Math.min(Math.max(0,n),1)}get limit(){return this._limit}set limit(i){this._limit=i,this.checkTrim()}get(i,n=2){return super.get(i,n)}peek(i){return super.get(i,0)}set(i,n){return super.set(i,n,2),this.checkTrim(),this}checkTrim(){this.size>this._limit&&this.trimOld(Math.round(this._limit*this._ratio))}}e.LRUCache=S;class v{constructor(i){if(this._m1=new Map,this._m2=new Map,i)for(const[n,t]of i)this.set(n,t)}clear(){this._m1.clear(),this._m2.clear()}set(i,n){this._m1.set(i,n),this._m2.set(n,i)}get(i){return this._m1.get(i)}getKey(i){return this._m2.get(i)}delete(i){const n=this._m1.get(i);return n===void 0?!1:(this._m1.delete(i),this._m2.delete(n),!0)}keys(){return this._m1.keys()}values(){return this._m1.values()}}e.BidirectionalMap=v;class b{constructor(){this.map=new Map}add(i,n){let t=this.map.get(i);t||(t=new Set,this.map.set(i,t)),t.add(n)}delete(i,n){const t=this.map.get(i);t&&(t.delete(n),t.size===0&&this.map.delete(i))}forEach(i,n){const t=this.map.get(i);t&&t.forEach(n)}get(i){const n=this.map.get(i);return n||new Set}}e.SetMap=b}),function(Q,e){typeof define=="function"&&define.amd?define(ie[395],ne([0]),e):typeof exports=="object"&&typeof module<"u"?e(exports):(Q=typeof globalThis<"u"?globalThis:Q||self,e(Q.marked={}))}(this,function(Q){"use strict";function e(oe,Y){for(var K=0;Koe.length)&&(Y=oe.length);for(var K=0,H=new Array(Y);K=oe.length?{done:!0}:{done:!1,value:oe[H++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function _(){return{async:!1,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}}Q.defaults=_();function p(oe){Q.defaults=oe}var S=/[&<>"']/,v=/[&<>"']/g,b=/[<>"']|&(?!#?\w+;)/,o=/[<>"']|&(?!#?\w+;)/g,i={"&":"&","<":"<",">":">",'"':""","'":"'"},n=function(Y){return i[Y]};function t(oe,Y){if(Y){if(S.test(oe))return oe.replace(v,n)}else if(b.test(oe))return oe.replace(o,n);return oe}var a=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig;function u(oe){return oe.replace(a,function(Y,K){return K=K.toLowerCase(),K==="colon"?":":K.charAt(0)==="#"?K.charAt(1)==="x"?String.fromCharCode(parseInt(K.substring(2),16)):String.fromCharCode(+K.substring(1)):""})}var f=/(^|[^\[])\^/g;function c(oe,Y){oe=typeof oe=="string"?oe:oe.source,Y=Y||"";var K={replace:function(z,se){return se=se.source||se,se=se.replace(f,"$1"),oe=oe.replace(z,se),K},getRegex:function(){return new RegExp(oe,Y)}};return K}var d=/[^\w:]/g,r=/^$|^[a-z][a-z0-9+.-]*:|^[?#]/i;function l(oe,Y,K){if(oe){var H;try{H=decodeURIComponent(u(K)).replace(d,"").toLowerCase()}catch{return null}if(H.indexOf("javascript:")===0||H.indexOf("vbscript:")===0||H.indexOf("data:")===0)return null}Y&&!r.test(K)&&(K=C(Y,K));try{K=encodeURI(K).replace(/%25/g,"%")}catch{return null}return K}var s={},g=/^[^:]+:\/*[^/]*$/,h=/^([^:]+:)[\s\S]*$/,m=/^([^:]+:\/*[^/]*)[\s\S]*$/;function C(oe,Y){s[" "+oe]||(g.test(oe)?s[" "+oe]=oe+"/":s[" "+oe]=M(oe,"/",!0)),oe=s[" "+oe];var K=oe.indexOf(":")===-1;return Y.substring(0,2)==="//"?K?Y:oe.replace(h,"$1")+Y:Y.charAt(0)==="/"?K?Y:oe.replace(m,"$1")+Y:oe+Y}var w={exec:function(){}};function D(oe){for(var Y=1,K,H;Y=0&&ae[ge]==="\\";)ce=!ce;return ce?"|":" |"}),H=K.split(/ \|/),z=0;if(H[0].trim()||H.shift(),H.length>0&&!H[H.length-1].trim()&&H.pop(),H.length>Y)H.splice(Y);else for(;H.length1;)Y&1&&(K+=oe),Y>>=1,oe+=oe;return K+oe}function N(oe,Y,K,H){var z=Y.href,se=Y.title?t(Y.title):null,q=oe[1].replace(/\\([\[\]])/g,"$1");if(oe[0].charAt(0)!=="!"){H.state.inLink=!0;var ae={type:"link",raw:K,href:z,title:se,text:q,tokens:H.inlineTokens(q)};return H.state.inLink=!1,ae}return{type:"image",raw:K,href:z,title:se,text:t(q)}}function P(oe,Y){var K=oe.match(/^(\s+)(?:```)/);if(K===null)return Y;var H=K[1];return Y.split(`
`).map(function(z){var se=z.match(/^\s+/);if(se===null)return z;var q=se[0];return q.length>=H.length?z.slice(H.length):z}).join(`
`)}var x=function(){function oe(K){this.options=K||Q.defaults}var Y=oe.prototype;return Y.space=function(H){var z=this.rules.block.newline.exec(H);if(z&&z[0].length>0)return{type:"space",raw:z[0]}},Y.code=function(H){var z=this.rules.block.code.exec(H);if(z){var se=z[0].replace(/^ {1,4}/gm,"");return{type:"code",raw:z[0],codeBlockStyle:"indented",text:this.options.pedantic?se:M(se,`
`)}}},Y.fences=function(H){var z=this.rules.block.fences.exec(H);if(z){var se=z[0],q=P(se,z[3]||"");return{type:"code",raw:se,lang:z[2]?z[2].trim():z[2],text:q}}},Y.heading=function(H){var z=this.rules.block.heading.exec(H);if(z){var se=z[2].trim();if(/#$/.test(se)){var q=M(se,"#");(this.options.pedantic||!q||/ $/.test(q))&&(se=q.trim())}return{type:"heading",raw:z[0],depth:z[1].length,text:se,tokens:this.lexer.inline(se)}}},Y.hr=function(H){var z=this.rules.block.hr.exec(H);if(z)return{type:"hr",raw:z[0]}},Y.blockquote=function(H){var z=this.rules.block.blockquote.exec(H);if(z){var se=z[0].replace(/^ *>[ \t]?/gm,"");return{type:"blockquote",raw:z[0],tokens:this.lexer.blockTokens(se,[]),text:se}}},Y.list=function(H){var z=this.rules.block.list.exec(H);if(z){var se,q,ae,ce,ge,pe,me,ve,Ce,Se,_e,Te,Me=z[1].trim(),Pe=Me.length>1,Be={type:"list",raw:"",ordered:Pe,start:Pe?+Me.slice(0,-1):"",loose:!1,items:[]};Me=Pe?"\\d{1,9}\\"+Me.slice(-1):"\\"+Me,this.options.pedantic&&(Me=Pe?Me:"[*+-]");for(var Le=new RegExp("^( {0,3}"+Me+")((?:[ ][^\\n]*)?(?:\\n|$))");H&&(Te=!1,!(!(z=Le.exec(H))||this.rules.block.hr.test(H)));){if(se=z[0],H=H.substring(se.length),ve=z[2].split(`
`,1)[0],Ce=H.split(`
`,1)[0],this.options.pedantic?(ce=2,_e=ve.trimLeft()):(ce=z[2].search(/[^ ]/),ce=ce>4?1:ce,_e=ve.slice(ce),ce+=z[1].length),pe=!1,!ve&&/^ *$/.test(Ce)&&(se+=Ce+`
`,H=H.substring(Ce.length+1),Te=!0),!Te)for(var Ne=new RegExp("^ {0,"+Math.min(3,ce-1)+"}(?:[*+-]|\\d{1,9}[.)])((?: [^\\n]*)?(?:\\n|$))"),fe=new RegExp("^ {0,"+Math.min(3,ce-1)+"}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)"),be=new RegExp("^ {0,"+Math.min(3,ce-1)+"}(?:```|~~~)"),ke=new RegExp("^ {0,"+Math.min(3,ce-1)+"}#");H&&(Se=H.split(`
`,1)[0],ve=Se,this.options.pedantic&&(ve=ve.replace(/^ {1,4}(?=( {4})*[^ ])/g," ")),!(be.test(ve)||ke.test(ve)||Ne.test(ve)||fe.test(H)));){if(ve.search(/[^ ]/)>=ce||!ve.trim())_e+=`
`+ve.slice(ce);else if(!pe)_e+=`
`+ve;else break;!pe&&!ve.trim()&&(pe=!0),se+=Se+`
`,H=H.substring(Se.length+1)}Be.loose||(me?Be.loose=!0:/\n *\n *$/.test(se)&&(me=!0)),this.options.gfm&&(q=/^\[[ xX]\] /.exec(_e),q&&(ae=q[0]!=="[ ] ",_e=_e.replace(/^\[[ xX]\] +/,""))),Be.items.push({type:"list_item",raw:se,task:!!q,checked:ae,loose:!1,text:_e}),Be.raw+=se}Be.items[Be.items.length-1].raw=se.trimRight(),Be.items[Be.items.length-1].text=_e.trimRight(),Be.raw=Be.raw.trimRight();var Re=Be.items.length;for(ge=0;ge1)return!0}return!1});!Be.loose&&Ve.length&&Ke&&(Be.loose=!0,Be.items[ge].loose=!0)}return Be}},Y.html=function(H){var z=this.rules.block.html.exec(H);if(z){var se={type:"html",raw:z[0],pre:!this.options.sanitizer&&(z[1]==="pre"||z[1]==="script"||z[1]==="style"),text:z[0]};if(this.options.sanitize){var q=this.options.sanitizer?this.options.sanitizer(z[0]):t(z[0]);se.type="paragraph",se.text=q,se.tokens=this.lexer.inline(q)}return se}},Y.def=function(H){var z=this.rules.block.def.exec(H);if(z){z[3]&&(z[3]=z[3].substring(1,z[3].length-1));var se=z[1].toLowerCase().replace(/\s+/g," ");return{type:"def",tag:se,raw:z[0],href:z[2],title:z[3]}}},Y.table=function(H){var z=this.rules.block.table.exec(H);if(z){var se={type:"table",header:I(z[1]).map(function(me){return{text:me}}),align:z[2].replace(/^ *|\| *$/g,"").split(/ *\| */),rows:z[3]&&z[3].trim()?z[3].replace(/\n[ \t]*$/,"").split(`
`):[]};if(se.header.length===se.align.length){se.raw=z[0];var q=se.align.length,ae,ce,ge,pe;for(ae=0;ae/i.test(z[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&/^<(pre|code|kbd|script)(\s|>)/i.test(z[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&/^<\/(pre|code|kbd|script)(\s|>)/i.test(z[0])&&(this.lexer.state.inRawBlock=!1),{type:this.options.sanitize?"text":"html",raw:z[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,text:this.options.sanitize?this.options.sanitizer?this.options.sanitizer(z[0]):t(z[0]):z[0]}},Y.link=function(H){var z=this.rules.inline.link.exec(H);if(z){var se=z[2].trim();if(!this.options.pedantic&&/^$/.test(se))return;var q=M(se.slice(0,-1),"\\");if((se.length-q.length)%2===0)return}else{var ae=A(z[2],"()");if(ae>-1){var ce=z[0].indexOf("!")===0?5:4,ge=ce+z[1].length+ae;z[2]=z[2].substring(0,ae),z[0]=z[0].substring(0,ge).trim(),z[3]=""}}var pe=z[2],me="";if(this.options.pedantic){var ve=/^([^'"]*[^\s])\s+(['"])(.*)\2/.exec(pe);ve&&(pe=ve[1],me=ve[3])}else me=z[3]?z[3].slice(1,-1):"";return pe=pe.trim(),/^$/.test(se)?pe=pe.slice(1):pe=pe.slice(1,-1)),N(z,{href:pe&&pe.replace(this.rules.inline._escapes,"$1"),title:me&&me.replace(this.rules.inline._escapes,"$1")},z[0],this.lexer)}},Y.reflink=function(H,z){var se;if((se=this.rules.inline.reflink.exec(H))||(se=this.rules.inline.nolink.exec(H))){var q=(se[2]||se[1]).replace(/\s+/g," ");if(q=z[q.toLowerCase()],!q||!q.href){var ae=se[0].charAt(0);return{type:"text",raw:ae,text:ae}}return N(se,q,se[0],this.lexer)}},Y.emStrong=function(H,z,se){se===void 0&&(se="");var q=this.rules.inline.emStrong.lDelim.exec(H);if(q&&!(q[3]&&se.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\u0870-\u0887\u0889-\u088E\u08A0-\u08C9\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\u0C5D\u0C60\u0C61\u0C66-\u0C6F\u0C78-\u0C7E\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDD\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-\u1711\u171F-\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-\u1B4C\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-\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-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7CA\uA7D0\uA7D1\uA7D3\uA7D5-\uA7D9\uA7F2-\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\uDD70-\uDD7A\uDD7C-\uDD8A\uDD8C-\uDD92\uDD94\uDD95\uDD97-\uDDA1\uDDA3-\uDDB1\uDDB3-\uDDB9\uDDBB\uDDBC\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67\uDF80-\uDF85\uDF87-\uDFB0\uDFB2-\uDFBA]|\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\uDF70-\uDF81\uDFB0-\uDFCB\uDFE0-\uDFF6]|\uD804[\uDC03-\uDC37\uDC52-\uDC6F\uDC71\uDC72\uDC75\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\uDF40-\uDF46]|\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\uDEB0-\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]|\uD80B[\uDF90-\uDFF0]|[\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\uDE70-\uDEBE\uDEC0-\uDEC9\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]|\uD82B[\uDFF0-\uDFF3\uDFF5-\uDFFB\uDFFD\uDFFE]|\uD82C[\uDC00-\uDD22\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]|\uD837[\uDF00-\uDF1E]|\uD838[\uDD00-\uDD2C\uDD37-\uDD3D\uDD40-\uDD49\uDD4E\uDE90-\uDEAD\uDEC0-\uDEEB\uDEF0-\uDEF9]|\uD839[\uDFE0-\uDFE6\uDFE8-\uDFEB\uDFED\uDFEE\uDFF0-\uDFFE]|\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-\uDEDF\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF38\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0]|\uD87E[\uDC00-\uDE1D]|\uD884[\uDC00-\uDF4A])/))){var ae=q[1]||q[2]||"";if(!ae||ae&&(se===""||this.rules.inline.punctuation.exec(se))){var ce=q[0].length-1,ge,pe,me=ce,ve=0,Ce=q[0][0]==="*"?this.rules.inline.emStrong.rDelimAst:this.rules.inline.emStrong.rDelimUnd;for(Ce.lastIndex=0,z=z.slice(-1*H.length+ce);(q=Ce.exec(z))!=null;)if(ge=q[1]||q[2]||q[3]||q[4]||q[5]||q[6],!!ge){if(pe=ge.length,q[3]||q[4]){me+=pe;continue}else if((q[5]||q[6])&&ce%3&&!((ce+pe)%3)){ve+=pe;continue}if(me-=pe,!(me>0)){if(pe=Math.min(pe,pe+me+ve),Math.min(ce,pe)%2){var Se=H.slice(1,ce+q.index+pe);return{type:"em",raw:H.slice(0,ce+q.index+pe+1),text:Se,tokens:this.lexer.inlineTokens(Se)}}var _e=H.slice(2,ce+q.index+pe-1);return{type:"strong",raw:H.slice(0,ce+q.index+pe+1),text:_e,tokens:this.lexer.inlineTokens(_e)}}}}}},Y.codespan=function(H){var z=this.rules.inline.code.exec(H);if(z){var se=z[2].replace(/\n/g," "),q=/[^ ]/.test(se),ae=/^ /.test(se)&&/ $/.test(se);return q&&ae&&(se=se.substring(1,se.length-1)),se=t(se,!0),{type:"codespan",raw:z[0],text:se}}},Y.br=function(H){var z=this.rules.inline.br.exec(H);if(z)return{type:"br",raw:z[0]}},Y.del=function(H){var z=this.rules.inline.del.exec(H);if(z)return{type:"del",raw:z[0],text:z[2],tokens:this.lexer.inlineTokens(z[2])}},Y.autolink=function(H,z){var se=this.rules.inline.autolink.exec(H);if(se){var q,ae;return se[2]==="@"?(q=t(this.options.mangle?z(se[1]):se[1]),ae="mailto:"+q):(q=t(se[1]),ae=q),{type:"link",raw:se[0],text:q,href:ae,tokens:[{type:"text",raw:q,text:q}]}}},Y.url=function(H,z){var se;if(se=this.rules.inline.url.exec(H)){var q,ae;if(se[2]==="@")q=t(this.options.mangle?z(se[0]):se[0]),ae="mailto:"+q;else{var ce;do ce=se[0],se[0]=this.rules.inline._backpedal.exec(se[0])[0];while(ce!==se[0]);q=t(se[0]),se[1]==="www."?ae="http://"+q:ae=q}return{type:"link",raw:se[0],text:q,href:ae,tokens:[{type:"text",raw:q,text:q}]}}},Y.inlineText=function(H,z){var se=this.rules.inline.text.exec(H);if(se){var q;return this.lexer.state.inRawBlock?q=this.options.sanitize?this.options.sanitizer?this.options.sanitizer(se[0]):t(se[0]):se[0]:q=t(this.options.smartypants?z(se[0]):se[0]),{type:"text",raw:se[0],text:q}}},oe}(),R={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}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,heading:/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,blockquote:/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/,list:/^( {0,3}bull)([ \t][^\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:w,lheading:/^([^\n]+)\n {0,3}(=+|-+) *(?:\n+|$)/,_paragraph:/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,text:/^[^\n]+/};R._label=/(?!\s*\])(?:\\.|[^\[\]\\])+/,R._title=/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/,R.def=c(R.def).replace("label",R._label).replace("title",R._title).getRegex(),R.bullet=/(?:[*+-]|\d{1,9}[.)])/,R.listItemStart=c(/^( *)(bull) */).replace("bull",R.bullet).getRegex(),R.list=c(R.list).replace(/bull/g,R.bullet).replace("hr","\\n+(?=\\1?(?:(?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$))").replace("def","\\n+(?="+R.def.source+")").getRegex(),R._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",R._comment=/|$)/,R.html=c(R.html,"i").replace("comment",R._comment).replace("tag",R._tag).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),R.paragraph=c(R._paragraph).replace("hr",R.hr).replace("heading"," {0,3}#{1,6} ").replace("|lheading","").replace("|table","").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",R._tag).getRegex(),R.blockquote=c(R.blockquote).replace("paragraph",R.paragraph).getRegex(),R.normal=D({},R),R.gfm=D({},R.normal,{table:"^ *([^\\n ].*\\|.*)\\n {0,3}(?:\\| *)?(:?-+:? *(?:\\| *:?-+:? *)*)(?:\\| *)?(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)"}),R.gfm.table=c(R.gfm.table).replace("hr",R.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",R._tag).getRegex(),R.gfm.paragraph=c(R._paragraph).replace("hr",R.hr).replace("heading"," {0,3}#{1,6} ").replace("|lheading","").replace("table",R.gfm.table).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",R._tag).getRegex(),R.pedantic=D({},R.normal,{html:c(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?\\1> *(?:\\n{2,}|\\s*$)| \\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",R._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:w,paragraph:c(R.normal._paragraph).replace("hr",R.hr).replace("heading",` *#{1,6} *[^
]`).replace("lheading",R.lheading).replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").getRegex()});var B={escape:/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,autolink:/^<(scheme:[^\s\x00-\x1f<>]*|email)>/,url:w,tag:"^comment|^[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^|^",link:/^!?\[(label)\]\(\s*(href)(?:\s+(title))?\s*\)/,reflink:/^!?\[(label)\]\[(ref)\]/,nolink:/^!?\[(ref)\](?:\[\])?/,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:w,text:/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\?@\\[\\]`^{|}~",B.punctuation=c(B.punctuation).replace(/punctuation/g,B._punctuation).getRegex(),B.blockSkip=/\[[^\]]*?\]\([^\)]*?\)|`[^`]*?`|<[^>]*?>/g,B.escapedEmSt=/\\\*|\\_/g,B._comment=c(R._comment).replace("(?:-->|$)","-->").getRegex(),B.emStrong.lDelim=c(B.emStrong.lDelim).replace(/punct/g,B._punctuation).getRegex(),B.emStrong.rDelimAst=c(B.emStrong.rDelimAst,"g").replace(/punct/g,B._punctuation).getRegex(),B.emStrong.rDelimUnd=c(B.emStrong.rDelimUnd,"g").replace(/punct/g,B._punctuation).getRegex(),B._escapes=/\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/g,B._scheme=/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/,B._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])?)+(?![-_])/,B.autolink=c(B.autolink).replace("scheme",B._scheme).replace("email",B._email).getRegex(),B._attribute=/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/,B.tag=c(B.tag).replace("comment",B._comment).replace("attribute",B._attribute).getRegex(),B._label=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,B._href=/<(?:\\.|[^\n<>\\])+>|[^\s\x00-\x1f]*/,B._title=/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/,B.link=c(B.link).replace("label",B._label).replace("href",B._href).replace("title",B._title).getRegex(),B.reflink=c(B.reflink).replace("label",B._label).replace("ref",R._label).getRegex(),B.nolink=c(B.nolink).replace("ref",R._label).getRegex(),B.reflinkSearch=c(B.reflinkSearch,"g").replace("reflink",B.reflink).replace("nolink",B.nolink).getRegex(),B.normal=D({},B),B.pedantic=D({},B.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:c(/^!?\[(label)\]\((.*?)\)/).replace("label",B._label).getRegex(),reflink:c(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",B._label).getRegex()}),B.gfm=D({},B.normal,{escape:c(B.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&&(H="x"+H.toString(16)),Y+=""+H+";";return Y}var U=function(){function oe(K){this.tokens=[],this.tokens.links=Object.create(null),this.options=K||Q.defaults,this.options.tokenizer=this.options.tokenizer||new x,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 H={block:R.normal,inline:B.normal};this.options.pedantic?(H.block=R.pedantic,H.inline=B.pedantic):this.options.gfm&&(H.block=R.gfm,this.options.breaks?H.inline=B.breaks:H.inline=B.gfm),this.tokenizer.rules=H}oe.lex=function(H,z){var se=new oe(z);return se.lex(H)},oe.lexInline=function(H,z){var se=new oe(z);return se.inlineTokens(H)};var Y=oe.prototype;return Y.lex=function(H){H=H.replace(/\r\n|\r/g,`
`),this.blockTokens(H,this.tokens);for(var z;z=this.inlineQueue.shift();)this.inlineTokens(z.src,z.tokens);return this.tokens},Y.blockTokens=function(H,z){var se=this;z===void 0&&(z=[]),this.options.pedantic?H=H.replace(/\t/g," ").replace(/^ +$/gm,""):H=H.replace(/^( *)(\t+)/gm,function(me,ve,Ce){return ve+" ".repeat(Ce.length)});for(var q,ae,ce,ge;H;)if(!(this.options.extensions&&this.options.extensions.block&&this.options.extensions.block.some(function(me){return(q=me.call({lexer:se},H,z))?(H=H.substring(q.raw.length),z.push(q),!0):!1}))){if(q=this.tokenizer.space(H)){H=H.substring(q.raw.length),q.raw.length===1&&z.length>0?z[z.length-1].raw+=`
`:z.push(q);continue}if(q=this.tokenizer.code(H)){H=H.substring(q.raw.length),ae=z[z.length-1],ae&&(ae.type==="paragraph"||ae.type==="text")?(ae.raw+=`
`+q.raw,ae.text+=`
`+q.text,this.inlineQueue[this.inlineQueue.length-1].src=ae.text):z.push(q);continue}if(q=this.tokenizer.fences(H)){H=H.substring(q.raw.length),z.push(q);continue}if(q=this.tokenizer.heading(H)){H=H.substring(q.raw.length),z.push(q);continue}if(q=this.tokenizer.hr(H)){H=H.substring(q.raw.length),z.push(q);continue}if(q=this.tokenizer.blockquote(H)){H=H.substring(q.raw.length),z.push(q);continue}if(q=this.tokenizer.list(H)){H=H.substring(q.raw.length),z.push(q);continue}if(q=this.tokenizer.html(H)){H=H.substring(q.raw.length),z.push(q);continue}if(q=this.tokenizer.def(H)){H=H.substring(q.raw.length),ae=z[z.length-1],ae&&(ae.type==="paragraph"||ae.type==="text")?(ae.raw+=`
`+q.raw,ae.text+=`
`+q.raw,this.inlineQueue[this.inlineQueue.length-1].src=ae.text):this.tokens.links[q.tag]||(this.tokens.links[q.tag]={href:q.href,title:q.title});continue}if(q=this.tokenizer.table(H)){H=H.substring(q.raw.length),z.push(q);continue}if(q=this.tokenizer.lheading(H)){H=H.substring(q.raw.length),z.push(q);continue}if(ce=H,this.options.extensions&&this.options.extensions.startBlock&&function(){var me=1/0,ve=H.slice(1),Ce=void 0;se.options.extensions.startBlock.forEach(function(Se){Ce=Se.call({lexer:this},ve),typeof Ce=="number"&&Ce>=0&&(me=Math.min(me,Ce))}),me<1/0&&me>=0&&(ce=H.substring(0,me+1))}(),this.state.top&&(q=this.tokenizer.paragraph(ce))){ae=z[z.length-1],ge&&ae.type==="paragraph"?(ae.raw+=`
`+q.raw,ae.text+=`
`+q.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=ae.text):z.push(q),ge=ce.length!==H.length,H=H.substring(q.raw.length);continue}if(q=this.tokenizer.text(H)){H=H.substring(q.raw.length),ae=z[z.length-1],ae&&ae.type==="text"?(ae.raw+=`
`+q.raw,ae.text+=`
`+q.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=ae.text):z.push(q);continue}if(H){var pe="Infinite loop on byte: "+H.charCodeAt(0);if(this.options.silent){console.error(pe);break}else throw new Error(pe)}}return this.state.top=!0,z},Y.inline=function(H,z){return z===void 0&&(z=[]),this.inlineQueue.push({src:H,tokens:z}),z},Y.inlineTokens=function(H,z){var se=this;z===void 0&&(z=[]);var q,ae,ce,ge=H,pe,me,ve;if(this.tokens.links){var Ce=Object.keys(this.tokens.links);if(Ce.length>0)for(;(pe=this.tokenizer.rules.inline.reflinkSearch.exec(ge))!=null;)Ce.includes(pe[0].slice(pe[0].lastIndexOf("[")+1,-1))&&(ge=ge.slice(0,pe.index)+"["+T("a",pe[0].length-2)+"]"+ge.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;(pe=this.tokenizer.rules.inline.blockSkip.exec(ge))!=null;)ge=ge.slice(0,pe.index)+"["+T("a",pe[0].length-2)+"]"+ge.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);for(;(pe=this.tokenizer.rules.inline.escapedEmSt.exec(ge))!=null;)ge=ge.slice(0,pe.index)+"++"+ge.slice(this.tokenizer.rules.inline.escapedEmSt.lastIndex);for(;H;)if(me||(ve=""),me=!1,!(this.options.extensions&&this.options.extensions.inline&&this.options.extensions.inline.some(function(_e){return(q=_e.call({lexer:se},H,z))?(H=H.substring(q.raw.length),z.push(q),!0):!1}))){if(q=this.tokenizer.escape(H)){H=H.substring(q.raw.length),z.push(q);continue}if(q=this.tokenizer.tag(H)){H=H.substring(q.raw.length),ae=z[z.length-1],ae&&q.type==="text"&&ae.type==="text"?(ae.raw+=q.raw,ae.text+=q.text):z.push(q);continue}if(q=this.tokenizer.link(H)){H=H.substring(q.raw.length),z.push(q);continue}if(q=this.tokenizer.reflink(H,this.tokens.links)){H=H.substring(q.raw.length),ae=z[z.length-1],ae&&q.type==="text"&&ae.type==="text"?(ae.raw+=q.raw,ae.text+=q.text):z.push(q);continue}if(q=this.tokenizer.emStrong(H,ge,ve)){H=H.substring(q.raw.length),z.push(q);continue}if(q=this.tokenizer.codespan(H)){H=H.substring(q.raw.length),z.push(q);continue}if(q=this.tokenizer.br(H)){H=H.substring(q.raw.length),z.push(q);continue}if(q=this.tokenizer.del(H)){H=H.substring(q.raw.length),z.push(q);continue}if(q=this.tokenizer.autolink(H,V)){H=H.substring(q.raw.length),z.push(q);continue}if(!this.state.inLink&&(q=this.tokenizer.url(H,V))){H=H.substring(q.raw.length),z.push(q);continue}if(ce=H,this.options.extensions&&this.options.extensions.startInline&&function(){var _e=1/0,Te=H.slice(1),Me=void 0;se.options.extensions.startInline.forEach(function(Pe){Me=Pe.call({lexer:this},Te),typeof Me=="number"&&Me>=0&&(_e=Math.min(_e,Me))}),_e<1/0&&_e>=0&&(ce=H.substring(0,_e+1))}(),q=this.tokenizer.inlineText(ce,W)){H=H.substring(q.raw.length),q.raw.slice(-1)!=="_"&&(ve=q.raw.slice(-1)),me=!0,ae=z[z.length-1],ae&&ae.type==="text"?(ae.raw+=q.raw,ae.text+=q.text):z.push(q);continue}if(H){var Se="Infinite loop on byte: "+H.charCodeAt(0);if(this.options.silent){console.error(Se);break}else throw new Error(Se)}}return z},L(oe,null,[{key:"rules",get:function(){return{block:R,inline:B}}}]),oe}(),F=function(){function oe(K){this.options=K||Q.defaults}var Y=oe.prototype;return Y.code=function(H,z,se){var q=(z||"").match(/\S*/)[0];if(this.options.highlight){var ae=this.options.highlight(H,q);ae!=null&&ae!==H&&(se=!0,H=ae)}return H=H.replace(/\n$/,"")+`
`,q?''+(se?H:t(H,!0))+`
`:""+(se?H:t(H,!0))+`
`},Y.blockquote=function(H){return`
`+H+`
`},Y.html=function(H){return H},Y.heading=function(H,z,se,q){if(this.options.headerIds){var ae=this.options.headerPrefix+q.slug(se);return"'+H+"
`}return""+H+"
`},Y.hr=function(){return this.options.xhtml?`
`:`
`},Y.list=function(H,z,se){var q=z?"ol":"ul",ae=z&&se!==1?' start="'+se+'"':"";return"<"+q+ae+`>
`+H+""+q+`>
`},Y.listitem=function(H){return""+H+`
`},Y.checkbox=function(H){return" "},Y.paragraph=function(H){return""+H+`
`},Y.table=function(H,z){return z&&(z=""+z+""),`
`+H+`
`+z+`
`},Y.tablerow=function(H){return`
`+H+`
`},Y.tablecell=function(H,z){var se=z.header?"th":"td",q=z.align?"<"+se+' align="'+z.align+'">':"<"+se+">";return q+H+(""+se+`>
`)},Y.strong=function(H){return""+H+""},Y.em=function(H){return""+H+""},Y.codespan=function(H){return""+H+"
"},Y.br=function(){return this.options.xhtml?"
":"
"},Y.del=function(H){return""+H+""},Y.link=function(H,z,se){if(H=l(this.options.sanitize,this.options.baseUrl,H),H===null)return se;var q='"+se+"",q},Y.image=function(H,z,se){if(H=l(this.options.sanitize,this.options.baseUrl,H),H===null)return se;var q='":">",q},Y.text=function(H){return H},oe}(),j=function(){function oe(){}var Y=oe.prototype;return Y.strong=function(H){return H},Y.em=function(H){return H},Y.codespan=function(H){return H},Y.del=function(H){return H},Y.html=function(H){return H},Y.text=function(H){return H},Y.link=function(H,z,se){return""+se},Y.image=function(H,z,se){return""+se},Y.br=function(){return""},oe}(),J=function(){function oe(){this.seen={}}var Y=oe.prototype;return Y.serialize=function(H){return H.toLowerCase().trim().replace(/<[!\/a-z].*?>/ig,"").replace(/[\u2000-\u206F\u2E00-\u2E7F\\'!"#$%&()*+,./:;<=>?@[\]^`{|}~]/g,"").replace(/\s/g,"-")},Y.getNextSafeSlug=function(H,z){var se=H,q=0;if(this.seen.hasOwnProperty(se)){q=this.seen[H];do q++,se=H+"-"+q;while(this.seen.hasOwnProperty(se))}return z||(this.seen[H]=q,this.seen[se]=0),se},Y.slug=function(H,z){z===void 0&&(z={});var se=this.serialize(H);return this.getNextSafeSlug(se,z.dryrun)},oe}(),le=function(){function oe(K){this.options=K||Q.defaults,this.options.renderer=this.options.renderer||new F,this.renderer=this.options.renderer,this.renderer.options=this.options,this.textRenderer=new j,this.slugger=new J}oe.parse=function(H,z){var se=new oe(z);return se.parse(H)},oe.parseInline=function(H,z){var se=new oe(z);return se.parseInline(H)};var Y=oe.prototype;return Y.parse=function(H,z){z===void 0&&(z=!0);var se="",q,ae,ce,ge,pe,me,ve,Ce,Se,_e,Te,Me,Pe,Be,Le,Ne,fe,be,ke,Re=H.length;for(q=0;q0&&Le.tokens[0].type==="paragraph"?(Le.tokens[0].text=be+" "+Le.tokens[0].text,Le.tokens[0].tokens&&Le.tokens[0].tokens.length>0&&Le.tokens[0].tokens[0].type==="text"&&(Le.tokens[0].tokens[0].text=be+" "+Le.tokens[0].tokens[0].text)):Le.tokens.unshift({type:"text",text:be}):Be+=be),Be+=this.parse(Le.tokens,Pe),Se+=this.renderer.listitem(Be,fe,Ne);se+=this.renderer.list(Se,Te,Me);continue}case"html":{se+=this.renderer.html(_e.text);continue}case"paragraph":{se+=this.renderer.paragraph(this.parseInline(_e.tokens));continue}case"text":{for(Se=_e.tokens?this.parseInline(_e.tokens):_e.text;q+1"u"||oe===null)throw new Error("marked(): input parameter is undefined or null");if(typeof oe!="string")throw new Error("marked(): input parameter is of type "+Object.prototype.toString.call(oe)+", string expected");if(typeof Y=="function"&&(K=Y,Y=null),Y=D({},ee.defaults,Y||{}),O(Y),K){var H=Y.highlight,z;try{z=U.lex(oe,Y)}catch(ge){return K(ge)}var se=function(pe){var me;if(!pe)try{Y.walkTokens&&ee.walkTokens(z,Y.walkTokens),me=le.parse(z,Y)}catch(ve){pe=ve}return Y.highlight=H,pe?K(pe):K(null,me)};if(!H||H.length<3||(delete Y.highlight,!z.length))return se();var q=0;ee.walkTokens(z,function(ge){ge.type==="code"&&(q++,setTimeout(function(){H(ge.text,ge.lang,function(pe,me){if(pe)return se(pe);me!=null&&me!==ge.text&&(ge.text=me,ge.escaped=!0),q--,q===0&&se()})},0))}),q===0&&se();return}function ae(ge){if(ge.message+=`
Please report this to https://github.com/markedjs/marked.`,Y.silent)return"An error occurred:
"+t(ge.message+"",!0)+"
";throw ge}try{var ce=U.lex(oe,Y);if(Y.walkTokens){if(Y.async)return Promise.all(ee.walkTokens(ce,Y.walkTokens)).then(function(){return le.parse(ce,Y)}).catch(ae);ee.walkTokens(ce,Y.walkTokens)}return le.parse(ce,Y)}catch(ge){ae(ge)}}ee.options=ee.setOptions=function(oe){return D(ee.defaults,oe),p(ee.defaults),ee},ee.getDefaults=_,ee.defaults=Q.defaults,ee.use=function(){for(var oe=arguments.length,Y=new Array(oe),K=0;K"u"||oe===null)throw new Error("marked.parseInline(): input parameter is undefined or null");if(typeof oe!="string")throw new Error("marked.parseInline(): input parameter is of type "+Object.prototype.toString.call(oe)+", string expected");Y=D({},ee.defaults,Y||{}),O(Y);try{var K=U.lexInline(oe,Y);return Y.walkTokens&&ee.walkTokens(K,Y.walkTokens),le.parseInline(K,Y)}catch(H){if(H.message+=`
Please report this to https://github.com/markedjs/marked.`,Y.silent)return"An error occurred:
"+t(H.message+"",!0)+"
";throw H}},ee.Parser=le,ee.parser=le.parse,ee.Renderer=F,ee.TextRenderer=j,ee.Lexer=U,ee.lexer=U.lex,ee.Tokenizer=x,ee.Slugger=J,ee.parse=ee;var $=ee.options,te=ee.setOptions,G=ee.use,de=ee.walkTokens,ue=ee.parseInline,X=ee,Z=le.parse,re=U.lex;Q.Lexer=U,Q.Parser=le,Q.Renderer=F,Q.Slugger=J,Q.TextRenderer=j,Q.Tokenizer=x,Q.getDefaults=_,Q.lexer=re,Q.marked=ee,Q.options=$,Q.parse=X,Q.parseInline=ue,Q.parser=Z,Q.setOptions=te,Q.use=G,Q.walkTokens=de,Object.defineProperty(Q,"__esModule",{value:!0})}),define(ie[108],ne([1,0]),function(Q,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Mimes=void 0,e.Mimes=Object.freeze({text:"text/plain",binary:"application/octet-stream",unknown:"application/unknown",markdown:"text/markdown",latex:"text/latex",uriList:"text/uri-list"})}),define(ie[198],ne([1,0,108]),function(Q,e,L){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.DataTransfers=void 0,e.DataTransfers={RESOURCES:"ResourceURLs",DOWNLOAD_URL:"DownloadURL",FILES:"Files",TEXT:L.Mimes.text,INTERNAL_URI_LIST:"application/vnd.code.uri-list"}}),define(ie[396],ne([1,0]),function(Q,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getKoreanAltChars=void 0;function L(i){const n=E(i);if(n&&n.length>0)return new Uint32Array(n)}e.getKoreanAltChars=L;let k=0;const y=new Uint32Array(10);function E(i){if(k=0,_(i,S,4352),k>0||(_(i,v,4449),k>0)||(_(i,b,4520),k>0)||(_(i,o,12593),k))return y.subarray(0,k);if(i>=44032&&i<=55203){const n=i-44032,t=n%588,a=Math.floor(n/588),u=Math.floor(t/28),f=t%28-1;if(a=0&&(f0)return y.subarray(0,k)}}function _(i,n,t){i>=t&&i>8&&(y[k++]=i>>8&255),i>>16&&(y[k++]=i>>16&255))}const S=new Uint8Array([114,82,115,101,69,102,97,113,81,116,84,100,119,87,99,122,120,118,103]),v=new Uint16Array([107,111,105,79,106,112,117,80,104,27496,28520,27752,121,110,27246,28782,27758,98,109,27757,108]),b=new Uint16Array([114,82,29810,115,30579,26483,101,102,29286,24934,29030,29798,30822,30310,26470,97,113,29809,116,84,100,119,99,122,120,118,103]),o=new Uint16Array([114,82,29810,115,30579,26483,101,69,102,29286,24934,29030,29798,30822,30310,26470,97,113,81,29809,116,84,100,119,87,99,122,120,118,103,107,111,105,79,106,112,117,80,104,27496,28520,27752,121,110,27246,28782,27758,98,109,27757,108])}),define(ie[397],ne([1,0]),function(Q,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ArrayNavigator=void 0;class L{constructor(y,E=0,_=y.length,p=E-1){this.items=y,this.start=E,this.end=_,this.index=p}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=L}),define(ie[398],ne([1,0,397]),function(Q,e,L){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.HistoryNavigator=void 0;class k{constructor(E=[],_=10){this._initialize(E),this._limit=_,this._onChange()}getHistory(){return this._elements}add(E){this._history.delete(E),this._history.add(E),this._onChange()}next(){return this._navigator.next()}previous(){return this._currentPosition()!==0?this._navigator.previous():null}current(){return this._navigator.current()}first(){return this._navigator.first()}last(){return this._navigator.last()}isLast(){return this._currentPosition()>=this._elements.length-1}isNowhere(){return this._navigator.current()===null}has(E){return this._history.has(E)}_onChange(){this._reduceToLimit();const E=this._elements;this._navigator=new L.ArrayNavigator(E,0,E.length,E.length)}_reduceToLimit(){const E=this._elements;E.length>this._limit&&this._initialize(E.slice(E.length-this._limit))}_currentPosition(){const E=this._navigator.current();return E?this._elements.indexOf(E):-1}_initialize(E){this._history=new Set;for(const _ of E)this._history.add(_)}get _elements(){const E=[];return this._history.forEach(_=>E.push(_)),E}}e.HistoryNavigator=k}),define(ie[143],ne([1,0]),function(Q,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.SlidingWindowAverage=e.MovingAverage=e.clamp=void 0;function L(E,_,p){return Math.min(Math.max(E,_),p)}e.clamp=L;class k{constructor(){this._n=1,this._val=0}update(_){return this._val=this._val+(_-this._val)/this._n,this._n+=1,this._val}get value(){return this._val}}e.MovingAverage=k;class y{constructor(_){this._n=0,this._val=0,this._values=[],this._index=0,this._sum=0,this._values=new Array(_),this._values.fill(0,0,_)}update(_){const p=this._values[this._index];return this._values[this._index]=_,this._index=(this._index+1)%this._values.length,this._sum-=p,this._sum+=_,this._nf.debugName).join(", ")+")",{color:"gray"})}handleDerivedCreated(u){const f=u.handleChange;this.changedObservablesSets.set(u,new Set),u.handleChange=(c,d)=>(this.changedObservablesSets.get(u).add(c),f.apply(u,[c,d]))}handleDerivedRecomputed(u,f){const c=this.changedObservablesSets.get(u);console.log(...this.textToConsoleArgs([S("derived recomputed"),v(u.debugName,{color:"BlueViolet"}),...this.formatInfo(f),this.formatChanges(c),{data:[{fn:u._computeFn}]}])),c.clear()}handleFromEventObservableTriggered(u,f){console.log(...this.textToConsoleArgs([S("observable from event triggered"),v(u.debugName,{color:"BlueViolet"}),...this.formatInfo(f),{data:[{fn:u._getValue}]}]))}handleAutorunCreated(u){const f=u.handleChange;this.changedObservablesSets.set(u,new Set),u.handleChange=(c,d)=>(this.changedObservablesSets.get(u).add(c),f.apply(u,[c,d]))}handleAutorunTriggered(u){const f=this.changedObservablesSets.get(u);console.log(...this.textToConsoleArgs([S("autorun"),v(u.debugName,{color:"BlueViolet"}),this.formatChanges(f),{data:[{fn:u._runFn}]}])),f.clear(),this.indentation++}handleAutorunFinished(u){this.indentation--}handleBeginTransaction(u){let f=u.getDebugName();f===void 0&&(f=""),console.log(...this.textToConsoleArgs([S("transaction"),v(f,{color:"BlueViolet"}),{data:[{fn:u._fn}]}])),this.indentation++}handleEndTransaction(){this.indentation--}}e.ConsoleObservableLogger=E;function _(a){const u=new Array,f=[];let c="";function d(l){if("length"in l)for(const s of l)s&&d(s);else"text"in l?(c+=`%c${l.text}`,u.push(l.style),l.data&&f.push(...l.data)):"data"in l&&f.push(...l.data)}d(a);const r=[c,...u];return r.push(...f),r}function p(a){return v(a,{color:"black"})}function S(a){return v(t(`${a}: `,10),{color:"black",bold:!0})}function v(a,u={color:"black"}){function f(d){return Object.entries(d).reduce((r,[l,s])=>`${r}${l}:${s};`,"")}const c={color:u.color};return u.strikeThrough&&(c["text-decoration"]="line-through"),u.bold&&(c["font-weight"]="bold"),{text:a,style:f(c)}}function b(a,u){switch(typeof a){case"number":return""+a;case"string":return a.length+2<=u?`"${a}"`:`"${a.substr(0,u-7)}"+...`;case"boolean":return a?"true":"false";case"undefined":return"undefined";case"object":return a===null?"null":Array.isArray(a)?o(a,u):i(a,u);case"symbol":return a.toString();case"function":return`[[Function${a.name?" "+a.name:""}]]`;default:return""+a}}function o(a,u){let f="[ ",c=!0;for(const d of a){if(c||(f+=", "),f.length-5>u){f+="...";break}c=!1,f+=`${b(d,u-f.length)}`}return f+=" ]",f}function i(a,u){let f="{ ",c=!0;for(const[d,r]of Object.entries(a)){if(c||(f+=", "),f.length-5>u){f+="...";break}c=!1,f+=`${d}: ${b(r,u-f.length)}`}return f+=" }",f}function n(a,u){let f="";for(let c=1;c<=u;c++)f+=a;return f}function t(a,u){for(;a.length{const T=g(O);if(T!==void 0)return T;const P=/^\s*\(?\s*([a-zA-Z_$][a-zA-Z_$0-9]*)\s*\)?\s*=>\s*\1(?:\??)\.([a-zA-Z_$][a-zA-Z_$0-9]*)\s*$/.exec(O.toString());if(P)return`${this.debugName}.${P[2]}`;if(!A)return`${this.debugName} (mapped)`}},T=>O(this.read(T),T))}recomputeInitiallyAndOnChange(I,M){return I.add(k(this,M)),this}}e.ConvenientObservable=p;class S extends p{constructor(){super(...arguments),this.observers=new Set}addObserver(I){const M=this.observers.size;this.observers.add(I),M===0&&this.onFirstObserverAdded()}removeObserver(I){this.observers.delete(I)&&this.observers.size===0&&this.onLastObserverRemoved()}onFirstObserverAdded(){}onLastObserverRemoved(){}}e.BaseObservable=S;function v(D,I){const M=new t(D,I);try{D(M)}finally{M.finish()}}e.transaction=v;let b;function o(D){if(b)D(b);else{const I=new t(D,void 0);b=I;try{D(I)}finally{I.finish(),b=void 0}}}e.globalTransaction=o;async function i(D,I){const M=new t(D,I);try{await D(M)}finally{M.finish()}}e.asyncTransaction=i;function n(D,I,M){D?I(D):v(I,M)}e.subtransaction=n;class t{constructor(I,M){var A;this._fn=I,this._getDebugName=M,this.updatingObservers=[],(A=(0,L.getLogger)())===null||A===void 0||A.handleBeginTransaction(this)}getDebugName(){return this._getDebugName?this._getDebugName():g(this._fn)}updateObserver(I,M){this.updatingObservers.push({observer:I,observable:M}),I.beginUpdate(M)}finish(){var I;const M=this.updatingObservers;for(let A=0;A{},()=>`Setting ${this.debugName}`));try{const N=this._value;this._setValue(I),(O=(0,L.getLogger)())===null||O===void 0||O.handleObservableChanged(this,{oldValue:N,newValue:I,change:A,didChange:!0,hadValue:!0});for(const P of this.observers)M.updateObserver(P,this),P.handleChange(this,A)}finally{T&&T.finish()}}toString(){return`${this.debugName}: ${this._value}`}_setValue(I){this._value=I}}e.ObservableValue=m;function C(D,I){return typeof D=="string"?new w(void 0,D,I):new w(D,void 0,I)}e.disposableObservableValue=C;class w extends m{_setValue(I){this._value!==I&&(this._value&&this._value.dispose(),this._value=I)}dispose(){var I;(I=this._value)===null||I===void 0||I.dispose()}}e.DisposableObservableValue=w}),define(ie[266],ne([1,0,98,2,109,144]),function(Q,e,L,k,y,E){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.AutorunObserver=e.autorunWithStore=e.autorunHandleChanges=e.autorunOpts=e.autorun=void 0;function _(o){return new b(void 0,o,void 0,void 0)}e.autorun=_;function p(o,i){return new b(o.debugName,i,void 0,void 0)}e.autorunOpts=p;function S(o,i){return new b(o.debugName,i,o.createEmptyChangeSummary,o.handleChange)}e.autorunHandleChanges=S;function v(o){const i=new k.DisposableStore,n=p({debugName:()=>(0,y.getFunctionName)(o)||"(anonymous)"},t=>{i.clear(),o(t,i)});return(0,k.toDisposable)(()=>{n.dispose(),i.dispose()})}e.autorunWithStore=v;class b{get debugName(){if(typeof this._debugName=="string")return this._debugName;if(typeof this._debugName=="function"){const n=this._debugName();if(n!==void 0)return n}const i=(0,y.getFunctionName)(this._runFn);return i!==void 0?i:"(anonymous)"}constructor(i,n,t,a){var u,f;this._debugName=i,this._runFn=n,this.createChangeSummary=t,this._handleChange=a,this.state=2,this.updateCount=0,this.disposed=!1,this.dependencies=new Set,this.dependenciesToBeRemoved=new Set,this.changeSummary=(u=this.createChangeSummary)===null||u===void 0?void 0:u.call(this),(f=(0,E.getLogger)())===null||f===void 0||f.handleAutorunCreated(this),this._runIfNeeded(),(0,k.trackDisposable)(this)}dispose(){this.disposed=!0;for(const i of this.dependencies)i.removeObserver(this);this.dependencies.clear(),(0,k.markAsDisposed)(this)}_runIfNeeded(){var i,n,t;if(this.state===3)return;const a=this.dependenciesToBeRemoved;this.dependenciesToBeRemoved=this.dependencies,this.dependencies=a,this.state=3;const u=this.disposed;try{if(!u){(i=(0,E.getLogger)())===null||i===void 0||i.handleAutorunTriggered(this);const f=this.changeSummary;this.changeSummary=(n=this.createChangeSummary)===null||n===void 0?void 0:n.call(this),this._runFn(this,f)}}finally{u||(t=(0,E.getLogger)())===null||t===void 0||t.handleAutorunFinished(this);for(const f of this.dependenciesToBeRemoved)f.removeObserver(this);this.dependenciesToBeRemoved.clear()}}toString(){return`Autorun<${this.debugName}>`}beginUpdate(){this.state===3&&(this.state=1),this.updateCount++}endUpdate(){if(this.updateCount===1)do{if(this.state===1){this.state=3;for(const i of this.dependencies)if(i.reportChanges(),this.state===2)break}this._runIfNeeded()}while(this.state!==3);this.updateCount--,(0,L.assertFn)(()=>this.updateCount>=0)}handlePossibleChange(i){this.state===3&&this.dependencies.has(i)&&!this.dependenciesToBeRemoved.has(i)&&(this.state=1)}handleChange(i,n){this.dependencies.has(i)&&!this.dependenciesToBeRemoved.has(i)&&(!this._handleChange||this._handleChange({changedObservable:i,change:n,didChange:a=>a===i},this.changeSummary))&&(this.state=2)}readObservable(i){if(this.disposed)return i.get();i.addObserver(this);const n=i.get();return this.dependencies.add(i),this.dependenciesToBeRemoved.delete(i),n}}e.AutorunObserver=b,function(o){o.Observer=b}(_||(e.autorun=_={}))}),define(ie[169],ne([1,0,9,2,109,144]),function(Q,e,L,k,y,E){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Derived=e.derivedDisposable=e.derivedWithStore=e.derivedHandleChanges=e.derivedOpts=e.derived=void 0;const _=(n,t)=>n===t;function p(n,t){return t!==void 0?new i(n,void 0,t,void 0,void 0,void 0,_):new i(void 0,void 0,n,void 0,void 0,void 0,_)}e.derived=p;function S(n,t){var a;return new i(n.owner,n.debugName,t,void 0,void 0,void 0,(a=n.equalityComparer)!==null&&a!==void 0?a:_)}e.derivedOpts=S;function v(n,t){var a;return new i(n.owner,n.debugName,t,n.createEmptyChangeSummary,n.handleChange,void 0,(a=n.equalityComparer)!==null&&a!==void 0?a:_)}e.derivedHandleChanges=v;function b(n,t){let a,u;t===void 0?(a=n,u=void 0):(u=n,a=t);const f=new k.DisposableStore;return new i(u,()=>{var c;return(c=(0,y.getFunctionName)(a))!==null&&c!==void 0?c:"(anonymous)"},c=>(f.clear(),a(c,f)),void 0,void 0,()=>f.dispose(),_)}e.derivedWithStore=b;function o(n,t){let a,u;t===void 0?(a=n,u=void 0):(u=n,a=t);const f=new k.DisposableStore;return new i(u,()=>{var c;return(c=(0,y.getFunctionName)(a))!==null&&c!==void 0?c:"(anonymous)"},c=>{f.clear();const d=a(c);return d&&f.add(d),d},void 0,void 0,()=>f.dispose(),_)}e.derivedDisposable=o,(0,y._setDerivedOpts)(S);class i extends y.BaseObservable{get debugName(){var t;return(t=(0,y.getDebugName)(this,this._debugName,this._computeFn,this._owner,this))!==null&&t!==void 0?t:"(anonymous)"}constructor(t,a,u,f,c,d=void 0,r){var l,s;super(),this._owner=t,this._debugName=a,this._computeFn=u,this.createChangeSummary=f,this._handleChange=c,this._handleLastObserverRemoved=d,this._equalityComparator=r,this.state=0,this.value=void 0,this.updateCount=0,this.dependencies=new Set,this.dependenciesToBeRemoved=new Set,this.changeSummary=void 0,this.changeSummary=(l=this.createChangeSummary)===null||l===void 0?void 0:l.call(this),(s=(0,E.getLogger)())===null||s===void 0||s.handleDerivedCreated(this)}onLastObserverRemoved(){var t;this.state=0,this.value=void 0;for(const a of this.dependencies)a.removeObserver(this);this.dependencies.clear(),(t=this._handleLastObserverRemoved)===null||t===void 0||t.call(this)}get(){var t;if(this.observers.size===0){const a=this._computeFn(this,(t=this.createChangeSummary)===null||t===void 0?void 0:t.call(this));return this.onLastObserverRemoved(),a}else{do{if(this.state===1){for(const a of this.dependencies)if(a.reportChanges(),this.state===2)break}this.state===1&&(this.state=3),this._recomputeIfNeeded()}while(this.state!==3);return this.value}}_recomputeIfNeeded(){var t,a;if(this.state===3)return;const u=this.dependenciesToBeRemoved;this.dependenciesToBeRemoved=this.dependencies,this.dependencies=u;const f=this.state!==0,c=this.value;this.state=3;const d=this.changeSummary;this.changeSummary=(t=this.createChangeSummary)===null||t===void 0?void 0:t.call(this);try{this.value=this._computeFn(this,d)}finally{for(const l of this.dependenciesToBeRemoved)l.removeObserver(this);this.dependenciesToBeRemoved.clear()}const r=f&&!this._equalityComparator(c,this.value);if((a=(0,E.getLogger)())===null||a===void 0||a.handleDerivedRecomputed(this,{oldValue:c,newValue:this.value,change:void 0,didChange:r,hadValue:f}),r)for(const l of this.observers)l.handleChange(this,void 0)}toString(){return`LazyDerived<${this.debugName}>`}beginUpdate(t){this.updateCount++;const a=this.updateCount===1;if(this.state===3&&(this.state=1,!a))for(const u of this.observers)u.handlePossibleChange(this);if(a)for(const u of this.observers)u.beginUpdate(this)}endUpdate(t){if(this.updateCount--,this.updateCount===0){const a=[...this.observers];for(const u of a)u.endUpdate(this)}if(this.updateCount<0)throw new L.BugIndicatingError}handlePossibleChange(t){if(this.state===3&&this.dependencies.has(t)&&!this.dependenciesToBeRemoved.has(t)){this.state=1;for(const a of this.observers)a.handlePossibleChange(this)}}handleChange(t,a){if(this.dependencies.has(t)&&!this.dependenciesToBeRemoved.has(t)){const u=this._handleChange?this._handleChange({changedObservable:t,change:a,didChange:c=>c===t},this.changeSummary):!0,f=this.state===3;if(u&&(this.state===1||f)&&(this.state=2,f))for(const c of this.observers)c.handlePossibleChange(this)}}readObservable(t){t.addObserver(this);const a=t.get();return this.dependencies.add(t),this.dependenciesToBeRemoved.delete(t),a}addObserver(t){const a=!this.observers.has(t)&&this.updateCount>0;super.addObserver(t),a&&t.beginUpdate(this)}removeObserver(t){const a=this.observers.has(t)&&this.updateCount>0;super.removeObserver(t),a&&t.endUpdate(this)}}e.Derived=i}),define(ie[399],ne([1,0,2,266,109,169,144]),function(Q,e,L,k,y,E,_){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.derivedObservableWithCache=e.recomputeInitiallyAndOnChange=e.observableSignal=e.observableSignalFromEvent=e.FromEventObservable=e.observableFromEvent=e.waitForState=e.constObservable=void 0;function p(d){return new S(d)}e.constObservable=p;class S extends y.ConvenientObservable{constructor(r){super(),this.value=r}get debugName(){return this.toString()}get(){return this.value}addObserver(r){}removeObserver(r){}toString(){return`Const: ${this.value}`}}function v(d,r){return new Promise(l=>{let s=!1,g=!1;const h=d.map(C=>({isFinished:r(C),state:C})),m=(0,k.autorun)(C=>{const{isFinished:w,state:D}=h.read(C);w&&(s?m.dispose():g=!0,l(D))});s=!0,g&&m.dispose()})}e.waitForState=v;function b(d,r){return new o(d,r)}e.observableFromEvent=b;class o extends y.BaseObservable{constructor(r,l){super(),this.event=r,this._getValue=l,this.hasValue=!1,this.handleEvent=s=>{var g;const h=this._getValue(s),m=this.value,C=!this.hasValue||m!==h;let w=!1;C&&(this.value=h,this.hasValue&&(w=!0,(0,y.subtransaction)(o.globalTransaction,D=>{var I;(I=(0,_.getLogger)())===null||I===void 0||I.handleFromEventObservableTriggered(this,{oldValue:m,newValue:h,change:void 0,didChange:C,hadValue:this.hasValue});for(const M of this.observers)D.updateObserver(M,this),M.handleChange(this,void 0)},()=>{const D=this.getDebugName();return"Event fired"+(D?`: ${D}`:"")})),this.hasValue=!0),w||(g=(0,_.getLogger)())===null||g===void 0||g.handleFromEventObservableTriggered(this,{oldValue:m,newValue:h,change:void 0,didChange:C,hadValue:this.hasValue})}}getDebugName(){return(0,y.getFunctionName)(this._getValue)}get debugName(){const r=this.getDebugName();return"From Event"+(r?`: ${r}`:"")}onFirstObserverAdded(){this.subscription=this.event(this.handleEvent)}onLastObserverRemoved(){this.subscription.dispose(),this.subscription=void 0,this.hasValue=!1,this.value=void 0}get(){return this.subscription?(this.hasValue||this.handleEvent(void 0),this.value):this._getValue(void 0)}}e.FromEventObservable=o,function(d){d.Observer=o;function r(l,s){let g=!1;o.globalTransaction===void 0&&(o.globalTransaction=l,g=!0);try{s()}finally{g&&(o.globalTransaction=void 0)}}d.batchEventsGlobally=r}(b||(e.observableFromEvent=b={}));function i(d,r){return new n(d,r)}e.observableSignalFromEvent=i;class n extends y.BaseObservable{constructor(r,l){super(),this.debugName=r,this.event=l,this.handleEvent=()=>{(0,y.transaction)(s=>{for(const g of this.observers)s.updateObserver(g,this),g.handleChange(this,void 0)},()=>this.debugName)}}onFirstObserverAdded(){this.subscription=this.event(this.handleEvent)}onLastObserverRemoved(){this.subscription.dispose(),this.subscription=void 0}get(){}}function t(d){return typeof d=="string"?new a(d):new a(void 0,d)}e.observableSignal=t;class a extends y.BaseObservable{get debugName(){var r;return(r=(0,y.getDebugName)(this,this._debugName,void 0,this._owner,this))!==null&&r!==void 0?r:"Observable Signal"}constructor(r,l){super(),this._debugName=r,this._owner=l}trigger(r,l){if(!r){(0,y.transaction)(s=>{this.trigger(s,l)},()=>`Trigger signal ${this.debugName}`);return}for(const s of this.observers)r.updateObserver(s,this),s.handleChange(this,l)}get(){}}function u(d,r){const l=new f(!0,r);return d.addObserver(l),r?r(d.get()):d.reportChanges(),(0,L.toDisposable)(()=>{d.removeObserver(l)})}e.recomputeInitiallyAndOnChange=u,(0,y._setRecomputeInitiallyAndOnChange)(u);class f{constructor(r,l){this._forceRecompute=r,this._handleValue=l,this._counter=0}beginUpdate(r){this._counter++}endUpdate(r){this._counter--,this._counter===0&&this._forceRecompute&&(this._handleValue?this._handleValue(r.get()):r.reportChanges())}handlePossibleChange(r){}handleChange(r,l){}}function c(d){let r;return(0,E.derived)(s=>(r=d(s,r),r))}e.derivedObservableWithCache=c}),define(ie[35],ne([1,0,109,169,266,399,144]),function(Q,e,L,k,y,E,_){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.waitForState=e.observableSignalFromEvent=e.observableSignal=e.observableFromEvent=e.recomputeInitiallyAndOnChange=e.derivedObservableWithCache=e.constObservable=e.autorunOpts=e.autorunWithStore=e.autorunHandleChanges=e.autorun=e.derivedWithStore=e.derivedHandleChanges=e.derivedOpts=e.derived=e.subtransaction=e.transaction=e.disposableObservableValue=e.observableValue=void 0,Object.defineProperty(e,"observableValue",{enumerable:!0,get:function(){return L.observableValue}}),Object.defineProperty(e,"disposableObservableValue",{enumerable:!0,get:function(){return L.disposableObservableValue}}),Object.defineProperty(e,"transaction",{enumerable:!0,get:function(){return L.transaction}}),Object.defineProperty(e,"subtransaction",{enumerable:!0,get:function(){return L.subtransaction}}),Object.defineProperty(e,"derived",{enumerable:!0,get:function(){return k.derived}}),Object.defineProperty(e,"derivedOpts",{enumerable:!0,get:function(){return k.derivedOpts}}),Object.defineProperty(e,"derivedHandleChanges",{enumerable:!0,get:function(){return k.derivedHandleChanges}}),Object.defineProperty(e,"derivedWithStore",{enumerable:!0,get:function(){return k.derivedWithStore}}),Object.defineProperty(e,"autorun",{enumerable:!0,get:function(){return y.autorun}}),Object.defineProperty(e,"autorunHandleChanges",{enumerable:!0,get:function(){return y.autorunHandleChanges}}),Object.defineProperty(e,"autorunWithStore",{enumerable:!0,get:function(){return y.autorunWithStore}}),Object.defineProperty(e,"autorunOpts",{enumerable:!0,get:function(){return y.autorunOpts}}),Object.defineProperty(e,"constObservable",{enumerable:!0,get:function(){return E.constObservable}}),Object.defineProperty(e,"derivedObservableWithCache",{enumerable:!0,get:function(){return E.derivedObservableWithCache}}),Object.defineProperty(e,"recomputeInitiallyAndOnChange",{enumerable:!0,get:function(){return E.recomputeInitiallyAndOnChange}}),Object.defineProperty(e,"observableFromEvent",{enumerable:!0,get:function(){return E.observableFromEvent}}),Object.defineProperty(e,"observableSignal",{enumerable:!0,get:function(){return E.observableSignal}}),Object.defineProperty(e,"observableSignalFromEvent",{enumerable:!0,get:function(){return E.observableSignalFromEvent}}),Object.defineProperty(e,"waitForState",{enumerable:!0,get:function(){return E.waitForState}}),!1&&(0,_.setLogger)(new _.ConsoleObservableLogger)}),define(ie[170],ne([1,0]),function(Q,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Range=void 0;var L;(function(k){function y(S,v){if(S.start>=v.end||v.start>=S.end)return{start:0,end:0};const b=Math.max(S.start,v.start),o=Math.min(S.end,v.end);return o-b<=0?{start:0,end:0}:{start:b,end:o}}k.intersect=y;function E(S){return S.end-S.start<=0}k.isEmpty=E;function _(S,v){return!E(y(S,v))}k.intersects=_;function p(S,v){const b=[],o={start:S.start,end:Math.min(v.start,S.end)},i={start:Math.max(v.end,S.start),end:S.end};return E(o)||b.push(o),E(i)||b.push(i),b}k.relativeComplement=p})(L||(e.Range=L={}))}),define(ie[400],ne([1,0,170]),function(Q,e,L){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.RangeMap=e.consolidate=e.shift=e.groupIntersect=void 0;function k(S,v){const b=[];for(const o of v){if(S.start>=o.range.end)continue;if(S.endv.concat(b),[]))}class p{get paddingTop(){return this._paddingTop}set paddingTop(v){this._size=this._size+v-this._paddingTop,this._paddingTop=v}constructor(v){this.groups=[],this._size=0,this._paddingTop=0,this._paddingTop=v??0,this._size=this._paddingTop}splice(v,b,o=[]){const i=o.length-b,n=k({start:0,end:v},this.groups),t=k({start:v+b,end:Number.POSITIVE_INFINITY},this.groups).map(u=>({range:y(u.range,i),size:u.size})),a=o.map((u,f)=>({range:{start:v+f,end:v+f+1},size:u.size}));this.groups=_(n,a,t),this._size=this._paddingTop+this.groups.reduce((u,f)=>u+f.size*(f.range.end-f.range.start),0)}get count(){const v=this.groups.length;return v?this.groups[v-1].range.end:0}get size(){return this._size}indexAt(v){if(v<0)return-1;if(vy.Disposable.None;function w(oe){if(S){const{onDidAddListener:Y}=oe,K=n.create();let H=0;oe.onDidAddListener=()=>{++H===2&&(console.warn("snapshotted emitter LIKELY used public and SHOULD HAVE BEEN created with DisposableStore. snapshotted here"),K.print()),Y?.()}}}function D(oe,Y){return B(oe,()=>{},0,void 0,!0,void 0,Y)}C.defer=D;function I(oe){return(Y,K=null,H)=>{let z=!1,se;return se=oe(q=>{if(!z)return se?se.dispose():z=!0,Y.call(K,q)},null,H),z&&se.dispose(),se}}C.once=I;function M(oe,Y,K){return x((H,z=null,se)=>oe(q=>H.call(z,Y(q)),null,se),K)}C.map=M;function A(oe,Y,K){return x((H,z=null,se)=>oe(q=>{Y(q),H.call(z,q)},null,se),K)}C.forEach=A;function O(oe,Y,K){return x((H,z=null,se)=>oe(q=>Y(q)&&H.call(z,q),null,se),K)}C.filter=O;function T(oe){return oe}C.signal=T;function N(...oe){return(Y,K=null,H)=>{const z=(0,y.combinedDisposable)(...oe.map(se=>se(q=>Y.call(K,q))));return R(z,H)}}C.any=N;function P(oe,Y,K,H){let z=K;return M(oe,se=>(z=Y(z,se),z),H)}C.reduce=P;function x(oe,Y){let K;const H={onWillAddFirstListener(){K=oe(z.fire,z)},onDidRemoveLastListener(){K?.dispose()}};Y||w(H);const z=new f(H);return Y?.add(z),z.event}function R(oe,Y){return Y instanceof Array?Y.push(oe):Y&&Y.add(oe),oe}function B(oe,Y,K=100,H=!1,z=!1,se,q){let ae,ce,ge,pe=0,me;const ve={leakWarningThreshold:se,onWillAddFirstListener(){ae=oe(Se=>{pe++,ce=Y(ce,Se),H&&!ge&&(Ce.fire(ce),ce=void 0),me=()=>{const _e=ce;ce=void 0,ge=void 0,(!H||pe>1)&&Ce.fire(_e),pe=0},typeof K=="number"?(clearTimeout(ge),ge=setTimeout(me,K)):ge===void 0&&(ge=0,queueMicrotask(me))})},onWillRemoveListener(){z&&pe>0&&me?.()},onDidRemoveLastListener(){me=void 0,ae.dispose()}};q||w(ve);const Ce=new f(ve);return q?.add(Ce),Ce.event}C.debounce=B;function W(oe,Y=0,K){return C.debounce(oe,(H,z)=>H?(H.push(z),H):[z],Y,void 0,!0,void 0,K)}C.accumulate=W;function V(oe,Y=(H,z)=>H===z,K){let H=!0,z;return O(oe,se=>{const q=H||!Y(se,z);return H=!1,z=se,q},K)}C.latch=V;function U(oe,Y,K){return[C.filter(oe,Y,K),C.filter(oe,H=>!Y(H),K)]}C.split=U;function F(oe,Y=!1,K=[],H){let z=K.slice(),se=oe(ce=>{z?z.push(ce):ae.fire(ce)});H&&H.add(se);const q=()=>{z?.forEach(ce=>ae.fire(ce)),z=null},ae=new f({onWillAddFirstListener(){se||(se=oe(ce=>ae.fire(ce)),H&&H.add(se))},onDidAddFirstListener(){z&&(Y?setTimeout(q):q())},onDidRemoveLastListener(){se&&se.dispose(),se=null}});return H&&H.add(ae),ae.event}C.buffer=F;function j(oe,Y){return(H,z,se)=>{const q=Y(new le);return oe(function(ae){const ce=q.evaluate(ae);ce!==J&&H.call(z,ce)},void 0,se)}}C.chain=j;const J=Symbol("HaltChainable");class le{constructor(){this.steps=[]}map(Y){return this.steps.push(Y),this}forEach(Y){return this.steps.push(K=>(Y(K),K)),this}filter(Y){return this.steps.push(K=>Y(K)?K:J),this}reduce(Y,K){let H=K;return this.steps.push(z=>(H=Y(H,z),H)),this}latch(Y=(K,H)=>K===H){let K=!0,H;return this.steps.push(z=>{const se=K||!Y(z,H);return K=!1,H=z,se?z:J}),this}evaluate(Y){for(const K of this.steps)if(Y=K(Y),Y===J)break;return Y}}function ee(oe,Y,K=H=>H){const H=(...ae)=>q.fire(K(...ae)),z=()=>oe.on(Y,H),se=()=>oe.removeListener(Y,H),q=new f({onWillAddFirstListener:z,onDidRemoveLastListener:se});return q.event}C.fromNodeEventEmitter=ee;function $(oe,Y,K=H=>H){const H=(...ae)=>q.fire(K(...ae)),z=()=>oe.addEventListener(Y,H),se=()=>oe.removeEventListener(Y,H),q=new f({onWillAddFirstListener:z,onDidRemoveLastListener:se});return q.event}C.fromDOMEventEmitter=$;function te(oe){return new Promise(Y=>I(oe)(Y))}C.toPromise=te;function G(oe){const Y=new f;return oe.then(K=>{Y.fire(K)},()=>{Y.fire(void 0)}).finally(()=>{Y.dispose()}),Y.event}C.fromPromise=G;function de(oe,Y,K){return Y(K),oe(H=>Y(H))}C.runAndSubscribe=de;function ue(oe,Y){let K=null;function H(se){K?.dispose(),K=new y.DisposableStore,Y(se,K)}H(void 0);const z=oe(se=>H(se));return(0,y.toDisposable)(()=>{z.dispose(),K?.dispose()})}C.runAndSubscribeWithStore=ue;class X{constructor(Y,K){this._observable=Y,this._counter=0,this._hasChanged=!1;const H={onWillAddFirstListener:()=>{Y.addObserver(this)},onDidRemoveLastListener:()=>{Y.removeObserver(this)}};K||w(H),this.emitter=new f(H),K&&K.add(this.emitter)}beginUpdate(Y){this._counter++}handlePossibleChange(Y){}handleChange(Y,K){this._hasChanged=!0}endUpdate(Y){this._counter--,this._counter===0&&(this._observable.reportChanges(),this._hasChanged&&(this._hasChanged=!1,this.emitter.fire(this._observable.get())))}}function Z(oe,Y){return new X(oe,Y).emitter.event}C.fromObservable=Z;function re(oe){return(Y,K,H)=>{let z=0,se=!1;const q={beginUpdate(){z++},endUpdate(){z--,z===0&&(oe.reportChanges(),se&&(se=!1,Y.call(K)))},handlePossibleChange(){},handleChange(){se=!0}};oe.addObserver(q),oe.reportChanges();const ae={dispose(){oe.removeObserver(q)}};return H instanceof y.DisposableStore?H.add(ae):Array.isArray(H)&&H.push(ae),ae}}C.fromObservableLight=re})(v||(e.Event=v={}));class b{constructor(w){this.listenerCount=0,this.invocationCount=0,this.elapsedOverall=0,this.durations=[],this.name=`${w}_${b._idPool++}`,b.all.add(this)}start(w){this._stopWatch=new _.StopWatch,this.listenerCount=w}stop(){if(this._stopWatch){const w=this._stopWatch.elapsed();this.durations.push(w),this.elapsedOverall+=w,this.invocationCount+=1,this._stopWatch=void 0}}}e.EventProfiling=b,b.all=new Set,b._idPool=0;let o=-1;class i{constructor(w,D=Math.random().toString(18).slice(2,5)){this.threshold=w,this.name=D,this._warnCountdown=0}dispose(){var w;(w=this._stacks)===null||w===void 0||w.clear()}check(w,D){const I=this.threshold;if(I<=0||D{const A=this._stacks.get(w.value)||0;this._stacks.set(w.value,A-1)}}}class n{static create(){var w;return new n((w=new Error().stack)!==null&&w!==void 0?w:"")}constructor(w){this.value=w}print(){console.warn(this.value.split(`
`).slice(2).join(`
`))}}class t{constructor(w){this.value=w}}const a=2,u=(C,w)=>{if(C instanceof t)w(C);else for(let D=0;D0||!((D=this._options)===null||D===void 0)&&D.leakWarningThreshold?new i((M=(I=this._options)===null||I===void 0?void 0:I.leakWarningThreshold)!==null&&M!==void 0?M:o):void 0,this._perfMon=!((A=this._options)===null||A===void 0)&&A._profName?new b(this._options._profName):void 0,this._deliveryQueue=(O=this._options)===null||O===void 0?void 0:O.deliveryQueue}dispose(){var w,D,I,M;if(!this._disposed){if(this._disposed=!0,((w=this._deliveryQueue)===null||w===void 0?void 0:w.current)===this&&this._deliveryQueue.reset(),this._listeners){if(p){const A=this._listeners;queueMicrotask(()=>{u(A,O=>{var T;return(T=O.stack)===null||T===void 0?void 0:T.print()})})}this._listeners=void 0,this._size=0}(I=(D=this._options)===null||D===void 0?void 0:D.onDidRemoveLastListener)===null||I===void 0||I.call(D),(M=this._leakageMon)===null||M===void 0||M.dispose()}}get event(){var w;return(w=this._event)!==null&&w!==void 0||(this._event=(D,I,M)=>{var A,O,T,N,P;if(this._leakageMon&&this._size>this._leakageMon.threshold*3)return console.warn(`[${this._leakageMon.name}] REFUSES to accept new listeners because it exceeded its threshold by far`),y.Disposable.None;if(this._disposed)return y.Disposable.None;I&&(D=D.bind(I));const x=new t(D);let R,B;this._leakageMon&&this._size>=Math.ceil(this._leakageMon.threshold*.2)&&(x.stack=n.create(),R=this._leakageMon.check(x.stack,this._size+1)),p&&(x.stack=B??n.create()),this._listeners?this._listeners instanceof t?((P=this._deliveryQueue)!==null&&P!==void 0||(this._deliveryQueue=new d),this._listeners=[this._listeners,x]):this._listeners.push(x):((O=(A=this._options)===null||A===void 0?void 0:A.onWillAddFirstListener)===null||O===void 0||O.call(A,this),this._listeners=x,(N=(T=this._options)===null||T===void 0?void 0:T.onDidAddFirstListener)===null||N===void 0||N.call(T,this)),this._size++;const W=(0,y.toDisposable)(()=>{R?.(),this._removeListener(x)});return M instanceof y.DisposableStore?M.add(W):Array.isArray(M)&&M.push(W),W}),this._event}_removeListener(w){var D,I,M,A;if((I=(D=this._options)===null||D===void 0?void 0:D.onWillRemoveListener)===null||I===void 0||I.call(D,this),!this._listeners)return;if(this._size===1){this._listeners=void 0,(A=(M=this._options)===null||M===void 0?void 0:M.onDidRemoveLastListener)===null||A===void 0||A.call(M,this),this._size=0;return}const O=this._listeners,T=O.indexOf(w);if(T===-1)throw console.log("disposed?",this._disposed),console.log("size?",this._size),console.log("arr?",JSON.stringify(this._listeners)),new Error("Attempted to dispose unknown listener");this._size--,O[T]=void 0;const N=this._deliveryQueue.current===this;if(this._size*a<=O.length){let P=0;for(let x=0;x0}}e.Emitter=f;const c=()=>new d;e.createEventDeliveryQueue=c;class d{constructor(){this.i=-1,this.end=0}enqueue(w,D,I){this.i=0,this.end=I,this.current=w,this.value=D}reset(){this.i=this.end,this.current=void 0,this.value=void 0}}class r extends f{constructor(w){super(w),this._isPaused=0,this._eventQueue=new E.LinkedList,this._mergeFn=w?.merge}pause(){this._isPaused++}resume(){if(this._isPaused!==0&&--this._isPaused===0)if(this._mergeFn){if(this._eventQueue.size>0){const w=Array.from(this._eventQueue);this._eventQueue.clear(),super.fire(this._mergeFn(w))}}else for(;!this._isPaused&&this._eventQueue.size!==0;)super.fire(this._eventQueue.shift())}fire(w){this._size&&(this._isPaused!==0?this._eventQueue.push(w):super.fire(w))}}e.PauseableEmitter=r;class l extends r{constructor(w){var D;super(w),this._delay=(D=w.delay)!==null&&D!==void 0?D:100}fire(w){this._handle||(this.pause(),this._handle=setTimeout(()=>{this._handle=void 0,this.resume()},this._delay)),super.fire(w)}}e.DebounceEmitter=l;class s extends f{constructor(w){super(w),this._queuedEvents=[],this._mergeFn=w?.merge}fire(w){this.hasListeners()&&(this._queuedEvents.push(w),this._queuedEvents.length===1&&queueMicrotask(()=>{this._mergeFn?super.fire(this._mergeFn(this._queuedEvents)):this._queuedEvents.forEach(D=>super.fire(D)),this._queuedEvents=[]}))}}e.MicrotaskEmitter=s;class g{constructor(){this.hasListeners=!1,this.events=[],this.emitter=new f({onWillAddFirstListener:()=>this.onFirstListenerAdd(),onDidRemoveLastListener:()=>this.onLastListenerRemove()})}get event(){return this.emitter.event}add(w){const D={event:w,listener:null};this.events.push(D),this.hasListeners&&this.hook(D);const I=()=>{this.hasListeners&&this.unhook(D);const M=this.events.indexOf(D);this.events.splice(M,1)};return(0,y.toDisposable)((0,k.createSingleCallFunction)(I))}onFirstListenerAdd(){this.hasListeners=!0,this.events.forEach(w=>this.hook(w))}onLastListenerRemove(){this.hasListeners=!1,this.events.forEach(w=>this.unhook(w))}hook(w){w.listener=w.event(D=>this.emitter.fire(D))}unhook(w){w.listener&&w.listener.dispose(),w.listener=null}dispose(){this.emitter.dispose()}}e.EventMultiplexer=g;class h{constructor(){this.buffers=[]}wrapEvent(w){return(D,I,M)=>w(A=>{const O=this.buffers[this.buffers.length-1];O?O.push(()=>D.call(I,A)):D.call(I,A)},void 0,M)}bufferEvents(w){const D=[];this.buffers.push(D);const I=w();return this.buffers.pop(),D.forEach(M=>M()),I}}e.EventBufferer=h;class m{constructor(){this.listening=!1,this.inputEvent=v.None,this.inputEventListener=y.Disposable.None,this.emitter=new f({onDidAddFirstListener:()=>{this.listening=!0,this.inputEventListener=this.inputEvent(this.emitter.fire,this.emitter)},onDidRemoveLastListener:()=>{this.listening=!1,this.inputEventListener.dispose()}}),this.event=this.emitter.event}set input(w){this.inputEvent=w,this.listening&&(this.inputEventListener.dispose(),this.inputEventListener=w(this.emitter.fire,this.emitter))}dispose(){this.inputEventListener.dispose(),this.emitter.dispose()}}e.Relay=m}),define(ie[54],ne([1,0,48,6,2]),function(Q,e,L,k,y){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.isStandalone=e.isAndroid=e.isElectron=e.isWebkitWebView=e.isSafari=e.isChrome=e.isWebKit=e.isFirefox=e.getZoomFactor=e.PixelRatio=e.addMatchMediaChangeListener=void 0;class E{constructor(){this._zoomFactor=1}getZoomFactor(){return this._zoomFactor}}E.INSTANCE=new E;class _ extends y.Disposable{constructor(){super(),this._onDidChange=this._register(new k.Emitter),this.onDidChange=this._onDidChange.event,this._listener=()=>this._handleChange(!0),this._mediaQueryList=null,this._handleChange(!1)}_handleChange(a){var u;(u=this._mediaQueryList)===null||u===void 0||u.removeEventListener("change",this._listener),this._mediaQueryList=L.$window.matchMedia(`(resolution: ${L.$window.devicePixelRatio}dppx)`),this._mediaQueryList.addEventListener("change",this._listener),a&&this._onDidChange.fire()}}class p extends y.Disposable{get value(){return this._value}constructor(){super(),this._onDidChange=this._register(new k.Emitter),this.onDidChange=this._onDidChange.event,this._value=this._getPixelRatio();const a=this._register(new _);this._register(a.onDidChange(()=>{this._value=this._getPixelRatio(),this._onDidChange.fire(this._value)}))}_getPixelRatio(){const a=document.createElement("canvas").getContext("2d"),u=L.$window.devicePixelRatio||1,f=a.webkitBackingStorePixelRatio||a.mozBackingStorePixelRatio||a.msBackingStorePixelRatio||a.oBackingStorePixelRatio||a.backingStorePixelRatio||1;return u/f}}class S{constructor(){this._pixelRatioMonitor=null}_getOrCreatePixelRatioMonitor(){return this._pixelRatioMonitor||(this._pixelRatioMonitor=(0,y.markAsSingleton)(new p)),this._pixelRatioMonitor}get value(){return this._getOrCreatePixelRatioMonitor().value}get onDidChange(){return this._getOrCreatePixelRatioMonitor().onDidChange}}function v(t,a){typeof t=="string"&&(t=L.$window.matchMedia(t)),t.addEventListener("change",a)}e.addMatchMediaChangeListener=v,e.PixelRatio=new S;function b(){return E.INSTANCE.getZoomFactor()}e.getZoomFactor=b;const o=navigator.userAgent;e.isFirefox=o.indexOf("Firefox")>=0,e.isWebKit=o.indexOf("AppleWebKit")>=0,e.isChrome=o.indexOf("Chrome")>=0,e.isSafari=!e.isChrome&&o.indexOf("Safari")>=0,e.isWebkitWebView=!e.isChrome&&!e.isSafari&&e.isWebKit,e.isElectron=o.indexOf("Electron/")>=0,e.isAndroid=o.indexOf("Android")>=0;let i=!1;if(L.$window.matchMedia){const t=L.$window.matchMedia("(display-mode: standalone) or (display-mode: window-controls-overlay)"),a=L.$window.matchMedia("(display-mode: fullscreen)");i=t.matches,v(t,({matches:u})=>{i&&a.matches||(i=u)})}function n(){return i}e.isStandalone=n}),define(ie[83],ne([1,0,6]),function(Q,e,L){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.DomEmitter=void 0;class k{get event(){return this.emitter.event}constructor(E,_,p){const S=v=>this.emitter.fire(v);this.emitter=new L.Emitter({onWillAddFirstListener:()=>E.addEventListener(_,S,p),onDidRemoveLastListener:()=>E.removeEventListener(_,S,p)})}dispose(){this.emitter.dispose()}}e.DomEmitter=k}),define(ie[19],ne([1,0,6]),function(Q,e,L){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.CancellationTokenSource=e.CancellationToken=void 0;const k=Object.freeze(function(p,S){const v=setTimeout(p.bind(S),0);return{dispose(){clearTimeout(v)}}});var y;(function(p){function S(v){return v===p.None||v===p.Cancelled||v instanceof E?!0:!v||typeof v!="object"?!1:typeof v.isCancellationRequested=="boolean"&&typeof v.onCancellationRequested=="function"}p.isCancellationToken=S,p.None=Object.freeze({isCancellationRequested:!1,onCancellationRequested:L.Event.None}),p.Cancelled=Object.freeze({isCancellationRequested:!0,onCancellationRequested:k})})(y||(e.CancellationToken=y={}));class E{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?k:(this._emitter||(this._emitter=new L.Emitter),this._emitter.event)}dispose(){this._emitter&&(this._emitter.dispose(),this._emitter=null)}}class _{constructor(S){this._token=void 0,this._parentListener=void 0,this._parentListener=S&&S.onCancellationRequested(this.cancel,this)}get token(){return this._token||(this._token=new E),this._token}cancel(){this._token?this._token instanceof E&&this._token.cancel():this._token=y.Cancelled}dispose(S=!1){var v;S&&this.cancel(),(v=this._parentListener)===null||v===void 0||v.dispose(),this._token?this._token instanceof E&&this._token.dispose():this._token=y.None}}e.CancellationTokenSource=_}),define(ie[267],ne([1,0,6]),function(Q,e,L){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.IME=e.IMEImpl=void 0;class k{constructor(){this._onDidChange=new L.Emitter,this.onDidChange=this._onDidChange.event,this._enabled=!0}get enabled(){return this._enabled}enable(){this._enabled=!0,this._onDidChange.fire()}disable(){this._enabled=!1,this._onDidChange.fire()}}e.IMEImpl=k,e.IME=new k}),define(ie[145],ne([1,0,6,2]),function(Q,e,L,k){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.SmoothScrollingOperation=e.SmoothScrollingUpdate=e.Scrollable=e.ScrollState=void 0;class y{constructor(n,t,a,u,f,c,d){this._forceIntegerValues=n,this._scrollStateBrand=void 0,this._forceIntegerValues&&(t=t|0,a=a|0,u=u|0,f=f|0,c=c|0,d=d|0),this.rawScrollLeft=u,this.rawScrollTop=d,t<0&&(t=0),u+t>a&&(u=a-t),u<0&&(u=0),f<0&&(f=0),d+f>c&&(d=c-f),d<0&&(d=0),this.width=t,this.scrollWidth=a,this.scrollLeft=u,this.height=f,this.scrollHeight=c,this.scrollTop=d}equals(n){return this.rawScrollLeft===n.rawScrollLeft&&this.rawScrollTop===n.rawScrollTop&&this.width===n.width&&this.scrollWidth===n.scrollWidth&&this.scrollLeft===n.scrollLeft&&this.height===n.height&&this.scrollHeight===n.scrollHeight&&this.scrollTop===n.scrollTop}withScrollDimensions(n,t){return new y(this._forceIntegerValues,typeof n.width<"u"?n.width:this.width,typeof n.scrollWidth<"u"?n.scrollWidth:this.scrollWidth,t?this.rawScrollLeft:this.scrollLeft,typeof n.height<"u"?n.height:this.height,typeof n.scrollHeight<"u"?n.scrollHeight:this.scrollHeight,t?this.rawScrollTop:this.scrollTop)}withScrollPosition(n){return new y(this._forceIntegerValues,this.width,this.scrollWidth,typeof n.scrollLeft<"u"?n.scrollLeft:this.rawScrollLeft,this.height,this.scrollHeight,typeof n.scrollTop<"u"?n.scrollTop:this.rawScrollTop)}createScrollEvent(n,t){const a=this.width!==n.width,u=this.scrollWidth!==n.scrollWidth,f=this.scrollLeft!==n.scrollLeft,c=this.height!==n.height,d=this.scrollHeight!==n.scrollHeight,r=this.scrollTop!==n.scrollTop;return{inSmoothScrolling:t,oldWidth:n.width,oldScrollWidth:n.scrollWidth,oldScrollLeft:n.scrollLeft,width:this.width,scrollWidth:this.scrollWidth,scrollLeft:this.scrollLeft,oldHeight:n.height,oldScrollHeight:n.scrollHeight,oldScrollTop:n.scrollTop,height:this.height,scrollHeight:this.scrollHeight,scrollTop:this.scrollTop,widthChanged:a,scrollWidthChanged:u,scrollLeftChanged:f,heightChanged:c,scrollHeightChanged:d,scrollTopChanged:r}}}e.ScrollState=y;class E extends k.Disposable{constructor(n){super(),this._scrollableBrand=void 0,this._onScroll=this._register(new L.Emitter),this.onScroll=this._onScroll.event,this._smoothScrollDuration=n.smoothScrollDuration,this._scheduleAtNextAnimationFrame=n.scheduleAtNextAnimationFrame,this._state=new y(n.forceIntegerValues,0,0,0,0,0,0),this._smoothScrolling=null}dispose(){this._smoothScrolling&&(this._smoothScrolling.dispose(),this._smoothScrolling=null),super.dispose()}setSmoothScrollDuration(n){this._smoothScrollDuration=n}validateScrollPosition(n){return this._state.withScrollPosition(n)}getScrollDimensions(){return this._state}setScrollDimensions(n,t){var a;const u=this._state.withScrollDimensions(n,t);this._setState(u,!!this._smoothScrolling),(a=this._smoothScrolling)===null||a===void 0||a.acceptScrollDimensions(this._state)}getFutureScrollPosition(){return this._smoothScrolling?this._smoothScrolling.to:this._state}getCurrentScrollPosition(){return this._state}setScrollPositionNow(n){const t=this._state.withScrollPosition(n);this._smoothScrolling&&(this._smoothScrolling.dispose(),this._smoothScrolling=null),this._setState(t,!1)}setScrollPositionSmooth(n,t){if(this._smoothScrollDuration===0)return this.setScrollPositionNow(n);if(this._smoothScrolling){n={scrollLeft:typeof n.scrollLeft>"u"?this._smoothScrolling.to.scrollLeft:n.scrollLeft,scrollTop:typeof n.scrollTop>"u"?this._smoothScrolling.to.scrollTop:n.scrollTop};const a=this._state.withScrollPosition(n);if(this._smoothScrolling.to.scrollLeft===a.scrollLeft&&this._smoothScrolling.to.scrollTop===a.scrollTop)return;let u;t?u=new v(this._smoothScrolling.from,a,this._smoothScrolling.startTime,this._smoothScrolling.duration):u=this._smoothScrolling.combine(this._state,a,this._smoothScrollDuration),this._smoothScrolling.dispose(),this._smoothScrolling=u}else{const a=this._state.withScrollPosition(n);this._smoothScrolling=v.start(this._state,a,this._smoothScrollDuration)}this._smoothScrolling.animationFrameDisposable=this._scheduleAtNextAnimationFrame(()=>{this._smoothScrolling&&(this._smoothScrolling.animationFrameDisposable=null,this._performSmoothScrolling())})}hasPendingScrollAnimation(){return!!this._smoothScrolling}_performSmoothScrolling(){if(!this._smoothScrolling)return;const n=this._smoothScrolling.tick(),t=this._state.withScrollPosition(n);if(this._setState(t,!0),!!this._smoothScrolling){if(n.isDone){this._smoothScrolling.dispose(),this._smoothScrolling=null;return}this._smoothScrolling.animationFrameDisposable=this._scheduleAtNextAnimationFrame(()=>{this._smoothScrolling&&(this._smoothScrolling.animationFrameDisposable=null,this._performSmoothScrolling())})}}_setState(n,t){const a=this._state;a.equals(n)||(this._state=n,this._onScroll.fire(this._state.createScrollEvent(a,t)))}}e.Scrollable=E;class _{constructor(n,t,a){this.scrollLeft=n,this.scrollTop=t,this.isDone=a}}e.SmoothScrollingUpdate=_;function p(i,n){const t=n-i;return function(a){return i+t*o(a)}}function S(i,n,t){return function(a){return a2.5*a){let f,c;return n=ae.length?ce:ae[pe]})}e.format=p;function S(q){return q.replace(/[<>&]/g,function(ae){switch(ae){case"<":return"<";case">":return">";case"&":return"&";default:return ae}})}e.escape=S;function v(q){return q.replace(/[\\\{\}\*\+\?\|\^\$\.\[\]\(\)]/g,"\\$&")}e.escapeRegExpCharacters=v;function b(q,ae=" "){const ce=o(q,ae);return i(ce,ae)}e.trim=b;function o(q,ae){if(!q||!ae)return q;const ce=ae.length;if(ce===0||q.length===0)return q;let ge=0;for(;q.indexOf(ae,ge)===ge;)ge=ge+ce;return q.substring(ge)}e.ltrim=o;function i(q,ae){if(!q||!ae)return q;const ce=ae.length,ge=q.length;if(ce===0||ge===0)return q;let pe=ge,me=-1;for(;me=q.lastIndexOf(ae,pe-1),!(me===-1||me+ce!==pe);){if(me===0)return"";pe=me}return q.substring(0,pe)}e.rtrim=i;function n(q){return q.replace(/[\-\\\{\}\+\?\|\^\$\.\,\[\]\(\)\#\s]/g,"\\$&").replace(/[\*]/g,".*")}e.convertSimple2RegExpPattern=n;function t(q){return q.replace(/\*/g,"")}e.stripWildcards=t;function a(q,ae,ce={}){if(!q)throw new Error("Cannot create regex from empty string");ae||(q=v(q)),ce.wholeWord&&(/\B/.test(q.charAt(0))||(q="\\b"+q),/\B/.test(q.charAt(q.length-1))||(q=q+"\\b"));let ge="";return ce.global&&(ge+="g"),ce.matchCase||(ge+="i"),ce.multiline&&(ge+="m"),ce.unicode&&(ge+="u"),new RegExp(q,ge)}e.createRegExp=a;function u(q){return q.source==="^"||q.source==="^$"||q.source==="$"||q.source==="^\\s*$"?!1:!!(q.exec("")&&q.lastIndex===0)}e.regExpLeadsToEndlessLoop=u;function f(q){return q.split(/\r\n|\r|\n/)}e.splitLines=f;function c(q){for(let ae=0,ce=q.length;ae=0;ce--){const ge=q.charCodeAt(ce);if(ge!==32&&ge!==9)return ce}return-1}e.lastNonWhitespaceIndex=r;function l(q,ae){return qae?1:0}e.compare=l;function s(q,ae,ce=0,ge=q.length,pe=0,me=ae.length){for(;ce_e)return 1}const ve=ge-ce,Ce=me-pe;return veCe?1:0}e.compareSubstring=s;function g(q,ae){return h(q,ae,0,q.length,0,ae.length)}e.compareIgnoreCase=g;function h(q,ae,ce=0,ge=q.length,pe=0,me=ae.length){for(;ce=128||_e>=128)return s(q.toLowerCase(),ae.toLowerCase(),ce,ge,pe,me);C(Se)&&(Se-=32),C(_e)&&(_e-=32);const Te=Se-_e;if(Te!==0)return Te}const ve=ge-ce,Ce=me-pe;return veCe?1:0}e.compareSubstringIgnoreCase=h;function m(q){return q>=48&&q<=57}e.isAsciiDigit=m;function C(q){return q>=97&&q<=122}e.isLowerAsciiLetter=C;function w(q){return q>=65&&q<=90}e.isUpperAsciiLetter=w;function D(q,ae){return q.length===ae.length&&h(q,ae)===0}e.equalsIgnoreCase=D;function I(q,ae){const ce=ae.length;return ae.length>q.length?!1:h(q,ae,0,ce)===0}e.startsWithIgnoreCase=I;function M(q,ae){const ce=Math.min(q.length,ae.length);let ge;for(ge=0;ge1){const ge=q.charCodeAt(ae-2);if(O(ge))return N(ge,ce)}return ce}class R{get offset(){return this._offset}constructor(ae,ce=0){this._str=ae,this._len=ae.length,this._offset=ce}setOffset(ae){this._offset=ae}prevCodePoint(){const ae=x(this._str,this._offset);return this._offset-=ae>=65536?2:1,ae}nextCodePoint(){const ae=P(this._str,this._len,this._offset);return this._offset+=ae>=65536?2:1,ae}eol(){return this._offset>=this._len}}e.CodePointIterator=R;class B{get offset(){return this._iterator.offset}constructor(ae,ce=0){this._iterator=new R(ae,ce)}nextGraphemeLength(){const ae=re.getInstance(),ce=this._iterator,ge=ce.offset;let pe=ae.getGraphemeBreakType(ce.nextCodePoint());for(;!ce.eol();){const me=ce.offset,ve=ae.getGraphemeBreakType(ce.nextCodePoint());if(Z(pe,ve)){ce.setOffset(me);break}pe=ve}return ce.offset-ge}prevGraphemeLength(){const ae=re.getInstance(),ce=this._iterator,ge=ce.offset;let pe=ae.getGraphemeBreakType(ce.prevCodePoint());for(;ce.offset>0;){const me=ce.offset,ve=ae.getGraphemeBreakType(ce.prevCodePoint());if(Z(ve,pe)){ce.setOffset(me);break}pe=ve}return ge-ce.offset}eol(){return this._iterator.eol()}}e.GraphemeIterator=B;function W(q,ae){return new B(q,ae).nextGraphemeLength()}e.nextCharLength=W;function V(q,ae){return new B(q,ae).prevGraphemeLength()}e.prevCharLength=V;function U(q,ae){ae>0&&T(q.charCodeAt(ae))&&ae--;const ce=ae+W(q,ae);return[ce-V(q,ce),ce]}e.getCharContainingOffset=U;let F;function j(){return/(?:[\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 J(q){return F||(F=j()),F.test(q)}e.containsRTL=J;const le=/^[\t\n\r\x20-\x7E]*$/;function ee(q){return le.test(q)}e.isBasicASCII=ee,e.UNUSUAL_LINE_TERMINATORS=/[\u2028\u2029]/;function $(q){return e.UNUSUAL_LINE_TERMINATORS.test(q)}e.containsUnusualLineTerminators=$;function te(q){return q>=11904&&q<=55215||q>=63744&&q<=64255||q>=65281&&q<=65374}e.isFullWidthCharacter=te;function G(q){return q>=127462&&q<=127487||q===8986||q===8987||q===9200||q===9203||q>=9728&&q<=10175||q===11088||q===11093||q>=127744&&q<=128591||q>=128640&&q<=128764||q>=128992&&q<=129008||q>=129280&&q<=129535||q>=129648&&q<=129782}e.isEmojiImprecise=G,e.UTF8_BOM_CHARACTER=String.fromCharCode(65279);function de(q){return!!(q&&q.length>0&&q.charCodeAt(0)===65279)}e.startsWithUTF8BOM=de;function ue(q,ae=!1){return q?(ae&&(q=q.replace(/\\./g,"")),q.toLowerCase()!==q):!1}e.containsUppercaseCharacter=ue;function X(q){return q=q%(2*26),q<26?String.fromCharCode(97+q):String.fromCharCode(65+q-26)}e.singleLetterHash=X;function Z(q,ae){return q===0?ae!==5&&ae!==7:q===2&&ae===3?!1:q===4||q===2||q===3||ae===4||ae===2||ae===3?!0:!(q===8&&(ae===8||ae===9||ae===11||ae===12)||(q===11||q===9)&&(ae===9||ae===10)||(q===12||q===10)&&ae===10||ae===5||ae===13||ae===7||q===1||q===13&&ae===14||q===6&&ae===6)}class re{static getInstance(){return re._INSTANCE||(re._INSTANCE=new re),re._INSTANCE}constructor(){this._data=oe()}getGraphemeBreakType(ae){if(ae<32)return ae===10?3:ae===13?2:4;if(ae<127)return 0;const ce=this._data,ge=ce.length/3;let pe=1;for(;pe<=ge;)if(aece[3*pe+1])pe=2*pe+1;else return ce[3*pe+2];return 0}}re._INSTANCE=null;function oe(){return JSON.parse("[0,0,0,51229,51255,12,44061,44087,12,127462,127487,6,7083,7085,5,47645,47671,12,54813,54839,12,128678,128678,14,3270,3270,5,9919,9923,14,45853,45879,12,49437,49463,12,53021,53047,12,71216,71218,7,128398,128399,14,129360,129374,14,2519,2519,5,4448,4519,9,9742,9742,14,12336,12336,14,44957,44983,12,46749,46775,12,48541,48567,12,50333,50359,12,52125,52151,12,53917,53943,12,69888,69890,5,73018,73018,5,127990,127990,14,128558,128559,14,128759,128760,14,129653,129655,14,2027,2035,5,2891,2892,7,3761,3761,5,6683,6683,5,8293,8293,4,9825,9826,14,9999,9999,14,43452,43453,5,44509,44535,12,45405,45431,12,46301,46327,12,47197,47223,12,48093,48119,12,48989,49015,12,49885,49911,12,50781,50807,12,51677,51703,12,52573,52599,12,53469,53495,12,54365,54391,12,65279,65279,4,70471,70472,7,72145,72147,7,119173,119179,5,127799,127818,14,128240,128244,14,128512,128512,14,128652,128652,14,128721,128722,14,129292,129292,14,129445,129450,14,129734,129743,14,1476,1477,5,2366,2368,7,2750,2752,7,3076,3076,5,3415,3415,5,4141,4144,5,6109,6109,5,6964,6964,5,7394,7400,5,9197,9198,14,9770,9770,14,9877,9877,14,9968,9969,14,10084,10084,14,43052,43052,5,43713,43713,5,44285,44311,12,44733,44759,12,45181,45207,12,45629,45655,12,46077,46103,12,46525,46551,12,46973,46999,12,47421,47447,12,47869,47895,12,48317,48343,12,48765,48791,12,49213,49239,12,49661,49687,12,50109,50135,12,50557,50583,12,51005,51031,12,51453,51479,12,51901,51927,12,52349,52375,12,52797,52823,12,53245,53271,12,53693,53719,12,54141,54167,12,54589,54615,12,55037,55063,12,69506,69509,5,70191,70193,5,70841,70841,7,71463,71467,5,72330,72342,5,94031,94031,5,123628,123631,5,127763,127765,14,127941,127941,14,128043,128062,14,128302,128317,14,128465,128467,14,128539,128539,14,128640,128640,14,128662,128662,14,128703,128703,14,128745,128745,14,129004,129007,14,129329,129330,14,129402,129402,14,129483,129483,14,129686,129704,14,130048,131069,14,173,173,4,1757,1757,1,2200,2207,5,2434,2435,7,2631,2632,5,2817,2817,5,3008,3008,5,3201,3201,5,3387,3388,5,3542,3542,5,3902,3903,7,4190,4192,5,6002,6003,5,6439,6440,5,6765,6770,7,7019,7027,5,7154,7155,7,8205,8205,13,8505,8505,14,9654,9654,14,9757,9757,14,9792,9792,14,9852,9853,14,9890,9894,14,9937,9937,14,9981,9981,14,10035,10036,14,11035,11036,14,42654,42655,5,43346,43347,7,43587,43587,5,44006,44007,7,44173,44199,12,44397,44423,12,44621,44647,12,44845,44871,12,45069,45095,12,45293,45319,12,45517,45543,12,45741,45767,12,45965,45991,12,46189,46215,12,46413,46439,12,46637,46663,12,46861,46887,12,47085,47111,12,47309,47335,12,47533,47559,12,47757,47783,12,47981,48007,12,48205,48231,12,48429,48455,12,48653,48679,12,48877,48903,12,49101,49127,12,49325,49351,12,49549,49575,12,49773,49799,12,49997,50023,12,50221,50247,12,50445,50471,12,50669,50695,12,50893,50919,12,51117,51143,12,51341,51367,12,51565,51591,12,51789,51815,12,52013,52039,12,52237,52263,12,52461,52487,12,52685,52711,12,52909,52935,12,53133,53159,12,53357,53383,12,53581,53607,12,53805,53831,12,54029,54055,12,54253,54279,12,54477,54503,12,54701,54727,12,54925,54951,12,55149,55175,12,68101,68102,5,69762,69762,7,70067,70069,7,70371,70378,5,70720,70721,7,71087,71087,5,71341,71341,5,71995,71996,5,72249,72249,7,72850,72871,5,73109,73109,5,118576,118598,5,121505,121519,5,127245,127247,14,127568,127569,14,127777,127777,14,127872,127891,14,127956,127967,14,128015,128016,14,128110,128172,14,128259,128259,14,128367,128368,14,128424,128424,14,128488,128488,14,128530,128532,14,128550,128551,14,128566,128566,14,128647,128647,14,128656,128656,14,128667,128673,14,128691,128693,14,128715,128715,14,128728,128732,14,128752,128752,14,128765,128767,14,129096,129103,14,129311,129311,14,129344,129349,14,129394,129394,14,129413,129425,14,129466,129471,14,129511,129535,14,129664,129666,14,129719,129722,14,129760,129767,14,917536,917631,5,13,13,2,1160,1161,5,1564,1564,4,1807,1807,1,2085,2087,5,2307,2307,7,2382,2383,7,2497,2500,5,2563,2563,7,2677,2677,5,2763,2764,7,2879,2879,5,2914,2915,5,3021,3021,5,3142,3144,5,3263,3263,5,3285,3286,5,3398,3400,7,3530,3530,5,3633,3633,5,3864,3865,5,3974,3975,5,4155,4156,7,4229,4230,5,5909,5909,7,6078,6085,7,6277,6278,5,6451,6456,7,6744,6750,5,6846,6846,5,6972,6972,5,7074,7077,5,7146,7148,7,7222,7223,5,7416,7417,5,8234,8238,4,8417,8417,5,9000,9000,14,9203,9203,14,9730,9731,14,9748,9749,14,9762,9763,14,9776,9783,14,9800,9811,14,9831,9831,14,9872,9873,14,9882,9882,14,9900,9903,14,9929,9933,14,9941,9960,14,9974,9974,14,9989,9989,14,10006,10006,14,10062,10062,14,10160,10160,14,11647,11647,5,12953,12953,14,43019,43019,5,43232,43249,5,43443,43443,5,43567,43568,7,43696,43696,5,43765,43765,7,44013,44013,5,44117,44143,12,44229,44255,12,44341,44367,12,44453,44479,12,44565,44591,12,44677,44703,12,44789,44815,12,44901,44927,12,45013,45039,12,45125,45151,12,45237,45263,12,45349,45375,12,45461,45487,12,45573,45599,12,45685,45711,12,45797,45823,12,45909,45935,12,46021,46047,12,46133,46159,12,46245,46271,12,46357,46383,12,46469,46495,12,46581,46607,12,46693,46719,12,46805,46831,12,46917,46943,12,47029,47055,12,47141,47167,12,47253,47279,12,47365,47391,12,47477,47503,12,47589,47615,12,47701,47727,12,47813,47839,12,47925,47951,12,48037,48063,12,48149,48175,12,48261,48287,12,48373,48399,12,48485,48511,12,48597,48623,12,48709,48735,12,48821,48847,12,48933,48959,12,49045,49071,12,49157,49183,12,49269,49295,12,49381,49407,12,49493,49519,12,49605,49631,12,49717,49743,12,49829,49855,12,49941,49967,12,50053,50079,12,50165,50191,12,50277,50303,12,50389,50415,12,50501,50527,12,50613,50639,12,50725,50751,12,50837,50863,12,50949,50975,12,51061,51087,12,51173,51199,12,51285,51311,12,51397,51423,12,51509,51535,12,51621,51647,12,51733,51759,12,51845,51871,12,51957,51983,12,52069,52095,12,52181,52207,12,52293,52319,12,52405,52431,12,52517,52543,12,52629,52655,12,52741,52767,12,52853,52879,12,52965,52991,12,53077,53103,12,53189,53215,12,53301,53327,12,53413,53439,12,53525,53551,12,53637,53663,12,53749,53775,12,53861,53887,12,53973,53999,12,54085,54111,12,54197,54223,12,54309,54335,12,54421,54447,12,54533,54559,12,54645,54671,12,54757,54783,12,54869,54895,12,54981,55007,12,55093,55119,12,55243,55291,10,66045,66045,5,68325,68326,5,69688,69702,5,69817,69818,5,69957,69958,7,70089,70092,5,70198,70199,5,70462,70462,5,70502,70508,5,70750,70750,5,70846,70846,7,71100,71101,5,71230,71230,7,71351,71351,5,71737,71738,5,72000,72000,7,72160,72160,5,72273,72278,5,72752,72758,5,72882,72883,5,73031,73031,5,73461,73462,7,94192,94193,7,119149,119149,7,121403,121452,5,122915,122916,5,126980,126980,14,127358,127359,14,127535,127535,14,127759,127759,14,127771,127771,14,127792,127793,14,127825,127867,14,127897,127899,14,127945,127945,14,127985,127986,14,128000,128007,14,128021,128021,14,128066,128100,14,128184,128235,14,128249,128252,14,128266,128276,14,128335,128335,14,128379,128390,14,128407,128419,14,128444,128444,14,128481,128481,14,128499,128499,14,128526,128526,14,128536,128536,14,128543,128543,14,128556,128556,14,128564,128564,14,128577,128580,14,128643,128645,14,128649,128649,14,128654,128654,14,128660,128660,14,128664,128664,14,128675,128675,14,128686,128689,14,128695,128696,14,128705,128709,14,128717,128719,14,128725,128725,14,128736,128741,14,128747,128748,14,128755,128755,14,128762,128762,14,128981,128991,14,129009,129023,14,129160,129167,14,129296,129304,14,129320,129327,14,129340,129342,14,129356,129356,14,129388,129392,14,129399,129400,14,129404,129407,14,129432,129442,14,129454,129455,14,129473,129474,14,129485,129487,14,129648,129651,14,129659,129660,14,129671,129679,14,129709,129711,14,129728,129730,14,129751,129753,14,129776,129782,14,917505,917505,4,917760,917999,5,10,10,3,127,159,4,768,879,5,1471,1471,5,1536,1541,1,1648,1648,5,1767,1768,5,1840,1866,5,2070,2073,5,2137,2139,5,2274,2274,1,2363,2363,7,2377,2380,7,2402,2403,5,2494,2494,5,2507,2508,7,2558,2558,5,2622,2624,7,2641,2641,5,2691,2691,7,2759,2760,5,2786,2787,5,2876,2876,5,2881,2884,5,2901,2902,5,3006,3006,5,3014,3016,7,3072,3072,5,3134,3136,5,3157,3158,5,3260,3260,5,3266,3266,5,3274,3275,7,3328,3329,5,3391,3392,7,3405,3405,5,3457,3457,5,3536,3537,7,3551,3551,5,3636,3642,5,3764,3772,5,3895,3895,5,3967,3967,7,3993,4028,5,4146,4151,5,4182,4183,7,4226,4226,5,4253,4253,5,4957,4959,5,5940,5940,7,6070,6070,7,6087,6088,7,6158,6158,4,6432,6434,5,6448,6449,7,6679,6680,5,6742,6742,5,6754,6754,5,6783,6783,5,6912,6915,5,6966,6970,5,6978,6978,5,7042,7042,7,7080,7081,5,7143,7143,7,7150,7150,7,7212,7219,5,7380,7392,5,7412,7412,5,8203,8203,4,8232,8232,4,8265,8265,14,8400,8412,5,8421,8432,5,8617,8618,14,9167,9167,14,9200,9200,14,9410,9410,14,9723,9726,14,9733,9733,14,9745,9745,14,9752,9752,14,9760,9760,14,9766,9766,14,9774,9774,14,9786,9786,14,9794,9794,14,9823,9823,14,9828,9828,14,9833,9850,14,9855,9855,14,9875,9875,14,9880,9880,14,9885,9887,14,9896,9897,14,9906,9916,14,9926,9927,14,9935,9935,14,9939,9939,14,9962,9962,14,9972,9972,14,9978,9978,14,9986,9986,14,9997,9997,14,10002,10002,14,10017,10017,14,10055,10055,14,10071,10071,14,10133,10135,14,10548,10549,14,11093,11093,14,12330,12333,5,12441,12442,5,42608,42610,5,43010,43010,5,43045,43046,5,43188,43203,7,43302,43309,5,43392,43394,5,43446,43449,5,43493,43493,5,43571,43572,7,43597,43597,7,43703,43704,5,43756,43757,5,44003,44004,7,44009,44010,7,44033,44059,12,44089,44115,12,44145,44171,12,44201,44227,12,44257,44283,12,44313,44339,12,44369,44395,12,44425,44451,12,44481,44507,12,44537,44563,12,44593,44619,12,44649,44675,12,44705,44731,12,44761,44787,12,44817,44843,12,44873,44899,12,44929,44955,12,44985,45011,12,45041,45067,12,45097,45123,12,45153,45179,12,45209,45235,12,45265,45291,12,45321,45347,12,45377,45403,12,45433,45459,12,45489,45515,12,45545,45571,12,45601,45627,12,45657,45683,12,45713,45739,12,45769,45795,12,45825,45851,12,45881,45907,12,45937,45963,12,45993,46019,12,46049,46075,12,46105,46131,12,46161,46187,12,46217,46243,12,46273,46299,12,46329,46355,12,46385,46411,12,46441,46467,12,46497,46523,12,46553,46579,12,46609,46635,12,46665,46691,12,46721,46747,12,46777,46803,12,46833,46859,12,46889,46915,12,46945,46971,12,47001,47027,12,47057,47083,12,47113,47139,12,47169,47195,12,47225,47251,12,47281,47307,12,47337,47363,12,47393,47419,12,47449,47475,12,47505,47531,12,47561,47587,12,47617,47643,12,47673,47699,12,47729,47755,12,47785,47811,12,47841,47867,12,47897,47923,12,47953,47979,12,48009,48035,12,48065,48091,12,48121,48147,12,48177,48203,12,48233,48259,12,48289,48315,12,48345,48371,12,48401,48427,12,48457,48483,12,48513,48539,12,48569,48595,12,48625,48651,12,48681,48707,12,48737,48763,12,48793,48819,12,48849,48875,12,48905,48931,12,48961,48987,12,49017,49043,12,49073,49099,12,49129,49155,12,49185,49211,12,49241,49267,12,49297,49323,12,49353,49379,12,49409,49435,12,49465,49491,12,49521,49547,12,49577,49603,12,49633,49659,12,49689,49715,12,49745,49771,12,49801,49827,12,49857,49883,12,49913,49939,12,49969,49995,12,50025,50051,12,50081,50107,12,50137,50163,12,50193,50219,12,50249,50275,12,50305,50331,12,50361,50387,12,50417,50443,12,50473,50499,12,50529,50555,12,50585,50611,12,50641,50667,12,50697,50723,12,50753,50779,12,50809,50835,12,50865,50891,12,50921,50947,12,50977,51003,12,51033,51059,12,51089,51115,12,51145,51171,12,51201,51227,12,51257,51283,12,51313,51339,12,51369,51395,12,51425,51451,12,51481,51507,12,51537,51563,12,51593,51619,12,51649,51675,12,51705,51731,12,51761,51787,12,51817,51843,12,51873,51899,12,51929,51955,12,51985,52011,12,52041,52067,12,52097,52123,12,52153,52179,12,52209,52235,12,52265,52291,12,52321,52347,12,52377,52403,12,52433,52459,12,52489,52515,12,52545,52571,12,52601,52627,12,52657,52683,12,52713,52739,12,52769,52795,12,52825,52851,12,52881,52907,12,52937,52963,12,52993,53019,12,53049,53075,12,53105,53131,12,53161,53187,12,53217,53243,12,53273,53299,12,53329,53355,12,53385,53411,12,53441,53467,12,53497,53523,12,53553,53579,12,53609,53635,12,53665,53691,12,53721,53747,12,53777,53803,12,53833,53859,12,53889,53915,12,53945,53971,12,54001,54027,12,54057,54083,12,54113,54139,12,54169,54195,12,54225,54251,12,54281,54307,12,54337,54363,12,54393,54419,12,54449,54475,12,54505,54531,12,54561,54587,12,54617,54643,12,54673,54699,12,54729,54755,12,54785,54811,12,54841,54867,12,54897,54923,12,54953,54979,12,55009,55035,12,55065,55091,12,55121,55147,12,55177,55203,12,65024,65039,5,65520,65528,4,66422,66426,5,68152,68154,5,69291,69292,5,69633,69633,5,69747,69748,5,69811,69814,5,69826,69826,5,69932,69932,7,70016,70017,5,70079,70080,7,70095,70095,5,70196,70196,5,70367,70367,5,70402,70403,7,70464,70464,5,70487,70487,5,70709,70711,7,70725,70725,7,70833,70834,7,70843,70844,7,70849,70849,7,71090,71093,5,71103,71104,5,71227,71228,7,71339,71339,5,71344,71349,5,71458,71461,5,71727,71735,5,71985,71989,7,71998,71998,5,72002,72002,7,72154,72155,5,72193,72202,5,72251,72254,5,72281,72283,5,72344,72345,5,72766,72766,7,72874,72880,5,72885,72886,5,73023,73029,5,73104,73105,5,73111,73111,5,92912,92916,5,94095,94098,5,113824,113827,4,119142,119142,7,119155,119162,4,119362,119364,5,121476,121476,5,122888,122904,5,123184,123190,5,125252,125258,5,127183,127183,14,127340,127343,14,127377,127386,14,127491,127503,14,127548,127551,14,127744,127756,14,127761,127761,14,127769,127769,14,127773,127774,14,127780,127788,14,127796,127797,14,127820,127823,14,127869,127869,14,127894,127895,14,127902,127903,14,127943,127943,14,127947,127950,14,127972,127972,14,127988,127988,14,127992,127994,14,128009,128011,14,128019,128019,14,128023,128041,14,128064,128064,14,128102,128107,14,128174,128181,14,128238,128238,14,128246,128247,14,128254,128254,14,128264,128264,14,128278,128299,14,128329,128330,14,128348,128359,14,128371,128377,14,128392,128393,14,128401,128404,14,128421,128421,14,128433,128434,14,128450,128452,14,128476,128478,14,128483,128483,14,128495,128495,14,128506,128506,14,128519,128520,14,128528,128528,14,128534,128534,14,128538,128538,14,128540,128542,14,128544,128549,14,128552,128555,14,128557,128557,14,128560,128563,14,128565,128565,14,128567,128576,14,128581,128591,14,128641,128642,14,128646,128646,14,128648,128648,14,128650,128651,14,128653,128653,14,128655,128655,14,128657,128659,14,128661,128661,14,128663,128663,14,128665,128666,14,128674,128674,14,128676,128677,14,128679,128685,14,128690,128690,14,128694,128694,14,128697,128702,14,128704,128704,14,128710,128714,14,128716,128716,14,128720,128720,14,128723,128724,14,128726,128727,14,128733,128735,14,128742,128744,14,128746,128746,14,128749,128751,14,128753,128754,14,128756,128758,14,128761,128761,14,128763,128764,14,128884,128895,14,128992,129003,14,129008,129008,14,129036,129039,14,129114,129119,14,129198,129279,14,129293,129295,14,129305,129310,14,129312,129319,14,129328,129328,14,129331,129338,14,129343,129343,14,129351,129355,14,129357,129359,14,129375,129387,14,129393,129393,14,129395,129398,14,129401,129401,14,129403,129403,14,129408,129412,14,129426,129431,14,129443,129444,14,129451,129453,14,129456,129465,14,129472,129472,14,129475,129482,14,129484,129484,14,129488,129510,14,129536,129647,14,129652,129652,14,129656,129658,14,129661,129663,14,129667,129670,14,129680,129685,14,129705,129708,14,129712,129718,14,129723,129727,14,129731,129733,14,129744,129750,14,129754,129759,14,129768,129775,14,129783,129791,14,917504,917504,4,917506,917535,4,917632,917759,4,918000,921599,4,0,9,4,11,12,4,14,31,4,169,169,14,174,174,14,1155,1159,5,1425,1469,5,1473,1474,5,1479,1479,5,1552,1562,5,1611,1631,5,1750,1756,5,1759,1764,5,1770,1773,5,1809,1809,5,1958,1968,5,2045,2045,5,2075,2083,5,2089,2093,5,2192,2193,1,2250,2273,5,2275,2306,5,2362,2362,5,2364,2364,5,2369,2376,5,2381,2381,5,2385,2391,5,2433,2433,5,2492,2492,5,2495,2496,7,2503,2504,7,2509,2509,5,2530,2531,5,2561,2562,5,2620,2620,5,2625,2626,5,2635,2637,5,2672,2673,5,2689,2690,5,2748,2748,5,2753,2757,5,2761,2761,7,2765,2765,5,2810,2815,5,2818,2819,7,2878,2878,5,2880,2880,7,2887,2888,7,2893,2893,5,2903,2903,5,2946,2946,5,3007,3007,7,3009,3010,7,3018,3020,7,3031,3031,5,3073,3075,7,3132,3132,5,3137,3140,7,3146,3149,5,3170,3171,5,3202,3203,7,3262,3262,7,3264,3265,7,3267,3268,7,3271,3272,7,3276,3277,5,3298,3299,5,3330,3331,7,3390,3390,5,3393,3396,5,3402,3404,7,3406,3406,1,3426,3427,5,3458,3459,7,3535,3535,5,3538,3540,5,3544,3550,7,3570,3571,7,3635,3635,7,3655,3662,5,3763,3763,7,3784,3789,5,3893,3893,5,3897,3897,5,3953,3966,5,3968,3972,5,3981,3991,5,4038,4038,5,4145,4145,7,4153,4154,5,4157,4158,5,4184,4185,5,4209,4212,5,4228,4228,7,4237,4237,5,4352,4447,8,4520,4607,10,5906,5908,5,5938,5939,5,5970,5971,5,6068,6069,5,6071,6077,5,6086,6086,5,6089,6099,5,6155,6157,5,6159,6159,5,6313,6313,5,6435,6438,7,6441,6443,7,6450,6450,5,6457,6459,5,6681,6682,7,6741,6741,7,6743,6743,7,6752,6752,5,6757,6764,5,6771,6780,5,6832,6845,5,6847,6862,5,6916,6916,7,6965,6965,5,6971,6971,7,6973,6977,7,6979,6980,7,7040,7041,5,7073,7073,7,7078,7079,7,7082,7082,7,7142,7142,5,7144,7145,5,7149,7149,5,7151,7153,5,7204,7211,7,7220,7221,7,7376,7378,5,7393,7393,7,7405,7405,5,7415,7415,7,7616,7679,5,8204,8204,5,8206,8207,4,8233,8233,4,8252,8252,14,8288,8292,4,8294,8303,4,8413,8416,5,8418,8420,5,8482,8482,14,8596,8601,14,8986,8987,14,9096,9096,14,9193,9196,14,9199,9199,14,9201,9202,14,9208,9210,14,9642,9643,14,9664,9664,14,9728,9729,14,9732,9732,14,9735,9741,14,9743,9744,14,9746,9746,14,9750,9751,14,9753,9756,14,9758,9759,14,9761,9761,14,9764,9765,14,9767,9769,14,9771,9773,14,9775,9775,14,9784,9785,14,9787,9791,14,9793,9793,14,9795,9799,14,9812,9822,14,9824,9824,14,9827,9827,14,9829,9830,14,9832,9832,14,9851,9851,14,9854,9854,14,9856,9861,14,9874,9874,14,9876,9876,14,9878,9879,14,9881,9881,14,9883,9884,14,9888,9889,14,9895,9895,14,9898,9899,14,9904,9905,14,9917,9918,14,9924,9925,14,9928,9928,14,9934,9934,14,9936,9936,14,9938,9938,14,9940,9940,14,9961,9961,14,9963,9967,14,9970,9971,14,9973,9973,14,9975,9977,14,9979,9980,14,9982,9985,14,9987,9988,14,9992,9996,14,9998,9998,14,10000,10001,14,10004,10004,14,10013,10013,14,10024,10024,14,10052,10052,14,10060,10060,14,10067,10069,14,10083,10083,14,10085,10087,14,10145,10145,14,10175,10175,14,11013,11015,14,11088,11088,14,11503,11505,5,11744,11775,5,12334,12335,5,12349,12349,14,12951,12951,14,42607,42607,5,42612,42621,5,42736,42737,5,43014,43014,5,43043,43044,7,43047,43047,7,43136,43137,7,43204,43205,5,43263,43263,5,43335,43345,5,43360,43388,8,43395,43395,7,43444,43445,7,43450,43451,7,43454,43456,7,43561,43566,5,43569,43570,5,43573,43574,5,43596,43596,5,43644,43644,5,43698,43700,5,43710,43711,5,43755,43755,7,43758,43759,7,43766,43766,5,44005,44005,5,44008,44008,5,44012,44012,7,44032,44032,11,44060,44060,11,44088,44088,11,44116,44116,11,44144,44144,11,44172,44172,11,44200,44200,11,44228,44228,11,44256,44256,11,44284,44284,11,44312,44312,11,44340,44340,11,44368,44368,11,44396,44396,11,44424,44424,11,44452,44452,11,44480,44480,11,44508,44508,11,44536,44536,11,44564,44564,11,44592,44592,11,44620,44620,11,44648,44648,11,44676,44676,11,44704,44704,11,44732,44732,11,44760,44760,11,44788,44788,11,44816,44816,11,44844,44844,11,44872,44872,11,44900,44900,11,44928,44928,11,44956,44956,11,44984,44984,11,45012,45012,11,45040,45040,11,45068,45068,11,45096,45096,11,45124,45124,11,45152,45152,11,45180,45180,11,45208,45208,11,45236,45236,11,45264,45264,11,45292,45292,11,45320,45320,11,45348,45348,11,45376,45376,11,45404,45404,11,45432,45432,11,45460,45460,11,45488,45488,11,45516,45516,11,45544,45544,11,45572,45572,11,45600,45600,11,45628,45628,11,45656,45656,11,45684,45684,11,45712,45712,11,45740,45740,11,45768,45768,11,45796,45796,11,45824,45824,11,45852,45852,11,45880,45880,11,45908,45908,11,45936,45936,11,45964,45964,11,45992,45992,11,46020,46020,11,46048,46048,11,46076,46076,11,46104,46104,11,46132,46132,11,46160,46160,11,46188,46188,11,46216,46216,11,46244,46244,11,46272,46272,11,46300,46300,11,46328,46328,11,46356,46356,11,46384,46384,11,46412,46412,11,46440,46440,11,46468,46468,11,46496,46496,11,46524,46524,11,46552,46552,11,46580,46580,11,46608,46608,11,46636,46636,11,46664,46664,11,46692,46692,11,46720,46720,11,46748,46748,11,46776,46776,11,46804,46804,11,46832,46832,11,46860,46860,11,46888,46888,11,46916,46916,11,46944,46944,11,46972,46972,11,47000,47000,11,47028,47028,11,47056,47056,11,47084,47084,11,47112,47112,11,47140,47140,11,47168,47168,11,47196,47196,11,47224,47224,11,47252,47252,11,47280,47280,11,47308,47308,11,47336,47336,11,47364,47364,11,47392,47392,11,47420,47420,11,47448,47448,11,47476,47476,11,47504,47504,11,47532,47532,11,47560,47560,11,47588,47588,11,47616,47616,11,47644,47644,11,47672,47672,11,47700,47700,11,47728,47728,11,47756,47756,11,47784,47784,11,47812,47812,11,47840,47840,11,47868,47868,11,47896,47896,11,47924,47924,11,47952,47952,11,47980,47980,11,48008,48008,11,48036,48036,11,48064,48064,11,48092,48092,11,48120,48120,11,48148,48148,11,48176,48176,11,48204,48204,11,48232,48232,11,48260,48260,11,48288,48288,11,48316,48316,11,48344,48344,11,48372,48372,11,48400,48400,11,48428,48428,11,48456,48456,11,48484,48484,11,48512,48512,11,48540,48540,11,48568,48568,11,48596,48596,11,48624,48624,11,48652,48652,11,48680,48680,11,48708,48708,11,48736,48736,11,48764,48764,11,48792,48792,11,48820,48820,11,48848,48848,11,48876,48876,11,48904,48904,11,48932,48932,11,48960,48960,11,48988,48988,11,49016,49016,11,49044,49044,11,49072,49072,11,49100,49100,11,49128,49128,11,49156,49156,11,49184,49184,11,49212,49212,11,49240,49240,11,49268,49268,11,49296,49296,11,49324,49324,11,49352,49352,11,49380,49380,11,49408,49408,11,49436,49436,11,49464,49464,11,49492,49492,11,49520,49520,11,49548,49548,11,49576,49576,11,49604,49604,11,49632,49632,11,49660,49660,11,49688,49688,11,49716,49716,11,49744,49744,11,49772,49772,11,49800,49800,11,49828,49828,11,49856,49856,11,49884,49884,11,49912,49912,11,49940,49940,11,49968,49968,11,49996,49996,11,50024,50024,11,50052,50052,11,50080,50080,11,50108,50108,11,50136,50136,11,50164,50164,11,50192,50192,11,50220,50220,11,50248,50248,11,50276,50276,11,50304,50304,11,50332,50332,11,50360,50360,11,50388,50388,11,50416,50416,11,50444,50444,11,50472,50472,11,50500,50500,11,50528,50528,11,50556,50556,11,50584,50584,11,50612,50612,11,50640,50640,11,50668,50668,11,50696,50696,11,50724,50724,11,50752,50752,11,50780,50780,11,50808,50808,11,50836,50836,11,50864,50864,11,50892,50892,11,50920,50920,11,50948,50948,11,50976,50976,11,51004,51004,11,51032,51032,11,51060,51060,11,51088,51088,11,51116,51116,11,51144,51144,11,51172,51172,11,51200,51200,11,51228,51228,11,51256,51256,11,51284,51284,11,51312,51312,11,51340,51340,11,51368,51368,11,51396,51396,11,51424,51424,11,51452,51452,11,51480,51480,11,51508,51508,11,51536,51536,11,51564,51564,11,51592,51592,11,51620,51620,11,51648,51648,11,51676,51676,11,51704,51704,11,51732,51732,11,51760,51760,11,51788,51788,11,51816,51816,11,51844,51844,11,51872,51872,11,51900,51900,11,51928,51928,11,51956,51956,11,51984,51984,11,52012,52012,11,52040,52040,11,52068,52068,11,52096,52096,11,52124,52124,11,52152,52152,11,52180,52180,11,52208,52208,11,52236,52236,11,52264,52264,11,52292,52292,11,52320,52320,11,52348,52348,11,52376,52376,11,52404,52404,11,52432,52432,11,52460,52460,11,52488,52488,11,52516,52516,11,52544,52544,11,52572,52572,11,52600,52600,11,52628,52628,11,52656,52656,11,52684,52684,11,52712,52712,11,52740,52740,11,52768,52768,11,52796,52796,11,52824,52824,11,52852,52852,11,52880,52880,11,52908,52908,11,52936,52936,11,52964,52964,11,52992,52992,11,53020,53020,11,53048,53048,11,53076,53076,11,53104,53104,11,53132,53132,11,53160,53160,11,53188,53188,11,53216,53216,11,53244,53244,11,53272,53272,11,53300,53300,11,53328,53328,11,53356,53356,11,53384,53384,11,53412,53412,11,53440,53440,11,53468,53468,11,53496,53496,11,53524,53524,11,53552,53552,11,53580,53580,11,53608,53608,11,53636,53636,11,53664,53664,11,53692,53692,11,53720,53720,11,53748,53748,11,53776,53776,11,53804,53804,11,53832,53832,11,53860,53860,11,53888,53888,11,53916,53916,11,53944,53944,11,53972,53972,11,54000,54000,11,54028,54028,11,54056,54056,11,54084,54084,11,54112,54112,11,54140,54140,11,54168,54168,11,54196,54196,11,54224,54224,11,54252,54252,11,54280,54280,11,54308,54308,11,54336,54336,11,54364,54364,11,54392,54392,11,54420,54420,11,54448,54448,11,54476,54476,11,54504,54504,11,54532,54532,11,54560,54560,11,54588,54588,11,54616,54616,11,54644,54644,11,54672,54672,11,54700,54700,11,54728,54728,11,54756,54756,11,54784,54784,11,54812,54812,11,54840,54840,11,54868,54868,11,54896,54896,11,54924,54924,11,54952,54952,11,54980,54980,11,55008,55008,11,55036,55036,11,55064,55064,11,55092,55092,11,55120,55120,11,55148,55148,11,55176,55176,11,55216,55238,9,64286,64286,5,65056,65071,5,65438,65439,5,65529,65531,4,66272,66272,5,68097,68099,5,68108,68111,5,68159,68159,5,68900,68903,5,69446,69456,5,69632,69632,7,69634,69634,7,69744,69744,5,69759,69761,5,69808,69810,7,69815,69816,7,69821,69821,1,69837,69837,1,69927,69931,5,69933,69940,5,70003,70003,5,70018,70018,7,70070,70078,5,70082,70083,1,70094,70094,7,70188,70190,7,70194,70195,7,70197,70197,7,70206,70206,5,70368,70370,7,70400,70401,5,70459,70460,5,70463,70463,7,70465,70468,7,70475,70477,7,70498,70499,7,70512,70516,5,70712,70719,5,70722,70724,5,70726,70726,5,70832,70832,5,70835,70840,5,70842,70842,5,70845,70845,5,70847,70848,5,70850,70851,5,71088,71089,7,71096,71099,7,71102,71102,7,71132,71133,5,71219,71226,5,71229,71229,5,71231,71232,5,71340,71340,7,71342,71343,7,71350,71350,7,71453,71455,5,71462,71462,7,71724,71726,7,71736,71736,7,71984,71984,5,71991,71992,7,71997,71997,7,71999,71999,1,72001,72001,1,72003,72003,5,72148,72151,5,72156,72159,7,72164,72164,7,72243,72248,5,72250,72250,1,72263,72263,5,72279,72280,7,72324,72329,1,72343,72343,7,72751,72751,7,72760,72765,5,72767,72767,5,72873,72873,7,72881,72881,7,72884,72884,7,73009,73014,5,73020,73021,5,73030,73030,1,73098,73102,7,73107,73108,7,73110,73110,7,73459,73460,5,78896,78904,4,92976,92982,5,94033,94087,7,94180,94180,5,113821,113822,5,118528,118573,5,119141,119141,5,119143,119145,5,119150,119154,5,119163,119170,5,119210,119213,5,121344,121398,5,121461,121461,5,121499,121503,5,122880,122886,5,122907,122913,5,122918,122922,5,123566,123566,5,125136,125142,5,126976,126979,14,126981,127182,14,127184,127231,14,127279,127279,14,127344,127345,14,127374,127374,14,127405,127461,14,127489,127490,14,127514,127514,14,127538,127546,14,127561,127567,14,127570,127743,14,127757,127758,14,127760,127760,14,127762,127762,14,127766,127768,14,127770,127770,14,127772,127772,14,127775,127776,14,127778,127779,14,127789,127791,14,127794,127795,14,127798,127798,14,127819,127819,14,127824,127824,14,127868,127868,14,127870,127871,14,127892,127893,14,127896,127896,14,127900,127901,14,127904,127940,14,127942,127942,14,127944,127944,14,127946,127946,14,127951,127955,14,127968,127971,14,127973,127984,14,127987,127987,14,127989,127989,14,127991,127991,14,127995,127999,5,128008,128008,14,128012,128014,14,128017,128018,14,128020,128020,14,128022,128022,14,128042,128042,14,128063,128063,14,128065,128065,14,128101,128101,14,128108,128109,14,128173,128173,14,128182,128183,14,128236,128237,14,128239,128239,14,128245,128245,14,128248,128248,14,128253,128253,14,128255,128258,14,128260,128263,14,128265,128265,14,128277,128277,14,128300,128301,14,128326,128328,14,128331,128334,14,128336,128347,14,128360,128366,14,128369,128370,14,128378,128378,14,128391,128391,14,128394,128397,14,128400,128400,14,128405,128406,14,128420,128420,14,128422,128423,14,128425,128432,14,128435,128443,14,128445,128449,14,128453,128464,14,128468,128475,14,128479,128480,14,128482,128482,14,128484,128487,14,128489,128494,14,128496,128498,14,128500,128505,14,128507,128511,14,128513,128518,14,128521,128525,14,128527,128527,14,128529,128529,14,128533,128533,14,128535,128535,14,128537,128537,14]")}function Y(q,ae){if(q===0)return 0;const ce=K(q,ae);if(ce!==void 0)return ce;const ge=new R(ae,q);return ge.prevCodePoint(),ge.offset}e.getLeftDeleteOffset=Y;function K(q,ae){const ce=new R(ae,q);let ge=ce.prevCodePoint();for(;H(ge)||ge===65039||ge===8419;){if(ce.offset===0)return;ge=ce.prevCodePoint()}if(!G(ge))return;let pe=ce.offset;return pe>0&&ce.prevCodePoint()===8205&&(pe=ce.offset),pe}function H(q){return 127995<=q&&q<=127999}e.noBreakWhitespace="\xA0";class z{static getInstance(ae){return y.cache.get(Array.from(ae))}static getLocales(){return y._locales.value}constructor(ae){this.confusableDictionary=ae}isAmbiguous(ae){return this.confusableDictionary.has(ae)}getPrimaryConfusable(ae){return this.confusableDictionary.get(ae)}getConfusableCodePoints(){return new Set(this.confusableDictionary.keys())}}e.AmbiguousCharacters=z,y=z,z.ambiguousCharacterData=new k.Lazy(()=>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,91,10088,40,10098,40,12308,40,64830,40,65341,93,10089,41,10099,41,12309,41,64831,41,10100,123,119060,123,10101,125,65342,94,8270,42,1645,42,8727,42,66335,42,5941,47,8257,47,8725,47,8260,47,9585,47,10187,47,10744,47,119354,47,12755,47,12339,47,11462,47,20031,47,12035,47,65340,92,65128,92,8726,92,10189,92,10741,92,10745,92,119311,92,119355,92,12756,92,20022,92,12034,92,42872,38,708,94,710,94,5869,43,10133,43,66203,43,8249,60,10094,60,706,60,119350,60,5176,60,5810,60,5120,61,11840,61,12448,61,42239,61,8250,62,10095,62,707,62,119351,62,5171,62,94015,62,8275,126,732,126,8128,126,8764,126,65372,124,65293,45,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,108,8739,73,9213,73,65512,73,1633,108,1777,73,66336,108,125127,108,120783,73,120793,73,120803,73,120813,73,120823,73,130033,73,65321,73,8544,73,8464,73,8465,73,119816,73,119868,73,119920,73,120024,73,120128,73,120180,73,120232,73,120284,73,120336,73,120388,73,120440,73,65356,108,8572,73,8467,108,119845,108,119897,108,119949,108,120001,108,120053,108,120105,73,120157,73,120209,73,120261,73,120313,73,120365,73,120417,73,120469,73,448,73,120496,73,120554,73,120612,73,120670,73,120728,73,11410,73,1030,73,1216,73,1493,108,1503,108,1575,108,126464,108,126592,108,65166,108,65165,108,1994,108,11599,73,5825,73,42226,73,93992,73,66186,124,66313,124,119338,76,8556,76,8466,76,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,65282,34,65284,36,65285,37,65286,38,65290,42,65291,43,65294,46,65295,47,65296,48,65297,49,65298,50,65299,51,65300,52,65301,53,65302,54,65303,55,65304,56,65305,57,65308,60,65309,61,65310,62,65312,64,65316,68,65318,70,65319,71,65324,76,65329,81,65330,82,65333,85,65334,86,65335,87,65343,95,65346,98,65348,100,65350,102,65355,107,65357,109,65358,110,65361,113,65362,114,65364,116,65365,117,65367,119,65370,122,65371,123,65373,125,119846,109],"_default":[160,32,8211,45,65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"cs":[65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"de":[65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"es":[8211,45,65374,126,65306,58,65281,33,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,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,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"fr":[65374,126,65306,58,65281,33,8216,96,8245,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"it":[160,32,8211,45,65374,126,65306,58,65281,33,8216,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"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,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65292,44,65307,59],"ko":[8211,45,65374,126,65306,58,65281,33,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"pl":[65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"pt-BR":[65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"qps-ploc":[160,32,8211,45,65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"ru":[65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,305,105,921,73,1009,112,215,120,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"tr":[160,32,8211,45,65374,126,65306,58,65281,33,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"zh-hans":[65374,126,65306,58,65281,33,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65288,40,65289,41],"zh-hant":[8211,45,65374,126,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65307,59]}')),z.cache=new L.LRUCachedFunction(q=>{function ae(_e){const Te=new Map;for(let Me=0;Me<_e.length;Me+=2)Te.set(_e[Me],_e[Me+1]);return Te}function ce(_e,Te){const Me=new Map(_e);for(const[Pe,Be]of Te)Me.set(Pe,Be);return Me}function ge(_e,Te){if(!_e)return Te;const Me=new Map;for(const[Pe,Be]of _e)Te.has(Pe)&&Me.set(Pe,Be);return Me}const pe=y.ambiguousCharacterData.value;let me=q.filter(_e=>!_e.startsWith("_")&&_e in pe);me.length===0&&(me=["_default"]);let ve;for(const _e of me){const Te=ae(pe[_e]);ve=ge(ve,Te)}const Ce=ae(pe._common),Se=ce(Ce,ve);return new y(Se)}),z._locales=new k.Lazy(()=>Object.keys(y.ambiguousCharacterData.value).filter(q=>!q.startsWith("_")));class se{static getRawData(){return JSON.parse("[9,10,11,12,13,32,127,160,173,847,1564,4447,4448,6068,6069,6155,6156,6157,6158,7355,7356,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8203,8204,8205,8206,8207,8234,8235,8236,8237,8238,8239,8287,8288,8289,8290,8291,8292,8293,8294,8295,8296,8297,8298,8299,8300,8301,8302,8303,10240,12288,12644,65024,65025,65026,65027,65028,65029,65030,65031,65032,65033,65034,65035,65036,65037,65038,65039,65279,65440,65520,65521,65522,65523,65524,65525,65526,65527,65528,65532,78844,119155,119156,119157,119158,119159,119160,119161,119162,917504,917505,917506,917507,917508,917509,917510,917511,917512,917513,917514,917515,917516,917517,917518,917519,917520,917521,917522,917523,917524,917525,917526,917527,917528,917529,917530,917531,917532,917533,917534,917535,917536,917537,917538,917539,917540,917541,917542,917543,917544,917545,917546,917547,917548,917549,917550,917551,917552,917553,917554,917555,917556,917557,917558,917559,917560,917561,917562,917563,917564,917565,917566,917567,917568,917569,917570,917571,917572,917573,917574,917575,917576,917577,917578,917579,917580,917581,917582,917583,917584,917585,917586,917587,917588,917589,917590,917591,917592,917593,917594,917595,917596,917597,917598,917599,917600,917601,917602,917603,917604,917605,917606,917607,917608,917609,917610,917611,917612,917613,917614,917615,917616,917617,917618,917619,917620,917621,917622,917623,917624,917625,917626,917627,917628,917629,917630,917631,917760,917761,917762,917763,917764,917765,917766,917767,917768,917769,917770,917771,917772,917773,917774,917775,917776,917777,917778,917779,917780,917781,917782,917783,917784,917785,917786,917787,917788,917789,917790,917791,917792,917793,917794,917795,917796,917797,917798,917799,917800,917801,917802,917803,917804,917805,917806,917807,917808,917809,917810,917811,917812,917813,917814,917815,917816,917817,917818,917819,917820,917821,917822,917823,917824,917825,917826,917827,917828,917829,917830,917831,917832,917833,917834,917835,917836,917837,917838,917839,917840,917841,917842,917843,917844,917845,917846,917847,917848,917849,917850,917851,917852,917853,917854,917855,917856,917857,917858,917859,917860,917861,917862,917863,917864,917865,917866,917867,917868,917869,917870,917871,917872,917873,917874,917875,917876,917877,917878,917879,917880,917881,917882,917883,917884,917885,917886,917887,917888,917889,917890,917891,917892,917893,917894,917895,917896,917897,917898,917899,917900,917901,917902,917903,917904,917905,917906,917907,917908,917909,917910,917911,917912,917913,917914,917915,917916,917917,917918,917919,917920,917921,917922,917923,917924,917925,917926,917927,917928,917929,917930,917931,917932,917933,917934,917935,917936,917937,917938,917939,917940,917941,917942,917943,917944,917945,917946,917947,917948,917949,917950,917951,917952,917953,917954,917955,917956,917957,917958,917959,917960,917961,917962,917963,917964,917965,917966,917967,917968,917969,917970,917971,917972,917973,917974,917975,917976,917977,917978,917979,917980,917981,917982,917983,917984,917985,917986,917987,917988,917989,917990,917991,917992,917993,917994,917995,917996,917997,917998,917999]")}static getData(){return this._data||(this._data=new Set(se.getRawData())),this._data}static isInvisibleCharacter(ae){return se.getData().has(ae)}static get codePoints(){return se.getData()}}e.InvisibleCharacters=se,se._data=void 0}),define(ie[71],ne([1,0,53,396,12]),function(Q,e,L,k,y){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.fuzzyScoreGracefulAggressive=e.fuzzyScore=e.FuzzyScoreOptions=e.FuzzyScore=e.isPatternInWord=e.createMatches=e.anyScore=e.matchesFuzzy2=e.matchesFuzzy=e.matchesWords=e.matchesCamelCase=e.isUpper=e.matchesSubString=e.matchesContiguousSubString=e.matchesPrefix=e.matchesStrictPrefix=e.or=void 0;function E(...q){return function(ae,ce){for(let ge=0,pe=q.length;ge0?[{start:0,end:ae.length}]:[]:null}function p(q,ae){const ce=ae.toLowerCase().indexOf(q.toLowerCase());return ce===-1?null:[{start:ce,end:ce+q.length}]}e.matchesContiguousSubString=p;function S(q,ae){return v(q.toLowerCase(),ae.toLowerCase(),0,0)}e.matchesSubString=S;function v(q,ae,ce,ge){if(ce===q.length)return[];if(ge===ae.length)return null;if(q[ce]===ae[ge]){let pe=null;return(pe=v(q,ae,ce+1,ge+1))?r({start:ge,end:ge+1},pe):null}return v(q,ae,ce,ge+1)}function b(q){return 97<=q&&q<=122}function o(q){return 65<=q&&q<=90}e.isUpper=o;function i(q){return 48<=q&&q<=57}function n(q){return q===32||q===9||q===10||q===13}const t=new Set;"()[]{}<>`'\"-/;:,.?!".split("").forEach(q=>t.add(q.charCodeAt(0)));function a(q){return n(q)||t.has(q)}function u(q,ae){return q===ae||a(q)&&a(ae)}const f=new Map;function c(q){if(f.has(q))return f.get(q);let ae;const ce=(0,k.getKoreanAltChars)(q);return ce&&(ae=ce),f.set(q,ae),ae}function d(q){return b(q)||o(q)||i(q)}function r(q,ae){return ae.length===0?ae=[q]:q.end===ae[0].start?ae[0].start=q.start:ae.unshift(q),ae}function l(q,ae){for(let ce=ae;ce0&&!d(q.charCodeAt(ce-1)))return ce}return q.length}function s(q,ae,ce,ge){if(ce===q.length)return[];if(ge===ae.length)return null;if(q[ce]!==ae[ge].toLowerCase())return null;{let pe=null,me=ge+1;for(pe=s(q,ae,ce+1,ge+1);!pe&&(me=l(ae,me)).6}function m(q){const{upperPercent:ae,lowerPercent:ce,alphaPercent:ge,numericPercent:pe}=q;return ce>.2&&ae<.8&&ge>.6&&pe<.2}function C(q){let ae=0,ce=0,ge=0,pe=0;for(let me=0;me60)return null;const ce=g(ae);if(!m(ce)){if(!h(ce))return null;ae=ae.toLowerCase()}let ge=null,pe=0;for(q=q.toLowerCase();pe0&&a(q.charCodeAt(ce-1)))return ce;return q.length}const A=E(e.matchesPrefix,w,p),O=E(e.matchesPrefix,w,S),T=new L.LRUCache(1e4);function N(q,ae,ce=!1){if(typeof q!="string"||typeof ae!="string")return null;let ge=T.get(q);ge||(ge=new RegExp(y.convertSimple2RegExpPattern(q),"i"),T.set(q,ge));const pe=ge.exec(ae);return pe?[{start:pe.index,end:pe.index+pe[0].length}]:ce?O(q,ae):A(q,ae)}e.matchesFuzzy=N;function P(q,ae){const ce=oe(q,q.toLowerCase(),0,ae,ae.toLowerCase(),0,{firstMatchCanBeWeak:!0,boostFullMatch:!0});return ce?R(ce):null}e.matchesFuzzy2=P;function x(q,ae,ce,ge,pe,me){const ve=Math.min(13,q.length);for(;ce"u")return[];const ae=[],ce=q[1];for(let ge=q.length-1;ge>1;ge--){const pe=q[ge]+ce,me=ae[ae.length-1];me&&me.end===pe?me.end=pe+1:ae.push({start:pe,end:pe+1})}return ae}e.createMatches=R;const B=128;function W(){const q=[],ae=[];for(let ce=0;ce<=B;ce++)ae[ce]=0;for(let ce=0;ce<=B;ce++)q.push(ae.slice(0));return q}function V(q){const ae=[];for(let ce=0;ce<=q;ce++)ae[ce]=0;return ae}const U=V(2*B),F=V(2*B),j=W(),J=W(),le=W(),ee=!1;function $(q,ae,ce,ge,pe){function me(Ce,Se,_e=" "){for(;Ce.lengthme(Ce,3)).join("|")}
`;for(let Ce=0;Ce<=ce;Ce++)Ce===0?ve+=" |":ve+=`${ae[Ce-1]}|`,ve+=q[Ce].slice(0,pe+1).map(Se=>me(Se.toString(),3)).join("|")+`
`;return ve}function te(q,ae,ce,ge){q=q.substr(ae),ce=ce.substr(ge),console.log($(J,q,q.length,ce,ce.length)),console.log($(le,q,q.length,ce,ce.length)),console.log($(j,q,q.length,ce,ce.length))}function G(q,ae){if(ae<0||ae>=q.length)return!1;const ce=q.codePointAt(ae);switch(ce){case 95:case 45:case 46:case 32:case 47:case 92:case 39:case 34:case 58:case 36:case 60:case 62:case 40:case 41:case 91:case 93:case 123:case 125:return!0;case void 0:return!1;default:return!!y.isEmojiImprecise(ce)}}function de(q,ae){if(ae<0||ae>=q.length)return!1;switch(q.charCodeAt(ae)){case 32:case 9:return!0;default:return!1}}function ue(q,ae,ce){return ae[q]!==ce[q]}function X(q,ae,ce,ge,pe,me,ve=!1){for(;aeB?B:q.length,Se=ge.length>B?B:ge.length;if(ce>=Ce||me>=Se||Ce-ce>Se-me||!X(ae,ce,Ce,pe,me,Se,!0))return;Y(Ce,Se,ce,me,ae,pe);let _e=1,Te=1,Me=ce,Pe=me;const Be=[!1];for(_e=1,Me=ce;Meke,nt=ot?J[_e][Te-1]+(j[_e][Te-1]>0?-5:0):0,rt=Pe>ke+1&&j[_e][Te-1]>0,Qe=rt?J[_e][Te-2]+(j[_e][Te-2]>0?-5:0):0;if(rt&&(!ot||Qe>=nt)&&(!je||Qe>=st))J[_e][Te]=Qe,le[_e][Te]=3,j[_e][Te]=0;else if(ot&&(!je||nt>=st))J[_e][Te]=nt,le[_e][Te]=2,j[_e][Te]=0;else if(je)J[_e][Te]=st,le[_e][Te]=1,j[_e][Te]=j[_e-1][Te-1]+1;else throw new Error("not possible")}}if(ee&&te(q,ce,ge,me),!Be[0]&&!ve.firstMatchCanBeWeak)return;_e--,Te--;const Le=[J[_e][Te],me];let Ne=0,fe=0;for(;_e>=1;){let ke=Te;do{const Re=le[_e][ke];if(Re===3)ke=ke-2;else if(Re===2)ke=ke-1;else break}while(ke>=1);Ne>1&&ae[ce+_e-1]===pe[me+Te-1]&&!ue(ke+me-1,ge,pe)&&Ne+1>j[_e][ke]&&(ke=Te),ke===Te?Ne++:Ne=1,fe||(fe=ke),_e--,Te=ke-1,Le.push(Te)}Se===Ce&&ve.boostFullMatch&&(Le[0]+=2);const be=fe-Ce;return Le[0]-=be,Le}e.fuzzyScore=oe;function Y(q,ae,ce,ge,pe,me){let ve=q-1,Ce=ae-1;for(;ve>=ce&&Ce>=ge;)pe[ve]===me[Ce]&&(F[ve]=Ce,ve--),Ce--}function K(q,ae,ce,ge,pe,me,ve,Ce,Se,_e,Te){if(ae[ce]!==me[ve])return Number.MIN_SAFE_INTEGER;let Me=1,Pe=!1;return ve===ce-ge?Me=q[ce]===pe[ve]?7:5:ue(ve,pe,me)&&(ve===0||!ue(ve-1,pe,me))?(Me=q[ce]===pe[ve]?7:5,Pe=!0):G(me,ve)&&(ve===0||!G(me,ve-1))?Me=5:(G(me,ve-1)||de(me,ve-1))&&(Me=5,Pe=!0),Me>1&&ce===ge&&(Te[0]=!0),Pe||(Pe=ue(ve,pe,me)||G(me,ve-1)||de(me,ve-1)),ce===ge?ve>Se&&(Me-=Pe?3:5):_e?Me+=Pe?2:0:Me+=Pe?0:1,ve+1===Ce&&(Me-=Pe?3:5),Me}function H(q,ae,ce,ge,pe,me,ve){return z(q,ae,ce,ge,pe,me,!0,ve)}e.fuzzyScoreGracefulAggressive=H;function z(q,ae,ce,ge,pe,me,ve,Ce){let Se=oe(q,ae,ce,ge,pe,me,Ce);if(Se&&!ve)return Se;if(q.length>=3){const _e=Math.min(7,q.length-1);for(let Te=ce+1;Te<_e;Te++){const Me=se(q,Te);if(Me){const Pe=oe(Me,Me.toLowerCase(),ce,ge,pe,me,Ce);Pe&&(Pe[0]-=3,(!Se||Pe[0]>Se[0])&&(Se=Pe))}}}return Se}function se(q,ae){if(ae+1>=q.length)return;const ce=q[ae],ge=q[ae+1];if(ce!==ge)return q.slice(0,ae)+ge+ce+q.slice(ae+2)}}),define(ie[122],ne([1,0,12]),function(Q,e,L){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.StringSHA1=e.toHexString=e.stringHash=e.numberHash=e.doHash=e.hash=void 0;function k(a){return y(a,0)}e.hash=k;function y(a,u){switch(typeof a){case"object":return a===null?E(349,u):Array.isArray(a)?S(a,u):v(a,u);case"string":return p(a,u);case"boolean":return _(a,u);case"number":return E(a,u);case"undefined":return E(937,u);default:return E(617,u)}}e.doHash=y;function E(a,u){return(u<<5)-u+a|0}e.numberHash=E;function _(a,u){return E(a?433:863,u)}function p(a,u){u=E(149417,u);for(let f=0,c=a.length;fy(c,f),u)}function v(a,u){return u=E(181387,u),Object.keys(a).sort().reduce((f,c)=>(f=p(c,f),y(a[c],f)),u)}function b(a,u,f=32){const c=f-u,d=~((1<>>c)>>>0}function o(a,u=0,f=a.byteLength,c=0){for(let d=0;df.toString(16).padStart(2,"0")).join(""):i((a>>>0).toString(16),u/4)}e.toHexString=n;class t{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(u){const f=u.length;if(f===0)return;const c=this._buff;let d=this._buffLen,r=this._leftoverHighSurrogate,l,s;for(r!==0?(l=r,s=-1,r=0):(l=u.charCodeAt(0),s=0);;){let g=l;if(L.isHighSurrogate(l))if(s+1>>6,u[f++]=128|(c&63)>>>0):c<65536?(u[f++]=224|(c&61440)>>>12,u[f++]=128|(c&4032)>>>6,u[f++]=128|(c&63)>>>0):(u[f++]=240|(c&1835008)>>>18,u[f++]=128|(c&258048)>>>12,u[f++]=128|(c&4032)>>>6,u[f++]=128|(c&63)>>>0),f>=64&&(this._step(),f-=64,this._totalLen+=64,u[0]=u[64+0],u[1]=u[64+1],u[2]=u[64+2]),f}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()),n(this._h0)+n(this._h1)+n(this._h2)+n(this._h3)+n(this._h4)}_wrapUp(){this._buff[this._buffLen++]=128,o(this._buff,this._buffLen),this._buffLen>56&&(this._step(),o(this._buff));const u=8*this._totalLen;this._buffDV.setUint32(56,Math.floor(u/4294967296),!1),this._buffDV.setUint32(60,u%4294967296,!1),this._step()}_step(){const u=t._bigBlock32,f=this._buffDV;for(let C=0;C<64;C+=4)u.setUint32(C,f.getUint32(C,!1),!1);for(let C=64;C<320;C+=4)u.setUint32(C,b(u.getUint32(C-12,!1)^u.getUint32(C-32,!1)^u.getUint32(C-56,!1)^u.getUint32(C-64,!1),1),!1);let c=this._h0,d=this._h1,r=this._h2,l=this._h3,s=this._h4,g,h,m;for(let C=0;C<80;C++)C<20?(g=d&r|~d&l,h=1518500249):C<40?(g=d^r^l,h=1859775393):C<60?(g=d&r|d&l|r&l,h=2400959708):(g=d^r^l,h=3395469782),m=b(c,5)+g+s+h+u.getUint32(C*4,!1)&4294967295,s=l,l=r,r=b(d,30),d=c,c=m;this._h0=this._h0+c&4294967295,this._h1=this._h1+d&4294967295,this._h2=this._h2+r&4294967295,this._h3=this._h3+l&4294967295,this._h4=this._h4+s&4294967295}}e.StringSHA1=t,t._bigBlock32=new DataView(new ArrayBuffer(320))}),define(ie[171],ne([1,0,392,122]),function(Q,e,L,k){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.LcsDiff=e.stringDiff=e.StringDiffSequence=void 0;class y{constructor(o){this.source=o}getElements(){const o=this.source,i=new Int32Array(o.length);for(let n=0,t=o.length;n0||this.m_modifiedCount>0)&&this.m_changes.push(new L.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(o,i){this.m_originalStart=Math.min(this.m_originalStart,o),this.m_modifiedStart=Math.min(this.m_modifiedStart,i),this.m_originalCount++}AddModifiedElement(o,i){this.m_originalStart=Math.min(this.m_originalStart,o),this.m_modifiedStart=Math.min(this.m_modifiedStart,i),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 v{constructor(o,i,n=null){this.ContinueProcessingPredicate=n,this._originalSequence=o,this._modifiedSequence=i;const[t,a,u]=v._getElements(o),[f,c,d]=v._getElements(i);this._hasStrings=u&&d,this._originalStringElements=t,this._originalElementsOrHash=a,this._modifiedStringElements=f,this._modifiedElementsOrHash=c,this.m_forwardHistory=[],this.m_reverseHistory=[]}static _isStringArray(o){return o.length>0&&typeof o[0]=="string"}static _getElements(o){const i=o.getElements();if(v._isStringArray(i)){const n=new Int32Array(i.length);for(let t=0,a=i.length;t=o&&t>=n&&this.ElementsAreEqual(i,t);)i--,t--;if(o>i||n>t){let l;return n<=t?(_.Assert(o===i+1,"originalStart should only be one more than originalEnd"),l=[new L.DiffChange(o,0,n,t-n+1)]):o<=i?(_.Assert(n===t+1,"modifiedStart should only be one more than modifiedEnd"),l=[new L.DiffChange(o,i-o+1,n,0)]):(_.Assert(o===i+1,"originalStart should only be one more than originalEnd"),_.Assert(n===t+1,"modifiedStart should only be one more than modifiedEnd"),l=[]),l}const u=[0],f=[0],c=this.ComputeRecursionPoint(o,i,n,t,u,f,a),d=u[0],r=f[0];if(c!==null)return c;if(!a[0]){const l=this.ComputeDiffRecursive(o,d,n,r,a);let s=[];return a[0]?s=[new L.DiffChange(d+1,i-(d+1)+1,r+1,t-(r+1)+1)]:s=this.ComputeDiffRecursive(d+1,i,r+1,t,a),this.ConcatenateChanges(l,s)}return[new L.DiffChange(o,i-o+1,n,t-n+1)]}WALKTRACE(o,i,n,t,a,u,f,c,d,r,l,s,g,h,m,C,w,D){let I=null,M=null,A=new S,O=i,T=n,N=g[0]-C[0]-t,P=-1073741824,x=this.m_forwardHistory.length-1;do{const R=N+o;R===O||R=0&&(d=this.m_forwardHistory[x],o=d[0],O=1,T=d.length-1)}while(--x>=-1);if(I=A.getReverseChanges(),D[0]){let R=g[0]+1,B=C[0]+1;if(I!==null&&I.length>0){const W=I[I.length-1];R=Math.max(R,W.getOriginalEnd()),B=Math.max(B,W.getModifiedEnd())}M=[new L.DiffChange(R,s-R+1,B,m-B+1)]}else{A=new S,O=u,T=f,N=g[0]-C[0]-c,P=1073741824,x=w?this.m_reverseHistory.length-1:this.m_reverseHistory.length-2;do{const R=N+a;R===O||R=r[R+1]?(l=r[R+1]-1,h=l-N-c,l>P&&A.MarkNextChange(),P=l+1,A.AddOriginalElement(l+1,h+1),N=R+1-a):(l=r[R-1],h=l-N-c,l>P&&A.MarkNextChange(),P=l,A.AddModifiedElement(l+1,h+1),N=R-1-a),x>=0&&(r=this.m_reverseHistory[x],a=r[0],O=1,T=r.length-1)}while(--x>=-1);M=A.getChanges()}return this.ConcatenateChanges(I,M)}ComputeRecursionPoint(o,i,n,t,a,u,f){let c=0,d=0,r=0,l=0,s=0,g=0;o--,n--,a[0]=0,u[0]=0,this.m_forwardHistory=[],this.m_reverseHistory=[];const h=i-o+(t-n),m=h+1,C=new Int32Array(m),w=new Int32Array(m),D=t-n,I=i-o,M=o-n,A=i-t,T=(I-D)%2===0;C[D]=o,w[I]=i,f[0]=!1;for(let N=1;N<=h/2+1;N++){let P=0,x=0;r=this.ClipDiagonalBound(D-N,N,D,m),l=this.ClipDiagonalBound(D+N,N,D,m);for(let B=r;B<=l;B+=2){B===r||BP+x&&(P=c,x=d),!T&&Math.abs(B-I)<=N-1&&c>=w[B])return a[0]=c,u[0]=d,W<=w[B]&&1447>0&&N<=1447+1?this.WALKTRACE(D,r,l,M,I,s,g,A,C,w,c,i,a,d,t,u,T,f):null}const R=(P-o+(x-n)-N)/2;if(this.ContinueProcessingPredicate!==null&&!this.ContinueProcessingPredicate(P,R))return f[0]=!0,a[0]=P,u[0]=x,R>0&&1447>0&&N<=1447+1?this.WALKTRACE(D,r,l,M,I,s,g,A,C,w,c,i,a,d,t,u,T,f):(o++,n++,[new L.DiffChange(o,i-o+1,n,t-n+1)]);s=this.ClipDiagonalBound(I-N,N,I,m),g=this.ClipDiagonalBound(I+N,N,I,m);for(let B=s;B<=g;B+=2){B===s||B=w[B+1]?c=w[B+1]-1:c=w[B-1],d=c-(B-I)-A;const W=c;for(;c>o&&d>n&&this.ElementsAreEqual(c,d);)c--,d--;if(w[B]=c,T&&Math.abs(B-D)<=N&&c<=C[B])return a[0]=c,u[0]=d,W>=C[B]&&1447>0&&N<=1447+1?this.WALKTRACE(D,r,l,M,I,s,g,A,C,w,c,i,a,d,t,u,T,f):null}if(N<=1447){let B=new Int32Array(l-r+2);B[0]=D-r+1,p.Copy2(C,r,B,1,l-r+1),this.m_forwardHistory.push(B),B=new Int32Array(g-s+2),B[0]=I-s+1,p.Copy2(w,s,B,1,g-s+1),this.m_reverseHistory.push(B)}}return this.WALKTRACE(D,r,l,M,I,s,g,A,C,w,c,i,a,d,t,u,T,f)}PrettifyChanges(o){for(let i=0;i0,f=n.modifiedLength>0;for(;n.originalStart+n.originalLength=0;i--){const n=o[i];let t=0,a=0;if(i>0){const l=o[i-1];t=l.originalStart+l.originalLength,a=l.modifiedStart+l.modifiedLength}const u=n.originalLength>0,f=n.modifiedLength>0;let c=0,d=this._boundaryScore(n.originalStart,n.originalLength,n.modifiedStart,n.modifiedLength);for(let l=1;;l++){const s=n.originalStart-l,g=n.modifiedStart-l;if(sd&&(d=m,c=l)}n.originalStart-=c,n.modifiedStart-=c;const r=[null];if(i>0&&this.ChangesOverlap(o[i-1],o[i],r)){o[i-1]=r[0],o.splice(i,1),i++;continue}}if(this._hasStrings)for(let i=1,n=o.length;i0&&g>c&&(c=g,d=l,r=s)}return c>0?[d,r]:null}_contiguousSequenceScore(o,i,n){let t=0;for(let a=0;a=this._originalElementsOrHash.length-1?!0:this._hasStrings&&/^\s*$/.test(this._originalStringElements[o])}_OriginalRegionIsBoundary(o,i){if(this._OriginalIsBoundary(o)||this._OriginalIsBoundary(o-1))return!0;if(i>0){const n=o+i;if(this._OriginalIsBoundary(n-1)||this._OriginalIsBoundary(n))return!0}return!1}_ModifiedIsBoundary(o){return o<=0||o>=this._modifiedElementsOrHash.length-1?!0:this._hasStrings&&/^\s*$/.test(this._modifiedStringElements[o])}_ModifiedRegionIsBoundary(o,i){if(this._ModifiedIsBoundary(o)||this._ModifiedIsBoundary(o-1))return!0;if(i>0){const n=o+i;if(this._ModifiedIsBoundary(n-1)||this._ModifiedIsBoundary(n))return!0}return!1}_boundaryScore(o,i,n,t){const a=this._OriginalRegionIsBoundary(o,i)?1:0,u=this._ModifiedRegionIsBoundary(n,t)?1:0;return a+u}ConcatenateChanges(o,i){const n=[];if(o.length===0||i.length===0)return i.length>0?i:o;if(this.ChangesOverlap(o[o.length-1],i[0],n)){const t=new Array(o.length+i.length-1);return p.Copy(o,0,t,0,o.length-1),t[o.length-1]=n[0],p.Copy(i,1,t,o.length,i.length-1),t}else{const t=new Array(o.length+i.length);return p.Copy(o,0,t,0,o.length),p.Copy(i,0,t,o.length,i.length),t}}ChangesOverlap(o,i,n){if(_.Assert(o.originalStart<=i.originalStart,"Left change is not less than or equal to right change"),_.Assert(o.modifiedStart<=i.modifiedStart,"Left change is not less than or equal to right change"),o.originalStart+o.originalLength>=i.originalStart||o.modifiedStart+o.modifiedLength>=i.modifiedStart){const t=o.originalStart;let a=o.originalLength;const u=o.modifiedStart;let f=o.modifiedLength;return o.originalStart+o.originalLength>=i.originalStart&&(a=i.originalStart+i.originalLength-o.originalStart),o.modifiedStart+o.modifiedLength>=i.modifiedStart&&(f=i.modifiedStart+i.modifiedLength-o.modifiedStart),n[0]=new L.DiffChange(t,a,u,f),!0}else return n[0]=null,!1}ClipDiagonalBound(o,i,n,t){if(o>=0&&o0?p[0].toUpperCase()+p.substr(1):_[0][0].toUpperCase()!==_[0][0]&&p.length>0?p[0].toLowerCase()+p.substr(1):p}else return p}e.buildReplaceStringWithCasePreserved=k;function y(_,p,S){return _[0].indexOf(S)!==-1&&p.indexOf(S)!==-1&&_[0].split(S).length===p.split(S).length}function E(_,p,S){const v=p.split(S),b=_[0].split(S);let o="";return v.forEach((i,n)=>{o+=k([b[n]],i)+S}),o.slice(0,-1)}}),define(ie[100],ne([1,0,12]),function(Q,e,L){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var k;(function(y){y[y.Ignore=0]="Ignore",y[y.Info=1]="Info",y[y.Warning=2]="Warning",y[y.Error=3]="Error"})(k||(k={})),function(y){const E="error",_="warning",p="warn",S="info",v="ignore";function b(i){return i?L.equalsIgnoreCase(E,i)?y.Error:L.equalsIgnoreCase(_,i)||L.equalsIgnoreCase(p,i)?y.Warning:L.equalsIgnoreCase(S,i)?y.Info:y.Ignore:y.Ignore}y.fromValue=b;function o(i){switch(i){case y.Error:return E;case y.Warning:return _;case y.Info:return S;default:return v}}y.toString=o}(k||(k={})),e.default=k}),define(ie[268],ne([1,0]),function(Q,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.MicrotaskDelay=void 0,e.MicrotaskDelay=Symbol("MicrotaskDelay")}),define(ie[199],ne([1,0,12]),function(Q,e,L){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.TernarySearchTree=e.UriIterator=e.PathIterator=e.ConfigKeysIterator=e.StringIterator=void 0;class k{constructor(){this._value="",this._pos=0}reset(b){return this._value=b,this._pos=0,this}next(){return this._pos+=1,this}hasNext(){return this._pos=0;o--,this._valueLen--){const i=this._value.charCodeAt(o);if(!(i===47||this._splitOnBackslash&&i===92))break}return this.next()}hasNext(){return this._to!1,o=()=>!1){return new S(new _(b,o))}static forStrings(){return new S(new k)}static forConfigKeys(){return new S(new y)}constructor(b){this._iter=b}clear(){this._root=void 0}set(b,o){const i=this._iter.reset(b);let n;this._root||(this._root=new p,this._root.segment=i.value());const t=[];for(n=this._root;;){const u=i.cmp(n.segment);if(u>0)n.left||(n.left=new p,n.left.segment=i.value()),t.push([-1,n]),n=n.left;else if(u<0)n.right||(n.right=new p,n.right.segment=i.value()),t.push([1,n]),n=n.right;else if(i.hasNext())i.next(),n.mid||(n.mid=new p,n.mid.segment=i.value()),t.push([0,n]),n=n.mid;else break}const a=n.value;n.value=o,n.key=b;for(let u=t.length-1;u>=0;u--){const f=t[u][1];f.updateHeight();const c=f.balanceFactor();if(c<-1||c>1){const d=t[u][0],r=t[u+1][0];if(d===1&&r===1)t[u][1]=f.rotateLeft();else if(d===-1&&r===-1)t[u][1]=f.rotateRight();else if(d===1&&r===-1)f.right=t[u+1][1]=t[u+1][1].rotateRight(),t[u][1]=f.rotateLeft();else if(d===-1&&r===1)f.left=t[u+1][1]=t[u+1][1].rotateLeft(),t[u][1]=f.rotateRight();else throw new Error;if(u>0)switch(t[u-1][0]){case-1:t[u-1][1].left=t[u][1];break;case 1:t[u-1][1].right=t[u][1];break;case 0:t[u-1][1].mid=t[u][1];break}else this._root=t[0][1]}}return a}get(b){var o;return(o=this._getNode(b))===null||o===void 0?void 0:o.value}_getNode(b){const o=this._iter.reset(b);let i=this._root;for(;i;){const n=o.cmp(i.segment);if(n>0)i=i.left;else if(n<0)i=i.right;else if(o.hasNext())o.next(),i=i.mid;else break}return i}has(b){const o=this._getNode(b);return!(o?.value===void 0&&o?.mid===void 0)}delete(b){return this._delete(b,!1)}deleteSuperstr(b){return this._delete(b,!0)}_delete(b,o){var i;const n=this._iter.reset(b),t=[];let a=this._root;for(;a;){const u=n.cmp(a.segment);if(u>0)t.push([-1,a]),a=a.left;else if(u<0)t.push([1,a]),a=a.right;else if(n.hasNext())n.next(),t.push([0,a]),a=a.mid;else break}if(a){if(o?(a.left=void 0,a.mid=void 0,a.right=void 0,a.height=1):(a.key=void 0,a.value=void 0),!a.mid&&!a.value)if(a.left&&a.right){const u=this._min(a.right);if(u.key){const{key:f,value:c,segment:d}=u;this._delete(u.key,!1),a.key=f,a.value=c,a.segment=d}}else{const u=(i=a.left)!==null&&i!==void 0?i:a.right;if(t.length>0){const[f,c]=t[t.length-1];switch(f){case-1:c.left=u;break;case 0:c.mid=u;break;case 1:c.right=u;break}}else this._root=u}for(let u=t.length-1;u>=0;u--){const f=t[u][1];f.updateHeight();const c=f.balanceFactor();if(c>1?(f.right.balanceFactor()>=0||(f.right=f.right.rotateRight()),t[u][1]=f.rotateLeft()):c<-1&&(f.left.balanceFactor()<=0||(f.left=f.left.rotateLeft()),t[u][1]=f.rotateRight()),u>0)switch(t[u-1][0]){case-1:t[u-1][1].left=t[u][1];break;case 1:t[u-1][1].right=t[u][1];break;case 0:t[u-1][1].mid=t[u][1];break}else this._root=t[0][1]}}}_min(b){for(;b.left;)b=b.left;return b}findSubstr(b){const o=this._iter.reset(b);let i=this._root,n;for(;i;){const t=o.cmp(i.segment);if(t>0)i=i.left;else if(t<0)i=i.right;else if(o.hasNext())o.next(),n=i.value||n,i=i.mid;else break}return i&&i.value||n}findSuperstr(b){return this._findSuperstrOrElement(b,!1)}_findSuperstrOrElement(b,o){const i=this._iter.reset(b);let n=this._root;for(;n;){const t=i.cmp(n.segment);if(t>0)n=n.left;else if(t<0)n=n.right;else if(i.hasNext())i.next(),n=n.mid;else return n.mid?this._entries(n.mid):o?n.value:void 0}}forEach(b){for(const[o,i]of this)b(i,o)}*[Symbol.iterator](){yield*this._entries(this._root)}_entries(b){const o=[];return this._dfsEntries(b,o),o[Symbol.iterator]()}_dfsEntries(b,o){b&&(b.left&&this._dfsEntries(b.left,o),b.value&&o.push([b.key,b.value]),b.mid&&this._dfsEntries(b.mid,o),b.right&&this._dfsEntries(b.right,o))}}e.TernarySearchTree=S}),define(ie[402],ne([1,0]),function(Q,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.normalizeTfIdfScores=e.TfIdfCalculator=void 0;function L(E){var _;const p=new Map;for(const S of E)p.set(S,((_=p.get(S))!==null&&_!==void 0?_:0)+1);return p}class k{constructor(){this.chunkCount=0,this.chunkOccurrences=new Map,this.documents=new Map}calculateScores(_,p){const S=this.computeEmbedding(_),v=new Map,b=[];for(const[o,i]of this.documents){if(p.isCancellationRequested)return[];for(const n of i.chunks){const t=this.computeSimilarityScore(n,S,v);t>0&&b.push({key:o,score:t})}}return b}static termFrequencies(_){return L(k.splitTerms(_))}static*splitTerms(_){const p=S=>S.toLowerCase();for(const[S]of _.matchAll(/\b\p{Letter}[\p{Letter}\d]{2,}\b/gu)){yield p(S);const v=S.replace(/([a-z])([A-Z])/g,"$1 $2").split(/\s+/g);if(v.length>1)for(const b of v)b.length>2&&/\p{Letter}{3,}/gu.test(b)&&(yield p(b))}}updateDocuments(_){var p;for(const{key:S}of _)this.deleteDocument(S);for(const S of _){const v=[];for(const b of S.textChunks){const o=k.termFrequencies(b);for(const i of o.keys())this.chunkOccurrences.set(i,((p=this.chunkOccurrences.get(i))!==null&&p!==void 0?p:0)+1);v.push({text:b,tf:o})}this.chunkCount+=v.length,this.documents.set(S.key,{chunks:v})}return this}deleteDocument(_){const p=this.documents.get(_);if(p){this.documents.delete(_),this.chunkCount-=p.chunks.length;for(const S of p.chunks)for(const v of S.tf.keys()){const b=this.chunkOccurrences.get(v);if(typeof b=="number"){const o=b-1;o<=0?this.chunkOccurrences.delete(v):this.chunkOccurrences.set(v,o)}}}}computeSimilarityScore(_,p,S){let v=0;for(const[b,o]of Object.entries(p)){const i=_.tf.get(b);if(!i)continue;let n=S.get(b);typeof n!="number"&&(n=this.computeIdf(b),S.set(b,n));const t=i*n;v+=t*o}return v}computeEmbedding(_){const p=k.termFrequencies(_);return this.computeTfidf(p)}computeIdf(_){var p;const S=(p=this.chunkOccurrences.get(_))!==null&&p!==void 0?p:0;return S>0?Math.log((this.chunkCount+1)/S):0}computeTfidf(_){const p=Object.create(null);for(const[S,v]of _){const b=this.computeIdf(S);b>0&&(p[S]=v*b)}return p}}e.TfIdfCalculator=k;function y(E){var _,p;const S=E.slice(0);S.sort((b,o)=>o.score-b.score);const v=(p=(_=S[0])===null||_===void 0?void 0:_.score)!==null&&p!==void 0?p:0;if(v>0)for(const b of S)b.score/=v;return S}e.normalizeTfIdfScores=y}),define(ie[20],ne([1,0]),function(Q,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.validateConstraint=e.validateConstraints=e.isFunction=e.assertIsDefined=e.assertType=e.isUndefinedOrNull=e.isDefined=e.isUndefined=e.isBoolean=e.isIterable=e.isNumber=e.isTypedArray=e.isObject=e.isString=void 0;function L(u){return typeof u=="string"}e.isString=L;function k(u){return typeof u=="object"&&u!==null&&!Array.isArray(u)&&!(u instanceof RegExp)&&!(u instanceof Date)}e.isObject=k;function y(u){const f=Object.getPrototypeOf(Uint8Array);return typeof u=="object"&&u instanceof f}e.isTypedArray=y;function E(u){return typeof u=="number"&&!isNaN(u)}e.isNumber=E;function _(u){return!!u&&typeof u[Symbol.iterator]=="function"}e.isIterable=_;function p(u){return u===!0||u===!1}e.isBoolean=p;function S(u){return typeof u>"u"}e.isUndefined=S;function v(u){return!b(u)}e.isDefined=v;function b(u){return S(u)||u===null}e.isUndefinedOrNull=b;function o(u,f){if(!u)throw new Error(f?`Unexpected type, expected '${f}'`:"Unexpected type")}e.assertType=o;function i(u){if(b(u))throw new Error("Assertion Failed: argument is undefined or null");return u}e.assertIsDefined=i;function n(u){return typeof u=="function"}e.isFunction=n;function t(u,f){const c=Math.min(u.length,f.length);for(let d=0;d{t[a]=u&&typeof u=="object"?k(u):u}),t}e.deepClone=k;function y(n){if(!n||typeof n!="object")return n;const t=[n];for(;t.length>0;){const a=t.shift();Object.freeze(a);for(const u in a)if(E.call(a,u)){const f=a[u];typeof f=="object"&&!Object.isFrozen(f)&&!(0,L.isTypedArray)(f)&&t.push(f)}}return n}e.deepFreeze=y;const E=Object.prototype.hasOwnProperty;function _(n,t){return p(n,t,new Set)}e.cloneAndChange=_;function p(n,t,a){if((0,L.isUndefinedOrNull)(n))return n;const u=t(n);if(typeof u<"u")return u;if(Array.isArray(n)){const f=[];for(const c of n)f.push(p(c,t,a));return f}if((0,L.isObject)(n)){if(a.has(n))throw new Error("Cannot clone recursive data-structure");a.add(n);const f={};for(const c in n)E.call(n,c)&&(f[c]=p(n[c],t,a));return a.delete(n),f}return n}function S(n,t,a=!0){return(0,L.isObject)(n)?((0,L.isObject)(t)&&Object.keys(t).forEach(u=>{u in n?a&&((0,L.isObject)(n[u])&&(0,L.isObject)(t[u])?S(n[u],t[u],a):n[u]=t[u]):n[u]=t[u]}),n):t}e.mixin=S;function v(n,t){if(n===t)return!0;if(n==null||t===null||t===void 0||typeof n!=typeof t||typeof n!="object"||Array.isArray(n)!==Array.isArray(t))return!1;let a,u;if(Array.isArray(n)){if(n.length!==t.length)return!1;for(a=0;afunction(){const c=Array.prototype.slice.call(arguments,0);return t(f,c)},u={};for(const f of n)u[f]=a(f);return u}e.createProxyObject=i}),define(ie[27],ne([1,0,26]),function(Q,e,L){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ThemeIcon=e.ThemeColor=void 0;var k;(function(E){function _(p){return p&&typeof p=="object"&&typeof p.id=="string"}E.isThemeColor=_})(k||(e.ThemeColor=k={}));var y;(function(E){E.iconNameSegment="[A-Za-z0-9]+",E.iconNameExpression="[A-Za-z0-9-]+",E.iconModifierExpression="~[A-Za-z]+",E.iconNameCharacter="[A-Za-z0-9~-]";const _=new RegExp(`^(${E.iconNameExpression})(${E.iconModifierExpression})?$`);function p(f){const c=_.exec(f.id);if(!c)return p(L.Codicon.error);const[,d,r]=c,l=["codicon","codicon-"+d];return r&&l.push("codicon-modifier-"+r.substring(1)),l}E.asClassNameArray=p;function S(f){return p(f).join(" ")}E.asClassName=S;function v(f){return"."+p(f).join(".")}E.asCSSSelector=v;function b(f){return f&&typeof f=="object"&&typeof f.id=="string"&&(typeof f.color>"u"||k.isThemeColor(f.color))}E.isThemeIcon=b;const o=new RegExp(`^\\$\\((${E.iconNameExpression}(?:${E.iconModifierExpression})?)\\)$`);function i(f){const c=o.exec(f);if(!c)return;const[,d]=c;return{id:d}}E.fromString=i;function n(f){return{id:f}}E.fromId=n;function t(f,c){let d=f.id;const r=d.lastIndexOf("~");return r!==-1&&(d=d.substring(0,r)),c&&(d=`${d}~${c}`),{id:d}}E.modify=t;function a(f){const c=f.id.lastIndexOf("~");if(c!==-1)return f.id.substring(c+1)}E.getModifier=a;function u(f,c){var d,r;return f.id===c.id&&((d=f.color)===null||d===void 0?void 0:d.id)===((r=c.color)===null||r===void 0?void 0:r.id)}E.isEqual=u})(y||(e.ThemeIcon=y={}))}),define(ie[123],ne([1,0,71,12,27]),function(Q,e,L,k,y){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.matchesFuzzyIconAware=e.parseLabelWithIcons=e.getCodiconAriaLabel=e.stripIcons=e.markdownEscapeEscapedIcons=e.escapeIcons=void 0;const E="$(",_=new RegExp(`\\$\\(${y.ThemeIcon.iconNameExpression}(?:${y.ThemeIcon.iconModifierExpression})?\\)`,"g"),p=new RegExp(`(\\\\)?${_.source}`,"g");function S(f){return f.replace(p,(c,d)=>d?c:`\\${c}`)}e.escapeIcons=S;const v=new RegExp(`\\\\${_.source}`,"g");function b(f){return f.replace(v,c=>`\\${c}`)}e.markdownEscapeEscapedIcons=b;const o=new RegExp(`(\\s)?(\\\\)?${_.source}(\\s)?`,"g");function i(f){return f.indexOf(E)===-1?f:f.replace(o,(c,d,r,l)=>r?c:d||l||"")}e.stripIcons=i;function n(f){return f?f.replace(/\$\((.*?)\)/g,(c,d)=>` ${d} `).trim():""}e.getCodiconAriaLabel=n;const t=new RegExp(`\\$\\(${y.ThemeIcon.iconNameCharacter}+\\)`,"g");function a(f){t.lastIndex=0;let c="";const d=[];let r=0;for(;;){const l=t.lastIndex,s=t.exec(f),g=f.substring(l,s?.index);if(g.length>0){c+=g;for(let h=0;h255?255:y|0}e.toUint8=L;function k(y){return y<0?0:y>4294967295?4294967295:y|0}e.toUint32=k}),define(ie[173],ne([1,0]),function(Q,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.generateUuid=void 0,e.generateUuid=function(){if(typeof crypto=="object"&&typeof crypto.randomUUID=="function")return crypto.randomUUID.bind(crypto);let L;typeof crypto=="object"&&typeof crypto.getRandomValues=="function"?L=crypto.getRandomValues.bind(crypto):L=function(E){for(let _=0;_o,asFile:()=>{},value:typeof o=="string"?o:void 0}}e.createStringDataTransferItem=E;function _(o,i,n){const t={id:(0,y.generateUuid)(),name:o,uri:i,data:n};return{asString:async()=>"",asFile:()=>t,value:void 0}}e.createFileDataTransferItem=_;class p{constructor(){this._entries=new Map}get size(){let i=0;for(const n of this._entries)i++;return i}has(i){return this._entries.has(this.toKey(i))}matches(i){const n=[...this._entries.keys()];return k.Iterable.some(this,([t,a])=>a.asFile())&&n.push("files"),b(S(i),n)}get(i){var n;return(n=this._entries.get(this.toKey(i)))===null||n===void 0?void 0:n[0]}append(i,n){const t=this._entries.get(i);t?t.push(n):this._entries.set(this.toKey(i),[n])}replace(i,n){this._entries.set(this.toKey(i),[n])}delete(i){this._entries.delete(this.toKey(i))}*[Symbol.iterator](){for(const[i,n]of this._entries)for(const t of n)yield[i,t]}toKey(i){return S(i)}}e.VSDataTransfer=p;function S(o){return o.toLowerCase()}function v(o,i){return b(S(o),i.map(S))}e.matchesMimeType=v;function b(o,i){if(o==="*/*")return i.length>0;if(i.includes(o))return!0;const n=o.match(/^([a-z]+)\/([a-z]+|\*)$/i);if(!n)return!1;const[t,a,u]=n;return u==="*"?i.some(f=>f.startsWith(a+"/")):!1}e.UriList=Object.freeze({create:o=>(0,L.distinct)(o.map(i=>i.toString())).join(`\r
`),split:o=>o.split(`\r
`),parse:o=>e.UriList.split(o).filter(i=>!i.startsWith("#"))})}),define(ie[269],ne([10]),{}),define(ie[403],ne([10]),{}),define(ie[404],ne([10]),{}),define(ie[405],ne([10]),{}),define(ie[406],ne([10]),{}),define(ie[175],ne([1,0,405,406]),function(Q,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0})}),define(ie[407],ne([10]),{}),define(ie[408],ne([10]),{}),define(ie[270],ne([10]),{}),define(ie[271],ne([10]),{}),define(ie[409],ne([10]),{}),define(ie[410],ne([10]),{}),define(ie[411],ne([10]),{}),define(ie[412],ne([10]),{}),define(ie[272],ne([10]),{}),define(ie[413],ne([10]),{}),define(ie[200],ne([1,0,413]),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(ie[414],ne([10]),{}),define(ie[415],ne([10]),{}),define(ie[416],ne([10]),{}),define(ie[417],ne([10]),{}),define(ie[418],ne([10]),{}),define(ie[419],ne([10]),{}),define(ie[420],ne([10]),{}),define(ie[421],ne([10]),{}),define(ie[422],ne([10]),{}),define(ie[423],ne([10]),{}),define(ie[424],ne([10]),{}),define(ie[425],ne([10]),{}),define(ie[426],ne([10]),{}),define(ie[427],ne([10]),{}),define(ie[428],ne([10]),{}),define(ie[429],ne([10]),{}),define(ie[430],ne([10]),{}),define(ie[431],ne([10]),{}),define(ie[432],ne([10]),{}),define(ie[433],ne([10]),{}),define(ie[434],ne([10]),{}),define(ie[435],ne([10]),{}),define(ie[436],ne([10]),{}),define(ie[437],ne([10]),{}),define(ie[438],ne([10]),{}),define(ie[439],ne([10]),{}),define(ie[440],ne([10]),{}),define(ie[441],ne([10]),{}),define(ie[442],ne([10]),{}),define(ie[443],ne([10]),{}),define(ie[444],ne([10]),{}),define(ie[445],ne([10]),{}),define(ie[446],ne([10]),{}),define(ie[447],ne([10]),{}),define(ie[448],ne([10]),{}),define(ie[449],ne([10]),{}),define(ie[201],ne([10]),{}),define(ie[450],ne([10]),{}),define(ie[451],ne([10]),{}),define(ie[452],ne([10]),{}),define(ie[453],ne([10]),{}),define(ie[454],ne([10]),{}),define(ie[455],ne([10]),{}),define(ie[456],ne([10]),{}),define(ie[457],ne([10]),{}),define(ie[458],ne([10]),{}),define(ie[459],ne([10]),{}),define(ie[460],ne([10]),{}),define(ie[461],ne([10]),{}),define(ie[462],ne([10]),{}),define(ie[463],ne([10]),{}),define(ie[464],ne([10]),{}),define(ie[465],ne([10]),{}),define(ie[466],ne([10]),{}),define(ie[467],ne([10]),{}),define(ie[468],ne([10]),{}),define(ie[469],ne([10]),{}),define(ie[470],ne([10]),{}),define(ie[471],ne([10]),{}),define(ie[472],ne([10]),{}),define(ie[473],ne([10]),{}),define(ie[474],ne([10]),{}),define(ie[475],ne([10]),{}),define(ie[476],ne([10]),{}),define(ie[477],ne([10]),{}),define(ie[478],ne([10]),{}),define(ie[479],ne([10]),{}),define(ie[480],ne([10]),{}),define(ie[481],ne([10]),{}),define(ie[273],ne([10]),{}),define(ie[482],ne([10]),{}),define(ie[483],ne([10]),{}),define(ie[176],ne([10]),{}),define(ie[484],ne([10]),{}),define(ie[72],ne([1,0,40]),function(Q,e,L){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.applyFontInfo=void 0;function k(y,E){y instanceof L.FastDomNode?(y.setFontFamily(E.getMassagedFontFamily()),y.setFontWeight(E.fontWeight),y.setFontSize(E.fontSize),y.setFontFeatureSettings(E.fontFeatureSettings),y.setFontVariationSettings(E.fontVariationSettings),y.setLineHeight(E.lineHeight),y.setLetterSpacing(E.letterSpacing)):(y.style.fontFamily=E.getMassagedFontFamily(),y.style.fontWeight=E.fontWeight,y.style.fontSize=E.fontSize+"px",y.style.fontFeatureSettings=E.fontFeatureSettings,y.style.fontVariationSettings=E.fontVariationSettings,y.style.lineHeight=E.lineHeight+"px",y.style.letterSpacing=E.letterSpacing+"px")}e.applyFontInfo=k}),define(ie[485],ne([1,0,48,72]),function(Q,e,L,k){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.readCharWidths=e.CharWidthRequest=void 0;class y{constructor(S,v){this.chr=S,this.type=v,this.width=0}fulfill(S){this.width=S}}e.CharWidthRequest=y;class E{constructor(S,v){this._bareFontInfo=S,this._requests=v,this._container=null,this._testElements=null}read(){this._createDomElements(),L.$window.document.body.appendChild(this._container),this._readFromDomElements(),L.$window.document.body.removeChild(this._container),this._container=null,this._testElements=null}_createDomElements(){const S=document.createElement("div");S.style.position="absolute",S.style.top="-50000px",S.style.width="50000px";const v=document.createElement("div");(0,k.applyFontInfo)(v,this._bareFontInfo),S.appendChild(v);const b=document.createElement("div");(0,k.applyFontInfo)(b,this._bareFontInfo),b.style.fontWeight="bold",S.appendChild(b);const o=document.createElement("div");(0,k.applyFontInfo)(o,this._bareFontInfo),o.style.fontStyle="italic",S.appendChild(o);const i=[];for(const n of this._requests){let t;n.type===0&&(t=v),n.type===2&&(t=b),n.type===1&&(t=o),t.appendChild(document.createElement("br"));const a=document.createElement("span");E._render(a,n),t.appendChild(a),i.push(a)}this._container=S,this._testElements=i}static _render(S,v){if(v.chr===" "){let b="\xA0";for(let o=0;o<8;o++)b+=b;S.innerText=b}else{let b=v.chr;for(let o=0;o<8;o++)b+=b;S.textContent=b}}_readFromDomElements(){for(let S=0,v=this._requests.length;SL._read(S,i),o=(i,n)=>L._write(S,i,n);this.migrate(v,b,o)}static _read(S,v){if(typeof S>"u")return;const b=v.indexOf(".");if(b>=0){const o=v.substring(0,b);return this._read(S[o],v.substring(b+1))}return S[v]}static _write(S,v,b){const o=v.indexOf(".");if(o>=0){const i=v.substring(0,o);S[i]=S[i]||{},this._write(S[i],v.substring(o+1),b);return}S[v]=b}}e.EditorSettingMigration=L,L.items=[];function k(p,S){L.items.push(new L(p,S))}function y(p,S){k(p,(v,b,o)=>{if(typeof v<"u"){for(const[i,n]of S)if(v===i){o(p,n);return}}})}function E(p){L.items.forEach(S=>S.apply(p))}e.migrateOptions=E,y("wordWrap",[[!0,"on"],[!1,"off"]]),y("lineNumbers",[[!0,"on"],[!1,"off"]]),y("cursorBlinking",[["visible","solid"]]),y("renderWhitespace",[[!0,"boundary"],[!1,"none"]]),y("renderLineHighlight",[[!0,"line"],[!1,"none"]]),y("acceptSuggestionOnEnter",[[!0,"on"],[!1,"off"]]),y("tabCompletion",[[!1,"off"],[!0,"onlySnippets"]]),y("hover",[[!0,{enabled:!0}],[!1,{enabled:!1}]]),y("parameterHints",[[!0,{enabled:!0}],[!1,{enabled:!1}]]),y("autoIndent",[[!1,"advanced"],[!0,"full"]]),y("matchBrackets",[[!0,"always"],[!1,"never"]]),y("renderFinalNewline",[[!0,"on"],[!1,"off"]]),y("cursorSmoothCaretAnimation",[[!0,"on"],[!1,"off"]]),y("occurrencesHighlight",[[!0,"singleFile"],[!1,"off"]]),y("wordBasedSuggestions",[[!0,"matchingDocuments"],[!1,"off"]]),k("autoClosingBrackets",(p,S,v)=>{p===!1&&(v("autoClosingBrackets","never"),typeof S("autoClosingQuotes")>"u"&&v("autoClosingQuotes","never"),typeof S("autoSurround")>"u"&&v("autoSurround","never"))}),k("renderIndentGuides",(p,S,v)=>{typeof p<"u"&&(v("renderIndentGuides",void 0),typeof S("guides.indentation")>"u"&&v("guides.indentation",!!p))}),k("highlightActiveIndentGuide",(p,S,v)=>{typeof p<"u"&&(v("highlightActiveIndentGuide",void 0),typeof S("guides.highlightActiveIndentation")>"u"&&v("guides.highlightActiveIndentation",!!p))});const _={method:"showMethods",function:"showFunctions",constructor:"showConstructors",deprecated:"showDeprecated",field:"showFields",variable:"showVariables",class:"showClasses",struct:"showStructs",interface:"showInterfaces",module:"showModules",property:"showProperties",event:"showEvents",operator:"showOperators",unit:"showUnits",value:"showValues",constant:"showConstants",enum:"showEnums",enumMember:"showEnumMembers",keyword:"showKeywords",text:"showWords",color:"showColors",file:"showFiles",reference:"showReferences",folder:"showFolders",typeParameter:"showTypeParameters",snippet:"showSnippets"};k("suggest.filteredTypes",(p,S,v)=>{if(p&&typeof p=="object"){for(const b of Object.entries(_))p[b[0]]===!1&&typeof S(`suggest.${b[1]}`)>"u"&&v(`suggest.${b[1]}`,!1);v("suggest.filteredTypes",void 0)}}),k("quickSuggestions",(p,S,v)=>{if(typeof p=="boolean"){const b=p?"on":"off";v("quickSuggestions",{comments:b,strings:b,other:b})}}),k("experimental.stickyScroll.enabled",(p,S,v)=>{typeof p=="boolean"&&(v("experimental.stickyScroll.enabled",void 0),typeof S("stickyScroll.enabled")>"u"&&v("stickyScroll.enabled",p))}),k("experimental.stickyScroll.maxLineCount",(p,S,v)=>{typeof p=="number"&&(v("experimental.stickyScroll.maxLineCount",void 0),typeof S("stickyScroll.maxLineCount")>"u"&&v("stickyScroll.maxLineCount",p))}),k("codeActionsOnSave",(p,S,v)=>{if(p&&typeof p=="object"){let b=!1;const o={};for(const i of Object.entries(p))typeof i[1]=="boolean"?(b=!0,o[i[0]]=i[1]?"explicit":"never"):o[i[0]]=i[1];b&&v("codeActionsOnSave",o)}}),k("codeActionWidget.includeNearbyQuickfixes",(p,S,v)=>{typeof p=="boolean"&&(v("codeActionWidget.includeNearbyQuickfixes",void 0),typeof S("codeActionWidget.includeNearbyQuickFixes")>"u"&&v("codeActionWidget.includeNearbyQuickFixes",p))})}),define(ie[202],ne([1,0,6]),function(Q,e,L){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.TabFocus=void 0;class k{constructor(){this._tabFocus=!1,this._onDidChangeTabFocus=new L.Emitter,this.onDidChangeTabFocus=this._onDidChangeTabFocus.event}getTabFocusMode(){return this._tabFocus}setTabFocusMode(E){this._tabFocus=E,this._onDidChangeTabFocus.fire(this._tabFocus)}}e.TabFocus=new k}),define(ie[124],ne([1,0]),function(Q,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.StableEditorScrollState=void 0;class L{static capture(y){if(y.getScrollTop()===0||y.hasPendingScrollAnimation())return new L(y.getScrollTop(),y.getContentHeight(),null,0,null);let E=null,_=0;const p=y.getVisibleRanges();if(p.length>0){E=p[0].getStartPosition();const S=y.getTopForPosition(E.lineNumber,E.column);_=y.getScrollTop()-S}return new L(y.getScrollTop(),y.getContentHeight(),E,_,y.getPosition())}constructor(y,E,_,p,S){this._initialScrollTop=y,this._initialContentHeight=E,this._visiblePosition=_,this._visiblePositionScrollDelta=p,this._cursorPosition=S}restore(y){if(!(this._initialContentHeight===y.getContentHeight()&&this._initialScrollTop===y.getScrollTop())&&this._visiblePosition){const E=y.getTopForPosition(this._visiblePosition.lineNumber,this._visiblePosition.column);y.setScrollTop(E+this._visiblePositionScrollDelta)}}restoreRelativeVerticalPositionOfCursor(y){if(this._initialContentHeight===y.getContentHeight()&&this._initialScrollTop===y.getScrollTop())return;const E=y.getPosition();if(!this._cursorPosition||!E)return;const _=y.getTopForLineNumber(E.lineNumber)-y.getTopForLineNumber(this._cursorPosition.lineNumber);y.setScrollTop(y.getScrollTop()+_)}}e.StableEditorScrollState=L}),define(ie[146],ne([1,0]),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 L{constructor(b,o){this._restrictedRenderingContextBrand=void 0,this._viewLayout=b,this.viewportData=o,this.scrollWidth=this._viewLayout.getScrollWidth(),this.scrollHeight=this._viewLayout.getScrollHeight(),this.visibleRange=this.viewportData.visibleRange,this.bigNumbersDelta=this.viewportData.bigNumbersDelta;const i=this._viewLayout.getCurrentViewport();this.scrollTop=i.top,this.scrollLeft=i.left,this.viewportWidth=i.width,this.viewportHeight=i.height}getScrolledTopFromAbsoluteTop(b){return b-this.scrollTop}getVerticalOffsetForLineNumber(b,o){return this._viewLayout.getVerticalOffsetForLineNumber(b,o)}getVerticalOffsetAfterLineNumber(b,o){return this._viewLayout.getVerticalOffsetAfterLineNumber(b,o)}getDecorationsInViewport(){return this.viewportData.getDecorationsInViewport()}}e.RestrictedRenderingContext=L;class k extends L{constructor(b,o,i){super(b,o),this._renderingContextBrand=void 0,this._viewLines=i}linesVisibleRangesForRange(b,o){return this._viewLines.linesVisibleRangesForRange(b,o)}visibleRangeForPosition(b){return this._viewLines.visibleRangeForPosition(b)}}e.RenderingContext=k;class y{constructor(b,o,i,n){this.outsideRenderedLine=b,this.lineNumber=o,this.ranges=i,this.continuesOnNextLine=n}}e.LineVisibleRanges=y;class E{static from(b){const o=new Array(b.length);for(let i=0,n=b.length;i=o.left?S.width=Math.max(S.width,o.left+o.width-S.left):(_[p++]=S,S=o)}return _[p++]=S,_}static _createHorizontalRangesFromClientRects(E,_,p){if(!E||E.length===0)return null;const S=[];for(let v=0,b=E.length;vi)return null;if(_=Math.min(i,Math.max(0,_)),S=Math.min(i,Math.max(0,S)),_===S&&p===v&&p===0&&!E.children[_].firstChild){const u=E.children[_].getClientRects();return b.markDidDomLayout(),this._createHorizontalRangesFromClientRects(u,b.clientRectDeltaLeft,b.clientRectScale)}_!==S&&S>0&&v===0&&(S--,v=1073741824);let n=E.children[_].firstChild,t=E.children[S].firstChild;if((!n||!t)&&(!n&&p===0&&_>0&&(n=E.children[_-1].firstChild,p=1073741824),!t&&v===0&&S>0&&(t=E.children[S-1].firstChild,v=1073741824)),!n||!t)return null;p=Math.min(n.textContent.length,Math.max(0,p)),v=Math.min(t.textContent.length,Math.max(0,v));const a=this._readClientRects(n,p,t,v,b.endNode);return b.markDidDomLayout(),this._createHorizontalRangesFromClientRects(a,b.clientRectDeltaLeft,b.clientRectScale)}}e.RangeUtil=k}),define(ie[274],ne([1,0]),function(Q,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getCharIndex=e.allCharCodes=void 0,e.allCharCodes=(()=>{const k=[];for(let y=32;y<=126;y++)k.push(y);return k.push(65533),k})();const L=(k,y)=>(k-=32,k<0||k>96?y<=2?(k+96)%96:96-1:k);e.getCharIndex=L}),define(ie[489],ne([1,0,274,172]),function(Q,e,L,k){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.MinimapCharRenderer=void 0;class y{constructor(_,p){this.scale=p,this._minimapCharRendererBrand=void 0,this.charDataNormal=y.soften(_,12/15),this.charDataLight=y.soften(_,50/60)}static soften(_,p){const S=new Uint8ClampedArray(_.length);for(let v=0,b=_.length;v_.width||S+d>_.height){console.warn("bad render request outside image data");return}const r=a?this.charDataLight:this.charDataNormal,l=(0,L.getCharIndex)(v,t),s=_.width*4,g=i.r,h=i.g,m=i.b,C=b.r-g,w=b.g-h,D=b.b-m,I=Math.max(o,n),M=_.data;let A=l*f*c,O=S*s+p*4;for(let T=0;T_.width||S+u>_.height){console.warn("bad render request outside image data");return}const f=_.width*4,c=.5*(b/255),d=o.r,r=o.g,l=o.b,s=v.r-d,g=v.g-r,h=v.b-l,m=d+s*c,C=r+g*c,w=l+h*c,D=Math.max(b,i),I=_.data;let M=S*f+p*4;for(let A=0;A{const _=new Uint8ClampedArray(E.length/2);for(let p=0;p>1]=k[E[p]]<<4|k[E[p+1]]&15;return _};e.prebakedMiniMaps={1:(0,L.createSingleCallFunction)(()=>y("0000511D6300CF609C709645A78432005642574171487021003C451900274D35D762755E8B629C5BA856AF57BA649530C167D1512A272A3F6038604460398526BCA2A968DB6F8957C768BE5FBE2FB467CF5D8D5B795DC7625B5DFF50DE64C466DB2FC47CD860A65E9A2EB96CB54CE06DA763AB2EA26860524D3763536601005116008177A8705E53AB738E6A982F88BAA35B5F5B626D9C636B449B737E5B7B678598869A662F6B5B8542706C704C80736A607578685B70594A49715A4522E792")),2:(0,L.createSingleCallFunction)(()=>y("000000000000000055394F383D2800008B8B1F210002000081B1CBCBCC820000847AAF6B9AAF2119BE08B8881AD60000A44FD07DCCF107015338130C00000000385972265F390B406E2437634B4B48031B12B8A0847000001E15B29A402F0000000000004B33460B00007A752C2A0000000000004D3900000084394B82013400ABA5CFC7AD9C0302A45A3E5A98AB000089A43382D97900008BA54AA087A70A0248A6A7AE6DBE0000BF6F94987EA40A01A06DCFA7A7A9030496C32F77891D0000A99FB1A0AFA80603B29AB9CA75930D010C0948354D3900000C0948354F37460D0028BE673D8400000000AF9D7B6E00002B007AA8933400007AA642675C2700007984CFB9C3985B768772A8A6B7B20000CAAECAAFC4B700009F94A6009F840009D09F9BA4CA9C0000CC8FC76DC87F0000C991C472A2000000A894A48CA7B501079BA2C9C69BA20000B19A5D3FA89000005CA6009DA2960901B0A7F0669FB200009D009E00B7890000DAD0F5D092820000D294D4C48BD10000B5A7A4A3B1A50402CAB6CBA6A2000000B5A7A4A3B1A8044FCDADD19D9CB00000B7778F7B8AAE0803C9AB5D3F5D3F00009EA09EA0BAB006039EA0989A8C7900009B9EF4D6B7C00000A9A7816CACA80000ABAC84705D3F000096DA635CDC8C00006F486F266F263D4784006124097B00374F6D2D6D2D6D4A3A95872322000000030000000000008D8939130000000000002E22A5C9CBC70600AB25C0B5C9B400061A2DB04CA67001082AA6BEBEBFC606002321DACBC19E03087AA08B6768380000282FBAC0B8CA7A88AD25BBA5A29900004C396C5894A6000040485A6E356E9442A32CD17EADA70000B4237923628600003E2DE9C1D7B500002F25BBA5A2990000231DB6AFB4A804023025C0B5CAB588062B2CBDBEC0C706882435A75CA20000002326BD6A82A908048B4B9A5A668000002423A09CB4BB060025259C9D8A7900001C1FCAB2C7C700002A2A9387ABA200002626A4A47D6E9D14333163A0C87500004B6F9C2D643A257049364936493647358A34438355497F1A0000A24C1D590000D38DFFBDD4CD3126"))}}),define(ie[491],ne([1,0,489,274,490,172]),function(Q,e,L,k,y,E){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.MinimapCharRendererFactory=void 0;class _{static create(S,v){if(this.lastCreated&&S===this.lastCreated.scale&&v===this.lastFontFamily)return this.lastCreated;let b;return y.prebakedMiniMaps[S]?b=new L.MinimapCharRenderer(y.prebakedMiniMaps[S](),S):b=_.createFromSampleData(_.createSampleData(v).data,S),this.lastFontFamily=v,this.lastCreated=b,b}static createSampleData(S){const v=document.createElement("canvas"),b=v.getContext("2d");v.style.height="16px",v.height=16,v.width=96*10,v.style.width=96*10+"px",b.fillStyle="#ffffff",b.font=`bold 16px ${S}`,b.textBaseline="middle";let o=0;for(const i of k.allCharCodes)b.fillText(String.fromCharCode(i),o,16/2),o+=10;return b.getImageData(0,0,96*10,16)}static createFromSampleData(S,v){if(S.length!==61440)throw new Error("Unexpected source in MinimapCharRenderer");const o=_._downsample(S,v);return new L.MinimapCharRenderer(o,v)}static _downsampleChar(S,v,b,o,i){const n=1*i,t=2*i;let a=o,u=0;for(let f=0;f0){const u=255/a;for(let f=0;fthis._itemData.get(S).getId()===y.getId()))!==null&&E!==void 0?E:p[0],this._unused.delete(_),this._itemData.set(_,y),_.setData(y)}return this._used.add(_),{object:_,dispose:()=>{this._used.delete(_),this._unused.size>5?_.dispose():this._unused.add(_)}}}dispose(){for(const y of this._used)y.dispose();for(const y of this._unused)y.dispose();this._used.clear(),this._unused.clear()}}e.ObjectPool=L}),define(ie[275],ne([1,0]),function(Q,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.diffEditorDefaultOptions=void 0,e.diffEditorDefaultOptions={enableSplitViewResizing:!0,splitViewDefaultRatio:.5,renderSideBySide:!0,renderMarginRevertIcon:!0,maxComputationTime:5e3,maxFileSize:50,ignoreTrimWhitespace:!0,renderIndicators:!0,originalEditable:!1,diffCodeLens:!1,renderOverviewRuler:!0,diffWordWrap:"inherit",diffAlgorithm:"advanced",accessibilityVerbose:!1,experimental:{showMoves:!1,showEmptyDecorations:!0},hideUnchangedRegions:{enabled:!1,contextLineCount:3,minimumLineCount:3,revealLineCount:20},isInEmbeddedEditor:!1,onlyShowAccessibleDiffViewer:!1,renderSideBySideInlineBreakpoint:900,useInlineViewWhenSpaceIsLimited:!0}}),define(ie[147],ne([1,0,6]),function(Q,e,L){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.EditorZoom=void 0,e.EditorZoom=new class{constructor(){this._zoomLevel=0,this._onDidChangeZoomLevel=new L.Emitter,this.onDidChangeZoomLevel=this._onDidChangeZoomLevel.event}getZoomLevel(){return this._zoomLevel}setZoomLevel(k){k=Math.min(Math.max(-5,k),20),this._zoomLevel!==k&&(this._zoomLevel=k,this._onDidChangeZoomLevel.fire(this._zoomLevel))}}}),define(ie[125],ne([1,0,172]),function(Q,e,L){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.CharacterSet=e.CharacterClassifier=void 0;class k{constructor(_){const p=(0,L.toUint8)(_);this._defaultValue=p,this._asciiMap=k._createAsciiMap(p),this._map=new Map}static _createAsciiMap(_){const p=new Uint8Array(256);return p.fill(_),p}set(_,p){const S=(0,L.toUint8)(p);_>=0&&_<256?this._asciiMap[_]=S:this._map.set(_,S)}get(_){return _>=0&&_<256?this._asciiMap[_]:this._map.get(_)||this._defaultValue}clear(){this._asciiMap.fill(this._defaultValue),this._map.clear()}}e.CharacterClassifier=k;class y{constructor(){this._actual=new k(0)}add(_){this._actual.set(_,1)}has(_){return this._actual.get(_)===1}clear(){return this._actual.clear()}}e.CharacterSet=y}),define(ie[84],ne([1,0,12]),function(Q,e,L){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.CursorColumns=void 0;class k{static _nextVisibleColumn(E,_,p){return E===9?k.nextRenderTabStop(_,p):L.isFullWidthCharacter(E)||L.isEmojiImprecise(E)?_+2:_+1}static visibleColumnFromColumn(E,_,p){const S=Math.min(_-1,E.length),v=E.substring(0,S),b=new L.GraphemeIterator(v);let o=0;for(;!b.eol();){const i=L.getNextCodePoint(v,S,b.offset);b.nextGraphemeLength(),o=this._nextVisibleColumn(i,o,p)}return o}static columnFromVisibleColumn(E,_,p){if(_<=0)return 1;const S=E.length,v=new L.GraphemeIterator(E);let b=0,o=1;for(;!v.eol();){const i=L.getNextCodePoint(E,S,v.offset);v.nextGraphemeLength();const n=this._nextVisibleColumn(i,b,p),t=v.offset+1;if(n>=_){const a=_-b;return n-_p))return new k(_,p)}static ofLength(_){return new k(0,_)}static ofStartAndLength(_,p){return new k(_,_+p)}constructor(_,p){if(this.start=_,this.endExclusive=p,_>p)throw new L.BugIndicatingError(`Invalid range: ${this.toString()}`)}get isEmpty(){return this.start===this.endExclusive}delta(_){return new k(this.start+_,this.endExclusive+_)}deltaStart(_){return new k(this.start+_,this.endExclusive)}deltaEnd(_){return new k(this.start,this.endExclusive+_)}get length(){return this.endExclusive-this.start}toString(){return`[${this.start}, ${this.endExclusive})`}equals(_){return this.start===_.start&&this.endExclusive===_.endExclusive}containsRange(_){return this.start<=_.start&&_.endExclusive<=this.endExclusive}contains(_){return this.start<=_&&_=_.endExclusive}slice(_){return _.slice(this.start,this.endExclusive)}clip(_){if(this.isEmpty)throw new L.BugIndicatingError(`Invalid clipping range: ${this.toString()}`);return Math.max(this.start,Math.min(this.endExclusive-1,_))}clipCyclic(_){if(this.isEmpty)throw new L.BugIndicatingError(`Invalid clipping range: ${this.toString()}`);return _=this.endExclusive?this.start+(_-this.start)%this.length:_}forEach(_){for(let p=this.start;p_.toString()).join(", ")}intersectsStrict(_){let p=0;for(;p_+p.length,0)}}e.OffsetRangeSet=y}),define(ie[11],ne([1,0]),function(Q,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Position=void 0;class L{constructor(y,E){this.lineNumber=y,this.column=E}with(y=this.lineNumber,E=this.column){return y===this.lineNumber&&E===this.column?this:new L(y,E)}delta(y=0,E=0){return this.with(this.lineNumber+y,this.column+E)}equals(y){return L.equals(this,y)}static equals(y,E){return!y&&!E?!0:!!y&&!!E&&y.lineNumber===E.lineNumber&&y.column===E.column}isBefore(y){return L.isBefore(this,y)}static isBefore(y,E){return y.lineNumberp||E===p&&_>S?(this.startLineNumber=p,this.startColumn=S,this.endLineNumber=E,this.endColumn=_):(this.startLineNumber=E,this.startColumn=_,this.endLineNumber=p,this.endColumn=S)}isEmpty(){return k.isEmpty(this)}static isEmpty(E){return E.startLineNumber===E.endLineNumber&&E.startColumn===E.endColumn}containsPosition(E){return k.containsPosition(this,E)}static containsPosition(E,_){return!(_.lineNumberE.endLineNumber||_.lineNumber===E.startLineNumber&&_.columnE.endColumn)}static strictContainsPosition(E,_){return!(_.lineNumberE.endLineNumber||_.lineNumber===E.startLineNumber&&_.column<=E.startColumn||_.lineNumber===E.endLineNumber&&_.column>=E.endColumn)}containsRange(E){return k.containsRange(this,E)}static containsRange(E,_){return!(_.startLineNumberE.endLineNumber||_.endLineNumber>E.endLineNumber||_.startLineNumber===E.startLineNumber&&_.startColumnE.endColumn)}strictContainsRange(E){return k.strictContainsRange(this,E)}static strictContainsRange(E,_){return!(_.startLineNumberE.endLineNumber||_.endLineNumber>E.endLineNumber||_.startLineNumber===E.startLineNumber&&_.startColumn<=E.startColumn||_.endLineNumber===E.endLineNumber&&_.endColumn>=E.endColumn)}plusRange(E){return k.plusRange(this,E)}static plusRange(E,_){let p,S,v,b;return _.startLineNumberE.endLineNumber?(v=_.endLineNumber,b=_.endColumn):_.endLineNumber===E.endLineNumber?(v=_.endLineNumber,b=Math.max(_.endColumn,E.endColumn)):(v=E.endLineNumber,b=E.endColumn),new k(p,S,v,b)}intersectRanges(E){return k.intersectRanges(this,E)}static intersectRanges(E,_){let p=E.startLineNumber,S=E.startColumn,v=E.endLineNumber,b=E.endColumn;const o=_.startLineNumber,i=_.startColumn,n=_.endLineNumber,t=_.endColumn;return pn?(v=n,b=t):v===n&&(b=Math.min(b,t)),p>v||p===v&&S>b?null:new k(p,S,v,b)}equalsRange(E){return k.equalsRange(this,E)}static equalsRange(E,_){return!E&&!_?!0:!!E&&!!_&&E.startLineNumber===_.startLineNumber&&E.startColumn===_.startColumn&&E.endLineNumber===_.endLineNumber&&E.endColumn===_.endColumn}getEndPosition(){return k.getEndPosition(this)}static getEndPosition(E){return new L.Position(E.endLineNumber,E.endColumn)}getStartPosition(){return k.getStartPosition(this)}static getStartPosition(E){return new L.Position(E.startLineNumber,E.startColumn)}toString(){return"["+this.startLineNumber+","+this.startColumn+" -> "+this.endLineNumber+","+this.endColumn+"]"}setEndPosition(E,_){return new k(this.startLineNumber,this.startColumn,E,_)}setStartPosition(E,_){return new k(E,_,this.endLineNumber,this.endColumn)}collapseToStart(){return k.collapseToStart(this)}static collapseToStart(E){return new k(E.startLineNumber,E.startColumn,E.startLineNumber,E.startColumn)}collapseToEnd(){return k.collapseToEnd(this)}static collapseToEnd(E){return new k(E.endLineNumber,E.endColumn,E.endLineNumber,E.endColumn)}delta(E){return new k(this.startLineNumber+E,this.startColumn,this.endLineNumber+E,this.endColumn)}static fromPositions(E,_=E){return new k(E.lineNumber,E.column,_.lineNumber,_.column)}static lift(E){return E?new k(E.startLineNumber,E.startColumn,E.endLineNumber,E.endColumn):null}static isIRange(E){return E&&typeof E.startLineNumber=="number"&&typeof E.startColumn=="number"&&typeof E.endLineNumber=="number"&&typeof E.endColumn=="number"}static areIntersectingOrTouching(E,_){return!(E.endLineNumber<_.startLineNumber||E.endLineNumber===_.startLineNumber&&E.endColumn<_.startColumn||_.endLineNumberE.startLineNumber}toJSON(){return this}}e.Range=k}),define(ie[277],ne([1,0,12,5]),function(Q,e,L,k){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.PagedScreenReaderStrategy=e.TextAreaState=e._debugComposition=void 0,e._debugComposition=!1;class y{constructor(p,S,v,b,o){this.value=p,this.selectionStart=S,this.selectionEnd=v,this.selection=b,this.newlineCountBeforeSelection=o}toString(){return`[ <${this.value}>, selectionStart: ${this.selectionStart}, selectionEnd: ${this.selectionEnd}]`}static readFromTextArea(p,S){const v=p.getValue(),b=p.getSelectionStart(),o=p.getSelectionEnd();let i;if(S){const n=v.substring(0,b),t=S.value.substring(0,S.selectionStart);n===t&&(i=S.newlineCountBeforeSelection)}return new y(v,b,o,null,i)}collapseSelection(){return this.selectionStart===this.value.length?this:new y(this.value,this.value.length,this.value.length,null,void 0)}writeToTextArea(p,S,v){e._debugComposition&&console.log(`writeToTextArea ${p}: ${this.toString()}`),S.setValue(p,this.value),v&&S.setSelectionRange(p,this.selectionStart,this.selectionEnd)}deduceEditorPosition(p){var S,v,b,o,i,n,t,a;if(p<=this.selectionStart){const c=this.value.substring(p,this.selectionStart);return this._finishDeduceEditorPosition((v=(S=this.selection)===null||S===void 0?void 0:S.getStartPosition())!==null&&v!==void 0?v:null,c,-1)}if(p>=this.selectionEnd){const c=this.value.substring(this.selectionEnd,p);return this._finishDeduceEditorPosition((o=(b=this.selection)===null||b===void 0?void 0:b.getEndPosition())!==null&&o!==void 0?o:null,c,1)}const u=this.value.substring(this.selectionStart,p);if(u.indexOf(String.fromCharCode(8230))===-1)return this._finishDeduceEditorPosition((n=(i=this.selection)===null||i===void 0?void 0:i.getStartPosition())!==null&&n!==void 0?n:null,u,1);const f=this.value.substring(p,this.selectionEnd);return this._finishDeduceEditorPosition((a=(t=this.selection)===null||t===void 0?void 0:t.getEndPosition())!==null&&a!==void 0?a:null,f,-1)}_finishDeduceEditorPosition(p,S,v){let b=0,o=-1;for(;(o=S.indexOf(`
`,o+1))!==-1;)b++;return[p,v*S.length,b]}static deduceInput(p,S,v){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: ${S.toString()}`));const b=Math.min(L.commonPrefixLength(p.value,S.value),p.selectionStart,S.selectionStart),o=Math.min(L.commonSuffixLength(p.value,S.value),p.value.length-p.selectionEnd,S.value.length-S.selectionEnd),i=p.value.substring(b,p.value.length-o),n=S.value.substring(b,S.value.length-o),t=p.selectionStart-b,a=p.selectionEnd-b,u=S.selectionStart-b,f=S.selectionEnd-b;if(e._debugComposition&&(console.log(`AFTER DIFFING PREVIOUS STATE: <${i}>, selectionStart: ${t}, selectionEnd: ${a}`),console.log(`AFTER DIFFING CURRENT STATE: <${n}>, selectionStart: ${u}, selectionEnd: ${f}`)),u===f){const d=p.selectionStart-b;return e._debugComposition&&console.log(`REMOVE PREVIOUS: ${d} chars`),{text:n,replacePrevCharCnt:d,replaceNextCharCnt:0,positionDelta:0}}const c=a-t;return{text:n,replacePrevCharCnt:c,replaceNextCharCnt:0,positionDelta:0}}static deduceAndroidCompositionInput(p,S){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: ${S.toString()}`)),p.value===S.value)return{text:"",replacePrevCharCnt:0,replaceNextCharCnt:0,positionDelta:S.selectionEnd-p.selectionEnd};const v=Math.min(L.commonPrefixLength(p.value,S.value),p.selectionEnd),b=Math.min(L.commonSuffixLength(p.value,S.value),p.value.length-p.selectionEnd),o=p.value.substring(v,p.value.length-b),i=S.value.substring(v,S.value.length-b),n=p.selectionStart-v,t=p.selectionEnd-v,a=S.selectionStart-v,u=S.selectionEnd-v;return e._debugComposition&&(console.log(`AFTER DIFFING PREVIOUS STATE: <${o}>, selectionStart: ${n}, selectionEnd: ${t}`),console.log(`AFTER DIFFING CURRENT STATE: <${i}>, selectionStart: ${a}, selectionEnd: ${u}`)),{text:i,replacePrevCharCnt:t,replaceNextCharCnt:o.length-t,positionDelta:u-i.length}}}e.TextAreaState=y,y.EMPTY=new y("",0,0,null,void 0);class E{static _getPageOfLine(p,S){return Math.floor((p-1)/S)}static _getRangeForPage(p,S){const v=p*S,b=v+1,o=v+S;return new k.Range(b,1,o+1,1)}static fromEditorSelection(p,S,v,b){const i=E._getPageOfLine(S.startLineNumber,v),n=E._getRangeForPage(i,v),t=E._getPageOfLine(S.endLineNumber,v),a=E._getRangeForPage(t,v);let u=n.intersectRanges(new k.Range(1,1,S.startLineNumber,S.startColumn));if(b&&p.getValueLengthInRange(u,1)>500){const g=p.modifyPosition(u.getEndPosition(),-500);u=k.Range.fromPositions(g,u.getEndPosition())}const f=p.getValueInRange(u,1),c=p.getLineCount(),d=p.getLineMaxColumn(c);let r=a.intersectRanges(new k.Range(S.endLineNumber,S.endColumn,c,d));if(b&&p.getValueLengthInRange(r,1)>500){const g=p.modifyPosition(r.getStartPosition(),500);r=k.Range.fromPositions(r.getStartPosition(),g)}const l=p.getValueInRange(r,1);let s;if(i===t||i+1===t)s=p.getValueInRange(S,1);else{const g=n.intersectRanges(S),h=a.intersectRanges(S);s=p.getValueInRange(g,1)+String.fromCharCode(8230)+p.getValueInRange(h,1)}return b&&s.length>2*500&&(s=s.substring(0,500)+String.fromCharCode(8230)+s.substring(s.length-500,s.length)),new y(f+s+l,f.length,f.length+s.length,S,u.endLineNumber-u.startLineNumber)}}e.PagedScreenReaderStrategy=E}),define(ie[494],ne([1,0,13,19,9,49,11,5]),function(Q,e,L,k,y,E,_,p){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.OutlineModel=e.OutlineGroup=e.OutlineElement=e.TreeElement=void 0;class S{remove(){var n;(n=this.parent)===null||n===void 0||n.children.delete(this.id)}static findId(n,t){let a;typeof n=="string"?a=`${t.id}/${n}`:(a=`${t.id}/${n.name}`,t.children.get(a)!==void 0&&(a=`${t.id}/${n.name}_${n.range.startLineNumber}_${n.range.startColumn}`));let u=a;for(let f=0;t.children.get(u)!==void 0;f++)u=`${a}_${f}`;return u}static empty(n){return n.children.size===0}}e.TreeElement=S;class v extends S{constructor(n,t,a){super(),this.id=n,this.parent=t,this.symbol=a,this.children=new Map}}e.OutlineElement=v;class b extends S{constructor(n,t,a,u){super(),this.id=n,this.parent=t,this.label=a,this.order=u,this.children=new Map}}e.OutlineGroup=b;class o extends S{static create(n,t,a){const u=new k.CancellationTokenSource(a),f=new o(t.uri),c=n.ordered(t),d=c.map((l,s)=>{var g;const h=S.findId(`provider_${s}`,f),m=new b(h,f,(g=l.displayName)!==null&&g!==void 0?g:"Unknown Outline Provider",s);return Promise.resolve(l.provideDocumentSymbols(t,u.token)).then(C=>{for(const w of C||[])o._makeOutlineElement(w,m);return m},C=>((0,y.onUnexpectedExternalError)(C),m)).then(C=>{S.empty(C)?C.remove():f._groups.set(h,C)})}),r=n.onDidChange(()=>{const l=n.ordered(t);(0,L.equals)(l,c)||u.cancel()});return Promise.all(d).then(()=>u.token.isCancellationRequested&&!a.isCancellationRequested?o.create(n,t,a):f._compact()).finally(()=>{u.dispose(),r.dispose()})}static _makeOutlineElement(n,t){const a=S.findId(n,t),u=new v(a,t,n);if(n.children)for(const f of n.children)o._makeOutlineElement(f,u);t.children.set(u.id,u)}constructor(n){super(),this.uri=n,this.id="root",this.parent=void 0,this._groups=new Map,this.children=new Map,this.id="root",this.parent=void 0}_compact(){let n=0;for(const[t,a]of this._groups)a.children.size===0?this._groups.delete(t):n+=1;if(n!==1)this.children=this._groups;else{const t=E.Iterable.first(this._groups.values());for(const[,a]of t.children)a.parent=this,this.children.set(a.id,a)}return this}getTopLevelSymbols(){const n=[];for(const t of this.children.values())t instanceof v?n.push(t.symbol):n.push(...E.Iterable.map(t.children.values(),a=>a.symbol));return n.sort((t,a)=>p.Range.compareRangesUsingStarts(t.range,a.range))}asListOfDocumentSymbols(){const n=this.getTopLevelSymbols(),t=[];return o._flattenDocumentSymbols(t,n,""),t.sort((a,u)=>_.Position.compare(p.Range.getStartPosition(a.range),p.Range.getStartPosition(u.range))||_.Position.compare(p.Range.getEndPosition(u.range),p.Range.getEndPosition(a.range)))}static _flattenDocumentSymbols(n,t,a){for(const u of t)n.push({kind:u.kind,tags:u.tags,name:u.name,detail:u.detail,containerName:u.containerName||a,range:u.range,selectionRange:u.selectionRange,children:void 0}),u.children&&o._flattenDocumentSymbols(n,u.children,u.name)}}e.OutlineModel=o}),define(ie[74],ne([1,0,5]),function(Q,e,L){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.EditOperation=void 0;class k{static insert(E,_){return{range:new L.Range(E.lineNumber,E.column,E.lineNumber,E.column),text:_,forceMoveMarkers:!0}}static delete(E){return{range:E,text:null}}static replace(E,_){return{range:E,text:_}}static replaceMove(E,_){return{range:E,text:_,forceMoveMarkers:!0}}}e.EditOperation=k}),define(ie[495],ne([1,0,12,74,5]),function(Q,e,L,k,y){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.trimTrailingWhitespace=e.TrimTrailingWhitespaceCommand=void 0;class E{constructor(S,v){this._selection=S,this._cursors=v,this._selectionId=null}getEditOperations(S,v){const b=_(S,this._cursors);for(let o=0,i=b.length;on.lineNumber===t.lineNumber?n.column-t.column:n.lineNumber-t.lineNumber);for(let n=S.length-2;n>=0;n--)S[n].lineNumber===S[n+1].lineNumber&&S.splice(n,1);const v=[];let b=0,o=0;const i=S.length;for(let n=1,t=p.getLineCount();n<=t;n++){const a=p.getLineContent(n),u=a.length+1;let f=0;if(ob)throw new L.BugIndicatingError(`startLineNumber ${v} cannot be after endLineNumberExclusive ${b}`);this.startLineNumber=v,this.endLineNumberExclusive=b}contains(v){return this.startLineNumber<=v&&vi.endLineNumberExclusive>=v.startLineNumber),o=(0,E.findLastIdxMonotonous)(this._normalizedRanges,i=>i.startLineNumber<=v.endLineNumberExclusive)+1;if(b===o)this._normalizedRanges.splice(b,0,v);else if(b===o-1){const i=this._normalizedRanges[b];this._normalizedRanges[b]=i.join(v)}else{const i=this._normalizedRanges[b].join(this._normalizedRanges[o-1]).join(v);this._normalizedRanges.splice(b,o-b,i)}}contains(v){const b=(0,E.findLastMonotonous)(this._normalizedRanges,o=>o.startLineNumber<=v);return!!b&&b.endLineNumberExclusive>v}intersects(v){const b=(0,E.findLastMonotonous)(this._normalizedRanges,o=>o.startLineNumberv.startLineNumber}getUnion(v){if(this._normalizedRanges.length===0)return v;if(v._normalizedRanges.length===0)return this;const b=[];let o=0,i=0,n=null;for(;o=t.startLineNumber?n=new _(n.startLineNumber,Math.max(n.endLineNumberExclusive,t.endLineNumberExclusive)):(b.push(n),n=t)}return n!==null&&b.push(n),new p(b)}subtractFrom(v){const b=(0,E.findFirstIdxMonotonousOrArrLen)(this._normalizedRanges,t=>t.endLineNumberExclusive>=v.startLineNumber),o=(0,E.findLastIdxMonotonous)(this._normalizedRanges,t=>t.startLineNumber<=v.endLineNumberExclusive)+1;if(b===o)return new p([v]);const i=[];let n=v.startLineNumber;for(let t=b;tn&&i.push(new _(n,a.startLineNumber)),n=a.endLineNumberExclusive}return nv.toString()).join(", ")}getIntersection(v){const b=[];let o=0,i=0;for(;ob.delta(v)))}}e.LineRangeSet=p}),define(ie[278],ne([1,0]),function(Q,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.RGBA8=void 0;class L{constructor(y,E,_,p){this._rgba8Brand=void 0,this.r=L._clamp(y),this.g=L._clamp(E),this.b=L._clamp(_),this.a=L._clamp(p)}equals(y){return this.r===y.r&&this.g===y.g&&this.b===y.b&&this.a===y.a}static _clamp(y){return y<0?0:y>255?255:y|0}}e.RGBA8=L,L.Empty=new L(0,0,0,0)}),define(ie[24],ne([1,0,11,5]),function(Q,e,L,k){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Selection=void 0;class y extends k.Range{constructor(_,p,S,v){super(_,p,S,v),this.selectionStartLineNumber=_,this.selectionStartColumn=p,this.positionLineNumber=S,this.positionColumn=v}toString(){return"["+this.selectionStartLineNumber+","+this.selectionStartColumn+" -> "+this.positionLineNumber+","+this.positionColumn+"]"}equalsSelection(_){return y.selectionsEqual(this,_)}static selectionsEqual(_,p){return _.selectionStartLineNumber===p.selectionStartLineNumber&&_.selectionStartColumn===p.selectionStartColumn&&_.positionLineNumber===p.positionLineNumber&&_.positionColumn===p.positionColumn}getDirection(){return this.selectionStartLineNumber===this.startLineNumber&&this.selectionStartColumn===this.startColumn?0:1}setEndPosition(_,p){return this.getDirection()===0?new y(this.startLineNumber,this.startColumn,_,p):new y(_,p,this.startLineNumber,this.startColumn)}getPosition(){return new L.Position(this.positionLineNumber,this.positionColumn)}getSelectionStart(){return new L.Position(this.selectionStartLineNumber,this.selectionStartColumn)}setStartPosition(_,p){return this.getDirection()===0?new y(_,p,this.endLineNumber,this.endColumn):new y(this.endLineNumber,this.endColumn,_,p)}static fromPositions(_,p=_){return new y(_.lineNumber,_.column,p.lineNumber,p.column)}static fromRange(_,p){return p===0?new y(_.startLineNumber,_.startColumn,_.endLineNumber,_.endColumn):new y(_.endLineNumber,_.endColumn,_.startLineNumber,_.startColumn)}static liftSelection(_){return new y(_.selectionStartLineNumber,_.selectionStartColumn,_.positionLineNumber,_.positionColumn)}static selectionsArrEqual(_,p){if(_&&!p||!_&&p)return!1;if(!_&&!p)return!0;if(_.length!==p.length)return!1;for(let S=0,v=_.length;S(_.hasOwnProperty(p)||(_[p]=E(p)),_[p])}e.getMapForWordSeparators=y(E=>new k(E))}),define(ie[149],ne([1,0,49,66]),function(Q,e,L,k){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getWordAtText=e.ensureValidWordDefinition=e.DEFAULT_WORD_REGEXP=e.USUAL_WORD_SEPARATORS=void 0,e.USUAL_WORD_SEPARATORS="`~!@#$%^&*()-=+[{]}\\|;:'\",.<>/?";function y(v=""){let b="(-?\\d*\\.\\d\\w*)|([^";for(const o of e.USUAL_WORD_SEPARATORS)v.indexOf(o)>=0||(b+="\\"+o);return b+="\\s]+)",new RegExp(b,"g")}e.DEFAULT_WORD_REGEXP=y();function E(v){let b=e.DEFAULT_WORD_REGEXP;if(v&&v instanceof RegExp)if(v.global)b=v;else{let o="g";v.ignoreCase&&(o+="i"),v.multiline&&(o+="m"),v.unicode&&(o+="u"),b=new RegExp(v.source,o)}return b.lastIndex=0,b}e.ensureValidWordDefinition=E;const _=new k.LinkedList;_.unshift({maxLen:1e3,windowSize:15,timeBudget:150});function p(v,b,o,i,n){if(b=E(b),n||(n=L.Iterable.first(_)),o.length>n.maxLen){let c=v-n.maxLen/2;return c<0?c=0:i+=c,o=o.substring(c,v+n.maxLen/2),p(v,b,o,i,n)}const t=Date.now(),a=v-1-i;let u=-1,f=null;for(let c=1;!(Date.now()-t>=n.timeBudget);c++){const d=a-n.windowSize*c;b.lastIndex=Math.max(0,d);const r=S(b,o,a,u);if(!r&&f||(f=r,d<=0))break;u=d}if(f){const c={word:f[0],startColumn:i+1+f.index,endColumn:i+1+f.index+f[0].length};return b.lastIndex=0,c}return null}e.getWordAtText=p;function S(v,b,o,i){let n;for(;n=v.exec(b);){const t=n.index||0;if(t<=o&&v.lastIndex>=o)return n;if(i>0&&t>i)return null}return null}}),define(ie[279],ne([1,0,84]),function(Q,e,L){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.AtomicTabMoveOperations=void 0;class k{static whitespaceVisibleColumn(E,_,p){const S=E.length;let v=0,b=-1,o=-1;for(let i=0;i{n.push(_.fromOffsetPairs(t?t.getEndExclusives():p.zero,a?a.getStarts():new p(i,(t?t.seq2Range.endExclusive-t.seq1Range.endExclusive:0)+i)))}),n}static fromOffsetPairs(o,i){return new _(new y.OffsetRange(o.offset1,i.offset1),new y.OffsetRange(o.offset2,i.offset2))}constructor(o,i){this.seq1Range=o,this.seq2Range=i}swap(){return new _(this.seq2Range,this.seq1Range)}toString(){return`${this.seq1Range} <-> ${this.seq2Range}`}join(o){return new _(this.seq1Range.join(o.seq1Range),this.seq2Range.join(o.seq2Range))}delta(o){return o===0?this:new _(this.seq1Range.delta(o),this.seq2Range.delta(o))}deltaStart(o){return o===0?this:new _(this.seq1Range.deltaStart(o),this.seq2Range.deltaStart(o))}deltaEnd(o){return o===0?this:new _(this.seq1Range.deltaEnd(o),this.seq2Range.deltaEnd(o))}intersect(o){const i=this.seq1Range.intersect(o.seq1Range),n=this.seq2Range.intersect(o.seq2Range);if(!(!i||!n))return new _(i,n)}getStarts(){return new p(this.seq1Range.start,this.seq2Range.start)}getEndExclusives(){return new p(this.seq1Range.endExclusive,this.seq2Range.endExclusive)}}e.SequenceDiff=_;class p{constructor(o,i){this.offset1=o,this.offset2=i}toString(){return`${this.offset1} <-> ${this.offset2}`}}e.OffsetPair=p,p.zero=new p(0,0),p.max=new p(Number.MAX_SAFE_INTEGER,Number.MAX_SAFE_INTEGER);class S{isValid(){return!0}}e.InfiniteTimeout=S,S.instance=new S;class v{constructor(o){if(this.timeout=o,this.startTime=Date.now(),this.valid=!0,o<=0)throw new k.BugIndicatingError("timeout must be positive")}isValid(){if(!(Date.now()-this.startTimei.length||I>n.length)continue;const M=t(D,I);u.set(c,M);const A=D===C?f.get(c+1):f.get(c-1);if(f.set(c,M!==D?new E(A,D,I,M-D):A),u.get(c)===i.length&&u.get(c)-c===n.length)break e}}let d=f.get(c);const r=[];let l=i.length,s=n.length;for(;;){const g=d?d.x+d.length:0,h=d?d.y+d.length:0;if((g!==l||h!==s)&&r.push(new k.SequenceDiff(new L.OffsetRange(g,l),new L.OffsetRange(h,s))),!d)break;l=d.x,s=d.y,d=d.prev}return r.reverse(),new k.DiffAlgorithmResult(r,!1)}}e.MyersDiffAlgorithm=y;class E{constructor(v,b,o,i){this.prev=v,this.x=b,this.y=o,this.length=i}}class _{constructor(){this.positiveArr=new Int32Array(10),this.negativeArr=new Int32Array(10)}get(v){return v<0?(v=-v-1,this.negativeArr[v]):this.positiveArr[v]}set(v,b){if(v<0){if(v=-v-1,v>=this.negativeArr.length){const o=this.negativeArr;this.negativeArr=new Int32Array(o.length*2),this.negativeArr.set(o)}this.negativeArr[v]=b}else{if(v>=this.positiveArr.length){const o=this.positiveArr;this.positiveArr=new Int32Array(o.length*2),this.positiveArr.set(o)}this.positiveArr[v]=b}}}class p{constructor(){this.positiveArr=[],this.negativeArr=[]}get(v){return v<0?(v=-v-1,this.negativeArr[v]):this.positiveArr[v]}set(v,b){v<0?(v=-v-1,this.negativeArr[v]=b):this.positiveArr[v]=b}}}),define(ie[281],ne([1,0,13,73,150]),function(Q,e,L,k,y){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.removeVeryShortMatchingTextBetweenLongDiffs=e.removeVeryShortMatchingLinesBetweenDiffs=e.extendDiffsToEntireWordIfAppropriate=e.removeShortMatches=e.optimizeSequenceDiffs=void 0;function E(t,a,u){let f=u;return f=_(t,a,f),f=_(t,a,f),f=p(t,a,f),f}e.optimizeSequenceDiffs=E;function _(t,a,u){if(u.length===0)return u;const f=[];f.push(u[0]);for(let d=1;d0&&(l=l.delta(g))}c.push(l)}return f.length>0&&c.push(f[f.length-1]),c}function p(t,a,u){if(!t.getBoundaryScore||!a.getBoundaryScore)return u;for(let f=0;f0?u[f-1]:void 0,d=u[f],r=f+1=f.start&&t.seq2Range.start-r>=c.start&&u.isStronglyEqual(t.seq2Range.start-r,t.seq2Range.endExclusive-r)&&r<100;)r++;r--;let l=0;for(;t.seq1Range.start+lg&&(g=D,s=h)}return t.delta(s)}function v(t,a,u){const f=[];for(const c of u){const d=f[f.length-1];if(!d){f.push(c);continue}c.seq1Range.start-d.seq1Range.endExclusive<=2||c.seq2Range.start-d.seq2Range.endExclusive<=2?f[f.length-1]=new y.SequenceDiff(d.seq1Range.join(c.seq1Range),d.seq2Range.join(c.seq2Range)):f.push(c)}return f}e.removeShortMatches=v;function b(t,a,u){const f=[];let c;function d(){if(!c)return;const l=c.s1Range.length-c.deleted,s=c.s2Range.length-c.added;Math.max(c.deleted,c.added)+(c.count-1)>l&&f.push(new y.SequenceDiff(c.s1Range,c.s2Range)),c=void 0}for(const l of u){let s=function(w,D){var I,M,A,O;if(!c||!c.s1Range.containsRange(w)||!c.s2Range.containsRange(D))if(c&&!(c.s1Range.endExclusive0||a.length>0;){const f=t[0],c=a[0];let d;f&&(!c||f.seq1Range.start0&&u[u.length-1].seq1Range.endExclusive>=d.seq1Range.start?u[u.length-1]=u[u.length-1].join(d):u.push(d)}return u}function i(t,a,u){let f=u;if(f.length===0)return f;let c=0,d;do{d=!1;const r=[f[0]];for(let l=1;l5||w.seq1Range.length+w.seq2Range.length>5)};const s=f[l],g=r[r.length-1];h(g,s)?(d=!0,r[r.length-1]=r[r.length-1].join(s)):r.push(s)}f=r}while(c++<10&&d);return f}e.removeVeryShortMatchingLinesBetweenDiffs=i;function n(t,a,u){let f=u;if(f.length===0)return f;let c=0,d;do{d=!1;const l=[f[0]];for(let s=1;s5||I.length>500)return!1;const A=t.getText(I).trim();if(A.length>20||A.split(/\r\n|\r|\n/).length>1)return!1;const O=t.countLinesIn(w.seq1Range),T=w.seq1Range.length,N=a.countLinesIn(w.seq2Range),P=w.seq2Range.length,x=t.countLinesIn(D.seq1Range),R=D.seq1Range.length,B=a.countLinesIn(D.seq2Range),W=D.seq2Range.length,V=2*40+50;function U(F){return Math.min(F,V)}return Math.pow(Math.pow(U(O*40+T),1.5)+Math.pow(U(N*40+P),1.5),1.5)+Math.pow(Math.pow(U(x*40+R),1.5)+Math.pow(U(B*40+W),1.5),1.5)>(V**1.5)**1.5*1.3};const g=f[s],h=l[l.length-1];m(h,g)?(d=!0,l[l.length-1]=l[l.length-1].join(g)):l.push(g)}f=l}while(c++<10&&d);const r=[];return(0,L.forEachWithNeighbors)(f,(l,s,g)=>{let h=s;function m(A){return A.length>0&&A.trim().length<=3&&s.seq1Range.length+s.seq2Range.length>100}const C=t.extendToFullLines(s.seq1Range),w=t.getText(new k.OffsetRange(C.start,s.seq1Range.start));m(w)&&(h=h.deltaStart(-w.length));const D=t.getText(new k.OffsetRange(s.seq1Range.endExclusive,C.endExclusive));m(D)&&(h=h.deltaEnd(D.length));const I=y.SequenceDiff.fromOffsetPairs(l?l.getEndExclusives():y.OffsetPair.zero,g?g.getStarts():y.OffsetPair.max),M=h.intersect(I);r.push(M)}),r}e.removeVeryShortMatchingTextBetweenLongDiffs=n}),define(ie[498],ne([1,0]),function(Q,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.LineSequence=void 0;class L{constructor(E,_){this.trimmedHash=E,this.lines=_}getElement(E){return this.trimmedHash[E]}get length(){return this.trimmedHash.length}getBoundaryScore(E){const _=E===0?0:k(this.lines[E-1]),p=E===this.lines.length?0:k(this.lines[E]);return 1e3-(_+p)}getText(E){return this.lines.slice(E.start,E.endExclusive).join(`
`)}isStronglyEqual(E,_){return this.lines[E]===this.lines[_]}}e.LineSequence=L;function k(y){let E=0;for(;E0&&l>0&&i.get(r-1,l-1)===3&&(h+=n.get(r-1,l-1)),h+=b?b(r,l):1):h=-1;const m=Math.max(s,g,h);if(m===h){const C=r>0&&l>0?n.get(r-1,l-1):0;n.set(r,l,C+1),i.set(r,l,3)}else m===s?(n.set(r,l,0),i.set(r,l,1)):m===g&&(n.set(r,l,0),i.set(r,l,2));o.set(r,l,m)}const t=[];let a=p.length,u=S.length;function f(r,l){(r+1!==a||l+1!==u)&&t.push(new k.SequenceDiff(new L.OffsetRange(r+1,a),new L.OffsetRange(l+1,u))),a=r,u=l}let c=p.length-1,d=S.length-1;for(;c>=0&&d>=0;)i.get(c,d)===3?(f(c,d),c--,d--):i.get(c,d)===1?c--:d--;return f(-1,-1),t.reverse(),new k.DiffAlgorithmResult(t,!1)}}e.DynamicProgrammingDiffing=E}),define(ie[282],ne([1,0,60,73,11,5,204]),function(Q,e,L,k,y,E,_){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.LinesSliceCharSequence=void 0;class p{constructor(n,t,a){this.lines=n,this.considerWhitespaceChanges=a,this.elements=[],this.firstCharOffsetByLine=[],this.additionalOffsetByLine=[];let u=!1;t.start>0&&t.endExclusive>=n.length&&(t=new k.OffsetRange(t.start-1,t.endExclusive),u=!0),this.lineRange=t,this.firstCharOffsetByLine[0]=0;for(let f=this.lineRange.start;fString.fromCharCode(t)).join("")}getElement(n){return this.elements[n]}get length(){return this.elements.length}getBoundaryScore(n){const t=o(n>0?this.elements[n-1]:-1),a=o(na<=n);return new y.Position(this.lineRange.start+t+1,n-this.firstCharOffsetByLine[t]+this.additionalOffsetByLine[t]+1)}translateRange(n){return E.Range.fromPositions(this.translateOffset(n.start),this.translateOffset(n.endExclusive))}findWordContaining(n){if(n<0||n>=this.elements.length||!S(this.elements[n]))return;let t=n;for(;t>0&&S(this.elements[t-1]);)t--;let a=n;for(;ac<=n.start))!==null&&t!==void 0?t:0,f=(a=(0,L.findFirstMonotonous)(this.firstCharOffsetByLine,c=>n.endExclusive<=c))!==null&&a!==void 0?a:this.elements.length;return new k.OffsetRange(u,f)}}e.LinesSliceCharSequence=p;function S(i){return i>=97&&i<=122||i>=65&&i<=90||i>=48&&i<=57}const v={[0]:0,[1]:0,[2]:0,[3]:10,[4]:2,[5]:3,[6]:3,[7]:10,[8]:10};function b(i){return v[i]}function o(i){return i===10?8:i===13?7:(0,_.isSpace)(i)?6:i>=97&&i<=122?0:i>=65&&i<=90?1:i>=48&&i<=57?2:i===-1?3:i===44||i===59?5:4}}),define(ie[205],ne([1,0]),function(Q,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.MovedText=e.LinesDiff=void 0;class L{constructor(E,_,p){this.changes=E,this.moves=_,this.hitTimeout=p}}e.LinesDiff=L;class k{constructor(E,_){this.lineRangeMapping=E,this.changes=_}}e.MovedText=k}),define(ie[110],ne([1,0,62]),function(Q,e,L){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.RangeMapping=e.DetailedLineRangeMapping=e.LineRangeMapping=void 0;class k{static inverse(p,S,v){const b=[];let o=1,i=1;for(const t of p){const a=new y(new L.LineRange(o,t.original.startLineNumber),new L.LineRange(i,t.modified.startLineNumber),void 0);a.modified.isEmpty||b.push(a),o=t.original.endLineNumberExclusive,i=t.modified.endLineNumberExclusive}const n=new y(new L.LineRange(o,S+1),new L.LineRange(i,v+1),void 0);return n.modified.isEmpty||b.push(n),b}constructor(p,S){this.original=p,this.modified=S}toString(){return`{${this.original.toString()}->${this.modified.toString()}}`}flip(){return new k(this.modified,this.original)}join(p){return new k(this.original.join(p.original),this.modified.join(p.modified))}}e.LineRangeMapping=k;class y extends k{constructor(p,S,v){super(p,S),this.innerChanges=v}flip(){var p;return new y(this.modified,this.original,(p=this.innerChanges)===null||p===void 0?void 0:p.map(S=>S.flip()))}}e.DetailedLineRangeMapping=y;class E{constructor(p,S){this.originalRange=p,this.modifiedRange=S}toString(){return`{${this.originalRange.toString()}->${this.modifiedRange.toString()}}`}flip(){return new E(this.modifiedRange,this.originalRange)}}e.RangeMapping=E}),define(ie[500],ne([1,0,150,110,13,60,53,62,73,282,204,280]),function(Q,e,L,k,y,E,_,p,S,v,b,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.computeMovedLines=void 0;function i(d,r,l,s,g,h){let{moves:m,excludedChanges:C}=t(d,r,l,h);if(!h.isValid())return[];const w=d.filter(I=>!C.has(I)),D=a(w,s,g,r,l,h);return(0,y.pushMany)(m,D),m=f(m),m=m.filter(I=>{const M=I.original.toOffsetRange().slice(r).map(O=>O.trim());return M.join(`
`).length>=15&&n(M,O=>O.length>=2)>=2}),m=c(d,m),m}e.computeMovedLines=i;function n(d,r){let l=0;for(const s of d)r(s)&&l++;return l}function t(d,r,l,s){const g=[],h=d.filter(w=>w.modified.isEmpty&&w.original.length>=3).map(w=>new b.LineRangeFragment(w.original,r,w)),m=new Set(d.filter(w=>w.original.isEmpty&&w.modified.length>=3).map(w=>new b.LineRangeFragment(w.modified,l,w))),C=new Set;for(const w of h){let D=-1,I;for(const M of m){const A=w.computeSimilarity(M);A>D&&(D=A,I=M)}if(D>.9&&I&&(m.delete(I),g.push(new k.LineRangeMapping(w.range,I.range)),C.add(w.source),C.add(I.source)),!s.isValid())return{moves:g,excludedChanges:C}}return{moves:g,excludedChanges:C}}function a(d,r,l,s,g,h){const m=[],C=new _.SetMap;for(const A of d)for(let O=A.original.startLineNumber;OA.modified.startLineNumber,y.numberComparator));for(const A of d){let O=[];for(let T=A.modified.startLineNumber;T{for(const W of O)if(W.originalLineRange.endLineNumberExclusive+1===R.endLineNumberExclusive&&W.modifiedLineRange.endLineNumberExclusive+1===P.endLineNumberExclusive){W.originalLineRange=new p.LineRange(W.originalLineRange.startLineNumber,R.endLineNumberExclusive),W.modifiedLineRange=new p.LineRange(W.modifiedLineRange.startLineNumber,P.endLineNumberExclusive),x.push(W);return}const B={modifiedLineRange:P,originalLineRange:R};w.push(B),x.push(B)}),O=x}if(!h.isValid())return[]}w.sort((0,y.reverseOrder)((0,y.compareBy)(A=>A.modifiedLineRange.length,y.numberComparator)));const D=new p.LineRangeSet,I=new p.LineRangeSet;for(const A of w){const O=A.modifiedLineRange.startLineNumber-A.originalLineRange.startLineNumber,T=D.subtractFrom(A.modifiedLineRange),N=I.subtractFrom(A.originalLineRange).getWithDelta(O),P=T.getIntersection(N);for(const x of P.ranges){if(x.length<3)continue;const R=x,B=x.delta(-O);m.push(new k.LineRangeMapping(B,R)),D.addRange(R),I.addRange(B)}}m.sort((0,y.compareBy)(A=>A.original.startLineNumber,y.numberComparator));const M=new E.MonotonousArray(d);for(let A=0;AU.original.startLineNumber<=O.original.startLineNumber),N=(0,E.findLastMonotonous)(d,U=>U.modified.startLineNumber<=O.modified.startLineNumber),P=Math.max(O.original.startLineNumber-T.original.startLineNumber,O.modified.startLineNumber-N.modified.startLineNumber),x=M.findLastMonotonous(U=>U.original.startLineNumberU.modified.startLineNumbers.length||F>g.length||D.contains(F)||I.contains(U)||!u(s[U-1],g[F-1],h))break}W>0&&(I.addRange(new p.LineRange(O.original.startLineNumber-W,O.original.startLineNumber)),D.addRange(new p.LineRange(O.modified.startLineNumber-W,O.modified.startLineNumber)));let V;for(V=0;Vs.length||F>g.length||D.contains(F)||I.contains(U)||!u(s[U-1],g[F-1],h))break}V>0&&(I.addRange(new p.LineRange(O.original.endLineNumberExclusive,O.original.endLineNumberExclusive+V)),D.addRange(new p.LineRange(O.modified.endLineNumberExclusive,O.modified.endLineNumberExclusive+V))),(W>0||V>0)&&(m[A]=new k.LineRangeMapping(new p.LineRange(O.original.startLineNumber-W,O.original.endLineNumberExclusive+V),new p.LineRange(O.modified.startLineNumber-W,O.modified.endLineNumberExclusive+V)))}return m}function u(d,r,l){if(d.trim()===r.trim())return!0;if(d.length>300&&r.length>300)return!1;const g=new o.MyersDiffAlgorithm().compute(new v.LinesSliceCharSequence([d],new S.OffsetRange(0,1),!1),new v.LinesSliceCharSequence([r],new S.OffsetRange(0,1),!1),l);let h=0;const m=L.SequenceDiff.invert(g.diffs,d.length);for(const I of m)I.seq1Range.forEach(M=>{(0,b.isSpace)(d.charCodeAt(M))||h++});function C(I){let M=0;for(let A=0;Ar.length?d:r);return h/w>.6&&w>10}function f(d){if(d.length===0)return d;d.sort((0,y.compareBy)(l=>l.original.startLineNumber,y.numberComparator));const r=[d[0]];for(let l=1;l=0&&m>=0&&h+m<=2){r[r.length-1]=s.join(g);continue}r.push(g)}return r}function c(d,r){const l=new E.MonotonousArray(d);return r=r.filter(s=>{const g=l.findLastMonotonous(C=>C.original.startLineNumberC.modified.startLineNumberV===U))return new i.LinesDiff([],[],!1);if(r.length===1&&r[0].length===0||l.length===1&&l[0].length===0)return new i.LinesDiff([new n.DetailedLineRangeMapping(new y.LineRange(1,r.length+1),new y.LineRange(1,l.length+1),[new n.RangeMapping(new _.Range(1,1,r.length,r[0].length+1),new _.Range(1,1,l.length,l[0].length+1))])],[],!1);const g=s.maxComputationTimeMs===0?p.InfiniteTimeout.instance:new p.DateTimeout(s.maxComputationTimeMs),h=!s.ignoreTrimWhitespace,m=new Map;function C(V){let U=m.get(V);return U===void 0&&(U=m.size,m.set(V,U)),U}const w=r.map(V=>C(V.trim())),D=l.map(V=>C(V.trim())),I=new a.LineSequence(w,r),M=new a.LineSequence(D,l),A=(()=>I.length+M.length<1700?this.dynamicProgrammingDiffing.compute(I,M,g,(V,U)=>r[V]===l[U]?l[U].length===0?.1:1+Math.log(1+l[U].length):.99):this.myersDiffingAlgorithm.compute(I,M))();let O=A.diffs,T=A.hitTimeout;O=(0,o.optimizeSequenceDiffs)(I,M,O),O=(0,o.removeVeryShortMatchingLinesBetweenDiffs)(I,M,O);const N=[],P=V=>{if(h)for(let U=0;UV.seq1Range.start-x===V.seq2Range.start-R);const U=V.seq1Range.start-x;P(U),x=V.seq1Range.endExclusive,R=V.seq2Range.endExclusive;const F=this.refineDiff(r,l,V,g,h);F.hitTimeout&&(T=!0);for(const j of F.mappings)N.push(j)}P(r.length-x);const B=f(N,r,l);let W=[];return s.computeMoves&&(W=this.computeMoves(B,r,l,w,D,g,h)),(0,k.assertFn)(()=>{function V(F,j){if(F.lineNumber<1||F.lineNumber>j.length)return!1;const J=j[F.lineNumber-1];return!(F.column<1||F.column>J.length+1)}function U(F,j){return!(F.startLineNumber<1||F.startLineNumber>j.length+1||F.endLineNumberExclusive<1||F.endLineNumberExclusive>j.length+1)}for(const F of B){if(!F.innerChanges)return!1;for(const j of F.innerChanges)if(!(V(j.modifiedRange.getStartPosition(),l)&&V(j.modifiedRange.getEndPosition(),l)&&V(j.originalRange.getStartPosition(),r)&&V(j.originalRange.getEndPosition(),r)))return!1;if(!U(F.modified,l)||!U(F.original,r))return!1}return!0}),new i.LinesDiff(B,W,T)}computeMoves(r,l,s,g,h,m,C){return(0,b.computeMovedLines)(r,l,s,g,h,m).map(I=>{const M=this.refineDiff(l,s,new p.SequenceDiff(I.original.toOffsetRange(),I.modified.toOffsetRange()),m,C),A=f(M.mappings,l,s,!0);return new i.MovedText(I,A)})}refineDiff(r,l,s,g,h){const m=new t.LinesSliceCharSequence(r,s.seq1Range,h),C=new t.LinesSliceCharSequence(l,s.seq2Range,h),w=m.length+C.length<500?this.dynamicProgrammingDiffing.compute(m,C,g):this.myersDiffingAlgorithm.compute(m,C,g);let D=w.diffs;return D=(0,o.optimizeSequenceDiffs)(m,C,D),D=(0,o.extendDiffsToEntireWordIfAppropriate)(m,C,D),D=(0,o.removeShortMatches)(m,C,D),D=(0,o.removeVeryShortMatchingTextBetweenLongDiffs)(m,C,D),{mappings:D.map(M=>new n.RangeMapping(m.translateRange(M.seq1Range),C.translateRange(M.seq2Range))),hitTimeout:w.hitTimeout}}}e.DefaultLinesDiffComputer=u;function f(d,r,l,s=!1){const g=[];for(const h of(0,L.groupAdjacentBy)(d.map(m=>c(m,r,l)),(m,C)=>m.original.overlapOrTouch(C.original)||m.modified.overlapOrTouch(C.modified))){const m=h[0],C=h[h.length-1];g.push(new n.DetailedLineRangeMapping(m.original.join(C.original),m.modified.join(C.modified),h.map(w=>w.innerChanges[0])))}return(0,k.assertFn)(()=>!s&&g.length>0&&g[0].original.startLineNumber!==g[0].modified.startLineNumber?!1:(0,k.checkAdjacentItems)(g,(h,m)=>m.original.startLineNumber-h.original.endLineNumberExclusive===m.modified.startLineNumber-h.modified.endLineNumberExclusive&&h.original.endLineNumberExclusive=l[d.modifiedRange.startLineNumber-1].length&&d.originalRange.startColumn-1>=r[d.originalRange.startLineNumber-1].length&&d.originalRange.startLineNumber<=d.originalRange.endLineNumber+g&&d.modifiedRange.startLineNumber<=d.modifiedRange.endLineNumber+g&&(s=1);const h=new y.LineRange(d.originalRange.startLineNumber+s,d.originalRange.endLineNumber+1+g),m=new y.LineRange(d.modifiedRange.startLineNumber+s,d.modifiedRange.endLineNumber+1+g);return new n.DetailedLineRangeMapping(h,m,[d])}e.getLineRangeMapping=c}),define(ie[501],ne([1,0,171,205,110,12,5,98,62]),function(Q,e,L,k,y,E,_,p,S){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.DiffComputer=e.LegacyLinesDiffComputer=void 0;const v=3;class b{computeDiff(s,g,h){var m;const w=new f(s,g,{maxComputationTime:h.maxComputationTimeMs,shouldIgnoreTrimWhitespace:h.ignoreTrimWhitespace,shouldComputeCharChanges:!0,shouldMakePrettyDiff:!0,shouldPostProcessCharChanges:!0}).computeDiff(),D=[];let I=null;for(const M of w.changes){let A;M.originalEndLineNumber===0?A=new S.LineRange(M.originalStartLineNumber+1,M.originalStartLineNumber+1):A=new S.LineRange(M.originalStartLineNumber,M.originalEndLineNumber+1);let O;M.modifiedEndLineNumber===0?O=new S.LineRange(M.modifiedStartLineNumber+1,M.modifiedStartLineNumber+1):O=new S.LineRange(M.modifiedStartLineNumber,M.modifiedEndLineNumber+1);let T=new y.DetailedLineRangeMapping(A,O,(m=M.charChanges)===null||m===void 0?void 0:m.map(N=>new y.RangeMapping(new _.Range(N.originalStartLineNumber,N.originalStartColumn,N.originalEndLineNumber,N.originalEndColumn),new _.Range(N.modifiedStartLineNumber,N.modifiedStartColumn,N.modifiedEndLineNumber,N.modifiedEndColumn))));I&&(I.modified.endLineNumberExclusive===T.modified.startLineNumber||I.original.endLineNumberExclusive===T.original.startLineNumber)&&(T=new y.DetailedLineRangeMapping(I.original.join(T.original),I.modified.join(T.modified),I.innerChanges&&T.innerChanges?I.innerChanges.concat(T.innerChanges):void 0),D.pop()),D.push(T),I=T}return(0,p.assertFn)(()=>(0,p.checkAdjacentItems)(D,(M,A)=>A.original.startLineNumber-M.original.endLineNumberExclusive===A.modified.startLineNumber-M.modified.endLineNumberExclusive&&M.original.endLineNumberExclusive(s===10?"\\n":String.fromCharCode(s))+`-(${this._lineNumbers[g]},${this._columns[g]})`).join(", ")+"]"}_assertIndex(s,g){if(s<0||s>=g.length)throw new Error("Illegal index")}getElements(){return this._charCodes}getStartLineNumber(s){return s>0&&s===this._lineNumbers.length?this.getEndLineNumber(s-1):(this._assertIndex(s,this._lineNumbers),this._lineNumbers[s])}getEndLineNumber(s){return s===-1?this.getStartLineNumber(s+1):(this._assertIndex(s,this._lineNumbers),this._charCodes[s]===10?this._lineNumbers[s]+1:this._lineNumbers[s])}getStartColumn(s){return s>0&&s===this._columns.length?this.getEndColumn(s-1):(this._assertIndex(s,this._columns),this._columns[s])}getEndColumn(s){return s===-1?this.getStartColumn(s+1):(this._assertIndex(s,this._columns),this._charCodes[s]===10?1:this._columns[s]+1)}}class t{constructor(s,g,h,m,C,w,D,I){this.originalStartLineNumber=s,this.originalStartColumn=g,this.originalEndLineNumber=h,this.originalEndColumn=m,this.modifiedStartLineNumber=C,this.modifiedStartColumn=w,this.modifiedEndLineNumber=D,this.modifiedEndColumn=I}static createFromDiffChange(s,g,h){const m=g.getStartLineNumber(s.originalStart),C=g.getStartColumn(s.originalStart),w=g.getEndLineNumber(s.originalStart+s.originalLength-1),D=g.getEndColumn(s.originalStart+s.originalLength-1),I=h.getStartLineNumber(s.modifiedStart),M=h.getStartColumn(s.modifiedStart),A=h.getEndLineNumber(s.modifiedStart+s.modifiedLength-1),O=h.getEndColumn(s.modifiedStart+s.modifiedLength-1);return new t(m,C,w,D,I,M,A,O)}}function a(l){if(l.length<=1)return l;const s=[l[0]];let g=s[0];for(let h=1,m=l.length;h0&&g.originalLength<20&&g.modifiedLength>0&&g.modifiedLength<20&&C()){const N=h.createCharSequence(s,g.originalStart,g.originalStart+g.originalLength-1),P=m.createCharSequence(s,g.modifiedStart,g.modifiedStart+g.modifiedLength-1);if(N.getElements().length>0&&P.getElements().length>0){let x=o(N,P,C,!0).changes;D&&(x=a(x)),T=[];for(let R=0,B=x.length;R1&&x>1;){const R=T.charCodeAt(P-2),B=N.charCodeAt(x-2);if(R!==B)break;P--,x--}(P>1||x>1)&&this._pushTrimWhitespaceCharChange(m,C+1,1,P,w+1,1,x)}{let P=d(T,1),x=d(N,1);const R=T.length+1,B=N.length+1;for(;P!0;const s=Date.now();return()=>Date.now()-snew L.LegacyLinesDiffComputer,getDefault:()=>new k.DefaultLinesDiffComputer}}),define(ie[284],ne([1,0]),function(Q,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.InternalEditorAction=void 0;class L{constructor(y,E,_,p,S,v,b){this.id=y,this.label=E,this.alias=_,this.metadata=p,this._precondition=S,this._run=v,this._contextKeyService=b}isSupported(){return this._contextKeyService.contextMatchesRules(this._precondition)}run(y){return this.isSupported()?this._run(y):Promise.resolve(void 0)}}e.InternalEditorAction=L}),define(ie[178],ne([1,0]),function(Q,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.EditorType=void 0,e.EditorType={ICodeEditor:"vs.editor.ICodeEditor",IDiffEditor:"vs.editor.IDiffEditor"}}),define(ie[151],ne([1,0,178]),function(Q,e,L){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getCodeEditor=e.isCompositeEditor=e.isDiffEditor=e.isCodeEditor=void 0;function k(p){return p&&typeof p.getEditorType=="function"?p.getEditorType()===L.EditorType.ICodeEditor:!1}e.isCodeEditor=k;function y(p){return p&&typeof p.getEditorType=="function"?p.getEditorType()===L.EditorType.IDiffEditor:!1}e.isDiffEditor=y;function E(p){return!!p&&typeof p=="object"&&typeof p.onDidChangeActiveEditor=="function"}e.isCompositeEditor=E;function _(p){return k(p)?p:y(p)?p.getModifiedEditor():E(p)&&k(p.activeCodeEditor)?p.activeCodeEditor:null}e.getCodeEditor=_}),define(ie[152],ne([1,0]),function(Q,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getEditorFeatures=e.registerEditorFeature=void 0;const L=[];function k(E){L.push(E)}e.registerEditorFeature=k;function y(){return L.slice(0)}e.getEditorFeatures=y}),define(ie[503],ne([1,0]),function(Q,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.EditorTheme=void 0;class L{get type(){return this._theme.type}get value(){return this._theme}constructor(y){this._theme=y}update(y){this._theme=y}getColor(y){return this._theme.getColor(y)}}e.EditorTheme=L}),define(ie[128],ne([1,0]),function(Q,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.TokenMetadata=void 0;class L{static getLanguageId(y){return(y&255)>>>0}static getTokenType(y){return(y&768)>>>8}static containsBalancedBrackets(y){return(y&1024)!==0}static getFontStyle(y){return(y&30720)>>>11}static getForeground(y){return(y&16744448)>>>15}static getBackground(y){return(y&4278190080)>>>24}static getClassNameFromMetadata(y){let _="mtk"+this.getForeground(y);const p=this.getFontStyle(y);return p&1&&(_+=" mtki"),p&2&&(_+=" mtkb"),p&4&&(_+=" mtku"),p&8&&(_+=" mtks"),_}static getInlineStyleFromMetadata(y,E){const _=this.getForeground(y),p=this.getFontStyle(y);let S=`color: ${E[_]};`;p&1&&(S+="font-style: italic;"),p&2&&(S+="font-weight: bold;");let v="";return p&4&&(v+=" underline"),p&8&&(v+=" line-through"),v&&(S+=`text-decoration:${v};`),S}static getPresentationFromMetadata(y){const E=this.getForeground(y),_=this.getFontStyle(y);return{foreground:E,italic:!!(_&1),bold:!!(_&2),underline:!!(_&4),strikethrough:!!(_&8)}}}e.TokenMetadata=L}),define(ie[504],ne([1,0,38]),function(Q,e,L){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.computeDefaultDocumentColors=void 0;function k(i){const n=[];for(const t of i){const a=Number(t);(a||a===0&&t.replace(/\s/g,"")!=="")&&n.push(a)}return n}function y(i,n,t,a){return{red:i/255,blue:t/255,green:n/255,alpha:a}}function E(i,n){const t=n.index,a=n[0].length;if(!t)return;const u=i.positionAt(t);return{startLineNumber:u.lineNumber,startColumn:u.column,endLineNumber:u.lineNumber,endColumn:u.column+a}}function _(i,n){if(!i)return;const t=L.Color.Format.CSS.parseHex(n);if(t)return{range:i,color:y(t.rgba.r,t.rgba.g,t.rgba.b,t.rgba.a)}}function p(i,n,t){if(!i||n.length!==1)return;const u=n[0].values(),f=k(u);return{range:i,color:y(f[0],f[1],f[2],t?f[3]:1)}}function S(i,n,t){if(!i||n.length!==1)return;const u=n[0].values(),f=k(u),c=new L.Color(new L.HSLA(f[0],f[1]/100,f[2]/100,t?f[3]:1));return{range:i,color:y(c.rgba.r,c.rgba.g,c.rgba.b,c.rgba.a)}}function v(i,n){return typeof i=="string"?[...i.matchAll(n)]:i.findMatches(n)}function b(i){const n=[],a=v(i,/\b(rgb|rgba|hsl|hsla)(\([0-9\s,.\%]*\))|(#)([A-Fa-f0-9]{3})\b|(#)([A-Fa-f0-9]{4})\b|(#)([A-Fa-f0-9]{6})\b|(#)([A-Fa-f0-9]{8})\b/gm);if(a.length>0)for(const u of a){const f=u.filter(l=>l!==void 0),c=f[1],d=f[2];if(!d)continue;let r;if(c==="rgb"){const l=/^\(\s*(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9][0-9]|[0-9])\s*,\s*(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9][0-9]|[0-9])\s*,\s*(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9][0-9]|[0-9])\s*\)$/gm;r=p(E(i,u),v(d,l),!1)}else if(c==="rgba"){const l=/^\(\s*(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9][0-9]|[0-9])\s*,\s*(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9][0-9]|[0-9])\s*,\s*(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9][0-9]|[0-9])\s*,\s*(0[.][0-9]+|[.][0-9]+|[01][.]|[01])\s*\)$/gm;r=p(E(i,u),v(d,l),!0)}else if(c==="hsl"){const l=/^\(\s*(36[0]|3[0-5][0-9]|[12][0-9][0-9]|[1-9]?[0-9])\s*,\s*(100|\d{1,2}[.]\d*|\d{1,2})%\s*,\s*(100|\d{1,2}[.]\d*|\d{1,2})%\s*\)$/gm;r=S(E(i,u),v(d,l),!1)}else if(c==="hsla"){const l=/^\(\s*(36[0]|3[0-5][0-9]|[12][0-9][0-9]|[1-9]?[0-9])\s*,\s*(100|\d{1,2}[.]\d*|\d{1,2})%\s*,\s*(100|\d{1,2}[.]\d*|\d{1,2})%\s*,\s*(0[.][0-9]+|[.][0-9]+|[01][.]|[01])\s*\)$/gm;r=S(E(i,u),v(d,l),!0)}else c==="#"&&(r=_(E(i,u),c+d));r&&n.push(r)}return n}function o(i){return!i||typeof i.getValue!="function"||typeof i.positionAt!="function"?[]:b(i)}e.computeDefaultDocumentColors=o}),define(ie[111],ne([1,0]),function(Q,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.AutoClosingPairs=e.StandardAutoClosingPairConditional=e.IndentAction=void 0;var L;(function(_){_[_.None=0]="None",_[_.Indent=1]="Indent",_[_.IndentOutdent=2]="IndentOutdent",_[_.Outdent=3]="Outdent"})(L||(e.IndentAction=L={}));class k{constructor(p){if(this._neutralCharacter=null,this._neutralCharacterSearched=!1,this.open=p.open,this.close=p.close,this._inString=!0,this._inComment=!0,this._inRegEx=!0,Array.isArray(p.notIn))for(let S=0,v=p.notIn.length;Sn&&(n=d),c>t&&(t=c),r>t&&(t=r)}n++,t++;const a=new k(t,n,0);for(let u=0,f=i.length;u=this._maxCharCode?0:this._states.get(i,n)}}e.StateMachine=y;let E=null;function _(){return E===null&&(E=new y([[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]])),E}let p=null;function S(){if(p===null){p=new L.CharacterClassifier(0);const o=` <>'"\u3001\u3002\uFF61\uFF64\uFF0C\uFF0E\uFF1A\uFF1B\u2018\u3008\u300C\u300E\u3014\uFF08\uFF3B\uFF5B\uFF62\uFF63\uFF5D\uFF3D\uFF09\u3015\u300F\u300D\u3009\u2019\uFF40\uFF5E\u2026`;for(let n=0;na);if(a>0){const c=n.charCodeAt(a-1),d=n.charCodeAt(f);(c===40&&d===41||c===91&&d===93||c===123&&d===125)&&f--}return{range:{startLineNumber:t,startColumn:a+1,endLineNumber:t,endColumn:f+2},url:n.substring(a,f+1)}}static computeLinks(i,n=_()){const t=S(),a=[];for(let u=1,f=i.getLineCount();u<=f;u++){const c=i.getLineContent(u),d=c.length;let r=0,l=0,s=0,g=1,h=!1,m=!1,C=!1,w=!1;for(;r0&&E.getLanguageId(o-1)===v;)o--;return new k(E,v,o,b+1,E.getStartOffset(o),E.getEndOffset(b))}e.createScopedLineTokens=L;class k{constructor(_,p,S,v,b,o){this._scopedLineTokensBrand=void 0,this._actual=_,this.languageId=p,this._firstTokenIndex=S,this._lastTokenIndex=v,this.firstCharOffset=b,this._lastCharOffset=o}getLineContent(){return this._actual.getLineContent().substring(this.firstCharOffset,this._lastCharOffset)}getActualLineContentBefore(_){return this._actual.getLineContent().substring(0,this.firstCharOffset+_)}getTokenCount(){return this._lastTokenIndex-this._firstTokenIndex}findTokenIndexAtOffset(_){return this._actual.findTokenIndexAtOffset(_+this.firstCharOffset)-this._firstTokenIndex}getStandardTokenType(_){return this._actual.getStandardTokenType(_+this._firstTokenIndex)}}e.ScopedLineTokens=k;function y(E){return(E&3)!==0}e.ignoreBracketsInToken=y}),define(ie[75],ne([1,0,11,5,24,129,84,203]),function(Q,e,L,k,y,E,_,p){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.isQuote=e.EditOperationResult=e.SingleCursorState=e.PartialViewCursorState=e.PartialModelCursorState=e.CursorState=e.CursorConfiguration=void 0;const S=()=>!0,v=()=>!1,b=c=>c===" "||c===" ";class o{static shouldRecreate(d){return d.hasChanged(143)||d.hasChanged(129)||d.hasChanged(37)||d.hasChanged(76)||d.hasChanged(78)||d.hasChanged(79)||d.hasChanged(6)||d.hasChanged(7)||d.hasChanged(11)||d.hasChanged(9)||d.hasChanged(10)||d.hasChanged(14)||d.hasChanged(127)||d.hasChanged(50)||d.hasChanged(90)}constructor(d,r,l,s){var g;this.languageConfigurationService=s,this._cursorMoveConfigurationBrand=void 0,this._languageId=d;const h=l.options,m=h.get(143),C=h.get(50);this.readOnly=h.get(90),this.tabSize=r.tabSize,this.indentSize=r.indentSize,this.insertSpaces=r.insertSpaces,this.stickyTabStops=h.get(115),this.lineHeight=C.lineHeight,this.typicalHalfwidthCharacterWidth=C.typicalHalfwidthCharacterWidth,this.pageSize=Math.max(1,Math.floor(m.height/this.lineHeight)-2),this.useTabStops=h.get(127),this.wordSeparators=h.get(129),this.emptySelectionClipboard=h.get(37),this.copyWithSyntaxHighlighting=h.get(25),this.multiCursorMergeOverlapping=h.get(76),this.multiCursorPaste=h.get(78),this.multiCursorLimit=h.get(79),this.autoClosingBrackets=h.get(6),this.autoClosingComments=h.get(7),this.autoClosingQuotes=h.get(11),this.autoClosingDelete=h.get(9),this.autoClosingOvertype=h.get(10),this.autoSurround=h.get(14),this.autoIndent=h.get(12),this.surroundingPairs={},this._electricChars=null,this.shouldAutoCloseBefore={quote:this._getShouldAutoClose(d,this.autoClosingQuotes,!0),comment:this._getShouldAutoClose(d,this.autoClosingComments,!1),bracket:this._getShouldAutoClose(d,this.autoClosingBrackets,!1)},this.autoClosingPairs=this.languageConfigurationService.getLanguageConfiguration(d).getAutoClosingPairs();const w=this.languageConfigurationService.getLanguageConfiguration(d).getSurroundingPairs();if(w)for(const I of w)this.surroundingPairs[I.open]=I.close;const D=this.languageConfigurationService.getLanguageConfiguration(d).comments;this.blockCommentStartToken=(g=D?.blockCommentStartToken)!==null&&g!==void 0?g:null}get electricChars(){var d;if(!this._electricChars){this._electricChars={};const r=(d=this.languageConfigurationService.getLanguageConfiguration(this._languageId).electricCharacter)===null||d===void 0?void 0:d.getElectricCharacters();if(r)for(const l of r)this._electricChars[l]=!0}return this._electricChars}onElectricCharacter(d,r,l){const s=(0,E.createScopedLineTokens)(r,l-1),g=this.languageConfigurationService.getLanguageConfiguration(s.languageId).electricCharacter;return g?g.onElectricCharacter(d,s,l-s.firstCharOffset):null}normalizeIndentation(d){return(0,p.normalizeIndentation)(d,this.indentSize,this.insertSpaces)}_getShouldAutoClose(d,r,l){switch(r){case"beforeWhitespace":return b;case"languageDefined":return this._getLanguageDefinedShouldAutoClose(d,l);case"always":return S;case"never":return v}}_getLanguageDefinedShouldAutoClose(d,r){const l=this.languageConfigurationService.getLanguageConfiguration(d).getAutoCloseBeforeSet(r);return s=>l.indexOf(s)!==-1}visibleColumnFromColumn(d,r){return _.CursorColumns.visibleColumnFromColumn(d.getLineContent(r.lineNumber),r.column,this.tabSize)}columnFromVisibleColumn(d,r,l){const s=_.CursorColumns.columnFromVisibleColumn(d.getLineContent(r),l,this.tabSize),g=d.getLineMinColumn(r);if(sh?h:s}}e.CursorConfiguration=o;class i{static fromModelState(d){return new n(d)}static fromViewState(d){return new t(d)}static fromModelSelection(d){const r=y.Selection.liftSelection(d),l=new a(k.Range.fromPositions(r.getSelectionStart()),0,0,r.getPosition(),0);return i.fromModelState(l)}static fromModelSelections(d){const r=[];for(let l=0,s=d.length;lo,a=b>i,u=bi||gb||s0&&b--,E.columnSelect(p,S,v.fromViewLineNumber,v.fromViewVisualColumn,v.toViewLineNumber,b)}static columnSelectRight(p,S,v){let b=0;const o=Math.min(v.fromViewLineNumber,v.toViewLineNumber),i=Math.max(v.fromViewLineNumber,v.toViewLineNumber);for(let t=o;t<=i;t++){const a=S.getLineMaxColumn(t),u=p.visibleColumnFromColumn(S,new k.Position(t,a));b=Math.max(b,u)}let n=v.toViewVisualColumn;return no.getLineMinColumn(i.lineNumber))return i.delta(void 0,-L.prevCharLength(o.getLineContent(i.lineNumber),i.column-1));if(i.lineNumber>1){const n=i.lineNumber-1;return new y.Position(n,o.getLineMaxColumn(n))}else return i}static leftPositionAtomicSoftTabs(o,i,n){if(i.column<=o.getLineIndentColumn(i.lineNumber)){const t=o.getLineMinColumn(i.lineNumber),a=o.getLineContent(i.lineNumber),u=_.AtomicTabMoveOperations.atomicPosition(a,i.column-1,n,0);if(u!==-1&&u+1>=t)return new y.Position(i.lineNumber,u+1)}return this.leftPosition(o,i)}static left(o,i,n){const t=o.stickyTabStops?v.leftPositionAtomicSoftTabs(i,n,o.tabSize):v.leftPosition(i,n);return new S(t.lineNumber,t.column,0)}static moveLeft(o,i,n,t,a){let u,f;if(n.hasSelection()&&!t)u=n.selection.startLineNumber,f=n.selection.startColumn;else{const c=n.position.delta(void 0,-(a-1)),d=i.normalizePosition(v.clipPositionColumn(c,i),0),r=v.left(o,i,d);u=r.lineNumber,f=r.column}return n.move(t,u,f,0)}static clipPositionColumn(o,i){return new y.Position(o.lineNumber,v.clipRange(o.column,i.getLineMinColumn(o.lineNumber),i.getLineMaxColumn(o.lineNumber)))}static clipRange(o,i,n){return on?n:o}static rightPosition(o,i,n){return nr?(n=r,f?t=i.getLineMaxColumn(n):t=Math.min(i.getLineMaxColumn(n),t)):t=o.columnFromVisibleColumn(i,n,d),g?a=0:a=d-k.CursorColumns.visibleColumnFromColumn(i.getLineContent(n),t,o.tabSize),c!==void 0){const h=new y.Position(n,t),m=i.normalizePosition(h,c);a=a+(t-m.column),n=m.lineNumber,t=m.column}return new S(n,t,a)}static down(o,i,n,t,a,u,f){return this.vertical(o,i,n,t,a,n+u,f,4)}static moveDown(o,i,n,t,a){let u,f;n.hasSelection()&&!t?(u=n.selection.endLineNumber,f=n.selection.endColumn):(u=n.position.lineNumber,f=n.position.column);let c=0,d;do if(d=v.down(o,i,u+c,f,n.leftoverVisibleColumns,a,!0),i.normalizePosition(new y.Position(d.lineNumber,d.column),2).lineNumber>u)break;while(c++<10&&u+c1&&this._isBlankLine(i,a);)a--;for(;a>1&&!this._isBlankLine(i,a);)a--;return n.move(t,a,i.getLineMinColumn(a),0)}static moveToNextBlankLine(o,i,n,t){const a=i.getLineCount();let u=n.position.lineNumber;for(;u=s.length+1)return!1;const g=s.charAt(l.column-2),h=t.get(g);if(!h)return!1;if((0,y.isQuote)(g)){if(n==="never")return!1}else if(i==="never")return!1;const m=s.charAt(l.column-1);let C=!1;for(const w of h)w.open===g&&w.close===m&&(C=!0);if(!C)return!1;if(o==="auto"){let w=!1;for(let D=0,I=f.length;D1){const a=i.getLineContent(t.lineNumber),u=L.firstNonWhitespaceIndex(a),f=u===-1?a.length+1:u+1;if(t.column<=f){const c=n.visibleColumnFromColumn(i,t),d=E.CursorColumns.prevIndentTabStop(c,n.indentSize),r=n.columnFromVisibleColumn(i,t.lineNumber,d);return new p.Range(t.lineNumber,r,t.lineNumber,t.column)}}return p.Range.fromPositions(v.getPositionAfterDeleteLeft(t,i),t)}static getPositionAfterDeleteLeft(o,i){if(o.column>1){const n=L.getLeftDeleteOffset(o.column-1,i.getLineContent(o.lineNumber));return o.with(void 0,n+1)}else if(o.lineNumber>1){const n=o.lineNumber-1;return new S.Position(n,i.getLineMaxColumn(n))}else return o}static cut(o,i,n){const t=[];let a=null;n.sort((u,f)=>S.Position.compare(u.getStartPosition(),f.getEndPosition()));for(let u=0,f=n.length;u1&&a?.endLineNumber!==d.lineNumber?(r=d.lineNumber-1,l=i.getLineMaxColumn(d.lineNumber-1),s=d.lineNumber,g=i.getLineMaxColumn(d.lineNumber)):(r=d.lineNumber,l=1,s=d.lineNumber,g=i.getLineMaxColumn(d.lineNumber));const h=new p.Range(r,l,s,g);a=h,h.isEmpty()?t[u]=null:t[u]=new k.ReplaceCommand(h,"")}else t[u]=null;else t[u]=new k.ReplaceCommand(c,"")}return new y.EditOperationResult(0,t,{shouldPushStackElementBefore:!0,shouldPushStackElementAfter:!0})}}e.DeleteOperations=v}),define(ie[179],ne([1,0,12,75,207,148,11,5]),function(Q,e,L,k,y,E,_,p){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.WordPartOperations=e.WordOperations=void 0;class S{static _createWord(i,n,t,a,u){return{start:a,end:u,wordType:n,nextCharClass:t}}static _findPreviousWordOnLine(i,n,t){const a=n.getLineContent(t.lineNumber);return this._doFindPreviousWordOnLine(a,i,t)}static _doFindPreviousWordOnLine(i,n,t){let a=0;for(let u=t.column-2;u>=0;u--){const f=i.charCodeAt(u),c=n.get(f);if(c===0){if(a===2)return this._createWord(i,a,c,u+1,this._findEndOfWord(i,n,a,u+1));a=1}else if(c===2){if(a===1)return this._createWord(i,a,c,u+1,this._findEndOfWord(i,n,a,u+1));a=2}else if(c===1&&a!==0)return this._createWord(i,a,c,u+1,this._findEndOfWord(i,n,a,u+1))}return a!==0?this._createWord(i,a,1,0,this._findEndOfWord(i,n,a,0)):null}static _findEndOfWord(i,n,t,a){const u=i.length;for(let f=a;f=0;u--){const f=i.charCodeAt(u),c=n.get(f);if(c===1||t===1&&c===2||t===2&&c===0)return u+1}return 0}static moveWordLeft(i,n,t,a){let u=t.lineNumber,f=t.column;f===1&&u>1&&(u=u-1,f=n.getLineMaxColumn(u));let c=S._findPreviousWordOnLine(i,n,new _.Position(u,f));if(a===0)return new _.Position(u,c?c.start+1:1);if(a===1)return c&&c.wordType===2&&c.end-c.start===1&&c.nextCharClass===0&&(c=S._findPreviousWordOnLine(i,n,new _.Position(u,c.start+1))),new _.Position(u,c?c.start+1:1);if(a===3){for(;c&&c.wordType===2;)c=S._findPreviousWordOnLine(i,n,new _.Position(u,c.start+1));return new _.Position(u,c?c.start+1:1)}return c&&f<=c.end+1&&(c=S._findPreviousWordOnLine(i,n,new _.Position(u,c.start+1))),new _.Position(u,c?c.end+1:1)}static _moveWordPartLeft(i,n){const t=n.lineNumber,a=i.getLineMaxColumn(t);if(n.column===1)return t>1?new _.Position(t-1,i.getLineMaxColumn(t-1)):n;const u=i.getLineContent(t);for(let f=n.column-1;f>1;f--){const c=u.charCodeAt(f-2),d=u.charCodeAt(f-1);if(c===95&&d!==95)return new _.Position(t,f);if(c===45&&d!==45)return new _.Position(t,f);if((L.isLowerAsciiLetter(c)||L.isAsciiDigit(c))&&L.isUpperAsciiLetter(d))return new _.Position(t,f);if(L.isUpperAsciiLetter(c)&&L.isUpperAsciiLetter(d)&&f+1=d.start+1&&(d=S._findNextWordOnLine(i,n,new _.Position(u,d.end+1))),d?f=d.start+1:f=n.getLineMaxColumn(u);return new _.Position(u,f)}static _moveWordPartRight(i,n){const t=n.lineNumber,a=i.getLineMaxColumn(t);if(n.column===a)return t1?r=1:(d--,r=a.getLineMaxColumn(d)):(l&&r<=l.end+1&&(l=S._findPreviousWordOnLine(t,a,new _.Position(d,l.start+1))),l?r=l.end+1:r>1?r=1:(d--,r=a.getLineMaxColumn(d))),new p.Range(d,r,c.lineNumber,c.column)}static deleteInsideWord(i,n,t){if(!t.isEmpty())return t;const a=new _.Position(t.positionLineNumber,t.positionColumn),u=this._deleteInsideWordWhitespace(n,a);return u||this._deleteInsideWordDetermineDeleteRange(i,n,a)}static _charAtIsWhitespace(i,n){const t=i.charCodeAt(n);return t===32||t===9}static _deleteInsideWordWhitespace(i,n){const t=i.getLineContent(n.lineNumber),a=t.length;if(a===0)return null;let u=Math.max(n.column-2,0);if(!this._charAtIsWhitespace(t,u))return null;let f=Math.min(n.column-1,a-1);if(!this._charAtIsWhitespace(t,f))return null;for(;u>0&&this._charAtIsWhitespace(t,u-1);)u--;for(;f+11?new p.Range(t.lineNumber-1,n.getLineMaxColumn(t.lineNumber-1),t.lineNumber,1):t.lineNumbers.start+1<=t.column&&t.column<=s.end+1,c=(s,g)=>(s=Math.min(s,t.column),g=Math.max(g,t.column),new p.Range(t.lineNumber,s,t.lineNumber,g)),d=s=>{let g=s.start+1,h=s.end+1,m=!1;for(;h-11&&this._charAtIsWhitespace(a,g-2);)g--;return c(g,h)},r=S._findPreviousWordOnLine(i,n,t);if(r&&f(r))return d(r);const l=S._findNextWordOnLine(i,n,t);return l&&f(l)?d(l):r&&l?c(r.end+1,l.start+1):r?c(r.start+1,r.end+1):l?c(l.start+1,l.end+1):c(1,u+1)}static _deleteWordPartLeft(i,n){if(!n.isEmpty())return n;const t=n.getPosition(),a=S._moveWordPartLeft(i,t);return new p.Range(t.lineNumber,t.column,a.lineNumber,a.column)}static _findFirstNonWhitespaceChar(i,n){const t=i.length;for(let a=n;a=g.start+1&&(g=S._findNextWordOnLine(t,a,new _.Position(d,g.end+1))),g?r=g.start+1:r!!i)}}),define(ie[208],ne([1,0,20,75,206,179,11,5]),function(Q,e,L,k,y,E,_,p){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.CursorMove=e.CursorMoveCommands=void 0;class S{static addCursorDown(o,i,n){const t=[];let a=0;for(let u=0,f=i.length;ud&&(r=d,l=o.model.getLineMaxColumn(r)),k.CursorState.fromModelState(new k.SingleCursorState(new p.Range(u.lineNumber,1,r,l),2,0,new _.Position(r,l),0))}const c=i.modelState.selectionStart.getStartPosition().lineNumber;if(u.lineNumberc){const d=o.getLineCount();let r=f.lineNumber+1,l=1;return r>d&&(r=d,l=o.getLineMaxColumn(r)),k.CursorState.fromViewState(i.viewState.move(!0,r,l,0))}else{const d=i.modelState.selectionStart.getEndPosition();return k.CursorState.fromModelState(i.modelState.move(!0,d.lineNumber,d.column,0))}}static word(o,i,n,t){const a=o.model.validatePosition(t);return k.CursorState.fromModelState(E.WordOperations.word(o.cursorConfig,o.model,i.modelState,n,a))}static cancelSelection(o,i){if(!i.modelState.hasSelection())return new k.CursorState(i.modelState,i.viewState);const n=i.viewState.position.lineNumber,t=i.viewState.position.column;return k.CursorState.fromViewState(new k.SingleCursorState(new p.Range(n,t,n,t),0,0,new _.Position(n,t),0))}static moveTo(o,i,n,t,a){if(n){if(i.modelState.selectionStartKind===1)return this.word(o,i,n,t);if(i.modelState.selectionStartKind===2)return this.line(o,i,n,t,a)}const u=o.model.validatePosition(t),f=a?o.coordinatesConverter.validateViewPosition(new _.Position(a.lineNumber,a.column),u):o.coordinatesConverter.convertModelPositionToViewPosition(u);return k.CursorState.fromViewState(i.viewState.move(n,f.lineNumber,f.column,0))}static simpleMove(o,i,n,t,a,u){switch(n){case 0:return u===4?this._moveHalfLineLeft(o,i,t):this._moveLeft(o,i,t,a);case 1:return u===4?this._moveHalfLineRight(o,i,t):this._moveRight(o,i,t,a);case 2:return u===2?this._moveUpByViewLines(o,i,t,a):this._moveUpByModelLines(o,i,t,a);case 3:return u===2?this._moveDownByViewLines(o,i,t,a):this._moveDownByModelLines(o,i,t,a);case 4:return u===2?i.map(f=>k.CursorState.fromViewState(y.MoveOperations.moveToPrevBlankLine(o.cursorConfig,o,f.viewState,t))):i.map(f=>k.CursorState.fromModelState(y.MoveOperations.moveToPrevBlankLine(o.cursorConfig,o.model,f.modelState,t)));case 5:return u===2?i.map(f=>k.CursorState.fromViewState(y.MoveOperations.moveToNextBlankLine(o.cursorConfig,o,f.viewState,t))):i.map(f=>k.CursorState.fromModelState(y.MoveOperations.moveToNextBlankLine(o.cursorConfig,o.model,f.modelState,t)));case 6:return this._moveToViewMinColumn(o,i,t);case 7:return this._moveToViewFirstNonWhitespaceColumn(o,i,t);case 8:return this._moveToViewCenterColumn(o,i,t);case 9:return this._moveToViewMaxColumn(o,i,t);case 10:return this._moveToViewLastNonWhitespaceColumn(o,i,t);default:return null}}static viewportMove(o,i,n,t,a){const u=o.getCompletelyVisibleViewRange(),f=o.coordinatesConverter.convertViewRangeToModelRange(u);switch(n){case 11:{const c=this._firstLineNumberInRange(o.model,f,a),d=o.model.getLineFirstNonWhitespaceColumn(c);return[this._moveToModelPosition(o,i[0],t,c,d)]}case 13:{const c=this._lastLineNumberInRange(o.model,f,a),d=o.model.getLineFirstNonWhitespaceColumn(c);return[this._moveToModelPosition(o,i[0],t,c,d)]}case 12:{const c=Math.round((f.startLineNumber+f.endLineNumber)/2),d=o.model.getLineFirstNonWhitespaceColumn(c);return[this._moveToModelPosition(o,i[0],t,c,d)]}case 14:{const c=[];for(let d=0,r=i.length;dn.endLineNumber-1?u=n.endLineNumber-1:ak.CursorState.fromViewState(y.MoveOperations.moveLeft(o.cursorConfig,o,a.viewState,n,t)))}static _moveHalfLineLeft(o,i,n){const t=[];for(let a=0,u=i.length;ak.CursorState.fromViewState(y.MoveOperations.moveRight(o.cursorConfig,o,a.viewState,n,t)))}static _moveHalfLineRight(o,i,n){const t=[];for(let a=0,u=i.length;ao.readSelectionFromMarkers(this.context))}getAll(){return this.cursors.map(o=>o.asCursorState())}getViewPositions(){return this.cursors.map(o=>o.viewState.position)}getTopMostViewPosition(){return(0,k.findFirstMinBy)(this.cursors,(0,L.compareBy)(o=>o.viewState.position,_.Position.compare)).viewState.position}getBottomMostViewPosition(){return(0,k.findLastMaxBy)(this.cursors,(0,L.compareBy)(o=>o.viewState.position,_.Position.compare)).viewState.position}getSelections(){return this.cursors.map(o=>o.modelState.selection)}getViewSelections(){return this.cursors.map(o=>o.viewState.selection)}setSelections(o){this.setStates(y.CursorState.fromModelSelections(o))}getPrimaryCursor(){return this.cursors[0].asCursorState()}setStates(o){o!==null&&(this.cursors[0].setState(this.context,o[0].modelState,o[0].viewState),this._setSecondaryStates(o.slice(1)))}_setSecondaryStates(o){const i=this.cursors.length-1,n=o.length;if(in){const t=i-n;for(let a=0;a=o+1&&this.lastAddedCursorIndex--,this.cursors[o+1].dispose(this.context),this.cursors.splice(o+1,1)}normalize(){if(this.cursors.length===1)return;const o=this.cursors.slice(0),i=[];for(let n=0,t=o.length;nn.selection,p.Range.compareRangesUsingStarts));for(let n=0;nl&&m.index--;o.splice(l,1),i.splice(r,1),this._removeSecondaryCursor(l-1),n--}}}}e.CursorCollection=v}),define(ie[509],ne([1,0,111]),function(Q,e,L){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.CharacterPairSupport=void 0;class k{constructor(E){if(E.autoClosingPairs?this._autoClosingPairs=E.autoClosingPairs.map(_=>new L.StandardAutoClosingPairConditional(_)):E.brackets?this._autoClosingPairs=E.brackets.map(_=>new L.StandardAutoClosingPairConditional({open:_[0],close:_[1]})):this._autoClosingPairs=[],E.__electricCharacterSupport&&E.__electricCharacterSupport.docComment){const _=E.__electricCharacterSupport.docComment;this._autoClosingPairs.push(new L.StandardAutoClosingPairConditional({open:_.open,close:_.close||""}))}this._autoCloseBeforeForQuotes=typeof E.autoCloseBefore=="string"?E.autoCloseBefore:k.DEFAULT_AUTOCLOSE_BEFORE_LANGUAGE_DEFINED_QUOTES,this._autoCloseBeforeForBrackets=typeof E.autoCloseBefore=="string"?E.autoCloseBefore:k.DEFAULT_AUTOCLOSE_BEFORE_LANGUAGE_DEFINED_BRACKETS,this._surroundingPairs=E.surroundingPairs||this._autoClosingPairs}getAutoClosingPairs(){return this._autoClosingPairs}getAutoCloseBeforeSet(E){return E?this._autoCloseBeforeForQuotes:this._autoCloseBeforeForBrackets}getSurroundingPairs(){return this._surroundingPairs}}e.CharacterPairSupport=k,k.DEFAULT_AUTOCLOSE_BEFORE_LANGUAGE_DEFINED_QUOTES=`;:.,=}])>
`,k.DEFAULT_AUTOCLOSE_BEFORE_LANGUAGE_DEFINED_BRACKETS=`'"\`;:.,=}])>
`}),define(ie[510],ne([1,0]),function(Q,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.IndentRulesSupport=void 0;function L(y){return y.global&&(y.lastIndex=0),!0}class k{constructor(E){this._indentationRules=E}shouldIncrease(E){return!!(this._indentationRules&&this._indentationRules.increaseIndentPattern&&L(this._indentationRules.increaseIndentPattern)&&this._indentationRules.increaseIndentPattern.test(E))}shouldDecrease(E){return!!(this._indentationRules&&this._indentationRules.decreaseIndentPattern&&L(this._indentationRules.decreaseIndentPattern)&&this._indentationRules.decreaseIndentPattern.test(E))}shouldIndentNextLine(E){return!!(this._indentationRules&&this._indentationRules.indentNextLinePattern&&L(this._indentationRules.indentNextLinePattern)&&this._indentationRules.indentNextLinePattern.test(E))}shouldIgnore(E){return!!(this._indentationRules&&this._indentationRules.unIndentedLinePattern&&L(this._indentationRules.unIndentedLinePattern)&&this._indentationRules.unIndentedLinePattern.test(E))}getIndentMetadata(E){let _=0;return this.shouldIncrease(E)&&(_+=1),this.shouldDecrease(E)&&(_+=2),this.shouldIndentNextLine(E)&&(_+=4),this.shouldIgnore(E)&&(_+=8),_}}e.IndentRulesSupport=k}),define(ie[511],ne([1,0]),function(Q,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.BasicInplaceReplace=void 0;class L{constructor(){this._defaultValueSet=[["true","false"],["True","False"],["Private","Public","Friend","ReadOnly","Partial","Protected","WriteOnly"],["public","protected","private"]]}navigateValueSet(y,E,_,p,S){if(y&&E){const v=this.doNavigateValueSet(E,S);if(v)return{range:y,value:v}}if(_&&p){const v=this.doNavigateValueSet(p,S);if(v)return{range:_,value:v}}return null}doNavigateValueSet(y,E){const _=this.numberReplace(y,E);return _!==null?_:this.textReplace(y,E)}numberReplace(y,E){const _=Math.pow(10,y.length-(y.lastIndexOf(".")+1));let p=Number(y);const S=parseFloat(y);return!isNaN(p)&&!isNaN(S)&&p===S?p===0&&!E?null:(p=Math.floor(p*_),p+=E?_:-_,String(p/_)):null}textReplace(y,E){return this.valueSetsReplace(this._defaultValueSet,y,E)}valueSetsReplace(y,E,_){let p=null;for(let S=0,v=y.length;p===null&&S=0?(p+=_?1:-1,p<0?p=y.length-1:p%=y.length,y[p]):null}}e.BasicInplaceReplace=L,L.INSTANCE=new L}),define(ie[512],ne([1,0,264]),function(Q,e,L){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ClosingBracketKind=e.OpeningBracketKind=e.BracketKindBase=e.LanguageBracketsConfiguration=void 0;class k{constructor(v,b){this.languageId=v;const o=b.brackets?y(b.brackets):[],i=new L.CachedFunction(a=>{const u=new Set;return{info:new _(this,a,u),closing:u}}),n=new L.CachedFunction(a=>{const u=new Set,f=new Set;return{info:new p(this,a,u,f),opening:u,openingColorized:f}});for(const[a,u]of o){const f=i.get(a),c=n.get(u);f.closing.add(c.info),c.opening.add(f.info)}const t=b.colorizedBracketPairs?y(b.colorizedBracketPairs):o.filter(a=>!(a[0]==="<"&&a[1]===">"));for(const[a,u]of t){const f=i.get(a),c=n.get(u);f.closing.add(c.info),c.openingColorized.add(f.info),c.opening.add(f.info)}this._openingBrackets=new Map([...i.cachedValues].map(([a,u])=>[a,u.info])),this._closingBrackets=new Map([...n.cachedValues].map(([a,u])=>[a,u.info]))}get openingBrackets(){return[...this._openingBrackets.values()]}get closingBrackets(){return[...this._closingBrackets.values()]}getOpeningBracketInfo(v){return this._openingBrackets.get(v)}getClosingBracketInfo(v){return this._closingBrackets.get(v)}getBracketInfo(v){return this.getOpeningBracketInfo(v)||this.getClosingBracketInfo(v)}}e.LanguageBracketsConfiguration=k;function y(S){return S.filter(([v,b])=>v!==""&&b!=="")}class E{constructor(v,b){this.config=v,this.bracketText=b}get languageId(){return this.config.languageId}}e.BracketKindBase=E;class _ extends E{constructor(v,b,o){super(v,b),this.openedBrackets=o,this.isOpeningBracket=!0}}e.OpeningBracketKind=_;class p extends E{constructor(v,b,o,i){super(v,b),this.openingBrackets=o,this.openingColorizedBrackets=i,this.isOpeningBracket=!1}closes(v){return v.config!==this.config?!1:this.openingBrackets.has(v)}closesColorized(v){return v.config!==this.config?!1:this.openingColorizedBrackets.has(v)}getOpeningBrackets(){return[...this.openingBrackets]}}e.ClosingBracketKind=p}),define(ie[513],ne([1,0,9,12,111]),function(Q,e,L,k,y){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.OnEnterSupport=void 0;class E{constructor(p){p=p||{},p.brackets=p.brackets||[["(",")"],["{","}"],["[","]"]],this._brackets=[],p.brackets.forEach(S=>{const v=E._createOpenBracketRegExp(S[0]),b=E._createCloseBracketRegExp(S[1]);v&&b&&this._brackets.push({open:S[0],openRegExp:v,close:S[1],closeRegExp:b})}),this._regExpRules=p.onEnterRules||[]}onEnter(p,S,v,b){if(p>=3)for(let o=0,i=this._regExpRules.length;oa.reg?(a.reg.lastIndex=0,a.reg.test(a.text)):!0))return n.action}if(p>=2&&v.length>0&&b.length>0)for(let o=0,i=this._brackets.length;o=2&&v.length>0){for(let o=0,i=this._brackets.length;o{const w=o(m.token,C.token);return w!==0?w:m.index-C.index});let f=0,c="000000",d="ffffff";for(;a.length>=1&&a[0].token==="";){const m=a.shift();m.fontStyle!==-1&&(f=m.fontStyle),m.foreground!==null&&(c=m.foreground),m.background!==null&&(d=m.background)}const r=new p;for(const m of u)r.getId(m);const l=r.getId(c),s=r.getId(d),g=new i(f,l,s),h=new n(g);for(let m=0,C=a.length;m"u"){const d=this._match(f),r=b(f);c=(d.metadata|r<<8)>>>0,this._cache.set(f,c)}return(c|u<<0)>>>0}}e.TokenTheme=S;const v=/\b(comment|string|regex|regexp)\b/;function b(a){const u=a.match(v);if(!u)return 0;switch(u[1]){case"comment":return 1;case"string":return 2;case"regex":return 3;case"regexp":return 3}throw new Error("Unexpected match for standard token type!")}e.toStandardTokenType=b;function o(a,u){return au?1:0}e.strcmp=o;class i{constructor(u,f,c){this._themeTrieElementRuleBrand=void 0,this._fontStyle=u,this._foreground=f,this._background=c,this.metadata=(this._fontStyle<<11|this._foreground<<15|this._background<<24)>>>0}clone(){return new i(this._fontStyle,this._foreground,this._background)}acceptOverwrite(u,f,c){u!==-1&&(this._fontStyle=u),f!==0&&(this._foreground=f),c!==0&&(this._background=c),this.metadata=(this._fontStyle<<11|this._foreground<<15|this._background<<24)>>>0}}e.ThemeTrieElementRule=i;class n{constructor(u){this._themeTrieElementBrand=void 0,this._mainRule=u,this._children=new Map}match(u){if(u==="")return this._mainRule;const f=u.indexOf(".");let c,d;f===-1?(c=u,d=""):(c=u.substring(0,f),d=u.substring(f+1));const r=this._children.get(c);return typeof r<"u"?r.match(d):this._mainRule}insert(u,f,c,d){if(u===""){this._mainRule.acceptOverwrite(f,c,d);return}const r=u.indexOf(".");let l,s;r===-1?(l=u,s=""):(l=u.substring(0,r),s=u.substring(r+1));let g=this._children.get(l);typeof g>"u"&&(g=new n(this._mainRule.clone()),this._children.set(l,g)),g.insert(s,f,c,d)}}e.ThemeTrieElement=n;function t(a){const u=[];for(let f=1,c=a.length;f=p&&(h=h-s%p),h}e.lengthAdd=i;function n(s,g){return s.reduce((h,m)=>i(h,g(m)),e.lengthZero)}e.sumLengths=n;function t(s,g){return s===g}e.lengthEquals=t;function a(s,g){const h=s,m=g;if(m-h<=0)return e.lengthZero;const w=Math.floor(h/p),D=Math.floor(m/p),I=m-D*p;if(w===D){const M=h-w*p;return S(0,I-M)}else return S(D-w,I)}e.lengthDiffNonNegative=a;function u(s,g){return s=g}e.lengthGreaterThanEqual=c;function d(s){return S(s.lineNumber-1,s.column-1)}e.positionToLength=d;function r(s,g){const h=s,m=Math.floor(h/p),C=h-m*p,w=g,D=Math.floor(w/p),I=w-D*p;return new k.Range(m+1,C+1,D+1,I+1)}e.lengthsToRange=r;function l(s){const g=(0,L.splitLines)(s);return S(g.length-1,g[g.length-1].length)}e.lengthOfString=l}),define(ie[180],ne([1,0,5,89]),function(Q,e,L,k){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.BeforeEditPositionMapper=e.TextEditInfo=void 0;class y{static fromModelContentChanges(S){return S.map(b=>{const o=L.Range.lift(b.range);return new y((0,k.positionToLength)(o.getStartPosition()),(0,k.positionToLength)(o.getEndPosition()),(0,k.lengthOfString)(b.text))}).reverse()}constructor(S,v,b){this.startOffset=S,this.endOffset=v,this.newLength=b}toString(){return`[${(0,k.lengthToObj)(this.startOffset)}...${(0,k.lengthToObj)(this.endOffset)}) -> ${(0,k.lengthToObj)(this.newLength)}`}}e.TextEditInfo=y;class E{constructor(S){this.nextEditIdx=0,this.deltaOldToNewLineCount=0,this.deltaOldToNewColumnCount=0,this.deltaLineIdxInOld=-1,this.edits=S.map(v=>_.from(v))}getOffsetBeforeChange(S){return this.adjustNextEdit(S),this.translateCurToOld(S)}getDistanceToNextChange(S){this.adjustNextEdit(S);const v=this.edits[this.nextEditIdx],b=v?this.translateOldToCur(v.offsetObj):null;return b===null?null:(0,k.lengthDiffNonNegative)(S,b)}translateOldToCur(S){return S.lineCount===this.deltaLineIdxInOld?(0,k.toLength)(S.lineCount+this.deltaOldToNewLineCount,S.columnCount+this.deltaOldToNewColumnCount):(0,k.toLength)(S.lineCount+this.deltaOldToNewLineCount,S.columnCount)}translateCurToOld(S){const v=(0,k.lengthToObj)(S);return v.lineCount-this.deltaOldToNewLineCount===this.deltaLineIdxInOld?(0,k.toLength)(v.lineCount-this.deltaOldToNewLineCount,v.columnCount-this.deltaOldToNewColumnCount):(0,k.toLength)(v.lineCount-this.deltaOldToNewLineCount,v.columnCount)}adjustNextEdit(S){for(;this.nextEditIdx!0)||[];return i&&d.unshift(i),d}const c=[];for(;i&&!(0,y.lengthIsZero)(f);){const[d,r]=i.splitAt(f);c.push(d),f=(0,y.lengthDiffNonNegative)(d.lengthAfter,f),i=r??b.dequeue()}return(0,y.lengthIsZero)(f)||c.push(new _(!1,f,f)),c}const t=[];function a(f,c,d){if(t.length>0&&(0,y.lengthEquals)(t[t.length-1].endOffset,f)){const r=t[t.length-1];t[t.length-1]=new k.TextEditInfo(r.startOffset,c,(0,y.lengthAdd)(r.newLength,d))}else t.push({startOffset:f,endOffset:c,newLength:d})}let u=y.lengthZero;for(const f of o){const c=n(f.lengthBefore);if(f.modified){const d=(0,y.sumLengths)(c,l=>l.lengthBefore),r=(0,y.lengthAdd)(u,d);a(u,r,f.lengthAfter),u=r}else for(const d of c){const r=u;u=(0,y.lengthAdd)(u,d.lengthBefore),d.modified&&a(r,u,d.lengthAfter)}}return t}e.combineTextEditInfos=E;class _{constructor(v,b,o){this.modified=v,this.lengthBefore=b,this.lengthAfter=o}splitAt(v){const b=(0,y.lengthDiffNonNegative)(v,this.lengthAfter);return(0,y.lengthEquals)(b,y.lengthZero)?[this,void 0]:this.modified?[new _(this.modified,this.lengthBefore,v),new _(this.modified,y.lengthZero,b)]:[new _(this.modified,v,v),new _(this.modified,b,b)]}toString(){return`${this.modified?"M":"U"}:${(0,y.lengthToObj)(this.lengthBefore)} -> ${(0,y.lengthToObj)(this.lengthAfter)}`}}function p(S){const v=[];let b=y.lengthZero;for(const o of S){const i=(0,y.lengthDiffNonNegative)(b,o.startOffset);(0,y.lengthIsZero)(i)||v.push(new _(!1,i,i));const n=(0,y.lengthDiffNonNegative)(o.startOffset,o.endOffset);v.push(new _(!0,n,o.newLength)),b=o.endOffset}return v}}),define(ie[515],ne([1,0,89]),function(Q,e,L){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.NodeReader=void 0;class k{constructor(p){this.lastOffset=L.lengthZero,this.nextNodes=[p],this.offsets=[L.lengthZero],this.idxs=[]}readLongestNodeAt(p,S){if((0,L.lengthLessThan)(p,this.lastOffset))throw new Error("Invalid offset");for(this.lastOffset=p;;){const v=E(this.nextNodes);if(!v)return;const b=E(this.offsets);if((0,L.lengthLessThan)(p,b))return;if((0,L.lengthLessThan)(b,p))if((0,L.lengthAdd)(b,v.length)<=p)this.nextNodeAfterCurrent();else{const o=y(v);o!==-1?(this.nextNodes.push(v.getChild(o)),this.offsets.push(b),this.idxs.push(o)):this.nextNodeAfterCurrent()}else{if(S(v))return this.nextNodeAfterCurrent(),v;{const o=y(v);if(o===-1){this.nextNodeAfterCurrent();return}else this.nextNodes.push(v.getChild(o)),this.offsets.push(b),this.idxs.push(o)}}}}nextNodeAfterCurrent(){for(;;){const p=E(this.offsets),S=E(this.nextNodes);if(this.nextNodes.pop(),this.offsets.pop(),this.idxs.length===0)break;const v=E(this.nextNodes),b=y(v,this.idxs[this.idxs.length-1]);if(b!==-1){this.nextNodes.push(v.getChild(b)),this.offsets.push((0,L.lengthAdd)(p,S.length)),this.idxs[this.idxs.length-1]=b;break}else this.idxs.pop()}}}e.NodeReader=k;function y(_,p=-1){for(;;){if(p++,p>=_.childrenLength)return-1;if(_.getChild(p))return p}}function E(_){return _.length>0?_[_.length-1]:void 0}}),define(ie[130],ne([1,0]),function(Q,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.DenseKeyProvider=e.identityKeyProvider=e.SmallImmutableSet=void 0;const L=[];class k{static create(_,p){if(_<=128&&p.length===0){let S=k.cache[_];return S||(S=new k(_,p),k.cache[_]=S),S}return new k(_,p)}static getEmpty(){return this.empty}constructor(_,p){this.items=_,this.additionalItems=p}add(_,p){const S=p.getKey(_);let v=S>>5;if(v===0){const o=1<=v.length)return null;const a=b,u=v[a].listHeight;for(b++;b=2?y(a===0&&b===v.length?v:v.slice(a,b),!1):v[a]}let i=o(),n=o();if(!n)return i;for(let a=o();a;a=o())E(i,n)<=E(n,a)?(i=_(i,n),n=a):n=_(n,a);return _(i,n)}e.concat23Trees=k;function y(v,b=!1){if(v.length===0)return null;if(v.length===1)return v[0];let o=v.length;for(;o>3;){const i=o>>1;for(let n=0;n=3?v[2]:null,b)}e.concat23TreesOfSameHeight=y;function E(v,b){return Math.abs(v.listHeight-b.listHeight)}function _(v,b){return v.listHeight===b.listHeight?L.ListAstNode.create23(v,b,null,!1):v.listHeight>b.listHeight?p(v,b):S(b,v)}function p(v,b){v=v.toMutable();let o=v;const i=[];let n;for(;;){if(b.listHeight===o.listHeight){n=b;break}if(o.kind!==4)throw new Error("unexpected");i.push(o),o=o.makeLastElementMutable()}for(let t=i.length-1;t>=0;t--){const a=i[t];n?a.childrenLength>=3?n=L.ListAstNode.create23(a.unappendChild(),n,null,!1):(a.appendChildOfSameHeight(n),n=void 0):a.handleChildrenChanged()}return n?L.ListAstNode.create23(v,n,null,!1):v}function S(v,b){v=v.toMutable();let o=v;const i=[];for(;b.listHeight!==o.listHeight;){if(o.kind!==4)throw new Error("unexpected");i.push(o),o=o.makeFirstElementMutable()}let n=b;for(let t=i.length-1;t>=0;t--){const a=i[t];n?a.childrenLength>=3?n=L.ListAstNode.create23(n,a.unprependChild(),null,!1):(a.prependChildOfSameHeight(n),n=void 0):a.handleChildrenChanged()}return n?L.ListAstNode.create23(n,v,null,!1):v}}),define(ie[286],ne([1,0,181,180,130,89,516,515]),function(Q,e,L,k,y,E,_,p){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.parseDocument=void 0;function S(b,o,i,n){return new v(b,o,i,n).parseDocument()}e.parseDocument=S;class v{constructor(o,i,n,t){if(this.tokenizer=o,this.createImmutableLists=t,this._itemsConstructed=0,this._itemsFromCache=0,n&&t)throw new Error("Not supported");this.oldNodeReader=n?new p.NodeReader(n):void 0,this.positionMapper=new k.BeforeEditPositionMapper(i)}parseDocument(){this._itemsConstructed=0,this._itemsFromCache=0;let o=this.parseList(y.SmallImmutableSet.getEmpty(),0);return o||(o=L.ListAstNode.getEmpty()),o}parseList(o,i){const n=[];for(;;){let a=this.tryReadChildFromCache(o);if(!a){const u=this.tokenizer.peek();if(!u||u.kind===2&&u.bracketIds.intersects(o))break;a=this.parseChild(o,i+1)}a.kind===4&&a.childrenLength===0||n.push(a)}return this.oldNodeReader?(0,_.concat23Trees)(n):(0,_.concat23TreesOfSameHeight)(n,this.createImmutableLists)}tryReadChildFromCache(o){if(this.oldNodeReader){const i=this.positionMapper.getDistanceToNextChange(this.tokenizer.offset);if(i===null||!(0,E.lengthIsZero)(i)){const n=this.oldNodeReader.readLongestNodeAt(this.positionMapper.getOffsetBeforeChange(this.tokenizer.offset),t=>i!==null&&!(0,E.lengthLessThan)(t.length,i)?!1:t.canBeReused(o));if(n)return this._itemsFromCache++,this.tokenizer.skip(n.length),n}}}parseChild(o,i){this._itemsConstructed++;const n=this.tokenizer.read();switch(n.kind){case 2:return new L.InvalidBracketAstNode(n.bracketIds,n.length);case 0:return n.astNode;case 1:{if(i>300)return new L.TextAstNode(n.length);const t=o.merge(n.bracketIds),a=this.parseList(t,i+1),u=this.tokenizer.peek();return u&&u.kind===2&&(u.bracketId===n.bracketId||u.bracketIds.intersects(n.bracketIds))?(this.tokenizer.read(),L.PairAstNode.create(n.astNode,a,u.astNode)):L.PairAstNode.create(n.astNode,a,null)}default:throw new Error("unexpected")}}}}),define(ie[209],ne([1,0,9,128,181,89,130]),function(Q,e,L,k,y,E,_){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.FastTokenizer=e.TextBufferTokenizer=e.Token=void 0;class p{constructor(i,n,t,a,u){this.length=i,this.kind=n,this.bracketId=t,this.bracketIds=a,this.astNode=u}}e.Token=p;class S{constructor(i,n){this.textModel=i,this.bracketTokens=n,this.reader=new v(this.textModel,this.bracketTokens),this._offset=E.lengthZero,this.didPeek=!1,this.peeked=null,this.textBufferLineCount=i.getLineCount(),this.textBufferLastLineLength=i.getLineLength(this.textBufferLineCount)}get offset(){return this._offset}get length(){return(0,E.toLength)(this.textBufferLineCount-1,this.textBufferLastLineLength)}skip(i){this.didPeek=!1,this._offset=(0,E.lengthAdd)(this._offset,i);const n=(0,E.lengthToObj)(this._offset);this.reader.setPosition(n.lineCount,n.columnCount)}read(){let i;return this.peeked?(this.didPeek=!1,i=this.peeked):i=this.reader.read(),i&&(this._offset=(0,E.lengthAdd)(this._offset,i.length)),i}peek(){return this.didPeek||(this.peeked=this.reader.read(),this.didPeek=!0),this.peeked}}e.TextBufferTokenizer=S;class v{constructor(i,n){this.textModel=i,this.bracketTokens=n,this.lineIdx=0,this.line=null,this.lineCharOffset=0,this.lineTokens=null,this.lineTokenOffset=0,this.peekedToken=null,this.textBufferLineCount=i.getLineCount(),this.textBufferLastLineLength=i.getLineLength(this.textBufferLineCount)}setPosition(i,n){i===this.lineIdx?(this.lineCharOffset=n,this.line!==null&&(this.lineTokenOffset=this.lineCharOffset===0?0:this.lineTokens.findTokenIndexAtOffset(this.lineCharOffset))):(this.lineIdx=i,this.lineCharOffset=n,this.line=null),this.peekedToken=null}read(){if(this.peekedToken){const u=this.peekedToken;return this.peekedToken=null,this.lineCharOffset+=(0,E.lengthGetColumnCountIfZeroLineCount)(u.length),u}if(this.lineIdx>this.textBufferLineCount-1||this.lineIdx===this.textBufferLineCount-1&&this.lineCharOffset>=this.textBufferLastLineLength)return null;this.line===null&&(this.lineTokens=this.textModel.tokenization.getLineTokens(this.lineIdx+1),this.line=this.lineTokens.getLineContent(),this.lineTokenOffset=this.lineCharOffset===0?0:this.lineTokens.findTokenIndexAtOffset(this.lineCharOffset));const i=this.lineIdx,n=this.lineCharOffset;let t=0;for(;;){const u=this.lineTokens,f=u.getCount();let c=null;if(this.lineTokenOffset1e3))break;if(t>1500)break}const a=(0,E.lengthDiff)(i,n,this.lineIdx,this.lineCharOffset);return new p(a,0,-1,_.SmallImmutableSet.getEmpty(),new y.TextAstNode(a))}}class b{constructor(i,n){this.text=i,this._offset=E.lengthZero,this.idx=0;const t=n.getRegExpStr(),a=t?new RegExp(t+`|
`,"gi"):null,u=[];let f,c=0,d=0,r=0,l=0;const s=[];for(let m=0;m<60;m++)s.push(new p((0,E.toLength)(0,m),0,-1,_.SmallImmutableSet.getEmpty(),new y.TextAstNode((0,E.toLength)(0,m))));const g=[];for(let m=0;m<60;m++)g.push(new p((0,E.toLength)(1,m),0,-1,_.SmallImmutableSet.getEmpty(),new y.TextAstNode((0,E.toLength)(1,m))));if(a)for(a.lastIndex=0;(f=a.exec(i))!==null;){const m=f.index,C=f[0];if(C===`
`)c++,d=m+1;else{if(r!==m){let w;if(l===c){const D=m-r;if(DS(i)).join("|")}}get regExpGlobal(){if(!this.hasRegExp){const o=this.getRegExpStr();this._regExpGlobal=o?new RegExp(o,"gi"):null,this.hasRegExp=!0}return this._regExpGlobal}getToken(o){return this.map.get(o.toLowerCase())}findClosingTokenText(o){for(const[i,n]of this.map)if(n.kind===2&&n.bracketIds.intersects(o))return i}get isEmpty(){return this.map.size===0}}e.BracketTokens=p;function S(b){let o=(0,L.escapeRegExpCharacters)(b);return/^[\w ]+/.test(b)&&(o=`\\b${o}`),/[\w ]+$/.test(b)&&(o=`${o}\\b`),o}class v{constructor(o,i){this.denseKeyProvider=o,this.getLanguageConfiguration=i,this.languageIdToBracketTokens=new Map}didLanguageChange(o){return this.languageIdToBracketTokens.has(o)}getSingleLanguageBracketTokens(o){let i=this.languageIdToBracketTokens.get(o);return i||(i=p.createFromLanguage(this.getLanguageConfiguration(o),this.denseKeyProvider),this.languageIdToBracketTokens.set(o,i)),i}}e.LanguageAgnosticBracketTokens=v}),define(ie[517],ne([1,0,287,89,286,130,209]),function(Q,e,L,k,y,E,_){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.fixBracketsInLine=void 0;function p(v,b){const o=new E.DenseKeyProvider,i=new L.LanguageAgnosticBracketTokens(o,c=>b.getLanguageConfiguration(c)),n=new _.TextBufferTokenizer(new S([v]),i),t=(0,y.parseDocument)(n,[],void 0,!0);let a="";const u=v.getLineContent();function f(c,d){if(c.kind===2)if(f(c.openingBracket,d),d=(0,k.lengthAdd)(d,c.openingBracket.length),c.child&&(f(c.child,d),d=(0,k.lengthAdd)(d,c.child.length)),c.closingBracket)f(c.closingBracket,d),d=(0,k.lengthAdd)(d,c.closingBracket.length);else{const l=i.getSingleLanguageBracketTokens(c.openingBracket.languageId).findClosingTokenText(c.openingBracket.bracketIds);a+=l}else if(c.kind!==3){if(c.kind===0||c.kind===1)a+=u.substring((0,k.lengthGetColumnCountIfZeroLineCount)(d),(0,k.lengthGetColumnCountIfZeroLineCount)((0,k.lengthAdd)(d,c.length)));else if(c.kind===4)for(const r of c.children)f(r,d),d=(0,k.lengthAdd)(d,r.length)}}return f(t,k.lengthZero),a}e.fixBracketsInLine=p;class S{constructor(b){this.lines=b,this.tokenization={getLineTokens:o=>this.lines[o-1]}}getLineCount(){return this.lines.length}getLineLength(b){return this.lines[b-1].getLineContent().length}}}),define(ie[518],ne([1,0,13]),function(Q,e,L){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.FixedArray=void 0;class k{constructor(_){this._default=_,this._store=[]}get(_){return _=this._store.length;)this._store[this._store.length]=this._default;this._store[_]=p}replace(_,p,S){if(_>=this._store.length)return;if(p===0){this.insert(_,S);return}else if(S===0){this.delete(_,p);return}const v=this._store.slice(0,_),b=this._store.slice(_+p),o=y(S,this._default);this._store=v.concat(o,b)}delete(_,p){p===0||_>=this._store.length||this._store.splice(_,p)}insert(_,p){if(p===0||_>=this._store.length)return;const S=[];for(let v=0;v0&&i>0||n>0&&t>0)return;const a=Math.abs(i-t),u=Math.abs(o-n);if(a===0){v.spacesDiff=u,u>0&&0<=n-1&&n-10?v++:m>1&&b++,k(o,i,l,h,u),u.looksLikeAlignment&&!(p&&_===u.spacesDiff)))continue;const w=u.spacesDiff;w<=t&&a[w]++,o=l,i=h}let f=p;v!==b&&(f=v{const l=a[r];l>d&&(d=l,c=r)}),c===4&&a[4]>0&&a[2]>0&&a[2]>=a[4]/2&&(c=2)}return{insertSpaces:f,tabSize:c}}e.guessIndentation=y}),define(ie[520],ne([1,0]),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 L(x){return(x.metadata&1)>>>0}e.getNodeColor=L;function k(x,R){x.metadata=x.metadata&254|R<<0}function y(x){return(x.metadata&2)>>>1===1}function E(x,R){x.metadata=x.metadata&253|(R?1:0)<<1}function _(x){return(x.metadata&4)>>>2===1}function p(x,R){x.metadata=x.metadata&251|(R?1:0)<<2}function S(x){return(x.metadata&64)>>>6===1}function v(x,R){x.metadata=x.metadata&191|(R?1:0)<<6}function b(x){return(x.metadata&24)>>>3}function o(x,R){x.metadata=x.metadata&231|R<<3}function i(x){return(x.metadata&32)>>>5===1}function n(x,R){x.metadata=x.metadata&223|(R?1:0)<<5}class t{constructor(R,B,W){this.metadata=0,this.parent=this,this.left=this,this.right=this,k(this,1),this.start=B,this.end=W,this.delta=0,this.maxEnd=W,this.id=R,this.ownerId=0,this.options=null,p(this,!1),v(this,!1),o(this,1),n(this,!1),this.cachedVersionId=0,this.cachedAbsoluteStart=B,this.cachedAbsoluteEnd=W,this.range=null,E(this,!1)}reset(R,B,W,V){this.start=B,this.end=W,this.maxEnd=W,this.cachedVersionId=R,this.cachedAbsoluteStart=B,this.cachedAbsoluteEnd=W,this.range=V}setOptions(R){this.options=R;const B=this.options.className;p(this,B==="squiggly-error"||B==="squiggly-warning"||B==="squiggly-info"),v(this,this.options.glyphMarginClassName!==null),o(this,this.options.stickiness),n(this,this.options.collapseOnReplaceEdit)}setCachedOffsets(R,B,W){this.cachedVersionId!==W&&(this.range=null),this.cachedVersionId=W,this.cachedAbsoluteStart=R,this.cachedAbsoluteEnd=B}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,k(e.SENTINEL,0);class a{constructor(){this.root=e.SENTINEL,this.requestNormalizeDelta=!1}intervalSearch(R,B,W,V,U,F){return this.root===e.SENTINEL?[]:h(this,R,B,W,V,U,F)}search(R,B,W,V){return this.root===e.SENTINEL?[]:g(this,R,B,W,V)}collectNodesFromOwner(R){return l(this,R)}collectNodesPostOrder(){return s(this)}insert(R){m(this,R),this._normalizeDeltaIfNecessary()}delete(R){w(this,R),this._normalizeDeltaIfNecessary()}resolveNode(R,B){const W=R;let V=0;for(;R!==this.root;)R===R.parent.right&&(V+=R.parent.delta),R=R.parent;const U=W.start+V,F=W.end+V;W.setCachedOffsets(U,F,B)}acceptReplace(R,B,W,V){const U=d(this,R,R+B);for(let F=0,j=U.length;FB||W===1?!1:W===2?!0:R}function c(x,R,B,W,V){const U=b(x),F=U===0||U===2,j=U===1||U===2,J=B-R,le=W,ee=Math.min(J,le),$=x.start;let te=!1;const G=x.end;let de=!1;R<=$&&G<=B&&i(x)&&(x.start=R,te=!0,x.end=R,de=!0);{const X=V?1:J>0?2:0;!te&&f($,F,R,X)&&(te=!0),!de&&f(G,j,R,X)&&(de=!0)}if(ee>0&&!V){const X=J>le?2:0;!te&&f($,F,R+ee,X)&&(te=!0),!de&&f(G,j,R+ee,X)&&(de=!0)}{const X=V?1:0;!te&&f($,F,B,X)&&(x.start=R+le,te=!0),!de&&f(G,j,B,X)&&(x.end=R+le,de=!0)}const ue=le-J;te||(x.start=Math.max(0,$+ue)),de||(x.end=Math.max(0,G+ue)),x.start>x.end&&(x.end=x.start)}e.nodeAcceptEdit=c;function d(x,R,B){let W=x.root,V=0,U=0,F=0,j=0;const J=[];let le=0;for(;W!==e.SENTINEL;){if(y(W)){E(W.left,!1),E(W.right,!1),W===W.parent.right&&(V-=W.parent.delta),W=W.parent;continue}if(!y(W.left)){if(U=V+W.maxEnd,UB){E(W,!0);continue}if(j=V+W.end,j>=R&&(W.setCachedOffsets(F,j,0),J[le++]=W),E(W,!0),W.right!==e.SENTINEL&&!y(W.right)){V+=W.delta,W=W.right;continue}}return E(x.root,!1),J}function r(x,R,B,W){let V=x.root,U=0,F=0,j=0;const J=W-(B-R);for(;V!==e.SENTINEL;){if(y(V)){E(V.left,!1),E(V.right,!1),V===V.parent.right&&(U-=V.parent.delta),T(V),V=V.parent;continue}if(!y(V.left)){if(F=U+V.maxEnd,FB){V.start+=J,V.end+=J,V.delta+=J,(V.delta<-1073741824||V.delta>1073741824)&&(x.requestNormalizeDelta=!0),E(V,!0);continue}if(E(V,!0),V.right!==e.SENTINEL&&!y(V.right)){U+=V.delta,V=V.right;continue}}E(x.root,!1)}function l(x,R){let B=x.root;const W=[];let V=0;for(;B!==e.SENTINEL;){if(y(B)){E(B.left,!1),E(B.right,!1),B=B.parent;continue}if(B.left!==e.SENTINEL&&!y(B.left)){B=B.left;continue}if(B.ownerId===R&&(W[V++]=B),E(B,!0),B.right!==e.SENTINEL&&!y(B.right)){B=B.right;continue}}return E(x.root,!1),W}function s(x){let R=x.root;const B=[];let W=0;for(;R!==e.SENTINEL;){if(y(R)){E(R.left,!1),E(R.right,!1),R=R.parent;continue}if(R.left!==e.SENTINEL&&!y(R.left)){R=R.left;continue}if(R.right!==e.SENTINEL&&!y(R.right)){R=R.right;continue}B[W++]=R,E(R,!0)}return E(x.root,!1),B}function g(x,R,B,W,V){let U=x.root,F=0,j=0,J=0;const le=[];let ee=0;for(;U!==e.SENTINEL;){if(y(U)){E(U.left,!1),E(U.right,!1),U===U.parent.right&&(F-=U.parent.delta),U=U.parent;continue}if(U.left!==e.SENTINEL&&!y(U.left)){U=U.left;continue}j=F+U.start,J=F+U.end,U.setCachedOffsets(j,J,W);let $=!0;if(R&&U.ownerId&&U.ownerId!==R&&($=!1),B&&_(U)&&($=!1),V&&!S(U)&&($=!1),$&&(le[ee++]=U),E(U,!0),U.right!==e.SENTINEL&&!y(U.right)){F+=U.delta,U=U.right;continue}}return E(x.root,!1),le}function h(x,R,B,W,V,U,F){let j=x.root,J=0,le=0,ee=0,$=0;const te=[];let G=0;for(;j!==e.SENTINEL;){if(y(j)){E(j.left,!1),E(j.right,!1),j===j.parent.right&&(J-=j.parent.delta),j=j.parent;continue}if(!y(j.left)){if(le=J+j.maxEnd,leB){E(j,!0);continue}if($=J+j.end,$>=R){j.setCachedOffsets(ee,$,U);let de=!0;W&&j.ownerId&&j.ownerId!==W&&(de=!1),V&&_(j)&&(de=!1),F&&!S(j)&&(de=!1),de&&(te[G++]=j)}if(E(j,!0),j.right!==e.SENTINEL&&!y(j.right)){J+=j.delta,j=j.right;continue}}return E(x.root,!1),te}function m(x,R){if(x.root===e.SENTINEL)return R.parent=e.SENTINEL,R.left=e.SENTINEL,R.right=e.SENTINEL,k(R,0),x.root=R,x.root;C(x,R),N(R.parent);let B=R;for(;B!==x.root&&L(B.parent)===1;)if(B.parent===B.parent.parent.left){const W=B.parent.parent.right;L(W)===1?(k(B.parent,0),k(W,0),k(B.parent.parent,1),B=B.parent.parent):(B===B.parent.right&&(B=B.parent,M(x,B)),k(B.parent,0),k(B.parent.parent,1),A(x,B.parent.parent))}else{const W=B.parent.parent.left;L(W)===1?(k(B.parent,0),k(W,0),k(B.parent.parent,1),B=B.parent.parent):(B===B.parent.left&&(B=B.parent,A(x,B)),k(B.parent,0),k(B.parent.parent,1),M(x,B.parent.parent))}return k(x.root,0),R}function C(x,R){let B=0,W=x.root;const V=R.start,U=R.end;for(;;)if(P(V,U,W.start+B,W.end+B)<0)if(W.left===e.SENTINEL){R.start-=B,R.end-=B,R.maxEnd-=B,W.left=R;break}else W=W.left;else if(W.right===e.SENTINEL){R.start-=B+W.delta,R.end-=B+W.delta,R.maxEnd-=B+W.delta,W.right=R;break}else B+=W.delta,W=W.right;R.parent=W,R.left=e.SENTINEL,R.right=e.SENTINEL,k(R,1)}function w(x,R){let B,W;if(R.left===e.SENTINEL?(B=R.right,W=R,B.delta+=R.delta,(B.delta<-1073741824||B.delta>1073741824)&&(x.requestNormalizeDelta=!0),B.start+=R.delta,B.end+=R.delta):R.right===e.SENTINEL?(B=R.left,W=R):(W=D(R.right),B=W.right,B.start+=W.delta,B.end+=W.delta,B.delta+=W.delta,(B.delta<-1073741824||B.delta>1073741824)&&(x.requestNormalizeDelta=!0),W.start+=R.delta,W.end+=R.delta,W.delta=R.delta,(W.delta<-1073741824||W.delta>1073741824)&&(x.requestNormalizeDelta=!0)),W===x.root){x.root=B,k(B,0),R.detach(),I(),T(B),x.root.parent=e.SENTINEL;return}const V=L(W)===1;if(W===W.parent.left?W.parent.left=B:W.parent.right=B,W===R?B.parent=W.parent:(W.parent===R?B.parent=W:B.parent=W.parent,W.left=R.left,W.right=R.right,W.parent=R.parent,k(W,L(R)),R===x.root?x.root=W:R===R.parent.left?R.parent.left=W:R.parent.right=W,W.left!==e.SENTINEL&&(W.left.parent=W),W.right!==e.SENTINEL&&(W.right.parent=W)),R.detach(),V){N(B.parent),W!==R&&(N(W),N(W.parent)),I();return}N(B),N(B.parent),W!==R&&(N(W),N(W.parent));let U;for(;B!==x.root&&L(B)===0;)B===B.parent.left?(U=B.parent.right,L(U)===1&&(k(U,0),k(B.parent,1),M(x,B.parent),U=B.parent.right),L(U.left)===0&&L(U.right)===0?(k(U,1),B=B.parent):(L(U.right)===0&&(k(U.left,0),k(U,1),A(x,U),U=B.parent.right),k(U,L(B.parent)),k(B.parent,0),k(U.right,0),M(x,B.parent),B=x.root)):(U=B.parent.left,L(U)===1&&(k(U,0),k(B.parent,1),A(x,B.parent),U=B.parent.left),L(U.left)===0&&L(U.right)===0?(k(U,1),B=B.parent):(L(U.left)===0&&(k(U.right,0),k(U,1),M(x,U),U=B.parent.left),k(U,L(B.parent)),k(B.parent,0),k(U.left,0),A(x,B.parent),B=x.root));k(B,0),I()}function D(x){for(;x.left!==e.SENTINEL;)x=x.left;return x}function I(){e.SENTINEL.parent=e.SENTINEL,e.SENTINEL.delta=0,e.SENTINEL.start=0,e.SENTINEL.end=0}function M(x,R){const B=R.right;B.delta+=R.delta,(B.delta<-1073741824||B.delta>1073741824)&&(x.requestNormalizeDelta=!0),B.start+=R.delta,B.end+=R.delta,R.right=B.left,B.left!==e.SENTINEL&&(B.left.parent=R),B.parent=R.parent,R.parent===e.SENTINEL?x.root=B:R===R.parent.left?R.parent.left=B:R.parent.right=B,B.left=R,R.parent=B,T(R),T(B)}function A(x,R){const B=R.left;R.delta-=B.delta,(R.delta<-1073741824||R.delta>1073741824)&&(x.requestNormalizeDelta=!0),R.start-=B.delta,R.end-=B.delta,R.left=B.right,B.right!==e.SENTINEL&&(B.right.parent=R),B.parent=R.parent,R.parent===e.SENTINEL?x.root=B:R===R.parent.right?R.parent.right=B:R.parent.left=B,B.right=R,R.parent=B,T(R),T(B)}function O(x){let R=x.end;if(x.left!==e.SENTINEL){const B=x.left.maxEnd;B>R&&(R=B)}if(x.right!==e.SENTINEL){const B=x.right.maxEnd+x.delta;B>R&&(R=B)}return R}function T(x){x.maxEnd=O(x)}e.recomputeMaxEnd=T;function N(x){for(;x!==e.SENTINEL;){const R=O(x);if(x.maxEnd===R)return;x.maxEnd=R,x=x.parent}}function P(x,R,B,W){return x===B?R-W:x-B}e.intervalCompare=P}),define(ie[521],ne([1,0]),function(Q,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.recomputeTreeMetadata=e.updateTreeMetadata=e.fixInsert=e.rbDelete=e.rightRotate=e.leftRotate=e.righttest=e.leftest=e.SENTINEL=e.TreeNode=void 0;class L{constructor(a,u){this.piece=a,this.color=u,this.size_left=0,this.lf_left=0,this.parent=this,this.left=this,this.right=this}next(){if(this.right!==e.SENTINEL)return k(this.right);let a=this;for(;a.parent!==e.SENTINEL&&a.parent.left!==a;)a=a.parent;return a.parent===e.SENTINEL?e.SENTINEL:a.parent}prev(){if(this.left!==e.SENTINEL)return y(this.left);let a=this;for(;a.parent!==e.SENTINEL&&a.parent.right!==a;)a=a.parent;return a.parent===e.SENTINEL?e.SENTINEL:a.parent}detach(){this.parent=null,this.left=null,this.right=null}}e.TreeNode=L,e.SENTINEL=new L(null,0),e.SENTINEL.parent=e.SENTINEL,e.SENTINEL.left=e.SENTINEL,e.SENTINEL.right=e.SENTINEL,e.SENTINEL.color=0;function k(t){for(;t.left!==e.SENTINEL;)t=t.left;return t}e.leftest=k;function y(t){for(;t.right!==e.SENTINEL;)t=t.right;return t}e.righttest=y;function E(t){return t===e.SENTINEL?0:t.size_left+t.piece.length+E(t.right)}function _(t){return t===e.SENTINEL?0:t.lf_left+t.piece.lineFeedCnt+_(t.right)}function p(){e.SENTINEL.parent=e.SENTINEL}function S(t,a){const u=a.right;u.size_left+=a.size_left+(a.piece?a.piece.length:0),u.lf_left+=a.lf_left+(a.piece?a.piece.lineFeedCnt:0),a.right=u.left,u.left!==e.SENTINEL&&(u.left.parent=a),u.parent=a.parent,a.parent===e.SENTINEL?t.root=u:a.parent.left===a?a.parent.left=u:a.parent.right=u,u.left=a,a.parent=u}e.leftRotate=S;function v(t,a){const u=a.left;a.left=u.right,u.right!==e.SENTINEL&&(u.right.parent=a),u.parent=a.parent,a.size_left-=u.size_left+(u.piece?u.piece.length:0),a.lf_left-=u.lf_left+(u.piece?u.piece.lineFeedCnt:0),a.parent===e.SENTINEL?t.root=u:a===a.parent.right?a.parent.right=u:a.parent.left=u,u.right=a,a.parent=u}e.rightRotate=v;function b(t,a){let u,f;if(a.left===e.SENTINEL?(f=a,u=f.right):a.right===e.SENTINEL?(f=a,u=f.left):(f=k(a.right),u=f.right),f===t.root){t.root=u,u.color=0,a.detach(),p(),t.root.parent=e.SENTINEL;return}const c=f.color===1;if(f===f.parent.left?f.parent.left=u:f.parent.right=u,f===a?(u.parent=f.parent,n(t,u)):(f.parent===a?u.parent=f:u.parent=f.parent,n(t,u),f.left=a.left,f.right=a.right,f.parent=a.parent,f.color=a.color,a===t.root?t.root=f:a===a.parent.left?a.parent.left=f:a.parent.right=f,f.left!==e.SENTINEL&&(f.left.parent=f),f.right!==e.SENTINEL&&(f.right.parent=f),f.size_left=a.size_left,f.lf_left=a.lf_left,n(t,f)),a.detach(),u.parent.left===u){const r=E(u),l=_(u);if(r!==u.parent.size_left||l!==u.parent.lf_left){const s=r-u.parent.size_left,g=l-u.parent.lf_left;u.parent.size_left=r,u.parent.lf_left=l,i(t,u.parent,s,g)}}if(n(t,u.parent),c){p();return}let d;for(;u!==t.root&&u.color===0;)u===u.parent.left?(d=u.parent.right,d.color===1&&(d.color=0,u.parent.color=1,S(t,u.parent),d=u.parent.right),d.left.color===0&&d.right.color===0?(d.color=1,u=u.parent):(d.right.color===0&&(d.left.color=0,d.color=1,v(t,d),d=u.parent.right),d.color=u.parent.color,u.parent.color=0,d.right.color=0,S(t,u.parent),u=t.root)):(d=u.parent.left,d.color===1&&(d.color=0,u.parent.color=1,v(t,u.parent),d=u.parent.left),d.left.color===0&&d.right.color===0?(d.color=1,u=u.parent):(d.left.color===0&&(d.right.color=0,d.color=1,S(t,d),d=u.parent.left),d.color=u.parent.color,u.parent.color=0,d.left.color=0,v(t,u.parent),u=t.root));u.color=0,p()}e.rbDelete=b;function o(t,a){for(n(t,a);a!==t.root&&a.parent.color===1;)if(a.parent===a.parent.parent.left){const u=a.parent.parent.right;u.color===1?(a.parent.color=0,u.color=0,a.parent.parent.color=1,a=a.parent.parent):(a===a.parent.right&&(a=a.parent,S(t,a)),a.parent.color=0,a.parent.parent.color=1,v(t,a.parent.parent))}else{const u=a.parent.parent.left;u.color===1?(a.parent.color=0,u.color=0,a.parent.parent.color=1,a=a.parent.parent):(a===a.parent.left&&(a=a.parent,v(t,a)),a.parent.color=0,a.parent.parent.color=1,S(t,a.parent.parent))}t.root.color=0}e.fixInsert=o;function i(t,a,u,f){for(;a!==t.root&&a!==e.SENTINEL;)a.parent.left===a&&(a.parent.size_left+=u,a.parent.lf_left+=f),a=a.parent}e.updateTreeMetadata=i;function n(t,a){let u=0,f=0;if(a!==t.root){for(;a!==t.root&&a===a.parent.right;)a=a.parent;if(a!==t.root)for(a=a.parent,u=E(a.left)-a.size_left,f=_(a.left)-a.lf_left,a.size_left+=u,a.lf_left+=f;a!==t.root&&(u!==0||f!==0);)a.parent.left===a&&(a.parent.size_left+=u,a.parent.lf_left+=f),a=a.parent}}e.recomputeTreeMetadata=n}),define(ie[288],ne([1,0,13,172]),function(Q,e,L,k){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.PrefixSumIndexOfResult=e.ConstantTimePrefixSumComputer=e.PrefixSumComputer=void 0;class y{constructor(S){this.values=S,this.prefixSum=new Uint32Array(S.length),this.prefixSumValidIndex=new Int32Array(1),this.prefixSumValidIndex[0]=-1}insertValues(S,v){S=(0,k.toUint32)(S);const b=this.values,o=this.prefixSum,i=v.length;return i===0?!1:(this.values=new Uint32Array(b.length+i),this.values.set(b.subarray(0,S),0),this.values.set(b.subarray(S),S+i),this.values.set(v,S),S-1=0&&this.prefixSum.set(o.subarray(0,this.prefixSumValidIndex[0]+1)),!0)}setValue(S,v){return S=(0,k.toUint32)(S),v=(0,k.toUint32)(v),this.values[S]===v?!1:(this.values[S]=v,S-1=b.length)return!1;const i=b.length-S;return v>=i&&(v=i),v===0?!1:(this.values=new Uint32Array(b.length-v),this.values.set(b.subarray(0,S),0),this.values.set(b.subarray(S+v),S),this.prefixSum=new Uint32Array(this.values.length),S-1=0&&this.prefixSum.set(o.subarray(0,this.prefixSumValidIndex[0]+1)),!0)}getTotalSum(){return this.values.length===0?0:this._getPrefixSum(this.values.length-1)}getPrefixSum(S){return S<0?0:(S=(0,k.toUint32)(S),this._getPrefixSum(S))}_getPrefixSum(S){if(S<=this.prefixSumValidIndex[0])return this.prefixSum[S];let v=this.prefixSumValidIndex[0]+1;v===0&&(this.prefixSum[0]=this.values[0],v++),S>=this.values.length&&(S=this.values.length-1);for(let b=v;b<=S;b++)this.prefixSum[b]=this.prefixSum[b-1]+this.values[b];return this.prefixSumValidIndex[0]=Math.max(this.prefixSumValidIndex[0],S),this.prefixSum[S]}getIndexOf(S){S=Math.floor(S),this.getTotalSum();let v=0,b=this.values.length-1,o=0,i=0,n=0;for(;v<=b;)if(o=v+(b-v)/2|0,i=this.prefixSum[o],n=i-this.values[o],S=i)v=o+1;else break;return new _(o,S-n)}}e.PrefixSumComputer=y;class E{constructor(S){this._values=S,this._isValid=!1,this._validEndIndex=-1,this._prefixSum=[],this._indexBySum=[]}getTotalSum(){return this._ensureValid(),this._indexBySum.length}getPrefixSum(S){return this._ensureValid(),S===0?0:this._prefixSum[S-1]}getIndexOf(S){this._ensureValid();const v=this._indexBySum[S],b=v>0?this._prefixSum[v-1]:0;return new _(v,S-b)}removeValues(S,v){this._values.splice(S,v),this._invalidate(S)}insertValues(S,v){this._values=(0,L.arrayInsert)(this._values,S,v),this._invalidate(S)}_invalidate(S){this._isValid=!1,this._validEndIndex=Math.min(this._validEndIndex,S-1)}_ensureValid(){if(!this._isValid){for(let S=this._validEndIndex+1,v=this._values.length;S0?this._prefixSum[S-1]:0;this._prefixSum[S]=o+b;for(let i=0;i=0;let d=null;try{d=L.createRegExp(this.searchString,this.isRegex,{matchCase:this.matchCase,wholeWord:!1,multiline:c,global:!0,unicode:!0})}catch{return null}if(!d)return null;let r=!this.isRegex&&!c;return r&&this.searchString.toLowerCase()!==this.searchString.toUpperCase()&&(r=this.matchCase),new _.SearchData(d,this.wordSeparators?(0,k.getMapForWordSeparators)(this.wordSeparators):null,r?this.searchString:null)}}e.SearchParams=S;function v(f){if(!f||f.length===0)return!1;for(let c=0,d=f.length;c=d)break;const l=f.charCodeAt(c);if(l===110||l===114||l===87)return!0}}return!1}e.isMultilineRegexSource=v;function b(f,c,d){if(!d)return new _.FindMatch(f,null);const r=[];for(let l=0,s=c.length;l>0);d[s]>=c?l=s-1:d[s+1]>=c?(r=s,l=s):r=s+1}return r+1}}class i{static findMatches(c,d,r,l,s){const g=d.parseSearchRequest();return g?g.regex.multiline?this._doFindMatchesMultiline(c,r,new u(g.wordSeparators,g.regex),l,s):this._doFindMatchesLineByLine(c,r,g,l,s):[]}static _getMultilineMatchRange(c,d,r,l,s,g){let h,m=0;l?(m=l.findLineFeedCountBeforeOffset(s),h=d+s+m):h=d+s;let C;if(l){const M=l.findLineFeedCountBeforeOffset(s+g.length)-m;C=h+g.length+M}else C=h+g.length;const w=c.getPositionAt(h),D=c.getPositionAt(C);return new E.Range(w.lineNumber,w.column,D.lineNumber,D.column)}static _doFindMatchesMultiline(c,d,r,l,s){const g=c.getOffsetAt(d.getStartPosition()),h=c.getValueInRange(d,1),m=c.getEOL()===`\r
`?new o(h):null,C=[];let w=0,D;for(r.reset(0);D=r.next(h);)if(C[w++]=b(this._getMultilineMatchRange(c,g,h,m,D.index,D[0]),D,l),w>=s)return C;return C}static _doFindMatchesLineByLine(c,d,r,l,s){const g=[];let h=0;if(d.startLineNumber===d.endLineNumber){const C=c.getLineContent(d.startLineNumber).substring(d.startColumn-1,d.endColumn-1);return h=this._findMatchesInLine(r,C,d.startLineNumber,d.startColumn-1,h,g,l,s),g}const m=c.getLineContent(d.startLineNumber).substring(d.startColumn-1);h=this._findMatchesInLine(r,m,d.startLineNumber,d.startColumn-1,h,g,l,s);for(let C=d.startLineNumber+1;C=m))return s;return s}const w=new u(c.wordSeparators,c.regex);let D;w.reset(0);do if(D=w.next(d),D&&(g[s++]=b(new E.Range(r,D.index+1+l,r,D.index+1+D[0].length+l),D,h),s>=m))return s;while(D);return s}static findNextMatch(c,d,r,l){const s=d.parseSearchRequest();if(!s)return null;const g=new u(s.wordSeparators,s.regex);return s.regex.multiline?this._doFindNextMatchMultiline(c,r,g,l):this._doFindNextMatchLineByLine(c,r,g,l)}static _doFindNextMatchMultiline(c,d,r,l){const s=new y.Position(d.lineNumber,1),g=c.getOffsetAt(s),h=c.getLineCount(),m=c.getValueInRange(new E.Range(s.lineNumber,s.column,h,c.getLineMaxColumn(h)),1),C=c.getEOL()===`\r
`?new o(m):null;r.reset(d.column-1);const w=r.next(m);return w?b(this._getMultilineMatchRange(c,g,m,C,w.index,w[0]),w,l):d.lineNumber!==1||d.column!==1?this._doFindNextMatchMultiline(c,new y.Position(1,1),r,l):null}static _doFindNextMatchLineByLine(c,d,r,l){const s=c.getLineCount(),g=d.lineNumber,h=c.getLineContent(g),m=this._findFirstMatchInLine(r,h,g,d.column,l);if(m)return m;for(let C=1;C<=s;C++){const w=(g+C-1)%s,D=c.getLineContent(w+1),I=this._findFirstMatchInLine(r,D,w+1,1,l);if(I)return I}return null}static _findFirstMatchInLine(c,d,r,l,s){c.reset(l-1);const g=c.next(d);return g?b(new E.Range(r,g.index+1,r,g.index+1+g[0].length),g,s):null}static findPreviousMatch(c,d,r,l){const s=d.parseSearchRequest();if(!s)return null;const g=new u(s.wordSeparators,s.regex);return s.regex.multiline?this._doFindPreviousMatchMultiline(c,r,g,l):this._doFindPreviousMatchLineByLine(c,r,g,l)}static _doFindPreviousMatchMultiline(c,d,r,l){const s=this._doFindMatchesMultiline(c,new E.Range(1,1,d.lineNumber,d.column),r,l,10*p);if(s.length>0)return s[s.length-1];const g=c.getLineCount();return d.lineNumber!==g||d.column!==c.getLineMaxColumn(g)?this._doFindPreviousMatchMultiline(c,new y.Position(g,c.getLineMaxColumn(g)),r,l):null}static _doFindPreviousMatchLineByLine(c,d,r,l){const s=c.getLineCount(),g=d.lineNumber,h=c.getLineContent(g).substring(0,d.column-1),m=this._findLastMatchInLine(r,h,g,l);if(m)return m;for(let C=1;C<=s;C++){const w=(s+g-C-1)%s,D=c.getLineContent(w+1),I=this._findLastMatchInLine(r,D,w+1,l);if(I)return I}return null}static _findLastMatchInLine(c,d,r,l){let s=null,g;for(c.reset(0);g=c.next(d);)s=b(new E.Range(r,g.index+1,r,g.index+1+g[0].length),g,l);return s}}e.TextModelSearch=i;function n(f,c,d,r,l){if(r===0)return!0;const s=c.charCodeAt(r-1);if(f.get(s)!==0||s===13||s===10)return!0;if(l>0){const g=c.charCodeAt(r);if(f.get(g)!==0)return!0}return!1}function t(f,c,d,r,l){if(r+l===d)return!0;const s=c.charCodeAt(r+l);if(f.get(s)!==0||s===13||s===10)return!0;if(l>0){const g=c.charCodeAt(r+l-1);if(f.get(g)!==0)return!0}return!1}function a(f,c,d,r,l){return n(f,c,d,r,l)&&t(f,c,d,r,l)}e.isValidMatch=a;class u{constructor(c,d){this._wordSeparators=c,this._searchRegex=d,this._prevMatchStartIndex=-1,this._prevMatchLength=0}reset(c){this._searchRegex.lastIndex=c,this._prevMatchStartIndex=-1,this._prevMatchLength=0}next(c){const d=c.length;let r;do{if(this._prevMatchStartIndex+this._prevMatchLength===d||(r=this._searchRegex.exec(c),!r))return null;const l=r.index,s=r[0].length;if(l===this._prevMatchStartIndex&&s===this._prevMatchLength){if(s===0){L.getNextCodePoint(c,d,this._searchRegex.lastIndex)>65535?this._searchRegex.lastIndex+=2:this._searchRegex.lastIndex+=1;continue}return null}if(this._prevMatchStartIndex=l,this._prevMatchLength=s,!this._wordSeparators||a(this._wordSeparators,c,d,l,s))return r}while(r);return null}}e.Searcher=u}),define(ie[290],ne([1,0,11,5,43,521,182]),function(Q,e,L,k,y,E,_){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.PieceTreeBase=e.StringBuffer=e.Piece=e.createLineStarts=e.createLineStartsFast=void 0;const p=65535;function S(f){let c;return f[f.length-1]<65536?c=new Uint16Array(f.length):c=new Uint32Array(f.length),c.set(f,0),c}class v{constructor(c,d,r,l,s){this.lineStarts=c,this.cr=d,this.lf=r,this.crlf=l,this.isBasicASCII=s}}function b(f,c=!0){const d=[0];let r=1;for(let l=0,s=f.length;l126)&&(g=!1)}const h=new v(S(f),r,l,s,g);return f.length=0,h}e.createLineStarts=o;class i{constructor(c,d,r,l,s){this.bufferIndex=c,this.start=d,this.end=r,this.lineFeedCnt=l,this.length=s}}e.Piece=i;class n{constructor(c,d){this.buffer=c,this.lineStarts=d}}e.StringBuffer=n;class t{constructor(c,d){this._pieces=[],this._tree=c,this._BOM=d,this._index=0,c.root!==E.SENTINEL&&c.iterate(c.root,r=>(r!==E.SENTINEL&&this._pieces.push(r.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 a{constructor(c){this._limit=c,this._cache=[]}get(c){for(let d=this._cache.length-1;d>=0;d--){const r=this._cache[d];if(r.nodeStartOffset<=c&&r.nodeStartOffset+r.node.piece.length>=c)return r}return null}get2(c){for(let d=this._cache.length-1;d>=0;d--){const r=this._cache[d];if(r.nodeStartLineNumber&&r.nodeStartLineNumber=c)return r}return null}set(c){this._cache.length>=this._limit&&this._cache.shift(),this._cache.push(c)}validate(c){let d=!1;const r=this._cache;for(let l=0;l=c){r[l]=null,d=!0;continue}}if(d){const l=[];for(const s of r)s!==null&&l.push(s);this._cache=l}}}class u{constructor(c,d,r){this.create(c,d,r)}create(c,d,r){this._buffers=[new n("",[0])],this._lastChangeBufferPos={line:0,column:0},this.root=E.SENTINEL,this._lineCnt=1,this._length=0,this._EOL=d,this._EOLLength=d.length,this._EOLNormalized=r;let l=null;for(let s=0,g=c.length;s0){c[s].lineStarts||(c[s].lineStarts=b(c[s].buffer));const h=new i(s+1,{line:0,column:0},{line:c[s].lineStarts.length-1,column:c[s].buffer.length-c[s].lineStarts[c[s].lineStarts.length-1]},c[s].lineStarts.length-1,c[s].buffer.length);this._buffers.push(c[s]),l=this.rbInsertRight(l,h)}this._searchCache=new a(1),this._lastVisitedLine={lineNumber:0,value:""},this.computeBufferMetadata()}normalizeEOL(c){const d=p,r=d-Math.floor(d/3),l=r*2;let s="",g=0;const h=[];if(this.iterate(this.root,m=>{const C=this.getNodeContent(m),w=C.length;if(g<=r||g+w0){const m=s.replace(/\r\n|\r|\n/g,c);h.push(new n(m,b(m)))}this.create(h,c,!0)}getEOL(){return this._EOL}setEOL(c){this._EOL=c,this._EOLLength=this._EOL.length,this.normalizeEOL(c)}createSnapshot(c){return new t(this,c)}getOffsetAt(c,d){let r=0,l=this.root;for(;l!==E.SENTINEL;)if(l.left!==E.SENTINEL&&l.lf_left+1>=c)l=l.left;else if(l.lf_left+l.piece.lineFeedCnt+1>=c){r+=l.size_left;const s=this.getAccumulatedValue(l,c-l.lf_left-2);return r+=s+d-1}else c-=l.lf_left+l.piece.lineFeedCnt,r+=l.size_left+l.piece.length,l=l.right;return r}getPositionAt(c){c=Math.floor(c),c=Math.max(0,c);let d=this.root,r=0;const l=c;for(;d!==E.SENTINEL;)if(d.size_left!==0&&d.size_left>=c)d=d.left;else if(d.size_left+d.piece.length>=c){const s=this.getIndexOf(d,c-d.size_left);if(r+=d.lf_left+s.index,s.index===0){const g=this.getOffsetAt(r+1,1),h=l-g;return new L.Position(r+1,h+1)}return new L.Position(r+1,s.remainder+1)}else if(c-=d.size_left+d.piece.length,r+=d.lf_left+d.piece.lineFeedCnt,d.right===E.SENTINEL){const s=this.getOffsetAt(r+1,1),g=l-c-s;return new L.Position(r+1,g+1)}else d=d.right;return new L.Position(1,1)}getValueInRange(c,d){if(c.startLineNumber===c.endLineNumber&&c.startColumn===c.endColumn)return"";const r=this.nodeAt2(c.startLineNumber,c.startColumn),l=this.nodeAt2(c.endLineNumber,c.endColumn),s=this.getValueInRange2(r,l);return d?d!==this._EOL||!this._EOLNormalized?s.replace(/\r\n|\r|\n/g,d):d===this.getEOL()&&this._EOLNormalized?s:s.replace(/\r\n|\r|\n/g,d):s}getValueInRange2(c,d){if(c.node===d.node){const h=c.node,m=this._buffers[h.piece.bufferIndex].buffer,C=this.offsetInBuffer(h.piece.bufferIndex,h.piece.start);return m.substring(C+c.remainder,C+d.remainder)}let r=c.node;const l=this._buffers[r.piece.bufferIndex].buffer,s=this.offsetInBuffer(r.piece.bufferIndex,r.piece.start);let g=l.substring(s+c.remainder,s+r.piece.length);for(r=r.next();r!==E.SENTINEL;){const h=this._buffers[r.piece.bufferIndex].buffer,m=this.offsetInBuffer(r.piece.bufferIndex,r.piece.start);if(r===d.node){g+=h.substring(m,m+d.remainder);break}else g+=h.substr(m,r.piece.length);r=r.next()}return g}getLinesContent(){const c=[];let d=0,r="",l=!1;return this.iterate(this.root,s=>{if(s===E.SENTINEL)return!0;const g=s.piece;let h=g.length;if(h===0)return!0;const m=this._buffers[g.bufferIndex].buffer,C=this._buffers[g.bufferIndex].lineStarts,w=g.start.line,D=g.end.line;let I=C[w]+g.start.column;if(l&&(m.charCodeAt(I)===10&&(I++,h--),c[d++]=r,r="",l=!1,h===0))return!0;if(w===D)return!this._EOLNormalized&&m.charCodeAt(I+h-1)===13?(l=!0,r+=m.substr(I,h-1)):r+=m.substr(I,h),!0;r+=this._EOLNormalized?m.substring(I,Math.max(I,C[w+1]-this._EOLLength)):m.substring(I,C[w+1]).replace(/(\r\n|\r|\n)$/,""),c[d++]=r;for(let M=w+1;MR+A,d.reset(0)):(P=I.buffer,x=R=>R,d.reset(A));do if(T=d.next(P),T){if(x(T.index)>=O)return w;this.positionInBuffer(c,x(T.index)-M,N);const R=this.getLineFeedCnt(c.piece.bufferIndex,s,N),B=N.line===s.line?N.column-s.column+l:N.column+1,W=B+T[0].length;if(D[w++]=(0,_.createFindMatch)(new k.Range(r+R,B,r+R,W),T,m),x(T.index)+T[0].length>=O||w>=C)return w}while(T);return w}findMatchesLineByLine(c,d,r,l){const s=[];let g=0;const h=new _.Searcher(d.wordSeparators,d.regex);let m=this.nodeAt2(c.startLineNumber,c.startColumn);if(m===null)return[];const C=this.nodeAt2(c.endLineNumber,c.endColumn);if(C===null)return[];let w=this.positionInBuffer(m.node,m.remainder);const D=this.positionInBuffer(C.node,C.remainder);if(m.node===C.node)return this.findMatchesInNode(m.node,h,c.startLineNumber,c.startColumn,w,D,d,r,l,g,s),s;let I=c.startLineNumber,M=m.node;for(;M!==C.node;){const O=this.getLineFeedCnt(M.piece.bufferIndex,w,M.piece.end);if(O>=1){const N=this._buffers[M.piece.bufferIndex].lineStarts,P=this.offsetInBuffer(M.piece.bufferIndex,M.piece.start),x=N[w.line+O],R=I===c.startLineNumber?c.startColumn:1;if(g=this.findMatchesInNode(M,h,I,R,w,this.positionInBuffer(M,x-P),d,r,l,g,s),g>=l)return s;I+=O}const T=I===c.startLineNumber?c.startColumn-1:0;if(I===c.endLineNumber){const N=this.getLineContent(I).substring(T,c.endColumn-1);return g=this._findMatchesInLine(d,h,N,c.endLineNumber,T,g,s,r,l),s}if(g=this._findMatchesInLine(d,h,this.getLineContent(I).substr(T),I,T,g,s,r,l),g>=l)return s;I++,m=this.nodeAt2(I,1),M=m.node,w=this.positionInBuffer(m.node,m.remainder)}if(I===c.endLineNumber){const O=I===c.startLineNumber?c.startColumn-1:0,T=this.getLineContent(I).substring(O,c.endColumn-1);return g=this._findMatchesInLine(d,h,T,c.endLineNumber,O,g,s,r,l),s}const A=I===c.startLineNumber?c.startColumn:1;return g=this.findMatchesInNode(C.node,h,I,A,w,D,d,r,l,g,s),s}_findMatchesInLine(c,d,r,l,s,g,h,m,C){const w=c.wordSeparators;if(!m&&c.simpleSearch){const I=c.simpleSearch,M=I.length,A=r.length;let O=-M;for(;(O=r.indexOf(I,O+M))!==-1;)if((!w||(0,_.isValidMatch)(w,r,A,O,M))&&(h[g++]=new y.FindMatch(new k.Range(l,O+1+s,l,O+1+M+s),null),g>=C))return g;return g}let D;d.reset(0);do if(D=d.next(r),D&&(h[g++]=(0,_.createFindMatch)(new k.Range(l,D.index+1+s,l,D.index+1+D[0].length+s),D,m),g>=C))return g;while(D);return g}insert(c,d,r=!1){if(this._EOLNormalized=this._EOLNormalized&&r,this._lastVisitedLine.lineNumber=0,this._lastVisitedLine.value="",this.root!==E.SENTINEL){const{node:l,remainder:s,nodeStartOffset:g}=this.nodeAt(c),h=l.piece,m=h.bufferIndex,C=this.positionInBuffer(l,s);if(l.piece.bufferIndex===0&&h.end.line===this._lastChangeBufferPos.line&&h.end.column===this._lastChangeBufferPos.column&&g+h.length===c&&d.lengthc){const w=[];let D=new i(h.bufferIndex,C,h.end,this.getLineFeedCnt(h.bufferIndex,C,h.end),this.offsetInBuffer(m,h.end)-this.offsetInBuffer(m,C));if(this.shouldCheckCRLF()&&this.endWithCR(d)&&this.nodeCharCodeAt(l,s)===10){const O={line:D.start.line+1,column:0};D=new i(D.bufferIndex,O,D.end,this.getLineFeedCnt(D.bufferIndex,O,D.end),D.length-1),d+=`
`}if(this.shouldCheckCRLF()&&this.startWithLF(d))if(this.nodeCharCodeAt(l,s-1)===13){const O=this.positionInBuffer(l,s-1);this.deleteNodeTail(l,O),d="\r"+d,l.piece.length===0&&w.push(l)}else this.deleteNodeTail(l,C);else this.deleteNodeTail(l,C);const I=this.createNewPieces(d);D.length>0&&this.rbInsertRight(l,D);let M=l;for(let A=0;A=0;g--)s=this.rbInsertLeft(s,l[g]);this.validateCRLFWithPrevNode(s),this.deleteNodes(r)}insertContentToNodeRight(c,d){this.adjustCarriageReturnFromNext(c,d)&&(c+=`
`);const r=this.createNewPieces(c),l=this.rbInsertRight(d,r[0]);let s=l;for(let g=1;g=I)C=D+1;else break;return r?(r.line=D,r.column=m-M,null):{line:D,column:m-M}}getLineFeedCnt(c,d,r){if(r.column===0)return r.line-d.line;const l=this._buffers[c].lineStarts;if(r.line===l.length-1)return r.line-d.line;const s=l[r.line+1],g=l[r.line]+r.column;if(s>g+1)return r.line-d.line;const h=g-1;return this._buffers[c].buffer.charCodeAt(h)===13?r.line-d.line+1:r.line-d.line}offsetInBuffer(c,d){return this._buffers[c].lineStarts[d.line]+d.column}deleteNodes(c){for(let d=0;dp){const w=[];for(;c.length>p;){const I=c.charCodeAt(p-1);let M;I===13||I>=55296&&I<=56319?(M=c.substring(0,p-1),c=c.substring(p-1)):(M=c.substring(0,p),c=c.substring(p));const A=b(M);w.push(new i(this._buffers.length,{line:0,column:0},{line:A.length-1,column:M.length-A[A.length-1]},A.length-1,M.length)),this._buffers.push(new n(M,A))}const D=b(c);return w.push(new i(this._buffers.length,{line:0,column:0},{line:D.length-1,column:c.length-D[D.length-1]},D.length-1,c.length)),this._buffers.push(new n(c,D)),w}let d=this._buffers[0].buffer.length;const r=b(c,!1);let l=this._lastChangeBufferPos;if(this._buffers[0].lineStarts[this._buffers[0].lineStarts.length-1]===d&&d!==0&&this.startWithLF(c)&&this.endWithCR(this._buffers[0].buffer)){this._lastChangeBufferPos={line:this._lastChangeBufferPos.line,column:this._lastChangeBufferPos.column+1},l=this._lastChangeBufferPos;for(let w=0;w=c-1)r=r.left;else if(r.lf_left+r.piece.lineFeedCnt>c-1){const m=this.getAccumulatedValue(r,c-r.lf_left-2),C=this.getAccumulatedValue(r,c-r.lf_left-1),w=this._buffers[r.piece.bufferIndex].buffer,D=this.offsetInBuffer(r.piece.bufferIndex,r.piece.start);return g+=r.size_left,this._searchCache.set({node:r,nodeStartOffset:g,nodeStartLineNumber:h-(c-1-r.lf_left)}),w.substring(D+m,D+C-d)}else if(r.lf_left+r.piece.lineFeedCnt===c-1){const m=this.getAccumulatedValue(r,c-r.lf_left-2),C=this._buffers[r.piece.bufferIndex].buffer,w=this.offsetInBuffer(r.piece.bufferIndex,r.piece.start);l=C.substring(w+m,w+r.piece.length);break}else c-=r.lf_left+r.piece.lineFeedCnt,g+=r.size_left+r.piece.length,r=r.right}for(r=r.next();r!==E.SENTINEL;){const g=this._buffers[r.piece.bufferIndex].buffer;if(r.piece.lineFeedCnt>0){const h=this.getAccumulatedValue(r,0),m=this.offsetInBuffer(r.piece.bufferIndex,r.piece.start);return l+=g.substring(m,m+h-d),l}else{const h=this.offsetInBuffer(r.piece.bufferIndex,r.piece.start);l+=g.substr(h,r.piece.length)}r=r.next()}return l}computeBufferMetadata(){let c=this.root,d=1,r=0;for(;c!==E.SENTINEL;)d+=c.lf_left+c.piece.lineFeedCnt,r+=c.size_left+c.piece.length,c=c.right;this._lineCnt=d,this._length=r,this._searchCache.validate(this._length)}getIndexOf(c,d){const r=c.piece,l=this.positionInBuffer(c,d),s=l.line-r.start.line;if(this.offsetInBuffer(r.bufferIndex,r.end)-this.offsetInBuffer(r.bufferIndex,r.start)===d){const g=this.getLineFeedCnt(c.piece.bufferIndex,r.start,l);if(g!==s)return{index:g,remainder:0}}return{index:s,remainder:l.column}}getAccumulatedValue(c,d){if(d<0)return 0;const r=c.piece,l=this._buffers[r.bufferIndex].lineStarts,s=r.start.line+d+1;return s>r.end.line?l[r.end.line]+r.end.column-l[r.start.line]-r.start.column:l[s]-l[r.start.line]-r.start.column}deleteNodeTail(c,d){const r=c.piece,l=r.lineFeedCnt,s=this.offsetInBuffer(r.bufferIndex,r.end),g=d,h=this.offsetInBuffer(r.bufferIndex,g),m=this.getLineFeedCnt(r.bufferIndex,r.start,g),C=m-l,w=h-s,D=r.length+w;c.piece=new i(r.bufferIndex,r.start,g,m,D),(0,E.updateTreeMetadata)(this,c,w,C)}deleteNodeHead(c,d){const r=c.piece,l=r.lineFeedCnt,s=this.offsetInBuffer(r.bufferIndex,r.start),g=d,h=this.getLineFeedCnt(r.bufferIndex,g,r.end),m=this.offsetInBuffer(r.bufferIndex,g),C=h-l,w=s-m,D=r.length+w;c.piece=new i(r.bufferIndex,g,r.end,h,D),(0,E.updateTreeMetadata)(this,c,w,C)}shrinkNode(c,d,r){const l=c.piece,s=l.start,g=l.end,h=l.length,m=l.lineFeedCnt,C=d,w=this.getLineFeedCnt(l.bufferIndex,l.start,C),D=this.offsetInBuffer(l.bufferIndex,d)-this.offsetInBuffer(l.bufferIndex,s);c.piece=new i(l.bufferIndex,l.start,C,w,D),(0,E.updateTreeMetadata)(this,c,D-h,w-m);const I=new i(l.bufferIndex,r,g,this.getLineFeedCnt(l.bufferIndex,r,g),this.offsetInBuffer(l.bufferIndex,g)-this.offsetInBuffer(l.bufferIndex,r)),M=this.rbInsertRight(c,I);this.validateCRLFWithPrevNode(M)}appendToNode(c,d){this.adjustCarriageReturnFromNext(d,c)&&(d+=`
`);const r=this.shouldCheckCRLF()&&this.startWithLF(d)&&this.endWithCR(c),l=this._buffers[0].buffer.length;this._buffers[0].buffer+=d;const s=b(d,!1);for(let M=0;Mc)d=d.left;else if(d.size_left+d.piece.length>=c){l+=d.size_left;const s={node:d,remainder:c-d.size_left,nodeStartOffset:l};return this._searchCache.set(s),s}else c-=d.size_left+d.piece.length,l+=d.size_left+d.piece.length,d=d.right;return null}nodeAt2(c,d){let r=this.root,l=0;for(;r!==E.SENTINEL;)if(r.left!==E.SENTINEL&&r.lf_left>=c-1)r=r.left;else if(r.lf_left+r.piece.lineFeedCnt>c-1){const s=this.getAccumulatedValue(r,c-r.lf_left-2),g=this.getAccumulatedValue(r,c-r.lf_left-1);return l+=r.size_left,{node:r,remainder:Math.min(s+d-1,g),nodeStartOffset:l}}else if(r.lf_left+r.piece.lineFeedCnt===c-1){const s=this.getAccumulatedValue(r,c-r.lf_left-2);if(s+d-1<=r.piece.length)return{node:r,remainder:s+d-1,nodeStartOffset:l};d-=r.piece.length-s;break}else c-=r.lf_left+r.piece.lineFeedCnt,l+=r.size_left+r.piece.length,r=r.right;for(r=r.next();r!==E.SENTINEL;){if(r.piece.lineFeedCnt>0){const s=this.getAccumulatedValue(r,0),g=this.offsetOfNode(r);return{node:r,remainder:Math.min(d-1,s),nodeStartOffset:g}}else if(r.piece.length>=d-1){const s=this.offsetOfNode(r);return{node:r,remainder:d-1,nodeStartOffset:s}}else d-=r.piece.length;r=r.next()}return null}nodeCharCodeAt(c,d){if(c.piece.lineFeedCnt<1)return-1;const r=this._buffers[c.piece.bufferIndex],l=this.offsetInBuffer(c.piece.bufferIndex,c.piece.start)+d;return r.buffer.charCodeAt(l)}offsetOfNode(c){if(!c)return 0;let d=c.size_left;for(;c!==this.root;)c.parent.right===c&&(d+=c.parent.size_left+c.parent.piece.length),c=c.parent;return d}shouldCheckCRLF(){return!(this._EOLNormalized&&this._EOL===`
`)}startWithLF(c){if(typeof c=="string")return c.charCodeAt(0)===10;if(c===E.SENTINEL||c.piece.lineFeedCnt===0)return!1;const d=c.piece,r=this._buffers[d.bufferIndex].lineStarts,l=d.start.line,s=r[l]+d.start.column;return l===r.length-1||r[l+1]>s+1?!1:this._buffers[d.bufferIndex].buffer.charCodeAt(s)===10}endWithCR(c){return typeof c=="string"?c.charCodeAt(c.length-1)===13:c===E.SENTINEL||c.piece.lineFeedCnt===0?!1:this.nodeCharCodeAt(c,c.piece.length-1)===13}validateCRLFWithPrevNode(c){if(this.shouldCheckCRLF()&&this.startWithLF(c)){const d=c.prev();this.endWithCR(d)&&this.fixCRLF(d,c)}}validateCRLFWithNextNode(c){if(this.shouldCheckCRLF()&&this.endWithCR(c)){const d=c.next();this.startWithLF(d)&&this.fixCRLF(c,d)}}fixCRLF(c,d){const r=[],l=this._buffers[c.piece.bufferIndex].lineStarts;let s;c.piece.end.column===0?s={line:c.piece.end.line-1,column:l[c.piece.end.line]-l[c.piece.end.line-1]-1}:s={line:c.piece.end.line,column:c.piece.end.column-1};const g=c.piece.length-1,h=c.piece.lineFeedCnt-1;c.piece=new i(c.piece.bufferIndex,c.piece.start,s,h,g),(0,E.updateTreeMetadata)(this,c,-1,-1),c.piece.length===0&&r.push(c);const m={line:d.piece.start.line+1,column:0},C=d.piece.length-1,w=this.getLineFeedCnt(d.piece.bufferIndex,m,d.piece.end);d.piece=new i(d.piece.bufferIndex,m,d.piece.end,w,C),(0,E.updateTreeMetadata)(this,d,-1,-1),d.piece.length===0&&r.push(d);const D=this.createNewPieces(`\r
`);this.rbInsertRight(c,D[0]);for(let I=0;I0?this.wrappedTextIndentLength:0}getLineLength(o){const i=o>0?this.breakOffsets[o-1]:0;let t=this.breakOffsets[o]-i;return o>0&&(t+=this.wrappedTextIndentLength),t}getMaxOutputOffset(o){return this.getLineLength(o)}translateToInputOffset(o,i){o>0&&(i=Math.max(0,i-this.wrappedTextIndentLength));let t=o===0?i:this.breakOffsets[o-1]+i;if(this.injectionOffsets!==null)for(let a=0;athis.injectionOffsets[a];a++)t0?this.breakOffsets[a-1]:0,i===0)if(o<=u)t=a-1;else if(o>c)n=a+1;else break;else if(o=c)n=a+1;else break}let f=o-u;return a>0&&(f+=this.wrappedTextIndentLength),new v(a,f)}normalizeOutputPosition(o,i,n){if(this.injectionOffsets!==null){const t=this.outputPositionToOffsetInInputWithInjections(o,i),a=this.normalizeOffsetInInputWithInjectionsAroundInjections(t,n);if(a!==t)return this.offsetInInputWithInjectionsToOutputPosition(a,n)}if(n===0){if(o>0&&i===this.getMinOutputOffset(o))return new v(o-1,this.getMaxOutputOffset(o-1))}else if(n===1){const t=this.getOutputLineCount()-1;if(o0&&(i=Math.max(0,i-this.wrappedTextIndentLength)),(o>0?this.breakOffsets[o-1]:0)+i}normalizeOffsetInInputWithInjectionsAroundInjections(o,i){const n=this.getInjectedTextAtOffset(o);if(!n)return o;if(i===2){if(o===n.offsetInInputWithInjections+n.length&&_(this.injectionOptions[n.injectedTextIndex].cursorStops))return n.offsetInInputWithInjections+n.length;{let t=n.offsetInInputWithInjections;if(p(this.injectionOptions[n.injectedTextIndex].cursorStops))return t;let a=n.injectedTextIndex-1;for(;a>=0&&this.injectionOffsets[a]===this.injectionOffsets[n.injectedTextIndex]&&!(_(this.injectionOptions[a].cursorStops)||(t-=this.injectionOptions[a].content.length,p(this.injectionOptions[a].cursorStops)));)a--;return t}}else if(i===1||i===4){let t=n.offsetInInputWithInjections+n.length,a=n.injectedTextIndex;for(;a+1=0&&this.injectionOffsets[a-1]===this.injectionOffsets[a];)t-=this.injectionOptions[a-1].content.length,a--;return t}(0,L.assertNever)(i)}getInjectedText(o,i){const n=this.outputPositionToOffsetInInputWithInjections(o,i),t=this.getInjectedTextAtOffset(n);return t?{options:this.injectionOptions[t.injectedTextIndex]}:null}getInjectedTextAtOffset(o){const i=this.injectionOffsets,n=this.injectionOptions;if(i!==null){let t=0;for(let a=0;ao)break;if(o<=c)return{injectedTextIndex:a,offsetInInputWithInjections:f,length:u};t+=u}}}}e.ModelLineProjectionData=E;function _(b){return b==null?!0:b===y.InjectedTextCursorStops.Right||b===y.InjectedTextCursorStops.Both}function p(b){return b==null?!0:b===y.InjectedTextCursorStops.Left||b===y.InjectedTextCursorStops.Both}class S{constructor(o){this.options=o}}e.InjectedText=S;class v{constructor(o,i){this.outputLineIndex=o,this.outputOffset=i}toString(){return`${this.outputLineIndex}:${this.outputOffset}`}toPosition(o){return new k.Position(o+this.outputLineIndex,this.outputOffset+1)}}e.OutputPosition=v}),define(ie[292],ne([1,0]),function(Q,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.DraggedTreeItemsIdentifier=e.TreeViewsDnDService=void 0;class L{constructor(){this._dragOperations=new Map}removeDragOperationTransfer(E){if(E&&this._dragOperations.has(E)){const _=this._dragOperations.get(E);return this._dragOperations.delete(E),_}}}e.TreeViewsDnDService=L;class k{constructor(E){this.identifier=E}}e.DraggedTreeItemsIdentifier=k}),define(ie[293],ne([1,0,5,182,12,98,149]),function(Q,e,L,k,y,E,_){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.UnicodeTextModelHighlighter=void 0;class p{static computeUnicodeHighlights(i,n,t){const a=t?t.startLineNumber:1,u=t?t.endLineNumber:i.getLineCount(),f=new v(n),c=f.getCandidateCodePoints();let d;c==="allNonBasicAscii"?d=new RegExp("[^\\t\\n\\r\\x20-\\x7E]","g"):d=new RegExp(`${S(Array.from(c))}`,"g");const r=new k.Searcher(null,d),l=[];let s=!1,g,h=0,m=0,C=0;e:for(let w=a,D=u;w<=D;w++){const I=i.getLineContent(w),M=I.length;r.reset(0);do if(g=r.next(I),g){let A=g.index,O=g.index+g[0].length;if(A>0){const x=I.charCodeAt(A-1);y.isHighSurrogate(x)&&A--}if(O+1=x){s=!0;break e}l.push(new L.Range(w,A+1,w,O+1))}}while(g)}return{ranges:l,hasMore:s,ambiguousCharacterCount:h,invisibleCharacterCount:m,nonBasicAsciiCharacterCount:C}}static computeUnicodeHighlightReason(i,n){const t=new v(n);switch(t.shouldHighlightNonBasicASCII(i,null)){case 0:return null;case 2:return{kind:1};case 3:{const u=i.codePointAt(0),f=t.ambiguousCharacters.getPrimaryConfusable(u),c=y.AmbiguousCharacters.getLocales().filter(d=>!y.AmbiguousCharacters.getInstance(new Set([...n.allowedLocales,d])).isAmbiguous(u));return{kind:0,confusableWith:String.fromCodePoint(f),notAmbiguousInLocales:c}}case 1:return{kind:2}}}}e.UnicodeTextModelHighlighter=p;function S(o,i){return`[${y.escapeRegExpCharacters(o.map(t=>String.fromCodePoint(t)).join(""))}]`}class v{constructor(i){this.options=i,this.allowedCodePoints=new Set(i.allowedCodePoints),this.ambiguousCharacters=y.AmbiguousCharacters.getInstance(new Set(i.allowedLocales))}getCandidateCodePoints(){if(this.options.nonBasicASCII)return"allNonBasicAscii";const i=new Set;if(this.options.invisibleCharacters)for(const n of y.InvisibleCharacters.codePoints)b(String.fromCodePoint(n))||i.add(n);if(this.options.ambiguousCharacters)for(const n of this.ambiguousCharacters.getConfusableCodePoints())i.add(n);for(const n of this.allowedCodePoints)i.delete(n);return i}shouldHighlightNonBasicASCII(i,n){const t=i.codePointAt(0);if(this.allowedCodePoints.has(t))return 0;if(this.options.nonBasicASCII)return 1;let a=!1,u=!1;if(n)for(const f of n){const c=f.codePointAt(0),d=y.isBasicASCII(f);a=a||d,!d&&!this.ambiguousCharacters.isAmbiguous(c)&&!y.InvisibleCharacters.isInvisibleCharacter(c)&&(u=!0)}return!a&&u?0:this.options.invisibleCharacters&&!b(i)&&y.InvisibleCharacters.isInvisibleCharacter(t)?2:this.options.ambiguousCharacters&&this.ambiguousCharacters.isAmbiguous(t)?3:0}}function b(o){return o===" "||o===`
`||o===" "}}),define(ie[211],ne([1,0]),function(Q,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.WrappingIndent=e.TrackedRangeStickiness=e.TextEditorCursorStyle=e.TextEditorCursorBlinkingStyle=e.SymbolTag=e.SymbolKind=e.SignatureHelpTriggerKind=e.ShowAiIconMode=e.SelectionDirection=e.ScrollbarVisibility=e.ScrollType=e.RenderMinimap=e.RenderLineNumbersType=e.PositionAffinity=e.OverviewRulerLane=e.OverlayWidgetPositionPreference=e.MouseTargetType=e.MinimapPosition=e.MarkerTag=e.MarkerSeverity=e.KeyCode=e.InlineCompletionTriggerKind=e.InlayHintKind=e.InjectedTextCursorStops=e.IndentAction=e.GlyphMarginLane=e.EndOfLineSequence=e.EndOfLinePreference=e.EditorOption=e.EditorAutoIndentStrategy=e.DocumentHighlightKind=e.DefaultEndOfLine=e.CursorChangeReason=e.ContentWidgetPositionPreference=e.CompletionTriggerKind=e.CompletionItemTag=e.CompletionItemKind=e.CompletionItemInsertTextRule=e.CodeActionTriggerType=e.AccessibilitySupport=void 0;var L;(function(F){F[F.Unknown=0]="Unknown",F[F.Disabled=1]="Disabled",F[F.Enabled=2]="Enabled"})(L||(e.AccessibilitySupport=L={}));var k;(function(F){F[F.Invoke=1]="Invoke",F[F.Auto=2]="Auto"})(k||(e.CodeActionTriggerType=k={}));var y;(function(F){F[F.None=0]="None",F[F.KeepWhitespace=1]="KeepWhitespace",F[F.InsertAsSnippet=4]="InsertAsSnippet"})(y||(e.CompletionItemInsertTextRule=y={}));var E;(function(F){F[F.Method=0]="Method",F[F.Function=1]="Function",F[F.Constructor=2]="Constructor",F[F.Field=3]="Field",F[F.Variable=4]="Variable",F[F.Class=5]="Class",F[F.Struct=6]="Struct",F[F.Interface=7]="Interface",F[F.Module=8]="Module",F[F.Property=9]="Property",F[F.Event=10]="Event",F[F.Operator=11]="Operator",F[F.Unit=12]="Unit",F[F.Value=13]="Value",F[F.Constant=14]="Constant",F[F.Enum=15]="Enum",F[F.EnumMember=16]="EnumMember",F[F.Keyword=17]="Keyword",F[F.Text=18]="Text",F[F.Color=19]="Color",F[F.File=20]="File",F[F.Reference=21]="Reference",F[F.Customcolor=22]="Customcolor",F[F.Folder=23]="Folder",F[F.TypeParameter=24]="TypeParameter",F[F.User=25]="User",F[F.Issue=26]="Issue",F[F.Snippet=27]="Snippet"})(E||(e.CompletionItemKind=E={}));var _;(function(F){F[F.Deprecated=1]="Deprecated"})(_||(e.CompletionItemTag=_={}));var p;(function(F){F[F.Invoke=0]="Invoke",F[F.TriggerCharacter=1]="TriggerCharacter",F[F.TriggerForIncompleteCompletions=2]="TriggerForIncompleteCompletions"})(p||(e.CompletionTriggerKind=p={}));var S;(function(F){F[F.EXACT=0]="EXACT",F[F.ABOVE=1]="ABOVE",F[F.BELOW=2]="BELOW"})(S||(e.ContentWidgetPositionPreference=S={}));var v;(function(F){F[F.NotSet=0]="NotSet",F[F.ContentFlush=1]="ContentFlush",F[F.RecoverFromMarkers=2]="RecoverFromMarkers",F[F.Explicit=3]="Explicit",F[F.Paste=4]="Paste",F[F.Undo=5]="Undo",F[F.Redo=6]="Redo"})(v||(e.CursorChangeReason=v={}));var b;(function(F){F[F.LF=1]="LF",F[F.CRLF=2]="CRLF"})(b||(e.DefaultEndOfLine=b={}));var o;(function(F){F[F.Text=0]="Text",F[F.Read=1]="Read",F[F.Write=2]="Write"})(o||(e.DocumentHighlightKind=o={}));var i;(function(F){F[F.None=0]="None",F[F.Keep=1]="Keep",F[F.Brackets=2]="Brackets",F[F.Advanced=3]="Advanced",F[F.Full=4]="Full"})(i||(e.EditorAutoIndentStrategy=i={}));var n;(function(F){F[F.acceptSuggestionOnCommitCharacter=0]="acceptSuggestionOnCommitCharacter",F[F.acceptSuggestionOnEnter=1]="acceptSuggestionOnEnter",F[F.accessibilitySupport=2]="accessibilitySupport",F[F.accessibilityPageSize=3]="accessibilityPageSize",F[F.ariaLabel=4]="ariaLabel",F[F.ariaRequired=5]="ariaRequired",F[F.autoClosingBrackets=6]="autoClosingBrackets",F[F.autoClosingComments=7]="autoClosingComments",F[F.screenReaderAnnounceInlineSuggestion=8]="screenReaderAnnounceInlineSuggestion",F[F.autoClosingDelete=9]="autoClosingDelete",F[F.autoClosingOvertype=10]="autoClosingOvertype",F[F.autoClosingQuotes=11]="autoClosingQuotes",F[F.autoIndent=12]="autoIndent",F[F.automaticLayout=13]="automaticLayout",F[F.autoSurround=14]="autoSurround",F[F.bracketPairColorization=15]="bracketPairColorization",F[F.guides=16]="guides",F[F.codeLens=17]="codeLens",F[F.codeLensFontFamily=18]="codeLensFontFamily",F[F.codeLensFontSize=19]="codeLensFontSize",F[F.colorDecorators=20]="colorDecorators",F[F.colorDecoratorsLimit=21]="colorDecoratorsLimit",F[F.columnSelection=22]="columnSelection",F[F.comments=23]="comments",F[F.contextmenu=24]="contextmenu",F[F.copyWithSyntaxHighlighting=25]="copyWithSyntaxHighlighting",F[F.cursorBlinking=26]="cursorBlinking",F[F.cursorSmoothCaretAnimation=27]="cursorSmoothCaretAnimation",F[F.cursorStyle=28]="cursorStyle",F[F.cursorSurroundingLines=29]="cursorSurroundingLines",F[F.cursorSurroundingLinesStyle=30]="cursorSurroundingLinesStyle",F[F.cursorWidth=31]="cursorWidth",F[F.disableLayerHinting=32]="disableLayerHinting",F[F.disableMonospaceOptimizations=33]="disableMonospaceOptimizations",F[F.domReadOnly=34]="domReadOnly",F[F.dragAndDrop=35]="dragAndDrop",F[F.dropIntoEditor=36]="dropIntoEditor",F[F.emptySelectionClipboard=37]="emptySelectionClipboard",F[F.experimentalWhitespaceRendering=38]="experimentalWhitespaceRendering",F[F.extraEditorClassName=39]="extraEditorClassName",F[F.fastScrollSensitivity=40]="fastScrollSensitivity",F[F.find=41]="find",F[F.fixedOverflowWidgets=42]="fixedOverflowWidgets",F[F.folding=43]="folding",F[F.foldingStrategy=44]="foldingStrategy",F[F.foldingHighlight=45]="foldingHighlight",F[F.foldingImportsByDefault=46]="foldingImportsByDefault",F[F.foldingMaximumRegions=47]="foldingMaximumRegions",F[F.unfoldOnClickAfterEndOfLine=48]="unfoldOnClickAfterEndOfLine",F[F.fontFamily=49]="fontFamily",F[F.fontInfo=50]="fontInfo",F[F.fontLigatures=51]="fontLigatures",F[F.fontSize=52]="fontSize",F[F.fontWeight=53]="fontWeight",F[F.fontVariations=54]="fontVariations",F[F.formatOnPaste=55]="formatOnPaste",F[F.formatOnType=56]="formatOnType",F[F.glyphMargin=57]="glyphMargin",F[F.gotoLocation=58]="gotoLocation",F[F.hideCursorInOverviewRuler=59]="hideCursorInOverviewRuler",F[F.hover=60]="hover",F[F.inDiffEditor=61]="inDiffEditor",F[F.inlineSuggest=62]="inlineSuggest",F[F.letterSpacing=63]="letterSpacing",F[F.lightbulb=64]="lightbulb",F[F.lineDecorationsWidth=65]="lineDecorationsWidth",F[F.lineHeight=66]="lineHeight",F[F.lineNumbers=67]="lineNumbers",F[F.lineNumbersMinChars=68]="lineNumbersMinChars",F[F.linkedEditing=69]="linkedEditing",F[F.links=70]="links",F[F.matchBrackets=71]="matchBrackets",F[F.minimap=72]="minimap",F[F.mouseStyle=73]="mouseStyle",F[F.mouseWheelScrollSensitivity=74]="mouseWheelScrollSensitivity",F[F.mouseWheelZoom=75]="mouseWheelZoom",F[F.multiCursorMergeOverlapping=76]="multiCursorMergeOverlapping",F[F.multiCursorModifier=77]="multiCursorModifier",F[F.multiCursorPaste=78]="multiCursorPaste",F[F.multiCursorLimit=79]="multiCursorLimit",F[F.occurrencesHighlight=80]="occurrencesHighlight",F[F.overviewRulerBorder=81]="overviewRulerBorder",F[F.overviewRulerLanes=82]="overviewRulerLanes",F[F.padding=83]="padding",F[F.pasteAs=84]="pasteAs",F[F.parameterHints=85]="parameterHints",F[F.peekWidgetDefaultFocus=86]="peekWidgetDefaultFocus",F[F.definitionLinkOpensInPeek=87]="definitionLinkOpensInPeek",F[F.quickSuggestions=88]="quickSuggestions",F[F.quickSuggestionsDelay=89]="quickSuggestionsDelay",F[F.readOnly=90]="readOnly",F[F.readOnlyMessage=91]="readOnlyMessage",F[F.renameOnType=92]="renameOnType",F[F.renderControlCharacters=93]="renderControlCharacters",F[F.renderFinalNewline=94]="renderFinalNewline",F[F.renderLineHighlight=95]="renderLineHighlight",F[F.renderLineHighlightOnlyWhenFocus=96]="renderLineHighlightOnlyWhenFocus",F[F.renderValidationDecorations=97]="renderValidationDecorations",F[F.renderWhitespace=98]="renderWhitespace",F[F.revealHorizontalRightPadding=99]="revealHorizontalRightPadding",F[F.roundedSelection=100]="roundedSelection",F[F.rulers=101]="rulers",F[F.scrollbar=102]="scrollbar",F[F.scrollBeyondLastColumn=103]="scrollBeyondLastColumn",F[F.scrollBeyondLastLine=104]="scrollBeyondLastLine",F[F.scrollPredominantAxis=105]="scrollPredominantAxis",F[F.selectionClipboard=106]="selectionClipboard",F[F.selectionHighlight=107]="selectionHighlight",F[F.selectOnLineNumbers=108]="selectOnLineNumbers",F[F.showFoldingControls=109]="showFoldingControls",F[F.showUnused=110]="showUnused",F[F.snippetSuggestions=111]="snippetSuggestions",F[F.smartSelect=112]="smartSelect",F[F.smoothScrolling=113]="smoothScrolling",F[F.stickyScroll=114]="stickyScroll",F[F.stickyTabStops=115]="stickyTabStops",F[F.stopRenderingLineAfter=116]="stopRenderingLineAfter",F[F.suggest=117]="suggest",F[F.suggestFontSize=118]="suggestFontSize",F[F.suggestLineHeight=119]="suggestLineHeight",F[F.suggestOnTriggerCharacters=120]="suggestOnTriggerCharacters",F[F.suggestSelection=121]="suggestSelection",F[F.tabCompletion=122]="tabCompletion",F[F.tabIndex=123]="tabIndex",F[F.unicodeHighlighting=124]="unicodeHighlighting",F[F.unusualLineTerminators=125]="unusualLineTerminators",F[F.useShadowDOM=126]="useShadowDOM",F[F.useTabStops=127]="useTabStops",F[F.wordBreak=128]="wordBreak",F[F.wordSeparators=129]="wordSeparators",F[F.wordWrap=130]="wordWrap",F[F.wordWrapBreakAfterCharacters=131]="wordWrapBreakAfterCharacters",F[F.wordWrapBreakBeforeCharacters=132]="wordWrapBreakBeforeCharacters",F[F.wordWrapColumn=133]="wordWrapColumn",F[F.wordWrapOverride1=134]="wordWrapOverride1",F[F.wordWrapOverride2=135]="wordWrapOverride2",F[F.wrappingIndent=136]="wrappingIndent",F[F.wrappingStrategy=137]="wrappingStrategy",F[F.showDeprecated=138]="showDeprecated",F[F.inlayHints=139]="inlayHints",F[F.editorClassName=140]="editorClassName",F[F.pixelRatio=141]="pixelRatio",F[F.tabFocusMode=142]="tabFocusMode",F[F.layoutInfo=143]="layoutInfo",F[F.wrappingInfo=144]="wrappingInfo",F[F.defaultColorDecorators=145]="defaultColorDecorators",F[F.colorDecoratorsActivatedOn=146]="colorDecoratorsActivatedOn",F[F.inlineCompletionsAccessibilityVerbose=147]="inlineCompletionsAccessibilityVerbose"})(n||(e.EditorOption=n={}));var t;(function(F){F[F.TextDefined=0]="TextDefined",F[F.LF=1]="LF",F[F.CRLF=2]="CRLF"})(t||(e.EndOfLinePreference=t={}));var a;(function(F){F[F.LF=0]="LF",F[F.CRLF=1]="CRLF"})(a||(e.EndOfLineSequence=a={}));var u;(function(F){F[F.Left=1]="Left",F[F.Right=2]="Right"})(u||(e.GlyphMarginLane=u={}));var f;(function(F){F[F.None=0]="None",F[F.Indent=1]="Indent",F[F.IndentOutdent=2]="IndentOutdent",F[F.Outdent=3]="Outdent"})(f||(e.IndentAction=f={}));var c;(function(F){F[F.Both=0]="Both",F[F.Right=1]="Right",F[F.Left=2]="Left",F[F.None=3]="None"})(c||(e.InjectedTextCursorStops=c={}));var d;(function(F){F[F.Type=1]="Type",F[F.Parameter=2]="Parameter"})(d||(e.InlayHintKind=d={}));var r;(function(F){F[F.Automatic=0]="Automatic",F[F.Explicit=1]="Explicit"})(r||(e.InlineCompletionTriggerKind=r={}));var l;(function(F){F[F.DependsOnKbLayout=-1]="DependsOnKbLayout",F[F.Unknown=0]="Unknown",F[F.Backspace=1]="Backspace",F[F.Tab=2]="Tab",F[F.Enter=3]="Enter",F[F.Shift=4]="Shift",F[F.Ctrl=5]="Ctrl",F[F.Alt=6]="Alt",F[F.PauseBreak=7]="PauseBreak",F[F.CapsLock=8]="CapsLock",F[F.Escape=9]="Escape",F[F.Space=10]="Space",F[F.PageUp=11]="PageUp",F[F.PageDown=12]="PageDown",F[F.End=13]="End",F[F.Home=14]="Home",F[F.LeftArrow=15]="LeftArrow",F[F.UpArrow=16]="UpArrow",F[F.RightArrow=17]="RightArrow",F[F.DownArrow=18]="DownArrow",F[F.Insert=19]="Insert",F[F.Delete=20]="Delete",F[F.Digit0=21]="Digit0",F[F.Digit1=22]="Digit1",F[F.Digit2=23]="Digit2",F[F.Digit3=24]="Digit3",F[F.Digit4=25]="Digit4",F[F.Digit5=26]="Digit5",F[F.Digit6=27]="Digit6",F[F.Digit7=28]="Digit7",F[F.Digit8=29]="Digit8",F[F.Digit9=30]="Digit9",F[F.KeyA=31]="KeyA",F[F.KeyB=32]="KeyB",F[F.KeyC=33]="KeyC",F[F.KeyD=34]="KeyD",F[F.KeyE=35]="KeyE",F[F.KeyF=36]="KeyF",F[F.KeyG=37]="KeyG",F[F.KeyH=38]="KeyH",F[F.KeyI=39]="KeyI",F[F.KeyJ=40]="KeyJ",F[F.KeyK=41]="KeyK",F[F.KeyL=42]="KeyL",F[F.KeyM=43]="KeyM",F[F.KeyN=44]="KeyN",F[F.KeyO=45]="KeyO",F[F.KeyP=46]="KeyP",F[F.KeyQ=47]="KeyQ",F[F.KeyR=48]="KeyR",F[F.KeyS=49]="KeyS",F[F.KeyT=50]="KeyT",F[F.KeyU=51]="KeyU",F[F.KeyV=52]="KeyV",F[F.KeyW=53]="KeyW",F[F.KeyX=54]="KeyX",F[F.KeyY=55]="KeyY",F[F.KeyZ=56]="KeyZ",F[F.Meta=57]="Meta",F[F.ContextMenu=58]="ContextMenu",F[F.F1=59]="F1",F[F.F2=60]="F2",F[F.F3=61]="F3",F[F.F4=62]="F4",F[F.F5=63]="F5",F[F.F6=64]="F6",F[F.F7=65]="F7",F[F.F8=66]="F8",F[F.F9=67]="F9",F[F.F10=68]="F10",F[F.F11=69]="F11",F[F.F12=70]="F12",F[F.F13=71]="F13",F[F.F14=72]="F14",F[F.F15=73]="F15",F[F.F16=74]="F16",F[F.F17=75]="F17",F[F.F18=76]="F18",F[F.F19=77]="F19",F[F.F20=78]="F20",F[F.F21=79]="F21",F[F.F22=80]="F22",F[F.F23=81]="F23",F[F.F24=82]="F24",F[F.NumLock=83]="NumLock",F[F.ScrollLock=84]="ScrollLock",F[F.Semicolon=85]="Semicolon",F[F.Equal=86]="Equal",F[F.Comma=87]="Comma",F[F.Minus=88]="Minus",F[F.Period=89]="Period",F[F.Slash=90]="Slash",F[F.Backquote=91]="Backquote",F[F.BracketLeft=92]="BracketLeft",F[F.Backslash=93]="Backslash",F[F.BracketRight=94]="BracketRight",F[F.Quote=95]="Quote",F[F.OEM_8=96]="OEM_8",F[F.IntlBackslash=97]="IntlBackslash",F[F.Numpad0=98]="Numpad0",F[F.Numpad1=99]="Numpad1",F[F.Numpad2=100]="Numpad2",F[F.Numpad3=101]="Numpad3",F[F.Numpad4=102]="Numpad4",F[F.Numpad5=103]="Numpad5",F[F.Numpad6=104]="Numpad6",F[F.Numpad7=105]="Numpad7",F[F.Numpad8=106]="Numpad8",F[F.Numpad9=107]="Numpad9",F[F.NumpadMultiply=108]="NumpadMultiply",F[F.NumpadAdd=109]="NumpadAdd",F[F.NUMPAD_SEPARATOR=110]="NUMPAD_SEPARATOR",F[F.NumpadSubtract=111]="NumpadSubtract",F[F.NumpadDecimal=112]="NumpadDecimal",F[F.NumpadDivide=113]="NumpadDivide",F[F.KEY_IN_COMPOSITION=114]="KEY_IN_COMPOSITION",F[F.ABNT_C1=115]="ABNT_C1",F[F.ABNT_C2=116]="ABNT_C2",F[F.AudioVolumeMute=117]="AudioVolumeMute",F[F.AudioVolumeUp=118]="AudioVolumeUp",F[F.AudioVolumeDown=119]="AudioVolumeDown",F[F.BrowserSearch=120]="BrowserSearch",F[F.BrowserHome=121]="BrowserHome",F[F.BrowserBack=122]="BrowserBack",F[F.BrowserForward=123]="BrowserForward",F[F.MediaTrackNext=124]="MediaTrackNext",F[F.MediaTrackPrevious=125]="MediaTrackPrevious",F[F.MediaStop=126]="MediaStop",F[F.MediaPlayPause=127]="MediaPlayPause",F[F.LaunchMediaPlayer=128]="LaunchMediaPlayer",F[F.LaunchMail=129]="LaunchMail",F[F.LaunchApp2=130]="LaunchApp2",F[F.Clear=131]="Clear",F[F.MAX_VALUE=132]="MAX_VALUE"})(l||(e.KeyCode=l={}));var s;(function(F){F[F.Hint=1]="Hint",F[F.Info=2]="Info",F[F.Warning=4]="Warning",F[F.Error=8]="Error"})(s||(e.MarkerSeverity=s={}));var g;(function(F){F[F.Unnecessary=1]="Unnecessary",F[F.Deprecated=2]="Deprecated"})(g||(e.MarkerTag=g={}));var h;(function(F){F[F.Inline=1]="Inline",F[F.Gutter=2]="Gutter"})(h||(e.MinimapPosition=h={}));var m;(function(F){F[F.UNKNOWN=0]="UNKNOWN",F[F.TEXTAREA=1]="TEXTAREA",F[F.GUTTER_GLYPH_MARGIN=2]="GUTTER_GLYPH_MARGIN",F[F.GUTTER_LINE_NUMBERS=3]="GUTTER_LINE_NUMBERS",F[F.GUTTER_LINE_DECORATIONS=4]="GUTTER_LINE_DECORATIONS",F[F.GUTTER_VIEW_ZONE=5]="GUTTER_VIEW_ZONE",F[F.CONTENT_TEXT=6]="CONTENT_TEXT",F[F.CONTENT_EMPTY=7]="CONTENT_EMPTY",F[F.CONTENT_VIEW_ZONE=8]="CONTENT_VIEW_ZONE",F[F.CONTENT_WIDGET=9]="CONTENT_WIDGET",F[F.OVERVIEW_RULER=10]="OVERVIEW_RULER",F[F.SCROLLBAR=11]="SCROLLBAR",F[F.OVERLAY_WIDGET=12]="OVERLAY_WIDGET",F[F.OUTSIDE_EDITOR=13]="OUTSIDE_EDITOR"})(m||(e.MouseTargetType=m={}));var C;(function(F){F[F.TOP_RIGHT_CORNER=0]="TOP_RIGHT_CORNER",F[F.BOTTOM_RIGHT_CORNER=1]="BOTTOM_RIGHT_CORNER",F[F.TOP_CENTER=2]="TOP_CENTER"})(C||(e.OverlayWidgetPositionPreference=C={}));var w;(function(F){F[F.Left=1]="Left",F[F.Center=2]="Center",F[F.Right=4]="Right",F[F.Full=7]="Full"})(w||(e.OverviewRulerLane=w={}));var D;(function(F){F[F.Left=0]="Left",F[F.Right=1]="Right",F[F.None=2]="None",F[F.LeftOfInjectedText=3]="LeftOfInjectedText",F[F.RightOfInjectedText=4]="RightOfInjectedText"})(D||(e.PositionAffinity=D={}));var I;(function(F){F[F.Off=0]="Off",F[F.On=1]="On",F[F.Relative=2]="Relative",F[F.Interval=3]="Interval",F[F.Custom=4]="Custom"})(I||(e.RenderLineNumbersType=I={}));var M;(function(F){F[F.None=0]="None",F[F.Text=1]="Text",F[F.Blocks=2]="Blocks"})(M||(e.RenderMinimap=M={}));var A;(function(F){F[F.Smooth=0]="Smooth",F[F.Immediate=1]="Immediate"})(A||(e.ScrollType=A={}));var O;(function(F){F[F.Auto=1]="Auto",F[F.Hidden=2]="Hidden",F[F.Visible=3]="Visible"})(O||(e.ScrollbarVisibility=O={}));var T;(function(F){F[F.LTR=0]="LTR",F[F.RTL=1]="RTL"})(T||(e.SelectionDirection=T={}));var N;(function(F){F.Off="off",F.OnCode="onCode",F.On="on"})(N||(e.ShowAiIconMode=N={}));var P;(function(F){F[F.Invoke=1]="Invoke",F[F.TriggerCharacter=2]="TriggerCharacter",F[F.ContentChange=3]="ContentChange"})(P||(e.SignatureHelpTriggerKind=P={}));var x;(function(F){F[F.File=0]="File",F[F.Module=1]="Module",F[F.Namespace=2]="Namespace",F[F.Package=3]="Package",F[F.Class=4]="Class",F[F.Method=5]="Method",F[F.Property=6]="Property",F[F.Field=7]="Field",F[F.Constructor=8]="Constructor",F[F.Enum=9]="Enum",F[F.Interface=10]="Interface",F[F.Function=11]="Function",F[F.Variable=12]="Variable",F[F.Constant=13]="Constant",F[F.String=14]="String",F[F.Number=15]="Number",F[F.Boolean=16]="Boolean",F[F.Array=17]="Array",F[F.Object=18]="Object",F[F.Key=19]="Key",F[F.Null=20]="Null",F[F.EnumMember=21]="EnumMember",F[F.Struct=22]="Struct",F[F.Event=23]="Event",F[F.Operator=24]="Operator",F[F.TypeParameter=25]="TypeParameter"})(x||(e.SymbolKind=x={}));var R;(function(F){F[F.Deprecated=1]="Deprecated"})(R||(e.SymbolTag=R={}));var B;(function(F){F[F.Hidden=0]="Hidden",F[F.Blink=1]="Blink",F[F.Smooth=2]="Smooth",F[F.Phase=3]="Phase",F[F.Expand=4]="Expand",F[F.Solid=5]="Solid"})(B||(e.TextEditorCursorBlinkingStyle=B={}));var W;(function(F){F[F.Line=1]="Line",F[F.Block=2]="Block",F[F.Underline=3]="Underline",F[F.LineThin=4]="LineThin",F[F.BlockOutline=5]="BlockOutline",F[F.UnderlineThin=6]="UnderlineThin"})(W||(e.TextEditorCursorStyle=W={}));var V;(function(F){F[F.AlwaysGrowsWhenTypingAtEdges=0]="AlwaysGrowsWhenTypingAtEdges",F[F.NeverGrowsWhenTypingAtEdges=1]="NeverGrowsWhenTypingAtEdges",F[F.GrowsOnlyWhenTypingBefore=2]="GrowsOnlyWhenTypingBefore",F[F.GrowsOnlyWhenTypingAfter=3]="GrowsOnlyWhenTypingAfter"})(V||(e.TrackedRangeStickiness=V={}));var U;(function(F){F[F.None=0]="None",F[F.Same=1]="Same",F[F.Indent=2]="Indent",F[F.DeepIndent=3]="DeepIndent"})(U||(e.WrappingIndent=U={}))}),define(ie[523],ne([1,0]),function(Q,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.BracketPairWithMinIndentationInfo=e.BracketPairInfo=e.BracketInfo=void 0;class L{constructor(_,p,S,v){this.range=_,this.nestingLevel=p,this.nestingLevelOfEqualBracketType=S,this.isInvalid=v}}e.BracketInfo=L;class k{constructor(_,p,S,v,b,o){this.range=_,this.openingBracketRange=p,this.closingBracketRange=S,this.nestingLevel=v,this.nestingLevelOfEqualBracketType=b,this.bracketPairNode=o}get openingBracketInfo(){return this.bracketPairNode.openingBracket.bracketInfo}}e.BracketPairInfo=k;class y extends k{constructor(_,p,S,v,b,o,i){super(_,p,S,v,b,o),this.minVisibleColumnIndentation=i}}e.BracketPairWithMinIndentationInfo=y}),define(ie[524],ne([1,0,6,2,523,180,287,89,286,130,209,13,285]),function(Q,e,L,k,y,E,_,p,S,v,b,o,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.BracketPairsTree=void 0;class n extends k.Disposable{didLanguageChange(r){return this.brackets.didLanguageChange(r)}constructor(r,l){if(super(),this.textModel=r,this.getLanguageConfiguration=l,this.didChangeEmitter=new L.Emitter,this.denseKeyProvider=new v.DenseKeyProvider,this.brackets=new _.LanguageAgnosticBracketTokens(this.denseKeyProvider,this.getLanguageConfiguration),this.onDidChange=this.didChangeEmitter.event,this.queuedTextEditsForInitialAstWithoutTokens=[],this.queuedTextEdits=[],r.tokenization.hasTokens)r.tokenization.backgroundTokenizationState===2?(this.initialAstWithoutTokens=void 0,this.astWithTokens=this.parseDocumentFromTextBuffer([],void 0,!1)):(this.initialAstWithoutTokens=this.parseDocumentFromTextBuffer([],void 0,!0),this.astWithTokens=this.initialAstWithoutTokens);else{const s=this.brackets.getSingleLanguageBracketTokens(this.textModel.getLanguageId()),g=new b.FastTokenizer(this.textModel.getValue(),s);this.initialAstWithoutTokens=(0,S.parseDocument)(g,[],void 0,!0),this.astWithTokens=this.initialAstWithoutTokens}}handleDidChangeBackgroundTokenizationState(){if(this.textModel.tokenization.backgroundTokenizationState===2){const r=this.initialAstWithoutTokens===void 0;this.initialAstWithoutTokens=void 0,r||this.didChangeEmitter.fire()}}handleDidChangeTokens({ranges:r}){const l=r.map(s=>new E.TextEditInfo((0,p.toLength)(s.fromLineNumber-1,0),(0,p.toLength)(s.toLineNumber,0),(0,p.toLength)(s.toLineNumber-s.fromLineNumber+1,0)));this.handleEdits(l,!0),this.initialAstWithoutTokens||this.didChangeEmitter.fire()}handleContentChanged(r){const l=E.TextEditInfo.fromModelContentChanges(r.changes);this.handleEdits(l,!1)}handleEdits(r,l){const s=(0,i.combineTextEditInfos)(this.queuedTextEdits,r);this.queuedTextEdits=s,this.initialAstWithoutTokens&&!l&&(this.queuedTextEditsForInitialAstWithoutTokens=(0,i.combineTextEditInfos)(this.queuedTextEditsForInitialAstWithoutTokens,r))}flushQueue(){this.queuedTextEdits.length>0&&(this.astWithTokens=this.parseDocumentFromTextBuffer(this.queuedTextEdits,this.astWithTokens,!1),this.queuedTextEdits=[]),this.queuedTextEditsForInitialAstWithoutTokens.length>0&&(this.initialAstWithoutTokens&&(this.initialAstWithoutTokens=this.parseDocumentFromTextBuffer(this.queuedTextEditsForInitialAstWithoutTokens,this.initialAstWithoutTokens,!1)),this.queuedTextEditsForInitialAstWithoutTokens=[])}parseDocumentFromTextBuffer(r,l,s){const h=l,m=new b.TextBufferTokenizer(this.textModel,this.brackets);return(0,S.parseDocument)(m,r,h,s)}getBracketsInRange(r,l){this.flushQueue();const s=(0,p.toLength)(r.startLineNumber-1,r.startColumn-1),g=(0,p.toLength)(r.endLineNumber-1,r.endColumn-1);return new o.CallbackIterable(h=>{const m=this.initialAstWithoutTokens||this.astWithTokens;u(m,p.lengthZero,m.length,s,g,h,0,0,new Map,l)})}getBracketPairsInRange(r,l){this.flushQueue();const s=(0,p.positionToLength)(r.getStartPosition()),g=(0,p.positionToLength)(r.getEndPosition());return new o.CallbackIterable(h=>{const m=this.initialAstWithoutTokens||this.astWithTokens,C=new f(h,l,this.textModel);c(m,p.lengthZero,m.length,s,g,C,0,new Map)})}getFirstBracketAfter(r){this.flushQueue();const l=this.initialAstWithoutTokens||this.astWithTokens;return a(l,p.lengthZero,l.length,(0,p.positionToLength)(r))}getFirstBracketBefore(r){this.flushQueue();const l=this.initialAstWithoutTokens||this.astWithTokens;return t(l,p.lengthZero,l.length,(0,p.positionToLength)(r))}}e.BracketPairsTree=n;function t(d,r,l,s){if(d.kind===4||d.kind===2){const g=[];for(const h of d.children)l=(0,p.lengthAdd)(r,h.length),g.push({nodeOffsetStart:r,nodeOffsetEnd:l}),r=l;for(let h=g.length-1;h>=0;h--){const{nodeOffsetStart:m,nodeOffsetEnd:C}=g[h];if((0,p.lengthLessThan)(m,s)){const w=t(d.children[h],m,C,s);if(w)return w}}return null}else{if(d.kind===3)return null;if(d.kind===1){const g=(0,p.lengthsToRange)(r,l);return{bracketInfo:d.bracketInfo,range:g}}}return null}function a(d,r,l,s){if(d.kind===4||d.kind===2){for(const g of d.children){if(l=(0,p.lengthAdd)(r,g.length),(0,p.lengthLessThan)(s,l)){const h=a(g,r,l,s);if(h)return h}r=l}return null}else{if(d.kind===3)return null;if(d.kind===1){const g=(0,p.lengthsToRange)(r,l);return{bracketInfo:d.bracketInfo,range:g}}}return null}function u(d,r,l,s,g,h,m,C,w,D,I=!1){if(m>200)return!0;e:for(;;)switch(d.kind){case 4:{const M=d.childrenLength;for(let A=0;A200)return!0;let D=!0;if(d.kind===2){let I=0;if(C){let O=C.get(d.openingBracket.text);O===void 0&&(O=0),I=O,O++,C.set(d.openingBracket.text,O)}const M=(0,p.lengthAdd)(r,d.openingBracket.length);let A=-1;if(h.includeMinIndentation&&(A=d.computeMinIndentation(r,h.textModel)),D=h.push(new y.BracketPairWithMinIndentationInfo((0,p.lengthsToRange)(r,l),(0,p.lengthsToRange)(r,M),d.closingBracket?(0,p.lengthsToRange)((0,p.lengthAdd)(M,((w=d.child)===null||w===void 0?void 0:w.length)||p.lengthZero),l):void 0,m,I,d,A)),r=M,D&&d.child){const O=d.child;if(l=(0,p.lengthAdd)(r,O.length),(0,p.lengthLessThanEqual)(r,g)&&(0,p.lengthGreaterThanEqual)(l,s)&&(D=c(O,r,l,s,g,h,m+1,C),!D))return!1}C?.set(d.openingBracket.text,I)}else{let I=r;for(const M of d.children){const A=I;if(I=(0,p.lengthAdd)(I,M.length),(0,p.lengthLessThanEqual)(A,g)&&(0,p.lengthLessThanEqual)(s,I)&&(D=c(M,A,I,s,g,h,m,C),!D))return!1}}return D}}),define(ie[112],ne([1,0]),function(Q,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.InternalModelContentChangeEvent=e.ModelInjectedTextChangedEvent=e.ModelRawContentChangedEvent=e.ModelRawEOLChanged=e.ModelRawLinesInserted=e.ModelRawLinesDeleted=e.ModelRawLineChanged=e.LineInjectedText=e.ModelRawFlush=void 0;class L{constructor(){this.changeType=1}}e.ModelRawFlush=L;class k{static applyInjectedText(i,n){if(!n||n.length===0)return i;let t="",a=0;for(const u of n)t+=i.substring(a,u.column-1),a=u.column-1,t+=u.options.content;return t+=i.substring(a),t}static fromDecorations(i){const n=[];for(const t of i)t.options.before&&t.options.before.content.length>0&&n.push(new k(t.ownerId,t.range.startLineNumber,t.range.startColumn,t.options.before,0)),t.options.after&&t.options.after.content.length>0&&n.push(new k(t.ownerId,t.range.endLineNumber,t.range.endColumn,t.options.after,1));return n.sort((t,a)=>t.lineNumber===a.lineNumber?t.column===a.column?t.order-a.order:t.column-a.column:t.lineNumber-a.lineNumber),n}constructor(i,n,t,a,u){this.ownerId=i,this.lineNumber=n,this.column=t,this.options=a,this.order=u}}e.LineInjectedText=k;class y{constructor(i,n,t){this.changeType=2,this.lineNumber=i,this.detail=n,this.injectedText=t}}e.ModelRawLineChanged=y;class E{constructor(i,n){this.changeType=3,this.fromLineNumber=i,this.toLineNumber=n}}e.ModelRawLinesDeleted=E;class _{constructor(i,n,t,a){this.changeType=4,this.injectedTexts=a,this.fromLineNumber=i,this.toLineNumber=n,this.detail=t}}e.ModelRawLinesInserted=_;class p{constructor(){this.changeType=5}}e.ModelRawEOLChanged=p;class S{constructor(i,n,t,a){this.changes=i,this.versionId=n,this.isUndoing=t,this.isRedoing=a,this.resultingSelection=null}containsEvent(i){for(let n=0,t=this.changes.length;nu)throw new v.BugIndicatingError("Illegal value for lineNumber");const f=this.getLanguageConfiguration(this.textModel.getLanguageId()).foldingRules,c=!!(f&&f.offSide);let d=-2,r=-1,l=-2,s=-1;const g=P=>{if(d!==-1&&(d===-2||d>P-1)){d=-1,r=-1;for(let x=P-2;x>=0;x--){const R=this._computeIndentLevel(x);if(R>=0){d=x,r=R;break}}}if(l===-2){l=-1,s=-1;for(let x=P;x=0){l=x,s=R;break}}}};let h=-2,m=-1,C=-2,w=-1;const D=P=>{if(h===-2){h=-1,m=-1;for(let x=P-2;x>=0;x--){const R=this._computeIndentLevel(x);if(R>=0){h=x,m=R;break}}}if(C!==-1&&(C===-2||C=0){C=x,w=R;break}}}};let I=0,M=!0,A=0,O=!0,T=0,N=0;for(let P=0;M||O;P++){const x=n-P,R=n+P;P>1&&(x<1||x1&&(R>u||R>a)&&(O=!1),P>5e4&&(M=!1,O=!1);let B=-1;if(M&&x>=1){const V=this._computeIndentLevel(x-1);V>=0?(l=x-1,s=V,B=Math.ceil(V/this.textModel.getOptions().indentSize)):(g(x),B=this._getIndentLevelForWhitespaceLine(c,r,s))}let W=-1;if(O&&R<=u){const V=this._computeIndentLevel(R-1);V>=0?(h=R-1,m=V,W=Math.ceil(V/this.textModel.getOptions().indentSize)):(D(R),W=this._getIndentLevelForWhitespaceLine(c,m,w))}if(P===0){N=B;continue}if(P===1){if(R<=u&&W>=0&&N+1===W){M=!1,I=R,A=R,T=W;continue}if(x>=1&&B>=0&&B-1===N){O=!1,I=x,A=x,T=B;continue}if(I=n,A=n,T=N,T===0)return{startLineNumber:I,endLineNumber:A,indent:T}}M&&(B>=T?I=x:M=!1),O&&(W>=T?A=R:O=!1)}return{startLineNumber:I,endLineNumber:A,indent:T}}getLinesBracketGuides(n,t,a,u){var f;const c=[];for(let h=n;h<=t;h++)c.push([]);const d=!0,r=this.textModel.bracketPairs.getBracketPairsInRangeWithMinIndentation(new E.Range(n,1,t,this.textModel.getLineMaxColumn(t))).toArray();let l;if(a&&r.length>0){const h=(n<=a.lineNumber&&a.lineNumber<=t?r:this.textModel.bracketPairs.getBracketPairsInRange(E.Range.fromPositions(a)).toArray()).filter(m=>E.Range.strictContainsPosition(m.range,a));l=(f=(0,L.findLast)(h,m=>d||m.range.startLineNumber!==m.range.endLineNumber))===null||f===void 0?void 0:f.range}const s=this.textModel.getOptions().bracketPairColorizationOptions.independentColorPoolPerBracketType,g=new o;for(const h of r){if(!h.closingBracketRange)continue;const m=l&&h.range.equalsRange(l);if(!m&&!u.includeInactive)continue;const C=g.getInlineClassName(h.nestingLevel,h.nestingLevelOfEqualBracketType,s)+(u.highlightActive&&m?" "+g.activeClassName:""),w=h.openingBracketRange.getStartPosition(),D=h.closingBracketRange.getStartPosition(),I=u.horizontalGuides===S.HorizontalGuidesState.Enabled||u.horizontalGuides===S.HorizontalGuidesState.EnabledForActive&&m;if(h.range.startLineNumber===h.range.endLineNumber){d&&I&&c[h.range.startLineNumber-n].push(new S.IndentGuide(-1,h.openingBracketRange.getEndPosition().column,C,new S.IndentGuideHorizontalLine(!1,D.column),-1,-1));continue}const M=this.getVisibleColumnFromPosition(D),A=this.getVisibleColumnFromPosition(h.openingBracketRange.getStartPosition()),O=Math.min(A,M,h.minVisibleColumnIndentation+1);let T=!1;k.firstNonWhitespaceIndex(this.textModel.getLineContent(h.closingBracketRange.startLineNumber))=n&&A>O&&c[w.lineNumber-n].push(new S.IndentGuide(O,-1,C,new S.IndentGuideHorizontalLine(!1,w.column),-1,-1)),D.lineNumber<=t&&M>O&&c[D.lineNumber-n].push(new S.IndentGuide(O,-1,C,new S.IndentGuideHorizontalLine(!T,D.column),-1,-1)))}for(const h of c)h.sort((m,C)=>m.visibleColumn-C.visibleColumn);return c}getVisibleColumnFromPosition(n){return y.CursorColumns.visibleColumnFromColumn(this.textModel.getLineContent(n.lineNumber),n.column,this.textModel.getOptions().tabSize)+1}getLinesIndentGuides(n,t){this.assertNotDisposed();const a=this.textModel.getLineCount();if(n<1||n>a)throw new Error("Illegal value for startLineNumber");if(t<1||t>a)throw new Error("Illegal value for endLineNumber");const u=this.textModel.getOptions(),f=this.getLanguageConfiguration(this.textModel.getLanguageId()).foldingRules,c=!!(f&&f.offSide),d=new Array(t-n+1);let r=-2,l=-1,s=-2,g=-1;for(let h=n;h<=t;h++){const m=h-n,C=this._computeIndentLevel(h-1);if(C>=0){r=h-1,l=C,d[m]=Math.ceil(C/u.indentSize);continue}if(r===-2){r=-1,l=-1;for(let w=h-2;w>=0;w--){const D=this._computeIndentLevel(w);if(D>=0){r=w,l=D;break}}}if(s!==-1&&(s===-2||s=0){s=w,g=D;break}}}d[m]=this._getIndentLevelForWhitespaceLine(c,l,g)}return d}_getIndentLevelForWhitespaceLine(n,t,a){const u=this.textModel.getOptions();return t===-1||a===-1?0:t{this._tokenizationSupports.get(p)===S&&(this._tokenizationSupports.delete(p),this.handleChange([p]))})}get(p){return this._tokenizationSupports.get(p)||null}registerFactory(p,S){var v;(v=this._factories.get(p))===null||v===void 0||v.dispose();const b=new E(this,p,S);return this._factories.set(p,b),(0,k.toDisposable)(()=>{const o=this._factories.get(p);!o||o!==b||(this._factories.delete(p),o.dispose())})}async getOrCreate(p){const S=this.get(p);if(S)return S;const v=this._factories.get(p);return!v||v.isResolved?null:(await v.resolve(),this.get(p))}isResolved(p){if(this.get(p))return!0;const v=this._factories.get(p);return!!(!v||v.isResolved)}setColorMap(p){this._colorMap=p,this._onDidChange.fire({changedLanguages:Array.from(this._tokenizationSupports.keys()),changedColorMap:!0})}getColorMap(){return this._colorMap}getDefaultBackground(){return this._colorMap&&this._colorMap.length>2?this._colorMap[2]:null}}e.TokenizationRegistry=y;class E extends k.Disposable{get isResolved(){return this._isResolved}constructor(p,S,v){super(),this._registry=p,this._languageId=S,this._factory=v,this._isDisposed=!1,this._resolvePromise=null,this._isResolved=!1}dispose(){this._isDisposed=!0,super.dispose()}async resolve(){return this._resolvePromise||(this._resolvePromise=this._create()),this._resolvePromise}async _create(){const p=await this._factory.tokenizationSupport;this._isResolved=!0,p&&!this._isDisposed&&this._register(this._registry.register(this._languageId,p))}}}),define(ie[526],ne([1,0]),function(Q,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ContiguousMultilineTokens=void 0;class L{get startLineNumber(){return this._startLineNumber}get endLineNumber(){return this._startLineNumber+this._tokens.length-1}constructor(y,E){this._startLineNumber=y,this._tokens=E}getLineTokens(y){return this._tokens[y-this._startLineNumber]}appendLineTokens(y){this._tokens.push(y)}}e.ContiguousMultilineTokens=L}),define(ie[295],ne([1,0,526]),function(Q,e,L){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ContiguousMultilineTokensBuilder=void 0;class k{constructor(){this._tokens=[]}add(E,_){if(this._tokens.length>0){const p=this._tokens[this._tokens.length-1];if(p.endLineNumber+1===E){p.appendLineTokens(_);return}}this._tokens.push(new L.ContiguousMultilineTokens(E,[_]))}finalize(){return this._tokens}}e.ContiguousMultilineTokensBuilder=k}),define(ie[93],ne([1,0,128]),function(Q,e,L){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.LineTokens=void 0;class k{static createEmpty(_,p){const S=k.defaultTokenMetadata,v=new Uint32Array(2);return v[0]=_.length,v[1]=S,new k(v,_,p)}constructor(_,p,S){this._lineTokensBrand=void 0,this._tokens=_,this._tokensCount=this._tokens.length>>>1,this._text=p,this._languageIdCodec=S}equals(_){return _ instanceof k?this.slicedEquals(_,0,this._tokensCount):!1}slicedEquals(_,p,S){if(this._text!==_._text||this._tokensCount!==_._tokensCount)return!1;const v=p<<1,b=v+(S<<1);for(let o=v;o0?this._tokens[_-1<<1]:0}getMetadata(_){return this._tokens[(_<<1)+1]}getLanguageId(_){const p=this._tokens[(_<<1)+1],S=L.TokenMetadata.getLanguageId(p);return this._languageIdCodec.decodeLanguageId(S)}getStandardTokenType(_){const p=this._tokens[(_<<1)+1];return L.TokenMetadata.getTokenType(p)}getForeground(_){const p=this._tokens[(_<<1)+1];return L.TokenMetadata.getForeground(p)}getClassName(_){const p=this._tokens[(_<<1)+1];return L.TokenMetadata.getClassNameFromMetadata(p)}getInlineStyle(_,p){const S=this._tokens[(_<<1)+1];return L.TokenMetadata.getInlineStyleFromMetadata(S,p)}getPresentation(_){const p=this._tokens[(_<<1)+1];return L.TokenMetadata.getPresentationFromMetadata(p)}getEndOffset(_){return this._tokens[_<<1]}findTokenIndexAtOffset(_){return k.findIndexInTokensArray(this._tokens,_)}inflate(){return this}sliceAndInflate(_,p,S){return new y(this,_,p,S)}static convertToEndOffset(_,p){const v=(_.length>>>1)-1;for(let b=0;b>>1)-1;for(;Sp&&(v=b)}return S}withInserted(_){if(_.length===0)return this;let p=0,S=0,v="";const b=new Array;let o=0;for(;;){const i=po){v+=this._text.substring(o,n.offset);const t=this._tokens[(p<<1)+1];b.push(v.length,t),o=n.offset}v+=n.text,b.push(v.length,n.tokenMetadata),S++}else break}return new k(new Uint32Array(b),v,this._languageIdCodec)}}e.LineTokens=k,k.defaultTokenMetadata=(0<<11|1<<15|2<<24)>>>0;class y{constructor(_,p,S,v){this._source=_,this._startOffset=p,this._endOffset=S,this._deltaOffset=v,this._firstTokenIndex=_.findTokenIndexAtOffset(p),this._tokensCount=0;for(let b=this._firstTokenIndex,o=_.getCount();b=S);b++)this._tokensCount++}getMetadata(_){return this._source.getMetadata(this._firstTokenIndex+_)}getLanguageId(_){return this._source.getLanguageId(this._firstTokenIndex+_)}getLineContent(){return this._source.getLineContent().substring(this._startOffset,this._endOffset)}equals(_){return _ instanceof y?this._startOffset===_._startOffset&&this._endOffset===_._endOffset&&this._deltaOffset===_._deltaOffset&&this._source.slicedEquals(_._source,this._firstTokenIndex,this._tokensCount):!1}getCount(){return this._tokensCount}getForeground(_){return this._source.getForeground(this._firstTokenIndex+_)}getEndOffset(_){const p=this._source.getEndOffset(this._firstTokenIndex+_);return Math.min(this._endOffset,p)-this._startOffset+this._deltaOffset}getClassName(_){return this._source.getClassName(this._firstTokenIndex+_)}getInlineStyle(_,p){return this._source.getInlineStyle(this._firstTokenIndex+_,p)}getPresentation(_){return this._source.getPresentation(this._firstTokenIndex+_)}findTokenIndexAtOffset(_){return this._source.findTokenIndexAtOffset(_+this._startOffset-this._deltaOffset)-this._firstTokenIndex}}}),define(ie[527],ne([1,0,93]),function(Q,e,L){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.toUint32Array=e.ContiguousTokensEditing=e.EMPTY_LINE_TOKENS=void 0,e.EMPTY_LINE_TOKENS=new Uint32Array(0).buffer;class k{static deleteBeginning(_,p){return _===null||_===e.EMPTY_LINE_TOKENS?_:k.delete(_,0,p)}static deleteEnding(_,p){if(_===null||_===e.EMPTY_LINE_TOKENS)return _;const S=y(_),v=S[S.length-2];return k.delete(_,p,v)}static delete(_,p,S){if(_===null||_===e.EMPTY_LINE_TOKENS||p===S)return _;const v=y(_),b=v.length>>>1;if(p===0&&v[v.length-2]===S)return e.EMPTY_LINE_TOKENS;const o=L.LineTokens.findIndexInTokensArray(v,p),i=o>0?v[o-1<<1]:0,n=v[o<<1];if(Sa&&(v[t++]=d,v[t++]=v[(c<<1)+1],a=d)}if(t===v.length)return _;const f=new Uint32Array(t);return f.set(v.subarray(0,t),0),f.buffer}static append(_,p){if(p===e.EMPTY_LINE_TOKENS)return _;if(_===e.EMPTY_LINE_TOKENS)return p;if(_===null)return _;if(p===null)return null;const S=y(_),v=y(p),b=v.length>>>1,o=new Uint32Array(S.length+v.length);o.set(S,0);let i=S.length;const n=S[S.length-2];for(let t=0;t>>1;let o=L.LineTokens.findIndexInTokensArray(v,p);o>0&&v[o-1<<1]===p&&o--;for(let i=o;i0}getTokens(b,o,i){let n=null;if(o1&&(t=_.TokenMetadata.getLanguageId(n[1])!==b),!t)return y.EMPTY_LINE_TOKENS}if(!n||n.length===0){const t=new Uint32Array(2);return t[0]=o,t[1]=S(b),t.buffer}return n[n.length-2]=o,n.byteOffset===0&&n.byteLength===n.buffer.byteLength?n.buffer:n}_ensureLine(b){for(;b>=this._len;)this._lineTokens[this._len]=null,this._len++}_deleteLines(b,o){o!==0&&(b+o>this._len&&(o=this._len-b),this._lineTokens.splice(b,o),this._len-=o)}_insertLines(b,o){if(o===0)return;const i=[];for(let n=0;n=this._len)return;if(b.startLineNumber===b.endLineNumber){if(b.startColumn===b.endColumn)return;this._lineTokens[o]=y.ContiguousTokensEditing.delete(this._lineTokens[o],b.startColumn-1,b.endColumn-1);return}this._lineTokens[o]=y.ContiguousTokensEditing.deleteEnding(this._lineTokens[o],b.startColumn-1);const i=b.endLineNumber-1;let n=null;i=this._len)){if(o===0){this._lineTokens[n]=y.ContiguousTokensEditing.insert(this._lineTokens[n],b.column-1,i);return}this._lineTokens[n]=y.ContiguousTokensEditing.deleteEnding(this._lineTokens[n],b.column-1),this._lineTokens[n]=y.ContiguousTokensEditing.insert(this._lineTokens[n],b.column-1,i),this._insertLines(b.lineNumber,o)}}setMultilineTokens(b,o){if(b.length===0)return{changes:[]};const i=[];for(let n=0,t=b.length;n>>0}}),define(ie[529],ne([1,0,11,5,126]),function(Q,e,L,k,y){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.SparseLineTokens=e.SparseMultilineTokens=void 0;class E{static create(v,b){return new E(v,new _(b))}get startLineNumber(){return this._startLineNumber}get endLineNumber(){return this._endLineNumber}constructor(v,b){this._startLineNumber=v,this._tokens=b,this._endLineNumber=this._startLineNumber+this._tokens.getMaxDeltaLine()}toString(){return this._tokens.toString(this._startLineNumber)}_updateEndLineNumber(){this._endLineNumber=this._startLineNumber+this._tokens.getMaxDeltaLine()}isEmpty(){return this._tokens.isEmpty()}getLineTokens(v){return this._startLineNumber<=v&&v<=this._endLineNumber?this._tokens.getLineTokens(v-this._startLineNumber):null}getRange(){const v=this._tokens.getRange();return v&&new k.Range(this._startLineNumber+v.startLineNumber,v.startColumn,this._startLineNumber+v.endLineNumber,v.endColumn)}removeTokens(v){const b=v.startLineNumber-this._startLineNumber,o=v.endLineNumber-this._startLineNumber;this._startLineNumber+=this._tokens.removeTokens(b,v.startColumn-1,o,v.endColumn-1),this._updateEndLineNumber()}split(v){const b=v.startLineNumber-this._startLineNumber,o=v.endLineNumber-this._startLineNumber,[i,n,t]=this._tokens.split(b,v.startColumn-1,o,v.endColumn-1);return[new E(this._startLineNumber,i),new E(this._startLineNumber+t,n)]}applyEdit(v,b){const[o,i,n]=(0,y.countEOL)(b);this.acceptEdit(v,o,i,n,b.length>0?b.charCodeAt(0):0)}acceptEdit(v,b,o,i,n){this._acceptDeleteRange(v),this._acceptInsertText(new L.Position(v.startLineNumber,v.startColumn),b,o,i,n),this._updateEndLineNumber()}_acceptDeleteRange(v){if(v.startLineNumber===v.endLineNumber&&v.startColumn===v.endColumn)return;const b=v.startLineNumber-this._startLineNumber,o=v.endLineNumber-this._startLineNumber;if(o<0){const n=o-b;this._startLineNumber-=n;return}const i=this._tokens.getMaxDeltaLine();if(!(b>=i+1)){if(b<0&&o>=i+1){this._startLineNumber=0,this._tokens.clear();return}if(b<0){const n=-b;this._startLineNumber-=n,this._tokens.acceptDeleteRange(v.startColumn-1,0,0,o,v.endColumn-1)}else this._tokens.acceptDeleteRange(0,b,v.startColumn-1,o,v.endColumn-1)}}_acceptInsertText(v,b,o,i,n){if(b===0&&o===0)return;const t=v.lineNumber-this._startLineNumber;if(t<0){this._startLineNumber+=b;return}const a=this._tokens.getMaxDeltaLine();t>=a+1||this._tokens.acceptInsertText(t,v.column-1,b,o,i,n)}}e.SparseMultilineTokens=E;class _{constructor(v){this._tokens=v,this._tokenCount=v.length/4}toString(v){const b=[];for(let o=0;ov)o=i-1;else{let t=i;for(;t>b&&this._getDeltaLine(t-1)===v;)t--;let a=i;for(;av||r===v&&s>=b)&&(rv||s===v&&h>=b){if(s