@oxide/react-asciidoc 0.1.3-alpha.4 → 0.1.3-alpha.6
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 +138 -131
- package/dist/react-asciidoc.umd.cjs +6 -6
- package/package.json +1 -1
package/dist/react-asciidoc.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { default as nr } from "@asciidoctor/core";
|
|
2
2
|
import w from "html-react-parser";
|
|
3
3
|
import Ve, { Fragment as ye, useMemo as ee, createElement as J, createContext as kt, useContext as Et } from "react";
|
|
4
|
-
const z = {},
|
|
4
|
+
const z = {}, H = (e) => {
|
|
5
5
|
const a = e.$$id;
|
|
6
6
|
if (z[a])
|
|
7
7
|
return z[a];
|
|
@@ -24,17 +24,17 @@ var ce = { exports: {} }, Q = {};
|
|
|
24
24
|
* This source code is licensed under the MIT license found in the
|
|
25
25
|
* LICENSE file in the root directory of this source tree.
|
|
26
26
|
*/
|
|
27
|
-
var
|
|
27
|
+
var Ue;
|
|
28
28
|
function St() {
|
|
29
|
-
if (
|
|
29
|
+
if (Ue)
|
|
30
30
|
return Q;
|
|
31
|
-
|
|
32
|
-
var e = Ve, a = Symbol.for("react.element"), n = Symbol.for("react.fragment"), o = Object.prototype.hasOwnProperty, g = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,
|
|
31
|
+
Ue = 1;
|
|
32
|
+
var e = Ve, a = Symbol.for("react.element"), n = Symbol.for("react.fragment"), o = Object.prototype.hasOwnProperty, g = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, c = { key: !0, ref: !0, __self: !0, __source: !0 };
|
|
33
33
|
function f(b, h, _) {
|
|
34
34
|
var v, S = {}, y = null, O = null;
|
|
35
35
|
_ !== void 0 && (y = "" + _), h.key !== void 0 && (y = "" + h.key), h.ref !== void 0 && (O = h.ref);
|
|
36
36
|
for (v in h)
|
|
37
|
-
o.call(h, v) && !
|
|
37
|
+
o.call(h, v) && !c.hasOwnProperty(v) && (S[v] = h[v]);
|
|
38
38
|
if (b && b.defaultProps)
|
|
39
39
|
for (v in h = b.defaultProps, h)
|
|
40
40
|
S[v] === void 0 && (S[v] = h[v]);
|
|
@@ -55,7 +55,7 @@ var Z = {};
|
|
|
55
55
|
var qe;
|
|
56
56
|
function wt() {
|
|
57
57
|
return qe || (qe = 1, process.env.NODE_ENV !== "production" && function() {
|
|
58
|
-
var e = Ve, a = Symbol.for("react.element"), n = Symbol.for("react.portal"), o = Symbol.for("react.fragment"), g = Symbol.for("react.strict_mode"),
|
|
58
|
+
var e = Ve, a = Symbol.for("react.element"), n = Symbol.for("react.portal"), o = Symbol.for("react.fragment"), g = Symbol.for("react.strict_mode"), c = Symbol.for("react.profiler"), f = Symbol.for("react.provider"), b = Symbol.for("react.context"), h = Symbol.for("react.forward_ref"), _ = Symbol.for("react.suspense"), v = Symbol.for("react.suspense_list"), S = Symbol.for("react.memo"), y = Symbol.for("react.lazy"), O = Symbol.for("react.offscreen"), $ = Symbol.iterator, F = "@@iterator";
|
|
59
59
|
function ue(t) {
|
|
60
60
|
if (t === null || typeof t != "object")
|
|
61
61
|
return null;
|
|
@@ -67,10 +67,10 @@ function wt() {
|
|
|
67
67
|
{
|
|
68
68
|
for (var i = arguments.length, s = new Array(i > 1 ? i - 1 : 0), u = 1; u < i; u++)
|
|
69
69
|
s[u - 1] = arguments[u];
|
|
70
|
-
|
|
70
|
+
U("error", t, s);
|
|
71
71
|
}
|
|
72
72
|
}
|
|
73
|
-
function
|
|
73
|
+
function U(t, i, s) {
|
|
74
74
|
{
|
|
75
75
|
var u = W.ReactDebugCurrentFrame, p = u.getStackAddendum();
|
|
76
76
|
p !== "" && (i += "%s", s = s.concat([p]));
|
|
@@ -83,7 +83,7 @@ function wt() {
|
|
|
83
83
|
var G = !1, te = !1, Ge = !1, Ke = !1, Xe = !1, _e;
|
|
84
84
|
_e = Symbol.for("react.module.reference");
|
|
85
85
|
function Qe(t) {
|
|
86
|
-
return !!(typeof t == "string" || typeof t == "function" || t === o || t ===
|
|
86
|
+
return !!(typeof t == "string" || typeof t == "function" || t === o || t === c || Xe || t === g || t === _ || t === v || Ke || t === O || G || te || Ge || typeof t == "object" && t !== null && (t.$$typeof === y || t.$$typeof === S || t.$$typeof === f || t.$$typeof === b || t.$$typeof === h || t.$$typeof === _e || t.getModuleId !== void 0));
|
|
87
87
|
}
|
|
88
88
|
function Ze(t, i, s) {
|
|
89
89
|
var u = t.displayName;
|
|
@@ -107,7 +107,7 @@ function wt() {
|
|
|
107
107
|
return "Fragment";
|
|
108
108
|
case n:
|
|
109
109
|
return "Portal";
|
|
110
|
-
case
|
|
110
|
+
case c:
|
|
111
111
|
return "Profiler";
|
|
112
112
|
case g:
|
|
113
113
|
return "StrictMode";
|
|
@@ -289,8 +289,8 @@ function wt() {
|
|
|
289
289
|
} finally {
|
|
290
290
|
ge = !1, fe.current = A, tt(), Error.prepareStackTrace = p;
|
|
291
291
|
}
|
|
292
|
-
var V = t ? t.displayName || t.name : "",
|
|
293
|
-
return typeof t == "function" && ae.set(t,
|
|
292
|
+
var V = t ? t.displayName || t.name : "", He = V ? re(V) : "";
|
|
293
|
+
return typeof t == "function" && ae.set(t, He), He;
|
|
294
294
|
}
|
|
295
295
|
function at(t, i, s) {
|
|
296
296
|
return $e(t, !1);
|
|
@@ -633,7 +633,7 @@ Check the top-level render call using <` + s + ">.");
|
|
|
633
633
|
(function(e) {
|
|
634
634
|
process.env.NODE_ENV === "production" ? e.exports = St() : e.exports = wt();
|
|
635
635
|
})(ce);
|
|
636
|
-
const L = ce.exports.Fragment, r = ce.exports.jsx,
|
|
636
|
+
const L = ce.exports.Fragment, r = ce.exports.jsx, l = ce.exports.jsxs, x = ({
|
|
637
637
|
node: e
|
|
638
638
|
}) => e.hasTitle() ? /* @__PURE__ */ r("div", {
|
|
639
639
|
className: "title",
|
|
@@ -648,7 +648,7 @@ const L = ce.exports.Fragment, r = ce.exports.jsx, c = ce.exports.jsxs, x = ({
|
|
|
648
648
|
} : {}, Ct = ({
|
|
649
649
|
node: e
|
|
650
650
|
}) => {
|
|
651
|
-
const a = e.getAttributes(), n = e.getDocument(), o =
|
|
651
|
+
const a = e.getAttributes(), n = e.getDocument(), o = H(e), g = () => n.getAttribute("icons") === "font" && !a.icon ? /* @__PURE__ */ r("i", {
|
|
652
652
|
className: `fa icon-${a.name}`,
|
|
653
653
|
title: a.textlabel
|
|
654
654
|
}) : /* @__PURE__ */ r("img", {
|
|
@@ -660,14 +660,14 @@ const L = ce.exports.Fragment, r = ce.exports.jsx, c = ce.exports.jsxs, x = ({
|
|
|
660
660
|
...N(e),
|
|
661
661
|
children: /* @__PURE__ */ r("table", {
|
|
662
662
|
children: /* @__PURE__ */ r("tbody", {
|
|
663
|
-
children: /* @__PURE__ */
|
|
663
|
+
children: /* @__PURE__ */ l("tr", {
|
|
664
664
|
children: [/* @__PURE__ */ r("td", {
|
|
665
665
|
className: "icon",
|
|
666
666
|
children: n.hasAttribute("icons") ? g() : /* @__PURE__ */ r("div", {
|
|
667
667
|
className: "title",
|
|
668
668
|
children: e.getAttribute("textlabel")
|
|
669
669
|
})
|
|
670
|
-
}), /* @__PURE__ */
|
|
670
|
+
}), /* @__PURE__ */ l("td", {
|
|
671
671
|
className: "content",
|
|
672
672
|
children: [/* @__PURE__ */ r(x, {
|
|
673
673
|
node: e
|
|
@@ -681,7 +681,7 @@ const L = ce.exports.Fragment, r = ce.exports.jsx, c = ce.exports.jsxs, x = ({
|
|
|
681
681
|
node: e
|
|
682
682
|
}) => {
|
|
683
683
|
const a = e.getAttribute("start"), n = e.getAttribute("start"), o = (a || n) && `#t=${a || ""}` + n ? `,${n}` : "";
|
|
684
|
-
return /* @__PURE__ */
|
|
684
|
+
return /* @__PURE__ */ l("div", {
|
|
685
685
|
className: "audioblock",
|
|
686
686
|
...N(e),
|
|
687
687
|
children: [/* @__PURE__ */ r(x, {
|
|
@@ -699,22 +699,22 @@ const L = ce.exports.Fragment, r = ce.exports.jsx, c = ce.exports.jsxs, x = ({
|
|
|
699
699
|
});
|
|
700
700
|
}, Ot = ({
|
|
701
701
|
node: e
|
|
702
|
-
}) => /* @__PURE__ */
|
|
702
|
+
}) => /* @__PURE__ */ l("div", {
|
|
703
703
|
className: "colist",
|
|
704
704
|
...N(e),
|
|
705
705
|
children: [/* @__PURE__ */ r(x, {
|
|
706
706
|
node: e
|
|
707
707
|
}), /* @__PURE__ */ r("table", {
|
|
708
708
|
children: /* @__PURE__ */ r("tbody", {
|
|
709
|
-
children: e.getItems().map((a, n) => /* @__PURE__ */
|
|
710
|
-
children: [/* @__PURE__ */
|
|
709
|
+
children: e.getItems().map((a, n) => /* @__PURE__ */ l("tr", {
|
|
710
|
+
children: [/* @__PURE__ */ l("td", {
|
|
711
711
|
children: [/* @__PURE__ */ r("i", {
|
|
712
712
|
className: "conum",
|
|
713
713
|
"data-value": n + 1
|
|
714
714
|
}), /* @__PURE__ */ r("b", {
|
|
715
715
|
children: n + 1
|
|
716
716
|
})]
|
|
717
|
-
}), /* @__PURE__ */
|
|
717
|
+
}), /* @__PURE__ */ l("td", {
|
|
718
718
|
children: [w(D(a)), /* @__PURE__ */ r(P, {
|
|
719
719
|
blocks: a.getBlocks()
|
|
720
720
|
})]
|
|
@@ -734,23 +734,23 @@ var Je = { exports: {} };
|
|
|
734
734
|
var a = {}.hasOwnProperty;
|
|
735
735
|
function n() {
|
|
736
736
|
for (var o = [], g = 0; g < arguments.length; g++) {
|
|
737
|
-
var
|
|
738
|
-
if (!!
|
|
739
|
-
var f = typeof
|
|
737
|
+
var c = arguments[g];
|
|
738
|
+
if (!!c) {
|
|
739
|
+
var f = typeof c;
|
|
740
740
|
if (f === "string" || f === "number")
|
|
741
|
-
o.push(
|
|
742
|
-
else if (Array.isArray(
|
|
743
|
-
if (
|
|
744
|
-
var b = n.apply(null,
|
|
741
|
+
o.push(c);
|
|
742
|
+
else if (Array.isArray(c)) {
|
|
743
|
+
if (c.length) {
|
|
744
|
+
var b = n.apply(null, c);
|
|
745
745
|
b && o.push(b);
|
|
746
746
|
}
|
|
747
747
|
} else if (f === "object") {
|
|
748
|
-
if (
|
|
749
|
-
o.push(
|
|
748
|
+
if (c.toString !== Object.prototype.toString && !c.toString.toString().includes("[native code]")) {
|
|
749
|
+
o.push(c.toString());
|
|
750
750
|
continue;
|
|
751
751
|
}
|
|
752
|
-
for (var h in
|
|
753
|
-
a.call(
|
|
752
|
+
for (var h in c)
|
|
753
|
+
a.call(c, h) && c[h] && o.push(h);
|
|
754
754
|
}
|
|
755
755
|
}
|
|
756
756
|
}
|
|
@@ -762,20 +762,20 @@ var Je = { exports: {} };
|
|
|
762
762
|
const E = Je.exports, It = ({
|
|
763
763
|
node: e
|
|
764
764
|
}) => {
|
|
765
|
-
const a = e.getStyle(), n = (
|
|
766
|
-
const f =
|
|
765
|
+
const a = e.getStyle(), n = (c) => {
|
|
766
|
+
const f = c, b = f[0];
|
|
767
767
|
let h = f[1];
|
|
768
768
|
return h.getNodeName || (h = null), {
|
|
769
769
|
terms: b,
|
|
770
770
|
dd: h
|
|
771
771
|
};
|
|
772
|
-
}, o = (
|
|
773
|
-
if (
|
|
774
|
-
return /* @__PURE__ */
|
|
775
|
-
children: [
|
|
776
|
-
children: w(D(
|
|
777
|
-
}),
|
|
778
|
-
blocks:
|
|
772
|
+
}, o = (c) => {
|
|
773
|
+
if (c)
|
|
774
|
+
return /* @__PURE__ */ l("dd", {
|
|
775
|
+
children: [c.hasText() && /* @__PURE__ */ r("p", {
|
|
776
|
+
children: w(D(c))
|
|
777
|
+
}), c.hasBlocks() && /* @__PURE__ */ r(P, {
|
|
778
|
+
blocks: c.getBlocks()
|
|
779
779
|
})]
|
|
780
780
|
});
|
|
781
781
|
}, g = e.hasTitle() && /* @__PURE__ */ r("div", {
|
|
@@ -783,16 +783,16 @@ const E = Je.exports, It = ({
|
|
|
783
783
|
children: e.getCaptionedTitle()
|
|
784
784
|
});
|
|
785
785
|
if (a === "qanda")
|
|
786
|
-
return /* @__PURE__ */
|
|
786
|
+
return /* @__PURE__ */ l("div", {
|
|
787
787
|
className: E("qlist qanda", C(e)),
|
|
788
788
|
...N(e),
|
|
789
789
|
children: [g, /* @__PURE__ */ r("ol", {
|
|
790
|
-
children: e.getItems().map((
|
|
790
|
+
children: e.getItems().map((c, f) => {
|
|
791
791
|
const {
|
|
792
792
|
terms: b,
|
|
793
793
|
dd: h
|
|
794
|
-
} = n(
|
|
795
|
-
return /* @__PURE__ */
|
|
794
|
+
} = n(c);
|
|
795
|
+
return /* @__PURE__ */ l("li", {
|
|
796
796
|
children: [b.map((_, v) => /* @__PURE__ */ r("p", {
|
|
797
797
|
children: /* @__PURE__ */ r("em", {
|
|
798
798
|
children: D(_)
|
|
@@ -803,14 +803,14 @@ const E = Je.exports, It = ({
|
|
|
803
803
|
})]
|
|
804
804
|
});
|
|
805
805
|
if (a === "horizontal") {
|
|
806
|
-
const
|
|
807
|
-
return /* @__PURE__ */
|
|
806
|
+
const c = e.getAttribute("labelwidth"), f = e.getAttribute("itemwidth");
|
|
807
|
+
return /* @__PURE__ */ l("div", {
|
|
808
808
|
className: E("hdlist", C(e)),
|
|
809
|
-
children: [g, /* @__PURE__ */
|
|
810
|
-
children: [(
|
|
809
|
+
children: [g, /* @__PURE__ */ l("table", {
|
|
810
|
+
children: [(c || f) && /* @__PURE__ */ l("colgroup", {
|
|
811
811
|
children: [/* @__PURE__ */ r("col", {
|
|
812
812
|
style: {
|
|
813
|
-
width:
|
|
813
|
+
width: c ? `${c.replace("%", "")}%` : ""
|
|
814
814
|
}
|
|
815
815
|
}), /* @__PURE__ */ r("col", {
|
|
816
816
|
style: {
|
|
@@ -823,13 +823,13 @@ const E = Je.exports, It = ({
|
|
|
823
823
|
terms: _,
|
|
824
824
|
dd: v
|
|
825
825
|
} = n(b);
|
|
826
|
-
return /* @__PURE__ */
|
|
826
|
+
return /* @__PURE__ */ l("tr", {
|
|
827
827
|
children: [/* @__PURE__ */ r("td", {
|
|
828
828
|
className: E("hdlist1", e.isOption("strong") ? "strong" : ""),
|
|
829
|
-
children: _.map((S, y) => /* @__PURE__ */
|
|
829
|
+
children: _.map((S, y) => /* @__PURE__ */ l(ye, {
|
|
830
830
|
children: [y !== 0 && /* @__PURE__ */ r("br", {}), w(D(S))]
|
|
831
831
|
}, y))
|
|
832
|
-
}), v && /* @__PURE__ */
|
|
832
|
+
}), v && /* @__PURE__ */ l("td", {
|
|
833
833
|
className: "hdlist2",
|
|
834
834
|
children: [v.hasText() && /* @__PURE__ */ r("p", {
|
|
835
835
|
children: w(D(v))
|
|
@@ -843,15 +843,15 @@ const E = Je.exports, It = ({
|
|
|
843
843
|
})]
|
|
844
844
|
});
|
|
845
845
|
} else
|
|
846
|
-
return /* @__PURE__ */
|
|
846
|
+
return /* @__PURE__ */ l("div", {
|
|
847
847
|
className: E("dlist", e.getStyle(), C(e)),
|
|
848
848
|
children: [g, /* @__PURE__ */ r("dl", {
|
|
849
|
-
children: e.getItems().map((
|
|
849
|
+
children: e.getItems().map((c, f) => {
|
|
850
850
|
const {
|
|
851
851
|
terms: b,
|
|
852
852
|
dd: h
|
|
853
|
-
} = n(
|
|
854
|
-
return /* @__PURE__ */
|
|
853
|
+
} = n(c);
|
|
854
|
+
return /* @__PURE__ */ l(ye, {
|
|
855
855
|
children: [b.map((_, v) => /* @__PURE__ */ r("dt", {
|
|
856
856
|
className: "hdlist1",
|
|
857
857
|
children: w(D(_))
|
|
@@ -866,7 +866,7 @@ const E = Je.exports, It = ({
|
|
|
866
866
|
}) => {
|
|
867
867
|
if (!e.hasSections())
|
|
868
868
|
return null;
|
|
869
|
-
const n = e.getSections(), o = e.getDocument(), g = ee(() => o.getAttributes(), [e]),
|
|
869
|
+
const n = e.getSections(), o = e.getDocument(), g = ee(() => o.getAttributes(), [e]), c = ee(() => o.getAttribute("sectnumlevels"), [e]), f = ee(() => o.getAttribute("toclevels"), [e]), b = (a == null ? void 0 : a.sectNumLevels) || (c ? parseInt(c) : 3), h = (a == null ? void 0 : a.tocLevels) || (f ? parseInt(f) : 2);
|
|
870
870
|
return /* @__PURE__ */ r("ul", {
|
|
871
871
|
className: `sectlevel${n[0].getLevel()}`,
|
|
872
872
|
children: n.map((_) => {
|
|
@@ -884,7 +884,7 @@ const E = Je.exports, It = ({
|
|
|
884
884
|
y = `${v} ${_.getTitle()}`;
|
|
885
885
|
else
|
|
886
886
|
y = _.getTitle() || "";
|
|
887
|
-
return /* @__PURE__ */
|
|
887
|
+
return /* @__PURE__ */ l("li", {
|
|
888
888
|
children: [/* @__PURE__ */ r("a", {
|
|
889
889
|
href: `#${_.getId()}`,
|
|
890
890
|
children: w(y)
|
|
@@ -905,12 +905,12 @@ const E = Je.exports, It = ({
|
|
|
905
905
|
var f;
|
|
906
906
|
return e.getNoheader() ? null : /* @__PURE__ */ r("div", {
|
|
907
907
|
id: "header",
|
|
908
|
-
children: e.hasHeader() && /* @__PURE__ */
|
|
908
|
+
children: e.hasHeader() && /* @__PURE__ */ l(L, {
|
|
909
909
|
children: [/* @__PURE__ */ r("h1", {
|
|
910
910
|
dangerouslySetInnerHTML: {
|
|
911
911
|
__html: ((f = e.getDocumentTitle()) == null ? void 0 : f.toString()) || ""
|
|
912
912
|
}
|
|
913
|
-
}), /* @__PURE__ */ r(
|
|
913
|
+
}), /* @__PURE__ */ r(c, {}), e.hasSections() && e.hasAttribute("toc") && e.getAttribute("toc-placement") === "auto" && /* @__PURE__ */ l("div", {
|
|
914
914
|
id: "toc",
|
|
915
915
|
className: e.getAttribute("toc-class", "toc"),
|
|
916
916
|
children: [/* @__PURE__ */ r("div", {
|
|
@@ -922,9 +922,9 @@ const E = Je.exports, It = ({
|
|
|
922
922
|
})]
|
|
923
923
|
})
|
|
924
924
|
});
|
|
925
|
-
}, g = () => n && n.length > 0 && a && !a[0].getDocument().hasAttribute("nofootnotes") ? /* @__PURE__ */
|
|
925
|
+
}, g = () => n && n.length > 0 && a && !a[0].getDocument().hasAttribute("nofootnotes") ? /* @__PURE__ */ l("div", {
|
|
926
926
|
id: "footnotes",
|
|
927
|
-
children: [/* @__PURE__ */ r("hr", {}), n.map((f) => /* @__PURE__ */
|
|
927
|
+
children: [/* @__PURE__ */ r("hr", {}), n.map((f) => /* @__PURE__ */ l("div", {
|
|
928
928
|
className: "footnote",
|
|
929
929
|
id: `_footnotedef_${f.getIndex()}`,
|
|
930
930
|
children: [/* @__PURE__ */ r("a", {
|
|
@@ -932,16 +932,16 @@ const E = Je.exports, It = ({
|
|
|
932
932
|
children: f.getIndex()
|
|
933
933
|
}), ".", " ", w(D(f) || "")]
|
|
934
934
|
}, f.getIndex()))]
|
|
935
|
-
}) : null,
|
|
935
|
+
}) : null, c = () => e.getAuthors().length > 0 || e.hasAttribute("revnumber") || e.hasAttribute("revdate") || e.hasAttribute("revremark") ? /* @__PURE__ */ l("div", {
|
|
936
936
|
className: "details",
|
|
937
|
-
children: [e.getAuthors().map((b, h) => /* @__PURE__ */
|
|
938
|
-
children: [b.getName() && /* @__PURE__ */
|
|
937
|
+
children: [e.getAuthors().map((b, h) => /* @__PURE__ */ l(ye, {
|
|
938
|
+
children: [b.getName() && /* @__PURE__ */ l(L, {
|
|
939
939
|
children: [/* @__PURE__ */ r("span", {
|
|
940
940
|
id: `author${h + 1 > 1 ? h + 1 : ""}`,
|
|
941
941
|
className: "author",
|
|
942
942
|
children: w(e.applySubstitutions(b.getName() || "").toString())
|
|
943
943
|
}), /* @__PURE__ */ r("br", {})]
|
|
944
|
-
}), b.getEmail() && /* @__PURE__ */
|
|
944
|
+
}), b.getEmail() && /* @__PURE__ */ l(L, {
|
|
945
945
|
children: [/* @__PURE__ */ r("span", {
|
|
946
946
|
id: `email${h + 1 > 1 ? h + 1 : ""}`,
|
|
947
947
|
className: "email",
|
|
@@ -954,14 +954,14 @@ const E = Je.exports, It = ({
|
|
|
954
954
|
}), e.hasAttribute("revdate") && /* @__PURE__ */ r("span", {
|
|
955
955
|
id: "revdate",
|
|
956
956
|
children: e.getAttribute("revdate")
|
|
957
|
-
}), e.hasAttribute("revremark") && /* @__PURE__ */
|
|
957
|
+
}), e.hasAttribute("revremark") && /* @__PURE__ */ l(L, {
|
|
958
958
|
children: [/* @__PURE__ */ r("br", {}), /* @__PURE__ */ r("span", {
|
|
959
959
|
id: "revremark",
|
|
960
960
|
children: e.getAttribute("revremark")
|
|
961
961
|
})]
|
|
962
962
|
})]
|
|
963
963
|
}) : null;
|
|
964
|
-
return /* @__PURE__ */
|
|
964
|
+
return /* @__PURE__ */ l(L, {
|
|
965
965
|
children: [/* @__PURE__ */ r(o, {}), /* @__PURE__ */ r("div", {
|
|
966
966
|
id: "content",
|
|
967
967
|
children: /* @__PURE__ */ r(P, {
|
|
@@ -971,7 +971,7 @@ const E = Je.exports, It = ({
|
|
|
971
971
|
});
|
|
972
972
|
}, Pt = ({
|
|
973
973
|
node: e
|
|
974
|
-
}) => /* @__PURE__ */
|
|
974
|
+
}) => /* @__PURE__ */ l("div", {
|
|
975
975
|
className: E("exampleblock", C(e)),
|
|
976
976
|
...N(e),
|
|
977
977
|
children: [/* @__PURE__ */ r(le, {
|
|
@@ -986,7 +986,7 @@ const E = Je.exports, It = ({
|
|
|
986
986
|
node: e
|
|
987
987
|
}) => {
|
|
988
988
|
const a = e.getLevel();
|
|
989
|
-
return /* @__PURE__ */
|
|
989
|
+
return /* @__PURE__ */ l(L, {
|
|
990
990
|
children: [/* @__PURE__ */ r("a", {
|
|
991
991
|
className: "sectionanchor",
|
|
992
992
|
id: `${e.getId() || ""}`,
|
|
@@ -1009,7 +1009,7 @@ const E = Je.exports, It = ({
|
|
|
1009
1009
|
className: "image",
|
|
1010
1010
|
href: e.getAttribute("link"),
|
|
1011
1011
|
children: n
|
|
1012
|
-
})), /* @__PURE__ */
|
|
1012
|
+
})), /* @__PURE__ */ l("div", {
|
|
1013
1013
|
className: `imageblock ${e.hasAttribute("align") ? "text-" + e.getAttribute("align") : ""} ${e.hasAttribute("float") ? e.getAttribute("float") : ""} ${e.getRole() ? e.getRole() : ""}`,
|
|
1014
1014
|
...N(e),
|
|
1015
1015
|
children: [/* @__PURE__ */ r("div", {
|
|
@@ -1022,10 +1022,10 @@ const E = Je.exports, It = ({
|
|
|
1022
1022
|
}, Lt = ({
|
|
1023
1023
|
node: e
|
|
1024
1024
|
}) => {
|
|
1025
|
-
const a = e.getDocument(), n = e.getAttributes(), o = e.isOption("nowrap") || !a.hasAttribute("prewrap"), g =
|
|
1025
|
+
const a = e.getDocument(), n = e.getAttributes(), o = e.isOption("nowrap") || !a.hasAttribute("prewrap"), g = H(e);
|
|
1026
1026
|
if (e.getStyle() === "source") {
|
|
1027
|
-
const
|
|
1028
|
-
return /* @__PURE__ */
|
|
1027
|
+
const c = n.language;
|
|
1028
|
+
return /* @__PURE__ */ l("div", {
|
|
1029
1029
|
className: "listingblock",
|
|
1030
1030
|
...N(e),
|
|
1031
1031
|
children: [/* @__PURE__ */ r(le, {
|
|
@@ -1034,9 +1034,9 @@ const E = Je.exports, It = ({
|
|
|
1034
1034
|
className: "content",
|
|
1035
1035
|
children: /* @__PURE__ */ r("pre", {
|
|
1036
1036
|
className: E("highlight", o ? " nowrap" : ""),
|
|
1037
|
-
children:
|
|
1038
|
-
className:
|
|
1039
|
-
"data-lang":
|
|
1037
|
+
children: c ? /* @__PURE__ */ r("code", {
|
|
1038
|
+
className: c ? `language-${c}` : "",
|
|
1039
|
+
"data-lang": c,
|
|
1040
1040
|
dangerouslySetInnerHTML: {
|
|
1041
1041
|
__html: g
|
|
1042
1042
|
}
|
|
@@ -1049,7 +1049,7 @@ const E = Je.exports, It = ({
|
|
|
1049
1049
|
})]
|
|
1050
1050
|
});
|
|
1051
1051
|
} else
|
|
1052
|
-
return /* @__PURE__ */
|
|
1052
|
+
return /* @__PURE__ */ l("div", {
|
|
1053
1053
|
className: "listingblock",
|
|
1054
1054
|
...N(e),
|
|
1055
1055
|
children: [/* @__PURE__ */ r(le, {
|
|
@@ -1070,7 +1070,7 @@ const E = Je.exports, It = ({
|
|
|
1070
1070
|
node: e
|
|
1071
1071
|
}) => {
|
|
1072
1072
|
const n = e.getDocument().getAttributes().prewrap === void 0 || e.isOption("nowrap");
|
|
1073
|
-
return /* @__PURE__ */
|
|
1073
|
+
return /* @__PURE__ */ l("div", {
|
|
1074
1074
|
className: "literalblock",
|
|
1075
1075
|
...N(e),
|
|
1076
1076
|
children: [/* @__PURE__ */ r(x, {
|
|
@@ -1085,7 +1085,7 @@ const E = Je.exports, It = ({
|
|
|
1085
1085
|
});
|
|
1086
1086
|
}, Mt = ({
|
|
1087
1087
|
node: e
|
|
1088
|
-
}) => /* @__PURE__ */
|
|
1088
|
+
}) => /* @__PURE__ */ l("div", {
|
|
1089
1089
|
className: E("olist", C(e), e.getStyle()),
|
|
1090
1090
|
...N(e),
|
|
1091
1091
|
children: [/* @__PURE__ */ r(x, {
|
|
@@ -1094,7 +1094,7 @@ const E = Je.exports, It = ({
|
|
|
1094
1094
|
className: e.getStyle(),
|
|
1095
1095
|
reversed: e.isOption("reversed"),
|
|
1096
1096
|
start: e.getAttribute("start"),
|
|
1097
|
-
children: e.getItems().map((a, n) => /* @__PURE__ */
|
|
1097
|
+
children: e.getItems().map((a, n) => /* @__PURE__ */ l("li", {
|
|
1098
1098
|
className: C(e) ? C(e) : "",
|
|
1099
1099
|
children: [/* @__PURE__ */ r("p", {
|
|
1100
1100
|
children: w(D(a))
|
|
@@ -1107,7 +1107,7 @@ const E = Je.exports, It = ({
|
|
|
1107
1107
|
node: e
|
|
1108
1108
|
}) => {
|
|
1109
1109
|
const a = e.getStyle();
|
|
1110
|
-
return a === "abstract" ? /* @__PURE__ */
|
|
1110
|
+
return a === "abstract" ? /* @__PURE__ */ l("div", {
|
|
1111
1111
|
className: E("quoteblock abstract", C(e)),
|
|
1112
1112
|
...N(e),
|
|
1113
1113
|
children: [/* @__PURE__ */ r(x, {
|
|
@@ -1118,7 +1118,7 @@ const E = Je.exports, It = ({
|
|
|
1118
1118
|
blocks: e.getBlocks()
|
|
1119
1119
|
})
|
|
1120
1120
|
})]
|
|
1121
|
-
}) : /* @__PURE__ */
|
|
1121
|
+
}) : /* @__PURE__ */ l("div", {
|
|
1122
1122
|
className: E("openblock", a && a !== "open" ? a : "", C(e)),
|
|
1123
1123
|
...N(e),
|
|
1124
1124
|
children: [/* @__PURE__ */ r(x, {
|
|
@@ -1136,32 +1136,39 @@ const E = Je.exports, It = ({
|
|
|
1136
1136
|
}
|
|
1137
1137
|
}), Yt = ({
|
|
1138
1138
|
node: e
|
|
1139
|
-
}) =>
|
|
1140
|
-
|
|
1141
|
-
|
|
1142
|
-
|
|
1143
|
-
|
|
1144
|
-
|
|
1145
|
-
|
|
1146
|
-
|
|
1139
|
+
}) => {
|
|
1140
|
+
const a = H(e);
|
|
1141
|
+
return /* @__PURE__ */ l("div", {
|
|
1142
|
+
id: e.getId ? e.getId() : "",
|
|
1143
|
+
className: E("paragraph", C(e)),
|
|
1144
|
+
...N(e),
|
|
1145
|
+
children: [/* @__PURE__ */ r(x, {
|
|
1146
|
+
node: e
|
|
1147
|
+
}), /* @__PURE__ */ r("p", {
|
|
1148
|
+
dangerouslySetInnerHTML: {
|
|
1149
|
+
__html: a
|
|
1150
|
+
}
|
|
1151
|
+
})]
|
|
1152
|
+
});
|
|
1153
|
+
}, Ht = ({
|
|
1147
1154
|
node: e
|
|
1148
1155
|
}) => {
|
|
1149
|
-
const a =
|
|
1156
|
+
const a = H(e);
|
|
1150
1157
|
return /* @__PURE__ */ r(L, {
|
|
1151
1158
|
children: w(a)
|
|
1152
1159
|
});
|
|
1153
|
-
},
|
|
1160
|
+
}, Ut = ({
|
|
1154
1161
|
node: e
|
|
1155
1162
|
}) => {
|
|
1156
1163
|
const a = e.getDocument(), n = a.getAttribute("toc-placement") === "preamble" && a.hasSections() && a.hasAttribute("toc");
|
|
1157
1164
|
return /* @__PURE__ */ r("div", {
|
|
1158
1165
|
id: "preamble",
|
|
1159
1166
|
...N(e),
|
|
1160
|
-
children: /* @__PURE__ */
|
|
1167
|
+
children: /* @__PURE__ */ l("div", {
|
|
1161
1168
|
className: "sectionbody",
|
|
1162
1169
|
children: [/* @__PURE__ */ r(P, {
|
|
1163
1170
|
blocks: e.getBlocks()
|
|
1164
|
-
}), n && /* @__PURE__ */
|
|
1171
|
+
}), n && /* @__PURE__ */ l("div", {
|
|
1165
1172
|
id: "toc",
|
|
1166
1173
|
className: a.getAttribute("toc-class", "toc"),
|
|
1167
1174
|
children: [/* @__PURE__ */ r("div", {
|
|
@@ -1176,8 +1183,8 @@ const E = Je.exports, It = ({
|
|
|
1176
1183
|
}, qt = ({
|
|
1177
1184
|
node: e
|
|
1178
1185
|
}) => {
|
|
1179
|
-
const a = e.getAttribute("attribution"), n = e.getAttribute("citetitle"), o =
|
|
1180
|
-
return /* @__PURE__ */
|
|
1186
|
+
const a = e.getAttribute("attribution"), n = e.getAttribute("citetitle"), o = H(e);
|
|
1187
|
+
return /* @__PURE__ */ l("div", {
|
|
1181
1188
|
id: e.getId ? e.getId() : "",
|
|
1182
1189
|
className: E("quoteblock", C(e)),
|
|
1183
1190
|
...N(e),
|
|
@@ -1187,7 +1194,7 @@ const E = Je.exports, It = ({
|
|
|
1187
1194
|
dangerouslySetInnerHTML: {
|
|
1188
1195
|
__html: o
|
|
1189
1196
|
}
|
|
1190
|
-
}), a && /* @__PURE__ */
|
|
1197
|
+
}), a && /* @__PURE__ */ l("div", {
|
|
1191
1198
|
className: "attribution",
|
|
1192
1199
|
children: ["\u2014 ", a, n && /* @__PURE__ */ r("cite", {
|
|
1193
1200
|
children: n
|
|
@@ -1200,10 +1207,10 @@ const E = Je.exports, It = ({
|
|
|
1200
1207
|
const a = e.getDocument().getAttributes(), n = e.getLevel();
|
|
1201
1208
|
let o = "", g = e.getSectionNumeral();
|
|
1202
1209
|
g = g === "." ? "" : g;
|
|
1203
|
-
const
|
|
1210
|
+
const c = a.sectnumlevels ? parseInt(a.sectnumlevels) : 3;
|
|
1204
1211
|
if (e.getCaption())
|
|
1205
1212
|
o = e.getCaptionedTitle();
|
|
1206
|
-
else if (e.isNumbered() && n <=
|
|
1213
|
+
else if (e.isNumbered() && n <= c)
|
|
1207
1214
|
if (n < 2 && e.getDocument().getDoctype() == "book") {
|
|
1208
1215
|
const f = e.getSectionName();
|
|
1209
1216
|
f === "chapter" ? o = `${a["chapter-signifier"] || ""} ${g} ${e.getTitle()}` : f === "part" ? o = `${a["part-signifier"] || ""} ${g} ${e.getTitle()}` : o = `${g} ${e.getTitle()}`;
|
|
@@ -1211,7 +1218,7 @@ const E = Je.exports, It = ({
|
|
|
1211
1218
|
o = `${g} ${e.getTitle()}`;
|
|
1212
1219
|
else
|
|
1213
1220
|
o = e.getTitle() || "";
|
|
1214
|
-
return a.sectlinks && (o = /* @__PURE__ */
|
|
1221
|
+
return a.sectlinks && (o = /* @__PURE__ */ l(L, {
|
|
1215
1222
|
children: [/* @__PURE__ */ r("a", {
|
|
1216
1223
|
className: "anchor",
|
|
1217
1224
|
id: e.getId() || "",
|
|
@@ -1223,7 +1230,7 @@ const E = Je.exports, It = ({
|
|
|
1223
1230
|
__html: o
|
|
1224
1231
|
}
|
|
1225
1232
|
})]
|
|
1226
|
-
})), n === 0 ? /* @__PURE__ */
|
|
1233
|
+
})), n === 0 ? /* @__PURE__ */ l(L, {
|
|
1227
1234
|
children: [/* @__PURE__ */ r("h1", {
|
|
1228
1235
|
className: E("sect0", C(e)),
|
|
1229
1236
|
"data-sectnum": g,
|
|
@@ -1232,7 +1239,7 @@ const E = Je.exports, It = ({
|
|
|
1232
1239
|
}), /* @__PURE__ */ r(P, {
|
|
1233
1240
|
blocks: e.getBlocks()
|
|
1234
1241
|
})]
|
|
1235
|
-
}) : /* @__PURE__ */
|
|
1242
|
+
}) : /* @__PURE__ */ l("div", {
|
|
1236
1243
|
className: E(`sect${n}`, C(e)),
|
|
1237
1244
|
...N(e),
|
|
1238
1245
|
children: [J(`h${n + 1}`, {
|
|
@@ -1249,7 +1256,7 @@ const E = Je.exports, It = ({
|
|
|
1249
1256
|
}) => /* @__PURE__ */ r("div", {
|
|
1250
1257
|
className: E("sidebarblock", C(e)),
|
|
1251
1258
|
...N(e),
|
|
1252
|
-
children: /* @__PURE__ */
|
|
1259
|
+
children: /* @__PURE__ */ l("div", {
|
|
1253
1260
|
className: "content",
|
|
1254
1261
|
children: [/* @__PURE__ */ r(x, {
|
|
1255
1262
|
node: e
|
|
@@ -1262,17 +1269,17 @@ const E = Je.exports, It = ({
|
|
|
1262
1269
|
}) => {
|
|
1263
1270
|
let a = ["frame-" + e.getAttribute("frame", "all", "table-frame"), "grid-" + e.getAttribute("grid", "all", "table-grid")], n = e.getAttribute("stripes", null, "table-stripes");
|
|
1264
1271
|
n && a.push("stripes-" + n);
|
|
1265
|
-
let o = e.hasAutowidthOption(), g = e.getAttribute("tablepcwidth"),
|
|
1266
|
-
o && !e.hasAttribute("width") ? a.push("fit-content") : g == 100 ? a.push("stretch") :
|
|
1272
|
+
let o = e.hasAutowidthOption(), g = e.getAttribute("tablepcwidth"), c = null;
|
|
1273
|
+
o && !e.hasAttribute("width") ? a.push("fit-content") : g == 100 ? a.push("stretch") : c = `${g}%`, e.hasAttribute("float") && a.push(e.getAttribute("float")), e.getRole() && a.push(e.getRole() || "");
|
|
1267
1274
|
const f = e.getRowCount(), b = e.getColumns(), h = e.getHeadRows(), _ = e.getBodyRows(), v = e.getFootRows(), S = (y) => E(
|
|
1268
1275
|
"tableblock",
|
|
1269
1276
|
`halign-${y.getAttribute("halign")}`,
|
|
1270
1277
|
`valign-${y.getAttribute("valign")}`
|
|
1271
1278
|
);
|
|
1272
|
-
return /* @__PURE__ */
|
|
1279
|
+
return /* @__PURE__ */ l("table", {
|
|
1273
1280
|
className: E("tableblock", ...a),
|
|
1274
1281
|
style: {
|
|
1275
|
-
width:
|
|
1282
|
+
width: c || void 0
|
|
1276
1283
|
},
|
|
1277
1284
|
...N(e),
|
|
1278
1285
|
children: [e.hasTitle() && /* @__PURE__ */ r("caption", {
|
|
@@ -1299,14 +1306,14 @@ const E = Je.exports, It = ({
|
|
|
1299
1306
|
}, O)), /* @__PURE__ */ r("tbody", {
|
|
1300
1307
|
children: _.map((y, O) => /* @__PURE__ */ r("tr", {
|
|
1301
1308
|
children: y.map(($, F) => {
|
|
1302
|
-
const ue = $.getColumnSpan(), W = $.getRowSpan(), R =
|
|
1309
|
+
const ue = $.getColumnSpan(), W = $.getRowSpan(), R = H($), U = {
|
|
1303
1310
|
colSpan: ue,
|
|
1304
1311
|
rowSpan: W,
|
|
1305
1312
|
className: S($)
|
|
1306
1313
|
}, G = $.getStyle();
|
|
1307
1314
|
if (G === "asciidoc")
|
|
1308
1315
|
return /* @__PURE__ */ J("td", {
|
|
1309
|
-
...
|
|
1316
|
+
...U,
|
|
1310
1317
|
key: F
|
|
1311
1318
|
}, /* @__PURE__ */ r("div", {
|
|
1312
1319
|
className: "content",
|
|
@@ -1316,7 +1323,7 @@ const E = Je.exports, It = ({
|
|
|
1316
1323
|
}));
|
|
1317
1324
|
if (G === "literal")
|
|
1318
1325
|
return /* @__PURE__ */ J("td", {
|
|
1319
|
-
...
|
|
1326
|
+
...U,
|
|
1320
1327
|
key: F
|
|
1321
1328
|
}, /* @__PURE__ */ r("div", {
|
|
1322
1329
|
className: "literal",
|
|
@@ -1328,7 +1335,7 @@ const E = Je.exports, It = ({
|
|
|
1328
1335
|
}));
|
|
1329
1336
|
if (G === "header")
|
|
1330
1337
|
return /* @__PURE__ */ J("th", {
|
|
1331
|
-
...
|
|
1338
|
+
...U,
|
|
1332
1339
|
key: F
|
|
1333
1340
|
}, /* @__PURE__ */ r("p", {
|
|
1334
1341
|
className: "tableblock",
|
|
@@ -1339,7 +1346,7 @@ const E = Je.exports, It = ({
|
|
|
1339
1346
|
{
|
|
1340
1347
|
let te = R;
|
|
1341
1348
|
return /* @__PURE__ */ J("td", {
|
|
1342
|
-
...
|
|
1349
|
+
...U,
|
|
1343
1350
|
key: F
|
|
1344
1351
|
}, te.length === 0 ? "" : w(`<p class="tableblock">${te.join(`</p>
|
|
1345
1352
|
<p class="tableblock">`)}</p>`));
|
|
@@ -1364,8 +1371,8 @@ const E = Je.exports, It = ({
|
|
|
1364
1371
|
node: e
|
|
1365
1372
|
}) => {
|
|
1366
1373
|
let a = e.getId() || "toc";
|
|
1367
|
-
const n = e.getDocument(), o = e.hasTitle() ? e.getTitle() : n.getAttribute("toc-title"), g = ee(() => n.getAttribute("toc-placement"), [e]),
|
|
1368
|
-
return g === "macro" && n.hasSections() &&
|
|
1374
|
+
const n = e.getDocument(), o = e.hasTitle() ? e.getTitle() : n.getAttribute("toc-title"), g = ee(() => n.getAttribute("toc-placement"), [e]), c = ee(() => n.hasAttribute("toc"), [e]), f = e.hasAttribute("levels") ? parseInt(e.getAttribute("levels")) : void 0;
|
|
1375
|
+
return g === "macro" && n.hasSections() && c ? /* @__PURE__ */ l("div", {
|
|
1369
1376
|
id: a,
|
|
1370
1377
|
className: E("toc", C(e)),
|
|
1371
1378
|
children: [/* @__PURE__ */ r("div", {
|
|
@@ -1383,7 +1390,7 @@ const E = Je.exports, It = ({
|
|
|
1383
1390
|
node: e
|
|
1384
1391
|
}) => {
|
|
1385
1392
|
const a = e.isOption("checklist");
|
|
1386
|
-
return /* @__PURE__ */
|
|
1393
|
+
return /* @__PURE__ */ l("div", {
|
|
1387
1394
|
id: e.getId ? e.getId() : "",
|
|
1388
1395
|
className: E("ulist", e.getStyle(), C(e), a && "checklist"),
|
|
1389
1396
|
...N(e),
|
|
@@ -1394,12 +1401,12 @@ const E = Je.exports, It = ({
|
|
|
1394
1401
|
children: e.getItems().map((n, o) => a ? /* @__PURE__ */ r("li", {
|
|
1395
1402
|
id: n.getId(),
|
|
1396
1403
|
className: C(e),
|
|
1397
|
-
children: /* @__PURE__ */
|
|
1404
|
+
children: /* @__PURE__ */ l("p", {
|
|
1398
1405
|
children: [a && n.hasAttribute("checkbox") && /* @__PURE__ */ r("i", {
|
|
1399
1406
|
className: E("fa", n.hasAttribute("checked") ? "fa-check-square-o" : "fa-square-o")
|
|
1400
1407
|
}), " ", w(D(n))]
|
|
1401
1408
|
})
|
|
1402
|
-
}, o) : /* @__PURE__ */
|
|
1409
|
+
}, o) : /* @__PURE__ */ l("li", {
|
|
1403
1410
|
id: n.getId(),
|
|
1404
1411
|
className: C(e),
|
|
1405
1412
|
children: [/* @__PURE__ */ r("p", {
|
|
@@ -1415,8 +1422,8 @@ const E = Je.exports, It = ({
|
|
|
1415
1422
|
}, Qt = ({
|
|
1416
1423
|
node: e
|
|
1417
1424
|
}) => {
|
|
1418
|
-
const a = e.getAttribute("attribution"), n = e.getAttribute("citetitle"), o =
|
|
1419
|
-
return /* @__PURE__ */
|
|
1425
|
+
const a = e.getAttribute("attribution"), n = e.getAttribute("citetitle"), o = H(e);
|
|
1426
|
+
return /* @__PURE__ */ l("div", {
|
|
1420
1427
|
id: e.getId ? e.getId() : "",
|
|
1421
1428
|
className: E("verseblock", C(e)),
|
|
1422
1429
|
...N(e),
|
|
@@ -1427,7 +1434,7 @@ const E = Je.exports, It = ({
|
|
|
1427
1434
|
dangerouslySetInnerHTML: {
|
|
1428
1435
|
__html: o
|
|
1429
1436
|
}
|
|
1430
|
-
}), a && /* @__PURE__ */
|
|
1437
|
+
}), a && /* @__PURE__ */ l("div", {
|
|
1431
1438
|
className: "attribution",
|
|
1432
1439
|
children: ["\u2014 ", a, n && /* @__PURE__ */ r("cite", {
|
|
1433
1440
|
children: n
|
|
@@ -1458,9 +1465,9 @@ const E = Je.exports, It = ({
|
|
|
1458
1465
|
}) => {
|
|
1459
1466
|
const a = Et(ze), n = e.getNodeName(), o = e.getDocument(), g = e.getAttributes();
|
|
1460
1467
|
o.playbackAttributes(g);
|
|
1461
|
-
const
|
|
1462
|
-
if (
|
|
1463
|
-
return /* @__PURE__ */ r(
|
|
1468
|
+
const c = a && a.overrides && a.overrides[n];
|
|
1469
|
+
if (c)
|
|
1470
|
+
return /* @__PURE__ */ r(c, {
|
|
1464
1471
|
node: e
|
|
1465
1472
|
});
|
|
1466
1473
|
switch (n) {
|
|
@@ -1469,7 +1476,7 @@ const E = Je.exports, It = ({
|
|
|
1469
1476
|
node: e
|
|
1470
1477
|
});
|
|
1471
1478
|
case "preamble":
|
|
1472
|
-
return /* @__PURE__ */ r(
|
|
1479
|
+
return /* @__PURE__ */ r(Ut, {
|
|
1473
1480
|
node: e
|
|
1474
1481
|
});
|
|
1475
1482
|
case "section":
|
|
@@ -1527,7 +1534,7 @@ const E = Je.exports, It = ({
|
|
|
1527
1534
|
node: e
|
|
1528
1535
|
});
|
|
1529
1536
|
case "pass":
|
|
1530
|
-
return /* @__PURE__ */ r(
|
|
1537
|
+
return /* @__PURE__ */ r(Ht, {
|
|
1531
1538
|
node: e
|
|
1532
1539
|
});
|
|
1533
1540
|
case "page_break":
|
|
@@ -1576,8 +1583,8 @@ export {
|
|
|
1576
1583
|
oe as Outline,
|
|
1577
1584
|
Wt as PageBreak,
|
|
1578
1585
|
Yt as Paragraph,
|
|
1579
|
-
|
|
1580
|
-
|
|
1586
|
+
Ht as Pass,
|
|
1587
|
+
Ut as Preamble,
|
|
1581
1588
|
qt as Quote,
|
|
1582
1589
|
Vt as Section,
|
|
1583
1590
|
Jt as Sidebar,
|
|
@@ -1589,7 +1596,7 @@ export {
|
|
|
1589
1596
|
Qt as Verse,
|
|
1590
1597
|
nr as asciidoctor,
|
|
1591
1598
|
rr as default,
|
|
1592
|
-
|
|
1599
|
+
H as getContent,
|
|
1593
1600
|
N as getLineNumber,
|
|
1594
1601
|
C as getRole,
|
|
1595
1602
|
D as getText
|
|
@@ -16,17 +16,17 @@
|
|
|
16
16
|
* LICENSE file in the root directory of this source tree.
|
|
17
17
|
*/var Ne;function Nt(){return Ne||(Ne=1,process.env.NODE_ENV!=="production"&&function(){var e=Te.default,a=Symbol.for("react.element"),n=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),g=Symbol.for("react.strict_mode"),c=Symbol.for("react.profiler"),d=Symbol.for("react.provider"),y=Symbol.for("react.context"),h=Symbol.for("react.forward_ref"),T=Symbol.for("react.suspense"),v=Symbol.for("react.suspense_list"),O=Symbol.for("react.memo"),_=Symbol.for("react.lazy"),j=Symbol.for("react.offscreen"),I=Symbol.iterator,B="@@iterator";function de(t){if(t===null||typeof t!="object")return null;var i=I&&t[I]||t[B];return typeof i=="function"?i:null}var H=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function S(t){{for(var i=arguments.length,s=new Array(i>1?i-1:0),u=1;u<i;u++)s[u-1]=arguments[u];z("error",t,s)}}function z(t,i,s){{var u=H.ReactDebugCurrentFrame,p=u.getStackAddendum();p!==""&&(i+="%s",s=s.concat([p]));var A=s.map(function(b){return String(b)});A.unshift("Warning: "+i),Function.prototype.apply.call(console[t],console,A)}}var te=!1,ne=!1,Et=!1,St=!1,wt=!1,qe;qe=Symbol.for("react.module.reference");function Ct(t){return!!(typeof t=="string"||typeof t=="function"||t===o||t===c||wt||t===g||t===T||t===v||St||t===j||te||ne||Et||typeof t=="object"&&t!==null&&(t.$$typeof===_||t.$$typeof===O||t.$$typeof===d||t.$$typeof===y||t.$$typeof===h||t.$$typeof===qe||t.getModuleId!==void 0))}function Ot(t,i,s){var u=t.displayName;if(u)return u;var p=i.displayName||i.name||"";return p!==""?s+"("+p+")":s}function Xe(t){return t.displayName||"Context"}function W(t){if(t==null)return null;if(typeof t.tag=="number"&&S("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t;switch(t){case o:return"Fragment";case n:return"Portal";case c:return"Profiler";case g:return"StrictMode";case T:return"Suspense";case v:return"SuspenseList"}if(typeof t=="object")switch(t.$$typeof){case y:var i=t;return Xe(i)+".Consumer";case d:var s=t;return Xe(s._context)+".Provider";case h:return Ot(t,t.render,"ForwardRef");case O:var u=t.displayName||null;return u!==null?u:W(t.type)||"Memo";case _:{var p=t,A=p._payload,b=p._init;try{return W(b(A))}catch{return null}}}return null}var V=Object.assign,re=0,Qe,Ze,et,tt,rt,at,it;function nt(){}nt.__reactDisabledLog=!0;function It(){{if(re===0){Qe=console.log,Ze=console.info,et=console.warn,tt=console.error,rt=console.group,at=console.groupCollapsed,it=console.groupEnd;var t={configurable:!0,enumerable:!0,value:nt,writable:!0};Object.defineProperties(console,{info:t,log:t,warn:t,error:t,group:t,groupCollapsed:t,groupEnd:t})}re++}}function Pt(){{if(re--,re===0){var t={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:V({},t,{value:Qe}),info:V({},t,{value:Ze}),warn:V({},t,{value:et}),error:V({},t,{value:tt}),group:V({},t,{value:rt}),groupCollapsed:V({},t,{value:at}),groupEnd:V({},t,{value:it})})}re<0&&S("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var he=H.ReactCurrentDispatcher,ge;function se(t,i,s){{if(ge===void 0)try{throw Error()}catch(p){var u=p.stack.trim().match(/\n( *(at )?)/);ge=u&&u[1]||""}return`
|
|
18
18
|
`+ge+t}}var me=!1,le;{var jt=typeof WeakMap=="function"?WeakMap:Map;le=new jt}function st(t,i){if(!t||me)return"";{var s=le.get(t);if(s!==void 0)return s}var u;me=!0;var p=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var A;A=he.current,he.current=null,It();try{if(i){var b=function(){throw Error()};if(Object.defineProperty(b.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(b,[])}catch(Y){u=Y}Reflect.construct(t,[],b)}else{try{b.call()}catch(Y){u=Y}t.call(b.prototype)}}else{try{throw Error()}catch(Y){u=Y}t()}}catch(Y){if(Y&&u&&typeof Y.stack=="string"){for(var m=Y.stack.split(`
|
|
19
|
-
`),
|
|
20
|
-
`),R=m.length-1,w=
|
|
21
|
-
`+m[R].replace(" at new "," at ");return t.displayName&&x.includes("<anonymous>")&&(x=x.replace("<anonymous>",t.displayName)),typeof t=="function"&&le.set(t,x),x}while(R>=1&&w>=0);break}}}finally{me=!1,he.current=A,Pt(),Error.prepareStackTrace=p}var K=t?t.displayName||t.name:"",yt=K?se(K):"";return typeof t=="function"&&le.set(t,yt),yt}function
|
|
19
|
+
`),L=u.stack.split(`
|
|
20
|
+
`),R=m.length-1,w=L.length-1;R>=1&&w>=0&&m[R]!==L[w];)w--;for(;R>=1&&w>=0;R--,w--)if(m[R]!==L[w]){if(R!==1||w!==1)do if(R--,w--,w<0||m[R]!==L[w]){var x=`
|
|
21
|
+
`+m[R].replace(" at new "," at ");return t.displayName&&x.includes("<anonymous>")&&(x=x.replace("<anonymous>",t.displayName)),typeof t=="function"&&le.set(t,x),x}while(R>=1&&w>=0);break}}}finally{me=!1,he.current=A,Pt(),Error.prepareStackTrace=p}var K=t?t.displayName||t.name:"",yt=K?se(K):"";return typeof t=="function"&&le.set(t,yt),yt}function Lt(t,i,s){return st(t,!1)}function Dt(t){var i=t.prototype;return!!(i&&i.isReactComponent)}function ce(t,i,s){if(t==null)return"";if(typeof t=="function")return st(t,Dt(t));if(typeof t=="string")return se(t);switch(t){case T:return se("Suspense");case v:return se("SuspenseList")}if(typeof t=="object")switch(t.$$typeof){case h:return Lt(t.render);case O:return ce(t.type,i,s);case _:{var u=t,p=u._payload,A=u._init;try{return ce(A(p),i,s)}catch{}}}return""}var oe=Object.prototype.hasOwnProperty,lt={},ct=H.ReactDebugCurrentFrame;function ue(t){if(t){var i=t._owner,s=ce(t.type,t._source,i?i.type:null);ct.setExtraStackFrame(s)}else ct.setExtraStackFrame(null)}function $t(t,i,s,u,p){{var A=Function.call.bind(oe);for(var b in t)if(A(t,b)){var m=void 0;try{if(typeof t[b]!="function"){var L=Error((u||"React class")+": "+s+" type `"+b+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof t[b]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw L.name="Invariant Violation",L}m=t[b](i,b,u,s,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(R){m=R}m&&!(m instanceof Error)&&(ue(p),S("%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).",u||"React class",s,b,typeof m),ue(null)),m instanceof Error&&!(m.message in lt)&&(lt[m.message]=!0,ue(p),S("Failed %s type: %s",s,m.message),ue(null))}}}var Ft=Array.isArray;function ve(t){return Ft(t)}function xt(t){{var i=typeof Symbol=="function"&&Symbol.toStringTag,s=i&&t[Symbol.toStringTag]||t.constructor.name||"Object";return s}}function Mt(t){try{return ot(t),!1}catch{return!0}}function ot(t){return""+t}function ut(t){if(Mt(t))return S("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",xt(t)),ot(t)}var ae=H.ReactCurrentOwner,Bt={key:!0,ref:!0,__self:!0,__source:!0},ft,dt,be;be={};function Wt(t){if(oe.call(t,"ref")){var i=Object.getOwnPropertyDescriptor(t,"ref").get;if(i&&i.isReactWarning)return!1}return t.ref!==void 0}function Yt(t){if(oe.call(t,"key")){var i=Object.getOwnPropertyDescriptor(t,"key").get;if(i&&i.isReactWarning)return!1}return t.key!==void 0}function Ut(t,i){if(typeof t.ref=="string"&&ae.current&&i&&ae.current.stateNode!==i){var s=W(ae.current.type);be[s]||(S('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',W(ae.current.type),t.ref),be[s]=!0)}}function Ht(t,i){{var s=function(){ft||(ft=!0,S("%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)",i))};s.isReactWarning=!0,Object.defineProperty(t,"key",{get:s,configurable:!0})}}function Vt(t,i){{var s=function(){dt||(dt=!0,S("%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)",i))};s.isReactWarning=!0,Object.defineProperty(t,"ref",{get:s,configurable:!0})}}var Jt=function(t,i,s,u,p,A,b){var m={$$typeof:a,type:t,key:i,ref:s,props:b,_owner:A};return m._store={},Object.defineProperty(m._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(m,"_self",{configurable:!1,enumerable:!1,writable:!1,value:u}),Object.defineProperty(m,"_source",{configurable:!1,enumerable:!1,writable:!1,value:p}),Object.freeze&&(Object.freeze(m.props),Object.freeze(m)),m};function zt(t,i,s,u,p){{var A,b={},m=null,L=null;s!==void 0&&(ut(s),m=""+s),Yt(i)&&(ut(i.key),m=""+i.key),Wt(i)&&(L=i.ref,Ut(i,p));for(A in i)oe.call(i,A)&&!Bt.hasOwnProperty(A)&&(b[A]=i[A]);if(t&&t.defaultProps){var R=t.defaultProps;for(A in R)b[A]===void 0&&(b[A]=R[A])}if(m||L){var w=typeof t=="function"?t.displayName||t.name||"Unknown":t;m&&Ht(b,w),L&&Vt(b,w)}return Jt(t,m,L,p,u,ae.current,b)}}var pe=H.ReactCurrentOwner,ht=H.ReactDebugCurrentFrame;function G(t){if(t){var i=t._owner,s=ce(t.type,t._source,i?i.type:null);ht.setExtraStackFrame(s)}else ht.setExtraStackFrame(null)}var ye;ye=!1;function _e(t){return typeof t=="object"&&t!==null&&t.$$typeof===a}function gt(){{if(pe.current){var t=W(pe.current.type);if(t)return`
|
|
22
22
|
|
|
23
23
|
Check the render method of \``+t+"`."}return""}}function Gt(t){{if(t!==void 0){var i=t.fileName.replace(/^.*[\\\/]/,""),s=t.lineNumber;return`
|
|
24
24
|
|
|
25
25
|
Check your code at `+i+":"+s+"."}return""}}var mt={};function Kt(t){{var i=gt();if(!i){var s=typeof t=="string"?t:t.displayName||t.name;s&&(i=`
|
|
26
26
|
|
|
27
|
-
Check the top-level render call using <`+s+">.")}return i}}function vt(t,i){{if(!t._store||t._store.validated||t.key!=null)return;t._store.validated=!0;var s=Kt(i);if(mt[s])return;mt[s]=!0;var u="";t&&t._owner&&t._owner!==pe.current&&(u=" It was passed a child from "+W(t._owner.type)+"."),G(t),S('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',s,u),G(null)}}function bt(t,i){{if(typeof t!="object")return;if(ve(t))for(var s=0;s<t.length;s++){var u=t[s];_e(u)&&vt(u,i)}else if(_e(t))t._store&&(t._store.validated=!0);else if(t){var p=de(t);if(typeof p=="function"&&p!==t.entries)for(var A=p.call(t),b;!(b=A.next()).done;)_e(b.value)&&vt(b.value,i)}}}function qt(t){{var i=t.type;if(i==null||typeof i=="string")return;var s;if(typeof i=="function")s=i.propTypes;else if(typeof i=="object"&&(i.$$typeof===h||i.$$typeof===O))s=i.propTypes;else return;if(s){var u=W(i);$t(s,t.props,"prop",u,t)}else if(i.PropTypes!==void 0&&!ye){ye=!0;var p=W(i);S("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",p||"Unknown")}typeof i.getDefaultProps=="function"&&!i.getDefaultProps.isReactClassApproved&&S("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function Xt(t){{for(var i=Object.keys(t.props),s=0;s<i.length;s++){var u=i[s];if(u!=="children"&&u!=="key"){G(t),S("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",u),G(null);break}}t.ref!==null&&(G(t),S("Invalid attribute `ref` supplied to `React.Fragment`."),G(null))}}function pt(t,i,s,u,p,A){{var b=Ct(t);if(!b){var m="";(t===void 0||typeof t=="object"&&t!==null&&Object.keys(t).length===0)&&(m+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var
|
|
27
|
+
Check the top-level render call using <`+s+">.")}return i}}function vt(t,i){{if(!t._store||t._store.validated||t.key!=null)return;t._store.validated=!0;var s=Kt(i);if(mt[s])return;mt[s]=!0;var u="";t&&t._owner&&t._owner!==pe.current&&(u=" It was passed a child from "+W(t._owner.type)+"."),G(t),S('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',s,u),G(null)}}function bt(t,i){{if(typeof t!="object")return;if(ve(t))for(var s=0;s<t.length;s++){var u=t[s];_e(u)&&vt(u,i)}else if(_e(t))t._store&&(t._store.validated=!0);else if(t){var p=de(t);if(typeof p=="function"&&p!==t.entries)for(var A=p.call(t),b;!(b=A.next()).done;)_e(b.value)&&vt(b.value,i)}}}function qt(t){{var i=t.type;if(i==null||typeof i=="string")return;var s;if(typeof i=="function")s=i.propTypes;else if(typeof i=="object"&&(i.$$typeof===h||i.$$typeof===O))s=i.propTypes;else return;if(s){var u=W(i);$t(s,t.props,"prop",u,t)}else if(i.PropTypes!==void 0&&!ye){ye=!0;var p=W(i);S("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",p||"Unknown")}typeof i.getDefaultProps=="function"&&!i.getDefaultProps.isReactClassApproved&&S("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function Xt(t){{for(var i=Object.keys(t.props),s=0;s<i.length;s++){var u=i[s];if(u!=="children"&&u!=="key"){G(t),S("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",u),G(null);break}}t.ref!==null&&(G(t),S("Invalid attribute `ref` supplied to `React.Fragment`."),G(null))}}function pt(t,i,s,u,p,A){{var b=Ct(t);if(!b){var m="";(t===void 0||typeof t=="object"&&t!==null&&Object.keys(t).length===0)&&(m+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var L=Gt(p);L?m+=L:m+=gt();var R;t===null?R="null":ve(t)?R="array":t!==void 0&&t.$$typeof===a?(R="<"+(W(t.type)||"Unknown")+" />",m=" Did you accidentally export a JSX literal instead of a component?"):R=typeof t,S("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",R,m)}var w=zt(t,i,s,p,A);if(w==null)return w;if(b){var x=i.children;if(x!==void 0)if(u)if(ve(x)){for(var K=0;K<x.length;K++)bt(x[K],t);Object.freeze&&Object.freeze(x)}else S("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else bt(x,t)}return t===o?Xt(w):qt(w),w}}function Qt(t,i,s){return pt(t,i,s,!0)}function Zt(t,i,s){return pt(t,i,s,!1)}var er=Zt,tr=Qt;Q.Fragment=o,Q.jsx=er,Q.jsxs=tr}()),Q}(function(e){process.env.NODE_ENV==="production"?e.exports=At():e.exports=Nt()})(ie);const M=ie.exports.Fragment,r=ie.exports.jsx,l=ie.exports.jsxs,D=({node:e})=>e.hasTitle()?r("div",{className:"title",children:C.default(e.getTitle()||"")}):null,Z=({node:e})=>e.hasTitle()?r("div",{className:"title",children:C.default(e.getCaptionedTitle()||"")}):null,k=e=>typeof e.getRole()=="string"?e.getRole():void 0,N=e=>e.getLineNumber()?{"data-lineno":e.getLineNumber()}:{},Re=({node:e})=>{const a=e.getAttributes(),n=e.getDocument(),o=U(e),g=()=>n.getAttribute("icons")==="font"&&!a.icon?r("i",{className:`fa icon-${a.name}`,title:a.textlabel}):r("img",{src:e.getIconUri(a.name),alt:a.textlabel});return e.content_model,r("div",{className:`admonitionblock ${a.name}`,...N(e),children:r("table",{children:r("tbody",{children:l("tr",{children:[r("td",{className:"icon",children:n.hasAttribute("icons")?g():r("div",{className:"title",children:e.getAttribute("textlabel")})}),l("td",{className:"content",children:[r(D,{node:e}),C.default(o)]})]})})})})},ke=({node:e})=>{const a=e.getAttribute("start"),n=e.getAttribute("start"),o=(a||n)&&`#t=${a||""}`+n?`,${n}`:"";return l("div",{className:"audioblock",...N(e),children:[r(D,{node:e}),r("div",{className:"content",children:r("audio",{src:`${e.getMediaUri(e.getAttribute("target"))}${o}`,autoPlay:e.isOption("autoplay"),controls:!e.isOption("nocontrols"),loop:e.isOption("loop"),children:"Your browser does not support the audio tag."})})]})},Ee=({node:e})=>l("div",{className:"colist",...N(e),children:[r(D,{node:e}),r("table",{children:r("tbody",{children:e.getItems().map((a,n)=>l("tr",{children:[l("td",{children:[r("i",{className:"conum","data-value":n+1}),r("b",{children:n+1})]}),l("td",{children:[C.default(F(a)),r($,{blocks:a.getBlocks()})]})]},n))})})]});var Se={exports:{}};/*!
|
|
28
28
|
Copyright (c) 2018 Jed Watson.
|
|
29
29
|
Licensed under the MIT License (MIT), see
|
|
30
30
|
http://jedwatson.github.io/classnames
|
|
31
|
-
*/(function(e){(function(){var a={}.hasOwnProperty;function n(){for(var o=[],g=0;g<arguments.length;g++){var c=arguments[g];if(!!c){var d=typeof c;if(d==="string"||d==="number")o.push(c);else if(Array.isArray(c)){if(c.length){var y=n.apply(null,c);y&&o.push(y)}}else if(d==="object"){if(c.toString!==Object.prototype.toString&&!c.toString.toString().includes("[native code]")){o.push(c.toString());continue}for(var h in c)a.call(c,h)&&c[h]&&o.push(h)}}}return o.join(" ")}e.exports?(n.default=n,e.exports=n):window.classNames=n})()})(Se);const E=Se.exports,we=({node:e})=>{const a=e.getStyle(),n=c=>{const d=c,y=d[0];let h=d[1];return h.getNodeName||(h=null),{terms:y,dd:h}},o=c=>{if(c)return l("dd",{children:[c.hasText()&&r("p",{children:C.default(F(c))}),c.hasBlocks()&&r($,{blocks:c.getBlocks()})]})},g=e.hasTitle()&&r("div",{className:"title",children:e.getCaptionedTitle()});if(a==="qanda")return l("div",{className:E("qlist qanda",k(e)),...N(e),children:[g,r("ol",{children:e.getItems().map((c,d)=>{const{terms:y,dd:h}=n(c);return l("li",{children:[y.map((T,v)=>r("p",{children:r("em",{children:F(T)})},v)),o(h)]},d)})})]});if(a==="horizontal"){const c=e.getAttribute("labelwidth"),d=e.getAttribute("itemwidth");return l("div",{className:E("hdlist",k(e)),children:[g,l("table",{children:[(c||d)&&l("colgroup",{children:[r("col",{style:{width:c?`${c.replace("%","")}%`:""}}),r("col",{style:{width:d?`${d.replace("%","")}%`:""}})]}),r("tbody",{children:e.getItems().map((y,h)=>{const{terms:T,dd:v}=n(y);return l("tr",{children:[r("td",{className:E("hdlist1",e.isOption("strong")?"strong":""),children:T.map((O,_)=>l(P.Fragment,{children:[_!==0&&r("br",{}),C.default(F(O))]},_))}),v&&l("td",{className:"hdlist2",children:[v.hasText()&&r("p",{children:C.default(F(v))}),v.hasBlocks()&&r($,{blocks:v.getBlocks()})]})]},h)})})]})]})}else return l("div",{className:E("dlist",e.getStyle(),k(e)),children:[g,r("dl",{children:e.getItems().map((c,d)=>{const{terms:y,dd:h}=n(c);return l(P.Fragment,{children:[y.map((T,v)=>r("dt",{className:"hdlist1",children:C.default(F(T))},v)),o(h)]},d)})})]})},ee=({node:e,opts:a})=>{if(!e.hasSections())return null;const n=e.getSections(),o=e.getDocument(),g=P.useMemo(()=>o.getAttributes(),[e]),c=P.useMemo(()=>o.getAttribute("sectnumlevels"),[e]),d=P.useMemo(()=>o.getAttribute("toclevels"),[e]),y=(a==null?void 0:a.sectNumLevels)||(c?parseInt(c):3),h=(a==null?void 0:a.tocLevels)||(d?parseInt(d):2);return r("ul",{className:`sectlevel${n[0].getLevel()}`,children:n.map(T=>{let v=T.$sectnum();v=v==="."||v===".."?"":v;const O=T.getLevel();let _="";if(T.getCaption())_=T.getCaptionedTitle();else if(O<=y)if(O<2&&o.getDoctype()=="book"){const j=T.getSectionName();j==="chapter"?_=`${g["chapter-signifier"]||""} ${v} ${T.getTitle()}`:j==="part"?_=`${g["part-signifier"]||""} ${v} ${T.getTitle()}`:_=`${v} ${T.getTitle()}`}else _=`${v} ${T.getTitle()}`;else _=T.getTitle()||"";return l("li",{children:[r("a",{href:`#${T.getId()}`,children:C.default(_)}),O<h&&r(ee,{node:T,opts:{tocLevels:h,sectNumLevels:y}})]},T.getId())})})},Ce=({document:e})=>{const a=e.getBlocks(),n=e.getFootnotes(),o=()=>{var d;return e.getNoheader()?null:r("div",{id:"header",children:e.hasHeader()&&l(M,{children:[r("h1",{dangerouslySetInnerHTML:{__html:((d=e.getDocumentTitle())==null?void 0:d.toString())||""}}),r(c,{}),e.hasSections()&&e.hasAttribute("toc")&&e.getAttribute("toc-placement")==="auto"&&l("div",{id:"toc",className:e.getAttribute("toc-class","toc"),children:[r("div",{id:"toctitle",children:e.getAttribute("toc-title")}),r(ee,{node:e})]})]})})},g=()=>n&&n.length>0&&a&&!a[0].getDocument().hasAttribute("nofootnotes")?l("div",{id:"footnotes",children:[r("hr",{}),n.map(d=>l("div",{className:"footnote",id:`_footnotedef_${d.getIndex()}`,children:[r("a",{href:`#_footnoteref_${d.getIndex()}`,children:d.getIndex()}),"."," ",C.default(F(d)||"")]},d.getIndex()))]}):null,c=()=>e.getAuthors().length>0||e.hasAttribute("revnumber")||e.hasAttribute("revdate")||e.hasAttribute("revremark")?l("div",{className:"details",children:[e.getAuthors().map((y,h)=>l(P.Fragment,{children:[y.getName()&&l(M,{children:[r("span",{id:`author${h+1>1?h+1:""}`,className:"author",children:C.default(e.applySubstitutions(y.getName()||"").toString())}),r("br",{})]}),y.getEmail()&&l(M,{children:[r("span",{id:`email${h+1>1?h+1:""}`,className:"email",children:C.default(e.applySubstitutions(y.getEmail()||"").toString())}),r("br",{})]})]},h)),e.hasAttribute("revnumber")&&r("span",{id:"revnumber",children:`${e.getAttribute("version-label").toLowerCase()} ${e.getAttribute("revnumber")}${e.hasAttribute("revdate")?",":""}`}),e.hasAttribute("revdate")&&r("span",{id:"revdate",children:e.getAttribute("revdate")}),e.hasAttribute("revremark")&&l(M,{children:[r("br",{}),r("span",{id:"revremark",children:e.getAttribute("revremark")})]})]}):null;return l(M,{children:[r(o,{}),r("div",{id:"content",children:r($,{blocks:a})}),r(g,{})]})},Oe=({node:e})=>l("div",{className:E("exampleblock",k(e)),...N(e),children:[r(Z,{node:e}),r("div",{className:"content",children:r($,{blocks:e.getBlocks()})})]}),Ie=({node:e})=>{const a=e.getLevel();return l(M,{children:[r("a",{className:"sectionanchor",id:`${e.getId()||""}`,...N(e)}),P.createElement(`h${a+1}`,null,r(L,{node:e}))]})},Pe=({node:e})=>{const a=e.getAttribute("target");let n=r("img",{src:e.getImageUri(a),alt:e.getAttribute("alt"),width:e.getAttribute("width"),height:e.getAttribute("height")});return e.hasAttribute("link")&&(n=r("a",{className:"image",href:e.getAttribute("link"),children:n})),l("div",{className:`imageblock ${e.hasAttribute("align")?"text-"+e.getAttribute("align"):""} ${e.hasAttribute("float")?e.getAttribute("float"):""} ${e.getRole()?e.getRole():""}`,...N(e),children:[r("div",{className:"content",children:n}),r(Z,{node:e})]})},je=({node:e})=>{const a=e.getDocument(),n=e.getAttributes(),o=e.isOption("nowrap")||!a.hasAttribute("prewrap"),g=U(e);if(e.getStyle()==="source"){const c=n.language;return l("div",{className:"listingblock",...N(e),children:[r(Z,{node:e}),r("div",{className:"content",children:r("pre",{className:E("highlight",o?" nowrap":""),children:c?r("code",{className:c?`language-${c}`:"","data-lang":c,dangerouslySetInnerHTML:{__html:g}}):r("code",{dangerouslySetInnerHTML:{__html:g}})})})]})}else return l("div",{className:"listingblock",...N(e),children:[r(Z,{node:e}),r("div",{className:"content",children:r("pre",{className:o?" nowrap":"",children:r("code",{dangerouslySetInnerHTML:{__html:e.getSource()}})})})]})},De=({node:e})=>{const n=e.getDocument().getAttributes().prewrap===void 0||e.isOption("nowrap");return l("div",{className:"literalblock",...N(e),children:[r(L,{node:e}),r("div",{className:"content",children:r("pre",{className:n?"nowrap":"",children:e.getSource()})})]})},Le=({node:e})=>l("div",{className:E("olist",k(e),e.getStyle()),...N(e),children:[r(L,{node:e}),r("ol",{className:e.getStyle(),reversed:e.isOption("reversed"),start:e.getAttribute("start"),children:e.getItems().map((a,n)=>l("li",{className:k(e)?k(e):"",children:[r("p",{children:C.default(F(a))}),r($,{blocks:a.getBlocks()})]},n))})]}),$e=({node:e})=>{const a=e.getStyle();return a==="abstract"?l("div",{className:E("quoteblock abstract",k(e)),...N(e),children:[r(L,{node:e}),r("blockquote",{className:"content",children:r($,{blocks:e.getBlocks()})})]}):l("div",{className:E("openblock",a&&a!=="open"?a:"",k(e)),...N(e),children:[r(L,{node:e}),r("div",{className:"content",children:r($,{blocks:e.getBlocks()})})]})},Fe=()=>r("div",{style:{pageBreakAfter:"always"}}),xe=({node:e})=>(U(e),r("div",{id:e.getId?e.getId():"",className:E("paragraph",k(e)),...N(e),children:r(L,{node:e})})),Me=({node:e})=>{const a=U(e);return r(M,{children:C.default(a)})},Be=({node:e})=>{const a=e.getDocument(),n=a.getAttribute("toc-placement")==="preamble"&&a.hasSections()&&a.hasAttribute("toc");return r("div",{id:"preamble",...N(e),children:l("div",{className:"sectionbody",children:[r($,{blocks:e.getBlocks()}),n&&l("div",{id:"toc",className:a.getAttribute("toc-class","toc"),children:[r("div",{id:"toctitle",children:C.default(a.getAttribute("toc-title"))}),r(ee,{node:a})]})]})})},We=({node:e})=>{const a=e.getAttribute("attribution"),n=e.getAttribute("citetitle"),o=U(e);return l("div",{id:e.getId?e.getId():"",className:E("quoteblock",k(e)),...N(e),children:[r(L,{node:e}),r("blockquote",{dangerouslySetInnerHTML:{__html:o}}),a&&l("div",{className:"attribution",children:["\u2014 ",a,n&&r("cite",{children:n})]})]})},Ye=({node:e})=>{const a=e.getDocument().getAttributes(),n=e.getLevel();let o="",g=e.getSectionNumeral();g=g==="."?"":g;const c=a.sectnumlevels?parseInt(a.sectnumlevels):3;if(e.getCaption())o=e.getCaptionedTitle();else if(e.isNumbered()&&n<=c)if(n<2&&e.getDocument().getDoctype()=="book"){const d=e.getSectionName();d==="chapter"?o=`${a["chapter-signifier"]||""} ${g} ${e.getTitle()}`:d==="part"?o=`${a["part-signifier"]||""} ${g} ${e.getTitle()}`:o=`${g} ${e.getTitle()}`}else o=`${g} ${e.getTitle()}`;else o=e.getTitle()||"";return a.sectlinks&&(o=l(M,{children:[r("a",{className:"anchor",id:e.getId()||"",...N(e)}),r("a",{className:"link",href:`#${e.getId()}`,dangerouslySetInnerHTML:{__html:o}})]})),n===0?l(M,{children:[r("h1",{className:E("sect0",k(e)),"data-sectnum":g,...N(e),children:o}),r($,{blocks:e.getBlocks()})]}):l("div",{className:E(`sect${n}`,k(e)),...N(e),children:[P.createElement(`h${n+1}`,{"data-sectnum":g},o),r("div",{className:"sectionbody",children:r($,{blocks:e.getBlocks()})})]})},Ue=({node:e})=>r("div",{className:E("sidebarblock",k(e)),...N(e),children:l("div",{className:"content",children:[r(L,{node:e}),r($,{blocks:e.getBlocks()})]})}),He=({node:e})=>{let a=["frame-"+e.getAttribute("frame","all","table-frame"),"grid-"+e.getAttribute("grid","all","table-grid")],n=e.getAttribute("stripes",null,"table-stripes");n&&a.push("stripes-"+n);let o=e.hasAutowidthOption(),g=e.getAttribute("tablepcwidth"),c=null;o&&!e.hasAttribute("width")?a.push("fit-content"):g==100?a.push("stretch"):c=`${g}%`,e.hasAttribute("float")&&a.push(e.getAttribute("float")),e.getRole()&&a.push(e.getRole()||"");const d=e.getRowCount(),y=e.getColumns(),h=e.getHeadRows(),T=e.getBodyRows(),v=e.getFootRows(),O=_=>E("tableblock",`halign-${_.getAttribute("halign")}`,`valign-${_.getAttribute("valign")}`);return l("table",{className:E("tableblock",...a),style:{width:c||void 0},...N(e),children:[e.hasTitle()&&r("caption",{className:"title",children:e.getCaptionedTitle()}),d>0&&r("colgroup",{children:y.map((_,j)=>{const I=_.getAttribute("colpcwidth");return r("col",{style:{width:`${I}%`}},j)})}),h.map((_,j)=>r("thead",{children:r("tr",{children:_.map((I,B)=>r("th",{className:O(I),dangerouslySetInnerHTML:{__html:F(I)}},B))})},j)),r("tbody",{children:T.map((_,j)=>r("tr",{children:_.map((I,B)=>{const de=I.getColumnSpan(),H=I.getRowSpan(),S=U(I),z={colSpan:de,rowSpan:H,className:O(I)},te=I.getStyle();if(te==="asciidoc")return P.createElement("td",{...z,key:B},r("div",{className:"content",dangerouslySetInnerHTML:{__html:S}}));if(te==="literal")return P.createElement("td",{...z,key:B},r("div",{className:"literal",children:r("pre",{dangerouslySetInnerHTML:{__html:S}})}));if(te==="header")return P.createElement("th",{...z,key:B},r("p",{className:"tableblock",dangerouslySetInnerHTML:{__html:S}}));{let ne=S;return P.createElement("td",{...z,key:B},ne.length===0?"":C.default(`<p class="tableblock">${ne.join(`</p>
|
|
32
|
-
<p class="tableblock">`)}</p>`))}})},j))}),v.map((_,j)=>r("tfoot",{children:r("tr",{children:_.map((I,B)=>r("td",{className:O(I),children:r("p",{className:"tableblock",dangerouslySetInnerHTML:{__html:F(I)}})},B))})},j))]})},Ve=({node:e})=>{let a=e.getId()||"toc";const n=e.getDocument(),o=e.hasTitle()?e.getTitle():n.getAttribute("toc-title"),g=P.useMemo(()=>n.getAttribute("toc-placement"),[e]),c=P.useMemo(()=>n.hasAttribute("toc"),[e]),d=e.hasAttribute("levels")?parseInt(e.getAttribute("levels")):void 0;return g==="macro"&&n.hasSections()&&c?l("div",{id:a,className:E("toc",k(e)),children:[r("div",{id:`${a}title`,className:"title",children:C.default(o||"")}),r(ee,{node:e.getDocument(),opts:{tocLevels:d}})]}):null},Je=()=>r("hr",{}),ze=({node:e})=>{const a=e.isOption("checklist");return l("div",{id:e.getId?e.getId():"",className:E("ulist",e.getStyle(),k(e),a&&"checklist"),...N(e),children:[r(
|
|
31
|
+
*/(function(e){(function(){var a={}.hasOwnProperty;function n(){for(var o=[],g=0;g<arguments.length;g++){var c=arguments[g];if(!!c){var d=typeof c;if(d==="string"||d==="number")o.push(c);else if(Array.isArray(c)){if(c.length){var y=n.apply(null,c);y&&o.push(y)}}else if(d==="object"){if(c.toString!==Object.prototype.toString&&!c.toString.toString().includes("[native code]")){o.push(c.toString());continue}for(var h in c)a.call(c,h)&&c[h]&&o.push(h)}}}return o.join(" ")}e.exports?(n.default=n,e.exports=n):window.classNames=n})()})(Se);const E=Se.exports,we=({node:e})=>{const a=e.getStyle(),n=c=>{const d=c,y=d[0];let h=d[1];return h.getNodeName||(h=null),{terms:y,dd:h}},o=c=>{if(c)return l("dd",{children:[c.hasText()&&r("p",{children:C.default(F(c))}),c.hasBlocks()&&r($,{blocks:c.getBlocks()})]})},g=e.hasTitle()&&r("div",{className:"title",children:e.getCaptionedTitle()});if(a==="qanda")return l("div",{className:E("qlist qanda",k(e)),...N(e),children:[g,r("ol",{children:e.getItems().map((c,d)=>{const{terms:y,dd:h}=n(c);return l("li",{children:[y.map((T,v)=>r("p",{children:r("em",{children:F(T)})},v)),o(h)]},d)})})]});if(a==="horizontal"){const c=e.getAttribute("labelwidth"),d=e.getAttribute("itemwidth");return l("div",{className:E("hdlist",k(e)),children:[g,l("table",{children:[(c||d)&&l("colgroup",{children:[r("col",{style:{width:c?`${c.replace("%","")}%`:""}}),r("col",{style:{width:d?`${d.replace("%","")}%`:""}})]}),r("tbody",{children:e.getItems().map((y,h)=>{const{terms:T,dd:v}=n(y);return l("tr",{children:[r("td",{className:E("hdlist1",e.isOption("strong")?"strong":""),children:T.map((O,_)=>l(P.Fragment,{children:[_!==0&&r("br",{}),C.default(F(O))]},_))}),v&&l("td",{className:"hdlist2",children:[v.hasText()&&r("p",{children:C.default(F(v))}),v.hasBlocks()&&r($,{blocks:v.getBlocks()})]})]},h)})})]})]})}else return l("div",{className:E("dlist",e.getStyle(),k(e)),children:[g,r("dl",{children:e.getItems().map((c,d)=>{const{terms:y,dd:h}=n(c);return l(P.Fragment,{children:[y.map((T,v)=>r("dt",{className:"hdlist1",children:C.default(F(T))},v)),o(h)]},d)})})]})},ee=({node:e,opts:a})=>{if(!e.hasSections())return null;const n=e.getSections(),o=e.getDocument(),g=P.useMemo(()=>o.getAttributes(),[e]),c=P.useMemo(()=>o.getAttribute("sectnumlevels"),[e]),d=P.useMemo(()=>o.getAttribute("toclevels"),[e]),y=(a==null?void 0:a.sectNumLevels)||(c?parseInt(c):3),h=(a==null?void 0:a.tocLevels)||(d?parseInt(d):2);return r("ul",{className:`sectlevel${n[0].getLevel()}`,children:n.map(T=>{let v=T.$sectnum();v=v==="."||v===".."?"":v;const O=T.getLevel();let _="";if(T.getCaption())_=T.getCaptionedTitle();else if(O<=y)if(O<2&&o.getDoctype()=="book"){const j=T.getSectionName();j==="chapter"?_=`${g["chapter-signifier"]||""} ${v} ${T.getTitle()}`:j==="part"?_=`${g["part-signifier"]||""} ${v} ${T.getTitle()}`:_=`${v} ${T.getTitle()}`}else _=`${v} ${T.getTitle()}`;else _=T.getTitle()||"";return l("li",{children:[r("a",{href:`#${T.getId()}`,children:C.default(_)}),O<h&&r(ee,{node:T,opts:{tocLevels:h,sectNumLevels:y}})]},T.getId())})})},Ce=({document:e})=>{const a=e.getBlocks(),n=e.getFootnotes(),o=()=>{var d;return e.getNoheader()?null:r("div",{id:"header",children:e.hasHeader()&&l(M,{children:[r("h1",{dangerouslySetInnerHTML:{__html:((d=e.getDocumentTitle())==null?void 0:d.toString())||""}}),r(c,{}),e.hasSections()&&e.hasAttribute("toc")&&e.getAttribute("toc-placement")==="auto"&&l("div",{id:"toc",className:e.getAttribute("toc-class","toc"),children:[r("div",{id:"toctitle",children:e.getAttribute("toc-title")}),r(ee,{node:e})]})]})})},g=()=>n&&n.length>0&&a&&!a[0].getDocument().hasAttribute("nofootnotes")?l("div",{id:"footnotes",children:[r("hr",{}),n.map(d=>l("div",{className:"footnote",id:`_footnotedef_${d.getIndex()}`,children:[r("a",{href:`#_footnoteref_${d.getIndex()}`,children:d.getIndex()}),"."," ",C.default(F(d)||"")]},d.getIndex()))]}):null,c=()=>e.getAuthors().length>0||e.hasAttribute("revnumber")||e.hasAttribute("revdate")||e.hasAttribute("revremark")?l("div",{className:"details",children:[e.getAuthors().map((y,h)=>l(P.Fragment,{children:[y.getName()&&l(M,{children:[r("span",{id:`author${h+1>1?h+1:""}`,className:"author",children:C.default(e.applySubstitutions(y.getName()||"").toString())}),r("br",{})]}),y.getEmail()&&l(M,{children:[r("span",{id:`email${h+1>1?h+1:""}`,className:"email",children:C.default(e.applySubstitutions(y.getEmail()||"").toString())}),r("br",{})]})]},h)),e.hasAttribute("revnumber")&&r("span",{id:"revnumber",children:`${e.getAttribute("version-label").toLowerCase()} ${e.getAttribute("revnumber")}${e.hasAttribute("revdate")?",":""}`}),e.hasAttribute("revdate")&&r("span",{id:"revdate",children:e.getAttribute("revdate")}),e.hasAttribute("revremark")&&l(M,{children:[r("br",{}),r("span",{id:"revremark",children:e.getAttribute("revremark")})]})]}):null;return l(M,{children:[r(o,{}),r("div",{id:"content",children:r($,{blocks:a})}),r(g,{})]})},Oe=({node:e})=>l("div",{className:E("exampleblock",k(e)),...N(e),children:[r(Z,{node:e}),r("div",{className:"content",children:r($,{blocks:e.getBlocks()})})]}),Ie=({node:e})=>{const a=e.getLevel();return l(M,{children:[r("a",{className:"sectionanchor",id:`${e.getId()||""}`,...N(e)}),P.createElement(`h${a+1}`,null,r(D,{node:e}))]})},Pe=({node:e})=>{const a=e.getAttribute("target");let n=r("img",{src:e.getImageUri(a),alt:e.getAttribute("alt"),width:e.getAttribute("width"),height:e.getAttribute("height")});return e.hasAttribute("link")&&(n=r("a",{className:"image",href:e.getAttribute("link"),children:n})),l("div",{className:`imageblock ${e.hasAttribute("align")?"text-"+e.getAttribute("align"):""} ${e.hasAttribute("float")?e.getAttribute("float"):""} ${e.getRole()?e.getRole():""}`,...N(e),children:[r("div",{className:"content",children:n}),r(Z,{node:e})]})},je=({node:e})=>{const a=e.getDocument(),n=e.getAttributes(),o=e.isOption("nowrap")||!a.hasAttribute("prewrap"),g=U(e);if(e.getStyle()==="source"){const c=n.language;return l("div",{className:"listingblock",...N(e),children:[r(Z,{node:e}),r("div",{className:"content",children:r("pre",{className:E("highlight",o?" nowrap":""),children:c?r("code",{className:c?`language-${c}`:"","data-lang":c,dangerouslySetInnerHTML:{__html:g}}):r("code",{dangerouslySetInnerHTML:{__html:g}})})})]})}else return l("div",{className:"listingblock",...N(e),children:[r(Z,{node:e}),r("div",{className:"content",children:r("pre",{className:o?" nowrap":"",children:r("code",{dangerouslySetInnerHTML:{__html:e.getSource()}})})})]})},Le=({node:e})=>{const n=e.getDocument().getAttributes().prewrap===void 0||e.isOption("nowrap");return l("div",{className:"literalblock",...N(e),children:[r(D,{node:e}),r("div",{className:"content",children:r("pre",{className:n?"nowrap":"",children:e.getSource()})})]})},De=({node:e})=>l("div",{className:E("olist",k(e),e.getStyle()),...N(e),children:[r(D,{node:e}),r("ol",{className:e.getStyle(),reversed:e.isOption("reversed"),start:e.getAttribute("start"),children:e.getItems().map((a,n)=>l("li",{className:k(e)?k(e):"",children:[r("p",{children:C.default(F(a))}),r($,{blocks:a.getBlocks()})]},n))})]}),$e=({node:e})=>{const a=e.getStyle();return a==="abstract"?l("div",{className:E("quoteblock abstract",k(e)),...N(e),children:[r(D,{node:e}),r("blockquote",{className:"content",children:r($,{blocks:e.getBlocks()})})]}):l("div",{className:E("openblock",a&&a!=="open"?a:"",k(e)),...N(e),children:[r(D,{node:e}),r("div",{className:"content",children:r($,{blocks:e.getBlocks()})})]})},Fe=()=>r("div",{style:{pageBreakAfter:"always"}}),xe=({node:e})=>{const a=U(e);return l("div",{id:e.getId?e.getId():"",className:E("paragraph",k(e)),...N(e),children:[r(D,{node:e}),r("p",{dangerouslySetInnerHTML:{__html:a}})]})},Me=({node:e})=>{const a=U(e);return r(M,{children:C.default(a)})},Be=({node:e})=>{const a=e.getDocument(),n=a.getAttribute("toc-placement")==="preamble"&&a.hasSections()&&a.hasAttribute("toc");return r("div",{id:"preamble",...N(e),children:l("div",{className:"sectionbody",children:[r($,{blocks:e.getBlocks()}),n&&l("div",{id:"toc",className:a.getAttribute("toc-class","toc"),children:[r("div",{id:"toctitle",children:C.default(a.getAttribute("toc-title"))}),r(ee,{node:a})]})]})})},We=({node:e})=>{const a=e.getAttribute("attribution"),n=e.getAttribute("citetitle"),o=U(e);return l("div",{id:e.getId?e.getId():"",className:E("quoteblock",k(e)),...N(e),children:[r(D,{node:e}),r("blockquote",{dangerouslySetInnerHTML:{__html:o}}),a&&l("div",{className:"attribution",children:["\u2014 ",a,n&&r("cite",{children:n})]})]})},Ye=({node:e})=>{const a=e.getDocument().getAttributes(),n=e.getLevel();let o="",g=e.getSectionNumeral();g=g==="."?"":g;const c=a.sectnumlevels?parseInt(a.sectnumlevels):3;if(e.getCaption())o=e.getCaptionedTitle();else if(e.isNumbered()&&n<=c)if(n<2&&e.getDocument().getDoctype()=="book"){const d=e.getSectionName();d==="chapter"?o=`${a["chapter-signifier"]||""} ${g} ${e.getTitle()}`:d==="part"?o=`${a["part-signifier"]||""} ${g} ${e.getTitle()}`:o=`${g} ${e.getTitle()}`}else o=`${g} ${e.getTitle()}`;else o=e.getTitle()||"";return a.sectlinks&&(o=l(M,{children:[r("a",{className:"anchor",id:e.getId()||"",...N(e)}),r("a",{className:"link",href:`#${e.getId()}`,dangerouslySetInnerHTML:{__html:o}})]})),n===0?l(M,{children:[r("h1",{className:E("sect0",k(e)),"data-sectnum":g,...N(e),children:o}),r($,{blocks:e.getBlocks()})]}):l("div",{className:E(`sect${n}`,k(e)),...N(e),children:[P.createElement(`h${n+1}`,{"data-sectnum":g},o),r("div",{className:"sectionbody",children:r($,{blocks:e.getBlocks()})})]})},Ue=({node:e})=>r("div",{className:E("sidebarblock",k(e)),...N(e),children:l("div",{className:"content",children:[r(D,{node:e}),r($,{blocks:e.getBlocks()})]})}),He=({node:e})=>{let a=["frame-"+e.getAttribute("frame","all","table-frame"),"grid-"+e.getAttribute("grid","all","table-grid")],n=e.getAttribute("stripes",null,"table-stripes");n&&a.push("stripes-"+n);let o=e.hasAutowidthOption(),g=e.getAttribute("tablepcwidth"),c=null;o&&!e.hasAttribute("width")?a.push("fit-content"):g==100?a.push("stretch"):c=`${g}%`,e.hasAttribute("float")&&a.push(e.getAttribute("float")),e.getRole()&&a.push(e.getRole()||"");const d=e.getRowCount(),y=e.getColumns(),h=e.getHeadRows(),T=e.getBodyRows(),v=e.getFootRows(),O=_=>E("tableblock",`halign-${_.getAttribute("halign")}`,`valign-${_.getAttribute("valign")}`);return l("table",{className:E("tableblock",...a),style:{width:c||void 0},...N(e),children:[e.hasTitle()&&r("caption",{className:"title",children:e.getCaptionedTitle()}),d>0&&r("colgroup",{children:y.map((_,j)=>{const I=_.getAttribute("colpcwidth");return r("col",{style:{width:`${I}%`}},j)})}),h.map((_,j)=>r("thead",{children:r("tr",{children:_.map((I,B)=>r("th",{className:O(I),dangerouslySetInnerHTML:{__html:F(I)}},B))})},j)),r("tbody",{children:T.map((_,j)=>r("tr",{children:_.map((I,B)=>{const de=I.getColumnSpan(),H=I.getRowSpan(),S=U(I),z={colSpan:de,rowSpan:H,className:O(I)},te=I.getStyle();if(te==="asciidoc")return P.createElement("td",{...z,key:B},r("div",{className:"content",dangerouslySetInnerHTML:{__html:S}}));if(te==="literal")return P.createElement("td",{...z,key:B},r("div",{className:"literal",children:r("pre",{dangerouslySetInnerHTML:{__html:S}})}));if(te==="header")return P.createElement("th",{...z,key:B},r("p",{className:"tableblock",dangerouslySetInnerHTML:{__html:S}}));{let ne=S;return P.createElement("td",{...z,key:B},ne.length===0?"":C.default(`<p class="tableblock">${ne.join(`</p>
|
|
32
|
+
<p class="tableblock">`)}</p>`))}})},j))}),v.map((_,j)=>r("tfoot",{children:r("tr",{children:_.map((I,B)=>r("td",{className:O(I),children:r("p",{className:"tableblock",dangerouslySetInnerHTML:{__html:F(I)}})},B))})},j))]})},Ve=({node:e})=>{let a=e.getId()||"toc";const n=e.getDocument(),o=e.hasTitle()?e.getTitle():n.getAttribute("toc-title"),g=P.useMemo(()=>n.getAttribute("toc-placement"),[e]),c=P.useMemo(()=>n.hasAttribute("toc"),[e]),d=e.hasAttribute("levels")?parseInt(e.getAttribute("levels")):void 0;return g==="macro"&&n.hasSections()&&c?l("div",{id:a,className:E("toc",k(e)),children:[r("div",{id:`${a}title`,className:"title",children:C.default(o||"")}),r(ee,{node:e.getDocument(),opts:{tocLevels:d}})]}):null},Je=()=>r("hr",{}),ze=({node:e})=>{const a=e.isOption("checklist");return l("div",{id:e.getId?e.getId():"",className:E("ulist",e.getStyle(),k(e),a&&"checklist"),...N(e),children:[r(D,{node:e}),r("ul",{className:a?"checklist":"",children:e.getItems().map((n,o)=>a?r("li",{id:n.getId(),className:k(e),children:l("p",{children:[a&&n.hasAttribute("checkbox")&&r("i",{className:E("fa",n.hasAttribute("checked")?"fa-check-square-o":"fa-square-o")})," ",C.default(F(n))]})},o):l("li",{id:n.getId(),className:k(e),children:[r("p",{dangerouslySetInnerHTML:{__html:F(n)}}),r($,{blocks:n.getBlocks()})]},o))})]})},Ge=({node:e})=>{const a=e.getAttribute("attribution"),n=e.getAttribute("citetitle"),o=U(e);return l("div",{id:e.getId?e.getId():"",className:E("verseblock",k(e)),...N(e),children:[r(D,{node:e}),r("pre",{className:"content",dangerouslySetInnerHTML:{__html:o}}),a&&l("div",{className:"attribution",children:["\u2014 ",a,n&&r("cite",{children:n})]})]})},Ke=P.createContext({}),Rt=({content:e,options:a})=>{const n=a&&a.customDocument;return r(Ke.Provider,{value:a||{},children:n?r(n,{document:e}):r(Ce,{document:e})})},$=({blocks:e})=>r(M,{children:e.map((a,n)=>r(kt,{node:a},`${n}-${a.getNodeName()}`))}),kt=({node:e})=>{const a=P.useContext(Ke),n=e.getNodeName(),o=e.getDocument(),g=e.getAttributes();o.playbackAttributes(g);const c=a&&a.overrides&&a.overrides[n];if(c)return r(c,{node:e});switch(n){case"audio":return r(ke,{node:e});case"preamble":return r(Be,{node:e});case"section":return r(Ye,{node:e});case"paragraph":return r(xe,{node:e});case"dlist":return r(we,{node:e});case"ulist":return r(ze,{node:e});case"floating_title":return r(Ie,{node:e});case"admonition":return r(Re,{node:e});case"listing":return r(je,{node:e});case"literal":return r(Le,{node:e});case"image":return r(Pe,{node:e});case"colist":return r(Ee,{node:e});case"olist":return r(De,{node:e});case"table":return r(He,{node:e});case"thematic_break":return r(Je,{});case"open":return r($e,{node:e});case"pass":return r(Me,{node:e});case"page_break":return r(Fe,{});case"example":return r(Oe,{node:e});case"sidebar":return r(Ue,{node:e});case"quote":return r(We,{node:e});case"verse":return r(Ge,{node:e});case"toc":return r(Ve,{node:e});default:return r(M,{children:C.default(e.convert())})}};Object.defineProperty(f,"asciidoctor",{enumerable:!0,get:()=>Tt.default}),f.Admonition=Re,f.Audio=ke,f.CaptionedTitle=Z,f.CoList=Ee,f.Content=$,f.DList=we,f.Document=Ce,f.Example=Oe,f.FloatingTitle=Ie,f.Image=Pe,f.Listing=je,f.Literal=Le,f.OList=De,f.Open=$e,f.Outline=ee,f.PageBreak=Fe,f.Paragraph=xe,f.Pass=Me,f.Preamble=Be,f.Quote=We,f.Section=Ye,f.Sidebar=Ue,f.Table=He,f.TableOfContents=Ve,f.ThematicBreak=Je,f.Title=D,f.UList=ze,f.Verse=Ge,f.default=Rt,f.getContent=U,f.getLineNumber=N,f.getRole=k,f.getText=F,Object.defineProperties(f,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
|