@oxide/react-asciidoc 2.0.0--canary.54.27143121943.0 → 2.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -300,16 +300,16 @@ main document. Can surface in long documents that footnote heavily.
300
300
 
301
301
  ### Rarely an issue
302
302
 
303
- | Difference | Example | Asciidoctor | This renderer | Notes |
304
- | ------------------------------------------------------------------------------------------------------------------- | ---------------------------------- | ---------------------------- | --------------------------------- | ----------------------------------------------------- |
305
- | Inline formatting straddling a span boundary | `` `a __b` c__ `` | `<code>a <em>b</code>c</em>` | `<code>a __b</code>c__` | Rare in practice. |
306
- | `manpage` doctype | `:doctype: manpage` + NAME section | special NAME header block | rendered as ordinary sections | Only relevant if you render man pages (~12 failures). |
307
- | `source-highlighter` with a `>` in the language token | `[source,console?prompt=$>]` | `data-lang="…$>"` (raw) | `data-lang="…$&gt;"` | Needs an unusual language token. |
308
- | Server-side highlighter markup (Rouge/CodeRay) | `:source-highlighter: rouge` | per-token `<span>` markup | plain `<code class="language-…">` | Highlight on the client instead. |
309
- | `xref` nested inside another link's text | `link:…[… <<id>> …]` | resolved `<a>` | literal `&lt;&lt;id&gt;&gt;` | Uncommon nesting. |
310
- | `{set:cellbgcolor}`, nested-document table cells, compat-mode toggling, `pass:` inside a body-level attribute value | — | — | — | Rare/legacy features. |
311
- | Audio/video `controls`/`autoplay`/`loop` attribute casing | `audio::…[] controls` | `controls` (bare) | `controls=""` via React | Default templates use raw HTML to match Asciidoctor; override `options.overrides.audio` / `video` to use React elements instead. |
312
- | `inlineOverrides` silently bypassed for blocks with straddling passthrough HTML | `` pass:q[<u>x *y*</u>] `` | `<u>x <strong>y</strong></u>` | same (string path, no override) | Any `<`/`>` in the inline AST triggers the HTML-string fallback, bypassing registered `inlineOverrides` for that block. |
303
+ | Difference | Example | Asciidoctor | This renderer | Notes |
304
+ | ------------------------------------------------------------------------------------------------------------------- | ---------------------------------- | ----------------------------- | --------------------------------- | -------------------------------------------------------------------------------------------------------------------------------- |
305
+ | Inline formatting straddling a span boundary | `` `a __b` c__ `` | `<code>a <em>b</code>c</em>` | `<code>a __b</code>c__` | Rare in practice. |
306
+ | `manpage` doctype | `:doctype: manpage` + NAME section | special NAME header block | rendered as ordinary sections | Only relevant if you render man pages (~12 failures). |
307
+ | `source-highlighter` with a `>` in the language token | `[source,console?prompt=$>]` | `data-lang="…$>"` (raw) | `data-lang="…$&gt;"` | Needs an unusual language token. |
308
+ | Server-side highlighter markup (Rouge/CodeRay) | `:source-highlighter: rouge` | per-token `<span>` markup | plain `<code class="language-…">` | Highlight on the client instead. |
309
+ | `xref` nested inside another link's text | `link:…[… <<id>> …]` | resolved `<a>` | literal `&lt;&lt;id&gt;&gt;` | Uncommon nesting. |
310
+ | `{set:cellbgcolor}`, nested-document table cells, compat-mode toggling, `pass:` inside a body-level attribute value | — | — | — | Rare/legacy features. |
311
+ | Audio/video `controls`/`autoplay`/`loop` attribute casing | `audio::…[] controls` | `controls` (bare) | `controls=""` via React | Default templates use raw HTML to match Asciidoctor; override `options.overrides.audio` / `video` to use React elements instead. |
312
+ | `inlineOverrides` silently bypassed for blocks with straddling passthrough HTML | `pass:q[<u>x *y*</u>]` | `<u>x <strong>y</strong></u>` | same (string path, no override) | Any `<`/`>` in the inline AST triggers the HTML-string fallback, bypassing registered `inlineOverrides` for that block. |
313
313
 
314
314
  For ordinary technical prose — code blocks, tables, admonitions, lists, links, images,
315
315
  xrefs, and footnotes — output should match Asciidoctor. The things most worth watching are
@@ -381,5 +381,5 @@ documents; the example suite (`renderer.test.tsx`) always runs.
381
381
 
382
382
  - Prettier: 92-column width, no semicolons, single quotes, trailing commas.
383
383
  - ESLint ignores `.js` files (the examples are intentionally plain JS).
384
- - Releases use `auto shipit` (`npm run release`); the version bump and `CHANGELOG.md` are
385
- generated don't edit them by hand.
384
+ - Releases are triggered manually via the GitHub Actions `workflow_dispatch` event with an
385
+ explicit version number. Release notes are generated automatically in GitHub Releases.
@@ -5,20 +5,11 @@ function ne(u) {
5
5
  return u && u.__esModule && Object.prototype.hasOwnProperty.call(u, "default") ? u.default : u;
6
6
  }
7
7
  var $u = { exports: {} }, yu = {};
8
- /**
9
- * @license React
10
- * react-jsx-runtime.production.js
11
- *
12
- * Copyright (c) Meta Platforms, Inc. and affiliates.
13
- *
14
- * This source code is licensed under the MIT license found in the
15
- * LICENSE file in the root directory of this source tree.
16
- */
17
8
  var Du;
