HEX
Server: Apache
System: Linux cpanelx.inxs.ro 4.18.0-477.27.2.lve.el8.x86_64 #1 SMP Wed Oct 11 12:32:56 UTC 2023 x86_64
User: crowdandsafety (1041)
PHP: 8.1.34
Disabled: exec,passthru,shell_exec,system
Upload Files
File: //proc/self/cwd/wp-content/plugins/convertplug/admin/assets/js/worker-xml.js
!function (o) { var r, i; 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("!")) { var n = e.split("!"); return o.normalizeModule(t, n[0]) + "!" + o.normalizeModule(t, n[1]) } if ("." == e.charAt(0)) { var r = t.split("/").slice(0, -1).join("/"); for (e = (r ? r + "/" : "") + e; -1 !== e.indexOf(".") && i != e;) { var i = 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]; if (n) return n.initialized || (n.initialized = !0, n.exports = n.factory().exports), n.exports; if (!o.require.tlns) return console.log("unable to load " + e); var r = function (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 ""; var o = n.lastIndexOf("/"); if (-1 === o) break; r = n.substr(o) + r, n = n.slice(0, o) } return t }(e, o.require.tlns); return ".js" != r.slice(-3) && (r += ".js"), o.require.id = e, o.require.modules[e] = {}, importScripts(r), o.require(t, 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 ? (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.require.modules[e] = { exports: r, initialized: !0 } }, 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 }, r = o.main = null, i = o.sender = null, o.onmessage = function (t) { var e, n = t.data; if (n.event && i) i._signal(n.event, n.data); else if (n.command) if (r[n.command]) r[n.command].apply(r, n.args); else { if (!o[n.command]) throw new Error("Unknown command:" + n.command); o[n.command].apply(o, n.args) } else { n.init && (o.initBaseUrls(n.tlns), i = o.sender = o.initSender(), e = require(n.module)[n.classname], r = o.main = new e(i)) } }) }(this), define("ace/lib/oop", [], function (t, n, e) { "use strict"; 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) { "use strict"; 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 = {}; for (var n in t) e[n] = t[n]; return e }, 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; var n; if (Array.isArray(e)) { n = []; for (var r = 0; r < e.length; r++)n[r] = t(e[r]); return n } 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 = Object.create(null); for (var n in t) e[n] = t[n]; return e }, 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, "&#38;").replace(/"/g, "&#34;").replace(/'/g, "&#39;").replace(/</g, "&#60;") }, 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() { n = null, t() } var n = null, r = function (t) { return r.cancel(), n = setTimeout(e, t || 0), r }; return (r.schedule = r).call = function () { return this.cancel(), t(), r }, r.cancel = function () { return clearTimeout(n), n = null, r }, r.isPending = function () { return n }, r }, 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) { "use strict"; 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, n = t.start, r = this.compare(e.row, e.column); return 1 == r ? 1 == (r = this.compare(n.row, n.column)) ? 2 : 0 == r ? 1 : 0 : -1 == r ? -2 : -1 == (r = this.compare(n.row, n.column)) ? -1 : 1 == r ? 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) { var e = this.compareRange(t); return -1 == e || 0 == e || 1 == e }, 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), n = t.documentToScreenPosition(this.end); return new o(e.row, e.column, n.row, n.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) { "use strict"; e.applyDelta = function (t, e, n) { var r, i = e.start.row, o = e.start.column, s = t[i] || ""; switch (e.action) { case "insert": 1 === e.lines.length ? t[i] = s.substring(0, o) + e.lines[0] + s.substring(o) : (r = [i, 1].concat(e.lines), t.splice.apply(t, r), t[i] = s.substring(0, o) + t[i], t[i + e.lines.length - 1] += s.substring(o)); break; case "remove": var a = e.end.column, u = e.end.row; i === u ? t[i] = s.substring(0, o) + s.substring(a) : t.splice(i, u - i + 1, s.substring(0, o) + t[u].substring(a)) } } }), define("ace/lib/event_emitter", [], function (t, e, n) { "use strict"; 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) { "object" == typeof e && e || (e = {}), e.type || (e.type = t), e.stopPropagation || (e.stopPropagation = o), e.preventDefault || (e.preventDefault = s), n = n.slice(); for (var 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) { var n = (this._eventRegistry || {})[t]; if (n) { n = n.slice(); for (var 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, o = this._defaultHandlers; (o = o || (this._defaultHandlers = { _disabled_: {} }))[t] && (n = o[t], (r = o._disabled_[t]) || (o._disabled_[t] = r = []), r.push(n), -1 != (i = r.indexOf(e)) && r.splice(i, 1)), o[t] = e }, r.removeDefaultHandler = function (t, e) { var n, r, i = this._defaultHandlers; i && (n = i._disabled_[t], i[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 || {}; var n, r = this._eventRegistry[t]; !r || -1 !== (n = r.indexOf(e)) && r.splice(n, 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) { "use strict"; var r = t("./lib/oop"), i = t("./lib/event_emitter").EventEmitter, o = 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 l(t, e, n) { var r = n ? t.column <= e.column : t.column < e.column; return t.row < e.row || t.row == e.row && r } 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, a, u, c; t.start.row == t.end.row && t.start.row != this.row || t.start.row > this.row || (n = t, r = { row: this.row, column: this.column }, i = this.$insertRight, o = "insert" == n.action, s = (o ? 1 : -1) * (n.end.row - n.start.row), a = (o ? 1 : -1) * (n.end.column - n.start.column), u = n.start, c = o ? u : n.end, e = l(r, u, i) ? { row: r.row, column: r.column } : l(c, r, !i) ? { row: r.row + s, column: r.column + (r.row == c.row ? a : 0) } : { row: u.row, column: u.column }, this.setPosition(e.row, e.column, !0)) }, this.setPosition = function (t, e, n) { var r, i = n ? { row: t, column: e } : this.$clipPositionToDocument(t, e); this.row == i.row && this.column == i.column || (r = { row: this.row, column: this.column }, this.row = i.row, this.column = i.column, this._signal("change", { old: r, value: i })) }, 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(o.prototype) }), define("ace/document", [], function (t, e, n) { "use strict"; 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, l = t("./range").Range, a = t("./anchor").Anchor; (function () { i.implement(this, s), this.setValue = function (t) { var e = this.getLength() - 1; this.remove(new l(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 a(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) { var e = t.match(/^.*?(\r\n|\r|\n)/m); this.$autoNewLine = e ? e[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), r = this.pos(t.row, t.column + e.length); return this.applyDelta({ start: n, end: r, action: "insert", lines: [e] }, !0), this.clonePos(r) }, this.clippedPos = function (t, e) { var n = this.getLength(); void 0 === t ? t = n : t < 0 ? t = 0 : n <= t && (t = n - 1, e = void 0); var r = this.getLine(t); return null == e && (e = r.length), { row: t, column: e = Math.min(Math.max(e, 0), r.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), t--, this.$lines[t].length); this.insertMergedLines({ row: t, column: n }, e) }, this.insertMergedLines = function (t, e) { var n = this.clippedPos(t.row, t.column), r = { row: n.row + e.length - 1, column: (1 == e.length ? n.column : 0) + e[e.length - 1].length }; return this.applyDelta({ start: n, end: r, action: "insert", lines: e }), this.clonePos(r) }, this.remove = function (t) { var e = this.clippedPos(t.start.row, t.start.column), n = this.clippedPos(t.end.row, t.end.column); return this.applyDelta({ start: e, end: n, action: "remove", lines: this.getLinesForRange({ start: e, end: n }) }), this.clonePos(e) }, this.removeInLine = function (t, e, n) { var r = this.clippedPos(t, e), i = this.clippedPos(t, n); return this.applyDelta({ start: r, end: i, action: "remove", lines: this.getLinesForRange({ start: r, end: i }) }, !0), this.clonePos(r) }, 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, o = n ? this.getLine(i).length : 0, s = r ? e + 1 : e, a = r ? 0 : this.getLine(s).length, u = new l(i, o, s, a), c = this.$lines.slice(t, e + 1); return this.applyDelta({ start: u.start, end: u.end, action: "remove", lines: this.getLinesForRange(u) }), c }, 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 l || (t = l.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] : !l.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) { "use strict"; t("../range").Range; var r = t("../document").Document, a = t("../lib/lang"), i = 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(i.prototype) }), define("ace/mode/xml/sax", [], function (t, e, n) { function r() { } function i(n, t, r, i, o) { function s(t) { var e = t.slice(1, -1); return e in r ? r[e] : "#" === e.charAt(0) ? function (t) { if (65535 < t) { var e = 55296 + ((t -= 65536) >> 10), n = 56320 + (1023 & t); return String.fromCharCode(e, n) } return String.fromCharCode(t) }(parseInt(e.substr(1).replace("x", "0x"))) : (o.error("entity not found:" + t), t) } function e(t) { var e = n.substring(b, t).replace(/&#?\w+;/g, s); v && a(b), i.characters(e, 0, t - b), b = t } function a(t, e) { for (; g <= t && (e = w.exec(n));)p = e.index, g = p + e[0].length, v.lineNumber++; v.columnNumber = t - p + 1 } for (var u, c, l, h, d, f, m, p = 0, g = 0, w = /.+(?:\r\n?|\n)|.*$/g, v = i.locator, N = [{ currentNSMap: t }], y = {}, b = 0; ;) { if ((L = n.indexOf("<", b)) < 0) return void (n.substr(b).match(/^\s*$/) || (c = (u = i.document).createTextNode(n.substr(b)), u.appendChild(c), i.currentElement = c)); switch (b < L && e(L), n.charAt(L + 1)) { case "/": var E, D = n.indexOf(">", L + 3), x = n.substring(L + 2, D); if (!(1 < N.length)) { o.fatalError("end tag name not found for: " + x); break } var _ = (E = N.pop()).localNSMap; if (E.tagName != x && o.fatalError("end tag name: " + x + " does not match the current start tagName: " + E.tagName), i.endElement(E.uri, E.localName, x), _) for (var T in _) i.endPrefixMapping(T); D++; break; case "?": v && a(L), D = F(n, L, i); break; case "!": v && a(L), D = $(n, L, i, o); break; default: try { v && a(L); var S = new U, D = M(n, L, S, s, o), C = S.length; if (C && v) { for (var A = I(v, {}), L = 0; L < C; L++) { var R = S[L]; a(R.offset), R.offset = I(v, {}) } I(A, v) } !S.closed && (l = n, h = D, d = S.tagName, m = void 0, null == (m = (f = y)[d]) && (m = f[d] = l.lastIndexOf("</" + d + ">")), m < h) && (S.closed = !0, r.nbsp || o.warning("unclosed xml attribute")), O(S, i, N), "http://www.w3.org/1999/xhtml" !== S.uri || S.closed ? D++ : D = P(n, D, S.tagName, s, i) } catch (t) { o.error("element parse error: " + t), D = -1 } }D < 0 ? e(L + 1) : b = D } } function I(t, e) { return e.lineNumber = t.lineNumber, e.columnNumber = t.columnNumber, e } function M(t, e, n, r, i) { for (var o, s = ++e, a = l; ;) { var u = t.charAt(s); switch (u) { case "=": if (a === h) o = t.slice(e, s), a = f; else { if (a !== d) throw new Error("attribute equal must after attrName"); a = f } break; case "'": case '"': if (a === f) { 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), a = g } else { if (a != m) 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 = g } break; case "/": switch (a) { case l: n.setTagName(t.slice(e, s)); case g: case w: case v: a = v, n.closed = !0; case m: case h: case d: break; default: throw new Error("attribute invalid close char('/')") }break; case "": i.error("unexpected end of input"); case ">": switch (a) { case l: n.setTagName(t.slice(e, s)); case g: case w: case v: break; case m: case h: "/" === (c = t.slice(e, s)).slice(-1) && (n.closed = !0, c = c.slice(0, -1)); case d: a === d && (c = o), a == m ? (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 f: throw new Error("attribute value missed!!") }return s; case "€": u = " "; default: if (u <= " ") switch (a) { case l: n.setTagName(t.slice(e, s)), a = w; break; case h: o = t.slice(e, s), a = d; break; case m: var c = t.slice(e, s).replace(/&#?\w+;/g, r); i.warning('attribute "' + c + '" missed quot(")!!'), n.add(o, c, e); case g: a = w } else switch (a) { case d: i.warning('attribute "' + o + '" missed value!! "' + o + '" instead!!'), n.add(o, o, e), e = s, a = h; break; case g: i.warning('attribute space is required"' + o + '"!!'); case w: a = h, e = s; break; case f: a = m, e = s; break; case v: throw new Error("elements closed character '/' and '>' must be connected to") } }s++ } } function O(t, e, n) { for (var r = t.tagName, i = null, o = n[n.length - 1].currentNSMap, s = t.length; s--;) { var a = t[s], u = a.qName, c = a.value, l = 0 < (d = u.indexOf(":")) ? (h = a.prefix = u.slice(0, d), f = u.slice(d + 1), "xmlns" === h && f) : (h = null, "xmlns" === (f = u) && ""); a.localName = f, !1 !== l && (null == i && (i = {}, p(o, o = {})), o[l] = i[l] = c, a.uri = "http://www.w3.org/2000/xmlns/", e.startPrefixMapping(l, c)) } for (var h, s = t.length; s--;) { (h = (a = t[s]).prefix) && ("xml" === h && (a.uri = "http://www.w3.org/XML/1998/namespace"), "xmlns" !== h && (a.uri = o[h])) } var d, f = 0 < (d = r.indexOf(":")) ? (h = t.prefix = r.slice(0, d), t.localName = r.slice(d + 1)) : (h = null, t.localName = r), m = t.uri = o[h || ""]; if (e.startElement(m, f, r, t), t.closed) { if (e.endElement(m, f, r), i) for (h in i) e.endPrefixMapping(h) } else t.currentNSMap = o, t.localNSMap = i, n.push(t) } function P(t, e, n, r, i) { if (/^(?:script|textarea)$/i.test(n)) { var o = t.indexOf("</" + n + ">", e), s = t.substring(e + 1, o); if (/[&<]/.test(s)) return /^script$/i.test(n) || (s = s.replace(/&#?\w+;/g, r)), i.characters(s, 0, s.length), o } return e + 1 } function p(t, e) { for (var n in t) e[n] = t[n] } function $(t, e, n, r) { var i; switch (t.charAt(e + 2)) { case "-": return "-" !== t.charAt(e + 3) ? -1 : e < (i = t.indexOf("--\x3e", e + 4)) ? (n.comment(t, e + 4, i - e - 4), i + 3) : (r.error("Unclosed comment"), -1); default: if ("CDATA[" == t.substr(e + 3, 6)) return e < (i = t.indexOf("]]>", e + 9)) ? (n.startCDATA(), n.characters(t, e + 9, i - e - 9), n.endCDATA(), i + 3) : (r.error("Unclosed CDATA"), -1); var o = function (t, e) { var n, r = [], i = /'[^']+'|"[^"]+"|[^\s<>\/=]+=?|(\/?\s*>|<)/g; i.lastIndex = e, i.exec(t); for (; n = i.exec(t);)if (r.push(n), n[1]) return r }(t, e), s = o.length; if (1 < s && /!doctype/i.test(o[0][0])) { var a = o[1][0], u = 3 < s && /^public$/i.test(o[2][0]) && o[3][0], c = 4 < s && o[4][0], l = o[s - 1]; return n.startDTD(a, u && u.replace(/^(['"])(.*?)\1$/, "$2"), c && c.replace(/^(['"])(.*?)\1$/, "$2")), n.endDTD(), l.index + l[0].length } }return -1 } function F(t, e, n) { var r = t.indexOf("?>", e); if (r) { var i = t.substring(e, r).match(/^<\?(\S*)\s*([\s\S]*?)\s*$/); if (i) { i[0].length; return n.processingInstruction(i[1], i[2]), r + 2 } return -1 } return -1 } function U(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 + "*)?$"), l = 0, h = 1, d = 2, f = 3, m = 4, g = 5, w = 6, v = 7; return r.prototype = { parse: function (t, e, n) { var r = this.domBuilder; r.startDocument(), p(e, e = {}), i(t, e, n, r, this.errorHandler), r.endDocument() } }, U.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 || (o = function (t, e) { function n() { } for (e in n.prototype = e, n = new n, t) n[e] = t[e]; return n }), r }), define("ace/mode/xml/dom", [], function (t, e, n) { function o(t, e) { for (var n in t) e[n] = t[n] } function r(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, Z[t]), this.message = Z[t], Error.captureStackTrace && Error.captureStackTrace(this, s)), n.code = t, e && (this.message = this.message + ": " + e), n } function d() { } function a(t, e) { this._node = t, this._refresh = e, i(this) } function i(t) { var e, n = t._node._inc || t._node.ownerDocument._inc; t._inc != n && (e = t._refresh(t._node), P(t, "length", e.length), o(e, t), t._inc = n) } function f() { } function u(t, e) { for (var n = t.length; n--;)if (t[n] === e) return n } function c(t, e, n, r) { var i, o, s, a; r ? e[u(e, r)] = n : e[e.length++] = n, !t || (i = (n.ownerElement = t).ownerDocument) && (r && v(i, t, r), s = t, a = n, (o = i) && o._inc++, "http://www.w3.org/2000/xmlns/" == a.namespaceURI && (s._nsMap[a.prefix ? a.localName : ""] = a.value)) } function l(t, e, n) { var r = u(e, n); if (!(0 <= r)) throw new s(J, new Error); for (var i, o = e.length - 1; r < o;)e[r] = e[++r]; e.length = o, !t || (i = t.ownerDocument) && (v(i, t, n), n.ownerElement = null) } function h(t) { if (this._features = {}, t) for (var e in t) this._features = t[e] } function m() { } function p(t) { return ("<" == t ? "&lt;" : ">" == t && "&gt;") || "&" == t && "&amp;" || '"' == t && "&quot;" || "&#" + t.charCodeAt() + ";" } function g(t, e) { if (e(t)) return 1; if (t = t.firstChild) do { if (g(t, e)) return 1 } while (t = t.nextSibling) } function w() { } function v(t, e, n) { t && t._inc++, "http://www.w3.org/2000/xmlns/" == n.namespaceURI && delete e._nsMap[n.prefix ? n.localName : ""] } function N(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 y(t, e) { var n = e.previousSibling, r = e.nextSibling; return n ? n.nextSibling = r : t.firstChild = r, r ? r.previousSibling = n : t.lastChild = n, N(t.ownerDocument, t), e } function b(t, e, n) { var r = e.parentNode; if (r && r.removeChild(e), e.nodeType === G) { var i = e.firstChild; if (null == i) return e; var o = e.lastChild } else i = o = e; var s = n ? n.previousSibling : t.lastChild; for (i.previousSibling = s, o.nextSibling = n, s ? s.nextSibling = i : t.firstChild = i, null == n ? t.lastChild = o : n.previousSibling = o; i.parentNode = t, i !== o && (i = i.nextSibling);); return N(t.ownerDocument || t, t), e.nodeType == G && (e.firstChild = e.lastChild = null), e } function E() { this._nsMap = {} } function D() { } function x() { } function _() { } function T() { } function S() { } function C() { } function A() { } function L() { } function R() { } function I() { } function M() { } function O() { } function P(t, e, n) { t[e] = n } var $ = "http://www.w3.org/1999/xhtml", F = {}, U = F.ELEMENT_NODE = 1, k = F.ATTRIBUTE_NODE = 2, q = F.TEXT_NODE = 3, j = F.CDATA_SECTION_NODE = 4, B = F.ENTITY_REFERENCE_NODE = 5, V = F.ENTITY_NODE = 6, H = F.PROCESSING_INSTRUCTION_NODE = 7, z = F.COMMENT_NODE = 8, Y = F.DOCUMENT_NODE = 9, W = F.DOCUMENT_TYPE_NODE = 10, G = F.DOCUMENT_FRAGMENT_NODE = 11, X = F.NOTATION_NODE = 12, Q = {}, Z = {}, J = (Q.INDEX_SIZE_ERR = (Z[1] = "Index size error", 1), Q.DOMSTRING_SIZE_ERR = (Z[2] = "DOMString size error", 2), Q.HIERARCHY_REQUEST_ERR = (Z[3] = "Hierarchy request error", 3), Q.WRONG_DOCUMENT_ERR = (Z[4] = "Wrong document", 4), Q.INVALID_CHARACTER_ERR = (Z[5] = "Invalid character", 5), Q.NO_DATA_ALLOWED_ERR = (Z[6] = "No data allowed", 6), Q.NO_MODIFICATION_ALLOWED_ERR = (Z[7] = "No modification allowed", 7), Q.NOT_FOUND_ERR = (Z[8] = "Not found", 8)), K = (Q.NOT_SUPPORTED_ERR = (Z[9] = "Not supported", 9), Q.INUSE_ATTRIBUTE_ERR = (Z[10] = "Attribute in use", 10)); Q.INVALID_STATE_ERR = (Z[11] = "Invalid state", 11), Q.SYNTAX_ERR = (Z[12] = "Syntax error", 12), Q.INVALID_MODIFICATION_ERR = (Z[13] = "Invalid modification", 13), Q.NAMESPACE_ERR = (Z[14] = "Invalid namespace", 14), Q.INVALID_ACCESS_ERR = (Z[15] = "Invalid access", 15); s.prototype = Error.prototype, o(Q, s), d.prototype = { length: 0, item: function (t) { return this[t] || null } }, a.prototype.item = function (t) { return i(this), this[t] }, r(a, d), f.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(K); var n = this.getNamedItem(t.nodeName); return c(this._ownerElement, this, t, n), n }, setNamedItemNS: function (t) { var e, n = t.ownerElement; if (n && n != this._ownerElement) throw new s(K); return e = this.getNamedItemNS(t.namespaceURI, t.localName), c(this._ownerElement, this, t, e), e }, removeNamedItem: function (t) { var e = this.getNamedItem(t); return l(this._ownerElement, this, e), e }, removeNamedItemNS: function (t, e) { var n = this.getNamedItemNS(t, e); return l(this._ownerElement, this, n), n }, 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 } }, h.prototype = { hasFeature: function (t, e) { var n = this._features[t.toLowerCase()]; return !(!n || e && !(e in n)) }, createDocument: function (t, e, n) { var r, i = new w; return i.implementation = this, i.childNodes = new d, (i.doctype = n) && i.appendChild(n), e && (r = i.createElementNS(t, e), i.appendChild(r)), i }, createDocumentType: function (t, e, n) { var r = new C; return r.name = t, r.nodeName = t, r.publicId = e, r.systemId = n, r } }, m.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 b(this, t, e) }, replaceChild: function (t, e) { this.insertBefore(t, e), e && this.removeChild(e) }, removeChild: function (t) { return y(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 = new n.constructor; for (var o in n) { var s = n[o]; "object" != typeof s && s != i[o] && (i[o] = s) } switch (n.childNodes && (i.childNodes = new d), i.ownerDocument = e, i.nodeType) { case U: var a = n.attributes, u = i.attributes = new f, c = a.length; u._ownerElement = i; for (var l = 0; l < c; l++)i.setAttributeNode(t(e, a.item(l), !0)); break; case k: r = !0 }if (r) for (var h = n.firstChild; h;)i.appendChild(t(e, h, r)), h = h.nextSibling; return i }(this.ownerDocument || this, this, t) }, normalize: function () { for (var t = this.firstChild; t;) { var e = t.nextSibling; e && e.nodeType == q && t.nodeType == q ? (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(F, m), o(F, m.prototype), w.prototype = { nodeName: "#document", nodeType: Y, doctype: null, documentElement: null, _inc: 1, insertBefore: function (t, e) { if (t.nodeType != G) return null == this.documentElement && 1 == t.nodeType && (this.documentElement = t), b(this, t, e), t.ownerDocument = this, t; for (var n = t.firstChild; n;) { var r = n.nextSibling; this.insertBefore(n, e), n = r } return t }, removeChild: function (t) { return this.documentElement == t && (this.documentElement = null), y(this, t) }, importNode: function (t, e) { return function t(e, n, r) { var i; switch (n.nodeType) { case U: (i = n.cloneNode(!1)).ownerDocument = e; case G: break; case k: 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 g(this.documentElement, function (t) { if (1 == t.nodeType && t.getAttribute("id") == e) return n = t, !0 }), n }, createElement: function (t) { var e = new E; return e.ownerDocument = this, e.nodeName = t, e.tagName = t, e.childNodes = new d, (e.attributes = new f)._ownerElement = e }, createDocumentFragment: function () { var t = new I; return t.ownerDocument = this, t.childNodes = new d, t }, createTextNode: function (t) { var e = new _; return e.ownerDocument = this, e.appendData(t), e }, createComment: function (t) { var e = new T; return e.ownerDocument = this, e.appendData(t), e }, createCDATASection: function (t) { var e = new S; return e.ownerDocument = this, e.appendData(t), e }, createProcessingInstruction: function (t, e) { var n = new M; return n.ownerDocument = this, n.tagName = n.target = t, n.nodeValue = n.data = e, n }, createAttribute: function (t) { var e = new D; return e.ownerDocument = this, e.name = t, e.nodeName = t, e.localName = t, e.specified = !0, e }, createEntityReference: function (t) { var e = new R; return e.ownerDocument = this, e.nodeName = t, e }, createElementNS: function (t, e) { var n = new E, r = e.split(":"), i = n.attributes = new f; 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 D, 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 } }, r(w, m), w.prototype.getElementsByTagName = (E.prototype = { nodeType: U, hasAttribute: function (t) { return null != this.getAttributeNode(t) }, getAttribute: function (t) { var e = this.getAttributeNode(t); return e && e.value || "" }, getAttributeNode: function (t) { return this.attributes.getNamedItem(t) }, setAttribute: function (t, e) { var n = this.ownerDocument.createAttribute(t); n.value = n.nodeValue = "" + e, this.setAttributeNode(n) }, removeAttribute: function (t) { var e = this.getAttributeNode(t); e && this.removeAttributeNode(e) }, appendChild: function (t) { return t.nodeType === G ? this.insertBefore(t, null) : function (t, e) { var n = e.parentNode; n && (r = t.lastChild, n.removeChild(e), r = t.lastChild); var r = t.lastChild; return e.parentNode = t, e.previousSibling = r, e.nextSibling = null, r ? r.nextSibling = e : t.firstChild = e, t.lastChild = e, N(t.ownerDocument, t, e), e }(this, t) }, 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) { var n = this.getAttributeNodeNS(t, e); n && this.removeAttributeNode(n) }, hasAttributeNS: function (t, e) { return null != this.getAttributeNodeNS(t, e) }, getAttributeNS: function (t, e) { var n = this.getAttributeNodeNS(t, e); return n && n.value || "" }, setAttributeNS: function (t, e, n) { var r = this.ownerDocument.createAttributeNS(t, e); r.value = r.nodeValue = "" + n, this.setAttributeNode(r) }, getAttributeNodeNS: function (t, e) { return this.attributes.getNamedItemNS(t, e) }, getElementsByTagName: function (r) { return new a(this, function (e) { var n = []; return g(e, function (t) { t === e || t.nodeType != U || "*" !== r && t.tagName != r || n.push(t) }), n }) }, getElementsByTagNameNS: function (r, i) { return new a(this, function (e) { var n = []; return g(e, function (t) { t === e || t.nodeType !== U || "*" !== r && t.namespaceURI !== r || "*" !== i && t.localName != i || n.push(t) }), n }) } }).getElementsByTagName, w.prototype.getElementsByTagNameNS = E.prototype.getElementsByTagNameNS, r(E, m), D.prototype.nodeType = k, r(D, m), x.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(Z[3]) }, deleteData: function (t, e) { this.replaceData(t, e, "") }, replaceData: function (t, e, n) { n = this.data.substring(0, t) + n + this.data.substring(t + e), this.nodeValue = this.data = n, this.length = n.length } }, r(x, m), _.prototype = { nodeName: "#text", nodeType: q, splitText: function (t) { var e = (n = this.data).substring(t), n = n.substring(0, t); this.data = this.nodeValue = n, this.length = n.length; var r = this.ownerDocument.createTextNode(e); return this.parentNode && this.parentNode.insertBefore(r, this.nextSibling), r } }, r(_, x), T.prototype = { nodeName: "#comment", nodeType: z }, r(T, x), S.prototype = { nodeName: "#cdata-section", nodeType: j }, r(S, x), C.prototype.nodeType = W, r(C, m), A.prototype.nodeType = X, r(A, m), L.prototype.nodeType = V, r(L, m), R.prototype.nodeType = B, r(R, m), I.prototype.nodeName = "#document-fragment", I.prototype.nodeType = G, r(I, m), M.prototype.nodeType = H, r(M, m), O.prototype.serializeToString = function (t) { var e = []; return function t(e, n) { switch (e.nodeType) { case U: var r = e.attributes, i = r.length, o = e.firstChild, s = e.tagName, a = $ === 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 Y: case G: for (o = e.firstChild; o;)t(o, n), o = o.nextSibling; return; case k: return n.push(" ", e.name, '="', e.value.replace(/[<&"]/g, p), '"'); case q: return n.push(e.data.replace(/[<&]/g, p)); case j: return n.push("<![CDATA[", e.data, "]]>"); case z: return n.push("\x3c!--", e.data, "--\x3e"); case W: var c, l = e.publicId, h = e.systemId; return n.push("<!DOCTYPE ", e.name), void (l ? (n.push(' PUBLIC "', l), h && "." != h && n.push('" "', h), n.push('">')) : h && "." != h ? n.push(' SYSTEM "', h, '">') : ((c = e.internalSubset) && n.push(" [", c, "]"), n.push(">"))); case H: return n.push("<?", e.target, " ", e.data, "?>"); case B: return n.push("&", e.nodeName, ";"); default: n.push("??", e.nodeName) } }(t, e), e.join("") }, m.prototype.toString = function () { return O.prototype.serializeToString(this) }; try { Object.defineProperty && (Object.defineProperty(a.prototype, "length", { get: function () { return i(this), this.$$length } }), Object.defineProperty(m.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 } } }), P = function (t, e, n) { t["$$" + e] = n }) } catch (t) { } return h }), define("ace/mode/xml/dom-parser", [], function (t, e, n) { "use strict"; 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.currentElement.appendChild(e) : t.document.appendChild(e) } var f = t("./sax"), o = t("./dom"); return r.prototype.parseFromString = function (t, e) { var n = this.options, r = new f, 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 = function (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) { var n = this.document.createProcessingInstruction(t, e); this.locator && l(this.locator, n), d(this, n) }, ignorableWhitespace: function (t, e, n) { }, characters: function (t, e, n) { var r; t = i.apply(this, arguments), this.currentElement && t && (r = this.cdata ? this.document.createCDATASection(t) : this.document.createTextNode(t), this.currentElement.appendChild(r), this.locator && l(this.locator, r)) }, 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); var r = this.document.createComment(t); this.locator && l(this.locator, r), d(this, r) }, startCDATA: function () { this.cdata = !0 }, endCDATA: function () { this.cdata = !1 }, startDTD: function (t, e, n) { var r, i = this.document.implementation; i && i.createDocumentType && (r = i.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) { "use strict"; var r = t("../lib/oop"), i = (t("../lib/lang"), t("../worker/mirror").Mirror), o = t("./xml/dom-parser").DOMParser, s = e.Worker = function (t) { i.call(this, t), this.setTimeout(400), this.context = null }; r.inherits(s, 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(s.prototype) });