!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;varo=i[n]={exports:{},id:n,loaded:!1};returne[n].call(o.exports,o,o.exports,t),o.loaded=!0,o.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".');varo=s.getInternetExplorerVersion();if(-1!=o&&9>o)thrownewError("Unsupported browser, IE9 or newer required. Please install the newest version of your browser.");arguments.length&&this._create(e,t,i)}varo=i(1),r=i(2),s=i(3);n.modes={},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=s.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,o=this.container,r=s.extend({},this.options);r.mode=e;vara=n.modes[e];if(!a)thrownewError('Unknown mode "'+r.mode+'"');try{varl="text"==a.data;if(i=this.getName(),t=this[l?"getText":"get"](),this._delete(),s.clear(this),s.extend(this,a.mixin),this.create(o,r),this.setName(i),this[l?"setText":"set"](t),"function"==typeofa.load)try{a.load.call(this)}catch(c){}}catch(c){this._onError(c)}},n.prototype._onError=function(e){if("function"==typeofthis.onError&&(s.log("WARNING: JSONEditor.onError is deprecated. Use options.error instead."),this.onError(e)),!this.options||"function"!=typeofthis.options.error)throwe;this.options.error(e)},n.registerMode=function(e){vart,i;if(s.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');varo=e.mode;if(oinn.modes)thrownewError('Mode "'+o+'" already registered');if("function"!=typeofe.mixin.create)thrownewError('Required function "create" missing on mixin');varr=["setMode","registerMode","modes"];for(t=0;t<r.length;t++)if(i=r[t],iine.mixin)thrownewError('Reserved property "'+i+'" not allowed in mixin');n.modes[o]=e}},n.registerMode(o),n.registerMode(r),e.exports=n},function(e,t,i){varn=i(6),o=i(7),r=i(8),s=i(9),a=i(5),l=i(3),c={};c.create=function(e,t){if(!e)thrownewError("No container element provided.");this.container=e,this.dom={},this.highlighter=newn,this.selection=void0,this._setOptions(t),this.options.history&&"view"!==this.options.mode&&(this.history=newo(this)),this._createFrame(),this._createTable()},c._delete=function(){this.frame&&this.container&&this.frame.parentNode==this.container&&this.container.removeChild(this.frame)},c._setOptions=function(e){if(this.options={search:!0,history:!0,mode:"tree",name:void0},e)for(vartine)e.hasOwnProperty(t)&&(this.options[t]=e[t])};varh=void0,u=null;c.set=function(e,t){if(t&&(l.log('Warning: second parameter "name" is deprecated. Use setName(name) instead.'),this.options.name=t),einstanceofFunction||void0===e)this.clear();else{this.content.removeChild(this.table);vari={field:this.options.name,value:e},n=news(this,i);this._setRoot(n);varo=!1;this.node.expand(o),this.content.appendChild(this.table)}this.history&&this.history.clear()},c.get=function(){returnh&&h.blur(),this.node?this.node.getValue():void0},c.getText=function(){returnJSON.stringify(this.get())},c.setText=function(e){this.set(l.parse(e))},c.setName=function(e){this.options.name=e,this.node&&this.node.updateField(this.options.name)},c.getName=function(){returnthis.options.name},c.focus=function(){vare=this.content.querySelecto
}))},n.prototype.collapse=function(e){this.childs&&(this.hideChilds(),e!==!1&&this.childs.forEach(function(t){t.collapse(e)}),this.dom.expand&&(this.dom.expand.className="collapsed"),this.expanded=!1)},n.prototype.showChilds=function(){vare=this.childs;if(e&&this.expanded){vart=this.dom.tr,i=t?t.parentNode:void0;if(i){varn=this.getAppend(),o=t.nextSibling;o?i.insertBefore(n,o):i.appendChild(n),this.childs.forEach(function(e){i.insertBefore(e.getDom(),n),e.showChilds()})}}},n.prototype.hide=function(){vare=this.dom.tr,t=e?e.parentNode:void0;t&&t.removeChild(e),this.hideChilds()},n.prototype.hideChilds=function(){vare=this.childs;if(e&&this.expanded){vart=this.getAppend();t.parentNode&&t.parentNode.removeChild(t),this.childs.forEach(function(e){e.hide()})}},n.prototype.appendChild=function(e){if(this._hasChilds()){if(e.setParent(this),e.fieldEditable="object"==this.type,"array"==this.type&&(e.index=this.childs.length),this.childs.push(e),this.expanded){vart=e.getDom(),i=this.getAppend(),n=i?i.parentNode:void0;i&&n&&n.insertBefore(t,i),e.showChilds()}this.updateDom({updateIndexes:!0}),e.updateDom({recurse:!0})}},n.prototype.moveBefore=function(e,t){if(this._hasChilds()){vari=this.dom.tr?this.dom.tr.parentNode:void0;if(i){varn=document.createElement("tr");n.style.height=i.clientHeight+"px",i.appendChild(n)}e.parent&&e.parent.removeChild(e),tinstanceofa?this.appendChild(e):this.insertBefore(e,t),i&&i.removeChild(n)}},n.prototype.moveTo=function(e,t){if(e.parent==this){vari=this.childs.indexOf(e);t>i&&t++}varn=this.childs[t]||this.append;this.moveBefore(e,n)},n.prototype.insertBefore=function(e,t){if(this._hasChilds()){if(t==this.append)e.setParent(this),e.fieldEditable="object"==this.type,this.childs.push(e);else{vari=this.childs.indexOf(t);if(-1==i)thrownewError("Node not found");e.setParent(this),e.fieldEditable="object"==this.type,this.childs.splice(i,0,e)}if(this.expanded){varn=e.getDom(),o=t.getDom(),r=o?o.parentNode:void0;o&&r&&r.insertBefore(n,o),e.showChilds()}this.updateDom({updateIndexes:!0}),e.updateDom({recurse:!0})}},n.prototype.insertAfter=function(e,t){if(this._hasChilds()){vari=this.childs.indexOf(t),n=this.childs[i+1];n?this.insertBefore(e,n):this.appendChild(e)}},n.prototype.search=function(e){vart,i=[],n=e?e.toLowerCase():void0;if(deletethis.searchField,deletethis.searchValue,void0!=this.field){varo=String(this.field).toLowerCase();t=o.indexOf(n),-1!=t&&(this.searchField=!0,i.push({node:this,elem:"field"})),this._updateDomField()}if(this._hasChilds()){if(this.childs){varr=[];this.childs.forEach(function(t){r=r.concat(t.search(e))}),i=i.concat(r)}if(void0!=n){vars=!1;0==r.length?this.collapse(s):this.expand(s)}}else{if(void0!=this.value){vara=String(this.value).toLowerCase();t=a.indexOf(n),-1!=t&&(this.searchValue=!0,i.push({node:this,elem:"value"}))}this._updateDomValue()}returni},n.prototype.scrollTo=function(e){if(!this.dom.tr||!this.dom.tr.parentNode)for(vart=this.parent,i=!1;t;)t.expand(i),t=t.parent;this.dom.tr&&this.dom.tr.parentNode&&this.editor.scrollTo(this.dom.tr.offsetTop,e)},n.focusElement=void0,n.prototype.focus=function(e){if(n.focusElement=e,this.dom.tr&&this.dom.tr.parentNode){vart=this.dom;switch(e){case"drag":t.drag?t.drag.focus():t.menu.focus();break;case"menu":t.menu.focus();break;case"expand":this._hasChilds()?t.expand.focus():t.field&&this.fieldEditable?(t.field.focus(),s.selectContentEditable(t.field)):t.value&&!this._hasChilds()?(t.value.focus(),s.selectContentEditable(t.value)):t.menu.focus();break;case"field":t.field&&this.fieldEditable?(t.field.focus(),s.selectContentEditable(t.field)):t.value&&!this._hasChilds()?(t.value.focus(),s.selectContentEditable(t.value)):this._hasChilds()?t.expand.focus():t.menu.focus();break;case"value":default:t.value&&!this._hasChilds()?(t.value.focus(),s.selectContentEditable(t.value)):t.field&&this.fieldEditable?(t.field.focus(),s.selectContentEditable(t.field)):this._hasChilds()?t.expand.focus():t.menu.focus()}}},n.select=function(e){setTimeout(function(){s.selectContentEditable(e)},0)},n.prototype.blur=functio
if(e===i)r&&this.push.apply(this,o);else{vars=Math.min(t,i-e),a=e+s,l=a+r-s,c=i-a,h=i-s;if(a>l)for(vard=0;c>d;++d)this[l+d]=this[a+d];elseif(l>a)for(d=c;d--;)this[l+d]=this[a+d];if(r&&e===h)this.length=h,this.push.apply(this,o);elsefor(this.length=h+r,d=0;r>d;++d)this[e+d]=o[d]}returnn};Array.isArray||(Array.isArray=function(e){return"[object Array]"==d(e)});varp=Object("a"),m="a"!=p[0]||!(0inp);if(Array.prototype.forEach||(Array.prototype.forEach=function(e){vart=R(this),i=m&&"[object String]"==d(this)?this.split(""):t,n=arguments[1],o=-1,r=i.length>>>0;if("[object Function]"!=d(e))thrownewTypeError;for(;++o<r;)oini&&e.call(n,i[o],o,t)}),Array.prototype.map||(Array.prototype.map=function(e){vart=R(this),i=m&&"[object String]"==d(this)?this.split(""):t,n=i.length>>>0,o=Array(n),r=arguments[1];if("[object Function]"!=d(e))thrownewTypeError(e+" is not a function");for(vars=0;n>s;s++)sini&&(o[s]=e.call(r,i[s],s,t));returno}),Array.prototype.filter||(Array.prototype.filter=function(e){vart,i=R(this),n=m&&"[object String]"==d(this)?this.split(""):i,o=n.length>>>0,r=[],s=arguments[1];if("[object Function]"!=d(e))thrownewTypeError(e+" is not a function");for(vara=0;o>a;a++)ainn&&(t=n[a],e.call(s,t,a,i)&&r.push(t));returnr}),Array.prototype.every||(Array.prototype.every=function(e){vart=R(this),i=m&&"[object String]"==d(this)?this.split(""):t,n=i.length>>>0,o=arguments[1];if("[object Function]"!=d(e))thrownewTypeError(e+" is not a function");for(varr=0;n>r;r++)if(rini&&!e.call(o,i[r],r,t))return!1;return!0}),Array.prototype.some||(Array.prototype.some=function(e){vart=R(this),i=m&&"[object String]"==d(this)?this.split(""):t,n=i.length>>>0,o=arguments[1];if("[object Function]"!=d(e))thrownewTypeError(e+" is not a function");for(varr=0;n>r;r++)if(rini&&e.call(o,i[r],r,t))return!0;return!1}),Array.prototype.reduce||(Array.prototype.reduce=function(e){vart=R(this),i=m&&"[object String]"==d(this)?this.split(""):t,n=i.length>>>0;if("[object Function]"!=d(e))thrownewTypeError(e+" is not a function");if(!n&&1==arguments.length)thrownewTypeError("reduce of empty array with no initial value");varo,r=0;if(arguments.length>=2)o=arguments[1];elsefor(;;){if(rini){o=i[r++];break}if(++r>=n)thrownewTypeError("reduce of empty array with no initial value")}for(;n>r;r++)rini&&(o=e.call(void0,o,i[r],r,t));returno}),Array.prototype.reduceRight||(Array.prototype.reduceRight=function(e){vart=R(this),i=m&&"[object String]"==d(this)?this.split(""):t,n=i.length>>>0;if("[object Function]"!=d(e))thrownewTypeError(e+" is not a function");if(!n&&1==arguments.length)thrownewTypeError("reduceRight of empty array with no initial value");varo,r=n-1;if(arguments.length>=2)o=arguments[1];elsefor(;;){if(rini){o=i[r--];break}if(--r<0)thrownewTypeError("reduceRight of empty array with no initial value")}dorinthis&&(o=e.call(void0,o,i[r],r,t));while(r--);returno}),Array.prototype.indexOf&&-1==[0,1].indexOf(1,2)||(Array.prototype.indexOf=function(e){vart=m&&"[object String]"==d(this)?this.split(""):R(this),n=t.length>>>0;if(!n)return-1;varo=0;for(arguments.length>1&&(o=i(arguments[1])),o=o>=0?o:Math.max(0,n+o);n>o;o++)if(oint&&t[o]===e)returno;return-1}),Array.prototype.lastIndexOf&&-1==[0,1].lastIndexOf(0,-3)||(Array.prototype.lastIndexOf=function(e){vart=m&&"[object String]"==d(this)?this.split(""):R(this),n=t.length>>>0;if(!n)return-1;varo=n-1;for(arguments.length>1&&(o=Math.min(o,i(arguments[1]))),o=o>=0?o:n-Math.abs(o);o>=0;o--)if(oint&&e===t[o])returno;return-1}),Object.getPrototypeOf||(Object.getPrototypeOf=function(e){returne.__proto__||(e.constructor?e.constructor.prototype:h)}),!Object.getOwnPropertyDescriptor){varv="Object.getOwnPropertyDescriptor called on a non-object: ";Object.getOwnPropertyDescriptor=function(e,t){if("object"!=typeofe&&"function"!=typeofe||null===e)thrownewTypeError(v+e);if(g(e,t)){vari,n,o;if(i={enumerable:!0,configurable:!0},a){varl=e.__proto__;e.__proto__=h;varn=r(e,t),o=s(e,t);if(e.__proto__=l,n||o)returnn&&(i.get=n),o&&(i.set=o),i}returni.valu
}},this.onUpdate=function(e){vart=e.data,n=t.range;if(n.start.row===n.end.row&&n.start.row===this.pos.row&&!this.$updating){this.$updating=!0;varo="insertText"===t.action?n.end.column-n.start.column:n.start.column-n.end.column;if(n.start.column>=this.pos.column&&n.start.column<=this.pos.column+this.length+1){varr=n.start.column-this.pos.column;if(this.length+=o,!this.session.$fromUndo){if("insertText"===t.action)for(vars=this.others.length-1;s>=0;s--){vara=this.others[s],l={row:a.row,column:a.column+r};a.row===n.start.row&&n.start.column<a.column&&(l.column+=o),this.doc.insert(l,t.text)}elseif("removeText"===t.action)for(vars=this.others.length-1;s>=0;s--){vara=this.others[s],l={row:a.row,column:a.column+r};a.row===n.start.row&&n.start.column<a.column&&(l.column+=o),this.doc.remove(newi(l.row,l.column,l.row,l.column-o))}n.start.column===this.pos.column&&"insertText"===t.action?setTimeout(function(){this.pos.setPosition(this.pos.row,this.pos.column-o);for(vare=0;e<this.others.length;e++){vart=this.others[e],i={row:t.row,column:t.column-o};t.row===n.start.row&&n.start.column<t.column&&(i.column+=o),t.setPosition(i.row,i.column)}}.bind(this),0):n.start.column===this.pos.column&&"removeText"===t.action&&setTimeout(function(){for(vare=0;e<this.others.length;e++){vart=this.others[e];t.row===n.start.row&&n.start.column<t.column&&t.setPosition(t.row,t.column-o)}}.bind(this),0)}this.pos._emit("change",{value:this.pos});for(vars=0;s<this.others.length;s++)this.others[s]._emit("change",{value:this.others[s]})}this.$updating=!1}},this.onCursorChange=function(e){if(!this.$updating&&this.session){vart=this.session.selection.getCursor();t.row===this.pos.row&&t.column>=this.pos.column&&t.column<=this.pos.column+this.length?(this.showOtherMarkers(),this._emit("cursorEnter",e)):(this.hideOtherMarkers(),this._emit("cursorLeave",e))}},this.detach=function(){this.session.removeMarker(this.markerId),this.hideOtherMarkers(),this.doc.removeEventListener("change",this.$onUpdate),this.session.selection.removeEventListener("changeCursor",this.$onCursorChange),this.pos.detach();for(vare=0;e<this.others.length;e++)this.others[e].detach();this.session.setUndoSelect(!0),this.session=null},this.cancel=function(){if(-1===this.$undoStackDepth)throwError("Canceling placeholders only supported with undo manager attached to session.");for(vare=this.session.getUndoManager(),t=(e.$undoStack||e.$undostack).length-this.$undoStackDepth,i=0;t>i;i++)e.undo(!0);this.selectionBefore&&this.session.selection.fromJSON(this.selectionBefore)}}).call(r.prototype),t.PlaceHolder=r}),ace.define("ace/mouse/multi_select_handler",["require","exports","module","ace/lib/event","ace/lib/useragent"],function(e,t){functioni(e,t){returne.row==t.row&&e.column==t.column}functionn(e){vart=e.domEvent,n=t.altKey,s=t.shiftKey,a=t.ctrlKey,l=e.getAccelKey(),c=e.getButton();if(a&&r.isMac&&(c=t.button),e.editor.inMultiSelectMode&&2==c)returnvoide.editor.textInput.onContextMenu(e.domEvent);if(!a&&!n&&!l)returnvoid(0===c&&e.editor.inMultiSelectMode&&e.editor.exitMultiSelectMode());if(0===c){varh,u=e.editor,d=u.selection,g=u.inMultiSelectMode,f=e.getDocumentPosition(),p=d.getCursor(),m=e.inSelection()||d.isEmpty()&&i(f,p),v=e.x,A=e.y,w=function(e){v=e.clientX,A=e.clientY},C=u.session,E=u.renderer.pixelToScreenCoordinates(v,A),F=E;if(u.$mouseHandler.$enableJumpToDef)a&&n||l&&n?h="add":n&&(h="block");elseif(l&&!n){if(h="add",!g&&s)return}elsen&&(h="block");if(h&&r.isMac&&t.ctrlKey&&u.$mouseHandler.cancelContextMenu(),"add"==h){if(!g&&m)return;if(!g){vary=d.toOrientedRange();u.addSelectionMarker(y)}varb=d.rangeList.rangeAtPoint(f);u.$blockScrolling++,u.inVirtualSelectionMode=!0,s&&(b=null,y=d.ranges[0],u.removeSelectionMarker(y)),u.once("mouseup",function(){vare=d.toOrientedRange();b&&e.isEmpty()&&i(b.cursor,e.cursor)?d.substractPoint(e.cursor):(s?d.substractPoint(y.cursor):y&&(u.removeSelectionMarker(y),d.addRange(y)),d.addRange(e)),u.$blockScrolling--,u.inVirtualSelectionMode=!1})}elseif("block"==h){e.stop(),u.inVirtualSelectionMode=!0;varx,S=[],$=function(){vare
},function(e){e.exports=function(){thrownewError("define cannot be used indirect")}},function(e){e.exports=function(e){returne.webpackPolyfill||(e.deprecate=function(){},e.paths=[],e.children=[],e.webpackPolyfill=1),e}},function(e,t,i){(function(e){functioni(e,t){for(vari=0,n=e.length-1;n>=0;n--){varo=e[n];"."===o?e.splice(n,1):".."===o?(e.splice(n,1),i++):i&&(e.splice(n,1),i--)}if(t)for(;i--;i)e.unshift("..");returne}functionn(e,t){if(e.filter)returne.filter(t);for(vari=[],n=0;n<e.length;n++)t(e[n],n,e)&&i.push(e[n]);returni}varo=/^(\/?|)([\s\S]*?)((?:\.{1,2}|[^\/]+?|)(\.[^.\/]*|))(?:[\/]*)$/,r=function(e){returno.exec(e).slice(1)};t.resolve=function(){for(vart="",o=!1,r=arguments.length-1;r>=-1&&!o;r--){vars=r>=0?arguments[r]:e.cwd();if("string"!=typeofs)thrownewTypeError("Arguments to path.resolve must be strings");s&&(t=s+"/"+t,o="/"===s.charAt(0))}returnt=i(n(t.split("/"),function(e){return!!e}),!o).join("/"),(o?"/":"")+t||"."},t.normalize=function(e){varo=t.isAbsolute(e),r="/"===s(e,-1);returne=i(n(e.split("/"),function(e){return!!e}),!o).join("/"),e||o||(e="."),e&&r&&(e+="/"),(o?"/":"")+e},t.isAbsolute=function(e){return"/"===e.charAt(0)},t.join=function(){vare=Array.prototype.slice.call(arguments,0);returnt.normalize(n(e,function(e){if("string"!=typeofe)thrownewTypeError("Arguments to path.join must be strings");returne}).join("/"))},t.relative=function(e,i){functionn(e){for(vart=0;t<e.length&&""===e[t];t++);for(vari=e.length-1;i>=0&&""===e[i];i--);returnt>i?[]:e.slice(t,i-t+1)}e=t.resolve(e).substr(1),i=t.resolve(i).substr(1);for(varo=n(e.split("/")),r=n(i.split("/")),s=Math.min(o.length,r.length),a=s,l=0;s>l;l++)if(o[l]!==r[l]){a=l;break}for(varc=[],l=a;l<o.length;l++)c.push("..");returnc=c.concat(r.slice(a)),c.join("/")},t.sep="/",t.delimiter=":",t.dirname=function(e){vart=r(e),i=t[0],n=t[1];returni||n?(n&&(n=n.substr(0,n.length-1)),i+n):"."},t.basename=function(e,t){vari=r(e)[2];returnt&&i.substr(-1*t.length)===t&&(i=i.substr(0,i.length-t.length)),i},t.extname=function(e){returnr(e)[3]};vars="b"==="ab".substr(-1)?function(e,t,i){returne.substr(t,i)}:function(e,t,i){return0>t&&(t=e.length+t),e.substr(t,i)}}).call(t,i(20))},function(e){functiont(){}vari=e.exports={};i.nextTick=function(){vare="undefined"!=typeofwindow&&window.setImmediate,t="undefined"!=typeofwindow&&window.MutationObserver,i="undefined"!=typeofwindow&&window.postMessage&&window.addEventListener;if(e)returnfunction(e){returnwindow.setImmediate(e)};varn=[];if(t){varo=document.createElement("div"),r=newMutationObserver(function(){vare=n.slice();n.length=0,e.forEach(function(e){e()})});returnr.observe(o,{attributes:!0}),function(e){n.length||o.setAttribute("yes","no"),n.push(e)}}returni?(window.addEventListener("message",function(e){vart=e.source;if((t===window||null===t)&&"process-tick"===e.data&&(e.stopPropagation(),n.length>0)){vari=n.shift();i()}},!0),function(e){n.push(e),window.postMessage("process-tick","*")}):function(e){setTimeout(e,0)}}(),i.title="browser",i.browser=!0,i.env={},i.argv=[],i.on=t,i.addListener=t,i.once=t,i.off=t,i.removeListener=t,i.removeAllListeners=t,i.emit=t,i.binding=function(){thrownewError("process.binding is not supported")},i.cwd=function(){return"/"},i.chdir=function(){thrownewError("process.chdir is not supported")}},function(e,t){(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,o=t.endings,r=t.type;if(o)for(vars=0,a=e.length;a>s;++s)n.append(e[s],o);elsefor(vars=0,a=e.length;a>s;++s)n.append(e[s]);returnr?n.getBlob(r):n.getBlob()}}e.exports=i()}).call(t,function(){returnthis}())}])});