(o=>{var e,n;void 0!==o.window&&o.document||o.require&&o.define||(o.console||(o.console=function(){var t=Array.prototype.slice.call(arguments,0);postMessage({type:"log",data:t})},o.console.error=o.console.warn=o.console.log=o.console.trace=o.console),((o.window=o).ace=o).onerror=function(t,e,n,r,i){postMessage({type:"error",data:{message:t,data:i.data,file:e,line:n,col:r,stack:i.stack}})},o.normalizeModule=function(t,e){if(-1!==e.indexOf("!"))return n=e.split("!"),o.normalizeModule(t,n[0])+"!"+o.normalizeModule(t,n[1]);if("."==e.charAt(0)){var n=t.split("/").slice(0,-1).join("/");for(e=(n?n+"/":"")+e;-1!==e.indexOf(".")&&r!=e;){var r=e;e=e.replace(/^\.\//,"").replace(/\/\.\//,"/").replace(/[^\/]+\/\.\.\//,"")}}return e},o.require=function(t,e){if(e||(e=t,t=null),!e.charAt)throw new Error("worker.js require() accepts only (parentId, id) as arguments");e=o.normalizeModule(t,e);var n=o.require.modules[e];return n?(n.initialized||(n.initialized=!0,n.exports=n.factory().exports),n.exports):o.require.tlns?(".js"!=(n=((t,e)=>{for(var n=t,r="";n;){var i=e[n];if("string"==typeof i)return i+r;if(i)return i.location.replace(/\/*$/,"/")+(r||i.main||i.name);if(!1===i)return"";i=n.lastIndexOf("/");if(-1===i)break;r=n.substr(i)+r,n=n.slice(0,i)}return t})(e,o.require.tlns)).slice(-3)&&(n+=".js"),o.require.id=e,o.require.modules[e]={},importScripts(n),o.require(t,e)):console.log("unable to load "+e)},o.require.modules={},o.require.tlns={},o.define=function(e,n,r){var i;2==arguments.length?(r=n,"string"!=typeof e&&(n=e,e=o.require.id)):1==arguments.length&&(r=e,n=[],e=o.require.id),"function"!=typeof r?o.require.modules[e]={exports:r,initialized:!0}:(n.length||(n=["require","exports","module"]),i=function(t){return o.require(e,t)},o.require.modules[e]={exports:{},factory:function(){var e=this,t=r.apply(this,n.slice(0,r.length).map(function(t){switch(t){case"require":return i;case"exports":return e.exports;case"module":return e;default:return i(t)}}));return t&&(e.exports=t),e}})},o.define.amd={},require.tlns={},o.initBaseUrls=function(t){for(var e in t)require.tlns[e]=t[e]},o.initSender=function(){function t(){}var e=o.require("ace/lib/event_emitter").EventEmitter,n=o.require("ace/lib/oop");return function(){n.implement(this,e),this.callback=function(t,e){postMessage({type:"call",id:e,data:t})},this.emit=function(t,e){postMessage({type:"event",name:t,data:e})}}.call(t.prototype),new t},e=o.main=null,n=o.sender=null,o.onmessage=function(t){var t=t.data;if(t.event&&n)n._signal(t.event,t.data);else if(t.command)if(e[t.command])e[t.command].apply(e,t.args);else{if(!o[t.command])throw new Error("Unknown command:"+t.command);o[t.command].apply(o,t.args)}else t.init&&(o.initBaseUrls(t.tlns),n=o.sender=o.initSender(),t=require(t.module)[t.classname],e=o.main=new t(n))})})(this),define("ace/lib/oop",[],function(t,n,e){n.inherits=function(t,e){t.super_=e,t.prototype=Object.create(e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}})},n.mixin=function(t,e){for(var n in e)t[n]=e[n];return t},n.implement=function(t,e){n.mixin(t,e)}}),define("ace/lib/lang",[],function(t,e,n){e.last=function(t){return t[t.length-1]},e.stringReverse=function(t){return t.split("").reverse().join("")},e.stringRepeat=function(t,e){for(var n="";0<e;)1&e&&(n+=t),(e>>=1)&&(t+=t);return n};var r=/^\s\s*/,i=/\s\s*$/;e.stringTrimLeft=function(t){return t.replace(r,"")},e.stringTrimRight=function(t){return t.replace(i,"")},e.copyObject=function(t){var e,n={};for(e in t)n[e]=t[e];return n},e.copyArray=function(t){for(var e=[],n=0,r=t.length;n<r;n++)t[n]&&"object"==typeof t[n]?e[n]=this.copyObject(t[n]):e[n]=t[n];return e},e.deepCopy=function t(e){if("object"!=typeof e||!e)return e;if(Array.isArray(e))for(var n=[],r=0;r<e.length;r++)n[r]=t(e[r]);else{if("[object Object]"!==Object.prototype.toString.call(e))return e;for(var r in n={},e)n[r]=t(e[r])}return n},e.arrayToMap=function(t){for(var e={},n=0;n<t.length;n++)e[t[n]]=1;return e},e.createMap=function(t){var e,n=Object.create(null);for(e in t)n[e]=t[e];return n},e.arrayRemove=function(t,e){for(var n=0;n<=t.length;n++)e===t[n]&&t.splice(n,1)},e.escapeRegExp=function(t){return t.replace(/([.*+?^${}()|[\]\/\\])/g,"\\$1")},e.escapeHTML=function(t){return(""+t).replace(/&/g,"&").replace(/"/g,""").replace(/'/g,"'").replace(/</g,"<")},e.getMatchOffsets=function(t,e){var n=[];return t.replace(e,function(t){n.push({offset:arguments[arguments.length-2],length:t.length})}),n},e.deferredCall=function(t){function e(){r=null,t()}function n(t){return n.cancel(),r=setTimeout(e,t||0),n}var r=null;return(n.schedule=n).call=function(){return this.cancel(),t(),n},n.cancel=function(){return clearTimeout(r),r=null,n},n.isPending=function(){return r},n},e.delayedCall=function(t,e){function n(){i=null,t()}function r(t){null==i&&(i=setTimeout(n,t||e))}var i=null;return r.delay=function(t){i&&clearTimeout(i),i=setTimeout(n,t||e)},(r.schedule=r).call=function(){this.cancel(),t()},r.cancel=function(){i&&clearTimeout(i),i=null},r.isPending=function(){return i},r}}),define("ace/range",[],function(t,e,n){function o(t,e,n,r){this.start={row:t,column:e},this.end={row:n,column:r}}(function(){this.isEqual=function(t){return this.start.row===t.start.row&&this.end.row===t.end.row&&this.start.column===t.start.column&&this.end.column===t.end.column},this.toString=function(){return"Range: ["+this.start.row+"/"+this.start.column+"] -> ["+this.end.row+"/"+this.end.column+"]"},this.contains=function(t,e){return 0==this.compare(t,e)},this.compareRange=function(t){var e=t.end,t=t.start,e=this.compare(e.row,e.column);return 1==e?1==(e=this.compare(t.row,t.column))?2:0==e?1:0:-1==e?-2:-1==(e=this.compare(t.row,t.column))?-1:1==e?42:0},this.comparePoint=function(t){return this.compare(t.row,t.column)},this.containsRange=function(t){return 0==this.comparePoint(t.start)&&0==this.comparePoint(t.end)},this.intersects=function(t){t=this.compareRange(t);return-1==t||0==t||1==t},this.isEnd=function(t,e){return this.end.row==t&&this.end.column==e},this.isStart=function(t,e){return this.start.row==t&&this.start.column==e},this.setStart=function(t,e){"object"==typeof t?(this.start.column=t.column,this.start.row=t.row):(this.start.row=t,this.start.column=e)},this.setEnd=function(t,e){"object"==typeof t?(this.end.column=t.column,this.end.row=t.row):(this.end.row=t,this.end.column=e)},this.inside=function(t,e){return 0==this.compare(t,e)&&!this.isEnd(t,e)&&!this.isStart(t,e)},this.insideStart=function(t,e){return 0==this.compare(t,e)&&!this.isEnd(t,e)},this.insideEnd=function(t,e){return 0==this.compare(t,e)&&!this.isStart(t,e)},this.compare=function(t,e){return this.isMultiLine()||t!==this.start.row?t<this.start.row?-1:t>this.end.row?1:this.start.row===t?e>=this.start.column?0:-1:this.end.row!==t||e<=this.end.column?0:1:e<this.start.column?-1:e>this.end.column?1:0},this.compareStart=function(t,e){return this.start.row==t&&this.start.column==e?-1:this.compare(t,e)},this.compareEnd=function(t,e){return this.end.row==t&&this.end.column==e?1:this.compare(t,e)},this.compareInside=function(t,e){return this.end.row==t&&this.end.column==e?1:this.start.row==t&&this.start.column==e?-1:this.compare(t,e)},this.clipRows=function(t,e){var n,r;return this.end.row>e?n={row:e+1,column:0}:this.end.row<t&&(n={row:t,column:0}),this.start.row>e?r={row:e+1,column:0}:this.start.row<t&&(r={row:t,column:0}),o.fromPoints(r||this.start,n||this.end)},this.extend=function(t,e){var n,r,i=this.compare(t,e);return 0==i?this:(-1==i?n={row:t,column:e}:r={row:t,column:e},o.fromPoints(n||this.start,r||this.end))},this.isEmpty=function(){return this.start.row===this.end.row&&this.start.column===this.end.column},this.isMultiLine=function(){return this.start.row!==this.end.row},this.clone=function(){return o.fromPoints(this.start,this.end)},this.collapseRows=function(){return 0==this.end.column?new o(this.start.row,0,Math.max(this.start.row,this.end.row-1),0):new o(this.start.row,0,this.end.row,0)},this.toScreenRange=function(t){var e=t.documentToScreenPosition(this.start),t=t.documentToScreenPosition(this.end);return new o(e.row,e.column,t.row,t.column)},this.moveBy=function(t,e){this.start.row+=t,this.start.column+=e,this.end.row+=t,this.end.column+=e}}).call(o.prototype),o.fromPoints=function(t,e){return new o(t.row,t.column,e.row,e.column)},o.comparePoints=function(t,e){return t.row-e.row||t.column-e.column},o.comparePoints=function(t,e){return t.row-e.row||t.column-e.column},e.Range=o}),define("ace/apply_delta",[],function(t,e,n){e.applyDelta=function(t,e,n){var r=e.start.row,i=e.start.column,o=t[r]||"";switch(e.action){case"insert":1===e.lines.length?t[r]=o.substring(0,i)+e.lines[0]+o.substring(i):(s=[r,1].concat(e.lines),t.splice.apply(t,s),t[r]=o.substring(0,i)+t[r],t[r+e.lines.length-1]+=o.substring(i));break;case"remove":var s=e.end.column,a=e.end.row;r===a?t[r]=o.substring(0,i)+o.substring(s):t.splice(r,a-r+1,o.substring(0,i)+t[a].substring(s))}}}),define("ace/lib/event_emitter",[],function(t,e,n){function o(){this.propagationStopped=!0}function s(){this.defaultPrevented=!0}var r={};r._emit=r._dispatchEvent=function(t,e){this._eventRegistry||(this._eventRegistry={}),this._defaultHandlers||(this._defaultHandlers={});var n=this._eventRegistry[t]||[],r=this._defaultHandlers[t];if(n.length||r){(e="object"==typeof e&&e?e:{}).type||(e.type=t),e.stopPropagation||(e.stopPropagation=o),e.preventDefault||(e.preventDefault=s);for(var n=n.slice(),i=0;i<n.length&&(n[i](e,this),!e.propagationStopped);i++);return r&&!e.defaultPrevented?r(e,this):void 0}},r._signal=function(t,e){if(n=(this._eventRegistry||{})[t])for(var n=n.slice(),r=0;r<n.length;r++)n[r](e,this)},r.once=function(e,n){var r=this;if(this.on(e,function t(){r.off(e,t),n.apply(null,arguments)}),!n)return new Promise(function(t){n=t})},r.setDefaultHandler=function(t,e){var n,r,i=this._defaultHandlers;(i=i||(this._defaultHandlers={_disabled_:{}}))[t]&&(r=i[t],(n=i._disabled_[t])||(i._disabled_[t]=n=[]),n.push(r),-1!=(r=n.indexOf(e)))&&n.splice(r,1),i[t]=e},r.removeDefaultHandler=function(t,e){var n,r=this._defaultHandlers;r&&(n=r._disabled_[t],r[t]==e?n&&this.setDefaultHandler(t,n.pop()):n&&-1!=(r=n.indexOf(e))&&n.splice(r,1))},r.on=r.addEventListener=function(t,e,n){this._eventRegistry=this._eventRegistry||{};var r=this._eventRegistry[t];return-1==(r=r||(this._eventRegistry[t]=[])).indexOf(e)&&r[n?"unshift":"push"](e),e},r.off=r.removeListener=r.removeEventListener=function(t,e){this._eventRegistry=this._eventRegistry||{};t=this._eventRegistry[t];t&&-1!==(e=t.indexOf(e))&&t.splice(e,1)},r.removeAllListeners=function(t){t||(this._eventRegistry=this._defaultHandlers=void 0),this._eventRegistry&&(this._eventRegistry[t]=void 0),this._defaultHandlers&&(this._defaultHandlers[t]=void 0)},e.EventEmitter=r}),define("ace/anchor",[],function(t,e,n){var r=t("./lib/oop"),i=t("./lib/event_emitter").EventEmitter,t=e.Anchor=function(t,e,n){this.$onChange=this.onChange.bind(this),this.attach(t),void 0===n?this.setPosition(e.row,e.column):this.setPosition(e,n)};!function(){function a(t,e,n){n=n?t.column<=e.column:t.column<e.column;return t.row<e.row||t.row==e.row&&n}r.implement(this,i),this.getPosition=function(){return this.$clipPositionToDocument(this.row,this.column)},this.getDocument=function(){return this.document},this.$insertRight=!1,this.onChange=function(t){var e,n,r,i,o,s;t.start.row==t.end.row&&t.start.row!=this.row||t.start.row>this.row||(t=t,e={row:this.row,column:this.column},n=this.$insertRight,r=((s="insert"==t.action)?1:-1)*(t.end.row-t.start.row),i=(s?1:-1)*(t.end.column-t.start.column),o=t.start,s=s?o:t.end,t=a(e,o,n)?{row:e.row,column:e.column}:a(s,e,!n)?{row:e.row+r,column:e.column+(e.row==s.row?i:0)}:{row:o.row,column:o.column},this.setPosition(t.row,t.column,!0))},this.setPosition=function(t,e,n){n=n?{row:t,column:e}:this.$clipPositionToDocument(t,e);this.row==n.row&&this.column==n.column||(t={row:this.row,column:this.column},this.row=n.row,this.column=n.column,this._signal("change",{old:t,value:n}))},this.detach=function(){this.document.off("change",this.$onChange)},this.attach=function(t){this.document=t||this.document,this.document.on("change",this.$onChange)},this.$clipPositionToDocument=function(t,e){var n={};return t>=this.document.getLength()?(n.row=Math.max(0,this.document.getLength()-1),n.column=this.document.getLine(n.row).length):t<0?(n.row=0,n.column=0):(n.row=t,n.column=Math.min(this.document.getLine(n.row).length,Math.max(0,e))),e<0&&(n.column=0),n}}.call(t.prototype)}),define("ace/document",[],function(t,e,n){function r(t){this.$lines=[""],0===t.length?this.$lines=[""]:Array.isArray(t)?this.insertMergedLines({row:0,column:0},t):this.insert({row:0,column:0},t)}var i=t("./lib/oop"),o=t("./apply_delta").applyDelta,s=t("./lib/event_emitter").EventEmitter,a=t("./range").Range,u=t("./anchor").Anchor;(function(){i.implement(this,s),this.setValue=function(t){var e=this.getLength()-1;this.remove(new a(0,0,e,this.getLine(e).length)),this.insert({row:0,column:0},t)},this.getValue=function(){return this.getAllLines().join(this.getNewLineCharacter())},this.createAnchor=function(t,e){return new u(this,t,e)},0==="aaa".split(/a/).length?this.$split=function(t){return t.replace(/\r\n|\r/g,"\n").split("\n")}:this.$split=function(t){return t.split(/\r\n|\r|\n/)},this.$detectNewLine=function(t){t=t.match(/^.*?(\r\n|\r|\n)/m);this.$autoNewLine=t?t[1]:"\n",this._signal("changeNewLineMode")},this.getNewLineCharacter=function(){switch(this.$newLineMode){case"windows":return"\r\n";case"unix":return"\n";default:return this.$autoNewLine||"\n"}},this.$autoNewLine="",this.$newLineMode="auto",this.setNewLineMode=function(t){this.$newLineMode!==t&&(this.$newLineMode=t,this._signal("changeNewLineMode"))},this.getNewLineMode=function(){return this.$newLineMode},this.isNewLine=function(t){return"\r\n"==t||"\r"==t||"\n"==t},this.getLine=function(t){return this.$lines[t]||""},this.getLines=function(t,e){return this.$lines.slice(t,e+1)},this.getAllLines=function(){return this.getLines(0,this.getLength())},this.getLength=function(){return this.$lines.length},this.getTextRange=function(t){return this.getLinesForRange(t).join(this.getNewLineCharacter())},this.getLinesForRange=function(t){var e,n;return t.start.row===t.end.row?e=[this.getLine(t.start.row).substring(t.start.column,t.end.column)]:((e=this.getLines(t.start.row,t.end.row))[0]=(e[0]||"").substring(t.start.column),n=e.length-1,t.end.row-t.start.row==n&&(e[n]=e[n].substring(0,t.end.column))),e},this.insertLines=function(t,e){return console.warn("Use of document.insertLines is deprecated. Use the insertFullLines method instead."),this.insertFullLines(t,e)},this.removeLines=function(t,e){return console.warn("Use of document.removeLines is deprecated. Use the removeFullLines method instead."),this.removeFullLines(t,e)},this.insertNewLine=function(t){return console.warn("Use of document.insertNewLine is deprecated. Use insertMergedLines(position, ['', '']) instead."),this.insertMergedLines(t,["",""])},this.insert=function(t,e){return this.getLength()<=1&&this.$detectNewLine(e),this.insertMergedLines(t,this.$split(e))},this.insertInLine=function(t,e){var n=this.clippedPos(t.row,t.column),t=this.pos(t.row,t.column+e.length);return this.applyDelta({start:n,end:t,action:"insert",lines:[e]},!0),this.clonePos(t)},this.clippedPos=function(t,e){var n=this.getLength(),n=(void 0===t?t=n:t<0?t=0:n<=t&&(t=n-1,e=void 0),this.getLine(t));return null==e&&(e=n.length),{row:t,column:e=Math.min(Math.max(e,0),n.length)}},this.clonePos=function(t){return{row:t.row,column:t.column}},this.pos=function(t,e){return{row:t,column:e}},this.$clipPosition=function(t){var e=this.getLength();return t.row>=e?(t.row=Math.max(0,e-1),t.column=this.getLine(e-1).length):(t.row=Math.max(0,t.row),t.column=Math.min(Math.max(t.column,0),this.getLine(t.row).length)),t},this.insertFullLines=function(t,e){var n=0,n=(t=Math.min(Math.max(t,0),this.getLength()))<this.getLength()?(e=e.concat([""]),0):(e=[""].concat(e),this.$lines[--t].length);this.insertMergedLines({row:t,column:n},e)},this.insertMergedLines=function(t,e){var t=this.clippedPos(t.row,t.column),n={row:t.row+e.length-1,column:(1==e.length?t.column:0)+e[e.length-1].length};return this.applyDelta({start:t,end:n,action:"insert",lines:e}),this.clonePos(n)},this.remove=function(t){var e=this.clippedPos(t.start.row,t.start.column),t=this.clippedPos(t.end.row,t.end.column);return this.applyDelta({start:e,end:t,action:"remove",lines:this.getLinesForRange({start:e,end:t})}),this.clonePos(e)},this.removeInLine=function(t,e,n){e=this.clippedPos(t,e),t=this.clippedPos(t,n);return this.applyDelta({start:e,end:t,action:"remove",lines:this.getLinesForRange({start:e,end:t})},!0),this.clonePos(e)},this.removeFullLines=function(t,e){t=Math.min(Math.max(0,t),this.getLength()-1);var n=(e=Math.min(Math.max(0,e),this.getLength()-1))==this.getLength()-1&&0<t,r=e<this.getLength()-1,i=n?t-1:t,n=n?this.getLine(i).length:0,o=r?e+1:e,r=r?0:this.getLine(o).length,i=new a(i,n,o,r),n=this.$lines.slice(t,e+1);return this.applyDelta({start:i.start,end:i.end,action:"remove",lines:this.getLinesForRange(i)}),n},this.removeNewLine=function(t){t<this.getLength()-1&&0<=t&&this.applyDelta({start:this.pos(t,this.getLine(t).length),end:this.pos(t+1,0),action:"remove",lines:["",""]})},this.replace=function(t,e){return t instanceof a||(t=a.fromPoints(t.start,t.end)),0===e.length&&t.isEmpty()?t.start:e==this.getTextRange(t)?t.end:(this.remove(t),e?this.insert(t.start,e):t.start)},this.applyDeltas=function(t){for(var e=0;e<t.length;e++)this.applyDelta(t[e])},this.revertDeltas=function(t){for(var e=t.length-1;0<=e;e--)this.revertDelta(t[e])},this.applyDelta=function(t,e){var n="insert"==t.action;(n?t.lines.length<=1&&!t.lines[0]:!a.comparePoints(t.start,t.end))||(n&&2e4<t.lines.length?this.$splitAndapplyLargeDelta(t,2e4):(o(this.$lines,t,e),this._signal("change",t)))},this.$safeApplyDelta=function(t){var e=this.$lines.length;("remove"==t.action&&t.start.row<e&&t.end.row<e||"insert"==t.action&&t.start.row<=e)&&this.applyDelta(t)},this.$splitAndapplyLargeDelta=function(t,e){for(var n=t.lines,r=n.length-e+1,i=t.start.row,o=t.start.column,s=0,a=0;s<r;s=a){a+=e-1;var u=n.slice(s,a);u.push(""),this.applyDelta({start:this.pos(i+s,o),end:this.pos(i+a,o=0),action:t.action,lines:u},!0)}t.lines=n.slice(s),t.start.row=i+s,t.start.column=o,this.applyDelta(t,!0)},this.revertDelta=function(t){this.$safeApplyDelta({start:this.clonePos(t.start),end:this.clonePos(t.end),action:"insert"==t.action?"remove":"insert",lines:t.lines.slice()})},this.indexToPosition=function(t,e){for(var n=this.$lines||this.getAllLines(),r=this.getNewLineCharacter().length,i=e||0,o=n.length;i<o;i++)if((t-=n[i].length+r)<0)return{row:i,column:t+n[i].length+r};return{row:o-1,column:t+n[o-1].length+r}},this.positionToIndex=function(t,e){for(var n=this.$lines||this.getAllLines(),r=this.getNewLineCharacter().length,i=0,o=Math.min(t.row,n.length),s=e||0;s<o;++s)i+=n[s].length+r;return i+t.column}}).call(r.prototype),e.Document=r}),define("ace/worker/mirror",[],function(t,e,n){t("../range").Range;var r=t("../document").Document,a=t("../lib/lang"),t=e.Mirror=function(t){this.sender=t;var i=this.doc=new r(""),o=this.deferredUpdate=a.delayedCall(this.onUpdate.bind(this)),s=this;t.on("change",function(t){var e,n=t.data;if(n[0].start)i.applyDeltas(n);else for(var r=0;r<n.length;r+=2)e=Array.isArray(n[r+1])?{action:"insert",start:n[r],lines:n[r+1]}:{action:"remove",start:n[r],end:n[r+1]},i.applyDelta(e,!0);if(s.$timeout)return o.schedule(s.$timeout);s.onUpdate()})};!function(){this.$timeout=500,this.setTimeout=function(t){this.$timeout=t},this.setValue=function(t){this.doc.setValue(t),this.deferredUpdate.schedule(this.$timeout)},this.getValue=function(t){this.sender.callback(this.doc.getValue(),t)},this.onUpdate=function(){},this.isPending=function(){return this.deferredUpdate.isPending()}}.call(t.prototype)}),define("ace/mode/xml/sax",[],function(t,e,n){function r(){}function i(n,$,r,i,o){function s(t){var e=t.slice(1,-1);return e in r?r[e]:"#"===e.charAt(0)?65535<(e=parseInt(e.substr(1).replace("x","0x")))?(e-=65536,String.fromCharCode(55296+(e>>10),56320+(1023&e))):String.fromCharCode(e):(o.error("entity not found:"+t),t)}function t(t){var e=n.substring(g,t).replace(/&#?\w+;/g,s);f&&a(g),i.characters(e,0,t-g),g=t}function a(t,e){for(;U<=t&&(e=k.exec(n));)m=e.index,U=m+e[0].length,f.lineNumber++;f.columnNumber=t-m+1}for(var e,u,c,l,h,F,d,m=0,U=0,k=/.+(?:\r\n?|\n)|.*$/g,f=i.locator,p=[{currentNSMap:$}],q={},g=0;;){if((b=n.indexOf("<",g))<0)return void(n.substr(g).match(/^\s*$/)||(u=(e=i.document).createTextNode(n.substr(g)),e.appendChild(u),i.currentElement=u));switch(g<b&&t(b),n.charAt(b+1)){case"/":var w=n.indexOf(">",b+3),v=n.substring(b+2,w);if(1<p.length){var N,j=(N=p.pop()).localNSMap;if(N.tagName!=v&&o.fatalError("end tag name: "+v+" does not match the current start tagName: "+N.tagName),i.endElement(N.uri,N.localName,v),j)for(var B in j)i.endPrefixMapping(B);w++}else o.fatalError("end tag name not found for: "+v);break;case"?":f&&a(b),w=((t,e,n)=>{var r=t.indexOf("?>",e);if(r){t=t.substring(e,r).match(/^<\?(\S*)\s*([\s\S]*?)\s*$/);if(t)return t[0].length,n.processingInstruction(t[1],t[2]),r+2}return-1})(n,b,i);break;case"!":f&&a(b),w=((t,e,n,r)=>{var i,o;return"-"===t.charAt(e+2)?"-"===t.charAt(e+3)?(o=t.indexOf("--\x3e",e+4),e<o?(n.comment(t,e+4,o-e-4),o+3):(r.error("Unclosed comment"),-1)):-1:"CDATA["==t.substr(e+3,6)?(o=t.indexOf("]]>",e+9),e<o?(n.startCDATA(),n.characters(t,e+9,o-e-9),n.endCDATA(),o+3):(r.error("Unclosed CDATA"),-1)):(o=((t,e)=>{var n,r=[],i=/'[^']+'|"[^"]+"|[^\s<>\/=]+=?|(\/?\s*>|<)/g;for(i.lastIndex=e,i.exec(t);n=i.exec(t);)if(r.push(n),n[1])return r})(t,e),1<(r=o.length)&&/!doctype/i.test(o[0][0])?(t=o[1][0],e=3<r&&/^public$/i.test(o[2][0])&&o[3][0],i=4<r&&o[4][0],o=o[r-1],n.startDTD(t,e&&e.replace(/^(['"])(.*?)\1$/,"$2"),i&&i.replace(/^(['"])(.*?)\1$/,"$2")),n.endDTD(),o.index+o[0].length):-1)})(n,b,i,o);break;default:try{f&&a(b);var y=new G,w=((t,e,n,r,i)=>{for(var o,s=++e,a=X;;){var u=t.charAt(s);switch(u){case"=":if(a===Q)o=t.slice(e,s);else if(a!==Z)throw new Error("attribute equal must after attrName");a=J;break;case"'":case'"':if(a===J){if(e=s+1,!(0<(s=t.indexOf(u,e))))throw new Error("attribute value no end '"+u+"' match");c=t.slice(e,s).replace(/&#?\w+;/g,r),n.add(o,c,e-1)}else{if(a!=K)throw new Error('attribute value must after "="');c=t.slice(e,s).replace(/&#?\w+;/g,r),n.add(o,c,e),i.warning('attribute "'+o+'" missed start quot('+u+")!!"),e=s+1}a=tt;break;case"/":switch(a){case X:n.setTagName(t.slice(e,s));case tt:case et:case nt:a=nt,n.closed=!0;case K:case Q:case Z:break;default:throw new Error("attribute invalid close char('/')")}break;case"":i.error("unexpected end of input");case">":switch(a){case X:n.setTagName(t.slice(e,s));case tt:case et:case nt:break;case K:case Q:"/"===(c=t.slice(e,s)).slice(-1)&&(n.closed=!0,c=c.slice(0,-1));case Z:a===Z&&(c=o),a==K?(i.warning('attribute "'+c+'" missed quot(")!!'),n.add(o,c.replace(/&#?\w+;/g,r),e)):(i.warning('attribute "'+c+'" missed value!! "'+c+'" instead!!'),n.add(c,c,e));break;case J:throw new Error("attribute value missed!!")}return s;case"":u=" ";default:if(u<=" ")switch(a){case X:n.setTagName(t.slice(e,s)),a=et;break;case Q:o=t.slice(e,s),a=Z;break;case K:var c=t.slice(e,s).replace(/&#?\w+;/g,r);i.warning('attribute "'+c+'" missed quot(")!!'),n.add(o,c,e);case tt:a=et}else switch(a){case Z:i.warning('attribute "'+o+'" missed value!! "'+o+'" instead!!'),n.add(o,o,e),e=s,a=Q;break;case tt:i.warning('attribute space is required"'+o+'"!!');case et:a=Q,e=s;break;case J:a=K,e=s;break;case nt:throw new Error("elements closed character '/' and '>' must be connected to")}}s++}})(n,b,y,s,o),V=y.length;if(V&&f){for(var H=Y(f,{}),b=0;b<V;b++){var z=y[b];a(z.offset),z.offset=Y(f,{})}Y(H,f)}!y.closed&&(c=n,l=w,h=y.tagName,d=void 0,(d=null==(d=(F=q)[h])?F[h]=c.lastIndexOf("</"+h+">"):d)<l)&&(y.closed=!0,r.nbsp||o.warning("unclosed xml attribute")),O=A=P=M=I=R=L=C=S=T=x=_=D=E=void 0;for(var E=y,D=i,_=p,x=E.tagName,T=null,S=_[_.length-1].currentNSMap,C=E.length;C--;){var A,L=E[C],R=L.qName,I=L.value,M=R.indexOf(":");R=0<M?(P=L.prefix=R.slice(0,M),A=R.slice(M+1),"xmlns"===P&&A):(P=null,"xmlns"===(A=R)&&""),L.localName=A,!1!==R&&(null==T&&(T={},W(S,S={})),S[R]=T[R]=I,L.uri="http://www.w3.org/2000/xmlns/",D.startPrefixMapping(R,I))}for(C=E.length;C--;)L=E[C],(P=L.prefix)&&("xml"===P&&(L.uri="http://www.w3.org/XML/1998/namespace"),"xmlns"!==P)&&(L.uri=S[P]);A=0<(M=x.indexOf(":"))?(P=E.prefix=x.slice(0,M),E.localName=x.slice(M+1)):(P=null,E.localName=x);var O=E.uri=S[P||""];if(D.startElement(O,A,x,E),E.closed){if(D.endElement(O,A,x),T)for(var P in T)D.endPrefixMapping(P)}else E.currentNSMap=S,E.localNSMap=T,_.push(E);"http://www.w3.org/1999/xhtml"!==y.uri||y.closed?w++:w=((t,e,n,r,i)=>{if(/^(?:script|textarea)$/i.test(n)){var o=t.indexOf("</"+n+">",e),t=t.substring(e+1,o);if(/[&<]/.test(t))return/^script$/i.test(n)||(t=t.replace(/&#?\w+;/g,r)),i.characters(t,0,t.length),o}return e+1})(n,w,y.tagName,s,i)}catch(t){o.error("element parse error: "+t),w=-1}}w<0?t(b+1):g=w}}function Y(t,e){return e.lineNumber=t.lineNumber,e.columnNumber=t.columnNumber,e}function W(t,e){for(var n in t)e[n]=t[n]}function G(t){}function o(t,e){return t.__proto__=e,t}var s=/[A-Z_a-z\xC0-\xD6\xD8-\xF6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]/,a=new RegExp("[\\-\\.0-9"+s.source.slice(1,-1)+"·̀-ͯ\\ux203F-⁀]"),u=new RegExp("^"+s.source+a.source+"*(?::"+s.source+a.source+"*)?$"),X=0,Q=1,Z=2,J=3,K=4,tt=5,et=6,nt=7;return r.prototype={parse:function(t,e,n){var r=this.domBuilder;r.startDocument(),W(e,e={}),i(t,e,n,r,this.errorHandler),r.endDocument()}},G.prototype={setTagName:function(t){if(!u.test(t))throw new Error("invalid tagName:"+t);this.tagName=t},add:function(t,e,n){if(!u.test(t))throw new Error("invalid attribute:"+t);this[this.length++]={qName:t,value:e,offset:n}},length:0,getLocalName:function(t){return this[t].localName},getOffset:function(t){return this[t].offset},getQName:function(t){return this[t].qName},getURI:function(t){return this[t].uri},getValue:function(t){return this[t].value}},o({},o.prototype)instanceof o||0,r}),define("ace/mode/xml/dom",[],function($,F,U){function o(t,e){for(var n in t)e[n]=t[n]}function t(t,e){var n,r=function(){},i=t.prototype;Object.create&&(n=Object.create(e.prototype),i.__proto__=n),i instanceof e||(r.prototype=e.prototype,o(i,r=new r),t.prototype=i=r),i.constructor!=t&&("function"!=typeof t&&console.error("unknown Class:"+t),i.constructor=t)}function s(t,e){var n;return e instanceof Error?n=e:(n=this,Error.call(this,P[t]),this.message=P[t],Error.captureStackTrace&&Error.captureStackTrace(this,s)),n.code=t,e&&(this.message=this.message+": "+e),n}function d(){}function e(t,e){this._node=t,this._refresh=e,n(this)}function n(t){var e,n=t._node._inc||t._node.ownerDocument._inc;t._inc!=n&&(e=t._refresh(t._node),I(t,"length",e.length),o(e,t),t._inc=n)}function m(){}function a(t,e){for(var n=t.length;n--;)if(t[n]===e)return n}function r(t,e,n,r){r?e[a(e,r)]=n:e[e.length++]=n,t&&(e=(n.ownerElement=t).ownerDocument)&&(r&&p(e,t,r),r=t,t=n,(n=e)&&n._inc++,"http://www.w3.org/2000/xmlns/"==t.namespaceURI)&&(r._nsMap[t.prefix?t.localName:""]=t.value)}function i(t,e,n){var r=a(e,n);if(!(0<=r))throw new s(8,new Error);for(var i,o=e.length-1;r<o;)e[r]=e[++r];e.length=o,t&&(i=t.ownerDocument)&&(p(i,t,n),n.ownerElement=null)}function u(t){if(this._features={},t)for(var e in t)this._features=t[e]}function c(){}function l(t){return("<"==t?"<":">"==t&&">")||("&"==t?"&":'"'==t&&""")||"&#"+t.charCodeAt()+";"}function h(t,e){if(e(t))return 1;if(t=t.firstChild)do{if(h(t,e))return 1}while(t=t.nextSibling)}function f(){}function p(t,e,n){t&&t._inc++,"http://www.w3.org/2000/xmlns/"==n.namespaceURI&&delete e._nsMap[n.prefix?n.localName:""]}function g(t,e,n){if(t&&t._inc){t._inc++;var r=e.childNodes;if(n)r[r.length++]=n;else{for(var i=e.firstChild,o=0;i;)i=(r[o++]=i).nextSibling;r.length=o}}}function w(t,e){var n=e.previousSibling,r=e.nextSibling;return n?n.nextSibling=r:t.firstChild=r,r?r.previousSibling=n:t.lastChild=n,g(t.ownerDocument,t),e}function v(t,e,n){var r=e.parentNode;if(r&&r.removeChild(e),11===e.nodeType){var i=e.firstChild;if(null==i)return e;var o=e.lastChild}else i=o=e;r=n?n.previousSibling:t.lastChild;for(i.previousSibling=r,o.nextSibling=n,r?r.nextSibling=i:t.firstChild=i,null==n?t.lastChild=o:n.previousSibling=o;i.parentNode=t,i!==o&&(i=i.nextSibling););return g(t.ownerDocument||t,t),11==e.nodeType&&(e.firstChild=e.lastChild=null),e}function N(){this._nsMap={}}function y(){}function b(){}function E(){}function D(){}function _(){}function x(){}function T(){}function S(){}function C(){}function A(){}function L(){}function R(){}function I(t,e,n){t[e]=n}var M={},O=(M.ELEMENT_NODE=1,M.ATTRIBUTE_NODE=2,M.TEXT_NODE=3,M.CDATA_SECTION_NODE=4,M.ENTITY_REFERENCE_NODE=5,M.ENTITY_NODE=6,M.PROCESSING_INSTRUCTION_NODE=7,M.COMMENT_NODE=8,M.DOCUMENT_NODE=9,M.DOCUMENT_TYPE_NODE=10,M.DOCUMENT_FRAGMENT_NODE=11,M.NOTATION_NODE=12,{}),P={};O.INDEX_SIZE_ERR=(P[1]="Index size error",1),O.DOMSTRING_SIZE_ERR=(P[2]="DOMString size error",2),O.HIERARCHY_REQUEST_ERR=(P[3]="Hierarchy request error",3),O.WRONG_DOCUMENT_ERR=(P[4]="Wrong document",4),O.INVALID_CHARACTER_ERR=(P[5]="Invalid character",5),O.NO_DATA_ALLOWED_ERR=(P[6]="No data allowed",6),O.NO_MODIFICATION_ALLOWED_ERR=(P[7]="No modification allowed",7),O.NOT_FOUND_ERR=(P[8]="Not found",8),O.NOT_SUPPORTED_ERR=(P[9]="Not supported",9),O.INUSE_ATTRIBUTE_ERR=(P[10]="Attribute in use",10),O.INVALID_STATE_ERR=(P[11]="Invalid state",11),O.SYNTAX_ERR=(P[12]="Syntax error",12),O.INVALID_MODIFICATION_ERR=(P[13]="Invalid modification",13),O.NAMESPACE_ERR=(P[14]="Invalid namespace",14),O.INVALID_ACCESS_ERR=(P[15]="Invalid access",15);s.prototype=Error.prototype,o(O,s),d.prototype={length:0,item:function(t){return this[t]||null}},e.prototype.item=function(t){return n(this),this[t]},t(e,d),m.prototype={length:0,item:d.prototype.item,getNamedItem:function(t){for(var e=this.length;e--;){var n=this[e];if(n.nodeName==t)return n}},setNamedItem:function(t){var e=t.ownerElement;if(e&&e!=this._ownerElement)throw new s(10);e=this.getNamedItem(t.nodeName);return r(this._ownerElement,this,t,e),e},setNamedItemNS:function(t){var e=t.ownerElement;if(e&&e!=this._ownerElement)throw new s(10);return e=this.getNamedItemNS(t.namespaceURI,t.localName),r(this._ownerElement,this,t,e),e},removeNamedItem:function(t){t=this.getNamedItem(t);return i(this._ownerElement,this,t),t},removeNamedItemNS:function(t,e){t=this.getNamedItemNS(t,e);return i(this._ownerElement,this,t),t},getNamedItemNS:function(t,e){for(var n=this.length;n--;){var r=this[n];if(r.localName==e&&r.namespaceURI==t)return r}return null}},u.prototype={hasFeature:function(t,e){t=this._features[t.toLowerCase()];return!(!t||e&&!(e in t))},createDocument:function(t,e,n){var r=new f;return r.implementation=this,r.childNodes=new d,(r.doctype=n)&&r.appendChild(n),e&&(n=r.createElementNS(t,e),r.appendChild(n)),r},createDocumentType:function(t,e,n){var r=new x;return r.name=t,r.nodeName=t,r.publicId=e,r.systemId=n,r}},c.prototype={firstChild:null,lastChild:null,previousSibling:null,nextSibling:null,attributes:null,parentNode:null,childNodes:null,ownerDocument:null,nodeValue:null,namespaceURI:null,prefix:null,localName:null,insertBefore:function(t,e){return v(this,t,e)},replaceChild:function(t,e){this.insertBefore(t,e),e&&this.removeChild(e)},removeChild:function(t){return w(this,t)},appendChild:function(t){return this.insertBefore(t,null)},hasChildNodes:function(){return null!=this.firstChild},cloneNode:function(t){return function t(e,n,r){var i,o=new n.constructor;for(i in n){var s=n[i];"object"!=typeof s&&s!=o[i]&&(o[i]=s)}switch(n.childNodes&&(o.childNodes=new d),o.ownerDocument=e,o.nodeType){case 1:var a=n.attributes,u=o.attributes=new m,c=a.length;u._ownerElement=o;for(var l=0;l<c;l++)o.setAttributeNode(t(e,a.item(l),!0));break;case 2:r=!0}if(r)for(var h=n.firstChild;h;)o.appendChild(t(e,h,r)),h=h.nextSibling;return o}(this.ownerDocument||this,this,t)},normalize:function(){for(var t=this.firstChild;t;){var e=t.nextSibling;e&&3==e.nodeType&&3==t.nodeType?(this.removeChild(e),t.appendData(e.data)):(t.normalize(),t=e)}},isSupported:function(t,e){return this.ownerDocument.implementation.hasFeature(t,e)},hasAttributes:function(){return 0<this.attributes.length},lookupPrefix:function(t){for(var e=this;e;){var n=e._nsMap;if(n)for(var r in n)if(n[r]==t)return r;e=2==e.nodeType?e.ownerDocument:e.parentNode}return null},lookupNamespaceURI:function(t){for(var e=this;e;){var n=e._nsMap;if(n&&t in n)return n[t];e=2==e.nodeType?e.ownerDocument:e.parentNode}return null},isDefaultNamespace:function(t){return null==this.lookupPrefix(t)}},o(M,c),o(M,c.prototype),f.prototype={nodeName:"#document",nodeType:9,doctype:null,documentElement:null,_inc:1,insertBefore:function(t,e){if(11==t.nodeType)for(var n=t.firstChild;n;){var r=n.nextSibling;this.insertBefore(n,e),n=r}else null==this.documentElement&&1==t.nodeType&&(this.documentElement=t),v(this,t,e),t.ownerDocument=this;return t},removeChild:function(t){return this.documentElement==t&&(this.documentElement=null),w(this,t)},importNode:function(t,e){return function t(e,n,r){var i;switch(n.nodeType){case 1:(i=n.cloneNode(!1)).ownerDocument=e;case 11:break;case 2:r=!0}if((i=i||n.cloneNode(!1)).ownerDocument=e,i.parentNode=null,r)for(var o=n.firstChild;o;)i.appendChild(t(e,o,r)),o=o.nextSibling;return i}(this,t,e)},getElementById:function(e){var n=null;return h(this.documentElement,function(t){if(1==t.nodeType&&t.getAttribute("id")==e)return n=t,!0}),n},createElement:function(t){var e=new N;return e.ownerDocument=this,e.nodeName=t,e.tagName=t,e.childNodes=new d,(e.attributes=new m)._ownerElement=e},createDocumentFragment:function(){var t=new A;return t.ownerDocument=this,t.childNodes=new d,t},createTextNode:function(t){var e=new E;return e.ownerDocument=this,e.appendData(t),e},createComment:function(t){var e=new D;return e.ownerDocument=this,e.appendData(t),e},createCDATASection:function(t){var e=new _;return e.ownerDocument=this,e.appendData(t),e},createProcessingInstruction:function(t,e){var n=new L;return n.ownerDocument=this,n.tagName=n.target=t,n.nodeValue=n.data=e,n},createAttribute:function(t){var e=new y;return e.ownerDocument=this,e.name=t,e.nodeName=t,e.localName=t,e.specified=!0,e},createEntityReference:function(t){var e=new C;return e.ownerDocument=this,e.nodeName=t,e},createElementNS:function(t,e){var n=new N,r=e.split(":"),i=n.attributes=new m;return n.childNodes=new d,n.ownerDocument=this,n.nodeName=e,n.tagName=e,n.namespaceURI=t,2==r.length?(n.prefix=r[0],n.localName=r[1]):n.localName=e,i._ownerElement=n},createAttributeNS:function(t,e){var n=new y,r=e.split(":");return n.ownerDocument=this,n.nodeName=e,n.name=e,n.namespaceURI=t,n.specified=!0,2==r.length?(n.prefix=r[0],n.localName=r[1]):n.localName=e,n}},t(f,c),f.prototype.getElementsByTagName=(N.prototype={nodeType:1,hasAttribute:function(t){return null!=this.getAttributeNode(t)},getAttribute:function(t){t=this.getAttributeNode(t);return t&&t.value||""},getAttributeNode:function(t){return this.attributes.getNamedItem(t)},setAttribute:function(t,e){t=this.ownerDocument.createAttribute(t);t.value=t.nodeValue=""+e,this.setAttributeNode(t)},removeAttribute:function(t){t=this.getAttributeNode(t);t&&this.removeAttributeNode(t)},appendChild:function(t){return 11===t.nodeType?this.insertBefore(t,null):(e=this,(n=(t=t).parentNode)&&(r=e.lastChild,n.removeChild(t),r=e.lastChild),r=e.lastChild,t.parentNode=e,t.previousSibling=r,t.nextSibling=null,r?r.nextSibling=t:e.firstChild=t,e.lastChild=t,g(e.ownerDocument,e,t),t);var e,n,r},setAttributeNode:function(t){return this.attributes.setNamedItem(t)},setAttributeNodeNS:function(t){return this.attributes.setNamedItemNS(t)},removeAttributeNode:function(t){return this.attributes.removeNamedItem(t.nodeName)},removeAttributeNS:function(t,e){t=this.getAttributeNodeNS(t,e);t&&this.removeAttributeNode(t)},hasAttributeNS:function(t,e){return null!=this.getAttributeNodeNS(t,e)},getAttributeNS:function(t,e){t=this.getAttributeNodeNS(t,e);return t&&t.value||""},setAttributeNS:function(t,e,n){t=this.ownerDocument.createAttributeNS(t,e);t.value=t.nodeValue=""+n,this.setAttributeNode(t)},getAttributeNodeNS:function(t,e){return this.attributes.getNamedItemNS(t,e)},getElementsByTagName:function(r){return new e(this,function(e){var n=[];return h(e,function(t){t===e||1!=t.nodeType||"*"!==r&&t.tagName!=r||n.push(t)}),n})},getElementsByTagNameNS:function(r,i){return new e(this,function(e){var n=[];return h(e,function(t){t===e||1!==t.nodeType||"*"!==r&&t.namespaceURI!==r||"*"!==i&&t.localName!=i||n.push(t)}),n})}}).getElementsByTagName,f.prototype.getElementsByTagNameNS=N.prototype.getElementsByTagNameNS,t(N,c),y.prototype.nodeType=2,t(y,c),b.prototype={data:"",substringData:function(t,e){return this.data.substring(t,t+e)},appendData:function(t){t=this.data+t,this.nodeValue=this.data=t,this.length=t.length},insertData:function(t,e){this.replaceData(t,0,e)},appendChild:function(t){throw new Error(P[3])},deleteData:function(t,e){this.replaceData(t,e,"")},replaceData:function(t,e,n){var r=this.data.substring(0,t),t=this.data.substring(t+e);this.nodeValue=this.data=n=r+n+t,this.length=n.length}},t(b,c),E.prototype={nodeName:"#text",nodeType:3,splitText:function(t){var e=(n=this.data).substring(t),n=n.substring(0,t),t=(this.data=this.nodeValue=n,this.length=n.length,this.ownerDocument.createTextNode(e));return this.parentNode&&this.parentNode.insertBefore(t,this.nextSibling),t}},t(E,b),D.prototype={nodeName:"#comment",nodeType:8},t(D,b),_.prototype={nodeName:"#cdata-section",nodeType:4},t(_,b),x.prototype.nodeType=10,t(x,c),T.prototype.nodeType=12,t(T,c),S.prototype.nodeType=6,t(S,c),C.prototype.nodeType=5,t(C,c),A.prototype.nodeName="#document-fragment",A.prototype.nodeType=11,t(A,c),L.prototype.nodeType=7,t(L,c),R.prototype.serializeToString=function(t){var e=[];return function t(e,n){switch(e.nodeType){case 1:var r=e.attributes,i=r.length,o=e.firstChild,s=e.tagName,a="http://www.w3.org/1999/xhtml"===e.namespaceURI;n.push("<",s);for(var u=0;u<i;u++)t(r.item(u),n);if(o||a&&!/^(?:meta|link|img|br|hr|input|button)$/i.test(s)){if(n.push(">"),a&&/^script$/i.test(s))o&&n.push(o.data);else for(;o;)t(o,n),o=o.nextSibling;n.push("</",s,">")}else n.push("/>");return;case 9:case 11:for(o=e.firstChild;o;)t(o,n),o=o.nextSibling;return;case 2:return n.push(" ",e.name,'="',e.value.replace(/[<&"]/g,l),'"');case 3:return n.push(e.data.replace(/[<&]/g,l));case 4:return n.push("<![CDATA[",e.data,"]]>");case 8:return n.push("\x3c!--",e.data,"--\x3e");case 10:a=e.publicId,s=e.systemId;return n.push("<!DOCTYPE ",e.name),void(a?(n.push(' PUBLIC "',a),s&&"."!=s&&n.push('" "',s),n.push('">')):s&&"."!=s?n.push(' SYSTEM "',s,'">'):((a=e.internalSubset)&&n.push(" [",a,"]"),n.push(">")));case 7:return n.push("<?",e.target," ",e.data,"?>");case 5:return n.push("&",e.nodeName,";");default:n.push("??",e.nodeName)}}(t,e),e.join("")},c.prototype.toString=function(){return R.prototype.serializeToString(this)};try{Object.defineProperty&&(Object.defineProperty(e.prototype,"length",{get:function(){return n(this),this.$$length}}),Object.defineProperty(c.prototype,"textContent",{get:function(){return function t(e){switch(e.nodeType){case 1:case 11:var n=[];for(e=e.firstChild;e;)7!==e.nodeType&&8!==e.nodeType&&n.push(t(e)),e=e.nextSibling;return n.join("");default:return e.nodeValue}}(this)},set:function(t){switch(this.nodeType){case 1:case 11:for(;this.firstChild;)this.removeChild(this.firstChild);(t||String(t))&&this.appendChild(this.ownerDocument.createTextNode(t));break;default:this.data=t,this.value=value,this.nodeValue=t}}}),I=function(t,e,n){t["$$"+e]=n})}catch(t){}return u}),define("ace/mode/xml/dom-parser",[],function(t,e,n){function r(t){this.options=t||{locator:{}}}function c(){this.cdata=!1}function l(t,e){e.lineNumber=t.lineNumber,e.columnNumber=t.columnNumber}function h(t){if(t)return"\n@"+(t.systemId||"")+"#[line:"+t.lineNumber+",col:"+t.columnNumber+"]"}function i(t,e,n){return"string"==typeof t?t.substr(e,n):t.length>=e+n||e?new java.lang.String(t,e,n)+"":t}function d(t,e){(t.currentElement||t.document).appendChild(e)}var m=t("./sax"),o=t("./dom");return r.prototype.parseFromString=function(t,e){var n=this.options,r=new m,i=n.domBuilder||new c,o=n.errorHandler,s=n.locator,a=n.xmlns||{},u={lt:"<",gt:">",amp:"&",quot:'"',apos:"'"};return s&&i.setDocumentLocator(s),r.errorHandler=((r,t,i)=>{function e(e){var n=r[e];if(!n)if(s)n=2==r.length?function(t){r(e,t)}:r;else for(var t=arguments.length;--t&&!(n=r[arguments[t]]););o[e]=n?function(t){n(t+h(i),t,i)}:function(){}}if(!r){if(t instanceof c)return t;r=t}var o={},s=r instanceof Function;return i=i||{},e("warning","warn"),e("error","warn","warning"),e("fatalError","warn","warning","error"),o})(o,i,s),r.domBuilder=n.domBuilder||i,/\/x?html?$/.test(e)&&(u.nbsp=" ",u.copy="©",a[""]="http://www.w3.org/1999/xhtml"),t?r.parse(t,a,u):r.errorHandler.error("invalid document source"),i.document},c.prototype={startDocument:function(){this.document=(new o).createDocument(null,null,null),this.locator&&(this.document.documentURI=this.locator.systemId)},startElement:function(t,e,n,r){var i=this.document,o=i.createElementNS(t,n||e),s=r.length;d(this,o),this.currentElement=o,this.locator&&l(this.locator,o);for(var a=0;a<s;a++){var t=r.getURI(a),u=r.getValue(a),n=r.getQName(a),c=i.createAttributeNS(t,n);c.getOffset&&l(c.getOffset(1),c),c.value=c.nodeValue=u,o.setAttributeNode(c)}},endElement:function(t,e,n){var r=this.currentElement;r.tagName;this.currentElement=r.parentNode},startPrefixMapping:function(t,e){},endPrefixMapping:function(t){},processingInstruction:function(t,e){t=this.document.createProcessingInstruction(t,e);this.locator&&l(this.locator,t),d(this,t)},ignorableWhitespace:function(t,e,n){},characters:function(t,e,n){t=i.apply(this,arguments),this.currentElement&&t&&(t=this.cdata?this.document.createCDATASection(t):this.document.createTextNode(t),this.currentElement.appendChild(t),this.locator)&&l(this.locator,t)},skippedEntity:function(t){},endDocument:function(){this.document.normalize()},setDocumentLocator:function(t){(this.locator=t)&&(t.lineNumber=0)},comment:function(t,e,n){t=i.apply(this,arguments);t=this.document.createComment(t);this.locator&&l(this.locator,t),d(this,t)},startCDATA:function(){this.cdata=!0},endCDATA:function(){this.cdata=!1},startDTD:function(t,e,n){var r=this.document.implementation;r&&r.createDocumentType&&(r=r.createDocumentType(t,e,n),this.locator&&l(this.locator,r),d(this,r))},warning:function(t){console.warn(t,h(this.locator))},error:function(t){console.error(t,h(this.locator))},fatalError:function(t){throw console.error(t,h(this.locator)),t}},"endDTD,startEntity,endEntity,attributeDecl,elementDecl,externalEntityDecl,internalEntityDecl,resolveEntity,getExternalSubset,notationDecl,unparsedEntityDecl".replace(/\w+/g,function(t){c.prototype[t]=function(){return null}}),{DOMParser:r}}),define("ace/mode/xml_worker",[],function(t,e,n){var r=t("../lib/oop"),i=(t("../lib/lang"),t("../worker/mirror").Mirror),o=t("./xml/dom-parser").DOMParser,t=e.Worker=function(t){i.call(this,t),this.setTimeout(400),this.context=null};r.inherits(t,i),function(){this.setOptions=function(t){this.context=t.context},this.onUpdate=function(){var t,r,e=this.doc.getValue();e&&(t=new o,r=[],t.options.errorHandler={fatalError:function(t,e,n){r.push({row:n.lineNumber,column:n.columnNumber,text:e,type:"error"})},error:function(t,e,n){r.push({row:n.lineNumber,column:n.columnNumber,text:e,type:"error"})},warning:function(t,e,n){r.push({row:n.lineNumber,column:n.columnNumber,text:e,type:"warning"})}},t.parseFromString(e),this.sender.emit("error",r))}}.call(t.prototype)});