@pierre/diffs 1.2.5 → 1.3.0-beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/CodeView.d.ts +0 -1
- package/dist/components/CodeView.d.ts.map +1 -1
- package/dist/components/CodeView.js +0 -23
- package/dist/components/CodeView.js.map +1 -1
- package/dist/components/File.d.ts +7 -2
- package/dist/components/File.d.ts.map +1 -1
- package/dist/components/File.js +36 -2
- package/dist/components/File.js.map +1 -1
- package/dist/components/FileDiff.d.ts +8 -2
- package/dist/components/FileDiff.d.ts.map +1 -1
- package/dist/components/FileDiff.js +73 -1
- package/dist/components/FileDiff.js.map +1 -1
- package/dist/components/UnresolvedFile.js +2 -2
- package/dist/components/VirtualizedFile.d.ts +2 -1
- package/dist/components/VirtualizedFile.d.ts.map +1 -1
- package/dist/components/VirtualizedFile.js +48 -48
- package/dist/components/VirtualizedFile.js.map +1 -1
- package/dist/components/VirtualizedFileDiff.js +1 -6
- package/dist/components/VirtualizedFileDiff.js.map +1 -1
- package/dist/components/Virtualizer.d.ts +1 -1
- package/dist/components/Virtualizer.d.ts.map +1 -1
- package/dist/components/Virtualizer.js.map +1 -1
- package/dist/editor/command.d.ts +6 -0
- package/dist/editor/command.d.ts.map +1 -0
- package/dist/editor/command.js +31 -0
- package/dist/editor/command.js.map +1 -0
- package/dist/editor/css.d.ts +6 -0
- package/dist/editor/css.d.ts.map +1 -0
- package/dist/editor/css.js +218 -0
- package/dist/editor/css.js.map +1 -0
- package/dist/editor/editStack.d.ts +66 -0
- package/dist/editor/editStack.d.ts.map +1 -0
- package/dist/editor/editStack.js +218 -0
- package/dist/editor/editStack.js.map +1 -0
- package/dist/editor/editor.d.ts +22 -0
- package/dist/editor/editor.d.ts.map +1 -0
- package/dist/editor/editor.js +1323 -0
- package/dist/editor/editor.js.map +1 -0
- package/dist/editor/index.d.ts +3 -0
- package/dist/editor/index.js +4 -0
- package/dist/editor/lineAnnotations.d.ts +8 -0
- package/dist/editor/lineAnnotations.d.ts.map +1 -0
- package/dist/editor/lineAnnotations.js +32 -0
- package/dist/editor/lineAnnotations.js.map +1 -0
- package/dist/editor/pieceTable.d.ts +33 -0
- package/dist/editor/pieceTable.d.ts.map +1 -0
- package/dist/editor/pieceTable.js +590 -0
- package/dist/editor/pieceTable.js.map +1 -0
- package/dist/editor/platform.d.ts +12 -0
- package/dist/editor/platform.d.ts.map +1 -0
- package/dist/editor/platform.js +44 -0
- package/dist/editor/platform.js.map +1 -0
- package/dist/editor/quickEdit.d.ts +29 -0
- package/dist/editor/quickEdit.d.ts.map +1 -0
- package/dist/editor/quickEdit.js +81 -0
- package/dist/editor/quickEdit.js.map +1 -0
- package/dist/editor/searchPanel.d.ts +30 -0
- package/dist/editor/searchPanel.d.ts.map +1 -0
- package/dist/editor/searchPanel.js +219 -0
- package/dist/editor/searchPanel.js.map +1 -0
- package/dist/editor/selection.d.ts +126 -0
- package/dist/editor/selection.d.ts.map +1 -0
- package/dist/editor/selection.js +900 -0
- package/dist/editor/selection.js.map +1 -0
- package/dist/editor/textDocument.d.ts +139 -0
- package/dist/editor/textDocument.d.ts.map +1 -0
- package/dist/editor/textDocument.js +202 -0
- package/dist/editor/textDocument.js.map +1 -0
- package/dist/editor/textMeasure.d.ts +32 -0
- package/dist/editor/textMeasure.d.ts.map +1 -0
- package/dist/editor/textMeasure.js +108 -0
- package/dist/editor/textMeasure.js.map +1 -0
- package/dist/editor/tokenzier.d.ts +37 -0
- package/dist/editor/tokenzier.d.ts.map +1 -0
- package/dist/editor/tokenzier.js +348 -0
- package/dist/editor/tokenzier.js.map +1 -0
- package/dist/editor/utils.d.ts +16 -0
- package/dist/editor/utils.d.ts.map +1 -0
- package/dist/editor/utils.js +37 -0
- package/dist/editor/utils.js.map +1 -0
- package/dist/index.d.ts +2 -2
- package/dist/index.js +2 -2
- package/dist/react/EditorContext.d.ts +16 -0
- package/dist/react/EditorContext.d.ts.map +1 -0
- package/dist/react/EditorContext.js +26 -0
- package/dist/react/EditorContext.js.map +1 -0
- package/dist/react/File.d.ts +2 -1
- package/dist/react/File.d.ts.map +1 -1
- package/dist/react/File.js +3 -2
- package/dist/react/File.js.map +1 -1
- package/dist/react/FileDiff.d.ts +3 -1
- package/dist/react/FileDiff.d.ts.map +1 -1
- package/dist/react/FileDiff.js +3 -2
- package/dist/react/FileDiff.js.map +1 -1
- package/dist/react/MultiFileDiff.d.ts +3 -1
- package/dist/react/MultiFileDiff.d.ts.map +1 -1
- package/dist/react/MultiFileDiff.js +3 -2
- package/dist/react/MultiFileDiff.js.map +1 -1
- package/dist/react/PatchDiff.d.ts +3 -1
- package/dist/react/PatchDiff.d.ts.map +1 -1
- package/dist/react/PatchDiff.js +3 -2
- package/dist/react/PatchDiff.js.map +1 -1
- package/dist/react/index.d.ts +3 -2
- package/dist/react/index.js +2 -1
- package/dist/react/jsx.d.ts +0 -1
- package/dist/react/jsx.d.ts.map +1 -1
- package/dist/react/types.d.ts +1 -0
- package/dist/react/types.d.ts.map +1 -1
- package/dist/react/types.js +0 -1
- package/dist/react/utils/useFileDiffInstance.d.ts +3 -1
- package/dist/react/utils/useFileDiffInstance.d.ts.map +1 -1
- package/dist/react/utils/useFileDiffInstance.js +31 -5
- package/dist/react/utils/useFileDiffInstance.js.map +1 -1
- package/dist/react/utils/useFileInstance.d.ts +4 -1
- package/dist/react/utils/useFileInstance.d.ts.map +1 -1
- package/dist/react/utils/useFileInstance.js +30 -5
- package/dist/react/utils/useFileInstance.js.map +1 -1
- package/dist/renderers/DiffHunksRenderer.d.ts +2 -2
- package/dist/renderers/DiffHunksRenderer.d.ts.map +1 -1
- package/dist/renderers/DiffHunksRenderer.js.map +1 -1
- package/dist/renderers/FileRenderer.d.ts +5 -1
- package/dist/renderers/FileRenderer.d.ts.map +1 -1
- package/dist/renderers/FileRenderer.js +108 -41
- package/dist/renderers/FileRenderer.js.map +1 -1
- package/dist/ssr/index.d.ts +2 -2
- package/dist/style.js +1 -1
- package/dist/style.js.map +1 -1
- package/dist/types.d.ts +45 -1
- package/dist/types.d.ts.map +1 -1
- package/dist/utils/cleanLastNewline.js +6 -1
- package/dist/utils/cleanLastNewline.js.map +1 -1
- package/dist/utils/computeFileOffsets.d.ts +13 -0
- package/dist/utils/computeFileOffsets.d.ts.map +1 -0
- package/dist/utils/computeFileOffsets.js +33 -0
- package/dist/utils/computeFileOffsets.js.map +1 -0
- package/dist/utils/createTransformerWithState.js +9 -0
- package/dist/utils/createTransformerWithState.js.map +1 -1
- package/dist/utils/renderDiffWithHighlighter.js +1 -1
- package/dist/utils/renderFileWithHighlighter.js +5 -14
- package/dist/utils/renderFileWithHighlighter.js.map +1 -1
- package/dist/worker/WorkerPoolManager.js +1 -1
- package/dist/worker/{wasm-BaDzIkIn.js → wasm-D4DU5jgR.js} +2 -2
- package/dist/worker/wasm-D4DU5jgR.js.map +1 -0
- package/dist/worker/worker-portable.js +138 -153
- package/dist/worker/worker-portable.js.map +1 -1
- package/dist/worker/worker.js +41 -64
- package/dist/worker/worker.js.map +1 -1
- package/package.json +28 -20
- package/dist/utils/iterateOverFile.d.ts +0 -50
- package/dist/utils/iterateOverFile.d.ts.map +0 -1
- package/dist/utils/iterateOverFile.js +0 -49
- package/dist/utils/iterateOverFile.js.map +0 -1
- package/dist/worker/wasm-BaDzIkIn.js.map +0 -1
|
@@ -10,7 +10,7 @@ var __export = (all$1) => {
|
|
|
10
10
|
};
|
|
11
11
|
|
|
12
12
|
//#endregion
|
|
13
|
-
//#region ../../node_modules
|
|
13
|
+
//#region ../../node_modules/shiki/dist/chunk-CtajNgzt.mjs
|
|
14
14
|
var __defProp$1 = Object.defineProperty;
|
|
15
15
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
16
16
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
@@ -45,7 +45,7 @@ var __copyProps = (to, from, except, desc) => {
|
|
|
45
45
|
var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
|
|
46
46
|
|
|
47
47
|
//#endregion
|
|
48
|
-
//#region ../../node_modules
|
|
48
|
+
//#region ../../node_modules/@shikijs/types/dist/index.mjs
|
|
49
49
|
var ShikiError$1 = class extends Error {
|
|
50
50
|
constructor(message) {
|
|
51
51
|
super(message);
|
|
@@ -54,7 +54,7 @@ var ShikiError$1 = class extends Error {
|
|
|
54
54
|
};
|
|
55
55
|
|
|
56
56
|
//#endregion
|
|
57
|
-
//#region ../../node_modules
|
|
57
|
+
//#region ../../node_modules/@shikijs/vscode-textmate/dist/index.js
|
|
58
58
|
function clone(something) {
|
|
59
59
|
return doClone(something);
|
|
60
60
|
}
|
|
@@ -2911,7 +2911,7 @@ var Registry = class {
|
|
|
2911
2911
|
var INITIAL = StateStackImpl.NULL;
|
|
2912
2912
|
|
|
2913
2913
|
//#endregion
|
|
2914
|
-
//#region ../../node_modules
|
|
2914
|
+
//#region ../../node_modules/@shikijs/primitive/dist/index.mjs
|
|
2915
2915
|
function resolveColorReplacements(theme, options) {
|
|
2916
2916
|
const replacements = typeof theme === "string" ? {} : { ...theme.colorReplacements };
|
|
2917
2917
|
const themeName = typeof theme === "string" ? theme : theme.name;
|
|
@@ -3710,7 +3710,7 @@ function alignThemesTokenization(...themes) {
|
|
|
3710
3710
|
}
|
|
3711
3711
|
|
|
3712
3712
|
//#endregion
|
|
3713
|
-
//#region ../../node_modules
|
|
3713
|
+
//#region ../../node_modules/html-void-elements/index.js
|
|
3714
3714
|
/**
|
|
3715
3715
|
* List of HTML void tag names.
|
|
3716
3716
|
*
|
|
@@ -3740,7 +3740,7 @@ const htmlVoidElements = [
|
|
|
3740
3740
|
];
|
|
3741
3741
|
|
|
3742
3742
|
//#endregion
|
|
3743
|
-
//#region ../../node_modules
|
|
3743
|
+
//#region ../../node_modules/property-information/lib/util/schema.js
|
|
3744
3744
|
/**
|
|
3745
3745
|
* @import {Schema as SchemaType, Space} from 'property-information'
|
|
3746
3746
|
*/
|
|
@@ -3769,7 +3769,7 @@ Schema.prototype.property = {};
|
|
|
3769
3769
|
Schema.prototype.space = undefined;
|
|
3770
3770
|
|
|
3771
3771
|
//#endregion
|
|
3772
|
-
//#region ../../node_modules
|
|
3772
|
+
//#region ../../node_modules/property-information/lib/util/merge.js
|
|
3773
3773
|
/**
|
|
3774
3774
|
* @param {ReadonlyArray<Schema>} definitions
|
|
3775
3775
|
* Definitions.
|
|
@@ -3791,7 +3791,7 @@ function merge(definitions, space) {
|
|
|
3791
3791
|
}
|
|
3792
3792
|
|
|
3793
3793
|
//#endregion
|
|
3794
|
-
//#region ../../node_modules
|
|
3794
|
+
//#region ../../node_modules/property-information/lib/normalize.js
|
|
3795
3795
|
/**
|
|
3796
3796
|
* Get the cleaned case insensitive form of an attribute or property.
|
|
3797
3797
|
*
|
|
@@ -3806,7 +3806,7 @@ function normalize(value) {
|
|
|
3806
3806
|
}
|
|
3807
3807
|
|
|
3808
3808
|
//#endregion
|
|
3809
|
-
//#region ../../node_modules
|
|
3809
|
+
//#region ../../node_modules/property-information/lib/util/info.js
|
|
3810
3810
|
/**
|
|
3811
3811
|
* @import {Info as InfoType} from 'property-information'
|
|
3812
3812
|
*/
|
|
@@ -3839,7 +3839,7 @@ Info.prototype.spaceSeparated = false;
|
|
|
3839
3839
|
Info.prototype.space = undefined;
|
|
3840
3840
|
|
|
3841
3841
|
//#endregion
|
|
3842
|
-
//#region ../../node_modules
|
|
3842
|
+
//#region ../../node_modules/property-information/lib/util/types.js
|
|
3843
3843
|
var types_exports = /* @__PURE__ */ __export({
|
|
3844
3844
|
boolean: () => boolean,
|
|
3845
3845
|
booleanish: () => booleanish,
|
|
@@ -3862,7 +3862,7 @@ function increment() {
|
|
|
3862
3862
|
}
|
|
3863
3863
|
|
|
3864
3864
|
//#endregion
|
|
3865
|
-
//#region ../../node_modules
|
|
3865
|
+
//#region ../../node_modules/property-information/lib/util/defined-info.js
|
|
3866
3866
|
const checks = Object.keys(types_exports);
|
|
3867
3867
|
var DefinedInfo = class extends Info {
|
|
3868
3868
|
/**
|
|
@@ -3910,7 +3910,7 @@ function mark(values, key$1, value) {
|
|
|
3910
3910
|
}
|
|
3911
3911
|
|
|
3912
3912
|
//#endregion
|
|
3913
|
-
//#region ../../node_modules
|
|
3913
|
+
//#region ../../node_modules/property-information/lib/util/create.js
|
|
3914
3914
|
/**
|
|
3915
3915
|
* @param {Definition} definition
|
|
3916
3916
|
* Definition.
|
|
@@ -3935,7 +3935,7 @@ function create(definition) {
|
|
|
3935
3935
|
}
|
|
3936
3936
|
|
|
3937
3937
|
//#endregion
|
|
3938
|
-
//#region ../../node_modules
|
|
3938
|
+
//#region ../../node_modules/property-information/lib/aria.js
|
|
3939
3939
|
const aria = create({
|
|
3940
3940
|
properties: {
|
|
3941
3941
|
ariaActiveDescendant: null,
|
|
@@ -3994,7 +3994,7 @@ const aria = create({
|
|
|
3994
3994
|
});
|
|
3995
3995
|
|
|
3996
3996
|
//#endregion
|
|
3997
|
-
//#region ../../node_modules
|
|
3997
|
+
//#region ../../node_modules/property-information/lib/util/case-sensitive-transform.js
|
|
3998
3998
|
/**
|
|
3999
3999
|
* @param {Record<string, string>} attributes
|
|
4000
4000
|
* Attributes.
|
|
@@ -4008,7 +4008,7 @@ function caseSensitiveTransform(attributes, attribute) {
|
|
|
4008
4008
|
}
|
|
4009
4009
|
|
|
4010
4010
|
//#endregion
|
|
4011
|
-
//#region ../../node_modules
|
|
4011
|
+
//#region ../../node_modules/property-information/lib/util/case-insensitive-transform.js
|
|
4012
4012
|
/**
|
|
4013
4013
|
* @param {Record<string, string>} attributes
|
|
4014
4014
|
* Attributes.
|
|
@@ -4022,7 +4022,7 @@ function caseInsensitiveTransform(attributes, property) {
|
|
|
4022
4022
|
}
|
|
4023
4023
|
|
|
4024
4024
|
//#endregion
|
|
4025
|
-
//#region ../../node_modules
|
|
4025
|
+
//#region ../../node_modules/property-information/lib/html.js
|
|
4026
4026
|
const html$3 = create({
|
|
4027
4027
|
attributes: {
|
|
4028
4028
|
acceptcharset: "accept-charset",
|
|
@@ -4335,7 +4335,7 @@ const html$3 = create({
|
|
|
4335
4335
|
});
|
|
4336
4336
|
|
|
4337
4337
|
//#endregion
|
|
4338
|
-
//#region ../../node_modules
|
|
4338
|
+
//#region ../../node_modules/property-information/lib/svg.js
|
|
4339
4339
|
const svg$1 = create({
|
|
4340
4340
|
attributes: {
|
|
4341
4341
|
accentHeight: "accent-height",
|
|
@@ -4894,7 +4894,7 @@ const svg$1 = create({
|
|
|
4894
4894
|
});
|
|
4895
4895
|
|
|
4896
4896
|
//#endregion
|
|
4897
|
-
//#region ../../node_modules
|
|
4897
|
+
//#region ../../node_modules/property-information/lib/xlink.js
|
|
4898
4898
|
const xlink = create({
|
|
4899
4899
|
properties: {
|
|
4900
4900
|
xLinkActuate: null,
|
|
@@ -4912,7 +4912,7 @@ const xlink = create({
|
|
|
4912
4912
|
});
|
|
4913
4913
|
|
|
4914
4914
|
//#endregion
|
|
4915
|
-
//#region ../../node_modules
|
|
4915
|
+
//#region ../../node_modules/property-information/lib/xmlns.js
|
|
4916
4916
|
const xmlns = create({
|
|
4917
4917
|
attributes: { xmlnsxlink: "xmlns:xlink" },
|
|
4918
4918
|
properties: {
|
|
@@ -4924,7 +4924,7 @@ const xmlns = create({
|
|
|
4924
4924
|
});
|
|
4925
4925
|
|
|
4926
4926
|
//#endregion
|
|
4927
|
-
//#region ../../node_modules
|
|
4927
|
+
//#region ../../node_modules/property-information/lib/xml.js
|
|
4928
4928
|
const xml = create({
|
|
4929
4929
|
properties: {
|
|
4930
4930
|
xmlBase: null,
|
|
@@ -4938,7 +4938,7 @@ const xml = create({
|
|
|
4938
4938
|
});
|
|
4939
4939
|
|
|
4940
4940
|
//#endregion
|
|
4941
|
-
//#region ../../node_modules
|
|
4941
|
+
//#region ../../node_modules/property-information/lib/hast-to-react.js
|
|
4942
4942
|
/**
|
|
4943
4943
|
* Special cases for React (`Record<string, string>`).
|
|
4944
4944
|
*
|
|
@@ -4971,7 +4971,7 @@ const hastToReact = {
|
|
|
4971
4971
|
};
|
|
4972
4972
|
|
|
4973
4973
|
//#endregion
|
|
4974
|
-
//#region ../../node_modules
|
|
4974
|
+
//#region ../../node_modules/property-information/lib/find.js
|
|
4975
4975
|
const cap = /[A-Z]/g;
|
|
4976
4976
|
const dash = /-[a-z]/g;
|
|
4977
4977
|
const valid = /^data[-\w.:]+$/i;
|
|
@@ -5050,7 +5050,7 @@ function camelcase($0) {
|
|
|
5050
5050
|
}
|
|
5051
5051
|
|
|
5052
5052
|
//#endregion
|
|
5053
|
-
//#region ../../node_modules
|
|
5053
|
+
//#region ../../node_modules/property-information/index.js
|
|
5054
5054
|
const html = merge([
|
|
5055
5055
|
aria,
|
|
5056
5056
|
html$3,
|
|
@@ -5067,7 +5067,7 @@ const svg = merge([
|
|
|
5067
5067
|
], "svg");
|
|
5068
5068
|
|
|
5069
5069
|
//#endregion
|
|
5070
|
-
//#region ../../node_modules
|
|
5070
|
+
//#region ../../node_modules/zwitch/index.js
|
|
5071
5071
|
/**
|
|
5072
5072
|
* @callback Handler
|
|
5073
5073
|
* Handle a value, with a certain ID field set to a certain value.
|
|
@@ -5175,7 +5175,7 @@ function zwitch(key$1, options) {
|
|
|
5175
5175
|
}
|
|
5176
5176
|
|
|
5177
5177
|
//#endregion
|
|
5178
|
-
//#region ../../node_modules
|
|
5178
|
+
//#region ../../node_modules/stringify-entities/lib/core.js
|
|
5179
5179
|
/**
|
|
5180
5180
|
* @typedef CoreOptions
|
|
5181
5181
|
* @property {ReadonlyArray<string>} [subset=[]]
|
|
@@ -5257,7 +5257,7 @@ function charactersToExpression(subset) {
|
|
|
5257
5257
|
}
|
|
5258
5258
|
|
|
5259
5259
|
//#endregion
|
|
5260
|
-
//#region ../../node_modules
|
|
5260
|
+
//#region ../../node_modules/stringify-entities/lib/util/to-hexadecimal.js
|
|
5261
5261
|
const hexadecimalRegex = /[\dA-Fa-f]/;
|
|
5262
5262
|
/**
|
|
5263
5263
|
* Configurable ways to encode characters as hexadecimal references.
|
|
@@ -5273,7 +5273,7 @@ function toHexadecimal(code, next, omit) {
|
|
|
5273
5273
|
}
|
|
5274
5274
|
|
|
5275
5275
|
//#endregion
|
|
5276
|
-
//#region ../../node_modules
|
|
5276
|
+
//#region ../../node_modules/stringify-entities/lib/util/to-decimal.js
|
|
5277
5277
|
const decimalRegex = /\d/;
|
|
5278
5278
|
/**
|
|
5279
5279
|
* Configurable ways to encode characters as decimal references.
|
|
@@ -5289,7 +5289,7 @@ function toDecimal(code, next, omit) {
|
|
|
5289
5289
|
}
|
|
5290
5290
|
|
|
5291
5291
|
//#endregion
|
|
5292
|
-
//#region ../../node_modules
|
|
5292
|
+
//#region ../../node_modules/character-entities-legacy/index.js
|
|
5293
5293
|
/**
|
|
5294
5294
|
* List of legacy HTML named character references that don’t need a trailing semicolon.
|
|
5295
5295
|
*
|
|
@@ -5405,7 +5405,7 @@ const characterEntitiesLegacy = [
|
|
|
5405
5405
|
];
|
|
5406
5406
|
|
|
5407
5407
|
//#endregion
|
|
5408
|
-
//#region ../../node_modules
|
|
5408
|
+
//#region ../../node_modules/character-entities-html4/index.js
|
|
5409
5409
|
/**
|
|
5410
5410
|
* Map of named character references from HTML 4.
|
|
5411
5411
|
*
|
|
@@ -5667,7 +5667,7 @@ const characterEntitiesHtml4 = {
|
|
|
5667
5667
|
};
|
|
5668
5668
|
|
|
5669
5669
|
//#endregion
|
|
5670
|
-
//#region ../../node_modules
|
|
5670
|
+
//#region ../../node_modules/stringify-entities/lib/constant/dangerous.js
|
|
5671
5671
|
/**
|
|
5672
5672
|
* List of legacy (that don’t need a trailing `;`) named references which could,
|
|
5673
5673
|
* depending on what follows them, turn into a different meaning
|
|
@@ -5686,7 +5686,7 @@ const dangerous = [
|
|
|
5686
5686
|
];
|
|
5687
5687
|
|
|
5688
5688
|
//#endregion
|
|
5689
|
-
//#region ../../node_modules
|
|
5689
|
+
//#region ../../node_modules/stringify-entities/lib/util/to-named.js
|
|
5690
5690
|
const own$1 = {}.hasOwnProperty;
|
|
5691
5691
|
/**
|
|
5692
5692
|
* `characterEntitiesHtml4` but inverted.
|
|
@@ -5725,7 +5725,7 @@ function toNamed(code, next, omit, attribute) {
|
|
|
5725
5725
|
}
|
|
5726
5726
|
|
|
5727
5727
|
//#endregion
|
|
5728
|
-
//#region ../../node_modules
|
|
5728
|
+
//#region ../../node_modules/stringify-entities/lib/util/format-smart.js
|
|
5729
5729
|
/**
|
|
5730
5730
|
* Configurable ways to encode a character yielding pretty or small results.
|
|
5731
5731
|
*
|
|
@@ -5751,7 +5751,7 @@ function formatSmart(code, next, options) {
|
|
|
5751
5751
|
}
|
|
5752
5752
|
|
|
5753
5753
|
//#endregion
|
|
5754
|
-
//#region ../../node_modules
|
|
5754
|
+
//#region ../../node_modules/stringify-entities/lib/util/format-basic.js
|
|
5755
5755
|
/**
|
|
5756
5756
|
* The smallest way to encode a character.
|
|
5757
5757
|
*
|
|
@@ -5763,7 +5763,7 @@ function formatBasic(code) {
|
|
|
5763
5763
|
}
|
|
5764
5764
|
|
|
5765
5765
|
//#endregion
|
|
5766
|
-
//#region ../../node_modules
|
|
5766
|
+
//#region ../../node_modules/stringify-entities/lib/index.js
|
|
5767
5767
|
/**
|
|
5768
5768
|
* Encode special characters in `value`.
|
|
5769
5769
|
*
|
|
@@ -5792,7 +5792,7 @@ function stringifyEntitiesLight(value, options) {
|
|
|
5792
5792
|
}
|
|
5793
5793
|
|
|
5794
5794
|
//#endregion
|
|
5795
|
-
//#region ../../node_modules
|
|
5795
|
+
//#region ../../node_modules/hast-util-to-html/lib/handle/comment.js
|
|
5796
5796
|
const htmlCommentRegex = /^>|^->|<!--|-->|--!>|<!-$/g;
|
|
5797
5797
|
const bogusCommentEntitySubset = [">"];
|
|
5798
5798
|
const commentEntitySubset = ["<", ">"];
|
|
@@ -5821,7 +5821,7 @@ function comment(node, _1, _2, state) {
|
|
|
5821
5821
|
}
|
|
5822
5822
|
|
|
5823
5823
|
//#endregion
|
|
5824
|
-
//#region ../../node_modules
|
|
5824
|
+
//#region ../../node_modules/hast-util-to-html/lib/handle/doctype.js
|
|
5825
5825
|
/**
|
|
5826
5826
|
* @import {Doctype, Parents} from 'hast'
|
|
5827
5827
|
* @import {State} from '../index.js'
|
|
@@ -5845,7 +5845,7 @@ function doctype(_1, _2, _3, state) {
|
|
|
5845
5845
|
}
|
|
5846
5846
|
|
|
5847
5847
|
//#endregion
|
|
5848
|
-
//#region ../../node_modules
|
|
5848
|
+
//#region ../../node_modules/ccount/index.js
|
|
5849
5849
|
/**
|
|
5850
5850
|
* Count how often a character (or substring) is used in a string.
|
|
5851
5851
|
*
|
|
@@ -5871,7 +5871,7 @@ function ccount(value, character) {
|
|
|
5871
5871
|
}
|
|
5872
5872
|
|
|
5873
5873
|
//#endregion
|
|
5874
|
-
//#region ../../node_modules
|
|
5874
|
+
//#region ../../node_modules/comma-separated-tokens/index.js
|
|
5875
5875
|
/**
|
|
5876
5876
|
* @typedef Options
|
|
5877
5877
|
* Configuration for `stringify`.
|
|
@@ -5931,7 +5931,7 @@ function stringify$1(values, options) {
|
|
|
5931
5931
|
}
|
|
5932
5932
|
|
|
5933
5933
|
//#endregion
|
|
5934
|
-
//#region ../../node_modules
|
|
5934
|
+
//#region ../../node_modules/space-separated-tokens/index.js
|
|
5935
5935
|
/**
|
|
5936
5936
|
* Parse space-separated tokens to an array of strings.
|
|
5937
5937
|
*
|
|
@@ -5957,7 +5957,7 @@ function stringify$2(values) {
|
|
|
5957
5957
|
}
|
|
5958
5958
|
|
|
5959
5959
|
//#endregion
|
|
5960
|
-
//#region ../../node_modules
|
|
5960
|
+
//#region ../../node_modules/hast-util-whitespace/lib/index.js
|
|
5961
5961
|
/**
|
|
5962
5962
|
* @typedef {import('hast').Nodes} Nodes
|
|
5963
5963
|
*/
|
|
@@ -5985,7 +5985,7 @@ function empty(value) {
|
|
|
5985
5985
|
}
|
|
5986
5986
|
|
|
5987
5987
|
//#endregion
|
|
5988
|
-
//#region ../../node_modules
|
|
5988
|
+
//#region ../../node_modules/hast-util-to-html/lib/omission/util/siblings.js
|
|
5989
5989
|
const siblingAfter = siblings(1);
|
|
5990
5990
|
const siblingBefore = siblings(-1);
|
|
5991
5991
|
/** @type {Array<RootContent>} */
|
|
@@ -6026,7 +6026,7 @@ function siblings(increment$1) {
|
|
|
6026
6026
|
}
|
|
6027
6027
|
|
|
6028
6028
|
//#endregion
|
|
6029
|
-
//#region ../../node_modules
|
|
6029
|
+
//#region ../../node_modules/hast-util-to-html/lib/omission/omission.js
|
|
6030
6030
|
/**
|
|
6031
6031
|
* @import {Element, Parents} from 'hast'
|
|
6032
6032
|
*/
|
|
@@ -6066,7 +6066,7 @@ function omission(handlers) {
|
|
|
6066
6066
|
}
|
|
6067
6067
|
|
|
6068
6068
|
//#endregion
|
|
6069
|
-
//#region ../../node_modules
|
|
6069
|
+
//#region ../../node_modules/hast-util-to-html/lib/omission/closing.js
|
|
6070
6070
|
const closing = omission({
|
|
6071
6071
|
body: body$1,
|
|
6072
6072
|
caption: headOrColgroupOrCaption,
|
|
@@ -6329,7 +6329,7 @@ function cells(_$2, index, parent) {
|
|
|
6329
6329
|
}
|
|
6330
6330
|
|
|
6331
6331
|
//#endregion
|
|
6332
|
-
//#region ../../node_modules
|
|
6332
|
+
//#region ../../node_modules/hast-util-to-html/lib/omission/opening.js
|
|
6333
6333
|
const opening = omission({
|
|
6334
6334
|
body,
|
|
6335
6335
|
colgroup,
|
|
@@ -6426,7 +6426,7 @@ function tbody(node, index, parent) {
|
|
|
6426
6426
|
}
|
|
6427
6427
|
|
|
6428
6428
|
//#endregion
|
|
6429
|
-
//#region ../../node_modules
|
|
6429
|
+
//#region ../../node_modules/hast-util-to-html/lib/handle/element.js
|
|
6430
6430
|
/**
|
|
6431
6431
|
* Maps of subsets.
|
|
6432
6432
|
*
|
|
@@ -6559,7 +6559,7 @@ function serializeAttribute(state, key$1, value) {
|
|
|
6559
6559
|
}
|
|
6560
6560
|
|
|
6561
6561
|
//#endregion
|
|
6562
|
-
//#region ../../node_modules
|
|
6562
|
+
//#region ../../node_modules/hast-util-to-html/lib/handle/text.js
|
|
6563
6563
|
const textEntitySubset = ["<", "&"];
|
|
6564
6564
|
/**
|
|
6565
6565
|
* Serialize a text node.
|
|
@@ -6580,7 +6580,7 @@ function text(node, _$2, parent, state) {
|
|
|
6580
6580
|
}
|
|
6581
6581
|
|
|
6582
6582
|
//#endregion
|
|
6583
|
-
//#region ../../node_modules
|
|
6583
|
+
//#region ../../node_modules/hast-util-to-html/lib/handle/raw.js
|
|
6584
6584
|
/**
|
|
6585
6585
|
* Serialize a raw node.
|
|
6586
6586
|
*
|
|
@@ -6600,7 +6600,7 @@ function raw(node, index, parent, state) {
|
|
|
6600
6600
|
}
|
|
6601
6601
|
|
|
6602
6602
|
//#endregion
|
|
6603
|
-
//#region ../../node_modules
|
|
6603
|
+
//#region ../../node_modules/hast-util-to-html/lib/handle/root.js
|
|
6604
6604
|
/**
|
|
6605
6605
|
* @import {Parents, Root} from 'hast'
|
|
6606
6606
|
* @import {State} from '../index.js'
|
|
@@ -6624,7 +6624,7 @@ function root(node, _1, _2, state) {
|
|
|
6624
6624
|
}
|
|
6625
6625
|
|
|
6626
6626
|
//#endregion
|
|
6627
|
-
//#region ../../node_modules
|
|
6627
|
+
//#region ../../node_modules/hast-util-to-html/lib/handle/index.js
|
|
6628
6628
|
/**
|
|
6629
6629
|
* @type {(node: Nodes, index: number | undefined, parent: Parents | undefined, state: State) => string}
|
|
6630
6630
|
*/
|
|
@@ -6665,7 +6665,7 @@ function unknown(node_) {
|
|
|
6665
6665
|
}
|
|
6666
6666
|
|
|
6667
6667
|
//#endregion
|
|
6668
|
-
//#region ../../node_modules
|
|
6668
|
+
//#region ../../node_modules/hast-util-to-html/lib/index.js
|
|
6669
6669
|
/** @type {Options} */
|
|
6670
6670
|
const emptyOptions = {};
|
|
6671
6671
|
/** @type {CharacterReferences} */
|
|
@@ -6759,7 +6759,7 @@ function all(parent) {
|
|
|
6759
6759
|
}
|
|
6760
6760
|
|
|
6761
6761
|
//#endregion
|
|
6762
|
-
//#region ../../node_modules
|
|
6762
|
+
//#region ../../node_modules/@shikijs/core/dist/index.mjs
|
|
6763
6763
|
/**
|
|
6764
6764
|
* Utility to append class to a hast node
|
|
6765
6765
|
*
|
|
@@ -8126,7 +8126,7 @@ function createCssVariablesTheme(options = {}) {
|
|
|
8126
8126
|
}
|
|
8127
8127
|
|
|
8128
8128
|
//#endregion
|
|
8129
|
-
//#region ../../node_modules
|
|
8129
|
+
//#region ../../node_modules/@shikijs/engine-javascript/dist/scanner-BFcBmQR1.mjs
|
|
8130
8130
|
const MAX = 4294967295;
|
|
8131
8131
|
var JavaScriptScanner = class {
|
|
8132
8132
|
regexps;
|
|
@@ -8201,7 +8201,7 @@ var JavaScriptScanner = class {
|
|
|
8201
8201
|
};
|
|
8202
8202
|
|
|
8203
8203
|
//#endregion
|
|
8204
|
-
//#region ../../node_modules
|
|
8204
|
+
//#region ../../node_modules/oniguruma-parser/dist/utils.js
|
|
8205
8205
|
function r$2(e) {
|
|
8206
8206
|
if ([...e].length !== 1) throw new Error(`Expected "${e}" to be a single code point`);
|
|
8207
8207
|
return e.codePointAt(0);
|
|
@@ -8231,7 +8231,7 @@ function u(e, t) {
|
|
|
8231
8231
|
}
|
|
8232
8232
|
|
|
8233
8233
|
//#endregion
|
|
8234
|
-
//#region ../../node_modules
|
|
8234
|
+
//#region ../../node_modules/oniguruma-parser/dist/tokenizer/tokenize.js
|
|
8235
8235
|
const m$1 = o$1`\[\^?`, b$1 = `c.? | C(?:-.?)?|${o$1`[pP]\{(?:\^?[-\x20_]*[A-Za-z][-\x20\w]*\})?`}|${o$1`x[89A-Fa-f]\p{AHex}(?:\\x[89A-Fa-f]\p{AHex})*`}|${o$1`u(?:\p{AHex}{4})? | x\{[^\}]*\}? | x\p{AHex}{0,2}`}|${o$1`o\{[^\}]*\}?`}|${o$1`\d{1,3}`}`, y$1 = /[?*+][?+]?|\{(?:\d+(?:,\d*)?|,\d+)\}\??/, C$1 = new RegExp(o$1`
|
|
8236
8236
|
\\ (?:
|
|
8237
8237
|
${b$1}
|
|
@@ -8728,7 +8728,7 @@ function te$1(e) {
|
|
|
8728
8728
|
}
|
|
8729
8729
|
|
|
8730
8730
|
//#endregion
|
|
8731
|
-
//#region ../../node_modules
|
|
8731
|
+
//#region ../../node_modules/oniguruma-parser/dist/parser/node-utils.js
|
|
8732
8732
|
function o(e, t) {
|
|
8733
8733
|
if (!Array.isArray(e.body)) throw new Error("Expected node with body array");
|
|
8734
8734
|
if (e.body.length !== 1) return !1;
|
|
@@ -8761,7 +8761,7 @@ const y = new Set([
|
|
|
8761
8761
|
]);
|
|
8762
8762
|
|
|
8763
8763
|
//#endregion
|
|
8764
|
-
//#region ../../node_modules
|
|
8764
|
+
//#region ../../node_modules/oniguruma-parser/dist/parser/parse.js
|
|
8765
8765
|
function J(e, r$3 = {}) {
|
|
8766
8766
|
const n = {
|
|
8767
8767
|
flags: "",
|
|
@@ -9182,7 +9182,7 @@ function D(e) {
|
|
|
9182
9182
|
}
|
|
9183
9183
|
|
|
9184
9184
|
//#endregion
|
|
9185
|
-
//#region ../../node_modules
|
|
9185
|
+
//#region ../../node_modules/oniguruma-parser/dist/traverser/traverse.js
|
|
9186
9186
|
function S(a$1, v$1, N = null) {
|
|
9187
9187
|
function u$1(e, s$1) {
|
|
9188
9188
|
for (let t = 0; t < e.length; t++) {
|
|
@@ -9270,7 +9270,7 @@ function l(a$1) {
|
|
|
9270
9270
|
}
|
|
9271
9271
|
|
|
9272
9272
|
//#endregion
|
|
9273
|
-
//#region ../../node_modules
|
|
9273
|
+
//#region ../../node_modules/regex/src/utils-internals.js
|
|
9274
9274
|
const noncapturingDelim = String.raw`\(\?(?:[:=!>A-Za-z\-]|<[=!]|\(DEFINE\))`;
|
|
9275
9275
|
/**
|
|
9276
9276
|
Updates the array in place by incrementing each value greater than or equal to the threshold.
|
|
@@ -9296,7 +9296,7 @@ function spliceStr(str, pos, oldValue, newValue) {
|
|
|
9296
9296
|
}
|
|
9297
9297
|
|
|
9298
9298
|
//#endregion
|
|
9299
|
-
//#region ../../node_modules
|
|
9299
|
+
//#region ../../node_modules/regex-utilities/src/index.js
|
|
9300
9300
|
const Context = Object.freeze({
|
|
9301
9301
|
DEFAULT: "DEFAULT",
|
|
9302
9302
|
CHAR_CLASS: "CHAR_CLASS"
|
|
@@ -9458,7 +9458,7 @@ function getGroupContents(expression, contentsStartPos) {
|
|
|
9458
9458
|
}
|
|
9459
9459
|
|
|
9460
9460
|
//#endregion
|
|
9461
|
-
//#region ../../node_modules
|
|
9461
|
+
//#region ../../node_modules/regex/src/atomic.js
|
|
9462
9462
|
/**
|
|
9463
9463
|
@import {PluginData, PluginResult} from './regex.js';
|
|
9464
9464
|
*/
|
|
@@ -9634,7 +9634,7 @@ function possessive(expression) {
|
|
|
9634
9634
|
}
|
|
9635
9635
|
|
|
9636
9636
|
//#endregion
|
|
9637
|
-
//#region ../../node_modules
|
|
9637
|
+
//#region ../../node_modules/regex/src/subclass.js
|
|
9638
9638
|
/**
|
|
9639
9639
|
Works the same as JavaScript's native `RegExp` constructor in all contexts, but automatically
|
|
9640
9640
|
adjusts subpattern matches and indices (with flag `d`) to account for captures added as part of
|
|
@@ -9724,7 +9724,7 @@ function createCaptureMap$1(hiddenCaptures) {
|
|
|
9724
9724
|
}
|
|
9725
9725
|
|
|
9726
9726
|
//#endregion
|
|
9727
|
-
//#region ../../node_modules
|
|
9727
|
+
//#region ../../node_modules/regex-recursion/src/index.js
|
|
9728
9728
|
const r$1 = String.raw;
|
|
9729
9729
|
const gRToken = r$1`\\g<(?<gRNameOrNum>[^>&]+)&R=(?<gRDepth>[^>]+)>`;
|
|
9730
9730
|
const recursiveToken = r$1`\(\?R=(?<rDepth>[^\)]+)\)|${gRToken}`;
|
|
@@ -9981,7 +9981,7 @@ function mapCaptureTransfers(captureTransfers, left, reps, numCapturesAddedInExp
|
|
|
9981
9981
|
}
|
|
9982
9982
|
|
|
9983
9983
|
//#endregion
|
|
9984
|
-
//#region ../../node_modules
|
|
9984
|
+
//#region ../../node_modules/oniguruma-to-es/dist/esm/index.js
|
|
9985
9985
|
var cp = String.fromCodePoint;
|
|
9986
9986
|
var r = String.raw;
|
|
9987
9987
|
var envFlags = {
|
|
@@ -11636,7 +11636,7 @@ function toRegExpDetails(pattern, options) {
|
|
|
11636
11636
|
}
|
|
11637
11637
|
|
|
11638
11638
|
//#endregion
|
|
11639
|
-
//#region ../../node_modules
|
|
11639
|
+
//#region ../../node_modules/@shikijs/engine-javascript/dist/engine-compile.mjs
|
|
11640
11640
|
/**
|
|
11641
11641
|
* The default regex constructor for the JavaScript RegExp engine.
|
|
11642
11642
|
*/
|
|
@@ -11680,7 +11680,7 @@ function createJavaScriptRegexEngine(options = {}) {
|
|
|
11680
11680
|
}
|
|
11681
11681
|
|
|
11682
11682
|
//#endregion
|
|
11683
|
-
//#region ../../node_modules
|
|
11683
|
+
//#region ../../node_modules/@shikijs/engine-javascript/dist/engine-raw.mjs
|
|
11684
11684
|
/**
|
|
11685
11685
|
* Raw JavaScript regex engine that only supports precompiled grammars.
|
|
11686
11686
|
*
|
|
@@ -11706,7 +11706,7 @@ function createJavaScriptRawEngine() {
|
|
|
11706
11706
|
}
|
|
11707
11707
|
|
|
11708
11708
|
//#endregion
|
|
11709
|
-
//#region ../../node_modules
|
|
11709
|
+
//#region ../../node_modules/@shikijs/engine-oniguruma/dist/index.mjs
|
|
11710
11710
|
var dist_exports = /* @__PURE__ */ __export({
|
|
11711
11711
|
createOnigurumaEngine: () => createOnigurumaEngine,
|
|
11712
11712
|
getDefaultWasmLoader: () => getDefaultWasmLoader,
|
|
@@ -12130,7 +12130,7 @@ async function createOnigurumaEngine(options) {
|
|
|
12130
12130
|
}
|
|
12131
12131
|
|
|
12132
12132
|
//#endregion
|
|
12133
|
-
//#region ../../node_modules
|
|
12133
|
+
//#region ../../node_modules/shiki/dist/engine-oniguruma.mjs
|
|
12134
12134
|
var engine_oniguruma_exports = /* @__PURE__ */ __exportAll({});
|
|
12135
12135
|
__reExport(engine_oniguruma_exports, dist_exports);
|
|
12136
12136
|
|
|
@@ -12668,7 +12668,7 @@ function getCustomExtensionsMap() {
|
|
|
12668
12668
|
}
|
|
12669
12669
|
|
|
12670
12670
|
//#endregion
|
|
12671
|
-
//#region ../../node_modules
|
|
12671
|
+
//#region ../../node_modules/diff/libesm/diff/base.js
|
|
12672
12672
|
var Diff = class {
|
|
12673
12673
|
diff(oldStr, newStr, options = {}) {
|
|
12674
12674
|
let callback;
|
|
@@ -12892,7 +12892,7 @@ var Diff = class {
|
|
|
12892
12892
|
};
|
|
12893
12893
|
|
|
12894
12894
|
//#endregion
|
|
12895
|
-
//#region ../../node_modules
|
|
12895
|
+
//#region ../../node_modules/diff/libesm/diff/character.js
|
|
12896
12896
|
var CharacterDiff = class extends Diff {};
|
|
12897
12897
|
const characterDiff = new CharacterDiff();
|
|
12898
12898
|
function diffChars(oldStr, newStr, options) {
|
|
@@ -12900,7 +12900,7 @@ function diffChars(oldStr, newStr, options) {
|
|
|
12900
12900
|
}
|
|
12901
12901
|
|
|
12902
12902
|
//#endregion
|
|
12903
|
-
//#region ../../node_modules
|
|
12903
|
+
//#region ../../node_modules/diff/libesm/util/string.js
|
|
12904
12904
|
function longestCommonPrefix(str1, str2) {
|
|
12905
12905
|
let i$2;
|
|
12906
12906
|
for (i$2 = 0; i$2 < str1.length && i$2 < str2.length; i$2++) {
|
|
@@ -13009,7 +13009,7 @@ function leadingWs(string) {
|
|
|
13009
13009
|
}
|
|
13010
13010
|
|
|
13011
13011
|
//#endregion
|
|
13012
|
-
//#region ../../node_modules
|
|
13012
|
+
//#region ../../node_modules/diff/libesm/diff/word.js
|
|
13013
13013
|
const extendedWordChars = "a-zA-Z0-9_\\u{AD}\\u{C0}-\\u{D6}\\u{D8}-\\u{F6}\\u{F8}-\\u{2C6}\\u{2C8}-\\u{2D7}\\u{2DE}-\\u{2FF}\\u{1E00}-\\u{1EFF}";
|
|
13014
13014
|
const tokenizeIncludingWhitespace = new RegExp(`[${extendedWordChars}]+|\\s+|[^${extendedWordChars}]`, "ug");
|
|
13015
13015
|
var WordDiff = class extends Diff {
|
|
@@ -13163,7 +13163,7 @@ function diffWordsWithSpace(oldStr, newStr, options) {
|
|
|
13163
13163
|
}
|
|
13164
13164
|
|
|
13165
13165
|
//#endregion
|
|
13166
|
-
//#region ../../node_modules
|
|
13166
|
+
//#region ../../node_modules/diff/libesm/util/params.js
|
|
13167
13167
|
function generateOptions(options, defaults) {
|
|
13168
13168
|
if (typeof options === "function") {
|
|
13169
13169
|
defaults.callback = options;
|
|
@@ -13179,7 +13179,7 @@ function generateOptions(options, defaults) {
|
|
|
13179
13179
|
}
|
|
13180
13180
|
|
|
13181
13181
|
//#endregion
|
|
13182
|
-
//#region ../../node_modules
|
|
13182
|
+
//#region ../../node_modules/diff/libesm/diff/line.js
|
|
13183
13183
|
var LineDiff = class extends Diff {
|
|
13184
13184
|
constructor() {
|
|
13185
13185
|
super(...arguments);
|
|
@@ -13232,7 +13232,7 @@ function tokenize(value, options) {
|
|
|
13232
13232
|
}
|
|
13233
13233
|
|
|
13234
13234
|
//#endregion
|
|
13235
|
-
//#region ../../node_modules
|
|
13235
|
+
//#region ../../node_modules/diff/libesm/diff/sentence.js
|
|
13236
13236
|
function isSentenceEndPunct(char) {
|
|
13237
13237
|
return char == "." || char == "!" || char == "?";
|
|
13238
13238
|
}
|
|
@@ -13265,7 +13265,7 @@ function diffSentences(oldStr, newStr, options) {
|
|
|
13265
13265
|
}
|
|
13266
13266
|
|
|
13267
13267
|
//#endregion
|
|
13268
|
-
//#region ../../node_modules
|
|
13268
|
+
//#region ../../node_modules/diff/libesm/diff/css.js
|
|
13269
13269
|
var CssDiff = class extends Diff {
|
|
13270
13270
|
tokenize(value) {
|
|
13271
13271
|
return value.split(/([{}:;,]|\s+)/);
|
|
@@ -13277,7 +13277,7 @@ function diffCss(oldStr, newStr, options) {
|
|
|
13277
13277
|
}
|
|
13278
13278
|
|
|
13279
13279
|
//#endregion
|
|
13280
|
-
//#region ../../node_modules
|
|
13280
|
+
//#region ../../node_modules/diff/libesm/diff/json.js
|
|
13281
13281
|
var JsonDiff = class extends Diff {
|
|
13282
13282
|
constructor() {
|
|
13283
13283
|
super(...arguments);
|
|
@@ -13351,7 +13351,7 @@ function canonicalize(obj, stack, replacementStack, replacer, key$1) {
|
|
|
13351
13351
|
}
|
|
13352
13352
|
|
|
13353
13353
|
//#endregion
|
|
13354
|
-
//#region ../../node_modules
|
|
13354
|
+
//#region ../../node_modules/diff/libesm/diff/array.js
|
|
13355
13355
|
var ArrayDiff = class extends Diff {
|
|
13356
13356
|
tokenize(value) {
|
|
13357
13357
|
return value.slice();
|
|
@@ -13369,7 +13369,7 @@ function diffArrays(oldArr, newArr, options) {
|
|
|
13369
13369
|
}
|
|
13370
13370
|
|
|
13371
13371
|
//#endregion
|
|
13372
|
-
//#region ../../node_modules
|
|
13372
|
+
//#region ../../node_modules/diff/libesm/patch/line-endings.js
|
|
13373
13373
|
function unixToWin(patch) {
|
|
13374
13374
|
if (Array.isArray(patch)) {
|
|
13375
13375
|
return patch.map((p$1) => unixToWin(p$1));
|
|
@@ -13409,7 +13409,7 @@ function isWin(patch) {
|
|
|
13409
13409
|
}
|
|
13410
13410
|
|
|
13411
13411
|
//#endregion
|
|
13412
|
-
//#region ../../node_modules
|
|
13412
|
+
//#region ../../node_modules/diff/libesm/patch/parse.js
|
|
13413
13413
|
/**
|
|
13414
13414
|
* Parses a patch into structured data, in the same structure returned by `structuredPatch`.
|
|
13415
13415
|
*
|
|
@@ -13520,7 +13520,7 @@ function parsePatch(uniDiff) {
|
|
|
13520
13520
|
}
|
|
13521
13521
|
|
|
13522
13522
|
//#endregion
|
|
13523
|
-
//#region ../../node_modules
|
|
13523
|
+
//#region ../../node_modules/diff/libesm/util/distance-iterator.js
|
|
13524
13524
|
function distance_iterator_default(start, minLine, maxLine) {
|
|
13525
13525
|
let wantForward = true, backwardExhausted = false, forwardExhausted = false, localOffset = 1;
|
|
13526
13526
|
return function iterator() {
|
|
@@ -13550,7 +13550,7 @@ function distance_iterator_default(start, minLine, maxLine) {
|
|
|
13550
13550
|
}
|
|
13551
13551
|
|
|
13552
13552
|
//#endregion
|
|
13553
|
-
//#region ../../node_modules
|
|
13553
|
+
//#region ../../node_modules/diff/libesm/patch/apply.js
|
|
13554
13554
|
/**
|
|
13555
13555
|
* attempts to apply a unified diff patch.
|
|
13556
13556
|
*
|
|
@@ -13769,7 +13769,7 @@ function applyPatches(uniDiff, options) {
|
|
|
13769
13769
|
}
|
|
13770
13770
|
|
|
13771
13771
|
//#endregion
|
|
13772
|
-
//#region ../../node_modules
|
|
13772
|
+
//#region ../../node_modules/diff/libesm/patch/reverse.js
|
|
13773
13773
|
function reversePatch(structuredPatch$1) {
|
|
13774
13774
|
if (Array.isArray(structuredPatch$1)) {
|
|
13775
13775
|
return structuredPatch$1.map((patch) => reversePatch(patch)).reverse();
|
|
@@ -13800,7 +13800,7 @@ function reversePatch(structuredPatch$1) {
|
|
|
13800
13800
|
}
|
|
13801
13801
|
|
|
13802
13802
|
//#endregion
|
|
13803
|
-
//#region ../../node_modules
|
|
13803
|
+
//#region ../../node_modules/diff/libesm/patch/create.js
|
|
13804
13804
|
const INCLUDE_HEADERS = {
|
|
13805
13805
|
includeIndex: true,
|
|
13806
13806
|
includeUnderline: true,
|
|
@@ -14004,7 +14004,7 @@ function splitLines(text$1) {
|
|
|
14004
14004
|
}
|
|
14005
14005
|
|
|
14006
14006
|
//#endregion
|
|
14007
|
-
//#region ../../node_modules
|
|
14007
|
+
//#region ../../node_modules/diff/libesm/convert/dmp.js
|
|
14008
14008
|
/**
|
|
14009
14009
|
* converts a list of change objects to the format returned by Google's [diff-match-patch](https://github.com/google/diff-match-patch) library
|
|
14010
14010
|
*/
|
|
@@ -14026,7 +14026,7 @@ function convertChangesToDMP(changes) {
|
|
|
14026
14026
|
}
|
|
14027
14027
|
|
|
14028
14028
|
//#endregion
|
|
14029
|
-
//#region ../../node_modules
|
|
14029
|
+
//#region ../../node_modules/diff/libesm/convert/xml.js
|
|
14030
14030
|
/**
|
|
14031
14031
|
* converts a list of change objects to a serialized XML format
|
|
14032
14032
|
*/
|
|
@@ -14060,11 +14060,18 @@ function escapeHTML(s$1) {
|
|
|
14060
14060
|
//#endregion
|
|
14061
14061
|
//#region src/utils/cleanLastNewline.ts
|
|
14062
14062
|
function cleanLastNewline(contents) {
|
|
14063
|
-
|
|
14063
|
+
let end = contents.length;
|
|
14064
|
+
if (contents.charCodeAt(end - 1) === 10) {
|
|
14065
|
+
end--;
|
|
14066
|
+
if (contents.charCodeAt(end - 1) === 13) {
|
|
14067
|
+
end--;
|
|
14068
|
+
}
|
|
14069
|
+
}
|
|
14070
|
+
return contents.slice(0, end);
|
|
14064
14071
|
}
|
|
14065
14072
|
|
|
14066
14073
|
//#endregion
|
|
14067
|
-
//#region ../../node_modules
|
|
14074
|
+
//#region ../../node_modules/@shikijs/transformers/dist/index.mjs
|
|
14068
14075
|
/**
|
|
14069
14076
|
* some comment formats have to be located at the end of line
|
|
14070
14077
|
* hence we can skip matching them for other tokens
|
|
@@ -15004,6 +15011,19 @@ function createTransformerWithState(useTokenTransformer = false, useCSSClasses =
|
|
|
15004
15011
|
if (useCSSClasses) {
|
|
15005
15012
|
transformers.push(tokenStyleNormalizer, toClass);
|
|
15006
15013
|
}
|
|
15014
|
+
if (useTokenTransformer) {
|
|
15015
|
+
transformers.push({ line: (node) => {
|
|
15016
|
+
if (node.type === "element" && node.children.length === 0) {
|
|
15017
|
+
node.children.push({
|
|
15018
|
+
type: "element",
|
|
15019
|
+
tagName: "br",
|
|
15020
|
+
properties: {},
|
|
15021
|
+
children: []
|
|
15022
|
+
});
|
|
15023
|
+
}
|
|
15024
|
+
return node;
|
|
15025
|
+
} });
|
|
15026
|
+
}
|
|
15007
15027
|
return {
|
|
15008
15028
|
state,
|
|
15009
15029
|
transformers,
|
|
@@ -16194,67 +16214,37 @@ function renderTwoFiles({ deletionFile, additionFile, deletionInfo, additionInfo
|
|
|
16194
16214
|
}
|
|
16195
16215
|
|
|
16196
16216
|
//#endregion
|
|
16197
|
-
//#region src/utils/
|
|
16217
|
+
//#region src/utils/computeFileOffsets.ts
|
|
16218
|
+
const LINE_FEED = 10;
|
|
16219
|
+
const CARRIAGE_RETURN = 13;
|
|
16198
16220
|
/**
|
|
16199
|
-
*
|
|
16200
|
-
*
|
|
16201
|
-
* Similar to `iterateOverDiff` but simplified for linear file content.
|
|
16202
|
-
* Supports viewport windowing for virtualization scenarios.
|
|
16203
|
-
*
|
|
16204
|
-
* @param props - Configuration for iteration
|
|
16205
|
-
* @param props.lines - Pre-split array of lines (use splitFileContents() to create from string)
|
|
16206
|
-
* @param props.startingLine - Optional starting line index (0-based, default: 0)
|
|
16207
|
-
* @param props.totalLines - Optional max lines to iterate (default: Infinity)
|
|
16208
|
-
* @param props.callback - Callback invoked for each line in the window.
|
|
16209
|
-
* Return `true` to stop iteration early.
|
|
16210
|
-
*
|
|
16211
|
-
* @example
|
|
16212
|
-
* ```typescript
|
|
16213
|
-
* const lines = splitFileContents('line1\nline2\nline3');
|
|
16214
|
-
* iterateOverFile({
|
|
16215
|
-
* lines,
|
|
16216
|
-
* startingLine: 0,
|
|
16217
|
-
* totalLines: 10,
|
|
16218
|
-
* callback: ({ lineIndex, lineNumber, content, isLastLine }) => {
|
|
16219
|
-
* console.log(`Line ${lineNumber}: ${content}`);
|
|
16220
|
-
* if (content.includes('stop')) return true; // Stop iteration
|
|
16221
|
-
* }
|
|
16222
|
-
* });
|
|
16223
|
-
* ```
|
|
16221
|
+
* Computes line start offsets for a string.
|
|
16224
16222
|
*/
|
|
16225
|
-
function
|
|
16226
|
-
const
|
|
16227
|
-
|
|
16228
|
-
const
|
|
16229
|
-
if (
|
|
16230
|
-
|
|
16231
|
-
|
|
16232
|
-
|
|
16233
|
-
|
|
16234
|
-
for (let lineIndex = startingLine; lineIndex < len; lineIndex++) {
|
|
16235
|
-
const isLastLine = lineIndex === lastLineIndex;
|
|
16236
|
-
if (callback({
|
|
16237
|
-
lineIndex,
|
|
16238
|
-
lineNumber: lineIndex + 1,
|
|
16239
|
-
content: lines[lineIndex],
|
|
16240
|
-
isLastLine
|
|
16241
|
-
}) === true || isLastLine) {
|
|
16242
|
-
break;
|
|
16223
|
+
function computeLineOffsets(contents) {
|
|
16224
|
+
const offsets = [0];
|
|
16225
|
+
for (let i$2 = 0; i$2 < contents.length; i$2++) {
|
|
16226
|
+
const char = contents.charCodeAt(i$2);
|
|
16227
|
+
if (char === LINE_FEED || char === CARRIAGE_RETURN) {
|
|
16228
|
+
if (char === CARRIAGE_RETURN && i$2 + 1 < contents.length && contents.charCodeAt(i$2 + 1) === LINE_FEED) {
|
|
16229
|
+
i$2++;
|
|
16230
|
+
}
|
|
16231
|
+
offsets.push(i$2 + 1);
|
|
16243
16232
|
}
|
|
16244
16233
|
}
|
|
16234
|
+
return offsets;
|
|
16245
16235
|
}
|
|
16246
|
-
|
|
16247
|
-
//#endregion
|
|
16248
|
-
//#region src/utils/splitFileContents.ts
|
|
16249
16236
|
/**
|
|
16250
|
-
* Splits file contents into lines
|
|
16251
|
-
*
|
|
16252
|
-
*
|
|
16253
|
-
* @param contents - The raw file contents string
|
|
16254
|
-
* @returns Array of lines with newlines preserved
|
|
16237
|
+
* Splits file contents into lines aligned with {@link computeLineOffsets}.
|
|
16238
|
+
* Unlike splitFileContents, a trailing newline produces a final empty line.
|
|
16255
16239
|
*/
|
|
16256
|
-
function
|
|
16257
|
-
|
|
16240
|
+
function linesFromFileContents(contents) {
|
|
16241
|
+
const offsets = computeLineOffsets(contents);
|
|
16242
|
+
const lines = Array.from({ length: offsets.length }, (_$2, i$2) => {
|
|
16243
|
+
const start = offsets[i$2];
|
|
16244
|
+
const end = offsets[i$2 + 1] ?? contents.length;
|
|
16245
|
+
return contents.slice(start, end);
|
|
16246
|
+
});
|
|
16247
|
+
return lines;
|
|
16258
16248
|
}
|
|
16259
16249
|
|
|
16260
16250
|
//#endregion
|
|
@@ -16301,7 +16291,7 @@ function renderFileWithHighlighter(file, highlighter$1, { theme = DEFAULT_THEMES
|
|
|
16301
16291
|
tokenizeMaxLineLength
|
|
16302
16292
|
};
|
|
16303
16293
|
})();
|
|
16304
|
-
const highlightedLines = getLineNodes(highlighter$1.codeToHast(isWindowedHighlight ? extractWindowedFileContent(lines ??
|
|
16294
|
+
const highlightedLines = getLineNodes(highlighter$1.codeToHast(isWindowedHighlight ? extractWindowedFileContent(lines ?? linesFromFileContents(file.contents), startingLine, totalLines) : file.contents, hastConfig));
|
|
16305
16295
|
const code = isWindowedHighlight ? new Array(startingLine) : highlightedLines;
|
|
16306
16296
|
if (isWindowedHighlight) {
|
|
16307
16297
|
code.push(...highlightedLines);
|
|
@@ -16313,16 +16303,11 @@ function renderFileWithHighlighter(file, highlighter$1, { theme = DEFAULT_THEMES
|
|
|
16313
16303
|
};
|
|
16314
16304
|
}
|
|
16315
16305
|
function extractWindowedFileContent(lines, startingLine, totalLines) {
|
|
16316
|
-
|
|
16317
|
-
|
|
16318
|
-
|
|
16319
|
-
|
|
16320
|
-
|
|
16321
|
-
callback({ content }) {
|
|
16322
|
-
windowContent += content;
|
|
16323
|
-
}
|
|
16324
|
-
});
|
|
16325
|
-
return windowContent;
|
|
16306
|
+
if (lines.length === 0) {
|
|
16307
|
+
return "";
|
|
16308
|
+
}
|
|
16309
|
+
const endLine = Math.min(startingLine + totalLines, lines.length);
|
|
16310
|
+
return lines.slice(startingLine, endLine).join("");
|
|
16326
16311
|
}
|
|
16327
16312
|
|
|
16328
16313
|
//#endregion
|
|
@@ -16439,7 +16424,7 @@ function getHighlighter(preferredHighlighter = "shiki-js") {
|
|
|
16439
16424
|
highlighter ??= createHighlighterCore({
|
|
16440
16425
|
themes: [],
|
|
16441
16426
|
langs: [],
|
|
16442
|
-
engine: preferredHighlighter === "shiki-wasm" ? createOnigurumaEngine(import("./wasm-
|
|
16427
|
+
engine: preferredHighlighter === "shiki-wasm" ? createOnigurumaEngine(import("./wasm-D4DU5jgR.js")) : createJavaScriptRegexEngine()
|
|
16443
16428
|
});
|
|
16444
16429
|
return highlighter;
|
|
16445
16430
|
}
|