@knpkv/rly 0.4.0 → 0.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/README.md +31 -2
- package/dist/Dialog-DSwimdwG.js +955 -0
- package/dist/Dialog-DSwimdwG.js.map +1 -0
- package/dist/{PortalProvider-BpgZwSpw.js → PortalProvider-CN_81Fy3.js} +2 -2
- package/dist/{PortalProvider-BpgZwSpw.js.map → PortalProvider-CN_81Fy3.js.map} +1 -1
- package/dist/assets/worker-D8fZ3h-U.js.map +1 -1
- package/dist/components.css +1 -1
- package/dist/diff/bounded/index.js +6 -6
- package/dist/diff/bounded/index.js.map +1 -1
- package/dist/diff/index.js +479 -467
- package/dist/diff/index.js.map +1 -1
- package/dist/dts/foundations/PortalProvider.d.ts +1 -0
- package/dist/dts/foundations/PortalProvider.d.ts.map +1 -1
- package/dist/dts/internal/modal.d.ts +4 -0
- package/dist/dts/internal/modal.d.ts.map +1 -1
- package/dist/dts/patterns/RelayDock.d.ts +75 -0
- package/dist/dts/patterns/RelayDock.d.ts.map +1 -0
- package/dist/dts/patterns/index.d.ts +2 -0
- package/dist/dts/patterns/index.d.ts.map +1 -1
- package/dist/foundations/index.js +2 -2
- package/dist/index.js +6 -6
- package/dist/patterns/index.js +2 -2
- package/dist/patterns-DB9mAzxZ.js +3138 -0
- package/dist/patterns-DB9mAzxZ.js.map +1 -0
- package/dist/primitives/index.js +3 -3
- package/dist/primitives-DYGtIZqB.js +342 -0
- package/dist/primitives-DYGtIZqB.js.map +1 -0
- package/package.json +1 -1
- package/registry/components.json +111 -0
- package/registry/search.json +36 -0
- package/dist/Dialog-1WvU8GjA.js +0 -715
- package/dist/Dialog-1WvU8GjA.js.map +0 -1
- package/dist/patterns-CxMz8DKX.js +0 -2792
- package/dist/patterns-CxMz8DKX.js.map +0 -1
- package/dist/primitives-CW89TsFB.js +0 -543
- package/dist/primitives-CW89TsFB.js.map +0 -1
package/dist/diff/index.js
CHANGED
|
@@ -31,19 +31,19 @@ var k = {
|
|
|
31
31
|
footer: "rly_DiffFinding-module__footer"
|
|
32
32
|
};
|
|
33
33
|
//#endregion
|
|
34
|
-
//#region ../../node_modules/.pnpm/@pierre+diffs@1.3.
|
|
34
|
+
//#region ../../node_modules/.pnpm/@pierre+diffs@1.3.5_patch_hash=ce17810cfea58efa02eb4e70947801afb36c9f8a08a8bb4c810297c2_569c0a392647ba6dd2f0ac61848dddca/node_modules/@pierre/diffs/dist/react/utils/useStableCallback.js
|
|
35
35
|
function j(e) {
|
|
36
36
|
let t = x(e);
|
|
37
37
|
return v(() => void (t.current = e)), p((...e) => t.current(...e), []);
|
|
38
38
|
}
|
|
39
39
|
//#endregion
|
|
40
|
-
//#region ../../node_modules/.pnpm/@pierre+diffs@1.3.
|
|
40
|
+
//#region ../../node_modules/.pnpm/@pierre+diffs@1.3.5_patch_hash=ce17810cfea58efa02eb4e70947801afb36c9f8a08a8bb4c810297c2_569c0a392647ba6dd2f0ac61848dddca/node_modules/@pierre/diffs/dist/react/EditContext.js
|
|
41
41
|
var ee = l(void 0);
|
|
42
42
|
function te() {
|
|
43
43
|
return m(ee);
|
|
44
44
|
}
|
|
45
45
|
//#endregion
|
|
46
|
-
//#region ../../node_modules/.pnpm/@pierre+diffs@1.3.
|
|
46
|
+
//#region ../../node_modules/.pnpm/@pierre+diffs@1.3.5_patch_hash=ce17810cfea58efa02eb4e70947801afb36c9f8a08a8bb4c810297c2_569c0a392647ba6dd2f0ac61848dddca/node_modules/@pierre/diffs/dist/react/constants.js
|
|
47
47
|
var ne = {
|
|
48
48
|
position: "absolute",
|
|
49
49
|
top: 0,
|
|
@@ -91,17 +91,17 @@ var ne = {
|
|
|
91
91
|
bufferAfter: 0
|
|
92
92
|
};
|
|
93
93
|
//#endregion
|
|
94
|
-
//#region ../../node_modules/.pnpm/@pierre+diffs@1.3.
|
|
94
|
+
//#region ../../node_modules/.pnpm/@pierre+diffs@1.3.5_patch_hash=ce17810cfea58efa02eb4e70947801afb36c9f8a08a8bb4c810297c2_569c0a392647ba6dd2f0ac61848dddca/node_modules/@pierre/diffs/dist/utils/getLineAnnotationName.js
|
|
95
95
|
function ke(e) {
|
|
96
96
|
return `annotation-${"side" in e ? `${e.side}-` : ""}${e.lineNumber}`;
|
|
97
97
|
}
|
|
98
98
|
//#endregion
|
|
99
|
-
//#region ../../node_modules/.pnpm/@pierre+diffs@1.3.
|
|
99
|
+
//#region ../../node_modules/.pnpm/@pierre+diffs@1.3.5_patch_hash=ce17810cfea58efa02eb4e70947801afb36c9f8a08a8bb4c810297c2_569c0a392647ba6dd2f0ac61848dddca/node_modules/@pierre/diffs/dist/utils/getMergeConflictActionSlotName.js
|
|
100
100
|
function Ae({ hunkIndex: e, lineIndex: t, conflictIndex: n }) {
|
|
101
101
|
return `merge-conflict-action-${e}-${t}-${n}`;
|
|
102
102
|
}
|
|
103
103
|
//#endregion
|
|
104
|
-
//#region ../../node_modules/.pnpm/@pierre+diffs@1.3.
|
|
104
|
+
//#region ../../node_modules/.pnpm/@pierre+diffs@1.3.5_patch_hash=ce17810cfea58efa02eb4e70947801afb36c9f8a08a8bb4c810297c2_569c0a392647ba6dd2f0ac61848dddca/node_modules/@pierre/diffs/dist/utils/getHunkSideBoundaries.js
|
|
105
105
|
function je(e, t) {
|
|
106
106
|
return e - (t === 0 ? 0 : 1);
|
|
107
107
|
}
|
|
@@ -109,7 +109,7 @@ function P(e, t) {
|
|
|
109
109
|
return je(e, t) + t;
|
|
110
110
|
}
|
|
111
111
|
//#endregion
|
|
112
|
-
//#region ../../node_modules/.pnpm/@pierre+diffs@1.3.
|
|
112
|
+
//#region ../../node_modules/.pnpm/@pierre+diffs@1.3.5_patch_hash=ce17810cfea58efa02eb4e70947801afb36c9f8a08a8bb4c810297c2_569c0a392647ba6dd2f0ac61848dddca/node_modules/@pierre/diffs/dist/utils/parseMergeConflictDiffFromFile.js
|
|
113
113
|
function Me(e, t) {
|
|
114
114
|
let n = t.hunks[e.hunkIndex];
|
|
115
115
|
if (n != null) return {
|
|
@@ -126,7 +126,7 @@ function Ne(e, t) {
|
|
|
126
126
|
return n;
|
|
127
127
|
}
|
|
128
128
|
//#endregion
|
|
129
|
-
//#region ../../node_modules/.pnpm/@pierre+diffs@1.3.
|
|
129
|
+
//#region ../../node_modules/.pnpm/@pierre+diffs@1.3.5_patch_hash=ce17810cfea58efa02eb4e70947801afb36c9f8a08a8bb4c810297c2_569c0a392647ba6dd2f0ac61848dddca/node_modules/@pierre/diffs/dist/react/utils/renderDiffChildren.js
|
|
130
130
|
function Pe({ fileDiff: e, actions: t, renderCustomHeader: n, renderHeaderPrefix: r, renderHeaderFilenameSuffix: i, renderHeaderMetadata: a, renderAnnotation: o, renderGutterUtility: s, renderMergeConflictUtility: c, lineAnnotations: l, getHoveredLine: u, getInstance: d }) {
|
|
131
131
|
let f = n?.(e), p = r?.(e), m = i?.(e), h = a?.(e);
|
|
132
132
|
return /* @__PURE__ */ E(w, { children: [
|
|
@@ -176,7 +176,7 @@ function Fe(e, t) {
|
|
|
176
176
|
});
|
|
177
177
|
}
|
|
178
178
|
//#endregion
|
|
179
|
-
//#region ../../node_modules/.pnpm/@pierre+diffs@1.3.
|
|
179
|
+
//#region ../../node_modules/.pnpm/@pierre+diffs@1.3.5_patch_hash=ce17810cfea58efa02eb4e70947801afb36c9f8a08a8bb4c810297c2_569c0a392647ba6dd2f0ac61848dddca/node_modules/@pierre/diffs/dist/react/utils/renderFileChildren.js
|
|
180
180
|
function Ie({ file: e, renderCustomHeader: t, renderHeaderPrefix: n, renderHeaderFilenameSuffix: r, renderHeaderMetadata: i, renderAnnotation: a, lineAnnotations: o, renderGutterUtility: s, getHoveredLine: c }) {
|
|
181
181
|
let l = t?.(e), u = n?.(e), d = r?.(e), f = i?.(e);
|
|
182
182
|
return /* @__PURE__ */ E(w, { children: [
|
|
@@ -209,17 +209,17 @@ function Ie({ file: e, renderCustomHeader: t, renderHeaderPrefix: n, renderHeade
|
|
|
209
209
|
] });
|
|
210
210
|
}
|
|
211
211
|
//#endregion
|
|
212
|
-
//#region ../../node_modules/.pnpm/@pierre+diffs@1.3.
|
|
212
|
+
//#region ../../node_modules/.pnpm/@pierre+diffs@1.3.5_patch_hash=ce17810cfea58efa02eb4e70947801afb36c9f8a08a8bb4c810297c2_569c0a392647ba6dd2f0ac61848dddca/node_modules/@pierre/diffs/dist/utils/areThemesEqual.js
|
|
213
213
|
function Le(e, t) {
|
|
214
214
|
return e == null || t == null || typeof e == "string" || typeof t == "string" ? e === t : e.dark === t.dark && e.light === t.light;
|
|
215
215
|
}
|
|
216
216
|
//#endregion
|
|
217
|
-
//#region ../../node_modules/.pnpm/@pierre+diffs@1.3.
|
|
217
|
+
//#region ../../node_modules/.pnpm/@pierre+diffs@1.3.5_patch_hash=ce17810cfea58efa02eb4e70947801afb36c9f8a08a8bb4c810297c2_569c0a392647ba6dd2f0ac61848dddca/node_modules/@pierre/diffs/dist/utils/areFilesEqual.js
|
|
218
218
|
function Re(e, t) {
|
|
219
219
|
return e?.cacheKey === t?.cacheKey && e?.contents === t?.contents && e?.name === t?.name && e?.lang === t?.lang;
|
|
220
220
|
}
|
|
221
221
|
//#endregion
|
|
222
|
-
//#region ../../node_modules/.pnpm/@pierre+diffs@1.3.
|
|
222
|
+
//#region ../../node_modules/.pnpm/@pierre+diffs@1.3.5_patch_hash=ce17810cfea58efa02eb4e70947801afb36c9f8a08a8bb4c810297c2_569c0a392647ba6dd2f0ac61848dddca/node_modules/@pierre/diffs/dist/highlighter/themes/constants.js
|
|
223
223
|
var ze = /* @__PURE__ */ new Set();
|
|
224
224
|
//#endregion
|
|
225
225
|
//#region ../../node_modules/.pnpm/@pierre+theming@1.0.1_@pierre+theme@2.0.0_@shikijs+themes@4.4.3_react-dom@19.2.8_react@19.2.8__react@19.2.8_shiki@4.4.3/node_modules/@pierre/theming/dist/modules/createThemeCollection.js
|
|
@@ -387,10 +387,10 @@ function Ye() {
|
|
|
387
387
|
};
|
|
388
388
|
}
|
|
389
389
|
//#endregion
|
|
390
|
-
//#region ../../node_modules/.pnpm/@pierre+diffs@1.3.
|
|
390
|
+
//#region ../../node_modules/.pnpm/@pierre+diffs@1.3.5_patch_hash=ce17810cfea58efa02eb4e70947801afb36c9f8a08a8bb4c810297c2_569c0a392647ba6dd2f0ac61848dddca/node_modules/@pierre/diffs/dist/highlighter/themes/themeResolver.js
|
|
391
391
|
var Xe = Ye();
|
|
392
392
|
//#endregion
|
|
393
|
-
//#region ../../node_modules/.pnpm/@pierre+diffs@1.3.
|
|
393
|
+
//#region ../../node_modules/.pnpm/@pierre+diffs@1.3.5_patch_hash=ce17810cfea58efa02eb4e70947801afb36c9f8a08a8bb4c810297c2_569c0a392647ba6dd2f0ac61848dddca/node_modules/@pierre/diffs/dist/highlighter/themes/attachResolvedThemes.js
|
|
394
394
|
function Ze(e, t) {
|
|
395
395
|
e = Array.isArray(e) ? e : [e];
|
|
396
396
|
for (let n of e) {
|
|
@@ -402,10 +402,10 @@ function Ze(e, t) {
|
|
|
402
402
|
}
|
|
403
403
|
}
|
|
404
404
|
//#endregion
|
|
405
|
-
//#region ../../node_modules/.pnpm/@pierre+diffs@1.3.
|
|
405
|
+
//#region ../../node_modules/.pnpm/@pierre+diffs@1.3.5_patch_hash=ce17810cfea58efa02eb4e70947801afb36c9f8a08a8bb4c810297c2_569c0a392647ba6dd2f0ac61848dddca/node_modules/@pierre/diffs/dist/highlighter/languages/constants.js
|
|
406
406
|
var Qe = /* @__PURE__ */ new Map(), $e = /* @__PURE__ */ new Map(), et = /* @__PURE__ */ new Map(), tt = /* @__PURE__ */ new Set();
|
|
407
407
|
//#endregion
|
|
408
|
-
//#region ../../node_modules/.pnpm/@pierre+diffs@1.3.
|
|
408
|
+
//#region ../../node_modules/.pnpm/@pierre+diffs@1.3.5_patch_hash=ce17810cfea58efa02eb4e70947801afb36c9f8a08a8bb4c810297c2_569c0a392647ba6dd2f0ac61848dddca/node_modules/@pierre/diffs/dist/highlighter/languages/attachResolvedLanguages.js
|
|
409
409
|
function nt(e, t) {
|
|
410
410
|
e = Array.isArray(e) ? e : [e];
|
|
411
411
|
for (let n of e) {
|
|
@@ -415,7 +415,7 @@ function nt(e, t) {
|
|
|
415
415
|
}
|
|
416
416
|
}
|
|
417
417
|
//#endregion
|
|
418
|
-
//#region ../../node_modules/.pnpm/@pierre+diffs@1.3.
|
|
418
|
+
//#region ../../node_modules/.pnpm/@pierre+diffs@1.3.5_patch_hash=ce17810cfea58efa02eb4e70947801afb36c9f8a08a8bb4c810297c2_569c0a392647ba6dd2f0ac61848dddca/node_modules/@pierre/diffs/dist/utils/isWorkerContext.js
|
|
419
419
|
function rt() {
|
|
420
420
|
return typeof WorkerGlobalScope < "u" && typeof self < "u" && self instanceof WorkerGlobalScope;
|
|
421
421
|
}
|
|
@@ -9721,7 +9721,7 @@ function Hu(e = {}) {
|
|
|
9721
9721
|
};
|
|
9722
9722
|
}
|
|
9723
9723
|
//#endregion
|
|
9724
|
-
//#region ../../node_modules/.pnpm/@pierre+diffs@1.3.
|
|
9724
|
+
//#region ../../node_modules/.pnpm/@pierre+diffs@1.3.5_patch_hash=ce17810cfea58efa02eb4e70947801afb36c9f8a08a8bb4c810297c2_569c0a392647ba6dd2f0ac61848dddca/node_modules/@pierre/diffs/dist/highlighter/languages/resolveLanguage.js
|
|
9725
9725
|
async function Uu(e) {
|
|
9726
9726
|
if (rt()) throw Error(`resolveLanguage("${e}") cannot be called from a worker context. Languages must be pre-resolved on the main thread and passed to the worker via the resolvedLanguages parameter.`);
|
|
9727
9727
|
let t = $e.get(e);
|
|
@@ -9742,7 +9742,7 @@ async function Uu(e) {
|
|
|
9742
9742
|
}
|
|
9743
9743
|
}
|
|
9744
9744
|
//#endregion
|
|
9745
|
-
//#region ../../node_modules/.pnpm/@pierre+diffs@1.3.
|
|
9745
|
+
//#region ../../node_modules/.pnpm/@pierre+diffs@1.3.5_patch_hash=ce17810cfea58efa02eb4e70947801afb36c9f8a08a8bb4c810297c2_569c0a392647ba6dd2f0ac61848dddca/node_modules/@pierre/diffs/dist/highlighter/languages/getResolvedOrResolveLanguage.js
|
|
9746
9746
|
function Wu(e) {
|
|
9747
9747
|
return Qe.get(e) ?? Uu(e);
|
|
9748
9748
|
}
|
|
@@ -9913,7 +9913,7 @@ function ld(e) {
|
|
|
9913
9913
|
}
|
|
9914
9914
|
var ud = Be({ themes: Object.freeze([...id.map((e) => ld(e)), ...ad.map((e) => ld(e))]) });
|
|
9915
9915
|
//#endregion
|
|
9916
|
-
//#region ../../node_modules/.pnpm/@pierre+diffs@1.3.
|
|
9916
|
+
//#region ../../node_modules/.pnpm/@pierre+diffs@1.3.5_patch_hash=ce17810cfea58efa02eb4e70947801afb36c9f8a08a8bb4c810297c2_569c0a392647ba6dd2f0ac61848dddca/node_modules/@pierre/diffs/dist/highlighter/themes/themeResolution.js
|
|
9917
9917
|
function dd(e) {
|
|
9918
9918
|
if (rt()) throw Error(`Theme "${e}" cannot be resolved from a worker context. Themes must be pre-resolved on the main thread and passed to the worker via the resolvedLanguages parameter.`);
|
|
9919
9919
|
if (Xe.hasRegisteredTheme(e)) return;
|
|
@@ -9928,19 +9928,19 @@ function fd(e, t) {
|
|
|
9928
9928
|
if (t.name !== e) throw Error(`resolvedTheme: themeName: ${e} does not match theme.name: ${t.name}`);
|
|
9929
9929
|
}
|
|
9930
9930
|
//#endregion
|
|
9931
|
-
//#region ../../node_modules/.pnpm/@pierre+diffs@1.3.
|
|
9931
|
+
//#region ../../node_modules/.pnpm/@pierre+diffs@1.3.5_patch_hash=ce17810cfea58efa02eb4e70947801afb36c9f8a08a8bb4c810297c2_569c0a392647ba6dd2f0ac61848dddca/node_modules/@pierre/diffs/dist/highlighter/themes/resolveTheme.js
|
|
9932
9932
|
async function pd(e) {
|
|
9933
9933
|
dd(e);
|
|
9934
9934
|
let t = await Xe.resolveTheme(e);
|
|
9935
9935
|
return fd(e, t), t;
|
|
9936
9936
|
}
|
|
9937
9937
|
//#endregion
|
|
9938
|
-
//#region ../../node_modules/.pnpm/@pierre+diffs@1.3.
|
|
9938
|
+
//#region ../../node_modules/.pnpm/@pierre+diffs@1.3.5_patch_hash=ce17810cfea58efa02eb4e70947801afb36c9f8a08a8bb4c810297c2_569c0a392647ba6dd2f0ac61848dddca/node_modules/@pierre/diffs/dist/highlighter/themes/getResolvedOrResolveTheme.js
|
|
9939
9939
|
function md(e) {
|
|
9940
9940
|
return Xe.getResolvedTheme(e) ?? pd(e);
|
|
9941
9941
|
}
|
|
9942
9942
|
//#endregion
|
|
9943
|
-
//#region ../../node_modules/.pnpm/@pierre+diffs@1.3.
|
|
9943
|
+
//#region ../../node_modules/.pnpm/@pierre+diffs@1.3.5_patch_hash=ce17810cfea58efa02eb4e70947801afb36c9f8a08a8bb4c810297c2_569c0a392647ba6dd2f0ac61848dddca/node_modules/@pierre/diffs/dist/highlighter/shared_highlighter.js
|
|
9944
9944
|
var hd;
|
|
9945
9945
|
async function gd({ themes: e, langs: t, preferredHighlighter: n = "shiki-js" }) {
|
|
9946
9946
|
hd ??= fs({
|
|
@@ -9975,23 +9975,23 @@ function vd(e = hd) {
|
|
|
9975
9975
|
}
|
|
9976
9976
|
for (let e of nd.getThemes()) Xe.registerThemeIfAbsent(e.name, e.load);
|
|
9977
9977
|
//#endregion
|
|
9978
|
-
//#region ../../node_modules/.pnpm/@pierre+diffs@1.3.
|
|
9978
|
+
//#region ../../node_modules/.pnpm/@pierre+diffs@1.3.5_patch_hash=ce17810cfea58efa02eb4e70947801afb36c9f8a08a8bb4c810297c2_569c0a392647ba6dd2f0ac61848dddca/node_modules/@pierre/diffs/dist/utils/getThemes.js
|
|
9979
9979
|
function yd(e = N) {
|
|
9980
9980
|
let t = [];
|
|
9981
9981
|
return typeof e == "string" ? t.push(e) : (t.push(e.dark), t.push(e.light)), t;
|
|
9982
9982
|
}
|
|
9983
9983
|
//#endregion
|
|
9984
|
-
//#region ../../node_modules/.pnpm/@pierre+diffs@1.3.
|
|
9984
|
+
//#region ../../node_modules/.pnpm/@pierre+diffs@1.3.5_patch_hash=ce17810cfea58efa02eb4e70947801afb36c9f8a08a8bb4c810297c2_569c0a392647ba6dd2f0ac61848dddca/node_modules/@pierre/diffs/dist/highlighter/themes/hasResolvedThemes.js
|
|
9985
9985
|
function bd(e) {
|
|
9986
9986
|
return Xe.hasResolvedThemes(e);
|
|
9987
9987
|
}
|
|
9988
9988
|
//#endregion
|
|
9989
|
-
//#region ../../node_modules/.pnpm/@pierre+diffs@1.3.
|
|
9989
|
+
//#region ../../node_modules/.pnpm/@pierre+diffs@1.3.5_patch_hash=ce17810cfea58efa02eb4e70947801afb36c9f8a08a8bb4c810297c2_569c0a392647ba6dd2f0ac61848dddca/node_modules/@pierre/diffs/dist/utils/areFileRenderOptionsEqual.js
|
|
9990
9990
|
function xd(e, t) {
|
|
9991
9991
|
return Le(e.theme, t.theme) && e.useTokenTransformer === t.useTokenTransformer && e.tokenizeMaxLineLength === t.tokenizeMaxLineLength;
|
|
9992
9992
|
}
|
|
9993
9993
|
//#endregion
|
|
9994
|
-
//#region ../../node_modules/.pnpm/@pierre+diffs@1.3.
|
|
9994
|
+
//#region ../../node_modules/.pnpm/@pierre+diffs@1.3.5_patch_hash=ce17810cfea58efa02eb4e70947801afb36c9f8a08a8bb4c810297c2_569c0a392647ba6dd2f0ac61848dddca/node_modules/@pierre/diffs/dist/utils/getFiletypeFromFileName.js
|
|
9995
9995
|
var Sd = /* @__PURE__ */ new Map(), Cd = 0, wd = {
|
|
9996
9996
|
"1c": "1c",
|
|
9997
9997
|
abap: "abap",
|
|
@@ -10357,12 +10357,12 @@ function Ed() {
|
|
|
10357
10357
|
return Object.fromEntries(Sd);
|
|
10358
10358
|
}
|
|
10359
10359
|
//#endregion
|
|
10360
|
-
//#region ../../node_modules/.pnpm/@pierre+diffs@1.3.
|
|
10360
|
+
//#region ../../node_modules/.pnpm/@pierre+diffs@1.3.5_patch_hash=ce17810cfea58efa02eb4e70947801afb36c9f8a08a8bb4c810297c2_569c0a392647ba6dd2f0ac61848dddca/node_modules/@pierre/diffs/dist/utils/isFilePlainText.js
|
|
10361
10361
|
function Dd(e) {
|
|
10362
10362
|
return (e.lang ?? Y(e.name)) === "text";
|
|
10363
10363
|
}
|
|
10364
10364
|
//#endregion
|
|
10365
|
-
//#region ../../node_modules/.pnpm/@pierre+diffs@1.3.
|
|
10365
|
+
//#region ../../node_modules/.pnpm/@pierre+diffs@1.3.5_patch_hash=ce17810cfea58efa02eb4e70947801afb36c9f8a08a8bb4c810297c2_569c0a392647ba6dd2f0ac61848dddca/node_modules/@pierre/diffs/dist/utils/computeFileOffsets.js
|
|
10366
10366
|
var Od = 10, kd = 13, Ad = 4, jd = 40;
|
|
10367
10367
|
function Md(e) {
|
|
10368
10368
|
let t = [0], n = e.indexOf("\r"), r = e.indexOf("\n"), i = 0, a = 0;
|
|
@@ -10389,7 +10389,7 @@ function Nd(e) {
|
|
|
10389
10389
|
});
|
|
10390
10390
|
}
|
|
10391
10391
|
//#endregion
|
|
10392
|
-
//#region ../../node_modules/.pnpm/@pierre+diffs@1.3.
|
|
10392
|
+
//#region ../../node_modules/.pnpm/@pierre+diffs@1.3.5_patch_hash=ce17810cfea58efa02eb4e70947801afb36c9f8a08a8bb4c810297c2_569c0a392647ba6dd2f0ac61848dddca/node_modules/@pierre/diffs/dist/utils/hast_utils.js
|
|
10393
10393
|
function Pd(e) {
|
|
10394
10394
|
return {
|
|
10395
10395
|
type: "text",
|
|
@@ -10461,7 +10461,7 @@ function zd(e, t, n) {
|
|
|
10461
10461
|
});
|
|
10462
10462
|
}
|
|
10463
10463
|
//#endregion
|
|
10464
|
-
//#region ../../node_modules/.pnpm/@pierre+diffs@1.3.
|
|
10464
|
+
//#region ../../node_modules/.pnpm/@pierre+diffs@1.3.5_patch_hash=ce17810cfea58efa02eb4e70947801afb36c9f8a08a8bb4c810297c2_569c0a392647ba6dd2f0ac61848dddca/node_modules/@pierre/diffs/dist/utils/processLine.js
|
|
10465
10465
|
function Bd(e, t, n) {
|
|
10466
10466
|
let r = typeof n.lineInfo == "function" ? n.lineInfo(t) : n.lineInfo[t - 1];
|
|
10467
10467
|
if (r == null) {
|
|
@@ -10475,7 +10475,7 @@ function Bd(e, t, n) {
|
|
|
10475
10475
|
return e.tagName = "div", e.properties["data-line"] = r.lineNumber, e.properties["data-alt-line"] = r.altLineNumber, e.properties["data-line-type"] = r.type, e.properties["data-line-index"] = r.lineIndex, e.children.length === 0 && e.children.push(Pd("\n")), e;
|
|
10476
10476
|
}
|
|
10477
10477
|
//#endregion
|
|
10478
|
-
//#region ../../node_modules/.pnpm/@pierre+diffs@1.3.
|
|
10478
|
+
//#region ../../node_modules/.pnpm/@pierre+diffs@1.3.5_patch_hash=ce17810cfea58efa02eb4e70947801afb36c9f8a08a8bb4c810297c2_569c0a392647ba6dd2f0ac61848dddca/node_modules/@pierre/diffs/dist/utils/wrapTokenFragments.js
|
|
10479
10479
|
var Vd = Symbol("no-token"), Hd = Symbol("multiple-tokens");
|
|
10480
10480
|
function Ud(e) {
|
|
10481
10481
|
let t = Wd(e);
|
|
@@ -10580,7 +10580,7 @@ function Jd(e, t = 0) {
|
|
|
10580
10580
|
return n = Math.imul(n ^ n >>> 16, 2246822507), n ^= Math.imul(r ^ r >>> 13, 3266489909), r = Math.imul(r ^ r >>> 16, 2246822507), r ^= Math.imul(n ^ n >>> 13, 3266489909), (4294967296 * (2097151 & r) + (n >>> 0)).toString(36).slice(0, 6);
|
|
10581
10581
|
}
|
|
10582
10582
|
//#endregion
|
|
10583
|
-
//#region ../../node_modules/.pnpm/@pierre+diffs@1.3.
|
|
10583
|
+
//#region ../../node_modules/.pnpm/@pierre+diffs@1.3.5_patch_hash=ce17810cfea58efa02eb4e70947801afb36c9f8a08a8bb4c810297c2_569c0a392647ba6dd2f0ac61848dddca/node_modules/@pierre/diffs/dist/utils/createTransformerWithState.js
|
|
10584
10584
|
function Yd(e = !1, t = !1) {
|
|
10585
10585
|
let n = { lineInfo: [] }, r = [{
|
|
10586
10586
|
line(e) {
|
|
@@ -10639,7 +10639,7 @@ var Xd = qd({ classPrefix: "hl-" }), Zd = {
|
|
|
10639
10639
|
}
|
|
10640
10640
|
};
|
|
10641
10641
|
//#endregion
|
|
10642
|
-
//#region ../../node_modules/.pnpm/@pierre+diffs@1.3.
|
|
10642
|
+
//#region ../../node_modules/.pnpm/@pierre+diffs@1.3.5_patch_hash=ce17810cfea58efa02eb4e70947801afb36c9f8a08a8bb4c810297c2_569c0a392647ba6dd2f0ac61848dddca/node_modules/@pierre/diffs/dist/utils/formatCSSVariablePrefix.js
|
|
10643
10643
|
function Z(e) {
|
|
10644
10644
|
return `--${e === "token" ? "diffs-token" : "diffs"}-`;
|
|
10645
10645
|
}
|
|
@@ -10718,7 +10718,7 @@ function uf(e, t) {
|
|
|
10718
10718
|
return t != null && e.toLowerCase() === t.toLowerCase();
|
|
10719
10719
|
}
|
|
10720
10720
|
//#endregion
|
|
10721
|
-
//#region ../../node_modules/.pnpm/@pierre+diffs@1.3.
|
|
10721
|
+
//#region ../../node_modules/.pnpm/@pierre+diffs@1.3.5_patch_hash=ce17810cfea58efa02eb4e70947801afb36c9f8a08a8bb4c810297c2_569c0a392647ba6dd2f0ac61848dddca/node_modules/@pierre/diffs/dist/utils/getHighlighterThemeStyles.js
|
|
10722
10722
|
function df({ theme: e = N, highlighter: t, prefix: n }) {
|
|
10723
10723
|
let r = "";
|
|
10724
10724
|
if (typeof e == "string") {
|
|
@@ -10740,7 +10740,7 @@ function ff(e, t) {
|
|
|
10740
10740
|
return a != null && (n += `${Z("global")}${t}modified-color:${a};`), n;
|
|
10741
10741
|
}
|
|
10742
10742
|
//#endregion
|
|
10743
|
-
//#region ../../node_modules/.pnpm/@pierre+diffs@1.3.
|
|
10743
|
+
//#region ../../node_modules/.pnpm/@pierre+diffs@1.3.5_patch_hash=ce17810cfea58efa02eb4e70947801afb36c9f8a08a8bb4c810297c2_569c0a392647ba6dd2f0ac61848dddca/node_modules/@pierre/diffs/dist/utils/getLineNodes.js
|
|
10744
10744
|
function pf(e) {
|
|
10745
10745
|
let t = e.children[0];
|
|
10746
10746
|
for (; t != null;) {
|
|
@@ -10750,7 +10750,7 @@ function pf(e) {
|
|
|
10750
10750
|
throw console.error(e), Error("getLineNodes: Unable to find children");
|
|
10751
10751
|
}
|
|
10752
10752
|
//#endregion
|
|
10753
|
-
//#region ../../node_modules/.pnpm/@pierre+diffs@1.3.
|
|
10753
|
+
//#region ../../node_modules/.pnpm/@pierre+diffs@1.3.5_patch_hash=ce17810cfea58efa02eb4e70947801afb36c9f8a08a8bb4c810297c2_569c0a392647ba6dd2f0ac61848dddca/node_modules/@pierre/diffs/dist/utils/renderFileWithHighlighter.js
|
|
10754
10754
|
var mf = { forcePlainText: !1 };
|
|
10755
10755
|
function hf(e, t, { theme: n = N, tokenizeMaxLineLength: r, useTokenTransformer: i }, { forcePlainText: a, startingLine: o, totalLines: s, lines: c } = mf) {
|
|
10756
10756
|
a ? (o ??= 0, s ??= Infinity) : (o = 0, s = Infinity);
|
|
@@ -10792,29 +10792,29 @@ function gf(e, t, n) {
|
|
|
10792
10792
|
return e.slice(t, r).join("");
|
|
10793
10793
|
}
|
|
10794
10794
|
//#endregion
|
|
10795
|
-
//#region ../../node_modules/.pnpm/@pierre+diffs@1.3.
|
|
10795
|
+
//#region ../../node_modules/.pnpm/@pierre+diffs@1.3.5_patch_hash=ce17810cfea58efa02eb4e70947801afb36c9f8a08a8bb4c810297c2_569c0a392647ba6dd2f0ac61848dddca/node_modules/@pierre/diffs/dist/utils/areDiffTargetsEqual.js
|
|
10796
10796
|
function _f(e, t) {
|
|
10797
10797
|
return e === t || e?.cacheKey != null && e.cacheKey === t?.cacheKey;
|
|
10798
10798
|
}
|
|
10799
10799
|
//#endregion
|
|
10800
|
-
//#region ../../node_modules/.pnpm/@pierre+diffs@1.3.
|
|
10800
|
+
//#region ../../node_modules/.pnpm/@pierre+diffs@1.3.5_patch_hash=ce17810cfea58efa02eb4e70947801afb36c9f8a08a8bb4c810297c2_569c0a392647ba6dd2f0ac61848dddca/node_modules/@pierre/diffs/dist/utils/areDiffRenderOptionsEqual.js
|
|
10801
10801
|
function vf(e, t) {
|
|
10802
10802
|
return Le(e.theme, t.theme) && e.useTokenTransformer === t.useTokenTransformer && e.tokenizeMaxLineLength === t.tokenizeMaxLineLength && e.lineDiffType === t.lineDiffType && e.maxLineDiffLength === t.maxLineDiffLength;
|
|
10803
10803
|
}
|
|
10804
10804
|
//#endregion
|
|
10805
|
-
//#region ../../node_modules/.pnpm/@pierre+diffs@1.3.
|
|
10805
|
+
//#region ../../node_modules/.pnpm/@pierre+diffs@1.3.5_patch_hash=ce17810cfea58efa02eb4e70947801afb36c9f8a08a8bb4c810297c2_569c0a392647ba6dd2f0ac61848dddca/node_modules/@pierre/diffs/dist/utils/isDiffPlainText.js
|
|
10806
10806
|
function yf(e) {
|
|
10807
10807
|
let t = e.lang ?? Y(e.name), n = e.lang ?? (e.prevName == null ? "text" : Y(e.prevName));
|
|
10808
10808
|
return t === "text" && n === "text";
|
|
10809
10809
|
}
|
|
10810
10810
|
//#endregion
|
|
10811
|
-
//#region ../../node_modules/.pnpm/@pierre+diffs@1.3.
|
|
10811
|
+
//#region ../../node_modules/.pnpm/@pierre+diffs@1.3.5_patch_hash=ce17810cfea58efa02eb4e70947801afb36c9f8a08a8bb4c810297c2_569c0a392647ba6dd2f0ac61848dddca/node_modules/@pierre/diffs/dist/utils/cleanLastNewline.js
|
|
10812
10812
|
function bf(e) {
|
|
10813
10813
|
let t = e.length;
|
|
10814
10814
|
return e.charCodeAt(t - 1) === 10 && (t--, e.charCodeAt(t - 1) === 13 && t--), e.slice(0, t);
|
|
10815
10815
|
}
|
|
10816
10816
|
//#endregion
|
|
10817
|
-
//#region ../../node_modules/.pnpm/@pierre+diffs@1.3.
|
|
10817
|
+
//#region ../../node_modules/.pnpm/@pierre+diffs@1.3.5_patch_hash=ce17810cfea58efa02eb4e70947801afb36c9f8a08a8bb4c810297c2_569c0a392647ba6dd2f0ac61848dddca/node_modules/@pierre/diffs/dist/utils/computeVirtualFileMetrics.js
|
|
10818
10818
|
function xf(e) {
|
|
10819
10819
|
return {
|
|
10820
10820
|
...Se,
|
|
@@ -10841,7 +10841,7 @@ function Tf(e) {
|
|
|
10841
10841
|
}
|
|
10842
10842
|
}
|
|
10843
10843
|
//#endregion
|
|
10844
|
-
//#region ../../node_modules/.pnpm/@pierre+diffs@1.3.
|
|
10844
|
+
//#region ../../node_modules/.pnpm/@pierre+diffs@1.3.5_patch_hash=ce17810cfea58efa02eb4e70947801afb36c9f8a08a8bb4c810297c2_569c0a392647ba6dd2f0ac61848dddca/node_modules/@pierre/diffs/dist/utils/virtualDiffLayout.js
|
|
10845
10845
|
function Ef(e) {
|
|
10846
10846
|
return [je(e.additionStart, e.additionCount) + 1, P(e.additionStart, e.additionCount) + 1];
|
|
10847
10847
|
}
|
|
@@ -11023,7 +11023,7 @@ function Rf({ type: e, metrics: t }) {
|
|
|
11023
11023
|
};
|
|
11024
11024
|
}
|
|
11025
11025
|
//#endregion
|
|
11026
|
-
//#region ../../node_modules/.pnpm/@pierre+diffs@1.3.
|
|
11026
|
+
//#region ../../node_modules/.pnpm/@pierre+diffs@1.3.5_patch_hash=ce17810cfea58efa02eb4e70947801afb36c9f8a08a8bb4c810297c2_569c0a392647ba6dd2f0ac61848dddca/node_modules/@pierre/diffs/dist/utils/iterateOverDiff.js
|
|
11027
11027
|
function zf({ diff: e, diffStyle: t, startingLine: n = 0, totalLines: r = Infinity, expandedHunks: i, collapsedContextThreshold: a = 1, callback: o }) {
|
|
11028
11028
|
let s = Bf({
|
|
11029
11029
|
diff: e,
|
|
@@ -11890,7 +11890,7 @@ function Cp(e) {
|
|
|
11890
11890
|
return t ? n.pop() : n.push(n.pop().slice(0, -1)), n;
|
|
11891
11891
|
}
|
|
11892
11892
|
//#endregion
|
|
11893
|
-
//#region ../../node_modules/.pnpm/@pierre+diffs@1.3.
|
|
11893
|
+
//#region ../../node_modules/.pnpm/@pierre+diffs@1.3.5_patch_hash=ce17810cfea58efa02eb4e70947801afb36c9f8a08a8bb4c810297c2_569c0a392647ba6dd2f0ac61848dddca/node_modules/@pierre/diffs/dist/utils/parseDiffDecorations.js
|
|
11894
11894
|
function wp({ line: e, spanStart: t, spanLength: n }) {
|
|
11895
11895
|
return {
|
|
11896
11896
|
start: {
|
|
@@ -11919,7 +11919,7 @@ function Tp({ item: e, arr: t, enableJoin: n, isNeutral: r = !1, isLastItem: i =
|
|
|
11919
11919
|
t.push([+!r, e.value]);
|
|
11920
11920
|
}
|
|
11921
11921
|
//#endregion
|
|
11922
|
-
//#region ../../node_modules/.pnpm/@pierre+diffs@1.3.
|
|
11922
|
+
//#region ../../node_modules/.pnpm/@pierre+diffs@1.3.5_patch_hash=ce17810cfea58efa02eb4e70947801afb36c9f8a08a8bb4c810297c2_569c0a392647ba6dd2f0ac61848dddca/node_modules/@pierre/diffs/dist/utils/renderDiffWithHighlighter.js
|
|
11923
11923
|
var Ep = { forcePlainText: !1 };
|
|
11924
11924
|
function Dp(e, t, n, { forcePlainText: r, startingLine: i, totalLines: a, expandedHunks: o, collapsedContextThreshold: s = 1 } = Ep) {
|
|
11925
11925
|
r ? (i ??= 0, a ??= Infinity) : (i = 0, a = Infinity);
|
|
@@ -12102,7 +12102,7 @@ function Ap({ deletionFile: e, additionFile: t, deletionInfo: n, additionInfo: r
|
|
|
12102
12102
|
};
|
|
12103
12103
|
}
|
|
12104
12104
|
//#endregion
|
|
12105
|
-
//#region ../../node_modules/.pnpm/@pierre+diffs@1.3.
|
|
12105
|
+
//#region ../../node_modules/.pnpm/@pierre+diffs@1.3.5_patch_hash=ce17810cfea58efa02eb4e70947801afb36c9f8a08a8bb4c810297c2_569c0a392647ba6dd2f0ac61848dddca/node_modules/@pierre/diffs/dist/highlighter/languages/getResolvedLanguages.js
|
|
12106
12106
|
function jp(e) {
|
|
12107
12107
|
let t = [];
|
|
12108
12108
|
for (let n of e) {
|
|
@@ -12113,13 +12113,13 @@ function jp(e) {
|
|
|
12113
12113
|
return t;
|
|
12114
12114
|
}
|
|
12115
12115
|
//#endregion
|
|
12116
|
-
//#region ../../node_modules/.pnpm/@pierre+diffs@1.3.
|
|
12116
|
+
//#region ../../node_modules/.pnpm/@pierre+diffs@1.3.5_patch_hash=ce17810cfea58efa02eb4e70947801afb36c9f8a08a8bb4c810297c2_569c0a392647ba6dd2f0ac61848dddca/node_modules/@pierre/diffs/dist/highlighter/languages/hasResolvedLanguages.js
|
|
12117
12117
|
function Mp(e) {
|
|
12118
12118
|
for (let t of Array.isArray(e) ? e : [e]) if (!Qe.has(t)) return !1;
|
|
12119
12119
|
return !0;
|
|
12120
12120
|
}
|
|
12121
12121
|
//#endregion
|
|
12122
|
-
//#region ../../node_modules/.pnpm/@pierre+diffs@1.3.
|
|
12122
|
+
//#region ../../node_modules/.pnpm/@pierre+diffs@1.3.5_patch_hash=ce17810cfea58efa02eb4e70947801afb36c9f8a08a8bb4c810297c2_569c0a392647ba6dd2f0ac61848dddca/node_modules/@pierre/diffs/dist/highlighter/languages/resolveLanguages.js
|
|
12123
12123
|
async function Np(e) {
|
|
12124
12124
|
let t = [], n = [];
|
|
12125
12125
|
for (let r of e) {
|
|
@@ -12135,12 +12135,12 @@ async function Np(e) {
|
|
|
12135
12135
|
}), t;
|
|
12136
12136
|
}
|
|
12137
12137
|
//#endregion
|
|
12138
|
-
//#region ../../node_modules/.pnpm/@pierre+diffs@1.3.
|
|
12138
|
+
//#region ../../node_modules/.pnpm/@pierre+diffs@1.3.5_patch_hash=ce17810cfea58efa02eb4e70947801afb36c9f8a08a8bb4c810297c2_569c0a392647ba6dd2f0ac61848dddca/node_modules/@pierre/diffs/dist/highlighter/themes/getResolvedThemes.js
|
|
12139
12139
|
function Pp(e) {
|
|
12140
12140
|
return Xe.getResolvedThemes(e);
|
|
12141
12141
|
}
|
|
12142
12142
|
//#endregion
|
|
12143
|
-
//#region ../../node_modules/.pnpm/@pierre+diffs@1.3.
|
|
12143
|
+
//#region ../../node_modules/.pnpm/@pierre+diffs@1.3.5_patch_hash=ce17810cfea58efa02eb4e70947801afb36c9f8a08a8bb4c810297c2_569c0a392647ba6dd2f0ac61848dddca/node_modules/@pierre/diffs/dist/highlighter/themes/resolveThemes.js
|
|
12144
12144
|
async function Fp(e) {
|
|
12145
12145
|
for (let t of e) dd(t);
|
|
12146
12146
|
let t = await Xe.resolveThemes(e);
|
|
@@ -12148,7 +12148,7 @@ async function Fp(e) {
|
|
|
12148
12148
|
return t;
|
|
12149
12149
|
}
|
|
12150
12150
|
//#endregion
|
|
12151
|
-
//#region ../../node_modules/.pnpm/@pierre+diffs@1.3.
|
|
12151
|
+
//#region ../../node_modules/.pnpm/@pierre+diffs@1.3.5_patch_hash=ce17810cfea58efa02eb4e70947801afb36c9f8a08a8bb4c810297c2_569c0a392647ba6dd2f0ac61848dddca/node_modules/@pierre/diffs/dist/worker/WorkerPoolManager.js
|
|
12152
12152
|
var Ip = /* @__PURE__ */ t((/* @__PURE__ */ n(((e, t) => {
|
|
12153
12153
|
(function(n, r) {
|
|
12154
12154
|
typeof e == "object" && t !== void 0 ? r(e) : typeof define == "function" && define.amd ? define(["exports"], r) : r((n ||= self).lru_map = n.lru_map || {});
|
|
@@ -12966,10 +12966,10 @@ function Gp(e) {
|
|
|
12966
12966
|
return e instanceof Error ? e : Error(String(e));
|
|
12967
12967
|
}
|
|
12968
12968
|
//#endregion
|
|
12969
|
-
//#region ../../node_modules/.pnpm/@pierre+diffs@1.3.
|
|
12969
|
+
//#region ../../node_modules/.pnpm/@pierre+diffs@1.3.5_patch_hash=ce17810cfea58efa02eb4e70947801afb36c9f8a08a8bb4c810297c2_569c0a392647ba6dd2f0ac61848dddca/node_modules/@pierre/diffs/dist/react/WorkerPoolContext.js
|
|
12970
12970
|
var Kp = l(void 0);
|
|
12971
12971
|
//#endregion
|
|
12972
|
-
//#region ../../node_modules/.pnpm/@pierre+diffs@1.3.
|
|
12972
|
+
//#region ../../node_modules/.pnpm/@pierre+diffs@1.3.5_patch_hash=ce17810cfea58efa02eb4e70947801afb36c9f8a08a8bb4c810297c2_569c0a392647ba6dd2f0ac61848dddca/node_modules/@pierre/diffs/dist/utils/areManagedSnapshotsEqual.js
|
|
12973
12973
|
function qp(e, t) {
|
|
12974
12974
|
return e == null || t == null ? e === t : e.header !== t.header || e.footer !== t.footer ? !1 : Jp(e.items, t.items);
|
|
12975
12975
|
}
|
|
@@ -12983,7 +12983,7 @@ function Jp(e, t) {
|
|
|
12983
12983
|
return !0;
|
|
12984
12984
|
}
|
|
12985
12985
|
//#endregion
|
|
12986
|
-
//#region ../../node_modules/.pnpm/@pierre+diffs@1.3.
|
|
12986
|
+
//#region ../../node_modules/.pnpm/@pierre+diffs@1.3.5_patch_hash=ce17810cfea58efa02eb4e70947801afb36c9f8a08a8bb4c810297c2_569c0a392647ba6dd2f0ac61848dddca/node_modules/@pierre/diffs/dist/utils/areObjectsEqual.js
|
|
12987
12987
|
function Yp(e, t, n) {
|
|
12988
12988
|
if (e === t || e == null || t == null) return e === t;
|
|
12989
12989
|
let r = new Set(n), i = Object.keys(e), a = new Set(Object.keys(t));
|
|
@@ -12992,7 +12992,7 @@ function Yp(e, t, n) {
|
|
|
12992
12992
|
return !0;
|
|
12993
12993
|
}
|
|
12994
12994
|
//#endregion
|
|
12995
|
-
//#region ../../node_modules/.pnpm/@pierre+diffs@1.3.
|
|
12995
|
+
//#region ../../node_modules/.pnpm/@pierre+diffs@1.3.5_patch_hash=ce17810cfea58efa02eb4e70947801afb36c9f8a08a8bb4c810297c2_569c0a392647ba6dd2f0ac61848dddca/node_modules/@pierre/diffs/dist/utils/areOptionsEqual.js
|
|
12996
12996
|
function Xp(e, t) {
|
|
12997
12997
|
let n = e?.theme ?? N, r = t?.theme ?? N, i = Zp(e), a = Zp(t);
|
|
12998
12998
|
return Le(n, r) && Yp(e, t, ["theme", "parseDiffOptions"]) && Yp(i, a);
|
|
@@ -13001,7 +13001,7 @@ function Zp(e) {
|
|
|
13001
13001
|
if (e != null && "parseDiffOptions" in e) return e.parseDiffOptions;
|
|
13002
13002
|
}
|
|
13003
13003
|
//#endregion
|
|
13004
|
-
//#region ../../node_modules/.pnpm/@pierre+diffs@1.3.
|
|
13004
|
+
//#region ../../node_modules/.pnpm/@pierre+diffs@1.3.5_patch_hash=ce17810cfea58efa02eb4e70947801afb36c9f8a08a8bb4c810297c2_569c0a392647ba6dd2f0ac61848dddca/node_modules/@pierre/diffs/dist/managers/UniversalRenderingManager.js
|
|
13005
13005
|
var Qp = /* @__PURE__ */ new Set(), $p = null;
|
|
13006
13006
|
function em(e) {
|
|
13007
13007
|
Qp.add(e), $p ??= requestAnimationFrame(nm);
|
|
@@ -13020,18 +13020,18 @@ function nm(e) {
|
|
|
13020
13020
|
$p = Qp.size > 0 ? requestAnimationFrame(nm) : null;
|
|
13021
13021
|
}
|
|
13022
13022
|
//#endregion
|
|
13023
|
-
//#region ../../node_modules/.pnpm/@pierre+diffs@1.3.
|
|
13023
|
+
//#region ../../node_modules/.pnpm/@pierre+diffs@1.3.5_patch_hash=ce17810cfea58efa02eb4e70947801afb36c9f8a08a8bb4c810297c2_569c0a392647ba6dd2f0ac61848dddca/node_modules/@pierre/diffs/dist/utils/areSelectionsEqual.js
|
|
13024
13024
|
function rm(e, t) {
|
|
13025
13025
|
return e?.start === t?.start && e?.end === t?.end && e?.side === t?.side && e?.endSide === t?.endSide;
|
|
13026
13026
|
}
|
|
13027
13027
|
//#endregion
|
|
13028
|
-
//#region ../../node_modules/.pnpm/@pierre+diffs@1.3.
|
|
13028
|
+
//#region ../../node_modules/.pnpm/@pierre+diffs@1.3.5_patch_hash=ce17810cfea58efa02eb4e70947801afb36c9f8a08a8bb4c810297c2_569c0a392647ba6dd2f0ac61848dddca/node_modules/@pierre/diffs/dist/utils/createCodeViewHeaderFooterHostElement.js
|
|
13029
13029
|
function im(e, t, n) {
|
|
13030
13030
|
let r = document.createElement("div");
|
|
13031
13031
|
return r.style.display = "flow-root", e === "header" ? (r.setAttribute(ve, ""), t.before(r)) : (r.setAttribute(ye, ""), t.after(r)), n?.observe(r), r;
|
|
13032
13032
|
}
|
|
13033
13033
|
//#endregion
|
|
13034
|
-
//#region ../../node_modules/.pnpm/@pierre+diffs@1.3.
|
|
13034
|
+
//#region ../../node_modules/.pnpm/@pierre+diffs@1.3.5_patch_hash=ce17810cfea58efa02eb4e70947801afb36c9f8a08a8bb4c810297c2_569c0a392647ba6dd2f0ac61848dddca/node_modules/@pierre/diffs/dist/utils/createWindowFromScrollPosition.js
|
|
13035
13035
|
function am({ scrollTop: e, scrollHeight: t, height: n, fitPerfectly: r = !1, fitPerfectlyOverscroll: i = 0, overscrollSize: a }) {
|
|
13036
13036
|
let o = n + a * 2, s = r ? n + i * 2 : o;
|
|
13037
13037
|
if (t = Math.max(t, s), o >= t || r) {
|
|
@@ -13048,7 +13048,7 @@ function am({ scrollTop: e, scrollHeight: t, height: n, fitPerfectly: r = !1, fi
|
|
|
13048
13048
|
};
|
|
13049
13049
|
}
|
|
13050
13050
|
//#endregion
|
|
13051
|
-
//#region ../../node_modules/.pnpm/@pierre+diffs@1.3.
|
|
13051
|
+
//#region ../../node_modules/.pnpm/@pierre+diffs@1.3.5_patch_hash=ce17810cfea58efa02eb4e70947801afb36c9f8a08a8bb4c810297c2_569c0a392647ba6dd2f0ac61848dddca/node_modules/@pierre/diffs/dist/utils/detachString.js
|
|
13052
13052
|
var om = new TextEncoder(), sm = new TextDecoder("utf-8", { ignoreBOM: !0 }), cm = /[\uD800-\uDFFF]/, lm = 1024, um = new Uint8Array(lm);
|
|
13053
13053
|
function dm() {
|
|
13054
13054
|
um.length !== lm && (um = new Uint8Array(lm));
|
|
@@ -13062,7 +13062,7 @@ function Q(e) {
|
|
|
13062
13062
|
return sm.decode(um.subarray(0, n));
|
|
13063
13063
|
}
|
|
13064
13064
|
//#endregion
|
|
13065
|
-
//#region ../../node_modules/.pnpm/@pierre+diffs@1.3.
|
|
13065
|
+
//#region ../../node_modules/.pnpm/@pierre+diffs@1.3.5_patch_hash=ce17810cfea58efa02eb4e70947801afb36c9f8a08a8bb4c810297c2_569c0a392647ba6dd2f0ac61848dddca/node_modules/@pierre/diffs/dist/utils/realignChangeContent.js
|
|
13066
13066
|
var fm = 4096, pm = .5;
|
|
13067
13067
|
function mm(e) {
|
|
13068
13068
|
for (let t of e.hunks) {
|
|
@@ -13141,7 +13141,7 @@ function ym(e, t) {
|
|
|
13141
13141
|
return (i + a) / n;
|
|
13142
13142
|
}
|
|
13143
13143
|
//#endregion
|
|
13144
|
-
//#region ../../node_modules/.pnpm/@pierre+diffs@1.3.
|
|
13144
|
+
//#region ../../node_modules/.pnpm/@pierre+diffs@1.3.5_patch_hash=ce17810cfea58efa02eb4e70947801afb36c9f8a08a8bb4c810297c2_569c0a392647ba6dd2f0ac61848dddca/node_modules/@pierre/diffs/dist/utils/parsePatchFiles.js
|
|
13145
13145
|
function bm(e, t) {
|
|
13146
13146
|
try {
|
|
13147
13147
|
return xm(e, t);
|
|
@@ -13397,7 +13397,7 @@ function Pm(e, t, n) {
|
|
|
13397
13397
|
};
|
|
13398
13398
|
}
|
|
13399
13399
|
//#endregion
|
|
13400
|
-
//#region ../../node_modules/.pnpm/@pierre+diffs@1.3.
|
|
13400
|
+
//#region ../../node_modules/.pnpm/@pierre+diffs@1.3.5_patch_hash=ce17810cfea58efa02eb4e70947801afb36c9f8a08a8bb4c810297c2_569c0a392647ba6dd2f0ac61848dddca/node_modules/@pierre/diffs/dist/utils/parseDiffFromFile.js
|
|
13401
13401
|
var Fm = "/dev/null";
|
|
13402
13402
|
function Im(e, t, n, r = !1) {
|
|
13403
13403
|
if (e === null && t === null) throw Error("parseDiffFromFile: You must pass oldFile, newFile, or both");
|
|
@@ -13422,7 +13422,7 @@ function Lm() {
|
|
|
13422
13422
|
};
|
|
13423
13423
|
}
|
|
13424
13424
|
//#endregion
|
|
13425
|
-
//#region ../../node_modules/.pnpm/@pierre+diffs@1.3.
|
|
13425
|
+
//#region ../../node_modules/.pnpm/@pierre+diffs@1.3.5_patch_hash=ce17810cfea58efa02eb4e70947801afb36c9f8a08a8bb4c810297c2_569c0a392647ba6dd2f0ac61848dddca/node_modules/@pierre/diffs/dist/utils/updateDiffHunks.js
|
|
13426
13426
|
function Rm(e, t) {
|
|
13427
13427
|
let n = Im({
|
|
13428
13428
|
name: e.prevName ?? e.name,
|
|
@@ -13587,7 +13587,7 @@ function nh(e) {
|
|
|
13587
13587
|
e.splitLineCount = t, e.unifiedLineCount = n;
|
|
13588
13588
|
}
|
|
13589
13589
|
//#endregion
|
|
13590
|
-
//#region ../../node_modules/.pnpm/@pierre+diffs@1.3.
|
|
13590
|
+
//#region ../../node_modules/.pnpm/@pierre+diffs@1.3.5_patch_hash=ce17810cfea58efa02eb4e70947801afb36c9f8a08a8bb4c810297c2_569c0a392647ba6dd2f0ac61848dddca/node_modules/@pierre/diffs/dist/utils/editSessionHunks.js
|
|
13591
13591
|
var rh = /* @__PURE__ */ new WeakMap();
|
|
13592
13592
|
function ih(e) {
|
|
13593
13593
|
return e.length > 1 && e[e.length - 1] === "" ? e.slice(0, -1) : e;
|
|
@@ -13886,25 +13886,25 @@ function kh(e) {
|
|
|
13886
13886
|
for (let t = 0; t < e.hunks.length; t++) Qm(e, t);
|
|
13887
13887
|
}
|
|
13888
13888
|
//#endregion
|
|
13889
|
-
//#region ../../node_modules/.pnpm/@pierre+diffs@1.3.
|
|
13889
|
+
//#region ../../node_modules/.pnpm/@pierre+diffs@1.3.5_patch_hash=ce17810cfea58efa02eb4e70947801afb36c9f8a08a8bb4c810297c2_569c0a392647ba6dd2f0ac61848dddca/node_modules/@pierre/diffs/dist/utils/isStyleNode.js
|
|
13890
13890
|
function Ah(e) {
|
|
13891
13891
|
if (typeof HTMLStyleElement < "u" && e instanceof HTMLStyleElement) return !0;
|
|
13892
13892
|
let t = e.tagName ?? e.nodeName;
|
|
13893
13893
|
return typeof t == "string" && t.toLowerCase() === "style";
|
|
13894
13894
|
}
|
|
13895
13895
|
//#endregion
|
|
13896
|
-
//#region ../../node_modules/.pnpm/@pierre+diffs@1.3.
|
|
13896
|
+
//#region ../../node_modules/.pnpm/@pierre+diffs@1.3.5_patch_hash=ce17810cfea58efa02eb4e70947801afb36c9f8a08a8bb4c810297c2_569c0a392647ba6dd2f0ac61848dddca/node_modules/@pierre/diffs/dist/utils/prefersReducedMotion.js
|
|
13897
13897
|
function jh() {
|
|
13898
13898
|
return typeof window > "u" || typeof window.matchMedia != "function" ? !1 : window.matchMedia("(prefers-reduced-motion: reduce)").matches;
|
|
13899
13899
|
}
|
|
13900
13900
|
//#endregion
|
|
13901
|
-
//#region ../../node_modules/.pnpm/@pierre+diffs@1.3.
|
|
13901
|
+
//#region ../../node_modules/.pnpm/@pierre+diffs@1.3.5_patch_hash=ce17810cfea58efa02eb4e70947801afb36c9f8a08a8bb4c810297c2_569c0a392647ba6dd2f0ac61848dddca/node_modules/@pierre/diffs/dist/utils/roundToDevicePixel.js
|
|
13902
13902
|
function Mh(e) {
|
|
13903
13903
|
let t = window.devicePixelRatio ?? 1;
|
|
13904
13904
|
return Math.round(e * t) / t;
|
|
13905
13905
|
}
|
|
13906
13906
|
//#endregion
|
|
13907
|
-
//#region ../../node_modules/.pnpm/@pierre+diffs@1.3.
|
|
13907
|
+
//#region ../../node_modules/.pnpm/@pierre+diffs@1.3.5_patch_hash=ce17810cfea58efa02eb4e70947801afb36c9f8a08a8bb4c810297c2_569c0a392647ba6dd2f0ac61848dddca/node_modules/@pierre/diffs/dist/utils/includesFileAnnotations.js
|
|
13908
13908
|
var Nh = "-1,-1";
|
|
13909
13909
|
function Ph(e) {
|
|
13910
13910
|
return e?.some((e) => e.lineNumber === 0) ?? !1;
|
|
@@ -13917,12 +13917,12 @@ function Ih(e) {
|
|
|
13917
13917
|
return e.startingLine === 0 && e.totalLines > 0;
|
|
13918
13918
|
}
|
|
13919
13919
|
//#endregion
|
|
13920
|
-
//#region ../../node_modules/.pnpm/@pierre+diffs@1.3.
|
|
13920
|
+
//#region ../../node_modules/.pnpm/@pierre+diffs@1.3.5_patch_hash=ce17810cfea58efa02eb4e70947801afb36c9f8a08a8bb4c810297c2_569c0a392647ba6dd2f0ac61848dddca/node_modules/@pierre/diffs/dist/utils/areSelectionPointsEqual.js
|
|
13921
13921
|
function Lh(e, t) {
|
|
13922
13922
|
return e.lineNumber === t.lineNumber && e.side === t.side;
|
|
13923
13923
|
}
|
|
13924
13924
|
//#endregion
|
|
13925
|
-
//#region ../../node_modules/.pnpm/@pierre+diffs@1.3.
|
|
13925
|
+
//#region ../../node_modules/.pnpm/@pierre+diffs@1.3.5_patch_hash=ce17810cfea58efa02eb4e70947801afb36c9f8a08a8bb4c810297c2_569c0a392647ba6dd2f0ac61848dddca/node_modules/@pierre/diffs/dist/utils/createGutterUtilityElement.js
|
|
13926
13926
|
function Rh() {
|
|
13927
13927
|
return X({
|
|
13928
13928
|
tagName: "button",
|
|
@@ -13937,13 +13937,13 @@ function Rh() {
|
|
|
13937
13937
|
});
|
|
13938
13938
|
}
|
|
13939
13939
|
//#endregion
|
|
13940
|
-
//#region ../../node_modules/.pnpm/@pierre+diffs@1.3.
|
|
13940
|
+
//#region ../../node_modules/.pnpm/@pierre+diffs@1.3.5_patch_hash=ce17810cfea58efa02eb4e70947801afb36c9f8a08a8bb4c810297c2_569c0a392647ba6dd2f0ac61848dddca/node_modules/@pierre/diffs/dist/utils/isGutterUtilityPath.js
|
|
13941
13941
|
function zh(e) {
|
|
13942
13942
|
for (let t of e) if (t instanceof HTMLElement && (t.hasAttribute("data-utility-button") || t.hasAttribute("data-gutter-utility-slot") || t.getAttribute("slot") === "gutter-utility-slot" || t.getAttribute("name") === "gutter-utility-slot")) return !0;
|
|
13943
13943
|
return !1;
|
|
13944
13944
|
}
|
|
13945
13945
|
//#endregion
|
|
13946
|
-
//#region ../../node_modules/.pnpm/@pierre+diffs@1.3.
|
|
13946
|
+
//#region ../../node_modules/.pnpm/@pierre+diffs@1.3.5_patch_hash=ce17810cfea58efa02eb4e70947801afb36c9f8a08a8bb4c810297c2_569c0a392647ba6dd2f0ac61848dddca/node_modules/@pierre/diffs/dist/managers/InteractionManager.js
|
|
13947
13947
|
var Bh = class {
|
|
13948
13948
|
mode;
|
|
13949
13949
|
options;
|
|
@@ -14798,7 +14798,7 @@ function ag(e = "none", t, ...n) {
|
|
|
14798
14798
|
console.log(...n);
|
|
14799
14799
|
}
|
|
14800
14800
|
//#endregion
|
|
14801
|
-
//#region ../../node_modules/.pnpm/@pierre+diffs@1.3.
|
|
14801
|
+
//#region ../../node_modules/.pnpm/@pierre+diffs@1.3.5_patch_hash=ce17810cfea58efa02eb4e70947801afb36c9f8a08a8bb4c810297c2_569c0a392647ba6dd2f0ac61848dddca/node_modules/@pierre/diffs/dist/managers/ResizeManager.js
|
|
14802
14802
|
var og = class e {
|
|
14803
14803
|
static resizeObserver;
|
|
14804
14804
|
static managersByElement = /* @__PURE__ */ new Map();
|
|
@@ -14990,29 +14990,29 @@ function pg(e) {
|
|
|
14990
14990
|
e.column1.container.isConnected && e.column1.container.style.removeProperty("--diffs-annotation-min-height"), e.column2.container.isConnected && e.column2.container.style.removeProperty("--diffs-annotation-min-height");
|
|
14991
14991
|
}
|
|
14992
14992
|
//#endregion
|
|
14993
|
-
//#region ../../node_modules/.pnpm/@pierre+diffs@1.3.
|
|
14993
|
+
//#region ../../node_modules/.pnpm/@pierre+diffs@1.3.5_patch_hash=ce17810cfea58efa02eb4e70947801afb36c9f8a08a8bb4c810297c2_569c0a392647ba6dd2f0ac61848dddca/node_modules/@pierre/diffs/dist/utils/areRenderRangesEqual.js
|
|
14994
14994
|
function mg(e, t) {
|
|
14995
14995
|
return e == null || t == null ? e === t : e.startingLine === t.startingLine && e.totalLines === t.totalLines && e.bufferBefore === t.bufferBefore && e.bufferAfter === t.bufferAfter;
|
|
14996
14996
|
}
|
|
14997
14997
|
//#endregion
|
|
14998
|
-
//#region ../../node_modules/.pnpm/@pierre+diffs@1.3.
|
|
14998
|
+
//#region ../../node_modules/.pnpm/@pierre+diffs@1.3.5_patch_hash=ce17810cfea58efa02eb4e70947801afb36c9f8a08a8bb4c810297c2_569c0a392647ba6dd2f0ac61848dddca/node_modules/@pierre/diffs/dist/highlighter/languages/areLanguagesAttached.js
|
|
14999
14999
|
function hg(e) {
|
|
15000
15000
|
for (let t of Array.isArray(e) ? e : [e]) if (t !== "text" && t !== "ansi" && !tt.has(t)) return !1;
|
|
15001
15001
|
return !0;
|
|
15002
15002
|
}
|
|
15003
15003
|
//#endregion
|
|
15004
|
-
//#region ../../node_modules/.pnpm/@pierre+diffs@1.3.
|
|
15004
|
+
//#region ../../node_modules/.pnpm/@pierre+diffs@1.3.5_patch_hash=ce17810cfea58efa02eb4e70947801afb36c9f8a08a8bb4c810297c2_569c0a392647ba6dd2f0ac61848dddca/node_modules/@pierre/diffs/dist/highlighter/themes/areThemesAttached.js
|
|
15005
15005
|
function gg(e) {
|
|
15006
15006
|
for (let t of yd(e)) if (!ze.has(t)) return !1;
|
|
15007
15007
|
return !0;
|
|
15008
15008
|
}
|
|
15009
15009
|
//#endregion
|
|
15010
|
-
//#region ../../node_modules/.pnpm/@pierre+diffs@1.3.
|
|
15010
|
+
//#region ../../node_modules/.pnpm/@pierre+diffs@1.3.5_patch_hash=ce17810cfea58efa02eb4e70947801afb36c9f8a08a8bb4c810297c2_569c0a392647ba6dd2f0ac61848dddca/node_modules/@pierre/diffs/dist/utils/applyLineTextWithNewline.js
|
|
15011
15011
|
function _g(e, t) {
|
|
15012
15012
|
return e.endsWith("\r\n") ? t + "\r\n" : e.endsWith("\r") ? t + "\r" : e.endsWith("\n") ? t + "\n" : t;
|
|
15013
15013
|
}
|
|
15014
15014
|
//#endregion
|
|
15015
|
-
//#region ../../node_modules/.pnpm/@pierre+diffs@1.3.
|
|
15015
|
+
//#region ../../node_modules/.pnpm/@pierre+diffs@1.3.5_patch_hash=ce17810cfea58efa02eb4e70947801afb36c9f8a08a8bb4c810297c2_569c0a392647ba6dd2f0ac61848dddca/node_modules/@pierre/diffs/dist/utils/createAnnotationElement.js
|
|
15016
15016
|
function vg(e) {
|
|
15017
15017
|
return X({
|
|
15018
15018
|
tagName: "div",
|
|
@@ -15028,7 +15028,7 @@ function vg(e) {
|
|
|
15028
15028
|
});
|
|
15029
15029
|
}
|
|
15030
15030
|
//#endregion
|
|
15031
|
-
//#region ../../node_modules/.pnpm/@pierre+diffs@1.3.
|
|
15031
|
+
//#region ../../node_modules/.pnpm/@pierre+diffs@1.3.5_patch_hash=ce17810cfea58efa02eb4e70947801afb36c9f8a08a8bb4c810297c2_569c0a392647ba6dd2f0ac61848dddca/node_modules/@pierre/diffs/dist/utils/createContentColumn.js
|
|
15032
15032
|
function yg(e, t) {
|
|
15033
15033
|
return X({
|
|
15034
15034
|
tagName: "div",
|
|
@@ -15040,7 +15040,7 @@ function yg(e, t) {
|
|
|
15040
15040
|
});
|
|
15041
15041
|
}
|
|
15042
15042
|
//#endregion
|
|
15043
|
-
//#region ../../node_modules/.pnpm/@pierre+diffs@1.3.
|
|
15043
|
+
//#region ../../node_modules/.pnpm/@pierre+diffs@1.3.5_patch_hash=ce17810cfea58efa02eb4e70947801afb36c9f8a08a8bb4c810297c2_569c0a392647ba6dd2f0ac61848dddca/node_modules/@pierre/diffs/dist/utils/getIconForType.js
|
|
15044
15044
|
function bg(e) {
|
|
15045
15045
|
switch (e) {
|
|
15046
15046
|
case "file": return "diffs-icon-file-code";
|
|
@@ -15052,7 +15052,7 @@ function bg(e) {
|
|
|
15052
15052
|
}
|
|
15053
15053
|
}
|
|
15054
15054
|
//#endregion
|
|
15055
|
-
//#region ../../node_modules/.pnpm/@pierre+diffs@1.3.
|
|
15055
|
+
//#region ../../node_modules/.pnpm/@pierre+diffs@1.3.5_patch_hash=ce17810cfea58efa02eb4e70947801afb36c9f8a08a8bb4c810297c2_569c0a392647ba6dd2f0ac61848dddca/node_modules/@pierre/diffs/dist/utils/createFileHeaderElement.js
|
|
15056
15056
|
function xg({ fileOrDiff: e, mode: t, stickyHeader: n }) {
|
|
15057
15057
|
let r = "type" in e ? e : void 0, i = {
|
|
15058
15058
|
"data-diffs-header": t,
|
|
@@ -15131,7 +15131,7 @@ function Cg(e) {
|
|
|
15131
15131
|
});
|
|
15132
15132
|
}
|
|
15133
15133
|
//#endregion
|
|
15134
|
-
//#region ../../node_modules/.pnpm/@pierre+diffs@1.3.
|
|
15134
|
+
//#region ../../node_modules/.pnpm/@pierre+diffs@1.3.5_patch_hash=ce17810cfea58efa02eb4e70947801afb36c9f8a08a8bb4c810297c2_569c0a392647ba6dd2f0ac61848dddca/node_modules/@pierre/diffs/dist/utils/createPreElement.js
|
|
15135
15135
|
function wg(e) {
|
|
15136
15136
|
return X({
|
|
15137
15137
|
tagName: "pre",
|
|
@@ -15152,7 +15152,7 @@ function Tg({ diffIndicators: e, disableBackground: t, disableLineNumbers: n, ov
|
|
|
15152
15152
|
};
|
|
15153
15153
|
}
|
|
15154
15154
|
//#endregion
|
|
15155
|
-
//#region ../../node_modules/.pnpm/@pierre+diffs@1.3.
|
|
15155
|
+
//#region ../../node_modules/.pnpm/@pierre+diffs@1.3.5_patch_hash=ce17810cfea58efa02eb4e70947801afb36c9f8a08a8bb4c810297c2_569c0a392647ba6dd2f0ac61848dddca/node_modules/@pierre/diffs/dist/utils/getHighlighterOptions.js
|
|
15156
15156
|
function Eg(e, { theme: t, preferredHighlighter: n = "shiki-js" }) {
|
|
15157
15157
|
return {
|
|
15158
15158
|
langs: [e ?? "text"],
|
|
@@ -15161,7 +15161,7 @@ function Eg(e, { theme: t, preferredHighlighter: n = "shiki-js" }) {
|
|
|
15161
15161
|
};
|
|
15162
15162
|
}
|
|
15163
15163
|
//#endregion
|
|
15164
|
-
//#region ../../node_modules/.pnpm/@pierre+diffs@1.3.
|
|
15164
|
+
//#region ../../node_modules/.pnpm/@pierre+diffs@1.3.5_patch_hash=ce17810cfea58efa02eb4e70947801afb36c9f8a08a8bb4c810297c2_569c0a392647ba6dd2f0ac61848dddca/node_modules/@pierre/diffs/dist/renderers/FileRenderer.js
|
|
15165
15165
|
function Dg(e, t) {
|
|
15166
15166
|
return t.cacheKey == null ? e.file === t && e.sourceContents === t.contents : e.cacheKey === t.cacheKey;
|
|
15167
15167
|
}
|
|
@@ -15559,15 +15559,15 @@ function Ag(e, t) {
|
|
|
15559
15559
|
return e > t;
|
|
15560
15560
|
}
|
|
15561
15561
|
//#endregion
|
|
15562
|
-
//#region ../../node_modules/.pnpm/@pierre+diffs@1.3.
|
|
15562
|
+
//#region ../../node_modules/.pnpm/@pierre+diffs@1.3.5_patch_hash=ce17810cfea58efa02eb4e70947801afb36c9f8a08a8bb4c810297c2_569c0a392647ba6dd2f0ac61848dddca/node_modules/@pierre/diffs/dist/sprite.js
|
|
15563
15563
|
var jg = "<svg data-icon-sprite aria-hidden=\"true\" width=\"0\" height=\"0\">\n <symbol id=\"diffs-icon-arrow-right-short\" viewBox=\"0 0 16 16\">\n <path d=\"M8.47 4.22a.75.75 0 0 0 0 1.06l1.97 1.97H3.75a.75.75 0 0 0 0 1.5h6.69l-1.97 1.97a.75.75 0 1 0 1.06 1.06l3.25-3.25a.75.75 0 0 0 0-1.06L9.53 4.22a.75.75 0 0 0-1.06 0\"/>\n </symbol>\n <symbol id=\"diffs-icon-brand-github\" viewBox=\"0 0 16 16\">\n <path d=\"M8 0c4.42 0 8 3.58 8 8a8.01 8.01 0 0 1-5.45 7.59c-.4.08-.55-.17-.55-.38 0-.27.01-1.13.01-2.2 0-.75-.25-1.23-.54-1.48 1.78-.2 3.65-.88 3.65-3.95 0-.88-.31-1.59-.82-2.15.08-.2.36-1.02-.08-2.12 0 0-.67-.22-2.2.82-.64-.18-1.32-.27-2-.27s-1.36.09-2 .27c-1.53-1.03-2.2-.82-2.2-.82-.44 1.1-.16 1.92-.08 2.12-.51.56-.82 1.28-.82 2.15 0 3.06 1.86 3.75 3.64 3.95-.23.2-.44.55-.51 1.07-.46.21-1.61.55-2.33-.66-.15-.24-.6-.83-1.23-.82-.67.01-.27.38.01.53.34.19.73.9.82 1.13.16.45.68 1.31 2.69.94 0 .67.01 1.3.01 1.49 0 .21-.15.45-.55.38A7.995 7.995 0 0 1 0 8c0-4.42 3.58-8 8-8\"/>\n </symbol>\n <symbol id=\"diffs-icon-chevron\" viewBox=\"0 0 16 16\">\n <path d=\"M1.47 4.47a.75.75 0 0 1 1.06 0L8 9.94l5.47-5.47a.75.75 0 1 1 1.06 1.06l-6 6a.75.75 0 0 1-1.06 0l-6-6a.75.75 0 0 1 0-1.06\"/>\n </symbol>\n <symbol id=\"diffs-icon-chevrons-narrow\" viewBox=\"0 0 10 16\">\n <path d=\"M4.47 2.22a.75.75 0 0 1 1.06 0l3.25 3.25a.75.75 0 0 1-1.06 1.06L5 3.81 2.28 6.53a.75.75 0 0 1-1.06-1.06zM1.22 9.47a.75.75 0 0 1 1.06 0L5 12.19l2.72-2.72a.75.75 0 0 1 1.06 1.06l-3.25 3.25a.75.75 0 0 1-1.06 0l-3.25-3.25a.75.75 0 0 1 0-1.06\"/>\n </symbol>\n <symbol id=\"diffs-icon-diff-split\" viewBox=\"0 0 16 16\">\n <path d=\"M14 0H8.5v16H14a2 2 0 0 0 2-2V2a2 2 0 0 0-2-2m-1.5 6.5v1h1a.5.5 0 0 1 0 1h-1v1a.5.5 0 0 1-1 0v-1h-1a.5.5 0 0 1 0-1h1v-1a.5.5 0 0 1 1 0\"/><path d=\"M2 0a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h5.5V0zm.5 7.5h3a.5.5 0 0 1 0 1h-3a.5.5 0 0 1 0-1\" opacity=\".3\"/>\n </symbol>\n <symbol id=\"diffs-icon-diff-unified\" viewBox=\"0 0 16 16\">\n <path fill-rule=\"evenodd\" d=\"M16 14a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2V8.5h16zm-8-4a.5.5 0 0 0-.5.5v1h-1a.5.5 0 0 0 0 1h1v1a.5.5 0 0 0 1 0v-1h1a.5.5 0 0 0 0-1h-1v-1A.5.5 0 0 0 8 10\" clip-rule=\"evenodd\"/><path fill-rule=\"evenodd\" d=\"M14 0a2 2 0 0 1 2 2v5.5H0V2a2 2 0 0 1 2-2zM6.5 3.5a.5.5 0 0 0 0 1h3a.5.5 0 0 0 0-1z\" clip-rule=\"evenodd\" opacity=\".4\"/>\n </symbol>\n <symbol id=\"diffs-icon-expand\" viewBox=\"0 0 16 16\">\n <path d=\"M3.47 5.47a.75.75 0 0 1 1.06 0L8 8.94l3.47-3.47a.75.75 0 1 1 1.06 1.06l-4 4a.75.75 0 0 1-1.06 0l-4-4a.75.75 0 0 1 0-1.06\"/>\n </symbol>\n <symbol id=\"diffs-icon-expand-all\" viewBox=\"0 0 16 16\">\n <path d=\"M11.47 9.47a.75.75 0 1 1 1.06 1.06l-4 4a.75.75 0 0 1-1.06 0l-4-4a.75.75 0 1 1 1.06-1.06L8 12.94zM7.526 1.418a.75.75 0 0 1 1.004.052l4 4a.75.75 0 1 1-1.06 1.06L8 3.06 4.53 6.53a.75.75 0 1 1-1.06-1.06l4-4z\"/>\n </symbol>\n <symbol id=\"diffs-icon-file-code\" viewBox=\"0 0 16 16\">\n <path d=\"M10.75 0c.199 0 .39.08.53.22l3.5 3.5c.14.14.22.331.22.53v9A2.75 2.75 0 0 1 12.25 16h-8.5A2.75 2.75 0 0 1 1 13.25V2.75A2.75 2.75 0 0 1 3.75 0zm-7 1.5c-.69 0-1.25.56-1.25 1.25v10.5c0 .69.56 1.25 1.25 1.25h8.5c.69 0 1.25-.56 1.25-1.25V5h-1.25A2.25 2.25 0 0 1 10 2.75V1.5z\"/><path d=\"M7.248 6.19a.75.75 0 0 1 .063 1.058L5.753 9l1.558 1.752a.75.75 0 0 1-1.122.996l-2-2.25a.75.75 0 0 1 0-.996l2-2.25a.75.75 0 0 1 1.06-.063M8.69 7.248a.75.75 0 1 1 1.12-.996l2 2.25a.75.75 0 0 1 0 .996l-2 2.25a.75.75 0 1 1-1.12-.996L10.245 9z\"/>\n </symbol>\n <symbol id=\"diffs-icon-plus\" viewBox=\"0 0 16 16\">\n <path d=\"M8 3a.75.75 0 0 1 .75.75v3.5h3.5a.75.75 0 0 1 0 1.5h-3.5v3.5a.75.75 0 0 1-1.5 0v-3.5h-3.5a.75.75 0 0 1 0-1.5h3.5v-3.5A.75.75 0 0 1 8 3\"/>\n </symbol>\n <symbol id=\"diffs-icon-symbol-added\" viewBox=\"0 0 16 16\">\n <path d=\"M8 4a.75.75 0 0 1 .75.75v2.5h2.5a.75.75 0 0 1 0 1.5h-2.5v2.5a.75.75 0 0 1-1.5 0v-2.5h-2.5a.75.75 0 0 1 0-1.5h2.5v-2.5A.75.75 0 0 1 8 4\"/><path d=\"M1.788 4.296c.196-.88.478-1.381.802-1.706s.826-.606 1.706-.802C5.194 1.588 6.387 1.5 8 1.5s2.806.088 3.704.288c.88.196 1.381.478 1.706.802s.607.826.802 1.706c.2.898.288 2.091.288 3.704s-.088 2.806-.288 3.704c-.195.88-.478 1.381-.802 1.706s-.826.607-1.706.802c-.898.2-2.091.288-3.704.288s-2.806-.088-3.704-.288c-.88-.195-1.381-.478-1.706-.802s-.606-.826-.802-1.706C1.588 10.806 1.5 9.613 1.5 8s.088-2.806.288-3.704M8 0C1.412 0 0 1.412 0 8s1.412 8 8 8 8-1.412 8-8-1.412-8-8-8\"/>\n </symbol>\n <symbol id=\"diffs-icon-symbol-deleted\" viewBox=\"0 0 16 16\">\n <path d=\"M4 8a.75.75 0 0 1 .75-.75h6.5a.75.75 0 0 1 0 1.5h-6.5A.75.75 0 0 1 4 8\"/><path d=\"M1.788 4.296c.196-.88.478-1.381.802-1.706s.826-.606 1.706-.802C5.194 1.588 6.387 1.5 8 1.5s2.806.088 3.704.288c.88.196 1.381.478 1.706.802s.607.826.802 1.706c.2.898.288 2.091.288 3.704s-.088 2.806-.288 3.704c-.195.88-.478 1.381-.802 1.706s-.826.607-1.706.802c-.898.2-2.091.288-3.704.288s-2.806-.088-3.704-.288c-.88-.195-1.381-.478-1.706-.802s-.606-.826-.802-1.706C1.588 10.806 1.5 9.613 1.5 8s.088-2.806.288-3.704M8 0C1.412 0 0 1.412 0 8s1.412 8 8 8 8-1.412 8-8-1.412-8-8-8\"/>\n </symbol>\n <symbol id=\"diffs-icon-symbol-diffstat\" viewBox=\"0 0 16 16\">\n <path d=\"M1.788 4.296c.196-.88.478-1.381.802-1.706s.826-.606 1.706-.802C5.194 1.588 6.387 1.5 8 1.5s2.806.088 3.704.288c.88.196 1.381.478 1.706.802s.607.826.802 1.706c.2.898.288 2.091.288 3.704s-.088 2.806-.288 3.704c-.195.88-.478 1.381-.802 1.706s-.826.607-1.706.802c-.898.2-2.091.288-3.704.288s-2.806-.088-3.704-.288c-.88-.195-1.381-.478-1.706-.802s-.606-.826-.802-1.706C1.588 10.806 1.5 9.613 1.5 8s.088-2.806.288-3.704M8 0C1.412 0 0 1.412 0 8s1.412 8 8 8 8-1.412 8-8-1.412-8-8-8\"/><path d=\"M8.75 4.296a.75.75 0 0 0-1.5 0V6.25h-2a.75.75 0 0 0 0 1.5h2v1.5h1.5v-1.5h2a.75.75 0 0 0 0-1.5h-2zM5.25 10a.75.75 0 0 0 0 1.5h5.5a.75.75 0 0 0 0-1.5z\"/>\n </symbol>\n <symbol id=\"diffs-icon-symbol-ignored\" viewBox=\"0 0 16 16\">\n <path d=\"M1.5 8c0 1.613.088 2.806.288 3.704.196.88.478 1.381.802 1.706s.826.607 1.706.802c.898.2 2.091.288 3.704.288s2.806-.088 3.704-.288c.88-.195 1.381-.478 1.706-.802s.607-.826.802-1.706c.2-.898.288-2.091.288-3.704s-.088-2.806-.288-3.704c-.195-.88-.478-1.381-.802-1.706s-.826-.606-1.706-.802C10.806 1.588 9.613 1.5 8 1.5s-2.806.088-3.704.288c-.88.196-1.381.478-1.706.802s-.606.826-.802 1.706C1.588 5.194 1.5 6.387 1.5 8M0 8c0-6.588 1.412-8 8-8s8 1.412 8 8-1.412 8-8 8-8-1.412-8-8m11.53-2.47a.75.75 0 0 0-1.06-1.06l-6 6a.75.75 0 1 0 1.06 1.06z\"/>\n </symbol>\n <symbol id=\"diffs-icon-symbol-modified\" viewBox=\"0 0 16 16\">\n <path d=\"M1.5 8c0 1.613.088 2.806.288 3.704.196.88.478 1.381.802 1.706s.826.607 1.706.802c.898.2 2.091.288 3.704.288s2.806-.088 3.704-.288c.88-.195 1.381-.478 1.706-.802s.607-.826.802-1.706c.2-.898.288-2.091.288-3.704s-.088-2.806-.288-3.704c-.195-.88-.478-1.381-.802-1.706s-.826-.606-1.706-.802C10.806 1.588 9.613 1.5 8 1.5s-2.806.088-3.704.288c-.88.196-1.381.478-1.706.802s-.606.826-.802 1.706C1.588 5.194 1.5 6.387 1.5 8M0 8c0-6.588 1.412-8 8-8s8 1.412 8 8-1.412 8-8 8-8-1.412-8-8m8 3a3 3 0 1 0 0-6 3 3 0 0 0 0 6\"/>\n </symbol>\n <symbol id=\"diffs-icon-symbol-moved\" viewBox=\"0 0 16 16\">\n <path d=\"M1.788 4.296c.196-.88.478-1.381.802-1.706s.826-.606 1.706-.802C5.194 1.588 6.387 1.5 8 1.5s2.806.088 3.704.288c.88.196 1.381.478 1.706.802s.607.826.802 1.706c.2.898.288 2.091.288 3.704s-.088 2.806-.288 3.704c-.195.88-.478 1.381-.802 1.706s-.826.607-1.706.802c-.898.2-2.091.288-3.704.288s-2.806-.088-3.704-.288c-.88-.195-1.381-.478-1.706-.802s-.606-.826-.802-1.706C1.588 10.806 1.5 9.613 1.5 8s.088-2.806.288-3.704M8 0C1.412 0 0 1.412 0 8s1.412 8 8 8 8-1.412 8-8-1.412-8-8-8\"/><path d=\"M8.495 4.695a.75.75 0 0 0-.05 1.06L10.486 8l-2.041 2.246a.75.75 0 0 0 1.11 1.008l2.5-2.75a.75.75 0 0 0 0-1.008l-2.5-2.75a.75.75 0 0 0-1.06-.051m-4 0a.75.75 0 0 0-.05 1.06l2.044 2.248-1.796 1.995a.75.75 0 0 0 1.114 1.004l2.25-2.5a.75.75 0 0 0-.002-1.007l-2.5-2.75a.75.75 0 0 0-1.06-.05\"/>\n </symbol>\n <symbol id=\"diffs-icon-symbol-ref\" viewBox=\"0 0 16 16\">\n <path d=\"M1.5 8c0 1.613.088 2.806.288 3.704.196.88.478 1.381.802 1.706.286.286.71.54 1.41.73V1.86c-.7.19-1.124.444-1.41.73-.324.325-.606.826-.802 1.706C1.588 5.194 1.5 6.387 1.5 8m4 6.397c.697.07 1.522.103 2.5.103 1.613 0 2.806-.088 3.704-.288.88-.195 1.381-.478 1.706-.802s.607-.826.802-1.706c.2-.898.288-2.091.288-3.704s-.088-2.806-.288-3.704c-.195-.88-.478-1.381-.802-1.706s-.826-.606-1.706-.802C10.806 1.588 9.613 1.5 8 1.5c-.978 0-1.803.033-2.5.103zM0 8c0-6.588 1.412-8 8-8s8 1.412 8 8-1.412 8-8 8-8-1.412-8-8m7-2a1 1 0 0 1 1-1h3a1 1 0 0 1 1 1v1a1 1 0 0 1-1 1H8a1 1 0 0 1-1-1z\"/>\n </symbol>\n</svg>";
|
|
15564
15564
|
//#endregion
|
|
15565
|
-
//#region ../../node_modules/.pnpm/@pierre+diffs@1.3.
|
|
15565
|
+
//#region ../../node_modules/.pnpm/@pierre+diffs@1.3.5_patch_hash=ce17810cfea58efa02eb4e70947801afb36c9f8a08a8bb4c810297c2_569c0a392647ba6dd2f0ac61848dddca/node_modules/@pierre/diffs/dist/utils/areLineAnnotationsEqual.js
|
|
15566
15566
|
function Mg(e, t) {
|
|
15567
15567
|
return e.lineNumber === t.lineNumber && e.metadata === t.metadata;
|
|
15568
15568
|
}
|
|
15569
15569
|
//#endregion
|
|
15570
|
-
//#region ../../node_modules/.pnpm/@pierre+diffs@1.3.
|
|
15570
|
+
//#region ../../node_modules/.pnpm/@pierre+diffs@1.3.5_patch_hash=ce17810cfea58efa02eb4e70947801afb36c9f8a08a8bb4c810297c2_569c0a392647ba6dd2f0ac61848dddca/node_modules/@pierre/diffs/dist/utils/arePrePropertiesEqual.js
|
|
15571
15571
|
function Ng(e, t) {
|
|
15572
15572
|
return e == null || t == null ? e === t : Fg(e.customProperties, t.customProperties) && e.type === t.type && e.diffIndicators === t.diffIndicators && e.disableBackground === t.disableBackground && e.disableLineNumbers === t.disableLineNumbers && e.overflow === t.overflow && e.split === t.split && e.totalLines === t.totalLines;
|
|
15573
15573
|
}
|
|
@@ -15580,25 +15580,25 @@ function Fg(e = Pg, t = Pg) {
|
|
|
15580
15580
|
return !0;
|
|
15581
15581
|
}
|
|
15582
15582
|
//#endregion
|
|
15583
|
-
//#region ../../node_modules/.pnpm/@pierre+diffs@1.3.
|
|
15583
|
+
//#region ../../node_modules/.pnpm/@pierre+diffs@1.3.5_patch_hash=ce17810cfea58efa02eb4e70947801afb36c9f8a08a8bb4c810297c2_569c0a392647ba6dd2f0ac61848dddca/node_modules/@pierre/diffs/dist/utils/createAnnotationWrapperNode.js
|
|
15584
15584
|
function Ig(e) {
|
|
15585
15585
|
let t = document.createElement("div");
|
|
15586
15586
|
return t.dataset.annotationSlot = "", t.slot = e, t.style.whiteSpace = "normal", t;
|
|
15587
15587
|
}
|
|
15588
15588
|
//#endregion
|
|
15589
|
-
//#region ../../node_modules/.pnpm/@pierre+diffs@1.3.
|
|
15589
|
+
//#region ../../node_modules/.pnpm/@pierre+diffs@1.3.5_patch_hash=ce17810cfea58efa02eb4e70947801afb36c9f8a08a8bb4c810297c2_569c0a392647ba6dd2f0ac61848dddca/node_modules/@pierre/diffs/dist/utils/createGutterUtilityContentNode.js
|
|
15590
15590
|
function Lg() {
|
|
15591
15591
|
let e = document.createElement("div");
|
|
15592
15592
|
return e.slot = "gutter-utility-slot", e.style.position = "absolute", e.style.top = "0", e.style.bottom = "0", e.style.textAlign = "center", e.style.whiteSpace = "normal", e.style.touchAction = "none", e;
|
|
15593
15593
|
}
|
|
15594
15594
|
//#endregion
|
|
15595
|
-
//#region ../../node_modules/.pnpm/@pierre+diffs@1.3.
|
|
15595
|
+
//#region ../../node_modules/.pnpm/@pierre+diffs@1.3.5_patch_hash=ce17810cfea58efa02eb4e70947801afb36c9f8a08a8bb4c810297c2_569c0a392647ba6dd2f0ac61848dddca/node_modules/@pierre/diffs/dist/utils/createUnsafeCSSStyleNode.js
|
|
15596
15596
|
function Rg() {
|
|
15597
15597
|
let e = document.createElement("style");
|
|
15598
15598
|
return e.setAttribute(ge, ""), e;
|
|
15599
15599
|
}
|
|
15600
15600
|
//#endregion
|
|
15601
|
-
//#region ../../node_modules/.pnpm/@pierre+diffs@1.3.
|
|
15601
|
+
//#region ../../node_modules/.pnpm/@pierre+diffs@1.3.5_patch_hash=ce17810cfea58efa02eb4e70947801afb36c9f8a08a8bb4c810297c2_569c0a392647ba6dd2f0ac61848dddca/node_modules/@pierre/diffs/dist/utils/scrollbarGutter.js
|
|
15602
15602
|
var zg;
|
|
15603
15603
|
function Bg(e) {
|
|
15604
15604
|
if (zg != null) return zg;
|
|
@@ -15613,7 +15613,7 @@ function Vg(e) {
|
|
|
15613
15613
|
return `${be}: ${e == null ? "var(--diffs-scrollbar-gutter-fallback)" : `${e}px`};`;
|
|
15614
15614
|
}
|
|
15615
15615
|
//#endregion
|
|
15616
|
-
//#region ../../node_modules/.pnpm/@pierre+diffs@1.3.
|
|
15616
|
+
//#region ../../node_modules/.pnpm/@pierre+diffs@1.3.5_patch_hash=ce17810cfea58efa02eb4e70947801afb36c9f8a08a8bb4c810297c2_569c0a392647ba6dd2f0ac61848dddca/node_modules/@pierre/diffs/dist/style.js
|
|
15617
15617
|
var Hg = "@layer base {\n :host {\n --diffs-font-fallback: \"SF Mono\", Monaco, Consolas, \"Ubuntu Mono\", \"Liberation Mono\",\n \"Courier New\", monospace;\n --diffs-header-font-fallback: system-ui, -apple-system, \"Segoe UI\", Roboto, \"Helvetica Neue\",\n \"Noto Sans\", \"Liberation Sans\", Arial, sans-serif;\n --diffs-mixer: light-dark(#000, #fff);\n --diffs-gap-fallback: 8px;\n --diffs-scrollbar-gutter-fallback: 6px;\n --diffs-scrollbar-gutter: var(--diffs-scrollbar-gutter-override, var(--diffs-scrollbar-gutter-measured, var(--diffs-scrollbar-gutter-fallback)));\n --diffs-added-light: #0dbe4e;\n --diffs-added-dark: #5ecc71;\n --diffs-modified-light: #009fff;\n --diffs-modified-dark: #69b1ff;\n --diffs-deleted-light: #ff2e3f;\n --diffs-deleted-dark: #ff6762;\n --diffs-warning-light: #d5a910;\n --diffs-warning-dark: #ffd452;\n color-scheme: light dark;\n font-family: var(--diffs-header-font-family, var(--diffs-header-font-fallback));\n font-size: var(--diffs-font-size, 13px);\n line-height: var(--diffs-line-height, 20px);\n font-feature-settings: var(--diffs-font-features);\n --diffs-bg: light-dark(var(--diffs-light-bg, #fff), var(--diffs-dark-bg, #000));\n --diffs-bg-buffer: var(--diffs-bg-buffer-override, light-dark(color-mix(in lab, var(--diffs-bg) 92%, var(--diffs-mixer)), color-mix(in lab, var(--diffs-bg) 92%, var(--diffs-mixer))));\n --diffs-bg-context: var(--diffs-bg-context-override, light-dark(color-mix(in lab, var(--diffs-bg) 98.5%, var(--diffs-mixer)), color-mix(in lab, var(--diffs-bg) 92.5%, var(--diffs-mixer))));\n --diffs-bg-context-gutter: var(--diffs-bg-context-gutter-override, light-dark(color-mix(in lab, var(--diffs-bg-context) 90%, var(--diffs-bg)), color-mix(in lab, var(--diffs-bg-context) 45%, var(--diffs-bg))));\n --diffs-bg-separator: var(--diffs-bg-separator-override, light-dark(color-mix(in lab, var(--diffs-bg) 96%, var(--diffs-mixer)), color-mix(in lab, var(--diffs-bg) 85%, var(--diffs-mixer))));\n --diffs-fg: light-dark(var(--diffs-light, #000), var(--diffs-dark, #fff));\n --diffs-fg-number: var(--diffs-fg-number-override, light-dark(color-mix(in lab, var(--diffs-fg) 65%, var(--diffs-bg)), color-mix(in lab, var(--diffs-fg) 65%, var(--diffs-bg))));\n --diffs-fg-conflict-marker: var(--diffs-fg-conflict-marker-override, var(--diffs-fg-number));\n --diffs-deletion-base: var(--diffs-deletion-color-override, light-dark(var(--diffs-light-deletion-color, var(--diffs-deletion-color, var(--diffs-deleted-light))), var(--diffs-dark-deletion-color, var(--diffs-deletion-color, var(--diffs-deleted-dark)))));\n --diffs-addition-base: var(--diffs-addition-color-override, light-dark(var(--diffs-light-addition-color, var(--diffs-addition-color, var(--diffs-added-light))), var(--diffs-dark-addition-color, var(--diffs-addition-color, var(--diffs-added-dark)))));\n --diffs-modified-base: var(--diffs-modified-color-override, light-dark(var(--diffs-light-modified-color, var(--diffs-modified-color, var(--diffs-modified-light))), var(--diffs-dark-modified-color, var(--diffs-modified-color, var(--diffs-modified-dark)))));\n --diffs-bg-deletion: var(--diffs-bg-deletion-override, light-dark(color-mix(in lab, var(--diffs-bg) 88%, var(--diffs-deletion-base)), color-mix(in lab, var(--diffs-bg) 80%, var(--diffs-deletion-base))));\n --diffs-bg-deletion-emphasis: var(--diffs-bg-deletion-emphasis-override, light-dark(rgb(from var(--diffs-deletion-base) r g b / .15), rgb(from var(--diffs-deletion-base) r g b / .2)));\n --diffs-bg-addition: var(--diffs-bg-addition-override, light-dark(color-mix(in lab, var(--diffs-bg) 88%, var(--diffs-addition-base)), color-mix(in lab, var(--diffs-bg) 80%, var(--diffs-addition-base))));\n --diffs-bg-addition-emphasis: var(--diffs-bg-addition-emphasis-override, light-dark(rgb(from var(--diffs-addition-base) r g b / .15), rgb(from var(--diffs-addition-base) r g b / .2)));\n --diffs-selection-base: var(--diffs-modified-base);\n --diffs-selection-number-fg: light-dark(color-mix(in lab, var(--diffs-selection-base) 65%, var(--diffs-mixer)), color-mix(in lab, var(--diffs-selection-base) 75%, var(--diffs-mixer)));\n background-color: var(--diffs-bg);\n color: var(--diffs-fg);\n display: block;\n }\n\n pre, code, [data-error-wrapper] {\n isolation: isolate;\n font-family: var(--diffs-font-family, var(--diffs-font-fallback));\n outline: none;\n margin: 0;\n padding: 0;\n display: block;\n }\n\n pre, code {\n background-color: var(--diffs-bg);\n }\n\n code {\n contain: content;\n }\n\n input, button {\n font-family: inherit;\n font-size: inherit;\n line-height: inherit;\n }\n\n *, :before, :after {\n box-sizing: border-box;\n }\n\n [data-icon-sprite] {\n display: none;\n }\n\n [data-diffs-header], [data-separator] {\n font-family: var(--diffs-header-font-family, var(--diffs-header-font-fallback));\n }\n\n [data-diffs-header][data-sticky] {\n z-index: 1;\n background-color: var(--diffs-bg);\n position: sticky;\n top: 0;\n }\n\n [data-file-info] {\n color: var(--fg);\n background-color: color-mix(in lab, var(--bg) 98%, var(--fg));\n border-block: 1px solid color-mix(in lab, var(--bg) 95%, var(--fg));\n padding: 10px;\n font-weight: 700;\n }\n\n [data-diff], [data-file] {\n --diffs-grid-number-column-width: minmax(min-content, max-content);\n --diffs-code-grid: var(--diffs-grid-number-column-width) 1fr;\n\n &[data-dehydrated] {\n --diffs-code-grid: var(--diffs-grid-number-column-width) minmax(0, 1fr);\n }\n\n &:hover [data-code]::-webkit-scrollbar-thumb {\n background-color: var(--diffs-bg-context);\n }\n }\n\n @supports (-webkit-touch-callout: none) {\n :host {\n --diffs-scrollbar-gutter-fallback: 0px;\n }\n }\n\n [data-line] span {\n color: light-dark(var(--diffs-token-light, var(--diffs-light)), var(--diffs-token-dark, var(--diffs-dark)));\n background-color: light-dark(var(--diffs-token-light-bg, inherit), var(--diffs-token-dark-bg, inherit));\n font-weight: light-dark(var(--diffs-token-light-font-weight, inherit), var(--diffs-token-dark-font-weight, inherit));\n font-style: light-dark(var(--diffs-token-light-font-style, inherit), var(--diffs-token-dark-font-style, inherit));\n text-decoration: light-dark(var(--diffs-token-light-text-decoration, inherit), var(--diffs-token-dark-text-decoration, inherit));\n }\n\n [data-line], [data-gutter-buffer], [data-column-number], [data-line-annotation], [data-no-newline], [data-merge-conflict], [data-merge-conflict-actions], [data-editor-overlay] {\n --diffs-computed-decoration-bg: var(--diffs-bg);\n --diffs-computed-diff-line-bg: var(--diffs-computed-decoration-bg);\n --diffs-computed-selected-line-bg: var(--diffs-computed-diff-line-bg);\n --diffs-computed-editor-active-line-bg: var(--diffs-computed-selected-line-bg);\n --diffs-computed-hovered-line-bg: var(--diffs-computed-editor-active-line-bg);\n --diffs-hover-mix-target: var(--diffs-bg-hover-override, var(--diffs-mixer));\n --diffs-line-bg: var(--diffs-computed-hovered-line-bg);\n color: var(--diffs-fg);\n background-color: var(--diffs-line-bg, var(--diffs-bg));\n }\n\n [data-line], [data-no-newline] {\n &[data-decoration-bg] {\n --mix-deco-light: 92%;\n --mix-deco-dark: 85%;\n\n &[data-decoration-bg-depth=\"2\"] {\n --mix-deco-light: 88%;\n --mix-deco-dark: 80%;\n }\n\n &[data-decoration-bg-depth=\"3\"] {\n --mix-deco-light: 85%;\n --mix-deco-dark: 78%;\n }\n\n --diffs-hover-mix-target: var(--diffs-decoration-bg);\n --diffs-computed-decoration-bg: light-dark(color-mix(in lab,\n var(--diffs-bg) var(--mix-deco-light),\n var(--diffs-decoration-bg)), color-mix(in lab,\n var(--diffs-bg) var(--mix-deco-dark),\n var(--diffs-decoration-bg)));\n }\n }\n\n [data-line-annotation], [data-gutter-buffer=\"annotation\"] {\n --diffs-annotation-bg: var(--diffs-bg-context);\n --diffs-computed-decoration-bg: var(--diffs-annotation-bg);\n --diffs-hover-mix-target: var(--diffs-computed-editor-active-line-bg);\n }\n\n [data-merge-conflict-actions], [data-gutter-buffer=\"merge-conflict-action\"], [data-gutter-buffer=\"merge-conflict-marker-base\"], [data-gutter-buffer=\"merge-conflict-marker-separator\"], [data-merge-conflict=\"marker-base\"], [data-merge-conflict=\"marker-separator\"] {\n --diffs-computed-decoration-bg: var(--diffs-bg-context);\n --diffs-hover-mix-target: var(--diffs-computed-editor-active-line-bg);\n }\n\n [data-gutter-buffer=\"merge-conflict-marker-start\"], [data-merge-conflict=\"marker-start\"] {\n --diffs-computed-decoration-bg: light-dark(color-mix(in lab,\n var(--diffs-bg) 78%,\n var(--conflict-bg-current-header-override, var(--diffs-addition-base))), color-mix(in lab,\n var(--diffs-bg) 68%,\n var(--conflict-bg-current-header-override, var(--diffs-addition-base))));\n --diffs-hover-mix-target: var(--diffs-computed-editor-active-line-bg);\n }\n\n [data-gutter-buffer=\"merge-conflict-marker-end\"], [data-merge-conflict=\"marker-end\"] {\n --diffs-computed-decoration-bg: light-dark(color-mix(in lab,\n var(--diffs-bg) 78%,\n var(--conflict-bg-incoming-header-override, var(--diffs-modified-base))), color-mix(in lab,\n var(--diffs-bg) 68%,\n var(--conflict-bg-incoming-header-override, var(--diffs-modified-base))));\n --diffs-hover-mix-target: var(--diffs-computed-editor-active-line-bg);\n }\n\n [data-has-merge-conflict] [data-line-annotation], [data-has-merge-conflict] [data-gutter-buffer=\"annotation\"] {\n --diffs-computed-decoration-bg: var(--diffs-bg);\n --diffs-hover-mix-target: var(--diffs-computed-editor-active-line-bg);\n }\n\n :where([data-background]) {\n & [data-gutter-buffer], & [data-column-number] {\n --mix-light: 91%;\n --mix-dark: 85%;\n }\n\n & [data-line], & [data-no-newline] {\n --mix-light: 88%;\n --mix-dark: 80%;\n }\n\n & [data-gutter-buffer], & [data-column-number], & [data-line], & [data-no-newline] {\n --diffs-diff-line-mix-target: var(--diffs-bg);\n\n &[data-line-type=\"change-deletion\"] {\n --diffs-diff-line-mix-target: var(--diffs-bg-deletion-override, var(--diffs-deletion-base));\n --diffs-hover-mix-target: var(--diffs-diff-line-mix-target);\n\n &:where([data-gutter-buffer], [data-column-number]) {\n color: var(--diffs-fg-number-deletion-override, var(--diffs-deletion-base));\n --diffs-diff-line-mix-target: var(--diffs-bg-deletion-number-override, var(--diffs-deletion-base));\n }\n\n --diffs-computed-diff-line-bg: light-dark(color-mix(in lab,\n var(--diffs-computed-decoration-bg) var(--mix-light),\n var(--diffs-diff-line-mix-target)), color-mix(in lab,\n var(--diffs-computed-decoration-bg) var(--mix-dark),\n var(--diffs-diff-line-mix-target)));\n }\n\n &[data-line-type=\"change-addition\"] {\n --diffs-diff-line-mix-target: var(--diffs-bg-addition-override, var(--diffs-addition-base));\n --diffs-hover-mix-target: var(--diffs-diff-line-mix-target);\n\n &:where([data-gutter-buffer], [data-column-number]) {\n color: var(--diffs-fg-number-addition-override, var(--diffs-addition-base));\n --diffs-diff-line-mix-target: var(--diffs-bg-addition-number-override, var(--diffs-addition-base));\n }\n\n --diffs-computed-diff-line-bg: light-dark(color-mix(in lab,\n var(--diffs-computed-decoration-bg) var(--mix-light),\n var(--diffs-diff-line-mix-target)), color-mix(in lab,\n var(--diffs-computed-decoration-bg) var(--mix-dark),\n var(--diffs-diff-line-mix-target)));\n }\n\n &[data-merge-conflict=\"current\"] {\n --diffs-diff-line-mix-target: var(--conflict-bg-current-override, var(--diffs-addition-base));\n --diffs-hover-mix-target: var(--diffs-diff-line-mix-target);\n\n &:where([data-gutter-buffer], [data-column-number]) {\n color: var(--diffs-fg-number-addition-override, var(--diffs-addition-base));\n --diffs-diff-line-mix-target: var(--conflict-bg-current-number-override, var(--diffs-addition-base));\n }\n\n --diffs-computed-diff-line-bg: light-dark(color-mix(in lab,\n var(--diffs-computed-decoration-bg) var(--mix-light),\n var(--diffs-diff-line-mix-target)), color-mix(in lab,\n var(--diffs-computed-decoration-bg) var(--mix-dark),\n var(--diffs-diff-line-mix-target)));\n }\n\n &[data-merge-conflict=\"incoming\"] {\n --diffs-diff-line-mix-target: var(--conflict-bg-incoming-override, var(--diffs-modified-base));\n --diffs-hover-mix-target: var(--diffs-diff-line-mix-target);\n\n &:where([data-gutter-buffer], [data-column-number]) {\n color: var(--diffs-modified-base);\n --diffs-diff-line-mix-target: var(--conflict-bg-incoming-number-override, var(--diffs-modified-base));\n }\n\n --diffs-computed-diff-line-bg: light-dark(color-mix(in lab,\n var(--diffs-computed-decoration-bg) var(--mix-light),\n var(--diffs-diff-line-mix-target)), color-mix(in lab,\n var(--diffs-computed-decoration-bg) var(--mix-dark),\n var(--diffs-diff-line-mix-target)));\n }\n }\n }\n\n [data-gutter-buffer], [data-column-number], [data-line], [data-line-annotation], [data-merge-conflict], [data-merge-conflict-actions], [data-no-newline], [data-editor-overlay] {\n --diffs-selection-mix-target: var(--diffs-bg-selection-override, var(--diffs-selection-base));\n --diffs-selection-emphasis-mix-target: var(--diffs-selection-mix-target);\n\n &:where([data-editor-overlay]), &:where([data-line], [data-line-annotation], [data-merge-conflict], [data-merge-conflict-actions], [data-no-newline])[data-selected-line] {\n --mix-selection-light: 82%;\n --mix-selection-dark: 75%;\n --diffs-hover-mix-target: var(--diffs-selection-mix-target);\n }\n\n &:where([data-gutter-buffer][data-selected-line], [data-column-number]:is([data-selected-line], [data-editor-active-line])) {\n --mix-selection-light: 75%;\n --mix-selection-dark: 60%;\n --diffs-selection-mix-target: var(--diffs-bg-selection-number-override, var(--diffs-selection-base));\n --diffs-hover-mix-target: var(--diffs-selection-mix-target);\n }\n\n &:where([data-line][data-selected-line]):is([data-line-type=\"change-addition\"], [data-line-type=\"change-deletion\"]) {\n --diffs-selection-emphasis-mix-target: light-dark(color-mix(in lab,\n var(--diffs-diff-line-mix-target, var(--diffs-selection-mix-target))\n var(--mix-selection-light),\n var(--diffs-selection-mix-target)), var(--diffs-selection-mix-target));\n }\n\n &:where([data-editor-overlay]), &[data-selected-line] {\n --diffs-computed-selected-line-bg: light-dark(color-mix(in lab,\n var(--diffs-computed-diff-line-bg) var(--mix-selection-light),\n var(--diffs-selection-mix-target)), color-mix(in lab,\n var(--diffs-computed-diff-line-bg) var(--mix-selection-dark),\n var(--diffs-selection-mix-target)));\n }\n }\n\n [data-line][data-editor-active-line], [data-column-number][data-editor-active-line] {\n --diffs-computed-editor-active-line-bg: color-mix(in lab,\n var(--diffs-computed-selected-line-bg)\n var(--diffs-editor-active-line-source-mix, 100%),\n var(--diffs-selection-emphasis-mix-target));\n }\n\n @media (pointer: fine) {\n [data-line][data-hovered], [data-gutter-buffer][data-hovered], [data-column-number][data-hovered], [data-line-annotation][data-hovered], [data-no-newline][data-hovered], [data-merge-conflict][data-hovered], [data-merge-conflict-actions][data-hovered], [data-editor-overlay][data-hovered] {\n --diffs-computed-hovered-line-bg: light-dark(color-mix(in lab,\n var(--diffs-computed-editor-active-line-bg) 97%,\n var(--diffs-hover-mix-target)), color-mix(in lab,\n var(--diffs-computed-editor-active-line-bg) 91%,\n var(--diffs-hover-mix-target)));\n }\n }\n\n [data-gutter-buffer][data-selected-line], [data-column-number]:is([data-selected-line], [data-editor-active-line]) {\n color: var(--diffs-selection-number-fg);\n }\n\n [data-no-newline] {\n user-select: none;\n\n & span {\n opacity: .6;\n }\n }\n\n [data-diff-type=\"split\"][data-overflow=\"scroll\"] {\n grid-template-columns: 1fr 1fr;\n display: grid;\n\n & [data-additions] {\n border-left: 1px solid var(--diffs-bg);\n }\n\n & [data-deletions] {\n border-right: 1px solid var(--diffs-bg);\n }\n }\n\n [data-code] {\n grid-auto-flow: dense;\n grid-template-columns: var(--diffs-code-grid);\n overflow: var(--diffs-overflow-override, scroll) clip;\n overscroll-behavior-x: none;\n tab-size: var(--diffs-tab-size, 2);\n padding-top: var(--diffs-gap-block, var(--diffs-gap-fallback));\n padding-bottom: max(0px,\n calc(var(--diffs-gap-block, var(--diffs-gap-fallback)) -\n var(--diffs-scrollbar-gutter)));\n scrollbar-gutter: stable;\n align-self: flex-start;\n display: grid;\n }\n\n [data-diffs-scrollbar-measure] {\n opacity: 0;\n pointer-events: none;\n scrollbar-gutter: auto;\n grid-template-columns: none;\n width: 100px;\n height: 100px;\n padding: 0;\n position: absolute;\n top: -200px;\n left: -200px;\n }\n\n [data-container-size] {\n container-type: inline-size;\n }\n\n [data-code]::-webkit-scrollbar {\n width: 0;\n height: var(--diffs-scrollbar-gutter);\n }\n\n [data-code]::-webkit-scrollbar-track {\n background: none;\n }\n\n [data-code]::-webkit-scrollbar-thumb {\n background-color: #0000;\n background-clip: content-box;\n border: 1px solid #0000;\n border-radius: 3px;\n }\n\n [data-code]::-webkit-scrollbar-corner {\n background-color: #0000;\n }\n\n @supports ((-moz-appearance: none)) {\n [data-code] {\n scrollbar-width: thin;\n scrollbar-color: var(--diffs-bg-context) transparent;\n padding-bottom: var(--diffs-gap-block, var(--diffs-gap-fallback));\n }\n }\n\n [data-diffs-header] ~ [data-diff], [data-diffs-header] ~ [data-file] {\n & [data-code], &[data-overflow=\"wrap\"], &[data-dehydrated][data-diff-type=\"split\"][data-overflow=\"scroll\"] {\n padding-top: 0;\n }\n }\n\n [data-gutter] {\n grid-template-rows: subgrid;\n grid-template-columns: subgrid;\n z-index: 3;\n background-color: var(--diffs-bg);\n grid-column: 1;\n display: grid;\n position: relative;\n\n & [data-gutter-buffer], & [data-column-number] {\n border-right: var(--diffs-gap-style, 2px solid var(--diffs-bg));\n }\n }\n\n [data-content] {\n grid-template-rows: subgrid;\n grid-template-columns: subgrid;\n background-color: var(--diffs-bg);\n grid-column: 2;\n min-width: 0;\n display: grid;\n }\n\n [data-diff-type=\"split\"][data-overflow=\"wrap\"], [data-dehydrated][data-diff-type=\"split\"][data-overflow=\"scroll\"] {\n grid-auto-flow: dense;\n grid-template-columns: repeat(2, var(--diffs-code-grid));\n padding-block: var(--diffs-gap-block, var(--diffs-gap-fallback));\n display: grid;\n\n & [data-code] {\n display: contents;\n }\n\n & [data-deletions] {\n & [data-gutter] {\n grid-column: 1;\n }\n\n & [data-content] {\n border-right: 1px solid var(--diffs-bg);\n grid-column: 2;\n }\n }\n\n & [data-additions] {\n & [data-gutter] {\n border-left: 1px solid var(--diffs-bg);\n grid-column: 3;\n }\n\n & [data-content] {\n grid-column: 4;\n }\n }\n }\n\n [data-dehydrated][data-diff-type=\"split\"][data-overflow=\"scroll\"] [data-content] {\n overflow: clip;\n }\n\n [data-overflow=\"scroll\"] [data-gutter] {\n position: sticky;\n left: 0;\n }\n\n [data-interactive-lines] [data-line] {\n cursor: pointer;\n }\n\n [data-interactive-line-numbers] [data-column-number] {\n cursor: pointer;\n touch-action: none;\n }\n\n [data-content-buffer], [data-gutter-buffer] {\n user-select: none;\n min-height: 1lh;\n position: relative;\n }\n\n [data-gutter-buffer] {\n padding-left: 2ch;\n padding-right: 1ch;\n\n &:before {\n content: \"\";\n min-width: var(--diffs-min-number-column-width, var(--diffs-min-number-column-width-default, 3ch));\n display: block;\n }\n }\n\n [data-gutter-buffer=\"annotation\"] {\n --diffs-annotation-bg: var(--diffs-bg-context-gutter);\n min-height: 0;\n }\n\n [data-gutter-buffer=\"buffer\"] {\n --diffs-line-bg: var(--diffs-bg-context-gutter);\n }\n\n [data-content-buffer] {\n background-position: 5px 0;\n background-size: 8px 8px;\n background-origin: border-box;\n background-image: repeating-linear-gradient(-45deg,\n transparent,\n transparent calc(3px * 1.414),\n var(--diffs-bg-buffer) calc(3px * 1.414),\n var(--diffs-bg-buffer) calc(4px * 1.414));\n grid-column: 1;\n }\n\n [data-separator] {\n box-sizing: content-box;\n background-color: var(--diffs-bg);\n }\n\n [data-separator=\"simple\"] {\n min-height: 4px;\n }\n\n [data-separator=\"line-info\"], [data-separator=\"line-info-basic\"], [data-separator=\"metadata\"], [data-separator=\"simple\"] {\n background-color: var(--diffs-bg-separator);\n }\n\n [data-separator=\"line-info\"], [data-separator=\"line-info-basic\"], [data-separator=\"metadata\"] {\n height: 32px;\n position: relative;\n }\n\n [data-separator-wrapper] {\n user-select: none;\n fill: currentColor;\n background-color: var(--diffs-bg);\n align-items: center;\n height: 100%;\n display: flex;\n position: absolute;\n inset-inline: 0;\n }\n\n [data-content] [data-separator-wrapper] {\n display: none;\n }\n\n [data-separator=\"metadata\"] [data-separator-wrapper] {\n background-color: var(--diffs-bg-separator);\n height: 100%;\n color: var(--diffs-fg-number);\n white-space: nowrap;\n text-overflow: ellipsis;\n min-width: min-content;\n padding-inline: 1ch;\n inset-inline: 100% auto;\n overflow: hidden;\n }\n\n [data-separator=\"line-info\"] {\n margin-block: var(--diffs-gap-block, var(--diffs-gap-fallback));\n\n & [data-separator-wrapper] {\n min-width: 16px;\n }\n }\n\n [data-separator=\"line-info-basic\"], [data-separator=\"metadata\"] {\n margin-block: 0;\n }\n\n [data-separator=\"line-info\"][data-separator-first] {\n margin-top: 0;\n }\n\n [data-separator=\"line-info\"][data-separator-last] {\n margin-bottom: 0;\n }\n\n [data-expand-index] [data-separator-wrapper] {\n grid-template-columns: 32px auto;\n display: grid;\n }\n\n [data-expand-index] [data-separator-wrapper][data-separator-multi-button] {\n grid-template-columns: 32px 32px auto;\n }\n\n [data-expand-button], [data-separator-content] {\n background-color: var(--diffs-bg-separator);\n flex: none;\n align-items: center;\n display: flex;\n }\n\n [data-expand-index] [data-separator-content]:hover {\n cursor: pointer;\n text-decoration: underline;\n }\n\n [data-expand-button] {\n cursor: pointer;\n min-width: 32px;\n color: var(--diffs-fg-number);\n border-right: 2px solid var(--diffs-bg);\n flex-shrink: 0;\n justify-content: center;\n align-self: stretch;\n\n &:hover {\n color: var(--diffs-fg);\n }\n\n &[data-expand-all-button] {\n display: none;\n }\n }\n\n [data-expand-down] [data-icon] {\n transform: scaleY(-1);\n }\n\n [data-separator-content] {\n height: 100%;\n color: var(--diffs-fg-number);\n flex: auto;\n justify-content: flex-start;\n padding: 0 1ch;\n overflow: hidden;\n }\n\n [data-separator=\"line-info\"], [data-separator=\"line-info-basic\"] {\n & [data-separator-content] {\n user-select: none;\n height: 100%;\n overflow: clip;\n }\n }\n\n [data-unmodified-lines] {\n text-overflow: ellipsis;\n white-space: nowrap;\n flex: 0 auto;\n min-width: 0;\n display: block;\n overflow: hidden;\n }\n\n @supports (width: 1cqi) {\n [data-unified] {\n & [data-separator=\"line-info\"] [data-separator-wrapper] {\n padding-inline: var(--diffs-gap-inline, var(--diffs-gap-fallback));\n width: 100cqi;\n\n & [data-separator-content] {\n border-radius: 6px;\n }\n }\n\n & [data-separator=\"line-info\"][data-expand-index] [data-separator-wrapper] [data-separator-content] {\n border-top-left-radius: unset;\n border-bottom-left-radius: unset;\n }\n }\n\n [data-gutter] {\n & [data-separator=\"line-info\"] [data-separator-wrapper] {\n padding-left: var(--diffs-gap-inline, var(--diffs-gap-fallback));\n }\n\n & [data-separator=\"line-info\"] [data-separator-content] {\n border-top-left-radius: 6px;\n border-bottom-left-radius: 6px;\n }\n\n & [data-separator=\"line-info\"][data-expand-index] [data-separator-content] {\n border-top-left-radius: unset;\n border-bottom-left-radius: unset;\n }\n }\n\n [data-additions] {\n & [data-content] [data-separator=\"line-info\"] {\n background-color: var(--diffs-bg);\n\n & [data-separator-wrapper] {\n display: none;\n }\n }\n\n & [data-gutter] [data-separator=\"line-info\"] [data-separator-wrapper] {\n background-color: var(--diffs-bg-separator);\n border-top-right-radius: 6px;\n border-bottom-right-radius: 6px;\n height: 100%;\n display: block;\n\n & [data-separator-content], & [data-expand-button] {\n display: none;\n }\n }\n }\n\n [data-overflow=\"scroll\"] [data-additions] [data-gutter] [data-separator=\"line-info\"] [data-separator-wrapper] {\n width: calc(100cqi - var(--diffs-gap-inline, var(--diffs-gap-fallback)));\n }\n\n [data-overflow=\"wrap\"] [data-additions] [data-content] [data-separator=\"line-info\"] [data-separator-wrapper] {\n background-color: var(--diffs-bg-separator);\n height: 100%;\n margin-right: var(--diffs-gap-inline, var(--diffs-gap-fallback));\n border-top-right-radius: 6px;\n border-bottom-right-radius: 6px;\n display: block;\n\n & [data-separator-content], & [data-expand-button] {\n display: none;\n }\n }\n\n [data-separator=\"line-info\"] [data-separator-wrapper] {\n & [data-expand-both], & [data-expand-down], & [data-expand-up] {\n border-top-left-radius: 6px;\n border-bottom-left-radius: 6px;\n }\n }\n\n @media (pointer: fine) {\n [data-separator=\"line-info\"] [data-separator-wrapper] {\n &[data-separator-multi-button] {\n & [data-expand-up] {\n border-top-left-radius: 6px;\n border-bottom-left-radius: unset;\n }\n\n & [data-expand-down] {\n border-bottom-left-radius: 6px;\n border-top-left-radius: unset;\n }\n }\n }\n }\n }\n\n @media (pointer: coarse) {\n [data-separator=\"line-info-basic\"] [data-separator-wrapper][data-separator-multi-button] {\n grid-template-columns: 34px 34px auto;\n\n & [data-separator-content] {\n grid-column: unset;\n grid-row: unset;\n }\n }\n\n @supports (width: 1cqi) {\n [data-separator=\"line-info\"] [data-separator-wrapper] {\n & [data-expand-both], & [data-expand-down], & [data-expand-up] {\n border-top-left-radius: 6px;\n border-bottom-left-radius: 6px;\n }\n\n &[data-separator-multi-button] {\n & [data-expand-up] {\n border-top-left-radius: 6px;\n border-bottom-left-radius: 6px;\n }\n\n & [data-expand-down] {\n border-bottom-left-radius: unset;\n border-top-left-radius: unset;\n }\n }\n }\n }\n }\n\n @media (pointer: fine) {\n [data-separator-wrapper][data-separator-multi-button] {\n grid-template-rows: 50% 50%;\n display: grid;\n\n & [data-separator-content] {\n grid-area: 1 / 2 / -1;\n min-width: min-content;\n }\n\n & [data-expand-button] {\n grid-column: 1;\n }\n }\n\n [data-separator=\"line-info\"] [data-separator-wrapper], [data-separator=\"line-info\"] [data-separator-wrapper][data-separator-multi-button] {\n grid-template-columns: 34px auto;\n }\n\n [data-separator=\"line-info-basic\"][data-expand-index] [data-separator-wrapper] {\n grid-template-columns: 100% auto;\n }\n\n [data-separator=\"line-info\"], [data-separator=\"line-info-basic\"] {\n & [data-separator-multi-button] {\n & [data-expand-up] {\n border-bottom: 1px solid var(--diffs-bg);\n border-right: 2px solid var(--diffs-bg);\n }\n\n & [data-expand-down] {\n border-top: 1px solid var(--diffs-bg);\n border-right: 2px solid var(--diffs-bg);\n }\n }\n }\n }\n\n [data-additions] [data-gutter] [data-separator-wrapper], [data-additions] [data-separator=\"line-info-basic\"] [data-separator-wrapper], [data-content] [data-separator-wrapper] {\n display: none;\n }\n\n [data-line-annotation] {\n min-height: var(--diffs-annotation-min-height, 0);\n z-index: 2;\n }\n\n [data-merge-conflict-actions] {\n z-index: 2;\n }\n\n [data-separator=\"custom\"] {\n grid-template-columns: subgrid;\n display: grid;\n }\n\n [data-line], [data-column-number], [data-no-newline] {\n padding-inline: 1ch;\n position: relative;\n }\n\n [data-indicators=\"classic\"] [data-line] {\n padding-inline-start: 2ch;\n }\n\n [data-indicators=\"classic\"] {\n & [data-line-type=\"change-addition\"], & [data-line-type=\"change-deletion\"] {\n &[data-no-newline], &[data-line] {\n &:before {\n user-select: none;\n width: 1ch;\n height: 1lh;\n display: inline-block;\n position: absolute;\n top: 0;\n left: 0;\n }\n }\n }\n\n & [data-line-type=\"change-addition\"] {\n &[data-line], &[data-no-newline] {\n &:before {\n content: \"+\";\n color: var(--diffs-addition-base);\n }\n }\n }\n\n & [data-line-type=\"change-deletion\"] {\n &[data-line], &[data-no-newline] {\n &:before {\n content: \"-\";\n color: var(--diffs-deletion-base);\n }\n }\n }\n }\n\n [data-indicators=\"bars\"] {\n & [data-line-type=\"change-deletion\"], & [data-line-type=\"change-addition\"] {\n &[data-column-number] {\n &:before {\n content: \"\";\n user-select: none;\n contain: strict;\n width: 4px;\n height: 100%;\n display: block;\n position: absolute;\n top: 0;\n left: 0;\n }\n }\n }\n\n & [data-line-type=\"change-deletion\"] {\n &[data-column-number] {\n &:before {\n background-image: linear-gradient(0deg,\n var(--diffs-bg-deletion) 50%,\n var(--diffs-deletion-base) 50%);\n background-repeat: repeat;\n background-size: 2px 2px;\n background-size: calc(1lh / round(1lh / 2px))\n calc(1lh / round(1lh / 2px));\n }\n }\n }\n\n & [data-line-type=\"change-addition\"] {\n &[data-column-number] {\n &:before {\n background-color: var(--diffs-addition-base);\n }\n }\n }\n }\n\n [data-overflow=\"wrap\"] {\n & [data-line] {\n white-space: pre-wrap;\n word-break: break-word;\n }\n\n & [data-annotation-content] {\n word-break: break-word;\n }\n }\n\n [data-overflow=\"scroll\"] [data-line] {\n white-space: pre;\n min-height: 1lh;\n }\n\n [data-column-number] {\n box-sizing: content-box;\n text-align: right;\n user-select: none;\n color: var(--diffs-fg-number);\n padding-left: 2ch;\n }\n\n [data-line-number-content] {\n min-width: var(--diffs-min-number-column-width, var(--diffs-min-number-column-width-default, 3ch));\n z-index: 1;\n display: inline-block;\n position: relative;\n }\n\n [data-disable-line-numbers] {\n & [data-gutter-buffer], & [data-column-number] {\n min-width: 4px;\n padding: 0;\n\n &:before {\n min-width: 0;\n }\n }\n\n & [data-line-number-content] {\n display: none;\n }\n\n & [data-gutter-utility-slot] {\n right: unset;\n justify-content: flex-start;\n left: 0;\n }\n\n &[data-indicators=\"bars\"] [data-gutter-utility-slot] {\n left: 6px;\n }\n }\n\n [data-file][data-disable-line-numbers] {\n & [data-gutter-buffer], & [data-column-number] {\n border-right: 0;\n min-width: 0;\n }\n }\n\n [data-diff-span] {\n box-decoration-break: clone;\n border-radius: 3px;\n }\n\n [data-line-type=\"change-addition\"] [data-diff-span] {\n background-color: var(--diffs-bg-addition-emphasis);\n }\n\n [data-line-type=\"change-deletion\"] [data-diff-span] {\n background-color: var(--diffs-bg-deletion-emphasis);\n }\n\n [data-merge-conflict=\"marker-start\"], [data-merge-conflict=\"marker-base\"], [data-merge-conflict=\"marker-separator\"], [data-merge-conflict=\"marker-end\"] {\n color: var(--diffs-fg);\n padding-left: 1ch;\n }\n\n [data-merge-conflict=\"marker-start\"], [data-merge-conflict=\"marker-end\"] {\n align-items: center;\n display: flex;\n\n &:after {\n color: var(--diffs-fg-conflict-marker);\n font-size: .75rem;\n font-style: normal;\n line-height: 1.25rem;\n font-family: var(--diffs-header-font-family, var(--diffs-header-font-fallback));\n padding-left: 1ch;\n }\n }\n\n [data-merge-conflict=\"marker-start\"]:after {\n content: \"(Current Change)\";\n }\n\n [data-merge-conflict=\"marker-end\"]:after {\n content: \"(Incoming Change)\";\n }\n\n [data-merge-conflict-actions-content] {\n min-height: 1.75rem;\n font-family: var(--diffs-header-font-family, var(--diffs-header-font-fallback));\n color: var(--diffs-fg);\n align-items: center;\n gap: .25rem;\n padding-inline: .5rem;\n font-size: .75rem;\n line-height: 1.2;\n display: flex;\n }\n\n [data-merge-conflict-action] {\n appearance: none;\n color: var(--diffs-fg-number);\n font: inherit;\n cursor: pointer;\n background: none;\n border: 0;\n padding: 0;\n font-style: normal;\n }\n\n [data-merge-conflict-action]:hover {\n color: var(--diffs-fg);\n }\n\n [data-merge-conflict-action=\"current\"]:hover {\n color: var(--diffs-addition-base);\n }\n\n [data-merge-conflict-action=\"incoming\"]:hover {\n color: var(--diffs-modified-base);\n }\n\n [data-merge-conflict-action-separator] {\n color: var(--diffs-fg-number);\n opacity: .6;\n user-select: none;\n }\n\n [data-diffs-header=\"default\"] {\n background-color: var(--diffs-bg);\n justify-content: space-between;\n align-items: center;\n gap: var(--diffs-gap-inline, var(--diffs-gap-fallback));\n min-height: calc(1lh + (var(--diffs-gap-block, var(--diffs-gap-fallback)) * 3));\n z-index: 2;\n flex-direction: row;\n padding-inline: 16px;\n display: flex;\n position: relative;\n top: 0;\n }\n\n [data-header-content] {\n align-items: center;\n gap: var(--diffs-gap-inline, var(--diffs-gap-fallback));\n white-space: nowrap;\n flex-direction: row;\n min-width: 0;\n display: flex;\n }\n\n [data-header-content] [data-prev-name], [data-header-content] [data-title] {\n text-overflow: ellipsis;\n white-space: nowrap;\n direction: rtl;\n min-width: 0;\n overflow: hidden;\n }\n\n [data-prev-name] {\n opacity: .7;\n }\n\n [data-rename-icon] {\n fill: currentColor;\n flex-grow: 0;\n flex-shrink: 0;\n }\n\n [data-diffs-header=\"default\"] [data-metadata] {\n white-space: nowrap;\n align-items: center;\n gap: 1ch;\n display: flex;\n }\n\n [data-diffs-header=\"default\"] [data-additions-count] {\n font-family: var(--diffs-font-family, var(--diffs-font-fallback));\n color: var(--diffs-addition-base);\n }\n\n [data-diffs-header=\"default\"] [data-deletions-count] {\n font-family: var(--diffs-font-family, var(--diffs-font-fallback));\n color: var(--diffs-deletion-base);\n }\n\n [data-change-icon] {\n fill: currentColor;\n flex-shrink: 0;\n }\n\n [data-change-icon=\"change\"], [data-change-icon=\"rename-pure\"], [data-change-icon=\"rename-changed\"] {\n color: var(--diffs-modified-base);\n }\n\n [data-change-icon=\"new\"] {\n color: var(--diffs-addition-base);\n }\n\n [data-change-icon=\"deleted\"] {\n color: var(--diffs-deletion-base);\n }\n\n [data-change-icon=\"file\"] {\n opacity: .6;\n }\n\n [data-annotation-content] {\n z-index: 2;\n isolation: isolate;\n white-space: normal;\n align-self: flex-start;\n min-width: 0;\n display: flow-root;\n position: relative;\n }\n\n [data-overflow=\"scroll\"] [data-annotation-content], [data-overflow=\"scroll\"] [data-merge-conflict-actions-content] {\n width: var(--diffs-column-content-width, auto);\n left: var(--diffs-column-number-width, 0);\n position: sticky;\n }\n\n [data-annotation-slot] {\n text-wrap-mode: wrap;\n word-break: normal;\n white-space-collapse: collapse;\n }\n\n [data-gutter-utility-slot] {\n touch-action: none;\n justify-content: flex-end;\n display: flex;\n position: absolute;\n top: 0;\n bottom: 0;\n right: 0;\n }\n\n [data-utility-button] {\n appearance: none;\n cursor: pointer;\n width: 1lh;\n height: 1lh;\n font-size: var(--diffs-font-size, 13px);\n line-height: var(--diffs-line-height, 20px);\n background-color: var(--diffs-modified-base);\n color: var(--diffs-bg);\n fill: currentColor;\n z-index: 4;\n touch-action: none;\n border: none;\n border-radius: 4px;\n justify-content: center;\n align-items: center;\n margin-right: calc(-1lh + 1ch);\n padding: 0;\n display: flex;\n position: relative;\n\n &:before {\n content: \"\";\n display: block;\n position: absolute;\n inset: 0 0 0 -4px;\n }\n }\n\n [data-decoration-bar-stack] {\n pointer-events: none;\n isolation: isolate;\n z-index: 1;\n background-color: var(--diffs-decoration-bar-color, transparent);\n box-sizing: content-box;\n border-left: 2px solid var(--diffs-bg);\n border-right: 2px solid var(--diffs-bg);\n width: 6px;\n position: absolute;\n top: 0;\n bottom: 0;\n right: -2px;\n\n [data-decoration-bar-depth=\"1\"] & {\n background-color: color-mix(in lab,\n var(--diffs-bg) 20%,\n var(--diffs-decoration-bar-color, transparent));\n }\n\n [data-decoration-bar-depth=\"2\"] & {\n background-color: color-mix(in lab,\n var(--diffs-bg) 45%,\n var(--diffs-decoration-bar-color, transparent));\n }\n\n [data-decoration-bar-depth=\"3\"] & {\n background-color: color-mix(in lab,\n var(--diffs-bg) 65%,\n var(--diffs-decoration-bar-color, transparent));\n }\n\n [data-decoration-bar-start] & {\n border-top-left-radius: 5px;\n border-top-right-radius: 5px;\n }\n\n [data-decoration-bar-end] & {\n z-index: 3;\n border-bottom-right-radius: 5px;\n border-bottom-left-radius: 5px;\n }\n }\n\n [data-placeholder] {\n contain: strict;\n }\n\n [data-error-wrapper] {\n padding: var(--diffs-gap-block, var(--diffs-gap-fallback))\n var(--diffs-gap-inline, var(--diffs-gap-fallback));\n scrollbar-width: none;\n max-height: 400px;\n overflow: auto;\n\n & [data-error-message] {\n color: var(--diffs-deletion-base);\n font-size: 18px;\n font-weight: bold;\n }\n\n & [data-error-stack] {\n color: var(--diffs-fg-number);\n }\n }\n}\n\n@layer theme, rendered, unsafe;\n", Ug = "@layer base, theme, rendered, unsafe;", Wg = RegExp(`${Jg(be)}\\s*:\\s*[^;]+;`);
|
|
15618
15618
|
function Gg(e) {
|
|
15619
15619
|
return `${Ug}
|
|
@@ -15639,12 +15639,12 @@ function Jg(e) {
|
|
|
15639
15639
|
return e.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
|
|
15640
15640
|
}
|
|
15641
15641
|
//#endregion
|
|
15642
|
-
//#region ../../node_modules/.pnpm/@pierre+diffs@1.3.
|
|
15642
|
+
//#region ../../node_modules/.pnpm/@pierre+diffs@1.3.5_patch_hash=ce17810cfea58efa02eb4e70947801afb36c9f8a08a8bb4c810297c2_569c0a392647ba6dd2f0ac61848dddca/node_modules/@pierre/diffs/dist/utils/shouldUseTokenTransformer.js
|
|
15643
15643
|
function Yg(e) {
|
|
15644
15644
|
return e?.useTokenTransformer === !0 || e?.onTokenClick != null || e?.onTokenEnter != null || e?.onTokenLeave != null;
|
|
15645
15645
|
}
|
|
15646
15646
|
//#endregion
|
|
15647
|
-
//#region ../../node_modules/.pnpm/@pierre+diffs@1.3.
|
|
15647
|
+
//#region ../../node_modules/.pnpm/@pierre+diffs@1.3.5_patch_hash=ce17810cfea58efa02eb4e70947801afb36c9f8a08a8bb4c810297c2_569c0a392647ba6dd2f0ac61848dddca/node_modules/@pierre/diffs/dist/utils/getFileRendererOptions.js
|
|
15648
15648
|
function Xg(e) {
|
|
15649
15649
|
return {
|
|
15650
15650
|
theme: e?.theme,
|
|
@@ -15665,12 +15665,12 @@ function Xg(e) {
|
|
|
15665
15665
|
};
|
|
15666
15666
|
}
|
|
15667
15667
|
//#endregion
|
|
15668
|
-
//#region ../../node_modules/.pnpm/@pierre+diffs@1.3.
|
|
15668
|
+
//#region ../../node_modules/.pnpm/@pierre+diffs@1.3.5_patch_hash=ce17810cfea58efa02eb4e70947801afb36c9f8a08a8bb4c810297c2_569c0a392647ba6dd2f0ac61848dddca/node_modules/@pierre/diffs/dist/utils/getOrCreateCodeNode.js
|
|
15669
15669
|
function Zg({ code: e, pre: t, columnType: n, rowSpan: r, containerSize: i = !1 } = {}) {
|
|
15670
15670
|
return e ?? (e = document.createElement("code"), e.setAttribute("data-code", ""), n != null && e.setAttribute(`data-${n}`, ""), t?.appendChild(e)), r == null ? e.style.removeProperty("grid-row") : e.style.setProperty("grid-row", `span ${r}`), i ? e.setAttribute("data-container-size", "") : e.removeAttribute("data-container-size"), e;
|
|
15671
15671
|
}
|
|
15672
15672
|
//#endregion
|
|
15673
|
-
//#region ../../node_modules/.pnpm/@pierre+diffs@1.3.
|
|
15673
|
+
//#region ../../node_modules/.pnpm/@pierre+diffs@1.3.5_patch_hash=ce17810cfea58efa02eb4e70947801afb36c9f8a08a8bb4c810297c2_569c0a392647ba6dd2f0ac61848dddca/node_modules/@pierre/diffs/dist/utils/guardWebKitScrollDuringRebuild.js
|
|
15674
15674
|
function Qg(e, t) {
|
|
15675
15675
|
let n = e?.offsetHeight ?? 0;
|
|
15676
15676
|
if (e == null || n === 0) {
|
|
@@ -15685,34 +15685,46 @@ function Qg(e, t) {
|
|
|
15685
15685
|
}
|
|
15686
15686
|
}
|
|
15687
15687
|
//#endregion
|
|
15688
|
-
//#region ../../node_modules/.pnpm/@pierre+diffs@1.3.
|
|
15689
|
-
|
|
15688
|
+
//#region ../../node_modules/.pnpm/@pierre+diffs@1.3.5_patch_hash=ce17810cfea58efa02eb4e70947801afb36c9f8a08a8bb4c810297c2_569c0a392647ba6dd2f0ac61848dddca/node_modules/@pierre/diffs/dist/utils/hostTheme.js
|
|
15689
|
+
var $g = /* @__PURE__ */ new WeakMap();
|
|
15690
|
+
function e_(e) {
|
|
15691
|
+
return "adoptedStyleSheets" in e && typeof CSSStyleSheet < "u" && typeof CSSStyleSheet.prototype.replaceSync == "function";
|
|
15692
|
+
}
|
|
15693
|
+
function t_(e) {
|
|
15694
|
+
let t = $g.get(e);
|
|
15695
|
+
t !== void 0 && (e.adoptedStyleSheets = e.adoptedStyleSheets.filter((e) => e !== t), $g.delete(e));
|
|
15696
|
+
}
|
|
15697
|
+
function n_(e, t) {
|
|
15698
|
+
let n = $g.get(e);
|
|
15699
|
+
n === void 0 && (n = new CSSStyleSheet(), $g.set(e, n), e.adoptedStyleSheets = [...e.adoptedStyleSheets, n]), n.replaceSync(t);
|
|
15700
|
+
}
|
|
15701
|
+
function r_({ shadowRoot: e, currentNode: t, themeCSS: n }) {
|
|
15690
15702
|
if (n.trim() === "") {
|
|
15691
|
-
t?.remove();
|
|
15703
|
+
t?.remove(), t_(e);
|
|
15692
15704
|
return;
|
|
15693
15705
|
}
|
|
15694
|
-
return t ??=
|
|
15706
|
+
return e_(e) ? (t?.remove(), n_(e, n), t ?? i_()) : (t ??= i_(), t.textContent = n, t.parentNode !== e && e.appendChild(t), t);
|
|
15695
15707
|
}
|
|
15696
|
-
function
|
|
15708
|
+
function i_() {
|
|
15697
15709
|
let e = document.createElement("style");
|
|
15698
15710
|
return e.setAttribute(he, ""), e;
|
|
15699
15711
|
}
|
|
15700
15712
|
//#endregion
|
|
15701
|
-
//#region ../../node_modules/.pnpm/@pierre+diffs@1.3.
|
|
15702
|
-
var
|
|
15703
|
-
function
|
|
15704
|
-
return
|
|
15713
|
+
//#region ../../node_modules/.pnpm/@pierre+diffs@1.3.5_patch_hash=ce17810cfea58efa02eb4e70947801afb36c9f8a08a8bb4c810297c2_569c0a392647ba6dd2f0ac61848dddca/node_modules/@pierre/diffs/dist/utils/platform.js
|
|
15714
|
+
var a_ = void 0;
|
|
15715
|
+
function o_() {
|
|
15716
|
+
return a_ ??= "safari" in window && "pushNotification" in window.safari || /^((?!chrome|android).)*safari/i.test(navigator.userAgent);
|
|
15705
15717
|
}
|
|
15706
15718
|
//#endregion
|
|
15707
|
-
//#region ../../node_modules/.pnpm/@pierre+diffs@1.3.
|
|
15708
|
-
function
|
|
15719
|
+
//#region ../../node_modules/.pnpm/@pierre+diffs@1.3.5_patch_hash=ce17810cfea58efa02eb4e70947801afb36c9f8a08a8bb4c810297c2_569c0a392647ba6dd2f0ac61848dddca/node_modules/@pierre/diffs/dist/utils/prerenderHTMLIfNecessary.js
|
|
15720
|
+
function s_(e, t) {
|
|
15709
15721
|
if (t == null) return;
|
|
15710
15722
|
let n = e.shadowRoot ?? e.attachShadow({ mode: "open" });
|
|
15711
15723
|
n.innerHTML === "" && (n.innerHTML = t);
|
|
15712
15724
|
}
|
|
15713
15725
|
//#endregion
|
|
15714
|
-
//#region ../../node_modules/.pnpm/@pierre+diffs@1.3.
|
|
15715
|
-
function
|
|
15726
|
+
//#region ../../node_modules/.pnpm/@pierre+diffs@1.3.5_patch_hash=ce17810cfea58efa02eb4e70947801afb36c9f8a08a8bb4c810297c2_569c0a392647ba6dd2f0ac61848dddca/node_modules/@pierre/diffs/dist/utils/setWrapperNodeProps.js
|
|
15727
|
+
function c_(e, { type: t, diffIndicators: n, disableBackground: r, disableLineNumbers: i, overflow: a, split: o, totalLines: s, customProperties: c }) {
|
|
15716
15728
|
if (c != null) for (let t in c) {
|
|
15717
15729
|
let n = c[t];
|
|
15718
15730
|
n != null && e.setAttribute(t, `${n}`);
|
|
@@ -15727,7 +15739,7 @@ function i_(e, { type: t, diffIndicators: n, disableBackground: r, disableLineNu
|
|
|
15727
15739
|
return i ? e.setAttribute("data-disable-line-numbers", "") : e.removeAttribute("data-disable-line-numbers"), r ? e.removeAttribute("data-background") : e.setAttribute("data-background", ""), t === "diff" ? e.setAttribute("data-diff-type", o ? "split" : "single") : e.removeAttribute("data-diff-type"), e.setAttribute("data-overflow", a), e.style.setProperty("--diffs-min-number-column-width-default", `${`${s}`.length}ch`), e;
|
|
15728
15740
|
}
|
|
15729
15741
|
//#endregion
|
|
15730
|
-
//#region ../../node_modules/.pnpm/@pierre+diffs@1.3.
|
|
15742
|
+
//#region ../../node_modules/.pnpm/@pierre+diffs@1.3.5_patch_hash=ce17810cfea58efa02eb4e70947801afb36c9f8a08a8bb4c810297c2_569c0a392647ba6dd2f0ac61848dddca/node_modules/@pierre/diffs/dist/components/web-components.js
|
|
15731
15743
|
if (typeof HTMLElement < "u" && customElements.get("diffs-container") == null) {
|
|
15732
15744
|
let e;
|
|
15733
15745
|
class t extends HTMLElement {
|
|
@@ -15743,13 +15755,13 @@ if (typeof HTMLElement < "u" && customElements.get("diffs-container") == null) {
|
|
|
15743
15755
|
customElements.define(ie, t);
|
|
15744
15756
|
}
|
|
15745
15757
|
//#endregion
|
|
15746
|
-
//#region ../../node_modules/.pnpm/@pierre+diffs@1.3.
|
|
15747
|
-
var
|
|
15758
|
+
//#region ../../node_modules/.pnpm/@pierre+diffs@1.3.5_patch_hash=ce17810cfea58efa02eb4e70947801afb36c9f8a08a8bb4c810297c2_569c0a392647ba6dd2f0ac61848dddca/node_modules/@pierre/diffs/dist/components/File.js
|
|
15759
|
+
var l_ = [""], u_ = -1, d_ = class {
|
|
15748
15760
|
options;
|
|
15749
15761
|
workerManager;
|
|
15750
15762
|
isContainerManaged;
|
|
15751
15763
|
static LoadedCustomComponent = !0;
|
|
15752
|
-
__id = `file:${++
|
|
15764
|
+
__id = `file:${++u_}`;
|
|
15753
15765
|
type = "file";
|
|
15754
15766
|
fileContainer;
|
|
15755
15767
|
spriteSVG;
|
|
@@ -15876,7 +15888,7 @@ var a_ = [""], o_ = -1, s_ = class {
|
|
|
15876
15888
|
let { fileContainer: t, prerenderedHTML: n, preventEmit: r = !1, file: i, lineAnnotations: a } = e;
|
|
15877
15889
|
if (!this.enabled) throw Error("File.hydrate: attempting to call hydrate after cleaned up");
|
|
15878
15890
|
if (this.fileContainer != null) throw Error("File.hydrate: hydrate can only be called before the instance has rendered or hydrated");
|
|
15879
|
-
this.hydrateElements(t, n),
|
|
15891
|
+
this.hydrateElements(t, n), f_(this.pre, i, this.options.collapsed) || p_(this.headerElement, i, this.options.disableFileHeader) ? this.render({
|
|
15880
15892
|
...e,
|
|
15881
15893
|
preventEmit: !0
|
|
15882
15894
|
}) : this.hydrationSetup({
|
|
@@ -15885,7 +15897,7 @@ var a_ = [""], o_ = -1, s_ = class {
|
|
|
15885
15897
|
}), r || this.emitPostRender();
|
|
15886
15898
|
}
|
|
15887
15899
|
hydrateElements(e, t) {
|
|
15888
|
-
this.fileContainer !== e && this.emitPostRender(!0),
|
|
15900
|
+
this.fileContainer !== e && this.emitPostRender(!0), s_(e, t);
|
|
15889
15901
|
for (let t of Array.from(e.shadowRoot?.children ?? [])) {
|
|
15890
15902
|
if (t instanceof SVGElement) {
|
|
15891
15903
|
this.spriteSVG = t;
|
|
@@ -15916,7 +15928,7 @@ var a_ = [""], o_ = -1, s_ = class {
|
|
|
15916
15928
|
this.lineAnnotations = t ?? this.lineAnnotations, this.file = e, this.fileRenderer.setOptions(Xg(this.options)), this.syncInteractionOptions(), this.pre != null && (this.fileRenderer.hydrate(e), this.renderAnnotations(), this.renderGutterUtility(), this.injectUnsafeCSS(), this.managersDirty = !0, this.flushManagers());
|
|
15917
15929
|
}
|
|
15918
15930
|
getOrCreateLineCache(e = this.file) {
|
|
15919
|
-
return e == null ?
|
|
15931
|
+
return e == null ? l_ : this.fileRenderer.getOrCreateLineCache(e);
|
|
15920
15932
|
}
|
|
15921
15933
|
updateBuffers(e) {
|
|
15922
15934
|
this.pre != null && this.applyBuffers(this.pre, e);
|
|
@@ -16087,7 +16099,7 @@ var a_ = [""], o_ = -1, s_ = class {
|
|
|
16087
16099
|
};
|
|
16088
16100
|
return;
|
|
16089
16101
|
}
|
|
16090
|
-
this.themeCSSStyle =
|
|
16102
|
+
this.themeCSSStyle = r_({
|
|
16091
16103
|
shadowRoot: i,
|
|
16092
16104
|
currentNode: this.themeCSSStyle,
|
|
16093
16105
|
themeCSS: Kg(t, a, c)
|
|
@@ -16104,7 +16116,7 @@ var a_ = [""], o_ = -1, s_ = class {
|
|
|
16104
16116
|
e != null && this.themeCSSStyle != null && (this.themeCSSStyle.textContent = qg(this.themeCSSStyle.textContent ?? "", Bg(e)));
|
|
16105
16117
|
}
|
|
16106
16118
|
shouldGuardRebuildScroll() {
|
|
16107
|
-
return this.editor != null &&
|
|
16119
|
+
return this.editor != null && o_();
|
|
16108
16120
|
}
|
|
16109
16121
|
applyFullRender(e, t) {
|
|
16110
16122
|
this.cleanupErrorWrapper(), this.applyPreNodeAttributes(t, e);
|
|
@@ -16265,7 +16277,7 @@ var a_ = [""], o_ = -1, s_ = class {
|
|
|
16265
16277
|
disableBackground: !0,
|
|
16266
16278
|
totalLines: t
|
|
16267
16279
|
};
|
|
16268
|
-
Ng(i, this.appliedPreAttributes) || (
|
|
16280
|
+
Ng(i, this.appliedPreAttributes) || (c_(e, i), this.appliedPreAttributes = i);
|
|
16269
16281
|
}
|
|
16270
16282
|
applyErrorToDOM(e, t) {
|
|
16271
16283
|
this.cleanupErrorWrapper(), this.pre?.remove(), this.pre = void 0, this.appliedPreAttributes = void 0;
|
|
@@ -16280,22 +16292,22 @@ var a_ = [""], o_ = -1, s_ = class {
|
|
|
16280
16292
|
this.errorWrapper?.remove(), this.errorWrapper = void 0;
|
|
16281
16293
|
}
|
|
16282
16294
|
};
|
|
16283
|
-
function
|
|
16295
|
+
function f_(e, t, n = !1) {
|
|
16284
16296
|
return !n && e == null && t != null;
|
|
16285
16297
|
}
|
|
16286
|
-
function
|
|
16298
|
+
function p_(e, t, n = !1) {
|
|
16287
16299
|
return e == null && t != null && !n;
|
|
16288
16300
|
}
|
|
16289
16301
|
//#endregion
|
|
16290
|
-
//#region ../../node_modules/.pnpm/@pierre+diffs@1.3.
|
|
16291
|
-
var
|
|
16292
|
-
function
|
|
16302
|
+
//#region ../../node_modules/.pnpm/@pierre+diffs@1.3.5_patch_hash=ce17810cfea58efa02eb4e70947801afb36c9f8a08a8bb4c810297c2_569c0a392647ba6dd2f0ac61848dddca/node_modules/@pierre/diffs/dist/components/VirtualizedFile.js
|
|
16303
|
+
var m_ = 5e3, h_ = -1;
|
|
16304
|
+
function g_(e, t) {
|
|
16293
16305
|
return (e.overflow ?? "scroll") !== (t.overflow ?? "scroll") || (e.collapsed ?? !1) !== (t.collapsed ?? !1) || (e.disableLineNumbers ?? !1) !== (t.disableLineNumbers ?? !1) || (e.disableFileHeader ?? !1) !== (t.disableFileHeader ?? !1) || e.unsafeCSS !== t.unsafeCSS;
|
|
16294
16306
|
}
|
|
16295
|
-
var
|
|
16307
|
+
var __ = class extends d_ {
|
|
16296
16308
|
virtualizer;
|
|
16297
16309
|
metrics;
|
|
16298
|
-
__id = `virtualized-file:${++
|
|
16310
|
+
__id = `virtualized-file:${++h_}`;
|
|
16299
16311
|
top;
|
|
16300
16312
|
height = 0;
|
|
16301
16313
|
cache = {
|
|
@@ -16333,7 +16345,7 @@ var p_ = class extends s_ {
|
|
|
16333
16345
|
setOptions(e) {
|
|
16334
16346
|
if (this.isAdvancedMode()) throw Error("VirtualizedFile.setOptions cannot be used inside CodeView. Update CodeView options instead.");
|
|
16335
16347
|
if (e == null) return;
|
|
16336
|
-
let { options: t } = this, n = !Xp(t, e), r =
|
|
16348
|
+
let { options: t } = this, n = !Xp(t, e), r = g_(t, e);
|
|
16337
16349
|
super.setOptions(e), r && this.resetLayoutCache(!0), n && (this.forceRenderOverride = !0), n && this.virtualizer.instanceChanged(this, r);
|
|
16338
16350
|
}
|
|
16339
16351
|
setThemeType(e) {
|
|
@@ -16352,7 +16364,7 @@ var p_ = class extends s_ {
|
|
|
16352
16364
|
if (!(n instanceof HTMLElement)) return e;
|
|
16353
16365
|
let r = Ph(this.lineAnnotations);
|
|
16354
16366
|
if (this.renderRange != null && r && Ih(this.renderRange)) {
|
|
16355
|
-
let t =
|
|
16367
|
+
let t = v_(n) ?? 0;
|
|
16356
16368
|
t !== this.cache.fileAnnotationHeight && (this.cache.fileAnnotationHeight = t, e = !0);
|
|
16357
16369
|
} else !r && this.cache.fileAnnotationHeight !== 0 && (this.cache.fileAnnotationHeight = 0, e = !0);
|
|
16358
16370
|
for (let t of n.children) {
|
|
@@ -16528,7 +16540,7 @@ var p_ = class extends s_ {
|
|
|
16528
16540
|
return this.virtualizer.type === "advanced";
|
|
16529
16541
|
}
|
|
16530
16542
|
addLayoutCheckpoint(e, t) {
|
|
16531
|
-
e %
|
|
16543
|
+
e % m_ === 0 && this.cache.checkpoints.push({
|
|
16532
16544
|
lineIndex: e,
|
|
16533
16545
|
top: t
|
|
16534
16546
|
});
|
|
@@ -16629,14 +16641,14 @@ var p_ = class extends s_ {
|
|
|
16629
16641
|
};
|
|
16630
16642
|
}
|
|
16631
16643
|
};
|
|
16632
|
-
function
|
|
16644
|
+
function v_(e) {
|
|
16633
16645
|
let t;
|
|
16634
16646
|
for (let n of e.children) n instanceof HTMLElement && n.dataset.lineAnnotation === Nh && (t = Math.max(t ?? 0, n.getBoundingClientRect().height));
|
|
16635
16647
|
return t;
|
|
16636
16648
|
}
|
|
16637
16649
|
//#endregion
|
|
16638
|
-
//#region ../../node_modules/.pnpm/@pierre+diffs@1.3.
|
|
16639
|
-
async function
|
|
16650
|
+
//#region ../../node_modules/.pnpm/@pierre+diffs@1.3.5_patch_hash=ce17810cfea58efa02eb4e70947801afb36c9f8a08a8bb4c810297c2_569c0a392647ba6dd2f0ac61848dddca/node_modules/@pierre/diffs/dist/utils/awaitWithTimeout.js
|
|
16651
|
+
async function y_(e, t = 300) {
|
|
16640
16652
|
let n;
|
|
16641
16653
|
try {
|
|
16642
16654
|
await Promise.race([e(), new Promise((e) => {
|
|
@@ -16647,8 +16659,8 @@ async function h_(e, t = 300) {
|
|
|
16647
16659
|
}
|
|
16648
16660
|
}
|
|
16649
16661
|
//#endregion
|
|
16650
|
-
//#region ../../node_modules/.pnpm/@pierre+diffs@1.3.
|
|
16651
|
-
function
|
|
16662
|
+
//#region ../../node_modules/.pnpm/@pierre+diffs@1.3.5_patch_hash=ce17810cfea58efa02eb4e70947801afb36c9f8a08a8bb4c810297c2_569c0a392647ba6dd2f0ac61848dddca/node_modules/@pierre/diffs/dist/utils/computeEstimatedDiffHeights.js
|
|
16663
|
+
function b_({ fileDiff: e, metrics: t, disableFileHeader: n, hunkSeparators: r, expandUnchanged: i, expandedHunks: a, collapsedContextThreshold: o, canHydratePartialDiff: s }) {
|
|
16652
16664
|
let c = Sf(t, n), l = c, u = i ? !0 : a, d = e.hunks.length - 1;
|
|
16653
16665
|
for (let n = 0; n < e.hunks.length; n++) {
|
|
16654
16666
|
let i = e.hunks[n];
|
|
@@ -16670,7 +16682,7 @@ function g_({ fileDiff: e, metrics: t, disableFileHeader: n, hunkSeparators: r,
|
|
|
16670
16682
|
c += e, l += e;
|
|
16671
16683
|
}
|
|
16672
16684
|
c += i.splitLineCount * t.lineHeight, l += i.unifiedLineCount * t.lineHeight;
|
|
16673
|
-
let p =
|
|
16685
|
+
let p = x_(i);
|
|
16674
16686
|
c += p.split * t.lineHeight, l += p.unified * t.lineHeight;
|
|
16675
16687
|
let m = n === d ? Af({
|
|
16676
16688
|
fileDiff: e,
|
|
@@ -16705,7 +16717,7 @@ function g_({ fileDiff: e, metrics: t, disableFileHeader: n, hunkSeparators: r,
|
|
|
16705
16717
|
unifiedHeight: l
|
|
16706
16718
|
};
|
|
16707
16719
|
}
|
|
16708
|
-
function
|
|
16720
|
+
function x_(e) {
|
|
16709
16721
|
if (!e.noEOFCRAdditions && !e.noEOFCRDeletions) return {
|
|
16710
16722
|
split: 0,
|
|
16711
16723
|
unified: 0
|
|
@@ -16722,9 +16734,9 @@ function __(e) {
|
|
|
16722
16734
|
unified: e
|
|
16723
16735
|
};
|
|
16724
16736
|
}
|
|
16725
|
-
return
|
|
16737
|
+
return S_(e, t);
|
|
16726
16738
|
}
|
|
16727
|
-
function
|
|
16739
|
+
function S_(e, t) {
|
|
16728
16740
|
let n = (t.deletions > 0 && e.noEOFCRDeletions ? 1 : 0) + (t.additions > 0 && e.noEOFCRAdditions ? 1 : 0), r = t.deletions > 0 && e.noEOFCRDeletions, i = t.additions > 0 && e.noEOFCRAdditions;
|
|
16729
16741
|
return {
|
|
16730
16742
|
split: r || i ? 1 : 0,
|
|
@@ -16732,8 +16744,8 @@ function v_(e, t) {
|
|
|
16732
16744
|
};
|
|
16733
16745
|
}
|
|
16734
16746
|
//#endregion
|
|
16735
|
-
//#region ../../node_modules/.pnpm/@pierre+diffs@1.3.
|
|
16736
|
-
function
|
|
16747
|
+
//#region ../../node_modules/.pnpm/@pierre+diffs@1.3.5_patch_hash=ce17810cfea58efa02eb4e70947801afb36c9f8a08a8bb4c810297c2_569c0a392647ba6dd2f0ac61848dddca/node_modules/@pierre/diffs/dist/utils/getDiffFileInput.js
|
|
16748
|
+
function C_({ oldFile: e, newFile: t }, n) {
|
|
16737
16749
|
if (e !== void 0 || t !== void 0) {
|
|
16738
16750
|
if (e === void 0 || t === void 0) throw Error(`${n}: Pass null for an intentionally missing oldFile or newFile side`);
|
|
16739
16751
|
if (e === null) {
|
|
@@ -16750,8 +16762,8 @@ function y_({ oldFile: e, newFile: t }, n) {
|
|
|
16750
16762
|
}
|
|
16751
16763
|
}
|
|
16752
16764
|
//#endregion
|
|
16753
|
-
//#region ../../node_modules/.pnpm/@pierre+diffs@1.3.
|
|
16754
|
-
function
|
|
16765
|
+
//#region ../../node_modules/.pnpm/@pierre+diffs@1.3.5_patch_hash=ce17810cfea58efa02eb4e70947801afb36c9f8a08a8bb4c810297c2_569c0a392647ba6dd2f0ac61848dddca/node_modules/@pierre/diffs/dist/utils/cloneFileDiffMetadata.js
|
|
16766
|
+
function w_(e) {
|
|
16755
16767
|
return {
|
|
16756
16768
|
...e,
|
|
16757
16769
|
hunks: e.hunks.map((e) => ({
|
|
@@ -16763,32 +16775,32 @@ function b_(e) {
|
|
|
16763
16775
|
};
|
|
16764
16776
|
}
|
|
16765
16777
|
//#endregion
|
|
16766
|
-
//#region ../../node_modules/.pnpm/@pierre+diffs@1.3.
|
|
16767
|
-
function
|
|
16778
|
+
//#region ../../node_modules/.pnpm/@pierre+diffs@1.3.5_patch_hash=ce17810cfea58efa02eb4e70947801afb36c9f8a08a8bb4c810297c2_569c0a392647ba6dd2f0ac61848dddca/node_modules/@pierre/diffs/dist/utils/splitFileContents.js
|
|
16779
|
+
function T_(e) {
|
|
16768
16780
|
return e === "" ? [] : e.split(oe);
|
|
16769
16781
|
}
|
|
16770
16782
|
//#endregion
|
|
16771
|
-
//#region ../../node_modules/.pnpm/@pierre+diffs@1.3.
|
|
16772
|
-
function
|
|
16773
|
-
let r = e === "clone" ?
|
|
16783
|
+
//#region ../../node_modules/.pnpm/@pierre+diffs@1.3.5_patch_hash=ce17810cfea58efa02eb4e70947801afb36c9f8a08a8bb4c810297c2_569c0a392647ba6dd2f0ac61848dddca/node_modules/@pierre/diffs/dist/utils/hydratePartialDiff.js
|
|
16784
|
+
function E_(e, t, n) {
|
|
16785
|
+
let r = e === "clone" ? w_(t) : t;
|
|
16774
16786
|
if (!r.isPartial) throw Error("hydratePartialDiff: fileDiff must be partial");
|
|
16775
16787
|
switch (r.type) {
|
|
16776
16788
|
case "change":
|
|
16777
|
-
case "rename-changed": return
|
|
16789
|
+
case "rename-changed": return D_(r, k_(r, n), A_(r, n));
|
|
16778
16790
|
case "rename-pure": {
|
|
16779
|
-
let e =
|
|
16780
|
-
|
|
16781
|
-
let t =
|
|
16782
|
-
return r.isPartial = !1, r.deletionLines = t, r.additionLines = t,
|
|
16791
|
+
let e = A_(r, n);
|
|
16792
|
+
j_(r, n);
|
|
16793
|
+
let t = T_(e.contents);
|
|
16794
|
+
return r.isPartial = !1, r.deletionLines = t, r.additionLines = t, N_(r, null, e), r;
|
|
16783
16795
|
}
|
|
16784
16796
|
}
|
|
16785
16797
|
throw Error(`hydratePartialDiff: ${r.type} diffs cannot be hydrated from loaded files`);
|
|
16786
16798
|
}
|
|
16787
|
-
function
|
|
16788
|
-
let r =
|
|
16789
|
-
return e.hunks = a, e.splitLineCount = o, e.unifiedLineCount = s, e.isPartial = !1, e.deletionLines = r, e.additionLines = i,
|
|
16799
|
+
function D_(e, t, n) {
|
|
16800
|
+
let r = T_(t.contents), i = T_(n.contents), { hunks: a, splitLineCount: o, unifiedLineCount: s } = O_(e.hunks, i.length);
|
|
16801
|
+
return e.hunks = a, e.splitLineCount = o, e.unifiedLineCount = s, e.isPartial = !1, e.deletionLines = r, e.additionLines = i, N_(e, t, n), e;
|
|
16790
16802
|
}
|
|
16791
|
-
function
|
|
16803
|
+
function O_(e, t) {
|
|
16792
16804
|
let n = 0, r = 0, i = 0, a = [];
|
|
16793
16805
|
for (let t of e) {
|
|
16794
16806
|
let e = Math.max(t.additionStart - 1, 0), o = Math.max(t.deletionStart - 1, 0), s = e, c = o, l = 0, u = 0, d = 0, f = 0, p = [];
|
|
@@ -16832,34 +16844,34 @@ function w_(e, t) {
|
|
|
16832
16844
|
unifiedLineCount: r
|
|
16833
16845
|
};
|
|
16834
16846
|
}
|
|
16835
|
-
function
|
|
16847
|
+
function k_(e, t) {
|
|
16836
16848
|
if (t.oldFile == null) throw Error(`hydratePartialDiff: ${e.type} diff for ${e.name} requires oldFile`);
|
|
16837
16849
|
return t.oldFile;
|
|
16838
16850
|
}
|
|
16839
|
-
function
|
|
16851
|
+
function A_(e, t) {
|
|
16840
16852
|
if (t.newFile == null) throw Error(`hydratePartialDiff: ${e.type} diff for ${e.name} requires newFile`);
|
|
16841
16853
|
return t.newFile;
|
|
16842
16854
|
}
|
|
16843
|
-
function
|
|
16855
|
+
function j_(e, t) {
|
|
16844
16856
|
if (t.oldFile !== null) throw Error(`hydratePartialDiff: ${e.type} diff for ${e.name} requires oldFile to be null`);
|
|
16845
16857
|
}
|
|
16846
|
-
function
|
|
16847
|
-
return e.cacheKey == null ?
|
|
16858
|
+
function M_(e, t, n) {
|
|
16859
|
+
return e.cacheKey == null ? P_(t, n) : `${e.cacheKey}:hydrated`;
|
|
16848
16860
|
}
|
|
16849
|
-
function
|
|
16850
|
-
let r =
|
|
16861
|
+
function N_(e, t, n) {
|
|
16862
|
+
let r = M_(e, t, n);
|
|
16851
16863
|
if (r == null) {
|
|
16852
16864
|
delete e.cacheKey;
|
|
16853
16865
|
return;
|
|
16854
16866
|
}
|
|
16855
16867
|
e.cacheKey = r;
|
|
16856
16868
|
}
|
|
16857
|
-
function
|
|
16869
|
+
function P_(e, t) {
|
|
16858
16870
|
return e != null && t != null ? e.cacheKey != null && t.cacheKey != null ? `${e.cacheKey}:${t.cacheKey}` : void 0 : e?.cacheKey ?? t?.cacheKey;
|
|
16859
16871
|
}
|
|
16860
16872
|
//#endregion
|
|
16861
|
-
//#region ../../node_modules/.pnpm/@pierre+diffs@1.3.
|
|
16862
|
-
var
|
|
16873
|
+
//#region ../../node_modules/.pnpm/@pierre+diffs@1.3.5_patch_hash=ce17810cfea58efa02eb4e70947801afb36c9f8a08a8bb4c810297c2_569c0a392647ba6dd2f0ac61848dddca/node_modules/@pierre/diffs/dist/managers/ScrollSyncManager.js
|
|
16874
|
+
var F_ = class {
|
|
16863
16875
|
isDeletionsScrolling = !1;
|
|
16864
16876
|
isAdditionsScrolling = !1;
|
|
16865
16877
|
timeoutId = -1;
|
|
@@ -16889,13 +16901,13 @@ var j_ = class {
|
|
|
16889
16901
|
};
|
|
16890
16902
|
};
|
|
16891
16903
|
//#endregion
|
|
16892
|
-
//#region ../../node_modules/.pnpm/@pierre+diffs@1.3.
|
|
16893
|
-
function
|
|
16904
|
+
//#region ../../node_modules/.pnpm/@pierre+diffs@1.3.5_patch_hash=ce17810cfea58efa02eb4e70947801afb36c9f8a08a8bb4c810297c2_569c0a392647ba6dd2f0ac61848dddca/node_modules/@pierre/diffs/dist/utils/isDefaultRenderRange.js
|
|
16905
|
+
function I_(e) {
|
|
16894
16906
|
return e.startingLine === 0 && e.totalLines === Infinity && e.bufferBefore === 0 && e.bufferAfter === 0;
|
|
16895
16907
|
}
|
|
16896
16908
|
//#endregion
|
|
16897
|
-
//#region ../../node_modules/.pnpm/@pierre+diffs@1.3.
|
|
16898
|
-
function
|
|
16909
|
+
//#region ../../node_modules/.pnpm/@pierre+diffs@1.3.5_patch_hash=ce17810cfea58efa02eb4e70947801afb36c9f8a08a8bb4c810297c2_569c0a392647ba6dd2f0ac61848dddca/node_modules/@pierre/diffs/dist/utils/createEmptyRowBuffer.js
|
|
16910
|
+
function L_(e) {
|
|
16899
16911
|
return X({
|
|
16900
16912
|
tagName: "div",
|
|
16901
16913
|
properties: {
|
|
@@ -16906,8 +16918,8 @@ function N_(e) {
|
|
|
16906
16918
|
});
|
|
16907
16919
|
}
|
|
16908
16920
|
//#endregion
|
|
16909
|
-
//#region ../../node_modules/.pnpm/@pierre+diffs@1.3.
|
|
16910
|
-
function
|
|
16921
|
+
//#region ../../node_modules/.pnpm/@pierre+diffs@1.3.5_patch_hash=ce17810cfea58efa02eb4e70947801afb36c9f8a08a8bb4c810297c2_569c0a392647ba6dd2f0ac61848dddca/node_modules/@pierre/diffs/dist/utils/createNoNewlineElement.js
|
|
16922
|
+
function R_(e) {
|
|
16911
16923
|
return X({
|
|
16912
16924
|
tagName: "div",
|
|
16913
16925
|
children: [X({
|
|
@@ -16922,8 +16934,8 @@ function P_(e) {
|
|
|
16922
16934
|
});
|
|
16923
16935
|
}
|
|
16924
16936
|
//#endregion
|
|
16925
|
-
//#region ../../node_modules/.pnpm/@pierre+diffs@1.3.
|
|
16926
|
-
function
|
|
16937
|
+
//#region ../../node_modules/.pnpm/@pierre+diffs@1.3.5_patch_hash=ce17810cfea58efa02eb4e70947801afb36c9f8a08a8bb4c810297c2_569c0a392647ba6dd2f0ac61848dddca/node_modules/@pierre/diffs/dist/utils/createSeparator.js
|
|
16938
|
+
function z_(e) {
|
|
16927
16939
|
return X({
|
|
16928
16940
|
tagName: "div",
|
|
16929
16941
|
children: [Fd({
|
|
@@ -16939,7 +16951,7 @@ function F_(e) {
|
|
|
16939
16951
|
}
|
|
16940
16952
|
});
|
|
16941
16953
|
}
|
|
16942
|
-
function
|
|
16954
|
+
function B_({ type: e, content: t, expandIndex: n, chunked: r = !1, slotName: i, isFirstHunk: a, isLastHunk: o }) {
|
|
16943
16955
|
let s = 0, c = [];
|
|
16944
16956
|
if (e === "metadata" && t != null && c.push(X({
|
|
16945
16957
|
tagName: "div",
|
|
@@ -16947,7 +16959,7 @@ function I_({ type: e, content: t, expandIndex: n, chunked: r = !1, slotName: i,
|
|
|
16947
16959
|
properties: { "data-separator-wrapper": "" }
|
|
16948
16960
|
})), (e === "line-info" || e === "line-info-basic") && t != null) {
|
|
16949
16961
|
let e = [];
|
|
16950
|
-
n != null && (r ? (a || (e.push(
|
|
16962
|
+
n != null && (r ? (a || (e.push(z_("up")), s++), o || (e.push(z_("down")), s++)) : (e.push(z_(!a && !o ? "both" : a ? "down" : "up")), s++)), e.push(X({
|
|
16951
16963
|
tagName: "div",
|
|
16952
16964
|
children: [X({
|
|
16953
16965
|
tagName: "span",
|
|
@@ -16987,23 +16999,23 @@ function I_({ type: e, content: t, expandIndex: n, chunked: r = !1, slotName: i,
|
|
|
16987
16999
|
});
|
|
16988
17000
|
}
|
|
16989
17001
|
//#endregion
|
|
16990
|
-
//#region ../../node_modules/.pnpm/@pierre+diffs@1.3.
|
|
16991
|
-
function
|
|
17002
|
+
//#region ../../node_modules/.pnpm/@pierre+diffs@1.3.5_patch_hash=ce17810cfea58efa02eb4e70947801afb36c9f8a08a8bb4c810297c2_569c0a392647ba6dd2f0ac61848dddca/node_modules/@pierre/diffs/dist/utils/getHunkSeparatorSlotName.js
|
|
17003
|
+
function V_(e, t) {
|
|
16992
17004
|
return `hunk-separator-${e}-${t}`;
|
|
16993
17005
|
}
|
|
16994
17006
|
//#endregion
|
|
16995
|
-
//#region ../../node_modules/.pnpm/@pierre+diffs@1.3.
|
|
16996
|
-
function
|
|
17007
|
+
//#region ../../node_modules/.pnpm/@pierre+diffs@1.3.5_patch_hash=ce17810cfea58efa02eb4e70947801afb36c9f8a08a8bb4c810297c2_569c0a392647ba6dd2f0ac61848dddca/node_modules/@pierre/diffs/dist/utils/getTotalLineCountFromHunks.js
|
|
17008
|
+
function H_(e) {
|
|
16997
17009
|
let t = e.at(-1);
|
|
16998
17010
|
return t == null ? 0 : Math.max(P(t.additionStart, t.additionCount), P(t.deletionStart, t.deletionCount));
|
|
16999
17011
|
}
|
|
17000
17012
|
//#endregion
|
|
17001
|
-
//#region ../../node_modules/.pnpm/@pierre+diffs@1.3.
|
|
17002
|
-
var
|
|
17013
|
+
//#region ../../node_modules/.pnpm/@pierre+diffs@1.3.5_patch_hash=ce17810cfea58efa02eb4e70947801afb36c9f8a08a8bb4c810297c2_569c0a392647ba6dd2f0ac61848dddca/node_modules/@pierre/diffs/dist/renderers/DiffHunksRenderer.js
|
|
17014
|
+
var U_ = -1, W_ = class {
|
|
17003
17015
|
options;
|
|
17004
17016
|
onRenderUpdate;
|
|
17005
17017
|
workerManager;
|
|
17006
|
-
__id = `diff-hunks-renderer:${++
|
|
17018
|
+
__id = `diff-hunks-renderer:${++U_}`;
|
|
17007
17019
|
highlighter;
|
|
17008
17020
|
diff;
|
|
17009
17021
|
expandedHunks = /* @__PURE__ */ new Map();
|
|
@@ -17034,7 +17046,7 @@ var z_ = -1, B_ = class {
|
|
|
17034
17046
|
}
|
|
17035
17047
|
refreshHighlightedResult() {
|
|
17036
17048
|
let { renderCache: e } = this;
|
|
17037
|
-
if (e == null || yf(e.diff) ||
|
|
17049
|
+
if (e == null || yf(e.diff) || av(e.diff, this.getTokenizeMaxLength())) return Promise.resolve();
|
|
17038
17050
|
let { diff: t } = e, { workerManager: n } = this;
|
|
17039
17051
|
return !this.editSessionActive && n?.isWorkingPool() === !0 && t.cacheKey != null ? (n.evictDiffFromCache(t.cacheKey), n.primeDiffHighlightCache(t).then(() => {
|
|
17040
17052
|
this.applyRefreshedResult(t, n.getDiffResultCache(t));
|
|
@@ -17157,7 +17169,7 @@ var z_ = -1, B_ = class {
|
|
|
17157
17169
|
if (n == null) return;
|
|
17158
17170
|
if (t.isPartial) throw Error("Could not apply document change for partial diff");
|
|
17159
17171
|
let { additionLines: r } = t;
|
|
17160
|
-
t.additionLines =
|
|
17172
|
+
t.additionLines = nv(e, r), n.code.additionLines = ev(r, t.additionLines, n.code.additionLines, e), t.additionLines.length <= 1 && t.additionLines.join("") === "" ? (Object.assign(t, Um(t, this.options.parseDiffOptions)), n.code.additionLines[0] = tv(0, e.getLineText(0)), this.markEditSessionPass(t)) : this.editSessionActive ? this.applySessionDocumentChange(t) : Object.assign(t, Wm(t, this.options.parseDiffOptions)), this.renderCache.isDirty = !0;
|
|
17161
17173
|
}
|
|
17162
17174
|
applySessionDocumentChange(e) {
|
|
17163
17175
|
let { parseDiffOptions: t } = this.options, n = e.additionLines;
|
|
@@ -17219,7 +17231,7 @@ var z_ = -1, B_ = class {
|
|
|
17219
17231
|
hydrate(e) {
|
|
17220
17232
|
if (e == null) return;
|
|
17221
17233
|
this.diff = e;
|
|
17222
|
-
let { options: t } = this.getRenderOptions(e), n =
|
|
17234
|
+
let { options: t } = this.getRenderOptions(e), n = av(e, this.getTokenizeMaxLength()), r = this.workerManager?.getDiffResultCache(e);
|
|
17223
17235
|
r != null && !vf(t, r.options) && (r = void 0), this.renderCache ??= {
|
|
17224
17236
|
diff: e,
|
|
17225
17237
|
highlighted: !n && !yf(e),
|
|
@@ -17281,10 +17293,10 @@ var z_ = -1, B_ = class {
|
|
|
17281
17293
|
result: void 0,
|
|
17282
17294
|
renderRange: void 0
|
|
17283
17295
|
};
|
|
17284
|
-
let s = e.additionLines.length > 0 || e.deletionLines.length > 0, c = !s || yf(e) ||
|
|
17296
|
+
let s = e.additionLines.length > 0 || e.deletionLines.length > 0, c = !s || yf(e) || av(e, this.getTokenizeMaxLength()), l = !_f(e, this.renderCache.diff), u = !mg(this.renderCache.renderRange, t);
|
|
17285
17297
|
if (!this.editSessionActive && this.workerManager?.isWorkingPool() === !0) {
|
|
17286
|
-
let o = this.renderCache.result == null && this.renderCache.highlighted && !c && !l &&
|
|
17287
|
-
o && (this.renderCache.highlightPending = !0), !o && (c || this.renderCache.result == null || !this.renderCache.highlighted && (l || u)) && (this.renderCache.diff = e, this.renderCache.options = i, this.renderCache.highlighted = !1, (this.renderCache.result == null || l || u || a) && (this.renderCache.result = this.workerManager.getPlainDiffAST(e, t.startingLine, t.totalLines,
|
|
17298
|
+
let o = this.renderCache.result == null && this.renderCache.highlighted && !c && !l && I_(t);
|
|
17299
|
+
o && (this.renderCache.highlightPending = !0), !o && (c || this.renderCache.result == null || !this.renderCache.highlighted && (l || u)) && (this.renderCache.diff = e, this.renderCache.options = i, this.renderCache.highlighted = !1, (this.renderCache.result == null || l || u || a) && (this.renderCache.result = this.workerManager.getPlainDiffAST(e, t.startingLine, t.totalLines, I_(t) || n ? !0 : this.expandedHunks, r)), this.renderCache.renderRange = t), !c && s && (!this.renderCache.highlighted || a) && this.workerManager.highlightDiffAST(this, e);
|
|
17288
17300
|
} else {
|
|
17289
17301
|
this.computedLang = e.lang ?? Y(e.name);
|
|
17290
17302
|
let t = this.highlighter != null && gg(i.theme), n = this.highlighter != null && hg(this.computedLang), r = !c && n;
|
|
@@ -17322,7 +17334,7 @@ var z_ = -1, B_ = class {
|
|
|
17322
17334
|
});
|
|
17323
17335
|
}
|
|
17324
17336
|
async asyncHighlight(e) {
|
|
17325
|
-
let t =
|
|
17337
|
+
let t = av(e, this.getTokenizeMaxLength());
|
|
17326
17338
|
this.computedLang = t ? "text" : e.lang ?? Y(e.name);
|
|
17327
17339
|
let n = this.highlighter != null && gg(this.getLocalHighlightTheme()), r = t || this.highlighter != null && hg(this.computedLang);
|
|
17328
17340
|
return (this.highlighter == null || !n || !r) && (this.highlighter = await this.initializeHighlighter()), this.renderDiffWithHighlighter(e, this.highlighter, t);
|
|
@@ -17344,7 +17356,7 @@ var z_ = -1, B_ = class {
|
|
|
17344
17356
|
if (e?.lineIndex === 0) return t = e, !0;
|
|
17345
17357
|
}
|
|
17346
17358
|
}), t == null) throw Error("DiffHunksRenderer: missing empty addition line");
|
|
17347
|
-
a.code.additionLines[0] =
|
|
17359
|
+
a.code.additionLines[0] = tv(0, "", t.unifiedLineIndex, t.splitLineIndex);
|
|
17348
17360
|
}
|
|
17349
17361
|
return {
|
|
17350
17362
|
result: a,
|
|
@@ -17383,7 +17395,7 @@ var z_ = -1, B_ = class {
|
|
|
17383
17395
|
processDiffResult(e, t, { code: n, themeStyles: r, baseThemeType: i }) {
|
|
17384
17396
|
let { diffStyle: a, disableFileHeader: o, expandUnchanged: s, expansionLineCount: c, collapsedContextThreshold: l, hunkSeparators: u } = this.getOptionsWithDefaults(), d = this.renderCache?.isDirty ?? !1;
|
|
17385
17397
|
this.diff = e;
|
|
17386
|
-
let f = a === "unified", p =
|
|
17398
|
+
let f = a === "unified", p = ov(e, this.options.loadDiffFiles != null), m = !e.isPartial || p, h = [], g = [], _ = [], v = [], { additionLines: y, deletionLines: b } = n, x = {
|
|
17387
17399
|
rowCount: 0,
|
|
17388
17400
|
hunkSeparators: u,
|
|
17389
17401
|
additionsContentAST: h,
|
|
@@ -17423,14 +17435,14 @@ var z_ = -1, B_ = class {
|
|
|
17423
17435
|
this.side = void 0, this.size = 0;
|
|
17424
17436
|
return;
|
|
17425
17437
|
}
|
|
17426
|
-
this.side === "additions" ? (x.pushToGutter("additions", zd(void 0, "buffer", this.size)), h?.push(
|
|
17438
|
+
this.side === "additions" ? (x.pushToGutter("additions", zd(void 0, "buffer", this.size)), h?.push(L_(this.size))) : (x.pushToGutter("deletions", zd(void 0, "buffer", this.size)), g?.push(L_(this.size))), this.size = 0, this.side = void 0;
|
|
17427
17439
|
}
|
|
17428
17440
|
}
|
|
17429
17441
|
}, w = (e, t, n, r, i) => {
|
|
17430
17442
|
x.pushToGutter(e, Rd(t, n, r, i));
|
|
17431
17443
|
};
|
|
17432
17444
|
function T(e) {
|
|
17433
|
-
C.flush(), a === "unified" ?
|
|
17445
|
+
C.flush(), a === "unified" ? Z_("unified", e, x) : (Z_("deletions", e, x), Z_("additions", e, x));
|
|
17434
17446
|
}
|
|
17435
17447
|
this.pushFileLevelAnnotations(e, a, t, x), zf({
|
|
17436
17448
|
diff: e,
|
|
@@ -17461,7 +17473,7 @@ var z_ = -1, B_ = class {
|
|
|
17461
17473
|
};
|
|
17462
17474
|
if (a === "unified") {
|
|
17463
17475
|
let n = this.getUnifiedInjectedRowsForLine?.(g);
|
|
17464
|
-
n?.before != null &&
|
|
17476
|
+
n?.before != null && J_(n.before, x);
|
|
17465
17477
|
let r = s == null ? void 0 : b[s.lineIndex], i = o == null ? void 0 : y[o.lineIndex];
|
|
17466
17478
|
if (r == null && i == null) {
|
|
17467
17479
|
let t = "DiffHunksRenderer.processDiffResult: deletionLine and additionLine are null, something is wrong";
|
|
@@ -17473,13 +17485,13 @@ var z_ = -1, B_ = class {
|
|
|
17473
17485
|
additionLineIndex: o?.lineIndex,
|
|
17474
17486
|
deletionLineIndex: s?.lineIndex
|
|
17475
17487
|
});
|
|
17476
|
-
w("unified", u.gutterLineType, o == null ? s.lineNumber : o.lineNumber, `${f},${l}`, u.gutterProperties), i == null ? r != null && (r =
|
|
17488
|
+
w("unified", u.gutterLineType, o == null ? s.lineNumber : o.lineNumber, `${f},${l}`, u.gutterProperties), i == null ? r != null && (r = Q_(r, u.contentProperties, d && s != null ? {
|
|
17477
17489
|
"data-line": s.lineNumber,
|
|
17478
17490
|
"data-line-index": `${f},${l}`
|
|
17479
|
-
} : void 0)) : i =
|
|
17491
|
+
} : void 0)) : i = Q_(i, u.contentProperties, d && o != null ? {
|
|
17480
17492
|
"data-line": o.lineNumber,
|
|
17481
17493
|
"data-line-index": `${f},${l}`
|
|
17482
|
-
} : void 0),
|
|
17494
|
+
} : void 0), X_({
|
|
17483
17495
|
diffStyle: "unified",
|
|
17484
17496
|
type: c,
|
|
17485
17497
|
deletionLine: r,
|
|
@@ -17487,10 +17499,10 @@ var z_ = -1, B_ = class {
|
|
|
17487
17499
|
unifiedSpan: this.getAnnotations("unified", s?.lineNumber, o?.lineNumber, t, h),
|
|
17488
17500
|
createAnnotationElement: (e) => this.createAnnotationElement(e),
|
|
17489
17501
|
context: x
|
|
17490
|
-
}), n?.after != null &&
|
|
17502
|
+
}), n?.after != null && J_(n.after, x);
|
|
17491
17503
|
} else {
|
|
17492
17504
|
let n = this.getSplitInjectedRowsForLine?.(g);
|
|
17493
|
-
n?.before != null &&
|
|
17505
|
+
n?.before != null && Y_(n.before, x, C);
|
|
17494
17506
|
let r = s == null ? void 0 : b[s.lineIndex], i = o == null ? void 0 : y[o.lineIndex], a = this.getSplitLineDecoration({
|
|
17495
17507
|
side: "deletions",
|
|
17496
17508
|
type: c,
|
|
@@ -17513,20 +17525,20 @@ var z_ = -1, B_ = class {
|
|
|
17513
17525
|
f == null ? c === "change" && C.flush() : (C.side != null && C.side !== f && C.flush(), C.side = f, C.increment());
|
|
17514
17526
|
let p = this.getAnnotations("split", s?.lineNumber, o?.lineNumber, t, h);
|
|
17515
17527
|
if (p != null && C.size > 0 && C.flush(), s != null) {
|
|
17516
|
-
let e =
|
|
17528
|
+
let e = Q_(r, a.contentProperties, d ? {
|
|
17517
17529
|
"data-line": s.lineNumber,
|
|
17518
17530
|
"data-line-index": `${s.unifiedLineIndex},${l}`
|
|
17519
17531
|
} : void 0);
|
|
17520
17532
|
w("deletions", a.gutterLineType, s.lineNumber, `${s.unifiedLineIndex},${l}`, a.gutterProperties), e != null && (r = e);
|
|
17521
17533
|
}
|
|
17522
17534
|
if (o != null) {
|
|
17523
|
-
let e =
|
|
17535
|
+
let e = Q_(i, u.contentProperties, d ? {
|
|
17524
17536
|
"data-line": o.lineNumber,
|
|
17525
17537
|
"data-line-index": `${o.unifiedLineIndex},${l}`
|
|
17526
17538
|
} : void 0);
|
|
17527
17539
|
w("additions", u.gutterLineType, o.lineNumber, `${o.unifiedLineIndex},${l}`, u.gutterProperties), e != null && (i = e);
|
|
17528
17540
|
}
|
|
17529
|
-
|
|
17541
|
+
X_({
|
|
17530
17542
|
diffStyle: "split",
|
|
17531
17543
|
type: c,
|
|
17532
17544
|
additionLine: i,
|
|
@@ -17534,17 +17546,17 @@ var z_ = -1, B_ = class {
|
|
|
17534
17546
|
...p,
|
|
17535
17547
|
createAnnotationElement: (e) => this.createAnnotationElement(e),
|
|
17536
17548
|
context: x
|
|
17537
|
-
}), n?.after != null &&
|
|
17549
|
+
}), n?.after != null && Y_(n.after, x, C);
|
|
17538
17550
|
}
|
|
17539
17551
|
let _ = a === "split" && n != null && l === n.splitLineStart + n.splitLineCount - 1, v = t === e.hunks.length - 1 && n != null && (a === "split" ? l === n.splitLineStart + n.splitLineCount - 1 : f === n.unifiedLineStart + n.unifiedLineCount - 1), E = _ ? n.noEOFCRDeletions : !1, D = _ ? n.noEOFCRAdditions : !1, O = (s?.noEOFCR ?? !1) || E, k = (o?.noEOFCR ?? !1) || D;
|
|
17540
17552
|
if (k || O) {
|
|
17541
17553
|
if (a === "split" && C.flush(), O) {
|
|
17542
17554
|
let e = c === "context" || c === "context-expanded" ? c : "change-deletion";
|
|
17543
|
-
a === "unified" ? (x.unifiedContentAST.push(
|
|
17555
|
+
a === "unified" ? (x.unifiedContentAST.push(R_(e)), x.pushToGutter("unified", zd(e, "metadata", 1))) : (x.deletionsContentAST.push(R_(e)), x.pushToGutter("deletions", zd(e, "metadata", 1)), k || (x.pushToGutter("additions", zd(void 0, "buffer", 1)), x.additionsContentAST.push(L_(1))));
|
|
17544
17556
|
}
|
|
17545
17557
|
if (k) {
|
|
17546
17558
|
let e = c === "context" || c === "context-expanded" ? c : "change-addition";
|
|
17547
|
-
a === "unified" ? (x.unifiedContentAST.push(
|
|
17559
|
+
a === "unified" ? (x.unifiedContentAST.push(R_(e)), x.pushToGutter("unified", zd(e, "metadata", 1))) : (x.additionsContentAST.push(R_(e)), x.pushToGutter("additions", zd(e, "metadata", 1)), O || (x.pushToGutter("deletions", zd(void 0, "buffer", 1)), x.deletionsContentAST.push(L_(1))));
|
|
17548
17560
|
}
|
|
17549
17561
|
x.incrementRowCount(1);
|
|
17550
17562
|
}
|
|
@@ -17559,7 +17571,7 @@ var z_ = -1, B_ = class {
|
|
|
17559
17571
|
}), x.incrementRowCount(1);
|
|
17560
17572
|
}
|
|
17561
17573
|
}), a === "split" && C.flush();
|
|
17562
|
-
let E = Math.max(
|
|
17574
|
+
let E = Math.max(H_(e.hunks), e.additionLines.length ?? 0, e.deletionLines.length ?? 0), D = t.bufferBefore > 0 || t.bufferAfter > 0, O = !f && e.type !== "deleted", k = !f && e.type !== "new", A = x.rowCount > 0 || D;
|
|
17563
17575
|
h = O && A ? h : void 0, g = k && A ? g : void 0, _ = f && A ? _ : void 0;
|
|
17564
17576
|
let j = this.createPreElement(g != null && h != null, E);
|
|
17565
17577
|
return {
|
|
@@ -17641,11 +17653,11 @@ var z_ = -1, B_ = class {
|
|
|
17641
17653
|
}
|
|
17642
17654
|
pushFileLevelAnnotations(e, t, n, r) {
|
|
17643
17655
|
if (!Ih(n)) return;
|
|
17644
|
-
let i = e.type === "new" ? [] :
|
|
17656
|
+
let i = e.type === "new" ? [] : G_(Fh(this.deletionAnnotations)), a = e.type === "deleted" ? [] : G_(Fh(this.additionAnnotations));
|
|
17645
17657
|
if (i.length === 0 && a.length === 0) return;
|
|
17646
17658
|
let { createAnnotationElement: o } = this;
|
|
17647
17659
|
if (t === "unified") {
|
|
17648
|
-
|
|
17660
|
+
X_({
|
|
17649
17661
|
diffStyle: t,
|
|
17650
17662
|
type: "context",
|
|
17651
17663
|
unifiedSpan: {
|
|
@@ -17659,7 +17671,7 @@ var z_ = -1, B_ = class {
|
|
|
17659
17671
|
});
|
|
17660
17672
|
return;
|
|
17661
17673
|
}
|
|
17662
|
-
|
|
17674
|
+
X_({
|
|
17663
17675
|
diffStyle: t,
|
|
17664
17676
|
type: "context",
|
|
17665
17677
|
deletionSpan: {
|
|
@@ -17708,24 +17720,24 @@ var z_ = -1, B_ = class {
|
|
|
17708
17720
|
});
|
|
17709
17721
|
}
|
|
17710
17722
|
};
|
|
17711
|
-
function
|
|
17723
|
+
function G_(e) {
|
|
17712
17724
|
return e?.map((e) => ke(e)) ?? [];
|
|
17713
17725
|
}
|
|
17714
|
-
var
|
|
17715
|
-
function
|
|
17716
|
-
return `${e} unmodified line${
|
|
17726
|
+
var K_ = new Intl.PluralRules("en-US");
|
|
17727
|
+
function q_(e) {
|
|
17728
|
+
return `${e} unmodified line${K_.select(e) === "one" ? "" : "s"}`;
|
|
17717
17729
|
}
|
|
17718
|
-
function
|
|
17730
|
+
function J_(e, t) {
|
|
17719
17731
|
for (let n of e) t.unifiedContentAST.push(n.content), t.pushToGutter("unified", n.gutter), t.incrementRowCount(1);
|
|
17720
17732
|
}
|
|
17721
|
-
function
|
|
17733
|
+
function Y_(e, t, n) {
|
|
17722
17734
|
for (let { deletion: r, addition: i } of e) {
|
|
17723
17735
|
if (r == null && i == null) continue;
|
|
17724
17736
|
let e = r != null && i != null ? void 0 : r == null ? "deletions" : "additions";
|
|
17725
17737
|
(e == null || n.side !== e) && n.flush(), r != null && (t.deletionsContentAST.push(r.content), t.pushToGutter("deletions", r.gutter)), i != null && (t.additionsContentAST.push(i.content), t.pushToGutter("additions", i.gutter)), e != null && (n.side = e, n.increment()), t.incrementRowCount(1);
|
|
17726
17738
|
}
|
|
17727
17739
|
}
|
|
17728
|
-
function
|
|
17740
|
+
function X_({ diffStyle: e, type: t, deletionLine: n, additionLine: r, unifiedSpan: i, deletionSpan: a, additionSpan: o, createAnnotationElement: s, context: c }) {
|
|
17729
17741
|
let l = !1;
|
|
17730
17742
|
if (e === "unified") {
|
|
17731
17743
|
if (r == null ? n != null && c.unifiedContentAST.push(n) : c.unifiedContentAST.push(r), i != null) {
|
|
@@ -17744,16 +17756,16 @@ function K_({ diffStyle: e, type: t, deletionLine: n, additionLine: r, unifiedSp
|
|
|
17744
17756
|
}
|
|
17745
17757
|
l && c.incrementRowCount(1);
|
|
17746
17758
|
}
|
|
17747
|
-
function
|
|
17759
|
+
function Z_(e, { hunkIndex: t, collapsedLines: n, rangeSize: r, hunkSpecs: i, isFirstHunk: a, isLastHunk: o, isExpandable: s }, c) {
|
|
17748
17760
|
if (typeof n == "number" && n <= 0) return;
|
|
17749
17761
|
let l = e === "unified" ? c.unifiedContentAST : e === "deletions" ? c.deletionsContentAST : c.additionsContentAST;
|
|
17750
17762
|
if (c.hunkSeparators === "metadata") {
|
|
17751
|
-
i != null && (c.pushToGutter(e,
|
|
17763
|
+
i != null && (c.pushToGutter(e, B_({
|
|
17752
17764
|
type: "metadata",
|
|
17753
17765
|
content: i,
|
|
17754
17766
|
isFirstHunk: a,
|
|
17755
17767
|
isLastHunk: o
|
|
17756
|
-
})), l.push(
|
|
17768
|
+
})), l.push(B_({
|
|
17757
17769
|
type: "metadata",
|
|
17758
17770
|
content: i,
|
|
17759
17771
|
isFirstHunk: a,
|
|
@@ -17762,19 +17774,19 @@ function q_(e, { hunkIndex: t, collapsedLines: n, rangeSize: r, hunkSpecs: i, is
|
|
|
17762
17774
|
return;
|
|
17763
17775
|
}
|
|
17764
17776
|
if (c.hunkSeparators === "simple") {
|
|
17765
|
-
t > 0 && (c.pushToGutter(e,
|
|
17777
|
+
t > 0 && (c.pushToGutter(e, B_({
|
|
17766
17778
|
type: "simple",
|
|
17767
17779
|
isFirstHunk: a,
|
|
17768
17780
|
isLastHunk: !1
|
|
17769
|
-
})), l.push(
|
|
17781
|
+
})), l.push(B_({
|
|
17770
17782
|
type: "simple",
|
|
17771
17783
|
isFirstHunk: a,
|
|
17772
17784
|
isLastHunk: !1
|
|
17773
17785
|
})), e !== "additions" && c.incrementRowCount(1));
|
|
17774
17786
|
return;
|
|
17775
17787
|
}
|
|
17776
|
-
let u =
|
|
17777
|
-
c.pushToGutter(e,
|
|
17788
|
+
let u = V_(e, t), d = r > c.expansionLineCount, f = s ? t : void 0, p = typeof n == "number" ? q_(n) : "More unchanged context may be available";
|
|
17789
|
+
c.pushToGutter(e, B_({
|
|
17778
17790
|
type: c.hunkSeparators,
|
|
17779
17791
|
content: p,
|
|
17780
17792
|
expandIndex: f,
|
|
@@ -17782,7 +17794,7 @@ function q_(e, { hunkIndex: t, collapsedLines: n, rangeSize: r, hunkSpecs: i, is
|
|
|
17782
17794
|
slotName: u,
|
|
17783
17795
|
isFirstHunk: a,
|
|
17784
17796
|
isLastHunk: o
|
|
17785
|
-
})), l.push(
|
|
17797
|
+
})), l.push(B_({
|
|
17786
17798
|
type: c.hunkSeparators,
|
|
17787
17799
|
content: p,
|
|
17788
17800
|
expandIndex: f,
|
|
@@ -17803,7 +17815,7 @@ function q_(e, { hunkIndex: t, collapsedLines: n, rangeSize: r, hunkSpecs: i, is
|
|
|
17803
17815
|
} : void 0
|
|
17804
17816
|
});
|
|
17805
17817
|
}
|
|
17806
|
-
function
|
|
17818
|
+
function Q_(e, t, n) {
|
|
17807
17819
|
return e == null || e.type !== "element" || t == null && n == null ? e : {
|
|
17808
17820
|
...e,
|
|
17809
17821
|
properties: {
|
|
@@ -17813,11 +17825,11 @@ function J_(e, t, n) {
|
|
|
17813
17825
|
}
|
|
17814
17826
|
};
|
|
17815
17827
|
}
|
|
17816
|
-
function
|
|
17828
|
+
function $_(e) {
|
|
17817
17829
|
return e.length > 0 && e[e.length - 1] === "" ? e.length - 1 : e.length;
|
|
17818
17830
|
}
|
|
17819
|
-
function
|
|
17820
|
-
let i =
|
|
17831
|
+
function ev(e, t, n, r) {
|
|
17832
|
+
let i = $_(e), a = $_(t), o = Math.min(i, a), s = 0;
|
|
17821
17833
|
for (; s < o && e[s] === t[s];) s++;
|
|
17822
17834
|
let c = 0;
|
|
17823
17835
|
for (; c < o - s && e[i - 1 - c] === t[a - 1 - c];) c++;
|
|
@@ -17826,10 +17838,10 @@ function X_(e, t, n, r) {
|
|
|
17826
17838
|
for (let e = 0; e < c; e++) l[a - 1 - e] = n[i - 1 - e];
|
|
17827
17839
|
i < e.length && a < t.length && (l[t.length - 1] = n[e.length - 1]);
|
|
17828
17840
|
for (let r = e.length; r < t.length; r++) l[r] ??= n[r];
|
|
17829
|
-
for (let e = s; e < t.length; e++) l[e] ??=
|
|
17841
|
+
for (let e = s; e < t.length; e++) l[e] ??= tv(e, r.getLineText(e));
|
|
17830
17842
|
return l;
|
|
17831
17843
|
}
|
|
17832
|
-
function
|
|
17844
|
+
function tv(e, t, n = e, r = e) {
|
|
17833
17845
|
return {
|
|
17834
17846
|
type: "element",
|
|
17835
17847
|
tagName: "div",
|
|
@@ -17849,18 +17861,18 @@ function Z_(e, t, n = e, r = e) {
|
|
|
17849
17861
|
}]
|
|
17850
17862
|
};
|
|
17851
17863
|
}
|
|
17852
|
-
function
|
|
17853
|
-
let n = [], r =
|
|
17864
|
+
function nv(e, t) {
|
|
17865
|
+
let n = [], r = iv(t);
|
|
17854
17866
|
for (let t = 0; t < e.lineCount; t++) {
|
|
17855
17867
|
let i = e.getLineText(t, !0);
|
|
17856
|
-
n.push(t < e.lineCount - 1 &&
|
|
17868
|
+
n.push(t < e.lineCount - 1 && !rv(i) ? i + r : i);
|
|
17857
17869
|
}
|
|
17858
17870
|
return n;
|
|
17859
17871
|
}
|
|
17860
|
-
function
|
|
17872
|
+
function rv(e) {
|
|
17861
17873
|
return e.endsWith("\n") || e.endsWith("\r");
|
|
17862
17874
|
}
|
|
17863
|
-
function
|
|
17875
|
+
function iv(e) {
|
|
17864
17876
|
for (let t of e) {
|
|
17865
17877
|
if (t.endsWith("\r\n")) return "\r\n";
|
|
17866
17878
|
if (t.endsWith("\n")) return "\n";
|
|
@@ -17868,25 +17880,25 @@ function ev(e) {
|
|
|
17868
17880
|
}
|
|
17869
17881
|
return "\n";
|
|
17870
17882
|
}
|
|
17871
|
-
function
|
|
17883
|
+
function av(e, t) {
|
|
17872
17884
|
return Math.max(e.additionLines.length, e.deletionLines.length) > t;
|
|
17873
17885
|
}
|
|
17874
|
-
function
|
|
17886
|
+
function ov(e, t) {
|
|
17875
17887
|
return e.isPartial && t && (e.type === "change" || e.type === "rename-changed");
|
|
17876
17888
|
}
|
|
17877
17889
|
//#endregion
|
|
17878
|
-
//#region ../../node_modules/.pnpm/@pierre+diffs@1.3.
|
|
17879
|
-
function
|
|
17890
|
+
//#region ../../node_modules/.pnpm/@pierre+diffs@1.3.5_patch_hash=ce17810cfea58efa02eb4e70947801afb36c9f8a08a8bb4c810297c2_569c0a392647ba6dd2f0ac61848dddca/node_modules/@pierre/diffs/dist/utils/areDiffLineAnnotationsEqual.js
|
|
17891
|
+
function sv(e, t) {
|
|
17880
17892
|
return e.lineNumber === t.lineNumber && e.side === t.side && e.metadata === t.metadata;
|
|
17881
17893
|
}
|
|
17882
17894
|
//#endregion
|
|
17883
|
-
//#region ../../node_modules/.pnpm/@pierre+diffs@1.3.
|
|
17884
|
-
function
|
|
17895
|
+
//#region ../../node_modules/.pnpm/@pierre+diffs@1.3.5_patch_hash=ce17810cfea58efa02eb4e70947801afb36c9f8a08a8bb4c810297c2_569c0a392647ba6dd2f0ac61848dddca/node_modules/@pierre/diffs/dist/utils/areHunkDataEqual.js
|
|
17896
|
+
function cv(e, t) {
|
|
17885
17897
|
return e.slotName === t.slotName && e.hunkIndex === t.hunkIndex && e.lines === t.lines && e.lineCountKnown === t.lineCountKnown && e.type === t.type && e.expandable?.chunked === t.expandable?.chunked && e.expandable?.up === t.expandable?.up && e.expandable?.down === t.expandable?.down;
|
|
17886
17898
|
}
|
|
17887
17899
|
//#endregion
|
|
17888
|
-
//#region ../../node_modules/.pnpm/@pierre+diffs@1.3.
|
|
17889
|
-
function
|
|
17900
|
+
//#region ../../node_modules/.pnpm/@pierre+diffs@1.3.5_patch_hash=ce17810cfea58efa02eb4e70947801afb36c9f8a08a8bb4c810297c2_569c0a392647ba6dd2f0ac61848dddca/node_modules/@pierre/diffs/dist/utils/getDiffHunksRendererOptions.js
|
|
17901
|
+
function lv(e) {
|
|
17890
17902
|
return {
|
|
17891
17903
|
theme: e?.theme,
|
|
17892
17904
|
disableLineNumbers: e?.disableLineNumbers,
|
|
@@ -17914,16 +17926,16 @@ function av(e) {
|
|
|
17914
17926
|
};
|
|
17915
17927
|
}
|
|
17916
17928
|
//#endregion
|
|
17917
|
-
//#region ../../node_modules/.pnpm/@pierre+diffs@1.3.
|
|
17918
|
-
function
|
|
17929
|
+
//#region ../../node_modules/.pnpm/@pierre+diffs@1.3.5_patch_hash=ce17810cfea58efa02eb4e70947801afb36c9f8a08a8bb4c810297c2_569c0a392647ba6dd2f0ac61848dddca/node_modules/@pierre/diffs/dist/components/FileDiff.js
|
|
17930
|
+
function uv(e) {
|
|
17919
17931
|
return e.isPartial && (e.type === "change" || e.type === "rename-changed" || e.type === "rename-pure");
|
|
17920
17932
|
}
|
|
17921
|
-
var
|
|
17933
|
+
var dv = -1, fv = class {
|
|
17922
17934
|
options;
|
|
17923
17935
|
workerManager;
|
|
17924
17936
|
isContainerManaged;
|
|
17925
17937
|
static LoadedCustomComponent = !0;
|
|
17926
|
-
__id = `file-diff:${++
|
|
17938
|
+
__id = `file-diff:${++dv}`;
|
|
17927
17939
|
type = "file-diff";
|
|
17928
17940
|
fileContainer;
|
|
17929
17941
|
spriteSVG;
|
|
@@ -17971,16 +17983,16 @@ var sv = -1, cv = class {
|
|
|
17971
17983
|
deferredSelectedLines;
|
|
17972
17984
|
deferredEditorActiveLine;
|
|
17973
17985
|
constructor(e = { theme: N }, t, n = !1) {
|
|
17974
|
-
this.options = e, this.workerManager = t, this.isContainerManaged = n, this.hunksRenderer = this.createHunksRenderer(e), this.resizeManager = new og(), this.scrollSyncManager = new
|
|
17986
|
+
this.options = e, this.workerManager = t, this.isContainerManaged = n, this.hunksRenderer = this.createHunksRenderer(e), this.resizeManager = new og(), this.scrollSyncManager = new F_(), this.interactionManager = new Bh("diff", Vh(e, typeof e.hunkSeparators == "function" || (e.hunkSeparators ?? "line-info") === "line-info" || e.hunkSeparators === "line-info-basic" ? this.handleExpandHunk : void 0, this.getLineIndex)), this.workerManager?.subscribeToThemeChanges(this), this.enabled = !0;
|
|
17975
17987
|
}
|
|
17976
17988
|
handleHighlightRender = () => {
|
|
17977
17989
|
this.rerender();
|
|
17978
17990
|
};
|
|
17979
17991
|
getHunksRendererOptions(e) {
|
|
17980
|
-
return
|
|
17992
|
+
return lv(e);
|
|
17981
17993
|
}
|
|
17982
17994
|
createHunksRenderer(e) {
|
|
17983
|
-
return new
|
|
17995
|
+
return new W_(this.getHunksRendererOptions(e), this.handleHighlightRender, this.workerManager);
|
|
17984
17996
|
}
|
|
17985
17997
|
getLineIndex = (e, t = "additions") => {
|
|
17986
17998
|
let n = this.fileDiffCache;
|
|
@@ -18099,12 +18111,12 @@ var sv = -1, cv = class {
|
|
|
18099
18111
|
hydrate({ fileContainer: e, prerenderedHTML: t, preventEmit: n = !1, lineAnnotations: r, fileDiff: i, ...a }) {
|
|
18100
18112
|
if (!this.enabled) throw Error("FileDiff.hydrate: attempting to call hydrate after cleaned up");
|
|
18101
18113
|
if (this.fileContainer != null) throw Error("FileDiff.hydrate: hydrate can only be called before the instance has rendered or hydrated");
|
|
18102
|
-
let o =
|
|
18103
|
-
this.hydrateElements(e, t),
|
|
18114
|
+
let o = C_(a, "FileDiff.hydrate"), s = o?.oldFile, c = o?.newFile;
|
|
18115
|
+
this.hydrateElements(e, t), gv(this.pre, mv({
|
|
18104
18116
|
fileDiff: i,
|
|
18105
18117
|
oldFile: s,
|
|
18106
18118
|
newFile: c
|
|
18107
|
-
}), this.options.collapsed) ||
|
|
18119
|
+
}), this.options.collapsed) || _v(this.headerElement, hv({
|
|
18108
18120
|
fileDiff: i,
|
|
18109
18121
|
oldFile: s,
|
|
18110
18122
|
newFile: c
|
|
@@ -18121,7 +18133,7 @@ var sv = -1, cv = class {
|
|
|
18121
18133
|
}), n || this.emitPostRender();
|
|
18122
18134
|
}
|
|
18123
18135
|
hydrateElements(e, t) {
|
|
18124
|
-
this.fileContainer !== e && this.emitPostRender(!0),
|
|
18136
|
+
this.fileContainer !== e && this.emitPostRender(!0), s_(e, t);
|
|
18125
18137
|
for (let t of e.shadowRoot?.children ?? []) {
|
|
18126
18138
|
if (t instanceof SVGElement) {
|
|
18127
18139
|
this.spriteSVG = t;
|
|
@@ -18169,7 +18181,7 @@ var sv = -1, cv = class {
|
|
|
18169
18181
|
};
|
|
18170
18182
|
loadFilesIfNecessary() {
|
|
18171
18183
|
let { fileDiff: e, options: { loadDiffFiles: t } } = this;
|
|
18172
|
-
e == null || t == null || !
|
|
18184
|
+
e == null || t == null || !uv(e) || this.pendingFiles?.fileDiff === e || (this.pendingFiles = {
|
|
18173
18185
|
fileDiff: e,
|
|
18174
18186
|
promise: this.loadFilesForDiff(e, t)
|
|
18175
18187
|
});
|
|
@@ -18187,16 +18199,16 @@ var sv = -1, cv = class {
|
|
|
18187
18199
|
}
|
|
18188
18200
|
}
|
|
18189
18201
|
async handleFilesLoaded(e, t) {
|
|
18190
|
-
this.fileDiff !== e || !e.isPartial || (
|
|
18202
|
+
this.fileDiff !== e || !e.isPartial || (E_("merge", e, t), this.setHydratedState(t), await y_(() => this.primeHighlightCache(e)), !(!this.enabled || this.fileDiff !== e) && this.rerender());
|
|
18191
18203
|
}
|
|
18192
18204
|
setHydratedState(e) {
|
|
18193
18205
|
this.deletionFile = e.oldFile, this.additionFile = e.newFile, this.workerManager?.cleanUpTasks(this.hunksRenderer), this.hunksRenderer.clearRenderCache();
|
|
18194
18206
|
}
|
|
18195
18207
|
render({ fileDiff: e, deferManagers: t = !1, forceRender: n = !1, preventEmit: r = !1, lineAnnotations: i, fileContainer: a, containerWrapper: o, renderRange: s, ...c }) {
|
|
18196
|
-
let l =
|
|
18208
|
+
let l = C_(c, "FileDiff.render"), u = l?.oldFile, d = l?.newFile;
|
|
18197
18209
|
if (!this.enabled) throw Error("FileDiff.render: attempting to call render after cleaned up");
|
|
18198
18210
|
e != null && e.cacheKey === void 0 && (e.cacheKey = e.prevName == null ? e.name : e.prevName + ":" + e.name), this.editor?.__postponeBgTokenizeToNextFrame();
|
|
18199
|
-
let { collapsed: f = !1, themeType: p = "system", expandUnchanged: m = !1 } = this.options, h = f ? void 0 : s, g = this.hasThemeChanged(), _ = l != null, v = _ && (!
|
|
18211
|
+
let { collapsed: f = !1, themeType: p = "system", expandUnchanged: m = !1 } = this.options, h = f ? void 0 : s, g = this.hasThemeChanged(), _ = l != null, v = _ && (!pv(u, this.deletionFile) || !pv(d, this.additionFile)), y = e != null && e !== this.fileDiff, b = i != null && (i.length > 0 || this.lineAnnotations.length > 0) && i !== this.lineAnnotations;
|
|
18200
18212
|
if (!f && mg(h, this.renderRange) && !n && !b && !g && (e != null && e === this.fileDiff || e == null && !v)) return this.applyCachedThemeState(p);
|
|
18201
18213
|
let x;
|
|
18202
18214
|
e == null && _ && (v || this.fileDiff == null) && (x = Im(l.oldFile, l.newFile, this.options.parseDiffOptions));
|
|
@@ -18254,7 +18266,7 @@ var sv = -1, cv = class {
|
|
|
18254
18266
|
}
|
|
18255
18267
|
computeEditorRenderRange(e) {
|
|
18256
18268
|
let t = this.fileDiffCache;
|
|
18257
|
-
if (e == null || t == null ||
|
|
18269
|
+
if (e == null || t == null || I_(e)) return e;
|
|
18258
18270
|
let { diffStyle: n = "split", expandUnchanged: r = !1, collapsedContextThreshold: i = 1 } = this.options, a, o;
|
|
18259
18271
|
return zf({
|
|
18260
18272
|
diff: t,
|
|
@@ -18411,7 +18423,7 @@ var sv = -1, cv = class {
|
|
|
18411
18423
|
let n = new Map(this.separatorCache);
|
|
18412
18424
|
for (let r of e) {
|
|
18413
18425
|
let e = r.slotName, i = this.separatorCache.get(e);
|
|
18414
|
-
if (i == null || !
|
|
18426
|
+
if (i == null || !cv(r, i.hunkData)) {
|
|
18415
18427
|
i?.element.remove();
|
|
18416
18428
|
let n = document.createElement("div");
|
|
18417
18429
|
n.style.display = "contents", n.slot = r.slotName;
|
|
@@ -18434,7 +18446,7 @@ var sv = -1, cv = class {
|
|
|
18434
18446
|
let e = new Map(this.annotationCache), { renderAnnotation: t } = this.options;
|
|
18435
18447
|
if (t != null && this.lineAnnotations.length > 0) for (let [n, r] of this.lineAnnotations.entries()) {
|
|
18436
18448
|
let i = `${n}-${ke(r)}`, a = this.annotationCache.get(i);
|
|
18437
|
-
if (a == null || !
|
|
18449
|
+
if (a == null || !sv(r, a.annotation)) {
|
|
18438
18450
|
a?.element.remove();
|
|
18439
18451
|
let e = t(r);
|
|
18440
18452
|
if (e == null) continue;
|
|
@@ -18552,7 +18564,7 @@ var sv = -1, cv = class {
|
|
|
18552
18564
|
};
|
|
18553
18565
|
return;
|
|
18554
18566
|
}
|
|
18555
|
-
this.themeCSSStyle =
|
|
18567
|
+
this.themeCSSStyle = r_({
|
|
18556
18568
|
shadowRoot: i,
|
|
18557
18569
|
currentNode: this.themeCSSStyle,
|
|
18558
18570
|
themeCSS: Kg(t, a, c)
|
|
@@ -18569,7 +18581,7 @@ var sv = -1, cv = class {
|
|
|
18569
18581
|
e != null && this.themeCSSStyle != null && (this.themeCSSStyle.textContent = qg(this.themeCSSStyle.textContent ?? "", Bg(e)));
|
|
18570
18582
|
}
|
|
18571
18583
|
shouldGuardRebuildScroll() {
|
|
18572
|
-
return this.editor != null &&
|
|
18584
|
+
return this.editor != null && o_();
|
|
18573
18585
|
}
|
|
18574
18586
|
applyHunksToDOM(e, t) {
|
|
18575
18587
|
this.shouldGuardRebuildScroll() ? Qg(e, () => this.replaceCodeColumns(e, t)) : this.replaceCodeColumns(e, t);
|
|
@@ -18577,7 +18589,7 @@ var sv = -1, cv = class {
|
|
|
18577
18589
|
applyCodeColumnsInPlace(e, t, n) {
|
|
18578
18590
|
let r = this.getColumnPair(e);
|
|
18579
18591
|
if (r == null) return !1;
|
|
18580
|
-
let i =
|
|
18592
|
+
let i = vv(t[0]), a = vv(t[1]);
|
|
18581
18593
|
return i == null || a == null ? !1 : (r.gutter.innerHTML = uo(i), r.content.innerHTML = uo(a), n !== this.lastRowCount && (r.gutter.style.setProperty("grid-row", `span ${n}`), r.content.style.setProperty("grid-row", `span ${n}`)), !0);
|
|
18582
18594
|
}
|
|
18583
18595
|
replaceCodeColumns(e, t) {
|
|
@@ -18657,7 +18669,7 @@ var sv = -1, cv = class {
|
|
|
18657
18669
|
if (!Array.isArray(t)) return;
|
|
18658
18670
|
let n = (t, n) => {
|
|
18659
18671
|
if (n == null) return;
|
|
18660
|
-
let r = this.hunksRenderer.renderCodeAST(t, e), i =
|
|
18672
|
+
let r = this.hunksRenderer.renderCodeAST(t, e), i = vv(r?.[0]), a = vv(r?.[1]);
|
|
18661
18673
|
for (let [e, t] of [[n.gutter, i], [n.content, a]]) if (t != null && e.childElementCount === t.length) for (let n = 0; n < t.length; n++) {
|
|
18662
18674
|
let r = e.children[n], i = t[n].properties["data-line-type"];
|
|
18663
18675
|
i != null && r.dataset.lineType !== i && (r.dataset.lineType = i);
|
|
@@ -18671,7 +18683,7 @@ var sv = -1, cv = class {
|
|
|
18671
18683
|
if (e == null) return;
|
|
18672
18684
|
let t = this.getCodeColumns("unified", this.codeUnified, this.codeDeletions, this.codeAdditions);
|
|
18673
18685
|
if (t == null || Array.isArray(t)) return;
|
|
18674
|
-
let n = this.hunksRenderer.renderCodeAST("unified", e), r =
|
|
18686
|
+
let n = this.hunksRenderer.renderCodeAST("unified", e), r = vv(n?.[0]), i = vv(n?.[1]), a = () => {
|
|
18675
18687
|
for (let [e, n] of [[t.gutter, r], [t.content, i]]) n != null && (e.innerHTML = uo(n));
|
|
18676
18688
|
e.rowCount !== this.lastRowCount && (this.applyRowSpan("unified", t, e.rowCount), this.lastRowCount = e.rowCount);
|
|
18677
18689
|
};
|
|
@@ -18679,7 +18691,7 @@ var sv = -1, cv = class {
|
|
|
18679
18691
|
}
|
|
18680
18692
|
renderPartialColumn(e, t, n) {
|
|
18681
18693
|
if (e == null || t == null) return;
|
|
18682
|
-
let r =
|
|
18694
|
+
let r = vv(t[0]), i = vv(t[1]);
|
|
18683
18695
|
if (r == null || i == null) throw Error("FileDiff.insertPartialHTML: Unexpected AST structure");
|
|
18684
18696
|
let a = i.at(0);
|
|
18685
18697
|
n === "beforeend" && a?.type === "element" && typeof a.properties["data-buffer-size"] == "number" && this.mergeBuffersIfNecessary(a.properties["data-buffer-size"], e.content.children[e.content.children.length - 1], e.gutter.children[e.gutter.children.length - 1], r, i, !0);
|
|
@@ -18817,7 +18829,7 @@ var sv = -1, cv = class {
|
|
|
18817
18829
|
totalLines: r,
|
|
18818
18830
|
customProperties: i
|
|
18819
18831
|
};
|
|
18820
|
-
Ng(u, this.appliedPreAttributes) || (
|
|
18832
|
+
Ng(u, this.appliedPreAttributes) || (c_(e, u), this.appliedPreAttributes = u);
|
|
18821
18833
|
}
|
|
18822
18834
|
applyErrorToDOM(e, t) {
|
|
18823
18835
|
this.cleanupErrorWrapper(), this.pre?.remove(), this.pre = void 0, this.appliedPreAttributes = void 0;
|
|
@@ -18832,28 +18844,28 @@ var sv = -1, cv = class {
|
|
|
18832
18844
|
this.errorWrapper?.remove(), this.errorWrapper = void 0;
|
|
18833
18845
|
}
|
|
18834
18846
|
};
|
|
18835
|
-
function
|
|
18847
|
+
function pv(e, t) {
|
|
18836
18848
|
return e == null || t == null ? e == null && t == null : Re(e, t);
|
|
18837
18849
|
}
|
|
18838
|
-
function
|
|
18850
|
+
function mv({ fileDiff: e, oldFile: t, newFile: n }) {
|
|
18839
18851
|
return e != null && e.hunks.length > 0 || t != null || n != null;
|
|
18840
18852
|
}
|
|
18841
|
-
function
|
|
18853
|
+
function hv({ fileDiff: e, oldFile: t, newFile: n }) {
|
|
18842
18854
|
return e != null || t != null || n != null;
|
|
18843
18855
|
}
|
|
18844
|
-
function
|
|
18856
|
+
function gv(e, t, n = !1) {
|
|
18845
18857
|
return !n && e == null && t;
|
|
18846
18858
|
}
|
|
18847
|
-
function
|
|
18859
|
+
function _v(e, t, n = !1) {
|
|
18848
18860
|
return e == null && t && !n;
|
|
18849
18861
|
}
|
|
18850
|
-
function
|
|
18862
|
+
function vv(e) {
|
|
18851
18863
|
if (e != null && e.type === "element") return e.children ?? [];
|
|
18852
18864
|
}
|
|
18853
18865
|
//#endregion
|
|
18854
|
-
//#region ../../node_modules/.pnpm/@pierre+diffs@1.3.
|
|
18855
|
-
var
|
|
18856
|
-
__id = `little-virtualized-file-diff:${++
|
|
18866
|
+
//#region ../../node_modules/.pnpm/@pierre+diffs@1.3.5_patch_hash=ce17810cfea58efa02eb4e70947801afb36c9f8a08a8bb4c810297c2_569c0a392647ba6dd2f0ac61848dddca/node_modules/@pierre/diffs/dist/components/VirtualizedFileDiff.js
|
|
18867
|
+
var yv = 3e3, bv = -1, xv = class extends fv {
|
|
18868
|
+
__id = `little-virtualized-file-diff:${++bv}`;
|
|
18857
18869
|
top;
|
|
18858
18870
|
height = 0;
|
|
18859
18871
|
metrics;
|
|
@@ -18905,10 +18917,10 @@ var hv = 3e3, gv = -1, _v = class extends cv {
|
|
|
18905
18917
|
setOptions(e) {
|
|
18906
18918
|
if (this.isAdvancedMode()) throw Error("VirtualizedFileDiff.setOptions cannot be used inside CodeView. Update CodeView options instead.");
|
|
18907
18919
|
if (e == null) return;
|
|
18908
|
-
let { options: t } = this, n = !Xp(t, e), r = n &&
|
|
18920
|
+
let { options: t } = this, n = !Xp(t, e), r = n && kv(t, e);
|
|
18909
18921
|
super.setOptions(e), r && this.resetLayoutCache({
|
|
18910
18922
|
forceSimpleRecompute: !0,
|
|
18911
|
-
includeEstimatedHeights:
|
|
18923
|
+
includeEstimatedHeights: Av(t, e)
|
|
18912
18924
|
}), n && (this.forceRenderOverride = !0), n && this.isSimpleMode() && this.virtualizer.instanceChanged(this, r);
|
|
18913
18925
|
}
|
|
18914
18926
|
setThemeType(e) {
|
|
@@ -18927,7 +18939,7 @@ var hv = 3e3, gv = -1, _v = class extends cv {
|
|
|
18927
18939
|
if (this.top = this.getVirtualizedTop(), t === "scroll" && this.lineAnnotations.length === 0 && !this.isResizeDebuggingEnabled()) return e;
|
|
18928
18940
|
let n = this.getDiffStyle(), r = n === "split" ? [this.codeDeletions, this.codeAdditions] : [this.codeUnified], i = this.hasFileAnnotations(this.fileDiff);
|
|
18929
18941
|
if (this.renderRange != null && i && Ih(this.renderRange)) {
|
|
18930
|
-
let t =
|
|
18942
|
+
let t = Sv(r) ?? 0;
|
|
18931
18943
|
this.setFileAnnotationHeight(t) && (e = !0);
|
|
18932
18944
|
} else !i && this.setFileAnnotationHeight(0) && (e = !0);
|
|
18933
18945
|
for (let t of r) {
|
|
@@ -18937,7 +18949,7 @@ var hv = 3e3, gv = -1, _v = class extends cv {
|
|
|
18937
18949
|
if (!(t instanceof HTMLElement)) continue;
|
|
18938
18950
|
let r = t.dataset.lineIndex;
|
|
18939
18951
|
if (r == null) continue;
|
|
18940
|
-
let i =
|
|
18952
|
+
let i = Pv(r, n), a = t.getBoundingClientRect().height, o = !1;
|
|
18941
18953
|
t.nextElementSibling instanceof HTMLElement && ("lineAnnotation" in t.nextElementSibling.dataset || "noNewline" in t.nextElementSibling.dataset) && ("noNewline" in t.nextElementSibling.dataset && (o = !0), a += t.nextElementSibling.getBoundingClientRect().height);
|
|
18942
18954
|
let s = this.getEstimatedLineHeight(o), c = this.cache.heightDeltas.get(i) ?? 0, l = a - s;
|
|
18943
18955
|
l !== c && (e = !0, this.cache.measuredHeightDeltaTotal += l - c, l === 0 ? this.cache.heightDeltas.delete(i) : this.cache.heightDeltas.set(i, l));
|
|
@@ -19096,15 +19108,15 @@ var hv = 3e3, gv = -1, _v = class extends cv {
|
|
|
19096
19108
|
async handleFilesLoaded(e, t) {
|
|
19097
19109
|
if (!(this.fileDiff !== e || !e.isPartial)) {
|
|
19098
19110
|
if (this.isAdvancedMode()) {
|
|
19099
|
-
let n =
|
|
19100
|
-
if (await
|
|
19111
|
+
let n = E_("clone", e, t);
|
|
19112
|
+
if (await y_(() => this.primeHighlightCache(n)), !this.enabled || this.fileDiff !== e) return;
|
|
19101
19113
|
this.pendingHydratedDiff = {
|
|
19102
19114
|
expectedDiff: e,
|
|
19103
19115
|
nextDiff: n,
|
|
19104
19116
|
files: t
|
|
19105
19117
|
};
|
|
19106
19118
|
} else {
|
|
19107
|
-
if (
|
|
19119
|
+
if (E_("merge", e, t), this.setHydratedState(t), await y_(() => this.primeHighlightCache(e)), !this.enabled || this.fileDiff !== e) return;
|
|
19108
19120
|
this.resetLayoutCache({ includeEstimatedHeights: !0 }), this.computeApproximateSize();
|
|
19109
19121
|
}
|
|
19110
19122
|
this.forceRenderOverride = !0, this.virtualizer.instanceChanged(this, !0);
|
|
@@ -19203,7 +19215,7 @@ var hv = 3e3, gv = -1, _v = class extends cv {
|
|
|
19203
19215
|
return;
|
|
19204
19216
|
}
|
|
19205
19217
|
if (this.cache.estimatedSplitHeight != null && this.cache.estimatedUnifiedHeight != null) return;
|
|
19206
|
-
let { disableFileHeader: t = !1, expandUnchanged: n = !1, collapsedContextThreshold: r = 1 } = this.options, { splitHeight: i, unifiedHeight: a } =
|
|
19218
|
+
let { disableFileHeader: t = !1, expandUnchanged: n = !1, collapsedContextThreshold: r = 1 } = this.options, { splitHeight: i, unifiedHeight: a } = b_({
|
|
19207
19219
|
fileDiff: e,
|
|
19208
19220
|
metrics: this.metrics,
|
|
19209
19221
|
disableFileHeader: t,
|
|
@@ -19211,7 +19223,7 @@ var hv = 3e3, gv = -1, _v = class extends cv {
|
|
|
19211
19223
|
expandUnchanged: n,
|
|
19212
19224
|
expandedHunks: this.hunksRenderer.getExpandedHunksMap(),
|
|
19213
19225
|
collapsedContextThreshold: r,
|
|
19214
|
-
canHydratePartialDiff:
|
|
19226
|
+
canHydratePartialDiff: jv(e, this.options.loadDiffFiles != null)
|
|
19215
19227
|
});
|
|
19216
19228
|
this.cache.estimatedSplitHeight = i, this.cache.estimatedUnifiedHeight = a;
|
|
19217
19229
|
}
|
|
@@ -19225,7 +19237,7 @@ var hv = 3e3, gv = -1, _v = class extends cv {
|
|
|
19225
19237
|
});
|
|
19226
19238
|
}
|
|
19227
19239
|
render({ fileContainer: e, fileDiff: t, forceRender: n = !1, lineAnnotations: r, ...i } = {}) {
|
|
19228
|
-
let a =
|
|
19240
|
+
let a = C_(i, "VirtualizedFileDiff.render"), o = a != null, s = a?.oldFile, c = a?.newFile, l = o && (!Nv(s, this.deletionFile) || !Nv(c, this.additionFile)), u = t ?? this.fileDiff;
|
|
19229
19241
|
t == null && o && (l || this.fileDiff == null) && (u = Im(a.oldFile, a.newFile, this.options.parseDiffOptions));
|
|
19230
19242
|
let { forceRenderOverride: d, isSetup: f } = this;
|
|
19231
19243
|
this.forceRenderOverride = void 0;
|
|
@@ -19287,22 +19299,22 @@ var hv = 3e3, gv = -1, _v = class extends cv {
|
|
|
19287
19299
|
return this.options.diffStyle ?? "split";
|
|
19288
19300
|
}
|
|
19289
19301
|
getHunkSeparatorType() {
|
|
19290
|
-
return
|
|
19302
|
+
return Mv(this.options.hunkSeparators);
|
|
19291
19303
|
}
|
|
19292
19304
|
approximateLayoutCheckpoints(e = this.fileDiff) {
|
|
19293
19305
|
if (!this.layoutDirty && this.cache.checkpoints.length > 0 || e == null || e.hunks.length === 0 || this.options.collapsed === !0) return;
|
|
19294
|
-
let { disableFileHeader: t = !1, expandUnchanged: n = !1, collapsedContextThreshold: r = 1 } = this.options, i = e.hunks.length - 1, a =
|
|
19306
|
+
let { disableFileHeader: t = !1, expandUnchanged: n = !1, collapsedContextThreshold: r = 1 } = this.options, i = e.hunks.length - 1, a = jv(e, this.options.loadDiffFiles != null), o = this.getDiffStyle(), s = this.getHunkSeparatorType(), c = n ? !0 : this.hunksRenderer.getExpandedHunksMap(), l = Cv(this.cache.heightDeltas), u = Sf(this.metrics, t) + this.cache.fileAnnotationHeight, d = 0, f = ({ rowCount: e, startLineIndex: t, preSeparatorHeight: n = 0, postSeparatorHeight: r = 0, metadataOffsets: i = [] }) => {
|
|
19295
19307
|
if (e <= 0) return;
|
|
19296
|
-
let a = d, o = d + e, s =
|
|
19308
|
+
let a = d, o = d + e, s = Ev(a);
|
|
19297
19309
|
for (; s < o;) {
|
|
19298
|
-
let e = s - a, r = u + (e > 0 ? n : 0) + e * this.metrics.lineHeight +
|
|
19310
|
+
let e = s - a, r = u + (e > 0 ? n : 0) + e * this.metrics.lineHeight + Dv(i, e) * this.metrics.lineHeight + wv(l, t, t + e);
|
|
19299
19311
|
this.cache.checkpoints.push({
|
|
19300
19312
|
renderedLineIndex: s,
|
|
19301
19313
|
lineIndex: t + e,
|
|
19302
19314
|
top: r
|
|
19303
|
-
}), s +=
|
|
19315
|
+
}), s += yv;
|
|
19304
19316
|
}
|
|
19305
|
-
u += n + e * this.metrics.lineHeight + i.length * this.metrics.lineHeight +
|
|
19317
|
+
u += n + e * this.metrics.lineHeight + i.length * this.metrics.lineHeight + wv(l, t, t + e) + r, d = o;
|
|
19306
19318
|
};
|
|
19307
19319
|
for (let t = 0; t < e.hunks.length; t++) {
|
|
19308
19320
|
let n = e.hunks[t];
|
|
@@ -19344,7 +19356,7 @@ var hv = 3e3, gv = -1, _v = class extends cv {
|
|
|
19344
19356
|
startLineIndex: _,
|
|
19345
19357
|
preSeparatorHeight: d,
|
|
19346
19358
|
postSeparatorHeight: h === 0 ? m : 0,
|
|
19347
|
-
metadataOffsets:
|
|
19359
|
+
metadataOffsets: Ov({
|
|
19348
19360
|
diffStyle: o,
|
|
19349
19361
|
hunk: n,
|
|
19350
19362
|
rowCount: g
|
|
@@ -19414,7 +19426,7 @@ var hv = 3e3, gv = -1, _v = class extends cv {
|
|
|
19414
19426
|
return Math.max(n, r, e.additionLines.length, e.deletionLines.length, this.cache.totalLines);
|
|
19415
19427
|
}
|
|
19416
19428
|
computeRenderRangeFromWindow(e, t, { top: n, bottom: r }) {
|
|
19417
|
-
let { disableFileHeader: i = !1, expandUnchanged: a = !1, collapsedContextThreshold: o = 1 } = this.options, { hunkLineCount: s, lineHeight: c } = this.metrics, l = this.getDiffStyle(), u = this.getHunkSeparatorType(), d =
|
|
19429
|
+
let { disableFileHeader: i = !1, expandUnchanged: a = !1, collapsedContextThreshold: o = 1 } = this.options, { hunkLineCount: s, lineHeight: c } = this.metrics, l = this.getDiffStyle(), u = this.getHunkSeparatorType(), d = jv(e, this.options.loadDiffFiles != null), f = this.height, p = this.getLayoutLineCount(e, l), m = Sf(this.metrics, i), h = e.hunks.length > 0 ? wf(this.metrics) : 0, { fileAnnotationHeight: g } = this.cache, _ = m + g, v = Math.max(0, f - m - g - h), y = this.hasFileAnnotations(e), b = t + m, x = g > 0 && y && b < r && b + g > n;
|
|
19418
19430
|
if (t < n - f || t > r) return {
|
|
19419
19431
|
startingLine: 0,
|
|
19420
19432
|
totalLines: 0,
|
|
@@ -19477,7 +19489,7 @@ var hv = 3e3, gv = -1, _v = class extends cv {
|
|
|
19477
19489
|
};
|
|
19478
19490
|
}
|
|
19479
19491
|
};
|
|
19480
|
-
function
|
|
19492
|
+
function Sv(e) {
|
|
19481
19493
|
let t;
|
|
19482
19494
|
for (let n of e) {
|
|
19483
19495
|
if (n == null) continue;
|
|
@@ -19486,7 +19498,7 @@ function vv(e) {
|
|
|
19486
19498
|
}
|
|
19487
19499
|
return t;
|
|
19488
19500
|
}
|
|
19489
|
-
function
|
|
19501
|
+
function Cv(e) {
|
|
19490
19502
|
let t = Array.from(e).sort((e, t) => e[0] - t[0]), n = [], r = [0], i = 0;
|
|
19491
19503
|
for (let [e, a] of t) n.push(e), i += a, r.push(i);
|
|
19492
19504
|
return {
|
|
@@ -19494,12 +19506,12 @@ function yv(e) {
|
|
|
19494
19506
|
prefixTotals: r
|
|
19495
19507
|
};
|
|
19496
19508
|
}
|
|
19497
|
-
function
|
|
19509
|
+
function wv({ lineIndexes: e, prefixTotals: t }, n, r) {
|
|
19498
19510
|
if (n >= r || e.length === 0) return 0;
|
|
19499
|
-
let i =
|
|
19500
|
-
return (t[
|
|
19511
|
+
let i = Tv(e, n);
|
|
19512
|
+
return (t[Tv(e, r)] ?? 0) - (t[i] ?? 0);
|
|
19501
19513
|
}
|
|
19502
|
-
function
|
|
19514
|
+
function Tv(e, t) {
|
|
19503
19515
|
let n = 0, r = e.length;
|
|
19504
19516
|
for (; n < r;) {
|
|
19505
19517
|
let i = n + r >> 1, a = e[i];
|
|
@@ -19508,15 +19520,15 @@ function xv(e, t) {
|
|
|
19508
19520
|
}
|
|
19509
19521
|
return n;
|
|
19510
19522
|
}
|
|
19511
|
-
function
|
|
19512
|
-
return Math.ceil(e /
|
|
19523
|
+
function Ev(e) {
|
|
19524
|
+
return Math.ceil(e / yv) * yv;
|
|
19513
19525
|
}
|
|
19514
|
-
function
|
|
19526
|
+
function Dv(e, t) {
|
|
19515
19527
|
let n = 0;
|
|
19516
19528
|
for (let r of e) r < t && n++;
|
|
19517
19529
|
return n;
|
|
19518
19530
|
}
|
|
19519
|
-
function
|
|
19531
|
+
function Ov({ diffStyle: e, hunk: t, rowCount: n }) {
|
|
19520
19532
|
if (n <= 0 || !t.noEOFCRAdditions && !t.noEOFCRDeletions) return [];
|
|
19521
19533
|
let r = t.hunkContent.at(-1);
|
|
19522
19534
|
if (r == null) return [];
|
|
@@ -19526,28 +19538,28 @@ function wv({ diffStyle: e, hunk: t, rowCount: n }) {
|
|
|
19526
19538
|
let o = [], s = n - a;
|
|
19527
19539
|
return r.deletions > 0 && t.noEOFCRDeletions && o.push(s + r.deletions - 1), r.additions > 0 && t.noEOFCRAdditions && o.push(n - 1), o;
|
|
19528
19540
|
}
|
|
19529
|
-
function
|
|
19541
|
+
function kv(e, t) {
|
|
19530
19542
|
return (e.diffStyle ?? "split") !== (t.diffStyle ?? "split") || (e.overflow ?? "scroll") !== (t.overflow ?? "scroll") || (e.collapsed ?? !1) !== (t.collapsed ?? !1) || (e.disableLineNumbers ?? !1) !== (t.disableLineNumbers ?? !1) || (e.disableFileHeader ?? !1) !== (t.disableFileHeader ?? !1) || (e.diffIndicators ?? "bars") !== (t.diffIndicators ?? "bars") || (e.hunkSeparators ?? "line-info") !== (t.hunkSeparators ?? "line-info") || !!e.loadDiffFiles != !!t.loadDiffFiles || (e.expandUnchanged ?? !1) !== (t.expandUnchanged ?? !1) || (e.collapsedContextThreshold ?? 1) !== (t.collapsedContextThreshold ?? 1) || e.unsafeCSS !== t.unsafeCSS;
|
|
19531
19543
|
}
|
|
19532
|
-
function
|
|
19544
|
+
function Av(e, t) {
|
|
19533
19545
|
return (e.disableFileHeader ?? !1) !== (t.disableFileHeader ?? !1) || (e.hunkSeparators ?? "line-info") !== (t.hunkSeparators ?? "line-info") || !!e.loadDiffFiles != !!t.loadDiffFiles || (e.expandUnchanged ?? !1) !== (t.expandUnchanged ?? !1) || (e.collapsedContextThreshold ?? 1) !== (t.collapsedContextThreshold ?? 1);
|
|
19534
19546
|
}
|
|
19535
|
-
function
|
|
19547
|
+
function jv(e, t) {
|
|
19536
19548
|
return e.isPartial && t && (e.type === "change" || e.type === "rename-changed");
|
|
19537
19549
|
}
|
|
19538
|
-
function
|
|
19550
|
+
function Mv(e) {
|
|
19539
19551
|
return typeof e == "function" ? "custom" : e ?? "line-info";
|
|
19540
19552
|
}
|
|
19541
|
-
function
|
|
19553
|
+
function Nv(e, t) {
|
|
19542
19554
|
return e == null || t == null ? e == null && t == null : Re(e, t);
|
|
19543
19555
|
}
|
|
19544
|
-
function
|
|
19556
|
+
function Pv(e, t) {
|
|
19545
19557
|
let [n, r] = e.split(",").map(Number);
|
|
19546
19558
|
return t === "split" ? r : n;
|
|
19547
19559
|
}
|
|
19548
19560
|
//#endregion
|
|
19549
|
-
//#region ../../node_modules/.pnpm/@pierre+diffs@1.3.
|
|
19550
|
-
var
|
|
19561
|
+
//#region ../../node_modules/.pnpm/@pierre+diffs@1.3.5_patch_hash=ce17810cfea58efa02eb4e70947801afb36c9f8a08a8bb4c810297c2_569c0a392647ba6dd2f0ac61848dddca/node_modules/@pierre/diffs/dist/components/CodeView.js
|
|
19562
|
+
var Fv = /* @__PURE__ */ "theme.disableLineNumbers.overflow.themeType.disableFileHeader.disableVirtualizationBuffers.preferredHighlighter.useCSSClasses.useTokenTransformer.tokenizeMaxLineLength.tokenizeMaxLength.unsafeCSS.diffStyle.diffIndicators.disableBackground.expandUnchanged.loadDiffFiles.collapsedContextThreshold.lineDiffType.maxLineDiffLength.expansionLineCount.lineHoverHighlight.enableTokenInteractionsOnWhitespace.enableGutterUtility.__debugPointerEvents.enableLineSelection.controlledSelection.disableErrorHandling".split("."), Iv = [
|
|
19551
19563
|
"theme",
|
|
19552
19564
|
"disableLineNumbers",
|
|
19553
19565
|
"overflow",
|
|
@@ -19567,7 +19579,7 @@ var jv = /* @__PURE__ */ "theme.disableLineNumbers.overflow.themeType.disableFil
|
|
|
19567
19579
|
"enableLineSelection",
|
|
19568
19580
|
"controlledSelection",
|
|
19569
19581
|
"disableErrorHandling"
|
|
19570
|
-
],
|
|
19582
|
+
], Lv = [
|
|
19571
19583
|
"renderCustomHeader",
|
|
19572
19584
|
"renderHeaderPrefix",
|
|
19573
19585
|
"renderHeaderFilenameSuffix",
|
|
@@ -19583,23 +19595,23 @@ var jv = /* @__PURE__ */ "theme.disableLineNumbers.overflow.themeType.disableFil
|
|
|
19583
19595
|
"onTokenClick",
|
|
19584
19596
|
"onTokenEnter",
|
|
19585
19597
|
"onTokenLeave"
|
|
19586
|
-
],
|
|
19598
|
+
], Rv = [
|
|
19587
19599
|
"onLineSelected",
|
|
19588
19600
|
"onLineSelectionStart",
|
|
19589
19601
|
"onLineSelectionChange",
|
|
19590
19602
|
"onLineSelectionEnd"
|
|
19591
|
-
],
|
|
19592
|
-
function
|
|
19593
|
-
Object.defineProperty(e,
|
|
19603
|
+
], zv = Symbol("CodeView.itemOptionsState");
|
|
19604
|
+
function Bv(e, t) {
|
|
19605
|
+
Object.defineProperty(e, zv, {
|
|
19594
19606
|
configurable: !1,
|
|
19595
19607
|
enumerable: !1,
|
|
19596
19608
|
value: t
|
|
19597
19609
|
});
|
|
19598
19610
|
}
|
|
19599
|
-
function
|
|
19600
|
-
return e[
|
|
19611
|
+
function Vv(e) {
|
|
19612
|
+
return e[zv];
|
|
19601
19613
|
}
|
|
19602
|
-
function
|
|
19614
|
+
function Hv(e, t, n) {
|
|
19603
19615
|
Object.defineProperty(e, t, {
|
|
19604
19616
|
configurable: !1,
|
|
19605
19617
|
enumerable: !0,
|
|
@@ -19608,14 +19620,14 @@ function Rv(e, t, n) {
|
|
|
19608
19620
|
}
|
|
19609
19621
|
});
|
|
19610
19622
|
}
|
|
19611
|
-
var
|
|
19612
|
-
function
|
|
19623
|
+
var Uv = 120, Wv = 1, Gv = "--diffs-overflow-override", Kv = 12e6, qv = 1e6, Jv = 2e6, Yv = 1e7, Xv = 11e6;
|
|
19624
|
+
function Zv(e) {
|
|
19613
19625
|
if (e == null) throw Error("CodeView: createEditor is required for items with edit: true");
|
|
19614
19626
|
}
|
|
19615
|
-
var
|
|
19627
|
+
var Qv = (() => {
|
|
19616
19628
|
let { navigator: e } = globalThis, t = e.userAgent, n = /iP(?:hone|ad|od)/.test(t), r = e.platform === "MacIntel" && e.maxTouchPoints > 1;
|
|
19617
19629
|
return (n || r) && /AppleWebKit/.test(t) && /Safari/.test(t) && !/(CriOS|FxiOS|EdgiOS|OPiOS)/.test(t);
|
|
19618
|
-
})(),
|
|
19630
|
+
})(), $v = class e {
|
|
19619
19631
|
static __STOP = !1;
|
|
19620
19632
|
static __lastScrollPosition = 0;
|
|
19621
19633
|
type = "advanced";
|
|
@@ -19744,7 +19756,7 @@ var Jv = (() => {
|
|
|
19744
19756
|
let { firstIndex: e, lastIndex: t, stickyHeight: n, stickyTop: r, stickyBottom: i } = this.renderState;
|
|
19745
19757
|
if (e === -1 || t === -1) return;
|
|
19746
19758
|
let a = this.stickyContainer.getBoundingClientRect().height;
|
|
19747
|
-
Math.abs(a - n) <
|
|
19759
|
+
Math.abs(a - n) < Wv || console.error("CodeView: sticky container height does not match computed layout", {
|
|
19748
19760
|
computedStickyHeight: n,
|
|
19749
19761
|
actualStickyHeight: a,
|
|
19750
19762
|
delta: a - n,
|
|
@@ -19764,10 +19776,10 @@ var Jv = (() => {
|
|
|
19764
19776
|
this.scrollInteractionFixTimer != null && (clearTimeout(this.scrollInteractionFixTimer), this.scrollInteractionFixTimer = void 0);
|
|
19765
19777
|
}
|
|
19766
19778
|
suspendScrollInteractions() {
|
|
19767
|
-
this.clearScrollInteractionTimer(), this.shouldDisablePointerEvents() && !this.pointerEventsDisabled && (this.stickyContainer.style.pointerEvents = "none", this.pointerEventsDisabled = !0),
|
|
19779
|
+
this.clearScrollInteractionTimer(), this.shouldDisablePointerEvents() && !this.pointerEventsDisabled && (this.stickyContainer.style.pointerEvents = "none", this.pointerEventsDisabled = !0), Qv && !this.codeOverflowFix && (this.stickyContainer.style.setProperty(Gv, "hidden"), this.codeOverflowFix = !0), this.scrollInteractionFixTimer = setTimeout(this.restoreScrollInteractions, Uv);
|
|
19768
19780
|
}
|
|
19769
19781
|
restoreScrollInteractions = () => {
|
|
19770
|
-
this.clearScrollInteractionTimer(), this.pointerEventsDisabled &&= (this.stickyContainer.style.removeProperty("pointer-events"), !1), this.codeOverflowFix &&= (this.stickyContainer.style.setProperty(
|
|
19782
|
+
this.clearScrollInteractionTimer(), this.pointerEventsDisabled &&= (this.stickyContainer.style.removeProperty("pointer-events"), !1), this.codeOverflowFix &&= (this.stickyContainer.style.setProperty(Gv, "auto"), !1);
|
|
19771
19783
|
};
|
|
19772
19784
|
syncLayout() {
|
|
19773
19785
|
let { gap: e, paddingBottom: t, paddingTop: n } = this.getLayout();
|
|
@@ -19848,7 +19860,7 @@ var Jv = (() => {
|
|
|
19848
19860
|
}
|
|
19849
19861
|
cleanElement(e) {
|
|
19850
19862
|
let { shadowRoot: t } = e;
|
|
19851
|
-
if (t != null) for (let e of Array.from(t.children))
|
|
19863
|
+
if (t != null) for (let e of Array.from(t.children)) iy(e) || e.remove();
|
|
19852
19864
|
this.isContainerManaged || e.replaceChildren();
|
|
19853
19865
|
}
|
|
19854
19866
|
queueElementForPool(e) {
|
|
@@ -19950,7 +19962,7 @@ var Jv = (() => {
|
|
|
19950
19962
|
if (i == null) throw Error("CodeView.appendItemsInternal: missing input item");
|
|
19951
19963
|
if (this.idToItem.has(i.id)) throw Error(`CodeView.addItem: duplicate id "${i.id}"`);
|
|
19952
19964
|
let a = this.createItem(i, this.items.length, r);
|
|
19953
|
-
this.items.push(a), this.idToItem.set(a.item.id, a), this.instanceToItem.set(a.instance, a), a.height =
|
|
19965
|
+
this.items.push(a), this.idToItem.set(a.item.id, a), this.instanceToItem.set(a.instance, a), a.height = ey(a), r += a.height + n.gap;
|
|
19954
19966
|
}
|
|
19955
19967
|
this.scrollHeight = r - n.gap, this.scrollDirty = !0, t && (this.canSkipRenderForAppend(i) ? this.syncContainerHeight() : this.render());
|
|
19956
19968
|
}
|
|
@@ -19964,17 +19976,17 @@ var Jv = (() => {
|
|
|
19964
19976
|
if (e == null) return;
|
|
19965
19977
|
this.capturePendingLayoutAnchor();
|
|
19966
19978
|
let { options: t } = this, n = this.getLayout(), { itemMetricsCache: r } = this;
|
|
19967
|
-
|
|
19979
|
+
ty(t, e) && this.invalidateElementPool(), this.options = e;
|
|
19968
19980
|
let i = this.computeMetricsCache(e.itemMetrics), a = !Yp(r, i), o = !Yp(n, this.getLayout());
|
|
19969
19981
|
o && this.syncLayout();
|
|
19970
|
-
let s = a ||
|
|
19982
|
+
let s = a || ny(t, e);
|
|
19971
19983
|
if (s) {
|
|
19972
19984
|
let n = this.pendingLayoutReset;
|
|
19973
19985
|
this.pendingLayoutReset = {
|
|
19974
19986
|
metrics: a ? i : n?.metrics,
|
|
19975
19987
|
resetFileLayoutCache: !0,
|
|
19976
19988
|
resetDiffLayoutCache: !0,
|
|
19977
|
-
includeEstimatedDiffHeights: n?.includeEstimatedDiffHeights === !0 || a ||
|
|
19989
|
+
includeEstimatedDiffHeights: n?.includeEstimatedDiffHeights === !0 || a || ry(t, e)
|
|
19978
19990
|
};
|
|
19979
19991
|
}
|
|
19980
19992
|
(o || s) && (this.markLayoutDirtyFromIndex(0), this.scrollDirty = !0), Xp(t, e) || this.renderOptionsRevision++, this.syncItemEditors();
|
|
@@ -20044,7 +20056,7 @@ var Jv = (() => {
|
|
|
20044
20056
|
return this.buildSlotSnapshot(e);
|
|
20045
20057
|
}
|
|
20046
20058
|
buildSlotSnapshot(e) {
|
|
20047
|
-
let t =
|
|
20059
|
+
let t = uy(this.getRenderedItems(), e), { element: n } = this.header, { element: r } = this.footer;
|
|
20048
20060
|
if (t != null || n != null || r != null) return {
|
|
20049
20061
|
items: t,
|
|
20050
20062
|
header: n,
|
|
@@ -20068,7 +20080,7 @@ var Jv = (() => {
|
|
|
20068
20080
|
createItem(e, t, n) {
|
|
20069
20081
|
let { itemMetricsCache: r } = this;
|
|
20070
20082
|
if (e.type === "diff") {
|
|
20071
|
-
let i = new
|
|
20083
|
+
let i = new xv(this.createDiffOptions(e.id), this, r, this.workerManager, this.isContainerManaged);
|
|
20072
20084
|
return {
|
|
20073
20085
|
type: "diff",
|
|
20074
20086
|
item: e,
|
|
@@ -20081,7 +20093,7 @@ var Jv = (() => {
|
|
|
20081
20093
|
instance: i
|
|
20082
20094
|
};
|
|
20083
20095
|
}
|
|
20084
|
-
let i = new
|
|
20096
|
+
let i = new __(this.createFileOptions(e.id), this, r, this.workerManager, this.isContainerManaged);
|
|
20085
20097
|
return {
|
|
20086
20098
|
type: "file",
|
|
20087
20099
|
item: e,
|
|
@@ -20116,7 +20128,7 @@ var Jv = (() => {
|
|
|
20116
20128
|
let r = this.itemEditors.get(t), i = !1;
|
|
20117
20129
|
try {
|
|
20118
20130
|
if (r == null) {
|
|
20119
|
-
|
|
20131
|
+
Zv(n);
|
|
20120
20132
|
let e = { id: t }, a = n({ onChange: (t, n) => {
|
|
20121
20133
|
let r = this.idToItem.get(e.id);
|
|
20122
20134
|
r != null && (e.lastChange = {
|
|
@@ -20163,36 +20175,36 @@ var Jv = (() => {
|
|
|
20163
20175
|
}
|
|
20164
20176
|
createFileOptionsPrototype() {
|
|
20165
20177
|
let e = {};
|
|
20166
|
-
for (let t of
|
|
20167
|
-
|
|
20168
|
-
let t =
|
|
20178
|
+
for (let t of Iv) Hv(e, t, () => this.options[t]);
|
|
20179
|
+
Hv(e, "stickyHeader", () => this.options.stickyHeaders), Hv(e, "collapsed", (e) => {
|
|
20180
|
+
let t = Vv(e);
|
|
20169
20181
|
if (t != null) return this.getItemOptions(t, "file")?.item.collapsed;
|
|
20170
20182
|
});
|
|
20171
|
-
for (let t of
|
|
20172
|
-
for (let t of
|
|
20183
|
+
for (let t of Lv) this.defineItemSharedCallback(e, "file", t);
|
|
20184
|
+
for (let t of Rv) this.defineItemSelectionCallback(e, "file", t);
|
|
20173
20185
|
return e;
|
|
20174
20186
|
}
|
|
20175
20187
|
createDiffOptionsPrototype() {
|
|
20176
20188
|
let e = {};
|
|
20177
|
-
for (let t of
|
|
20178
|
-
|
|
20179
|
-
let t =
|
|
20189
|
+
for (let t of Fv) Hv(e, t, () => this.options[t]);
|
|
20190
|
+
Hv(e, "stickyHeader", () => this.options.stickyHeaders), Hv(e, "hunkSeparators", () => this.options.hunkSeparators), Hv(e, "collapsed", (e) => {
|
|
20191
|
+
let t = Vv(e);
|
|
20180
20192
|
if (t != null) return this.getItemOptions(t, "diff")?.item.collapsed;
|
|
20181
20193
|
});
|
|
20182
|
-
for (let t of
|
|
20183
|
-
for (let t of
|
|
20194
|
+
for (let t of Lv) this.defineItemSharedCallback(e, "diff", t);
|
|
20195
|
+
for (let t of Rv) this.defineItemSelectionCallback(e, "diff", t);
|
|
20184
20196
|
return e;
|
|
20185
20197
|
}
|
|
20186
20198
|
createFileOptions(e) {
|
|
20187
20199
|
let t = Object.create(this.fileOptionsPrototype);
|
|
20188
|
-
return
|
|
20200
|
+
return Bv(t, { id: e }), t;
|
|
20189
20201
|
}
|
|
20190
20202
|
createDiffOptions(e) {
|
|
20191
20203
|
let t = Object.create(this.diffOptionsPrototype);
|
|
20192
|
-
return
|
|
20204
|
+
return Bv(t, { id: e }), t;
|
|
20193
20205
|
}
|
|
20194
20206
|
updateItemOptionsId(e, t) {
|
|
20195
|
-
let n =
|
|
20207
|
+
let n = Vv(e);
|
|
20196
20208
|
if (n == null) throw Error("CodeView.updateItemOptionsId: No valid state");
|
|
20197
20209
|
n.id = t;
|
|
20198
20210
|
}
|
|
@@ -20201,9 +20213,9 @@ var Jv = (() => {
|
|
|
20201
20213
|
if (n != null && n.type === t) return n;
|
|
20202
20214
|
}
|
|
20203
20215
|
defineItemSharedCallback(e, t, n) {
|
|
20204
|
-
|
|
20216
|
+
Hv(e, n, (e) => {
|
|
20205
20217
|
if (this.options[n] == null) return;
|
|
20206
|
-
let r =
|
|
20218
|
+
let r = Vv(e);
|
|
20207
20219
|
if (r == null) return;
|
|
20208
20220
|
let i = r.callbackCache ??= {}, a = i[n];
|
|
20209
20221
|
return a ?? (a = ((...e) => {
|
|
@@ -20215,8 +20227,8 @@ var Jv = (() => {
|
|
|
20215
20227
|
});
|
|
20216
20228
|
}
|
|
20217
20229
|
defineItemSelectionCallback(e, t, n) {
|
|
20218
|
-
|
|
20219
|
-
let r =
|
|
20230
|
+
Hv(e, n, (e) => {
|
|
20231
|
+
let r = Vv(e);
|
|
20220
20232
|
if (r == null) return;
|
|
20221
20233
|
let i = r.callbackCache ??= {}, a = i[n];
|
|
20222
20234
|
return a ?? (a = ((e) => {
|
|
@@ -20291,10 +20303,10 @@ var Jv = (() => {
|
|
|
20291
20303
|
return this.getMaxScrollTopForHeight(this.getScrollHeight());
|
|
20292
20304
|
}
|
|
20293
20305
|
shouldRebaseScroll() {
|
|
20294
|
-
return this.getMaxScrollTop() >
|
|
20306
|
+
return this.getMaxScrollTop() > Xv;
|
|
20295
20307
|
}
|
|
20296
20308
|
getPagedScrollHeight() {
|
|
20297
|
-
return this.shouldRebaseScroll() ? Math.min(this.getScrollHeight(),
|
|
20309
|
+
return this.shouldRebaseScroll() ? Math.min(this.getScrollHeight(), Kv) : this.getScrollHeight();
|
|
20298
20310
|
}
|
|
20299
20311
|
getMaxPagedScrollTop() {
|
|
20300
20312
|
return this.getMaxScrollTopForHeight(this.getPagedScrollHeight());
|
|
@@ -20326,8 +20338,8 @@ var Jv = (() => {
|
|
|
20326
20338
|
pagedScrollTop: this.clampPagedScrollTop(e),
|
|
20327
20339
|
scrollPageOffset: 0
|
|
20328
20340
|
};
|
|
20329
|
-
let t = this.clampScrollPageOffset(this.scrollPageOffset), n = e - t, r = this.getMaxPagedScrollTop(), i = this.getMaxScrollPageOffset(), a = n >
|
|
20330
|
-
return n < 0 || n > r || a || o ? this.resolveScrollPageWindow(e, o ? Math.min(
|
|
20341
|
+
let t = this.clampScrollPageOffset(this.scrollPageOffset), n = e - t, r = this.getMaxPagedScrollTop(), i = this.getMaxScrollPageOffset(), a = n > Xv && t < i, o = n < qv && t > 0;
|
|
20342
|
+
return n < 0 || n > r || a || o ? this.resolveScrollPageWindow(e, o ? Math.min(Yv, r) : Jv) : {
|
|
20331
20343
|
pagedScrollTop: Mh(this.clampPagedScrollTop(n)),
|
|
20332
20344
|
scrollPageOffset: t
|
|
20333
20345
|
};
|
|
@@ -20355,7 +20367,7 @@ var Jv = (() => {
|
|
|
20355
20367
|
if (e.type === "range") {
|
|
20356
20368
|
let n = this.getRangeScrollPosition(t, e);
|
|
20357
20369
|
if (n == null) {
|
|
20358
|
-
console.warn(`CodeView.scrollTo: unable to resolve range ${
|
|
20370
|
+
console.warn(`CodeView.scrollTo: unable to resolve range ${ay(e.range)} for item "${e.id}"`);
|
|
20359
20371
|
return;
|
|
20360
20372
|
}
|
|
20361
20373
|
return {
|
|
@@ -20403,7 +20415,7 @@ var Jv = (() => {
|
|
|
20403
20415
|
if (e.type === "range") {
|
|
20404
20416
|
let n = this.getRangeScrollPosition(t, e);
|
|
20405
20417
|
if (n == null) {
|
|
20406
|
-
console.warn(`CodeView.scrollTo: unable to resolve range ${
|
|
20418
|
+
console.warn(`CodeView.scrollTo: unable to resolve range ${ay(e.range)} for item "${e.id}"`);
|
|
20407
20419
|
return;
|
|
20408
20420
|
}
|
|
20409
20421
|
return this.clampScrollTop(this.resolveAlignedScrollPosition(t.top + n.top, n.height, e.align, e.offset, this.getStickyHeaderOffset()));
|
|
@@ -20504,7 +20516,7 @@ var Jv = (() => {
|
|
|
20504
20516
|
let t = this.items[e];
|
|
20505
20517
|
if (t == null) throw Error("CodeView.computeRenderRangeAndEmit: missing item");
|
|
20506
20518
|
let { instance: n } = t;
|
|
20507
|
-
t.element == null ? (t.element = this.acquireElement(),
|
|
20519
|
+
t.element == null ? (t.element = this.acquireElement(), cy(this.stickyContainer, t.element, h), n.virtualizedSetup(), sy(t, t.element) && (t.renderedOptionsRevision = this.renderOptionsRevision, g.add(t)), h = t.element) : (cy(this.stickyContainer, t.element, h), sy(t, void 0, t.renderedOptionsRevision !== this.renderOptionsRevision) && (t.renderedOptionsRevision = this.renderOptionsRevision, g.add(t)), h = t.element), t.item.edit === !0 && this.attachItemEditor(t);
|
|
20508
20520
|
}
|
|
20509
20521
|
this.renderState.firstIndex = _ <= v ? _ : -1, this.renderState.lastIndex = v, this.flushSlotCoordinator(), this.flushManagers(g), m && this.measureMountedHosts(), this.reconcileRenderedItems(g), this.syncContainerHeight(), this.updateStickyPositioning();
|
|
20510
20522
|
let y = o == null ? void 0 : this.resolveAnchoredScrollTop(o);
|
|
@@ -20576,7 +20588,7 @@ var Jv = (() => {
|
|
|
20576
20588
|
let t = !1;
|
|
20577
20589
|
for (let n of e) if (n.target === this.stickyContainer) {
|
|
20578
20590
|
let e = n.borderBoxSize[0].blockSize;
|
|
20579
|
-
if (Math.abs(e - this.renderState.stickyHeight) >=
|
|
20591
|
+
if (Math.abs(e - this.renderState.stickyHeight) >= Wv) {
|
|
20580
20592
|
let e = this.getScrollTop(), n = this.getScrollAnchor(e);
|
|
20581
20593
|
this.reconcileRenderedItems(), this.updateStickyPositioning();
|
|
20582
20594
|
let r = n == null ? void 0 : this.resolveAnchoredScrollTop(n);
|
|
@@ -20747,29 +20759,29 @@ var Jv = (() => {
|
|
|
20747
20759
|
return this.getLayout().gap + this.itemMetricsCache.diffHeaderHeight;
|
|
20748
20760
|
}
|
|
20749
20761
|
};
|
|
20750
|
-
function
|
|
20762
|
+
function ey(e) {
|
|
20751
20763
|
return e.instance.cleanUp(!0), e.type === "diff" ? e.instance.prepareCodeViewItem(e.item.fileDiff, e.top, void 0, e.item.annotations ?? []) : e.instance.prepareCodeViewItem(e.item.file, e.top, void 0, e.item.annotations ?? []);
|
|
20752
20764
|
}
|
|
20753
|
-
function
|
|
20765
|
+
function ty(e, t) {
|
|
20754
20766
|
return !Le(e.theme ?? N, t.theme ?? N) || (e.themeType ?? "system") !== (t.themeType ?? "system") || e.unsafeCSS !== t.unsafeCSS;
|
|
20755
20767
|
}
|
|
20756
|
-
function
|
|
20768
|
+
function ny(e, t) {
|
|
20757
20769
|
return (e.overflow ?? "scroll") !== (t.overflow ?? "scroll") || (e.disableLineNumbers ?? !1) !== (t.disableLineNumbers ?? !1) || (e.disableFileHeader ?? !1) !== (t.disableFileHeader ?? !1) || e.unsafeCSS !== t.unsafeCSS || (e.diffStyle ?? "split") !== (t.diffStyle ?? "split") || (e.diffIndicators ?? "bars") !== (t.diffIndicators ?? "bars") || (e.hunkSeparators ?? "line-info") !== (t.hunkSeparators ?? "line-info") || (e.expandUnchanged ?? !1) !== (t.expandUnchanged ?? !1) || (e.collapsedContextThreshold ?? 1) !== (t.collapsedContextThreshold ?? 1);
|
|
20758
20770
|
}
|
|
20759
|
-
function
|
|
20771
|
+
function ry(e, t) {
|
|
20760
20772
|
return (e.disableFileHeader ?? !1) !== (t.disableFileHeader ?? !1) || (e.hunkSeparators ?? "line-info") !== (t.hunkSeparators ?? "line-info") || (e.expandUnchanged ?? !1) !== (t.expandUnchanged ?? !1) || (e.collapsedContextThreshold ?? 1) !== (t.collapsedContextThreshold ?? 1);
|
|
20761
20773
|
}
|
|
20762
|
-
function
|
|
20774
|
+
function iy(e) {
|
|
20763
20775
|
return e instanceof SVGElement || Ah(e) && (e.hasAttribute("data-core-css") || e.hasAttribute("data-theme-css") || e.hasAttribute("data-unsafe-css"));
|
|
20764
20776
|
}
|
|
20765
|
-
function
|
|
20766
|
-
let t =
|
|
20777
|
+
function ay(e) {
|
|
20778
|
+
let t = oy(e.start, e.side), n = oy(e.end, e.endSide ?? e.side);
|
|
20767
20779
|
return t === n ? t : `${t}-${n}`;
|
|
20768
20780
|
}
|
|
20769
|
-
function
|
|
20781
|
+
function oy(e, t) {
|
|
20770
20782
|
return t == null ? `${e}` : `${t === "deletions" ? "D" : "A"}${e}`;
|
|
20771
20783
|
}
|
|
20772
|
-
function
|
|
20784
|
+
function sy(e, t, n = !1) {
|
|
20773
20785
|
return e.type === "diff" ? e.instance.render({
|
|
20774
20786
|
deferManagers: !0,
|
|
20775
20787
|
fileContainer: t,
|
|
@@ -20784,28 +20796,28 @@ function ry(e, t, n = !1) {
|
|
|
20784
20796
|
lineAnnotations: e.item.annotations ?? []
|
|
20785
20797
|
});
|
|
20786
20798
|
}
|
|
20787
|
-
function
|
|
20799
|
+
function cy(e, t, n) {
|
|
20788
20800
|
if (n == null) {
|
|
20789
20801
|
e.firstChild !== t && e.prepend(t);
|
|
20790
20802
|
return;
|
|
20791
20803
|
}
|
|
20792
20804
|
n.nextSibling !== t && n.after(t);
|
|
20793
20805
|
}
|
|
20794
|
-
function
|
|
20806
|
+
function ly(e) {
|
|
20795
20807
|
return (e.annotations?.length ?? 0) > 0;
|
|
20796
20808
|
}
|
|
20797
|
-
function
|
|
20809
|
+
function uy(e, { hasHeaderRenderers: t, hasAnnotationRenderer: n, hasGutterRenderer: r }) {
|
|
20798
20810
|
if (e.length === 0) return;
|
|
20799
20811
|
if (t || r) return e;
|
|
20800
20812
|
if (!n) return;
|
|
20801
20813
|
let i = [];
|
|
20802
|
-
for (let t of e)
|
|
20814
|
+
for (let t of e) ly(t.item) && i.push(t);
|
|
20803
20815
|
return i.length > 0 ? i : void 0;
|
|
20804
20816
|
}
|
|
20805
20817
|
//#endregion
|
|
20806
|
-
//#region ../../node_modules/.pnpm/@pierre+diffs@1.3.
|
|
20807
|
-
var
|
|
20808
|
-
function
|
|
20818
|
+
//#region ../../node_modules/.pnpm/@pierre+diffs@1.3.5_patch_hash=ce17810cfea58efa02eb4e70947801afb36c9f8a08a8bb4c810297c2_569c0a392647ba6dd2f0ac61848dddca/node_modules/@pierre/diffs/dist/react/CodeView.js
|
|
20819
|
+
var dy = typeof window > "u" ? h : y;
|
|
20820
|
+
function fy(e) {
|
|
20809
20821
|
return {
|
|
20810
20822
|
instance: void 0,
|
|
20811
20823
|
items: void 0,
|
|
@@ -20815,8 +20827,8 @@ function cy(e) {
|
|
|
20815
20827
|
slotCoordinator: void 0
|
|
20816
20828
|
};
|
|
20817
20829
|
}
|
|
20818
|
-
function
|
|
20819
|
-
let { className: n, containerRef: r, disableWorkerPool: i = !1, editorOptions: a, initialItems: o, items: s, onItemEditChange: c, onItemEditComplete: l, onScroll: u, onSelectedLinesChange: d, options: f, renderAnnotation: p, renderCodeViewFooter: h, renderCodeViewHeader: g, renderCustomHeader: v, renderGutterUtility: y, renderHeaderFilenameSuffix: C, renderHeaderMetadata: D, renderHeaderPrefix: k, selectedLines: A, style: ee } = e, ne = s !== void 0, re = te(), ie = m(Kp), M = x(
|
|
20830
|
+
function py(e, t) {
|
|
20831
|
+
let { className: n, containerRef: r, disableWorkerPool: i = !1, editorOptions: a, initialItems: o, items: s, onItemEditChange: c, onItemEditComplete: l, onScroll: u, onSelectedLinesChange: d, options: f, renderAnnotation: p, renderCodeViewFooter: h, renderCodeViewHeader: g, renderCustomHeader: v, renderGutterUtility: y, renderHeaderFilenameSuffix: C, renderHeaderMetadata: D, renderHeaderPrefix: k, selectedLines: A, style: ee } = e, ne = s !== void 0, re = te(), ie = m(Kp), M = x(fy(ne)), ae = v != null, oe = p != null, se = y != null, ce = ae || k != null || C != null || D != null, le = ce || oe || se, ue = g != null, de = h != null, fe = j((e) => {
|
|
20820
20832
|
d?.(e);
|
|
20821
20833
|
}), pe = A !== void 0, me = j((e) => {
|
|
20822
20834
|
if (re == null) throw Error("CodeView: EditContext is not attached");
|
|
@@ -20830,7 +20842,7 @@ function ly(e, t) {
|
|
|
20830
20842
|
c?.(e, t, n);
|
|
20831
20843
|
}), he = j((e, t, n) => {
|
|
20832
20844
|
l?.(e, t, n);
|
|
20833
|
-
}), ge = b(() =>
|
|
20845
|
+
}), ge = b(() => yy({
|
|
20834
20846
|
options: f,
|
|
20835
20847
|
hasCustomHeader: ae,
|
|
20836
20848
|
hasGutterRenderer: se,
|
|
@@ -20856,8 +20868,8 @@ function ly(e, t) {
|
|
|
20856
20868
|
l,
|
|
20857
20869
|
d,
|
|
20858
20870
|
f
|
|
20859
|
-
]), [_e] = S(() =>
|
|
20860
|
-
M.current.instance != null && (e == null || e !== M.current.instance.getContainerElement()) && (M.current.instance.cleanUp(), _e.publish(void 0), M.current =
|
|
20871
|
+
]), [_e] = S(() => vy()), [, ve] = S({}), ye = j((e) => {
|
|
20872
|
+
M.current.instance != null && (e == null || e !== M.current.instance.getContainerElement()) && (M.current.instance.cleanUp(), _e.publish(void 0), M.current = fy(ne)), e != null && e !== M.current.instance?.getContainerElement() && (M.current.instance = new $v(ge, i ? void 0 : ie, !0), M.current.instance.setup(e)), typeof r == "function" ? r(e) : r != null && (r.current = e);
|
|
20861
20873
|
}), be = j((e) => {
|
|
20862
20874
|
M.current.disableFlushSync ? _e.publish(e) : O(() => {
|
|
20863
20875
|
_e.publish(e);
|
|
@@ -20877,7 +20889,7 @@ function ly(e, t) {
|
|
|
20877
20889
|
ue,
|
|
20878
20890
|
de
|
|
20879
20891
|
]);
|
|
20880
|
-
return
|
|
20892
|
+
return dy(() => u == null ? void 0 : M.current.instance?.subscribeToScroll(u)), dy(() => {
|
|
20881
20893
|
let { instance: e, controlled: t, items: n, managedOptions: r, slotCoordinator: i } = M.current;
|
|
20882
20894
|
if (e != null) try {
|
|
20883
20895
|
M.current.disableFlushSync = !0;
|
|
@@ -20886,7 +20898,7 @@ function ly(e, t) {
|
|
|
20886
20898
|
console.error("CodeView: cannot switch between controlled and uncontrolled modes. Remount with a new key instead.");
|
|
20887
20899
|
return;
|
|
20888
20900
|
}
|
|
20889
|
-
if (ne) s !== n && (
|
|
20901
|
+
if (ne) s !== n && (gy(n, s) ? M.current.items = s : hy(n, s) ? (M.current.items = s, e.addItems(s.slice(n.length))) : (M.current.items = s, e.setItems(s), a = !0));
|
|
20890
20902
|
else if (n == null) {
|
|
20891
20903
|
let t = o ?? [];
|
|
20892
20904
|
M.current.items = t, t.length > 0 && (e.setItems(t), a = !0);
|
|
@@ -20900,7 +20912,7 @@ function ly(e, t) {
|
|
|
20900
20912
|
}), _(t, () => ({
|
|
20901
20913
|
addItems(e) {
|
|
20902
20914
|
let { controlled: t, instance: n } = M.current;
|
|
20903
|
-
|
|
20915
|
+
_y(t, "addItems"), n == null ? console.error("CodeView.addItems: no valid instance to append items with", e) : n.addItems(e);
|
|
20904
20916
|
},
|
|
20905
20917
|
getItem(e) {
|
|
20906
20918
|
let { instance: t } = M.current;
|
|
@@ -20912,15 +20924,15 @@ function ly(e, t) {
|
|
|
20912
20924
|
},
|
|
20913
20925
|
removeItem(e) {
|
|
20914
20926
|
let { controlled: t, instance: n } = M.current;
|
|
20915
|
-
return
|
|
20927
|
+
return _y(t, "removeItem"), n == null ? (console.error("CodeView.removeItem: no valid instance to remove item from", e), !1) : n.removeItem(e);
|
|
20916
20928
|
},
|
|
20917
20929
|
updateItem(e) {
|
|
20918
20930
|
let { controlled: t, instance: n } = M.current;
|
|
20919
|
-
return
|
|
20931
|
+
return _y(t, "updateItem"), n == null ? (console.error("CodeView.updateItem: no valid instance to update item with", e), !1) : n.updateItem(e);
|
|
20920
20932
|
},
|
|
20921
20933
|
updateItemId(e, t) {
|
|
20922
20934
|
let { controlled: n, instance: r } = M.current;
|
|
20923
|
-
return
|
|
20935
|
+
return _y(n, "updateItemId"), r == null ? (console.error("CodeView.updateItemId: no valid instance to update item id with", e, t), !1) : r.updateItemId(e, t);
|
|
20924
20936
|
},
|
|
20925
20937
|
scrollTo(e) {
|
|
20926
20938
|
let { instance: t } = M.current;
|
|
@@ -20953,7 +20965,7 @@ function ly(e, t) {
|
|
|
20953
20965
|
ref: ye,
|
|
20954
20966
|
className: n,
|
|
20955
20967
|
style: ee
|
|
20956
|
-
}), (le || ue || de) && /* @__PURE__ */ T(
|
|
20968
|
+
}), (le || ue || de) && /* @__PURE__ */ T(by, {
|
|
20957
20969
|
managedContentStore: _e,
|
|
20958
20970
|
renderCustomHeader: v,
|
|
20959
20971
|
renderHeaderPrefix: k,
|
|
@@ -20965,22 +20977,22 @@ function ly(e, t) {
|
|
|
20965
20977
|
renderCodeViewFooter: h
|
|
20966
20978
|
})] });
|
|
20967
20979
|
}
|
|
20968
|
-
var
|
|
20969
|
-
function
|
|
20980
|
+
var my = d(py);
|
|
20981
|
+
function hy(e, t) {
|
|
20970
20982
|
if (e == null || t.length <= e.length) return !1;
|
|
20971
20983
|
if (e.length === 0) return !0;
|
|
20972
20984
|
for (let n = 0; n < e.length; n++) if (t[n] !== e[n]) return !1;
|
|
20973
20985
|
return !0;
|
|
20974
20986
|
}
|
|
20975
|
-
function
|
|
20987
|
+
function gy(e, t) {
|
|
20976
20988
|
if (e == null || e.length !== t.length) return !1;
|
|
20977
20989
|
for (let n = 0; n < e.length; n++) if (e[n] !== t[n]) return !1;
|
|
20978
20990
|
return !0;
|
|
20979
20991
|
}
|
|
20980
|
-
function
|
|
20992
|
+
function _y(e, t) {
|
|
20981
20993
|
if (e) throw Error(`CodeView.${t} cannot be used when CodeView is controlled. Use initialItems for imperative item updates.`);
|
|
20982
20994
|
}
|
|
20983
|
-
function
|
|
20995
|
+
function vy() {
|
|
20984
20996
|
let e, t = /* @__PURE__ */ new Set();
|
|
20985
20997
|
return {
|
|
20986
20998
|
getSnapshot() {
|
|
@@ -20999,21 +21011,21 @@ function my() {
|
|
|
20999
21011
|
}
|
|
21000
21012
|
};
|
|
21001
21013
|
}
|
|
21002
|
-
function
|
|
21014
|
+
function yy({ options: e, hasCustomHeader: t, hasGutterRenderer: n, hasCodeViewHeader: r, hasCodeViewFooter: i, onSelectedLinesChange: a, controlledSelection: o, createEditor: s, onItemEditChange: c, onItemEditComplete: l }) {
|
|
21003
21015
|
let u = {
|
|
21004
21016
|
...e,
|
|
21005
21017
|
controlledSelection: o,
|
|
21006
21018
|
onSelectedLinesChange: a,
|
|
21007
21019
|
createEditor: s
|
|
21008
21020
|
};
|
|
21009
|
-
return c != null && (u.onItemEditChange = c), l != null && (u.onItemEditComplete = l), t && (u.renderCustomHeader =
|
|
21021
|
+
return c != null && (u.onItemEditChange = c), l != null && (u.onItemEditComplete = l), t && (u.renderCustomHeader = Sy), n && (u.renderGutterUtility = Sy), r && (u.renderCodeViewHeader = Sy), i && (u.renderCodeViewFooter = Sy), u;
|
|
21010
21022
|
}
|
|
21011
|
-
var
|
|
21023
|
+
var by = f(function({ managedContentStore: e, renderCustomHeader: t, renderHeaderPrefix: n, renderHeaderFilenameSuffix: r, renderHeaderMetadata: i, renderAnnotation: a, renderGutterUtility: o, renderCodeViewHeader: s, renderCodeViewFooter: c }) {
|
|
21012
21024
|
"use no memo";
|
|
21013
21025
|
let l = j((t) => e.subscribe(t)), u = j(() => e.getSnapshot()), d = C(l, u, u), f = "";
|
|
21014
21026
|
for (let e of d?.items ?? []) f += `${e.id}:${e.version}:${e.type}`;
|
|
21015
21027
|
return /* @__PURE__ */ E(w, { children: [
|
|
21016
|
-
b(() => d?.items?.map((e) => D(
|
|
21028
|
+
b(() => d?.items?.map((e) => D(xy({
|
|
21017
21029
|
renderedItem: e,
|
|
21018
21030
|
renderCustomHeader: t,
|
|
21019
21031
|
renderHeaderPrefix: n,
|
|
@@ -21034,7 +21046,7 @@ var gy = f(function({ managedContentStore: e, renderCustomHeader: t, renderHeade
|
|
|
21034
21046
|
b(() => c != null && d?.footer != null ? D(c(), d.footer) : null, [c, d?.footer])
|
|
21035
21047
|
] });
|
|
21036
21048
|
});
|
|
21037
|
-
function
|
|
21049
|
+
function xy({ renderedItem: e, renderCustomHeader: t, renderHeaderPrefix: n, renderHeaderFilenameSuffix: r, renderHeaderMetadata: i, renderAnnotation: a, renderGutterUtility: o }) {
|
|
21038
21050
|
if (e.type === "diff") {
|
|
21039
21051
|
let { item: s, instance: c } = e;
|
|
21040
21052
|
return Pe({
|
|
@@ -21064,27 +21076,27 @@ function _y({ renderedItem: e, renderCustomHeader: t, renderHeaderPrefix: n, ren
|
|
|
21064
21076
|
});
|
|
21065
21077
|
}
|
|
21066
21078
|
}
|
|
21067
|
-
function
|
|
21079
|
+
function Sy() {}
|
|
21068
21080
|
//#endregion
|
|
21069
21081
|
//#region src/diff/rendered-line.ts
|
|
21070
|
-
var
|
|
21082
|
+
var Cy = (e, t) => {
|
|
21071
21083
|
let n = e.shadowRoot;
|
|
21072
21084
|
if (n === null) return null;
|
|
21073
21085
|
let r = t.side === "additions" ? "data-additions" : "data-deletions", i = t.side === "additions" ? "change-addition" : "change-deletion", a = t.side === "additions" ? "data-line" : "data-alt-line";
|
|
21074
21086
|
return n.querySelector(`[${r}] [data-line="${t.lineNumber}"]`) ?? n.querySelector(`[data-line="${t.lineNumber}"][data-line-type="${i}"]`) ?? n.querySelector(`[${a}="${t.lineNumber}"][data-line-type="context"]`) ?? n.querySelector(`[${a}="${t.lineNumber}"][data-line-type="context-expanded"]`) ?? n.querySelector(`[${r}] [data-alt-line="${t.lineNumber}"]`) ?? n.querySelector(`[${r}][data-line="${t.lineNumber}"]`) ?? n.querySelector(`[${r}][data-alt-line="${t.lineNumber}"]`);
|
|
21075
|
-
},
|
|
21087
|
+
}, wy = (e, t) => {
|
|
21076
21088
|
let n = e.closest("diffs-container");
|
|
21077
|
-
return n === null ? null :
|
|
21078
|
-
},
|
|
21079
|
-
let n =
|
|
21089
|
+
return n === null ? null : Cy(n, t);
|
|
21090
|
+
}, Ty = (e, t) => {
|
|
21091
|
+
let n = wy(e, t);
|
|
21080
21092
|
n !== null && (n.tabIndex = -1, n.focus({ preventScroll: !0 }));
|
|
21081
|
-
},
|
|
21093
|
+
}, Ey = ({ annotation: e, className: t, returnFocus: n }) => {
|
|
21082
21094
|
let r = x(null), i = () => {
|
|
21083
21095
|
if (n !== void 0) {
|
|
21084
21096
|
n();
|
|
21085
21097
|
return;
|
|
21086
21098
|
}
|
|
21087
|
-
r.current !== null &&
|
|
21099
|
+
r.current !== null && Ty(r.current, e.location);
|
|
21088
21100
|
};
|
|
21089
21101
|
return u("div", {
|
|
21090
21102
|
ref: r,
|
|
@@ -21104,7 +21116,7 @@ var yy = (e, t) => {
|
|
|
21104
21116
|
location: e.location,
|
|
21105
21117
|
returnFocus: i
|
|
21106
21118
|
}));
|
|
21107
|
-
},
|
|
21119
|
+
}, Dy = (e) => {
|
|
21108
21120
|
let t = /* @__PURE__ */ new Set();
|
|
21109
21121
|
for (let n of e) {
|
|
21110
21122
|
if (n.id.trim().length === 0 || n.accessibilityLabel.trim().length === 0) throw Error("Diff annotation id and accessibility label must not be blank");
|
|
@@ -21115,8 +21127,8 @@ var yy = (e, t) => {
|
|
|
21115
21127
|
}
|
|
21116
21128
|
};
|
|
21117
21129
|
//#endregion
|
|
21118
|
-
//#region ../../node_modules/.pnpm/@pierre+diffs@1.3.
|
|
21119
|
-
function
|
|
21130
|
+
//#region ../../node_modules/.pnpm/@pierre+diffs@1.3.5_patch_hash=ce17810cfea58efa02eb4e70947801afb36c9f8a08a8bb4c810297c2_569c0a392647ba6dd2f0ac61848dddca/node_modules/@pierre/diffs/dist/highlighter/themes/registerCustomTheme.js
|
|
21131
|
+
function Oy(e, t) {
|
|
21120
21132
|
try {
|
|
21121
21133
|
let n = Gu({
|
|
21122
21134
|
name: e,
|
|
@@ -21132,24 +21144,24 @@ function wy(e, t) {
|
|
|
21132
21144
|
}
|
|
21133
21145
|
}
|
|
21134
21146
|
//#endregion
|
|
21135
|
-
//#region ../../node_modules/.pnpm/@pierre+diffs@1.3.
|
|
21136
|
-
function
|
|
21147
|
+
//#region ../../node_modules/.pnpm/@pierre+diffs@1.3.5_patch_hash=ce17810cfea58efa02eb4e70947801afb36c9f8a08a8bb4c810297c2_569c0a392647ba6dd2f0ac61848dddca/node_modules/@pierre/diffs/dist/highlighter/themes/registerCustomCSSVariableTheme.js
|
|
21148
|
+
function ky(e, t, n = !1) {
|
|
21137
21149
|
let r = ds({
|
|
21138
21150
|
name: e,
|
|
21139
21151
|
variablePrefix: Z("global"),
|
|
21140
21152
|
variableDefaults: t,
|
|
21141
21153
|
fontStyle: n
|
|
21142
21154
|
});
|
|
21143
|
-
|
|
21155
|
+
Oy(e, () => Promise.resolve(r));
|
|
21144
21156
|
}
|
|
21145
21157
|
//#endregion
|
|
21146
21158
|
//#region src/diff/parse-diff.ts
|
|
21147
|
-
var
|
|
21159
|
+
var Ay = (e, t) => {
|
|
21148
21160
|
if (e.trim().length === 0) throw Error(`${t} must not be blank`);
|
|
21149
21161
|
return e;
|
|
21150
|
-
},
|
|
21151
|
-
if (
|
|
21152
|
-
},
|
|
21162
|
+
}, jy = (e) => {
|
|
21163
|
+
if (Ay(e.id, "Diff item id"), Ay(e.before.name, `Diff item ${e.id} before name`), Ay(e.after.name, `Diff item ${e.id} after name`), e.version !== void 0 && (!Number.isInteger(e.version) || e.version < 0)) throw Error(`Diff item ${e.id} version must be a non-negative integer`);
|
|
21164
|
+
}, My = (e) => (jy(e), Im({
|
|
21153
21165
|
...e.before.cacheKey !== void 0 && { cacheKey: e.before.cacheKey },
|
|
21154
21166
|
contents: e.before.contents,
|
|
21155
21167
|
name: e.before.name
|
|
@@ -21157,10 +21169,10 @@ var Ey = (e, t) => {
|
|
|
21157
21169
|
...e.after.cacheKey !== void 0 && { cacheKey: e.after.cacheKey },
|
|
21158
21170
|
contents: e.after.contents,
|
|
21159
21171
|
name: e.after.name
|
|
21160
|
-
}, void 0, !0)),
|
|
21172
|
+
}, void 0, !0)), Ny = {
|
|
21161
21173
|
dark: "rly-dark",
|
|
21162
21174
|
light: "rly-light"
|
|
21163
|
-
},
|
|
21175
|
+
}, Py = {
|
|
21164
21176
|
"ansi-black": "var(--rly-color-text-1)",
|
|
21165
21177
|
"ansi-blue": "var(--rly-color-text-1)",
|
|
21166
21178
|
"ansi-bright-black": "var(--rly-color-text-2)",
|
|
@@ -21180,7 +21192,7 @@ var Ey = (e, t) => {
|
|
|
21180
21192
|
background: "var(--rly-color-surface-1)",
|
|
21181
21193
|
foreground: "var(--rly-color-text-1)",
|
|
21182
21194
|
"token-changed": "var(--rly-color-text-1)",
|
|
21183
|
-
"token-comment": "var(--rly-color-text-
|
|
21195
|
+
"token-comment": "var(--rly-color-text-2)",
|
|
21184
21196
|
"token-constant": "var(--rly-color-text-1)",
|
|
21185
21197
|
"token-deleted": "var(--rly-color-text-1)",
|
|
21186
21198
|
"token-function": "var(--rly-color-text-1)",
|
|
@@ -21191,12 +21203,12 @@ var Ey = (e, t) => {
|
|
|
21191
21203
|
"token-punctuation": "var(--rly-color-text-1)",
|
|
21192
21204
|
"token-string": "var(--rly-color-text-1)",
|
|
21193
21205
|
"token-string-expression": "var(--rly-color-text-1)"
|
|
21194
|
-
},
|
|
21195
|
-
|
|
21196
|
-
},
|
|
21206
|
+
}, Fy = !1, Iy = () => {
|
|
21207
|
+
Fy ||= (ky(Ny.light, Py), ky(Ny.dark, Py), !0);
|
|
21208
|
+
}, Ly = "" + new URL("../assets/worker-D8fZ3h-U.js", import.meta.url).href, Ry = l({ status: "main-thread" }), zy = (e = 2) => {
|
|
21197
21209
|
if (!Number.isInteger(e) || e < 1 || e > 4) throw RangeError("Diff worker pool size must be an integer from 1 through 4");
|
|
21198
21210
|
return e;
|
|
21199
|
-
},
|
|
21211
|
+
}, By = ({ name: e = "rly-diff-highlighter", workerUrl: t = Ly } = {}) => () => {
|
|
21200
21212
|
try {
|
|
21201
21213
|
return new Worker(t, {
|
|
21202
21214
|
name: e,
|
|
@@ -21205,11 +21217,11 @@ var Ey = (e, t) => {
|
|
|
21205
21217
|
} catch {
|
|
21206
21218
|
throw Error("Diff workers are available only in a browser");
|
|
21207
21219
|
}
|
|
21208
|
-
},
|
|
21220
|
+
}, Vy = By(), Hy = (e, t) => e.subscribeToStatChanges((e) => {
|
|
21209
21221
|
e.workersFailed && t();
|
|
21210
|
-
}),
|
|
21222
|
+
}), Uy = (e, t) => {
|
|
21211
21223
|
try {
|
|
21212
|
-
return e().terminate(),
|
|
21224
|
+
return e().terminate(), Iy(), {
|
|
21213
21225
|
manager: new Bp({
|
|
21214
21226
|
poolSize: t,
|
|
21215
21227
|
workerFactory: e
|
|
@@ -21222,24 +21234,24 @@ var Ey = (e, t) => {
|
|
|
21222
21234
|
"yaml",
|
|
21223
21235
|
"markdown"
|
|
21224
21236
|
],
|
|
21225
|
-
theme:
|
|
21237
|
+
theme: Ny
|
|
21226
21238
|
}),
|
|
21227
21239
|
status: "worker"
|
|
21228
21240
|
};
|
|
21229
21241
|
} catch {
|
|
21230
21242
|
return { status: "fallback" };
|
|
21231
21243
|
}
|
|
21232
|
-
},
|
|
21244
|
+
}, Wy = ({ children: e, observeWorkerFailure: t, poolSize: n, workerFactory: r = Vy }) => {
|
|
21233
21245
|
let [i, a] = S({ status: "main-thread" });
|
|
21234
21246
|
return h(() => {
|
|
21235
|
-
let e = !0, i =
|
|
21247
|
+
let e = !0, i = Uy(r, zy(n)), o = i.manager, s = !1, c = {}, l = () => {
|
|
21236
21248
|
s || (s = !0, c.unsubscribe?.(), o?.terminate());
|
|
21237
21249
|
};
|
|
21238
21250
|
if (o !== void 0) {
|
|
21239
21251
|
let n = () => {
|
|
21240
21252
|
e && (l(), a({ status: "fallback" }));
|
|
21241
21253
|
};
|
|
21242
|
-
c.unsubscribe = t === void 0 ?
|
|
21254
|
+
c.unsubscribe = t === void 0 ? Hy(o, n) : t(n), s && c.unsubscribe();
|
|
21243
21255
|
}
|
|
21244
21256
|
return s || a(i), () => {
|
|
21245
21257
|
e = !1, l();
|
|
@@ -21248,36 +21260,36 @@ var Ey = (e, t) => {
|
|
|
21248
21260
|
t,
|
|
21249
21261
|
n,
|
|
21250
21262
|
r
|
|
21251
|
-
]), /* @__PURE__ */ T(
|
|
21263
|
+
]), /* @__PURE__ */ T(Ry.Provider, {
|
|
21252
21264
|
value: i,
|
|
21253
21265
|
children: /* @__PURE__ */ T(Kp.Provider, {
|
|
21254
21266
|
value: i.manager,
|
|
21255
21267
|
children: e
|
|
21256
21268
|
})
|
|
21257
21269
|
});
|
|
21258
|
-
},
|
|
21270
|
+
}, Gy = () => m(Ry), Ky = ({ rendererProps: e }) => /* @__PURE__ */ T(my, { ...e }), qy = (e, t) => t.filter((t) => t.location.itemId === e).map((e) => ({
|
|
21259
21271
|
lineNumber: e.location.lineNumber,
|
|
21260
21272
|
metadata: { annotation: e },
|
|
21261
21273
|
side: e.location.side
|
|
21262
|
-
})),
|
|
21274
|
+
})), Jy = (e, t) => {
|
|
21263
21275
|
let n = new Map(e.map((e) => [e.id, e])), r = new Map(t.map((e) => [e.id, e])), i = /* @__PURE__ */ new Set();
|
|
21264
21276
|
for (let [e, t] of n) r.get(e) !== t && i.add(t.location.itemId);
|
|
21265
21277
|
for (let [e, t] of r) n.get(e) !== t && i.add(t.location.itemId);
|
|
21266
21278
|
return i;
|
|
21267
|
-
},
|
|
21268
|
-
annotations:
|
|
21279
|
+
}, Yy = (e, t, n) => ({
|
|
21280
|
+
annotations: qy(e.id, t),
|
|
21269
21281
|
...e.collapsed !== void 0 && { collapsed: e.collapsed },
|
|
21270
|
-
fileDiff:
|
|
21282
|
+
fileDiff: My(e),
|
|
21271
21283
|
id: e.id,
|
|
21272
21284
|
type: "diff",
|
|
21273
21285
|
version: n
|
|
21274
|
-
}),
|
|
21286
|
+
}), Xy = (e) => {
|
|
21275
21287
|
let t = /* @__PURE__ */ new Set();
|
|
21276
21288
|
for (let n of e) {
|
|
21277
|
-
if (
|
|
21289
|
+
if (jy(n), t.has(n.id)) throw Error(`Diff item id ${n.id} must be unique`);
|
|
21278
21290
|
t.add(n.id);
|
|
21279
21291
|
}
|
|
21280
|
-
},
|
|
21292
|
+
}, Zy = (e) => e === void 0 ? i(k, "root") : `${i(k, "root")} ${e}`, Qy = (e, t, n, r) => {
|
|
21281
21293
|
if (n === "unmount") return;
|
|
21282
21294
|
let i = e.shadowRoot;
|
|
21283
21295
|
if (e.dataset.rlyDiffItem = t, e.style.setProperty("--diffs-selection-number-fg", "var(--rly-color-text-1)"), r) for (let e of i?.querySelectorAll("code[data-code]") ?? []) e.tabIndex = 0;
|
|
@@ -21287,20 +21299,20 @@ var Ey = (e, t) => {
|
|
|
21287
21299
|
(t.key === "Enter" || t.key === " ") && (t.preventDefault(), e.click());
|
|
21288
21300
|
}));
|
|
21289
21301
|
}
|
|
21290
|
-
},
|
|
21291
|
-
if (
|
|
21292
|
-
|
|
21293
|
-
let g =
|
|
21302
|
+
}, $y = ((e) => d(function({ annotations: t = [], className: n, contextLines: r = 3, empty: a = "No renderable source changes.", expandContext: o = !1, initialItems: s, mode: c = "split", onItemRender: l, onSelectedLinesChange: u, selectedLines: d, virtualization: f = "buffered", wrap: p = !1 }, m) {
|
|
21303
|
+
if (Xy(s), Dy(t), !Number.isInteger(r) || r < 0) throw Error("Diff context lines must be a non-negative integer");
|
|
21304
|
+
Iy();
|
|
21305
|
+
let g = Gy(), v = x(null), y = x(null), b = x(t), C = x(t);
|
|
21294
21306
|
b.current = t;
|
|
21295
|
-
let [w] = S(() => new Map(s.map((e) => [e.id, e]))), [D] = S(() => new Map(s.map((e) => [e.id, e.version ?? 0]))), O = [...w.values()].map((e) =>
|
|
21307
|
+
let [w] = S(() => new Map(s.map((e) => [e.id, e]))), [D] = S(() => new Map(s.map((e) => [e.id, e.version ?? 0]))), O = [...w.values()].map((e) => Yy(e, t, D.get(e.id) ?? e.version ?? 0));
|
|
21296
21308
|
return h(() => {
|
|
21297
|
-
let e =
|
|
21309
|
+
let e = Jy(C.current, t);
|
|
21298
21310
|
C.current = t;
|
|
21299
21311
|
for (let n of e) {
|
|
21300
21312
|
let e = w.get(n);
|
|
21301
21313
|
if (e === void 0) continue;
|
|
21302
21314
|
let r = (D.get(e.id) ?? e.version ?? 0) + 1;
|
|
21303
|
-
D.set(e.id, r), y.current?.updateItem(
|
|
21315
|
+
D.set(e.id, r), y.current?.updateItem(Yy(e, t, r));
|
|
21304
21316
|
}
|
|
21305
21317
|
}, [
|
|
21306
21318
|
t,
|
|
@@ -21308,34 +21320,34 @@ var Ey = (e, t) => {
|
|
|
21308
21320
|
D
|
|
21309
21321
|
]), _(m, () => ({
|
|
21310
21322
|
addItems(e) {
|
|
21311
|
-
|
|
21323
|
+
Xy(e);
|
|
21312
21324
|
for (let t of e) if (w.has(t.id)) throw Error(`Diff item id ${t.id} already exists`);
|
|
21313
21325
|
let t = e.map((e) => {
|
|
21314
21326
|
w.set(e.id, e);
|
|
21315
21327
|
let t = e.version ?? 0;
|
|
21316
|
-
return D.set(e.id, t),
|
|
21328
|
+
return D.set(e.id, t), Yy(e, b.current, t);
|
|
21317
21329
|
});
|
|
21318
21330
|
y.current?.addItems(t);
|
|
21319
21331
|
},
|
|
21320
21332
|
focusLine(e) {
|
|
21321
21333
|
let t = v.current?.querySelector(`diffs-container[data-rly-diff-item="${CSS.escape(e.id)}"]`);
|
|
21322
21334
|
if (t == null) return !1;
|
|
21323
|
-
let n =
|
|
21335
|
+
let n = Cy(t, e);
|
|
21324
21336
|
return n !== null && (n.tabIndex = -1, n.focus({ preventScroll: !0 }), t.shadowRoot?.activeElement === n);
|
|
21325
21337
|
},
|
|
21326
21338
|
scrollTo(e) {
|
|
21327
21339
|
y.current?.scrollTo(e);
|
|
21328
21340
|
},
|
|
21329
21341
|
updateItem(e) {
|
|
21330
|
-
if (
|
|
21342
|
+
if (jy(e), !w.has(e.id)) return !1;
|
|
21331
21343
|
let t = Math.max(e.version ?? 0, (D.get(e.id) ?? 0) + 1);
|
|
21332
|
-
return D.set(e.id, t), w.set(e.id, e), y.current?.updateItem(
|
|
21344
|
+
return D.set(e.id, t), w.set(e.id, e), y.current?.updateItem(Yy(e, b.current, t)) ?? !1;
|
|
21333
21345
|
}
|
|
21334
21346
|
}), [w, D]), s.length === 0 ? /* @__PURE__ */ T("p", {
|
|
21335
|
-
className:
|
|
21347
|
+
className: Zy(n),
|
|
21336
21348
|
children: a
|
|
21337
21349
|
}) : /* @__PURE__ */ E("div", {
|
|
21338
|
-
className:
|
|
21350
|
+
className: Zy(n),
|
|
21339
21351
|
"data-rly-diff-code-view": "",
|
|
21340
21352
|
"data-rly-diff-mode": c,
|
|
21341
21353
|
children: [g.status === "fallback" ? /* @__PURE__ */ T("p", {
|
|
@@ -21365,20 +21377,20 @@ var Ey = (e, t) => {
|
|
|
21365
21377
|
paddingTop: 8
|
|
21366
21378
|
},
|
|
21367
21379
|
onPostRender: (e, t, n, r) => {
|
|
21368
|
-
|
|
21380
|
+
Qy(e, r.item.id, n, !p), n !== "unmount" && l?.(r.item.id, g.status);
|
|
21369
21381
|
},
|
|
21370
21382
|
overflow: p ? "wrap" : "scroll",
|
|
21371
21383
|
stickyHeaders: !0,
|
|
21372
|
-
theme:
|
|
21384
|
+
theme: Ny
|
|
21373
21385
|
},
|
|
21374
|
-
renderAnnotation: (e) => /* @__PURE__ */ T(
|
|
21386
|
+
renderAnnotation: (e) => /* @__PURE__ */ T(Ey, {
|
|
21375
21387
|
annotation: e.metadata.annotation,
|
|
21376
21388
|
className: i(k, "annotation")
|
|
21377
21389
|
}),
|
|
21378
21390
|
...d !== void 0 && { selectedLines: d }
|
|
21379
21391
|
} }, g.status)]
|
|
21380
21392
|
});
|
|
21381
|
-
}))(
|
|
21393
|
+
}))(Ky), $ = (e) => i(A, e), eb = (e) => {
|
|
21382
21394
|
if (r(e.id, "DiffFinding id"), r(e.authorName, "DiffFinding authorName"), r(e.title, "DiffFinding title"), r(e.body, "DiffFinding body"), r(e.anchor.fileId, "DiffFinding anchor fileId"), r(e.anchor.path, "DiffFinding anchor path"), r(e.anchor.revision, "DiffFinding anchor revision"), r(e.anchor.contextHash, "DiffFinding anchor contextHash"), !Number.isInteger(e.anchor.line) || e.anchor.line < 1) throw Error("DiffFinding anchor line must be a positive integer");
|
|
21383
21395
|
e.anchor.state === "stale" && (r(e.anchor.reason, "DiffFinding stale anchor reason"), e.anchor.currentRevision !== void 0 && r(e.anchor.currentRevision, "DiffFinding currentRevision"));
|
|
21384
21396
|
let t = e.prevention;
|
|
@@ -21390,15 +21402,15 @@ var Ey = (e, t) => {
|
|
|
21390
21402
|
for (let e of t.sourcePaths) r(e, "DiffFinding prevention sourcePath");
|
|
21391
21403
|
}
|
|
21392
21404
|
}
|
|
21393
|
-
},
|
|
21405
|
+
}, tb = {
|
|
21394
21406
|
"ast-grep": "ast-grep",
|
|
21395
21407
|
eslint: "ESLint",
|
|
21396
21408
|
instruction: "Agent instruction",
|
|
21397
21409
|
none: "Human judgment",
|
|
21398
21410
|
test: "Test",
|
|
21399
21411
|
"type-check": "Type check"
|
|
21400
|
-
},
|
|
21401
|
-
|
|
21412
|
+
}, nb = ({ className: e, finding: t, onAnchorActivate: n, ...r }) => {
|
|
21413
|
+
eb(t);
|
|
21402
21414
|
let i = `rly-diff-finding-${g()}`, o = `${t.anchor.path}, ${t.anchor.side} line ${t.anchor.line}`;
|
|
21403
21415
|
return /* @__PURE__ */ E("article", {
|
|
21404
21416
|
...r,
|
|
@@ -21450,7 +21462,7 @@ var Ey = (e, t) => {
|
|
|
21450
21462
|
className: $("preventionCopy"),
|
|
21451
21463
|
children: [/* @__PURE__ */ T("strong", { children: "Prevent recurrence" }), /* @__PURE__ */ T("span", { children: t.prevention.summary })]
|
|
21452
21464
|
}),
|
|
21453
|
-
/* @__PURE__ */ T("code", { children:
|
|
21465
|
+
/* @__PURE__ */ T("code", { children: tb[t.prevention.enforcement] }),
|
|
21454
21466
|
/* @__PURE__ */ T("span", {
|
|
21455
21467
|
"aria-hidden": "true",
|
|
21456
21468
|
className: $("preventionIndicator")
|
|
@@ -21497,6 +21509,6 @@ var Ey = (e, t) => {
|
|
|
21497
21509
|
});
|
|
21498
21510
|
};
|
|
21499
21511
|
//#endregion
|
|
21500
|
-
export {
|
|
21512
|
+
export { $y as DiffCodeView, s as DiffFileTree, nb as DiffFinding, o as DiffHeader, c as DiffWorkbench, Wy as DiffWorkerProvider, Ny as RLY_DIFF_THEMES, By as createDiffWorkerFactory, zy as normalizeDiffWorkerPoolSize };
|
|
21501
21513
|
|
|
21502
21514
|
//# sourceMappingURL=index.js.map
|