!function(e,t){"object"==typeofexports&&"object"==typeofmodule?module.exports=t():"function"==typeofdefine&&define.amd?define(t):"object"==typeofexports?exports.JSONEditor=t():e.JSONEditor=t()}(this,function(){returnfunction(e){functiont(n){if(i[n])returni[n].exports;varr=i[n]={exports:{},id:n,loaded:!1};returne[n].call(r.exports,r,r.exports,t),r.loaded=!0,r.exports}vari={};returnt.m=e,t.c=i,t.p="",t(0)}([function(e,t,i){functionn(e,t,i){if(!(thisinstanceofn))thrownewError('JSONEditor constructor called without "new".');varr=l.getInternetExplorerVersion();if(-1!=r&&9>r)thrownewError("Unsupported browser, IE9 or newer required. Please install the newest version of your browser.");if(t&&(t.error&&(console.warn('Option "error" has been renamed to "onError"'),t.onError=t.error,deletet.error),t.change&&(console.warn('Option "change" has been renamed to "onChange"'),t.onChange=t.change,deletet.change),t.editable&&(console.warn('Option "editable" has been renamed to "onEditable"'),t.onEditable=t.editable,deletet.editable),t)){varo=["ace","theme","ajv","schema","onChange","onEditable","onError","onModeChange","escapeUnicode","history","mode","modes","name","indentation"];Object.keys(t).forEach(function(e){-1===o.indexOf(e)&&console.warn('Unknown option "'+e+'". This option will be ignored')})}arguments.length&&this._create(e,t,i)}varr;try{r=i(4)}catch(o){}vars=i(1),a=i(2),l=i(3);n.modes={},n.prototype.DEBOUNCE_INTERVAL=150,n.prototype._create=function(e,t,i){this.container=e,this.options=t||{},this.json=i||{};varn=this.options.mode||"tree";this.setMode(n)},n.prototype._delete=function(){},n.prototype.set=function(e){this.json=e},n.prototype.get=function(){returnthis.json},n.prototype.setText=function(e){this.json=l.parse(e)},n.prototype.getText=function(){returnJSON.stringify(this.json)},n.prototype.setName=function(e){this.options||(this.options={}),this.options.name=e},n.prototype.getName=function(){returnthis.options&&this.options.name},n.prototype.setMode=function(e){vart,i,r=this.container,o=l.extend({},this.options),s=o.mode;o.mode=e;vara=n.modes[e];if(!a)thrownewError('Unknown mode "'+o.mode+'"');try{varc="text"==a.data;if(i=this.getName(),t=this[c?"getText":"get"](),this._delete(),l.clear(this),l.extend(this,a.mixin),this.create(r,o),this.setName(i),this[c?"setText":"set"](t),"function"==typeofa.load)try{a.load.call(this)}catch(h){console.error(h)}if("function"==typeofo.onModeChange&&e!==s)try{o.onModeChange(e,s)}catch(h){console.error(h)}}catch(h){this._onError(h)}},n.prototype.getMode=function(){returnthis.options.mode},n.prototype._onError=function(e){if(!this.options||"function"!=typeofthis.options.onError)throwe;this.options.onError(e)},n.prototype.setSchema=function(e){if(e){vart;try{t=this.options.ajv||r({allErrors:!0})}catch(i){console.warn("Failed to create an instance of Ajv, JSON Schema validation is not available. Please use a JSONEditor bundle including Ajv, or pass an instance of Ajv as via the configuration option `ajv`.")}t&&(this.validateSchema=t.compile(e),this.options.schema=e,this.validate())}elsethis.validateSchema=null,this.options.schema=null,this.validate()},n.prototype.validate=function(){},n.registerMode=function(e){vart,i;if(l.isArray(e))for(t=0;t<e.length;t++)n.registerMode(e[t]);else{if(!("mode"ine))thrownewError('Property "mode" missing');if(!("mixin"ine))thrownewError('Property "mixin" missing');if(!("data"ine))thrownewError('Property "data" missing');varr=e.mode;if(rinn.modes)thrownewError('Mode "'+r+'" already registered');if("function"!=typeofe.mixin.create)thrownewError('Required function "create" missing on mixin');varo=["setMode","registerMode","modes"];for(t=0;t<o.length;t++)if(i=o[t],iine.mixin)thrownewError('Reserved property "'+i+'" not allowed in mixin');n.modes[r]=e}},n.registerMode(s),n.registerMode(a),e.exports=n},function(e,t,i){varn=i(6),r=i(7),o=i(8),s=i(9),a=i(10),l=i(5),c=i(3),h={};h.create=function(e,t){if(!e)thrownewError("No container element provided.");this.container=e,this.dom={},this.highlighter=ne
vard,u,f,p,m=e[h].replace(a,"%20"),g=m.indexOf(i);g>=0?(d=m.substr(0,g),u=m.substr(g+1)):(d=m,u=""),f=decodeURIComponent(d),p=decodeURIComponent(u),n(s,f)?r(s[f])?s[f].push(p):s[f]=[s[f],p]:s[f]=p}returns};varr=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)}},{}],3:[function(e,t,i){"use strict";functionn(e,t){if(e.map)returne.map(t);for(vari=[],n=0;n<e.length;n++)i.push(t(e[n],n));returni}varr=function(e){switch(typeofe){case"string":returne;case"boolean":returne?"true":"false";case"number":returnisFinite(e)?e:"";default:return""}};t.exports=function(e,t,i,a){returnt=t||"&",i=i||"=",null===e&&(e=void0),"object"==typeofe?n(s(e),function(s){vara=encodeURIComponent(r(s))+i;returno(e[s])?n(e[s],function(e){returna+encodeURIComponent(r(e))}).join(t):a+encodeURIComponent(r(e[s]))}).join(t):a?encodeURIComponent(r(a))+i+encodeURIComponent(r(e)):""};varo=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)},s=Object.keys||function(e){vart=[];for(variine)Object.prototype.hasOwnProperty.call(e,i)&&t.push(i);returnt}},{}],4:[function(e,t,i){"use strict";i.decode=i.parse=e("./decode"),i.encode=i.stringify=e("./encode")},{"./decode":2,"./encode":3}],5:[function(e,t,i){"use strict";functionn(){this.protocol=null,this.slashes=null,this.auth=null,this.host=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.query=null,this.pathname=null,this.path=null,this.href=null}functionr(e,t,i){if(e&&c.isObject(e)&&einstanceofn)returne;varr=newn;returnr.parse(e,t,i),r}functiono(e){returnc.isString(e)&&(e=r(e)),einstanceofn?e.format():n.prototype.format.call(e)}functions(e,t){returnr(e,!1,!0).resolve(t)}functiona(e,t){returne?r(e,!1,!0).resolveObject(t):t}varl=e("punycode"),c=e("./util");i.parse=r,i.resolve=s,i.resolveObject=a,i.format=o,i.Url=n;varh=/^([a-z0-9.+-]+:)/i,d=/:[0-9]*$/,u=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,f=["<",">",'"',"`"," ","\r","\n"," "],p=["{","}","|","\\","^","`"].concat(f),m=["'"].concat(p),g=["%","/","?",";","#"].concat(m),v=["/","?","#"],w=255,A=/^[+a-z0-9A-Z_-]{0,63}$/,y=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,C={javascript:!0,"javascript:":!0},E={javascript:!0,"javascript:":!0},b={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},F=e("querystring");n.prototype.parse=function(e,t,i){if(!c.isString(e))thrownewTypeError("Parameter 'url' must be a string, not "+typeofe);varn=e.indexOf("?"),r=-1!==n&&n<e.indexOf("#")?"?":"#",o=e.split(r),s=/\\/g;o[0]=o[0].replace(s,"/"),e=o.join(r);vara=e;if(a=a.trim(),!i&&1===e.split("#").length){vard=u.exec(a);if(d)returnthis.path=a,this.href=a,this.pathname=d[1],d[2]?(this.search=d[2],t?this.query=F.parse(this.search.substr(1)):this.query=this.search.substr(1)):t&&(this.search="",this.query={}),this}varf=h.exec(a);if(f){f=f[0];varp=f.toLowerCase();this.protocol=p,a=a.substr(f.length)}if(i||f||a.match(/^\/\/[^@\/]+@[^@\/]+/)){varx="//"===a.substr(0,2);!x||f&&E[f]||(a=a.substr(2),this.slashes=!0)}if(!E[f]&&(x||f&&!b[f])){for(varS=-1,$=0;$<v.length;$++){varD=a.indexOf(v[$]);-1!==D&&(-1===S||S>D)&&(S=D)}vark,B;B=-1===S?a.lastIndexOf("@"):a.lastIndexOf("@",S),-1!==B&&(k=a.slice(0,B),a=a.slice(B+1),this.auth=decodeURIComponent(k)),S=-1;for(var$=0;$<g.length;$++){varD=a.indexOf(g[$]);-1!==D&&(-1===S||S>D)&&(S=D)}-1===S&&(S=a.length),this.host=a.slice(0,S),a=a.slice(S),this.parseHost(),this.hostname=this.hostname||"";var_="["===this.hostname[0]&&"]"===this.hostname[this.hostname.length-1];if(!_)for(varL=this.hostname.split(/\./),$=0,R=L.length;R>$;$++){varT=L[$];if(T&&!T.match(A)){for(varP="",M=0,O=T.length;O>M;M++)P+=T.charCodeAt(M)>127?"x":T[M];if(!P.match(A)){varj=L.slice(0,$),I=L.slice($+1),N=T.match(y);N&&(j.push(N[1]),I.unshift(N[2])),I.length&&(a="/"+I.join(".")+a),this.hostname=j.join(".");break}}}this.hostname.length>w?this.hostname="":this.hostname=this.hostname.toLowerCase(),_||(this.hostname=l.toASCII(this.hostname));varW=this.port?":"+this.port:"",H=this.hostname||"";this.host=H+W,this.hre
i.schema=e.schema,i.errors=null,i.root=t?t:i,i;e.compiling=!0;varn=k.opts.removeAdditional,r=k.opts.useDefaults;e.meta&&(n&&(k.opts.removeAdditional=!1),r&&(k.opts.useDefaults=!1));vars;try{s=o.call(k,e.schema,t,e.localRefs)}finally{e.compiling=!1,n&&(k.opts.removeAdditional=n),r&&(k.opts.useDefaults=r)}returne.validate=s,e.refs=s.refs,e.refVal=s.refVal,e.root=s.root,s}functionF(e,t){if(e=e||k.errors,!e)return"No errors";t=t||{};for(vari=t.separator||", ",n=t.dataVar||"data",r="",o=0;o<e.length;o++){vars=e[o];s&&(r+=n+s.dataPath+" "+s.message+i)}returnr.slice(0,-i.length)}functionx(e,t){"string"==typeoft&&(t=newRegExp(t)),k._formats[e]=t}functionS(){if(k.opts.meta!==!1){vart=e("./refs/json-schema-draft-04.json");v(t,f,!0),k._refs["http://json-schema.org/schema"]=f}vari=k.opts.schemas;if(i)if(Array.isArray(i))g(i);elsefor(varnini)g(i[n],n)}function$(){for(vareink.opts.formats){vart=k.opts.formats[e];x(e,t)}}functionD(e){if(k._schemas[e]||k._refs[e])thrownewError('schema with key or id "'+e+'" already exists')}if(!(thisinstanceofr))returnnewr(t);vark=this;this.opts=t||{},this._schemas={},this._refs={},this._formats=h(this.opts.format),this._cache=this.opts.cache||newa,this._loadingSchemas={},this.RULES=d(),this.validate=i,this.compile=m,this.addSchema=g,this.addMetaSchema=v,this.validateSchema=w,this.getSchema=A,this.removeSchema=C,this.addFormat=x,this.errorsText=F,this._addSchema=E,this._compile=b,S(),this.opts.formats&&$(),"property"==this.opts.errorDataPath&&(this.opts._errorDataPathProperty=!0),this.opts.v5&&u.enable(this),this.opts.loopRequired=this.opts.loopRequired||1/0}varo=e("./compile"),s=e("./compile/resolve"),a=e("./cache"),l=e("./compile/schema_obj"),c=e("json-stable-stringify"),h=e("./compile/formats"),d=e("./compile/rules"),u=e("./v5");t.exports=r,r.prototype.compileAsync=e("./async"),r.prototype.addKeyword=e("./keyword");varf="http://json-schema.org/draft-04/schema",p=/^(?:(?:[a-z][a-z0-9+-.]*:)?\/\/)?[^\s]*$/i},{"./async":7,"./cache":8,"./compile":12,"./compile/formats":11,"./compile/resolve":13,"./compile/rules":14,"./compile/schema_obj":15,"./keyword":39,"./refs/json-schema-draft-04.json":40,"./v5":42,"json-stable-stringify":43}]},{},[])("ajv")})}).call(exports,function(){returnthis}())},function(e,t,i){functionn(e,t,i){functionn(t){e.setMode(t);vari=e.dom&&e.dom.modeBox;i&&i.focus()}for(varo={code:{text:"Code",title:"Switch to code highlighter",click:function(){n("code")}},form:{text:"Form",title:"Switch to form editor",click:function(){n("form")}},text:{text:"Text",title:"Switch to plain text editor",click:function(){n("text")}},tree:{text:"Tree",title:"Switch to tree editor",click:function(){n("tree")}},view:{text:"View",title:"Switch to tree view",click:function(){n("view")}}},s=[],a=0;a<t.length;a++){varl=t[a],c=o[l];if(!c)thrownewError('Unknown mode "'+l+'"');c.className="jsoneditor-type-modes"+(i==l?" jsoneditor-selected":""),s.push(c)}varh=o[i];if(!h)thrownewError('Unknown mode "'+i+'"');vard=h.text,u=document.createElement("button");u.className="jsoneditor-modes jsoneditor-separator",u.innerHTML=d+" ▾",u.title="Switch editor mode",u.onclick=function(){vare=newr(s);e.show(u)};varf=document.createElement("div");returnf.className="jsoneditor-modes",f.style.position="relative",f.appendChild(u),f}varr=i(9);t.create=n},function(e,t,i){functionn(){this.locked=!1}n.prototype.highlight=function(e){this.locked||(this.node!=e&&(this.node&&this.node.setHighlight(!1),this.node=e,this.node.setHighlight(!0)),this._cancelUnhighlight())},n.prototype.unhighlight=function(){if(!this.locked){vare=this;this.node&&(this._cancelUnhighlight(),this.unhighlightTimer=setTimeout(function(){e.node.setHighlight(!1),e.node=void0,e.unhighlightTimer=void0},0))}},n.prototype._cancelUnhighlight=function(){this.unhighlightTimer&&(clearTimeout(this.unhighlightTimer),this.unhighlightTimer=void0)},n.prototype.lock=function(){this.locked=!0},n.prototype.unlock=function(){this.locked=!1},e.exports=n},function(e,t,i){functionn(e){this.editor=e,this.clear(),this.actions={ed
vart=e.start.row,i=e.end.row-t;if(0===i)this.lines[t]=null;elseif("remove"==e.action)this.lines.splice(t,i+1,null),this.states.splice(t,i+1,null);else{varn=Array(i+1);n.unshift(t,1),this.lines.splice.apply(this.lines,n),this.states.splice.apply(this.states,n)}this.currentLine=Math.min(t,this.currentLine,this.doc.getLength()),this.stop()},this.stop=function(){this.running&&clearTimeout(this.running),this.running=!1},this.getTokens=function(e){returnthis.lines[e]||this.$tokenizeRow(e)},this.getState=function(e){returnthis.currentLine==e&&this.$tokenizeRow(e),this.states[e]||"start"},this.$tokenizeRow=function(e){vart=this.doc.getLine(e),i=this.states[e-1],n=this.tokenizer.getLineTokens(t,i,e);returnthis.states[e]+""!=n.state+""?(this.states[e]=n.state,this.lines[e+1]=null,this.currentLine>e+1&&(this.currentLine=e+1)):this.currentLine==e&&(this.currentLine=e+1),this.lines[e]=n.tokens}}).call(o.prototype),t.BackgroundTokenizer=o}),ace.define("ace/search_highlight",["require","exports","module","ace/lib/lang","ace/lib/oop","ace/range"],function(e,t,i){"use strict";varn=e("./lib/lang"),r=(e("./lib/oop"),e("./range").Range),o=function(e,t,i){this.setRegexp(e),this.clazz=t,this.type=i||"text"};(function(){this.MAX_RANGES=500,this.setRegexp=function(e){this.regExp+""!=e+""&&(this.regExp=e,this.cache=[])},this.update=function(e,t,i,o){if(this.regExp)for(vars=o.firstRow,a=o.lastRow,l=s;a>=l;l++){varc=this.cache[l];null==c&&(c=n.getMatchOffsets(i.getLine(l),this.regExp),c.length>this.MAX_RANGES&&(c=c.slice(0,this.MAX_RANGES)),c=c.map(function(e){returnnewr(l,e.offset,l,e.offset+e.length)}),this.cache[l]=c.length?c:"");for(varh=c.length;h--;)t.drawSingleLineMarker(e,c[h].toScreenRange(i),this.clazz,o)}}}).call(o.prototype),t.SearchHighlight=o}),ace.define("ace/edit_session/fold_line",["require","exports","module","ace/range"],function(e,t,i){"use strict";functionn(e,t){this.foldData=e,Array.isArray(t)?this.folds=t:t=this.folds=[t];vari=t[t.length-1];this.range=newr(t[0].start.row,t[0].start.column,i.end.row,i.end.column),this.start=this.range.start,this.end=this.range.end,this.folds.forEach(function(e){e.setFoldLine(this)},this)}varr=e("../range").Range;(function(){this.shiftRow=function(e){this.start.row+=e,this.end.row+=e,this.folds.forEach(function(t){t.start.row+=e,t.end.row+=e})},this.addFold=function(e){if(e.sameRow){if(e.start.row<this.startRow||e.endRow>this.endRow)thrownewError("Can't add a fold to this FoldLine as it has no connection");this.folds.push(e),this.folds.sort(function(e,t){return-e.range.compareEnd(t.start.row,t.start.column)}),this.range.compareEnd(e.start.row,e.start.column)>0?(this.end.row=e.end.row,this.end.column=e.end.column):this.range.compareStart(e.end.row,e.end.column)<0&&(this.start.row=e.start.row,this.start.column=e.start.column)}elseif(e.start.row==this.end.row)this.folds.push(e),this.end.row=e.end.row,this.end.column=e.end.column;else{if(e.end.row!=this.start.row)thrownewError("Trying to add fold to FoldRow that doesn't have a matching row");this.folds.unshift(e),this.start.row=e.start.row,this.start.column=e.start.column}e.foldLine=this},this.containsRow=function(e){returne>=this.start.row&&e<=this.end.row},this.walk=function(e,t,i){varn,r,o,s=0,a=this.folds,l=!0;null==t&&(t=this.end.row,i=this.end.column);for(varc=0;c<a.length;c++){if(n=a[c],r=n.range.compareStart(t,i),-1==r)returnvoide(null,t,i,s,l);if(o=e(null,n.start.row,n.start.column,s,l),o=!o&&e(n.placeholder,n.start.row,n.start.column,s),o||0===r)return;l=!n.sameRow,s=n.end.column}e(null,t,i,s,l)},this.getNextFoldTo=function(e,t){for(vari,n,r=0;r<this.folds.length;r++){if(i=this.folds[r],n=i.range.compareEnd(e,t),-1==n)return{fold:i,kind:"after"};if(0===n)return{fold:i,kind:"inside"}}returnnull},this.addRemoveChars=function(e,t,i){varn,r,o=this.getNextFoldTo(e,t);if(o)if(n=o.fold,"inside"==o.kind&&n.start.column!=t&&n.start.row!=e)window.console&&window.console.log(e,t,n);elseif(n.start.row==e){r=this.folds;vars=r.indexOf(n);for(0===s&&(this.start.column+=i),s;s<r.length;s++){if(n=r[s],n.start.column+=i,!n
}},this.$stopWorker=function(){this.$worker&&(this.$worker.terminate(),this.$worker=null)},this.$startWorker=function(){try{this.$worker=this.$mode.createWorker(this)}catch(e){o.warn("Could not load worker",e),this.$worker=null}},this.getMode=function(){returnthis.$mode},this.$scrollTop=0,this.setScrollTop=function(e){this.$scrollTop===e||isNaN(e)||(this.$scrollTop=e,this._signal("changeScrollTop",e))},this.getScrollTop=function(){returnthis.$scrollTop},this.$scrollLeft=0,this.setScrollLeft=function(e){this.$scrollLeft===e||isNaN(e)||(this.$scrollLeft=e,this._signal("changeScrollLeft",e))},this.getScrollLeft=function(){returnthis.$scrollLeft},this.getScreenWidth=function(){returnthis.$computeWidth(),this.lineWidgets?Math.max(this.getLineWidgetMaxWidth(),this.screenWidth):this.screenWidth},this.getLineWidgetMaxWidth=function(){if(null!=this.lineWidgetsWidth)returnthis.lineWidgetsWidth;vare=0;returnthis.lineWidgets.forEach(function(t){t&&t.screenWidth>e&&(e=t.screenWidth)}),this.lineWidgetWidth=e},this.$computeWidth=function(e){if(this.$modified||e){if(this.$modified=!1,this.$useWrapMode)returnthis.screenWidth=this.$wrapLimit;for(vart=this.doc.getAllLines(),i=this.$rowLengthCache,n=0,r=0,o=this.$foldData[r],s=o?o.start.row:1/0,a=t.length,l=0;a>l;l++){if(l>s){if(l=o.end.row+1,l>=a)break;o=this.$foldData[r++],s=o?o.start.row:1/0}null==i[l]&&(i[l]=this.$getStringScreenWidth(t[l])[0]),i[l]>n&&(n=i[l])}this.screenWidth=n}},this.getLine=function(e){returnthis.doc.getLine(e)},this.getLines=function(e,t){returnthis.doc.getLines(e,t)},this.getLength=function(){returnthis.doc.getLength()},this.getTextRange=function(e){returnthis.doc.getTextRange(e||this.selection.getRange())},this.insert=function(e,t){returnthis.doc.insert(e,t)},this.remove=function(e){returnthis.doc.remove(e)},this.removeFullLines=function(e,t){returnthis.doc.removeFullLines(e,t)},this.undoChanges=function(e,t){if(e.length){this.$fromUndo=!0;for(vari=null,n=e.length-1;-1!=n;n--){varr=e[n];"doc"==r.group?(this.doc.revertDeltas(r.deltas),i=this.$getUndoSelection(r.deltas,!0,i)):r.deltas.forEach(function(e){this.addFolds(e.folds)},this)}returnthis.$fromUndo=!1,i&&this.$undoSelect&&!t&&this.selection.setSelectionRange(i),i}},this.redoChanges=function(e,t){if(e.length){this.$fromUndo=!0;for(vari=null,n=0;n<e.length;n++){varr=e[n];"doc"==r.group&&(this.doc.applyDeltas(r.deltas),i=this.$getUndoSelection(r.deltas,!1,i))}returnthis.$fromUndo=!1,i&&this.$undoSelect&&!t&&this.selection.setSelectionRange(i),i}},this.setUndoSelect=function(e){this.$undoSelect=e},this.$getUndoSelection=function(e,t,i){functionn(e){returnt?"insert"!==e.action:"insert"===e.action}varr,o,s=e[0],a=!1;n(s)?(r=c.fromPoints(s.start,s.end),a=!0):(r=c.fromPoints(s.start,s.start),a=!1);for(varl=1;l<e.length;l++)s=e[l],n(s)?(o=s.start,-1==r.compare(o.row,o.column)&&r.setStart(o),o=s.end,1==r.compare(o.row,o.column)&&r.setEnd(o),a=!0):(o=s.start,-1==r.compare(o.row,o.column)&&(r=c.fromPoints(s.start,s.start)),a=!1);if(null!=i){0===c.comparePoints(i.start,r.start)&&(i.start.column+=r.end.column-r.start.column,i.end.column+=r.end.column-r.start.column);varh=i.compareRange(r);1==h?r.setStart(i.start):-1==h&&r.setEnd(i.end)}returnr},this.replace=function(e,t){returnthis.doc.replace(e,t)},this.moveText=function(e,t,i){varn=this.getTextRange(e),r=this.getFoldsInRange(e),o=c.fromPoints(t,t);if(!i){this.remove(e);vars=e.start.row-e.end.row,a=s?-e.end.column:e.start.column-e.end.column;a&&(o.start.row==e.end.row&&o.start.column>e.end.column&&(o.start.column+=a),o.end.row==e.end.row&&o.end.column>e.end.column&&(o.end.column+=a)),s&&o.start.row>=e.end.row&&(o.start.row+=s,o.end.row+=s)}if(o.end=this.insert(o.start,n),r.length){varl=e.start,h=o.start,s=h.row-l.row,a=h.column-l.column;this.addFolds(r.map(function(e){returne=e.clone(),e.start.row==l.row&&(e.start.column+=a),e.end.row==l.row&&(e.end.column+=a),e.start.row+=s,e.end.row+=s,e}))}returno},this.indentRows=function(e,t,i){i=i.replace(/\t/g,this.getTabString());for(varn=e;t>=n;n++)this.doc.insertInLine({row:n,column:0},i)},thi
},function(e,t,i){e.exports=function(){thrownewError("define cannot be used indirect")}},function(e,t,i){(function(t){functioni(){if(t.Blob)try{returnnewBlob(["asdf"],{type:"text/plain"}),Blob}catch(e){}vari=t.WebKitBlobBuilder||t.MozBlobBuilder||t.MSBlobBuilder;returnfunction(e,t){varn=newi,r=t.endings,o=t.type;if(r)for(vars=0,a=e.length;a>s;++s)n.append(e[s],r);elsefor(vars=0,a=e.length;a>s;++s)n.append(e[s]);returno?n.getBlob(o):n.getBlob()}}e.exports=i()}).call(t,function(){returnthis}())}])});