markstream-angular 0.0.2-beta.3 → 0.0.2-beta.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.css +1 -1
- package/dist/index.js +867 -810
- package/dist/types/components/TableNode/TableNode.component.d.ts +17 -2
- package/package.json +3 -3
package/dist/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { CommonModule as
|
|
2
|
-
import { Input as c, Component as b, ChangeDetectionStrategy as k, forwardRef as p, inject as
|
|
3
|
-
import { normalizeCustomHtmlTags as dt, normalizeCustomHtmlTagName as
|
|
4
|
-
const
|
|
1
|
+
import { CommonModule as _ } from "@angular/common";
|
|
2
|
+
import { Input as c, Component as b, ChangeDetectionStrategy as k, forwardRef as p, inject as X, ChangeDetectorRef as me, ViewChild as B, ViewContainerRef as xi, ElementRef as uo, Renderer2 as bi, Directive as ki, HostListener as ho, EventEmitter as mt, Output as Pt } from "@angular/core";
|
|
3
|
+
import { normalizeCustomHtmlTags as dt, normalizeCustomHtmlTagName as Ut, mergeCustomHtmlTags as sr, parseMarkdownToStructure as en, getMarkdown as tn, BLOCKED_HTML_TAGS as Ci, VOID_HTML_TAGS as mo, DANGEROUS_HTML_ATTRS as fo, URL_HTML_ATTRS as po, isUnsafeHtmlUrl as go, NON_STRUCTURING_HTML_TAGS as yo, stripCustomHtmlWrapper as Ti, getHtmlTagFromContent as Pi, STANDARD_HTML_TAGS as Si, hasCompleteHtmlTagContent as _i } from "stream-markdown-parser";
|
|
4
|
+
const Ht = /<\/?([A-Z][\w:-]*)(?:\s[^<>]*)?>/gi;
|
|
5
5
|
function rn(e, t, r) {
|
|
6
6
|
const o = dt(r), n = new Set(o);
|
|
7
7
|
if (!t || n.size === 0 || !Array.isArray(e) || e.length === 0)
|
|
@@ -10,7 +10,7 @@ function rn(e, t, r) {
|
|
|
10
10
|
if (i.length === 0)
|
|
11
11
|
return e.slice();
|
|
12
12
|
let s = 0;
|
|
13
|
-
const a = e.map((d) =>
|
|
13
|
+
const a = e.map((d) => jr(d)), l = (d) => {
|
|
14
14
|
if (!d || typeof d != "object")
|
|
15
15
|
return;
|
|
16
16
|
const u = Di(d, n);
|
|
@@ -30,22 +30,22 @@ function rn(e, t, r) {
|
|
|
30
30
|
function Mi(e, t) {
|
|
31
31
|
const r = [], o = [];
|
|
32
32
|
let n;
|
|
33
|
-
for (
|
|
34
|
-
const i = n[0], s =
|
|
33
|
+
for (Ht.lastIndex = 0; (n = Ht.exec(e)) !== null; ) {
|
|
34
|
+
const i = n[0], s = Ut(n[1]);
|
|
35
35
|
if (!s || !t.has(s))
|
|
36
36
|
continue;
|
|
37
37
|
if (!i.startsWith("</")) {
|
|
38
38
|
r.push({
|
|
39
39
|
tag: s,
|
|
40
40
|
start: n.index,
|
|
41
|
-
openEnd:
|
|
41
|
+
openEnd: Ht.lastIndex
|
|
42
42
|
});
|
|
43
43
|
continue;
|
|
44
44
|
}
|
|
45
45
|
const l = Oi(r, s);
|
|
46
46
|
if (l < 0)
|
|
47
47
|
continue;
|
|
48
|
-
const [d] = r.splice(l, 1), u = n.index, h =
|
|
48
|
+
const [d] = r.splice(l, 1), u = n.index, h = Ht.lastIndex;
|
|
49
49
|
o.push({
|
|
50
50
|
tag: s,
|
|
51
51
|
start: d.start,
|
|
@@ -82,19 +82,19 @@ function Ei(e, t, r, o) {
|
|
|
82
82
|
return o(n), null;
|
|
83
83
|
}
|
|
84
84
|
function Di(e, t) {
|
|
85
|
-
const r =
|
|
85
|
+
const r = Ut(e.tag);
|
|
86
86
|
if (r && t.has(r))
|
|
87
87
|
return r;
|
|
88
|
-
const o =
|
|
88
|
+
const o = Ut(e.type);
|
|
89
89
|
return o && t.has(o) ? o : "";
|
|
90
90
|
}
|
|
91
|
-
function
|
|
91
|
+
function jr(e) {
|
|
92
92
|
if (!e || typeof e != "object")
|
|
93
93
|
return e;
|
|
94
|
-
const t = Array.isArray(e) ? e.map((r) =>
|
|
94
|
+
const t = Array.isArray(e) ? e.map((r) => jr(r)) : { ...e };
|
|
95
95
|
if (!Array.isArray(t))
|
|
96
96
|
for (const [r, o] of Object.entries(t))
|
|
97
|
-
Array.isArray(o) && (t[r] = o.map((n) =>
|
|
97
|
+
Array.isArray(o) && (t[r] = o.map((n) => jr(n)));
|
|
98
98
|
return t;
|
|
99
99
|
}
|
|
100
100
|
const Ri = "markstream-angular-nested-nodes", Rn = /* @__PURE__ */ new Map();
|
|
@@ -107,21 +107,21 @@ function Ii(e, t = {}) {
|
|
|
107
107
|
if (s.length > 0)
|
|
108
108
|
return s.slice();
|
|
109
109
|
}
|
|
110
|
-
const o =
|
|
110
|
+
const o = $i(e);
|
|
111
111
|
if (!o)
|
|
112
112
|
return [];
|
|
113
|
-
const n =
|
|
113
|
+
const n = Ni(e, t), i = Li(t);
|
|
114
114
|
return rn(
|
|
115
115
|
en(o, i, n),
|
|
116
116
|
o,
|
|
117
|
-
|
|
117
|
+
sr(t.customHtmlTags, n?.customHtmlTags)
|
|
118
118
|
);
|
|
119
119
|
}
|
|
120
|
-
function
|
|
120
|
+
function $i(e) {
|
|
121
121
|
return typeof e.content == "string" ? e.content : typeof e.node?.content == "string" ? e.node.content : "";
|
|
122
122
|
}
|
|
123
|
-
function
|
|
124
|
-
const r = t.parseOptions ?? {}, o = t.final ?? Ai(e.node), n =
|
|
123
|
+
function Ni(e, t) {
|
|
124
|
+
const r = t.parseOptions ?? {}, o = t.final ?? Ai(e.node), n = sr(t.customHtmlTags, r.customHtmlTags);
|
|
125
125
|
return o == null && n.length === 0 ? r : {
|
|
126
126
|
...r,
|
|
127
127
|
...o == null ? {} : { final: o },
|
|
@@ -133,7 +133,7 @@ function Ai(e) {
|
|
|
133
133
|
return !e.loading;
|
|
134
134
|
}
|
|
135
135
|
function Li(e) {
|
|
136
|
-
const t =
|
|
136
|
+
const t = sr(e.customHtmlTags, e.parseOptions?.customHtmlTags), r = `${e.cacheKey || Ri}::${t.join(",")}`;
|
|
137
137
|
let o = Rn.get(r);
|
|
138
138
|
return o || (o = tn(r, {
|
|
139
139
|
customHtmlTags: t
|
|
@@ -142,7 +142,7 @@ function Li(e) {
|
|
|
142
142
|
function Hi(e) {
|
|
143
143
|
return Array.isArray(e) ? e : [];
|
|
144
144
|
}
|
|
145
|
-
const
|
|
145
|
+
const ar = "__global__", Lr = "__MARKSTREAM_ANGULAR_CUSTOM_COMPONENTS_STORE__", G = (() => {
|
|
146
146
|
const e = globalThis;
|
|
147
147
|
if (e[Lr])
|
|
148
148
|
return e[Lr];
|
|
@@ -170,10 +170,10 @@ function cd() {
|
|
|
170
170
|
return G.revision;
|
|
171
171
|
}
|
|
172
172
|
function dd(e, t) {
|
|
173
|
-
typeof e == "string" ? G.scopedComponents[e] = { ...t || {} } : G.scopedComponents[
|
|
173
|
+
typeof e == "string" ? G.scopedComponents[e] = { ...t || {} } : G.scopedComponents[ar] = { ...e }, nn();
|
|
174
174
|
}
|
|
175
175
|
function vo(e) {
|
|
176
|
-
const t = G.scopedComponents[
|
|
176
|
+
const t = G.scopedComponents[ar] || {};
|
|
177
177
|
if (!e)
|
|
178
178
|
return t;
|
|
179
179
|
const r = G.scopedComponents[e] || {};
|
|
@@ -183,12 +183,12 @@ function vo(e) {
|
|
|
183
183
|
};
|
|
184
184
|
}
|
|
185
185
|
function ud(e) {
|
|
186
|
-
if (e ===
|
|
186
|
+
if (e === ar)
|
|
187
187
|
throw new Error("removeCustomComponents: cannot delete global mapping; call clearGlobalCustomComponents instead.");
|
|
188
188
|
delete G.scopedComponents[e], nn();
|
|
189
189
|
}
|
|
190
190
|
function hd() {
|
|
191
|
-
delete G.scopedComponents[
|
|
191
|
+
delete G.scopedComponents[ar], nn();
|
|
192
192
|
}
|
|
193
193
|
const In = /* @__PURE__ */ new Map(), Fi = /* @__PURE__ */ new Set([
|
|
194
194
|
"table",
|
|
@@ -243,7 +243,7 @@ function Ki(e, t = {}, r, o) {
|
|
|
243
243
|
events: t
|
|
244
244
|
};
|
|
245
245
|
}
|
|
246
|
-
function
|
|
246
|
+
function zi(e) {
|
|
247
247
|
if (Array.isArray(e.nodes))
|
|
248
248
|
return e.nodes;
|
|
249
249
|
const t = w(e.content);
|
|
@@ -267,32 +267,32 @@ function ji(e) {
|
|
|
267
267
|
function E(e) {
|
|
268
268
|
return Array.isArray(e) ? e.filter((t) => !!t && typeof t == "object") : [];
|
|
269
269
|
}
|
|
270
|
-
function
|
|
270
|
+
function ze(e) {
|
|
271
271
|
return w(e?.type) === "text" && w(e?.content).trim() === "";
|
|
272
272
|
}
|
|
273
|
-
function
|
|
274
|
-
return w(e?.type) !== "link" ? [] : E(e?.children).filter((t) => !
|
|
273
|
+
function ji(e) {
|
|
274
|
+
return w(e?.type) !== "link" ? [] : E(e?.children).filter((t) => !ze(t));
|
|
275
275
|
}
|
|
276
276
|
function Wi(e) {
|
|
277
|
-
const t =
|
|
277
|
+
const t = ji(e);
|
|
278
278
|
return t.length === 1 && w(t[0]?.type) === "image";
|
|
279
279
|
}
|
|
280
280
|
function wo(e) {
|
|
281
|
-
const t = E(e).filter((r) => !
|
|
281
|
+
const t = E(e).filter((r) => !ze(r));
|
|
282
282
|
return t.length > 0 && t.every((r) => w(r?.type) === "image" || Wi(r));
|
|
283
283
|
}
|
|
284
284
|
function Vi(e) {
|
|
285
|
-
const t = E(e), r = t.filter((n) => !
|
|
285
|
+
const t = E(e), r = t.filter((n) => !ze(n));
|
|
286
286
|
if (!wo(t) || r.length <= 1)
|
|
287
287
|
return t;
|
|
288
288
|
const o = [];
|
|
289
289
|
for (let n = 0; n < t.length; n += 1) {
|
|
290
290
|
const i = t[n];
|
|
291
|
-
if (!
|
|
291
|
+
if (!ze(i)) {
|
|
292
292
|
o.push(i);
|
|
293
293
|
continue;
|
|
294
294
|
}
|
|
295
|
-
const s = o.length > 0, a = t.slice(n + 1).some((l) => !
|
|
295
|
+
const s = o.length > 0, a = t.slice(n + 1).some((l) => !ze(l));
|
|
296
296
|
!s || !a || o.push({
|
|
297
297
|
...i,
|
|
298
298
|
content: " ",
|
|
@@ -320,13 +320,13 @@ function Ui(e) {
|
|
|
320
320
|
const t = Math.trunc(Number(e) || 1);
|
|
321
321
|
return Math.min(6, Math.max(1, t));
|
|
322
322
|
}
|
|
323
|
-
function
|
|
323
|
+
function Xi(e) {
|
|
324
324
|
return e ? `${e[0].toUpperCase()}${e.slice(1)}` : "";
|
|
325
325
|
}
|
|
326
326
|
function bo(e) {
|
|
327
327
|
return String(String(e ?? "").split(/\s+/g)[0] ?? "").toLowerCase().replace(/[^\w-]/g, "") || "plaintext";
|
|
328
328
|
}
|
|
329
|
-
function
|
|
329
|
+
function Gi(e) {
|
|
330
330
|
return bo(e?.language);
|
|
331
331
|
}
|
|
332
332
|
function Zi(e) {
|
|
@@ -340,12 +340,12 @@ function Yi(e) {
|
|
|
340
340
|
Fi.has(String(n?.type || "")) ? (o(), t.push({ kind: "block", node: n })) : r.push(n);
|
|
341
341
|
return o(), t;
|
|
342
342
|
}
|
|
343
|
-
var Ji = Object.defineProperty, Qi = Object.getOwnPropertyDescriptor,
|
|
343
|
+
var Ji = Object.defineProperty, Qi = Object.getOwnPropertyDescriptor, lr = (e, t, r, o) => {
|
|
344
344
|
for (var n = o > 1 ? void 0 : o ? Qi(t, r) : t, i = e.length - 1, s; i >= 0; i--)
|
|
345
345
|
(s = e[i]) && (n = (o ? s(t, r, n) : s(n)) || n);
|
|
346
346
|
return o && n && Ji(t, r, n), n;
|
|
347
347
|
};
|
|
348
|
-
let
|
|
348
|
+
let Ve = class {
|
|
349
349
|
get children() {
|
|
350
350
|
return E(this.node?.children);
|
|
351
351
|
}
|
|
@@ -357,20 +357,20 @@ let We = class {
|
|
|
357
357
|
return `${this.indexKey || "blockquote"}-quote`;
|
|
358
358
|
}
|
|
359
359
|
};
|
|
360
|
-
|
|
360
|
+
lr([
|
|
361
361
|
c({ required: !0 })
|
|
362
|
-
],
|
|
363
|
-
|
|
362
|
+
], Ve.prototype, "node", 2);
|
|
363
|
+
lr([
|
|
364
364
|
c()
|
|
365
|
-
],
|
|
366
|
-
|
|
365
|
+
], Ve.prototype, "context", 2);
|
|
366
|
+
lr([
|
|
367
367
|
c()
|
|
368
|
-
],
|
|
369
|
-
|
|
368
|
+
], Ve.prototype, "indexKey", 2);
|
|
369
|
+
Ve = lr([
|
|
370
370
|
b({
|
|
371
371
|
selector: "markstream-angular-blockquote-node",
|
|
372
372
|
standalone: !0,
|
|
373
|
-
imports: [
|
|
373
|
+
imports: [_, p(() => S)],
|
|
374
374
|
template: `
|
|
375
375
|
<blockquote class="blockquote-node" dir="auto" [attr.cite]="cite">
|
|
376
376
|
<markstream-angular-nested-renderer
|
|
@@ -389,28 +389,28 @@ We = ar([
|
|
|
389
389
|
`],
|
|
390
390
|
changeDetection: k.OnPush
|
|
391
391
|
})
|
|
392
|
-
],
|
|
392
|
+
], Ve);
|
|
393
393
|
var es = Object.defineProperty, ts = Object.getOwnPropertyDescriptor, ko = (e, t, r, o) => {
|
|
394
394
|
for (var n = o > 1 ? void 0 : o ? ts(t, r) : t, i = e.length - 1, s; i >= 0; i--)
|
|
395
395
|
(s = e[i]) && (n = (o ? s(t, r, n) : s(n)) || n);
|
|
396
396
|
return o && n && es(t, r, n), n;
|
|
397
397
|
};
|
|
398
|
-
let
|
|
398
|
+
let Xt = class {
|
|
399
399
|
get checked() {
|
|
400
400
|
return !!this.node?.checked;
|
|
401
401
|
}
|
|
402
402
|
};
|
|
403
403
|
ko([
|
|
404
404
|
c({ required: !0 })
|
|
405
|
-
],
|
|
406
|
-
|
|
405
|
+
], Xt.prototype, "node", 2);
|
|
406
|
+
Xt = ko([
|
|
407
407
|
b({
|
|
408
408
|
selector: "markstream-angular-checkbox-node",
|
|
409
409
|
standalone: !0,
|
|
410
410
|
template: '<input type="checkbox" disabled [checked]="checked">',
|
|
411
411
|
changeDetection: k.OnPush
|
|
412
412
|
})
|
|
413
|
-
],
|
|
413
|
+
], Xt);
|
|
414
414
|
function rs(e) {
|
|
415
415
|
return (e.split(".").pop() || e).replace(/[_-]/g, " ").replace(/([A-Z])/g, " $1").replace(/\s+/g, " ").replace(/\b\w/g, (r) => r.toUpperCase()).trim();
|
|
416
416
|
}
|
|
@@ -443,11 +443,11 @@ function To() {
|
|
|
443
443
|
}
|
|
444
444
|
};
|
|
445
445
|
}
|
|
446
|
-
let
|
|
446
|
+
let ge = null, Hr = !1, ft = null, $n = !1;
|
|
447
447
|
async function ns(e) {
|
|
448
|
-
if (
|
|
448
|
+
if ($n)
|
|
449
449
|
return;
|
|
450
|
-
|
|
450
|
+
$n = !0;
|
|
451
451
|
const t = globalThis?.MonacoEnvironment;
|
|
452
452
|
t && (typeof t.getWorker == "function" || typeof t.getWorkerUrl == "function") || typeof e?.preloadMonacoWorkers == "function" && await e.preloadMonacoWorkers();
|
|
453
453
|
}
|
|
@@ -466,8 +466,8 @@ async function os(e) {
|
|
|
466
466
|
}
|
|
467
467
|
}
|
|
468
468
|
async function Po() {
|
|
469
|
-
if (
|
|
470
|
-
return
|
|
469
|
+
if (ge)
|
|
470
|
+
return ge;
|
|
471
471
|
if (ft)
|
|
472
472
|
return await ft;
|
|
473
473
|
if (Hr)
|
|
@@ -475,7 +475,7 @@ async function Po() {
|
|
|
475
475
|
ft = (async () => {
|
|
476
476
|
try {
|
|
477
477
|
const e = await import("stream-monaco");
|
|
478
|
-
return
|
|
478
|
+
return ge = e?.default ?? e, await ns(ge), await os(ge) ? ge : (ge = null, Hr = !0, null);
|
|
479
479
|
} catch {
|
|
480
480
|
return Hr = !0, null;
|
|
481
481
|
}
|
|
@@ -486,7 +486,7 @@ async function Po() {
|
|
|
486
486
|
ft = null;
|
|
487
487
|
}
|
|
488
488
|
}
|
|
489
|
-
const
|
|
489
|
+
const ve = `
|
|
490
490
|
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true">
|
|
491
491
|
<path d="M14 3h5a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h5" />
|
|
492
492
|
<path d="M8 11l-3 3l3 3" />
|
|
@@ -501,7 +501,7 @@ const ye = `
|
|
|
501
501
|
<path d="M12 9v2.5" />
|
|
502
502
|
<path d="M12 11.5l-3.5 3.5" />
|
|
503
503
|
<path d="M12 11.5l3.5 3.5" />
|
|
504
|
-
</svg>`,
|
|
504
|
+
</svg>`, Nn = `
|
|
505
505
|
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true">
|
|
506
506
|
<path d="M8 7l-4 5l4 5" />
|
|
507
507
|
<path d="M16 7l4 5l-4 5" />
|
|
@@ -556,18 +556,18 @@ const ye = `
|
|
|
556
556
|
vue: "Vue"
|
|
557
557
|
}, ds = {
|
|
558
558
|
"": An,
|
|
559
|
-
html:
|
|
560
|
-
javascript:
|
|
559
|
+
html: Nn,
|
|
560
|
+
javascript: ve,
|
|
561
561
|
json: as,
|
|
562
|
-
jsx:
|
|
562
|
+
jsx: ve,
|
|
563
563
|
markdown: ss,
|
|
564
564
|
mermaid: is,
|
|
565
565
|
plain: An,
|
|
566
|
-
python:
|
|
567
|
-
shell:
|
|
568
|
-
svg:
|
|
569
|
-
tsx:
|
|
570
|
-
typescript:
|
|
566
|
+
python: ve,
|
|
567
|
+
shell: ve,
|
|
568
|
+
svg: Nn,
|
|
569
|
+
tsx: ve,
|
|
570
|
+
typescript: ve
|
|
571
571
|
};
|
|
572
572
|
let Wr = null;
|
|
573
573
|
function us(e) {
|
|
@@ -597,10 +597,10 @@ function ms(e) {
|
|
|
597
597
|
return r;
|
|
598
598
|
}
|
|
599
599
|
const t = an(e);
|
|
600
|
-
return ds[t] ||
|
|
600
|
+
return ds[t] || ve;
|
|
601
601
|
}
|
|
602
602
|
const fs = cs;
|
|
603
|
-
var ps = Object.defineProperty, gs = Object.getOwnPropertyDescriptor,
|
|
603
|
+
var ps = Object.defineProperty, gs = Object.getOwnPropertyDescriptor, So = (e, t, r, o) => {
|
|
604
604
|
for (var n = o > 1 ? void 0 : o ? gs(t, r) : t, i = e.length - 1, s; i >= 0; i--)
|
|
605
605
|
(s = e[i]) && (n = (o ? s(t, r, n) : s(n)) || n);
|
|
606
606
|
return o && n && ps(t, r, n), n;
|
|
@@ -622,10 +622,10 @@ let wt = class {
|
|
|
622
622
|
return this.node?.loading === !0;
|
|
623
623
|
}
|
|
624
624
|
};
|
|
625
|
-
|
|
625
|
+
So([
|
|
626
626
|
c({ required: !0 })
|
|
627
627
|
], wt.prototype, "node", 2);
|
|
628
|
-
wt =
|
|
628
|
+
wt = So([
|
|
629
629
|
b({
|
|
630
630
|
selector: "markstream-angular-pre-code-node",
|
|
631
631
|
standalone: !0,
|
|
@@ -633,12 +633,12 @@ wt = _o([
|
|
|
633
633
|
changeDetection: k.OnPush
|
|
634
634
|
})
|
|
635
635
|
], wt);
|
|
636
|
-
var ys = Object.defineProperty, vs = Object.getOwnPropertyDescriptor,
|
|
636
|
+
var ys = Object.defineProperty, vs = Object.getOwnPropertyDescriptor, St = (e, t, r, o) => {
|
|
637
637
|
for (var n = o > 1 ? void 0 : o ? vs(t, r) : t, i = e.length - 1, s; i >= 0; i--)
|
|
638
638
|
(s = e[i]) && (n = (o ? s(t, r, n) : s(n)) || n);
|
|
639
639
|
return o && n && ys(t, r, n), n;
|
|
640
640
|
};
|
|
641
|
-
let
|
|
641
|
+
let Te = class {
|
|
642
642
|
constructor() {
|
|
643
643
|
this.code = "", this.isDark = !1, this.i18n = To();
|
|
644
644
|
}
|
|
@@ -674,23 +674,23 @@ let Ce = class {
|
|
|
674
674
|
</html>`;
|
|
675
675
|
}
|
|
676
676
|
};
|
|
677
|
-
|
|
677
|
+
St([
|
|
678
678
|
c()
|
|
679
|
-
],
|
|
680
|
-
|
|
679
|
+
], Te.prototype, "code", 2);
|
|
680
|
+
St([
|
|
681
681
|
c()
|
|
682
|
-
],
|
|
683
|
-
|
|
682
|
+
], Te.prototype, "isDark", 2);
|
|
683
|
+
St([
|
|
684
684
|
c()
|
|
685
|
-
],
|
|
686
|
-
|
|
685
|
+
], Te.prototype, "title", 2);
|
|
686
|
+
St([
|
|
687
687
|
c()
|
|
688
|
-
],
|
|
689
|
-
|
|
688
|
+
], Te.prototype, "onClose", 2);
|
|
689
|
+
Te = St([
|
|
690
690
|
b({
|
|
691
691
|
selector: "markstream-angular-html-preview-frame",
|
|
692
692
|
standalone: !0,
|
|
693
|
-
imports: [
|
|
693
|
+
imports: [_],
|
|
694
694
|
template: `
|
|
695
695
|
<div
|
|
696
696
|
class="html-preview-frame__backdrop"
|
|
@@ -727,15 +727,15 @@ Ce = _t([
|
|
|
727
727
|
`,
|
|
728
728
|
changeDetection: k.OnPush
|
|
729
729
|
})
|
|
730
|
-
],
|
|
731
|
-
var ws = Object.defineProperty, xs = Object.getOwnPropertyDescriptor,
|
|
730
|
+
], Te);
|
|
731
|
+
var ws = Object.defineProperty, xs = Object.getOwnPropertyDescriptor, _t = (e, t, r, o) => {
|
|
732
732
|
for (var n = o > 1 ? void 0 : o ? xs(t, r) : t, i = e.length - 1, s; i >= 0; i--)
|
|
733
733
|
(s = e[i]) && (n = (o ? s(t, r, n) : s(n)) || n);
|
|
734
734
|
return o && n && ws(t, r, n), n;
|
|
735
735
|
};
|
|
736
|
-
let
|
|
736
|
+
let Pe = class {
|
|
737
737
|
constructor() {
|
|
738
|
-
this.cdr =
|
|
738
|
+
this.cdr = X(me), this.i18n = To(), this.useFallback = !1, this.copied = !1, this.collapsed = !1, this.expanded = !1, this.inlinePreviewOpen = !1, this.editorReady = !1, this.defaultFontSize = 14, this.fontSize = 14, this.helpers = null, this.createPromise = null, this.syncPromise = null, this.editorKind = null, this.viewReady = !1, this.destroyed = !1, this.copyTimer = null, this.deferredHeightSyncRaf = null, this.closeInlinePreview = () => {
|
|
739
739
|
this.inlinePreviewOpen = !1, this.cdr.markForCheck();
|
|
740
740
|
};
|
|
741
741
|
}
|
|
@@ -1105,23 +1105,23 @@ let Te = class {
|
|
|
1105
1105
|
}
|
|
1106
1106
|
}
|
|
1107
1107
|
};
|
|
1108
|
-
|
|
1109
|
-
|
|
1110
|
-
],
|
|
1111
|
-
|
|
1108
|
+
_t([
|
|
1109
|
+
B("editorHost")
|
|
1110
|
+
], Pe.prototype, "editorHost", 2);
|
|
1111
|
+
_t([
|
|
1112
1112
|
c({ required: !0 })
|
|
1113
|
-
],
|
|
1114
|
-
|
|
1113
|
+
], Pe.prototype, "node", 2);
|
|
1114
|
+
_t([
|
|
1115
1115
|
c()
|
|
1116
|
-
],
|
|
1117
|
-
|
|
1116
|
+
], Pe.prototype, "context", 2);
|
|
1117
|
+
_t([
|
|
1118
1118
|
c()
|
|
1119
|
-
],
|
|
1120
|
-
|
|
1119
|
+
], Pe.prototype, "props", 2);
|
|
1120
|
+
Pe = _t([
|
|
1121
1121
|
b({
|
|
1122
1122
|
selector: "markstream-angular-code-block-node",
|
|
1123
1123
|
standalone: !0,
|
|
1124
|
-
imports: [
|
|
1124
|
+
imports: [_, wt, Te],
|
|
1125
1125
|
template: `
|
|
1126
1126
|
<div
|
|
1127
1127
|
class="code-block-container"
|
|
@@ -1298,11 +1298,11 @@ Te = St([
|
|
|
1298
1298
|
`,
|
|
1299
1299
|
changeDetection: k.OnPush
|
|
1300
1300
|
})
|
|
1301
|
-
],
|
|
1301
|
+
], Pe);
|
|
1302
1302
|
const ln = () => import("@terrastruct/d2");
|
|
1303
|
-
let pt = null, cn = ln,
|
|
1303
|
+
let pt = null, cn = ln, He = null;
|
|
1304
1304
|
function bs() {
|
|
1305
|
-
pt = null,
|
|
1305
|
+
pt = null, He = null;
|
|
1306
1306
|
}
|
|
1307
1307
|
function ks(e) {
|
|
1308
1308
|
if (!e)
|
|
@@ -1314,14 +1314,14 @@ function ks(e) {
|
|
|
1314
1314
|
const t = e.default ?? e;
|
|
1315
1315
|
return typeof t == "function" ? t : t?.D2 && typeof t.D2 == "function" ? t.D2 : t;
|
|
1316
1316
|
}
|
|
1317
|
-
function
|
|
1317
|
+
function _o(e) {
|
|
1318
1318
|
cn = e, bs();
|
|
1319
1319
|
}
|
|
1320
1320
|
function pd(e) {
|
|
1321
|
-
|
|
1321
|
+
_o(e ?? ln);
|
|
1322
1322
|
}
|
|
1323
1323
|
function gd() {
|
|
1324
|
-
|
|
1324
|
+
_o(null);
|
|
1325
1325
|
}
|
|
1326
1326
|
function yd() {
|
|
1327
1327
|
return typeof cn == "function";
|
|
@@ -1329,12 +1329,12 @@ function yd() {
|
|
|
1329
1329
|
async function Mo() {
|
|
1330
1330
|
if (pt)
|
|
1331
1331
|
return pt;
|
|
1332
|
-
if (
|
|
1333
|
-
return await
|
|
1332
|
+
if (He)
|
|
1333
|
+
return await He;
|
|
1334
1334
|
const e = cn;
|
|
1335
1335
|
if (!e)
|
|
1336
1336
|
return null;
|
|
1337
|
-
|
|
1337
|
+
He = (async () => {
|
|
1338
1338
|
let t;
|
|
1339
1339
|
try {
|
|
1340
1340
|
t = await e();
|
|
@@ -1344,22 +1344,22 @@ async function Mo() {
|
|
|
1344
1344
|
return t ? (pt = ks(t), pt) : null;
|
|
1345
1345
|
})();
|
|
1346
1346
|
try {
|
|
1347
|
-
return await
|
|
1347
|
+
return await He;
|
|
1348
1348
|
} finally {
|
|
1349
|
-
|
|
1349
|
+
He = null;
|
|
1350
1350
|
}
|
|
1351
1351
|
}
|
|
1352
1352
|
const Cs = [/javascript:/i, /expression\s*\(/i, /url\s*\(\s*javascript:/i, /@import/i], Ts = /^(?:https?:|mailto:|tel:|#|\/|data:image\/(?:png|gif|jpe?g|webp);)/i;
|
|
1353
1353
|
function Ps(e) {
|
|
1354
1354
|
return e.replace(/["']\s*javascript:/gi, "#").replace(/\bjavascript:/gi, "#").replace(/["']\s*vbscript:/gi, "#").replace(/\bvbscript:/gi, "#").replace(/\bdata:text\/html/gi, "#");
|
|
1355
1355
|
}
|
|
1356
|
-
function
|
|
1356
|
+
function Ss(e) {
|
|
1357
1357
|
if (!e)
|
|
1358
1358
|
return "";
|
|
1359
1359
|
const t = e.trim();
|
|
1360
1360
|
return Ts.test(t) ? t : "";
|
|
1361
1361
|
}
|
|
1362
|
-
function
|
|
1362
|
+
function _s(e) {
|
|
1363
1363
|
const t = /* @__PURE__ */ new Set(["script"]), r = [e, ...Array.from(e.querySelectorAll("*"))];
|
|
1364
1364
|
for (const o of r) {
|
|
1365
1365
|
if (t.has(o.tagName.toLowerCase())) {
|
|
@@ -1378,7 +1378,7 @@ function Ss(e) {
|
|
|
1378
1378
|
continue;
|
|
1379
1379
|
}
|
|
1380
1380
|
if ((s === "href" || s === "xlink:href") && i.value) {
|
|
1381
|
-
const a =
|
|
1381
|
+
const a = Ss(i.value);
|
|
1382
1382
|
if (!a) {
|
|
1383
1383
|
o.removeAttribute(s);
|
|
1384
1384
|
continue;
|
|
@@ -1395,7 +1395,7 @@ function dn(e) {
|
|
|
1395
1395
|
if (!o || o.nodeName.toLowerCase() !== "svg")
|
|
1396
1396
|
return "";
|
|
1397
1397
|
const n = o;
|
|
1398
|
-
return
|
|
1398
|
+
return _s(n), n.outerHTML;
|
|
1399
1399
|
}
|
|
1400
1400
|
function Oo(e) {
|
|
1401
1401
|
return e ? typeof e == "string" ? e : typeof e.svg == "string" ? e.svg : typeof e.data == "string" ? e.data : "" : "";
|
|
@@ -1418,7 +1418,7 @@ async function un(e) {
|
|
|
1418
1418
|
t.remove();
|
|
1419
1419
|
}
|
|
1420
1420
|
}
|
|
1421
|
-
function
|
|
1421
|
+
function we(e) {
|
|
1422
1422
|
if (e)
|
|
1423
1423
|
try {
|
|
1424
1424
|
e.replaceChildren();
|
|
@@ -1426,8 +1426,8 @@ function ve(e) {
|
|
|
1426
1426
|
e.innerHTML = "";
|
|
1427
1427
|
}
|
|
1428
1428
|
}
|
|
1429
|
-
function
|
|
1430
|
-
if (e && (
|
|
1429
|
+
function ke(e, t) {
|
|
1430
|
+
if (e && (we(e), !!t))
|
|
1431
1431
|
try {
|
|
1432
1432
|
e.insertAdjacentHTML("afterbegin", t);
|
|
1433
1433
|
} catch {
|
|
@@ -1443,7 +1443,7 @@ function hn(e, t) {
|
|
|
1443
1443
|
function mn(e, t) {
|
|
1444
1444
|
return e == null || e === "" ? t ?? null : typeof e == "number" ? `${e}px` : String(e);
|
|
1445
1445
|
}
|
|
1446
|
-
function
|
|
1446
|
+
function Be(e, t, r) {
|
|
1447
1447
|
return Math.min(r, Math.max(t, e));
|
|
1448
1448
|
}
|
|
1449
1449
|
var Ms = Object.defineProperty, Os = Object.getOwnPropertyDescriptor, Mt = (e, t, r, o) => {
|
|
@@ -1471,9 +1471,9 @@ const Es = {
|
|
|
1471
1471
|
AB4: "#FBBF24",
|
|
1472
1472
|
AB5: "#F59E0B"
|
|
1473
1473
|
};
|
|
1474
|
-
let
|
|
1474
|
+
let Se = class {
|
|
1475
1475
|
constructor() {
|
|
1476
|
-
this.cdr =
|
|
1476
|
+
this.cdr = X(me), this.rendering = !1, this.copied = !1, this.collapsed = !1, this.showSource = !1, this.svgMarkup = "", this.error = "", this.viewReady = !1, this.destroyed = !1, this.renderToken = 0, this.copyTimer = null;
|
|
1477
1477
|
}
|
|
1478
1478
|
get mergedProps() {
|
|
1479
1479
|
return {
|
|
@@ -1593,7 +1593,7 @@ let Pe = class {
|
|
|
1593
1593
|
}
|
|
1594
1594
|
}
|
|
1595
1595
|
syncSvgHost() {
|
|
1596
|
-
|
|
1596
|
+
ke(this.previewHost?.nativeElement, this.svgMarkup);
|
|
1597
1597
|
}
|
|
1598
1598
|
scheduleHostSync() {
|
|
1599
1599
|
if (typeof window < "u") {
|
|
@@ -1606,22 +1606,22 @@ let Pe = class {
|
|
|
1606
1606
|
}
|
|
1607
1607
|
};
|
|
1608
1608
|
Mt([
|
|
1609
|
-
|
|
1610
|
-
],
|
|
1609
|
+
B("previewHost")
|
|
1610
|
+
], Se.prototype, "previewHost", 2);
|
|
1611
1611
|
Mt([
|
|
1612
1612
|
c({ required: !0 })
|
|
1613
|
-
],
|
|
1613
|
+
], Se.prototype, "node", 2);
|
|
1614
1614
|
Mt([
|
|
1615
1615
|
c()
|
|
1616
|
-
],
|
|
1616
|
+
], Se.prototype, "context", 2);
|
|
1617
1617
|
Mt([
|
|
1618
1618
|
c()
|
|
1619
|
-
],
|
|
1620
|
-
|
|
1619
|
+
], Se.prototype, "props", 2);
|
|
1620
|
+
Se = Mt([
|
|
1621
1621
|
b({
|
|
1622
1622
|
selector: "markstream-angular-d2-block-node",
|
|
1623
1623
|
standalone: !0,
|
|
1624
|
-
imports: [
|
|
1624
|
+
imports: [_],
|
|
1625
1625
|
template: `
|
|
1626
1626
|
<div
|
|
1627
1627
|
class="markstream-angular-enhanced-block markstream-angular-enhanced-block--d2"
|
|
@@ -1706,7 +1706,7 @@ Pe = Mt([
|
|
|
1706
1706
|
`,
|
|
1707
1707
|
changeDetection: k.OnPush
|
|
1708
1708
|
})
|
|
1709
|
-
],
|
|
1709
|
+
], Se);
|
|
1710
1710
|
function Ds(e) {
|
|
1711
1711
|
if (typeof e == "function") {
|
|
1712
1712
|
const t = new e();
|
|
@@ -1717,12 +1717,12 @@ function Ds(e) {
|
|
|
1717
1717
|
}
|
|
1718
1718
|
return e?.D2 && typeof e.D2 == "function" ? new e.D2() : typeof e?.compile == "function" ? e : null;
|
|
1719
1719
|
}
|
|
1720
|
-
var Rs = Object.defineProperty, Is = Object.getOwnPropertyDescriptor,
|
|
1720
|
+
var Rs = Object.defineProperty, Is = Object.getOwnPropertyDescriptor, cr = (e, t, r, o) => {
|
|
1721
1721
|
for (var n = o > 1 ? void 0 : o ? Is(t, r) : t, i = e.length - 1, s; i >= 0; i--)
|
|
1722
1722
|
(s = e[i]) && (n = (o ? s(t, r, n) : s(n)) || n);
|
|
1723
1723
|
return o && n && Rs(t, r, n), n;
|
|
1724
1724
|
};
|
|
1725
|
-
let
|
|
1725
|
+
let qe = class {
|
|
1726
1726
|
constructor() {
|
|
1727
1727
|
this.trackByIndex = (e) => `${this.indexKey || "definition-list"}-${e}`;
|
|
1728
1728
|
}
|
|
@@ -1739,20 +1739,20 @@ let Ve = class {
|
|
|
1739
1739
|
return `${this.indexKey || "definition-list"}-${e}-${t}`;
|
|
1740
1740
|
}
|
|
1741
1741
|
};
|
|
1742
|
-
|
|
1742
|
+
cr([
|
|
1743
1743
|
c({ required: !0 })
|
|
1744
|
-
],
|
|
1745
|
-
|
|
1744
|
+
], qe.prototype, "node", 2);
|
|
1745
|
+
cr([
|
|
1746
1746
|
c()
|
|
1747
|
-
],
|
|
1748
|
-
|
|
1747
|
+
], qe.prototype, "context", 2);
|
|
1748
|
+
cr([
|
|
1749
1749
|
c()
|
|
1750
|
-
],
|
|
1751
|
-
|
|
1750
|
+
], qe.prototype, "indexKey", 2);
|
|
1751
|
+
qe = cr([
|
|
1752
1752
|
b({
|
|
1753
1753
|
selector: "markstream-angular-definition-list-node",
|
|
1754
1754
|
standalone: !0,
|
|
1755
|
-
imports: [
|
|
1755
|
+
imports: [_, p(() => S)],
|
|
1756
1756
|
template: `
|
|
1757
1757
|
<dl>
|
|
1758
1758
|
<ng-container *ngFor="let item of items; let idx = index; trackBy: trackByIndex">
|
|
@@ -1775,11 +1775,11 @@ Ve = lr([
|
|
|
1775
1775
|
`,
|
|
1776
1776
|
changeDetection: k.OnPush
|
|
1777
1777
|
})
|
|
1778
|
-
],
|
|
1779
|
-
var
|
|
1780
|
-
for (var n = o > 1 ? void 0 : o ?
|
|
1778
|
+
], qe);
|
|
1779
|
+
var $s = Object.defineProperty, Ns = Object.getOwnPropertyDescriptor, Ie = (e, t, r, o) => {
|
|
1780
|
+
for (var n = o > 1 ? void 0 : o ? Ns(t, r) : t, i = e.length - 1, s; i >= 0; i--)
|
|
1781
1781
|
(s = e[i]) && (n = (o ? s(t, r, n) : s(n)) || n);
|
|
1782
|
-
return o && n &&
|
|
1782
|
+
return o && n && $s(t, r, n), n;
|
|
1783
1783
|
};
|
|
1784
1784
|
let te = class {
|
|
1785
1785
|
constructor() {
|
|
@@ -1816,25 +1816,25 @@ let te = class {
|
|
|
1816
1816
|
return !r || typeof r != "object" ? !1 : t in r ? !0 : Object.values(r).includes(t);
|
|
1817
1817
|
}
|
|
1818
1818
|
};
|
|
1819
|
-
|
|
1819
|
+
Ie([
|
|
1820
1820
|
c()
|
|
1821
1821
|
], te.prototype, "component", 2);
|
|
1822
|
-
|
|
1822
|
+
Ie([
|
|
1823
1823
|
c({ required: !0 })
|
|
1824
1824
|
], te.prototype, "node", 2);
|
|
1825
|
-
|
|
1825
|
+
Ie([
|
|
1826
1826
|
c()
|
|
1827
1827
|
], te.prototype, "context", 2);
|
|
1828
|
-
|
|
1828
|
+
Ie([
|
|
1829
1829
|
c()
|
|
1830
1830
|
], te.prototype, "indexKey", 2);
|
|
1831
|
-
|
|
1831
|
+
Ie([
|
|
1832
1832
|
c()
|
|
1833
1833
|
], te.prototype, "inputs", 2);
|
|
1834
|
-
|
|
1835
|
-
|
|
1834
|
+
Ie([
|
|
1835
|
+
B("container", { read: xi, static: !0 })
|
|
1836
1836
|
], te.prototype, "containerRef", 2);
|
|
1837
|
-
te =
|
|
1837
|
+
te = Ie([
|
|
1838
1838
|
b({
|
|
1839
1839
|
selector: "markstream-angular-dynamic-node-host",
|
|
1840
1840
|
standalone: !0,
|
|
@@ -1863,12 +1863,12 @@ Gt = Eo([
|
|
|
1863
1863
|
changeDetection: k.OnPush
|
|
1864
1864
|
})
|
|
1865
1865
|
], Gt);
|
|
1866
|
-
var Hs = Object.defineProperty, Bs = Object.getOwnPropertyDescriptor,
|
|
1866
|
+
var Hs = Object.defineProperty, Bs = Object.getOwnPropertyDescriptor, dr = (e, t, r, o) => {
|
|
1867
1867
|
for (var n = o > 1 ? void 0 : o ? Bs(t, r) : t, i = e.length - 1, s; i >= 0; i--)
|
|
1868
1868
|
(s = e[i]) && (n = (o ? s(t, r, n) : s(n)) || n);
|
|
1869
1869
|
return o && n && Hs(t, r, n), n;
|
|
1870
1870
|
};
|
|
1871
|
-
let
|
|
1871
|
+
let Ue = class {
|
|
1872
1872
|
get children() {
|
|
1873
1873
|
return E(this.node?.children);
|
|
1874
1874
|
}
|
|
@@ -1876,20 +1876,20 @@ let qe = class {
|
|
|
1876
1876
|
return `${this.indexKey || "emphasis"}-em`;
|
|
1877
1877
|
}
|
|
1878
1878
|
};
|
|
1879
|
-
|
|
1879
|
+
dr([
|
|
1880
1880
|
c({ required: !0 })
|
|
1881
|
-
],
|
|
1882
|
-
|
|
1881
|
+
], Ue.prototype, "node", 2);
|
|
1882
|
+
dr([
|
|
1883
1883
|
c()
|
|
1884
|
-
],
|
|
1885
|
-
|
|
1884
|
+
], Ue.prototype, "context", 2);
|
|
1885
|
+
dr([
|
|
1886
1886
|
c()
|
|
1887
|
-
],
|
|
1888
|
-
|
|
1887
|
+
], Ue.prototype, "indexKey", 2);
|
|
1888
|
+
Ue = dr([
|
|
1889
1889
|
b({
|
|
1890
1890
|
selector: "markstream-angular-emphasis-node",
|
|
1891
1891
|
standalone: !0,
|
|
1892
|
-
imports: [
|
|
1892
|
+
imports: [_, p(() => S)],
|
|
1893
1893
|
template: `
|
|
1894
1894
|
<em>
|
|
1895
1895
|
<markstream-angular-nested-renderer
|
|
@@ -1901,13 +1901,13 @@ qe = cr([
|
|
|
1901
1901
|
`,
|
|
1902
1902
|
changeDetection: k.OnPush
|
|
1903
1903
|
})
|
|
1904
|
-
],
|
|
1905
|
-
var Fs = Object.defineProperty, Ks = Object.getOwnPropertyDescriptor,
|
|
1904
|
+
], Ue);
|
|
1905
|
+
var Fs = Object.defineProperty, Ks = Object.getOwnPropertyDescriptor, ur = (e, t, r, o) => {
|
|
1906
1906
|
for (var n = o > 1 ? void 0 : o ? Ks(t, r) : t, i = e.length - 1, s; i >= 0; i--)
|
|
1907
1907
|
(s = e[i]) && (n = (o ? s(t, r, n) : s(n)) || n);
|
|
1908
1908
|
return o && n && Fs(t, r, n), n;
|
|
1909
1909
|
};
|
|
1910
|
-
let
|
|
1910
|
+
let Xe = class {
|
|
1911
1911
|
get children() {
|
|
1912
1912
|
return E(this.node?.children);
|
|
1913
1913
|
}
|
|
@@ -1933,20 +1933,20 @@ let Ue = class {
|
|
|
1933
1933
|
return typeof this.node?.loading == "boolean" ? !this.node.loading : this.context?.final;
|
|
1934
1934
|
}
|
|
1935
1935
|
};
|
|
1936
|
-
|
|
1936
|
+
ur([
|
|
1937
1937
|
c({ required: !0 })
|
|
1938
|
-
],
|
|
1939
|
-
|
|
1938
|
+
], Xe.prototype, "node", 2);
|
|
1939
|
+
ur([
|
|
1940
1940
|
c()
|
|
1941
|
-
],
|
|
1942
|
-
|
|
1941
|
+
], Xe.prototype, "context", 2);
|
|
1942
|
+
ur([
|
|
1943
1943
|
c()
|
|
1944
|
-
],
|
|
1945
|
-
|
|
1944
|
+
], Xe.prototype, "indexKey", 2);
|
|
1945
|
+
Xe = ur([
|
|
1946
1946
|
b({
|
|
1947
1947
|
selector: "markstream-angular-fallback-node",
|
|
1948
1948
|
standalone: !0,
|
|
1949
|
-
imports: [
|
|
1949
|
+
imports: [_, p(() => S)],
|
|
1950
1950
|
template: `
|
|
1951
1951
|
<div
|
|
1952
1952
|
class="markstream-nested-custom"
|
|
@@ -1971,13 +1971,13 @@ Ue = dr([
|
|
|
1971
1971
|
`,
|
|
1972
1972
|
changeDetection: k.OnPush
|
|
1973
1973
|
})
|
|
1974
|
-
],
|
|
1975
|
-
var
|
|
1976
|
-
for (var n = o > 1 ? void 0 : o ?
|
|
1974
|
+
], Xe);
|
|
1975
|
+
var zs = Object.defineProperty, js = Object.getOwnPropertyDescriptor, Do = (e, t, r, o) => {
|
|
1976
|
+
for (var n = o > 1 ? void 0 : o ? js(t, r) : t, i = e.length - 1, s; i >= 0; i--)
|
|
1977
1977
|
(s = e[i]) && (n = (o ? s(t, r, n) : s(n)) || n);
|
|
1978
|
-
return o && n &&
|
|
1978
|
+
return o && n && zs(t, r, n), n;
|
|
1979
1979
|
};
|
|
1980
|
-
let
|
|
1980
|
+
let Zt = class {
|
|
1981
1981
|
get id() {
|
|
1982
1982
|
return w(this.node?.id);
|
|
1983
1983
|
}
|
|
@@ -1990,8 +1990,8 @@ let Xt = class {
|
|
|
1990
1990
|
};
|
|
1991
1991
|
Do([
|
|
1992
1992
|
c({ required: !0 })
|
|
1993
|
-
],
|
|
1994
|
-
|
|
1993
|
+
], Zt.prototype, "node", 2);
|
|
1994
|
+
Zt = Do([
|
|
1995
1995
|
b({
|
|
1996
1996
|
selector: "markstream-angular-footnote-anchor-node",
|
|
1997
1997
|
standalone: !0,
|
|
@@ -2006,8 +2006,8 @@ Xt = Do([
|
|
|
2006
2006
|
`,
|
|
2007
2007
|
changeDetection: k.OnPush
|
|
2008
2008
|
})
|
|
2009
|
-
],
|
|
2010
|
-
var Ws = Object.defineProperty, Vs = Object.getOwnPropertyDescriptor,
|
|
2009
|
+
], Zt);
|
|
2010
|
+
var Ws = Object.defineProperty, Vs = Object.getOwnPropertyDescriptor, hr = (e, t, r, o) => {
|
|
2011
2011
|
for (var n = o > 1 ? void 0 : o ? Vs(t, r) : t, i = e.length - 1, s; i >= 0; i--)
|
|
2012
2012
|
(s = e[i]) && (n = (o ? s(t, r, n) : s(n)) || n);
|
|
2013
2013
|
return o && n && Ws(t, r, n), n;
|
|
@@ -2023,20 +2023,20 @@ let Ge = class {
|
|
|
2023
2023
|
return `${this.indexKey || "footnote"}-children`;
|
|
2024
2024
|
}
|
|
2025
2025
|
};
|
|
2026
|
-
|
|
2026
|
+
hr([
|
|
2027
2027
|
c({ required: !0 })
|
|
2028
2028
|
], Ge.prototype, "node", 2);
|
|
2029
|
-
|
|
2029
|
+
hr([
|
|
2030
2030
|
c()
|
|
2031
2031
|
], Ge.prototype, "context", 2);
|
|
2032
|
-
|
|
2032
|
+
hr([
|
|
2033
2033
|
c()
|
|
2034
2034
|
], Ge.prototype, "indexKey", 2);
|
|
2035
|
-
Ge =
|
|
2035
|
+
Ge = hr([
|
|
2036
2036
|
b({
|
|
2037
2037
|
selector: "markstream-angular-footnote-node",
|
|
2038
2038
|
standalone: !0,
|
|
2039
|
-
imports: [
|
|
2039
|
+
imports: [_, p(() => S)],
|
|
2040
2040
|
template: `
|
|
2041
2041
|
<div [attr.id]="footnoteId" class="markstream-nested-footnote">
|
|
2042
2042
|
<markstream-angular-nested-renderer
|
|
@@ -2054,7 +2054,7 @@ var qs = Object.defineProperty, Us = Object.getOwnPropertyDescriptor, Ro = (e, t
|
|
|
2054
2054
|
(s = e[i]) && (n = (o ? s(t, r, n) : s(n)) || n);
|
|
2055
2055
|
return o && n && qs(t, r, n), n;
|
|
2056
2056
|
};
|
|
2057
|
-
let
|
|
2057
|
+
let Yt = class {
|
|
2058
2058
|
get id() {
|
|
2059
2059
|
return w(this.node?.id);
|
|
2060
2060
|
}
|
|
@@ -2064,8 +2064,8 @@ let Zt = class {
|
|
|
2064
2064
|
};
|
|
2065
2065
|
Ro([
|
|
2066
2066
|
c({ required: !0 })
|
|
2067
|
-
],
|
|
2068
|
-
|
|
2067
|
+
], Yt.prototype, "node", 2);
|
|
2068
|
+
Yt = Ro([
|
|
2069
2069
|
b({
|
|
2070
2070
|
selector: "markstream-angular-footnote-reference-node",
|
|
2071
2071
|
standalone: !0,
|
|
@@ -2076,15 +2076,15 @@ Zt = Ro([
|
|
|
2076
2076
|
`,
|
|
2077
2077
|
changeDetection: k.OnPush
|
|
2078
2078
|
})
|
|
2079
|
-
],
|
|
2080
|
-
var
|
|
2081
|
-
for (var n = o > 1 ? void 0 : o ?
|
|
2079
|
+
], Yt);
|
|
2080
|
+
var Xs = Object.getOwnPropertyDescriptor, Gs = (e, t, r, o) => {
|
|
2081
|
+
for (var n = o > 1 ? void 0 : o ? Xs(t, r) : t, i = e.length - 1, s; i >= 0; i--)
|
|
2082
2082
|
(s = e[i]) && (n = s(n) || n);
|
|
2083
2083
|
return n;
|
|
2084
2084
|
};
|
|
2085
2085
|
let Vr = class {
|
|
2086
2086
|
};
|
|
2087
|
-
Vr =
|
|
2087
|
+
Vr = Gs([
|
|
2088
2088
|
b({
|
|
2089
2089
|
selector: "markstream-angular-hardbreak-node",
|
|
2090
2090
|
standalone: !0,
|
|
@@ -2099,7 +2099,7 @@ var Zs = Object.defineProperty, Ys = Object.getOwnPropertyDescriptor, Io = (e, t
|
|
|
2099
2099
|
};
|
|
2100
2100
|
let xt = class {
|
|
2101
2101
|
constructor() {
|
|
2102
|
-
this.elementRef =
|
|
2102
|
+
this.elementRef = X(uo), this.renderer = X(bi), this.appliedAttrs = /* @__PURE__ */ new Set(), this.appliedClasses = /* @__PURE__ */ new Set(), this.appliedStyles = /* @__PURE__ */ new Set();
|
|
2103
2103
|
}
|
|
2104
2104
|
ngOnChanges() {
|
|
2105
2105
|
this.clearAppliedState();
|
|
@@ -2144,12 +2144,12 @@ xt = Io([
|
|
|
2144
2144
|
standalone: !0
|
|
2145
2145
|
})
|
|
2146
2146
|
], xt);
|
|
2147
|
-
var Js = Object.defineProperty, Qs = Object.getOwnPropertyDescriptor,
|
|
2147
|
+
var Js = Object.defineProperty, Qs = Object.getOwnPropertyDescriptor, mr = (e, t, r, o) => {
|
|
2148
2148
|
for (var n = o > 1 ? void 0 : o ? Qs(t, r) : t, i = e.length - 1, s; i >= 0; i--)
|
|
2149
2149
|
(s = e[i]) && (n = (o ? s(t, r, n) : s(n)) || n);
|
|
2150
2150
|
return o && n && Js(t, r, n), n;
|
|
2151
2151
|
};
|
|
2152
|
-
let
|
|
2152
|
+
let Ze = class {
|
|
2153
2153
|
get level() {
|
|
2154
2154
|
return Ui(this.node?.level);
|
|
2155
2155
|
}
|
|
@@ -2164,20 +2164,20 @@ let Xe = class {
|
|
|
2164
2164
|
return `${this.indexKey || "heading"}-${this.level}`;
|
|
2165
2165
|
}
|
|
2166
2166
|
};
|
|
2167
|
-
|
|
2167
|
+
mr([
|
|
2168
2168
|
c({ required: !0 })
|
|
2169
|
-
],
|
|
2170
|
-
|
|
2169
|
+
], Ze.prototype, "node", 2);
|
|
2170
|
+
mr([
|
|
2171
2171
|
c()
|
|
2172
|
-
],
|
|
2173
|
-
|
|
2172
|
+
], Ze.prototype, "context", 2);
|
|
2173
|
+
mr([
|
|
2174
2174
|
c()
|
|
2175
|
-
],
|
|
2176
|
-
|
|
2175
|
+
], Ze.prototype, "indexKey", 2);
|
|
2176
|
+
Ze = mr([
|
|
2177
2177
|
b({
|
|
2178
2178
|
selector: "markstream-angular-heading-node",
|
|
2179
2179
|
standalone: !0,
|
|
2180
|
-
imports: [
|
|
2180
|
+
imports: [_, xt, p(() => S)],
|
|
2181
2181
|
template: `
|
|
2182
2182
|
<h1 *ngIf="level === 1" dir="auto" class="heading-node heading-1" [markstreamSafeAttrs]="attrs">
|
|
2183
2183
|
<markstream-angular-nested-renderer [nodes]="children" [context]="context" [indexPrefix]="nestedPrefix" />
|
|
@@ -2200,13 +2200,13 @@ Xe = hr([
|
|
|
2200
2200
|
`,
|
|
2201
2201
|
changeDetection: k.OnPush
|
|
2202
2202
|
})
|
|
2203
|
-
],
|
|
2204
|
-
var ea = Object.defineProperty, ta = Object.getOwnPropertyDescriptor,
|
|
2203
|
+
], Ze);
|
|
2204
|
+
var ea = Object.defineProperty, ta = Object.getOwnPropertyDescriptor, fr = (e, t, r, o) => {
|
|
2205
2205
|
for (var n = o > 1 ? void 0 : o ? ta(t, r) : t, i = e.length - 1, s; i >= 0; i--)
|
|
2206
2206
|
(s = e[i]) && (n = (o ? s(t, r, n) : s(n)) || n);
|
|
2207
2207
|
return o && n && ea(t, r, n), n;
|
|
2208
2208
|
};
|
|
2209
|
-
let
|
|
2209
|
+
let Ye = class {
|
|
2210
2210
|
get children() {
|
|
2211
2211
|
return E(this.node?.children);
|
|
2212
2212
|
}
|
|
@@ -2214,20 +2214,20 @@ let Ze = class {
|
|
|
2214
2214
|
return `${this.indexKey || "highlight"}-highlight`;
|
|
2215
2215
|
}
|
|
2216
2216
|
};
|
|
2217
|
-
|
|
2217
|
+
fr([
|
|
2218
2218
|
c({ required: !0 })
|
|
2219
|
-
],
|
|
2220
|
-
|
|
2219
|
+
], Ye.prototype, "node", 2);
|
|
2220
|
+
fr([
|
|
2221
2221
|
c()
|
|
2222
|
-
],
|
|
2223
|
-
|
|
2222
|
+
], Ye.prototype, "context", 2);
|
|
2223
|
+
fr([
|
|
2224
2224
|
c()
|
|
2225
|
-
],
|
|
2226
|
-
|
|
2225
|
+
], Ye.prototype, "indexKey", 2);
|
|
2226
|
+
Ye = fr([
|
|
2227
2227
|
b({
|
|
2228
2228
|
selector: "markstream-angular-highlight-node",
|
|
2229
2229
|
standalone: !0,
|
|
2230
|
-
imports: [
|
|
2230
|
+
imports: [_, p(() => S)],
|
|
2231
2231
|
template: `
|
|
2232
2232
|
<mark>
|
|
2233
2233
|
<markstream-angular-nested-renderer
|
|
@@ -2239,7 +2239,7 @@ Ze = mr([
|
|
|
2239
2239
|
`,
|
|
2240
2240
|
changeDetection: k.OnPush
|
|
2241
2241
|
})
|
|
2242
|
-
],
|
|
2242
|
+
], Ye);
|
|
2243
2243
|
function Ln(e) {
|
|
2244
2244
|
const t = {};
|
|
2245
2245
|
for (const [r, o] of Object.entries(e)) {
|
|
@@ -2406,23 +2406,23 @@ function vd(e) {
|
|
|
2406
2406
|
const t = dt([
|
|
2407
2407
|
...e.customHtmlTags || [],
|
|
2408
2408
|
...e.parseOptions?.customHtmlTags || []
|
|
2409
|
-
]), r =
|
|
2409
|
+
]), r = pr({
|
|
2410
2410
|
allowHtml: e.allowHtml,
|
|
2411
2411
|
customHtmlTags: t
|
|
2412
2412
|
}), o = la(e, r);
|
|
2413
2413
|
return R(o, r);
|
|
2414
2414
|
}
|
|
2415
2415
|
function wd(e, t = {}) {
|
|
2416
|
-
const r =
|
|
2416
|
+
const r = pr(t);
|
|
2417
2417
|
return ca(e, r);
|
|
2418
2418
|
}
|
|
2419
2419
|
function xd(e, t = {}) {
|
|
2420
|
-
const r =
|
|
2420
|
+
const r = pr(t);
|
|
2421
2421
|
return R(e, r);
|
|
2422
2422
|
}
|
|
2423
2423
|
function aa(e, t = {}) {
|
|
2424
|
-
const r =
|
|
2425
|
-
return
|
|
2424
|
+
const r = pr(t);
|
|
2425
|
+
return $o(e, r);
|
|
2426
2426
|
}
|
|
2427
2427
|
function la(e, t) {
|
|
2428
2428
|
if (Array.isArray(e.nodes))
|
|
@@ -2442,7 +2442,7 @@ function la(e, t) {
|
|
|
2442
2442
|
o
|
|
2443
2443
|
);
|
|
2444
2444
|
}
|
|
2445
|
-
function
|
|
2445
|
+
function pr(e) {
|
|
2446
2446
|
const t = dt(e.customHtmlTags), r = `${e.cacheKey || oa}::${t.join(",")}`;
|
|
2447
2447
|
let o = Bn.get(r);
|
|
2448
2448
|
return o || (o = tn(r, {
|
|
@@ -2451,7 +2451,7 @@ function fr(e) {
|
|
|
2451
2451
|
markdown: o,
|
|
2452
2452
|
options: {
|
|
2453
2453
|
allowHtml: e.allowHtml !== !1,
|
|
2454
|
-
customNodeTag:
|
|
2454
|
+
customNodeTag: Ut(e.customNodeTag) || ia,
|
|
2455
2455
|
customNodeClass: e.customNodeClass
|
|
2456
2456
|
}
|
|
2457
2457
|
};
|
|
@@ -2473,9 +2473,9 @@ function ca(e, t) {
|
|
|
2473
2473
|
return e.content ? qr(T(e.content), t) : "";
|
|
2474
2474
|
}
|
|
2475
2475
|
function R(e, t) {
|
|
2476
|
-
return (Array.isArray(e) ? e : []).map((r) =>
|
|
2476
|
+
return (Array.isArray(e) ? e : []).map((r) => $o(r, t)).join("");
|
|
2477
2477
|
}
|
|
2478
|
-
function
|
|
2478
|
+
function $o(e, t) {
|
|
2479
2479
|
if (!e || typeof e != "object")
|
|
2480
2480
|
return "";
|
|
2481
2481
|
switch (e.type) {
|
|
@@ -2520,7 +2520,7 @@ function No(e, t) {
|
|
|
2520
2520
|
case "table":
|
|
2521
2521
|
return va(e, t);
|
|
2522
2522
|
case "table_row":
|
|
2523
|
-
return
|
|
2523
|
+
return No(e, t);
|
|
2524
2524
|
case "table_cell":
|
|
2525
2525
|
return Ao(e, t);
|
|
2526
2526
|
case "definition_list":
|
|
@@ -2589,10 +2589,10 @@ function ya(e) {
|
|
|
2589
2589
|
].filter(Boolean).join(" ")}><code${o}>${A(T(e.code))}</code></pre>`;
|
|
2590
2590
|
}
|
|
2591
2591
|
function va(e, t) {
|
|
2592
|
-
const r = e.header ?
|
|
2592
|
+
const r = e.header ? No(e.header, t, !0) : "", o = R(I(e.rows), t), n = r ? `<thead>${r}</thead>` : "", i = o ? `<tbody>${o}</tbody>` : "";
|
|
2593
2593
|
return `<table>${n}${i}</table>`;
|
|
2594
2594
|
}
|
|
2595
|
-
function
|
|
2595
|
+
function No(e, t, r = !1) {
|
|
2596
2596
|
return `<tr>${I(e.cells).map((n) => Ao(n, t, r)).join("")}</tr>`;
|
|
2597
2597
|
}
|
|
2598
2598
|
function Ao(e, t, r = !1) {
|
|
@@ -2634,7 +2634,7 @@ function Ta(e, t) {
|
|
|
2634
2634
|
const o = [
|
|
2635
2635
|
"markstream-nested-custom",
|
|
2636
2636
|
`markstream-nested-custom--${pn(r) || "node"}`,
|
|
2637
|
-
|
|
2637
|
+
Sa(e, t.options.customNodeClass)
|
|
2638
2638
|
].filter(Boolean).join(" "), n = Bo(e.attrs, o), i = Pa(e, t), s = t.options.customNodeTag;
|
|
2639
2639
|
return `<${s}${n} data-markstream-custom-tag="${H(r)}">${i}</${s}>`;
|
|
2640
2640
|
}
|
|
@@ -2648,7 +2648,7 @@ function Pa(e, t) {
|
|
|
2648
2648
|
function qr(e, t) {
|
|
2649
2649
|
return e ? t.markdown.render(e) : "";
|
|
2650
2650
|
}
|
|
2651
|
-
function
|
|
2651
|
+
function Sa(e, t) {
|
|
2652
2652
|
if (!t)
|
|
2653
2653
|
return "";
|
|
2654
2654
|
const r = typeof t == "function" ? t(e) : t;
|
|
@@ -2658,7 +2658,7 @@ function Ho(e) {
|
|
|
2658
2658
|
return Array.isArray(e) ? e.map((t) => Ho(t)).filter(Boolean).join(" ") : typeof e == "string" ? e.trim() : "";
|
|
2659
2659
|
}
|
|
2660
2660
|
function Bo(e, t = "") {
|
|
2661
|
-
const r =
|
|
2661
|
+
const r = _a(e), o = [], n = [t];
|
|
2662
2662
|
for (const [s, a] of r) {
|
|
2663
2663
|
const l = String(s).trim(), d = l.toLowerCase();
|
|
2664
2664
|
if (!(!l || !Ma(l)) && !fo.has(d) && !(a !== !0 && po.has(d) && a && go(String(a)))) {
|
|
@@ -2672,7 +2672,7 @@ function Bo(e, t = "") {
|
|
|
2672
2672
|
const i = n.map((s) => s.trim()).filter(Boolean).join(" ");
|
|
2673
2673
|
return i && o.unshift(` class="${H(i)}"`), o.join("");
|
|
2674
2674
|
}
|
|
2675
|
-
function
|
|
2675
|
+
function _a(e) {
|
|
2676
2676
|
if (!e)
|
|
2677
2677
|
return [];
|
|
2678
2678
|
if (Array.isArray(e)) {
|
|
@@ -2723,12 +2723,12 @@ function Fn(e) {
|
|
|
2723
2723
|
}
|
|
2724
2724
|
return "";
|
|
2725
2725
|
}
|
|
2726
|
-
var Da = Object.defineProperty, Ra = Object.getOwnPropertyDescriptor,
|
|
2726
|
+
var Da = Object.defineProperty, Ra = Object.getOwnPropertyDescriptor, gr = (e, t, r, o) => {
|
|
2727
2727
|
for (var n = o > 1 ? void 0 : o ? Ra(t, r) : t, i = e.length - 1, s; i >= 0; i--)
|
|
2728
2728
|
(s = e[i]) && (n = (o ? s(t, r, n) : s(n)) || n);
|
|
2729
2729
|
return o && n && Da(t, r, n), n;
|
|
2730
2730
|
};
|
|
2731
|
-
let
|
|
2731
|
+
let Je = class {
|
|
2732
2732
|
ngAfterViewInit() {
|
|
2733
2733
|
this.commitContent();
|
|
2734
2734
|
}
|
|
@@ -2762,29 +2762,29 @@ let Ye = class {
|
|
|
2762
2762
|
e.innerHTML = fn(t);
|
|
2763
2763
|
}
|
|
2764
2764
|
};
|
|
2765
|
-
|
|
2765
|
+
gr([
|
|
2766
2766
|
c({ required: !0 })
|
|
2767
|
-
],
|
|
2768
|
-
|
|
2767
|
+
], Je.prototype, "node", 2);
|
|
2768
|
+
gr([
|
|
2769
2769
|
c()
|
|
2770
|
-
],
|
|
2771
|
-
|
|
2772
|
-
|
|
2773
|
-
],
|
|
2774
|
-
|
|
2770
|
+
], Je.prototype, "context", 2);
|
|
2771
|
+
gr([
|
|
2772
|
+
B("containerRef", { static: !0 })
|
|
2773
|
+
], Je.prototype, "containerRef", 2);
|
|
2774
|
+
Je = gr([
|
|
2775
2775
|
b({
|
|
2776
2776
|
selector: "markstream-angular-html-block-node",
|
|
2777
2777
|
standalone: !0,
|
|
2778
2778
|
template: '<div #containerRef class="html-block-node"></div>',
|
|
2779
2779
|
changeDetection: k.OnPush
|
|
2780
2780
|
})
|
|
2781
|
-
],
|
|
2782
|
-
var Ia = Object.defineProperty,
|
|
2783
|
-
for (var n = o > 1 ? void 0 : o ?
|
|
2781
|
+
], Je);
|
|
2782
|
+
var Ia = Object.defineProperty, $a = Object.getOwnPropertyDescriptor, yr = (e, t, r, o) => {
|
|
2783
|
+
for (var n = o > 1 ? void 0 : o ? $a(t, r) : t, i = e.length - 1, s; i >= 0; i--)
|
|
2784
2784
|
(s = e[i]) && (n = (o ? s(t, r, n) : s(n)) || n);
|
|
2785
2785
|
return o && n && Ia(t, r, n), n;
|
|
2786
2786
|
};
|
|
2787
|
-
let
|
|
2787
|
+
let Qe = class {
|
|
2788
2788
|
ngAfterViewInit() {
|
|
2789
2789
|
this.commitContent();
|
|
2790
2790
|
}
|
|
@@ -2811,29 +2811,29 @@ let Je = class {
|
|
|
2811
2811
|
e.innerHTML = fn(t);
|
|
2812
2812
|
}
|
|
2813
2813
|
};
|
|
2814
|
-
|
|
2814
|
+
yr([
|
|
2815
2815
|
c({ required: !0 })
|
|
2816
|
-
],
|
|
2817
|
-
|
|
2816
|
+
], Qe.prototype, "node", 2);
|
|
2817
|
+
yr([
|
|
2818
2818
|
c()
|
|
2819
|
-
],
|
|
2820
|
-
|
|
2821
|
-
|
|
2822
|
-
],
|
|
2823
|
-
|
|
2819
|
+
], Qe.prototype, "context", 2);
|
|
2820
|
+
yr([
|
|
2821
|
+
B("containerRef", { static: !0 })
|
|
2822
|
+
], Qe.prototype, "containerRef", 2);
|
|
2823
|
+
Qe = yr([
|
|
2824
2824
|
b({
|
|
2825
2825
|
selector: "markstream-angular-html-inline-node",
|
|
2826
2826
|
standalone: !0,
|
|
2827
2827
|
template: '<span #containerRef class="html-inline-node"></span>',
|
|
2828
2828
|
changeDetection: k.OnPush
|
|
2829
2829
|
})
|
|
2830
|
-
],
|
|
2831
|
-
var
|
|
2830
|
+
], Qe);
|
|
2831
|
+
var Na = Object.defineProperty, Aa = Object.getOwnPropertyDescriptor, Fo = (e, t, r, o) => {
|
|
2832
2832
|
for (var n = o > 1 ? void 0 : o ? Aa(t, r) : t, i = e.length - 1, s; i >= 0; i--)
|
|
2833
2833
|
(s = e[i]) && (n = (o ? s(t, r, n) : s(n)) || n);
|
|
2834
|
-
return o && n &&
|
|
2834
|
+
return o && n && Na(t, r, n), n;
|
|
2835
2835
|
};
|
|
2836
|
-
let
|
|
2836
|
+
let Jt = class {
|
|
2837
2837
|
get src() {
|
|
2838
2838
|
return w(this.node?.src);
|
|
2839
2839
|
}
|
|
@@ -2846,8 +2846,8 @@ let Yt = class {
|
|
|
2846
2846
|
};
|
|
2847
2847
|
Fo([
|
|
2848
2848
|
c({ required: !0 })
|
|
2849
|
-
],
|
|
2850
|
-
|
|
2849
|
+
], Jt.prototype, "node", 2);
|
|
2850
|
+
Jt = Fo([
|
|
2851
2851
|
b({
|
|
2852
2852
|
selector: "markstream-angular-image-node",
|
|
2853
2853
|
standalone: !0,
|
|
@@ -2863,23 +2863,23 @@ Yt = Fo([
|
|
|
2863
2863
|
`,
|
|
2864
2864
|
changeDetection: k.OnPush
|
|
2865
2865
|
})
|
|
2866
|
-
],
|
|
2867
|
-
let
|
|
2866
|
+
], Jt);
|
|
2867
|
+
let Bt = null, Br = null;
|
|
2868
2868
|
async function Ko() {
|
|
2869
|
-
return Br || (
|
|
2869
|
+
return Br || (Bt ? await Bt : (Bt = import("@antv/infographic").then((e) => {
|
|
2870
2870
|
const t = e && e.default ? e.default : e;
|
|
2871
2871
|
let r = t;
|
|
2872
2872
|
return typeof t == "function" && t.prototype && t.prototype.render ? r = t : e?.Infographic ? r = e.Infographic : t && t.Infographic && (r = t.Infographic), Br = r, r;
|
|
2873
|
-
}).catch((e) => (console.warn("[markstream-angular] Failed to load @antv/infographic", e), null)), await
|
|
2873
|
+
}).catch((e) => (console.warn("[markstream-angular] Failed to load @antv/infographic", e), null)), await Bt));
|
|
2874
2874
|
}
|
|
2875
|
-
var La = Object.defineProperty, Ha = Object.getOwnPropertyDescriptor,
|
|
2875
|
+
var La = Object.defineProperty, Ha = Object.getOwnPropertyDescriptor, $e = (e, t, r, o) => {
|
|
2876
2876
|
for (var n = o > 1 ? void 0 : o ? Ha(t, r) : t, i = e.length - 1, s; i >= 0; i--)
|
|
2877
2877
|
(s = e[i]) && (n = (o ? s(t, r, n) : s(n)) || n);
|
|
2878
2878
|
return o && n && La(t, r, n), n;
|
|
2879
2879
|
};
|
|
2880
2880
|
let re = class {
|
|
2881
2881
|
constructor() {
|
|
2882
|
-
this.cdr =
|
|
2882
|
+
this.cdr = X(me), this.rendering = !1, this.copied = !1, this.collapsed = !1, this.showSource = !1, this.modalOpen = !1, this.zoom = 1, this.error = "", this.containerMinHeight = "320px", this.svgMarkup = "", this.viewReady = !1, this.destroyed = !1, this.renderToken = 0, this.copyTimer = null, this.infographicInstance = null;
|
|
2883
2883
|
}
|
|
2884
2884
|
get mergedProps() {
|
|
2885
2885
|
return {
|
|
@@ -2970,7 +2970,7 @@ let re = class {
|
|
|
2970
2970
|
this.svgMarkup && (this.modalOpen = !0, typeof document < "u" && (document.body.style.overflow = "hidden"), queueMicrotask(() => this.syncModalPreview()), this.cdr.markForCheck());
|
|
2971
2971
|
}
|
|
2972
2972
|
closeModal() {
|
|
2973
|
-
this.modalOpen = !1, typeof document < "u" && (document.body.style.overflow = ""),
|
|
2973
|
+
this.modalOpen = !1, typeof document < "u" && (document.body.style.overflow = ""), we(this.modalHost?.nativeElement), this.cdr.markForCheck();
|
|
2974
2974
|
}
|
|
2975
2975
|
toggleCollapsed() {
|
|
2976
2976
|
this.collapsed = !this.collapsed, this.collapsed || queueMicrotask(() => {
|
|
@@ -2978,7 +2978,7 @@ let re = class {
|
|
|
2978
2978
|
}), this.cdr.markForCheck();
|
|
2979
2979
|
}
|
|
2980
2980
|
adjustZoom(e) {
|
|
2981
|
-
this.zoom =
|
|
2981
|
+
this.zoom = Be(Number((this.zoom + e).toFixed(2)), 0.4, 2.5), this.cdr.markForCheck();
|
|
2982
2982
|
}
|
|
2983
2983
|
resetZoom() {
|
|
2984
2984
|
this.zoom = 1, this.cdr.markForCheck();
|
|
@@ -2988,14 +2988,14 @@ let re = class {
|
|
|
2988
2988
|
return;
|
|
2989
2989
|
const e = this.code.trim();
|
|
2990
2990
|
if (!e) {
|
|
2991
|
-
this.svgMarkup = "",
|
|
2991
|
+
this.svgMarkup = "", we(this.previewHost?.nativeElement), this.cdr.markForCheck();
|
|
2992
2992
|
return;
|
|
2993
2993
|
}
|
|
2994
2994
|
const t = this.previewHost?.nativeElement;
|
|
2995
2995
|
if (!t)
|
|
2996
2996
|
return;
|
|
2997
2997
|
if (this.resolvedLoading && !this.resolvedProgressiveRender) {
|
|
2998
|
-
this.renderToken += 1, this.rendering = !0, this.error = "", this.svgMarkup = "",
|
|
2998
|
+
this.renderToken += 1, this.rendering = !0, this.error = "", this.svgMarkup = "", we(t), this.cdr.markForCheck();
|
|
2999
2999
|
return;
|
|
3000
3000
|
}
|
|
3001
3001
|
const r = ++this.renderToken;
|
|
@@ -3006,7 +3006,7 @@ let re = class {
|
|
|
3006
3006
|
throw new Error("Infographic renderer is not available.");
|
|
3007
3007
|
if (this.destroyed || r !== this.renderToken)
|
|
3008
3008
|
return;
|
|
3009
|
-
this.destroyInfographic(),
|
|
3009
|
+
this.destroyInfographic(), we(t);
|
|
3010
3010
|
const n = new o({
|
|
3011
3011
|
container: t,
|
|
3012
3012
|
width: "100%",
|
|
@@ -3021,7 +3021,7 @@ let re = class {
|
|
|
3021
3021
|
} catch (o) {
|
|
3022
3022
|
if (this.destroyed || r !== this.renderToken)
|
|
3023
3023
|
return;
|
|
3024
|
-
this.destroyInfographic(), this.svgMarkup = "", this.showSource = !0, this.error = o instanceof Error ? o.message : "Failed to render infographic.",
|
|
3024
|
+
this.destroyInfographic(), this.svgMarkup = "", this.showSource = !0, this.error = o instanceof Error ? o.message : "Failed to render infographic.", we(t);
|
|
3025
3025
|
} finally {
|
|
3026
3026
|
r === this.renderToken && (this.rendering = !1, this.cdr.markForCheck());
|
|
3027
3027
|
}
|
|
@@ -3035,46 +3035,46 @@ let re = class {
|
|
|
3035
3035
|
}
|
|
3036
3036
|
syncModalPreview() {
|
|
3037
3037
|
if (!this.modalOpen || !this.svgMarkup) {
|
|
3038
|
-
|
|
3038
|
+
we(this.modalHost?.nativeElement);
|
|
3039
3039
|
return;
|
|
3040
3040
|
}
|
|
3041
|
-
|
|
3041
|
+
ke(this.modalHost?.nativeElement, this.svgMarkup);
|
|
3042
3042
|
}
|
|
3043
3043
|
schedulePreviewSync() {
|
|
3044
3044
|
if (typeof window < "u") {
|
|
3045
3045
|
window.setTimeout(() => {
|
|
3046
|
-
this.destroyed || (
|
|
3046
|
+
this.destroyed || (ke(this.previewHost?.nativeElement, this.svgMarkup), this.syncModalPreview(), this.cdr.markForCheck());
|
|
3047
3047
|
}, 0);
|
|
3048
3048
|
return;
|
|
3049
3049
|
}
|
|
3050
3050
|
queueMicrotask(() => {
|
|
3051
|
-
|
|
3051
|
+
ke(this.previewHost?.nativeElement, this.svgMarkup), this.syncModalPreview();
|
|
3052
3052
|
});
|
|
3053
3053
|
}
|
|
3054
3054
|
};
|
|
3055
|
-
|
|
3056
|
-
|
|
3055
|
+
$e([
|
|
3056
|
+
B("previewHost")
|
|
3057
3057
|
], re.prototype, "previewHost", 2);
|
|
3058
|
-
|
|
3059
|
-
|
|
3058
|
+
$e([
|
|
3059
|
+
B("modalHost")
|
|
3060
3060
|
], re.prototype, "modalHost", 2);
|
|
3061
|
-
|
|
3061
|
+
$e([
|
|
3062
3062
|
c({ required: !0 })
|
|
3063
3063
|
], re.prototype, "node", 2);
|
|
3064
|
-
|
|
3064
|
+
$e([
|
|
3065
3065
|
c()
|
|
3066
3066
|
], re.prototype, "context", 2);
|
|
3067
|
-
|
|
3067
|
+
$e([
|
|
3068
3068
|
c()
|
|
3069
3069
|
], re.prototype, "props", 2);
|
|
3070
|
-
|
|
3070
|
+
$e([
|
|
3071
3071
|
ho("window:keydown", ["$event"])
|
|
3072
3072
|
], re.prototype, "handleWindowKeydown", 1);
|
|
3073
|
-
re =
|
|
3073
|
+
re = $e([
|
|
3074
3074
|
b({
|
|
3075
3075
|
selector: "markstream-angular-infographic-block-node",
|
|
3076
3076
|
standalone: !0,
|
|
3077
|
-
imports: [
|
|
3077
|
+
imports: [_],
|
|
3078
3078
|
template: `
|
|
3079
3079
|
<div
|
|
3080
3080
|
class="markstream-angular-enhanced-block markstream-angular-enhanced-block--infographic"
|
|
@@ -3204,7 +3204,7 @@ re = Ie([
|
|
|
3204
3204
|
changeDetection: k.OnPush
|
|
3205
3205
|
})
|
|
3206
3206
|
], re);
|
|
3207
|
-
function
|
|
3207
|
+
function zo({
|
|
3208
3208
|
nextContent: e,
|
|
3209
3209
|
previousContent: t,
|
|
3210
3210
|
typewriterEnabled: r
|
|
@@ -3237,7 +3237,7 @@ let _e = class {
|
|
|
3237
3237
|
this.settledCode = "", this.streamedDelta = "", this.streamFadeVersion = 0;
|
|
3238
3238
|
}
|
|
3239
3239
|
ngOnChanges() {
|
|
3240
|
-
const e = w(this.node?.code), t = w(this.indexKey).trim(), r = this.context?.textStreamState, o = `${this.settledCode}${this.streamedDelta}`, i = (t ? r?.get(t) : void 0) ?? o, s =
|
|
3240
|
+
const e = w(this.node?.code), t = w(this.indexKey).trim(), r = this.context?.textStreamState, o = `${this.settledCode}${this.streamedDelta}`, i = (t ? r?.get(t) : void 0) ?? o, s = zo({
|
|
3241
3241
|
nextContent: e,
|
|
3242
3242
|
previousContent: i,
|
|
3243
3243
|
typewriterEnabled: this.typewriterEnabled
|
|
@@ -3270,7 +3270,7 @@ _e = Ot([
|
|
|
3270
3270
|
b({
|
|
3271
3271
|
selector: "markstream-angular-inline-code-node",
|
|
3272
3272
|
standalone: !0,
|
|
3273
|
-
imports: [
|
|
3273
|
+
imports: [_],
|
|
3274
3274
|
template: `
|
|
3275
3275
|
<code>
|
|
3276
3276
|
<span *ngIf="settledCode">{{ settledCode }}</span>
|
|
@@ -3284,12 +3284,12 @@ _e = Ot([
|
|
|
3284
3284
|
changeDetection: k.OnPush
|
|
3285
3285
|
})
|
|
3286
3286
|
], _e);
|
|
3287
|
-
var Ka = Object.defineProperty,
|
|
3288
|
-
for (var n = o > 1 ? void 0 : o ?
|
|
3287
|
+
var Ka = Object.defineProperty, za = Object.getOwnPropertyDescriptor, vr = (e, t, r, o) => {
|
|
3288
|
+
for (var n = o > 1 ? void 0 : o ? za(t, r) : t, i = e.length - 1, s; i >= 0; i--)
|
|
3289
3289
|
(s = e[i]) && (n = (o ? s(t, r, n) : s(n)) || n);
|
|
3290
3290
|
return o && n && Ka(t, r, n), n;
|
|
3291
3291
|
};
|
|
3292
|
-
let
|
|
3292
|
+
let et = class {
|
|
3293
3293
|
get children() {
|
|
3294
3294
|
return E(this.node?.children);
|
|
3295
3295
|
}
|
|
@@ -3297,20 +3297,20 @@ let Qe = class {
|
|
|
3297
3297
|
return `${this.indexKey || "insert"}-insert`;
|
|
3298
3298
|
}
|
|
3299
3299
|
};
|
|
3300
|
-
|
|
3300
|
+
vr([
|
|
3301
3301
|
c({ required: !0 })
|
|
3302
|
-
],
|
|
3303
|
-
|
|
3302
|
+
], et.prototype, "node", 2);
|
|
3303
|
+
vr([
|
|
3304
3304
|
c()
|
|
3305
|
-
],
|
|
3306
|
-
|
|
3305
|
+
], et.prototype, "context", 2);
|
|
3306
|
+
vr([
|
|
3307
3307
|
c()
|
|
3308
|
-
],
|
|
3309
|
-
|
|
3308
|
+
], et.prototype, "indexKey", 2);
|
|
3309
|
+
et = vr([
|
|
3310
3310
|
b({
|
|
3311
3311
|
selector: "markstream-angular-insert-node",
|
|
3312
3312
|
standalone: !0,
|
|
3313
|
-
imports: [
|
|
3313
|
+
imports: [_, p(() => S)],
|
|
3314
3314
|
template: `
|
|
3315
3315
|
<ins>
|
|
3316
3316
|
<markstream-angular-nested-renderer
|
|
@@ -3322,29 +3322,29 @@ Qe = yr([
|
|
|
3322
3322
|
`,
|
|
3323
3323
|
changeDetection: k.OnPush
|
|
3324
3324
|
})
|
|
3325
|
-
],
|
|
3326
|
-
const
|
|
3325
|
+
], et);
|
|
3326
|
+
const Qt = Math.min, Ce = Math.max, er = Math.round, Ft = Math.floor, Q = (e) => ({
|
|
3327
3327
|
x: e,
|
|
3328
3328
|
y: e
|
|
3329
|
-
}),
|
|
3329
|
+
}), ja = {
|
|
3330
3330
|
left: "right",
|
|
3331
3331
|
right: "left",
|
|
3332
3332
|
bottom: "top",
|
|
3333
3333
|
top: "bottom"
|
|
3334
3334
|
};
|
|
3335
3335
|
function Kn(e, t, r) {
|
|
3336
|
-
return
|
|
3336
|
+
return Ce(e, Qt(t, r));
|
|
3337
3337
|
}
|
|
3338
|
-
function
|
|
3338
|
+
function wr(e, t) {
|
|
3339
3339
|
return typeof e == "function" ? e(t) : e;
|
|
3340
3340
|
}
|
|
3341
|
-
function
|
|
3341
|
+
function Me(e) {
|
|
3342
3342
|
return e.split("-")[0];
|
|
3343
3343
|
}
|
|
3344
|
-
function
|
|
3344
|
+
function xr(e) {
|
|
3345
3345
|
return e.split("-")[1];
|
|
3346
3346
|
}
|
|
3347
|
-
function
|
|
3347
|
+
function jo(e) {
|
|
3348
3348
|
return e === "x" ? "y" : "x";
|
|
3349
3349
|
}
|
|
3350
3350
|
function Wo(e) {
|
|
@@ -3355,27 +3355,27 @@ function se(e) {
|
|
|
3355
3355
|
return t === "t" || t === "b" ? "y" : "x";
|
|
3356
3356
|
}
|
|
3357
3357
|
function Vo(e) {
|
|
3358
|
-
return
|
|
3358
|
+
return jo(se(e));
|
|
3359
3359
|
}
|
|
3360
3360
|
function Wa(e, t, r) {
|
|
3361
3361
|
r === void 0 && (r = !1);
|
|
3362
|
-
const o =
|
|
3362
|
+
const o = xr(e), n = Vo(e), i = Wo(n);
|
|
3363
3363
|
let s = n === "x" ? o === (r ? "end" : "start") ? "right" : "left" : o === "start" ? "bottom" : "top";
|
|
3364
|
-
return t.reference[i] > t.floating[i] && (s =
|
|
3364
|
+
return t.reference[i] > t.floating[i] && (s = tr(s)), [s, tr(s)];
|
|
3365
3365
|
}
|
|
3366
3366
|
function Va(e) {
|
|
3367
|
-
const t =
|
|
3367
|
+
const t = tr(e);
|
|
3368
3368
|
return [Ur(e), t, Ur(t)];
|
|
3369
3369
|
}
|
|
3370
3370
|
function Ur(e) {
|
|
3371
3371
|
return e.includes("start") ? e.replace("start", "end") : e.replace("end", "start");
|
|
3372
3372
|
}
|
|
3373
|
-
const
|
|
3374
|
-
function
|
|
3373
|
+
const zn = ["left", "right"], jn = ["right", "left"], qa = ["top", "bottom"], Ua = ["bottom", "top"];
|
|
3374
|
+
function Xa(e, t, r) {
|
|
3375
3375
|
switch (e) {
|
|
3376
3376
|
case "top":
|
|
3377
3377
|
case "bottom":
|
|
3378
|
-
return r ? t ?
|
|
3378
|
+
return r ? t ? jn : zn : t ? zn : jn;
|
|
3379
3379
|
case "left":
|
|
3380
3380
|
case "right":
|
|
3381
3381
|
return t ? qa : Ua;
|
|
@@ -3383,14 +3383,14 @@ function Ga(e, t, r) {
|
|
|
3383
3383
|
return [];
|
|
3384
3384
|
}
|
|
3385
3385
|
}
|
|
3386
|
-
function
|
|
3387
|
-
const n =
|
|
3388
|
-
let i =
|
|
3386
|
+
function Ga(e, t, r, o) {
|
|
3387
|
+
const n = xr(e);
|
|
3388
|
+
let i = Xa(Me(e), r === "start", o);
|
|
3389
3389
|
return n && (i = i.map((s) => s + "-" + n), t && (i = i.concat(i.map(Ur)))), i;
|
|
3390
3390
|
}
|
|
3391
|
-
function
|
|
3392
|
-
const t =
|
|
3393
|
-
return
|
|
3391
|
+
function tr(e) {
|
|
3392
|
+
const t = Me(e);
|
|
3393
|
+
return ja[t] + e.slice(t.length);
|
|
3394
3394
|
}
|
|
3395
3395
|
function Za(e) {
|
|
3396
3396
|
return {
|
|
@@ -3409,7 +3409,7 @@ function Ya(e) {
|
|
|
3409
3409
|
left: e
|
|
3410
3410
|
};
|
|
3411
3411
|
}
|
|
3412
|
-
function
|
|
3412
|
+
function rr(e) {
|
|
3413
3413
|
const {
|
|
3414
3414
|
x: t,
|
|
3415
3415
|
y: r,
|
|
@@ -3432,7 +3432,7 @@ function Wn(e, t, r) {
|
|
|
3432
3432
|
reference: o,
|
|
3433
3433
|
floating: n
|
|
3434
3434
|
} = e;
|
|
3435
|
-
const i = se(t), s = Vo(t), a = Wo(s), l =
|
|
3435
|
+
const i = se(t), s = Vo(t), a = Wo(s), l = Me(t), d = i === "y", u = o.x + o.width / 2 - n.width / 2, h = o.y + o.height / 2 - n.height / 2, f = o[a] / 2 - n[a] / 2;
|
|
3436
3436
|
let m;
|
|
3437
3437
|
switch (l) {
|
|
3438
3438
|
case "top":
|
|
@@ -3465,7 +3465,7 @@ function Wn(e, t, r) {
|
|
|
3465
3465
|
y: o.y
|
|
3466
3466
|
};
|
|
3467
3467
|
}
|
|
3468
|
-
switch (
|
|
3468
|
+
switch (xr(t)) {
|
|
3469
3469
|
case "start":
|
|
3470
3470
|
m[s] -= f * (r && d ? -1 : 1);
|
|
3471
3471
|
break;
|
|
@@ -3491,7 +3491,7 @@ async function Ja(e, t) {
|
|
|
3491
3491
|
elementContext: h = "floating",
|
|
3492
3492
|
altBoundary: f = !1,
|
|
3493
3493
|
padding: m = 0
|
|
3494
|
-
} =
|
|
3494
|
+
} = wr(t, e), g = Ya(m), P = a[f ? h === "floating" ? "reference" : "floating" : h], v = rr(await i.getClippingRect({
|
|
3495
3495
|
element: (r = await (i.isElement == null ? void 0 : i.isElement(P))) == null || r ? P : P.contextElement || await (i.getDocumentElement == null ? void 0 : i.getDocumentElement(a.floating)),
|
|
3496
3496
|
boundary: d,
|
|
3497
3497
|
rootBoundary: u,
|
|
@@ -3501,23 +3501,23 @@ async function Ja(e, t) {
|
|
|
3501
3501
|
y: n,
|
|
3502
3502
|
width: s.floating.width,
|
|
3503
3503
|
height: s.floating.height
|
|
3504
|
-
} : s.reference, D = await (i.getOffsetParent == null ? void 0 : i.getOffsetParent(a.floating)),
|
|
3504
|
+
} : s.reference, D = await (i.getOffsetParent == null ? void 0 : i.getOffsetParent(a.floating)), $ = await (i.isElement == null ? void 0 : i.isElement(D)) ? await (i.getScale == null ? void 0 : i.getScale(D)) || {
|
|
3505
3505
|
x: 1,
|
|
3506
3506
|
y: 1
|
|
3507
3507
|
} : {
|
|
3508
3508
|
x: 1,
|
|
3509
3509
|
y: 1
|
|
3510
|
-
},
|
|
3510
|
+
}, j = rr(i.convertOffsetParentRelativeRectToViewportRelativeRect ? await i.convertOffsetParentRelativeRectToViewportRelativeRect({
|
|
3511
3511
|
elements: a,
|
|
3512
3512
|
rect: M,
|
|
3513
3513
|
offsetParent: D,
|
|
3514
3514
|
strategy: l
|
|
3515
3515
|
}) : M);
|
|
3516
3516
|
return {
|
|
3517
|
-
top: (v.top -
|
|
3518
|
-
bottom: (
|
|
3519
|
-
left: (v.left -
|
|
3520
|
-
right: (
|
|
3517
|
+
top: (v.top - j.top + g.top) / $.y,
|
|
3518
|
+
bottom: (j.bottom - v.bottom + g.bottom) / $.y,
|
|
3519
|
+
left: (v.left - j.left + g.left) / $.x,
|
|
3520
|
+
right: (j.right - v.right + g.right) / $.x
|
|
3521
3521
|
};
|
|
3522
3522
|
}
|
|
3523
3523
|
const Qa = 50, el = async (e, t, r) => {
|
|
@@ -3548,9 +3548,9 @@ const Qa = 50, el = async (e, t, r) => {
|
|
|
3548
3548
|
fn: M
|
|
3549
3549
|
} = P, {
|
|
3550
3550
|
x: D,
|
|
3551
|
-
y:
|
|
3552
|
-
data:
|
|
3553
|
-
reset:
|
|
3551
|
+
y: $,
|
|
3552
|
+
data: j,
|
|
3553
|
+
reset: F
|
|
3554
3554
|
} = await M({
|
|
3555
3555
|
x: u,
|
|
3556
3556
|
y: h,
|
|
@@ -3565,14 +3565,14 @@ const Qa = 50, el = async (e, t, r) => {
|
|
|
3565
3565
|
floating: t
|
|
3566
3566
|
}
|
|
3567
3567
|
});
|
|
3568
|
-
u = D ?? u, h =
|
|
3568
|
+
u = D ?? u, h = $ ?? h, g[v] = {
|
|
3569
3569
|
...g[v],
|
|
3570
|
-
...
|
|
3571
|
-
},
|
|
3570
|
+
...j
|
|
3571
|
+
}, F && m < Qa && (m++, typeof F == "object" && (F.placement && (f = F.placement), F.rects && (d = F.rects === !0 ? await s.getElementRects({
|
|
3572
3572
|
reference: e,
|
|
3573
3573
|
floating: t,
|
|
3574
3574
|
strategy: n
|
|
3575
|
-
}) :
|
|
3575
|
+
}) : F.rects), {
|
|
3576
3576
|
x: u,
|
|
3577
3577
|
y: h
|
|
3578
3578
|
} = Wn(d, f, l)), y = -1);
|
|
@@ -3605,42 +3605,42 @@ const Qa = 50, el = async (e, t, r) => {
|
|
|
3605
3605
|
fallbackAxisSideDirection: g = "none",
|
|
3606
3606
|
flipAlignment: y = !0,
|
|
3607
3607
|
...P
|
|
3608
|
-
} =
|
|
3608
|
+
} = wr(e, t);
|
|
3609
3609
|
if ((r = i.arrow) != null && r.alignmentOffset)
|
|
3610
3610
|
return {};
|
|
3611
|
-
const v =
|
|
3612
|
-
!f &&
|
|
3613
|
-
const
|
|
3614
|
-
let
|
|
3615
|
-
if (u &&
|
|
3616
|
-
const
|
|
3617
|
-
|
|
3611
|
+
const v = Me(n), M = se(a), D = Me(a) === a, $ = await (l.isRTL == null ? void 0 : l.isRTL(d.floating)), j = f || (D || !y ? [tr(a)] : Va(a)), F = g !== "none";
|
|
3612
|
+
!f && F && j.push(...Ga(a, y, g, $));
|
|
3613
|
+
const Ae = [a, ...j], Nr = await l.detectOverflow(t, P), Lt = [];
|
|
3614
|
+
let Le = ((o = i.flip) == null ? void 0 : o.overflows) || [];
|
|
3615
|
+
if (u && Lt.push(Nr[v]), h) {
|
|
3616
|
+
const fe = Wa(n, s, $);
|
|
3617
|
+
Lt.push(Nr[fe[0]], Nr[fe[1]]);
|
|
3618
3618
|
}
|
|
3619
|
-
if (
|
|
3619
|
+
if (Le = [...Le, {
|
|
3620
3620
|
placement: n,
|
|
3621
|
-
overflows:
|
|
3622
|
-
}], !
|
|
3621
|
+
overflows: Lt
|
|
3622
|
+
}], !Lt.every((fe) => fe <= 0)) {
|
|
3623
3623
|
var On, En;
|
|
3624
|
-
const
|
|
3624
|
+
const fe = (((On = i.flip) == null ? void 0 : On.index) || 0) + 1, Ar = Ae[fe];
|
|
3625
3625
|
if (Ar && (!(h === "alignment" ? M !== se(Ar) : !1) || // We leave the current main axis only if every placement on that axis
|
|
3626
3626
|
// overflows the main axis.
|
|
3627
|
-
|
|
3627
|
+
Le.every((V) => se(V.placement) === M ? V.overflows[0] > 0 : !0)))
|
|
3628
3628
|
return {
|
|
3629
3629
|
data: {
|
|
3630
|
-
index:
|
|
3631
|
-
overflows:
|
|
3630
|
+
index: fe,
|
|
3631
|
+
overflows: Le
|
|
3632
3632
|
},
|
|
3633
3633
|
reset: {
|
|
3634
3634
|
placement: Ar
|
|
3635
3635
|
}
|
|
3636
3636
|
};
|
|
3637
|
-
let ht = (En =
|
|
3637
|
+
let ht = (En = Le.filter((pe) => pe.overflows[0] <= 0).sort((pe, V) => pe.overflows[1] - V.overflows[1])[0]) == null ? void 0 : En.placement;
|
|
3638
3638
|
if (!ht)
|
|
3639
3639
|
switch (m) {
|
|
3640
3640
|
case "bestFit": {
|
|
3641
3641
|
var Dn;
|
|
3642
|
-
const
|
|
3643
|
-
if (
|
|
3642
|
+
const pe = (Dn = Le.filter((V) => {
|
|
3643
|
+
if (F) {
|
|
3644
3644
|
const ie = se(V.placement);
|
|
3645
3645
|
return ie === M || // Create a bias to the `y` side axis due to horizontal
|
|
3646
3646
|
// reading directions favoring greater width.
|
|
@@ -3648,7 +3648,7 @@ const Qa = 50, el = async (e, t, r) => {
|
|
|
3648
3648
|
}
|
|
3649
3649
|
return !0;
|
|
3650
3650
|
}).map((V) => [V.placement, V.overflows.filter((ie) => ie > 0).reduce((ie, wi) => ie + wi, 0)]).sort((V, ie) => V[1] - ie[1])[0]) == null ? void 0 : Dn[0];
|
|
3651
|
-
|
|
3651
|
+
pe && (ht = pe);
|
|
3652
3652
|
break;
|
|
3653
3653
|
}
|
|
3654
3654
|
case "initialPlacement":
|
|
@@ -3671,7 +3671,7 @@ async function nl(e, t) {
|
|
|
3671
3671
|
placement: r,
|
|
3672
3672
|
platform: o,
|
|
3673
3673
|
elements: n
|
|
3674
|
-
} = e, i = await (o.isRTL == null ? void 0 : o.isRTL(n.floating)), s =
|
|
3674
|
+
} = e, i = await (o.isRTL == null ? void 0 : o.isRTL(n.floating)), s = Me(r), a = xr(r), l = se(r) === "y", d = rl.has(s) ? -1 : 1, u = i && l ? -1 : 1, h = wr(t, e);
|
|
3675
3675
|
let {
|
|
3676
3676
|
mainAxis: f,
|
|
3677
3677
|
crossAxis: m,
|
|
@@ -3741,18 +3741,18 @@ const ol = function(e) {
|
|
|
3741
3741
|
}
|
|
3742
3742
|
},
|
|
3743
3743
|
...d
|
|
3744
|
-
} =
|
|
3744
|
+
} = wr(e, t), u = {
|
|
3745
3745
|
x: r,
|
|
3746
3746
|
y: o
|
|
3747
|
-
}, h = await i.detectOverflow(t, d), f = se(
|
|
3747
|
+
}, h = await i.detectOverflow(t, d), f = se(Me(n)), m = jo(f);
|
|
3748
3748
|
let g = u[m], y = u[f];
|
|
3749
3749
|
if (s) {
|
|
3750
|
-
const v = m === "y" ? "top" : "left", M = m === "y" ? "bottom" : "right", D = g + h[v],
|
|
3751
|
-
g = Kn(D, g,
|
|
3750
|
+
const v = m === "y" ? "top" : "left", M = m === "y" ? "bottom" : "right", D = g + h[v], $ = g - h[M];
|
|
3751
|
+
g = Kn(D, g, $);
|
|
3752
3752
|
}
|
|
3753
3753
|
if (a) {
|
|
3754
|
-
const v = f === "y" ? "top" : "left", M = f === "y" ? "bottom" : "right", D = y + h[v],
|
|
3755
|
-
y = Kn(D, y,
|
|
3754
|
+
const v = f === "y" ? "top" : "left", M = f === "y" ? "bottom" : "right", D = y + h[v], $ = y - h[M];
|
|
3755
|
+
y = Kn(D, y, $);
|
|
3756
3756
|
}
|
|
3757
3757
|
const P = l.fn({
|
|
3758
3758
|
...t,
|
|
@@ -3773,13 +3773,13 @@ const ol = function(e) {
|
|
|
3773
3773
|
}
|
|
3774
3774
|
};
|
|
3775
3775
|
};
|
|
3776
|
-
function
|
|
3776
|
+
function br() {
|
|
3777
3777
|
return typeof window < "u";
|
|
3778
3778
|
}
|
|
3779
3779
|
function ut(e) {
|
|
3780
3780
|
return qo(e) ? (e.nodeName || "").toLowerCase() : "#document";
|
|
3781
3781
|
}
|
|
3782
|
-
function
|
|
3782
|
+
function z(e) {
|
|
3783
3783
|
var t;
|
|
3784
3784
|
return (e == null || (t = e.ownerDocument) == null ? void 0 : t.defaultView) || window;
|
|
3785
3785
|
}
|
|
@@ -3788,16 +3788,16 @@ function ee(e) {
|
|
|
3788
3788
|
return (t = (qo(e) ? e.ownerDocument : e.document) || window.document) == null ? void 0 : t.documentElement;
|
|
3789
3789
|
}
|
|
3790
3790
|
function qo(e) {
|
|
3791
|
-
return
|
|
3791
|
+
return br() ? e instanceof Node || e instanceof z(e).Node : !1;
|
|
3792
3792
|
}
|
|
3793
|
-
function
|
|
3794
|
-
return
|
|
3793
|
+
function Z(e) {
|
|
3794
|
+
return br() ? e instanceof Element || e instanceof z(e).Element : !1;
|
|
3795
3795
|
}
|
|
3796
3796
|
function oe(e) {
|
|
3797
|
-
return
|
|
3797
|
+
return br() ? e instanceof HTMLElement || e instanceof z(e).HTMLElement : !1;
|
|
3798
3798
|
}
|
|
3799
3799
|
function Vn(e) {
|
|
3800
|
-
return !
|
|
3800
|
+
return !br() || typeof ShadowRoot > "u" ? !1 : e instanceof ShadowRoot || e instanceof z(e).ShadowRoot;
|
|
3801
3801
|
}
|
|
3802
3802
|
function Et(e) {
|
|
3803
3803
|
const {
|
|
@@ -3805,13 +3805,13 @@ function Et(e) {
|
|
|
3805
3805
|
overflowX: r,
|
|
3806
3806
|
overflowY: o,
|
|
3807
3807
|
display: n
|
|
3808
|
-
} =
|
|
3808
|
+
} = Y(e);
|
|
3809
3809
|
return /auto|scroll|overlay|hidden|clip/.test(t + o + r) && n !== "inline" && n !== "contents";
|
|
3810
3810
|
}
|
|
3811
3811
|
function sl(e) {
|
|
3812
3812
|
return /^(table|td|th)$/.test(ut(e));
|
|
3813
3813
|
}
|
|
3814
|
-
function
|
|
3814
|
+
function kr(e) {
|
|
3815
3815
|
try {
|
|
3816
3816
|
if (e.matches(":popover-open"))
|
|
3817
3817
|
return !0;
|
|
@@ -3823,18 +3823,18 @@ function br(e) {
|
|
|
3823
3823
|
return !1;
|
|
3824
3824
|
}
|
|
3825
3825
|
}
|
|
3826
|
-
const al = /transform|translate|scale|rotate|perspective|filter/, ll = /paint|layout|strict|content/,
|
|
3826
|
+
const al = /transform|translate|scale|rotate|perspective|filter/, ll = /paint|layout|strict|content/, ye = (e) => !!e && e !== "none";
|
|
3827
3827
|
let Fr;
|
|
3828
3828
|
function gn(e) {
|
|
3829
|
-
const t =
|
|
3830
|
-
return
|
|
3829
|
+
const t = Z(e) ? Y(e) : e;
|
|
3830
|
+
return ye(t.transform) || ye(t.translate) || ye(t.scale) || ye(t.rotate) || ye(t.perspective) || !yn() && (ye(t.backdropFilter) || ye(t.filter)) || al.test(t.willChange || "") || ll.test(t.contain || "");
|
|
3831
3831
|
}
|
|
3832
3832
|
function cl(e) {
|
|
3833
3833
|
let t = ce(e);
|
|
3834
|
-
for (; oe(t) && !
|
|
3834
|
+
for (; oe(t) && !tt(t); ) {
|
|
3835
3835
|
if (gn(t))
|
|
3836
3836
|
return t;
|
|
3837
|
-
if (
|
|
3837
|
+
if (kr(t))
|
|
3838
3838
|
return null;
|
|
3839
3839
|
t = ce(t);
|
|
3840
3840
|
}
|
|
@@ -3843,14 +3843,14 @@ function cl(e) {
|
|
|
3843
3843
|
function yn() {
|
|
3844
3844
|
return Fr == null && (Fr = typeof CSS < "u" && CSS.supports && CSS.supports("-webkit-backdrop-filter", "none")), Fr;
|
|
3845
3845
|
}
|
|
3846
|
-
function
|
|
3846
|
+
function tt(e) {
|
|
3847
3847
|
return /^(html|body|#document)$/.test(ut(e));
|
|
3848
3848
|
}
|
|
3849
|
-
function
|
|
3850
|
-
return
|
|
3849
|
+
function Y(e) {
|
|
3850
|
+
return z(e).getComputedStyle(e);
|
|
3851
3851
|
}
|
|
3852
|
-
function
|
|
3853
|
-
return
|
|
3852
|
+
function Cr(e) {
|
|
3853
|
+
return Z(e) ? {
|
|
3854
3854
|
scrollLeft: e.scrollLeft,
|
|
3855
3855
|
scrollTop: e.scrollTop
|
|
3856
3856
|
} : {
|
|
@@ -3872,25 +3872,25 @@ function ce(e) {
|
|
|
3872
3872
|
}
|
|
3873
3873
|
function Uo(e) {
|
|
3874
3874
|
const t = ce(e);
|
|
3875
|
-
return
|
|
3875
|
+
return tt(t) ? e.ownerDocument ? e.ownerDocument.body : e.body : oe(t) && Et(t) ? t : Uo(t);
|
|
3876
3876
|
}
|
|
3877
3877
|
function bt(e, t, r) {
|
|
3878
3878
|
var o;
|
|
3879
3879
|
t === void 0 && (t = []), r === void 0 && (r = !0);
|
|
3880
|
-
const n = Uo(e), i = n === ((o = e.ownerDocument) == null ? void 0 : o.body), s =
|
|
3880
|
+
const n = Uo(e), i = n === ((o = e.ownerDocument) == null ? void 0 : o.body), s = z(n);
|
|
3881
3881
|
if (i) {
|
|
3882
|
-
const a =
|
|
3882
|
+
const a = Xr(s);
|
|
3883
3883
|
return t.concat(s, s.visualViewport || [], Et(n) ? n : [], a && r ? bt(a) : []);
|
|
3884
3884
|
} else
|
|
3885
3885
|
return t.concat(n, bt(n, [], r));
|
|
3886
3886
|
}
|
|
3887
|
-
function
|
|
3887
|
+
function Xr(e) {
|
|
3888
3888
|
return e.parent && Object.getPrototypeOf(e.parent) ? e.frameElement : null;
|
|
3889
3889
|
}
|
|
3890
|
-
function
|
|
3891
|
-
const t =
|
|
3890
|
+
function Xo(e) {
|
|
3891
|
+
const t = Y(e);
|
|
3892
3892
|
let r = parseFloat(t.width) || 0, o = parseFloat(t.height) || 0;
|
|
3893
|
-
const n = oe(e), i = n ? e.offsetWidth : r, s = n ? e.offsetHeight : o, a =
|
|
3893
|
+
const n = oe(e), i = n ? e.offsetWidth : r, s = n ? e.offsetHeight : o, a = er(r) !== i || er(o) !== s;
|
|
3894
3894
|
return a && (r = i, o = s), {
|
|
3895
3895
|
width: r,
|
|
3896
3896
|
height: o,
|
|
@@ -3898,62 +3898,62 @@ function Go(e) {
|
|
|
3898
3898
|
};
|
|
3899
3899
|
}
|
|
3900
3900
|
function vn(e) {
|
|
3901
|
-
return
|
|
3901
|
+
return Z(e) ? e : e.contextElement;
|
|
3902
3902
|
}
|
|
3903
3903
|
function je(e) {
|
|
3904
3904
|
const t = vn(e);
|
|
3905
3905
|
if (!oe(t))
|
|
3906
|
-
return
|
|
3906
|
+
return Q(1);
|
|
3907
3907
|
const r = t.getBoundingClientRect(), {
|
|
3908
3908
|
width: o,
|
|
3909
3909
|
height: n,
|
|
3910
3910
|
$: i
|
|
3911
|
-
} =
|
|
3912
|
-
let s = (i ?
|
|
3911
|
+
} = Xo(t);
|
|
3912
|
+
let s = (i ? er(r.width) : r.width) / o, a = (i ? er(r.height) : r.height) / n;
|
|
3913
3913
|
return (!s || !Number.isFinite(s)) && (s = 1), (!a || !Number.isFinite(a)) && (a = 1), {
|
|
3914
3914
|
x: s,
|
|
3915
3915
|
y: a
|
|
3916
3916
|
};
|
|
3917
3917
|
}
|
|
3918
|
-
const dl = /* @__PURE__ */
|
|
3919
|
-
function
|
|
3920
|
-
const t =
|
|
3918
|
+
const dl = /* @__PURE__ */ Q(0);
|
|
3919
|
+
function Go(e) {
|
|
3920
|
+
const t = z(e);
|
|
3921
3921
|
return !yn() || !t.visualViewport ? dl : {
|
|
3922
3922
|
x: t.visualViewport.offsetLeft,
|
|
3923
3923
|
y: t.visualViewport.offsetTop
|
|
3924
3924
|
};
|
|
3925
3925
|
}
|
|
3926
3926
|
function ul(e, t, r) {
|
|
3927
|
-
return t === void 0 && (t = !1), !r || t && r !==
|
|
3927
|
+
return t === void 0 && (t = !1), !r || t && r !== z(e) ? !1 : t;
|
|
3928
3928
|
}
|
|
3929
|
-
function
|
|
3929
|
+
function Oe(e, t, r, o) {
|
|
3930
3930
|
t === void 0 && (t = !1), r === void 0 && (r = !1);
|
|
3931
3931
|
const n = e.getBoundingClientRect(), i = vn(e);
|
|
3932
|
-
let s =
|
|
3933
|
-
t && (o ?
|
|
3934
|
-
const a = ul(i, r, o) ?
|
|
3932
|
+
let s = Q(1);
|
|
3933
|
+
t && (o ? Z(o) && (s = je(o)) : s = je(e));
|
|
3934
|
+
const a = ul(i, r, o) ? Go(i) : Q(0);
|
|
3935
3935
|
let l = (n.left + a.x) / s.x, d = (n.top + a.y) / s.y, u = n.width / s.x, h = n.height / s.y;
|
|
3936
3936
|
if (i) {
|
|
3937
|
-
const f =
|
|
3938
|
-
let g = f, y =
|
|
3937
|
+
const f = z(i), m = o && Z(o) ? z(o) : o;
|
|
3938
|
+
let g = f, y = Xr(g);
|
|
3939
3939
|
for (; y && o && m !== g; ) {
|
|
3940
|
-
const P = je(y), v = y.getBoundingClientRect(), M =
|
|
3941
|
-
l *= P.x, d *= P.y, u *= P.x, h *= P.y, l += D, d +=
|
|
3940
|
+
const P = je(y), v = y.getBoundingClientRect(), M = Y(y), D = v.left + (y.clientLeft + parseFloat(M.paddingLeft)) * P.x, $ = v.top + (y.clientTop + parseFloat(M.paddingTop)) * P.y;
|
|
3941
|
+
l *= P.x, d *= P.y, u *= P.x, h *= P.y, l += D, d += $, g = z(y), y = Xr(g);
|
|
3942
3942
|
}
|
|
3943
3943
|
}
|
|
3944
|
-
return
|
|
3944
|
+
return rr({
|
|
3945
3945
|
width: u,
|
|
3946
3946
|
height: h,
|
|
3947
3947
|
x: l,
|
|
3948
3948
|
y: d
|
|
3949
3949
|
});
|
|
3950
3950
|
}
|
|
3951
|
-
function
|
|
3952
|
-
const r =
|
|
3953
|
-
return t ? t.left + r :
|
|
3951
|
+
function Tr(e, t) {
|
|
3952
|
+
const r = Cr(e).scrollLeft;
|
|
3953
|
+
return t ? t.left + r : Oe(ee(e)).left + r;
|
|
3954
3954
|
}
|
|
3955
3955
|
function Zo(e, t) {
|
|
3956
|
-
const r = e.getBoundingClientRect(), o = r.left + t.scrollLeft -
|
|
3956
|
+
const r = e.getBoundingClientRect(), o = r.left + t.scrollLeft - Tr(e, r), n = r.top + t.scrollTop;
|
|
3957
3957
|
return {
|
|
3958
3958
|
x: o,
|
|
3959
3959
|
y: n
|
|
@@ -3966,19 +3966,19 @@ function hl(e) {
|
|
|
3966
3966
|
offsetParent: o,
|
|
3967
3967
|
strategy: n
|
|
3968
3968
|
} = e;
|
|
3969
|
-
const i = n === "fixed", s = ee(o), a = t ?
|
|
3969
|
+
const i = n === "fixed", s = ee(o), a = t ? kr(t.floating) : !1;
|
|
3970
3970
|
if (o === s || a && i)
|
|
3971
3971
|
return r;
|
|
3972
3972
|
let l = {
|
|
3973
3973
|
scrollLeft: 0,
|
|
3974
3974
|
scrollTop: 0
|
|
3975
|
-
}, d =
|
|
3976
|
-
const u =
|
|
3977
|
-
if ((h || !h && !i) && ((ut(o) !== "body" || Et(s)) && (l =
|
|
3978
|
-
const m =
|
|
3975
|
+
}, d = Q(1);
|
|
3976
|
+
const u = Q(0), h = oe(o);
|
|
3977
|
+
if ((h || !h && !i) && ((ut(o) !== "body" || Et(s)) && (l = Cr(o)), h)) {
|
|
3978
|
+
const m = Oe(o);
|
|
3979
3979
|
d = je(o), u.x = m.x + o.clientLeft, u.y = m.y + o.clientTop;
|
|
3980
3980
|
}
|
|
3981
|
-
const f = s && !h && !i ? Zo(s, l) :
|
|
3981
|
+
const f = s && !h && !i ? Zo(s, l) : Q(0);
|
|
3982
3982
|
return {
|
|
3983
3983
|
width: r.width * d.x,
|
|
3984
3984
|
height: r.height * d.y,
|
|
@@ -3990,10 +3990,10 @@ function ml(e) {
|
|
|
3990
3990
|
return Array.from(e.getClientRects());
|
|
3991
3991
|
}
|
|
3992
3992
|
function fl(e) {
|
|
3993
|
-
const t = ee(e), r =
|
|
3994
|
-
let s = -r.scrollLeft +
|
|
3993
|
+
const t = ee(e), r = Cr(e), o = e.ownerDocument.body, n = Ce(t.scrollWidth, t.clientWidth, o.scrollWidth, o.clientWidth), i = Ce(t.scrollHeight, t.clientHeight, o.scrollHeight, o.clientHeight);
|
|
3994
|
+
let s = -r.scrollLeft + Tr(e);
|
|
3995
3995
|
const a = -r.scrollTop;
|
|
3996
|
-
return
|
|
3996
|
+
return Y(o).direction === "rtl" && (s += Ce(t.clientWidth, o.clientWidth) - n), {
|
|
3997
3997
|
width: n,
|
|
3998
3998
|
height: i,
|
|
3999
3999
|
x: s,
|
|
@@ -4002,14 +4002,14 @@ function fl(e) {
|
|
|
4002
4002
|
}
|
|
4003
4003
|
const qn = 25;
|
|
4004
4004
|
function pl(e, t) {
|
|
4005
|
-
const r =
|
|
4005
|
+
const r = z(e), o = ee(e), n = r.visualViewport;
|
|
4006
4006
|
let i = o.clientWidth, s = o.clientHeight, a = 0, l = 0;
|
|
4007
4007
|
if (n) {
|
|
4008
4008
|
i = n.width, s = n.height;
|
|
4009
4009
|
const u = yn();
|
|
4010
4010
|
(!u || u && t === "fixed") && (a = n.offsetLeft, l = n.offsetTop);
|
|
4011
4011
|
}
|
|
4012
|
-
const d =
|
|
4012
|
+
const d = Tr(o);
|
|
4013
4013
|
if (d <= 0) {
|
|
4014
4014
|
const u = o.ownerDocument, h = u.body, f = getComputedStyle(h), m = u.compatMode === "CSS1Compat" && parseFloat(f.marginLeft) + parseFloat(f.marginRight) || 0, g = Math.abs(o.clientWidth - h.clientWidth - m);
|
|
4015
4015
|
g <= qn && (i -= g);
|
|
@@ -4022,7 +4022,7 @@ function pl(e, t) {
|
|
|
4022
4022
|
};
|
|
4023
4023
|
}
|
|
4024
4024
|
function gl(e, t) {
|
|
4025
|
-
const r =
|
|
4025
|
+
const r = Oe(e, !0, t === "fixed"), o = r.top + e.clientTop, n = r.left + e.clientLeft, i = oe(e) ? je(e) : Q(1), s = e.clientWidth * i.x, a = e.clientHeight * i.y, l = n * i.x, d = o * i.y;
|
|
4026
4026
|
return {
|
|
4027
4027
|
width: s,
|
|
4028
4028
|
height: a,
|
|
@@ -4036,10 +4036,10 @@ function Un(e, t, r) {
|
|
|
4036
4036
|
o = pl(e, r);
|
|
4037
4037
|
else if (t === "document")
|
|
4038
4038
|
o = fl(ee(e));
|
|
4039
|
-
else if (
|
|
4039
|
+
else if (Z(t))
|
|
4040
4040
|
o = gl(t, r);
|
|
4041
4041
|
else {
|
|
4042
|
-
const n =
|
|
4042
|
+
const n = Go(e);
|
|
4043
4043
|
o = {
|
|
4044
4044
|
x: t.x - n.x,
|
|
4045
4045
|
y: t.y - n.y,
|
|
@@ -4047,21 +4047,21 @@ function Un(e, t, r) {
|
|
|
4047
4047
|
height: t.height
|
|
4048
4048
|
};
|
|
4049
4049
|
}
|
|
4050
|
-
return
|
|
4050
|
+
return rr(o);
|
|
4051
4051
|
}
|
|
4052
4052
|
function Yo(e, t) {
|
|
4053
4053
|
const r = ce(e);
|
|
4054
|
-
return r === t || !
|
|
4054
|
+
return r === t || !Z(r) || tt(r) ? !1 : Y(r).position === "fixed" || Yo(r, t);
|
|
4055
4055
|
}
|
|
4056
4056
|
function yl(e, t) {
|
|
4057
4057
|
const r = t.get(e);
|
|
4058
4058
|
if (r)
|
|
4059
4059
|
return r;
|
|
4060
|
-
let o = bt(e, [], !1).filter((a) =>
|
|
4061
|
-
const i =
|
|
4060
|
+
let o = bt(e, [], !1).filter((a) => Z(a) && ut(a) !== "body"), n = null;
|
|
4061
|
+
const i = Y(e).position === "fixed";
|
|
4062
4062
|
let s = i ? ce(e) : e;
|
|
4063
|
-
for (;
|
|
4064
|
-
const a =
|
|
4063
|
+
for (; Z(s) && !tt(s); ) {
|
|
4064
|
+
const a = Y(s), l = gn(s);
|
|
4065
4065
|
!l && a.position === "fixed" && (n = null), (i ? !l && !n : !l && a.position === "static" && !!n && (n.position === "absolute" || n.position === "fixed") || Et(s) && !l && Yo(e, s)) ? o = o.filter((u) => u !== s) : n = a, s = ce(s);
|
|
4066
4066
|
}
|
|
4067
4067
|
return t.set(e, o), o;
|
|
@@ -4073,11 +4073,11 @@ function vl(e) {
|
|
|
4073
4073
|
rootBoundary: o,
|
|
4074
4074
|
strategy: n
|
|
4075
4075
|
} = e;
|
|
4076
|
-
const s = [...r === "clippingAncestors" ?
|
|
4076
|
+
const s = [...r === "clippingAncestors" ? kr(t) ? [] : yl(t, this._c) : [].concat(r), o], a = Un(t, s[0], n);
|
|
4077
4077
|
let l = a.top, d = a.right, u = a.bottom, h = a.left;
|
|
4078
4078
|
for (let f = 1; f < s.length; f++) {
|
|
4079
4079
|
const m = Un(t, s[f], n);
|
|
4080
|
-
l =
|
|
4080
|
+
l = Ce(m.top, l), d = Qt(m.right, d), u = Qt(m.bottom, u), h = Ce(m.left, h);
|
|
4081
4081
|
}
|
|
4082
4082
|
return {
|
|
4083
4083
|
width: d - h,
|
|
@@ -4090,29 +4090,29 @@ function wl(e) {
|
|
|
4090
4090
|
const {
|
|
4091
4091
|
width: t,
|
|
4092
4092
|
height: r
|
|
4093
|
-
} =
|
|
4093
|
+
} = Xo(e);
|
|
4094
4094
|
return {
|
|
4095
4095
|
width: t,
|
|
4096
4096
|
height: r
|
|
4097
4097
|
};
|
|
4098
4098
|
}
|
|
4099
4099
|
function xl(e, t, r) {
|
|
4100
|
-
const o = oe(t), n = ee(t), i = r === "fixed", s =
|
|
4100
|
+
const o = oe(t), n = ee(t), i = r === "fixed", s = Oe(e, !0, i, t);
|
|
4101
4101
|
let a = {
|
|
4102
4102
|
scrollLeft: 0,
|
|
4103
4103
|
scrollTop: 0
|
|
4104
4104
|
};
|
|
4105
|
-
const l =
|
|
4105
|
+
const l = Q(0);
|
|
4106
4106
|
function d() {
|
|
4107
|
-
l.x =
|
|
4107
|
+
l.x = Tr(n);
|
|
4108
4108
|
}
|
|
4109
4109
|
if (o || !o && !i)
|
|
4110
|
-
if ((ut(t) !== "body" || Et(n)) && (a =
|
|
4111
|
-
const m =
|
|
4110
|
+
if ((ut(t) !== "body" || Et(n)) && (a = Cr(t)), o) {
|
|
4111
|
+
const m = Oe(t, !0, i, t);
|
|
4112
4112
|
l.x = m.x + t.clientLeft, l.y = m.y + t.clientTop;
|
|
4113
4113
|
} else n && d();
|
|
4114
4114
|
i && !o && n && d();
|
|
4115
|
-
const u = n && !o && !i ? Zo(n, a) :
|
|
4115
|
+
const u = n && !o && !i ? Zo(n, a) : Q(0), h = s.left + a.scrollLeft - l.x - u.x, f = s.top + a.scrollTop - l.y - u.y;
|
|
4116
4116
|
return {
|
|
4117
4117
|
x: h,
|
|
4118
4118
|
y: f,
|
|
@@ -4121,10 +4121,10 @@ function xl(e, t, r) {
|
|
|
4121
4121
|
};
|
|
4122
4122
|
}
|
|
4123
4123
|
function Kr(e) {
|
|
4124
|
-
return
|
|
4124
|
+
return Y(e).position === "static";
|
|
4125
4125
|
}
|
|
4126
|
-
function
|
|
4127
|
-
if (!oe(e) ||
|
|
4126
|
+
function Xn(e, t) {
|
|
4127
|
+
if (!oe(e) || Y(e).position === "fixed")
|
|
4128
4128
|
return null;
|
|
4129
4129
|
if (t)
|
|
4130
4130
|
return t(e);
|
|
@@ -4132,22 +4132,22 @@ function Gn(e, t) {
|
|
|
4132
4132
|
return ee(e) === r && (r = r.ownerDocument.body), r;
|
|
4133
4133
|
}
|
|
4134
4134
|
function Jo(e, t) {
|
|
4135
|
-
const r =
|
|
4136
|
-
if (
|
|
4135
|
+
const r = z(e);
|
|
4136
|
+
if (kr(e))
|
|
4137
4137
|
return r;
|
|
4138
4138
|
if (!oe(e)) {
|
|
4139
4139
|
let n = ce(e);
|
|
4140
|
-
for (; n && !
|
|
4141
|
-
if (
|
|
4140
|
+
for (; n && !tt(n); ) {
|
|
4141
|
+
if (Z(n) && !Kr(n))
|
|
4142
4142
|
return n;
|
|
4143
4143
|
n = ce(n);
|
|
4144
4144
|
}
|
|
4145
4145
|
return r;
|
|
4146
4146
|
}
|
|
4147
|
-
let o =
|
|
4147
|
+
let o = Xn(e, t);
|
|
4148
4148
|
for (; o && sl(o) && Kr(o); )
|
|
4149
|
-
o =
|
|
4150
|
-
return o &&
|
|
4149
|
+
o = Xn(o, t);
|
|
4150
|
+
return o && tt(o) && Kr(o) && !gn(o) ? r : o || cl(e) || r;
|
|
4151
4151
|
}
|
|
4152
4152
|
const bl = async function(e) {
|
|
4153
4153
|
const t = this.getOffsetParent || Jo, r = this.getDimensions, o = await r(e.floating);
|
|
@@ -4162,7 +4162,7 @@ const bl = async function(e) {
|
|
|
4162
4162
|
};
|
|
4163
4163
|
};
|
|
4164
4164
|
function kl(e) {
|
|
4165
|
-
return
|
|
4165
|
+
return Y(e).direction === "rtl";
|
|
4166
4166
|
}
|
|
4167
4167
|
const Cl = {
|
|
4168
4168
|
convertOffsetParentRelativeRectToViewportRelativeRect: hl,
|
|
@@ -4173,7 +4173,7 @@ const Cl = {
|
|
|
4173
4173
|
getClientRects: ml,
|
|
4174
4174
|
getDimensions: wl,
|
|
4175
4175
|
getScale: je,
|
|
4176
|
-
isElement:
|
|
4176
|
+
isElement: Z,
|
|
4177
4177
|
isRTL: kl
|
|
4178
4178
|
};
|
|
4179
4179
|
function Qo(e, t) {
|
|
@@ -4196,30 +4196,30 @@ function Tl(e, t) {
|
|
|
4196
4196
|
} = d;
|
|
4197
4197
|
if (a || t(), !f || !m)
|
|
4198
4198
|
return;
|
|
4199
|
-
const g =
|
|
4199
|
+
const g = Ft(h), y = Ft(n.clientWidth - (u + f)), P = Ft(n.clientHeight - (h + m)), v = Ft(u), D = {
|
|
4200
4200
|
rootMargin: -g + "px " + -y + "px " + -P + "px " + -v + "px",
|
|
4201
|
-
threshold:
|
|
4201
|
+
threshold: Ce(0, Qt(1, l)) || 1
|
|
4202
4202
|
};
|
|
4203
|
-
let
|
|
4204
|
-
function
|
|
4205
|
-
const
|
|
4206
|
-
if (
|
|
4207
|
-
if (
|
|
4203
|
+
let $ = !0;
|
|
4204
|
+
function j(F) {
|
|
4205
|
+
const Ae = F[0].intersectionRatio;
|
|
4206
|
+
if (Ae !== l) {
|
|
4207
|
+
if (!$)
|
|
4208
4208
|
return s();
|
|
4209
|
-
|
|
4209
|
+
Ae ? s(!1, Ae) : o = setTimeout(() => {
|
|
4210
4210
|
s(!1, 1e-7);
|
|
4211
4211
|
}, 1e3);
|
|
4212
4212
|
}
|
|
4213
|
-
|
|
4213
|
+
Ae === 1 && !Qo(d, e.getBoundingClientRect()) && s(), $ = !1;
|
|
4214
4214
|
}
|
|
4215
4215
|
try {
|
|
4216
|
-
r = new IntersectionObserver(
|
|
4216
|
+
r = new IntersectionObserver(j, {
|
|
4217
4217
|
...D,
|
|
4218
4218
|
// Handle <iframe>s
|
|
4219
4219
|
root: n.ownerDocument
|
|
4220
4220
|
});
|
|
4221
4221
|
} catch {
|
|
4222
|
-
r = new IntersectionObserver(
|
|
4222
|
+
r = new IntersectionObserver(j, D);
|
|
4223
4223
|
}
|
|
4224
4224
|
r.observe(e);
|
|
4225
4225
|
}
|
|
@@ -4248,10 +4248,10 @@ function Pl(e, t, r, o) {
|
|
|
4248
4248
|
(D = m) == null || D.observe(t);
|
|
4249
4249
|
})), r();
|
|
4250
4250
|
}), d && !l && m.observe(d), t && m.observe(t));
|
|
4251
|
-
let g, y = l ?
|
|
4251
|
+
let g, y = l ? Oe(e) : null;
|
|
4252
4252
|
l && P();
|
|
4253
4253
|
function P() {
|
|
4254
|
-
const v =
|
|
4254
|
+
const v = Oe(e);
|
|
4255
4255
|
y && !Qo(y, v) && r(), y = v, g = requestAnimationFrame(P);
|
|
4256
4256
|
}
|
|
4257
4257
|
return r(), () => {
|
|
@@ -4261,7 +4261,7 @@ function Pl(e, t, r, o) {
|
|
|
4261
4261
|
}), h?.(), (v = m) == null || v.disconnect(), m = null, l && cancelAnimationFrame(g);
|
|
4262
4262
|
};
|
|
4263
4263
|
}
|
|
4264
|
-
const
|
|
4264
|
+
const Sl = ol, _l = il, Ml = tl, Ol = (e, t, r) => {
|
|
4265
4265
|
const o = /* @__PURE__ */ new Map(), n = {
|
|
4266
4266
|
platform: Cl,
|
|
4267
4267
|
...r
|
|
@@ -4274,9 +4274,9 @@ const _l = ol, Sl = il, Ml = tl, Ol = (e, t, r) => {
|
|
|
4274
4274
|
platform: i
|
|
4275
4275
|
});
|
|
4276
4276
|
};
|
|
4277
|
-
let O = null,
|
|
4277
|
+
let O = null, We = null, nr = null, jt = null, Wt = null, vt = null;
|
|
4278
4278
|
function ei() {
|
|
4279
|
-
jt && (clearTimeout(jt), jt = null),
|
|
4279
|
+
jt && (clearTimeout(jt), jt = null), Wt && (clearTimeout(Wt), Wt = null);
|
|
4280
4280
|
}
|
|
4281
4281
|
function El() {
|
|
4282
4282
|
return O || typeof document > "u" || (O = document.createElement("div"), O.className = "ms-tooltip", O.setAttribute("role", "tooltip"), O.dataset.visible = "false", O.style.position = "fixed", O.style.left = "0px", O.style.top = "0px", O.style.transform = "translate3d(0,0,0)", document.body.appendChild(O)), O;
|
|
@@ -4297,12 +4297,12 @@ function Dl(e) {
|
|
|
4297
4297
|
}
|
|
4298
4298
|
return !1;
|
|
4299
4299
|
}
|
|
4300
|
-
async function
|
|
4301
|
-
if (!O || !
|
|
4300
|
+
async function Gn(e) {
|
|
4301
|
+
if (!O || !We)
|
|
4302
4302
|
return;
|
|
4303
|
-
const { x: t, y: r } = await Ol(
|
|
4303
|
+
const { x: t, y: r } = await Ol(We, O, {
|
|
4304
4304
|
placement: e,
|
|
4305
|
-
middleware: [
|
|
4305
|
+
middleware: [Sl(8), Ml(), _l({ padding: 8 })],
|
|
4306
4306
|
strategy: "fixed"
|
|
4307
4307
|
});
|
|
4308
4308
|
O.style.transform = `translate3d(${Math.round(t)}px, ${Math.round(r)}px, 0)`;
|
|
@@ -4313,13 +4313,13 @@ function Zn(e, t, r = "top", o = !1, n) {
|
|
|
4313
4313
|
ei();
|
|
4314
4314
|
const s = async () => {
|
|
4315
4315
|
if (O) {
|
|
4316
|
-
|
|
4316
|
+
We = e, O.textContent = t, O.dataset.placement = r, O.dataset.dark = Dl(n) ? "true" : "false", O.dataset.visible = "false", vt = `tooltip-${Date.now()}-${Math.random().toString(36).slice(2)}`, O.id = vt;
|
|
4317
4317
|
try {
|
|
4318
4318
|
e.setAttribute("aria-describedby", vt);
|
|
4319
4319
|
} catch {
|
|
4320
4320
|
}
|
|
4321
|
-
await
|
|
4322
|
-
|
|
4321
|
+
await Gn(r), O.dataset.visible = "true", nr?.(), nr = Pl(e, O, () => {
|
|
4322
|
+
Gn(r);
|
|
4323
4323
|
});
|
|
4324
4324
|
}
|
|
4325
4325
|
};
|
|
@@ -4331,15 +4331,15 @@ function Yn(e = !1) {
|
|
|
4331
4331
|
ei();
|
|
4332
4332
|
const t = () => {
|
|
4333
4333
|
if (O) {
|
|
4334
|
-
if (O.dataset.visible = "false",
|
|
4334
|
+
if (O.dataset.visible = "false", We && vt)
|
|
4335
4335
|
try {
|
|
4336
|
-
|
|
4336
|
+
We.removeAttribute("aria-describedby");
|
|
4337
4337
|
} catch {
|
|
4338
4338
|
}
|
|
4339
|
-
|
|
4339
|
+
We = null, vt = null, nr?.(), nr = null;
|
|
4340
4340
|
}
|
|
4341
4341
|
};
|
|
4342
|
-
e ? t() :
|
|
4342
|
+
e ? t() : Wt = setTimeout(t, 120);
|
|
4343
4343
|
}
|
|
4344
4344
|
var Rl = Object.defineProperty, Il = Object.getOwnPropertyDescriptor, Dt = (e, t, r, o) => {
|
|
4345
4345
|
for (var n = o > 1 ? void 0 : o ? Il(t, r) : t, i = e.length - 1, s; i >= 0; i--)
|
|
@@ -4360,7 +4360,7 @@ let de = class {
|
|
|
4360
4360
|
this.streamedDelta && n ? this.settleStreamedDelta() : i !== e && (this.settledText = e, this.streamedDelta = ""), t && r?.set(t, e), this.lastStreamRenderVersion = o;
|
|
4361
4361
|
return;
|
|
4362
4362
|
}
|
|
4363
|
-
const l =
|
|
4363
|
+
const l = zo({
|
|
4364
4364
|
nextContent: e,
|
|
4365
4365
|
previousContent: a,
|
|
4366
4366
|
typewriterEnabled: this.typewriterEnabled
|
|
@@ -4396,7 +4396,7 @@ de = Dt([
|
|
|
4396
4396
|
b({
|
|
4397
4397
|
selector: "markstream-angular-text-node",
|
|
4398
4398
|
standalone: !0,
|
|
4399
|
-
imports: [
|
|
4399
|
+
imports: [_],
|
|
4400
4400
|
template: `
|
|
4401
4401
|
<ng-container *ngIf="!centered; else centeredText">
|
|
4402
4402
|
<span class="markstream-angular-text-node">
|
|
@@ -4422,12 +4422,12 @@ de = Dt([
|
|
|
4422
4422
|
changeDetection: k.OnPush
|
|
4423
4423
|
})
|
|
4424
4424
|
], de);
|
|
4425
|
-
var
|
|
4426
|
-
for (var n = o > 1 ? void 0 : o ?
|
|
4425
|
+
var $l = Object.defineProperty, Nl = Object.getOwnPropertyDescriptor, Rt = (e, t, r, o) => {
|
|
4426
|
+
for (var n = o > 1 ? void 0 : o ? Nl(t, r) : t, i = e.length - 1, s; i >= 0; i--)
|
|
4427
4427
|
(s = e[i]) && (n = (o ? s(t, r, n) : s(n)) || n);
|
|
4428
|
-
return o && n &&
|
|
4428
|
+
return o && n && $l(t, r, n), n;
|
|
4429
4429
|
};
|
|
4430
|
-
let
|
|
4430
|
+
let Ee = class {
|
|
4431
4431
|
constructor() {
|
|
4432
4432
|
this.hovering = !1;
|
|
4433
4433
|
}
|
|
@@ -4487,22 +4487,22 @@ let Oe = class {
|
|
|
4487
4487
|
}
|
|
4488
4488
|
};
|
|
4489
4489
|
Rt([
|
|
4490
|
-
|
|
4491
|
-
],
|
|
4490
|
+
B("anchorEl")
|
|
4491
|
+
], Ee.prototype, "anchorRef", 2);
|
|
4492
4492
|
Rt([
|
|
4493
4493
|
c({ required: !0 })
|
|
4494
|
-
],
|
|
4494
|
+
], Ee.prototype, "node", 2);
|
|
4495
4495
|
Rt([
|
|
4496
4496
|
c()
|
|
4497
|
-
],
|
|
4497
|
+
], Ee.prototype, "context", 2);
|
|
4498
4498
|
Rt([
|
|
4499
4499
|
c()
|
|
4500
|
-
],
|
|
4501
|
-
|
|
4500
|
+
], Ee.prototype, "indexKey", 2);
|
|
4501
|
+
Ee = Rt([
|
|
4502
4502
|
b({
|
|
4503
4503
|
selector: "markstream-angular-link-node",
|
|
4504
4504
|
standalone: !0,
|
|
4505
|
-
imports: [
|
|
4505
|
+
imports: [_, p(() => S), p(() => de)],
|
|
4506
4506
|
template: `
|
|
4507
4507
|
<a
|
|
4508
4508
|
*ngIf="!loading; else loadingTpl"
|
|
@@ -4549,7 +4549,7 @@ Oe = Rt([
|
|
|
4549
4549
|
`,
|
|
4550
4550
|
changeDetection: k.OnPush
|
|
4551
4551
|
})
|
|
4552
|
-
],
|
|
4552
|
+
], Ee);
|
|
4553
4553
|
var Al = Object.defineProperty, Ll = Object.getOwnPropertyDescriptor, It = (e, t, r, o) => {
|
|
4554
4554
|
for (var n = o > 1 ? void 0 : o ? Ll(t, r) : t, i = e.length - 1, s; i >= 0; i--)
|
|
4555
4555
|
(s = e[i]) && (n = (o ? s(t, r, n) : s(n)) || n);
|
|
@@ -4579,7 +4579,7 @@ ue = It([
|
|
|
4579
4579
|
b({
|
|
4580
4580
|
selector: "markstream-angular-list-item-node",
|
|
4581
4581
|
standalone: !0,
|
|
4582
|
-
imports: [
|
|
4582
|
+
imports: [_, p(() => S)],
|
|
4583
4583
|
template: `
|
|
4584
4584
|
<li [attr.value]="value ?? null">
|
|
4585
4585
|
<markstream-angular-nested-renderer
|
|
@@ -4592,12 +4592,12 @@ ue = It([
|
|
|
4592
4592
|
changeDetection: k.OnPush
|
|
4593
4593
|
})
|
|
4594
4594
|
], ue);
|
|
4595
|
-
var Hl = Object.defineProperty, Bl = Object.getOwnPropertyDescriptor,
|
|
4595
|
+
var Hl = Object.defineProperty, Bl = Object.getOwnPropertyDescriptor, Pr = (e, t, r, o) => {
|
|
4596
4596
|
for (var n = o > 1 ? void 0 : o ? Bl(t, r) : t, i = e.length - 1, s; i >= 0; i--)
|
|
4597
4597
|
(s = e[i]) && (n = (o ? s(t, r, n) : s(n)) || n);
|
|
4598
4598
|
return o && n && Hl(t, r, n), n;
|
|
4599
4599
|
};
|
|
4600
|
-
let
|
|
4600
|
+
let rt = class {
|
|
4601
4601
|
constructor() {
|
|
4602
4602
|
this.trackByIndex = (e) => this.itemPrefix(e);
|
|
4603
4603
|
}
|
|
@@ -4614,20 +4614,20 @@ let tt = class {
|
|
|
4614
4614
|
return `${this.indexKey || "list"}-${e}`;
|
|
4615
4615
|
}
|
|
4616
4616
|
};
|
|
4617
|
-
|
|
4617
|
+
Pr([
|
|
4618
4618
|
c({ required: !0 })
|
|
4619
|
-
],
|
|
4620
|
-
|
|
4619
|
+
], rt.prototype, "node", 2);
|
|
4620
|
+
Pr([
|
|
4621
4621
|
c()
|
|
4622
|
-
],
|
|
4623
|
-
|
|
4622
|
+
], rt.prototype, "context", 2);
|
|
4623
|
+
Pr([
|
|
4624
4624
|
c()
|
|
4625
|
-
],
|
|
4626
|
-
|
|
4625
|
+
], rt.prototype, "indexKey", 2);
|
|
4626
|
+
rt = Pr([
|
|
4627
4627
|
b({
|
|
4628
4628
|
selector: "markstream-angular-list-node",
|
|
4629
4629
|
standalone: !0,
|
|
4630
|
-
imports: [
|
|
4630
|
+
imports: [_, p(() => ue)],
|
|
4631
4631
|
template: `
|
|
4632
4632
|
<ol *ngIf="ordered; else unorderedList" class="list-node my-5 pl-[calc(13/8*1em)]" [attr.start]="startValue || null">
|
|
4633
4633
|
<markstream-angular-list-item-node
|
|
@@ -4652,8 +4652,8 @@ tt = Tr([
|
|
|
4652
4652
|
`,
|
|
4653
4653
|
changeDetection: k.OnPush
|
|
4654
4654
|
})
|
|
4655
|
-
],
|
|
4656
|
-
let
|
|
4655
|
+
], rt);
|
|
4656
|
+
let xe = null, Vt = !1, Fe = null, wn = ri;
|
|
4657
4657
|
function xn(e) {
|
|
4658
4658
|
const t = e?.default ?? e;
|
|
4659
4659
|
return t && typeof t.renderToString == "function" ? t : null;
|
|
@@ -4679,7 +4679,7 @@ function ri() {
|
|
|
4679
4679
|
})();
|
|
4680
4680
|
}
|
|
4681
4681
|
function Fl() {
|
|
4682
|
-
|
|
4682
|
+
xe = null, Vt = !1, Fe = null;
|
|
4683
4683
|
}
|
|
4684
4684
|
function ni(e) {
|
|
4685
4685
|
wn = e, Fl();
|
|
@@ -4696,43 +4696,43 @@ function oi() {
|
|
|
4696
4696
|
async function bn() {
|
|
4697
4697
|
const e = ti();
|
|
4698
4698
|
if (e)
|
|
4699
|
-
return
|
|
4700
|
-
if (
|
|
4701
|
-
return
|
|
4702
|
-
if (
|
|
4703
|
-
return await
|
|
4704
|
-
if (
|
|
4699
|
+
return xe = e, xe;
|
|
4700
|
+
if (xe)
|
|
4701
|
+
return xe;
|
|
4702
|
+
if (Fe)
|
|
4703
|
+
return await Fe;
|
|
4704
|
+
if (Vt)
|
|
4705
4705
|
return null;
|
|
4706
4706
|
const t = wn;
|
|
4707
4707
|
if (!t)
|
|
4708
|
-
return
|
|
4709
|
-
|
|
4708
|
+
return Vt = !0, null;
|
|
4709
|
+
Fe = (async () => {
|
|
4710
4710
|
try {
|
|
4711
4711
|
const r = await t(), o = xn(r) ?? r;
|
|
4712
4712
|
if (o)
|
|
4713
|
-
return
|
|
4713
|
+
return xe = o, xe;
|
|
4714
4714
|
} catch {
|
|
4715
4715
|
}
|
|
4716
|
-
return
|
|
4716
|
+
return Vt = !0, null;
|
|
4717
4717
|
})();
|
|
4718
4718
|
try {
|
|
4719
|
-
return await
|
|
4719
|
+
return await Fe;
|
|
4720
4720
|
} finally {
|
|
4721
|
-
|
|
4721
|
+
Fe = null;
|
|
4722
4722
|
}
|
|
4723
4723
|
}
|
|
4724
|
-
function
|
|
4724
|
+
function $t(e) {
|
|
4725
4725
|
return e ? e.replace(/·/g, "⋅").replace(/℃/g, "°C") : "";
|
|
4726
4726
|
}
|
|
4727
|
-
const
|
|
4728
|
-
let U = null, ae = null,
|
|
4729
|
-
const
|
|
4730
|
-
let
|
|
4727
|
+
const Nt = "WORKER_BUSY";
|
|
4728
|
+
let U = null, ae = null, Gr = !1;
|
|
4729
|
+
const K = /* @__PURE__ */ new Map(), gt = /* @__PURE__ */ new Map(), Kl = 200, be = /* @__PURE__ */ new Set();
|
|
4730
|
+
let De = 5;
|
|
4731
4731
|
function kt() {
|
|
4732
|
-
if (
|
|
4732
|
+
if (K.size >= De || be.size === 0)
|
|
4733
4733
|
return;
|
|
4734
|
-
const e = Array.from(
|
|
4735
|
-
|
|
4734
|
+
const e = Array.from(be);
|
|
4735
|
+
be.clear();
|
|
4736
4736
|
for (const t of e)
|
|
4737
4737
|
try {
|
|
4738
4738
|
t();
|
|
@@ -4747,31 +4747,31 @@ function ii(e, t, r) {
|
|
|
4747
4747
|
}
|
|
4748
4748
|
function Cd(e) {
|
|
4749
4749
|
U = e, ae = null, U.onmessage = (t) => {
|
|
4750
|
-
const { id: r, html: o, error: n, content: i, displayMode: s } = t.data || {}, a =
|
|
4750
|
+
const { id: r, html: o, error: n, content: i, displayMode: s } = t.data || {}, a = K.get(r);
|
|
4751
4751
|
if (a) {
|
|
4752
|
-
if (
|
|
4752
|
+
if (K.delete(r), clearTimeout(a.timeoutId), kt(), n) {
|
|
4753
4753
|
a.reject(new Error(n));
|
|
4754
4754
|
return;
|
|
4755
4755
|
}
|
|
4756
4756
|
i && ii(String(i), !!s, String(o || "")), a.resolve(String(o || ""));
|
|
4757
4757
|
}
|
|
4758
4758
|
}, U.onerror = (t) => {
|
|
4759
|
-
for (const [, r] of
|
|
4759
|
+
for (const [, r] of K.entries())
|
|
4760
4760
|
clearTimeout(r.timeoutId), r.reject(new Error(`Worker error: ${t.message}`));
|
|
4761
|
-
|
|
4762
|
-
},
|
|
4761
|
+
K.clear(), kt();
|
|
4762
|
+
}, Gr && U.postMessage({ type: "init", debug: !0 });
|
|
4763
4763
|
}
|
|
4764
4764
|
function Td() {
|
|
4765
4765
|
U && U.terminate?.(), U = null, ae = null;
|
|
4766
4766
|
}
|
|
4767
|
-
function
|
|
4767
|
+
function zl() {
|
|
4768
4768
|
return U || (ae = new Error("[markstream-angular:katexWorkerClient] No worker instance set. Please inject a Worker via setKaTeXWorker()."), ae.name = "WorkerInitError", ae.code = "WORKER_INIT_ERROR", null);
|
|
4769
4769
|
}
|
|
4770
4770
|
function Pd(e) {
|
|
4771
|
-
|
|
4771
|
+
Gr = !!e, U && U.postMessage({ type: "init", debug: Gr });
|
|
4772
4772
|
}
|
|
4773
|
-
async function
|
|
4774
|
-
const n =
|
|
4773
|
+
async function jl(e, t = !0, r = 2e3, o) {
|
|
4774
|
+
const n = $t(e);
|
|
4775
4775
|
if (!oi()) {
|
|
4776
4776
|
const l = new Error("KaTeX rendering disabled");
|
|
4777
4777
|
return l.name = "KaTeXDisabled", l.code = "KATEX_DISABLED", Promise.reject(l);
|
|
@@ -4781,12 +4781,12 @@ async function zl(e, t = !0, r = 2e3, o) {
|
|
|
4781
4781
|
const i = `${t ? "d" : "i"}:${n}`, s = gt.get(i);
|
|
4782
4782
|
if (s)
|
|
4783
4783
|
return s;
|
|
4784
|
-
const a =
|
|
4784
|
+
const a = zl();
|
|
4785
4785
|
if (!a)
|
|
4786
4786
|
return Promise.reject(ae);
|
|
4787
|
-
if (
|
|
4787
|
+
if (K.size >= De) {
|
|
4788
4788
|
const l = new Error("Worker busy");
|
|
4789
|
-
return l.name = "WorkerBusy", l.code =
|
|
4789
|
+
return l.name = "WorkerBusy", l.code = Nt, l.busy = !0, l.inFlight = K.size, l.max = De, Promise.reject(l);
|
|
4790
4790
|
}
|
|
4791
4791
|
return new Promise((l, d) => {
|
|
4792
4792
|
if (o?.aborted) {
|
|
@@ -4795,15 +4795,15 @@ async function zl(e, t = !0, r = 2e3, o) {
|
|
|
4795
4795
|
return;
|
|
4796
4796
|
}
|
|
4797
4797
|
const u = Math.random().toString(36).slice(2), h = globalThis.setTimeout(() => {
|
|
4798
|
-
|
|
4798
|
+
K.delete(u), kt();
|
|
4799
4799
|
const m = new Error("Worker render timed out");
|
|
4800
4800
|
m.name = "WorkerTimeout", m.code = "WORKER_TIMEOUT", d(m);
|
|
4801
4801
|
}, r), f = () => {
|
|
4802
|
-
globalThis.clearTimeout(h),
|
|
4802
|
+
globalThis.clearTimeout(h), K.delete(u) && kt();
|
|
4803
4803
|
const m = new Error("Aborted");
|
|
4804
4804
|
m.name = "AbortError", d(m);
|
|
4805
4805
|
};
|
|
4806
|
-
o?.addEventListener("abort", f, { once: !0 }),
|
|
4806
|
+
o?.addEventListener("abort", f, { once: !0 }), K.set(u, {
|
|
4807
4807
|
timeoutId: h,
|
|
4808
4808
|
resolve: (m) => {
|
|
4809
4809
|
o?.removeEventListener("abort", f), l(m);
|
|
@@ -4820,37 +4820,37 @@ async function zl(e, t = !0, r = 2e3, o) {
|
|
|
4820
4820
|
});
|
|
4821
4821
|
}
|
|
4822
4822
|
function kn(e, t = !0, r) {
|
|
4823
|
-
ii(
|
|
4823
|
+
ii($t(e), t, r);
|
|
4824
4824
|
}
|
|
4825
|
-
function
|
|
4825
|
+
function Sd() {
|
|
4826
4826
|
return {
|
|
4827
|
-
inFlight:
|
|
4828
|
-
max:
|
|
4827
|
+
inFlight: K.size,
|
|
4828
|
+
max: De
|
|
4829
4829
|
};
|
|
4830
4830
|
}
|
|
4831
|
-
function
|
|
4832
|
-
Number.isFinite(e) && e > 0 && (
|
|
4831
|
+
function _d(e) {
|
|
4832
|
+
Number.isFinite(e) && e > 0 && (De = Math.floor(e));
|
|
4833
4833
|
}
|
|
4834
4834
|
function Md() {
|
|
4835
|
-
return
|
|
4835
|
+
return K.size >= De;
|
|
4836
4836
|
}
|
|
4837
4837
|
function Wl(e = 2e3, t) {
|
|
4838
|
-
return
|
|
4838
|
+
return K.size < De ? Promise.resolve() : new Promise((r, o) => {
|
|
4839
4839
|
let n = !1, i = null;
|
|
4840
4840
|
const s = () => {
|
|
4841
|
-
n || (n = !0, i && clearTimeout(i),
|
|
4841
|
+
n || (n = !0, i && clearTimeout(i), be.delete(s), r());
|
|
4842
4842
|
};
|
|
4843
|
-
if (
|
|
4843
|
+
if (be.add(s), i = setTimeout(() => {
|
|
4844
4844
|
if (n)
|
|
4845
4845
|
return;
|
|
4846
|
-
n = !0,
|
|
4846
|
+
n = !0, be.delete(s);
|
|
4847
4847
|
const a = new Error("Wait for worker slot timed out");
|
|
4848
4848
|
a.name = "WorkerBusyTimeout", a.code = "WORKER_BUSY_TIMEOUT", o(a);
|
|
4849
4849
|
}, e), queueMicrotask(() => kt()), t) {
|
|
4850
4850
|
const a = () => {
|
|
4851
4851
|
if (n)
|
|
4852
4852
|
return;
|
|
4853
|
-
n = !0, i && clearTimeout(i),
|
|
4853
|
+
n = !0, i && clearTimeout(i), be.delete(s);
|
|
4854
4854
|
const l = new Error("Aborted");
|
|
4855
4855
|
l.name = "AbortError", o(l);
|
|
4856
4856
|
};
|
|
@@ -4858,24 +4858,24 @@ function Wl(e = 2e3, t) {
|
|
|
4858
4858
|
}
|
|
4859
4859
|
});
|
|
4860
4860
|
}
|
|
4861
|
-
const
|
|
4861
|
+
const J = {
|
|
4862
4862
|
timeout: 2e3,
|
|
4863
4863
|
waitTimeout: 1500,
|
|
4864
4864
|
backoffMs: 30,
|
|
4865
4865
|
maxRetries: 1
|
|
4866
4866
|
}, Vl = 8;
|
|
4867
4867
|
function Od(e) {
|
|
4868
|
-
e.timeout != null && (
|
|
4868
|
+
e.timeout != null && (J.timeout = Math.max(0, Math.floor(e.timeout))), e.waitTimeout != null && (J.waitTimeout = Math.max(0, Math.floor(e.waitTimeout))), e.backoffMs != null && (J.backoffMs = Math.max(0, Math.floor(e.backoffMs))), e.maxRetries != null && (J.maxRetries = Math.max(0, Math.floor(e.maxRetries)));
|
|
4869
4869
|
}
|
|
4870
4870
|
function Ed() {
|
|
4871
|
-
return { ...
|
|
4871
|
+
return { ...J };
|
|
4872
4872
|
}
|
|
4873
4873
|
async function Cn(e, t = !0, r = {}) {
|
|
4874
4874
|
if (!oi()) {
|
|
4875
4875
|
const d = new Error("KaTeX rendering disabled");
|
|
4876
4876
|
throw d.name = "KaTeXDisabled", d.code = "KATEX_DISABLED", d;
|
|
4877
4877
|
}
|
|
4878
|
-
const o = r.timeout ??
|
|
4878
|
+
const o = r.timeout ?? J.timeout, n = r.waitTimeout ?? J.waitTimeout, i = r.backoffMs ?? J.backoffMs, s = r.maxRetries ?? J.maxRetries, a = Number.isFinite(s) ? Math.max(0, Math.min(Math.floor(s), Vl)) : J.maxRetries;
|
|
4879
4879
|
let l = 0;
|
|
4880
4880
|
for (; ; ) {
|
|
4881
4881
|
if (r.signal?.aborted) {
|
|
@@ -4883,9 +4883,9 @@ async function Cn(e, t = !0, r = {}) {
|
|
|
4883
4883
|
throw d.name = "AbortError", d;
|
|
4884
4884
|
}
|
|
4885
4885
|
try {
|
|
4886
|
-
return await
|
|
4886
|
+
return await jl(e, t, o, r.signal);
|
|
4887
4887
|
} catch (d) {
|
|
4888
|
-
if (d?.code !==
|
|
4888
|
+
if (d?.code !== Nt || l >= a)
|
|
4889
4889
|
throw d;
|
|
4890
4890
|
l += 1, await Wl(n, r.signal).catch(() => {
|
|
4891
4891
|
}), i > 0 && await new Promise((u) => globalThis.setTimeout(u, i * l));
|
|
@@ -4899,7 +4899,7 @@ var ql = Object.defineProperty, Ul = Object.getOwnPropertyDescriptor, Tn = (e, t
|
|
|
4899
4899
|
};
|
|
4900
4900
|
let Ct = class {
|
|
4901
4901
|
constructor() {
|
|
4902
|
-
this.cdr =
|
|
4902
|
+
this.cdr = X(me), this.rendering = !0, this.destroyed = !1, this.renderVersion = 0, this.hasRenderedOnce = !1;
|
|
4903
4903
|
}
|
|
4904
4904
|
get content() {
|
|
4905
4905
|
return w(this.node?.content || this.node?.markup || this.node?.raw);
|
|
@@ -4917,7 +4917,7 @@ let Ct = class {
|
|
|
4917
4917
|
const e = this.mathRef?.nativeElement;
|
|
4918
4918
|
if (!e)
|
|
4919
4919
|
return;
|
|
4920
|
-
const t =
|
|
4920
|
+
const t = $t(this.content), r = ++this.renderVersion;
|
|
4921
4921
|
if (!t) {
|
|
4922
4922
|
e.textContent = "", this.rendering = !1, this.cdr.markForCheck();
|
|
4923
4923
|
return;
|
|
@@ -4935,7 +4935,7 @@ let Ct = class {
|
|
|
4935
4935
|
});
|
|
4936
4936
|
} catch (r) {
|
|
4937
4937
|
const o = r?.code || r?.name;
|
|
4938
|
-
if (!(o === "WORKER_INIT_ERROR" || r?.fallbackToRenderer) && !(o ===
|
|
4938
|
+
if (!(o === "WORKER_INIT_ERROR" || r?.fallbackToRenderer) && !(o === Nt || o === "WORKER_TIMEOUT"))
|
|
4939
4939
|
return null;
|
|
4940
4940
|
}
|
|
4941
4941
|
const t = await bn();
|
|
@@ -4953,7 +4953,7 @@ let Ct = class {
|
|
|
4953
4953
|
}
|
|
4954
4954
|
};
|
|
4955
4955
|
Tn([
|
|
4956
|
-
|
|
4956
|
+
B("mathRef")
|
|
4957
4957
|
], Ct.prototype, "mathRef", 2);
|
|
4958
4958
|
Tn([
|
|
4959
4959
|
c({ required: !0 })
|
|
@@ -4962,7 +4962,7 @@ Ct = Tn([
|
|
|
4962
4962
|
b({
|
|
4963
4963
|
selector: "markstream-angular-math-block-node",
|
|
4964
4964
|
standalone: !0,
|
|
4965
|
-
imports: [
|
|
4965
|
+
imports: [_],
|
|
4966
4966
|
template: `
|
|
4967
4967
|
<div class="math-block markstream-nested-math-block" data-markstream-katex-managed="1">
|
|
4968
4968
|
<div #mathRef class="markstream-nested-math-block__render" [class.math-rendering]="rendering"></div>
|
|
@@ -4971,14 +4971,14 @@ Ct = Tn([
|
|
|
4971
4971
|
changeDetection: k.OnPush
|
|
4972
4972
|
})
|
|
4973
4973
|
], Ct);
|
|
4974
|
-
var
|
|
4975
|
-
for (var n = o > 1 ? void 0 : o ?
|
|
4974
|
+
var Xl = Object.defineProperty, Gl = Object.getOwnPropertyDescriptor, Pn = (e, t, r, o) => {
|
|
4975
|
+
for (var n = o > 1 ? void 0 : o ? Gl(t, r) : t, i = e.length - 1, s; i >= 0; i--)
|
|
4976
4976
|
(s = e[i]) && (n = (o ? s(t, r, n) : s(n)) || n);
|
|
4977
|
-
return o && n &&
|
|
4977
|
+
return o && n && Xl(t, r, n), n;
|
|
4978
4978
|
};
|
|
4979
4979
|
let Tt = class {
|
|
4980
4980
|
constructor() {
|
|
4981
|
-
this.cdr =
|
|
4981
|
+
this.cdr = X(me), this.loading = !0, this.destroyed = !1, this.renderVersion = 0, this.hasRenderedOnce = !1;
|
|
4982
4982
|
}
|
|
4983
4983
|
get content() {
|
|
4984
4984
|
return w(this.node?.content || this.node?.markup || this.node?.raw);
|
|
@@ -4999,7 +4999,7 @@ let Tt = class {
|
|
|
4999
4999
|
const e = this.mathRef?.nativeElement;
|
|
5000
5000
|
if (!e)
|
|
5001
5001
|
return;
|
|
5002
|
-
const t =
|
|
5002
|
+
const t = $t(this.content), r = ++this.renderVersion;
|
|
5003
5003
|
if (!t) {
|
|
5004
5004
|
e.textContent = "", this.loading = !1, this.cdr.markForCheck();
|
|
5005
5005
|
return;
|
|
@@ -5017,7 +5017,7 @@ let Tt = class {
|
|
|
5017
5017
|
});
|
|
5018
5018
|
} catch (o) {
|
|
5019
5019
|
const n = o?.code || o?.name;
|
|
5020
|
-
if (!(n === "WORKER_INIT_ERROR" || o?.fallbackToRenderer) && !(n ===
|
|
5020
|
+
if (!(n === "WORKER_INIT_ERROR" || o?.fallbackToRenderer) && !(n === Nt || n === "WORKER_TIMEOUT"))
|
|
5021
5021
|
return null;
|
|
5022
5022
|
}
|
|
5023
5023
|
const r = await bn();
|
|
@@ -5035,7 +5035,7 @@ let Tt = class {
|
|
|
5035
5035
|
}
|
|
5036
5036
|
};
|
|
5037
5037
|
Pn([
|
|
5038
|
-
|
|
5038
|
+
B("mathRef")
|
|
5039
5039
|
], Tt.prototype, "mathRef", 2);
|
|
5040
5040
|
Pn([
|
|
5041
5041
|
c({ required: !0 })
|
|
@@ -5044,7 +5044,7 @@ Tt = Pn([
|
|
|
5044
5044
|
b({
|
|
5045
5045
|
selector: "markstream-angular-math-inline-node",
|
|
5046
5046
|
standalone: !0,
|
|
5047
|
-
imports: [
|
|
5047
|
+
imports: [_],
|
|
5048
5048
|
template: `
|
|
5049
5049
|
<span class="math-inline-wrapper markstream-nested-math" data-display="inline" data-markstream-katex-managed="1">
|
|
5050
5050
|
<span #mathRef class="math-inline" [class.math-inline--hidden]="loading"></span>
|
|
@@ -5057,8 +5057,8 @@ Tt = Pn([
|
|
|
5057
5057
|
changeDetection: k.OnPush
|
|
5058
5058
|
})
|
|
5059
5059
|
], Tt);
|
|
5060
|
-
const si = () => import("mermaid"),
|
|
5061
|
-
let q = null, yt = !1, Zr = null,
|
|
5060
|
+
const si = () => import("mermaid"), Sn = "__MARKSTREAM_ANGULAR_MERMAID__";
|
|
5061
|
+
let q = null, yt = !1, Zr = null, Ke = null, _n = si;
|
|
5062
5062
|
function Zl(e) {
|
|
5063
5063
|
const t = String(e?.securityLevel ?? "loose"), r = e?.flowchart?.htmlLabels;
|
|
5064
5064
|
return `${t}|htmlLabels:${r === !1 ? "0" : "1"}`;
|
|
@@ -5094,7 +5094,7 @@ function Jn(e) {
|
|
|
5094
5094
|
} catch {
|
|
5095
5095
|
}
|
|
5096
5096
|
}
|
|
5097
|
-
function
|
|
5097
|
+
function Kt(e, t) {
|
|
5098
5098
|
if (!e || !t)
|
|
5099
5099
|
return;
|
|
5100
5100
|
const r = Zl(t);
|
|
@@ -5107,26 +5107,26 @@ function Ft(e, t) {
|
|
|
5107
5107
|
function Yl() {
|
|
5108
5108
|
try {
|
|
5109
5109
|
const e = globalThis;
|
|
5110
|
-
return ai(e?.[
|
|
5110
|
+
return ai(e?.[Sn] ?? e?.mermaid);
|
|
5111
5111
|
} catch {
|
|
5112
5112
|
return null;
|
|
5113
5113
|
}
|
|
5114
5114
|
}
|
|
5115
5115
|
function Qn(e) {
|
|
5116
5116
|
try {
|
|
5117
|
-
globalThis[
|
|
5117
|
+
globalThis[Sn] = e;
|
|
5118
5118
|
} catch {
|
|
5119
5119
|
}
|
|
5120
5120
|
}
|
|
5121
5121
|
function Jl() {
|
|
5122
|
-
q = null, yt = !1, Zr = null,
|
|
5122
|
+
q = null, yt = !1, Zr = null, Ke = null;
|
|
5123
5123
|
try {
|
|
5124
|
-
delete globalThis[
|
|
5124
|
+
delete globalThis[Sn];
|
|
5125
5125
|
} catch {
|
|
5126
5126
|
}
|
|
5127
5127
|
}
|
|
5128
5128
|
function li(e) {
|
|
5129
|
-
|
|
5129
|
+
_n = e, Jl();
|
|
5130
5130
|
}
|
|
5131
5131
|
function Dd(e) {
|
|
5132
5132
|
li(e ?? si);
|
|
@@ -5135,24 +5135,24 @@ function Rd() {
|
|
|
5135
5135
|
li(null);
|
|
5136
5136
|
}
|
|
5137
5137
|
function Ql() {
|
|
5138
|
-
return typeof
|
|
5138
|
+
return typeof _n == "function";
|
|
5139
5139
|
}
|
|
5140
5140
|
async function ci(e) {
|
|
5141
5141
|
if (q)
|
|
5142
|
-
return
|
|
5142
|
+
return Kt(q, e), q;
|
|
5143
5143
|
const t = Yl();
|
|
5144
5144
|
if (t)
|
|
5145
|
-
return Jn(t), q = t, Qn(q),
|
|
5146
|
-
if (
|
|
5147
|
-
const o = await
|
|
5148
|
-
return o &&
|
|
5145
|
+
return Jn(t), q = t, Qn(q), Kt(q, e), q;
|
|
5146
|
+
if (Ke) {
|
|
5147
|
+
const o = await Ke;
|
|
5148
|
+
return o && Kt(o, e), o;
|
|
5149
5149
|
}
|
|
5150
5150
|
if (yt)
|
|
5151
5151
|
return null;
|
|
5152
|
-
const r =
|
|
5152
|
+
const r = _n;
|
|
5153
5153
|
if (!r)
|
|
5154
5154
|
return yt = !0, null;
|
|
5155
|
-
|
|
5155
|
+
Ke = (async () => {
|
|
5156
5156
|
try {
|
|
5157
5157
|
const o = await r(), n = ai(o);
|
|
5158
5158
|
return n ? (Jn(n), q = n, Qn(q), q) : (yt = !0, null);
|
|
@@ -5161,23 +5161,23 @@ async function ci(e) {
|
|
|
5161
5161
|
}
|
|
5162
5162
|
})();
|
|
5163
5163
|
try {
|
|
5164
|
-
const o = await
|
|
5165
|
-
return o &&
|
|
5164
|
+
const o = await Ke;
|
|
5165
|
+
return o && Kt(o, e), o;
|
|
5166
5166
|
} finally {
|
|
5167
|
-
|
|
5167
|
+
Ke = null;
|
|
5168
5168
|
}
|
|
5169
5169
|
}
|
|
5170
5170
|
let L = null, le = null;
|
|
5171
|
-
const
|
|
5172
|
-
let
|
|
5171
|
+
const N = /* @__PURE__ */ new Map();
|
|
5172
|
+
let or = 5, di = !1;
|
|
5173
5173
|
function Id(e) {
|
|
5174
5174
|
di = !!e;
|
|
5175
5175
|
}
|
|
5176
|
-
function
|
|
5177
|
-
Number.isFinite(e) && e > 0 && (
|
|
5176
|
+
function $d(e) {
|
|
5177
|
+
Number.isFinite(e) && e > 0 && (or = Math.floor(e));
|
|
5178
5178
|
}
|
|
5179
|
-
function
|
|
5180
|
-
return { inFlight:
|
|
5179
|
+
function Nd() {
|
|
5180
|
+
return { inFlight: N.size, max: or };
|
|
5181
5181
|
}
|
|
5182
5182
|
const ec = "WORKER_BUSY", tc = "MERMAID_DISABLED";
|
|
5183
5183
|
function Ad(e) {
|
|
@@ -5186,11 +5186,11 @@ function Ad(e) {
|
|
|
5186
5186
|
L.onmessage = (r) => {
|
|
5187
5187
|
if (L !== t)
|
|
5188
5188
|
return;
|
|
5189
|
-
const { id: o, ok: n, result: i, error: s } = r.data || {}, a =
|
|
5189
|
+
const { id: o, ok: n, result: i, error: s } = r.data || {}, a = N.get(o);
|
|
5190
5190
|
a && (n === !1 || s ? a.reject(new Error(s || "Unknown error")) : a.resolve(i));
|
|
5191
5191
|
}, L.onerror = (r) => {
|
|
5192
5192
|
if (L === t) {
|
|
5193
|
-
if (
|
|
5193
|
+
if (N.size === 0) {
|
|
5194
5194
|
console.debug?.("[markstream-angular:mermaidWorkerClient] Worker error (idle):", r?.message || r);
|
|
5195
5195
|
return;
|
|
5196
5196
|
}
|
|
@@ -5198,28 +5198,28 @@ function Ad(e) {
|
|
|
5198
5198
|
di ? console.error("[markstream-angular:mermaidWorkerClient] Worker error:", r?.message || r) : console.debug?.("[markstream-angular:mermaidWorkerClient] Worker error:", r?.message || r);
|
|
5199
5199
|
} catch {
|
|
5200
5200
|
}
|
|
5201
|
-
for (const [, o] of
|
|
5201
|
+
for (const [, o] of N.entries())
|
|
5202
5202
|
o.reject(new Error(`Worker error: ${r.message}`));
|
|
5203
|
-
|
|
5203
|
+
N.clear();
|
|
5204
5204
|
}
|
|
5205
5205
|
}, L.onmessageerror = (r) => {
|
|
5206
5206
|
if (L === t) {
|
|
5207
|
-
if (
|
|
5207
|
+
if (N.size === 0) {
|
|
5208
5208
|
console.debug?.("[markstream-angular:mermaidWorkerClient] Worker messageerror (idle):", r);
|
|
5209
5209
|
return;
|
|
5210
5210
|
}
|
|
5211
|
-
for (const [, o] of
|
|
5211
|
+
for (const [, o] of N.entries())
|
|
5212
5212
|
o.reject(new Error("Worker messageerror"));
|
|
5213
|
-
|
|
5213
|
+
N.clear();
|
|
5214
5214
|
}
|
|
5215
5215
|
};
|
|
5216
5216
|
}
|
|
5217
5217
|
function Ld() {
|
|
5218
5218
|
if (L)
|
|
5219
5219
|
try {
|
|
5220
|
-
for (const [, e] of
|
|
5220
|
+
for (const [, e] of N.entries())
|
|
5221
5221
|
e.reject(new Error("Worker cleared"));
|
|
5222
|
-
|
|
5222
|
+
N.clear(), L.terminate?.();
|
|
5223
5223
|
} catch {
|
|
5224
5224
|
}
|
|
5225
5225
|
L = null, le = null;
|
|
@@ -5237,17 +5237,17 @@ function ui(e, t, r = 1400) {
|
|
|
5237
5237
|
const o = rc();
|
|
5238
5238
|
if (!o)
|
|
5239
5239
|
return Promise.reject(le);
|
|
5240
|
-
if (
|
|
5240
|
+
if (N.size >= or) {
|
|
5241
5241
|
const n = new Error("Worker busy");
|
|
5242
|
-
return n.name = "WorkerBusy", n.code = ec, n.inFlight =
|
|
5242
|
+
return n.name = "WorkerBusy", n.code = ec, n.inFlight = N.size, n.max = or, Promise.reject(n);
|
|
5243
5243
|
}
|
|
5244
5244
|
return new Promise((n, i) => {
|
|
5245
5245
|
const s = Math.random().toString(36).slice(2);
|
|
5246
5246
|
let a = !1, l = null;
|
|
5247
5247
|
const d = () => {
|
|
5248
|
-
a || (a = !0, l != null && clearTimeout(l),
|
|
5248
|
+
a || (a = !0, l != null && clearTimeout(l), N.delete(s));
|
|
5249
5249
|
};
|
|
5250
|
-
|
|
5250
|
+
N.set(s, {
|
|
5251
5251
|
resolve: (u) => {
|
|
5252
5252
|
d(), n(u);
|
|
5253
5253
|
},
|
|
@@ -5258,12 +5258,12 @@ function ui(e, t, r = 1400) {
|
|
|
5258
5258
|
try {
|
|
5259
5259
|
o.postMessage({ id: s, action: e, payload: t });
|
|
5260
5260
|
} catch (u) {
|
|
5261
|
-
|
|
5261
|
+
N.delete(s), i(u);
|
|
5262
5262
|
return;
|
|
5263
5263
|
}
|
|
5264
5264
|
l = setTimeout(() => {
|
|
5265
5265
|
const u = new Error("Worker call timed out");
|
|
5266
|
-
u.name = "WorkerTimeout", u.code = "WORKER_TIMEOUT",
|
|
5266
|
+
u.name = "WorkerTimeout", u.code = "WORKER_TIMEOUT", N.get(s)?.reject(u);
|
|
5267
5267
|
}, r);
|
|
5268
5268
|
});
|
|
5269
5269
|
}
|
|
@@ -5276,9 +5276,9 @@ async function mi(e, t, r = 1400) {
|
|
|
5276
5276
|
function Hd() {
|
|
5277
5277
|
if (L)
|
|
5278
5278
|
try {
|
|
5279
|
-
for (const [, e] of
|
|
5279
|
+
for (const [, e] of N.entries())
|
|
5280
5280
|
e.reject(new Error("Worker terminated"));
|
|
5281
|
-
|
|
5281
|
+
N.clear(), L.terminate();
|
|
5282
5282
|
} finally {
|
|
5283
5283
|
L = null;
|
|
5284
5284
|
}
|
|
@@ -5297,7 +5297,7 @@ function ic(e) {
|
|
|
5297
5297
|
}
|
|
5298
5298
|
let ne = class {
|
|
5299
5299
|
constructor() {
|
|
5300
|
-
this.cdr =
|
|
5300
|
+
this.cdr = X(me), this.rendering = !1, this.copied = !1, this.collapsed = !1, this.showSource = !1, this.modalOpen = !1, this.zoom = 1, this.svgMarkup = "", this.error = "", this.viewReady = !1, this.destroyed = !1, this.renderToken = 0, this.copyTimer = null;
|
|
5301
5301
|
}
|
|
5302
5302
|
get mergedProps() {
|
|
5303
5303
|
return {
|
|
@@ -5339,16 +5339,16 @@ let ne = class {
|
|
|
5339
5339
|
return mn(this.mergedProps.maxHeight, "500px");
|
|
5340
5340
|
}
|
|
5341
5341
|
get resolvedWorkerTimeout() {
|
|
5342
|
-
return
|
|
5342
|
+
return Be(Number(this.mergedProps.workerTimeoutMs ?? 1400), 200, 1e4);
|
|
5343
5343
|
}
|
|
5344
5344
|
get resolvedParseTimeout() {
|
|
5345
|
-
return
|
|
5345
|
+
return Be(Number(this.mergedProps.parseTimeoutMs ?? 1800), 200, 1e4);
|
|
5346
5346
|
}
|
|
5347
5347
|
get resolvedRenderTimeout() {
|
|
5348
|
-
return
|
|
5348
|
+
return Be(Number(this.mergedProps.renderTimeoutMs ?? 2500), 200, 15e3);
|
|
5349
5349
|
}
|
|
5350
5350
|
get resolvedFullRenderTimeout() {
|
|
5351
|
-
return
|
|
5351
|
+
return Be(Number(this.mergedProps.fullRenderTimeoutMs ?? 4e3), 200, 2e4);
|
|
5352
5352
|
}
|
|
5353
5353
|
get strictMode() {
|
|
5354
5354
|
return this.mergedProps.isStrict === !0;
|
|
@@ -5407,7 +5407,7 @@ let ne = class {
|
|
|
5407
5407
|
}), this.cdr.markForCheck();
|
|
5408
5408
|
}
|
|
5409
5409
|
adjustZoom(e) {
|
|
5410
|
-
this.zoom =
|
|
5410
|
+
this.zoom = Be(Number((this.zoom + e).toFixed(2)), 0.4, 2.5), this.cdr.markForCheck();
|
|
5411
5411
|
}
|
|
5412
5412
|
resetZoom() {
|
|
5413
5413
|
this.zoom = 1, this.cdr.markForCheck();
|
|
@@ -5491,7 +5491,7 @@ let ne = class {
|
|
|
5491
5491
|
}
|
|
5492
5492
|
}
|
|
5493
5493
|
syncSvgHosts() {
|
|
5494
|
-
|
|
5494
|
+
ke(this.previewHost?.nativeElement, this.svgMarkup), this.modalOpen ? ke(this.modalHost?.nativeElement, this.svgMarkup) : ke(this.modalHost?.nativeElement, "");
|
|
5495
5495
|
}
|
|
5496
5496
|
scheduleHostSync() {
|
|
5497
5497
|
if (typeof window < "u") {
|
|
@@ -5646,10 +5646,10 @@ ${e}`;
|
|
|
5646
5646
|
}
|
|
5647
5647
|
};
|
|
5648
5648
|
Ne([
|
|
5649
|
-
|
|
5649
|
+
B("previewHost")
|
|
5650
5650
|
], ne.prototype, "previewHost", 2);
|
|
5651
5651
|
Ne([
|
|
5652
|
-
|
|
5652
|
+
B("modalHost")
|
|
5653
5653
|
], ne.prototype, "modalHost", 2);
|
|
5654
5654
|
Ne([
|
|
5655
5655
|
c({ required: !0 })
|
|
@@ -5667,7 +5667,7 @@ ne = Ne([
|
|
|
5667
5667
|
b({
|
|
5668
5668
|
selector: "markstream-angular-mermaid-block-node",
|
|
5669
5669
|
standalone: !0,
|
|
5670
|
-
imports: [
|
|
5670
|
+
imports: [_],
|
|
5671
5671
|
template: `
|
|
5672
5672
|
<div
|
|
5673
5673
|
class="mermaid-block"
|
|
@@ -5807,12 +5807,12 @@ ne = Ne([
|
|
|
5807
5807
|
changeDetection: k.OnPush
|
|
5808
5808
|
})
|
|
5809
5809
|
], ne);
|
|
5810
|
-
var sc = Object.defineProperty, ac = Object.getOwnPropertyDescriptor,
|
|
5810
|
+
var sc = Object.defineProperty, ac = Object.getOwnPropertyDescriptor, Sr = (e, t, r, o) => {
|
|
5811
5811
|
for (var n = o > 1 ? void 0 : o ? ac(t, r) : t, i = e.length - 1, s; i >= 0; i--)
|
|
5812
5812
|
(s = e[i]) && (n = (o ? s(t, r, n) : s(n)) || n);
|
|
5813
5813
|
return o && n && sc(t, r, n), n;
|
|
5814
5814
|
};
|
|
5815
|
-
let
|
|
5815
|
+
let nt = class {
|
|
5816
5816
|
constructor() {
|
|
5817
5817
|
this.segments = [], this.trackByIndex = (e) => `${this.indexKey || "paragraph"}-${e}`, this.trackByChildIndex = (e) => e;
|
|
5818
5818
|
}
|
|
@@ -5838,28 +5838,28 @@ let rt = class {
|
|
|
5838
5838
|
return `${this.segmentPrefix(e)}-${t}`;
|
|
5839
5839
|
}
|
|
5840
5840
|
isWhitespaceText(e) {
|
|
5841
|
-
return
|
|
5841
|
+
return ze(e);
|
|
5842
5842
|
}
|
|
5843
5843
|
getTextContent(e) {
|
|
5844
5844
|
return w(e?.content);
|
|
5845
5845
|
}
|
|
5846
5846
|
};
|
|
5847
|
-
|
|
5847
|
+
Sr([
|
|
5848
5848
|
c({ required: !0 })
|
|
5849
|
-
],
|
|
5850
|
-
|
|
5849
|
+
], nt.prototype, "node", 2);
|
|
5850
|
+
Sr([
|
|
5851
5851
|
c()
|
|
5852
|
-
],
|
|
5853
|
-
|
|
5852
|
+
], nt.prototype, "context", 2);
|
|
5853
|
+
Sr([
|
|
5854
5854
|
c()
|
|
5855
|
-
],
|
|
5856
|
-
|
|
5855
|
+
], nt.prototype, "indexKey", 2);
|
|
5856
|
+
nt = Sr([
|
|
5857
5857
|
b({
|
|
5858
5858
|
selector: "markstream-angular-paragraph-node",
|
|
5859
5859
|
standalone: !0,
|
|
5860
5860
|
imports: [
|
|
5861
|
-
|
|
5862
|
-
p(() =>
|
|
5861
|
+
_,
|
|
5862
|
+
p(() => S),
|
|
5863
5863
|
p(() => he)
|
|
5864
5864
|
],
|
|
5865
5865
|
template: `
|
|
@@ -5911,32 +5911,32 @@ rt = Pr([
|
|
|
5911
5911
|
`,
|
|
5912
5912
|
changeDetection: k.OnPush
|
|
5913
5913
|
})
|
|
5914
|
-
],
|
|
5914
|
+
], nt);
|
|
5915
5915
|
var lc = Object.defineProperty, cc = Object.getOwnPropertyDescriptor, fi = (e, t, r, o) => {
|
|
5916
5916
|
for (var n = o > 1 ? void 0 : o ? cc(t, r) : t, i = e.length - 1, s; i >= 0; i--)
|
|
5917
5917
|
(s = e[i]) && (n = (o ? s(t, r, n) : s(n)) || n);
|
|
5918
5918
|
return o && n && lc(t, r, n), n;
|
|
5919
5919
|
};
|
|
5920
|
-
let
|
|
5920
|
+
let ir = class {
|
|
5921
5921
|
get id() {
|
|
5922
5922
|
return w(this.node?.id);
|
|
5923
5923
|
}
|
|
5924
5924
|
};
|
|
5925
5925
|
fi([
|
|
5926
5926
|
c({ required: !0 })
|
|
5927
|
-
],
|
|
5928
|
-
|
|
5927
|
+
], ir.prototype, "node", 2);
|
|
5928
|
+
ir = fi([
|
|
5929
5929
|
b({
|
|
5930
5930
|
selector: "markstream-angular-reference-node",
|
|
5931
5931
|
standalone: !0,
|
|
5932
5932
|
template: '<span class="markstream-nested-reference">{{ id }}</span>',
|
|
5933
5933
|
changeDetection: k.OnPush
|
|
5934
5934
|
})
|
|
5935
|
-
],
|
|
5935
|
+
], ir);
|
|
5936
5936
|
function pi(e, t) {
|
|
5937
5937
|
if (t?.renderCodeBlocksAsPre)
|
|
5938
5938
|
return "pre";
|
|
5939
|
-
const r =
|
|
5939
|
+
const r = Gi(e);
|
|
5940
5940
|
return r === "d2" || r === "d2lang" ? "d2" : r === "infographic" ? "infographic" : r === "mermaid" ? "mermaid" : "code";
|
|
5941
5941
|
}
|
|
5942
5942
|
function Mn(e) {
|
|
@@ -5970,7 +5970,7 @@ var mc = Object.defineProperty, fc = Object.getOwnPropertyDescriptor, _r = (e, t
|
|
|
5970
5970
|
(s = e[i]) && (n = (o ? s(t, r, n) : s(n)) || n);
|
|
5971
5971
|
return o && n && mc(t, r, n), n;
|
|
5972
5972
|
};
|
|
5973
|
-
let
|
|
5973
|
+
let ot = class {
|
|
5974
5974
|
get children() {
|
|
5975
5975
|
return E(this.node?.children);
|
|
5976
5976
|
}
|
|
@@ -5980,18 +5980,18 @@ let nt = class {
|
|
|
5980
5980
|
};
|
|
5981
5981
|
_r([
|
|
5982
5982
|
c({ required: !0 })
|
|
5983
|
-
],
|
|
5983
|
+
], ot.prototype, "node", 2);
|
|
5984
5984
|
_r([
|
|
5985
5985
|
c()
|
|
5986
|
-
],
|
|
5986
|
+
], ot.prototype, "context", 2);
|
|
5987
5987
|
_r([
|
|
5988
5988
|
c()
|
|
5989
|
-
],
|
|
5990
|
-
|
|
5989
|
+
], ot.prototype, "indexKey", 2);
|
|
5990
|
+
ot = _r([
|
|
5991
5991
|
b({
|
|
5992
5992
|
selector: "markstream-angular-strikethrough-node",
|
|
5993
5993
|
standalone: !0,
|
|
5994
|
-
imports: [
|
|
5994
|
+
imports: [_, p(() => S)],
|
|
5995
5995
|
template: `
|
|
5996
5996
|
<del>
|
|
5997
5997
|
<markstream-angular-nested-renderer
|
|
@@ -6003,13 +6003,13 @@ nt = _r([
|
|
|
6003
6003
|
`,
|
|
6004
6004
|
changeDetection: k.OnPush
|
|
6005
6005
|
})
|
|
6006
|
-
],
|
|
6007
|
-
var pc = Object.defineProperty, gc = Object.getOwnPropertyDescriptor,
|
|
6006
|
+
], ot);
|
|
6007
|
+
var pc = Object.defineProperty, gc = Object.getOwnPropertyDescriptor, Mr = (e, t, r, o) => {
|
|
6008
6008
|
for (var n = o > 1 ? void 0 : o ? gc(t, r) : t, i = e.length - 1, s; i >= 0; i--)
|
|
6009
6009
|
(s = e[i]) && (n = (o ? s(t, r, n) : s(n)) || n);
|
|
6010
6010
|
return o && n && pc(t, r, n), n;
|
|
6011
6011
|
};
|
|
6012
|
-
let
|
|
6012
|
+
let it = class {
|
|
6013
6013
|
get children() {
|
|
6014
6014
|
return E(this.node?.children);
|
|
6015
6015
|
}
|
|
@@ -6017,20 +6017,20 @@ let ot = class {
|
|
|
6017
6017
|
return `${this.indexKey || "strong"}-strong`;
|
|
6018
6018
|
}
|
|
6019
6019
|
};
|
|
6020
|
-
|
|
6020
|
+
Mr([
|
|
6021
6021
|
c({ required: !0 })
|
|
6022
|
-
],
|
|
6023
|
-
|
|
6022
|
+
], it.prototype, "node", 2);
|
|
6023
|
+
Mr([
|
|
6024
6024
|
c()
|
|
6025
|
-
],
|
|
6026
|
-
|
|
6025
|
+
], it.prototype, "context", 2);
|
|
6026
|
+
Mr([
|
|
6027
6027
|
c()
|
|
6028
|
-
],
|
|
6029
|
-
|
|
6028
|
+
], it.prototype, "indexKey", 2);
|
|
6029
|
+
it = Mr([
|
|
6030
6030
|
b({
|
|
6031
6031
|
selector: "markstream-angular-strong-node",
|
|
6032
6032
|
standalone: !0,
|
|
6033
|
-
imports: [
|
|
6033
|
+
imports: [_, p(() => S)],
|
|
6034
6034
|
template: `
|
|
6035
6035
|
<strong>
|
|
6036
6036
|
<markstream-angular-nested-renderer
|
|
@@ -6042,13 +6042,13 @@ ot = Sr([
|
|
|
6042
6042
|
`,
|
|
6043
6043
|
changeDetection: k.OnPush
|
|
6044
6044
|
})
|
|
6045
|
-
],
|
|
6046
|
-
var yc = Object.defineProperty, vc = Object.getOwnPropertyDescriptor,
|
|
6045
|
+
], it);
|
|
6046
|
+
var yc = Object.defineProperty, vc = Object.getOwnPropertyDescriptor, Or = (e, t, r, o) => {
|
|
6047
6047
|
for (var n = o > 1 ? void 0 : o ? vc(t, r) : t, i = e.length - 1, s; i >= 0; i--)
|
|
6048
6048
|
(s = e[i]) && (n = (o ? s(t, r, n) : s(n)) || n);
|
|
6049
6049
|
return o && n && yc(t, r, n), n;
|
|
6050
6050
|
};
|
|
6051
|
-
let
|
|
6051
|
+
let st = class {
|
|
6052
6052
|
get children() {
|
|
6053
6053
|
return E(this.node?.children);
|
|
6054
6054
|
}
|
|
@@ -6056,20 +6056,20 @@ let it = class {
|
|
|
6056
6056
|
return `${this.indexKey || "subscript"}-sub`;
|
|
6057
6057
|
}
|
|
6058
6058
|
};
|
|
6059
|
-
|
|
6059
|
+
Or([
|
|
6060
6060
|
c({ required: !0 })
|
|
6061
|
-
],
|
|
6062
|
-
|
|
6061
|
+
], st.prototype, "node", 2);
|
|
6062
|
+
Or([
|
|
6063
6063
|
c()
|
|
6064
|
-
],
|
|
6065
|
-
|
|
6064
|
+
], st.prototype, "context", 2);
|
|
6065
|
+
Or([
|
|
6066
6066
|
c()
|
|
6067
|
-
],
|
|
6068
|
-
|
|
6067
|
+
], st.prototype, "indexKey", 2);
|
|
6068
|
+
st = Or([
|
|
6069
6069
|
b({
|
|
6070
6070
|
selector: "markstream-angular-subscript-node",
|
|
6071
6071
|
standalone: !0,
|
|
6072
|
-
imports: [
|
|
6072
|
+
imports: [_, p(() => S)],
|
|
6073
6073
|
template: `
|
|
6074
6074
|
<sub>
|
|
6075
6075
|
<markstream-angular-nested-renderer
|
|
@@ -6081,13 +6081,13 @@ it = Mr([
|
|
|
6081
6081
|
`,
|
|
6082
6082
|
changeDetection: k.OnPush
|
|
6083
6083
|
})
|
|
6084
|
-
],
|
|
6085
|
-
var wc = Object.defineProperty, xc = Object.getOwnPropertyDescriptor,
|
|
6084
|
+
], st);
|
|
6085
|
+
var wc = Object.defineProperty, xc = Object.getOwnPropertyDescriptor, Er = (e, t, r, o) => {
|
|
6086
6086
|
for (var n = o > 1 ? void 0 : o ? xc(t, r) : t, i = e.length - 1, s; i >= 0; i--)
|
|
6087
6087
|
(s = e[i]) && (n = (o ? s(t, r, n) : s(n)) || n);
|
|
6088
6088
|
return o && n && wc(t, r, n), n;
|
|
6089
6089
|
};
|
|
6090
|
-
let
|
|
6090
|
+
let at = class {
|
|
6091
6091
|
get children() {
|
|
6092
6092
|
return E(this.node?.children);
|
|
6093
6093
|
}
|
|
@@ -6095,20 +6095,20 @@ let st = class {
|
|
|
6095
6095
|
return `${this.indexKey || "superscript"}-sup`;
|
|
6096
6096
|
}
|
|
6097
6097
|
};
|
|
6098
|
-
|
|
6098
|
+
Er([
|
|
6099
6099
|
c({ required: !0 })
|
|
6100
|
-
],
|
|
6101
|
-
|
|
6100
|
+
], at.prototype, "node", 2);
|
|
6101
|
+
Er([
|
|
6102
6102
|
c()
|
|
6103
|
-
],
|
|
6104
|
-
|
|
6103
|
+
], at.prototype, "context", 2);
|
|
6104
|
+
Er([
|
|
6105
6105
|
c()
|
|
6106
|
-
],
|
|
6107
|
-
|
|
6106
|
+
], at.prototype, "indexKey", 2);
|
|
6107
|
+
at = Er([
|
|
6108
6108
|
b({
|
|
6109
6109
|
selector: "markstream-angular-superscript-node",
|
|
6110
6110
|
standalone: !0,
|
|
6111
|
-
imports: [
|
|
6111
|
+
imports: [_, p(() => S)],
|
|
6112
6112
|
template: `
|
|
6113
6113
|
<sup>
|
|
6114
6114
|
<markstream-angular-nested-renderer
|
|
@@ -6120,20 +6120,42 @@ st = Or([
|
|
|
6120
6120
|
`,
|
|
6121
6121
|
changeDetection: k.OnPush
|
|
6122
6122
|
})
|
|
6123
|
-
],
|
|
6124
|
-
var bc = Object.defineProperty, kc = Object.getOwnPropertyDescriptor,
|
|
6123
|
+
], at);
|
|
6124
|
+
var bc = Object.defineProperty, kc = Object.getOwnPropertyDescriptor, At = (e, t, r, o) => {
|
|
6125
6125
|
for (var n = o > 1 ? void 0 : o ? kc(t, r) : t, i = e.length - 1, s; i >= 0; i--)
|
|
6126
6126
|
(s = e[i]) && (n = (o ? s(t, r, n) : s(n)) || n);
|
|
6127
6127
|
return o && n && bc(t, r, n), n;
|
|
6128
6128
|
};
|
|
6129
|
-
let
|
|
6129
|
+
let Re = class {
|
|
6130
6130
|
constructor() {
|
|
6131
|
-
this.trackRow = (e) => `${this.indexKey || "table"}-row-${e}`, this.trackCell = (e) => e
|
|
6131
|
+
this.cdr = X(me), this.currentHeaderCellCount = 0, this.minColumnWidth = 48, this.resizeState = null, this.columnWidths = [], this.trackRow = (e) => `${this.indexKey || "table"}-row-${e}`, this.trackCell = (e) => e, this.onColumnResizeMove = (e) => {
|
|
6132
|
+
if (!this.resizeState)
|
|
6133
|
+
return;
|
|
6134
|
+
e.preventDefault();
|
|
6135
|
+
const t = this.resizeState.startWidth + this.resizeState.nextStartWidth, r = Math.min(this.minColumnWidth, Math.floor(t / 2)), o = Math.max(
|
|
6136
|
+
r,
|
|
6137
|
+
Math.min(t - r, Math.round(this.resizeState.startWidth + e.clientX - this.resizeState.startX))
|
|
6138
|
+
), n = [...this.resizeState.widths];
|
|
6139
|
+
n[this.resizeState.index] = o, n[this.resizeState.index + 1] = t - o, this.columnWidths = n, this.cdr.markForCheck();
|
|
6140
|
+
}, this.stopColumnResize = () => {
|
|
6141
|
+
this.resizeState && (window.removeEventListener("pointermove", this.onColumnResizeMove), window.removeEventListener("pointerup", this.stopColumnResize), window.removeEventListener("pointercancel", this.stopColumnResize), this.resizeState = null);
|
|
6142
|
+
};
|
|
6143
|
+
}
|
|
6144
|
+
set node(e) {
|
|
6145
|
+
this._node = e;
|
|
6146
|
+
const t = this.headerCells.length;
|
|
6147
|
+
t !== this.currentHeaderCellCount && (this.stopColumnResize(), this.columnWidths = [], this.currentHeaderCellCount = t);
|
|
6148
|
+
}
|
|
6149
|
+
get node() {
|
|
6150
|
+
return this._node;
|
|
6132
6151
|
}
|
|
6133
6152
|
get headerRow() {
|
|
6134
6153
|
const e = this.node?.header;
|
|
6135
6154
|
return e && typeof e == "object" ? e : null;
|
|
6136
6155
|
}
|
|
6156
|
+
get headerCells() {
|
|
6157
|
+
return this.headerRow ? this.cellsFor(this.headerRow) : [];
|
|
6158
|
+
}
|
|
6137
6159
|
get rows() {
|
|
6138
6160
|
return E(this.node?.rows);
|
|
6139
6161
|
}
|
|
@@ -6149,32 +6171,67 @@ let at = class {
|
|
|
6149
6171
|
cellPrefix(e, t) {
|
|
6150
6172
|
return `${this.indexKey || "table"}-${e}-${t}`;
|
|
6151
6173
|
}
|
|
6174
|
+
startColumnResize(e, t) {
|
|
6175
|
+
if (t.button !== 0)
|
|
6176
|
+
return;
|
|
6177
|
+
const r = this.measureHeaderWidths(), o = r[e], n = r[e + 1];
|
|
6178
|
+
!o || !n || (t.preventDefault(), this.stopColumnResize(), this.resizeState = {
|
|
6179
|
+
index: e,
|
|
6180
|
+
startX: t.clientX,
|
|
6181
|
+
startWidth: o,
|
|
6182
|
+
nextStartWidth: n,
|
|
6183
|
+
widths: r
|
|
6184
|
+
}, this.columnWidths = r, this.cdr.markForCheck(), window.addEventListener("pointermove", this.onColumnResizeMove), window.addEventListener("pointerup", this.stopColumnResize), window.addEventListener("pointercancel", this.stopColumnResize));
|
|
6185
|
+
}
|
|
6186
|
+
ngOnDestroy() {
|
|
6187
|
+
this.stopColumnResize();
|
|
6188
|
+
}
|
|
6189
|
+
measureHeaderWidths() {
|
|
6190
|
+
const e = this.tableElement?.nativeElement.querySelectorAll("thead th");
|
|
6191
|
+
return Array.from(e ?? [], (t) => Math.round(t.getBoundingClientRect().width));
|
|
6192
|
+
}
|
|
6152
6193
|
};
|
|
6153
|
-
|
|
6194
|
+
At([
|
|
6195
|
+
B("tableElement")
|
|
6196
|
+
], Re.prototype, "tableElement", 2);
|
|
6197
|
+
At([
|
|
6154
6198
|
c({ required: !0 })
|
|
6155
|
-
],
|
|
6156
|
-
|
|
6199
|
+
], Re.prototype, "node", 1);
|
|
6200
|
+
At([
|
|
6157
6201
|
c()
|
|
6158
|
-
],
|
|
6159
|
-
|
|
6202
|
+
], Re.prototype, "context", 2);
|
|
6203
|
+
At([
|
|
6160
6204
|
c()
|
|
6161
|
-
],
|
|
6162
|
-
|
|
6205
|
+
], Re.prototype, "indexKey", 2);
|
|
6206
|
+
Re = At([
|
|
6163
6207
|
b({
|
|
6164
6208
|
selector: "markstream-angular-table-node",
|
|
6165
6209
|
standalone: !0,
|
|
6166
|
-
imports: [
|
|
6210
|
+
imports: [_, p(() => S)],
|
|
6167
6211
|
template: `
|
|
6168
|
-
<table>
|
|
6212
|
+
<table #tableElement>
|
|
6213
|
+
<colgroup *ngIf="columnWidths.length > 0">
|
|
6214
|
+
<col
|
|
6215
|
+
*ngFor="let cell of headerCells; let cellIndex = index; trackBy: trackCell"
|
|
6216
|
+
[style.width.px]="columnWidths[cellIndex] || null"
|
|
6217
|
+
>
|
|
6218
|
+
</colgroup>
|
|
6169
6219
|
<thead *ngIf="headerRow">
|
|
6170
6220
|
<tr>
|
|
6171
|
-
<ng-container *ngFor="let cell of
|
|
6221
|
+
<ng-container *ngFor="let cell of headerCells; let cellIndex = index; trackBy: trackCell">
|
|
6172
6222
|
<th [style.text-align]="alignment(cell) || null">
|
|
6173
6223
|
<markstream-angular-nested-renderer
|
|
6174
6224
|
[nodes]="childrenFor(cell)"
|
|
6175
6225
|
[context]="context"
|
|
6176
6226
|
[indexPrefix]="cellPrefix('head', cellIndex)"
|
|
6177
6227
|
/>
|
|
6228
|
+
<button
|
|
6229
|
+
*ngIf="cellIndex < headerCells.length - 1"
|
|
6230
|
+
type="button"
|
|
6231
|
+
class="table-node__resize-handle"
|
|
6232
|
+
[attr.aria-label]="'Resize columns ' + (cellIndex + 1) + ' and ' + (cellIndex + 2)"
|
|
6233
|
+
(pointerdown)="startColumnResize(cellIndex, $event)"
|
|
6234
|
+
></button>
|
|
6178
6235
|
</th>
|
|
6179
6236
|
</ng-container>
|
|
6180
6237
|
</tr>
|
|
@@ -6196,7 +6253,7 @@ at = Er([
|
|
|
6196
6253
|
`,
|
|
6197
6254
|
changeDetection: k.OnPush
|
|
6198
6255
|
})
|
|
6199
|
-
],
|
|
6256
|
+
], Re);
|
|
6200
6257
|
var Cc = Object.getOwnPropertyDescriptor, Tc = (e, t, r, o) => {
|
|
6201
6258
|
for (var n = o > 1 ? void 0 : o ? Cc(t, r) : t, i = e.length - 1, s; i >= 0; i--)
|
|
6202
6259
|
(s = e[i]) && (n = s(n) || n);
|
|
@@ -6212,8 +6269,8 @@ Yr = Tc([
|
|
|
6212
6269
|
changeDetection: k.OnPush
|
|
6213
6270
|
})
|
|
6214
6271
|
], Yr);
|
|
6215
|
-
var Pc = Object.defineProperty,
|
|
6216
|
-
for (var n = o > 1 ? void 0 : o ?
|
|
6272
|
+
var Pc = Object.defineProperty, Sc = Object.getOwnPropertyDescriptor, Dr = (e, t, r, o) => {
|
|
6273
|
+
for (var n = o > 1 ? void 0 : o ? Sc(t, r) : t, i = e.length - 1, s; i >= 0; i--)
|
|
6217
6274
|
(s = e[i]) && (n = (o ? s(t, r, n) : s(n)) || n);
|
|
6218
6275
|
return o && n && Pc(t, r, n), n;
|
|
6219
6276
|
};
|
|
@@ -6238,7 +6295,7 @@ lt = Dr([
|
|
|
6238
6295
|
b({
|
|
6239
6296
|
selector: "markstream-angular-vmr-container-node",
|
|
6240
6297
|
standalone: !0,
|
|
6241
|
-
imports: [
|
|
6298
|
+
imports: [_, p(() => S)],
|
|
6242
6299
|
template: `
|
|
6243
6300
|
<div class="markstream-angular-vmr-container">
|
|
6244
6301
|
<markstream-angular-nested-renderer
|
|
@@ -6251,10 +6308,10 @@ lt = Dr([
|
|
|
6251
6308
|
changeDetection: k.OnPush
|
|
6252
6309
|
})
|
|
6253
6310
|
], lt);
|
|
6254
|
-
var
|
|
6311
|
+
var _c = Object.defineProperty, Mc = Object.getOwnPropertyDescriptor, Rr = (e, t, r, o) => {
|
|
6255
6312
|
for (var n = o > 1 ? void 0 : o ? Mc(t, r) : t, i = e.length - 1, s; i >= 0; i--)
|
|
6256
6313
|
(s = e[i]) && (n = (o ? s(t, r, n) : s(n)) || n);
|
|
6257
|
-
return o && n &&
|
|
6314
|
+
return o && n && _c(t, r, n), n;
|
|
6258
6315
|
};
|
|
6259
6316
|
let he = class {
|
|
6260
6317
|
get resolvedType() {
|
|
@@ -6301,7 +6358,7 @@ let he = class {
|
|
|
6301
6358
|
if (e !== "html_block" && e !== "html_inline")
|
|
6302
6359
|
return !1;
|
|
6303
6360
|
const t = this.htmlTag;
|
|
6304
|
-
return !(!t || (this.context?.customHtmlTags ?? []).some((n) => String(n).toLowerCase() === t) ||
|
|
6361
|
+
return !(!t || (this.context?.customHtmlTags ?? []).some((n) => String(n).toLowerCase() === t) || Si.has(t) || _i(this.node?.content ?? this.node?.raw, t));
|
|
6305
6362
|
}
|
|
6306
6363
|
/**
|
|
6307
6364
|
* Returns a text node for incomplete non-whitelisted, non-standard HTML tags.
|
|
@@ -6338,43 +6395,43 @@ he = Rr([
|
|
|
6338
6395
|
selector: "markstream-angular-node-outlet",
|
|
6339
6396
|
standalone: !0,
|
|
6340
6397
|
imports: [
|
|
6341
|
-
|
|
6398
|
+
_,
|
|
6342
6399
|
p(() => ct),
|
|
6343
|
-
p(() => We),
|
|
6344
|
-
p(() => Ut),
|
|
6345
|
-
p(() => Te),
|
|
6346
|
-
p(() => Pe),
|
|
6347
6400
|
p(() => Ve),
|
|
6401
|
+
p(() => Xt),
|
|
6402
|
+
p(() => Pe),
|
|
6403
|
+
p(() => Se),
|
|
6404
|
+
p(() => qe),
|
|
6348
6405
|
p(() => te),
|
|
6349
6406
|
p(() => Gt),
|
|
6350
|
-
p(() => qe),
|
|
6351
6407
|
p(() => Ue),
|
|
6352
|
-
p(() =>
|
|
6353
|
-
p(() => Ge),
|
|
6408
|
+
p(() => Xe),
|
|
6354
6409
|
p(() => Zt),
|
|
6410
|
+
p(() => Ge),
|
|
6411
|
+
p(() => Yt),
|
|
6355
6412
|
p(() => Vr),
|
|
6356
|
-
p(() => Xe),
|
|
6357
6413
|
p(() => Ze),
|
|
6358
6414
|
p(() => Ye),
|
|
6359
6415
|
p(() => Je),
|
|
6360
|
-
p(() =>
|
|
6416
|
+
p(() => Qe),
|
|
6417
|
+
p(() => Jt),
|
|
6361
6418
|
p(() => re),
|
|
6362
6419
|
p(() => _e),
|
|
6363
|
-
p(() =>
|
|
6364
|
-
p(() =>
|
|
6420
|
+
p(() => et),
|
|
6421
|
+
p(() => Ee),
|
|
6365
6422
|
p(() => ue),
|
|
6366
|
-
p(() =>
|
|
6423
|
+
p(() => rt),
|
|
6367
6424
|
p(() => Ct),
|
|
6368
6425
|
p(() => Tt),
|
|
6369
6426
|
p(() => ne),
|
|
6370
|
-
p(() => rt),
|
|
6371
|
-
p(() => wt),
|
|
6372
|
-
p(() => or),
|
|
6373
6427
|
p(() => nt),
|
|
6428
|
+
p(() => wt),
|
|
6429
|
+
p(() => ir),
|
|
6374
6430
|
p(() => ot),
|
|
6375
6431
|
p(() => it),
|
|
6376
6432
|
p(() => st),
|
|
6377
6433
|
p(() => at),
|
|
6434
|
+
p(() => Re),
|
|
6378
6435
|
p(() => de),
|
|
6379
6436
|
p(() => Yr),
|
|
6380
6437
|
p(() => lt)
|
|
@@ -6480,7 +6537,7 @@ var Oc = Object.defineProperty, Ec = Object.getOwnPropertyDescriptor, W = (e, t,
|
|
|
6480
6537
|
(s = e[i]) && (n = (o ? s(t, r, n) : s(n)) || n);
|
|
6481
6538
|
return o && n && Oc(t, r, n), n;
|
|
6482
6539
|
};
|
|
6483
|
-
let
|
|
6540
|
+
let S = class {
|
|
6484
6541
|
constructor() {
|
|
6485
6542
|
this.indexPrefix = "nested", this.items = [], this.trackByIndex = (e) => `${this.indexPrefix}-${e}`;
|
|
6486
6543
|
}
|
|
@@ -6536,50 +6593,50 @@ let _ = class {
|
|
|
6536
6593
|
return typeof this.final == "boolean" ? this.final : typeof this.loading == "boolean" ? !this.loading : typeof this.node?.loading == "boolean" ? !this.node.loading : this.context?.final;
|
|
6537
6594
|
}
|
|
6538
6595
|
resolveCustomHtmlTags() {
|
|
6539
|
-
return
|
|
6596
|
+
return sr(this.context?.customHtmlTags, this.customHtmlTags);
|
|
6540
6597
|
}
|
|
6541
6598
|
};
|
|
6542
6599
|
W([
|
|
6543
6600
|
c()
|
|
6544
|
-
],
|
|
6601
|
+
], S.prototype, "node", 2);
|
|
6545
6602
|
W([
|
|
6546
6603
|
c()
|
|
6547
|
-
],
|
|
6604
|
+
], S.prototype, "nodes", 2);
|
|
6548
6605
|
W([
|
|
6549
6606
|
c()
|
|
6550
|
-
],
|
|
6607
|
+
], S.prototype, "content", 2);
|
|
6551
6608
|
W([
|
|
6552
6609
|
c()
|
|
6553
|
-
],
|
|
6610
|
+
], S.prototype, "loading", 2);
|
|
6554
6611
|
W([
|
|
6555
6612
|
c()
|
|
6556
|
-
],
|
|
6613
|
+
], S.prototype, "final", 2);
|
|
6557
6614
|
W([
|
|
6558
6615
|
c()
|
|
6559
|
-
],
|
|
6616
|
+
], S.prototype, "cacheKey", 2);
|
|
6560
6617
|
W([
|
|
6561
6618
|
c()
|
|
6562
|
-
],
|
|
6619
|
+
], S.prototype, "parseOptions", 2);
|
|
6563
6620
|
W([
|
|
6564
6621
|
c()
|
|
6565
|
-
],
|
|
6622
|
+
], S.prototype, "customHtmlTags", 2);
|
|
6566
6623
|
W([
|
|
6567
6624
|
c()
|
|
6568
|
-
],
|
|
6625
|
+
], S.prototype, "customMarkdownIt", 2);
|
|
6569
6626
|
W([
|
|
6570
6627
|
c()
|
|
6571
|
-
],
|
|
6628
|
+
], S.prototype, "context", 2);
|
|
6572
6629
|
W([
|
|
6573
6630
|
c()
|
|
6574
|
-
],
|
|
6575
|
-
|
|
6631
|
+
], S.prototype, "indexPrefix", 2);
|
|
6632
|
+
S = W([
|
|
6576
6633
|
b({
|
|
6577
6634
|
selector: "markstream-angular-nested-renderer",
|
|
6578
6635
|
standalone: !0,
|
|
6579
6636
|
imports: [
|
|
6580
|
-
|
|
6637
|
+
_,
|
|
6581
6638
|
xt,
|
|
6582
|
-
p(() =>
|
|
6639
|
+
p(() => S),
|
|
6583
6640
|
p(() => he)
|
|
6584
6641
|
],
|
|
6585
6642
|
template: `
|
|
@@ -6603,7 +6660,7 @@ _ = W([
|
|
|
6603
6660
|
`,
|
|
6604
6661
|
changeDetection: k.OnPush
|
|
6605
6662
|
})
|
|
6606
|
-
],
|
|
6663
|
+
], S);
|
|
6607
6664
|
var Dc = Object.defineProperty, Rc = Object.getOwnPropertyDescriptor, Ir = (e, t, r, o) => {
|
|
6608
6665
|
for (var n = o > 1 ? void 0 : o ? Rc(t, r) : t, i = e.length - 1, s; i >= 0; i--)
|
|
6609
6666
|
(s = e[i]) && (n = (o ? s(t, r, n) : s(n)) || n);
|
|
@@ -6617,7 +6674,7 @@ let ct = class {
|
|
|
6617
6674
|
return `markstream-nested-admonition--${this.kind}`;
|
|
6618
6675
|
}
|
|
6619
6676
|
get resolvedTitle() {
|
|
6620
|
-
return w(this.node?.title) ||
|
|
6677
|
+
return w(this.node?.title) || Xi(this.kind);
|
|
6621
6678
|
}
|
|
6622
6679
|
get children() {
|
|
6623
6680
|
return E(this.node?.children);
|
|
@@ -6639,7 +6696,7 @@ ct = Ir([
|
|
|
6639
6696
|
b({
|
|
6640
6697
|
selector: "markstream-angular-admonition-node",
|
|
6641
6698
|
standalone: !0,
|
|
6642
|
-
imports: [
|
|
6699
|
+
imports: [_, p(() => S)],
|
|
6643
6700
|
template: `
|
|
6644
6701
|
<div class="markstream-nested-admonition" [class]="kindClass">
|
|
6645
6702
|
<div class="markstream-nested-admonition__title">{{ resolvedTitle }}</div>
|
|
@@ -6656,7 +6713,7 @@ ct = Ir([
|
|
|
6656
6713
|
})
|
|
6657
6714
|
], ct);
|
|
6658
6715
|
let gi = 0;
|
|
6659
|
-
const
|
|
6716
|
+
const qt = /* @__PURE__ */ new WeakMap(), Ic = {
|
|
6660
6717
|
N1: "#E5E7EB",
|
|
6661
6718
|
N2: "#CBD5E1",
|
|
6662
6719
|
N3: "#94A3B8",
|
|
@@ -6675,7 +6732,7 @@ const Vt = /* @__PURE__ */ new WeakMap(), Ic = {
|
|
|
6675
6732
|
AA5: "#0284C7",
|
|
6676
6733
|
AB4: "#FBBF24",
|
|
6677
6734
|
AB5: "#F59E0B"
|
|
6678
|
-
},
|
|
6735
|
+
}, $c = {
|
|
6679
6736
|
cjs: "javascript",
|
|
6680
6737
|
cts: "typescript",
|
|
6681
6738
|
d2lang: "plaintext",
|
|
@@ -6692,7 +6749,7 @@ const Vt = /* @__PURE__ */ new WeakMap(), Ic = {
|
|
|
6692
6749
|
vue: "html",
|
|
6693
6750
|
yml: "yaml"
|
|
6694
6751
|
};
|
|
6695
|
-
async function
|
|
6752
|
+
async function Nc(e, t = {}) {
|
|
6696
6753
|
yi(e);
|
|
6697
6754
|
const r = [];
|
|
6698
6755
|
let o = !1;
|
|
@@ -6705,23 +6762,23 @@ async function $c(e, t = {}) {
|
|
|
6705
6762
|
r[s]?.();
|
|
6706
6763
|
} catch {
|
|
6707
6764
|
}
|
|
6708
|
-
|
|
6765
|
+
qt.get(e) === i && qt.delete(e);
|
|
6709
6766
|
}
|
|
6710
6767
|
}
|
|
6711
6768
|
};
|
|
6712
|
-
if (
|
|
6769
|
+
if (qt.set(e, i), !n() || (await Ac(e, n), !n()) || (await Lc(e, r, t, n), !n()))
|
|
6713
6770
|
return i;
|
|
6714
6771
|
if (t.final !== !1) {
|
|
6715
|
-
if (await Kc(e, r, t, n), !n() || (await
|
|
6772
|
+
if (await Kc(e, r, t, n), !n() || (await zc(e, r, t, n), !n()))
|
|
6716
6773
|
return i;
|
|
6717
|
-
t.renderCodeBlocksAsPre || await
|
|
6774
|
+
t.renderCodeBlocksAsPre || await jc(e, r, t, n);
|
|
6718
6775
|
}
|
|
6719
6776
|
return i;
|
|
6720
6777
|
}
|
|
6721
6778
|
function yi(e) {
|
|
6722
6779
|
if (!e)
|
|
6723
6780
|
return;
|
|
6724
|
-
|
|
6781
|
+
qt.get(e)?.dispose();
|
|
6725
6782
|
}
|
|
6726
6783
|
function ro(e, t) {
|
|
6727
6784
|
const r = e.querySelector(t);
|
|
@@ -6739,7 +6796,7 @@ function no(e, t) {
|
|
|
6739
6796
|
function oo(e, t, r, o = {}) {
|
|
6740
6797
|
t ? t.innerHTML = r : e.innerHTML = r, e.dataset.markstreamKatex = "1", o.renderedClass && e.classList.add(o.renderedClass);
|
|
6741
6798
|
}
|
|
6742
|
-
function
|
|
6799
|
+
function zt(e, t, r = {}) {
|
|
6743
6800
|
t && (t.innerHTML = ""), delete e.dataset.markstreamKatex, delete e.dataset.markstreamKatexSource, r.renderedClass && e.classList.remove(r.renderedClass);
|
|
6744
6801
|
}
|
|
6745
6802
|
async function Ac(e, t) {
|
|
@@ -6751,14 +6808,14 @@ async function Ac(e, t) {
|
|
|
6751
6808
|
continue;
|
|
6752
6809
|
const { source: i } = ro(n, ".markstream-nested-math__source"), s = Jr(n, ".markstream-nested-math__render");
|
|
6753
6810
|
if (!i) {
|
|
6754
|
-
|
|
6811
|
+
zt(n, s);
|
|
6755
6812
|
continue;
|
|
6756
6813
|
}
|
|
6757
6814
|
if (!(n.dataset.markstreamKatex === "1" && n.dataset.markstreamKatexSource === i && no(n, ".markstream-nested-math__render")))
|
|
6758
6815
|
try {
|
|
6759
6816
|
oo(n, s, await io(i, n.dataset.display === "block")), n.dataset.markstreamKatexSource = i;
|
|
6760
6817
|
} catch {
|
|
6761
|
-
|
|
6818
|
+
zt(n, s);
|
|
6762
6819
|
}
|
|
6763
6820
|
}
|
|
6764
6821
|
const o = Array.from(e.querySelectorAll(".markstream-nested-math-block"));
|
|
@@ -6769,7 +6826,7 @@ async function Ac(e, t) {
|
|
|
6769
6826
|
continue;
|
|
6770
6827
|
const { source: i } = ro(n, ".markstream-nested-math-block__source"), s = Jr(n, ".markstream-nested-math-block__render");
|
|
6771
6828
|
if (!i) {
|
|
6772
|
-
|
|
6829
|
+
zt(n, s, { renderedClass: "markstream-nested-math-block--rendered" });
|
|
6773
6830
|
continue;
|
|
6774
6831
|
}
|
|
6775
6832
|
if (!(n.dataset.markstreamKatex === "1" && n.dataset.markstreamKatexSource === i && no(n, ".markstream-nested-math-block__render")))
|
|
@@ -6778,12 +6835,12 @@ async function Ac(e, t) {
|
|
|
6778
6835
|
renderedClass: "markstream-nested-math-block--rendered"
|
|
6779
6836
|
}), n.dataset.markstreamKatexSource = i;
|
|
6780
6837
|
} catch {
|
|
6781
|
-
|
|
6838
|
+
zt(n, s, { renderedClass: "markstream-nested-math-block--rendered" });
|
|
6782
6839
|
}
|
|
6783
6840
|
}
|
|
6784
6841
|
}
|
|
6785
6842
|
async function io(e, t) {
|
|
6786
|
-
const r =
|
|
6843
|
+
const r = $t(e);
|
|
6787
6844
|
try {
|
|
6788
6845
|
return await Cn(r, t, {
|
|
6789
6846
|
timeout: 1500,
|
|
@@ -6792,7 +6849,7 @@ async function io(e, t) {
|
|
|
6792
6849
|
});
|
|
6793
6850
|
} catch (i) {
|
|
6794
6851
|
const s = i?.code || i?.name;
|
|
6795
|
-
if (!(s === "WORKER_INIT_ERROR" || i?.fallbackToRenderer) && !(s ===
|
|
6852
|
+
if (!(s === "WORKER_INIT_ERROR" || i?.fallbackToRenderer) && !(s === Nt || s === "WORKER_TIMEOUT"))
|
|
6796
6853
|
throw i;
|
|
6797
6854
|
}
|
|
6798
6855
|
const o = await bn();
|
|
@@ -6819,7 +6876,7 @@ async function Lc(e, t, r, o) {
|
|
|
6819
6876
|
const a = s.parentElement, l = (s.textContent || "").trim();
|
|
6820
6877
|
if (!a || !l)
|
|
6821
6878
|
continue;
|
|
6822
|
-
const d = a.cloneNode(!0), u =
|
|
6879
|
+
const d = a.cloneNode(!0), u = $r(
|
|
6823
6880
|
"mermaid",
|
|
6824
6881
|
"Mermaid",
|
|
6825
6882
|
l,
|
|
@@ -6936,7 +6993,7 @@ async function Kc(e, t, r, o) {
|
|
|
6936
6993
|
const a = s.parentElement, l = s.textContent || "";
|
|
6937
6994
|
if (!a || !l.trim())
|
|
6938
6995
|
continue;
|
|
6939
|
-
const d = a.cloneNode(!0), u =
|
|
6996
|
+
const d = a.cloneNode(!0), u = $r("infographic", "Infographic", l, !0, r, {
|
|
6940
6997
|
showHeader: r.infographicProps?.showHeader !== !1
|
|
6941
6998
|
});
|
|
6942
6999
|
u.body.style.minHeight = "320px", u.body.style.height = "360px", a.replaceWith(u.wrapper);
|
|
@@ -6959,7 +7016,7 @@ async function Kc(e, t, r, o) {
|
|
|
6959
7016
|
}
|
|
6960
7017
|
}
|
|
6961
7018
|
}
|
|
6962
|
-
async function
|
|
7019
|
+
async function zc(e, t, r, o) {
|
|
6963
7020
|
const n = await Mo();
|
|
6964
7021
|
if (!n || !o())
|
|
6965
7022
|
return;
|
|
@@ -6970,7 +7027,7 @@ async function jc(e, t, r, o) {
|
|
|
6970
7027
|
const a = s.parentElement, l = s.textContent || "";
|
|
6971
7028
|
if (!a || !l.trim())
|
|
6972
7029
|
continue;
|
|
6973
|
-
const d = a.cloneNode(!0), u =
|
|
7030
|
+
const d = a.cloneNode(!0), u = $r("d2", "D2", l, !0, r, {
|
|
6974
7031
|
showHeader: r.d2Props?.showHeader !== !1
|
|
6975
7032
|
});
|
|
6976
7033
|
a.replaceWith(u.wrapper);
|
|
@@ -6980,10 +7037,10 @@ async function jc(e, t, r, o) {
|
|
|
6980
7037
|
throw new TypeError("D2 instance is missing compile/render methods.");
|
|
6981
7038
|
const f = await h.compile(l), m = f?.diagram ?? f, g = f?.renderOptions ?? f?.options ?? {}, y = r.d2ThemeId ?? g.themeID, P = r.d2DarkThemeId ?? g.darkThemeID, v = { ...g };
|
|
6982
7039
|
if (v.themeID = r.isDark && P != null ? P : y, v.darkThemeID = null, v.darkThemeOverrides = null, r.isDark) {
|
|
6983
|
-
const
|
|
7040
|
+
const $ = g.themeOverrides && typeof g.themeOverrides == "object" ? g.themeOverrides : null;
|
|
6984
7041
|
v.themeOverrides = {
|
|
6985
7042
|
...Ic,
|
|
6986
|
-
|
|
7043
|
+
...$ || {}
|
|
6987
7044
|
};
|
|
6988
7045
|
}
|
|
6989
7046
|
const M = await h.render(m, v);
|
|
@@ -7000,7 +7057,7 @@ async function jc(e, t, r, o) {
|
|
|
7000
7057
|
}
|
|
7001
7058
|
}
|
|
7002
7059
|
}
|
|
7003
|
-
async function
|
|
7060
|
+
async function jc(e, t, r, o) {
|
|
7004
7061
|
const n = await Po();
|
|
7005
7062
|
if (!n || typeof n.useMonaco != "function" || !o())
|
|
7006
7063
|
return;
|
|
@@ -7014,7 +7071,7 @@ async function zc(e, t, r, o) {
|
|
|
7014
7071
|
const l = Vc(s, a), d = l.trim().toLowerCase();
|
|
7015
7072
|
if (d === "mermaid" || d === "infographic" || d === "d2" || d === "d2lang")
|
|
7016
7073
|
continue;
|
|
7017
|
-
const u = a.textContent || "", h = s.dataset.markstreamDiff === "1", f =
|
|
7074
|
+
const u = a.textContent || "", h = s.dataset.markstreamDiff === "1", f = Xc(s.dataset.markstreamUpdated), m = qc(l), g = h ? "plaintext" : m, y = $r(
|
|
7018
7075
|
"code",
|
|
7019
7076
|
h ? `Diff / ${m}` : `Code / ${m}`,
|
|
7020
7077
|
u,
|
|
@@ -7081,14 +7138,14 @@ function Vc(e, t) {
|
|
|
7081
7138
|
}
|
|
7082
7139
|
function qc(e) {
|
|
7083
7140
|
const t = e.trim().toLowerCase();
|
|
7084
|
-
return
|
|
7141
|
+
return $c[t] || t || "plaintext";
|
|
7085
7142
|
}
|
|
7086
7143
|
function Uc(e, t) {
|
|
7087
7144
|
const r = Math.max(1, e.split(`
|
|
7088
7145
|
`).length);
|
|
7089
7146
|
return Math.min(520, (t ? 180 : 96) + r * (t ? 20 : 18));
|
|
7090
7147
|
}
|
|
7091
|
-
function
|
|
7148
|
+
function Xc(e) {
|
|
7092
7149
|
if (!e)
|
|
7093
7150
|
return "";
|
|
7094
7151
|
const t = globalThis?.require?.("buffer")?.Buffer;
|
|
@@ -7100,13 +7157,13 @@ function Gc(e) {
|
|
|
7100
7157
|
}
|
|
7101
7158
|
return "";
|
|
7102
7159
|
}
|
|
7103
|
-
function
|
|
7160
|
+
function $r(e, t, r, o, n, i = {}) {
|
|
7104
7161
|
const s = document.createElement("div");
|
|
7105
7162
|
if (s.className = `markstream-angular-enhanced-block markstream-angular-enhanced-block--${e}`, i.showHeader !== !1) {
|
|
7106
7163
|
const l = document.createElement("div");
|
|
7107
7164
|
l.className = "markstream-angular-enhanced-block__header";
|
|
7108
7165
|
const d = document.createElement("span");
|
|
7109
|
-
d.className = "markstream-angular-enhanced-block__badge", d.textContent = t, l.appendChild(d), l.appendChild(
|
|
7166
|
+
d.className = "markstream-angular-enhanced-block__badge", d.textContent = t, l.appendChild(d), l.appendChild(Gc(r, n)), s.appendChild(l);
|
|
7110
7167
|
}
|
|
7111
7168
|
const a = document.createElement("div");
|
|
7112
7169
|
if (a.className = "markstream-angular-enhanced-block__body", s.appendChild(a), o) {
|
|
@@ -7121,7 +7178,7 @@ function Nr(e, t, r, o, n, i = {}) {
|
|
|
7121
7178
|
}
|
|
7122
7179
|
return { wrapper: s, body: a };
|
|
7123
7180
|
}
|
|
7124
|
-
function
|
|
7181
|
+
function Gc(e, t) {
|
|
7125
7182
|
const r = document.createElement("div");
|
|
7126
7183
|
r.className = "markstream-angular-enhanced-block__actions";
|
|
7127
7184
|
const o = document.createElement("button");
|
|
@@ -7204,7 +7261,7 @@ var rd = Object.defineProperty, nd = Object.getOwnPropertyDescriptor, C = (e, t,
|
|
|
7204
7261
|
const lo = /auto|scroll|overlay/i;
|
|
7205
7262
|
let x = class {
|
|
7206
7263
|
constructor() {
|
|
7207
|
-
this.cdr =
|
|
7264
|
+
this.cdr = X(me), this.hostRef = X(uo), this.content = "", this.codeBlockStream = !0, this.renderCodeBlocksAsPre = !1, this.showTooltips = !0, this.isDark = !1, this.typewriter = !0, this.batchRendering = !0, this.initialRenderBatchSize = 40, this.renderBatchSize = 80, this.renderBatchDelay = 16, this.renderBatchBudgetMs = 6, this.renderBatchIdleTimeoutMs = 120, this.deferNodesUntilVisible = !0, this.maxLiveNodes = 320, this.liveNodeBuffer = 60, this.allowHtml = !0, this.copy = new mt(), this.handleArtifactClick = new mt(), this.click = new mt(), this.mouseover = new mt(), this.mouseout = new mt(), this.parsedNodes = [], this.visibleEntries = [], this.renderContext = { events: {} }, this.topSpacerHeight = 0, this.bottomSpacerHeight = 0, this.renderedCount = 0, this.focusIndex = 0, this.liveRange = { start: 0, end: 0 }, this.nodeHeights = /* @__PURE__ */ new Map(), this.nodeVisibility = /* @__PURE__ */ new Set(), this.nodeSeen = /* @__PURE__ */ new Set(), this.textStreamState = /* @__PURE__ */ new Map(), this.streamRenderVersion = 0, this.slotElements = /* @__PURE__ */ new Map(), this.observedElements = /* @__PURE__ */ new Map(), this.observer = null, this.observerConfig = null, this.observerIndexByElement = /* @__PURE__ */ new Map(), this.batchTimer = null, this.batchRaf = null, this.batchIdle = null, this.batchPending = !1, this.enhancementToken = 0, this.enhancementTimer = null, this.enhancementHandle = null, this.postRenderTimer = null, this.trackByEntry = (e, t) => `${this.resolvedIndexPrefix}-${t.index}`;
|
|
7208
7265
|
}
|
|
7209
7266
|
get resolvedIndexPrefix() {
|
|
7210
7267
|
return this.indexKey != null ? String(this.indexKey) : "renderer";
|
|
@@ -7286,7 +7343,7 @@ let x = class {
|
|
|
7286
7343
|
r,
|
|
7287
7344
|
this.textStreamState,
|
|
7288
7345
|
this.streamRenderVersion
|
|
7289
|
-
), this.parsedNodes =
|
|
7346
|
+
), this.parsedNodes = zi(this), this.trimMeasuredState();
|
|
7290
7347
|
const o = this.parsedNodes.length;
|
|
7291
7348
|
this.focusIndex = Math.max(0, Math.min(this.focusIndex, Math.max(0, o - 1))), this.virtualizationEnabled ? (this.renderedCount = o, this.liveRange = ao(o, this.focusIndex, this.resolvedMaxLiveNodes, this.resolvedLiveNodeBuffer)) : (this.liveRange = { start: 0, end: o }, this.renderedCount = this.incrementalRenderingActive ? Math.min(o, this.resolvedInitialBatchSize) : o), this.deferNodesActive || this.nodeVisibility.clear(), this.refreshVisibleEntries(), this.cdr.markForCheck(), this.schedulePostRenderWork(), this.incrementalRenderingActive && this.renderedCount < o && this.scheduleBatchStep();
|
|
7292
7349
|
}
|
|
@@ -7482,7 +7539,7 @@ let x = class {
|
|
|
7482
7539
|
const t = this.rootRef?.nativeElement || this.hostRef.nativeElement.querySelector(".markstream-angular");
|
|
7483
7540
|
if (!t)
|
|
7484
7541
|
return;
|
|
7485
|
-
const r = await
|
|
7542
|
+
const r = await Nc(t, {
|
|
7486
7543
|
final: this.final,
|
|
7487
7544
|
isDark: this.isDark,
|
|
7488
7545
|
renderCodeBlocksAsPre: this.renderCodeBlocksAsPre,
|
|
@@ -7510,7 +7567,7 @@ let x = class {
|
|
|
7510
7567
|
}
|
|
7511
7568
|
};
|
|
7512
7569
|
C([
|
|
7513
|
-
|
|
7570
|
+
B("root")
|
|
7514
7571
|
], x.prototype, "rootRef", 2);
|
|
7515
7572
|
C([
|
|
7516
7573
|
c()
|
|
@@ -7639,7 +7696,7 @@ x = C([
|
|
|
7639
7696
|
b({
|
|
7640
7697
|
selector: "markstream-angular",
|
|
7641
7698
|
standalone: !0,
|
|
7642
|
-
imports: [
|
|
7699
|
+
imports: [_, he],
|
|
7643
7700
|
template: `
|
|
7644
7701
|
<div
|
|
7645
7702
|
#root
|
|
@@ -7692,7 +7749,7 @@ x = C([
|
|
|
7692
7749
|
changeDetection: k.OnPush
|
|
7693
7750
|
})
|
|
7694
7751
|
], x);
|
|
7695
|
-
function
|
|
7752
|
+
function zr(e) {
|
|
7696
7753
|
return JSON.stringify(e);
|
|
7697
7754
|
}
|
|
7698
7755
|
function od(e) {
|
|
@@ -7702,7 +7759,7 @@ function od(e) {
|
|
|
7702
7759
|
output: "html",
|
|
7703
7760
|
strict: "ignore",
|
|
7704
7761
|
...e.renderOptions || {}
|
|
7705
|
-
}, o =
|
|
7762
|
+
}, o = zr(r), n = zr(e.katexUrl), i = e.mhchemUrl ? zr(e.mhchemUrl) : '""';
|
|
7706
7763
|
return t === "module" ? `
|
|
7707
7764
|
let DEBUG = false
|
|
7708
7765
|
let katex = null
|
|
@@ -8082,54 +8139,54 @@ function Fd(e) {
|
|
|
8082
8139
|
}
|
|
8083
8140
|
export {
|
|
8084
8141
|
ct as AdmonitionNode,
|
|
8085
|
-
|
|
8086
|
-
|
|
8087
|
-
|
|
8088
|
-
|
|
8089
|
-
|
|
8090
|
-
|
|
8142
|
+
Pe as AngularCodeBlockNode,
|
|
8143
|
+
Ve as BlockquoteNode,
|
|
8144
|
+
Xt as CheckboxNode,
|
|
8145
|
+
Pe as CodeBlockNode,
|
|
8146
|
+
Se as D2BlockNode,
|
|
8147
|
+
qe as DefinitionListNode,
|
|
8091
8148
|
Gt as EmojiNode,
|
|
8092
|
-
|
|
8093
|
-
|
|
8094
|
-
|
|
8149
|
+
Ue as EmphasisNode,
|
|
8150
|
+
Xe as FallbackComponent,
|
|
8151
|
+
Zt as FootnoteAnchorNode,
|
|
8095
8152
|
Ge as FootnoteNode,
|
|
8096
|
-
|
|
8153
|
+
Yt as FootnoteReferenceNode,
|
|
8097
8154
|
Vr as HardBreakNode,
|
|
8098
|
-
|
|
8099
|
-
|
|
8100
|
-
|
|
8101
|
-
|
|
8102
|
-
|
|
8103
|
-
|
|
8155
|
+
Ze as HeadingNode,
|
|
8156
|
+
Ye as HighlightNode,
|
|
8157
|
+
Je as HtmlBlockNode,
|
|
8158
|
+
Qe as HtmlInlineNode,
|
|
8159
|
+
Te as HtmlPreviewFrame,
|
|
8160
|
+
Jt as ImageNode,
|
|
8104
8161
|
re as InfographicBlockNode,
|
|
8105
8162
|
_e as InlineCodeNode,
|
|
8106
|
-
|
|
8107
|
-
|
|
8163
|
+
et as InsertNode,
|
|
8164
|
+
Ee as LinkNode,
|
|
8108
8165
|
ue as ListItemNode,
|
|
8109
|
-
|
|
8166
|
+
rt as ListNode,
|
|
8110
8167
|
tc as MERMAID_DISABLED_CODE,
|
|
8111
8168
|
ec as MERMAID_WORKER_BUSY_CODE,
|
|
8112
|
-
|
|
8169
|
+
Pe as MarkdownCodeBlockNode,
|
|
8113
8170
|
x as MarkdownRenderComponent,
|
|
8114
8171
|
x as MarkstreamAngularComponent,
|
|
8115
8172
|
Ct as MathBlockNode,
|
|
8116
8173
|
Tt as MathInlineNode,
|
|
8117
8174
|
ne as MermaidBlockNode,
|
|
8118
|
-
|
|
8175
|
+
S as NestedRenderer,
|
|
8119
8176
|
x as NodeRenderer,
|
|
8120
|
-
|
|
8177
|
+
nt as ParagraphNode,
|
|
8121
8178
|
wt as PreCodeNode,
|
|
8122
|
-
|
|
8179
|
+
ir as ReferenceNode,
|
|
8123
8180
|
xt as SafeAttrsDirective,
|
|
8124
|
-
|
|
8125
|
-
|
|
8126
|
-
|
|
8127
|
-
|
|
8128
|
-
|
|
8181
|
+
ot as StrikethroughNode,
|
|
8182
|
+
it as StrongNode,
|
|
8183
|
+
st as SubscriptNode,
|
|
8184
|
+
at as SuperscriptNode,
|
|
8185
|
+
Re as TableNode,
|
|
8129
8186
|
de as TextNode,
|
|
8130
8187
|
Yr as ThematicBreakNode,
|
|
8131
8188
|
lt as VmrContainerNode,
|
|
8132
|
-
|
|
8189
|
+
Nt as WORKER_BUSY_CODE,
|
|
8133
8190
|
od as buildKaTeXCDNWorkerSource,
|
|
8134
8191
|
id as buildMermaidCDNWorkerSource,
|
|
8135
8192
|
Ki as buildRenderContext,
|
|
@@ -8147,16 +8204,16 @@ export {
|
|
|
8147
8204
|
pd as enableD2,
|
|
8148
8205
|
bd as enableKatex,
|
|
8149
8206
|
Dd as enableMermaid,
|
|
8150
|
-
|
|
8207
|
+
Nc as enhanceRenderedHtml,
|
|
8151
8208
|
mi as findPrefixOffthread,
|
|
8152
8209
|
cd as getCustomComponentsRevision,
|
|
8153
8210
|
vo as getCustomNodeComponents,
|
|
8154
8211
|
Ed as getKaTeXBackpressureDefaults,
|
|
8155
|
-
|
|
8212
|
+
Sd as getKaTeXWorkerLoad,
|
|
8156
8213
|
bn as getKatex,
|
|
8157
8214
|
ms as getLanguageIcon,
|
|
8158
8215
|
ci as getMermaid,
|
|
8159
|
-
|
|
8216
|
+
Nd as getMermaidWorkerLoad,
|
|
8160
8217
|
yd as isD2Enabled,
|
|
8161
8218
|
Md as isKaTeXWorkerBusy,
|
|
8162
8219
|
oi as isKatexEnabled,
|
|
@@ -8165,29 +8222,29 @@ export {
|
|
|
8165
8222
|
an as normalizeLanguageIdentifier,
|
|
8166
8223
|
Ii as parseNestedMarkdownToNodes,
|
|
8167
8224
|
ud as removeCustomComponents,
|
|
8168
|
-
|
|
8225
|
+
jl as renderKaTeXInWorker,
|
|
8169
8226
|
Cn as renderKaTeXWithBackpressure,
|
|
8170
8227
|
aa as renderMarkdownNodeToHtml,
|
|
8171
8228
|
xd as renderMarkdownNodesToHtml,
|
|
8172
8229
|
vd as renderMarkdownToHtml,
|
|
8173
8230
|
wd as renderNestedMarkdownToHtml,
|
|
8174
8231
|
hs as resolveMonacoLanguageId,
|
|
8175
|
-
|
|
8232
|
+
zi as resolveParsedNodes,
|
|
8176
8233
|
fn as sanitizeHtmlContent,
|
|
8177
8234
|
dd as setCustomComponents,
|
|
8178
|
-
|
|
8235
|
+
_o as setD2Loader,
|
|
8179
8236
|
md as setDefaultI18nMap,
|
|
8180
8237
|
Od as setKaTeXBackpressureDefaults,
|
|
8181
8238
|
kn as setKaTeXCache,
|
|
8182
8239
|
Cd as setKaTeXWorker,
|
|
8183
8240
|
Pd as setKaTeXWorkerDebug,
|
|
8184
|
-
|
|
8241
|
+
_d as setKaTeXWorkerMaxConcurrency,
|
|
8185
8242
|
ni as setKatexLoader,
|
|
8186
8243
|
fd as setLanguageIconResolver,
|
|
8187
8244
|
li as setMermaidLoader,
|
|
8188
8245
|
Ad as setMermaidWorker,
|
|
8189
8246
|
Id as setMermaidWorkerClientDebug,
|
|
8190
|
-
|
|
8247
|
+
$d as setMermaidWorkerMaxConcurrency,
|
|
8191
8248
|
Bi as subscribeCustomComponents,
|
|
8192
8249
|
Hd as terminateWorker,
|
|
8193
8250
|
To as useSafeI18n,
|