@hpcc-js/codemirror 2.55.0 → 2.57.0
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/dist/index.es6.js +157 -165
- package/dist/index.es6.js.map +1 -1
- package/dist/index.js +160 -168
- package/dist/index.js.map +1 -1
- package/dist/index.min.js +1 -1
- package/dist/index.min.js.map +1 -1
- package/package.json +21 -20
- package/src/__package__.ts +2 -2
- package/types/__package__.d.ts +2 -2
- package/types-3.4/__package__.d.ts +2 -2
package/dist/index.es6.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { Palette, HTMLWidget } from '@hpcc-js/common';
|
|
2
2
|
|
|
3
3
|
var PKG_NAME = "@hpcc-js/codemirror";
|
|
4
|
-
var PKG_VERSION = "2.
|
|
5
|
-
var BUILD_VERSION = "2.
|
|
4
|
+
var PKG_VERSION = "2.57.0";
|
|
5
|
+
var BUILD_VERSION = "2.99.0";
|
|
6
6
|
|
|
7
7
|
/*! *****************************************************************************
|
|
8
8
|
Copyright (c) Microsoft Corporation.
|
|
@@ -48,11 +48,21 @@ var __assign = function() {
|
|
|
48
48
|
|
|
49
49
|
var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
|
|
50
50
|
|
|
51
|
-
|
|
51
|
+
function createCommonjsModule(fn, basedir, module) {
|
|
52
|
+
return module = {
|
|
53
|
+
path: basedir,
|
|
54
|
+
exports: {},
|
|
55
|
+
require: function (path, base) {
|
|
56
|
+
return commonjsRequire(path, (base === undefined || base === null) ? module.path : base);
|
|
57
|
+
}
|
|
58
|
+
}, fn(module, module.exports), module.exports;
|
|
59
|
+
}
|
|
52
60
|
|
|
53
|
-
|
|
61
|
+
function commonjsRequire () {
|
|
62
|
+
throw new Error('Dynamic requires are not currently supported by @rollup/plugin-commonjs');
|
|
63
|
+
}
|
|
54
64
|
|
|
55
|
-
(function (module, exports) {
|
|
65
|
+
var codemirror = createCommonjsModule(function (module, exports) {
|
|
56
66
|
// CodeMirror, copyright (c) by Marijn Haverbeke and others
|
|
57
67
|
// Distributed under an MIT license: https://codemirror.net/LICENSE
|
|
58
68
|
|
|
@@ -63,7 +73,7 @@ var codemirror = {exports: {}};
|
|
|
63
73
|
// at http://marijnhaverbeke.nl/blog/#cm-internals .
|
|
64
74
|
|
|
65
75
|
(function (global, factory) {
|
|
66
|
-
|
|
76
|
+
module.exports = factory() ;
|
|
67
77
|
}(commonjsGlobal, (function () {
|
|
68
78
|
// Kludges for bugs and behavior differences that can't be feature
|
|
69
79
|
// detected are enabled based on userAgent etc sniffing.
|
|
@@ -5839,7 +5849,7 @@ var codemirror = {exports: {}};
|
|
|
5839
5849
|
};
|
|
5840
5850
|
|
|
5841
5851
|
LineWidget.prototype.changed = function () {
|
|
5842
|
-
var this$1
|
|
5852
|
+
var this$1 = this;
|
|
5843
5853
|
|
|
5844
5854
|
var oldH = this.height, cm = this.doc.cm, line = this.line;
|
|
5845
5855
|
this.height = null;
|
|
@@ -5850,7 +5860,7 @@ var codemirror = {exports: {}};
|
|
|
5850
5860
|
runInOp(cm, function () {
|
|
5851
5861
|
cm.curOp.forceUpdate = true;
|
|
5852
5862
|
adjustScrollWhenAboveVisible(cm, line, diff);
|
|
5853
|
-
signalLater(cm, "lineWidgetChanged", cm, this$1
|
|
5863
|
+
signalLater(cm, "lineWidgetChanged", cm, this$1, lineNo(line));
|
|
5854
5864
|
});
|
|
5855
5865
|
}
|
|
5856
5866
|
};
|
|
@@ -5975,7 +5985,7 @@ var codemirror = {exports: {}};
|
|
|
5975
5985
|
// Signals that the marker's widget changed, and surrounding layout
|
|
5976
5986
|
// should be recomputed.
|
|
5977
5987
|
TextMarker.prototype.changed = function () {
|
|
5978
|
-
var this$1
|
|
5988
|
+
var this$1 = this;
|
|
5979
5989
|
|
|
5980
5990
|
var pos = this.find(-1, true), widget = this, cm = this.doc.cm;
|
|
5981
5991
|
if (!pos || !cm) { return }
|
|
@@ -5994,7 +6004,7 @@ var codemirror = {exports: {}};
|
|
|
5994
6004
|
if (dHeight)
|
|
5995
6005
|
{ updateLineHeight(line, line.height + dHeight); }
|
|
5996
6006
|
}
|
|
5997
|
-
signalLater(cm, "markerChanged", cm, this$1
|
|
6007
|
+
signalLater(cm, "markerChanged", cm, this$1);
|
|
5998
6008
|
});
|
|
5999
6009
|
};
|
|
6000
6010
|
|
|
@@ -6339,10 +6349,10 @@ var codemirror = {exports: {}};
|
|
|
6339
6349
|
return {undo: done, redo: undone}
|
|
6340
6350
|
},
|
|
6341
6351
|
clearHistory: function() {
|
|
6342
|
-
var this$1
|
|
6352
|
+
var this$1 = this;
|
|
6343
6353
|
|
|
6344
6354
|
this.history = new History(this.history);
|
|
6345
|
-
linkedDocs(this, function (doc) { return doc.history = this$1
|
|
6355
|
+
linkedDocs(this, function (doc) { return doc.history = this$1.history; }, true);
|
|
6346
6356
|
},
|
|
6347
6357
|
|
|
6348
6358
|
markClean: function() {
|
|
@@ -6377,11 +6387,11 @@ var codemirror = {exports: {}};
|
|
|
6377
6387
|
}),
|
|
6378
6388
|
|
|
6379
6389
|
clearGutter: docMethodOp(function(gutterID) {
|
|
6380
|
-
var this$1
|
|
6390
|
+
var this$1 = this;
|
|
6381
6391
|
|
|
6382
6392
|
this.iter(function (line) {
|
|
6383
6393
|
if (line.gutterMarkers && line.gutterMarkers[gutterID]) {
|
|
6384
|
-
changeLine(this$1
|
|
6394
|
+
changeLine(this$1, line, "gutter", function () {
|
|
6385
6395
|
line.gutterMarkers[gutterID] = null;
|
|
6386
6396
|
if (isEmpty(line.gutterMarkers)) { line.gutterMarkers = null; }
|
|
6387
6397
|
return true
|
|
@@ -7933,7 +7943,7 @@ var codemirror = {exports: {}};
|
|
|
7933
7943
|
// that user code is usually dealing with.
|
|
7934
7944
|
|
|
7935
7945
|
function CodeMirror(place, options) {
|
|
7936
|
-
var this$1
|
|
7946
|
+
var this$1 = this;
|
|
7937
7947
|
|
|
7938
7948
|
if (!(this instanceof CodeMirror)) { return new CodeMirror(place, options) }
|
|
7939
7949
|
|
|
@@ -7974,7 +7984,7 @@ var codemirror = {exports: {}};
|
|
|
7974
7984
|
|
|
7975
7985
|
// Override magic textarea content restore that IE sometimes does
|
|
7976
7986
|
// on our hidden textarea on reload
|
|
7977
|
-
if (ie && ie_version < 11) { setTimeout(function () { return this$1
|
|
7987
|
+
if (ie && ie_version < 11) { setTimeout(function () { return this$1.display.input.reset(true); }, 20); }
|
|
7978
7988
|
|
|
7979
7989
|
registerEventHandlers(this);
|
|
7980
7990
|
ensureGlobalHandlers();
|
|
@@ -7985,7 +7995,7 @@ var codemirror = {exports: {}};
|
|
|
7985
7995
|
|
|
7986
7996
|
if ((options.autofocus && !mobile) || this.hasFocus())
|
|
7987
7997
|
{ setTimeout(function () {
|
|
7988
|
-
if (this$1
|
|
7998
|
+
if (this$1.hasFocus() && !this$1.state.focused) { onFocus(this$1); }
|
|
7989
7999
|
}, 20); }
|
|
7990
8000
|
else
|
|
7991
8001
|
{ onBlur(this); }
|
|
@@ -8566,11 +8576,11 @@ var codemirror = {exports: {}};
|
|
|
8566
8576
|
},
|
|
8567
8577
|
|
|
8568
8578
|
moveH: methodOp(function(dir, unit) {
|
|
8569
|
-
var this$1
|
|
8579
|
+
var this$1 = this;
|
|
8570
8580
|
|
|
8571
8581
|
this.extendSelectionsBy(function (range) {
|
|
8572
|
-
if (this$1
|
|
8573
|
-
{ return findPosH(this$1
|
|
8582
|
+
if (this$1.display.shift || this$1.doc.extend || range.empty())
|
|
8583
|
+
{ return findPosH(this$1.doc, range.head, dir, unit, this$1.options.rtlMoveVisually) }
|
|
8574
8584
|
else
|
|
8575
8585
|
{ return dir < 0 ? range.from() : range.to() }
|
|
8576
8586
|
}, sel_move);
|
|
@@ -8602,19 +8612,19 @@ var codemirror = {exports: {}};
|
|
|
8602
8612
|
},
|
|
8603
8613
|
|
|
8604
8614
|
moveV: methodOp(function(dir, unit) {
|
|
8605
|
-
var this$1
|
|
8615
|
+
var this$1 = this;
|
|
8606
8616
|
|
|
8607
8617
|
var doc = this.doc, goals = [];
|
|
8608
8618
|
var collapse = !this.display.shift && !doc.extend && doc.sel.somethingSelected();
|
|
8609
8619
|
doc.extendSelectionsBy(function (range) {
|
|
8610
8620
|
if (collapse)
|
|
8611
8621
|
{ return dir < 0 ? range.from() : range.to() }
|
|
8612
|
-
var headPos = cursorCoords(this$1
|
|
8622
|
+
var headPos = cursorCoords(this$1, range.head, "div");
|
|
8613
8623
|
if (range.goalColumn != null) { headPos.left = range.goalColumn; }
|
|
8614
8624
|
goals.push(headPos.left);
|
|
8615
|
-
var pos = findPosV(this$1
|
|
8625
|
+
var pos = findPosV(this$1, headPos, dir, unit);
|
|
8616
8626
|
if (unit == "page" && range == doc.sel.primary())
|
|
8617
|
-
{ addToScrollTop(this$1
|
|
8627
|
+
{ addToScrollTop(this$1, charCoords(this$1, pos, "div").top - headPos.top); }
|
|
8618
8628
|
return pos
|
|
8619
8629
|
}, sel_move);
|
|
8620
8630
|
if (goals.length) { for (var i = 0; i < doc.sel.ranges.length; i++)
|
|
@@ -8680,7 +8690,7 @@ var codemirror = {exports: {}};
|
|
|
8680
8690
|
}),
|
|
8681
8691
|
|
|
8682
8692
|
setSize: methodOp(function(width, height) {
|
|
8683
|
-
var this$1
|
|
8693
|
+
var this$1 = this;
|
|
8684
8694
|
|
|
8685
8695
|
var interpret = function (val) { return typeof val == "number" || /^\d+$/.test(String(val)) ? val + "px" : val; };
|
|
8686
8696
|
if (width != null) { this.display.wrapper.style.width = interpret(width); }
|
|
@@ -8689,7 +8699,7 @@ var codemirror = {exports: {}};
|
|
|
8689
8699
|
var lineNo = this.display.viewFrom;
|
|
8690
8700
|
this.doc.iter(lineNo, this.display.viewTo, function (line) {
|
|
8691
8701
|
if (line.widgets) { for (var i = 0; i < line.widgets.length; i++)
|
|
8692
|
-
{ if (line.widgets[i].noHScroll) { regLineChange(this$1
|
|
8702
|
+
{ if (line.widgets[i].noHScroll) { regLineChange(this$1, lineNo, "widget"); break } } }
|
|
8693
8703
|
++lineNo;
|
|
8694
8704
|
});
|
|
8695
8705
|
this.curOp.forceUpdate = true;
|
|
@@ -8858,7 +8868,7 @@ var codemirror = {exports: {}};
|
|
|
8858
8868
|
};
|
|
8859
8869
|
|
|
8860
8870
|
ContentEditableInput.prototype.init = function (display) {
|
|
8861
|
-
var this$1
|
|
8871
|
+
var this$1 = this;
|
|
8862
8872
|
|
|
8863
8873
|
var input = this, cm = input.cm;
|
|
8864
8874
|
var div = input.div = display.lineDiv;
|
|
@@ -8876,26 +8886,26 @@ var codemirror = {exports: {}};
|
|
|
8876
8886
|
on(div, "paste", function (e) {
|
|
8877
8887
|
if (!belongsToInput(e) || signalDOMEvent(cm, e) || handlePaste(e, cm)) { return }
|
|
8878
8888
|
// IE doesn't fire input events, so we schedule a read for the pasted content in this way
|
|
8879
|
-
if (ie_version <= 11) { setTimeout(operation(cm, function () { return this$1
|
|
8889
|
+
if (ie_version <= 11) { setTimeout(operation(cm, function () { return this$1.updateFromDOM(); }), 20); }
|
|
8880
8890
|
});
|
|
8881
8891
|
|
|
8882
8892
|
on(div, "compositionstart", function (e) {
|
|
8883
|
-
this$1
|
|
8893
|
+
this$1.composing = {data: e.data, done: false};
|
|
8884
8894
|
});
|
|
8885
8895
|
on(div, "compositionupdate", function (e) {
|
|
8886
|
-
if (!this$1
|
|
8896
|
+
if (!this$1.composing) { this$1.composing = {data: e.data, done: false}; }
|
|
8887
8897
|
});
|
|
8888
8898
|
on(div, "compositionend", function (e) {
|
|
8889
|
-
if (this$1
|
|
8890
|
-
if (e.data != this$1
|
|
8891
|
-
this$1
|
|
8899
|
+
if (this$1.composing) {
|
|
8900
|
+
if (e.data != this$1.composing.data) { this$1.readFromDOMSoon(); }
|
|
8901
|
+
this$1.composing.done = true;
|
|
8892
8902
|
}
|
|
8893
8903
|
});
|
|
8894
8904
|
|
|
8895
8905
|
on(div, "touchstart", function () { return input.forceCompositionEnd(); });
|
|
8896
8906
|
|
|
8897
8907
|
on(div, "input", function () {
|
|
8898
|
-
if (!this$1
|
|
8908
|
+
if (!this$1.composing) { this$1.readFromDOMSoon(); }
|
|
8899
8909
|
});
|
|
8900
8910
|
|
|
8901
8911
|
function onCopyCut(e) {
|
|
@@ -9018,13 +9028,13 @@ var codemirror = {exports: {}};
|
|
|
9018
9028
|
};
|
|
9019
9029
|
|
|
9020
9030
|
ContentEditableInput.prototype.startGracePeriod = function () {
|
|
9021
|
-
var this$1
|
|
9031
|
+
var this$1 = this;
|
|
9022
9032
|
|
|
9023
9033
|
clearTimeout(this.gracePeriod);
|
|
9024
9034
|
this.gracePeriod = setTimeout(function () {
|
|
9025
|
-
this$1
|
|
9026
|
-
if (this$1
|
|
9027
|
-
{ this$1
|
|
9035
|
+
this$1.gracePeriod = false;
|
|
9036
|
+
if (this$1.selectionChanged())
|
|
9037
|
+
{ this$1.cm.operation(function () { return this$1.cm.curOp.selectionChanged = true; }); }
|
|
9028
9038
|
}, 20);
|
|
9029
9039
|
};
|
|
9030
9040
|
|
|
@@ -9059,11 +9069,11 @@ var codemirror = {exports: {}};
|
|
|
9059
9069
|
ContentEditableInput.prototype.supportsTouch = function () { return true };
|
|
9060
9070
|
|
|
9061
9071
|
ContentEditableInput.prototype.receivedFocus = function () {
|
|
9062
|
-
var this$1
|
|
9072
|
+
var this$1 = this;
|
|
9063
9073
|
|
|
9064
9074
|
var input = this;
|
|
9065
9075
|
if (this.selectionInEditor())
|
|
9066
|
-
{ setTimeout(function () { return this$1
|
|
9076
|
+
{ setTimeout(function () { return this$1.pollSelection(); }, 20); }
|
|
9067
9077
|
else
|
|
9068
9078
|
{ runInOp(this.cm, function () { return input.cm.curOp.selectionChanged = true; }); }
|
|
9069
9079
|
|
|
@@ -9193,24 +9203,24 @@ var codemirror = {exports: {}};
|
|
|
9193
9203
|
this.div.focus();
|
|
9194
9204
|
};
|
|
9195
9205
|
ContentEditableInput.prototype.readFromDOMSoon = function () {
|
|
9196
|
-
var this$1
|
|
9206
|
+
var this$1 = this;
|
|
9197
9207
|
|
|
9198
9208
|
if (this.readDOMTimeout != null) { return }
|
|
9199
9209
|
this.readDOMTimeout = setTimeout(function () {
|
|
9200
|
-
this$1
|
|
9201
|
-
if (this$1
|
|
9202
|
-
if (this$1
|
|
9210
|
+
this$1.readDOMTimeout = null;
|
|
9211
|
+
if (this$1.composing) {
|
|
9212
|
+
if (this$1.composing.done) { this$1.composing = null; }
|
|
9203
9213
|
else { return }
|
|
9204
9214
|
}
|
|
9205
|
-
this$1
|
|
9215
|
+
this$1.updateFromDOM();
|
|
9206
9216
|
}, 80);
|
|
9207
9217
|
};
|
|
9208
9218
|
|
|
9209
9219
|
ContentEditableInput.prototype.updateFromDOM = function () {
|
|
9210
|
-
var this$1
|
|
9220
|
+
var this$1 = this;
|
|
9211
9221
|
|
|
9212
9222
|
if (this.cm.isReadOnly() || !this.pollContent())
|
|
9213
|
-
{ runInOp(this.cm, function () { return regChange(this$1
|
|
9223
|
+
{ runInOp(this.cm, function () { return regChange(this$1.cm); }); }
|
|
9214
9224
|
};
|
|
9215
9225
|
|
|
9216
9226
|
ContentEditableInput.prototype.setUneditable = function (node) {
|
|
@@ -9403,7 +9413,7 @@ var codemirror = {exports: {}};
|
|
|
9403
9413
|
};
|
|
9404
9414
|
|
|
9405
9415
|
TextareaInput.prototype.init = function (display) {
|
|
9406
|
-
var this$1
|
|
9416
|
+
var this$1 = this;
|
|
9407
9417
|
|
|
9408
9418
|
var input = this, cm = this.cm;
|
|
9409
9419
|
this.createField(display);
|
|
@@ -9415,7 +9425,7 @@ var codemirror = {exports: {}};
|
|
|
9415
9425
|
if (ios) { te.style.width = "0px"; }
|
|
9416
9426
|
|
|
9417
9427
|
on(te, "input", function () {
|
|
9418
|
-
if (ie && ie_version >= 9 && this$1
|
|
9428
|
+
if (ie && ie_version >= 9 && this$1.hasSelection) { this$1.hasSelection = null; }
|
|
9419
9429
|
input.poll();
|
|
9420
9430
|
});
|
|
9421
9431
|
|
|
@@ -9568,12 +9578,12 @@ var codemirror = {exports: {}};
|
|
|
9568
9578
|
// Poll for input changes, using the normal rate of polling. This
|
|
9569
9579
|
// runs as long as the editor is focused.
|
|
9570
9580
|
TextareaInput.prototype.slowPoll = function () {
|
|
9571
|
-
var this$1
|
|
9581
|
+
var this$1 = this;
|
|
9572
9582
|
|
|
9573
9583
|
if (this.pollingFast) { return }
|
|
9574
9584
|
this.polling.set(this.cm.options.pollInterval, function () {
|
|
9575
|
-
this$1
|
|
9576
|
-
if (this$1
|
|
9585
|
+
this$1.poll();
|
|
9586
|
+
if (this$1.cm.state.focused) { this$1.slowPoll(); }
|
|
9577
9587
|
});
|
|
9578
9588
|
};
|
|
9579
9589
|
|
|
@@ -9598,7 +9608,7 @@ var codemirror = {exports: {}};
|
|
|
9598
9608
|
// seen text (can be empty), which is stored in prevInput (we must
|
|
9599
9609
|
// not reset the textarea when typing, because that breaks IME).
|
|
9600
9610
|
TextareaInput.prototype.poll = function () {
|
|
9601
|
-
var this$1
|
|
9611
|
+
var this$1 = this;
|
|
9602
9612
|
|
|
9603
9613
|
var cm = this.cm, input = this.textarea, prevInput = this.prevInput;
|
|
9604
9614
|
// Since this is called a *lot*, try to bail out as cheaply as
|
|
@@ -9633,15 +9643,15 @@ var codemirror = {exports: {}};
|
|
|
9633
9643
|
|
|
9634
9644
|
runInOp(cm, function () {
|
|
9635
9645
|
applyTextInput(cm, text.slice(same), prevInput.length - same,
|
|
9636
|
-
null, this$1
|
|
9646
|
+
null, this$1.composing ? "*compose" : null);
|
|
9637
9647
|
|
|
9638
9648
|
// Don't leave long text in the textarea, since it makes further polling slow
|
|
9639
|
-
if (text.length > 1000 || text.indexOf("\n") > -1) { input.value = this$1
|
|
9640
|
-
else { this$1
|
|
9649
|
+
if (text.length > 1000 || text.indexOf("\n") > -1) { input.value = this$1.prevInput = ""; }
|
|
9650
|
+
else { this$1.prevInput = text; }
|
|
9641
9651
|
|
|
9642
|
-
if (this$1
|
|
9643
|
-
this$1
|
|
9644
|
-
this$1
|
|
9652
|
+
if (this$1.composing) {
|
|
9653
|
+
this$1.composing.range.clear();
|
|
9654
|
+
this$1.composing.range = cm.markText(this$1.composing.start, cm.getCursor("to"),
|
|
9645
9655
|
{className: "CodeMirror-composing"});
|
|
9646
9656
|
}
|
|
9647
9657
|
});
|
|
@@ -9897,16 +9907,14 @@ var codemirror = {exports: {}};
|
|
|
9897
9907
|
return CodeMirror;
|
|
9898
9908
|
|
|
9899
9909
|
})));
|
|
9900
|
-
}
|
|
9901
|
-
|
|
9902
|
-
var CodeMirror = codemirror.exports;
|
|
9910
|
+
});
|
|
9903
9911
|
|
|
9904
|
-
(function (module, exports) {
|
|
9912
|
+
var css = createCommonjsModule(function (module, exports) {
|
|
9905
9913
|
// CodeMirror, copyright (c) by Marijn Haverbeke and others
|
|
9906
9914
|
// Distributed under an MIT license: https://codemirror.net/LICENSE
|
|
9907
9915
|
|
|
9908
9916
|
(function(mod) {
|
|
9909
|
-
mod(codemirror
|
|
9917
|
+
mod(codemirror);
|
|
9910
9918
|
})(function(CodeMirror) {
|
|
9911
9919
|
|
|
9912
9920
|
CodeMirror.defineMode("css", function(config, parserConfig) {
|
|
@@ -10762,14 +10770,14 @@ CodeMirror.defineMode("css", function(config, parserConfig) {
|
|
|
10762
10770
|
});
|
|
10763
10771
|
|
|
10764
10772
|
});
|
|
10765
|
-
}
|
|
10773
|
+
});
|
|
10766
10774
|
|
|
10767
|
-
(function (module, exports) {
|
|
10775
|
+
var ecl = createCommonjsModule(function (module, exports) {
|
|
10768
10776
|
// CodeMirror, copyright (c) by Marijn Haverbeke and others
|
|
10769
10777
|
// Distributed under an MIT license: https://codemirror.net/LICENSE
|
|
10770
10778
|
|
|
10771
10779
|
(function(mod) {
|
|
10772
|
-
mod(codemirror
|
|
10780
|
+
mod(codemirror);
|
|
10773
10781
|
})(function(CodeMirror) {
|
|
10774
10782
|
|
|
10775
10783
|
CodeMirror.defineMode("ecl", function(config) {
|
|
@@ -10965,18 +10973,14 @@ CodeMirror.defineMode("ecl", function(config) {
|
|
|
10965
10973
|
CodeMirror.defineMIME("text/x-ecl", "ecl");
|
|
10966
10974
|
|
|
10967
10975
|
});
|
|
10968
|
-
}
|
|
10969
|
-
|
|
10970
|
-
var markdown = {exports: {}};
|
|
10971
|
-
|
|
10972
|
-
var xml = {exports: {}};
|
|
10976
|
+
});
|
|
10973
10977
|
|
|
10974
|
-
(function (module, exports) {
|
|
10978
|
+
var xml = createCommonjsModule(function (module, exports) {
|
|
10975
10979
|
// CodeMirror, copyright (c) by Marijn Haverbeke and others
|
|
10976
10980
|
// Distributed under an MIT license: https://codemirror.net/LICENSE
|
|
10977
10981
|
|
|
10978
10982
|
(function(mod) {
|
|
10979
|
-
mod(codemirror
|
|
10983
|
+
mod(codemirror);
|
|
10980
10984
|
})(function(CodeMirror) {
|
|
10981
10985
|
|
|
10982
10986
|
var htmlConfig = {
|
|
@@ -11383,16 +11387,14 @@ if (!CodeMirror.mimeModes.hasOwnProperty("text/html"))
|
|
|
11383
11387
|
CodeMirror.defineMIME("text/html", {name: "xml", htmlMode: true});
|
|
11384
11388
|
|
|
11385
11389
|
});
|
|
11386
|
-
}
|
|
11387
|
-
|
|
11388
|
-
var meta = {exports: {}};
|
|
11390
|
+
});
|
|
11389
11391
|
|
|
11390
|
-
(function (module, exports) {
|
|
11392
|
+
var meta = createCommonjsModule(function (module, exports) {
|
|
11391
11393
|
// CodeMirror, copyright (c) by Marijn Haverbeke and others
|
|
11392
11394
|
// Distributed under an MIT license: https://codemirror.net/LICENSE
|
|
11393
11395
|
|
|
11394
11396
|
(function(mod) {
|
|
11395
|
-
mod(codemirror
|
|
11397
|
+
mod(codemirror);
|
|
11396
11398
|
})(function(CodeMirror) {
|
|
11397
11399
|
|
|
11398
11400
|
CodeMirror.modeInfo = [
|
|
@@ -11603,14 +11605,14 @@ var meta = {exports: {}};
|
|
|
11603
11605
|
}
|
|
11604
11606
|
};
|
|
11605
11607
|
});
|
|
11606
|
-
}
|
|
11608
|
+
});
|
|
11607
11609
|
|
|
11608
|
-
(function (module, exports) {
|
|
11610
|
+
var markdown = createCommonjsModule(function (module, exports) {
|
|
11609
11611
|
// CodeMirror, copyright (c) by Marijn Haverbeke and others
|
|
11610
11612
|
// Distributed under an MIT license: https://codemirror.net/LICENSE
|
|
11611
11613
|
|
|
11612
11614
|
(function(mod) {
|
|
11613
|
-
mod(codemirror
|
|
11615
|
+
mod(codemirror, xml, meta);
|
|
11614
11616
|
})(function(CodeMirror) {
|
|
11615
11617
|
|
|
11616
11618
|
CodeMirror.defineMode("markdown", function(cmCfg, modeCfg) {
|
|
@@ -12486,11 +12488,9 @@ CodeMirror.defineMIME("text/markdown", "markdown");
|
|
|
12486
12488
|
CodeMirror.defineMIME("text/x-markdown", "markdown");
|
|
12487
12489
|
|
|
12488
12490
|
});
|
|
12489
|
-
}
|
|
12490
|
-
|
|
12491
|
-
var overlay = {exports: {}};
|
|
12491
|
+
});
|
|
12492
12492
|
|
|
12493
|
-
(function (module, exports) {
|
|
12493
|
+
var overlay = createCommonjsModule(function (module, exports) {
|
|
12494
12494
|
// CodeMirror, copyright (c) by Marijn Haverbeke and others
|
|
12495
12495
|
// Distributed under an MIT license: https://codemirror.net/LICENSE
|
|
12496
12496
|
|
|
@@ -12504,7 +12504,7 @@ var overlay = {exports: {}};
|
|
|
12504
12504
|
// combined.
|
|
12505
12505
|
|
|
12506
12506
|
(function(mod) {
|
|
12507
|
-
mod(codemirror
|
|
12507
|
+
mod(codemirror);
|
|
12508
12508
|
})(function(CodeMirror) {
|
|
12509
12509
|
|
|
12510
12510
|
CodeMirror.overlayMode = function(base, overlay, combine) {
|
|
@@ -12575,14 +12575,14 @@ CodeMirror.overlayMode = function(base, overlay, combine) {
|
|
|
12575
12575
|
};
|
|
12576
12576
|
|
|
12577
12577
|
});
|
|
12578
|
-
}
|
|
12578
|
+
});
|
|
12579
12579
|
|
|
12580
|
-
(function (module, exports) {
|
|
12580
|
+
var gfm = createCommonjsModule(function (module, exports) {
|
|
12581
12581
|
// CodeMirror, copyright (c) by Marijn Haverbeke and others
|
|
12582
12582
|
// Distributed under an MIT license: https://codemirror.net/LICENSE
|
|
12583
12583
|
|
|
12584
12584
|
(function(mod) {
|
|
12585
|
-
mod(codemirror
|
|
12585
|
+
mod(codemirror, markdown, overlay);
|
|
12586
12586
|
})(function(CodeMirror) {
|
|
12587
12587
|
|
|
12588
12588
|
var urlRE = /^((?:(?:aaas?|about|acap|adiumxtra|af[ps]|aim|apt|attachment|aw|beshare|bitcoin|bolo|callto|cap|chrome(?:-extension)?|cid|coap|com-eventbrite-attendee|content|crid|cvs|data|dav|dict|dlna-(?:playcontainer|playsingle)|dns|doi|dtn|dvb|ed2k|facetime|feed|file|finger|fish|ftp|geo|gg|git|gizmoproject|go|gopher|gtalk|h323|hcp|https?|iax|icap|icon|im|imap|info|ipn|ipp|irc[6s]?|iris(?:\.beep|\.lwz|\.xpc|\.xpcs)?|itms|jar|javascript|jms|keyparc|lastfm|ldaps?|magnet|mailto|maps|market|message|mid|mms|ms-help|msnim|msrps?|mtqp|mumble|mupdate|mvn|news|nfs|nih?|nntp|notes|oid|opaquelocktoken|palm|paparazzi|platform|pop|pres|proxy|psyc|query|res(?:ource)?|rmi|rsync|rtmp|rtsp|secondlife|service|session|sftp|sgn|shttp|sieve|sips?|skype|sm[bs]|snmp|soap\.beeps?|soldat|spotify|ssh|steam|svn|tag|teamspeak|tel(?:net)?|tftp|things|thismessage|tip|tn3270|tv|udp|unreal|urn|ut2004|vemmi|ventrilo|view-source|webcal|wss?|wtai|wyciwyg|xcon(?:-userid)?|xfire|xmlrpc\.beeps?|xmpp|xri|ymsgr|z39\.50[rs]?):(?:\/{1,3}|[a-z0-9%])|www\d{0,3}[.]|[a-z0-9.\-]+[.][a-z]{2,4}\/)(?:[^\s()<>]|\([^\s()<>]*\))+(?:\([^\s()<>]*\)|[^\s`*!()\[\]{};:'".,<>?«»“”‘’]))/i;
|
|
@@ -12701,16 +12701,14 @@ CodeMirror.defineMode("gfm", function(config, modeConfig) {
|
|
|
12701
12701
|
|
|
12702
12702
|
CodeMirror.defineMIME("text/x-gfm", "gfm");
|
|
12703
12703
|
});
|
|
12704
|
-
}
|
|
12705
|
-
|
|
12706
|
-
var javascript = {exports: {}};
|
|
12704
|
+
});
|
|
12707
12705
|
|
|
12708
|
-
(function (module, exports) {
|
|
12706
|
+
var javascript = createCommonjsModule(function (module, exports) {
|
|
12709
12707
|
// CodeMirror, copyright (c) by Marijn Haverbeke and others
|
|
12710
12708
|
// Distributed under an MIT license: https://codemirror.net/LICENSE
|
|
12711
12709
|
|
|
12712
12710
|
(function(mod) {
|
|
12713
|
-
mod(codemirror
|
|
12711
|
+
mod(codemirror);
|
|
12714
12712
|
})(function(CodeMirror) {
|
|
12715
12713
|
|
|
12716
12714
|
CodeMirror.defineMode("javascript", function(config, parserConfig) {
|
|
@@ -13658,14 +13656,14 @@ CodeMirror.defineMIME("text/typescript", { name: "javascript", typescript: true
|
|
|
13658
13656
|
CodeMirror.defineMIME("application/typescript", { name: "javascript", typescript: true });
|
|
13659
13657
|
|
|
13660
13658
|
});
|
|
13661
|
-
}
|
|
13659
|
+
});
|
|
13662
13660
|
|
|
13663
|
-
(function (module, exports) {
|
|
13661
|
+
var htmlmixed = createCommonjsModule(function (module, exports) {
|
|
13664
13662
|
// CodeMirror, copyright (c) by Marijn Haverbeke and others
|
|
13665
13663
|
// Distributed under an MIT license: https://codemirror.net/LICENSE
|
|
13666
13664
|
|
|
13667
13665
|
(function(mod) {
|
|
13668
|
-
mod(codemirror
|
|
13666
|
+
mod(codemirror, xml, javascript, css);
|
|
13669
13667
|
})(function(CodeMirror) {
|
|
13670
13668
|
|
|
13671
13669
|
var defaultTags = {
|
|
@@ -13807,10 +13805,10 @@ CodeMirror.defineMIME("application/typescript", { name: "javascript", typescript
|
|
|
13807
13805
|
|
|
13808
13806
|
CodeMirror.defineMIME("text/html", "htmlmixed");
|
|
13809
13807
|
});
|
|
13810
|
-
}
|
|
13808
|
+
});
|
|
13811
13809
|
|
|
13812
13810
|
// CodeMirror, copyright (c) by Marijn Haverbeke and others
|
|
13813
|
-
|
|
13811
|
+
codemirror.defineMode("dot", function (config) {
|
|
13814
13812
|
var ops = /--|->|=|;/;
|
|
13815
13813
|
var brackets = /[\[\]{}]/;
|
|
13816
13814
|
return {
|
|
@@ -13905,22 +13903,22 @@ CodeMirror.defineMode("dot", function (config) {
|
|
|
13905
13903
|
blockCommentEnd: "*/"
|
|
13906
13904
|
};
|
|
13907
13905
|
});
|
|
13908
|
-
|
|
13906
|
+
codemirror.defineMIME("text/x-dot", "dot");
|
|
13909
13907
|
|
|
13910
13908
|
// CodeMirror, copyright (c) by Marijn Haverbeke and others
|
|
13911
|
-
|
|
13912
|
-
var htmlMode =
|
|
13909
|
+
codemirror.defineMode("markdown", function (cmCfg, modeCfg) {
|
|
13910
|
+
var htmlMode = codemirror.getMode(cmCfg, "text/html");
|
|
13913
13911
|
var htmlModeMissing = htmlMode.name == "null";
|
|
13914
13912
|
if (modeCfg.defaultMode === undefined)
|
|
13915
13913
|
modeCfg.defaultMode = "";
|
|
13916
13914
|
function getMode(name) {
|
|
13917
13915
|
name = name === "" ? modeCfg.defaultMode : name;
|
|
13918
|
-
if (
|
|
13919
|
-
var found =
|
|
13916
|
+
if (codemirror.findModeByName) {
|
|
13917
|
+
var found = codemirror.findModeByName(name);
|
|
13920
13918
|
if (found)
|
|
13921
13919
|
name = found.mime || found.mimes[0];
|
|
13922
13920
|
}
|
|
13923
|
-
var mode =
|
|
13921
|
+
var mode = codemirror.getMode(cmCfg, name);
|
|
13924
13922
|
return mode.name == "null" ? null : mode;
|
|
13925
13923
|
}
|
|
13926
13924
|
// Should characters that affect highlighting be highlighted separate?
|
|
@@ -14005,7 +14003,7 @@ CodeMirror.defineMode("markdown", function (cmCfg, modeCfg) {
|
|
|
14005
14003
|
if (state.f == htmlBlock) {
|
|
14006
14004
|
var exit = htmlModeMissing;
|
|
14007
14005
|
if (!exit) {
|
|
14008
|
-
var inner =
|
|
14006
|
+
var inner = codemirror.innerMode(htmlMode, state.htmlState);
|
|
14009
14007
|
exit = inner.mode.name == "xml" && inner.state.tagStart === null &&
|
|
14010
14008
|
(!inner.state.context && inner.state.tokenize.isInText);
|
|
14011
14009
|
}
|
|
@@ -14113,7 +14111,7 @@ CodeMirror.defineMode("markdown", function (cmCfg, modeCfg) {
|
|
|
14113
14111
|
// try switching mode
|
|
14114
14112
|
state.localMode = modeCfg.fencedCodeBlockHighlighting && getMode(match[2]);
|
|
14115
14113
|
if (state.localMode)
|
|
14116
|
-
state.localState =
|
|
14114
|
+
state.localState = codemirror.startState(state.localMode);
|
|
14117
14115
|
state.f = state.block = local;
|
|
14118
14116
|
if (modeCfg.highlightFormatting)
|
|
14119
14117
|
state.formatting = "code-block";
|
|
@@ -14159,7 +14157,7 @@ CodeMirror.defineMode("markdown", function (cmCfg, modeCfg) {
|
|
|
14159
14157
|
function htmlBlock(stream, state) {
|
|
14160
14158
|
var style = htmlMode.token(stream, state.htmlState);
|
|
14161
14159
|
if (!htmlModeMissing) {
|
|
14162
|
-
var inner =
|
|
14160
|
+
var inner = codemirror.innerMode(htmlMode, state.htmlState);
|
|
14163
14161
|
if ((inner.mode.name == "xml" && inner.state.tagStart === null &&
|
|
14164
14162
|
(!inner.state.context && inner.state.tokenize.isInText)) ||
|
|
14165
14163
|
(state.md_inside && stream.current().indexOf(">") > -1)) {
|
|
@@ -14446,7 +14444,7 @@ CodeMirror.defineMode("markdown", function (cmCfg, modeCfg) {
|
|
|
14446
14444
|
state.md_inside = true;
|
|
14447
14445
|
}
|
|
14448
14446
|
stream.backUp(1);
|
|
14449
|
-
state.htmlState =
|
|
14447
|
+
state.htmlState = codemirror.startState(htmlMode);
|
|
14450
14448
|
return switchBlock(stream, state, htmlBlock);
|
|
14451
14449
|
}
|
|
14452
14450
|
if (modeCfg.xml && ch === '<' && stream.match(/^\/\w*?>/)) {
|
|
@@ -14675,10 +14673,10 @@ CodeMirror.defineMode("markdown", function (cmCfg, modeCfg) {
|
|
|
14675
14673
|
prevLine: s.prevLine,
|
|
14676
14674
|
thisLine: s.thisLine,
|
|
14677
14675
|
block: s.block,
|
|
14678
|
-
htmlState: s.htmlState &&
|
|
14676
|
+
htmlState: s.htmlState && codemirror.copyState(htmlMode, s.htmlState),
|
|
14679
14677
|
indentation: s.indentation,
|
|
14680
14678
|
localMode: s.localMode,
|
|
14681
|
-
localState: s.localMode ?
|
|
14679
|
+
localState: s.localMode ? codemirror.copyState(s.localMode, s.localState) : null,
|
|
14682
14680
|
inline: s.inline,
|
|
14683
14681
|
text: s.text,
|
|
14684
14682
|
formatting: false,
|
|
@@ -14746,7 +14744,7 @@ CodeMirror.defineMode("markdown", function (cmCfg, modeCfg) {
|
|
|
14746
14744
|
return htmlMode.indent(state.htmlState, textAfter, line);
|
|
14747
14745
|
if (state.localState && state.localMode.indent)
|
|
14748
14746
|
return state.localMode.indent(state.localState, textAfter, line);
|
|
14749
|
-
return
|
|
14747
|
+
return codemirror.Pass;
|
|
14750
14748
|
},
|
|
14751
14749
|
blankLine: blankLine,
|
|
14752
14750
|
getType: getType,
|
|
@@ -14757,10 +14755,10 @@ CodeMirror.defineMode("markdown", function (cmCfg, modeCfg) {
|
|
|
14757
14755
|
};
|
|
14758
14756
|
return mode;
|
|
14759
14757
|
}, "xml");
|
|
14760
|
-
|
|
14761
|
-
|
|
14758
|
+
codemirror.defineMIME("text/markdown", "markdown");
|
|
14759
|
+
codemirror.defineMIME("text/x-markdown", "markdown");
|
|
14762
14760
|
|
|
14763
|
-
function styleInject
|
|
14761
|
+
function styleInject(css, ref) {
|
|
14764
14762
|
if ( ref === void 0 ) ref = {};
|
|
14765
14763
|
var insertAt = ref.insertAt;
|
|
14766
14764
|
|
|
@@ -14787,15 +14785,15 @@ function styleInject$1(css, ref) {
|
|
|
14787
14785
|
}
|
|
14788
14786
|
}
|
|
14789
14787
|
|
|
14790
|
-
var css_248z
|
|
14791
|
-
styleInject
|
|
14788
|
+
var css_248z = ".CodeMirror{font-family:monospace;height:300px;color:#000;direction:ltr}.CodeMirror-lines{padding:4px 0}.CodeMirror pre.CodeMirror-line,.CodeMirror pre.CodeMirror-line-like{padding:0 4px}.CodeMirror-gutter-filler,.CodeMirror-scrollbar-filler{background-color:#fff}.CodeMirror-gutters{border-right:1px solid #ddd;background-color:#f7f7f7;white-space:nowrap}.CodeMirror-linenumber{padding:0 3px 0 5px;min-width:20px;text-align:right;color:#999;white-space:nowrap}.CodeMirror-guttermarker{color:#000}.CodeMirror-guttermarker-subtle{color:#999}.CodeMirror-cursor{border-left:1px solid #000;border-right:none;width:0}.CodeMirror div.CodeMirror-secondarycursor{border-left:1px solid silver}.cm-fat-cursor .CodeMirror-cursor{width:auto;border:0!important;background:#7e7}.cm-fat-cursor div.CodeMirror-cursors{z-index:1}.cm-fat-cursor .CodeMirror-line::selection,.cm-fat-cursor .CodeMirror-line>span::selection,.cm-fat-cursor .CodeMirror-line>span>span::selection{background:transparent}.cm-fat-cursor .CodeMirror-line::-moz-selection,.cm-fat-cursor .CodeMirror-line>span::-moz-selection,.cm-fat-cursor .CodeMirror-line>span>span::-moz-selection{background:transparent}.cm-fat-cursor{caret-color:transparent}@-moz-keyframes blink{50%{background-color:transparent}}@-webkit-keyframes blink{50%{background-color:transparent}}@keyframes blink{50%{background-color:transparent}}.cm-tab{display:inline-block;text-decoration:inherit}.CodeMirror-rulers{position:absolute;left:0;right:0;top:-50px;bottom:0;overflow:hidden}.CodeMirror-ruler{border-left:1px solid #ccc;top:0;bottom:0;position:absolute}.cm-s-default .cm-header{color:#00f}.cm-s-default .cm-quote{color:#090}.cm-negative{color:#d44}.cm-positive{color:#292}.cm-header,.cm-strong{font-weight:700}.cm-em{font-style:italic}.cm-link{text-decoration:underline}.cm-strikethrough{text-decoration:line-through}.cm-s-default .cm-keyword{color:#708}.cm-s-default .cm-atom{color:#219}.cm-s-default .cm-number{color:#164}.cm-s-default .cm-def{color:#00f}.cm-s-default .cm-variable-2{color:#05a}.cm-s-default .cm-type,.cm-s-default .cm-variable-3{color:#085}.cm-s-default .cm-comment{color:#a50}.cm-s-default .cm-string{color:#a11}.cm-s-default .cm-string-2{color:#f50}.cm-s-default .cm-meta,.cm-s-default .cm-qualifier{color:#555}.cm-s-default .cm-builtin{color:#30a}.cm-s-default .cm-bracket{color:#997}.cm-s-default .cm-tag{color:#170}.cm-s-default .cm-attribute{color:#00c}.cm-s-default .cm-hr{color:#999}.cm-s-default .cm-link{color:#00c}.cm-invalidchar,.cm-s-default .cm-error{color:red}.CodeMirror-composing{border-bottom:2px solid}div.CodeMirror span.CodeMirror-matchingbracket{color:#0b0}div.CodeMirror span.CodeMirror-nonmatchingbracket{color:#a22}.CodeMirror-matchingtag{background:rgba(255,150,0,.3)}.CodeMirror-activeline-background{background:#e8f2ff}.CodeMirror{position:relative;overflow:hidden;background:#fff}.CodeMirror-scroll{overflow:scroll!important;margin-bottom:-50px;margin-right:-50px;padding-bottom:50px;height:100%;outline:none;position:relative}.CodeMirror-sizer{position:relative;border-right:50px solid transparent}.CodeMirror-gutter-filler,.CodeMirror-hscrollbar,.CodeMirror-scrollbar-filler,.CodeMirror-vscrollbar{position:absolute;z-index:6;display:none;outline:none}.CodeMirror-vscrollbar{right:0;top:0;overflow-x:hidden;overflow-y:scroll}.CodeMirror-hscrollbar{bottom:0;left:0;overflow-y:hidden;overflow-x:scroll}.CodeMirror-scrollbar-filler{right:0;bottom:0}.CodeMirror-gutter-filler{left:0;bottom:0}.CodeMirror-gutters{position:absolute;left:0;top:0;min-height:100%;z-index:3}.CodeMirror-gutter{white-space:normal;height:100%;display:inline-block;vertical-align:top;margin-bottom:-50px}.CodeMirror-gutter-wrapper{position:absolute;z-index:4;background:none!important;border:none!important}.CodeMirror-gutter-background{position:absolute;top:0;bottom:0;z-index:4}.CodeMirror-gutter-elt{position:absolute;cursor:default;z-index:4}.CodeMirror-gutter-wrapper ::selection{background-color:transparent}.CodeMirror-gutter-wrapper ::-moz-selection{background-color:transparent}.CodeMirror-lines{cursor:text;min-height:1px}.CodeMirror pre.CodeMirror-line,.CodeMirror pre.CodeMirror-line-like{-moz-border-radius:0;-webkit-border-radius:0;border-radius:0;border-width:0;background:transparent;font-family:inherit;font-size:inherit;margin:0;white-space:pre;word-wrap:normal;line-height:inherit;color:inherit;z-index:2;position:relative;overflow:visible;-webkit-tap-highlight-color:transparent;-webkit-font-variant-ligatures:contextual;font-variant-ligatures:contextual}.CodeMirror-wrap pre.CodeMirror-line,.CodeMirror-wrap pre.CodeMirror-line-like{word-wrap:break-word;white-space:pre-wrap;word-break:normal}.CodeMirror-linebackground{position:absolute;left:0;right:0;top:0;bottom:0;z-index:0}.CodeMirror-linewidget{position:relative;z-index:2;padding:.1px}.CodeMirror-rtl pre{direction:rtl}.CodeMirror-code{outline:none}.CodeMirror-gutter,.CodeMirror-gutters,.CodeMirror-linenumber,.CodeMirror-scroll,.CodeMirror-sizer{-moz-box-sizing:content-box;box-sizing:content-box}.CodeMirror-measure{position:absolute;width:100%;height:0;overflow:hidden;visibility:hidden}.CodeMirror-cursor{position:absolute;pointer-events:none}.CodeMirror-measure pre{position:static}div.CodeMirror-cursors{visibility:hidden;position:relative;z-index:3}.CodeMirror-focused div.CodeMirror-cursors,div.CodeMirror-dragcursors{visibility:visible}.CodeMirror-selected{background:#d9d9d9}.CodeMirror-focused .CodeMirror-selected{background:#d7d4f0}.CodeMirror-crosshair{cursor:crosshair}.CodeMirror-line::selection,.CodeMirror-line>span::selection,.CodeMirror-line>span>span::selection{background:#d7d4f0}.CodeMirror-line::-moz-selection,.CodeMirror-line>span::-moz-selection,.CodeMirror-line>span>span::-moz-selection{background:#d7d4f0}.cm-searching{background-color:#ffa;background-color:rgba(255,255,0,.4)}.cm-force-border{padding-right:.1px}@media print{.CodeMirror div.CodeMirror-cursors{visibility:hidden}}.cm-tab-wrap-hack:after{content:\"\"}span.CodeMirror-selectedtext{background:none}";
|
|
14789
|
+
styleInject(css_248z);
|
|
14792
14790
|
|
|
14793
|
-
(function (module, exports) {
|
|
14791
|
+
var braceFold = createCommonjsModule(function (module, exports) {
|
|
14794
14792
|
// CodeMirror, copyright (c) by Marijn Haverbeke and others
|
|
14795
14793
|
// Distributed under an MIT license: https://codemirror.net/LICENSE
|
|
14796
14794
|
|
|
14797
14795
|
(function(mod) {
|
|
14798
|
-
mod(codemirror
|
|
14796
|
+
mod(codemirror);
|
|
14799
14797
|
})(function(CodeMirror) {
|
|
14800
14798
|
|
|
14801
14799
|
CodeMirror.registerHelper("fold", "brace", function(cm, start) {
|
|
@@ -14895,14 +14893,14 @@ CodeMirror.registerHelper("fold", "include", function(cm, start) {
|
|
|
14895
14893
|
});
|
|
14896
14894
|
|
|
14897
14895
|
});
|
|
14898
|
-
}
|
|
14896
|
+
});
|
|
14899
14897
|
|
|
14900
|
-
(function (module, exports) {
|
|
14898
|
+
var commentFold = createCommonjsModule(function (module, exports) {
|
|
14901
14899
|
// CodeMirror, copyright (c) by Marijn Haverbeke and others
|
|
14902
14900
|
// Distributed under an MIT license: https://codemirror.net/LICENSE
|
|
14903
14901
|
|
|
14904
14902
|
(function(mod) {
|
|
14905
|
-
mod(codemirror
|
|
14903
|
+
mod(codemirror);
|
|
14906
14904
|
})(function(CodeMirror) {
|
|
14907
14905
|
|
|
14908
14906
|
CodeMirror.registerGlobalHelper("fold", "comment", function(mode) {
|
|
@@ -14951,16 +14949,14 @@ CodeMirror.registerGlobalHelper("fold", "comment", function(mode) {
|
|
|
14951
14949
|
});
|
|
14952
14950
|
|
|
14953
14951
|
});
|
|
14954
|
-
}
|
|
14955
|
-
|
|
14956
|
-
var foldcode = {exports: {}};
|
|
14952
|
+
});
|
|
14957
14953
|
|
|
14958
|
-
(function (module, exports) {
|
|
14954
|
+
var foldcode = createCommonjsModule(function (module, exports) {
|
|
14959
14955
|
// CodeMirror, copyright (c) by Marijn Haverbeke and others
|
|
14960
14956
|
// Distributed under an MIT license: https://codemirror.net/LICENSE
|
|
14961
14957
|
|
|
14962
14958
|
(function(mod) {
|
|
14963
|
-
mod(codemirror
|
|
14959
|
+
mod(codemirror);
|
|
14964
14960
|
})(function(CodeMirror) {
|
|
14965
14961
|
|
|
14966
14962
|
function doFold(cm, pos, options, force) {
|
|
@@ -15109,14 +15105,14 @@ var foldcode = {exports: {}};
|
|
|
15109
15105
|
return getOption(this, options, name);
|
|
15110
15106
|
});
|
|
15111
15107
|
});
|
|
15112
|
-
}
|
|
15108
|
+
});
|
|
15113
15109
|
|
|
15114
|
-
(function (module, exports) {
|
|
15110
|
+
var foldgutter = createCommonjsModule(function (module, exports) {
|
|
15115
15111
|
// CodeMirror, copyright (c) by Marijn Haverbeke and others
|
|
15116
15112
|
// Distributed under an MIT license: https://codemirror.net/LICENSE
|
|
15117
15113
|
|
|
15118
15114
|
(function(mod) {
|
|
15119
|
-
mod(codemirror
|
|
15115
|
+
mod(codemirror, foldcode);
|
|
15120
15116
|
})(function(CodeMirror) {
|
|
15121
15117
|
|
|
15122
15118
|
CodeMirror.defineOption("foldGutter", false, function(cm, val, old) {
|
|
@@ -15269,14 +15265,14 @@ var foldcode = {exports: {}};
|
|
|
15269
15265
|
updateFoldInfo(cm, line, line + 1);
|
|
15270
15266
|
}
|
|
15271
15267
|
});
|
|
15272
|
-
}
|
|
15268
|
+
});
|
|
15273
15269
|
|
|
15274
|
-
(function (module, exports) {
|
|
15270
|
+
var indentFold = createCommonjsModule(function (module, exports) {
|
|
15275
15271
|
// CodeMirror, copyright (c) by Marijn Haverbeke and others
|
|
15276
15272
|
// Distributed under an MIT license: https://codemirror.net/LICENSE
|
|
15277
15273
|
|
|
15278
15274
|
(function(mod) {
|
|
15279
|
-
mod(codemirror
|
|
15275
|
+
mod(codemirror);
|
|
15280
15276
|
})(function(CodeMirror) {
|
|
15281
15277
|
|
|
15282
15278
|
function lineIndent(cm, lineNo) {
|
|
@@ -15313,14 +15309,14 @@ CodeMirror.registerHelper("fold", "indent", function(cm, start) {
|
|
|
15313
15309
|
});
|
|
15314
15310
|
|
|
15315
15311
|
});
|
|
15316
|
-
}
|
|
15312
|
+
});
|
|
15317
15313
|
|
|
15318
|
-
(function (module, exports) {
|
|
15314
|
+
var xmlFold = createCommonjsModule(function (module, exports) {
|
|
15319
15315
|
// CodeMirror, copyright (c) by Marijn Haverbeke and others
|
|
15320
15316
|
// Distributed under an MIT license: https://codemirror.net/LICENSE
|
|
15321
15317
|
|
|
15322
15318
|
(function(mod) {
|
|
15323
|
-
mod(codemirror
|
|
15319
|
+
mod(codemirror);
|
|
15324
15320
|
})(function(CodeMirror) {
|
|
15325
15321
|
|
|
15326
15322
|
var Pos = CodeMirror.Pos;
|
|
@@ -15494,21 +15490,19 @@ CodeMirror.registerHelper("fold", "indent", function(cm, start) {
|
|
|
15494
15490
|
return findMatchingClose(iter, name);
|
|
15495
15491
|
};
|
|
15496
15492
|
});
|
|
15497
|
-
}
|
|
15498
|
-
|
|
15499
|
-
var css_248z$1$1 = ".CodeMirror-foldmarker{color:blue;cursor:pointer;font-family:arial;line-height:.3;text-shadow:#b9f 1px 1px 2px,#b9f -1px -1px 2px,#b9f 1px -1px 2px,#b9f -1px 1px 2px}.CodeMirror-foldgutter{width:.7em}.CodeMirror-foldgutter-folded,.CodeMirror-foldgutter-open{cursor:pointer}.CodeMirror-foldgutter-open:after{content:\"\\25BE\"}.CodeMirror-foldgutter-folded:after{content:\"\\25B8\"}";
|
|
15500
|
-
styleInject$1(css_248z$1$1);
|
|
15493
|
+
});
|
|
15501
15494
|
|
|
15502
|
-
var
|
|
15495
|
+
var css_248z$1 = ".CodeMirror-foldmarker{color:#00f;text-shadow:#b9f 1px 1px 2px,#b9f -1px -1px 2px,#b9f 1px -1px 2px,#b9f -1px 1px 2px;font-family:arial;line-height:.3;cursor:pointer}.CodeMirror-foldgutter{width:.7em}.CodeMirror-foldgutter-folded,.CodeMirror-foldgutter-open{cursor:pointer}.CodeMirror-foldgutter-open:after{content:\"\\25BE\"}.CodeMirror-foldgutter-folded:after{content:\"\\25B8\"}";
|
|
15496
|
+
styleInject(css_248z$1);
|
|
15503
15497
|
|
|
15504
|
-
(function (module, exports) {
|
|
15498
|
+
var dialog = createCommonjsModule(function (module, exports) {
|
|
15505
15499
|
// CodeMirror, copyright (c) by Marijn Haverbeke and others
|
|
15506
15500
|
// Distributed under an MIT license: https://codemirror.net/LICENSE
|
|
15507
15501
|
|
|
15508
15502
|
// Open simple dialogs on top of an editor. Relies on dialog.css.
|
|
15509
15503
|
|
|
15510
15504
|
(function(mod) {
|
|
15511
|
-
mod(codemirror
|
|
15505
|
+
mod(codemirror);
|
|
15512
15506
|
})(function(CodeMirror) {
|
|
15513
15507
|
function dialogDiv(cm, template, bottom) {
|
|
15514
15508
|
var wrap = cm.getWrapperElement();
|
|
@@ -15660,16 +15654,16 @@ var dialog = {exports: {}};
|
|
|
15660
15654
|
return close;
|
|
15661
15655
|
});
|
|
15662
15656
|
});
|
|
15663
|
-
}
|
|
15657
|
+
});
|
|
15664
15658
|
|
|
15665
|
-
(function (module, exports) {
|
|
15659
|
+
var jumpToLine = createCommonjsModule(function (module, exports) {
|
|
15666
15660
|
// CodeMirror, copyright (c) by Marijn Haverbeke and others
|
|
15667
15661
|
// Distributed under an MIT license: https://codemirror.net/LICENSE
|
|
15668
15662
|
|
|
15669
15663
|
// Defines jumpToLine command. Uses dialog.js if present.
|
|
15670
15664
|
|
|
15671
15665
|
(function(mod) {
|
|
15672
|
-
mod(codemirror
|
|
15666
|
+
mod(codemirror, dialog);
|
|
15673
15667
|
})(function(CodeMirror) {
|
|
15674
15668
|
|
|
15675
15669
|
// default search panel location
|
|
@@ -15710,16 +15704,14 @@ var dialog = {exports: {}};
|
|
|
15710
15704
|
|
|
15711
15705
|
CodeMirror.keyMap["default"]["Alt-G"] = "jumpToLine";
|
|
15712
15706
|
});
|
|
15713
|
-
}
|
|
15714
|
-
|
|
15715
|
-
var searchcursor = {exports: {}};
|
|
15707
|
+
});
|
|
15716
15708
|
|
|
15717
|
-
(function (module, exports) {
|
|
15709
|
+
var searchcursor = createCommonjsModule(function (module, exports) {
|
|
15718
15710
|
// CodeMirror, copyright (c) by Marijn Haverbeke and others
|
|
15719
15711
|
// Distributed under an MIT license: https://codemirror.net/LICENSE
|
|
15720
15712
|
|
|
15721
15713
|
(function(mod) {
|
|
15722
|
-
mod(codemirror
|
|
15714
|
+
mod(codemirror);
|
|
15723
15715
|
})(function(CodeMirror) {
|
|
15724
15716
|
var Pos = CodeMirror.Pos;
|
|
15725
15717
|
|
|
@@ -16014,9 +16006,9 @@ var searchcursor = {exports: {}};
|
|
|
16014
16006
|
this.setSelections(ranges, 0);
|
|
16015
16007
|
});
|
|
16016
16008
|
});
|
|
16017
|
-
}
|
|
16009
|
+
});
|
|
16018
16010
|
|
|
16019
|
-
(function (module, exports) {
|
|
16011
|
+
var search = createCommonjsModule(function (module, exports) {
|
|
16020
16012
|
// CodeMirror, copyright (c) by Marijn Haverbeke and others
|
|
16021
16013
|
// Distributed under an MIT license: https://codemirror.net/LICENSE
|
|
16022
16014
|
|
|
@@ -16029,7 +16021,7 @@ var searchcursor = {exports: {}};
|
|
|
16029
16021
|
// Ctrl-G.
|
|
16030
16022
|
|
|
16031
16023
|
(function(mod) {
|
|
16032
|
-
mod(codemirror
|
|
16024
|
+
mod(codemirror, searchcursor, dialog);
|
|
16033
16025
|
})(function(CodeMirror) {
|
|
16034
16026
|
|
|
16035
16027
|
// default search panel location
|
|
@@ -16303,12 +16295,12 @@ var searchcursor = {exports: {}};
|
|
|
16303
16295
|
CodeMirror.commands.replace = replace;
|
|
16304
16296
|
CodeMirror.commands.replaceAll = function(cm) {replace(cm, true);};
|
|
16305
16297
|
});
|
|
16306
|
-
}
|
|
16298
|
+
});
|
|
16307
16299
|
|
|
16308
|
-
var css_248z$
|
|
16309
|
-
styleInject
|
|
16300
|
+
var css_248z$2 = ".CodeMirror-dialog{position:absolute;left:0;right:0;background:inherit;z-index:15;padding:.1em .8em;overflow:hidden;color:inherit}.CodeMirror-dialog-top{border-bottom:1px solid #eee;top:0}.CodeMirror-dialog-bottom{border-top:1px solid #eee;bottom:0}.CodeMirror-dialog input{border:none;outline:none;background:transparent;width:20em;color:inherit;font-family:monospace}.CodeMirror-dialog button{font-size:70%}";
|
|
16301
|
+
styleInject(css_248z$2);
|
|
16310
16302
|
|
|
16311
|
-
function styleInject(css, ref) {
|
|
16303
|
+
function styleInject$1(css, ref) {
|
|
16312
16304
|
if ( ref === void 0 ) ref = {};
|
|
16313
16305
|
var insertAt = ref.insertAt;
|
|
16314
16306
|
|
|
@@ -16335,8 +16327,8 @@ function styleInject(css, ref) {
|
|
|
16335
16327
|
}
|
|
16336
16328
|
}
|
|
16337
16329
|
|
|
16338
|
-
var css_248z$
|
|
16339
|
-
styleInject(css_248z$
|
|
16330
|
+
var css_248z$3 = ".codemirror_Editor{border:1px solid #d3d3d3}.codemirror_Editor .cm-marked-text{background-color:#ff0}.codemirror_Editor .cm-marked-error,.codemirror_Editor .cm-marked-info,.codemirror_Editor .cm-marked-warning{display:inline-block;position:relative;background-position:0 100%;background-repeat:repeat-x}.codemirror_Editor .cm-marked-info{background-image:url(\"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAQAAAADCAYAAAC09K7GAAAAHElEQVQYV2NkgIP//xkYGBkZIXwIB0SDCQgHAgDEXAgCKU2DPwAAAABJRU5ErkJggg==\")}.codemirror_Editor .cm-marked-error{background-image:url(\"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAQAAAADCAYAAAC09K7GAAAAHUlEQVQYV2NkgIL/DAz/GRkYGBlBfBgHTMM4MJUAzFoIAuwf4BEAAAAASUVORK5CYII=\")}.codemirror_Editor .cm-marked-warning{background-image:url(\"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAQAAAADCAYAAAC09K7GAAAAHUlEQVQYV2NkgIL/Sxn+M0YzMDKC+DAOmIZxYCoBKQkLp8ga+UwAAAAASUVORK5CYII=\")}";
|
|
16331
|
+
styleInject$1(css_248z$3);
|
|
16340
16332
|
|
|
16341
16333
|
var Editor = /** @class */ (function (_super) {
|
|
16342
16334
|
__extends(Editor, _super);
|
|
@@ -16359,7 +16351,7 @@ var Editor = /** @class */ (function (_super) {
|
|
|
16359
16351
|
if (this.gutterMarkerWidth() > 0) {
|
|
16360
16352
|
gutters.unshift({
|
|
16361
16353
|
className: "CodeMirror-guttermarker",
|
|
16362
|
-
style: "width:"
|
|
16354
|
+
style: "width:" + this.gutterMarkerWidth() + "px;"
|
|
16363
16355
|
});
|
|
16364
16356
|
}
|
|
16365
16357
|
return gutters;
|
|
@@ -16471,7 +16463,7 @@ var Editor = /** @class */ (function (_super) {
|
|
|
16471
16463
|
Editor.prototype.enter = function (domNode, element) {
|
|
16472
16464
|
var _this = this;
|
|
16473
16465
|
_super.prototype.enter.call(this, domNode, element);
|
|
16474
|
-
this._codemirror =
|
|
16466
|
+
this._codemirror = codemirror.fromTextArea(element.append("textarea").node(), this.options());
|
|
16475
16467
|
this._codemirror.on("changes", function (cm, changes) {
|
|
16476
16468
|
_this.changes(changes);
|
|
16477
16469
|
});
|
|
@@ -16533,8 +16525,8 @@ var DOTEditor = /** @class */ (function (_super) {
|
|
|
16533
16525
|
}(Editor));
|
|
16534
16526
|
DOTEditor.prototype._class += " codemirror_JSEditor";
|
|
16535
16527
|
|
|
16536
|
-
var css_248z = ".codemirror_ECLEditor .cm-s-default span.cm-comment{color:green}.codemirror_ECLEditor .cm-s-default span.cm-keyword{color:#00f}.codemirror_ECLEditor .cm-s-default span.cm-variable{
|
|
16537
|
-
styleInject(css_248z);
|
|
16528
|
+
var css_248z$4 = ".codemirror_ECLEditor .cm-s-default span.cm-comment{color:green}.codemirror_ECLEditor .cm-s-default span.cm-keyword{color:#00f}.codemirror_ECLEditor .cm-s-default span.cm-variable{font-weight:700;color:navy}.codemirror_ECLEditor .cm-s-default span.cm-variable-2,.codemirror_ECLEditor .cm-s-default span.cm-variable-3{color:maroon}.codemirror_ECLEditor .cm-s-default span.cm-builtin{color:purple}.codemirror_ECLEditor .cm-s-default span.cm-string{color:grey}.cm-s-default span.cm-atom,.codemirror_ECLEditor .cm-s-default span.cm-number{color:#000}.codemirror_ECLEditor .cm-s-default span.cm-meta{color:#004080}.codemirror_ECLEditor .ErrorLine{background:#c00!important;color:#fff!important}.codemirror_ECLEditor .WarningLine{background:#ff9!important}.codemirror_ECLEditor .highlightline{background:#e8f2ff!important}";
|
|
16529
|
+
styleInject$1(css_248z$4);
|
|
16538
16530
|
|
|
16539
16531
|
var ECLEditor = /** @class */ (function (_super) {
|
|
16540
16532
|
__extends(ECLEditor, _super);
|