@openloaf/openspeech-frontend 0.2.34 → 0.2.36

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,14 +0,0 @@
1
- import{d as H,g as Tt,j as Ze}from"./proxy-C8trGop7.js";const xr=[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]],fu=H("arrow-left",xr);const kr=[["path",{d:"M12 8V4H8",key:"hb8ula"}],["rect",{width:"16",height:"12",x:"4",y:"8",rx:"2",key:"enze0r"}],["path",{d:"M2 14h2",key:"vft8re"}],["path",{d:"M20 14h2",key:"4cs60a"}],["path",{d:"M15 13v2",key:"1xurst"}],["path",{d:"M9 13v2",key:"rq6x2g"}]],du=H("bot",kr);const br=[["path",{d:"M12 18V5",key:"adv99a"}],["path",{d:"M15 13a4.17 4.17 0 0 1-3-4 4.17 4.17 0 0 1-3 4",key:"1e3is1"}],["path",{d:"M17.598 6.5A3 3 0 1 0 12 5a3 3 0 1 0-5.598 1.5",key:"1gqd8o"}],["path",{d:"M17.997 5.125a4 4 0 0 1 2.526 5.77",key:"iwvgf7"}],["path",{d:"M18 18a4 4 0 0 0 2-7.464",key:"efp6ie"}],["path",{d:"M19.967 17.483A4 4 0 1 1 12 18a4 4 0 1 1-7.967-.517",key:"1gq6am"}],["path",{d:"M6 18a4 4 0 0 1-2-7.464",key:"k1g0md"}],["path",{d:"M6.003 5.125a4 4 0 0 0-2.526 5.77",key:"q97ue3"}]],mu=H("brain",br);const wr=[["path",{d:"M13.997 4a2 2 0 0 1 1.76 1.05l.486.9A2 2 0 0 0 18.003 7H20a2 2 0 0 1 2 2v9a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V9a2 2 0 0 1 2-2h1.997a2 2 0 0 0 1.759-1.048l.489-.904A2 2 0 0 1 10.004 4z",key:"18u6gg"}],["circle",{cx:"12",cy:"13",r:"3",key:"1vg3eu"}]],gu=H("camera",wr);const Sr=[["path",{d:"M19 17h2c.6 0 1-.4 1-1v-3c0-.9-.7-1.7-1.5-1.9C18.7 10.6 16 10 16 10s-1.3-1.4-2.2-2.3c-.5-.4-1.1-.7-1.8-.7H5c-.6 0-1.1.4-1.4.9l-1.4 2.9A3.7 3.7 0 0 0 2 12v4c0 .6.4 1 1 1h2",key:"5owen"}],["circle",{cx:"7",cy:"17",r:"2",key:"u2ysq9"}],["path",{d:"M9 17h6",key:"r8uit2"}],["circle",{cx:"17",cy:"17",r:"2",key:"axvx0g"}]],yu=H("car",Sr);const Cr=[["path",{d:"m12.296 3.464 3.02 3.956",key:"qash78"}],["path",{d:"M20.2 6 3 11l-.9-2.4c-.3-1.1.3-2.2 1.3-2.5l13.5-4c1.1-.3 2.2.3 2.5 1.3z",key:"1h7j8b"}],["path",{d:"M3 11h18v8a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z",key:"4lm6w1"}],["path",{d:"m6.18 5.276 3.1 3.899",key:"zjj9t3"}]],xu=H("clapperboard",Cr);const Er=[["path",{d:"m18 16 4-4-4-4",key:"1inbqp"}],["path",{d:"m6 8-4 4 4 4",key:"15zrgr"}],["path",{d:"m14.5 4-5 16",key:"e7oirm"}]],ku=H("code-xml",Er);const Ir=[["path",{d:"M12 15V3",key:"m9g1x1"}],["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["path",{d:"m7 10 5 5 5-5",key:"brsn70"}]],bu=H("download",Ir);const Ar=[["path",{d:"M12.67 19a2 2 0 0 0 1.416-.588l6.154-6.172a6 6 0 0 0-8.49-8.49L5.586 9.914A2 2 0 0 0 5 11.328V18a1 1 0 0 0 1 1z",key:"18jl4k"}],["path",{d:"M16 8 2 22",key:"vp34q"}],["path",{d:"M17.5 15H9",key:"1oz8nu"}]],wu=H("feather",Ar);const Tr=[["path",{d:"M21.42 10.922a1 1 0 0 0-.019-1.838L12.83 5.18a2 2 0 0 0-1.66 0L2.6 9.08a1 1 0 0 0 0 1.832l8.57 3.908a2 2 0 0 0 1.66 0z",key:"j76jl0"}],["path",{d:"M22 10v6",key:"1lu8f3"}],["path",{d:"M6 12.5V16a6 3 0 0 0 12 0v-3.5",key:"1r8lef"}]],Su=H("graduation-cap",Tr);const Pr=[["path",{d:"m5 8 6 6",key:"1wu5hv"}],["path",{d:"m4 14 6-6 2-3",key:"1k1g8d"}],["path",{d:"M2 5h12",key:"or177f"}],["path",{d:"M7 2h1",key:"1t2jsx"}],["path",{d:"m22 22-5-10-5 10",key:"don7ne"}],["path",{d:"M14 18h6",key:"1m8k6r"}]],Cu=H("languages",Pr);const zr=[["path",{d:"M11 20A7 7 0 0 1 9.8 6.1C15.5 5 17 4.48 19 2c1 2 2 4.18 2 8 0 5.5-4.78 10-10 10Z",key:"nnexq3"}],["path",{d:"M2 21c0-3 1.85-5.36 5.08-6C9.5 14.52 12 13 13 12",key:"mt58a7"}]],Eu=H("leaf",zr);const _r=[["path",{d:"m22 7-8.991 5.727a2 2 0 0 1-2.009 0L2 7",key:"132q7q"}],["rect",{x:"2",y:"4",width:"20",height:"16",rx:"2",key:"izxlao"}]],Iu=H("mail",_r);const vr=[["path",{d:"M11 6a13 13 0 0 0 8.4-2.8A1 1 0 0 1 21 4v12a1 1 0 0 1-1.6.8A13 13 0 0 0 11 14H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2z",key:"q8bfy3"}],["path",{d:"M6 14a12 12 0 0 0 2.4 7.2 2 2 0 0 0 3.2-2.4A8 8 0 0 1 10 14",key:"1853fq"}],["path",{d:"M8 6v8",key:"15ugcq"}]],Au=H("megaphone",vr);const Mr=[["path",{d:"M12 19v3",key:"npa21l"}],["path",{d:"M19 10v2a7 7 0 0 1-14 0v-2",key:"1vc78b"}],["rect",{x:"9",y:"2",width:"6",height:"13",rx:"3",key:"s6n7sd"}]],Tu=H("mic",Mr);const Lr=[["path",{d:"M12 22a1 1 0 0 1 0-20 10 9 0 0 1 10 9 5 5 0 0 1-5 5h-2.25a1.75 1.75 0 0 0-1.4 2.8l.3.4a1.75 1.75 0 0 1-1.4 2.8z",key:"e79jfc"}],["circle",{cx:"13.5",cy:"6.5",r:".5",fill:"currentColor",key:"1okk4w"}],["circle",{cx:"17.5",cy:"10.5",r:".5",fill:"currentColor",key:"f64h9f"}],["circle",{cx:"6.5",cy:"12.5",r:".5",fill:"currentColor",key:"qy21gx"}],["circle",{cx:"8.5",cy:"7.5",r:".5",fill:"currentColor",key:"fotxhn"}]],Pu=H("palette",Lr);const Nr=[["rect",{x:"14",y:"3",width:"5",height:"18",rx:"1",key:"kaeet6"}],["rect",{x:"5",y:"3",width:"5",height:"18",rx:"1",key:"1wsw3u"}]],zu=H("pause",Nr);const Dr=[["path",{d:"M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z",key:"1a8usu"}],["path",{d:"m15 5 4 4",key:"1mk7zo"}]],_u=H("pencil",Dr);const Or=[["path",{d:"M5 5a2 2 0 0 1 3.008-1.728l11.997 6.998a2 2 0 0 1 .003 3.458l-12 7A2 2 0 0 1 5 19z",key:"10ikf1"}]],vu=H("play",Or);const Fr=[["path",{d:"M12 3v18",key:"108xh3"}],["path",{d:"m19 8 3 8a5 5 0 0 1-6 0zV7",key:"zcdpyk"}],["path",{d:"M3 7h1a17 17 0 0 0 8-2 17 17 0 0 0 8 2h1",key:"1yorad"}],["path",{d:"m5 8 3 8a5 5 0 0 1-6 0zV7",key:"eua70x"}],["path",{d:"M7 21h10",key:"1b0cd5"}]],Mu=H("scale",Fr);const Rr=[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]],Lu=H("search",Rr);const Br=[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}]],Nu=H("shield",Br);const jr=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}]],Du=H("square",jr);const Hr=[["path",{d:"M11 2v2",key:"1539x4"}],["path",{d:"M5 2v2",key:"1yf1q8"}],["path",{d:"M5 3H4a2 2 0 0 0-2 2v4a6 6 0 0 0 12 0V5a2 2 0 0 0-2-2h-1",key:"rb5t3r"}],["path",{d:"M8 15a6 6 0 0 0 12 0v-3",key:"x18d4x"}],["circle",{cx:"20",cy:"10",r:"2",key:"ts1r5v"}]],Ou=H("stethoscope",Hr);const Vr=[["path",{d:"M10 11v6",key:"nco0om"}],["path",{d:"M14 11v6",key:"outv1u"}],["path",{d:"M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6",key:"miytrc"}],["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2",key:"e791ji"}]],Fu=H("trash-2",Vr);const qr=[["path",{d:"M16 7h6v6",key:"box55l"}],["path",{d:"m22 7-8.5 8.5-5-5L2 17",key:"1t1m79"}]],Ru=H("trending-up",qr);const Ur=[["path",{d:"M14.7 6.3a1 1 0 0 0 0 1.4l1.6 1.6a1 1 0 0 0 1.4 0l3.106-3.105c.32-.322.863-.22.983.218a6 6 0 0 1-8.259 7.057l-7.91 7.91a1 1 0 0 1-2.999-3l7.91-7.91a6 6 0 0 1 7.057-8.259c.438.12.54.662.219.984z",key:"1ngwbx"}]],Bu=H("wrench",Ur);function $r(e,n){const t={};return(e[e.length-1]===""?[...e,""]:e).join((t.padRight?" ":"")+","+(t.padLeft===!1?"":" ")).trim()}const Wr=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,Xr=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,Yr={};function qn(e,n){return(Yr.jsx?Xr:Wr).test(e)}const Qr=/[ \t\n\f\r]/g;function Gr(e){return typeof e=="object"?e.type==="text"?Un(e.value):!1:Un(e)}function Un(e){return e.replace(Qr,"")===""}class He{constructor(n,t,r){this.normal=t,this.property=n,r&&(this.space=r)}}He.prototype.normal={};He.prototype.property={};He.prototype.space=void 0;function Pt(e,n){const t={},r={};for(const i of e)Object.assign(t,i.property),Object.assign(r,i.normal);return new He(t,r,n)}function dn(e){return e.toLowerCase()}class Z{constructor(n,t){this.attribute=t,this.property=n}}Z.prototype.attribute="";Z.prototype.booleanish=!1;Z.prototype.boolean=!1;Z.prototype.commaOrSpaceSeparated=!1;Z.prototype.commaSeparated=!1;Z.prototype.defined=!1;Z.prototype.mustUseProperty=!1;Z.prototype.number=!1;Z.prototype.overloadedBoolean=!1;Z.prototype.property="";Z.prototype.spaceSeparated=!1;Z.prototype.space=void 0;let Kr=0;const M=be(),X=be(),mn=be(),k=be(),$=be(),Ae=be(),ne=be();function be(){return 2**++Kr}const gn=Object.freeze(Object.defineProperty({__proto__:null,boolean:M,booleanish:X,commaOrSpaceSeparated:ne,commaSeparated:Ae,number:k,overloadedBoolean:mn,spaceSeparated:$},Symbol.toStringTag,{value:"Module"})),en=Object.keys(gn);class En extends Z{constructor(n,t,r,i){let l=-1;if(super(n,t),$n(this,"space",i),typeof r=="number")for(;++l<en.length;){const o=en[l];$n(this,en[l],(r&gn[o])===gn[o])}}}En.prototype.defined=!0;function $n(e,n,t){t&&(e[n]=t)}function Pe(e){const n={},t={};for(const[r,i]of Object.entries(e.properties)){const l=new En(r,e.transform(e.attributes||{},r),i,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(l.mustUseProperty=!0),n[r]=l,t[dn(r)]=r,t[dn(l.attribute)]=r}return new He(n,t,e.space)}const zt=Pe({properties:{ariaActiveDescendant:null,ariaAtomic:X,ariaAutoComplete:null,ariaBusy:X,ariaChecked:X,ariaColCount:k,ariaColIndex:k,ariaColSpan:k,ariaControls:$,ariaCurrent:null,ariaDescribedBy:$,ariaDetails:null,ariaDisabled:X,ariaDropEffect:$,ariaErrorMessage:null,ariaExpanded:X,ariaFlowTo:$,ariaGrabbed:X,ariaHasPopup:null,ariaHidden:X,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:$,ariaLevel:k,ariaLive:null,ariaModal:X,ariaMultiLine:X,ariaMultiSelectable:X,ariaOrientation:null,ariaOwns:$,ariaPlaceholder:null,ariaPosInSet:k,ariaPressed:X,ariaReadOnly:X,ariaRelevant:null,ariaRequired:X,ariaRoleDescription:$,ariaRowCount:k,ariaRowIndex:k,ariaRowSpan:k,ariaSelected:X,ariaSetSize:k,ariaSort:null,ariaValueMax:k,ariaValueMin:k,ariaValueNow:k,ariaValueText:null,role:null},transform(e,n){return n==="role"?n:"aria-"+n.slice(4).toLowerCase()}});function _t(e,n){return n in e?e[n]:n}function vt(e,n){return _t(e,n.toLowerCase())}const Jr=Pe({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:Ae,acceptCharset:$,accessKey:$,action:null,allow:null,allowFullScreen:M,allowPaymentRequest:M,allowUserMedia:M,alt:null,as:null,async:M,autoCapitalize:null,autoComplete:$,autoFocus:M,autoPlay:M,blocking:$,capture:null,charSet:null,checked:M,cite:null,className:$,cols:k,colSpan:null,content:null,contentEditable:X,controls:M,controlsList:$,coords:k|Ae,crossOrigin:null,data:null,dateTime:null,decoding:null,default:M,defer:M,dir:null,dirName:null,disabled:M,download:mn,draggable:X,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:M,formTarget:null,headers:$,height:k,hidden:mn,high:k,href:null,hrefLang:null,htmlFor:$,httpEquiv:$,id:null,imageSizes:null,imageSrcSet:null,inert:M,inputMode:null,integrity:null,is:null,isMap:M,itemId:null,itemProp:$,itemRef:$,itemScope:M,itemType:$,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:M,low:k,manifest:null,max:null,maxLength:k,media:null,method:null,min:null,minLength:k,multiple:M,muted:M,name:null,nonce:null,noModule:M,noValidate:M,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:M,optimum:k,pattern:null,ping:$,placeholder:null,playsInline:M,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:M,referrerPolicy:null,rel:$,required:M,reversed:M,rows:k,rowSpan:k,sandbox:$,scope:null,scoped:M,seamless:M,selected:M,shadowRootClonable:M,shadowRootDelegatesFocus:M,shadowRootMode:null,shape:null,size:k,sizes:null,slot:null,span:k,spellCheck:X,src:null,srcDoc:null,srcLang:null,srcSet:null,start:k,step:null,style:null,tabIndex:k,target:null,title:null,translate:null,type:null,typeMustMatch:M,useMap:null,value:X,width:k,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:$,axis:null,background:null,bgColor:null,border:k,borderColor:null,bottomMargin:k,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:M,declare:M,event:null,face:null,frame:null,frameBorder:null,hSpace:k,leftMargin:k,link:null,longDesc:null,lowSrc:null,marginHeight:k,marginWidth:k,noResize:M,noHref:M,noShade:M,noWrap:M,object:null,profile:null,prompt:null,rev:null,rightMargin:k,rules:null,scheme:null,scrolling:X,standby:null,summary:null,text:null,topMargin:k,valueType:null,version:null,vAlign:null,vLink:null,vSpace:k,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:M,disableRemotePlayback:M,prefix:null,property:null,results:k,security:null,unselectable:null},space:"html",transform:vt}),Zr=Pe({attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},properties:{about:ne,accentHeight:k,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:k,amplitude:k,arabicForm:null,ascent:k,attributeName:null,attributeType:null,azimuth:k,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:k,by:null,calcMode:null,capHeight:k,className:$,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:k,diffuseConstant:k,direction:null,display:null,dur:null,divisor:k,dominantBaseline:null,download:M,dx:null,dy:null,edgeMode:null,editable:null,elevation:k,enableBackground:null,end:null,event:null,exponent:k,externalResourcesRequired:null,fill:null,fillOpacity:k,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:Ae,g2:Ae,glyphName:Ae,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:k,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:k,horizOriginX:k,horizOriginY:k,id:null,ideographic:k,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:k,k,k1:k,k2:k,k3:k,k4:k,kernelMatrix:ne,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:k,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:k,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:k,overlineThickness:k,paintOrder:null,panose1:null,path:null,pathLength:k,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:$,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:k,pointsAtY:k,pointsAtZ:k,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:ne,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:ne,rev:ne,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:ne,requiredFeatures:ne,requiredFonts:ne,requiredFormats:ne,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:k,specularExponent:k,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:k,strikethroughThickness:k,string:null,stroke:null,strokeDashArray:ne,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:k,strokeOpacity:k,strokeWidth:null,style:null,surfaceScale:k,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:ne,tabIndex:k,tableValues:null,target:null,targetX:k,targetY:k,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:ne,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:k,underlineThickness:k,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:k,values:null,vAlphabetic:k,vMathematical:k,vectorEffect:null,vHanging:k,vIdeographic:k,version:null,vertAdvY:k,vertOriginX:k,vertOriginY:k,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:k,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:_t}),Mt=Pe({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform(e,n){return"xlink:"+n.slice(5).toLowerCase()}}),Lt=Pe({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:vt}),Nt=Pe({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(e,n){return"xml:"+n.slice(3).toLowerCase()}}),ei={classId:"classID",dataType:"datatype",itemId:"itemID",strokeDashArray:"strokeDasharray",strokeDashOffset:"strokeDashoffset",strokeLineCap:"strokeLinecap",strokeLineJoin:"strokeLinejoin",strokeMiterLimit:"strokeMiterlimit",typeOf:"typeof",xLinkActuate:"xlinkActuate",xLinkArcRole:"xlinkArcrole",xLinkHref:"xlinkHref",xLinkRole:"xlinkRole",xLinkShow:"xlinkShow",xLinkTitle:"xlinkTitle",xLinkType:"xlinkType",xmlnsXLink:"xmlnsXlink"},ni=/[A-Z]/g,Wn=/-[a-z]/g,ti=/^data[-\w.:]+$/i;function ri(e,n){const t=dn(n);let r=n,i=Z;if(t in e.normal)return e.property[e.normal[t]];if(t.length>4&&t.slice(0,4)==="data"&&ti.test(n)){if(n.charAt(4)==="-"){const l=n.slice(5).replace(Wn,li);r="data"+l.charAt(0).toUpperCase()+l.slice(1)}else{const l=n.slice(4);if(!Wn.test(l)){let o=l.replace(ni,ii);o.charAt(0)!=="-"&&(o="-"+o),n="data"+o}}i=En}return new i(r,n)}function ii(e){return"-"+e.toLowerCase()}function li(e){return e.charAt(1).toUpperCase()}const oi=Pt([zt,Jr,Mt,Lt,Nt],"html"),In=Pt([zt,Zr,Mt,Lt,Nt],"svg");function ai(e){return e.join(" ").trim()}var Ee={},nn,Xn;function ui(){if(Xn)return nn;Xn=1;var e=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,n=/\n/g,t=/^\s*/,r=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,i=/^:\s*/,l=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,o=/^[;\s]*/,a=/^\s+|\s+$/g,c=`
2
- `,u="/",s="*",h="",m="comment",p="declaration";function w(I,x){if(typeof I!="string")throw new TypeError("First argument must be a string");if(!I)return[];x=x||{};var _=1,E=1;function B(P){var S=P.match(n);S&&(_+=S.length);var R=P.lastIndexOf(c);E=~R?P.length-R:E+P.length}function V(){var P={line:_,column:E};return function(S){return S.position=new y(P),O(),S}}function y(P){this.start=P,this.end={line:_,column:E},this.source=x.source}y.prototype.content=I;function N(P){var S=new Error(x.source+":"+_+":"+E+": "+P);if(S.reason=P,S.filename=x.source,S.line=_,S.column=E,S.source=I,!x.silent)throw S}function q(P){var S=P.exec(I);if(S){var R=S[0];return B(R),I=I.slice(R.length),S}}function O(){q(t)}function F(P){var S;for(P=P||[];S=T();)S!==!1&&P.push(S);return P}function T(){var P=V();if(!(u!=I.charAt(0)||s!=I.charAt(1))){for(var S=2;h!=I.charAt(S)&&(s!=I.charAt(S)||u!=I.charAt(S+1));)++S;if(S+=2,h===I.charAt(S-1))return N("End of comment missing");var R=I.slice(2,S-2);return E+=2,B(R),I=I.slice(S),E+=2,P({type:m,comment:R})}}function A(){var P=V(),S=q(r);if(S){if(T(),!q(i))return N("property missing ':'");var R=q(l),Y=P({type:p,property:C(S[0].replace(e,h)),value:R?C(R[0].replace(e,h)):h});return q(o),Y}}function U(){var P=[];F(P);for(var S;S=A();)S!==!1&&(P.push(S),F(P));return P}return O(),U()}function C(I){return I?I.replace(a,h):h}return nn=w,nn}var Yn;function si(){if(Yn)return Ee;Yn=1;var e=Ee&&Ee.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(Ee,"__esModule",{value:!0}),Ee.default=t;const n=e(ui());function t(r,i){let l=null;if(!r||typeof r!="string")return l;const o=(0,n.default)(r),a=typeof i=="function";return o.forEach(c=>{if(c.type!=="declaration")return;const{property:u,value:s}=c;a?i(u,s,c):s&&(l=l||{},l[u]=s)}),l}return Ee}var Le={},Qn;function ci(){if(Qn)return Le;Qn=1,Object.defineProperty(Le,"__esModule",{value:!0}),Le.camelCase=void 0;var e=/^--[a-zA-Z0-9_-]+$/,n=/-([a-z])/g,t=/^[^-]+$/,r=/^-(webkit|moz|ms|o|khtml)-/,i=/^-(ms)-/,l=function(u){return!u||t.test(u)||e.test(u)},o=function(u,s){return s.toUpperCase()},a=function(u,s){return"".concat(s,"-")},c=function(u,s){return s===void 0&&(s={}),l(u)?u:(u=u.toLowerCase(),s.reactCompat?u=u.replace(i,a):u=u.replace(r,a),u.replace(n,o))};return Le.camelCase=c,Le}var Ne,Gn;function pi(){if(Gn)return Ne;Gn=1;var e=Ne&&Ne.__importDefault||function(i){return i&&i.__esModule?i:{default:i}},n=e(si()),t=ci();function r(i,l){var o={};return!i||typeof i!="string"||(0,n.default)(i,function(a,c){a&&c&&(o[(0,t.camelCase)(a,l)]=c)}),o}return r.default=r,Ne=r,Ne}var hi=pi();const fi=Tt(hi),Dt=Ot("end"),An=Ot("start");function Ot(e){return n;function n(t){const r=t&&t.position&&t.position[e]||{};if(typeof r.line=="number"&&r.line>0&&typeof r.column=="number"&&r.column>0)return{line:r.line,column:r.column,offset:typeof r.offset=="number"&&r.offset>-1?r.offset:void 0}}}function di(e){const n=An(e),t=Dt(e);if(n&&t)return{start:n,end:t}}function Fe(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?Kn(e.position):"start"in e||"end"in e?Kn(e):"line"in e||"column"in e?yn(e):""}function yn(e){return Jn(e&&e.line)+":"+Jn(e&&e.column)}function Kn(e){return yn(e&&e.start)+"-"+yn(e&&e.end)}function Jn(e){return e&&typeof e=="number"?e:1}class G extends Error{constructor(n,t,r){super(),typeof t=="string"&&(r=t,t=void 0);let i="",l={},o=!1;if(t&&("line"in t&&"column"in t?l={place:t}:"start"in t&&"end"in t?l={place:t}:"type"in t?l={ancestors:[t],place:t.position}:l={...t}),typeof n=="string"?i=n:!l.cause&&n&&(o=!0,i=n.message,l.cause=n),!l.ruleId&&!l.source&&typeof r=="string"){const c=r.indexOf(":");c===-1?l.ruleId=r:(l.source=r.slice(0,c),l.ruleId=r.slice(c+1))}if(!l.place&&l.ancestors&&l.ancestors){const c=l.ancestors[l.ancestors.length-1];c&&(l.place=c.position)}const a=l.place&&"start"in l.place?l.place.start:l.place;this.ancestors=l.ancestors||void 0,this.cause=l.cause||void 0,this.column=a?a.column:void 0,this.fatal=void 0,this.file="",this.message=i,this.line=a?a.line:void 0,this.name=Fe(l.place)||"1:1",this.place=l.place||void 0,this.reason=this.message,this.ruleId=l.ruleId||void 0,this.source=l.source||void 0,this.stack=o&&l.cause&&typeof l.cause.stack=="string"?l.cause.stack:"",this.actual=void 0,this.expected=void 0,this.note=void 0,this.url=void 0}}G.prototype.file="";G.prototype.name="";G.prototype.reason="";G.prototype.message="";G.prototype.stack="";G.prototype.column=void 0;G.prototype.line=void 0;G.prototype.ancestors=void 0;G.prototype.cause=void 0;G.prototype.fatal=void 0;G.prototype.place=void 0;G.prototype.ruleId=void 0;G.prototype.source=void 0;const Tn={}.hasOwnProperty,mi=new Map,gi=/[A-Z]/g,yi=new Set(["table","tbody","thead","tfoot","tr"]),xi=new Set(["td","th"]),Ft="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function ki(e,n){if(!n||n.Fragment===void 0)throw new TypeError("Expected `Fragment` in options");const t=n.filePath||void 0;let r;if(n.development){if(typeof n.jsxDEV!="function")throw new TypeError("Expected `jsxDEV` in options when `development: true`");r=Ti(t,n.jsxDEV)}else{if(typeof n.jsx!="function")throw new TypeError("Expected `jsx` in production options");if(typeof n.jsxs!="function")throw new TypeError("Expected `jsxs` in production options");r=Ai(t,n.jsx,n.jsxs)}const i={Fragment:n.Fragment,ancestors:[],components:n.components||{},create:r,elementAttributeNameCase:n.elementAttributeNameCase||"react",evaluater:n.createEvaluater?n.createEvaluater():void 0,filePath:t,ignoreInvalidStyle:n.ignoreInvalidStyle||!1,passKeys:n.passKeys!==!1,passNode:n.passNode||!1,schema:n.space==="svg"?In:oi,stylePropertyNameCase:n.stylePropertyNameCase||"dom",tableCellAlignToStyle:n.tableCellAlignToStyle!==!1},l=Rt(i,e,void 0);return l&&typeof l!="string"?l:i.create(e,i.Fragment,{children:l||void 0},void 0)}function Rt(e,n,t){if(n.type==="element")return bi(e,n,t);if(n.type==="mdxFlowExpression"||n.type==="mdxTextExpression")return wi(e,n);if(n.type==="mdxJsxFlowElement"||n.type==="mdxJsxTextElement")return Ci(e,n,t);if(n.type==="mdxjsEsm")return Si(e,n);if(n.type==="root")return Ei(e,n,t);if(n.type==="text")return Ii(e,n)}function bi(e,n,t){const r=e.schema;let i=r;n.tagName.toLowerCase()==="svg"&&r.space==="html"&&(i=In,e.schema=i),e.ancestors.push(n);const l=jt(e,n.tagName,!1),o=Pi(e,n);let a=zn(e,n);return yi.has(n.tagName)&&(a=a.filter(function(c){return typeof c=="string"?!Gr(c):!0})),Bt(e,o,l,n),Pn(o,a),e.ancestors.pop(),e.schema=r,e.create(n,l,o,t)}function wi(e,n){if(n.data&&n.data.estree&&e.evaluater){const r=n.data.estree.body[0];return r.type,e.evaluater.evaluateExpression(r.expression)}je(e,n.position)}function Si(e,n){if(n.data&&n.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(n.data.estree);je(e,n.position)}function Ci(e,n,t){const r=e.schema;let i=r;n.name==="svg"&&r.space==="html"&&(i=In,e.schema=i),e.ancestors.push(n);const l=n.name===null?e.Fragment:jt(e,n.name,!0),o=zi(e,n),a=zn(e,n);return Bt(e,o,l,n),Pn(o,a),e.ancestors.pop(),e.schema=r,e.create(n,l,o,t)}function Ei(e,n,t){const r={};return Pn(r,zn(e,n)),e.create(n,e.Fragment,r,t)}function Ii(e,n){return n.value}function Bt(e,n,t,r){typeof t!="string"&&t!==e.Fragment&&e.passNode&&(n.node=r)}function Pn(e,n){if(n.length>0){const t=n.length>1?n:n[0];t&&(e.children=t)}}function Ai(e,n,t){return r;function r(i,l,o,a){const u=Array.isArray(o.children)?t:n;return a?u(l,o,a):u(l,o)}}function Ti(e,n){return t;function t(r,i,l,o){const a=Array.isArray(l.children),c=An(r);return n(i,l,o,a,{columnNumber:c?c.column-1:void 0,fileName:e,lineNumber:c?c.line:void 0},void 0)}}function Pi(e,n){const t={};let r,i;for(i in n.properties)if(i!=="children"&&Tn.call(n.properties,i)){const l=_i(e,i,n.properties[i]);if(l){const[o,a]=l;e.tableCellAlignToStyle&&o==="align"&&typeof a=="string"&&xi.has(n.tagName)?r=a:t[o]=a}}if(r){const l=t.style||(t.style={});l[e.stylePropertyNameCase==="css"?"text-align":"textAlign"]=r}return t}function zi(e,n){const t={};for(const r of n.attributes)if(r.type==="mdxJsxExpressionAttribute")if(r.data&&r.data.estree&&e.evaluater){const l=r.data.estree.body[0];l.type;const o=l.expression;o.type;const a=o.properties[0];a.type,Object.assign(t,e.evaluater.evaluateExpression(a.argument))}else je(e,n.position);else{const i=r.name;let l;if(r.value&&typeof r.value=="object")if(r.value.data&&r.value.data.estree&&e.evaluater){const a=r.value.data.estree.body[0];a.type,l=e.evaluater.evaluateExpression(a.expression)}else je(e,n.position);else l=r.value===null?!0:r.value;t[i]=l}return t}function zn(e,n){const t=[];let r=-1;const i=e.passKeys?new Map:mi;for(;++r<n.children.length;){const l=n.children[r];let o;if(e.passKeys){const c=l.type==="element"?l.tagName:l.type==="mdxJsxFlowElement"||l.type==="mdxJsxTextElement"?l.name:void 0;if(c){const u=i.get(c)||0;o=c+"-"+u,i.set(c,u+1)}}const a=Rt(e,l,o);a!==void 0&&t.push(a)}return t}function _i(e,n,t){const r=ri(e.schema,n);if(!(t==null||typeof t=="number"&&Number.isNaN(t))){if(Array.isArray(t)&&(t=r.commaSeparated?$r(t):ai(t)),r.property==="style"){let i=typeof t=="object"?t:vi(e,String(t));return e.stylePropertyNameCase==="css"&&(i=Mi(i)),["style",i]}return[e.elementAttributeNameCase==="react"&&r.space?ei[r.property]||r.property:r.attribute,t]}}function vi(e,n){try{return fi(n,{reactCompat:!0})}catch(t){if(e.ignoreInvalidStyle)return{};const r=t,i=new G("Cannot parse `style` attribute",{ancestors:e.ancestors,cause:r,ruleId:"style",source:"hast-util-to-jsx-runtime"});throw i.file=e.filePath||void 0,i.url=Ft+"#cannot-parse-style-attribute",i}}function jt(e,n,t){let r;if(!t)r={type:"Literal",value:n};else if(n.includes(".")){const i=n.split(".");let l=-1,o;for(;++l<i.length;){const a=qn(i[l])?{type:"Identifier",name:i[l]}:{type:"Literal",value:i[l]};o=o?{type:"MemberExpression",object:o,property:a,computed:!!(l&&a.type==="Literal"),optional:!1}:a}r=o}else r=qn(n)&&!/^[a-z]/.test(n)?{type:"Identifier",name:n}:{type:"Literal",value:n};if(r.type==="Literal"){const i=r.value;return Tn.call(e.components,i)?e.components[i]:i}if(e.evaluater)return e.evaluater.evaluateExpression(r);je(e)}function je(e,n){const t=new G("Cannot handle MDX estrees without `createEvaluater`",{ancestors:e.ancestors,place:n,ruleId:"mdx-estree",source:"hast-util-to-jsx-runtime"});throw t.file=e.filePath||void 0,t.url=Ft+"#cannot-handle-mdx-estrees-without-createevaluater",t}function Mi(e){const n={};let t;for(t in e)Tn.call(e,t)&&(n[Li(t)]=e[t]);return n}function Li(e){let n=e.replace(gi,Ni);return n.slice(0,3)==="ms-"&&(n="-"+n),n}function Ni(e){return"-"+e.toLowerCase()}const tn={action:["form"],cite:["blockquote","del","ins","q"],data:["object"],formAction:["button","input"],href:["a","area","base","link"],icon:["menuitem"],itemId:null,manifest:["html"],ping:["a","area"],poster:["video"],src:["audio","embed","iframe","img","input","script","source","track","video"]},Di={};function Oi(e,n){const t=Di,r=typeof t.includeImageAlt=="boolean"?t.includeImageAlt:!0,i=typeof t.includeHtml=="boolean"?t.includeHtml:!0;return Ht(e,r,i)}function Ht(e,n,t){if(Fi(e)){if("value"in e)return e.type==="html"&&!t?"":e.value;if(n&&"alt"in e&&e.alt)return e.alt;if("children"in e)return Zn(e.children,n,t)}return Array.isArray(e)?Zn(e,n,t):""}function Zn(e,n,t){const r=[];let i=-1;for(;++i<e.length;)r[i]=Ht(e[i],n,t);return r.join("")}function Fi(e){return!!(e&&typeof e=="object")}const et=document.createElement("i");function _n(e){const n="&"+e+";";et.innerHTML=n;const t=et.textContent;return t.charCodeAt(t.length-1)===59&&e!=="semi"||t===n?!1:t}function ce(e,n,t,r){const i=e.length;let l=0,o;if(n<0?n=-n>i?0:i+n:n=n>i?i:n,t=t>0?t:0,r.length<1e4)o=Array.from(r),o.unshift(n,t),e.splice(...o);else for(t&&e.splice(n,t);l<r.length;)o=r.slice(l,l+1e4),o.unshift(n,0),e.splice(...o),l+=1e4,n+=1e4}function re(e,n){return e.length>0?(ce(e,e.length,0,n),e):n}const nt={}.hasOwnProperty;function Ri(e){const n={};let t=-1;for(;++t<e.length;)Bi(n,e[t]);return n}function Bi(e,n){let t;for(t in n){const i=(nt.call(e,t)?e[t]:void 0)||(e[t]={}),l=n[t];let o;if(l)for(o in l){nt.call(i,o)||(i[o]=[]);const a=l[o];ji(i[o],Array.isArray(a)?a:a?[a]:[])}}}function ji(e,n){let t=-1;const r=[];for(;++t<n.length;)(n[t].add==="after"?e:r).push(n[t]);ce(e,0,0,r)}function Vt(e,n){const t=Number.parseInt(e,n);return t<9||t===11||t>13&&t<32||t>126&&t<160||t>55295&&t<57344||t>64975&&t<65008||(t&65535)===65535||(t&65535)===65534||t>1114111?"�":String.fromCodePoint(t)}function Te(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const se=ye(/[A-Za-z]/),te=ye(/[\dA-Za-z]/),Hi=ye(/[#-'*+\--9=?A-Z^-~]/);function xn(e){return e!==null&&(e<32||e===127)}const kn=ye(/\d/),Vi=ye(/[\dA-Fa-f]/),qi=ye(/[!-/:-@[-`{-~]/);function z(e){return e!==null&&e<-2}function J(e){return e!==null&&(e<0||e===32)}function D(e){return e===-2||e===-1||e===32}const Ui=ye(new RegExp("\\p{P}|\\p{S}","u")),$i=ye(/\s/);function ye(e){return n;function n(t){return t!==null&&t>-1&&e.test(String.fromCharCode(t))}}function ze(e){const n=[];let t=-1,r=0,i=0;for(;++t<e.length;){const l=e.charCodeAt(t);let o="";if(l===37&&te(e.charCodeAt(t+1))&&te(e.charCodeAt(t+2)))i=2;else if(l<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(l))||(o=String.fromCharCode(l));else if(l>55295&&l<57344){const a=e.charCodeAt(t+1);l<56320&&a>56319&&a<57344?(o=String.fromCharCode(l,a),i=1):o="�"}else o=String.fromCharCode(l);o&&(n.push(e.slice(r,t),encodeURIComponent(o)),r=t+i+1,o=""),i&&(t+=i,i=0)}return n.join("")+e.slice(r)}function W(e,n,t,r){const i=r?r-1:Number.POSITIVE_INFINITY;let l=0;return o;function o(c){return D(c)?(e.enter(t),a(c)):n(c)}function a(c){return D(c)&&l++<i?(e.consume(c),a):(e.exit(t),n(c))}}const Wi={tokenize:Xi};function Xi(e){const n=e.attempt(this.parser.constructs.contentInitial,r,i);let t;return n;function r(a){if(a===null){e.consume(a);return}return e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),W(e,n,"linePrefix")}function i(a){return e.enter("paragraph"),l(a)}function l(a){const c=e.enter("chunkText",{contentType:"text",previous:t});return t&&(t.next=c),t=c,o(a)}function o(a){if(a===null){e.exit("chunkText"),e.exit("paragraph"),e.consume(a);return}return z(a)?(e.consume(a),e.exit("chunkText"),l):(e.consume(a),o)}}const Yi={tokenize:Qi},tt={tokenize:Gi};function Qi(e){const n=this,t=[];let r=0,i,l,o;return a;function a(E){if(r<t.length){const B=t[r];return n.containerState=B[1],e.attempt(B[0].continuation,c,u)(E)}return u(E)}function c(E){if(r++,n.containerState._closeFlow){n.containerState._closeFlow=void 0,i&&_();const B=n.events.length;let V=B,y;for(;V--;)if(n.events[V][0]==="exit"&&n.events[V][1].type==="chunkFlow"){y=n.events[V][1].end;break}x(r);let N=B;for(;N<n.events.length;)n.events[N][1].end={...y},N++;return ce(n.events,V+1,0,n.events.slice(B)),n.events.length=N,u(E)}return a(E)}function u(E){if(r===t.length){if(!i)return m(E);if(i.currentConstruct&&i.currentConstruct.concrete)return w(E);n.interrupt=!!(i.currentConstruct&&!i._gfmTableDynamicInterruptHack)}return n.containerState={},e.check(tt,s,h)(E)}function s(E){return i&&_(),x(r),m(E)}function h(E){return n.parser.lazy[n.now().line]=r!==t.length,o=n.now().offset,w(E)}function m(E){return n.containerState={},e.attempt(tt,p,w)(E)}function p(E){return r++,t.push([n.currentConstruct,n.containerState]),m(E)}function w(E){if(E===null){i&&_(),x(0),e.consume(E);return}return i=i||n.parser.flow(n.now()),e.enter("chunkFlow",{_tokenizer:i,contentType:"flow",previous:l}),C(E)}function C(E){if(E===null){I(e.exit("chunkFlow"),!0),x(0),e.consume(E);return}return z(E)?(e.consume(E),I(e.exit("chunkFlow")),r=0,n.interrupt=void 0,a):(e.consume(E),C)}function I(E,B){const V=n.sliceStream(E);if(B&&V.push(null),E.previous=l,l&&(l.next=E),l=E,i.defineSkip(E.start),i.write(V),n.parser.lazy[E.start.line]){let y=i.events.length;for(;y--;)if(i.events[y][1].start.offset<o&&(!i.events[y][1].end||i.events[y][1].end.offset>o))return;const N=n.events.length;let q=N,O,F;for(;q--;)if(n.events[q][0]==="exit"&&n.events[q][1].type==="chunkFlow"){if(O){F=n.events[q][1].end;break}O=!0}for(x(r),y=N;y<n.events.length;)n.events[y][1].end={...F},y++;ce(n.events,q+1,0,n.events.slice(N)),n.events.length=y}}function x(E){let B=t.length;for(;B-- >E;){const V=t[B];n.containerState=V[1],V[0].exit.call(n,e)}t.length=E}function _(){i.write([null]),l=void 0,i=void 0,n.containerState._closeFlow=void 0}}function Gi(e,n,t){return W(e,e.attempt(this.parser.constructs.document,n,t),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function rt(e){if(e===null||J(e)||$i(e))return 1;if(Ui(e))return 2}function vn(e,n,t){const r=[];let i=-1;for(;++i<e.length;){const l=e[i].resolveAll;l&&!r.includes(l)&&(n=l(n,t),r.push(l))}return n}const bn={name:"attention",resolveAll:Ki,tokenize:Ji};function Ki(e,n){let t=-1,r,i,l,o,a,c,u,s;for(;++t<e.length;)if(e[t][0]==="enter"&&e[t][1].type==="attentionSequence"&&e[t][1]._close){for(r=t;r--;)if(e[r][0]==="exit"&&e[r][1].type==="attentionSequence"&&e[r][1]._open&&n.sliceSerialize(e[r][1]).charCodeAt(0)===n.sliceSerialize(e[t][1]).charCodeAt(0)){if((e[r][1]._close||e[t][1]._open)&&(e[t][1].end.offset-e[t][1].start.offset)%3&&!((e[r][1].end.offset-e[r][1].start.offset+e[t][1].end.offset-e[t][1].start.offset)%3))continue;c=e[r][1].end.offset-e[r][1].start.offset>1&&e[t][1].end.offset-e[t][1].start.offset>1?2:1;const h={...e[r][1].end},m={...e[t][1].start};it(h,-c),it(m,c),o={type:c>1?"strongSequence":"emphasisSequence",start:h,end:{...e[r][1].end}},a={type:c>1?"strongSequence":"emphasisSequence",start:{...e[t][1].start},end:m},l={type:c>1?"strongText":"emphasisText",start:{...e[r][1].end},end:{...e[t][1].start}},i={type:c>1?"strong":"emphasis",start:{...o.start},end:{...a.end}},e[r][1].end={...o.start},e[t][1].start={...a.end},u=[],e[r][1].end.offset-e[r][1].start.offset&&(u=re(u,[["enter",e[r][1],n],["exit",e[r][1],n]])),u=re(u,[["enter",i,n],["enter",o,n],["exit",o,n],["enter",l,n]]),u=re(u,vn(n.parser.constructs.insideSpan.null,e.slice(r+1,t),n)),u=re(u,[["exit",l,n],["enter",a,n],["exit",a,n],["exit",i,n]]),e[t][1].end.offset-e[t][1].start.offset?(s=2,u=re(u,[["enter",e[t][1],n],["exit",e[t][1],n]])):s=0,ce(e,r-1,t-r+3,u),t=r+u.length-s-2;break}}for(t=-1;++t<e.length;)e[t][1].type==="attentionSequence"&&(e[t][1].type="data");return e}function Ji(e,n){const t=this.parser.constructs.attentionMarkers.null,r=this.previous,i=rt(r);let l;return o;function o(c){return l=c,e.enter("attentionSequence"),a(c)}function a(c){if(c===l)return e.consume(c),a;const u=e.exit("attentionSequence"),s=rt(c),h=!s||s===2&&i||t.includes(c),m=!i||i===2&&s||t.includes(r);return u._open=!!(l===42?h:h&&(i||!m)),u._close=!!(l===42?m:m&&(s||!h)),n(c)}}function it(e,n){e.column+=n,e.offset+=n,e._bufferIndex+=n}const Zi={name:"autolink",tokenize:el};function el(e,n,t){let r=0;return i;function i(p){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(p),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),l}function l(p){return se(p)?(e.consume(p),o):p===64?t(p):u(p)}function o(p){return p===43||p===45||p===46||te(p)?(r=1,a(p)):u(p)}function a(p){return p===58?(e.consume(p),r=0,c):(p===43||p===45||p===46||te(p))&&r++<32?(e.consume(p),a):(r=0,u(p))}function c(p){return p===62?(e.exit("autolinkProtocol"),e.enter("autolinkMarker"),e.consume(p),e.exit("autolinkMarker"),e.exit("autolink"),n):p===null||p===32||p===60||xn(p)?t(p):(e.consume(p),c)}function u(p){return p===64?(e.consume(p),s):Hi(p)?(e.consume(p),u):t(p)}function s(p){return te(p)?h(p):t(p)}function h(p){return p===46?(e.consume(p),r=0,s):p===62?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(p),e.exit("autolinkMarker"),e.exit("autolink"),n):m(p)}function m(p){if((p===45||te(p))&&r++<63){const w=p===45?m:h;return e.consume(p),w}return t(p)}}const Ge={partial:!0,tokenize:nl};function nl(e,n,t){return r;function r(l){return D(l)?W(e,i,"linePrefix")(l):i(l)}function i(l){return l===null||z(l)?n(l):t(l)}}const qt={continuation:{tokenize:rl},exit:il,name:"blockQuote",tokenize:tl};function tl(e,n,t){const r=this;return i;function i(o){if(o===62){const a=r.containerState;return a.open||(e.enter("blockQuote",{_container:!0}),a.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(o),e.exit("blockQuoteMarker"),l}return t(o)}function l(o){return D(o)?(e.enter("blockQuotePrefixWhitespace"),e.consume(o),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),n):(e.exit("blockQuotePrefix"),n(o))}}function rl(e,n,t){const r=this;return i;function i(o){return D(o)?W(e,l,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(o):l(o)}function l(o){return e.attempt(qt,n,t)(o)}}function il(e){e.exit("blockQuote")}const Ut={name:"characterEscape",tokenize:ll};function ll(e,n,t){return r;function r(l){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(l),e.exit("escapeMarker"),i}function i(l){return qi(l)?(e.enter("characterEscapeValue"),e.consume(l),e.exit("characterEscapeValue"),e.exit("characterEscape"),n):t(l)}}const $t={name:"characterReference",tokenize:ol};function ol(e,n,t){const r=this;let i=0,l,o;return a;function a(h){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(h),e.exit("characterReferenceMarker"),c}function c(h){return h===35?(e.enter("characterReferenceMarkerNumeric"),e.consume(h),e.exit("characterReferenceMarkerNumeric"),u):(e.enter("characterReferenceValue"),l=31,o=te,s(h))}function u(h){return h===88||h===120?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(h),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),l=6,o=Vi,s):(e.enter("characterReferenceValue"),l=7,o=kn,s(h))}function s(h){if(h===59&&i){const m=e.exit("characterReferenceValue");return o===te&&!_n(r.sliceSerialize(m))?t(h):(e.enter("characterReferenceMarker"),e.consume(h),e.exit("characterReferenceMarker"),e.exit("characterReference"),n)}return o(h)&&i++<l?(e.consume(h),s):t(h)}}const lt={partial:!0,tokenize:ul},ot={concrete:!0,name:"codeFenced",tokenize:al};function al(e,n,t){const r=this,i={partial:!0,tokenize:V};let l=0,o=0,a;return c;function c(y){return u(y)}function u(y){const N=r.events[r.events.length-1];return l=N&&N[1].type==="linePrefix"?N[2].sliceSerialize(N[1],!0).length:0,a=y,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),s(y)}function s(y){return y===a?(o++,e.consume(y),s):o<3?t(y):(e.exit("codeFencedFenceSequence"),D(y)?W(e,h,"whitespace")(y):h(y))}function h(y){return y===null||z(y)?(e.exit("codeFencedFence"),r.interrupt?n(y):e.check(lt,C,B)(y)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),m(y))}function m(y){return y===null||z(y)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),h(y)):D(y)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),W(e,p,"whitespace")(y)):y===96&&y===a?t(y):(e.consume(y),m)}function p(y){return y===null||z(y)?h(y):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),w(y))}function w(y){return y===null||z(y)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),h(y)):y===96&&y===a?t(y):(e.consume(y),w)}function C(y){return e.attempt(i,B,I)(y)}function I(y){return e.enter("lineEnding"),e.consume(y),e.exit("lineEnding"),x}function x(y){return l>0&&D(y)?W(e,_,"linePrefix",l+1)(y):_(y)}function _(y){return y===null||z(y)?e.check(lt,C,B)(y):(e.enter("codeFlowValue"),E(y))}function E(y){return y===null||z(y)?(e.exit("codeFlowValue"),_(y)):(e.consume(y),E)}function B(y){return e.exit("codeFenced"),n(y)}function V(y,N,q){let O=0;return F;function F(S){return y.enter("lineEnding"),y.consume(S),y.exit("lineEnding"),T}function T(S){return y.enter("codeFencedFence"),D(S)?W(y,A,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(S):A(S)}function A(S){return S===a?(y.enter("codeFencedFenceSequence"),U(S)):q(S)}function U(S){return S===a?(O++,y.consume(S),U):O>=o?(y.exit("codeFencedFenceSequence"),D(S)?W(y,P,"whitespace")(S):P(S)):q(S)}function P(S){return S===null||z(S)?(y.exit("codeFencedFence"),N(S)):q(S)}}}function ul(e,n,t){const r=this;return i;function i(o){return o===null?t(o):(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),l)}function l(o){return r.parser.lazy[r.now().line]?t(o):n(o)}}const rn={name:"codeIndented",tokenize:cl},sl={partial:!0,tokenize:pl};function cl(e,n,t){const r=this;return i;function i(u){return e.enter("codeIndented"),W(e,l,"linePrefix",5)(u)}function l(u){const s=r.events[r.events.length-1];return s&&s[1].type==="linePrefix"&&s[2].sliceSerialize(s[1],!0).length>=4?o(u):t(u)}function o(u){return u===null?c(u):z(u)?e.attempt(sl,o,c)(u):(e.enter("codeFlowValue"),a(u))}function a(u){return u===null||z(u)?(e.exit("codeFlowValue"),o(u)):(e.consume(u),a)}function c(u){return e.exit("codeIndented"),n(u)}}function pl(e,n,t){const r=this;return i;function i(o){return r.parser.lazy[r.now().line]?t(o):z(o)?(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),i):W(e,l,"linePrefix",5)(o)}function l(o){const a=r.events[r.events.length-1];return a&&a[1].type==="linePrefix"&&a[2].sliceSerialize(a[1],!0).length>=4?n(o):z(o)?i(o):t(o)}}const hl={name:"codeText",previous:dl,resolve:fl,tokenize:ml};function fl(e){let n=e.length-4,t=3,r,i;if((e[t][1].type==="lineEnding"||e[t][1].type==="space")&&(e[n][1].type==="lineEnding"||e[n][1].type==="space")){for(r=t;++r<n;)if(e[r][1].type==="codeTextData"){e[t][1].type="codeTextPadding",e[n][1].type="codeTextPadding",t+=2,n-=2;break}}for(r=t-1,n++;++r<=n;)i===void 0?r!==n&&e[r][1].type!=="lineEnding"&&(i=r):(r===n||e[r][1].type==="lineEnding")&&(e[i][1].type="codeTextData",r!==i+2&&(e[i][1].end=e[r-1][1].end,e.splice(i+2,r-i-2),n-=r-i-2,r=i+2),i=void 0);return e}function dl(e){return e!==96||this.events[this.events.length-1][1].type==="characterEscape"}function ml(e,n,t){let r=0,i,l;return o;function o(h){return e.enter("codeText"),e.enter("codeTextSequence"),a(h)}function a(h){return h===96?(e.consume(h),r++,a):(e.exit("codeTextSequence"),c(h))}function c(h){return h===null?t(h):h===32?(e.enter("space"),e.consume(h),e.exit("space"),c):h===96?(l=e.enter("codeTextSequence"),i=0,s(h)):z(h)?(e.enter("lineEnding"),e.consume(h),e.exit("lineEnding"),c):(e.enter("codeTextData"),u(h))}function u(h){return h===null||h===32||h===96||z(h)?(e.exit("codeTextData"),c(h)):(e.consume(h),u)}function s(h){return h===96?(e.consume(h),i++,s):i===r?(e.exit("codeTextSequence"),e.exit("codeText"),n(h)):(l.type="codeTextData",u(h))}}class gl{constructor(n){this.left=n?[...n]:[],this.right=[]}get(n){if(n<0||n>=this.left.length+this.right.length)throw new RangeError("Cannot access index `"+n+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return n<this.left.length?this.left[n]:this.right[this.right.length-n+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(n,t){const r=t??Number.POSITIVE_INFINITY;return r<this.left.length?this.left.slice(n,r):n>this.left.length?this.right.slice(this.right.length-r+this.left.length,this.right.length-n+this.left.length).reverse():this.left.slice(n).concat(this.right.slice(this.right.length-r+this.left.length).reverse())}splice(n,t,r){const i=t||0;this.setCursor(Math.trunc(n));const l=this.right.splice(this.right.length-i,Number.POSITIVE_INFINITY);return r&&De(this.left,r),l.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(n){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(n)}pushMany(n){this.setCursor(Number.POSITIVE_INFINITY),De(this.left,n)}unshift(n){this.setCursor(0),this.right.push(n)}unshiftMany(n){this.setCursor(0),De(this.right,n.reverse())}setCursor(n){if(!(n===this.left.length||n>this.left.length&&this.right.length===0||n<0&&this.left.length===0))if(n<this.left.length){const t=this.left.splice(n,Number.POSITIVE_INFINITY);De(this.right,t.reverse())}else{const t=this.right.splice(this.left.length+this.right.length-n,Number.POSITIVE_INFINITY);De(this.left,t.reverse())}}}function De(e,n){let t=0;if(n.length<1e4)e.push(...n);else for(;t<n.length;)e.push(...n.slice(t,t+1e4)),t+=1e4}function Wt(e){const n={};let t=-1,r,i,l,o,a,c,u;const s=new gl(e);for(;++t<s.length;){for(;t in n;)t=n[t];if(r=s.get(t),t&&r[1].type==="chunkFlow"&&s.get(t-1)[1].type==="listItemPrefix"&&(c=r[1]._tokenizer.events,l=0,l<c.length&&c[l][1].type==="lineEndingBlank"&&(l+=2),l<c.length&&c[l][1].type==="content"))for(;++l<c.length&&c[l][1].type!=="content";)c[l][1].type==="chunkText"&&(c[l][1]._isInFirstContentOfListItem=!0,l++);if(r[0]==="enter")r[1].contentType&&(Object.assign(n,yl(s,t)),t=n[t],u=!0);else if(r[1]._container){for(l=t,i=void 0;l--;)if(o=s.get(l),o[1].type==="lineEnding"||o[1].type==="lineEndingBlank")o[0]==="enter"&&(i&&(s.get(i)[1].type="lineEndingBlank"),o[1].type="lineEnding",i=l);else if(!(o[1].type==="linePrefix"||o[1].type==="listItemIndent"))break;i&&(r[1].end={...s.get(i)[1].start},a=s.slice(i,t),a.unshift(r),s.splice(i,t-i+1,a))}}return ce(e,0,Number.POSITIVE_INFINITY,s.slice(0)),!u}function yl(e,n){const t=e.get(n)[1],r=e.get(n)[2];let i=n-1;const l=[];let o=t._tokenizer;o||(o=r.parser[t.contentType](t.start),t._contentTypeTextTrailing&&(o._contentTypeTextTrailing=!0));const a=o.events,c=[],u={};let s,h,m=-1,p=t,w=0,C=0;const I=[C];for(;p;){for(;e.get(++i)[1]!==p;);l.push(i),p._tokenizer||(s=r.sliceStream(p),p.next||s.push(null),h&&o.defineSkip(p.start),p._isInFirstContentOfListItem&&(o._gfmTasklistFirstContentOfListItem=!0),o.write(s),p._isInFirstContentOfListItem&&(o._gfmTasklistFirstContentOfListItem=void 0)),h=p,p=p.next}for(p=t;++m<a.length;)a[m][0]==="exit"&&a[m-1][0]==="enter"&&a[m][1].type===a[m-1][1].type&&a[m][1].start.line!==a[m][1].end.line&&(C=m+1,I.push(C),p._tokenizer=void 0,p.previous=void 0,p=p.next);for(o.events=[],p?(p._tokenizer=void 0,p.previous=void 0):I.pop(),m=I.length;m--;){const x=a.slice(I[m],I[m+1]),_=l.pop();c.push([_,_+x.length-1]),e.splice(_,2,x)}for(c.reverse(),m=-1;++m<c.length;)u[w+c[m][0]]=w+c[m][1],w+=c[m][1]-c[m][0]-1;return u}const xl={resolve:bl,tokenize:wl},kl={partial:!0,tokenize:Sl};function bl(e){return Wt(e),e}function wl(e,n){let t;return r;function r(a){return e.enter("content"),t=e.enter("chunkContent",{contentType:"content"}),i(a)}function i(a){return a===null?l(a):z(a)?e.check(kl,o,l)(a):(e.consume(a),i)}function l(a){return e.exit("chunkContent"),e.exit("content"),n(a)}function o(a){return e.consume(a),e.exit("chunkContent"),t.next=e.enter("chunkContent",{contentType:"content",previous:t}),t=t.next,i}}function Sl(e,n,t){const r=this;return i;function i(o){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),W(e,l,"linePrefix")}function l(o){if(o===null||z(o))return t(o);const a=r.events[r.events.length-1];return!r.parser.constructs.disable.null.includes("codeIndented")&&a&&a[1].type==="linePrefix"&&a[2].sliceSerialize(a[1],!0).length>=4?n(o):e.interrupt(r.parser.constructs.flow,t,n)(o)}}function Xt(e,n,t,r,i,l,o,a,c){const u=c||Number.POSITIVE_INFINITY;let s=0;return h;function h(x){return x===60?(e.enter(r),e.enter(i),e.enter(l),e.consume(x),e.exit(l),m):x===null||x===32||x===41||xn(x)?t(x):(e.enter(r),e.enter(o),e.enter(a),e.enter("chunkString",{contentType:"string"}),C(x))}function m(x){return x===62?(e.enter(l),e.consume(x),e.exit(l),e.exit(i),e.exit(r),n):(e.enter(a),e.enter("chunkString",{contentType:"string"}),p(x))}function p(x){return x===62?(e.exit("chunkString"),e.exit(a),m(x)):x===null||x===60||z(x)?t(x):(e.consume(x),x===92?w:p)}function w(x){return x===60||x===62||x===92?(e.consume(x),p):p(x)}function C(x){return!s&&(x===null||x===41||J(x))?(e.exit("chunkString"),e.exit(a),e.exit(o),e.exit(r),n(x)):s<u&&x===40?(e.consume(x),s++,C):x===41?(e.consume(x),s--,C):x===null||x===32||x===40||xn(x)?t(x):(e.consume(x),x===92?I:C)}function I(x){return x===40||x===41||x===92?(e.consume(x),C):C(x)}}function Yt(e,n,t,r,i,l){const o=this;let a=0,c;return u;function u(p){return e.enter(r),e.enter(i),e.consume(p),e.exit(i),e.enter(l),s}function s(p){return a>999||p===null||p===91||p===93&&!c||p===94&&!a&&"_hiddenFootnoteSupport"in o.parser.constructs?t(p):p===93?(e.exit(l),e.enter(i),e.consume(p),e.exit(i),e.exit(r),n):z(p)?(e.enter("lineEnding"),e.consume(p),e.exit("lineEnding"),s):(e.enter("chunkString",{contentType:"string"}),h(p))}function h(p){return p===null||p===91||p===93||z(p)||a++>999?(e.exit("chunkString"),s(p)):(e.consume(p),c||(c=!D(p)),p===92?m:h)}function m(p){return p===91||p===92||p===93?(e.consume(p),a++,h):h(p)}}function Qt(e,n,t,r,i,l){let o;return a;function a(m){return m===34||m===39||m===40?(e.enter(r),e.enter(i),e.consume(m),e.exit(i),o=m===40?41:m,c):t(m)}function c(m){return m===o?(e.enter(i),e.consume(m),e.exit(i),e.exit(r),n):(e.enter(l),u(m))}function u(m){return m===o?(e.exit(l),c(o)):m===null?t(m):z(m)?(e.enter("lineEnding"),e.consume(m),e.exit("lineEnding"),W(e,u,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),s(m))}function s(m){return m===o||m===null||z(m)?(e.exit("chunkString"),u(m)):(e.consume(m),m===92?h:s)}function h(m){return m===o||m===92?(e.consume(m),s):s(m)}}function Re(e,n){let t;return r;function r(i){return z(i)?(e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),t=!0,r):D(i)?W(e,r,t?"linePrefix":"lineSuffix")(i):n(i)}}const Cl={name:"definition",tokenize:Il},El={partial:!0,tokenize:Al};function Il(e,n,t){const r=this;let i;return l;function l(p){return e.enter("definition"),o(p)}function o(p){return Yt.call(r,e,a,t,"definitionLabel","definitionLabelMarker","definitionLabelString")(p)}function a(p){return i=Te(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)),p===58?(e.enter("definitionMarker"),e.consume(p),e.exit("definitionMarker"),c):t(p)}function c(p){return J(p)?Re(e,u)(p):u(p)}function u(p){return Xt(e,s,t,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(p)}function s(p){return e.attempt(El,h,h)(p)}function h(p){return D(p)?W(e,m,"whitespace")(p):m(p)}function m(p){return p===null||z(p)?(e.exit("definition"),r.parser.defined.push(i),n(p)):t(p)}}function Al(e,n,t){return r;function r(a){return J(a)?Re(e,i)(a):t(a)}function i(a){return Qt(e,l,t,"definitionTitle","definitionTitleMarker","definitionTitleString")(a)}function l(a){return D(a)?W(e,o,"whitespace")(a):o(a)}function o(a){return a===null||z(a)?n(a):t(a)}}const Tl={name:"hardBreakEscape",tokenize:Pl};function Pl(e,n,t){return r;function r(l){return e.enter("hardBreakEscape"),e.consume(l),i}function i(l){return z(l)?(e.exit("hardBreakEscape"),n(l)):t(l)}}const zl={name:"headingAtx",resolve:_l,tokenize:vl};function _l(e,n){let t=e.length-2,r=3,i,l;return e[r][1].type==="whitespace"&&(r+=2),t-2>r&&e[t][1].type==="whitespace"&&(t-=2),e[t][1].type==="atxHeadingSequence"&&(r===t-1||t-4>r&&e[t-2][1].type==="whitespace")&&(t-=r+1===t?2:4),t>r&&(i={type:"atxHeadingText",start:e[r][1].start,end:e[t][1].end},l={type:"chunkText",start:e[r][1].start,end:e[t][1].end,contentType:"text"},ce(e,r,t-r+1,[["enter",i,n],["enter",l,n],["exit",l,n],["exit",i,n]])),e}function vl(e,n,t){let r=0;return i;function i(s){return e.enter("atxHeading"),l(s)}function l(s){return e.enter("atxHeadingSequence"),o(s)}function o(s){return s===35&&r++<6?(e.consume(s),o):s===null||J(s)?(e.exit("atxHeadingSequence"),a(s)):t(s)}function a(s){return s===35?(e.enter("atxHeadingSequence"),c(s)):s===null||z(s)?(e.exit("atxHeading"),n(s)):D(s)?W(e,a,"whitespace")(s):(e.enter("atxHeadingText"),u(s))}function c(s){return s===35?(e.consume(s),c):(e.exit("atxHeadingSequence"),a(s))}function u(s){return s===null||s===35||J(s)?(e.exit("atxHeadingText"),a(s)):(e.consume(s),u)}}const Ml=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],at=["pre","script","style","textarea"],Ll={concrete:!0,name:"htmlFlow",resolveTo:Ol,tokenize:Fl},Nl={partial:!0,tokenize:Bl},Dl={partial:!0,tokenize:Rl};function Ol(e){let n=e.length;for(;n--&&!(e[n][0]==="enter"&&e[n][1].type==="htmlFlow"););return n>1&&e[n-2][1].type==="linePrefix"&&(e[n][1].start=e[n-2][1].start,e[n+1][1].start=e[n-2][1].start,e.splice(n-2,2)),e}function Fl(e,n,t){const r=this;let i,l,o,a,c;return u;function u(d){return s(d)}function s(d){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(d),h}function h(d){return d===33?(e.consume(d),m):d===47?(e.consume(d),l=!0,C):d===63?(e.consume(d),i=3,r.interrupt?n:f):se(d)?(e.consume(d),o=String.fromCharCode(d),I):t(d)}function m(d){return d===45?(e.consume(d),i=2,p):d===91?(e.consume(d),i=5,a=0,w):se(d)?(e.consume(d),i=4,r.interrupt?n:f):t(d)}function p(d){return d===45?(e.consume(d),r.interrupt?n:f):t(d)}function w(d){const oe="CDATA[";return d===oe.charCodeAt(a++)?(e.consume(d),a===oe.length?r.interrupt?n:A:w):t(d)}function C(d){return se(d)?(e.consume(d),o=String.fromCharCode(d),I):t(d)}function I(d){if(d===null||d===47||d===62||J(d)){const oe=d===47,xe=o.toLowerCase();return!oe&&!l&&at.includes(xe)?(i=1,r.interrupt?n(d):A(d)):Ml.includes(o.toLowerCase())?(i=6,oe?(e.consume(d),x):r.interrupt?n(d):A(d)):(i=7,r.interrupt&&!r.parser.lazy[r.now().line]?t(d):l?_(d):E(d))}return d===45||te(d)?(e.consume(d),o+=String.fromCharCode(d),I):t(d)}function x(d){return d===62?(e.consume(d),r.interrupt?n:A):t(d)}function _(d){return D(d)?(e.consume(d),_):F(d)}function E(d){return d===47?(e.consume(d),F):d===58||d===95||se(d)?(e.consume(d),B):D(d)?(e.consume(d),E):F(d)}function B(d){return d===45||d===46||d===58||d===95||te(d)?(e.consume(d),B):V(d)}function V(d){return d===61?(e.consume(d),y):D(d)?(e.consume(d),V):E(d)}function y(d){return d===null||d===60||d===61||d===62||d===96?t(d):d===34||d===39?(e.consume(d),c=d,N):D(d)?(e.consume(d),y):q(d)}function N(d){return d===c?(e.consume(d),c=null,O):d===null||z(d)?t(d):(e.consume(d),N)}function q(d){return d===null||d===34||d===39||d===47||d===60||d===61||d===62||d===96||J(d)?V(d):(e.consume(d),q)}function O(d){return d===47||d===62||D(d)?E(d):t(d)}function F(d){return d===62?(e.consume(d),T):t(d)}function T(d){return d===null||z(d)?A(d):D(d)?(e.consume(d),T):t(d)}function A(d){return d===45&&i===2?(e.consume(d),R):d===60&&i===1?(e.consume(d),Y):d===62&&i===4?(e.consume(d),le):d===63&&i===3?(e.consume(d),f):d===93&&i===5?(e.consume(d),pe):z(d)&&(i===6||i===7)?(e.exit("htmlFlowData"),e.check(Nl,he,U)(d)):d===null||z(d)?(e.exit("htmlFlowData"),U(d)):(e.consume(d),A)}function U(d){return e.check(Dl,P,he)(d)}function P(d){return e.enter("lineEnding"),e.consume(d),e.exit("lineEnding"),S}function S(d){return d===null||z(d)?U(d):(e.enter("htmlFlowData"),A(d))}function R(d){return d===45?(e.consume(d),f):A(d)}function Y(d){return d===47?(e.consume(d),o="",ie):A(d)}function ie(d){if(d===62){const oe=o.toLowerCase();return at.includes(oe)?(e.consume(d),le):A(d)}return se(d)&&o.length<8?(e.consume(d),o+=String.fromCharCode(d),ie):A(d)}function pe(d){return d===93?(e.consume(d),f):A(d)}function f(d){return d===62?(e.consume(d),le):d===45&&i===2?(e.consume(d),f):A(d)}function le(d){return d===null||z(d)?(e.exit("htmlFlowData"),he(d)):(e.consume(d),le)}function he(d){return e.exit("htmlFlow"),n(d)}}function Rl(e,n,t){const r=this;return i;function i(o){return z(o)?(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),l):t(o)}function l(o){return r.parser.lazy[r.now().line]?t(o):n(o)}}function Bl(e,n,t){return r;function r(i){return e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),e.attempt(Ge,n,t)}}const jl={name:"htmlText",tokenize:Hl};function Hl(e,n,t){const r=this;let i,l,o;return a;function a(f){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(f),c}function c(f){return f===33?(e.consume(f),u):f===47?(e.consume(f),V):f===63?(e.consume(f),E):se(f)?(e.consume(f),q):t(f)}function u(f){return f===45?(e.consume(f),s):f===91?(e.consume(f),l=0,w):se(f)?(e.consume(f),_):t(f)}function s(f){return f===45?(e.consume(f),p):t(f)}function h(f){return f===null?t(f):f===45?(e.consume(f),m):z(f)?(o=h,Y(f)):(e.consume(f),h)}function m(f){return f===45?(e.consume(f),p):h(f)}function p(f){return f===62?R(f):f===45?m(f):h(f)}function w(f){const le="CDATA[";return f===le.charCodeAt(l++)?(e.consume(f),l===le.length?C:w):t(f)}function C(f){return f===null?t(f):f===93?(e.consume(f),I):z(f)?(o=C,Y(f)):(e.consume(f),C)}function I(f){return f===93?(e.consume(f),x):C(f)}function x(f){return f===62?R(f):f===93?(e.consume(f),x):C(f)}function _(f){return f===null||f===62?R(f):z(f)?(o=_,Y(f)):(e.consume(f),_)}function E(f){return f===null?t(f):f===63?(e.consume(f),B):z(f)?(o=E,Y(f)):(e.consume(f),E)}function B(f){return f===62?R(f):E(f)}function V(f){return se(f)?(e.consume(f),y):t(f)}function y(f){return f===45||te(f)?(e.consume(f),y):N(f)}function N(f){return z(f)?(o=N,Y(f)):D(f)?(e.consume(f),N):R(f)}function q(f){return f===45||te(f)?(e.consume(f),q):f===47||f===62||J(f)?O(f):t(f)}function O(f){return f===47?(e.consume(f),R):f===58||f===95||se(f)?(e.consume(f),F):z(f)?(o=O,Y(f)):D(f)?(e.consume(f),O):R(f)}function F(f){return f===45||f===46||f===58||f===95||te(f)?(e.consume(f),F):T(f)}function T(f){return f===61?(e.consume(f),A):z(f)?(o=T,Y(f)):D(f)?(e.consume(f),T):O(f)}function A(f){return f===null||f===60||f===61||f===62||f===96?t(f):f===34||f===39?(e.consume(f),i=f,U):z(f)?(o=A,Y(f)):D(f)?(e.consume(f),A):(e.consume(f),P)}function U(f){return f===i?(e.consume(f),i=void 0,S):f===null?t(f):z(f)?(o=U,Y(f)):(e.consume(f),U)}function P(f){return f===null||f===34||f===39||f===60||f===61||f===96?t(f):f===47||f===62||J(f)?O(f):(e.consume(f),P)}function S(f){return f===47||f===62||J(f)?O(f):t(f)}function R(f){return f===62?(e.consume(f),e.exit("htmlTextData"),e.exit("htmlText"),n):t(f)}function Y(f){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(f),e.exit("lineEnding"),ie}function ie(f){return D(f)?W(e,pe,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(f):pe(f)}function pe(f){return e.enter("htmlTextData"),o(f)}}const Mn={name:"labelEnd",resolveAll:$l,resolveTo:Wl,tokenize:Xl},Vl={tokenize:Yl},ql={tokenize:Ql},Ul={tokenize:Gl};function $l(e){let n=-1;const t=[];for(;++n<e.length;){const r=e[n][1];if(t.push(e[n]),r.type==="labelImage"||r.type==="labelLink"||r.type==="labelEnd"){const i=r.type==="labelImage"?4:2;r.type="data",n+=i}}return e.length!==t.length&&ce(e,0,e.length,t),e}function Wl(e,n){let t=e.length,r=0,i,l,o,a;for(;t--;)if(i=e[t][1],l){if(i.type==="link"||i.type==="labelLink"&&i._inactive)break;e[t][0]==="enter"&&i.type==="labelLink"&&(i._inactive=!0)}else if(o){if(e[t][0]==="enter"&&(i.type==="labelImage"||i.type==="labelLink")&&!i._balanced&&(l=t,i.type!=="labelLink")){r=2;break}}else i.type==="labelEnd"&&(o=t);const c={type:e[l][1].type==="labelLink"?"link":"image",start:{...e[l][1].start},end:{...e[e.length-1][1].end}},u={type:"label",start:{...e[l][1].start},end:{...e[o][1].end}},s={type:"labelText",start:{...e[l+r+2][1].end},end:{...e[o-2][1].start}};return a=[["enter",c,n],["enter",u,n]],a=re(a,e.slice(l+1,l+r+3)),a=re(a,[["enter",s,n]]),a=re(a,vn(n.parser.constructs.insideSpan.null,e.slice(l+r+4,o-3),n)),a=re(a,[["exit",s,n],e[o-2],e[o-1],["exit",u,n]]),a=re(a,e.slice(o+1)),a=re(a,[["exit",c,n]]),ce(e,l,e.length,a),e}function Xl(e,n,t){const r=this;let i=r.events.length,l,o;for(;i--;)if((r.events[i][1].type==="labelImage"||r.events[i][1].type==="labelLink")&&!r.events[i][1]._balanced){l=r.events[i][1];break}return a;function a(m){return l?l._inactive?h(m):(o=r.parser.defined.includes(Te(r.sliceSerialize({start:l.end,end:r.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(m),e.exit("labelMarker"),e.exit("labelEnd"),c):t(m)}function c(m){return m===40?e.attempt(Vl,s,o?s:h)(m):m===91?e.attempt(ql,s,o?u:h)(m):o?s(m):h(m)}function u(m){return e.attempt(Ul,s,h)(m)}function s(m){return n(m)}function h(m){return l._balanced=!0,t(m)}}function Yl(e,n,t){return r;function r(h){return e.enter("resource"),e.enter("resourceMarker"),e.consume(h),e.exit("resourceMarker"),i}function i(h){return J(h)?Re(e,l)(h):l(h)}function l(h){return h===41?s(h):Xt(e,o,a,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(h)}function o(h){return J(h)?Re(e,c)(h):s(h)}function a(h){return t(h)}function c(h){return h===34||h===39||h===40?Qt(e,u,t,"resourceTitle","resourceTitleMarker","resourceTitleString")(h):s(h)}function u(h){return J(h)?Re(e,s)(h):s(h)}function s(h){return h===41?(e.enter("resourceMarker"),e.consume(h),e.exit("resourceMarker"),e.exit("resource"),n):t(h)}}function Ql(e,n,t){const r=this;return i;function i(a){return Yt.call(r,e,l,o,"reference","referenceMarker","referenceString")(a)}function l(a){return r.parser.defined.includes(Te(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)))?n(a):t(a)}function o(a){return t(a)}}function Gl(e,n,t){return r;function r(l){return e.enter("reference"),e.enter("referenceMarker"),e.consume(l),e.exit("referenceMarker"),i}function i(l){return l===93?(e.enter("referenceMarker"),e.consume(l),e.exit("referenceMarker"),e.exit("reference"),n):t(l)}}const Kl={name:"labelStartImage",resolveAll:Mn.resolveAll,tokenize:Jl};function Jl(e,n,t){const r=this;return i;function i(a){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(a),e.exit("labelImageMarker"),l}function l(a){return a===91?(e.enter("labelMarker"),e.consume(a),e.exit("labelMarker"),e.exit("labelImage"),o):t(a)}function o(a){return a===94&&"_hiddenFootnoteSupport"in r.parser.constructs?t(a):n(a)}}const Zl={name:"labelStartLink",resolveAll:Mn.resolveAll,tokenize:eo};function eo(e,n,t){const r=this;return i;function i(o){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(o),e.exit("labelMarker"),e.exit("labelLink"),l}function l(o){return o===94&&"_hiddenFootnoteSupport"in r.parser.constructs?t(o):n(o)}}const ln={name:"lineEnding",tokenize:no};function no(e,n){return t;function t(r){return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),W(e,n,"linePrefix")}}const Xe={name:"thematicBreak",tokenize:to};function to(e,n,t){let r=0,i;return l;function l(u){return e.enter("thematicBreak"),o(u)}function o(u){return i=u,a(u)}function a(u){return u===i?(e.enter("thematicBreakSequence"),c(u)):r>=3&&(u===null||z(u))?(e.exit("thematicBreak"),n(u)):t(u)}function c(u){return u===i?(e.consume(u),r++,c):(e.exit("thematicBreakSequence"),D(u)?W(e,a,"whitespace")(u):a(u))}}const K={continuation:{tokenize:oo},exit:uo,name:"list",tokenize:lo},ro={partial:!0,tokenize:so},io={partial:!0,tokenize:ao};function lo(e,n,t){const r=this,i=r.events[r.events.length-1];let l=i&&i[1].type==="linePrefix"?i[2].sliceSerialize(i[1],!0).length:0,o=0;return a;function a(p){const w=r.containerState.type||(p===42||p===43||p===45?"listUnordered":"listOrdered");if(w==="listUnordered"?!r.containerState.marker||p===r.containerState.marker:kn(p)){if(r.containerState.type||(r.containerState.type=w,e.enter(w,{_container:!0})),w==="listUnordered")return e.enter("listItemPrefix"),p===42||p===45?e.check(Xe,t,u)(p):u(p);if(!r.interrupt||p===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),c(p)}return t(p)}function c(p){return kn(p)&&++o<10?(e.consume(p),c):(!r.interrupt||o<2)&&(r.containerState.marker?p===r.containerState.marker:p===41||p===46)?(e.exit("listItemValue"),u(p)):t(p)}function u(p){return e.enter("listItemMarker"),e.consume(p),e.exit("listItemMarker"),r.containerState.marker=r.containerState.marker||p,e.check(Ge,r.interrupt?t:s,e.attempt(ro,m,h))}function s(p){return r.containerState.initialBlankLine=!0,l++,m(p)}function h(p){return D(p)?(e.enter("listItemPrefixWhitespace"),e.consume(p),e.exit("listItemPrefixWhitespace"),m):t(p)}function m(p){return r.containerState.size=l+r.sliceSerialize(e.exit("listItemPrefix"),!0).length,n(p)}}function oo(e,n,t){const r=this;return r.containerState._closeFlow=void 0,e.check(Ge,i,l);function i(a){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,W(e,n,"listItemIndent",r.containerState.size+1)(a)}function l(a){return r.containerState.furtherBlankLines||!D(a)?(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,o(a)):(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,e.attempt(io,n,o)(a))}function o(a){return r.containerState._closeFlow=!0,r.interrupt=void 0,W(e,e.attempt(K,n,t),"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(a)}}function ao(e,n,t){const r=this;return W(e,i,"listItemIndent",r.containerState.size+1);function i(l){const o=r.events[r.events.length-1];return o&&o[1].type==="listItemIndent"&&o[2].sliceSerialize(o[1],!0).length===r.containerState.size?n(l):t(l)}}function uo(e){e.exit(this.containerState.type)}function so(e,n,t){const r=this;return W(e,i,"listItemPrefixWhitespace",r.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function i(l){const o=r.events[r.events.length-1];return!D(l)&&o&&o[1].type==="listItemPrefixWhitespace"?n(l):t(l)}}const ut={name:"setextUnderline",resolveTo:co,tokenize:po};function co(e,n){let t=e.length,r,i,l;for(;t--;)if(e[t][0]==="enter"){if(e[t][1].type==="content"){r=t;break}e[t][1].type==="paragraph"&&(i=t)}else e[t][1].type==="content"&&e.splice(t,1),!l&&e[t][1].type==="definition"&&(l=t);const o={type:"setextHeading",start:{...e[r][1].start},end:{...e[e.length-1][1].end}};return e[i][1].type="setextHeadingText",l?(e.splice(i,0,["enter",o,n]),e.splice(l+1,0,["exit",e[r][1],n]),e[r][1].end={...e[l][1].end}):e[r][1]=o,e.push(["exit",o,n]),e}function po(e,n,t){const r=this;let i;return l;function l(u){let s=r.events.length,h;for(;s--;)if(r.events[s][1].type!=="lineEnding"&&r.events[s][1].type!=="linePrefix"&&r.events[s][1].type!=="content"){h=r.events[s][1].type==="paragraph";break}return!r.parser.lazy[r.now().line]&&(r.interrupt||h)?(e.enter("setextHeadingLine"),i=u,o(u)):t(u)}function o(u){return e.enter("setextHeadingLineSequence"),a(u)}function a(u){return u===i?(e.consume(u),a):(e.exit("setextHeadingLineSequence"),D(u)?W(e,c,"lineSuffix")(u):c(u))}function c(u){return u===null||z(u)?(e.exit("setextHeadingLine"),n(u)):t(u)}}const ho={tokenize:fo};function fo(e){const n=this,t=e.attempt(Ge,r,e.attempt(this.parser.constructs.flowInitial,i,W(e,e.attempt(this.parser.constructs.flow,i,e.attempt(xl,i)),"linePrefix")));return t;function r(l){if(l===null){e.consume(l);return}return e.enter("lineEndingBlank"),e.consume(l),e.exit("lineEndingBlank"),n.currentConstruct=void 0,t}function i(l){if(l===null){e.consume(l);return}return e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),n.currentConstruct=void 0,t}}const mo={resolveAll:Kt()},go=Gt("string"),yo=Gt("text");function Gt(e){return{resolveAll:Kt(e==="text"?xo:void 0),tokenize:n};function n(t){const r=this,i=this.parser.constructs[e],l=t.attempt(i,o,a);return o;function o(s){return u(s)?l(s):a(s)}function a(s){if(s===null){t.consume(s);return}return t.enter("data"),t.consume(s),c}function c(s){return u(s)?(t.exit("data"),l(s)):(t.consume(s),c)}function u(s){if(s===null)return!0;const h=i[s];let m=-1;if(h)for(;++m<h.length;){const p=h[m];if(!p.previous||p.previous.call(r,r.previous))return!0}return!1}}}function Kt(e){return n;function n(t,r){let i=-1,l;for(;++i<=t.length;)l===void 0?t[i]&&t[i][1].type==="data"&&(l=i,i++):(!t[i]||t[i][1].type!=="data")&&(i!==l+2&&(t[l][1].end=t[i-1][1].end,t.splice(l+2,i-l-2),i=l+2),l=void 0);return e?e(t,r):t}}function xo(e,n){let t=0;for(;++t<=e.length;)if((t===e.length||e[t][1].type==="lineEnding")&&e[t-1][1].type==="data"){const r=e[t-1][1],i=n.sliceStream(r);let l=i.length,o=-1,a=0,c;for(;l--;){const u=i[l];if(typeof u=="string"){for(o=u.length;u.charCodeAt(o-1)===32;)a++,o--;if(o)break;o=-1}else if(u===-2)c=!0,a++;else if(u!==-1){l++;break}}if(n._contentTypeTextTrailing&&t===e.length&&(a=0),a){const u={type:t===e.length||c||a<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:l?o:r.start._bufferIndex+o,_index:r.start._index+l,line:r.end.line,column:r.end.column-a,offset:r.end.offset-a},end:{...r.end}};r.end={...u.start},r.start.offset===r.end.offset?Object.assign(r,u):(e.splice(t,0,["enter",u,n],["exit",u,n]),t+=2)}t++}return e}const ko={42:K,43:K,45:K,48:K,49:K,50:K,51:K,52:K,53:K,54:K,55:K,56:K,57:K,62:qt},bo={91:Cl},wo={[-2]:rn,[-1]:rn,32:rn},So={35:zl,42:Xe,45:[ut,Xe],60:Ll,61:ut,95:Xe,96:ot,126:ot},Co={38:$t,92:Ut},Eo={[-5]:ln,[-4]:ln,[-3]:ln,33:Kl,38:$t,42:bn,60:[Zi,jl],91:Zl,92:[Tl,Ut],93:Mn,95:bn,96:hl},Io={null:[bn,mo]},Ao={null:[42,95]},To={null:[]},Po=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:Ao,contentInitial:bo,disable:To,document:ko,flow:So,flowInitial:wo,insideSpan:Io,string:Co,text:Eo},Symbol.toStringTag,{value:"Module"}));function zo(e,n,t){let r={_bufferIndex:-1,_index:0,line:t&&t.line||1,column:t&&t.column||1,offset:t&&t.offset||0};const i={},l=[];let o=[],a=[];const c={attempt:N(V),check:N(y),consume:_,enter:E,exit:B,interrupt:N(y,{interrupt:!0})},u={code:null,containerState:{},defineSkip:C,events:[],now:w,parser:e,previous:null,sliceSerialize:m,sliceStream:p,write:h};let s=n.tokenize.call(u,c);return n.resolveAll&&l.push(n),u;function h(T){return o=re(o,T),I(),o[o.length-1]!==null?[]:(q(n,0),u.events=vn(l,u.events,u),u.events)}function m(T,A){return vo(p(T),A)}function p(T){return _o(o,T)}function w(){const{_bufferIndex:T,_index:A,line:U,column:P,offset:S}=r;return{_bufferIndex:T,_index:A,line:U,column:P,offset:S}}function C(T){i[T.line]=T.column,F()}function I(){let T;for(;r._index<o.length;){const A=o[r._index];if(typeof A=="string")for(T=r._index,r._bufferIndex<0&&(r._bufferIndex=0);r._index===T&&r._bufferIndex<A.length;)x(A.charCodeAt(r._bufferIndex));else x(A)}}function x(T){s=s(T)}function _(T){z(T)?(r.line++,r.column=1,r.offset+=T===-3?2:1,F()):T!==-1&&(r.column++,r.offset++),r._bufferIndex<0?r._index++:(r._bufferIndex++,r._bufferIndex===o[r._index].length&&(r._bufferIndex=-1,r._index++)),u.previous=T}function E(T,A){const U=A||{};return U.type=T,U.start=w(),u.events.push(["enter",U,u]),a.push(U),U}function B(T){const A=a.pop();return A.end=w(),u.events.push(["exit",A,u]),A}function V(T,A){q(T,A.from)}function y(T,A){A.restore()}function N(T,A){return U;function U(P,S,R){let Y,ie,pe,f;return Array.isArray(P)?he(P):"tokenize"in P?he([P]):le(P);function le(Q){return _e;function _e(me){const we=me!==null&&Q[me],Se=me!==null&&Q.null,qe=[...Array.isArray(we)?we:we?[we]:[],...Array.isArray(Se)?Se:Se?[Se]:[]];return he(qe)(me)}}function he(Q){return Y=Q,ie=0,Q.length===0?R:d(Q[ie])}function d(Q){return _e;function _e(me){return f=O(),pe=Q,Q.partial||(u.currentConstruct=Q),Q.name&&u.parser.constructs.disable.null.includes(Q.name)?xe():Q.tokenize.call(A?Object.assign(Object.create(u),A):u,c,oe,xe)(me)}}function oe(Q){return T(pe,f),S}function xe(Q){return f.restore(),++ie<Y.length?d(Y[ie]):R}}}function q(T,A){T.resolveAll&&!l.includes(T)&&l.push(T),T.resolve&&ce(u.events,A,u.events.length-A,T.resolve(u.events.slice(A),u)),T.resolveTo&&(u.events=T.resolveTo(u.events,u))}function O(){const T=w(),A=u.previous,U=u.currentConstruct,P=u.events.length,S=Array.from(a);return{from:P,restore:R};function R(){r=T,u.previous=A,u.currentConstruct=U,u.events.length=P,a=S,F()}}function F(){r.line in i&&r.column<2&&(r.column=i[r.line],r.offset+=i[r.line]-1)}}function _o(e,n){const t=n.start._index,r=n.start._bufferIndex,i=n.end._index,l=n.end._bufferIndex;let o;if(t===i)o=[e[t].slice(r,l)];else{if(o=e.slice(t,i),r>-1){const a=o[0];typeof a=="string"?o[0]=a.slice(r):o.shift()}l>0&&o.push(e[i].slice(0,l))}return o}function vo(e,n){let t=-1;const r=[];let i;for(;++t<e.length;){const l=e[t];let o;if(typeof l=="string")o=l;else switch(l){case-5:{o="\r";break}case-4:{o=`
3
- `;break}case-3:{o=`\r
4
- `;break}case-2:{o=n?" ":" ";break}case-1:{if(!n&&i)continue;o=" ";break}default:o=String.fromCharCode(l)}i=l===-2,r.push(o)}return r.join("")}function Mo(e){const r={constructs:Ri([Po,...(e||{}).extensions||[]]),content:i(Wi),defined:[],document:i(Yi),flow:i(ho),lazy:{},string:i(go),text:i(yo)};return r;function i(l){return o;function o(a){return zo(r,l,a)}}}function Lo(e){for(;!Wt(e););return e}const st=/[\0\t\n\r]/g;function No(){let e=1,n="",t=!0,r;return i;function i(l,o,a){const c=[];let u,s,h,m,p;for(l=n+(typeof l=="string"?l.toString():new TextDecoder(o||void 0).decode(l)),h=0,n="",t&&(l.charCodeAt(0)===65279&&h++,t=void 0);h<l.length;){if(st.lastIndex=h,u=st.exec(l),m=u&&u.index!==void 0?u.index:l.length,p=l.charCodeAt(m),!u){n=l.slice(h);break}if(p===10&&h===m&&r)c.push(-3),r=void 0;else switch(r&&(c.push(-5),r=void 0),h<m&&(c.push(l.slice(h,m)),e+=m-h),p){case 0:{c.push(65533),e++;break}case 9:{for(s=Math.ceil(e/4)*4,c.push(-2);e++<s;)c.push(-1);break}case 10:{c.push(-4),e=1;break}default:r=!0,e=1}h=m+1}return a&&(r&&c.push(-5),n&&c.push(n),c.push(null)),c}}const Do=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function Oo(e){return e.replace(Do,Fo)}function Fo(e,n,t){if(n)return n;if(t.charCodeAt(0)===35){const i=t.charCodeAt(1),l=i===120||i===88;return Vt(t.slice(l?2:1),l?16:10)}return _n(t)||e}const Jt={}.hasOwnProperty;function Ro(e,n,t){return n&&typeof n=="object"&&(t=n,n=void 0),Bo(t)(Lo(Mo(t).document().write(No()(e,n,!0))))}function Bo(e){const n={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:l(Hn),autolinkProtocol:O,autolinkEmail:O,atxHeading:l(Rn),blockQuote:l(Se),characterEscape:O,characterReference:O,codeFenced:l(qe),codeFencedFenceInfo:o,codeFencedFenceMeta:o,codeIndented:l(qe,o),codeText:l(sr,o),codeTextData:O,data:O,codeFlowValue:O,definition:l(cr),definitionDestinationString:o,definitionLabelString:o,definitionTitleString:o,emphasis:l(pr),hardBreakEscape:l(Bn),hardBreakTrailing:l(Bn),htmlFlow:l(jn,o),htmlFlowData:O,htmlText:l(jn,o),htmlTextData:O,image:l(hr),label:o,link:l(Hn),listItem:l(fr),listItemValue:m,listOrdered:l(Vn,h),listUnordered:l(Vn),paragraph:l(dr),reference:d,referenceString:o,resourceDestinationString:o,resourceTitleString:o,setextHeading:l(Rn),strong:l(mr),thematicBreak:l(yr)},exit:{atxHeading:c(),atxHeadingSequence:V,autolink:c(),autolinkEmail:we,autolinkProtocol:me,blockQuote:c(),characterEscapeValue:F,characterReferenceMarkerHexadecimal:xe,characterReferenceMarkerNumeric:xe,characterReferenceValue:Q,characterReference:_e,codeFenced:c(I),codeFencedFence:C,codeFencedFenceInfo:p,codeFencedFenceMeta:w,codeFlowValue:F,codeIndented:c(x),codeText:c(S),codeTextData:F,data:F,definition:c(),definitionDestinationString:B,definitionLabelString:_,definitionTitleString:E,emphasis:c(),hardBreakEscape:c(A),hardBreakTrailing:c(A),htmlFlow:c(U),htmlFlowData:F,htmlText:c(P),htmlTextData:F,image:c(Y),label:pe,labelText:ie,lineEnding:T,link:c(R),listItem:c(),listOrdered:c(),listUnordered:c(),paragraph:c(),referenceString:oe,resourceDestinationString:f,resourceTitleString:le,resource:he,setextHeading:c(q),setextHeadingLineSequence:N,setextHeadingText:y,strong:c(),thematicBreak:c()}};Zt(n,(e||{}).mdastExtensions||[]);const t={};return r;function r(g){let b={type:"root",children:[]};const v={stack:[b],tokenStack:[],config:n,enter:a,exit:u,buffer:o,resume:s,data:t},L=[];let j=-1;for(;++j<g.length;)if(g[j][1].type==="listOrdered"||g[j][1].type==="listUnordered")if(g[j][0]==="enter")L.push(j);else{const ae=L.pop();j=i(g,ae,j)}for(j=-1;++j<g.length;){const ae=n[g[j][0]];Jt.call(ae,g[j][1].type)&&ae[g[j][1].type].call(Object.assign({sliceSerialize:g[j][2].sliceSerialize},v),g[j][1])}if(v.tokenStack.length>0){const ae=v.tokenStack[v.tokenStack.length-1];(ae[1]||ct).call(v,void 0,ae[0])}for(b.position={start:ge(g.length>0?g[0][1].start:{line:1,column:1,offset:0}),end:ge(g.length>0?g[g.length-2][1].end:{line:1,column:1,offset:0})},j=-1;++j<n.transforms.length;)b=n.transforms[j](b)||b;return b}function i(g,b,v){let L=b-1,j=-1,ae=!1,ke,fe,ve,Me;for(;++L<=v;){const ee=g[L];switch(ee[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{ee[0]==="enter"?j++:j--,Me=void 0;break}case"lineEndingBlank":{ee[0]==="enter"&&(ke&&!Me&&!j&&!ve&&(ve=L),Me=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:Me=void 0}if(!j&&ee[0]==="enter"&&ee[1].type==="listItemPrefix"||j===-1&&ee[0]==="exit"&&(ee[1].type==="listUnordered"||ee[1].type==="listOrdered")){if(ke){let Ce=L;for(fe=void 0;Ce--;){const de=g[Ce];if(de[1].type==="lineEnding"||de[1].type==="lineEndingBlank"){if(de[0]==="exit")continue;fe&&(g[fe][1].type="lineEndingBlank",ae=!0),de[1].type="lineEnding",fe=Ce}else if(!(de[1].type==="linePrefix"||de[1].type==="blockQuotePrefix"||de[1].type==="blockQuotePrefixWhitespace"||de[1].type==="blockQuoteMarker"||de[1].type==="listItemIndent"))break}ve&&(!fe||ve<fe)&&(ke._spread=!0),ke.end=Object.assign({},fe?g[fe][1].start:ee[1].end),g.splice(fe||L,0,["exit",ke,ee[2]]),L++,v++}if(ee[1].type==="listItemPrefix"){const Ce={type:"listItem",_spread:!1,start:Object.assign({},ee[1].start),end:void 0};ke=Ce,g.splice(L,0,["enter",Ce,ee[2]]),L++,v++,ve=void 0,Me=!0}}}return g[b][1]._spread=ae,v}function l(g,b){return v;function v(L){a.call(this,g(L),L),b&&b.call(this,L)}}function o(){this.stack.push({type:"fragment",children:[]})}function a(g,b,v){this.stack[this.stack.length-1].children.push(g),this.stack.push(g),this.tokenStack.push([b,v||void 0]),g.position={start:ge(b.start),end:void 0}}function c(g){return b;function b(v){g&&g.call(this,v),u.call(this,v)}}function u(g,b){const v=this.stack.pop(),L=this.tokenStack.pop();if(L)L[0].type!==g.type&&(b?b.call(this,g,L[0]):(L[1]||ct).call(this,g,L[0]));else throw new Error("Cannot close `"+g.type+"` ("+Fe({start:g.start,end:g.end})+"): it’s not open");v.position.end=ge(g.end)}function s(){return Oi(this.stack.pop())}function h(){this.data.expectingFirstListItemValue=!0}function m(g){if(this.data.expectingFirstListItemValue){const b=this.stack[this.stack.length-2];b.start=Number.parseInt(this.sliceSerialize(g),10),this.data.expectingFirstListItemValue=void 0}}function p(){const g=this.resume(),b=this.stack[this.stack.length-1];b.lang=g}function w(){const g=this.resume(),b=this.stack[this.stack.length-1];b.meta=g}function C(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function I(){const g=this.resume(),b=this.stack[this.stack.length-1];b.value=g.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function x(){const g=this.resume(),b=this.stack[this.stack.length-1];b.value=g.replace(/(\r?\n|\r)$/g,"")}function _(g){const b=this.resume(),v=this.stack[this.stack.length-1];v.label=b,v.identifier=Te(this.sliceSerialize(g)).toLowerCase()}function E(){const g=this.resume(),b=this.stack[this.stack.length-1];b.title=g}function B(){const g=this.resume(),b=this.stack[this.stack.length-1];b.url=g}function V(g){const b=this.stack[this.stack.length-1];if(!b.depth){const v=this.sliceSerialize(g).length;b.depth=v}}function y(){this.data.setextHeadingSlurpLineEnding=!0}function N(g){const b=this.stack[this.stack.length-1];b.depth=this.sliceSerialize(g).codePointAt(0)===61?1:2}function q(){this.data.setextHeadingSlurpLineEnding=void 0}function O(g){const v=this.stack[this.stack.length-1].children;let L=v[v.length-1];(!L||L.type!=="text")&&(L=gr(),L.position={start:ge(g.start),end:void 0},v.push(L)),this.stack.push(L)}function F(g){const b=this.stack.pop();b.value+=this.sliceSerialize(g),b.position.end=ge(g.end)}function T(g){const b=this.stack[this.stack.length-1];if(this.data.atHardBreak){const v=b.children[b.children.length-1];v.position.end=ge(g.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&n.canContainEols.includes(b.type)&&(O.call(this,g),F.call(this,g))}function A(){this.data.atHardBreak=!0}function U(){const g=this.resume(),b=this.stack[this.stack.length-1];b.value=g}function P(){const g=this.resume(),b=this.stack[this.stack.length-1];b.value=g}function S(){const g=this.resume(),b=this.stack[this.stack.length-1];b.value=g}function R(){const g=this.stack[this.stack.length-1];if(this.data.inReference){const b=this.data.referenceType||"shortcut";g.type+="Reference",g.referenceType=b,delete g.url,delete g.title}else delete g.identifier,delete g.label;this.data.referenceType=void 0}function Y(){const g=this.stack[this.stack.length-1];if(this.data.inReference){const b=this.data.referenceType||"shortcut";g.type+="Reference",g.referenceType=b,delete g.url,delete g.title}else delete g.identifier,delete g.label;this.data.referenceType=void 0}function ie(g){const b=this.sliceSerialize(g),v=this.stack[this.stack.length-2];v.label=Oo(b),v.identifier=Te(b).toLowerCase()}function pe(){const g=this.stack[this.stack.length-1],b=this.resume(),v=this.stack[this.stack.length-1];if(this.data.inReference=!0,v.type==="link"){const L=g.children;v.children=L}else v.alt=b}function f(){const g=this.resume(),b=this.stack[this.stack.length-1];b.url=g}function le(){const g=this.resume(),b=this.stack[this.stack.length-1];b.title=g}function he(){this.data.inReference=void 0}function d(){this.data.referenceType="collapsed"}function oe(g){const b=this.resume(),v=this.stack[this.stack.length-1];v.label=b,v.identifier=Te(this.sliceSerialize(g)).toLowerCase(),this.data.referenceType="full"}function xe(g){this.data.characterReferenceType=g.type}function Q(g){const b=this.sliceSerialize(g),v=this.data.characterReferenceType;let L;v?(L=Vt(b,v==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):L=_n(b);const j=this.stack[this.stack.length-1];j.value+=L}function _e(g){const b=this.stack.pop();b.position.end=ge(g.end)}function me(g){F.call(this,g);const b=this.stack[this.stack.length-1];b.url=this.sliceSerialize(g)}function we(g){F.call(this,g);const b=this.stack[this.stack.length-1];b.url="mailto:"+this.sliceSerialize(g)}function Se(){return{type:"blockquote",children:[]}}function qe(){return{type:"code",lang:null,meta:null,value:""}}function sr(){return{type:"inlineCode",value:""}}function cr(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function pr(){return{type:"emphasis",children:[]}}function Rn(){return{type:"heading",depth:0,children:[]}}function Bn(){return{type:"break"}}function jn(){return{type:"html",value:""}}function hr(){return{type:"image",title:null,url:"",alt:null}}function Hn(){return{type:"link",title:null,url:"",children:[]}}function Vn(g){return{type:"list",ordered:g.type==="listOrdered",start:null,spread:g._spread,children:[]}}function fr(g){return{type:"listItem",spread:g._spread,checked:null,children:[]}}function dr(){return{type:"paragraph",children:[]}}function mr(){return{type:"strong",children:[]}}function gr(){return{type:"text",value:""}}function yr(){return{type:"thematicBreak"}}}function ge(e){return{line:e.line,column:e.column,offset:e.offset}}function Zt(e,n){let t=-1;for(;++t<n.length;){const r=n[t];Array.isArray(r)?Zt(e,r):jo(e,r)}}function jo(e,n){let t;for(t in n)if(Jt.call(n,t))switch(t){case"canContainEols":{const r=n[t];r&&e[t].push(...r);break}case"transforms":{const r=n[t];r&&e[t].push(...r);break}case"enter":case"exit":{const r=n[t];r&&Object.assign(e[t],r);break}}}function ct(e,n){throw e?new Error("Cannot close `"+e.type+"` ("+Fe({start:e.start,end:e.end})+"): a different token (`"+n.type+"`, "+Fe({start:n.start,end:n.end})+") is open"):new Error("Cannot close document, a token (`"+n.type+"`, "+Fe({start:n.start,end:n.end})+") is still open")}function Ho(e){const n=this;n.parser=t;function t(r){return Ro(r,{...n.data("settings"),...e,extensions:n.data("micromarkExtensions")||[],mdastExtensions:n.data("fromMarkdownExtensions")||[]})}}function Vo(e,n){const t={type:"element",tagName:"blockquote",properties:{},children:e.wrap(e.all(n),!0)};return e.patch(n,t),e.applyData(n,t)}function qo(e,n){const t={type:"element",tagName:"br",properties:{},children:[]};return e.patch(n,t),[e.applyData(n,t),{type:"text",value:`
5
- `}]}function Uo(e,n){const t=n.value?n.value+`
6
- `:"",r={},i=n.lang?n.lang.split(/\s+/):[];i.length>0&&(r.className=["language-"+i[0]]);let l={type:"element",tagName:"code",properties:r,children:[{type:"text",value:t}]};return n.meta&&(l.data={meta:n.meta}),e.patch(n,l),l=e.applyData(n,l),l={type:"element",tagName:"pre",properties:{},children:[l]},e.patch(n,l),l}function $o(e,n){const t={type:"element",tagName:"del",properties:{},children:e.all(n)};return e.patch(n,t),e.applyData(n,t)}function Wo(e,n){const t={type:"element",tagName:"em",properties:{},children:e.all(n)};return e.patch(n,t),e.applyData(n,t)}function Xo(e,n){const t=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",r=String(n.identifier).toUpperCase(),i=ze(r.toLowerCase()),l=e.footnoteOrder.indexOf(r);let o,a=e.footnoteCounts.get(r);a===void 0?(a=0,e.footnoteOrder.push(r),o=e.footnoteOrder.length):o=l+1,a+=1,e.footnoteCounts.set(r,a);const c={type:"element",tagName:"a",properties:{href:"#"+t+"fn-"+i,id:t+"fnref-"+i+(a>1?"-"+a:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(o)}]};e.patch(n,c);const u={type:"element",tagName:"sup",properties:{},children:[c]};return e.patch(n,u),e.applyData(n,u)}function Yo(e,n){const t={type:"element",tagName:"h"+n.depth,properties:{},children:e.all(n)};return e.patch(n,t),e.applyData(n,t)}function Qo(e,n){if(e.options.allowDangerousHtml){const t={type:"raw",value:n.value};return e.patch(n,t),e.applyData(n,t)}}function er(e,n){const t=n.referenceType;let r="]";if(t==="collapsed"?r+="[]":t==="full"&&(r+="["+(n.label||n.identifier)+"]"),n.type==="imageReference")return[{type:"text",value:"!["+n.alt+r}];const i=e.all(n),l=i[0];l&&l.type==="text"?l.value="["+l.value:i.unshift({type:"text",value:"["});const o=i[i.length-1];return o&&o.type==="text"?o.value+=r:i.push({type:"text",value:r}),i}function Go(e,n){const t=String(n.identifier).toUpperCase(),r=e.definitionById.get(t);if(!r)return er(e,n);const i={src:ze(r.url||""),alt:n.alt};r.title!==null&&r.title!==void 0&&(i.title=r.title);const l={type:"element",tagName:"img",properties:i,children:[]};return e.patch(n,l),e.applyData(n,l)}function Ko(e,n){const t={src:ze(n.url)};n.alt!==null&&n.alt!==void 0&&(t.alt=n.alt),n.title!==null&&n.title!==void 0&&(t.title=n.title);const r={type:"element",tagName:"img",properties:t,children:[]};return e.patch(n,r),e.applyData(n,r)}function Jo(e,n){const t={type:"text",value:n.value.replace(/\r?\n|\r/g," ")};e.patch(n,t);const r={type:"element",tagName:"code",properties:{},children:[t]};return e.patch(n,r),e.applyData(n,r)}function Zo(e,n){const t=String(n.identifier).toUpperCase(),r=e.definitionById.get(t);if(!r)return er(e,n);const i={href:ze(r.url||"")};r.title!==null&&r.title!==void 0&&(i.title=r.title);const l={type:"element",tagName:"a",properties:i,children:e.all(n)};return e.patch(n,l),e.applyData(n,l)}function ea(e,n){const t={href:ze(n.url)};n.title!==null&&n.title!==void 0&&(t.title=n.title);const r={type:"element",tagName:"a",properties:t,children:e.all(n)};return e.patch(n,r),e.applyData(n,r)}function na(e,n,t){const r=e.all(n),i=t?ta(t):nr(n),l={},o=[];if(typeof n.checked=="boolean"){const s=r[0];let h;s&&s.type==="element"&&s.tagName==="p"?h=s:(h={type:"element",tagName:"p",properties:{},children:[]},r.unshift(h)),h.children.length>0&&h.children.unshift({type:"text",value:" "}),h.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:n.checked,disabled:!0},children:[]}),l.className=["task-list-item"]}let a=-1;for(;++a<r.length;){const s=r[a];(i||a!==0||s.type!=="element"||s.tagName!=="p")&&o.push({type:"text",value:`
7
- `}),s.type==="element"&&s.tagName==="p"&&!i?o.push(...s.children):o.push(s)}const c=r[r.length-1];c&&(i||c.type!=="element"||c.tagName!=="p")&&o.push({type:"text",value:`
8
- `});const u={type:"element",tagName:"li",properties:l,children:o};return e.patch(n,u),e.applyData(n,u)}function ta(e){let n=!1;if(e.type==="list"){n=e.spread||!1;const t=e.children;let r=-1;for(;!n&&++r<t.length;)n=nr(t[r])}return n}function nr(e){const n=e.spread;return n??e.children.length>1}function ra(e,n){const t={},r=e.all(n);let i=-1;for(typeof n.start=="number"&&n.start!==1&&(t.start=n.start);++i<r.length;){const o=r[i];if(o.type==="element"&&o.tagName==="li"&&o.properties&&Array.isArray(o.properties.className)&&o.properties.className.includes("task-list-item")){t.className=["contains-task-list"];break}}const l={type:"element",tagName:n.ordered?"ol":"ul",properties:t,children:e.wrap(r,!0)};return e.patch(n,l),e.applyData(n,l)}function ia(e,n){const t={type:"element",tagName:"p",properties:{},children:e.all(n)};return e.patch(n,t),e.applyData(n,t)}function la(e,n){const t={type:"root",children:e.wrap(e.all(n))};return e.patch(n,t),e.applyData(n,t)}function oa(e,n){const t={type:"element",tagName:"strong",properties:{},children:e.all(n)};return e.patch(n,t),e.applyData(n,t)}function aa(e,n){const t=e.all(n),r=t.shift(),i=[];if(r){const o={type:"element",tagName:"thead",properties:{},children:e.wrap([r],!0)};e.patch(n.children[0],o),i.push(o)}if(t.length>0){const o={type:"element",tagName:"tbody",properties:{},children:e.wrap(t,!0)},a=An(n.children[1]),c=Dt(n.children[n.children.length-1]);a&&c&&(o.position={start:a,end:c}),i.push(o)}const l={type:"element",tagName:"table",properties:{},children:e.wrap(i,!0)};return e.patch(n,l),e.applyData(n,l)}function ua(e,n,t){const r=t?t.children:void 0,l=(r?r.indexOf(n):1)===0?"th":"td",o=t&&t.type==="table"?t.align:void 0,a=o?o.length:n.children.length;let c=-1;const u=[];for(;++c<a;){const h=n.children[c],m={},p=o?o[c]:void 0;p&&(m.align=p);let w={type:"element",tagName:l,properties:m,children:[]};h&&(w.children=e.all(h),e.patch(h,w),w=e.applyData(h,w)),u.push(w)}const s={type:"element",tagName:"tr",properties:{},children:e.wrap(u,!0)};return e.patch(n,s),e.applyData(n,s)}function sa(e,n){const t={type:"element",tagName:"td",properties:{},children:e.all(n)};return e.patch(n,t),e.applyData(n,t)}const pt=9,ht=32;function ca(e){const n=String(e),t=/\r?\n|\r/g;let r=t.exec(n),i=0;const l=[];for(;r;)l.push(ft(n.slice(i,r.index),i>0,!0),r[0]),i=r.index+r[0].length,r=t.exec(n);return l.push(ft(n.slice(i),i>0,!1)),l.join("")}function ft(e,n,t){let r=0,i=e.length;if(n){let l=e.codePointAt(r);for(;l===pt||l===ht;)r++,l=e.codePointAt(r)}if(t){let l=e.codePointAt(i-1);for(;l===pt||l===ht;)i--,l=e.codePointAt(i-1)}return i>r?e.slice(r,i):""}function pa(e,n){const t={type:"text",value:ca(String(n.value))};return e.patch(n,t),e.applyData(n,t)}function ha(e,n){const t={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(n,t),e.applyData(n,t)}const fa={blockquote:Vo,break:qo,code:Uo,delete:$o,emphasis:Wo,footnoteReference:Xo,heading:Yo,html:Qo,imageReference:Go,image:Ko,inlineCode:Jo,linkReference:Zo,link:ea,listItem:na,list:ra,paragraph:ia,root:la,strong:oa,table:aa,tableCell:sa,tableRow:ua,text:pa,thematicBreak:ha,toml:Ue,yaml:Ue,definition:Ue,footnoteDefinition:Ue};function Ue(){}const tr=-1,Ke=0,Be=1,Ye=2,Ln=3,Nn=4,Dn=5,On=6,rr=7,ir=8,da=typeof self=="object"?self:globalThis,dt=(e,n)=>{switch(e){case"Function":case"SharedWorker":case"Worker":case"eval":case"setInterval":case"setTimeout":throw new TypeError("unable to deserialize "+e)}return new da[e](n)},ma=(e,n)=>{const t=(i,l)=>(e.set(l,i),i),r=i=>{if(e.has(i))return e.get(i);const[l,o]=n[i];switch(l){case Ke:case tr:return t(o,i);case Be:{const a=t([],i);for(const c of o)a.push(r(c));return a}case Ye:{const a=t({},i);for(const[c,u]of o)a[r(c)]=r(u);return a}case Ln:return t(new Date(o),i);case Nn:{const{source:a,flags:c}=o;return t(new RegExp(a,c),i)}case Dn:{const a=t(new Map,i);for(const[c,u]of o)a.set(r(c),r(u));return a}case On:{const a=t(new Set,i);for(const c of o)a.add(r(c));return a}case rr:{const{name:a,message:c}=o;return t(dt(a,c),i)}case ir:return t(BigInt(o),i);case"BigInt":return t(Object(BigInt(o)),i);case"ArrayBuffer":return t(new Uint8Array(o).buffer,o);case"DataView":{const{buffer:a}=new Uint8Array(o);return t(new DataView(a),o)}}return t(dt(l,o),i)};return r},mt=e=>ma(new Map,e)(0),Ie="",{toString:ga}={},{keys:ya}=Object,Oe=e=>{const n=typeof e;if(n!=="object"||!e)return[Ke,n];const t=ga.call(e).slice(8,-1);switch(t){case"Array":return[Be,Ie];case"Object":return[Ye,Ie];case"Date":return[Ln,Ie];case"RegExp":return[Nn,Ie];case"Map":return[Dn,Ie];case"Set":return[On,Ie];case"DataView":return[Be,t]}return t.includes("Array")?[Be,t]:t.includes("Error")?[rr,t]:[Ye,t]},$e=([e,n])=>e===Ke&&(n==="function"||n==="symbol"),xa=(e,n,t,r)=>{const i=(o,a)=>{const c=r.push(o)-1;return t.set(a,c),c},l=o=>{if(t.has(o))return t.get(o);let[a,c]=Oe(o);switch(a){case Ke:{let s=o;switch(c){case"bigint":a=ir,s=o.toString();break;case"function":case"symbol":if(e)throw new TypeError("unable to serialize "+c);s=null;break;case"undefined":return i([tr],o)}return i([a,s],o)}case Be:{if(c){let m=o;return c==="DataView"?m=new Uint8Array(o.buffer):c==="ArrayBuffer"&&(m=new Uint8Array(o)),i([c,[...m]],o)}const s=[],h=i([a,s],o);for(const m of o)s.push(l(m));return h}case Ye:{if(c)switch(c){case"BigInt":return i([c,o.toString()],o);case"Boolean":case"Number":case"String":return i([c,o.valueOf()],o)}if(n&&"toJSON"in o)return l(o.toJSON());const s=[],h=i([a,s],o);for(const m of ya(o))(e||!$e(Oe(o[m])))&&s.push([l(m),l(o[m])]);return h}case Ln:return i([a,o.toISOString()],o);case Nn:{const{source:s,flags:h}=o;return i([a,{source:s,flags:h}],o)}case Dn:{const s=[],h=i([a,s],o);for(const[m,p]of o)(e||!($e(Oe(m))||$e(Oe(p))))&&s.push([l(m),l(p)]);return h}case On:{const s=[],h=i([a,s],o);for(const m of o)(e||!$e(Oe(m)))&&s.push(l(m));return h}}const{message:u}=o;return i([a,{name:c,message:u}],o)};return l},gt=(e,{json:n,lossy:t}={})=>{const r=[];return xa(!(n||t),!!n,new Map,r)(e),r},Qe=typeof structuredClone=="function"?(e,n)=>n&&("json"in n||"lossy"in n)?mt(gt(e,n)):structuredClone(e):(e,n)=>mt(gt(e,n));function ka(e,n){const t=[{type:"text",value:"↩"}];return n>1&&t.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(n)}]}),t}function ba(e,n){return"Back to reference "+(e+1)+(n>1?"-"+n:"")}function wa(e){const n=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",t=e.options.footnoteBackContent||ka,r=e.options.footnoteBackLabel||ba,i=e.options.footnoteLabel||"Footnotes",l=e.options.footnoteLabelTagName||"h2",o=e.options.footnoteLabelProperties||{className:["sr-only"]},a=[];let c=-1;for(;++c<e.footnoteOrder.length;){const u=e.footnoteById.get(e.footnoteOrder[c]);if(!u)continue;const s=e.all(u),h=String(u.identifier).toUpperCase(),m=ze(h.toLowerCase());let p=0;const w=[],C=e.footnoteCounts.get(h);for(;C!==void 0&&++p<=C;){w.length>0&&w.push({type:"text",value:" "});let _=typeof t=="string"?t:t(c,p);typeof _=="string"&&(_={type:"text",value:_}),w.push({type:"element",tagName:"a",properties:{href:"#"+n+"fnref-"+m+(p>1?"-"+p:""),dataFootnoteBackref:"",ariaLabel:typeof r=="string"?r:r(c,p),className:["data-footnote-backref"]},children:Array.isArray(_)?_:[_]})}const I=s[s.length-1];if(I&&I.type==="element"&&I.tagName==="p"){const _=I.children[I.children.length-1];_&&_.type==="text"?_.value+=" ":I.children.push({type:"text",value:" "}),I.children.push(...w)}else s.push(...w);const x={type:"element",tagName:"li",properties:{id:n+"fn-"+m},children:e.wrap(s,!0)};e.patch(u,x),a.push(x)}if(a.length!==0)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:l,properties:{...Qe(o),id:"footnote-label"},children:[{type:"text",value:i}]},{type:"text",value:`
9
- `},{type:"element",tagName:"ol",properties:{},children:e.wrap(a,!0)},{type:"text",value:`
10
- `}]}}const lr=(function(e){if(e==null)return Ia;if(typeof e=="function")return Je(e);if(typeof e=="object")return Array.isArray(e)?Sa(e):Ca(e);if(typeof e=="string")return Ea(e);throw new Error("Expected function, string, or object as test")});function Sa(e){const n=[];let t=-1;for(;++t<e.length;)n[t]=lr(e[t]);return Je(r);function r(...i){let l=-1;for(;++l<n.length;)if(n[l].apply(this,i))return!0;return!1}}function Ca(e){const n=e;return Je(t);function t(r){const i=r;let l;for(l in e)if(i[l]!==n[l])return!1;return!0}}function Ea(e){return Je(n);function n(t){return t&&t.type===e}}function Je(e){return n;function n(t,r,i){return!!(Aa(t)&&e.call(this,t,typeof r=="number"?r:void 0,i||void 0))}}function Ia(){return!0}function Aa(e){return e!==null&&typeof e=="object"&&"type"in e}const or=[],Ta=!0,yt=!1,Pa="skip";function za(e,n,t,r){let i;typeof n=="function"&&typeof t!="function"?(r=t,t=n):i=n;const l=lr(i),o=r?-1:1;a(e,void 0,[])();function a(c,u,s){const h=c&&typeof c=="object"?c:{};if(typeof h.type=="string"){const p=typeof h.tagName=="string"?h.tagName:typeof h.name=="string"?h.name:void 0;Object.defineProperty(m,"name",{value:"node ("+(c.type+(p?"<"+p+">":""))+")"})}return m;function m(){let p=or,w,C,I;if((!n||l(c,u,s[s.length-1]||void 0))&&(p=_a(t(c,s)),p[0]===yt))return p;if("children"in c&&c.children){const x=c;if(x.children&&p[0]!==Pa)for(C=(r?x.children.length:-1)+o,I=s.concat(x);C>-1&&C<x.children.length;){const _=x.children[C];if(w=a(_,C,I)(),w[0]===yt)return w;C=typeof w[1]=="number"?w[1]:C+o}}return p}}}function _a(e){return Array.isArray(e)?e:typeof e=="number"?[Ta,e]:e==null?or:[e]}function ar(e,n,t,r){let i,l,o;typeof n=="function"&&typeof t!="function"?(l=void 0,o=n,i=t):(l=n,o=t,i=r),za(e,l,a,i);function a(c,u){const s=u[u.length-1],h=s?s.children.indexOf(c):void 0;return o(c,h,s)}}const wn={}.hasOwnProperty,va={};function Ma(e,n){const t=n||va,r=new Map,i=new Map,l=new Map,o={...fa,...t.handlers},a={all:u,applyData:Na,definitionById:r,footnoteById:i,footnoteCounts:l,footnoteOrder:[],handlers:o,one:c,options:t,patch:La,wrap:Oa};return ar(e,function(s){if(s.type==="definition"||s.type==="footnoteDefinition"){const h=s.type==="definition"?r:i,m=String(s.identifier).toUpperCase();h.has(m)||h.set(m,s)}}),a;function c(s,h){const m=s.type,p=a.handlers[m];if(wn.call(a.handlers,m)&&p)return p(a,s,h);if(a.options.passThrough&&a.options.passThrough.includes(m)){if("children"in s){const{children:C,...I}=s,x=Qe(I);return x.children=a.all(s),x}return Qe(s)}return(a.options.unknownHandler||Da)(a,s,h)}function u(s){const h=[];if("children"in s){const m=s.children;let p=-1;for(;++p<m.length;){const w=a.one(m[p],s);if(w){if(p&&m[p-1].type==="break"&&(!Array.isArray(w)&&w.type==="text"&&(w.value=xt(w.value)),!Array.isArray(w)&&w.type==="element")){const C=w.children[0];C&&C.type==="text"&&(C.value=xt(C.value))}Array.isArray(w)?h.push(...w):h.push(w)}}}return h}}function La(e,n){e.position&&(n.position=di(e))}function Na(e,n){let t=n;if(e&&e.data){const r=e.data.hName,i=e.data.hChildren,l=e.data.hProperties;if(typeof r=="string")if(t.type==="element")t.tagName=r;else{const o="children"in t?t.children:[t];t={type:"element",tagName:r,properties:{},children:o}}t.type==="element"&&l&&Object.assign(t.properties,Qe(l)),"children"in t&&t.children&&i!==null&&i!==void 0&&(t.children=i)}return t}function Da(e,n){const t=n.data||{},r="value"in n&&!(wn.call(t,"hProperties")||wn.call(t,"hChildren"))?{type:"text",value:n.value}:{type:"element",tagName:"div",properties:{},children:e.all(n)};return e.patch(n,r),e.applyData(n,r)}function Oa(e,n){const t=[];let r=-1;for(n&&t.push({type:"text",value:`
11
- `});++r<e.length;)r&&t.push({type:"text",value:`
12
- `}),t.push(e[r]);return n&&e.length>0&&t.push({type:"text",value:`
13
- `}),t}function xt(e){let n=0,t=e.charCodeAt(n);for(;t===9||t===32;)n++,t=e.charCodeAt(n);return e.slice(n)}function kt(e,n){const t=Ma(e,n),r=t.one(e,void 0),i=wa(t),l=Array.isArray(r)?{type:"root",children:r}:r||{type:"root",children:[]};return i&&l.children.push({type:"text",value:`
14
- `},i),l}function Fa(e,n){return e&&"run"in e?async function(t,r){const i=kt(t,{file:r,...n});await e.run(i,r)}:function(t,r){return kt(t,{file:r,...e||n})}}function bt(e){if(e)throw e}var on,wt;function Ra(){if(wt)return on;wt=1;var e=Object.prototype.hasOwnProperty,n=Object.prototype.toString,t=Object.defineProperty,r=Object.getOwnPropertyDescriptor,i=function(u){return typeof Array.isArray=="function"?Array.isArray(u):n.call(u)==="[object Array]"},l=function(u){if(!u||n.call(u)!=="[object Object]")return!1;var s=e.call(u,"constructor"),h=u.constructor&&u.constructor.prototype&&e.call(u.constructor.prototype,"isPrototypeOf");if(u.constructor&&!s&&!h)return!1;var m;for(m in u);return typeof m>"u"||e.call(u,m)},o=function(u,s){t&&s.name==="__proto__"?t(u,s.name,{enumerable:!0,configurable:!0,value:s.newValue,writable:!0}):u[s.name]=s.newValue},a=function(u,s){if(s==="__proto__")if(e.call(u,s)){if(r)return r(u,s).value}else return;return u[s]};return on=function c(){var u,s,h,m,p,w,C=arguments[0],I=1,x=arguments.length,_=!1;for(typeof C=="boolean"&&(_=C,C=arguments[1]||{},I=2),(C==null||typeof C!="object"&&typeof C!="function")&&(C={});I<x;++I)if(u=arguments[I],u!=null)for(s in u)h=a(C,s),m=a(u,s),C!==m&&(_&&m&&(l(m)||(p=i(m)))?(p?(p=!1,w=h&&i(h)?h:[]):w=h&&l(h)?h:{},o(C,{name:s,newValue:c(_,w,m)})):typeof m<"u"&&o(C,{name:s,newValue:m}));return C},on}var Ba=Ra();const an=Tt(Ba);function Sn(e){if(typeof e!="object"||e===null)return!1;const n=Object.getPrototypeOf(e);return(n===null||n===Object.prototype||Object.getPrototypeOf(n)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function ja(){const e=[],n={run:t,use:r};return n;function t(...i){let l=-1;const o=i.pop();if(typeof o!="function")throw new TypeError("Expected function as last argument, not "+o);a(null,...i);function a(c,...u){const s=e[++l];let h=-1;if(c){o(c);return}for(;++h<i.length;)(u[h]===null||u[h]===void 0)&&(u[h]=i[h]);i=u,s?Ha(s,a)(...u):o(null,...u)}}function r(i){if(typeof i!="function")throw new TypeError("Expected `middelware` to be a function, not "+i);return e.push(i),n}}function Ha(e,n){let t;return r;function r(...o){const a=e.length>o.length;let c;a&&o.push(i);try{c=e.apply(this,o)}catch(u){const s=u;if(a&&t)throw s;return i(s)}a||(c&&c.then&&typeof c.then=="function"?c.then(l,i):c instanceof Error?i(c):l(c))}function i(o,...a){t||(t=!0,n(o,...a))}function l(o){i(null,o)}}const ue={basename:Va,dirname:qa,extname:Ua,join:$a,sep:"/"};function Va(e,n){if(n!==void 0&&typeof n!="string")throw new TypeError('"ext" argument must be a string');Ve(e);let t=0,r=-1,i=e.length,l;if(n===void 0||n.length===0||n.length>e.length){for(;i--;)if(e.codePointAt(i)===47){if(l){t=i+1;break}}else r<0&&(l=!0,r=i+1);return r<0?"":e.slice(t,r)}if(n===e)return"";let o=-1,a=n.length-1;for(;i--;)if(e.codePointAt(i)===47){if(l){t=i+1;break}}else o<0&&(l=!0,o=i+1),a>-1&&(e.codePointAt(i)===n.codePointAt(a--)?a<0&&(r=i):(a=-1,r=o));return t===r?r=o:r<0&&(r=e.length),e.slice(t,r)}function qa(e){if(Ve(e),e.length===0)return".";let n=-1,t=e.length,r;for(;--t;)if(e.codePointAt(t)===47){if(r){n=t;break}}else r||(r=!0);return n<0?e.codePointAt(0)===47?"/":".":n===1&&e.codePointAt(0)===47?"//":e.slice(0,n)}function Ua(e){Ve(e);let n=e.length,t=-1,r=0,i=-1,l=0,o;for(;n--;){const a=e.codePointAt(n);if(a===47){if(o){r=n+1;break}continue}t<0&&(o=!0,t=n+1),a===46?i<0?i=n:l!==1&&(l=1):i>-1&&(l=-1)}return i<0||t<0||l===0||l===1&&i===t-1&&i===r+1?"":e.slice(i,t)}function $a(...e){let n=-1,t;for(;++n<e.length;)Ve(e[n]),e[n]&&(t=t===void 0?e[n]:t+"/"+e[n]);return t===void 0?".":Wa(t)}function Wa(e){Ve(e);const n=e.codePointAt(0)===47;let t=Xa(e,!n);return t.length===0&&!n&&(t="."),t.length>0&&e.codePointAt(e.length-1)===47&&(t+="/"),n?"/"+t:t}function Xa(e,n){let t="",r=0,i=-1,l=0,o=-1,a,c;for(;++o<=e.length;){if(o<e.length)a=e.codePointAt(o);else{if(a===47)break;a=47}if(a===47){if(!(i===o-1||l===1))if(i!==o-1&&l===2){if(t.length<2||r!==2||t.codePointAt(t.length-1)!==46||t.codePointAt(t.length-2)!==46){if(t.length>2){if(c=t.lastIndexOf("/"),c!==t.length-1){c<0?(t="",r=0):(t=t.slice(0,c),r=t.length-1-t.lastIndexOf("/")),i=o,l=0;continue}}else if(t.length>0){t="",r=0,i=o,l=0;continue}}n&&(t=t.length>0?t+"/..":"..",r=2)}else t.length>0?t+="/"+e.slice(i+1,o):t=e.slice(i+1,o),r=o-i-1;i=o,l=0}else a===46&&l>-1?l++:l=-1}return t}function Ve(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const Ya={cwd:Qa};function Qa(){return"/"}function Cn(e){return!!(e!==null&&typeof e=="object"&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&e.auth===void 0)}function Ga(e){if(typeof e=="string")e=new URL(e);else if(!Cn(e)){const n=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");throw n.code="ERR_INVALID_ARG_TYPE",n}if(e.protocol!=="file:"){const n=new TypeError("The URL must be of scheme file");throw n.code="ERR_INVALID_URL_SCHEME",n}return Ka(e)}function Ka(e){if(e.hostname!==""){const r=new TypeError('File URL host must be "localhost" or empty on darwin');throw r.code="ERR_INVALID_FILE_URL_HOST",r}const n=e.pathname;let t=-1;for(;++t<n.length;)if(n.codePointAt(t)===37&&n.codePointAt(t+1)===50){const r=n.codePointAt(t+2);if(r===70||r===102){const i=new TypeError("File URL path must not include encoded / characters");throw i.code="ERR_INVALID_FILE_URL_PATH",i}}return decodeURIComponent(n)}const un=["history","path","basename","stem","extname","dirname"];class ur{constructor(n){let t;n?Cn(n)?t={path:n}:typeof n=="string"||Ja(n)?t={value:n}:t=n:t={},this.cwd="cwd"in t?"":Ya.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let r=-1;for(;++r<un.length;){const l=un[r];l in t&&t[l]!==void 0&&t[l]!==null&&(this[l]=l==="history"?[...t[l]]:t[l])}let i;for(i in t)un.includes(i)||(this[i]=t[i])}get basename(){return typeof this.path=="string"?ue.basename(this.path):void 0}set basename(n){cn(n,"basename"),sn(n,"basename"),this.path=ue.join(this.dirname||"",n)}get dirname(){return typeof this.path=="string"?ue.dirname(this.path):void 0}set dirname(n){St(this.basename,"dirname"),this.path=ue.join(n||"",this.basename)}get extname(){return typeof this.path=="string"?ue.extname(this.path):void 0}set extname(n){if(sn(n,"extname"),St(this.dirname,"extname"),n){if(n.codePointAt(0)!==46)throw new Error("`extname` must start with `.`");if(n.includes(".",1))throw new Error("`extname` cannot contain multiple dots")}this.path=ue.join(this.dirname,this.stem+(n||""))}get path(){return this.history[this.history.length-1]}set path(n){Cn(n)&&(n=Ga(n)),cn(n,"path"),this.path!==n&&this.history.push(n)}get stem(){return typeof this.path=="string"?ue.basename(this.path,this.extname):void 0}set stem(n){cn(n,"stem"),sn(n,"stem"),this.path=ue.join(this.dirname||"",n+(this.extname||""))}fail(n,t,r){const i=this.message(n,t,r);throw i.fatal=!0,i}info(n,t,r){const i=this.message(n,t,r);return i.fatal=void 0,i}message(n,t,r){const i=new G(n,t,r);return this.path&&(i.name=this.path+":"+i.name,i.file=this.path),i.fatal=!1,this.messages.push(i),i}toString(n){return this.value===void 0?"":typeof this.value=="string"?this.value:new TextDecoder(n||void 0).decode(this.value)}}function sn(e,n){if(e&&e.includes(ue.sep))throw new Error("`"+n+"` cannot be a path: did not expect `"+ue.sep+"`")}function cn(e,n){if(!e)throw new Error("`"+n+"` cannot be empty")}function St(e,n){if(!e)throw new Error("Setting `"+n+"` requires `path` to be set too")}function Ja(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const Za=(function(e){const r=this.constructor.prototype,i=r[e],l=function(){return i.apply(l,arguments)};return Object.setPrototypeOf(l,r),l}),eu={}.hasOwnProperty;class Fn extends Za{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=ja()}copy(){const n=new Fn;let t=-1;for(;++t<this.attachers.length;){const r=this.attachers[t];n.use(...r)}return n.data(an(!0,{},this.namespace)),n}data(n,t){return typeof n=="string"?arguments.length===2?(fn("data",this.frozen),this.namespace[n]=t,this):eu.call(this.namespace,n)&&this.namespace[n]||void 0:n?(fn("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[t,...r]=this.attachers[this.freezeIndex];if(r[0]===!1)continue;r[0]===!0&&(r[0]=void 0);const i=t.call(n,...r);typeof i=="function"&&this.transformers.use(i)}return this.frozen=!0,this.freezeIndex=Number.POSITIVE_INFINITY,this}parse(n){this.freeze();const t=We(n),r=this.parser||this.Parser;return pn("parse",r),r(String(t),t)}process(n,t){const r=this;return this.freeze(),pn("process",this.parser||this.Parser),hn("process",this.compiler||this.Compiler),t?i(void 0,t):new Promise(i);function i(l,o){const a=We(n),c=r.parse(a);r.run(c,a,function(s,h,m){if(s||!h||!m)return u(s);const p=h,w=r.stringify(p,m);ru(w)?m.value=w:m.result=w,u(s,m)});function u(s,h){s||!h?o(s):l?l(h):t(void 0,h)}}}processSync(n){let t=!1,r;return this.freeze(),pn("processSync",this.parser||this.Parser),hn("processSync",this.compiler||this.Compiler),this.process(n,i),Et("processSync","process",t),r;function i(l,o){t=!0,bt(l),r=o}}run(n,t,r){Ct(n),this.freeze();const i=this.transformers;return!r&&typeof t=="function"&&(r=t,t=void 0),r?l(void 0,r):new Promise(l);function l(o,a){const c=We(t);i.run(n,c,u);function u(s,h,m){const p=h||n;s?a(s):o?o(p):r(void 0,p,m)}}}runSync(n,t){let r=!1,i;return this.run(n,t,l),Et("runSync","run",r),i;function l(o,a){bt(o),i=a,r=!0}}stringify(n,t){this.freeze();const r=We(t),i=this.compiler||this.Compiler;return hn("stringify",i),Ct(n),i(n,r)}use(n,...t){const r=this.attachers,i=this.namespace;if(fn("use",this.frozen),n!=null)if(typeof n=="function")c(n,t);else if(typeof n=="object")Array.isArray(n)?a(n):o(n);else throw new TypeError("Expected usable value, not `"+n+"`");return this;function l(u){if(typeof u=="function")c(u,[]);else if(typeof u=="object")if(Array.isArray(u)){const[s,...h]=u;c(s,h)}else o(u);else throw new TypeError("Expected usable value, not `"+u+"`")}function o(u){if(!("plugins"in u)&&!("settings"in u))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(u.plugins),u.settings&&(i.settings=an(!0,i.settings,u.settings))}function a(u){let s=-1;if(u!=null)if(Array.isArray(u))for(;++s<u.length;){const h=u[s];l(h)}else throw new TypeError("Expected a list of plugins, not `"+u+"`")}function c(u,s){let h=-1,m=-1;for(;++h<r.length;)if(r[h][0]===u){m=h;break}if(m===-1)r.push([u,...s]);else if(s.length>0){let[p,...w]=s;const C=r[m][1];Sn(C)&&Sn(p)&&(p=an(!0,C,p)),r[m]=[u,p,...w]}}}}const nu=new Fn().freeze();function pn(e,n){if(typeof n!="function")throw new TypeError("Cannot `"+e+"` without `parser`")}function hn(e,n){if(typeof n!="function")throw new TypeError("Cannot `"+e+"` without `compiler`")}function fn(e,n){if(n)throw new Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function Ct(e){if(!Sn(e)||typeof e.type!="string")throw new TypeError("Expected node, got `"+e+"`")}function Et(e,n,t){if(!t)throw new Error("`"+e+"` finished async. Use `"+n+"` instead")}function We(e){return tu(e)?e:new ur(e)}function tu(e){return!!(e&&typeof e=="object"&&"message"in e&&"messages"in e)}function ru(e){return typeof e=="string"||iu(e)}function iu(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const lu="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",It=[],At={allowDangerousHtml:!0},ou=/^(https?|ircs?|mailto|xmpp)$/i,au=[{from:"astPlugins",id:"remove-buggy-html-in-markdown-parser"},{from:"allowDangerousHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"allowNode",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowElement"},{from:"allowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowedElements"},{from:"className",id:"remove-classname"},{from:"disallowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"disallowedElements"},{from:"escapeHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"includeElementIndex",id:"#remove-includeelementindex"},{from:"includeNodeIndex",id:"change-includenodeindex-to-includeelementindex"},{from:"linkTarget",id:"remove-linktarget"},{from:"plugins",id:"change-plugins-to-remarkplugins",to:"remarkPlugins"},{from:"rawSourcePos",id:"#remove-rawsourcepos"},{from:"renderers",id:"change-renderers-to-components",to:"components"},{from:"source",id:"change-source-to-children",to:"children"},{from:"sourcePos",id:"#remove-sourcepos"},{from:"transformImageUri",id:"#add-urltransform",to:"urlTransform"},{from:"transformLinkUri",id:"#add-urltransform",to:"urlTransform"}];function ju(e){const n=uu(e),t=su(e);return cu(n.runSync(n.parse(t),t),e)}function uu(e){const n=e.rehypePlugins||It,t=e.remarkPlugins||It,r=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...At}:At;return nu().use(Ho).use(t).use(Fa,r).use(n)}function su(e){const n=e.children||"",t=new ur;return typeof n=="string"&&(t.value=n),t}function cu(e,n){const t=n.allowedElements,r=n.allowElement,i=n.components,l=n.disallowedElements,o=n.skipHtml,a=n.unwrapDisallowed,c=n.urlTransform||pu;for(const s of au)Object.hasOwn(n,s.from)&&(""+s.from+(s.to?"use `"+s.to+"` instead":"remove it")+lu+s.id,void 0);return ar(e,u),ki(e,{Fragment:Ze.Fragment,components:i,ignoreInvalidStyle:!0,jsx:Ze.jsx,jsxs:Ze.jsxs,passKeys:!0,passNode:!0});function u(s,h,m){if(s.type==="raw"&&m&&typeof h=="number")return o?m.children.splice(h,1):m.children[h]={type:"text",value:s.value},h;if(s.type==="element"){let p;for(p in tn)if(Object.hasOwn(tn,p)&&Object.hasOwn(s.properties,p)){const w=s.properties[p],C=tn[p];(C===null||C.includes(s.tagName))&&(s.properties[p]=c(String(w||""),p,s))}}if(s.type==="element"){let p=t?!t.includes(s.tagName):l?l.includes(s.tagName):!1;if(!p&&r&&typeof h=="number"&&(p=!r(s,h,m)),p&&m&&typeof h=="number")return a&&s.children?m.children.splice(h,1,...s.children):m.children.splice(h,1),h}}}function pu(e){const n=e.indexOf(":"),t=e.indexOf("?"),r=e.indexOf("#"),i=e.indexOf("/");return n===-1||i!==-1&&n>i||t!==-1&&n>t||r!==-1&&n>r||ou.test(e.slice(0,n))?e:""}export{fu as A,mu as B,yu as C,bu as D,wu as F,Su as G,Eu as L,Au as M,Pu as P,Nu as S,Ru as T,Bu as W,gu as a,xu as b,Mu as c,Ou as d,du as e,ku as f,Iu as g,Tu as h,Fu as i,Du as j,_u as k,Cu as l,zu as m,vu as n,Lu as o,ju as p};