novelaid-markdown 0.2.0 → 0.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +32 -0
- package/dist/_baseFor-Btt7qhvA.js +394 -0
- package/dist/arc-B1ElyJRe.js +80 -0
- package/dist/architecture-YZFGNWBL-DbwpLiaF.js +3 -0
- package/dist/architectureDiagram-Q4EWVU46-DPdA1a51.js +4057 -0
- package/dist/array-D9V22jUe.js +6 -0
- package/dist/blockDiagram-DXYQGD6D-Bf0IzYoN.js +3035 -0
- package/dist/c4Diagram-AHTNJAMY-BlTBDzAq.js +2961 -0
- package/dist/channel-CoqXOEHz.js +5 -0
- package/dist/chunk-2KRD3SAO-r21hNzXt.js +23 -0
- package/dist/chunk-336JU56O-DcVNMTsS.js +49 -0
- package/dist/chunk-426QAEUC-B4JQ_vPF.js +9 -0
- package/dist/chunk-4BX2VUAB-JBqrV_IE.js +8 -0
- package/dist/chunk-4TB4RGXK-DHS8LN6H.js +3255 -0
- package/dist/chunk-55IACEB6-C9COrGK_.js +8 -0
- package/dist/chunk-5FUZZQ4R-CdCLluck.js +3638 -0
- package/dist/chunk-5PVQY5BW-Dgwc0dUk.js +1299 -0
- package/dist/chunk-67CJDMHE-UQ-a7p3g.js +23 -0
- package/dist/chunk-7N4EOEYR-CPiwpV-A.js +35 -0
- package/dist/chunk-AA7GKIK3-DR_Iqho4.js +30 -0
- package/dist/chunk-BSJP7CBP-BrxQKL1l.js +82 -0
- package/dist/chunk-CIAEETIT-tbco3aB3.js +23 -0
- package/dist/chunk-EDXVE4YY-BHsZxHlc.js +25 -0
- package/dist/chunk-ENJZ2VHE-Dm2kuGCh.js +560 -0
- package/dist/chunk-FMBD7UC4-DwV8Wmed.js +5 -0
- package/dist/chunk-FOC6F5B3-CQtHQje_.js +23 -0
- package/dist/chunk-ICPOFSXX-B9lsZaK9.js +3363 -0
- package/dist/chunk-K5T4RW27-DI9nuGzI.js +16082 -0
- package/dist/chunk-KGLVRYIC-BMNH9LI-.js +23 -0
- package/dist/chunk-LIHQZDEY-Dc-yVZ_W.js +64 -0
- package/dist/chunk-ORNJ4GCN-DqZLt4_8.js +31 -0
- package/dist/chunk-OYMX7WX6-B8KpS9qK.js +2014 -0
- package/dist/chunk-QZHKN3VN-C4dmvHME.js +15 -0
- package/dist/chunk-U2HBQHQK-BME65g2a.js +1896 -0
- package/dist/chunk-X2U36JSP-CesuQ-Sm.js +67 -0
- package/dist/chunk-XPW4576I-Wv7jaLUC.js +1146 -0
- package/dist/chunk-YZCP3GAM-CJIt1xzm.js +60 -0
- package/dist/chunk-ZZ45TVLE-CMBGSmdv.js +32 -0
- package/dist/chunk-ha4E1CQs.js +20 -0
- package/dist/classDiagram-6PBFFD2Q-kvmQgIxu.js +29 -0
- package/dist/classDiagram-v2-HSJHXN6E-DLlYyLVf.js +29 -0
- package/dist/clone-B5XHQkPs.js +8 -0
- package/dist/cose-bilkent-S5V4N54A-xGhciOop.js +2250 -0
- package/dist/cytoscape.esm-BgCYa94Q.js +18103 -0
- package/dist/dagre-KV5264BT-DNe8h1eH.js +293 -0
- package/dist/dagre-SfibWTbo.js +1606 -0
- package/dist/defaultLocale-9iKoEQQi.js +201 -0
- package/dist/diagram-5BDNPKRD-D_R6IIhE.js +101 -0
- package/dist/diagram-G4DWMVQ6-CGlOggN-.js +524 -0
- package/dist/diagram-MMDJMWI5-GlxWkSbK.js +213 -0
- package/dist/diagram-TYMM5635-Empbfz-2.js +133 -0
- package/dist/dist-Dz2K8jVv.js +59 -0
- package/dist/erDiagram-SMLLAGMA-DSnlNLPr.js +1700 -0
- package/dist/{esm-Psdhd_27.js → esm-Binvve4F.js} +285 -303
- package/dist/flatten-BeeUCBYF.js +40 -0
- package/dist/flowDiagram-DWJPFMVM-YAh0NsG9.js +4145 -0
- package/dist/ganttDiagram-T4ZO3ILL-DkmkZTO5.js +3077 -0
- package/dist/gitGraph-7Q5UKJZL-DamMrPFa.js +3 -0
- package/dist/gitGraphDiagram-UUTBAWPF-IjLQtHgn.js +728 -0
- package/dist/graphlib-DSQqP-5Y.js +373 -0
- package/dist/index.css +2 -0
- package/dist/index.js +4086 -38
- package/dist/index.umd.cjs +3325 -23
- package/dist/info-OMHHGYJF-BovemagY.js +3 -0
- package/dist/infoDiagram-42DDH7IO-izJQDQJs.js +19 -0
- package/dist/init-DkX7cl9c.js +15 -0
- package/dist/isEmpty-kLGD071T.js +35 -0
- package/dist/ishikawaDiagram-UXIWVN3A-SJb5qsLR.js +718 -0
- package/dist/journeyDiagram-VCZTEJTY-BDa8bFXG.js +883 -0
- package/dist/kanban-definition-6JOO6SKY-i73I3KFw.js +973 -0
- package/dist/katex-DI2iMRYj.js +22000 -0
- package/dist/line-BD0OIRsH.js +34 -0
- package/dist/linear-DV1pG6aV.js +289 -0
- package/dist/mermaid-parser.core-CZznKIov.js +69 -0
- package/dist/mermaid.core-a1TLqUAY.js +951 -0
- package/dist/mindmap-definition-QFDTVHPH-DPG-HkqU.js +1009 -0
- package/dist/ordinal-Zd5qpGcV.js +65 -0
- package/dist/packet-4T2RLAQJ-BEP9UcAl.js +3 -0
- package/dist/path-BSwIfggT.js +85 -0
- package/dist/pie-ZZUOXDRM-AZqQmg1p.js +3 -0
- package/dist/pieDiagram-DEJITSTG-Cj1YBlb1.js +165 -0
- package/dist/quadrantDiagram-34T5L4WZ-ypBI9wre.js +1974 -0
- package/dist/radar-PYXPWWZC-BpKM_Ghb.js +3 -0
- package/dist/{react-markdown-BXmDW998.js → react-markdown-CwHVAeQi.js} +82 -81
- package/dist/reduce-DQgHi9nw.js +532 -0
- package/dist/{rehype-raw-_yRr8ewB.js → rehype-raw-CbJS4QeP.js} +346 -346
- package/dist/{remark-gfm-Cfc5YeEq.js → remark-gfm-D_QtAzOA.js} +2 -2
- package/dist/requirementDiagram-MS252O5E-CkuWjAxJ.js +2221 -0
- package/dist/rough.esm-Dun2l6dn.js +1352 -0
- package/dist/sankeyDiagram-XADWPNL6-BzIHfJyL.js +920 -0
- package/dist/sequenceDiagram-FGHM5R23-NC0cKvy5.js +4157 -0
- package/dist/src-D7IEzgYM.js +2149 -0
- package/dist/stateDiagram-FHFEXIEX-vd0cNpSx.js +217 -0
- package/dist/stateDiagram-v2-QKLJ7IA2-BXsBMk9U.js +27 -0
- package/dist/timeline-definition-GMOUNBTQ-DeOvCyAs.js +1068 -0
- package/dist/treeView-SZITEDCU-D-ftaYOL.js +3 -0
- package/dist/treemap-W4RFUUIX-B2bp9KIg.js +3 -0
- package/dist/vennDiagram-DHZGUBPP-Hraq3pvR.js +1858 -0
- package/dist/wardley-RL74JXVD-BdjKuxh8.js +3 -0
- package/dist/wardleyDiagram-NUSXRM2D-C06eRanG.js +578 -0
- package/dist/xychartDiagram-5P7HB3ND-BiD79JlS.js +2044 -0
- package/package.json +4 -2
- /package/dist/{blank-line-ClJSvRAu.js → blank-line-DxLGQ569.js} +0 -0
- /package/dist/{lib-DWIu06lZ.js → lib-z8X9LcoZ.js} +0 -0
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { t as
|
|
3
|
-
import {
|
|
1
|
+
import { o as e, r as t, t as n } from "./chunk-ha4E1CQs.js";
|
|
2
|
+
import { t as r } from "./lib-z8X9LcoZ.js";
|
|
3
|
+
import { c as i, i as a, l as o, n as s, o as c, p as l, r as u, s as d, t as f, u as p } from "./esm-Binvve4F.js";
|
|
4
|
+
import { _ as m, a as h, b as g, c as _, d as v, f as y, i as b, l as x, m as S, n as C, o as w, p as T, r as E, s as D, t as O, u as k, v as A, x as j, y as M } from "./blank-line-DxLGQ569.js";
|
|
4
5
|
import { useEffect as N, useState as P } from "react";
|
|
5
6
|
import { Fragment as F, jsx as I, jsxs as ee } from "react/jsx-runtime";
|
|
6
7
|
//#region node_modules/estree-util-is-identifier-name/lib/index.js
|
|
@@ -19,7 +20,7 @@ function ne(e) {
|
|
|
19
20
|
}
|
|
20
21
|
//#endregion
|
|
21
22
|
//#region node_modules/inline-style-parser/cjs/index.js
|
|
22
|
-
var re = /* @__PURE__ */
|
|
23
|
+
var re = /* @__PURE__ */ n(((e, t) => {
|
|
23
24
|
var n = /\/\*[^*]*\*+([^/*][^*]*\*+)*\//g, r = /\n/g, i = /^\s*/, a = /^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/, o = /^:\s*/, s = /^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/, c = /^[;\s]*/, l = /^\s+|\s+$/g, u = "\n", d = "/", f = "*", p = "", m = "comment", h = "declaration";
|
|
24
25
|
function g(e, t) {
|
|
25
26
|
if (typeof e != "string") throw TypeError("First argument must be a string");
|
|
@@ -103,7 +104,7 @@ var re = /* @__PURE__ */ a(((e, t) => {
|
|
|
103
104
|
return e ? e.replace(l, p) : p;
|
|
104
105
|
}
|
|
105
106
|
t.exports = g;
|
|
106
|
-
})), ie = /* @__PURE__ */
|
|
107
|
+
})), ie = /* @__PURE__ */ n(((e) => {
|
|
107
108
|
var t = e && e.__importDefault || function(e) {
|
|
108
109
|
return e && e.__esModule ? e : { default: e };
|
|
109
110
|
};
|
|
@@ -119,7 +120,7 @@ var re = /* @__PURE__ */ a(((e, t) => {
|
|
|
119
120
|
a ? t(n, i, e) : i && (r ||= {}, r[n] = i);
|
|
120
121
|
}), r;
|
|
121
122
|
}
|
|
122
|
-
})), ae = /* @__PURE__ */
|
|
123
|
+
})), ae = /* @__PURE__ */ n(((e) => {
|
|
123
124
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.camelCase = void 0;
|
|
124
125
|
var t = /^--[a-zA-Z0-9_-]+$/, n = /-([a-z])/g, r = /^[^-]+$/, i = /^-(webkit|moz|ms|o|khtml)-/, a = /^-(ms)-/, o = function(e) {
|
|
125
126
|
return !e || r.test(e) || t.test(e);
|
|
@@ -131,7 +132,7 @@ var re = /* @__PURE__ */ a(((e, t) => {
|
|
|
131
132
|
e.camelCase = function(e, t) {
|
|
132
133
|
return t === void 0 && (t = {}), o(e) ? e : (e = e.toLowerCase(), e = t.reactCompat ? e.replace(a, c) : e.replace(i, c), e.replace(n, s));
|
|
133
134
|
};
|
|
134
|
-
})), oe = /* @__PURE__ */
|
|
135
|
+
})), oe = /* @__PURE__ */ n(((e, t) => {
|
|
135
136
|
var n = (e && e.__importDefault || function(e) {
|
|
136
137
|
return e && e.__esModule ? e : { default: e };
|
|
137
138
|
})(ie()), r = ae();
|
|
@@ -181,40 +182,40 @@ var W = class extends Error {
|
|
|
181
182
|
W.prototype.file = "", W.prototype.name = "", W.prototype.reason = "", W.prototype.message = "", W.prototype.stack = "", W.prototype.column = void 0, W.prototype.line = void 0, W.prototype.ancestors = void 0, W.prototype.cause = void 0, W.prototype.fatal = void 0, W.prototype.place = void 0, W.prototype.ruleId = void 0, W.prototype.source = void 0;
|
|
182
183
|
//#endregion
|
|
183
184
|
//#region node_modules/hast-util-to-jsx-runtime/lib/index.js
|
|
184
|
-
var le = /* @__PURE__ */
|
|
185
|
+
var le = /* @__PURE__ */ e(oe(), 1), G = {}.hasOwnProperty, ue = /* @__PURE__ */ new Map(), de = /[A-Z]/g, fe = new Set([
|
|
185
186
|
"table",
|
|
186
187
|
"tbody",
|
|
187
188
|
"thead",
|
|
188
189
|
"tfoot",
|
|
189
190
|
"tr"
|
|
190
191
|
]), pe = new Set(["td", "th"]), me = "https://github.com/syntax-tree/hast-util-to-jsx-runtime";
|
|
191
|
-
function he(
|
|
192
|
-
if (!
|
|
193
|
-
let
|
|
194
|
-
if (
|
|
195
|
-
if (typeof
|
|
196
|
-
|
|
192
|
+
function he(e, t) {
|
|
193
|
+
if (!t || t.Fragment === void 0) throw TypeError("Expected `Fragment` in options");
|
|
194
|
+
let n = t.filePath || void 0, r;
|
|
195
|
+
if (t.development) {
|
|
196
|
+
if (typeof t.jsxDEV != "function") throw TypeError("Expected `jsxDEV` in options when `development: true`");
|
|
197
|
+
r = Ee(n, t.jsxDEV);
|
|
197
198
|
} else {
|
|
198
|
-
if (typeof
|
|
199
|
-
if (typeof
|
|
200
|
-
|
|
199
|
+
if (typeof t.jsx != "function") throw TypeError("Expected `jsx` in production options");
|
|
200
|
+
if (typeof t.jsxs != "function") throw TypeError("Expected `jsxs` in production options");
|
|
201
|
+
r = Te(n, t.jsx, t.jsxs);
|
|
201
202
|
}
|
|
202
203
|
let a = {
|
|
203
|
-
Fragment:
|
|
204
|
+
Fragment: t.Fragment,
|
|
204
205
|
ancestors: [],
|
|
205
|
-
components:
|
|
206
|
-
create:
|
|
207
|
-
elementAttributeNameCase:
|
|
208
|
-
evaluater:
|
|
209
|
-
filePath:
|
|
210
|
-
ignoreInvalidStyle:
|
|
211
|
-
passKeys:
|
|
212
|
-
passNode:
|
|
213
|
-
schema:
|
|
214
|
-
stylePropertyNameCase:
|
|
215
|
-
tableCellAlignToStyle:
|
|
216
|
-
}, o = ge(a,
|
|
217
|
-
return o && typeof o != "string" ? o : a.create(
|
|
206
|
+
components: t.components || {},
|
|
207
|
+
create: r,
|
|
208
|
+
elementAttributeNameCase: t.elementAttributeNameCase || "react",
|
|
209
|
+
evaluater: t.createEvaluater ? t.createEvaluater() : void 0,
|
|
210
|
+
filePath: n,
|
|
211
|
+
ignoreInvalidStyle: t.ignoreInvalidStyle || !1,
|
|
212
|
+
passKeys: t.passKeys !== !1,
|
|
213
|
+
passNode: t.passNode || !1,
|
|
214
|
+
schema: t.space === "svg" ? i : d,
|
|
215
|
+
stylePropertyNameCase: t.stylePropertyNameCase || "dom",
|
|
216
|
+
tableCellAlignToStyle: t.tableCellAlignToStyle !== !1
|
|
217
|
+
}, o = ge(a, e, void 0);
|
|
218
|
+
return o && typeof o != "string" ? o : a.create(e, a.Fragment, { children: o || void 0 }, void 0);
|
|
218
219
|
}
|
|
219
220
|
function ge(e, t, n) {
|
|
220
221
|
if (t.type === "element") return _e(e, t, n);
|
|
@@ -224,13 +225,13 @@ function ge(e, t, n) {
|
|
|
224
225
|
if (t.type === "root") return xe(e, t, n);
|
|
225
226
|
if (t.type === "text") return Se(e, t);
|
|
226
227
|
}
|
|
227
|
-
function _e(t, n
|
|
228
|
-
let
|
|
229
|
-
|
|
230
|
-
let o = Me(
|
|
231
|
-
return fe.has(
|
|
228
|
+
function _e(e, t, n) {
|
|
229
|
+
let r = e.schema, a = r;
|
|
230
|
+
t.tagName.toLowerCase() === "svg" && r.space === "html" && (a = i, e.schema = a), e.ancestors.push(t);
|
|
231
|
+
let o = Me(e, t.tagName, !1), s = De(e, t), c = ke(e, t);
|
|
232
|
+
return fe.has(t.tagName) && (c = c.filter(function(e) {
|
|
232
233
|
return typeof e == "string" ? !V(e) : !0;
|
|
233
|
-
})), Ce(
|
|
234
|
+
})), Ce(e, s, o, t), we(s, c), e.ancestors.pop(), e.schema = r, e.create(t, o, s, n);
|
|
234
235
|
}
|
|
235
236
|
function ve(e, t) {
|
|
236
237
|
if (t.data && t.data.estree && e.evaluater) {
|
|
@@ -243,11 +244,11 @@ function ye(e, t) {
|
|
|
243
244
|
if (t.data && t.data.estree && e.evaluater) return e.evaluater.evaluateProgram(t.data.estree);
|
|
244
245
|
K(e, t.position);
|
|
245
246
|
}
|
|
246
|
-
function be(t, n
|
|
247
|
-
let
|
|
248
|
-
|
|
249
|
-
let o =
|
|
250
|
-
return Ce(
|
|
247
|
+
function be(e, t, n) {
|
|
248
|
+
let r = e.schema, a = r;
|
|
249
|
+
t.name === "svg" && r.space === "html" && (a = i, e.schema = a), e.ancestors.push(t);
|
|
250
|
+
let o = t.name === null ? e.Fragment : Me(e, t.name, !0), s = Oe(e, t), c = ke(e, t);
|
|
251
|
+
return Ce(e, s, o, t), we(s, c), e.ancestors.pop(), e.schema = r, e.create(t, o, s, n);
|
|
251
252
|
}
|
|
252
253
|
function xe(e, t, n) {
|
|
253
254
|
let r = {};
|
|
@@ -275,7 +276,7 @@ function Te(e, t, n) {
|
|
|
275
276
|
function Ee(e, t) {
|
|
276
277
|
return n;
|
|
277
278
|
function n(n, r, i, a) {
|
|
278
|
-
let o = Array.isArray(i.children), s =
|
|
279
|
+
let o = Array.isArray(i.children), s = u(n);
|
|
279
280
|
return t(r, i, a, o, {
|
|
280
281
|
columnNumber: s ? s.column - 1 : void 0,
|
|
281
282
|
fileName: e,
|
|
@@ -336,13 +337,13 @@ function ke(e, t) {
|
|
|
336
337
|
return n;
|
|
337
338
|
}
|
|
338
339
|
function Ae(e, t, n) {
|
|
339
|
-
let r =
|
|
340
|
+
let r = o(e.schema, t);
|
|
340
341
|
if (!(n == null || typeof n == "number" && Number.isNaN(n))) {
|
|
341
|
-
if (Array.isArray(n) && (n = r.commaSeparated ?
|
|
342
|
+
if (Array.isArray(n) && (n = r.commaSeparated ? l(n) : c(n)), r.property === "style") {
|
|
342
343
|
let t = typeof n == "object" ? n : je(e, String(n));
|
|
343
344
|
return e.stylePropertyNameCase === "css" && (t = Ne(t)), ["style", t];
|
|
344
345
|
}
|
|
345
|
-
return [e.elementAttributeNameCase === "react" && r.space ?
|
|
346
|
+
return [e.elementAttributeNameCase === "react" && r.space ? p[r.property] || r.property : r.attribute, n];
|
|
346
347
|
}
|
|
347
348
|
}
|
|
348
349
|
function je(e, t) {
|
|
@@ -2036,7 +2037,7 @@ function jn(e, t) {
|
|
|
2036
2037
|
}
|
|
2037
2038
|
//#endregion
|
|
2038
2039
|
//#region node_modules/micromark/lib/constructs.js
|
|
2039
|
-
var Mn = /* @__PURE__ */
|
|
2040
|
+
var Mn = /* @__PURE__ */ t({
|
|
2040
2041
|
attentionMarkers: () => Bn,
|
|
2041
2042
|
contentInitial: () => Pn,
|
|
2042
2043
|
disable: () => Vn,
|
|
@@ -3236,10 +3237,10 @@ function Er(e, t) {
|
|
|
3236
3237
|
tagName: "tbody",
|
|
3237
3238
|
properties: {},
|
|
3238
3239
|
children: e.wrap(n, !0)
|
|
3239
|
-
}, a =
|
|
3240
|
-
a &&
|
|
3240
|
+
}, a = u(t.children[1]), o = s(t.children[t.children.length - 1]);
|
|
3241
|
+
a && o && (r.position = {
|
|
3241
3242
|
start: a,
|
|
3242
|
-
end:
|
|
3243
|
+
end: o
|
|
3243
3244
|
}), i.push(r);
|
|
3244
3245
|
}
|
|
3245
3246
|
let a = {
|
|
@@ -3431,7 +3432,7 @@ function zr(e) {
|
|
|
3431
3432
|
type: "element",
|
|
3432
3433
|
tagName: a,
|
|
3433
3434
|
properties: {
|
|
3434
|
-
...
|
|
3435
|
+
...f(o),
|
|
3435
3436
|
id: "footnote-label"
|
|
3436
3437
|
},
|
|
3437
3438
|
children: [{
|
|
@@ -3460,46 +3461,46 @@ function zr(e) {
|
|
|
3460
3461
|
//#region node_modules/mdast-util-to-hast/lib/state.js
|
|
3461
3462
|
var Br = {}.hasOwnProperty, Vr = {};
|
|
3462
3463
|
function Hr(e, t) {
|
|
3463
|
-
let n = t || Vr,
|
|
3464
|
-
all:
|
|
3464
|
+
let n = t || Vr, i = /* @__PURE__ */ new Map(), a = /* @__PURE__ */ new Map(), o = {
|
|
3465
|
+
all: c,
|
|
3465
3466
|
applyData: Wr,
|
|
3466
|
-
definitionById:
|
|
3467
|
-
footnoteById:
|
|
3467
|
+
definitionById: i,
|
|
3468
|
+
footnoteById: a,
|
|
3468
3469
|
footnoteCounts: /* @__PURE__ */ new Map(),
|
|
3469
3470
|
footnoteOrder: [],
|
|
3470
3471
|
handlers: {
|
|
3471
3472
|
...Fr,
|
|
3472
3473
|
...n.handlers
|
|
3473
3474
|
},
|
|
3474
|
-
one:
|
|
3475
|
+
one: s,
|
|
3475
3476
|
options: n,
|
|
3476
3477
|
patch: Ur,
|
|
3477
3478
|
wrap: Kr
|
|
3478
3479
|
};
|
|
3479
|
-
return
|
|
3480
|
+
return r(e, function(e) {
|
|
3480
3481
|
if (e.type === "definition" || e.type === "footnoteDefinition") {
|
|
3481
|
-
let t = e.type === "definition" ?
|
|
3482
|
+
let t = e.type === "definition" ? i : a, n = String(e.identifier).toUpperCase();
|
|
3482
3483
|
t.has(n) || t.set(n, e);
|
|
3483
3484
|
}
|
|
3484
|
-
}),
|
|
3485
|
-
function
|
|
3486
|
-
let n = e.type, r =
|
|
3487
|
-
if (Br.call(
|
|
3488
|
-
if (
|
|
3485
|
+
}), o;
|
|
3486
|
+
function s(e, t) {
|
|
3487
|
+
let n = e.type, r = o.handlers[n];
|
|
3488
|
+
if (Br.call(o.handlers, n) && r) return r(o, e, t);
|
|
3489
|
+
if (o.options.passThrough && o.options.passThrough.includes(n)) {
|
|
3489
3490
|
if ("children" in e) {
|
|
3490
|
-
let { children: t, ...n } = e, r =
|
|
3491
|
-
return r.children =
|
|
3491
|
+
let { children: t, ...n } = e, r = f(n);
|
|
3492
|
+
return r.children = o.all(e), r;
|
|
3492
3493
|
}
|
|
3493
|
-
return
|
|
3494
|
+
return f(e);
|
|
3494
3495
|
}
|
|
3495
|
-
return (
|
|
3496
|
+
return (o.options.unknownHandler || Gr)(o, e, t);
|
|
3496
3497
|
}
|
|
3497
|
-
function
|
|
3498
|
+
function c(e) {
|
|
3498
3499
|
let t = [];
|
|
3499
3500
|
if ("children" in e) {
|
|
3500
3501
|
let n = e.children, r = -1;
|
|
3501
3502
|
for (; ++r < n.length;) {
|
|
3502
|
-
let i =
|
|
3503
|
+
let i = o.one(n[r], e);
|
|
3503
3504
|
if (i) {
|
|
3504
3505
|
if (r && n[r - 1].type === "break" && (!Array.isArray(i) && i.type === "text" && (i.value = qr(i.value)), !Array.isArray(i) && i.type === "element")) {
|
|
3505
3506
|
let e = i.children[0];
|
|
@@ -3513,7 +3514,7 @@ function Hr(e, t) {
|
|
|
3513
3514
|
}
|
|
3514
3515
|
}
|
|
3515
3516
|
function Ur(e, t) {
|
|
3516
|
-
e.position && (t.position =
|
|
3517
|
+
e.position && (t.position = a(e));
|
|
3517
3518
|
}
|
|
3518
3519
|
function Wr(e, t) {
|
|
3519
3520
|
let n = t;
|
|
@@ -3524,7 +3525,7 @@ function Wr(e, t) {
|
|
|
3524
3525
|
tagName: t,
|
|
3525
3526
|
properties: {},
|
|
3526
3527
|
children: "children" in n ? n.children : [n]
|
|
3527
|
-
}), n.type === "element" && i && Object.assign(n.properties,
|
|
3528
|
+
}), n.type === "element" && i && Object.assign(n.properties, f(i)), "children" in n && n.children && r != null && (n.children = r);
|
|
3528
3529
|
}
|
|
3529
3530
|
return n;
|
|
3530
3531
|
}
|
|
@@ -3597,7 +3598,7 @@ function Xr(e) {
|
|
|
3597
3598
|
}
|
|
3598
3599
|
//#endregion
|
|
3599
3600
|
//#region node_modules/extend/index.js
|
|
3600
|
-
var Zr = /* @__PURE__ */
|
|
3601
|
+
var Zr = /* @__PURE__ */ n(((e, t) => {
|
|
3601
3602
|
var n = Object.prototype.hasOwnProperty, r = Object.prototype.toString, i = Object.defineProperty, a = Object.getOwnPropertyDescriptor, o = function(e) {
|
|
3602
3603
|
return typeof Array.isArray == "function" ? Array.isArray(e) : r.call(e) === "[object Array]";
|
|
3603
3604
|
}, s = function(e) {
|
|
@@ -3916,7 +3917,7 @@ var vi = (function(e) {
|
|
|
3916
3917
|
return n.apply(r, arguments);
|
|
3917
3918
|
};
|
|
3918
3919
|
return Object.setPrototypeOf(r, t), r;
|
|
3919
|
-
}), yi = /* @__PURE__ */
|
|
3920
|
+
}), yi = /* @__PURE__ */ e(Zr(), 1), bi = {}.hasOwnProperty, xi = new class e extends vi {
|
|
3920
3921
|
constructor() {
|
|
3921
3922
|
super("copy"), this.Compiler = void 0, this.Parser = void 0, this.attachers = [], this.compiler = void 0, this.freezeIndex = -1, this.frozen = void 0, this.namespace = {}, this.parser = void 0, this.transformers = $r();
|
|
3922
3923
|
}
|
|
@@ -4183,19 +4184,19 @@ function zi(e) {
|
|
|
4183
4184
|
return typeof t == "string" ? n.value = t : "" + t, n;
|
|
4184
4185
|
}
|
|
4185
4186
|
function Bi(e, t) {
|
|
4186
|
-
let n = t.allowedElements,
|
|
4187
|
+
let n = t.allowedElements, i = t.allowElement, a = t.components, o = t.disallowedElements, s = t.skipHtml, c = t.unwrapDisallowed, l = t.urlTransform || Vi;
|
|
4187
4188
|
for (let e of Pi) Object.hasOwn(t, e.from) && "" + e.from + (e.to ? "use `" + e.to + "` instead" : "remove it") + e.id;
|
|
4188
|
-
return
|
|
4189
|
+
return r(e, u), he(e, {
|
|
4189
4190
|
Fragment: F,
|
|
4190
|
-
components:
|
|
4191
|
+
components: a,
|
|
4191
4192
|
ignoreInvalidStyle: !0,
|
|
4192
4193
|
jsx: I,
|
|
4193
4194
|
jsxs: ee,
|
|
4194
4195
|
passKeys: !0,
|
|
4195
4196
|
passNode: !0
|
|
4196
4197
|
});
|
|
4197
|
-
function
|
|
4198
|
-
if (e.type === "raw" &&
|
|
4198
|
+
function u(e, t, r) {
|
|
4199
|
+
if (e.type === "raw" && r && typeof t == "number") return s ? r.children.splice(t, 1) : r.children[t] = {
|
|
4199
4200
|
type: "text",
|
|
4200
4201
|
value: e.value
|
|
4201
4202
|
}, t;
|
|
@@ -4203,12 +4204,12 @@ function Bi(e, t) {
|
|
|
4203
4204
|
let t;
|
|
4204
4205
|
for (t in Ie) if (Object.hasOwn(Ie, t) && Object.hasOwn(e.properties, t)) {
|
|
4205
4206
|
let n = e.properties[t], r = Ie[t];
|
|
4206
|
-
(r === null || r.includes(e.tagName)) && (e.properties[t] =
|
|
4207
|
+
(r === null || r.includes(e.tagName)) && (e.properties[t] = l(String(n || ""), t, e));
|
|
4207
4208
|
}
|
|
4208
4209
|
}
|
|
4209
4210
|
if (e.type === "element") {
|
|
4210
|
-
let
|
|
4211
|
-
if (!
|
|
4211
|
+
let a = n ? !n.includes(e.tagName) : o ? o.includes(e.tagName) : !1;
|
|
4212
|
+
if (!a && i && typeof t == "number" && (a = !i(e, t, r)), a && r && typeof t == "number") return c && e.children ? r.children.splice(t, 1, ...e.children) : r.children.splice(t, 1), t;
|
|
4212
4213
|
}
|
|
4213
4214
|
}
|
|
4214
4215
|
}
|