fumapress 0.1.21 → 0.1.23
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/lib/cli/index.mjs +1 -1
- package/dist/waku/public/assets/Icon-DLjCXBap.js +1 -0
- package/dist/waku/public/assets/{Icon-D30p-2dq.js → Icon-uimJ5tpe.js} +1 -1
- package/dist/waku/public/assets/_root-BWpoCRFY.css +1 -0
- package/dist/waku/public/assets/{_root-BWh8XBln.js → _root-DcSLRIv8.js} +2 -2
- package/dist/waku/public/assets/{algolia-B1uhfuD6.js → algolia-akct_lCZ.js} +1 -1
- package/dist/waku/public/assets/{chevron-right-DmP6Xa1g.js → chevron-right-DJ6X4mXo.js} +1 -1
- package/dist/waku/public/assets/{client-BSFjekJY.js → client-DU5zOesq.js} +1 -1
- package/dist/waku/public/assets/{collapsible-B2rvGry7.js → collapsible-Bqzit3JO.js} +1 -1
- package/dist/waku/public/assets/{core-C4jOG9I2.js → core-BfOvCGca.js} +1 -1
- package/dist/waku/public/assets/{i18n-V4QzeUbV.js → i18n-BU0Gqrrh.js} +1 -1
- package/dist/waku/public/assets/{index-xXa72sZS.js → index-C3-lsDRv.js} +1 -1
- package/dist/waku/public/assets/{index-NB9D4S1v.js → index-CCR9ecA8.js} +1 -1
- package/dist/waku/public/assets/{index-DW9Fo86a.js → index-CWwHJATE.js} +1 -1
- package/dist/waku/public/assets/{index-BQZmdbam.js → index-CY9LswMc.js} +1 -1
- package/dist/waku/public/assets/{index-CYJW3hzB.js → index-Cae1bXCh.js} +1 -1
- package/dist/waku/public/assets/{index-Bojr-xLv.js → index-CkzHlXhF.js} +1 -1
- package/dist/waku/public/assets/{index-B-5ouVG_.js → index-DOC-_zsC.js} +1 -1
- package/dist/waku/public/assets/{index-B65N5043.js → index-DOsFxkYv.js} +1 -1
- package/dist/waku/public/assets/{index-DHENdpwd.js → index-DhgWLnXf.js} +1 -1
- package/dist/waku/public/assets/index-E12FLc8f.js +1 -0
- package/dist/waku/public/assets/{index-OFfnl8sH.js → index-Po1UZSgL.js} +3 -3
- package/dist/waku/public/assets/{index-2HLUYgxN.js → index-T_b7wuyJ.js} +5 -5
- package/dist/waku/public/assets/{index-CBSxJfFU.js → index-yiM3u0f9.js} +1 -1
- package/dist/waku/public/assets/{index-Bonlu0LX.js → index-zSjxh5o9.js} +1 -1
- package/dist/waku/public/assets/{link-item-BlYkot48.js → link-item-CAVxr8-m.js} +1 -1
- package/dist/waku/public/assets/{merge-refs-BIez66Kl.js → merge-refs-B7SuKGTI.js} +1 -1
- package/dist/waku/public/assets/{orama-cloud-CazpSeQ0.js → orama-cloud-D6HIyrrx.js} +1 -1
- package/dist/waku/public/assets/{orama-cloud-legacy-CINWERV2.js → orama-cloud-legacy-AQ__GML5.js} +1 -1
- package/dist/waku/public/assets/{orama-static-DwfVMMmc.js → orama-static-CyMYfAPj.js} +1 -1
- package/dist/waku/public/assets/{page-actions--VStSULV.js → page-actions-CcyvVvdr.js} +1 -1
- package/dist/waku/public/assets/{proxy-CWSxKwWP.js → proxy-DdABrE5r.js} +1 -1
- package/dist/waku/public/assets/{search-D1WUBd3N.js → search-AdRfsIll.js} +1 -1
- package/dist/waku/public/assets/{search-default-B2jTK1EC.js → search-default-B4NAC8AJ.js} +3 -3
- package/dist/waku/public/assets/{use-copy-button-BO3GBlwZ.js → use-copy-button-auHqSfgW.js} +1 -1
- package/dist/waku/public/assets/{x-CB1cQ-bo.js → x-Blg1xIpd.js} +1 -1
- package/dist/waku/server/__vite_rsc_assets_manifest.js +151 -151
- package/dist/waku/server/assets/{_...slugs_-8lFegkVB.js → _...slugs_-DF1SYPMg.js} +32 -30
- package/dist/waku/server/assets/_root-BWpoCRFY.css +1 -0
- package/dist/waku/server/assets/{_root-B7AMftRI.js → _root-BiaZL9xf.js} +1 -1
- package/dist/waku/server/assets/{ai-C1Bf8DXZ.js → ai-vEEzbqB8.js} +2 -2
- package/dist/waku/server/assets/{chat-CN1qUeN-.js → chat-DOZ_Cx8A.js} +202 -12
- package/dist/waku/server/assets/{image.webp-PNGidV2r.js → image.webp-BW_97iH9.js} +1 -1
- package/dist/waku/server/assets/{img-C2Ne7ke5.js → img-B-t2xy2h.js} +1 -1
- package/dist/waku/server/assets/{index-CtEJq0xW.js → index--w0er2WH.js} +5 -5
- package/dist/waku/server/assets/{index-AIo6cWfN.js → index-BK2ZBQW1.js} +132 -54
- package/dist/waku/server/assets/{index-dpJ5KyUl.js → index-BXqq5kje.js} +1 -1
- package/dist/waku/server/assets/{index-D6orYQqE.js → index-CoHTzFHF.js} +1 -1
- package/dist/waku/server/assets/{index-QgPg52ej.js → index-D32Kgl7D.js} +1 -1
- package/dist/waku/server/assets/{index-BtnFj3IN.js → index-DShTeblm.js} +1 -1
- package/dist/waku/server/assets/{index-DFPuXyRR.js → index-DWNJLNyX.js} +1 -1
- package/dist/waku/server/assets/{index-6LQQnOj9.js → index-eAdvdAYz.js} +1 -1
- package/dist/waku/server/assets/{search-BuYfcIgW.js → search-BHsWHDmx.js} +2 -2
- package/dist/waku/server/assets/{server-entry-inner-DrYrCg3c.js → server-entry-inner-CYeTE9pH.js} +230 -189
- package/dist/waku/server/assets/{token-BJQ71htz.js → token-Dc4bIZyb.js} +3 -3
- package/dist/waku/server/assets/{token-util-BdUbceAe.js → token-util-BDWFgKKT.js} +16 -16
- package/dist/waku/server/assets/{token-util-WrcienE5.js → token-util-yHc1UlLV.js} +2 -2
- package/dist/waku/server/build.js +1 -1
- package/dist/waku/server/index.js +1 -1
- package/dist/waku/server/ssr/__vite_rsc_assets_manifest.js +151 -151
- package/dist/waku/server/ssr/assets/{Icon-BkWS2wcn.js → Icon-CjkqongL.js} +2 -2
- package/dist/waku/server/ssr/assets/{core-CLB7CUo5.js → core-Ru16gShL.js} +3 -3
- package/dist/waku/server/ssr/assets/{index-CKMvBRnq.js → index-BFvm1zbH.js} +4 -4
- package/dist/waku/server/ssr/assets/{index-BggSP1CG.js → index-CTD5LS21.js} +3 -3
- package/dist/waku/server/ssr/assets/{index-F8Xj3Sj4.js → index-DR2zqaC5.js} +1 -1
- package/dist/waku/server/ssr/index.js +12 -13
- package/package.json +15 -15
- package/dist/waku/public/assets/Icon-C79MpmBL.js +0 -1
- package/dist/waku/public/assets/_root-CzUOgPm2.css +0 -1
- package/dist/waku/public/assets/index-B7lX48CB.js +0 -1
- package/dist/waku/server/assets/_root-CzUOgPm2.css +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{g as Dt}from"./index-OFfnl8sH.js";const Mr={};function vn(e,n){const t=Mr,r=typeof t.includeImageAlt=="boolean"?t.includeImageAlt:!0,i=typeof t.includeHtml=="boolean"?t.includeHtml:!0;return Ot(e,r,i)}function Ot(e,n,t){if(Nr(e)){if("value"in e)return e.type==="html"&&!t?"":e.value;if(n&&"alt"in e&&e.alt)return e.alt;if("children"in e)return Gn(e.children,n,t)}return Array.isArray(e)?Gn(e,n,t):""}function Gn(e,n,t){const r=[];let i=-1;for(;++i<e.length;)r[i]=Ot(e[i],n,t);return r.join("")}function Nr(e){return!!(e&&typeof e=="object")}const Jn=document.createElement("i");function Tn(e){const n="&"+e+";";Jn.innerHTML=n;const t=Jn.textContent;return t.charCodeAt(t.length-1)===59&&e!=="semi"||t===n?!1:t}function se(e,n,t,r){const i=e.length;let l=0,o;if(n<0?n=-n>i?0:i+n:n=n>i?i:n,t=t>0?t:0,r.length<1e4)o=Array.from(r),o.unshift(n,t),e.splice(...o);else for(t&&e.splice(n,t);l<r.length;)o=r.slice(l,l+1e4),o.unshift(n,0),e.splice(...o),l+=1e4,n+=1e4}function te(e,n){return e.length>0?(se(e,e.length,0,n),e):n}const Kn={}.hasOwnProperty;function jr(e){const n={};let t=-1;for(;++t<e.length;)Hr(n,e[t]);return n}function Hr(e,n){let t;for(t in n){const i=(Kn.call(e,t)?e[t]:void 0)||(e[t]={}),l=n[t];let o;if(l)for(o in l){Kn.call(i,o)||(i[o]=[]);const a=l[o];Ur(i[o],Array.isArray(a)?a:a?[a]:[])}}}function Ur(e,n){let t=-1;const r=[];for(;++t<n.length;)(n[t].add==="after"?e:r).push(n[t]);se(e,0,0,r)}function Bt(e,n){const t=Number.parseInt(e,n);return t<9||t===11||t>13&&t<32||t>126&&t<160||t>55295&&t<57344||t>64975&&t<65008||(t&65535)===65535||(t&65535)===65534||t>1114111?"�":String.fromCodePoint(t)}function ve(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const ue=ye(/[A-Za-z]/),ne=ye(/[\dA-Za-z]/),$r=ye(/[#-'*+\--9=?A-Z^-~]/);function mn(e){return e!==null&&(e<32||e===127)}const gn=ye(/\d/),qr=ye(/[\dA-Fa-f]/),Vr=ye(/[!-/:-@[-`{-~]/);function P(e){return e!==null&&e<-2}function J(e){return e!==null&&(e<0||e===32)}function D(e){return e===-2||e===-1||e===32}const Wr=ye(new RegExp("\\p{P}|\\p{S}","u")),Yr=ye(/\s/);function ye(e){return n;function n(t){return t!==null&&t>-1&&e.test(String.fromCharCode(t))}}function Pe(e){const n=[];let t=-1,r=0,i=0;for(;++t<e.length;){const l=e.charCodeAt(t);let o="";if(l===37&&ne(e.charCodeAt(t+1))&&ne(e.charCodeAt(t+2)))i=2;else if(l<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(l))||(o=String.fromCharCode(l));else if(l>55295&&l<57344){const a=e.charCodeAt(t+1);l<56320&&a>56319&&a<57344?(o=String.fromCharCode(l,a),i=1):o="�"}else o=String.fromCharCode(l);o&&(n.push(e.slice(r,t),encodeURIComponent(o)),r=t+i+1,o=""),i&&(t+=i,i=0)}return n.join("")+e.slice(r)}function V(e,n,t,r){const i=r?r-1:Number.POSITIVE_INFINITY;let l=0;return o;function o(s){return D(s)?(e.enter(t),a(s)):n(s)}function a(s){return D(s)&&l++<i?(e.consume(s),a):(e.exit(t),n(s))}}const Qr={tokenize:Xr};function Xr(e){const n=e.attempt(this.parser.constructs.contentInitial,r,i);let t;return n;function r(a){if(a===null){e.consume(a);return}return e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),V(e,n,"linePrefix")}function i(a){return e.enter("paragraph"),l(a)}function l(a){const s=e.enter("chunkText",{contentType:"text",previous:t});return t&&(t.next=s),t=s,o(a)}function o(a){if(a===null){e.exit("chunkText"),e.exit("paragraph"),e.consume(a);return}return P(a)?(e.consume(a),e.exit("chunkText"),l):(e.consume(a),o)}}const Gr={tokenize:Jr},Zn={tokenize:Kr};function Jr(e){const n=this,t=[];let r=0,i,l,o;return a;function a(E){if(r<t.length){const N=t[r];return n.containerState=N[1],e.attempt(N[0].continuation,s,u)(E)}return u(E)}function s(E){if(r++,n.containerState._closeFlow){n.containerState._closeFlow=void 0,i&&L();const N=n.events.length;let H=N,y;for(;H--;)if(n.events[H][0]==="exit"&&n.events[H][1].type==="chunkFlow"){y=n.events[H][1].end;break}x(r);let R=N;for(;R<n.events.length;)n.events[R][1].end={...y},R++;return se(n.events,H+1,0,n.events.slice(N)),n.events.length=R,u(E)}return a(E)}function u(E){if(r===t.length){if(!i)return p(E);if(i.currentConstruct&&i.currentConstruct.concrete)return b(E);n.interrupt=!!(i.currentConstruct&&!i._gfmTableDynamicInterruptHack)}return n.containerState={},e.check(Zn,c,f)(E)}function c(E){return i&&L(),x(r),p(E)}function f(E){return n.parser.lazy[n.now().line]=r!==t.length,o=n.now().offset,b(E)}function p(E){return n.containerState={},e.attempt(Zn,h,b)(E)}function h(E){return r++,t.push([n.currentConstruct,n.containerState]),p(E)}function b(E){if(E===null){i&&L(),x(0),e.consume(E);return}return i=i||n.parser.flow(n.now()),e.enter("chunkFlow",{_tokenizer:i,contentType:"flow",previous:l}),S(E)}function S(E){if(E===null){I(e.exit("chunkFlow"),!0),x(0),e.consume(E);return}return P(E)?(e.consume(E),I(e.exit("chunkFlow")),r=0,n.interrupt=void 0,a):(e.consume(E),S)}function I(E,N){const H=n.sliceStream(E);if(N&&H.push(null),E.previous=l,l&&(l.next=E),l=E,i.defineSkip(E.start),i.write(H),n.parser.lazy[E.start.line]){let y=i.events.length;for(;y--;)if(i.events[y][1].start.offset<o&&(!i.events[y][1].end||i.events[y][1].end.offset>o))return;const R=n.events.length;let U=R,O,B;for(;U--;)if(n.events[U][0]==="exit"&&n.events[U][1].type==="chunkFlow"){if(O){B=n.events[U][1].end;break}O=!0}for(x(r),y=R;y<n.events.length;)n.events[y][1].end={...B},y++;se(n.events,U+1,0,n.events.slice(R)),n.events.length=y}}function x(E){let N=t.length;for(;N-- >E;){const H=t[N];n.containerState=H[1],H[0].exit.call(n,e)}t.length=E}function L(){i.write([null]),l=void 0,i=void 0,n.containerState._closeFlow=void 0}}function Kr(e,n,t){return V(e,e.attempt(this.parser.constructs.document,n,t),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function Xe(e){if(e===null||J(e)||Yr(e))return 1;if(Wr(e))return 2}function Pn(e,n,t){const r=[];let i=-1;for(;++i<e.length;){const l=e[i].resolveAll;l&&!r.includes(l)&&(n=l(n,t),r.push(l))}return n}const yn={name:"attention",resolveAll:Zr,tokenize:ei};function Zr(e,n){let t=-1,r,i,l,o,a,s,u,c;for(;++t<e.length;)if(e[t][0]==="enter"&&e[t][1].type==="attentionSequence"&&e[t][1]._close){for(r=t;r--;)if(e[r][0]==="exit"&&e[r][1].type==="attentionSequence"&&e[r][1]._open&&n.sliceSerialize(e[r][1]).charCodeAt(0)===n.sliceSerialize(e[t][1]).charCodeAt(0)){if((e[r][1]._close||e[t][1]._open)&&(e[t][1].end.offset-e[t][1].start.offset)%3&&!((e[r][1].end.offset-e[r][1].start.offset+e[t][1].end.offset-e[t][1].start.offset)%3))continue;s=e[r][1].end.offset-e[r][1].start.offset>1&&e[t][1].end.offset-e[t][1].start.offset>1?2:1;const f={...e[r][1].end},p={...e[t][1].start};et(f,-s),et(p,s),o={type:s>1?"strongSequence":"emphasisSequence",start:f,end:{...e[r][1].end}},a={type:s>1?"strongSequence":"emphasisSequence",start:{...e[t][1].start},end:p},l={type:s>1?"strongText":"emphasisText",start:{...e[r][1].end},end:{...e[t][1].start}},i={type:s>1?"strong":"emphasis",start:{...o.start},end:{...a.end}},e[r][1].end={...o.start},e[t][1].start={...a.end},u=[],e[r][1].end.offset-e[r][1].start.offset&&(u=te(u,[["enter",e[r][1],n],["exit",e[r][1],n]])),u=te(u,[["enter",i,n],["enter",o,n],["exit",o,n],["enter",l,n]]),u=te(u,Pn(n.parser.constructs.insideSpan.null,e.slice(r+1,t),n)),u=te(u,[["exit",l,n],["enter",a,n],["exit",a,n],["exit",i,n]]),e[t][1].end.offset-e[t][1].start.offset?(c=2,u=te(u,[["enter",e[t][1],n],["exit",e[t][1],n]])):c=0,se(e,r-1,t-r+3,u),t=r+u.length-c-2;break}}for(t=-1;++t<e.length;)e[t][1].type==="attentionSequence"&&(e[t][1].type="data");return e}function ei(e,n){const t=this.parser.constructs.attentionMarkers.null,r=this.previous,i=Xe(r);let l;return o;function o(s){return l=s,e.enter("attentionSequence"),a(s)}function a(s){if(s===l)return e.consume(s),a;const u=e.exit("attentionSequence"),c=Xe(s),f=!c||c===2&&i||t.includes(s),p=!i||i===2&&c||t.includes(r);return u._open=!!(l===42?f:f&&(i||!p)),u._close=!!(l===42?p:p&&(c||!f)),n(s)}}function et(e,n){e.column+=n,e.offset+=n,e._bufferIndex+=n}const ni={name:"autolink",tokenize:ti};function ti(e,n,t){let r=0;return i;function i(h){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(h),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),l}function l(h){return ue(h)?(e.consume(h),o):h===64?t(h):u(h)}function o(h){return h===43||h===45||h===46||ne(h)?(r=1,a(h)):u(h)}function a(h){return h===58?(e.consume(h),r=0,s):(h===43||h===45||h===46||ne(h))&&r++<32?(e.consume(h),a):(r=0,u(h))}function s(h){return h===62?(e.exit("autolinkProtocol"),e.enter("autolinkMarker"),e.consume(h),e.exit("autolinkMarker"),e.exit("autolink"),n):h===null||h===32||h===60||mn(h)?t(h):(e.consume(h),s)}function u(h){return h===64?(e.consume(h),c):$r(h)?(e.consume(h),u):t(h)}function c(h){return ne(h)?f(h):t(h)}function f(h){return h===46?(e.consume(h),r=0,c):h===62?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(h),e.exit("autolinkMarker"),e.exit("autolink"),n):p(h)}function p(h){if((h===45||ne(h))&&r++<63){const b=h===45?p:f;return e.consume(h),b}return t(h)}}const Ze={partial:!0,tokenize:ri};function ri(e,n,t){return r;function r(l){return D(l)?V(e,i,"linePrefix")(l):i(l)}function i(l){return l===null||P(l)?n(l):t(l)}}const Mt={continuation:{tokenize:li},exit:oi,name:"blockQuote",tokenize:ii};function ii(e,n,t){const r=this;return i;function i(o){if(o===62){const a=r.containerState;return a.open||(e.enter("blockQuote",{_container:!0}),a.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(o),e.exit("blockQuoteMarker"),l}return t(o)}function l(o){return D(o)?(e.enter("blockQuotePrefixWhitespace"),e.consume(o),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),n):(e.exit("blockQuotePrefix"),n(o))}}function li(e,n,t){const r=this;return i;function i(o){return D(o)?V(e,l,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(o):l(o)}function l(o){return e.attempt(Mt,n,t)(o)}}function oi(e){e.exit("blockQuote")}const Nt={name:"characterEscape",tokenize:ai};function ai(e,n,t){return r;function r(l){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(l),e.exit("escapeMarker"),i}function i(l){return Vr(l)?(e.enter("characterEscapeValue"),e.consume(l),e.exit("characterEscapeValue"),e.exit("characterEscape"),n):t(l)}}const jt={name:"characterReference",tokenize:ui};function ui(e,n,t){const r=this;let i=0,l,o;return a;function a(f){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(f),e.exit("characterReferenceMarker"),s}function s(f){return f===35?(e.enter("characterReferenceMarkerNumeric"),e.consume(f),e.exit("characterReferenceMarkerNumeric"),u):(e.enter("characterReferenceValue"),l=31,o=ne,c(f))}function u(f){return f===88||f===120?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(f),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),l=6,o=qr,c):(e.enter("characterReferenceValue"),l=7,o=gn,c(f))}function c(f){if(f===59&&i){const p=e.exit("characterReferenceValue");return o===ne&&!Tn(r.sliceSerialize(p))?t(f):(e.enter("characterReferenceMarker"),e.consume(f),e.exit("characterReferenceMarker"),e.exit("characterReference"),n)}return o(f)&&i++<l?(e.consume(f),c):t(f)}}const nt={partial:!0,tokenize:ci},tt={concrete:!0,name:"codeFenced",tokenize:si};function si(e,n,t){const r=this,i={partial:!0,tokenize:H};let l=0,o=0,a;return s;function s(y){return u(y)}function u(y){const R=r.events[r.events.length-1];return l=R&&R[1].type==="linePrefix"?R[2].sliceSerialize(R[1],!0).length:0,a=y,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),c(y)}function c(y){return y===a?(o++,e.consume(y),c):o<3?t(y):(e.exit("codeFencedFenceSequence"),D(y)?V(e,f,"whitespace")(y):f(y))}function f(y){return y===null||P(y)?(e.exit("codeFencedFence"),r.interrupt?n(y):e.check(nt,S,N)(y)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),p(y))}function p(y){return y===null||P(y)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),f(y)):D(y)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),V(e,h,"whitespace")(y)):y===96&&y===a?t(y):(e.consume(y),p)}function h(y){return y===null||P(y)?f(y):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),b(y))}function b(y){return y===null||P(y)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),f(y)):y===96&&y===a?t(y):(e.consume(y),b)}function S(y){return e.attempt(i,N,I)(y)}function I(y){return e.enter("lineEnding"),e.consume(y),e.exit("lineEnding"),x}function x(y){return l>0&&D(y)?V(e,L,"linePrefix",l+1)(y):L(y)}function L(y){return y===null||P(y)?e.check(nt,S,N)(y):(e.enter("codeFlowValue"),E(y))}function E(y){return y===null||P(y)?(e.exit("codeFlowValue"),L(y)):(e.consume(y),E)}function N(y){return e.exit("codeFenced"),n(y)}function H(y,R,U){let O=0;return B;function B(C){return y.enter("lineEnding"),y.consume(C),y.exit("lineEnding"),v}function v(C){return y.enter("codeFencedFence"),D(C)?V(y,A,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(C):A(C)}function A(C){return C===a?(y.enter("codeFencedFenceSequence"),$(C)):U(C)}function $(C){return C===a?(O++,y.consume(C),$):O>=o?(y.exit("codeFencedFenceSequence"),D(C)?V(y,T,"whitespace")(C):T(C)):U(C)}function T(C){return C===null||P(C)?(y.exit("codeFencedFence"),R(C)):U(C)}}}function ci(e,n,t){const r=this;return i;function i(o){return o===null?t(o):(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),l)}function l(o){return r.parser.lazy[r.now().line]?t(o):n(o)}}const tn={name:"codeIndented",tokenize:hi},fi={partial:!0,tokenize:pi};function hi(e,n,t){const r=this;return i;function i(u){return e.enter("codeIndented"),V(e,l,"linePrefix",5)(u)}function l(u){const c=r.events[r.events.length-1];return c&&c[1].type==="linePrefix"&&c[2].sliceSerialize(c[1],!0).length>=4?o(u):t(u)}function o(u){return u===null?s(u):P(u)?e.attempt(fi,o,s)(u):(e.enter("codeFlowValue"),a(u))}function a(u){return u===null||P(u)?(e.exit("codeFlowValue"),o(u)):(e.consume(u),a)}function s(u){return e.exit("codeIndented"),n(u)}}function pi(e,n,t){const r=this;return i;function i(o){return r.parser.lazy[r.now().line]?t(o):P(o)?(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),i):V(e,l,"linePrefix",5)(o)}function l(o){const a=r.events[r.events.length-1];return a&&a[1].type==="linePrefix"&&a[2].sliceSerialize(a[1],!0).length>=4?n(o):P(o)?i(o):t(o)}}const di={name:"codeText",previous:gi,resolve:mi,tokenize:yi};function mi(e){let n=e.length-4,t=3,r,i;if((e[t][1].type==="lineEnding"||e[t][1].type==="space")&&(e[n][1].type==="lineEnding"||e[n][1].type==="space")){for(r=t;++r<n;)if(e[r][1].type==="codeTextData"){e[t][1].type="codeTextPadding",e[n][1].type="codeTextPadding",t+=2,n-=2;break}}for(r=t-1,n++;++r<=n;)i===void 0?r!==n&&e[r][1].type!=="lineEnding"&&(i=r):(r===n||e[r][1].type==="lineEnding")&&(e[i][1].type="codeTextData",r!==i+2&&(e[i][1].end=e[r-1][1].end,e.splice(i+2,r-i-2),n-=r-i-2,r=i+2),i=void 0);return e}function gi(e){return e!==96||this.events[this.events.length-1][1].type==="characterEscape"}function yi(e,n,t){let r=0,i,l;return o;function o(f){return e.enter("codeText"),e.enter("codeTextSequence"),a(f)}function a(f){return f===96?(e.consume(f),r++,a):(e.exit("codeTextSequence"),s(f))}function s(f){return f===null?t(f):f===32?(e.enter("space"),e.consume(f),e.exit("space"),s):f===96?(l=e.enter("codeTextSequence"),i=0,c(f)):P(f)?(e.enter("lineEnding"),e.consume(f),e.exit("lineEnding"),s):(e.enter("codeTextData"),u(f))}function u(f){return f===null||f===32||f===96||P(f)?(e.exit("codeTextData"),s(f)):(e.consume(f),u)}function c(f){return f===96?(e.consume(f),i++,c):i===r?(e.exit("codeTextSequence"),e.exit("codeText"),n(f)):(l.type="codeTextData",u(f))}}class xi{constructor(n){this.left=n?[...n]:[],this.right=[]}get(n){if(n<0||n>=this.left.length+this.right.length)throw new RangeError("Cannot access index `"+n+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return n<this.left.length?this.left[n]:this.right[this.right.length-n+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(n,t){const r=t??Number.POSITIVE_INFINITY;return r<this.left.length?this.left.slice(n,r):n>this.left.length?this.right.slice(this.right.length-r+this.left.length,this.right.length-n+this.left.length).reverse():this.left.slice(n).concat(this.right.slice(this.right.length-r+this.left.length).reverse())}splice(n,t,r){const i=t||0;this.setCursor(Math.trunc(n));const l=this.right.splice(this.right.length-i,Number.POSITIVE_INFINITY);return r&&Re(this.left,r),l.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(n){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(n)}pushMany(n){this.setCursor(Number.POSITIVE_INFINITY),Re(this.left,n)}unshift(n){this.setCursor(0),this.right.push(n)}unshiftMany(n){this.setCursor(0),Re(this.right,n.reverse())}setCursor(n){if(!(n===this.left.length||n>this.left.length&&this.right.length===0||n<0&&this.left.length===0))if(n<this.left.length){const t=this.left.splice(n,Number.POSITIVE_INFINITY);Re(this.right,t.reverse())}else{const t=this.right.splice(this.left.length+this.right.length-n,Number.POSITIVE_INFINITY);Re(this.left,t.reverse())}}}function Re(e,n){let t=0;if(n.length<1e4)e.push(...n);else for(;t<n.length;)e.push(...n.slice(t,t+1e4)),t+=1e4}function Ht(e){const n={};let t=-1,r,i,l,o,a,s,u;const c=new xi(e);for(;++t<c.length;){for(;t in n;)t=n[t];if(r=c.get(t),t&&r[1].type==="chunkFlow"&&c.get(t-1)[1].type==="listItemPrefix"&&(s=r[1]._tokenizer.events,l=0,l<s.length&&s[l][1].type==="lineEndingBlank"&&(l+=2),l<s.length&&s[l][1].type==="content"))for(;++l<s.length&&s[l][1].type!=="content";)s[l][1].type==="chunkText"&&(s[l][1]._isInFirstContentOfListItem=!0,l++);if(r[0]==="enter")r[1].contentType&&(Object.assign(n,ki(c,t)),t=n[t],u=!0);else if(r[1]._container){for(l=t,i=void 0;l--;)if(o=c.get(l),o[1].type==="lineEnding"||o[1].type==="lineEndingBlank")o[0]==="enter"&&(i&&(c.get(i)[1].type="lineEndingBlank"),o[1].type="lineEnding",i=l);else if(!(o[1].type==="linePrefix"||o[1].type==="listItemIndent"))break;i&&(r[1].end={...c.get(i)[1].start},a=c.slice(i,t),a.unshift(r),c.splice(i,t-i+1,a))}}return se(e,0,Number.POSITIVE_INFINITY,c.slice(0)),!u}function ki(e,n){const t=e.get(n)[1],r=e.get(n)[2];let i=n-1;const l=[];let o=t._tokenizer;o||(o=r.parser[t.contentType](t.start),t._contentTypeTextTrailing&&(o._contentTypeTextTrailing=!0));const a=o.events,s=[],u={};let c,f,p=-1,h=t,b=0,S=0;const I=[S];for(;h;){for(;e.get(++i)[1]!==h;);l.push(i),h._tokenizer||(c=r.sliceStream(h),h.next||c.push(null),f&&o.defineSkip(h.start),h._isInFirstContentOfListItem&&(o._gfmTasklistFirstContentOfListItem=!0),o.write(c),h._isInFirstContentOfListItem&&(o._gfmTasklistFirstContentOfListItem=void 0)),f=h,h=h.next}for(h=t;++p<a.length;)a[p][0]==="exit"&&a[p-1][0]==="enter"&&a[p][1].type===a[p-1][1].type&&a[p][1].start.line!==a[p][1].end.line&&(S=p+1,I.push(S),h._tokenizer=void 0,h.previous=void 0,h=h.next);for(o.events=[],h?(h._tokenizer=void 0,h.previous=void 0):I.pop(),p=I.length;p--;){const x=a.slice(I[p],I[p+1]),L=l.pop();s.push([L,L+x.length-1]),e.splice(L,2,x)}for(s.reverse(),p=-1;++p<s.length;)u[b+s[p][0]]=b+s[p][1],b+=s[p][1]-s[p][0]-1;return u}const bi={resolve:Si,tokenize:Ci},wi={partial:!0,tokenize:Ei};function Si(e){return Ht(e),e}function Ci(e,n){let t;return r;function r(a){return e.enter("content"),t=e.enter("chunkContent",{contentType:"content"}),i(a)}function i(a){return a===null?l(a):P(a)?e.check(wi,o,l)(a):(e.consume(a),i)}function l(a){return e.exit("chunkContent"),e.exit("content"),n(a)}function o(a){return e.consume(a),e.exit("chunkContent"),t.next=e.enter("chunkContent",{contentType:"content",previous:t}),t=t.next,i}}function Ei(e,n,t){const r=this;return i;function i(o){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),V(e,l,"linePrefix")}function l(o){if(o===null||P(o))return t(o);const a=r.events[r.events.length-1];return!r.parser.constructs.disable.null.includes("codeIndented")&&a&&a[1].type==="linePrefix"&&a[2].sliceSerialize(a[1],!0).length>=4?n(o):e.interrupt(r.parser.constructs.flow,t,n)(o)}}function Ut(e,n,t,r,i,l,o,a,s){const u=s||Number.POSITIVE_INFINITY;let c=0;return f;function f(x){return x===60?(e.enter(r),e.enter(i),e.enter(l),e.consume(x),e.exit(l),p):x===null||x===32||x===41||mn(x)?t(x):(e.enter(r),e.enter(o),e.enter(a),e.enter("chunkString",{contentType:"string"}),S(x))}function p(x){return x===62?(e.enter(l),e.consume(x),e.exit(l),e.exit(i),e.exit(r),n):(e.enter(a),e.enter("chunkString",{contentType:"string"}),h(x))}function h(x){return x===62?(e.exit("chunkString"),e.exit(a),p(x)):x===null||x===60||P(x)?t(x):(e.consume(x),x===92?b:h)}function b(x){return x===60||x===62||x===92?(e.consume(x),h):h(x)}function S(x){return!c&&(x===null||x===41||J(x))?(e.exit("chunkString"),e.exit(a),e.exit(o),e.exit(r),n(x)):c<u&&x===40?(e.consume(x),c++,S):x===41?(e.consume(x),c--,S):x===null||x===32||x===40||mn(x)?t(x):(e.consume(x),x===92?I:S)}function I(x){return x===40||x===41||x===92?(e.consume(x),S):S(x)}}function $t(e,n,t,r,i,l){const o=this;let a=0,s;return u;function u(h){return e.enter(r),e.enter(i),e.consume(h),e.exit(i),e.enter(l),c}function c(h){return a>999||h===null||h===91||h===93&&!s||h===94&&!a&&"_hiddenFootnoteSupport"in o.parser.constructs?t(h):h===93?(e.exit(l),e.enter(i),e.consume(h),e.exit(i),e.exit(r),n):P(h)?(e.enter("lineEnding"),e.consume(h),e.exit("lineEnding"),c):(e.enter("chunkString",{contentType:"string"}),f(h))}function f(h){return h===null||h===91||h===93||P(h)||a++>999?(e.exit("chunkString"),c(h)):(e.consume(h),s||(s=!D(h)),h===92?p:f)}function p(h){return h===91||h===92||h===93?(e.consume(h),a++,f):f(h)}}function qt(e,n,t,r,i,l){let o;return a;function a(p){return p===34||p===39||p===40?(e.enter(r),e.enter(i),e.consume(p),e.exit(i),o=p===40?41:p,s):t(p)}function s(p){return p===o?(e.enter(i),e.consume(p),e.exit(i),e.exit(r),n):(e.enter(l),u(p))}function u(p){return p===o?(e.exit(l),s(o)):p===null?t(p):P(p)?(e.enter("lineEnding"),e.consume(p),e.exit("lineEnding"),V(e,u,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),c(p))}function c(p){return p===o||p===null||P(p)?(e.exit("chunkString"),u(p)):(e.consume(p),p===92?f:c)}function f(p){return p===o||p===92?(e.consume(p),c):c(p)}}function Me(e,n){let t;return r;function r(i){return P(i)?(e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),t=!0,r):D(i)?V(e,r,t?"linePrefix":"lineSuffix")(i):n(i)}}const Ii={name:"definition",tokenize:vi},Ai={partial:!0,tokenize:Ti};function vi(e,n,t){const r=this;let i;return l;function l(h){return e.enter("definition"),o(h)}function o(h){return $t.call(r,e,a,t,"definitionLabel","definitionLabelMarker","definitionLabelString")(h)}function a(h){return i=ve(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)),h===58?(e.enter("definitionMarker"),e.consume(h),e.exit("definitionMarker"),s):t(h)}function s(h){return J(h)?Me(e,u)(h):u(h)}function u(h){return Ut(e,c,t,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(h)}function c(h){return e.attempt(Ai,f,f)(h)}function f(h){return D(h)?V(e,p,"whitespace")(h):p(h)}function p(h){return h===null||P(h)?(e.exit("definition"),r.parser.defined.push(i),n(h)):t(h)}}function Ti(e,n,t){return r;function r(a){return J(a)?Me(e,i)(a):t(a)}function i(a){return qt(e,l,t,"definitionTitle","definitionTitleMarker","definitionTitleString")(a)}function l(a){return D(a)?V(e,o,"whitespace")(a):o(a)}function o(a){return a===null||P(a)?n(a):t(a)}}const Pi={name:"hardBreakEscape",tokenize:Li};function Li(e,n,t){return r;function r(l){return e.enter("hardBreakEscape"),e.consume(l),i}function i(l){return P(l)?(e.exit("hardBreakEscape"),n(l)):t(l)}}const zi={name:"headingAtx",resolve:_i,tokenize:Fi};function _i(e,n){let t=e.length-2,r=3,i,l;return e[r][1].type==="whitespace"&&(r+=2),t-2>r&&e[t][1].type==="whitespace"&&(t-=2),e[t][1].type==="atxHeadingSequence"&&(r===t-1||t-4>r&&e[t-2][1].type==="whitespace")&&(t-=r+1===t?2:4),t>r&&(i={type:"atxHeadingText",start:e[r][1].start,end:e[t][1].end},l={type:"chunkText",start:e[r][1].start,end:e[t][1].end,contentType:"text"},se(e,r,t-r+1,[["enter",i,n],["enter",l,n],["exit",l,n],["exit",i,n]])),e}function Fi(e,n,t){let r=0;return i;function i(c){return e.enter("atxHeading"),l(c)}function l(c){return e.enter("atxHeadingSequence"),o(c)}function o(c){return c===35&&r++<6?(e.consume(c),o):c===null||J(c)?(e.exit("atxHeadingSequence"),a(c)):t(c)}function a(c){return c===35?(e.enter("atxHeadingSequence"),s(c)):c===null||P(c)?(e.exit("atxHeading"),n(c)):D(c)?V(e,a,"whitespace")(c):(e.enter("atxHeadingText"),u(c))}function s(c){return c===35?(e.consume(c),s):(e.exit("atxHeadingSequence"),a(c))}function u(c){return c===null||c===35||J(c)?(e.exit("atxHeadingText"),a(c)):(e.consume(c),u)}}const Ri=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],rt=["pre","script","style","textarea"],Di={concrete:!0,name:"htmlFlow",resolveTo:Mi,tokenize:Ni},Oi={partial:!0,tokenize:Hi},Bi={partial:!0,tokenize:ji};function Mi(e){let n=e.length;for(;n--&&!(e[n][0]==="enter"&&e[n][1].type==="htmlFlow"););return n>1&&e[n-2][1].type==="linePrefix"&&(e[n][1].start=e[n-2][1].start,e[n+1][1].start=e[n-2][1].start,e.splice(n-2,2)),e}function Ni(e,n,t){const r=this;let i,l,o,a,s;return u;function u(m){return c(m)}function c(m){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(m),f}function f(m){return m===33?(e.consume(m),p):m===47?(e.consume(m),l=!0,S):m===63?(e.consume(m),i=3,r.interrupt?n:d):ue(m)?(e.consume(m),o=String.fromCharCode(m),I):t(m)}function p(m){return m===45?(e.consume(m),i=2,h):m===91?(e.consume(m),i=5,a=0,b):ue(m)?(e.consume(m),i=4,r.interrupt?n:d):t(m)}function h(m){return m===45?(e.consume(m),r.interrupt?n:d):t(m)}function b(m){const le="CDATA[";return m===le.charCodeAt(a++)?(e.consume(m),a===le.length?r.interrupt?n:A:b):t(m)}function S(m){return ue(m)?(e.consume(m),o=String.fromCharCode(m),I):t(m)}function I(m){if(m===null||m===47||m===62||J(m)){const le=m===47,xe=o.toLowerCase();return!le&&!l&&rt.includes(xe)?(i=1,r.interrupt?n(m):A(m)):Ri.includes(o.toLowerCase())?(i=6,le?(e.consume(m),x):r.interrupt?n(m):A(m)):(i=7,r.interrupt&&!r.parser.lazy[r.now().line]?t(m):l?L(m):E(m))}return m===45||ne(m)?(e.consume(m),o+=String.fromCharCode(m),I):t(m)}function x(m){return m===62?(e.consume(m),r.interrupt?n:A):t(m)}function L(m){return D(m)?(e.consume(m),L):B(m)}function E(m){return m===47?(e.consume(m),B):m===58||m===95||ue(m)?(e.consume(m),N):D(m)?(e.consume(m),E):B(m)}function N(m){return m===45||m===46||m===58||m===95||ne(m)?(e.consume(m),N):H(m)}function H(m){return m===61?(e.consume(m),y):D(m)?(e.consume(m),H):E(m)}function y(m){return m===null||m===60||m===61||m===62||m===96?t(m):m===34||m===39?(e.consume(m),s=m,R):D(m)?(e.consume(m),y):U(m)}function R(m){return m===s?(e.consume(m),s=null,O):m===null||P(m)?t(m):(e.consume(m),R)}function U(m){return m===null||m===34||m===39||m===47||m===60||m===61||m===62||m===96||J(m)?H(m):(e.consume(m),U)}function O(m){return m===47||m===62||D(m)?E(m):t(m)}function B(m){return m===62?(e.consume(m),v):t(m)}function v(m){return m===null||P(m)?A(m):D(m)?(e.consume(m),v):t(m)}function A(m){return m===45&&i===2?(e.consume(m),M):m===60&&i===1?(e.consume(m),Y):m===62&&i===4?(e.consume(m),ie):m===63&&i===3?(e.consume(m),d):m===93&&i===5?(e.consume(m),ce):P(m)&&(i===6||i===7)?(e.exit("htmlFlowData"),e.check(Oi,fe,$)(m)):m===null||P(m)?(e.exit("htmlFlowData"),$(m)):(e.consume(m),A)}function $(m){return e.check(Bi,T,fe)(m)}function T(m){return e.enter("lineEnding"),e.consume(m),e.exit("lineEnding"),C}function C(m){return m===null||P(m)?$(m):(e.enter("htmlFlowData"),A(m))}function M(m){return m===45?(e.consume(m),d):A(m)}function Y(m){return m===47?(e.consume(m),o="",re):A(m)}function re(m){if(m===62){const le=o.toLowerCase();return rt.includes(le)?(e.consume(m),ie):A(m)}return ue(m)&&o.length<8?(e.consume(m),o+=String.fromCharCode(m),re):A(m)}function ce(m){return m===93?(e.consume(m),d):A(m)}function d(m){return m===62?(e.consume(m),ie):m===45&&i===2?(e.consume(m),d):A(m)}function ie(m){return m===null||P(m)?(e.exit("htmlFlowData"),fe(m)):(e.consume(m),ie)}function fe(m){return e.exit("htmlFlow"),n(m)}}function ji(e,n,t){const r=this;return i;function i(o){return P(o)?(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),l):t(o)}function l(o){return r.parser.lazy[r.now().line]?t(o):n(o)}}function Hi(e,n,t){return r;function r(i){return e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),e.attempt(Ze,n,t)}}const Ui={name:"htmlText",tokenize:$i};function $i(e,n,t){const r=this;let i,l,o;return a;function a(d){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(d),s}function s(d){return d===33?(e.consume(d),u):d===47?(e.consume(d),H):d===63?(e.consume(d),E):ue(d)?(e.consume(d),U):t(d)}function u(d){return d===45?(e.consume(d),c):d===91?(e.consume(d),l=0,b):ue(d)?(e.consume(d),L):t(d)}function c(d){return d===45?(e.consume(d),h):t(d)}function f(d){return d===null?t(d):d===45?(e.consume(d),p):P(d)?(o=f,Y(d)):(e.consume(d),f)}function p(d){return d===45?(e.consume(d),h):f(d)}function h(d){return d===62?M(d):d===45?p(d):f(d)}function b(d){const ie="CDATA[";return d===ie.charCodeAt(l++)?(e.consume(d),l===ie.length?S:b):t(d)}function S(d){return d===null?t(d):d===93?(e.consume(d),I):P(d)?(o=S,Y(d)):(e.consume(d),S)}function I(d){return d===93?(e.consume(d),x):S(d)}function x(d){return d===62?M(d):d===93?(e.consume(d),x):S(d)}function L(d){return d===null||d===62?M(d):P(d)?(o=L,Y(d)):(e.consume(d),L)}function E(d){return d===null?t(d):d===63?(e.consume(d),N):P(d)?(o=E,Y(d)):(e.consume(d),E)}function N(d){return d===62?M(d):E(d)}function H(d){return ue(d)?(e.consume(d),y):t(d)}function y(d){return d===45||ne(d)?(e.consume(d),y):R(d)}function R(d){return P(d)?(o=R,Y(d)):D(d)?(e.consume(d),R):M(d)}function U(d){return d===45||ne(d)?(e.consume(d),U):d===47||d===62||J(d)?O(d):t(d)}function O(d){return d===47?(e.consume(d),M):d===58||d===95||ue(d)?(e.consume(d),B):P(d)?(o=O,Y(d)):D(d)?(e.consume(d),O):M(d)}function B(d){return d===45||d===46||d===58||d===95||ne(d)?(e.consume(d),B):v(d)}function v(d){return d===61?(e.consume(d),A):P(d)?(o=v,Y(d)):D(d)?(e.consume(d),v):O(d)}function A(d){return d===null||d===60||d===61||d===62||d===96?t(d):d===34||d===39?(e.consume(d),i=d,$):P(d)?(o=A,Y(d)):D(d)?(e.consume(d),A):(e.consume(d),T)}function $(d){return d===i?(e.consume(d),i=void 0,C):d===null?t(d):P(d)?(o=$,Y(d)):(e.consume(d),$)}function T(d){return d===null||d===34||d===39||d===60||d===61||d===96?t(d):d===47||d===62||J(d)?O(d):(e.consume(d),T)}function C(d){return d===47||d===62||J(d)?O(d):t(d)}function M(d){return d===62?(e.consume(d),e.exit("htmlTextData"),e.exit("htmlText"),n):t(d)}function Y(d){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(d),e.exit("lineEnding"),re}function re(d){return D(d)?V(e,ce,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(d):ce(d)}function ce(d){return e.enter("htmlTextData"),o(d)}}const Ln={name:"labelEnd",resolveAll:Yi,resolveTo:Qi,tokenize:Xi},qi={tokenize:Gi},Vi={tokenize:Ji},Wi={tokenize:Ki};function Yi(e){let n=-1;const t=[];for(;++n<e.length;){const r=e[n][1];if(t.push(e[n]),r.type==="labelImage"||r.type==="labelLink"||r.type==="labelEnd"){const i=r.type==="labelImage"?4:2;r.type="data",n+=i}}return e.length!==t.length&&se(e,0,e.length,t),e}function Qi(e,n){let t=e.length,r=0,i,l,o,a;for(;t--;)if(i=e[t][1],l){if(i.type==="link"||i.type==="labelLink"&&i._inactive)break;e[t][0]==="enter"&&i.type==="labelLink"&&(i._inactive=!0)}else if(o){if(e[t][0]==="enter"&&(i.type==="labelImage"||i.type==="labelLink")&&!i._balanced&&(l=t,i.type!=="labelLink")){r=2;break}}else i.type==="labelEnd"&&(o=t);const s={type:e[l][1].type==="labelLink"?"link":"image",start:{...e[l][1].start},end:{...e[e.length-1][1].end}},u={type:"label",start:{...e[l][1].start},end:{...e[o][1].end}},c={type:"labelText",start:{...e[l+r+2][1].end},end:{...e[o-2][1].start}};return a=[["enter",s,n],["enter",u,n]],a=te(a,e.slice(l+1,l+r+3)),a=te(a,[["enter",c,n]]),a=te(a,Pn(n.parser.constructs.insideSpan.null,e.slice(l+r+4,o-3),n)),a=te(a,[["exit",c,n],e[o-2],e[o-1],["exit",u,n]]),a=te(a,e.slice(o+1)),a=te(a,[["exit",s,n]]),se(e,l,e.length,a),e}function Xi(e,n,t){const r=this;let i=r.events.length,l,o;for(;i--;)if((r.events[i][1].type==="labelImage"||r.events[i][1].type==="labelLink")&&!r.events[i][1]._balanced){l=r.events[i][1];break}return a;function a(p){return l?l._inactive?f(p):(o=r.parser.defined.includes(ve(r.sliceSerialize({start:l.end,end:r.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(p),e.exit("labelMarker"),e.exit("labelEnd"),s):t(p)}function s(p){return p===40?e.attempt(qi,c,o?c:f)(p):p===91?e.attempt(Vi,c,o?u:f)(p):o?c(p):f(p)}function u(p){return e.attempt(Wi,c,f)(p)}function c(p){return n(p)}function f(p){return l._balanced=!0,t(p)}}function Gi(e,n,t){return r;function r(f){return e.enter("resource"),e.enter("resourceMarker"),e.consume(f),e.exit("resourceMarker"),i}function i(f){return J(f)?Me(e,l)(f):l(f)}function l(f){return f===41?c(f):Ut(e,o,a,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(f)}function o(f){return J(f)?Me(e,s)(f):c(f)}function a(f){return t(f)}function s(f){return f===34||f===39||f===40?qt(e,u,t,"resourceTitle","resourceTitleMarker","resourceTitleString")(f):c(f)}function u(f){return J(f)?Me(e,c)(f):c(f)}function c(f){return f===41?(e.enter("resourceMarker"),e.consume(f),e.exit("resourceMarker"),e.exit("resource"),n):t(f)}}function Ji(e,n,t){const r=this;return i;function i(a){return $t.call(r,e,l,o,"reference","referenceMarker","referenceString")(a)}function l(a){return r.parser.defined.includes(ve(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)))?n(a):t(a)}function o(a){return t(a)}}function Ki(e,n,t){return r;function r(l){return e.enter("reference"),e.enter("referenceMarker"),e.consume(l),e.exit("referenceMarker"),i}function i(l){return l===93?(e.enter("referenceMarker"),e.consume(l),e.exit("referenceMarker"),e.exit("reference"),n):t(l)}}const Zi={name:"labelStartImage",resolveAll:Ln.resolveAll,tokenize:el};function el(e,n,t){const r=this;return i;function i(a){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(a),e.exit("labelImageMarker"),l}function l(a){return a===91?(e.enter("labelMarker"),e.consume(a),e.exit("labelMarker"),e.exit("labelImage"),o):t(a)}function o(a){return a===94&&"_hiddenFootnoteSupport"in r.parser.constructs?t(a):n(a)}}const nl={name:"labelStartLink",resolveAll:Ln.resolveAll,tokenize:tl};function tl(e,n,t){const r=this;return i;function i(o){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(o),e.exit("labelMarker"),e.exit("labelLink"),l}function l(o){return o===94&&"_hiddenFootnoteSupport"in r.parser.constructs?t(o):n(o)}}const rn={name:"lineEnding",tokenize:rl};function rl(e,n){return t;function t(r){return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),V(e,n,"linePrefix")}}const Qe={name:"thematicBreak",tokenize:il};function il(e,n,t){let r=0,i;return l;function l(u){return e.enter("thematicBreak"),o(u)}function o(u){return i=u,a(u)}function a(u){return u===i?(e.enter("thematicBreakSequence"),s(u)):r>=3&&(u===null||P(u))?(e.exit("thematicBreak"),n(u)):t(u)}function s(u){return u===i?(e.consume(u),r++,s):(e.exit("thematicBreakSequence"),D(u)?V(e,a,"whitespace")(u):a(u))}}const G={continuation:{tokenize:ul},exit:cl,name:"list",tokenize:al},ll={partial:!0,tokenize:fl},ol={partial:!0,tokenize:sl};function al(e,n,t){const r=this,i=r.events[r.events.length-1];let l=i&&i[1].type==="linePrefix"?i[2].sliceSerialize(i[1],!0).length:0,o=0;return a;function a(h){const b=r.containerState.type||(h===42||h===43||h===45?"listUnordered":"listOrdered");if(b==="listUnordered"?!r.containerState.marker||h===r.containerState.marker:gn(h)){if(r.containerState.type||(r.containerState.type=b,e.enter(b,{_container:!0})),b==="listUnordered")return e.enter("listItemPrefix"),h===42||h===45?e.check(Qe,t,u)(h):u(h);if(!r.interrupt||h===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),s(h)}return t(h)}function s(h){return gn(h)&&++o<10?(e.consume(h),s):(!r.interrupt||o<2)&&(r.containerState.marker?h===r.containerState.marker:h===41||h===46)?(e.exit("listItemValue"),u(h)):t(h)}function u(h){return e.enter("listItemMarker"),e.consume(h),e.exit("listItemMarker"),r.containerState.marker=r.containerState.marker||h,e.check(Ze,r.interrupt?t:c,e.attempt(ll,p,f))}function c(h){return r.containerState.initialBlankLine=!0,l++,p(h)}function f(h){return D(h)?(e.enter("listItemPrefixWhitespace"),e.consume(h),e.exit("listItemPrefixWhitespace"),p):t(h)}function p(h){return r.containerState.size=l+r.sliceSerialize(e.exit("listItemPrefix"),!0).length,n(h)}}function ul(e,n,t){const r=this;return r.containerState._closeFlow=void 0,e.check(Ze,i,l);function i(a){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,V(e,n,"listItemIndent",r.containerState.size+1)(a)}function l(a){return r.containerState.furtherBlankLines||!D(a)?(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,o(a)):(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,e.attempt(ol,n,o)(a))}function o(a){return r.containerState._closeFlow=!0,r.interrupt=void 0,V(e,e.attempt(G,n,t),"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(a)}}function sl(e,n,t){const r=this;return V(e,i,"listItemIndent",r.containerState.size+1);function i(l){const o=r.events[r.events.length-1];return o&&o[1].type==="listItemIndent"&&o[2].sliceSerialize(o[1],!0).length===r.containerState.size?n(l):t(l)}}function cl(e){e.exit(this.containerState.type)}function fl(e,n,t){const r=this;return V(e,i,"listItemPrefixWhitespace",r.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function i(l){const o=r.events[r.events.length-1];return!D(l)&&o&&o[1].type==="listItemPrefixWhitespace"?n(l):t(l)}}const it={name:"setextUnderline",resolveTo:hl,tokenize:pl};function hl(e,n){let t=e.length,r,i,l;for(;t--;)if(e[t][0]==="enter"){if(e[t][1].type==="content"){r=t;break}e[t][1].type==="paragraph"&&(i=t)}else e[t][1].type==="content"&&e.splice(t,1),!l&&e[t][1].type==="definition"&&(l=t);const o={type:"setextHeading",start:{...e[r][1].start},end:{...e[e.length-1][1].end}};return e[i][1].type="setextHeadingText",l?(e.splice(i,0,["enter",o,n]),e.splice(l+1,0,["exit",e[r][1],n]),e[r][1].end={...e[l][1].end}):e[r][1]=o,e.push(["exit",o,n]),e}function pl(e,n,t){const r=this;let i;return l;function l(u){let c=r.events.length,f;for(;c--;)if(r.events[c][1].type!=="lineEnding"&&r.events[c][1].type!=="linePrefix"&&r.events[c][1].type!=="content"){f=r.events[c][1].type==="paragraph";break}return!r.parser.lazy[r.now().line]&&(r.interrupt||f)?(e.enter("setextHeadingLine"),i=u,o(u)):t(u)}function o(u){return e.enter("setextHeadingLineSequence"),a(u)}function a(u){return u===i?(e.consume(u),a):(e.exit("setextHeadingLineSequence"),D(u)?V(e,s,"lineSuffix")(u):s(u))}function s(u){return u===null||P(u)?(e.exit("setextHeadingLine"),n(u)):t(u)}}const dl={tokenize:ml};function ml(e){const n=this,t=e.attempt(Ze,r,e.attempt(this.parser.constructs.flowInitial,i,V(e,e.attempt(this.parser.constructs.flow,i,e.attempt(bi,i)),"linePrefix")));return t;function r(l){if(l===null){e.consume(l);return}return e.enter("lineEndingBlank"),e.consume(l),e.exit("lineEndingBlank"),n.currentConstruct=void 0,t}function i(l){if(l===null){e.consume(l);return}return e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),n.currentConstruct=void 0,t}}const gl={resolveAll:Wt()},yl=Vt("string"),xl=Vt("text");function Vt(e){return{resolveAll:Wt(e==="text"?kl:void 0),tokenize:n};function n(t){const r=this,i=this.parser.constructs[e],l=t.attempt(i,o,a);return o;function o(c){return u(c)?l(c):a(c)}function a(c){if(c===null){t.consume(c);return}return t.enter("data"),t.consume(c),s}function s(c){return u(c)?(t.exit("data"),l(c)):(t.consume(c),s)}function u(c){if(c===null)return!0;const f=i[c];let p=-1;if(f)for(;++p<f.length;){const h=f[p];if(!h.previous||h.previous.call(r,r.previous))return!0}return!1}}}function Wt(e){return n;function n(t,r){let i=-1,l;for(;++i<=t.length;)l===void 0?t[i]&&t[i][1].type==="data"&&(l=i,i++):(!t[i]||t[i][1].type!=="data")&&(i!==l+2&&(t[l][1].end=t[i-1][1].end,t.splice(l+2,i-l-2),i=l+2),l=void 0);return e?e(t,r):t}}function kl(e,n){let t=0;for(;++t<=e.length;)if((t===e.length||e[t][1].type==="lineEnding")&&e[t-1][1].type==="data"){const r=e[t-1][1],i=n.sliceStream(r);let l=i.length,o=-1,a=0,s;for(;l--;){const u=i[l];if(typeof u=="string"){for(o=u.length;u.charCodeAt(o-1)===32;)a++,o--;if(o)break;o=-1}else if(u===-2)s=!0,a++;else if(u!==-1){l++;break}}if(n._contentTypeTextTrailing&&t===e.length&&(a=0),a){const u={type:t===e.length||s||a<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:l?o:r.start._bufferIndex+o,_index:r.start._index+l,line:r.end.line,column:r.end.column-a,offset:r.end.offset-a},end:{...r.end}};r.end={...u.start},r.start.offset===r.end.offset?Object.assign(r,u):(e.splice(t,0,["enter",u,n],["exit",u,n]),t+=2)}t++}return e}const bl={42:G,43:G,45:G,48:G,49:G,50:G,51:G,52:G,53:G,54:G,55:G,56:G,57:G,62:Mt},wl={91:Ii},Sl={[-2]:tn,[-1]:tn,32:tn},Cl={35:zi,42:Qe,45:[it,Qe],60:Di,61:it,95:Qe,96:tt,126:tt},El={38:jt,92:Nt},Il={[-5]:rn,[-4]:rn,[-3]:rn,33:Zi,38:jt,42:yn,60:[ni,Ui],91:nl,92:[Pi,Nt],93:Ln,95:yn,96:di},Al={null:[yn,gl]},vl={null:[42,95]},Tl={null:[]},Pl=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:vl,contentInitial:wl,disable:Tl,document:bl,flow:Cl,flowInitial:Sl,insideSpan:Al,string:El,text:Il},Symbol.toStringTag,{value:"Module"}));function Ll(e,n,t){let r={_bufferIndex:-1,_index:0,line:t&&t.line||1,column:t&&t.column||1,offset:t&&t.offset||0};const i={},l=[];let o=[],a=[];const s={attempt:R(H),check:R(y),consume:L,enter:E,exit:N,interrupt:R(y,{interrupt:!0})},u={code:null,containerState:{},defineSkip:S,events:[],now:b,parser:e,previous:null,sliceSerialize:p,sliceStream:h,write:f};let c=n.tokenize.call(u,s);return n.resolveAll&&l.push(n),u;function f(v){return o=te(o,v),I(),o[o.length-1]!==null?[]:(U(n,0),u.events=Pn(l,u.events,u),u.events)}function p(v,A){return _l(h(v),A)}function h(v){return zl(o,v)}function b(){const{_bufferIndex:v,_index:A,line:$,column:T,offset:C}=r;return{_bufferIndex:v,_index:A,line:$,column:T,offset:C}}function S(v){i[v.line]=v.column,B()}function I(){let v;for(;r._index<o.length;){const A=o[r._index];if(typeof A=="string")for(v=r._index,r._bufferIndex<0&&(r._bufferIndex=0);r._index===v&&r._bufferIndex<A.length;)x(A.charCodeAt(r._bufferIndex));else x(A)}}function x(v){c=c(v)}function L(v){P(v)?(r.line++,r.column=1,r.offset+=v===-3?2:1,B()):v!==-1&&(r.column++,r.offset++),r._bufferIndex<0?r._index++:(r._bufferIndex++,r._bufferIndex===o[r._index].length&&(r._bufferIndex=-1,r._index++)),u.previous=v}function E(v,A){const $=A||{};return $.type=v,$.start=b(),u.events.push(["enter",$,u]),a.push($),$}function N(v){const A=a.pop();return A.end=b(),u.events.push(["exit",A,u]),A}function H(v,A){U(v,A.from)}function y(v,A){A.restore()}function R(v,A){return $;function $(T,C,M){let Y,re,ce,d;return Array.isArray(T)?fe(T):"tokenize"in T?fe([T]):ie(T);function ie(Q){return ze;function ze(de){const Se=de!==null&&Q[de],Ce=de!==null&&Q.null,qe=[...Array.isArray(Se)?Se:Se?[Se]:[],...Array.isArray(Ce)?Ce:Ce?[Ce]:[]];return fe(qe)(de)}}function fe(Q){return Y=Q,re=0,Q.length===0?M:m(Q[re])}function m(Q){return ze;function ze(de){return d=O(),ce=Q,Q.partial||(u.currentConstruct=Q),Q.name&&u.parser.constructs.disable.null.includes(Q.name)?xe():Q.tokenize.call(A?Object.assign(Object.create(u),A):u,s,le,xe)(de)}}function le(Q){return v(ce,d),C}function xe(Q){return d.restore(),++re<Y.length?m(Y[re]):M}}}function U(v,A){v.resolveAll&&!l.includes(v)&&l.push(v),v.resolve&&se(u.events,A,u.events.length-A,v.resolve(u.events.slice(A),u)),v.resolveTo&&(u.events=v.resolveTo(u.events,u))}function O(){const v=b(),A=u.previous,$=u.currentConstruct,T=u.events.length,C=Array.from(a);return{from:T,restore:M};function M(){r=v,u.previous=A,u.currentConstruct=$,u.events.length=T,a=C,B()}}function B(){r.line in i&&r.column<2&&(r.column=i[r.line],r.offset+=i[r.line]-1)}}function zl(e,n){const t=n.start._index,r=n.start._bufferIndex,i=n.end._index,l=n.end._bufferIndex;let o;if(t===i)o=[e[t].slice(r,l)];else{if(o=e.slice(t,i),r>-1){const a=o[0];typeof a=="string"?o[0]=a.slice(r):o.shift()}l>0&&o.push(e[i].slice(0,l))}return o}function _l(e,n){let t=-1;const r=[];let i;for(;++t<e.length;){const l=e[t];let o;if(typeof l=="string")o=l;else switch(l){case-5:{o="\r";break}case-4:{o=`
|
|
1
|
+
import{g as Dt}from"./index-Po1UZSgL.js";const Mr={};function vn(e,n){const t=Mr,r=typeof t.includeImageAlt=="boolean"?t.includeImageAlt:!0,i=typeof t.includeHtml=="boolean"?t.includeHtml:!0;return Ot(e,r,i)}function Ot(e,n,t){if(Nr(e)){if("value"in e)return e.type==="html"&&!t?"":e.value;if(n&&"alt"in e&&e.alt)return e.alt;if("children"in e)return Gn(e.children,n,t)}return Array.isArray(e)?Gn(e,n,t):""}function Gn(e,n,t){const r=[];let i=-1;for(;++i<e.length;)r[i]=Ot(e[i],n,t);return r.join("")}function Nr(e){return!!(e&&typeof e=="object")}const Jn=document.createElement("i");function Tn(e){const n="&"+e+";";Jn.innerHTML=n;const t=Jn.textContent;return t.charCodeAt(t.length-1)===59&&e!=="semi"||t===n?!1:t}function se(e,n,t,r){const i=e.length;let l=0,o;if(n<0?n=-n>i?0:i+n:n=n>i?i:n,t=t>0?t:0,r.length<1e4)o=Array.from(r),o.unshift(n,t),e.splice(...o);else for(t&&e.splice(n,t);l<r.length;)o=r.slice(l,l+1e4),o.unshift(n,0),e.splice(...o),l+=1e4,n+=1e4}function te(e,n){return e.length>0?(se(e,e.length,0,n),e):n}const Kn={}.hasOwnProperty;function jr(e){const n={};let t=-1;for(;++t<e.length;)Hr(n,e[t]);return n}function Hr(e,n){let t;for(t in n){const i=(Kn.call(e,t)?e[t]:void 0)||(e[t]={}),l=n[t];let o;if(l)for(o in l){Kn.call(i,o)||(i[o]=[]);const a=l[o];Ur(i[o],Array.isArray(a)?a:a?[a]:[])}}}function Ur(e,n){let t=-1;const r=[];for(;++t<n.length;)(n[t].add==="after"?e:r).push(n[t]);se(e,0,0,r)}function Bt(e,n){const t=Number.parseInt(e,n);return t<9||t===11||t>13&&t<32||t>126&&t<160||t>55295&&t<57344||t>64975&&t<65008||(t&65535)===65535||(t&65535)===65534||t>1114111?"�":String.fromCodePoint(t)}function ve(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const ue=ye(/[A-Za-z]/),ne=ye(/[\dA-Za-z]/),$r=ye(/[#-'*+\--9=?A-Z^-~]/);function mn(e){return e!==null&&(e<32||e===127)}const gn=ye(/\d/),qr=ye(/[\dA-Fa-f]/),Vr=ye(/[!-/:-@[-`{-~]/);function P(e){return e!==null&&e<-2}function J(e){return e!==null&&(e<0||e===32)}function D(e){return e===-2||e===-1||e===32}const Wr=ye(new RegExp("\\p{P}|\\p{S}","u")),Yr=ye(/\s/);function ye(e){return n;function n(t){return t!==null&&t>-1&&e.test(String.fromCharCode(t))}}function Pe(e){const n=[];let t=-1,r=0,i=0;for(;++t<e.length;){const l=e.charCodeAt(t);let o="";if(l===37&&ne(e.charCodeAt(t+1))&&ne(e.charCodeAt(t+2)))i=2;else if(l<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(l))||(o=String.fromCharCode(l));else if(l>55295&&l<57344){const a=e.charCodeAt(t+1);l<56320&&a>56319&&a<57344?(o=String.fromCharCode(l,a),i=1):o="�"}else o=String.fromCharCode(l);o&&(n.push(e.slice(r,t),encodeURIComponent(o)),r=t+i+1,o=""),i&&(t+=i,i=0)}return n.join("")+e.slice(r)}function V(e,n,t,r){const i=r?r-1:Number.POSITIVE_INFINITY;let l=0;return o;function o(s){return D(s)?(e.enter(t),a(s)):n(s)}function a(s){return D(s)&&l++<i?(e.consume(s),a):(e.exit(t),n(s))}}const Qr={tokenize:Xr};function Xr(e){const n=e.attempt(this.parser.constructs.contentInitial,r,i);let t;return n;function r(a){if(a===null){e.consume(a);return}return e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),V(e,n,"linePrefix")}function i(a){return e.enter("paragraph"),l(a)}function l(a){const s=e.enter("chunkText",{contentType:"text",previous:t});return t&&(t.next=s),t=s,o(a)}function o(a){if(a===null){e.exit("chunkText"),e.exit("paragraph"),e.consume(a);return}return P(a)?(e.consume(a),e.exit("chunkText"),l):(e.consume(a),o)}}const Gr={tokenize:Jr},Zn={tokenize:Kr};function Jr(e){const n=this,t=[];let r=0,i,l,o;return a;function a(E){if(r<t.length){const N=t[r];return n.containerState=N[1],e.attempt(N[0].continuation,s,u)(E)}return u(E)}function s(E){if(r++,n.containerState._closeFlow){n.containerState._closeFlow=void 0,i&&L();const N=n.events.length;let H=N,y;for(;H--;)if(n.events[H][0]==="exit"&&n.events[H][1].type==="chunkFlow"){y=n.events[H][1].end;break}x(r);let R=N;for(;R<n.events.length;)n.events[R][1].end={...y},R++;return se(n.events,H+1,0,n.events.slice(N)),n.events.length=R,u(E)}return a(E)}function u(E){if(r===t.length){if(!i)return p(E);if(i.currentConstruct&&i.currentConstruct.concrete)return b(E);n.interrupt=!!(i.currentConstruct&&!i._gfmTableDynamicInterruptHack)}return n.containerState={},e.check(Zn,c,f)(E)}function c(E){return i&&L(),x(r),p(E)}function f(E){return n.parser.lazy[n.now().line]=r!==t.length,o=n.now().offset,b(E)}function p(E){return n.containerState={},e.attempt(Zn,h,b)(E)}function h(E){return r++,t.push([n.currentConstruct,n.containerState]),p(E)}function b(E){if(E===null){i&&L(),x(0),e.consume(E);return}return i=i||n.parser.flow(n.now()),e.enter("chunkFlow",{_tokenizer:i,contentType:"flow",previous:l}),S(E)}function S(E){if(E===null){I(e.exit("chunkFlow"),!0),x(0),e.consume(E);return}return P(E)?(e.consume(E),I(e.exit("chunkFlow")),r=0,n.interrupt=void 0,a):(e.consume(E),S)}function I(E,N){const H=n.sliceStream(E);if(N&&H.push(null),E.previous=l,l&&(l.next=E),l=E,i.defineSkip(E.start),i.write(H),n.parser.lazy[E.start.line]){let y=i.events.length;for(;y--;)if(i.events[y][1].start.offset<o&&(!i.events[y][1].end||i.events[y][1].end.offset>o))return;const R=n.events.length;let U=R,O,B;for(;U--;)if(n.events[U][0]==="exit"&&n.events[U][1].type==="chunkFlow"){if(O){B=n.events[U][1].end;break}O=!0}for(x(r),y=R;y<n.events.length;)n.events[y][1].end={...B},y++;se(n.events,U+1,0,n.events.slice(R)),n.events.length=y}}function x(E){let N=t.length;for(;N-- >E;){const H=t[N];n.containerState=H[1],H[0].exit.call(n,e)}t.length=E}function L(){i.write([null]),l=void 0,i=void 0,n.containerState._closeFlow=void 0}}function Kr(e,n,t){return V(e,e.attempt(this.parser.constructs.document,n,t),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function Xe(e){if(e===null||J(e)||Yr(e))return 1;if(Wr(e))return 2}function Pn(e,n,t){const r=[];let i=-1;for(;++i<e.length;){const l=e[i].resolveAll;l&&!r.includes(l)&&(n=l(n,t),r.push(l))}return n}const yn={name:"attention",resolveAll:Zr,tokenize:ei};function Zr(e,n){let t=-1,r,i,l,o,a,s,u,c;for(;++t<e.length;)if(e[t][0]==="enter"&&e[t][1].type==="attentionSequence"&&e[t][1]._close){for(r=t;r--;)if(e[r][0]==="exit"&&e[r][1].type==="attentionSequence"&&e[r][1]._open&&n.sliceSerialize(e[r][1]).charCodeAt(0)===n.sliceSerialize(e[t][1]).charCodeAt(0)){if((e[r][1]._close||e[t][1]._open)&&(e[t][1].end.offset-e[t][1].start.offset)%3&&!((e[r][1].end.offset-e[r][1].start.offset+e[t][1].end.offset-e[t][1].start.offset)%3))continue;s=e[r][1].end.offset-e[r][1].start.offset>1&&e[t][1].end.offset-e[t][1].start.offset>1?2:1;const f={...e[r][1].end},p={...e[t][1].start};et(f,-s),et(p,s),o={type:s>1?"strongSequence":"emphasisSequence",start:f,end:{...e[r][1].end}},a={type:s>1?"strongSequence":"emphasisSequence",start:{...e[t][1].start},end:p},l={type:s>1?"strongText":"emphasisText",start:{...e[r][1].end},end:{...e[t][1].start}},i={type:s>1?"strong":"emphasis",start:{...o.start},end:{...a.end}},e[r][1].end={...o.start},e[t][1].start={...a.end},u=[],e[r][1].end.offset-e[r][1].start.offset&&(u=te(u,[["enter",e[r][1],n],["exit",e[r][1],n]])),u=te(u,[["enter",i,n],["enter",o,n],["exit",o,n],["enter",l,n]]),u=te(u,Pn(n.parser.constructs.insideSpan.null,e.slice(r+1,t),n)),u=te(u,[["exit",l,n],["enter",a,n],["exit",a,n],["exit",i,n]]),e[t][1].end.offset-e[t][1].start.offset?(c=2,u=te(u,[["enter",e[t][1],n],["exit",e[t][1],n]])):c=0,se(e,r-1,t-r+3,u),t=r+u.length-c-2;break}}for(t=-1;++t<e.length;)e[t][1].type==="attentionSequence"&&(e[t][1].type="data");return e}function ei(e,n){const t=this.parser.constructs.attentionMarkers.null,r=this.previous,i=Xe(r);let l;return o;function o(s){return l=s,e.enter("attentionSequence"),a(s)}function a(s){if(s===l)return e.consume(s),a;const u=e.exit("attentionSequence"),c=Xe(s),f=!c||c===2&&i||t.includes(s),p=!i||i===2&&c||t.includes(r);return u._open=!!(l===42?f:f&&(i||!p)),u._close=!!(l===42?p:p&&(c||!f)),n(s)}}function et(e,n){e.column+=n,e.offset+=n,e._bufferIndex+=n}const ni={name:"autolink",tokenize:ti};function ti(e,n,t){let r=0;return i;function i(h){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(h),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),l}function l(h){return ue(h)?(e.consume(h),o):h===64?t(h):u(h)}function o(h){return h===43||h===45||h===46||ne(h)?(r=1,a(h)):u(h)}function a(h){return h===58?(e.consume(h),r=0,s):(h===43||h===45||h===46||ne(h))&&r++<32?(e.consume(h),a):(r=0,u(h))}function s(h){return h===62?(e.exit("autolinkProtocol"),e.enter("autolinkMarker"),e.consume(h),e.exit("autolinkMarker"),e.exit("autolink"),n):h===null||h===32||h===60||mn(h)?t(h):(e.consume(h),s)}function u(h){return h===64?(e.consume(h),c):$r(h)?(e.consume(h),u):t(h)}function c(h){return ne(h)?f(h):t(h)}function f(h){return h===46?(e.consume(h),r=0,c):h===62?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(h),e.exit("autolinkMarker"),e.exit("autolink"),n):p(h)}function p(h){if((h===45||ne(h))&&r++<63){const b=h===45?p:f;return e.consume(h),b}return t(h)}}const Ze={partial:!0,tokenize:ri};function ri(e,n,t){return r;function r(l){return D(l)?V(e,i,"linePrefix")(l):i(l)}function i(l){return l===null||P(l)?n(l):t(l)}}const Mt={continuation:{tokenize:li},exit:oi,name:"blockQuote",tokenize:ii};function ii(e,n,t){const r=this;return i;function i(o){if(o===62){const a=r.containerState;return a.open||(e.enter("blockQuote",{_container:!0}),a.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(o),e.exit("blockQuoteMarker"),l}return t(o)}function l(o){return D(o)?(e.enter("blockQuotePrefixWhitespace"),e.consume(o),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),n):(e.exit("blockQuotePrefix"),n(o))}}function li(e,n,t){const r=this;return i;function i(o){return D(o)?V(e,l,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(o):l(o)}function l(o){return e.attempt(Mt,n,t)(o)}}function oi(e){e.exit("blockQuote")}const Nt={name:"characterEscape",tokenize:ai};function ai(e,n,t){return r;function r(l){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(l),e.exit("escapeMarker"),i}function i(l){return Vr(l)?(e.enter("characterEscapeValue"),e.consume(l),e.exit("characterEscapeValue"),e.exit("characterEscape"),n):t(l)}}const jt={name:"characterReference",tokenize:ui};function ui(e,n,t){const r=this;let i=0,l,o;return a;function a(f){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(f),e.exit("characterReferenceMarker"),s}function s(f){return f===35?(e.enter("characterReferenceMarkerNumeric"),e.consume(f),e.exit("characterReferenceMarkerNumeric"),u):(e.enter("characterReferenceValue"),l=31,o=ne,c(f))}function u(f){return f===88||f===120?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(f),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),l=6,o=qr,c):(e.enter("characterReferenceValue"),l=7,o=gn,c(f))}function c(f){if(f===59&&i){const p=e.exit("characterReferenceValue");return o===ne&&!Tn(r.sliceSerialize(p))?t(f):(e.enter("characterReferenceMarker"),e.consume(f),e.exit("characterReferenceMarker"),e.exit("characterReference"),n)}return o(f)&&i++<l?(e.consume(f),c):t(f)}}const nt={partial:!0,tokenize:ci},tt={concrete:!0,name:"codeFenced",tokenize:si};function si(e,n,t){const r=this,i={partial:!0,tokenize:H};let l=0,o=0,a;return s;function s(y){return u(y)}function u(y){const R=r.events[r.events.length-1];return l=R&&R[1].type==="linePrefix"?R[2].sliceSerialize(R[1],!0).length:0,a=y,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),c(y)}function c(y){return y===a?(o++,e.consume(y),c):o<3?t(y):(e.exit("codeFencedFenceSequence"),D(y)?V(e,f,"whitespace")(y):f(y))}function f(y){return y===null||P(y)?(e.exit("codeFencedFence"),r.interrupt?n(y):e.check(nt,S,N)(y)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),p(y))}function p(y){return y===null||P(y)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),f(y)):D(y)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),V(e,h,"whitespace")(y)):y===96&&y===a?t(y):(e.consume(y),p)}function h(y){return y===null||P(y)?f(y):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),b(y))}function b(y){return y===null||P(y)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),f(y)):y===96&&y===a?t(y):(e.consume(y),b)}function S(y){return e.attempt(i,N,I)(y)}function I(y){return e.enter("lineEnding"),e.consume(y),e.exit("lineEnding"),x}function x(y){return l>0&&D(y)?V(e,L,"linePrefix",l+1)(y):L(y)}function L(y){return y===null||P(y)?e.check(nt,S,N)(y):(e.enter("codeFlowValue"),E(y))}function E(y){return y===null||P(y)?(e.exit("codeFlowValue"),L(y)):(e.consume(y),E)}function N(y){return e.exit("codeFenced"),n(y)}function H(y,R,U){let O=0;return B;function B(C){return y.enter("lineEnding"),y.consume(C),y.exit("lineEnding"),v}function v(C){return y.enter("codeFencedFence"),D(C)?V(y,A,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(C):A(C)}function A(C){return C===a?(y.enter("codeFencedFenceSequence"),$(C)):U(C)}function $(C){return C===a?(O++,y.consume(C),$):O>=o?(y.exit("codeFencedFenceSequence"),D(C)?V(y,T,"whitespace")(C):T(C)):U(C)}function T(C){return C===null||P(C)?(y.exit("codeFencedFence"),R(C)):U(C)}}}function ci(e,n,t){const r=this;return i;function i(o){return o===null?t(o):(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),l)}function l(o){return r.parser.lazy[r.now().line]?t(o):n(o)}}const tn={name:"codeIndented",tokenize:hi},fi={partial:!0,tokenize:pi};function hi(e,n,t){const r=this;return i;function i(u){return e.enter("codeIndented"),V(e,l,"linePrefix",5)(u)}function l(u){const c=r.events[r.events.length-1];return c&&c[1].type==="linePrefix"&&c[2].sliceSerialize(c[1],!0).length>=4?o(u):t(u)}function o(u){return u===null?s(u):P(u)?e.attempt(fi,o,s)(u):(e.enter("codeFlowValue"),a(u))}function a(u){return u===null||P(u)?(e.exit("codeFlowValue"),o(u)):(e.consume(u),a)}function s(u){return e.exit("codeIndented"),n(u)}}function pi(e,n,t){const r=this;return i;function i(o){return r.parser.lazy[r.now().line]?t(o):P(o)?(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),i):V(e,l,"linePrefix",5)(o)}function l(o){const a=r.events[r.events.length-1];return a&&a[1].type==="linePrefix"&&a[2].sliceSerialize(a[1],!0).length>=4?n(o):P(o)?i(o):t(o)}}const di={name:"codeText",previous:gi,resolve:mi,tokenize:yi};function mi(e){let n=e.length-4,t=3,r,i;if((e[t][1].type==="lineEnding"||e[t][1].type==="space")&&(e[n][1].type==="lineEnding"||e[n][1].type==="space")){for(r=t;++r<n;)if(e[r][1].type==="codeTextData"){e[t][1].type="codeTextPadding",e[n][1].type="codeTextPadding",t+=2,n-=2;break}}for(r=t-1,n++;++r<=n;)i===void 0?r!==n&&e[r][1].type!=="lineEnding"&&(i=r):(r===n||e[r][1].type==="lineEnding")&&(e[i][1].type="codeTextData",r!==i+2&&(e[i][1].end=e[r-1][1].end,e.splice(i+2,r-i-2),n-=r-i-2,r=i+2),i=void 0);return e}function gi(e){return e!==96||this.events[this.events.length-1][1].type==="characterEscape"}function yi(e,n,t){let r=0,i,l;return o;function o(f){return e.enter("codeText"),e.enter("codeTextSequence"),a(f)}function a(f){return f===96?(e.consume(f),r++,a):(e.exit("codeTextSequence"),s(f))}function s(f){return f===null?t(f):f===32?(e.enter("space"),e.consume(f),e.exit("space"),s):f===96?(l=e.enter("codeTextSequence"),i=0,c(f)):P(f)?(e.enter("lineEnding"),e.consume(f),e.exit("lineEnding"),s):(e.enter("codeTextData"),u(f))}function u(f){return f===null||f===32||f===96||P(f)?(e.exit("codeTextData"),s(f)):(e.consume(f),u)}function c(f){return f===96?(e.consume(f),i++,c):i===r?(e.exit("codeTextSequence"),e.exit("codeText"),n(f)):(l.type="codeTextData",u(f))}}class xi{constructor(n){this.left=n?[...n]:[],this.right=[]}get(n){if(n<0||n>=this.left.length+this.right.length)throw new RangeError("Cannot access index `"+n+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return n<this.left.length?this.left[n]:this.right[this.right.length-n+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(n,t){const r=t??Number.POSITIVE_INFINITY;return r<this.left.length?this.left.slice(n,r):n>this.left.length?this.right.slice(this.right.length-r+this.left.length,this.right.length-n+this.left.length).reverse():this.left.slice(n).concat(this.right.slice(this.right.length-r+this.left.length).reverse())}splice(n,t,r){const i=t||0;this.setCursor(Math.trunc(n));const l=this.right.splice(this.right.length-i,Number.POSITIVE_INFINITY);return r&&Re(this.left,r),l.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(n){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(n)}pushMany(n){this.setCursor(Number.POSITIVE_INFINITY),Re(this.left,n)}unshift(n){this.setCursor(0),this.right.push(n)}unshiftMany(n){this.setCursor(0),Re(this.right,n.reverse())}setCursor(n){if(!(n===this.left.length||n>this.left.length&&this.right.length===0||n<0&&this.left.length===0))if(n<this.left.length){const t=this.left.splice(n,Number.POSITIVE_INFINITY);Re(this.right,t.reverse())}else{const t=this.right.splice(this.left.length+this.right.length-n,Number.POSITIVE_INFINITY);Re(this.left,t.reverse())}}}function Re(e,n){let t=0;if(n.length<1e4)e.push(...n);else for(;t<n.length;)e.push(...n.slice(t,t+1e4)),t+=1e4}function Ht(e){const n={};let t=-1,r,i,l,o,a,s,u;const c=new xi(e);for(;++t<c.length;){for(;t in n;)t=n[t];if(r=c.get(t),t&&r[1].type==="chunkFlow"&&c.get(t-1)[1].type==="listItemPrefix"&&(s=r[1]._tokenizer.events,l=0,l<s.length&&s[l][1].type==="lineEndingBlank"&&(l+=2),l<s.length&&s[l][1].type==="content"))for(;++l<s.length&&s[l][1].type!=="content";)s[l][1].type==="chunkText"&&(s[l][1]._isInFirstContentOfListItem=!0,l++);if(r[0]==="enter")r[1].contentType&&(Object.assign(n,ki(c,t)),t=n[t],u=!0);else if(r[1]._container){for(l=t,i=void 0;l--;)if(o=c.get(l),o[1].type==="lineEnding"||o[1].type==="lineEndingBlank")o[0]==="enter"&&(i&&(c.get(i)[1].type="lineEndingBlank"),o[1].type="lineEnding",i=l);else if(!(o[1].type==="linePrefix"||o[1].type==="listItemIndent"))break;i&&(r[1].end={...c.get(i)[1].start},a=c.slice(i,t),a.unshift(r),c.splice(i,t-i+1,a))}}return se(e,0,Number.POSITIVE_INFINITY,c.slice(0)),!u}function ki(e,n){const t=e.get(n)[1],r=e.get(n)[2];let i=n-1;const l=[];let o=t._tokenizer;o||(o=r.parser[t.contentType](t.start),t._contentTypeTextTrailing&&(o._contentTypeTextTrailing=!0));const a=o.events,s=[],u={};let c,f,p=-1,h=t,b=0,S=0;const I=[S];for(;h;){for(;e.get(++i)[1]!==h;);l.push(i),h._tokenizer||(c=r.sliceStream(h),h.next||c.push(null),f&&o.defineSkip(h.start),h._isInFirstContentOfListItem&&(o._gfmTasklistFirstContentOfListItem=!0),o.write(c),h._isInFirstContentOfListItem&&(o._gfmTasklistFirstContentOfListItem=void 0)),f=h,h=h.next}for(h=t;++p<a.length;)a[p][0]==="exit"&&a[p-1][0]==="enter"&&a[p][1].type===a[p-1][1].type&&a[p][1].start.line!==a[p][1].end.line&&(S=p+1,I.push(S),h._tokenizer=void 0,h.previous=void 0,h=h.next);for(o.events=[],h?(h._tokenizer=void 0,h.previous=void 0):I.pop(),p=I.length;p--;){const x=a.slice(I[p],I[p+1]),L=l.pop();s.push([L,L+x.length-1]),e.splice(L,2,x)}for(s.reverse(),p=-1;++p<s.length;)u[b+s[p][0]]=b+s[p][1],b+=s[p][1]-s[p][0]-1;return u}const bi={resolve:Si,tokenize:Ci},wi={partial:!0,tokenize:Ei};function Si(e){return Ht(e),e}function Ci(e,n){let t;return r;function r(a){return e.enter("content"),t=e.enter("chunkContent",{contentType:"content"}),i(a)}function i(a){return a===null?l(a):P(a)?e.check(wi,o,l)(a):(e.consume(a),i)}function l(a){return e.exit("chunkContent"),e.exit("content"),n(a)}function o(a){return e.consume(a),e.exit("chunkContent"),t.next=e.enter("chunkContent",{contentType:"content",previous:t}),t=t.next,i}}function Ei(e,n,t){const r=this;return i;function i(o){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),V(e,l,"linePrefix")}function l(o){if(o===null||P(o))return t(o);const a=r.events[r.events.length-1];return!r.parser.constructs.disable.null.includes("codeIndented")&&a&&a[1].type==="linePrefix"&&a[2].sliceSerialize(a[1],!0).length>=4?n(o):e.interrupt(r.parser.constructs.flow,t,n)(o)}}function Ut(e,n,t,r,i,l,o,a,s){const u=s||Number.POSITIVE_INFINITY;let c=0;return f;function f(x){return x===60?(e.enter(r),e.enter(i),e.enter(l),e.consume(x),e.exit(l),p):x===null||x===32||x===41||mn(x)?t(x):(e.enter(r),e.enter(o),e.enter(a),e.enter("chunkString",{contentType:"string"}),S(x))}function p(x){return x===62?(e.enter(l),e.consume(x),e.exit(l),e.exit(i),e.exit(r),n):(e.enter(a),e.enter("chunkString",{contentType:"string"}),h(x))}function h(x){return x===62?(e.exit("chunkString"),e.exit(a),p(x)):x===null||x===60||P(x)?t(x):(e.consume(x),x===92?b:h)}function b(x){return x===60||x===62||x===92?(e.consume(x),h):h(x)}function S(x){return!c&&(x===null||x===41||J(x))?(e.exit("chunkString"),e.exit(a),e.exit(o),e.exit(r),n(x)):c<u&&x===40?(e.consume(x),c++,S):x===41?(e.consume(x),c--,S):x===null||x===32||x===40||mn(x)?t(x):(e.consume(x),x===92?I:S)}function I(x){return x===40||x===41||x===92?(e.consume(x),S):S(x)}}function $t(e,n,t,r,i,l){const o=this;let a=0,s;return u;function u(h){return e.enter(r),e.enter(i),e.consume(h),e.exit(i),e.enter(l),c}function c(h){return a>999||h===null||h===91||h===93&&!s||h===94&&!a&&"_hiddenFootnoteSupport"in o.parser.constructs?t(h):h===93?(e.exit(l),e.enter(i),e.consume(h),e.exit(i),e.exit(r),n):P(h)?(e.enter("lineEnding"),e.consume(h),e.exit("lineEnding"),c):(e.enter("chunkString",{contentType:"string"}),f(h))}function f(h){return h===null||h===91||h===93||P(h)||a++>999?(e.exit("chunkString"),c(h)):(e.consume(h),s||(s=!D(h)),h===92?p:f)}function p(h){return h===91||h===92||h===93?(e.consume(h),a++,f):f(h)}}function qt(e,n,t,r,i,l){let o;return a;function a(p){return p===34||p===39||p===40?(e.enter(r),e.enter(i),e.consume(p),e.exit(i),o=p===40?41:p,s):t(p)}function s(p){return p===o?(e.enter(i),e.consume(p),e.exit(i),e.exit(r),n):(e.enter(l),u(p))}function u(p){return p===o?(e.exit(l),s(o)):p===null?t(p):P(p)?(e.enter("lineEnding"),e.consume(p),e.exit("lineEnding"),V(e,u,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),c(p))}function c(p){return p===o||p===null||P(p)?(e.exit("chunkString"),u(p)):(e.consume(p),p===92?f:c)}function f(p){return p===o||p===92?(e.consume(p),c):c(p)}}function Me(e,n){let t;return r;function r(i){return P(i)?(e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),t=!0,r):D(i)?V(e,r,t?"linePrefix":"lineSuffix")(i):n(i)}}const Ii={name:"definition",tokenize:vi},Ai={partial:!0,tokenize:Ti};function vi(e,n,t){const r=this;let i;return l;function l(h){return e.enter("definition"),o(h)}function o(h){return $t.call(r,e,a,t,"definitionLabel","definitionLabelMarker","definitionLabelString")(h)}function a(h){return i=ve(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)),h===58?(e.enter("definitionMarker"),e.consume(h),e.exit("definitionMarker"),s):t(h)}function s(h){return J(h)?Me(e,u)(h):u(h)}function u(h){return Ut(e,c,t,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(h)}function c(h){return e.attempt(Ai,f,f)(h)}function f(h){return D(h)?V(e,p,"whitespace")(h):p(h)}function p(h){return h===null||P(h)?(e.exit("definition"),r.parser.defined.push(i),n(h)):t(h)}}function Ti(e,n,t){return r;function r(a){return J(a)?Me(e,i)(a):t(a)}function i(a){return qt(e,l,t,"definitionTitle","definitionTitleMarker","definitionTitleString")(a)}function l(a){return D(a)?V(e,o,"whitespace")(a):o(a)}function o(a){return a===null||P(a)?n(a):t(a)}}const Pi={name:"hardBreakEscape",tokenize:Li};function Li(e,n,t){return r;function r(l){return e.enter("hardBreakEscape"),e.consume(l),i}function i(l){return P(l)?(e.exit("hardBreakEscape"),n(l)):t(l)}}const zi={name:"headingAtx",resolve:_i,tokenize:Fi};function _i(e,n){let t=e.length-2,r=3,i,l;return e[r][1].type==="whitespace"&&(r+=2),t-2>r&&e[t][1].type==="whitespace"&&(t-=2),e[t][1].type==="atxHeadingSequence"&&(r===t-1||t-4>r&&e[t-2][1].type==="whitespace")&&(t-=r+1===t?2:4),t>r&&(i={type:"atxHeadingText",start:e[r][1].start,end:e[t][1].end},l={type:"chunkText",start:e[r][1].start,end:e[t][1].end,contentType:"text"},se(e,r,t-r+1,[["enter",i,n],["enter",l,n],["exit",l,n],["exit",i,n]])),e}function Fi(e,n,t){let r=0;return i;function i(c){return e.enter("atxHeading"),l(c)}function l(c){return e.enter("atxHeadingSequence"),o(c)}function o(c){return c===35&&r++<6?(e.consume(c),o):c===null||J(c)?(e.exit("atxHeadingSequence"),a(c)):t(c)}function a(c){return c===35?(e.enter("atxHeadingSequence"),s(c)):c===null||P(c)?(e.exit("atxHeading"),n(c)):D(c)?V(e,a,"whitespace")(c):(e.enter("atxHeadingText"),u(c))}function s(c){return c===35?(e.consume(c),s):(e.exit("atxHeadingSequence"),a(c))}function u(c){return c===null||c===35||J(c)?(e.exit("atxHeadingText"),a(c)):(e.consume(c),u)}}const Ri=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],rt=["pre","script","style","textarea"],Di={concrete:!0,name:"htmlFlow",resolveTo:Mi,tokenize:Ni},Oi={partial:!0,tokenize:Hi},Bi={partial:!0,tokenize:ji};function Mi(e){let n=e.length;for(;n--&&!(e[n][0]==="enter"&&e[n][1].type==="htmlFlow"););return n>1&&e[n-2][1].type==="linePrefix"&&(e[n][1].start=e[n-2][1].start,e[n+1][1].start=e[n-2][1].start,e.splice(n-2,2)),e}function Ni(e,n,t){const r=this;let i,l,o,a,s;return u;function u(m){return c(m)}function c(m){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(m),f}function f(m){return m===33?(e.consume(m),p):m===47?(e.consume(m),l=!0,S):m===63?(e.consume(m),i=3,r.interrupt?n:d):ue(m)?(e.consume(m),o=String.fromCharCode(m),I):t(m)}function p(m){return m===45?(e.consume(m),i=2,h):m===91?(e.consume(m),i=5,a=0,b):ue(m)?(e.consume(m),i=4,r.interrupt?n:d):t(m)}function h(m){return m===45?(e.consume(m),r.interrupt?n:d):t(m)}function b(m){const le="CDATA[";return m===le.charCodeAt(a++)?(e.consume(m),a===le.length?r.interrupt?n:A:b):t(m)}function S(m){return ue(m)?(e.consume(m),o=String.fromCharCode(m),I):t(m)}function I(m){if(m===null||m===47||m===62||J(m)){const le=m===47,xe=o.toLowerCase();return!le&&!l&&rt.includes(xe)?(i=1,r.interrupt?n(m):A(m)):Ri.includes(o.toLowerCase())?(i=6,le?(e.consume(m),x):r.interrupt?n(m):A(m)):(i=7,r.interrupt&&!r.parser.lazy[r.now().line]?t(m):l?L(m):E(m))}return m===45||ne(m)?(e.consume(m),o+=String.fromCharCode(m),I):t(m)}function x(m){return m===62?(e.consume(m),r.interrupt?n:A):t(m)}function L(m){return D(m)?(e.consume(m),L):B(m)}function E(m){return m===47?(e.consume(m),B):m===58||m===95||ue(m)?(e.consume(m),N):D(m)?(e.consume(m),E):B(m)}function N(m){return m===45||m===46||m===58||m===95||ne(m)?(e.consume(m),N):H(m)}function H(m){return m===61?(e.consume(m),y):D(m)?(e.consume(m),H):E(m)}function y(m){return m===null||m===60||m===61||m===62||m===96?t(m):m===34||m===39?(e.consume(m),s=m,R):D(m)?(e.consume(m),y):U(m)}function R(m){return m===s?(e.consume(m),s=null,O):m===null||P(m)?t(m):(e.consume(m),R)}function U(m){return m===null||m===34||m===39||m===47||m===60||m===61||m===62||m===96||J(m)?H(m):(e.consume(m),U)}function O(m){return m===47||m===62||D(m)?E(m):t(m)}function B(m){return m===62?(e.consume(m),v):t(m)}function v(m){return m===null||P(m)?A(m):D(m)?(e.consume(m),v):t(m)}function A(m){return m===45&&i===2?(e.consume(m),M):m===60&&i===1?(e.consume(m),Y):m===62&&i===4?(e.consume(m),ie):m===63&&i===3?(e.consume(m),d):m===93&&i===5?(e.consume(m),ce):P(m)&&(i===6||i===7)?(e.exit("htmlFlowData"),e.check(Oi,fe,$)(m)):m===null||P(m)?(e.exit("htmlFlowData"),$(m)):(e.consume(m),A)}function $(m){return e.check(Bi,T,fe)(m)}function T(m){return e.enter("lineEnding"),e.consume(m),e.exit("lineEnding"),C}function C(m){return m===null||P(m)?$(m):(e.enter("htmlFlowData"),A(m))}function M(m){return m===45?(e.consume(m),d):A(m)}function Y(m){return m===47?(e.consume(m),o="",re):A(m)}function re(m){if(m===62){const le=o.toLowerCase();return rt.includes(le)?(e.consume(m),ie):A(m)}return ue(m)&&o.length<8?(e.consume(m),o+=String.fromCharCode(m),re):A(m)}function ce(m){return m===93?(e.consume(m),d):A(m)}function d(m){return m===62?(e.consume(m),ie):m===45&&i===2?(e.consume(m),d):A(m)}function ie(m){return m===null||P(m)?(e.exit("htmlFlowData"),fe(m)):(e.consume(m),ie)}function fe(m){return e.exit("htmlFlow"),n(m)}}function ji(e,n,t){const r=this;return i;function i(o){return P(o)?(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),l):t(o)}function l(o){return r.parser.lazy[r.now().line]?t(o):n(o)}}function Hi(e,n,t){return r;function r(i){return e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),e.attempt(Ze,n,t)}}const Ui={name:"htmlText",tokenize:$i};function $i(e,n,t){const r=this;let i,l,o;return a;function a(d){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(d),s}function s(d){return d===33?(e.consume(d),u):d===47?(e.consume(d),H):d===63?(e.consume(d),E):ue(d)?(e.consume(d),U):t(d)}function u(d){return d===45?(e.consume(d),c):d===91?(e.consume(d),l=0,b):ue(d)?(e.consume(d),L):t(d)}function c(d){return d===45?(e.consume(d),h):t(d)}function f(d){return d===null?t(d):d===45?(e.consume(d),p):P(d)?(o=f,Y(d)):(e.consume(d),f)}function p(d){return d===45?(e.consume(d),h):f(d)}function h(d){return d===62?M(d):d===45?p(d):f(d)}function b(d){const ie="CDATA[";return d===ie.charCodeAt(l++)?(e.consume(d),l===ie.length?S:b):t(d)}function S(d){return d===null?t(d):d===93?(e.consume(d),I):P(d)?(o=S,Y(d)):(e.consume(d),S)}function I(d){return d===93?(e.consume(d),x):S(d)}function x(d){return d===62?M(d):d===93?(e.consume(d),x):S(d)}function L(d){return d===null||d===62?M(d):P(d)?(o=L,Y(d)):(e.consume(d),L)}function E(d){return d===null?t(d):d===63?(e.consume(d),N):P(d)?(o=E,Y(d)):(e.consume(d),E)}function N(d){return d===62?M(d):E(d)}function H(d){return ue(d)?(e.consume(d),y):t(d)}function y(d){return d===45||ne(d)?(e.consume(d),y):R(d)}function R(d){return P(d)?(o=R,Y(d)):D(d)?(e.consume(d),R):M(d)}function U(d){return d===45||ne(d)?(e.consume(d),U):d===47||d===62||J(d)?O(d):t(d)}function O(d){return d===47?(e.consume(d),M):d===58||d===95||ue(d)?(e.consume(d),B):P(d)?(o=O,Y(d)):D(d)?(e.consume(d),O):M(d)}function B(d){return d===45||d===46||d===58||d===95||ne(d)?(e.consume(d),B):v(d)}function v(d){return d===61?(e.consume(d),A):P(d)?(o=v,Y(d)):D(d)?(e.consume(d),v):O(d)}function A(d){return d===null||d===60||d===61||d===62||d===96?t(d):d===34||d===39?(e.consume(d),i=d,$):P(d)?(o=A,Y(d)):D(d)?(e.consume(d),A):(e.consume(d),T)}function $(d){return d===i?(e.consume(d),i=void 0,C):d===null?t(d):P(d)?(o=$,Y(d)):(e.consume(d),$)}function T(d){return d===null||d===34||d===39||d===60||d===61||d===96?t(d):d===47||d===62||J(d)?O(d):(e.consume(d),T)}function C(d){return d===47||d===62||J(d)?O(d):t(d)}function M(d){return d===62?(e.consume(d),e.exit("htmlTextData"),e.exit("htmlText"),n):t(d)}function Y(d){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(d),e.exit("lineEnding"),re}function re(d){return D(d)?V(e,ce,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(d):ce(d)}function ce(d){return e.enter("htmlTextData"),o(d)}}const Ln={name:"labelEnd",resolveAll:Yi,resolveTo:Qi,tokenize:Xi},qi={tokenize:Gi},Vi={tokenize:Ji},Wi={tokenize:Ki};function Yi(e){let n=-1;const t=[];for(;++n<e.length;){const r=e[n][1];if(t.push(e[n]),r.type==="labelImage"||r.type==="labelLink"||r.type==="labelEnd"){const i=r.type==="labelImage"?4:2;r.type="data",n+=i}}return e.length!==t.length&&se(e,0,e.length,t),e}function Qi(e,n){let t=e.length,r=0,i,l,o,a;for(;t--;)if(i=e[t][1],l){if(i.type==="link"||i.type==="labelLink"&&i._inactive)break;e[t][0]==="enter"&&i.type==="labelLink"&&(i._inactive=!0)}else if(o){if(e[t][0]==="enter"&&(i.type==="labelImage"||i.type==="labelLink")&&!i._balanced&&(l=t,i.type!=="labelLink")){r=2;break}}else i.type==="labelEnd"&&(o=t);const s={type:e[l][1].type==="labelLink"?"link":"image",start:{...e[l][1].start},end:{...e[e.length-1][1].end}},u={type:"label",start:{...e[l][1].start},end:{...e[o][1].end}},c={type:"labelText",start:{...e[l+r+2][1].end},end:{...e[o-2][1].start}};return a=[["enter",s,n],["enter",u,n]],a=te(a,e.slice(l+1,l+r+3)),a=te(a,[["enter",c,n]]),a=te(a,Pn(n.parser.constructs.insideSpan.null,e.slice(l+r+4,o-3),n)),a=te(a,[["exit",c,n],e[o-2],e[o-1],["exit",u,n]]),a=te(a,e.slice(o+1)),a=te(a,[["exit",s,n]]),se(e,l,e.length,a),e}function Xi(e,n,t){const r=this;let i=r.events.length,l,o;for(;i--;)if((r.events[i][1].type==="labelImage"||r.events[i][1].type==="labelLink")&&!r.events[i][1]._balanced){l=r.events[i][1];break}return a;function a(p){return l?l._inactive?f(p):(o=r.parser.defined.includes(ve(r.sliceSerialize({start:l.end,end:r.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(p),e.exit("labelMarker"),e.exit("labelEnd"),s):t(p)}function s(p){return p===40?e.attempt(qi,c,o?c:f)(p):p===91?e.attempt(Vi,c,o?u:f)(p):o?c(p):f(p)}function u(p){return e.attempt(Wi,c,f)(p)}function c(p){return n(p)}function f(p){return l._balanced=!0,t(p)}}function Gi(e,n,t){return r;function r(f){return e.enter("resource"),e.enter("resourceMarker"),e.consume(f),e.exit("resourceMarker"),i}function i(f){return J(f)?Me(e,l)(f):l(f)}function l(f){return f===41?c(f):Ut(e,o,a,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(f)}function o(f){return J(f)?Me(e,s)(f):c(f)}function a(f){return t(f)}function s(f){return f===34||f===39||f===40?qt(e,u,t,"resourceTitle","resourceTitleMarker","resourceTitleString")(f):c(f)}function u(f){return J(f)?Me(e,c)(f):c(f)}function c(f){return f===41?(e.enter("resourceMarker"),e.consume(f),e.exit("resourceMarker"),e.exit("resource"),n):t(f)}}function Ji(e,n,t){const r=this;return i;function i(a){return $t.call(r,e,l,o,"reference","referenceMarker","referenceString")(a)}function l(a){return r.parser.defined.includes(ve(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)))?n(a):t(a)}function o(a){return t(a)}}function Ki(e,n,t){return r;function r(l){return e.enter("reference"),e.enter("referenceMarker"),e.consume(l),e.exit("referenceMarker"),i}function i(l){return l===93?(e.enter("referenceMarker"),e.consume(l),e.exit("referenceMarker"),e.exit("reference"),n):t(l)}}const Zi={name:"labelStartImage",resolveAll:Ln.resolveAll,tokenize:el};function el(e,n,t){const r=this;return i;function i(a){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(a),e.exit("labelImageMarker"),l}function l(a){return a===91?(e.enter("labelMarker"),e.consume(a),e.exit("labelMarker"),e.exit("labelImage"),o):t(a)}function o(a){return a===94&&"_hiddenFootnoteSupport"in r.parser.constructs?t(a):n(a)}}const nl={name:"labelStartLink",resolveAll:Ln.resolveAll,tokenize:tl};function tl(e,n,t){const r=this;return i;function i(o){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(o),e.exit("labelMarker"),e.exit("labelLink"),l}function l(o){return o===94&&"_hiddenFootnoteSupport"in r.parser.constructs?t(o):n(o)}}const rn={name:"lineEnding",tokenize:rl};function rl(e,n){return t;function t(r){return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),V(e,n,"linePrefix")}}const Qe={name:"thematicBreak",tokenize:il};function il(e,n,t){let r=0,i;return l;function l(u){return e.enter("thematicBreak"),o(u)}function o(u){return i=u,a(u)}function a(u){return u===i?(e.enter("thematicBreakSequence"),s(u)):r>=3&&(u===null||P(u))?(e.exit("thematicBreak"),n(u)):t(u)}function s(u){return u===i?(e.consume(u),r++,s):(e.exit("thematicBreakSequence"),D(u)?V(e,a,"whitespace")(u):a(u))}}const G={continuation:{tokenize:ul},exit:cl,name:"list",tokenize:al},ll={partial:!0,tokenize:fl},ol={partial:!0,tokenize:sl};function al(e,n,t){const r=this,i=r.events[r.events.length-1];let l=i&&i[1].type==="linePrefix"?i[2].sliceSerialize(i[1],!0).length:0,o=0;return a;function a(h){const b=r.containerState.type||(h===42||h===43||h===45?"listUnordered":"listOrdered");if(b==="listUnordered"?!r.containerState.marker||h===r.containerState.marker:gn(h)){if(r.containerState.type||(r.containerState.type=b,e.enter(b,{_container:!0})),b==="listUnordered")return e.enter("listItemPrefix"),h===42||h===45?e.check(Qe,t,u)(h):u(h);if(!r.interrupt||h===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),s(h)}return t(h)}function s(h){return gn(h)&&++o<10?(e.consume(h),s):(!r.interrupt||o<2)&&(r.containerState.marker?h===r.containerState.marker:h===41||h===46)?(e.exit("listItemValue"),u(h)):t(h)}function u(h){return e.enter("listItemMarker"),e.consume(h),e.exit("listItemMarker"),r.containerState.marker=r.containerState.marker||h,e.check(Ze,r.interrupt?t:c,e.attempt(ll,p,f))}function c(h){return r.containerState.initialBlankLine=!0,l++,p(h)}function f(h){return D(h)?(e.enter("listItemPrefixWhitespace"),e.consume(h),e.exit("listItemPrefixWhitespace"),p):t(h)}function p(h){return r.containerState.size=l+r.sliceSerialize(e.exit("listItemPrefix"),!0).length,n(h)}}function ul(e,n,t){const r=this;return r.containerState._closeFlow=void 0,e.check(Ze,i,l);function i(a){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,V(e,n,"listItemIndent",r.containerState.size+1)(a)}function l(a){return r.containerState.furtherBlankLines||!D(a)?(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,o(a)):(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,e.attempt(ol,n,o)(a))}function o(a){return r.containerState._closeFlow=!0,r.interrupt=void 0,V(e,e.attempt(G,n,t),"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(a)}}function sl(e,n,t){const r=this;return V(e,i,"listItemIndent",r.containerState.size+1);function i(l){const o=r.events[r.events.length-1];return o&&o[1].type==="listItemIndent"&&o[2].sliceSerialize(o[1],!0).length===r.containerState.size?n(l):t(l)}}function cl(e){e.exit(this.containerState.type)}function fl(e,n,t){const r=this;return V(e,i,"listItemPrefixWhitespace",r.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function i(l){const o=r.events[r.events.length-1];return!D(l)&&o&&o[1].type==="listItemPrefixWhitespace"?n(l):t(l)}}const it={name:"setextUnderline",resolveTo:hl,tokenize:pl};function hl(e,n){let t=e.length,r,i,l;for(;t--;)if(e[t][0]==="enter"){if(e[t][1].type==="content"){r=t;break}e[t][1].type==="paragraph"&&(i=t)}else e[t][1].type==="content"&&e.splice(t,1),!l&&e[t][1].type==="definition"&&(l=t);const o={type:"setextHeading",start:{...e[r][1].start},end:{...e[e.length-1][1].end}};return e[i][1].type="setextHeadingText",l?(e.splice(i,0,["enter",o,n]),e.splice(l+1,0,["exit",e[r][1],n]),e[r][1].end={...e[l][1].end}):e[r][1]=o,e.push(["exit",o,n]),e}function pl(e,n,t){const r=this;let i;return l;function l(u){let c=r.events.length,f;for(;c--;)if(r.events[c][1].type!=="lineEnding"&&r.events[c][1].type!=="linePrefix"&&r.events[c][1].type!=="content"){f=r.events[c][1].type==="paragraph";break}return!r.parser.lazy[r.now().line]&&(r.interrupt||f)?(e.enter("setextHeadingLine"),i=u,o(u)):t(u)}function o(u){return e.enter("setextHeadingLineSequence"),a(u)}function a(u){return u===i?(e.consume(u),a):(e.exit("setextHeadingLineSequence"),D(u)?V(e,s,"lineSuffix")(u):s(u))}function s(u){return u===null||P(u)?(e.exit("setextHeadingLine"),n(u)):t(u)}}const dl={tokenize:ml};function ml(e){const n=this,t=e.attempt(Ze,r,e.attempt(this.parser.constructs.flowInitial,i,V(e,e.attempt(this.parser.constructs.flow,i,e.attempt(bi,i)),"linePrefix")));return t;function r(l){if(l===null){e.consume(l);return}return e.enter("lineEndingBlank"),e.consume(l),e.exit("lineEndingBlank"),n.currentConstruct=void 0,t}function i(l){if(l===null){e.consume(l);return}return e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),n.currentConstruct=void 0,t}}const gl={resolveAll:Wt()},yl=Vt("string"),xl=Vt("text");function Vt(e){return{resolveAll:Wt(e==="text"?kl:void 0),tokenize:n};function n(t){const r=this,i=this.parser.constructs[e],l=t.attempt(i,o,a);return o;function o(c){return u(c)?l(c):a(c)}function a(c){if(c===null){t.consume(c);return}return t.enter("data"),t.consume(c),s}function s(c){return u(c)?(t.exit("data"),l(c)):(t.consume(c),s)}function u(c){if(c===null)return!0;const f=i[c];let p=-1;if(f)for(;++p<f.length;){const h=f[p];if(!h.previous||h.previous.call(r,r.previous))return!0}return!1}}}function Wt(e){return n;function n(t,r){let i=-1,l;for(;++i<=t.length;)l===void 0?t[i]&&t[i][1].type==="data"&&(l=i,i++):(!t[i]||t[i][1].type!=="data")&&(i!==l+2&&(t[l][1].end=t[i-1][1].end,t.splice(l+2,i-l-2),i=l+2),l=void 0);return e?e(t,r):t}}function kl(e,n){let t=0;for(;++t<=e.length;)if((t===e.length||e[t][1].type==="lineEnding")&&e[t-1][1].type==="data"){const r=e[t-1][1],i=n.sliceStream(r);let l=i.length,o=-1,a=0,s;for(;l--;){const u=i[l];if(typeof u=="string"){for(o=u.length;u.charCodeAt(o-1)===32;)a++,o--;if(o)break;o=-1}else if(u===-2)s=!0,a++;else if(u!==-1){l++;break}}if(n._contentTypeTextTrailing&&t===e.length&&(a=0),a){const u={type:t===e.length||s||a<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:l?o:r.start._bufferIndex+o,_index:r.start._index+l,line:r.end.line,column:r.end.column-a,offset:r.end.offset-a},end:{...r.end}};r.end={...u.start},r.start.offset===r.end.offset?Object.assign(r,u):(e.splice(t,0,["enter",u,n],["exit",u,n]),t+=2)}t++}return e}const bl={42:G,43:G,45:G,48:G,49:G,50:G,51:G,52:G,53:G,54:G,55:G,56:G,57:G,62:Mt},wl={91:Ii},Sl={[-2]:tn,[-1]:tn,32:tn},Cl={35:zi,42:Qe,45:[it,Qe],60:Di,61:it,95:Qe,96:tt,126:tt},El={38:jt,92:Nt},Il={[-5]:rn,[-4]:rn,[-3]:rn,33:Zi,38:jt,42:yn,60:[ni,Ui],91:nl,92:[Pi,Nt],93:Ln,95:yn,96:di},Al={null:[yn,gl]},vl={null:[42,95]},Tl={null:[]},Pl=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:vl,contentInitial:wl,disable:Tl,document:bl,flow:Cl,flowInitial:Sl,insideSpan:Al,string:El,text:Il},Symbol.toStringTag,{value:"Module"}));function Ll(e,n,t){let r={_bufferIndex:-1,_index:0,line:t&&t.line||1,column:t&&t.column||1,offset:t&&t.offset||0};const i={},l=[];let o=[],a=[];const s={attempt:R(H),check:R(y),consume:L,enter:E,exit:N,interrupt:R(y,{interrupt:!0})},u={code:null,containerState:{},defineSkip:S,events:[],now:b,parser:e,previous:null,sliceSerialize:p,sliceStream:h,write:f};let c=n.tokenize.call(u,s);return n.resolveAll&&l.push(n),u;function f(v){return o=te(o,v),I(),o[o.length-1]!==null?[]:(U(n,0),u.events=Pn(l,u.events,u),u.events)}function p(v,A){return _l(h(v),A)}function h(v){return zl(o,v)}function b(){const{_bufferIndex:v,_index:A,line:$,column:T,offset:C}=r;return{_bufferIndex:v,_index:A,line:$,column:T,offset:C}}function S(v){i[v.line]=v.column,B()}function I(){let v;for(;r._index<o.length;){const A=o[r._index];if(typeof A=="string")for(v=r._index,r._bufferIndex<0&&(r._bufferIndex=0);r._index===v&&r._bufferIndex<A.length;)x(A.charCodeAt(r._bufferIndex));else x(A)}}function x(v){c=c(v)}function L(v){P(v)?(r.line++,r.column=1,r.offset+=v===-3?2:1,B()):v!==-1&&(r.column++,r.offset++),r._bufferIndex<0?r._index++:(r._bufferIndex++,r._bufferIndex===o[r._index].length&&(r._bufferIndex=-1,r._index++)),u.previous=v}function E(v,A){const $=A||{};return $.type=v,$.start=b(),u.events.push(["enter",$,u]),a.push($),$}function N(v){const A=a.pop();return A.end=b(),u.events.push(["exit",A,u]),A}function H(v,A){U(v,A.from)}function y(v,A){A.restore()}function R(v,A){return $;function $(T,C,M){let Y,re,ce,d;return Array.isArray(T)?fe(T):"tokenize"in T?fe([T]):ie(T);function ie(Q){return ze;function ze(de){const Se=de!==null&&Q[de],Ce=de!==null&&Q.null,qe=[...Array.isArray(Se)?Se:Se?[Se]:[],...Array.isArray(Ce)?Ce:Ce?[Ce]:[]];return fe(qe)(de)}}function fe(Q){return Y=Q,re=0,Q.length===0?M:m(Q[re])}function m(Q){return ze;function ze(de){return d=O(),ce=Q,Q.partial||(u.currentConstruct=Q),Q.name&&u.parser.constructs.disable.null.includes(Q.name)?xe():Q.tokenize.call(A?Object.assign(Object.create(u),A):u,s,le,xe)(de)}}function le(Q){return v(ce,d),C}function xe(Q){return d.restore(),++re<Y.length?m(Y[re]):M}}}function U(v,A){v.resolveAll&&!l.includes(v)&&l.push(v),v.resolve&&se(u.events,A,u.events.length-A,v.resolve(u.events.slice(A),u)),v.resolveTo&&(u.events=v.resolveTo(u.events,u))}function O(){const v=b(),A=u.previous,$=u.currentConstruct,T=u.events.length,C=Array.from(a);return{from:T,restore:M};function M(){r=v,u.previous=A,u.currentConstruct=$,u.events.length=T,a=C,B()}}function B(){r.line in i&&r.column<2&&(r.column=i[r.line],r.offset+=i[r.line]-1)}}function zl(e,n){const t=n.start._index,r=n.start._bufferIndex,i=n.end._index,l=n.end._bufferIndex;let o;if(t===i)o=[e[t].slice(r,l)];else{if(o=e.slice(t,i),r>-1){const a=o[0];typeof a=="string"?o[0]=a.slice(r):o.shift()}l>0&&o.push(e[i].slice(0,l))}return o}function _l(e,n){let t=-1;const r=[];let i;for(;++t<e.length;){const l=e[t];let o;if(typeof l=="string")o=l;else switch(l){case-5:{o="\r";break}case-4:{o=`
|
|
2
2
|
`;break}case-3:{o=`\r
|
|
3
3
|
`;break}case-2:{o=n?" ":" ";break}case-1:{if(!n&&i)continue;o=" ";break}default:o=String.fromCharCode(l)}i=l===-2,r.push(o)}return r.join("")}function Fl(e){const r={constructs:jr([Pl,...(e||{}).extensions||[]]),content:i(Qr),defined:[],document:i(Gr),flow:i(dl),lazy:{},string:i(yl),text:i(xl)};return r;function i(l){return o;function o(a){return Ll(r,l,a)}}}function Rl(e){for(;!Ht(e););return e}const lt=/[\0\t\n\r]/g;function Dl(){let e=1,n="",t=!0,r;return i;function i(l,o,a){const s=[];let u,c,f,p,h;for(l=n+(typeof l=="string"?l.toString():new TextDecoder(o||void 0).decode(l)),f=0,n="",t&&(l.charCodeAt(0)===65279&&f++,t=void 0);f<l.length;){if(lt.lastIndex=f,u=lt.exec(l),p=u&&u.index!==void 0?u.index:l.length,h=l.charCodeAt(p),!u){n=l.slice(f);break}if(h===10&&f===p&&r)s.push(-3),r=void 0;else switch(r&&(s.push(-5),r=void 0),f<p&&(s.push(l.slice(f,p)),e+=p-f),h){case 0:{s.push(65533),e++;break}case 9:{for(c=Math.ceil(e/4)*4,s.push(-2);e++<c;)s.push(-1);break}case 10:{s.push(-4),e=1;break}default:r=!0,e=1}f=p+1}return a&&(r&&s.push(-5),n&&s.push(n),s.push(null)),s}}const Ol=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function Yt(e){return e.replace(Ol,Bl)}function Bl(e,n,t){if(n)return n;if(t.charCodeAt(0)===35){const i=t.charCodeAt(1),l=i===120||i===88;return Bt(t.slice(l?2:1),l?16:10)}return Tn(t)||e}function Ne(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?ot(e.position):"start"in e||"end"in e?ot(e):"line"in e||"column"in e?xn(e):""}function xn(e){return at(e&&e.line)+":"+at(e&&e.column)}function ot(e){return xn(e&&e.start)+"-"+xn(e&&e.end)}function at(e){return e&&typeof e=="number"?e:1}const Qt={}.hasOwnProperty;function Ml(e,n,t){return n&&typeof n=="object"&&(t=n,n=void 0),Nl(t)(Rl(Fl(t).document().write(Dl()(e,n,!0))))}function Nl(e){const n={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:l(Qn),autolinkProtocol:O,autolinkEmail:O,atxHeading:l(Vn),blockQuote:l(Ce),characterEscape:O,characterReference:O,codeFenced:l(qe),codeFencedFenceInfo:o,codeFencedFenceMeta:o,codeIndented:l(qe,o),codeText:l(Pr,o),codeTextData:O,data:O,codeFlowValue:O,definition:l(Lr),definitionDestinationString:o,definitionLabelString:o,definitionTitleString:o,emphasis:l(zr),hardBreakEscape:l(Wn),hardBreakTrailing:l(Wn),htmlFlow:l(Yn,o),htmlFlowData:O,htmlText:l(Yn,o),htmlTextData:O,image:l(_r),label:o,link:l(Qn),listItem:l(Fr),listItemValue:p,listOrdered:l(Xn,f),listUnordered:l(Xn),paragraph:l(Rr),reference:m,referenceString:o,resourceDestinationString:o,resourceTitleString:o,setextHeading:l(Vn),strong:l(Dr),thematicBreak:l(Br)},exit:{atxHeading:s(),atxHeadingSequence:H,autolink:s(),autolinkEmail:Se,autolinkProtocol:de,blockQuote:s(),characterEscapeValue:B,characterReferenceMarkerHexadecimal:xe,characterReferenceMarkerNumeric:xe,characterReferenceValue:Q,characterReference:ze,codeFenced:s(I),codeFencedFence:S,codeFencedFenceInfo:h,codeFencedFenceMeta:b,codeFlowValue:B,codeIndented:s(x),codeText:s(C),codeTextData:B,data:B,definition:s(),definitionDestinationString:N,definitionLabelString:L,definitionTitleString:E,emphasis:s(),hardBreakEscape:s(A),hardBreakTrailing:s(A),htmlFlow:s($),htmlFlowData:B,htmlText:s(T),htmlTextData:B,image:s(Y),label:ce,labelText:re,lineEnding:v,link:s(M),listItem:s(),listOrdered:s(),listUnordered:s(),paragraph:s(),referenceString:le,resourceDestinationString:d,resourceTitleString:ie,resource:fe,setextHeading:s(U),setextHeadingLineSequence:R,setextHeadingText:y,strong:s(),thematicBreak:s()}};Xt(n,(e||{}).mdastExtensions||[]);const t={};return r;function r(g){let w={type:"root",children:[]};const z={stack:[w],tokenStack:[],config:n,enter:a,exit:u,buffer:o,resume:c,data:t},F=[];let j=-1;for(;++j<g.length;)if(g[j][1].type==="listOrdered"||g[j][1].type==="listUnordered")if(g[j][0]==="enter")F.push(j);else{const oe=F.pop();j=i(g,oe,j)}for(j=-1;++j<g.length;){const oe=n[g[j][0]];Qt.call(oe,g[j][1].type)&&oe[g[j][1].type].call(Object.assign({sliceSerialize:g[j][2].sliceSerialize},z),g[j][1])}if(z.tokenStack.length>0){const oe=z.tokenStack[z.tokenStack.length-1];(oe[1]||ut).call(z,void 0,oe[0])}for(w.position={start:me(g.length>0?g[0][1].start:{line:1,column:1,offset:0}),end:me(g.length>0?g[g.length-2][1].end:{line:1,column:1,offset:0})},j=-1;++j<n.transforms.length;)w=n.transforms[j](w)||w;return w}function i(g,w,z){let F=w-1,j=-1,oe=!1,ke,he,_e,Fe;for(;++F<=z;){const Z=g[F];switch(Z[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{Z[0]==="enter"?j++:j--,Fe=void 0;break}case"lineEndingBlank":{Z[0]==="enter"&&(ke&&!Fe&&!j&&!_e&&(_e=F),Fe=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:Fe=void 0}if(!j&&Z[0]==="enter"&&Z[1].type==="listItemPrefix"||j===-1&&Z[0]==="exit"&&(Z[1].type==="listUnordered"||Z[1].type==="listOrdered")){if(ke){let Ee=F;for(he=void 0;Ee--;){const pe=g[Ee];if(pe[1].type==="lineEnding"||pe[1].type==="lineEndingBlank"){if(pe[0]==="exit")continue;he&&(g[he][1].type="lineEndingBlank",oe=!0),pe[1].type="lineEnding",he=Ee}else if(!(pe[1].type==="linePrefix"||pe[1].type==="blockQuotePrefix"||pe[1].type==="blockQuotePrefixWhitespace"||pe[1].type==="blockQuoteMarker"||pe[1].type==="listItemIndent"))break}_e&&(!he||_e<he)&&(ke._spread=!0),ke.end=Object.assign({},he?g[he][1].start:Z[1].end),g.splice(he||F,0,["exit",ke,Z[2]]),F++,z++}if(Z[1].type==="listItemPrefix"){const Ee={type:"listItem",_spread:!1,start:Object.assign({},Z[1].start),end:void 0};ke=Ee,g.splice(F,0,["enter",Ee,Z[2]]),F++,z++,_e=void 0,Fe=!0}}}return g[w][1]._spread=oe,z}function l(g,w){return z;function z(F){a.call(this,g(F),F),w&&w.call(this,F)}}function o(){this.stack.push({type:"fragment",children:[]})}function a(g,w,z){this.stack[this.stack.length-1].children.push(g),this.stack.push(g),this.tokenStack.push([w,z||void 0]),g.position={start:me(w.start),end:void 0}}function s(g){return w;function w(z){g&&g.call(this,z),u.call(this,z)}}function u(g,w){const z=this.stack.pop(),F=this.tokenStack.pop();if(F)F[0].type!==g.type&&(w?w.call(this,g,F[0]):(F[1]||ut).call(this,g,F[0]));else throw new Error("Cannot close `"+g.type+"` ("+Ne({start:g.start,end:g.end})+"): it’s not open");z.position.end=me(g.end)}function c(){return vn(this.stack.pop())}function f(){this.data.expectingFirstListItemValue=!0}function p(g){if(this.data.expectingFirstListItemValue){const w=this.stack[this.stack.length-2];w.start=Number.parseInt(this.sliceSerialize(g),10),this.data.expectingFirstListItemValue=void 0}}function h(){const g=this.resume(),w=this.stack[this.stack.length-1];w.lang=g}function b(){const g=this.resume(),w=this.stack[this.stack.length-1];w.meta=g}function S(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function I(){const g=this.resume(),w=this.stack[this.stack.length-1];w.value=g.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function x(){const g=this.resume(),w=this.stack[this.stack.length-1];w.value=g.replace(/(\r?\n|\r)$/g,"")}function L(g){const w=this.resume(),z=this.stack[this.stack.length-1];z.label=w,z.identifier=ve(this.sliceSerialize(g)).toLowerCase()}function E(){const g=this.resume(),w=this.stack[this.stack.length-1];w.title=g}function N(){const g=this.resume(),w=this.stack[this.stack.length-1];w.url=g}function H(g){const w=this.stack[this.stack.length-1];if(!w.depth){const z=this.sliceSerialize(g).length;w.depth=z}}function y(){this.data.setextHeadingSlurpLineEnding=!0}function R(g){const w=this.stack[this.stack.length-1];w.depth=this.sliceSerialize(g).codePointAt(0)===61?1:2}function U(){this.data.setextHeadingSlurpLineEnding=void 0}function O(g){const z=this.stack[this.stack.length-1].children;let F=z[z.length-1];(!F||F.type!=="text")&&(F=Or(),F.position={start:me(g.start),end:void 0},z.push(F)),this.stack.push(F)}function B(g){const w=this.stack.pop();w.value+=this.sliceSerialize(g),w.position.end=me(g.end)}function v(g){const w=this.stack[this.stack.length-1];if(this.data.atHardBreak){const z=w.children[w.children.length-1];z.position.end=me(g.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&n.canContainEols.includes(w.type)&&(O.call(this,g),B.call(this,g))}function A(){this.data.atHardBreak=!0}function $(){const g=this.resume(),w=this.stack[this.stack.length-1];w.value=g}function T(){const g=this.resume(),w=this.stack[this.stack.length-1];w.value=g}function C(){const g=this.resume(),w=this.stack[this.stack.length-1];w.value=g}function M(){const g=this.stack[this.stack.length-1];if(this.data.inReference){const w=this.data.referenceType||"shortcut";g.type+="Reference",g.referenceType=w,delete g.url,delete g.title}else delete g.identifier,delete g.label;this.data.referenceType=void 0}function Y(){const g=this.stack[this.stack.length-1];if(this.data.inReference){const w=this.data.referenceType||"shortcut";g.type+="Reference",g.referenceType=w,delete g.url,delete g.title}else delete g.identifier,delete g.label;this.data.referenceType=void 0}function re(g){const w=this.sliceSerialize(g),z=this.stack[this.stack.length-2];z.label=Yt(w),z.identifier=ve(w).toLowerCase()}function ce(){const g=this.stack[this.stack.length-1],w=this.resume(),z=this.stack[this.stack.length-1];if(this.data.inReference=!0,z.type==="link"){const F=g.children;z.children=F}else z.alt=w}function d(){const g=this.resume(),w=this.stack[this.stack.length-1];w.url=g}function ie(){const g=this.resume(),w=this.stack[this.stack.length-1];w.title=g}function fe(){this.data.inReference=void 0}function m(){this.data.referenceType="collapsed"}function le(g){const w=this.resume(),z=this.stack[this.stack.length-1];z.label=w,z.identifier=ve(this.sliceSerialize(g)).toLowerCase(),this.data.referenceType="full"}function xe(g){this.data.characterReferenceType=g.type}function Q(g){const w=this.sliceSerialize(g),z=this.data.characterReferenceType;let F;z?(F=Bt(w,z==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):F=Tn(w);const j=this.stack[this.stack.length-1];j.value+=F}function ze(g){const w=this.stack.pop();w.position.end=me(g.end)}function de(g){B.call(this,g);const w=this.stack[this.stack.length-1];w.url=this.sliceSerialize(g)}function Se(g){B.call(this,g);const w=this.stack[this.stack.length-1];w.url="mailto:"+this.sliceSerialize(g)}function Ce(){return{type:"blockquote",children:[]}}function qe(){return{type:"code",lang:null,meta:null,value:""}}function Pr(){return{type:"inlineCode",value:""}}function Lr(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function zr(){return{type:"emphasis",children:[]}}function Vn(){return{type:"heading",depth:0,children:[]}}function Wn(){return{type:"break"}}function Yn(){return{type:"html",value:""}}function _r(){return{type:"image",title:null,url:"",alt:null}}function Qn(){return{type:"link",title:null,url:"",children:[]}}function Xn(g){return{type:"list",ordered:g.type==="listOrdered",start:null,spread:g._spread,children:[]}}function Fr(g){return{type:"listItem",spread:g._spread,checked:null,children:[]}}function Rr(){return{type:"paragraph",children:[]}}function Dr(){return{type:"strong",children:[]}}function Or(){return{type:"text",value:""}}function Br(){return{type:"thematicBreak"}}}function me(e){return{line:e.line,column:e.column,offset:e.offset}}function Xt(e,n){let t=-1;for(;++t<n.length;){const r=n[t];Array.isArray(r)?Xt(e,r):jl(e,r)}}function jl(e,n){let t;for(t in n)if(Qt.call(n,t))switch(t){case"canContainEols":{const r=n[t];r&&e[t].push(...r);break}case"transforms":{const r=n[t];r&&e[t].push(...r);break}case"enter":case"exit":{const r=n[t];r&&Object.assign(e[t],r);break}}}function ut(e,n){throw e?new Error("Cannot close `"+e.type+"` ("+Ne({start:e.start,end:e.end})+"): a different token (`"+n.type+"`, "+Ne({start:n.start,end:n.end})+") is open"):new Error("Cannot close document, a token (`"+n.type+"`, "+Ne({start:n.start,end:n.end})+") is still open")}function Hl(e){const n=this;n.parser=t;function t(r){return Ml(r,{...n.data("settings"),...e,extensions:n.data("micromarkExtensions")||[],mdastExtensions:n.data("fromMarkdownExtensions")||[]})}}const st={}.hasOwnProperty;function Ul(e,n){const t=n||{};function r(i,...l){let o=r.invalid;const a=r.handlers;if(i&&st.call(i,e)){const s=String(i[e]);o=st.call(a,s)?a[s]:r.unknown}if(o)return o.call(this,i,...l)}return r.handlers=t.handlers||{},r.invalid=t.invalid,r.unknown=t.unknown,r}const $l={}.hasOwnProperty;function Gt(e,n){let t=-1,r;if(n.extensions)for(;++t<n.extensions.length;)Gt(e,n.extensions[t]);for(r in n)if($l.call(n,r))switch(r){case"extensions":break;case"unsafe":{ct(e[r],n[r]);break}case"join":{ct(e[r],n[r]);break}case"handlers":{ql(e[r],n[r]);break}default:e.options[r]=n[r]}return e}function ct(e,n){n&&e.push(...n)}function ql(e,n){n&&Object.assign(e,n)}function Vl(e,n,t,r){const i=t.enter("blockquote"),l=t.createTracker(r);l.move("> "),l.shift(2);const o=t.indentLines(t.containerFlow(e,l.current()),Wl);return i(),o}function Wl(e,n,t){return">"+(t?"":" ")+e}function Jt(e,n){return ft(e,n.inConstruct,!0)&&!ft(e,n.notInConstruct,!1)}function ft(e,n,t){if(typeof n=="string"&&(n=[n]),!n||n.length===0)return t;let r=-1;for(;++r<n.length;)if(e.includes(n[r]))return!0;return!1}function ht(e,n,t,r){let i=-1;for(;++i<t.unsafe.length;)if(t.unsafe[i].character===`
|
|
4
4
|
`&&Jt(t.stack,t.unsafe[i]))return/[ \t]/.test(r.before)?"":" ";return`\\
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{j as n,r as e}from"./index-
|
|
1
|
+
import{j as n,r as e}from"./index-Po1UZSgL.js";var o=e.createContext(void 0),a=r=>{const{dir:t,children:i}=r;return n.jsx(o.Provider,{value:t,children:i})};function c(r){const t=e.useContext(o);return r||t||"ltr"}export{a as D,c as u};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{u as o,L as t}from"./client-DU5zOesq.js";import"./index-CkzHlXhF.js";import"./index-Po1UZSgL.js";import"./Icon-uimJ5tpe.js";import"./collapsible-Bqzit3JO.js";import"./index-DOC-_zsC.js";import"./index-C3-lsDRv.js";import"./link-item-CAVxr8-m.js";import"./i18n-BU0Gqrrh.js";import"./index-zSjxh5o9.js";import"./search-AdRfsIll.js";import"./merge-refs-B7SuKGTI.js";import"./index-DhgWLnXf.js";const B={LayoutBody:t,useDocsLayout:o};export{B as export_430db65dc2ed};
|