yunkong2.javascript/admin/monaco-editor/2.bundle.js

1 line
27 KiB
JavaScript
Raw Normal View History

2018-07-21 19:30:07 +08:00
(self.webpackJsonp=self.webpackJsonp||[]).push([[2],{10:function(e,t,n){"use strict";var r,o,i,a,u,s,c,f;n.d(t,"g",function(){return o}),n.d(t,"e",function(){return i}),n.d(t,"c",function(){return a}),n.d(t,"j",function(){return c}),n.d(t,"f",function(){return h}),n.d(t,"b",function(){return p}),n.d(t,"d",function(){return m}),n.d(t,"a",function(){return v}),n.d(t,"h",function(){return T}),n.d(t,"i",function(){return M}),function(e){e.create=function(e,t){return{line:e,character:t}},e.is=function(e){var t=e;return j.defined(t)&&j.number(t.line)&&j.number(t.character)}}(r||(r={})),function(e){e.create=function(e,t,n,o){if(j.number(e)&&j.number(t)&&j.number(n)&&j.number(o))return{start:r.create(e,t),end:r.create(n,o)};if(r.is(e)&&r.is(t))return{start:e,end:t};throw new Error("Range#create called with invalid arguments["+e+", "+t+", "+n+", "+o+"]")},e.is=function(e){var t=e;return j.defined(t)&&r.is(t.start)&&r.is(t.end)}}(o||(o={})),function(e){e.create=function(e,t){return{uri:e,range:t}},e.is=function(e){var t=e;return j.defined(t)&&o.is(t.range)&&(j.string(t.uri)||j.undefined(t.uri))}}(i||(i={})),function(e){e.Error=1,e.Warning=2,e.Information=3,e.Hint=4}(a||(a={})),function(e){e.create=function(e,t,n,r,o){var i={range:e,message:t};return j.defined(n)&&(i.severity=n),j.defined(r)&&(i.code=r),j.defined(o)&&(i.source=o),i},e.is=function(e){var t=e;return j.defined(t)&&o.is(t.range)&&j.string(t.message)&&(j.number(t.severity)||j.undefined(t.severity))&&(j.number(t.code)||j.string(t.code)||j.undefined(t.code))&&(j.string(t.source)||j.undefined(t.source))}}(u||(u={})),function(e){e.create=function(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];var o={title:e,command:t};return j.defined(n)&&n.length>0&&(o.arguments=n),o},e.is=function(e){var t=e;return j.defined(t)&&j.string(t.title)&&j.string(t.title)}}(s||(s={})),function(e){e.replace=function(e,t){return{range:e,newText:t}},e.insert=function(e,t){return{range:{start:e,end:e},newText:t}},e.del=function(e){return{range:e,newText:""}}}(c||(c={})),function(e){e.create=function(e,t){return{textDocument:e,edits:t}},e.is=function(e){var t=e;return j.defined(t)&&d.is(t.textDocument)&&Array.isArray(t.edits)}}(f||(f={}));var l,d,g,h,p,m,v,b,k,_,y,C,w,T,E,S,x,A,I=function(){function e(e){this.edits=e}return e.prototype.insert=function(e,t){this.edits.push(c.insert(e,t))},e.prototype.replace=function(e,t){this.edits.push(c.replace(e,t))},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}();!function(){function e(e){var t=this;this._textEditChanges=Object.create(null),e&&(this._workspaceEdit=e,e.documentChanges?e.documentChanges.forEach(function(e){var n=new I(e.edits);t._textEditChanges[e.textDocument.uri]=n}):e.changes&&Object.keys(e.changes).forEach(function(n){var r=new I(e.changes[n]);t._textEditChanges[n]=r}))}Object.defineProperty(e.prototype,"edit",{get:function(){return this._workspaceEdit},enumerable:!0,configurable:!0}),e.prototype.getTextEditChange=function(e){if(d.is(e)){if(this._workspaceEdit||(this._workspaceEdit={documentChanges:[]}),!this._workspaceEdit.documentChanges)throw new Error("Workspace edit is not configured for versioned document changes.");var t=e;if(!(r=this._textEditChanges[t.uri])){var n={textDocument:t,edits:o=[]};this._workspaceEdit.documentChanges.push(n),r=new I(o),this._textEditChanges[t.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 o=[];this._workspaceEdit.changes[e]=o,r=new I(o),this._textEditChanges[e]=r}return r}}();!function(e){e.create=function(e){return{uri:e}},e.is=function(e){var t=e;return j.defined(t)&&j.string(t.uri)}}(l||(l={})),function(e){e.create=function(e,t){return{uri:e,version:t}},e.is=function(e){var t=e;return j.defined(t)&&j.string(t.uri)&&j