@oxide/react-asciidoc 1.1.3 → 1.1.4--canary.b97a529.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/dist/react-asciidoc.js +116 -103
- package/dist/react-asciidoc.umd.cjs +9 -9
- package/package.json +1 -1
package/dist/react-asciidoc.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import ae, { Fragment as jr, createElement as G, createContext as He, useContext as se } from "react";
|
|
2
|
-
import
|
|
2
|
+
import j from "html-react-parser";
|
|
3
3
|
import { default as It } from "html-react-parser";
|
|
4
4
|
var Xr = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
5
5
|
function $e(r) {
|
|
@@ -20,9 +20,9 @@ function ze() {
|
|
|
20
20
|
if (Qr) return Q;
|
|
21
21
|
Qr = 1;
|
|
22
22
|
var r = ae, a = Symbol.for("react.element"), s = Symbol.for("react.fragment"), o = Object.prototype.hasOwnProperty, n = r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, p = { key: !0, ref: !0, __self: !0, __source: !0 };
|
|
23
|
-
function m(i, c,
|
|
23
|
+
function m(i, c, E) {
|
|
24
24
|
var y, h = {}, u = null, f = null;
|
|
25
|
-
|
|
25
|
+
E !== void 0 && (u = "" + E), c.key !== void 0 && (u = "" + c.key), c.ref !== void 0 && (f = c.ref);
|
|
26
26
|
for (y in c) o.call(c, y) && !p.hasOwnProperty(y) && (h[y] = c[y]);
|
|
27
27
|
if (i && i.defaultProps) for (y in c = i.defaultProps, c) h[y] === void 0 && (h[y] = c[y]);
|
|
28
28
|
return { $$typeof: a, type: i, key: u, ref: f, props: h, _owner: n.current };
|
|
@@ -42,7 +42,7 @@ var rr = {};
|
|
|
42
42
|
var re;
|
|
43
43
|
function Ge() {
|
|
44
44
|
return re || (re = 1, process.env.NODE_ENV !== "production" && function() {
|
|
45
|
-
var r = ae, a = Symbol.for("react.element"), s = Symbol.for("react.portal"), o = Symbol.for("react.fragment"), n = Symbol.for("react.strict_mode"), p = Symbol.for("react.profiler"), m = Symbol.for("react.provider"), i = Symbol.for("react.context"), c = Symbol.for("react.forward_ref"),
|
|
45
|
+
var r = ae, a = Symbol.for("react.element"), s = Symbol.for("react.portal"), o = Symbol.for("react.fragment"), n = Symbol.for("react.strict_mode"), p = Symbol.for("react.profiler"), m = Symbol.for("react.provider"), i = Symbol.for("react.context"), c = Symbol.for("react.forward_ref"), E = Symbol.for("react.suspense"), y = Symbol.for("react.suspense_list"), h = Symbol.for("react.memo"), u = Symbol.for("react.lazy"), f = Symbol.for("react.offscreen"), w = Symbol.iterator, C = "@@iterator";
|
|
46
46
|
function O(t) {
|
|
47
47
|
if (t === null || typeof t != "object")
|
|
48
48
|
return null;
|
|
@@ -50,7 +50,7 @@ function Ge() {
|
|
|
50
50
|
return typeof l == "function" ? l : null;
|
|
51
51
|
}
|
|
52
52
|
var F = r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
53
|
-
function
|
|
53
|
+
function N(t) {
|
|
54
54
|
{
|
|
55
55
|
for (var l = arguments.length, d = new Array(l > 1 ? l - 1 : 0), g = 1; g < l; g++)
|
|
56
56
|
d[g - 1] = arguments[g];
|
|
@@ -70,7 +70,7 @@ function Ge() {
|
|
|
70
70
|
var J = !1, ar = !1, ue = !1, pe = !1, de = !1, kr;
|
|
71
71
|
kr = Symbol.for("react.module.reference");
|
|
72
72
|
function me(t) {
|
|
73
|
-
return !!(typeof t == "string" || typeof t == "function" || t === o || t === p || de || t === n || t ===
|
|
73
|
+
return !!(typeof t == "string" || typeof t == "function" || t === o || t === p || de || t === n || t === E || t === y || pe || t === f || J || ar || ue || typeof t == "object" && t !== null && (t.$$typeof === u || t.$$typeof === h || t.$$typeof === m || t.$$typeof === i || t.$$typeof === c || // This needs to include all possible module reference object
|
|
74
74
|
// types supported by any Flight configuration anywhere since
|
|
75
75
|
// we don't know which Flight build this will end up being used
|
|
76
76
|
// with.
|
|
@@ -89,7 +89,7 @@ function Ge() {
|
|
|
89
89
|
function U(t) {
|
|
90
90
|
if (t == null)
|
|
91
91
|
return null;
|
|
92
|
-
if (typeof t.tag == "number" &&
|
|
92
|
+
if (typeof t.tag == "number" && N("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof t == "function")
|
|
93
93
|
return t.displayName || t.name || null;
|
|
94
94
|
if (typeof t == "string")
|
|
95
95
|
return t;
|
|
@@ -102,7 +102,7 @@ function Ge() {
|
|
|
102
102
|
return "Profiler";
|
|
103
103
|
case n:
|
|
104
104
|
return "StrictMode";
|
|
105
|
-
case
|
|
105
|
+
case E:
|
|
106
106
|
return "Suspense";
|
|
107
107
|
case y:
|
|
108
108
|
return "SuspenseList";
|
|
@@ -190,7 +190,7 @@ function Ge() {
|
|
|
190
190
|
})
|
|
191
191
|
});
|
|
192
192
|
}
|
|
193
|
-
K < 0 &&
|
|
193
|
+
K < 0 && N("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
|
|
194
194
|
}
|
|
195
195
|
}
|
|
196
196
|
var dr = F.ReactCurrentDispatcher, mr;
|
|
@@ -262,18 +262,18 @@ function Ge() {
|
|
|
262
262
|
if (L && g && typeof L.stack == "string") {
|
|
263
263
|
for (var b = L.stack.split(`
|
|
264
264
|
`), T = g.stack.split(`
|
|
265
|
-
`),
|
|
265
|
+
`), D = b.length - 1, S = T.length - 1; D >= 1 && S >= 0 && b[D] !== T[S]; )
|
|
266
266
|
S--;
|
|
267
|
-
for (;
|
|
268
|
-
if (b[
|
|
269
|
-
if (
|
|
267
|
+
for (; D >= 1 && S >= 0; D--, S--)
|
|
268
|
+
if (b[D] !== T[S]) {
|
|
269
|
+
if (D !== 1 || S !== 1)
|
|
270
270
|
do
|
|
271
|
-
if (
|
|
271
|
+
if (D--, S--, S < 0 || b[D] !== T[S]) {
|
|
272
272
|
var _ = `
|
|
273
|
-
` + b[
|
|
273
|
+
` + b[D].replace(" at new ", " at ");
|
|
274
274
|
return t.displayName && _.includes("<anonymous>") && (_ = _.replace("<anonymous>", t.displayName)), typeof t == "function" && ir.set(t, _), _;
|
|
275
275
|
}
|
|
276
|
-
while (
|
|
276
|
+
while (D >= 1 && S >= 0);
|
|
277
277
|
break;
|
|
278
278
|
}
|
|
279
279
|
}
|
|
@@ -298,7 +298,7 @@ function Ge() {
|
|
|
298
298
|
if (typeof t == "string")
|
|
299
299
|
return sr(t);
|
|
300
300
|
switch (t) {
|
|
301
|
-
case
|
|
301
|
+
case E:
|
|
302
302
|
return sr("Suspense");
|
|
303
303
|
case y:
|
|
304
304
|
return sr("SuspenseList");
|
|
@@ -339,10 +339,10 @@ function Ge() {
|
|
|
339
339
|
throw T.name = "Invariant Violation", T;
|
|
340
340
|
}
|
|
341
341
|
b = t[v](l, v, g, d, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
|
|
342
|
-
} catch (
|
|
343
|
-
b =
|
|
342
|
+
} catch (D) {
|
|
343
|
+
b = D;
|
|
344
344
|
}
|
|
345
|
-
b && !(b instanceof Error) && (or(x),
|
|
345
|
+
b && !(b instanceof Error) && (or(x), N("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", g || "React class", d, v, typeof b), or(null)), b instanceof Error && !(b.message in Ir) && (Ir[b.message] = !0, or(x), N("Failed %s type: %s", d, b.message), or(null));
|
|
346
346
|
}
|
|
347
347
|
}
|
|
348
348
|
}
|
|
@@ -368,7 +368,7 @@ function Ge() {
|
|
|
368
368
|
}
|
|
369
369
|
function Hr(t) {
|
|
370
370
|
if (je(t))
|
|
371
|
-
return
|
|
371
|
+
return N("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", qe(t)), Br(t);
|
|
372
372
|
}
|
|
373
373
|
var X = F.ReactCurrentOwner, Ee = {
|
|
374
374
|
key: !0,
|
|
@@ -396,13 +396,13 @@ function Ge() {
|
|
|
396
396
|
function De(t, l) {
|
|
397
397
|
if (typeof t.ref == "string" && X.current && l && X.current.stateNode !== l) {
|
|
398
398
|
var d = U(X.current.type);
|
|
399
|
-
hr[d] || (
|
|
399
|
+
hr[d] || (N('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref', U(X.current.type), t.ref), hr[d] = !0);
|
|
400
400
|
}
|
|
401
401
|
}
|
|
402
402
|
function ke(t, l) {
|
|
403
403
|
{
|
|
404
404
|
var d = function() {
|
|
405
|
-
$r || ($r = !0,
|
|
405
|
+
$r || ($r = !0, N("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", l));
|
|
406
406
|
};
|
|
407
407
|
d.isReactWarning = !0, Object.defineProperty(t, "key", {
|
|
408
408
|
get: d,
|
|
@@ -413,7 +413,7 @@ function Ge() {
|
|
|
413
413
|
function Se(t, l) {
|
|
414
414
|
{
|
|
415
415
|
var d = function() {
|
|
416
|
-
zr || (zr = !0,
|
|
416
|
+
zr || (zr = !0, N("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", l));
|
|
417
417
|
};
|
|
418
418
|
d.isReactWarning = !0, Object.defineProperty(t, "ref", {
|
|
419
419
|
get: d,
|
|
@@ -457,9 +457,9 @@ function Ge() {
|
|
|
457
457
|
for (q in l)
|
|
458
458
|
Z.call(l, q) && !Ee.hasOwnProperty(q) && (v[q] = l[q]);
|
|
459
459
|
if (t && t.defaultProps) {
|
|
460
|
-
var
|
|
461
|
-
for (q in
|
|
462
|
-
v[q] === void 0 && (v[q] =
|
|
460
|
+
var D = t.defaultProps;
|
|
461
|
+
for (q in D)
|
|
462
|
+
v[q] === void 0 && (v[q] = D[q]);
|
|
463
463
|
}
|
|
464
464
|
if (b || T) {
|
|
465
465
|
var S = typeof t == "function" ? t.displayName || t.name || "Unknown" : t;
|
|
@@ -519,7 +519,7 @@ Check the top-level render call using <` + d + ">.");
|
|
|
519
519
|
return;
|
|
520
520
|
Yr[d] = !0;
|
|
521
521
|
var g = "";
|
|
522
|
-
t && t._owner && t._owner !== br.current && (g = " It was passed a child from " + U(t._owner.type) + "."), $(t),
|
|
522
|
+
t && t._owner && t._owner !== br.current && (g = " It was passed a child from " + U(t._owner.type) + "."), $(t), N('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', d, g), $(null);
|
|
523
523
|
}
|
|
524
524
|
}
|
|
525
525
|
function Jr(t, l) {
|
|
@@ -561,9 +561,9 @@ Check the top-level render call using <` + d + ">.");
|
|
|
561
561
|
} else if (l.PropTypes !== void 0 && !vr) {
|
|
562
562
|
vr = !0;
|
|
563
563
|
var x = U(l);
|
|
564
|
-
|
|
564
|
+
N("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", x || "Unknown");
|
|
565
565
|
}
|
|
566
|
-
typeof l.getDefaultProps == "function" && !l.getDefaultProps.isReactClassApproved &&
|
|
566
|
+
typeof l.getDefaultProps == "function" && !l.getDefaultProps.isReactClassApproved && N("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
|
|
567
567
|
}
|
|
568
568
|
}
|
|
569
569
|
function _e(t) {
|
|
@@ -571,11 +571,11 @@ Check the top-level render call using <` + d + ">.");
|
|
|
571
571
|
for (var l = Object.keys(t.props), d = 0; d < l.length; d++) {
|
|
572
572
|
var g = l[d];
|
|
573
573
|
if (g !== "children" && g !== "key") {
|
|
574
|
-
$(t),
|
|
574
|
+
$(t), N("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", g), $(null);
|
|
575
575
|
break;
|
|
576
576
|
}
|
|
577
577
|
}
|
|
578
|
-
t.ref !== null && ($(t),
|
|
578
|
+
t.ref !== null && ($(t), N("Invalid attribute `ref` supplied to `React.Fragment`."), $(null));
|
|
579
579
|
}
|
|
580
580
|
}
|
|
581
581
|
var Kr = {};
|
|
@@ -587,8 +587,8 @@ Check the top-level render call using <` + d + ">.");
|
|
|
587
587
|
(t === void 0 || typeof t == "object" && t !== null && Object.keys(t).length === 0) && (b += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
|
|
588
588
|
var T = Ce();
|
|
589
589
|
T ? b += T : b += Mr();
|
|
590
|
-
var
|
|
591
|
-
t === null ?
|
|
590
|
+
var D;
|
|
591
|
+
t === null ? D = "null" : fr(t) ? D = "array" : t !== void 0 && t.$$typeof === a ? (D = "<" + (U(t.type) || "Unknown") + " />", b = " Did you accidentally export a JSX literal instead of a component?") : D = typeof t, N("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", D, b);
|
|
592
592
|
}
|
|
593
593
|
var S = Te(t, l, d, x, q);
|
|
594
594
|
if (S == null)
|
|
@@ -602,7 +602,7 @@ Check the top-level render call using <` + d + ">.");
|
|
|
602
602
|
Jr(_[z], t);
|
|
603
603
|
Object.freeze && Object.freeze(_);
|
|
604
604
|
} else
|
|
605
|
-
|
|
605
|
+
N("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
|
|
606
606
|
else
|
|
607
607
|
Jr(_, t);
|
|
608
608
|
}
|
|
@@ -612,7 +612,7 @@ Check the top-level render call using <` + d + ">.");
|
|
|
612
612
|
}), yr = L.length > 0 ? "{key: someKey, " + L.join(": ..., ") + ": ...}" : "{key: someKey}";
|
|
613
613
|
if (!Kr[B + yr]) {
|
|
614
614
|
var Ve = L.length > 0 ? "{" + L.join(": ..., ") + ": ...}" : "{}";
|
|
615
|
-
|
|
615
|
+
N(`A props object containing a "key" prop is being spread into JSX:
|
|
616
616
|
let props = %s;
|
|
617
617
|
<%s {...props} />
|
|
618
618
|
React keys must be passed directly to JSX without using spread:
|
|
@@ -635,7 +635,7 @@ React keys must be passed directly to JSX without using spread:
|
|
|
635
635
|
}
|
|
636
636
|
process.env.NODE_ENV === "production" ? Er.exports = ze() : Er.exports = Ge();
|
|
637
637
|
var e = Er.exports;
|
|
638
|
-
const k = ({ text: r }) => r ? /* @__PURE__ */ e.jsx("div", { className: "title", children:
|
|
638
|
+
const k = ({ text: r }) => r ? /* @__PURE__ */ e.jsx("div", { className: "title", children: j(r) }) : null, Me = ({ node: r }) => {
|
|
639
639
|
const { document: a } = I(), s = a.attributes || {}, o = r.attributes, n = () => s.icons === "font" && !o.icon ? /* @__PURE__ */ e.jsx("i", { className: `fa icon-${o.name}`, title: `${o.textlabel}` }) : /* @__PURE__ */ e.jsx("img", { src: r.iconUri, alt: `${o.textlabel}` });
|
|
640
640
|
return /* @__PURE__ */ e.jsx(
|
|
641
641
|
"div",
|
|
@@ -646,7 +646,7 @@ const k = ({ text: r }) => r ? /* @__PURE__ */ e.jsx("div", { className: "title"
|
|
|
646
646
|
/* @__PURE__ */ e.jsx("td", { className: "icon", children: s.icons ? n() : /* @__PURE__ */ e.jsx("div", { className: "title", children: o.textlabel }) }),
|
|
647
647
|
/* @__PURE__ */ e.jsxs("td", { className: "content", children: [
|
|
648
648
|
/* @__PURE__ */ e.jsx(k, { text: r.title }),
|
|
649
|
-
r.content &&
|
|
649
|
+
r.content && j(r.content),
|
|
650
650
|
/* @__PURE__ */ e.jsx(R, { blocks: r.blocks })
|
|
651
651
|
] })
|
|
652
652
|
] }) }) })
|
|
@@ -682,7 +682,7 @@ const k = ({ text: r }) => r ? /* @__PURE__ */ e.jsx("div", { className: "title"
|
|
|
682
682
|
/* @__PURE__ */ e.jsx("b", { children: s + 1 })
|
|
683
683
|
] }),
|
|
684
684
|
/* @__PURE__ */ e.jsxs("td", { children: [
|
|
685
|
-
a.text &&
|
|
685
|
+
a.text && j(a.text),
|
|
686
686
|
/* @__PURE__ */ e.jsx(R, { blocks: a.blocks })
|
|
687
687
|
] })
|
|
688
688
|
] }, s)) }) })
|
|
@@ -724,7 +724,7 @@ var ie = { exports: {} };
|
|
|
724
724
|
})();
|
|
725
725
|
})(ie);
|
|
726
726
|
var Je = ie.exports;
|
|
727
|
-
const
|
|
727
|
+
const A = /* @__PURE__ */ $e(Je);
|
|
728
728
|
var cr = {}, ur = {};
|
|
729
729
|
Object.defineProperty(ur, "__esModule", { value: !0 });
|
|
730
730
|
ur.bodyRegExps = { xml: /&(?:#\d+|#[xX][\da-fA-F]+|[0-9a-zA-Z]+);?/g, html4: /∉|&(?:nbsp|iexcl|cent|pound|curren|yen|brvbar|sect|uml|copy|ordf|laquo|not|shy|reg|macr|deg|plusmn|sup2|sup3|acute|micro|para|middot|cedil|sup1|ordm|raquo|frac14|frac12|frac34|iquest|Agrave|Aacute|Acirc|Atilde|Auml|Aring|AElig|Ccedil|Egrave|Eacute|Ecirc|Euml|Igrave|Iacute|Icirc|Iuml|ETH|Ntilde|Ograve|Oacute|Ocirc|Otilde|Ouml|times|Oslash|Ugrave|Uacute|Ucirc|Uuml|Yacute|THORN|szlig|agrave|aacute|acirc|atilde|auml|aring|aelig|ccedil|egrave|eacute|ecirc|euml|igrave|iacute|icirc|iuml|eth|ntilde|ograve|oacute|ocirc|otilde|ouml|divide|oslash|ugrave|uacute|ucirc|uuml|yacute|thorn|yuml|quot|amp|lt|gt|#\d+|#[xX][\da-fA-F]+|[0-9a-zA-Z]+);?/g, html5: /·|℗|⋇|⪧|⩺|⋗|⦕|⩼|⪆|⥸|⋗|⋛|⪌|≷|≳|⪦|⩹|⋖|⋋|⋉|⥶|⩻|⦖|◃|⊴|◂|∉|⋹̸|⋵̸|∉|⋷|⋶|∌|∌|⋾|⋽|∥|⊠|⨱|⨰|&(?:AElig|AMP|Aacute|Acirc|Agrave|Aring|Atilde|Auml|COPY|Ccedil|ETH|Eacute|Ecirc|Egrave|Euml|GT|Iacute|Icirc|Igrave|Iuml|LT|Ntilde|Oacute|Ocirc|Ograve|Oslash|Otilde|Ouml|QUOT|REG|THORN|Uacute|Ucirc|Ugrave|Uuml|Yacute|aacute|acirc|acute|aelig|agrave|amp|aring|atilde|auml|brvbar|ccedil|cedil|cent|copy|curren|deg|divide|eacute|ecirc|egrave|eth|euml|frac12|frac14|frac34|gt|iacute|icirc|iexcl|igrave|iquest|iuml|laquo|lt|macr|micro|middot|nbsp|not|ntilde|oacute|ocirc|ograve|ordf|ordm|oslash|otilde|ouml|para|plusmn|pound|quot|raquo|reg|sect|shy|sup1|sup2|sup3|szlig|thorn|times|uacute|ucirc|ugrave|uml|uuml|yacute|yen|yuml|#\d+|#[xX][\da-fA-F]+|[0-9a-zA-Z]+);?/g };
|
|
@@ -777,8 +777,8 @@ function Qe(r, a) {
|
|
|
777
777
|
var s = a === void 0 ? Xe : a, o = s.mode, n = o === void 0 ? "specialChars" : o, p = s.numeric, m = p === void 0 ? "decimal" : p, i = s.level, c = i === void 0 ? "all" : i;
|
|
778
778
|
if (!r)
|
|
779
779
|
return "";
|
|
780
|
-
var
|
|
781
|
-
return oe(r,
|
|
780
|
+
var E = Ze[n], y = Ar[c].characters, h = m === "hexadecimal";
|
|
781
|
+
return oe(r, E, function(u) {
|
|
782
782
|
var f = y[u];
|
|
783
783
|
if (!f) {
|
|
784
784
|
var w = u.length > 1 ? le.getCodePoint(u, 0) : u.charCodeAt(0);
|
|
@@ -815,9 +815,9 @@ function it(r, a) {
|
|
|
815
815
|
var s = a === void 0 ? rt : a, o = s.level, n = o === void 0 ? "all" : o, p = s.scope, m = p === void 0 ? n === "xml" ? "strict" : "body" : p;
|
|
816
816
|
if (!r)
|
|
817
817
|
return "";
|
|
818
|
-
var i = et[n][m], c = Ar[n].entities,
|
|
818
|
+
var i = et[n][m], c = Ar[n].entities, E = m === "attribute", y = m === "strict";
|
|
819
819
|
return oe(r, i, function(h) {
|
|
820
|
-
return ce(h, c,
|
|
820
|
+
return ce(h, c, E, y);
|
|
821
821
|
});
|
|
822
822
|
}
|
|
823
823
|
var lt = cr.decode = it;
|
|
@@ -842,14 +842,14 @@ const tr = (r, a) => r[`${a}-option`] !== void 0, nr = (r, a, s = void 0, o, n)
|
|
|
842
842
|
var m;
|
|
843
843
|
let a;
|
|
844
844
|
function s(i) {
|
|
845
|
-
const c = i.getNodeName && i.getNodeName(),
|
|
845
|
+
const c = i.getNodeName && i.getNodeName(), E = i.getContentModel && i.getContentModel(), y = c && i.hasBlocks() ? i.getBlocks().map((u) => s(u)) : [];
|
|
846
846
|
let h = {
|
|
847
847
|
id: i.getId && i.getId(),
|
|
848
848
|
type: c,
|
|
849
849
|
blocks: y,
|
|
850
850
|
content: y.length > 0 ? void 0 : ot(i),
|
|
851
851
|
attributes: i.getAttributes && i.getAttributes(),
|
|
852
|
-
contentModel:
|
|
852
|
+
contentModel: E,
|
|
853
853
|
lineNumber: i.getLineNumber && i.getLineNumber(),
|
|
854
854
|
style: i.getStyle && i.getStyle(),
|
|
855
855
|
role: i.getRole && i.getRole(),
|
|
@@ -911,7 +911,7 @@ const tr = (r, a) => r[`${a}-option`] !== void 0, nr = (r, a, s = void 0, o, n)
|
|
|
911
911
|
style: O.getStyle()
|
|
912
912
|
}));
|
|
913
913
|
const w = (O) => O.map(
|
|
914
|
-
(F) => F.map((
|
|
914
|
+
(F) => F.map((N) => s(N))
|
|
915
915
|
), C = f.getRows();
|
|
916
916
|
u.rows = {
|
|
917
917
|
head: w(C.head),
|
|
@@ -979,10 +979,10 @@ const tr = (r, a) => r[`${a}-option`] !== void 0, nr = (r, a, s = void 0, o, n)
|
|
|
979
979
|
text: i.getText(),
|
|
980
980
|
index: i.getIndex()
|
|
981
981
|
}))), r.getAuthors() && (a.authors = r.getAuthors().map((i) => {
|
|
982
|
-
const c = i.getName(),
|
|
982
|
+
const c = i.getName(), E = i.getEmail();
|
|
983
983
|
return {
|
|
984
984
|
name: c ? r.applySubstitutions(c).toString() : void 0,
|
|
985
|
-
email:
|
|
985
|
+
email: E ? r.applySubstitutions(E).toString() : void 0
|
|
986
986
|
};
|
|
987
987
|
})), a;
|
|
988
988
|
}, _t = async (r, a) => {
|
|
@@ -1013,7 +1013,7 @@ const tr = (r, a) => r[`${a}-option`] !== void 0, nr = (r, a, s = void 0, o, n)
|
|
|
1013
1013
|
}, s = (o) => {
|
|
1014
1014
|
if (o)
|
|
1015
1015
|
return /* @__PURE__ */ e.jsxs("dd", { children: [
|
|
1016
|
-
o.text && /* @__PURE__ */ e.jsx("p", { children:
|
|
1016
|
+
o.text && /* @__PURE__ */ e.jsx("p", { children: j(o.text) }),
|
|
1017
1017
|
/* @__PURE__ */ e.jsx(R, { blocks: o.blocks })
|
|
1018
1018
|
] });
|
|
1019
1019
|
};
|
|
@@ -1021,7 +1021,7 @@ const tr = (r, a) => r[`${a}-option`] !== void 0, nr = (r, a, s = void 0, o, n)
|
|
|
1021
1021
|
return /* @__PURE__ */ e.jsxs(
|
|
1022
1022
|
"div",
|
|
1023
1023
|
{
|
|
1024
|
-
className:
|
|
1024
|
+
className: A("qlist qanda", r.role),
|
|
1025
1025
|
...r.lineNumber ? { "data-lineno": r.lineNumber } : {},
|
|
1026
1026
|
children: [
|
|
1027
1027
|
/* @__PURE__ */ e.jsx(k, { text: r.title }),
|
|
@@ -1029,7 +1029,7 @@ const tr = (r, a) => r[`${a}-option`] !== void 0, nr = (r, a, s = void 0, o, n)
|
|
|
1029
1029
|
const { terms: p, dd: m } = a(o);
|
|
1030
1030
|
if (p)
|
|
1031
1031
|
return /* @__PURE__ */ e.jsxs("li", { children: [
|
|
1032
|
-
p.map((i, c) => /* @__PURE__ */ e.jsx("p", { children: /* @__PURE__ */ e.jsx("em", { children:
|
|
1032
|
+
p.map((i, c) => /* @__PURE__ */ e.jsx("p", { children: /* @__PURE__ */ e.jsx("em", { children: j(i.text) }) }, c)),
|
|
1033
1033
|
s(m)
|
|
1034
1034
|
] }, n);
|
|
1035
1035
|
}) })
|
|
@@ -1038,7 +1038,7 @@ const tr = (r, a) => r[`${a}-option`] !== void 0, nr = (r, a, s = void 0, o, n)
|
|
|
1038
1038
|
);
|
|
1039
1039
|
if (r.style === "horizontal") {
|
|
1040
1040
|
const o = r.attributes.labelwidth, n = r.attributes.itemwidth;
|
|
1041
|
-
return /* @__PURE__ */ e.jsxs("div", { className:
|
|
1041
|
+
return /* @__PURE__ */ e.jsxs("div", { className: A("hdlist", r.role), children: [
|
|
1042
1042
|
/* @__PURE__ */ e.jsx(k, { text: r.title }),
|
|
1043
1043
|
/* @__PURE__ */ e.jsxs("table", { children: [
|
|
1044
1044
|
(o || n) && /* @__PURE__ */ e.jsxs("colgroup", { children: [
|
|
@@ -1067,18 +1067,18 @@ const tr = (r, a) => r[`${a}-option`] !== void 0, nr = (r, a, s = void 0, o, n)
|
|
|
1067
1067
|
/* @__PURE__ */ e.jsx(
|
|
1068
1068
|
"td",
|
|
1069
1069
|
{
|
|
1070
|
-
className:
|
|
1070
|
+
className: A(
|
|
1071
1071
|
"hdlist1",
|
|
1072
1072
|
tr(r.attributes, "strong") ? "strong" : ""
|
|
1073
1073
|
),
|
|
1074
|
-
children: i.map((
|
|
1074
|
+
children: i.map((E, y) => /* @__PURE__ */ e.jsxs(jr, { children: [
|
|
1075
1075
|
y !== 0 && /* @__PURE__ */ e.jsx("br", {}),
|
|
1076
|
-
|
|
1076
|
+
j(E.text)
|
|
1077
1077
|
] }, y))
|
|
1078
1078
|
}
|
|
1079
1079
|
),
|
|
1080
1080
|
c && /* @__PURE__ */ e.jsxs("td", { className: "hdlist2", children: [
|
|
1081
|
-
c.text && /* @__PURE__ */ e.jsx("p", { children:
|
|
1081
|
+
c.text && /* @__PURE__ */ e.jsx("p", { children: j(c.text) }),
|
|
1082
1082
|
/* @__PURE__ */ e.jsx(R, { blocks: c.blocks })
|
|
1083
1083
|
] })
|
|
1084
1084
|
] }, m);
|
|
@@ -1086,13 +1086,13 @@ const tr = (r, a) => r[`${a}-option`] !== void 0, nr = (r, a, s = void 0, o, n)
|
|
|
1086
1086
|
] })
|
|
1087
1087
|
] });
|
|
1088
1088
|
} else
|
|
1089
|
-
return /* @__PURE__ */ e.jsxs("div", { className:
|
|
1089
|
+
return /* @__PURE__ */ e.jsxs("div", { className: A("dlist", r.style, r.role), children: [
|
|
1090
1090
|
/* @__PURE__ */ e.jsx(k, { text: r.title }),
|
|
1091
1091
|
/* @__PURE__ */ e.jsx("dl", { children: r.items.map((o, n) => {
|
|
1092
1092
|
const { terms: p, dd: m } = a(o);
|
|
1093
1093
|
if (p)
|
|
1094
1094
|
return /* @__PURE__ */ e.jsxs(jr, { children: [
|
|
1095
|
-
p.map((i, c) => /* @__PURE__ */ e.jsx("dt", { className: "hdlist1", children:
|
|
1095
|
+
p.map((i, c) => /* @__PURE__ */ e.jsx("dt", { className: "hdlist1", children: j(i.text) }, c)),
|
|
1096
1096
|
s(m)
|
|
1097
1097
|
] }, n);
|
|
1098
1098
|
}) })
|
|
@@ -1105,12 +1105,12 @@ const tr = (r, a) => r[`${a}-option`] !== void 0, nr = (r, a, s = void 0, o, n)
|
|
|
1105
1105
|
if (!r || r.length === 0) return null;
|
|
1106
1106
|
const o = s.attributes || {}, n = o.sectnumlevels, p = o.toclevels, m = (a == null ? void 0 : a.sectNumLevels) || (n ? parseInt(`${n}`) : 3), i = (a == null ? void 0 : a.tocLevels) || (p ? parseInt(`${p}`) : 2);
|
|
1107
1107
|
return /* @__PURE__ */ e.jsx("ul", { className: `sectlevel${r[0].level}`, children: r.map((c) => {
|
|
1108
|
-
let
|
|
1109
|
-
|
|
1108
|
+
let E = c.num;
|
|
1109
|
+
E = E === "." || E === ".." ? "" : E;
|
|
1110
1110
|
const y = c.level;
|
|
1111
1111
|
let h = c.title;
|
|
1112
|
-
return y <= m && (h = `${
|
|
1113
|
-
/* @__PURE__ */ e.jsx("a", { href: `#${c.id}`, children:
|
|
1112
|
+
return y <= m && (h = `${E} ${c.title}`), /* @__PURE__ */ e.jsxs("li", { children: [
|
|
1113
|
+
/* @__PURE__ */ e.jsx("a", { href: `#${c.id}`, children: j(h) }),
|
|
1114
1114
|
y < i && /* @__PURE__ */ e.jsx(
|
|
1115
1115
|
pr,
|
|
1116
1116
|
{
|
|
@@ -1156,7 +1156,7 @@ const tr = (r, a) => r[`${a}-option`] !== void 0, nr = (r, a, s = void 0, o, n)
|
|
|
1156
1156
|
/* @__PURE__ */ e.jsx("a", { href: `#_footnoteref_${n.index}`, children: n.index }),
|
|
1157
1157
|
".",
|
|
1158
1158
|
" ",
|
|
1159
|
-
|
|
1159
|
+
j(n.text || "")
|
|
1160
1160
|
]
|
|
1161
1161
|
},
|
|
1162
1162
|
n.index
|
|
@@ -1164,11 +1164,11 @@ const tr = (r, a) => r[`${a}-option`] !== void 0, nr = (r, a, s = void 0, o, n)
|
|
|
1164
1164
|
] }) : null, o = () => r.authors.length > 0 || P(r.attributes, "revnumber") || P(r.attributes, "revdate") || P(r.attributes, "revremark") ? /* @__PURE__ */ e.jsxs("div", { className: "details", children: [
|
|
1165
1165
|
r.authors.map((n, p) => /* @__PURE__ */ e.jsxs(jr, { children: [
|
|
1166
1166
|
n.name && /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
|
|
1167
|
-
/* @__PURE__ */ e.jsx("span", { id: `author${p + 1 > 1 ? p + 1 : ""}`, className: "author", children:
|
|
1167
|
+
/* @__PURE__ */ e.jsx("span", { id: `author${p + 1 > 1 ? p + 1 : ""}`, className: "author", children: j(n.name) }),
|
|
1168
1168
|
/* @__PURE__ */ e.jsx("br", {})
|
|
1169
1169
|
] }),
|
|
1170
1170
|
n.email && /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
|
|
1171
|
-
/* @__PURE__ */ e.jsx("span", { id: `email${p + 1 > 1 ? p + 1 : ""}`, className: "email", children:
|
|
1171
|
+
/* @__PURE__ */ e.jsx("span", { id: `email${p + 1 > 1 ? p + 1 : ""}`, className: "email", children: j(n.email) }),
|
|
1172
1172
|
/* @__PURE__ */ e.jsx("br", {})
|
|
1173
1173
|
] })
|
|
1174
1174
|
] }, p)),
|
|
@@ -1195,8 +1195,11 @@ const tr = (r, a) => r[`${a}-option`] !== void 0, nr = (r, a, s = void 0, o, n)
|
|
|
1195
1195
|
...r.lineNumber ? { "data-lineno": r.lineNumber } : {},
|
|
1196
1196
|
...r.id ? { id: r.id } : {},
|
|
1197
1197
|
children: [
|
|
1198
|
-
/* @__PURE__ */ e.jsx("summary", { className: "title", children:
|
|
1199
|
-
/* @__PURE__ */ e.
|
|
1198
|
+
/* @__PURE__ */ e.jsx("summary", { className: "title", children: j(s) }),
|
|
1199
|
+
/* @__PURE__ */ e.jsxs("div", { className: "content", children: [
|
|
1200
|
+
r.content && j(r.content),
|
|
1201
|
+
/* @__PURE__ */ e.jsx(R, { blocks: r.blocks })
|
|
1202
|
+
] })
|
|
1200
1203
|
]
|
|
1201
1204
|
}
|
|
1202
1205
|
);
|
|
@@ -1204,12 +1207,15 @@ const tr = (r, a) => r[`${a}-option`] !== void 0, nr = (r, a, s = void 0, o, n)
|
|
|
1204
1207
|
return /* @__PURE__ */ e.jsxs(
|
|
1205
1208
|
"div",
|
|
1206
1209
|
{
|
|
1207
|
-
className:
|
|
1210
|
+
className: A("exampleblock", r.role),
|
|
1208
1211
|
...r.lineNumber ? { "data-lineno": r.lineNumber } : {},
|
|
1209
1212
|
...r.id ? { id: r.id } : {},
|
|
1210
1213
|
children: [
|
|
1211
1214
|
/* @__PURE__ */ e.jsx(k, { text: r.title }),
|
|
1212
|
-
/* @__PURE__ */ e.
|
|
1215
|
+
/* @__PURE__ */ e.jsxs("div", { className: "content", children: [
|
|
1216
|
+
r.content && j(r.content),
|
|
1217
|
+
/* @__PURE__ */ e.jsx(R, { blocks: r.blocks })
|
|
1218
|
+
] })
|
|
1213
1219
|
]
|
|
1214
1220
|
}
|
|
1215
1221
|
);
|
|
@@ -1224,8 +1230,8 @@ const tr = (r, a) => r[`${a}-option`] !== void 0, nr = (r, a, s = void 0, o, n)
|
|
|
1224
1230
|
),
|
|
1225
1231
|
G(
|
|
1226
1232
|
`h${r.level + 1}`,
|
|
1227
|
-
{ className:
|
|
1228
|
-
|
|
1233
|
+
{ className: A(r.role, r.style) },
|
|
1234
|
+
j(r.title || "")
|
|
1229
1235
|
)
|
|
1230
1236
|
] }), dt = ({ node: r }) => {
|
|
1231
1237
|
let a = /* @__PURE__ */ e.jsx(
|
|
@@ -1263,7 +1269,7 @@ const tr = (r, a) => r[`${a}-option`] !== void 0, nr = (r, a, s = void 0, o, n)
|
|
|
1263
1269
|
...r.lineNumber ? { "data-lineno": r.lineNumber } : {},
|
|
1264
1270
|
children: [
|
|
1265
1271
|
/* @__PURE__ */ e.jsx(k, { text: r.title }),
|
|
1266
|
-
/* @__PURE__ */ e.jsx("div", { className: "content", children: /* @__PURE__ */ e.jsx("pre", { className:
|
|
1272
|
+
/* @__PURE__ */ e.jsx("div", { className: "content", children: /* @__PURE__ */ e.jsx("pre", { className: A("highlight", o ? " nowrap" : ""), children: n ? /* @__PURE__ */ e.jsx(
|
|
1267
1273
|
"code",
|
|
1268
1274
|
{
|
|
1269
1275
|
className: n ? `language-${n}` : "",
|
|
@@ -1287,7 +1293,7 @@ const tr = (r, a) => r[`${a}-option`] !== void 0, nr = (r, a, s = void 0, o, n)
|
|
|
1287
1293
|
/* @__PURE__ */ e.jsx("div", { className: "content", children: /* @__PURE__ */ e.jsx(
|
|
1288
1294
|
"pre",
|
|
1289
1295
|
{
|
|
1290
|
-
className:
|
|
1296
|
+
className: A("highlight !block", o ? "nowrap" : ""),
|
|
1291
1297
|
dangerouslySetInnerHTML: {
|
|
1292
1298
|
__html: r.content || ""
|
|
1293
1299
|
}
|
|
@@ -1312,7 +1318,7 @@ const tr = (r, a) => r[`${a}-option`] !== void 0, nr = (r, a, s = void 0, o, n)
|
|
|
1312
1318
|
}, ft = ({ node: r }) => /* @__PURE__ */ e.jsxs(
|
|
1313
1319
|
"div",
|
|
1314
1320
|
{
|
|
1315
|
-
className:
|
|
1321
|
+
className: A("olist", r.role, r.style),
|
|
1316
1322
|
...r.lineNumber ? { "data-lineno": r.lineNumber } : {},
|
|
1317
1323
|
children: [
|
|
1318
1324
|
/* @__PURE__ */ e.jsx(k, { text: r.title }),
|
|
@@ -1323,7 +1329,7 @@ const tr = (r, a) => r[`${a}-option`] !== void 0, nr = (r, a, s = void 0, o, n)
|
|
|
1323
1329
|
reversed: tr(r.attributes, "reversed"),
|
|
1324
1330
|
...r.attributes.start ? { start: parseInt(`${r.attributes.start}`) } : {},
|
|
1325
1331
|
children: r.items.map((a, s) => /* @__PURE__ */ e.jsxs("li", { className: r.role ? r.role : "", children: [
|
|
1326
|
-
/* @__PURE__ */ e.jsx("p", { children:
|
|
1332
|
+
/* @__PURE__ */ e.jsx("p", { children: j(a.text || "") }),
|
|
1327
1333
|
/* @__PURE__ */ e.jsx(R, { blocks: a.blocks })
|
|
1328
1334
|
] }, s))
|
|
1329
1335
|
}
|
|
@@ -1335,21 +1341,27 @@ const tr = (r, a) => r[`${a}-option`] !== void 0, nr = (r, a, s = void 0, o, n)
|
|
|
1335
1341
|
return a === "abstract" ? /* @__PURE__ */ e.jsxs(
|
|
1336
1342
|
"div",
|
|
1337
1343
|
{
|
|
1338
|
-
className:
|
|
1344
|
+
className: A("quoteblock abstract", r.role),
|
|
1339
1345
|
...r.lineNumber ? { "data-lineno": r.lineNumber } : {},
|
|
1340
1346
|
children: [
|
|
1341
1347
|
/* @__PURE__ */ e.jsx(k, { text: r.title }),
|
|
1342
|
-
/* @__PURE__ */ e.
|
|
1348
|
+
/* @__PURE__ */ e.jsxs("blockquote", { className: "content", children: [
|
|
1349
|
+
r.content && j(r.content),
|
|
1350
|
+
/* @__PURE__ */ e.jsx(R, { blocks: r.blocks })
|
|
1351
|
+
] })
|
|
1343
1352
|
]
|
|
1344
1353
|
}
|
|
1345
1354
|
) : /* @__PURE__ */ e.jsxs(
|
|
1346
1355
|
"div",
|
|
1347
1356
|
{
|
|
1348
|
-
className:
|
|
1357
|
+
className: A("openblock", a && a !== "open" ? a : "", r.role),
|
|
1349
1358
|
...r.lineNumber ? { "data-lineno": r.lineNumber } : {},
|
|
1350
1359
|
children: [
|
|
1351
1360
|
/* @__PURE__ */ e.jsx(k, { text: r.title }),
|
|
1352
|
-
/* @__PURE__ */ e.
|
|
1361
|
+
/* @__PURE__ */ e.jsxs("div", { className: "content", children: [
|
|
1362
|
+
r.content && j(r.content),
|
|
1363
|
+
/* @__PURE__ */ e.jsx(R, { blocks: r.blocks })
|
|
1364
|
+
] })
|
|
1353
1365
|
]
|
|
1354
1366
|
}
|
|
1355
1367
|
);
|
|
@@ -1357,14 +1369,14 @@ const tr = (r, a) => r[`${a}-option`] !== void 0, nr = (r, a, s = void 0, o, n)
|
|
|
1357
1369
|
"div",
|
|
1358
1370
|
{
|
|
1359
1371
|
...r.id ? { id: r.id } : {},
|
|
1360
|
-
className:
|
|
1372
|
+
className: A("paragraph", r.role),
|
|
1361
1373
|
...r.lineNumber ? { "data-lineno": r.lineNumber } : {},
|
|
1362
1374
|
children: [
|
|
1363
1375
|
/* @__PURE__ */ e.jsx(k, { text: r.title }),
|
|
1364
1376
|
r.content && /* @__PURE__ */ e.jsx("p", { dangerouslySetInnerHTML: { __html: r.content } })
|
|
1365
1377
|
]
|
|
1366
1378
|
}
|
|
1367
|
-
), xt = ({ node: r }) => /* @__PURE__ */ e.jsx(e.Fragment, { children:
|
|
1379
|
+
), xt = ({ node: r }) => /* @__PURE__ */ e.jsx(e.Fragment, { children: j(r.content || "") }), yt = ({ node: r }) => {
|
|
1368
1380
|
const { document: a } = I(), s = a.attributes || {}, o = s["toc-placement"] === "preamble" && a.sections && a.sections.length > 0 && s.toc !== void 0;
|
|
1369
1381
|
return /* @__PURE__ */ e.jsx("div", { id: "preamble", ...r.lineNumber ? { "data-lineno": r.lineNumber } : {}, children: /* @__PURE__ */ e.jsxs("div", { className: "sectionbody", children: [
|
|
1370
1382
|
/* @__PURE__ */ e.jsx(R, { blocks: r.blocks }),
|
|
@@ -1374,7 +1386,7 @@ const tr = (r, a) => r[`${a}-option`] !== void 0, nr = (r, a, s = void 0, o, n)
|
|
|
1374
1386
|
id: "toc",
|
|
1375
1387
|
className: r.attributes["toc-class"] ? `${r.attributes["toc-class"]}` : "toc",
|
|
1376
1388
|
children: [
|
|
1377
|
-
/* @__PURE__ */ e.jsx("div", { id: "toctitle", children:
|
|
1389
|
+
/* @__PURE__ */ e.jsx("div", { id: "toctitle", children: j(`${s["toc-title"]}`) }),
|
|
1378
1390
|
a.sections && /* @__PURE__ */ e.jsx(pr, { sections: a.sections })
|
|
1379
1391
|
]
|
|
1380
1392
|
}
|
|
@@ -1386,7 +1398,7 @@ const tr = (r, a) => r[`${a}-option`] !== void 0, nr = (r, a, s = void 0, o, n)
|
|
|
1386
1398
|
"div",
|
|
1387
1399
|
{
|
|
1388
1400
|
...r.id ? { id: r.id } : {},
|
|
1389
|
-
className:
|
|
1401
|
+
className: A("quoteblock", r.role),
|
|
1390
1402
|
...r.lineNumber ? { "data-lineno": r.lineNumber } : {},
|
|
1391
1403
|
children: [
|
|
1392
1404
|
/* @__PURE__ */ e.jsx(k, { text: r.title }),
|
|
@@ -1394,7 +1406,7 @@ const tr = (r, a) => r[`${a}-option`] !== void 0, nr = (r, a, s = void 0, o, n)
|
|
|
1394
1406
|
/* @__PURE__ */ e.jsx(R, { blocks: r.blocks }),
|
|
1395
1407
|
a && /* @__PURE__ */ e.jsxs("div", { className: "attribution", children: [
|
|
1396
1408
|
"— ",
|
|
1397
|
-
|
|
1409
|
+
j(a.toString()),
|
|
1398
1410
|
s && /* @__PURE__ */ e.jsx("cite", { children: s })
|
|
1399
1411
|
] })
|
|
1400
1412
|
]
|
|
@@ -1428,7 +1440,7 @@ const tr = (r, a) => r[`${a}-option`] !== void 0, nr = (r, a, s = void 0, o, n)
|
|
|
1428
1440
|
/* @__PURE__ */ e.jsx(
|
|
1429
1441
|
"h1",
|
|
1430
1442
|
{
|
|
1431
|
-
className:
|
|
1443
|
+
className: A("sect0", r.role),
|
|
1432
1444
|
"data-sectnum": n,
|
|
1433
1445
|
...r.lineNumber ? { "data-lineno": r.lineNumber } : {},
|
|
1434
1446
|
children: o
|
|
@@ -1438,7 +1450,7 @@ const tr = (r, a) => r[`${a}-option`] !== void 0, nr = (r, a, s = void 0, o, n)
|
|
|
1438
1450
|
] }) : /* @__PURE__ */ e.jsxs(
|
|
1439
1451
|
"div",
|
|
1440
1452
|
{
|
|
1441
|
-
className:
|
|
1453
|
+
className: A(`sect${r.level}`, r.role),
|
|
1442
1454
|
...r.lineNumber ? { "data-lineno": r.lineNumber } : {},
|
|
1443
1455
|
children: [
|
|
1444
1456
|
G(`h${r.level + 1}`, { "data-sectnum": n }, o),
|
|
@@ -1449,10 +1461,11 @@ const tr = (r, a) => r[`${a}-option`] !== void 0, nr = (r, a, s = void 0, o, n)
|
|
|
1449
1461
|
}, jt = ({ node: r }) => /* @__PURE__ */ e.jsx(
|
|
1450
1462
|
"div",
|
|
1451
1463
|
{
|
|
1452
|
-
className:
|
|
1464
|
+
className: A("sidebarblock", r.role),
|
|
1453
1465
|
...r.lineNumber ? { "data-lineno": r.lineNumber } : {},
|
|
1454
1466
|
children: /* @__PURE__ */ e.jsxs("div", { className: "content", children: [
|
|
1455
1467
|
/* @__PURE__ */ e.jsx(k, { text: r.title }),
|
|
1468
|
+
r.content && j(r.content),
|
|
1456
1469
|
/* @__PURE__ */ e.jsx(R, { blocks: r.blocks })
|
|
1457
1470
|
] })
|
|
1458
1471
|
}
|
|
@@ -1465,15 +1478,15 @@ const tr = (r, a) => r[`${a}-option`] !== void 0, nr = (r, a, s = void 0, o, n)
|
|
|
1465
1478
|
n && o.push("stripes-" + n);
|
|
1466
1479
|
let p = tr(r.attributes, "autowidth"), m = parseInt(`${r.attributes.tablepcwidth}`), i = null;
|
|
1467
1480
|
p && !P(r.attributes, "width") ? o.push("fit-content") : m === 100 ? o.push("stretch") : i = `${m}%`, P(r.attributes, "float") && o.push(`${r.attributes.float}`), r.role && o.push(r.role || "");
|
|
1468
|
-
const c = (u) =>
|
|
1481
|
+
const c = (u) => A(
|
|
1469
1482
|
"tableblock",
|
|
1470
1483
|
`halign-${u.attributes.halign}`,
|
|
1471
1484
|
`valign-${u.attributes.valign}`
|
|
1472
|
-
),
|
|
1485
|
+
), E = r.title, y = r.id, h = y || Nt(E || "");
|
|
1473
1486
|
return /* @__PURE__ */ e.jsxs(
|
|
1474
1487
|
"table",
|
|
1475
1488
|
{
|
|
1476
|
-
className:
|
|
1489
|
+
className: A("tableblock", ...o),
|
|
1477
1490
|
style: { width: i || void 0 },
|
|
1478
1491
|
...r.lineNumber ? { "data-lineno": r.lineNumber } : {},
|
|
1479
1492
|
children: [
|
|
@@ -1494,7 +1507,7 @@ const tr = (r, a) => r[`${a}-option`] !== void 0, nr = (r, a, s = void 0, o, n)
|
|
|
1494
1507
|
C
|
|
1495
1508
|
)) }) }, f)),
|
|
1496
1509
|
/* @__PURE__ */ e.jsx("tbody", { children: r.bodyRows.map((u, f) => /* @__PURE__ */ e.jsx("tr", { children: u.map((w, C) => {
|
|
1497
|
-
const O = w.columnSpan, F = w.rowSpan,
|
|
1510
|
+
const O = w.columnSpan, F = w.rowSpan, N = w.content, H = {
|
|
1498
1511
|
colSpan: O,
|
|
1499
1512
|
rowSpan: F,
|
|
1500
1513
|
className: c(w)
|
|
@@ -1504,22 +1517,22 @@ const tr = (r, a) => r[`${a}-option`] !== void 0, nr = (r, a, s = void 0, o, n)
|
|
|
1504
1517
|
"div",
|
|
1505
1518
|
{
|
|
1506
1519
|
className: "content",
|
|
1507
|
-
dangerouslySetInnerHTML: { __html:
|
|
1520
|
+
dangerouslySetInnerHTML: { __html: N || "" }
|
|
1508
1521
|
}
|
|
1509
1522
|
));
|
|
1510
1523
|
if (J === "literal")
|
|
1511
|
-
return /* @__PURE__ */ G("td", { ...H, key: C }, /* @__PURE__ */ e.jsx("div", { className: "literal", children: /* @__PURE__ */ e.jsx("pre", { dangerouslySetInnerHTML: { __html:
|
|
1524
|
+
return /* @__PURE__ */ G("td", { ...H, key: C }, /* @__PURE__ */ e.jsx("div", { className: "literal", children: /* @__PURE__ */ e.jsx("pre", { dangerouslySetInnerHTML: { __html: N || "" } }) }));
|
|
1512
1525
|
if (J === "header")
|
|
1513
1526
|
return /* @__PURE__ */ G("th", { ...H, key: C }, /* @__PURE__ */ e.jsx(
|
|
1514
1527
|
"p",
|
|
1515
1528
|
{
|
|
1516
1529
|
className: "tableblock",
|
|
1517
|
-
dangerouslySetInnerHTML: { __html:
|
|
1530
|
+
dangerouslySetInnerHTML: { __html: N || "" }
|
|
1518
1531
|
}
|
|
1519
1532
|
));
|
|
1520
1533
|
{
|
|
1521
|
-
let ar =
|
|
1522
|
-
return /* @__PURE__ */ G("td", { ...H, key: C }, ar.length === 0 ? "" :
|
|
1534
|
+
let ar = N;
|
|
1535
|
+
return /* @__PURE__ */ G("td", { ...H, key: C }, ar.length === 0 ? "" : j(
|
|
1523
1536
|
`<p class="tableblock">${ar.join(
|
|
1524
1537
|
`</p>
|
|
1525
1538
|
<p class="tableblock">`
|
|
@@ -1535,8 +1548,8 @@ const tr = (r, a) => r[`${a}-option`] !== void 0, nr = (r, a, s = void 0, o, n)
|
|
|
1535
1548
|
const { document: a } = I(), s = a.attributes || {}, o = a.sections && a.sections.length > 0;
|
|
1536
1549
|
let n = r.id || "toc";
|
|
1537
1550
|
const p = r.title ? r.title : s["toc-title"], m = s["toc-placement"], i = s.toc !== void 0, c = r.attributes.levels ? parseInt(`${r.attributes.levels}`) : void 0;
|
|
1538
|
-
return m === "macro" && o && i ? /* @__PURE__ */ e.jsxs("div", { id: n, className:
|
|
1539
|
-
/* @__PURE__ */ e.jsx("div", { id: `${n}title`, className: "title", children:
|
|
1551
|
+
return m === "macro" && o && i ? /* @__PURE__ */ e.jsxs("div", { id: n, className: A("toc", r.role), children: [
|
|
1552
|
+
/* @__PURE__ */ e.jsx("div", { id: `${n}title`, className: "title", children: j(`${p}` || "") }),
|
|
1540
1553
|
a.sections && /* @__PURE__ */ e.jsx(pr, { sections: a.sections, opts: { tocLevels: c } })
|
|
1541
1554
|
] }) : null;
|
|
1542
1555
|
}, Dt = () => /* @__PURE__ */ e.jsx("hr", {}), kt = ({ node: r }) => {
|
|
@@ -1545,7 +1558,7 @@ const tr = (r, a) => r[`${a}-option`] !== void 0, nr = (r, a, s = void 0, o, n)
|
|
|
1545
1558
|
"div",
|
|
1546
1559
|
{
|
|
1547
1560
|
...r.id ? { id: r.id } : {},
|
|
1548
|
-
className:
|
|
1561
|
+
className: A("ulist", r.style, r.role, a && "checklist"),
|
|
1549
1562
|
...r.lineNumber ? { "data-lineno": r.lineNumber } : {},
|
|
1550
1563
|
children: [
|
|
1551
1564
|
/* @__PURE__ */ e.jsx(k, { text: r.title }),
|
|
@@ -1553,14 +1566,14 @@ const tr = (r, a) => r[`${a}-option`] !== void 0, nr = (r, a, s = void 0, o, n)
|
|
|
1553
1566
|
a && s.attributes.checkbox && /* @__PURE__ */ e.jsx(
|
|
1554
1567
|
"i",
|
|
1555
1568
|
{
|
|
1556
|
-
className:
|
|
1569
|
+
className: A(
|
|
1557
1570
|
"fa",
|
|
1558
1571
|
s.attributes.checked ? "fa-check-square-o" : "fa-square-o"
|
|
1559
1572
|
)
|
|
1560
1573
|
}
|
|
1561
1574
|
),
|
|
1562
1575
|
" ",
|
|
1563
|
-
|
|
1576
|
+
j(s.text || "")
|
|
1564
1577
|
] }) }, o) : /* @__PURE__ */ e.jsxs("li", { id: s.id, className: r.role, children: [
|
|
1565
1578
|
/* @__PURE__ */ e.jsx("p", { dangerouslySetInnerHTML: { __html: s.text || "" } }),
|
|
1566
1579
|
/* @__PURE__ */ e.jsx(R, { blocks: s.blocks })
|
|
@@ -1574,7 +1587,7 @@ const tr = (r, a) => r[`${a}-option`] !== void 0, nr = (r, a, s = void 0, o, n)
|
|
|
1574
1587
|
"div",
|
|
1575
1588
|
{
|
|
1576
1589
|
...r.id ? { id: r.id } : {},
|
|
1577
|
-
className:
|
|
1590
|
+
className: A("verseblock", r.role),
|
|
1578
1591
|
...r.lineNumber ? { "data-lineno": r.lineNumber } : {},
|
|
1579
1592
|
children: [
|
|
1580
1593
|
/* @__PURE__ */ e.jsx(k, { text: r.title }),
|