@ltm-blueverse/alpha-hub-studio 0.7.0

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.
Files changed (57) hide show
  1. package/README.md +22 -0
  2. package/package.json +23 -0
  3. package/static/apple-touch-icon.png +0 -0
  4. package/static/assets/DecisionWorkspace-DG6zPNls.js +1 -0
  5. package/static/assets/DiffMergeWorkspace-C8yIdDC7.js +1 -0
  6. package/static/assets/EntityResolutionTab-RBysMLhB.js +6 -0
  7. package/static/assets/GraphInspectorPanel-Bbrbhd03.js +1 -0
  8. package/static/assets/GraphWorkspace-AxTFEhNP.js +1116 -0
  9. package/static/assets/ImportExportWorkspace-BK3TofDv.js +6 -0
  10. package/static/assets/KGOverviewTab-D9EWKL_n.js +1 -0
  11. package/static/assets/LineageDiagram-XxBVa1Ij.js +27 -0
  12. package/static/assets/MarkdownContentViewer-Chx4ysCK.js +45 -0
  13. package/static/assets/MemoryWorkspace-CIjaTN_S.js +6 -0
  14. package/static/assets/OntologySummaryTab-NJ3ZrkoJ.js +1 -0
  15. package/static/assets/ReasoningWorkspace-B127Rd-S.js +19 -0
  16. package/static/assets/RegistryTab-BE2-yKLC.js +11 -0
  17. package/static/assets/SparqlWorkspace-RwPj2YK7.js +26 -0
  18. package/static/assets/TimelinePanel-DmtiXgmN.js +36 -0
  19. package/static/assets/VocabularyWorkspace-YF9waL5N.js +44 -0
  20. package/static/assets/book-open-BqEIxx1e.js +6 -0
  21. package/static/assets/chevron-right-CiEuNwKq.js +11 -0
  22. package/static/assets/circle-check-BToWKwbO.js +6 -0
  23. package/static/assets/copy-BfQXGhHP.js +6 -0
  24. package/static/assets/download-gQOgYz3q.js +6 -0
  25. package/static/assets/external-link-DqNu6T-f.js +6 -0
  26. package/static/assets/file-text-Bbz-r0FQ.js +6 -0
  27. package/static/assets/git-branch-B8yDcUSY.js +6 -0
  28. package/static/assets/graph-vendor-CUDaIrp7.js +312 -0
  29. package/static/assets/graphTheme-DNKLxzKZ.js +6 -0
  30. package/static/assets/hero-B5GXDCBc.png +0 -0
  31. package/static/assets/index-Bt8w1Tz_.css +1 -0
  32. package/static/assets/index-C00aFykz.js +9 -0
  33. package/static/assets/index-DHWWI-uw.js +1730 -0
  34. package/static/assets/index-Dli_3Iwd.js +22 -0
  35. package/static/assets/index-DtC_GayB.js +16 -0
  36. package/static/assets/index-MVDNL3vw.js +127 -0
  37. package/static/assets/info-vaffNQOD.js +6 -0
  38. package/static/assets/layers-Cct6D_wK.js +6 -0
  39. package/static/assets/loader-circle-C8NUmtFx.js +6 -0
  40. package/static/assets/neighborhoodPanelPlugin-w1yJlm0A.js +1 -0
  41. package/static/assets/pencil-DYlEC6ri.js +6 -0
  42. package/static/assets/play-G1gyOk2a.js +6 -0
  43. package/static/assets/queries-CYtdSB4H.js +1 -0
  44. package/static/assets/query-vendor-BqVbYexz.js +34 -0
  45. package/static/assets/refresh-cw-CL9OXZ89.js +6 -0
  46. package/static/assets/registryStore-MVt_NgVV.js +1 -0
  47. package/static/assets/style-BZV40eAE.css +1 -0
  48. package/static/assets/style-D8TqSrGs.js +15 -0
  49. package/static/assets/temporalOverlayPlugin-CRhLa1FU.js +1 -0
  50. package/static/assets/timeline-vendor-WyY-t3YQ.js +97 -0
  51. package/static/assets/timeline-vendor-lG7zfUUF.css +1 -0
  52. package/static/assets/trash-2-DiZNV6Gj.js +6 -0
  53. package/static/assets/x-DpqMYq96.js +6 -0
  54. package/static/favicon-32.png +0 -0
  55. package/static/favicon.svg +13 -0
  56. package/static/icons.svg +24 -0
  57. package/static/index.html +18 -0
