@infinilabs/ui-web-cli 0.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +9 -0
- package/README-zh_CN.md +0 -0
- package/README.md +2 -0
- package/dist/_common-5n7Nh4LD.js +9 -0
- package/dist/bulk-Cb_gp4HI.js +33 -0
- package/dist/cat.aliases-CTdyGkCx.js +30 -0
- package/dist/cat.allocation-Dk_NKrJm.js +37 -0
- package/dist/cat.count-BaRuV9k0.js +22 -0
- package/dist/cat.fielddata-Dsj8JZdl.js +36 -0
- package/dist/cat.health-BUroHIiP.js +31 -0
- package/dist/cat.help-DkymuYTu.js +18 -0
- package/dist/cat.indices-CVI1MQM0.js +60 -0
- package/dist/cat.master-CO-hm2xx.js +23 -0
- package/dist/cat.nodeattrs-Ff4nNeXI.js +23 -0
- package/dist/cat.nodes-D4_vs31Q.js +46 -0
- package/dist/cat.pending_tasks-BNkCJpdi.js +32 -0
- package/dist/cat.plugins-Dehk5__o.js +23 -0
- package/dist/cat.recovery-B6UD-IA8.js +47 -0
- package/dist/cat.repositories-C_lz02zW.js +23 -0
- package/dist/cat.segments-DApYGj2j.js +35 -0
- package/dist/cat.shards-Cknp8qqf.js +46 -0
- package/dist/cat.snapshots-D4WfvKVf.js +33 -0
- package/dist/cat.tasks-CSZT2FwV.js +34 -0
- package/dist/cat.templates-BDob6Rfd.js +24 -0
- package/dist/cat.thread_pool-Oa7LMSqa.js +32 -0
- package/dist/clear_scroll-DTHb-58C.js +15 -0
- package/dist/clear_scroll-DVgMvvXT.js +11 -0
- package/dist/cluster.allocation_explain-CYdNP0G_.js +19 -0
- package/dist/cluster.delete_component_template-DBwaFwdW.js +18 -0
- package/dist/cluster.get_component_template-DrQV6tby.js +20 -0
- package/dist/cluster.get_settings-BLxROkUF.js +20 -0
- package/dist/cluster.health-Cy0MsK-_.js +41 -0
- package/dist/cluster.health-c9Oq5JvO.js +49 -0
- package/dist/cluster.pending_tasks-BPvnGEr-.js +18 -0
- package/dist/cluster.put_component_template-B9SJPXm_.js +25 -0
- package/dist/cluster.put_component_template-Cu3GNNzk.js +18 -0
- package/dist/cluster.put_settings-BjqeejQ_.js +19 -0
- package/dist/cluster.put_settings-DFSjMdRK.js +153 -0
- package/dist/cluster.remote_info-DZ5BtQXp.js +14 -0
- package/dist/cluster.reroute-B6f6Gmgu.js +63 -0
- package/dist/cluster.reroute-ChOpPtnE.js +22 -0
- package/dist/cluster.state-C3p10h39.js +45 -0
- package/dist/cluster.stats-DlMsa15f.js +19 -0
- package/dist/count-CeHTsGbe.js +42 -0
- package/dist/count-DpQhibag.js +12 -0
- package/dist/create-bDnlL29y.js +33 -0
- package/dist/delete-a9O4r-Al.js +33 -0
- package/dist/delete_by_query-UXK0VTi1.js +65 -0
- package/dist/delete_by_query_rethrottle-C0rKdW5t.js +18 -0
- package/dist/delete_script-aoWW-JKY.js +19 -0
- package/dist/exists-ny-4PdOG.js +32 -0
- package/dist/exists_source-CPKUGlNi.js +31 -0
- package/dist/explain-CRM7OZkG.js +33 -0
- package/dist/favicon.ico +0 -0
- package/dist/field_caps-B64nCuEZ.js +30 -0
- package/dist/get-BmbJZ5vO.js +32 -0
- package/dist/get_script-WdoVCyAu.js +18 -0
- package/dist/get_script_context-BR7GsLOb.js +14 -0
- package/dist/get_script_languages-BCydMSc2.js +14 -0
- package/dist/get_source-ycYopG9R.js +31 -0
- package/dist/index-DjzB7hu6.js +40 -0
- package/dist/indices.analyze-ClHIyNrM.js +19 -0
- package/dist/indices.analyze-Cnk8z9Es.js +22 -0
- package/dist/indices.clear_cache-Bn2UQoFp.js +31 -0
- package/dist/indices.clone-CTqC1b-E.js +20 -0
- package/dist/indices.clone-OsTOcQwU.js +17 -0
- package/dist/indices.close-505GURha.js +28 -0
- package/dist/indices.create-CiDS2KoE.js +20 -0
- package/dist/indices.create-D6vAt5ML.js +20 -0
- package/dist/indices.delete-xiFC1EGi.js +27 -0
- package/dist/indices.delete_alias-CdCUnANG.js +19 -0
- package/dist/indices.delete_template-Ce29Zn4u.js +10 -0
- package/dist/indices.delete_template-f4TIEAKW.js +18 -0
- package/dist/indices.exists-CIaNfOEf.js +28 -0
- package/dist/indices.exists_alias-Dcjzo6TW.js +27 -0
- package/dist/indices.exists_template-BCKLcFt8.js +19 -0
- package/dist/indices.exists_template-CCI4XB1B.js +10 -0
- package/dist/indices.exists_type-D_gplC1G.js +26 -0
- package/dist/indices.flush-BQ9SOVxx.js +29 -0
- package/dist/indices.flush_synced-DWXJDccX.js +26 -0
- package/dist/indices.forcemerge-YZuwINa5.js +29 -0
- package/dist/indices.get-BmFk9klr.js +30 -0
- package/dist/indices.get_alias-BH5R9F7U.js +29 -0
- package/dist/indices.get_field_mapping-BGnjtBQZ.js +29 -0
- package/dist/indices.get_field_mapping-CvA9AE6t.js +8 -0
- package/dist/indices.get_mapping-1X-z0p-G.js +29 -0
- package/dist/indices.get_mapping-oH01DAQw.js +8 -0
- package/dist/indices.get_settings-DENLmeOj.js +32 -0
- package/dist/indices.get_template-CKMQIoTZ.js +21 -0
- package/dist/indices.get_template-Cut8qYjL.js +11 -0
- package/dist/indices.get_upgrade-XcKrUFWM.js +26 -0
- package/dist/indices.open-55bv4ufO.js +28 -0
- package/dist/indices.put_alias-BvKCrFYc.js +20 -0
- package/dist/indices.put_alias-DRGMKIZH.js +13 -0
- package/dist/indices.put_mapping-DBrIqvkv.js +29 -0
- package/dist/indices.put_settings-BkNNavUe.js +10 -0
- package/dist/indices.put_settings-ubg7XoYH.js +30 -0
- package/dist/indices.put_template-ByuVJUou.js +22 -0
- package/dist/indices.put_template-D4DgOXNy.js +26 -0
- package/dist/indices.recovery-BvGicjmF.js +19 -0
- package/dist/indices.refresh-B0i-iy3V.js +27 -0
- package/dist/indices.rollover-DUUD9dzm.js +22 -0
- package/dist/indices.rollover-Db8YZpKM.js +25 -0
- package/dist/indices.segments-BNzIRPkt.js +27 -0
- package/dist/indices.shard_stores-NeCJW61I.js +27 -0
- package/dist/indices.shrink-HTHaYCNw.js +21 -0
- package/dist/indices.split-CMOvLpHL.js +21 -0
- package/dist/indices.stats-lZbc7nYY.js +60 -0
- package/dist/indices.update_aliases-B-Xh15nC.js +35 -0
- package/dist/indices.update_aliases-CrZkDgP3.js +18 -0
- package/dist/indices.upgrade-F08HJEJh.js +28 -0
- package/dist/indices.validate_query-DR2M4so7.js +10 -0
- package/dist/indices.validate_query-VPrxVylH.js +39 -0
- package/dist/info-Uq39Tk5I.js +15 -0
- package/dist/ingest.delete_pipeline-DRtC3Dqh.js +18 -0
- package/dist/ingest.get_pipeline-JM9q1oH8.js +18 -0
- package/dist/ingest.processor_grok-8QBngXVm.js +14 -0
- package/dist/ingest.put_pipeline-BHYfeIUR.js +18 -0
- package/dist/ingest.simulate-Cfu8Bayu.js +19 -0
- package/dist/mget-BeU340PZ.js +27 -0
- package/dist/msearch-VXpUl7IB.js +31 -0
- package/dist/msearch_template-DIu31ouW.js +29 -0
- package/dist/mtermvectors-DgB5RWBU.js +36 -0
- package/dist/nodes.hot_threads-JeTUhoqt.js +27 -0
- package/dist/nodes.info-CG3dssML.js +35 -0
- package/dist/nodes.reload_secure_settings-DWyLnaF3.js +18 -0
- package/dist/nodes.stats-C4GRYbPh.js +67 -0
- package/dist/nodes.usage-CIENCxoR.js +27 -0
- package/dist/ping-Bji5pHwk.js +15 -0
- package/dist/put_script-CCLRxaG6.js +22 -0
- package/dist/rank_eval-Bu5vQ2D6.js +32 -0
- package/dist/reindex-D4uElthB.js +25 -0
- package/dist/reindex_rethrottle-CcKws1M4.js +18 -0
- package/dist/render_search_template-ay6iLNqt.js +17 -0
- package/dist/scripts_painless_execute-ChAFju6q.js +16 -0
- package/dist/scroll-rh-CV6XG.js +21 -0
- package/dist/search-UrY8NhdC.js +77 -0
- package/dist/search_shards-pfmDaePl.js +31 -0
- package/dist/search_template-BCt1HTyk.js +43 -0
- package/dist/snapshot.cleanup_repository-Cnh4nsU4.js +18 -0
- package/dist/snapshot.create-CmKQjbNG.js +28 -0
- package/dist/snapshot.create-DZ4Tu9Qk.js +19 -0
- package/dist/snapshot.create_repository-BmOMeVMH.js +20 -0
- package/dist/snapshot.create_repository-DJO_LqwU.js +128 -0
- package/dist/snapshot.delete-DZQxQUz4.js +17 -0
- package/dist/snapshot.delete_repository-CQW1kKrI.js +18 -0
- package/dist/snapshot.get-DHSFcDIR.js +19 -0
- package/dist/snapshot.get_repository-BxwEHWpH.js +19 -0
- package/dist/snapshot.restore-CmdKDppJ.js +19 -0
- package/dist/snapshot.restore-cGEgaiIV.js +18 -0
- package/dist/snapshot.status-GWfxy7Av.js +20 -0
- package/dist/snapshot.verify_repository-qrdfHcWm.js +18 -0
- package/dist/tasks.cancel-DUgfGug0.js +20 -0
- package/dist/tasks.get-BpJX-eED.js +18 -0
- package/dist/tasks.list-D5EnZIyw.js +27 -0
- package/dist/termvectors-CX5hi46K.js +35 -0
- package/dist/update-B8xVC7Qt.js +32 -0
- package/dist/update_by_query-DSN1rIIE.js +21 -0
- package/dist/update_by_query-DdbkrOvL.js +67 -0
- package/dist/update_by_query_rethrottle-BfRXVPcQ.js +18 -0
- package/dist/webCli.js +38468 -0
- package/dist/worker-BdEgGm_3.js +1069 -0
- package/dist/x_json.ace.worker-DoXOeFDR.js +1128 -0
- package/package.json +70 -0
|
@@ -0,0 +1,1069 @@
|
|
|
1
|
+
var m = { exports: {} };
|
|
2
|
+
(function(h) {
|
|
3
|
+
function v(g, _) {
|
|
4
|
+
for (let n = g, e = ""; n; ) {
|
|
5
|
+
let r = _[n];
|
|
6
|
+
if (typeof r == "string") return r + e;
|
|
7
|
+
if (r)
|
|
8
|
+
return r.location.replace(/\/*$/, "/") + (e || r.main || r.name);
|
|
9
|
+
if (r === !1) return "";
|
|
10
|
+
let i = n.lastIndexOf("/");
|
|
11
|
+
if (i === -1) break;
|
|
12
|
+
e = n.substr(i) + e, n = n.slice(0, i);
|
|
13
|
+
}
|
|
14
|
+
return g;
|
|
15
|
+
}
|
|
16
|
+
if (!(h.window !== void 0 && h.document || h.acequire && h.define)) {
|
|
17
|
+
h.console || (h.console = function() {
|
|
18
|
+
let n = Array.prototype.slice.call(arguments, 0);
|
|
19
|
+
postMessage({ type: "log", data: n });
|
|
20
|
+
}, h.console.error = h.console.warn = h.console.log = h.console.trace = h.console), h.window = h, h.ace = h, h.onerror = function(n, e, r, i, t) {
|
|
21
|
+
postMessage({
|
|
22
|
+
type: "error",
|
|
23
|
+
data: {
|
|
24
|
+
message: n,
|
|
25
|
+
data: t.data,
|
|
26
|
+
file: e,
|
|
27
|
+
line: r,
|
|
28
|
+
col: i,
|
|
29
|
+
stack: t.stack
|
|
30
|
+
}
|
|
31
|
+
});
|
|
32
|
+
}, h.normalizeModule = function(n, e) {
|
|
33
|
+
if (e.indexOf("!") !== -1) {
|
|
34
|
+
let i = e.split("!");
|
|
35
|
+
return h.normalizeModule(n, i[0]) + "!" + h.normalizeModule(n, i[1]);
|
|
36
|
+
}
|
|
37
|
+
if (e.charAt(0) == ".") {
|
|
38
|
+
let i = n.split("/").slice(0, -1).join("/");
|
|
39
|
+
for (e = (i ? i + "/" : "") + e; e.indexOf(".") !== -1 && r != e; ) {
|
|
40
|
+
var r = e;
|
|
41
|
+
e = e.replace(/^\.\//, "").replace(/\/\.\//, "/").replace(/[^\/]+\/\.\.\//, "");
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
return e;
|
|
45
|
+
}, h.acequire = function(e, r) {
|
|
46
|
+
if (r || (r = e, e = null), !r.charAt)
|
|
47
|
+
throw Error(
|
|
48
|
+
"worker.js acequire() accepts only (parentId, id) as arguments"
|
|
49
|
+
);
|
|
50
|
+
r = h.normalizeModule(e, r);
|
|
51
|
+
let i = h.acequire.modules[r];
|
|
52
|
+
if (i)
|
|
53
|
+
return i.initialized || (i.initialized = !0, i.exports = i.factory().exports), i.exports;
|
|
54
|
+
if (!h.acequire.tlns) return console.log("unable to load " + r);
|
|
55
|
+
let t = v(r, h.acequire.tlns);
|
|
56
|
+
return t.slice(-3) != ".js" && (t += ".js"), h.acequire.id = r, h.acequire.modules[r] = {}, importScripts(t), h.acequire(e, r);
|
|
57
|
+
}, h.acequire.modules = {}, h.acequire.tlns = {}, h.define = function(n, e, r) {
|
|
58
|
+
if (arguments.length == 2 ? (r = e, typeof n != "string" && (e = n, n = h.acequire.id)) : arguments.length == 1 && (r = n, e = [], n = h.acequire.id), typeof r != "function")
|
|
59
|
+
return h.acequire.modules[n] = {
|
|
60
|
+
exports: r,
|
|
61
|
+
initialized: !0
|
|
62
|
+
}, void 0;
|
|
63
|
+
e.length || (e = ["require", "exports", "module"]);
|
|
64
|
+
let i = function(t) {
|
|
65
|
+
return h.acequire(n, t);
|
|
66
|
+
};
|
|
67
|
+
h.acequire.modules[n] = {
|
|
68
|
+
exports: {},
|
|
69
|
+
factory: function() {
|
|
70
|
+
let t = this, s = r.apply(
|
|
71
|
+
this,
|
|
72
|
+
e.map(function(u) {
|
|
73
|
+
switch (u) {
|
|
74
|
+
case "require":
|
|
75
|
+
return i;
|
|
76
|
+
case "exports":
|
|
77
|
+
return t.exports;
|
|
78
|
+
case "module":
|
|
79
|
+
return t;
|
|
80
|
+
default:
|
|
81
|
+
return i(u);
|
|
82
|
+
}
|
|
83
|
+
})
|
|
84
|
+
);
|
|
85
|
+
return s && (t.exports = s), t;
|
|
86
|
+
}
|
|
87
|
+
};
|
|
88
|
+
}, h.define.amd = {}, acequire.tlns = {}, h.initBaseUrls = function(n) {
|
|
89
|
+
for (let e in n)
|
|
90
|
+
acequire.tlns[e] = n[e];
|
|
91
|
+
}, h.initSender = function() {
|
|
92
|
+
let n = h.acequire("ace/lib/event_emitter").EventEmitter, e = h.acequire("ace/lib/oop"), r = function() {
|
|
93
|
+
};
|
|
94
|
+
return (function() {
|
|
95
|
+
e.implement(this, n), this.callback = function(i, t) {
|
|
96
|
+
postMessage({ type: "call", id: t, data: i });
|
|
97
|
+
}, this.emit = function(i, t) {
|
|
98
|
+
postMessage({ type: "event", name: i, data: t });
|
|
99
|
+
};
|
|
100
|
+
}).call(r.prototype), new r();
|
|
101
|
+
};
|
|
102
|
+
let g = h.main = null, _ = h.sender = null;
|
|
103
|
+
h.onmessage = function(n) {
|
|
104
|
+
let e = n.data;
|
|
105
|
+
if (e.event && _) _._signal(e.event, e.data);
|
|
106
|
+
else if (e.command)
|
|
107
|
+
if (g[e.command]) g[e.command].apply(g, e.args);
|
|
108
|
+
else {
|
|
109
|
+
if (!h[e.command])
|
|
110
|
+
throw Error("Unknown command:" + e.command);
|
|
111
|
+
h[e.command].apply(h, e.args);
|
|
112
|
+
}
|
|
113
|
+
else if (e.init) {
|
|
114
|
+
h.initBaseUrls(e.tlns), acequire("ace/lib/es5-shim"), _ = h.sender = h.initSender();
|
|
115
|
+
let r = acequire(e.module)[e.classname];
|
|
116
|
+
g = h.main = new r(_);
|
|
117
|
+
}
|
|
118
|
+
};
|
|
119
|
+
}
|
|
120
|
+
})(void 0), ace.define("ace/lib/oop", ["require", "exports", "module"], function(h, v) {
|
|
121
|
+
v.inherits = function(g, _) {
|
|
122
|
+
g.super_ = _, g.prototype = Object.create(_.prototype, {
|
|
123
|
+
constructor: {
|
|
124
|
+
value: g,
|
|
125
|
+
enumerable: !1,
|
|
126
|
+
writable: !0,
|
|
127
|
+
configurable: !0
|
|
128
|
+
}
|
|
129
|
+
});
|
|
130
|
+
}, v.mixin = function(g, _) {
|
|
131
|
+
for (let n in _) g[n] = _[n];
|
|
132
|
+
return g;
|
|
133
|
+
}, v.implement = function(g, _) {
|
|
134
|
+
v.mixin(g, _);
|
|
135
|
+
};
|
|
136
|
+
}), ace.define("ace/range", ["require", "exports", "module"], function(h, v) {
|
|
137
|
+
let g = function(n, e) {
|
|
138
|
+
return n.row - e.row || n.column - e.column;
|
|
139
|
+
}, _ = function(n, e, r, i) {
|
|
140
|
+
this.start = { row: n, column: e }, this.end = { row: r, column: i };
|
|
141
|
+
};
|
|
142
|
+
(function() {
|
|
143
|
+
this.isEqual = function(n) {
|
|
144
|
+
return this.start.row === n.start.row && this.end.row === n.end.row && this.start.column === n.start.column && this.end.column === n.end.column;
|
|
145
|
+
}, this.toString = function() {
|
|
146
|
+
return "Range: [" + this.start.row + "/" + this.start.column + "] -> [" + this.end.row + "/" + this.end.column + "]";
|
|
147
|
+
}, this.contains = function(n, e) {
|
|
148
|
+
return this.compare(n, e) == 0;
|
|
149
|
+
}, this.compareRange = function(n) {
|
|
150
|
+
let e, r = n.end, i = n.start;
|
|
151
|
+
return e = this.compare(r.row, r.column), e == 1 ? (e = this.compare(i.row, i.column), e == 1 ? 2 : e == 0 ? 1 : 0) : e == -1 ? -2 : (e = this.compare(i.row, i.column), e == -1 ? -1 : e == 1 ? 42 : 0);
|
|
152
|
+
}, this.comparePoint = function(n) {
|
|
153
|
+
return this.compare(n.row, n.column);
|
|
154
|
+
}, this.containsRange = function(n) {
|
|
155
|
+
return this.comparePoint(n.start) == 0 && this.comparePoint(n.end) == 0;
|
|
156
|
+
}, this.intersects = function(n) {
|
|
157
|
+
let e = this.compareRange(n);
|
|
158
|
+
return e == -1 || e == 0 || e == 1;
|
|
159
|
+
}, this.isEnd = function(n, e) {
|
|
160
|
+
return this.end.row == n && this.end.column == e;
|
|
161
|
+
}, this.isStart = function(n, e) {
|
|
162
|
+
return this.start.row == n && this.start.column == e;
|
|
163
|
+
}, this.setStart = function(n, e) {
|
|
164
|
+
typeof n == "object" ? (this.start.column = n.column, this.start.row = n.row) : (this.start.row = n, this.start.column = e);
|
|
165
|
+
}, this.setEnd = function(n, e) {
|
|
166
|
+
typeof n == "object" ? (this.end.column = n.column, this.end.row = n.row) : (this.end.row = n, this.end.column = e);
|
|
167
|
+
}, this.inside = function(n, e) {
|
|
168
|
+
return this.compare(n, e) == 0 ? !(this.isEnd(n, e) || this.isStart(n, e)) : !1;
|
|
169
|
+
}, this.insideStart = function(n, e) {
|
|
170
|
+
return this.compare(n, e) == 0 ? !this.isEnd(n, e) : !1;
|
|
171
|
+
}, this.insideEnd = function(n, e) {
|
|
172
|
+
return this.compare(n, e) == 0 ? !this.isStart(n, e) : !1;
|
|
173
|
+
}, this.compare = function(n, e) {
|
|
174
|
+
return this.isMultiLine() || n !== this.start.row ? this.start.row > n ? -1 : n > this.end.row ? 1 : this.start.row === n ? e >= this.start.column ? 0 : -1 : this.end.row === n ? this.end.column >= e ? 0 : 1 : 0 : this.start.column > e ? -1 : e > this.end.column ? 1 : 0;
|
|
175
|
+
}, this.compareStart = function(n, e) {
|
|
176
|
+
return this.start.row == n && this.start.column == e ? -1 : this.compare(n, e);
|
|
177
|
+
}, this.compareEnd = function(n, e) {
|
|
178
|
+
return this.end.row == n && this.end.column == e ? 1 : this.compare(n, e);
|
|
179
|
+
}, this.compareInside = function(n, e) {
|
|
180
|
+
return this.end.row == n && this.end.column == e ? 1 : this.start.row == n && this.start.column == e ? -1 : this.compare(n, e);
|
|
181
|
+
}, this.clipRows = function(n, e) {
|
|
182
|
+
if (this.end.row > e) var r = { row: e + 1, column: 0 };
|
|
183
|
+
else if (n > this.end.row)
|
|
184
|
+
var r = { row: n, column: 0 };
|
|
185
|
+
if (this.start.row > e)
|
|
186
|
+
var i = { row: e + 1, column: 0 };
|
|
187
|
+
else if (n > this.start.row)
|
|
188
|
+
var i = { row: n, column: 0 };
|
|
189
|
+
return _.fromPoints(i || this.start, r || this.end);
|
|
190
|
+
}, this.extend = function(n, e) {
|
|
191
|
+
let r = this.compare(n, e);
|
|
192
|
+
if (r == 0) return this;
|
|
193
|
+
if (r == -1) var i = { row: n, column: e };
|
|
194
|
+
else var t = { row: n, column: e };
|
|
195
|
+
return _.fromPoints(i || this.start, t || this.end);
|
|
196
|
+
}, this.isEmpty = function() {
|
|
197
|
+
return this.start.row === this.end.row && this.start.column === this.end.column;
|
|
198
|
+
}, this.isMultiLine = function() {
|
|
199
|
+
return this.start.row !== this.end.row;
|
|
200
|
+
}, this.clone = function() {
|
|
201
|
+
return _.fromPoints(this.start, this.end);
|
|
202
|
+
}, this.collapseRows = function() {
|
|
203
|
+
return this.end.column == 0 ? new _(
|
|
204
|
+
this.start.row,
|
|
205
|
+
0,
|
|
206
|
+
Math.max(this.start.row, this.end.row - 1),
|
|
207
|
+
0
|
|
208
|
+
) : new _(this.start.row, 0, this.end.row, 0);
|
|
209
|
+
}, this.toScreenRange = function(n) {
|
|
210
|
+
let e = n.documentToScreenPosition(this.start), r = n.documentToScreenPosition(this.end);
|
|
211
|
+
return new _(
|
|
212
|
+
e.row,
|
|
213
|
+
e.column,
|
|
214
|
+
r.row,
|
|
215
|
+
r.column
|
|
216
|
+
);
|
|
217
|
+
}, this.moveBy = function(n, e) {
|
|
218
|
+
this.start.row += n, this.start.column += e, this.end.row += n, this.end.column += e;
|
|
219
|
+
};
|
|
220
|
+
}).call(_.prototype), _.fromPoints = function(n, e) {
|
|
221
|
+
return new _(n.row, n.column, e.row, e.column);
|
|
222
|
+
}, _.comparePoints = g, _.comparePoints = function(n, e) {
|
|
223
|
+
return n.row - e.row || n.column - e.column;
|
|
224
|
+
}, v.Range = _;
|
|
225
|
+
}), ace.define("ace/apply_delta", ["require", "exports", "module"], function(h, v) {
|
|
226
|
+
v.applyDelta = function(g, _) {
|
|
227
|
+
let n = _.start.row, e = _.start.column, r = g[n] || "";
|
|
228
|
+
switch (_.action) {
|
|
229
|
+
case "insert":
|
|
230
|
+
var i = _.lines;
|
|
231
|
+
if (i.length === 1)
|
|
232
|
+
g[n] = r.substring(0, e) + _.lines[0] + r.substring(e);
|
|
233
|
+
else {
|
|
234
|
+
let u = [n, 1].concat(_.lines);
|
|
235
|
+
g.splice.apply(g, u), g[n] = r.substring(0, e) + g[n], g[n + _.lines.length - 1] += r.substring(
|
|
236
|
+
e
|
|
237
|
+
);
|
|
238
|
+
}
|
|
239
|
+
break;
|
|
240
|
+
case "remove":
|
|
241
|
+
var t = _.end.column, s = _.end.row;
|
|
242
|
+
n === s ? g[n] = r.substring(0, e) + r.substring(t) : g.splice(
|
|
243
|
+
n,
|
|
244
|
+
s - n + 1,
|
|
245
|
+
r.substring(0, e) + g[s].substring(t)
|
|
246
|
+
);
|
|
247
|
+
}
|
|
248
|
+
};
|
|
249
|
+
}), ace.define(
|
|
250
|
+
"ace/lib/event_emitter",
|
|
251
|
+
["require", "exports", "module"],
|
|
252
|
+
function(h, v) {
|
|
253
|
+
let g = {}, _ = function() {
|
|
254
|
+
this.propagationStopped = !0;
|
|
255
|
+
}, n = function() {
|
|
256
|
+
this.defaultPrevented = !0;
|
|
257
|
+
};
|
|
258
|
+
g._emit = g._dispatchEvent = function(e, r) {
|
|
259
|
+
this._eventRegistry || (this._eventRegistry = {}), this._defaultHandlers || (this._defaultHandlers = {});
|
|
260
|
+
let i = this._eventRegistry[e] || [], t = this._defaultHandlers[e];
|
|
261
|
+
if (i.length || t) {
|
|
262
|
+
typeof r == "object" && r || (r = {}), r.type || (r.type = e), r.stopPropagation || (r.stopPropagation = _), r.preventDefault || (r.preventDefault = n), i = i.slice();
|
|
263
|
+
for (let s = 0; i.length > s && (i[s](r, this), !r.propagationStopped); s++) ;
|
|
264
|
+
return t && !r.defaultPrevented ? t(r, this) : void 0;
|
|
265
|
+
}
|
|
266
|
+
}, g._signal = function(e, r) {
|
|
267
|
+
let i = (this._eventRegistry || {})[e];
|
|
268
|
+
if (i) {
|
|
269
|
+
i = i.slice();
|
|
270
|
+
for (let t = 0; i.length > t; t++) i[t](r, this);
|
|
271
|
+
}
|
|
272
|
+
}, g.once = function(e, r) {
|
|
273
|
+
let i = this;
|
|
274
|
+
r && this.addEventListener(e, function t() {
|
|
275
|
+
i.removeEventListener(e, t), r.apply(null, arguments);
|
|
276
|
+
});
|
|
277
|
+
}, g.setDefaultHandler = function(e, r) {
|
|
278
|
+
let i = this._defaultHandlers;
|
|
279
|
+
if (i || (i = this._defaultHandlers = { _disabled_: {} }), i[e]) {
|
|
280
|
+
let t = i[e], s = i._disabled_[e];
|
|
281
|
+
s || (i._disabled_[e] = s = []), s.push(t);
|
|
282
|
+
let u = s.indexOf(r);
|
|
283
|
+
u != -1 && s.splice(u, 1);
|
|
284
|
+
}
|
|
285
|
+
i[e] = r;
|
|
286
|
+
}, g.removeDefaultHandler = function(e, r) {
|
|
287
|
+
let i = this._defaultHandlers;
|
|
288
|
+
if (i) {
|
|
289
|
+
let t = i._disabled_[e];
|
|
290
|
+
if (i[e] == r)
|
|
291
|
+
i[e], t && this.setDefaultHandler(e, t.pop());
|
|
292
|
+
else if (t) {
|
|
293
|
+
let s = t.indexOf(r);
|
|
294
|
+
s != -1 && t.splice(s, 1);
|
|
295
|
+
}
|
|
296
|
+
}
|
|
297
|
+
}, g.on = g.addEventListener = function(e, r, i) {
|
|
298
|
+
this._eventRegistry = this._eventRegistry || {};
|
|
299
|
+
let t = this._eventRegistry[e];
|
|
300
|
+
return t || (t = this._eventRegistry[e] = []), t.indexOf(r) == -1 && t[i ? "unshift" : "push"](r), r;
|
|
301
|
+
}, g.off = g.removeListener = g.removeEventListener = function(e, r) {
|
|
302
|
+
this._eventRegistry = this._eventRegistry || {};
|
|
303
|
+
let i = this._eventRegistry[e];
|
|
304
|
+
if (i) {
|
|
305
|
+
let t = i.indexOf(r);
|
|
306
|
+
t !== -1 && i.splice(t, 1);
|
|
307
|
+
}
|
|
308
|
+
}, g.removeAllListeners = function(e) {
|
|
309
|
+
this._eventRegistry && (this._eventRegistry[e] = []);
|
|
310
|
+
}, v.EventEmitter = g;
|
|
311
|
+
}
|
|
312
|
+
), ace.define(
|
|
313
|
+
"ace/anchor",
|
|
314
|
+
["require", "exports", "module", "ace/lib/oop", "ace/lib/event_emitter"],
|
|
315
|
+
function(h, v) {
|
|
316
|
+
let g = h("./lib/oop"), _ = h("./lib/event_emitter").EventEmitter, n = v.Anchor = function(e, r, i) {
|
|
317
|
+
this.$onChange = this.onChange.bind(this), this.attach(e), i === void 0 ? this.setPosition(r.row, r.column) : this.setPosition(r, i);
|
|
318
|
+
};
|
|
319
|
+
(function() {
|
|
320
|
+
function e(i, t, s) {
|
|
321
|
+
let u = s ? i.column <= t.column : i.column < t.column;
|
|
322
|
+
return i.row < t.row || i.row == t.row && u;
|
|
323
|
+
}
|
|
324
|
+
function r(i, t, s) {
|
|
325
|
+
let u = i.action == "insert", y = (u ? 1 : -1) * (i.end.row - i.start.row), d = (u ? 1 : -1) * (i.end.column - i.start.column), x = i.start, E = u ? x : i.end;
|
|
326
|
+
return e(t, x, s) ? { row: t.row, column: t.column } : e(E, t, !s) ? {
|
|
327
|
+
row: t.row + y,
|
|
328
|
+
column: t.column + (t.row == E.row ? d : 0)
|
|
329
|
+
} : { row: x.row, column: x.column };
|
|
330
|
+
}
|
|
331
|
+
g.implement(this, _), this.getPosition = function() {
|
|
332
|
+
return this.$clipPositionToDocument(this.row, this.column);
|
|
333
|
+
}, this.getDocument = function() {
|
|
334
|
+
return this.document;
|
|
335
|
+
}, this.$insertRight = !1, this.onChange = function(i) {
|
|
336
|
+
if (!(i.start.row == i.end.row && i.start.row != this.row || i.start.row > this.row)) {
|
|
337
|
+
let t = r(
|
|
338
|
+
i,
|
|
339
|
+
{ row: this.row, column: this.column },
|
|
340
|
+
this.$insertRight
|
|
341
|
+
);
|
|
342
|
+
this.setPosition(t.row, t.column, !0);
|
|
343
|
+
}
|
|
344
|
+
}, this.setPosition = function(i, t, s) {
|
|
345
|
+
let u;
|
|
346
|
+
if (u = s ? { row: i, column: t } : this.$clipPositionToDocument(i, t), this.row != u.row || this.column != u.column) {
|
|
347
|
+
let y = { row: this.row, column: this.column };
|
|
348
|
+
this.row = u.row, this.column = u.column, this._signal("change", { old: y, value: u });
|
|
349
|
+
}
|
|
350
|
+
}, this.detach = function() {
|
|
351
|
+
this.document.removeEventListener("change", this.$onChange);
|
|
352
|
+
}, this.attach = function(i) {
|
|
353
|
+
this.document = i || this.document, this.document.on("change", this.$onChange);
|
|
354
|
+
}, this.$clipPositionToDocument = function(i, t) {
|
|
355
|
+
let s = {};
|
|
356
|
+
return i >= this.document.getLength() ? (s.row = Math.max(0, this.document.getLength() - 1), s.column = this.document.getLine(s.row).length) : 0 > i ? (s.row = 0, s.column = 0) : (s.row = i, s.column = Math.min(
|
|
357
|
+
this.document.getLine(s.row).length,
|
|
358
|
+
Math.max(0, t)
|
|
359
|
+
)), 0 > t && (s.column = 0), s;
|
|
360
|
+
};
|
|
361
|
+
}).call(n.prototype);
|
|
362
|
+
}
|
|
363
|
+
), ace.define(
|
|
364
|
+
"ace/document",
|
|
365
|
+
[
|
|
366
|
+
"require",
|
|
367
|
+
"exports",
|
|
368
|
+
"module",
|
|
369
|
+
"ace/lib/oop",
|
|
370
|
+
"ace/apply_delta",
|
|
371
|
+
"ace/lib/event_emitter",
|
|
372
|
+
"ace/range",
|
|
373
|
+
"ace/anchor"
|
|
374
|
+
],
|
|
375
|
+
function(h, v) {
|
|
376
|
+
let g = h("./lib/oop"), _ = h("./apply_delta").applyDelta, n = h("./lib/event_emitter").EventEmitter, e = h("./range").Range, r = h("./anchor").Anchor, i = function(t) {
|
|
377
|
+
this.$lines = [""], t.length === 0 ? this.$lines = [""] : Array.isArray(t) ? this.insertMergedLines({ row: 0, column: 0 }, t) : this.insert({ row: 0, column: 0 }, t);
|
|
378
|
+
};
|
|
379
|
+
(function() {
|
|
380
|
+
g.implement(this, n), this.setValue = function(t) {
|
|
381
|
+
let s = this.getLength() - 1;
|
|
382
|
+
this.remove(new e(0, 0, s, this.getLine(s).length)), this.insert({ row: 0, column: 0 }, t);
|
|
383
|
+
}, this.getValue = function() {
|
|
384
|
+
return this.getAllLines().join(this.getNewLineCharacter());
|
|
385
|
+
}, this.createAnchor = function(t, s) {
|
|
386
|
+
return new r(this, t, s);
|
|
387
|
+
}, this.$split = "aaa".split(/a/).length === 0 ? function(t) {
|
|
388
|
+
return t.replace(/\r\n|\r/g, `
|
|
389
|
+
`).split(`
|
|
390
|
+
`);
|
|
391
|
+
} : function(t) {
|
|
392
|
+
return t.split(/\r\n|\r|\n/);
|
|
393
|
+
}, this.$detectNewLine = function(t) {
|
|
394
|
+
let s = t.match(/^.*?(\r\n|\r|\n)/m);
|
|
395
|
+
this.$autoNewLine = s ? s[1] : `
|
|
396
|
+
`, this._signal("changeNewLineMode");
|
|
397
|
+
}, this.getNewLineCharacter = function() {
|
|
398
|
+
switch (this.$newLineMode) {
|
|
399
|
+
case "windows":
|
|
400
|
+
return `\r
|
|
401
|
+
`;
|
|
402
|
+
case "unix":
|
|
403
|
+
return `
|
|
404
|
+
`;
|
|
405
|
+
default:
|
|
406
|
+
return this.$autoNewLine || `
|
|
407
|
+
`;
|
|
408
|
+
}
|
|
409
|
+
}, this.$autoNewLine = "", this.$newLineMode = "auto", this.setNewLineMode = function(t) {
|
|
410
|
+
this.$newLineMode !== t && (this.$newLineMode = t, this._signal("changeNewLineMode"));
|
|
411
|
+
}, this.getNewLineMode = function() {
|
|
412
|
+
return this.$newLineMode;
|
|
413
|
+
}, this.isNewLine = function(t) {
|
|
414
|
+
return t == `\r
|
|
415
|
+
` || t == "\r" || t == `
|
|
416
|
+
`;
|
|
417
|
+
}, this.getLine = function(t) {
|
|
418
|
+
return this.$lines[t] || "";
|
|
419
|
+
}, this.getLines = function(t, s) {
|
|
420
|
+
return this.$lines.slice(t, s + 1);
|
|
421
|
+
}, this.getAllLines = function() {
|
|
422
|
+
return this.getLines(0, this.getLength());
|
|
423
|
+
}, this.getLength = function() {
|
|
424
|
+
return this.$lines.length;
|
|
425
|
+
}, this.getTextRange = function(t) {
|
|
426
|
+
return this.getLinesForRange(t).join(
|
|
427
|
+
this.getNewLineCharacter()
|
|
428
|
+
);
|
|
429
|
+
}, this.getLinesForRange = function(t) {
|
|
430
|
+
let s;
|
|
431
|
+
if (t.start.row === t.end.row)
|
|
432
|
+
s = [
|
|
433
|
+
this.getLine(t.start.row).substring(
|
|
434
|
+
t.start.column,
|
|
435
|
+
t.end.column
|
|
436
|
+
)
|
|
437
|
+
];
|
|
438
|
+
else {
|
|
439
|
+
s = this.getLines(t.start.row, t.end.row), s[0] = (s[0] || "").substring(t.start.column);
|
|
440
|
+
let u = s.length - 1;
|
|
441
|
+
t.end.row - t.start.row == u && (s[u] = s[u].substring(0, t.end.column));
|
|
442
|
+
}
|
|
443
|
+
return s;
|
|
444
|
+
}, this.insertLines = function(t, s) {
|
|
445
|
+
return console.warn(
|
|
446
|
+
"Use of document.insertLines is deprecated. Use the insertFullLines method instead."
|
|
447
|
+
), this.insertFullLines(t, s);
|
|
448
|
+
}, this.removeLines = function(t, s) {
|
|
449
|
+
return console.warn(
|
|
450
|
+
"Use of document.removeLines is deprecated. Use the removeFullLines method instead."
|
|
451
|
+
), this.removeFullLines(t, s);
|
|
452
|
+
}, this.insertNewLine = function(t) {
|
|
453
|
+
return console.warn(
|
|
454
|
+
"Use of document.insertNewLine is deprecated. Use insertMergedLines(position, ['', '']) instead."
|
|
455
|
+
), this.insertMergedLines(t, ["", ""]);
|
|
456
|
+
}, this.insert = function(t, s) {
|
|
457
|
+
return 1 >= this.getLength() && this.$detectNewLine(s), this.insertMergedLines(t, this.$split(s));
|
|
458
|
+
}, this.insertInLine = function(t, s) {
|
|
459
|
+
let u = this.clippedPos(t.row, t.column), y = this.pos(t.row, t.column + s.length);
|
|
460
|
+
return this.applyDelta(
|
|
461
|
+
{ start: u, end: y, action: "insert", lines: [s] },
|
|
462
|
+
!0
|
|
463
|
+
), this.clonePos(y);
|
|
464
|
+
}, this.clippedPos = function(t, s) {
|
|
465
|
+
let u = this.getLength();
|
|
466
|
+
t === void 0 ? t = u : 0 > t ? t = 0 : t >= u && (t = u - 1, s = void 0);
|
|
467
|
+
let y = this.getLine(t);
|
|
468
|
+
return s == null && (s = y.length), s = Math.min(Math.max(s, 0), y.length), { row: t, column: s };
|
|
469
|
+
}, this.clonePos = function(t) {
|
|
470
|
+
return { row: t.row, column: t.column };
|
|
471
|
+
}, this.pos = function(t, s) {
|
|
472
|
+
return { row: t, column: s };
|
|
473
|
+
}, this.$clipPosition = function(t) {
|
|
474
|
+
let s = this.getLength();
|
|
475
|
+
return t.row >= s ? (t.row = Math.max(0, s - 1), t.column = this.getLine(s - 1).length) : (t.row = Math.max(0, t.row), t.column = Math.min(
|
|
476
|
+
Math.max(t.column, 0),
|
|
477
|
+
this.getLine(t.row).length
|
|
478
|
+
)), t;
|
|
479
|
+
}, this.insertFullLines = function(t, s) {
|
|
480
|
+
t = Math.min(Math.max(t, 0), this.getLength());
|
|
481
|
+
let u = 0;
|
|
482
|
+
this.getLength() > t ? (s = s.concat([""]), u = 0) : (s = [""].concat(s), t--, u = this.$lines[t].length), this.insertMergedLines({ row: t, column: u }, s);
|
|
483
|
+
}, this.insertMergedLines = function(t, s) {
|
|
484
|
+
let u = this.clippedPos(t.row, t.column), y = {
|
|
485
|
+
row: u.row + s.length - 1,
|
|
486
|
+
column: (s.length == 1 ? u.column : 0) + s[s.length - 1].length
|
|
487
|
+
};
|
|
488
|
+
return this.applyDelta({
|
|
489
|
+
start: u,
|
|
490
|
+
end: y,
|
|
491
|
+
action: "insert",
|
|
492
|
+
lines: s
|
|
493
|
+
}), this.clonePos(y);
|
|
494
|
+
}, this.remove = function(t) {
|
|
495
|
+
let s = this.clippedPos(t.start.row, t.start.column), u = this.clippedPos(t.end.row, t.end.column);
|
|
496
|
+
return this.applyDelta({
|
|
497
|
+
start: s,
|
|
498
|
+
end: u,
|
|
499
|
+
action: "remove",
|
|
500
|
+
lines: this.getLinesForRange({ start: s, end: u })
|
|
501
|
+
}), this.clonePos(s);
|
|
502
|
+
}, this.removeInLine = function(t, s, u) {
|
|
503
|
+
let y = this.clippedPos(t, s), d = this.clippedPos(t, u);
|
|
504
|
+
return this.applyDelta(
|
|
505
|
+
{
|
|
506
|
+
start: y,
|
|
507
|
+
end: d,
|
|
508
|
+
action: "remove",
|
|
509
|
+
lines: this.getLinesForRange({ start: y, end: d })
|
|
510
|
+
},
|
|
511
|
+
!0
|
|
512
|
+
), this.clonePos(y);
|
|
513
|
+
}, this.removeFullLines = function(t, s) {
|
|
514
|
+
t = Math.min(Math.max(0, t), this.getLength() - 1), s = Math.min(Math.max(0, s), this.getLength() - 1);
|
|
515
|
+
let u = s == this.getLength() - 1 && t > 0, y = this.getLength() - 1 > s, d = u ? t - 1 : t, x = u ? this.getLine(d).length : 0, E = y ? s + 1 : s, S = y ? 0 : this.getLine(E).length, O = new e(d, x, E, S), T = this.$lines.slice(t, s + 1);
|
|
516
|
+
return this.applyDelta({
|
|
517
|
+
start: O.start,
|
|
518
|
+
end: O.end,
|
|
519
|
+
action: "remove",
|
|
520
|
+
lines: this.getLinesForRange(O)
|
|
521
|
+
}), T;
|
|
522
|
+
}, this.removeNewLine = function(t) {
|
|
523
|
+
this.getLength() - 1 > t && t >= 0 && this.applyDelta({
|
|
524
|
+
start: this.pos(t, this.getLine(t).length),
|
|
525
|
+
end: this.pos(t + 1, 0),
|
|
526
|
+
action: "remove",
|
|
527
|
+
lines: ["", ""]
|
|
528
|
+
});
|
|
529
|
+
}, this.replace = function(t, s) {
|
|
530
|
+
return t instanceof e || (t = e.fromPoints(t.start, t.end)), s.length === 0 && t.isEmpty() ? t.start : s == this.getTextRange(t) ? t.end : (this.remove(t), s ? this.insert(t.start, s) : t.start);
|
|
531
|
+
}, this.applyDeltas = function(t) {
|
|
532
|
+
for (let s = 0; t.length > s; s++) this.applyDelta(t[s]);
|
|
533
|
+
}, this.revertDeltas = function(t) {
|
|
534
|
+
for (let s = t.length - 1; s >= 0; s--)
|
|
535
|
+
this.revertDelta(t[s]);
|
|
536
|
+
}, this.applyDelta = function(t, s) {
|
|
537
|
+
let u = t.action == "insert";
|
|
538
|
+
(u ? 1 >= t.lines.length && !t.lines[0] : !e.comparePoints(t.start, t.end)) || (u && t.lines.length > 2e4 && this.$splitAndapplyLargeDelta(t, 2e4), _(this.$lines, t, s), this._signal("change", t));
|
|
539
|
+
}, this.$splitAndapplyLargeDelta = function(t, s) {
|
|
540
|
+
for (let u = t.lines, y = u.length, d = t.start.row, x = t.start.column, E = 0, S = 0; ; ) {
|
|
541
|
+
E = S, S += s - 1;
|
|
542
|
+
let O = u.slice(E, S);
|
|
543
|
+
if (S > y) {
|
|
544
|
+
t.lines = O, t.start.row = d + E, t.start.column = x;
|
|
545
|
+
break;
|
|
546
|
+
}
|
|
547
|
+
O.push(""), this.applyDelta(
|
|
548
|
+
{
|
|
549
|
+
start: this.pos(d + E, x),
|
|
550
|
+
end: this.pos(d + S, x = 0),
|
|
551
|
+
action: t.action,
|
|
552
|
+
lines: O
|
|
553
|
+
},
|
|
554
|
+
!0
|
|
555
|
+
);
|
|
556
|
+
}
|
|
557
|
+
}, this.revertDelta = function(t) {
|
|
558
|
+
this.applyDelta({
|
|
559
|
+
start: this.clonePos(t.start),
|
|
560
|
+
end: this.clonePos(t.end),
|
|
561
|
+
action: t.action == "insert" ? "remove" : "insert",
|
|
562
|
+
lines: t.lines.slice()
|
|
563
|
+
});
|
|
564
|
+
}, this.indexToPosition = function(t, s) {
|
|
565
|
+
for (var u = this.$lines || this.getAllLines(), y = this.getNewLineCharacter().length, d = s || 0, x = u.length; x > d; d++)
|
|
566
|
+
if (t -= u[d].length + y, 0 > t)
|
|
567
|
+
return {
|
|
568
|
+
row: d,
|
|
569
|
+
column: t + u[d].length + y
|
|
570
|
+
};
|
|
571
|
+
return { row: x - 1, column: u[x - 1].length };
|
|
572
|
+
}, this.positionToIndex = function(t, s) {
|
|
573
|
+
for (var u = this.$lines || this.getAllLines(), y = this.getNewLineCharacter().length, d = 0, x = Math.min(t.row, u.length), E = s || 0; x > E; ++E)
|
|
574
|
+
d += u[E].length + y;
|
|
575
|
+
return d + t.column;
|
|
576
|
+
};
|
|
577
|
+
}).call(i.prototype), v.Document = i;
|
|
578
|
+
}
|
|
579
|
+
), ace.define("ace/lib/lang", ["require", "exports", "module"], function(h, v) {
|
|
580
|
+
v.last = function(n) {
|
|
581
|
+
return n[n.length - 1];
|
|
582
|
+
}, v.stringReverse = function(n) {
|
|
583
|
+
return n.split("").reverse().join("");
|
|
584
|
+
}, v.stringRepeat = function(n, e) {
|
|
585
|
+
for (var r = ""; e > 0; )
|
|
586
|
+
1 & e && (r += n), (e >>= 1) && (n += n);
|
|
587
|
+
return r;
|
|
588
|
+
};
|
|
589
|
+
let g = /^\s\s*/, _ = /\s\s*$/;
|
|
590
|
+
v.stringTrimLeft = function(n) {
|
|
591
|
+
return n.replace(g, "");
|
|
592
|
+
}, v.stringTrimRight = function(n) {
|
|
593
|
+
return n.replace(_, "");
|
|
594
|
+
}, v.copyObject = function(n) {
|
|
595
|
+
let e = {};
|
|
596
|
+
for (let r in n) e[r] = n[r];
|
|
597
|
+
return e;
|
|
598
|
+
}, v.copyArray = function(n) {
|
|
599
|
+
for (var e = [], r = 0, i = n.length; i > r; r++)
|
|
600
|
+
e[r] = n[r] && typeof n[r] == "object" ? this.copyObject(n[r]) : n[r];
|
|
601
|
+
return e;
|
|
602
|
+
}, v.deepCopy = function n(e) {
|
|
603
|
+
if (typeof e != "object" || !e) return e;
|
|
604
|
+
let r;
|
|
605
|
+
if (Array.isArray(e)) {
|
|
606
|
+
r = [];
|
|
607
|
+
for (var i = 0; e.length > i; i++)
|
|
608
|
+
r[i] = n(e[i]);
|
|
609
|
+
return r;
|
|
610
|
+
}
|
|
611
|
+
if (Object.prototype.toString.call(e) !== "[object Object]")
|
|
612
|
+
return e;
|
|
613
|
+
r = {};
|
|
614
|
+
for (var i in e) r[i] = n(e[i]);
|
|
615
|
+
return r;
|
|
616
|
+
}, v.arrayToMap = function(n) {
|
|
617
|
+
for (var e = {}, r = 0; n.length > r; r++) e[n[r]] = 1;
|
|
618
|
+
return e;
|
|
619
|
+
}, v.createMap = function(n) {
|
|
620
|
+
let e = /* @__PURE__ */ Object.create(null);
|
|
621
|
+
for (let r in n) e[r] = n[r];
|
|
622
|
+
return e;
|
|
623
|
+
}, v.arrayRemove = function(n, e) {
|
|
624
|
+
for (let r = 0; n.length >= r; r++)
|
|
625
|
+
e === n[r] && n.splice(r, 1);
|
|
626
|
+
}, v.escapeRegExp = function(n) {
|
|
627
|
+
return n.replace(/([.*+?^${}()|[\]\/\\])/g, "\\$1");
|
|
628
|
+
}, v.escapeHTML = function(n) {
|
|
629
|
+
return n.replace(/&/g, "&").replace(/"/g, """).replace(/'/g, "'").replace(/</g, "<");
|
|
630
|
+
}, v.getMatchOffsets = function(n, e) {
|
|
631
|
+
let r = [];
|
|
632
|
+
return n.replace(e, function(i) {
|
|
633
|
+
r.push({
|
|
634
|
+
offset: arguments[arguments.length - 2],
|
|
635
|
+
length: i.length
|
|
636
|
+
});
|
|
637
|
+
}), r;
|
|
638
|
+
}, v.deferredCall = function(n) {
|
|
639
|
+
var e = null, r = function() {
|
|
640
|
+
e = null, n();
|
|
641
|
+
}, i = function(t) {
|
|
642
|
+
return i.cancel(), e = setTimeout(r, t || 0), i;
|
|
643
|
+
};
|
|
644
|
+
return i.schedule = i, i.call = function() {
|
|
645
|
+
return this.cancel(), n(), i;
|
|
646
|
+
}, i.cancel = function() {
|
|
647
|
+
return clearTimeout(e), e = null, i;
|
|
648
|
+
}, i.isPending = function() {
|
|
649
|
+
return e;
|
|
650
|
+
}, i;
|
|
651
|
+
}, v.delayedCall = function(n, e) {
|
|
652
|
+
let r = null, i = function() {
|
|
653
|
+
r = null, n();
|
|
654
|
+
}, t = function(s) {
|
|
655
|
+
r == null && (r = setTimeout(i, s || e));
|
|
656
|
+
};
|
|
657
|
+
return t.delay = function(s) {
|
|
658
|
+
r && clearTimeout(r), r = setTimeout(i, s || e);
|
|
659
|
+
}, t.schedule = t, t.call = function() {
|
|
660
|
+
this.cancel(), n();
|
|
661
|
+
}, t.cancel = function() {
|
|
662
|
+
r && clearTimeout(r), r = null;
|
|
663
|
+
}, t.isPending = function() {
|
|
664
|
+
return r;
|
|
665
|
+
}, t;
|
|
666
|
+
};
|
|
667
|
+
}), ace.define(
|
|
668
|
+
"ace/worker/mirror",
|
|
669
|
+
[
|
|
670
|
+
"require",
|
|
671
|
+
"exports",
|
|
672
|
+
"module",
|
|
673
|
+
"ace/range",
|
|
674
|
+
"ace/document",
|
|
675
|
+
"ace/lib/lang"
|
|
676
|
+
],
|
|
677
|
+
function(h, v) {
|
|
678
|
+
h("../range").Range;
|
|
679
|
+
let g = h("../document").Document, _ = h("../lib/lang"), n = v.Mirror = function(e) {
|
|
680
|
+
this.sender = e;
|
|
681
|
+
let r = this.doc = new g(""), i = this.deferredUpdate = _.delayedCall(
|
|
682
|
+
this.onUpdate.bind(this)
|
|
683
|
+
), t = this;
|
|
684
|
+
e.on("change", function(s) {
|
|
685
|
+
let u = s.data;
|
|
686
|
+
if (u[0].start) r.applyDeltas(u);
|
|
687
|
+
else
|
|
688
|
+
for (var y = 0; u.length > y; y += 2) {
|
|
689
|
+
if (Array.isArray(u[y + 1]))
|
|
690
|
+
var d = {
|
|
691
|
+
action: "insert",
|
|
692
|
+
start: u[y],
|
|
693
|
+
lines: u[y + 1]
|
|
694
|
+
};
|
|
695
|
+
else
|
|
696
|
+
var d = {
|
|
697
|
+
action: "remove",
|
|
698
|
+
start: u[y],
|
|
699
|
+
end: u[y + 1]
|
|
700
|
+
};
|
|
701
|
+
r.applyDelta(d, !0);
|
|
702
|
+
}
|
|
703
|
+
return t.$timeout ? i.schedule(t.$timeout) : (t.onUpdate(), void 0);
|
|
704
|
+
});
|
|
705
|
+
};
|
|
706
|
+
(function() {
|
|
707
|
+
this.$timeout = 500, this.setTimeout = function(e) {
|
|
708
|
+
this.$timeout = e;
|
|
709
|
+
}, this.setValue = function(e) {
|
|
710
|
+
this.doc.setValue(e), this.deferredUpdate.schedule(this.$timeout);
|
|
711
|
+
}, this.getValue = function(e) {
|
|
712
|
+
this.sender.callback(this.doc.getValue(), e);
|
|
713
|
+
}, this.onUpdate = function() {
|
|
714
|
+
}, this.isPending = function() {
|
|
715
|
+
return this.deferredUpdate.isPending();
|
|
716
|
+
};
|
|
717
|
+
}).call(n.prototype);
|
|
718
|
+
}
|
|
719
|
+
), ace.define("ace/lib/es5-shim", ["require", "exports", "module"], function() {
|
|
720
|
+
function h() {
|
|
721
|
+
}
|
|
722
|
+
function v(o) {
|
|
723
|
+
try {
|
|
724
|
+
return Object.defineProperty(o, "sentinel", {}), "sentinel" in o;
|
|
725
|
+
} catch {
|
|
726
|
+
}
|
|
727
|
+
}
|
|
728
|
+
function g(o) {
|
|
729
|
+
return o = +o, o !== o ? o = 0 : o !== 0 && o !== 1 / 0 && o !== -1 / 0 && (o = (o > 0 || -1) * Math.floor(Math.abs(o))), o;
|
|
730
|
+
}
|
|
731
|
+
Function.prototype.bind || (Function.prototype.bind = function(o) {
|
|
732
|
+
let l = this;
|
|
733
|
+
if (typeof l != "function")
|
|
734
|
+
throw new TypeError(
|
|
735
|
+
"Function.prototype.bind called on incompatible " + l
|
|
736
|
+
);
|
|
737
|
+
var a = y.call(arguments, 1), c = function() {
|
|
738
|
+
if (this instanceof c) {
|
|
739
|
+
let f = l.apply(
|
|
740
|
+
this,
|
|
741
|
+
a.concat(y.call(arguments))
|
|
742
|
+
);
|
|
743
|
+
return Object(f) === f ? f : this;
|
|
744
|
+
}
|
|
745
|
+
return l.apply(o, a.concat(y.call(arguments)));
|
|
746
|
+
};
|
|
747
|
+
return l.prototype && (h.prototype = l.prototype, c.prototype = new h(), h.prototype = null), c;
|
|
748
|
+
});
|
|
749
|
+
var _, n, e, r, i, t = Function.prototype.call, s = Array.prototype, u = Object.prototype, y = s.slice, d = t.bind(u.toString), x = t.bind(u.hasOwnProperty);
|
|
750
|
+
if ((i = x(u, "__defineGetter__")) && (_ = t.bind(u.__defineGetter__), n = t.bind(u.__defineSetter__), e = t.bind(u.__lookupGetter__), r = t.bind(u.__lookupSetter__)), [1, 2].splice(0).length != 2)
|
|
751
|
+
if (function() {
|
|
752
|
+
function o(c) {
|
|
753
|
+
var f = Array(c + 2);
|
|
754
|
+
return f[0] = f[1] = 0, f;
|
|
755
|
+
}
|
|
756
|
+
var l, a = [];
|
|
757
|
+
return a.splice.apply(a, o(20)), a.splice.apply(a, o(26)), l = a.length, a.splice(5, 0, "XXX"), l + 1 == a.length ? !0 : void 0;
|
|
758
|
+
}()) {
|
|
759
|
+
var E = Array.prototype.splice;
|
|
760
|
+
Array.prototype.splice = function(o, l) {
|
|
761
|
+
return arguments.length ? E.apply(
|
|
762
|
+
this,
|
|
763
|
+
[
|
|
764
|
+
o === void 0 ? 0 : o,
|
|
765
|
+
l === void 0 ? this.length - o : l
|
|
766
|
+
].concat(y.call(arguments, 2))
|
|
767
|
+
) : [];
|
|
768
|
+
};
|
|
769
|
+
} else
|
|
770
|
+
Array.prototype.splice = function(o, l) {
|
|
771
|
+
var a = this.length;
|
|
772
|
+
o > 0 ? o > a && (o = a) : o == null ? o = 0 : 0 > o && (o = Math.max(a + o, 0)), a > o + l || (l = a - o);
|
|
773
|
+
var c = this.slice(o, o + l), f = y.call(arguments, 2), p = f.length;
|
|
774
|
+
if (o === a) p && this.push.apply(this, f);
|
|
775
|
+
else {
|
|
776
|
+
var b = Math.min(l, a - o), L = o + b, R = L + p - b, j = a - L, A = a - b;
|
|
777
|
+
if (L > R)
|
|
778
|
+
for (var w = 0; j > w; ++w)
|
|
779
|
+
this[R + w] = this[L + w];
|
|
780
|
+
else if (R > L)
|
|
781
|
+
for (w = j; w--; )
|
|
782
|
+
this[R + w] = this[L + w];
|
|
783
|
+
if (p && o === A)
|
|
784
|
+
this.length = A, this.push.apply(this, f);
|
|
785
|
+
else
|
|
786
|
+
for (this.length = A + p, w = 0; p > w; ++w)
|
|
787
|
+
this[o + w] = f[w];
|
|
788
|
+
}
|
|
789
|
+
return c;
|
|
790
|
+
};
|
|
791
|
+
Array.isArray || (Array.isArray = function(o) {
|
|
792
|
+
return d(o) == "[object Array]";
|
|
793
|
+
});
|
|
794
|
+
let S = Object("a"), O = S[0] != "a" || !(0 in S);
|
|
795
|
+
if (Array.prototype.forEach || (Array.prototype.forEach = function(o) {
|
|
796
|
+
let l = M(this), a = O && d(this) == "[object String]" ? this.split("") : l, c = arguments[1], f = -1, p = a.length >>> 0;
|
|
797
|
+
if (d(o) != "[object Function]") throw new TypeError();
|
|
798
|
+
for (; p > ++f; )
|
|
799
|
+
f in a && o.call(c, a[f], f, l);
|
|
800
|
+
}), Array.prototype.map || (Array.prototype.map = function(o) {
|
|
801
|
+
let l = M(this), a = O && d(this) == "[object String]" ? this.split("") : l, c = a.length >>> 0, f = Array(c), p = arguments[1];
|
|
802
|
+
if (d(o) != "[object Function]")
|
|
803
|
+
throw new TypeError(o + " is not a function");
|
|
804
|
+
for (let b = 0; c > b; b++)
|
|
805
|
+
b in a && (f[b] = o.call(p, a[b], b, l));
|
|
806
|
+
return f;
|
|
807
|
+
}), Array.prototype.filter || (Array.prototype.filter = function(o) {
|
|
808
|
+
let l, a = M(this), c = O && d(this) == "[object String]" ? this.split("") : a, f = c.length >>> 0, p = [], b = arguments[1];
|
|
809
|
+
if (d(o) != "[object Function]")
|
|
810
|
+
throw new TypeError(o + " is not a function");
|
|
811
|
+
for (let L = 0; f > L; L++)
|
|
812
|
+
L in c && (l = c[L], o.call(b, l, L, a) && p.push(l));
|
|
813
|
+
return p;
|
|
814
|
+
}), Array.prototype.every || (Array.prototype.every = function(o) {
|
|
815
|
+
let l = M(this), a = O && d(this) == "[object String]" ? this.split("") : l, c = a.length >>> 0, f = arguments[1];
|
|
816
|
+
if (d(o) != "[object Function]")
|
|
817
|
+
throw new TypeError(o + " is not a function");
|
|
818
|
+
for (let p = 0; c > p; p++)
|
|
819
|
+
if (p in a && !o.call(f, a[p], p, l)) return !1;
|
|
820
|
+
return !0;
|
|
821
|
+
}), Array.prototype.some || (Array.prototype.some = function(o) {
|
|
822
|
+
let l = M(this), a = O && d(this) == "[object String]" ? this.split("") : l, c = a.length >>> 0, f = arguments[1];
|
|
823
|
+
if (d(o) != "[object Function]")
|
|
824
|
+
throw new TypeError(o + " is not a function");
|
|
825
|
+
for (let p = 0; c > p; p++)
|
|
826
|
+
if (p in a && o.call(f, a[p], p, l)) return !0;
|
|
827
|
+
return !1;
|
|
828
|
+
}), Array.prototype.reduce || (Array.prototype.reduce = function(o) {
|
|
829
|
+
let l = M(this), a = O && d(this) == "[object String]" ? this.split("") : l, c = a.length >>> 0;
|
|
830
|
+
if (d(o) != "[object Function]")
|
|
831
|
+
throw new TypeError(o + " is not a function");
|
|
832
|
+
if (!c && arguments.length == 1)
|
|
833
|
+
throw new TypeError("reduce of empty array with no initial value");
|
|
834
|
+
let f, p = 0;
|
|
835
|
+
if (arguments.length >= 2) f = arguments[1];
|
|
836
|
+
else
|
|
837
|
+
for (; ; ) {
|
|
838
|
+
if (p in a) {
|
|
839
|
+
f = a[p++];
|
|
840
|
+
break;
|
|
841
|
+
}
|
|
842
|
+
if (++p >= c)
|
|
843
|
+
throw new TypeError(
|
|
844
|
+
"reduce of empty array with no initial value"
|
|
845
|
+
);
|
|
846
|
+
}
|
|
847
|
+
for (; c > p; p++)
|
|
848
|
+
p in a && (f = o.call(void 0, f, a[p], p, l));
|
|
849
|
+
return f;
|
|
850
|
+
}), Array.prototype.reduceRight || (Array.prototype.reduceRight = function(o) {
|
|
851
|
+
let l = M(this), a = O && d(this) == "[object String]" ? this.split("") : l, c = a.length >>> 0;
|
|
852
|
+
if (d(o) != "[object Function]")
|
|
853
|
+
throw new TypeError(o + " is not a function");
|
|
854
|
+
if (!c && arguments.length == 1)
|
|
855
|
+
throw new TypeError(
|
|
856
|
+
"reduceRight of empty array with no initial value"
|
|
857
|
+
);
|
|
858
|
+
let f, p = c - 1;
|
|
859
|
+
if (arguments.length >= 2) f = arguments[1];
|
|
860
|
+
else
|
|
861
|
+
for (; ; ) {
|
|
862
|
+
if (p in a) {
|
|
863
|
+
f = a[p--];
|
|
864
|
+
break;
|
|
865
|
+
}
|
|
866
|
+
if (0 > --p)
|
|
867
|
+
throw new TypeError(
|
|
868
|
+
"reduceRight of empty array with no initial value"
|
|
869
|
+
);
|
|
870
|
+
}
|
|
871
|
+
do
|
|
872
|
+
p in this && (f = o.call(void 0, f, a[p], p, l));
|
|
873
|
+
while (p--);
|
|
874
|
+
return f;
|
|
875
|
+
}), Array.prototype.indexOf && [0, 1].indexOf(1, 2) == -1 || (Array.prototype.indexOf = function(o) {
|
|
876
|
+
let l = O && d(this) == "[object String]" ? this.split("") : M(this), a = l.length >>> 0;
|
|
877
|
+
if (!a) return -1;
|
|
878
|
+
let c = 0;
|
|
879
|
+
for (arguments.length > 1 && (c = g(arguments[1])), c = c >= 0 ? c : Math.max(0, a + c); a > c; c++)
|
|
880
|
+
if (c in l && l[c] === o) return c;
|
|
881
|
+
return -1;
|
|
882
|
+
}), Array.prototype.lastIndexOf && [0, 1].lastIndexOf(0, -3) == -1 || (Array.prototype.lastIndexOf = function(o) {
|
|
883
|
+
let l = O && d(this) == "[object String]" ? this.split("") : M(this), a = l.length >>> 0;
|
|
884
|
+
if (!a) return -1;
|
|
885
|
+
let c = a - 1;
|
|
886
|
+
for (arguments.length > 1 && (c = Math.min(c, g(arguments[1]))), c = c >= 0 ? c : a - Math.abs(c); c >= 0; c--)
|
|
887
|
+
if (c in l && o === l[c]) return c;
|
|
888
|
+
return -1;
|
|
889
|
+
}), Object.getPrototypeOf || (Object.getPrototypeOf = function(o) {
|
|
890
|
+
return o.__proto__ || (o.constructor ? o.constructor.prototype : u);
|
|
891
|
+
}), !Object.getOwnPropertyDescriptor) {
|
|
892
|
+
let o = "Object.getOwnPropertyDescriptor called on a non-object: ";
|
|
893
|
+
Object.getOwnPropertyDescriptor = function(l, a) {
|
|
894
|
+
if (typeof l != "object" && typeof l != "function" || l === null)
|
|
895
|
+
throw new TypeError(o + l);
|
|
896
|
+
if (x(l, a)) {
|
|
897
|
+
var c, f, p;
|
|
898
|
+
if (c = { enumerable: !0, configurable: !0 }, i) {
|
|
899
|
+
let b = l.__proto__;
|
|
900
|
+
l.__proto__ = u;
|
|
901
|
+
var f = e(l, a), p = r(l, a);
|
|
902
|
+
if (l.__proto__ = b, f || p)
|
|
903
|
+
return f && (c.get = f), p && (c.set = p), c;
|
|
904
|
+
}
|
|
905
|
+
return c.value = l[a], c;
|
|
906
|
+
}
|
|
907
|
+
};
|
|
908
|
+
}
|
|
909
|
+
if (Object.getOwnPropertyNames || (Object.getOwnPropertyNames = function(o) {
|
|
910
|
+
return Object.keys(o);
|
|
911
|
+
}), !Object.create) {
|
|
912
|
+
let o;
|
|
913
|
+
o = Object.prototype.__proto__ === null ? function() {
|
|
914
|
+
return { __proto__: null };
|
|
915
|
+
} : function() {
|
|
916
|
+
let l = {};
|
|
917
|
+
for (let a in l) l[a] = null;
|
|
918
|
+
return l.constructor = l.hasOwnProperty = l.propertyIsEnumerable = l.isPrototypeOf = l.toLocaleString = l.toString = l.valueOf = l.__proto__ = null, l;
|
|
919
|
+
}, Object.create = function(l, a) {
|
|
920
|
+
let c;
|
|
921
|
+
if (l === null) c = o();
|
|
922
|
+
else {
|
|
923
|
+
if (typeof l != "object")
|
|
924
|
+
throw new TypeError(
|
|
925
|
+
"typeof prototype[" + typeof l + "] != 'object'"
|
|
926
|
+
);
|
|
927
|
+
let f = function() {
|
|
928
|
+
};
|
|
929
|
+
f.prototype = l, c = new f(), c.__proto__ = l;
|
|
930
|
+
}
|
|
931
|
+
return a !== void 0 && Object.defineProperties(c, a), c;
|
|
932
|
+
};
|
|
933
|
+
}
|
|
934
|
+
if (Object.defineProperty) {
|
|
935
|
+
let o = v({}), l = typeof document > "u" || v(document.createElement("div"));
|
|
936
|
+
if (!o || !l)
|
|
937
|
+
var T = Object.defineProperty;
|
|
938
|
+
}
|
|
939
|
+
if (!Object.defineProperty || T) {
|
|
940
|
+
let o = "Property description must be an object: ", l = "Object.defineProperty called on non-object: ", a = "getters & setters can not be defined on this javascript engine";
|
|
941
|
+
Object.defineProperty = function(c, f, p) {
|
|
942
|
+
if (typeof c != "object" && typeof c != "function" || c === null)
|
|
943
|
+
throw new TypeError(l + c);
|
|
944
|
+
if (typeof p != "object" && typeof p != "function" || p === null)
|
|
945
|
+
throw new TypeError(o + p);
|
|
946
|
+
if (T)
|
|
947
|
+
try {
|
|
948
|
+
return T.call(
|
|
949
|
+
Object,
|
|
950
|
+
c,
|
|
951
|
+
f,
|
|
952
|
+
p
|
|
953
|
+
);
|
|
954
|
+
} catch {
|
|
955
|
+
}
|
|
956
|
+
if (x(p, "value"))
|
|
957
|
+
if (i && (e(c, f) || r(c, f))) {
|
|
958
|
+
var b = c.__proto__;
|
|
959
|
+
c.__proto__ = u, delete c[f], c[f] = p.value, c.__proto__ = b;
|
|
960
|
+
} else c[f] = p.value;
|
|
961
|
+
else {
|
|
962
|
+
if (!i)
|
|
963
|
+
throw new TypeError(a);
|
|
964
|
+
x(p, "get") && _(c, f, p.get), x(p, "set") && n(c, f, p.set);
|
|
965
|
+
}
|
|
966
|
+
return c;
|
|
967
|
+
};
|
|
968
|
+
}
|
|
969
|
+
Object.defineProperties || (Object.defineProperties = function(o, l) {
|
|
970
|
+
for (let a in l)
|
|
971
|
+
x(l, a) && Object.defineProperty(o, a, l[a]);
|
|
972
|
+
return o;
|
|
973
|
+
}), Object.seal || (Object.seal = function(o) {
|
|
974
|
+
return o;
|
|
975
|
+
}), Object.freeze || (Object.freeze = function(o) {
|
|
976
|
+
return o;
|
|
977
|
+
});
|
|
978
|
+
try {
|
|
979
|
+
Object.freeze(function() {
|
|
980
|
+
});
|
|
981
|
+
} catch {
|
|
982
|
+
Object.freeze = /* @__PURE__ */ function(l) {
|
|
983
|
+
return function(a) {
|
|
984
|
+
return typeof a == "function" ? a : l(a);
|
|
985
|
+
};
|
|
986
|
+
}(Object.freeze);
|
|
987
|
+
}
|
|
988
|
+
if (Object.preventExtensions || (Object.preventExtensions = function(o) {
|
|
989
|
+
return o;
|
|
990
|
+
}), Object.isSealed || (Object.isSealed = function() {
|
|
991
|
+
return !1;
|
|
992
|
+
}), Object.isFrozen || (Object.isFrozen = function() {
|
|
993
|
+
return !1;
|
|
994
|
+
}), Object.isExtensible || (Object.isExtensible = function(o) {
|
|
995
|
+
if (Object(o) === o) throw new TypeError();
|
|
996
|
+
for (var l = ""; x(o, l); ) l += "?";
|
|
997
|
+
o[l] = !0;
|
|
998
|
+
let a = x(o, l);
|
|
999
|
+
return delete o[l], a;
|
|
1000
|
+
}), !Object.keys) {
|
|
1001
|
+
let o = !0, l = [
|
|
1002
|
+
"toString",
|
|
1003
|
+
"toLocaleString",
|
|
1004
|
+
"valueOf",
|
|
1005
|
+
"hasOwnProperty",
|
|
1006
|
+
"isPrototypeOf",
|
|
1007
|
+
"propertyIsEnumerable",
|
|
1008
|
+
"constructor"
|
|
1009
|
+
], a = l.length;
|
|
1010
|
+
for (let c in { toString: null }) o = !1;
|
|
1011
|
+
Object.keys = function(c) {
|
|
1012
|
+
if (typeof c != "object" && typeof c != "function" || c === null)
|
|
1013
|
+
throw new TypeError("Object.keys called on a non-object");
|
|
1014
|
+
let f = [];
|
|
1015
|
+
for (let R in c) x(c, R) && f.push(R);
|
|
1016
|
+
if (o)
|
|
1017
|
+
for (var p = 0, b = a; b > p; p++) {
|
|
1018
|
+
var L = l[p];
|
|
1019
|
+
x(c, L) && f.push(L);
|
|
1020
|
+
}
|
|
1021
|
+
return f;
|
|
1022
|
+
};
|
|
1023
|
+
}
|
|
1024
|
+
Date.now || (Date.now = function() {
|
|
1025
|
+
return (/* @__PURE__ */ new Date()).getTime();
|
|
1026
|
+
});
|
|
1027
|
+
let P = `
|
|
1028
|
+
v\f\r \u2028\u2029\uFEFF`;
|
|
1029
|
+
if (!String.prototype.trim || P.trim()) {
|
|
1030
|
+
P = "[" + P + "]";
|
|
1031
|
+
let o = RegExp("^" + P + P + "*"), l = RegExp(P + P + "*$");
|
|
1032
|
+
String.prototype.trim = function() {
|
|
1033
|
+
return (this + "").replace(o, "").replace(l, "");
|
|
1034
|
+
};
|
|
1035
|
+
}
|
|
1036
|
+
var M = function(o) {
|
|
1037
|
+
if (o == null) throw new TypeError("can't convert " + o + " to object");
|
|
1038
|
+
return Object(o);
|
|
1039
|
+
};
|
|
1040
|
+
});
|
|
1041
|
+
const C = (m.exports == null ? {} : m.exports).default || m.exports, D = (m.exports == null ? {} : m.exports).inherits, $ = (m.exports == null ? {} : m.exports).mixin, q = (m.exports == null ? {} : m.exports).implement, J = (m.exports == null ? {} : m.exports).Range, k = (m.exports == null ? {} : m.exports).applyDelta, F = (m.exports == null ? {} : m.exports).EventEmitter, U = (m.exports == null ? {} : m.exports).Anchor, z = (m.exports == null ? {} : m.exports).Document, H = (m.exports == null ? {} : m.exports).last, I = (m.exports == null ? {} : m.exports).stringReverse, B = (m.exports == null ? {} : m.exports).stringRepeat, V = (m.exports == null ? {} : m.exports).stringTrimLeft, G = (m.exports == null ? {} : m.exports).stringTrimRight, N = (m.exports == null ? {} : m.exports).copyObject, W = (m.exports == null ? {} : m.exports).copyArray, X = (m.exports == null ? {} : m.exports).deepCopy, K = (m.exports == null ? {} : m.exports).arrayToMap, Q = (m.exports == null ? {} : m.exports).createMap, Y = (m.exports == null ? {} : m.exports).arrayRemove, Z = (m.exports == null ? {} : m.exports).escapeRegExp, tt = (m.exports == null ? {} : m.exports).escapeHTML, et = (m.exports == null ? {} : m.exports).getMatchOffsets, nt = (m.exports == null ? {} : m.exports).deferredCall, rt = (m.exports == null ? {} : m.exports).delayedCall, it = (m.exports == null ? {} : m.exports).Mirror;
|
|
1042
|
+
export {
|
|
1043
|
+
U as Anchor,
|
|
1044
|
+
z as Document,
|
|
1045
|
+
F as EventEmitter,
|
|
1046
|
+
it as Mirror,
|
|
1047
|
+
J as Range,
|
|
1048
|
+
k as applyDelta,
|
|
1049
|
+
Y as arrayRemove,
|
|
1050
|
+
K as arrayToMap,
|
|
1051
|
+
W as copyArray,
|
|
1052
|
+
N as copyObject,
|
|
1053
|
+
Q as createMap,
|
|
1054
|
+
X as deepCopy,
|
|
1055
|
+
C as default,
|
|
1056
|
+
nt as deferredCall,
|
|
1057
|
+
rt as delayedCall,
|
|
1058
|
+
tt as escapeHTML,
|
|
1059
|
+
Z as escapeRegExp,
|
|
1060
|
+
et as getMatchOffsets,
|
|
1061
|
+
q as implement,
|
|
1062
|
+
D as inherits,
|
|
1063
|
+
H as last,
|
|
1064
|
+
$ as mixin,
|
|
1065
|
+
B as stringRepeat,
|
|
1066
|
+
I as stringReverse,
|
|
1067
|
+
V as stringTrimLeft,
|
|
1068
|
+
G as stringTrimRight
|
|
1069
|
+
};
|