text: /*!-----------------------------------------------------------------------------
   * Copyright (c) Microsoft Corporation. All rights reserved.
   * monaco-json version: 2.7.0(undefined)
   * Released under the MIT license
   * https://github.com/Microsoft/monaco-json/blob/master/LICENSE.md
   *-----------------------------------------------------------------------------*/
  define("vs/language/yaml/workerManager",["require","exports"],(function(e,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var t=function(){function e(e){var n=this;this._defaults=e,this._worker=null,this._idleCheckInterval=setInterval((function(){return n._checkIfIdle()}),3e4),this._lastUsedTime=0,this._configChangeListener=this._defaults.onDidChange((function(){return n._stopWorker()}))}return e.prototype._stopWorker=function(){this._worker&&(this._worker.dispose(),this._worker=null),this._client=null},e.prototype.dispose=function(){clearInterval(this._idleCheckInterval),this._configChangeListener.dispose(),this._stopWorker()},e.prototype._checkIfIdle=function(){this._worker&&(Date.now()-this._lastUsedTime>12e4&&this._stopWorker())},e.prototype._getClient=function(){return this._lastUsedTime=Date.now(),this._client||(this._worker=monaco.editor.createWebWorker({moduleId:"vs/language/yaml/yamlWorker",label:this._defaults.languageId,createData:{languageSettings:this._defaults.diagnosticsOptions,languageId:this._defaults.languageId,enableSchemaRequest:this._defaults.diagnosticsOptions.enableSchemaRequest}}),this._client=this._worker.getProxy()),this._client},e.prototype.getLanguageServiceWorker=function(){for(var e,n=this,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return this._getClient().then((function(n){e=n})).then((function(e){return n._worker.withSyncedResources(t)})).then((function(n){return e}))},e}();n.WorkerManager=t})),function(e){if("object"==typeof module&&"object"==typeof module.exports){var n=e(require,exports);void 0!==n&&(module.exports=n)}else"function"==typeof define&&define.amd&&define("vscode-languageserver-types/main",["require","exports"],e)}((function(e,n){"use strict";var t,r,i,o,a,u,s,c,d,l,f,g,m;Object.defineProperty(n,"__esModule",{value:!0}),function(e){e.create=function(e,n){return{line:e,character:n}},e.is=function(e){var n=e;return I.objectLiteral(n)&&I.number(n.line)&&I.number(n.character)}}(t=n.Position||(n.Position={})),function(e){e.create=function(e,n,r,i){if(I.number(e)&&I.number(n)&&I.number(r)&&I.number(i))return{start:t.create(e,n),end:t.create(r,i)};if(t.is(e)&&t.is(n))return{start:e,end:n};throw new Error("Range#create called with invalid arguments["+e+", "+n+", "+r+", "+i+"]")},e.is=function(e){var n=e;return I.objectLiteral(n)&&t.is(n.start)&&t.is(n.end)}}(r=n.Range||(n.Range={})),function(e){e.create=function(e,n){return{uri:e,range:n}},e.is=function(e){var n=e;return I.defined(n)&&r.is(n.range)&&(I.string(n.uri)||I.undefined(n.uri))}}(i=n.Location||(n.Location={})),function(e){e.create=function(e,n,t,r){return{targetUri:e,targetRange:n,targetSelectionRange:t,originSelectionRange:r}},e.is=function(e){var n=e;return I.defined(n)&&r.is(n.targetRange)&&I.string(n.targetUri)&&(r.is(n.targetSelectionRange)||I.undefined(n.targetSelectionRange))&&(r.is(n.originSelectionRange)||I.undefined(n.originSelectionRange))}}(n.LocationLink||(n.LocationLink={})),function(e){e.create=function(e,n,t,r){return{red:e,green:n,blue:t,alpha:r}},e.is=function(e){var n=e;return I.number(n.red)&&I.number(n.green)&&I.number(n.blue)&&I.number(n.alpha)}}(o=n.Color||(n.Color={})),function(e){e.create=function(e,n){return{range:e,color:n}},e.is=function(e){var n=e;return r.is(n.range)&&o.is(n.color)}}(n.ColorInformation||(n.ColorInformation={})),function(e){e.create=function(e,n,t){return{label:e,textEdit:n,additionalTextEdits:t}},e.is=function(e){var n=e;return I.string(n.label)&&(I.undefined(n.textEdit)||c.is(n))&&(I.undefined(n.additionalTextEdits)||I.typedArray(n.additionalTextEdits,c.is))}}(n.ColorPresentation||(n.ColorPresentation={})),function(e){e.Comment="comment",e.Imports="imports",e.Region="region"}(n.FoldingRangeKind||(n.FoldingRangeKind={})),function(e){e.create=function(e,n,t,r,i){var o={startLine:e,endLine:n};return I.defined(t)&&(o.startCharacter=t),I.defined(r)&&(o.endCharacter=r),I.defined(i)&&(o.kind=i),o},e.is=function(e){var n=e;return I.number(n.startLine)&&I.number(n.startLine)&&(I.undefined(n.startCharacter)||I.number(n.startCharacter))&&(I.undefined(n.endCharacter)||I.number(n.endCharacter))&&(I.undefined(n.kind)||I.string(n.kind))}}(n.FoldingRange||(n.FoldingRange={})),function(e){e.create=function(e,n){return{location:e,message:n}},e.is=function(e){var n=e;return I.defined(n)&&i.is(n.location)&&I.string(n.message)}}(a=n.DiagnosticRelatedInformation||(n.DiagnosticRelatedInformation={})),function(e){e.Error=1,e.Warning=2,e.Information=3,e.Hint=4}(n.DiagnosticSeverity||(n.DiagnosticSeverity={})),function(e){e.create=function(e,n,t,r,i,o){var a={range:e,message:n};return I.defined(t)&&(a.severity=t),I.defined(r)&&(a.code=r),I.defined(i)&&(a.source=i),I.defined(o)&&(a.relatedInformation=o),a},e.is=function(e){var n=e;return I.defined(n)&&r.is(n.range)&&I.string(n.message)&&(I.number(n.severity)||I.undefined(n.severity))&&(I.number(n.code)||I.string(n.code)||I.undefined(n.code))&&(I.string(n.source)||I.undefined(n.source))&&(I.undefined(n.relatedInformation)||I.typedArray(n.relatedInformation,a.is))}}(u=n.Diagnostic||(n.Diagnostic={})),function(e){e.create=function(e,n){for(var t=[],r=2;r<arguments.length;r++)t[r-2]=arguments[r];var i={title:e,command:n};return I.defined(t)&&t.length>0&&(i.arguments=t),i},e.is=function(e){var n=e;return I.defined(n)&&I.string(n.title)&&I.string(n.command)}}(s=n.Command||(n.Command={})),function(e){e.replace=function(e,n){return{range:e,newText:n}},e.insert=function(e,n){return{range:{start:e,end:e},newText:n}},e.del=function(e){return{range:e,newText:""}},e.is=function(e){var n=e;return I.objectLiteral(n)&&I.string(n.newText)&&r.is(n.range)}}(c=n.TextEdit||(n.TextEdit={})),function(e){e.create=function(e,n){return{textDocument:e,edits:n}},e.is=function(e){var n=e;return I.defined(n)&&p.is(n.textDocument)&&Array.isArray(n.edits)}}(d=n.TextDocumentEdit||(n.TextDocumentEdit={})),function(e){e.create=function(e,n){var t={kind:"create",uri:e};return void 0===n||void 0===n.overwrite&&void 0===n.ignoreIfExists||(t.options=n),t},e.is=function(e){var n=e;return n&&"create"===n.kind&&I.string(n.uri)&&(void 0===n.options||(void 0===n.options.overwrite||I.boolean(n.options.overwrite))&&(void 0===n.options.ignoreIfExists||I.boolean(n.options.ignoreIfExists)))}}(l=n.CreateFile||(n.CreateFile={})),function(e){e.create=function(e,n,t){var r={kind:"rename",oldUri:e,newUri:n};return void 0===t||void 0===t.overwrite&&void 0===t.ignoreIfExists||(r.options=t),r},e.is=function(e){var n=e;return n&&"rename"===n.kind&&I.string(n.oldUri)&&I.string(n.newUri)&&(void 0===n.options||(void 0===n.options.overwrite||I.boolean(n.options.overwrite))&&(void 0===n.options.ignoreIfExists||I.boolean(n.options.ignoreIfExists)))}}(f=n.RenameFile||(n.RenameFile={})),function(e){e.create=function(e,n){var t={kind:"delete",uri:e};return void 0===n||void 0===n.recursive&&void 0===n.ignoreIfNotExists||(t.options=n),t},e.is=function(e){var n=e;return n&&"delete"===n.kind&&I.string(n.uri)&&(void 0===n.options||(void 0===n.options.recursive||I.boolean(n.options.recursive))&&(void 0===n.options.ignoreIfNotExists||I.boolean(n.options.ignoreIfNotExists)))}}(g=n.DeleteFile||(n.DeleteFile={})),function(e){e.is=function(e){var n=e;return n&&(void 0!==n.changes||void 0!==n.documentChanges)&&(void 0===n.documentChanges||n.documentChanges.every((function(e){return I.string(e.kind)?l.is(e)||f.is(e)||g.is(e):d.is(e)})))}}(m=n.WorkspaceEdit||(n.WorkspaceEdit={}));var p,h,v,y,b=function(){function e(e){this.edits=e}return e.prototype.insert=function(e,n){this.edits.push(c.insert(e,n))},e.prototype.replace=function(e,n){this.edits.push(c.replace(e,n))},e.prototype.delete=function(e){this.edits.push(c.del(e))},e.prototype.add=function(e){this.edits.push(e)},e.prototype.all=function(){return this.edits},e.prototype.clear=function(){this.edits.splice(0,this.edits.length)},e}(),C=function(){function e(e){var n=this;this._textEditChanges=Object.create(null),e&&(this._workspaceEdit=e,e.documentChanges?e.documentChanges.forEach((function(e){if(d.is(e)){var t=new b(e.edits);n._textEditChanges[e.textDocument.uri]=t}})):e.changes&&Object.keys(e.changes).forEach((function(t){var r=new b(e.changes[t]);n._textEditChanges[t]=r})))}return Object.defineProperty(e.prototype,"edit",{get:function(){return this._workspaceEdit},enumerable:!0,configurable:!0}),e.prototype.getTextEditChange=function(e){if(p.is(e)){if(this._workspaceEdit||(this._workspaceEdit={documentChanges:[]}),!this._workspaceEdit.documentChanges)throw new Error("Workspace edit is not configured for document changes.");var n=e;if(!(r=this._textEditChanges[n.uri])){var t={textDocument:n,edits:i=[]};this._workspaceEdit.documentChanges.push(t),r=new b(i),this._textEditChanges[n.uri]=r}return r}if(this._workspaceEdit||(this._workspaceEdit={changes:Object.create(null)}),!this._workspaceEdit.changes)throw new Error("Workspace edit is not configured for normal text edit changes.");var r;if(!(r=this._textEditChanges[e])){var i=[];this._workspaceEdit.changes[e]=i,r=new b(i),this._textEditChanges[e]=r}return r},e.prototype.createFile=function(e,n){this.checkDocumentChanges(),this._workspaceEdit.documentChanges.push(l.create(e,n))},e.prototype.renameFile=function(e,n,t){this.checkDocumentChanges(),this._workspaceEdit.documentChanges.push(f.create(e,n,t))},e.prototype.deleteFile=function(e,n){this.checkDocumentChanges(),this._workspaceEdit.documentChanges.push(g.create(e,n))},e.prototype.checkDocumentChanges=function(){if(!this._workspaceEdit||!this._workspaceEdit.documentChanges)throw new Error("Workspace edit is not configured for document changes.")},e}();n.WorkspaceChange=C,function(e){e.create=function(e){return{uri:e}},e.is=function(e){var n=e;return I.defined(n)&&I.string(n.uri)}}(n.TextDocumentIdentifier||(n.TextDocumentIdentifier={})),function(e){e.create=function(e,n){return{uri:e,version:n}},e.is=function(e){var n=e;return I.defined(n)&&I.string(n.uri)&&(null===n.version||I.number(n.version))}}(p=n.VersionedTextDocumentIdentifier||(n.VersionedTextDocumentIdentifier={})),function(e){e.create=function(e,n,t,r){return{uri:e,languageId:n,version:t,text:r}},e.is=function(e){var n=e;return I.defined(n)&&I.string(n.uri)&&I.string(n.languageId)&&I.number(n.version)&&I.string(n.text)}}(n.TextDocumentItem||(n.TextDocumentItem={})),function(e){e.PlainText="plaintext",e.Markdown="markdown"}(h=n.MarkupKind||(n.MarkupKind={})),function(e){e.is=function(n){var t=n;return t===e.PlainText||t===e.Markdown}}(h=n.MarkupKind||(n.MarkupKind={})),function(e){e.is=function(e){var n=e;return I.objectLiteral(e)&&h.is(n.kind)&&I.string(n.value)}}(v=n.MarkupContent||(n.MarkupContent={})),function(e){e.Text=1,e.Method=2,e.Function=3,e.Constructor=4,e.Field=5,e.Variable=6,e.Class=7,e.Interface=8,e.Module=9,e.Property=10,e.Unit=11,e.Value=12,e.Enum=13,e.Keyword=14,e.Snippet=15,e.Color=16,e.File=17,e.Reference=18,e.Folder=19,e.EnumMember=20,e.Constant=21,e.Struct=22,e.Event=23,e.Operator=24,e.TypeParameter=25}(n.CompletionItemKind||(n.CompletionItemKind={})),function(e){e.PlainText=1,e.Snippet=2}(n.InsertTextFormat||(n.InsertTextFormat={})),function(e){e.create=function(e){return{label:e}}}(n.CompletionItem||(n.CompletionItem={})),function(e){e.create=function(e,n){return{items:e||[],isIncomplete:!!n}}}(n.CompletionList||(n.CompletionList={})),function(e){e.fromPlainText=function(e){return e.replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&")},e.is=function(e){var n=e;return I.string(n)||I.objectLiteral(n)&&I.string(n.language)&&I.string(n.value)}}(y=n.MarkedString||(n.MarkedString={})),function(e){e.is=function(e){var n=e;return!!n&&I.objectLiteral(n)&&(v.is(n.contents)||y.is(n.contents)||I.typedArray(n.contents,y.is))&&(void 0===e.range||r.is(e.range))}}(n.Hover||(n.Hover={})),function(e){e.create=function(e,n){return n?{label:e,documentation:n}:{label:e}}}(n.ParameterInformation||(n.ParameterInformation={})),function(e){e.create=function(e,n){for(var t=[],r=2;r<arguments.length;r++)t[r-2]=arguments[r];var i={label:e};return I.defined(n)&&(i.documentation=n),I.defined(t)?i.parameters=t:i.parameters=[],i}}(n.SignatureInformation||(n.SignatureInformation={})),function(e){e.Text=1,e.Read=2,e.Write=3}(n.DocumentHighlightKind||(n.DocumentHighlightKind={})),function(e){e.create=function(e,n){var t={range:e};return I.number(n)&&(t.kind=n),t}}(n.DocumentHighlight||(n.DocumentHighlight={})),function(e){e.File=1,e.Module=2,e.Namespace=3,e.Package=4,e.Class=5,e.Method=6,e.Property=7,e.Field=8,e.Constructor=9,e.Enum=10,e.Interface=11,e.Function=12,e.Variable=13,e.Constant=14,e.String=15,e.Number=16,e.Boolean=17,e.Array=18,e.Object=19,e.Key=20,e.Null=21,e.EnumMember=22,e.Struct=23,e.Event=24,e.Operator=25,e.TypeParameter=26}(n.SymbolKind||(n.SymbolKind={})),function(e){e.create=function(e,n,t,r,i){var o={name:e,kind:n,location:{uri:r,range:t}};return i&&(o.containerName=i),o}}(n.SymbolInformation||(n.SymbolInformation={}));var _=function(){};n.DocumentSymbol=_,function(e){e.create=function(e,n,t,r,i,o){var a={name:e,detail:n,kind:t,range:r,selectionRange:i};return void 0!==o&&(a.children=o),a},e.is=function(e){var n=e;return n&&I.string(n.name)&&I.number(n.kind)&&r.is(n.range)&&r.is(n.selectionRange)&&(void 0===n.detail||I.string(n.detail))&&(void 0===n.deprecated||I.boolean(n.deprecated))&&(void 0===n.children||Array.isArray(n.children))}}(_=n.DocumentSymbol||(n.DocumentSymbol={})),n.DocumentSymbol=_,function(e){e.QuickFix="quickfix",e.Refactor="refactor",e.RefactorExtract="refactor.extract",e.RefactorInline="refactor.inline",e.RefactorRewrite="refactor.rewrite",e.Source="source",e.SourceOrganizeImports="source.organizeImports"}(n.CodeActionKind||(n.CodeActionKind={})),function(e){e.create=function(e,n){var t={diagnostics:e};return null!=n&&(t.only=n),t},e.is=function(e){var n=e;return I.defined(n)&&I.typedArray(n.diagnostics,u.is)&&(void 0===n.only||I.typedArray(n.only,I.string))}}(n.CodeActionContext||(n.CodeActionContext={})),function(e){e.create=function(e,n,t){var r={title:e};return s.is(n)?r.command=n:r.edit=n,void 0!==t&&(r.kind=t),r},e.is=function(e){var n=e;return n&&I.string(n.title)&&(void 0===n.diagnostics||I.typedArray(n.diagnostics,u.is))&&(void 0===n.kind||I.string(n.kind))&&(void 0!==n.edit||void 0!==n.command)&&(void 0===n.command||s.is(n.command))&&(void 0===n.edit||m.is(n.edit))}}(n.CodeAction||(n.CodeAction={})),function(e){e.create=function(e,n){var t={range:e};return I.defined(n)&&(t.data=n),t},e.is=function(e){var n=e;return I.defined(n)&&r.is(n.range)&&(I.undefined(n.command)||s.is(n.command))}}(n.CodeLens||(n.CodeLens={})),function(e){e.create=function(e,n){return{tabSize:e,insertSpaces:n}},e.is=function(e){var n=e;return I.defined(n)&&I.number(n.tabSize)&&I.boolean(n.insertSpaces)}}(n.FormattingOptions||(n.FormattingOptions={}));var k=function(){};n.DocumentLink=k,function(e){e.create=function(e,n,t){return{range:e,target:n,data:t}},e.is=function(e){var n=e;return I.defined(n)&&r.is(n.range)&&(I.undefined(n.target)||I.string(n.target))}}(k=n.DocumentLink||(n.DocumentLink={})),n.DocumentLink=k,n.EOL=["\n","\r\n","\r"],function(e){e.create=function(e,n,t,r){return new x(e,n,t,r)},e.is=function(e){var n=e;return!!(I.defined(n)&&I.string(n.uri)&&(I.undefined(n.languageId)||I.string(n.languageId))&&I.number(n.lineCount)&&I.func(n.getText)&&I.func(n.positionAt)&&I.func(n.offsetAt))},e.applyEdits=function(e,n){for(var t=e.getText(),r=function e(n,t){if(n.length<=1)return n;var r=n.length/2|0;var i=n.slice(0,r);var o=n.slice(r);e(i,t);e(o,t);var a=0;var u=0;var s=0;for(;a<i.length&&u<o.length;){var c=t(i[a],o[u]);n[s++]=c<=0?i[a++]:o[u++]}for(;a<i.length;)n[s++]=i[a++];for(;u<o.length;)n[s++]=o[u++];return n}(n,(function(e,n){var t=e.range.start.line-n.range.start.line;return 0===t?e.range.start.character-n.range.start.character:t})),i=t.length,o=r.length-1;o>=0;o--){var a=r[o],u=e.offsetAt(a.range.start),s=e.offsetAt(a.range.end);if(!(s<=i))throw new Error("Overlapping edit");t=t.substring(0,u)+a.newText+t.substring(s,t.length),i=u}return t}}(n.TextDocument||(n.TextDocument={})),function(e){e.Manual=1,e.AfterDelay=2,e.FocusOut=3}(n.TextDocumentSaveReason||(n.TextDocumentSaveReason={}));var I,x=function(){function e(e,n,t,r){this._uri=e,this._languageId=n,this._version=t,this._content=r,this._lineOffsets=null}return Object.defineProperty(e.prototype,"uri",{get:function(){return this._uri},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"languageId",{get:function(){return this._languageId},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"version",{get:function(){return this._version},enumerable:!0,configurable:!0}),e.prototype.getText=function(e){if(e){var n=this.offsetAt(e.start),t=this.offsetAt(e.end);return this._content.substring(n,t)}return this._content},e.prototype.update=function(e,n){this._content=e.text,this._version=n,this._lineOffsets=null},e.prototype.getLineOffsets=function(){if(null===this._lineOffsets){for(var e=[],n=this._content,t=!0,r=0;r<n.length;r++){t&&(e.push(r),t=!1);var i=n.charAt(r);t="\r"===i||"\n"===i,"\r"===i&&r+1<n.length&&"\n"===n.charAt(r+1)&&r++}t&&n.length>0&&e.push(n.length),this._lineOffsets=e}return this._lineOffsets},e.prototype.positionAt=function(e){e=Math.max(Math.min(e,this._content.length),0);var n=this.getLineOffsets(),r=0,i=n.length;if(0===i)return t.create(0,e);for(;r<i;){var o=Math.floor((r+i)/2);n[o]>e?i=o:r=o+1}var a=r-1;return t.create(a,e-n[a])},e.prototype.offsetAt=function(e){var n=this.getLineOffsets();if(e.line>=n.length)return this._content.length;if(e.line<0)return 0;var t=n[e.line],r=e.line+1<n.length?n[e.line+1]:this._content.length;return Math.max(Math.min(t+e.character,r),t)},Object.defineProperty(e.prototype,"lineCount",{get:function(){return this.getLineOffsets().length},enumerable:!0,configurable:!0}),e}();!function(e){var n=Object.prototype.toString;e.defined=function(e){return void 0!==e},e.undefined=function(e){return void 0===e},e.boolean=function(e){return!0===e||!1===e},e.string=function(e){return"[object String]"===n.call(e)},e.number=function(e){return"[object Number]"===n.call(e)},e.func=function(e){return"[object Function]"===n.call(e)},e.objectLiteral=function(e){return null!==e&&"object"==typeof e},e.typedArray=function(e,n){return Array.isArray(e)&&e.every(n)}}(I||(I={}))})),define("vscode-languageserver-types",["vscode-languageserver-types/main"],(function(e){return e})),define("vs/language/yaml/languageFeatures",["require","exports","vscode-languageserver-types"],(function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0});monaco.Uri;var r=monaco.Range,i=function(){function e(e,n,t){var r=this;this._languageId=e,this._worker=n,this._disposables=[],this._listener=Object.create(null);var i=function(e){var n,t=e.getModeId();t===r._languageId&&(r._listener[e.uri.toString()]=e.onDidChangeContent((function(){clearTimeout(n),n=setTimeout((function(){return r._doValidate(e.uri,t)}),500)})),r._doValidate(e.uri,t))},o=function(e){monaco.editor.setModelMarkers(e,r._languageId,[]);var n=e.uri.toString(),t=r._listener[n];t&&(t.dispose(),delete r._listener[n])};this._disposables.push(monaco.editor.onDidCreateModel(i)),this._disposables.push(monaco.editor.onWillDisposeModel((function(e){o(e),r._resetSchema(e.uri)}))),this._disposables.push(monaco.editor.onDidChangeModelLanguage((function(e){o(e.model),i(e.model),r._resetSchema(e.model.uri)}))),this._disposables.push(t.onDidChange((function(e){monaco.editor.getModels().forEach((function(e){e.getModeId()===r._languageId&&(o(e),i(e))}))}))),this._disposables.push({dispose:function(){for(var e in monaco.editor.getModels().forEach(o),r._listener)r._listener[e].dispose()}}),monaco.editor.getModels().forEach(i)}return e.prototype.dispose=function(){this._disposables.forEach((function(e){return e&&e.dispose()})),this._disposables=[]},e.prototype._resetSchema=function(e){this._worker().then((function(n){n.resetSchema(e.toString())}))},e.prototype._doValidate=function(e,n){this._worker(e).then((function(t){return t.doValidation(e.toString()).then((function(t){var r=t.map((function(e){return t="number"==typeof(n=e).code?String(n.code):n.code,{severity:o(n.severity),startLineNumber:n.range.start.line+1,startColumn:n.range.start.character+1,endLineNumber:n.range.end.line+1,endColumn:n.range.end.character+1,message:n.message,code:t,source:n.source};var n,t})),i=monaco.editor.getModel(e);i&&i.getModeId()===n&&monaco.editor.setModelMarkers(i,n,r)}))})).then(void 0,(function(e){console.error(e)}))},e}();function o(e){switch(e){case t.DiagnosticSeverity.Error:return monaco.MarkerSeverity.Error;case t.DiagnosticSeverity.Warning:return monaco.MarkerSeverity.Warning;case t.DiagnosticSeverity.Information:return monaco.MarkerSeverity.Info;case t.DiagnosticSeverity.Hint:return monaco.MarkerSeverity.Hint;default:return monaco.MarkerSeverity.Info}}function a(e){if(e)return{character:e.column-1,line:e.lineNumber-1}}function u(e){if(e)return new r(e.start.line+1,e.start.character+1,e.end.line+1,e.end.character+1)}function s(e){var n=monaco.languages.CompletionItemKind;switch(e){case t.CompletionItemKind.Text:return n.Text;case t.CompletionItemKind.Method:return n.Method;case t.CompletionItemKind.Function:return n.Function;case t.CompletionItemKind.Constructor:return n.Constructor;case t.CompletionItemKind.Field:return n.Field;case t.CompletionItemKind.Variable:return n.Variable;case t.CompletionItemKind.Class:return n.Class;case t.CompletionItemKind.Interface:return n.Interface;case t.CompletionItemKind.Module:return n.Module;case t.CompletionItemKind.Property:return n.Property;case t.CompletionItemKind.Unit:return n.Unit;case t.CompletionItemKind.Value:return n.Value;case t.CompletionItemKind.Enum:return n.Enum;case t.CompletionItemKind.Keyword:return n.Keyword;case t.CompletionItemKind.Snippet:return n.Snippet;case t.CompletionItemKind.Color:return n.Color;case t.CompletionItemKind.File:return n.File;case t.CompletionItemKind.Reference:return n.Reference}return n.Property}function c(e){if(e)return{range:u(e.range),text:e.newText}}n.DiagnosticsAdapter=i;var d=function(){function e(e){this._worker=e}return Object.defineProperty(e.prototype,"triggerCharacters",{get:function(){return[" ",":"]},enumerable:!0,configurable:!0}),e.prototype.provideCompletionItems=function(e,n,i,o){var d=e.uri;return this._worker(d).then((function(e){return e.doComplete(d.toString(),a(n))})).then((function(i){if(i){var o=e.getWordUntilPosition(n),a=new r(n.lineNumber,o.startColumn,n.lineNumber,o.endColumn),d=i.items.map((function(e){var n={label:e.label,insertText:e.insertText||e.label,sortText:e.sortText,filterText:e.filterText,documentation:e.documentation,detail:e.detail,range:a,kind:s(e.kind)};return e.textEdit&&(n.range=u(e.textEdit.range),n.insertText=e.textEdit.newText),e.additionalTextEdits&&(n.additionalTextEdits=e.additionalTextEdits.map(c)),e.insertTextFormat===t.InsertTextFormat.Snippet&&(n.insertTextRules=monaco.languages.CompletionItemInsertTextRule.InsertAsSnippet),n}));return{isIncomplete:i.isIncomplete,suggestions:d}}}))},e}();function l(e){return"string"==typeof e?{value:e}:(n=e)&&"object"==typeof n&&"string"==typeof n.kind?"plaintext"===e.kind?{value:e.value.replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&")}:{value:e.value}:{value:"```"+e.language+"\n"+e.value+"\n```\n"};var n}function f(e){if(e)return Array.isArray(e)?e.map(l):[l(e)]}n.CompletionAdapter=d;var g=function(){function e(e){this._worker=e}return e.prototype.provideHover=function(e,n,t){var r=e.uri;return this._worker(r).then((function(e){return e.doHover(r.toString(),a(n))})).then((function(e){if(e)return{range:u(e.range),contents:f(e.contents)}}))},e}();function m(e){var n=monaco.languages.SymbolKind;switch(e){case t.SymbolKind.File:return n.Array;case t.SymbolKind.Module:return n.Module;case t.SymbolKind.Namespace:return n.Namespace;case t.SymbolKind.Package:return n.Package;case t.SymbolKind.Class:return n.Class;case t.SymbolKind.Method:return n.Method;case t.SymbolKind.Property:return n.Property;case t.SymbolKind.Field:return n.Field;case t.SymbolKind.Constructor:return n.Constructor;case t.SymbolKind.Enum:return n.Enum;case t.SymbolKind.Interface:return n.Interface;case t.SymbolKind.Function:return n.Function;case t.SymbolKind.Variable:return n.Variable;case t.SymbolKind.Constant:return n.Constant;case t.SymbolKind.String:return n.String;case t.SymbolKind.Number:return n.Number;case t.SymbolKind.Boolean:return n.Boolean;case t.SymbolKind.Array:return n.Array}return n.Function}n.HoverAdapter=g;var p=function(){function e(e){this._worker=e}return e.prototype.provideDocumentSymbols=function(e,n){var t=e.uri;return this._worker(t).then((function(e){return e.findDocumentSymbols(t.toString())})).then((function(e){if(e)return e.map((function(e){return{name:e.name,detail:"",containerName:e.containerName,kind:m(e.kind),range:u(e.location.range),selectionRange:u(e.location.range),tags:[]}}))}))},e}();function h(e){return{tabSize:e.tabSize,insertSpaces:e.insertSpaces}}n.DocumentSymbolAdapter=p;var v=function(){function e(e){this._worker=e}return e.prototype.provideDocumentFormattingEdits=function(e,n,t){var r=e.uri;return this._worker(r).then((function(e){return e.format(r.toString(),null,h(n)).then((function(e){if(e&&0!==e.length)return e.map(c)}))}))},e}();n.DocumentFormattingEditProvider=v;var y=function(){function e(e){this._worker=e}return e.prototype.provideDocumentRangeFormattingEdits=function(e,n,t,r){var i=e.uri;return this._worker(i).then((function(e){return e.format(i.toString(),function(e){if(e)return{start:{line:e.startLineNumber-1,character:e.startColumn-1},end:{line:e.endLineNumber-1,character:e.endColumn-1}}}(n),h(t)).then((function(e){if(e&&0!==e.length)return e.map(c)}))}))},e}();n.DocumentRangeFormattingEditProvider=y})),define("vs/language/yaml/yamlMode",["require","exports","./workerManager","./languageFeatures"],(function(e,n,t,r){"use strict";function i(e){return{dispose:function(){return o(e)}}}function o(e){for(;e.length;)e.pop().dispose()}Object.defineProperty(n,"__esModule",{value:!0}),n.setupMode=function(e){var n=[],u=[],s=new t.WorkerManager(e);n.push(s);var c=function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return s.getLanguageServiceWorker.apply(s,e)};function d(){var n=e.languageId,t=e.modeConfiguration;o(u),t.documentFormattingEdits&&u.push(monaco.languages.registerDocumentFormattingEditProvider(n,new r.DocumentFormattingEditProvider(c))),t.documentRangeFormattingEdits&&u.push(monaco.languages.registerDocumentRangeFormattingEditProvider(n,new r.DocumentRangeFormattingEditProvider(c))),t.completionItems&&u.push(monaco.languages.registerCompletionItemProvider(n,new r.CompletionAdapter(c))),t.hovers&&u.push(monaco.languages.registerHoverProvider(n,new r.HoverAdapter(c))),t.documentSymbols&&u.push(monaco.languages.registerDocumentSymbolProvider(n,new r.DocumentSymbolAdapter(c))),t.diagnostics&&u.push(new r.DiagnosticsAdapter(n,c,e))}d(),n.push(monaco.languages.setLanguageConfiguration(e.languageId,a));var l=e.modeConfiguration;return e.onDidChange((function(e){e.modeConfiguration!==l&&(l=e.modeConfiguration,d())})),n.push(i(u)),i(n)};var a={wordPattern:/(-?\d*\.\d\w*)|([^\[\{\]\}\:\"\,\s]+)/g,comments:{lineComment:"//",blockComment:["/*","*/"]},brackets:[["{","}"],["[","]"]],autoClosingPairs:[{open:"{",close:"}",notIn:["string"]},{open:"[",close:"]",notIn:["string"]},{open:'"',close:'"',notIn:["string"]}]}}));