@@ -0,0 +1,45 @@
1
+ import{b as Nn,c as so,j as B}from"./index-DHWWI-uw.js";import{g as Pn,j as en,a as te}from"./query-vendor-BqVbYexz.js";import{G as Q,E as uo}from"./graphTheme-DNKLxzKZ.js";import{L as er}from"./loader-circle-C8NUmtFx.js";import{R as co}from"./refresh-cw-CL9OXZ89.js";import{C as po}from"./copy-BfQXGhHP.js";import{P as fo}from"./pencil-DYlEC6ri.js";import{X as ho}from"./x-DpqMYq96.js";import{E as mo}from"./external-link-DqNu6T-f.js";/**
2
+ * @license lucide-react v1.8.0 - ISC
3
+ *
4
+ * This source code is licensed under the ISC license.
5
+ * See the LICENSE file in the root directory of this source tree.
6
+ */const go=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],tr=Nn("check",go);/**
7
+ * @license lucide-react v1.8.0 - ISC
8
+ *
9
+ * This source code is licensed under the ISC license.
10
+ * See the LICENSE file in the root directory of this source tree.
11
+ */const ko=[["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"}]],xo=Nn("code-xml",ko);/**
12
+ * @license lucide-react v1.8.0 - ISC
13
+ *
14
+ * This source code is licensed under the ISC license.
15
+ * See the LICENSE file in the root directory of this source tree.
16
+ */const bo=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",ry:"2",key:"1m3agn"}],["circle",{cx:"9",cy:"9",r:"2",key:"af1f0g"}],["path",{d:"m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21",key:"1xmnt7"}]],yo=Nn("image",bo);class wo extends Error{name="Assertion";code="ERR_ASSERTION";constructor(t,n,r,i,a){super(t),Error.captureStackTrace&&Error.captureStackTrace(this,this.constructor),this.actual=n,this.expected=r,this.generated=a,this.operator=i}}function g(e,t){Jr(!!e,!1,!0,"ok","Expected value to be truthy",t)}function Sn(e){Jr(!1,!1,!0,"ok","Unreachable",e)}function Jr(e,t,n,r,i,a){if(!e)throw a instanceof Error?a:new wo(a||i,t,n,r,!a)}function So(e,t){const n={};return(e[e.length-1]===""?[...e,""]:e).join((n.padRight?" ":"")+","+(n.padLeft===!1?"":" ")).trim()}const Co=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,vo=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,Eo={};function nr(e,t){return(Eo.jsx?vo:Co).test(e)}const Ao=/[ \t\n\f\r]/g;function Io(e){return typeof e=="object"?e.type==="text"?rr(e.value):!1:rr(e)}function rr(e){return e.replace(Ao,"")===""}class Ft{constructor(t,n,r){this.normal=n,this.property=t,r&&(this.space=r)}}Ft.prototype.normal={};Ft.prototype.property={};Ft.prototype.space=void 0;function Zr(e,t){const n={},r={};for(const i of e)Object.assign(n,i.property),Object.assign(r,i.normal);return new Ft(n,r,t)}function Cn(e){return e.toLowerCase()}class xe{constructor(t,n){this.attribute=n,this.property=t}}xe.prototype.attribute="";xe.prototype.booleanish=!1;xe.prototype.boolean=!1;xe.prototype.commaOrSpaceSeparated=!1;xe.prototype.commaSeparated=!1;xe.prototype.defined=!1;xe.prototype.mustUseProperty=!1;xe.prototype.number=!1;xe.prototype.overloadedBoolean=!1;xe.prototype.property="";xe.prototype.spaceSeparated=!1;xe.prototype.space=void 0;let To=0;const V=Qe(),oe=Qe(),vn=Qe(),D=Qe(),K=Qe(),Ge=Qe(),we=Qe();function Qe(){return 2**++To}const En=Object.freeze(Object.defineProperty({__proto__:null,boolean:V,booleanish:oe,commaOrSpaceSeparated:we,commaSeparated:Ge,number:D,overloadedBoolean:vn,spaceSeparated:K},Symbol.toStringTag,{value:"Module"})),tn=Object.keys(En);class Rn extends xe{constructor(t,n,r,i){let a=-1;if(super(t,n),ir(this,"space",i),typeof r=="number")for(;++a<tn.length;){const o=tn[a];ir(this,tn[a],(r&En[o])===En[o])}}}Rn.prototype.defined=!0;function ir(e,t,n){n&&(e[t]=n)}function gt(e){const t={},n={};for(const[r,i]of Object.entries(e.properties)){const a=new Rn(r,e.transform(e.attributes||{},r),i,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(a.mustUseProperty=!0),t[r]=a,n[Cn(r)]=r,n[Cn(a.attribute)]=r}return new Ft(t,n,e.space)}const ei=gt({properties:{ariaActiveDescendant:null,ariaAtomic:oe,ariaAutoComplete:null,ariaBusy:oe,ariaChecked:oe,ariaColCount:D,ariaColIndex:D,ariaColSpan:D,ariaControls:K,ariaCurrent:null,ariaDescribedBy:K,ariaDetails:null,ariaDisabled:oe,ariaDropEffect:K,ariaErrorMessage:null,ariaExpanded:oe,ariaFlowTo:K,ariaGrabbed:oe,ariaHasPopup:null,ariaHidden:oe,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:K,ariaLevel:D,ariaLive:null,ariaModal:oe,ariaMultiLine:oe,ariaMultiSelectable:oe,ariaOrientation:null,ariaOwns:K,ariaPlaceholder:null,ariaPosInSet:D,ariaPressed:oe,ariaReadOnly:oe,ariaRelevant:null,ariaRequired:oe,ariaRoleDescription:K,ariaRowCount:D,ariaRowIndex:D,ariaRowSpan:D,ariaSelected:oe,ariaSetSize:D,ariaSort:null,ariaValueMax:D,ariaValueMin:D,ariaValueNow:D,ariaValueText:null,role:null},transform(e,t){return t==="role"?t:"aria-"+t.slice(4).toLowerCase()}});function ti(e,t){return t in e?e[t]:t}function ni(e,t){return ti(e,t.toLowerCase())}const Do=gt({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:Ge,acceptCharset:K,accessKey:K,action:null,allow:null,allowFullScreen:V,allowPaymentRequest:V,allowUserMedia:V,alpha:V,alt:null,as:null,async:V,autoCapitalize:null,autoComplete:K,autoFocus:V,autoPlay:V,blocking:K,capture:null,charSet:null,checked:V,cite:null,className:K,closedBy:null,colorSpace:null,cols:D,colSpan:D,command:null,commandFor:null,content:null,contentEditable:oe,controls:V,controlsList:K,coords:D|Ge,crossOrigin:null,data:null,dateTime:null,decoding:null,default:V,defer:V,dir:null,dirName:null,disabled:V,download:vn,draggable:oe,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:V,formTarget:null,headers:K,height:D,hidden:vn,high:D,href:null,hrefLang:null,htmlFor:K,httpEquiv:K,id:null,imageSizes:null,imageSrcSet:null,inert:V,inputMode:null,integrity:null,is:null,isMap:V,itemId:null,itemProp:K,itemRef:K,itemScope:V,itemType:K,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:V,low:D,manifest:null,max:null,maxLength:D,media:null,method:null,min:null,minLength:D,multiple:V,muted:V,name:null,nonce:null,noModule:V,noValidate:V,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:V,optimum:D,pattern:null,ping:K,placeholder:null,playsInline:V,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:V,referrerPolicy:null,rel:K,required:V,reversed:V,rows:D,rowSpan:D,sandbox:K,scope:null,scoped:V,seamless:V,selected:V,shadowRootClonable:V,shadowRootCustomElementRegistry:V,shadowRootDelegatesFocus:V,shadowRootMode:null,shadowRootSerializable:V,shape:null,size:D,sizes:null,slot:null,span:D,spellCheck:oe,src:null,srcDoc:null,srcLang:null,srcSet:null,start:D,step:null,style:null,tabIndex:D,target:null,title:null,translate:null,type:null,typeMustMatch:V,useMap:null,value:oe,width:D,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:K,axis:null,background:null,bgColor:null,border:D,borderColor:null,bottomMargin:D,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:V,declare:V,event:null,face:null,frame:null,frameBorder:null,hSpace:D,leftMargin:D,link:null,longDesc:null,lowSrc:null,marginHeight:D,marginWidth:D,noResize:V,noHref:V,noShade:V,noWrap:V,object:null,profile:null,prompt:null,rev:null,rightMargin:D,rules:null,scheme:null,scrolling:oe,standby:null,summary:null,text:null,topMargin:D,valueType:null,version:null,vAlign:null,vLink:null,vSpace:D,allowTransparency:null,autoCorrect:null,autoSave:null,credentialless:V,disablePictureInPicture:V,disableRemotePlayback:V,exportParts:Ge,part:K,prefix:null,property:null,results:D,security:null,unselectable:null},space:"html",transform:ni}),Mo=gt({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",maskType:"mask-type",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:we,accentHeight:D,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:D,amplitude:D,arabicForm:null,ascent:D,attributeName:null,attributeType:null,azimuth:D,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:D,by:null,calcMode:null,capHeight:D,className:K,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:D,diffuseConstant:D,direction:null,display:null,dur:null,divisor:D,dominantBaseline:null,download:V,dx:null,dy:null,edgeMode:null,editable:null,elevation:D,enableBackground:null,end:null,event:null,exponent:D,externalResourcesRequired:null,fill:null,fillOpacity:D,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:Ge,g2:Ge,glyphName:Ge,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:D,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:D,horizOriginX:D,horizOriginY:D,id:null,ideographic:D,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:D,k:D,k1:D,k2:D,k3:D,k4:D,kernelMatrix:we,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:D,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskType:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:D,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:D,overlineThickness:D,paintOrder:null,panose1:null,path:null,pathLength:D,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:K,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:D,pointsAtY:D,pointsAtZ:D,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:we,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:we,rev:we,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:we,requiredFeatures:we,requiredFonts:we,requiredFormats:we,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:D,specularExponent:D,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:D,strikethroughThickness:D,string:null,stroke:null,strokeDashArray:we,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:D,strokeOpacity:D,strokeWidth:null,style:null,surfaceScale:D,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:we,tabIndex:D,tableValues:null,target:null,targetX:D,targetY:D,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:we,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:D,underlineThickness:D,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:D,values:null,vAlphabetic:D,vMathematical:D,vectorEffect:null,vHanging:D,vIdeographic:D,version:null,vertAdvY:D,vertOriginX:D,vertOriginY:D,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:D,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:ti}),ri=gt({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform(e,t){return"xlink:"+t.slice(5).toLowerCase()}}),ii=gt({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:ni}),oi=gt({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(e,t){return"xml:"+t.slice(3).toLowerCase()}}),Fo={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"},Lo=/[A-Z]/g,or=/-[a-z]/g,zo=/^data[-\w.:]+$/i;function No(e,t){const n=Cn(t);let r=t,i=xe;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&n.slice(0,4)==="data"&&zo.test(t)){if(t.charAt(4)==="-"){const a=t.slice(5).replace(or,Ro);r="data"+a.charAt(0).toUpperCase()+a.slice(1)}else{const a=t.slice(4);if(!or.test(a)){let o=a.replace(Lo,Po);o.charAt(0)!=="-"&&(o="-"+o),t="data"+o}}i=Rn}return new i(r,t)}function Po(e){return"-"+e.toLowerCase()}function Ro(e){return e.charAt(1).toUpperCase()}const Bo=Zr([ei,Do,ri,ii,oi],"html"),Bn=Zr([ei,Mo,ri,ii,oi],"svg");function _o(e){return e.join(" ").trim()}var ft={},nn,ar;function jo(){if(ar)return nn;ar=1;var e=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,t=/\n/g,n=/^\s*/,r=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,i=/^:\s*/,a=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,o=/^[;\s]*/,l=/^\s+|\s+$/g,c=`
17
+ `,u="/",f="*",p="",d="comment",m="declaration";function b(E,y){if(typeof E!="string")throw new TypeError("First argument must be a string");if(!E)return[];y=y||{};var I=1,T=1;function _(M){var F=M.match(t);F&&(I+=F.length);var q=M.lastIndexOf(c);T=~q?M.length-q:T+M.length}function j(){var M={line:I,column:T};return function(F){return F.position=new w(M),U(),F}}function w(M){this.start=M,this.end={line:I,column:T},this.source=y.source}w.prototype.content=E;function N(M){var F=new Error(y.source+":"+I+":"+T+": "+M);if(F.reason=M,F.filename=y.source,F.line=I,F.column=T,F.source=E,!y.silent)throw F}function H(M){var F=M.exec(E);if(F){var q=F[0];return _(q),E=E.slice(q.length),F}}function U(){H(n)}function S(M){var F;for(M=M||[];F=Z();)F!==!1&&M.push(F);return M}function Z(){var M=j();if(!(u!=E.charAt(0)||f!=E.charAt(1))){for(var F=2;p!=E.charAt(F)&&(f!=E.charAt(F)||u!=E.charAt(F+1));)++F;if(F+=2,p===E.charAt(F-1))return N("End of comment missing");var q=E.slice(2,F-2);return T+=2,_(q),E=E.slice(F),T+=2,M({type:d,comment:q})}}function $(){var M=j(),F=H(r);if(F){if(Z(),!H(i))return N("property missing ':'");var q=H(a),Y=M({type:m,property:A(F[0].replace(e,p)),value:q?A(q[0].replace(e,p)):p});return H(o),Y}}function z(){var M=[];S(M);for(var F;F=$();)F!==!1&&(M.push(F),S(M));return M}return U(),z()}function A(E){return E?E.replace(l,p):p}return nn=b,nn}var lr;function Ho(){if(lr)return ft;lr=1;var e=ft&&ft.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(ft,"__esModule",{value:!0}),ft.default=n;const t=e(jo());function n(r,i){let a=null;if(!r||typeof r!="string")return a;const o=(0,t.default)(r),l=typeof i=="function";return o.forEach(c=>{if(c.type!=="declaration")return;const{property:u,value:f}=c;l?i(u,f,c):f&&(a=a||{},a[u]=f)}),a}return ft}var St={},sr;function Oo(){if(sr)return St;sr=1,Object.defineProperty(St,"__esModule",{value:!0}),St.camelCase=void 0;var e=/^--[a-zA-Z0-9_-]+$/,t=/-([a-z])/g,n=/^[^-]+$/,r=/^-(webkit|moz|ms|o|khtml)-/,i=/^-(ms)-/,a=function(u){return!u||n.test(u)||e.test(u)},o=function(u,f){return f.toUpperCase()},l=function(u,f){return"".concat(f,"-")},c=function(u,f){return f===void 0&&(f={}),a(u)?u:(u=u.toLowerCase(),f.reactCompat?u=u.replace(i,l):u=u.replace(r,l),u.replace(t,o))};return St.camelCase=c,St}var Ct,ur;function Vo(){if(ur)return Ct;ur=1;var e=Ct&&Ct.__importDefault||function(i){return i&&i.__esModule?i:{default:i}},t=e(Ho()),n=Oo();function r(i,a){var o={};return!i||typeof i!="string"||(0,t.default)(i,function(l,c){l&&c&&(o[(0,n.camelCase)(l,a)]=c)}),o}return r.default=r,Ct=r,Ct}var qo=Vo();const Uo=Pn(qo),ai=li("end"),_n=li("start");function li(e){return t;function t(n){const r=n&&n.position&&n.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 Wo(e){const t=_n(e),n=ai(e);if(t&&n)return{start:t,end:n}}function At(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?cr(e.position):"start"in e||"end"in e?cr(e):"line"in e||"column"in e?An(e):""}function An(e){return pr(e&&e.line)+":"+pr(e&&e.column)}function cr(e){return An(e&&e.start)+"-"+An(e&&e.end)}function pr(e){return e&&typeof e=="number"?e:1}class pe extends Error{constructor(t,n,r){super(),typeof n=="string"&&(r=n,n=void 0);let i="",a={},o=!1;if(n&&("line"in n&&"column"in n?a={place:n}:"start"in n&&"end"in n?a={place:n}:"type"in n?a={ancestors:[n],place:n.position}:a={...n}),typeof t=="string"?i=t:!a.cause&&t&&(o=!0,i=t.message,a.cause=t),!a.ruleId&&!a.source&&typeof r=="string"){const c=r.indexOf(":");c===-1?a.ruleId=r:(a.source=r.slice(0,c),a.ruleId=r.slice(c+1))}if(!a.place&&a.ancestors&&a.ancestors){const c=a.ancestors[a.ancestors.length-1];c&&(a.place=c.position)}const l=a.place&&"start"in a.place?a.place.start:a.place;this.ancestors=a.ancestors||void 0,this.cause=a.cause||void 0,this.column=l?l.column:void 0,this.fatal=void 0,this.file="",this.message=i,this.line=l?l.line:void 0,this.name=At(a.place)||"1:1",this.place=a.place||void 0,this.reason=this.message,this.ruleId=a.ruleId||void 0,this.source=a.source||void 0,this.stack=o&&a.cause&&typeof a.cause.stack=="string"?a.cause.stack:"",this.actual=void 0,this.expected=void 0,this.note=void 0,this.url=void 0}}pe.prototype.file="";pe.prototype.name="";pe.prototype.reason="";pe.prototype.message="";pe.prototype.stack="";pe.prototype.column=void 0;pe.prototype.line=void 0;pe.prototype.ancestors=void 0;pe.prototype.cause=void 0;pe.prototype.fatal=void 0;pe.prototype.place=void 0;pe.prototype.ruleId=void 0;pe.prototype.source=void 0;const jn={}.hasOwnProperty,$o=new Map,Go=/[A-Z]/g,Xo=new Set(["table","tbody","thead","tfoot","tr"]),Qo=new Set(["td","th"]),si="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function Yo(e,t){if(!t||t.Fragment===void 0)throw new TypeError("Expected `Fragment` in options");const n=t.filePath||void 0;let r;if(t.development){if(typeof t.jsxDEV!="function")throw new TypeError("Expected `jsxDEV` in options when `development: true`");r=ia(n,t.jsxDEV)}else{if(typeof t.jsx!="function")throw new TypeError("Expected `jsx` in production options");if(typeof t.jsxs!="function")throw new TypeError("Expected `jsxs` in production options");r=ra(n,t.jsx,t.jsxs)}const i={Fragment:t.Fragment,ancestors:[],components:t.components||{},create:r,elementAttributeNameCase:t.elementAttributeNameCase||"react",evaluater:t.createEvaluater?t.createEvaluater():void 0,filePath:n,ignoreInvalidStyle:t.ignoreInvalidStyle||!1,passKeys:t.passKeys!==!1,passNode:t.passNode||!1,schema:t.space==="svg"?Bn:Bo,stylePropertyNameCase:t.stylePropertyNameCase||"dom",tableCellAlignToStyle:t.tableCellAlignToStyle!==!1},a=ui(i,e,void 0);return a&&typeof a!="string"?a:i.create(e,i.Fragment,{children:a||void 0},void 0)}function ui(e,t,n){if(t.type==="element")return Ko(e,t,n);if(t.type==="mdxFlowExpression"||t.type==="mdxTextExpression")return Jo(e,t);if(t.type==="mdxJsxFlowElement"||t.type==="mdxJsxTextElement")return ea(e,t,n);if(t.type==="mdxjsEsm")return Zo(e,t);if(t.type==="root")return ta(e,t,n);if(t.type==="text")return na(e,t)}function Ko(e,t,n){const r=e.schema;let i=r;t.tagName.toLowerCase()==="svg"&&r.space==="html"&&(i=Bn,e.schema=i),e.ancestors.push(t);const a=pi(e,t.tagName,!1),o=oa(e,t);let l=On(e,t);return Xo.has(t.tagName)&&(l=l.filter(function(c){return typeof c=="string"?!Io(c):!0})),ci(e,o,a,t),Hn(o,l),e.ancestors.pop(),e.schema=r,e.create(t,a,o,n)}function Jo(e,t){if(t.data&&t.data.estree&&e.evaluater){const r=t.data.estree.body[0];return g(r.type==="ExpressionStatement"),e.evaluater.evaluateExpression(r.expression)}Dt(e,t.position)}function Zo(e,t){if(t.data&&t.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(t.data.estree);Dt(e,t.position)}function ea(e,t,n){const r=e.schema;let i=r;t.name==="svg"&&r.space==="html"&&(i=Bn,e.schema=i),e.ancestors.push(t);const a=t.name===null?e.Fragment:pi(e,t.name,!0),o=aa(e,t),l=On(e,t);return ci(e,o,a,t),Hn(o,l),e.ancestors.pop(),e.schema=r,e.create(t,a,o,n)}function ta(e,t,n){const r={};return Hn(r,On(e,t)),e.create(t,e.Fragment,r,n)}function na(e,t){return t.value}function ci(e,t,n,r){typeof n!="string"&&n!==e.Fragment&&e.passNode&&(t.node=r)}function Hn(e,t){if(t.length>0){const n=t.length>1?t:t[0];n&&(e.children=n)}}function ra(e,t,n){return r;function r(i,a,o,l){const u=Array.isArray(o.children)?n:t;return l?u(a,o,l):u(a,o)}}function ia(e,t){return n;function n(r,i,a,o){const l=Array.isArray(a.children),c=_n(r);return t(i,a,o,l,{columnNumber:c?c.column-1:void 0,fileName:e,lineNumber:c?c.line:void 0},void 0)}}function oa(e,t){const n={};let r,i;for(i in t.properties)if(i!=="children"&&jn.call(t.properties,i)){const a=la(e,i,t.properties[i]);if(a){const[o,l]=a;e.tableCellAlignToStyle&&o==="align"&&typeof l=="string"&&Qo.has(t.tagName)?r=l:n[o]=l}}if(r){const a=n.style||(n.style={});a[e.stylePropertyNameCase==="css"?"text-align":"textAlign"]=r}return n}function aa(e,t){const n={};for(const r of t.attributes)if(r.type==="mdxJsxExpressionAttribute")if(r.data&&r.data.estree&&e.evaluater){const a=r.data.estree.body[0];g(a.type==="ExpressionStatement");const o=a.expression;g(o.type==="ObjectExpression");const l=o.properties[0];g(l.type==="SpreadElement"),Object.assign(n,e.evaluater.evaluateExpression(l.argument))}else Dt(e,t.position);else{const i=r.name;let a;if(r.value&&typeof r.value=="object")if(r.value.data&&r.value.data.estree&&e.evaluater){const l=r.value.data.estree.body[0];g(l.type==="ExpressionStatement"),a=e.evaluater.evaluateExpression(l.expression)}else Dt(e,t.position);else a=r.value===null?!0:r.value;n[i]=a}return n}function On(e,t){const n=[];let r=-1;const i=e.passKeys?new Map:$o;for(;++r<t.children.length;){const a=t.children[r];let o;if(e.passKeys){const c=a.type==="element"?a.tagName:a.type==="mdxJsxFlowElement"||a.type==="mdxJsxTextElement"?a.name:void 0;if(c){const u=i.get(c)||0;o=c+"-"+u,i.set(c,u+1)}}const l=ui(e,a,o);l!==void 0&&n.push(l)}return n}function la(e,t,n){const r=No(e.schema,t);if(!(n==null||typeof n=="number"&&Number.isNaN(n))){if(Array.isArray(n)&&(n=r.commaSeparated?So(n):_o(n)),r.property==="style"){let i=typeof n=="object"?n:sa(e,String(n));return e.stylePropertyNameCase==="css"&&(i=ua(i)),["style",i]}return[e.elementAttributeNameCase==="react"&&r.space?Fo[r.property]||r.property:r.attribute,n]}}function sa(e,t){try{return Uo(t,{reactCompat:!0})}catch(n){if(e.ignoreInvalidStyle)return{};const r=n,i=new pe("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=si+"#cannot-parse-style-attribute",i}}function pi(e,t,n){let r;if(!n)r={type:"Literal",value:t};else if(t.includes(".")){const i=t.split(".");let a=-1,o;for(;++a<i.length;){const l=nr(i[a])?{type:"Identifier",name:i[a]}:{type:"Literal",value:i[a]};o=o?{type:"MemberExpression",object:o,property:l,computed:!!(a&&l.type==="Literal"),optional:!1}:l}g(o,"always a result"),r=o}else r=nr(t)&&!/^[a-z]/.test(t)?{type:"Identifier",name:t}:{type:"Literal",value:t};if(r.type==="Literal"){const i=r.value;return jn.call(e.components,i)?e.components[i]:i}if(e.evaluater)return e.evaluater.evaluateExpression(r);Dt(e)}function Dt(e,t){const n=new pe("Cannot handle MDX estrees without `createEvaluater`",{ancestors:e.ancestors,place:t,ruleId:"mdx-estree",source:"hast-util-to-jsx-runtime"});throw n.file=e.filePath||void 0,n.url=si+"#cannot-handle-mdx-estrees-without-createevaluater",n}function ua(e){const t={};let n;for(n in e)jn.call(e,n)&&(t[ca(n)]=e[n]);return t}function ca(e){let t=e.replace(Go,pa);return t.slice(0,3)==="ms-"&&(t="-"+t),t}function pa(e){return"-"+e.toLowerCase()}const rn={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"]},fa={};function Vn(e,t){const n=fa,r=typeof n.includeImageAlt=="boolean"?n.includeImageAlt:!0,i=typeof n.includeHtml=="boolean"?n.includeHtml:!0;return fi(e,r,i)}function fi(e,t,n){if(ha(e)){if("value"in e)return e.type==="html"&&!n?"":e.value;if(t&&"alt"in e&&e.alt)return e.alt;if("children"in e)return fr(e.children,t,n)}return Array.isArray(e)?fr(e,t,n):""}function fr(e,t,n){const r=[];let i=-1;for(;++i<e.length;)r[i]=fi(e[i],t,n);return r.join("")}function ha(e){return!!(e&&typeof e=="object")}const hr=document.createElement("i");function qn(e){const t="&"+e+";";hr.innerHTML=t;const n=hr.textContent;return n.charCodeAt(n.length-1)===59&&e!=="semi"||n===t?!1:n}const s={carriageReturn:-5,lineFeed:-4,carriageReturnLineFeed:-3,horizontalTab:-2,virtualSpace:-1,eof:null,nul:0,ht:9,lf:10,vt:11,cr:13,space:32,exclamationMark:33,quotationMark:34,numberSign:35,percentSign:37,ampersand:38,apostrophe:39,leftParenthesis:40,rightParenthesis:41,asterisk:42,plusSign:43,comma:44,dash:45,dot:46,slash:47,digit0:48,digit1:49,digit2:50,digit3:51,digit4:52,digit5:53,digit6:54,digit7:55,digit8:56,digit9:57,colon:58,semicolon:59,lessThan:60,equalsTo:61,greaterThan:62,questionMark:63,atSign:64,uppercaseA:65,uppercaseH:72,uppercaseW:87,uppercaseX:88,leftSquareBracket:91,backslash:92,rightSquareBracket:93,caret:94,underscore:95,graveAccent:96,lowercaseA:97,lowercaseH:104,lowercaseW:119,lowercaseX:120,leftCurlyBrace:123,verticalBar:124,tilde:126,del:127,byteOrderMarker:65279,replacementCharacter:65533},L={attentionSideAfter:2,atxHeadingOpeningFenceSizeMax:6,autolinkDomainSizeMax:63,autolinkSchemeSizeMax:32,cdataOpeningString:"CDATA[",characterGroupPunctuation:2,characterGroupWhitespace:1,characterReferenceDecimalSizeMax:7,characterReferenceHexadecimalSizeMax:6,characterReferenceNamedSizeMax:31,codeFencedSequenceSizeMin:3,contentTypeContent:"content",contentTypeFlow:"flow",contentTypeString:"string",contentTypeText:"text",hardBreakPrefixSizeMin:2,htmlBasic:6,htmlCdata:5,htmlComment:2,htmlComplete:7,htmlDeclaration:4,htmlInstruction:3,htmlRawSizeMax:8,htmlRaw:1,linkResourceDestinationBalanceMax:32,linkReferenceSizeMax:999,listItemValueSizeMax:10,numericBaseDecimal:10,numericBaseHexadecimal:16,tabSize:4,thematicBreakMarkerCountMin:3,v8MaxSafeChunkSize:1e4},h={data:"data",whitespace:"whitespace",lineEnding:"lineEnding",lineEndingBlank:"lineEndingBlank",linePrefix:"linePrefix",lineSuffix:"lineSuffix",atxHeading:"atxHeading",atxHeadingSequence:"atxHeadingSequence",atxHeadingText:"atxHeadingText",autolink:"autolink",autolinkEmail:"autolinkEmail",autolinkMarker:"autolinkMarker",autolinkProtocol:"autolinkProtocol",characterEscape:"characterEscape",characterEscapeValue:"characterEscapeValue",characterReference:"characterReference",characterReferenceMarker:"characterReferenceMarker",characterReferenceMarkerNumeric:"characterReferenceMarkerNumeric",characterReferenceMarkerHexadecimal:"characterReferenceMarkerHexadecimal",characterReferenceValue:"characterReferenceValue",codeFenced:"codeFenced",codeFencedFence:"codeFencedFence",codeFencedFenceSequence:"codeFencedFenceSequence",codeFencedFenceInfo:"codeFencedFenceInfo",codeFencedFenceMeta:"codeFencedFenceMeta",codeFlowValue:"codeFlowValue",codeIndented:"codeIndented",codeText:"codeText",codeTextData:"codeTextData",codeTextPadding:"codeTextPadding",codeTextSequence:"codeTextSequence",content:"content",definition:"definition",definitionDestination:"definitionDestination",definitionDestinationLiteral:"definitionDestinationLiteral",definitionDestinationLiteralMarker:"definitionDestinationLiteralMarker",definitionDestinationRaw:"definitionDestinationRaw",definitionDestinationString:"definitionDestinationString",definitionLabel:"definitionLabel",definitionLabelMarker:"definitionLabelMarker",definitionLabelString:"definitionLabelString",definitionMarker:"definitionMarker",definitionTitle:"definitionTitle",definitionTitleMarker:"definitionTitleMarker",definitionTitleString:"definitionTitleString",emphasis:"emphasis",emphasisSequence:"emphasisSequence",emphasisText:"emphasisText",escapeMarker:"escapeMarker",hardBreakEscape:"hardBreakEscape",hardBreakTrailing:"hardBreakTrailing",htmlFlow:"htmlFlow",htmlFlowData:"htmlFlowData",htmlText:"htmlText",htmlTextData:"htmlTextData",image:"image",label:"label",labelText:"labelText",labelLink:"labelLink",labelImage:"labelImage",labelMarker:"labelMarker",labelImageMarker:"labelImageMarker",labelEnd:"labelEnd",link:"link",paragraph:"paragraph",reference:"reference",referenceMarker:"referenceMarker",referenceString:"referenceString",resource:"resource",resourceDestination:"resourceDestination",resourceDestinationLiteral:"resourceDestinationLiteral",resourceDestinationLiteralMarker:"resourceDestinationLiteralMarker",resourceDestinationRaw:"resourceDestinationRaw",resourceDestinationString:"resourceDestinationString",resourceMarker:"resourceMarker",resourceTitle:"resourceTitle",resourceTitleMarker:"resourceTitleMarker",resourceTitleString:"resourceTitleString",setextHeading:"setextHeading",setextHeadingText:"setextHeadingText",setextHeadingLine:"setextHeadingLine",setextHeadingLineSequence:"setextHeadingLineSequence",strong:"strong",strongSequence:"strongSequence",strongText:"strongText",thematicBreak:"thematicBreak",thematicBreakSequence:"thematicBreakSequence",blockQuote:"blockQuote",blockQuotePrefix:"blockQuotePrefix",blockQuoteMarker:"blockQuoteMarker",blockQuotePrefixWhitespace:"blockQuotePrefixWhitespace",listOrdered:"listOrdered",listUnordered:"listUnordered",listItemIndent:"listItemIndent",listItemMarker:"listItemMarker",listItemPrefix:"listItemPrefix",listItemPrefixWhitespace:"listItemPrefixWhitespace",listItemValue:"listItemValue",chunkContent:"chunkContent",chunkFlow:"chunkFlow",chunkText:"chunkText",chunkString:"chunkString"},Le={ht:" ",lf:`
18
+ `,cr:"\r",space:" ",replacementCharacter:"�"};function Se(e,t,n,r){const i=e.length;let a=0,o;if(t<0?t=-t>i?0:i+t:t=t>i?i:t,n=n>0?n:0,r.length<L.v8MaxSafeChunkSize)o=Array.from(r),o.unshift(t,n),e.splice(...o);else for(n&&e.splice(t,n);a<r.length;)o=r.slice(a,a+L.v8MaxSafeChunkSize),o.unshift(t,0),e.splice(...o),a+=L.v8MaxSafeChunkSize,t+=L.v8MaxSafeChunkSize}function Ee(e,t){return e.length>0?(Se(e,e.length,0,t),e):t}const dr={}.hasOwnProperty;function hi(e){const t={};let n=-1;for(;++n<e.length;)da(t,e[n]);return t}function da(e,t){let n;for(n in t){const i=(dr.call(e,n)?e[n]:void 0)||(e[n]={}),a=t[n];let o;if(a)for(o in a){dr.call(i,o)||(i[o]=[]);const l=a[o];ma(i[o],Array.isArray(l)?l:l?[l]:[])}}}function ma(e,t){let n=-1;const r=[];for(;++n<t.length;)(t[n].add==="after"?e:r).push(t[n]);Se(e,0,0,r)}function di(e,t){const n=Number.parseInt(e,t);return n<s.ht||n===s.vt||n>s.cr&&n<s.space||n>s.tilde&&n<160||n>55295&&n<57344||n>64975&&n<65008||(n&65535)===65535||(n&65535)===65534||n>1114111?Le.replacementCharacter:String.fromCodePoint(n)}function Ie(e){return e.replace(/[\t\n\r ]+/g,Le.space).replace(/^ | $/g,"").toLowerCase().toUpperCase()}const fe=He(/[A-Za-z]/),ce=He(/[\dA-Za-z]/),ga=He(/[#-'*+\--9=?A-Z^-~]/);function Vt(e){return e!==null&&(e<s.space||e===s.del)}const In=He(/\d/),ka=He(/[\dA-Fa-f]/),xa=He(/[!-/:-@[-`{-~]/);function R(e){return e!==null&&e<s.horizontalTab}function J(e){return e!==null&&(e<s.nul||e===s.space)}function W(e){return e===s.horizontalTab||e===s.virtualSpace||e===s.space}const Gt=He(/\p{P}|\p{S}/u),Xe=He(/\s/);function He(e){return t;function t(n){return n!==null&&n>-1&&e.test(String.fromCharCode(n))}}function kt(e){const t=[];let n=-1,r=0,i=0;for(;++n<e.length;){const a=e.charCodeAt(n);let o="";if(a===s.percentSign&&ce(e.charCodeAt(n+1))&&ce(e.charCodeAt(n+2)))i=2;else if(a<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(a))||(o=String.fromCharCode(a));else if(a>55295&&a<57344){const l=e.charCodeAt(n+1);a<56320&&l>56319&&l<57344?(o=String.fromCharCode(a,l),i=1):o=Le.replacementCharacter}else o=String.fromCharCode(a);o&&(t.push(e.slice(r,n),encodeURIComponent(o)),r=n+i+1,o=""),i&&(n+=i,i=0)}return t.join("")+e.slice(r)}function X(e,t,n,r){const i=r?r-1:Number.POSITIVE_INFINITY;let a=0;return o;function o(c){return W(c)?(e.enter(n),l(c)):t(c)}function l(c){return W(c)&&a++<i?(e.consume(c),l):(e.exit(n),t(c))}}const ba={tokenize:ya};function ya(e){const t=e.attempt(this.parser.constructs.contentInitial,r,i);let n;return t;function r(l){if(g(l===s.eof||R(l),"expected eol or eof"),l===s.eof){e.consume(l);return}return e.enter(h.lineEnding),e.consume(l),e.exit(h.lineEnding),X(e,t,h.linePrefix)}function i(l){return g(l!==s.eof&&!R(l),"expected anything other than a line ending or EOF"),e.enter(h.paragraph),a(l)}function a(l){const c=e.enter(h.chunkText,{contentType:L.contentTypeText,previous:n});return n&&(n.next=c),n=c,o(l)}function o(l){if(l===s.eof){e.exit(h.chunkText),e.exit(h.paragraph),e.consume(l);return}return R(l)?(e.consume(l),e.exit(h.chunkText),a):(e.consume(l),o)}}const wa={tokenize:Sa},mr={tokenize:Ca};function Sa(e){const t=this,n=[];let r=0,i,a,o;return l;function l(T){if(r<n.length){const _=n[r];return t.containerState=_[1],g(_[0].continuation,"expected `continuation` to be defined on container construct"),e.attempt(_[0].continuation,c,u)(T)}return u(T)}function c(T){if(g(t.containerState,"expected `containerState` to be defined after continuation"),r++,t.containerState._closeFlow){t.containerState._closeFlow=void 0,i&&I();const _=t.events.length;let j=_,w;for(;j--;)if(t.events[j][0]==="exit"&&t.events[j][1].type===h.chunkFlow){w=t.events[j][1].end;break}g(w,"could not find previous flow chunk"),y(r);let N=_;for(;N<t.events.length;)t.events[N][1].end={...w},N++;return Se(t.events,j+1,0,t.events.slice(_)),t.events.length=N,u(T)}return l(T)}function u(T){if(r===n.length){if(!i)return d(T);if(i.currentConstruct&&i.currentConstruct.concrete)return b(T);t.interrupt=!!(i.currentConstruct&&!i._gfmTableDynamicInterruptHack)}return t.containerState={},e.check(mr,f,p)(T)}function f(T){return i&&I(),y(r),d(T)}function p(T){return t.parser.lazy[t.now().line]=r!==n.length,o=t.now().offset,b(T)}function d(T){return t.containerState={},e.attempt(mr,m,b)(T)}function m(T){return g(t.currentConstruct,"expected `currentConstruct` to be defined on tokenizer"),g(t.containerState,"expected `containerState` to be defined on tokenizer"),r++,n.push([t.currentConstruct,t.containerState]),d(T)}function b(T){if(T===s.eof){i&&I(),y(0),e.consume(T);return}return i=i||t.parser.flow(t.now()),e.enter(h.chunkFlow,{_tokenizer:i,contentType:L.contentTypeFlow,previous:a}),A(T)}function A(T){if(T===s.eof){E(e.exit(h.chunkFlow),!0),y(0),e.consume(T);return}return R(T)?(e.consume(T),E(e.exit(h.chunkFlow)),r=0,t.interrupt=void 0,l):(e.consume(T),A)}function E(T,_){g(i,"expected `childFlow` to be defined when continuing");const j=t.sliceStream(T);if(_&&j.push(null),T.previous=a,a&&(a.next=T),a=T,i.defineSkip(T.start),i.write(j),t.parser.lazy[T.start.line]){let w=i.events.length;for(;w--;)if(i.events[w][1].start.offset<o&&(!i.events[w][1].end||i.events[w][1].end.offset>o))return;const N=t.events.length;let H=N,U,S;for(;H--;)if(t.events[H][0]==="exit"&&t.events[H][1].type===h.chunkFlow){if(U){S=t.events[H][1].end;break}U=!0}for(g(S,"could not find previous flow chunk"),y(r),w=N;w<t.events.length;)t.events[w][1].end={...S},w++;Se(t.events,H+1,0,t.events.slice(N)),t.events.length=w}}function y(T){let _=n.length;for(;_-- >T;){const j=n[_];t.containerState=j[1],g(j[0].exit,"expected `exit` to be defined on container construct"),j[0].exit.call(t,e)}n.length=T}function I(){g(t.containerState,"expected `containerState` to be defined when closing flow"),g(i,"expected `childFlow` to be defined when closing it"),i.write([s.eof]),a=void 0,i=void 0,t.containerState._closeFlow=void 0}}function Ca(e,t,n){return g(this.parser.constructs.disable.null,"expected `disable.null` to be populated"),X(e,e.attempt(this.parser.constructs.document,t,n),h.linePrefix,this.parser.constructs.disable.null.includes("codeIndented")?void 0:L.tabSize)}function mt(e){if(e===s.eof||J(e)||Xe(e))return L.characterGroupWhitespace;if(Gt(e))return L.characterGroupPunctuation}function Xt(e,t,n){const r=[];let i=-1;for(;++i<e.length;){const a=e[i].resolveAll;a&&!r.includes(a)&&(t=a(t,n),r.push(a))}return t}const Tn={name:"attention",resolveAll:va,tokenize:Ea};function va(e,t){let n=-1,r,i,a,o,l,c,u,f;for(;++n<e.length;)if(e[n][0]==="enter"&&e[n][1].type==="attentionSequence"&&e[n][1]._close){for(r=n;r--;)if(e[r][0]==="exit"&&e[r][1].type==="attentionSequence"&&e[r][1]._open&&t.sliceSerialize(e[r][1]).charCodeAt(0)===t.sliceSerialize(e[n][1]).charCodeAt(0)){if((e[r][1]._close||e[n][1]._open)&&(e[n][1].end.offset-e[n][1].start.offset)%3&&!((e[r][1].end.offset-e[r][1].start.offset+e[n][1].end.offset-e[n][1].start.offset)%3))continue;c=e[r][1].end.offset-e[r][1].start.offset>1&&e[n][1].end.offset-e[n][1].start.offset>1?2:1;const p={...e[r][1].end},d={...e[n][1].start};gr(p,-c),gr(d,c),o={type:c>1?h.strongSequence:h.emphasisSequence,start:p,end:{...e[r][1].end}},l={type:c>1?h.strongSequence:h.emphasisSequence,start:{...e[n][1].start},end:d},a={type:c>1?h.strongText:h.emphasisText,start:{...e[r][1].end},end:{...e[n][1].start}},i={type:c>1?h.strong:h.emphasis,start:{...o.start},end:{...l.end}},e[r][1].end={...o.start},e[n][1].start={...l.end},u=[],e[r][1].end.offset-e[r][1].start.offset&&(u=Ee(u,[["enter",e[r][1],t],["exit",e[r][1],t]])),u=Ee(u,[["enter",i,t],["enter",o,t],["exit",o,t],["enter",a,t]]),g(t.parser.constructs.insideSpan.null,"expected `insideSpan` to be populated"),u=Ee(u,Xt(t.parser.constructs.insideSpan.null,e.slice(r+1,n),t)),u=Ee(u,[["exit",a,t],["enter",l,t],["exit",l,t],["exit",i,t]]),e[n][1].end.offset-e[n][1].start.offset?(f=2,u=Ee(u,[["enter",e[n][1],t],["exit",e[n][1],t]])):f=0,Se(e,r-1,n-r+3,u),n=r+u.length-f-2;break}}for(n=-1;++n<e.length;)e[n][1].type==="attentionSequence"&&(e[n][1].type="data");return e}function Ea(e,t){const n=this.parser.constructs.attentionMarkers.null,r=this.previous,i=mt(r);let a;return o;function o(c){return g(c===s.asterisk||c===s.underscore,"expected asterisk or underscore"),a=c,e.enter("attentionSequence"),l(c)}function l(c){if(c===a)return e.consume(c),l;const u=e.exit("attentionSequence"),f=mt(c);g(n,"expected `attentionMarkers` to be populated");const p=!f||f===L.characterGroupPunctuation&&i||n.includes(c),d=!i||i===L.characterGroupPunctuation&&f||n.includes(r);return u._open=!!(a===s.asterisk?p:p&&(i||!d)),u._close=!!(a===s.asterisk?d:d&&(f||!p)),t(c)}}function gr(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}const Aa={name:"autolink",tokenize:Ia};function Ia(e,t,n){let r=0;return i;function i(m){return g(m===s.lessThan,"expected `<`"),e.enter(h.autolink),e.enter(h.autolinkMarker),e.consume(m),e.exit(h.autolinkMarker),e.enter(h.autolinkProtocol),a}function a(m){return fe(m)?(e.consume(m),o):m===s.atSign?n(m):u(m)}function o(m){return m===s.plusSign||m===s.dash||m===s.dot||ce(m)?(r=1,l(m)):u(m)}function l(m){return m===s.colon?(e.consume(m),r=0,c):(m===s.plusSign||m===s.dash||m===s.dot||ce(m))&&r++<L.autolinkSchemeSizeMax?(e.consume(m),l):(r=0,u(m))}function c(m){return m===s.greaterThan?(e.exit(h.autolinkProtocol),e.enter(h.autolinkMarker),e.consume(m),e.exit(h.autolinkMarker),e.exit(h.autolink),t):m===s.eof||m===s.space||m===s.lessThan||Vt(m)?n(m):(e.consume(m),c)}function u(m){return m===s.atSign?(e.consume(m),f):ga(m)?(e.consume(m),u):n(m)}function f(m){return ce(m)?p(m):n(m)}function p(m){return m===s.dot?(e.consume(m),r=0,f):m===s.greaterThan?(e.exit(h.autolinkProtocol).type=h.autolinkEmail,e.enter(h.autolinkMarker),e.consume(m),e.exit(h.autolinkMarker),e.exit(h.autolink),t):d(m)}function d(m){if((m===s.dash||ce(m))&&r++<L.autolinkDomainSizeMax){const b=m===s.dash?d:p;return e.consume(m),b}return n(m)}}const Lt={partial:!0,tokenize:Ta};function Ta(e,t,n){return r;function r(a){return W(a)?X(e,i,h.linePrefix)(a):i(a)}function i(a){return a===s.eof||R(a)?t(a):n(a)}}const mi={continuation:{tokenize:Ma},exit:Fa,name:"blockQuote",tokenize:Da};function Da(e,t,n){const r=this;return i;function i(o){if(o===s.greaterThan){const l=r.containerState;return g(l,"expected `containerState` to be defined in container"),l.open||(e.enter(h.blockQuote,{_container:!0}),l.open=!0),e.enter(h.blockQuotePrefix),e.enter(h.blockQuoteMarker),e.consume(o),e.exit(h.blockQuoteMarker),a}return n(o)}function a(o){return W(o)?(e.enter(h.blockQuotePrefixWhitespace),e.consume(o),e.exit(h.blockQuotePrefixWhitespace),e.exit(h.blockQuotePrefix),t):(e.exit(h.blockQuotePrefix),t(o))}}function Ma(e,t,n){const r=this;return i;function i(o){return W(o)?(g(r.parser.constructs.disable.null,"expected `disable.null` to be populated"),X(e,a,h.linePrefix,r.parser.constructs.disable.null.includes("codeIndented")?void 0:L.tabSize)(o)):a(o)}function a(o){return e.attempt(mi,t,n)(o)}}function Fa(e){e.exit(h.blockQuote)}const gi={name:"characterEscape",tokenize:La};function La(e,t,n){return r;function r(a){return g(a===s.backslash,"expected `\\`"),e.enter(h.characterEscape),e.enter(h.escapeMarker),e.consume(a),e.exit(h.escapeMarker),i}function i(a){return xa(a)?(e.enter(h.characterEscapeValue),e.consume(a),e.exit(h.characterEscapeValue),e.exit(h.characterEscape),t):n(a)}}const ki={name:"characterReference",tokenize:za};function za(e,t,n){const r=this;let i=0,a,o;return l;function l(p){return g(p===s.ampersand,"expected `&`"),e.enter(h.characterReference),e.enter(h.characterReferenceMarker),e.consume(p),e.exit(h.characterReferenceMarker),c}function c(p){return p===s.numberSign?(e.enter(h.characterReferenceMarkerNumeric),e.consume(p),e.exit(h.characterReferenceMarkerNumeric),u):(e.enter(h.characterReferenceValue),a=L.characterReferenceNamedSizeMax,o=ce,f(p))}function u(p){return p===s.uppercaseX||p===s.lowercaseX?(e.enter(h.characterReferenceMarkerHexadecimal),e.consume(p),e.exit(h.characterReferenceMarkerHexadecimal),e.enter(h.characterReferenceValue),a=L.characterReferenceHexadecimalSizeMax,o=ka,f):(e.enter(h.characterReferenceValue),a=L.characterReferenceDecimalSizeMax,o=In,f(p))}function f(p){if(p===s.semicolon&&i){const d=e.exit(h.characterReferenceValue);return o===ce&&!qn(r.sliceSerialize(d))?n(p):(e.enter(h.characterReferenceMarker),e.consume(p),e.exit(h.characterReferenceMarker),e.exit(h.characterReference),t)}return o(p)&&i++<a?(e.consume(p),f):n(p)}}const kr={partial:!0,tokenize:Pa},xr={concrete:!0,name:"codeFenced",tokenize:Na};function Na(e,t,n){const r=this,i={partial:!0,tokenize:j};let a=0,o=0,l;return c;function c(w){return u(w)}function u(w){g(w===s.graveAccent||w===s.tilde,"expected `` ` `` or `~`");const N=r.events[r.events.length-1];return a=N&&N[1].type===h.linePrefix?N[2].sliceSerialize(N[1],!0).length:0,l=w,e.enter(h.codeFenced),e.enter(h.codeFencedFence),e.enter(h.codeFencedFenceSequence),f(w)}function f(w){return w===l?(o++,e.consume(w),f):o<L.codeFencedSequenceSizeMin?n(w):(e.exit(h.codeFencedFenceSequence),W(w)?X(e,p,h.whitespace)(w):p(w))}function p(w){return w===s.eof||R(w)?(e.exit(h.codeFencedFence),r.interrupt?t(w):e.check(kr,A,_)(w)):(e.enter(h.codeFencedFenceInfo),e.enter(h.chunkString,{contentType:L.contentTypeString}),d(w))}function d(w){return w===s.eof||R(w)?(e.exit(h.chunkString),e.exit(h.codeFencedFenceInfo),p(w)):W(w)?(e.exit(h.chunkString),e.exit(h.codeFencedFenceInfo),X(e,m,h.whitespace)(w)):w===s.graveAccent&&w===l?n(w):(e.consume(w),d)}function m(w){return w===s.eof||R(w)?p(w):(e.enter(h.codeFencedFenceMeta),e.enter(h.chunkString,{contentType:L.contentTypeString}),b(w))}function b(w){return w===s.eof||R(w)?(e.exit(h.chunkString),e.exit(h.codeFencedFenceMeta),p(w)):w===s.graveAccent&&w===l?n(w):(e.consume(w),b)}function A(w){return g(R(w),"expected eol"),e.attempt(i,_,E)(w)}function E(w){return g(R(w),"expected eol"),e.enter(h.lineEnding),e.consume(w),e.exit(h.lineEnding),y}function y(w){return a>0&&W(w)?X(e,I,h.linePrefix,a+1)(w):I(w)}function I(w){return w===s.eof||R(w)?e.check(kr,A,_)(w):(e.enter(h.codeFlowValue),T(w))}function T(w){return w===s.eof||R(w)?(e.exit(h.codeFlowValue),I(w)):(e.consume(w),T)}function _(w){return e.exit(h.codeFenced),t(w)}function j(w,N,H){let U=0;return S;function S(F){return g(R(F),"expected eol"),w.enter(h.lineEnding),w.consume(F),w.exit(h.lineEnding),Z}function Z(F){return g(r.parser.constructs.disable.null,"expected `disable.null` to be populated"),w.enter(h.codeFencedFence),W(F)?X(w,$,h.linePrefix,r.parser.constructs.disable.null.includes("codeIndented")?void 0:L.tabSize)(F):$(F)}function $(F){return F===l?(w.enter(h.codeFencedFenceSequence),z(F)):H(F)}function z(F){return F===l?(U++,w.consume(F),z):U>=o?(w.exit(h.codeFencedFenceSequence),W(F)?X(w,M,h.whitespace)(F):M(F)):H(F)}function M(F){return F===s.eof||R(F)?(w.exit(h.codeFencedFence),N(F)):H(F)}}}function Pa(e,t,n){const r=this;return i;function i(o){return o===s.eof?n(o):(g(R(o),"expected eol"),e.enter(h.lineEnding),e.consume(o),e.exit(h.lineEnding),a)}function a(o){return r.parser.lazy[r.now().line]?n(o):t(o)}}const on={name:"codeIndented",tokenize:Ba},Ra={partial:!0,tokenize:_a};function Ba(e,t,n){const r=this;return i;function i(u){return g(W(u)),e.enter(h.codeIndented),X(e,a,h.linePrefix,L.tabSize+1)(u)}function a(u){const f=r.events[r.events.length-1];return f&&f[1].type===h.linePrefix&&f[2].sliceSerialize(f[1],!0).length>=L.tabSize?o(u):n(u)}function o(u){return u===s.eof?c(u):R(u)?e.attempt(Ra,o,c)(u):(e.enter(h.codeFlowValue),l(u))}function l(u){return u===s.eof||R(u)?(e.exit(h.codeFlowValue),o(u)):(e.consume(u),l)}function c(u){return e.exit(h.codeIndented),t(u)}}function _a(e,t,n){const r=this;return i;function i(o){return r.parser.lazy[r.now().line]?n(o):R(o)?(e.enter(h.lineEnding),e.consume(o),e.exit(h.lineEnding),i):X(e,a,h.linePrefix,L.tabSize+1)(o)}function a(o){const l=r.events[r.events.length-1];return l&&l[1].type===h.linePrefix&&l[2].sliceSerialize(l[1],!0).length>=L.tabSize?t(o):R(o)?i(o):n(o)}}const ja={name:"codeText",previous:xi,resolve:Ha,tokenize:Oa};function Ha(e){let t=e.length-4,n=3,r,i;if((e[n][1].type===h.lineEnding||e[n][1].type==="space")&&(e[t][1].type===h.lineEnding||e[t][1].type==="space")){for(r=n;++r<t;)if(e[r][1].type===h.codeTextData){e[n][1].type=h.codeTextPadding,e[t][1].type=h.codeTextPadding,n+=2,t-=2;break}}for(r=n-1,t++;++r<=t;)i===void 0?r!==t&&e[r][1].type!==h.lineEnding&&(i=r):(r===t||e[r][1].type===h.lineEnding)&&(e[i][1].type=h.codeTextData,r!==i+2&&(e[i][1].end=e[r-1][1].end,e.splice(i+2,r-i-2),t-=r-i-2,r=i+2),i=void 0);return e}function xi(e){return e!==s.graveAccent||this.events[this.events.length-1][1].type===h.characterEscape}function Oa(e,t,n){const r=this;let i=0,a,o;return l;function l(d){return g(d===s.graveAccent,"expected `` ` ``"),g(xi.call(r,r.previous),"expected correct previous"),e.enter(h.codeText),e.enter(h.codeTextSequence),c(d)}function c(d){return d===s.graveAccent?(e.consume(d),i++,c):(e.exit(h.codeTextSequence),u(d))}function u(d){return d===s.eof?n(d):d===s.space?(e.enter("space"),e.consume(d),e.exit("space"),u):d===s.graveAccent?(o=e.enter(h.codeTextSequence),a=0,p(d)):R(d)?(e.enter(h.lineEnding),e.consume(d),e.exit(h.lineEnding),u):(e.enter(h.codeTextData),f(d))}function f(d){return d===s.eof||d===s.space||d===s.graveAccent||R(d)?(e.exit(h.codeTextData),u(d)):(e.consume(d),f)}function p(d){return d===s.graveAccent?(e.consume(d),a++,p):a===i?(e.exit(h.codeTextSequence),e.exit(h.codeText),t(d)):(o.type=h.codeTextData,f(d))}}class Va{constructor(t){this.left=t?[...t]:[],this.right=[]}get(t){if(t<0||t>=this.left.length+this.right.length)throw new RangeError("Cannot access index `"+t+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return t<this.left.length?this.left[t]:this.right[this.right.length-t+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(t,n){const r=n??Number.POSITIVE_INFINITY;return r<this.left.length?this.left.slice(t,r):t>this.left.length?this.right.slice(this.right.length-r+this.left.length,this.right.length-t+this.left.length).reverse():this.left.slice(t).concat(this.right.slice(this.right.length-r+this.left.length).reverse())}splice(t,n,r){const i=n||0;this.setCursor(Math.trunc(t));const a=this.right.splice(this.right.length-i,Number.POSITIVE_INFINITY);return r&&vt(this.left,r),a.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(t){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(t)}pushMany(t){this.setCursor(Number.POSITIVE_INFINITY),vt(this.left,t)}unshift(t){this.setCursor(0),this.right.push(t)}unshiftMany(t){this.setCursor(0),vt(this.right,t.reverse())}setCursor(t){if(!(t===this.left.length||t>this.left.length&&this.right.length===0||t<0&&this.left.length===0))if(t<this.left.length){const n=this.left.splice(t,Number.POSITIVE_INFINITY);vt(this.right,n.reverse())}else{const n=this.right.splice(this.left.length+this.right.length-t,Number.POSITIVE_INFINITY);vt(this.left,n.reverse())}}}function vt(e,t){let n=0;if(t.length<L.v8MaxSafeChunkSize)e.push(...t);else for(;n<t.length;)e.push(...t.slice(n,n+L.v8MaxSafeChunkSize)),n+=L.v8MaxSafeChunkSize}function bi(e){const t={};let n=-1,r,i,a,o,l,c,u;const f=new Va(e);for(;++n<f.length;){for(;n in t;)n=t[n];if(r=f.get(n),n&&r[1].type===h.chunkFlow&&f.get(n-1)[1].type===h.listItemPrefix&&(g(r[1]._tokenizer,"expected `_tokenizer` on subtokens"),c=r[1]._tokenizer.events,a=0,a<c.length&&c[a][1].type===h.lineEndingBlank&&(a+=2),a<c.length&&c[a][1].type===h.content))for(;++a<c.length&&c[a][1].type!==h.content;)c[a][1].type===h.chunkText&&(c[a][1]._isInFirstContentOfListItem=!0,a++);if(r[0]==="enter")r[1].contentType&&(Object.assign(t,qa(f,n)),n=t[n],u=!0);else if(r[1]._container){for(a=n,i=void 0;a--;)if(o=f.get(a),o[1].type===h.lineEnding||o[1].type===h.lineEndingBlank)o[0]==="enter"&&(i&&(f.get(i)[1].type=h.lineEndingBlank),o[1].type=h.lineEnding,i=a);else if(!(o[1].type===h.linePrefix||o[1].type===h.listItemIndent))break;i&&(r[1].end={...f.get(i)[1].start},l=f.slice(i,n),l.unshift(r),f.splice(i,n-i+1,l))}}return Se(e,0,Number.POSITIVE_INFINITY,f.slice(0)),!u}function qa(e,t){const n=e.get(t)[1],r=e.get(t)[2];let i=t-1;const a=[];g(n.contentType,"expected `contentType` on subtokens");let o=n._tokenizer;o||(o=r.parser[n.contentType](n.start),n._contentTypeTextTrailing&&(o._contentTypeTextTrailing=!0));const l=o.events,c=[],u={};let f,p,d=-1,m=n,b=0,A=0;const E=[A];for(;m;){for(;e.get(++i)[1]!==m;);g(!p||m.previous===p,"expected previous to match"),g(!p||p.next===m,"expected next to match"),a.push(i),m._tokenizer||(f=r.sliceStream(m),m.next||f.push(s.eof),p&&o.defineSkip(m.start),m._isInFirstContentOfListItem&&(o._gfmTasklistFirstContentOfListItem=!0),o.write(f),m._isInFirstContentOfListItem&&(o._gfmTasklistFirstContentOfListItem=void 0)),p=m,m=m.next}for(m=n;++d<l.length;)l[d][0]==="exit"&&l[d-1][0]==="enter"&&l[d][1].type===l[d-1][1].type&&l[d][1].start.line!==l[d][1].end.line&&(g(m,"expected a current token"),A=d+1,E.push(A),m._tokenizer=void 0,m.previous=void 0,m=m.next);for(o.events=[],m?(m._tokenizer=void 0,m.previous=void 0,g(!m.next,"expected no next token")):E.pop(),d=E.length;d--;){const y=l.slice(E[d],E[d+1]),I=a.pop();g(I!==void 0,"expected a start position when splicing"),c.push([I,I+y.length-1]),e.splice(I,2,y)}for(c.reverse(),d=-1;++d<c.length;)u[b+c[d][0]]=b+c[d][1],b+=c[d][1]-c[d][0]-1;return u}const Ua={resolve:$a,tokenize:Ga},Wa={partial:!0,tokenize:Xa};function $a(e){return bi(e),e}function Ga(e,t){let n;return r;function r(l){return g(l!==s.eof&&!R(l),"expected no eof or eol"),e.enter(h.content),n=e.enter(h.chunkContent,{contentType:L.contentTypeContent}),i(l)}function i(l){return l===s.eof?a(l):R(l)?e.check(Wa,o,a)(l):(e.consume(l),i)}function a(l){return e.exit(h.chunkContent),e.exit(h.content),t(l)}function o(l){return g(R(l),"expected eol"),e.consume(l),e.exit(h.chunkContent),g(n,"expected previous token"),n.next=e.enter(h.chunkContent,{contentType:L.contentTypeContent,previous:n}),n=n.next,i}}function Xa(e,t,n){const r=this;return i;function i(o){return g(R(o),"expected a line ending"),e.exit(h.chunkContent),e.enter(h.lineEnding),e.consume(o),e.exit(h.lineEnding),X(e,a,h.linePrefix)}function a(o){if(o===s.eof||R(o))return n(o);g(r.parser.constructs.disable.null,"expected `disable.null` to be populated");const l=r.events[r.events.length-1];return!r.parser.constructs.disable.null.includes("codeIndented")&&l&&l[1].type===h.linePrefix&&l[2].sliceSerialize(l[1],!0).length>=L.tabSize?t(o):e.interrupt(r.parser.constructs.flow,n,t)(o)}}function yi(e,t,n,r,i,a,o,l,c){const u=c||Number.POSITIVE_INFINITY;let f=0;return p;function p(y){return y===s.lessThan?(e.enter(r),e.enter(i),e.enter(a),e.consume(y),e.exit(a),d):y===s.eof||y===s.space||y===s.rightParenthesis||Vt(y)?n(y):(e.enter(r),e.enter(o),e.enter(l),e.enter(h.chunkString,{contentType:L.contentTypeString}),A(y))}function d(y){return y===s.greaterThan?(e.enter(a),e.consume(y),e.exit(a),e.exit(i),e.exit(r),t):(e.enter(l),e.enter(h.chunkString,{contentType:L.contentTypeString}),m(y))}function m(y){return y===s.greaterThan?(e.exit(h.chunkString),e.exit(l),d(y)):y===s.eof||y===s.lessThan||R(y)?n(y):(e.consume(y),y===s.backslash?b:m)}function b(y){return y===s.lessThan||y===s.greaterThan||y===s.backslash?(e.consume(y),m):m(y)}function A(y){return!f&&(y===s.eof||y===s.rightParenthesis||J(y))?(e.exit(h.chunkString),e.exit(l),e.exit(o),e.exit(r),t(y)):f<u&&y===s.leftParenthesis?(e.consume(y),f++,A):y===s.rightParenthesis?(e.consume(y),f--,A):y===s.eof||y===s.space||y===s.leftParenthesis||Vt(y)?n(y):(e.consume(y),y===s.backslash?E:A)}function E(y){return y===s.leftParenthesis||y===s.rightParenthesis||y===s.backslash?(e.consume(y),A):A(y)}}function wi(e,t,n,r,i,a){const o=this;let l=0,c;return u;function u(m){return g(m===s.leftSquareBracket,"expected `[`"),e.enter(r),e.enter(i),e.consume(m),e.exit(i),e.enter(a),f}function f(m){return l>L.linkReferenceSizeMax||m===s.eof||m===s.leftSquareBracket||m===s.rightSquareBracket&&!c||m===s.caret&&!l&&"_hiddenFootnoteSupport"in o.parser.constructs?n(m):m===s.rightSquareBracket?(e.exit(a),e.enter(i),e.consume(m),e.exit(i),e.exit(r),t):R(m)?(e.enter(h.lineEnding),e.consume(m),e.exit(h.lineEnding),f):(e.enter(h.chunkString,{contentType:L.contentTypeString}),p(m))}function p(m){return m===s.eof||m===s.leftSquareBracket||m===s.rightSquareBracket||R(m)||l++>L.linkReferenceSizeMax?(e.exit(h.chunkString),f(m)):(e.consume(m),c||(c=!W(m)),m===s.backslash?d:p)}function d(m){return m===s.leftSquareBracket||m===s.backslash||m===s.rightSquareBracket?(e.consume(m),l++,p):p(m)}}function Si(e,t,n,r,i,a){let o;return l;function l(d){return d===s.quotationMark||d===s.apostrophe||d===s.leftParenthesis?(e.enter(r),e.enter(i),e.consume(d),e.exit(i),o=d===s.leftParenthesis?s.rightParenthesis:d,c):n(d)}function c(d){return d===o?(e.enter(i),e.consume(d),e.exit(i),e.exit(r),t):(e.enter(a),u(d))}function u(d){return d===o?(e.exit(a),c(o)):d===s.eof?n(d):R(d)?(e.enter(h.lineEnding),e.consume(d),e.exit(h.lineEnding),X(e,u,h.linePrefix)):(e.enter(h.chunkString,{contentType:L.contentTypeString}),f(d))}function f(d){return d===o||d===s.eof||R(d)?(e.exit(h.chunkString),u(d)):(e.consume(d),d===s.backslash?p:f)}function p(d){return d===o||d===s.backslash?(e.consume(d),f):f(d)}}function It(e,t){let n;return r;function r(i){return R(i)?(e.enter(h.lineEnding),e.consume(i),e.exit(h.lineEnding),n=!0,r):W(i)?X(e,r,n?h.linePrefix:h.lineSuffix)(i):t(i)}}const Qa={name:"definition",tokenize:Ka},Ya={partial:!0,tokenize:Ja};function Ka(e,t,n){const r=this;let i;return a;function a(m){return e.enter(h.definition),o(m)}function o(m){return g(m===s.leftSquareBracket,"expected `[`"),wi.call(r,e,l,n,h.definitionLabel,h.definitionLabelMarker,h.definitionLabelString)(m)}function l(m){return i=Ie(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)),m===s.colon?(e.enter(h.definitionMarker),e.consume(m),e.exit(h.definitionMarker),c):n(m)}function c(m){return J(m)?It(e,u)(m):u(m)}function u(m){return yi(e,f,n,h.definitionDestination,h.definitionDestinationLiteral,h.definitionDestinationLiteralMarker,h.definitionDestinationRaw,h.definitionDestinationString)(m)}function f(m){return e.attempt(Ya,p,p)(m)}function p(m){return W(m)?X(e,d,h.whitespace)(m):d(m)}function d(m){return m===s.eof||R(m)?(e.exit(h.definition),r.parser.defined.push(i),t(m)):n(m)}}function Ja(e,t,n){return r;function r(l){return J(l)?It(e,i)(l):n(l)}function i(l){return Si(e,a,n,h.definitionTitle,h.definitionTitleMarker,h.definitionTitleString)(l)}function a(l){return W(l)?X(e,o,h.whitespace)(l):o(l)}function o(l){return l===s.eof||R(l)?t(l):n(l)}}const Za={name:"hardBreakEscape",tokenize:el};function el(e,t,n){return r;function r(a){return g(a===s.backslash,"expected `\\`"),e.enter(h.hardBreakEscape),e.consume(a),i}function i(a){return R(a)?(e.exit(h.hardBreakEscape),t(a)):n(a)}}const tl={name:"headingAtx",resolve:nl,tokenize:rl};function nl(e,t){let n=e.length-2,r=3,i,a;return e[r][1].type===h.whitespace&&(r+=2),n-2>r&&e[n][1].type===h.whitespace&&(n-=2),e[n][1].type===h.atxHeadingSequence&&(r===n-1||n-4>r&&e[n-2][1].type===h.whitespace)&&(n-=r+1===n?2:4),n>r&&(i={type:h.atxHeadingText,start:e[r][1].start,end:e[n][1].end},a={type:h.chunkText,start:e[r][1].start,end:e[n][1].end,contentType:L.contentTypeText},Se(e,r,n-r+1,[["enter",i,t],["enter",a,t],["exit",a,t],["exit",i,t]])),e}function rl(e,t,n){let r=0;return i;function i(f){return e.enter(h.atxHeading),a(f)}function a(f){return g(f===s.numberSign,"expected `#`"),e.enter(h.atxHeadingSequence),o(f)}function o(f){return f===s.numberSign&&r++<L.atxHeadingOpeningFenceSizeMax?(e.consume(f),o):f===s.eof||J(f)?(e.exit(h.atxHeadingSequence),l(f)):n(f)}function l(f){return f===s.numberSign?(e.enter(h.atxHeadingSequence),c(f)):f===s.eof||R(f)?(e.exit(h.atxHeading),t(f)):W(f)?X(e,l,h.whitespace)(f):(e.enter(h.atxHeadingText),u(f))}function c(f){return f===s.numberSign?(e.consume(f),c):(e.exit(h.atxHeadingSequence),l(f))}function u(f){return f===s.eof||f===s.numberSign||J(f)?(e.exit(h.atxHeadingText),l(f)):(e.consume(f),u)}}const il=["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"],br=["pre","script","style","textarea"],ol={concrete:!0,name:"htmlFlow",resolveTo:sl,tokenize:ul},al={partial:!0,tokenize:pl},ll={partial:!0,tokenize:cl};function sl(e){let t=e.length;for(;t--&&!(e[t][0]==="enter"&&e[t][1].type===h.htmlFlow););return t>1&&e[t-2][1].type===h.linePrefix&&(e[t][1].start=e[t-2][1].start,e[t+1][1].start=e[t-2][1].start,e.splice(t-2,2)),e}function ul(e,t,n){const r=this;let i,a,o,l,c;return u;function u(x){return f(x)}function f(x){return g(x===s.lessThan,"expected `<`"),e.enter(h.htmlFlow),e.enter(h.htmlFlowData),e.consume(x),p}function p(x){return x===s.exclamationMark?(e.consume(x),d):x===s.slash?(e.consume(x),a=!0,A):x===s.questionMark?(e.consume(x),i=L.htmlInstruction,r.interrupt?t:k):fe(x)?(g(x!==null),e.consume(x),o=String.fromCharCode(x),E):n(x)}function d(x){return x===s.dash?(e.consume(x),i=L.htmlComment,m):x===s.leftSquareBracket?(e.consume(x),i=L.htmlCdata,l=0,b):fe(x)?(e.consume(x),i=L.htmlDeclaration,r.interrupt?t:k):n(x)}function m(x){return x===s.dash?(e.consume(x),r.interrupt?t:k):n(x)}function b(x){const ue=L.cdataOpeningString;return x===ue.charCodeAt(l++)?(e.consume(x),l===ue.length?r.interrupt?t:$:b):n(x)}function A(x){return fe(x)?(g(x!==null),e.consume(x),o=String.fromCharCode(x),E):n(x)}function E(x){if(x===s.eof||x===s.slash||x===s.greaterThan||J(x)){const ue=x===s.slash,ve=o.toLowerCase();return!ue&&!a&&br.includes(ve)?(i=L.htmlRaw,r.interrupt?t(x):$(x)):il.includes(o.toLowerCase())?(i=L.htmlBasic,ue?(e.consume(x),y):r.interrupt?t(x):$(x)):(i=L.htmlComplete,r.interrupt&&!r.parser.lazy[r.now().line]?n(x):a?I(x):T(x))}return x===s.dash||ce(x)?(e.consume(x),o+=String.fromCharCode(x),E):n(x)}function y(x){return x===s.greaterThan?(e.consume(x),r.interrupt?t:$):n(x)}function I(x){return W(x)?(e.consume(x),I):S(x)}function T(x){return x===s.slash?(e.consume(x),S):x===s.colon||x===s.underscore||fe(x)?(e.consume(x),_):W(x)?(e.consume(x),T):S(x)}function _(x){return x===s.dash||x===s.dot||x===s.colon||x===s.underscore||ce(x)?(e.consume(x),_):j(x)}function j(x){return x===s.equalsTo?(e.consume(x),w):W(x)?(e.consume(x),j):T(x)}function w(x){return x===s.eof||x===s.lessThan||x===s.equalsTo||x===s.greaterThan||x===s.graveAccent?n(x):x===s.quotationMark||x===s.apostrophe?(e.consume(x),c=x,N):W(x)?(e.consume(x),w):H(x)}function N(x){return x===c?(e.consume(x),c=null,U):x===s.eof||R(x)?n(x):(e.consume(x),N)}function H(x){return x===s.eof||x===s.quotationMark||x===s.apostrophe||x===s.slash||x===s.lessThan||x===s.equalsTo||x===s.greaterThan||x===s.graveAccent||J(x)?j(x):(e.consume(x),H)}function U(x){return x===s.slash||x===s.greaterThan||W(x)?T(x):n(x)}function S(x){return x===s.greaterThan?(e.consume(x),Z):n(x)}function Z(x){return x===s.eof||R(x)?$(x):W(x)?(e.consume(x),Z):n(x)}function $(x){return x===s.dash&&i===L.htmlComment?(e.consume(x),q):x===s.lessThan&&i===L.htmlRaw?(e.consume(x),Y):x===s.greaterThan&&i===L.htmlDeclaration?(e.consume(x),ae):x===s.questionMark&&i===L.htmlInstruction?(e.consume(x),k):x===s.rightSquareBracket&&i===L.htmlCdata?(e.consume(x),Ce):R(x)&&(i===L.htmlBasic||i===L.htmlComplete)?(e.exit(h.htmlFlowData),e.check(al,he,z)(x)):x===s.eof||R(x)?(e.exit(h.htmlFlowData),z(x)):(e.consume(x),$)}function z(x){return e.check(ll,M,he)(x)}function M(x){return g(R(x)),e.enter(h.lineEnding),e.consume(x),e.exit(h.lineEnding),F}function F(x){return x===s.eof||R(x)?z(x):(e.enter(h.htmlFlowData),$(x))}function q(x){return x===s.dash?(e.consume(x),k):$(x)}function Y(x){return x===s.slash?(e.consume(x),o="",se):$(x)}function se(x){if(x===s.greaterThan){const ue=o.toLowerCase();return br.includes(ue)?(e.consume(x),ae):$(x)}return fe(x)&&o.length<L.htmlRawSizeMax?(g(x!==null),e.consume(x),o+=String.fromCharCode(x),se):$(x)}function Ce(x){return x===s.rightSquareBracket?(e.consume(x),k):$(x)}function k(x){return x===s.greaterThan?(e.consume(x),ae):x===s.dash&&i===L.htmlComment?(e.consume(x),k):$(x)}function ae(x){return x===s.eof||R(x)?(e.exit(h.htmlFlowData),he(x)):(e.consume(x),ae)}function he(x){return e.exit(h.htmlFlow),t(x)}}function cl(e,t,n){const r=this;return i;function i(o){return R(o)?(e.enter(h.lineEnding),e.consume(o),e.exit(h.lineEnding),a):n(o)}function a(o){return r.parser.lazy[r.now().line]?n(o):t(o)}}function pl(e,t,n){return r;function r(i){return g(R(i),"expected a line ending"),e.enter(h.lineEnding),e.consume(i),e.exit(h.lineEnding),e.attempt(Lt,t,n)}}const fl={name:"htmlText",tokenize:hl};function hl(e,t,n){const r=this;let i,a,o;return l;function l(k){return g(k===s.lessThan,"expected `<`"),e.enter(h.htmlText),e.enter(h.htmlTextData),e.consume(k),c}function c(k){return k===s.exclamationMark?(e.consume(k),u):k===s.slash?(e.consume(k),j):k===s.questionMark?(e.consume(k),T):fe(k)?(e.consume(k),H):n(k)}function u(k){return k===s.dash?(e.consume(k),f):k===s.leftSquareBracket?(e.consume(k),a=0,b):fe(k)?(e.consume(k),I):n(k)}function f(k){return k===s.dash?(e.consume(k),m):n(k)}function p(k){return k===s.eof?n(k):k===s.dash?(e.consume(k),d):R(k)?(o=p,Y(k)):(e.consume(k),p)}function d(k){return k===s.dash?(e.consume(k),m):p(k)}function m(k){return k===s.greaterThan?q(k):k===s.dash?d(k):p(k)}function b(k){const ae=L.cdataOpeningString;return k===ae.charCodeAt(a++)?(e.consume(k),a===ae.length?A:b):n(k)}function A(k){return k===s.eof?n(k):k===s.rightSquareBracket?(e.consume(k),E):R(k)?(o=A,Y(k)):(e.consume(k),A)}function E(k){return k===s.rightSquareBracket?(e.consume(k),y):A(k)}function y(k){return k===s.greaterThan?q(k):k===s.rightSquareBracket?(e.consume(k),y):A(k)}function I(k){return k===s.eof||k===s.greaterThan?q(k):R(k)?(o=I,Y(k)):(e.consume(k),I)}function T(k){return k===s.eof?n(k):k===s.questionMark?(e.consume(k),_):R(k)?(o=T,Y(k)):(e.consume(k),T)}function _(k){return k===s.greaterThan?q(k):T(k)}function j(k){return fe(k)?(e.consume(k),w):n(k)}function w(k){return k===s.dash||ce(k)?(e.consume(k),w):N(k)}function N(k){return R(k)?(o=N,Y(k)):W(k)?(e.consume(k),N):q(k)}function H(k){return k===s.dash||ce(k)?(e.consume(k),H):k===s.slash||k===s.greaterThan||J(k)?U(k):n(k)}function U(k){return k===s.slash?(e.consume(k),q):k===s.colon||k===s.underscore||fe(k)?(e.consume(k),S):R(k)?(o=U,Y(k)):W(k)?(e.consume(k),U):q(k)}function S(k){return k===s.dash||k===s.dot||k===s.colon||k===s.underscore||ce(k)?(e.consume(k),S):Z(k)}function Z(k){return k===s.equalsTo?(e.consume(k),$):R(k)?(o=Z,Y(k)):W(k)?(e.consume(k),Z):U(k)}function $(k){return k===s.eof||k===s.lessThan||k===s.equalsTo||k===s.greaterThan||k===s.graveAccent?n(k):k===s.quotationMark||k===s.apostrophe?(e.consume(k),i=k,z):R(k)?(o=$,Y(k)):W(k)?(e.consume(k),$):(e.consume(k),M)}function z(k){return k===i?(e.consume(k),i=void 0,F):k===s.eof?n(k):R(k)?(o=z,Y(k)):(e.consume(k),z)}function M(k){return k===s.eof||k===s.quotationMark||k===s.apostrophe||k===s.lessThan||k===s.equalsTo||k===s.graveAccent?n(k):k===s.slash||k===s.greaterThan||J(k)?U(k):(e.consume(k),M)}function F(k){return k===s.slash||k===s.greaterThan||J(k)?U(k):n(k)}function q(k){return k===s.greaterThan?(e.consume(k),e.exit(h.htmlTextData),e.exit(h.htmlText),t):n(k)}function Y(k){return g(o,"expected return state"),g(R(k),"expected eol"),e.exit(h.htmlTextData),e.enter(h.lineEnding),e.consume(k),e.exit(h.lineEnding),se}function se(k){return g(r.parser.constructs.disable.null,"expected `disable.null` to be populated"),W(k)?X(e,Ce,h.linePrefix,r.parser.constructs.disable.null.includes("codeIndented")?void 0:L.tabSize)(k):Ce(k)}function Ce(k){return e.enter(h.htmlTextData),o(k)}}const Un={name:"labelEnd",resolveAll:kl,resolveTo:xl,tokenize:bl},dl={tokenize:yl},ml={tokenize:wl},gl={tokenize:Sl};function kl(e){let t=-1;const n=[];for(;++t<e.length;){const r=e[t][1];if(n.push(e[t]),r.type===h.labelImage||r.type===h.labelLink||r.type===h.labelEnd){const i=r.type===h.labelImage?4:2;r.type=h.data,t+=i}}return e.length!==n.length&&Se(e,0,e.length,n),e}function xl(e,t){let n=e.length,r=0,i,a,o,l;for(;n--;)if(i=e[n][1],a){if(i.type===h.link||i.type===h.labelLink&&i._inactive)break;e[n][0]==="enter"&&i.type===h.labelLink&&(i._inactive=!0)}else if(o){if(e[n][0]==="enter"&&(i.type===h.labelImage||i.type===h.labelLink)&&!i._balanced&&(a=n,i.type!==h.labelLink)){r=2;break}}else i.type===h.labelEnd&&(o=n);g(a!==void 0,"`open` is supposed to be found"),g(o!==void 0,"`close` is supposed to be found");const c={type:e[a][1].type===h.labelLink?h.link:h.image,start:{...e[a][1].start},end:{...e[e.length-1][1].end}},u={type:h.label,start:{...e[a][1].start},end:{...e[o][1].end}},f={type:h.labelText,start:{...e[a+r+2][1].end},end:{...e[o-2][1].start}};return l=[["enter",c,t],["enter",u,t]],l=Ee(l,e.slice(a+1,a+r+3)),l=Ee(l,[["enter",f,t]]),g(t.parser.constructs.insideSpan.null,"expected `insideSpan.null` to be populated"),l=Ee(l,Xt(t.parser.constructs.insideSpan.null,e.slice(a+r+4,o-3),t)),l=Ee(l,[["exit",f,t],e[o-2],e[o-1],["exit",u,t]]),l=Ee(l,e.slice(o+1)),l=Ee(l,[["exit",c,t]]),Se(e,a,e.length,l),e}function bl(e,t,n){const r=this;let i=r.events.length,a,o;for(;i--;)if((r.events[i][1].type===h.labelImage||r.events[i][1].type===h.labelLink)&&!r.events[i][1]._balanced){a=r.events[i][1];break}return l;function l(d){return g(d===s.rightSquareBracket,"expected `]`"),a?a._inactive?p(d):(o=r.parser.defined.includes(Ie(r.sliceSerialize({start:a.end,end:r.now()}))),e.enter(h.labelEnd),e.enter(h.labelMarker),e.consume(d),e.exit(h.labelMarker),e.exit(h.labelEnd),c):n(d)}function c(d){return d===s.leftParenthesis?e.attempt(dl,f,o?f:p)(d):d===s.leftSquareBracket?e.attempt(ml,f,o?u:p)(d):o?f(d):p(d)}function u(d){return e.attempt(gl,f,p)(d)}function f(d){return t(d)}function p(d){return a._balanced=!0,n(d)}}function yl(e,t,n){return r;function r(p){return g(p===s.leftParenthesis,"expected left paren"),e.enter(h.resource),e.enter(h.resourceMarker),e.consume(p),e.exit(h.resourceMarker),i}function i(p){return J(p)?It(e,a)(p):a(p)}function a(p){return p===s.rightParenthesis?f(p):yi(e,o,l,h.resourceDestination,h.resourceDestinationLiteral,h.resourceDestinationLiteralMarker,h.resourceDestinationRaw,h.resourceDestinationString,L.linkResourceDestinationBalanceMax)(p)}function o(p){return J(p)?It(e,c)(p):f(p)}function l(p){return n(p)}function c(p){return p===s.quotationMark||p===s.apostrophe||p===s.leftParenthesis?Si(e,u,n,h.resourceTitle,h.resourceTitleMarker,h.resourceTitleString)(p):f(p)}function u(p){return J(p)?It(e,f)(p):f(p)}function f(p){return p===s.rightParenthesis?(e.enter(h.resourceMarker),e.consume(p),e.exit(h.resourceMarker),e.exit(h.resource),t):n(p)}}function wl(e,t,n){const r=this;return i;function i(l){return g(l===s.leftSquareBracket,"expected left bracket"),wi.call(r,e,a,o,h.reference,h.referenceMarker,h.referenceString)(l)}function a(l){return r.parser.defined.includes(Ie(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)))?t(l):n(l)}function o(l){return n(l)}}function Sl(e,t,n){return r;function r(a){return g(a===s.leftSquareBracket,"expected left bracket"),e.enter(h.reference),e.enter(h.referenceMarker),e.consume(a),e.exit(h.referenceMarker),i}function i(a){return a===s.rightSquareBracket?(e.enter(h.referenceMarker),e.consume(a),e.exit(h.referenceMarker),e.exit(h.reference),t):n(a)}}const Cl={name:"labelStartImage",resolveAll:Un.resolveAll,tokenize:vl};function vl(e,t,n){const r=this;return i;function i(l){return g(l===s.exclamationMark,"expected `!`"),e.enter(h.labelImage),e.enter(h.labelImageMarker),e.consume(l),e.exit(h.labelImageMarker),a}function a(l){return l===s.leftSquareBracket?(e.enter(h.labelMarker),e.consume(l),e.exit(h.labelMarker),e.exit(h.labelImage),o):n(l)}function o(l){return l===s.caret&&"_hiddenFootnoteSupport"in r.parser.constructs?n(l):t(l)}}const El={name:"labelStartLink",resolveAll:Un.resolveAll,tokenize:Al};function Al(e,t,n){const r=this;return i;function i(o){return g(o===s.leftSquareBracket,"expected `[`"),e.enter(h.labelLink),e.enter(h.labelMarker),e.consume(o),e.exit(h.labelMarker),e.exit(h.labelLink),a}function a(o){return o===s.caret&&"_hiddenFootnoteSupport"in r.parser.constructs?n(o):t(o)}}const an={name:"lineEnding",tokenize:Il};function Il(e,t){return n;function n(r){return g(R(r),"expected eol"),e.enter(h.lineEnding),e.consume(r),e.exit(h.lineEnding),X(e,t,h.linePrefix)}}const Ot={name:"thematicBreak",tokenize:Tl};function Tl(e,t,n){let r=0,i;return a;function a(u){return e.enter(h.thematicBreak),o(u)}function o(u){return g(u===s.asterisk||u===s.dash||u===s.underscore,"expected `*`, `-`, or `_`"),i=u,l(u)}function l(u){return u===i?(e.enter(h.thematicBreakSequence),c(u)):r>=L.thematicBreakMarkerCountMin&&(u===s.eof||R(u))?(e.exit(h.thematicBreak),t(u)):n(u)}function c(u){return u===i?(e.consume(u),r++,c):(e.exit(h.thematicBreakSequence),W(u)?X(e,l,h.whitespace)(u):l(u))}}const ke={continuation:{tokenize:Ll},exit:Nl,name:"list",tokenize:Fl},Dl={partial:!0,tokenize:Pl},Ml={partial:!0,tokenize:zl};function Fl(e,t,n){const r=this,i=r.events[r.events.length-1];let a=i&&i[1].type===h.linePrefix?i[2].sliceSerialize(i[1],!0).length:0,o=0;return l;function l(m){g(r.containerState,"expected state");const b=r.containerState.type||(m===s.asterisk||m===s.plusSign||m===s.dash?h.listUnordered:h.listOrdered);if(b===h.listUnordered?!r.containerState.marker||m===r.containerState.marker:In(m)){if(r.containerState.type||(r.containerState.type=b,e.enter(b,{_container:!0})),b===h.listUnordered)return e.enter(h.listItemPrefix),m===s.asterisk||m===s.dash?e.check(Ot,n,u)(m):u(m);if(!r.interrupt||m===s.digit1)return e.enter(h.listItemPrefix),e.enter(h.listItemValue),c(m)}return n(m)}function c(m){return g(r.containerState,"expected state"),In(m)&&++o<L.listItemValueSizeMax?(e.consume(m),c):(!r.interrupt||o<2)&&(r.containerState.marker?m===r.containerState.marker:m===s.rightParenthesis||m===s.dot)?(e.exit(h.listItemValue),u(m)):n(m)}function u(m){return g(r.containerState,"expected state"),g(m!==s.eof,"eof (`null`) is not a marker"),e.enter(h.listItemMarker),e.consume(m),e.exit(h.listItemMarker),r.containerState.marker=r.containerState.marker||m,e.check(Lt,r.interrupt?n:f,e.attempt(Dl,d,p))}function f(m){return g(r.containerState,"expected state"),r.containerState.initialBlankLine=!0,a++,d(m)}function p(m){return W(m)?(e.enter(h.listItemPrefixWhitespace),e.consume(m),e.exit(h.listItemPrefixWhitespace),d):n(m)}function d(m){return g(r.containerState,"expected state"),r.containerState.size=a+r.sliceSerialize(e.exit(h.listItemPrefix),!0).length,t(m)}}function Ll(e,t,n){const r=this;return g(r.containerState,"expected state"),r.containerState._closeFlow=void 0,e.check(Lt,i,a);function i(l){return g(r.containerState,"expected state"),g(typeof r.containerState.size=="number","expected size"),r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,X(e,t,h.listItemIndent,r.containerState.size+1)(l)}function a(l){return g(r.containerState,"expected state"),r.containerState.furtherBlankLines||!W(l)?(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,o(l)):(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,e.attempt(Ml,t,o)(l))}function o(l){return g(r.containerState,"expected state"),r.containerState._closeFlow=!0,r.interrupt=void 0,g(r.parser.constructs.disable.null,"expected `disable.null` to be populated"),X(e,e.attempt(ke,t,n),h.linePrefix,r.parser.constructs.disable.null.includes("codeIndented")?void 0:L.tabSize)(l)}}function zl(e,t,n){const r=this;return g(r.containerState,"expected state"),g(typeof r.containerState.size=="number","expected size"),X(e,i,h.listItemIndent,r.containerState.size+1);function i(a){g(r.containerState,"expected state");const o=r.events[r.events.length-1];return o&&o[1].type===h.listItemIndent&&o[2].sliceSerialize(o[1],!0).length===r.containerState.size?t(a):n(a)}}function Nl(e){g(this.containerState,"expected state"),g(typeof this.containerState.type=="string","expected type"),e.exit(this.containerState.type)}function Pl(e,t,n){const r=this;return g(r.parser.constructs.disable.null,"expected `disable.null` to be populated"),X(e,i,h.listItemPrefixWhitespace,r.parser.constructs.disable.null.includes("codeIndented")?void 0:L.tabSize+1);function i(a){const o=r.events[r.events.length-1];return!W(a)&&o&&o[1].type===h.listItemPrefixWhitespace?t(a):n(a)}}const yr={name:"setextUnderline",resolveTo:Rl,tokenize:Bl};function Rl(e,t){let n=e.length,r,i,a;for(;n--;)if(e[n][0]==="enter"){if(e[n][1].type===h.content){r=n;break}e[n][1].type===h.paragraph&&(i=n)}else e[n][1].type===h.content&&e.splice(n,1),!a&&e[n][1].type===h.definition&&(a=n);g(i!==void 0,"expected a `text` index to be found"),g(r!==void 0,"expected a `text` index to be found"),g(e[r][2]===t,"enter context should be same"),g(e[e.length-1][2]===t,"enter context should be same");const o={type:h.setextHeading,start:{...e[r][1].start},end:{...e[e.length-1][1].end}};return e[i][1].type=h.setextHeadingText,a?(e.splice(i,0,["enter",o,t]),e.splice(a+1,0,["exit",e[r][1],t]),e[r][1].end={...e[a][1].end}):e[r][1]=o,e.push(["exit",o,t]),e}function Bl(e,t,n){const r=this;let i;return a;function a(u){let f=r.events.length,p;for(g(u===s.dash||u===s.equalsTo,"expected `=` or `-`");f--;)if(r.events[f][1].type!==h.lineEnding&&r.events[f][1].type!==h.linePrefix&&r.events[f][1].type!==h.content){p=r.events[f][1].type===h.paragraph;break}return!r.parser.lazy[r.now().line]&&(r.interrupt||p)?(e.enter(h.setextHeadingLine),i=u,o(u)):n(u)}function o(u){return e.enter(h.setextHeadingLineSequence),l(u)}function l(u){return u===i?(e.consume(u),l):(e.exit(h.setextHeadingLineSequence),W(u)?X(e,c,h.lineSuffix)(u):c(u))}function c(u){return u===s.eof||R(u)?(e.exit(h.setextHeadingLine),t(u)):n(u)}}const _l={tokenize:jl};function jl(e){const t=this,n=e.attempt(Lt,r,e.attempt(this.parser.constructs.flowInitial,i,X(e,e.attempt(this.parser.constructs.flow,i,e.attempt(Ua,i)),h.linePrefix)));return n;function r(a){if(g(a===s.eof||R(a),"expected eol or eof"),a===s.eof){e.consume(a);return}return e.enter(h.lineEndingBlank),e.consume(a),e.exit(h.lineEndingBlank),t.currentConstruct=void 0,n}function i(a){if(g(a===s.eof||R(a),"expected eol or eof"),a===s.eof){e.consume(a);return}return e.enter(h.lineEnding),e.consume(a),e.exit(h.lineEnding),t.currentConstruct=void 0,n}}const Hl={resolveAll:vi()},Ol=Ci("string"),Vl=Ci("text");function Ci(e){return{resolveAll:vi(e==="text"?ql:void 0),tokenize:t};function t(n){const r=this,i=this.parser.constructs[e],a=n.attempt(i,o,l);return o;function o(f){return u(f)?a(f):l(f)}function l(f){if(f===s.eof){n.consume(f);return}return n.enter(h.data),n.consume(f),c}function c(f){return u(f)?(n.exit(h.data),a(f)):(n.consume(f),c)}function u(f){if(f===s.eof)return!0;const p=i[f];let d=-1;if(p)for(g(Array.isArray(p),"expected `disable.null` to be populated");++d<p.length;){const m=p[d];if(!m.previous||m.previous.call(r,r.previous))return!0}return!1}}}function vi(e){return t;function t(n,r){let i=-1,a;for(;++i<=n.length;)a===void 0?n[i]&&n[i][1].type===h.data&&(a=i,i++):(!n[i]||n[i][1].type!==h.data)&&(i!==a+2&&(n[a][1].end=n[i-1][1].end,n.splice(a+2,i-a-2),i=a+2),a=void 0);return e?e(n,r):n}}function ql(e,t){let n=0;for(;++n<=e.length;)if((n===e.length||e[n][1].type===h.lineEnding)&&e[n-1][1].type===h.data){const r=e[n-1][1],i=t.sliceStream(r);let a=i.length,o=-1,l=0,c;for(;a--;){const u=i[a];if(typeof u=="string"){for(o=u.length;u.charCodeAt(o-1)===s.space;)l++,o--;if(o)break;o=-1}else if(u===s.horizontalTab)c=!0,l++;else if(u!==s.virtualSpace){a++;break}}if(t._contentTypeTextTrailing&&n===e.length&&(l=0),l){const u={type:n===e.length||c||l<L.hardBreakPrefixSizeMin?h.lineSuffix:h.hardBreakTrailing,start:{_bufferIndex:a?o:r.start._bufferIndex+o,_index:r.start._index+a,line:r.end.line,column:r.end.column-l,offset:r.end.offset-l},end:{...r.end}};r.end={...u.start},r.start.offset===r.end.offset?Object.assign(r,u):(e.splice(n,0,["enter",u,t],["exit",u,t]),n+=2)}n++}return e}const Ul={[s.asterisk]:ke,[s.plusSign]:ke,[s.dash]:ke,[s.digit0]:ke,[s.digit1]:ke,[s.digit2]:ke,[s.digit3]:ke,[s.digit4]:ke,[s.digit5]:ke,[s.digit6]:ke,[s.digit7]:ke,[s.digit8]:ke,[s.digit9]:ke,[s.greaterThan]:mi},Wl={[s.leftSquareBracket]:Qa},$l={[s.horizontalTab]:on,[s.virtualSpace]:on,[s.space]:on},Gl={[s.numberSign]:tl,[s.asterisk]:Ot,[s.dash]:[yr,Ot],[s.lessThan]:ol,[s.equalsTo]:yr,[s.underscore]:Ot,[s.graveAccent]:xr,[s.tilde]:xr},Xl={[s.ampersand]:ki,[s.backslash]:gi},Ql={[s.carriageReturn]:an,[s.lineFeed]:an,[s.carriageReturnLineFeed]:an,[s.exclamationMark]:Cl,[s.ampersand]:ki,[s.asterisk]:Tn,[s.lessThan]:[Aa,fl],[s.leftSquareBracket]:El,[s.backslash]:[Za,gi],[s.rightSquareBracket]:Un,[s.underscore]:Tn,[s.graveAccent]:ja},Yl={null:[Tn,Hl]},Kl={null:[s.asterisk,s.underscore]},Jl={null:[]},Zl=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:Kl,contentInitial:Wl,disable:Jl,document:Ul,flow:Gl,flowInitial:$l,insideSpan:Yl,string:Xl,text:Ql},Symbol.toStringTag,{value:"Module"}));var Rt={exports:{}},ln,wr;function es(){if(wr)return ln;wr=1;var e=1e3,t=e*60,n=t*60,r=n*24,i=r*7,a=r*365.25;ln=function(f,p){p=p||{};var d=typeof f;if(d==="string"&&f.length>0)return o(f);if(d==="number"&&isFinite(f))return p.long?c(f):l(f);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(f))};function o(f){if(f=String(f),!(f.length>100)){var p=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(f);if(p){var d=parseFloat(p[1]),m=(p[2]||"ms").toLowerCase();switch(m){case"years":case"year":case"yrs":case"yr":case"y":return d*a;case"weeks":case"week":case"w":return d*i;case"days":case"day":case"d":return d*r;case"hours":case"hour":case"hrs":case"hr":case"h":return d*n;case"minutes":case"minute":case"mins":case"min":case"m":return d*t;case"seconds":case"second":case"secs":case"sec":case"s":return d*e;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return d;default:return}}}}function l(f){var p=Math.abs(f);return p>=r?Math.round(f/r)+"d":p>=n?Math.round(f/n)+"h":p>=t?Math.round(f/t)+"m":p>=e?Math.round(f/e)+"s":f+"ms"}function c(f){var p=Math.abs(f);return p>=r?u(f,p,r,"day"):p>=n?u(f,p,n,"hour"):p>=t?u(f,p,t,"minute"):p>=e?u(f,p,e,"second"):f+" ms"}function u(f,p,d,m){var b=p>=d*1.5;return Math.round(f/d)+" "+m+(b?"s":"")}return ln}var sn,Sr;function ts(){if(Sr)return sn;Sr=1;function e(t){r.debug=r,r.default=r,r.coerce=u,r.disable=l,r.enable=a,r.enabled=c,r.humanize=es(),r.destroy=f,Object.keys(t).forEach(p=>{r[p]=t[p]}),r.names=[],r.skips=[],r.formatters={};function n(p){let d=0;for(let m=0;m<p.length;m++)d=(d<<5)-d+p.charCodeAt(m),d|=0;return r.colors[Math.abs(d)%r.colors.length]}r.selectColor=n;function r(p){let d,m=null,b,A;function E(...y){if(!E.enabled)return;const I=E,T=Number(new Date),_=T-(d||T);I.diff=_,I.prev=d,I.curr=T,d=T,y[0]=r.coerce(y[0]),typeof y[0]!="string"&&y.unshift("%O");let j=0;y[0]=y[0].replace(/%([a-zA-Z%])/g,(N,H)=>{if(N==="%%")return"%";j++;const U=r.formatters[H];if(typeof U=="function"){const S=y[j];N=U.call(I,S),y.splice(j,1),j--}return N}),r.formatArgs.call(I,y),(I.log||r.log).apply(I,y)}return E.namespace=p,E.useColors=r.useColors(),E.color=r.selectColor(p),E.extend=i,E.destroy=r.destroy,Object.defineProperty(E,"enabled",{enumerable:!0,configurable:!1,get:()=>m!==null?m:(b!==r.namespaces&&(b=r.namespaces,A=r.enabled(p)),A),set:y=>{m=y}}),typeof r.init=="function"&&r.init(E),E}function i(p,d){const m=r(this.namespace+(typeof d>"u"?":":d)+p);return m.log=this.log,m}function a(p){r.save(p),r.namespaces=p,r.names=[],r.skips=[];const d=(typeof p=="string"?p:"").trim().replace(/\s+/g,",").split(",").filter(Boolean);for(const m of d)m[0]==="-"?r.skips.push(m.slice(1)):r.names.push(m)}function o(p,d){let m=0,b=0,A=-1,E=0;for(;m<p.length;)if(b<d.length&&(d[b]===p[m]||d[b]==="*"))d[b]==="*"?(A=b,E=m,b++):(m++,b++);else if(A!==-1)b=A+1,E++,m=E;else return!1;for(;b<d.length&&d[b]==="*";)b++;return b===d.length}function l(){const p=[...r.names,...r.skips.map(d=>"-"+d)].join(",");return r.enable(""),p}function c(p){for(const d of r.skips)if(o(p,d))return!1;for(const d of r.names)if(o(p,d))return!0;return!1}function u(p){return p instanceof Error?p.stack||p.message:p}function f(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")}return r.enable(r.load()),r}return sn=e,sn}var Cr;function ns(){return Cr||(Cr=1,(function(e,t){var n={};t.formatArgs=i,t.save=a,t.load=o,t.useColors=r,t.storage=l(),t.destroy=(()=>{let u=!1;return()=>{u||(u=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}})(),t.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"];function r(){if(typeof window<"u"&&window.process&&(window.process.type==="renderer"||window.process.__nwjs))return!0;if(typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))return!1;let u;return typeof document<"u"&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window<"u"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator<"u"&&navigator.userAgent&&(u=navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/))&&parseInt(u[1],10)>=31||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}function i(u){if(u[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+u[0]+(this.useColors?"%c ":" ")+"+"+e.exports.humanize(this.diff),!this.useColors)return;const f="color: "+this.color;u.splice(1,0,f,"color: inherit");let p=0,d=0;u[0].replace(/%[a-zA-Z%]/g,m=>{m!=="%%"&&(p++,m==="%c"&&(d=p))}),u.splice(d,0,f)}t.log=console.debug||console.log||(()=>{});function a(u){try{u?t.storage.setItem("debug",u):t.storage.removeItem("debug")}catch{}}function o(){let u;try{u=t.storage.getItem("debug")||t.storage.getItem("DEBUG")}catch{}return!u&&typeof process<"u"&&"env"in process&&(u=n.DEBUG),u}function l(){try{return localStorage}catch{}}e.exports=ts()(t);const{formatters:c}=e.exports;c.j=function(u){try{return JSON.stringify(u)}catch(f){return"[UnexpectedJSONParseError]: "+f.message}}})(Rt,Rt.exports)),Rt.exports}var rs=ns();const is=Pn(rs),Ue=is("micromark");function os(e,t,n){let r={_bufferIndex:-1,_index:0,line:n&&n.line||1,column:n&&n.column||1,offset:n&&n.offset||0};const i={},a=[];let o=[],l=[],c=!0;const u={attempt:U(N),check:U(H),consume:_,enter:j,exit:w,interrupt:U(H,{interrupt:!0})},f={code:s.eof,containerState:{},defineSkip:y,events:[],now:E,parser:e,previous:s.eof,sliceSerialize:b,sliceStream:A,write:m};let p=t.tokenize.call(f,u),d;return t.resolveAll&&a.push(t),f;function m(z){return o=Ee(o,z),I(),o[o.length-1]!==s.eof?[]:(S(t,0),f.events=Xt(a,f.events,f),f.events)}function b(z,M){return ls(A(z),M)}function A(z){return as(o,z)}function E(){const{_bufferIndex:z,_index:M,line:F,column:q,offset:Y}=r;return{_bufferIndex:z,_index:M,line:F,column:q,offset:Y}}function y(z){i[z.line]=z.column,$(),Ue("position: define skip: `%j`",r)}function I(){let z;for(;r._index<o.length;){const M=o[r._index];if(typeof M=="string")for(z=r._index,r._bufferIndex<0&&(r._bufferIndex=0);r._index===z&&r._bufferIndex<M.length;)T(M.charCodeAt(r._bufferIndex));else T(M)}}function T(z){g(c===!0,"expected character to be consumed"),c=void 0,Ue("main: passing `%s` to %s",z,p&&p.name),d=z,g(typeof p=="function","expected state"),p=p(z)}function _(z){g(z===d,"expected given code to equal expected code"),Ue("consume: `%s`",z),g(c===void 0,"expected code to not have been consumed: this might be because `return x(code)` instead of `return x` was used"),g(z===null?f.events.length===0||f.events[f.events.length-1][0]==="exit":f.events[f.events.length-1][0]==="enter","expected last token to be open"),R(z)?(r.line++,r.column=1,r.offset+=z===s.carriageReturnLineFeed?2:1,$(),Ue("position: after eol: `%j`",r)):z!==s.virtualSpace&&(r.column++,r.offset++),r._bufferIndex<0?r._index++:(r._bufferIndex++,r._bufferIndex===o[r._index].length&&(r._bufferIndex=-1,r._index++)),f.previous=z,c=!0}function j(z,M){const F=M||{};return F.type=z,F.start=E(),g(typeof z=="string","expected string type"),g(z.length>0,"expected non-empty string"),Ue("enter: `%s`",z),f.events.push(["enter",F,f]),l.push(F),F}function w(z){g(typeof z=="string","expected string type"),g(z.length>0,"expected non-empty string");const M=l.pop();return g(M,"cannot close w/o open tokens"),M.end=E(),g(z===M.type,"expected exit token to match current token"),g(!(M.start._index===M.end._index&&M.start._bufferIndex===M.end._bufferIndex),"expected non-empty token (`"+z+"`)"),Ue("exit: `%s`",M.type),f.events.push(["exit",M,f]),M}function N(z,M){S(z,M.from)}function H(z,M){M.restore()}function U(z,M){return F;function F(q,Y,se){let Ce,k,ae,he;return Array.isArray(q)?ue(q):"tokenize"in q?ue([q]):x(q);function x(ne){return Te;function Te(ee){const de=ee!==null&&ne[ee],De=ee!==null&&ne.null,_e=[...Array.isArray(de)?de:de?[de]:[],...Array.isArray(De)?De:De?[De]:[]];return ue(_e)(ee)}}function ue(ne){return Ce=ne,k=0,ne.length===0?(g(se,"expected `bogusState` to be given"),se):ve(ne[k])}function ve(ne){return Te;function Te(ee){return he=Z(),ae=ne,ne.partial||(f.currentConstruct=ne),g(f.parser.constructs.disable.null,"expected `disable.null` to be populated"),ne.name&&f.parser.constructs.disable.null.includes(ne.name)?Ne(ee):ne.tokenize.call(M?Object.assign(Object.create(f),M):f,u,Be,Ne)(ee)}}function Be(ne){return g(ne===d,"expected code"),c=!0,z(ae,he),Y}function Ne(ne){return g(ne===d,"expected code"),c=!0,he.restore(),++k<Ce.length?ve(Ce[k]):se}}}function S(z,M){z.resolveAll&&!a.includes(z)&&a.push(z),z.resolve&&Se(f.events,M,f.events.length-M,z.resolve(f.events.slice(M),f)),z.resolveTo&&(f.events=z.resolveTo(f.events,f)),g(z.partial||f.events.length===0||f.events[f.events.length-1][0]==="exit","expected last token to end")}function Z(){const z=E(),M=f.previous,F=f.currentConstruct,q=f.events.length,Y=Array.from(l);return{from:q,restore:se};function se(){r=z,f.previous=M,f.currentConstruct=F,f.events.length=q,l=Y,$(),Ue("position: restore: `%j`",r)}}function $(){r.line in i&&r.column<2&&(r.column=i[r.line],r.offset+=i[r.line]-1)}}function as(e,t){const n=t.start._index,r=t.start._bufferIndex,i=t.end._index,a=t.end._bufferIndex;let o;if(n===i)g(a>-1,"expected non-negative end buffer index"),g(r>-1,"expected non-negative start buffer index"),o=[e[n].slice(r,a)];else{if(o=e.slice(n,i),r>-1){const l=o[0];typeof l=="string"?o[0]=l.slice(r):(g(r===0,"expected `startBufferIndex` to be `0`"),o.shift())}a>0&&o.push(e[i].slice(0,a))}return o}function ls(e,t){let n=-1;const r=[];let i;for(;++n<e.length;){const a=e[n];let o;if(typeof a=="string")o=a;else switch(a){case s.carriageReturn:{o=Le.cr;break}case s.lineFeed:{o=Le.lf;break}case s.carriageReturnLineFeed:{o=Le.cr+Le.lf;break}case s.horizontalTab:{o=t?Le.space:Le.ht;break}case s.virtualSpace:{if(!t&&i)continue;o=Le.space;break}default:g(typeof a=="number","expected number"),o=String.fromCharCode(a)}i=a===s.horizontalTab,r.push(o)}return r.join("")}function ss(e){const r={constructs:hi([Zl,...(e||{}).extensions||[]]),content:i(ba),defined:[],document:i(wa),flow:i(_l),lazy:{},string:i(Ol),text:i(Vl)};return r;function i(a){return o;function o(l){return os(r,a,l)}}}function us(e){for(;!bi(e););return e}const vr=/[\0\t\n\r]/g;function cs(){let e=1,t="",n=!0,r;return i;function i(a,o,l){const c=[];let u,f,p,d,m;for(a=t+(typeof a=="string"?a.toString():new TextDecoder(o||void 0).decode(a)),p=0,t="",n&&(a.charCodeAt(0)===s.byteOrderMarker&&p++,n=void 0);p<a.length;){if(vr.lastIndex=p,u=vr.exec(a),d=u&&u.index!==void 0?u.index:a.length,m=a.charCodeAt(d),!u){t=a.slice(p);break}if(m===s.lf&&p===d&&r)c.push(s.carriageReturnLineFeed),r=void 0;else switch(r&&(c.push(s.carriageReturn),r=void 0),p<d&&(c.push(a.slice(p,d)),e+=d-p),m){case s.nul:{c.push(s.replacementCharacter),e++;break}case s.ht:{for(f=Math.ceil(e/L.tabSize)*L.tabSize,c.push(s.horizontalTab);e++<f;)c.push(s.virtualSpace);break}case s.lf:{c.push(s.lineFeed),e=1;break}default:r=!0,e=1}p=d+1}return l&&(r&&c.push(s.carriageReturn),t&&c.push(t),c.push(s.eof)),c}}const ps=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function fs(e){return e.replace(ps,hs)}function hs(e,t,n){if(t)return t;if(n.charCodeAt(0)===s.numberSign){const i=n.charCodeAt(1),a=i===s.lowercaseX||i===s.uppercaseX;return di(n.slice(a?2:1),a?L.numericBaseHexadecimal:L.numericBaseDecimal)}return qn(n)||e}const Ei={}.hasOwnProperty;function ds(e,t,n){return t&&typeof t=="object"&&(n=t,t=void 0),ms(n)(us(ss(n).document().write(cs()(e,t,!0))))}function ms(e){const t={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:a(qe),autolinkProtocol:U,autolinkEmail:U,atxHeading:a(Oe),blockQuote:a(ee),characterEscape:U,characterReference:U,codeFenced:a(de),codeFencedFenceInfo:o,codeFencedFenceMeta:o,codeIndented:a(de,o),codeText:a(De,o),codeTextData:U,data:U,codeFlowValue:U,definition:a(_e),definitionDestinationString:o,definitionLabelString:o,definitionTitleString:o,emphasis:a(Ae),hardBreakEscape:a(Ye),hardBreakTrailing:a(Ye),htmlFlow:a(Ve,o),htmlFlowData:U,htmlText:a(Ve,o),htmlTextData:U,image:a(xt),label:o,link:a(qe),listItem:a(Je),listItemValue:d,listOrdered:a(Ke,p),listUnordered:a(Ke),paragraph:a(bt),reference:x,referenceString:o,resourceDestinationString:o,resourceTitleString:o,setextHeading:a(Oe),strong:a(Ze),thematicBreak:a(et)},exit:{atxHeading:c(),atxHeadingSequence:j,autolink:c(),autolinkEmail:Te,autolinkProtocol:ne,blockQuote:c(),characterEscapeValue:S,characterReferenceMarkerHexadecimal:ve,characterReferenceMarkerNumeric:ve,characterReferenceValue:Be,characterReference:Ne,codeFenced:c(E),codeFencedFence:A,codeFencedFenceInfo:m,codeFencedFenceMeta:b,codeFlowValue:S,codeIndented:c(y),codeText:c(F),codeTextData:S,data:S,definition:c(),definitionDestinationString:_,definitionLabelString:I,definitionTitleString:T,emphasis:c(),hardBreakEscape:c($),hardBreakTrailing:c($),htmlFlow:c(z),htmlFlowData:S,htmlText:c(M),htmlTextData:S,image:c(Y),label:Ce,labelText:se,lineEnding:Z,link:c(q),listItem:c(),listOrdered:c(),listUnordered:c(),paragraph:c(),referenceString:ue,resourceDestinationString:k,resourceTitleString:ae,resource:he,setextHeading:c(H),setextHeadingLineSequence:N,setextHeadingText:w,strong:c(),thematicBreak:c()}};Ai(t,(e||{}).mdastExtensions||[]);const n={};return r;function r(C){let v={type:"root",children:[]};const P={stack:[v],tokenStack:[],config:t,enter:l,exit:u,buffer:o,resume:f,data:n},O=[];let G=-1;for(;++G<C.length;)if(C[G][1].type===h.listOrdered||C[G][1].type===h.listUnordered)if(C[G][0]==="enter")O.push(G);else{const le=O.pop();g(typeof le=="number","expected list to be open"),G=i(C,le,G)}for(G=-1;++G<C.length;){const le=t[C[G][0]];Ei.call(le,C[G][1].type)&&le[C[G][1].type].call(Object.assign({sliceSerialize:C[G][2].sliceSerialize},P),C[G][1])}if(P.tokenStack.length>0){const le=P.tokenStack[P.tokenStack.length-1];(le[1]||Er).call(P,void 0,le[0])}for(v.position={start:je(C.length>0?C[0][1].start:{line:1,column:1,offset:0}),end:je(C.length>0?C[C.length-2][1].end:{line:1,column:1,offset:0})},G=-1;++G<t.transforms.length;)v=t.transforms[G](v)||v;return v}function i(C,v,P){let O=v-1,G=-1,le=!1,me,be,Pe,Me;for(;++O<=P;){const re=C[O];switch(re[1].type){case h.listUnordered:case h.listOrdered:case h.blockQuote:{re[0]==="enter"?G++:G--,Me=void 0;break}case h.lineEndingBlank:{re[0]==="enter"&&(me&&!Me&&!G&&!Pe&&(Pe=O),Me=void 0);break}case h.linePrefix:case h.listItemValue:case h.listItemMarker:case h.listItemPrefix:case h.listItemPrefixWhitespace:break;default:Me=void 0}if(!G&&re[0]==="enter"&&re[1].type===h.listItemPrefix||G===-1&&re[0]==="exit"&&(re[1].type===h.listUnordered||re[1].type===h.listOrdered)){if(me){let ye=O;for(be=void 0;ye--;){const ge=C[ye];if(ge[1].type===h.lineEnding||ge[1].type===h.lineEndingBlank){if(ge[0]==="exit")continue;be&&(C[be][1].type=h.lineEndingBlank,le=!0),ge[1].type=h.lineEnding,be=ye}else if(!(ge[1].type===h.linePrefix||ge[1].type===h.blockQuotePrefix||ge[1].type===h.blockQuotePrefixWhitespace||ge[1].type===h.blockQuoteMarker||ge[1].type===h.listItemIndent))break}Pe&&(!be||Pe<be)&&(me._spread=!0),me.end=Object.assign({},be?C[be][1].start:re[1].end),C.splice(be||O,0,["exit",me,re[2]]),O++,P++}if(re[1].type===h.listItemPrefix){const ye={type:"listItem",_spread:!1,start:Object.assign({},re[1].start),end:void 0};me=ye,C.splice(O,0,["enter",ye,re[2]]),O++,P++,Pe=void 0,Me=!0}}}return C[v][1]._spread=le,P}function a(C,v){return P;function P(O){l.call(this,C(O),O),v&&v.call(this,O)}}function o(){this.stack.push({type:"fragment",children:[]})}function l(C,v,P){const O=this.stack[this.stack.length-1];g(O,"expected `parent`"),g("children"in O,"expected `parent`"),O.children.push(C),this.stack.push(C),this.tokenStack.push([v,P||void 0]),C.position={start:je(v.start),end:void 0}}function c(C){return v;function v(P){C&&C.call(this,P),u.call(this,P)}}function u(C,v){const P=this.stack.pop();g(P,"expected `node`");const O=this.tokenStack.pop();if(O)O[0].type!==C.type&&(v?v.call(this,C,O[0]):(O[1]||Er).call(this,C,O[0]));else throw new Error("Cannot close `"+C.type+"` ("+At({start:C.start,end:C.end})+"): it’s not open");g(P.type!=="fragment","unexpected fragment `exit`ed"),g(P.position,"expected `position` to be defined"),P.position.end=je(C.end)}function f(){return Vn(this.stack.pop())}function p(){this.data.expectingFirstListItemValue=!0}function d(C){if(this.data.expectingFirstListItemValue){const v=this.stack[this.stack.length-2];g(v,"expected nodes on stack"),g(v.type==="list","expected list on stack"),v.start=Number.parseInt(this.sliceSerialize(C),L.numericBaseDecimal),this.data.expectingFirstListItemValue=void 0}}function m(){const C=this.resume(),v=this.stack[this.stack.length-1];g(v,"expected node on stack"),g(v.type==="code","expected code on stack"),v.lang=C}function b(){const C=this.resume(),v=this.stack[this.stack.length-1];g(v,"expected node on stack"),g(v.type==="code","expected code on stack"),v.meta=C}function A(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function E(){const C=this.resume(),v=this.stack[this.stack.length-1];g(v,"expected node on stack"),g(v.type==="code","expected code on stack"),v.value=C.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function y(){const C=this.resume(),v=this.stack[this.stack.length-1];g(v,"expected node on stack"),g(v.type==="code","expected code on stack"),v.value=C.replace(/(\r?\n|\r)$/g,"")}function I(C){const v=this.resume(),P=this.stack[this.stack.length-1];g(P,"expected node on stack"),g(P.type==="definition","expected definition on stack"),P.label=v,P.identifier=Ie(this.sliceSerialize(C)).toLowerCase()}function T(){const C=this.resume(),v=this.stack[this.stack.length-1];g(v,"expected node on stack"),g(v.type==="definition","expected definition on stack"),v.title=C}function _(){const C=this.resume(),v=this.stack[this.stack.length-1];g(v,"expected node on stack"),g(v.type==="definition","expected definition on stack"),v.url=C}function j(C){const v=this.stack[this.stack.length-1];if(g(v,"expected node on stack"),g(v.type==="heading","expected heading on stack"),!v.depth){const P=this.sliceSerialize(C).length;g(P===1||P===2||P===3||P===4||P===5||P===6,"expected `depth` between `1` and `6`"),v.depth=P}}function w(){this.data.setextHeadingSlurpLineEnding=!0}function N(C){const v=this.stack[this.stack.length-1];g(v,"expected node on stack"),g(v.type==="heading","expected heading on stack"),v.depth=this.sliceSerialize(C).codePointAt(0)===s.equalsTo?1:2}function H(){this.data.setextHeadingSlurpLineEnding=void 0}function U(C){const v=this.stack[this.stack.length-1];g(v,"expected node on stack"),g("children"in v,"expected parent on stack");const P=v.children;let O=P[P.length-1];(!O||O.type!=="text")&&(O=yt(),O.position={start:je(C.start),end:void 0},P.push(O)),this.stack.push(O)}function S(C){const v=this.stack.pop();g(v,"expected a `node` to be on the stack"),g("value"in v,"expected a `literal` to be on the stack"),g(v.position,"expected `node` to have an open position"),v.value+=this.sliceSerialize(C),v.position.end=je(C.end)}function Z(C){const v=this.stack[this.stack.length-1];if(g(v,"expected `node`"),this.data.atHardBreak){g("children"in v,"expected `parent`");const P=v.children[v.children.length-1];g(P.position,"expected tail to have a starting position"),P.position.end=je(C.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&t.canContainEols.includes(v.type)&&(U.call(this,C),S.call(this,C))}function $(){this.data.atHardBreak=!0}function z(){const C=this.resume(),v=this.stack[this.stack.length-1];g(v,"expected node on stack"),g(v.type==="html","expected html on stack"),v.value=C}function M(){const C=this.resume(),v=this.stack[this.stack.length-1];g(v,"expected node on stack"),g(v.type==="html","expected html on stack"),v.value=C}function F(){const C=this.resume(),v=this.stack[this.stack.length-1];g(v,"expected node on stack"),g(v.type==="inlineCode","expected inline code on stack"),v.value=C}function q(){const C=this.stack[this.stack.length-1];if(g(C,"expected node on stack"),g(C.type==="link","expected link on stack"),this.data.inReference){const v=this.data.referenceType||"shortcut";C.type+="Reference",C.referenceType=v,delete C.url,delete C.title}else delete C.identifier,delete C.label;this.data.referenceType=void 0}function Y(){const C=this.stack[this.stack.length-1];if(g(C,"expected node on stack"),g(C.type==="image","expected image on stack"),this.data.inReference){const v=this.data.referenceType||"shortcut";C.type+="Reference",C.referenceType=v,delete C.url,delete C.title}else delete C.identifier,delete C.label;this.data.referenceType=void 0}function se(C){const v=this.sliceSerialize(C),P=this.stack[this.stack.length-2];g(P,"expected ancestor on stack"),g(P.type==="image"||P.type==="link","expected image or link on stack"),P.label=fs(v),P.identifier=Ie(v).toLowerCase()}function Ce(){const C=this.stack[this.stack.length-1];g(C,"expected node on stack"),g(C.type==="fragment","expected fragment on stack");const v=this.resume(),P=this.stack[this.stack.length-1];if(g(P,"expected node on stack"),g(P.type==="image"||P.type==="link","expected image or link on stack"),this.data.inReference=!0,P.type==="link"){const O=C.children;P.children=O}else P.alt=v}function k(){const C=this.resume(),v=this.stack[this.stack.length-1];g(v,"expected node on stack"),g(v.type==="image"||v.type==="link","expected image or link on stack"),v.url=C}function ae(){const C=this.resume(),v=this.stack[this.stack.length-1];g(v,"expected node on stack"),g(v.type==="image"||v.type==="link","expected image or link on stack"),v.title=C}function he(){this.data.inReference=void 0}function x(){this.data.referenceType="collapsed"}function ue(C){const v=this.resume(),P=this.stack[this.stack.length-1];g(P,"expected node on stack"),g(P.type==="image"||P.type==="link","expected image reference or link reference on stack"),P.label=v,P.identifier=Ie(this.sliceSerialize(C)).toLowerCase(),this.data.referenceType="full"}function ve(C){g(C.type==="characterReferenceMarkerNumeric"||C.type==="characterReferenceMarkerHexadecimal"),this.data.characterReferenceType=C.type}function Be(C){const v=this.sliceSerialize(C),P=this.data.characterReferenceType;let O;if(P)O=di(v,P===h.characterReferenceMarkerNumeric?L.numericBaseDecimal:L.numericBaseHexadecimal),this.data.characterReferenceType=void 0;else{const le=qn(v);g(le!==!1,"expected reference to decode"),O=le}const G=this.stack[this.stack.length-1];g(G,"expected `node`"),g("value"in G,"expected `node.value`"),G.value+=O}function Ne(C){const v=this.stack.pop();g(v,"expected `node`"),g(v.position,"expected `node.position`"),v.position.end=je(C.end)}function ne(C){S.call(this,C);const v=this.stack[this.stack.length-1];g(v,"expected node on stack"),g(v.type==="link","expected link on stack"),v.url=this.sliceSerialize(C)}function Te(C){S.call(this,C);const v=this.stack[this.stack.length-1];g(v,"expected node on stack"),g(v.type==="link","expected link on stack"),v.url="mailto:"+this.sliceSerialize(C)}function ee(){return{type:"blockquote",children:[]}}function de(){return{type:"code",lang:null,meta:null,value:""}}function De(){return{type:"inlineCode",value:""}}function _e(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function Ae(){return{type:"emphasis",children:[]}}function Oe(){return{type:"heading",depth:0,children:[]}}function Ye(){return{type:"break"}}function Ve(){return{type:"html",value:""}}function xt(){return{type:"image",title:null,url:"",alt:null}}function qe(){return{type:"link",title:null,url:"",children:[]}}function Ke(C){return{type:"list",ordered:C.type==="listOrdered",start:null,spread:C._spread,children:[]}}function Je(C){return{type:"listItem",spread:C._spread,checked:null,children:[]}}function bt(){return{type:"paragraph",children:[]}}function Ze(){return{type:"strong",children:[]}}function yt(){return{type:"text",value:""}}function et(){return{type:"thematicBreak"}}}function je(e){return{line:e.line,column:e.column,offset:e.offset}}function Ai(e,t){let n=-1;for(;++n<t.length;){const r=t[n];Array.isArray(r)?Ai(e,r):gs(e,r)}}function gs(e,t){let n;for(n in t)if(Ei.call(t,n))switch(n){case"canContainEols":{const r=t[n];r&&e[n].push(...r);break}case"transforms":{const r=t[n];r&&e[n].push(...r);break}case"enter":case"exit":{const r=t[n];r&&Object.assign(e[n],r);break}}}function Er(e,t){throw e?new Error("Cannot close `"+e.type+"` ("+At({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+At({start:t.start,end:t.end})+") is open"):new Error("Cannot close document, a token (`"+t.type+"`, "+At({start:t.start,end:t.end})+") is still open")}function ks(e){const t=this;t.parser=n;function n(r){return ds(r,{...t.data("settings"),...e,extensions:t.data("micromarkExtensions")||[],mdastExtensions:t.data("fromMarkdownExtensions")||[]})}}function xs(e,t){const n={type:"element",tagName:"blockquote",properties:{},children:e.wrap(e.all(t),!0)};return e.patch(t,n),e.applyData(t,n)}function bs(e,t){const n={type:"element",tagName:"br",properties:{},children:[]};return e.patch(t,n),[e.applyData(t,n),{type:"text",value:`
19
+ `}]}function ys(e,t){const n=t.value?t.value+`
20
+ `:"",r={},i=t.lang?t.lang.split(/\s+/):[];i.length>0&&(r.className=["language-"+i[0]]);let a={type:"element",tagName:"code",properties:r,children:[{type:"text",value:n}]};return t.meta&&(a.data={meta:t.meta}),e.patch(t,a),a=e.applyData(t,a),a={type:"element",tagName:"pre",properties:{},children:[a]},e.patch(t,a),a}function ws(e,t){const n={type:"element",tagName:"del",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function Ss(e,t){const n={type:"element",tagName:"em",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function Cs(e,t){const n=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",r=String(t.identifier).toUpperCase(),i=kt(r.toLowerCase()),a=e.footnoteOrder.indexOf(r);let o,l=e.footnoteCounts.get(r);l===void 0?(l=0,e.footnoteOrder.push(r),o=e.footnoteOrder.length):o=a+1,l+=1,e.footnoteCounts.set(r,l);const c={type:"element",tagName:"a",properties:{href:"#"+n+"fn-"+i,id:n+"fnref-"+i+(l>1?"-"+l:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(o)}]};e.patch(t,c);const u={type:"element",tagName:"sup",properties:{},children:[c]};return e.patch(t,u),e.applyData(t,u)}function vs(e,t){const n={type:"element",tagName:"h"+t.depth,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function Es(e,t){if(e.options.allowDangerousHtml){const n={type:"raw",value:t.value};return e.patch(t,n),e.applyData(t,n)}}function Ii(e,t){const n=t.referenceType;let r="]";if(n==="collapsed"?r+="[]":n==="full"&&(r+="["+(t.label||t.identifier)+"]"),t.type==="imageReference")return[{type:"text",value:"!["+t.alt+r}];const i=e.all(t),a=i[0];a&&a.type==="text"?a.value="["+a.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 As(e,t){const n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return Ii(e,t);const i={src:kt(r.url||""),alt:t.alt};r.title!==null&&r.title!==void 0&&(i.title=r.title);const a={type:"element",tagName:"img",properties:i,children:[]};return e.patch(t,a),e.applyData(t,a)}function Is(e,t){const n={src:kt(t.url)};t.alt!==null&&t.alt!==void 0&&(n.alt=t.alt),t.title!==null&&t.title!==void 0&&(n.title=t.title);const r={type:"element",tagName:"img",properties:n,children:[]};return e.patch(t,r),e.applyData(t,r)}function Ts(e,t){const n={type:"text",value:t.value.replace(/\r?\n|\r/g," ")};e.patch(t,n);const r={type:"element",tagName:"code",properties:{},children:[n]};return e.patch(t,r),e.applyData(t,r)}function Ds(e,t){const n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return Ii(e,t);const i={href:kt(r.url||"")};r.title!==null&&r.title!==void 0&&(i.title=r.title);const a={type:"element",tagName:"a",properties:i,children:e.all(t)};return e.patch(t,a),e.applyData(t,a)}function Ms(e,t){const n={href:kt(t.url)};t.title!==null&&t.title!==void 0&&(n.title=t.title);const r={type:"element",tagName:"a",properties:n,children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function Fs(e,t,n){const r=e.all(t),i=n?Ls(n):Ti(t),a={},o=[];if(typeof t.checked=="boolean"){const f=r[0];let p;f&&f.type==="element"&&f.tagName==="p"?p=f:(p={type:"element",tagName:"p",properties:{},children:[]},r.unshift(p)),p.children.length>0&&p.children.unshift({type:"text",value:" "}),p.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:t.checked,disabled:!0},children:[]}),a.className=["task-list-item"]}let l=-1;for(;++l<r.length;){const f=r[l];(i||l!==0||f.type!=="element"||f.tagName!=="p")&&o.push({type:"text",value:`
21
+ `}),f.type==="element"&&f.tagName==="p"&&!i?o.push(...f.children):o.push(f)}const c=r[r.length-1];c&&(i||c.type!=="element"||c.tagName!=="p")&&o.push({type:"text",value:`
22
+ `});const u={type:"element",tagName:"li",properties:a,children:o};return e.patch(t,u),e.applyData(t,u)}function Ls(e){let t=!1;if(e.type==="list"){t=e.spread||!1;const n=e.children;let r=-1;for(;!t&&++r<n.length;)t=Ti(n[r])}return t}function Ti(e){const t=e.spread;return t??e.children.length>1}function zs(e,t){const n={},r=e.all(t);let i=-1;for(typeof t.start=="number"&&t.start!==1&&(n.start=t.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")){n.className=["contains-task-list"];break}}const a={type:"element",tagName:t.ordered?"ol":"ul",properties:n,children:e.wrap(r,!0)};return e.patch(t,a),e.applyData(t,a)}function Ns(e,t){const n={type:"element",tagName:"p",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function Ps(e,t){const n={type:"root",children:e.wrap(e.all(t))};return e.patch(t,n),e.applyData(t,n)}function Rs(e,t){const n={type:"element",tagName:"strong",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function Bs(e,t){const n=e.all(t),r=n.shift(),i=[];if(r){const o={type:"element",tagName:"thead",properties:{},children:e.wrap([r],!0)};e.patch(t.children[0],o),i.push(o)}if(n.length>0){const o={type:"element",tagName:"tbody",properties:{},children:e.wrap(n,!0)},l=_n(t.children[1]),c=ai(t.children[t.children.length-1]);l&&c&&(o.position={start:l,end:c}),i.push(o)}const a={type:"element",tagName:"table",properties:{},children:e.wrap(i,!0)};return e.patch(t,a),e.applyData(t,a)}function _s(e,t,n){const r=n?n.children:void 0,a=(r?r.indexOf(t):1)===0?"th":"td",o=n&&n.type==="table"?n.align:void 0,l=o?o.length:t.children.length;let c=-1;const u=[];for(;++c<l;){const p=t.children[c],d={},m=o?o[c]:void 0;m&&(d.align=m);let b={type:"element",tagName:a,properties:d,children:[]};p&&(b.children=e.all(p),e.patch(p,b),b=e.applyData(p,b)),u.push(b)}const f={type:"element",tagName:"tr",properties:{},children:e.wrap(u,!0)};return e.patch(t,f),e.applyData(t,f)}function js(e,t){const n={type:"element",tagName:"td",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}const Ar=9,Ir=32;function Hs(e){const t=String(e),n=/\r?\n|\r/g;let r=n.exec(t),i=0;const a=[];for(;r;)a.push(Tr(t.slice(i,r.index),i>0,!0),r[0]),i=r.index+r[0].length,r=n.exec(t);return a.push(Tr(t.slice(i),i>0,!1)),a.join("")}function Tr(e,t,n){let r=0,i=e.length;if(t){let a=e.codePointAt(r);for(;a===Ar||a===Ir;)r++,a=e.codePointAt(r)}if(n){let a=e.codePointAt(i-1);for(;a===Ar||a===Ir;)i--,a=e.codePointAt(i-1)}return i>r?e.slice(r,i):""}function Os(e,t){const n={type:"text",value:Hs(String(t.value))};return e.patch(t,n),e.applyData(t,n)}function Vs(e,t){const n={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(t,n),e.applyData(t,n)}const qs={blockquote:xs,break:bs,code:ys,delete:ws,emphasis:Ss,footnoteReference:Cs,heading:vs,html:Es,imageReference:As,image:Is,inlineCode:Ts,linkReference:Ds,link:Ms,listItem:Fs,list:zs,paragraph:Ns,root:Ps,strong:Rs,table:Bs,tableCell:js,tableRow:_s,text:Os,thematicBreak:Vs,toml:Bt,yaml:Bt,definition:Bt,footnoteDefinition:Bt};function Bt(){}const Di=-1,Qt=0,Tt=1,qt=2,Wn=3,$n=4,Gn=5,Xn=6,Mi=7,Fi=8,Li=typeof self=="object"?self:globalThis,Dr=(e,t)=>{switch(e){case"Function":case"SharedWorker":case"Worker":case"eval":case"setInterval":case"setTimeout":throw new TypeError("unable to deserialize "+e)}return new Li[e](t)},Us=(e,t)=>{const n=(i,a)=>(e.set(a,i),i),r=i=>{if(e.has(i))return e.get(i);const[a,o]=t[i];switch(a){case Qt:case Di:return n(o,i);case Tt:{const l=n([],i);for(const c of o)l.push(r(c));return l}case qt:{const l=n({},i);for(const[c,u]of o)l[r(c)]=r(u);return l}case Wn:return n(new Date(o),i);case $n:{const{source:l,flags:c}=o;return n(new RegExp(l,c),i)}case Gn:{const l=n(new Map,i);for(const[c,u]of o)l.set(r(c),r(u));return l}case Xn:{const l=n(new Set,i);for(const c of o)l.add(r(c));return l}case Mi:{const{name:l,message:c}=o;return n(typeof Li[l]=="function"?Dr(l,c):new Error(c),i)}case Fi:return n(BigInt(o),i);case"BigInt":return n(Object(BigInt(o)),i);case"ArrayBuffer":return n(new Uint8Array(o).buffer,o);case"DataView":{const{buffer:l}=new Uint8Array(o);return n(new DataView(l),o)}}return n(Dr(a,o),i)};return r},Mr=e=>Us(new Map,e)(0),$e="",{toString:Ws}={},{keys:$s}=Object,Et=e=>{const t=typeof e;if(t!=="object"||!e)return[Qt,t];const n=Ws.call(e).slice(8,-1);switch(n){case"Array":return[Tt,$e];case"Object":return[qt,$e];case"Date":return[Wn,$e];case"RegExp":return[$n,$e];case"Map":return[Gn,$e];case"Set":return[Xn,$e];case"DataView":return[Tt,n]}return n.includes("Array")?[Tt,n]:e instanceof Error?[Mi,e.name||"Error"]:[qt,n]},_t=([e,t])=>e===Qt&&(t==="function"||t==="symbol"),Gs=(e,t,n,r)=>{const i=(o,l)=>{const c=r.push(o)-1;return n.set(l,c),c},a=o=>{if(n.has(o))return n.get(o);let[l,c]=Et(o);switch(l){case Qt:{let f=o;switch(c){case"bigint":l=Fi,f=o.toString();break;case"function":case"symbol":if(e)throw new TypeError("unable to serialize "+c);f=null;break;case"undefined":return i([Di],o)}return i([l,f],o)}case Tt:{if(c){let d=o;return c==="DataView"?d=new Uint8Array(o.buffer):c==="ArrayBuffer"&&(d=new Uint8Array(o)),i([c,[...d]],o)}const f=[],p=i([l,f],o);for(const d of o)f.push(a(d));return p}case qt:{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(t&&"toJSON"in o)return a(o.toJSON());const f=[],p=i([l,f],o);for(const d of $s(o))(e||!_t(Et(o[d])))&&f.push([a(d),a(o[d])]);return p}case Wn:return i([l,isNaN(o.getTime())?$e:o.toISOString()],o);case $n:{const{source:f,flags:p}=o;return i([l,{source:f,flags:p}],o)}case Gn:{const f=[],p=i([l,f],o);for(const[d,m]of o)(e||!(_t(Et(d))||_t(Et(m))))&&f.push([a(d),a(m)]);return p}case Xn:{const f=[],p=i([l,f],o);for(const d of o)(e||!_t(Et(d)))&&f.push(a(d));return p}}const{message:u}=o;return i([l,{name:c,message:u}],o)};return a},Fr=(e,{json:t,lossy:n}={})=>{const r=[];return Gs(!(t||n),!!t,new Map,r)(e),r},Ut=typeof structuredClone=="function"?(e,t)=>t&&("json"in t||"lossy"in t)?Mr(Fr(e,t)):structuredClone(e):(e,t)=>Mr(Fr(e,t));function Xs(e,t){const n=[{type:"text",value:"↩"}];return t>1&&n.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(t)}]}),n}function Qs(e,t){return"Back to reference "+(e+1)+(t>1?"-"+t:"")}function Ys(e){const t=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",n=e.options.footnoteBackContent||Xs,r=e.options.footnoteBackLabel||Qs,i=e.options.footnoteLabel||"Footnotes",a=e.options.footnoteLabelTagName||"h2",o=e.options.footnoteLabelProperties||{className:["sr-only"]},l=[];let c=-1;for(;++c<e.footnoteOrder.length;){const u=e.footnoteById.get(e.footnoteOrder[c]);if(!u)continue;const f=e.all(u),p=String(u.identifier).toUpperCase(),d=kt(p.toLowerCase());let m=0;const b=[],A=e.footnoteCounts.get(p);for(;A!==void 0&&++m<=A;){b.length>0&&b.push({type:"text",value:" "});let I=typeof n=="string"?n:n(c,m);typeof I=="string"&&(I={type:"text",value:I}),b.push({type:"element",tagName:"a",properties:{href:"#"+t+"fnref-"+d+(m>1?"-"+m:""),dataFootnoteBackref:"",ariaLabel:typeof r=="string"?r:r(c,m),className:["data-footnote-backref"]},children:Array.isArray(I)?I:[I]})}const E=f[f.length-1];if(E&&E.type==="element"&&E.tagName==="p"){const I=E.children[E.children.length-1];I&&I.type==="text"?I.value+=" ":E.children.push({type:"text",value:" "}),E.children.push(...b)}else f.push(...b);const y={type:"element",tagName:"li",properties:{id:t+"fn-"+d},children:e.wrap(f,!0)};e.patch(u,y),l.push(y)}if(l.length!==0)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:a,properties:{...Ut(o),id:"footnote-label"},children:[{type:"text",value:i}]},{type:"text",value:`
23
+ `},{type:"element",tagName:"ol",properties:{},children:e.wrap(l,!0)},{type:"text",value:`
24
+ `}]}}const Yt=(function(e){if(e==null)return eu;if(typeof e=="function")return Kt(e);if(typeof e=="object")return Array.isArray(e)?Ks(e):Js(e);if(typeof e=="string")return Zs(e);throw new Error("Expected function, string, or object as test")});function Ks(e){const t=[];let n=-1;for(;++n<e.length;)t[n]=Yt(e[n]);return Kt(r);function r(...i){let a=-1;for(;++a<t.length;)if(t[a].apply(this,i))return!0;return!1}}function Js(e){const t=e;return Kt(n);function n(r){const i=r;let a;for(a in e)if(i[a]!==t[a])return!1;return!0}}function Zs(e){return Kt(t);function t(n){return n&&n.type===e}}function Kt(e){return t;function t(n,r,i){return!!(tu(n)&&e.call(this,n,typeof r=="number"?r:void 0,i||void 0))}}function eu(){return!0}function tu(e){return e!==null&&typeof e=="object"&&"type"in e}const zi=[],nu=!0,Dn=!1,ru="skip";function Ni(e,t,n,r){let i;typeof t=="function"&&typeof n!="function"?(r=n,n=t):i=t;const a=Yt(i),o=r?-1:1;l(e,void 0,[])();function l(c,u,f){const p=c&&typeof c=="object"?c:{};if(typeof p.type=="string"){const m=typeof p.tagName=="string"?p.tagName:typeof p.name=="string"?p.name:void 0;Object.defineProperty(d,"name",{value:"node ("+(c.type+(m?"<"+m+">":""))+")"})}return d;function d(){let m=zi,b,A,E;if((!t||a(c,u,f[f.length-1]||void 0))&&(m=iu(n(c,f)),m[0]===Dn))return m;if("children"in c&&c.children){const y=c;if(y.children&&m[0]!==ru)for(A=(r?y.children.length:-1)+o,E=f.concat(y);A>-1&&A<y.children.length;){const I=y.children[A];if(b=l(I,A,E)(),b[0]===Dn)return b;A=typeof b[1]=="number"?b[1]:A+o}}return m}}}function iu(e){return Array.isArray(e)?e:typeof e=="number"?[nu,e]:e==null?zi:[e]}function Qn(e,t,n,r){let i,a,o;typeof t=="function"&&typeof n!="function"?(a=void 0,o=t,i=n):(a=t,o=n,i=r),Ni(e,a,l,i);function l(c,u){const f=u[u.length-1],p=f?f.children.indexOf(c):void 0;return o(c,p,f)}}const Mn={}.hasOwnProperty,ou={};function au(e,t){const n=t||ou,r=new Map,i=new Map,a=new Map,o={...qs,...n.handlers},l={all:u,applyData:su,definitionById:r,footnoteById:i,footnoteCounts:a,footnoteOrder:[],handlers:o,one:c,options:n,patch:lu,wrap:cu};return Qn(e,function(f){if(f.type==="definition"||f.type==="footnoteDefinition"){const p=f.type==="definition"?r:i,d=String(f.identifier).toUpperCase();p.has(d)||p.set(d,f)}}),l;function c(f,p){const d=f.type,m=l.handlers[d];if(Mn.call(l.handlers,d)&&m)return m(l,f,p);if(l.options.passThrough&&l.options.passThrough.includes(d)){if("children"in f){const{children:A,...E}=f,y=Ut(E);return y.children=l.all(f),y}return Ut(f)}return(l.options.unknownHandler||uu)(l,f,p)}function u(f){const p=[];if("children"in f){const d=f.children;let m=-1;for(;++m<d.length;){const b=l.one(d[m],f);if(b){if(m&&d[m-1].type==="break"&&(!Array.isArray(b)&&b.type==="text"&&(b.value=Lr(b.value)),!Array.isArray(b)&&b.type==="element")){const A=b.children[0];A&&A.type==="text"&&(A.value=Lr(A.value))}Array.isArray(b)?p.push(...b):p.push(b)}}}return p}}function lu(e,t){e.position&&(t.position=Wo(e))}function su(e,t){let n=t;if(e&&e.data){const r=e.data.hName,i=e.data.hChildren,a=e.data.hProperties;if(typeof r=="string")if(n.type==="element")n.tagName=r;else{const o="children"in n?n.children:[n];n={type:"element",tagName:r,properties:{},children:o}}n.type==="element"&&a&&Object.assign(n.properties,Ut(a)),"children"in n&&n.children&&i!==null&&i!==void 0&&(n.children=i)}return n}function uu(e,t){const n=t.data||{},r="value"in t&&!(Mn.call(n,"hProperties")||Mn.call(n,"hChildren"))?{type:"text",value:t.value}:{type:"element",tagName:"div",properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function cu(e,t){const n=[];let r=-1;for(t&&n.push({type:"text",value:`
25
+ `});++r<e.length;)r&&n.push({type:"text",value:`
26
+ `}),n.push(e[r]);return t&&e.length>0&&n.push({type:"text",value:`
27
+ `}),n}function Lr(e){let t=0,n=e.charCodeAt(t);for(;n===9||n===32;)t++,n=e.charCodeAt(t);return e.slice(t)}function zr(e,t){const n=au(e,t),r=n.one(e,void 0),i=Ys(n),a=Array.isArray(r)?{type:"root",children:r}:r||{type:"root",children:[]};return i&&(g("children"in a),a.children.push({type:"text",value:`
28
+ `},i)),a}function pu(e,t){return e&&"run"in e?async function(n,r){const i=zr(n,{file:r,...t});await e.run(i,r)}:function(n,r){return zr(n,{file:r,...e||t})}}function Nr(e){if(e)throw e}var un,Pr;function fu(){if(Pr)return un;Pr=1;var e=Object.prototype.hasOwnProperty,t=Object.prototype.toString,n=Object.defineProperty,r=Object.getOwnPropertyDescriptor,i=function(u){return typeof Array.isArray=="function"?Array.isArray(u):t.call(u)==="[object Array]"},a=function(u){if(!u||t.call(u)!=="[object Object]")return!1;var f=e.call(u,"constructor"),p=u.constructor&&u.constructor.prototype&&e.call(u.constructor.prototype,"isPrototypeOf");if(u.constructor&&!f&&!p)return!1;var d;for(d in u);return typeof d>"u"||e.call(u,d)},o=function(u,f){n&&f.name==="__proto__"?n(u,f.name,{enumerable:!0,configurable:!0,value:f.newValue,writable:!0}):u[f.name]=f.newValue},l=function(u,f){if(f==="__proto__")if(e.call(u,f)){if(r)return r(u,f).value}else return;return u[f]};return un=function c(){var u,f,p,d,m,b,A=arguments[0],E=1,y=arguments.length,I=!1;for(typeof A=="boolean"&&(I=A,A=arguments[1]||{},E=2),(A==null||typeof A!="object"&&typeof A!="function")&&(A={});E<y;++E)if(u=arguments[E],u!=null)for(f in u)p=l(A,f),d=l(u,f),A!==d&&(I&&d&&(a(d)||(m=i(d)))?(m?(m=!1,b=p&&i(p)?p:[]):b=p&&a(p)?p:{},o(A,{name:f,newValue:c(I,b,d)})):typeof d<"u"&&o(A,{name:f,newValue:d}));return A},un}var hu=fu();const cn=Pn(hu);function Fn(e){if(typeof e!="object"||e===null)return!1;const t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function du(){const e=[],t={run:n,use:r};return t;function n(...i){let a=-1;const o=i.pop();if(typeof o!="function")throw new TypeError("Expected function as last argument, not "+o);l(null,...i);function l(c,...u){const f=e[++a];let p=-1;if(c){o(c);return}for(;++p<i.length;)(u[p]===null||u[p]===void 0)&&(u[p]=i[p]);i=u,f?mu(f,l)(...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),t}}function mu(e,t){let n;return r;function r(...o){const l=e.length>o.length;let c;l&&o.push(i);try{c=e.apply(this,o)}catch(u){const f=u;if(l&&n)throw f;return i(f)}l||(c&&c.then&&typeof c.then=="function"?c.then(a,i):c instanceof Error?i(c):a(c))}function i(o,...l){n||(n=!0,t(o,...l))}function a(o){i(null,o)}}const Fe={basename:gu,dirname:ku,extname:xu,join:bu,sep:"/"};function gu(e,t){if(t!==void 0&&typeof t!="string")throw new TypeError('"ext" argument must be a string');zt(e);let n=0,r=-1,i=e.length,a;if(t===void 0||t.length===0||t.length>e.length){for(;i--;)if(e.codePointAt(i)===47){if(a){n=i+1;break}}else r<0&&(a=!0,r=i+1);return r<0?"":e.slice(n,r)}if(t===e)return"";let o=-1,l=t.length-1;for(;i--;)if(e.codePointAt(i)===47){if(a){n=i+1;break}}else o<0&&(a=!0,o=i+1),l>-1&&(e.codePointAt(i)===t.codePointAt(l--)?l<0&&(r=i):(l=-1,r=o));return n===r?r=o:r<0&&(r=e.length),e.slice(n,r)}function ku(e){if(zt(e),e.length===0)return".";let t=-1,n=e.length,r;for(;--n;)if(e.codePointAt(n)===47){if(r){t=n;break}}else r||(r=!0);return t<0?e.codePointAt(0)===47?"/":".":t===1&&e.codePointAt(0)===47?"//":e.slice(0,t)}function xu(e){zt(e);let t=e.length,n=-1,r=0,i=-1,a=0,o;for(;t--;){const l=e.codePointAt(t);if(l===47){if(o){r=t+1;break}continue}n<0&&(o=!0,n=t+1),l===46?i<0?i=t:a!==1&&(a=1):i>-1&&(a=-1)}return i<0||n<0||a===0||a===1&&i===n-1&&i===r+1?"":e.slice(i,n)}function bu(...e){let t=-1,n;for(;++t<e.length;)zt(e[t]),e[t]&&(n=n===void 0?e[t]:n+"/"+e[t]);return n===void 0?".":yu(n)}function yu(e){zt(e);const t=e.codePointAt(0)===47;let n=wu(e,!t);return n.length===0&&!t&&(n="."),n.length>0&&e.codePointAt(e.length-1)===47&&(n+="/"),t?"/"+n:n}function wu(e,t){let n="",r=0,i=-1,a=0,o=-1,l,c;for(;++o<=e.length;){if(o<e.length)l=e.codePointAt(o);else{if(l===47)break;l=47}if(l===47){if(!(i===o-1||a===1))if(i!==o-1&&a===2){if(n.length<2||r!==2||n.codePointAt(n.length-1)!==46||n.codePointAt(n.length-2)!==46){if(n.length>2){if(c=n.lastIndexOf("/"),c!==n.length-1){c<0?(n="",r=0):(n=n.slice(0,c),r=n.length-1-n.lastIndexOf("/")),i=o,a=0;continue}}else if(n.length>0){n="",r=0,i=o,a=0;continue}}t&&(n=n.length>0?n+"/..":"..",r=2)}else n.length>0?n+="/"+e.slice(i+1,o):n=e.slice(i+1,o),r=o-i-1;i=o,a=0}else l===46&&a>-1?a++:a=-1}return n}function zt(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const Su={cwd:Cu};function Cu(){return"/"}function Ln(e){return!!(e!==null&&typeof e=="object"&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&e.auth===void 0)}function vu(e){if(typeof e=="string")e=new URL(e);else if(!Ln(e)){const t=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");throw t.code="ERR_INVALID_ARG_TYPE",t}if(e.protocol!=="file:"){const t=new TypeError("The URL must be of scheme file");throw t.code="ERR_INVALID_URL_SCHEME",t}return Eu(e)}function Eu(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 t=e.pathname;let n=-1;for(;++n<t.length;)if(t.codePointAt(n)===37&&t.codePointAt(n+1)===50){const r=t.codePointAt(n+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(t)}const pn=["history","path","basename","stem","extname","dirname"];class Pi{constructor(t){let n;t?Ln(t)?n={path:t}:typeof t=="string"||Au(t)?n={value:t}:n=t:n={},this.cwd="cwd"in n?"":Su.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let r=-1;for(;++r<pn.length;){const a=pn[r];a in n&&n[a]!==void 0&&n[a]!==null&&(this[a]=a==="history"?[...n[a]]:n[a])}let i;for(i in n)pn.includes(i)||(this[i]=n[i])}get basename(){return typeof this.path=="string"?Fe.basename(this.path):void 0}set basename(t){hn(t,"basename"),fn(t,"basename"),this.path=Fe.join(this.dirname||"",t)}get dirname(){return typeof this.path=="string"?Fe.dirname(this.path):void 0}set dirname(t){Rr(this.basename,"dirname"),this.path=Fe.join(t||"",this.basename)}get extname(){return typeof this.path=="string"?Fe.extname(this.path):void 0}set extname(t){if(fn(t,"extname"),Rr(this.dirname,"extname"),t){if(t.codePointAt(0)!==46)throw new Error("`extname` must start with `.`");if(t.includes(".",1))throw new Error("`extname` cannot contain multiple dots")}this.path=Fe.join(this.dirname,this.stem+(t||""))}get path(){return this.history[this.history.length-1]}set path(t){Ln(t)&&(t=vu(t)),hn(t,"path"),this.path!==t&&this.history.push(t)}get stem(){return typeof this.path=="string"?Fe.basename(this.path,this.extname):void 0}set stem(t){hn(t,"stem"),fn(t,"stem"),this.path=Fe.join(this.dirname||"",t+(this.extname||""))}fail(t,n,r){const i=this.message(t,n,r);throw i.fatal=!0,i}info(t,n,r){const i=this.message(t,n,r);return i.fatal=void 0,i}message(t,n,r){const i=new pe(t,n,r);return this.path&&(i.name=this.path+":"+i.name,i.file=this.path),i.fatal=!1,this.messages.push(i),i}toString(t){return this.value===void 0?"":typeof this.value=="string"?this.value:new TextDecoder(t||void 0).decode(this.value)}}function fn(e,t){if(e&&e.includes(Fe.sep))throw new Error("`"+t+"` cannot be a path: did not expect `"+Fe.sep+"`")}function hn(e,t){if(!e)throw new Error("`"+t+"` cannot be empty")}function Rr(e,t){if(!e)throw new Error("Setting `"+t+"` requires `path` to be set too")}function Au(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const Iu=(function(e){const r=this.constructor.prototype,i=r[e],a=function(){return i.apply(a,arguments)};return Object.setPrototypeOf(a,r),a}),Tu={}.hasOwnProperty;class Yn extends Iu{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=du()}copy(){const t=new Yn;let n=-1;for(;++n<this.attachers.length;){const r=this.attachers[n];t.use(...r)}return t.data(cn(!0,{},this.namespace)),t}data(t,n){return typeof t=="string"?arguments.length===2?(gn("data",this.frozen),this.namespace[t]=n,this):Tu.call(this.namespace,t)&&this.namespace[t]||void 0:t?(gn("data",this.frozen),this.namespace=t,this):this.namespace}freeze(){if(this.frozen)return this;const t=this;for(;++this.freezeIndex<this.attachers.length;){const[n,...r]=this.attachers[this.freezeIndex];if(r[0]===!1)continue;r[0]===!0&&(r[0]=void 0);const i=n.call(t,...r);typeof i=="function"&&this.transformers.use(i)}return this.frozen=!0,this.freezeIndex=Number.POSITIVE_INFINITY,this}parse(t){this.freeze();const n=jt(t),r=this.parser||this.Parser;return dn("parse",r),r(String(n),n)}process(t,n){const r=this;return this.freeze(),dn("process",this.parser||this.Parser),mn("process",this.compiler||this.Compiler),n?i(void 0,n):new Promise(i);function i(a,o){const l=jt(t),c=r.parse(l);r.run(c,l,function(f,p,d){if(f||!p||!d)return u(f);const m=p,b=r.stringify(m,d);Fu(b)?d.value=b:d.result=b,u(f,d)});function u(f,p){f||!p?o(f):a?a(p):(g(n,"`done` is defined if `resolve` is not"),n(void 0,p))}}}processSync(t){let n=!1,r;return this.freeze(),dn("processSync",this.parser||this.Parser),mn("processSync",this.compiler||this.Compiler),this.process(t,i),_r("processSync","process",n),g(r,"we either bailed on an error or have a tree"),r;function i(a,o){n=!0,Nr(a),r=o}}run(t,n,r){Br(t),this.freeze();const i=this.transformers;return!r&&typeof n=="function"&&(r=n,n=void 0),r?a(void 0,r):new Promise(a);function a(o,l){g(typeof n!="function","`file` can’t be a `done` anymore, we checked");const c=jt(n);i.run(t,c,u);function u(f,p,d){const m=p||t;f?l(f):o?o(m):(g(r,"`done` is defined if `resolve` is not"),r(void 0,m,d))}}}runSync(t,n){let r=!1,i;return this.run(t,n,a),_r("runSync","run",r),g(i,"we either bailed on an error or have a tree"),i;function a(o,l){Nr(o),i=l,r=!0}}stringify(t,n){this.freeze();const r=jt(n),i=this.compiler||this.Compiler;return mn("stringify",i),Br(t),i(t,r)}use(t,...n){const r=this.attachers,i=this.namespace;if(gn("use",this.frozen),t!=null)if(typeof t=="function")c(t,n);else if(typeof t=="object")Array.isArray(t)?l(t):o(t);else throw new TypeError("Expected usable value, not `"+t+"`");return this;function a(u){if(typeof u=="function")c(u,[]);else if(typeof u=="object")if(Array.isArray(u)){const[f,...p]=u;c(f,p)}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");l(u.plugins),u.settings&&(i.settings=cn(!0,i.settings,u.settings))}function l(u){let f=-1;if(u!=null)if(Array.isArray(u))for(;++f<u.length;){const p=u[f];a(p)}else throw new TypeError("Expected a list of plugins, not `"+u+"`")}function c(u,f){let p=-1,d=-1;for(;++p<r.length;)if(r[p][0]===u){d=p;break}if(d===-1)r.push([u,...f]);else if(f.length>0){let[m,...b]=f;const A=r[d][1];Fn(A)&&Fn(m)&&(m=cn(!0,A,m)),r[d]=[u,m,...b]}}}}const Du=new Yn().freeze();function dn(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `parser`")}function mn(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `compiler`")}function gn(e,t){if(t)throw new Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function Br(e){if(!Fn(e)||typeof e.type!="string")throw new TypeError("Expected node, got `"+e+"`")}function _r(e,t,n){if(!n)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}function jt(e){return Mu(e)?e:new Pi(e)}function Mu(e){return!!(e&&typeof e=="object"&&"message"in e&&"messages"in e)}function Fu(e){return typeof e=="string"||Lu(e)}function Lu(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const zu="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",jr=[],Hr={allowDangerousHtml:!0},Nu=/^(https?|ircs?|mailto|xmpp)$/i,Pu=[{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 Ru(e){const t=Bu(e),n=_u(e);return ju(t.runSync(t.parse(n),n),e)}function Bu(e){const t=e.rehypePlugins||jr,n=e.remarkPlugins||jr,r=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...Hr}:Hr;return Du().use(ks).use(n).use(pu,r).use(t)}function _u(e){const t=e.children||"",n=new Pi;return typeof t=="string"?n.value=t:Sn("Unexpected value `"+t+"` for `children` prop, expected `string`"),n}function ju(e,t){const n=t.allowedElements,r=t.allowElement,i=t.components,a=t.disallowedElements,o=t.skipHtml,l=t.unwrapDisallowed,c=t.urlTransform||Hu;for(const f of Pu)Object.hasOwn(t,f.from)&&Sn("Unexpected `"+f.from+"` prop, "+(f.to?"use `"+f.to+"` instead":"remove it")+" (see <"+zu+"#"+f.id+"> for more info)");return n&&a&&Sn("Unexpected combined `allowedElements` and `disallowedElements`, expected one or the other"),Qn(e,u),Yo(e,{Fragment:en.Fragment,components:i,ignoreInvalidStyle:!0,jsx:en.jsx,jsxs:en.jsxs,passKeys:!0,passNode:!0});function u(f,p,d){if(f.type==="raw"&&d&&typeof p=="number")return o?d.children.splice(p,1):d.children[p]={type:"text",value:f.value},p;if(f.type==="element"){let m;for(m in rn)if(Object.hasOwn(rn,m)&&Object.hasOwn(f.properties,m)){const b=f.properties[m],A=rn[m];(A===null||A.includes(f.tagName))&&(f.properties[m]=c(String(b||""),m,f))}}if(f.type==="element"){let m=n?!n.includes(f.tagName):a?a.includes(f.tagName):!1;if(!m&&r&&typeof p=="number"&&(m=!r(f,p,d)),m&&d&&typeof p=="number")return l&&f.children?d.children.splice(p,1,...f.children):d.children.splice(p,1),p}}}function Hu(e){const t=e.indexOf(":"),n=e.indexOf("?"),r=e.indexOf("#"),i=e.indexOf("/");return t===-1||i!==-1&&t>i||n!==-1&&t>n||r!==-1&&t>r||Nu.test(e.slice(0,t))?e:""}function Or(e,t){const n=String(e);if(typeof t!="string")throw new TypeError("Expected character");let r=0,i=n.indexOf(t);for(;i!==-1;)r++,i=n.indexOf(t,i+t.length);return r}function Ou(e){if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}function Vu(e,t,n){const i=Yt((n||{}).ignore||[]),a=qu(t);let o=-1;for(;++o<a.length;)Ni(e,"text",l);function l(u,f){let p=-1,d;for(;++p<f.length;){const m=f[p],b=d?d.children:void 0;if(i(m,b?b.indexOf(m):void 0,d))return;d=m}if(d)return c(u,f)}function c(u,f){const p=f[f.length-1],d=a[o][0],m=a[o][1];let b=0;const E=p.children.indexOf(u);let y=!1,I=[];d.lastIndex=0;let T=d.exec(u.value);for(;T;){const _=T.index,j={index:T.index,input:T.input,stack:[...f,u]};let w=m(...T,j);if(typeof w=="string"&&(w=w.length>0?{type:"text",value:w}:void 0),w===!1?d.lastIndex=_+1:(b!==_&&I.push({type:"text",value:u.value.slice(b,_)}),Array.isArray(w)?I.push(...w):w&&I.push(w),b=_+T[0].length,y=!0),!d.global)break;T=d.exec(u.value)}return y?(b<u.value.length&&I.push({type:"text",value:u.value.slice(b)}),p.children.splice(E,1,...I)):I=[u],E+I.length}}function qu(e){const t=[];if(!Array.isArray(e))throw new TypeError("Expected find and replace tuple or list of tuples");const n=!e[0]||Array.isArray(e[0])?e:[e];let r=-1;for(;++r<n.length;){const i=n[r];t.push([Uu(i[0]),Wu(i[1])])}return t}function Uu(e){return typeof e=="string"?new RegExp(Ou(e),"g"):e}function Wu(e){return typeof e=="function"?e:function(){return e}}const kn="phrasing",xn=["autolink","link","image","label"];function $u(){return{transforms:[Zu],enter:{literalAutolink:Xu,literalAutolinkEmail:bn,literalAutolinkHttp:bn,literalAutolinkWww:bn},exit:{literalAutolink:Ju,literalAutolinkEmail:Ku,literalAutolinkHttp:Qu,literalAutolinkWww:Yu}}}function Gu(){return{unsafe:[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:kn,notInConstruct:xn},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct:kn,notInConstruct:xn},{character:":",before:"[ps]",after:"\\/",inConstruct:kn,notInConstruct:xn}]}}function Xu(e){this.enter({type:"link",title:null,url:"",children:[]},e)}function bn(e){this.config.enter.autolinkProtocol.call(this,e)}function Qu(e){this.config.exit.autolinkProtocol.call(this,e)}function Yu(e){this.config.exit.data.call(this,e);const t=this.stack[this.stack.length-1];g(t.type==="link"),t.url="http://"+this.sliceSerialize(e)}function Ku(e){this.config.exit.autolinkEmail.call(this,e)}function Ju(e){this.exit(e)}function Zu(e){Vu(e,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,ec],[/(?<=^|\s|\p{P}|\p{S})([-.\w+]+)@([-\w]+(?:\.[-\w]+)+)/gu,tc]],{ignore:["link","linkReference"]})}function ec(e,t,n,r,i){let a="";if(!Ri(i)||(/^w/i.test(t)&&(n=t+n,t="",a="http://"),!nc(n)))return!1;const o=rc(n+r);if(!o[0])return!1;const l={type:"link",title:null,url:a+t+o[0],children:[{type:"text",value:t+o[0]}]};return o[1]?[l,{type:"text",value:o[1]}]:l}function tc(e,t,n,r){return!Ri(r,!0)||/[-\d_]$/.test(n)?!1:{type:"link",title:null,url:"mailto:"+t+"@"+n,children:[{type:"text",value:t+"@"+n}]}}function nc(e){const t=e.split(".");return!(t.length<2||t[t.length-1]&&(/_/.test(t[t.length-1])||!/[a-zA-Z\d]/.test(t[t.length-1]))||t[t.length-2]&&(/_/.test(t[t.length-2])||!/[a-zA-Z\d]/.test(t[t.length-2])))}function rc(e){const t=/[!"&'),.:;<>?\]}]+$/.exec(e);if(!t)return[e,void 0];e=e.slice(0,t.index);let n=t[0],r=n.indexOf(")");const i=Or(e,"(");let a=Or(e,")");for(;r!==-1&&i>a;)e+=n.slice(0,r+1),n=n.slice(r+1),r=n.indexOf(")"),a++;return[e,n]}function Ri(e,t){const n=e.input.charCodeAt(e.index-1);return(e.index===0||Xe(n)||Gt(n))&&(!t||n!==47)}Bi.peek=fc;function ic(){this.buffer()}function oc(e){this.enter({type:"footnoteReference",identifier:"",label:""},e)}function ac(){this.buffer()}function lc(e){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},e)}function sc(e){const t=this.resume(),n=this.stack[this.stack.length-1];g(n.type==="footnoteReference"),n.identifier=Ie(this.sliceSerialize(e)).toLowerCase(),n.label=t}function uc(e){this.exit(e)}function cc(e){const t=this.resume(),n=this.stack[this.stack.length-1];g(n.type==="footnoteDefinition"),n.identifier=Ie(this.sliceSerialize(e)).toLowerCase(),n.label=t}function pc(e){this.exit(e)}function fc(){return"["}function Bi(e,t,n,r){const i=n.createTracker(r);let a=i.move("[^");const o=n.enter("footnoteReference"),l=n.enter("reference");return a+=i.move(n.safe(n.associationId(e),{after:"]",before:a})),l(),o(),a+=i.move("]"),a}function hc(){return{enter:{gfmFootnoteCallString:ic,gfmFootnoteCall:oc,gfmFootnoteDefinitionLabelString:ac,gfmFootnoteDefinition:lc},exit:{gfmFootnoteCallString:sc,gfmFootnoteCall:uc,gfmFootnoteDefinitionLabelString:cc,gfmFootnoteDefinition:pc}}}function dc(e){let t=!1;return e&&e.firstLineBlank&&(t=!0),{handlers:{footnoteDefinition:n,footnoteReference:Bi},unsafe:[{character:"[",inConstruct:["label","phrasing","reference"]}]};function n(r,i,a,o){const l=a.createTracker(o);let c=l.move("[^");const u=a.enter("footnoteDefinition"),f=a.enter("label");return c+=l.move(a.safe(a.associationId(r),{before:c,after:"]"})),f(),c+=l.move("]:"),r.children&&r.children.length>0&&(l.shift(4),c+=l.move((t?`
29
+ `:" ")+a.indentLines(a.containerFlow(r,l.current()),t?_i:mc))),u(),c}}function mc(e,t,n){return t===0?e:_i(e,t,n)}function _i(e,t,n){return(n?"":" ")+e}const gc=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];ji.peek=wc;function kc(){return{canContainEols:["delete"],enter:{strikethrough:bc},exit:{strikethrough:yc}}}function xc(){return{unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:gc}],handlers:{delete:ji}}}function bc(e){this.enter({type:"delete",children:[]},e)}function yc(e){this.exit(e)}function ji(e,t,n,r){const i=n.createTracker(r),a=n.enter("strikethrough");let o=i.move("~~");return o+=n.containerPhrasing(e,{...i.current(),before:o,after:"~"}),o+=i.move("~~"),a(),o}function wc(){return"~"}function Sc(e){return e.length}function Cc(e,t){const n=t||{},r=(n.align||[]).concat(),i=n.stringLength||Sc,a=[],o=[],l=[],c=[];let u=0,f=-1;for(;++f<e.length;){const A=[],E=[];let y=-1;for(e[f].length>u&&(u=e[f].length);++y<e[f].length;){const I=vc(e[f][y]);if(n.alignDelimiters!==!1){const T=i(I);E[y]=T,(c[y]===void 0||T>c[y])&&(c[y]=T)}A.push(I)}o[f]=A,l[f]=E}let p=-1;if(typeof r=="object"&&"length"in r)for(;++p<u;)a[p]=Vr(r[p]);else{const A=Vr(r);for(;++p<u;)a[p]=A}p=-1;const d=[],m=[];for(;++p<u;){const A=a[p];let E="",y="";A===99?(E=":",y=":"):A===108?E=":":A===114&&(y=":");let I=n.alignDelimiters===!1?1:Math.max(1,c[p]-E.length-y.length);const T=E+"-".repeat(I)+y;n.alignDelimiters!==!1&&(I=E.length+I+y.length,I>c[p]&&(c[p]=I),m[p]=I),d[p]=T}o.splice(1,0,d),l.splice(1,0,m),f=-1;const b=[];for(;++f<o.length;){const A=o[f],E=l[f];p=-1;const y=[];for(;++p<u;){const I=A[p]||"";let T="",_="";if(n.alignDelimiters!==!1){const j=c[p]-(E[p]||0),w=a[p];w===114?T=" ".repeat(j):w===99?j%2?(T=" ".repeat(j/2+.5),_=" ".repeat(j/2-.5)):(T=" ".repeat(j/2),_=T):_=" ".repeat(j)}n.delimiterStart!==!1&&!p&&y.push("|"),n.padding!==!1&&!(n.alignDelimiters===!1&&I==="")&&(n.delimiterStart!==!1||p)&&y.push(" "),n.alignDelimiters!==!1&&y.push(T),y.push(I),n.alignDelimiters!==!1&&y.push(_),n.padding!==!1&&y.push(" "),(n.delimiterEnd!==!1||p!==u-1)&&y.push("|")}b.push(n.delimiterEnd===!1?y.join("").replace(/ +$/,""):y.join(""))}return b.join(`
30
+ `)}function vc(e){return e==null?"":String(e)}function Vr(e){const t=typeof e=="string"?e.codePointAt(0):0;return t===67||t===99?99:t===76||t===108?108:t===82||t===114?114:0}function Ec(e,t,n,r){const i=n.enter("blockquote"),a=n.createTracker(r);a.move("> "),a.shift(2);const o=n.indentLines(n.containerFlow(e,a.current()),Ac);return i(),o}function Ac(e,t,n){return">"+(n?"":" ")+e}function Ic(e,t){return qr(e,t.inConstruct,!0)&&!qr(e,t.notInConstruct,!1)}function qr(e,t,n){if(typeof t=="string"&&(t=[t]),!t||t.length===0)return n;let r=-1;for(;++r<t.length;)if(e.includes(t[r]))return!0;return!1}function Ur(e,t,n,r){let i=-1;for(;++i<n.unsafe.length;)if(n.unsafe[i].character===`
31
+ `&&Ic(n.stack,n.unsafe[i]))return/[ \t]/.test(r.before)?"":" ";return`\\
32
+ `}function Tc(e,t){const n=String(e);let r=n.indexOf(t),i=r,a=0,o=0;if(typeof t!="string")throw new TypeError("Expected substring");for(;r!==-1;)r===i?++a>o&&(o=a):a=1,i=r+t.length,r=n.indexOf(t,i);return o}function Dc(e,t){return!!(t.options.fences===!1&&e.value&&!e.lang&&/[^ \r\n]/.test(e.value)&&!/^[\t ]*(?:[\r\n]|$)|(?:^|[\r\n])[\t ]*$/.test(e.value))}function Mc(e){const t=e.options.fence||"`";if(t!=="`"&&t!=="~")throw new Error("Cannot serialize code with `"+t+"` for `options.fence`, expected `` ` `` or `~`");return t}function Fc(e,t,n,r){const i=Mc(n),a=e.value||"",o=i==="`"?"GraveAccent":"Tilde";if(Dc(e,n)){const p=n.enter("codeIndented"),d=n.indentLines(a,Lc);return p(),d}const l=n.createTracker(r),c=i.repeat(Math.max(Tc(a,i)+1,3)),u=n.enter("codeFenced");let f=l.move(c);if(e.lang){const p=n.enter(`codeFencedLang${o}`);f+=l.move(n.safe(e.lang,{before:f,after:" ",encode:["`"],...l.current()})),p()}if(e.lang&&e.meta){const p=n.enter(`codeFencedMeta${o}`);f+=l.move(" "),f+=l.move(n.safe(e.meta,{before:f,after:`
33
+ `,encode:["`"],...l.current()})),p()}return f+=l.move(`
34
+ `),a&&(f+=l.move(a+`
35
+ `)),f+=l.move(c),u(),f}function Lc(e,t,n){return(n?"":" ")+e}function Kn(e){const t=e.options.quote||'"';if(t!=='"'&&t!=="'")throw new Error("Cannot serialize title with `"+t+"` for `options.quote`, expected `\"`, or `'`");return t}function zc(e,t,n,r){const i=Kn(n),a=i==='"'?"Quote":"Apostrophe",o=n.enter("definition");let l=n.enter("label");const c=n.createTracker(r);let u=c.move("[");return u+=c.move(n.safe(n.associationId(e),{before:u,after:"]",...c.current()})),u+=c.move("]: "),l(),!e.url||/[\0- \u007F]/.test(e.url)?(l=n.enter("destinationLiteral"),u+=c.move("<"),u+=c.move(n.safe(e.url,{before:u,after:">",...c.current()})),u+=c.move(">")):(l=n.enter("destinationRaw"),u+=c.move(n.safe(e.url,{before:u,after:e.title?" ":`
36
+ `,...c.current()}))),l(),e.title&&(l=n.enter(`title${a}`),u+=c.move(" "+i),u+=c.move(n.safe(e.title,{before:u,after:i,...c.current()})),u+=c.move(i),l()),o(),u}function Nc(e){const t=e.options.emphasis||"*";if(t!=="*"&&t!=="_")throw new Error("Cannot serialize emphasis with `"+t+"` for `options.emphasis`, expected `*`, or `_`");return t}function Mt(e){return"&#x"+e.toString(16).toUpperCase()+";"}function Wt(e,t,n){const r=mt(e),i=mt(t);return r===void 0?i===void 0?n==="_"?{inside:!0,outside:!0}:{inside:!1,outside:!1}:i===1?{inside:!0,outside:!0}:{inside:!1,outside:!0}:r===1?i===void 0?{inside:!1,outside:!1}:i===1?{inside:!0,outside:!0}:{inside:!1,outside:!1}:i===void 0?{inside:!1,outside:!1}:i===1?{inside:!0,outside:!1}:{inside:!1,outside:!1}}Hi.peek=Pc;function Hi(e,t,n,r){const i=Nc(n),a=n.enter("emphasis"),o=n.createTracker(r),l=o.move(i);let c=o.move(n.containerPhrasing(e,{after:i,before:l,...o.current()}));const u=c.charCodeAt(0),f=Wt(r.before.charCodeAt(r.before.length-1),u,i);f.inside&&(c=Mt(u)+c.slice(1));const p=c.charCodeAt(c.length-1),d=Wt(r.after.charCodeAt(0),p,i);d.inside&&(c=c.slice(0,-1)+Mt(p));const m=o.move(i);return a(),n.attentionEncodeSurroundingInfo={after:d.outside,before:f.outside},l+c+m}function Pc(e,t,n){return n.options.emphasis||"*"}function Rc(e,t){let n=!1;return Qn(e,function(r){if("value"in r&&/\r?\n|\r/.test(r.value)||r.type==="break")return n=!0,Dn}),!!((!e.depth||e.depth<3)&&Vn(e)&&(t.options.setext||n))}function Bc(e,t,n,r){const i=Math.max(Math.min(6,e.depth||1),1),a=n.createTracker(r);if(Rc(e,n)){const f=n.enter("headingSetext"),p=n.enter("phrasing"),d=n.containerPhrasing(e,{...a.current(),before:`
37
+ `,after:`
38
+ `});return p(),f(),d+`
39
+ `+(i===1?"=":"-").repeat(d.length-(Math.max(d.lastIndexOf("\r"),d.lastIndexOf(`
40
+ `))+1))}const o="#".repeat(i),l=n.enter("headingAtx"),c=n.enter("phrasing");a.move(o+" ");let u=n.containerPhrasing(e,{before:"# ",after:`
41
+ `,...a.current()});return/^[\t ]/.test(u)&&(u=Mt(u.charCodeAt(0))+u.slice(1)),u=u?o+" "+u:o,n.options.closeAtx&&(u+=" "+o),c(),l(),u}Oi.peek=_c;function Oi(e){return e.value||""}function _c(){return"<"}Vi.peek=jc;function Vi(e,t,n,r){const i=Kn(n),a=i==='"'?"Quote":"Apostrophe",o=n.enter("image");let l=n.enter("label");const c=n.createTracker(r);let u=c.move("![");return u+=c.move(n.safe(e.alt,{before:u,after:"]",...c.current()})),u+=c.move("]("),l(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(l=n.enter("destinationLiteral"),u+=c.move("<"),u+=c.move(n.safe(e.url,{before:u,after:">",...c.current()})),u+=c.move(">")):(l=n.enter("destinationRaw"),u+=c.move(n.safe(e.url,{before:u,after:e.title?" ":")",...c.current()}))),l(),e.title&&(l=n.enter(`title${a}`),u+=c.move(" "+i),u+=c.move(n.safe(e.title,{before:u,after:i,...c.current()})),u+=c.move(i),l()),u+=c.move(")"),o(),u}function jc(){return"!"}qi.peek=Hc;function qi(e,t,n,r){const i=e.referenceType,a=n.enter("imageReference");let o=n.enter("label");const l=n.createTracker(r);let c=l.move("![");const u=n.safe(e.alt,{before:c,after:"]",...l.current()});c+=l.move(u+"]["),o();const f=n.stack;n.stack=[],o=n.enter("reference");const p=n.safe(n.associationId(e),{before:c,after:"]",...l.current()});return o(),n.stack=f,a(),i==="full"||!u||u!==p?c+=l.move(p+"]"):i==="shortcut"?c=c.slice(0,-1):c+=l.move("]"),c}function Hc(){return"!"}Ui.peek=Oc;function Ui(e,t,n){let r=e.value||"",i="`",a=-1;for(;new RegExp("(^|[^`])"+i+"([^`]|$)").test(r);)i+="`";for(/[^ \r\n]/.test(r)&&(/^[ \r\n]/.test(r)&&/[ \r\n]$/.test(r)||/^`|`$/.test(r))&&(r=" "+r+" ");++a<n.unsafe.length;){const o=n.unsafe[a],l=n.compilePattern(o);let c;if(o.atBreak)for(;c=l.exec(r);){let u=c.index;r.charCodeAt(u)===10&&r.charCodeAt(u-1)===13&&u--,r=r.slice(0,u)+" "+r.slice(c.index+1)}}return i+r+i}function Oc(){return"`"}function Wi(e,t){const n=Vn(e);return!!(!t.options.resourceLink&&e.url&&!e.title&&e.children&&e.children.length===1&&e.children[0].type==="text"&&(n===e.url||"mailto:"+n===e.url)&&/^[a-z][a-z+.-]+:/i.test(e.url)&&!/[\0- <>\u007F]/.test(e.url))}$i.peek=Vc;function $i(e,t,n,r){const i=Kn(n),a=i==='"'?"Quote":"Apostrophe",o=n.createTracker(r);let l,c;if(Wi(e,n)){const f=n.stack;n.stack=[],l=n.enter("autolink");let p=o.move("<");return p+=o.move(n.containerPhrasing(e,{before:p,after:">",...o.current()})),p+=o.move(">"),l(),n.stack=f,p}l=n.enter("link"),c=n.enter("label");let u=o.move("[");return u+=o.move(n.containerPhrasing(e,{before:u,after:"](",...o.current()})),u+=o.move("]("),c(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(c=n.enter("destinationLiteral"),u+=o.move("<"),u+=o.move(n.safe(e.url,{before:u,after:">",...o.current()})),u+=o.move(">")):(c=n.enter("destinationRaw"),u+=o.move(n.safe(e.url,{before:u,after:e.title?" ":")",...o.current()}))),c(),e.title&&(c=n.enter(`title${a}`),u+=o.move(" "+i),u+=o.move(n.safe(e.title,{before:u,after:i,...o.current()})),u+=o.move(i),c()),u+=o.move(")"),l(),u}function Vc(e,t,n){return Wi(e,n)?"<":"["}Gi.peek=qc;function Gi(e,t,n,r){const i=e.referenceType,a=n.enter("linkReference");let o=n.enter("label");const l=n.createTracker(r);let c=l.move("[");const u=n.containerPhrasing(e,{before:c,after:"]",...l.current()});c+=l.move(u+"]["),o();const f=n.stack;n.stack=[],o=n.enter("reference");const p=n.safe(n.associationId(e),{before:c,after:"]",...l.current()});return o(),n.stack=f,a(),i==="full"||!u||u!==p?c+=l.move(p+"]"):i==="shortcut"?c=c.slice(0,-1):c+=l.move("]"),c}function qc(){return"["}function Jn(e){const t=e.options.bullet||"*";if(t!=="*"&&t!=="+"&&t!=="-")throw new Error("Cannot serialize items with `"+t+"` for `options.bullet`, expected `*`, `+`, or `-`");return t}function Uc(e){const t=Jn(e),n=e.options.bulletOther;if(!n)return t==="*"?"-":"*";if(n!=="*"&&n!=="+"&&n!=="-")throw new Error("Cannot serialize items with `"+n+"` for `options.bulletOther`, expected `*`, `+`, or `-`");if(n===t)throw new Error("Expected `bullet` (`"+t+"`) and `bulletOther` (`"+n+"`) to be different");return n}function Wc(e){const t=e.options.bulletOrdered||".";if(t!=="."&&t!==")")throw new Error("Cannot serialize items with `"+t+"` for `options.bulletOrdered`, expected `.` or `)`");return t}function Xi(e){const t=e.options.rule||"*";if(t!=="*"&&t!=="-"&&t!=="_")throw new Error("Cannot serialize rules with `"+t+"` for `options.rule`, expected `*`, `-`, or `_`");return t}function $c(e,t,n,r){const i=n.enter("list"),a=n.bulletCurrent;let o=e.ordered?Wc(n):Jn(n);const l=e.ordered?o==="."?")":".":Uc(n);let c=t&&n.bulletLastUsed?o===n.bulletLastUsed:!1;if(!e.ordered){const f=e.children?e.children[0]:void 0;if((o==="*"||o==="-")&&f&&(!f.children||!f.children[0])&&n.stack[n.stack.length-1]==="list"&&n.stack[n.stack.length-2]==="listItem"&&n.stack[n.stack.length-3]==="list"&&n.stack[n.stack.length-4]==="listItem"&&n.indexStack[n.indexStack.length-1]===0&&n.indexStack[n.indexStack.length-2]===0&&n.indexStack[n.indexStack.length-3]===0&&(c=!0),Xi(n)===o&&f){let p=-1;for(;++p<e.children.length;){const d=e.children[p];if(d&&d.type==="listItem"&&d.children&&d.children[0]&&d.children[0].type==="thematicBreak"){c=!0;break}}}}c&&(o=l),n.bulletCurrent=o;const u=n.containerFlow(e,r);return n.bulletLastUsed=o,n.bulletCurrent=a,i(),u}function Gc(e){const t=e.options.listItemIndent||"one";if(t!=="tab"&&t!=="one"&&t!=="mixed")throw new Error("Cannot serialize items with `"+t+"` for `options.listItemIndent`, expected `tab`, `one`, or `mixed`");return t}function Xc(e,t,n,r){const i=Gc(n);let a=n.bulletCurrent||Jn(n);t&&t.type==="list"&&t.ordered&&(a=(typeof t.start=="number"&&t.start>-1?t.start:1)+(n.options.incrementListMarker===!1?0:t.children.indexOf(e))+a);let o=a.length+1;(i==="tab"||i==="mixed"&&(t&&t.type==="list"&&t.spread||e.spread))&&(o=Math.ceil(o/4)*4);const l=n.createTracker(r);l.move(a+" ".repeat(o-a.length)),l.shift(o);const c=n.enter("listItem"),u=n.indentLines(n.containerFlow(e,l.current()),f);return c(),u;function f(p,d,m){return d?(m?"":" ".repeat(o))+p:(m?a:a+" ".repeat(o-a.length))+p}}function Qc(e,t,n,r){const i=n.enter("paragraph"),a=n.enter("phrasing"),o=n.containerPhrasing(e,r);return a(),i(),o}const Yc=Yt(["break","delete","emphasis","footnote","footnoteReference","image","imageReference","inlineCode","inlineMath","link","linkReference","mdxJsxTextElement","mdxTextExpression","strong","text","textDirective"]);function Kc(e,t,n,r){return(e.children.some(function(o){return Yc(o)})?n.containerPhrasing:n.containerFlow).call(n,e,r)}function Jc(e){const t=e.options.strong||"*";if(t!=="*"&&t!=="_")throw new Error("Cannot serialize strong with `"+t+"` for `options.strong`, expected `*`, or `_`");return t}Qi.peek=Zc;function Qi(e,t,n,r){const i=Jc(n),a=n.enter("strong"),o=n.createTracker(r),l=o.move(i+i);let c=o.move(n.containerPhrasing(e,{after:i,before:l,...o.current()}));const u=c.charCodeAt(0),f=Wt(r.before.charCodeAt(r.before.length-1),u,i);f.inside&&(c=Mt(u)+c.slice(1));const p=c.charCodeAt(c.length-1),d=Wt(r.after.charCodeAt(0),p,i);d.inside&&(c=c.slice(0,-1)+Mt(p));const m=o.move(i+i);return a(),n.attentionEncodeSurroundingInfo={after:d.outside,before:f.outside},l+c+m}function Zc(e,t,n){return n.options.strong||"*"}function ep(e,t,n,r){return n.safe(e.value,r)}function tp(e){const t=e.options.ruleRepetition||3;if(t<3)throw new Error("Cannot serialize rules with repetition `"+t+"` for `options.ruleRepetition`, expected `3` or more");return t}function np(e,t,n){const r=(Xi(n)+(n.options.ruleSpaces?" ":"")).repeat(tp(n));return n.options.ruleSpaces?r.slice(0,-1):r}const Yi={blockquote:Ec,break:Ur,code:Fc,definition:zc,emphasis:Hi,hardBreak:Ur,heading:Bc,html:Oi,image:Vi,imageReference:qi,inlineCode:Ui,link:$i,linkReference:Gi,list:$c,listItem:Xc,paragraph:Qc,root:Kc,strong:Qi,text:ep,thematicBreak:np};function rp(){return{enter:{table:ip,tableData:Wr,tableHeader:Wr,tableRow:ap},exit:{codeText:lp,table:op,tableData:yn,tableHeader:yn,tableRow:yn}}}function ip(e){const t=e._align;g(t,"expected `_align` on table"),this.enter({type:"table",align:t.map(function(n){return n==="none"?null:n}),children:[]},e),this.data.inTable=!0}function op(e){this.exit(e),this.data.inTable=void 0}function ap(e){this.enter({type:"tableRow",children:[]},e)}function yn(e){this.exit(e)}function Wr(e){this.enter({type:"tableCell",children:[]},e)}function lp(e){let t=this.resume();this.data.inTable&&(t=t.replace(/\\([\\|])/g,sp));const n=this.stack[this.stack.length-1];g(n.type==="inlineCode"),n.value=t,this.exit(e)}function sp(e,t){return t==="|"?t:e}function up(e){const t=e||{},n=t.tableCellPadding,r=t.tablePipeAlign,i=t.stringLength,a=n?" ":"|";return{unsafe:[{character:"\r",inConstruct:"tableCell"},{character:`
42
+ `,inConstruct:"tableCell"},{atBreak:!0,character:"|",after:"[ :-]"},{character:"|",inConstruct:"tableCell"},{atBreak:!0,character:":",after:"-"},{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{inlineCode:d,table:o,tableCell:c,tableRow:l}};function o(m,b,A,E){return u(f(m,A,E),m.align)}function l(m,b,A,E){const y=p(m,A,E),I=u([y]);return I.slice(0,I.indexOf(`
43
+ `))}function c(m,b,A,E){const y=A.enter("tableCell"),I=A.enter("phrasing"),T=A.containerPhrasing(m,{...E,before:a,after:a});return I(),y(),T}function u(m,b){return Cc(m,{align:b,alignDelimiters:r,padding:n,stringLength:i})}function f(m,b,A){const E=m.children;let y=-1;const I=[],T=b.enter("table");for(;++y<E.length;)I[y]=p(E[y],b,A);return T(),I}function p(m,b,A){const E=m.children;let y=-1;const I=[],T=b.enter("tableRow");for(;++y<E.length;)I[y]=c(E[y],m,b,A);return T(),I}function d(m,b,A){let E=Yi.inlineCode(m,b,A);return A.stack.includes("tableCell")&&(E=E.replace(/\|/g,"\\$&")),E}}function cp(){return{exit:{taskListCheckValueChecked:$r,taskListCheckValueUnchecked:$r,paragraph:fp}}}function pp(){return{unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:hp}}}function $r(e){const t=this.stack[this.stack.length-2];g(t.type==="listItem"),t.checked=e.type==="taskListCheckValueChecked"}function fp(e){const t=this.stack[this.stack.length-2];if(t&&t.type==="listItem"&&typeof t.checked=="boolean"){const n=this.stack[this.stack.length-1];g(n.type==="paragraph");const r=n.children[0];if(r&&r.type==="text"){const i=t.children;let a=-1,o;for(;++a<i.length;){const l=i[a];if(l.type==="paragraph"){o=l;break}}o===n&&(r.value=r.value.slice(1),r.value.length===0?n.children.shift():n.position&&r.position&&typeof r.position.start.offset=="number"&&(r.position.start.column++,r.position.start.offset++,n.position.start=Object.assign({},r.position.start)))}}this.exit(e)}function hp(e,t,n,r){const i=e.children[0],a=typeof e.checked=="boolean"&&i&&i.type==="paragraph",o="["+(e.checked?"x":" ")+"] ",l=n.createTracker(r);a&&l.move(o);let c=Yi.listItem(e,t,n,{...r,...l.current()});return a&&(c=c.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,u)),c;function u(f){return f+o}}function dp(){return[$u(),hc(),kc(),rp(),cp()]}function mp(e){return{extensions:[Gu(),dc(e),xc(),up(e),pp()]}}const gp={tokenize:Sp,partial:!0},Ki={tokenize:Cp,partial:!0},Ji={tokenize:vp,partial:!0},Zi={tokenize:Ep,partial:!0},kp={tokenize:Ap,partial:!0},eo={name:"wwwAutolink",tokenize:yp,previous:no},to={name:"protocolAutolink",tokenize:wp,previous:ro},Re={name:"emailAutolink",tokenize:bp,previous:io},ze={};function xp(){return{text:ze}}let We=s.digit0;for(;We<s.leftCurlyBrace;)ze[We]=Re,We++,We===s.colon?We=s.uppercaseA:We===s.leftSquareBracket&&(We=s.lowercaseA);ze[s.plusSign]=Re;ze[s.dash]=Re;ze[s.dot]=Re;ze[s.underscore]=Re;ze[s.uppercaseH]=[Re,to];ze[s.lowercaseH]=[Re,to];ze[s.uppercaseW]=[Re,eo];ze[s.lowercaseW]=[Re,eo];function bp(e,t,n){const r=this;let i,a;return o;function o(p){return!zn(p)||!io.call(r,r.previous)||Zn(r.events)?n(p):(e.enter("literalAutolink"),e.enter("literalAutolinkEmail"),l(p))}function l(p){return zn(p)?(e.consume(p),l):p===s.atSign?(e.consume(p),c):n(p)}function c(p){return p===s.dot?e.check(kp,f,u)(p):p===s.dash||p===s.underscore||ce(p)?(a=!0,e.consume(p),c):f(p)}function u(p){return e.consume(p),i=!0,c}function f(p){return a&&i&&fe(r.previous)?(e.exit("literalAutolinkEmail"),e.exit("literalAutolink"),t(p)):n(p)}}function yp(e,t,n){const r=this;return i;function i(o){return o!==s.uppercaseW&&o!==s.lowercaseW||!no.call(r,r.previous)||Zn(r.events)?n(o):(e.enter("literalAutolink"),e.enter("literalAutolinkWww"),e.check(gp,e.attempt(Ki,e.attempt(Ji,a),n),n)(o))}function a(o){return e.exit("literalAutolinkWww"),e.exit("literalAutolink"),t(o)}}function wp(e,t,n){const r=this;let i="",a=!1;return o;function o(p){return(p===s.uppercaseH||p===s.lowercaseH)&&ro.call(r,r.previous)&&!Zn(r.events)?(e.enter("literalAutolink"),e.enter("literalAutolinkHttp"),i+=String.fromCodePoint(p),e.consume(p),l):n(p)}function l(p){if(fe(p)&&i.length<5)return i+=String.fromCodePoint(p),e.consume(p),l;if(p===s.colon){const d=i.toLowerCase();if(d==="http"||d==="https")return e.consume(p),c}return n(p)}function c(p){return p===s.slash?(e.consume(p),a?u:(a=!0,c)):n(p)}function u(p){return p===s.eof||Vt(p)||J(p)||Xe(p)||Gt(p)?n(p):e.attempt(Ki,e.attempt(Ji,f),n)(p)}function f(p){return e.exit("literalAutolinkHttp"),e.exit("literalAutolink"),t(p)}}function Sp(e,t,n){let r=0;return i;function i(o){return(o===s.uppercaseW||o===s.lowercaseW)&&r<3?(r++,e.consume(o),i):o===s.dot&&r===3?(e.consume(o),a):n(o)}function a(o){return o===s.eof?n(o):t(o)}}function Cp(e,t,n){let r,i,a;return o;function o(u){return u===s.dot||u===s.underscore?e.check(Zi,c,l)(u):u===s.eof||J(u)||Xe(u)||u!==s.dash&&Gt(u)?c(u):(a=!0,e.consume(u),o)}function l(u){return u===s.underscore?r=!0:(i=r,r=void 0),e.consume(u),o}function c(u){return i||r||!a?n(u):t(u)}}function vp(e,t){let n=0,r=0;return i;function i(o){return o===s.leftParenthesis?(n++,e.consume(o),i):o===s.rightParenthesis&&r<n?a(o):o===s.exclamationMark||o===s.quotationMark||o===s.ampersand||o===s.apostrophe||o===s.rightParenthesis||o===s.asterisk||o===s.comma||o===s.dot||o===s.colon||o===s.semicolon||o===s.lessThan||o===s.questionMark||o===s.rightSquareBracket||o===s.underscore||o===s.tilde?e.check(Zi,t,a)(o):o===s.eof||J(o)||Xe(o)?t(o):(e.consume(o),i)}function a(o){return o===s.rightParenthesis&&r++,e.consume(o),i}}function Ep(e,t,n){return r;function r(l){return l===s.exclamationMark||l===s.quotationMark||l===s.apostrophe||l===s.rightParenthesis||l===s.asterisk||l===s.comma||l===s.dot||l===s.colon||l===s.semicolon||l===s.questionMark||l===s.underscore||l===s.tilde?(e.consume(l),r):l===s.ampersand?(e.consume(l),a):l===s.rightSquareBracket?(e.consume(l),i):l===s.lessThan||l===s.eof||J(l)||Xe(l)?t(l):n(l)}function i(l){return l===s.eof||l===s.leftParenthesis||l===s.leftSquareBracket||J(l)||Xe(l)?t(l):r(l)}function a(l){return fe(l)?o(l):n(l)}function o(l){return l===s.semicolon?(e.consume(l),r):fe(l)?(e.consume(l),o):n(l)}}function Ap(e,t,n){return r;function r(a){return e.consume(a),i}function i(a){return ce(a)?n(a):t(a)}}function no(e){return e===s.eof||e===s.leftParenthesis||e===s.asterisk||e===s.underscore||e===s.leftSquareBracket||e===s.rightSquareBracket||e===s.tilde||J(e)}function ro(e){return!fe(e)}function io(e){return!(e===s.slash||zn(e))}function zn(e){return e===s.plusSign||e===s.dash||e===s.dot||e===s.underscore||ce(e)}function Zn(e){let t=e.length,n=!1;for(;t--;){const r=e[t][1];if((r.type==="labelLink"||r.type==="labelImage")&&!r._balanced){n=!0;break}if(r._gfmAutolinkLiteralWalkedInto){n=!1;break}}return e.length>0&&!n&&(e[e.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),n}const Ip={tokenize:Pp,partial:!0};function Tp(){return{document:{[s.leftSquareBracket]:{name:"gfmFootnoteDefinition",tokenize:Lp,continuation:{tokenize:zp},exit:Np}},text:{[s.leftSquareBracket]:{name:"gfmFootnoteCall",tokenize:Fp},[s.rightSquareBracket]:{name:"gfmPotentialFootnoteCall",add:"after",tokenize:Dp,resolveTo:Mp}}}}function Dp(e,t,n){const r=this;let i=r.events.length;const a=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let o;for(;i--;){const c=r.events[i][1];if(c.type===h.labelImage){o=c;break}if(c.type==="gfmFootnoteCall"||c.type===h.labelLink||c.type===h.label||c.type===h.image||c.type===h.link)break}return l;function l(c){if(g(c===s.rightSquareBracket,"expected `]`"),!o||!o._balanced)return n(c);const u=Ie(r.sliceSerialize({start:o.end,end:r.now()}));return u.codePointAt(0)!==s.caret||!a.includes(u.slice(1))?n(c):(e.enter("gfmFootnoteCallLabelMarker"),e.consume(c),e.exit("gfmFootnoteCallLabelMarker"),t(c))}}function Mp(e,t){let n=e.length,r;for(;n--;)if(e[n][1].type===h.labelImage&&e[n][0]==="enter"){r=e[n][1];break}g(r,"expected `labelStart` to resolve"),e[n+1][1].type=h.data,e[n+3][1].type="gfmFootnoteCallLabelMarker";const i={type:"gfmFootnoteCall",start:Object.assign({},e[n+3][1].start),end:Object.assign({},e[e.length-1][1].end)},a={type:"gfmFootnoteCallMarker",start:Object.assign({},e[n+3][1].end),end:Object.assign({},e[n+3][1].end)};a.end.column++,a.end.offset++,a.end._bufferIndex++;const o={type:"gfmFootnoteCallString",start:Object.assign({},a.end),end:Object.assign({},e[e.length-1][1].start)},l={type:h.chunkString,contentType:"string",start:Object.assign({},o.start),end:Object.assign({},o.end)},c=[e[n+1],e[n+2],["enter",i,t],e[n+3],e[n+4],["enter",a,t],["exit",a,t],["enter",o,t],["enter",l,t],["exit",l,t],["exit",o,t],e[e.length-2],e[e.length-1],["exit",i,t]];return e.splice(n,e.length-n+1,...c),e}function Fp(e,t,n){const r=this,i=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let a=0,o;return l;function l(p){return g(p===s.leftSquareBracket,"expected `[`"),e.enter("gfmFootnoteCall"),e.enter("gfmFootnoteCallLabelMarker"),e.consume(p),e.exit("gfmFootnoteCallLabelMarker"),c}function c(p){return p!==s.caret?n(p):(e.enter("gfmFootnoteCallMarker"),e.consume(p),e.exit("gfmFootnoteCallMarker"),e.enter("gfmFootnoteCallString"),e.enter("chunkString").contentType="string",u)}function u(p){if(a>L.linkReferenceSizeMax||p===s.rightSquareBracket&&!o||p===s.eof||p===s.leftSquareBracket||J(p))return n(p);if(p===s.rightSquareBracket){e.exit("chunkString");const d=e.exit("gfmFootnoteCallString");return i.includes(Ie(r.sliceSerialize(d)))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(p),e.exit("gfmFootnoteCallLabelMarker"),e.exit("gfmFootnoteCall"),t):n(p)}return J(p)||(o=!0),a++,e.consume(p),p===s.backslash?f:u}function f(p){return p===s.leftSquareBracket||p===s.backslash||p===s.rightSquareBracket?(e.consume(p),a++,u):u(p)}}function Lp(e,t,n){const r=this,i=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let a,o=0,l;return c;function c(b){return g(b===s.leftSquareBracket,"expected `[`"),e.enter("gfmFootnoteDefinition")._container=!0,e.enter("gfmFootnoteDefinitionLabel"),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(b),e.exit("gfmFootnoteDefinitionLabelMarker"),u}function u(b){return b===s.caret?(e.enter("gfmFootnoteDefinitionMarker"),e.consume(b),e.exit("gfmFootnoteDefinitionMarker"),e.enter("gfmFootnoteDefinitionLabelString"),e.enter("chunkString").contentType="string",f):n(b)}function f(b){if(o>L.linkReferenceSizeMax||b===s.rightSquareBracket&&!l||b===s.eof||b===s.leftSquareBracket||J(b))return n(b);if(b===s.rightSquareBracket){e.exit("chunkString");const A=e.exit("gfmFootnoteDefinitionLabelString");return a=Ie(r.sliceSerialize(A)),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(b),e.exit("gfmFootnoteDefinitionLabelMarker"),e.exit("gfmFootnoteDefinitionLabel"),d}return J(b)||(l=!0),o++,e.consume(b),b===s.backslash?p:f}function p(b){return b===s.leftSquareBracket||b===s.backslash||b===s.rightSquareBracket?(e.consume(b),o++,f):f(b)}function d(b){return b===s.colon?(e.enter("definitionMarker"),e.consume(b),e.exit("definitionMarker"),i.includes(a)||i.push(a),X(e,m,"gfmFootnoteDefinitionWhitespace")):n(b)}function m(b){return t(b)}}function zp(e,t,n){return e.check(Lt,t,e.attempt(Ip,t,n))}function Np(e){e.exit("gfmFootnoteDefinition")}function Pp(e,t,n){const r=this;return X(e,i,"gfmFootnoteDefinitionIndent",L.tabSize+1);function i(a){const o=r.events[r.events.length-1];return o&&o[1].type==="gfmFootnoteDefinitionIndent"&&o[2].sliceSerialize(o[1],!0).length===L.tabSize?t(a):n(a)}}function Rp(e){let n=(e||{}).singleTilde;const r={name:"strikethrough",tokenize:a,resolveAll:i};return n==null&&(n=!0),{text:{[s.tilde]:r},insideSpan:{null:[r]},attentionMarkers:{null:[s.tilde]}};function i(o,l){let c=-1;for(;++c<o.length;)if(o[c][0]==="enter"&&o[c][1].type==="strikethroughSequenceTemporary"&&o[c][1]._close){let u=c;for(;u--;)if(o[u][0]==="exit"&&o[u][1].type==="strikethroughSequenceTemporary"&&o[u][1]._open&&o[c][1].end.offset-o[c][1].start.offset===o[u][1].end.offset-o[u][1].start.offset){o[c][1].type="strikethroughSequence",o[u][1].type="strikethroughSequence";const f={type:"strikethrough",start:Object.assign({},o[u][1].start),end:Object.assign({},o[c][1].end)},p={type:"strikethroughText",start:Object.assign({},o[u][1].end),end:Object.assign({},o[c][1].start)},d=[["enter",f,l],["enter",o[u][1],l],["exit",o[u][1],l],["enter",p,l]],m=l.parser.constructs.insideSpan.null;m&&Se(d,d.length,0,Xt(m,o.slice(u+1,c),l)),Se(d,d.length,0,[["exit",p,l],["enter",o[c][1],l],["exit",o[c][1],l],["exit",f,l]]),Se(o,u-1,c-u+3,d),c=u+d.length-2;break}}for(c=-1;++c<o.length;)o[c][1].type==="strikethroughSequenceTemporary"&&(o[c][1].type=h.data);return o}function a(o,l,c){const u=this.previous,f=this.events;let p=0;return d;function d(b){return g(b===s.tilde,"expected `~`"),u===s.tilde&&f[f.length-1][1].type!==h.characterEscape?c(b):(o.enter("strikethroughSequenceTemporary"),m(b))}function m(b){const A=mt(u);if(b===s.tilde)return p>1?c(b):(o.consume(b),p++,m);if(p<2&&!n)return c(b);const E=o.exit("strikethroughSequenceTemporary"),y=mt(b);return E._open=!y||y===L.attentionSideAfter&&!!A,E._close=!A||A===L.attentionSideAfter&&!!y,l(b)}}}class Bp{constructor(){this.map=[]}add(t,n,r){_p(this,t,n,r)}consume(t){if(this.map.sort(function(a,o){return a[0]-o[0]}),this.map.length===0)return;let n=this.map.length;const r=[];for(;n>0;)n-=1,r.push(t.slice(this.map[n][0]+this.map[n][1]),this.map[n][2]),t.length=this.map[n][0];r.push(t.slice()),t.length=0;let i=r.pop();for(;i;){for(const a of i)t.push(a);i=r.pop()}this.map.length=0}}function _p(e,t,n,r){let i=0;if(!(n===0&&r.length===0)){for(;i<e.map.length;){if(e.map[i][0]===t){e.map[i][1]+=n,e.map[i][2].push(...r);return}i+=1}e.map.push([t,n,r])}}function jp(e,t){g(e[t][1].type==="table","expected table");let n=!1;const r=[];for(;t<e.length;){const i=e[t];if(n){if(i[0]==="enter")i[1].type==="tableContent"&&r.push(e[t+1][1].type==="tableDelimiterMarker"?"left":"none");else if(i[1].type==="tableContent"){if(e[t-1][1].type==="tableDelimiterMarker"){const a=r.length-1;r[a]=r[a]==="left"?"center":"right"}}else if(i[1].type==="tableDelimiterRow")break}else i[0]==="enter"&&i[1].type==="tableDelimiterRow"&&(n=!0);t+=1}return r}function Hp(){return{flow:{null:{name:"table",tokenize:Op,resolveAll:Vp}}}}function Op(e,t,n){const r=this;let i=0,a=0,o;return l;function l(S){let Z=r.events.length-1;for(;Z>-1;){const M=r.events[Z][1].type;if(M===h.lineEnding||M===h.linePrefix)Z--;else break}const $=Z>-1?r.events[Z][1].type:null,z=$==="tableHead"||$==="tableRow"?w:c;return z===w&&r.parser.lazy[r.now().line]?n(S):z(S)}function c(S){return e.enter("tableHead"),e.enter("tableRow"),u(S)}function u(S){return S===s.verticalBar||(o=!0,a+=1),f(S)}function f(S){return S===s.eof?n(S):R(S)?a>1?(a=0,r.interrupt=!0,e.exit("tableRow"),e.enter(h.lineEnding),e.consume(S),e.exit(h.lineEnding),m):n(S):W(S)?X(e,f,h.whitespace)(S):(a+=1,o&&(o=!1,i+=1),S===s.verticalBar?(e.enter("tableCellDivider"),e.consume(S),e.exit("tableCellDivider"),o=!0,f):(e.enter(h.data),p(S)))}function p(S){return S===s.eof||S===s.verticalBar||J(S)?(e.exit(h.data),f(S)):(e.consume(S),S===s.backslash?d:p)}function d(S){return S===s.backslash||S===s.verticalBar?(e.consume(S),p):p(S)}function m(S){return r.interrupt=!1,r.parser.lazy[r.now().line]?n(S):(e.enter("tableDelimiterRow"),o=!1,W(S)?(g(r.parser.constructs.disable.null,"expected `disabled.null`"),X(e,b,h.linePrefix,r.parser.constructs.disable.null.includes("codeIndented")?void 0:L.tabSize)(S)):b(S))}function b(S){return S===s.dash||S===s.colon?E(S):S===s.verticalBar?(o=!0,e.enter("tableCellDivider"),e.consume(S),e.exit("tableCellDivider"),A):j(S)}function A(S){return W(S)?X(e,E,h.whitespace)(S):E(S)}function E(S){return S===s.colon?(a+=1,o=!0,e.enter("tableDelimiterMarker"),e.consume(S),e.exit("tableDelimiterMarker"),y):S===s.dash?(a+=1,y(S)):S===s.eof||R(S)?_(S):j(S)}function y(S){return S===s.dash?(e.enter("tableDelimiterFiller"),I(S)):j(S)}function I(S){return S===s.dash?(e.consume(S),I):S===s.colon?(o=!0,e.exit("tableDelimiterFiller"),e.enter("tableDelimiterMarker"),e.consume(S),e.exit("tableDelimiterMarker"),T):(e.exit("tableDelimiterFiller"),T(S))}function T(S){return W(S)?X(e,_,h.whitespace)(S):_(S)}function _(S){return S===s.verticalBar?b(S):S===s.eof||R(S)?!o||i!==a?j(S):(e.exit("tableDelimiterRow"),e.exit("tableHead"),t(S)):j(S)}function j(S){return n(S)}function w(S){return e.enter("tableRow"),N(S)}function N(S){return S===s.verticalBar?(e.enter("tableCellDivider"),e.consume(S),e.exit("tableCellDivider"),N):S===s.eof||R(S)?(e.exit("tableRow"),t(S)):W(S)?X(e,N,h.whitespace)(S):(e.enter(h.data),H(S))}function H(S){return S===s.eof||S===s.verticalBar||J(S)?(e.exit(h.data),N(S)):(e.consume(S),S===s.backslash?U:H)}function U(S){return S===s.backslash||S===s.verticalBar?(e.consume(S),H):H(S)}}function Vp(e,t){let n=-1,r=!0,i=0,a=[0,0,0,0],o=[0,0,0,0],l=!1,c=0,u,f,p;const d=new Bp;for(;++n<e.length;){const m=e[n],b=m[1];m[0]==="enter"?b.type==="tableHead"?(l=!1,c!==0&&(g(u,"there should be a table opening"),Gr(d,t,c,u,f),f=void 0,c=0),u={type:"table",start:Object.assign({},b.start),end:Object.assign({},b.end)},d.add(n,0,[["enter",u,t]])):b.type==="tableRow"||b.type==="tableDelimiterRow"?(r=!0,p=void 0,a=[0,0,0,0],o=[0,n+1,0,0],l&&(l=!1,f={type:"tableBody",start:Object.assign({},b.start),end:Object.assign({},b.end)},d.add(n,0,[["enter",f,t]])),i=b.type==="tableDelimiterRow"?2:f?3:1):i&&(b.type===h.data||b.type==="tableDelimiterMarker"||b.type==="tableDelimiterFiller")?(r=!1,o[2]===0&&(a[1]!==0&&(o[0]=o[1],p=Ht(d,t,a,i,void 0,p),a=[0,0,0,0]),o[2]=n)):b.type==="tableCellDivider"&&(r?r=!1:(a[1]!==0&&(o[0]=o[1],p=Ht(d,t,a,i,void 0,p)),a=o,o=[a[1],n,0,0])):b.type==="tableHead"?(l=!0,c=n):b.type==="tableRow"||b.type==="tableDelimiterRow"?(c=n,a[1]!==0?(o[0]=o[1],p=Ht(d,t,a,i,n,p)):o[1]!==0&&(p=Ht(d,t,o,i,n,p)),i=0):i&&(b.type===h.data||b.type==="tableDelimiterMarker"||b.type==="tableDelimiterFiller")&&(o[3]=n)}for(c!==0&&(g(u,"expected table opening"),Gr(d,t,c,u,f)),d.consume(t.events),n=-1;++n<t.events.length;){const m=t.events[n];m[0]==="enter"&&m[1].type==="table"&&(m[1]._align=jp(t.events,n))}return e}function Ht(e,t,n,r,i,a){const o=r===1?"tableHeader":r===2?"tableDelimiter":"tableData",l="tableContent";n[0]!==0&&(g(a,"expected previous cell enter"),a.end=Object.assign({},ht(t.events,n[0])),e.add(n[0],0,[["exit",a,t]]));const c=ht(t.events,n[1]);if(a={type:o,start:Object.assign({},c),end:Object.assign({},c)},e.add(n[1],0,[["enter",a,t]]),n[2]!==0){const u=ht(t.events,n[2]),f=ht(t.events,n[3]),p={type:l,start:Object.assign({},u),end:Object.assign({},f)};if(e.add(n[2],0,[["enter",p,t]]),g(n[3]!==0),r!==2){const d=t.events[n[2]],m=t.events[n[3]];if(d[1].end=Object.assign({},m[1].end),d[1].type=h.chunkText,d[1].contentType=L.contentTypeText,n[3]>n[2]+1){const b=n[2]+1,A=n[3]-n[2]-1;e.add(b,A,[])}}e.add(n[3]+1,0,[["exit",p,t]])}return i!==void 0&&(a.end=Object.assign({},ht(t.events,i)),e.add(i,0,[["exit",a,t]]),a=void 0),a}function Gr(e,t,n,r,i){const a=[],o=ht(t.events,n);i&&(i.end=Object.assign({},o),a.push(["exit",i,t])),r.end=Object.assign({},o),a.push(["exit",r,t]),e.add(n+1,0,a)}function ht(e,t){const n=e[t],r=n[0]==="enter"?"start":"end";return n[1][r]}const qp={name:"tasklistCheck",tokenize:Wp};function Up(){return{text:{[s.leftSquareBracket]:qp}}}function Wp(e,t,n){const r=this;return i;function i(c){return g(c===s.leftSquareBracket,"expected `[`"),r.previous!==s.eof||!r._gfmTasklistFirstContentOfListItem?n(c):(e.enter("taskListCheck"),e.enter("taskListCheckMarker"),e.consume(c),e.exit("taskListCheckMarker"),a)}function a(c){return J(c)?(e.enter("taskListCheckValueUnchecked"),e.consume(c),e.exit("taskListCheckValueUnchecked"),o):c===s.uppercaseX||c===s.lowercaseX?(e.enter("taskListCheckValueChecked"),e.consume(c),e.exit("taskListCheckValueChecked"),o):n(c)}function o(c){return c===s.rightSquareBracket?(e.enter("taskListCheckMarker"),e.consume(c),e.exit("taskListCheckMarker"),e.exit("taskListCheck"),l):n(c)}function l(c){return R(c)?t(c):W(c)?e.check({tokenize:$p},t,n)(c):n(c)}}function $p(e,t,n){return X(e,r,h.whitespace);function r(i){return i===s.eof?n(i):t(i)}}function Gp(e){return hi([xp(),Tp(),Rp(e),Hp(),Up()])}const Xp={};function Qp(e){const t=this,n=e||Xp,r=t.data(),i=r.micromarkExtensions||(r.micromarkExtensions=[]),a=r.fromMarkdownExtensions||(r.fromMarkdownExtensions=[]),o=r.toMarkdownExtensions||(r.toMarkdownExtensions=[]);i.push(Gp(n)),a.push(dp()),o.push(mp(n))}function Yp(e){if(!e)return!1;const t=e.trim();if(!t||t.startsWith("//"))return!1;if(t.startsWith("#")||t.startsWith("/"))return!0;try{const n=new URL(t,"http://localhost");return["http:","https:","mailto:"].includes(n.protocol)}catch{return!1}}class $t extends Error{kind;field;currentRevision;constructor(t){super(t.message),this.name="MarkdownClientError",this.kind=t.kind,this.field=t.field,this.currentRevision=t.currentRevision}}function oo(e){return`/api/markdown/${e.kind}/${encodeURIComponent(e.id)}`}async function Kp(e){let t={};try{const r=await e.json();r.detail&&typeof r.detail=="object"&&(t=r.detail)}catch{}const n=e.status===422?"validation":e.status===409?"conflict":"save";return new $t({kind:n,message:t.message||`Markdown request failed (${e.status}).`,field:t.field,currentRevision:t.current_revision})}async function ao(e,t){try{const n=await fetch(e,t);if(!n.ok)throw await Kp(n);return await n.json()}catch(n){throw n instanceof $t?n:new $t({kind:"network",message:"The Markdown service could not be reached. Your draft was kept."})}}function Jp(e){return ao(oo(e))}function Zp(e,t,n){return ao(oo(e),{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({markdown:t,expected_revision:n})})}function ef(e){return{resource:e,baseSource:"",baseRevision:"",draft:"",status:"loading-document",error:null}}function tf(e,t){return{resource:e,baseSource:t.source,baseRevision:t.revision,draft:t.source,status:"editing",error:null}}function nf(e,t){return{...e,draft:t,status:"editing",error:null}}function lo(e){return e!==null&&e.draft!==e.baseSource}function rf(e){return lo(e)?{...e,status:"saving",error:null}:e}function of(e,t){return{...e,baseSource:t.source,baseRevision:t.revision,draft:t.source,status:"viewing",error:null}}function af(e,t){const n=t.kind==="validation"?"validation-error":t.kind==="conflict"?"conflict":"save-error";return{...e,status:n,error:t}}function lf(){return null}function wn(e){return e?`${e.kind}:${e.id}`:""}function Xr(e){return e instanceof $t?e:{kind:"network",message:"The Markdown service could not be reached. Your draft was kept."}}function sf({resource:e,onApplied:t,onDirtyChange:n}){const r=wn(e),[i,a]=te.useState(null),[o,l]=te.useState(null),[c,u]=te.useState(r),f=te.useRef(0);c!==r&&(u(r),a(null),l(null)),te.useLayoutEffect(()=>{f.current+=1},[r]);const p=i&&wn(i.resource)===r?i:null,d=lo(p),m=p!==null&&p.status!=="viewing"&&p.status!=="loading-document",b=p?.status==="saving",A=p?.status==="loading-document",E=p?.error??(o?.resourceKey===r?o.error:null);te.useEffect(()=>(n?.(d),()=>{d&&n?.(!1)}),[d,n]),te.useEffect(()=>{if(!d)return;const w=N=>{N.preventDefault(),N.returnValue=""};return window.addEventListener("beforeunload",w),()=>window.removeEventListener("beforeunload",w)},[d]);const y=te.useCallback(async()=>{if(!e)return!1;const w=++f.current;l(null),a(ef(e));try{const N=await Jp(e);return w!==f.current?!1:(a(tf(e,N)),!0)}catch(N){return w!==f.current||(a(null),l({resourceKey:r,error:Xr(N)})),!1}},[e,r]),I=te.useCallback(()=>{!p||b||(a(lf()),l(null))},[p,b]),T=te.useCallback(async()=>{if(!p||b||!d)return!1;const w=f.current,N=rf(p);a(N);try{const H=await Zp(N.resource,N.draft,N.baseRevision);return w!==f.current?!1:(a(of(N,H)),t?.(H),!0)}catch(H){return w!==f.current||a(af(N,Xr(H))),!1}},[p,d,t,b]),_=te.useCallback(async()=>{!e||b||d&&!window.confirm("Discard this draft and reload the latest applied version?")||await y()},[y,d,e,b]),j=te.useCallback(w=>{a(N=>N&&wn(N.resource)===r?nf(N,w):N)},[r]);return{session:p,error:E,dirty:d,editing:m,saving:b,loading:A,beginEdit:y,discard:I,save:T,reloadLatest:_,changeDraft:j}}function uf(e,t){const n=["preview","source"],r=n.indexOf(e);switch(t){case"ArrowRight":return n[(r+1)%n.length];case"ArrowLeft":return n[(r-1+n.length)%n.length];case"Home":return n[0];case"End":return n[n.length-1];default:return null}}function Vf(e){const t=so.c(110);if(t[0]!=="b752d060a278f05495274519a94c06b5c021187a60615a54d82e9f728559abd2"){for(let ie=0;ie<110;ie+=1)t[ie]=Symbol.for("react.memo_cache_sentinel");t[0]="b752d060a278f05495274519a94c06b5c021187a60615a54d82e9f728559abd2"}const{content:n,resource:r,onApplied:i,onDirtyChange:a,className:o,defaultMode:l}=e,c=l===void 0?"preview":l,[u,f]=te.useState(c),[p,d]=te.useState(!1),m=te.useRef(c),b=r?`${r.kind}:${r.id}`:"",[A,E]=te.useState(b);let y;t[1]!==i||t[2]!==a||t[3]!==r?(y={resource:r,onApplied:i,onDirtyChange:a},t[1]=i,t[2]=a,t[3]=r,t[4]=y):y=t[4];const I=sf(y),{session:T,error:_,dirty:j,editing:w,saving:N,loading:H}=I;A!==b&&(E(b),d(!1),f(c));const[U,S]=te.useState(n);U!==n&&(S(n),p&&d(!1));const Z=te.useId(),$=`${Z}-tab-preview`,z=`${Z}-tab-source`,M=`${Z}-panel`,F=te.useRef(c),q=te.useRef(null),Y=te.useRef(null);let se;t[5]===Symbol.for("react.memo_cache_sentinel")?(se=ie=>{F.current=ie,q.current&&(q.current.tabIndex=ie==="preview"?0:-1),Y.current&&(Y.current.tabIndex=ie==="source"?0:-1),(ie==="preview"?q:Y).current?.focus()},t[5]=se):se=t[5];const Ce=se;let k;t[6]===Symbol.for("react.memo_cache_sentinel")?(k=ie=>{F.current=ie,f(ie)},t[6]=k):k=t[6];const ae=k;let he;t[7]===Symbol.for("react.memo_cache_sentinel")?(he=ie=>{const wt=uf(F.current,ie.key);wt!==null&&(ie.preventDefault(),Ce(wt))},t[7]=he):he=t[7];const x=he,ue=te.useRef(void 0);let ve,Be;t[8]===Symbol.for("react.memo_cache_sentinel")?(ve=()=>()=>{clearTimeout(ue.current)},Be=[],t[8]=ve,t[9]=Be):(ve=t[8],Be=t[9]),te.useEffect(ve,Be);let Ne;t[10]!==c?(Ne=()=>{F.current=c},t[10]=c,t[11]=Ne):Ne=t[11];let ne;t[12]!==c||t[13]!==b?(ne=[b,c],t[12]=c,t[13]=b,t[14]=ne):ne=t[14],te.useLayoutEffect(Ne,ne);let Te;t[15]===Symbol.for("react.memo_cache_sentinel")?(Te=()=>{q.current&&(q.current.tabIndex=F.current==="preview"?0:-1),Y.current&&(Y.current.tabIndex=F.current==="source"?0:-1)},t[15]=Te):Te=t[15],te.useLayoutEffect(Te);const ee=I.editing?I.session?.draft??"":typeof n=="string"?n:"";let de;if(t[16]!==I.editing||t[17]!==ee){e:{if(!I.editing){de=ee;break e}const ie=ee.split(/\r?\n/);if(ie[0]!=="---"){de=ee;break e}const wt=ie.findIndex(cf);de=wt<0?ee:ie.slice(wt+1).join(`
44
+ `).replace(/^\n/,"")}t[16]=I.editing,t[17]=ee,t[18]=de}else de=t[18];const De=de;let _e;t[19]!==ee?(_e=ee.trim(),t[19]=ee,t[20]=_e):_e=t[20];const Ae=_e.length>0;let Oe;t[21]!==De?(Oe=B.jsxDEV(Ru,{remarkPlugins:pf,components:ff,children:De},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/GraphWorkspace/MarkdownContentViewer.tsx",lineNumber:232,columnNumber:11},this),t[21]=De,t[22]=Oe):Oe=t[22];const Ye=Oe;let Ve;t[23]!==Ae||t[24]!==ee?(Ve=async()=>{if(Ae)try{await navigator.clipboard.writeText(ee),clearTimeout(ue.current),d(!0),ue.current=window.setTimeout(()=>d(!1),1500)}catch{}},t[23]=Ae,t[24]=ee,t[25]=Ve):Ve=t[25];const xt=Ve;let qe;t[26]!==u||t[27]!==I?(qe=async()=>{m.current=u,ae("source"),await I.beginEdit()||ae(m.current)},t[26]=u,t[27]=I,t[28]=qe):qe=t[28];const Ke=qe;let Je;t[29]!==I?(Je=()=>{I.discard(),ae(m.current)},t[29]=I,t[30]=Je):Je=t[30];const bt=Je;let Ze;t[31]!==I?(Ze=async()=>{await I.save()&&ae("preview")},t[31]=I,t[32]=Ze):Ze=t[32];const yt=Ze;let et;t[33]===Symbol.for("react.memo_cache_sentinel")?(et={display:"flex",gap:4},t[33]=et):et=t[33];const C=u==="preview",v=u==="preview"?0:-1;let P;t[34]===Symbol.for("react.memo_cache_sentinel")?(P=()=>ae("preview"),t[34]=P):P=t[34];let O;t[35]!==u?(O=u==="preview"?Yr:{},t[35]=u,t[36]=O):O=t[36];let G;t[37]!==O?(G={...Qr,...O},t[37]=O,t[38]=G):G=t[38];let le;t[39]===Symbol.for("react.memo_cache_sentinel")?(le=B.jsxDEV(uo,{size:12,style:{marginRight:5},"aria-hidden":"true"},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/GraphWorkspace/MarkdownContentViewer.tsx",lineNumber:340,columnNumber:11},this),t[39]=le):le=t[39];let me;t[40]!==M||t[41]!==$||t[42]!==C||t[43]!==v||t[44]!==G?(me=B.jsxDEV("button",{type:"button",role:"tab",id:$,ref:q,"aria-selected":C,"aria-controls":M,tabIndex:v,onClick:P,onKeyDown:x,style:G,children:[le,"Preview"]},void 0,!0,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/GraphWorkspace/MarkdownContentViewer.tsx",lineNumber:349,columnNumber:11},this),t[40]=M,t[41]=$,t[42]=C,t[43]=v,t[44]=G,t[45]=me):me=t[45];const be=u==="source",Pe=u==="source"?0:-1;let Me;t[46]===Symbol.for("react.memo_cache_sentinel")?(Me=()=>ae("source"),t[46]=Me):Me=t[46];let re;t[47]!==u?(re=u==="source"?Yr:{},t[47]=u,t[48]=re):re=t[48];let ye;t[49]!==re?(ye={...Qr,...re},t[49]=re,t[50]=ye):ye=t[50];let ge;t[51]===Symbol.for("react.memo_cache_sentinel")?(ge=B.jsxDEV(xo,{size:12,style:{marginRight:5},"aria-hidden":"true"},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/GraphWorkspace/MarkdownContentViewer.tsx",lineNumber:389,columnNumber:11},this),t[51]=ge):ge=t[51];let tt;t[52]!==M||t[53]!==z||t[54]!==be||t[55]!==Pe||t[56]!==ye?(tt=B.jsxDEV("button",{type:"button",role:"tab",id:z,ref:Y,"aria-selected":be,"aria-controls":M,tabIndex:Pe,onClick:Me,onKeyDown:x,style:ye,children:[ge,"Source"]},void 0,!0,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/GraphWorkspace/MarkdownContentViewer.tsx",lineNumber:398,columnNumber:11},this),t[52]=M,t[53]=z,t[54]=be,t[55]=Pe,t[56]=ye,t[57]=tt):tt=t[57];let nt;t[58]!==me||t[59]!==tt?(nt=B.jsxDEV("div",{style:et,role:"tablist","aria-label":"Content view mode",children:[me,tt]},void 0,!0,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/GraphWorkspace/MarkdownContentViewer.tsx",lineNumber:410,columnNumber:11},this),t[58]=me,t[59]=tt,t[60]=nt):nt=t[60];let Nt;t[61]===Symbol.for("react.memo_cache_sentinel")?(Nt={display:"flex",alignItems:"center",gap:6},t[61]=Nt):Nt=t[61];let rt;t[62]!==p||t[63]!==xt||t[64]!==Ae?(rt=Ae&&B.jsxDEV("button",{type:"button",onClick:()=>{xt()},style:dt,title:"Copy raw content",children:p?B.jsxDEV(B.Fragment,{children:[B.jsxDEV(tr,{size:12,color:"#3fb950",style:{marginRight:4},"aria-hidden":"true"},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/GraphWorkspace/MarkdownContentViewer.tsx",lineNumber:430,columnNumber:139},this),B.jsxDEV("span",{style:{color:"#3fb950",fontSize:11},children:"Copied"},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/GraphWorkspace/MarkdownContentViewer.tsx",lineNumber:432,columnNumber:33},this)]},void 0,!0,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/GraphWorkspace/MarkdownContentViewer.tsx",lineNumber:430,columnNumber:137},this):B.jsxDEV(B.Fragment,{children:[B.jsxDEV(po,{size:12,style:{marginRight:4},"aria-hidden":"true"},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/GraphWorkspace/MarkdownContentViewer.tsx",lineNumber:435,columnNumber:33},this),B.jsxDEV("span",{style:{fontSize:11},children:"Copy"},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/GraphWorkspace/MarkdownContentViewer.tsx",lineNumber:437,columnNumber:33},this)]},void 0,!0,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/GraphWorkspace/MarkdownContentViewer.tsx",lineNumber:435,columnNumber:31},this)},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/GraphWorkspace/MarkdownContentViewer.tsx",lineNumber:430,columnNumber:25},this),t[62]=p,t[63]=xt,t[64]=Ae,t[65]=rt):rt=t[65];let it;t[66]!==w||t[67]!==Ke||t[68]!==H||t[69]!==r?(it=r&&!w&&!H?B.jsxDEV("button",{type:"button",onClick:()=>{Ke()},style:dt,children:[B.jsxDEV(fo,{size:12,style:{marginRight:4},"aria-hidden":"true"},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/GraphWorkspace/MarkdownContentViewer.tsx",lineNumber:449,columnNumber:123},this),"Edit"]},void 0,!0,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/GraphWorkspace/MarkdownContentViewer.tsx",lineNumber:449,columnNumber:46},this):null,t[66]=w,t[67]=Ke,t[68]=H,t[69]=r,t[70]=it):it=t[70];let ot;t[71]!==H?(ot=H?B.jsxDEV("button",{type:"button",disabled:!0,style:{...dt,opacity:.65},children:[B.jsxDEV(er,{size:12,className:"animate-spin",style:{marginRight:4},"aria-hidden":"true"},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/GraphWorkspace/MarkdownContentViewer.tsx",lineNumber:465,columnNumber:8},this),"Loading…"]},void 0,!0,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/GraphWorkspace/MarkdownContentViewer.tsx",lineNumber:462,columnNumber:21},this):null,t[71]=H,t[72]=ot):ot=t[72];let at;t[73]!==j||t[74]!==w||t[75]!==yt||t[76]!==bt||t[77]!==N?(at=w?B.jsxDEV(B.Fragment,{children:[B.jsxDEV("button",{type:"button",onClick:bt,disabled:N,style:dt,children:[B.jsxDEV(ho,{size:12,style:{marginRight:4},"aria-hidden":"true"},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/GraphWorkspace/MarkdownContentViewer.tsx",lineNumber:475,columnNumber:107},this),"Cancel"]},void 0,!0,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/GraphWorkspace/MarkdownContentViewer.tsx",lineNumber:475,columnNumber:23},this),B.jsxDEV("button",{type:"button",onClick:()=>{yt()},disabled:N||!j,title:j?void 0:"Make a change before applying",style:{...mf,opacity:N||!j?.55:1},children:[N?B.jsxDEV(er,{size:12,className:"animate-spin",style:{marginRight:4},"aria-hidden":"true"},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/GraphWorkspace/MarkdownContentViewer.tsx",lineNumber:480,columnNumber:20},this):B.jsxDEV(tr,{size:12,style:{marginRight:4},"aria-hidden":"true"},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/GraphWorkspace/MarkdownContentViewer.tsx",lineNumber:482,columnNumber:36},this),N?"Applying…":"Apply"]},void 0,!0,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/GraphWorkspace/MarkdownContentViewer.tsx",lineNumber:477,columnNumber:48},this)]},void 0,!0,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/GraphWorkspace/MarkdownContentViewer.tsx",lineNumber:475,columnNumber:21},this):null,t[73]=j,t[74]=w,t[75]=yt,t[76]=bt,t[77]=N,t[78]=at):at=t[78];let lt;t[79]!==rt||t[80]!==it||t[81]!==ot||t[82]!==at?(lt=B.jsxDEV("div",{style:Nt,children:[rt,it,ot,at]},void 0,!0,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/GraphWorkspace/MarkdownContentViewer.tsx",lineNumber:496,columnNumber:11},this),t[79]=rt,t[80]=it,t[81]=ot,t[82]=at,t[83]=lt):lt=t[83];let st;t[84]!==nt||t[85]!==lt?(st=B.jsxDEV("div",{style:df,children:[nt,lt]},void 0,!0,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/GraphWorkspace/MarkdownContentViewer.tsx",lineNumber:507,columnNumber:11},this),t[84]=nt,t[85]=lt,t[86]=st):st=t[86];let ut;t[87]!==I||t[88]!==_?(ut=_?B.jsxDEV("div",{id:"markdown-editor-error",role:"alert",style:gf,children:[B.jsxDEV("span",{children:_.message},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/GraphWorkspace/MarkdownContentViewer.tsx",lineNumber:516,columnNumber:83},this),_.kind==="conflict"?B.jsxDEV("button",{type:"button",onClick:()=>{I.reloadLatest()},style:kf,children:[B.jsxDEV(co,{size:12,style:{marginRight:4},"aria-hidden":"true"},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/GraphWorkspace/MarkdownContentViewer.tsx",lineNumber:516,columnNumber:230},this),"Reload latest"]},void 0,!0,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/GraphWorkspace/MarkdownContentViewer.tsx",lineNumber:516,columnNumber:140},this):null]},void 0,!0,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/GraphWorkspace/MarkdownContentViewer.tsx",lineNumber:516,columnNumber:19},this):null,t[87]=I,t[88]=_,t[89]=ut):ut=t[89];const Jt=u==="preview"?$:z,Zt=N||H;let ct;t[90]!==u||t[91]!==w||t[92]!==I||t[93]!==_||t[94]!==Ae||t[95]!==ee||t[96]!==Ye||t[97]!==N||t[98]!==T?.draft?(ct=u==="source"&&w?B.jsxDEV("textarea",{"aria-label":"Markdown source","aria-describedby":_?"markdown-editor-error":void 0,"aria-invalid":_?.kind==="validation"||void 0,value:T?.draft??"",onChange:ie=>I.changeDraft(ie.target.value),disabled:N,spellCheck:!1,style:bf},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/GraphWorkspace/MarkdownContentViewer.tsx",lineNumber:529,columnNumber:48},this):Ae?u==="source"?B.jsxDEV("pre",{style:wf,children:B.jsxDEV("code",{style:Sf,children:ee},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/GraphWorkspace/MarkdownContentViewer.tsx",lineNumber:529,columnNumber:501},this)},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/GraphWorkspace/MarkdownContentViewer.tsx",lineNumber:529,columnNumber:473},this):B.jsxDEV("div",{style:Cf,children:Ye},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/GraphWorkspace/MarkdownContentViewer.tsx",lineNumber:529,columnNumber:559},this):B.jsxDEV("div",{style:yf,children:"No content available for this node."},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/GraphWorkspace/MarkdownContentViewer.tsx",lineNumber:529,columnNumber:375},this),t[90]=u,t[91]=w,t[92]=I,t[93]=_,t[94]=Ae,t[95]=ee,t[96]=Ye,t[97]=N,t[98]=T?.draft,t[99]=ct):ct=t[99];let pt;t[100]!==M||t[101]!==Jt||t[102]!==Zt||t[103]!==ct?(pt=B.jsxDEV("div",{role:"tabpanel",id:M,"aria-labelledby":Jt,"aria-busy":Zt,tabIndex:0,style:xf,children:ct},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/GraphWorkspace/MarkdownContentViewer.tsx",lineNumber:545,columnNumber:11},this),t[100]=M,t[101]=Jt,t[102]=Zt,t[103]=ct,t[104]=pt):pt=t[104];let Pt;return t[105]!==o||t[106]!==st||t[107]!==ut||t[108]!==pt?(Pt=B.jsxDEV("div",{className:o,style:hf,children:[st,ut,pt]},void 0,!0,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/GraphWorkspace/MarkdownContentViewer.tsx",lineNumber:556,columnNumber:11},this),t[105]=o,t[106]=st,t[107]=ut,t[108]=pt,t[109]=Pt):Pt=t[109],Pt}function cf(e,t){return t>0&&e==="---"}const pf=[Qp],ff={a:({href:e,children:t,title:n,node:r,...i})=>{if(!Yp(e))return B.jsxDEV("span",{style:{color:Q.ui.text.muted,textDecoration:"line-through"},children:t},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/GraphWorkspace/MarkdownContentViewer.tsx",lineNumber:605,columnNumber:14},void 0);const a=e??"";return a.startsWith("#")?B.jsxDEV("a",{href:a,title:n,style:Kr,...i,children:t},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/GraphWorkspace/MarkdownContentViewer.tsx",lineNumber:617,columnNumber:14},void 0):B.jsxDEV("a",{href:a,title:n,target:"_blank",rel:"noopener noreferrer",style:Kr,...i,children:[t,B.jsxDEV(mo,{size:10,style:{marginLeft:3,verticalAlign:"middle",display:"inline"}},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/GraphWorkspace/MarkdownContentViewer.tsx",lineNumber:623,columnNumber:9},void 0)]},void 0,!0,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/GraphWorkspace/MarkdownContentViewer.tsx",lineNumber:621,columnNumber:12},void 0)},img:({src:e,alt:t})=>B.jsxDEV("span",{style:Df,title:e||"Image",children:[B.jsxDEV(yo,{size:12,style:{marginRight:5}},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/GraphWorkspace/MarkdownContentViewer.tsx",lineNumber:634,columnNumber:7},void 0),B.jsxDEV("span",{children:["Image: ",t||e||"unlabeled"]},void 0,!0,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/GraphWorkspace/MarkdownContentViewer.tsx",lineNumber:637,columnNumber:7},void 0)]},void 0,!0,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/GraphWorkspace/MarkdownContentViewer.tsx",lineNumber:633,columnNumber:9},void 0),h1:({children:e})=>B.jsxDEV("h1",{style:vf,children:e},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/GraphWorkspace/MarkdownContentViewer.tsx",lineNumber:641,columnNumber:9},void 0),h2:({children:e})=>B.jsxDEV("h2",{style:Ef,children:e},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/GraphWorkspace/MarkdownContentViewer.tsx",lineNumber:644,columnNumber:9},void 0),h3:({children:e})=>B.jsxDEV("h3",{style:Af,children:e},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/GraphWorkspace/MarkdownContentViewer.tsx",lineNumber:647,columnNumber:9},void 0),h4:({children:e})=>B.jsxDEV("h4",{style:If,children:e},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/GraphWorkspace/MarkdownContentViewer.tsx",lineNumber:650,columnNumber:9},void 0),p:({children:e})=>B.jsxDEV("p",{style:{margin:"0 0 8px 0"},children:e},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/GraphWorkspace/MarkdownContentViewer.tsx",lineNumber:653,columnNumber:9},void 0),ul:({children:e})=>B.jsxDEV("ul",{style:{margin:"0 0 8px 0",paddingLeft:18},children:e},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/GraphWorkspace/MarkdownContentViewer.tsx",lineNumber:658,columnNumber:9},void 0),ol:({children:e})=>B.jsxDEV("ol",{style:{margin:"0 0 8px 0",paddingLeft:18},children:e},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/GraphWorkspace/MarkdownContentViewer.tsx",lineNumber:664,columnNumber:9},void 0),li:({children:e})=>B.jsxDEV("li",{style:{marginBottom:3},children:e},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/GraphWorkspace/MarkdownContentViewer.tsx",lineNumber:670,columnNumber:9},void 0),blockquote:({children:e})=>B.jsxDEV("blockquote",{style:Tf,children:e},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/GraphWorkspace/MarkdownContentViewer.tsx",lineNumber:675,columnNumber:9},void 0),hr:()=>B.jsxDEV("hr",{style:{border:"none",borderTop:`1px solid ${Q.ui.surface.panelBorder}`,margin:"10px 0"}},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/GraphWorkspace/MarkdownContentViewer.tsx",lineNumber:676,columnNumber:13},void 0),table:({children:e})=>B.jsxDEV("div",{style:{width:"100%",overflowX:"auto",margin:"8px 0",borderRadius:6,border:`1px solid ${Q.ui.surface.panelBorder}`},children:B.jsxDEV("table",{style:{width:"100%",borderCollapse:"collapse",fontSize:12},children:e},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/GraphWorkspace/MarkdownContentViewer.tsx",lineNumber:690,columnNumber:7},void 0)},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/GraphWorkspace/MarkdownContentViewer.tsx",lineNumber:683,columnNumber:9},void 0),thead:({children:e})=>B.jsxDEV("thead",{style:{background:"rgba(255, 255, 255, 0.04)"},children:e},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/GraphWorkspace/MarkdownContentViewer.tsx",lineNumber:698,columnNumber:9},void 0),tbody:({children:e})=>B.jsxDEV("tbody",{children:e},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/GraphWorkspace/MarkdownContentViewer.tsx",lineNumber:703,columnNumber:9},void 0),tr:({children:e})=>B.jsxDEV("tr",{style:{borderBottom:`1px solid ${Q.ui.surface.panelBorder}`},children:e},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/GraphWorkspace/MarkdownContentViewer.tsx",lineNumber:706,columnNumber:9},void 0),th:({children:e})=>B.jsxDEV("th",{style:{padding:"6px 8px",textAlign:"left",fontWeight:700,color:Q.ui.text.strong,borderRight:`1px solid ${Q.ui.surface.panelBorder}`},children:e},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/GraphWorkspace/MarkdownContentViewer.tsx",lineNumber:711,columnNumber:9},void 0),td:({children:e})=>B.jsxDEV("td",{style:{padding:"6px 8px",color:Q.ui.text.body,borderRight:`1px solid ${Q.ui.surface.panelBorder}`},children:e},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/GraphWorkspace/MarkdownContentViewer.tsx",lineNumber:720,columnNumber:9},void 0),pre:({children:e})=>B.jsxDEV("pre",{style:Ff,children:e},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/GraphWorkspace/MarkdownContentViewer.tsx",lineNumber:727,columnNumber:9},void 0),code:({className:e,children:t})=>{const n=!e&&typeof t=="string"&&!t.includes(`
45
+ `);return B.jsxDEV("code",{style:n?Mf:Lf,children:t},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/GraphWorkspace/MarkdownContentViewer.tsx",lineNumber:735,columnNumber:12},void 0)}},hf={display:"flex",flexDirection:"column",background:"rgba(255, 255, 255, 0.025)",border:`1px solid ${Q.ui.surface.panelBorder}`,borderRadius:12,overflow:"hidden"},df={display:"flex",alignItems:"center",justifyContent:"space-between",gap:8,flexWrap:"wrap",padding:"6px 10px",background:"rgba(0, 0, 0, 0.2)",borderBottom:`1px solid ${Q.ui.surface.panelBorder}`},Qr={display:"inline-flex",alignItems:"center",padding:"4px 9px",borderRadius:6,border:"1px solid transparent",background:"transparent",color:Q.ui.text.muted,fontSize:12,fontWeight:600,cursor:"pointer",transition:"all 150ms ease"},Yr={background:Q.ui.timeline.playheadSoft,border:`1px solid ${Q.ui.control.activeBorder}`,color:Q.ui.timeline.playhead},dt={display:"inline-flex",alignItems:"center",padding:"3px 8px",borderRadius:6,border:`1px solid ${Q.ui.surface.panelBorder}`,background:"rgba(255, 255, 255, 0.04)",color:Q.ui.text.subtle,fontSize:11,cursor:"pointer"},mf={...dt,background:Q.ui.control.primaryBg,border:`1px solid ${Q.ui.control.primaryBorder}`,color:Q.ui.control.primaryText,fontWeight:700},gf={display:"flex",alignItems:"center",justifyContent:"space-between",gap:8,padding:"8px 12px",color:"#ffb4ad",background:"rgba(248, 81, 73, 0.1)",borderBottom:"1px solid rgba(248, 81, 73, 0.25)",fontSize:12,lineHeight:1.5},kf={...dt,flexShrink:0,color:"#ffb4ad",border:"1px solid rgba(248, 81, 73, 0.32)"},xf={padding:12,maxHeight:380,overflowY:"auto"},bf={display:"block",boxSizing:"border-box",width:"100%",minHeight:280,resize:"vertical",padding:10,borderRadius:8,border:`1px solid ${Q.ui.control.activeBorder}`,background:"rgba(0, 0, 0, 0.3)",color:Q.ui.text.strong,fontFamily:"'JetBrains Mono', 'Fira Code', monospace",fontSize:12,lineHeight:1.6},yf={color:Q.ui.text.muted,fontSize:12,lineHeight:1.5,fontStyle:"italic"},wf={margin:0,padding:10,borderRadius:8,background:"rgba(0, 0, 0, 0.3)",border:"1px solid rgba(255, 255, 255, 0.05)",overflowX:"auto"},Sf={fontFamily:"'JetBrains Mono', 'Fira Code', monospace",fontSize:12,lineHeight:1.6,color:Q.ui.text.strong,whiteSpace:"pre-wrap",wordBreak:"break-word",userSelect:"text"},Cf={color:Q.ui.text.body,fontSize:13,lineHeight:1.6,wordBreak:"break-word"},vf={fontSize:16,fontWeight:700,color:Q.ui.text.strong,marginTop:8,marginBottom:6,paddingBottom:3,borderBottom:`1px solid ${Q.ui.surface.panelBorder}`},Ef={fontSize:14,fontWeight:700,color:Q.ui.text.strong,marginTop:8,marginBottom:4},Af={fontSize:13,fontWeight:600,color:Q.ui.text.strong,marginTop:6,marginBottom:4},If={fontSize:12,fontWeight:600,color:Q.ui.text.strong,marginTop:4,marginBottom:2},Tf={margin:"8px 0",padding:"6px 12px",borderLeft:`3px solid ${Q.ui.timeline.playhead}`,background:"rgba(98, 226, 205, 0.05)",borderRadius:"0 6px 6px 0",color:Q.ui.text.body,fontStyle:"italic"},Kr={color:"#ff8fa0",textDecoration:"underline",textUnderlineOffset:"3px",wordBreak:"break-all"},Df={display:"inline-flex",alignItems:"center",padding:"3px 7px",background:"rgba(255, 255, 255, 0.04)",border:`1px solid ${Q.ui.surface.panelBorder}`,borderRadius:6,color:Q.ui.text.muted,fontSize:11,margin:"3px 0"},Mf={fontFamily:"'JetBrains Mono', monospace",fontSize:12,padding:"2px 5px",borderRadius:4,background:"rgba(255, 255, 255, 0.07)",color:"#ffeaed",border:"1px solid rgba(255, 255, 255, 0.08)"},Ff={margin:"8px 0",padding:10,borderRadius:8,background:"rgba(0, 0, 0, 0.35)",border:"1px solid rgba(255, 255, 255, 0.08)",overflowX:"auto"},Lf={fontFamily:"'JetBrains Mono', monospace",fontSize:12,lineHeight:1.5,color:"#ffeaed"};export{Vf as M,Jp as r};