This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
`;break}case-2:{d=a?" ":" ";break}case-1:{if(!a&&c)continue;d=" ";break}default:d=String.fromCharCode(l)}c=l===-2,s.push(d)}returns.join("")}constfe={name:"thematicBreak",tokenize:Ce};functionCe(n,a,i){lets=0,c;returnl;functionl(E){returnn.enter("thematicBreak"),d(E)}functiond(E){returnc=E,p(E)}functionp(E){returnE===c?(n.enter("thematicBreakSequence"),I(E)):s>=3&&(E===null||Z(E))?(n.exit("thematicBreak"),a(E)):i(E)}functionI(E){returnE===c?(n.consume(E),s++,I):(n.exit("thematicBreakSequence"),ln(E)?vn(n,p,"whitespace")(E):p(E))}}constZn={name:"list",tokenize:Ft,continuation:{tokenize:Ot},exit:yt},Tt={tokenize:Pt,partial:!0},xt={tokenize:gt,partial:!0};functionFt(n,a,i){consts=this,c=s.events[s.events.length-1];letl=c&&c[1].type==="linePrefix"?c[2].sliceSerialize(c[1],!0).length:0,d=0;returnp;functionp(x){constIn=s.containerState.type||(x===42||x===43||x===45?"listUnordered":"listOrdered");if(In==="listUnordered"?!s.containerState.marker||x===s.containerState.marker:gn(x)){if(s.containerState.type||(s.containerState.type=In,n.enter(In,{_container:!0})),In==="listUnordered")returnn.enter("listItemPrefix"),x===42||x===45?n.check(fe,i,E)(x):E(x);if(!s.interrupt||x===49)returnn.enter("listItemPrefix"),n.enter("listItemValue"),I(x)}returni(x)}functionI(x){returngn(x)&&++d<10?(n.consume(x),I):(!s.interrupt||d<2)&&(s.containerState.marker?x===s.containerState.marker:x===41||x===46)?(n.exit("listItemValue"),E(x)):i(x)}functionE(x){returnn.enter("listItemMarker"),n.consume(x),n.exit("listItemMarker"),s.containerState.marker=s.containerState.marker||x,n.check(Ee,s.interrupt?i:b,n.attempt(Tt,k,j))}functionb(x){returns.containerState.initialBlankLine=!0,l++,k(x)}functionj(x){returnln(x)?(n.enter("listItemPrefixWhitespace"),n.consume(x),n.exit("listItemPrefixWhitespace"),k):i(x)}functionk(x){returns.containerState.size=l+s.sliceSerialize(n.exit("listItemPrefix"),!0).length,a(x)}}functionOt(n,a,i){consts=this;returns.containerState._closeFlow=void0,n.check(Ee,c,l);functionc(p){returns.containerState.furtherBlankLines=s.containerState.furtherBlankLines||s.containerState.initialBlankLine,vn(n,a,"listItemIndent",s.containerState.size+1)(p)}functionl(p){returns.containerState.furtherBlankLines||!ln(p)?(s.containerState.furtherBlankLines=void0,s.containerState.initialBlankLine=void0,d(p)):(s.containerState.furtherBlankLines=void0,s.containerState.initialBlankLine=void0,n.attempt(xt,a,d)(p))}functiond(p){returns.containerState._closeFlow=!0,s.interrupt=void0,vn(n,n.attempt(Zn,a,i),"linePrefix",s.parser.constructs.disable.null.includes("codeIndented")?void0:4)(p)}}functiongt(n,a,i){consts=this;returnvn(n,c,"listItemIndent",s.containerState.size+1);functionc(l){constd=s.events[s.events.length-1];returnd&&d[1].type==="listItemIndent"&&d[2].sliceSerialize(d[1],!0).length===s.containerState.size?a(l):i(l)}}functionyt(n){n.exit(this.containerState.type)}functionPt(n,a,i){consts=this;returnvn(n,c,"listItemPrefixWhitespace",s.parser.constructs.disable.null.includes("codeIndented")?void0:5);functionc(l){constd=s.events[s.events.length-1];return!ln(l)&&d&&d[1].type==="listItemPrefixWhitespace"?a(l):i(l)}}constZe={name:"blockQuote",tokenize:Et,continuation:{tokenize:_t},exit:Lt};functionEt(n,a,i){consts=this;returnc;functionc(d){if(d===62){constp=s.containerState;returnp.open||(n.enter("blockQuote",{_container:!0}),p.open=!0),n.enter("blockQuotePrefix"),n.enter("blockQuoteMarker"),n.consume(d),n.exit("blockQuoteMarker"),l}returni(d)}functionl(d){returnln(d)?(n.enter("blockQuotePrefixWhitespace"),n.consume(d),n.exit("blockQuotePrefixWhitespace"),n.exit("blockQuotePrefix"),a):(n.exit("blockQuotePrefix"),a(d))}}function_t(n,a,i){consts=this;returnc;functionc(d){returnln(d)?vn(n,l,"linePrefix",s.parser.constructs.disable.null.includes("codeIndented")?void0:4)(d):l(d)}functionl(d){returnn.attempt(Ze,a,i)(d)}}functionLt(n){n.exit("blockQuote")}functionAt(n,a,i,s,c,l,d,p,I){constE=I||Number.POSITIVE_INFINITY;letb=0;returnj;functionj($){return$===60?(n.enter(s),n.enter(c),n.enter(l),n.consume($),n.exit(l),k):$===null||$===32||$===41||sn($)?i($):(n.enter(s),n.enter(d),n.enter(p),n.enter("chunkString",{contentType:"string"}),Sn($))}functionk($){return$===62?(n.enter(l),n.consume($),n.exit(l),n.exit(c),n.exit(s),a):(n.enter(p),n.enter("chunkString",{contentType:"string"}),x($))}functionx($){return$===62?(n.exit("chunkString"),n.exit(p),k($)):$===null||$===60||Z($)?i($):(n.consume($),$===92?In:x)}functionIn($){return$===60||$===62||$===92?(n.consume($),x):x($)}functionSn($){return!b&&($===null||$===41||Mn($))?(n.exit("chunkString"),n.exit(p),n.exit(d),n.exit(s),a($)):b<E&&$===40?(n.consume($),b++,Sn):$===41?(n.consume($),b--,Sn):$===null||$===32||$===40||sn($)?i($):(n.consume($),$===92?Kn:Sn)}functionKn($){return$===40||$===41||$===92?(n.consume($),Sn):Sn($)}}functionst(n,a,i,s,c,l){constd=this;letp=0,I;returnE;functionE(x){returnn.enter(s),n.enter(c),n.consume(x),n.exit(c),n.enter(l),b}functionb(x){returnp>999||x===null||x===91||x===93&&!I||x===94&&!p&&"_hiddenFootnoteSupport"ind.parser.constructs?i(x):x===93?(n.exit(l),n.enter(c),n.consume(x),n.exit(c),n.exit(s),a):Z(x)?(n.enter("lineEnding"),n.consume(x),n.exit("lineEnding"),b):(n.enter("chunkString",{contentType:"string"}),j(x))}functionj(x){returnx===null||x===91||x===93||Z(x)||p++>999?(n.exit("chunkString"),b(x)):(n.consume(x),I||(I=!ln(x)),x===92?k:j)}functionk(x){returnx===91||x===92||x===93?(n.consume(x),p++,j):j(x)}}functionXe(n,a,i,s,c,l){letd;returnp;functionp(k){returnk===34||k===39||k===40?(n.enter(s),n.enter(c),n.consume(k),n.exit(c),d=k===40?41:k,I):i(k)}functionI(k){returnk===d?(n.enter(c),n.consume(k),n.exit(c),n.exit(s),a):(n.enter(l),E(k))}functionE(k){returnk===d?(n.exit(l),I(d)):k===null?i(k):Z(k)?(n.enter("lineEnding"),n.consume(k),n.exit("lineEnding"),vn(n,E,"linePrefix")):(n.enter("chunkString",{contentType:"string"}),b(k))}functionb(k){returnk===d||k===null||Z(k)?(n.exit("chunkString"),E(k)):(n.consume(k),k===92?j:b)}functionj(k){returnk===d||k===92?(n.consume(k),b):b(k)}}functionIe(n,a){leti;returns;functions(c){returnZ(c)?(n.enter("lineEnding"),n.consume(c),n.exit("lineEnding"),i=!0,s):ln(c)?vn(n,s,i?"linePrefix":"lineSuffix")(c):a(c)}}functionSe(n){returnn.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}constJe={name:"definition",tokenize:Mt},wt={tokenize:Dt,partial:!0};functionMt(n,a,i){consts=this;letc;returnl;functionl(x){returnn.enter("definition"),d(x)}functiond(x){returnst.call(s,n,p,i,"definitionLabel","definitionLabelMarker","definitionLabelString")(x)}functionp(x){returnc=Se(s.sliceSerialize(s.events[s.events.length-1][1]).slice(1,-1)),x===58?(n.enter("definitionMarker"),n.consume(x),n.exit("definitionMarker"),I):i(x)}functionI(x){returnMn(x)?Ie(n,E)(x):E(x)}functionE(x){returnAt(n,b,i,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(x)}functionb(x){returnn.attempt(wt,j,j)(x)}functionj(x){returnln(x)?vn(n,k,"whitespace")(x):k(x)}functionk(x){returnx===null||Z(x)?(n.exit("definition"),s.parser.defined.push(c),a(x)):i(x)}}functionDt(n,a,i){returns;functions(p){returnMn(p)?Ie(n,c)(p):i(p)}functionc(p){returnXe(n,l,i,"definitionTitle","definitionTitleMarker","definitionTitleString")(p)}functionl(p){returnln(p)?vn(n,d,"whitespace")(p):d(p)}functiond(p){returnp===null||Z(p)?a(p):i(p)}}constvt={name:"codeIndented",tokenize:Bt},bt={tokenize:Rt,partial:!0};functionBt(n,a,i){consts=this;returnc;functionc(E){returnn.enter("codeIndented"),vn(n,l,"linePrefix",5)(E)}functionl(E){constb=s.events[s.events.length-1];returnb&&b[1].type==="linePrefix"&&b[2].sliceSerialize(b[1],!0).length>=4?d(E):i(E)}functiond(E){returnE===null?I(E):Z(E)?n.attempt(bt,d,I)(E):(n.enter("codeFlowValue"),p(E))}functionp(E){returnE===null||Z(E)?(n.exit("codeFlowValue"),d(E)):(n.consume(E),p)}functionI(E){returnn.exit("codeIndented"),a(E)}}functionRt(n,a,i){consts=this;returnc;functionc(d){returns.parser.lazy[s.now().line]?i(d):Z(d)?(n.enter("lineEnding"),n.consume(d),n.exit("lineEnding"),c):vn(n,l,"linePrefix",5)(d)}functionl(d){constp=s.events[s.events.length-1];returnp&&p[1].type==="linePrefix"&&p[2].sliceSerialize(p[1],!0).length>=4?a(d):Z(d)?c(d):i(d)}}constzt={name:"headingAtx",tokenize:U,resolve:O};functionO(n,a){leti=n.length-2,s=3,c,l;returnn[s][1].type==="whitespace"&&(s+=2),i-2>s&&n[i][1].type==="whitespace"&&(i-=2),n[i][1].type==="atxHeadingSequence"&&(s===i-1||i-4>s&&n[i-2][1].type==="whitespace")&&(i-=s+1===i?2:4),i>s&&(c={type:"atxHeadingText",start:n[s][1].start,end:n[i][1].end},l={type:"chunkText",start:n[s][1].start,end:n[i][1].end,contentType:"text"},N(n,s,i-s+1,[["enter",c,a],["enter",l,a],["exit",l,a],["exit",c,a]])),n}functionU(n,a,i){lets=0;returnc;functionc(b){returnn.enter("atxHeading"),l(b)}functionl(b){returnn.enter("atxHeadingSequence"),d(b)}functiond(b){returnb===35&&s++<6?(n.consume(b),d):b===null||Mn(b)?(n.exit("atxHeadingSequence"),p(b)):i(b)}functionp(b){returnb===35?(n.enter("atxHeadingSequence"),I(b)):b===null||Z(b)?(n.exit("atxHeading"),a(b)):ln(b)?vn(n,p,"whitespace")(b):(n.enter("atxHeadingText"),E(b))}functionI(b){returnb===35?(n.consume(b),I):(n.exit("atxHeadingSequence"),p(b))}functionE(b){returnb===null||b===35||Mn(b)?(n.exit("atxHeadingText"),p(b)):(n.consume(b),E)}}constun={name:"setextUnderline",tokenize:jn,resolveTo:fn};functionfn(n,a){leti=n.length,s,c,l;for(;i--;)if(n[i][0]==="enter"){if(n[i][1].type==="content"){s=i;break}n[i][1].type==="paragraph"&&(c=i)}elsen[i][1].type==="content"&&n.splice(i,1),!l&&n[i][1].type==="definition"&&(l=i);constd={type:"setextHeading",start:Object.assign({},n[c][1].start),end:Object.assign({},n[n.length-1][1].end)};returnn[c][1].type="setextHeadingText",l?(n.splice(c,0,["enter",d,a]),n.splice(l+1,0,["exit",n[s][1],a]),n[s][1].end=Object.assign({},n[l][1].end)):n[s][1]=d,n.push(["exit",d,a]),n}functionjn(n,a,i){consts=this;letc;returnl;functionl(E){letb=s.events.length,j;for(;b--;)if(s.events[b][1].type!=="lineEnding"&&s.events[b][1].type!=="linePrefix"&&s.events[b][1].type!=="content"){j=s.events[b][1].type==="paragraph";break}return!s.parser.lazy[s.now().line]&&(s.interrupt||j)?(n.enter("setextHeadingLine"),c=E,d(E)):i(E)}functiond(E){returnn.enter("setextHeadingLineSequence"),p(E)}functionp(E){returnE===c?(n.consume(E),p):(n.exit("setextHeadingLineSequence"),ln(E)?vn(n,I,"lineSuffix")(E):I(E))}functionI(E){returnE===null||Z(E)?(n.exit("setextHeadingLine"),a(E)):i(E)}}const_n=["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"],Gn=["pre","script","style","textarea"],Tn={name:"htmlFlow",tokenize:ie,resolveTo:oe,concrete:!0},Un={tokenize:je,partial:!0},Wn={tokenize:Vn,partial:!0};functionoe(n){leta=n.length;for(;a--&&!(n[a][0]==="enter"&&n[a][1].type==="htmlFlow"););returna>1&&n[a-2][1].type==="linePrefix"&&(n[a][1].start=n[a-2][1].start,n[a+1][1].start=n[a-2][1].start,n.splice(a-2,2)),n}functionie(n,a,i){consts=this;letc,l,d,p,I;returnE;functionE(v){returnb(v)}functionb(v){returnn.enter("htmlFlow"),n.enter("htmlFlowData"),n.consume(v),j}functionj(v){returnv===33?(n.consume(v),k):v===47?(n.consume(v),l=!0,Sn):v===63?(n.consume(v),c=3,s.interrupt?a:A):mn(v)?(n.consume(v),d=String.fromCharCode(v),Kn):i(v)}functionk(v){returnv===45?(n.consume(v),c=2,x):v===91?(n.consume(v),c=5,p=0,In):mn(v)?(n.consume(v),c=4,s.interrupt?a:A):i(v)}functionx(v){returnv===45?(n.consume(v),s.interrupt?a:A):i(v)}functionIn(v){constbe="CDATA[";returnv===be.charCodeAt(p++)?(n.consume(v),p===be.length?s.interrupt?a:wn:In):i(v)}functionSn(v){returnmn(v)?(n.consume(v),d=String.fromCharCode(v),Kn):i(v)}functionKn(v){if(v===null||v===47||v===62||Mn(v)){constbe=v===47,St=d.toLowerCase();return!be&&!l&&Gn.includes(St)?(c=1,s.interrupt?a(v):wn(v)):_n.includes(d.toLowerCase())?(c=6,be?(n.consume(v),$):s.interrupt?a(v):wn(v)):(c=7,s.interrupt&&!s.parser.lazy[s.now().line]?i(v):l?Xn(v):en(v))}returnv===45||Bn(v)?(n.consume(v),d+=String.fromCharCode(v),Kn):i(v)}function$(v){returnv===62?(n.consume(v),s.interrupt?a:wn):i(v)}functionXn(v){returnln(v)?(n.consume(v),Xn):me(v)}functionen(v){returnv===47?(n.consume(v),me):v===58||v===95||mn(v)?(n.consume(v),Yn):ln(v)?(n.consume(v),en):me(v)}functionYn(v){returnv===45||v===46||v===58||v===95||Bn(v)?(n.consume(v),Yn):Qn(v)}functionQn(v){returnv===61?(n.consume(v),B):ln(v)?(n.consume(v),Qn):en(v)}functionB(v){returnv===null||v===60||v===61||v===62||v===96?i(v):v===34||v===39?(n.consume(v),I=v,zn):ln(v)?(n.consume(v),B):ee(v)}functionzn(v){returnv===I?(n.consume(v),I=null,qn):v===null||Z(v)?i(v):(n.consume(v),zn)}functionee(v){returnv===null||v===34||v===39||v===47||v===60||v===61||v===62||v===96||Mn(v)?Qn(v):(n.consume(v),ee)}functionqn(v){returnv===47||v===62||ln(v)?en(v):i(v)}functionme(v){returnv===62?(n.consume(v),Hn):i(v)}functionHn(v){returnv===null||Z(v)?wn(v):ln(v)?(n.consume(v),Hn):i(v)}functionwn(v){returnv===45&&c===2?(n.consume(v),Jn):v===60&&c===1?(n.consume(v),se):v===62&&c===4?(n.consume(v),Oe):v===63&&c===3?(n.consume(v),A):v===93&&c===5?(n.consume(v),Ge):Z(v)&&(c===6||c===7)?(n.exit("htmlFlowData"),n.check(Un,Ve,tn)(v)):v===null||Z(v)?(n.exit("htmlFlowData"),tn(v)):(n.consume(v),wn)}functiontn(v){returnn.check(Wn,xn,Ve)(v)}functionxn(v){returnn.enter("lineEnding"),n.consume(v),n.exit("lineEnding"),bn}functionbn(v){returnv===null||Z(v)?tn(v):(n.enter("htmlFlowData"),wn(v))}functionJn(v){returnv===45?(n.consume(v),A):wn(v)}functionse(v){returnv===47?(n.consume(v),d="",Re):wn(v)}functionRe(v){if(v===62){constbe=d.toLowerCase();returnGn.includes(be)?(n.consume(v),Oe):wn(v)}returnmn(v)&&d.length<8?(n.consume(v),d+=String.fromCharCode(v),Re):wn(v)}functionGe(v){returnv===93?(n.consume(v),A):wn(v)}functionA(v){returnv===62?(n.consume(v),Oe):v===45&&c===2?(n.consume(v),A):wn(v)}functionOe(v){returnv===null||Z(v)?(n.exit("htmlFlowData"),Ve(v)):(n.consume(v),Oe)}functionVe(v){returnn.exit("htmlFlow"),a(v)}}functionVn(n,a,i){consts=this;returnc;functionc(d){returnZ(d)?(n.enter("lineEnding"),n.consume(d),n.exit("lineEnding"),l):i(d)}functionl(d){returns.parser.lazy[s.now().line]?i(d):a(d)}}functionje(n,a,i){returns;functions(c){returnn.enter("lineEnding"),n.consume(c),n.exit("lineEnding"),n.attempt(Ee,a,i)}}constle={tokenize:De,partial:!0},pe={name:"codeFenced",tokenize:Te,concrete:!0};functionTe(n,a,i){consts=this,c={tokenize:Qn,partial:!0};letl=0,d=0,p;returnI;functionI(B){returnE(B)}functionE(B){constzn=s.events[s.events.length-1];returnl=zn&&zn[1].type==="linePrefix"?zn[2].sliceSerialize(zn[1],!0).length:0,p=B,n.enter("codeFenced"),n.enter("codeFencedFence"),n.enter("codeFencedFenceSequence"),b(B)}functionb(B){returnB===p?(d++,n.consume(B),b):d<3?i(B):(n.exit("codeFencedFenceSequence"),ln(B)?vn(n,j,"whitespace")(B):j(B))}functionj(B){returnB===null||Z(B)?(n.exit("codeFencedFence"),s.interrupt?a(B):n.check(le,Sn,Yn)(B)):(n.enter("codeFencedFenceInfo"),n.enter("chunkString",{contentType:"string"}),k(B))}functionk(B){returnB===null||Z(B)?(n.exit("chunkString"),n.exit("codeFencedFenceInfo"),j(B)):ln(B)?(n.exit("chunkString"),n.exit("codeFencedFenceInfo"),vn(n,x,"whitespace")(B)):B===96&&B===p?i(B):(n.consume(B),k)}functionx(B){returnB===null||Z(B)?j(B):(n.enter("codeFencedFenceMeta"),n.enter("chunkString",{contentType:"string"}),In(B))}functionIn(B){returnB===null||Z(B)?(n.exit("chunkString"),n.exit("codeFencedFenceMeta"),j(B)):B===96&&B===p?i(B):(n.consume(B),In)}functionSn(B){returnn.attempt(c,Yn,Kn)(B)}functionKn(B){returnn.enter("lineEnding"),n.consume(B),n.exit("lineEnding"),$}function$(B){returnl>0&&ln(B)?vn(n,Xn,"linePrefix",l+1)(B):Xn(B)}functionXn(B){returnB===null||Z(B)?n.check(le,Sn,Yn)(B):(n.enter("codeFlowValue"),en(B))}functionen(B){returnB===null||Z(B)?(n.exit("codeFlowValue"),Xn(B)):(n.consume(B),en)}functionYn(B){returnn.exit("codeFenced"),a(B)}functionQn(B,zn,ee){letqn=0;returnme;functionme(bn){returnB.enter("lineEnding"),B.consume(bn),B.exit("lineEnding"),Hn}functionHn(bn){returnB.enter("codeFencedFence"),ln(bn)?vn(B,wn,"linePrefix",s.parser.constructs.disable.null.includes("codeIndented")?void0:4)(bn):wn(bn)}functionwn(bn){returnbn===p?(B.enter("codeFencedFenceSequence"),tn(bn)):ee(bn)}functiontn(bn){returnbn===p?(qn++,B.consume(bn),tn):qn>=d?(B.exit("codeFencedFenceSequence"),ln(bn)?vn(B,xn,"whitespace")(bn):xn(bn)):ee(bn)}functionxn(bn){returnbn===null||Z(bn)?(B.exit("codeFencedFence"),zn(bn)):ee(bn)}}}functionDe(n,a,i){consts=this;returnc;functionc(d){returnd===null?i(d):(n.enter("lineEnding"),n.consume(d),n.exit("lineEnding"),l)}functionl(d){returns.parser.lazy[s.now().line]?i(d):a(d)}}constFe=document.createElement("i");functionat(n){consta="&"+n+";";Fe.innerHTML=a;consti=Fe.textContent;returni.charCodeAt(i.length-1)===59&&n!=="semi"||i===a?!1:i}constBe={name:"characterReference",tokenize:ut};functionut(n,a,i){consts=this;letc=0,l,d;returnp;functionp(j){returnn.enter("characterReference"),n.enter("characterReferenceMarker"),n.consume(j),n.exit("characterReferenceMarker"),I}functionI(j){returnj===35?(n.enter("characterReferenceMarkerNumeric"),n.consume(j),n.exit("characterReferenceMarkerNumeric"),E):(n.enter("characterReferenceValue"),l=31,d=Bn,b(j))}functionE(j){returnj===88||j===120?(n.enter("characterReferenceMarkerHexadecimal"),n.consume(j),n.exit("characterReferenceMarkerHexadecimal"),n.enter("characterReferenceValue"),l=6,d=Rn,b):(n.enter("characterReferenceValue"),l=7,d=gn,b(j))}functionb(j){if(j===59&&c){constk=n.exit("characterReferenceValue");returnd===Bn&&!at(s.sliceSerialize(k))?i(j):(n.enter("characterReferenceMarker"),n.consume(j),n.exit("characterReferenceMarker"),n.exit("characterReference"),a)}returnd(j)&&c++<l?(n.consume(j),b):i(j)}}constYt={name:"characterEscape",tokenize:rr};functionrr(n,a,i){returns;functions(l){returnn.enter("characterEscape"),n.enter("escapeMarker"),n.consume(l),n.exit("escapeMarker"),c}functionc(l){returnxe(l)?(n.enter("characterEscapeValue"),n.consume(l),n.exit("characterEscapeValue"),n.exit("characterEscape"),a):i(l)}}constNt={name:"lineEnding",tokenize:ir};functionir(n,a){returni;functioni(s){returnn.enter("lineEnding"),n.consume(s),n.exit("lineEnding"),vn(n,a,"linePrefix")}}constUt={name:"labelEnd",tokenize:Cn,resolveTo:K,resolveAll:ar},sr={tokenize:de},Fn={tokenize:ot},kt={tokenize:Ct};functionar(n){leta=-1;for(;++a<n.length;){consti=n[a][1];(i.type==="labelImage"||i.type==="labelLink"||i.type==="labelEnd")&&(n.splice(a+1,i.type==="labelImage"?4:2),i.type="data",a++)}returnn}functionK(n,a){leti=n.length,s=0,c,l,d,p;for(;i--;)if(c=n[i][1],l){if(c.type==="link"||c.type==="labelLink"&&c._inactive)break;n[i][0]==="enter"&&c.type==="labelLink"&&(c._inactive=!0)}elseif(d){if(n[i][0]==="enter"&&(c.type==="labelImage"||c.type==="labelLink")&&!c._balanced&&(l=i,c.type!=="labelLink")){s=2;break}}elsec.type==="labelEnd"&&(d=i);constI={type:n[l][1].type==="labelLink"?"link":"image",start:Object.assign({},n[l][1].start),end:Object.assign({},n[n.length-1][1].end)},E={type:"label",start:Object.assign({},n[l][1].start),end:Object.assign({},n[d][1].end)},b={type:"labelText",start:Object.assign({},n[l+s+2][1].end),end:Object.assign({},n[d-2][1].start)};returnp=[["enter",I,a],["enter",E,a]],p=Y(p,n.slice(l+1,l+s+3)),p=Y(p,[["enter",b,a]]),p=Y(p,An(a.parser.constructs.insideSpan.null,n.slice(l+s+4,d-3),a)),p=Y(p,[["exit",b,a],n[d-2],n[d-1],["exit",E,a]]),p=Y(p,n.slice(d+1)),p=Y(p,[["exit",I,a]]),N(n,l,n.length,p),n}functionCn(n,a,i){consts=this;letc=s.events.length,l,d;for(;c--;)if((s.events[c][1].type==="labelImage"||s.events[c][1].type==="labelLink")&&!s.events[c][1]._balanced){l=s.events[c][1];break}returnp;functionp(k){returnl?l._inactive?j(k):(d=s.parser.defined.includes(Se(s.sliceSerialize({start:l.end,end:s.now()}))),n.enter("labelEnd"),n.enter("labelMarker"),n.consume(k),n.exit("labelMarker"),n.exit("labelEnd"),I):i(k)}functionI(k){returnk===40?n.attempt(sr,b,d?b:j)(k):k===91?n.attempt(Fn,b,d?E:j)(k):d?b(k):j(k)}functionE(k){returnn.attempt(kt,b,j)(k)}functionb(k){returna(k)}functionj(k){returnl._balanced=!0,i(k)}}functionde(n,a,i){returns;functions(j){returnn.enter("resource"),n.enter("resourceMarker"),n.consume(j),n.exit("resourceMarker"),c}functionc(j){returnMn(j)?Ie(n,l)(j):l(j)}functionl(j){returnj===41?b(j):At(n,d,p,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(j)}functiond(j){returnMn(j)?Ie(n,I)(j):b(j)}functionp(j){returni(j)}functionI(j){returnj===34||j===39||j===40?Xe(n,E,i,"resourceTitle","resourceTitleMarker","resourceTitleString")(j):b(j)}functionE(j){returnMn(j)?Ie(n,b)(j):b(j)}functionb(j){returnj===41?(n.enter("resourceMarker"),n.consume(j),n.exit("resourceMarker"),n.exit("resource"),a):i(j)}}functionot(n,a,i){consts=this;returnc;functionc(p){returnst.call(s,n,l,d,"reference","referenceMarker","referenceString")(p)}functionl(p){returns.parser.defined.includes(Se(s.sliceSerialize(s.events[s.events.length-1][1]).slice(1,-1)))?a(p):i(p)}functiond(p){returni(p)}}functionCt(n,a,i){returns;functions(l){returnn.enter("reference"),n.enter("referenceMarker"),n.consume(l),n.exit("referenceMarker"),c}functionc(l){returnl===93?(n.enter("referenceMarker"),n.consume(l),n.exit("referenceMarker"),n.exit("reference"),a):i(l)}}constUe={name:"labelStartImage",tokenize:he,resolveAll:Ut.resolveAll};functionhe(n,a,i){consts=this;returnc;functionc(p){returnn.enter("labelImage"),n.enter("labelImageMarker"),n.consume(p),n.exit("labelImageMarker"),l}functionl(p){returnp===91?(n.enter("labelMarker"),n.consume(p),n.exit("labelMarker"),n.exit("labelImage"),d):i(p)}functiond(p){returnp===94&&"_hiddenFootnoteSupport"ins.parser.constructs?i(p):a(p)}}functionlt(n){if(n===null||Mn(n)||te(n))return1;if(_e(n))return2}constdt={name:"attention",tokenize:Qt,resolveAll:ur};functionur(n,a){leti=-1,s,c,l,d,p,I,E,b;for(;++i<n.length;)if(n[i][0]==="enter"&&n[i][1].type==="attentionSequence"&&n[i][1]._close){for(s=i;s--;)if(n[s][0]==="exit"&&n[s][1].type==="attentionSequence"&&n[s][1]._open&&a.sliceSerialize(n[s][1]).charCodeAt(0)===a.sliceSerialize(n[i][1]).charCodeAt(0)){if((n[s][1]._close||n[i][1]._open)&&(n[i][1].end.offset-n[i][1].start.offset)%3&&!((n[s][1].end.offset-n[s][1].start.offset+n[i][1].end.offset-n[i][1].start.offset)%3))continue;I=n[s][1].end.offset-n[s][1].start.offset>1&&n[i][1].end.offset-n[i][1].start.offset>1?2:1;constj=Object.assign({},n[s][1].end),k=Object.assign({},n[i][1].start);qe(j,-I),qe(k,I),d={type:I>1?"strongSequence":"emphasisSequence",start:j,end:Object.assign({},n[s][1].end)},p={type:I>1?"strongSequence":"emphasisSequence",start:Object.assign({},n[i][1].start),end:k},l={type:I>1?"strongText":"emphasisText",start:Object.assign({},n[s][1].end),end:Object.assign({},n[i][1].start)},c={type:I>1?"strong":"emphasis",start:Object.assign({},d.start),end:Object.assign({},p.end)},n[s][1].end=Object.assign({},d.start),n[i][1].start=Object.assign({},p.end),E=[],n[s][1].end.offset-n[s][1].start.offset&&(E=Y(E,[["enter",n[s][1],a],["exit",n[s][1],a]])),E=Y(E,[["enter",c,a],["enter",d,a],["exit",d,a],["enter",l,a]]),E=Y(E,An(a.parser.constructs.insideSpan.null,n.slice(s+1,i),a)),E=Y(E,[["exit",l,a],["enter",p,a],["exit",p,a],["exit",c,a]]),n[i][1].end.offset-n[i][1].start.offset?(b=2,E=Y(E,[["enter",n[i][1],a],["exit",n[i][1],a]])):b=0,N(n,s-1,i-s+3,E),i=s+E.length-b-2;break}}for(i=-1;++i<n.length;)n[i][1].type==="attentionSequence"&&(n[i][1].type="data");returnn}functionQt(n,a){consti=this.parser.constructs.attentionMarkers.null,s=this.previous,c=lt(s);letl;returnd;functiond(I){returnl=I,n.enter("attentionSequence"),p(I)}functionp(I){if(I===l)returnn.consume(I),p;constE=n.exit("attentionSequence"),b=lt(I),j=!b||b===2&&c||i.includes(I),k=!c||c===2&&b||i.includes(s);returnE._open=!!(l===42?j:j&&(c||!k)),E._close=!!(l===42?k:k&&(b||!j)),a(I)}}functionqe(n,a){n.column+=a,n.offset+=a,n._bufferIndex+=a}const$t={name:"autolink",tokenize:Zt};functionZt(n,a,i){lets=0;returnc;functionc(x){returnn.enter("autolink"),n.enter("autolinkMarker"),n.consume(x),n.exit("autolinkMarker"),n.enter("autolinkProtocol"),l}functionl(x){returnmn(x)?(n.consume(x),d):E(x)}functiond(x){returnx===43||x===45||x===46||Bn(x)?(s=1,p(x)):E(x)}functionp(x){returnx===58?(n.consume(x),s=0,I):(x===43||x===45||x===46||Bn(x))&&s++<32?(n.consume(x),p):(s=0,E(x))}functionI(x){returnx===62?(n.exit("autolinkProtocol"),n.enter("autolinkMarker"),n.consume(x),n.exit("autolinkMarker"),n.exit("autolink"),a):x===null||x===32||x===60||sn(x)?i(x):(n.consume(x),I)}functionE(x){returnx===64?(n.consume(x),b):ve(x)?(n.consume(x),E):i(x)}functionb(x){returnBn(x)?j(x):i(x)}functionj(x){returnx===46?(n.consume(x),s=0,b):x===62?(n.exit("autolinkProtocol").type="autolinkEmail",n.enter("autolinkMarker"),n.consume(x),n.exit("autolinkMarker"),n.exit("autolink"),a):k(x)}functionk(x){if((x===45||Bn(x))&&s++<63){constIn=x===45?k:j;returnn.consume(x),In}returni(x)}}constWt={name:"htmlText",tokenize:It};functionIt(n,a,i){consts=this;letc,l,d;returnp;functionp(A){returnn.enter("htmlText"),n.enter("htmlTextData"),n.consume(A),I}functionI(A){returnA===33?(n.consume(A),E):A===47?(n.consume(A),Qn):A===63?(n.consume(A),en):mn(A)?(n.consume(A),ee):i(A)}functionE(A){returnA===45?(n.consume(A),b):A===91?(n.consume(A),l=0,In):mn(A)?(n.consume(A),Xn):i(A)}functionb(A){returnA===45?(n.consume(A),x):i(A)}functionj(A){returnA===null?i(A):A===45?(n.consume(A),k):Z(A)?(d=j,se(A)):(n.consume(A),j)}functionk(A){returnA===45?(n.consume(A),x):j(A)}functionx(A){returnA===62?Jn(A):A===45?k(A):j(A)}functionIn(A){constOe="CDATA[";returnA===Oe.charCodeAt(l++)?(n.consume(A),l===Oe.length?Sn:In):i(A)}functionSn(A){returnA===null?i(A):A===93?(n.consume(A),Kn):Z(A)?(d=Sn,se(A)):(n.consume(A),Sn)}functionKn(A){returnA===93?(n.consume(A),$):Sn(A)}function$(A){returnA===62?Jn(A):A===93?(n.consume(A),$):Sn(A)}functionXn(A){returnA===null||A===62?Jn(A):Z(A)?(d=Xn,se(A)):(n.consume(A),Xn)}functionen(A){returnA===null?i(A):A===63?(n.consume(A),Yn):Z(A)?(d=en,se(A)):(n.consume(A),en)}functionYn(A){returnA===62?Jn(A):en(A)}functionQn(A){returnmn(A)?(n.consume(A),B):i(A)}functionB(A){returnA===45||Bn(A)?(n.consume(A),B):zn(A)}functionzn(A){returnZ(A)?(d=zn,se(A)):ln(A)?(n.consume(A),zn):Jn(A)}functionee(A){returnA===45||Bn(A)?(n.consume(A),ee):A===47||A===62||Mn(A)?qn(A):i(A)}functionqn(A){returnA===47?(n.consume(A),Jn):A===58||A===95||mn(A)?(n.consume(A),me):Z(A)?(d=qn,se(A)):ln(A)?(n.consume(A),qn):Jn(A)}functionme(A){returnA===45||A===46||A===58||A===95||Bn(A)?(n.consume(A),me):Hn(A)}functionHn(A){returnA===61?(n.consume(A),wn):Z(A)?(d=Hn,se(A)):ln(A)?(n.consume(A),Hn):qn(A)}functionwn(A){returnA===null||A===60||A===61||A===62||A===96?i(A):A===34||A===39?(n.consume(A),c=A,tn):Z(A)?(d=wn,se(A)):ln(A)?(n.consume(A),wn):(n.consume(A),xn)}functiontn(A){returnA===c?(n.consume(A),c=void0,bn):A===null?i(A):Z(A)?(d=tn,se(A)):(n.consume(A),tn)}functionxn(A){returnA===null||A===34||A===39||A===60||A===61||A===96?i(A):A===47||A===62||Mn(A)?qn(A):(n.consume(A),xn)}functionbn(A){returnA===47||A===62||Mn(A)?qn(A):i(A)}functionJn(A){returnA===62?(n.consume(A),n.exit("htmlTextData"),n.exit("htmlText"),a):i(A)}functionse(A){returnn.exit("htmlTextData"),n.enter("lineEnding"),n.consume(A),n.exit("lineEnding"),Re}functionRe(A){returnln(A)?vn(n,Ge,"linePrefix",s.parser.constructs.disable.null.includes("codeIndented")?void0:4)(A):Ge(A)}functionGe(A){returnn.enter("htmlTextData"),d(A)}}constWe={name:"labelStartLink",tokenize:Ke,resolveAll:Ut.resolveAll};functionKe(n,a,i){consts=this;returnc;functionc(d){returnn.enter("labelLink"),n.enter("labelMarker"),n.consume(d),n.exit("labelMarker"),n.exit("labelLink"),l}functionl(d){returnd===94&&"_hiddenFootnoteSupport"ins.parser.constructs?i(d):a(d)}}constmr={name:"hardBreakEscape",tokenize:pr};functionpr(n,a,i){returns;functions(l){returnn.enter("hardBreakEscape"),n.consume(l),c}functionc(l){returnZ(l)?(n.exit("hardBreakEscape"),a(l)):i(l)}}constDr={name:"codeText",tokenize:Br,resolve:gr,previous:_r};functiongr(n){leta=n.length-4,i=3,s,c;if((n[i][1].type==="lineEnding"||n[i][1].type==="space")&&(n[a][1].type==="lineEnding"||n[a][1].type==="space")){for(s=i;++s<a;)if(n[s][1].type==="codeTextData"){n[i][1].type="codeTextPadding",n[a][1].type="codeTextPadding",i+=2,a-=2;break}}for(s=i-1,a++;++s<=a;)c===void0?s!==a&&n[s][1].type!=="lineEnding"&&(c=s):(s===a||n[s][1].type==="lineEnding")&&(n[c][1].type="codeTextData",s!==c+2&&(n[c][1].end=n[s-1][1].end,n.splice(c+2,s-c-2),a-=s-c-2,s=c+2),c=void0);returnn}function_r(n){returnn!==96||this.events[this.events.length-1][1].type==="characterEscape"}functionBr(n,a,i){consts=this;letc=0,l,d;returnp;functionp(k){returnn.enter("codeText"),n.enter("codeTextSequence"),I(k)}functionI(k){returnk===96?(n.consume(k),c++,I):(n.exit("codeTextSequence"),E(k))}functionE(k){returnk===null?i(k):k===32?(n.enter("space"),n.consume(k),n.exit("space"),E):k===96?(d=n.enter("codeTextSequence"),l=0,j(k)):Z(k)?(n.enter("lineEnding"),n.consume(k),n.exit("lineEnding"),E):(n.enter("codeTextData"),b(k))}functionb(k){returnk===null||k===32||k===96||Z(k)?(n.exit("codeTextData"),E(k)):(n.consume(k),b)}functionj(k){returnk===96?(n.consume(k),l++,j):l===c?(n.exit("codeTextSequence"),n.exit("codeText"),a(k)):(d.type="codeTextData",b(k))}}constRr={42:Zn,43:Zn,45:Zn,48:Zn,49:Zn,50:Zn,51:Zn,52:Zn,53:Zn,54:Zn,55:Zn,56:Zn,57:Zn,62:Ze},zr={91:Je},Ar={[-2]:vt,[-1]:vt,32:vt},Nr={35:zt,42:fe,45:[un,fe],60:Tn,61:un,95:fe,96:pe,126:pe},Ur={38:Be,92:Yt},Wr={[-5]:Nt,[-4]:Nt,[-3]:Nt,33:Ue,38:Be,42:dt,60:[$t,Wt],91:We,92:[mr,Yt],93:Ut,95:dt,96:Dr},Kr={null:[dt,dn]},Hr={null:[42,95]},Gr={null:[]};functionVr(n){consti=an([g,...(n||{}).extensions||[]]),s={defined:[],lazy:{},constructs:i,content:c(ue),document:c(ye),flow:c(Me),string:c(w),text:c(L)};returns;functionc(l){returnd;functiond(p){returnkn(s,l,p)}}}constvr=/[\0\t\n\r]/g;functionYr(){letn=1,a="",i=!0,s;returnc;functionc(l,d,p){constI=[];letE,b,j,k,x;for(l=a+l.toString(d),j=0,a="",i&&(l.charCodeAt(0)===65279&&j++,i=void0);j<l.length;){if(vr.lastIndex=j,E=vr.exec(l),k=E&&E.index!==void0?E.index:l.length,x=l.charCodeAt(k),!E){a=l.slice(j);break}if(x===10&&j===k&&s)I.push(-3),s=void0;elseswitch(s&&(I.push(-5),s=void0),j<k&&(I.push(l.slice(j,k)),n+=k-j),x){case0:{I.push(65533),n++;break}case9:{for(b=Math.ceil(n/4)*4,I.push(-2);n++<b;)I.push(-1);break}case10:{I.push(-4),n=1;break}default:s=!0,n=1}j=k+1}returnp&&(s&&I.push(-5),a&&I.push(a),I.push(null)),I}}functionXt(n){for(;!re(n););returnn}functionQr(n,a){consti=Number.parseInt(n,a);returni<9||i===11||i>13&&i<32||i>126&&i<160||i>55295&&i<57344||i>64975&&i<65008||(i&65535)===65535||(i&65535)===65534||i>1114111?"\uFFFD":String.fromCharCode(i)}constbr=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;functionxr(n){returnn.replace(br,$r)}function$r(n,a,i){if(a)returna;if(i.charCodeAt(0)===35){constc=i.charCodeAt(1),l=c===120||c===88;returnQr(i.slice(l?2:1),l?16:10)}returnat(i)||n}functionJt(n){return!n||typeofn!="object"?"":"position"inn||"type"inn?Zr(n.position):"start"inn||"end"inn?Zr(n):"line"inn||"column"inn?yr(n):""}functionyr(n){returnct(n&&n.line)+":"+ct(n&&n.column)}functionZr(n){returnyr(n&&n.start)+"-"+yr(n&&n.end)}functionct(n){returnn&&typeofn=="number"?n:1}constqt={}.hasOwnProperty,Er=function(n,a,i){returntypeofa!="string"&&(i=a,a=void0),wr(i)(Xt(Vr(i).document().write(Yr()(n,a,!0))))};functionwr(n){consta={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:p(Pr),autolinkProtocol:Hn,autolinkEmail:Hn,atxHeading:p(Tr),blockQuote:p(jt),characterEscape:Hn,characterReference:Hn,codeFenced:p(ht),codeFencedFenceInfo:I,codeFencedFenceMeta:I,codeIndented:p(ht,I),codeText:p(cr,I),codeTextData:Hn,data:Hn,codeFlowValue:Hn,definition:p(ai),definitionDestinationString:I,definitionLabelString:I,definitionTitleString:I,emphasis:p(ui),hardBreakEscape:p(Fr),hardBreakTrailing:p(Fr),htmlFlow:p(Or,I),htmlFlowData:Hn,htmlText:p(Or,I),htmlTextData:Hn,image:p(oi),label:I,link:p(Pr),listItem:p(Mr),listItemValue:In,listOrdered:p(Lr,x),listUnordered:p(Lr),paragraph:p(li),reference:St,referenceString:I,resourceDestinationString:I,resourceTitleString:I,setextHeading:p(Tr),strong:p(di),thematicBreak:p(fi)},exit:{atxHeading:b(),atxHeadingSequence:zn,autolink:b(),autolinkEmail:nt,autolinkProtocol:Ht,blockQuote:b(),characterEscapeValue:wn,characterReferenceMarkerHexadecimal:Kt,characterReferenceMarkerNumeric:Kt,characterReferenceValue:ae,codeFenced:b(Xn),codeFencedFence:$,codeFencedFenceInfo:Sn,codeFencedFenceMeta:Kn,codeFlowValue:wn,codeIndented:b(en),codeText:b(se),codeTextData:wn,data:wn,definition:b(),definitionDestinationString:B,definitionLabelString:Yn,definitionTitleString:Qn,emphasis:b(),hardBreakEscape:b(xn),hardBreakTrailing:b(xn),htmlFlow:b(bn),htmlFlowData:wn,htmlText:b(Jn),htmlTextData:wn,image:b(Ge),label:Oe,labelText:A,lineEnding:tn,link:b(Re),listItem:b(),listOrdered:b(),listUnordered:b(),paragraph:b(),referenceString:tr,resourceDestinationString:Ve,resourceTitleString:v,resource:be,setextHeading:b(me),setextHeadingLineSequence:qn,setextHeadingText:ee,strong:b(),thematicBreak:b()}};or(a,(n||{}).mdastExtensions||[]);consti={};returns;functions(T){letG={type:"root",children:[]};conston={stack:[G],tokenStack:[],config:a,enter:E,exit:j,buffer:I,resume:k,setData:l,getData:d},On=[];letDn=-1;for(;++Dn<T.length;)if(T[Dn][1].type==="listOrdered"||T[Dn][1].type==="listUnordered")if(T[Dn][0]==="enter")On.push(Dn);else{constze=On.pop();Dn=c(T,ze,Dn)}for(Dn=-1;++Dn<T.length;){constze=a[T[Dn][0]];qt.call(ze,T[Dn][1].type)&&ze[T[Dn][1].type].call(Object.assign({sliceSerialize:T[Dn][2].sliceSerialize},on),T[Dn][1])}if(on.tokenStack.length>0){constze=on.tokenStack[on.tokenStack.length-1];(ze[1]||lr).call(on,void0,ze[0])}for(G.position={start:He(T.length>0?T[0][1].start:{line:1,column:1,offset:0}),end:He(T.length>0?T[T.length-2][1].end:{line:1,column:1,offset:0})},Dn=-1;++Dn<a.transforms.length;)G=a.transforms[Dn](G)||G;returnG}functionc(T,G,on){letOn=G-1,Dn=-1,ze=!1,mt,et,Gt,Vt;for(;++On<=on;){constne=T[On];if(ne[1].type==="listUnordered"||ne[1].type==="listOrdered"||ne[1].type==="blockQuote"?(ne[0]==="enter"?Dn++:Dn--,Vt=void0):ne[1].type==="lineEndingBlank"?ne[0]==="enter"&&(mt&&!Vt&&!Dn&&!Gt&&(Gt=On),Vt=void0):ne[1].type==="linePrefix"||ne[1].type==="listItemValue"||ne[1].type==="listItemMarker"||ne[1].type==="listItemPrefix"||ne[1].type==="listItemPrefixWhitespace"||(Vt=void0),!Dn&&ne[0]==="enter"&&ne[1].type==="listItemPrefix"||Dn===-1&&ne[0]==="exit"&&(ne[1].type==="listUnordered"||ne[1].type==="listOrdered")){if(mt){letfr=On;for(et=void0;fr--;){consttt=T[fr];if(tt[1].type==="lineEnding"||tt[1].type==="lineEndingBlank"){if(tt[0]==="exit")continue;et&&(T[et][1].type="lineEndingBlank",ze=!0),tt[1].type="lineEnding",et=fr}elseif(!(tt[1].type==="linePrefix"||tt[1].type==="blockQuotePrefix"||tt[1].type==="blockQuotePrefixWhitespace"||tt[1].type==="blockQuoteMarker"||tt[1].type==="listItemIndent"))break}Gt&&(!et||Gt<et)&&(mt._spread=!0),mt.end=Object.assign({},et?T[et][1].start:ne[1].end),T.splice(et||On,0,["exit",mt,ne[2]]),On++,on++}ne[1].type==="listItemPrefix"&&(mt={type:"listItem",_spread:!1,start:Object.assign({},ne[1].start),end:void0},T.splice(On,0,["enter",mt,ne[2]]),On++,on++,Gt=void0,Vt=!0)}}returnT[G][1]._spread=ze,on}functionl(T,G){i[T]=G}functiond(T){returni[T]}functionp(T,G){returnon;functionon(On){E.call(this,T(On),On),G&&G.call(this,On)}}functionI(){this.stack.push({type:"fragment",children:[]})}functionE(T,G,on){returnthis.stack[this.stack.length-1].children.push(T),this.stack.push(T),this.tokenStack.push([G,on]),T.position={start:He(G.start)},T}functionb(T){returnG;functionG(on){T&&T.call(this,on),j.call(this,on)}}functionj(T,G){conston=this.stack.pop(),On=this.tokenStack.pop();if(On)On[0].type!==T.type&&(G?G.call(this,T,On[0]):(On[1]||lr).call(this,T,On[0]));elsethrownewError("Cannot close `"+T.type+"` ("+Jt({start:T.start,end:T.end})+"): it\u2019s not open");returnon.position.end=He(T.end),on}functionk(){returnM(this.stack.pop())}functionx(){l("expectingFirstListItemValue",!0)}functionIn(T){if(d("expectingFirstListItemValue")){constG=this.stack[this.stack.length-2];G.start=Number.parseInt(this.sliceSerialize(T),10),l("expectingFirstListItemValue")}}functionSn(){constT=this.resume(),G=this.stack[this.stack.length-1];G.lang=T}functionKn(){constT=this.resume(),G=this.stack[this.stack.length-1];G.meta=T}function$(){d("flowCodeInside")||(this.buffer(),l("flowCodeInside",!0))}functionXn(){constT=this.resume(),G=this.stack[this.stack.length-1];G.value=T.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),l("flowCodeInside")}functionen(){constT=this.resume(),G=this.stack[this.stack.length-1];G.value=T.replace(/(\r?\n|\r)$/g,"")}functionYn(T){constG=this.resume(),on=this.stack[this.stack.length-1];on.label=G,on.identifier=Se(this.sliceSerialize(T)).toLowerCase()}functionQn(){constT=this.resume(),G=this.stack[this.stack.length-1];G.title=T}functionB(){constT=this.resume(),G=this.stack[this.stack.length-1];G.url=T}functionzn(T){constG=this.stack[this.stack.length-1];if(!G.depth){conston=this.sliceSerialize(T).length;G.depth=on}}functionee(){l("setextHeadingSlurpLineEnding",!0)}functionqn(T){constG=this.stack[this.stack.length-1];G.depth=this.sliceSerialize(T).charCodeAt(0)===61?1:2}functionme(){l("setextHeadingSlurpLineEnding")}functionHn(T){constG=this.stack[this.stack.length-1];leton=G.children[G.children.length-1];(!on||on.type!=="text")&&(on=ci(),on.position={start:He(T.start)},G.children.push(on)),this.stack.push(on)}functionwn(T){constG=this.stack.pop();G.value+=this.sliceSerialize(T),G.position.end=He(T.end)}functiontn(T){constG=this.stack[this.stack.length-1];if(d("atHardBreak")){conston=G.children[G.children.length-1];on.position.end=He(T.end),l("atHardBreak");return}!d("setextHeadingSlurpLineEnding")&&a.canContainEols.includes(G.type)&&(Hn.call(this,T),wn.call(this,T))}functionxn(){l("atHardBreak",!0)}functionbn(){constT=this.resume(),G=this.stack[this.stack.length-1];G.value=T}functionJn(){constT=this.resume(),G=this.stack[this.stack.length-1];G.value=T}functionse(){constT=this.resume(),G=this.stack[this.stack.length-1];G.value=T}functionRe(){constT=this.stack[this.stack.length-1];if(d("inReference")){constG=d("referenceType")||"shortcut";T.type+="Reference",T.referenceType=G,deleteT.url,deleteT.title}elsedeleteT.identifier,deleteT.label;l("referenceType")}functionGe(){constT=this.stack[this.stack.length-1];if(d("inReference")){constG=d("referenceType")||"shortcut";T.type+="Reference",T.referenceType=G,deleteT.url,deleteT.title}elsedeleteT.identifier,deleteT.label;l("referenceType")}functionA(T){constG=this.sliceSerialize(T),on=this.stack[this.stack.length-2];on.label=xr(G),on.identifier=Se(G).toLowerCase()}functionOe(){constT=this.stack[this.stack.length-1],G=this.resume(),on=this.stack[this.stack.length-1];if(l("inReference",!0),on.type==="link"){constOn=T.children;on.children=On}elseon.alt=G}functionVe(){constT=this.resume(),G=this.stack[this.stack.length-1];G.url=T}functionv(){constT=this.resume(),G=this.stack[this.stack.length-1];G.title=T}functionbe(){l("inReference")}functionSt(){l("referenceType","collapsed")}functiontr(T){constG=this.resume(),on=this.stack[this.stack.length-1];on.label=G,on.identifier=Se(this.sliceSerialize(T)).toLowerCase(),l("referenceType","full")}functionKt(T){l("characterReferenceType",T.type)}functionae(T){constG=this.sliceSerialize(T),on=d("characterReferenceType");letOn;on?(On=Qr(G,on==="characterReferenceMarkerNumeric"?10:16),l("characterReferenceType")):On=at(G);constDn=this.stack.pop();Dn.value+=On,Dn.position.end=He(T.end)}functionHt(T){wn.call(this,T);constG=this.stack[this.stack.length-1];G.url=this.sliceSerialize(T)}functionnt(T){wn.call(this,T);constG=this.stack[this.stack.length-1];G.url="mailto:"+this.sliceSerialize(T)}functionjt(){return{type:"blockquote",children:[]}}functionht(){return{type:"code",lang:null,meta:null,value:""}}functioncr(){return{type:"inlineCode",value:""}}functionai(){return{type:"definition",identifier:"",label:null,title:null,url:""}}functionui(){return{type:"emphasis",children:[]}}functionTr(){return{type:"heading",depth:void0,children:[]}}functionFr(){return{type:"break"}}functionOr(){return{type:"html",value:""}}functionoi(){return{type:"image",title:null,url:"",alt:null}}functionPr(){return{type:"link",title:null,url:"",children:[]}}functionLr(T){return{type:"list",ordered:T.type==="listOrdered",start:null,spread:T._spread,children:[]}}functionMr(T){return{type:"listItem",spread:T._spread,checked:null,children:[]}}functionli(){return{type:"paragraph",children:[]}}functiondi(){return{type:"strong",children:[]}}functionci(){return{type:"text",value:""}}functionfi(){return{type:"thematicBreak"}}}functionHe(n){return{line:n.line,column:n.column,offset:n.offset}}functionor(n,a){leti=-1;for(;++i<a.length;){consts=a[i];Array.isArray(s)?or(n,s):kr(n,s)}}functionkr(n,a){leti;for(iina)if(qt.call(a,i)){if(i==="canContainEols"){consts=a[i];s&&n[i].push(...s)}elseif(i==="transforms"){consts=a[i];s&&n[i].push(...s)}elseif(i==="enter"||i==="exit"){consts=a[i];s&&Object.assign(n[i],s)}}}functionlr(n,a){thrown?newError("Cannot close `"+n.type+"` ("+Jt({start:n.start,end:n.end})+"): a different token (`"+a.type+"`, "+Jt({start:a.start,end:a.end})+") is open"):newError("Cannot close document, a token (`"+a.type+"`, "+Jt({start:a.start,end:a.end})+") is still open")}varCr=h("./node_modules/ts-dedent/esm/index.js");functionXr(n){consta=n.replace(/\n{2,}/g,`
`)))thrownewError("splitLineToFitWidth does not support newlines in the line");returnft(n,a)}functionft(n,a,i=[],s=[]){if(n.length===0)returns.length>0&&i.push(s),i.length>0?i:[];letc="";n[0].content===" "&&(c=" ",n.shift());constl=n.shift()??{content:" ",type:"normal"},d=[...s];if(c!==""&&d.push({content:c,type:"normal"}),d.push(l),a(d))returnft(n,a,i,d);if(s.length>0)i.push(s),n.unshift(l);elseif(l.content){const[p,I]=ni(a,l);i.push([p]),I.content&&n.unshift(I)}returnft(n,a,i)}functionnr(n,a){a&&n.attr("style",a)}functionei(n,a,i,s,c=!1){constl=n.append("foreignObject"),d=l.append("xhtml:div"),p=a.label,I=a.isNode?"nodeLabel":"edgeLabel";d.html(`