63 lines
145 KiB
JavaScript
63 lines
145 KiB
JavaScript
|
(function(n){function e(){var i=n();return i.default||i}if(typeof exports=="object"&&typeof module=="object")module.exports=e();else if(typeof define=="function"&&define.amd)define(e);else{var t=typeof globalThis<"u"?globalThis:typeof global<"u"?global:typeof self<"u"?self:this||{};t.prettierPlugins=t.prettierPlugins||{},t.prettierPlugins.markdown=e()}})(function(){"use strict";var ll=Object.create;var kr=Object.defineProperty;var fl=Object.getOwnPropertyDescriptor;var Dl=Object.getOwnPropertyNames;var pl=Object.getPrototypeOf,hl=Object.prototype.hasOwnProperty;var zn=e=>{throw TypeError(e)};var C=(e,r)=>()=>(r||e((r={exports:{}}).exports,r),r.exports),Yn=(e,r)=>{for(var t in r)kr(e,t,{get:r[t],enumerable:!0})},Gn=(e,r,t,n)=>{if(r&&typeof r=="object"||typeof r=="function")for(let a of Dl(r))!hl.call(e,a)&&a!==t&&kr(e,a,{get:()=>r[a],enumerable:!(n=fl(r,a))||n.enumerable});return e};var Ue=(e,r,t)=>(t=e!=null?ll(pl(e)):{},Gn(r||!e||!e.__esModule?kr(t,"default",{value:e,enumerable:!0}):t,e)),dl=e=>Gn(kr({},"__esModule",{value:!0}),e);var Vn=(e,r,t)=>r.has(e)||zn("Cannot "+t);var ce=(e,r,t)=>(Vn(e,r,"read from private field"),t?t.call(e):r.get(e)),jn=(e,r,t)=>r.has(e)?zn("Cannot add the same private member more than once"):r instanceof WeakSet?r.add(e):r.set(e,t),$n=(e,r,t,n)=>(Vn(e,r,"write to private field"),n?n.call(e,t):r.set(e,t),t);var Br=C((Vm,Wn)=>{"use strict";Wn.exports=gl;function gl(e){return String(e).replace(/\s+/g," ")}});var Vi=C((Tv,Gi)=>{"use strict";Gi.exports=xf;var Dr=9,Mr=10,je=32,bf=33,yf=58,$e=91,Af=92,St=93,pr=94,zr=96,Yr=4,wf=1024;function xf(e){var r=this.Parser,t=this.Compiler;kf(r)&&Tf(r,e),Bf(t)&&qf(t)}function kf(e){return!!(e&&e.prototype&&e.prototype.blockTokenizers)}function Bf(e){return!!(e&&e.prototype&&e.prototype.visitors)}function Tf(e,r){for(var t=r||{},n=e.prototype,a=n.blockTokenizers,u=n.inlineTokenizers,i=n.blockMethods,o=n.inlineMethods,s=a.definition,l=u.reference,c=[],f=-1,p=i.length,d;++f<p;)d=i[f],!(d==="newline"||d==="indentedCode"||d==="paragraph"||d==="footnoteDefinition")&&c.push([d]);c.push(["footnoteDefinition"]),t.inlineNotes&&(Ot(o,"reference","inlineNote"),u.inlineNote=m),Ot(i,"definition","footnoteDefinition"),Ot(o,"reference","footnoteCall"),a.definition=y,a.footnoteDefinition=D,u.footnoteCall=h,u.reference=F,n.interruptFootnoteDefinition=c,F.locator=l.locator,h.locator=E,m.locator=B;function D(b,g,A){for(var w=this,v=w.interruptFootnoteDefinition,x=w.offset,k=g.length+1,T=0,q=[],R,O,S,_,L,Be,W,I,ee,Z,ve,Ee,M;T<k&&(_=g.charCodeAt(T),!(_!==Dr&&_!==je));)T++;if(g.charCodeAt(T++)===$e&&g.charCodeAt(T++)===pr){for(O=T;T<k;){if(_=g.charCodeAt(T),_!==_||_===Mr||_===Dr||_===je)return;if(_===St){S=T,T++;break}T++}if(!(S===void 0||O===S||g.charCodeAt(T++)!==yf)){if(A)return!0;for(R=g.slice(O,S),L=b.now(),ee=0,Z=0,ve=T,Ee=[];T<k;){if(_=g.charCodeAt(T),_!==_||_===Mr)M={start:ee,contentStart:ve||T,contentEnd:T,end:T},Ee.push(M),_===Mr&&(ee=T+1,Z=0,ve=void 0,M.end=ee);else if(Z!==void 0)if(_===je||_===Dr)Z+=_===je?1:Yr-Z%Yr,Z>Yr&&(Z=void 0,ve=T);else{if(Z<Yr&&M&&(M.contentStart===M.contentEnd||_f(v,a,w,[b,g.slice(T,wf),!0])))break;Z=void 0,ve=T}T++}for(T=-1,k=Ee.length;k>0&&(M=Ee[k-1],M.contentStart===M.contentEnd);)k--;for(Be=b(g.slice(0,M.contentEnd));++T<k;)M=Ee[T],x[L.line+T]=(x[L.line+T]||0)+(M.contentStart-M.start),q.push(g.slice(M.contentStart,M.end));return W=w.enterBlock(),I=w.tokenizeBlock(q.join(""),L),W(),Be({type:"footnoteDefinition",identifier:R.toLowerCase(),label:R,children:I})}}}function h(b,g,A){var w=g.length+1,v=0,x,k,T,q;if(g.charCodeAt(v++)===$e&&g.charCodeAt(v++)===pr){for(k=v;v<w;){if(q=g.charCodeAt(v),q!==q||q===Mr||q===Dr||q===je)return;if(q===St){T=v,v++;break}v++}if(!(T===void 0||k===T))return A?!0:(x=g.slice(k,T),b(g.slice(0,v))({type:"footnoteReference",identifier:x.toLowerCase(),label:x}))}}function m(b,g,A){var w=this,v=g.length+1,x=0,k=0,T,q,R,O,S,_,L;if(g.charCodeAt(x++)===pr&&g.charCodeAt(x++)===$e){for(R=x;x<v;){if(q=g.charCodeAt(x),q!==q)return;if(_===void 0)if(q===Af)x+=2;else if(q===$e)k++,x++;else if(q===St)if(k===0){O=x,x++;break}else k
|
||
|
|
||
|
`).split(`
|
||
|
`),s=0,l=o.length,c;++s<l;)c=o[s],c!==""&&(o[s]=t+c);return"[^"+(i.label||i.identifier)+"]: "+o.join(`
|
||
|
`)}}function Ot(e,r,t){e.splice(e.indexOf(r),0,t)}function _f(e,r,t,n){for(var a=e.length,u=-1;++u<a;)if(r[e[u][0]].apply(t,n))return!0;return!1}});var Pt=C(Lt=>{Lt.isRemarkParser=Sf;Lt.isRemarkCompiler=Of;function Sf(e){return!!(e&&e.prototype&&e.prototype.blockTokenizers)}function Of(e){return!!(e&&e.prototype&&e.prototype.visitors)}});var Xi=C((_v,Ji)=>{var ji=Pt();Ji.exports=Nf;var $i=9,Wi=32,Gr=36,Lf=48,Pf=57,Hi=92,If=["math","math-inline"],Ki="math-display";function Nf(e){let r=this.Parser,t=this.Compiler;ji.isRemarkParser(r)&&Rf(r,e),ji.isRemarkCompiler(t)&&Uf(t,e)}function Rf(e,r){let t=e.prototype,n=t.inlineMethods;u.locator=a,t.inlineTokenizers.math=u,n.splice(n.indexOf("text"),0,"math");function a(i,o){return i.indexOf("$",o)}function u(i,o,s){let l=o.length,c=!1,f=!1,p=0,d,D,h,m,F,y,E;if(o.charCodeAt(p)===Hi&&(f=!0,p++),o.charCodeAt(p)===Gr){if(p++,f)return s?!0:i(o.slice(0,p))({type:"text",value:"$"});if(o.charCodeAt(p)===Gr&&(c=!0,p++),h=o.charCodeAt(p),!(h===Wi||h===$i)){for(m=p;p<l;){if(D=h,h=o.charCodeAt(p+1),D===Gr){if(d=o.charCodeAt(p-1),d!==Wi&&d!==$i&&(h!==h||h<Lf||h>Pf)&&(!c||h===Gr)){F=p-1,p++,c&&p++,y=p;break}}else D===Hi&&(p++,h=o.charCodeAt(p+1));p++}if(y!==void 0)return s?!0:(E=o.slice(m,F+1),i(o.slice(0,y))({type:"inlineMath",value:E,data:{hName:"span",hProperties:{className:If.concat(c&&r.inlineMathDouble?[Ki]:[])},hChildren:[{type:"text",value:E}]}}))}}}}function Uf(e){let r=e.prototype;r.visitors.inlineMath=t;function t(n){let a="$";return(n.data&&n.data.hProperties&&n.data.hProperties.className||[]).includes(Ki)&&(a="$$"),a+n.value+a}}});var tu=C((Sv,ru)=>{var Qi=Pt();ru.exports=Gf;var Zi=10,hr=32,It=36,eu=`
|
||
|
`,Mf="$",zf=2,Yf=["math","math-display"];function Gf(){let e=this.Parser,r=this.Compiler;Qi.isRemarkParser(e)&&Vf(e),Qi.isRemarkCompiler(r)&&jf(r)}function Vf(e){let r=e.prototype,t=r.blockMethods,n=r.interruptParagraph,a=r.interruptList,u=r.interruptBlockquote;r.blockTokenizers.math=i,t.splice(t.indexOf("fencedCode")+1,0,"math"),n.splice(n.indexOf("fencedCode")+1,0,["math"]),a.splice(a.indexOf("fencedCode")+1,0,["math"]),u.splice(u.indexOf("fencedCode")+1,0,["math"]);function i(o,s,l){var c=s.length,f=0;let p,d,D,h,m,F,y,E,B,b,g;for(;f<c&&s.charCodeAt(f)===hr;)f++;for(m=f;f<c&&s.charCodeAt(f)===It;)f++;if(F=f-m,!(F<zf)){for(;f<c&&s.charCodeAt(f)===hr;)f++;for(y=f;f<c;){if(p=s.charCodeAt(f),p===It)return;if(p===Zi)break;f++}if(s.charCodeAt(f)===Zi){if(l)return!0;for(d=[],y!==f&&d.push(s.slice(y,f)),f++,D=s.indexOf(eu,f+1),D=D===-1?c:D;f<c;){for(E=!1,b=f,g=D,h=D,B=0;h>b&&s.charCodeAt(h-1)===hr;)h--;for(;h>b&&s.charCodeAt(h-1)===It;)B++,h--;for(F<=B&&s.indexOf(Mf,b)===h&&(E=!0,g=h);b<=g&&b-f<m&&s.charCodeAt(b)===hr;)b++;if(E)for(;g>b&&s.charCodeAt(g-1)===hr;)g--;if((!E||b!==g)&&d.push(s.slice(b,g)),E)break;f=D+1,D=s.indexOf(eu,f+1),D=D===-1?c:D}return d=d.join(`
|
||
|
`),o(s.slice(0,D))({type:"math",value:d,data:{hName:"div",hProperties:{className:Yf.concat()},hChildren:[{type:"text",value:d}]}})}}}}function jf(e){let r=e.prototype;r.visitors.math=t;function t(n){return`$$
|
||
|
`+n.value+`
|
||
|
$$`}}});var iu=C((Ov,nu)=>{var $f=Xi(),Wf=tu();nu.exports=Hf;function Hf(e){var r=e||{};Wf.call(this,r),$f.call(this,r)}});var Ie=C((Lv,uu)=>{uu.exports=Jf;var Kf=Object.prototype.hasOwnProperty;function Jf(){for(var e={},r=0;r<arguments.length;r++){var t=arguments[r];for(var n in t)Kf.call(t,n)&&(e[n]=t[n])}return e}});var au=C((Pv,Nt)=>{typeof Object.create=="function"?Nt.exports=function(r,t){t&&(r.super_=t,r.prototype=Object.create(t.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}))}:Nt.exports=function(r,t){if(t){r.super_=t;var n=function(){};n.prototype=t.prototype,r.prototype=new n,r.prototype.constructor=r}}});var cu=C((Iv,su)=>{"use strict";var Xf=Ie(),ou=au();su.exports=Qf;function Qf(e){var r,t,n;ou(u,e),ou(a,u),r=u.prototype;for(t in r)n=r[t],n&&typeof n=="object"&&(r[t]="concat"in n?n.concat():Xf(n));return u;function a(i){return e.apply(this,i)}function u(){return this instanceof u?e.apply(this,arguments):new a(arguments)}}});var fu=C((Nv,lu)=>{"use strict";lu.exports=Zf;function Zf(e,r,t){return n;function n(){var a=t||this,u=a[e];return a[e]=!r,i;function i(){a[e]=u}}}});var pu=C((Rv,Du)=>{"use strict";Du.exports=eD;function eD(e){for(var r=String(e),t=[],n=/\r?\n|\r/g;n.exec(r);)t.push(n.lastIndex);return t.push(r.length+1),{toPoint:a,toPosition:a,toOffset:u};function a(i){var o=-1;if(i>-1&&i<t[t.length-1]){for(;++o<t.length;)if(t[o]>i)return{line:o+1,column:i-(t[o-1]||0)+1,offset:i}}return{}}function u(i){var o=i&&i.line,s=i&&i.column,l;return!isNaN(o)&&!isNaN(s)&&o-1 in t&&(l=(t[o-2]||0)+s-1||0),l>-1&&l<t[t.length-1]?l:-1}}});var du=C((Uv,hu)=>{"use strict";hu.exports=rD;var Rt="\\";function rD(e,r){return t;function t(n){for(var a=0,u=n.indexOf(Rt),i=e[r],o=[],s;u!==-1;)o.push(n.slice(a,u)),a=u+1,s=n.charAt(a),(!s||i.indexOf(s)===-1)&&o.push(Rt),u=n.indexOf(Rt,a+1);return o.push(n.slice(a)),o.join("")}}});var mu=C((Mv,tD)=>{tD.exports={AElig:"\xC6",AMP:"&",Aacute:"\xC1",Acirc:"\xC2",Agrave:"\xC0",Aring:"\xC5",Atilde:"\xC3",Auml:"\xC4",COPY:"\xA9",Ccedil:"\xC7",ETH:"\xD0",Eacute:"\xC9",Ecirc:"\xCA",Egrave:"\xC8",Euml:"\xCB",GT:">",Iacute:"\xCD",Icirc:"\xCE",Igrave:"\xCC",Iuml:"\xCF",LT:"<",Ntilde:"\xD1",Oacute:"\xD3",Ocirc:"\xD4",Ograve:"\xD2",Oslash:"\xD8",Otilde:"\xD5",Ouml:"\xD6",QUOT:'"',REG:"\xAE",THORN:"\xDE",Uacute:"\xDA",Ucirc:"\xDB",Ugrave:"\xD9",Uuml:"\xDC",Yacute:"\xDD",aacute:"\xE1",acirc:"\xE2",acute:"\xB4",aelig:"\xE6",agrave:"\xE0",amp:"&",aring:"\xE5",atilde:"\xE3",auml:"\xE4",brvbar:"\xA6",ccedil:"\xE7",cedil:"\xB8",cent:"\xA2",copy:"\xA9",curren:"\xA4",deg:"\xB0",divide:"\xF7",eacute:"\xE9",ecirc:"\xEA",egrave:"\xE8",eth:"\xF0",euml:"\xEB",frac12:"\xBD",frac14:"\xBC",frac34:"\xBE",gt:">",iacute:"\xED",icirc:"\xEE",iexcl:"\xA1",igrave:"\xEC",iquest:"\xBF",iuml:"\xEF",laquo:"\xAB",lt:"<",macr:"\xAF",micro:"\xB5",middot:"\xB7",nbsp:"\xA0",not:"\xAC",ntilde:"\xF1",oacute:"\xF3",ocirc:"\xF4",ograve:"\xF2",ordf:"\xAA",ordm:"\xBA",oslash:"\xF8",otilde:"\xF5",ouml:"\xF6",para:"\xB6",plusmn:"\xB1",pound:"\xA3",quot:'"',raquo:"\xBB",reg:"\xAE",sect:"\xA7",shy:"\xAD",sup1:"\xB9",sup2:"\xB2",sup3:"\xB3",szlig:"\xDF",thorn:"\xFE",times:"\xD7",uacute:"\xFA",ucirc:"\xFB",ugrave:"\xF9",uml:"\xA8",uuml:"\xFC",yacute:"\xFD",yen:"\xA5",yuml:"\xFF"}});var Fu=C((zv,nD)=>{nD.exports={"0":"\uFFFD","128":"\u20AC","130":"\u201A","131":"\u0192","132":"\u201E","133":"\u2026","134":"\u2020","135":"\u2021","136":"\u02C6","137":"\u2030","138":"\u0160","139":"\u2039","140":"\u0152","142":"\u017D","145":"\u2018","146":"\u2019","147":"\u201C","148":"\u201D","149":"\u2022","150":"\u2013","151":"\u2014","152":"\u02DC","153":"\u2122","154":"\u0161","155":"\u203A","156":"\u0153","158":"\u017E","159":"\u0178"}});var Ne=C((Yv,gu)=>{"use strict";gu.exports=iD;function iD(e){var r=typeof e=="string"?e.charCodeAt(0):e;return r>=48&&r<=57}});var Eu=C((Gv,vu)=>{"use strict";vu.exports=uD;function uD(e){var r=typeof e=="string"?e.charCodeAt(0):e;return r>=97&&r<=102||r>=65&&r<=70||r>=48&&r<=57}});var We=C((Vv,Cu)=>{"use strict";Cu.exports=aD;function aD(e){var r=typeof e=="string"?e.charCodeAt(0):e;r
|
||
|
`,Nfr:"\u{1D511}",NoBreak:"\u2060",NonBreakingSpace:"\xA0",Nopf:"\u2115",Not:"\u2AEC",NotCongruent:"\u2262",NotCupCap:"\u226D",NotDoubleVerticalBar:"\u2226",NotElement:"\u2209",NotEqual:"\u2260",NotEqualTilde:"\u2242\u0338",NotExists:"\u2204",NotGreater:"\u226F",NotGreaterEqual:"\u2271",NotGreaterFullEqual:"\u2267\u0338",NotGreaterGreater:"\u226B\u0338",NotGreaterLess:"\u2279",NotGreaterSlantEqual:"\u2A7E\u0338",NotGreaterTilde:"\u2275",NotHumpDownHump:"\u224E\u0338",NotHumpEqual:"\u224F\u0338",NotLeftTriangle:"\u22EA",NotLeftTriangleBar:"\u29CF\u0338",NotLeftTriangleEqual:"\u22EC",NotLess:"\u226E",NotLessEqual:"\u2270",NotLessGreater:"\u2278",NotLessLess:"\u226A\u0338",NotLessSlantEqual:"\u2A7D\u0338",NotLessTilde:"\u2274",NotNestedGreaterGreater:"\u2AA2\u0338",NotNestedLessLess:"\u2AA1\u0338",NotPrecedes:"\u2280",NotPrecedesEqual:"\u2AAF\u0338",NotPrecedesSlantEqual:"\u22E0",NotReverseElement:"\u220C",NotRightTriangle:"\u22EB",NotRightTriangleBar:"\u29D0\u0338",NotRightTriangleEqual:"\u22ED",NotSquareSubset:"\u228F\u0338",NotSquareSubsetEqual:"\u22E2",NotSquareSuperset:"\u2290\u0338",NotSquareSupersetEqual:"\u22E3",NotSubset:"\u2282\u20D2",NotSubsetEqual:"\u2288",NotSucceeds:"\u2281",NotSucceedsEqual:"\u2AB0\u0338",NotSucceedsSlantEqual:"\u22E1",NotSucceedsTilde:"\u227F\u0338",NotSuperset:"\u2283\u20D2",NotSupersetEqual:"\u2289",NotTilde:"\u2241",NotTildeEqual:"\u2244",NotTildeFullEqual:"\u2247",NotTildeTilde:"\u2249",NotVerticalBar:"\u2224",Nscr:"\u{1D4A9}",Ntild:"\xD1",Ntilde:"\xD1",Nu:"\u039D",OElig:"\u0152",Oacut:"\xD3",Oacute:"\xD3",Ocir:"\xD4",Ocirc:"\xD4",Ocy:"\u041E",Odblac:"\u0150",Ofr:"\u{1D512}",Ograv:"\xD2",Ograve:"\xD2",Omacr:"\u014C",Omega:"\u03A9",Omicron:"\u039F",Oopf:"\u{1D546}",OpenCurlyDoubleQuote:"\u201C",OpenCurlyQuote:"\u2018",Or:"\u2A54",Oscr:"\u{1D4AA}",Oslas:"\xD8",Oslash:"\xD8",Otild:"\xD5",Otilde:"\xD5",Otimes:"\u2A37",Oum:"\xD6",Ouml:"\xD6",OverBar:"\u203E",OverBrace:"\u23DE",OverBracket:"\u23B4",OverParenthesis:"\u23DC",PartialD:"\u2202",Pcy:"\u041F",Pfr:"\u{1D513}",Phi:"\u03A6",Pi:"\u03A0",PlusMinus:"\xB1",Poincareplane:"\u210C",Popf:"\u2119",Pr:"\u2ABB",Precedes:"\u227A",PrecedesEqual:"\u2AAF",PrecedesSlantEqual:"\u227C",PrecedesTilde:"\u227E",Prime:"\u2033",Product:"\u220F",Proportion:"\u2237",Proportional:"\u221D",Pscr:"\u{1D4AB}",Psi:"\u03A8",QUO:'"',QUOT:'"',Qfr:"\u{1D514}",Qopf:"\u211A",Qscr:"\u{1D4AC}",RBarr:"\u2910",RE:"\xAE",REG:"\xAE",Racute:"\u0154",Rang:"\u27EB",Rarr:"\u21A0",Rarrtl:"\u2916",Rcaron:"\u0158",Rcedil:"\u0156",Rcy:"\u0420",Re:"\u211C",ReverseElement:"\u220B",ReverseEquilibrium:"\u21CB",ReverseUpEquilibrium:"\u296F",Rfr:"\u211C",Rho:"\u03A1",RightAngleBracket:"\u27E9",RightArrow:"\u2192",RightArrowBar:"\u21E5",RightArrowLeftArrow:"\u21C4",RightCeiling:"\u2309",RightDoubleBracket:"\u27E7",RightDownTeeVector:"\u295D",RightDownVector:"\u21C2",RightDownVectorBar:"\u2955",RightFloor:"\u230B",RightTee:"\u22A2",RightTeeArrow:"\u21A6",RightTeeVector:"\u295B",RightTriangle:"\u22B3",RightTriangleBar:"\u29D0",RightTriangleEqual:"\u22B5",RightUpDownVector:"\u294F",RightUpTeeVector:"\u295C",RightUpVector:"\u21BE",RightUpVectorBar:"\u2954",RightVector:"\u21C0",RightVectorBar:"\u2953",Rightarrow:"\u21D2",Ropf:"\u211D",RoundImplies:"\u2970",Rrightarrow:"\u21DB",Rscr:"\u211B",Rsh:"\u21B1",RuleDelayed:"\u29F4",SHCHcy:"\u0429",SHcy:"\u0428",SOFTcy:"\u042C",Sacute:"\u015A",Sc:"\u2ABC",Scaron:"\u0160",Scedil:"\u015E",Scirc:"\u015C",Scy:"\u0421",Sfr:"\u{1D516}",ShortDownArrow:"\u2193",ShortLeftArrow:"\u2190",ShortRightArrow:"\u2192",ShortUpArrow:"\u2191",Sigma:"\u03A3",SmallCircle:"\u2218",Sopf:"\u{1D54A}",Sqrt:"\u221A",Square:"\u25A1",SquareIntersection:"\u2293",SquareSubset:"\u228F",SquareSubsetEqual:"\u2291",SquareSuperset:"\u2290",SquareSupersetEqual:"\u2292",SquareUnion:"\u2294",Sscr:"\u{1D4AE}",Star:"\u22C6",Sub:"\u22D0",Subset:"\u22D0",SubsetEqual:"\u2286",Succeeds:"\u227B",SucceedsEqual:"\u2AB0",SucceedsSlantEqual:"\u227D",SucceedsTilde:"\u227F",SuchThat:"\u220B",Sum:"\u2211",Sup:"\u22D1",Superset:"\u2283",SupersetEqual:"\u2287",Supset:"\u22D1",THOR:"\xDE",THORN:"\xDE",TRADE:"\u
|
||
|
`);k!==-1;)l++,x=k,k=v.indexOf(`
|
||
|
`,k+1);x===-1?c+=v.length:c=v.length-x,l in u&&(x!==-1?c+=u[l]:c<=u[l]&&(c=u[l]+1))}function y(){var v=[],x=l+1;return function(){for(var k=l+1;x<k;)v.push((u[x]||0)+1),x++;return v}}function E(){var v={line:l,column:c};return v.offset=a.toOffset(v),v}function B(v){this.start=v,this.end=E()}function b(v){t.slice(0,v.length)!==v&&a.file.fail(new Error("Incorrectly eaten value: please report this warning on https://git.io/vg5Ft"),E())}function g(){var v=E();return x;function x(k,T){var q=k.position,R=q?q.start:v,O=[],S=q&&q.end.line,_=v.line;if(k.position=new B(R),q&&T&&q.indent){if(O=q.indent,S<_){for(;++S<_;)O.push((u[S]||0)+1);O.push(v.column)}T=O.concat(T)}return k.position.indent=T||[],k}}function A(v,x){var k=x?x.children:i,T=k[k.length-1],q;return T&&v.type===T.type&&(v.type==="text"||v.type==="blockquote")&&Vu(T)&&Vu(v)&&(q=v.type==="text"?PD:ID,v=q.call(a,T,v)),v!==T&&k.push(v),a.atStart&&i.length!==0&&a.exitStart(),v}function w(v){var x=y(),k=g(),T=E();return b(v),q.reset=R,R.test=O,q.test=O,t=t.slice(v.length),F(v),x=x(),q;function q(S,_){return k(A(k(S),_),x)}function R(){var S=q.apply(null,arguments);return l=T.line,c=T.column,t=v+t,S}function O(){var S=k({});return l=T.line,c=T.column,t=v+t,S.position}}}}function Vu(e){var r,t;return e.type!=="text"||!e.position?!0:(r=e.position.start,t=e.position.end,r.line!==t.line||t.column-r.column===e.value.length)}function PD(e,r){return e.value+=r.value,e}function ID(e,r){return this.options.commonmark||this.options.gfm?r:(e.children=e.children.concat(r.children),e)}});var Ku=C((Xv,Hu)=>{"use strict";Hu.exports=jr;var Gt=["\\","`","*","{","}","[","]","(",")","#","+","-",".","!","_",">"],Vt=Gt.concat(["~","|"]),Wu=Vt.concat([`
|
||
|
`,'"',"$","%","&","'",",","/",":",";","<","=","?","@","^"]);jr.default=Gt;jr.gfm=Vt;jr.commonmark=Wu;function jr(e){var r=e||{};return r.commonmark?Wu:r.gfm?Vt:Gt}});var Xu=C((Qv,Ju)=>{"use strict";Ju.exports=["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","hgroup","hr","html","iframe","legend","li","link","main","menu","menuitem","meta","nav","noframes","ol","optgroup","option","p","param","pre","section","source","title","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"]});var jt=C((Zv,Qu)=>{"use strict";Qu.exports={position:!0,gfm:!0,commonmark:!1,pedantic:!1,blocks:Xu()}});var ea=C((eE,Zu)=>{"use strict";var ND=Ie(),RD=Ku(),UD=jt();Zu.exports=MD;function MD(e){var r=this,t=r.options,n,a;if(e==null)e={};else if(typeof e=="object")e=ND(e);else throw new Error("Invalid value `"+e+"` for setting `options`");for(n in UD){if(a=e[n],a==null&&(a=t[n]),n!=="blocks"&&typeof a!="boolean"||n==="blocks"&&typeof a!="object")throw new Error("Invalid value `"+a+"` for setting `options."+n+"`");e[n]=a}return r.options=e,r.escape=RD(e),r}});var na=C((rE,ta)=>{"use strict";ta.exports=ra;function ra(e){if(e==null)return VD;if(typeof e=="string")return GD(e);if(typeof e=="object")return"length"in e?YD(e):zD(e);if(typeof e=="function")return e;throw new Error("Expected function, string, or object as test")}function zD(e){return r;function r(t){var n;for(n in e)if(t[n]!==e[n])return!1;return!0}}function YD(e){for(var r=[],t=-1;++t<e.length;)r[t]=ra(e[t]);return n;function n(){for(var a=-1;++a<r.length;)if(r[a].apply(this,arguments))return!0;return!1}}function GD(e){return r;function r(t){return!!(t&&t.type===e)}}function VD(){return!0}});var ua=C((tE,ia)=>{ia.exports=jD;function jD(e){return e}});var ca=C((nE,sa)=>{"use strict";sa.exports=$r;var $D=na(),WD=ua(),aa=!0,oa="skip",$t=!1;$r.CONTINUE=aa;$r.SKIP=oa;$r.EXIT=$t;function $r(e,r,t,n){var a,u;typeof r=="function"&&typeof t!="function"&&(n=t,t=r,r=null),u=$D(r),a=n?-1:1,i(e,null,[])();function i(o,s,l){var c=typeof o=="object"&&o!==null?o:{},f;return typeof c.type=="string"&&(f=typeof c.tagName=="string"?c.tagName:typeof c.name=="string"?c.name:void 0,p.displayName="node ("+WD(c.type+(f?"<"+f+">":""))+")"),p;function p(){var d=l.concat(o),D=[],h,m;if((!r||u(o,s,l[l.length-1]||null))&&(D=HD(t(o,l)),D[0]===$t))return D;if(o.children&&D[0]!==oa)for(m=(n?o.children.length:-1)+a;m>-1&&m<o.children.length;){if(h=i(o.children[m],m,d)(),h[0]===$t)return h;m=typeof h[1]=="number"?h[1]:m+a}return D}}}function HD(e){return e!==null&&typeof e=="object"&&"length"in e?e:typeof e=="number"?[aa,e]:[e]}});var fa=C((iE,la)=>{"use strict";la.exports=Hr;var Wr=ca(),KD=Wr.CONTINUE,JD=Wr.SKIP,XD=Wr.EXIT;Hr.CONTINUE=KD;Hr.SKIP=JD;Hr.EXIT=XD;function Hr(e,r,t,n){typeof r=="function"&&typeof t!="function"&&(n=t,t=r,r=null),Wr(e,r,a,n);function a(u,i){var o=i[i.length-1],s=o?o.children.indexOf(u):null;return t(u,s,o)}}});var pa=C((uE,Da)=>{"use strict";var QD=fa();Da.exports=ZD;function ZD(e,r){return QD(e,r?ep:rp),e}function ep(e){delete e.position}function rp(e){e.position=void 0}});var ma=C((aE,da)=>{"use strict";var ha=Ie(),tp=pa();da.exports=up;var np=`
|
||
|
`,ip=/\r\n|\r/g;function up(){var e=this,r=String(e.file),t={line:1,column:1,offset:0},n=ha(t),a;return r=r.replace(ip,np),r.charCodeAt(0)===65279&&(r=r.slice(1),n.column++,n.offset++),a={type:"root",children:e.tokenizeBlock(r,n),position:{start:t,end:e.eof||ha(t)}},e.options.position||tp(a,!0),a}});var ga=C((oE,Fa)=>{"use strict";var ap=/^[ \t]*(\n|$)/;Fa.exports=op;function op(e,r,t){for(var n,a="",u=0,i=r.length;u<i&&(n=ap.exec(r.slice(u)),n!=null);)u+=n[0].length,a+=n[0];if(a!==""){if(t)return!0;e(a)}}});var Kr=C((sE,va)=>{"use strict";var me="",Wt;va.exports=sp;function sp(e,r){if(typeof e!="string")throw new TypeError("expected a string");if(r===1)return e;if(r===2)return e+e;var t=e.length*r;if(Wt!==e||typeof Wt>"u")Wt=e,me="";else if(me.length>=t)return me.substr(0,t);for(;t>me.length&&r>1;)r&1&&(me+=e),r>>=1,e+=e;return me+=e,me=me.substr(0,t),me}});var Ht=C((cE,Ea)=>{"use strict";Ea.exports=cp;function cp(e){return String(e).replace(/\n+$/,"")}});var ya=C((lE,ba)=>{"use strict";var lp=Kr(),fp=Ht();ba.exports=hp;var Kt=`
|
||
|
`,Ca=" ",Jt=" ",Dp=4,pp=lp(Jt,Dp);function hp(e,r,t){for(var n=-1,a=r.length,u="",i="",o="",s="",l,c,f;++n<a;)if(l=r.charAt(n),f)if(f=!1,u+=o,i+=s,o="",s="",l===Kt)o=l,s=l;else for(u+=l,i+=l;++n<a;){if(l=r.charAt(n),!l||l===Kt){s=l,o=l;break}u+=l,i+=l}else if(l===Jt&&r.charAt(n+1)===l&&r.charAt(n+2)===l&&r.charAt(n+3)===l)o+=pp,n+=3,f=!0;else if(l===Ca)o+=l,f=!0;else{for(c="";l===Ca||l===Jt;)c+=l,l=r.charAt(++n);if(l!==Kt)break;o+=c+l,s+=l}if(i)return t?!0:e(u)({type:"code",lang:null,meta:null,value:fp(i)})}});var xa=C((fE,wa)=>{"use strict";wa.exports=gp;var Jr=`
|
||
|
`,mr=" ",Je=" ",dp="~",Aa="`",mp=3,Fp=4;function gp(e,r,t){var n=this,a=n.options.gfm,u=r.length+1,i=0,o="",s,l,c,f,p,d,D,h,m,F,y,E,B;if(a){for(;i<u&&(c=r.charAt(i),!(c!==Je&&c!==mr));)o+=c,i++;if(E=i,c=r.charAt(i),!(c!==dp&&c!==Aa)){for(i++,l=c,s=1,o+=c;i<u&&(c=r.charAt(i),c===l);)o+=c,s++,i++;if(!(s<mp)){for(;i<u&&(c=r.charAt(i),!(c!==Je&&c!==mr));)o+=c,i++;for(f="",D="";i<u&&(c=r.charAt(i),!(c===Jr||l===Aa&&c===l));)c===Je||c===mr?D+=c:(f+=D+c,D=""),i++;if(c=r.charAt(i),!(c&&c!==Jr)){if(t)return!0;B=e.now(),B.column+=o.length,B.offset+=o.length,o+=f,f=n.decode.raw(n.unescape(f),B),D&&(o+=D),D="",F="",y="",h="",m="";for(var b=!0;i<u;){if(c=r.charAt(i),h+=F,m+=y,F="",y="",c!==Jr){h+=c,y+=c,i++;continue}for(b?(o+=c,b=!1):(F+=c,y+=c),D="",i++;i<u&&(c=r.charAt(i),c===Je);)D+=c,i++;if(F+=D,y+=D.slice(E),!(D.length>=Fp)){for(D="";i<u&&(c=r.charAt(i),c===l);)D+=c,i++;if(F+=D,y+=D,!(D.length<s)){for(D="";i<u&&(c=r.charAt(i),!(c!==Je&&c!==mr));)F+=c,y+=c,i++;if(!c||c===Jr)break}}}for(o+=h+F,i=-1,u=f.length;++i<u;)if(c=f.charAt(i),c===Je||c===mr)p||(p=f.slice(0,i));else if(p){d=f.slice(i);break}return e(o)({type:"code",lang:p||f||null,meta:d||null,value:m})}}}}}});var Re=C((Xe,ka)=>{Xe=ka.exports=vp;function vp(e){return e.trim?e.trim():Xe.right(Xe.left(e))}Xe.left=function(e){return e.trimLeft?e.trimLeft():e.replace(/^\s\s*/,"")};Xe.right=function(e){if(e.trimRight)return e.trimRight();for(var r=/\s/,t=e.length;r.test(e.charAt(--t)););return e.slice(0,t+1)}});var Xr=C((DE,Ba)=>{"use strict";Ba.exports=Ep;function Ep(e,r,t,n){for(var a=e.length,u=-1,i,o;++u<a;)if(i=e[u],o=i[1]||{},!(o.pedantic!==void 0&&o.pedantic!==t.options.pedantic)&&!(o.commonmark!==void 0&&o.commonmark!==t.options.commonmark)&&r[i[0]].apply(t,n))return!0;return!1}});var Sa=C((pE,_a)=>{"use strict";var Cp=Re(),bp=Xr();_a.exports=yp;var Xt=`
|
||
|
`,Ta=" ",Qt=" ",qa=">";function yp(e,r,t){for(var n=this,a=n.offset,u=n.blockTokenizers,i=n.interruptBlockquote,o=e.now(),s=o.line,l=r.length,c=[],f=[],p=[],d,D=0,h,m,F,y,E,B,b,g;D<l&&(h=r.charAt(D),!(h!==Qt&&h!==Ta));)D++;if(r.charAt(D)===qa){if(t)return!0;for(D=0;D<l;){for(F=r.indexOf(Xt,D),B=D,b=!1,F===-1&&(F=l);D<l&&(h=r.charAt(D),!(h!==Qt&&h!==Ta));)D++;if(r.charAt(D)===qa?(D++,b=!0,r.charAt(D)===Qt&&D++):D=B,y=r.slice(D,F),!b&&!Cp(y)){D=B;break}if(!b&&(m=r.slice(D),bp(i,u,n,[e,m,!0])))break;E=B===D?y:r.slice(B,F),p.push(D-B),c.push(E),f.push(y),D=F+1}for(D=-1,l=p.length,d=e(c.join(Xt));++D<l;)a[s]=(a[s]||0)+p[D],s++;return g=n.enterBlock(),f=n.tokenizeBlock(f.join(Xt),o),g(),d({type:"blockquote",children:f})}}});var Pa=C((hE,La)=>{"use strict";La.exports=wp;var Oa=`
|
||
|
`,Fr=" ",gr=" ",vr="#",Ap=6;function wp(e,r,t){for(var n=this,a=n.options.pedantic,u=r.length+1,i=-1,o=e.now(),s="",l="",c,f,p;++i<u;){if(c=r.charAt(i),c!==gr&&c!==Fr){i--;break}s+=c}for(p=0;++i<=u;){if(c=r.charAt(i),c!==vr){i--;break}s+=c,p++}if(!(p>Ap)&&!(!p||!a&&r.charAt(i+1)===vr)){for(u=r.length+1,f="";++i<u;){if(c=r.charAt(i),c!==gr&&c!==Fr){i--;break}f+=c}if(!(!a&&f.length===0&&c&&c!==Oa)){if(t)return!0;for(s+=f,f="",l="";++i<u&&(c=r.charAt(i),!(!c||c===Oa));){if(c!==gr&&c!==Fr&&c!==vr){l+=f+c,f="";continue}for(;c===gr||c===Fr;)f+=c,c=r.charAt(++i);if(!a&&l&&!f&&c===vr){l+=c;continue}for(;c===vr;)f+=c,c=r.charAt(++i);for(;c===gr||c===Fr;)f+=c,c=r.charAt(++i);i--}return o.column+=s.length,o.offset+=s.length,s+=l+f,e(s)({type:"heading",depth:p,children:n.tokenizeInline(l,o)})}}}});var Ra=C((dE,Na)=>{"use strict";Na.exports=Sp;var xp=" ",kp=`
|
||
|
`,Ia=" ",Bp="*",Tp="-",qp="_",_p=3;function Sp(e,r,t){for(var n=-1,a=r.length+1,u="",i,o,s,l;++n<a&&(i=r.charAt(n),!(i!==xp&&i!==Ia));)u+=i;if(!(i!==Bp&&i!==Tp&&i!==qp))for(o=i,u+=i,s=1,l="";++n<a;)if(i=r.charAt(n),i===o)s++,u+=l+o,l="";else if(i===Ia)l+=i;else return s>=_p&&(!i||i===kp)?(u+=l,t?!0:e(u)({type:"thematicBreak"})):void 0}});var Zt=C((mE,Ma)=>{"use strict";Ma.exports=Ip;var Ua=" ",Op=" ",Lp=1,Pp=4;function Ip(e){for(var r=0,t=0,n=e.charAt(r),a={},u,i=0;n===Ua||n===Op;){for(u=n===Ua?Pp:Lp,t+=u,u>1&&(t=Math.floor(t/u)*u);i<t;)a[++i]=r;n=e.charAt(++r)}return{indent:t,stops:a}}});var Ga=C((FE,Ya)=>{"use strict";var Np=Re(),Rp=Kr(),Up=Zt();Ya.exports=Yp;var za=`
|
||
|
`,Mp=" ",zp="!";function Yp(e,r){var t=e.split(za),n=t.length+1,a=1/0,u=[],i,o,s;for(t.unshift(Rp(Mp,r)+zp);n--;)if(o=Up(t[n]),u[n]=o.stops,Np(t[n]).length!==0)if(o.indent)o.indent>0&&o.indent<a&&(a=o.indent);else{a=1/0;break}if(a!==1/0)for(n=t.length;n--;){for(s=u[n],i=a;i&&!(i in s);)i--;t[n]=t[n].slice(s[i]+1)}return t.shift(),t.join(za)}});var Ka=C((gE,Ha)=>{"use strict";var Gp=Re(),Vp=Kr(),Va=Ne(),jp=Zt(),$p=Ga(),Wp=Xr();Ha.exports=rh;var en="*",Hp="_",ja="+",rn="-",$a=".",Fe=" ",ae=`
|
||
|
`,Qr=" ",Wa=")",Kp="x",xe=4,Jp=/\n\n(?!\s*$)/,Xp=/^\[([ X\tx])][ \t]/,Qp=/^([ \t]*)([*+-]|\d+[.)])( {1,4}(?! )| |\t|$|(?=\n))([^\n]*)/,Zp=/^([ \t]*)([*+-]|\d+[.)])([ \t]+)/,eh=/^( {1,4}|\t)?/gm;function rh(e,r,t){for(var n=this,a=n.options.commonmark,u=n.options.pedantic,i=n.blockTokenizers,o=n.interruptList,s=0,l=r.length,c=null,f,p,d,D,h,m,F,y,E,B,b,g,A,w,v,x,k,T,q,R=!1,O,S,_,L;s<l&&(D=r.charAt(s),!(D!==Qr&&D!==Fe));)s++;if(D=r.charAt(s),D===en||D===ja||D===rn)h=D,d=!1;else{for(d=!0,p="";s<l&&(D=r.charAt(s),!!Va(D));)p+=D,s++;if(D=r.charAt(s),!p||!(D===$a||a&&D===Wa)||t&&p!=="1")return;c=parseInt(p,10),h=D}if(D=r.charAt(++s),!(D!==Fe&&D!==Qr&&(u||D!==ae&&D!==""))){if(t)return!0;for(s=0,w=[],v=[],x=[];s<l;){for(m=r.indexOf(ae,s),F=s,y=!1,L=!1,m===-1&&(m=l),f=0;s<l;){if(D=r.charAt(s),D===Qr)f+=xe-f%xe;else if(D===Fe)f++;else break;s++}if(k&&f>=k.indent&&(L=!0),D=r.charAt(s),E=null,!L){if(D===en||D===ja||D===rn)E=D,s++,f++;else{for(p="";s<l&&(D=r.charAt(s),!!Va(D));)p+=D,s++;D=r.charAt(s),s++,p&&(D===$a||a&&D===Wa)&&(E=D,f+=p.length+1)}if(E)if(D=r.charAt(s),D===Qr)f+=xe-f%xe,s++;else if(D===Fe){for(_=s+xe;s<_&&r.charAt(s)===Fe;)s++,f++;s===_&&r.charAt(s)===Fe&&(s-=xe-1,f-=xe-1)}else D!==ae&&D!==""&&(E=null)}if(E){if(!u&&h!==E)break;y=!0}else!a&&!L&&r.charAt(F)===Fe?L=!0:a&&k&&(L=f>=k.indent||f>xe),y=!1,s=F;if(b=r.slice(F,m),B=F===s?b:r.slice(s,m),(E===en||E===Hp||E===rn)&&i.thematicBreak.call(n,e,b,!0))break;if(g=A,A=!y&&!Gp(B).length,L&&k)k.value=k.value.concat(x,b),v=v.concat(x,b),x=[];else if(y)x.length!==0&&(R=!0,k.value.push(""),k.trail=x.concat()),k={value:[b],indent:f,trail:[]},w.push(k),v=v.concat(x,b),x=[];else if(A){if(g&&!a)break;x.push(b)}else{if(g||Wp(o,i,n,[e,b,!0]))break;k.value=k.value.concat(x,b),v=v.concat(x,b),x=[]}s=m+1}for(O=e(v.join(ae)).reset({type:"list",ordered:d,start:c,spread:R,children:[]}),T=n.enterList(),q=n.enterBlock(),s=-1,l=w.length;++s<l;)k=w[s].value.join(ae),S=e.now(),e(k)(th(n,k,S),O),k=w[s].trail.join(ae),s!==l-1&&(k+=ae),e(k);return T(),q(),O}}function th(e,r,t){var n=e.offset,a=e.options.pedantic?nh:ih,u=null,i,o;return r=a.apply(null,arguments),e.options.gfm&&(i=r.match(Xp),i&&(o=i[0].length,u=i[1].toLowerCase()===Kp,n[t.line]+=o,r=r.slice(o))),{type:"listItem",spread:Jp.test(r),checked:u,children:e.tokenizeBlock(r,t)}}function nh(e,r,t){var n=e.offset,a=t.line;return r=r.replace(Zp,u),a=t.line,r.replace(eh,u);function u(i){return n[a]=(n[a]||0)+i.length,a++,""}}function ih(e,r,t){var n=e.offset,a=t.line,u,i,o,s,l,c,f;for(r=r.replace(Qp,p),s=r.split(ae),l=$p(r,jp(u).indent).split(ae),l[0]=o,n[a]=(n[a]||0)+i.length,a++,c=0,f=s.length;++c<f;)n[a]=(n[a]||0)+s[c].length-l[c].length,a++;return l.join(ae);function p(d,D,h,m,F){return i=D+h+m,o=F,Number(h)<10&&i.length%2===1&&(h=Fe+h),u=D+Vp(Fe,h.length)+m,u+o}}});var Za=C((vE,Qa)=>{"use strict";Qa.exports=lh;var tn=`
|
||
|
`,uh=" ",Ja=" ",Xa="=",ah="-",oh=3,sh=1,ch=2;function lh(e,r,t){for(var n=this,a=e.now(),u=r.length,i=-1,o="",s,l,c,f,p;++i<u;){if(c=r.charAt(i),c!==Ja||i>=oh){i--;break}o+=c}for(s="",l="";++i<u;){if(c=r.charAt(i),c===tn){i--;break}c===Ja||c===uh?l+=c:(s+=l+c,l="")}if(a.column+=o.length,a.offset+=o.length,o+=s+l,c=r.charAt(++i),f=r.charAt(++i),!(c!==tn||f!==Xa&&f!==ah)){for(o+=c,l=f,p=f===Xa?sh:ch;++i<u;){if(c=r.charAt(i),c!==f){if(c!==tn)return;i--;break}l+=c}return t?!0:e(o+l)({type:"heading",depth:p,children:n.tokenizeInline(s,a)})}}});var un=C(nn=>{"use strict";var fh="[a-zA-Z_:][a-zA-Z0-9:._-]*",Dh="[^\"'=<>`\\u0000-\\u0020]+",ph="'[^']*'",hh='"[^"]*"',dh="(?:"+Dh+"|"+ph+"|"+hh+")",mh="(?:\\s+"+fh+"(?:\\s*=\\s*"+dh+")?)",eo="<[A-Za-z][A-Za-z0-9\\-]*"+mh+"*\\s*\\/?>",ro="<\\/[A-Za-z][A-Za-z0-9\\-]*\\s*>",Fh="<!---->|<!--(?:-?[^>-])(?:-?[^-])*-->",gh="<[?].*?[?]>",vh="<![A-Za-z]+\\s+[^>]*>",Eh="<!\\[CDATA\\[[\\s\\S]*?\\]\\]>";nn.openCloseTag=new RegExp("^(?:"+eo+"|"+ro+")");nn.tag=new RegExp("^(?:"+eo+"|"+ro+"|"+Fh+"|"+gh+"|"+vh+"|"+Eh+")")});var uo=C((CE,io)=>{"use strict";var Ch=un().openCloseTag;io.exports=Ih;var bh=" ",yh=" ",to=`
|
||
|
`,Ah="<",wh=/^<(script|pre|style)(?=(\s|>|$))/i,xh=/<\/(script|pre|style)>/i,kh=/^<!--/,Bh=/-->/,Th=/^<\?/,qh=/\?>/,_h=/^<![A-Za-z]/,Sh=/>/,Oh=/^<!\[CDATA\[/,Lh=/]]>/,no=/^$/,Ph=new RegExp(Ch.source+"\\s*$");function Ih(e,r,t){for(var n=this,a=n.options.blocks.join("|"),u=new RegExp("^</?("+a+")(?=(\\s|/?>|$))","i"),i=r.length,o=0,s,l,c,f,p,d,D,h=[[wh,xh,!0],[kh,Bh,!0],[Th,qh,!0],[_h,Sh,!0],[Oh,Lh,!0],[u,no,!0],[Ph,no,!1]];o<i&&(f=r.charAt(o),!(f!==bh&&f!==yh));)o++;if(r.charAt(o)===Ah){for(s=r.indexOf(to,o+1),s=s===-1?i:s,l=r.slice(o,s),c=-1,p=h.length;++c<p;)if(h[c][0].test(l)){d=h[c];break}if(d){if(t)return d[2];if(o=s,!d[1].test(l))for(;o<i;){if(s=r.indexOf(to,o+1),s=s===-1?i:s,l=r.slice(o+1,s),d[1].test(l)){l&&(o=s);break}o=s}return D=r.slice(0,o),e(D)({type:"html",value:D})}}}});var oe=C((bE,ao)=>{"use strict";ao.exports=Uh;var Nh=String.fromCharCode,Rh=/\s/;function Uh(e){return Rh.test(typeof e=="number"?Nh(e):e.charAt(0))}});var an=C((yE,oo)=>{"use strict";var Mh=Br();oo.exports=zh;function zh(e){return Mh(e).toLowerCase()}});var ho=C((AE,po)=>{"use strict";var Yh=oe(),Gh=an();po.exports=Wh;var so='"',co="'",Vh="\\",Qe=`
|
||
|
`,Zr=" ",et=" ",sn="[",Er="]",jh="(",$h=")",lo=":",fo="<",Do=">";function Wh(e,r,t){for(var n=this,a=n.options.commonmark,u=0,i=r.length,o="",s,l,c,f,p,d,D,h;u<i&&(f=r.charAt(u),!(f!==et&&f!==Zr));)o+=f,u++;if(f=r.charAt(u),f===sn){for(u++,o+=f,c="";u<i&&(f=r.charAt(u),f!==Er);)f===Vh&&(c+=f,u++,f=r.charAt(u)),c+=f,u++;if(!(!c||r.charAt(u)!==Er||r.charAt(u+1)!==lo)){for(d=c,o+=c+Er+lo,u=o.length,c="";u<i&&(f=r.charAt(u),!(f!==Zr&&f!==et&&f!==Qe));)o+=f,u++;if(f=r.charAt(u),c="",s=o,f===fo){for(u++;u<i&&(f=r.charAt(u),!!on(f));)c+=f,u++;if(f=r.charAt(u),f===on.delimiter)o+=fo+c+f,u++;else{if(a)return;u-=c.length+1,c=""}}if(!c){for(;u<i&&(f=r.charAt(u),!!Hh(f));)c+=f,u++;o+=c}if(c){for(D=c,c="";u<i&&(f=r.charAt(u),!(f!==Zr&&f!==et&&f!==Qe));)c+=f,u++;if(f=r.charAt(u),p=null,f===so?p=so:f===co?p=co:f===jh&&(p=$h),!p)c="",u=o.length;else if(c){for(o+=c+f,u=o.length,c="";u<i&&(f=r.charAt(u),f!==p);){if(f===Qe){if(u++,f=r.charAt(u),f===Qe||f===p)return;c+=Qe}c+=f,u++}if(f=r.charAt(u),f!==p)return;l=o,o+=c+f,u++,h=c,c=""}else return;for(;u<i&&(f=r.charAt(u),!(f!==Zr&&f!==et));)o+=f,u++;if(f=r.charAt(u),!f||f===Qe)return t?!0:(s=e(s).test().end,D=n.decode.raw(n.unescape(D),s,{nonTerminated:!1}),h&&(l=e(l).test().end,h=n.decode.raw(n.unescape(h),l)),e(o)({type:"definition",identifier:Gh(d),label:d,title:h||null,url:D}))}}}}function on(e){return e!==Do&&e!==sn&&e!==Er}on.delimiter=Do;function Hh(e){return e!==sn&&e!==Er&&!Yh(e)}});var go=C((wE,Fo)=>{"use strict";var Kh=oe();Fo.exports=ud;var Jh=" ",rt=`
|
||
|
`,Xh=" ",Qh="-",Zh=":",ed="\\",cn="|",rd=1,td=2,mo="left",nd="center",id="right";function ud(e,r,t){var n=this,a,u,i,o,s,l,c,f,p,d,D,h,m,F,y,E,B,b,g,A,w,v;if(n.options.gfm){for(a=0,E=0,l=r.length+1,c=[];a<l;){if(A=r.indexOf(rt,a),w=r.indexOf(cn,a+1),A===-1&&(A=r.length),w===-1||w>A){if(E<td)return;break}c.push(r.slice(a,A)),E++,a=A+1}for(o=c.join(rt),u=c.splice(1,1)[0]||[],a=0,l=u.length,E--,i=!1,D=[];a<l;){if(p=u.charAt(a),p===cn){if(d=null,i===!1){if(v===!1)return}else D.push(i),i=!1;v=!1}else if(p===Qh)d=!0,i=i||null;else if(p===Zh)i===mo?i=nd:d&&i===null?i=id:i=mo;else if(!Kh(p))return;a++}if(i!==!1&&D.push(i),!(D.length<rd)){if(t)return!0;for(y=-1,b=[],g=e(o).reset({type:"table",align:D,children:b});++y<E;){for(B=c[y],s={type:"tableRow",children:[]},y&&e(rt),e(B).reset(s,g),l=B.length+1,a=0,f="",h="",m=!0;a<l;){if(p=B.charAt(a),p===Jh||p===Xh){h?f+=p:e(p),a++;continue}p===""||p===cn?m?e(p):((h||p)&&!m&&(o=h,f.length>1&&(p?(o+=f.slice(0,-1),f=f.charAt(f.length-1)):(o+=f,f="")),F=e.now(),e(o)({type:"tableCell",children:n.tokenizeInline(h,F)},s)),e(f+p),f="",h=""):(f&&(h+=f,f=""),h+=p,p===ed&&a!==l-2&&(h+=B.charAt(a+1),a++)),m=!1,a++}y||e(rt+u)}return g}}}});var Co=C((xE,Eo)=>{"use strict";var ad=Re(),od=Ht(),sd=Xr();Eo.exports=fd;var cd=" ",Cr=`
|
||
|
`,ld=" ",vo=4;function fd(e,r,t){for(var n=this,a=n.options,u=a.commonmark,i=n.blockTokenizers,o=n.interruptParagraph,s=r.indexOf(Cr),l=r.length,c,f,p,d,D;s<l;){if(s===-1){s=l;break}if(r.charAt(s+1)===Cr)break;if(u){for(d=0,c=s+1;c<l;){if(p=r.charAt(c),p===cd){d=vo;break}else if(p===ld)d++;else break;c++}if(d>=vo&&p!==Cr){s=r.indexOf(Cr,s+1);continue}}if(f=r.slice(s+1),sd(o,i,n,[e,f,!0]))break;if(c=s,s=r.indexOf(Cr,s+1),s!==-1&&ad(r.slice(c,s))===""){s=c;break}}return f=r.slice(0,s),t?!0:(D=e.now(),f=od(f),e(f)({type:"paragraph",children:n.tokenizeInline(f,D)}))}});var yo=C((kE,bo)=>{"use strict";bo.exports=Dd;function Dd(e,r){return e.indexOf("\\",r)}});var ko=C((BE,xo)=>{"use strict";var pd=yo();xo.exports=wo;wo.locator=pd;var hd=`
|
||
|
`,Ao="\\";function wo(e,r,t){var n=this,a,u;if(r.charAt(0)===Ao&&(a=r.charAt(1),n.escape.indexOf(a)!==-1))return t?!0:(a===hd?u={type:"break"}:u={type:"text",value:a},e(Ao+a)(u))}});var ln=C((TE,Bo)=>{"use strict";Bo.exports=dd;function dd(e,r){return e.indexOf("<",r)}});var Oo=C((qE,So)=>{"use strict";var To=oe(),md=dr(),Fd=ln();So.exports=hn;hn.locator=Fd;hn.notInLink=!0;var qo="<",fn=">",_o="@",Dn="/",pn="mailto:",tt=pn.length;function hn(e,r,t){var n=this,a="",u=r.length,i=0,o="",s=!1,l="",c,f,p,d,D;if(r.charAt(0)===qo){for(i++,a=qo;i<u&&(c=r.charAt(i),!(To(c)||c===fn||c===_o||c===":"&&r.charAt(i+1)===Dn));)o+=c,i++;if(o){if(l+=o,o="",c=r.charAt(i),l+=c,i++,c===_o)s=!0;else{if(c!==":"||r.charAt(i+1)!==Dn)return;l+=Dn,i++}for(;i<u&&(c=r.charAt(i),!(To(c)||c===fn));)o+=c,i++;if(c=r.charAt(i),!(!o||c!==fn))return t?!0:(l+=o,p=l,a+=l+c,f=e.now(),f.column++,f.offset++,s&&(l.slice(0,tt).toLowerCase()===pn?(p=p.slice(tt),f.column+=tt,f.offset+=tt):l=pn+l),d=n.inlineTokenizers,n.inlineTokenizers={text:d.text},D=n.enterLink(),p=n.tokenizeInline(p,f),n.inlineTokenizers=d,D(),e(a)({type:"link",title:null,url:md(l,{nonTerminated:!1}),children:p}))}}}});var Po=C((_E,Lo)=>{"use strict";Lo.exports=gd;function gd(e,r){var t=String(e),n=0,a;if(typeof r!="string")throw new Error("Expected character");for(a=t.indexOf(r);a!==-1;)n++,a=t.indexOf(r,a+r.length);return n}});var Ro=C((SE,No)=>{"use strict";No.exports=vd;var Io=["www.","http://","https://"];function vd(e,r){var t=-1,n,a,u;if(!this.options.gfm)return t;for(a=Io.length,n=-1;++n<a;)u=e.indexOf(Io[n],r),u!==-1&&(t===-1||u<t)&&(t=u);return t}});var Go=C((OE,Yo)=>{"use strict";var Uo=Po(),Ed=dr(),Cd=Ne(),dn=We(),bd=oe(),yd=Ro();Yo.exports=Fn;Fn.locator=yd;Fn.notInLink=!0;var Ad=33,wd=38,xd=41,kd=42,Bd=44,Td=45,mn=46,qd=58,_d=59,Sd=63,Od=60,Mo=95,Ld=126,Pd="(",zo=")";function Fn(e,r,t){var n=this,a=n.options.gfm,u=n.inlineTokenizers,i=r.length,o=-1,s=!1,l,c,f,p,d,D,h,m,F,y,E,B,b,g;if(a){if(r.slice(0,4)==="www.")s=!0,p=4;else if(r.slice(0,7).toLowerCase()==="http://")p=7;else if(r.slice(0,8).toLowerCase()==="https://")p=8;else return;for(o=p-1,f=p,l=[];p<i;){if(h=r.charCodeAt(p),h===mn){if(o===p-1)break;l.push(p),o=p,p++;continue}if(Cd(h)||dn(h)||h===Td||h===Mo){p++;continue}break}if(h===mn&&(l.pop(),p--),l[0]!==void 0&&(c=l.length<2?f:l[l.length-2]+1,r.slice(c,p).indexOf("_")===-1)){if(t)return!0;for(m=p,d=p;p<i&&(h=r.charCodeAt(p),!(bd(h)||h===Od));)p++,h===Ad||h===kd||h===Bd||h===mn||h===qd||h===Sd||h===Mo||h===Ld||(m=p);if(p=m,r.charCodeAt(p-1)===xd)for(D=r.slice(d,p),F=Uo(D,Pd),y=Uo(D,zo);y>F;)p=d+D.lastIndexOf(zo),D=r.slice(d,p),y--;if(r.charCodeAt(p-1)===_d&&(p--,dn(r.charCodeAt(p-1)))){for(m=p-2;dn(r.charCodeAt(m));)m--;r.charCodeAt(m)===wd&&(p=m)}return E=r.slice(0,p),b=Ed(E,{nonTerminated:!1}),s&&(b="http://"+b),g=n.enterLink(),n.inlineTokenizers={text:u.text},B=n.tokenizeInline(E,e.now()),n.inlineTokenizers=u,g(),e(E)({type:"link",title:null,url:b,children:B})}}}});var Wo=C((LE,$o)=>{"use strict";var Id=Ne(),Nd=We(),Rd=43,Ud=45,Md=46,zd=95;$o.exports=jo;function jo(e,r){var t=this,n,a;if(!this.options.gfm||(n=e.indexOf("@",r),n===-1))return-1;if(a=n,a===r||!Vo(e.charCodeAt(a-1)))return jo.call(t,e,n+1);for(;a>r&&Vo(e.charCodeAt(a-1));)a--;return a}function Vo(e){return Id(e)||Nd(e)||e===Rd||e===Ud||e===Md||e===zd}});var Xo=C((PE,Jo)=>{"use strict";var Yd=dr(),Ho=Ne(),Ko=We(),Gd=Wo();Jo.exports=En;En.locator=Gd;En.notInLink=!0;var Vd=43,gn=45,nt=46,jd=64,vn=95;function En(e,r,t){var n=this,a=n.options.gfm,u=n.inlineTokenizers,i=0,o=r.length,s=-1,l,c,f,p;if(a){for(l=r.charCodeAt(i);Ho(l)||Ko(l)||l===Vd||l===gn||l===nt||l===vn;)l=r.charCodeAt(++i);if(i!==0&&l===jd){for(i++;i<o;){if(l=r.charCodeAt(i),Ho(l)||Ko(l)||l===gn||l===nt||l===vn){i++,s===-1&&l===nt&&(s=i);continue}break}if(!(s===-1||s===i||l===gn||l===vn))return l===nt&&i--,c=r.slice(0,i),t?!0:(p=n.enterLink(),n.inlineTokenizers={text:u.text},f=n.tokenizeInline(c,e.now()),n.inlineTokenizers=u,p(),e(c)({type:"link",title:null,url:"mailto:"+Yd(c,{nonTerminated:!1}),children:f}))}}}});var es=C((IE,Zo)=>{"use strict";var
|
||
|
`,i0="!",ts='"',ns="'",Ze="(",yr=")",bn="<",yn=">",is="[",Ar="\\",u0="]",us="`";function as(e,r,t){var n=this,a="",u=0,i=r.charAt(0),o=n.options.pedantic,s=n.options.commonmark,l=n.options.gfm,c,f,p,d,D,h,m,F,y,E,B,b,g,A,w,v,x,k;if(i===i0&&(F=!0,a=i,i=r.charAt(++u)),i===is&&!(!F&&n.inLink)){for(a+=i,A="",u++,B=r.length,v=e.now(),g=0,v.column+=u,v.offset+=u;u<B;){if(i=r.charAt(u),h=i,i===us){for(f=1;r.charAt(u+1)===us;)h+=i,u++,f++;p?f>=p&&(p=0):p=f}else if(i===Ar)u++,h+=r.charAt(u);else if((!p||l)&&i===is)g++;else if((!p||l)&&i===u0)if(g)g--;else{if(r.charAt(u+1)!==Ze)return;h+=Ze,c=!0,u++;break}A+=h,h="",u++}if(c){for(y=A,a+=A+h,u++;u<B&&(i=r.charAt(u),!!br(i));)a+=i,u++;if(i=r.charAt(u),A="",d=a,i===bn){for(u++,d+=bn;u<B&&(i=r.charAt(u),i!==yn);){if(s&&i===n0)return;A+=i,u++}if(r.charAt(u)!==yn)return;a+=bn+A+yn,w=A,u++}else{for(i=null,h="";u<B&&(i=r.charAt(u),!(h&&(i===ts||i===ns||s&&i===Ze)));){if(br(i)){if(!o)break;h+=i}else{if(i===Ze)g++;else if(i===yr){if(g===0)break;g--}A+=h,h="",i===Ar&&(A+=Ar,i=r.charAt(++u)),A+=i}u++}a+=A,w=A,u=a.length}for(A="";u<B&&(i=r.charAt(u),!!br(i));)A+=i,u++;if(i=r.charAt(u),a+=A,A&&(i===ts||i===ns||s&&i===Ze))if(u++,a+=i,A="",E=i===Ze?yr:i,D=a,s){for(;u<B&&(i=r.charAt(u),i!==E);)i===Ar&&(A+=Ar,i=r.charAt(++u)),u++,A+=i;if(i=r.charAt(u),i!==E)return;for(b=A,a+=A+i,u++;u<B&&(i=r.charAt(u),!!br(i));)a+=i,u++}else for(h="";u<B;){if(i=r.charAt(u),i===E)m&&(A+=E+h,h=""),m=!0;else if(!m)A+=i;else if(i===yr){a+=A+E+h,b=A;break}else br(i)?h+=i:(A+=E+h+i,h="",m=!1);u++}if(r.charAt(u)===yr)return t?!0:(a+=yr,w=n.decode.raw(n.unescape(w),e(d).test().end,{nonTerminated:!1}),b&&(D=e(D).test().end,b=n.decode.raw(n.unescape(b),D)),k={type:F?"image":"link",title:b||null,url:w},F?k.alt=n.decode.raw(n.unescape(y),v)||null:(x=n.enterLink(),k.children=n.tokenizeInline(y,v),x()),e(a)(k))}}}});var fs=C((UE,ls)=>{"use strict";var a0=oe(),o0=Cn(),s0=an();ls.exports=cs;cs.locator=o0;var An="link",c0="image",l0="shortcut",f0="collapsed",wn="full",D0="!",it="[",ut="\\",at="]";function cs(e,r,t){var n=this,a=n.options.commonmark,u=r.charAt(0),i=0,o=r.length,s="",l="",c=An,f=l0,p,d,D,h,m,F,y,E;if(u===D0&&(c=c0,l=u,u=r.charAt(++i)),u===it){for(i++,l+=u,F="",E=0;i<o;){if(u=r.charAt(i),u===it)y=!0,E++;else if(u===at){if(!E)break;E--}u===ut&&(F+=ut,u=r.charAt(++i)),F+=u,i++}if(s=F,p=F,u=r.charAt(i),u===at){if(i++,s+=u,F="",!a)for(;i<o&&(u=r.charAt(i),!!a0(u));)F+=u,i++;if(u=r.charAt(i),u===it){for(d="",F+=u,i++;i<o&&(u=r.charAt(i),!(u===it||u===at));)u===ut&&(d+=ut,u=r.charAt(++i)),d+=u,i++;u=r.charAt(i),u===at?(f=d?wn:f0,F+=d+u,i++):d="",s+=F,F=""}else{if(!p)return;d=p}if(!(f!==wn&&y))return s=l+s,c===An&&n.inLink?null:t?!0:(D=e.now(),D.column+=l.length,D.offset+=l.length,d=f===wn?d:p,h={type:c+"Reference",identifier:s0(d),label:d,referenceType:f},c===An?(m=n.enterLink(),h.children=n.tokenizeInline(p,D),m()):h.alt=n.decode.raw(n.unescape(p),D)||null,e(s)(h))}}}});var ps=C((ME,Ds)=>{"use strict";Ds.exports=p0;function p0(e,r){var t=e.indexOf("**",r),n=e.indexOf("__",r);return n===-1?t:t===-1||n<t?n:t}});var Fs=C((zE,ms)=>{"use strict";var h0=Re(),hs=oe(),d0=ps();ms.exports=ds;ds.locator=d0;var m0="\\",F0="*",g0="_";function ds(e,r,t){var n=this,a=0,u=r.charAt(a),i,o,s,l,c,f,p;if(!(u!==F0&&u!==g0||r.charAt(++a)!==u)&&(o=n.options.pedantic,s=u,c=s+s,f=r.length,a++,l="",u="",!(o&&hs(r.charAt(a)))))for(;a<f;){if(p=u,u=r.charAt(a),u===s&&r.charAt(a+1)===s&&(!o||!hs(p))&&(u=r.charAt(a+2),u!==s))return h0(l)?t?!0:(i=e.now(),i.column+=2,i.offset+=2,e(c+l+c)({type:"strong",children:n.tokenizeInline(l,i)})):void 0;!o&&u===m0&&(l+=u,u=r.charAt(++a)),l+=u,a++}}});var vs=C((YE,gs)=>{"use strict";gs.exports=C0;var v0=String.fromCharCode,E0=/\w/;function C0(e){return E0.test(typeof e=="number"?v0(e):e.charAt(0))}});var Cs=C((GE,Es)=>{"use strict";Es.exports=b0;function b0(e,r){var t=e.indexOf("*",r),n=e.indexOf("_",r);return n===-1?t:t===-1||n<t?n:t}});var xs=C((VE,ws)=>{"use strict";var y0=Re(),A0=vs(),bs=oe(),w0=Cs();ws.exports=As;As.locator=w0;var x0="*",ys="_",k0="\\";function As(e,r,t){var n=this,a=0,u=r.charAt(a),i,o,s,l,c,f
|
||
|
`,r);t>r&&e.charAt(t-1)===" ";)t--;return t}});var Gs=C((JE,Ys)=>{"use strict";var O0=Ms();Ys.exports=zs;zs.locator=O0;var L0=" ",P0=`
|
||
|
`,I0=2;function zs(e,r,t){for(var n=r.length,a=-1,u="",i;++a<n;){if(i=r.charAt(a),i===P0)return a<I0?void 0:t?!0:(u+=i,e(u)({type:"break"}));if(i!==L0)return;u+=i}}});var js=C((XE,Vs)=>{"use strict";Vs.exports=N0;function N0(e,r,t){var n=this,a,u,i,o,s,l,c,f,p,d;if(t)return!0;for(a=n.inlineMethods,o=a.length,u=n.inlineTokenizers,i=-1,p=r.length;++i<o;)f=a[i],!(f==="text"||!u[f])&&(c=u[f].locator,c||e.file.fail("Missing locator: `"+f+"`"),l=c.call(n,r,1),l!==-1&&l<p&&(p=l));s=r.slice(0,p),d=e.now(),n.decode(s,d,D);function D(h,m,F){e(F||h)({type:"text",value:h})}}});var Ks=C((QE,Hs)=>{"use strict";var R0=Ie(),st=fu(),U0=pu(),M0=du(),z0=Gu(),Tn=$u();Hs.exports=$s;function $s(e,r){this.file=r,this.offset={},this.options=R0(this.options),this.setOptions({}),this.inList=!1,this.inBlock=!1,this.inLink=!1,this.atStart=!0,this.toOffset=U0(r).toOffset,this.unescape=M0(this,"escape"),this.decode=z0(this)}var U=$s.prototype;U.setOptions=ea();U.parse=ma();U.options=jt();U.exitStart=st("atStart",!0);U.enterList=st("inList",!1);U.enterLink=st("inLink",!1);U.enterBlock=st("inBlock",!1);U.interruptParagraph=[["thematicBreak"],["list"],["atxHeading"],["fencedCode"],["blockquote"],["html"],["setextHeading",{commonmark:!1}],["definition",{commonmark:!1}]];U.interruptList=[["atxHeading",{pedantic:!1}],["fencedCode",{pedantic:!1}],["thematicBreak",{pedantic:!1}],["definition",{commonmark:!1}]];U.interruptBlockquote=[["indentedCode",{commonmark:!0}],["fencedCode",{commonmark:!0}],["atxHeading",{commonmark:!0}],["setextHeading",{commonmark:!0}],["thematicBreak",{commonmark:!0}],["html",{commonmark:!0}],["list",{commonmark:!0}],["definition",{commonmark:!1}]];U.blockTokenizers={blankLine:ga(),indentedCode:ya(),fencedCode:xa(),blockquote:Sa(),atxHeading:Pa(),thematicBreak:Ra(),list:Ka(),setextHeading:Za(),html:uo(),definition:ho(),table:go(),paragraph:Co()};U.inlineTokenizers={escape:ko(),autoLink:Oo(),url:Go(),email:Xo(),html:es(),link:ss(),reference:fs(),strong:Fs(),emphasis:xs(),deletion:Os(),code:Rs(),break:Gs(),text:js()};U.blockMethods=Ws(U.blockTokenizers);U.inlineMethods=Ws(U.inlineTokenizers);U.tokenizeBlock=Tn("block");U.tokenizeInline=Tn("inline");U.tokenizeFactory=Tn;function Ws(e){var r=[],t;for(t in e)r.push(t);return r}});var Zs=C((ZE,Qs)=>{"use strict";var Y0=cu(),G0=Ie(),Js=Ks();Qs.exports=Xs;Xs.Parser=Js;function Xs(e){var r=this.data("settings"),t=Y0(Js);t.prototype.options=G0(t.prototype.options,r,e),this.Parser=t}});var rc=C((eC,ec)=>{"use strict";ec.exports=V0;function V0(e){if(e)throw e}});var qn=C((rC,tc)=>{tc.exports=function(r){return r!=null&&r.constructor!=null&&typeof r.constructor.isBuffer=="function"&&r.constructor.isBuffer(r)}});var fc=C((tC,lc)=>{"use strict";var ct=Object.prototype.hasOwnProperty,cc=Object.prototype.toString,nc=Object.defineProperty,ic=Object.getOwnPropertyDescriptor,uc=function(r){return typeof Array.isArray=="function"?Array.isArray(r):cc.call(r)==="[object Array]"},ac=function(r){if(!r||cc.call(r)!=="[object Object]")return!1;var t=ct.call(r,"constructor"),n=r.constructor&&r.constructor.prototype&&ct.call(r.constructor.prototype,"isPrototypeOf");if(r.constructor&&!t&&!n)return!1;var a;for(a in r);return typeof a>"u"||ct.call(r,a)},oc=function(r,t){nc&&t.name==="__proto__"?nc(r,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):r[t.name]=t.newValue},sc=function(r,t){if(t==="__proto__")if(ct.call(r,t)){if(ic)return ic(r,t).value}else return;return r[t]};lc.exports=function e(){var r,t,n,a,u,i,o=arguments[0],s=1,l=arguments.length,c=!1;for(typeof o=="boolean"&&(c=o,o=arguments[1]||{},s=2),(o==null||typeof o!="object"&&typeof o!="function")&&(o={});s<l;++s)if(r=arguments[s],r!=null)for(t in r)n=sc(o,t),a=sc(r,t),o!==a&&(c&&a&&(ac(a)||(u=uc(a)))?(u?(u=!1,i=n&&uc(n)?n:[]):i=n&&ac(n)?n:{},oc(o,{name:t,newValue:e(c,i,a)})):typeof a<"u"&&oc(o,{name:t,newValue:a}));return o}});var pc=C((nC,Dc)=>{"use strict";Dc.exports=e=>{if(Object.prototype.toString.call(e)!=="[object Object]")return!1;let r=Object.getPrototypeOf(e);return r===null||r===Object.prototype}});var dc=C((iC,hc)=>{"use s
|
||
|
Expected it to be 'string' or 'object'.`;if(Y(e))throw new Error("doc is valid.");let t=Object.prototype.toString.call(e);if(t!=="[object Object]")return`Unexpected doc '${t}'.`;let n=El([...Tr].map(a=>`'${a}'`));return`Unexpected doc.type '${e.type}'.
|
||
|
Expected it to be ${n}.`}var pt=class extends Error{name="InvalidDocError";constructor(r){super(Cl(r)),this.doc=r}},Te=pt;var Hn={};function bl(e,r,t,n){let a=[e];for(;a.length>0;){let u=a.pop();if(u===Hn){t(a.pop());continue}t&&a.push(u,Hn);let i=Y(u);if(!i)throw new Te(u);if((r==null?void 0:r(u))!==!1)switch(i){case H:case X:{let o=i===H?u:u.parts;for(let s=o.length,l=s-1;l>=0;--l)a.push(o[l]);break}case K:a.push(u.flatContents,u.breakContents);break;case J:if(n&&u.expandedStates)for(let o=u.expandedStates.length,s=o-1;s>=0;--s)a.push(u.expandedStates[s]);else a.push(u.contents);break;case te:case re:case De:case de:case pe:a.push(u.contents);break;case G:case Ce:case fe:case he:case V:case ne:break;default:throw new Te(u)}}}var ht=bl;function yl(e,r){if(typeof e=="string")return r(e);let t=new Map;return n(e);function n(u){if(t.has(u))return t.get(u);let i=a(u);return t.set(u,i),i}function a(u){switch(Y(u)){case H:return r(u.map(n));case X:return r({...u,parts:u.parts.map(n)});case K:return r({...u,breakContents:n(u.breakContents),flatContents:n(u.flatContents)});case J:{let{expandedStates:i,contents:o}=u;return i?(i=i.map(n),o=i[0]):o=n(o),r({...u,contents:o,expandedStates:i})}case te:case re:case De:case de:case pe:return r({...u,contents:n(u.contents)});case G:case Ce:case fe:case he:case V:case ne:return r(u);default:throw new Te(u)}}}function Kn(e){if(e.length>0){let r=z(!1,e,-1);!r.expandedStates&&!r.break&&(r.break="propagated")}return null}function Jn(e){let r=new Set,t=[];function n(u){if(u.type===ne&&Kn(t),u.type===J){if(t.push(u),r.has(u))return!1;r.add(u)}}function a(u){u.type===J&&t.pop().break&&Kn(t)}ht(e,n,a,!0)}function be(e,r=tr){return yl(e,t=>typeof t=="string"?qr(r,t.split(`
|
||
|
`)):t)}var dt=()=>{},qe=dt,mt=dt,Xn=dt;function nr(e){return qe(e),{type:re,contents:e}}function ye(e,r){return qe(r),{type:te,contents:r,n:e}}function Me(e,r={}){return qe(e),mt(r.expandedStates,!0),{type:J,id:r.id,contents:e,break:!!r.shouldBreak,expandedStates:r.expandedStates}}function _e(e){return ye({type:"root"},e)}function ze(e){return Xn(e),{type:X,parts:e}}function Qn(e,r="",t={}){return qe(e),r!==""&&qe(r),{type:K,breakContents:e,flatContents:r,groupId:t.groupId}}var ir={type:ne};var ur={type:V,hard:!0},Al={type:V,hard:!0,literal:!0},_r={type:V},Sr={type:V,soft:!0},P=[ur,ir],tr=[Al,ir];function qr(e,r){qe(e),mt(r);let t=[];for(let n=0;n<r.length;n++)n!==0&&t.push(e),t.push(r[n]);return t}function wl(e,r){let t=e.match(new RegExp(`(${le(r)})+`,"gu"));return t===null?0:t.reduce((n,a)=>Math.max(n,a.length/r.length),0)}var Or=wl;function xl(e,r){let t=e.match(new RegExp(`(${le(r)})+`,"gu"));if(t===null)return 0;let n=new Map,a=0;for(let u of t){let i=u.length/r.length;n.set(i,!0),i>a&&(a=i)}for(let u=1;u<a;u++)if(!n.get(u))return u;return a+1}var Zn=xl;var Lr="'",ei='"';function kl(e,r){let t=r===!0||r===Lr?Lr:ei,n=t===Lr?ei:Lr,a=0,u=0;for(let i of e)i===t?a++:i===n&&u++;return a>u?n:t}var ri=kl;var Ft=class extends Error{name="UnexpectedNodeError";constructor(r,t,n="type"){super(`Unexpected ${t} node ${n}: ${JSON.stringify(r[n])}.`),this.node=r}},ti=Ft;var oi=Ue(Br(),1);function Bl(e){return(e==null?void 0:e.type)==="front-matter"}var ni=Bl;var ar=3;function Tl(e){let r=e.slice(0,ar);if(r!=="---"&&r!=="+++")return;let t=e.indexOf(`
|
||
|
`,ar);if(t===-1)return;let n=e.slice(ar,t).trim(),a=e.indexOf(`
|
||
|
${r}`,t),u=n;if(u||(u=r==="+++"?"toml":"yaml"),a===-1&&r==="---"&&u==="yaml"&&(a=e.indexOf(`
|
||
|
...`,t)),a===-1)return;let i=a+1+ar,o=e.charAt(i+1);if(!/\s?/u.test(o))return;let s=e.slice(0,i);return{type:"front-matter",language:u,explicitLanguage:n,value:e.slice(t+1,a),startDelimiter:r,endDelimiter:s.slice(-ar),raw:s}}function ql(e){let r=Tl(e);if(!r)return{content:e};let{raw:t}=r;return{frontMatter:r,content:N(!1,t,/[^\n]/gu," ")+e.slice(t.length)}}var or=ql;var ii=["format","prettier"];function gt(e){let r=`@(${ii.join("|")})`,t=new RegExp([`<!--\\s*${r}\\s*-->`,`\\{\\s*\\/\\*\\s*${r}\\s*\\*\\/\\s*\\}`,`<!--.*\r?
|
||
|
[\\s\\S]*(^|
|
||
|
)[^\\S
|
||
|
]*${r}[^\\S
|
||
|
]*($|
|
||
|
)[\\s\\S]*
|
||
|
.*-->`].join("|"),"mu"),n=e.match(t);return(n==null?void 0:n.index)===0}var ui=e=>gt(or(e).content.trimStart()),ai=e=>{let r=or(e),t=`<!-- @${ii[0]} -->`;return r.frontMatter?`${r.frontMatter.raw}
|
||
|
|
||
|
${t}
|
||
|
|
||
|
${r.content}`:`${t}
|
||
|
|
||
|
${r.content}`};var _l=new Set(["position","raw"]);function si(e,r,t){if((e.type==="front-matter"||e.type==="code"||e.type==="yaml"||e.type==="import"||e.type==="export"||e.type==="jsx")&&delete r.value,e.type==="list"&&delete r.isAligned,(e.type==="list"||e.type==="listItem")&&delete r.spread,e.type==="text")return null;if(e.type==="inlineCode"&&(r.value=N(!1,e.value,`
|
||
|
`," ")),e.type==="wikiLink"&&(r.value=N(!1,e.value.trim(),/[\t\n]+/gu," ")),(e.type==="definition"||e.type==="linkReference"||e.type==="imageReference")&&(r.label=(0,oi.default)(e.label)),(e.type==="link"||e.type==="image")&&e.url&&e.url.includes("("))for(let n of"<>")r.url=N(!1,e.url,n,encodeURIComponent(n));if((e.type==="definition"||e.type==="link"||e.type==="image")&&e.title&&(r.title=N(!1,e.title,/\\(?=["')])/gu,"")),(t==null?void 0:t.type)==="root"&&t.children.length>0&&(t.children[0]===e||ni(t.children[0])&&t.children[1]===e)&&e.type==="html"&>(e.value))return null}si.ignoredProperties=_l;var ci=si;var li=/(?:[\u{2ea}-\u{2eb}\u{1100}-\u{11ff}\u{2e80}-\u{2e99}\u{2e9b}-\u{2ef3}\u{2f00}-\u{2fd5}\u{2ff0}-\u{303f}\u{3041}-\u{3096}\u{3099}-\u{30ff}\u{3105}-\u{312f}\u{3131}-\u{318e}\u{3190}-\u{4dbf}\u{4e00}-\u{9fff}\u{a700}-\u{a707}\u{a960}-\u{a97c}\u{ac00}-\u{d7a3}\u{d7b0}-\u{d7c6}\u{d7cb}-\u{d7fb}\u{f900}-\u{fa6d}\u{fa70}-\u{fad9}\u{fe10}-\u{fe1f}\u{fe30}-\u{fe6f}\u{ff00}-\u{ffef}\u{16fe3}\u{1aff0}-\u{1aff3}\u{1aff5}-\u{1affb}\u{1affd}-\u{1affe}\u{1b000}-\u{1b122}\u{1b132}\u{1b150}-\u{1b152}\u{1b155}\u{1b164}-\u{1b167}\u{1f200}\u{1f250}-\u{1f251}\u{20000}-\u{2a6df}\u{2a700}-\u{2b739}\u{2b740}-\u{2b81d}\u{2b820}-\u{2cea1}\u{2ceb0}-\u{2ebe0}\u{2f800}-\u{2fa1d}\u{30000}-\u{3134a}\u{31350}-\u{323af}])(?:[\u{fe00}-\u{fe0f}\u{e0100}-\u{e01ef}])?/u,Se=/(?:[\u{21}-\u{2f}\u{3a}-\u{40}\u{5b}-\u{60}\u{7b}-\u{7e}]|\p{General_Category=Connector_Punctuation}|\p{General_Category=Dash_Punctuation}|\p{General_Category=Close_Punctuation}|\p{General_Category=Final_Punctuation}|\p{General_Category=Initial_Punctuation}|\p{General_Category=Other_Punctuation}|\p{General_Category=Open_Punctuation})/u;async function Sl(e,r){if(e.language==="yaml"){let t=e.value.trim(),n=t?await r(t,{parser:"yaml"}):"";return _e([e.startDelimiter,e.explicitLanguage,P,n,n?P:"",e.endDelimiter])}}var fi=Sl;var Ol=e=>String(e).split(/[/\\]/u).pop();function Di(e,r){if(!r)return;let t=Ol(r).toLowerCase();return e.find(({filenames:n})=>n==null?void 0:n.some(a=>a.toLowerCase()===t))??e.find(({extensions:n})=>n==null?void 0:n.some(a=>t.endsWith(a)))}function Ll(e,r){if(r)return e.find(({name:t})=>t.toLowerCase()===r)??e.find(({aliases:t})=>t==null?void 0:t.includes(r))??e.find(({extensions:t})=>t==null?void 0:t.includes(`.${r}`))}function Pl(e,r){let t=e.plugins.flatMap(a=>a.languages??[]),n=Ll(t,r.language)??Di(t,r.physicalFile)??Di(t,r.file)??(r.physicalFile,void 0);return n==null?void 0:n.parsers[0]}var pi=Pl;var Il=new Proxy(()=>{},{get:()=>Il});function Oe(e){return e.position.start.offset}function Le(e){return e.position.end.offset}var vt=new Set(["liquidNode","inlineCode","emphasis","esComment","strong","delete","wikiLink","link","linkReference","image","imageReference","footnote","footnoteReference","sentence","whitespace","word","break","inlineMath"]),Pr=new Set([...vt,"tableCell","paragraph","heading"]),Ge="non-cjk",ie="cj-letter",Pe="k-letter",sr="cjk-punctuation",Nl=/\p{Script_Extensions=Hangul}/u;function Ir(e){let r=[],t=e.split(/([\t\n ]+)/u);for(let[a,u]of t.entries()){if(a%2===1){r.push({type:"whitespace",value:/\n/u.test(u)?`
|
||
|
`:" "});continue}if((a===0||a===t.length-1)&&u==="")continue;let i=u.split(new RegExp(`(${li.source})`,"u"));for(let[o,s]of i.entries())if(!((o===0||o===i.length-1)&&s==="")){if(o%2===0){s!==""&&n({type:"word",value:s,kind:Ge,isCJ:!1,hasLeadingPunctuation:Se.test(s[0]),hasTrailingPunctuation:Se.test(z(!1,s,-1))});continue}if(Se.test(s)){n({type:"word",value:s,kind:sr,isCJ:!0,hasLeadingPunctuation:!0,hasTrailingPunctuation:!0});continue}if(Nl.test(s)){n({type:"word",value:s,kind:Pe,isCJ:!1,hasLeadingPunctuation:!1,hasTrailingPunctuation:!1});continue}n({type:"word",value:s,kind:ie,isCJ:!0,hasLeadingPunctuation:!1,hasTrailingPunctuation:!1})}}return r;function n(a){let u=z(!1,r,-1);(u==null?void 0:u.type)==="word"&&!i(Ge,sr)&&![u.value,a.value].some(o=>/\u3000/u.test(o))&&r.push({type:"whitespace",value:""}),r.push(a);function i(o,s){return u.kind===o&&a.kind===s||u.kind===s&&a.kind===o}}}function Ye(e,r){let t=r.originalText.slice(e.position.start.offset,e.position.end.offset),{numberText:n,leadingSpaces:a}=t.match(/^\s*(?<numberText>\d+)(\.|\))(?<leadingSpaces>\s*)/u).groups;return{number:Number(n),leadingSpaces:a}}function hi(e,r){return!e.ordered||e.children.length<2||Ye(e.children[1],r).number!==1?!1:Ye(e.children[0],r).number!==0?!0:e.children.length>2&&Ye(e.children[2],r).number===1}function Nr(e,r){let{value:t}=e;return e.position.end.offset===r.length&&t.endsWith(`
|
||
|
`)&&r.endsWith(`
|
||
|
`)?t.slice(0,-1):t}function Ae(e,r){return function t(n,a,u){let i={...r(n,a,u)};return i.children&&(i.children=i.children.map((o,s)=>t(o,s,[i,...u]))),i}(e,null,[])}function Et(e){if((e==null?void 0:e.type)!=="link"||e.children.length!==1)return!1;let[r]=e.children;return Oe(e)===Oe(r)&&Le(e)===Le(r)}function Rl(e,r){let{node:t}=e;if(t.type==="code"&&t.lang!==null){let n=pi(r,{language:t.lang});if(n)return async a=>{let u=r.__inJsTemplate?"~":"`",i=u.repeat(Math.max(3,Or(t.value,u)+1)),o={parser:n};t.lang==="ts"||t.lang==="typescript"?o.filepath="dummy.ts":t.lang==="tsx"&&(o.filepath="dummy.tsx");let s=await a(Nr(t,r.originalText),o);return _e([i,t.lang,t.meta?" "+t.meta:"",P,be(s),P,i])}}switch(t.type){case"front-matter":return n=>fi(t,n);case"import":case"export":return n=>n(t.value,{parser:"babel"});case"jsx":return n=>n(`<$>${t.value}</$>`,{parser:"__js_expression",rootMarker:"mdx"})}return null}var di=Rl;var cr=null;function lr(e){if(cr!==null&&typeof cr.property){let r=cr;return cr=lr.prototype=null,r}return cr=lr.prototype=e??Object.create(null),new lr}var Ul=10;for(let e=0;e<=Ul;e++)lr();function Ct(e){return lr(e)}function Ml(e,r="type"){Ct(e);function t(n){let a=n[r],u=e[a];if(!Array.isArray(u))throw Object.assign(new Error(`Missing visitor keys for '${a}'.`),{node:n});return u}return t}var mi=Ml;var zl={"front-matter":[],root:["children"],paragraph:["children"],sentence:["children"],word:[],whitespace:[],emphasis:["children"],strong:["children"],delete:["children"],inlineCode:[],wikiLink:[],link:["children"],image:[],blockquote:["children"],heading:["children"],code:[],html:[],list:["children"],thematicBreak:[],linkReference:["children"],imageReference:[],definition:[],footnote:["children"],footnoteReference:[],footnoteDefinition:["children"],table:["children"],tableCell:["children"],break:[],liquidNode:[],import:[],export:[],esComment:[],jsx:[],math:[],inlineMath:[],tableRow:["children"],listItem:["children"],text:[]},Fi=zl;var Yl=mi(Fi),gi=Yl;function vi(e){switch(e){case"cr":return"\r";case"crlf":return`\r
|
||
|
`;default:return`
|
||
|
`}}var Ei=()=>/[#*0-9]\uFE0F?\u20E3|[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23ED-\u23EF\u23F1\u23F2\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB\u25FC\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692\u2694-\u2697\u2699\u269B\u269C\u26A0\u26A7\u26AA\u26B0\u26B1\u26BD\u26BE\u26C4\u26C8\u26CF\u26D1\u26E9\u26F0-\u26F5\u26F7\u26F8\u26FA\u2702\u2708\u2709\u270F\u2712\u2714\u2716\u271D\u2721\u2733\u2734\u2744\u2747\u2757\u2763\u27A1\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B55\u3030\u303D\u3297\u3299]\uFE0F?|[\u261D\u270C\u270D](?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?|[\u270A\u270B](?:\uD83C[\uDFFB-\uDFFF])?|[\u23E9-\u23EC\u23F0\u23F3\u25FD\u2693\u26A1\u26AB\u26C5\u26CE\u26D4\u26EA\u26FD\u2705\u2728\u274C\u274E\u2753-\u2755\u2795-\u2797\u27B0\u27BF\u2B50]|\u26D3\uFE0F?(?:\u200D\uD83D\uDCA5)?|\u26F9(?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?(?:\u200D[\u2640\u2642]\uFE0F?)?|\u2764\uFE0F?(?:\u200D(?:\uD83D\uDD25|\uD83E\uDE79))?|\uD83C(?:[\uDC04\uDD70\uDD71\uDD7E\uDD7F\uDE02\uDE37\uDF21\uDF24-\uDF2C\uDF36\uDF7D\uDF96\uDF97\uDF99-\uDF9B\uDF9E\uDF9F\uDFCD\uDFCE\uDFD4-\uDFDF\uDFF5\uDFF7]\uFE0F?|[\uDF85\uDFC2\uDFC7](?:\uD83C[\uDFFB-\uDFFF])?|[\uDFC4\uDFCA](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDFCB\uDFCC](?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDCCF\uDD8E\uDD91-\uDD9A\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF43\uDF45-\uDF4A\uDF4C-\uDF7C\uDF7E-\uDF84\uDF86-\uDF93\uDFA0-\uDFC1\uDFC5\uDFC6\uDFC8\uDFC9\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF8-\uDFFF]|\uDDE6\uD83C[\uDDE8-\uDDEC\uDDEE\uDDF1\uDDF2\uDDF4\uDDF6-\uDDFA\uDDFC\uDDFD\uDDFF]|\uDDE7\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEF\uDDF1-\uDDF4\uDDF6-\uDDF9\uDDFB\uDDFC\uDDFE\uDDFF]|\uDDE8\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDEE\uDDF0-\uDDF7\uDDFA-\uDDFF]|\uDDE9\uD83C[\uDDEA\uDDEC\uDDEF\uDDF0\uDDF2\uDDF4\uDDFF]|\uDDEA\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDED\uDDF7-\uDDFA]|\uDDEB\uD83C[\uDDEE-\uDDF0\uDDF2\uDDF4\uDDF7]|\uDDEC\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEE\uDDF1-\uDDF3\uDDF5-\uDDFA\uDDFC\uDDFE]|\uDDED\uD83C[\uDDF0\uDDF2\uDDF3\uDDF7\uDDF9\uDDFA]|\uDDEE\uD83C[\uDDE8-\uDDEA\uDDF1-\uDDF4\uDDF6-\uDDF9]|\uDDEF\uD83C[\uDDEA\uDDF2\uDDF4\uDDF5]|\uDDF0\uD83C[\uDDEA\uDDEC-\uDDEE\uDDF2\uDDF3\uDDF5\uDDF7\uDDFC\uDDFE\uDDFF]|\uDDF1\uD83C[\uDDE6-\uDDE8\uDDEE\uDDF0\uDDF7-\uDDFB\uDDFE]|\uDDF2\uD83C[\uDDE6\uDDE8-\uDDED\uDDF0-\uDDFF]|\uDDF3\uD83C[\uDDE6\uDDE8\uDDEA-\uDDEC\uDDEE\uDDF1\uDDF4\uDDF5\uDDF7\uDDFA\uDDFF]|\uDDF4\uD83C\uDDF2|\uDDF5\uD83C[\uDDE6\uDDEA-\uDDED\uDDF0-\uDDF3\uDDF7-\uDDF9\uDDFC\uDDFE]|\uDDF6\uD83C\uDDE6|\uDDF7\uD83C[\uDDEA\uDDF4\uDDF8\uDDFA\uDDFC]|\uDDF8\uD83C[\uDDE6-\uDDEA\uDDEC-\uDDF4\uDDF7-\uDDF9\uDDFB\uDDFD-\uDDFF]|\uDDF9\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDED\uDDEF-\uDDF4\uDDF7\uDDF9\uDDFB\uDDFC\uDDFF]|\uDDFA\uD83C[\uDDE6\uDDEC\uDDF2\uDDF3\uDDF8\uDDFE\uDDFF]|\uDDFB\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDEE\uDDF3\uDDFA]|\uDDFC\uD83C[\uDDEB\uDDF8]|\uDDFD\uD83C\uDDF0|\uDDFE\uD83C[\uDDEA\uDDF9]|\uDDFF\uD83C[\uDDE6\uDDF2\uDDFC]|\uDF44(?:\u200D\uD83D\uDFEB)?|\uDF4B(?:\u200D\uD83D\uDFE9)?|\uDFC3(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?|\uDFF3\uFE0F?(?:\u200D(?:\u26A7\uFE0F?|\uD83C\uDF08))?|\uDFF4(?:\u200D\u2620\uFE0F?|\uDB40\uDC67\uDB40\uDC62\uDB40(?:\uDC65\uDB40\uDC6E\uDB40\uDC67|\uDC73\uDB40\uDC63\uDB40\uDC74|\uDC77\uDB40\uDC6C\uDB40\uDC73)\uDB40\uDC7F)?)|\uD83D(?:[\uDC3F\uDCFD\uDD49\uDD4A\uDD6F\uDD70\uDD73\uDD76-\uDD79\uDD87\uDD8A-\uDD8D\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA\uDECB\uDECD-\uDECF\uDEE0-\uDEE5\uDEE9\uDEF0\uDEF3]\uFE0F?|[\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDC8F\uDC91\uDCAA\uDD7A\uDD95\uDD96\uDE4C\uDE4F\uDEC0\uDECC](?:\uD83C[\uDFFB-\uDFFF])?|[\uDC6E\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4\uDEB5](?:\uD83C[\uDFFB-\uD
|
||
|
`?N(!1,D,`
|
||
|
`,a):D;o.push(h),i.length>0&&(u+=fr(h));break}case H:for(let h=D.length-1;h>=0;h--)i.push({ind:p,mode:d,doc:D[h]});break;case Ce:if(c>=2)throw new Error("There are too many 'cursor' in doc.");o.push(Ve),c++;break;case re:i.push({ind:jl(p,r),mode:d,doc:D.contents});break;case te:i.push({ind:$l(p,D.n,r),mode:d,doc:D.contents});break;case fe:u-=At(o);break;case J:switch(d){case ue:if(!s){i.push({ind:p,mode:D.break?j:ue,doc:D.contents});break}case j:{s=!1;let h={ind:p,mode:ue,doc:D.contents},m=n-u,F=l.length>0;if(!D.break&&Rr(h,i,m,F,t))i.push(h);else if(D.expandedStates){let y=z(!1,D.expandedStates,-1);if(D.break){i.push({ind:p,mode:j,doc:y});break}else for(let E=1;E<D.expandedStates.length+1;E++)if(E>=D.expandedStates.length){i.push({ind:p,mode:j,doc:y});break}else{let B=D.expandedStates[E],b={ind:p,mode:ue,doc:B};if(Rr(b,i,m,F,t)){i.push(b);break}}}else i.push({ind:p,mode:j,doc:D.contents});break}}D.id&&(t[D.id]=z(!1,i,-1).mode);break;case X:{let h=n-u,m=D[bt]??0,{parts:F}=D,y=F.length-m;if(y===0)break;let E=F[m+0],B=F[m+1],b={ind:p,mode:ue,doc:E},g={ind:p,mode:j,doc:E},A=Rr(b,[],h,l.length>0,t,!0);if(y===1){A?i.push(b):i.push(g);break}let w={ind:p,mode:ue,doc:B},v={ind:p,mode:j,doc:B};if(y===2){A?i.push(w,b):i.push(v,g);break}let x=F[m+2],k={ind:p,mode:d,doc:{...D,[bt]:m+2}};Rr({ind:p,mode:ue,doc:[E,B,x]},[],h,l.length>0,t,!0)?i.push(k,w,b):A?i.push(k,v,b):i.push(k,v,g);break}case K:case De:{let h=D.groupId?t[D.groupId]:d;if(h===j){let m=D.type===K?D.breakContents:D.negate?D.contents:nr(D.contents);m&&i.push({ind:p,mode:d,doc:m})}if(h===ue){let m=D.type===K?D.flatContents:D.negate?nr(D.contents):D.contents;m&&i.push({ind:p,mode:d,doc:m})}break}case pe:l.push({ind:p,mode:d,doc:D.contents});break;case he:l.length>0&&i.push({ind:p,mode:d,doc:ur});break;case V:switch(d){case ue:if(D.hard)s=!0;else{D.soft||(o.push(" "),u+=1);break}case j:if(l.length>0){i.push({ind:p,mode:d,doc:D},...l.reverse()),l.length=0;break}D.literal?p.root?(o.push(a,p.root.value),u=p.root.length):(o.push(a),u=0):(u-=At(o),o.push(a+p.value),u=p.length);break}break;case de:i.push({ind:p,mode:d,doc:D.contents});break;case ne:break;default:throw new Te(D)}i.length===0&&l.length>0&&(i.push(...l.reverse()),l.length=0)}let f=o.indexOf(Ve);if(f!==-1){let p=o.indexOf(Ve,f+1);if(p===-1)return{formatted:o.filter(m=>m!==Ve).join("")};let d=o.slice(0,f).join(""),D=o.slice(f+1,p).join(""),h=o.slice(p+1).join("");return{formatted:d+D+h,cursorNodeStart:d.length,cursorNodeText:D}}return{formatted:o.join("")}}function xi(e,r,t){let{node:n}=e,a=[],u=e.map(()=>e.map(({index:f})=>{let p=wi(t(),r).formatted,d=fr(p);return a[f]=Math.max(a[f]??3,d),{text:p,width:d}},"children"),"children"),i=s(!1);if(r.proseWrap!=="never")return[ir,i];let o=s(!0);return[ir,Me(Qn(o,i))];function s(f){return qr(ur,[c(u[0],f),l(f),...u.slice(1).map(p=>c(p,f))].map(p=>`| ${p.join(" | ")} |`))}function l(f){return a.map((p,d)=>{let D=n.align[d],h=D==="center"||D==="left"?":":"-",m=D==="center"||D==="right"?":":"-",F=f?"-":"-".repeat(p-2);return`${h}${F}${m}`})}function c(f,p){return f.map(({text:d,width:D},h)=>{if(p)return d;let m=a[h]-D,F=n.align[h],y=0;F==="right"?y=m:F==="center"&&(y=Math.floor(m/2));let E=m-y;return`${" ".repeat(y)}${d}${" ".repeat(E)}`})}}function ki(e,r,t){let n=e.map(t,"children");return Wl(n)}function Wl(e){let r=[""];return function t(n){for(let a of n){let u=Y(a);if(u===H){t(a);continue}let i=a,o=[];u===X&&([i,...o]=a.parts),r.push([r.pop(),i],...o)}}(e),ze(r)}var Q,wt=class{constructor(r){jn(this,Q);$n(this,Q,new Set(r))}getLeadingWhitespaceCount(r){let t=ce(this,Q),n=0;for(let a=0;a<r.length&&t.has(r.charAt(a));a++)n++;return n}getTrailingWhitespaceCount(r){let t=ce(this,Q),n=0;for(let a=r.length-1;a>=0&&t.has(r.charAt(a));a--)n++;return n}getLeadingWhitespace(r){let t=this.getLeadingWhitespaceCount(r);return r.slice(0,t)}getTrailingWhitespace(r){let t=this.getTrailingWhitespaceCount(r);return r.slice(r.length-t)}hasLeadingWhitespace(r){return ce(this,Q).has(r.charAt(0))}hasTrailingWhitespace(r){return ce(this,Q).has(z(!1,r,-1))}trimStart(r){let t=this.getLeadingWhites
|
||
|
`,"\f","\r"," "],Kl=new Bi(Hl),xt=Kl;var Jl=/^.$/su;function Xl(e,r){return e=Ql(e,r),e=ef(e),e=tf(e,r),e=nf(e,r),e=rf(e),e}function Ql(e,r){return Ae(e,t=>t.type!=="text"||t.value==="*"||t.value==="_"||!Jl.test(t.value)||t.position.end.offset-t.position.start.offset===t.value.length?t:{...t,value:r.originalText.slice(t.position.start.offset,t.position.end.offset)})}function Zl(e,r,t){return Ae(e,n=>{if(!n.children)return n;let a=n.children.reduce((u,i)=>{let o=z(!1,u,-1);return o&&r(o,i)?u.splice(-1,1,t(o,i)):u.push(i),u},[]);return{...n,children:a}})}function ef(e){return Zl(e,(r,t)=>r.type==="text"&&t.type==="text",(r,t)=>({type:"text",value:r.value+t.value,position:{start:r.position.start,end:t.position.end}}))}function rf(e){return Ae(e,(r,t,[n])=>{if(r.type!=="text")return r;let{value:a}=r;return n.type==="paragraph"&&(t===0&&(a=xt.trimStart(a)),t===n.children.length-1&&(a=xt.trimEnd(a))),{type:"sentence",position:r.position,children:Ir(a)}})}function tf(e,r){return Ae(e,(t,n,a)=>{if(t.type==="code"){let u=/^\n?(?: {4,}|\t)/u.test(r.originalText.slice(t.position.start.offset,t.position.end.offset));if(t.isIndented=u,u)for(let i=0;i<a.length;i++){let o=a[i];if(o.hasIndentedCodeblock)break;o.type==="list"&&(o.hasIndentedCodeblock=!0)}}return t})}function nf(e,r){return Ae(e,(a,u,i)=>{if(a.type==="list"&&a.children.length>0){for(let o=0;o<i.length;o++){let s=i[o];if(s.type==="list"&&!s.isAligned)return a.isAligned=!1,a}a.isAligned=n(a)}return a});function t(a){return a.children.length===0?-1:a.children[0].position.start.column-1}function n(a){if(!a.ordered)return!0;let[u,i]=a.children;if(Ye(u,r).leadingSpaces.length>1)return!0;let s=t(u);if(s===-1)return!1;if(a.children.length===1)return s%r.tabWidth===0;let l=t(i);return s!==l?!1:s%r.tabWidth===0?!0:Ye(i,r).leadingSpaces.length>1}}var Ti=Xl;function qi(e,r){let t=[""];return e.each(()=>{let{node:n}=e,a=r();switch(n.type){case"whitespace":if(Y(a)!==G){t.push(a,"");break}default:t.push([t.pop(),a])}},"children"),ze(t)}var uf=new Set(["heading","tableCell","link","wikiLink"]),_i=new Set("!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~");function af({parent:e}){if(e.usesCJSpaces===void 0){let r={" ":0,"":0},{children:t}=e;for(let n=1;n<t.length-1;++n){let a=t[n];if(a.type==="whitespace"&&(a.value===" "||a.value==="")){let u=t[n-1].kind,i=t[n+1].kind;(u===ie&&i===Ge||u===Ge&&i===ie)&&++r[a.value]}}e.usesCJSpaces=r[" "]>r[""]}return e.usesCJSpaces}function of(e,r){if(r)return!0;let{previous:t,next:n}=e;if(!t||!n)return!0;let a=t.kind,u=n.kind;return Si(a)&&Si(u)||a===Pe&&u===ie||u===Pe&&a===ie?!0:a===sr||u===sr||a===ie&&u===ie?!1:_i.has(n.value[0])||_i.has(z(!1,t.value,-1))?!0:t.hasTrailingPunctuation||n.hasLeadingPunctuation?!1:af(e)}function Si(e){return e===Ge||e===Pe}function sf(e,r,t,n){if(t!=="always"||e.hasAncestor(i=>uf.has(i.type)))return!1;if(n)return r!=="";let{previous:a,next:u}=e;return!a||!u?!0:r===""?!1:a.kind===Pe&&u.kind===ie||u.kind===Pe&&a.kind===ie?!0:!(a.isCJ||u.isCJ)}function kt(e,r,t,n){if(t==="preserve"&&r===`
|
||
|
`)return P;let a=r===" "||r===`
|
||
|
`&&of(e,n);return sf(e,r,t,n)?a?_r:Sr:a?" ":""}var cf=new Set(["listItem","definition"]);function lf(e,r,t){var a,u;let{node:n}=e;if(mf(e)){let i=[""],o=Ir(r.originalText.slice(n.position.start.offset,n.position.end.offset));for(let s of o){if(s.type==="word"){i.push([i.pop(),s.value]);continue}let l=kt(e,s.value,r.proseWrap,!0);if(Y(l)===G){i.push([i.pop(),l]);continue}i.push(l,"")}return ze(i)}switch(n.type){case"front-matter":return r.originalText.slice(n.position.start.offset,n.position.end.offset);case"root":return n.children.length===0?"":[pf(e,r,t),P];case"paragraph":return ki(e,r,t);case"sentence":return qi(e,t);case"word":{let i=N(!1,N(!1,n.value,"*",String.raw`\*`),new RegExp([`(^|${Se.source})(_+)`,`(_+)(${Se.source}|$)`].join("|"),"gu"),(l,c,f,p,d)=>N(!1,f?`${c}${f}`:`${p}${d}`,"_",String.raw`\_`)),o=(l,c,f)=>l.type==="sentence"&&f===0,s=(l,c,f)=>Et(l.children[f-1]);return i!==n.value&&(e.match(void 0,o,s)||e.match(void 0,o,(l,c,f)=>l.type==="emphasis"&&f===0,s))&&(i=i.replace(/^(\\?[*_])+/u,l=>N(!1,l,"\\",""))),i}case"whitespace":{let{next:i}=e,o=i&&/^>|^(?:[*+-]|#{1,6}|\d+[).])$/u.test(i.value)?"never":r.proseWrap;return kt(e,n.value,o)}case"emphasis":{let i;if(Et(n.children[0]))i=r.originalText[n.position.start.offset];else{let{previous:o,next:s}=e;i=(o==null?void 0:o.type)==="sentence"&&((a=z(!1,o.children,-1))==null?void 0:a.type)==="word"&&!z(!1,o.children,-1).hasTrailingPunctuation||(s==null?void 0:s.type)==="sentence"&&((u=s.children[0])==null?void 0:u.type)==="word"&&!s.children[0].hasLeadingPunctuation||e.hasAncestor(c=>c.type==="emphasis")?"*":"_"}return[i,$(e,r,t),i]}case"strong":return["**",$(e,r,t),"**"];case"delete":return["~~",$(e,r,t),"~~"];case"inlineCode":{let i=r.proseWrap==="preserve"?n.value:N(!1,n.value,`
|
||
|
`," "),o=Zn(i,"`"),s="`".repeat(o||1),l=i.startsWith("`")||i.endsWith("`")||/^[\n ]/u.test(i)&&/[\n ]$/u.test(i)&&/[^\n ]/u.test(i)?" ":"";return[s,l,i,l,s]}case"wikiLink":{let i="";return r.proseWrap==="preserve"?i=n.value:i=N(!1,n.value,/[\t\n]+/gu," "),["[[",i,"]]"]}case"link":switch(r.originalText[n.position.start.offset]){case"<":{let i="mailto:";return["<",n.url.startsWith(i)&&r.originalText.slice(n.position.start.offset+1,n.position.start.offset+1+i.length)!==i?n.url.slice(i.length):n.url,">"]}case"[":return["[",$(e,r,t),"](",Bt(n.url,")"),Ur(n.title,r),")"];default:return r.originalText.slice(n.position.start.offset,n.position.end.offset)}case"image":return[""),Ur(n.title,r),")"];case"blockquote":return["> ",ye("> ",$(e,r,t))];case"heading":return["#".repeat(n.depth)+" ",$(e,r,t)];case"code":{if(n.isIndented){let s=" ".repeat(4);return ye(s,[s,be(n.value,P)])}let i=r.__inJsTemplate?"~":"`",o=i.repeat(Math.max(3,Or(n.value,i)+1));return[o,n.lang||"",n.meta?" "+n.meta:"",P,be(Nr(n,r.originalText),P),P,o]}case"html":{let{parent:i,isLast:o}=e,s=i.type==="root"&&o?n.value.trimEnd():n.value,l=/^<!--.*-->$/su.test(s);return be(s,l?P:_e(tr))}case"list":{let i=Li(n,e.parent),o=hi(n,r);return $(e,r,t,{processor(s){let l=f(),c=s.node;if(c.children.length===2&&c.children[1].type==="html"&&c.children[0].position.start.column!==c.children[1].position.start.column)return[l,Oi(s,r,t,l)];return[l,ye(" ".repeat(l.length),Oi(s,r,t,l))];function f(){let p=n.ordered?(s.isFirst?n.start:o?1:n.start+s.index)+(i%2===0?". ":") "):i%2===0?"- ":"* ";return(n.isAligned||n.hasIndentedCodeblock)&&n.ordered?ff(p,r):p}}})}case"thematicBreak":{let{ancestors:i}=e,o=i.findIndex(l=>l.type==="list");return o===-1?"---":Li(i[o],i[o+1])%2===0?"***":"---"}case"linkReference":return["[",$(e,r,t),"]",n.referenceType==="full"?Tt(n):n.referenceType==="collapsed"?"[]":""];case"imageReference":switch(n.referenceType){case"full":return["![",n.alt||"","]",Tt(n)];default:return["![",n.alt,"]",n.referenceType==="collapsed"?"[]":""]}case"definition":{let i=r.proseWrap==="always"?_r:" ";return Me([Tt(n),":",nr([i,Bt(n.url),n.title===null?"":[i,Ur(n.title,r,!1)]])])}case"footnote":return["[^",$(e,r,t),"]"];case"footnoteReference":return Ri(n);case"footnoteDefinition":{let i=n.children.length===1&&n.children[0].type==="paragraph"&&(r.proseWrap==="never"||r.proseWrap==="preserve"&&n.children[0].position.start.line===n.children[0].position.end.line);return[Ri(n),": ",i?$(e,r,t):Me([ye(" ".repeat(4),$(e,r,t,{processor:({isFirst:o})=>o?Me([Sr,t()]):t()}))])]}case"table":return xi(e,r,t);case"tableCell":return $(e,r,t);case"break":return/\s/u.test(r.originalText[n.position.start.offset])?[" ",_e(tr)]:["\\",P];case"liquidNode":return be(n.value,P);case"import":case"export":case"jsx":return n.value;case"esComment":return["{/* ",n.value," */}"];case"math":return["$$",P,n.value?[be(n.value,P),P]:"","$$"];case"inlineMath":return r.originalText.slice(Oe(n),Le(n));case"tableRow":case"listItem":case"text":default:throw new ti(n,"Markdown")}}function Oi(e,r,t,n){let{node:a}=e,u=a.checked===null?"":a.checked?"[x] ":"[ ] ";return[u,$(e,r,t,{processor({node:i,isFirst:o}){if(o&&i.type!=="list")return ye(" ".repeat(u.length),t());let s=" ".repeat(gf(r.tabWidth-n.length,0,3));return[s,ye(s,t())]}})]}function ff(e,r){let t=n();return e+" ".repeat(t>=4?0:t);function n(){let a=e.length%r.tabWidth;return a===0?0:r.tabWidth-a}}function Li(e,r){return Df(e,r,t=>t.ordered===e.ordered)}function Df(e,r,t){let n=-1;for(let a of r.children)if(a.type===e.type&&t(a)?n++:n=-1,a===e)return n}function pf(e,r,t){let n=[],a=null,{children:u}=e.node;for(let[i,o]of u.entries())switch(qt(o)){case"start":a===null&&(a={index:i,offset:o.position.end.offset});break;case"end":a!==null&&(n.push({start:a,end:{index:i,offset:o.position.start.offset}}),a=null);break;default:break}return $(e,r,t,{processor({index:i}){if(n.length>0){let o=n[0];if(i===o.start.index)return[Pi(u[o.start.index]),r.originalText.slice(o.start.offset,o.end.offset),Pi(u[o.end.index])];if(o.start.index<i&&i<o.en
|
||
|
`)}function df({node:e,previous:r,parent:t},n){if(Ii(r,n))return!0;let i=r.type===e.type&&cf.has(e.type),o=t.type==="listItem"&&!Ii(t,n),s=qt(r)==="next",l=e.type==="html"&&r.type==="html"&&r.position.end.line+1===e.position.start.line,c=e.type==="html"&&t.type==="listItem"&&r.type==="paragraph"&&r.position.end.line+1===e.position.start.line;return!(i||o||s||l||c)}function Ni({node:e,previous:r}){let t=r.type==="list",n=e.type==="code"&&e.isIndented;return t&&n}function mf(e){let r=e.findAncestor(t=>t.type==="linkReference"||t.type==="imageReference");return r&&(r.type!=="linkReference"||r.referenceType!=="full")}var Ff=(e,r)=>{for(let t of r)e=N(!1,e,t,encodeURIComponent(t));return e};function Bt(e,r=[]){let t=[" ",...Array.isArray(r)?r:[r]];return new RegExp(t.map(n=>le(n)).join("|"),"u").test(e)?`<${Ff(e,"<>")}>`:e}function Ur(e,r,t=!0){if(!e)return"";if(t)return" "+Ur(e,r,!1);if(e=N(!1,e,/\\(?=["')])/gu,""),e.includes('"')&&e.includes("'")&&!e.includes(")"))return`(${e})`;let n=ri(e,r.singleQuote);return e=N(!1,e,"\\","\\\\"),e=N(!1,e,n,`\\${n}`),`${n}${e}${n}`}function gf(e,r,t){return Math.max(r,Math.min(e,t))}function vf(e){return e.index>0&&qt(e.previous)==="next"}function Tt(e){return`[${(0,Ui.default)(e.label)}]`}function Ri(e){return`[^${e.label}]`}var Ef={preprocess:Ti,print:lf,embed:di,massageAstNode:ci,hasPrettierIgnore:vf,insertPragma:ai,getVisitorKeys:gi},Mi=Ef;var zi=[{linguistLanguageId:222,name:"Markdown",type:"prose",color:"#083fa1",aliases:["md","pandoc"],aceMode:"markdown",codemirrorMode:"gfm",codemirrorMimeType:"text/x-gfm",wrap:!0,extensions:[".md",".livemd",".markdown",".mdown",".mdwn",".mkd",".mkdn",".mkdown",".ronn",".scd",".workbook"],filenames:["contents.lr","README"],tmScope:"text.md",parsers:["markdown"],vscodeLanguageIds:["markdown"]},{linguistLanguageId:222,name:"MDX",type:"prose",color:"#083fa1",aliases:["md","pandoc"],aceMode:"markdown",codemirrorMode:"gfm",codemirrorMimeType:"text/x-gfm",wrap:!0,extensions:[".mdx"],filenames:[],tmScope:"text.md",parsers:["mdx"],vscodeLanguageIds:["mdx"]}];var _t={bracketSpacing:{category:"Common",type:"boolean",default:!0,description:"Print spaces between brackets.",oppositeDescription:"Do not print spaces between brackets."},objectWrap:{category:"Common",type:"choice",default:"preserve",description:"How to wrap object literals.",choices:[{value:"preserve",description:"Keep as multi-line, if there is a newline between the opening brace and first property."},{value:"collapse",description:"Fit to a single line when possible."}]},singleQuote:{category:"Common",type:"boolean",default:!1,description:"Use single quotes instead of double quotes."},proseWrap:{category:"Common",type:"choice",default:"preserve",description:"How to wrap prose.",choices:[{value:"always",description:"Wrap prose if it exceeds the print width."},{value:"never",description:"Do not wrap prose."},{value:"preserve",description:"Wrap prose as-is."}]},bracketSameLine:{category:"Common",type:"boolean",default:!1,description:"Put > of opening tags on the last line instead of on a new line."},singleAttributePerLine:{category:"Common",type:"boolean",default:!1,description:"Enforce single attribute per line in HTML, Vue and JSX."}};var Cf={proseWrap:_t.proseWrap,singleQuote:_t.singleQuote},Yi=Cf;var Mn={};Yn(Mn,{markdown:()=>Nm,mdx:()=>Rm,remark:()=>Nm});var il=Ue(Vi(),1),ul=Ue(iu(),1),al=Ue(Zs(),1),ol=Ue($c(),1);var Tm=/^import\s/u,qm=/^export\s/u,Wc=String.raw`[a-z][a-z0-9]*(\.[a-z][a-z0-9]*)*|`,Hc=/<!---->|<!---?[^>-](?:-?[^-])*-->/u,_m=/^\{\s*\/\*(.*)\*\/\s*\}/u,Sm=`
|
||
|
|
||
|
`,Kc=e=>Tm.test(e),Un=e=>qm.test(e),Jc=(e,r)=>{let t=r.indexOf(Sm),n=r.slice(0,t);if(Un(n)||Kc(n))return e(n)({type:Un(n)?"export":"import",value:n})},Xc=(e,r)=>{let t=_m.exec(r);if(t)return e(t[0])({type:"esComment",value:t[1].trim()})};Jc.locator=e=>Un(e)||Kc(e)?-1:1;Xc.locator=(e,r)=>e.indexOf("{",r);var Qc=function(){let{Parser:e}=this,{blockTokenizers:r,blockMethods:t,inlineTokenizers:n,inlineMethods:a}=e.prototype;r.esSyntax=Jc,n.esComment=Xc,t.splice(t.indexOf("paragraph"),0,"esSyntax"),a.splice(a.indexOf("text"),0,"esComment")};var Om=function(){let e=this.Parser.prototype;e.blockMethods=["frontMatter",...e.blockMethods],e.blockTokenizers.frontMatter=r;function r(t,n){let a=or(n);if(a.frontMatter)return t(a.frontMatter.raw)(a.frontMatter)}r.onlyAtStart=!0},Zc=Om;function Lm(){return e=>Ae(e,(r,t,[n])=>r.type!=="html"||Hc.test(r.value)||Pr.has(n.type)?r:{...r,type:"jsx"})}var el=Lm;var Pm=function(){let e=this.Parser.prototype,r=e.inlineMethods;r.splice(r.indexOf("text"),0,"liquid"),e.inlineTokenizers.liquid=t;function t(n,a){let u=a.match(/^(\{%.*?%\}|\{\{.*?\}\})/su);if(u)return n(u[0])({type:"liquidNode",value:u[0]})}t.locator=function(n,a){return n.indexOf("{",a)}},rl=Pm;var Im=function(){let e="wikiLink",r=/^\[\[(?<linkContents>.+?)\]\]/su,t=this.Parser.prototype,n=t.inlineMethods;n.splice(n.indexOf("link"),0,e),t.inlineTokenizers.wikiLink=a;function a(u,i){let o=r.exec(i);if(o){let s=o.groups.linkContents.trim();return u(o[0])({type:e,value:s})}}a.locator=function(u,i){return u.indexOf("[",i)}},tl=Im;function sl({isMDX:e}){return r=>{let t=(0,ol.default)().use(al.default,{commonmark:!0,...e&&{blocks:[Wc]}}).use(il.default).use(Zc).use(ul.default).use(e?Qc:nl).use(rl).use(e?el:nl).use(tl);return t.run(t.parse(r))}}function nl(){}var cl={astFormat:"mdast",hasPragma:ui,locStart:Oe,locEnd:Le},Nm={...cl,parse:sl({isMDX:!1})},Rm={...cl,parse:sl({isMDX:!0})};var Um={mdast:Mi};return dl(Mm);});
|