@codingame/monaco-vscode-standalone-html-language-features 20.4.1 → 20.5.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/htmlMode.js +63 -4
- package/index.js +1 -1
- package/package.json +2 -2
- package/worker.js +145 -175
package/htmlMode.js
CHANGED
|
@@ -2,7 +2,7 @@ import * as monaco_editor_core_star from 'monaco-editor';
|
|
|
2
2
|
|
|
3
3
|
/*!-----------------------------------------------------------------------------
|
|
4
4
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
5
|
-
* Version: 0.
|
|
5
|
+
* Version: 0.53.0(undefined)
|
|
6
6
|
* Released under the MIT license
|
|
7
7
|
* https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt
|
|
8
8
|
*-----------------------------------------------------------------------------*/
|
|
@@ -25,6 +25,67 @@ var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "defau
|
|
|
25
25
|
var monaco_editor_core_exports = {};
|
|
26
26
|
__reExport(monaco_editor_core_exports, monaco_editor_core_star);
|
|
27
27
|
|
|
28
|
+
// src/common/workers.ts
|
|
29
|
+
function createTrustedTypesPolicy(policyName, policyOptions) {
|
|
30
|
+
const monacoEnvironment = globalThis.MonacoEnvironment;
|
|
31
|
+
if (monacoEnvironment?.createTrustedTypesPolicy) {
|
|
32
|
+
try {
|
|
33
|
+
return monacoEnvironment.createTrustedTypesPolicy(policyName, policyOptions);
|
|
34
|
+
} catch (err) {
|
|
35
|
+
console.error(err);
|
|
36
|
+
return void 0;
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
try {
|
|
40
|
+
return globalThis.trustedTypes?.createPolicy(policyName, policyOptions);
|
|
41
|
+
} catch (err) {
|
|
42
|
+
console.error(err);
|
|
43
|
+
return void 0;
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
var ttPolicy;
|
|
47
|
+
if (typeof self === "object" && self.constructor && self.constructor.name === "DedicatedWorkerGlobalScope" && globalThis.workerttPolicy !== void 0) {
|
|
48
|
+
ttPolicy = globalThis.workerttPolicy;
|
|
49
|
+
} else {
|
|
50
|
+
ttPolicy = createTrustedTypesPolicy("defaultWorkerFactory", {
|
|
51
|
+
createScriptURL: (value) => value
|
|
52
|
+
});
|
|
53
|
+
}
|
|
54
|
+
function getWorker(descriptor) {
|
|
55
|
+
const label = descriptor.label;
|
|
56
|
+
const monacoEnvironment = globalThis.MonacoEnvironment;
|
|
57
|
+
if (monacoEnvironment) {
|
|
58
|
+
if (typeof monacoEnvironment.getWorker === "function") {
|
|
59
|
+
return monacoEnvironment.getWorker("workerMain.js", label);
|
|
60
|
+
}
|
|
61
|
+
if (typeof monacoEnvironment.getWorkerUrl === "function") {
|
|
62
|
+
const workerUrl = monacoEnvironment.getWorkerUrl("workerMain.js", label);
|
|
63
|
+
return new Worker(
|
|
64
|
+
ttPolicy ? ttPolicy.createScriptURL(workerUrl) : workerUrl,
|
|
65
|
+
{ name: label, type: "module" }
|
|
66
|
+
);
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
throw new Error(
|
|
70
|
+
`You must define a function MonacoEnvironment.getWorkerUrl or MonacoEnvironment.getWorker`
|
|
71
|
+
);
|
|
72
|
+
}
|
|
73
|
+
function createWebWorker(opts) {
|
|
74
|
+
const worker = Promise.resolve(
|
|
75
|
+
getWorker({
|
|
76
|
+
label: opts.label ?? "monaco-editor-worker"})
|
|
77
|
+
).then((w) => {
|
|
78
|
+
w.postMessage("ignore");
|
|
79
|
+
w.postMessage(opts.createData);
|
|
80
|
+
return w;
|
|
81
|
+
});
|
|
82
|
+
return monaco_editor_core_exports.editor.createWebWorker({
|
|
83
|
+
worker,
|
|
84
|
+
host: opts.host,
|
|
85
|
+
keepIdleModels: opts.keepIdleModels
|
|
86
|
+
});
|
|
87
|
+
}
|
|
88
|
+
|
|
28
89
|
// src/language/html/workerManager.ts
|
|
29
90
|
var STOP_WHEN_IDLE_FOR = 2 * 60 * 1e3;
|
|
30
91
|
var WorkerManager = class {
|
|
@@ -60,9 +121,7 @@ var WorkerManager = class {
|
|
|
60
121
|
_getClient() {
|
|
61
122
|
this._lastUsedTime = Date.now();
|
|
62
123
|
if (!this._client) {
|
|
63
|
-
this._worker =
|
|
64
|
-
// module that exports the create() method and returns a `HTMLWorker` instance
|
|
65
|
-
moduleId: "vs/language/html/htmlWorker",
|
|
124
|
+
this._worker = createWebWorker({
|
|
66
125
|
// passed in to the create() method
|
|
67
126
|
createData: {
|
|
68
127
|
languageSettings: this._defaults.options,
|
package/index.js
CHANGED
|
@@ -2,7 +2,7 @@ import * as monaco_editor_core_star from 'monaco-editor';
|
|
|
2
2
|
|
|
3
3
|
/*!-----------------------------------------------------------------------------
|
|
4
4
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
5
|
-
* Version: 0.
|
|
5
|
+
* Version: 0.53.0(undefined)
|
|
6
6
|
* Released under the MIT license
|
|
7
7
|
* https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt
|
|
8
8
|
*-----------------------------------------------------------------------------*/
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@codingame/monaco-vscode-standalone-html-language-features",
|
|
3
|
-
"version": "20.
|
|
3
|
+
"version": "20.5.0",
|
|
4
4
|
"keywords": [],
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "CodinGame",
|
|
@@ -25,6 +25,6 @@
|
|
|
25
25
|
"main": "index.js",
|
|
26
26
|
"module": "index.js",
|
|
27
27
|
"dependencies": {
|
|
28
|
-
"monaco-editor": "npm:@codingame/monaco-vscode-editor-api@20.
|
|
28
|
+
"monaco-editor": "npm:@codingame/monaco-vscode-editor-api@20.5.0"
|
|
29
29
|
}
|
|
30
30
|
}
|
package/worker.js
CHANGED
|
@@ -1,12 +1,19 @@
|
|
|
1
|
-
import * as worker from 'monaco-editor/esm/vs/editor/editor.worker.js';
|
|
1
|
+
import * as worker from 'monaco-editor/esm/vs/editor/editor.worker.start.js';
|
|
2
2
|
|
|
3
3
|
/*!-----------------------------------------------------------------------------
|
|
4
4
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
5
|
-
* Version: 0.
|
|
5
|
+
* Version: 0.53.0(undefined)
|
|
6
6
|
* Released under the MIT license
|
|
7
7
|
* https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt
|
|
8
8
|
*-----------------------------------------------------------------------------*/
|
|
9
9
|
|
|
10
|
+
function initialize(callback) {
|
|
11
|
+
self.onmessage = (m) => {
|
|
12
|
+
worker.start((ctx) => {
|
|
13
|
+
return callback(ctx, m.data);
|
|
14
|
+
});
|
|
15
|
+
};
|
|
16
|
+
}
|
|
10
17
|
function t(...args) {
|
|
11
18
|
const firstArg = args[0];
|
|
12
19
|
let key;
|
|
@@ -1114,9 +1121,9 @@ var FullTextDocument = class {
|
|
|
1114
1121
|
}
|
|
1115
1122
|
getText(range) {
|
|
1116
1123
|
if (range) {
|
|
1117
|
-
let
|
|
1124
|
+
let start2 = this.offsetAt(range.start);
|
|
1118
1125
|
let end = this.offsetAt(range.end);
|
|
1119
|
-
return this._content.substring(
|
|
1126
|
+
return this._content.substring(start2, end);
|
|
1120
1127
|
}
|
|
1121
1128
|
return this._content;
|
|
1122
1129
|
}
|
|
@@ -1250,9 +1257,9 @@ var FullTextDocument2 = class _FullTextDocument {
|
|
|
1250
1257
|
}
|
|
1251
1258
|
getText(range) {
|
|
1252
1259
|
if (range) {
|
|
1253
|
-
const
|
|
1260
|
+
const start2 = this.offsetAt(range.start);
|
|
1254
1261
|
const end = this.offsetAt(range.end);
|
|
1255
|
-
return this._content.substring(
|
|
1262
|
+
return this._content.substring(start2, end);
|
|
1256
1263
|
}
|
|
1257
1264
|
return this._content;
|
|
1258
1265
|
}
|
|
@@ -1425,10 +1432,10 @@ function computeLineOffsets(text, isAtLineStart, textOffset = 0) {
|
|
|
1425
1432
|
return result;
|
|
1426
1433
|
}
|
|
1427
1434
|
function getWellformedRange(range) {
|
|
1428
|
-
const
|
|
1435
|
+
const start2 = range.start;
|
|
1429
1436
|
const end = range.end;
|
|
1430
|
-
if (
|
|
1431
|
-
return { start: end, end:
|
|
1437
|
+
if (start2.line > end.line || start2.line === end.line && start2.character > end.character) {
|
|
1438
|
+
return { start: end, end: start2 };
|
|
1432
1439
|
}
|
|
1433
1440
|
return range;
|
|
1434
1441
|
}
|
|
@@ -1801,6 +1808,7 @@ function createScanner(input, initialOffset = 0, initialState = ScannerState.Wit
|
|
|
1801
1808
|
}
|
|
1802
1809
|
state = ScannerState.WithinTag;
|
|
1803
1810
|
return internalScan();
|
|
1811
|
+
// no advance yet - jump to WithinTag
|
|
1804
1812
|
case ScannerState.BeforeAttributeValue:
|
|
1805
1813
|
if (stream.skipWhitespace()) {
|
|
1806
1814
|
return finishToken(offset, TokenType.Whitespace);
|
|
@@ -1836,6 +1844,7 @@ function createScanner(input, initialOffset = 0, initialState = ScannerState.Wit
|
|
|
1836
1844
|
state = ScannerState.WithinTag;
|
|
1837
1845
|
hasSpaceAfterTag = false;
|
|
1838
1846
|
return internalScan();
|
|
1847
|
+
// no advance yet - jump to WithinTag
|
|
1839
1848
|
case ScannerState.WithinScriptContent:
|
|
1840
1849
|
let sciptState = 1;
|
|
1841
1850
|
while (!stream.eos()) {
|
|
@@ -1867,6 +1876,7 @@ function createScanner(input, initialOffset = 0, initialState = ScannerState.Wit
|
|
|
1867
1876
|
return finishToken(offset, TokenType.Script);
|
|
1868
1877
|
}
|
|
1869
1878
|
return internalScan();
|
|
1879
|
+
// no advance yet - jump to content
|
|
1870
1880
|
case ScannerState.WithinStyleContent:
|
|
1871
1881
|
stream.advanceUntilRegExp(/<\/style/i);
|
|
1872
1882
|
state = ScannerState.WithinContent;
|
|
@@ -1928,8 +1938,8 @@ var Node = class {
|
|
|
1928
1938
|
get attributeNames() {
|
|
1929
1939
|
return this.attributes ? Object.keys(this.attributes) : [];
|
|
1930
1940
|
}
|
|
1931
|
-
constructor(
|
|
1932
|
-
this.start =
|
|
1941
|
+
constructor(start2, end, children, parent) {
|
|
1942
|
+
this.start = start2;
|
|
1933
1943
|
this.end = end;
|
|
1934
1944
|
this.children = children;
|
|
1935
1945
|
this.parent = parent;
|
|
@@ -4594,9 +4604,9 @@ function shiftPosition(pos, offset) {
|
|
|
4594
4604
|
return Position.create(pos.line, pos.character + offset);
|
|
4595
4605
|
}
|
|
4596
4606
|
function shiftRange(range, startOffset, endOffset) {
|
|
4597
|
-
const
|
|
4607
|
+
const start2 = shiftPosition(range.start, startOffset);
|
|
4598
4608
|
const end = shiftPosition(range.end, endOffset);
|
|
4599
|
-
return Range.create(
|
|
4609
|
+
return Range.create(start2, end);
|
|
4600
4610
|
}
|
|
4601
4611
|
|
|
4602
4612
|
// node_modules/vscode-html-languageservice/lib/esm/services/htmlCompletion.js
|
|
@@ -4671,16 +4681,16 @@ var HTMLCompletion = class {
|
|
|
4671
4681
|
return result;
|
|
4672
4682
|
}
|
|
4673
4683
|
function getLineIndent(offset2) {
|
|
4674
|
-
let
|
|
4675
|
-
while (
|
|
4676
|
-
const ch = text.charAt(
|
|
4684
|
+
let start2 = offset2;
|
|
4685
|
+
while (start2 > 0) {
|
|
4686
|
+
const ch = text.charAt(start2 - 1);
|
|
4677
4687
|
if ("\n\r".indexOf(ch) >= 0) {
|
|
4678
|
-
return text.substring(
|
|
4688
|
+
return text.substring(start2, offset2);
|
|
4679
4689
|
}
|
|
4680
4690
|
if (!isWhiteSpace(ch)) {
|
|
4681
4691
|
return null;
|
|
4682
4692
|
}
|
|
4683
|
-
|
|
4693
|
+
start2--;
|
|
4684
4694
|
}
|
|
4685
4695
|
return text.substring(0, offset2);
|
|
4686
4696
|
}
|
|
@@ -4990,15 +5000,15 @@ var HTMLCompletion = class {
|
|
|
4990
5000
|
break;
|
|
4991
5001
|
case TokenType.EndTag:
|
|
4992
5002
|
if (offset <= scanner.getTokenEnd()) {
|
|
4993
|
-
let
|
|
4994
|
-
while (
|
|
4995
|
-
const ch = text.charAt(
|
|
5003
|
+
let start2 = scanner.getTokenOffset() - 1;
|
|
5004
|
+
while (start2 >= 0) {
|
|
5005
|
+
const ch = text.charAt(start2);
|
|
4996
5006
|
if (ch === "/") {
|
|
4997
|
-
return collectCloseTagSuggestions(
|
|
5007
|
+
return collectCloseTagSuggestions(start2, false, scanner.getTokenEnd());
|
|
4998
5008
|
} else if (!isWhiteSpace(ch)) {
|
|
4999
5009
|
break;
|
|
5000
5010
|
}
|
|
5001
|
-
|
|
5011
|
+
start2--;
|
|
5002
5012
|
}
|
|
5003
5013
|
}
|
|
5004
5014
|
break;
|
|
@@ -5411,7 +5421,7 @@ var legacy_beautify_css;
|
|
|
5411
5421
|
,
|
|
5412
5422
|
/* 2 */
|
|
5413
5423
|
/***/
|
|
5414
|
-
function(module) {
|
|
5424
|
+
(function(module) {
|
|
5415
5425
|
function OutputLine(parent) {
|
|
5416
5426
|
this.__parent = parent;
|
|
5417
5427
|
this.__character_count = 0;
|
|
@@ -5728,13 +5738,13 @@ var legacy_beautify_css;
|
|
|
5728
5738
|
}
|
|
5729
5739
|
};
|
|
5730
5740
|
module.exports.Output = Output;
|
|
5731
|
-
},
|
|
5741
|
+
}),
|
|
5732
5742
|
,
|
|
5733
5743
|
,
|
|
5734
5744
|
,
|
|
5735
5745
|
/* 6 */
|
|
5736
5746
|
/***/
|
|
5737
|
-
function(module) {
|
|
5747
|
+
(function(module) {
|
|
5738
5748
|
function Options(options, merge_child_field) {
|
|
5739
5749
|
this.raw_options = _mergeOpts(options, merge_child_field);
|
|
5740
5750
|
this.disabled = this._get_boolean("disabled");
|
|
@@ -5854,11 +5864,11 @@ var legacy_beautify_css;
|
|
|
5854
5864
|
module.exports.Options = Options;
|
|
5855
5865
|
module.exports.normalizeOpts = _normalizeOpts;
|
|
5856
5866
|
module.exports.mergeOpts = _mergeOpts;
|
|
5857
|
-
},
|
|
5867
|
+
}),
|
|
5858
5868
|
,
|
|
5859
5869
|
/* 8 */
|
|
5860
5870
|
/***/
|
|
5861
|
-
function(module) {
|
|
5871
|
+
(function(module) {
|
|
5862
5872
|
var regexp_has_sticky = RegExp.prototype.hasOwnProperty("sticky");
|
|
5863
5873
|
function InputScanner(input_string) {
|
|
5864
5874
|
this.__input = input_string || "";
|
|
@@ -5977,24 +5987,24 @@ var legacy_beautify_css;
|
|
|
5977
5987
|
return RegExp(literal_string.replace(/[-\/\\^$*+?.()|[\]{}]/g, "\\$&"));
|
|
5978
5988
|
};
|
|
5979
5989
|
InputScanner.prototype.peekUntilAfter = function(pattern) {
|
|
5980
|
-
var
|
|
5990
|
+
var start2 = this.__position;
|
|
5981
5991
|
var val = this.readUntilAfter(pattern);
|
|
5982
|
-
this.__position =
|
|
5992
|
+
this.__position = start2;
|
|
5983
5993
|
return val;
|
|
5984
5994
|
};
|
|
5985
5995
|
InputScanner.prototype.lookBack = function(testVal) {
|
|
5986
|
-
var
|
|
5987
|
-
return
|
|
5996
|
+
var start2 = this.__position - 1;
|
|
5997
|
+
return start2 >= testVal.length && this.__input.substring(start2 - testVal.length, start2).toLowerCase() === testVal;
|
|
5988
5998
|
};
|
|
5989
5999
|
module.exports.InputScanner = InputScanner;
|
|
5990
|
-
},
|
|
6000
|
+
}),
|
|
5991
6001
|
,
|
|
5992
6002
|
,
|
|
5993
6003
|
,
|
|
5994
6004
|
,
|
|
5995
6005
|
/* 13 */
|
|
5996
6006
|
/***/
|
|
5997
|
-
function(module) {
|
|
6007
|
+
(function(module) {
|
|
5998
6008
|
function Directives(start_block_pattern, end_block_pattern) {
|
|
5999
6009
|
start_block_pattern = typeof start_block_pattern === "string" ? start_block_pattern : start_block_pattern.source;
|
|
6000
6010
|
end_block_pattern = typeof end_block_pattern === "string" ? end_block_pattern : end_block_pattern.source;
|
|
@@ -6019,11 +6029,11 @@ var legacy_beautify_css;
|
|
|
6019
6029
|
return input.readUntilAfter(this.__directives_end_ignore_pattern);
|
|
6020
6030
|
};
|
|
6021
6031
|
module.exports.Directives = Directives;
|
|
6022
|
-
},
|
|
6032
|
+
}),
|
|
6023
6033
|
,
|
|
6024
6034
|
/* 15 */
|
|
6025
6035
|
/***/
|
|
6026
|
-
function(module, __unused_webpack_exports, __webpack_require__2) {
|
|
6036
|
+
(function(module, __unused_webpack_exports, __webpack_require__2) {
|
|
6027
6037
|
var Beautifier = __webpack_require__2(16).Beautifier, Options = __webpack_require__2(17).Options;
|
|
6028
6038
|
function css_beautify2(source_text, options) {
|
|
6029
6039
|
var beautifier = new Beautifier(source_text, options);
|
|
@@ -6033,10 +6043,10 @@ var legacy_beautify_css;
|
|
|
6033
6043
|
module.exports.defaultOptions = function() {
|
|
6034
6044
|
return new Options();
|
|
6035
6045
|
};
|
|
6036
|
-
},
|
|
6046
|
+
}),
|
|
6037
6047
|
/* 16 */
|
|
6038
6048
|
/***/
|
|
6039
|
-
function(module, __unused_webpack_exports, __webpack_require__2) {
|
|
6049
|
+
(function(module, __unused_webpack_exports, __webpack_require__2) {
|
|
6040
6050
|
var Options = __webpack_require__2(17).Options;
|
|
6041
6051
|
var Output = __webpack_require__2(2).Output;
|
|
6042
6052
|
var InputScanner = __webpack_require__2(8).InputScanner;
|
|
@@ -6437,10 +6447,10 @@ var legacy_beautify_css;
|
|
|
6437
6447
|
return sweetCode;
|
|
6438
6448
|
};
|
|
6439
6449
|
module.exports.Beautifier = Beautifier;
|
|
6440
|
-
},
|
|
6450
|
+
}),
|
|
6441
6451
|
/* 17 */
|
|
6442
6452
|
/***/
|
|
6443
|
-
function(module, __unused_webpack_exports, __webpack_require__2) {
|
|
6453
|
+
(function(module, __unused_webpack_exports, __webpack_require__2) {
|
|
6444
6454
|
var BaseOptions = __webpack_require__2(6).Options;
|
|
6445
6455
|
function Options(options) {
|
|
6446
6456
|
BaseOptions.call(this, options, "css");
|
|
@@ -6460,7 +6470,7 @@ var legacy_beautify_css;
|
|
|
6460
6470
|
}
|
|
6461
6471
|
Options.prototype = new BaseOptions();
|
|
6462
6472
|
module.exports.Options = Options;
|
|
6463
|
-
}
|
|
6473
|
+
})
|
|
6464
6474
|
/******/
|
|
6465
6475
|
];
|
|
6466
6476
|
var __webpack_module_cache__ = {};
|
|
@@ -6494,7 +6504,7 @@ var legacy_beautify_html;
|
|
|
6494
6504
|
,
|
|
6495
6505
|
/* 2 */
|
|
6496
6506
|
/***/
|
|
6497
|
-
function(module) {
|
|
6507
|
+
(function(module) {
|
|
6498
6508
|
function OutputLine(parent) {
|
|
6499
6509
|
this.__parent = parent;
|
|
6500
6510
|
this.__character_count = 0;
|
|
@@ -6811,10 +6821,10 @@ var legacy_beautify_html;
|
|
|
6811
6821
|
}
|
|
6812
6822
|
};
|
|
6813
6823
|
module.exports.Output = Output;
|
|
6814
|
-
},
|
|
6824
|
+
}),
|
|
6815
6825
|
/* 3 */
|
|
6816
6826
|
/***/
|
|
6817
|
-
function(module) {
|
|
6827
|
+
(function(module) {
|
|
6818
6828
|
function Token(type, text, newlines, whitespace_before) {
|
|
6819
6829
|
this.type = type;
|
|
6820
6830
|
this.text = text;
|
|
@@ -6829,12 +6839,12 @@ var legacy_beautify_html;
|
|
|
6829
6839
|
this.directives = null;
|
|
6830
6840
|
}
|
|
6831
6841
|
module.exports.Token = Token;
|
|
6832
|
-
},
|
|
6842
|
+
}),
|
|
6833
6843
|
,
|
|
6834
6844
|
,
|
|
6835
6845
|
/* 6 */
|
|
6836
6846
|
/***/
|
|
6837
|
-
function(module) {
|
|
6847
|
+
(function(module) {
|
|
6838
6848
|
function Options(options, merge_child_field) {
|
|
6839
6849
|
this.raw_options = _mergeOpts(options, merge_child_field);
|
|
6840
6850
|
this.disabled = this._get_boolean("disabled");
|
|
@@ -6954,11 +6964,11 @@ var legacy_beautify_html;
|
|
|
6954
6964
|
module.exports.Options = Options;
|
|
6955
6965
|
module.exports.normalizeOpts = _normalizeOpts;
|
|
6956
6966
|
module.exports.mergeOpts = _mergeOpts;
|
|
6957
|
-
},
|
|
6967
|
+
}),
|
|
6958
6968
|
,
|
|
6959
6969
|
/* 8 */
|
|
6960
6970
|
/***/
|
|
6961
|
-
function(module) {
|
|
6971
|
+
(function(module) {
|
|
6962
6972
|
var regexp_has_sticky = RegExp.prototype.hasOwnProperty("sticky");
|
|
6963
6973
|
function InputScanner(input_string) {
|
|
6964
6974
|
this.__input = input_string || "";
|
|
@@ -7077,20 +7087,20 @@ var legacy_beautify_html;
|
|
|
7077
7087
|
return RegExp(literal_string.replace(/[-\/\\^$*+?.()|[\]{}]/g, "\\$&"));
|
|
7078
7088
|
};
|
|
7079
7089
|
InputScanner.prototype.peekUntilAfter = function(pattern) {
|
|
7080
|
-
var
|
|
7090
|
+
var start2 = this.__position;
|
|
7081
7091
|
var val = this.readUntilAfter(pattern);
|
|
7082
|
-
this.__position =
|
|
7092
|
+
this.__position = start2;
|
|
7083
7093
|
return val;
|
|
7084
7094
|
};
|
|
7085
7095
|
InputScanner.prototype.lookBack = function(testVal) {
|
|
7086
|
-
var
|
|
7087
|
-
return
|
|
7096
|
+
var start2 = this.__position - 1;
|
|
7097
|
+
return start2 >= testVal.length && this.__input.substring(start2 - testVal.length, start2).toLowerCase() === testVal;
|
|
7088
7098
|
};
|
|
7089
7099
|
module.exports.InputScanner = InputScanner;
|
|
7090
|
-
},
|
|
7100
|
+
}),
|
|
7091
7101
|
/* 9 */
|
|
7092
7102
|
/***/
|
|
7093
|
-
function(module, __unused_webpack_exports, __webpack_require__2) {
|
|
7103
|
+
(function(module, __unused_webpack_exports, __webpack_require__2) {
|
|
7094
7104
|
var InputScanner = __webpack_require__2(8).InputScanner;
|
|
7095
7105
|
var Token = __webpack_require__2(3).Token;
|
|
7096
7106
|
var TokenStream = __webpack_require__2(10).TokenStream;
|
|
@@ -7180,10 +7190,10 @@ var legacy_beautify_html;
|
|
|
7180
7190
|
};
|
|
7181
7191
|
module.exports.Tokenizer = Tokenizer;
|
|
7182
7192
|
module.exports.TOKEN = TOKEN;
|
|
7183
|
-
},
|
|
7193
|
+
}),
|
|
7184
7194
|
/* 10 */
|
|
7185
7195
|
/***/
|
|
7186
|
-
function(module) {
|
|
7196
|
+
(function(module) {
|
|
7187
7197
|
function TokenStream(parent_token) {
|
|
7188
7198
|
this.__tokens = [];
|
|
7189
7199
|
this.__tokens_length = this.__tokens.length;
|
|
@@ -7224,10 +7234,10 @@ var legacy_beautify_html;
|
|
|
7224
7234
|
this.__tokens_length += 1;
|
|
7225
7235
|
};
|
|
7226
7236
|
module.exports.TokenStream = TokenStream;
|
|
7227
|
-
},
|
|
7237
|
+
}),
|
|
7228
7238
|
/* 11 */
|
|
7229
7239
|
/***/
|
|
7230
|
-
function(module, __unused_webpack_exports, __webpack_require__2) {
|
|
7240
|
+
(function(module, __unused_webpack_exports, __webpack_require__2) {
|
|
7231
7241
|
var Pattern = __webpack_require__2(12).Pattern;
|
|
7232
7242
|
function WhitespacePattern(input_scanner, parent) {
|
|
7233
7243
|
Pattern.call(this, input_scanner, parent);
|
|
@@ -7291,10 +7301,10 @@ var legacy_beautify_html;
|
|
|
7291
7301
|
return result;
|
|
7292
7302
|
};
|
|
7293
7303
|
module.exports.WhitespacePattern = WhitespacePattern;
|
|
7294
|
-
},
|
|
7304
|
+
}),
|
|
7295
7305
|
/* 12 */
|
|
7296
7306
|
/***/
|
|
7297
|
-
function(module) {
|
|
7307
|
+
(function(module) {
|
|
7298
7308
|
function Pattern(input_scanner, parent) {
|
|
7299
7309
|
this._input = input_scanner;
|
|
7300
7310
|
this._starting_pattern = null;
|
|
@@ -7350,10 +7360,10 @@ var legacy_beautify_html;
|
|
|
7350
7360
|
Pattern.prototype._update = function() {
|
|
7351
7361
|
};
|
|
7352
7362
|
module.exports.Pattern = Pattern;
|
|
7353
|
-
},
|
|
7363
|
+
}),
|
|
7354
7364
|
/* 13 */
|
|
7355
7365
|
/***/
|
|
7356
|
-
function(module) {
|
|
7366
|
+
(function(module) {
|
|
7357
7367
|
function Directives(start_block_pattern, end_block_pattern) {
|
|
7358
7368
|
start_block_pattern = typeof start_block_pattern === "string" ? start_block_pattern : start_block_pattern.source;
|
|
7359
7369
|
end_block_pattern = typeof end_block_pattern === "string" ? end_block_pattern : end_block_pattern.source;
|
|
@@ -7378,10 +7388,10 @@ var legacy_beautify_html;
|
|
|
7378
7388
|
return input.readUntilAfter(this.__directives_end_ignore_pattern);
|
|
7379
7389
|
};
|
|
7380
7390
|
module.exports.Directives = Directives;
|
|
7381
|
-
},
|
|
7391
|
+
}),
|
|
7382
7392
|
/* 14 */
|
|
7383
7393
|
/***/
|
|
7384
|
-
function(module, __unused_webpack_exports, __webpack_require__2) {
|
|
7394
|
+
(function(module, __unused_webpack_exports, __webpack_require__2) {
|
|
7385
7395
|
var Pattern = __webpack_require__2(12).Pattern;
|
|
7386
7396
|
var template_names = {
|
|
7387
7397
|
django: false,
|
|
@@ -7527,13 +7537,13 @@ var legacy_beautify_html;
|
|
|
7527
7537
|
return resulting_string;
|
|
7528
7538
|
};
|
|
7529
7539
|
module.exports.TemplatablePattern = TemplatablePattern;
|
|
7530
|
-
},
|
|
7540
|
+
}),
|
|
7531
7541
|
,
|
|
7532
7542
|
,
|
|
7533
7543
|
,
|
|
7534
7544
|
/* 18 */
|
|
7535
7545
|
/***/
|
|
7536
|
-
function(module, __unused_webpack_exports, __webpack_require__2) {
|
|
7546
|
+
(function(module, __unused_webpack_exports, __webpack_require__2) {
|
|
7537
7547
|
var Beautifier = __webpack_require__2(19).Beautifier, Options = __webpack_require__2(20).Options;
|
|
7538
7548
|
function style_html(html_source, options, js_beautify2, css_beautify2) {
|
|
7539
7549
|
var beautifier = new Beautifier(html_source, options, js_beautify2, css_beautify2);
|
|
@@ -7543,10 +7553,10 @@ var legacy_beautify_html;
|
|
|
7543
7553
|
module.exports.defaultOptions = function() {
|
|
7544
7554
|
return new Options();
|
|
7545
7555
|
};
|
|
7546
|
-
},
|
|
7556
|
+
}),
|
|
7547
7557
|
/* 19 */
|
|
7548
7558
|
/***/
|
|
7549
|
-
function(module, __unused_webpack_exports, __webpack_require__2) {
|
|
7559
|
+
(function(module, __unused_webpack_exports, __webpack_require__2) {
|
|
7550
7560
|
var Options = __webpack_require__2(20).Options;
|
|
7551
7561
|
var Output = __webpack_require__2(2).Output;
|
|
7552
7562
|
var Tokenizer = __webpack_require__2(21).Tokenizer;
|
|
@@ -8177,10 +8187,10 @@ var legacy_beautify_html;
|
|
|
8177
8187
|
return result;
|
|
8178
8188
|
};
|
|
8179
8189
|
module.exports.Beautifier = Beautifier;
|
|
8180
|
-
},
|
|
8190
|
+
}),
|
|
8181
8191
|
/* 20 */
|
|
8182
8192
|
/***/
|
|
8183
|
-
function(module, __unused_webpack_exports, __webpack_require__2) {
|
|
8193
|
+
(function(module, __unused_webpack_exports, __webpack_require__2) {
|
|
8184
8194
|
var BaseOptions = __webpack_require__2(6).Options;
|
|
8185
8195
|
function Options(options) {
|
|
8186
8196
|
BaseOptions.call(this, options, "html");
|
|
@@ -8300,10 +8310,10 @@ var legacy_beautify_html;
|
|
|
8300
8310
|
}
|
|
8301
8311
|
Options.prototype = new BaseOptions();
|
|
8302
8312
|
module.exports.Options = Options;
|
|
8303
|
-
},
|
|
8313
|
+
}),
|
|
8304
8314
|
/* 21 */
|
|
8305
8315
|
/***/
|
|
8306
|
-
function(module, __unused_webpack_exports, __webpack_require__2) {
|
|
8316
|
+
(function(module, __unused_webpack_exports, __webpack_require__2) {
|
|
8307
8317
|
var BaseTokenizer = __webpack_require__2(9).Tokenizer;
|
|
8308
8318
|
var BASETOKEN = __webpack_require__2(9).TOKEN;
|
|
8309
8319
|
var Directives = __webpack_require__2(13).Directives;
|
|
@@ -8580,7 +8590,7 @@ var legacy_beautify_html;
|
|
|
8580
8590
|
};
|
|
8581
8591
|
module.exports.Tokenizer = Tokenizer;
|
|
8582
8592
|
module.exports.TOKEN = TOKEN;
|
|
8583
|
-
}
|
|
8593
|
+
})
|
|
8584
8594
|
/******/
|
|
8585
8595
|
];
|
|
8586
8596
|
var __webpack_module_cache__ = {};
|
|
@@ -8747,21 +8757,17 @@ var LIB;
|
|
|
8747
8757
|
(() => {
|
|
8748
8758
|
var t2 = { 470: (t3) => {
|
|
8749
8759
|
function e2(t4) {
|
|
8750
|
-
if ("string" != typeof t4)
|
|
8751
|
-
throw new TypeError("Path must be a string. Received " + JSON.stringify(t4));
|
|
8760
|
+
if ("string" != typeof t4) throw new TypeError("Path must be a string. Received " + JSON.stringify(t4));
|
|
8752
8761
|
}
|
|
8753
8762
|
function r2(t4, e3) {
|
|
8754
8763
|
for (var r3, n3 = "", i = 0, o = -1, s = 0, h = 0; h <= t4.length; ++h) {
|
|
8755
|
-
if (h < t4.length)
|
|
8756
|
-
r3 = t4.charCodeAt(h);
|
|
8764
|
+
if (h < t4.length) r3 = t4.charCodeAt(h);
|
|
8757
8765
|
else {
|
|
8758
|
-
if (47 === r3)
|
|
8759
|
-
break;
|
|
8766
|
+
if (47 === r3) break;
|
|
8760
8767
|
r3 = 47;
|
|
8761
8768
|
}
|
|
8762
8769
|
if (47 === r3) {
|
|
8763
|
-
if (o === h - 1 || 1 === s)
|
|
8764
|
-
;
|
|
8770
|
+
if (o === h - 1 || 1 === s) ;
|
|
8765
8771
|
else if (o !== h - 1 && 2 === s) {
|
|
8766
8772
|
if (n3.length < 2 || 2 !== i || 46 !== n3.charCodeAt(n3.length - 1) || 46 !== n3.charCodeAt(n3.length - 2)) {
|
|
8767
8773
|
if (n3.length > 2) {
|
|
@@ -8776,11 +8782,9 @@ var LIB;
|
|
|
8776
8782
|
}
|
|
8777
8783
|
}
|
|
8778
8784
|
e3 && (n3.length > 0 ? n3 += "/.." : n3 = "..", i = 2);
|
|
8779
|
-
} else
|
|
8780
|
-
n3.length > 0 ? n3 += "/" + t4.slice(o + 1, h) : n3 = t4.slice(o + 1, h), i = h - o - 1;
|
|
8785
|
+
} else n3.length > 0 ? n3 += "/" + t4.slice(o + 1, h) : n3 = t4.slice(o + 1, h), i = h - o - 1;
|
|
8781
8786
|
o = h, s = 0;
|
|
8782
|
-
} else
|
|
8783
|
-
46 === r3 && -1 !== s ? ++s : s = -1;
|
|
8787
|
+
} else 46 === r3 && -1 !== s ? ++s : s = -1;
|
|
8784
8788
|
}
|
|
8785
8789
|
return n3;
|
|
8786
8790
|
}
|
|
@@ -8791,71 +8795,55 @@ var LIB;
|
|
|
8791
8795
|
}
|
|
8792
8796
|
return n3 = r2(n3, !i), i ? n3.length > 0 ? "/" + n3 : "/" : n3.length > 0 ? n3 : ".";
|
|
8793
8797
|
}, normalize: function(t4) {
|
|
8794
|
-
if (e2(t4), 0 === t4.length)
|
|
8795
|
-
return ".";
|
|
8798
|
+
if (e2(t4), 0 === t4.length) return ".";
|
|
8796
8799
|
var n3 = 47 === t4.charCodeAt(0), i = 47 === t4.charCodeAt(t4.length - 1);
|
|
8797
8800
|
return 0 !== (t4 = r2(t4, !n3)).length || n3 || (t4 = "."), t4.length > 0 && i && (t4 += "/"), n3 ? "/" + t4 : t4;
|
|
8798
8801
|
}, isAbsolute: function(t4) {
|
|
8799
8802
|
return e2(t4), t4.length > 0 && 47 === t4.charCodeAt(0);
|
|
8800
8803
|
}, join: function() {
|
|
8801
|
-
if (0 === arguments.length)
|
|
8802
|
-
return ".";
|
|
8804
|
+
if (0 === arguments.length) return ".";
|
|
8803
8805
|
for (var t4, r3 = 0; r3 < arguments.length; ++r3) {
|
|
8804
8806
|
var i = arguments[r3];
|
|
8805
8807
|
e2(i), i.length > 0 && (void 0 === t4 ? t4 = i : t4 += "/" + i);
|
|
8806
8808
|
}
|
|
8807
8809
|
return void 0 === t4 ? "." : n2.normalize(t4);
|
|
8808
8810
|
}, relative: function(t4, r3) {
|
|
8809
|
-
if (e2(t4), e2(r3), t4 === r3)
|
|
8810
|
-
|
|
8811
|
-
|
|
8812
|
-
|
|
8813
|
-
for (var i = 1; i < t4.length && 47 === t4.charCodeAt(i); ++i)
|
|
8814
|
-
;
|
|
8815
|
-
for (var o = t4.length, s = o - i, h = 1; h < r3.length && 47 === r3.charCodeAt(h); ++h)
|
|
8816
|
-
;
|
|
8811
|
+
if (e2(t4), e2(r3), t4 === r3) return "";
|
|
8812
|
+
if ((t4 = n2.resolve(t4)) === (r3 = n2.resolve(r3))) return "";
|
|
8813
|
+
for (var i = 1; i < t4.length && 47 === t4.charCodeAt(i); ++i) ;
|
|
8814
|
+
for (var o = t4.length, s = o - i, h = 1; h < r3.length && 47 === r3.charCodeAt(h); ++h) ;
|
|
8817
8815
|
for (var a = r3.length - h, c = s < a ? s : a, f = -1, u = 0; u <= c; ++u) {
|
|
8818
8816
|
if (u === c) {
|
|
8819
8817
|
if (a > c) {
|
|
8820
|
-
if (47 === r3.charCodeAt(h + u))
|
|
8821
|
-
|
|
8822
|
-
|
|
8823
|
-
return r3.slice(h + u);
|
|
8824
|
-
} else
|
|
8825
|
-
s > c && (47 === t4.charCodeAt(i + u) ? f = u : 0 === u && (f = 0));
|
|
8818
|
+
if (47 === r3.charCodeAt(h + u)) return r3.slice(h + u + 1);
|
|
8819
|
+
if (0 === u) return r3.slice(h + u);
|
|
8820
|
+
} else s > c && (47 === t4.charCodeAt(i + u) ? f = u : 0 === u && (f = 0));
|
|
8826
8821
|
break;
|
|
8827
8822
|
}
|
|
8828
8823
|
var l = t4.charCodeAt(i + u);
|
|
8829
|
-
if (l !== r3.charCodeAt(h + u))
|
|
8830
|
-
break;
|
|
8824
|
+
if (l !== r3.charCodeAt(h + u)) break;
|
|
8831
8825
|
47 === l && (f = u);
|
|
8832
8826
|
}
|
|
8833
8827
|
var g = "";
|
|
8834
|
-
for (u = i + f + 1; u <= o; ++u)
|
|
8835
|
-
u !== o && 47 !== t4.charCodeAt(u) || (0 === g.length ? g += ".." : g += "/..");
|
|
8828
|
+
for (u = i + f + 1; u <= o; ++u) u !== o && 47 !== t4.charCodeAt(u) || (0 === g.length ? g += ".." : g += "/..");
|
|
8836
8829
|
return g.length > 0 ? g + r3.slice(h + f) : (h += f, 47 === r3.charCodeAt(h) && ++h, r3.slice(h));
|
|
8837
8830
|
}, _makeLong: function(t4) {
|
|
8838
8831
|
return t4;
|
|
8839
8832
|
}, dirname: function(t4) {
|
|
8840
|
-
if (e2(t4), 0 === t4.length)
|
|
8841
|
-
|
|
8842
|
-
|
|
8843
|
-
|
|
8844
|
-
|
|
8845
|
-
|
|
8846
|
-
|
|
8847
|
-
}
|
|
8848
|
-
} else
|
|
8849
|
-
o = false;
|
|
8833
|
+
if (e2(t4), 0 === t4.length) return ".";
|
|
8834
|
+
for (var r3 = t4.charCodeAt(0), n3 = 47 === r3, i = -1, o = true, s = t4.length - 1; s >= 1; --s) if (47 === (r3 = t4.charCodeAt(s))) {
|
|
8835
|
+
if (!o) {
|
|
8836
|
+
i = s;
|
|
8837
|
+
break;
|
|
8838
|
+
}
|
|
8839
|
+
} else o = false;
|
|
8850
8840
|
return -1 === i ? n3 ? "/" : "." : n3 && 1 === i ? "//" : t4.slice(0, i);
|
|
8851
8841
|
}, basename: function(t4, r3) {
|
|
8852
|
-
if (void 0 !== r3 && "string" != typeof r3)
|
|
8853
|
-
throw new TypeError('"ext" argument must be a string');
|
|
8842
|
+
if (void 0 !== r3 && "string" != typeof r3) throw new TypeError('"ext" argument must be a string');
|
|
8854
8843
|
e2(t4);
|
|
8855
8844
|
var n3, i = 0, o = -1, s = true;
|
|
8856
8845
|
if (void 0 !== r3 && r3.length > 0 && r3.length <= t4.length) {
|
|
8857
|
-
if (r3.length === t4.length && r3 === t4)
|
|
8858
|
-
return "";
|
|
8846
|
+
if (r3.length === t4.length && r3 === t4) return "";
|
|
8859
8847
|
var h = r3.length - 1, a = -1;
|
|
8860
8848
|
for (n3 = t4.length - 1; n3 >= 0; --n3) {
|
|
8861
8849
|
var c = t4.charCodeAt(n3);
|
|
@@ -8864,26 +8852,22 @@ var LIB;
|
|
|
8864
8852
|
i = n3 + 1;
|
|
8865
8853
|
break;
|
|
8866
8854
|
}
|
|
8867
|
-
} else
|
|
8868
|
-
-1 === a && (s = false, a = n3 + 1), h >= 0 && (c === r3.charCodeAt(h) ? -1 == --h && (o = n3) : (h = -1, o = a));
|
|
8855
|
+
} else -1 === a && (s = false, a = n3 + 1), h >= 0 && (c === r3.charCodeAt(h) ? -1 == --h && (o = n3) : (h = -1, o = a));
|
|
8869
8856
|
}
|
|
8870
8857
|
return i === o ? o = a : -1 === o && (o = t4.length), t4.slice(i, o);
|
|
8871
8858
|
}
|
|
8872
|
-
for (n3 = t4.length - 1; n3 >= 0; --n3)
|
|
8873
|
-
if (
|
|
8874
|
-
|
|
8875
|
-
|
|
8876
|
-
|
|
8877
|
-
|
|
8878
|
-
} else
|
|
8879
|
-
-1 === o && (s = false, o = n3 + 1);
|
|
8859
|
+
for (n3 = t4.length - 1; n3 >= 0; --n3) if (47 === t4.charCodeAt(n3)) {
|
|
8860
|
+
if (!s) {
|
|
8861
|
+
i = n3 + 1;
|
|
8862
|
+
break;
|
|
8863
|
+
}
|
|
8864
|
+
} else -1 === o && (s = false, o = n3 + 1);
|
|
8880
8865
|
return -1 === o ? "" : t4.slice(i, o);
|
|
8881
8866
|
}, extname: function(t4) {
|
|
8882
8867
|
e2(t4);
|
|
8883
8868
|
for (var r3 = -1, n3 = 0, i = -1, o = true, s = 0, h = t4.length - 1; h >= 0; --h) {
|
|
8884
8869
|
var a = t4.charCodeAt(h);
|
|
8885
|
-
if (47 !== a)
|
|
8886
|
-
-1 === i && (o = false, i = h + 1), 46 === a ? -1 === r3 ? r3 = h : 1 !== s && (s = 1) : -1 !== r3 && (s = -1);
|
|
8870
|
+
if (47 !== a) -1 === i && (o = false, i = h + 1), 46 === a ? -1 === r3 ? r3 = h : 1 !== s && (s = 1) : -1 !== r3 && (s = -1);
|
|
8887
8871
|
else if (!o) {
|
|
8888
8872
|
n3 = h + 1;
|
|
8889
8873
|
break;
|
|
@@ -8891,64 +8875,53 @@ var LIB;
|
|
|
8891
8875
|
}
|
|
8892
8876
|
return -1 === r3 || -1 === i || 0 === s || 1 === s && r3 === i - 1 && r3 === n3 + 1 ? "" : t4.slice(r3, i);
|
|
8893
8877
|
}, format: function(t4) {
|
|
8894
|
-
if (null === t4 || "object" != typeof t4)
|
|
8895
|
-
|
|
8896
|
-
return function(t5, e3) {
|
|
8878
|
+
if (null === t4 || "object" != typeof t4) throw new TypeError('The "pathObject" argument must be of type Object. Received type ' + typeof t4);
|
|
8879
|
+
return (function(t5, e3) {
|
|
8897
8880
|
var r3 = e3.dir || e3.root, n3 = e3.base || (e3.name || "") + (e3.ext || "");
|
|
8898
8881
|
return r3 ? r3 === e3.root ? r3 + n3 : r3 + "/" + n3 : n3;
|
|
8899
|
-
}(0, t4);
|
|
8882
|
+
})(0, t4);
|
|
8900
8883
|
}, parse: function(t4) {
|
|
8901
8884
|
e2(t4);
|
|
8902
8885
|
var r3 = { root: "", dir: "", base: "", ext: "", name: "" };
|
|
8903
|
-
if (0 === t4.length)
|
|
8904
|
-
return r3;
|
|
8886
|
+
if (0 === t4.length) return r3;
|
|
8905
8887
|
var n3, i = t4.charCodeAt(0), o = 47 === i;
|
|
8906
8888
|
o ? (r3.root = "/", n3 = 1) : n3 = 0;
|
|
8907
|
-
for (var s = -1, h = 0, a = -1, c = true, f = t4.length - 1, u = 0; f >= n3; --f)
|
|
8908
|
-
|
|
8909
|
-
|
|
8910
|
-
|
|
8911
|
-
|
|
8912
|
-
break;
|
|
8913
|
-
}
|
|
8889
|
+
for (var s = -1, h = 0, a = -1, c = true, f = t4.length - 1, u = 0; f >= n3; --f) if (47 !== (i = t4.charCodeAt(f))) -1 === a && (c = false, a = f + 1), 46 === i ? -1 === s ? s = f : 1 !== u && (u = 1) : -1 !== s && (u = -1);
|
|
8890
|
+
else if (!c) {
|
|
8891
|
+
h = f + 1;
|
|
8892
|
+
break;
|
|
8893
|
+
}
|
|
8914
8894
|
return -1 === s || -1 === a || 0 === u || 1 === u && s === a - 1 && s === h + 1 ? -1 !== a && (r3.base = r3.name = 0 === h && o ? t4.slice(1, a) : t4.slice(h, a)) : (0 === h && o ? (r3.name = t4.slice(1, s), r3.base = t4.slice(1, a)) : (r3.name = t4.slice(h, s), r3.base = t4.slice(h, a)), r3.ext = t4.slice(s, a)), h > 0 ? r3.dir = t4.slice(0, h - 1) : o && (r3.dir = "/"), r3;
|
|
8915
8895
|
}, sep: "/", delimiter: ":", win32: null, posix: null };
|
|
8916
8896
|
n2.posix = n2, t3.exports = n2;
|
|
8917
8897
|
} }, e = {};
|
|
8918
8898
|
function r(n2) {
|
|
8919
8899
|
var i = e[n2];
|
|
8920
|
-
if (void 0 !== i)
|
|
8921
|
-
return i.exports;
|
|
8900
|
+
if (void 0 !== i) return i.exports;
|
|
8922
8901
|
var o = e[n2] = { exports: {} };
|
|
8923
8902
|
return t2[n2](o, o.exports, r), o.exports;
|
|
8924
8903
|
}
|
|
8925
8904
|
r.d = (t3, e2) => {
|
|
8926
|
-
for (var n2 in e2)
|
|
8927
|
-
r.o(e2, n2) && !r.o(t3, n2) && Object.defineProperty(t3, n2, { enumerable: true, get: e2[n2] });
|
|
8905
|
+
for (var n2 in e2) r.o(e2, n2) && !r.o(t3, n2) && Object.defineProperty(t3, n2, { enumerable: true, get: e2[n2] });
|
|
8928
8906
|
}, r.o = (t3, e2) => Object.prototype.hasOwnProperty.call(t3, e2), r.r = (t3) => {
|
|
8929
8907
|
"undefined" != typeof Symbol && Symbol.toStringTag && Object.defineProperty(t3, Symbol.toStringTag, { value: "Module" }), Object.defineProperty(t3, "__esModule", { value: true });
|
|
8930
8908
|
};
|
|
8931
8909
|
var n = {};
|
|
8932
8910
|
(() => {
|
|
8933
8911
|
let t3;
|
|
8934
|
-
if (r.r(n), r.d(n, { URI: () => f, Utils: () => P }), "object" == typeof process)
|
|
8935
|
-
t3 = "win32" === process.platform;
|
|
8912
|
+
if (r.r(n), r.d(n, { URI: () => f, Utils: () => P }), "object" == typeof process) t3 = "win32" === process.platform;
|
|
8936
8913
|
else if ("object" == typeof navigator) {
|
|
8937
8914
|
let e3 = navigator.userAgent;
|
|
8938
8915
|
t3 = e3.indexOf("Windows") >= 0;
|
|
8939
8916
|
}
|
|
8940
8917
|
const e2 = /^\w[\w\d+.-]*$/, i = /^\//, o = /^\/\//;
|
|
8941
8918
|
function s(t4, r2) {
|
|
8942
|
-
if (!t4.scheme && r2)
|
|
8943
|
-
|
|
8944
|
-
if (t4.scheme && !e2.test(t4.scheme))
|
|
8945
|
-
throw new Error("[UriError]: Scheme contains illegal characters.");
|
|
8919
|
+
if (!t4.scheme && r2) throw new Error(`[UriError]: Scheme is missing: {scheme: "", authority: "${t4.authority}", path: "${t4.path}", query: "${t4.query}", fragment: "${t4.fragment}"}`);
|
|
8920
|
+
if (t4.scheme && !e2.test(t4.scheme)) throw new Error("[UriError]: Scheme contains illegal characters.");
|
|
8946
8921
|
if (t4.path) {
|
|
8947
8922
|
if (t4.authority) {
|
|
8948
|
-
if (!i.test(t4.path))
|
|
8949
|
-
|
|
8950
|
-
} else if (o.test(t4.path))
|
|
8951
|
-
throw new Error('[UriError]: If a URI does not contain an authority component, then the path cannot begin with two slash characters ("//")');
|
|
8923
|
+
if (!i.test(t4.path)) throw new Error('[UriError]: If a URI contains an authority component, then the path component must either be empty or begin with a slash ("/") character');
|
|
8924
|
+
} else if (o.test(t4.path)) throw new Error('[UriError]: If a URI does not contain an authority component, then the path cannot begin with two slash characters ("//")');
|
|
8952
8925
|
}
|
|
8953
8926
|
}
|
|
8954
8927
|
const h = "", a = "/", c = /^(([^:/?#]+?):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?/;
|
|
@@ -8962,9 +8935,9 @@ var LIB;
|
|
|
8962
8935
|
query;
|
|
8963
8936
|
fragment;
|
|
8964
8937
|
constructor(t4, e3, r2, n2, i2, o2 = false) {
|
|
8965
|
-
"object" == typeof t4 ? (this.scheme = t4.scheme || h, this.authority = t4.authority || h, this.path = t4.path || h, this.query = t4.query || h, this.fragment = t4.fragment || h) : (this.scheme = /* @__PURE__ */ function(t5, e4) {
|
|
8938
|
+
"object" == typeof t4 ? (this.scheme = t4.scheme || h, this.authority = t4.authority || h, this.path = t4.path || h, this.query = t4.query || h, this.fragment = t4.fragment || h) : (this.scheme = /* @__PURE__ */ (function(t5, e4) {
|
|
8966
8939
|
return t5 || e4 ? t5 : "file";
|
|
8967
|
-
}(t4, o2), this.authority = e3 || h, this.path = function(t5, e4) {
|
|
8940
|
+
})(t4, o2), this.authority = e3 || h, this.path = (function(t5, e4) {
|
|
8968
8941
|
switch (t5) {
|
|
8969
8942
|
case "https":
|
|
8970
8943
|
case "http":
|
|
@@ -8972,14 +8945,13 @@ var LIB;
|
|
|
8972
8945
|
e4 ? e4[0] !== a && (e4 = a + e4) : e4 = a;
|
|
8973
8946
|
}
|
|
8974
8947
|
return e4;
|
|
8975
|
-
}(this.scheme, r2 || h), this.query = n2 || h, this.fragment = i2 || h, s(this, o2));
|
|
8948
|
+
})(this.scheme, r2 || h), this.query = n2 || h, this.fragment = i2 || h, s(this, o2));
|
|
8976
8949
|
}
|
|
8977
8950
|
get fsPath() {
|
|
8978
8951
|
return m(this);
|
|
8979
8952
|
}
|
|
8980
8953
|
with(t4) {
|
|
8981
|
-
if (!t4)
|
|
8982
|
-
return this;
|
|
8954
|
+
if (!t4) return this;
|
|
8983
8955
|
let { scheme: e3, authority: r2, path: n2, query: i2, fragment: o2 } = t4;
|
|
8984
8956
|
return void 0 === e3 ? e3 = this.scheme : null === e3 && (e3 = h), void 0 === r2 ? r2 = this.authority : null === r2 && (r2 = h), void 0 === n2 ? n2 = this.path : null === n2 && (n2 = h), void 0 === i2 ? i2 = this.query : null === i2 && (i2 = h), void 0 === o2 ? o2 = this.fragment : null === o2 && (o2 = h), e3 === this.scheme && r2 === this.authority && n2 === this.path && i2 === this.query && o2 === this.fragment ? this : new l(e3, r2, n2, i2, o2);
|
|
8985
8957
|
}
|
|
@@ -9007,8 +8979,7 @@ var LIB;
|
|
|
9007
8979
|
}
|
|
9008
8980
|
static revive(t4) {
|
|
9009
8981
|
if (t4) {
|
|
9010
|
-
if (t4 instanceof f)
|
|
9011
|
-
return t4;
|
|
8982
|
+
if (t4 instanceof f) return t4;
|
|
9012
8983
|
{
|
|
9013
8984
|
const e3 = new l(t4);
|
|
9014
8985
|
return e3._formatted = t4.external, e3._fsPath = t4._sep === u ? t4.fsPath : null, e3;
|
|
@@ -9037,8 +9008,7 @@ var LIB;
|
|
|
9037
9008
|
let n2, i2 = -1;
|
|
9038
9009
|
for (let o2 = 0; o2 < t4.length; o2++) {
|
|
9039
9010
|
const s2 = t4.charCodeAt(o2);
|
|
9040
|
-
if (s2 >= 97 && s2 <= 122 || s2 >= 65 && s2 <= 90 || s2 >= 48 && s2 <= 57 || 45 === s2 || 46 === s2 || 95 === s2 || 126 === s2 || e3 && 47 === s2 || r2 && 91 === s2 || r2 && 93 === s2 || r2 && 58 === s2)
|
|
9041
|
-
-1 !== i2 && (n2 += encodeURIComponent(t4.substring(i2, o2)), i2 = -1), void 0 !== n2 && (n2 += t4.charAt(o2));
|
|
9011
|
+
if (s2 >= 97 && s2 <= 122 || s2 >= 65 && s2 <= 90 || s2 >= 48 && s2 <= 57 || 45 === s2 || 46 === s2 || 95 === s2 || 126 === s2 || e3 && 47 === s2 || r2 && 91 === s2 || r2 && 93 === s2 || r2 && 58 === s2) -1 !== i2 && (n2 += encodeURIComponent(t4.substring(i2, o2)), i2 = -1), void 0 !== n2 && (n2 += t4.charAt(o2));
|
|
9042
9012
|
else {
|
|
9043
9013
|
void 0 === n2 && (n2 = t4.substr(0, o2));
|
|
9044
9014
|
const e4 = g[s2];
|
|
@@ -9091,12 +9061,12 @@ var LIB;
|
|
|
9091
9061
|
}
|
|
9092
9062
|
const b = /(%[0-9A-Za-z][0-9A-Za-z])+/g;
|
|
9093
9063
|
function C(t4) {
|
|
9094
|
-
return t4.match(b) ? t4.replace(b, (t5) => v(t5)) : t4;
|
|
9064
|
+
return t4.match(b) ? t4.replace(b, ((t5) => v(t5))) : t4;
|
|
9095
9065
|
}
|
|
9096
9066
|
var A = r(470);
|
|
9097
9067
|
const w = A.posix || A, x = "/";
|
|
9098
9068
|
var P;
|
|
9099
|
-
!function(t4) {
|
|
9069
|
+
!(function(t4) {
|
|
9100
9070
|
t4.joinPath = function(t5, ...e3) {
|
|
9101
9071
|
return t5.with({ path: w.join(t5.path, ...e3) });
|
|
9102
9072
|
}, t4.resolvePath = function(t5, ...e3) {
|
|
@@ -9105,8 +9075,7 @@ var LIB;
|
|
|
9105
9075
|
let i2 = w.resolve(r2, ...e3);
|
|
9106
9076
|
return n2 && i2[0] === x && !t5.authority && (i2 = i2.substring(1)), t5.with({ path: i2 });
|
|
9107
9077
|
}, t4.dirname = function(t5) {
|
|
9108
|
-
if (0 === t5.path.length || t5.path === x)
|
|
9109
|
-
return t5;
|
|
9078
|
+
if (0 === t5.path.length || t5.path === x) return t5;
|
|
9110
9079
|
let e3 = w.dirname(t5.path);
|
|
9111
9080
|
return 1 === e3.length && 46 === e3.charCodeAt(0) && (e3 = ""), t5.with({ path: e3 });
|
|
9112
9081
|
}, t4.basename = function(t5) {
|
|
@@ -9114,7 +9083,7 @@ var LIB;
|
|
|
9114
9083
|
}, t4.extname = function(t5) {
|
|
9115
9084
|
return w.extname(t5.path);
|
|
9116
9085
|
};
|
|
9117
|
-
}(P || (P = {}));
|
|
9086
|
+
})(P || (P = {}));
|
|
9118
9087
|
})(), LIB = n;
|
|
9119
9088
|
})();
|
|
9120
9089
|
var { URI: URI2, Utils } = LIB;
|
|
@@ -9544,6 +9513,7 @@ var HTMLFolding = class {
|
|
|
9544
9513
|
if (!lastTagName || !this.dataManager.isVoidElement(lastTagName, voidElements)) {
|
|
9545
9514
|
break;
|
|
9546
9515
|
}
|
|
9516
|
+
// fallthrough
|
|
9547
9517
|
case TokenType.EndTagClose:
|
|
9548
9518
|
case TokenType.StartTagSelfClose: {
|
|
9549
9519
|
let i = stack.length - 1;
|
|
@@ -16185,7 +16155,7 @@ var HTMLWorker = class {
|
|
|
16185
16155
|
|
|
16186
16156
|
// src/language/html/html.worker.ts
|
|
16187
16157
|
self.onmessage = () => {
|
|
16188
|
-
|
|
16158
|
+
initialize((ctx, createData) => {
|
|
16189
16159
|
return new HTMLWorker(ctx, createData);
|
|
16190
16160
|
});
|
|
16191
16161
|
};
|