vue3-sphinx-xml 0.6.0 → 0.6.2
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/Admonition-CMl3cvE2.mjs +35 -0
- package/dist/Admonition-CMl3cvE2.mjs.map +1 -0
- package/dist/BlockQuote-BKx_62o5.mjs +31 -0
- package/dist/BlockQuote-BKx_62o5.mjs.map +1 -0
- package/dist/CaptionNumber-nNxMeKHq.mjs +35 -0
- package/dist/CaptionNumber-nNxMeKHq.mjs.map +1 -0
- package/dist/ColumnGroup-2vQ_pHZh.mjs +30 -0
- package/dist/ColumnGroup-2vQ_pHZh.mjs.map +1 -0
- package/dist/Comment-Ddfhp8tE.mjs +27 -0
- package/dist/Comment-Ddfhp8tE.mjs.map +1 -0
- package/dist/Compound-CkQCXGEt.mjs +31 -0
- package/dist/Compound-CkQCXGEt.mjs.map +1 -0
- package/dist/Container-atFAqvD8.mjs +47 -0
- package/dist/Container-atFAqvD8.mjs.map +1 -0
- package/dist/DirectElementMap-e91U7c-P.mjs +24 -0
- package/dist/DirectElementMap-e91U7c-P.mjs.map +1 -0
- package/dist/Document-D1U8scRh.mjs +33 -0
- package/dist/Document-D1U8scRh.mjs.map +1 -0
- package/dist/DownloadReference-C74uZBZQ.mjs +38 -0
- package/dist/DownloadReference-C74uZBZQ.mjs.map +1 -0
- package/dist/Figure-Ue2uoU0l.mjs +36 -0
- package/dist/Figure-Ue2uoU0l.mjs.map +1 -0
- package/dist/FigureCaption-BVSbJhF7.mjs +39 -0
- package/dist/FigureCaption-BVSbJhF7.mjs.map +1 -0
- package/dist/Footnote-wv5ClOwM.mjs +32 -0
- package/dist/Footnote-wv5ClOwM.mjs.map +1 -0
- package/dist/FootnoteReference-mnfh7KUg.mjs +39 -0
- package/dist/FootnoteReference-mnfh7KUg.mjs.map +1 -0
- package/dist/Image-BydrCE0c.mjs +33 -0
- package/dist/Image-BydrCE0c.mjs.map +1 -0
- package/dist/Legend-B9ZFxCXI.mjs +32 -0
- package/dist/Legend-B9ZFxCXI.mjs.map +1 -0
- package/dist/LineBlock-Bhl4CyLL.mjs +32 -0
- package/dist/LineBlock-Bhl4CyLL.mjs.map +1 -0
- package/dist/LineSingle-BL_nqRem.mjs +33 -0
- package/dist/LineSingle-BL_nqRem.mjs.map +1 -0
- package/dist/Literal-Di_CHJ29.mjs +35 -0
- package/dist/Literal-Di_CHJ29.mjs.map +1 -0
- package/dist/LiteralBlock-Bdicro3D.mjs +28 -0
- package/dist/LiteralBlock-Bdicro3D.mjs.map +1 -0
- package/dist/Math-B4qW3-mK.mjs +23 -0
- package/dist/Math-B4qW3-mK.mjs.map +1 -0
- package/dist/MathBlock-Bio5KFuK.mjs +46 -0
- package/dist/MathBlock-Bio5KFuK.mjs.map +1 -0
- package/dist/Note-BOdO-lVA.mjs +32 -0
- package/dist/Note-BOdO-lVA.mjs.map +1 -0
- package/dist/NumberReference-DbTzyFe1.mjs +47 -0
- package/dist/NumberReference-DbTzyFe1.mjs.map +1 -0
- package/dist/Problematic-BFPD4WML.mjs +31 -0
- package/dist/Problematic-BFPD4WML.mjs.map +1 -0
- package/dist/Raw-XpSGAGRS.mjs +11 -0
- package/dist/Raw-XpSGAGRS.mjs.map +1 -0
- package/dist/Reference-D8OfH1nX.mjs +51 -0
- package/dist/Reference-D8OfH1nX.mjs.map +1 -0
- package/dist/Section-dwBTFhT5.mjs +35 -0
- package/dist/Section-dwBTFhT5.mjs.map +1 -0
- package/dist/Skip-B3vfiW0s.mjs +18 -0
- package/dist/Skip-B3vfiW0s.mjs.map +1 -0
- package/dist/StandardElement-B3pz75MC.mjs +56 -0
- package/dist/StandardElement-B3pz75MC.mjs.map +1 -0
- package/dist/Text-h1FT9xAk.mjs +23 -0
- package/dist/Text-h1FT9xAk.mjs.map +1 -0
- package/dist/Title-DuLS-7An.mjs +43 -0
- package/dist/Title-DuLS-7An.mjs.map +1 -0
- package/dist/TodoNode-BD7LH2n4.mjs +36 -0
- package/dist/TodoNode-BD7LH2n4.mjs.map +1 -0
- package/dist/Topic-Bpn12S2P.mjs +35 -0
- package/dist/Topic-Bpn12S2P.mjs.map +1 -0
- package/dist/Transition-B03RGr-W.mjs +12 -0
- package/dist/Transition-B03RGr-W.mjs.map +1 -0
- package/dist/Warning-yrqj66sd.mjs +38 -0
- package/dist/Warning-yrqj66sd.mjs.map +1 -0
- package/dist/basereference-qnWrRZL-.mjs +31 -0
- package/dist/basereference-qnWrRZL-.mjs.map +1 -0
- package/dist/computed-CtquEsn0.mjs +237 -0
- package/dist/computed-CtquEsn0.mjs.map +1 -0
- package/dist/methods-D1vA1pFT.mjs +77 -0
- package/dist/methods-D1vA1pFT.mjs.map +1 -0
- package/dist/sphinx-BkN2WZRJ.mjs +1851 -0
- package/dist/sphinx-BkN2WZRJ.mjs.map +1 -0
- package/dist/utilities-RjHWUaCa.mjs +18 -0
- package/dist/utilities-RjHWUaCa.mjs.map +1 -0
- package/dist/vue3-sphinx-xml.css +2 -1
- package/dist/vue3-sphinx-xml.js +10 -7
- package/dist/vue3-sphinx-xml.js.map +1 -1
- package/dist/vue3-sphinx-xml.mjs +130 -8
- package/dist/vue3-sphinx-xml.mjs.map +1 -1
- package/package.json +11 -11
- package/dist/Admonition-gd-uJLmV.mjs +0 -36
- package/dist/Admonition-gd-uJLmV.mjs.map +0 -1
- package/dist/BlockQuote-Cx9XdFGZ.mjs +0 -34
- package/dist/BlockQuote-Cx9XdFGZ.mjs.map +0 -1
- package/dist/CaptionNumber-B3c0JP0T.mjs +0 -36
- package/dist/CaptionNumber-B3c0JP0T.mjs.map +0 -1
- package/dist/ColumnGroup-DYs1xB1a.mjs +0 -37
- package/dist/ColumnGroup-DYs1xB1a.mjs.map +0 -1
- package/dist/Comment-DpyTzHo4.mjs +0 -31
- package/dist/Comment-DpyTzHo4.mjs.map +0 -1
- package/dist/Compound-ByH1w0P6.mjs +0 -30
- package/dist/Compound-ByH1w0P6.mjs.map +0 -1
- package/dist/Container-CmVmxWIt.mjs +0 -50
- package/dist/Container-CmVmxWIt.mjs.map +0 -1
- package/dist/DirectElementMap-B-wTPjj0.mjs +0 -21
- package/dist/DirectElementMap-B-wTPjj0.mjs.map +0 -1
- package/dist/Document-PZAyvjWh.mjs +0 -230
- package/dist/Document-PZAyvjWh.mjs.map +0 -1
- package/dist/DownloadReference-CtG3pZe0.mjs +0 -36
- package/dist/DownloadReference-CtG3pZe0.mjs.map +0 -1
- package/dist/Figure-BV3wzLZX.mjs +0 -38
- package/dist/Figure-BV3wzLZX.mjs.map +0 -1
- package/dist/FigureCaption-DPm7W0CJ.mjs +0 -41
- package/dist/FigureCaption-DPm7W0CJ.mjs.map +0 -1
- package/dist/Footnote-DAEfbxUi.mjs +0 -33
- package/dist/Footnote-DAEfbxUi.mjs.map +0 -1
- package/dist/FootnoteReference-Bi6FG4qF.mjs +0 -39
- package/dist/FootnoteReference-Bi6FG4qF.mjs.map +0 -1
- package/dist/Image-UjDGAe4v.mjs +0 -37
- package/dist/Image-UjDGAe4v.mjs.map +0 -1
- package/dist/Legend-BL0KvT6x.mjs +0 -35
- package/dist/Legend-BL0KvT6x.mjs.map +0 -1
- package/dist/LineBlock-yNMN4PnM.mjs +0 -33
- package/dist/LineBlock-yNMN4PnM.mjs.map +0 -1
- package/dist/LineSingle-D8mP9JxV.mjs +0 -34
- package/dist/LineSingle-D8mP9JxV.mjs.map +0 -1
- package/dist/Literal-B3RMToDf.mjs +0 -42
- package/dist/Literal-B3RMToDf.mjs.map +0 -1
- package/dist/LiteralBlock-DSNLfJRQ.mjs +0 -37
- package/dist/LiteralBlock-DSNLfJRQ.mjs.map +0 -1
- package/dist/Math-Cq4PVbWU.mjs +0 -28
- package/dist/Math-Cq4PVbWU.mjs.map +0 -1
- package/dist/MathBlock-BQlgpnCi.mjs +0 -59
- package/dist/MathBlock-BQlgpnCi.mjs.map +0 -1
- package/dist/Note-DTXT2vL1.mjs +0 -34
- package/dist/Note-DTXT2vL1.mjs.map +0 -1
- package/dist/NumberReference-eWL-p05o.mjs +0 -48
- package/dist/NumberReference-eWL-p05o.mjs.map +0 -1
- package/dist/Problematic-DdYGUPom.mjs +0 -36
- package/dist/Problematic-DdYGUPom.mjs.map +0 -1
- package/dist/Raw-DuZmU9hd.mjs +0 -10
- package/dist/Raw-DuZmU9hd.mjs.map +0 -1
- package/dist/Reference-NuJMaVmj.mjs +0 -53
- package/dist/Reference-NuJMaVmj.mjs.map +0 -1
- package/dist/Section-CsKQgVcF.mjs +0 -37
- package/dist/Section-CsKQgVcF.mjs.map +0 -1
- package/dist/Skip-CRGkjuMM.mjs +0 -19
- package/dist/Skip-CRGkjuMM.mjs.map +0 -1
- package/dist/StandardElement-Cf1EpLze.mjs +0 -57
- package/dist/StandardElement-Cf1EpLze.mjs.map +0 -1
- package/dist/Text-CT8nEMkp.mjs +0 -24
- package/dist/Text-CT8nEMkp.mjs.map +0 -1
- package/dist/Title-DoIeD6eK.mjs +0 -44
- package/dist/Title-DoIeD6eK.mjs.map +0 -1
- package/dist/TodoNode-C6L-iGX4.mjs +0 -38
- package/dist/TodoNode-C6L-iGX4.mjs.map +0 -1
- package/dist/Topic-BrgzQGpm.mjs +0 -36
- package/dist/Topic-BrgzQGpm.mjs.map +0 -1
- package/dist/Transition-CWMp4Zlv.mjs +0 -15
- package/dist/Transition-CWMp4Zlv.mjs.map +0 -1
- package/dist/Warning-dcxt8LRd.mjs +0 -42
- package/dist/Warning-dcxt8LRd.mjs.map +0 -1
- package/dist/basereference-7wajqzV8.mjs +0 -42
- package/dist/basereference-7wajqzV8.mjs.map +0 -1
- package/dist/entry-CNV5B73A.mjs +0 -1990
- package/dist/entry-CNV5B73A.mjs.map +0 -1
- package/dist/methods-ClbyDlbW.mjs +0 -69
- package/dist/methods-ClbyDlbW.mjs.map +0 -1
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { toDisplayString as e } from "vue";
|
|
2
|
+
//#region src/components/templates/Text.vue
|
|
3
|
+
var t = {
|
|
4
|
+
__name: "Text",
|
|
5
|
+
props: {
|
|
6
|
+
node: {
|
|
7
|
+
type: void 0,
|
|
8
|
+
default: null
|
|
9
|
+
},
|
|
10
|
+
componentName: { type: String },
|
|
11
|
+
properties: {
|
|
12
|
+
type: Object,
|
|
13
|
+
required: !0
|
|
14
|
+
}
|
|
15
|
+
},
|
|
16
|
+
setup(t) {
|
|
17
|
+
return (n, r) => e(t.properties.text);
|
|
18
|
+
}
|
|
19
|
+
};
|
|
20
|
+
//#endregion
|
|
21
|
+
export { t as default };
|
|
22
|
+
|
|
23
|
+
//# sourceMappingURL=Text-h1FT9xAk.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Text-h1FT9xAk.mjs","names":[],"sources":["../src/components/templates/Text.vue"],"sourcesContent":["<template>\n {{ properties.text }}\n</template>\n\n<script setup>\nconst props = defineProps({\n node: {\n type: undefined,\n default: null,\n },\n componentName: {\n type: String,\n },\n properties: {\n type: Object,\n required: true,\n },\n})\n</script>\n"],"mappings":";;;;;;;;;;;;;;;;qBACK,EAAA,WAAW,IAAI"}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { t as e } from "./computed-CtquEsn0.mjs";
|
|
2
|
+
import { Fragment as t, computed as n, createBlock as r, createElementBlock as i, normalizeClass as a, openBlock as o, renderList as s, resolveDynamicComponent as c, toRefs as l, unref as u, withCtx as d } from "vue";
|
|
3
|
+
//#region src/components/templates/Title.vue
|
|
4
|
+
var f = {
|
|
5
|
+
__name: "Title",
|
|
6
|
+
props: {
|
|
7
|
+
node: {
|
|
8
|
+
type: void 0,
|
|
9
|
+
default: null
|
|
10
|
+
},
|
|
11
|
+
componentName: { type: String },
|
|
12
|
+
properties: {
|
|
13
|
+
type: Object,
|
|
14
|
+
required: !0
|
|
15
|
+
}
|
|
16
|
+
},
|
|
17
|
+
setup(f) {
|
|
18
|
+
let { node: p, properties: m } = l(f), { children: h } = e(p), g = m.value.depth, _ = m.value.isTopic, v = n(() => {
|
|
19
|
+
let e = "h" + g;
|
|
20
|
+
return _ && (e = "p"), e;
|
|
21
|
+
}), y = n(() => {
|
|
22
|
+
let e = [];
|
|
23
|
+
return _ && (e.push("topic-title"), g === 1 && e.push("first")), e;
|
|
24
|
+
});
|
|
25
|
+
return (e, n) => (o(), r(c(v.value), { class: a(y.value) }, {
|
|
26
|
+
default: d(() => [(o(!0), i(t, null, s(u(h), (e, t) => (o(), r(c(e.component), {
|
|
27
|
+
key: "title_component_" + t,
|
|
28
|
+
node: e.node,
|
|
29
|
+
componentName: e.name,
|
|
30
|
+
properties: e.properties
|
|
31
|
+
}, null, 8, [
|
|
32
|
+
"node",
|
|
33
|
+
"componentName",
|
|
34
|
+
"properties"
|
|
35
|
+
]))), 128))]),
|
|
36
|
+
_: 1
|
|
37
|
+
}, 8, ["class"]));
|
|
38
|
+
}
|
|
39
|
+
};
|
|
40
|
+
//#endregion
|
|
41
|
+
export { f as default };
|
|
42
|
+
|
|
43
|
+
//# sourceMappingURL=Title-DuLS-7An.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Title-DuLS-7An.mjs","names":[],"sources":["../src/components/templates/Title.vue"],"sourcesContent":["<template>\n <component :is=\"tagName\" :class=\"classes\">\n <component\n v-for=\"(c, index) in children\"\n :key=\"'title_component_' + index\"\n :is=\"c.component\"\n :node=\"c.node\"\n :componentName=\"c.name\"\n :properties=\"c.properties\"\n />\n </component>\n</template>\n<script setup>\nimport { computed, toRefs } from 'vue'\n\nimport { useChildren } from '../../composables/computed'\n\nconst props = defineProps({\n node: {\n type: undefined,\n default: null,\n },\n componentName: {\n type: String,\n },\n properties: {\n type: Object,\n required: true,\n },\n})\n\nconst { node, properties } = toRefs(props)\n\nconst { children } = useChildren(node)\n\nconst depth = properties.value.depth\nconst isTopic = properties.value.isTopic\n\nconst tagName = computed(() => {\n let tagName = 'h' + depth\n if (isTopic) {\n tagName = 'p'\n }\n return tagName\n})\n\nconst classes = computed(() => {\n let classes = []\n if (isTopic) {\n classes.push('topic-title')\n if (depth === 1) {\n classes.push('first')\n }\n }\n return classes\n})\n</script>\n"],"mappings":";;;;;;;;;;;;;;;;;EA+BA,IAAM,EAAE,SAAM,kBAAe,EAAO,CAAK,GAEnC,EAAE,gBAAa,EAAY,CAAI,GAE/B,IAAQ,EAAW,MAAM,OACzB,IAAU,EAAW,MAAM,SAE3B,IAAU,QAAe;GAC7B,IAAI,IAAU,MAAM;GAIpB,OAHI,MACF,IAAU,MAEL;EACT,CAAC,GAEK,IAAU,QAAe;GAC7B,IAAI,IAAU,CAAC;GAOf,OANI,MACF,EAAQ,KAAK,aAAa,GACtB,MAAU,KACZ,EAAQ,KAAK,OAAO,IAGjB;EACT,CAAC;yBAtDC,EASW,EATK,EAAA,KAAO,GAAA,EAAG,OAAK,EAAE,EAAA,KAAO,EAAA,GAAA;oBAEN,EAAA,EAAA,EAAA,GAD/B,EAOC,GAAA,MAAA,EANqB,EAAA,CAAA,IAAb,GAAG,YADZ,EAOC,EAJK,EAAE,SAAS,GAAA;IADf,KAAG,qBAAuB;IAE1B,MAAM,EAAE;IACR,eAAe,EAAE;IACjB,YAAY,EAAE"}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { t as e } from "./methods-D1vA1pFT.mjs";
|
|
2
|
+
import { t } from "./computed-CtquEsn0.mjs";
|
|
3
|
+
import { Fragment as n, createBlock as r, createElementBlock as i, openBlock as a, renderList as o, resolveDynamicComponent as s, toRefs as c, unref as l } from "vue";
|
|
4
|
+
//#region src/components/templates/TodoNode.vue
|
|
5
|
+
var u = ["id"], d = ["id"], f = {
|
|
6
|
+
__name: "TodoNode",
|
|
7
|
+
props: {
|
|
8
|
+
node: {
|
|
9
|
+
type: void 0,
|
|
10
|
+
default: null
|
|
11
|
+
},
|
|
12
|
+
componentName: { type: String },
|
|
13
|
+
properties: { type: Object }
|
|
14
|
+
},
|
|
15
|
+
setup(f) {
|
|
16
|
+
console.log("****** IN USE ******");
|
|
17
|
+
let { node: p } = c(f), { extractId: m, separateIds: h } = e(), { id: g } = m(p.value), { extraIds: _ } = h(p.value, g), { children: v } = t(p);
|
|
18
|
+
return (e, t) => (a(), i("section", { id: l(g) }, [(a(!0), i(n, null, o(l(_), (e, t) => (a(), i("span", {
|
|
19
|
+
key: "id_span_" + t,
|
|
20
|
+
id: e
|
|
21
|
+
}, null, 8, d))), 128)), (a(!0), i(n, null, o(l(v), (e, t) => (a(), r(s(e.component), {
|
|
22
|
+
key: "todo_component_" + t,
|
|
23
|
+
node: e.node,
|
|
24
|
+
componentName: e.name,
|
|
25
|
+
properties: e.properties
|
|
26
|
+
}, null, 8, [
|
|
27
|
+
"node",
|
|
28
|
+
"componentName",
|
|
29
|
+
"properties"
|
|
30
|
+
]))), 128))], 8, u));
|
|
31
|
+
}
|
|
32
|
+
};
|
|
33
|
+
//#endregion
|
|
34
|
+
export { f as default };
|
|
35
|
+
|
|
36
|
+
//# sourceMappingURL=TodoNode-BD7LH2n4.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TodoNode-BD7LH2n4.mjs","names":[],"sources":["../src/components/templates/TodoNode.vue"],"sourcesContent":["<template>\n <section :id=\"id\">\n <span v-for=\"(s, index) in extraIds\" :key=\"'id_span_' + index\" :id=\"s\" />\n <component\n v-for=\"(c, index) in children\"\n :key=\"'todo_component_' + index\"\n :is=\"c.component\"\n :node=\"c.node\"\n :componentName=\"c.name\"\n :properties=\"c.properties\"\n />\n </section>\n</template>\n\n<script setup>\nconsole.log(\"****** IN USE ******\")\nimport { toRefs } from 'vue'\n\nimport { useMethods } from '../../composables/methods'\nimport { useChildren } from '../../composables/computed'\n\nconst props = defineProps({\n node: {\n type: undefined,\n default: null,\n },\n componentName: {\n type: String,\n },\n properties: {\n type: Object,\n }\n})\n\nconst { node } = toRefs(props)\n\nconst { extractId, separateIds } = useMethods()\nconst { id } = extractId(node.value)\nconst { extraIds } = separateIds(node.value, id)\n\nconst { children } = useChildren(node)\n</script>\n"],"mappings":";;;;;;;;;;;;;;;EAeA,QAAQ,IAAI,sBAAsB;EAmBlC,IAAM,EAAE,YAAS,EAAO,CAAK,GAEvB,EAAE,cAAW,mBAAgB,EAAW,GACxC,EAAE,UAAO,EAAU,EAAK,KAAK,GAC7B,EAAE,gBAAa,EAAY,EAAK,OAAO,CAAE,GAEzC,EAAE,gBAAa,EAAY,CAAI;yBAvCnC,EAUU,WAAA,EAVA,IAAI,EAAA,CAAA,EAAE,GAAA,EAAA,EAAA,EAAA,GACd,EAAyE,GAAA,MAAA,EAA9C,EAAA,CAAA,IAAb,GAAG,YAAjB,EAAyE,QAAA;GAAnC,KAAG,aAAe;GAAQ,IAAI;mCACpE,EAOE,GAAA,MAAA,EANqB,EAAA,CAAA,IAAb,GAAG,YADb,EAOE,EAJK,EAAE,SAAS,GAAA;GADf,KAAG,oBAAsB;GAEzB,MAAM,EAAE;GACR,eAAe,EAAE;GACjB,YAAY,EAAE"}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { t as e } from "./methods-D1vA1pFT.mjs";
|
|
2
|
+
import { n as t, t as n } from "./computed-CtquEsn0.mjs";
|
|
3
|
+
import { Fragment as r, createBlock as i, createElementBlock as a, normalizeClass as o, openBlock as s, renderList as c, resolveDynamicComponent as l, toRefs as u, unref as d } from "vue";
|
|
4
|
+
//#region src/components/templates/Topic.vue
|
|
5
|
+
var f = ["id"], p = {
|
|
6
|
+
__name: "Topic",
|
|
7
|
+
props: {
|
|
8
|
+
node: {
|
|
9
|
+
type: void 0,
|
|
10
|
+
default: null
|
|
11
|
+
},
|
|
12
|
+
componentName: { type: String },
|
|
13
|
+
properties: { type: Object }
|
|
14
|
+
},
|
|
15
|
+
setup(p) {
|
|
16
|
+
let { node: m } = u(p), { children: h } = n(m), { extractId: g } = e(), { classes: _ } = t(m), { id: v } = g(m.value);
|
|
17
|
+
return (e, t) => (s(), a("div", {
|
|
18
|
+
id: d(v),
|
|
19
|
+
class: o(d(_))
|
|
20
|
+
}, [(s(!0), a(r, null, c(d(h), (e, t) => (s(), i(l(e.component), {
|
|
21
|
+
key: "section_component_" + t,
|
|
22
|
+
node: e.node,
|
|
23
|
+
componentName: e.name,
|
|
24
|
+
properties: e.properties
|
|
25
|
+
}, null, 8, [
|
|
26
|
+
"node",
|
|
27
|
+
"componentName",
|
|
28
|
+
"properties"
|
|
29
|
+
]))), 128))], 10, f));
|
|
30
|
+
}
|
|
31
|
+
};
|
|
32
|
+
//#endregion
|
|
33
|
+
export { p as default };
|
|
34
|
+
|
|
35
|
+
//# sourceMappingURL=Topic-Bpn12S2P.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Topic-Bpn12S2P.mjs","names":[],"sources":["../src/components/templates/Topic.vue"],"sourcesContent":["<template>\n <div :id=\"id\" :class=\"classes\">\n <component\n v-for=\"(c, index) in children\"\n :key=\"'section_component_' + index\"\n :is=\"c.component\"\n :node=\"c.node\"\n :componentName=\"c.name\"\n :properties=\"c.properties\"\n />\n </div>\n</template>\n\n<script setup>\nimport { toRefs } from 'vue'\n\nimport { useChildren, useClasses } from '../../composables/computed'\nimport { useMethods } from '../../composables/methods'\n\nconst props = defineProps({\n node: {\n type: undefined,\n default: null,\n },\n componentName: {\n type: String,\n },\n properties: {\n type: Object,\n },\n})\n\nconst { node } = toRefs(props)\n\nconst { children } = useChildren(node)\nconst { extractId } = useMethods()\nconst { classes } = useClasses(node)\n\nconst { id } = extractId(node.value)\n\n</script>\n"],"mappings":";;;;;;;;;;;;;;;EAgCA,IAAM,EAAE,YAAS,EAAO,CAAK,GAEvB,EAAE,gBAAa,EAAY,CAAI,GAC/B,EAAE,iBAAc,EAAW,GAC3B,EAAE,eAAY,EAAW,CAAI,GAE7B,EAAE,UAAO,EAAU,EAAK,KAAK;yBArCjC,EASM,OAAA;GATA,IAAI,EAAA,CAAA;GAAK,OAAK,EAAE,EAAA,CAAA,CAAO;cAC3B,EAOE,GAAA,MAAA,EANqB,EAAA,CAAA,IAAb,GAAG,YADb,EAOE,EAJK,EAAE,SAAS,GAAA;GADf,KAAG,uBAAyB;GAE5B,MAAM,EAAE;GACR,eAAe,EAAE;GACjB,YAAY,EAAE"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { h as e } from "vue";
|
|
2
|
+
//#region src/components/templates/Transition.vue
|
|
3
|
+
var t = {
|
|
4
|
+
name: "Transition",
|
|
5
|
+
render() {
|
|
6
|
+
return e("hr", { class: ["docutils"] });
|
|
7
|
+
}
|
|
8
|
+
};
|
|
9
|
+
//#endregion
|
|
10
|
+
export { t as default };
|
|
11
|
+
|
|
12
|
+
//# sourceMappingURL=Transition-B03RGr-W.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Transition-B03RGr-W.mjs","names":[],"sources":["../src/components/templates/Transition.vue"],"sourcesContent":["<script>\nimport { h } from 'vue'\n\nexport default {\n name: 'Transition',\n render() {\n return h(\n 'hr', // tag name\n { class: ['docutils'] },\n )\n },\n}\n</script>\n"],"mappings":";;AAGA,IAAK,IAAU;CACb,MAAM;CACN,SAAS;EACP,OAAO,EACL,MACA,EAAE,OAAO,CAAC,UAAU,EAAE,CACxB;CACF;AACF"}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { t as e } from "./methods-D1vA1pFT.mjs";
|
|
2
|
+
import { t } from "./computed-CtquEsn0.mjs";
|
|
3
|
+
import { Fragment as n, createBlock as r, createElementBlock as i, createTextVNode as a, openBlock as o, renderList as s, resolveDynamicComponent as c, toRefs as l, unref as u, withCtx as d } from "vue";
|
|
4
|
+
//#region src/components/templates/Warning.vue
|
|
5
|
+
var f = ["id"], p = {
|
|
6
|
+
__name: "Warning",
|
|
7
|
+
props: {
|
|
8
|
+
node: {
|
|
9
|
+
type: void 0,
|
|
10
|
+
default: null
|
|
11
|
+
},
|
|
12
|
+
componentName: { type: String },
|
|
13
|
+
properties: { type: Object }
|
|
14
|
+
},
|
|
15
|
+
setup(p) {
|
|
16
|
+
let { node: m, properties: h } = l(p), { extractId: g } = e(), { id: _ } = g(m.value), { children: v } = t(m), y = "h" + h.value.depth;
|
|
17
|
+
return (e, t) => (o(), i("div", {
|
|
18
|
+
id: u(_),
|
|
19
|
+
class: "admonition warning"
|
|
20
|
+
}, [(o(), r(c(y), null, {
|
|
21
|
+
default: d(() => [...t[0] ||= [a("Warning", -1)]]),
|
|
22
|
+
_: 1
|
|
23
|
+
})), (o(!0), i(n, null, s(u(v), (e, t) => (o(), r(c(e.component), {
|
|
24
|
+
key: "warning_component_" + t,
|
|
25
|
+
node: e.node,
|
|
26
|
+
componentName: e.name,
|
|
27
|
+
properties: e.properties
|
|
28
|
+
}, null, 8, [
|
|
29
|
+
"node",
|
|
30
|
+
"componentName",
|
|
31
|
+
"properties"
|
|
32
|
+
]))), 128))], 8, f));
|
|
33
|
+
}
|
|
34
|
+
};
|
|
35
|
+
//#endregion
|
|
36
|
+
export { p as default };
|
|
37
|
+
|
|
38
|
+
//# sourceMappingURL=Warning-yrqj66sd.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Warning-yrqj66sd.mjs","names":[],"sources":["../src/components/templates/Warning.vue"],"sourcesContent":["<template>\n <div :id=\"id\" class=\"admonition warning\">\n <component :is=\"tagName\">Warning</component>\n <component\n v-for=\"(c, index) in children\"\n :key=\"'warning_component_' + index\"\n :is=\"c.component\"\n :node=\"c.node\"\n :componentName=\"c.name\"\n :properties=\"c.properties\"\n />\n </div>\n</template>\n\n<script setup>\nimport { toRefs } from 'vue'\n\nimport { useMethods } from '../../composables/methods'\nimport { useChildren } from '../../composables/computed'\n\nconst props = defineProps({\n node: {\n type: undefined,\n default: null,\n },\n componentName: {\n type: String,\n },\n properties: {\n type: Object,\n },\n})\n\nconst { node, properties } = toRefs(props)\n\nconst { extractId } = useMethods()\nconst { id } = extractId(node.value)\n\nconst { children } = useChildren(node)\nconst tagName = 'h' + properties.value.depth\n</script>\n"],"mappings":";;;;;;;;;;;;;;;EAiCA,IAAM,EAAE,SAAM,kBAAe,EAAO,CAAK,GAEnC,EAAE,iBAAc,EAAW,GAC3B,EAAE,UAAO,EAAU,EAAK,KAAK,GAE7B,EAAE,gBAAa,EAAY,CAAI,GAC/B,IAAU,MAAM,EAAW,MAAM;yBAtCrC,EAUM,OAAA;GAVA,IAAI,EAAA,CAAA;GAAI,OAAM;YAClB,EAA4C,EAA5B,CAAO,GAAA,MAAA;oBAAS,CAAA,GAAA,AAAA,EAAA,OAAA,CAAA,EAAP,WAAO,EAAA,CAAA,CAAA,CAAA;;eAChC,EAOE,GAAA,MAAA,EANqB,EAAA,CAAA,IAAb,GAAG,YADb,EAOE,EAJK,EAAE,SAAS,GAAA;GADf,KAAG,uBAAyB;GAE5B,MAAM,EAAE;GACR,eAAe,EAAE;GACjB,YAAY,EAAE"}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { t as e } from "./sphinx-BkN2WZRJ.mjs";
|
|
2
|
+
import { r as t, t as n } from "./utilities-RjHWUaCa.mjs";
|
|
3
|
+
import { t as r } from "./methods-D1vA1pFT.mjs";
|
|
4
|
+
//#region src/composables/basereference.js
|
|
5
|
+
var { determinePageLocation: i, determinePageName: a, isInternalReference: o, isReferenceToCurrentPage: s, parentLevelsInRefURI: c } = r(), l = (r, l, u) => {
|
|
6
|
+
let d = e();
|
|
7
|
+
return { onReferenceCreated: () => {
|
|
8
|
+
if (o(r)) {
|
|
9
|
+
let e = n(l), o = t(l), f = r.getAttribute("refid");
|
|
10
|
+
if (f && !f.startsWith("#") ? u.value.hash = "#" + f : u.value.hash = f, !s(r)) {
|
|
11
|
+
e = a(r, l);
|
|
12
|
+
let t = c(r);
|
|
13
|
+
if (d.isOffsetReferenceURL(o) && t) {
|
|
14
|
+
let e = o.split("/");
|
|
15
|
+
for (; t--;) e.pop();
|
|
16
|
+
o = e.length === 1 ? "/" : e.join("/");
|
|
17
|
+
}
|
|
18
|
+
u.value.hash = i(r), d.hasPageById(o, e) || d.fetchPage({
|
|
19
|
+
page_name: e,
|
|
20
|
+
page_route: o,
|
|
21
|
+
page_url: d.getBaseUrl(o)
|
|
22
|
+
});
|
|
23
|
+
}
|
|
24
|
+
u.value.path = o === "/" ? o + e : o + "/" + e;
|
|
25
|
+
}
|
|
26
|
+
} };
|
|
27
|
+
};
|
|
28
|
+
//#endregion
|
|
29
|
+
export { l as t };
|
|
30
|
+
|
|
31
|
+
//# sourceMappingURL=basereference-qnWrRZL-.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"basereference-qnWrRZL-.mjs","names":[],"sources":["../src/composables/basereference.js"],"sourcesContent":["import { useSphinxStore } from '@/stores/sphinx'\n\nimport { useMethods } from './methods'\nimport { determineRouteUrl, constructPageNameFromRoute } from '../js/utilities'\n\nconst {\n determinePageLocation,\n determinePageName,\n isInternalReference,\n isReferenceToCurrentPage,\n parentLevelsInRefURI,\n} = useMethods()\n\nexport const useBaseReference = (element, route, routeDescription) => {\n const sphinxStore = useSphinxStore()\n\n const onReferenceCreated = () => {\n if (isInternalReference(element)) {\n let pageName = constructPageNameFromRoute(route)\n let baseRefUri = determineRouteUrl(route)\n const pageReference = element.getAttribute('refid')\n if (pageReference && !pageReference.startsWith('#')) {\n routeDescription.value.hash = '#' + pageReference\n } else {\n routeDescription.value.hash = pageReference\n }\n if (!isReferenceToCurrentPage(element)) {\n pageName = determinePageName(element, route)\n let parentLevels = parentLevelsInRefURI(element)\n if (sphinxStore.isOffsetReferenceURL(baseRefUri) && parentLevels) {\n let parts = baseRefUri.split('/')\n while(parentLevels--) {\n parts.pop()\n }\n if (parts.length === 1) {\n baseRefUri = '/'\n } else {\n baseRefUri = parts.join('/')\n }\n }\n routeDescription.value.hash = determinePageLocation(element)\n const existingPageWrapper = sphinxStore.hasPageById(\n baseRefUri,\n pageName,\n )\n if (!existingPageWrapper) {\n sphinxStore.fetchPage({\n page_name: pageName,\n page_route: baseRefUri,\n page_url: sphinxStore.getBaseUrl(baseRefUri),\n })\n }\n }\n\n routeDescription.value.path = baseRefUri === '/' ? baseRefUri + pageName : baseRefUri + '/' + pageName\n }\n }\n return {\n onReferenceCreated,\n }\n}\n"],"mappings":";;;;AAKA,IAAM,EACJ,0BACA,sBACA,wBACA,6BACA,4BACE,EAAW,GAEF,KAAoB,GAAS,GAAO,MAAqB;CACpE,IAAM,IAAc,EAAe;CA2CnC,OAAO,EACL,0BA1C+B;EAC/B,IAAI,EAAoB,CAAO,GAAG;GAChC,IAAI,IAAW,EAA2B,CAAK,GAC3C,IAAa,EAAkB,CAAK,GAClC,IAAgB,EAAQ,aAAa,OAAO;GAMlD,IALI,KAAiB,CAAC,EAAc,WAAW,GAAG,IAChD,EAAiB,MAAM,OAAO,MAAM,IAEpC,EAAiB,MAAM,OAAO,GAE5B,CAAC,EAAyB,CAAO,GAAG;IACtC,IAAW,EAAkB,GAAS,CAAK;IAC3C,IAAI,IAAe,EAAqB,CAAO;IAC/C,IAAI,EAAY,qBAAqB,CAAU,KAAK,GAAc;KAChE,IAAI,IAAQ,EAAW,MAAM,GAAG;KAChC,OAAM,MACJ,EAAM,IAAI;KAEZ,AAGE,IAHE,EAAM,WAAW,IACN,MAEA,EAAM,KAAK,GAAG;IAE/B;IAMA,AALA,EAAiB,MAAM,OAAO,EAAsB,CAAO,GAC/B,EAAY,YACtC,GACA,CAEqB,KACrB,EAAY,UAAU;KACpB,WAAW;KACX,YAAY;KACZ,UAAU,EAAY,WAAW,CAAU;IAC7C,CAAC;GAEL;GAEA,EAAiB,MAAM,OAAO,MAAe,MAAM,IAAa,IAAW,IAAa,MAAM;EAChG;CACF,EAGA;AACF"}
|
|
@@ -0,0 +1,237 @@
|
|
|
1
|
+
import { computed as e, createElementBlock as t, createElementVNode as n, defineAsyncComponent as r, openBlock as i, toDisplayString as a } from "vue";
|
|
2
|
+
//#region \0rolldown_dynamic_import_helper.js
|
|
3
|
+
var o = (e, t, n) => {
|
|
4
|
+
let r = t.lastIndexOf("?"), i = e[r === -1 || r < t.lastIndexOf("/") ? t : t.slice(0, r)];
|
|
5
|
+
return i ? typeof i == "function" ? i() : Promise.resolve(i) : new Promise((e, r) => {
|
|
6
|
+
(typeof queueMicrotask == "function" ? queueMicrotask : setTimeout)(r.bind(null, /* @__PURE__ */ Error("Unknown variable dynamic import: " + t + (t.split("/").length === n ? "" : ". Note that variables only represent file names one level deep."))));
|
|
7
|
+
});
|
|
8
|
+
}, s = {
|
|
9
|
+
__name: "Error",
|
|
10
|
+
props: {
|
|
11
|
+
node: { type: void 0 },
|
|
12
|
+
componentName: { type: String }
|
|
13
|
+
},
|
|
14
|
+
setup(e) {
|
|
15
|
+
return (r, o) => (i(), t("div", null, [n("h3", null, "Missing: '" + a(e.componentName) + "' from Sphinx XML output", 1), o[0] ||= n("span", null, "It seems the component was not found.", -1)]));
|
|
16
|
+
}
|
|
17
|
+
}, c = (e, t) => {
|
|
18
|
+
let n = e.__vccOpts || e;
|
|
19
|
+
for (let [e, r] of t) n[e] = r;
|
|
20
|
+
return n;
|
|
21
|
+
}, l = { class: "loading-container" }, u = /*#__PURE__*/ c({
|
|
22
|
+
__name: "Loading",
|
|
23
|
+
props: {
|
|
24
|
+
node: { type: void 0 },
|
|
25
|
+
componentName: { type: String }
|
|
26
|
+
},
|
|
27
|
+
setup(e) {
|
|
28
|
+
return (e, r) => (i(), t("div", l, [...r[0] ||= [n("span", null, "Loading page component", -1), n("span", { class: "lds-roller" }, [
|
|
29
|
+
n("div"),
|
|
30
|
+
n("div"),
|
|
31
|
+
n("div"),
|
|
32
|
+
n("div"),
|
|
33
|
+
n("div"),
|
|
34
|
+
n("div"),
|
|
35
|
+
n("div"),
|
|
36
|
+
n("div")
|
|
37
|
+
], -1)]]));
|
|
38
|
+
}
|
|
39
|
+
}, [["__scopeId", "data-v-d51880c8"]]), d = new Map([
|
|
40
|
+
["bullet_list", "ul"],
|
|
41
|
+
["button", "button"],
|
|
42
|
+
["citation", "cite"],
|
|
43
|
+
["definition", "dd"],
|
|
44
|
+
["definition_list", "dl"],
|
|
45
|
+
["definition_list_item", "dt"],
|
|
46
|
+
["div", "div"],
|
|
47
|
+
["emphasis", "em"],
|
|
48
|
+
["enumerated_list", "ol"],
|
|
49
|
+
["glossary", "div"],
|
|
50
|
+
["inline", "span"],
|
|
51
|
+
["label", "span"],
|
|
52
|
+
["list_item", "li"],
|
|
53
|
+
["line", "p"],
|
|
54
|
+
["paragraph", "p"],
|
|
55
|
+
["rubric", "h3"],
|
|
56
|
+
["strong", "strong"],
|
|
57
|
+
["subscript", "sub"],
|
|
58
|
+
["superscript", "sup"],
|
|
59
|
+
["table", "table"],
|
|
60
|
+
["tbody", "tbody"],
|
|
61
|
+
["entry", "td"],
|
|
62
|
+
["row", "tr"],
|
|
63
|
+
["thead", "thead"],
|
|
64
|
+
["term", "dt"],
|
|
65
|
+
["title_reference", "cite"]
|
|
66
|
+
]), f = new Map([
|
|
67
|
+
["#text", "Text"],
|
|
68
|
+
["block_quote", "BlockQuote"],
|
|
69
|
+
["caption", "FigureCaption"],
|
|
70
|
+
["caption_number", "CaptionNumber"],
|
|
71
|
+
["download_reference", "DownloadReference"],
|
|
72
|
+
["footnote_reference", "FootnoteReference"],
|
|
73
|
+
["index", "Skip"],
|
|
74
|
+
["line_block", "LineBlock"],
|
|
75
|
+
["literal_block", "LiteralBlock"],
|
|
76
|
+
["math_block", "MathBlock"],
|
|
77
|
+
["number_reference", "NumberReference"]
|
|
78
|
+
]);
|
|
79
|
+
//#endregion
|
|
80
|
+
//#region src/composables/computed.js
|
|
81
|
+
function p(e, t) {
|
|
82
|
+
let n;
|
|
83
|
+
if (t.nodeName === "#text") {
|
|
84
|
+
if (!t.nodeValue.trim()) return null;
|
|
85
|
+
n = { text: t.nodeValue };
|
|
86
|
+
} else if (t.nodeName === "warning") {
|
|
87
|
+
let e = t.parentNode, r = 0;
|
|
88
|
+
for (; e;) e.nodeName === "section" && (r += 1), e = e.parentNode;
|
|
89
|
+
n = { depth: r };
|
|
90
|
+
} else if (t.nodeName === "title") {
|
|
91
|
+
let e = t.parentNode, r = 0, i = !1;
|
|
92
|
+
if (e.nodeName === "topic") i = !0;
|
|
93
|
+
else for (; e;) e.nodeName === "section" && (r += 1), e = e.parentNode;
|
|
94
|
+
n = {
|
|
95
|
+
depth: r,
|
|
96
|
+
isTopic: i
|
|
97
|
+
};
|
|
98
|
+
}
|
|
99
|
+
return {
|
|
100
|
+
component: r({
|
|
101
|
+
loader: () => o(/* #__PURE__ */ Object.assign({
|
|
102
|
+
"../components/templates/Admonition.vue": () => import("./Admonition-CMl3cvE2.mjs"),
|
|
103
|
+
"../components/templates/BlockQuote.vue": () => import("./BlockQuote-BKx_62o5.mjs"),
|
|
104
|
+
"../components/templates/CaptionNumber.vue": () => import("./CaptionNumber-nNxMeKHq.mjs"),
|
|
105
|
+
"../components/templates/ColumnGroup.vue": () => import("./ColumnGroup-2vQ_pHZh.mjs"),
|
|
106
|
+
"../components/templates/Comment.vue": () => import("./Comment-Ddfhp8tE.mjs"),
|
|
107
|
+
"../components/templates/Compound.vue": () => import("./Compound-CkQCXGEt.mjs"),
|
|
108
|
+
"../components/templates/Container.vue": () => import("./Container-atFAqvD8.mjs"),
|
|
109
|
+
"../components/templates/DirectElementMap.vue": () => import("./DirectElementMap-e91U7c-P.mjs"),
|
|
110
|
+
"../components/templates/Document.vue": () => import("./Document-D1U8scRh.mjs"),
|
|
111
|
+
"../components/templates/DownloadReference.vue": () => import("./DownloadReference-C74uZBZQ.mjs"),
|
|
112
|
+
"../components/templates/Figure.vue": () => import("./Figure-Ue2uoU0l.mjs"),
|
|
113
|
+
"../components/templates/FigureCaption.vue": () => import("./FigureCaption-BVSbJhF7.mjs"),
|
|
114
|
+
"../components/templates/Footnote.vue": () => import("./Footnote-wv5ClOwM.mjs"),
|
|
115
|
+
"../components/templates/FootnoteReference.vue": () => import("./FootnoteReference-mnfh7KUg.mjs"),
|
|
116
|
+
"../components/templates/Image.vue": () => import("./Image-BydrCE0c.mjs"),
|
|
117
|
+
"../components/templates/Legend.vue": () => import("./Legend-B9ZFxCXI.mjs"),
|
|
118
|
+
"../components/templates/LineBlock.vue": () => import("./LineBlock-Bhl4CyLL.mjs"),
|
|
119
|
+
"../components/templates/LineSingle.vue": () => import("./LineSingle-BL_nqRem.mjs"),
|
|
120
|
+
"../components/templates/Literal.vue": () => import("./Literal-Di_CHJ29.mjs"),
|
|
121
|
+
"../components/templates/LiteralBlock.vue": () => import("./LiteralBlock-Bdicro3D.mjs"),
|
|
122
|
+
"../components/templates/Math.vue": () => import("./Math-B4qW3-mK.mjs"),
|
|
123
|
+
"../components/templates/MathBlock.vue": () => import("./MathBlock-Bio5KFuK.mjs"),
|
|
124
|
+
"../components/templates/Note.vue": () => import("./Note-BOdO-lVA.mjs"),
|
|
125
|
+
"../components/templates/NumberReference.vue": () => import("./NumberReference-DbTzyFe1.mjs"),
|
|
126
|
+
"../components/templates/Problematic.vue": () => import("./Problematic-BFPD4WML.mjs"),
|
|
127
|
+
"../components/templates/Raw.vue": () => import("./Raw-XpSGAGRS.mjs"),
|
|
128
|
+
"../components/templates/Reference.vue": () => import("./Reference-D8OfH1nX.mjs"),
|
|
129
|
+
"../components/templates/Section.vue": () => import("./Section-dwBTFhT5.mjs"),
|
|
130
|
+
"../components/templates/Skip.vue": () => import("./Skip-B3vfiW0s.mjs"),
|
|
131
|
+
"../components/templates/StandardElement.vue": () => import("./StandardElement-B3pz75MC.mjs"),
|
|
132
|
+
"../components/templates/Text.vue": () => import("./Text-h1FT9xAk.mjs"),
|
|
133
|
+
"../components/templates/Title.vue": () => import("./Title-DuLS-7An.mjs"),
|
|
134
|
+
"../components/templates/TodoNode.vue": () => import("./TodoNode-BD7LH2n4.mjs"),
|
|
135
|
+
"../components/templates/Topic.vue": () => import("./Topic-Bpn12S2P.mjs"),
|
|
136
|
+
"../components/templates/Transition.vue": () => import("./Transition-B03RGr-W.mjs"),
|
|
137
|
+
"../components/templates/Warning.vue": () => import("./Warning-yrqj66sd.mjs")
|
|
138
|
+
}), `../components/templates/${e}.vue`, 4),
|
|
139
|
+
loadingComponent: u,
|
|
140
|
+
errorComponent: s
|
|
141
|
+
}),
|
|
142
|
+
name: e,
|
|
143
|
+
node: t,
|
|
144
|
+
properties: n
|
|
145
|
+
};
|
|
146
|
+
}
|
|
147
|
+
function m(e, t) {
|
|
148
|
+
let n = "ColumnGroup";
|
|
149
|
+
return {
|
|
150
|
+
component: r({
|
|
151
|
+
loader: () => o(/* #__PURE__ */ Object.assign({
|
|
152
|
+
"../components/templates/Admonition.vue": () => import("./Admonition-CMl3cvE2.mjs"),
|
|
153
|
+
"../components/templates/BlockQuote.vue": () => import("./BlockQuote-BKx_62o5.mjs"),
|
|
154
|
+
"../components/templates/CaptionNumber.vue": () => import("./CaptionNumber-nNxMeKHq.mjs"),
|
|
155
|
+
"../components/templates/ColumnGroup.vue": () => import("./ColumnGroup-2vQ_pHZh.mjs"),
|
|
156
|
+
"../components/templates/Comment.vue": () => import("./Comment-Ddfhp8tE.mjs"),
|
|
157
|
+
"../components/templates/Compound.vue": () => import("./Compound-CkQCXGEt.mjs"),
|
|
158
|
+
"../components/templates/Container.vue": () => import("./Container-atFAqvD8.mjs"),
|
|
159
|
+
"../components/templates/DirectElementMap.vue": () => import("./DirectElementMap-e91U7c-P.mjs"),
|
|
160
|
+
"../components/templates/Document.vue": () => import("./Document-D1U8scRh.mjs"),
|
|
161
|
+
"../components/templates/DownloadReference.vue": () => import("./DownloadReference-C74uZBZQ.mjs"),
|
|
162
|
+
"../components/templates/Figure.vue": () => import("./Figure-Ue2uoU0l.mjs"),
|
|
163
|
+
"../components/templates/FigureCaption.vue": () => import("./FigureCaption-BVSbJhF7.mjs"),
|
|
164
|
+
"../components/templates/Footnote.vue": () => import("./Footnote-wv5ClOwM.mjs"),
|
|
165
|
+
"../components/templates/FootnoteReference.vue": () => import("./FootnoteReference-mnfh7KUg.mjs"),
|
|
166
|
+
"../components/templates/Image.vue": () => import("./Image-BydrCE0c.mjs"),
|
|
167
|
+
"../components/templates/Legend.vue": () => import("./Legend-B9ZFxCXI.mjs"),
|
|
168
|
+
"../components/templates/LineBlock.vue": () => import("./LineBlock-Bhl4CyLL.mjs"),
|
|
169
|
+
"../components/templates/LineSingle.vue": () => import("./LineSingle-BL_nqRem.mjs"),
|
|
170
|
+
"../components/templates/Literal.vue": () => import("./Literal-Di_CHJ29.mjs"),
|
|
171
|
+
"../components/templates/LiteralBlock.vue": () => import("./LiteralBlock-Bdicro3D.mjs"),
|
|
172
|
+
"../components/templates/Math.vue": () => import("./Math-B4qW3-mK.mjs"),
|
|
173
|
+
"../components/templates/MathBlock.vue": () => import("./MathBlock-Bio5KFuK.mjs"),
|
|
174
|
+
"../components/templates/Note.vue": () => import("./Note-BOdO-lVA.mjs"),
|
|
175
|
+
"../components/templates/NumberReference.vue": () => import("./NumberReference-DbTzyFe1.mjs"),
|
|
176
|
+
"../components/templates/Problematic.vue": () => import("./Problematic-BFPD4WML.mjs"),
|
|
177
|
+
"../components/templates/Raw.vue": () => import("./Raw-XpSGAGRS.mjs"),
|
|
178
|
+
"../components/templates/Reference.vue": () => import("./Reference-D8OfH1nX.mjs"),
|
|
179
|
+
"../components/templates/Section.vue": () => import("./Section-dwBTFhT5.mjs"),
|
|
180
|
+
"../components/templates/Skip.vue": () => import("./Skip-B3vfiW0s.mjs"),
|
|
181
|
+
"../components/templates/StandardElement.vue": () => import("./StandardElement-B3pz75MC.mjs"),
|
|
182
|
+
"../components/templates/Text.vue": () => import("./Text-h1FT9xAk.mjs"),
|
|
183
|
+
"../components/templates/Title.vue": () => import("./Title-DuLS-7An.mjs"),
|
|
184
|
+
"../components/templates/TodoNode.vue": () => import("./TodoNode-BD7LH2n4.mjs"),
|
|
185
|
+
"../components/templates/Topic.vue": () => import("./Topic-Bpn12S2P.mjs"),
|
|
186
|
+
"../components/templates/Transition.vue": () => import("./Transition-B03RGr-W.mjs"),
|
|
187
|
+
"../components/templates/Warning.vue": () => import("./Warning-yrqj66sd.mjs")
|
|
188
|
+
}), `../components/templates/${n}.vue`, 4),
|
|
189
|
+
loadingComponent: u,
|
|
190
|
+
errorComponent: s
|
|
191
|
+
}),
|
|
192
|
+
name: n,
|
|
193
|
+
node: e,
|
|
194
|
+
properties: { colspecs: t }
|
|
195
|
+
};
|
|
196
|
+
}
|
|
197
|
+
function h(e) {
|
|
198
|
+
let t = e.charAt(0).toUpperCase() + e.slice(1);
|
|
199
|
+
return f.has(e) ? t = f.get(e) : d.has(e) && (t = "StandardElement"), t;
|
|
200
|
+
}
|
|
201
|
+
function g(e, t, n) {
|
|
202
|
+
if (t === null) return e;
|
|
203
|
+
let r = [];
|
|
204
|
+
for (let e of t.querySelectorAll("colspec")) r.push(e.getAttribute("colwidth"));
|
|
205
|
+
return r.length !== n && console.log("***** Something is not right. *****", r.length, n), e.push(m(t, r)), e;
|
|
206
|
+
}
|
|
207
|
+
function _(e, t) {
|
|
208
|
+
if (t === null) return e;
|
|
209
|
+
let n = null;
|
|
210
|
+
for (let r of t.childNodes) {
|
|
211
|
+
let t = r.nodeName;
|
|
212
|
+
if (t === "compact_paragraph") e = _(e, r);
|
|
213
|
+
else if (t === "tgroup") {
|
|
214
|
+
let t = Number(r.getAttribute("cols"));
|
|
215
|
+
e = g(e, r, t), e = _(e, r);
|
|
216
|
+
} else if (t !== "colspec") if (t === "target") n = r.getAttribute("refid");
|
|
217
|
+
else {
|
|
218
|
+
t !== "#text" && n && (r.setAttribute("id", n), n = "");
|
|
219
|
+
let i = p(h(t), r);
|
|
220
|
+
i && e.push(i);
|
|
221
|
+
}
|
|
222
|
+
}
|
|
223
|
+
return e;
|
|
224
|
+
}
|
|
225
|
+
function v(t) {
|
|
226
|
+
return { children: e(() => _([], t.value)) };
|
|
227
|
+
}
|
|
228
|
+
function y(t) {
|
|
229
|
+
return { classes: e(() => {
|
|
230
|
+
let e = t.value.getAttribute("classes"), n = [];
|
|
231
|
+
return e && (n = e.split(" ")), [t.value.nodeName.toLowerCase(), ...n];
|
|
232
|
+
}) };
|
|
233
|
+
}
|
|
234
|
+
//#endregion
|
|
235
|
+
export { c as i, y as n, d as r, v as t };
|
|
236
|
+
|
|
237
|
+
//# sourceMappingURL=computed-CtquEsn0.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"computed-CtquEsn0.mjs","names":[],"sources":["../src/components/Error.vue","../src/components/Loading.vue","../src/js/nodemap.js","../src/composables/computed.js"],"sourcesContent":["<template>\n <div>\n <h3>Missing: '{{ componentName }}' from Sphinx XML output</h3>\n <span>It seems the component was not found.</span>\n </div>\n</template>\n\n<script setup>\nconst props = defineProps({\n node: {\n type: undefined,\n },\n componentName: {\n type: String,\n },\n})\n</script>\n","<template>\n <div class=\"loading-container\">\n <span>Loading page component</span>\n <span class=\"lds-roller\">\n <div></div>\n <div></div>\n <div></div>\n <div></div>\n <div></div>\n <div></div>\n <div></div>\n <div></div>\n </span>\n </div>\n</template>\n\n<script setup>\nconst props = defineProps({\n node: {\n type: undefined,\n },\n componentName: {\n type: String,\n },\n})\n</script>\n\n<style scoped>\n.loading-container {\n display: flex;\n align-items: center;\n}\n\n.lds-roller {\n transform: scale(0.5);\n display: inline-block;\n position: relative;\n width: 80px;\n height: 80px;\n}\n.lds-roller div {\n animation: lds-roller 1.2s cubic-bezier(0.5, 0, 0.5, 1) infinite;\n transform-origin: 40px 40px;\n}\n.lds-roller div:after {\n content: ' ';\n display: block;\n position: absolute;\n width: 7px;\n height: 7px;\n border-radius: 50%;\n background: rgb(116, 116, 116);\n margin: -4px 0 0 -4px;\n}\n.lds-roller div:nth-child(1) {\n animation-delay: -0.036s;\n}\n.lds-roller div:nth-child(1):after {\n top: 63px;\n left: 63px;\n}\n.lds-roller div:nth-child(2) {\n animation-delay: -0.072s;\n}\n.lds-roller div:nth-child(2):after {\n top: 68px;\n left: 56px;\n}\n.lds-roller div:nth-child(3) {\n animation-delay: -0.108s;\n}\n.lds-roller div:nth-child(3):after {\n top: 71px;\n left: 48px;\n}\n.lds-roller div:nth-child(4) {\n animation-delay: -0.144s;\n}\n.lds-roller div:nth-child(4):after {\n top: 72px;\n left: 40px;\n}\n.lds-roller div:nth-child(5) {\n animation-delay: -0.18s;\n}\n.lds-roller div:nth-child(5):after {\n top: 71px;\n left: 32px;\n}\n.lds-roller div:nth-child(6) {\n animation-delay: -0.216s;\n}\n.lds-roller div:nth-child(6):after {\n top: 68px;\n left: 24px;\n}\n.lds-roller div:nth-child(7) {\n animation-delay: -0.252s;\n}\n.lds-roller div:nth-child(7):after {\n top: 63px;\n left: 17px;\n}\n.lds-roller div:nth-child(8) {\n animation-delay: -0.288s;\n}\n.lds-roller div:nth-child(8):after {\n top: 56px;\n left: 12px;\n}\n@keyframes lds-roller {\n 0% {\n transform: rotate(0deg);\n }\n 100% {\n transform: rotate(360deg);\n }\n}\n</style>\n","export const nodeNameTagNameMap = new Map([\n ['bullet_list', 'ul'],\n ['button', 'button'],\n ['citation', 'cite'],\n ['definition', 'dd'],\n ['definition_list', 'dl'],\n ['definition_list_item', 'dt'],\n ['div', 'div'],\n ['emphasis', 'em'],\n ['enumerated_list', 'ol'],\n ['glossary', 'div'],\n ['inline', 'span'],\n ['label', 'span'],\n ['list_item', 'li'],\n ['line', 'p'],\n ['paragraph', 'p'],\n ['rubric', 'h3'],\n ['strong', 'strong'],\n ['subscript', 'sub'],\n ['superscript', 'sup'],\n ['table', 'table'],\n ['tbody', 'tbody'],\n ['entry', 'td'],\n ['row', 'tr'],\n ['thead', 'thead'],\n ['term', 'dt'],\n ['title_reference', 'cite'],\n])\n\nexport const nodeNameTemplateNameMap = new Map([\n ['#text', 'Text'],\n ['block_quote', 'BlockQuote'],\n ['caption', 'FigureCaption'],\n ['caption_number', 'CaptionNumber'],\n ['download_reference', 'DownloadReference'],\n ['footnote_reference', 'FootnoteReference'],\n ['index', 'Skip'],\n ['line_block', 'LineBlock'],\n ['literal_block', 'LiteralBlock'],\n ['math_block', 'MathBlock'],\n ['number_reference', 'NumberReference'],\n])\n","import { computed, defineAsyncComponent } from 'vue'\n\nimport ErrorComponent from '../components/Error.vue'\nimport LoadingComponent from '../components/Loading.vue'\nimport { nodeNameTagNameMap, nodeNameTemplateNameMap } from '../js/nodemap'\n\nfunction defineChildComponent(name, node) {\n let properties = undefined\n if (node.nodeName === '#text') {\n if (!node.nodeValue.trim()) {\n return null\n }\n properties = {\n text: node.nodeValue,\n }\n } else if (node.nodeName === 'warning') {\n let parentNode = node.parentNode\n let depth = 0\n while (parentNode) {\n if (parentNode.nodeName === 'section') {\n depth += 1\n }\n parentNode = parentNode.parentNode\n }\n properties = {\n depth\n }\n } else if (node.nodeName === 'title') {\n let parentNode = node.parentNode\n let depth = 0\n let isTopic = false\n if (parentNode.nodeName === 'topic') {\n isTopic = true\n } else {\n while (parentNode) {\n // && parentNode.nodeName !== ('SphinxPage' should now be 'document' but maybe this is no longer requied).\n if (parentNode.nodeName === 'section') {\n depth += 1\n }\n parentNode = parentNode.parentNode\n }\n }\n properties = {\n depth,\n isTopic,\n }\n }\n const component = defineAsyncComponent({\n loader: () => {\n return import(`../components/templates/${name}.vue`)\n },\n // A component to use while the async component is loading\n loadingComponent: LoadingComponent,\n // A component to use if the load fails\n errorComponent: ErrorComponent,\n })\n\n return {\n component,\n name,\n node,\n properties,\n }\n}\n\nfunction defineColgroupComponent(node, colspecs) {\n const name = 'ColumnGroup'\n const component = defineAsyncComponent({\n loader: () => {\n return import(`../components/templates/${name}.vue`)\n },\n // A component to use while the async component is loading\n loadingComponent: LoadingComponent,\n // A component to use if the load fails\n errorComponent: ErrorComponent,\n })\n \n const properties = {\n colspecs\n }\n\n return {\n component,\n name,\n node,\n properties,\n }\n}\n\nfunction mapToComponentName(name) {\n let componentName =\n name.charAt(0).toUpperCase() + name.slice(1)\n if (nodeNameTemplateNameMap.has(name)) {\n componentName = nodeNameTemplateNameMap.get(name)\n } else if (nodeNameTagNameMap.has(name)) {\n componentName = 'StandardElement'\n }\nreturn componentName\n}\n\nfunction addTGroup(components, node, columns) {\n if (node === null) {\n return components\n }\n\n let colspecs = []\n for (const colspec of node.querySelectorAll('colspec')) {\n colspecs.push(colspec.getAttribute('colwidth'))\n }\n\n if (colspecs.length !== columns) {\n console.log('***** Something is not right. *****', colspecs.length, columns)\n }\n components.push(defineColgroupComponent(node, colspecs))\n\n return components\n}\n\nfunction addComponents(components, node) {\n if (node === null) {\n return components\n }\n\n let childTarget = null\n for (const child of node.childNodes) {\n const childName = child.nodeName\n if (childName === 'compact_paragraph') {\n // Skip over this wrapper and directly add its children to this component.\n components = addComponents(components, child)\n } else if (childName === 'tgroup') {\n // Skip over these wrappers and directly add their children to this component.\n const columnCount = Number(child.getAttribute('cols'))\n components = addTGroup(components, child, columnCount)\n components = addComponents(components, child)\n } else if (childName === 'colspec') {\n // Ignore this element completely, this element is dealt with by 'tgroup'.\n } else {\n if (childName === 'target') {\n childTarget = child.getAttribute('refid')\n } else {\n if (childName !== '#text' && childTarget) {\n child.setAttribute('id', childTarget)\n childTarget = ''\n }\n const componentName = mapToComponentName(childName)\n const item = defineChildComponent(componentName, child)\n if (item) {\n components.push(item)\n }\n }\n }\n }\n\n return components\n}\n\nexport function useChildren(element) {\n const children = computed(() => {\n return addComponents([], element.value)\n })\n\n return {\n children,\n }\n}\n\nexport function useClasses(element) {\n const classes = computed(() => {\n let classesString = element.value.getAttribute('classes')\n let classes = []\n if (classesString) {\n classes = classesString.split(' ')\n }\n return [element.value.nodeName.toLowerCase(), ...classes]\n })\n\n return {\n classes\n }\n}\n"],"mappings":";;;;;;;;;;;;;;yBACE,EAGM,OAAA,MAAA,CAFJ,EAA8D,MAAA,MAA1D,eAAU,EAAG,EAAA,aAAa,IAAG,4BAAwB,CAAA,GAAA,AAAA,EAAA,OACzD,EAAkD,QAAA,MAA5C,yCAAqC,EAAA,CAAA,CAAA;;;;;;;;;;;;;yBCF7C,EAYM,OAZN,GAYM,CAAA,GAAA,AAAA,EAAA,OAAA,CAXJ,EAAmC,QAAA,MAA7B,0BAAsB,EAAA,GAC5B,EASO,QAAA,EATD,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1D,CAGE,EACF;AACF"}
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
import { r as e } from "./utilities-RjHWUaCa.mjs";
|
|
2
|
+
//#region src/composables/methods.js
|
|
3
|
+
var t = (e) => {
|
|
4
|
+
for (let t in e) return !1;
|
|
5
|
+
return !0;
|
|
6
|
+
}, n = () => {
|
|
7
|
+
let n = (e) => {
|
|
8
|
+
let t = e.indexOf("active");
|
|
9
|
+
t === -1 ? (t = e.indexOf("inactive"), t !== -1 && (e[t] = "active")) : e[t] = "inactive";
|
|
10
|
+
}, r = (e, t) => {
|
|
11
|
+
let n = e.getAttribute("ids");
|
|
12
|
+
if (n !== null) {
|
|
13
|
+
let e = n.split(" "), r = e.indexOf(t);
|
|
14
|
+
return t && r !== -1 && (e.splice(r, 1), e.unshift(t)), {
|
|
15
|
+
id: e.shift(),
|
|
16
|
+
extraIds: e
|
|
17
|
+
};
|
|
18
|
+
}
|
|
19
|
+
return {};
|
|
20
|
+
}, i = (e, n) => {
|
|
21
|
+
let r = {}, i = [...e.classList];
|
|
22
|
+
n && (i = i.concat(n));
|
|
23
|
+
let s = o(e), c = a(e);
|
|
24
|
+
return i.length && (r.class = i), (!t(c) || !t(s)) && (r.attrs = {
|
|
25
|
+
...s,
|
|
26
|
+
...c
|
|
27
|
+
}), r;
|
|
28
|
+
}, a = (e) => {
|
|
29
|
+
let t = [
|
|
30
|
+
"uri",
|
|
31
|
+
"ids",
|
|
32
|
+
"names",
|
|
33
|
+
"candidates",
|
|
34
|
+
"classes"
|
|
35
|
+
], n = ["width"], r = "", i = {};
|
|
36
|
+
for (let a of e.attributes) n.includes(a.name) ? r += `${a.name}: ${a.value};` : t.includes(a.name) || (i[a.name] = a.value);
|
|
37
|
+
return r && (i.style = r), i;
|
|
38
|
+
}, o = (e) => {
|
|
39
|
+
let t = e.getAttribute("id");
|
|
40
|
+
return t ? { id: t } : e.getAttribute("ids") && e.getAttribute("ids").length > 0 ? { id: e.getAttribute("ids").split(" ")[0] } : {};
|
|
41
|
+
}, s = (e) => {
|
|
42
|
+
let t = e.getAttribute("refuri").split("#")[1];
|
|
43
|
+
return t ? "#" + t : "";
|
|
44
|
+
}, c = (t, n) => {
|
|
45
|
+
let r = e(n), i = t.getAttribute("refuri").split("/"), a = n.path.replace(r, "").split("/");
|
|
46
|
+
a.shift(), n.path !== r && a.pop();
|
|
47
|
+
let o = i.pop().split("#")[0];
|
|
48
|
+
for (; i[0] === "..";) i.shift(), a.pop();
|
|
49
|
+
return [
|
|
50
|
+
...a,
|
|
51
|
+
...i,
|
|
52
|
+
o
|
|
53
|
+
].join("/");
|
|
54
|
+
}, l = (e) => {
|
|
55
|
+
let t = e.getAttribute("internal");
|
|
56
|
+
return t && (t.toLowerCase() === "true" || t === "1") || u(e);
|
|
57
|
+
}, u = (e) => e.hasAttribute("refid");
|
|
58
|
+
return {
|
|
59
|
+
dataObject: i,
|
|
60
|
+
determinePageLocation: s,
|
|
61
|
+
determinePageName: c,
|
|
62
|
+
extractId: o,
|
|
63
|
+
isInternalReference: l,
|
|
64
|
+
isReferenceToCurrentPage: u,
|
|
65
|
+
parentLevelsInRefURI: (e) => {
|
|
66
|
+
let t = e.getAttribute("refuri").split("/"), n = 0;
|
|
67
|
+
for (; t[0] === "..";) t.shift(), n++;
|
|
68
|
+
return n;
|
|
69
|
+
},
|
|
70
|
+
separateIds: r,
|
|
71
|
+
toggleActiveClass: n
|
|
72
|
+
};
|
|
73
|
+
};
|
|
74
|
+
//#endregion
|
|
75
|
+
export { n as t };
|
|
76
|
+
|
|
77
|
+
//# sourceMappingURL=methods-D1vA1pFT.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"methods-D1vA1pFT.mjs","names":[],"sources":["../src/composables/methods.js"],"sourcesContent":["import { determineRouteUrl } from '../js/utilities'\n\nconst isEmpty = (d) => {\n for (const i in d) {\n return false\n }\n\n return true\n}\n\nexport const useMethods = () => {\n const toggleActiveClass = (classList) => {\n let index = classList.indexOf('active')\n\n if (index !== -1) {\n classList[index] = 'inactive'\n } else {\n index = classList.indexOf('inactive')\n if (index !== -1) {\n classList[index] = 'active'\n }\n }\n }\n\n const separateIds = (element, targetId) => {\n const ids = element.getAttribute('ids')\n if (ids !== null) {\n let splitIds = ids.split(' ')\n const targetIndex = splitIds.indexOf(targetId)\n if (targetId && targetIndex !== -1) {\n splitIds.splice(targetIndex, 1)\n splitIds.unshift(targetId)\n }\n return { id: splitIds.shift(), extraIds: splitIds }\n }\n return {}\n }\n\n const dataObject = (element, additionalClasses) => {\n let dO = {}\n\n let classes = [...element.classList]\n if (additionalClasses) {\n classes = classes.concat(additionalClasses)\n }\n\n const id = extractId(element)\n const attributes = extractAttributes(element)\n\n if (classes.length) {\n dO['class'] = classes\n }\n if (!isEmpty(attributes) || !isEmpty(id)) {\n dO['attrs'] = {\n ...id,\n ...attributes,\n }\n }\n\n return dO\n }\n\n const extractAttributes = (element) => {\n const unrequiredAttrs = ['uri', 'ids', 'names', 'candidates', 'classes']\n const styleAttrs = ['width']\n let style = ''\n let attrDict = {}\n for (const attr of element.attributes) {\n if (styleAttrs.includes(attr.name)) {\n style += `${attr.name}: ${attr.value};`\n } else if (!unrequiredAttrs.includes(attr.name)) {\n attrDict[attr.name] = attr.value\n }\n }\n if (style) {\n attrDict.style = style\n }\n return attrDict\n }\n\n const extractId = (element) => {\n // Inserting the id of the first term in a collection as the contents of the item.\n const id = element.getAttribute('id')\n if (id) {\n return { id }\n }\n if (element.getAttribute('ids') && element.getAttribute('ids').length > 0) {\n const ids = element.getAttribute('ids').split(' ')\n const id = ids[0]\n return {\n id,\n }\n }\n return {}\n }\n\n const determinePageLocation = (element) => {\n const elementRefUri = element.getAttribute('refuri')\n const hash = elementRefUri.split('#')[1]\n return hash ? '#' + hash : ''\n }\n\n const determinePageName = (element, route) => {\n const baseRefUri = determineRouteUrl(route)\n const elementRefUri = element.getAttribute('refuri')\n // Remove page from reference uri\n let splitRefUri = elementRefUri.split('/')\n let routePath = route.path.replace(baseRefUri, '')\n // Remove the baseRefUri and make that our root location\n let splitRoutePath = routePath.split('/')\n // Remove the empty string from the beginning of the array\n splitRoutePath.shift()\n if (route.path !== baseRefUri) {\n // The base reference uri is a special case usually we have to\n // remove the page name from the route as well.\n splitRoutePath.pop()\n }\n // Get the file name from the reference uri\n const filePart = splitRefUri.pop()\n const fileBaseName = filePart.split('#')[0]\n // Remove up route if parent directory name found\n while (splitRefUri[0] === '..') {\n splitRefUri.shift()\n splitRoutePath.pop()\n }\n return [...splitRoutePath, ...splitRefUri, fileBaseName].join('/')\n }\n\n const isInternalReference = (element) => {\n const value = element.getAttribute('internal')\n const internal = value && (value.toLowerCase() === 'true' || value === '1')\n return internal || isReferenceToCurrentPage(element)\n }\n\n const isReferenceToCurrentPage = (element) => {\n return element.hasAttribute('refid')\n }\n\n const parentLevelsInRefURI = (element) => {\n let splitRefUri = element.getAttribute('refuri').split('/')\n let count = 0\n while (splitRefUri[0] === '..') {\n splitRefUri.shift()\n count++\n }\n\n return count\n }\n\n return {\n dataObject,\n determinePageLocation,\n determinePageName,\n extractId,\n isInternalReference,\n isReferenceToCurrentPage,\n parentLevelsInRefURI,\n separateIds,\n toggleActiveClass,\n }\n}\n"],"mappings":";;AAEA,IAAM,KAAW,MAAM;CACrB,KAAK,IAAM,KAAK,GACd,OAAO;CAGT,OAAO;AACT,GAEa,UAAmB;CAC9B,IAAM,KAAqB,MAAc;EACvC,IAAI,IAAQ,EAAU,QAAQ,QAAQ;EAEtC,AAAI,MAAU,MAGZ,IAAQ,EAAU,QAAQ,UAAU,GAChC,MAAU,OACZ,EAAU,KAAS,aAJrB,EAAU,KAAS;CAOvB,GAEM,KAAe,GAAS,MAAa;EACzC,IAAM,IAAM,EAAQ,aAAa,KAAK;EACtC,IAAI,MAAQ,MAAM;GAChB,IAAI,IAAW,EAAI,MAAM,GAAG,GACtB,IAAc,EAAS,QAAQ,CAAQ;GAK7C,OAJI,KAAY,MAAgB,OAC9B,EAAS,OAAO,GAAa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