@oxide/react-asciidoc 1.3.0 → 2.0.0--canary.54.26631847614.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.
@@ -1,10 +1,10 @@
1
- import Ae, { Fragment as se, createElement as C, createContext as Se, useContext as ve } from "react";
2
- import h from "html-react-parser";
3
- import { default as kr } from "html-react-parser";
4
- function Te(e) {
5
- return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
1
+ import Ft, { useContext as yt, Fragment as jt, createElement as bt, createContext as Bt } from "react";
2
+ import lt from "html-react-parser";
3
+ import { default as us } from "html-react-parser";
4
+ function zt(t) {
5
+ return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
6
6
  }
7
- var M = { exports: {} }, V = {};
7
+ var pt = { exports: {} }, st = {};
8
8
  /**
9
9
  * @license React
10
10
  * react-jsx-runtime.production.js
@@ -14,29 +14,29 @@ var M = { exports: {} }, V = {};
14
14
  * This source code is licensed under the MIT license found in the
15
15
  * LICENSE file in the root directory of this source tree.
16
16
  */
17
- var de;
18
- function Re() {
19
- if (de) return V;
20
- de = 1;
21
- var e = Symbol.for("react.transitional.element"), t = Symbol.for("react.fragment");
22
- function s(n, l, o) {
17
+ var wt;
18
+ function Ut() {
19
+ if (wt) return st;
20
+ wt = 1;
21
+ var t = Symbol.for("react.transitional.element"), e = Symbol.for("react.fragment");
22
+ function s(n, i, l) {
23
23
  var a = null;
24
- if (o !== void 0 && (a = "" + o), l.key !== void 0 && (a = "" + l.key), "key" in l) {
25
- o = {};
26
- for (var c in l)
27
- c !== "key" && (o[c] = l[c]);
28
- } else o = l;
29
- return l = o.ref, {
30
- $$typeof: e,
24
+ if (l !== void 0 && (a = "" + l), i.key !== void 0 && (a = "" + i.key), "key" in i) {
25
+ l = {};
26
+ for (var c in i)
27
+ c !== "key" && (l[c] = i[c]);
28
+ } else l = i;
29
+ return i = l.ref, {
30
+ $$typeof: t,
31
31
  type: n,
32
32
  key: a,
33
- ref: l !== void 0 ? l : null,
34
- props: o
33
+ ref: i !== void 0 ? i : null,
34
+ props: l
35
35
  };
36
36
  }
37
- return V.Fragment = t, V.jsx = s, V.jsxs = s, V;
37
+ return st.Fragment = e, st.jsx = s, st.jsxs = s, st;
38
38
  }
39
- var H = {};
39
+ var rt = {};
40
40
  /**
41
41
  * @license React
42
42
  * react-jsx-runtime.development.js
@@ -46,616 +46,1782 @@ var H = {};
46
46
  * This source code is licensed under the MIT license found in the
47
47
  * LICENSE file in the root directory of this source tree.
48
48
  */
49
- var ge;
50
- function Le() {
51
- return ge || (ge = 1, process.env.NODE_ENV !== "production" && (function() {
52
- function e(i) {
53
- if (i == null) return null;
54
- if (typeof i == "function")
55
- return i.$$typeof === qe ? null : i.displayName || i.name || null;
56
- if (typeof i == "string") return i;
57
- switch (i) {
58
- case v:
59
- return "Fragment";
49
+ var _t;
50
+ function Dt() {
51
+ return _t || (_t = 1, process.env.NODE_ENV !== "production" && (function() {
52
+ function t(p) {
53
+ if (p == null) return null;
54
+ if (typeof p == "function")
55
+ return p.$$typeof === F ? null : p.displayName || p.name || null;
56
+ if (typeof p == "string") return p;
57
+ switch (p) {
60
58
  case $:
59
+ return "Fragment";
60
+ case o:
61
61
  return "Profiler";
62
- case U:
62
+ case _:
63
63
  return "StrictMode";
64
- case G:
64
+ case H:
65
65
  return "Suspense";
66
- case je:
66
+ case q:
67
67
  return "SuspenseList";
68
- case ye:
68
+ case w:
69
69
  return "Activity";
70
70
  }
71
- if (typeof i == "object")
72
- switch (typeof i.tag == "number" && console.error(
71
+ if (typeof p == "object")
72
+ switch (typeof p.tag == "number" && console.error(
73
73
  "Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."
74
- ), i.$$typeof) {
75
- case N:
74
+ ), p.$$typeof) {
75
+ case j:
76
76
  return "Portal";
77
- case L:
78
- return (i.displayName || "Context") + ".Provider";
79
- case R:
80
- return (i._context.displayName || "Context") + ".Consumer";
81
- case B:
82
- var d = i.render;
83
- return i = i.displayName, i || (i = d.displayName || d.name || "", i = i !== "" ? "ForwardRef(" + i + ")" : "ForwardRef"), i;
84
- case Ne:
85
- return d = i.displayName || null, d !== null ? d : e(i.type) || "Memo";
86
- case le:
87
- d = i._payload, i = i._init;
77
+ case v:
78
+ return p.displayName || "Context";
79
+ case f:
80
+ return (p._context.displayName || "Context") + ".Consumer";
81
+ case T:
82
+ var S = p.render;
83
+ return p = p.displayName, p || (p = S.displayName || S.name || "", p = p !== "" ? "ForwardRef(" + p + ")" : "ForwardRef"), p;
84
+ case k:
85
+ return S = p.displayName || null, S !== null ? S : t(p.type) || "Memo";
86
+ case y:
87
+ S = p._payload, p = p._init;
88
88
  try {
89
- return e(i(d));
89
+ return t(p(S));
90
90
  } catch {
91
91
  }
92
92
  }
93
93
  return null;
94
94
  }
95
- function t(i) {
96
- return "" + i;
95
+ function e(p) {
96
+ return "" + p;
97
97
  }
98
- function s(i) {
98
+ function s(p) {
99
99
  try {
100
- t(i);
101
- var d = !1;
100
+ e(p);
101
+ var S = !1;
102
102
  } catch {
103
- d = !0;
103
+ S = !0;
104
104
  }
105
- if (d) {
106
- d = console;
107
- var b = d.error, y = typeof Symbol == "function" && Symbol.toStringTag && i[Symbol.toStringTag] || i.constructor.name || "Object";
108
- return b.call(
109
- d,
105
+ if (S) {
106
+ S = console;
107
+ var I = S.error, C = typeof Symbol == "function" && Symbol.toStringTag && p[Symbol.toStringTag] || p.constructor.name || "Object";
108
+ return I.call(
109
+ S,
110
110
  "The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",
111
- y
112
- ), t(i);
111
+ C
112
+ ), e(p);
113
113
  }
114
114
  }
115
- function n(i) {
116
- if (i === v) return "<>";
117
- if (typeof i == "object" && i !== null && i.$$typeof === le)
115
+ function n(p) {
116
+ if (p === $) return "<>";
117
+ if (typeof p == "object" && p !== null && p.$$typeof === y)
118
118
  return "<...>";
119
119
  try {
120
- var d = e(i);
121
- return d ? "<" + d + ">" : "<...>";
120
+ var S = t(p);
121
+ return S ? "<" + S + ">" : "<...>";
122
122
  } catch {
123
123
  return "<...>";
124
124
  }
125
125
  }
126
- function l() {
127
- var i = W.A;
128
- return i === null ? null : i.getOwner();
126
+ function i() {
127
+ var p = Z.A;
128
+ return p === null ? null : p.getOwner();
129
129
  }
130
- function o() {
130
+ function l() {
131
131
  return Error("react-stack-top-frame");
132
132
  }
133
- function a(i) {
134
- if (ne.call(i, "key")) {
135
- var d = Object.getOwnPropertyDescriptor(i, "key").get;
136
- if (d && d.isReactWarning) return !1;
133
+ function a(p) {
134
+ if (et.call(p, "key")) {
135
+ var S = Object.getOwnPropertyDescriptor(p, "key").get;
136
+ if (S && S.isReactWarning) return !1;
137
137
  }
138
- return i.key !== void 0;
138
+ return p.key !== void 0;
139
139
  }
140
- function c(i, d) {
141
- function b() {
142
- oe || (oe = !0, console.error(
140
+ function c(p, S) {
141
+ function I() {
142
+ ct || (ct = !0, console.error(
143
143
  "%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://react.dev/link/special-props)",
144
- d
144
+ S
145
145
  ));
146
146
  }
147
- b.isReactWarning = !0, Object.defineProperty(i, "key", {
148
- get: b,
147
+ I.isReactWarning = !0, Object.defineProperty(p, "key", {
148
+ get: I,
149
149
  configurable: !0
150
150
  });
151
151
  }
152
- function p() {
153
- var i = e(this.type);
154
- return ce[i] || (ce[i] = !0, console.error(
152
+ function m() {
153
+ var p = t(this.type);
154
+ return ot[p] || (ot[p] = !0, console.error(
155
155
  "Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release."
156
- )), i = this.props.ref, i !== void 0 ? i : null;
157
- }
158
- function j(i, d, b, y, S, k, Z, X) {
159
- return b = k.ref, i = {
160
- $$typeof: x,
161
- type: i,
162
- key: d,
163
- props: k,
164
- _owner: S
165
- }, (b !== void 0 ? b : null) !== null ? Object.defineProperty(i, "ref", {
156
+ )), p = this.props.ref, p !== void 0 ? p : null;
157
+ }
158
+ function x(p, S, I, C, ut, ht) {
159
+ var M = I.ref;
160
+ return p = {
161
+ $$typeof: h,
162
+ type: p,
163
+ key: S,
164
+ props: I,
165
+ _owner: C
166
+ }, (M !== void 0 ? M : null) !== null ? Object.defineProperty(p, "ref", {
166
167
  enumerable: !1,
167
- get: p
168
- }) : Object.defineProperty(i, "ref", { enumerable: !1, value: null }), i._store = {}, Object.defineProperty(i._store, "validated", {
168
+ get: m
169
+ }) : Object.defineProperty(p, "ref", { enumerable: !1, value: null }), p._store = {}, Object.defineProperty(p._store, "validated", {
169
170
  configurable: !1,
170
171
  enumerable: !1,
171
172
  writable: !0,
172
173
  value: 0
173
- }), Object.defineProperty(i, "_debugInfo", {
174
+ }), Object.defineProperty(p, "_debugInfo", {
174
175
  configurable: !1,
175
176
  enumerable: !1,
176
177
  writable: !0,
177
178
  value: null
178
- }), Object.defineProperty(i, "_debugStack", {
179
+ }), Object.defineProperty(p, "_debugStack", {
179
180
  configurable: !1,
180
181
  enumerable: !1,
181
182
  writable: !0,
182
- value: Z
183
- }), Object.defineProperty(i, "_debugTask", {
183
+ value: ut
184
+ }), Object.defineProperty(p, "_debugTask", {
184
185
  configurable: !1,
185
186
  enumerable: !1,
186
187
  writable: !0,
187
- value: X
188
- }), Object.freeze && (Object.freeze(i.props), Object.freeze(i)), i;
189
- }
190
- function g(i, d, b, y, S, k, Z, X) {
191
- var q = d.children;
192
- if (q !== void 0)
193
- if (y)
194
- if (Ee(q)) {
195
- for (y = 0; y < q.length; y++)
196
- u(q[y]);
197
- Object.freeze && Object.freeze(q);
188
+ value: ht
189
+ }), Object.freeze && (Object.freeze(p.props), Object.freeze(p)), p;
190
+ }
191
+ function g(p, S, I, C, ut, ht) {
192
+ var M = S.children;
193
+ if (M !== void 0)
194
+ if (C)
195
+ if (at(M)) {
196
+ for (C = 0; C < M.length; C++)
197
+ b(M[C]);
198
+ Object.freeze && Object.freeze(M);
198
199
  } else
199
200
  console.error(
200
201
  "React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead."
201
202
  );
202
- else u(q);
203
- if (ne.call(d, "key")) {
204
- q = e(i);
205
- var D = Object.keys(d).filter(function(ke) {
206
- return ke !== "key";
203
+ else b(M);
204
+ if (et.call(S, "key")) {
205
+ M = t(p);
206
+ var X = Object.keys(S).filter(function(qt) {
207
+ return qt !== "key";
207
208
  });
208
- y = 0 < D.length ? "{key: someKey, " + D.join(": ..., ") + ": ...}" : "{key: someKey}", me[q + y] || (D = 0 < D.length ? "{" + D.join(": ..., ") + ": ...}" : "{}", console.error(
209
+ C = 0 < X.length ? "{key: someKey, " + X.join(": ..., ") + ": ...}" : "{key: someKey}", St[M + C] || (X = 0 < X.length ? "{" + X.join(": ..., ") + ": ...}" : "{}", console.error(
209
210
  `A props object containing a "key" prop is being spread into JSX:
210
211
  let props = %s;
211
212
  <%s {...props} />
212
213
  React keys must be passed directly to JSX without using spread:
213
214
  let props = %s;
214
215
  <%s key={someKey} {...props} />`,
215
- y,
216
- q,
217
- D,
218
- q
219
- ), me[q + y] = !0);
216
+ C,
217
+ M,
218
+ X,
219
+ M
220
+ ), St[M + C] = !0);
220
221
  }
221
- if (q = null, b !== void 0 && (s(b), q = "" + b), a(d) && (s(d.key), q = "" + d.key), "key" in d) {
222
- b = {};
223
- for (var Q in d)
224
- Q !== "key" && (b[Q] = d[Q]);
225
- } else b = d;
226
- return q && c(
227
- b,
228
- typeof i == "function" ? i.displayName || i.name || "Unknown" : i
229
- ), j(
230
- i,
231
- q,
232
- k,
233
- S,
234
- l(),
235
- b,
236
- Z,
237
- X
222
+ if (M = null, I !== void 0 && (s(I), M = "" + I), a(S) && (s(S.key), M = "" + S.key), "key" in S) {
223
+ I = {};
224
+ for (var mt in S)
225
+ mt !== "key" && (I[mt] = S[mt]);
226
+ } else I = S;
227
+ return M && c(
228
+ I,
229
+ typeof p == "function" ? p.displayName || p.name || "Unknown" : p
230
+ ), x(
231
+ p,
232
+ M,
233
+ I,
234
+ i(),
235
+ ut,
236
+ ht
238
237
  );
239
238
  }
240
- function u(i) {
241
- typeof i == "object" && i !== null && i.$$typeof === x && i._store && (i._store.validated = 1);
239
+ function b(p) {
240
+ u(p) ? p._store && (p._store.validated = 1) : typeof p == "object" && p !== null && p.$$typeof === y && (p._payload.status === "fulfilled" ? u(p._payload.value) && p._payload.value._store && (p._payload.value._store.validated = 1) : p._store && (p._store.validated = 1));
242
241
  }
243
- var m = Ae, x = Symbol.for("react.transitional.element"), N = Symbol.for("react.portal"), v = Symbol.for("react.fragment"), U = Symbol.for("react.strict_mode"), $ = Symbol.for("react.profiler"), R = Symbol.for("react.consumer"), L = Symbol.for("react.context"), B = Symbol.for("react.forward_ref"), G = Symbol.for("react.suspense"), je = Symbol.for("react.suspense_list"), Ne = Symbol.for("react.memo"), le = Symbol.for("react.lazy"), ye = Symbol.for("react.activity"), qe = Symbol.for("react.client.reference"), W = m.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, ne = Object.prototype.hasOwnProperty, Ee = Array.isArray, J = console.createTask ? console.createTask : function() {
242
+ function u(p) {
243
+ return typeof p == "object" && p !== null && p.$$typeof === h;
244
+ }
245
+ var d = Ft, h = Symbol.for("react.transitional.element"), j = Symbol.for("react.portal"), $ = Symbol.for("react.fragment"), _ = Symbol.for("react.strict_mode"), o = Symbol.for("react.profiler"), f = Symbol.for("react.consumer"), v = Symbol.for("react.context"), T = Symbol.for("react.forward_ref"), H = Symbol.for("react.suspense"), q = Symbol.for("react.suspense_list"), k = Symbol.for("react.memo"), y = Symbol.for("react.lazy"), w = Symbol.for("react.activity"), F = Symbol.for("react.client.reference"), Z = d.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, et = Object.prototype.hasOwnProperty, at = Array.isArray, B = console.createTask ? console.createTask : function() {
244
246
  return null;
245
247
  };
246
- m = {
247
- react_stack_bottom_frame: function(i) {
248
- return i();
248
+ d = {
249
+ react_stack_bottom_frame: function(p) {
250
+ return p();
249
251
  }
250
252
  };
251
- var oe, ce = {}, ue = m.react_stack_bottom_frame.bind(
252
- m,
253
- o
254
- )(), pe = J(n(o)), me = {};
255
- H.Fragment = v, H.jsx = function(i, d, b, y, S) {
256
- var k = 1e4 > W.recentlyCreatedOwnerStacks++;
253
+ var ct, ot = {}, vt = d.react_stack_bottom_frame.bind(
254
+ d,
255
+ l
256
+ )(), $t = B(n(l)), St = {};
257
+ rt.Fragment = $, rt.jsx = function(p, S, I) {
258
+ var C = 1e4 > Z.recentlyCreatedOwnerStacks++;
257
259
  return g(
258
- i,
259
- d,
260
- b,
261
- !1,
262
- y,
260
+ p,
263
261
  S,
264
- k ? Error("react-stack-top-frame") : ue,
265
- k ? J(n(i)) : pe
262
+ I,
263
+ !1,
264
+ C ? Error("react-stack-top-frame") : vt,
265
+ C ? B(n(p)) : $t
266
266
  );
267
- }, H.jsxs = function(i, d, b, y, S) {
268
- var k = 1e4 > W.recentlyCreatedOwnerStacks++;
267
+ }, rt.jsxs = function(p, S, I) {
268
+ var C = 1e4 > Z.recentlyCreatedOwnerStacks++;
269
269
  return g(
270
- i,
271
- d,
272
- b,
273
- !0,
274
- y,
270
+ p,
275
271
  S,
276
- k ? Error("react-stack-top-frame") : ue,
277
- k ? J(n(i)) : pe
272
+ I,
273
+ !0,
274
+ C ? Error("react-stack-top-frame") : vt,
275
+ C ? B(n(p)) : $t
278
276
  );
279
277
  };
280
- })()), H;
278
+ })()), rt;
281
279
  }
282
- var he;
283
- function De() {
284
- return he || (he = 1, process.env.NODE_ENV === "production" ? M.exports = Re() : M.exports = Le()), M.exports;
280
+ var Nt;
281
+ function Yt() {
282
+ return Nt || (Nt = 1, process.env.NODE_ENV === "production" ? pt.exports = Ut() : pt.exports = Dt()), pt.exports;
285
283
  }
286
- var r = De();
287
- const w = ({ text: e }) => e ? /* @__PURE__ */ r.jsx("div", { className: "title", children: h(e) }) : null, Ce = ({ node: e }) => {
288
- const { document: t } = T(), s = t.attributes || {}, n = e.attributes, l = () => s.icons === "font" && !n.icon ? /* @__PURE__ */ r.jsx("i", { className: `fa icon-${n.name}`, title: `${n.textlabel}` }) : /* @__PURE__ */ r.jsx("img", { src: e.iconUri, alt: `${n.textlabel}` });
289
- return /* @__PURE__ */ r.jsx(
290
- "div",
284
+ var r = Yt();
285
+ const W = "A-Za-z0-9_", z = `[${W}]`, A = "[\\s\\S]", R = "\\[([^\\[\\]]+)\\]", Tt = {
286
+ nonCompat: [
287
+ {
288
+ type: "strong",
289
+ scope: "unconstrained",
290
+ rx: new RegExp(
291
+ `\\\\?(?:${R})?\\*\\*(${A}+?)\\*\\*`,
292
+ "m"
293
+ )
294
+ },
295
+ {
296
+ type: "strong",
297
+ scope: "constrained",
298
+ rx: new RegExp(
299
+ `(^|[^${W};:}])(?:${R})?\\*(\\S|\\S${A}*?\\S)\\*(?!${z})`,
300
+ "m"
301
+ )
302
+ },
303
+ {
304
+ type: "double",
305
+ scope: "constrained",
306
+ rx: new RegExp(
307
+ `(^|[^${W};:}])(?:${R})?"\`(\\S|\\S${A}*?\\S)\`"(?!${z})`,
308
+ "m"
309
+ )
310
+ },
311
+ {
312
+ type: "single",
313
+ scope: "constrained",
314
+ rx: new RegExp(
315
+ `(^|[^${W};:\`}])(?:${R})?'\`(\\S|\\S${A}*?\\S)\`'(?!${z})`,
316
+ "m"
317
+ )
318
+ },
319
+ {
320
+ type: "monospaced",
321
+ scope: "unconstrained",
322
+ rx: new RegExp(
323
+ `\\\\?(?:${R})?\`\`(${A}+?)\`\``,
324
+ "m"
325
+ )
326
+ },
327
+ {
328
+ type: "monospaced",
329
+ scope: "constrained",
330
+ rx: new RegExp(
331
+ `(^|[^${W};:"'\`}])(?:${R})?\`(\\S|\\S${A}*?\\S)\`(?!["'\`${W}])`,
332
+ "m"
333
+ )
334
+ },
335
+ {
336
+ type: "emphasis",
337
+ scope: "unconstrained",
338
+ rx: new RegExp(
339
+ `\\\\?(?:${R})?__(${A}+?)__`,
340
+ "m"
341
+ )
342
+ },
291
343
  {
292
- className: `admonitionblock ${n.name}`,
293
- ...e.lineNumber ? { "data-lineno": e.lineNumber } : {},
294
- children: /* @__PURE__ */ r.jsx("table", { children: /* @__PURE__ */ r.jsx("tbody", { children: /* @__PURE__ */ r.jsxs("tr", { children: [
295
- /* @__PURE__ */ r.jsx("td", { className: "icon", children: s.icons ? l() : /* @__PURE__ */ r.jsx("div", { className: "title", children: n.textlabel }) }),
296
- /* @__PURE__ */ r.jsxs("td", { className: "content", children: [
297
- /* @__PURE__ */ r.jsx(w, { text: e.title }),
298
- e.content && h(e.content),
299
- /* @__PURE__ */ r.jsx(E, { blocks: e.blocks })
300
- ] })
301
- ] }) }) })
344
+ type: "emphasis",
345
+ scope: "constrained",
346
+ rx: new RegExp(
347
+ `(^|[^${W};:}])(?:${R})?_(\\S|\\S${A}*?\\S)_(?!${z})`,
348
+ "m"
349
+ )
350
+ },
351
+ {
352
+ type: "mark",
353
+ scope: "unconstrained",
354
+ rx: new RegExp(
355
+ `\\\\?(?:${R})?##(${A}+?)##`,
356
+ "m"
357
+ )
358
+ },
359
+ {
360
+ type: "mark",
361
+ scope: "constrained",
362
+ rx: new RegExp(
363
+ `(^|[^${W}&;:}])(?:${R})?#(\\S|\\S${A}*?\\S)#(?!${z})`,
364
+ "m"
365
+ )
366
+ },
367
+ {
368
+ type: "superscript",
369
+ scope: "unconstrained",
370
+ rx: /\\?(?:\[([^\[\]]+)\])?\^(\S+?)\^/
371
+ },
372
+ {
373
+ type: "subscript",
374
+ scope: "unconstrained",
375
+ rx: /\\?(?:\[([^\[\]]+)\])?~(\S+?)~/
302
376
  }
303
- );
304
- }, _e = ({ node: e }) => {
305
- const t = e.attributes.start, s = e.attributes.end, n = (t || s) && `#t=${t || ""}` + s ? `,${s}` : "";
306
- return /* @__PURE__ */ r.jsxs(
307
- "div",
377
+ ],
378
+ compat: [
308
379
  {
309
- className: "audioblock",
310
- ...e.lineNumber ? { "data-lineno": e.lineNumber } : {},
311
- children: [
312
- /* @__PURE__ */ r.jsx(w, { text: e.title }),
313
- /* @__PURE__ */ r.jsx("div", { className: "content", children: /* @__PURE__ */ r.jsx(
314
- "audio",
315
- {
316
- src: `${e.mediaUri}${n}`,
317
- autoPlay: e.autoplay,
318
- controls: !e.noControls,
319
- loop: e.loop,
320
- children: "Your browser does not support the audio tag."
321
- }
322
- ) })
323
- ]
380
+ type: "strong",
381
+ scope: "unconstrained",
382
+ rx: new RegExp(
383
+ `\\\\?(?:${R})?\\*\\*(${A}+?)\\*\\*`,
384
+ "m"
385
+ )
386
+ },
387
+ {
388
+ type: "strong",
389
+ scope: "constrained",
390
+ rx: new RegExp(
391
+ `(^|[^${W};:}])(?:${R})?\\*(\\S|\\S${A}*?\\S)\\*(?!${z})`,
392
+ "m"
393
+ )
394
+ },
395
+ {
396
+ type: "double",
397
+ scope: "constrained",
398
+ rx: new RegExp(
399
+ `(^|[^${W};:}])(?:${R})?\`\`(\\S|\\S${A}*?\\S)''(?!${z})`,
400
+ "m"
401
+ )
402
+ },
403
+ {
404
+ type: "emphasis",
405
+ scope: "constrained",
406
+ rx: new RegExp(
407
+ `(^|[^${W};:}])(?:${R})?'(\\S|\\S${A}*?\\S)'(?!${z})`,
408
+ "m"
409
+ )
410
+ },
411
+ {
412
+ type: "monospaced",
413
+ scope: "unconstrained",
414
+ rx: new RegExp(
415
+ `\\\\?(?:${R})?\\+\\+(${A}+?)\\+\\+`,
416
+ "m"
417
+ )
418
+ },
419
+ {
420
+ type: "monospaced",
421
+ scope: "constrained",
422
+ rx: new RegExp(
423
+ `(^|[^${W};:}])(?:${R})?\\+(\\S|\\S${A}*?\\S)\\+(?!${z})`,
424
+ "m"
425
+ )
426
+ },
427
+ {
428
+ type: "single",
429
+ scope: "constrained",
430
+ rx: new RegExp(
431
+ `(^|[^${W};:}])(?:${R})?\`(\\S|\\S${A}*?\\S)'(?!${z})`,
432
+ "m"
433
+ )
434
+ },
435
+ {
436
+ type: "emphasis",
437
+ scope: "unconstrained",
438
+ rx: new RegExp(
439
+ `\\\\?(?:${R})?__(${A}+?)__`,
440
+ "m"
441
+ )
442
+ },
443
+ {
444
+ type: "emphasis",
445
+ scope: "constrained",
446
+ rx: new RegExp(
447
+ `(^|[^${W};:}])(?:${R})?_(\\S|\\S${A}*?\\S)_(?!${z})`,
448
+ "m"
449
+ )
450
+ },
451
+ {
452
+ type: "mark",
453
+ scope: "unconstrained",
454
+ rx: new RegExp(
455
+ `\\\\?(?:${R})?##(${A}+?)##`,
456
+ "m"
457
+ )
458
+ },
459
+ {
460
+ type: "mark",
461
+ scope: "constrained",
462
+ rx: new RegExp(
463
+ `(^|[^${W}&;:}])(?:${R})?#(\\S|\\S${A}*?\\S)#(?!${z})`,
464
+ "m"
465
+ )
466
+ },
467
+ {
468
+ type: "superscript",
469
+ scope: "unconstrained",
470
+ rx: /\\?(?:\[([^\[\]]+)\])?\^(\S+?)\^/
471
+ },
472
+ {
473
+ type: "subscript",
474
+ scope: "unconstrained",
475
+ rx: /\\?(?:\[([^\[\]]+)\])?~(\S+?)~/
476
+ }
477
+ ]
478
+ }, Vt = /[<&>]/g, kt = {
479
+ false: /[*_\x60#^~]/,
480
+ true: /[*'_+#^~]/
481
+ }, Zt = {
482
+ ">": "&gt;",
483
+ "<": "&lt;",
484
+ "&": "&amp;"
485
+ };
486
+ function Qt() {
487
+ return { footnoteIndex: 0, footnotesById: /* @__PURE__ */ new Map() };
488
+ }
489
+ function Gt(t, e, s) {
490
+ const n = t.get(e);
491
+ let i;
492
+ return n === void 0 ? s !== void 0 && s !== "" ? i = /^-?\d+$/.test(s) ? parseInt(s, 10) : s : i = 1 : typeof n == "number" ? i = n + 1 : i = String.fromCharCode(n.charCodeAt(n.length - 1) + 1), t.set(e, i), i;
493
+ }
494
+ function K(t) {
495
+ return `–${t}—`;
496
+ }
497
+ function It(t) {
498
+ return encodeURIComponent(t).replace(/%20/g, "+");
499
+ }
500
+ function Jt(t) {
501
+ const e = {};
502
+ if (!t) return e;
503
+ const s = [];
504
+ for (const n of t.split(",")) {
505
+ const i = n.trim(), l = i.indexOf("=");
506
+ if (l >= 0) {
507
+ const a = i.slice(0, l).trim();
508
+ let c = i.slice(l + 1).trim();
509
+ (c.startsWith('"') && c.endsWith('"') || c.startsWith("'") && c.endsWith("'")) && (c = c.slice(1, -1)), e[a] = c;
510
+ } else
511
+ s.push(i);
512
+ }
513
+ return s[0] && !e.alt && (e.alt = s[0]), s[1] && !e.width && (e.width = s[1]), s[2] && !e.height && (e.height = s[2]), e;
514
+ }
515
+ function Xt(t) {
516
+ const e = t.trim();
517
+ if (e.length <= 1) return [e];
518
+ const s = e.indexOf(",", 1), n = e.indexOf("+", 1);
519
+ let i;
520
+ if (s >= 0 && n >= 0)
521
+ i = Math.min(s, n);
522
+ else if (s >= 0)
523
+ i = s;
524
+ else if (n >= 0)
525
+ i = n;
526
+ else
527
+ return [e];
528
+ const l = e[i];
529
+ if (e.endsWith(l)) {
530
+ const a = e.slice(0, -1).split(l).map((c) => c.trim());
531
+ return a[a.length - 1] = a[a.length - 1] + l, a;
532
+ }
533
+ return e.split(l).map((a) => a.trim());
534
+ }
535
+ function Kt(t) {
536
+ return t.replace(/^.*\//, "").replace(/\.[^.]+$/, "").replace(/[_\-]/g, " ");
537
+ }
538
+ function te(t) {
539
+ const e = {};
540
+ if (!t) return e;
541
+ const s = [];
542
+ for (const n of t.split(",")) {
543
+ const i = n.trim(), l = i.indexOf("=");
544
+ if (l >= 0) {
545
+ const a = i.slice(0, l).trim();
546
+ let c = i.slice(l + 1).trim();
547
+ (c.startsWith('"') && c.endsWith('"') || c.startsWith("'") && c.endsWith("'")) && (c = c.slice(1, -1)), e[a] = c;
548
+ } else
549
+ s.push(i);
550
+ }
551
+ return s[0] && !e.size && (e.size = s[0]), e;
552
+ }
553
+ function ee(t) {
554
+ if (!t) return {};
555
+ const e = {}, s = [];
556
+ for (const n of t.split(",")) {
557
+ const i = n.trim(), l = i.indexOf("=");
558
+ if (l >= 0) {
559
+ const a = i.slice(0, l).trim();
560
+ let c = i.slice(l + 1).trim();
561
+ (c.startsWith('"') && c.endsWith('"') || c.startsWith("'") && c.endsWith("'")) && (c = c.slice(1, -1)), e[a] = c;
562
+ } else
563
+ s.push(i);
564
+ }
565
+ return s[0] && (e.text = s[0]), s[1] && (e.subject = s[1]), s[2] && (e.body = s[2]), e;
566
+ }
567
+ function Lt(t) {
568
+ if (!t) return {};
569
+ const e = t.split(",", 1)[0].trim();
570
+ if (!e) return {};
571
+ if (e.includes("=")) {
572
+ const s = se(t);
573
+ return {
574
+ ...s.id ? { id: s.id } : {},
575
+ ...s.role ? { role: s.role } : {}
576
+ };
577
+ }
578
+ if (e.startsWith(".") || e.startsWith("#")) {
579
+ let s;
580
+ const n = [], i = e.match(/([.#])([^.#]*)/g) || [];
581
+ for (const l of i) {
582
+ const a = l[0], c = l.slice(1).trim();
583
+ c && (a === "#" ? s = c : n.push(c));
324
584
  }
585
+ return {
586
+ ...s ? { id: s } : {},
587
+ ...n.length ? { role: n.join(" ") } : {}
588
+ };
589
+ }
590
+ return { role: e };
591
+ }
592
+ function se(t) {
593
+ const e = {};
594
+ if (!t) return e;
595
+ const s = t.split(",");
596
+ let n = 0;
597
+ for (let i = 0; i < s.length; i++) {
598
+ const l = s[i].trim(), a = l.indexOf("=");
599
+ if (a >= 0) {
600
+ const c = l.slice(0, a).trim();
601
+ let m = l.slice(a + 1).trim();
602
+ m.startsWith('"') && m.endsWith('"') && (m = m.slice(1, -1)), m.startsWith("'") && m.endsWith("'") && (m = m.slice(1, -1)), e[c] = m;
603
+ } else {
604
+ switch (n) {
605
+ case 0:
606
+ e.text = l;
607
+ break;
608
+ case 1:
609
+ e.id = l;
610
+ break;
611
+ case 2:
612
+ e.role = l;
613
+ break;
614
+ default:
615
+ e[`${n}`] = l;
616
+ break;
617
+ }
618
+ n++;
619
+ }
620
+ }
621
+ return e;
622
+ }
623
+ function Ct(t) {
624
+ return t.replace(Vt, (e) => Zt[e] || e);
625
+ }
626
+ function re(t, e, s) {
627
+ if (s && t.indexOf("{counter") !== -1) {
628
+ s.counters || (s.counters = /* @__PURE__ */ new Map());
629
+ const n = s.counters;
630
+ t = t.replace(
631
+ /(\\)?\{(counter2?):([\w-]+)(?::([^}]*))?\}/g,
632
+ (i, l, a, c, m) => {
633
+ if (l) return i.slice(1);
634
+ const x = Gt(n, c, m);
635
+ return e[c] = String(x), a === "counter2" ? "" : String(x);
636
+ }
637
+ );
638
+ }
639
+ return t.replace(/(\\)?\{(\w[\w-]*)\}/g, (n, i, l) => {
640
+ if (i) return "{" + l + "}";
641
+ const a = l.toLowerCase();
642
+ return Object.prototype.hasOwnProperty.call(At, a) ? At[a] : Object.prototype.hasOwnProperty.call(e, l) ? e[l] : Object.prototype.hasOwnProperty.call(e, a) ? e[a] : n;
643
+ });
644
+ }
645
+ const At = {
646
+ empty: "",
647
+ sp: " ",
648
+ nbsp: "&#160;",
649
+ zwsp: "&#8203;",
650
+ wj: "&#8288;",
651
+ apos: "&#39;",
652
+ quot: "&#34;",
653
+ lsquo: "&#8216;",
654
+ rsquo: "&#8217;",
655
+ ldquo: "&#8220;",
656
+ rdquo: "&#8221;",
657
+ deg: "&#176;",
658
+ plus: "&#43;",
659
+ brvbar: "&#166;",
660
+ amp: "&amp;",
661
+ lt: "&lt;",
662
+ gt: "&gt;",
663
+ startsb: "[",
664
+ endsb: "]",
665
+ vbar: "|",
666
+ caret: "^",
667
+ asterisk: "*",
668
+ tilde: "~",
669
+ backslash: "\\",
670
+ backtick: "`",
671
+ "two-colons": "::",
672
+ "two-semicolons": ";;",
673
+ cpp: "C++"
674
+ };
675
+ function ne(t) {
676
+ function e(s, n, i) {
677
+ return t.replace(s, (l, ...a) => l.includes("\\") ? l.replace("\\", "") : n);
678
+ }
679
+ return t = e(/\\?\(C\)/g, "&#169;"), t = e(/\\?\(R\)/g, "&#174;"), t = e(/\\?\(TM\)/g, "&#8482;"), t = t.replace(/(^|[ \n]|\\)--([ \n]|$)/g, (s) => s.includes("\\") ? s.replace("\\", "") : "&#8201;&#8212;&#8201;"), t = t.replace(/([\p{L}\p{N}_])\\?--(?=[\p{L}\p{N}_])/gu, (s, n) => s.includes("\\") ? s.replace("\\", "") : n + "&#8212;&#8203;"), t = e(/\\?\.\.\./g, "&#8230;&#8203;"), t = t.replace(new RegExp("([\\p{L}\\p{N}])\\\\?'(?=\\p{L})", "gu"), (s, n) => s.includes("\\") ? s.replace("\\", "") : n + "&#8217;"), t = t.replace(/\\?`'/g, (s) => s.startsWith("\\") ? s.slice(1) : "&#8217;"), t = e(/\\?-&gt;/g, "&#8594;"), t = e(/\\?=&gt;/g, "&#8658;"), t = e(/\\?&lt;-/g, "&#8592;"), t = e(/\\?&lt;=/g, "&#8656;"), t = t.replace(
680
+ /(\\)?&amp;([a-zA-Z][a-zA-Z]+\d{0,2};|#\d{1,7};|#x[\da-fA-F]{1,6};)/g,
681
+ (s, n, i) => n ? "&amp;" + i : "&" + i
682
+ ), t;
683
+ }
684
+ function Mt(t, e) {
685
+ const s = t.length;
686
+ return t.push(e), "" + s + "";
687
+ }
688
+ function Pt(t, e, s = /* @__PURE__ */ new Set()) {
689
+ const n = [], i = /\x01(\d+)\x02/g;
690
+ let l = 0, a;
691
+ for (; (a = i.exec(t)) !== null; ) {
692
+ const m = t.slice(l, a.index);
693
+ m && n.push({ type: "text", text: m });
694
+ const x = parseInt(a[1], 10), g = e[x];
695
+ if (g && !s.has(x)) {
696
+ s.add(x);
697
+ for (const b of g)
698
+ n.push(Ht(b, e, s));
699
+ s.delete(x);
700
+ }
701
+ l = a.index + a[0].length;
702
+ }
703
+ const c = t.slice(l);
704
+ return c && n.push({ type: "text", text: c }), n.length === 0 && t.length > 0 && n.push({ type: "text", text: t }), n;
705
+ }
706
+ function Ht(t, e, s = /* @__PURE__ */ new Set()) {
707
+ if (t.type === "text") return t;
708
+ if (t.type === "quoted" || t.type === "anchor" || t.type === "footnote" || t.type === "button") {
709
+ const n = [];
710
+ for (const i of t.text)
711
+ if (i.type === "text" && i.text.indexOf("") !== -1) {
712
+ const l = Pt(i.text, e, s);
713
+ for (const a of l) n.push(a);
714
+ } else
715
+ n.push(Ht(i, e, s));
716
+ return { ...t, text: n };
717
+ }
718
+ return t;
719
+ }
720
+ function G(t, e = {}) {
721
+ const s = e.compatMode ?? !1, n = e.attributes ?? {}, i = e.state ?? Qt(), l = s ? Tt.compat : Tt.nonCompat;
722
+ let a = t;
723
+ const c = s ? kt.true : kt.false, m = [], x = [];
724
+ a = ie(a, m, s), e._alreadyEscaped || (a = Ct(a)), (a.match(/\*/) || a.match(/_/) || c.test(a)) && (a = oe(a, l, x, i)), a = re(a, n, i), a = ne(a), a = ue(
725
+ a,
726
+ n,
727
+ s,
728
+ x,
729
+ i,
730
+ e._quoted ?? !1
325
731
  );
326
- }, Oe = ({ node: e }) => /* @__PURE__ */ r.jsxs("div", { className: "colist", ...e.lineNumber ? { "data-lineno": e.lineNumber } : {}, children: [
327
- /* @__PURE__ */ r.jsx(w, { text: e.title }),
328
- /* @__PURE__ */ r.jsx("table", { children: /* @__PURE__ */ r.jsx("tbody", { children: e.items.map((t, s) => /* @__PURE__ */ r.jsxs("tr", { children: [
329
- /* @__PURE__ */ r.jsxs("td", { children: [
330
- /* @__PURE__ */ r.jsx("i", { className: "conum", "data-value": s + 1 }),
331
- /* @__PURE__ */ r.jsx("b", { children: s + 1 })
332
- ] }),
333
- /* @__PURE__ */ r.jsxs("td", { children: [
334
- t.text && h(t.text),
335
- /* @__PURE__ */ r.jsx(E, { blocks: t.blocks })
336
- ] })
337
- ] }, s)) }) })
338
- ] });
339
- var K = { exports: {} };
732
+ let g = Pt(a, x);
733
+ return g = fe(g, n), g = Wt(g, m, s, i), g;
734
+ }
735
+ function ie(t, e, s) {
736
+ return t = le(t, e, s), t = ae(t, e, s), t;
737
+ }
738
+ function le(t, e, s) {
739
+ let n = "", i = 0;
740
+ const l = t.length, a = s ? null : /^\+\+\+([\s\S]*?)\+\+\+/, c = s ? null : /^(?:\[([^\[\]]+)\])?\+\+([\s\S]+?)\+\+/, m = /^pass:([a-z]+(?:,[a-z-]+)*)?\[(|[\s\S]*?[^\\])\]/, x = /^(stem|(?:latex|ascii)math):([a-z]+(?:,[a-z-]+)*)?\[([\s\S]*?[^\\])\]/;
741
+ for (; i < l; ) {
742
+ if (t[i] === "$" && t[i + 1] === "$") {
743
+ const g = t.indexOf("$$", i + 2);
744
+ if (g >= 0) {
745
+ const b = t.slice(i + 2, g), u = e.length;
746
+ e.push({
747
+ text: b,
748
+ type: "unquoted",
749
+ subs: ["specialcharacters"]
750
+ }), n += K(u), i = g + 2;
751
+ continue;
752
+ }
753
+ }
754
+ if (t[i] === "+" && a) {
755
+ const g = t.slice(i).match(a);
756
+ if (g) {
757
+ const b = e.length;
758
+ e.push({
759
+ text: g[1],
760
+ type: "unquoted",
761
+ subs: []
762
+ }), n += K(b), i += g[0].length;
763
+ continue;
764
+ }
765
+ }
766
+ if ((t[i] === "+" || t[i] === "[") && c) {
767
+ const g = t.slice(i);
768
+ if (!g.startsWith("+++")) {
769
+ const b = g.match(c);
770
+ if (b) {
771
+ const u = b[1] || "", d = b[2], h = e.length, j = Lt(u);
772
+ e.push({
773
+ text: d,
774
+ type: "unquoted",
775
+ subs: ["specialcharacters"],
776
+ attributes: {
777
+ ...j.id ? { id: j.id } : {},
778
+ ...j.role ? { role: j.role } : {}
779
+ }
780
+ }), n += K(h), i += b[0].length;
781
+ continue;
782
+ }
783
+ }
784
+ }
785
+ if (t[i] === "p" && t.slice(i, i + 5) === "pass:") {
786
+ const g = t.slice(i).match(m);
787
+ if (g) {
788
+ const b = g[1] ? ce(g[1]) : [], u = g[2], d = e.length;
789
+ e.push({
790
+ text: u,
791
+ type: "unquoted",
792
+ subs: b
793
+ }), n += K(d), i += g[0].length;
794
+ continue;
795
+ }
796
+ }
797
+ if (t[i] === "s" || t[i] === "a" || t[i] === "l") {
798
+ const g = t.slice(i).match(x);
799
+ if (g) {
800
+ const b = g[3], u = e.length, d = g[1] === "asciimath" ? "asciimath" : "latexmath";
801
+ e.push({
802
+ text: b,
803
+ type: d,
804
+ subs: ["specialcharacters"]
805
+ }), n += K(u), i += g[0].length;
806
+ continue;
807
+ }
808
+ }
809
+ n += t[i], i++;
810
+ }
811
+ return n;
812
+ }
813
+ function ae(t, e, s) {
814
+ let n = "", i = 0;
815
+ const l = t.length, a = s ? /^(?:\[([^\[\]]+)\])?(`)([^`]|[^`][\s\S]*?[^`])\2(?![A-Za-z0-9_])/ : /^(?:\[([^\[\]]+)\])?(\+)(\S|\S[\s\S]*?\S)\2(?![A-Za-z0-9_])/, c = /[A-Za-z0-9_;:\\]/;
816
+ for (; i < l; ) {
817
+ if ((s ? t[i] === "`" : t[i] === "+") && (i === 0 || !c.test(t[i - 1]))) {
818
+ const m = t.slice(i).match(a);
819
+ if (m) {
820
+ const x = m[3], g = e.length;
821
+ e.push({
822
+ text: x,
823
+ type: s ? "monospaced" : "unquoted",
824
+ subs: ["specialcharacters"]
825
+ }), n += K(g), i += m[0].length;
826
+ continue;
827
+ }
828
+ }
829
+ n += t[i], i++;
830
+ }
831
+ return n;
832
+ }
833
+ function ce(t) {
834
+ const e = {
835
+ a: "attributes",
836
+ m: "macros",
837
+ n: "normal",
838
+ p: "post_replacements",
839
+ q: "quotes",
840
+ r: "replacements",
841
+ c: "specialcharacters",
842
+ v: "verbatim"
843
+ }, s = [];
844
+ for (const n of t.split(",")) {
845
+ const i = n.trim(), l = e[i];
846
+ l === "normal" ? s.push(
847
+ "specialcharacters",
848
+ "quotes",
849
+ "attributes",
850
+ "replacements",
851
+ "macros",
852
+ "post_replacements"
853
+ ) : l && s.push(l);
854
+ }
855
+ return s.length === 0 && s.push("specialcharacters"), s;
856
+ }
857
+ function oe(t, e, s, n) {
858
+ for (const i of e) {
859
+ let l = "", a = t;
860
+ const c = i.scope === "constrained";
861
+ for (; a.length > 0; ) {
862
+ const m = i.rx.exec(a);
863
+ if (!m) {
864
+ l += a;
865
+ break;
866
+ }
867
+ const x = m[0], g = m.index;
868
+ l += a.slice(0, g);
869
+ let b = "", u = "", d = "";
870
+ c ? (b = m[1] || "", u = m[2] || "", d = m[3] || "") : (u = m[1] || "", d = m[2] || "");
871
+ const h = x.startsWith("\\");
872
+ let j = 0;
873
+ if (!h && i.type === "monospaced" && !c && d.startsWith("`") && a[g + x.length] === "`" && (d = d + "`", j = 1), h)
874
+ l += x.slice(1);
875
+ else {
876
+ b && (l += b);
877
+ let $, _;
878
+ if (u) {
879
+ const T = Lt(u);
880
+ $ = T.role, _ = T.id;
881
+ }
882
+ const o = d.replace(/\\\]/g, "]"), f = G(o, {
883
+ compatMode: !1,
884
+ state: n,
885
+ _alreadyEscaped: !0,
886
+ _quoted: !0
887
+ }), v = {
888
+ type: "quoted",
889
+ subtype: i.type,
890
+ text: f,
891
+ ..._ ? { id: _ } : {},
892
+ ...$ ? { role: $ } : {}
893
+ };
894
+ l += Mt(s, [v]);
895
+ }
896
+ a = a.slice(g + x.length + j);
897
+ }
898
+ t = l;
899
+ }
900
+ return t;
901
+ }
902
+ function D(t) {
903
+ return t ? [{ type: "text", text: t }] : [];
904
+ }
905
+ function ue(t, e, s, n, i, l = !1) {
906
+ let a = t;
907
+ const c = Object.prototype.hasOwnProperty.call(e, "experimental"), m = Object.prototype.hasOwnProperty.call(e, "icons") ? e.icons : void 0, x = m === void 0 ? "text" : m === "font" ? "font" : "image", g = [
908
+ {
909
+ rx: /(\\)?(kbd|btn):\[([\s\S]*?[^\\])\]/,
910
+ handler: (u) => u[1] || !c ? null : u[2] === "kbd" ? {
911
+ type: "kbd",
912
+ keys: Xt(u[3])
913
+ } : { type: "button", text: D(u[3]) }
914
+ },
915
+ {
916
+ rx: /\\?menu:(\w|[&\w][^\n\[]*[^\s\[])\[ *(?:|([\s\S]*?[^\\]))\]/,
917
+ handler: (u) => u[0].startsWith("\\") || !c ? null : { type: "menu", items: u[2] ? [u[1], ...u[2].split(/&gt;|>/).map((h) => h.trim())] : [u[1]] }
918
+ },
919
+ {
920
+ rx: /\\?(image|icon):([^:\s\[](?:[^\n\[]*[^\s\[])?)\[(|[\s\S]*?[^\\])\]/,
921
+ handler: (u) => {
922
+ if (u[0].startsWith("\\")) return null;
923
+ const d = u[1] === "icon", h = d ? te(u[3]) : Jt(u[3]), j = u[2], $ = h.alt || (d ? j : Kt(j));
924
+ return {
925
+ type: "image",
926
+ subtype: d ? "icon" : "image",
927
+ target: j,
928
+ alt: $,
929
+ width: h.width,
930
+ height: h.height,
931
+ id: h.id,
932
+ role: h.role,
933
+ title: h.title,
934
+ ...d ? { iconType: x } : {}
935
+ };
936
+ }
937
+ },
938
+ {
939
+ rx: new RegExp(
940
+ String.raw`\\?(?:(indexterm2?):\[([\s\S]*?[^\\])\]|\(\(([\s\S]+?)\)\)(?!\)))`
941
+ ),
942
+ handler: (u) => {
943
+ if (u[0].startsWith("\\")) return null;
944
+ const h = (u[2] || u[3] || "").split(",").map((_) => _.trim()), $ = (u[1] ? u[1].startsWith("indexterm2") : u[0].startsWith("((")) === !0;
945
+ return { type: "indexterm", terms: h, visible: $ };
946
+ }
947
+ },
948
+ {
949
+ // The bibref macro must run BEFORE the URL/link macros in macroRegexes:
950
+ // otherwise the URL macro's leading-context capture group (which
951
+ // includes `]`) eats the third `]` of `[[[id]]]https://...` patterns
952
+ // and leaves only `[[id]]` for the ref macro to match. Ids accept
953
+ // any Unicode letter/digit — RFD citations occasionally use
954
+ // non-ASCII chars (e.g. `lipiński-2011`).
955
+ // A bibliography anchor id must be a valid XML name: it starts with a
956
+ // letter or `_` (NOT a digit). `[[[22-update]]]` is therefore left as
957
+ // literal text by stock, while `[[[lipiński-2011]]]` (Unicode letter)
958
+ // is a valid bibref.
959
+ rx: /\[\[\[([\p{L}_][\p{L}\p{N}_\-:.]*)(?:, *([\s\S]+?))?\]\]\]/u,
960
+ handler: (u) => ({
961
+ type: "anchor",
962
+ subtype: "bibref",
963
+ text: D(u[2] || u[1]),
964
+ target: u[1]
965
+ })
966
+ },
967
+ {
968
+ // The target must not start with `:` — `link::https://…` is malformed
969
+ // (double colon) and stock asciidoctor leaves it literal rather than
970
+ // producing a link whose href begins with `:`.
971
+ rx: /\\?(?:link|(mailto)):\s*(|[^\s\[:][^\s\[]*)\[(|[\s\S]*?[^\\])\]/,
972
+ handler: (u) => {
973
+ if (u[0].startsWith("\\")) return null;
974
+ const d = u[1] === "mailto", h = u[3] || "";
975
+ if (d) {
976
+ const o = ee(h), f = u[2];
977
+ let v = "mailto:" + f;
978
+ const T = [];
979
+ return o.subject && T.push(`subject=${It(o.subject)}`), o.body && T.push(`body=${It(o.body)}`), T.length && (v += "?" + T.join("&")), {
980
+ type: "anchor",
981
+ subtype: "link",
982
+ text: o.text ? D(o.text) : [{ type: "text", text: f }],
983
+ target: v,
984
+ ...o.id ? { id: o.id } : {},
985
+ ...o.role ? { role: o.role } : {}
986
+ };
987
+ }
988
+ const j = u[2];
989
+ if (h === "")
990
+ return {
991
+ type: "anchor",
992
+ subtype: "link",
993
+ text: [{ type: "text", text: j }],
994
+ target: j,
995
+ role: "bare"
996
+ };
997
+ let $ = h, _;
998
+ return $.endsWith("^") && ($ = $.slice(0, -1), _ = "_blank"), {
999
+ type: "anchor",
1000
+ subtype: "link",
1001
+ text: D($),
1002
+ target: j,
1003
+ ..._ ? { window: _ } : {}
1004
+ };
1005
+ }
1006
+ },
1007
+ {
1008
+ rx: new RegExp("(?<=^|\\s|&lt;|>|[\\(\\)\\[\\];\"'`\\x02-\\x05])(\\\\?(?:https?|file|ftp|irc):\\/\\/)(?:([^\\s\\[\\]]+)\\[(|[\\s\\S]*?[^\\\\])\\]|([^\\s]+)&gt;|([^\\s\\[\\]<]*([^\\s,.?!\\[\\]<\\)])))", "m"),
1009
+ handler: (u) => {
1010
+ if (u[1].startsWith("\\")) {
1011
+ const v = u[1].slice(1), T = u[2] !== void 0 ? `${u[2]}[${u[3] || ""}]` : u[4] !== void 0 ? `${u[4]}&gt;` : u[5] || "";
1012
+ return [{ type: "text", text: v + T }];
1013
+ }
1014
+ const d = u[1];
1015
+ let h, j, $, _ = "", o;
1016
+ if (u[2] !== void 0) {
1017
+ h = d + u[2];
1018
+ let v = u[3] || "";
1019
+ v ? (v.endsWith("^") && (v = v.slice(0, -1), o = "_blank"), j = D(v)) : (j = [{ type: "text", text: h }], $ = "bare");
1020
+ } else if (u[4] !== void 0)
1021
+ h = d + u[4], j = [{ type: "text", text: h }], $ = "bare";
1022
+ else {
1023
+ h = d + (u[5] || "");
1024
+ const v = u[6] || "";
1025
+ if (v === ";" ? (h = h.slice(0, -1), h.endsWith(")") ? (h = h.slice(0, -1), _ = ");") : _ = ";") : v === ":" && (h = h.slice(0, -1), h.endsWith(")") ? (h = h.slice(0, -1), _ = "):") : _ = ":"), h === d)
1026
+ return [{ type: "text", text: u[0] }];
1027
+ j = [{ type: "text", text: h }], $ = "bare";
1028
+ }
1029
+ $ === "bare" && Object.prototype.hasOwnProperty.call(e, "hide-uri-scheme") && (j = [{ type: "text", text: h.replace(/^[a-z][a-z0-9.+-]*:\/\//i, "") }]);
1030
+ const f = [];
1031
+ return f.push({
1032
+ type: "anchor",
1033
+ subtype: "link",
1034
+ text: j,
1035
+ target: h,
1036
+ ...$ ? { role: $ } : {},
1037
+ ...o ? { window: o } : {}
1038
+ }), _ && f.push({ type: "text", text: _ }), f;
1039
+ }
1040
+ },
1041
+ {
1042
+ rx: /([\\>:/])?\w(?:&amp;|[\w\-.%+])*@[\w][\w_\-.]*\.[a-zA-Z]{2,5}\b/,
1043
+ handler: (u) => {
1044
+ const d = u[1] || "";
1045
+ if (d && d !== ":" && !d.startsWith("&") || l && u.index === 0 && !d) return null;
1046
+ const h = u[0];
1047
+ return {
1048
+ type: "anchor",
1049
+ subtype: "link",
1050
+ text: [{ type: "text", text: h }],
1051
+ target: "mailto:".concat(h)
1052
+ };
1053
+ }
1054
+ },
1055
+ {
1056
+ rx: new RegExp(
1057
+ String.raw`(\\)?(?:\[\[([A-Za-z_][\w\-:.]*)(?:, *([\s\S]+?))? ?\]\]|anchor:([A-Za-z_][\w\-:.]*)\[(?:\]|([\s\S]*?[^\\])\]))`
1058
+ ),
1059
+ handler: (u) => {
1060
+ if (u[1]) return null;
1061
+ const d = u[2] || u[4] || "", h = u[3] || u[5] || "";
1062
+ return {
1063
+ type: "anchor",
1064
+ subtype: "ref",
1065
+ text: D(h || d),
1066
+ target: d,
1067
+ id: d
1068
+ };
1069
+ }
1070
+ },
1071
+ {
1072
+ rx: new RegExp(
1073
+ String.raw`\\?(?:&lt;&lt;([\w#/.:{][\s\S]*?)&gt;&gt;|xref:([\w#/.:{][\s\S]*?)\[(?:\]|([\s\S]*?[^\\])\]))`
1074
+ ),
1075
+ handler: (u) => {
1076
+ if (u[0].startsWith("\\")) return null;
1077
+ if (u[1] !== void 0) {
1078
+ const j = u[1].indexOf(","), $ = j === -1 ? u[1] : u[1].slice(0, j), o = (j === -1 ? "" : u[1].slice(j + 1).replace(/^\s+/, "")) || `[${$}]`;
1079
+ return {
1080
+ type: "anchor",
1081
+ subtype: "xref",
1082
+ text: D(o),
1083
+ target: $
1084
+ };
1085
+ }
1086
+ const d = (u[2] || "").trim(), h = (u[3] || "").trim();
1087
+ return {
1088
+ type: "anchor",
1089
+ subtype: "xref",
1090
+ text: D(h || `[${d}]`),
1091
+ target: d
1092
+ };
1093
+ }
1094
+ },
1095
+ {
1096
+ rx: /\\?footnote(?:(ref):|:([\w-]+)?)\[(?:|([\s\S]*?[^\\]))\](?!<\/a>)/,
1097
+ handler: (u) => {
1098
+ if (u[0].startsWith("\\")) return null;
1099
+ const d = u[2], h = u[3] || "";
1100
+ if (u[1] === "ref" || d && !h) {
1101
+ const $ = d ? i.footnotesById.get(d) : void 0;
1102
+ return {
1103
+ type: "footnote",
1104
+ text: [],
1105
+ refid: d,
1106
+ ...$ !== void 0 ? { index: $ } : {}
1107
+ };
1108
+ }
1109
+ i.footnoteIndex++;
1110
+ const j = i.footnoteIndex;
1111
+ return d && i.footnotesById.set(d, j), {
1112
+ type: "footnote",
1113
+ text: D(h),
1114
+ ...d ? { id: d } : {},
1115
+ index: j
1116
+ };
1117
+ }
1118
+ }
1119
+ ];
1120
+ let b = a;
1121
+ for (const { rx: u, handler: d } of g) {
1122
+ const h = pe(u);
1123
+ h.lastIndex = 0;
1124
+ const j = [];
1125
+ let $ = 0, _;
1126
+ for (; (_ = h.exec(b)) !== null; ) {
1127
+ if (_[0].length === 0) {
1128
+ h.lastIndex++;
1129
+ continue;
1130
+ }
1131
+ _.index > $ && j.push(b.slice($, _.index));
1132
+ const o = d(_, e);
1133
+ if (o) {
1134
+ const f = Array.isArray(o) ? o : [o];
1135
+ j.push(Mt(n, f));
1136
+ } else
1137
+ j.push(_[0]);
1138
+ $ = _.index + _[0].length;
1139
+ }
1140
+ $ < b.length && j.push(b.slice($)), b = j.join("");
1141
+ }
1142
+ return b;
1143
+ }
1144
+ const Rt = /* @__PURE__ */ new WeakMap();
1145
+ function pe(t) {
1146
+ if (t.flags.includes("g")) return t;
1147
+ const e = Rt.get(t);
1148
+ if (e) return e;
1149
+ const s = new RegExp(t.source, t.flags + "g");
1150
+ return Rt.set(t, s), s;
1151
+ }
1152
+ function Wt(t, e, s, n) {
1153
+ const i = /–(\d+)—/g;
1154
+ function l(c) {
1155
+ const m = { type: "text", text: c };
1156
+ if (c.indexOf("–") === -1) return [m];
1157
+ const x = [];
1158
+ let g = 0;
1159
+ i.lastIndex = 0;
1160
+ let b;
1161
+ for (; (b = i.exec(c)) !== null; ) {
1162
+ b.index > g && x.push({ type: "text", text: c.slice(g, b.index) });
1163
+ const u = parseInt(b[1], 10), d = e[u];
1164
+ if (!d) {
1165
+ x.push({ type: "text", text: b[0] }), g = b.index + b[0].length;
1166
+ continue;
1167
+ }
1168
+ if (d) {
1169
+ let h;
1170
+ d.subs.length === 0 ? h = [{ type: "text", text: d.text }] : d.subs.length === 1 && d.subs[0] === "specialcharacters" ? h = [{ type: "text", text: Ct(d.text) }] : h = G(d.text, { compatMode: s, state: n }), h = Wt(h, e, s, n);
1171
+ const j = d.attributes ?? {}, $ = !!(j.id || j.role);
1172
+ d.type === "unquoted" || d.type === "normal" ? $ ? x.push({
1173
+ type: "quoted",
1174
+ subtype: "unquoted",
1175
+ text: h,
1176
+ ...j.id ? { id: j.id } : {},
1177
+ ...j.role ? { role: j.role } : {}
1178
+ }) : x.push(...h) : d.type === "monospaced" || d.type === "asciimath" || d.type === "latexmath" ? x.push({
1179
+ type: "quoted",
1180
+ subtype: d.type,
1181
+ text: h,
1182
+ ...j.id ? { id: j.id } : {},
1183
+ ...j.role ? { role: j.role } : {}
1184
+ }) : x.push(...h);
1185
+ }
1186
+ g = b.index + b[0].length;
1187
+ }
1188
+ return g < c.length && x.push({ type: "text", text: c.slice(g) }), x.length > 0 ? x : [m];
1189
+ }
1190
+ function a(c) {
1191
+ return c.type === "text" ? l(c.text) : c.type === "quoted" || c.type === "anchor" || c.type === "footnote" || c.type === "button" ? [{ ...c, text: c.text.flatMap(a) }] : [c];
1192
+ }
1193
+ return t.flatMap(a);
1194
+ }
1195
+ function fe(t, e) {
1196
+ const n = Object.prototype.hasOwnProperty.call(e, "hardbreaks") || Object.prototype.hasOwnProperty.call(e, "hardbreaks-option") ? /(?: \+)?\n/g : / \+(\n|$)/g, i = [];
1197
+ for (const l of t) {
1198
+ if (l.type !== "text") {
1199
+ i.push(l);
1200
+ continue;
1201
+ }
1202
+ const a = l.text;
1203
+ n.lastIndex = 0;
1204
+ let c = 0, m = !1, x;
1205
+ for (; (x = n.exec(a)) !== null; )
1206
+ m = !0, x.index > c && i.push({ type: "text", text: a.slice(c, x.index) }), i.push({ type: "break", subtype: "line" }), c = x.index + x[0].length;
1207
+ m ? c < a.length && i.push({ type: "text", text: a.slice(c) }) : i.push(l);
1208
+ }
1209
+ return i;
1210
+ }
1211
+ const xe = {
1212
+ monospaced: ["<code>", "</code>", !0],
1213
+ emphasis: ["<em>", "</em>", !0],
1214
+ strong: ["<strong>", "</strong>", !0],
1215
+ double: ["&#8220;", "&#8221;"],
1216
+ single: ["&#8216;", "&#8217;"],
1217
+ mark: ["<mark>", "</mark>", !0],
1218
+ superscript: ["<sup>", "</sup>", !0],
1219
+ subscript: ["<sub>", "</sub>", !0],
1220
+ asciimath: ["\\$", "\\$"],
1221
+ latexmath: ["\\(", "\\)"]
1222
+ }, de = /^(?:[a-zA-Z][a-zA-Z]+\d{0,2}|#\d{1,7}|#x[\da-fA-F]{1,6});/;
1223
+ function he(t) {
1224
+ return t.replace(/ /g, "%20");
1225
+ }
1226
+ function L(t) {
1227
+ let e = "";
1228
+ for (let s = 0; s < t.length; s++) {
1229
+ const n = t[s];
1230
+ n === "&" ? de.test(t.slice(s + 1)) ? e += "&" : e += "&amp;" : n === '"' ? e += "&quot;" : n === "<" ? e += "&lt;" : n === ">" ? e += "&gt;" : e += n;
1231
+ }
1232
+ return e;
1233
+ }
1234
+ function Q(t) {
1235
+ return t.map(me).join("");
1236
+ }
1237
+ function me(t) {
1238
+ switch (t.type) {
1239
+ case "text":
1240
+ return t.text;
1241
+ case "quoted": {
1242
+ const e = xe[t.subtype] || ["", ""], s = e[2] === !0, n = Q(t.text);
1243
+ let i = "";
1244
+ if (t.id && (i += ` id="${t.id}"`), t.role && (i += ` class="${L(t.role)}"`), t.subtype === "mark" && (t.id || t.role))
1245
+ return `<span${i}>${n}</span>`;
1246
+ if (s) {
1247
+ let l = e[0];
1248
+ return i && l.endsWith(">") && (l = l.slice(0, -1) + i + ">"), `${l}${n}${e[1]}`;
1249
+ }
1250
+ return t.id || t.role ? `<span${i}>${e[0]}${n}${e[1]}</span>` : `${e[0]}${n}${e[1]}`;
1251
+ }
1252
+ case "anchor": {
1253
+ const e = t.id || "", s = t.role || "";
1254
+ let n = e ? ` id="${e}"` : "", i = s ? ` class="${L(s)}"` : "";
1255
+ e ? n += i : n = i;
1256
+ const l = Q(t.text);
1257
+ switch (t.subtype) {
1258
+ case "link": {
1259
+ const a = L(t.target);
1260
+ let c = "";
1261
+ return t.window && (c = ` target="${L(t.window)}"`, t.window === "_blank" && (c += ' rel="noopener"')), `<a href="${a}"${n}${c}>${l}</a>`;
1262
+ }
1263
+ case "ref":
1264
+ return `<a id="${L(t.id || t.target)}"></a>`;
1265
+ case "xref": {
1266
+ const a = t.target;
1267
+ return `<a href="${a.startsWith("#") || a.includes("#") || a.includes("/") ? L(a) : "#" + L(a)}"${n}>${l}</a>`;
1268
+ }
1269
+ case "bibref":
1270
+ return `[<a id="${L(t.id || t.target)}"></a>]`;
1271
+ }
1272
+ }
1273
+ case "image": {
1274
+ const e = L(he(t.target)), s = t.alt || "";
1275
+ let n = "";
1276
+ t.width && (n += ` width="${L(t.width)}"`), t.height && (n += ` height="${L(t.height)}"`);
1277
+ const i = t.title ? ` title="${L(t.title)}"` : "";
1278
+ if (t.subtype === "icon") {
1279
+ const m = t.iconType || "text", x = ["icon"];
1280
+ t.role && x.push(t.role);
1281
+ const g = ` class="${x.join(" ")}"`, b = t.id ? ` id="${L(t.id)}"` : "";
1282
+ if (m === "text") {
1283
+ const u = t.alt || t.target;
1284
+ return `<span${g}${b}${i}>[${u}&#93;</span>`;
1285
+ }
1286
+ return m === "font" ? `<span${g}${b}${i}><i class="fa fa-${L(t.target)}"></i></span>` : `<span${g}${b}${i}><img src="${e}" alt="${L(s)}"${n}></span>`;
1287
+ }
1288
+ const l = ["image"];
1289
+ t.role && l.push(t.role);
1290
+ const a = ` class="${l.join(" ")}"`, c = t.id ? ` id="${L(t.id)}"` : "";
1291
+ return `<span${a}${c}><img src="${e}" alt="${L(s)}"${n}${i}></span>`;
1292
+ }
1293
+ case "footnote": {
1294
+ if (t.refid && (!t.text || t.text.length === 0))
1295
+ return t.index !== void 0 ? `<sup class="footnoteref">[<a class="footnote" href="#_footnotedef_${t.index}" title="View footnote.">${t.index}</a>]</sup>` : `<sup class="footnoteref red" title="Unresolved footnote reference.">[${L(t.refid)}]</sup>`;
1296
+ const e = t.index;
1297
+ if (e === void 0) {
1298
+ const n = t.id ? ` id="${L(t.id)}"` : "", i = Q(t.text);
1299
+ return `<sup${n}>[${i}]</sup>`;
1300
+ }
1301
+ return `<sup class="footnote"${t.id ? ` id="_footnote_${L(t.id)}"` : ""}>[<a id="_footnoteref_${e}" class="footnote" href="#_footnotedef_${e}" title="View footnote.">${e}</a>]</sup>`;
1302
+ }
1303
+ case "indexterm":
1304
+ return t.visible ? Q([{ type: "text", text: t.terms.join(", ") }]) : "";
1305
+ case "callout":
1306
+ return `<b class="conum">(${t.number})</b>`;
1307
+ case "break":
1308
+ return `<br>
1309
+ `;
1310
+ case "button":
1311
+ return `<b class="button">${Q(t.text)}</b>`;
1312
+ case "kbd":
1313
+ return t.keys.length === 1 ? `<kbd>${t.keys[0]}</kbd>` : `<span class="keyseq">${t.keys.map((e) => `<kbd>${e}</kbd>`).join("+")}</span>`;
1314
+ case "menu": {
1315
+ if (t.items.length === 1)
1316
+ return `<b class="menuref">${t.items[0]}</b>`;
1317
+ const e = '&#160;<b class="caret">&#8250;</b> ', s = [];
1318
+ for (let n = 0; n < t.items.length; n++) {
1319
+ const i = t.items[n];
1320
+ n === 0 ? s.push(`<b class="menu">${i}</b>`) : n < t.items.length - 1 ? s.push(`${e}<b class="submenu">${i}</b>`) : s.push(`${e}<b class="menuitem">${i}</b>`);
1321
+ }
1322
+ return `<span class="menuseq">${s.join("")}</span>`;
1323
+ }
1324
+ }
1325
+ }
1326
+ function V(t) {
1327
+ return Q(t);
1328
+ }
1329
+ const rs = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1330
+ __proto__: null,
1331
+ parseInline: G,
1332
+ renderInline: Q,
1333
+ renderInlineAsString: V
1334
+ }, Symbol.toStringTag, { value: "Module" })), E = (t) => ({ __html: t ? V(t) : "" }), ns = ({ nodes: t }) => {
1335
+ const s = yt(dt).inlineOverrides;
1336
+ return !t || t.length === 0 ? null : !s || Object.keys(s).length === 0 ? /* @__PURE__ */ r.jsx("span", { dangerouslySetInnerHTML: { __html: V(t) } }) : /* @__PURE__ */ r.jsx(r.Fragment, { children: it(t, s) });
1337
+ }, it = (t, e) => t.map((s, n) => /* @__PURE__ */ r.jsx(jt, { children: ge(s, e) }, n)), ge = (t, e) => {
1338
+ switch (t.type) {
1339
+ case "text":
1340
+ return /* @__PURE__ */ r.jsx("span", { dangerouslySetInnerHTML: { __html: t.text } });
1341
+ case "quoted": {
1342
+ const s = e.quoted, n = it(t.text, e);
1343
+ return s ? /* @__PURE__ */ r.jsx(s, { node: t, children: n }) : be(t, n);
1344
+ }
1345
+ case "anchor": {
1346
+ const s = e.anchor, n = it(t.text, e);
1347
+ return s ? /* @__PURE__ */ r.jsx(s, { node: t, children: n }) : ye(t, n);
1348
+ }
1349
+ case "image": {
1350
+ const s = e.image;
1351
+ return s ? /* @__PURE__ */ r.jsx(s, { node: t }) : /* @__PURE__ */ r.jsx("span", { dangerouslySetInnerHTML: { __html: V([t]) } });
1352
+ }
1353
+ case "footnote": {
1354
+ const s = e.footnote, n = it(t.text || [], e);
1355
+ return s ? /* @__PURE__ */ r.jsx(s, { node: t, children: n }) : /* @__PURE__ */ r.jsx("span", { dangerouslySetInnerHTML: { __html: V([t]) } });
1356
+ }
1357
+ case "indexterm": {
1358
+ const s = e.indexterm;
1359
+ return s ? /* @__PURE__ */ r.jsx(s, { node: t }) : t.visible ? t.terms.join(", ") : null;
1360
+ }
1361
+ case "callout": {
1362
+ const s = e.callout;
1363
+ return s ? /* @__PURE__ */ r.jsx(s, { node: t }) : /* @__PURE__ */ r.jsx("b", { className: "conum", children: `(${t.number})` });
1364
+ }
1365
+ case "break": {
1366
+ const s = e.break;
1367
+ return s ? /* @__PURE__ */ r.jsx(s, {}) : /* @__PURE__ */ r.jsx("br", {});
1368
+ }
1369
+ case "button": {
1370
+ const s = e.button, n = it(t.text, e);
1371
+ return s ? /* @__PURE__ */ r.jsx(s, { node: t, children: n }) : /* @__PURE__ */ r.jsx("b", { className: "button", children: n });
1372
+ }
1373
+ case "kbd": {
1374
+ const s = e.kbd;
1375
+ return s ? /* @__PURE__ */ r.jsx(s, { node: t }) : /* @__PURE__ */ r.jsx("span", { dangerouslySetInnerHTML: { __html: V([t]) } });
1376
+ }
1377
+ case "menu": {
1378
+ const s = e.menu;
1379
+ return s ? /* @__PURE__ */ r.jsx(s, { node: t }) : /* @__PURE__ */ r.jsx("span", { dangerouslySetInnerHTML: { __html: V([t]) } });
1380
+ }
1381
+ }
1382
+ }, be = (t, e) => {
1383
+ const s = t.role || void 0, n = t.id || void 0;
1384
+ switch (t.subtype) {
1385
+ case "emphasis":
1386
+ return /* @__PURE__ */ r.jsx("em", { id: n, className: s, children: e });
1387
+ case "strong":
1388
+ return /* @__PURE__ */ r.jsx("strong", { id: n, className: s, children: e });
1389
+ case "monospaced":
1390
+ return /* @__PURE__ */ r.jsx("code", { id: n, className: s, children: e });
1391
+ case "superscript":
1392
+ return /* @__PURE__ */ r.jsx("sup", { id: n, className: s, children: e });
1393
+ case "subscript":
1394
+ return /* @__PURE__ */ r.jsx("sub", { id: n, className: s, children: e });
1395
+ case "mark":
1396
+ return n || s ? /* @__PURE__ */ r.jsx("span", { id: n, className: s, children: e }) : /* @__PURE__ */ r.jsx("mark", { children: e });
1397
+ case "double":
1398
+ return /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
1399
+ "“",
1400
+ e,
1401
+ "”"
1402
+ ] });
1403
+ case "single":
1404
+ return /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
1405
+ "‘",
1406
+ e,
1407
+ "’"
1408
+ ] });
1409
+ case "asciimath":
1410
+ return /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
1411
+ "\\$",
1412
+ e,
1413
+ "\\$"
1414
+ ] });
1415
+ case "latexmath":
1416
+ return /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
1417
+ "\\(",
1418
+ e,
1419
+ "\\)"
1420
+ ] });
1421
+ case "unquoted":
1422
+ return n || s ? /* @__PURE__ */ r.jsx("span", { id: n, className: s, children: e }) : /* @__PURE__ */ r.jsx(r.Fragment, { children: e });
1423
+ }
1424
+ }, ye = (t, e) => {
1425
+ switch (t.subtype) {
1426
+ case "link": {
1427
+ const s = t.window === "_blank" ? "noopener" : void 0;
1428
+ return /* @__PURE__ */ r.jsx(
1429
+ "a",
1430
+ {
1431
+ href: t.target,
1432
+ id: t.id || void 0,
1433
+ className: t.role || void 0,
1434
+ target: t.window || void 0,
1435
+ rel: s,
1436
+ children: e
1437
+ }
1438
+ );
1439
+ }
1440
+ case "ref":
1441
+ return /* @__PURE__ */ r.jsx("a", { id: t.id || t.target });
1442
+ case "xref": {
1443
+ const s = t.target, n = s.startsWith("#") || s.includes("#") || s.includes("/") ? s : `#${s}`;
1444
+ return /* @__PURE__ */ r.jsx("a", { href: n, id: t.id || void 0, className: t.role || void 0, children: e });
1445
+ }
1446
+ case "bibref":
1447
+ return /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
1448
+ "[",
1449
+ /* @__PURE__ */ r.jsx("a", { id: t.id || t.target }),
1450
+ "]"
1451
+ ] });
1452
+ }
1453
+ };
1454
+ var gt = { exports: {} };
340
1455
  /*!
341
1456
  Copyright (c) 2018 Jed Watson.
342
1457
  Licensed under the MIT License (MIT), see
343
1458
  http://jedwatson.github.io/classnames
344
1459
  */
345
- var be;
346
- function Ie() {
347
- return be || (be = 1, (function(e) {
1460
+ var Et;
1461
+ function je() {
1462
+ return Et || (Et = 1, (function(t) {
348
1463
  (function() {
349
- var t = {}.hasOwnProperty;
1464
+ var e = {}.hasOwnProperty;
350
1465
  function s() {
351
- for (var o = "", a = 0; a < arguments.length; a++) {
1466
+ for (var l = "", a = 0; a < arguments.length; a++) {
352
1467
  var c = arguments[a];
353
- c && (o = l(o, n(c)));
1468
+ c && (l = i(l, n(c)));
354
1469
  }
355
- return o;
1470
+ return l;
356
1471
  }
357
- function n(o) {
358
- if (typeof o == "string" || typeof o == "number")
359
- return o;
360
- if (typeof o != "object")
1472
+ function n(l) {
1473
+ if (typeof l == "string" || typeof l == "number")
1474
+ return l;
1475
+ if (typeof l != "object")
361
1476
  return "";
362
- if (Array.isArray(o))
363
- return s.apply(null, o);
364
- if (o.toString !== Object.prototype.toString && !o.toString.toString().includes("[native code]"))
365
- return o.toString();
1477
+ if (Array.isArray(l))
1478
+ return s.apply(null, l);
1479
+ if (l.toString !== Object.prototype.toString && !l.toString.toString().includes("[native code]"))
1480
+ return l.toString();
366
1481
  var a = "";
367
- for (var c in o)
368
- t.call(o, c) && o[c] && (a = l(a, c));
1482
+ for (var c in l)
1483
+ e.call(l, c) && l[c] && (a = i(a, c));
369
1484
  return a;
370
1485
  }
371
- function l(o, a) {
372
- return a ? o ? o + " " + a : o + a : o;
1486
+ function i(l, a) {
1487
+ return a ? l ? l + " " + a : l + a : l;
373
1488
  }
374
- e.exports ? (s.default = s, e.exports = s) : window.classNames = s;
1489
+ t.exports ? (s.default = s, t.exports = s) : window.classNames = s;
375
1490
  })();
376
- })(K)), K.exports;
1491
+ })(gt)), gt.exports;
377
1492
  }
378
- var Pe = Ie();
379
- const f = /* @__PURE__ */ Te(Pe);
380
- var _ = function() {
381
- return _ = Object.assign || function(e) {
382
- for (var t, s = 1, n = arguments.length; s < n; s++) {
383
- t = arguments[s];
384
- for (var l in t) Object.prototype.hasOwnProperty.call(t, l) && (e[l] = t[l]);
385
- }
386
- return e;
387
- }, _.apply(this, arguments);
388
- }, Ue = "~", $e = "~~";
389
- function ae(e, t) {
390
- for (var s = {}, n = {}, l = e.split($e), o = !1, a = 0; l.length > a; a++) {
391
- for (var c = l[a].split(Ue), p = 0; p < c.length; p += 2) {
392
- var j = c[p], g = c[p + 1], u = "&" + j + ";";
393
- s[u] = g, o && (s["&" + j] = g), n[g] = u;
394
- }
395
- o = !0;
396
- }
397
- return t ? { entities: _(_({}, s), t.entities), characters: _(_({}, n), t.characters) } : { entities: s, characters: n };
398
- }
399
- var ee = {
400
- xml: /&(?:#\d+|#[xX][\da-fA-F]+|[0-9a-zA-Z]+);?/g,
401
- html4: /&notin;|&(?:nbsp|iexcl|cent|pound|curren|yen|brvbar|sect|uml|copy|ordf|laquo|not|shy|reg|macr|deg|plusmn|sup2|sup3|acute|micro|para|middot|cedil|sup1|ordm|raquo|frac14|frac12|frac34|iquest|Agrave|Aacute|Acirc|Atilde|Auml|Aring|AElig|Ccedil|Egrave|Eacute|Ecirc|Euml|Igrave|Iacute|Icirc|Iuml|ETH|Ntilde|Ograve|Oacute|Ocirc|Otilde|Ouml|times|Oslash|Ugrave|Uacute|Ucirc|Uuml|Yacute|THORN|szlig|agrave|aacute|acirc|atilde|auml|aring|aelig|ccedil|egrave|eacute|ecirc|euml|igrave|iacute|icirc|iuml|eth|ntilde|ograve|oacute|ocirc|otilde|ouml|divide|oslash|ugrave|uacute|ucirc|uuml|yacute|thorn|yuml|quot|amp|lt|gt|#\d+|#[xX][\da-fA-F]+|[0-9a-zA-Z]+);?/g,
402
- html5: /&centerdot;|&copysr;|&divideontimes;|&gtcc;|&gtcir;|&gtdot;|&gtlPar;|&gtquest;|&gtrapprox;|&gtrarr;|&gtrdot;|&gtreqless;|&gtreqqless;|&gtrless;|&gtrsim;|&ltcc;|&ltcir;|&ltdot;|&lthree;|&ltimes;|&ltlarr;|&ltquest;|&ltrPar;|&ltri;|&ltrie;|&ltrif;|&notin;|&notinE;|&notindot;|&notinva;|&notinvb;|&notinvc;|&notni;|&notniva;|&notnivb;|&notnivc;|&parallel;|&timesb;|&timesbar;|&timesd;|&(?:AElig|AMP|Aacute|Acirc|Agrave|Aring|Atilde|Auml|COPY|Ccedil|ETH|Eacute|Ecirc|Egrave|Euml|GT|Iacute|Icirc|Igrave|Iuml|LT|Ntilde|Oacute|Ocirc|Ograve|Oslash|Otilde|Ouml|QUOT|REG|THORN|Uacute|Ucirc|Ugrave|Uuml|Yacute|aacute|acirc|acute|aelig|agrave|amp|aring|atilde|auml|brvbar|ccedil|cedil|cent|copy|curren|deg|divide|eacute|ecirc|egrave|eth|euml|frac12|frac14|frac34|gt|iacute|icirc|iexcl|igrave|iquest|iuml|laquo|lt|macr|micro|middot|nbsp|not|ntilde|oacute|ocirc|ograve|ordf|ordm|oslash|otilde|ouml|para|plusmn|pound|quot|raquo|reg|sect|shy|sup1|sup2|sup3|szlig|thorn|times|uacute|ucirc|ugrave|uml|uuml|yacute|yen|yuml|#\d+|#[xX][\da-fA-F]+|[0-9a-zA-Z]+);?/g
403
- }, I = {};
404
- I.xml = ae(`lt~<~gt~>~quot~"~apos~'~amp~&`);
405
- I.html4 = ae(`apos~'~OElig~Œ~oelig~œ~Scaron~Š~scaron~š~Yuml~Ÿ~circ~ˆ~tilde~˜~ensp~ ~emsp~ ~thinsp~ ~zwnj~‌~zwj~‍~lrm~‎~rlm~‏~ndash~–~mdash~—~lsquo~‘~rsquo~’~sbquo~‚~ldquo~“~rdquo~”~bdquo~„~dagger~†~Dagger~‡~permil~‰~lsaquo~‹~rsaquo~›~euro~€~fnof~ƒ~Alpha~Α~Beta~Β~Gamma~Γ~Delta~Δ~Epsilon~Ε~Zeta~Ζ~Eta~Η~Theta~Θ~Iota~Ι~Kappa~Κ~Lambda~Λ~Mu~Μ~Nu~Ν~Xi~Ξ~Omicron~Ο~Pi~Π~Rho~Ρ~Sigma~Σ~Tau~Τ~Upsilon~Υ~Phi~Φ~Chi~Χ~Psi~Ψ~Omega~Ω~alpha~α~beta~β~gamma~γ~delta~δ~epsilon~ε~zeta~ζ~eta~η~theta~θ~iota~ι~kappa~κ~lambda~λ~mu~μ~nu~ν~xi~ξ~omicron~ο~pi~π~rho~ρ~sigmaf~ς~sigma~σ~tau~τ~upsilon~υ~phi~φ~chi~χ~psi~ψ~omega~ω~thetasym~ϑ~upsih~ϒ~piv~ϖ~bull~•~hellip~…~prime~′~Prime~″~oline~‾~frasl~⁄~weierp~℘~image~ℑ~real~ℜ~trade~™~alefsym~ℵ~larr~←~uarr~↑~rarr~→~darr~↓~harr~↔~crarr~↵~lArr~⇐~uArr~⇑~rArr~⇒~dArr~⇓~hArr~⇔~forall~∀~part~∂~exist~∃~empty~∅~nabla~∇~isin~∈~notin~∉~ni~∋~prod~∏~sum~∑~minus~−~lowast~∗~radic~√~prop~∝~infin~∞~ang~∠~and~∧~or~∨~cap~∩~cup~∪~int~∫~there4~∴~sim~∼~cong~≅~asymp~≈~ne~≠~equiv~≡~le~≤~ge~≥~sub~⊂~sup~⊃~nsub~⊄~sube~⊆~supe~⊇~oplus~⊕~otimes~⊗~perp~⊥~sdot~⋅~lceil~⌈~rceil~⌉~lfloor~⌊~rfloor~⌋~lang~〈~rang~〉~loz~◊~spades~♠~clubs~♣~hearts~♥~diams~♦~~nbsp~ ~iexcl~¡~cent~¢~pound~£~curren~¤~yen~¥~brvbar~¦~sect~§~uml~¨~copy~©~ordf~ª~laquo~«~not~¬~shy~­~reg~®~macr~¯~deg~°~plusmn~±~sup2~²~sup3~³~acute~´~micro~µ~para~¶~middot~·~cedil~¸~sup1~¹~ordm~º~raquo~»~frac14~¼~frac12~½~frac34~¾~iquest~¿~Agrave~À~Aacute~Á~Acirc~Â~Atilde~Ã~Auml~Ä~Aring~Å~AElig~Æ~Ccedil~Ç~Egrave~È~Eacute~É~Ecirc~Ê~Euml~Ë~Igrave~Ì~Iacute~Í~Icirc~Î~Iuml~Ï~ETH~Ð~Ntilde~Ñ~Ograve~Ò~Oacute~Ó~Ocirc~Ô~Otilde~Õ~Ouml~Ö~times~×~Oslash~Ø~Ugrave~Ù~Uacute~Ú~Ucirc~Û~Uuml~Ü~Yacute~Ý~THORN~Þ~szlig~ß~agrave~à~aacute~á~acirc~â~atilde~ã~auml~ä~aring~å~aelig~æ~ccedil~ç~egrave~è~eacute~é~ecirc~ê~euml~ë~igrave~ì~iacute~í~icirc~î~iuml~ï~eth~ð~ntilde~ñ~ograve~ò~oacute~ó~ocirc~ô~otilde~õ~ouml~ö~divide~÷~oslash~ø~ugrave~ù~uacute~ú~ucirc~û~uuml~ü~yacute~ý~thorn~þ~yuml~ÿ~quot~"~amp~&~lt~<~gt~>`);
406
- I.html5 = ae('Abreve~Ă~Acy~А~Afr~𝔄~Amacr~Ā~And~⩓~Aogon~Ą~Aopf~𝔸~ApplyFunction~⁡~Ascr~𝒜~Assign~≔~Backslash~∖~Barv~⫧~Barwed~⌆~Bcy~Б~Because~∵~Bernoullis~ℬ~Bfr~𝔅~Bopf~𝔹~Breve~˘~Bscr~ℬ~Bumpeq~≎~CHcy~Ч~Cacute~Ć~Cap~⋒~CapitalDifferentialD~ⅅ~Cayleys~ℭ~Ccaron~Č~Ccirc~Ĉ~Cconint~∰~Cdot~Ċ~Cedilla~¸~CenterDot~·~Cfr~ℭ~CircleDot~⊙~CircleMinus~⊖~CirclePlus~⊕~CircleTimes~⊗~ClockwiseContourIntegral~∲~CloseCurlyDoubleQuote~”~CloseCurlyQuote~’~Colon~∷~Colone~⩴~Congruent~≡~Conint~∯~ContourIntegral~∮~Copf~ℂ~Coproduct~∐~CounterClockwiseContourIntegral~∳~Cross~⨯~Cscr~𝒞~Cup~⋓~CupCap~≍~DD~ⅅ~DDotrahd~⤑~DJcy~Ђ~DScy~Ѕ~DZcy~Џ~Darr~↡~Dashv~⫤~Dcaron~Ď~Dcy~Д~Del~∇~Dfr~𝔇~DiacriticalAcute~´~DiacriticalDot~˙~DiacriticalDoubleAcute~˝~DiacriticalGrave~`~DiacriticalTilde~˜~Diamond~⋄~DifferentialD~ⅆ~Dopf~𝔻~Dot~¨~DotDot~⃜~DotEqual~≐~DoubleContourIntegral~∯~DoubleDot~¨~DoubleDownArrow~⇓~DoubleLeftArrow~⇐~DoubleLeftRightArrow~⇔~DoubleLeftTee~⫤~DoubleLongLeftArrow~⟸~DoubleLongLeftRightArrow~⟺~DoubleLongRightArrow~⟹~DoubleRightArrow~⇒~DoubleRightTee~⊨~DoubleUpArrow~⇑~DoubleUpDownArrow~⇕~DoubleVerticalBar~∥~DownArrow~↓~DownArrowBar~⤓~DownArrowUpArrow~⇵~DownBreve~̑~DownLeftRightVector~⥐~DownLeftTeeVector~⥞~DownLeftVector~↽~DownLeftVectorBar~⥖~DownRightTeeVector~⥟~DownRightVector~⇁~DownRightVectorBar~⥗~DownTee~⊤~DownTeeArrow~↧~Downarrow~⇓~Dscr~𝒟~Dstrok~Đ~ENG~Ŋ~Ecaron~Ě~Ecy~Э~Edot~Ė~Efr~𝔈~Element~∈~Emacr~Ē~EmptySmallSquare~◻~EmptyVerySmallSquare~▫~Eogon~Ę~Eopf~𝔼~Equal~⩵~EqualTilde~≂~Equilibrium~⇌~Escr~ℰ~Esim~⩳~Exists~∃~ExponentialE~ⅇ~Fcy~Ф~Ffr~𝔉~FilledSmallSquare~◼~FilledVerySmallSquare~▪~Fopf~𝔽~ForAll~∀~Fouriertrf~ℱ~Fscr~ℱ~GJcy~Ѓ~Gammad~Ϝ~Gbreve~Ğ~Gcedil~Ģ~Gcirc~Ĝ~Gcy~Г~Gdot~Ġ~Gfr~𝔊~Gg~⋙~Gopf~𝔾~GreaterEqual~≥~GreaterEqualLess~⋛~GreaterFullEqual~≧~GreaterGreater~⪢~GreaterLess~≷~GreaterSlantEqual~⩾~GreaterTilde~≳~Gscr~𝒢~Gt~≫~HARDcy~Ъ~Hacek~ˇ~Hat~^~Hcirc~Ĥ~Hfr~ℌ~HilbertSpace~ℋ~Hopf~ℍ~HorizontalLine~─~Hscr~ℋ~Hstrok~Ħ~HumpDownHump~≎~HumpEqual~≏~IEcy~Е~IJlig~IJ~IOcy~Ё~Icy~И~Idot~İ~Ifr~ℑ~Im~ℑ~Imacr~Ī~ImaginaryI~ⅈ~Implies~⇒~Int~∬~Integral~∫~Intersection~⋂~InvisibleComma~⁣~InvisibleTimes~⁢~Iogon~Į~Iopf~𝕀~Iscr~ℐ~Itilde~Ĩ~Iukcy~І~Jcirc~Ĵ~Jcy~Й~Jfr~𝔍~Jopf~𝕁~Jscr~𝒥~Jsercy~Ј~Jukcy~Є~KHcy~Х~KJcy~Ќ~Kcedil~Ķ~Kcy~К~Kfr~𝔎~Kopf~𝕂~Kscr~𝒦~LJcy~Љ~Lacute~Ĺ~Lang~⟪~Laplacetrf~ℒ~Larr~↞~Lcaron~Ľ~Lcedil~Ļ~Lcy~Л~LeftAngleBracket~⟨~LeftArrow~←~LeftArrowBar~⇤~LeftArrowRightArrow~⇆~LeftCeiling~⌈~LeftDoubleBracket~⟦~LeftDownTeeVector~⥡~LeftDownVector~⇃~LeftDownVectorBar~⥙~LeftFloor~⌊~LeftRightArrow~↔~LeftRightVector~⥎~LeftTee~⊣~LeftTeeArrow~↤~LeftTeeVector~⥚~LeftTriangle~⊲~LeftTriangleBar~⧏~LeftTriangleEqual~⊴~LeftUpDownVector~⥑~LeftUpTeeVector~⥠~LeftUpVector~↿~LeftUpVectorBar~⥘~LeftVector~↼~LeftVectorBar~⥒~Leftarrow~⇐~Leftrightarrow~⇔~LessEqualGreater~⋚~LessFullEqual~≦~LessGreater~≶~LessLess~⪡~LessSlantEqual~⩽~LessTilde~≲~Lfr~𝔏~Ll~⋘~Lleftarrow~⇚~Lmidot~Ŀ~LongLeftArrow~⟵~LongLeftRightArrow~⟷~LongRightArrow~⟶~Longleftarrow~⟸~Longleftrightarrow~⟺~Longrightarrow~⟹~Lopf~𝕃~LowerLeftArrow~↙~LowerRightArrow~↘~Lscr~ℒ~Lsh~↰~Lstrok~Ł~Lt~≪~Map~⤅~Mcy~М~MediumSpace~ ~Mellintrf~ℳ~Mfr~𝔐~MinusPlus~∓~Mopf~𝕄~Mscr~ℳ~NJcy~Њ~Nacute~Ń~Ncaron~Ň~Ncedil~Ņ~Ncy~Н~NegativeMediumSpace~​~NegativeThickSpace~​~NegativeThinSpace~​~NegativeVeryThinSpace~​~NestedGreaterGreater~≫~NestedLessLess~≪~NewLine~\n~Nfr~𝔑~NoBreak~⁠~NonBreakingSpace~ ~Nopf~ℕ~Not~⫬~NotCongruent~≢~NotCupCap~≭~NotDoubleVerticalBar~∦~NotElement~∉~NotEqual~≠~NotEqualTilde~≂̸~NotExists~∄~NotGreater~≯~NotGreaterEqual~≱~NotGreaterFullEqual~≧̸~NotGreaterGreater~≫̸~NotGreaterLess~≹~NotGreaterSlantEqual~⩾̸~NotGreaterTilde~≵~NotHumpDownHump~≎̸~NotHumpEqual~≏̸~NotLeftTriangle~⋪~NotLeftTriangleBar~⧏̸~NotLeftTriangleEqual~⋬~NotLess~≮~NotLessEqual~≰~NotLessGreater~≸~NotLessLess~≪̸~NotLessSlantEqual~⩽̸~NotLessTilde~≴~NotNestedGreaterGreater~⪢̸~NotNestedLessLess~⪡̸~NotPrecedes~⊀~NotPrecedesEqual~⪯̸~NotPrecedesSlantEqual~⋠~NotReverseElement~∌~NotRightTriangle~⋫~NotRightTriangleBar~⧐̸~NotRightTriangleEqual~⋭~NotSquareSubset~⊏̸~NotSquareSubsetEqual~⋢~NotSquareSuperset~⊐̸~NotSquareSupersetEqual~⋣~NotSubset~⊂⃒~NotSubsetEqual~⊈~NotSucceeds~⊁~NotSucceedsEqual~⪰̸~NotSucceedsSlantEqual~⋡~NotSucceedsTilde~≿̸~NotSuperset~⊃⃒~NotSupersetEqual~⊉~NotTilde~≁~NotTildeEqual~≄~NotTildeFullEqual~≇~NotTildeTilde~≉~NotVerticalBar~∤~Nscr~𝒩~Ocy~О~Odblac~Ő~Ofr~𝔒~Omacr~Ō~Oopf~𝕆~OpenCurlyDoubleQuote~“~OpenCurlyQuote~‘~Or~⩔~Oscr~𝒪~Otimes~⨷~OverBar~‾~OverBrace~⏞~OverBracket~⎴~OverParenthesis~⏜~PartialD~∂~Pcy~П~Pfr~𝔓~PlusMinus~±~Poincareplane~ℌ~Popf~ℙ~Pr~⪻~Precedes~≺~PrecedesEqual~⪯~PrecedesSlantEqual~≼~PrecedesTilde~≾~Product~∏~Proportion~∷~Proportional~∝~Pscr~𝒫~Qfr~𝔔~Qopf~ℚ~Qscr~𝒬~RBarr~⤐~Racute~Ŕ~Rang~⟫~Rarr~↠~Rarrtl~⤖~Rcaron~Ř~Rcedil~Ŗ~Rcy~Р~Re~ℜ~ReverseElement~∋~ReverseEquilibrium~⇋~ReverseUpEquilibrium~⥯~Rfr~ℜ~RightAngleBracket~⟩~RightArrow~→~RightArrowBar~⇥~RightArrowLeftArrow~⇄~RightCeiling~⌉~RightDoubleBracket~⟧~RightDownTeeVector~⥝~RightDownVector~⇂~RightDownVectorBar~⥕~RightFloor~⌋~RightTee~⊢~RightTeeArrow~↦~RightTeeVector~⥛~RightTriangle~⊳~RightTriangleBar~⧐~RightTriangleEqual~⊵~RightUpDownVector~⥏~RightUpTeeVector~⥜~RightUpVector~↾~RightUpVectorBar~⥔~RightVector~⇀~RightVectorBar~⥓~Rightarrow~⇒~Ropf~ℝ~RoundImplies~⥰~Rrightarrow~⇛~Rscr~ℛ~Rsh~↱~RuleDelayed~⧴~SHCHcy~Щ~SHcy~Ш~SOFTcy~Ь~Sacute~Ś~Sc~⪼~Scedil~Ş~Scirc~Ŝ~Scy~С~Sfr~𝔖~ShortDownArrow~↓~ShortLeftArrow~←~ShortRightArrow~→~ShortUpArrow~↑~SmallCircle~∘~Sopf~𝕊~Sqrt~√~Square~□~SquareIntersection~⊓~SquareSubset~⊏~SquareSubsetEqual~⊑~SquareSuperset~⊐~SquareSupersetEqual~⊒~SquareUnion~⊔~Sscr~𝒮~Star~⋆~Sub~⋐~Subset~⋐~SubsetEqual~⊆~Succeeds~≻~SucceedsEqual~⪰~SucceedsSlantEqual~≽~SucceedsTilde~≿~SuchThat~∋~Sum~∑~Sup~⋑~Superset~⊃~SupersetEqual~⊇~Supset~⋑~TRADE~™~TSHcy~Ћ~TScy~Ц~Tab~ ~Tcaron~Ť~Tcedil~Ţ~Tcy~Т~Tfr~𝔗~Therefore~∴~ThickSpace~  ~ThinSpace~ ~Tilde~∼~TildeEqual~≃~TildeFullEqual~≅~TildeTilde~≈~Topf~𝕋~TripleDot~⃛~Tscr~𝒯~Tstrok~Ŧ~Uarr~↟~Uarrocir~⥉~Ubrcy~Ў~Ubreve~Ŭ~Ucy~У~Udblac~Ű~Ufr~𝔘~Umacr~Ū~UnderBar~_~UnderBrace~⏟~UnderBracket~⎵~UnderParenthesis~⏝~Union~⋃~UnionPlus~⊎~Uogon~Ų~Uopf~𝕌~UpArrow~↑~UpArrowBar~⤒~UpArrowDownArrow~⇅~UpDownArrow~↕~UpEquilibrium~⥮~UpTee~⊥~UpTeeArrow~↥~Uparrow~⇑~Updownarrow~⇕~UpperLeftArrow~↖~UpperRightArrow~↗~Upsi~ϒ~Uring~Ů~Uscr~𝒰~Utilde~Ũ~VDash~⊫~Vbar~⫫~Vcy~В~Vdash~⊩~Vdashl~⫦~Vee~⋁~Verbar~‖~Vert~‖~VerticalBar~∣~VerticalLine~|~VerticalSeparator~❘~VerticalTilde~≀~VeryThinSpace~ ~Vfr~𝔙~Vopf~𝕍~Vscr~𝒱~Vvdash~⊪~Wcirc~Ŵ~Wedge~⋀~Wfr~𝔚~Wopf~𝕎~Wscr~𝒲~Xfr~𝔛~Xopf~𝕏~Xscr~𝒳~YAcy~Я~YIcy~Ї~YUcy~Ю~Ycirc~Ŷ~Ycy~Ы~Yfr~𝔜~Yopf~𝕐~Yscr~𝒴~ZHcy~Ж~Zacute~Ź~Zcaron~Ž~Zcy~З~Zdot~Ż~ZeroWidthSpace~​~Zfr~ℨ~Zopf~ℤ~Zscr~𝒵~abreve~ă~ac~∾~acE~∾̳~acd~∿~acy~а~af~⁡~afr~𝔞~aleph~ℵ~amacr~ā~amalg~⨿~andand~⩕~andd~⩜~andslope~⩘~andv~⩚~ange~⦤~angle~∠~angmsd~∡~angmsdaa~⦨~angmsdab~⦩~angmsdac~⦪~angmsdad~⦫~angmsdae~⦬~angmsdaf~⦭~angmsdag~⦮~angmsdah~⦯~angrt~∟~angrtvb~⊾~angrtvbd~⦝~angsph~∢~angst~Å~angzarr~⍼~aogon~ą~aopf~𝕒~ap~≈~apE~⩰~apacir~⩯~ape~≊~apid~≋~approx~≈~approxeq~≊~ascr~𝒶~ast~*~asympeq~≍~awconint~∳~awint~⨑~bNot~⫭~backcong~≌~backepsilon~϶~backprime~‵~backsim~∽~backsimeq~⋍~barvee~⊽~barwed~⌅~barwedge~⌅~bbrk~⎵~bbrktbrk~⎶~bcong~≌~bcy~б~becaus~∵~because~∵~bemptyv~⦰~bepsi~϶~bernou~ℬ~beth~ℶ~between~≬~bfr~𝔟~bigcap~⋂~bigcirc~◯~bigcup~⋃~bigodot~⨀~bigoplus~⨁~bigotimes~⨂~bigsqcup~⨆~bigstar~★~bigtriangledown~▽~bigtriangleup~△~biguplus~⨄~bigvee~⋁~bigwedge~⋀~bkarow~⤍~blacklozenge~⧫~blacksquare~▪~blacktriangle~▴~blacktriangledown~▾~blacktriangleleft~◂~blacktriangleright~▸~blank~␣~blk12~▒~blk14~░~blk34~▓~block~█~bne~=⃥~bnequiv~≡⃥~bnot~⌐~bopf~𝕓~bot~⊥~bottom~⊥~bowtie~⋈~boxDL~╗~boxDR~╔~boxDl~╖~boxDr~╓~boxH~═~boxHD~╦~boxHU~╩~boxHd~╤~boxHu~╧~boxUL~╝~boxUR~╚~boxUl~╜~boxUr~╙~boxV~║~boxVH~╬~boxVL~╣~boxVR~╠~boxVh~╫~boxVl~╢~boxVr~╟~boxbox~⧉~boxdL~╕~boxdR~╒~boxdl~┐~boxdr~┌~boxh~─~boxhD~╥~boxhU~╨~boxhd~┬~boxhu~┴~boxminus~⊟~boxplus~⊞~boxtimes~⊠~boxuL~╛~boxuR~╘~boxul~┘~boxur~└~boxv~│~boxvH~╪~boxvL~╡~boxvR~╞~boxvh~┼~boxvl~┤~boxvr~├~bprime~‵~breve~˘~bscr~𝒷~bsemi~⁏~bsim~∽~bsime~⋍~bsol~\\~bsolb~⧅~bsolhsub~⟈~bullet~•~bump~≎~bumpE~⪮~bumpe~≏~bumpeq~≏~cacute~ć~capand~⩄~capbrcup~⩉~capcap~⩋~capcup~⩇~capdot~⩀~caps~∩︀~caret~⁁~caron~ˇ~ccaps~⩍~ccaron~č~ccirc~ĉ~ccups~⩌~ccupssm~⩐~cdot~ċ~cemptyv~⦲~centerdot~·~cfr~𝔠~chcy~ч~check~✓~checkmark~✓~cir~○~cirE~⧃~circeq~≗~circlearrowleft~↺~circlearrowright~↻~circledR~®~circledS~Ⓢ~circledast~⊛~circledcirc~⊚~circleddash~⊝~cire~≗~cirfnint~⨐~cirmid~⫯~cirscir~⧂~clubsuit~♣~colon~:~colone~≔~coloneq~≔~comma~,~commat~@~comp~∁~compfn~∘~complement~∁~complexes~ℂ~congdot~⩭~conint~∮~copf~𝕔~coprod~∐~copysr~℗~cross~✗~cscr~𝒸~csub~⫏~csube~⫑~csup~⫐~csupe~⫒~ctdot~⋯~cudarrl~⤸~cudarrr~⤵~cuepr~⋞~cuesc~⋟~cularr~↶~cularrp~⤽~cupbrcap~⩈~cupcap~⩆~cupcup~⩊~cupdot~⊍~cupor~⩅~cups~∪︀~curarr~↷~curarrm~⤼~curlyeqprec~⋞~curlyeqsucc~⋟~curlyvee~⋎~curlywedge~⋏~curvearrowleft~↶~curvearrowright~↷~cuvee~⋎~cuwed~⋏~cwconint~∲~cwint~∱~cylcty~⌭~dHar~⥥~daleth~ℸ~dash~‐~dashv~⊣~dbkarow~⤏~dblac~˝~dcaron~ď~dcy~д~dd~ⅆ~ddagger~‡~ddarr~⇊~ddotseq~⩷~demptyv~⦱~dfisht~⥿~dfr~𝔡~dharl~⇃~dharr~⇂~diam~⋄~diamond~⋄~diamondsuit~♦~die~¨~digamma~ϝ~disin~⋲~div~÷~divideontimes~⋇~divonx~⋇~djcy~ђ~dlcorn~⌞~dlcrop~⌍~dollar~$~dopf~𝕕~dot~˙~doteq~≐~doteqdot~≑~dotminus~∸~dotplus~∔~dotsquare~⊡~doublebarwedge~⌆~downarrow~↓~downdownarrows~⇊~downharpoonleft~⇃~downharpoonright~⇂~drbkarow~⤐~drcorn~⌟~drcrop~⌌~dscr~𝒹~dscy~ѕ~dsol~⧶~dstrok~đ~dtdot~⋱~dtri~▿~dtrif~▾~duarr~⇵~duhar~⥯~dwangle~⦦~dzcy~џ~dzigrarr~⟿~eDDot~⩷~eDot~≑~easter~⩮~ecaron~ě~ecir~≖~ecolon~≕~ecy~э~edot~ė~ee~ⅇ~efDot~≒~efr~𝔢~eg~⪚~egs~⪖~egsdot~⪘~el~⪙~elinters~⏧~ell~ℓ~els~⪕~elsdot~⪗~emacr~ē~emptyset~∅~emptyv~∅~emsp13~ ~emsp14~ ~eng~ŋ~eogon~ę~eopf~𝕖~epar~⋕~eparsl~⧣~eplus~⩱~epsi~ε~epsiv~ϵ~eqcirc~≖~eqcolon~≕~eqsim~≂~eqslantgtr~⪖~eqslantless~⪕~equals~=~equest~≟~equivDD~⩸~eqvparsl~⧥~erDot~≓~erarr~⥱~escr~ℯ~esdot~≐~esim~≂~excl~!~expectation~ℰ~exponentiale~ⅇ~fallingdotseq~≒~fcy~ф~female~♀~ffilig~ffi~fflig~ff~ffllig~ffl~ffr~𝔣~filig~fi~fjlig~fj~flat~♭~fllig~fl~fltns~▱~fopf~𝕗~fork~⋔~forkv~⫙~fpartint~⨍~frac13~⅓~frac15~⅕~frac16~⅙~frac18~⅛~frac23~⅔~frac25~⅖~frac35~⅗~frac38~⅜~frac45~⅘~frac56~⅚~frac58~⅝~frac78~⅞~frown~⌢~fscr~𝒻~gE~≧~gEl~⪌~gacute~ǵ~gammad~ϝ~gap~⪆~gbreve~ğ~gcirc~ĝ~gcy~г~gdot~ġ~gel~⋛~geq~≥~geqq~≧~geqslant~⩾~ges~⩾~gescc~⪩~gesdot~⪀~gesdoto~⪂~gesdotol~⪄~gesl~⋛︀~gesles~⪔~gfr~𝔤~gg~≫~ggg~⋙~gimel~ℷ~gjcy~ѓ~gl~≷~glE~⪒~gla~⪥~glj~⪤~gnE~≩~gnap~⪊~gnapprox~⪊~gne~⪈~gneq~⪈~gneqq~≩~gnsim~⋧~gopf~𝕘~grave~`~gscr~ℊ~gsim~≳~gsime~⪎~gsiml~⪐~gtcc~⪧~gtcir~⩺~gtdot~⋗~gtlPar~⦕~gtquest~⩼~gtrapprox~⪆~gtrarr~⥸~gtrdot~⋗~gtreqless~⋛~gtreqqless~⪌~gtrless~≷~gtrsim~≳~gvertneqq~≩︀~gvnE~≩︀~hairsp~ ~half~½~hamilt~ℋ~hardcy~ъ~harrcir~⥈~harrw~↭~hbar~ℏ~hcirc~ĥ~heartsuit~♥~hercon~⊹~hfr~𝔥~hksearow~⤥~hkswarow~⤦~hoarr~⇿~homtht~∻~hookleftarrow~↩~hookrightarrow~↪~hopf~𝕙~horbar~―~hscr~𝒽~hslash~ℏ~hstrok~ħ~hybull~⁃~hyphen~‐~ic~⁣~icy~и~iecy~е~iff~⇔~ifr~𝔦~ii~ⅈ~iiiint~⨌~iiint~∭~iinfin~⧜~iiota~℩~ijlig~ij~imacr~ī~imagline~ℐ~imagpart~ℑ~imath~ı~imof~⊷~imped~Ƶ~in~∈~incare~℅~infintie~⧝~inodot~ı~intcal~⊺~integers~ℤ~intercal~⊺~intlarhk~⨗~intprod~⨼~iocy~ё~iogon~į~iopf~𝕚~iprod~⨼~iscr~𝒾~isinE~⋹~isindot~⋵~isins~⋴~isinsv~⋳~isinv~∈~it~⁢~itilde~ĩ~iukcy~і~jcirc~ĵ~jcy~й~jfr~𝔧~jmath~ȷ~jopf~𝕛~jscr~𝒿~jsercy~ј~jukcy~є~kappav~ϰ~kcedil~ķ~kcy~к~kfr~𝔨~kgreen~ĸ~khcy~х~kjcy~ќ~kopf~𝕜~kscr~𝓀~lAarr~⇚~lAtail~⤛~lBarr~⤎~lE~≦~lEg~⪋~lHar~⥢~lacute~ĺ~laemptyv~⦴~lagran~ℒ~langd~⦑~langle~⟨~lap~⪅~larrb~⇤~larrbfs~⤟~larrfs~⤝~larrhk~↩~larrlp~↫~larrpl~⤹~larrsim~⥳~larrtl~↢~lat~⪫~latail~⤙~late~⪭~lates~⪭︀~lbarr~⤌~lbbrk~❲~lbrace~{~lbrack~[~lbrke~⦋~lbrksld~⦏~lbrkslu~⦍~lcaron~ľ~lcedil~ļ~lcub~{~lcy~л~ldca~⤶~ldquor~„~ldrdhar~⥧~ldrushar~⥋~ldsh~↲~leftarrow~←~leftarrowtail~↢~leftharpoondown~↽~leftharpoonup~↼~leftleftarrows~⇇~leftrightarrow~↔~leftrightarrows~⇆~leftrightharpoons~⇋~leftrightsquigarrow~↭~leftthreetimes~⋋~leg~⋚~leq~≤~leqq~≦~leqslant~⩽~les~⩽~lescc~⪨~lesdot~⩿~lesdoto~⪁~lesdotor~⪃~lesg~⋚︀~lesges~⪓~lessapprox~⪅~lessdot~⋖~lesseqgtr~⋚~lesseqqgtr~⪋~lessgtr~≶~lesssim~≲~lfisht~⥼~lfr~𝔩~lg~≶~lgE~⪑~lhard~↽~lharu~↼~lharul~⥪~lhblk~▄~ljcy~љ~ll~≪~llarr~⇇~llcorner~⌞~llhard~⥫~lltri~◺~lmidot~ŀ~lmoust~⎰~lmoustache~⎰~lnE~≨~lnap~⪉~lnapprox~⪉~lne~⪇~lneq~⪇~lneqq~≨~lnsim~⋦~loang~⟬~loarr~⇽~lobrk~⟦~longleftarrow~⟵~longleftrightarrow~⟷~longmapsto~⟼~longrightarrow~⟶~looparrowleft~↫~looparrowright~↬~lopar~⦅~lopf~𝕝~loplus~⨭~lotimes~⨴~lowbar~_~lozenge~◊~lozf~⧫~lpar~(~lparlt~⦓~lrarr~⇆~lrcorner~⌟~lrhar~⇋~lrhard~⥭~lrtri~⊿~lscr~𝓁~lsh~↰~lsim~≲~lsime~⪍~lsimg~⪏~lsqb~[~lsquor~‚~lstrok~ł~ltcc~⪦~ltcir~⩹~ltdot~⋖~lthree~⋋~ltimes~⋉~ltlarr~⥶~ltquest~⩻~ltrPar~⦖~ltri~◃~ltrie~⊴~ltrif~◂~lurdshar~⥊~luruhar~⥦~lvertneqq~≨︀~lvnE~≨︀~mDDot~∺~male~♂~malt~✠~maltese~✠~map~↦~mapsto~↦~mapstodown~↧~mapstoleft~↤~mapstoup~↥~marker~▮~mcomma~⨩~mcy~м~measuredangle~∡~mfr~𝔪~mho~℧~mid~∣~midast~*~midcir~⫰~minusb~⊟~minusd~∸~minusdu~⨪~mlcp~⫛~mldr~…~mnplus~∓~models~⊧~mopf~𝕞~mp~∓~mscr~𝓂~mstpos~∾~multimap~⊸~mumap~⊸~nGg~⋙̸~nGt~≫⃒~nGtv~≫̸~nLeftarrow~⇍~nLeftrightarrow~⇎~nLl~⋘̸~nLt~≪⃒~nLtv~≪̸~nRightarrow~⇏~nVDash~⊯~nVdash~⊮~nacute~ń~nang~∠⃒~nap~≉~napE~⩰̸~napid~≋̸~napos~ʼn~napprox~≉~natur~♮~natural~♮~naturals~ℕ~nbump~≎̸~nbumpe~≏̸~ncap~⩃~ncaron~ň~ncedil~ņ~ncong~≇~ncongdot~⩭̸~ncup~⩂~ncy~н~neArr~⇗~nearhk~⤤~nearr~↗~nearrow~↗~nedot~≐̸~nequiv~≢~nesear~⤨~nesim~≂̸~nexist~∄~nexists~∄~nfr~𝔫~ngE~≧̸~nge~≱~ngeq~≱~ngeqq~≧̸~ngeqslant~⩾̸~nges~⩾̸~ngsim~≵~ngt~≯~ngtr~≯~nhArr~⇎~nharr~↮~nhpar~⫲~nis~⋼~nisd~⋺~niv~∋~njcy~њ~nlArr~⇍~nlE~≦̸~nlarr~↚~nldr~‥~nle~≰~nleftarrow~↚~nleftrightarrow~↮~nleq~≰~nleqq~≦̸~nleqslant~⩽̸~nles~⩽̸~nless~≮~nlsim~≴~nlt~≮~nltri~⋪~nltrie~⋬~nmid~∤~nopf~𝕟~notinE~⋹̸~notindot~⋵̸~notinva~∉~notinvb~⋷~notinvc~⋶~notni~∌~notniva~∌~notnivb~⋾~notnivc~⋽~npar~∦~nparallel~∦~nparsl~⫽⃥~npart~∂̸~npolint~⨔~npr~⊀~nprcue~⋠~npre~⪯̸~nprec~⊀~npreceq~⪯̸~nrArr~⇏~nrarr~↛~nrarrc~⤳̸~nrarrw~↝̸~nrightarrow~↛~nrtri~⋫~nrtrie~⋭~nsc~⊁~nsccue~⋡~nsce~⪰̸~nscr~𝓃~nshortmid~∤~nshortparallel~∦~nsim~≁~nsime~≄~nsimeq~≄~nsmid~∤~nspar~∦~nsqsube~⋢~nsqsupe~⋣~nsubE~⫅̸~nsube~⊈~nsubset~⊂⃒~nsubseteq~⊈~nsubseteqq~⫅̸~nsucc~⊁~nsucceq~⪰̸~nsup~⊅~nsupE~⫆̸~nsupe~⊉~nsupset~⊃⃒~nsupseteq~⊉~nsupseteqq~⫆̸~ntgl~≹~ntlg~≸~ntriangleleft~⋪~ntrianglelefteq~⋬~ntriangleright~⋫~ntrianglerighteq~⋭~num~#~numero~№~numsp~ ~nvDash~⊭~nvHarr~⤄~nvap~≍⃒~nvdash~⊬~nvge~≥⃒~nvgt~>⃒~nvinfin~⧞~nvlArr~⤂~nvle~≤⃒~nvlt~<⃒~nvltrie~⊴⃒~nvrArr~⤃~nvrtrie~⊵⃒~nvsim~∼⃒~nwArr~⇖~nwarhk~⤣~nwarr~↖~nwarrow~↖~nwnear~⤧~oS~Ⓢ~oast~⊛~ocir~⊚~ocy~о~odash~⊝~odblac~ő~odiv~⨸~odot~⊙~odsold~⦼~ofcir~⦿~ofr~𝔬~ogon~˛~ogt~⧁~ohbar~⦵~ohm~Ω~oint~∮~olarr~↺~olcir~⦾~olcross~⦻~olt~⧀~omacr~ō~omid~⦶~ominus~⊖~oopf~𝕠~opar~⦷~operp~⦹~orarr~↻~ord~⩝~order~ℴ~orderof~ℴ~origof~⊶~oror~⩖~orslope~⩗~orv~⩛~oscr~ℴ~osol~⊘~otimesas~⨶~ovbar~⌽~par~∥~parallel~∥~parsim~⫳~parsl~⫽~pcy~п~percnt~%~period~.~pertenk~‱~pfr~𝔭~phiv~ϕ~phmmat~ℳ~phone~☎~pitchfork~⋔~planck~ℏ~planckh~ℎ~plankv~ℏ~plus~+~plusacir~⨣~plusb~⊞~pluscir~⨢~plusdo~∔~plusdu~⨥~pluse~⩲~plussim~⨦~plustwo~⨧~pm~±~pointint~⨕~popf~𝕡~pr~≺~prE~⪳~prap~⪷~prcue~≼~pre~⪯~prec~≺~precapprox~⪷~preccurlyeq~≼~preceq~⪯~precnapprox~⪹~precneqq~⪵~precnsim~⋨~precsim~≾~primes~ℙ~prnE~⪵~prnap~⪹~prnsim~⋨~profalar~⌮~profline~⌒~profsurf~⌓~propto~∝~prsim~≾~prurel~⊰~pscr~𝓅~puncsp~ ~qfr~𝔮~qint~⨌~qopf~𝕢~qprime~⁗~qscr~𝓆~quaternions~ℍ~quatint~⨖~quest~?~questeq~≟~rAarr~⇛~rAtail~⤜~rBarr~⤏~rHar~⥤~race~∽̱~racute~ŕ~raemptyv~⦳~rangd~⦒~range~⦥~rangle~⟩~rarrap~⥵~rarrb~⇥~rarrbfs~⤠~rarrc~⤳~rarrfs~⤞~rarrhk~↪~rarrlp~↬~rarrpl~⥅~rarrsim~⥴~rarrtl~↣~rarrw~↝~ratail~⤚~ratio~∶~rationals~ℚ~rbarr~⤍~rbbrk~❳~rbrace~}~rbrack~]~rbrke~⦌~rbrksld~⦎~rbrkslu~⦐~rcaron~ř~rcedil~ŗ~rcub~}~rcy~р~rdca~⤷~rdldhar~⥩~rdquor~”~rdsh~↳~realine~ℛ~realpart~ℜ~reals~ℝ~rect~▭~rfisht~⥽~rfr~𝔯~rhard~⇁~rharu~⇀~rharul~⥬~rhov~ϱ~rightarrow~→~rightarrowtail~↣~rightharpoondown~⇁~rightharpoonup~⇀~rightleftarrows~⇄~rightleftharpoons~⇌~rightrightarrows~⇉~rightsquigarrow~↝~rightthreetimes~⋌~ring~˚~risingdotseq~≓~rlarr~⇄~rlhar~⇌~rmoust~⎱~rmoustache~⎱~rnmid~⫮~roang~⟭~roarr~⇾~robrk~⟧~ropar~⦆~ropf~𝕣~roplus~⨮~rotimes~⨵~rpar~)~rpargt~⦔~rppolint~⨒~rrarr~⇉~rscr~𝓇~rsh~↱~rsqb~]~rsquor~’~rthree~⋌~rtimes~⋊~rtri~▹~rtrie~⊵~rtrif~▸~rtriltri~⧎~ruluhar~⥨~rx~℞~sacute~ś~sc~≻~scE~⪴~scap~⪸~sccue~≽~sce~⪰~scedil~ş~scirc~ŝ~scnE~⪶~scnap~⪺~scnsim~⋩~scpolint~⨓~scsim~≿~scy~с~sdotb~⊡~sdote~⩦~seArr~⇘~searhk~⤥~searr~↘~searrow~↘~semi~;~seswar~⤩~setminus~∖~setmn~∖~sext~✶~sfr~𝔰~sfrown~⌢~sharp~♯~shchcy~щ~shcy~ш~shortmid~∣~shortparallel~∥~sigmav~ς~simdot~⩪~sime~≃~simeq~≃~simg~⪞~simgE~⪠~siml~⪝~simlE~⪟~simne~≆~simplus~⨤~simrarr~⥲~slarr~←~smallsetminus~∖~smashp~⨳~smeparsl~⧤~smid~∣~smile~⌣~smt~⪪~smte~⪬~smtes~⪬︀~softcy~ь~sol~/~solb~⧄~solbar~⌿~sopf~𝕤~spadesuit~♠~spar~∥~sqcap~⊓~sqcaps~⊓︀~sqcup~⊔~sqcups~⊔︀~sqsub~⊏~sqsube~⊑~sqsubset~⊏~sqsubseteq~⊑~sqsup~⊐~sqsupe~⊒~sqsupset~⊐~sqsupseteq~⊒~squ~□~square~□~squarf~▪~squf~▪~srarr~→~sscr~𝓈~ssetmn~∖~ssmile~⌣~sstarf~⋆~star~☆~starf~★~straightepsilon~ϵ~straightphi~ϕ~strns~¯~subE~⫅~subdot~⪽~subedot~⫃~submult~⫁~subnE~⫋~subne~⊊~subplus~⪿~subrarr~⥹~subset~⊂~subseteq~⊆~subseteqq~⫅~subsetneq~⊊~subsetneqq~⫋~subsim~⫇~subsub~⫕~subsup~⫓~succ~≻~succapprox~⪸~succcurlyeq~≽~succeq~⪰~succnapprox~⪺~succneqq~⪶~succnsim~⋩~succsim~≿~sung~♪~supE~⫆~supdot~⪾~supdsub~⫘~supedot~⫄~suphsol~⟉~suphsub~⫗~suplarr~⥻~supmult~⫂~supnE~⫌~supne~⊋~supplus~⫀~supset~⊃~supseteq~⊇~supseteqq~⫆~supsetneq~⊋~supsetneqq~⫌~supsim~⫈~supsub~⫔~supsup~⫖~swArr~⇙~swarhk~⤦~swarr~↙~swarrow~↙~swnwar~⤪~target~⌖~tbrk~⎴~tcaron~ť~tcedil~ţ~tcy~т~tdot~⃛~telrec~⌕~tfr~𝔱~therefore~∴~thetav~ϑ~thickapprox~≈~thicksim~∼~thkap~≈~thksim~∼~timesb~⊠~timesbar~⨱~timesd~⨰~tint~∭~toea~⤨~top~⊤~topbot~⌶~topcir~⫱~topf~𝕥~topfork~⫚~tosa~⤩~tprime~‴~triangle~▵~triangledown~▿~triangleleft~◃~trianglelefteq~⊴~triangleq~≜~triangleright~▹~trianglerighteq~⊵~tridot~◬~trie~≜~triminus~⨺~triplus~⨹~trisb~⧍~tritime~⨻~trpezium~⏢~tscr~𝓉~tscy~ц~tshcy~ћ~tstrok~ŧ~twixt~≬~twoheadleftarrow~↞~twoheadrightarrow~↠~uHar~⥣~ubrcy~ў~ubreve~ŭ~ucy~у~udarr~⇅~udblac~ű~udhar~⥮~ufisht~⥾~ufr~𝔲~uharl~↿~uharr~↾~uhblk~▀~ulcorn~⌜~ulcorner~⌜~ulcrop~⌏~ultri~◸~umacr~ū~uogon~ų~uopf~𝕦~uparrow~↑~updownarrow~↕~upharpoonleft~↿~upharpoonright~↾~uplus~⊎~upsi~υ~upuparrows~⇈~urcorn~⌝~urcorner~⌝~urcrop~⌎~uring~ů~urtri~◹~uscr~𝓊~utdot~⋰~utilde~ũ~utri~▵~utrif~▴~uuarr~⇈~uwangle~⦧~vArr~⇕~vBar~⫨~vBarv~⫩~vDash~⊨~vangrt~⦜~varepsilon~ϵ~varkappa~ϰ~varnothing~∅~varphi~ϕ~varpi~ϖ~varpropto~∝~varr~↕~varrho~ϱ~varsigma~ς~varsubsetneq~⊊︀~varsubsetneqq~⫋︀~varsupsetneq~⊋︀~varsupsetneqq~⫌︀~vartheta~ϑ~vartriangleleft~⊲~vartriangleright~⊳~vcy~в~vdash~⊢~vee~∨~veebar~⊻~veeeq~≚~vellip~⋮~verbar~|~vert~|~vfr~𝔳~vltri~⊲~vnsub~⊂⃒~vnsup~⊃⃒~vopf~𝕧~vprop~∝~vrtri~⊳~vscr~𝓋~vsubnE~⫋︀~vsubne~⊊︀~vsupnE~⫌︀~vsupne~⊋︀~vzigzag~⦚~wcirc~ŵ~wedbar~⩟~wedge~∧~wedgeq~≙~wfr~𝔴~wopf~𝕨~wp~℘~wr~≀~wreath~≀~wscr~𝓌~xcap~⋂~xcirc~◯~xcup~⋃~xdtri~▽~xfr~𝔵~xhArr~⟺~xharr~⟷~xlArr~⟸~xlarr~⟵~xmap~⟼~xnis~⋻~xodot~⨀~xopf~𝕩~xoplus~⨁~xotime~⨂~xrArr~⟹~xrarr~⟶~xscr~𝓍~xsqcup~⨆~xuplus~⨄~xutri~△~xvee~⋁~xwedge~⋀~yacy~я~ycirc~ŷ~ycy~ы~yfr~𝔶~yicy~ї~yopf~𝕪~yscr~𝓎~yucy~ю~zacute~ź~zcaron~ž~zcy~з~zdot~ż~zeetrf~ℨ~zfr~𝔷~zhcy~ж~zigrarr~⇝~zopf~𝕫~zscr~𝓏~~AMP~&~COPY~©~GT~>~LT~<~QUOT~"~REG~®', I.html4);
407
- var Be = {
408
- 0: 65533,
409
- 128: 8364,
410
- 130: 8218,
411
- 131: 402,
412
- 132: 8222,
413
- 133: 8230,
414
- 134: 8224,
415
- 135: 8225,
416
- 136: 710,
417
- 137: 8240,
418
- 138: 352,
419
- 139: 8249,
420
- 140: 338,
421
- 142: 381,
422
- 145: 8216,
423
- 146: 8217,
424
- 147: 8220,
425
- 148: 8221,
426
- 149: 8226,
427
- 150: 8211,
428
- 151: 8212,
429
- 152: 732,
430
- 153: 8482,
431
- 154: 353,
432
- 155: 8250,
433
- 156: 339,
434
- 158: 382,
435
- 159: 376
436
- }, Ve = String.fromCodePoint || function(e) {
437
- return String.fromCharCode(Math.floor((e - 65536) / 1024) + 55296, (e - 65536) % 1024 + 56320);
438
- }, P = function() {
439
- return P = Object.assign || function(e) {
440
- for (var t, s = 1, n = arguments.length; s < n; s++) {
441
- t = arguments[s];
442
- for (var l in t) Object.prototype.hasOwnProperty.call(t, l) && (e[l] = t[l]);
443
- }
444
- return e;
445
- }, P.apply(this, arguments);
446
- }, He = P(P({}, I), { all: I.html5 }), Fe = {
447
- scope: "body",
448
- level: "all"
449
- }, re = /&(?:#\d+|#[xX][\da-fA-F]+|[0-9a-zA-Z]+);/g, te = /&(?:#\d+|#[xX][\da-fA-F]+|[0-9a-zA-Z]+)[;=]?/g, fe = {
450
- xml: {
451
- strict: re,
452
- attribute: te,
453
- body: ee.xml
454
- },
455
- html4: {
456
- strict: re,
457
- attribute: te,
458
- body: ee.html4
459
- },
460
- html5: {
461
- strict: re,
462
- attribute: te,
463
- body: ee.html5
464
- }
465
- }, Ge = P(P({}, fe), { all: fe.html5 }), we = String.fromCharCode, Me = we(65533);
466
- function ze(e, t, s, n) {
467
- var l = e, o = e[e.length - 1];
468
- if (s && o === "=")
469
- l = e;
470
- else if (n && o !== ";")
471
- l = e;
472
- else {
473
- var a = t[e];
474
- if (a)
475
- l = a;
476
- else if (e[0] === "&" && e[1] === "#") {
477
- var c = e[2], p = c == "x" || c == "X" ? parseInt(e.substr(3), 16) : parseInt(e.substr(2));
478
- l = p >= 1114111 ? Me : p > 65535 ? Ve(p) : we(Be[p] || p);
1493
+ var ve = je();
1494
+ const N = /* @__PURE__ */ zt(ve), O = ({ text: t }) => t ? /* @__PURE__ */ r.jsx("div", { className: "title", dangerouslySetInnerHTML: { __html: t } }) : null, $e = ({ node: t }) => {
1495
+ const { document: e } = U(), s = e.attributes || {}, n = t.attributes, i = () => s.icons === "font" && !n.icon ? /* @__PURE__ */ r.jsx("i", { className: `fa icon-${n.name}`, title: `${n.textlabel}` }) : /* @__PURE__ */ r.jsx("img", { src: t.iconUri, alt: `${n.textlabel}` });
1496
+ return /* @__PURE__ */ r.jsx(
1497
+ "div",
1498
+ {
1499
+ id: t.id || void 0,
1500
+ className: N("admonitionblock", `${n.name}`, t.role),
1501
+ ...t.lineNumber ? { "data-lineno": t.lineNumber } : {},
1502
+ children: /* @__PURE__ */ r.jsx("table", { children: /* @__PURE__ */ r.jsxs("tr", { children: [
1503
+ /* @__PURE__ */ r.jsx("td", { className: "icon", children: s.icons ? i() : /* @__PURE__ */ r.jsx("div", { className: "title", children: `${n.textlabel}` }) }),
1504
+ t.blocks.length > 0 ? /* @__PURE__ */ r.jsxs("td", { className: "content", children: [
1505
+ /* @__PURE__ */ r.jsx(O, { text: t.title }),
1506
+ /* @__PURE__ */ r.jsx(P, { blocks: t.blocks })
1507
+ ] }) : /* @__PURE__ */ r.jsx(
1508
+ "td",
1509
+ {
1510
+ className: "content",
1511
+ dangerouslySetInnerHTML: {
1512
+ __html: (t.title ? `<div class="title">${t.title}</div>` : "") + E(t.inlines).__html
1513
+ }
1514
+ }
1515
+ )
1516
+ ] }) })
1517
+ }
1518
+ );
1519
+ }, Se = ({ node: t }) => {
1520
+ const e = t.attributes.start, s = t.attributes.end, n = e || s ? `#t=${e || ""}${s ? "," + s : ""}` : "", i = [
1521
+ t.autoplay ? "autoplay" : "",
1522
+ t.noControls ? "" : "controls",
1523
+ t.loop ? "loop" : ""
1524
+ ].filter(Boolean).join(" "), a = `<audio src="${t.mediaUri}${n}"${i ? " " + i : ""}>` + "Your browser does not support the audio tag.</audio>";
1525
+ return /* @__PURE__ */ r.jsxs(
1526
+ "div",
1527
+ {
1528
+ id: t.id || void 0,
1529
+ className: N("audioblock", t.role),
1530
+ ...t.lineNumber ? { "data-lineno": t.lineNumber } : {},
1531
+ children: [
1532
+ /* @__PURE__ */ r.jsx(O, { text: t.title }),
1533
+ /* @__PURE__ */ r.jsx("div", { className: "content", dangerouslySetInnerHTML: { __html: a } })
1534
+ ]
1535
+ }
1536
+ );
1537
+ }, we = ({ node: t }) => {
1538
+ const { document: e } = U(), s = e.attributes?.icons === "font";
1539
+ return /* @__PURE__ */ r.jsxs(
1540
+ "div",
1541
+ {
1542
+ id: t.id || void 0,
1543
+ className: N("colist", t.style || "arabic", t.role),
1544
+ ...t.lineNumber ? { "data-lineno": t.lineNumber } : {},
1545
+ children: [
1546
+ /* @__PURE__ */ r.jsx(O, { text: t.title }),
1547
+ s ? /* @__PURE__ */ r.jsx("table", { children: t.items.map((n, i) => /* @__PURE__ */ r.jsxs("tr", { children: [
1548
+ /* @__PURE__ */ r.jsxs("td", { children: [
1549
+ /* @__PURE__ */ r.jsx("i", { className: "conum", "data-value": i + 1 }),
1550
+ /* @__PURE__ */ r.jsx("b", { children: i + 1 })
1551
+ ] }),
1552
+ n.blocks.length > 0 ? /* @__PURE__ */ r.jsxs("td", { children: [
1553
+ /* @__PURE__ */ r.jsx("span", { dangerouslySetInnerHTML: E(n.textInlines) }),
1554
+ /* @__PURE__ */ r.jsx(P, { blocks: n.blocks })
1555
+ ] }) : /* @__PURE__ */ r.jsx("td", { dangerouslySetInnerHTML: E(n.textInlines) })
1556
+ ] }, i)) }) : /* @__PURE__ */ r.jsx("ol", { children: t.items.map((n, i) => /* @__PURE__ */ r.jsxs("li", { children: [
1557
+ /* @__PURE__ */ r.jsx("p", { dangerouslySetInnerHTML: E(n.textInlines) }),
1558
+ /* @__PURE__ */ r.jsx(P, { blocks: n.blocks })
1559
+ ] }, i)) })
1560
+ ]
1561
+ }
1562
+ );
1563
+ }, J = (t, e) => t[`${e}-option`] !== void 0, ft = (t, e, s = void 0, n, i) => {
1564
+ if (t[e] !== void 0)
1565
+ return t[e];
1566
+ const l = n || e;
1567
+ return l && i && i[l] !== void 0 ? i[l] : s;
1568
+ }, Y = (t, e) => t[e] !== void 0, tt = {}, _e = (t) => {
1569
+ const e = t.$$id;
1570
+ if (tt[e])
1571
+ return tt[e];
1572
+ const s = t.getContent && t.getContent() || "";
1573
+ return tt[e] = s, s;
1574
+ }, Ot = (t) => {
1575
+ const e = t.$$id;
1576
+ if (tt[e])
1577
+ return tt[e];
1578
+ const s = t.getText && t.getText() || "";
1579
+ return tt[e] = s, s;
1580
+ }, Ne = (t) => typeof t.title == "string" ? t.title : void 0, Te = (t) => typeof t.getSourceLines == "function" ? t.getSourceLines().join(`
1581
+ `) : "", is = (t) => {
1582
+ let e;
1583
+ const s = t.getAttributes(), n = {};
1584
+ for (const [o, f] of Object.entries(s))
1585
+ f != null && (n[o] = String(f));
1586
+ const i = {
1587
+ footnoteIndex: 0,
1588
+ footnotesById: /* @__PURE__ */ new Map(),
1589
+ counters: /* @__PURE__ */ new Map()
1590
+ }, l = /* @__PURE__ */ new Map(), a = /* @__PURE__ */ new Set(), c = /* @__PURE__ */ new Map(), m = typeof s.xrefstyle == "string" ? s.xrefstyle : void 0, x = (o) => {
1591
+ if (o.reftext) return o.reftext;
1592
+ const f = o.sectname === "appendix" || o.sectname === "chapter", v = f ? `<em>${o.title}</em>` : o.title;
1593
+ if (m && o.numbered) {
1594
+ const T = o.numeral.replace(/\.$/, ""), H = s[`${o.sectname}-refsig`];
1595
+ if (m === "full") {
1596
+ const q = f ? `<em>${o.title}</em>` : `&#8220;${o.title}&#8221;`;
1597
+ return H ? `${H} ${T}, ${q}` : `${T}, ${q}`;
1598
+ }
1599
+ return m === "short" ? H ? `${H} ${T}` : T : v;
1600
+ }
1601
+ return m ? v : o.title;
1602
+ }, g = (o) => {
1603
+ for (const f of o.getSections()) {
1604
+ const v = f.getId(), T = f.getReftext && f.getReftext() || void 0, H = {
1605
+ title: f.getTitle() || "",
1606
+ numbered: f.isNumbered ? f.isNumbered() : !1,
1607
+ sectname: f.getSectionName && f.getSectionName() || "section",
1608
+ numeral: f.getSectionNumeral && f.getSectionNumeral() || "",
1609
+ reftext: T
1610
+ };
1611
+ if (v) {
1612
+ a.add(v), l.set(v, x(H));
1613
+ const q = T || H.title;
1614
+ q && !c.has(q) && c.set(q, v);
1615
+ }
1616
+ g(f);
1617
+ }
1618
+ };
1619
+ g(t);
1620
+ const b = t.getRefs ? t.getRefs() : {};
1621
+ for (const o of Object.keys(b)) {
1622
+ a.add(o);
1623
+ const f = b[o], v = f.getReftext && f.getReftext();
1624
+ if (v)
1625
+ l.set(o, v), c.has(v) || c.set(v, o);
1626
+ else if (!l.has(o)) {
1627
+ const T = typeof f.$xreftext == "function" ? f.$xreftext(m ?? null) : void 0;
1628
+ T ? l.set(o, T) : f.title && l.set(o, f.title);
479
1629
  }
480
1630
  }
481
- return l;
482
- }
483
- function Ye(e, t) {
484
- var s = Fe, n = s.level, l = n === void 0 ? "all" : n, o = s.scope, a = o === void 0 ? l === "xml" ? "strict" : "body" : o;
485
- if (!e)
486
- return "";
487
- var c = Ge[l][a], p = He[l].entities, j = a === "attribute", g = a === "strict";
488
- return e.replace(c, function(u) {
489
- return ze(u, p, j, g);
490
- });
491
- }
492
- const F = (e, t) => e[`${t}-option`] !== void 0, z = (e, t, s = void 0, n, l) => {
493
- if (e[t] !== void 0)
494
- return e[t];
495
- const o = n || t;
496
- return o && l && l[o] !== void 0 ? l[o] : s;
497
- }, A = (e, t) => e[t] !== void 0, O = {}, We = (e) => {
498
- const t = e.$$id;
499
- if (O[t])
500
- return O[t];
501
- const s = e.getContent && e.getContent() || "";
502
- return O[t] = s, s;
503
- }, xe = (e) => {
504
- const t = e.$$id;
505
- if (O[t])
506
- return O[t];
507
- const s = e.getText && e.getText() || "";
508
- return O[t] = s, s;
509
- }, jr = (e) => {
510
- let t;
511
- function s(a) {
512
- const c = a.getNodeName && a.getNodeName(), p = a.getContentModel && a.getContentModel(), j = c && a.hasBlocks() ? a.getBlocks().map((u) => s(u)) : [];
513
- let g = {
514
- id: a.getId && a.getId(),
515
- type: c,
516
- blocks: j,
517
- content: j.length > 0 ? void 0 : We(a),
518
- attributes: a.getAttributes && a.getAttributes(),
519
- contentModel: p,
520
- lineNumber: a.getLineNumber && a.getLineNumber(),
521
- style: a.getStyle && a.getStyle(),
522
- role: a.getRole && a.getRole(),
523
- title: a.hasTitle && a.hasTitle() ? a.getTitle() : void 0,
524
- level: a.getLevel && a.getLevel()
1631
+ const u = (o) => {
1632
+ if (!o) return o;
1633
+ for (const f of o) {
1634
+ if (f.type === "anchor" && f.subtype === "xref") {
1635
+ const v = `[${f.target}]`, T = f.text, H = T.length === 1 && T[0].type === "text" && T[0].text === v, q = (k) => {
1636
+ const y = l.get(k);
1637
+ H && typeof y == "string" && (f.text = [{ type: "text", text: y }]);
1638
+ };
1639
+ if (a.has(f.target))
1640
+ q(f.target);
1641
+ else if (f.target.includes(" ") || f.target.toLowerCase() !== f.target) {
1642
+ const k = c.get(f.target);
1643
+ k && (f.target = k, q(k));
1644
+ }
1645
+ }
1646
+ "text" in f && Array.isArray(f.text) && u(f.text);
1647
+ }
1648
+ return o;
1649
+ }, d = (o) => {
1650
+ if (o)
1651
+ return G(o, {
1652
+ attributes: n,
1653
+ state: {
1654
+ footnoteIndex: 0,
1655
+ footnotesById: /* @__PURE__ */ new Map(),
1656
+ counters: i.counters
1657
+ }
1658
+ });
1659
+ };
1660
+ function h(o) {
1661
+ const f = o.getNodeName && o.getNodeName(), v = o.getContentModel && o.getContentModel(), H = f && !(f === "olist" || f === "ulist" || f === "colist" || f === "dlist") && o.hasBlocks() ? o.getBlocks().map((y) => h(y)) : [], q = Ne(o);
1662
+ let k = {
1663
+ id: o.getId && o.getId(),
1664
+ type: f,
1665
+ blocks: H,
1666
+ content: H.length > 0 ? void 0 : _e(o),
1667
+ inlines: H.length === 0 && v === "simple" ? u(
1668
+ G(Te(o), {
1669
+ attributes: n,
1670
+ state: i
1671
+ })
1672
+ ) : void 0,
1673
+ titleInlines: o.hasTitle && o.hasTitle() ? d(q) : void 0,
1674
+ attributes: o.getAttributes && o.getAttributes(),
1675
+ contentModel: v,
1676
+ lineNumber: o.getLineNumber && o.getLineNumber(),
1677
+ style: o.getStyle && o.getStyle(),
1678
+ role: o.getRole && o.getRole(),
1679
+ title: o.hasTitle && o.hasTitle() ? o.getCaption && o.getCaption() ? o.getCaptionedTitle() : o.getTitle() : void 0,
1680
+ level: o.getLevel && o.getLevel()
525
1681
  };
526
- if (c === "admonition") {
527
- let u = g;
528
- u.iconUri = a.getIconUri(g.attributes.name);
529
- }
530
- if (c === "audio") {
531
- let u = g;
532
- u.mediaUri = a.getMediaUri(a.getAttribute("target")), u.autoplay = a.isOption("autoplay"), u.noControls = !a.isOption("nocontrols"), u.loop = a.isOption("loop"), g = u;
533
- }
534
- if (c === "video") {
535
- let u = g;
536
- u.mediaUri = a.getMediaUri(a.getAttribute("target")), u.autoplay = a.isOption("autoplay"), u.noControls = !a.isOption("nocontrols"), u.loop = a.isOption("loop"), u.onHover = a.isOption("onhover"), g = u;
537
- }
538
- if (c === "image") {
539
- let u = g;
540
- u.imageUri = a.getImageUri(a.getAttribute("target"));
541
- }
542
- if ((c === "listing" || c === "literal") && "getSource" in a) {
543
- const u = g;
544
- u.source = a.getSource(), u.language = a.getAttribute("language"), u.content = u.content ? Ye(u.content) : void 0;
545
- }
546
- if (c === "section") {
547
- const u = g;
548
- u.title = a.getCaption() ? a.getCaptionedTitle() : a.getTitle() || "", "getSectionNumeral" in a && (u.name = a.getSectionName(), u.numbered = a.isNumbered(), u.num = a.getSectionNumeral());
549
- }
550
- if (c === "dlist") {
551
- let u = g;
552
- u.items = a.getItems().map((m) => [
553
- m[0].map(
554
- (x) => s(x)
1682
+ if (f === "admonition") {
1683
+ let y = k;
1684
+ y.iconUri = o.getIconUri(k.attributes.name);
1685
+ }
1686
+ if (f === "audio") {
1687
+ let y = k;
1688
+ y.mediaUri = o.getMediaUri(o.getAttribute("target")), y.autoplay = o.isOption("autoplay"), y.noControls = o.isOption("nocontrols"), y.loop = o.isOption("loop"), k = y;
1689
+ }
1690
+ if (f === "video") {
1691
+ let y = k;
1692
+ y.mediaUri = o.getMediaUri(o.getAttribute("target")), y.autoplay = o.isOption("autoplay"), y.noControls = o.isOption("nocontrols"), y.loop = o.isOption("loop"), y.onHover = o.isOption("onhover"), k = y;
1693
+ }
1694
+ if (f === "image") {
1695
+ let y = k;
1696
+ y.imageUri = o.getImageUri(o.getAttribute("target")), y.alt = typeof o.getAlt == "function" ? o.getAlt() : o.getAttribute("alt") ?? "";
1697
+ }
1698
+ if ((f === "listing" || f === "literal") && "getSource" in o) {
1699
+ const y = k;
1700
+ y.source = o.getSource(), y.language = o.getAttribute("language");
1701
+ }
1702
+ if (f === "section") {
1703
+ const y = k, w = !!o.getCaption();
1704
+ y.title = w ? o.getCaptionedTitle() : o.getTitle() || "", y.hasCaption = w, "getSectionNumeral" in o && (y.name = o.getSectionName(), y.numbered = o.isNumbered(), y.num = o.getSectionNumeral());
1705
+ }
1706
+ if (f === "dlist") {
1707
+ let y = k;
1708
+ y.items = o.getItems().map((w) => [
1709
+ w[0].map(
1710
+ (F) => h(F)
555
1711
  ),
556
- s(m[1])
1712
+ h(w[1])
557
1713
  ]);
558
1714
  }
559
- if (c === "colist" || c === "olist" || c === "ulist") {
560
- let u = g;
561
- u.items = a.getItems().map((m) => s(m));
1715
+ if (f === "colist" || f === "olist" || f === "ulist") {
1716
+ let y = k;
1717
+ y.items = o.getItems().map((w) => h(w));
562
1718
  }
563
- if (c === "list_item") {
564
- let u = g;
565
- const m = a;
566
- u.text = m.hasText() ? xe(m) : void 0;
1719
+ if (f === "list_item") {
1720
+ let y = k;
1721
+ const w = o, F = typeof w.text == "string" ? w.text : void 0;
1722
+ y.text = w.hasText() ? Ot(w) : void 0, y.textInlines = w.hasText() && F !== void 0 ? u(
1723
+ G(F, {
1724
+ attributes: n,
1725
+ state: i
1726
+ })
1727
+ ) : void 0;
567
1728
  }
568
- if (c === "table") {
569
- let u = g;
570
- const m = a;
571
- u.columns = m.getColumns().map((v) => ({
1729
+ if (f === "table") {
1730
+ let y = k;
1731
+ const w = o;
1732
+ y.columns = w.getColumns().map((B) => ({
572
1733
  // @ts-ignore
573
- attributes: v.getAttributes(),
574
- columnNumber: v.getColumnNumber(),
575
- width: v.getWidth(),
576
- horizontalAlign: v.getHorizontalAlign(),
577
- verticalAlign: v.getVerticalAlign(),
578
- style: v.getStyle()
1734
+ attributes: B.getAttributes(),
1735
+ columnNumber: B.getColumnNumber(),
1736
+ width: B.getWidth(),
1737
+ horizontalAlign: B.getHorizontalAlign(),
1738
+ verticalAlign: B.getVerticalAlign(),
1739
+ style: B.getStyle()
579
1740
  }));
580
- const x = (v) => v.map(
581
- (U) => U.map(($) => s($))
582
- ), N = m.getRows();
583
- u.rows = {
584
- head: x(N.head),
585
- body: x(N.body),
586
- foot: x(N.foot)
587
- }, u = {
588
- ...u,
589
- caption: m.getCaption(),
590
- hasHeader: m.hasHeaderOption(),
591
- hasFooter: m.hasFooterOption(),
592
- hasAutowidth: m.hasAutowidthOption(),
593
- headRows: x(m.getHeadRows()),
594
- bodyRows: x(m.getBodyRows()),
595
- footRows: x(m.getFootRows())
596
- }, g = u;
597
- }
598
- if (c === "table_cell") {
599
- const u = a, m = u.getColumn();
600
- g = {
601
- ...g,
1741
+ const F = (B) => B.map(
1742
+ (ct) => ct.map((ot) => h(ot))
1743
+ ), Z = F(w.getHeadRows()), et = F(w.getBodyRows()), at = F(w.getFootRows());
1744
+ y.rows = { head: Z, body: et, foot: at }, y = {
1745
+ ...y,
1746
+ caption: w.getCaption(),
1747
+ hasHeader: w.hasHeaderOption(),
1748
+ hasFooter: w.hasFooterOption(),
1749
+ hasAutowidth: w.hasAutowidthOption(),
1750
+ headRows: Z,
1751
+ bodyRows: et,
1752
+ footRows: at
1753
+ }, k = y;
1754
+ }
1755
+ if (f === "table_cell") {
1756
+ const y = o, w = y.getColumn(), F = typeof y.text == "string" ? y.text : y.getSource();
1757
+ k = {
1758
+ ...k,
602
1759
  type: "table_cell",
603
- text: xe(u),
604
- columnSpan: u.getColumnSpan(),
605
- rowSpan: u.getRowSpan(),
606
- source: u.getSource(),
607
- lines: u.getLines(),
608
- width: u.getWidth(),
609
- columnPercentageWidth: u.getColumnPercentageWidth(),
610
- column: m ? {
1760
+ text: Ot(y),
1761
+ textInlines: F ? u(
1762
+ G(F, {
1763
+ attributes: n,
1764
+ state: i
1765
+ })
1766
+ ) : void 0,
1767
+ columnSpan: y.getColumnSpan(),
1768
+ rowSpan: y.getRowSpan(),
1769
+ source: y.getSource(),
1770
+ lines: y.getLines(),
1771
+ width: y.getWidth(),
1772
+ columnPercentageWidth: y.getColumnPercentageWidth(),
1773
+ column: w ? {
611
1774
  // @ts-ignore
612
- attributes: m.getAttributes(),
613
- columnNumber: m.getColumnNumber(),
614
- width: m.getWidth(),
615
- horizontalAlign: m.getHorizontalAlign(),
616
- verticalAlign: m.getVerticalAlign(),
617
- style: m.getStyle()
1775
+ attributes: w.getAttributes(),
1776
+ columnNumber: w.getColumnNumber(),
1777
+ width: w.getWidth(),
1778
+ horizontalAlign: w.getHorizontalAlign(),
1779
+ verticalAlign: w.getVerticalAlign(),
1780
+ style: w.getStyle()
618
1781
  } : void 0
619
1782
  };
620
1783
  }
621
- return g;
1784
+ return k;
622
1785
  }
623
- function n(a) {
624
- return a.getSections().map((c) => ({
625
- id: c.getId(),
626
- title: (c.getCaption() ? c.getCaptionedTitle() : c.getTitle()) || "",
627
- level: c.getLevel(),
628
- num: c.getSectionNumber(),
629
- sections: n(c)
1786
+ function j(o) {
1787
+ return o.getSections().map((f) => ({
1788
+ id: f.getId(),
1789
+ title: (f.getCaption() ? f.getCaptionedTitle() : f.getTitle()) || "",
1790
+ level: f.getLevel(),
1791
+ num: f.getSectionNumber(),
1792
+ numbered: f.isNumbered(),
1793
+ hasCaption: !!f.getCaption(),
1794
+ sections: j(f)
630
1795
  }));
631
1796
  }
632
- t = {
1797
+ e = {
633
1798
  type: "document",
634
- title: e.getDocumentTitle()?.toString() || "",
635
- hasHeader: e.hasHeader(),
636
- noHeader: e.getNoheader(),
637
- contentModel: e.getContentModel(),
1799
+ id: t.getId && t.getId() || void 0,
1800
+ title: t.getDocumentTitle()?.toString() || "",
1801
+ hasHeader: t.hasHeader(),
1802
+ noHeader: t.getNoheader(),
1803
+ contentModel: t.getContentModel(),
638
1804
  footnotes: [],
639
- attributes: e.getAttributes(),
640
- blocks: e.getBlocks().map((a) => s(a)),
641
- sections: n(e),
1805
+ attributes: t.getAttributes(),
1806
+ blocks: t.getBlocks().map((o) => h(o)),
1807
+ sections: j(t),
642
1808
  authors: []
643
1809
  };
644
- const l = e.getFootnotes();
645
- return l && (t.footnotes = l.map((a) => ({
646
- text: a.getText(),
647
- index: a.getIndex()
648
- }))), e.getAuthors() && (t.authors = e.getAuthors().map((a) => {
649
- const c = a.getName(), p = a.getEmail();
1810
+ const $ = t.getFootnotes();
1811
+ return $ && (e.footnotes = $.map((o) => ({
1812
+ text: o.getText(),
1813
+ index: o.getIndex()
1814
+ }))), t.getAuthors() && (e.authors = t.getAuthors().map((o) => {
1815
+ const f = o.getName(), v = o.getEmail();
650
1816
  return {
651
- name: c ? e.applySubstitutions(c).toString() : void 0,
652
- email: p ? e.applySubstitutions(p).toString() : void 0
1817
+ name: f ? t.applySubstitutions(f).toString() : void 0,
1818
+ email: v ? t.applySubstitutions(v).toString() : void 0
653
1819
  };
654
- })), t;
655
- }, Nr = async (e, t) => {
656
- const s = async (l) => Promise.all(
657
- l.map(async (o) => {
658
- let a = await t(o);
1820
+ })), e;
1821
+ }, ls = async (t, e) => {
1822
+ const s = async (i) => Promise.all(
1823
+ i.map(async (l) => {
1824
+ let a = await e(l);
659
1825
  if (a.blocks && a.blocks.length > 0 && (a.blocks = await s(a.blocks)), a.items) {
660
1826
  const c = a;
661
1827
  c.items = await s(
@@ -664,209 +1830,213 @@ const F = (e, t) => e[`${t}-option`] !== void 0, z = (e, t, s = void 0, n, l) =>
664
1830
  }
665
1831
  return a;
666
1832
  })
667
- ), n = await s(e.blocks);
1833
+ ), n = await s(t.blocks);
668
1834
  return {
669
- ...e,
1835
+ ...t,
670
1836
  blocks: n
671
1837
  };
672
- }, Je = ({ node: e }) => {
673
- const t = (n) => {
674
- const l = n, o = l[0];
675
- let a = l[1];
676
- return a.type || (a = null), {
677
- terms: o,
678
- dd: a
679
- };
680
- }, s = (n) => {
681
- if (n)
682
- return /* @__PURE__ */ r.jsxs("dd", { children: [
683
- n.text && /* @__PURE__ */ r.jsx("p", { children: h(n.text) }),
684
- /* @__PURE__ */ r.jsx(E, { blocks: n.blocks })
685
- ] });
686
- };
687
- if (e.style === "qanda")
1838
+ }, ke = ({ node: t }) => {
1839
+ const e = (n) => {
1840
+ const i = n, l = i[0];
1841
+ let a = i[1];
1842
+ return (!a || !a.type) && (a = null), { terms: l, dd: a };
1843
+ }, s = (n) => n ? /* @__PURE__ */ r.jsxs("dd", { children: [
1844
+ n.text && /* @__PURE__ */ r.jsx("p", { dangerouslySetInnerHTML: E(n.textInlines) }),
1845
+ /* @__PURE__ */ r.jsx(P, { blocks: n.blocks })
1846
+ ] }) : null;
1847
+ if (t.style === "qanda")
688
1848
  return /* @__PURE__ */ r.jsxs(
689
1849
  "div",
690
1850
  {
691
- className: f("qlist qanda", e.role),
692
- ...e.lineNumber ? { "data-lineno": e.lineNumber } : {},
1851
+ id: t.id || void 0,
1852
+ className: N("qlist qanda", t.role),
1853
+ ...t.lineNumber ? { "data-lineno": t.lineNumber } : {},
693
1854
  children: [
694
- /* @__PURE__ */ r.jsx(w, { text: e.title }),
695
- /* @__PURE__ */ r.jsx("ol", { children: e.items.map((n, l) => {
696
- const { terms: o, dd: a } = t(n);
697
- if (o)
698
- return /* @__PURE__ */ r.jsxs("li", { children: [
699
- o.map((c, p) => /* @__PURE__ */ r.jsx("p", { children: /* @__PURE__ */ r.jsx("em", { children: h(c.text) }) }, p)),
700
- s(a)
701
- ] }, l);
1855
+ /* @__PURE__ */ r.jsx(O, { text: t.title }),
1856
+ /* @__PURE__ */ r.jsx("ol", { children: t.items.map((n, i) => {
1857
+ const { terms: l, dd: a } = e(n);
1858
+ return l ? /* @__PURE__ */ r.jsxs("li", { children: [
1859
+ l.map((c, m) => /* @__PURE__ */ r.jsx("p", { children: /* @__PURE__ */ r.jsx("em", { dangerouslySetInnerHTML: E(c.textInlines) }) }, m)),
1860
+ a && /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
1861
+ a.text && /* @__PURE__ */ r.jsx("p", { dangerouslySetInnerHTML: E(a.textInlines) }),
1862
+ /* @__PURE__ */ r.jsx(P, { blocks: a.blocks })
1863
+ ] })
1864
+ ] }, i) : null;
702
1865
  }) })
703
1866
  ]
704
1867
  }
705
1868
  );
706
- if (e.style === "horizontal") {
707
- const n = e.attributes.labelwidth, l = e.attributes.itemwidth;
708
- return /* @__PURE__ */ r.jsxs("div", { className: f("hdlist", e.role), children: [
709
- /* @__PURE__ */ r.jsx(w, { text: e.title }),
710
- /* @__PURE__ */ r.jsxs("table", { children: [
711
- (n || l) && /* @__PURE__ */ r.jsxs("colgroup", { children: [
712
- /* @__PURE__ */ r.jsx(
713
- "col",
714
- {
715
- style: {
716
- width: n ? `${n.toString().replace("%", "")}%` : ""
717
- // do this because a width could have a % or no unit
718
- }
719
- }
720
- ),
721
- /* @__PURE__ */ r.jsx(
722
- "col",
723
- {
724
- style: {
725
- width: l ? `${l.toString().replace("%", "")}%` : ""
726
- }
727
- }
728
- )
729
- ] }),
730
- /* @__PURE__ */ r.jsx("tbody", { children: e.items.map((o, a) => {
731
- const { terms: c, dd: p } = t(o);
732
- if (c)
733
- return /* @__PURE__ */ r.jsxs("tr", { children: [
734
- /* @__PURE__ */ r.jsx(
735
- "td",
736
- {
737
- className: f(
738
- "hdlist1",
739
- F(e.attributes, "strong") ? "strong" : ""
740
- ),
741
- children: c.map((j, g) => /* @__PURE__ */ r.jsxs(se, { children: [
742
- g !== 0 && /* @__PURE__ */ r.jsx("br", {}),
743
- h(j.text)
744
- ] }, g))
745
- }
746
- ),
747
- p && /* @__PURE__ */ r.jsxs("td", { className: "hdlist2", children: [
748
- p.text && /* @__PURE__ */ r.jsx("p", { children: h(p.text) }),
749
- /* @__PURE__ */ r.jsx(E, { blocks: p.blocks })
750
- ] })
751
- ] }, a);
752
- }) })
753
- ] })
754
- ] });
755
- } else
756
- return /* @__PURE__ */ r.jsxs("div", { className: f("dlist", e.style, e.role), children: [
757
- /* @__PURE__ */ r.jsx(w, { text: e.title }),
758
- /* @__PURE__ */ r.jsx("dl", { children: e.items.map((n, l) => {
759
- const { terms: o, dd: a } = t(n);
760
- if (o)
761
- return /* @__PURE__ */ r.jsxs(se, { children: [
762
- o.map((c, p) => /* @__PURE__ */ r.jsx("dt", { className: "hdlist1", children: h(c.text) }, p)),
1869
+ if (t.style === "horizontal") {
1870
+ const n = t.attributes.labelwidth, i = t.attributes.itemwidth, l = (a) => ({
1871
+ width: `${a.toString().replace("%", "")}%`
1872
+ });
1873
+ return /* @__PURE__ */ r.jsxs(
1874
+ "div",
1875
+ {
1876
+ id: t.id || void 0,
1877
+ className: N("hdlist", t.role),
1878
+ ...t.lineNumber ? { "data-lineno": t.lineNumber } : {},
1879
+ children: [
1880
+ /* @__PURE__ */ r.jsx(O, { text: t.title }),
1881
+ /* @__PURE__ */ r.jsxs("table", { children: [
1882
+ (n || i) && /* @__PURE__ */ r.jsxs("colgroup", { children: [
1883
+ /* @__PURE__ */ r.jsx("col", { ...n ? { style: l(n) } : {} }),
1884
+ /* @__PURE__ */ r.jsx("col", { ...i ? { style: l(i) } : {} })
1885
+ ] }),
1886
+ t.items.map((a, c) => {
1887
+ const { terms: m, dd: x } = e(a);
1888
+ return m ? /* @__PURE__ */ r.jsxs("tr", { children: [
1889
+ /* @__PURE__ */ r.jsx(
1890
+ "td",
1891
+ {
1892
+ className: N(
1893
+ "hdlist1",
1894
+ J(t.attributes, "strong") && "strong"
1895
+ ),
1896
+ dangerouslySetInnerHTML: {
1897
+ __html: m.map((g) => E(g.textInlines).__html).join("<br>")
1898
+ }
1899
+ }
1900
+ ),
1901
+ x && /* @__PURE__ */ r.jsxs("td", { className: "hdlist2", children: [
1902
+ x.text && /* @__PURE__ */ r.jsx("p", { dangerouslySetInnerHTML: E(x.textInlines) }),
1903
+ /* @__PURE__ */ r.jsx(P, { blocks: x.blocks })
1904
+ ] })
1905
+ ] }, c) : null;
1906
+ })
1907
+ ] })
1908
+ ]
1909
+ }
1910
+ );
1911
+ }
1912
+ return /* @__PURE__ */ r.jsxs(
1913
+ "div",
1914
+ {
1915
+ id: t.id || void 0,
1916
+ className: N("dlist", t.style, t.role),
1917
+ ...t.lineNumber ? { "data-lineno": t.lineNumber } : {},
1918
+ children: [
1919
+ /* @__PURE__ */ r.jsx(O, { text: t.title }),
1920
+ /* @__PURE__ */ r.jsx("dl", { children: t.items.map((n, i) => {
1921
+ const { terms: l, dd: a } = e(n);
1922
+ return l ? /* @__PURE__ */ r.jsxs(jt, { children: [
1923
+ l.map((c, m) => /* @__PURE__ */ r.jsx(
1924
+ "dt",
1925
+ {
1926
+ className: t.style === "glossary" ? void 0 : "hdlist1",
1927
+ dangerouslySetInnerHTML: E(c.textInlines)
1928
+ },
1929
+ m
1930
+ )),
763
1931
  s(a)
764
- ] }, l);
765
- }) })
766
- ] });
767
- }, Y = ({
768
- sections: e,
769
- opts: t
1932
+ ] }, i) : null;
1933
+ }) })
1934
+ ]
1935
+ }
1936
+ );
1937
+ }, xt = ({
1938
+ sections: t,
1939
+ opts: e
770
1940
  }) => {
771
- const { document: s } = T();
772
- if (!e || e.length === 0) return null;
773
- const n = s.attributes || {}, l = n.sectnumlevels, o = n.toclevels, a = t?.sectNumLevels || (l ? parseInt(`${l}`) : 3), c = t?.tocLevels || (o ? parseInt(`${o}`) : 2);
774
- return /* @__PURE__ */ r.jsx("ul", { className: `sectlevel${e[0].level}`, children: e.map((p) => {
775
- let j = p.num;
776
- j = j === "." || j === ".." ? "" : j;
777
- const g = p.level;
778
- let u = p.title;
779
- return g <= a && (u = `${j} ${p.title}`), /* @__PURE__ */ r.jsxs("li", { children: [
780
- /* @__PURE__ */ r.jsx("a", { href: `#${p.id}`, children: h(u) }),
781
- g < c && /* @__PURE__ */ r.jsx(
782
- Y,
1941
+ const { document: s } = U();
1942
+ if (!t || t.length === 0) return null;
1943
+ const n = s.attributes || {}, i = n.sectnumlevels, l = n.toclevels, a = e?.sectNumLevels || (i ? parseInt(`${i}`) : 3), c = e?.tocLevels || (l ? parseInt(`${l}`) : 2), m = (x) => x.includes("<a") ? x.replace(/<(?:a\b[^>]*|\/a)>/g, "") : x;
1944
+ return /* @__PURE__ */ r.jsx("ul", { className: `sectlevel${t[0].level}`, children: t.map((x) => {
1945
+ const b = x.numbered && x.num && x.num !== "." && x.num !== ".." && !x.num.startsWith(".") && !x.hasCaption && x.level <= a ? `${x.num} ${x.title}` : x.title;
1946
+ return /* @__PURE__ */ r.jsxs("li", { children: [
1947
+ /* @__PURE__ */ r.jsx(
1948
+ "a",
783
1949
  {
784
- sections: p.sections,
785
- opts: {
786
- tocLevels: c,
787
- sectNumLevels: a
788
- }
1950
+ href: `#${x.id}`,
1951
+ dangerouslySetInnerHTML: { __html: m(b) }
789
1952
  }
790
- )
791
- ] }, p.id);
1953
+ ),
1954
+ x.level < c && x.sections.length > 0 && /* @__PURE__ */ r.jsx(xt, { sections: x.sections, opts: { tocLevels: c, sectNumLevels: a } })
1955
+ ] }, x.id);
792
1956
  }) });
793
- }, Ze = ({ document: e }) => {
794
- const t = () => e.noHeader ? null : /* @__PURE__ */ r.jsx("div", { id: "header", children: e.hasHeader && /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
1957
+ }, Ie = ({ document: t }) => {
1958
+ const e = () => t.noHeader ? null : /* @__PURE__ */ r.jsx("div", { id: "header", children: t.hasHeader && /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
795
1959
  /* @__PURE__ */ r.jsx(
796
1960
  "h1",
797
1961
  {
1962
+ id: t.id || void 0,
798
1963
  dangerouslySetInnerHTML: {
799
- __html: e.title
1964
+ __html: t.title
800
1965
  }
801
1966
  }
802
1967
  ),
803
1968
  /* @__PURE__ */ r.jsx(n, {}),
804
- e.sections && e.sections.length > 0 && e.attributes.toc !== void 0 && e.attributes["toc-placement"] === "auto" && /* @__PURE__ */ r.jsxs(
1969
+ t.sections && t.sections.length > 0 && t.attributes.toc !== void 0 && t.attributes["toc-placement"] === "auto" && /* @__PURE__ */ r.jsxs(
805
1970
  "div",
806
1971
  {
807
1972
  id: "toc",
808
- className: z(e.attributes, "toc-class", "toc"),
1973
+ className: ft(t.attributes, "toc-class", "toc"),
809
1974
  children: [
810
- /* @__PURE__ */ r.jsx("div", { id: "toctitle", children: e.attributes["toc-title"] }),
811
- /* @__PURE__ */ r.jsx(Y, { sections: e.sections })
1975
+ /* @__PURE__ */ r.jsx("div", { id: "toctitle", children: t.attributes["toc-title"] }),
1976
+ /* @__PURE__ */ r.jsx(xt, { sections: t.sections })
812
1977
  ]
813
1978
  }
814
1979
  )
815
- ] }) }), s = () => e.footnotes && e.footnotes.length > 0 && e.blocks && !A(e.attributes, "nofootnotes") ? /* @__PURE__ */ r.jsxs("div", { id: "footnotes", children: [
1980
+ ] }) }), s = () => t.footnotes && t.footnotes.length > 0 && t.blocks && !Y(t.attributes, "nofootnotes") ? /* @__PURE__ */ r.jsxs("div", { id: "footnotes", children: [
816
1981
  /* @__PURE__ */ r.jsx("hr", {}),
817
- e.footnotes.map((l) => /* @__PURE__ */ r.jsxs(
1982
+ t.footnotes.map((i) => /* @__PURE__ */ r.jsxs(
818
1983
  "div",
819
1984
  {
820
1985
  className: "footnote",
821
- id: `_footnotedef_${l.index}`,
1986
+ id: `_footnotedef_${i.index}`,
822
1987
  children: [
823
- /* @__PURE__ */ r.jsx("a", { href: `#_footnoteref_${l.index}`, children: l.index }),
1988
+ /* @__PURE__ */ r.jsx("a", { href: `#_footnoteref_${i.index}`, children: i.index }),
824
1989
  ".",
825
1990
  " ",
826
- h(l.text || "")
1991
+ lt(i.text || "")
827
1992
  ]
828
1993
  },
829
- l.index
1994
+ i.index
830
1995
  ))
831
- ] }) : null, n = () => e.authors.length > 0 || A(e.attributes, "revnumber") || A(e.attributes, "revdate") || A(e.attributes, "revremark") ? /* @__PURE__ */ r.jsxs("div", { className: "details", children: [
832
- e.authors.map((l, o) => /* @__PURE__ */ r.jsxs(se, { children: [
833
- l.name && /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
834
- /* @__PURE__ */ r.jsx("span", { id: `author${o + 1 > 1 ? o + 1 : ""}`, className: "author", children: h(l.name) }),
1996
+ ] }) : null, n = () => t.authors.length > 0 || Y(t.attributes, "revnumber") || Y(t.attributes, "revdate") || Y(t.attributes, "revremark") ? /* @__PURE__ */ r.jsxs("div", { className: "details", children: [
1997
+ t.authors.map((i, l) => /* @__PURE__ */ r.jsxs(jt, { children: [
1998
+ i.name && /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
1999
+ /* @__PURE__ */ r.jsx("span", { id: `author${l + 1 > 1 ? l + 1 : ""}`, className: "author", children: lt(i.name) }),
835
2000
  /* @__PURE__ */ r.jsx("br", {})
836
2001
  ] }),
837
- l.email && /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
838
- /* @__PURE__ */ r.jsx("span", { id: `email${o + 1 > 1 ? o + 1 : ""}`, className: "email", children: h(l.email) }),
2002
+ i.email && /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
2003
+ /* @__PURE__ */ r.jsx("span", { id: `email${l + 1 > 1 ? l + 1 : ""}`, className: "email", children: lt(i.email) }),
839
2004
  /* @__PURE__ */ r.jsx("br", {})
840
2005
  ] })
841
- ] }, o)),
842
- A(e.attributes, "revnumber") && /* @__PURE__ */ r.jsx("span", { id: "revnumber", children: `${e.attributes["version-label"].toString().toLowerCase()} ${e.attributes.revnumber}${e.attributes.revdate ? "," : ""}` }),
843
- A(e.attributes, "revdate") && /* @__PURE__ */ r.jsx("span", { id: "revdate", children: e.attributes.revdate }),
844
- A(e.attributes, "revremark") && /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
2006
+ ] }, l)),
2007
+ Y(t.attributes, "revnumber") && /* @__PURE__ */ r.jsx("span", { id: "revnumber", children: `${t.attributes["version-label"].toString().toLowerCase()} ${t.attributes.revnumber}${t.attributes.revdate ? "," : ""}` }),
2008
+ Y(t.attributes, "revdate") && /* @__PURE__ */ r.jsx("span", { id: "revdate", children: t.attributes.revdate }),
2009
+ Y(t.attributes, "revremark") && /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
845
2010
  /* @__PURE__ */ r.jsx("br", {}),
846
- /* @__PURE__ */ r.jsx("span", { id: "revremark", children: e.attributes.revremark })
2011
+ /* @__PURE__ */ r.jsx("span", { id: "revremark", children: t.attributes.revremark })
847
2012
  ] })
848
2013
  ] }) : null;
849
2014
  return /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
850
- /* @__PURE__ */ r.jsx(t, {}),
851
- /* @__PURE__ */ r.jsx("div", { id: "content", children: /* @__PURE__ */ r.jsx(E, { blocks: e.blocks }) }),
2015
+ /* @__PURE__ */ r.jsx(e, {}),
2016
+ /* @__PURE__ */ r.jsx("div", { id: "content", children: /* @__PURE__ */ r.jsx(P, { blocks: t.blocks }) }),
852
2017
  /* @__PURE__ */ r.jsx(s, {})
853
2018
  ] });
854
- }, Xe = ({ node: e }) => {
855
- if (F(e.attributes, "collapsible")) {
856
- const s = e.title || "Details", n = e.attributes.open ? !0 : void 0;
2019
+ }, Ae = ({ node: t }) => {
2020
+ if (J(t.attributes, "collapsible")) {
2021
+ const s = t.attributes.open ? !0 : void 0;
857
2022
  return /* @__PURE__ */ r.jsxs(
858
2023
  "details",
859
2024
  {
860
- className: e.role,
861
- open: n,
862
- ...e.lineNumber ? { "data-lineno": e.lineNumber } : {},
863
- ...e.id ? { id: e.id } : {},
2025
+ id: t.id || void 0,
2026
+ className: t.role || void 0,
2027
+ open: s,
2028
+ ...t.lineNumber ? { "data-lineno": t.lineNumber } : {},
864
2029
  children: [
865
- /* @__PURE__ */ r.jsx("summary", { className: "title", children: h(s) }),
866
- /* @__PURE__ */ r.jsxs("div", { className: "content", children: [
867
- e.content && h(e.content),
868
- /* @__PURE__ */ r.jsx(E, { blocks: e.blocks })
869
- ] })
2030
+ /* @__PURE__ */ r.jsx(
2031
+ "summary",
2032
+ {
2033
+ className: "title",
2034
+ dangerouslySetInnerHTML: {
2035
+ __html: t.title || "Details"
2036
+ }
2037
+ }
2038
+ ),
2039
+ /* @__PURE__ */ r.jsx("div", { className: "content", children: t.blocks.length > 0 ? /* @__PURE__ */ r.jsx(P, { blocks: t.blocks }) : t.content && /* @__PURE__ */ r.jsx("span", { dangerouslySetInnerHTML: E(t.inlines) }) })
870
2040
  ]
871
2041
  }
872
2042
  );
@@ -874,532 +2044,551 @@ const F = (e, t) => e[`${t}-option`] !== void 0, z = (e, t, s = void 0, n, l) =>
874
2044
  return /* @__PURE__ */ r.jsxs(
875
2045
  "div",
876
2046
  {
877
- className: f("exampleblock", e.role),
878
- ...e.lineNumber ? { "data-lineno": e.lineNumber } : {},
879
- ...e.id ? { id: e.id } : {},
2047
+ id: t.id || void 0,
2048
+ className: N("exampleblock", t.role),
2049
+ ...t.lineNumber ? { "data-lineno": t.lineNumber } : {},
880
2050
  children: [
881
- /* @__PURE__ */ r.jsx(w, { text: e.title }),
882
- /* @__PURE__ */ r.jsxs("div", { className: "content", children: [
883
- e.content && h(e.content),
884
- /* @__PURE__ */ r.jsx(E, { blocks: e.blocks })
885
- ] })
2051
+ /* @__PURE__ */ r.jsx(O, { text: t.title }),
2052
+ /* @__PURE__ */ r.jsx("div", { className: "content", children: t.blocks.length > 0 ? /* @__PURE__ */ r.jsx(P, { blocks: t.blocks }) : t.content && /* @__PURE__ */ r.jsx("span", { dangerouslySetInnerHTML: E(t.inlines) }) })
886
2053
  ]
887
2054
  }
888
2055
  );
889
- }, Qe = ({ node: e }) => /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
890
- /* @__PURE__ */ r.jsx(
891
- "a",
892
- {
893
- className: "sectionanchor",
894
- ...e.id ? { id: e.id } : {},
895
- ...e.lineNumber ? { "data-lineno": e.lineNumber } : {}
896
- }
897
- ),
898
- C(
899
- `h${e.level + 1}`,
900
- { className: f(e.role, e.style) },
901
- h(e.title || "")
902
- )
903
- ] }), Ke = ({ node: e }) => {
904
- let t = /* @__PURE__ */ r.jsx(
905
- "img",
906
- {
907
- src: e.imageUri,
908
- alt: e.attributes.alt.toString(),
909
- width: e.attributes.width,
910
- height: e.attributes.height
911
- }
912
- );
913
- return e.attributes.link && (t = /* @__PURE__ */ r.jsx("a", { className: "image", href: e.attributes.link.toString(), children: t })), /* @__PURE__ */ r.jsxs(
2056
+ }, Re = ({ node: t }) => bt(`h${t.level + 1}`, {
2057
+ id: t.id || void 0,
2058
+ className: N(t.style || "discrete", t.role),
2059
+ ...t.lineNumber ? { "data-lineno": t.lineNumber } : {},
2060
+ dangerouslySetInnerHTML: E(t.titleInlines)
2061
+ }), Ee = /^(?:[a-zA-Z][a-zA-Z]+\d{0,2}|#\d{1,7}|#x[\da-fA-F]{1,6});/, nt = (t) => {
2062
+ let e = "";
2063
+ for (let s = 0; s < t.length; s++) {
2064
+ const n = t[s];
2065
+ n === "&" ? e += Ee.test(t.slice(s + 1)) ? "&" : "&amp;" : n === '"' ? e += "&quot;" : n === "<" ? e += "&lt;" : n === ">" ? e += "&gt;" : e += n;
2066
+ }
2067
+ return e;
2068
+ }, Oe = ({ node: t }) => {
2069
+ const e = t.alt ?? t.attributes.alt?.toString() ?? "", s = t.attributes.width, n = t.attributes.height, i = t.attributes.link, l = t.attributes.align, a = t.attributes.float;
2070
+ let c = `<img src="${nt(t.imageUri)}" alt="${nt(e)}"`;
2071
+ return s && (c += ` width="${nt(s.toString())}"`), n && (c += ` height="${nt(n.toString())}"`), c += ">", i && (c = `<a class="image" href="${nt(i.toString())}">${c}</a>`), /* @__PURE__ */ r.jsxs(
914
2072
  "div",
915
2073
  {
916
- className: `imageblock ${e.attributes.align ? "text-" + e.attributes.align : ""} ${e.attributes.float ? e.attributes.float : ""} ${e.role ? e.role : ""}`,
917
- ...e.lineNumber ? { "data-lineno": e.lineNumber } : {},
918
- style: {
919
- maxWidth: e.attributes.width,
920
- maxHeight: e.attributes.height
921
- },
2074
+ id: t.id || void 0,
2075
+ className: N(
2076
+ "imageblock",
2077
+ l ? "text-" + l : void 0,
2078
+ a || void 0,
2079
+ t.role
2080
+ ),
2081
+ ...t.lineNumber ? { "data-lineno": t.lineNumber } : {},
922
2082
  children: [
923
- /* @__PURE__ */ r.jsx("div", { className: "content", children: t }),
924
- /* @__PURE__ */ r.jsx(w, { text: e.title })
2083
+ /* @__PURE__ */ r.jsx("div", { className: "content", dangerouslySetInnerHTML: { __html: c } }),
2084
+ /* @__PURE__ */ r.jsx(O, { text: t.title })
925
2085
  ]
926
2086
  }
927
2087
  );
928
- }, er = ({ node: e }) => {
929
- const { document: t } = T(), s = t.attributes || {}, n = e.attributes.nowrap || s.prewrap === void 0;
930
- if (e.style === "source") {
931
- const l = e.language;
2088
+ }, Le = ({ node: t }) => {
2089
+ const { document: e } = U(), s = e.attributes || {}, n = J(t.attributes, "nowrap") || s.prewrap === void 0, i = N("listingblock", t.role);
2090
+ if (t.style === "source") {
2091
+ const l = t.language;
932
2092
  return /* @__PURE__ */ r.jsxs(
933
2093
  "div",
934
2094
  {
935
- className: "listingblock",
936
- ...e.lineNumber ? { "data-lineno": e.lineNumber } : {},
2095
+ id: t.id || void 0,
2096
+ className: i,
2097
+ ...t.lineNumber ? { "data-lineno": t.lineNumber } : {},
937
2098
  children: [
938
- /* @__PURE__ */ r.jsx(w, { text: e.title }),
939
- /* @__PURE__ */ r.jsx("div", { className: "content", children: /* @__PURE__ */ r.jsx("pre", { className: f("highlight", n ? " nowrap" : ""), children: l ? /* @__PURE__ */ r.jsx(
2099
+ /* @__PURE__ */ r.jsx(O, { text: t.title }),
2100
+ /* @__PURE__ */ r.jsx("div", { className: "content", children: /* @__PURE__ */ r.jsx("pre", { className: N("highlight", n && "nowrap") || void 0, children: l ? /* @__PURE__ */ r.jsx(
940
2101
  "code",
941
2102
  {
942
- className: l ? `language-${l}` : "",
2103
+ className: `language-${l}`,
943
2104
  "data-lang": l,
944
- dangerouslySetInnerHTML: {
945
- __html: e.content || ""
946
- }
947
- }
948
- ) : /* @__PURE__ */ r.jsx("code", { dangerouslySetInnerHTML: { __html: e.content || "" } }) }) })
949
- ]
950
- }
951
- );
952
- } else
953
- return /* @__PURE__ */ r.jsxs(
954
- "div",
955
- {
956
- className: "listingblock",
957
- ...e.lineNumber ? { "data-lineno": e.lineNumber } : {},
958
- children: [
959
- /* @__PURE__ */ r.jsx(w, { text: e.title }),
960
- /* @__PURE__ */ r.jsx("div", { className: "content", children: /* @__PURE__ */ r.jsx(
961
- "pre",
962
- {
963
- className: f("highlight !block", n ? "nowrap" : ""),
964
- dangerouslySetInnerHTML: {
965
- __html: e.content || ""
966
- }
2105
+ dangerouslySetInnerHTML: { __html: t.content || "" }
967
2106
  }
968
- ) })
2107
+ ) : /* @__PURE__ */ r.jsx("code", { dangerouslySetInnerHTML: { __html: t.content || "" } }) }) })
969
2108
  ]
970
2109
  }
971
2110
  );
972
- }, rr = ({ node: e }) => {
973
- const { document: t } = T(), s = t.attributes || {}, n = e.attributes.nowrap || s.prewrap === void 0;
2111
+ }
974
2112
  return /* @__PURE__ */ r.jsxs(
975
2113
  "div",
976
2114
  {
977
- className: "literalblock",
978
- ...e.lineNumber ? { "data-lineno": e.lineNumber } : {},
2115
+ id: t.id || void 0,
2116
+ className: i,
2117
+ ...t.lineNumber ? { "data-lineno": t.lineNumber } : {},
979
2118
  children: [
980
- /* @__PURE__ */ r.jsx(w, { text: e.title }),
981
- /* @__PURE__ */ r.jsx("div", { className: "content", children: /* @__PURE__ */ r.jsx("pre", { className: n ? "nowrap" : "", children: e.source }) })
2119
+ /* @__PURE__ */ r.jsx(O, { text: t.title }),
2120
+ /* @__PURE__ */ r.jsx("div", { className: "content", children: /* @__PURE__ */ r.jsx(
2121
+ "pre",
2122
+ {
2123
+ className: N(n && "nowrap") || void 0,
2124
+ dangerouslySetInnerHTML: { __html: t.content || "" }
2125
+ }
2126
+ ) })
982
2127
  ]
983
2128
  }
984
2129
  );
985
- }, tr = ({ node: e }) => /* @__PURE__ */ r.jsxs(
986
- "div",
987
- {
988
- className: f("olist", e.role, e.style),
989
- ...e.lineNumber ? { "data-lineno": e.lineNumber } : {},
990
- children: [
991
- /* @__PURE__ */ r.jsx(w, { text: e.title }),
992
- /* @__PURE__ */ r.jsx(
993
- "ol",
994
- {
995
- className: e.style,
996
- reversed: F(e.attributes, "reversed"),
997
- ...e.attributes.start ? { start: parseInt(`${e.attributes.start}`) } : {},
998
- children: e.items.map((t, s) => /* @__PURE__ */ r.jsxs("li", { className: e.role ? e.role : "", children: [
999
- /* @__PURE__ */ r.jsx("p", { children: h(t.text || "") }),
1000
- /* @__PURE__ */ r.jsx(E, { blocks: t.blocks })
1001
- ] }, s))
1002
- }
1003
- )
1004
- ]
1005
- }
1006
- ), sr = ({ node: e }) => {
1007
- const t = e.style;
1008
- return t === "abstract" ? /* @__PURE__ */ r.jsxs(
2130
+ }, Ce = ({ node: t }) => {
2131
+ const { document: e } = U(), s = e.attributes || {}, n = J(t.attributes, "nowrap") || s.prewrap === void 0;
2132
+ return /* @__PURE__ */ r.jsxs(
1009
2133
  "div",
1010
2134
  {
1011
- className: f("quoteblock abstract", e.role),
1012
- ...e.lineNumber ? { "data-lineno": e.lineNumber } : {},
2135
+ id: t.id || void 0,
2136
+ className: N("literalblock", t.role),
2137
+ ...t.lineNumber ? { "data-lineno": t.lineNumber } : {},
1013
2138
  children: [
1014
- /* @__PURE__ */ r.jsx(w, { text: e.title }),
1015
- /* @__PURE__ */ r.jsxs("blockquote", { className: "content", children: [
1016
- e.content && h(e.content),
1017
- /* @__PURE__ */ r.jsx(E, { blocks: e.blocks })
1018
- ] })
2139
+ /* @__PURE__ */ r.jsx(O, { text: t.title }),
2140
+ /* @__PURE__ */ r.jsx("div", { className: "content", children: /* @__PURE__ */ r.jsx(
2141
+ "pre",
2142
+ {
2143
+ className: N(n && "nowrap") || void 0,
2144
+ dangerouslySetInnerHTML: { __html: t.content || "" }
2145
+ }
2146
+ ) })
2147
+ ]
2148
+ }
2149
+ );
2150
+ }, Me = {
2151
+ upperalpha: "A",
2152
+ loweralpha: "a",
2153
+ upperroman: "I",
2154
+ lowerroman: "i"
2155
+ }, Pe = ({ node: t }) => {
2156
+ const e = t.style, s = e ? Me[e] : void 0, n = t.attributes.start ? parseInt(`${t.attributes.start}`) : void 0;
2157
+ return /* @__PURE__ */ r.jsxs(
2158
+ "div",
2159
+ {
2160
+ id: t.id || void 0,
2161
+ className: N("olist", e, t.role),
2162
+ ...t.lineNumber ? { "data-lineno": t.lineNumber } : {},
2163
+ children: [
2164
+ /* @__PURE__ */ r.jsx(O, { text: t.title }),
2165
+ /* @__PURE__ */ r.jsx(
2166
+ "ol",
2167
+ {
2168
+ className: e || void 0,
2169
+ type: s,
2170
+ reversed: J(t.attributes, "reversed") || void 0,
2171
+ start: n,
2172
+ children: t.items.map((i, l) => /* @__PURE__ */ r.jsxs("li", { id: i.id || void 0, children: [
2173
+ /* @__PURE__ */ r.jsx("p", { dangerouslySetInnerHTML: E(i.textInlines) }),
2174
+ /* @__PURE__ */ r.jsx(P, { blocks: i.blocks })
2175
+ ] }, l))
2176
+ }
2177
+ )
2178
+ ]
2179
+ }
2180
+ );
2181
+ }, He = ({ node: t }) => {
2182
+ const e = t.style;
2183
+ return e === "abstract" ? /* @__PURE__ */ r.jsxs(
2184
+ "div",
2185
+ {
2186
+ id: t.id || void 0,
2187
+ className: N("quoteblock abstract", t.role),
2188
+ ...t.lineNumber ? { "data-lineno": t.lineNumber } : {},
2189
+ children: [
2190
+ /* @__PURE__ */ r.jsx(O, { text: t.title }),
2191
+ /* @__PURE__ */ r.jsx("blockquote", { children: t.blocks.length > 0 ? /* @__PURE__ */ r.jsx(P, { blocks: t.blocks }) : t.content && /* @__PURE__ */ r.jsx("span", { dangerouslySetInnerHTML: E(t.inlines) }) })
1019
2192
  ]
1020
2193
  }
1021
2194
  ) : /* @__PURE__ */ r.jsxs(
1022
2195
  "div",
1023
2196
  {
1024
- className: f("openblock", t && t !== "open" ? t : "", e.role),
1025
- ...e.lineNumber ? { "data-lineno": e.lineNumber } : {},
2197
+ id: t.id || void 0,
2198
+ className: N("openblock", e && e !== "open" ? e : null, t.role),
2199
+ ...t.lineNumber ? { "data-lineno": t.lineNumber } : {},
1026
2200
  children: [
1027
- /* @__PURE__ */ r.jsx(w, { text: e.title }),
1028
- /* @__PURE__ */ r.jsxs("div", { className: "content", children: [
1029
- e.content && h(e.content),
1030
- /* @__PURE__ */ r.jsx(E, { blocks: e.blocks })
1031
- ] })
2201
+ /* @__PURE__ */ r.jsx(O, { text: t.title }),
2202
+ /* @__PURE__ */ r.jsx("div", { className: "content", children: t.blocks.length > 0 ? /* @__PURE__ */ r.jsx(P, { blocks: t.blocks }) : t.content && /* @__PURE__ */ r.jsx("span", { dangerouslySetInnerHTML: E(t.inlines) }) })
1032
2203
  ]
1033
2204
  }
1034
2205
  );
1035
- }, ar = () => /* @__PURE__ */ r.jsx("div", { style: { pageBreakAfter: "always" } }), ir = ({ node: e }) => /* @__PURE__ */ r.jsxs(
2206
+ }, We = () => /* @__PURE__ */ r.jsx("div", { style: { pageBreakAfter: "always" } }), qe = ({ node: t }) => /* @__PURE__ */ r.jsxs(
1036
2207
  "div",
1037
2208
  {
1038
- ...e.id ? { id: e.id } : {},
1039
- className: f("paragraph", e.role),
1040
- ...e.lineNumber ? { "data-lineno": e.lineNumber } : {},
2209
+ ...t.id ? { id: t.id } : {},
2210
+ className: N("paragraph", t.role),
2211
+ ...t.lineNumber ? { "data-lineno": t.lineNumber } : {},
1041
2212
  children: [
1042
- /* @__PURE__ */ r.jsx(w, { text: e.title }),
1043
- e.content && /* @__PURE__ */ r.jsx("p", { dangerouslySetInnerHTML: { __html: e.content } })
2213
+ /* @__PURE__ */ r.jsx(O, { text: t.title }),
2214
+ t.inlines ? /* @__PURE__ */ r.jsx("p", { dangerouslySetInnerHTML: E(t.inlines) }) : t.content && /* @__PURE__ */ r.jsx("p", { dangerouslySetInnerHTML: { __html: t.content } })
1044
2215
  ]
1045
2216
  }
1046
- ), lr = ({ node: e }) => /* @__PURE__ */ r.jsx(r.Fragment, { children: h(e.content || "") }), nr = ({ node: e }) => {
1047
- const { document: t } = T(), s = t.attributes || {}, n = s["toc-placement"] === "preamble" && t.sections && t.sections.length > 0 && s.toc !== void 0;
1048
- return /* @__PURE__ */ r.jsx("div", { id: "preamble", ...e.lineNumber ? { "data-lineno": e.lineNumber } : {}, children: /* @__PURE__ */ r.jsxs("div", { className: "sectionbody", children: [
1049
- /* @__PURE__ */ r.jsx(E, { blocks: e.blocks }),
1050
- n && /* @__PURE__ */ r.jsxs(
1051
- "div",
1052
- {
1053
- id: "toc",
1054
- className: e.attributes["toc-class"] ? `${e.attributes["toc-class"]}` : "toc",
1055
- children: [
1056
- /* @__PURE__ */ r.jsx("div", { id: "toctitle", children: h(`${s["toc-title"]}`) }),
1057
- t.sections && /* @__PURE__ */ r.jsx(Y, { sections: t.sections })
1058
- ]
1059
- }
1060
- )
1061
- ] }) });
1062
- }, or = ({ node: e }) => {
1063
- const t = e.attributes.attribution, s = e.attributes.citetitle;
1064
- return /* @__PURE__ */ r.jsxs(
2217
+ ), Fe = ({ node: t }) => /* @__PURE__ */ r.jsx(r.Fragment, { children: lt(t.content || "") }), Be = ({ node: t }) => {
2218
+ const { document: e } = U(), s = e.attributes || {}, n = s["toc-placement"] === "preamble" && e.sections && e.sections.length > 0 && s.toc !== void 0, i = s["toc-title"] || "Table of Contents", l = s["toc-class"] || "toc";
2219
+ return /* @__PURE__ */ r.jsxs("div", { id: "preamble", ...t.lineNumber ? { "data-lineno": t.lineNumber } : {}, children: [
2220
+ /* @__PURE__ */ r.jsx("div", { className: "sectionbody", children: /* @__PURE__ */ r.jsx(P, { blocks: t.blocks }) }),
2221
+ n && /* @__PURE__ */ r.jsxs("div", { id: "toc", className: `${l}`, children: [
2222
+ /* @__PURE__ */ r.jsx("div", { id: "toctitle", dangerouslySetInnerHTML: { __html: `${i}` } }),
2223
+ /* @__PURE__ */ r.jsx(xt, { sections: e.sections })
2224
+ ] })
2225
+ ] });
2226
+ }, ze = ({ node: t }) => {
2227
+ const e = t.attributes.attribution, s = t.attributes.citetitle;
2228
+ let n = "";
2229
+ return e ? (n = `&#8212; ${e}`, s && (n += `<br>
2230
+ <cite>${s}</cite>`)) : s && (n = `<cite>${s}</cite>`), /* @__PURE__ */ r.jsxs(
1065
2231
  "div",
1066
2232
  {
1067
- ...e.id ? { id: e.id } : {},
1068
- className: f("quoteblock", e.role),
1069
- ...e.lineNumber ? { "data-lineno": e.lineNumber } : {},
2233
+ id: t.id || void 0,
2234
+ className: N("quoteblock", t.role),
2235
+ ...t.lineNumber ? { "data-lineno": t.lineNumber } : {},
1070
2236
  children: [
1071
- /* @__PURE__ */ r.jsx(w, { text: e.title }),
1072
- e.content && /* @__PURE__ */ r.jsx("blockquote", { dangerouslySetInnerHTML: { __html: e.content } }),
1073
- /* @__PURE__ */ r.jsx(E, { blocks: e.blocks }),
1074
- t && /* @__PURE__ */ r.jsxs("div", { className: "attribution", children: [
1075
- "— ",
1076
- h(t.toString()),
1077
- s && /* @__PURE__ */ r.jsx("cite", { children: s })
1078
- ] })
2237
+ /* @__PURE__ */ r.jsx(O, { text: t.title }),
2238
+ t.content ? /* @__PURE__ */ r.jsx("blockquote", { dangerouslySetInnerHTML: E(t.inlines) }) : /* @__PURE__ */ r.jsx("blockquote", { children: /* @__PURE__ */ r.jsx(P, { blocks: t.blocks }) }),
2239
+ n && /* @__PURE__ */ r.jsx(
2240
+ "div",
2241
+ {
2242
+ className: "attribution",
2243
+ dangerouslySetInnerHTML: { __html: n }
2244
+ }
2245
+ )
1079
2246
  ]
1080
2247
  }
1081
2248
  );
1082
- }, cr = ({ node: e }) => {
1083
- const { document: t } = T(), s = t.attributes || {};
1084
- let n = e.title, l = e.num;
1085
- l = l === "." ? "" : l;
1086
- const o = s.sectnumlevels ? parseInt(`${s.sectnumlevels}`) : 3;
1087
- return e.numbered && e.level <= o && (n = `${l} ${e.title}`), s.sectlinks && (n = /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
1088
- /* @__PURE__ */ r.jsx(
1089
- "a",
1090
- {
1091
- className: "anchor",
1092
- id: e.id || "",
1093
- ...e.lineNumber ? { "data-lineno": e.lineNumber } : {}
1094
- }
1095
- ),
1096
- /* @__PURE__ */ r.jsx(
1097
- "a",
1098
- {
1099
- className: "link",
1100
- href: `#${e.id}`,
1101
- dangerouslySetInnerHTML: {
1102
- __html: n
2249
+ }, Ue = ({ node: t }) => {
2250
+ const { document: e } = U(), s = e.attributes || {}, n = s.sectnumlevels ? parseInt(`${s.sectnumlevels}`) : 3, l = t.numbered && t.num && t.num !== "." && t.level <= n && !t.hasCaption ? `${t.num} ` : "", a = t.hasCaption ? t.title : l + E(t.titleInlines).__html, c = s.sectanchors !== void 0, m = s.sectlinks !== void 0;
2251
+ let x;
2252
+ if (t.id && (c || m)) {
2253
+ const b = c ? `<a class="anchor" href="#${t.id}"></a>` : "", u = m ? `<a class="link" href="#${t.id}">${a}</a>` : a;
2254
+ x = `${b}${u}`;
2255
+ } else
2256
+ x = a;
2257
+ const g = bt(`h${t.level + 1}`, {
2258
+ id: t.id || void 0,
2259
+ ...t.lineNumber ? { "data-lineno": t.lineNumber } : {},
2260
+ dangerouslySetInnerHTML: { __html: x }
2261
+ });
2262
+ return t.level === 0 ? /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
2263
+ bt("h1", {
2264
+ id: t.id || void 0,
2265
+ className: N("sect0", t.role),
2266
+ ...t.lineNumber ? { "data-lineno": t.lineNumber } : {},
2267
+ dangerouslySetInnerHTML: { __html: x }
2268
+ }),
2269
+ /* @__PURE__ */ r.jsx(P, { blocks: t.blocks })
2270
+ ] }) : t.level === 1 ? /* @__PURE__ */ r.jsxs(
2271
+ "div",
2272
+ {
2273
+ className: N(`sect${t.level}`, t.role),
2274
+ ...t.lineNumber ? { "data-lineno": t.lineNumber } : {},
2275
+ children: [
2276
+ g,
2277
+ /* @__PURE__ */ r.jsx("div", { className: "sectionbody", children: /* @__PURE__ */ r.jsx(P, { blocks: t.blocks }) })
2278
+ ]
2279
+ }
2280
+ ) : /* @__PURE__ */ r.jsxs(
2281
+ "div",
2282
+ {
2283
+ className: N(`sect${t.level}`, t.role),
2284
+ ...t.lineNumber ? { "data-lineno": t.lineNumber } : {},
2285
+ children: [
2286
+ g,
2287
+ /* @__PURE__ */ r.jsx(P, { blocks: t.blocks })
2288
+ ]
2289
+ }
2290
+ );
2291
+ }, De = ({ node: t }) => {
2292
+ const e = t.blocks.length > 0;
2293
+ return /* @__PURE__ */ r.jsx(
2294
+ "div",
2295
+ {
2296
+ id: t.id || void 0,
2297
+ className: N("sidebarblock", t.role),
2298
+ ...t.lineNumber ? { "data-lineno": t.lineNumber } : {},
2299
+ children: e ? /* @__PURE__ */ r.jsxs("div", { className: "content", children: [
2300
+ /* @__PURE__ */ r.jsx(O, { text: t.title }),
2301
+ /* @__PURE__ */ r.jsx(P, { blocks: t.blocks })
2302
+ ] }) : /* @__PURE__ */ r.jsx(
2303
+ "div",
2304
+ {
2305
+ className: "content",
2306
+ dangerouslySetInnerHTML: {
2307
+ __html: (t.title ? `<div class="title">${t.title}</div>` : "") + E(t.inlines).__html
2308
+ }
1103
2309
  }
1104
- }
1105
- )
1106
- ] })), e.level === 0 ? /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
1107
- /* @__PURE__ */ r.jsx(
1108
- "h1",
1109
- {
1110
- className: f("sect0", e.role),
1111
- "data-sectnum": l,
1112
- ...e.lineNumber ? { "data-lineno": e.lineNumber } : {},
1113
- children: n
1114
- }
1115
- ),
1116
- /* @__PURE__ */ r.jsx(E, { blocks: e.blocks })
1117
- ] }) : /* @__PURE__ */ r.jsxs(
2310
+ )
2311
+ }
2312
+ );
2313
+ }, Ye = ({ node: t }) => {
2314
+ const { document: e } = U(), s = e.attributes || {}, n = t.style || s.stem || "asciimath", i = t.content || "", l = n === "latexmath" ? `\\[${i}\\]` : n === "asciimath" || n === "stem" ? `\\$${i}\\$` : i;
2315
+ return /* @__PURE__ */ r.jsxs(
1118
2316
  "div",
1119
2317
  {
1120
- className: f(`sect${e.level}`, e.role),
1121
- ...e.lineNumber ? { "data-lineno": e.lineNumber } : {},
2318
+ id: t.id || void 0,
2319
+ className: N("stemblock", t.role),
2320
+ ...t.lineNumber ? { "data-lineno": t.lineNumber } : {},
1122
2321
  children: [
1123
- C(`h${e.level + 1}`, { "data-sectnum": l }, n),
1124
- /* @__PURE__ */ r.jsx("div", { className: "sectionbody", children: /* @__PURE__ */ r.jsx(E, { blocks: e.blocks }) })
2322
+ /* @__PURE__ */ r.jsx(O, { text: t.title }),
2323
+ /* @__PURE__ */ r.jsx("div", { className: "content", dangerouslySetInnerHTML: { __html: l } })
1125
2324
  ]
1126
2325
  }
1127
2326
  );
1128
- }, ur = ({ node: e }) => /* @__PURE__ */ r.jsx(
1129
- "div",
1130
- {
1131
- className: f("sidebarblock", e.role),
1132
- ...e.lineNumber ? { "data-lineno": e.lineNumber } : {},
1133
- children: /* @__PURE__ */ r.jsxs("div", { className: "content", children: [
1134
- /* @__PURE__ */ r.jsx(w, { text: e.title }),
1135
- e.content && h(e.content),
1136
- /* @__PURE__ */ r.jsx(E, { blocks: e.blocks })
1137
- ] })
1138
- }
1139
- ), pr = ({ node: e }) => {
1140
- const { document: t } = T(), s = t.attributes || {};
2327
+ }, Ve = ({ node: t }) => {
2328
+ const { document: e } = U(), s = e.attributes || {};
1141
2329
  let n = [
1142
- "frame-" + z(e.attributes, "frame", "all", "table-frame", s),
1143
- "grid-" + z(e.attributes, "grid", "all", "table-grid", s)
1144
- ], l = z(e.attributes, "stripes", null, "table-stripes", s);
1145
- l && n.push("stripes-" + l);
1146
- let o = F(e.attributes, "autowidth"), a = parseInt(`${e.attributes.tablepcwidth}`), c = null;
1147
- o && !A(e.attributes, "width") ? n.push("fit-content") : a === 100 ? n.push("stretch") : c = `${a}%`, A(e.attributes, "float") && n.push(`${e.attributes.float}`), e.role && n.push(e.role || "");
1148
- const p = (m) => f(
2330
+ "frame-" + ft(t.attributes, "frame", "all", "table-frame", s),
2331
+ "grid-" + ft(t.attributes, "grid", "all", "table-grid", s)
2332
+ ], i = ft(t.attributes, "stripes", null, "table-stripes", s);
2333
+ i && n.push("stripes-" + i);
2334
+ let l = J(t.attributes, "autowidth"), a = parseInt(`${t.attributes.tablepcwidth}`), c = null;
2335
+ l && !Y(t.attributes, "width") ? n.push("fit-content") : a === 100 ? n.push("stretch") : c = `${a}%`, Y(t.attributes, "float") && n.push(`${t.attributes.float}`), t.role && n.push(t.role || "");
2336
+ const m = (x) => N(
1149
2337
  "tableblock",
1150
- `halign-${m.attributes.halign}`,
1151
- `valign-${m.attributes.valign}`
1152
- ), j = e.title, g = e.id, u = g || mr(j || "");
2338
+ `halign-${x.attributes.halign}`,
2339
+ `valign-${x.attributes.valign}`
2340
+ );
1153
2341
  return /* @__PURE__ */ r.jsxs(
1154
2342
  "table",
1155
2343
  {
1156
- className: f("tableblock", ...n),
2344
+ id: t.id || void 0,
2345
+ className: N("tableblock", ...n),
1157
2346
  style: { width: c || void 0 },
1158
- ...e.lineNumber ? { "data-lineno": e.lineNumber } : {},
2347
+ ...t.lineNumber ? { "data-lineno": t.lineNumber } : {},
1159
2348
  children: [
1160
- e.title && /* @__PURE__ */ r.jsxs("caption", { className: "title", children: [
1161
- !g && /* @__PURE__ */ r.jsx("a", { className: "anchor", id: u }),
1162
- /* @__PURE__ */ r.jsx("a", { href: `#${u}`, children: /* @__PURE__ */ r.jsx(w, { text: e.title }) })
1163
- ] }),
1164
- e.columns.length > 0 && /* @__PURE__ */ r.jsx("colgroup", { children: e.columns.map((m, x) => {
1165
- const N = m.attributes.colpcwidth;
1166
- return /* @__PURE__ */ r.jsx("col", { style: { width: `${N}%` } }, x);
2349
+ t.title && /* @__PURE__ */ r.jsx("caption", { className: "title", dangerouslySetInnerHTML: { __html: t.title } }),
2350
+ t.columns.length > 0 && /* @__PURE__ */ r.jsx("colgroup", { children: t.columns.map((x, g) => {
2351
+ const b = x.attributes.colpcwidth;
2352
+ return /* @__PURE__ */ r.jsx(
2353
+ "col",
2354
+ {
2355
+ style: l ? void 0 : { width: `${b}%` }
2356
+ },
2357
+ g
2358
+ );
1167
2359
  }) }),
1168
- e.headRows.map((m, x) => /* @__PURE__ */ r.jsx("thead", { children: /* @__PURE__ */ r.jsx("tr", { children: m.map((N, v) => /* @__PURE__ */ r.jsx(
2360
+ t.headRows.length > 0 && t.headRows.map((x, g) => /* @__PURE__ */ r.jsx("thead", { children: /* @__PURE__ */ r.jsx("tr", { children: x.map((b, u) => /* @__PURE__ */ r.jsx(
1169
2361
  "th",
1170
2362
  {
1171
- className: p(N),
1172
- dangerouslySetInnerHTML: { __html: N.text }
2363
+ className: m(b),
2364
+ colSpan: b.columnSpan,
2365
+ rowSpan: b.rowSpan,
2366
+ dangerouslySetInnerHTML: { __html: b.text }
1173
2367
  },
1174
- v
1175
- )) }) }, x)),
1176
- /* @__PURE__ */ r.jsx("tbody", { children: e.bodyRows.map((m, x) => /* @__PURE__ */ r.jsx("tr", { children: m.map((N, v) => {
1177
- const U = N.columnSpan, $ = N.rowSpan, R = N.content, L = {
1178
- colSpan: U,
1179
- rowSpan: $,
1180
- className: p(N)
1181
- }, B = N.style;
1182
- if (B === "asciidoc")
1183
- return /* @__PURE__ */ C("td", { ...L, key: v }, /* @__PURE__ */ r.jsx(
1184
- "div",
1185
- {
1186
- className: "content",
1187
- dangerouslySetInnerHTML: { __html: R || "" }
1188
- }
1189
- ));
1190
- if (B === "literal")
1191
- return /* @__PURE__ */ C("td", { ...L, key: v }, /* @__PURE__ */ r.jsx("div", { className: "literal", children: /* @__PURE__ */ r.jsx("pre", { dangerouslySetInnerHTML: { __html: R || "" } }) }));
1192
- if (B === "header")
1193
- return /* @__PURE__ */ C("th", { ...L, key: v }, /* @__PURE__ */ r.jsx(
1194
- "p",
1195
- {
1196
- className: "tableblock",
1197
- dangerouslySetInnerHTML: { __html: R || "" }
1198
- }
1199
- ));
1200
- {
1201
- let G = R;
1202
- return /* @__PURE__ */ C("td", { ...L, key: v }, G.length === 0 ? "" : h(
1203
- `<p class="tableblock">${G.join(
1204
- `</p>
1205
- <p class="tableblock">`
1206
- )}</p>`
1207
- ));
1208
- }
1209
- }) }, x)) }),
1210
- e.footRows.map((m, x) => /* @__PURE__ */ r.jsx("tfoot", { children: /* @__PURE__ */ r.jsx("tr", { children: m.map((N, v) => /* @__PURE__ */ r.jsx("td", { className: p(N), children: /* @__PURE__ */ r.jsx("p", { className: "tableblock", dangerouslySetInnerHTML: { __html: N.text } }) }, v)) }) }, x))
2368
+ u
2369
+ )) }) }, g)),
2370
+ t.bodyRows.length > 0 && /* @__PURE__ */ r.jsx("tbody", { children: t.bodyRows.map((x, g) => /* @__PURE__ */ r.jsx("tr", { children: x.map((b, u) => {
2371
+ const d = b.style, h = m(b), j = b.columnSpan, $ = b.rowSpan, _ = d === "header" ? "th" : "td", o = b.content, f = Array.isArray(o) ? o : typeof o == "string" ? [o] : [];
2372
+ let v = "";
2373
+ return d === "asciidoc" ? v = `<div class="content">${f.join("")}</div>` : d === "literal" ? v = `<div class="literal"><pre>${f.join("")}</pre></div>` : d === "header" ? v = f.length > 0 ? `<p class="tableblock">${f.join(`</p>
2374
+ <p class="tableblock">`)}</p>` : "" : f.length > 0 && (v = `<p class="tableblock">${f.join(`</p>
2375
+ <p class="tableblock">`)}</p>`), /* @__PURE__ */ r.jsx(
2376
+ _,
2377
+ {
2378
+ className: h,
2379
+ colSpan: j,
2380
+ rowSpan: $,
2381
+ dangerouslySetInnerHTML: v ? { __html: v } : void 0
2382
+ },
2383
+ u
2384
+ );
2385
+ }) }, g)) }),
2386
+ t.footRows.map((x, g) => /* @__PURE__ */ r.jsx("tfoot", { children: /* @__PURE__ */ r.jsx("tr", { children: x.map((b, u) => /* @__PURE__ */ r.jsx("td", { className: m(b), children: /* @__PURE__ */ r.jsx("p", { className: "tableblock", dangerouslySetInnerHTML: { __html: b.text } }) }, u)) }) }, g))
1211
2387
  ]
1212
2388
  }
1213
2389
  );
1214
- }, mr = (e) => e.toString().normalize("NFKD").replace(/[\u0300-\u036f]/g, "").toLowerCase().trim().replace(/\s+/g, "_").replace(/[^\w-]+/g, "").replace(/--+/g, "-").replace(/-$/g, ""), dr = ({ node: e }) => {
1215
- const { document: t } = T(), s = t.attributes || {}, n = t.sections && t.sections.length > 0;
1216
- let l = e.id || "toc";
1217
- const o = e.title ? e.title : s["toc-title"], a = s["toc-placement"], c = s.toc !== void 0, p = e.attributes.levels ? parseInt(`${e.attributes.levels}`) : void 0;
1218
- return a === "macro" && n && c ? /* @__PURE__ */ r.jsxs("div", { id: l, className: f("toc", e.role), children: [
1219
- /* @__PURE__ */ r.jsx("div", { id: `${l}title`, className: "title", children: h(`${o}` || "") }),
1220
- t.sections && /* @__PURE__ */ r.jsx(Y, { sections: t.sections, opts: { tocLevels: p } })
1221
- ] }) : null;
1222
- }, gr = () => /* @__PURE__ */ r.jsx("hr", {}), hr = ({ node: e }) => {
1223
- const t = F(e.attributes, "checklist");
2390
+ }, Ze = ({ node: t }) => {
2391
+ const { document: e } = U(), s = e.attributes || {}, n = e.sections && e.sections.length > 0;
2392
+ let i = t.id || "toc";
2393
+ const l = t.title ? t.title : s["toc-title"], a = s["toc-placement"], c = s.toc !== void 0, m = t.attributes.levels ? parseInt(`${t.attributes.levels}`) : void 0;
2394
+ return !c || a !== "macro" || !n ? null : /* @__PURE__ */ r.jsxs("div", { id: i, className: t.role || "toc", children: [
2395
+ /* @__PURE__ */ r.jsx("div", { id: `${i}title`, className: "title", children: lt(`${l}` || "") }),
2396
+ e.sections && /* @__PURE__ */ r.jsx(xt, { sections: e.sections, opts: { tocLevels: m } })
2397
+ ] });
2398
+ }, Qe = () => /* @__PURE__ */ r.jsx("hr", {}), Ge = (t) => {
2399
+ if (!t) return "";
2400
+ let e = "";
2401
+ for (const s of t)
2402
+ if (s.type === "anchor" && s.subtype === "bibref") {
2403
+ const n = s.id || s.target, i = V(s.text) || n;
2404
+ e += `<a id="${n}"></a>[${i}]`;
2405
+ } else
2406
+ e += V([s]);
2407
+ return e;
2408
+ }, Je = ({ node: t }) => {
2409
+ const e = J(t.attributes, "checklist"), s = t.style === "bibliography";
1224
2410
  return /* @__PURE__ */ r.jsxs(
1225
2411
  "div",
1226
2412
  {
1227
- ...e.id ? { id: e.id } : {},
1228
- className: f("ulist", e.style, e.role, t && "checklist"),
1229
- ...e.lineNumber ? { "data-lineno": e.lineNumber } : {},
2413
+ id: t.id || void 0,
2414
+ className: N("ulist", t.style, t.role, e && "checklist"),
2415
+ ...t.lineNumber ? { "data-lineno": t.lineNumber } : {},
1230
2416
  children: [
1231
- /* @__PURE__ */ r.jsx(w, { text: e.title }),
1232
- /* @__PURE__ */ r.jsx("ul", { className: t ? "checklist" : "", children: e.items.map((s, n) => t ? /* @__PURE__ */ r.jsx("li", { id: s.id, className: e.role, children: /* @__PURE__ */ r.jsxs("p", { children: [
1233
- t && s.attributes.checkbox && /* @__PURE__ */ r.jsx(
1234
- "i",
1235
- {
1236
- className: f(
1237
- "fa",
1238
- s.attributes.checked ? "fa-check-square-o" : "fa-square-o"
1239
- )
1240
- }
1241
- ),
1242
- " ",
1243
- h(s.text || "")
1244
- ] }) }, n) : /* @__PURE__ */ r.jsxs("li", { id: s.id, className: e.role, children: [
1245
- /* @__PURE__ */ r.jsx("p", { dangerouslySetInnerHTML: { __html: s.text || "" } }),
1246
- /* @__PURE__ */ r.jsx(E, { blocks: s.blocks })
1247
- ] }, n)) })
2417
+ /* @__PURE__ */ r.jsx(O, { text: t.title }),
2418
+ /* @__PURE__ */ r.jsx(
2419
+ "ul",
2420
+ {
2421
+ className: e ? "checklist" : s ? "bibliography" : t.style || void 0,
2422
+ children: t.items.map((n, i) => {
2423
+ const l = e && "checkbox" in n.attributes, a = l && "checked" in n.attributes, c = s ? Ge(n.textInlines) : E(n.textInlines).__html, m = l ? `<i class="fa ${a ? "fa-check-square-o" : "fa-square-o"}"></i> ${c}` : c;
2424
+ return /* @__PURE__ */ r.jsxs("li", { id: n.id || void 0, children: [
2425
+ /* @__PURE__ */ r.jsx("p", { dangerouslySetInnerHTML: { __html: m } }),
2426
+ /* @__PURE__ */ r.jsx(P, { blocks: n.blocks })
2427
+ ] }, i);
2428
+ })
2429
+ }
2430
+ )
1248
2431
  ]
1249
2432
  }
1250
2433
  );
1251
- }, br = ({ node: e }) => {
1252
- const t = e.attributes.attribution, s = e.attributes.citetitle;
1253
- return /* @__PURE__ */ r.jsxs(
2434
+ }, Xe = ({ node: t }) => {
2435
+ const e = t.attributes.attribution, s = t.attributes.citetitle;
2436
+ let n = "";
2437
+ return (e || s) && (e ? (n = `&#8212; ${e}`, s && (n += `<br>
2438
+ <cite>${s}</cite>`)) : s && (n = `<cite>${s}</cite>`)), /* @__PURE__ */ r.jsxs(
1254
2439
  "div",
1255
2440
  {
1256
- ...e.id ? { id: e.id } : {},
1257
- className: f("verseblock", e.role),
1258
- ...e.lineNumber ? { "data-lineno": e.lineNumber } : {},
2441
+ id: t.id || void 0,
2442
+ className: N("verseblock", t.role),
2443
+ ...t.lineNumber ? { "data-lineno": t.lineNumber } : {},
1259
2444
  children: [
1260
- /* @__PURE__ */ r.jsx(w, { text: e.title }),
1261
- e.content && /* @__PURE__ */ r.jsx("pre", { className: "content", dangerouslySetInnerHTML: { __html: e.content } }),
1262
- t && /* @__PURE__ */ r.jsxs("div", { className: "attribution", children: [
1263
- "",
1264
- t,
1265
- s && /* @__PURE__ */ r.jsx("cite", { children: s })
1266
- ] })
2445
+ /* @__PURE__ */ r.jsx(O, { text: t.title }),
2446
+ t.content && /* @__PURE__ */ r.jsx("pre", { className: "content", dangerouslySetInnerHTML: { __html: t.content } }),
2447
+ n && /* @__PURE__ */ r.jsx(
2448
+ "div",
2449
+ {
2450
+ className: "attribution",
2451
+ dangerouslySetInnerHTML: { __html: n }
2452
+ }
2453
+ )
1267
2454
  ]
1268
2455
  }
1269
2456
  );
1270
- }, fr = ({ node: e }) => {
1271
- const t = e.attributes.start, s = e.attributes.end, n = (t || s) && `#t=${t || ""}` + s ? `,${s}` : "";
2457
+ }, Ke = ({ node: t }) => {
2458
+ const e = t.attributes.start, s = t.attributes.end, n = e || s ? `#t=${e || ""}${s ? "," + s : ""}` : "", i = t.attributes.width, l = t.attributes.height, a = t.attributes.poster, c = [`src="${t.mediaUri}${n}"`];
2459
+ i && c.push(`width="${i}"`), l && c.push(`height="${l}"`), a && c.push(`poster="${a}"`), t.autoplay && c.push("autoplay"), t.noControls || c.push("controls"), t.loop && c.push("loop");
2460
+ const m = `<video ${c.join(" ")}>
2461
+ Your browser does not support the video tag.
2462
+ </video>`;
1272
2463
  return /* @__PURE__ */ r.jsxs(
1273
2464
  "div",
1274
2465
  {
1275
- className: "videoblock",
1276
- ...e.lineNumber ? { "data-lineno": e.lineNumber } : {},
2466
+ id: t.id || void 0,
2467
+ className: N("videoblock", t.role),
2468
+ ...t.lineNumber ? { "data-lineno": t.lineNumber } : {},
1277
2469
  children: [
1278
- /* @__PURE__ */ r.jsx(w, { text: e.title }),
1279
- /* @__PURE__ */ r.jsx("div", { className: "content", children: /* @__PURE__ */ r.jsx(
1280
- "video",
1281
- {
1282
- src: `${e.mediaUri}${n}`,
1283
- autoPlay: e.autoplay,
1284
- controls: !e.noControls,
1285
- loop: e.loop,
1286
- children: "Your browser does not support the video tag."
1287
- }
1288
- ) })
2470
+ /* @__PURE__ */ r.jsx(O, { text: t.title }),
2471
+ /* @__PURE__ */ r.jsx("div", { className: "content", dangerouslySetInnerHTML: { __html: m } })
1289
2472
  ]
1290
2473
  }
1291
2474
  );
1292
- }, ie = Se({ document: {} }), yr = ({
1293
- document: e,
1294
- options: t
2475
+ }, dt = Bt({ document: {} }), as = ({
2476
+ document: t,
2477
+ options: e
1295
2478
  }) => {
1296
- const s = t && t.customDocument;
2479
+ const s = e && e.customDocument;
1297
2480
  return /* @__PURE__ */ r.jsx(
1298
- ie.Provider,
2481
+ dt.Provider,
1299
2482
  {
1300
2483
  value: {
1301
- ...t,
1302
- document: { attributes: e.attributes, sections: e.sections }
2484
+ ...e,
2485
+ document: { attributes: t.attributes, sections: t.sections }
1303
2486
  },
1304
- children: s ? /* @__PURE__ */ r.jsx(s, { document: e }) : /* @__PURE__ */ r.jsx(Ze, { document: e })
2487
+ children: s ? /* @__PURE__ */ r.jsx(s, { document: t }) : /* @__PURE__ */ r.jsx(Ie, { document: t })
1305
2488
  }
1306
2489
  );
1307
- }, E = ({ blocks: e }) => /* @__PURE__ */ r.jsx(r.Fragment, { children: e.map((t, s) => /* @__PURE__ */ r.jsx(xr, { node: t }, `${s}-${t.type}`)) }), xr = ({ node: e }) => {
1308
- const { overrides: t } = ve(ie), s = e.type, n = t && t[s];
2490
+ }, P = ({ blocks: t }) => /* @__PURE__ */ r.jsx(r.Fragment, { children: t.map((e, s) => /* @__PURE__ */ r.jsx(ts, { node: e }, `${s}-${e.type}`)) }), ts = ({ node: t }) => {
2491
+ const { overrides: e } = yt(dt), s = t.type, n = e && e[s];
1309
2492
  if (n)
1310
- return /* @__PURE__ */ r.jsx(n, { node: e });
2493
+ return /* @__PURE__ */ r.jsx(n, { node: t });
1311
2494
  switch (s) {
1312
2495
  case "audio":
1313
- return /* @__PURE__ */ r.jsx(_e, { node: e });
2496
+ return /* @__PURE__ */ r.jsx(Se, { node: t });
1314
2497
  case "preamble":
1315
- return /* @__PURE__ */ r.jsx(nr, { node: e });
2498
+ return /* @__PURE__ */ r.jsx(Be, { node: t });
1316
2499
  case "section":
1317
- return /* @__PURE__ */ r.jsx(cr, { node: e });
2500
+ return /* @__PURE__ */ r.jsx(Ue, { node: t });
1318
2501
  case "paragraph":
1319
- return /* @__PURE__ */ r.jsx(ir, { node: e });
2502
+ return /* @__PURE__ */ r.jsx(qe, { node: t });
1320
2503
  case "dlist":
1321
- return /* @__PURE__ */ r.jsx(Je, { node: e });
2504
+ return /* @__PURE__ */ r.jsx(ke, { node: t });
1322
2505
  case "ulist":
1323
- return /* @__PURE__ */ r.jsx(hr, { node: e });
2506
+ return /* @__PURE__ */ r.jsx(Je, { node: t });
1324
2507
  case "floating_title":
1325
- return /* @__PURE__ */ r.jsx(Qe, { node: e });
2508
+ return /* @__PURE__ */ r.jsx(Re, { node: t });
1326
2509
  case "admonition":
1327
- return /* @__PURE__ */ r.jsx(Ce, { node: e });
2510
+ return /* @__PURE__ */ r.jsx($e, { node: t });
1328
2511
  case "listing":
1329
- return /* @__PURE__ */ r.jsx(er, { node: e });
2512
+ return /* @__PURE__ */ r.jsx(Le, { node: t });
1330
2513
  case "literal":
1331
- return /* @__PURE__ */ r.jsx(rr, { node: e });
2514
+ return /* @__PURE__ */ r.jsx(Ce, { node: t });
1332
2515
  case "image":
1333
- return /* @__PURE__ */ r.jsx(Ke, { node: e });
2516
+ return /* @__PURE__ */ r.jsx(Oe, { node: t });
1334
2517
  case "colist":
1335
- return /* @__PURE__ */ r.jsx(Oe, { node: e });
2518
+ return /* @__PURE__ */ r.jsx(we, { node: t });
1336
2519
  case "olist":
1337
- return /* @__PURE__ */ r.jsx(tr, { node: e });
2520
+ return /* @__PURE__ */ r.jsx(Pe, { node: t });
1338
2521
  case "table":
1339
- return /* @__PURE__ */ r.jsx(pr, { node: e });
2522
+ return /* @__PURE__ */ r.jsx(Ve, { node: t });
1340
2523
  case "thematic_break":
1341
- return /* @__PURE__ */ r.jsx(gr, {});
2524
+ return /* @__PURE__ */ r.jsx(Qe, {});
1342
2525
  case "open":
1343
- return /* @__PURE__ */ r.jsx(sr, { node: e });
2526
+ return /* @__PURE__ */ r.jsx(He, { node: t });
1344
2527
  case "pass":
1345
- return /* @__PURE__ */ r.jsx(lr, { node: e });
2528
+ return /* @__PURE__ */ r.jsx(Fe, { node: t });
2529
+ case "stem":
2530
+ return /* @__PURE__ */ r.jsx(Ye, { node: t });
1346
2531
  case "page_break":
1347
- return /* @__PURE__ */ r.jsx(ar, {});
2532
+ return /* @__PURE__ */ r.jsx(We, {});
1348
2533
  case "example":
1349
- return /* @__PURE__ */ r.jsx(Xe, { node: e });
2534
+ return /* @__PURE__ */ r.jsx(Ae, { node: t });
1350
2535
  case "sidebar":
1351
- return /* @__PURE__ */ r.jsx(ur, { node: e });
2536
+ return /* @__PURE__ */ r.jsx(De, { node: t });
1352
2537
  case "quote":
1353
- return /* @__PURE__ */ r.jsx(or, { node: e });
2538
+ return /* @__PURE__ */ r.jsx(ze, { node: t });
1354
2539
  case "verse":
1355
- return /* @__PURE__ */ r.jsx(br, { node: e });
2540
+ return /* @__PURE__ */ r.jsx(Xe, { node: t });
1356
2541
  case "video":
1357
- return /* @__PURE__ */ r.jsx(fr, { node: e });
2542
+ return /* @__PURE__ */ r.jsx(Ke, { node: t });
1358
2543
  case "toc":
1359
- return /* @__PURE__ */ r.jsx(dr, { node: e });
2544
+ return /* @__PURE__ */ r.jsx(Ze, { node: t });
1360
2545
  default:
1361
2546
  return /* @__PURE__ */ r.jsx(r.Fragment, {});
1362
2547
  }
1363
- }, T = () => {
1364
- const e = ve(ie);
1365
- if (e === void 0)
2548
+ }, U = () => {
2549
+ const t = yt(dt);
2550
+ if (t === void 0)
1366
2551
  throw new Error("useConverterContext must be used within a Provider");
1367
- return e;
2552
+ return t;
1368
2553
  };
1369
2554
  export {
1370
- Ce as Admonition,
1371
- yr as Asciidoc,
1372
- _e as Audio,
1373
- Oe as CoList,
1374
- E as Content,
1375
- ie as Context,
1376
- Je as DList,
1377
- Ze as Document,
1378
- Xe as Example,
1379
- Qe as FloatingTitle,
1380
- Ke as Image,
1381
- er as Listing,
1382
- rr as Literal,
1383
- tr as OList,
1384
- sr as Open,
1385
- Y as Outline,
1386
- ar as PageBreak,
1387
- ir as Paragraph,
1388
- lr as Pass,
1389
- nr as Preamble,
1390
- or as Quote,
1391
- cr as Section,
1392
- ur as Sidebar,
1393
- pr as Table,
1394
- dr as TableOfContents,
1395
- gr as ThematicBreak,
1396
- w as Title,
1397
- hr as UList,
1398
- br as Verse,
1399
- fr as Video,
1400
- F as isOption,
1401
- kr as parse,
1402
- jr as prepareDocument,
1403
- Nr as processDocument,
1404
- T as useConverterContext
2555
+ $e as Admonition,
2556
+ as as Asciidoc,
2557
+ Se as Audio,
2558
+ we as CoList,
2559
+ P as Content,
2560
+ dt as Context,
2561
+ ke as DList,
2562
+ Ie as Document,
2563
+ Ae as Example,
2564
+ Re as FloatingTitle,
2565
+ Oe as Image,
2566
+ rs as Inline,
2567
+ Le as Listing,
2568
+ Ce as Literal,
2569
+ Pe as OList,
2570
+ He as Open,
2571
+ xt as Outline,
2572
+ We as PageBreak,
2573
+ qe as Paragraph,
2574
+ Fe as Pass,
2575
+ Be as Preamble,
2576
+ ze as Quote,
2577
+ ns as RenderInline,
2578
+ Ue as Section,
2579
+ De as Sidebar,
2580
+ Ye as Stem,
2581
+ Ve as Table,
2582
+ Ze as TableOfContents,
2583
+ Qe as ThematicBreak,
2584
+ O as Title,
2585
+ Je as UList,
2586
+ Xe as Verse,
2587
+ Ke as Video,
2588
+ E as inlineHtml,
2589
+ J as isOption,
2590
+ us as parse,
2591
+ is as prepareDocument,
2592
+ ls as processDocument,
2593
+ U as useConverterContext
1405
2594
  };