18
9
  function le() {
19
10
  if (Du) return yu;
20
11
  Du = 1;
21
- var u = Symbol.for("react.transitional.element"), e = Symbol.for("react.fragment");
12
+ var u = /* @__PURE__ */ Symbol.for("react.transitional.element"), e = /* @__PURE__ */ Symbol.for("react.fragment");
22
13
  function t(s, a, c) {
23
14
  var i = null;
24
15
  if (c !== void 0 && (i = "" + c), a.key !== void 0 && (i = "" + a.key), "key" in a) {
@@ -37,15 +28,6 @@ function le() {
37
28
  return yu.Fragment = e, yu.jsx = t, yu.jsxs = t, yu;
38
29
  }
39
30
  var vu = {};
40
- /**
41
- * @license React
42
- * react-jsx-runtime.development.js
43
- *
44
- * Copyright (c) Meta Platforms, Inc. and affiliates.
45
- *
46
- * This source code is licensed under the MIT license found in the
47
- * LICENSE file in the root directory of this source tree.
48
- */
49
31
  var Bu;
50
32
  function oe() {
51
33
  return Bu || (Bu = 1, process.env.NODE_ENV !== "production" && (function() {
@@ -242,7 +224,7 @@ React keys must be passed directly to JSX without using spread:
242
224
  function f(d) {
243
225
  return typeof d == "object" && d !== null && d.$$typeof === p;
244
226
  }
245
- var y = ce, p = Symbol.for("react.transitional.element"), g = Symbol.for("react.portal"), j = Symbol.for("react.fragment"), N = Symbol.for("react.strict_mode"), I = Symbol.for("react.profiler"), T = Symbol.for("react.consumer"), q = Symbol.for("react.context"), z = Symbol.for("react.forward_ref"), F = Symbol.for("react.suspense"), Q = Symbol.for("react.suspense_list"), X = Symbol.for("react.memo"), ou = Symbol.for("react.lazy"), Hu = Symbol.for("react.activity"), o = Symbol.for("react.client.reference"), l = y.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, E = Object.prototype.hasOwnProperty, L = Array.isArray, R = console.createTask ? console.createTask : function() {
227
+ var y = ce, p = /* @__PURE__ */ Symbol.for("react.transitional.element"), g = /* @__PURE__ */ Symbol.for("react.portal"), j = /* @__PURE__ */ Symbol.for("react.fragment"), N = /* @__PURE__ */ Symbol.for("react.strict_mode"), I = /* @__PURE__ */ Symbol.for("react.profiler"), T = /* @__PURE__ */ Symbol.for("react.consumer"), q = /* @__PURE__ */ Symbol.for("react.context"), z = /* @__PURE__ */ Symbol.for("react.forward_ref"), F = /* @__PURE__ */ Symbol.for("react.suspense"), Q = /* @__PURE__ */ Symbol.for("react.suspense_list"), X = /* @__PURE__ */ Symbol.for("react.memo"), ou = /* @__PURE__ */ Symbol.for("react.lazy"), Hu = /* @__PURE__ */ Symbol.for("react.activity"), o = /* @__PURE__ */ Symbol.for("react.client.reference"), l = y.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, E = Object.prototype.hasOwnProperty, L = Array.isArray, R = console.createTask ? console.createTask : function() {
246
228
  return null;
247
229
  };
248
230
  y = {
@@ -1088,7 +1070,9 @@ function te(u, e, t = /* @__PURE__ */ new Set()) {
1088
1070
  for (const h of m)
1089
1071
  s.push(re(h, e, t));
1090
1072
  t.delete(b);
1091
- } else m && process.env.NODE_ENV !== "production" && console.warn(`[react-asciidoc] Inline placeholder cycle at index ${b} — content dropped`);
1073
+ } else m && process.env.NODE_ENV !== "production" && console.warn(
1074
+ `[react-asciidoc] Inline placeholder cycle at index ${b} — content dropped`
1075
+ );
1092
1076
  c = i.index + i[0].length;
1093
1077
  }
1094
1078
  const n = u.slice(c);
@@ -2015,11 +1999,6 @@ const Ht = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2015
1999
  }) });
2016
2000
  };
2017
2001
  var Ou = { exports: {} };
2018
- /*!
2019
- Copyright (c) 2018 Jed Watson.
2020
- Licensed under the MIT License (MIT), see
2021
- http://jedwatson.github.io/classnames
2022
- */
2023
2002
  var Qu;
2024
2003
  function tt() {
2025
2004
  return Qu || (Qu = 1, (function(u) {
@@ -1,20 +1,4 @@
1
- (function(T,G){typeof exports=="object"&&typeof module<"u"?G(exports,require("react"),require("html-react-parser")):typeof define=="function"&&define.amd?define(["exports","react","html-react-parser"],G):(T=typeof globalThis<"u"?globalThis:T||self,G(T.ReactAsciiDoc={},T.React,T.parse))})(this,(function(T,G,vu){"use strict";function Te(u){return u&&u.__esModule&&Object.prototype.hasOwnProperty.call(u,"default")?u.default:u}var Au={exports:{}},ju={};/**
2
- * @license React
3
- * react-jsx-runtime.production.js
4
- *
5
- * Copyright (c) Meta Platforms, Inc. and affiliates.
6
- *
7
- * This source code is licensed under the MIT license found in the
8
- * LICENSE file in the root directory of this source tree.
9
- */var Mu;function Ie(){if(Mu)return ju;Mu=1;var u=Symbol.for("react.transitional.element"),e=Symbol.for("react.fragment");function t(s,a,c){var i=null;if(c!==void 0&&(i=""+c),a.key!==void 0&&(i=""+a.key),"key"in a){c={};for(var n in a)n!=="key"&&(c[n]=a[n])}else c=a;return a=c.ref,{$$typeof:u,type:s,key:i,ref:a!==void 0?a:null,props:c}}return ju.Fragment=e,ju.jsx=t,ju.jsxs=t,ju}var wu={};/**
10
- * @license React
11
- * react-jsx-runtime.development.js
12
- *
13
- * Copyright (c) Meta Platforms, Inc. and affiliates.
14
- *
15
- * This source code is licensed under the MIT license found in the
16
- * LICENSE file in the root directory of this source tree.
17
- */var Du;function Re(){return Du||(Du=1,process.env.NODE_ENV!=="production"&&(function(){function u(d){if(d==null)return null;if(typeof d=="function")return d.$$typeof===o?null:d.displayName||d.name||null;if(typeof d=="string")return d;switch(d){case j:return"Fragment";case I:return"Profiler";case $:return"StrictMode";case z:return"Suspense";case K:return"SuspenseList";case _e:return"Activity"}if(typeof d=="object")switch(typeof d.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),d.$$typeof){case g:return"Portal";case q:return d.displayName||"Context";case R:return(d._context.displayName||"Context")+".Consumer";case Q:var w=d.render;return d=d.displayName,d||(d=w.displayName||w.name||"",d=d!==""?"ForwardRef("+d+")":"ForwardRef"),d;case uu:return w=d.displayName||null,w!==null?w:u(d.type)||"Memo";case pu:w=d._payload,d=d._init;try{return u(d(w))}catch{}}return null}function e(d){return""+d}function t(d){try{e(d);var w=!1}catch{w=!0}if(w){w=console;var N=w.error,A=typeof Symbol=="function"&&Symbol.toStringTag&&d[Symbol.toStringTag]||d.constructor.name||"Object";return N.call(w,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",A),e(d)}}function s(d){if(d===j)return"<>";if(typeof d=="object"&&d!==null&&d.$$typeof===pu)return"<...>";try{var w=u(d);return w?"<"+w+">":"<...>"}catch{return"<...>"}}function a(){var d=l.A;return d===null?null:d.getOwner()}function c(){return Error("react-stack-top-frame")}function i(d){if(E.call(d,"key")){var w=Object.getOwnPropertyDescriptor(d,"key").get;if(w&&w.isReactWarning)return!1}return d.key!==void 0}function n(d,w){function N(){M||(M=!0,console.error("%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)",w))}N.isReactWarning=!0,Object.defineProperty(d,"key",{get:N,configurable:!0})}function x(){var d=u(this.type);return k[d]||(k[d]=!0,console.error("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.")),d=this.props.ref,d!==void 0?d:null}function b(d,w,N,A,V,nu){var D=N.ref;return d={$$typeof:p,type:d,key:w,props:N,_owner:A},(D!==void 0?D:null)!==null?Object.defineProperty(d,"ref",{enumerable:!1,get:x}):Object.defineProperty(d,"ref",{enumerable:!1,value:null}),d._store={},Object.defineProperty(d._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(d,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(d,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:V}),Object.defineProperty(d,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:nu}),Object.freeze&&(Object.freeze(d.props),Object.freeze(d)),d}function m(d,w,N,A,V,nu){var D=w.children;if(D!==void 0)if(A)if(O(D)){for(A=0;A<D.length;A++)h(D[A]);Object.freeze&&Object.freeze(D)}else console.error("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else h(D);if(E.call(w,"key")){D=u(d);var su=Object.keys(w).filter(function(Cu){return Cu!=="key"});A=0<su.length?"{key: someKey, "+su.join(": ..., ")+": ...}":"{key: someKey}",_[D+A]||(su=0<su.length?"{"+su.join(": ..., ")+": ...}":"{}",console.error(`A props object containing a "key" prop is being spread into JSX:
1
+ (function(T,G){typeof exports=="object"&&typeof module<"u"?G(exports,require("react"),require("html-react-parser")):typeof define=="function"&&define.amd?define(["exports","react","html-react-parser"],G):(T=typeof globalThis<"u"?globalThis:T||self,G(T.ReactAsciiDoc={},T.React,T.parse))})(this,(function(T,G,vu){"use strict";function Te(u){return u&&u.__esModule&&Object.prototype.hasOwnProperty.call(u,"default")?u.default:u}var Au={exports:{}},ju={};var Mu;function Ie(){if(Mu)return ju;Mu=1;var u=Symbol.for("react.transitional.element"),e=Symbol.for("react.fragment");function t(s,a,c){var i=null;if(c!==void 0&&(i=""+c),a.key!==void 0&&(i=""+a.key),"key"in a){c={};for(var n in a)n!=="key"&&(c[n]=a[n])}else c=a;return a=c.ref,{$$typeof:u,type:s,key:i,ref:a!==void 0?a:null,props:c}}return ju.Fragment=e,ju.jsx=t,ju.jsxs=t,ju}var wu={};var Du;function Re(){return Du||(Du=1,process.env.NODE_ENV!=="production"&&(function(){function u(d){if(d==null)return null;if(typeof d=="function")return d.$$typeof===o?null:d.displayName||d.name||null;if(typeof d=="string")return d;switch(d){case j:return"Fragment";case I:return"Profiler";case $:return"StrictMode";case z:return"Suspense";case K:return"SuspenseList";case _e:return"Activity"}if(typeof d=="object")switch(typeof d.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),d.$$typeof){case g:return"Portal";case q:return d.displayName||"Context";case R:return(d._context.displayName||"Context")+".Consumer";case Q:var w=d.render;return d=d.displayName,d||(d=w.displayName||w.name||"",d=d!==""?"ForwardRef("+d+")":"ForwardRef"),d;case uu:return w=d.displayName||null,w!==null?w:u(d.type)||"Memo";case pu:w=d._payload,d=d._init;try{return u(d(w))}catch{}}return null}function e(d){return""+d}function t(d){try{e(d);var w=!1}catch{w=!0}if(w){w=console;var N=w.error,A=typeof Symbol=="function"&&Symbol.toStringTag&&d[Symbol.toStringTag]||d.constructor.name||"Object";return N.call(w,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",A),e(d)}}function s(d){if(d===j)return"<>";if(typeof d=="object"&&d!==null&&d.$$typeof===pu)return"<...>";try{var w=u(d);return w?"<"+w+">":"<...>"}catch{return"<...>"}}function a(){var d=l.A;return d===null?null:d.getOwner()}function c(){return Error("react-stack-top-frame")}function i(d){if(E.call(d,"key")){var w=Object.getOwnPropertyDescriptor(d,"key").get;if(w&&w.isReactWarning)return!1}return d.key!==void 0}function n(d,w){function N(){M||(M=!0,console.error("%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)",w))}N.isReactWarning=!0,Object.defineProperty(d,"key",{get:N,configurable:!0})}function x(){var d=u(this.type);return k[d]||(k[d]=!0,console.error("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.")),d=this.props.ref,d!==void 0?d:null}function b(d,w,N,A,V,nu){var D=N.ref;return d={$$typeof:p,type:d,key:w,props:N,_owner:A},(D!==void 0?D:null)!==null?Object.defineProperty(d,"ref",{enumerable:!1,get:x}):Object.defineProperty(d,"ref",{enumerable:!1,value:null}),d._store={},Object.defineProperty(d._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(d,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(d,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:V}),Object.defineProperty(d,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:nu}),Object.freeze&&(Object.freeze(d.props),Object.freeze(d)),d}function m(d,w,N,A,V,nu){var D=w.children;if(D!==void 0)if(A)if(O(D)){for(A=0;A<D.length;A++)h(D[A]);Object.freeze&&Object.freeze(D)}else console.error("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else h(D);if(E.call(w,"key")){D=u(d);var su=Object.keys(w).filter(function(Cu){return Cu!=="key"});A=0<su.length?"{key: someKey, "+su.join(": ..., ")+": ...}":"{key: someKey}",_[D+A]||(su=0<su.length?"{"+su.join(": ..., ")+": ...}":"{}",console.error(`A props object containing a "key" prop is being spread into JSX:
18
2
  let props = %s;
19
3
  <%s {...props} />
20
4
  React keys must be passed directly to JSX without using spread:
@@ -25,11 +9,7 @@ React keys must be passed directly to JSX without using spread:
25
9
  `)!==-1?u=u.split(`
26
10
  `).filter(b=>!b.includes("")).join(`
27
11
  `):u=""}return u.replace(/(\\)?\{(\w[\w-]*)(\\)?\}/g,(s,a,c,i)=>{if(a||i)return"{"+c+"}";const n=c.toLowerCase();return Object.prototype.hasOwnProperty.call(Zu,n)?Zu[n]:Object.prototype.hasOwnProperty.call(e,c)?e[c]:Object.prototype.hasOwnProperty.call(e,n)?e[n]:s})}function st(u,e,t){const s=a=>{for(let c=0;c<a.length;c++){const i=a[c];if(i.type==="text"&&typeof i.text=="string"&&i.text.indexOf("{")!==-1){const n=Gu(i.text,e,t);n!==i.text&&(a[c]={...i,text:n})}"text"in i&&Array.isArray(i.text)&&(i.text=s(i.text))}return a};return s(u)}const Zu={blank:"",empty:"",sp:" ",nbsp:"&#160;",zwsp:"&#8203;",wj:"&#8288;",apos:"&#39;",quot:"&#34;",lsquo:"&#8216;",rsquo:"&#8217;",ldquo:"&#8220;",rdquo:"&#8221;",deg:"&#176;",plus:"&#43;",brvbar:"&#166;",amp:"&amp;",lt:"&lt;",gt:"&gt;",startsb:"[",endsb:"]",vbar:"|",caret:"^",asterisk:"*",tilde:"~",backslash:"\\",backtick:"`","two-colons":"::","two-semicolons":";;",cpp:"C++"};function at(u){function e(t,s,a){return u.replace(t,(c,...i)=>c.includes("\\")?c.replace("\\",""):s)}return u=e(/\\?\(C\)/g,"&#169;"),u=e(/\\?\(R\)/g,"&#174;"),u=e(/\\?\(TM\)/g,"&#8482;"),u=u.replace(/(^|[ \n]|\\)--([ \n]|$)/g,t=>t.includes("\\")?t.replace("\\",""):"&#8201;&#8212;&#8201;"),u=u.replace(/([\p{L}\p{N}_])\\?--(?=[\p{L}\p{N}_])/gu,(t,s)=>t.includes("\\")?t.replace("\\",""):s+"&#8212;&#8203;"),u=e(/\\?\.\.\./g,"&#8230;&#8203;"),u=u.replace(new RegExp("([\\p{L}\\p{N}])\\\\?'(?=\\p{L})","gu"),(t,s)=>t.includes("\\")?t.replace("\\",""):s+"&#8217;"),u=u.replace(/\\?`'/g,t=>t.startsWith("\\")?t.slice(1):"&#8217;"),u=e(/\\?-&gt;/g,"&#8594;"),u=e(/\\?=&gt;/g,"&#8658;"),u=e(/\\?&lt;-/g,"&#8592;"),u=e(/\\?&lt;=/g,"&#8656;"),u=u.replace(/(\\)?&amp;([a-zA-Z][a-zA-Z]+\d{0,2};|#\d{1,7};|#x[\da-fA-F]{1,6};)/g,(t,s,a)=>s?"&amp;"+a:"&"+a),u}function Yu(u,e){const t=u.length;return u.push(e),""+t+""}function Qu(u,e,t=new Set){const s=[],a=/\x01(\d+)\x02/g;let c=0,i;for(;(i=a.exec(u))!==null;){const x=u.slice(c,i.index);x&&s.push({type:"text",text:x});const b=parseInt(i[1],10),m=e[b];if(m&&!t.has(b)){t.add(b);for(const h of m)s.push(Ju(h,e,t));t.delete(b)}else m&&process.env.NODE_ENV!=="production"&&console.warn(`[react-asciidoc] Inline placeholder cycle at index ${b} — content dropped`);c=i.index+i[0].length}const n=u.slice(c);return n&&s.push({type:"text",text:n}),s.length===0&&u.length>0&&s.push({type:"text",text:u}),s}function Ju(u,e,t=new Set){if(u.type==="text")return u;if(u.type==="quoted"||u.type==="anchor"||u.type==="footnote"||u.type==="button"){const s=[];for(const a of u.text)if(a.type==="text"&&a.text.indexOf("")!==-1){const c=Qu(a.text,e,t);for(const i of c)s.push(i)}else s.push(Ju(a,e,t));return{...u,text:s}}return u}function eu(u,e={}){const t=e.compatMode??!1,s=e.attributes??{},a=e.state??Ye(),c=t?Bu.compat:Bu.nonCompat;let i=u;const n=t?Wu.true:Wu.false,x=[],b=[],m=f=>!e._subs||e._subs.includes(f);m("macros")&&(i=ct(i,x,t)),!e._alreadyEscaped&&m("specialcharacters")&&(i=fu(i)),m("quotes")&&(i.match(/\*/)||i.match(/_/)||n.test(i))&&(i=ot(i,c,b,a,e._quoteFromIndex??0)),m("attributes")&&(i=Gu(i,s,a)),m("replacements")&&(i=at(i)),m("macros")&&(i=dt(i,s,t,b,a,e._quoted??!1));let h=Qu(i,b);return m("post_replacements")&&(h=bt(h,s)),m("attributes")&&(h=st(h,s,a)),h=Ku(h,x,t,a),h}function ct(u,e,t){return u=it(u,e,t),u=nt(u,e,t),u}function it(u,e,t){let s="",a=0;const c=u.length,i=t?null:/^\+\+\+([\s\S]*?)\+\+\+/,n=t?null:/^(?:\[([^\[\]]+)\])?\+\+([\s\S]+?)\+\+/,x=/^pass:([a-z]+(?:,[a-z-]+)*)?\[(|[\s\S]*?[^\\])\]/,b=/^(stem|(?:latex|ascii)math):([a-z]+(?:,[a-z-]+)*)?\[([\s\S]*?[^\\])\]/;for(;a<c;){if(u[a]==="$"&&u[a+1]==="$"){const m=u.indexOf("$$",a+2);if(m>=0){const h=u.slice(a+2,m),f=e.length;e.push({text:h,type:"unquoted",subs:["specialcharacters"]}),s+=hu(f),a=m+2;continue}}if(u[a]==="+"&&i){const m=u.slice(a).match(i);if(m){const h=e.length;e.push({text:m[1],type:"unquoted",subs:[]}),s+=hu(h),a+=m[0].length;continue}}if((u[a]==="+"||u[a]==="[")&&n){const m=u.slice(a);if(!m.startsWith("+++")){const h=m.match(n);if(h){const f=h[1]||"",y=h[2],p=e.length,g=Fu(f);e.push({text:y,type:"unquoted",subs:["specialcharacters"],attributes:{...g.id?{id:g.id}:{},...g.role?{role:g.role}:{}}}),s+=hu(p),a+=h[0].length;continue}}}if(u[a]==="p"&&u.slice(a,a+5)==="pass:"){const m=u.slice(a).match(x);if(m){const h=m[1]?lt(m[1]):[],f=m[2],y=e.length;e.push({text:f,type:"unquoted",subs:h}),s+=hu(y),a+=m[0].length;continue}}if(u[a]==="s"||u[a]==="a"||u[a]==="l"){const m=u.slice(a).match(b);if(m){const h=m[3],f=e.length,y=m[1]==="asciimath"?"asciimath":"latexmath";e.push({text:h,type:y,subs:["specialcharacters"]}),s+=hu(f),a+=m[0].length;continue}}s+=u[a],a++}return s}function nt(u,e,t){let s="",a=0;const c=u.length,i=t?/^(?:\[([^\[\]]+)\])?(`)([^`]|[^`][\s\S]*?[^`])\2(?![A-Za-z0-9_])/:/^(?:\[([^\[\]]+)\])?(\+)(\S|\S[\s\S]*?\S)\2(?![A-Za-z0-9_])/,n=/[A-Za-z0-9_;:\\]/;for(;a<c;){if((t?u[a]==="`":u[a]==="+")&&(a===0||!n.test(u[a-1]))){const x=u.slice(a).match(i);if(x){const b=x[3],m=e.length;e.push({text:b,type:t?"monospaced":"unquoted",subs:["specialcharacters"]}),s+=hu(m),a+=x[0].length;continue}}s+=u[a],a++}return s}function lt(u){const e={a:"attributes",attributes:"attributes",m:"macros",macros:"macros",n:"normal",normal:"normal",p:"post_replacements",post_replacements:"post_replacements",q:"quotes",quotes:"quotes",r:"replacements",replacements:"replacements",c:"specialcharacters",specialcharacters:"specialcharacters",specialchars:"specialcharacters",v:"verbatim",verbatim:"verbatim"},t=[];for(const s of u.split(",")){const a=s.trim(),c=e[a];c==="normal"?t.push("specialcharacters","quotes","attributes","replacements","macros","post_replacements"):c&&t.push(c)}return t.length===0&&t.push("specialcharacters"),t}function ot(u,e,t,s,a=0){for(let c=a;c<e.length;c++){const i=e[c];let n="",x=u;const b=i.scope==="constrained";for(;x.length>0;){const m=i.rx.exec(x);if(!m){n+=x;break}const h=m[0],f=m.index;n+=x.slice(0,f);let y="",p="",g="";b?(y=m[1]||"",p=m[2]||"",g=m[3]||""):(p=m[1]||"",g=m[2]||"");const j=h.startsWith("\\");let $=0;if(!j&&i.type==="monospaced"&&!b&&g.startsWith("`")&&x[f+h.length]==="`"&&(g=g+"`",$=1),j)n+=h.slice(1);else{y&&(n+=y);let I,R;if(p){const K=Fu(p);I=K.role,R=K.id}const q=g.replace(/\\\]/g,"]"),Q=eu(q,{compatMode:!1,state:s,_alreadyEscaped:!0,_quoted:!0,_quoteFromIndex:c+1}),z={type:"quoted",subtype:i.type,text:Q,...R?{id:R}:{},...I?{role:I}:{}};n+=Yu(t,[z])}x=x.slice(f+h.length+$)}u=n}return u}function au(u){return u?[{type:"text",text:u}]:[]}function dt(u,e,t,s,a,c=!1){let i=u;const n=Object.prototype.hasOwnProperty.call(e,"experimental"),x=Object.prototype.hasOwnProperty.call(e,"icons")?e.icons:void 0,b=x===void 0?"text":x==="font"?"font":"image",m=[{rx:/(\\)?(kbd|btn):\[([\s\S]*?[^\\])\]/,handler:f=>f[1]||!n?null:f[2]==="kbd"?{type:"kbd",keys:Ke(f[3])}:{type:"button",text:au(f[3])}},{rx:/\\?menu:(\w|[&\w][^\n\[]*[^\s\[])\[ *(?:|([\s\S]*?[^\\]))\]/,handler:f=>f[0].startsWith("\\")||!n?null:{type:"menu",items:f[2]?[f[1],...f[2].split(/&gt;|>/).map(p=>p.trim())]:[f[1]]}},{rx:/\\?(image|icon):([^:\s\[](?:[^\n\[]*[^\s\[])?)\[(|[\s\S]*?[^\\])\]/,handler:f=>{if(f[0].startsWith("\\"))return null;const y=f[1]==="icon",p=y?et(f[3]):Xe(f[3]),g=f[2],j=p.alt||(y?g:ut(g));return{type:"image",subtype:y?"icon":"image",target:g,alt:j,width:p.width,height:p.height,id:p.id,role:p.role,title:p.title,float:p.float,link:p.link,window:p.window,...y?{iconType:b}:{}}}},{rx:new RegExp(String.raw`\\?(?:(indexterm2?):\[([\s\S]*?[^\\])\]|\(\(([\s\S]+?)\)\)(?!\)))`),handler:f=>{if(f[0].startsWith("\\"))return null;const p=(f[2]||f[3]||"").split(",").map($=>$.trim()),j=(f[1]?f[1].startsWith("indexterm2"):f[0].startsWith("(("))===!0;return{type:"indexterm",terms:p,visible:j}}},{rx:/\[\[\[([\p{L}_][\p{L}\p{N}_\-:.]*)(?:, *([\s\S]+?))?\]\]\]/u,handler:f=>({type:"anchor",subtype:"bibref",text:au(f[2]||f[1]),target:f[1]})},{rx:/\\?(?:link|(mailto)):(|[^\s\[:][^\s\[]*)\[(|[\s\S]*?[^\\])\]/,handler:f=>{if(f[0].startsWith("\\"))return null;const y=f[1]==="mailto",p=f[3]||"";if(y){const R=tt(p),q=f[2];let Q="mailto:"+q;const z=[];return R.subject&&z.push(`subject=${Uu(R.subject)}`),R.body&&z.push(`body=${Uu(R.body)}`),z.length&&(Q+="?"+z.join("&")),{type:"anchor",subtype:"link",text:R.text?au(R.text):[{type:"text",text:q}],target:Q,...R.id?{id:R.id}:{},...R.role?{role:R.role}:{}}}const g=f[2],j=Vu(p);let $=j.text,I=j.role;return $||($=g,I=I?`bare ${I}`:"bare"),{type:"anchor",subtype:"link",text:au($),target:g,...j.id?{id:j.id}:{},...I?{role:I}:{},...j.window?{window:j.window}:{}}}},{rx:new RegExp("(?<=^|\\s|&lt;|>|[\\(\\)\\[\\];\"'`\\x02-\\x05])(\\\\?(?:https?|file|ftp|irc):\\/\\/)(?:([^\\s\\[\\]]+)\\[(|[\\s\\S]*?[^\\\\])\\]|([^\\s]+)&gt;|([^\\s\\[\\]<]*([^\\s,.?!\\[\\]<\\)])))","m"),handler:f=>{if(f[1].startsWith("\\")){const q=f[1].slice(1),Q=f[2]!==void 0?`${f[2]}[${f[3]||""}]`:f[4]!==void 0?`${f[4]}&gt;`:f[5]||"";return[{type:"text",text:q+Q}]}const y=f[1];let p,g,j,$="",I;if(f[2]!==void 0){p=y+f[2];const q=f[3]||"";if(q){const Q=Vu(q);Q.window&&(I=Q.window),Q.role&&(j=Q.role),g=au(Q.text)}else g=[{type:"text",text:p}],j="bare"}else if(f[4]!==void 0)p=y+f[4],g=[{type:"text",text:p}],j="bare";else{p=y+(f[5]||"");const q=f[6]||"";if(q===";"?(p=p.slice(0,-1),p.endsWith(")")?(p=p.slice(0,-1),$=");"):$=";"):q===":"&&(p=p.slice(0,-1),p.endsWith(")")?(p=p.slice(0,-1),$="):"):$=":"),p===y)return[{type:"text",text:f[0]}];g=[{type:"text",text:p}],j="bare"}j==="bare"&&Object.prototype.hasOwnProperty.call(e,"hide-uri-scheme")&&(g=[{type:"text",text:p.replace(/^[a-z][a-z0-9.+-]*:\/\//i,"")}]);const R=[];return R.push({type:"anchor",subtype:"link",text:g,target:p,...j?{role:j}:{},...I?{window:I}:{}}),$&&R.push({type:"text",text:$}),R}},{rx:/([\\>:/])?\w(?:&amp;|[\w\-.%+])*@[\w][\w_\-.]*\.[a-zA-Z]{2,5}\b/,handler:f=>{const y=f[1]||"";if(y==="\\")return{type:"text",text:f[0].slice(1)};if(y||c&&f.index===0&&!y)return null;const p=f[0];return{type:"anchor",subtype:"link",text:[{type:"text",text:p}],target:"mailto:".concat(p)}}},{rx:new RegExp(String.raw`(\\)?(?:\[\[([A-Za-z_][\w\-:.]*)(?:, *([\s\S]+?))? ?\]\]|anchor:([A-Za-z_][\w\-:.]*)\[(?:\]|([\s\S]*?[^\\])\]))`),handler:f=>{if(f[1])return null;const y=f[2]||f[4]||"",p=f[3]||f[5]||"";return{type:"anchor",subtype:"ref",text:au(p||y),target:y,id:y}}},{rx:new RegExp(String.raw`\\?(?:&lt;&lt;([\w#/.:{][\s\S]*?)&gt;&gt;|xref:([\w#/.:{][\s\S]*?)\[(?:\]|([\s\S]*?[^\\])\]))`),handler:f=>{if(f[0].startsWith("\\"))return null;if(f[1]!==void 0){const j=f[1].indexOf(","),$=j===-1?f[1]:f[1].slice(0,j),I=j===-1?"":f[1].slice(j+1).replace(/^\s+/,""),R=I||`[${$}]`;return{type:"anchor",subtype:"xref",text:au(R),target:$,...I?{explicitText:!0}:{}}}const y=(f[2]||"").trim(),p=(f[3]||"").replace(/\\\]/g,"]").trim(),g=/^xrefstyle\s*=\s*("?)([\w-]+)\1$/.exec(p);return g?{type:"anchor",subtype:"xref",text:au(`[${y}]`),target:y,xrefstyle:g[2],macro:!0}:{type:"anchor",subtype:"xref",text:au(p||`[${y}]`),target:y,macro:!0,...p?{explicitText:!0}:{}}}},{rx:/\\?footnote(?:(ref):|:([\p{L}\p{N}_-]+)?)\[(?:|([\s\S]*?[^\\]))\](?!<\/a>)/u,handler:f=>{if(f[0].startsWith("\\"))return null;const y=$=>{const I=$?a.footnotesById.get($):void 0;return{type:"footnote",text:[],refid:$,...I!==void 0?{index:I}:{}}},p=($,I)=>{a.footnoteIndex++;const R=a.footnoteIndex;$&&a.footnotesById.set($,R);const q=au(I);return a.footnoteDefs&&a.footnoteDefs.push(q),{type:"footnote",text:q,...$?{id:$}:{},index:R}};if(f[1]==="ref"){if(!f[3])return null;const $=f[3],I=$.indexOf(","),R=(I===-1?$:$.slice(0,I)).trim(),q=I===-1?"":$.slice(I+1);return q?p(R,q):y(R)}const g=f[2],j=f[3]||"";return!g&&!j?null:g&&(!j||a.footnotesById.has(g))?y(g):p(g,j)}}];let h=i;for(const{rx:f,handler:y}of m){const p=ft(f);p.lastIndex=0;const g=[];let j=0,$;for(;($=p.exec(h))!==null;){if($[0].length===0){p.lastIndex++;continue}$.index>j&&g.push(h.slice(j,$.index));const I=y($,e);if(I){const R=Array.isArray(I)?I:[I];g.push(Yu(s,R))}else g.push($[0]);j=$.index+$[0].length}j<h.length&&g.push(h.slice(j)),h=g.join("")}return h}const Xu=new WeakMap;function ft(u){if(u.flags.includes("g"))return u;const e=Xu.get(u);if(e)return e;const t=new RegExp(u.source,u.flags+"g");return Xu.set(u,t),t}function Ku(u,e,t,s){const a=/–(\d+)—/g;function c(x){const b={type:"text",text:x};if(x.indexOf("–")===-1)return[b];const m=[];let h=0;a.lastIndex=0;let f;for(;(f=a.exec(x))!==null;){f.index>h&&m.push({type:"text",text:x.slice(h,f.index)});const y=parseInt(f[1],10),p=e[y];if(!p){m.push({type:"text",text:f[0]}),h=f.index+f[0].length;continue}if(p){if(p.subs.length===0){const I=p.attributes??{},R={type:"text",text:p.text,raw:!0};I.id||I.role?m.push({type:"quoted",subtype:"unquoted",text:[R],...I.id?{id:I.id}:{},...I.role?{role:I.role}:{}}):m.push(R),h=f.index+f[0].length;continue}let g;p.subs.length===1&&p.subs[0]==="specialcharacters"?g=[{type:"text",text:fu(p.text)}]:g=eu(p.text,{compatMode:t,state:s,_subs:p.subs}),g=Ku(g,e,t,s);const j=p.attributes??{},$=!!(j.id||j.role);p.type==="unquoted"||p.type==="normal"?$?m.push({type:"quoted",subtype:"unquoted",text:g,...j.id?{id:j.id}:{},...j.role?{role:j.role}:{}}):m.push(...g):p.type==="monospaced"||p.type==="asciimath"||p.type==="latexmath"?m.push({type:"quoted",subtype:p.type,text:g,...j.id?{id:j.id}:{},...j.role?{role:j.role}:{}}):m.push(...g)}h=f.index+f[0].length}return h<x.length&&m.push({type:"text",text:x.slice(h)}),m.length>0?m:[b]}function i(x){return!x||x.indexOf("–")===-1?x:x.replace(/–(\d+)—/g,(b,m)=>{const h=e[parseInt(m,10)];return h?h.subs.length===1&&h.subs[0]==="specialcharacters"?fu(h.text):h.text:b})}function n(x){return x.type==="text"?c(x.text):x.type==="anchor"?[{...x,target:i(x.target),text:x.text.flatMap(n)}]:x.type==="image"?[{...x,target:i(x.target)??x.target,link:i(x.link)}]:x.type==="quoted"||x.type==="footnote"||x.type==="button"?[{...x,text:x.text.flatMap(n)}]:[x]}return u.flatMap(n)}function bt(u,e){const s=Object.prototype.hasOwnProperty.call(e,"hardbreaks")||Object.prototype.hasOwnProperty.call(e,"hardbreaks-option")?/(?: \+)?\n/g:/ \+(\n|$)/g,a=[];for(const c of u){if(c.type!=="text"){a.push(c);continue}const i=c.text;s.lastIndex=0;let n=0,x=!1,b;for(;(b=s.exec(i))!==null;)x=!0,b.index>n&&a.push({type:"text",text:i.slice(n,b.index)}),a.push({type:"break",subtype:"line"}),n=b.index+b[0].length;x?n<i.length&&a.push({type:"text",text:i.slice(n)}):a.push(c)}return a}const xt={monospaced:["<code>","</code>",!0],emphasis:["<em>","</em>",!0],strong:["<strong>","</strong>",!0],double:["&#8220;","&#8221;"],single:["&#8216;","&#8217;"],mark:["<mark>","</mark>",!0],superscript:["<sup>","</sup>",!0],subscript:["<sub>","</sub>",!0],asciimath:["\\$","\\$"],latexmath:["\\(","\\)"]},pt=/^(?:[a-zA-Z][a-zA-Z]+\d{0,2}|#\d{1,7}|#x[\da-fA-F]{1,6});/;function ht(u){return u.replace(/ /g,"%20")}function H(u){let e="";for(let t=0;t<u.length;t++){const s=u[t];s==="&"?pt.test(u.slice(t+1))?e+="&":e+="&amp;":s==='"'?e+="&quot;":s==="<"?e+="&lt;":s===">"?e+="&gt;":e+=s}return e}function bu(u,e=!1){return u.map(t=>mt(t,e)).join("")}function mt(u,e){switch(u.type){case"text":return u.text;case"quoted":{const t=xt[u.subtype]||["",""],s=t[2]===!0,a=bu(u.text,e);let c="";if(u.id&&(c+=` id="${u.id}"`),u.role&&(c+=` class="${H(u.role)}"`),u.subtype==="mark"&&(u.id||u.role))return`<span${c}>${a}</span>`;if(s){let i=t[0];return c&&i.endsWith(">")&&(i=i.slice(0,-1)+c+">"),`${i}${a}${t[1]}`}return u.id||u.role?`<span${c}>${t[0]}${a}${t[1]}</span>`:`${t[0]}${a}${t[1]}`}case"anchor":{const t=u.id||"",s=u.role||"";let a=t?` id="${t}"`:"",c=s?` class="${H(s)}"`:"";t?a+=c:a=c;const i=bu(u.text,e);switch(u.subtype){case"link":{const n=H(u.target);let x="";return u.window&&(x=` target="${H(u.window)}"`,u.window==="_blank"&&(x+=' rel="noopener"')),`<a href="${n}"${a}${x}>${i}</a>`}case"ref":return`<a id="${H(u.id||u.target)}"></a>`;case"xref":{const n=u.target;return`<a href="${n.startsWith("#")||n.includes("#")||n.includes("/")?H(n):"#"+H(n)}"${a}>${i}</a>`}case"bibref":return`[<a id="${H(u.id||u.target)}"></a>]`}}case"image":{const t=H(ht(u.target)),s=u.alt||"";let a="";u.width&&(a+=` width="${H(u.width)}"`),u.height&&(a+=` height="${H(u.height)}"`);const c=u.title?` title="${H(u.title)}"`:"",i=m=>{if(!u.link)return m;let h="";return u.window&&(h=` target="${H(u.window)}"`,u.window==="_blank"&&(h+=' rel="noopener"')),`<a class="image" href="${H(u.link)}"${h}>${m}</a>`};if(u.subtype==="icon"){const m=u.iconType||"text",h=["icon"];u.role&&h.push(u.role),u.float&&h.push(u.float);const f=` class="${h.join(" ")}"`,y=u.id?` id="${H(u.id)}"`:"";if(m==="text"){const p=u.alt||u.target;return`<span${f}${y}${c}>${i(`[${p}&#93;`)}</span>`}return m==="font"?`<span${f}${y}>${i(`<i class="fa fa-${H(u.target)}"${c}></i>`)}</span>`:`<span${f}${y}${c}>${i(`<img src="${t}" alt="${H(s)}"${a}>`)}</span>`}const n=["image"];u.role&&n.push(u.role),u.float&&n.push(u.float);const x=` class="${n.join(" ")}"`,b=u.id?` id="${H(u.id)}"`:"";return`<span${x}${b}>${i(`<img src="${t}" alt="${H(s)}"${a}${c}>`)}</span>`}case"footnote":{if(u.refid&&(!u.text||u.text.length===0))return u.index!==void 0?`<sup class="footnoteref">[<a class="footnote" href="#_footnotedef_${u.index}" title="View footnote.">${u.index}</a>]</sup>`:`<sup class="footnoteref red" title="Unresolved footnote reference.">[${H(u.refid)}]</sup>`;const t=u.index;if(t===void 0){const a=u.id?` id="${H(u.id)}"`:"",c=bu(u.text,e);return`<sup${a}>[${c}]</sup>`}return`<sup class="footnote"${u.id?` id="_footnote_${H(u.id)}"`:""}>[<a id="_footnoteref_${t}" class="footnote" href="#_footnotedef_${t}" title="View footnote.">${t}</a>]</sup>`}case"indexterm":return u.visible?bu([{type:"text",text:u.terms.join(", ")}],e):"";case"callout":return`<b class="conum">(${u.number})</b>`;case"break":return`<br>
28
- `;case"button":return`<b class="button">${bu(u.text,e)}</b>`;case"kbd":return u.keys.length===1?`<kbd>${u.keys[0]}</kbd>`:`<span class="keyseq">${u.keys.map(t=>`<kbd>${t}</kbd>`).join("+")}</span>`;case"menu":{if(u.items.length===1)return`<b class="menuref">${u.items[0]}</b>`;const t=e?'&#160;<i class="fa fa-angle-right caret"></i> ':'&#160;<b class="caret">&#8250;</b> ',s=[];for(let a=0;a<u.items.length;a++){const c=u.items[a];a===0?s.push(`<b class="menu">${c}</b>`):a<u.items.length-1?s.push(`${t}<b class="submenu">${c}</b>`):s.push(`${t}<b class="menuitem">${c}</b>`)}return`<span class="menuseq">${s.join("")}</span>`}}}function cu(u,e=!1){return bu(u,e)}const gt=Object.freeze(Object.defineProperty({__proto__:null,parseInline:eu,renderInline:bu,renderInlineAsString:cu,subCallouts:Ou,subCalloutsRaw:rt,subSpecialchars:fu},Symbol.toStringTag,{value:"Module"})),xu=(u,e=!1)=>({__html:u?cu(u,e):""}),Eu=u=>{if(!u)return!1;for(const e of u)if(e.type==="text"){if(e.raw||/[<>]/.test(e.text))return!0}else if("text"in e&&Array.isArray(e.text)&&Eu(e.text))return!0;return!1},ku=u=>{const e=G.useContext(yu);return{react:!Eu(u),iconsFont:e.document?.attributes?.icons==="font"}},X=u=>u?ze(u):"",C=({nodes:u,bibliography:e=!1})=>{const t=G.useContext(yu);if(!u||u.length===0)return null;const s={overrides:t.inlineOverrides||{},iconsFont:t.document?.attributes?.icons==="font",bibDef:e?{pending:!0}:void 0};return r.jsx(r.Fragment,{children:mu(u,s)})},mu=(u,e)=>u.map((t,s)=>r.jsx(G.Fragment,{children:yt(t,e)},s)),yt=(u,e)=>{const{overrides:t}=e;switch(u.type){case"text":return u.raw?vu(u.text):X(u.text);case"quoted":{const s=mu(u.text,e);return t.quoted?r.jsx(t.quoted,{node:u,children:s}):vt(u,s)}case"anchor":{if(u.subtype==="bibref"){const a=e.bibDef?.pending??!1;return e.bibDef&&(e.bibDef.pending=!1),a?r.jsxs(r.Fragment,{children:[r.jsx("a",{id:u.id||u.target}),"[",mu(u.text,e),"]"]}):ue(u,null)}const s=mu(u.text,e);return t.anchor?r.jsx(t.anchor,{node:u,children:s}):ue(u,s)}case"image":return t.image?r.jsx(t.image,{node:u}):jt(u);case"footnote":{const s=mu(u.text||[],e);return t.footnote?r.jsx(t.footnote,{node:u,children:s}):wt(u,s)}case"indexterm":return t.indexterm?r.jsx(t.indexterm,{node:u}):u.visible?X(u.terms.join(", ")):null;case"callout":return t.callout?r.jsx(t.callout,{node:u}):r.jsx("b",{className:"conum",children:`(${u.number})`});case"break":return t.break?r.jsx(t.break,{}):r.jsx("br",{});case"button":{const s=mu(u.text,e);return t.button?r.jsx(t.button,{node:u,children:s}):r.jsx("b",{className:"button",children:s})}case"kbd":return t.kbd?r.jsx(t.kbd,{node:u}):Nt(u);case"menu":return t.menu?r.jsx(t.menu,{node:u}):$t(u,e.iconsFont)}},vt=(u,e)=>{const t=u.role||void 0,s=u.id||void 0;switch(u.subtype){case"emphasis":return r.jsx("em",{id:s,className:t,children:e});case"strong":return r.jsx("strong",{id:s,className:t,children:e});case"monospaced":return r.jsx("code",{id:s,className:t,children:e});case"superscript":return r.jsx("sup",{id:s,className:t,children:e});case"subscript":return r.jsx("sub",{id:s,className:t,children:e});case"mark":return s||t?r.jsx("span",{id:s,className:t,children:e}):r.jsx("mark",{children:e});case"double":return _u(s,t,"“",e,"”");case"single":return _u(s,t,"‘",e,"’");case"asciimath":return _u(s,t,"\\$",e,"\\$");case"latexmath":return _u(s,t,"\\(",e,"\\)");case"unquoted":return s||t?r.jsx("span",{id:s,className:t,children:e}):r.jsx(r.Fragment,{children:e})}},_u=(u,e,t,s,a)=>u||e?r.jsxs("span",{id:u,className:e,children:[t,s,a]}):r.jsxs(r.Fragment,{children:[t,s,a]}),ue=(u,e)=>{switch(u.subtype){case"link":{const t=u.window==="_blank"?"noopener":void 0;return r.jsx("a",{href:X(u.target),id:u.id||void 0,className:u.role||void 0,target:u.window||void 0,rel:t,children:e})}case"ref":return r.jsx("a",{id:u.id||u.target});case"xref":{const t=u.target,s=t.startsWith("#")||t.includes("#")||t.includes("/")?t:`#${t}`;return r.jsx("a",{href:X(s),id:u.id||void 0,className:u.role||void 0,children:e})}case"bibref":return r.jsxs(r.Fragment,{children:["[",r.jsx("a",{id:u.id||u.target}),"]"]})}},ee=u=>X(u).replace(/ /g,"%20"),jt=u=>{const e=i=>{if(!u.link)return i;const n=u.window==="_blank"?"noopener":void 0;return r.jsx("a",{className:"image",href:X(u.link),target:u.window||void 0,rel:n,children:i})},t=[u.subtype==="icon"?"icon":"image"];u.role&&t.push(u.role),u.float&&t.push(u.float);const s=t.join(" "),a=u.id||void 0,c=u.title?X(u.title):void 0;if(u.subtype==="icon"){const i=u.iconType||"text";return i==="text"?r.jsx("span",{className:s,id:a,title:c,children:e(`[${X(u.alt||u.target)}]`)}):i==="font"?r.jsx("span",{className:s,id:a,children:e(r.jsx("i",{className:`fa fa-${u.target}`,title:c}))}):r.jsx("span",{className:s,id:a,title:c,children:e(r.jsx("img",{src:ee(u.target),alt:X(u.alt)||"",width:u.width||void 0,height:u.height||void 0}))})}return r.jsx("span",{className:s,id:a,children:e(r.jsx("img",{src:ee(u.target),alt:X(u.alt)||"",width:u.width||void 0,height:u.height||void 0,title:c}))})},wt=(u,e)=>{if(u.refid&&(!u.text||u.text.length===0))return u.index!==void 0?r.jsxs("sup",{className:"footnoteref",children:["[",r.jsx("a",{className:"footnote",href:`#_footnotedef_${u.index}`,title:"View footnote.",children:u.index}),"]"]}):r.jsx("sup",{className:"footnoteref red",title:"Unresolved footnote reference.",children:`[${X(u.refid)}]`});const t=u.index;return t===void 0?r.jsxs("sup",{id:u.id||void 0,children:["[",e,"]"]}):r.jsxs("sup",{className:"footnote",id:u.id?`_footnote_${u.id}`:void 0,children:["[",r.jsx("a",{id:`_footnoteref_${t}`,className:"footnote",href:`#_footnotedef_${t}`,title:"View footnote.",children:t}),"]"]})},Nt=u=>u.keys.length===1?r.jsx("kbd",{children:X(u.keys[0])}):r.jsx("span",{className:"keyseq",children:u.keys.map((e,t)=>r.jsxs(G.Fragment,{children:[t>0?"+":null,r.jsx("kbd",{children:X(e)})]},t))}),$t=(u,e)=>{if(u.items.length===1)return r.jsx("b",{className:"menuref",children:X(u.items[0])});const t=e?r.jsx("i",{className:"fa fa-angle-right caret"}):r.jsx("b",{className:"caret",children:"›"});return r.jsx("span",{className:"menuseq",children:u.items.map((s,a)=>{const c=a===0?"menu":a<u.items.length-1?"submenu":"menuitem";return r.jsxs(G.Fragment,{children:[a>0?r.jsxs(r.Fragment,{children:[" ",t," "]}):null,r.jsx("b",{className:c,children:X(s)})]},a)})})};var Pu={exports:{}};/*!
29
- Copyright (c) 2018 Jed Watson.
30
- Licensed under the MIT License (MIT), see
31
- http://jedwatson.github.io/classnames
32
- */var te;function St(){return te||(te=1,(function(u){(function(){var e={}.hasOwnProperty;function t(){for(var c="",i=0;i<arguments.length;i++){var n=arguments[i];n&&(c=a(c,s(n)))}return c}function s(c){if(typeof c=="string"||typeof c=="number")return c;if(typeof c!="object")return"";if(Array.isArray(c))return t.apply(null,c);if(c.toString!==Object.prototype.toString&&!c.toString.toString().includes("[native code]"))return c.toString();var i="";for(var n in c)e.call(c,n)&&c[n]&&(i=a(i,n));return i}function a(c,i){return i?c?c+" "+i:c+i:c}u.exports?(t.default=t,u.exports=t):window.classNames=t})()})(Pu)),Pu.exports}var At=St();const P=Te(At),B=({text:u})=>u?r.jsx("div",{className:"title",dangerouslySetInnerHTML:{__html:u}}):null,re=({node:u})=>{const{document:e}=ru(),t=e.attributes||{},s=u.attributes,a=()=>t.icons==="font"&&!s.icon?r.jsx("i",{className:`fa icon-${s.name}`,title:`${s.textlabel}`}):r.jsx("img",{src:u.iconUri,alt:`${s.textlabel}`});return r.jsx("div",{id:u.id||void 0,className:P("admonitionblock",`${s.name}`,u.role),...u.lineNumber?{"data-lineno":u.lineNumber}:{},children:r.jsx("table",{children:r.jsx("tbody",{children:r.jsxs("tr",{children:[r.jsx("td",{className:"icon",children:t.icons?a():r.jsx("div",{className:"title",children:`${s.textlabel}`})}),u.blocks.length>0?r.jsxs("td",{className:"content",children:[r.jsx(B,{text:u.title}),r.jsx(F,{blocks:u.blocks})]}):r.jsxs("td",{className:"content",children:[u.title&&r.jsx("div",{className:"title",dangerouslySetInnerHTML:{__html:u.title}}),r.jsx(C,{nodes:u.inlines})]})]})})})})},se=({node:u})=>{const e=u.attributes.start,t=u.attributes.end,s=e||t?`#t=${e||""}${t?","+t:""}`:"",a=[u.autoplay?"autoplay":"",u.noControls?"":"controls",u.loop?"loop":""].filter(Boolean).join(" "),i=`<audio src="${u.mediaUri}${s}"${a?" "+a:""}>`+"Your browser does not support the audio tag.</audio>";return r.jsxs("div",{id:u.id||void 0,className:P("audioblock",u.role),...u.lineNumber?{"data-lineno":u.lineNumber}:{},children:[r.jsx(B,{text:u.title}),r.jsx("div",{className:"content",dangerouslySetInnerHTML:{__html:i}})]})},ae=({node:u})=>{const{document:e}=ru(),t=e.attributes?.icons==="font";return r.jsxs("div",{id:u.id||void 0,className:P("colist",u.style||"arabic",u.role),...u.lineNumber?{"data-lineno":u.lineNumber}:{},children:[r.jsx(B,{text:u.title}),t?r.jsx("table",{children:r.jsx("tbody",{children:u.items.map((s,a)=>r.jsxs("tr",{children:[r.jsxs("td",{children:[r.jsx("i",{className:"conum","data-value":a+1}),r.jsx("b",{children:a+1})]}),s.blocks.length>0?r.jsxs("td",{children:[r.jsx(C,{nodes:s.textInlines}),r.jsx(F,{blocks:s.blocks})]}):r.jsx("td",{children:r.jsx(C,{nodes:s.textInlines})})]},a))})}):r.jsx("ol",{children:u.items.map((s,a)=>r.jsxs("li",{children:[r.jsx("p",{children:r.jsx(C,{nodes:s.textInlines})}),r.jsx(F,{blocks:s.blocks})]},a))})]})},iu=(u,e)=>u[`${e}-option`]!==void 0,Tu=(u,e,t=void 0,s,a)=>{if(u[e]!==void 0)return u[e];const c=s||e;return c&&a&&a[c]!==void 0?a[c]:t},lu=(u,e)=>u[e]!==void 0,Et=u=>typeof u.title=="string"?u.title:void 0,gu=u=>{if(typeof u.getSourceLines=="function"){const e=u.getSourceLines();let t=0;for(;t<e.length&&e[t]==="";)t++;let s=e.length;for(;s>t&&e[s-1]==="";)s--;return e.slice(t,s).join(`
12
+ `;case"button":return`<b class="button">${bu(u.text,e)}</b>`;case"kbd":return u.keys.length===1?`<kbd>${u.keys[0]}</kbd>`:`<span class="keyseq">${u.keys.map(t=>`<kbd>${t}</kbd>`).join("+")}</span>`;case"menu":{if(u.items.length===1)return`<b class="menuref">${u.items[0]}</b>`;const t=e?'&#160;<i class="fa fa-angle-right caret"></i> ':'&#160;<b class="caret">&#8250;</b> ',s=[];for(let a=0;a<u.items.length;a++){const c=u.items[a];a===0?s.push(`<b class="menu">${c}</b>`):a<u.items.length-1?s.push(`${t}<b class="submenu">${c}</b>`):s.push(`${t}<b class="menuitem">${c}</b>`)}return`<span class="menuseq">${s.join("")}</span>`}}}function cu(u,e=!1){return bu(u,e)}const gt=Object.freeze(Object.defineProperty({__proto__:null,parseInline:eu,renderInline:bu,renderInlineAsString:cu,subCallouts:Ou,subCalloutsRaw:rt,subSpecialchars:fu},Symbol.toStringTag,{value:"Module"})),xu=(u,e=!1)=>({__html:u?cu(u,e):""}),Eu=u=>{if(!u)return!1;for(const e of u)if(e.type==="text"){if(e.raw||/[<>]/.test(e.text))return!0}else if("text"in e&&Array.isArray(e.text)&&Eu(e.text))return!0;return!1},ku=u=>{const e=G.useContext(yu);return{react:!Eu(u),iconsFont:e.document?.attributes?.icons==="font"}},X=u=>u?ze(u):"",C=({nodes:u,bibliography:e=!1})=>{const t=G.useContext(yu);if(!u||u.length===0)return null;const s={overrides:t.inlineOverrides||{},iconsFont:t.document?.attributes?.icons==="font",bibDef:e?{pending:!0}:void 0};return r.jsx(r.Fragment,{children:mu(u,s)})},mu=(u,e)=>u.map((t,s)=>r.jsx(G.Fragment,{children:yt(t,e)},s)),yt=(u,e)=>{const{overrides:t}=e;switch(u.type){case"text":return u.raw?vu(u.text):X(u.text);case"quoted":{const s=mu(u.text,e);return t.quoted?r.jsx(t.quoted,{node:u,children:s}):vt(u,s)}case"anchor":{if(u.subtype==="bibref"){const a=e.bibDef?.pending??!1;return e.bibDef&&(e.bibDef.pending=!1),a?r.jsxs(r.Fragment,{children:[r.jsx("a",{id:u.id||u.target}),"[",mu(u.text,e),"]"]}):ue(u,null)}const s=mu(u.text,e);return t.anchor?r.jsx(t.anchor,{node:u,children:s}):ue(u,s)}case"image":return t.image?r.jsx(t.image,{node:u}):jt(u);case"footnote":{const s=mu(u.text||[],e);return t.footnote?r.jsx(t.footnote,{node:u,children:s}):wt(u,s)}case"indexterm":return t.indexterm?r.jsx(t.indexterm,{node:u}):u.visible?X(u.terms.join(", ")):null;case"callout":return t.callout?r.jsx(t.callout,{node:u}):r.jsx("b",{className:"conum",children:`(${u.number})`});case"break":return t.break?r.jsx(t.break,{}):r.jsx("br",{});case"button":{const s=mu(u.text,e);return t.button?r.jsx(t.button,{node:u,children:s}):r.jsx("b",{className:"button",children:s})}case"kbd":return t.kbd?r.jsx(t.kbd,{node:u}):Nt(u);case"menu":return t.menu?r.jsx(t.menu,{node:u}):$t(u,e.iconsFont)}},vt=(u,e)=>{const t=u.role||void 0,s=u.id||void 0;switch(u.subtype){case"emphasis":return r.jsx("em",{id:s,className:t,children:e});case"strong":return r.jsx("strong",{id:s,className:t,children:e});case"monospaced":return r.jsx("code",{id:s,className:t,children:e});case"superscript":return r.jsx("sup",{id:s,className:t,children:e});case"subscript":return r.jsx("sub",{id:s,className:t,children:e});case"mark":return s||t?r.jsx("span",{id:s,className:t,children:e}):r.jsx("mark",{children:e});case"double":return _u(s,t,"“",e,"”");case"single":return _u(s,t,"‘",e,"’");case"asciimath":return _u(s,t,"\\$",e,"\\$");case"latexmath":return _u(s,t,"\\(",e,"\\)");case"unquoted":return s||t?r.jsx("span",{id:s,className:t,children:e}):r.jsx(r.Fragment,{children:e})}},_u=(u,e,t,s,a)=>u||e?r.jsxs("span",{id:u,className:e,children:[t,s,a]}):r.jsxs(r.Fragment,{children:[t,s,a]}),ue=(u,e)=>{switch(u.subtype){case"link":{const t=u.window==="_blank"?"noopener":void 0;return r.jsx("a",{href:X(u.target),id:u.id||void 0,className:u.role||void 0,target:u.window||void 0,rel:t,children:e})}case"ref":return r.jsx("a",{id:u.id||u.target});case"xref":{const t=u.target,s=t.startsWith("#")||t.includes("#")||t.includes("/")?t:`#${t}`;return r.jsx("a",{href:X(s),id:u.id||void 0,className:u.role||void 0,children:e})}case"bibref":return r.jsxs(r.Fragment,{children:["[",r.jsx("a",{id:u.id||u.target}),"]"]})}},ee=u=>X(u).replace(/ /g,"%20"),jt=u=>{const e=i=>{if(!u.link)return i;const n=u.window==="_blank"?"noopener":void 0;return r.jsx("a",{className:"image",href:X(u.link),target:u.window||void 0,rel:n,children:i})},t=[u.subtype==="icon"?"icon":"image"];u.role&&t.push(u.role),u.float&&t.push(u.float);const s=t.join(" "),a=u.id||void 0,c=u.title?X(u.title):void 0;if(u.subtype==="icon"){const i=u.iconType||"text";return i==="text"?r.jsx("span",{className:s,id:a,title:c,children:e(`[${X(u.alt||u.target)}]`)}):i==="font"?r.jsx("span",{className:s,id:a,children:e(r.jsx("i",{className:`fa fa-${u.target}`,title:c}))}):r.jsx("span",{className:s,id:a,title:c,children:e(r.jsx("img",{src:ee(u.target),alt:X(u.alt)||"",width:u.width||void 0,height:u.height||void 0}))})}return r.jsx("span",{className:s,id:a,children:e(r.jsx("img",{src:ee(u.target),alt:X(u.alt)||"",width:u.width||void 0,height:u.height||void 0,title:c}))})},wt=(u,e)=>{if(u.refid&&(!u.text||u.text.length===0))return u.index!==void 0?r.jsxs("sup",{className:"footnoteref",children:["[",r.jsx("a",{className:"footnote",href:`#_footnotedef_${u.index}`,title:"View footnote.",children:u.index}),"]"]}):r.jsx("sup",{className:"footnoteref red",title:"Unresolved footnote reference.",children:`[${X(u.refid)}]`});const t=u.index;return t===void 0?r.jsxs("sup",{id:u.id||void 0,children:["[",e,"]"]}):r.jsxs("sup",{className:"footnote",id:u.id?`_footnote_${u.id}`:void 0,children:["[",r.jsx("a",{id:`_footnoteref_${t}`,className:"footnote",href:`#_footnotedef_${t}`,title:"View footnote.",children:t}),"]"]})},Nt=u=>u.keys.length===1?r.jsx("kbd",{children:X(u.keys[0])}):r.jsx("span",{className:"keyseq",children:u.keys.map((e,t)=>r.jsxs(G.Fragment,{children:[t>0?"+":null,r.jsx("kbd",{children:X(e)})]},t))}),$t=(u,e)=>{if(u.items.length===1)return r.jsx("b",{className:"menuref",children:X(u.items[0])});const t=e?r.jsx("i",{className:"fa fa-angle-right caret"}):r.jsx("b",{className:"caret",children:"›"});return r.jsx("span",{className:"menuseq",children:u.items.map((s,a)=>{const c=a===0?"menu":a<u.items.length-1?"submenu":"menuitem";return r.jsxs(G.Fragment,{children:[a>0?r.jsxs(r.Fragment,{children:[" ",t," "]}):null,r.jsx("b",{className:c,children:X(s)})]},a)})})};var Pu={exports:{}};var te;function St(){return te||(te=1,(function(u){(function(){var e={}.hasOwnProperty;function t(){for(var c="",i=0;i<arguments.length;i++){var n=arguments[i];n&&(c=a(c,s(n)))}return c}function s(c){if(typeof c=="string"||typeof c=="number")return c;if(typeof c!="object")return"";if(Array.isArray(c))return t.apply(null,c);if(c.toString!==Object.prototype.toString&&!c.toString.toString().includes("[native code]"))return c.toString();var i="";for(var n in c)e.call(c,n)&&c[n]&&(i=a(i,n));return i}function a(c,i){return i?c?c+" "+i:c+i:c}u.exports?(t.default=t,u.exports=t):window.classNames=t})()})(Pu)),Pu.exports}var At=St();const P=Te(At),B=({text:u})=>u?r.jsx("div",{className:"title",dangerouslySetInnerHTML:{__html:u}}):null,re=({node:u})=>{const{document:e}=ru(),t=e.attributes||{},s=u.attributes,a=()=>t.icons==="font"&&!s.icon?r.jsx("i",{className:`fa icon-${s.name}`,title:`${s.textlabel}`}):r.jsx("img",{src:u.iconUri,alt:`${s.textlabel}`});return r.jsx("div",{id:u.id||void 0,className:P("admonitionblock",`${s.name}`,u.role),...u.lineNumber?{"data-lineno":u.lineNumber}:{},children:r.jsx("table",{children:r.jsx("tbody",{children:r.jsxs("tr",{children:[r.jsx("td",{className:"icon",children:t.icons?a():r.jsx("div",{className:"title",children:`${s.textlabel}`})}),u.blocks.length>0?r.jsxs("td",{className:"content",children:[r.jsx(B,{text:u.title}),r.jsx(F,{blocks:u.blocks})]}):r.jsxs("td",{className:"content",children:[u.title&&r.jsx("div",{className:"title",dangerouslySetInnerHTML:{__html:u.title}}),r.jsx(C,{nodes:u.inlines})]})]})})})})},se=({node:u})=>{const e=u.attributes.start,t=u.attributes.end,s=e||t?`#t=${e||""}${t?","+t:""}`:"",a=[u.autoplay?"autoplay":"",u.noControls?"":"controls",u.loop?"loop":""].filter(Boolean).join(" "),i=`<audio src="${u.mediaUri}${s}"${a?" "+a:""}>`+"Your browser does not support the audio tag.</audio>";return r.jsxs("div",{id:u.id||void 0,className:P("audioblock",u.role),...u.lineNumber?{"data-lineno":u.lineNumber}:{},children:[r.jsx(B,{text:u.title}),r.jsx("div",{className:"content",dangerouslySetInnerHTML:{__html:i}})]})},ae=({node:u})=>{const{document:e}=ru(),t=e.attributes?.icons==="font";return r.jsxs("div",{id:u.id||void 0,className:P("colist",u.style||"arabic",u.role),...u.lineNumber?{"data-lineno":u.lineNumber}:{},children:[r.jsx(B,{text:u.title}),t?r.jsx("table",{children:r.jsx("tbody",{children:u.items.map((s,a)=>r.jsxs("tr",{children:[r.jsxs("td",{children:[r.jsx("i",{className:"conum","data-value":a+1}),r.jsx("b",{children:a+1})]}),s.blocks.length>0?r.jsxs("td",{children:[r.jsx(C,{nodes:s.textInlines}),r.jsx(F,{blocks:s.blocks})]}):r.jsx("td",{children:r.jsx(C,{nodes:s.textInlines})})]},a))})}):r.jsx("ol",{children:u.items.map((s,a)=>r.jsxs("li",{children:[r.jsx("p",{children:r.jsx(C,{nodes:s.textInlines})}),r.jsx(F,{blocks:s.blocks})]},a))})]})},iu=(u,e)=>u[`${e}-option`]!==void 0,Tu=(u,e,t=void 0,s,a)=>{if(u[e]!==void 0)return u[e];const c=s||e;return c&&a&&a[c]!==void 0?a[c]:t},lu=(u,e)=>u[e]!==void 0,Et=u=>typeof u.title=="string"?u.title:void 0,gu=u=>{if(typeof u.getSourceLines=="function"){const e=u.getSourceLines();let t=0;for(;t<e.length&&e[t]==="";)t++;let s=e.length;for(;s>t&&e[s-1]==="";)s--;return e.slice(t,s).join(`
33
13
  `)}return""},Iu=u=>{const e=u.split(`
34
14
  `);if(e.length<2)return u;for(;e.length&&e[0].replace(/\s+$/,"")==="";)e.shift();for(;e.length&&e[e.length-1].replace(/\s+$/,"")==="";)e.pop();return e.join(`
35
15
  `)},kt=u=>{const e=[[]];for(const t of u)t.type==="text"&&!t.raw&&/\n\n+/.test(t.text)?t.text.split(/\n\n+/).forEach((a,c)=>{c>0&&e.push([]),a.length>0&&e[e.length-1].push({type:"text",text:a})}):e[e.length-1].push(t);return e},_t=u=>{const e=u[0];if(!e||e.type!=="text"||e.raw)return u;const t=e.text.replace(/^\s+/,"");return t===""?u.slice(1):t===e.text?u:[{...e,text:t},...u.slice(1)]},Ru=u=>{const e=[],t=s=>{for(const a of s)a.type==="footnote"&&a.text&&a.text.length>0&&e.push(a),"text"in a&&Array.isArray(a.text)&&t(a.text)};return t(u),e},Tt=u=>{let e;const t=u.getAttributes(),s={};for(const[o,l]of Object.entries(t))l!=null&&(s[o]=String(l));const a=new Map,c=new Map,i=new Map;{const o=new Map,l=typeof u.getSourceLines=="function"?u.getSourceLines():[],E=/^:(?:!([\w-]+)|([\w-]+)!):\s*$/,O=/^:([A-Za-z][\w-]*):(?: (.*))?$/,L=/(\\)?\{counter2?:([\w-]+)(?::[^}]*)?\}/g,M=/^(-{4,}|\.{4,}|\+{4,}|\/{4,})$/;let k=null;for(const v of l){const S=M.exec(v.trimEnd());if(S){const N=S[1][0];k===null?k=N:k===N&&(k=null);continue}if(k!==null)continue;const _=E.exec(v);if(_){const N=_[1]||_[2],A=o.get(N)??0;a.has(N)||a.set(N,new Set),a.get(N).add(A),i.delete(N);continue}const d=O.exec(v);if(d){const N=d[1],A=d[2]??"";if(i.set(N,A),A!==""){const V=o.get(N)??0;c.has(N)||c.set(N,new Map),c.get(N).set(V,A)}continue}let w;for(L.lastIndex=0;w=L.exec(v);)w[1]||o.set(w[2],(o.get(w[2])??0)+1)}}for(const[o,l]of i)o in s||(s[o]=l);const n={footnoteIndex:0,footnotesById:new Map,footnoteDefs:[],counters:new Map,counterResets:a,counterUses:new Map,counterSeeds:c},x=o=>{const l=o.getAttributes&&o.getAttributes();return l&&l["hardbreaks-option"]!==void 0?{...s,"hardbreaks-option":String(l["hardbreaks-option"])}:s},b=new Map,m=new Set,h=new Map,f=typeof t.xrefstyle=="string"?t.xrefstyle:void 0,y=(o,l=f)=>{if(o.reftext)return o.reftext;const E=o.sectname==="appendix"||o.sectname==="chapter",O=E?`<em>${o.title}</em>`:o.title;if(l&&o.numbered){const L=o.numeral.replace(/\.$/,""),M=t[`${o.sectname}-refsig`];if(l==="full"){const k=E?`<em>${o.title}</em>`:`&#8220;${o.title}&#8221;`;return M?`${M} ${L}, ${k}`:`${L}, ${k}`}return l==="short"?M?`${M} ${L}`:L:O}return l?O:o.title},p=new Map,g=new Map,j=o=>{for(const l of o.getSections()){const E=l.getId(),O=l.getReftext&&l.getReftext()||void 0,L={title:l.getTitle()||"",numbered:l.isNumbered?l.isNumbered():!1,sectname:l.getSectionName&&l.getSectionName()||"section",numeral:l.getSectionNumeral&&l.getSectionNumeral()||"",reftext:O};if(E){m.add(E),p.set(E,L),b.set(E,y(L));const M=O||L.title;M&&!h.has(M)&&h.set(M,E)}j(l)}};j(u);const $=u.getRefs?u.getRefs():{};for(const o of Object.keys($)){m.add(o);const l=$[o];typeof l.$xreftext=="function"&&g.set(o,l);const E=l.getReftext&&l.getReftext();if(E)b.set(o,E),h.has(E)||h.set(E,o);else if(!b.has(o)){const O=typeof l.$xreftext=="function"?l.$xreftext(f??null):void 0;O?b.set(o,O):l.title&&b.set(o,l.title)}}const I=new Map,R=new Map;if(typeof u.findBy=="function"){const o=u.findBy({context:"list_item"});for(const l of o){const E=l.text;if(typeof E!="string"||!E.includes("[[["))continue;const O=eu(E,{attributes:s,state:{footnoteIndex:0,footnotesById:new Map}});let L,M;const k=v=>{for(const S of v)S.type==="anchor"&&(S.subtype==="bibref"&&L===void 0?L=S.target:S.subtype==="link"&&M===void 0&&(M=S.target)),"text"in S&&Array.isArray(S.text)&&k(S.text)};if(k(O),L){const v=O.findIndex(_=>_.type==="anchor"&&_.subtype==="bibref"),S=_t(v===-1?O:O.slice(v+1));S.length>0&&R.set(L,S)}L&&M&&I.set(L,M)}}const q=o=>{if(!o)return o;for(const l of o){if(l.type==="anchor"&&l.subtype==="xref"){const E=`[${l.target}]`,O=l.text,L=!l.explicitText&&O.length===1&&O[0].type==="text"&&O[0].text===E,M=_=>{let d=b.get(_);if(l.xrefstyle){const w=p.get(_);if(w)d=y(w,l.xrefstyle);else{const N=g.get(_);N&&typeof N.$xreftext=="function"&&(d=N.$xreftext(l.xrefstyle)??d)}}L&&typeof d=="string"&&(l.text=[{type:"text",text:d,raw:!0}])},k=l.target.indexOf("#");if(l.target==="#"&&L){const _=u.getDocumentTitle?.(),d=u.getAttribute&&u.getAttribute("reftext")||(typeof _=="string"?_:void 0);l.text=[{type:"text",text:d||"[^top]",raw:!0}]}if(k>0&&!l.target.slice(0,k).includes("://")){let _=l.target.slice(0,k);const d=l.target.slice(k+1),w=t.outfilesuffix??".html";let N=!1;_.endsWith(".adoc")?(_=_.slice(0,-5),N=!0):/\.[^./]+$/.test(_)||(N=!0);const A=t.relfileprefix??"",V=N?t.relfilesuffix!==void 0?String(t.relfilesuffix):w:"",nu=A+_+V;l.target=d?`${nu}#${d}`:nu,L&&(l.text=[{type:"text",text:nu,raw:!0}])}else if(l.macro&&k===-1&&/\.[^./]+$/.test(l.target)&&!l.target.includes("://")){let _=l.target,d=!1;_.endsWith(".adoc")&&(_=_.slice(0,-5),d=!0);const w=t.outfilesuffix??".html",N=t.relfileprefix??"",A=d?t.relfilesuffix!==void 0?String(t.relfilesuffix):w:"",V=N+_+A;l.target=V,L&&(l.text=[{type:"text",text:V,raw:!0}]),l.subtype="link"}else if(m.has(l.target))M(l.target);else if(l.target.includes(" ")||l.target.toLowerCase()!==l.target){const _=h.get(l.target);_&&(l.target=_,M(_))}const v=I.get(l.target);v&&(l.externalHref=v);const S=R.get(l.target);S&&(l.referenceInlines=S)}"text"in l&&Array.isArray(l.text)&&q(l.text)}return o},Q=o=>{if(o)return eu(o,{attributes:s,state:{footnoteIndex:0,footnotesById:new Map,counters:n.counters,counterResets:n.counterResets,counterUses:n.counterUses}})};function z(o){const l=o.getNodeName&&o.getNodeName(),E=o.getContentModel&&o.getContentModel(),L=l&&!(l==="olist"||l==="ulist"||l==="colist"||l==="dlist")&&o.hasBlocks()?o.getBlocks().map(v=>z(v)):[],M=Et(o);let k={id:o.getId&&o.getId(),type:l,blocks:L,content:void 0,inlines:L.length===0&&E==="simple"?q(eu(gu(o),{attributes:x(o),state:n})):void 0,titleInlines:o.hasTitle&&o.hasTitle()?Q(M):void 0,attributes:o.getAttributes&&o.getAttributes(),contentModel:E,lineNumber:o.getLineNumber&&o.getLineNumber(),style:o.getStyle&&o.getStyle(),role:o.getRole&&o.getRole(),title:o.hasTitle&&o.hasTitle()?o.getCaption&&o.getCaption()?o.getCaptionedTitle():o.getTitle():void 0,level:o.getLevel&&o.getLevel()};if(l==="admonition"){let v=k;v.iconUri=o.getIconUri(k.attributes.name)}if(l==="audio"){let v=k;v.mediaUri=o.getMediaUri(o.getAttribute("target")),v.autoplay=o.isOption("autoplay"),v.noControls=o.isOption("nocontrols"),v.loop=o.isOption("loop"),k=v}if(l==="video"){let v=k;v.mediaUri=o.getMediaUri(o.getAttribute("target")),v.autoplay=o.isOption("autoplay"),v.noControls=o.isOption("nocontrols"),v.loop=o.isOption("loop"),v.onHover=o.isOption("onhover"),k=v}if(l==="image"){let v=k;v.imageUri=o.getImageUri(o.getAttribute("target")),v.alt=typeof o.getAlt=="function"?o.getAlt():o.getAttribute("alt")??""}if((l==="listing"||l==="literal")&&"getSource"in o){const v=k;v.source=o.getSource(),v.language=o.getAttribute("language");const S=t.icons==="font",_=o.getAttribute("line-comment"),d=gu(o),w=o.getSubstitutions&&typeof o.getSubstitutions=="function"?o.getSubstitutions():["specialcharacters","callouts"];if(w.some(A=>["quotes","attributes","replacements","macros","post_replacements"].includes(A))){const A=q(eu(d,{attributes:x(o),state:n,_subs:w}));let V=cu(A??[]);w.includes("callouts")&&(V=Ou(V,S,_)),k.content=Iu(V)}else{let A=fu(d);w.includes("callouts")&&(A=Ou(A,S,_)),k.content=Iu(A)}}if(l==="section"){const v=k,S=!!o.getCaption();v.title=S?o.getCaptionedTitle():o.getTitle()||"",v.hasCaption=S,"getSectionNumeral"in o&&(v.name=o.getSectionName(),v.numbered=o.isNumbered(),v.num=o.getSectionNumeral())}if(l==="verse"&&(k.inlines=q(eu(gu(o),{attributes:x(o),state:n}))),l==="stem"){const v=gu(o);k.content=fu(v)}if(l==="pass")if((o.getSubstitutions&&typeof o.getSubstitutions=="function"?o.getSubstitutions():[]).length>0){const S=q(eu(gu(o),{attributes:x(o),state:n}));k.content=Iu(cu(S??[]))}else k.content=Iu(gu(o));if(l==="dlist"){let v=k;v.items=o.getItems().map(S=>[S[0].map(_=>z(_)),z(S[1])])}if(l==="colist"||l==="olist"||l==="ulist"){let v=k;v.items=o.getItems().map(S=>z(S))}if(l==="list_item"){let v=k;const S=o,_=typeof S.text=="string"?S.text:void 0;v.textInlines=S.hasText()&&_!==void 0?q(eu(_,{attributes:s,state:n})):void 0}if(l==="table"){let v=k;const S=o;v.columns=S.getColumns().map(A=>({attributes:A.getAttributes(),columnNumber:A.getColumnNumber(),width:A.getWidth(),horizontalAlign:A.getHorizontalAlign(),verticalAlign:A.getVerticalAlign(),style:A.getStyle()}));const _=A=>A.map(V=>V.map(nu=>z(nu))),d=_(S.getHeadRows()),w=_(S.getBodyRows()),N=_(S.getFootRows());v.rows={head:d,body:w,foot:N},v={...v,caption:S.getCaption(),hasHeader:S.hasHeaderOption(),hasFooter:S.hasFooterOption(),hasAutowidth:S.hasAutowidthOption(),headRows:d,bodyRows:w,footRows:N},k=v}if(l==="table_cell"){const v=o,S=v.getColumn(),_=typeof v.text=="string"?v.text:v.getSource(),d=v.getStyle();let w;if(d==="asciidoc"){const D=v.getInnerDocument?.();w=D?D.getBlocks().map(su=>z(su)):[]}const N=_?q(eu(_,{attributes:s,state:n})):void 0;let A,V;if(d==="asciidoc")A=[];else if(d==="literal")A=[fu(v.getSource())];else if(_){const D=N?cu(N):"",su=D?D.split(/\n\n+/):[],Su=d==="emphasis"?"<em>":d==="strong"?"<strong>":d==="monospaced"?"<code>":"",Cu=d==="emphasis"?"</em>":d==="strong"?"</strong>":d==="monospaced"?"</code>":"";A=su.length>0?su.map(Ct=>Su+Ct+Cu):[],V=N?kt(N):[]}else A=[],V=[];k={...k,blocks:w??k.blocks,type:"table_cell",content:A,contentInlines:V,text:d==="asciidoc"?"":cu(N||[]),textInlines:N,columnSpan:v.getColumnSpan(),rowSpan:v.getRowSpan(),source:v.getSource(),lines:v.getLines(),width:v.getWidth(),columnPercentageWidth:v.getColumnPercentageWidth(),column:S?{attributes:S.getAttributes(),columnNumber:S.getColumnNumber(),width:S.getWidth(),horizontalAlign:S.getHorizontalAlign(),verticalAlign:S.getVerticalAlign(),style:S.getStyle()}:void 0}}return k}function K(o){return o.getSections().map(l=>({id:l.getId(),title:(l.getCaption()?l.getCaptionedTitle():l.getTitle())||"",level:l.getLevel(),num:l.getSectionNumber(),numbered:l.isNumbered(),hasCaption:!!l.getCaption(),sections:K(l)}))}e={type:"document",id:u.getId&&u.getId()||void 0,title:u.getDocumentTitle()?.toString()||"",hasHeader:u.hasHeader(),noHeader:u.getNoheader(),contentModel:u.getContentModel(),footnotes:[],attributes:u.getAttributes(),blocks:u.getBlocks().map(o=>z(o)),sections:K(u),authors:[]};const uu=[],pu=o=>{for(const l of o){if(l.inlines){const E=Ru(l.inlines);uu.push(...E)}if(l.blocks&&pu(l.blocks),"items"in l&&Array.isArray(l.items))for(const E of l.items){if("textInlines"in E&&E.textInlines){const O=Ru(E.textInlines);uu.push(...O)}"blocks"in E&&E.blocks&&pu(E.blocks)}if("items"in l&&Array.isArray(l.items)){for(const E of l.items)if(Array.isArray(E)){for(const O of E)if(O&&typeof O=="object"&&"textInlines"in O&&O.textInlines){const L=Ru(O.textInlines);uu.push(...L)}}}if("rows"in l&&l.rows){const E=l.rows;for(const O of[E.head,E.body,E.foot])for(const L of O)for(const M of L)if(M.textInlines){const k=Ru(M.textInlines);uu.push(...k)}}}};if(pu(e.blocks),uu.length>0){const o=new Map;for(const l of uu)l.index!==void 0&&(!o.get(l.index)||l.text&&l.text.length>0)&&o.set(l.index,l);e.footnotes=[...o.values()].sort((l,E)=>(l.index??0)-(E.index??0)).map(l=>({index:l.index,textInlines:l.text??[]}))}return u.getAuthors()&&(e.authors=u.getAuthors().map(o=>{const l=o.getName(),E=o.getEmail();return{name:l?cu(q(eu(l,{attributes:s,state:{footnoteIndex:0,footnotesById:new Map}}))||[]):void 0,email:E?cu(q(eu(E,{attributes:s,state:{footnoteIndex:0,footnotesById:new Map}}))||[]):void 0}})),e},It=async(u,e)=>{const t=async a=>Promise.all(a.map(async c=>{let i=await e(c);if(i.blocks&&i.blocks.length>0&&(i.blocks=await t(i.blocks)),i.items){const n=i;n.items=await t(n.items)}return i})),s=await t(u.blocks);return{...u,blocks:s}},ce=({node:u})=>{const e=s=>{const a=s,c=a[0];let i=a[1];return(!i||!i.type)&&(i=null),{terms:c,dd:i}},t=s=>s?r.jsxs("dd",{children:[s.textInlines&&r.jsx("p",{children:r.jsx(C,{nodes:s.textInlines})}),r.jsx(F,{blocks:s.blocks})]}):null;if(u.style==="qanda")return r.jsxs("div",{id:u.id||void 0,className:P("qlist qanda",u.role),...u.lineNumber?{"data-lineno":u.lineNumber}:{},children:[r.jsx(B,{text:u.title}),r.jsx("ol",{children:u.items.map((s,a)=>{const{terms:c,dd:i}=e(s);return c?r.jsxs("li",{children:[c.map((n,x)=>r.jsx("p",{children:r.jsx("em",{children:r.jsx(C,{nodes:n.textInlines})})},x)),i&&r.jsxs(r.Fragment,{children:[i.textInlines&&r.jsx("p",{children:r.jsx(C,{nodes:i.textInlines})}),r.jsx(F,{blocks:i.blocks})]})]},a):null})})]});if(u.style==="horizontal"){const s=u.attributes.labelwidth,a=u.attributes.itemwidth,c=i=>({width:`${i.toString().replace("%","")}%`});return r.jsxs("div",{id:u.id||void 0,className:P("hdlist",u.role),...u.lineNumber?{"data-lineno":u.lineNumber}:{},children:[r.jsx(B,{text:u.title}),r.jsxs("table",{children:[(s||a)&&r.jsxs("colgroup",{children:[r.jsx("col",{...s?{style:c(s)}:{}}),r.jsx("col",{...a?{style:c(a)}:{}})]}),r.jsx("tbody",{children:u.items.map((i,n)=>{const{terms:x,dd:b}=e(i);return x?r.jsxs("tr",{children:[r.jsx("td",{className:P("hdlist1",iu(u.attributes,"strong")&&"strong"),children:x.map((m,h)=>r.jsxs(G.Fragment,{children:[h>0&&r.jsx("br",{}),r.jsx(C,{nodes:m.textInlines})]},h))}),b&&r.jsxs("td",{className:"hdlist2",children:[b.textInlines&&r.jsx("p",{children:r.jsx(C,{nodes:b.textInlines})}),r.jsx(F,{blocks:b.blocks})]})]},n):null})})]})]})}return r.jsxs("div",{id:u.id||void 0,className:P("dlist",u.style,u.role),...u.lineNumber?{"data-lineno":u.lineNumber}:{},children:[r.jsx(B,{text:u.title}),r.jsx("dl",{children:u.items.map((s,a)=>{const{terms:c,dd:i}=e(s);return c?r.jsxs(G.Fragment,{children:[c.map((n,x)=>r.jsx("dt",{className:u.style==="glossary"?void 0:"hdlist1",children:r.jsx(C,{nodes:n.textInlines})},x)),t(i)]},a):null})})]})},Nu=({sections:u,opts:e})=>{const{document:t}=ru();if(!u||u.length===0)return null;const s=t.attributes||{},a=s.sectnumlevels,c=s.toclevels,i=e?.sectNumLevels||(a?parseInt(`${a}`):3),n=e?.tocLevels||(c?parseInt(`${c}`):2),x=b=>b.includes("<a")?b.replace(/<(?:a\b[^>]*|\/a)>/g,""):b;return r.jsx("ul",{className:`sectlevel${u[0].level}`,children:u.map(b=>{const h=b.numbered&&b.num&&b.num!=="."&&b.num!==".."&&!b.num.startsWith(".")&&!b.hasCaption&&b.level<=i?`${b.num} ${b.title}`:b.title;return r.jsxs("li",{children:[r.jsx("a",{href:`#${b.id}`,dangerouslySetInnerHTML:{__html:x(h)}}),b.level<n&&b.sections.length>0&&r.jsx(Nu,{sections:b.sections,opts:{tocLevels:n,sectNumLevels:i}})]},b.id)})})},ie=({document:u})=>{const e=()=>u.noHeader?null:r.jsx("div",{id:"header",children:u.hasHeader&&r.jsxs(r.Fragment,{children:[r.jsx("h1",{id:u.id||void 0,dangerouslySetInnerHTML:{__html:u.title}}),r.jsx(s,{}),u.sections&&u.sections.length>0&&u.attributes.toc!==void 0&&u.attributes["toc-placement"]==="auto"&&r.jsxs("div",{id:"toc",className:Tu(u.attributes,"toc-class","toc"),children:[r.jsx("div",{id:"toctitle",children:u.attributes["toc-title"]}),r.jsx(Nu,{sections:u.sections})]})]})}),t=()=>u.footnotes&&u.footnotes.length>0&&u.blocks&&!lu(u.attributes,"nofootnotes")?r.jsxs("div",{id:"footnotes",children:[r.jsx("hr",{}),u.footnotes.map(a=>r.jsxs("div",{className:"footnote",id:`_footnotedef_${a.index}`,children:[r.jsx("a",{href:`#_footnoteref_${a.index}`,children:a.index}),"."," ",r.jsx(C,{nodes:a.textInlines})]},a.index))]}):null,s=()=>u.authors.length>0||lu(u.attributes,"revnumber")||lu(u.attributes,"revdate")||lu(u.attributes,"revremark")?r.jsxs("div",{className:"details",children:[u.authors.map((a,c)=>r.jsxs(G.Fragment,{children:[a.name&&r.jsxs(r.Fragment,{children:[r.jsx("span",{id:`author${c+1>1?c+1:""}`,className:"author",children:r.jsx("span",{dangerouslySetInnerHTML:{__html:a.name}})}),r.jsx("br",{})]}),a.email&&r.jsxs(r.Fragment,{children:[r.jsx("span",{id:`email${c+1>1?c+1:""}`,className:"email",children:r.jsx("span",{dangerouslySetInnerHTML:{__html:a.email}})}),r.jsx("br",{})]})]},c)),lu(u.attributes,"revnumber")&&r.jsx("span",{id:"revnumber",children:`${u.attributes["version-label"].toString().toLowerCase()} ${u.attributes.revnumber}${u.attributes.revdate?",":""}`}),lu(u.attributes,"revdate")&&r.jsx("span",{id:"revdate",children:u.attributes.revdate}),lu(u.attributes,"revremark")&&r.jsxs(r.Fragment,{children:[r.jsx("br",{}),r.jsx("span",{id:"revremark",children:u.attributes.revremark})]})]}):null;return r.jsxs(r.Fragment,{children:[r.jsx(e,{}),r.jsx("div",{id:"content",children:r.jsx(F,{blocks:u.blocks})}),r.jsx(t,{})]})},ne=({node:u})=>{const{react:e,iconsFont:t}=ku(u.inlines);if(iu(u.attributes,"collapsible")){const a=iu(u.attributes,"open");return r.jsxs("details",{id:u.id||void 0,className:u.role||void 0,open:a,...u.lineNumber?{"data-lineno":u.lineNumber}:{},children:[r.jsx("summary",{className:"title",dangerouslySetInnerHTML:{__html:u.title||"Details"}}),r.jsx("div",{className:"content",children:u.blocks.length>0?r.jsx(F,{blocks:u.blocks}):u.inlines?e?r.jsx("div",{children:r.jsx(C,{nodes:u.inlines})}):r.jsx("div",{dangerouslySetInnerHTML:xu(u.inlines,t)}):null})]})}return r.jsxs("div",{id:u.id||void 0,className:P("exampleblock",u.role),...u.lineNumber?{"data-lineno":u.lineNumber}:{},children:[r.jsx(B,{text:u.title}),r.jsx("div",{className:"content",...u.blocks.length===0&&u.inlines&&!e?{dangerouslySetInnerHTML:xu(u.inlines,t)}:{},children:u.blocks.length>0?r.jsx(F,{blocks:u.blocks}):u.inlines&&e?r.jsx(C,{nodes:u.inlines}):null})]})},le=({node:u})=>G.createElement(`h${u.level+1}`,{id:u.id||void 0,className:P(u.style||"discrete",u.role),...u.lineNumber?{"data-lineno":u.lineNumber}:{}},r.jsx(C,{nodes:u.titleInlines})),Rt=/^(?:[a-zA-Z][a-zA-Z]+\d{0,2}|#\d{1,7}|#x[\da-fA-F]{1,6});/,$u=u=>{let e="";for(let t=0;t<u.length;t++){const s=u[t];s==="&"?e+=Rt.test(u.slice(t+1))?"&":"&amp;":s==='"'?e+="&quot;":s==="<"?e+="&lt;":s===">"?e+="&gt;":e+=s}return e},oe=({node:u})=>{const e=u.alt??u.attributes.alt?.toString()??"",t=u.attributes.width,s=u.attributes.height,a=u.attributes.link,c=u.attributes.align,i=u.attributes.float;let n=`<img src="${$u(u.imageUri)}" alt="${$u(e)}"`;return t&&(n+=` width="${$u(t.toString())}"`),s&&(n+=` height="${$u(s.toString())}"`),n+=">",a&&(n=`<a class="image" href="${$u(a.toString())}">${n}</a>`),r.jsxs("div",{id:u.id||void 0,className:P("imageblock",c?"text-"+c:void 0,i||void 0,u.role),...u.lineNumber?{"data-lineno":u.lineNumber}:{},children:[r.jsx("div",{className:"content",dangerouslySetInnerHTML:{__html:n}}),r.jsx(B,{text:u.title})]})},de=({node:u})=>{const{document:e}=ru(),t=e.attributes||{},s=iu(u.attributes,"nowrap")||t.prewrap===void 0,a=P("listingblock",u.role);if(u.style==="source"){const c=u.language;return r.jsxs("div",{id:u.id||void 0,className:a,...u.lineNumber?{"data-lineno":u.lineNumber}:{},children:[r.jsx(B,{text:u.title}),r.jsx("div",{className:"content",children:r.jsx("pre",{className:P("highlight",s&&"nowrap")||void 0,children:c?r.jsx("code",{className:`language-${c}`,"data-lang":c,dangerouslySetInnerHTML:{__html:u.content||""}}):r.jsx("code",{dangerouslySetInnerHTML:{__html:u.content||""}})})})]})}return r.jsxs("div",{id:u.id||void 0,className:a,...u.lineNumber?{"data-lineno":u.lineNumber}:{},children:[r.jsx(B,{text:u.title}),r.jsx("div",{className:"content",children:r.jsx("pre",{className:P(s&&"nowrap")||void 0,dangerouslySetInnerHTML:{__html:u.content||""}})})]})},fe=({node:u})=>{const{document:e}=ru(),t=e.attributes||{},s=iu(u.attributes,"nowrap")||t.prewrap===void 0;return r.jsxs("div",{id:u.id||void 0,className:P("literalblock",u.role),...u.lineNumber?{"data-lineno":u.lineNumber}:{},children:[r.jsx(B,{text:u.title}),r.jsx("div",{className:"content",children:r.jsx("pre",{className:P(s&&"nowrap")||void 0,dangerouslySetInnerHTML:{__html:u.content||""}})})]})},Lt={upperalpha:"A",loweralpha:"a",upperroman:"I",lowerroman:"i"},be=({node:u})=>{const e=u.style,t=e?Lt[e]:void 0,s=u.attributes.start?parseInt(`${u.attributes.start}`):void 0;return r.jsxs("div",{id:u.id||void 0,className:P("olist",e,u.role),...u.lineNumber?{"data-lineno":u.lineNumber}:{},children:[r.jsx(B,{text:u.title}),r.jsx("ol",{className:e||void 0,type:t,reversed:iu(u.attributes,"reversed")||void 0,start:s,children:u.items.map((a,c)=>r.jsxs("li",{id:a.id||void 0,children:[r.jsx("p",{children:r.jsx(C,{nodes:a.textInlines})}),r.jsx(F,{blocks:a.blocks})]},c))})]})},xe=({node:u})=>{const{react:e,iconsFont:t}=ku(u.inlines),s=u.style;return s==="abstract"?r.jsxs("div",{id:u.id||void 0,className:P("quoteblock abstract",u.role),...u.lineNumber?{"data-lineno":u.lineNumber}:{},children:[r.jsx(B,{text:u.title}),r.jsx("blockquote",{...u.inlines&&u.blocks.length===0&&!e?{dangerouslySetInnerHTML:xu(u.inlines,t)}:{},children:u.blocks.length>0?r.jsx(F,{blocks:u.blocks}):u.inlines&&e?r.jsx(C,{nodes:u.inlines}):null})]}):r.jsxs("div",{id:u.id||void 0,className:P("openblock",s&&s!=="open"?s:null,u.role),...u.lineNumber?{"data-lineno":u.lineNumber}:{},children:[r.jsx(B,{text:u.title}),r.jsx("div",{className:"content",...u.inlines&&u.blocks.length===0&&!e?{dangerouslySetInnerHTML:xu(u.inlines,t)}:{},children:u.blocks.length>0?r.jsx(F,{blocks:u.blocks}):u.inlines&&e?r.jsx(C,{nodes:u.inlines}):null})]})},pe=()=>r.jsx("div",{style:{pageBreakAfter:"always"}}),he=({node:u})=>{const{react:e,iconsFont:t}=ku(u.inlines);return r.jsxs("div",{...u.id?{id:u.id}:{},className:P("paragraph",u.role),...u.lineNumber?{"data-lineno":u.lineNumber}:{},children:[r.jsx(B,{text:u.title}),u.inlines&&(e?r.jsx("p",{children:r.jsx(C,{nodes:u.inlines})}):r.jsx("p",{dangerouslySetInnerHTML:xu(u.inlines,t)}))]})},me=({node:u})=>r.jsx(r.Fragment,{children:vu(u.content||"")}),ge=({node:u})=>{const{document:e}=ru(),t=e.attributes||{},s=t["toc-placement"]==="preamble"&&e.sections&&e.sections.length>0&&t.toc!==void 0,a=t["toc-title"]||"Table of Contents",c=t["toc-class"]||"toc";return r.jsxs("div",{id:"preamble",...u.lineNumber?{"data-lineno":u.lineNumber}:{},children:[r.jsx("div",{className:"sectionbody",children:r.jsx(F,{blocks:u.blocks})}),s&&r.jsxs("div",{id:"toc",className:`${c}`,children:[r.jsx("div",{id:"toctitle",dangerouslySetInnerHTML:{__html:`${a}`}}),r.jsx(Nu,{sections:e.sections})]})]})},ye=({node:u})=>{const e=u.attributes.attribution,t=u.attributes.citetitle;let s="";return e?(s=`&#8212; ${e}`,t&&(s+=`<br>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@oxide/react-asciidoc",
3
- "version": "2.0.0--canary.54.27143121943.0",
3
+ "version": "2.0.0",
4
4
  "files": [
5
5
  "dist"
6
6
  ],
@@ -25,7 +25,6 @@
25
25
  "build": "npm run clean && vite build && tsc",
26
26
  "test": "vitest run",
27
27
  "test:watch": "vitest",
28
- "release": "auto shipit",
29
28
  "fmt": "prettier --write --ignore-path ./.gitignore .",
30
29
  "fmt:check": "prettier --check --ignore-path ./.gitignore . ",
31
30
  "tsc": "tsc"
@@ -43,7 +42,6 @@
43
42
  "@types/react": "^18.0.18",
44
43
  "@types/react-dom": "^18.0.6",
45
44
  "@vitejs/plugin-react": "^5.0.3",
46
- "auto": "^11.3.0",
47
45
  "classnames": "^2.5.1",
48
46
  "eslint": "^9.36.0",
49
47
  "html-entities": "^2.6.0",
@@ -66,17 +64,6 @@
66
64
  "react": ">=18.0.0",
67
65
  "react-dom": ">=18.0.0"
68
66
  },
69
- "auto": {
70
- "plugins": [
71
- [
72
- "npm",
73
- {
74
- "setRcToken": false
75
- }
76
- ],
77
- "released"
78
- ]
79
- },
80
67
  "publishConfig": {
81
68
  "registry": "https://registry.npmjs.org/",
82
69
  "access": "public"