codigo0/dist/assets/2-vendor-markdown-BQlHAcA7.js

30 lines
115 KiB
JavaScript
Raw Normal View History

import{d as ue,b as Ot,p as Hn,e as jn,g as $n,v as ae,h as Vn,i as Un,j as $t,k as be,l as Xt,V as Wn,m as Ue,n as Qn,q as wt,r as we,u as Yn,E as Gn,w as Zn,x as Pt,y as Jn,z as Kn,A as Xn,B as tr,C as er,D as nr,F as rr,G as ir,H as lr,I as ur,J as ar,K as or,L as sr,M as cr,N as hr,O as fr,P as pr,Q as mr,R as gr,S as kr,T as xr,U as dr,W as yr,X as br,Y as wr,Z as Cr,_ as Sr,$ as Ir,a0 as zr,a1 as Ar,a2 as Tr,a3 as Er,a4 as Fr,a5 as Lr,a6 as Pr,a7 as Dr,a8 as _r,a9 as Br,aa as Mr,ab as Or,ac as Rr}from"./1-vendor-utils-Delnuc0l.js";import{aF as Nt}from"./0-vendor-react-DWOJpYrt.js";const Nr={};function oe(t,n){const e=Nr,r=typeof e.includeImageAlt=="boolean"?e.includeImageAlt:!0,l=typeof e.includeHtml=="boolean"?e.includeHtml:!0;return We(t,r,l)}function We(t,n,e){if(vr(t)){if("value"in t)return t.type==="html"&&!e?"":t.value;if(n&&"alt"in t&&t.alt)return t.alt;if("children"in t)return Ce(t.children,n,e)}return Array.isArray(t)?Ce(t,n,e):""}function Ce(t,n,e){const r=[];let l=-1;for(;++l<t.length;)r[l]=We(t[l],n,e);return r.join("")}function vr(t){return!!(t&&typeof t=="object")}function Z(t,n,e,r){const l=t.length;let u=0,i;if(n<0?n=-n>l?0:l+n:n=n>l?l:n,e=e>0?e:0,r.length<1e4)i=Array.from(r),i.unshift(n,e),t.splice(...i);else for(e&&t.splice(n,e);u<r.length;)i=r.slice(u,u+1e4),i.unshift(n,0),t.splice(...i),u+=1e4,n+=1e4}function J(t,n){return t.length>0?(Z(t,t.length,0,n),t):n}const Se={}.hasOwnProperty;function Qe(t){const n={};let e=-1;for(;++e<t.length;)qr(n,t[e]);return n}function qr(t,n){let e;for(e in n){const l=(Se.call(t,e)?t[e]:void 0)||(t[e]={}),u=n[e];let i;if(u)for(i in u){Se.call(l,i)||(l[i]=[]);const a=u[i];Hr(l[i],Array.isArray(a)?a:a?[a]:[])}}}function Hr(t,n){let e=-1;const r=[];for(;++e<n.length;)(n[e].add==="after"?t:r).push(n[e]);Z(t,0,0,r)}function Ye(t,n){const e=Number.parseInt(t,n);return e<9||e===11||e>13&&e<32||e>126&&e<160||e>55295&&e<57344||e>64975&&e<65008||(e&65535)===65535||(e&65535)===65534||e>1114111?"<22>":String.fromCodePoint(e)}function nt(t){return t.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const Q=ht(/[A-Za-z]/),W=ht(/[\dA-Za-z]/),jr=ht(/[#-'*+\--9=?A-Z^-~]/);function vt(t){return t!==null&&(t<32||t===127)}const te=ht(/\d/),$r=ht(/[\dA-Fa-f]/),Vr=ht(/[!-/:-@[-`{-~]/);function T(t){return t!==null&&t<-2}function H(t){return t!==null&&(t<0||t===32)}function P(t){return t===-2||t===-1||t===32}const Ht=ht(new RegExp("\\p{P}|\\p{S}","u")),gt=ht(/\s/);function ht(t){return n;function n(e){return e!==null&&e>-1&&t.test(String.fromCharCode(e))}}function Ct(t){const n=[];let e=-1,r=0,l=0;for(;++e<t.length;){const u=t.charCodeAt(e);let i="";if(u===37&&W(t.charCodeAt(e+1))&&W(t.charCodeAt(e+2)))l=2;else if(u<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(u))||(i=String.fromCharCode(u));else if(u>55295&&u<57344){const a=t.charCodeAt(e+1);u<56320&&a>56319&&a<57344?(i=String.fromCharCode(u,a),l=1):i="<22>"}else i=String.fromCharCode(u);i&&(n.push(t.slice(r,e),encodeURIComponent(i)),r=e+l+1,i=""),l&&(e+=l,l=0)}return n.join("")+t.slice(r)}function M(t,n,e,r){const l=r?r-1:Number.POSITIVE_INFINITY;let u=0;return i;function i(s){return P(s)?(t.enter(e),a(s)):n(s)}function a(s){return P(s)&&u++<l?(t.consume(s),a):(t.exit(e),n(s))}}const Ur={tokenize:Wr};function Wr(t){const n=t.attempt(this.parser.constructs.contentInitial,r,l);let e;return n;function r(a){if(a===null){t.consume(a);return}return t.enter("lineEnding"),t.consume(a),t.exit("lineEnding"),M(t,n,"linePrefix")}function l(a){return t.enter("paragraph"),u(a)}function u(a){const s=t.enter("chunkText",{contentType:"text",previous:e});return e&&(e.next=s),e=s,i(a)}function i(a){if(a===null){t.exit("chunkText"),t.exit("paragraph"),t.consume(a);return}return T(a)?(t.consume(a),t.exit("chunkText"),u):(t.consume(a),i)}}const Qr={tokenize:Yr},Ie={tokenize:Gr};function Yr(t){const n=this,e=[];let r=0,l,u,i;return a;function a(w){if(r<e.length){const D=e[r];return n.containerState=D[1],t.attempt(D[0].continuation,s,o)(w)}return o(w)}function s(w){if(r++,n.containerState._closeFlow){n.containerState._closeFlow=vo
`;break}case-3:{i=`\r
`;break}case-2:{i=n?" ":" ";break}case-1:{if(!n&&l)continue;i=" ";break}default:i=String.fromCharCode(u)}l=u===-2,r.push(i)}return r.join("")}function Ll(t){const r={constructs:Qe([Al,...(t||{}).extensions||[]]),content:l(Ur),defined:[],document:l(Qr),flow:l(hl),lazy:{},string:l(ml),text:l(gl)};return r;function l(u){return i;function i(a){return Tl(r,u,a)}}}function Pl(t){for(;!Ke(t););return t}const Le=/[\0\t\n\r]/g;function Dl(){let t=1,n="",e=!0,r;return l;function l(u,i,a){const s=[];let o,h,c,p,f;for(u=n+(typeof u=="string"?u.toString():new TextDecoder(i||void 0).decode(u)),c=0,n="",e&&(u.charCodeAt(0)===65279&&c++,e=void 0);c<u.length;){if(Le.lastIndex=c,o=Le.exec(u),p=o&&o.index!==void 0?o.index:u.length,f=u.charCodeAt(p),!o){n=u.slice(c);break}if(f===10&&c===p&&r)s.push(-3),r=void 0;else switch(r&&(s.push(-5),r=void 0),c<p&&(s.push(u.slice(c,p)),t+=p-c),f){case 0:{s.push(65533),t++;break}case 9:{for(h=Math.ceil(t/4)*4,s.push(-2);t++<h;)s.push(-1);break}case 10:{s.push(-4),t=1;break}default:r=!0,t=1}c=p+1}return a&&(r&&s.push(-5),n&&s.push(n),s.push(null)),s}}const _l=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function Bl(t){return t.replace(_l,Ml)}function Ml(t,n,e){if(n)return n;if(e.charCodeAt(0)===35){const l=e.charCodeAt(1),u=l===120||l===88;return Ye(e.slice(u?2:1),u?16:10)}return ue(e)||t}const ln={}.hasOwnProperty;function Ol(t,n,e){return typeof n!="string"&&(e=n,n=void 0),Rl(e)(Pl(Ll(e).document().write(Dl()(t,n,!0))))}function Rl(t){const n={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:u(de),autolinkProtocol:R,autolinkEmail:R,atxHeading:u(ge),blockQuote:u(xt),characterEscape:R,characterReference:R,codeFenced:u(Lt),codeFencedFenceInfo:i,codeFencedFenceMeta:i,codeIndented:u(Lt,i),codeText:u(Dn,i),codeTextData:R,data:R,codeFlowValue:R,definition:u(_n),definitionDestinationString:i,definitionLabelString:i,definitionTitleString:i,emphasis:u(Bn),hardBreakEscape:u(ke),hardBreakTrailing:u(ke),htmlFlow:u(xe,i),htmlFlowData:R,htmlText:u(xe,i),htmlTextData:R,image:u(Mn),label:i,link:u(de),listItem:u(On),listItemValue:p,listOrdered:u(ye,c),listUnordered:u(ye),paragraph:u(Rn),reference:g,referenceString:i,resourceDestinationString:i,resourceTitleString:i,setextHeading:u(ge),strong:u(Nn),thematicBreak:u(qn)},exit:{atxHeading:s(),atxHeadingSequence:B,autolink:s(),autolinkEmail:kt,autolinkProtocol:st,blockQuote:s(),characterEscapeValue:x,characterReferenceMarkerHexadecimal:ft,characterReferenceMarkerNumeric:ft,characterReferenceValue:V,characterReference:St,codeFenced:s(I),codeFencedFence:C,codeFencedFenceInfo:f,codeFencedFenceMeta:k,codeFlowValue:x,codeIndented:s(y),codeText:s(O),codeTextData:x,data:x,definition:s(),definitionDestinationString:D,definitionLabelString:A,definitionTitleString:w,emphasis:s(),hardBreakEscape:s(F),hardBreakTrailing:s(F),htmlFlow:s(v),htmlFlowData:x,htmlText:s(j),htmlTextData:x,image:s($),label:it,labelText:K,lineEnding:E,link:s(U),listItem:s(),listOrdered:s(),listUnordered:s(),paragraph:s(),referenceString:tt,resourceDestinationString:m,resourceTitleString:X,resource:lt,setextHeading:s(N),setextHeadingLineSequence:z,setextHeadingText:b,strong:s(),thematicBreak:s()}};un(n,(t||{}).mdastExtensions||[]);const e={};return r;function r(d){let S={type:"root",children:[]};const L={stack:[S],tokenStack:[],config:n,enter:a,exit:o,buffer:i,resume:h,data:e},_=[];let q=-1;for(;++q<d.length;)if(d[q][1].type==="listOrdered"||d[q][1].type==="listUnordered")if(d[q][0]==="enter")_.push(q);else{const et=_.pop();q=l(d,et,q)}for(q=-1;++q<d.length;){const et=n[d[q][0]];ln.call(et,d[q][1].type)&&et[d[q][1].type].call(Object.assign({sliceSerialize:d[q][2].sliceSerialize},L),d[q][1])}if(L.tokenStack.length>0){const et=L.tokenStack[L.tokenStack.length-1];(et[1]||Pe).call(L,void 0,et[0])}for(S.position={start:ct(d.length>0?d[0][1].start:{line:1,column:1,offset:0}),end:ct(d.length>0?d[d.length-2][1].end:{line:1,column:1,offset:0})},q=-1;++q<n.transforms.length;)S=n.transforms[q](S)||S;return S}function l(d,S,L){let _=S-1,q=-1,et=!1,pt,u
`}]}function Hl(t,n){const e=n.value?n.value+`
`:"",r={},l=n.lang?n.lang.split(/\s+/):[];l.length>0&&(r.className=["language-"+l[0]]);let u={type:"element",tagName:"code",properties:r,children:[{type:"text",value:e}]};return n.meta&&(u.data={meta:n.meta}),t.patch(n,u),u=t.applyData(n,u),u={type:"element",tagName:"pre",properties:{},children:[u]},t.patch(n,u),u}function jl(t,n){const e={type:"element",tagName:"del",properties:{},children:t.all(n)};return t.patch(n,e),t.applyData(n,e)}function $l(t,n){const e={type:"element",tagName:"em",properties:{},children:t.all(n)};return t.patch(n,e),t.applyData(n,e)}function Vl(t,n){const e=typeof t.options.clobberPrefix=="string"?t.options.clobberPrefix:"user-content-",r=String(n.identifier).toUpperCase(),l=Ct(r.toLowerCase()),u=t.footnoteOrder.indexOf(r);let i,a=t.footnoteCounts.get(r);a===void 0?(a=0,t.footnoteOrder.push(r),i=t.footnoteOrder.length):i=u+1,a+=1,t.footnoteCounts.set(r,a);const s={type:"element",tagName:"a",properties:{href:"#"+e+"fn-"+l,id:e+"fnref-"+l+(a>1?"-"+a:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(i)}]};t.patch(n,s);const o={type:"element",tagName:"sup",properties:{},children:[s]};return t.patch(n,o),t.applyData(n,o)}function Ul(t,n){const e={type:"element",tagName:"h"+n.depth,properties:{},children:t.all(n)};return t.patch(n,e),t.applyData(n,e)}function Wl(t,n){if(t.options.allowDangerousHtml){const e={type:"raw",value:n.value};return t.patch(n,e),t.applyData(n,e)}}function an(t,n){const e=n.referenceType;let r="]";if(e==="collapsed"?r+="[]":e==="full"&&(r+="["+(n.label||n.identifier)+"]"),n.type==="imageReference")return[{type:"text",value:"!["+n.alt+r}];const l=t.all(n),u=l[0];u&&u.type==="text"?u.value="["+u.value:l.unshift({type:"text",value:"["});const i=l[l.length-1];return i&&i.type==="text"?i.value+=r:l.push({type:"text",value:r}),l}function Ql(t,n){const e=String(n.identifier).toUpperCase(),r=t.definitionById.get(e);if(!r)return an(t,n);const l={src:Ct(r.url||""),alt:n.alt};r.title!==null&&r.title!==void 0&&(l.title=r.title);const u={type:"element",tagName:"img",properties:l,children:[]};return t.patch(n,u),t.applyData(n,u)}function Yl(t,n){const e={src:Ct(n.url)};n.alt!==null&&n.alt!==void 0&&(e.alt=n.alt),n.title!==null&&n.title!==void 0&&(e.title=n.title);const r={type:"element",tagName:"img",properties:e,children:[]};return t.patch(n,r),t.applyData(n,r)}function Gl(t,n){const e={type:"text",value:n.value.replace(/\r?\n|\r/g," ")};t.patch(n,e);const r={type:"element",tagName:"code",properties:{},children:[e]};return t.patch(n,r),t.applyData(n,r)}function Zl(t,n){const e=String(n.identifier).toUpperCase(),r=t.definitionById.get(e);if(!r)return an(t,n);const l={href:Ct(r.url||"")};r.title!==null&&r.title!==void 0&&(l.title=r.title);const u={type:"element",tagName:"a",properties:l,children:t.all(n)};return t.patch(n,u),t.applyData(n,u)}function Jl(t,n){const e={href:Ct(n.url)};n.title!==null&&n.title!==void 0&&(e.title=n.title);const r={type:"element",tagName:"a",properties:e,children:t.all(n)};return t.patch(n,r),t.applyData(n,r)}function Kl(t,n,e){const r=t.all(n),l=e?Xl(e):on(n),u={},i=[];if(typeof n.checked=="boolean"){const h=r[0];let c;h&&h.type==="element"&&h.tagName==="p"?c=h:(c={type:"element",tagName:"p",properties:{},children:[]},r.unshift(c)),c.children.length>0&&c.children.unshift({type:"text",value:" "}),c.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:n.checked,disabled:!0},children:[]}),u.className=["task-list-item"]}let a=-1;for(;++a<r.length;){const h=r[a];(l||a!==0||h.type!=="element"||h.tagName!=="p")&&i.push({type:"text",value:`
`}),h.type==="element"&&h.tagName==="p"&&!l?i.push(...h.children):i.push(h)}const s=r[r.length-1];s&&(l||s.type!=="element"||s.tagName!=="p")&&i.push({type:"text",value:`
`});const o={type:"element",tagName:"li",properties:u,children:i};return t.patch(n,o),t.applyData(n,o)}function Xl(t){let n=!1;if(t.type==="list"){n=t.spread||!1;const e=t.children;let r=-1;for(;!n&&++r<e.length;)n=on(e[r])}return n}function on(t){const n=t.spread;return n??t.children.length>1}function tu(t,n){const e={},r=t.all(n);let l=-1;for(typeof n.start=="number"&&n.start!==1&&(e.start=n.start);++l<r.length;){const i=r[l];if(i.type==="element"&&i.tagName==="li"&&i.properties&&Array.isArray(i.properties.className)&&i.properties.className.includes("task-list-item")){e.className=["contains-task-list"];break}}const u={type:"element",tagName:n.ordered?"ol":"ul",properties:e,children:t.wrap(r,!0)};return t.patch(n,u),t.applyData(n,u)}function eu(t,n){const e={type:"element",tagName:"p",properties:{},children:t.all(n)};return t.patch(n,e),t.applyData(n,e)}function nu(t,n){const e={type:"root",children:t.wrap(t.all(n))};return t.patch(n,e),t.applyData(n,e)}function ru(t,n){const e={type:"element",tagName:"strong",properties:{},children:t.all(n)};return t.patch(n,e),t.applyData(n,e)}function iu(t,n){const e=t.all(n),r=e.shift(),l=[];if(r){const i={type:"element",tagName:"thead",properties:{},children:t.wrap([r],!0)};t.patch(n.children[0],i),l.push(i)}if(e.length>0){const i={type:"element",tagName:"tbody",properties:{},children:t.wrap(e,!0)},a=Hn(n.children[1]),s=jn(n.children[n.children.length-1]);a&&s&&(i.position={start:a,end:s}),l.push(i)}const u={type:"element",tagName:"table",properties:{},children:t.wrap(l,!0)};return t.patch(n,u),t.applyData(n,u)}function lu(t,n,e){const r=e?e.children:void 0,u=(r?r.indexOf(n):1)===0?"th":"td",i=e&&e.type==="table"?e.align:void 0,a=i?i.length:n.children.length;let s=-1;const o=[];for(;++s<a;){const c=n.children[s],p={},f=i?i[s]:void 0;f&&(p.align=f);let k={type:"element",tagName:u,properties:p,children:[]};c&&(k.children=t.all(c),t.patch(c,k),k=t.applyData(c,k)),o.push(k)}const h={type:"element",tagName:"tr",properties:{},children:t.wrap(o,!0)};return t.patch(n,h),t.applyData(n,h)}function uu(t,n){const e={type:"element",tagName:"td",properties:{},children:t.all(n)};return t.patch(n,e),t.applyData(n,e)}function au(t,n){const e={type:"text",value:$n(String(n.value))};return t.patch(n,e),t.applyData(n,e)}function ou(t,n){const e={type:"element",tagName:"hr",properties:{},children:[]};return t.patch(n,e),t.applyData(n,e)}const su={blockquote:vl,break:ql,code:Hl,delete:jl,emphasis:$l,footnoteReference:Vl,heading:Ul,html:Wl,imageReference:Ql,image:Yl,inlineCode:Gl,linkReference:Zl,link:Jl,listItem:Kl,list:tu,paragraph:eu,root:nu,strong:ru,table:iu,tableCell:uu,tableRow:lu,text:au,thematicBreak:ou,toml:Dt,yaml:Dt,definition:Dt,footnoteDefinition:Dt};function Dt(){}function cu(t,n){const e=[{type:"text",value:"↩"}];return n>1&&e.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(n)}]}),e}function hu(t,n){return"Back to reference "+(t+1)+(n>1?"-"+n:"")}function fu(t){const n=typeof t.options.clobberPrefix=="string"?t.options.clobberPrefix:"user-content-",e=t.options.footnoteBackContent||cu,r=t.options.footnoteBackLabel||hu,l=t.options.footnoteLabel||"Footnotes",u=t.options.footnoteLabelTagName||"h2",i=t.options.footnoteLabelProperties||{className:["sr-only"]},a=[];let s=-1;for(;++s<t.footnoteOrder.length;){const o=t.footnoteById.get(t.footnoteOrder[s]);if(!o)continue;const h=t.all(o),c=String(o.identifier).toUpperCase(),p=Ct(c.toLowerCase());let f=0;const k=[],C=t.footnoteCounts.get(c);for(;C!==void 0&&++f<=C;){k.length>0&&k.push({type:"text",value:" "});let A=typeof e=="string"?e:e(s,f);typeof A=="string"&&(A={type:"text",value:A}),k.push({type:"element",tagName:"a",properties:{href:"#"+n+"fnref-"+p+(f>1?"-"+f:""),dataFootnoteBackref:"",ariaLabel:typeof r=="string"?r:r(s,f),className:["data-footnote-backref"]},children:Array.isArray(A)?A:[A]})}const I=h[h.length-1];if(I&&I.type==="element"&&I.tagName==="p"){const A=I.children[I.children.length-1];A&&A.type==="text"?A.value+=" ":I.children.push({type:"text",value:" "}),I.children.push(...k)}else h.push(..
`},{type:"element",tagName:"ol",properties:{},children:t.wrap(a,!0)},{type:"text",value:`
`}]}}const ne={}.hasOwnProperty,pu={};function mu(t,n){const e=n||pu,r=new Map,l=new Map,u=new Map,i={...su,...e.handlers},a={all:o,applyData:ku,definitionById:r,footnoteById:l,footnoteCounts:u,footnoteOrder:[],handlers:i,one:s,options:e,patch:gu,wrap:du};return ae(t,function(h){if(h.type==="definition"||h.type==="footnoteDefinition"){const c=h.type==="definition"?r:l,p=String(h.identifier).toUpperCase();c.has(p)||c.set(p,h)}}),a;function s(h,c){const p=h.type,f=a.handlers[p];if(ne.call(a.handlers,p)&&f)return f(a,h,c);if(a.options.passThrough&&a.options.passThrough.includes(p)){if("children"in h){const{children:C,...I}=h,y=Nt(I);return y.children=a.all(h),y}return Nt(h)}return(a.options.unknownHandler||xu)(a,h,c)}function o(h){const c=[];if("children"in h){const p=h.children;let f=-1;for(;++f<p.length;){const k=a.one(p[f],h);if(k){if(f&&p[f-1].type==="break"&&(!Array.isArray(k)&&k.type==="text"&&(k.value=De(k.value)),!Array.isArray(k)&&k.type==="element")){const C=k.children[0];C&&C.type==="text"&&(C.value=De(C.value))}Array.isArray(k)?c.push(...k):c.push(k)}}}return c}}function gu(t,n){t.position&&(n.position=Vn(t))}function ku(t,n){let e=n;if(t&&t.data){const r=t.data.hName,l=t.data.hChildren,u=t.data.hProperties;if(typeof r=="string")if(e.type==="element")e.tagName=r;else{const i="children"in e?e.children:[e];e={type:"element",tagName:r,properties:{},children:i}}e.type==="element"&&u&&Object.assign(e.properties,Nt(u)),"children"in e&&e.children&&l!==null&&l!==void 0&&(e.children=l)}return e}function xu(t,n){const e=n.data||{},r="value"in n&&!(ne.call(e,"hProperties")||ne.call(e,"hChildren"))?{type:"text",value:n.value}:{type:"element",tagName:"div",properties:{},children:t.all(n)};return t.patch(n,r),t.applyData(n,r)}function du(t,n){const e=[];let r=-1;for(n&&e.push({type:"text",value:`
`});++r<t.length;)r&&e.push({type:"text",value:`
`}),e.push(t[r]);return n&&t.length>0&&e.push({type:"text",value:`
`}),e}function De(t){let n=0,e=t.charCodeAt(n);for(;e===9||e===32;)n++,e=t.charCodeAt(n);return t.slice(n)}function _e(t,n){const e=mu(t,n),r=e.one(t,void 0),l=fu(e),u=Array.isArray(r)?{type:"root",children:r}:r||{type:"root",children:[]};return l&&u.children.push({type:"text",value:`
`},l),u}function Go(t,n){return t&&"run"in t?async function(e,r){const l=_e(e,{file:r,...n});await t.run(l,r)}:function(e,r){return _e(e,{file:r,...t||n})}}const yu=(function(t){const r=this.constructor.prototype,l=r[t],u=function(){return l.apply(u,arguments)};return Object.setPrototypeOf(u,r),u}),bu={}.hasOwnProperty;class ce extends yu{constructor(){super("copy"),this.Compiler=void 0,this.Parser=void 0,this.attachers=[],this.compiler=void 0,this.freezeIndex=-1,this.frozen=void 0,this.namespace={},this.parser=void 0,this.transformers=Un()}copy(){const n=new ce;let e=-1;for(;++e<this.attachers.length;){const r=this.attachers[e];n.use(...r)}return n.data($t(!0,{},this.namespace)),n}data(n,e){return typeof n=="string"?arguments.length===2?(Yt("data",this.frozen),this.namespace[n]=e,this):bu.call(this.namespace,n)&&this.namespace[n]||void 0:n?(Yt("data",this.frozen),this.namespace=n,this):this.namespace}freeze(){if(this.frozen)return this;const n=this;for(;++this.freezeIndex<this.attachers.length;){const[e,...r]=this.attachers[this.freezeIndex];if(r[0]===!1)continue;r[0]===!0&&(r[0]=void 0);const l=e.call(n,...r);typeof l=="function"&&this.transformers.use(l)}return this.frozen=!0,this.freezeIndex=Number.POSITIVE_INFINITY,this}parse(n){this.freeze();const e=_t(n),r=this.parser||this.Parser;return Wt("parse",r),r(String(e),e)}process(n,e){const r=this;return this.freeze(),Wt("process",this.parser||this.Parser),Qt("process",this.compiler||this.Compiler),e?l(void 0,e):new Promise(l);function l(u,i){const a=_t(n),s=r.parse(a);r.run(s,a,function(h,c,p){if(h||!c||!p)return o(h);const f=c,k=r.stringify(f,p);Cu(k)?p.value=k:p.result=k,o(h,p)});function o(h,c){h||!c?i(h):u?u(c):e(void 0,c)}}}processSync(n){let e=!1,r;return this.freeze(),Wt("processSync",this.parser||this.Parser),Qt("processSync",this.compiler||this.Compiler),this.process(n,l),Me("processSync","process",e),r;function l(u,i){e=!0,be(u),r=i}}run(n,e,r){Be(n),this.freeze();const l=this.transformers;return!r&&typeof e=="function"&&(r=e,e=void 0),r?u(void 0,r):new Promise(u);function u(i,a){const s=_t(e);l.run(n,s,o);function o(h,c,p){const f=c||n;h?a(h):i?i(f):r(void 0,f,p)}}}runSync(n,e){let r=!1,l;return this.run(n,e,u),Me("runSync","run",r),l;function u(i,a){be(i),l=a,r=!0}}stringify(n,e){this.freeze();const r=_t(e),l=this.compiler||this.Compiler;return Qt("stringify",l),Be(n),l(n,r)}use(n,...e){const r=this.attachers,l=this.namespace;if(Yt("use",this.frozen),n!=null)if(typeof n=="function")s(n,e);else if(typeof n=="object")Array.isArray(n)?a(n):i(n);else throw new TypeError("Expected usable value, not `"+n+"`");return this;function u(o){if(typeof o=="function")s(o,[]);else if(typeof o=="object")if(Array.isArray(o)){const[h,...c]=o;s(h,c)}else i(o);else throw new TypeError("Expected usable value, not `"+o+"`")}function i(o){if(!("plugins"in o)&&!("settings"in o))throw new Error("Expected usable value but received an empty preset, which is probably a mistake: presets typically come with `plugins` and sometimes with `settings`, but this has neither");a(o.plugins),o.settings&&(l.settings=$t(!0,l.settings,o.settings))}function a(o){let h=-1;if(o!=null)if(Array.isArray(o))for(;++h<o.length;){const c=o[h];u(c)}else throw new TypeError("Expected a list of plugins, not `"+o+"`")}function s(o,h){let c=-1,p=-1;for(;++c<r.length;)if(r[c][0]===o){p=c;break}if(p===-1)r.push([o,...h]);else if(h.length>0){let[f,...k]=h;const C=r[p][1];Xt(C)&&Xt(f)&&(f=$t(!0,C,f)),r[p]=[o,f,...k]}}}}const Zo=new ce().freeze();function Wt(t,n){if(typeof n!="function")throw new TypeError("Cannot `"+t+"` without `parser`")}function Qt(t,n){if(typeof n!="function")throw new TypeError("Cannot `"+t+"` without `compiler`")}function Yt(t,n){if(n)throw new Error("Cannot call `"+t+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function Be(t){if(!Xt(t)||typeof t.type!="string")throw new TypeError("Expected node, got `"+t+"`")}function Me(t,n,e){if(!e)throw new Error("`"+t+"` finished async. Use `"+n+"` instead")}function _t(t){return wu(t)?
`:" ")+u.indentLines(u.containerFlow(r,a.current()),n?hn:Ku))),o(),s}}function Ku(t,n,e){return n===0?t:hn(t,n,e)}function hn(t,n,e){return(e?"":" ")+t}const Xu=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];fn.peek=ia;function ta(){return{canContainEols:["delete"],enter:{strikethrough:na},exit:{strikethrough:ra}}}function ea(){return{unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:Xu}],handlers:{delete:fn}}}function na(t){this.enter({type:"delete",children:[]},t)}function ra(t){this.exit(t)}function fn(t,n,e,r){const l=e.createTracker(r),u=e.enter("strikethrough");let i=l.move("~~");return i+=e.containerPhrasing(t,{...l.current(),before:i,after:"~"}),i+=l.move("~~"),u(),i}function ia(){return"~"}function la(t,n,e,r){const l=e.enter("blockquote"),u=e.createTracker(r);u.move("> "),u.shift(2);const i=e.indentLines(e.containerFlow(t,u.current()),ua);return l(),i}function ua(t,n,e){return">"+(e?"":" ")+t}function aa(t,n){return Oe(t,n.inConstruct,!0)&&!Oe(t,n.notInConstruct,!1)}function Oe(t,n,e){if(typeof n=="string"&&(n=[n]),!n||n.length===0)return e;let r=-1;for(;++r<n.length;)if(t.includes(n[r]))return!0;return!1}function Re(t,n,e,r){let l=-1;for(;++l<e.unsafe.length;)if(e.unsafe[l].character===`
`&&aa(e.stack,e.unsafe[l]))return/[ \t]/.test(r.before)?"":" ";return`\\
`}function oa(t,n){return!!(n.options.fences===!1&&t.value&&!t.lang&&/[^ \r\n]/.test(t.value)&&!/^[\t ]*(?:[\r\n]|$)|(?:^|[\r\n])[\t ]*$/.test(t.value))}function sa(t){const n=t.options.fence||"`";if(n!=="`"&&n!=="~")throw new Error("Cannot serialize code with `"+n+"` for `options.fence`, expected `` ` `` or `~`");return n}function ca(t,n,e,r){const l=sa(e),u=t.value||"",i=l==="`"?"GraveAccent":"Tilde";if(oa(t,e)){const c=e.enter("codeIndented"),p=e.indentLines(u,ha);return c(),p}const a=e.createTracker(r),s=l.repeat(Math.max(Yn(u,l)+1,3)),o=e.enter("codeFenced");let h=a.move(s);if(t.lang){const c=e.enter(`codeFencedLang${i}`);h+=a.move(e.safe(t.lang,{before:h,after:" ",encode:["`"],...a.current()})),c()}if(t.lang&&t.meta){const c=e.enter(`codeFencedMeta${i}`);h+=a.move(" "),h+=a.move(e.safe(t.meta,{before:h,after:`
`,encode:["`"],...a.current()})),c()}return h+=a.move(`
`),u&&(h+=a.move(u+`
`)),h+=a.move(s),o(),h}function ha(t,n,e){return(e?"":" ")+t}function he(t){const n=t.options.quote||'"';if(n!=='"'&&n!=="'")throw new Error("Cannot serialize title with `"+n+"` for `options.quote`, expected `\"`, or `'`");return n}function fa(t,n,e,r){const l=he(e),u=l==='"'?"Quote":"Apostrophe",i=e.enter("definition");let a=e.enter("label");const s=e.createTracker(r);let o=s.move("[");return o+=s.move(e.safe(e.associationId(t),{before:o,after:"]",...s.current()})),o+=s.move("]: "),a(),!t.url||/[\0- \u007F]/.test(t.url)?(a=e.enter("destinationLiteral"),o+=s.move("<"),o+=s.move(e.safe(t.url,{before:o,after:">",...s.current()})),o+=s.move(">")):(a=e.enter("destinationRaw"),o+=s.move(e.safe(t.url,{before:o,after:t.title?" ":`
`,...s.current()}))),a(),t.title&&(a=e.enter(`title${u}`),o+=s.move(" "+l),o+=s.move(e.safe(t.title,{before:o,after:l,...s.current()})),o+=s.move(l),a()),i(),o}function pa(t){const n=t.options.emphasis||"*";if(n!=="*"&&n!=="_")throw new Error("Cannot serialize emphasis with `"+n+"` for `options.emphasis`, expected `*`, or `_`");return n}function Et(t){return"&#x"+t.toString(16).toUpperCase()+";"}function qt(t,n,e){const r=bt(t),l=bt(n);return r===void 0?l===void 0?e==="_"?{inside:!0,outside:!0}:{inside:!1,outside:!1}:l===1?{inside:!0,outside:!0}:{inside:!1,outside:!0}:r===1?l===void 0?{inside:!1,outside:!1}:l===1?{inside:!0,outside:!0}:{inside:!1,outside:!1}:l===void 0?{inside:!1,outside:!1}:l===1?{inside:!0,outside:!1}:{inside:!1,outside:!1}}pn.peek=ma;function pn(t,n,e,r){const l=pa(e),u=e.enter("emphasis"),i=e.createTracker(r),a=i.move(l);let s=i.move(e.containerPhrasing(t,{after:l,before:a,...i.current()}));const o=s.charCodeAt(0),h=qt(r.before.charCodeAt(r.before.length-1),o,l);h.inside&&(s=Et(o)+s.slice(1));const c=s.charCodeAt(s.length-1),p=qt(r.after.charCodeAt(0),c,l);p.inside&&(s=s.slice(0,-1)+Et(c));const f=i.move(l);return u(),e.attentionEncodeSurroundingInfo={after:p.outside,before:h.outside},a+s+f}function ma(t,n,e){return e.options.emphasis||"*"}function ga(t,n){let e=!1;return ae(t,function(r){if("value"in r&&/\r?\n|\r/.test(r.value)||r.type==="break")return e=!0,Gn}),!!((!t.depth||t.depth<3)&&oe(t)&&(n.options.setext||e))}function ka(t,n,e,r){const l=Math.max(Math.min(6,t.depth||1),1),u=e.createTracker(r);if(ga(t,e)){const h=e.enter("headingSetext"),c=e.enter("phrasing"),p=e.containerPhrasing(t,{...u.current(),before:`
`,after:`
`});return c(),h(),p+`
`+(l===1?"=":"-").repeat(p.length-(Math.max(p.lastIndexOf("\r"),p.lastIndexOf(`
`))+1))}const i="#".repeat(l),a=e.enter("headingAtx"),s=e.enter("phrasing");u.move(i+" ");let o=e.containerPhrasing(t,{before:"# ",after:`
`,...u.current()});return/^[\t ]/.test(o)&&(o=Et(o.charCodeAt(0))+o.slice(1)),o=o?i+" "+o:i,e.options.closeAtx&&(o+=" "+i),s(),a(),o}mn.peek=xa;function mn(t){return t.value||""}function xa(){return"<"}gn.peek=da;function gn(t,n,e,r){const l=he(e),u=l==='"'?"Quote":"Apostrophe",i=e.enter("image");let a=e.enter("label");const s=e.createTracker(r);let o=s.move("![");return o+=s.move(e.safe(t.alt,{before:o,after:"]",...s.current()})),o+=s.move("]("),a(),!t.url&&t.title||/[\0- \u007F]/.test(t.url)?(a=e.enter("destinationLiteral"),o+=s.move("<"),o+=s.move(e.safe(t.url,{before:o,after:">",...s.current()})),o+=s.move(">")):(a=e.enter("destinationRaw"),o+=s.move(e.safe(t.url,{before:o,after:t.title?" ":")",...s.current()}))),a(),t.title&&(a=e.enter(`title${u}`),o+=s.move(" "+l),o+=s.move(e.safe(t.title,{before:o,after:l,...s.current()})),o+=s.move(l),a()),o+=s.move(")"),i(),o}function da(){return"!"}kn.peek=ya;function kn(t,n,e,r){const l=t.referenceType,u=e.enter("imageReference");let i=e.enter("label");const a=e.createTracker(r);let s=a.move("![");const o=e.safe(t.alt,{before:s,after:"]",...a.current()});s+=a.move(o+"]["),i();const h=e.stack;e.stack=[],i=e.enter("reference");const c=e.safe(e.associationId(t),{before:s,after:"]",...a.current()});return i(),e.stack=h,u(),l==="full"||!o||o!==c?s+=a.move(c+"]"):l==="shortcut"?s=s.slice(0,-1):s+=a.move("]"),s}function ya(){return"!"}xn.peek=ba;function xn(t,n,e){let r=t.value||"",l="`",u=-1;for(;new RegExp("(^|[^`])"+l+"([^`]|$)").test(r);)l+="`";for(/[^ \r\n]/.test(r)&&(/^[ \r\n]/.test(r)&&/[ \r\n]$/.test(r)||/^`|`$/.test(r))&&(r=" "+r+" ");++u<e.unsafe.length;){const i=e.unsafe[u],a=e.compilePattern(i);let s;if(i.atBreak)for(;s=a.exec(r);){let o=s.index;r.charCodeAt(o)===10&&r.charCodeAt(o-1)===13&&o--,r=r.slice(0,o)+" "+r.slice(s.index+1)}}return l+r+l}function ba(){return"`"}function dn(t,n){const e=oe(t);return!!(!n.options.resourceLink&&t.url&&!t.title&&t.children&&t.children.length===1&&t.children[0].type==="text"&&(e===t.url||"mailto:"+e===t.url)&&/^[a-z][a-z+.-]+:/i.test(t.url)&&!/[\0- <>\u007F]/.test(t.url))}yn.peek=wa;function yn(t,n,e,r){const l=he(e),u=l==='"'?"Quote":"Apostrophe",i=e.createTracker(r);let a,s;if(dn(t,e)){const h=e.stack;e.stack=[],a=e.enter("autolink");let c=i.move("<");return c+=i.move(e.containerPhrasing(t,{before:c,after:">",...i.current()})),c+=i.move(">"),a(),e.stack=h,c}a=e.enter("link"),s=e.enter("label");let o=i.move("[");return o+=i.move(e.containerPhrasing(t,{before:o,after:"](",...i.current()})),o+=i.move("]("),s(),!t.url&&t.title||/[\0- \u007F]/.test(t.url)?(s=e.enter("destinationLiteral"),o+=i.move("<"),o+=i.move(e.safe(t.url,{before:o,after:">",...i.current()})),o+=i.move(">")):(s=e.enter("destinationRaw"),o+=i.move(e.safe(t.url,{before:o,after:t.title?" ":")",...i.current()}))),s(),t.title&&(s=e.enter(`title${u}`),o+=i.move(" "+l),o+=i.move(e.safe(t.title,{before:o,after:l,...i.current()})),o+=i.move(l),s()),o+=i.move(")"),a(),o}function wa(t,n,e){return dn(t,e)?"<":"["}bn.peek=Ca;function bn(t,n,e,r){const l=t.referenceType,u=e.enter("linkReference");let i=e.enter("label");const a=e.createTracker(r);let s=a.move("[");const o=e.containerPhrasing(t,{before:s,after:"]",...a.current()});s+=a.move(o+"]["),i();const h=e.stack;e.stack=[],i=e.enter("reference");const c=e.safe(e.associationId(t),{before:s,after:"]",...a.current()});return i(),e.stack=h,u(),l==="full"||!o||o!==c?s+=a.move(c+"]"):l==="shortcut"?s=s.slice(0,-1):s+=a.move("]"),s}function Ca(){return"["}function fe(t){const n=t.options.bullet||"*";if(n!=="*"&&n!=="+"&&n!=="-")throw new Error("Cannot serialize items with `"+n+"` for `options.bullet`, expected `*`, `+`, or `-`");return n}function Sa(t){const n=fe(t),e=t.options.bulletOther;if(!e)return n==="*"?"-":"*";if(e!=="*"&&e!=="+"&&e!=="-")throw new Error("Cannot serialize items with `"+e+"` for `options.bulletOther`, expected `*`, `+`, or `-`");if(e===n)throw new Error("Expected `bullet` (`"+n+"`) and `bulletOther` (`"+e+"`) to be different");return e}function Ia(t){const n=t.options.bulletOrdered||".";if(n!=="."&&n!==")")thro
`,inConstruct:"tableCell"},{atBreak:!0,character:"|",after:"[ :-]"},{character:"|",inConstruct:"tableCell"},{atBreak:!0,character:":",after:"-"},{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{inlineCode:p,table:i,tableCell:s,tableRow:a}};function i(f,k,C,I){return o(h(f,C,I),f.align)}function a(f,k,C,I){const y=c(f,C,I),A=o([y]);return A.slice(0,A.indexOf(`
`))}function s(f,k,C,I){const y=C.enter("tableCell"),A=C.enter("phrasing"),w=C.containerPhrasing(f,{...I,before:u,after:u});return A(),y(),w}function o(f,k){return Zn(f,{align:k,alignDelimiters:r,padding:e,stringLength:l})}function h(f,k,C){const I=f.children;let y=-1;const A=[],w=k.enter("table");for(;++y<I.length;)A[y]=c(I[y],k,C);return w(),A}function c(f,k,C){const I=f.children;let y=-1;const A=[],w=k.enter("tableRow");for(;++y<I.length;)A[y]=s(I[y],f,k,C);return w(),A}function p(f,k,C){let I=Sn.inlineCode(f,k,C);return C.stack.includes("tableCell")&&(I=I.replace(/\|/g,"\\$&")),I}}function $a(){return{exit:{taskListCheckValueChecked:ve,taskListCheckValueUnchecked:ve,paragraph:Ua}}}function Va(){return{unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:Wa}}}function ve(t){const n=this.stack[this.stack.length-2];wt(n.type==="listItem"),n.checked=t.type==="taskListCheckValueChecked"}function Ua(t){const n=this.stack[this.stack.length-2];if(n&&n.type==="listItem"&&typeof n.checked=="boolean"){const e=this.stack[this.stack.length-1];wt(e.type==="paragraph");const r=e.children[0];if(r&&r.type==="text"){const l=n.children;let u=-1,i;for(;++u<l.length;){const a=l[u];if(a.type==="paragraph"){i=a;break}}i===e&&(r.value=r.value.slice(1),r.value.length===0?e.children.shift():e.position&&r.position&&typeof r.position.start.offset=="number"&&(r.position.start.column++,r.position.start.offset++,e.position.start=Object.assign({},r.position.start)))}}this.exit(t)}function Wa(t,n,e,r){const l=t.children[0],u=typeof t.checked=="boolean"&&l&&l.type==="paragraph",i="["+(t.checked?"x":" ")+"] ",a=e.createTracker(r);u&&a.move(i);let s=Sn.listItem(t,n,e,{...r,...a.current()});return u&&(s=s.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,o)),s;function o(h){return h+i}}function Qa(){return[Fu(),Zu(),ta(),Oa(),$a()]}function Ya(t){return{extensions:[Lu(),Ju(t),ea(),ja(t),Va()]}}const Ga={tokenize:eo,partial:!0},In={tokenize:no,partial:!0},zn={tokenize:ro,partial:!0},An={tokenize:io,partial:!0},Za={tokenize:lo,partial:!0},Tn={name:"wwwAutolink",tokenize:Xa,previous:Fn},En={name:"protocolAutolink",tokenize:to,previous:Ln},ot={name:"emailAutolink",tokenize:Ka,previous:Pn},rt={};function Ja(){return{text:rt}}let mt=48;for(;mt<123;)rt[mt]=ot,mt++,mt===58?mt=65:mt===91&&(mt=97);rt[43]=ot;rt[45]=ot;rt[46]=ot;rt[95]=ot;rt[72]=[ot,En];rt[104]=[ot,En];rt[87]=[ot,Tn];rt[119]=[ot,Tn];function Ka(t,n,e){const r=this;let l,u;return i;function i(c){return!re(c)||!Pn.call(r,r.previous)||pe(r.events)?e(c):(t.enter("literalAutolink"),t.enter("literalAutolinkEmail"),a(c))}function a(c){return re(c)?(t.consume(c),a):c===64?(t.consume(c),s):e(c)}function s(c){return c===46?t.check(Za,h,o)(c):c===45||c===95||W(c)?(u=!0,t.consume(c),s):h(c)}function o(c){return t.consume(c),l=!0,s}function h(c){return u&&l&&Q(r.previous)?(t.exit("literalAutolinkEmail"),t.exit("literalAutolink"),n(c)):e(c)}}function Xa(t,n,e){const r=this;return l;function l(i){return i!==87&&i!==119||!Fn.call(r,r.previous)||pe(r.events)?e(i):(t.enter("literalAutolink"),t.enter("literalAutolinkWww"),t.check(Ga,t.attempt(In,t.attempt(zn,u),e),e)(i))}function u(i){return t.exit("literalAutolinkWww"),t.exit("literalAutolink"),n(i)}}function to(t,n,e){const r=this;let l="",u=!1;return i;function i(c){return(c===72||c===104)&&Ln.call(r,r.previous)&&!pe(r.events)?(t.enter("literalAutolink"),t.enter("literalAutolinkHttp"),l+=String.fromCodePoint(c),t.consume(c),a):e(c)}function a(c){if(Q(c)&&l.length<5)return l+=String.fromCodePoint(c),t.consume(c),a;if(c===58){const p=l.toLowerCase();if(p==="http"||p==="https")return t.consume(c),s}return e(c)}function s(c){return c===47?(t.consume(c),u?o:(u=!0,s)):e(c)}function o(c){return c===null||vt(c)||H(c)||gt(c)||Ht(c)?e(c):t.attempt(In,t.attempt(zn,h),e)(c)}function h(c){return t.exit("literalAutolinkHttp"),t.exit("literalAutolink"),n(c)}}function eo(t,n,e){let r=0;return l;function l(i){return(i===87||i===119)&&r<3?(r++,t.consume(i),l):i===46&&r===3?(t.consume(i),u):e(i)}function u(i){return i===null?e(i):n(i)}}function no(t,n,e){let r,l,u;return i;
`+l.value:"")+`
`+e}}function le(t,n){return t.marker?$e(t.marker,n).repeat(3):$e(t.fence,n)}function $e(t,n){return typeof t=="string"?t:t[n]}const vo="yaml";function Ko(t){const n=this,e=t||vo,r=n.data(),l=r.micromarkExtensions||(r.micromarkExtensions=[]),u=r.fromMarkdownExtensions||(r.fromMarkdownExtensions=[]),i=r.toMarkdownExtensions||(r.toMarkdownExtensions=[]);l.push(Lo(e)),u.push(_o(e)),i.push(Ro(e))}function Xo(t){return function(n,e){return Jn(n,{...t,file:e})}}function ts(t){return function(n){return Kn(n,t)}}const qo={arduino:Mr,bash:Br,c:_r,cpp:Dr,csharp:Pr,css:Lr,diff:Fr,go:Er,graphql:Tr,ini:Ar,java:zr,javascript:Ir,json:Sr,kotlin:Cr,less:wr,lua:br,makefile:yr,markdown:dr,objectivec:xr,perl:kr,php:gr,"php-template":mr,plaintext:pr,python:fr,"python-repl":hr,r:cr,ruby:sr,rust:or,scss:ar,shell:ur,sql:lr,swift:ir,typescript:rr,vbnet:nr,wasm:er,xml:tr,yaml:Xn},Ve={},Ho="hljs-";function jo(t){const n=Or.newInstance();return t&&u(t),{highlight:e,highlightAuto:r,listLanguages:l,register:u,registerAlias:i,registered:a};function e(s,o,h){const c=h||Ve,p=typeof c.prefix=="string"?c.prefix:Ho;if(!n.getLanguage(s))throw new Error("Unknown language: `"+s+"` is not registered");n.configure({__emitter:$o,classPrefix:p});const f=n.highlight(o,{ignoreIllegals:!0,language:s});if(f.errorRaised)throw new Error("Could not highlight with `Highlight.js`",{cause:f.errorRaised});const k=f._emitter.root,C=k.data;return C.language=f.language,C.relevance=f.relevance,k}function r(s,o){const c=(o||Ve).subset||l();let p=-1,f=0,k;for(;++p<c.length;){const C=c[p];if(!n.getLanguage(C))continue;const I=e(C,s,o);I.data&&I.data.relevance!==void 0&&I.data.relevance>f&&(f=I.data.relevance,k=I)}return k||{type:"root",children:[],data:{language:void 0,relevance:f}}}function l(){return n.listLanguages()}function u(s,o){if(typeof s=="string")n.registerLanguage(s,o);else{let h;for(h in s)Object.hasOwn(s,h)&&n.registerLanguage(h,s[h])}}function i(s,o){if(typeof s=="string")n.registerAliases(typeof o=="string"?o:[...o],{languageName:s});else{let h;for(h in s)if(Object.hasOwn(s,h)){const c=s[h];n.registerAliases(typeof c=="string"?c:[...c],{languageName:h})}}}function a(s){return!!n.getLanguage(s)}}class $o{constructor(n){this.options=n,this.root={type:"root",children:[],data:{language:void 0,relevance:0}},this.stack=[this.root]}addText(n){if(n==="")return;const e=this.stack[this.stack.length-1],r=e.children[e.children.length-1];r&&r.type==="text"?r.value+=n:e.children.push({type:"text",value:n})}startScope(n){this.openNode(String(n))}endScope(){this.closeNode()}__addSublanguage(n,e){const r=this.stack[this.stack.length-1],l=n.root.children;e?r.children.push({type:"element",tagName:"span",properties:{className:[e]},children:l}):r.children.push(...l)}openNode(n){const e=this,r=n.split(".").map(function(i,a){return a?i+"_".repeat(a):e.options.classPrefix+i}),l=this.stack[this.stack.length-1],u={type:"element",tagName:"span",properties:{className:r},children:[]};l.children.push(u),this.stack.push(u)}closeNode(){this.stack.pop()}finalize(){}toHTML(){return""}}const Vo={};function es(t){const n=t||Vo,e=n.aliases,r=n.detect||!1,l=n.languages||qo,u=n.plainText,i=n.prefix,a=n.subset;let s="hljs";const o=jo(l);if(e&&o.registerAlias(e),i){const h=i.indexOf("-");s=h===-1?i:i.slice(0,h)}return function(h,c){ae(h,"element",function(p,f,k){if(p.tagName!=="code"||!k||k.type!=="element"||k.tagName!=="pre")return;const C=Uo(p);if(C===!1||!C&&!r||C&&u&&u.includes(C))return;Array.isArray(p.properties.className)||(p.properties.className=[]),p.properties.className.includes(s)||p.properties.className.unshift(s);const I=Rr(p,{whitespace:"pre"});let y;try{y=C?o.highlight(C,I,{prefix:i}):o.highlightAuto(I,{prefix:i,subset:a})}catch(A){const w=A;if(C&&/Unknown language/.test(w.message)){c.message("Cannot highlight as `"+C+"`, its not registered",{ancestors:[k,p],cause:w,place:p.position,ruleId:"missing-language",source:"rehype-highlight"});return}throw w}!C&&y.data&&y.data.language&&p.properties.className.push("language-"+y.data.language),y.children.length>0&&(p.children=y.children)})}}func