@oxide/react-asciidoc 1.0.5--canary.e9648be.0 → 1.0.5--canary.66d260e.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
CHANGED
|
@@ -19,13 +19,13 @@ var Xr;
|
|
|
19
19
|
function He() {
|
|
20
20
|
if (Xr) return X;
|
|
21
21
|
Xr = 1;
|
|
22
|
-
var r = ee, 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,
|
|
22
|
+
var r = ee, 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
23
|
function m(i, c, j) {
|
|
24
|
-
var y, h = {},
|
|
25
|
-
j !== void 0 && (
|
|
26
|
-
for (y in c) o.call(c, y) && !
|
|
24
|
+
var y, h = {}, u = null, f = null;
|
|
25
|
+
j !== void 0 && (u = "" + j), c.key !== void 0 && (u = "" + c.key), c.ref !== void 0 && (f = c.ref);
|
|
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
|
-
return { $$typeof: a, type: i, key:
|
|
28
|
+
return { $$typeof: a, type: i, key: u, ref: f, props: h, _owner: n.current };
|
|
29
29
|
}
|
|
30
30
|
return X.Fragment = s, X.jsx = m, X.jsxs = m, X;
|
|
31
31
|
}
|
|
@@ -42,7 +42,7 @@ var Q = {};
|
|
|
42
42
|
var Qr;
|
|
43
43
|
function $e() {
|
|
44
44
|
return Qr || (Qr = 1, process.env.NODE_ENV !== "production" && function() {
|
|
45
|
-
var r = ee, a = Symbol.for("react.element"), s = Symbol.for("react.portal"), o = Symbol.for("react.fragment"), n = Symbol.for("react.strict_mode"),
|
|
45
|
+
var r = ee, 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"), j = 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;
|
|
@@ -70,7 +70,7 @@ function $e() {
|
|
|
70
70
|
var W = !1, tr = !1, ne = !1, ce = !1, ue = !1, Dr;
|
|
71
71
|
Dr = Symbol.for("react.module.reference");
|
|
72
72
|
function pe(t) {
|
|
73
|
-
return !!(typeof t == "string" || typeof t == "function" || t === o || t ===
|
|
73
|
+
return !!(typeof t == "string" || typeof t == "function" || t === o || t === p || ue || t === n || t === j || t === y || ce || t === f || W || tr || ne || 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.
|
|
@@ -98,7 +98,7 @@ function $e() {
|
|
|
98
98
|
return "Fragment";
|
|
99
99
|
case s:
|
|
100
100
|
return "Portal";
|
|
101
|
-
case
|
|
101
|
+
case p:
|
|
102
102
|
return "Profiler";
|
|
103
103
|
case n:
|
|
104
104
|
return "StrictMode";
|
|
@@ -120,7 +120,7 @@ function $e() {
|
|
|
120
120
|
case h:
|
|
121
121
|
var g = t.displayName || null;
|
|
122
122
|
return g !== null ? g : U(t.type) || "Memo";
|
|
123
|
-
case
|
|
123
|
+
case u: {
|
|
124
124
|
var x = t, q = x._payload, v = x._init;
|
|
125
125
|
try {
|
|
126
126
|
return U(v(q));
|
|
@@ -309,7 +309,7 @@ function $e() {
|
|
|
309
309
|
return he(t.render);
|
|
310
310
|
case h:
|
|
311
311
|
return ir(t.type, l, d);
|
|
312
|
-
case
|
|
312
|
+
case u: {
|
|
313
313
|
var g = t, x = g._payload, q = g._init;
|
|
314
314
|
try {
|
|
315
315
|
return ir(q(x), l, d);
|
|
@@ -697,28 +697,28 @@ var ae = { exports: {} };
|
|
|
697
697
|
(function() {
|
|
698
698
|
var a = {}.hasOwnProperty;
|
|
699
699
|
function s() {
|
|
700
|
-
for (var
|
|
700
|
+
for (var p = "", m = 0; m < arguments.length; m++) {
|
|
701
701
|
var i = arguments[m];
|
|
702
|
-
i && (
|
|
702
|
+
i && (p = n(p, o(i)));
|
|
703
703
|
}
|
|
704
|
-
return
|
|
704
|
+
return p;
|
|
705
705
|
}
|
|
706
|
-
function o(
|
|
707
|
-
if (typeof
|
|
708
|
-
return
|
|
709
|
-
if (typeof
|
|
706
|
+
function o(p) {
|
|
707
|
+
if (typeof p == "string" || typeof p == "number")
|
|
708
|
+
return p;
|
|
709
|
+
if (typeof p != "object")
|
|
710
710
|
return "";
|
|
711
|
-
if (Array.isArray(
|
|
712
|
-
return s.apply(null,
|
|
713
|
-
if (
|
|
714
|
-
return
|
|
711
|
+
if (Array.isArray(p))
|
|
712
|
+
return s.apply(null, p);
|
|
713
|
+
if (p.toString !== Object.prototype.toString && !p.toString.toString().includes("[native code]"))
|
|
714
|
+
return p.toString();
|
|
715
715
|
var m = "";
|
|
716
|
-
for (var i in
|
|
717
|
-
a.call(
|
|
716
|
+
for (var i in p)
|
|
717
|
+
a.call(p, i) && p[i] && (m = n(m, i));
|
|
718
718
|
return m;
|
|
719
719
|
}
|
|
720
|
-
function n(
|
|
721
|
-
return m ?
|
|
720
|
+
function n(p, m) {
|
|
721
|
+
return m ? p ? p + " " + m : p + m : p;
|
|
722
722
|
}
|
|
723
723
|
r.exports ? (s.default = s, r.exports = s) : window.classNames = s;
|
|
724
724
|
})();
|
|
@@ -761,27 +761,27 @@ function ie(r, a, s) {
|
|
|
761
761
|
var o = a.exec(r), n;
|
|
762
762
|
if (o) {
|
|
763
763
|
n = "";
|
|
764
|
-
var
|
|
764
|
+
var p = 0;
|
|
765
765
|
do {
|
|
766
|
-
|
|
766
|
+
p !== o.index && (n += r.substring(p, o.index));
|
|
767
767
|
var m = o[0];
|
|
768
|
-
n += s(m),
|
|
768
|
+
n += s(m), p = o.index + m.length;
|
|
769
769
|
} while (o = a.exec(r));
|
|
770
|
-
|
|
770
|
+
p !== r.length && (n += r.substring(p));
|
|
771
771
|
} else
|
|
772
772
|
n = r;
|
|
773
773
|
return n;
|
|
774
774
|
}
|
|
775
775
|
var Je = { specialChars: /[<>'"&]/g, nonAscii: /[<>'"&\u0080-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/g, nonAsciiPrintable: /[<>'"&\x01-\x08\x11-\x15\x17-\x1F\x7f-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/g, nonAsciiPrintableOnly: /[\x01-\x08\x11-\x15\x17-\x1F\x7f-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/g, extensive: /[\x01-\x0c\x0e-\x1f\x21-\x2c\x2e-\x2f\x3a-\x40\x5b-\x60\x7b-\x7d\x7f-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/g }, Ze = { mode: "specialChars", level: "all", numeric: "decimal" };
|
|
776
776
|
function Ke(r, a) {
|
|
777
|
-
var s = a === void 0 ? Ze : a, o = s.mode, n = o === void 0 ? "specialChars" : o,
|
|
777
|
+
var s = a === void 0 ? Ze : 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
780
|
var j = Je[n], y = Nr[c].characters, h = m === "hexadecimal";
|
|
781
|
-
return ie(r, j, function(
|
|
782
|
-
var f = y[
|
|
781
|
+
return ie(r, j, function(u) {
|
|
782
|
+
var f = y[u];
|
|
783
783
|
if (!f) {
|
|
784
|
-
var w =
|
|
784
|
+
var w = u.length > 1 ? se.getCodePoint(u, 0) : u.charCodeAt(0);
|
|
785
785
|
f = (h ? "&#x" + w.toString(16) : "&#" + w) + ";";
|
|
786
786
|
}
|
|
787
787
|
return f;
|
|
@@ -790,10 +790,10 @@ function Ke(r, a) {
|
|
|
790
790
|
nr.encode = Ke;
|
|
791
791
|
var Xe = { scope: "body", level: "all" }, yr = /&(?:#\d+|#[xX][\da-fA-F]+|[0-9a-zA-Z]+);/g, wr = /&(?:#\d+|#[xX][\da-fA-F]+|[0-9a-zA-Z]+)[;=]?/g, re = { xml: { strict: yr, attribute: wr, body: rr.bodyRegExps.xml }, html4: { strict: yr, attribute: wr, body: rr.bodyRegExps.html4 }, html5: { strict: yr, attribute: wr, body: rr.bodyRegExps.html5 } }, Qe = M(M({}, re), { all: re.html5 }), le = String.fromCharCode, rt = le(65533), et = { level: "all" };
|
|
792
792
|
function oe(r, a, s, o) {
|
|
793
|
-
var n = r,
|
|
794
|
-
if (s &&
|
|
793
|
+
var n = r, p = r[r.length - 1];
|
|
794
|
+
if (s && p === "=")
|
|
795
795
|
n = r;
|
|
796
|
-
else if (o &&
|
|
796
|
+
else if (o && p !== ";")
|
|
797
797
|
n = r;
|
|
798
798
|
else {
|
|
799
799
|
var m = a[r];
|
|
@@ -812,7 +812,7 @@ function tt(r, a) {
|
|
|
812
812
|
}
|
|
813
813
|
nr.decodeEntity = tt;
|
|
814
814
|
function at(r, a) {
|
|
815
|
-
var s = a === void 0 ? Xe : a, o = s.level, n = o === void 0 ? "all" : o,
|
|
815
|
+
var s = a === void 0 ? Xe : 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
818
|
var i = Qe[n][m], c = Nr[n].entities, j = m === "attribute", y = m === "strict";
|
|
@@ -824,13 +824,13 @@ var st = nr.decode = at;
|
|
|
824
824
|
const er = (r, a) => r[`${a}-option`] !== void 0, or = (r, a, s = void 0, o, n) => {
|
|
825
825
|
if (r[a] !== void 0)
|
|
826
826
|
return r[a];
|
|
827
|
-
const
|
|
828
|
-
return
|
|
827
|
+
const p = o || a;
|
|
828
|
+
return p && n && n[p] !== void 0 ? n[p] : s;
|
|
829
829
|
}, P = (r, a) => r[a] !== void 0, Tt = (r) => {
|
|
830
830
|
var m;
|
|
831
831
|
let a;
|
|
832
832
|
function s(i) {
|
|
833
|
-
const c = i.getNodeName && i.getNodeName(), j = i.getContentModel && i.getContentModel(), y = c && i.hasBlocks() ? i.getBlocks().map((
|
|
833
|
+
const c = i.getNodeName && i.getNodeName(), j = i.getContentModel && i.getContentModel(), y = c && i.hasBlocks() ? i.getBlocks().map((u) => s(u)) : [];
|
|
834
834
|
let h = {
|
|
835
835
|
id: i.getId && i.getId(),
|
|
836
836
|
type: c,
|
|
@@ -845,32 +845,32 @@ const er = (r, a) => r[`${a}-option`] !== void 0, or = (r, a, s = void 0, o, n)
|
|
|
845
845
|
level: i.getLevel && i.getLevel()
|
|
846
846
|
};
|
|
847
847
|
if (c === "admonition") {
|
|
848
|
-
let
|
|
849
|
-
|
|
848
|
+
let u = h;
|
|
849
|
+
u.iconUri = i.getIconUri(h.attributes.name);
|
|
850
850
|
}
|
|
851
851
|
if (c === "audio") {
|
|
852
|
-
let
|
|
853
|
-
|
|
852
|
+
let u = h;
|
|
853
|
+
u.mediaUri = i.getMediaUri(i.getAttribute("target")), u.autoplay = i.isOption("autoplay"), u.noControls = !i.isOption("nocontrols"), u.loop = i.isOption("loop"), h = u;
|
|
854
854
|
}
|
|
855
855
|
if (c === "video") {
|
|
856
|
-
let
|
|
857
|
-
|
|
856
|
+
let u = h;
|
|
857
|
+
u.mediaUri = i.getMediaUri(i.getAttribute("target")), u.autoplay = i.isOption("autoplay"), u.noControls = !i.isOption("nocontrols"), u.loop = i.isOption("loop"), u.onHover = i.isOption("onhover"), h = u;
|
|
858
858
|
}
|
|
859
859
|
if (c === "image") {
|
|
860
|
-
let
|
|
861
|
-
|
|
860
|
+
let u = h;
|
|
861
|
+
u.imageUri = i.getImageUri(i.getAttribute("target"));
|
|
862
862
|
}
|
|
863
863
|
if ((c === "listing" || c === "literal") && "getSource" in i) {
|
|
864
|
-
const
|
|
865
|
-
|
|
864
|
+
const u = h;
|
|
865
|
+
u.source = i.getSource(), u.language = i.getAttribute("language"), u.content = u.content ? st(u.content) : void 0;
|
|
866
866
|
}
|
|
867
867
|
if (c === "section") {
|
|
868
|
-
const
|
|
869
|
-
|
|
868
|
+
const u = h;
|
|
869
|
+
u.title = i.getCaption() ? i.getCaptionedTitle() : i.getTitle() || "", "getSectionNumeral" in i && (u.name = i.getSectionName(), u.numbered = i.isNumbered(), u.num = i.getSectionNumeral());
|
|
870
870
|
}
|
|
871
871
|
if (c === "dlist") {
|
|
872
|
-
let
|
|
873
|
-
|
|
872
|
+
let u = h;
|
|
873
|
+
u.items = i.getItems().map((f) => [
|
|
874
874
|
f[0].map(
|
|
875
875
|
(w) => s(w)
|
|
876
876
|
),
|
|
@@ -878,18 +878,18 @@ const er = (r, a) => r[`${a}-option`] !== void 0, or = (r, a, s = void 0, o, n)
|
|
|
878
878
|
]);
|
|
879
879
|
}
|
|
880
880
|
if (c === "colist" || c === "olist" || c === "ulist") {
|
|
881
|
-
let
|
|
882
|
-
|
|
881
|
+
let u = h;
|
|
882
|
+
u.items = i.getItems().map((f) => s(f));
|
|
883
883
|
}
|
|
884
884
|
if (c === "list_item") {
|
|
885
|
-
let
|
|
885
|
+
let u = h;
|
|
886
886
|
const f = i;
|
|
887
|
-
|
|
887
|
+
u.text = f.hasText() ? f.getText() : void 0;
|
|
888
888
|
}
|
|
889
889
|
if (c === "table") {
|
|
890
|
-
let
|
|
890
|
+
let u = h;
|
|
891
891
|
const f = i;
|
|
892
|
-
|
|
892
|
+
u.columns = f.getColumns().map((O) => ({
|
|
893
893
|
// @ts-ignore
|
|
894
894
|
attributes: O.getAttributes(),
|
|
895
895
|
columnNumber: O.getColumnNumber(),
|
|
@@ -901,12 +901,12 @@ const er = (r, a) => r[`${a}-option`] !== void 0, or = (r, a, s = void 0, o, n)
|
|
|
901
901
|
const w = (O) => O.map(
|
|
902
902
|
(F) => F.map((E) => s(E))
|
|
903
903
|
), C = f.getRows();
|
|
904
|
-
|
|
904
|
+
u.rows = {
|
|
905
905
|
head: w(C.head),
|
|
906
906
|
body: w(C.body),
|
|
907
907
|
foot: w(C.foot)
|
|
908
|
-
},
|
|
909
|
-
...
|
|
908
|
+
}, u = {
|
|
909
|
+
...u,
|
|
910
910
|
caption: f.getCaption(),
|
|
911
911
|
hasHeader: f.hasHeaderOption(),
|
|
912
912
|
hasFooter: f.hasFooterOption(),
|
|
@@ -914,20 +914,20 @@ const er = (r, a) => r[`${a}-option`] !== void 0, or = (r, a, s = void 0, o, n)
|
|
|
914
914
|
headRows: w(f.getHeadRows()),
|
|
915
915
|
bodyRows: w(f.getBodyRows()),
|
|
916
916
|
footRows: w(f.getFootRows())
|
|
917
|
-
}, h =
|
|
917
|
+
}, h = u;
|
|
918
918
|
}
|
|
919
919
|
if (c === "table_cell") {
|
|
920
|
-
const
|
|
920
|
+
const u = i, f = u.getColumn();
|
|
921
921
|
h = {
|
|
922
922
|
...h,
|
|
923
923
|
type: "table_cell",
|
|
924
|
-
text:
|
|
925
|
-
columnSpan:
|
|
926
|
-
rowSpan:
|
|
927
|
-
source:
|
|
928
|
-
lines:
|
|
929
|
-
width:
|
|
930
|
-
columnPercentageWidth:
|
|
924
|
+
text: u.getText(),
|
|
925
|
+
columnSpan: u.getColumnSpan(),
|
|
926
|
+
rowSpan: u.getRowSpan(),
|
|
927
|
+
source: u.getSource(),
|
|
928
|
+
lines: u.getLines(),
|
|
929
|
+
width: u.getWidth(),
|
|
930
|
+
columnPercentageWidth: u.getColumnPercentageWidth(),
|
|
931
931
|
column: f ? {
|
|
932
932
|
// @ts-ignore
|
|
933
933
|
attributes: f.getAttributes(),
|
|
@@ -975,8 +975,8 @@ const er = (r, a) => r[`${a}-option`] !== void 0, or = (r, a, s = void 0, o, n)
|
|
|
975
975
|
})), a;
|
|
976
976
|
}, Ct = async (r, a) => {
|
|
977
977
|
const s = async (n) => Promise.all(
|
|
978
|
-
n.map(async (
|
|
979
|
-
let m = await a(
|
|
978
|
+
n.map(async (p) => {
|
|
979
|
+
let m = await a(p);
|
|
980
980
|
if (m.blocks && m.blocks.length > 0 && (m.blocks = await s(m.blocks)), m.items) {
|
|
981
981
|
const i = m;
|
|
982
982
|
i.items = await s(
|
|
@@ -992,10 +992,10 @@ const er = (r, a) => r[`${a}-option`] !== void 0, or = (r, a, s = void 0, o, n)
|
|
|
992
992
|
};
|
|
993
993
|
}, it = ({ node: r }) => {
|
|
994
994
|
const a = (o) => {
|
|
995
|
-
const n = o,
|
|
995
|
+
const n = o, p = n[0];
|
|
996
996
|
let m = n[1];
|
|
997
997
|
return m.type || (m = null), {
|
|
998
|
-
terms:
|
|
998
|
+
terms: p,
|
|
999
999
|
dd: m
|
|
1000
1000
|
};
|
|
1001
1001
|
}, s = (o) => {
|
|
@@ -1014,10 +1014,10 @@ const er = (r, a) => r[`${a}-option`] !== void 0, or = (r, a, s = void 0, o, n)
|
|
|
1014
1014
|
children: [
|
|
1015
1015
|
/* @__PURE__ */ e.jsx(D, { text: r.title }),
|
|
1016
1016
|
/* @__PURE__ */ e.jsx("ol", { children: r.items.map((o, n) => {
|
|
1017
|
-
const { terms:
|
|
1018
|
-
if (
|
|
1017
|
+
const { terms: p, dd: m } = a(o);
|
|
1018
|
+
if (p)
|
|
1019
1019
|
return /* @__PURE__ */ e.jsxs("li", { children: [
|
|
1020
|
-
|
|
1020
|
+
p.map((i, c) => /* @__PURE__ */ e.jsx("p", { children: /* @__PURE__ */ e.jsx("em", { children: S(i.text) }) }, c)),
|
|
1021
1021
|
s(m)
|
|
1022
1022
|
] }, n);
|
|
1023
1023
|
}) })
|
|
@@ -1048,8 +1048,8 @@ const er = (r, a) => r[`${a}-option`] !== void 0, or = (r, a, s = void 0, o, n)
|
|
|
1048
1048
|
}
|
|
1049
1049
|
)
|
|
1050
1050
|
] }),
|
|
1051
|
-
/* @__PURE__ */ e.jsx("tbody", { children: r.items.map((
|
|
1052
|
-
const { terms: i, dd: c } = a(
|
|
1051
|
+
/* @__PURE__ */ e.jsx("tbody", { children: r.items.map((p, m) => {
|
|
1052
|
+
const { terms: i, dd: c } = a(p);
|
|
1053
1053
|
if (i)
|
|
1054
1054
|
return /* @__PURE__ */ e.jsxs("tr", { children: [
|
|
1055
1055
|
/* @__PURE__ */ e.jsx(
|
|
@@ -1077,10 +1077,10 @@ const er = (r, a) => r[`${a}-option`] !== void 0, or = (r, a, s = void 0, o, n)
|
|
|
1077
1077
|
return /* @__PURE__ */ e.jsxs("div", { className: N("dlist", r.style, r.role), children: [
|
|
1078
1078
|
/* @__PURE__ */ e.jsx(D, { text: r.title }),
|
|
1079
1079
|
/* @__PURE__ */ e.jsx("dl", { children: r.items.map((o, n) => {
|
|
1080
|
-
const { terms:
|
|
1081
|
-
if (
|
|
1080
|
+
const { terms: p, dd: m } = a(o);
|
|
1081
|
+
if (p)
|
|
1082
1082
|
return /* @__PURE__ */ e.jsxs(qr, { children: [
|
|
1083
|
-
|
|
1083
|
+
p.map((i, c) => /* @__PURE__ */ e.jsx("dt", { className: "hdlist1", children: S(i.text) }, c)),
|
|
1084
1084
|
s(m)
|
|
1085
1085
|
] }, n);
|
|
1086
1086
|
}) })
|
|
@@ -1091,7 +1091,7 @@ const er = (r, a) => r[`${a}-option`] !== void 0, or = (r, a, s = void 0, o, n)
|
|
|
1091
1091
|
}) => {
|
|
1092
1092
|
const { document: s } = I();
|
|
1093
1093
|
if (!r || r.length === 0) return null;
|
|
1094
|
-
const o = s.attributes || {}, n = o.sectnumlevels,
|
|
1094
|
+
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);
|
|
1095
1095
|
return /* @__PURE__ */ e.jsx("ul", { className: `sectlevel${r[0].level}`, children: r.map((c) => {
|
|
1096
1096
|
let j = c.num;
|
|
1097
1097
|
j = j === "." || j === ".." ? "" : j;
|
|
@@ -1150,16 +1150,16 @@ const er = (r, a) => r[`${a}-option`] !== void 0, or = (r, a, s = void 0, o, n)
|
|
|
1150
1150
|
n.index
|
|
1151
1151
|
))
|
|
1152
1152
|
] }) : 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: [
|
|
1153
|
-
r.authors.map((n,
|
|
1153
|
+
r.authors.map((n, p) => /* @__PURE__ */ e.jsxs(qr, { children: [
|
|
1154
1154
|
n.name && /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
|
|
1155
|
-
/* @__PURE__ */ e.jsx("span", { id: `author${
|
|
1155
|
+
/* @__PURE__ */ e.jsx("span", { id: `author${p + 1 > 1 ? p + 1 : ""}`, className: "author", children: S(n.name) }),
|
|
1156
1156
|
/* @__PURE__ */ e.jsx("br", {})
|
|
1157
1157
|
] }),
|
|
1158
1158
|
n.email && /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
|
|
1159
|
-
/* @__PURE__ */ e.jsx("span", { id: `email${
|
|
1159
|
+
/* @__PURE__ */ e.jsx("span", { id: `email${p + 1 > 1 ? p + 1 : ""}`, className: "email", children: S(n.email) }),
|
|
1160
1160
|
/* @__PURE__ */ e.jsx("br", {})
|
|
1161
1161
|
] })
|
|
1162
|
-
] },
|
|
1162
|
+
] }, p)),
|
|
1163
1163
|
P(r.attributes, "revnumber") && /* @__PURE__ */ e.jsx("span", { id: "revnumber", children: `${r.attributes["version-label"].toString().toLowerCase()} ${r.attributes.revnumber}${r.attributes.revdate ? "," : ""}` }),
|
|
1164
1164
|
P(r.attributes, "revdate") && /* @__PURE__ */ e.jsx("span", { id: "revdate", children: r.attributes.revdate }),
|
|
1165
1165
|
P(r.attributes, "revremark") && /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
|
|
@@ -1392,8 +1392,8 @@ const er = (r, a) => r[`${a}-option`] !== void 0, or = (r, a, s = void 0, o, n)
|
|
|
1392
1392
|
const { document: a } = I(), s = a.attributes || {};
|
|
1393
1393
|
let o = r.title, n = r.num;
|
|
1394
1394
|
n = n === "." ? "" : n;
|
|
1395
|
-
const
|
|
1396
|
-
return r.numbered && r.level <=
|
|
1395
|
+
const p = s.sectnumlevels ? parseInt(`${s.sectnumlevels}`) : 3;
|
|
1396
|
+
return r.numbered && r.level <= p && (o = `${n} ${r.title}`), s.sectlinks && (o = /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
|
|
1397
1397
|
/* @__PURE__ */ e.jsx(
|
|
1398
1398
|
"a",
|
|
1399
1399
|
{
|
|
@@ -1451,12 +1451,12 @@ const er = (r, a) => r[`${a}-option`] !== void 0, or = (r, a, s = void 0, o, n)
|
|
|
1451
1451
|
"grid-" + or(r.attributes, "grid", "all", "table-grid", s)
|
|
1452
1452
|
], n = or(r.attributes, "stripes", null, "table-stripes", s);
|
|
1453
1453
|
n && o.push("stripes-" + n);
|
|
1454
|
-
let
|
|
1455
|
-
|
|
1456
|
-
const c = (
|
|
1454
|
+
let p = er(r.attributes, "autowidth"), m = parseInt(`${r.attributes.tablepcwidth}`), i = null;
|
|
1455
|
+
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 || "");
|
|
1456
|
+
const c = (u) => N(
|
|
1457
1457
|
"tableblock",
|
|
1458
|
-
`halign-${
|
|
1459
|
-
`valign-${
|
|
1458
|
+
`halign-${u.attributes.halign}`,
|
|
1459
|
+
`valign-${u.attributes.valign}`
|
|
1460
1460
|
), j = r.title, y = r.id, h = y || qt(j || "");
|
|
1461
1461
|
return /* @__PURE__ */ e.jsxs(
|
|
1462
1462
|
"table",
|
|
@@ -1469,11 +1469,11 @@ const er = (r, a) => r[`${a}-option`] !== void 0, or = (r, a, s = void 0, o, n)
|
|
|
1469
1469
|
!y && /* @__PURE__ */ e.jsx("a", { className: "anchor", id: h }),
|
|
1470
1470
|
/* @__PURE__ */ e.jsx("a", { href: `#${h}`, children: /* @__PURE__ */ e.jsx(D, { text: r.title }) })
|
|
1471
1471
|
] }),
|
|
1472
|
-
r.columns.length > 0 && /* @__PURE__ */ e.jsx("colgroup", { children: r.columns.map((
|
|
1473
|
-
const w =
|
|
1472
|
+
r.columns.length > 0 && /* @__PURE__ */ e.jsx("colgroup", { children: r.columns.map((u, f) => {
|
|
1473
|
+
const w = u.attributes.colpcwidth;
|
|
1474
1474
|
return /* @__PURE__ */ e.jsx("col", { style: { width: `${w}%` } }, f);
|
|
1475
1475
|
}) }),
|
|
1476
|
-
r.headRows.map((
|
|
1476
|
+
r.headRows.map((u, f) => /* @__PURE__ */ e.jsx("thead", { children: /* @__PURE__ */ e.jsx("tr", { children: u.map((w, C) => /* @__PURE__ */ e.jsx(
|
|
1477
1477
|
"th",
|
|
1478
1478
|
{
|
|
1479
1479
|
className: c(w),
|
|
@@ -1481,7 +1481,7 @@ const er = (r, a) => r[`${a}-option`] !== void 0, or = (r, a, s = void 0, o, n)
|
|
|
1481
1481
|
},
|
|
1482
1482
|
C
|
|
1483
1483
|
)) }) }, f)),
|
|
1484
|
-
/* @__PURE__ */ e.jsx("tbody", { children: r.bodyRows.map((
|
|
1484
|
+
/* @__PURE__ */ e.jsx("tbody", { children: r.bodyRows.map((u, f) => /* @__PURE__ */ e.jsx("tr", { children: u.map((w, C) => {
|
|
1485
1485
|
const O = w.columnSpan, F = w.rowSpan, E = w.content, H = {
|
|
1486
1486
|
colSpan: O,
|
|
1487
1487
|
rowSpan: F,
|
|
@@ -1515,16 +1515,16 @@ const er = (r, a) => r[`${a}-option`] !== void 0, or = (r, a, s = void 0, o, n)
|
|
|
1515
1515
|
));
|
|
1516
1516
|
}
|
|
1517
1517
|
}) }, f)) }),
|
|
1518
|
-
r.footRows.map((
|
|
1518
|
+
r.footRows.map((u, f) => /* @__PURE__ */ e.jsx("tfoot", { children: /* @__PURE__ */ e.jsx("tr", { children: u.map((w, C) => /* @__PURE__ */ e.jsx("td", { className: c(w), children: /* @__PURE__ */ e.jsx("p", { className: "tableblock", dangerouslySetInnerHTML: { __html: w.text } }) }, C)) }) }, f))
|
|
1519
1519
|
]
|
|
1520
1520
|
}
|
|
1521
1521
|
);
|
|
1522
1522
|
}, qt = (r) => r.toString().normalize("NFKD").replace(/[\u0300-\u036f]/g, "").toLowerCase().trim().replace(/\s+/g, "_").replace(/[^\w-]+/g, "").replace(/--+/g, "-").replace(/-$/g, ""), jt = ({ node: r }) => {
|
|
1523
1523
|
const { document: a } = I(), s = a.attributes || {}, o = a.sections && a.sections.length > 0;
|
|
1524
1524
|
let n = r.id || "toc";
|
|
1525
|
-
const
|
|
1525
|
+
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;
|
|
1526
1526
|
return m === "macro" && o && i ? /* @__PURE__ */ e.jsxs("div", { id: n, className: N("toc", r.role), children: [
|
|
1527
|
-
/* @__PURE__ */ e.jsx("div", { id: `${n}title`, className: "title", children: S(`${
|
|
1527
|
+
/* @__PURE__ */ e.jsx("div", { id: `${n}title`, className: "title", children: S(`${p}` || "") }),
|
|
1528
1528
|
a.sections && /* @__PURE__ */ e.jsx(ur, { sections: a.sections, opts: { tocLevels: c } })
|
|
1529
1529
|
] }) : null;
|
|
1530
1530
|
}, Et = () => /* @__PURE__ */ e.jsx("hr", {}), Nt = ({ node: r }) => {
|