markshelf 0.4.0 → 0.6.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 (74) hide show
  1. package/.next/standalone/.next/BUILD_ID +1 -1
  2. package/.next/standalone/.next/build-manifest.json +3 -3
  3. package/.next/standalone/.next/prerender-manifest.json +4 -4
  4. package/.next/standalone/.next/server/app/_global-error.html +1 -1
  5. package/.next/standalone/.next/server/app/_global-error.rsc +1 -1
  6. package/.next/standalone/.next/server/app/_global-error.segments/__PAGE__.segment.rsc +1 -1
  7. package/.next/standalone/.next/server/app/_global-error.segments/_full.segment.rsc +1 -1
  8. package/.next/standalone/.next/server/app/_global-error.segments/_tree.segment.rsc +1 -1
  9. package/.next/standalone/.next/server/app/_not-found/page.js.nft.json +1 -1
  10. package/.next/standalone/.next/server/app/_not-found/page_client-reference-manifest.js +1 -1
  11. package/.next/standalone/.next/server/app/_not-found.html +1 -1
  12. package/.next/standalone/.next/server/app/_not-found.rsc +2 -2
  13. package/.next/standalone/.next/server/app/_not-found.segments/_full.segment.rsc +2 -2
  14. package/.next/standalone/.next/server/app/_not-found.segments/_not-found/__PAGE__.segment.rsc +2 -2
  15. package/.next/standalone/.next/server/app/_not-found.segments/_tree.segment.rsc +2 -2
  16. package/.next/standalone/.next/server/app/api/asset/route.js.nft.json +1 -1
  17. package/.next/standalone/.next/server/app/api/diff/route.js.nft.json +1 -1
  18. package/.next/standalone/.next/server/app/api/file/route.js.nft.json +1 -1
  19. package/.next/standalone/.next/server/app/api/graph/route.js.nft.json +1 -1
  20. package/.next/standalone/.next/server/app/api/history/route.js.nft.json +1 -1
  21. package/.next/standalone/.next/server/app/api/search/route.js.nft.json +1 -1
  22. package/.next/standalone/.next/server/app/api/timeline/route.js.nft.json +1 -1
  23. package/.next/standalone/.next/server/app/api/tree/route.js.nft.json +1 -1
  24. package/.next/standalone/.next/server/app/index.html +1 -1
  25. package/.next/standalone/.next/server/app/index.rsc +23 -22
  26. package/.next/standalone/.next/server/app/index.segments/__PAGE__.segment.rsc +24 -23
  27. package/.next/standalone/.next/server/app/index.segments/_full.segment.rsc +23 -22
  28. package/.next/standalone/.next/server/app/index.segments/_tree.segment.rsc +2 -2
  29. package/.next/standalone/.next/server/app/page.js.nft.json +1 -1
  30. package/.next/standalone/.next/server/app/page_client-reference-manifest.js +1 -1
  31. package/.next/standalone/.next/server/chunks/ssr/1daa_mermaid_dist_chunks_mermaid_core_architectureDiagram-T3A2C74G_mjs_01mnvkyw356y8._.js +38 -0
  32. package/.next/standalone/.next/server/chunks/ssr/{1q96_modules_mermaid_dist_chunks_mermaid_core_sizeCapture-X5ZJPWSS_mjs_1os5wyw2wvsbf._.js → 1q96_modules_mermaid_dist_chunks_mermaid_core_sizeCapture-X5ZJPWSS_mjs_1d984g489t_v_._.js} +1 -1
  33. package/.next/standalone/.next/server/chunks/ssr/[root-of-the-server]__0g-vy3v9t9tyh._.js +1 -1
  34. package/.next/standalone/.next/server/chunks/ssr/{node_modules_1zwa158v6cu4h._.js → node_modules_06_you5sj36ea._.js} +1 -1
  35. package/.next/standalone/.next/server/chunks/ssr/{node_modules_1_zhxjrdvu__0._.js → node_modules_0urq0y3w3y-x1._.js} +1 -1
  36. package/.next/standalone/.next/server/chunks/ssr/{node_modules_1ksoebjs06iin._.js → node_modules_1p-f83gneg27h._.js} +1 -1
  37. package/.next/standalone/.next/server/chunks/ssr/{node_modules_1-a8_ridg1by1._.js → node_modules_1r01f3o8u2qr9._.js} +1 -1
  38. package/.next/standalone/.next/server/chunks/ssr/node_modules_1uxb2qcnk4ek5._.js +3 -0
  39. package/.next/standalone/.next/server/chunks/ssr/{node_modules_206hxjs9pfggi._.js → node_modules_1zwji4vpuwii8._.js} +1 -1
  40. package/.next/standalone/.next/server/chunks/ssr/{node_modules_@mermaid-js_parser_dist_chunks_mermaid-parser_core_0fs__yticb4lo._.js → node_modules_@mermaid-js_parser_dist_chunks_mermaid-parser_core_1g9pdbaq2r91b._.js} +1 -1
  41. package/.next/standalone/.next/server/chunks/ssr/{node_modules_0ufmcadetyxyl._.js → node_modules_cytoscape-fcose_20-159eqjhba3._.js} +2 -37
  42. package/.next/standalone/.next/server/middleware-build-manifest.js +3 -3
  43. package/.next/standalone/.next/server/pages/404.html +1 -1
  44. package/.next/standalone/.next/server/pages/500.html +1 -1
  45. package/.next/standalone/.next/server/preview-props.json +3 -3
  46. package/.next/standalone/.next/server/server-reference-manifest.js +1 -1
  47. package/.next/standalone/.next/server/server-reference-manifest.json +1 -1
  48. package/.next/standalone/.next/static/chunks/0zx7_y1xwx4-6.js +36 -0
  49. package/.next/standalone/.next/static/chunks/1meg6zx-prjos.css +1 -0
  50. package/.next/standalone/.next/static/chunks/2dk77qi-hbjhe.js +1 -0
  51. package/.next/{static/chunks/3lua0caljmnb1.js → standalone/.next/static/chunks/2hp_1eqxa-3bp.js} +2 -2
  52. package/.next/standalone/.next/static/chunks/{1ox77t4cdm_pk.js → 3_96bh9sdsp72.js} +1 -1
  53. package/.next/standalone/package-lock.json +3 -2
  54. package/.next/standalone/package.json +2 -1
  55. package/.next/standalone/src/components/LinkGraph.tsx +128 -85
  56. package/.next/static/chunks/0zx7_y1xwx4-6.js +36 -0
  57. package/.next/static/chunks/1meg6zx-prjos.css +1 -0
  58. package/.next/static/chunks/2dk77qi-hbjhe.js +1 -0
  59. package/.next/{standalone/.next/static/chunks/3lua0caljmnb1.js → static/chunks/2hp_1eqxa-3bp.js} +2 -2
  60. package/.next/static/chunks/{1ox77t4cdm_pk.js → 3_96bh9sdsp72.js} +1 -1
  61. package/package.json +2 -1
  62. package/.next/standalone/.next/server/chunks/ssr/node_modules_0q94q8jo25nfn._.js +0 -3
  63. package/.next/standalone/.next/static/chunks/0bgukk-aush3d.js +0 -36
  64. package/.next/standalone/.next/static/chunks/1kz_y2ko2i190.js +0 -1
  65. package/.next/standalone/.next/static/chunks/42m7w6tf9trgs.css +0 -1
  66. package/.next/static/chunks/0bgukk-aush3d.js +0 -36
  67. package/.next/static/chunks/1kz_y2ko2i190.js +0 -1
  68. package/.next/static/chunks/42m7w6tf9trgs.css +0 -1
  69. /package/.next/standalone/.next/static/{hUO5HeCq5PpB5sY7JGIf9 → lGwn6L8yvmgCBC9fv0_jy}/_buildManifest.js +0 -0
  70. /package/.next/standalone/.next/static/{hUO5HeCq5PpB5sY7JGIf9 → lGwn6L8yvmgCBC9fv0_jy}/_clientMiddlewareManifest.js +0 -0
  71. /package/.next/standalone/.next/static/{hUO5HeCq5PpB5sY7JGIf9 → lGwn6L8yvmgCBC9fv0_jy}/_ssgManifest.js +0 -0
  72. /package/.next/static/{hUO5HeCq5PpB5sY7JGIf9 → lGwn6L8yvmgCBC9fv0_jy}/_buildManifest.js +0 -0
  73. /package/.next/static/{hUO5HeCq5PpB5sY7JGIf9 → lGwn6L8yvmgCBC9fv0_jy}/_clientMiddlewareManifest.js +0 -0
  74. /package/.next/static/{hUO5HeCq5PpB5sY7JGIf9 → lGwn6L8yvmgCBC9fv0_jy}/_ssgManifest.js +0 -0
@@ -2,7 +2,7 @@
2
2
  flex items-center gap-1.5 cursor-pointer select-none
3
3
  h-7 pr-2 text-[12px] leading-none transition-colors
4
4
  ${g?"bg-[var(--brand-primary)]/10 text-[var(--text-primary)]":"text-[var(--text-secondary)] hover:bg-[var(--bg-hover)]"}
5
- `,style:{paddingLeft:16*n+8},children:[h?(0,t.jsx)("span",{onClick:t=>{t.stopPropagation(),a(e.path)},className:"shrink-0 text-[var(--text-muted)] w-4 flex items-center justify-center hover:text-[var(--text-primary)]",children:p?(0,t.jsx)(u,{size:14}):(0,t.jsx)(c,{size:14})}):(0,t.jsx)("span",{className:"shrink-0 w-4"}),s?(0,t.jsx)(d,{size:14,className:"shrink-0",style:{color:"var(--folder-border)"}}):(0,t.jsx)(f,{size:14,className:"shrink-0",style:{color:"var(--file-border)"}}),(0,t.jsx)("span",{className:`truncate leading-normal ${s?"font-medium text-[var(--folder-text)]":""} ${g?"font-medium":""}`,children:e.displayName})]}),"folder"===e.type&&p&&e.children&&e.children.length>0&&(0,t.jsx)(t.Fragment,{children:e.children.map(e=>(0,t.jsx)(m,{entry:e,depth:n+1,selectedPath:r,selectedRef:i,expanded:l,onToggle:a,onSelect:o},e.path))})]})}function g(){}function x(){}let y=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,v=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,b={};function k(e,t){return((t||b).jsx?v:y).test(e)}let w=/[ \t\n\f\r]/g;function S(e){return""===e.replace(w,"")}class C{constructor(e,t){this.attribute=t,this.property=e}}C.prototype.attribute="",C.prototype.booleanish=!1,C.prototype.boolean=!1,C.prototype.commaOrSpaceSeparated=!1,C.prototype.commaSeparated=!1,C.prototype.defined=!1,C.prototype.mustUseProperty=!1,C.prototype.number=!1,C.prototype.overloadedBoolean=!1,C.prototype.property="",C.prototype.spaceSeparated=!1,C.prototype.space=void 0;let E=0,j=M(),A=M(),T=M(),N=M(),L=M(),D=M(),z=M();function M(){return 2**++E}e.s(["boolean",0,j,"booleanish",0,A,"commaOrSpaceSeparated",0,z,"commaSeparated",0,D,"number",0,N,"overloadedBoolean",0,T,"spaceSeparated",0,L],744);var I=e.i(744);let P=Object.keys(I);class R extends C{constructor(e,t,n,r){var i,l,a,o,s;let u=-1;if(super(e,t),i=this,(l=r)&&(i.space=l),"number"==typeof n)for(;++u<P.length;){let e=P[u];a=this,o=P[u],(s=(n&I[e])===I[e])&&(a[o]=s)}}}function F(e){return e.toLowerCase()}R.prototype.defined=!0;let O=/[A-Z]/g,_=/-[a-z]/g,B=/^data[-\w.:]+$/i;function H(e){return"-"+e.toLowerCase()}function U(e){return e.charAt(1).toUpperCase()}let $={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"};class q{constructor(e,t,n){this.normal=t,this.property=e,n&&(this.space=n)}}function V(e,t){let n={},r={};for(let t of e)Object.assign(n,t.property),Object.assign(r,t.normal);return new q(n,r,t)}function W(e){let t={},n={};for(let[r,i]of Object.entries(e.properties)){let l=new R(r,e.transform(e.attributes||{},r),i,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(l.mustUseProperty=!0),t[r]=l,n[F(r)]=r,n[F(l.attribute)]=r}return new q(t,n,e.space)}q.prototype.normal={},q.prototype.property={},q.prototype.space=void 0;let Q=W({properties:{ariaActiveDescendant:null,ariaAtomic:A,ariaAutoComplete:null,ariaBusy:A,ariaChecked:A,ariaColCount:N,ariaColIndex:N,ariaColSpan:N,ariaControls:L,ariaCurrent:null,ariaDescribedBy:L,ariaDetails:null,ariaDisabled:A,ariaDropEffect:L,ariaErrorMessage:null,ariaExpanded:A,ariaFlowTo:L,ariaGrabbed:A,ariaHasPopup:null,ariaHidden:A,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:L,ariaLevel:N,ariaLive:null,ariaModal:A,ariaMultiLine:A,ariaMultiSelectable:A,ariaOrientation:null,ariaOwns:L,ariaPlaceholder:null,ariaPosInSet:N,ariaPressed:A,ariaReadOnly:A,ariaRelevant:null,ariaRequired:A,ariaRoleDescription:L,ariaRowCount:N,ariaRowIndex:N,ariaRowSpan:N,ariaSelected:A,ariaSetSize:N,ariaSort:null,ariaValueMax:N,ariaValueMin:N,ariaValueNow:N,ariaValueText:null,role:null},transform:(e,t)=>"role"===t?t:"aria-"+t.slice(4).toLowerCase()});function J(e,t){return t in e?e[t]:t}function K(e,t){return J(e,t.toLowerCase())}let X=W({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:D,acceptCharset:L,accessKey:L,action:null,allow:null,allowFullScreen:j,allowPaymentRequest:j,allowUserMedia:j,alt:null,as:null,async:j,autoCapitalize:null,autoComplete:L,autoFocus:j,autoPlay:j,blocking:L,capture:null,charSet:null,checked:j,cite:null,className:L,cols:N,colSpan:null,content:null,contentEditable:A,controls:j,controlsList:L,coords:N|D,crossOrigin:null,data:null,dateTime:null,decoding:null,default:j,defer:j,dir:null,dirName:null,disabled:j,download:T,draggable:A,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:j,formTarget:null,headers:L,height:N,hidden:T,high:N,href:null,hrefLang:null,htmlFor:L,httpEquiv:L,id:null,imageSizes:null,imageSrcSet:null,inert:j,inputMode:null,integrity:null,is:null,isMap:j,itemId:null,itemProp:L,itemRef:L,itemScope:j,itemType:L,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:j,low:N,manifest:null,max:null,maxLength:N,media:null,method:null,min:null,minLength:N,multiple:j,muted:j,name:null,nonce:null,noModule:j,noValidate:j,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:j,optimum:N,pattern:null,ping:L,placeholder:null,playsInline:j,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:j,referrerPolicy:null,rel:L,required:j,reversed:j,rows:N,rowSpan:N,sandbox:L,scope:null,scoped:j,seamless:j,selected:j,shadowRootClonable:j,shadowRootDelegatesFocus:j,shadowRootMode:null,shape:null,size:N,sizes:null,slot:null,span:N,spellCheck:A,src:null,srcDoc:null,srcLang:null,srcSet:null,start:N,step:null,style:null,tabIndex:N,target:null,title:null,translate:null,type:null,typeMustMatch:j,useMap:null,value:A,width:N,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:L,axis:null,background:null,bgColor:null,border:N,borderColor:null,bottomMargin:N,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:j,declare:j,event:null,face:null,frame:null,frameBorder:null,hSpace:N,leftMargin:N,link:null,longDesc:null,lowSrc:null,marginHeight:N,marginWidth:N,noResize:j,noHref:j,noShade:j,noWrap:j,object:null,profile:null,prompt:null,rev:null,rightMargin:N,rules:null,scheme:null,scrolling:A,standby:null,summary:null,text:null,topMargin:N,valueType:null,version:null,vAlign:null,vLink:null,vSpace:N,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:j,disableRemotePlayback:j,prefix:null,property:null,results:N,security:null,unselectable:null},space:"html",transform:K}),Z=W({attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},properties:{about:z,accentHeight:N,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:N,amplitude:N,arabicForm:null,ascent:N,attributeName:null,attributeType:null,azimuth:N,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:N,by:null,calcMode:null,capHeight:N,className:L,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:N,diffuseConstant:N,direction:null,display:null,dur:null,divisor:N,dominantBaseline:null,download:j,dx:null,dy:null,edgeMode:null,editable:null,elevation:N,enableBackground:null,end:null,event:null,exponent:N,externalResourcesRequired:null,fill:null,fillOpacity:N,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:D,g2:D,glyphName:D,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:N,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:N,horizOriginX:N,horizOriginY:N,id:null,ideographic:N,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:N,k:N,k1:N,k2:N,k3:N,k4:N,kernelMatrix:z,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:N,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:N,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:N,overlineThickness:N,paintOrder:null,panose1:null,path:null,pathLength:N,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:L,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:N,pointsAtY:N,pointsAtZ:N,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:z,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:z,rev:z,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:z,requiredFeatures:z,requiredFonts:z,requiredFormats:z,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:N,specularExponent:N,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:N,strikethroughThickness:N,string:null,stroke:null,strokeDashArray:z,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:N,strokeOpacity:N,strokeWidth:null,style:null,surfaceScale:N,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:z,tabIndex:N,tableValues:null,target:null,targetX:N,targetY:N,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:z,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:N,underlineThickness:N,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:N,values:null,vAlphabetic:N,vMathematical:N,vectorEffect:null,vHanging:N,vIdeographic:N,version:null,vertAdvY:N,vertOriginX:N,vertOriginY:N,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:N,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:J}),G=W({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform:(e,t)=>"xlink:"+t.slice(5).toLowerCase()}),Y=W({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:K}),ee=W({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform:(e,t)=>"xml:"+t.slice(3).toLowerCase()}),et=V([Q,X,G,Y,ee],"html"),en=V([Q,Z,G,Y,ee],"svg");var er=e.i(15511);let ei=ea("end"),el=ea("start");function ea(e){return function(t){let n=t&&t.position&&t.position[e]||{};if("number"==typeof n.line&&n.line>0&&"number"==typeof n.column&&n.column>0)return{line:n.line,column:n.column,offset:"number"==typeof n.offset&&n.offset>-1?n.offset:void 0}}}function eo(e){return e&&"object"==typeof e?"position"in e||"type"in e?eu(e.position):"start"in e||"end"in e?eu(e):"line"in e||"column"in e?es(e):"":""}function es(e){return ec(e&&e.line)+":"+ec(e&&e.column)}function eu(e){return es(e&&e.start)+"-"+es(e&&e.end)}function ec(e){return e&&"number"==typeof e?e:1}class ed extends Error{constructor(e,t,n){super(),"string"==typeof t&&(n=t,t=void 0);let r="",i={},l=!1;if(t&&(i="line"in t&&"column"in t||"start"in t&&"end"in t?{place:t}:"type"in t?{ancestors:[t],place:t.position}:{...t}),"string"==typeof e?r=e:!i.cause&&e&&(l=!0,r=e.message,i.cause=e),!i.ruleId&&!i.source&&"string"==typeof n){let e=n.indexOf(":");-1===e?i.ruleId=n:(i.source=n.slice(0,e),i.ruleId=n.slice(e+1))}if(!i.place&&i.ancestors&&i.ancestors){let e=i.ancestors[i.ancestors.length-1];e&&(i.place=e.position)}let a=i.place&&"start"in i.place?i.place.start:i.place;this.ancestors=i.ancestors||void 0,this.cause=i.cause||void 0,this.column=a?a.column:void 0,this.fatal=void 0,this.file="",this.message=r,this.line=a?a.line:void 0,this.name=eo(i.place)||"1:1",this.place=i.place||void 0,this.reason=this.message,this.ruleId=i.ruleId||void 0,this.source=i.source||void 0,this.stack=l&&i.cause&&"string"==typeof i.cause.stack?i.cause.stack:"",this.actual=void 0,this.expected=void 0,this.note=void 0,this.url=void 0}}ed.prototype.file="",ed.prototype.name="",ed.prototype.reason="",ed.prototype.message="",ed.prototype.stack="",ed.prototype.column=void 0,ed.prototype.line=void 0,ed.prototype.ancestors=void 0,ed.prototype.cause=void 0,ed.prototype.fatal=void 0,ed.prototype.place=void 0,ed.prototype.ruleId=void 0,ed.prototype.source=void 0;let ef={}.hasOwnProperty,ep=new Map,eh=/[A-Z]/g,em=new Set(["table","tbody","thead","tfoot","tr"]),eg=new Set(["td","th"]),ex="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function ey(e,t,n){var r,i,l,a,o,s,u,c,d;let f,p,h,m,x,y,v,b,k,w,E;return"element"===t.type?(r=e,i=t,l=n,p=f=r.schema,"svg"===i.tagName.toLowerCase()&&"html"===f.space&&(r.schema=en),r.ancestors.push(i),h=ew(r,i.tagName,!1),m=function(e,t){let n,r,i={};for(r in t.properties)if("children"!==r&&ef.call(t.properties,r)){let l=function(e,t,n){let r=function(e,t){let n=F(t),r=t,i=C;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&"data"===n.slice(0,4)&&B.test(t)){if("-"===t.charAt(4)){let e=t.slice(5).replace(_,U);r="data"+e.charAt(0).toUpperCase()+e.slice(1)}else{let e=t.slice(4);if(!_.test(e)){let n=e.replace(O,H);"-"!==n.charAt(0)&&(n="-"+n),t="data"+n}}i=R}return new i(r,t)}(e.schema,t);if(!(null==n||"number"==typeof n&&Number.isNaN(n))){var i;let t;if(Array.isArray(n)&&(n=r.commaSeparated?(t={},(""===(i=n)[i.length-1]?[...i,""]:i).join((t.padRight?" ":"")+","+(!1===t.padLeft?"":" ")).trim()):n.join(" ").trim()),"style"===r.property){let t="object"==typeof n?n:function(e,t){try{return(0,er.default)(t,{reactCompat:!0})}catch(n){if(e.ignoreInvalidStyle)return{};let t=new ed("Cannot parse `style` attribute",{ancestors:e.ancestors,cause:n,ruleId:"style",source:"hast-util-to-jsx-runtime"});throw t.file=e.filePath||void 0,t.url=ex+"#cannot-parse-style-attribute",t}}(e,String(n));return"css"===e.stylePropertyNameCase&&(t=function(e){let t,n={};for(t in e)ef.call(e,t)&&(n[function(e){let t=e.replace(eh,eC);return"ms-"===t.slice(0,3)&&(t="-"+t),t}(t)]=e[t]);return n}(t)),["style",t]}return["react"===e.elementAttributeNameCase&&r.space?$[r.property]||r.property:r.attribute,n]}}(e,r,t.properties[r]);if(l){let[r,a]=l;e.tableCellAlignToStyle&&"align"===r&&"string"==typeof a&&eg.has(t.tagName)?n=a:i[r]=a}}return n&&((i.style||(i.style={}))["css"===e.stylePropertyNameCase?"text-align":"textAlign"]=n),i}(r,i),x=ek(r,i),em.has(i.tagName)&&(x=x.filter(function(e){return"string"!=typeof e||!("object"==typeof e?"text"===e.type&&S(e.value):S(e))})),ev(r,m,h,i),eb(m,x),r.ancestors.pop(),r.schema=f,r.create(i,h,m,l)):"mdxFlowExpression"===t.type||"mdxTextExpression"===t.type?function(e,t){if(t.data&&t.data.estree&&e.evaluater){let n=t.data.estree.body[0];return g(n.type),e.evaluater.evaluateExpression(n.expression)}eS(e,t.position)}(e,t):"mdxJsxFlowElement"===t.type||"mdxJsxTextElement"===t.type?(a=e,o=t,s=n,v=y=a.schema,"svg"===o.name&&"html"===y.space&&(a.schema=en),a.ancestors.push(o),b=null===o.name?a.Fragment:ew(a,o.name,!0),k=function(e,t){let n={};for(let r of t.attributes)if("mdxJsxExpressionAttribute"===r.type)if(r.data&&r.data.estree&&e.evaluater){let t=r.data.estree.body[0];g(t.type);let i=t.expression;g(i.type);let l=i.properties[0];g(l.type),Object.assign(n,e.evaluater.evaluateExpression(l.argument))}else eS(e,t.position);else{let i,l=r.name;if(r.value&&"object"==typeof r.value)if(r.value.data&&r.value.data.estree&&e.evaluater){let t=r.value.data.estree.body[0];g(t.type),i=e.evaluater.evaluateExpression(t.expression)}else eS(e,t.position);else i=null===r.value||r.value;n[l]=i}return n}(a,o),w=ek(a,o),ev(a,k,b,o),eb(k,w),a.ancestors.pop(),a.schema=y,a.create(o,b,k,s)):"mdxjsEsm"===t.type?function(e,t){if(t.data&&t.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(t.data.estree);eS(e,t.position)}(e,t):"root"===t.type?(u=e,c=t,d=n,eb(E={},ek(u,c)),u.create(c,u.Fragment,E,d)):"text"===t.type?t.value:void 0}function ev(e,t,n,r){"string"!=typeof n&&n!==e.Fragment&&e.passNode&&(t.node=r)}function eb(e,t){if(t.length>0){let n=t.length>1?t:t[0];n&&(e.children=n)}}function ek(e,t){let n=[],r=-1,i=e.passKeys?new Map:ep;for(;++r<t.children.length;){let l,a=t.children[r];if(e.passKeys){let e="element"===a.type?a.tagName:"mdxJsxFlowElement"===a.type||"mdxJsxTextElement"===a.type?a.name:void 0;if(e){let t=i.get(e)||0;l=e+"-"+t,i.set(e,t+1)}}let o=ey(e,a,l);void 0!==o&&n.push(o)}return n}function ew(e,t,n){let r;if(n)if(t.includes(".")){let e,n=t.split("."),i=-1;for(;++i<n.length;){let t=k(n[i])?{type:"Identifier",name:n[i]}:{type:"Literal",value:n[i]};e=e?{type:"MemberExpression",object:e,property:t,computed:!!(i&&"Literal"===t.type),optional:!1}:t}g(),r=e}else r=k(t)&&!/^[a-z]/.test(t)?{type:"Identifier",name:t}:{type:"Literal",value:t};else r={type:"Literal",value:t};if("Literal"===r.type){let t=r.value;return ef.call(e.components,t)?e.components[t]:t}if(e.evaluater)return e.evaluater.evaluateExpression(r);eS(e)}function eS(e,t){let n=new ed("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=ex+"#cannot-handle-mdx-estrees-without-createevaluater",n}function eC(e){return"-"+e.toLowerCase()}let eE={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"]},ej={};function eA(e,t){let n=t||ej;return eT(e,"boolean"!=typeof n.includeImageAlt||n.includeImageAlt,"boolean"!=typeof n.includeHtml||n.includeHtml)}function eT(e,t,n){var r;if((r=e)&&"object"==typeof r){if("value"in e)return"html"!==e.type||n?e.value:"";if(t&&"alt"in e&&e.alt)return e.alt;if("children"in e)return eN(e.children,t,n)}return Array.isArray(e)?eN(e,t,n):""}function eN(e,t,n){let r=[],i=-1;for(;++i<e.length;)r[i]=eT(e[i],t,n);return r.join("")}function eL(e,t,n,r){let i,l=e.length,a=0;if(t=t<0?-t>l?0:l+t:t>l?l:t,n=n>0?n:0,r.length<1e4)(i=Array.from(r)).unshift(t,n),e.splice(...i);else for(n&&e.splice(t,n);a<r.length;)(i=r.slice(a,a+1e4)).unshift(t,0),e.splice(...i),a+=1e4,t+=1e4}function eD(e,t){return e.length>0?(eL(e,e.length,0,t),e):t}let ez={}.hasOwnProperty;function eM(e){let t={},n=-1;for(;++n<e.length;)!function(e,t){let n;for(n in t){let r,i=(ez.call(e,n)?e[n]:void 0)||(e[n]={}),l=t[n];if(l)for(r in l){ez.call(i,r)||(i[r]=[]);let e=l[r];!function(e,t){let n=-1,r=[];for(;++n<t.length;)("after"===t[n].add?e:r).push(t[n]);eL(e,0,0,r)}(i[r],Array.isArray(e)?e:e?[e]:[])}}}(t,e[n]);return t}let eI=eW(/[A-Za-z]/),eP=eW(/[\dA-Za-z]/),eR=eW(/[#-'*+\--9=?A-Z^-~]/);function eF(e){return null!==e&&(e<32||127===e)}let eO=eW(/\d/),e_=eW(/[\dA-Fa-f]/),eB=eW(/[!-/:-@[-`{-~]/);function eH(e){return null!==e&&e<-2}function eU(e){return null!==e&&(e<0||32===e)}function e$(e){return -2===e||-1===e||32===e}let eq=eW(/\p{P}|\p{S}/u),eV=eW(/\s/);function eW(e){return function(t){return null!==t&&t>-1&&e.test(String.fromCharCode(t))}}function eQ(e,t,n,r){let i=r?r-1:1/0,l=0;return function(r){return e$(r)?(e.enter(n),function r(a){return e$(a)&&l++<i?(e.consume(a),r):(e.exit(n),t(a))}(r)):t(r)}}let eJ={tokenize:function(e){let t,n=e.attempt(this.parser.constructs.contentInitial,function(t){return null===t?void e.consume(t):(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),eQ(e,n,"linePrefix"))},function(n){return e.enter("paragraph"),function n(r){let i=e.enter("chunkText",{contentType:"text",previous:t});return t&&(t.next=i),t=i,function t(r){if(null===r){e.exit("chunkText"),e.exit("paragraph"),e.consume(r);return}return eH(r)?(e.consume(r),e.exit("chunkText"),n):(e.consume(r),t)}(r)}(n)});return n}},eK={tokenize:function(e){let t,n,r,i=this,l=[],a=0;return o;function o(t){if(a<l.length){let n=l[a];return i.containerState=n[1],e.attempt(n[0].continuation,s,u)(t)}return u(t)}function s(e){if(a++,i.containerState._closeFlow){let n;i.containerState._closeFlow=void 0,t&&x();let r=i.events.length,l=r;for(;l--;)if("exit"===i.events[l][0]&&"chunkFlow"===i.events[l][1].type){n=i.events[l][1].end;break}g(a);let o=r;for(;o<i.events.length;)i.events[o][1].end={...n},o++;return eL(i.events,l+1,0,i.events.slice(r)),i.events.length=o,u(e)}return o(e)}function u(n){if(a===l.length){if(!t)return f(n);if(t.currentConstruct&&t.currentConstruct.concrete)return h(n);i.interrupt=!!(t.currentConstruct&&!t._gfmTableDynamicInterruptHack)}return i.containerState={},e.check(eX,c,d)(n)}function c(e){return t&&x(),g(a),f(e)}function d(e){return i.parser.lazy[i.now().line]=a!==l.length,r=i.now().offset,h(e)}function f(t){return i.containerState={},e.attempt(eX,p,h)(t)}function p(e){return a++,l.push([i.currentConstruct,i.containerState]),f(e)}function h(r){if(null===r){t&&x(),g(0),e.consume(r);return}return t=t||i.parser.flow(i.now()),e.enter("chunkFlow",{_tokenizer:t,contentType:"flow",previous:n}),function t(n){if(null===n){m(e.exit("chunkFlow"),!0),g(0),e.consume(n);return}return eH(n)?(e.consume(n),m(e.exit("chunkFlow")),a=0,i.interrupt=void 0,o):(e.consume(n),t)}(r)}function m(e,l){let o=i.sliceStream(e);if(l&&o.push(null),e.previous=n,n&&(n.next=e),n=e,t.defineSkip(e.start),t.write(o),i.parser.lazy[e.start.line]){let e,n,l=t.events.length;for(;l--;)if(t.events[l][1].start.offset<r&&(!t.events[l][1].end||t.events[l][1].end.offset>r))return;let o=i.events.length,s=o;for(;s--;)if("exit"===i.events[s][0]&&"chunkFlow"===i.events[s][1].type){if(e){n=i.events[s][1].end;break}e=!0}for(g(a),l=o;l<i.events.length;)i.events[l][1].end={...n},l++;eL(i.events,s+1,0,i.events.slice(o)),i.events.length=l}}function g(t){let n=l.length;for(;n-- >t;){let t=l[n];i.containerState=t[1],t[0].exit.call(i,e)}l.length=t}function x(){t.write([null]),n=void 0,t=void 0,i.containerState._closeFlow=void 0}}},eX={tokenize:function(e,t,n){return eQ(e,e.attempt(this.parser.constructs.document,t,n),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}},eZ={partial:!0,tokenize:function(e,t,n){return function(t){return e$(t)?eQ(e,r,"linePrefix")(t):r(t)};function r(e){return null===e||eH(e)?t(e):n(e)}}};class eG{constructor(e){this.left=e?[...e]:[],this.right=[]}get(e){if(e<0||e>=this.left.length+this.right.length)throw RangeError("Cannot access index `"+e+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return e<this.left.length?this.left[e]:this.right[this.right.length-e+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(e,t){let n=null==t?1/0:t;return n<this.left.length?this.left.slice(e,n):e>this.left.length?this.right.slice(this.right.length-n+this.left.length,this.right.length-e+this.left.length).reverse():this.left.slice(e).concat(this.right.slice(this.right.length-n+this.left.length).reverse())}splice(e,t,n){this.setCursor(Math.trunc(e));let r=this.right.splice(this.right.length-(t||0),1/0);return n&&eY(this.left,n),r.reverse()}pop(){return this.setCursor(1/0),this.left.pop()}push(e){this.setCursor(1/0),this.left.push(e)}pushMany(e){this.setCursor(1/0),eY(this.left,e)}unshift(e){this.setCursor(0),this.right.push(e)}unshiftMany(e){this.setCursor(0),eY(this.right,e.reverse())}setCursor(e){if(e!==this.left.length&&(!(e>this.left.length)||0!==this.right.length)&&(!(e<0)||0!==this.left.length))if(e<this.left.length){let t=this.left.splice(e,1/0);eY(this.right,t.reverse())}else{let t=this.right.splice(this.left.length+this.right.length-e,1/0);eY(this.left,t.reverse())}}}function eY(e,t){let n=0;if(t.length<1e4)e.push(...t);else for(;n<t.length;)e.push(...t.slice(n,n+1e4)),n+=1e4}function e0(e){let t,n,r,i,l,a,o,s={},u=-1,c=new eG(e);for(;++u<c.length;){for(;u in s;)u=s[u];if(t=c.get(u),u&&"chunkFlow"===t[1].type&&"listItemPrefix"===c.get(u-1)[1].type&&((r=0)<(a=t[1]._tokenizer.events).length&&"lineEndingBlank"===a[r][1].type&&(r+=2),r<a.length&&"content"===a[r][1].type))for(;++r<a.length&&"content"!==a[r][1].type;)"chunkText"===a[r][1].type&&(a[r][1]._isInFirstContentOfListItem=!0,r++);if("enter"===t[0])t[1].contentType&&(Object.assign(s,function(e,t){let n,r,i=e.get(t)[1],l=e.get(t)[2],a=t-1,o=[],s=i._tokenizer;!s&&(s=l.parser[i.contentType](i.start),i._contentTypeTextTrailing&&(s._contentTypeTextTrailing=!0));let u=s.events,c=[],d={},f=-1,p=i,h=0,m=0,g=[0];for(;p;){for(;e.get(++a)[1]!==p;);o.push(a),!p._tokenizer&&(n=l.sliceStream(p),p.next||n.push(null),r&&s.defineSkip(p.start),p._isInFirstContentOfListItem&&(s._gfmTasklistFirstContentOfListItem=!0),s.write(n),p._isInFirstContentOfListItem&&(s._gfmTasklistFirstContentOfListItem=void 0)),r=p,p=p.next}for(p=i;++f<u.length;)"exit"===u[f][0]&&"enter"===u[f-1][0]&&u[f][1].type===u[f-1][1].type&&u[f][1].start.line!==u[f][1].end.line&&(m=f+1,g.push(m),p._tokenizer=void 0,p.previous=void 0,p=p.next);for(s.events=[],p?(p._tokenizer=void 0,p.previous=void 0):g.pop(),f=g.length;f--;){let t=u.slice(g[f],g[f+1]),n=o.pop();c.push([n,n+t.length-1]),e.splice(n,2,t)}for(c.reverse(),f=-1;++f<c.length;)d[h+c[f][0]]=h+c[f][1],h+=c[f][1]-c[f][0]-1;return d}(c,u)),u=s[u],o=!0);else if(t[1]._container){for(r=u,n=void 0;r--;)if("lineEnding"===(i=c.get(r))[1].type||"lineEndingBlank"===i[1].type)"enter"===i[0]&&(n&&(c.get(n)[1].type="lineEndingBlank"),i[1].type="lineEnding",n=r);else if("linePrefix"===i[1].type||"listItemIndent"===i[1].type);else break;n&&(t[1].end={...c.get(n)[1].start},(l=c.slice(n,u)).unshift(t),c.splice(n,u-n+1,l))}}return eL(e,0,1/0,c.slice(0)),!o}let e1={resolve:function(e){return e0(e),e},tokenize:function(e,t){let n;return function(t){return e.enter("content"),n=e.enter("chunkContent",{contentType:"content"}),r(t)};function r(t){return null===t?i(t):eH(t)?e.check(e2,l,i)(t):(e.consume(t),r)}function i(n){return e.exit("chunkContent"),e.exit("content"),t(n)}function l(t){return e.consume(t),e.exit("chunkContent"),n.next=e.enter("chunkContent",{contentType:"content",previous:n}),n=n.next,r}}},e2={partial:!0,tokenize:function(e,t,n){let r=this;return function(t){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),eQ(e,i,"linePrefix")};function i(i){if(null===i||eH(i))return n(i);let l=r.events[r.events.length-1];return!r.parser.constructs.disable.null.includes("codeIndented")&&l&&"linePrefix"===l[1].type&&l[2].sliceSerialize(l[1],!0).length>=4?t(i):e.interrupt(r.parser.constructs.flow,n,t)(i)}}},e4={tokenize:function(e){let t=this,n=e.attempt(eZ,function(r){return null===r?void e.consume(r):(e.enter("lineEndingBlank"),e.consume(r),e.exit("lineEndingBlank"),t.currentConstruct=void 0,n)},e.attempt(this.parser.constructs.flowInitial,r,eQ(e,e.attempt(this.parser.constructs.flow,r,e.attempt(e1,r)),"linePrefix")));return n;function r(r){return null===r?void e.consume(r):(e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),t.currentConstruct=void 0,n)}}},e3={resolveAll:e8()},e6=e9("string"),e5=e9("text");function e9(e){return{resolveAll:e8("text"===e?e7:void 0),tokenize:function(t){let n=this,r=this.parser.constructs[e],i=t.attempt(r,l,a);return l;function l(e){return s(e)?i(e):a(e)}function a(e){return null===e?void t.consume(e):(t.enter("data"),t.consume(e),o)}function o(e){return s(e)?(t.exit("data"),i(e)):(t.consume(e),o)}function s(e){if(null===e)return!0;let t=r[e],i=-1;if(t)for(;++i<t.length;){let e=t[i];if(!e.previous||e.previous.call(n,n.previous))return!0}return!1}}}}function e8(e){return function(t,n){let r,i=-1;for(;++i<=t.length;)void 0===r?t[i]&&"data"===t[i][1].type&&(r=i,i++):t[i]&&"data"===t[i][1].type||(i!==r+2&&(t[r][1].end=t[i-1][1].end,t.splice(r+2,i-r-2),i=r+2),r=void 0);return e?e(t,n):t}}function e7(e,t){let n=0;for(;++n<=e.length;)if((n===e.length||"lineEnding"===e[n][1].type)&&"data"===e[n-1][1].type){let r,i=e[n-1][1],l=t.sliceStream(i),a=l.length,o=-1,s=0;for(;a--;){let e=l[a];if("string"==typeof e){for(o=e.length;32===e.charCodeAt(o-1);)s++,o--;if(o)break;o=-1}else if(-2===e)r=!0,s++;else if(-1===e);else{a++;break}}if(t._contentTypeTextTrailing&&n===e.length&&(s=0),s){let l={type:n===e.length||r||s<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:a?o:i.start._bufferIndex+o,_index:i.start._index+a,line:i.end.line,column:i.end.column-s,offset:i.end.offset-s},end:{...i.end}};i.end={...l.start},i.start.offset===i.end.offset?Object.assign(i,l):(e.splice(n,0,["enter",l,t],["exit",l,t]),n+=2)}n++}return e}function te(e){return null===e||eU(e)||eV(e)?1:eq(e)?2:void 0}function tt(e,t,n){let r=[],i=-1;for(;++i<e.length;){let l=e[i].resolveAll;l&&!r.includes(l)&&(t=l(t,n),r.push(l))}return t}let tn={name:"attention",resolveAll:function(e,t){let n,r,i,l,a,o,s,u,c=-1;for(;++c<e.length;)if("enter"===e[c][0]&&"attentionSequence"===e[c][1].type&&e[c][1]._close){for(n=c;n--;)if("exit"===e[n][0]&&"attentionSequence"===e[n][1].type&&e[n][1]._open&&t.sliceSerialize(e[n][1]).charCodeAt(0)===t.sliceSerialize(e[c][1]).charCodeAt(0)){if((e[n][1]._close||e[c][1]._open)&&(e[c][1].end.offset-e[c][1].start.offset)%3&&!((e[n][1].end.offset-e[n][1].start.offset+e[c][1].end.offset-e[c][1].start.offset)%3))continue;o=e[n][1].end.offset-e[n][1].start.offset>1&&e[c][1].end.offset-e[c][1].start.offset>1?2:1;let d={...e[n][1].end},f={...e[c][1].start};tr(d,-o),tr(f,o),l={type:o>1?"strongSequence":"emphasisSequence",start:d,end:{...e[n][1].end}},a={type:o>1?"strongSequence":"emphasisSequence",start:{...e[c][1].start},end:f},i={type:o>1?"strongText":"emphasisText",start:{...e[n][1].end},end:{...e[c][1].start}},r={type:o>1?"strong":"emphasis",start:{...l.start},end:{...a.end}},e[n][1].end={...l.start},e[c][1].start={...a.end},s=[],e[n][1].end.offset-e[n][1].start.offset&&(s=eD(s,[["enter",e[n][1],t],["exit",e[n][1],t]])),s=eD(s,[["enter",r,t],["enter",l,t],["exit",l,t],["enter",i,t]]),s=eD(s,tt(t.parser.constructs.insideSpan.null,e.slice(n+1,c),t)),s=eD(s,[["exit",i,t],["enter",a,t],["exit",a,t],["exit",r,t]]),e[c][1].end.offset-e[c][1].start.offset?(u=2,s=eD(s,[["enter",e[c][1],t],["exit",e[c][1],t]])):u=0,eL(e,n-1,c-n+3,s),c=n+s.length-u-2;break}}for(c=-1;++c<e.length;)"attentionSequence"===e[c][1].type&&(e[c][1].type="data");return e},tokenize:function(e,t){let n,r=this.parser.constructs.attentionMarkers.null,i=this.previous,l=te(i);return function(a){return n=a,e.enter("attentionSequence"),function a(o){if(o===n)return e.consume(o),a;let s=e.exit("attentionSequence"),u=te(o),c=!u||2===u&&l||r.includes(o),d=!l||2===l&&u||r.includes(i);return s._open=!!(42===n?c:c&&(l||!d)),s._close=!!(42===n?d:d&&(u||!c)),t(o)}(a)}}};function tr(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}let ti={continuation:{tokenize:function(e,t,n){let r=this;return function(t){return e$(t)?eQ(e,i,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t):i(t)};function i(r){return e.attempt(ti,t,n)(r)}}},exit:function(e){e.exit("blockQuote")},name:"blockQuote",tokenize:function(e,t,n){let r=this;return function(t){if(62===t){let n=r.containerState;return n.open||(e.enter("blockQuote",{_container:!0}),n.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(t),e.exit("blockQuoteMarker"),i}return n(t)};function i(n){return e$(n)?(e.enter("blockQuotePrefixWhitespace"),e.consume(n),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),t):(e.exit("blockQuotePrefix"),t(n))}}},tl={name:"characterEscape",tokenize:function(e,t,n){return function(t){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(t),e.exit("escapeMarker"),r};function r(r){return eB(r)?(e.enter("characterEscapeValue"),e.consume(r),e.exit("characterEscapeValue"),e.exit("characterEscape"),t):n(r)}}},ta=document.createElement("i");function to(e){let t="&"+e+";";ta.innerHTML=t;let n=ta.textContent;return(59!==n.charCodeAt(n.length-1)||"semi"===e)&&n!==t&&n}let ts={name:"characterReference",tokenize:function(e,t,n){let r,i,l=this,a=0;return function(t){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(t),e.exit("characterReferenceMarker"),o};function o(t){return 35===t?(e.enter("characterReferenceMarkerNumeric"),e.consume(t),e.exit("characterReferenceMarkerNumeric"),s):(e.enter("characterReferenceValue"),r=31,i=eP,u(t))}function s(t){return 88===t||120===t?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(t),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),r=6,i=e_,u):(e.enter("characterReferenceValue"),r=7,i=eO,u(t))}function u(o){if(59===o&&a){let r=e.exit("characterReferenceValue");return i!==eP||to(l.sliceSerialize(r))?(e.enter("characterReferenceMarker"),e.consume(o),e.exit("characterReferenceMarker"),e.exit("characterReference"),t):n(o)}return i(o)&&a++<r?(e.consume(o),u):n(o)}}},tu={partial:!0,tokenize:function(e,t,n){let r=this;return function(t){return null===t?n(t):(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),i)};function i(e){return r.parser.lazy[r.now().line]?n(e):t(e)}}},tc={concrete:!0,name:"codeFenced",tokenize:function(e,t,n){let r,i=this,l={partial:!0,tokenize:function(e,t,n){let l=0;return function(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),a};function a(t){return e.enter("codeFencedFence"),e$(t)?eQ(e,s,"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t):s(t)}function s(t){return t===r?(e.enter("codeFencedFenceSequence"),function t(i){return i===r?(l++,e.consume(i),t):l>=o?(e.exit("codeFencedFenceSequence"),e$(i)?eQ(e,u,"whitespace")(i):u(i)):n(i)}(t)):n(t)}function u(r){return null===r||eH(r)?(e.exit("codeFencedFence"),t(r)):n(r)}}},a=0,o=0;return function(t){var l;let u;return l=t,a=(u=i.events[i.events.length-1])&&"linePrefix"===u[1].type?u[2].sliceSerialize(u[1],!0).length:0,r=l,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),function t(i){return i===r?(o++,e.consume(i),t):o<3?n(i):(e.exit("codeFencedFenceSequence"),e$(i)?eQ(e,s,"whitespace")(i):s(i))}(l)};function s(l){return null===l||eH(l)?(e.exit("codeFencedFence"),i.interrupt?t(l):e.check(tu,c,h)(l)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),function t(i){return null===i||eH(i)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),s(i)):e$(i)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),eQ(e,u,"whitespace")(i)):96===i&&i===r?n(i):(e.consume(i),t)}(l))}function u(t){return null===t||eH(t)?s(t):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),function t(i){return null===i||eH(i)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),s(i)):96===i&&i===r?n(i):(e.consume(i),t)}(t))}function c(t){return e.attempt(l,h,d)(t)}function d(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),f}function f(t){return a>0&&e$(t)?eQ(e,p,"linePrefix",a+1)(t):p(t)}function p(t){return null===t||eH(t)?e.check(tu,c,h)(t):(e.enter("codeFlowValue"),function t(n){return null===n||eH(n)?(e.exit("codeFlowValue"),p(n)):(e.consume(n),t)}(t))}function h(n){return e.exit("codeFenced"),t(n)}}},td={name:"codeIndented",tokenize:function(e,t,n){let r=this;return function(t){return e.enter("codeIndented"),eQ(e,i,"linePrefix",5)(t)};function i(t){let i=r.events[r.events.length-1];return i&&"linePrefix"===i[1].type&&i[2].sliceSerialize(i[1],!0).length>=4?function t(n){return null===n?l(n):eH(n)?e.attempt(tf,t,l)(n):(e.enter("codeFlowValue"),function n(r){return null===r||eH(r)?(e.exit("codeFlowValue"),t(r)):(e.consume(r),n)}(n))}(t):n(t)}function l(n){return e.exit("codeIndented"),t(n)}}},tf={partial:!0,tokenize:function(e,t,n){let r=this;return i;function i(t){return r.parser.lazy[r.now().line]?n(t):eH(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),i):eQ(e,l,"linePrefix",5)(t)}function l(e){let l=r.events[r.events.length-1];return l&&"linePrefix"===l[1].type&&l[2].sliceSerialize(l[1],!0).length>=4?t(e):eH(e)?i(e):n(e)}}};function tp(e,t,n,r,i,l,a,o,s){let u=s||1/0,c=0;return function(t){return 60===t?(e.enter(r),e.enter(i),e.enter(l),e.consume(t),e.exit(l),d):null===t||32===t||41===t||eF(t)?n(t):(e.enter(r),e.enter(a),e.enter(o),e.enter("chunkString",{contentType:"string"}),h(t))};function d(n){return 62===n?(e.enter(l),e.consume(n),e.exit(l),e.exit(i),e.exit(r),t):(e.enter(o),e.enter("chunkString",{contentType:"string"}),f(n))}function f(t){return 62===t?(e.exit("chunkString"),e.exit(o),d(t)):null===t||60===t||eH(t)?n(t):(e.consume(t),92===t?p:f)}function p(t){return 60===t||62===t||92===t?(e.consume(t),f):f(t)}function h(i){return!c&&(null===i||41===i||eU(i))?(e.exit("chunkString"),e.exit(o),e.exit(a),e.exit(r),t(i)):c<u&&40===i?(e.consume(i),c++,h):41===i?(e.consume(i),c--,h):null===i||32===i||40===i||eF(i)?n(i):(e.consume(i),92===i?m:h)}function m(t){return 40===t||41===t||92===t?(e.consume(t),h):h(t)}}function th(e,t,n,r,i,l){let a,o=this,s=0;return function(t){return e.enter(r),e.enter(i),e.consume(t),e.exit(i),e.enter(l),u};function u(d){return s>999||null===d||91===d||93===d&&!a||94===d&&!s&&"_hiddenFootnoteSupport"in o.parser.constructs?n(d):93===d?(e.exit(l),e.enter(i),e.consume(d),e.exit(i),e.exit(r),t):eH(d)?(e.enter("lineEnding"),e.consume(d),e.exit("lineEnding"),u):(e.enter("chunkString",{contentType:"string"}),c(d))}function c(t){return null===t||91===t||93===t||eH(t)||s++>999?(e.exit("chunkString"),u(t)):(e.consume(t),a||(a=!e$(t)),92===t?d:c)}function d(t){return 91===t||92===t||93===t?(e.consume(t),s++,c):c(t)}}function tm(e,t,n,r,i,l){let a;return function(t){return 34===t||39===t||40===t?(e.enter(r),e.enter(i),e.consume(t),e.exit(i),a=40===t?41:t,o):n(t)};function o(n){return n===a?(e.enter(i),e.consume(n),e.exit(i),e.exit(r),t):(e.enter(l),s(n))}function s(t){return t===a?(e.exit(l),o(a)):null===t?n(t):eH(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),eQ(e,s,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),u(t))}function u(t){return t===a||null===t||eH(t)?(e.exit("chunkString"),s(t)):(e.consume(t),92===t?c:u)}function c(t){return t===a||92===t?(e.consume(t),u):u(t)}}function tg(e,t){let n;return function r(i){return eH(i)?(e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),n=!0,r):e$(i)?eQ(e,r,n?"linePrefix":"lineSuffix")(i):t(i)}}function tx(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}let ty={partial:!0,tokenize:function(e,t,n){return function(t){return eU(t)?tg(e,r)(t):n(t)};function r(t){return tm(e,i,n,"definitionTitle","definitionTitleMarker","definitionTitleString")(t)}function i(t){return e$(t)?eQ(e,l,"whitespace")(t):l(t)}function l(e){return null===e||eH(e)?t(e):n(e)}}},tv=["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"],tb=["pre","script","style","textarea"],tk={partial:!0,tokenize:function(e,t,n){return function(r){return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),e.attempt(eZ,t,n)}}},tw={partial:!0,tokenize:function(e,t,n){let r=this;return function(t){return eH(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),i):n(t)};function i(e){return r.parser.lazy[r.now().line]?n(e):t(e)}}},tS={name:"labelEnd",resolveAll:function(e){let t=-1,n=[];for(;++t<e.length;){let r=e[t][1];if(n.push(e[t]),"labelImage"===r.type||"labelLink"===r.type||"labelEnd"===r.type){let e="labelImage"===r.type?4:2;r.type="data",t+=e}}return e.length!==n.length&&eL(e,0,e.length,n),e},resolveTo:function(e,t){let n,r,i,l,a=e.length,o=0;for(;a--;)if(n=e[a][1],r){if("link"===n.type||"labelLink"===n.type&&n._inactive)break;"enter"===e[a][0]&&"labelLink"===n.type&&(n._inactive=!0)}else if(i){if("enter"===e[a][0]&&("labelImage"===n.type||"labelLink"===n.type)&&!n._balanced&&(r=a,"labelLink"!==n.type)){o=2;break}}else"labelEnd"===n.type&&(i=a);let s={type:"labelLink"===e[r][1].type?"link":"image",start:{...e[r][1].start},end:{...e[e.length-1][1].end}},u={type:"label",start:{...e[r][1].start},end:{...e[i][1].end}},c={type:"labelText",start:{...e[r+o+2][1].end},end:{...e[i-2][1].start}};return l=eD(l=[["enter",s,t],["enter",u,t]],e.slice(r+1,r+o+3)),l=eD(l,[["enter",c,t]]),l=eD(l,tt(t.parser.constructs.insideSpan.null,e.slice(r+o+4,i-3),t)),l=eD(l,[["exit",c,t],e[i-2],e[i-1],["exit",u,t]]),l=eD(l,e.slice(i+1)),l=eD(l,[["exit",s,t]]),eL(e,r,e.length,l),e},tokenize:function(e,t,n){let r,i,l=this,a=l.events.length;for(;a--;)if(("labelImage"===l.events[a][1].type||"labelLink"===l.events[a][1].type)&&!l.events[a][1]._balanced){r=l.events[a][1];break}return function(t){return r?r._inactive?c(t):(i=l.parser.defined.includes(tx(l.sliceSerialize({start:r.end,end:l.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(t),e.exit("labelMarker"),e.exit("labelEnd"),o):n(t)};function o(t){return 40===t?e.attempt(tC,u,i?u:c)(t):91===t?e.attempt(tE,u,i?s:c)(t):i?u(t):c(t)}function s(t){return e.attempt(tj,u,c)(t)}function u(e){return t(e)}function c(e){return r._balanced=!0,n(e)}}},tC={tokenize:function(e,t,n){return function(t){return e.enter("resource"),e.enter("resourceMarker"),e.consume(t),e.exit("resourceMarker"),r};function r(t){return eU(t)?tg(e,i)(t):i(t)}function i(t){return 41===t?u(t):tp(e,l,a,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(t)}function l(t){return eU(t)?tg(e,o)(t):u(t)}function a(e){return n(e)}function o(t){return 34===t||39===t||40===t?tm(e,s,n,"resourceTitle","resourceTitleMarker","resourceTitleString")(t):u(t)}function s(t){return eU(t)?tg(e,u)(t):u(t)}function u(r){return 41===r?(e.enter("resourceMarker"),e.consume(r),e.exit("resourceMarker"),e.exit("resource"),t):n(r)}}},tE={tokenize:function(e,t,n){let r=this;return function(t){return th.call(r,e,i,l,"reference","referenceMarker","referenceString")(t)};function i(e){return r.parser.defined.includes(tx(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)))?t(e):n(e)}function l(e){return n(e)}}},tj={tokenize:function(e,t,n){return function(t){return e.enter("reference"),e.enter("referenceMarker"),e.consume(t),e.exit("referenceMarker"),r};function r(r){return 93===r?(e.enter("referenceMarker"),e.consume(r),e.exit("referenceMarker"),e.exit("reference"),t):n(r)}}},tA={name:"labelStartImage",resolveAll:tS.resolveAll,tokenize:function(e,t,n){let r=this;return function(t){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(t),e.exit("labelImageMarker"),i};function i(t){return 91===t?(e.enter("labelMarker"),e.consume(t),e.exit("labelMarker"),e.exit("labelImage"),l):n(t)}function l(e){return 94===e&&"_hiddenFootnoteSupport"in r.parser.constructs?n(e):t(e)}}},tT={name:"labelStartLink",resolveAll:tS.resolveAll,tokenize:function(e,t,n){let r=this;return function(t){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(t),e.exit("labelMarker"),e.exit("labelLink"),i};function i(e){return 94===e&&"_hiddenFootnoteSupport"in r.parser.constructs?n(e):t(e)}}},tN={name:"lineEnding",tokenize:function(e,t){return function(n){return e.enter("lineEnding"),e.consume(n),e.exit("lineEnding"),eQ(e,t,"linePrefix")}}},tL={name:"thematicBreak",tokenize:function(e,t,n){let r,i=0;return function(l){var a;return e.enter("thematicBreak"),r=a=l,function l(a){return a===r?(e.enter("thematicBreakSequence"),function t(n){return n===r?(e.consume(n),i++,t):(e.exit("thematicBreakSequence"),e$(n)?eQ(e,l,"whitespace")(n):l(n))}(a)):i>=3&&(null===a||eH(a))?(e.exit("thematicBreak"),t(a)):n(a)}(a)}}},tD={continuation:{tokenize:function(e,t,n){let r=this;return r.containerState._closeFlow=void 0,e.check(eZ,function(n){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,eQ(e,t,"listItemIndent",r.containerState.size+1)(n)},function(n){return r.containerState.furtherBlankLines||!e$(n)?(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,i(n)):(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,e.attempt(tM,t,i)(n))});function i(i){return r.containerState._closeFlow=!0,r.interrupt=void 0,eQ(e,e.attempt(tD,t,n),"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(i)}}},exit:function(e){e.exit(this.containerState.type)},name:"list",tokenize:function(e,t,n){let r=this,i=r.events[r.events.length-1],l=i&&"linePrefix"===i[1].type?i[2].sliceSerialize(i[1],!0).length:0,a=0;return function(t){let i=r.containerState.type||(42===t||43===t||45===t?"listUnordered":"listOrdered");if("listUnordered"===i?!r.containerState.marker||t===r.containerState.marker:eO(t)){if(r.containerState.type||(r.containerState.type=i,e.enter(i,{_container:!0})),"listUnordered"===i)return e.enter("listItemPrefix"),42===t||45===t?e.check(tL,n,o)(t):o(t);if(!r.interrupt||49===t)return e.enter("listItemPrefix"),e.enter("listItemValue"),function t(i){return eO(i)&&++a<10?(e.consume(i),t):(!r.interrupt||a<2)&&(r.containerState.marker?i===r.containerState.marker:41===i||46===i)?(e.exit("listItemValue"),o(i)):n(i)}(t)}return n(t)};function o(t){return e.enter("listItemMarker"),e.consume(t),e.exit("listItemMarker"),r.containerState.marker=r.containerState.marker||t,e.check(eZ,r.interrupt?n:s,e.attempt(tz,c,u))}function s(e){return r.containerState.initialBlankLine=!0,l++,c(e)}function u(t){return e$(t)?(e.enter("listItemPrefixWhitespace"),e.consume(t),e.exit("listItemPrefixWhitespace"),c):n(t)}function c(n){return r.containerState.size=l+r.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(n)}}},tz={partial:!0,tokenize:function(e,t,n){let r=this;return eQ(e,function(e){let i=r.events[r.events.length-1];return!e$(e)&&i&&"listItemPrefixWhitespace"===i[1].type?t(e):n(e)},"listItemPrefixWhitespace",r.parser.constructs.disable.null.includes("codeIndented")?void 0:5)}},tM={partial:!0,tokenize:function(e,t,n){let r=this;return eQ(e,function(e){let i=r.events[r.events.length-1];return i&&"listItemIndent"===i[1].type&&i[2].sliceSerialize(i[1],!0).length===r.containerState.size?t(e):n(e)},"listItemIndent",r.containerState.size+1)}},tI={name:"setextUnderline",resolveTo:function(e,t){let n,r,i,l=e.length;for(;l--;)if("enter"===e[l][0]){if("content"===e[l][1].type){n=l;break}"paragraph"===e[l][1].type&&(r=l)}else"content"===e[l][1].type&&e.splice(l,1),i||"definition"!==e[l][1].type||(i=l);let a={type:"setextHeading",start:{...e[n][1].start},end:{...e[e.length-1][1].end}};return e[r][1].type="setextHeadingText",i?(e.splice(r,0,["enter",a,t]),e.splice(i+1,0,["exit",e[n][1],t]),e[n][1].end={...e[i][1].end}):e[n][1]=a,e.push(["exit",a,t]),e},tokenize:function(e,t,n){let r,i=this;return function(t){var a;let o,s=i.events.length;for(;s--;)if("lineEnding"!==i.events[s][1].type&&"linePrefix"!==i.events[s][1].type&&"content"!==i.events[s][1].type){o="paragraph"===i.events[s][1].type;break}return!i.parser.lazy[i.now().line]&&(i.interrupt||o)?(e.enter("setextHeadingLine"),r=t,a=t,e.enter("setextHeadingLineSequence"),function t(n){return n===r?(e.consume(n),t):(e.exit("setextHeadingLineSequence"),e$(n)?eQ(e,l,"lineSuffix")(n):l(n))}(a)):n(t)};function l(r){return null===r||eH(r)?(e.exit("setextHeadingLine"),t(r)):n(r)}}};e.s(["attentionMarkers",0,{null:[42,95]},"contentInitial",0,{91:{name:"definition",tokenize:function(e,t,n){let r,i=this;return function(t){var r;return e.enter("definition"),r=t,th.call(i,e,l,n,"definitionLabel","definitionLabelMarker","definitionLabelString")(r)};function l(t){return(r=tx(i.sliceSerialize(i.events[i.events.length-1][1]).slice(1,-1)),58===t)?(e.enter("definitionMarker"),e.consume(t),e.exit("definitionMarker"),a):n(t)}function a(t){return eU(t)?tg(e,o)(t):o(t)}function o(t){return tp(e,s,n,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(t)}function s(t){return e.attempt(ty,u,u)(t)}function u(t){return e$(t)?eQ(e,c,"whitespace")(t):c(t)}function c(l){return null===l||eH(l)?(e.exit("definition"),i.parser.defined.push(r),t(l)):n(l)}}}},"disable",0,{null:[]},"document",0,{42:tD,43:tD,45:tD,48:tD,49:tD,50:tD,51:tD,52:tD,53:tD,54:tD,55:tD,56:tD,57:tD,62:ti},"flow",0,{35:{name:"headingAtx",resolve:function(e,t){let n,r,i=e.length-2,l=3;return"whitespace"===e[3][1].type&&(l+=2),i-2>l&&"whitespace"===e[i][1].type&&(i-=2),"atxHeadingSequence"===e[i][1].type&&(l===i-1||i-4>l&&"whitespace"===e[i-2][1].type)&&(i-=l+1===i?2:4),i>l&&(n={type:"atxHeadingText",start:e[l][1].start,end:e[i][1].end},r={type:"chunkText",start:e[l][1].start,end:e[i][1].end,contentType:"text"},eL(e,l,i-l+1,[["enter",n,t],["enter",r,t],["exit",r,t],["exit",n,t]])),e},tokenize:function(e,t,n){let r=0;return function(i){var l;return e.enter("atxHeading"),l=i,e.enter("atxHeadingSequence"),function i(l){return 35===l&&r++<6?(e.consume(l),i):null===l||eU(l)?(e.exit("atxHeadingSequence"),function n(r){return 35===r?(e.enter("atxHeadingSequence"),function t(r){return 35===r?(e.consume(r),t):(e.exit("atxHeadingSequence"),n(r))}(r)):null===r||eH(r)?(e.exit("atxHeading"),t(r)):e$(r)?eQ(e,n,"whitespace")(r):(e.enter("atxHeadingText"),function t(r){return null===r||35===r||eU(r)?(e.exit("atxHeadingText"),n(r)):(e.consume(r),t)}(r))}(l)):n(l)}(l)}}},42:tL,45:[tI,tL],60:{concrete:!0,name:"htmlFlow",resolveTo:function(e){let t=e.length;for(;t--&&("enter"!==e[t][0]||"htmlFlow"!==e[t][1].type););return t>1&&"linePrefix"===e[t-2][1].type&&(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},tokenize:function(e,t,n){let r,i,l,a,o,s=this;return function(t){var n;return n=t,e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(n),u};function u(a){return 33===a?(e.consume(a),c):47===a?(e.consume(a),i=!0,p):63===a?(e.consume(a),r=3,s.interrupt?t:z):eI(a)?(e.consume(a),l=String.fromCharCode(a),h):n(a)}function c(i){return 45===i?(e.consume(i),r=2,d):91===i?(e.consume(i),r=5,a=0,f):eI(i)?(e.consume(i),r=4,s.interrupt?t:z):n(i)}function d(r){return 45===r?(e.consume(r),s.interrupt?t:z):n(r)}function f(r){let i="CDATA[";return r===i.charCodeAt(a++)?(e.consume(r),a===i.length)?s.interrupt?t:C:f:n(r)}function p(t){return eI(t)?(e.consume(t),l=String.fromCharCode(t),h):n(t)}function h(a){if(null===a||47===a||62===a||eU(a)){let o=47===a,u=l.toLowerCase();return!o&&!i&&tb.includes(u)?(r=1,s.interrupt?t(a):C(a)):tv.includes(l.toLowerCase())?(r=6,o)?(e.consume(a),m):s.interrupt?t(a):C(a):(r=7,s.interrupt&&!s.parser.lazy[s.now().line]?n(a):i?function t(n){return e$(n)?(e.consume(n),t):w(n)}(a):g(a))}return 45===a||eP(a)?(e.consume(a),l+=String.fromCharCode(a),h):n(a)}function m(r){return 62===r?(e.consume(r),s.interrupt?t:C):n(r)}function g(t){return 47===t?(e.consume(t),w):58===t||95===t||eI(t)?(e.consume(t),x):e$(t)?(e.consume(t),g):w(t)}function x(t){return 45===t||46===t||58===t||95===t||eP(t)?(e.consume(t),x):y(t)}function y(t){return 61===t?(e.consume(t),v):e$(t)?(e.consume(t),y):g(t)}function v(t){return null===t||60===t||61===t||62===t||96===t?n(t):34===t||39===t?(e.consume(t),o=t,b):e$(t)?(e.consume(t),v):function t(n){return null===n||34===n||39===n||47===n||60===n||61===n||62===n||96===n||eU(n)?y(n):(e.consume(n),t)}(t)}function b(t){return t===o?(e.consume(t),o=null,k):null===t||eH(t)?n(t):(e.consume(t),b)}function k(e){return 47===e||62===e||e$(e)?g(e):n(e)}function w(t){return 62===t?(e.consume(t),S):n(t)}function S(t){return null===t||eH(t)?C(t):e$(t)?(e.consume(t),S):n(t)}function C(t){return 45===t&&2===r?(e.consume(t),T):60===t&&1===r?(e.consume(t),N):62===t&&4===r?(e.consume(t),M):63===t&&3===r?(e.consume(t),z):93===t&&5===r?(e.consume(t),D):eH(t)&&(6===r||7===r)?(e.exit("htmlFlowData"),e.check(tk,I,E)(t)):null===t||eH(t)?(e.exit("htmlFlowData"),E(t)):(e.consume(t),C)}function E(t){return e.check(tw,j,I)(t)}function j(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),A}function A(t){return null===t||eH(t)?E(t):(e.enter("htmlFlowData"),C(t))}function T(t){return 45===t?(e.consume(t),z):C(t)}function N(t){return 47===t?(e.consume(t),l="",L):C(t)}function L(t){if(62===t){let n=l.toLowerCase();return tb.includes(n)?(e.consume(t),M):C(t)}return eI(t)&&l.length<8?(e.consume(t),l+=String.fromCharCode(t),L):C(t)}function D(t){return 93===t?(e.consume(t),z):C(t)}function z(t){return 62===t?(e.consume(t),M):45===t&&2===r?(e.consume(t),z):C(t)}function M(t){return null===t||eH(t)?(e.exit("htmlFlowData"),I(t)):(e.consume(t),M)}function I(n){return e.exit("htmlFlow"),t(n)}}},61:tI,95:tL,96:tc,126:tc},"flowInitial",0,{[-2]:td,[-1]:td,32:td},"insideSpan",0,{null:[tn,e3]},"string",0,{38:ts,92:tl},"text",0,{[-5]:tN,[-4]:tN,[-3]:tN,33:tA,38:ts,42:tn,60:[{name:"autolink",tokenize:function(e,t,n){let r=0;return function(t){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(t),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),i};function i(t){return eI(t)?(e.consume(t),l):64===t?n(t):o(t)}function l(t){return 43===t||45===t||46===t||eP(t)?(r=1,function t(n){return 58===n?(e.consume(n),r=0,a):(43===n||45===n||46===n||eP(n))&&r++<32?(e.consume(n),t):(r=0,o(n))}(t)):o(t)}function a(r){return 62===r?(e.exit("autolinkProtocol"),e.enter("autolinkMarker"),e.consume(r),e.exit("autolinkMarker"),e.exit("autolink"),t):null===r||32===r||60===r||eF(r)?n(r):(e.consume(r),a)}function o(t){return 64===t?(e.consume(t),s):eR(t)?(e.consume(t),o):n(t)}function s(i){return eP(i)?function i(l){return 46===l?(e.consume(l),r=0,s):62===l?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(l),e.exit("autolinkMarker"),e.exit("autolink"),t):function t(l){if((45===l||eP(l))&&r++<63){let n=45===l?t:i;return e.consume(l),n}return n(l)}(l)}(i):n(i)}}},{name:"htmlText",tokenize:function(e,t,n){let r,i,l,a=this;return function(t){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(t),o};function o(t){return 33===t?(e.consume(t),s):47===t?(e.consume(t),b):63===t?(e.consume(t),y):eI(t)?(e.consume(t),w):n(t)}function s(t){return 45===t?(e.consume(t),u):91===t?(e.consume(t),i=0,p):eI(t)?(e.consume(t),x):n(t)}function u(t){return 45===t?(e.consume(t),f):n(t)}function c(t){return null===t?n(t):45===t?(e.consume(t),d):eH(t)?(l=c,L(t)):(e.consume(t),c)}function d(t){return 45===t?(e.consume(t),f):c(t)}function f(e){return 62===e?N(e):45===e?d(e):c(e)}function p(t){let r="CDATA[";return t===r.charCodeAt(i++)?(e.consume(t),i===r.length?h:p):n(t)}function h(t){return null===t?n(t):93===t?(e.consume(t),m):eH(t)?(l=h,L(t)):(e.consume(t),h)}function m(t){return 93===t?(e.consume(t),g):h(t)}function g(t){return 62===t?N(t):93===t?(e.consume(t),g):h(t)}function x(t){return null===t||62===t?N(t):eH(t)?(l=x,L(t)):(e.consume(t),x)}function y(t){return null===t?n(t):63===t?(e.consume(t),v):eH(t)?(l=y,L(t)):(e.consume(t),y)}function v(e){return 62===e?N(e):y(e)}function b(t){return eI(t)?(e.consume(t),k):n(t)}function k(t){return 45===t||eP(t)?(e.consume(t),k):function t(n){return eH(n)?(l=t,L(n)):e$(n)?(e.consume(n),t):N(n)}(t)}function w(t){return 45===t||eP(t)?(e.consume(t),w):47===t||62===t||eU(t)?S(t):n(t)}function S(t){return 47===t?(e.consume(t),N):58===t||95===t||eI(t)?(e.consume(t),C):eH(t)?(l=S,L(t)):e$(t)?(e.consume(t),S):N(t)}function C(t){return 45===t||46===t||58===t||95===t||eP(t)?(e.consume(t),C):function t(n){return 61===n?(e.consume(n),E):eH(n)?(l=t,L(n)):e$(n)?(e.consume(n),t):S(n)}(t)}function E(t){return null===t||60===t||61===t||62===t||96===t?n(t):34===t||39===t?(e.consume(t),r=t,j):eH(t)?(l=E,L(t)):e$(t)?(e.consume(t),E):(e.consume(t),A)}function j(t){return t===r?(e.consume(t),r=void 0,T):null===t?n(t):eH(t)?(l=j,L(t)):(e.consume(t),j)}function A(t){return null===t||34===t||39===t||60===t||61===t||96===t?n(t):47===t||62===t||eU(t)?S(t):(e.consume(t),A)}function T(e){return 47===e||62===e||eU(e)?S(e):n(e)}function N(r){return 62===r?(e.consume(r),e.exit("htmlTextData"),e.exit("htmlText"),t):n(r)}function L(t){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),D}function D(t){return e$(t)?eQ(e,z,"linePrefix",a.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t):z(t)}function z(t){return e.enter("htmlTextData"),l(t)}}}],91:tT,92:[{name:"hardBreakEscape",tokenize:function(e,t,n){return function(t){return e.enter("hardBreakEscape"),e.consume(t),r};function r(r){return eH(r)?(e.exit("hardBreakEscape"),t(r)):n(r)}}},tl],93:tS,95:tn,96:{name:"codeText",previous:function(e){return 96!==e||"characterEscape"===this.events[this.events.length-1][1].type},resolve:function(e){let t,n,r=e.length-4,i=3;if(("lineEnding"===e[3][1].type||"space"===e[i][1].type)&&("lineEnding"===e[r][1].type||"space"===e[r][1].type)){for(t=i;++t<r;)if("codeTextData"===e[t][1].type){e[i][1].type="codeTextPadding",e[r][1].type="codeTextPadding",i+=2,r-=2;break}}for(t=i-1,r++;++t<=r;)void 0===n?t!==r&&"lineEnding"!==e[t][1].type&&(n=t):(t===r||"lineEnding"===e[t][1].type)&&(e[n][1].type="codeTextData",t!==n+2&&(e[n][1].end=e[t-1][1].end,e.splice(n+2,t-n-2),r-=t-n-2,t=n+2),n=void 0);return e},tokenize:function(e,t,n){let r,i,l=0;return function(t){return e.enter("codeText"),e.enter("codeTextSequence"),function t(n){return 96===n?(e.consume(n),l++,t):(e.exit("codeTextSequence"),a(n))}(t)};function a(s){return null===s?n(s):32===s?(e.enter("space"),e.consume(s),e.exit("space"),a):96===s?(i=e.enter("codeTextSequence"),r=0,function n(a){return 96===a?(e.consume(a),r++,n):r===l?(e.exit("codeTextSequence"),e.exit("codeText"),t(a)):(i.type="codeTextData",o(a))}(s)):eH(s)?(e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),a):(e.enter("codeTextData"),o(s))}function o(t){return null===t||32===t||96===t||eH(t)?(e.exit("codeTextData"),a(t)):(e.consume(t),o)}}}}],4127);var tP=e.i(4127);let tR=/[\0\t\n\r]/g;function tF(e,t){let n=Number.parseInt(e,t);return n<9||11===n||n>13&&n<32||n>126&&n<160||n>55295&&n<57344||n>64975&&n<65008||(65535&n)==65535||(65535&n)==65534||n>1114111?"�":String.fromCodePoint(n)}let tO=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function t_(e,t,n){if(t)return t;if(35===n.charCodeAt(0)){let e=n.charCodeAt(1),t=120===e||88===e;return tF(n.slice(t?2:1),t?16:10)}return to(n)||e}let tB={}.hasOwnProperty;function tH(e){return{line:e.line,column:e.column,offset:e.offset}}function tU(e,t){if(e)throw Error("Cannot close `"+e.type+"` ("+eo({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+eo({start:t.start,end:t.end})+") is open");throw Error("Cannot close document, a token (`"+t.type+"`, "+eo({start:t.start,end:t.end})+") is still open")}function t$(e){let t=this;t.parser=function(n){var r,i;let l,a,o,s;return"object"==typeof(r={...t.data("settings"),...e,extensions:t.data("micromarkExtensions")||[],mdastExtensions:t.data("fromMarkdownExtensions")||[]})&&(i=r,r=void 0),(function(e){let t={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:r(x),autolinkProtocol:u,autolinkEmail:u,atxHeading:r(h),blockQuote:r(function(){return{type:"blockquote",children:[]}}),characterEscape:u,characterReference:u,codeFenced:r(p),codeFencedFenceInfo:i,codeFencedFenceMeta:i,codeIndented:r(p,i),codeText:r(function(){return{type:"inlineCode",value:""}},i),codeTextData:u,data:u,codeFlowValue:u,definition:r(function(){return{type:"definition",identifier:"",label:null,title:null,url:""}}),definitionDestinationString:i,definitionLabelString:i,definitionTitleString:i,emphasis:r(function(){return{type:"emphasis",children:[]}}),hardBreakEscape:r(m),hardBreakTrailing:r(m),htmlFlow:r(g,i),htmlFlowData:u,htmlText:r(g,i),htmlTextData:u,image:r(function(){return{type:"image",title:null,url:"",alt:null}}),label:i,link:r(x),listItem:r(function(e){return{type:"listItem",spread:e._spread,checked:null,children:[]}}),listItemValue:function(e){this.data.expectingFirstListItemValue&&(this.stack[this.stack.length-2].start=Number.parseInt(this.sliceSerialize(e),10),this.data.expectingFirstListItemValue=void 0)},listOrdered:r(y,function(){this.data.expectingFirstListItemValue=!0}),listUnordered:r(y),paragraph:r(function(){return{type:"paragraph",children:[]}}),reference:function(){this.data.referenceType="collapsed"},referenceString:i,resourceDestinationString:i,resourceTitleString:i,setextHeading:r(h),strong:r(function(){return{type:"strong",children:[]}}),thematicBreak:r(function(){return{type:"thematicBreak"}})},exit:{atxHeading:a(),atxHeadingSequence:function(e){let t=this.stack[this.stack.length-1];t.depth||(t.depth=this.sliceSerialize(e).length)},autolink:a(),autolinkEmail:function(e){c.call(this,e),this.stack[this.stack.length-1].url="mailto:"+this.sliceSerialize(e)},autolinkProtocol:function(e){c.call(this,e),this.stack[this.stack.length-1].url=this.sliceSerialize(e)},blockQuote:a(),characterEscapeValue:c,characterReferenceMarkerHexadecimal:f,characterReferenceMarkerNumeric:f,characterReferenceValue:function(e){let t,n=this.sliceSerialize(e),r=this.data.characterReferenceType;r?(t=tF(n,"characterReferenceMarkerNumeric"===r?10:16),this.data.characterReferenceType=void 0):t=to(n);let i=this.stack[this.stack.length-1];i.value+=t},characterReference:function(e){this.stack.pop().position.end=tH(e.end)},codeFenced:a(function(){let e=this.resume();this.stack[this.stack.length-1].value=e.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}),codeFencedFence:function(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)},codeFencedFenceInfo:function(){let e=this.resume();this.stack[this.stack.length-1].lang=e},codeFencedFenceMeta:function(){let e=this.resume();this.stack[this.stack.length-1].meta=e},codeFlowValue:c,codeIndented:a(function(){let e=this.resume();this.stack[this.stack.length-1].value=e.replace(/(\r?\n|\r)$/g,"")}),codeText:a(function(){let e=this.resume();this.stack[this.stack.length-1].value=e}),codeTextData:c,data:c,definition:a(),definitionDestinationString:function(){let e=this.resume();this.stack[this.stack.length-1].url=e},definitionLabelString:function(e){let t=this.resume(),n=this.stack[this.stack.length-1];n.label=t,n.identifier=tx(this.sliceSerialize(e)).toLowerCase()},definitionTitleString:function(){let e=this.resume();this.stack[this.stack.length-1].title=e},emphasis:a(),hardBreakEscape:a(d),hardBreakTrailing:a(d),htmlFlow:a(function(){let e=this.resume();this.stack[this.stack.length-1].value=e}),htmlFlowData:c,htmlText:a(function(){let e=this.resume();this.stack[this.stack.length-1].value=e}),htmlTextData:c,image:a(function(){let e=this.stack[this.stack.length-1];if(this.data.inReference){let t=this.data.referenceType||"shortcut";e.type+="Reference",e.referenceType=t,delete e.url,delete e.title}else delete e.identifier,delete e.label;this.data.referenceType=void 0}),label:function(){let e=this.stack[this.stack.length-1],t=this.resume(),n=this.stack[this.stack.length-1];this.data.inReference=!0,"link"===n.type?n.children=e.children:n.alt=t},labelText:function(e){let t=this.sliceSerialize(e),n=this.stack[this.stack.length-2];n.label=t.replace(tO,t_),n.identifier=tx(t).toLowerCase()},lineEnding:function(e){let n=this.stack[this.stack.length-1];if(this.data.atHardBreak){n.children[n.children.length-1].position.end=tH(e.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&t.canContainEols.includes(n.type)&&(u.call(this,e),c.call(this,e))},link:a(function(){let e=this.stack[this.stack.length-1];if(this.data.inReference){let t=this.data.referenceType||"shortcut";e.type+="Reference",e.referenceType=t,delete e.url,delete e.title}else delete e.identifier,delete e.label;this.data.referenceType=void 0}),listItem:a(),listOrdered:a(),listUnordered:a(),paragraph:a(),referenceString:function(e){let t=this.resume(),n=this.stack[this.stack.length-1];n.label=t,n.identifier=tx(this.sliceSerialize(e)).toLowerCase(),this.data.referenceType="full"},resourceDestinationString:function(){let e=this.resume();this.stack[this.stack.length-1].url=e},resourceTitleString:function(){let e=this.resume();this.stack[this.stack.length-1].title=e},resource:function(){this.data.inReference=void 0},setextHeading:a(function(){this.data.setextHeadingSlurpLineEnding=void 0}),setextHeadingLineSequence:function(e){this.stack[this.stack.length-1].depth=61===this.sliceSerialize(e).codePointAt(0)?1:2},setextHeadingText:function(){this.data.setextHeadingSlurpLineEnding=!0},strong:a(),thematicBreak:a()}};!function e(t,n){let r=-1;for(;++r<n.length;){let i=n[r];Array.isArray(i)?e(t,i):function(e,t){let n;for(n in t)if(tB.call(t,n))switch(n){case"canContainEols":{let r=t[n];r&&e[n].push(...r);break}case"transforms":{let r=t[n];r&&e[n].push(...r);break}case"enter":case"exit":{let r=t[n];r&&Object.assign(e[n],r)}}}(t,i)}}(t,(e||{}).mdastExtensions||[]);let n={};return function(e){let r={type:"root",children:[]},a={stack:[r],tokenStack:[],config:t,enter:l,exit:o,buffer:i,resume:s,data:n},u=[],c=-1;for(;++c<e.length;)("listOrdered"===e[c][1].type||"listUnordered"===e[c][1].type)&&("enter"===e[c][0]?u.push(c):c=function(e,t,n){let r,i,l,a,o=t-1,s=-1,u=!1;for(;++o<=n;){let t=e[o];switch(t[1].type){case"listUnordered":case"listOrdered":case"blockQuote":"enter"===t[0]?s++:s--,a=void 0;break;case"lineEndingBlank":"enter"===t[0]&&(!r||a||s||l||(l=o),a=void 0);break;case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:a=void 0}if(!s&&"enter"===t[0]&&"listItemPrefix"===t[1].type||-1===s&&"exit"===t[0]&&("listUnordered"===t[1].type||"listOrdered"===t[1].type)){if(r){let a=o;for(i=void 0;a--;){let t=e[a];if("lineEnding"===t[1].type||"lineEndingBlank"===t[1].type){if("exit"===t[0])continue;i&&(e[i][1].type="lineEndingBlank",u=!0),t[1].type="lineEnding",i=a}else if("linePrefix"===t[1].type||"blockQuotePrefix"===t[1].type||"blockQuotePrefixWhitespace"===t[1].type||"blockQuoteMarker"===t[1].type||"listItemIndent"===t[1].type);else break}l&&(!i||l<i)&&(r._spread=!0),r.end=Object.assign({},i?e[i][1].start:t[1].end),e.splice(i||o,0,["exit",r,t[2]]),o++,n++}if("listItemPrefix"===t[1].type){let i={type:"listItem",_spread:!1,start:Object.assign({},t[1].start),end:void 0};r=i,e.splice(o,0,["enter",i,t[2]]),o++,n++,l=void 0,a=!0}}}return e[t][1]._spread=u,n}(e,u.pop(),c));for(c=-1;++c<e.length;){let n=t[e[c][0]];tB.call(n,e[c][1].type)&&n[e[c][1].type].call(Object.assign({sliceSerialize:e[c][2].sliceSerialize},a),e[c][1])}if(a.tokenStack.length>0){let e=a.tokenStack[a.tokenStack.length-1];(e[1]||tU).call(a,void 0,e[0])}for(r.position={start:tH(e.length>0?e[0][1].start:{line:1,column:1,offset:0}),end:tH(e.length>0?e[e.length-2][1].end:{line:1,column:1,offset:0})},c=-1;++c<t.transforms.length;)r=t.transforms[c](r)||r;return r};function r(e,t){return function(n){l.call(this,e(n),n),t&&t.call(this,n)}}function i(){this.stack.push({type:"fragment",children:[]})}function l(e,t,n){this.stack[this.stack.length-1].children.push(e),this.stack.push(e),this.tokenStack.push([t,n||void 0]),e.position={start:tH(t.start),end:void 0}}function a(e){return function(t){e&&e.call(this,t),o.call(this,t)}}function o(e,t){let n=this.stack.pop(),r=this.tokenStack.pop();if(r)r[0].type!==e.type&&(t?t.call(this,e,r[0]):(r[1]||tU).call(this,e,r[0]));else throw Error("Cannot close `"+e.type+"` ("+eo({start:e.start,end:e.end})+"): it’s not open");n.position.end=tH(e.end)}function s(){return eA(this.stack.pop())}function u(e){let t=this.stack[this.stack.length-1].children,n=t[t.length-1];n&&"text"===n.type||((n={type:"text",value:""}).position={start:tH(e.start),end:void 0},t.push(n)),this.stack.push(n)}function c(e){let t=this.stack.pop();t.value+=this.sliceSerialize(e),t.position.end=tH(e.end)}function d(){this.data.atHardBreak=!0}function f(e){this.data.characterReferenceType=e.type}function p(){return{type:"code",lang:null,meta:null,value:""}}function h(){return{type:"heading",depth:0,children:[]}}function m(){return{type:"break"}}function g(){return{type:"html",value:""}}function x(){return{type:"link",title:null,url:"",children:[]}}function y(e){return{type:"list",ordered:"listOrdered"===e.type,start:null,spread:e._spread,children:[]}}})(i)(function(e){for(;!e0(e););return e}((function(e){let t={constructs:eM([tP,...(e||{}).extensions||[]]),content:n(eJ),defined:[],document:n(eK),flow:n(e4),lazy:{},string:n(e6),text:n(e5)};return t;function n(e){return function(n){return function(e,t,n){let r={_bufferIndex:-1,_index:0,line:n&&n.line||1,column:n&&n.column||1,offset:n&&n.offset||0},i={},l=[],a=[],o=[],s={attempt:h(function(e,t){m(e,t.from)}),check:h(p),consume:function(e){eH(e)?(r.line++,r.column=1,r.offset+=-3===e?2:1,g()):-1!==e&&(r.column++,r.offset++),r._bufferIndex<0?r._index++:(r._bufferIndex++,r._bufferIndex===a[r._index].length&&(r._bufferIndex=-1,r._index++)),u.previous=e},enter:function(e,t){let n=t||{};return n.type=e,n.start=f(),u.events.push(["enter",n,u]),o.push(n),n},exit:function(e){let t=o.pop();return t.end=f(),u.events.push(["exit",t,u]),t},interrupt:h(p,{interrupt:!0})},u={code:null,containerState:{},defineSkip:function(e){i[e.line]=e.column,g()},events:[],now:f,parser:e,previous:null,sliceSerialize:function(e,t){return function(e,t){let n,r=-1,i=[];for(;++r<e.length;){let l,a=e[r];if("string"==typeof a)l=a;else switch(a){case -5:l="\r";break;case -4:l="\n";break;case -3:l="\r\n";break;case -2:l=t?" ":" ";break;case -1:if(!t&&n)continue;l=" ";break;default:l=String.fromCharCode(a)}n=-2===a,i.push(l)}return i.join("")}(d(e),t)},sliceStream:d,write:function(e){return(a=eD(a,e),function(){let e;for(;r._index<a.length;){let n=a[r._index];if("string"==typeof n)for(e=r._index,r._bufferIndex<0&&(r._bufferIndex=0);r._index===e&&r._bufferIndex<n.length;){var t;t=n.charCodeAt(r._bufferIndex),c=c(t)}else c=c(n)}}(),null!==a[a.length-1])?[]:(m(t,0),u.events=tt(l,u.events,u),u.events)}},c=t.tokenize.call(u,s);return t.resolveAll&&l.push(t),u;function d(e){return function(e,t){let n,r=t.start._index,i=t.start._bufferIndex,l=t.end._index,a=t.end._bufferIndex;if(r===l)n=[e[r].slice(i,a)];else{if(n=e.slice(r,l),i>-1){let e=n[0];"string"==typeof e?n[0]=e.slice(i):n.shift()}a>0&&n.push(e[l].slice(0,a))}return n}(a,e)}function f(){let{_bufferIndex:e,_index:t,line:n,column:i,offset:l}=r;return{_bufferIndex:e,_index:t,line:n,column:i,offset:l}}function p(e,t){t.restore()}function h(e,t){return function(n,i,l){var a;let c,d,p,h;return Array.isArray(n)?m(n):"tokenize"in n?m([n]):(a=n,function(e){let t=null!==e&&a[e],n=null!==e&&a.null;return m([...Array.isArray(t)?t:t?[t]:[],...Array.isArray(n)?n:n?[n]:[]])(e)});function m(e){return(c=e,d=0,0===e.length)?l:x(e[d])}function x(e){return function(n){let i,l,a,c,d;return(i=f(),l=u.previous,a=u.currentConstruct,c=u.events.length,d=Array.from(o),h={from:c,restore:function(){r=i,u.previous=l,u.currentConstruct=a,u.events.length=c,o=d,g()}},p=e,e.partial||(u.currentConstruct=e),e.name&&u.parser.constructs.disable.null.includes(e.name))?v(n):e.tokenize.call(t?Object.assign(Object.create(u),t):u,s,y,v)(n)}}function y(t){return e(p,h),i}function v(e){return(h.restore(),++d<c.length)?x(c[d]):l}}}function m(e,t){e.resolveAll&&!l.includes(e)&&l.push(e),e.resolve&&eL(u.events,t,u.events.length-t,e.resolve(u.events.slice(t),u)),e.resolveTo&&(u.events=e.resolveTo(u.events,u))}function g(){r.line in i&&r.column<2&&(r.column=i[r.line],r.offset+=i[r.line]-1)}}(t,e,n)}}})(i).document().write((a=1,o="",s=!0,function(e,t,n){let r,i,u,c,d,f=[];for(e=o+("string"==typeof e?e.toString():new TextDecoder(t||void 0).decode(e)),u=0,o="",s&&(65279===e.charCodeAt(0)&&u++,s=void 0);u<e.length;){if(tR.lastIndex=u,c=(r=tR.exec(e))&&void 0!==r.index?r.index:e.length,d=e.charCodeAt(c),!r){o=e.slice(u);break}if(10===d&&u===c&&l)f.push(-3),l=void 0;else switch(l&&(f.push(-5),l=void 0),u<c&&(f.push(e.slice(u,c)),a+=c-u),d){case 0:f.push(65533),a++;break;case 9:for(i=4*Math.ceil(a/4),f.push(-2);a++<i;)f.push(-1);break;case 10:f.push(-4),a=1;break;default:l=!0,a=1}u=c+1}return n&&(l&&f.push(-5),o&&f.push(o),f.push(null)),f})(n,r,!0))))}}let tq="object"==typeof self?self:globalThis,tV=e=>{var t;let n,r;return(t=new Map,n=(e,n)=>(t.set(n,e),e),r=i=>{if(t.has(i))return t.get(i);let[l,a]=e[i];switch(l){case 0:case -1:return n(a,i);case 1:{let e=n([],i);for(let t of a)e.push(r(t));return e}case 2:{let e=n({},i);for(let[t,n]of a)e[r(t)]=r(n);return e}case 3:return n(new Date(a),i);case 4:{let{source:e,flags:t}=a;return n(new RegExp(e,t),i)}case 5:{let e=n(new Map,i);for(let[t,n]of a)e.set(r(t),r(n));return e}case 6:{let e=n(new Set,i);for(let t of a)e.add(r(t));return e}case 7:{let{name:e,message:t}=a;return n(new tq[e](t),i)}case 8:return n(BigInt(a),i);case"BigInt":return n(Object(BigInt(a)),i);case"ArrayBuffer":return n(new Uint8Array(a).buffer,a);case"DataView":{let{buffer:e}=new Uint8Array(a);return n(new DataView(e),a)}}return n(new tq[l](a),i)})(0)},{toString:tW}={},{keys:tQ}=Object,tJ=e=>{let t=typeof e;if("object"!==t||!e)return[0,t];let n=tW.call(e).slice(8,-1);switch(n){case"Array":return[1,""];case"Object":return[2,""];case"Date":return[3,""];case"RegExp":return[4,""];case"Map":return[5,""];case"Set":return[6,""];case"DataView":return[1,n]}return n.includes("Array")?[1,n]:n.includes("Error")?[7,n]:[2,n]},tK=([e,t])=>0===e&&("function"===t||"symbol"===t),tX=(e,{json:t,lossy:n}={})=>{var r,i,l;let a,o,s=[];return(r=!(t||n),i=!!t,l=new Map,a=(e,t)=>{let n=s.push(e)-1;return l.set(t,n),n},o=e=>{if(l.has(e))return l.get(e);let[t,n]=tJ(e);switch(t){case 0:{let i=e;switch(n){case"bigint":t=8,i=e.toString();break;case"function":case"symbol":if(r)throw TypeError("unable to serialize "+n);i=null;break;case"undefined":return a([-1],e)}return a([t,i],e)}case 1:{if(n){let t=e;return"DataView"===n?t=new Uint8Array(e.buffer):"ArrayBuffer"===n&&(t=new Uint8Array(e)),a([n,[...t]],e)}let r=[],i=a([t,r],e);for(let t of e)r.push(o(t));return i}case 2:{if(n)switch(n){case"BigInt":return a([n,e.toString()],e);case"Boolean":case"Number":case"String":return a([n,e.valueOf()],e)}if(i&&"toJSON"in e)return o(e.toJSON());let l=[],s=a([t,l],e);for(let t of tQ(e))(r||!tK(tJ(e[t])))&&l.push([o(t),o(e[t])]);return s}case 3:return a([t,e.toISOString()],e);case 4:{let{source:n,flags:r}=e;return a([t,{source:n,flags:r}],e)}case 5:{let n=[],i=a([t,n],e);for(let[t,i]of e)(r||!(tK(tJ(t))||tK(tJ(i))))&&n.push([o(t),o(i)]);return i}case 6:{let n=[],i=a([t,n],e);for(let t of e)(r||!tK(tJ(t)))&&n.push(o(t));return i}}let{message:s}=e;return a([t,{name:n,message:s}],e)})(e),s},tZ="function"==typeof structuredClone?(e,t)=>t&&("json"in t||"lossy"in t)?tV(tX(e,t)):structuredClone(e):(e,t)=>tV(tX(e,t));function tG(e){let t=[],n=-1,r=0,i=0;for(;++n<e.length;){let l=e.charCodeAt(n),a="";if(37===l&&eP(e.charCodeAt(n+1))&&eP(e.charCodeAt(n+2)))i=2;else if(l<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(l))||(a=String.fromCharCode(l));else if(l>55295&&l<57344){let t=e.charCodeAt(n+1);l<56320&&t>56319&&t<57344?(a=String.fromCharCode(l,t),i=1):a="�"}else a=String.fromCharCode(l);a&&(t.push(e.slice(r,n),encodeURIComponent(a)),r=n+i+1,a=""),i&&(n+=i,i=0)}return t.join("")+e.slice(r)}function tY(e,t){let n=[{type:"text",value:"↩"}];return t>1&&n.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(t)}]}),n}function t0(e,t){return"Back to reference "+(e+1)+(t>1?"-"+t:"")}let t1=function(e){var t,n;if(null==e)return t4;if("function"==typeof e)return t2(e);if("object"==typeof e){return Array.isArray(e)?function(e){let t=[],n=-1;for(;++n<e.length;)t[n]=t1(e[n]);return t2(function(...e){let n=-1;for(;++n<t.length;)if(t[n].apply(this,e))return!0;return!1})}(e):(t=e,t2(function(e){let n;for(n in t)if(e[n]!==t[n])return!1;return!0}))}if("string"==typeof e){return n=e,t2(function(e){return e&&e.type===n})}throw Error("Expected function, string, or object as test")};function t2(e){return function(t,n,r){return!!(function(e){return null!==e&&"object"==typeof e&&"type"in e}(t)&&e.call(this,t,"number"==typeof n?n:void 0,r||void 0))}}function t4(){return!0}let t3=[];function t6(e,t,n,r){let i;"function"==typeof t&&"function"!=typeof n?(r=n,n=t):i=t;let l=t1(i),a=r?-1:1;(function e(i,o,s){let u=i&&"object"==typeof i?i:{};if("string"==typeof u.type){let e="string"==typeof u.tagName?u.tagName:"string"==typeof u.name?u.name:void 0;Object.defineProperty(c,"name",{value:"node ("+i.type+(e?"<"+e+">":"")+")"})}return c;function c(){var u;let c,d,f,p=t3;if((!t||l(i,o,s[s.length-1]||void 0))&&!1===(p=Array.isArray(u=n(i,s))?u:"number"==typeof u?[!0,u]:null==u?t3:[u])[0])return p;if("children"in i&&i.children&&i.children&&"skip"!==p[0])for(d=(r?i.children.length:-1)+a,f=s.concat(i);d>-1&&d<i.children.length;){if(!1===(c=e(i.children[d],d,f)())[0])return c;d="number"==typeof c[1]?c[1]:d+a}return p}})(e,void 0,[])()}function t5(e,t,n,r){let i,l,a;"function"==typeof t&&"function"!=typeof n?(l=void 0,a=t,i=n):(l=t,a=n,i=r),t6(e,l,function(e,t){let n=t[t.length-1],r=n?n.children.indexOf(e):void 0;return a(e,r,n)},i)}function t9(e,t){let n=t.referenceType,r="]";if("collapsed"===n?r+="[]":"full"===n&&(r+="["+(t.label||t.identifier)+"]"),"imageReference"===t.type)return[{type:"text",value:"!["+t.alt+r}];let i=e.all(t),l=i[0];l&&"text"===l.type?l.value="["+l.value:i.unshift({type:"text",value:"["});let a=i[i.length-1];return a&&"text"===a.type?a.value+=r:i.push({type:"text",value:r}),i}function t8(e){let t=e.spread;return null==t?e.children.length>1:t}function t7(e,t,n){let r=0,i=e.length;if(t){let t=e.codePointAt(r);for(;9===t||32===t;)r++,t=e.codePointAt(r)}if(n){let t=e.codePointAt(i-1);for(;9===t||32===t;)i--,t=e.codePointAt(i-1)}return i>r?e.slice(r,i):""}let ne={blockquote:function(e,t){let n={type:"element",tagName:"blockquote",properties:{},children:e.wrap(e.all(t),!0)};return e.patch(t,n),e.applyData(t,n)},break:function(e,t){let n={type:"element",tagName:"br",properties:{},children:[]};return e.patch(t,n),[e.applyData(t,n),{type:"text",value:"\n"}]},code:function(e,t){let n=t.value?t.value+"\n":"",r={},i=t.lang?t.lang.split(/\s+/):[];i.length>0&&(r.className=["language-"+i[0]]);let l={type:"element",tagName:"code",properties:r,children:[{type:"text",value:n}]};return t.meta&&(l.data={meta:t.meta}),e.patch(t,l),l={type:"element",tagName:"pre",properties:{},children:[l=e.applyData(t,l)]},e.patch(t,l),l},delete:function(e,t){let n={type:"element",tagName:"del",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},emphasis:function(e,t){let n={type:"element",tagName:"em",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},footnoteReference:function(e,t){let n,r="string"==typeof e.options.clobberPrefix?e.options.clobberPrefix:"user-content-",i=String(t.identifier).toUpperCase(),l=tG(i.toLowerCase()),a=e.footnoteOrder.indexOf(i),o=e.footnoteCounts.get(i);void 0===o?(o=0,e.footnoteOrder.push(i),n=e.footnoteOrder.length):n=a+1,o+=1,e.footnoteCounts.set(i,o);let s={type:"element",tagName:"a",properties:{href:"#"+r+"fn-"+l,id:r+"fnref-"+l+(o>1?"-"+o:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(n)}]};e.patch(t,s);let u={type:"element",tagName:"sup",properties:{},children:[s]};return e.patch(t,u),e.applyData(t,u)},heading:function(e,t){let n={type:"element",tagName:"h"+t.depth,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},html:function(e,t){if(e.options.allowDangerousHtml){let n={type:"raw",value:t.value};return e.patch(t,n),e.applyData(t,n)}},imageReference:function(e,t){let n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return t9(e,t);let i={src:tG(r.url||""),alt:t.alt};null!==r.title&&void 0!==r.title&&(i.title=r.title);let l={type:"element",tagName:"img",properties:i,children:[]};return e.patch(t,l),e.applyData(t,l)},image:function(e,t){let n={src:tG(t.url)};null!==t.alt&&void 0!==t.alt&&(n.alt=t.alt),null!==t.title&&void 0!==t.title&&(n.title=t.title);let r={type:"element",tagName:"img",properties:n,children:[]};return e.patch(t,r),e.applyData(t,r)},inlineCode:function(e,t){let n={type:"text",value:t.value.replace(/\r?\n|\r/g," ")};e.patch(t,n);let r={type:"element",tagName:"code",properties:{},children:[n]};return e.patch(t,r),e.applyData(t,r)},linkReference:function(e,t){let n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return t9(e,t);let i={href:tG(r.url||"")};null!==r.title&&void 0!==r.title&&(i.title=r.title);let l={type:"element",tagName:"a",properties:i,children:e.all(t)};return e.patch(t,l),e.applyData(t,l)},link:function(e,t){let n={href:tG(t.url)};null!==t.title&&void 0!==t.title&&(n.title=t.title);let r={type:"element",tagName:"a",properties:n,children:e.all(t)};return e.patch(t,r),e.applyData(t,r)},listItem:function(e,t,n){let r=e.all(t),i=n?function(e){let t=!1;if("list"===e.type){t=e.spread||!1;let n=e.children,r=-1;for(;!t&&++r<n.length;)t=t8(n[r])}return t}(n):t8(t),l={},a=[];if("boolean"==typeof t.checked){let e,n=r[0];n&&"element"===n.type&&"p"===n.tagName?e=n:(e={type:"element",tagName:"p",properties:{},children:[]},r.unshift(e)),e.children.length>0&&e.children.unshift({type:"text",value:" "}),e.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:t.checked,disabled:!0},children:[]}),l.className=["task-list-item"]}let o=-1;for(;++o<r.length;){let e=r[o];(i||0!==o||"element"!==e.type||"p"!==e.tagName)&&a.push({type:"text",value:"\n"}),"element"!==e.type||"p"!==e.tagName||i?a.push(e):a.push(...e.children)}let s=r[r.length-1];s&&(i||"element"!==s.type||"p"!==s.tagName)&&a.push({type:"text",value:"\n"});let u={type:"element",tagName:"li",properties:l,children:a};return e.patch(t,u),e.applyData(t,u)},list:function(e,t){let n={},r=e.all(t),i=-1;for("number"==typeof t.start&&1!==t.start&&(n.start=t.start);++i<r.length;){let e=r[i];if("element"===e.type&&"li"===e.tagName&&e.properties&&Array.isArray(e.properties.className)&&e.properties.className.includes("task-list-item")){n.className=["contains-task-list"];break}}let l={type:"element",tagName:t.ordered?"ol":"ul",properties:n,children:e.wrap(r,!0)};return e.patch(t,l),e.applyData(t,l)},paragraph:function(e,t){let n={type:"element",tagName:"p",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},root:function(e,t){let n={type:"root",children:e.wrap(e.all(t))};return e.patch(t,n),e.applyData(t,n)},strong:function(e,t){let n={type:"element",tagName:"strong",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},table:function(e,t){let n=e.all(t),r=n.shift(),i=[];if(r){let n={type:"element",tagName:"thead",properties:{},children:e.wrap([r],!0)};e.patch(t.children[0],n),i.push(n)}if(n.length>0){let r={type:"element",tagName:"tbody",properties:{},children:e.wrap(n,!0)},l=el(t.children[1]),a=ei(t.children[t.children.length-1]);l&&a&&(r.position={start:l,end:a}),i.push(r)}let l={type:"element",tagName:"table",properties:{},children:e.wrap(i,!0)};return e.patch(t,l),e.applyData(t,l)},tableCell:function(e,t){let n={type:"element",tagName:"td",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},tableRow:function(e,t,n){let r=n?n.children:void 0,i=0===(r?r.indexOf(t):1)?"th":"td",l=n&&"table"===n.type?n.align:void 0,a=l?l.length:t.children.length,o=-1,s=[];for(;++o<a;){let n=t.children[o],r={},a=l?l[o]:void 0;a&&(r.align=a);let u={type:"element",tagName:i,properties:r,children:[]};n&&(u.children=e.all(n),e.patch(n,u),u=e.applyData(n,u)),s.push(u)}let u={type:"element",tagName:"tr",properties:{},children:e.wrap(s,!0)};return e.patch(t,u),e.applyData(t,u)},text:function(e,t){let n={type:"text",value:function(e){let t=String(e),n=/\r?\n|\r/g,r=n.exec(t),i=0,l=[];for(;r;)l.push(t7(t.slice(i,r.index),i>0,!0),r[0]),i=r.index+r[0].length,r=n.exec(t);return l.push(t7(t.slice(i),i>0,!1)),l.join("")}(String(t.value))};return e.patch(t,n),e.applyData(t,n)},thematicBreak:function(e,t){let n={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(t,n),e.applyData(t,n)},toml:nt,yaml:nt,definition:nt,footnoteDefinition:nt};function nt(){}let nn={}.hasOwnProperty,nr={};function ni(e,t){e.position&&(t.position=function(e){let t=el(e),n=ei(e);if(t&&n)return{start:t,end:n}}(e))}function nl(e,t){let n=t;if(e&&e.data){let t=e.data.hName,r=e.data.hChildren,i=e.data.hProperties;"string"==typeof t&&("element"===n.type?n.tagName=t:n={type:"element",tagName:t,properties:{},children:"children"in n?n.children:[n]}),"element"===n.type&&i&&Object.assign(n.properties,tZ(i)),"children"in n&&n.children&&null!=r&&(n.children=r)}return n}function na(e,t){let n=[],r=-1;for(t&&n.push({type:"text",value:"\n"});++r<e.length;)r&&n.push({type:"text",value:"\n"}),n.push(e[r]);return t&&e.length>0&&n.push({type:"text",value:"\n"}),n}function no(e){let t=0,n=e.charCodeAt(t);for(;9===n||32===n;)t++,n=e.charCodeAt(t);return e.slice(t)}function ns(e,t){let n,r,i,l,a=(n=t||nr,r=new Map,i=new Map,l={all:function(e){let t=[];if("children"in e){let n=e.children,r=-1;for(;++r<n.length;){let i=l.one(n[r],e);if(i){if(r&&"break"===n[r-1].type&&(Array.isArray(i)||"text"!==i.type||(i.value=no(i.value)),!Array.isArray(i)&&"element"===i.type)){let e=i.children[0];e&&"text"===e.type&&(e.value=no(e.value))}Array.isArray(i)?t.push(...i):t.push(i)}}}return t},applyData:nl,definitionById:r,footnoteById:i,footnoteCounts:new Map,footnoteOrder:[],handlers:{...ne,...n.handlers},one:function(e,t){let n=e.type,r=l.handlers[n];if(nn.call(l.handlers,n)&&r)return r(l,e,t);if(l.options.passThrough&&l.options.passThrough.includes(n)){if("children"in e){let{children:t,...n}=e,r=tZ(n);return r.children=l.all(e),r}return tZ(e)}return(l.options.unknownHandler||function(e,t){let n=t.data||{},r="value"in t&&!(nn.call(n,"hProperties")||nn.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)})(l,e,t)},options:n,patch:ni,wrap:na},t5(e,function(e){if("definition"===e.type||"footnoteDefinition"===e.type){let t="definition"===e.type?r:i,n=String(e.identifier).toUpperCase();t.has(n)||t.set(n,e)}}),l),o=a.one(e,void 0),s=function(e){let t="string"==typeof e.options.clobberPrefix?e.options.clobberPrefix:"user-content-",n=e.options.footnoteBackContent||tY,r=e.options.footnoteBackLabel||t0,i=e.options.footnoteLabel||"Footnotes",l=e.options.footnoteLabelTagName||"h2",a=e.options.footnoteLabelProperties||{className:["sr-only"]},o=[],s=-1;for(;++s<e.footnoteOrder.length;){let i=e.footnoteById.get(e.footnoteOrder[s]);if(!i)continue;let l=e.all(i),a=String(i.identifier).toUpperCase(),u=tG(a.toLowerCase()),c=0,d=[],f=e.footnoteCounts.get(a);for(;void 0!==f&&++c<=f;){d.length>0&&d.push({type:"text",value:" "});let e="string"==typeof n?n:n(s,c);"string"==typeof e&&(e={type:"text",value:e}),d.push({type:"element",tagName:"a",properties:{href:"#"+t+"fnref-"+u+(c>1?"-"+c:""),dataFootnoteBackref:"",ariaLabel:"string"==typeof r?r:r(s,c),className:["data-footnote-backref"]},children:Array.isArray(e)?e:[e]})}let p=l[l.length-1];if(p&&"element"===p.type&&"p"===p.tagName){let e=p.children[p.children.length-1];e&&"text"===e.type?e.value+=" ":p.children.push({type:"text",value:" "}),p.children.push(...d)}else l.push(...d);let h={type:"element",tagName:"li",properties:{id:t+"fn-"+u},children:e.wrap(l,!0)};e.patch(i,h),o.push(h)}if(0!==o.length)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:l,properties:{...tZ(a),id:"footnote-label"},children:[{type:"text",value:i}]},{type:"text",value:"\n"},{type:"element",tagName:"ol",properties:{},children:e.wrap(o,!0)},{type:"text",value:"\n"}]}}(a),u=Array.isArray(o)?{type:"root",children:o}:o||{type:"root",children:[]};return s&&(g(),u.children.push({type:"text",value:"\n"},s)),u}function nu(e,t){return e&&"run"in e?async function(n,r){let i=ns(n,{file:r,...t});await e.run(i,r)}:function(n,r){return ns(n,{file:r,...e||t})}}function nc(e){if(e)throw e}var nd=e.i(4100);function nf(e){if("object"!=typeof e||null===e)return!1;let t=Object.getPrototypeOf(e);return(null===t||t===Object.prototype||null===Object.getPrototypeOf(t))&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}let np=function(e,t){let n;if(void 0!==t&&"string"!=typeof t)throw TypeError('"ext" argument must be a string');nx(e);let r=0,i=-1,l=e.length;if(void 0===t||0===t.length||t.length>e.length){for(;l--;)if(47===e.codePointAt(l)){if(n){r=l+1;break}}else i<0&&(n=!0,i=l+1);return i<0?"":e.slice(r,i)}if(t===e)return"";let a=-1,o=t.length-1;for(;l--;)if(47===e.codePointAt(l)){if(n){r=l+1;break}}else a<0&&(n=!0,a=l+1),o>-1&&(e.codePointAt(l)===t.codePointAt(o--)?o<0&&(i=l):(o=-1,i=a));return r===i?i=a:i<0&&(i=e.length),e.slice(r,i)},nh=function(e){let t;if(nx(e),0===e.length)return".";let n=-1,r=e.length;for(;--r;)if(47===e.codePointAt(r)){if(t){n=r;break}}else t||(t=!0);return n<0?47===e.codePointAt(0)?"/":".":1===n&&47===e.codePointAt(0)?"//":e.slice(0,n)},nm=function(e){let t;nx(e);let n=e.length,r=-1,i=0,l=-1,a=0;for(;n--;){let o=e.codePointAt(n);if(47===o){if(t){i=n+1;break}continue}r<0&&(t=!0,r=n+1),46===o?l<0?l=n:1!==a&&(a=1):l>-1&&(a=-1)}return l<0||r<0||0===a||1===a&&l===r-1&&l===i+1?"":e.slice(l,r)},ng=function(...e){var t;let n,r,i,l=-1;for(;++l<e.length;)nx(e[l]),e[l]&&(i=void 0===i?e[l]:i+"/"+e[l]);return void 0===i?".":(nx(t=i),n=47===t.codePointAt(0),0!==(r=function(e,t){let n,r,i="",l=0,a=-1,o=0,s=-1;for(;++s<=e.length;){if(s<e.length)n=e.codePointAt(s);else if(47===n)break;else n=47;if(47===n){if(a===s-1||1===o);else if(a!==s-1&&2===o){if(i.length<2||2!==l||46!==i.codePointAt(i.length-1)||46!==i.codePointAt(i.length-2)){if(i.length>2){if((r=i.lastIndexOf("/"))!==i.length-1){r<0?(i="",l=0):l=(i=i.slice(0,r)).length-1-i.lastIndexOf("/"),a=s,o=0;continue}}else if(i.length>0){i="",l=0,a=s,o=0;continue}}t&&(i=i.length>0?i+"/..":"..",l=2)}else i.length>0?i+="/"+e.slice(a+1,s):i=e.slice(a+1,s),l=s-a-1;a=s,o=0}else 46===n&&o>-1?o++:o=-1}return i}(t,!n)).length||n||(r="."),r.length>0&&47===t.codePointAt(t.length-1)&&(r+="/"),n?"/"+r:r)};function nx(e){if("string"!=typeof e)throw TypeError("Path must be a string. Received "+JSON.stringify(e))}function ny(e){return!!(null!==e&&"object"==typeof e&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&void 0===e.auth)}let nv=["history","path","basename","stem","extname","dirname"];class nb{constructor(e){var t;let n,r;n=e?ny(e)?{path:e}:"string"==typeof e||(t=e)&&"object"==typeof t&&"byteLength"in t&&"byteOffset"in t?{value:e}:e:{},this.cwd="cwd"in n?"":"/",this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let i=-1;for(;++i<nv.length;){let e=nv[i];e in n&&void 0!==n[e]&&null!==n[e]&&(this[e]="history"===e?[...n[e]]:n[e])}for(r in n)nv.includes(r)||(this[r]=n[r])}get basename(){return"string"==typeof this.path?np(this.path):void 0}set basename(e){nw(e,"basename"),nk(e,"basename"),this.path=ng(this.dirname||"",e)}get dirname(){return"string"==typeof this.path?nh(this.path):void 0}set dirname(e){nS(this.basename,"dirname"),this.path=ng(e||"",this.basename)}get extname(){return"string"==typeof this.path?nm(this.path):void 0}set extname(e){if(nk(e,"extname"),nS(this.dirname,"extname"),e){if(46!==e.codePointAt(0))throw Error("`extname` must start with `.`");if(e.includes(".",1))throw Error("`extname` cannot contain multiple dots")}this.path=ng(this.dirname,this.stem+(e||""))}get path(){return this.history[this.history.length-1]}set path(e){ny(e)&&(e=function(e){if("string"==typeof e)e=new URL(e);else if(!ny(e)){let t=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("file:"!==e.protocol){let e=TypeError("The URL must be of scheme file");throw e.code="ERR_INVALID_URL_SCHEME",e}return function(e){if(""!==e.hostname){let e=TypeError('File URL host must be "localhost" or empty on darwin');throw e.code="ERR_INVALID_FILE_URL_HOST",e}let t=e.pathname,n=-1;for(;++n<t.length;)if(37===t.codePointAt(n)&&50===t.codePointAt(n+1)){let e=t.codePointAt(n+2);if(70===e||102===e){let e=TypeError("File URL path must not include encoded / characters");throw e.code="ERR_INVALID_FILE_URL_PATH",e}}return decodeURIComponent(t)}(e)}(e)),nw(e,"path"),this.path!==e&&this.history.push(e)}get stem(){return"string"==typeof this.path?np(this.path,this.extname):void 0}set stem(e){nw(e,"stem"),nk(e,"stem"),this.path=ng(this.dirname||"",e+(this.extname||""))}fail(e,t,n){let r=this.message(e,t,n);throw r.fatal=!0,r}info(e,t,n){let r=this.message(e,t,n);return r.fatal=void 0,r}message(e,t,n){let r=new ed(e,t,n);return this.path&&(r.name=this.path+":"+r.name,r.file=this.path),r.fatal=!1,this.messages.push(r),r}toString(e){return void 0===this.value?"":"string"==typeof this.value?this.value:new TextDecoder(e||void 0).decode(this.value)}}function nk(e,t){if(e&&e.includes("/"))throw Error("`"+t+"` cannot be a path: did not expect `/`")}function nw(e,t){if(!e)throw Error("`"+t+"` cannot be empty")}function nS(e,t){if(!e)throw Error("Setting `"+t+"` requires `path` to be set too")}let nC=function(e){let t=this.constructor.prototype,n=t[e],r=function(){return n.apply(r,arguments)};return Object.setPrototypeOf(r,t),r},nE={}.hasOwnProperty,nj=new class e extends nC{constructor(){let e,t;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=(e=[],t={run:function(...t){let n=-1,r=t.pop();if("function"!=typeof r)throw TypeError("Expected function as last argument, not "+r);!function i(l,...a){let o=e[++n],s=-1;if(l)return void r(l);for(;++s<t.length;)(null===a[s]||void 0===a[s])&&(a[s]=t[s]);t=a,o?(function(e,t){let n;return function(...t){let l,a=e.length>t.length;a&&t.push(r);try{l=e.apply(this,t)}catch(e){if(a&&n)throw e;return r(e)}a||(l&&l.then&&"function"==typeof l.then?l.then(i,r):l instanceof Error?r(l):i(l))};function r(e,...i){n||(n=!0,t(e,...i))}function i(e){r(null,e)}})(o,i)(...a):r(null,...a)}(null,...t)},use:function(n){if("function"!=typeof n)throw TypeError("Expected `middelware` to be a function, not "+n);return e.push(n),t}})}copy(){let t=new e,n=-1;for(;++n<this.attachers.length;){let e=this.attachers[n];t.use(...e)}return t.data((0,nd.default)(!0,{},this.namespace)),t}data(e,t){return"string"==typeof e?2==arguments.length?(nN("data",this.frozen),this.namespace[e]=t,this):nE.call(this.namespace,e)&&this.namespace[e]||void 0:e?(nN("data",this.frozen),this.namespace=e,this):this.namespace}freeze(){if(this.frozen)return this;for(;++this.freezeIndex<this.attachers.length;){let[e,...t]=this.attachers[this.freezeIndex];if(!1===t[0])continue;!0===t[0]&&(t[0]=void 0);let n=e.call(this,...t);"function"==typeof n&&this.transformers.use(n)}return this.frozen=!0,this.freezeIndex=1/0,this}parse(e){this.freeze();let t=nz(e),n=this.parser||this.Parser;return nA("parse",n),n(String(t),t)}process(e,t){let n=this;return this.freeze(),nA("process",this.parser||this.Parser),nT("process",this.compiler||this.Compiler),t?r(void 0,t):new Promise(r);function r(r,i){let l=nz(e),a=n.parse(l);function o(e,n){e||!n?i(e):r?r(n):(g(),t(void 0,n))}n.run(a,l,function(e,t,r){var i,l;if(e||!t||!r)return o(e);let a=n.stringify(t,r);"string"==typeof(i=a)||(l=i)&&"object"==typeof l&&"byteLength"in l&&"byteOffset"in l?r.value=a:r.result=a,o(e,r)})}}processSync(e){let t,n=!1;return this.freeze(),nA("processSync",this.parser||this.Parser),nT("processSync",this.compiler||this.Compiler),this.process(e,function(e,r){n=!0,nc(e),t=r}),nD("processSync","process",n),g(),t}run(e,t,n){nL(e),this.freeze();let r=this.transformers;return n||"function"!=typeof t||(n=t,t=void 0),n?i(void 0,n):new Promise(i);function i(i,l){g();let a=nz(t);r.run(e,a,function(t,r,a){let o=r||e;t?l(t):i?i(o):(g(),n(void 0,o,a))})}}runSync(e,t){let n,r=!1;return this.run(e,t,function(e,t){nc(e),n=t,r=!0}),nD("runSync","run",r),g(),n}stringify(e,t){this.freeze();let n=nz(t),r=this.compiler||this.Compiler;return nT("stringify",r),nL(e),r(e,n)}use(e,...t){let n=this.attachers,r=this.namespace;if(nN("use",this.frozen),null==e);else if("function"==typeof e)a(e,t);else if("object"==typeof e)Array.isArray(e)?l(e):i(e);else throw TypeError("Expected usable value, not `"+e+"`");return this;function i(e){if(!("plugins"in e)&&!("settings"in e))throw 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(e.plugins),e.settings&&(r.settings=(0,nd.default)(!0,r.settings,e.settings))}function l(e){let t=-1;if(null==e);else if(Array.isArray(e))for(;++t<e.length;)!function(e){if("function"==typeof e)a(e,[]);else if("object"==typeof e)if(Array.isArray(e)){let[t,...n]=e;a(t,n)}else i(e);else throw TypeError("Expected usable value, not `"+e+"`")}(e[t]);else throw TypeError("Expected a list of plugins, not `"+e+"`")}function a(e,t){let r=-1,i=-1;for(;++r<n.length;)if(n[r][0]===e){i=r;break}if(-1===i)n.push([e,...t]);else if(t.length>0){let[r,...l]=t,a=n[i][1];nf(a)&&nf(r)&&(r=(0,nd.default)(!0,a,r)),n[i]=[e,r,...l]}}}}().freeze();function nA(e,t){if("function"!=typeof t)throw TypeError("Cannot `"+e+"` without `parser`")}function nT(e,t){if("function"!=typeof t)throw TypeError("Cannot `"+e+"` without `compiler`")}function nN(e,t){if(t)throw Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function nL(e){if(!nf(e)||"string"!=typeof e.type)throw TypeError("Expected node, got `"+e+"`")}function nD(e,t,n){if(!n)throw Error("`"+e+"` finished async. Use `"+t+"` instead")}function nz(e){var t;return(t=e)&&"object"==typeof t&&"message"in t&&"messages"in t?e:new nb(e)}let nM=[],nI={allowDangerousHtml:!0},nP=/^(https?|ircs?|mailto|xmpp)$/i,nR=[{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 nF(e){var n;let r,i,l,a,o,s=(r=(n=e).rehypePlugins||nM,i=n.remarkPlugins||nM,l=n.remarkRehypeOptions?{...n.remarkRehypeOptions,...nI}:nI,nj().use(t$).use(i).use(nu,l).use(r)),u=(a=e.children||"",o=new nb,"string"==typeof a?o.value=a:x(),o);return function(e,n){let r=n.allowedElements,i=n.allowElement,l=n.components,a=n.disallowedElements,o=n.skipHtml,s=n.unwrapDisallowed,u=n.urlTransform||nO;for(let e of nR)Object.hasOwn(n,e.from)&&x((e.from,e.to&&e.to,e.id));return r&&a&&x(),t5(e,function(e,t,n){if("raw"===e.type&&n&&"number"==typeof t)return o?n.children.splice(t,1):n.children[t]={type:"text",value:e.value},t;if("element"===e.type){let t;for(t in eE)if(Object.hasOwn(eE,t)&&Object.hasOwn(e.properties,t)){let n=e.properties[t],r=eE[t];(null===r||r.includes(e.tagName))&&(e.properties[t]=u(String(n||""),t,e))}}if("element"===e.type){let l=r?!r.includes(e.tagName):!!a&&a.includes(e.tagName);if(!l&&i&&"number"==typeof t&&(l=!i(e,t,n)),l&&n&&"number"==typeof t)return s&&e.children?n.children.splice(t,1,...e.children):n.children.splice(t,1),t}}),function(e,t){var n,r,i,l;let a;if(!t||void 0===t.Fragment)throw TypeError("Expected `Fragment` in options");let o=t.filePath||void 0;if(t.development){if("function"!=typeof t.jsxDEV)throw TypeError("Expected `jsxDEV` in options when `development: true`");n=o,r=t.jsxDEV,a=function(e,t,i,l){let a=Array.isArray(i.children),o=el(e);return r(t,i,l,a,{columnNumber:o?o.column-1:void 0,fileName:n,lineNumber:o?o.line:void 0},void 0)}}else{if("function"!=typeof t.jsx)throw TypeError("Expected `jsx` in production options");if("function"!=typeof t.jsxs)throw TypeError("Expected `jsxs` in production options");i=t.jsx,l=t.jsxs,a=function(e,t,n,r){let a=Array.isArray(n.children)?l:i;return r?a(t,n,r):a(t,n)}}let s={Fragment:t.Fragment,ancestors:[],components:t.components||{},create:a,elementAttributeNameCase:t.elementAttributeNameCase||"react",evaluater:t.createEvaluater?t.createEvaluater():void 0,filePath:o,ignoreInvalidStyle:t.ignoreInvalidStyle||!1,passKeys:!1!==t.passKeys,passNode:t.passNode||!1,schema:"svg"===t.space?en:et,stylePropertyNameCase:t.stylePropertyNameCase||"dom",tableCellAlignToStyle:!1!==t.tableCellAlignToStyle},u=ey(s,e,void 0);return u&&"string"!=typeof u?u:s.create(e,s.Fragment,{children:u||void 0},void 0)}(e,{Fragment:t.Fragment,components:l,ignoreInvalidStyle:!0,jsx:t.jsx,jsxs:t.jsxs,passKeys:!0,passNode:!0})}(s.runSync(s.parse(u),u),e)}function nO(e){let t=e.indexOf(":"),n=e.indexOf("?"),r=e.indexOf("#"),i=e.indexOf("/");return -1===t||-1!==i&&t>i||-1!==n&&t>n||-1!==r&&t>r||nP.test(e.slice(0,t))?e:""}function n_(e,t){let n=String(e);if("string"!=typeof t)throw TypeError("Expected character");let r=0,i=n.indexOf(t);for(;-1!==i;)r++,i=n.indexOf(t,i+t.length);return r}let nB="phrasing",nH=["autolink","link","image","label"];function nU(e){this.enter({type:"link",title:null,url:"",children:[]},e)}function n$(e){this.config.enter.autolinkProtocol.call(this,e)}function nq(e){this.config.exit.autolinkProtocol.call(this,e)}function nV(e){this.config.exit.data.call(this,e);let t=this.stack[this.stack.length-1];g(t.type),t.url="http://"+this.sliceSerialize(e)}function nW(e){this.config.exit.autolinkEmail.call(this,e)}function nQ(e){this.exit(e)}function nJ(e){!function(e,t,n){let r=t1((n||{}).ignore||[]),i=function(e){let t=[];if(!Array.isArray(e))throw TypeError("Expected find and replace tuple or list of tuples");let n=!e[0]||Array.isArray(e[0])?e:[e],r=-1;for(;++r<n.length;){var i;let e=n[r];t.push(["string"==typeof(i=e[0])?RegExp(function(e){if("string"!=typeof e)throw TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}(i),"g"):i,function(e){return"function"==typeof e?e:function(){return e}}(e[1])])}return t}(t),l=-1;for(;++l<i.length;)t6(e,"text",a);function a(e,t){let n,a=-1;for(;++a<t.length;){let e=t[a],i=n?n.children:void 0;if(r(e,i?i.indexOf(e):void 0,n))return;n=e}if(n)return function(e,t){let n=t[t.length-1],r=i[l][0],a=i[l][1],o=0,s=n.children.indexOf(e),u=!1,c=[];r.lastIndex=0;let d=r.exec(e.value);for(;d;){let n=d.index,i={index:d.index,input:d.input,stack:[...t,e]},l=a(...d,i);if("string"==typeof l&&(l=l.length>0?{type:"text",value:l}:void 0),!1===l?r.lastIndex=n+1:(o!==n&&c.push({type:"text",value:e.value.slice(o,n)}),Array.isArray(l)?c.push(...l):l&&c.push(l),o=n+d[0].length,u=!0),!r.global)break;d=r.exec(e.value)}return u?(o<e.value.length&&c.push({type:"text",value:e.value.slice(o)}),n.children.splice(s,1,...c)):c=[e],s+c.length}(e,t)}}(e,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,nK],[/(?<=^|\s|\p{P}|\p{S})([-.\w+]+)@([-\w]+(?:\.[-\w]+)+)/gu,nX]],{ignore:["link","linkReference"]})}function nK(e,t,n,r,i){let l,a="";if(!nZ(i))return!1;if(/^w/i.test(t)&&(n=t+n,t="",a="http://"),(l=n.split(".")).length<2||l[l.length-1]&&(/_/.test(l[l.length-1])||!/[a-zA-Z\d]/.test(l[l.length-1]))||l[l.length-2]&&(/_/.test(l[l.length-2])||!/[a-zA-Z\d]/.test(l[l.length-2])))return!1;let o=function(e){let t=/[!"&'),.:;<>?\]}]+$/.exec(e);if(!t)return[e,void 0];e=e.slice(0,t.index);let n=t[0],r=n.indexOf(")"),i=n_(e,"("),l=n_(e,")");for(;-1!==r&&i>l;)e+=n.slice(0,r+1),r=(n=n.slice(r+1)).indexOf(")"),l++;return[e,n]}(n+r);if(!o[0])return!1;let s={type:"link",title:null,url:a+t+o[0],children:[{type:"text",value:t+o[0]}]};return o[1]?[s,{type:"text",value:o[1]}]:s}function nX(e,t,n,r){return!(!nZ(r,!0)||/[-\d_]$/.test(n))&&{type:"link",title:null,url:"mailto:"+t+"@"+n,children:[{type:"text",value:t+"@"+n}]}}function nZ(e,t){let n=e.input.charCodeAt(e.index-1);return(0===e.index||eV(n)||eq(n))&&(!t||47!==n)}function nG(){this.buffer()}function nY(e){this.enter({type:"footnoteReference",identifier:"",label:""},e)}function n0(){this.buffer()}function n1(e){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},e)}function n2(e){let t=this.resume(),n=this.stack[this.stack.length-1];g(n.type),n.identifier=tx(this.sliceSerialize(e)).toLowerCase(),n.label=t}function n4(e){this.exit(e)}function n3(e){let t=this.resume(),n=this.stack[this.stack.length-1];g(n.type),n.identifier=tx(this.sliceSerialize(e)).toLowerCase(),n.label=t}function n6(e){this.exit(e)}function n5(e,t,n,r){let i=n.createTracker(r),l=i.move("[^"),a=n.enter("footnoteReference"),o=n.enter("reference");return l+=i.move(n.safe(n.associationId(e),{after:"]",before:l})),o(),a(),l+=i.move("]")}function n9(e,t,n){return 0===t?e:n8(e,t,n)}function n8(e,t,n){return(n?"":" ")+e}n5.peek=function(){return"["};let n7=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];function re(e){this.enter({type:"delete",children:[]},e)}function rt(e){this.exit(e)}function rn(e,t,n,r){let i=n.createTracker(r),l=n.enter("strikethrough"),a=i.move("~~");return a+=n.containerPhrasing(e,{...i.current(),before:a,after:"~"}),a+=i.move("~~"),l(),a}function rr(e){return e.length}function ri(e){let t="string"==typeof e?e.codePointAt(0):0;return 67===t||99===t?99:76===t||108===t?108:114*(82===t||114===t)}rn.peek=function(){return"~"};function rl(e,t,n){let r=e.value||"",i="`",l=-1;for(;RegExp("(^|[^`])"+i+"([^`]|$)").test(r);)i+="`";for(/[^ \r\n]/.test(r)&&(/^[ \r\n]/.test(r)&&/[ \r\n]$/.test(r)||/^`|`$/.test(r))&&(r=" "+r+" ");++l<n.unsafe.length;){let e,t=n.unsafe[l],i=n.compilePattern(t);if(t.atBreak)for(;e=i.exec(r);){let t=e.index;10===r.charCodeAt(t)&&13===r.charCodeAt(t-1)&&t--,r=r.slice(0,t)+" "+r.slice(e.index+1)}}return i+r+i}rl.peek=function(){return"`"};t1(["break","delete","emphasis","footnote","footnoteReference","image","imageReference","inlineCode","inlineMath","link","linkReference","mdxJsxTextElement","mdxTextExpression","strong","text","textDirective"]);let ra=function(e,t,n,r){let i=function(e){let t=e.options.listItemIndent||"one";if("tab"!==t&&"one"!==t&&"mixed"!==t)throw Error("Cannot serialize items with `"+t+"` for `options.listItemIndent`, expected `tab`, `one`, or `mixed`");return t}(n),l=n.bulletCurrent||function(e){let t=e.options.bullet||"*";if("*"!==t&&"+"!==t&&"-"!==t)throw Error("Cannot serialize items with `"+t+"` for `options.bullet`, expected `*`, `+`, or `-`");return t}(n);t&&"list"===t.type&&t.ordered&&(l=("number"==typeof t.start&&t.start>-1?t.start:1)+(!1===n.options.incrementListMarker?0:t.children.indexOf(e))+l);let a=l.length+1;("tab"===i||"mixed"===i&&(t&&"list"===t.type&&t.spread||e.spread))&&(a=4*Math.ceil(a/4));let o=n.createTracker(r);o.move(l+" ".repeat(a-l.length)),o.shift(a);let s=n.enter("listItem"),u=n.indentLines(n.containerFlow(e,o.current()),function(e,t,n){return t?(n?"":" ".repeat(a))+e:(n?l:l+" ".repeat(a-l.length))+e});return s(),u};function ro(e){let t=e._align;g(),this.enter({type:"table",align:t.map(function(e){return"none"===e?null:e}),children:[]},e),this.data.inTable=!0}function rs(e){this.exit(e),this.data.inTable=void 0}function ru(e){this.enter({type:"tableRow",children:[]},e)}function rc(e){this.exit(e)}function rd(e){this.enter({type:"tableCell",children:[]},e)}function rf(e){let t=this.resume();this.data.inTable&&(t=t.replace(/\\([\\|])/g,rp));let n=this.stack[this.stack.length-1];g(n.type),n.value=t,this.exit(e)}function rp(e,t){return"|"===t?t:e}function rh(e){let t=this.stack[this.stack.length-2];g(t.type),t.checked="taskListCheckValueChecked"===e.type}function rm(e){let t=this.stack[this.stack.length-2];if(t&&"listItem"===t.type&&"boolean"==typeof t.checked){let e=this.stack[this.stack.length-1];g(e.type);let n=e.children[0];if(n&&"text"===n.type){let r,i=t.children,l=-1;for(;++l<i.length;){let e=i[l];if("paragraph"===e.type){r=e;break}}r===e&&(n.value=n.value.slice(1),0===n.value.length?e.children.shift():e.position&&n.position&&"number"==typeof n.position.start.offset&&(n.position.start.column++,n.position.start.offset++,e.position.start=Object.assign({},n.position.start)))}}this.exit(e)}function rg(e,t,n,r){let i=e.children[0],l="boolean"==typeof e.checked&&i&&"paragraph"===i.type,a="["+(e.checked?"x":" ")+"] ",o=n.createTracker(r);l&&o.move(a);let s=ra(e,t,n,{...r,...o.current()});return l&&(s=s.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,function(e){return e+a})),s}let rx={tokenize:function(e,t,n){let r=0;return function t(l){return(87===l||119===l)&&r<3?(r++,e.consume(l),t):46===l&&3===r?(e.consume(l),i):n(l)};function i(e){return null===e?n(e):t(e)}},partial:!0},ry={tokenize:function(e,t,n){let r,i,l;return a;function a(t){return 46===t||95===t?e.check(rb,s,o)(t):null===t||eU(t)||eV(t)||45!==t&&eq(t)?s(t):(l=!0,e.consume(t),a)}function o(t){return 95===t?r=!0:(i=r,r=void 0),e.consume(t),a}function s(e){return i||r||!l?n(e):t(e)}},partial:!0},rv={tokenize:function(e,t){let n=0,r=0;return i;function i(a){return 40===a?(n++,e.consume(a),i):41===a&&r<n?l(a):33===a||34===a||38===a||39===a||41===a||42===a||44===a||46===a||58===a||59===a||60===a||63===a||93===a||95===a||126===a?e.check(rb,t,l)(a):null===a||eU(a)||eV(a)?t(a):(e.consume(a),i)}function l(t){return 41===t&&r++,e.consume(t),i}},partial:!0},rb={tokenize:function(e,t,n){return r;function r(a){return 33===a||34===a||39===a||41===a||42===a||44===a||46===a||58===a||59===a||63===a||95===a||126===a?(e.consume(a),r):38===a?(e.consume(a),l):93===a?(e.consume(a),i):60===a||null===a||eU(a)||eV(a)?t(a):n(a)}function i(e){return null===e||40===e||91===e||eU(e)||eV(e)?t(e):r(e)}function l(t){return eI(t)?function t(i){return 59===i?(e.consume(i),r):eI(i)?(e.consume(i),t):n(i)}(t):n(t)}},partial:!0},rk={tokenize:function(e,t,n){return function(t){return e.consume(t),r};function r(e){return eP(e)?n(e):t(e)}},partial:!0},rw={name:"wwwAutolink",tokenize:function(e,t,n){let r=this;return function(t){return 87!==t&&119!==t||!rA.call(r,r.previous)||rD(r.events)?n(t):(e.enter("literalAutolink"),e.enter("literalAutolinkWww"),e.check(rx,e.attempt(ry,e.attempt(rv,i),n),n)(t))};function i(n){return e.exit("literalAutolinkWww"),e.exit("literalAutolink"),t(n)}},previous:rA},rS={name:"protocolAutolink",tokenize:function(e,t,n){let r=this,i="",l=!1;return function(t){return(72===t||104===t)&&rT.call(r,r.previous)&&!rD(r.events)?(e.enter("literalAutolink"),e.enter("literalAutolinkHttp"),i+=String.fromCodePoint(t),e.consume(t),a):n(t)};function a(t){if(eI(t)&&i.length<5)return i+=String.fromCodePoint(t),e.consume(t),a;if(58===t){let n=i.toLowerCase();if("http"===n||"https"===n)return e.consume(t),o}return n(t)}function o(t){return 47===t?(e.consume(t),l)?s:(l=!0,o):n(t)}function s(t){return null===t||eF(t)||eU(t)||eV(t)||eq(t)?n(t):e.attempt(ry,e.attempt(rv,u),n)(t)}function u(n){return e.exit("literalAutolinkHttp"),e.exit("literalAutolink"),t(n)}},previous:rT},rC={name:"emailAutolink",tokenize:function(e,t,n){let r,i,l=this;return function(t){return!rL(t)||!rN.call(l,l.previous)||rD(l.events)?n(t):(e.enter("literalAutolink"),e.enter("literalAutolinkEmail"),function t(r){return rL(r)?(e.consume(r),t):64===r?(e.consume(r),a):n(r)}(t))};function a(t){return 46===t?e.check(rk,s,o)(t):45===t||95===t||eP(t)?(i=!0,e.consume(t),a):s(t)}function o(t){return e.consume(t),r=!0,a}function s(a){return i&&r&&eI(l.previous)?(e.exit("literalAutolinkEmail"),e.exit("literalAutolink"),t(a)):n(a)}},previous:rN},rE={},rj=48;for(;rj<123;)rE[rj]=rC,58==++rj?rj=65:91===rj&&(rj=97);function rA(e){return null===e||40===e||42===e||95===e||91===e||93===e||126===e||eU(e)}function rT(e){return!eI(e)}function rN(e){return!(47===e||rL(e))}function rL(e){return 43===e||45===e||46===e||95===e||eP(e)}function rD(e){let t=e.length,n=!1;for(;t--;){let r=e[t][1];if(("labelLink"===r.type||"labelImage"===r.type)&&!r._balanced){n=!0;break}if(r._gfmAutolinkLiteralWalkedInto){n=!1;break}}return e.length>0&&!n&&(e[e.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),n}rE[43]=rC,rE[45]=rC,rE[46]=rC,rE[95]=rC,rE[72]=[rC,rS],rE[104]=[rC,rS],rE[87]=[rC,rw],rE[119]=[rC,rw];let rz={tokenize:function(e,t,n){let r=this;return eQ(e,function(e){let i=r.events[r.events.length-1];return i&&"gfmFootnoteDefinitionIndent"===i[1].type&&4===i[2].sliceSerialize(i[1],!0).length?t(e):n(e)},"gfmFootnoteDefinitionIndent",5)},partial:!0};function rM(e,t,n){let r,i=this,l=i.events.length,a=i.parser.gfmFootnotes||(i.parser.gfmFootnotes=[]);for(;l--;){let e=i.events[l][1];if("labelImage"===e.type){r=e;break}if("gfmFootnoteCall"===e.type||"labelLink"===e.type||"label"===e.type||"image"===e.type||"link"===e.type)break}return function(l){if(!r||!r._balanced)return n(l);let o=tx(i.sliceSerialize({start:r.end,end:i.now()}));return 94===o.codePointAt(0)&&a.includes(o.slice(1))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(l),e.exit("gfmFootnoteCallLabelMarker"),t(l)):n(l)}}function rI(e,t){let n=e.length;for(;n--;)if("labelImage"===e[n][1].type&&"enter"===e[n][0]){e[n][1];break}e[n+1][1].type="data",e[n+3][1].type="gfmFootnoteCallLabelMarker";let r={type:"gfmFootnoteCall",start:Object.assign({},e[n+3][1].start),end:Object.assign({},e[e.length-1][1].end)},i={type:"gfmFootnoteCallMarker",start:Object.assign({},e[n+3][1].end),end:Object.assign({},e[n+3][1].end)};i.end.column++,i.end.offset++,i.end._bufferIndex++;let l={type:"gfmFootnoteCallString",start:Object.assign({},i.end),end:Object.assign({},e[e.length-1][1].start)},a={type:"chunkString",contentType:"string",start:Object.assign({},l.start),end:Object.assign({},l.end)},o=[e[n+1],e[n+2],["enter",r,t],e[n+3],e[n+4],["enter",i,t],["exit",i,t],["enter",l,t],["enter",a,t],["exit",a,t],["exit",l,t],e[e.length-2],e[e.length-1],["exit",r,t]];return e.splice(n,e.length-n+1,...o),e}function rP(e,t,n){let r,i=this,l=i.parser.gfmFootnotes||(i.parser.gfmFootnotes=[]),a=0;return function(t){return e.enter("gfmFootnoteCall"),e.enter("gfmFootnoteCallLabelMarker"),e.consume(t),e.exit("gfmFootnoteCallLabelMarker"),o};function o(t){return 94!==t?n(t):(e.enter("gfmFootnoteCallMarker"),e.consume(t),e.exit("gfmFootnoteCallMarker"),e.enter("gfmFootnoteCallString"),e.enter("chunkString").contentType="string",s)}function s(o){if(a>999||93===o&&!r||null===o||91===o||eU(o))return n(o);if(93===o){e.exit("chunkString");let r=e.exit("gfmFootnoteCallString");return l.includes(tx(i.sliceSerialize(r)))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(o),e.exit("gfmFootnoteCallLabelMarker"),e.exit("gfmFootnoteCall"),t):n(o)}return eU(o)||(r=!0),a++,e.consume(o),92===o?u:s}function u(t){return 91===t||92===t||93===t?(e.consume(t),a++,s):s(t)}}function rR(e,t,n){let r,i,l=this,a=l.parser.gfmFootnotes||(l.parser.gfmFootnotes=[]),o=0;return function(t){return e.enter("gfmFootnoteDefinition")._container=!0,e.enter("gfmFootnoteDefinitionLabel"),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(t),e.exit("gfmFootnoteDefinitionLabelMarker"),s};function s(t){return 94===t?(e.enter("gfmFootnoteDefinitionMarker"),e.consume(t),e.exit("gfmFootnoteDefinitionMarker"),e.enter("gfmFootnoteDefinitionLabelString"),e.enter("chunkString").contentType="string",u):n(t)}function u(t){if(o>999||93===t&&!i||null===t||91===t||eU(t))return n(t);if(93===t){e.exit("chunkString");let n=e.exit("gfmFootnoteDefinitionLabelString");return r=tx(l.sliceSerialize(n)),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(t),e.exit("gfmFootnoteDefinitionLabelMarker"),e.exit("gfmFootnoteDefinitionLabel"),d}return eU(t)||(i=!0),o++,e.consume(t),92===t?c:u}function c(t){return 91===t||92===t||93===t?(e.consume(t),o++,u):u(t)}function d(t){return 58===t?(e.enter("definitionMarker"),e.consume(t),e.exit("definitionMarker"),a.includes(r)||a.push(r),eQ(e,f,"gfmFootnoteDefinitionWhitespace")):n(t)}function f(e){return t(e)}}function rF(e,t,n){return e.check(eZ,t,e.attempt(rz,t,n))}function rO(e){e.exit("gfmFootnoteDefinition")}class r_{constructor(){this.map=[]}add(e,t,n){!function(e,t,n,r){let i=0;if(0!==n||0!==r.length){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])}}(this,e,t,n)}consume(e){if(this.map.sort(function(e,t){return e[0]-t[0]}),0===this.map.length)return;let t=this.map.length,n=[];for(;t>0;)t-=1,n.push(e.slice(this.map[t][0]+this.map[t][1]),this.map[t][2]),e.length=this.map[t][0];n.push(e.slice()),e.length=0;let r=n.pop();for(;r;){for(let t of r)e.push(t);r=n.pop()}this.map.length=0}}function rB(e,t,n){let r,i=this,l=0,a=0;return function(e){let t=i.events.length-1;for(;t>-1;){let e=i.events[t][1].type;if("lineEnding"===e||"linePrefix"===e)t--;else break}let r=t>-1?i.events[t][1].type:null,l="tableHead"===r||"tableRow"===r?y:o;return l===y&&i.parser.lazy[i.now().line]?n(e):l(e)};function o(t){var n;return e.enter("tableHead"),e.enter("tableRow"),124===(n=t)||(r=!0,a+=1),s(n)}function s(t){return null===t?n(t):eH(t)?a>1?(a=0,i.interrupt=!0,e.exit("tableRow"),e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),d):n(t):e$(t)?eQ(e,s,"whitespace")(t):(a+=1,r&&(r=!1,l+=1),124===t)?(e.enter("tableCellDivider"),e.consume(t),e.exit("tableCellDivider"),r=!0,s):(e.enter("data"),u(t))}function u(t){return null===t||124===t||eU(t)?(e.exit("data"),s(t)):(e.consume(t),92===t?c:u)}function c(t){return 92===t||124===t?(e.consume(t),u):u(t)}function d(t){return(i.interrupt=!1,i.parser.lazy[i.now().line])?n(t):(e.enter("tableDelimiterRow"),r=!1,e$(t))?eQ(e,f,"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t):f(t)}function f(t){return 45===t||58===t?h(t):124===t?(r=!0,e.enter("tableCellDivider"),e.consume(t),e.exit("tableCellDivider"),p):n(t)}function p(t){return e$(t)?eQ(e,h,"whitespace")(t):h(t)}function h(t){return 58===t?(a+=1,r=!0,e.enter("tableDelimiterMarker"),e.consume(t),e.exit("tableDelimiterMarker"),m):45===t?(a+=1,m(t)):null===t||eH(t)?x(t):n(t)}function m(t){return 45===t?(e.enter("tableDelimiterFiller"),function t(n){return 45===n?(e.consume(n),t):58===n?(r=!0,e.exit("tableDelimiterFiller"),e.enter("tableDelimiterMarker"),e.consume(n),e.exit("tableDelimiterMarker"),g):(e.exit("tableDelimiterFiller"),g(n))}(t)):n(t)}function g(t){return e$(t)?eQ(e,x,"whitespace")(t):x(t)}function x(i){if(124===i)return f(i);if(null===i||eH(i))return r&&l===a?(e.exit("tableDelimiterRow"),e.exit("tableHead"),t(i)):n(i);return n(i)}function y(t){return e.enter("tableRow"),v(t)}function v(n){return 124===n?(e.enter("tableCellDivider"),e.consume(n),e.exit("tableCellDivider"),v):null===n||eH(n)?(e.exit("tableRow"),t(n)):e$(n)?eQ(e,v,"whitespace")(n):(e.enter("data"),b(n))}function b(t){return null===t||124===t||eU(t)?(e.exit("data"),v(t)):(e.consume(t),92===t?k:b)}function k(t){return 92===t||124===t?(e.consume(t),b):b(t)}}function rH(e,t){let n,r,i,l=-1,a=!0,o=0,s=[0,0,0,0],u=[0,0,0,0],c=!1,d=0,f=new r_;for(;++l<e.length;){let p=e[l],h=p[1];"enter"===p[0]?"tableHead"===h.type?(c=!1,0!==d&&(r$(f,t,d,n,r),r=void 0,d=0),n={type:"table",start:Object.assign({},h.start),end:Object.assign({},h.end)},f.add(l,0,[["enter",n,t]])):"tableRow"===h.type||"tableDelimiterRow"===h.type?(a=!0,i=void 0,s=[0,0,0,0],u=[0,l+1,0,0],c&&(c=!1,r={type:"tableBody",start:Object.assign({},h.start),end:Object.assign({},h.end)},f.add(l,0,[["enter",r,t]])),o="tableDelimiterRow"===h.type?2:r?3:1):o&&("data"===h.type||"tableDelimiterMarker"===h.type||"tableDelimiterFiller"===h.type)?(a=!1,0===u[2]&&(0!==s[1]&&(u[0]=u[1],i=rU(f,t,s,o,void 0,i),s=[0,0,0,0]),u[2]=l)):"tableCellDivider"===h.type&&(a?a=!1:(0!==s[1]&&(u[0]=u[1],i=rU(f,t,s,o,void 0,i)),u=[(s=u)[1],l,0,0])):"tableHead"===h.type?(c=!0,d=l):"tableRow"===h.type||"tableDelimiterRow"===h.type?(d=l,0!==s[1]?(u[0]=u[1],i=rU(f,t,s,o,l,i)):0!==u[1]&&(i=rU(f,t,u,o,l,i)),o=0):o&&("data"===h.type||"tableDelimiterMarker"===h.type||"tableDelimiterFiller"===h.type)&&(u[3]=l)}for(0!==d&&r$(f,t,d,n,r),f.consume(t.events),l=-1;++l<t.events.length;){let e=t.events[l];"enter"===e[0]&&"table"===e[1].type&&(e[1]._align=function(e,t){let n=!1,r=[];for(;t<e.length;){let i=e[t];if(n){if("enter"===i[0])"tableContent"===i[1].type&&r.push("tableDelimiterMarker"===e[t+1][1].type?"left":"none");else if("tableContent"===i[1].type){if("tableDelimiterMarker"===e[t-1][1].type){let e=r.length-1;r[e]="left"===r[e]?"center":"right"}}else if("tableDelimiterRow"===i[1].type)break}else"enter"===i[0]&&"tableDelimiterRow"===i[1].type&&(n=!0);t+=1}return r}(t.events,l))}return e}function rU(e,t,n,r,i,l){0!==n[0]&&(l.end=Object.assign({},rq(t.events,n[0])),e.add(n[0],0,[["exit",l,t]]));let a=rq(t.events,n[1]);if(l={type:1===r?"tableHeader":2===r?"tableDelimiter":"tableData",start:Object.assign({},a),end:Object.assign({},a)},e.add(n[1],0,[["enter",l,t]]),0!==n[2]){let i=rq(t.events,n[2]),l=rq(t.events,n[3]),a={type:"tableContent",start:Object.assign({},i),end:Object.assign({},l)};if(e.add(n[2],0,[["enter",a,t]]),2!==r){let r=t.events[n[2]],i=t.events[n[3]];if(r[1].end=Object.assign({},i[1].end),r[1].type="chunkText",r[1].contentType="text",n[3]>n[2]+1){let t=n[2]+1,r=n[3]-n[2]-1;e.add(t,r,[])}}e.add(n[3]+1,0,[["exit",a,t]])}return void 0!==i&&(l.end=Object.assign({},rq(t.events,i)),e.add(i,0,[["exit",l,t]]),l=void 0),l}function r$(e,t,n,r,i){let l=[],a=rq(t.events,n);i&&(i.end=Object.assign({},a),l.push(["exit",i,t])),r.end=Object.assign({},a),l.push(["exit",r,t]),e.add(n+1,0,l)}function rq(e,t){let n=e[t],r="enter"===n[0]?"start":"end";return n[1][r]}let rV={name:"tasklistCheck",tokenize:function(e,t,n){let r=this;return function(t){return null===r.previous&&r._gfmTasklistFirstContentOfListItem?(e.enter("taskListCheck"),e.enter("taskListCheckMarker"),e.consume(t),e.exit("taskListCheckMarker"),i):n(t)};function i(t){return eU(t)?(e.enter("taskListCheckValueUnchecked"),e.consume(t),e.exit("taskListCheckValueUnchecked"),l):88===t||120===t?(e.enter("taskListCheckValueChecked"),e.consume(t),e.exit("taskListCheckValueChecked"),l):n(t)}function l(t){return 93===t?(e.enter("taskListCheckMarker"),e.consume(t),e.exit("taskListCheckMarker"),e.exit("taskListCheck"),a):n(t)}function a(r){return eH(r)?t(r):e$(r)?e.check({tokenize:rW},t,n)(r):n(r)}}};function rW(e,t,n){return eQ(e,function(e){return null===e?n(e):t(e)},"whitespace")}let rQ={};function rJ(e){let t,n,r,i=e||rQ,l=this.data(),a=l.micromarkExtensions||(l.micromarkExtensions=[]),o=l.fromMarkdownExtensions||(l.fromMarkdownExtensions=[]),s=l.toMarkdownExtensions||(l.toMarkdownExtensions=[]);a.push(eM([{text:rE},{document:{91:{name:"gfmFootnoteDefinition",tokenize:rR,continuation:{tokenize:rF},exit:rO}},text:{91:{name:"gfmFootnoteCall",tokenize:rP},93:{name:"gfmPotentialFootnoteCall",add:"after",tokenize:rM,resolveTo:rI}}},(t=(i||{}).singleTilde,n={name:"strikethrough",tokenize:function(e,n,r){let i=this.previous,l=this.events,a=0;return function(o){return 126===i&&"characterEscape"!==l[l.length-1][1].type?r(o):(e.enter("strikethroughSequenceTemporary"),function l(o){let s=te(i);if(126===o)return a>1?r(o):(e.consume(o),a++,l);if(a<2&&!t)return r(o);let u=e.exit("strikethroughSequenceTemporary"),c=te(o);return u._open=!c||2===c&&!!s,u._close=!s||2===s&&!!c,n(o)}(o))}},resolveAll:function(e,t){let n=-1;for(;++n<e.length;)if("enter"===e[n][0]&&"strikethroughSequenceTemporary"===e[n][1].type&&e[n][1]._close){let r=n;for(;r--;)if("exit"===e[r][0]&&"strikethroughSequenceTemporary"===e[r][1].type&&e[r][1]._open&&e[n][1].end.offset-e[n][1].start.offset==e[r][1].end.offset-e[r][1].start.offset){e[n][1].type="strikethroughSequence",e[r][1].type="strikethroughSequence";let i={type:"strikethrough",start:Object.assign({},e[r][1].start),end:Object.assign({},e[n][1].end)},l={type:"strikethroughText",start:Object.assign({},e[r][1].end),end:Object.assign({},e[n][1].start)},a=[["enter",i,t],["enter",e[r][1],t],["exit",e[r][1],t],["enter",l,t]],o=t.parser.constructs.insideSpan.null;o&&eL(a,a.length,0,tt(o,e.slice(r+1,n),t)),eL(a,a.length,0,[["exit",l,t],["enter",e[n][1],t],["exit",e[n][1],t],["exit",i,t]]),eL(e,r-1,n-r+3,a),n=r+a.length-2;break}}for(n=-1;++n<e.length;)"strikethroughSequenceTemporary"===e[n][1].type&&(e[n][1].type="data");return e}},null==t&&(t=!0),{text:{126:n},insideSpan:{null:[n]},attentionMarkers:{null:[126]}}),{flow:{null:{name:"table",tokenize:rB,resolveAll:rH}}},{text:{91:rV}}])),o.push([{transforms:[nJ],enter:{literalAutolink:nU,literalAutolinkEmail:n$,literalAutolinkHttp:n$,literalAutolinkWww:n$},exit:{literalAutolink:nQ,literalAutolinkEmail:nW,literalAutolinkHttp:nq,literalAutolinkWww:nV}},{enter:{gfmFootnoteCallString:nG,gfmFootnoteCall:nY,gfmFootnoteDefinitionLabelString:n0,gfmFootnoteDefinition:n1},exit:{gfmFootnoteCallString:n2,gfmFootnoteCall:n4,gfmFootnoteDefinitionLabelString:n3,gfmFootnoteDefinition:n6}},{canContainEols:["delete"],enter:{strikethrough:re},exit:{strikethrough:rt}},{enter:{table:ro,tableData:rd,tableHeader:rd,tableRow:ru},exit:{codeText:rf,table:rs,tableData:rc,tableHeader:rc,tableRow:rc}},{exit:{taskListCheckValueChecked:rh,taskListCheckValueUnchecked:rh,paragraph:rm}}]),s.push({extensions:[{unsafe:[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:nB,notInConstruct:nH},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct:nB,notInConstruct:nH},{character:":",before:"[ps]",after:"\\/",inConstruct:nB,notInConstruct:nH}]},(r=!1,i&&i.firstLineBlank&&(r=!0),{handlers:{footnoteDefinition:function(e,t,n,i){let l=n.createTracker(i),a=l.move("[^"),o=n.enter("footnoteDefinition"),s=n.enter("label");return a+=l.move(n.safe(n.associationId(e),{before:a,after:"]"})),s(),a+=l.move("]:"),e.children&&e.children.length>0&&(l.shift(4),a+=l.move((r?"\n":" ")+n.indentLines(n.containerFlow(e,l.current()),r?n8:n9))),o(),a},footnoteReference:n5},unsafe:[{character:"[",inConstruct:["label","phrasing","reference"]}]}),{unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:n7}],handlers:{delete:rn}},function(e){let t=e||{},n=t.tableCellPadding,r=t.tablePipeAlign,i=t.stringLength,l=n?" ":"|";return{unsafe:[{character:"\r",inConstruct:"tableCell"},{character:"\n",inConstruct:"tableCell"},{atBreak:!0,character:"|",after:"[ :-]"},{character:"|",inConstruct:"tableCell"},{atBreak:!0,character:":",after:"-"},{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{inlineCode:function(e,t,n){let r=rl(e,t,n);return n.stack.includes("tableCell")&&(r=r.replace(/\|/g,"\\$&")),r},table:function(e,t,n,r){return o(function(e,t,n){let r=e.children,i=-1,l=[],a=t.enter("table");for(;++i<r.length;)l[i]=s(r[i],t,n);return a(),l}(e,n,r),e.align)},tableCell:a,tableRow:function(e,t,n,r){let i=o([s(e,n,r)]);return i.slice(0,i.indexOf("\n"))}}};function a(e,t,n,r){let i=n.enter("tableCell"),a=n.enter("phrasing"),o=n.containerPhrasing(e,{...r,before:l,after:l});return a(),i(),o}function o(e,t){return function(e,t){let n=t||{},r=(n.align||[]).concat(),i=n.stringLength||rr,l=[],a=[],o=[],s=[],u=0,c=-1;for(;++c<e.length;){let t=[],r=[],l=-1;for(e[c].length>u&&(u=e[c].length);++l<e[c].length;){var d;let a=null==(d=e[c][l])?"":String(d);if(!1!==n.alignDelimiters){let e=i(a);r[l]=e,(void 0===s[l]||e>s[l])&&(s[l]=e)}t.push(a)}a[c]=t,o[c]=r}let f=-1;if("object"==typeof r&&"length"in r)for(;++f<u;)l[f]=ri(r[f]);else{let e=ri(r);for(;++f<u;)l[f]=e}f=-1;let p=[],h=[];for(;++f<u;){let e=l[f],t="",r="";99===e?(t=":",r=":"):108===e?t=":":114===e&&(r=":");let i=!1===n.alignDelimiters?1:Math.max(1,s[f]-t.length-r.length),a=t+"-".repeat(i)+r;!1!==n.alignDelimiters&&((i=t.length+i+r.length)>s[f]&&(s[f]=i),h[f]=i),p[f]=a}a.splice(1,0,p),o.splice(1,0,h),c=-1;let m=[];for(;++c<a.length;){let e=a[c],t=o[c];f=-1;let r=[];for(;++f<u;){let i=e[f]||"",a="",o="";if(!1!==n.alignDelimiters){let e=s[f]-(t[f]||0),n=l[f];114===n?a=" ".repeat(e):99===n?e%2?(a=" ".repeat(e/2+.5),o=" ".repeat(e/2-.5)):o=a=" ".repeat(e/2):o=" ".repeat(e)}!1===n.delimiterStart||f||r.push("|"),!1!==n.padding&&(!1!==n.alignDelimiters||""!==i)&&(!1!==n.delimiterStart||f)&&r.push(" "),!1!==n.alignDelimiters&&r.push(a),r.push(i),!1!==n.alignDelimiters&&r.push(o),!1!==n.padding&&r.push(" "),(!1!==n.delimiterEnd||f!==u-1)&&r.push("|")}m.push(!1===n.delimiterEnd?r.join("").replace(/ +$/,""):r.join(""))}return m.join("\n")}(e,{align:t,alignDelimiters:r,padding:n,stringLength:i})}function s(e,t,n){let r=e.children,i=-1,l=[],o=t.enter("tableRow");for(;++i<r.length;)l[i]=a(r[i],e,t,n);return o(),l}}(i),{unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:rg}}]})}let rK=s("link-2",[["path",{d:"M9 17H7A5 5 0 0 1 7 7h2",key:"8i5ue5"}],["path",{d:"M15 7h2a5 5 0 1 1 0 10h-2",key:"1b9ql8"}],["line",{x1:"8",x2:"16",y1:"12",y2:"12",key:"1jonct"}]]),rX=s("check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]);var rZ=e.i(72003),rG=e.i(30007),rY=e.i(25133);e.i(36420),e.i(7744),e.i(43595),e.i(84411),e.i(18688),e.i(69786);var r0=e.i(41130),r1=e.i(19886),r2=e.i(6961),r4=e.i(8324),r3=e.i(19524),r6=e.i(40524);e.i(47716);var r5=e.i(23685),r9="comm",r8="rule",r7="decl",ie="@keyframes",it="@layer",ir=Math.abs,ii=String.fromCharCode;function il(e,t,n){return e.replace(t,n)}function ia(e,t){return 0|e.charCodeAt(t)}function io(e,t,n){return e.slice(t,n)}function is(e){return e.length}function iu(e,t){return t.push(e),e}var ic=1,id=1,ip=0,ih=0,im=0,ig="";function ix(e,t,n,r,i,l,a,o){return{value:e,root:t,parent:n,type:r,props:i,children:l,line:ic,column:id,length:a,return:"",siblings:o}}function iy(){return im=ih<ip?ia(ig,ih++):0,id++,10===im&&(id=1,ic++),im}function iv(){return ia(ig,ih)}function ib(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function ik(e){var t,n;return(t=ih-1,n=function e(t){for(;iy();)switch(im){case t:return ih;case 34:case 39:34!==t&&39!==t&&e(im);break;case 40:41===t&&e(t);break;case 92:iy()}return ih}(91===e?e+2:40===e?e+1:e),io(ig,t,n)).trim()}function iw(e,t,n,r,i,l,a,o,s,u,c,d){for(var f=i-1,p=0===i?l:[""],h=p.length,m=0,g=0,x=0;m<r;++m)for(var y=0,v=io(e,f+1,f=ir(g=a[m])),b=e;y<h;++y)(b=(g>0?p[y]+" "+v:il(v,/&\f/g,p[y])).trim())&&(s[x++]=b);return ix(e,t,n,0===i?r8:o,s,u,c,d)}function iS(e,t,n,r,i){return ix(e,t,n,r7,io(e,0,r),io(e,r+1,-1),r,i)}function iC(e,t){for(var n="",r=0;r<e.length;r++)n+=t(e[r],r,e,t)||"";return n}function iE(e,t,n,r){switch(e.type){case it:if(e.children.length)break;case"@import":case"@namespace":case r7:return e.return=e.return||e.value;case r9:return"";case ie:return e.return=e.value+"{"+iC(e.children,r)+"}";case r8:if(!is(e.value=e.props.join(",")))return""}return is(n=iC(e.children,r))?e.return=e.value+"{"+n+"}":""}var ij=e.i(24154),iA=e.i(47608),iT=e.i(32780),iN=e.i(68482),iL=e.i(38489);function iD(e){if(null==e)return!0;if((0,iT.f)(e))return("function"==typeof e.splice||"string"==typeof e||!!(0,iA.f)(e)||!!(0,iL.f)(e)||!!(0,iN.f)(e))&&0===e.length;if("object"==typeof e||"function"==typeof e){let t;if(e instanceof Map||e instanceof Set)return 0===e.size;let n=Object.keys(e);return(t=e?.constructor,e===("function"==typeof t?t.prototype:Object.prototype))?0===n.filter(e=>"constructor"!==e).length:0===n.length}return!0}var iz={id:"c4",detector:(0,r3.p)(e=>/^\s*C4Context|C4Container|C4Component|C4Dynamic|C4Deployment/.test(e),"detector"),loader:(0,r3.p)(async()=>{let{diagram:t}=await e.A(77184);return{id:"c4",diagram:t}},"loader")},iM="flowchart",iI=(0,r3.p)((e,t)=>t?.flowchart?.defaultRenderer!=="dagre-wrapper"&&t?.flowchart?.defaultRenderer!=="elk"&&/^\s*graph/.test(e),"detector"),iP=(0,r3.p)(async()=>{let{diagram:t}=await e.A(23057);return{id:iM,diagram:t}},"loader"),iR={id:iM,detector:iI,loader:iP},iF="flowchart-v2",iO=(0,r3.p)((e,t)=>t?.flowchart?.defaultRenderer!=="dagre-d3"&&(t?.flowchart?.defaultRenderer==="elk"&&(t.layout="elk"),!!/^\s*graph/.test(e)&&t?.flowchart?.defaultRenderer==="dagre-wrapper"||/^\s*flowchart/.test(e)),"detector"),i_=(0,r3.p)(async()=>{let{diagram:t}=await e.A(23057);return{id:iF,diagram:t}},"loader"),iB={id:iF,detector:iO,loader:i_},iH="swimlane",iU=(0,r3.p)(e=>/^\s*swimlane-beta\b/.test(e),"detector"),i$=(0,r3.p)(async()=>{let{diagram:t}=await e.A(72624);return{id:iH,diagram:t}},"loader"),iq={id:iH,detector:iU,loader:i$},iV={id:"er",detector:(0,r3.p)(e=>/^\s*erDiagram/.test(e),"detector"),loader:(0,r3.p)(async()=>{let{diagram:t}=await e.A(35924);return{id:"er",diagram:t}},"loader")},iW="gitGraph",iQ=(0,r3.p)(e=>/^\s*gitGraph/.test(e),"detector"),iJ=(0,r3.p)(async()=>{let{diagram:t}=await e.A(13639);return{id:iW,diagram:t}},"loader"),iK={id:iW,detector:iQ,loader:iJ},iX="gantt",iZ=(0,r3.p)(e=>/^\s*gantt/.test(e),"detector"),iG=(0,r3.p)(async()=>{let{diagram:t}=await e.A(9613);return{id:iX,diagram:t}},"loader"),iY={id:iX,detector:iZ,loader:iG},i0="info",i1=(0,r3.p)(e=>/^\s*info/.test(e),"detector"),i2=(0,r3.p)(async()=>{let{diagram:t}=await e.A(82566);return{id:i0,diagram:t}},"loader"),i4={id:i0,detector:i1,loader:i2},i3={id:"pie",detector:(0,r3.p)(e=>/^\s*pie/.test(e),"detector"),loader:(0,r3.p)(async()=>{let{diagram:t}=await e.A(77817);return{id:"pie",diagram:t}},"loader")},i6="quadrantChart",i5=(0,r3.p)(e=>/^\s*quadrantChart/.test(e),"detector"),i9=(0,r3.p)(async()=>{let{diagram:t}=await e.A(14619);return{id:i6,diagram:t}},"loader"),i8={id:i6,detector:i5,loader:i9},i7="xychart",le=(0,r3.p)(e=>/^\s*xychart(-beta)?/.test(e),"detector"),lt=(0,r3.p)(async()=>{let{diagram:t}=await e.A(8874);return{id:i7,diagram:t}},"loader"),ln={id:i7,detector:le,loader:lt},lr="requirement",li=(0,r3.p)(e=>/^\s*requirement(Diagram)?/.test(e),"detector"),ll=(0,r3.p)(async()=>{let{diagram:t}=await e.A(33485);return{id:lr,diagram:t}},"loader"),la={id:lr,detector:li,loader:ll},lo="sequence",ls=(0,r3.p)(e=>/^\s*sequenceDiagram/.test(e),"detector"),lu=(0,r3.p)(async()=>{let{diagram:t}=await e.A(46986);return{id:lo,diagram:t}},"loader"),lc={id:lo,detector:ls,loader:lu},ld="class",lf=(0,r3.p)((e,t)=>t?.class?.defaultRenderer!=="dagre-wrapper"&&/^\s*classDiagram/.test(e),"detector"),lp=(0,r3.p)(async()=>{let{diagram:t}=await e.A(90784);return{id:ld,diagram:t}},"loader"),lh={id:ld,detector:lf,loader:lp},lm="classDiagram",lg=(0,r3.p)((e,t)=>!!/^\s*classDiagram/.test(e)&&t?.class?.defaultRenderer==="dagre-wrapper"||/^\s*classDiagram-v2/.test(e),"detector"),lx=(0,r3.p)(async()=>{let{diagram:t}=await e.A(43552);return{id:lm,diagram:t}},"loader"),ly={id:lm,detector:lg,loader:lx},lv="state",lb=(0,r3.p)((e,t)=>t?.state?.defaultRenderer!=="dagre-wrapper"&&/^\s*stateDiagram/.test(e),"detector"),lk=(0,r3.p)(async()=>{let{diagram:t}=await e.A(52785);return{id:lv,diagram:t}},"loader"),lw={id:lv,detector:lb,loader:lk},lS="stateDiagram",lC=(0,r3.p)((e,t)=>!!(/^\s*stateDiagram-v2/.test(e)||/^\s*stateDiagram/.test(e)&&t?.state?.defaultRenderer==="dagre-wrapper"),"detector"),lE=(0,r3.p)(async()=>{let{diagram:t}=await e.A(9063);return{id:lS,diagram:t}},"loader"),lj={id:lS,detector:lC,loader:lE},lA="journey",lT=(0,r3.p)(e=>/^\s*journey/.test(e),"detector"),lN=(0,r3.p)(async()=>{let{diagram:t}=await e.A(67890);return{id:lA,diagram:t}},"loader"),lL={id:lA,detector:lT,loader:lN},lD={draw:(0,r3.p)((e,t,n)=>{r4.d.debug("rendering svg for syntax error\n");let r=(0,rZ.f)(t),i=r.append("g");r.attr("viewBox","0 0 2412 512"),(0,r2.m)(r,100,512,!0),i.append("path").attr("class","error-icon").attr("d","m411.313,123.313c6.25-6.25 6.25-16.375 0-22.625s-16.375-6.25-22.625,0l-32,32-9.375,9.375-20.688-20.688c-12.484-12.5-32.766-12.5-45.25,0l-16,16c-1.261,1.261-2.304,2.648-3.31,4.051-21.739-8.561-45.324-13.426-70.065-13.426-105.867,0-192,86.133-192,192s86.133,192 192,192 192-86.133 192-192c0-24.741-4.864-48.327-13.426-70.065 1.402-1.007 2.79-2.049 4.051-3.31l16-16c12.5-12.492 12.5-32.758 0-45.25l-20.688-20.688 9.375-9.375 32.001-31.999zm-219.313,100.687c-52.938,0-96,43.063-96,96 0,8.836-7.164,16-16,16s-16-7.164-16-16c0-70.578 57.422-128 128-128 8.836,0 16,7.164 16,16s-7.164,16-16,16z"),i.append("path").attr("class","error-icon").attr("d","m459.02,148.98c-6.25-6.25-16.375-6.25-22.625,0s-6.25,16.375 0,22.625l16,16c3.125,3.125 7.219,4.688 11.313,4.688 4.094,0 8.188-1.563 11.313-4.688 6.25-6.25 6.25-16.375 0-22.625l-16.001-16z"),i.append("path").attr("class","error-icon").attr("d","m340.395,75.605c3.125,3.125 7.219,4.688 11.313,4.688 4.094,0 8.188-1.563 11.313-4.688 6.25-6.25 6.25-16.375 0-22.625l-16-16c-6.25-6.25-16.375-6.25-22.625,0s-6.25,16.375 0,22.625l15.999,16z"),i.append("path").attr("class","error-icon").attr("d","m400,64c8.844,0 16-7.164 16-16v-32c0-8.836-7.156-16-16-16-8.844,0-16,7.164-16,16v32c0,8.836 7.156,16 16,16z"),i.append("path").attr("class","error-icon").attr("d","m496,96.586h-32c-8.844,0-16,7.164-16,16 0,8.836 7.156,16 16,16h32c8.844,0 16-7.164 16-16 0-8.836-7.156-16-16-16z"),i.append("path").attr("class","error-icon").attr("d","m436.98,75.605c3.125,3.125 7.219,4.688 11.313,4.688 4.094,0 8.188-1.563 11.313-4.688l32-32c6.25-6.25 6.25-16.375 0-22.625s-16.375-6.25-22.625,0l-32,32c-6.251,6.25-6.251,16.375-0.001,22.625z"),i.append("text").attr("class","error-text").attr("x",1440).attr("y",250).attr("font-size","150px").style("text-anchor","middle").text("Syntax error in text"),i.append("text").attr("class","error-text").attr("x",1250).attr("y",400).attr("font-size","100px").style("text-anchor","middle").text(`mermaid version ${n}`)},"draw")},lz={db:{},renderer:lD,parser:{parse:(0,r3.p)(()=>{},"parse")}},lM="flowchart-elk",lI=(0,r3.p)((e,t={})=>!!(/^\s*flowchart-elk/.test(e)||/^\s*(flowchart|graph)/.test(e)&&t?.flowchart?.defaultRenderer==="elk")&&(t.layout="elk",!0),"detector"),lP=(0,r3.p)(async()=>{let{diagram:t}=await e.A(23057);return{id:lM,diagram:t}},"loader"),lR={id:lM,detector:lI,loader:lP},lF="timeline",lO=(0,r3.p)(e=>/^\s*timeline/.test(e),"detector"),l_=(0,r3.p)(async()=>{let{diagram:t}=await e.A(8288);return{id:lF,diagram:t}},"loader"),lB={id:lF,detector:lO,loader:l_},lH="mindmap",lU=(0,r3.p)(e=>/^\s*mindmap/.test(e),"detector"),l$=(0,r3.p)(async()=>{let{diagram:t}=await e.A(12897);return{id:lH,diagram:t}},"loader"),lq={id:lH,detector:lU,loader:l$},lV="kanban",lW=(0,r3.p)(e=>/^\s*kanban/.test(e),"detector"),lQ=(0,r3.p)(async()=>{let{diagram:t}=await e.A(40492);return{id:lV,diagram:t}},"loader"),lJ={id:lV,detector:lW,loader:lQ},lK="sankey",lX=(0,r3.p)(e=>/^\s*sankey(-beta)?/.test(e),"detector"),lZ=(0,r3.p)(async()=>{let{diagram:t}=await e.A(37976);return{id:lK,diagram:t}},"loader"),lG={id:lK,detector:lX,loader:lZ},lY="packet",l0=(0,r3.p)(e=>/^\s*packet(-beta)?/.test(e),"detector"),l1=(0,r3.p)(async()=>{let{diagram:t}=await e.A(39490);return{id:lY,diagram:t}},"loader"),l2={id:lY,detector:l0,loader:l1},l4="radar",l3=(0,r3.p)(e=>/^\s*radar-beta/.test(e),"detector"),l6=(0,r3.p)(async()=>{let{diagram:t}=await e.A(59577);return{id:l4,diagram:t}},"loader"),l5={id:l4,detector:l3,loader:l6},l9="block",l8=(0,r3.p)(e=>/^\s*block(-beta)?/.test(e),"detector"),l7=(0,r3.p)(async()=>{let{diagram:t}=await e.A(68602);return{id:l9,diagram:t}},"loader"),ae={id:l9,detector:l8,loader:l7},at="treeView",an=(0,r3.p)(e=>/^\s*treeView-beta/.test(e),"detector"),ar=(0,r3.p)(async()=>{let{diagram:t}=await e.A(99499);return{id:at,diagram:t}},"loader"),ai={id:at,detector:an,loader:ar},al="architecture",aa=(0,r3.p)(e=>/^\s*architecture/.test(e),"detector"),ao=(0,r3.p)(async()=>{let{diagram:t}=await e.A(99073);return{id:al,diagram:t}},"loader"),as={id:al,detector:aa,loader:ao},au="eventmodeling",ac=(0,r3.p)(e=>/^\s*eventmodeling/.test(e),"detector"),ad=(0,r3.p)(async()=>{let{diagram:t}=await e.A(36959);return{id:au,diagram:t}},"loader"),af={id:au,detector:ac,loader:ad},ap="ishikawa",ah=(0,r3.p)(e=>/^\s*ishikawa(-beta)?\b/i.test(e),"detector"),am=(0,r3.p)(async()=>{let{diagram:t}=await e.A(31219);return{id:ap,diagram:t}},"loader"),ag={id:ap,detector:ah,loader:am},ax="venn",ay=(0,r3.p)(e=>/^\s*venn-beta/.test(e),"detector"),av=(0,r3.p)(async()=>{let{diagram:t}=await e.A(31733);return{id:ax,diagram:t}},"loader"),ab={id:ax,detector:ay,loader:av},ak="treemap",aw=(0,r3.p)(e=>/^\s*treemap/.test(e),"detector"),aS=(0,r3.p)(async()=>{let{diagram:t}=await e.A(36896);return{id:ak,diagram:t}},"loader"),aC={id:ak,detector:aw,loader:aS},aE="wardley",aj=(0,r3.p)(e=>/^\s*wardley-beta/i.test(e),"detector"),aA=(0,r3.p)(async()=>{let{diagram:t}=await e.A(99089);return{id:aE,diagram:t}},"loader"),aT={id:aE,detector:aj,loader:aA},aN="cynefin",aL=(0,r3.p)(e=>/^\s*cynefin-beta(?:[\s:]|$)/.test(e),"detector"),aD=(0,r3.p)(async()=>{let{diagram:t}=await e.A(49451);return{id:aN,diagram:t}},"loader"),az={id:aN,detector:aL,loader:aD},aM="railroad",aI=(0,r3.p)(e=>/^\s*railroad-beta/i.test(e),"detector"),aP=(0,r3.p)(async()=>{let{diagram:t}=await e.A(59065);return{id:aM,diagram:t}},"loader"),aR={id:aM,detector:aI,loader:aP},aF="railroadEbnf",aO=(0,r3.p)(e=>/^\s*railroad-ebnf-beta/i.test(e),"detector"),a_=(0,r3.p)(async()=>{let{diagram:t}=await e.A(92339);return{id:aF,diagram:t}},"loader"),aB={id:aF,detector:aO,loader:a_},aH="railroadAbnf",aU=(0,r3.p)(e=>/^\s*railroad-abnf-beta/i.test(e),"detector"),a$=(0,r3.p)(async()=>{let{diagram:t}=await e.A(53634);return{id:aH,diagram:t}},"loader"),aq={id:aH,detector:aU,loader:a$},aV="railroadPeg",aW=(0,r3.p)(e=>/^\s*railroad-peg-beta/i.test(e),"detector"),aQ=(0,r3.p)(async()=>{let{diagram:t}=await e.A(89544);return{id:aV,diagram:t}},"loader"),aJ={id:aV,detector:aW,loader:aQ},aK=!1,aX=(0,r3.p)(()=>{aK||(aK=!0,(0,r2.U)("error",lz,e=>"error"===e.toLowerCase().trim()),(0,r2.U)("---",{db:{clear:(0,r3.p)(()=>{},"clear")},styles:{},renderer:{draw:(0,r3.p)(()=>{},"draw")},parser:{parse:(0,r3.p)(()=>{throw Error("Diagrams beginning with --- are not valid. If you were trying to use a YAML front-matter, please ensure that you've correctly opened and closed the YAML front-matter with un-indented `---` blocks")},"parse")},init:(0,r3.p)(()=>null,"init")},e=>e.toLowerCase().trimStart().startsWith("---")),(0,r2.$)(lR,lq,as),(0,r2.$)(iz,lJ,ly,lh,iV,iY,i4,i3,la,lc,iq,iB,iR,lB,iK,lj,lw,lL,i8,lG,l2,ln,ae,af,ai,l5,ag,aC,aR,aB,aq,aJ,ab,aT,az))},"addDiagrams"),aZ=(0,r3.p)(async()=>{r4.d.debug("Loading registered diagrams");let e=(await Promise.allSettled(Object.entries(r2.k).map(async([e,{detector:t,loader:n}])=>{if(n)try{(0,r2.e)(e)}catch{try{let{diagram:e,id:r}=await n();(0,r2.U)(r,e,t)}catch(t){throw r4.d.error(`Failed to load external diagram with key ${e}. Removing from detectors.`),delete r2.k[e],t}}}))).filter(e=>"rejected"===e.status);if(e.length>0){for(let t of(r4.d.error(`Failed to load ${e.length} external diagrams`),e))r4.d.error(t);throw Error(`Failed to load ${e.length} external diagrams`)}},"loadRegisteredDiagrams");function aG(e,t){e.attr("role","graphics-document document"),""!==t&&e.attr("aria-roledescription",t)}function aY(e,t,n,r){if(void 0!==e.insert){if(n){let t=`chart-desc-${r}`;e.attr("aria-describedby",t),e.insert("desc",":first-child").attr("id",t).text(n)}if(t){let n=`chart-title-${r}`;e.attr("aria-labelledby",n),e.insert("title",":first-child").attr("id",n).text(t)}}}(0,r3.p)(aG,"setA11yDiagramInfo"),(0,r3.p)(aY,"addSVGa11yTitleDescription");var a0=class e{constructor(e,t,n,r,i){this.type=e,this.text=t,this.db=n,this.parser=r,this.renderer=i}static{(0,r3.p)(this,"Diagram")}static async fromText(t,n={}){let r=(0,r2.N)(),i=(0,r2.n)(t,r);t=(0,r1.S)(t)+"\n";try{(0,r2.e)(i)}catch{let e=(0,r2.x)(i);if(!e)throw new r2.y(`Diagram ${i} not found.`);let{id:t,diagram:n}=await e();(0,r2.U)(t,n)}let{db:l,parser:a,renderer:o,init:s}=(0,r2.e)(i);return a.parser&&(a.parser.yy=l),l.clear?.(),s?.(r),n.title&&l.setDiagramTitle?.(n.title),await a.parse(t),new e(i,t,l,a,o)}async render(e,t){await this.renderer.draw(this.text,e,t,this)}getParser(){return this.parser}getType(){return this.type}},a1=[],a2=(0,r3.p)(()=>{a1.forEach(e=>{e()}),a1=[]},"attachFunctions"),a4=(0,r3.p)(e=>e.replace(/^\s*%%(?!{)[^\n]+\n?/gm,"").trimStart(),"cleanupComments");function a3(e){let t=e.match(r2.c);if(!t)return{text:e,metadata:{}};let n=t[1],r=n?t[2].split("\n").map(e=>e.startsWith(n)?e.slice(n.length):e).join("\n"):t[2],i=(0,rG.z)(r,{schema:rG.Q})??{};i="object"!=typeof i||Array.isArray(i)?{}:i;let l={};return i.displayMode&&(l.displayMode=i.displayMode.toString()),i.title&&(l.title=i.title.toString()),i.config&&(l.config=i.config),{text:e.slice(t[0].length),metadata:l}}(0,r3.p)(a3,"extractFrontMatter");var a6=(0,r3.p)(e=>e.replace(/\r\n?/g,"\n").replace(/<(\w+)([^>]*)>/g,(e,t,n)=>"<"+t+n.replace(/="([^"]*)"/g,"='$1'")+">"),"cleanupText"),a5=(0,r3.p)(e=>{let{text:t,metadata:n}=a3(e),{displayMode:r,title:i,config:l={}}=n;return r&&(l.gantt||(l.gantt={}),l.gantt.displayMode=r),{title:i,config:l,text:t}},"processFrontmatter"),a9=(0,r3.p)(e=>{let t=r1.u.detectInit(e)??{},n=r1.u.detectDirective(e,"wrap");return Array.isArray(n)?t.wrap=n.some(({type:e})=>"wrap"===e):n?.type==="wrap"&&(t.wrap=!0),{text:(0,r1.k)(e),directive:t}},"processDirectives");function a8(e){let t=a5(a6(e)),n=a9(t.text),r=(0,r1.z)(t.config,n.directive);return{code:e=a4(n.text),title:t.title,config:r}}function a7(e){return btoa(Array.from(new TextEncoder().encode(e),e=>String.fromCodePoint(e)).join(""))}(0,r3.p)(a8,"preprocessDiagram"),(0,r3.p)(a7,"toBase64");var oe=["foreignobject"],ot=["dominant-baseline"];function on(e){let t=a8(e);return(0,r2.X)(),(0,r2.h)(t.config??{}),t}async function or(e,t){aX();try{let{code:t,config:n}=on(e);return{diagramType:(await om(t)).type,config:n}}catch(e){if(t?.suppressErrors)return!1;throw e}}(0,r3.p)(on,"processAndSetConfigs"),(0,r3.p)(or,"parse");var oi=(0,r3.p)((e,t,n=[])=>{let r=(0,r2.u)(`{ ${n.join(" !important; ")} !important; }`);return`.${e} ${t} ${r}`},"cssImportantStyles"),ol=(0,r3.p)((e,t=new Map)=>{let n=new CSSStyleSheet;if(void 0!==e.fontFamily&&n.insertRule(`:root { --mermaid-font-family: ${e.fontFamily}}`,n.cssRules.length),void 0!==e.altFontFamily&&n.insertRule(`:root { --mermaid-alt-font-family: ${e.altFontFamily}}`,n.cssRules.length),t instanceof Map){let r=(0,r2.o)(e)?["> *","span"]:["rect","polygon","ellipse","circle","path"];t.forEach(e=>{iD(e.styles)||r.forEach(t=>{n.insertRule(oi(e.id,t,e.styles),n.cssRules.length)}),iD(e.textStyles)||n.insertRule(oi(e.id,"tspan",(e?.textStyles||[]).map(e=>e.replace("color","fill"))),n.cssRules.length)})}let r="";if(void 0!==e.themeCSS)if("function"==typeof n.replaceSync){let t=new CSSStyleSheet;t.replaceSync(e.themeCSS),r=(0,r2.I)(t)+"\n"}else r+=`${e.themeCSS}
5
+ `,style:{paddingLeft:16*n+8},children:[h?(0,t.jsx)("span",{onClick:t=>{t.stopPropagation(),a(e.path)},className:"shrink-0 text-[var(--text-muted)] w-4 flex items-center justify-center hover:text-[var(--text-primary)]",children:p?(0,t.jsx)(u,{size:14}):(0,t.jsx)(c,{size:14})}):(0,t.jsx)("span",{className:"shrink-0 w-4"}),s?(0,t.jsx)(d,{size:14,className:"shrink-0",style:{color:"var(--folder-border)"}}):(0,t.jsx)(f,{size:14,className:"shrink-0",style:{color:"var(--file-border)"}}),(0,t.jsx)("span",{className:`truncate leading-normal ${s?"font-medium text-[var(--folder-text)]":""} ${g?"font-medium":""}`,children:e.displayName})]}),"folder"===e.type&&p&&e.children&&e.children.length>0&&(0,t.jsx)(t.Fragment,{children:e.children.map(e=>(0,t.jsx)(m,{entry:e,depth:n+1,selectedPath:r,selectedRef:i,expanded:l,onToggle:a,onSelect:o},e.path))})]})}function g(){}function x(){}let y=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,v=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,b={};function k(e,t){return((t||b).jsx?v:y).test(e)}let w=/[ \t\n\f\r]/g;function S(e){return""===e.replace(w,"")}class C{constructor(e,t){this.attribute=t,this.property=e}}C.prototype.attribute="",C.prototype.booleanish=!1,C.prototype.boolean=!1,C.prototype.commaOrSpaceSeparated=!1,C.prototype.commaSeparated=!1,C.prototype.defined=!1,C.prototype.mustUseProperty=!1,C.prototype.number=!1,C.prototype.overloadedBoolean=!1,C.prototype.property="",C.prototype.spaceSeparated=!1,C.prototype.space=void 0;let E=0,j=z(),A=z(),T=z(),N=z(),L=z(),D=z(),M=z();function z(){return 2**++E}e.s(["boolean",0,j,"booleanish",0,A,"commaOrSpaceSeparated",0,M,"commaSeparated",0,D,"number",0,N,"overloadedBoolean",0,T,"spaceSeparated",0,L],744);var I=e.i(744);let P=Object.keys(I);class R extends C{constructor(e,t,n,r){var i,l,a,o,s;let u=-1;if(super(e,t),i=this,(l=r)&&(i.space=l),"number"==typeof n)for(;++u<P.length;){let e=P[u];a=this,o=P[u],(s=(n&I[e])===I[e])&&(a[o]=s)}}}function F(e){return e.toLowerCase()}R.prototype.defined=!0;let O=/[A-Z]/g,_=/-[a-z]/g,B=/^data[-\w.:]+$/i;function H(e){return"-"+e.toLowerCase()}function $(e){return e.charAt(1).toUpperCase()}let U={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"};class q{constructor(e,t,n){this.normal=t,this.property=e,n&&(this.space=n)}}function V(e,t){let n={},r={};for(let t of e)Object.assign(n,t.property),Object.assign(r,t.normal);return new q(n,r,t)}function W(e){let t={},n={};for(let[r,i]of Object.entries(e.properties)){let l=new R(r,e.transform(e.attributes||{},r),i,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(l.mustUseProperty=!0),t[r]=l,n[F(r)]=r,n[F(l.attribute)]=r}return new q(t,n,e.space)}q.prototype.normal={},q.prototype.property={},q.prototype.space=void 0;let Q=W({properties:{ariaActiveDescendant:null,ariaAtomic:A,ariaAutoComplete:null,ariaBusy:A,ariaChecked:A,ariaColCount:N,ariaColIndex:N,ariaColSpan:N,ariaControls:L,ariaCurrent:null,ariaDescribedBy:L,ariaDetails:null,ariaDisabled:A,ariaDropEffect:L,ariaErrorMessage:null,ariaExpanded:A,ariaFlowTo:L,ariaGrabbed:A,ariaHasPopup:null,ariaHidden:A,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:L,ariaLevel:N,ariaLive:null,ariaModal:A,ariaMultiLine:A,ariaMultiSelectable:A,ariaOrientation:null,ariaOwns:L,ariaPlaceholder:null,ariaPosInSet:N,ariaPressed:A,ariaReadOnly:A,ariaRelevant:null,ariaRequired:A,ariaRoleDescription:L,ariaRowCount:N,ariaRowIndex:N,ariaRowSpan:N,ariaSelected:A,ariaSetSize:N,ariaSort:null,ariaValueMax:N,ariaValueMin:N,ariaValueNow:N,ariaValueText:null,role:null},transform:(e,t)=>"role"===t?t:"aria-"+t.slice(4).toLowerCase()});function J(e,t){return t in e?e[t]:t}function K(e,t){return J(e,t.toLowerCase())}let X=W({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:D,acceptCharset:L,accessKey:L,action:null,allow:null,allowFullScreen:j,allowPaymentRequest:j,allowUserMedia:j,alt:null,as:null,async:j,autoCapitalize:null,autoComplete:L,autoFocus:j,autoPlay:j,blocking:L,capture:null,charSet:null,checked:j,cite:null,className:L,cols:N,colSpan:null,content:null,contentEditable:A,controls:j,controlsList:L,coords:N|D,crossOrigin:null,data:null,dateTime:null,decoding:null,default:j,defer:j,dir:null,dirName:null,disabled:j,download:T,draggable:A,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:j,formTarget:null,headers:L,height:N,hidden:T,high:N,href:null,hrefLang:null,htmlFor:L,httpEquiv:L,id:null,imageSizes:null,imageSrcSet:null,inert:j,inputMode:null,integrity:null,is:null,isMap:j,itemId:null,itemProp:L,itemRef:L,itemScope:j,itemType:L,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:j,low:N,manifest:null,max:null,maxLength:N,media:null,method:null,min:null,minLength:N,multiple:j,muted:j,name:null,nonce:null,noModule:j,noValidate:j,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:j,optimum:N,pattern:null,ping:L,placeholder:null,playsInline:j,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:j,referrerPolicy:null,rel:L,required:j,reversed:j,rows:N,rowSpan:N,sandbox:L,scope:null,scoped:j,seamless:j,selected:j,shadowRootClonable:j,shadowRootDelegatesFocus:j,shadowRootMode:null,shape:null,size:N,sizes:null,slot:null,span:N,spellCheck:A,src:null,srcDoc:null,srcLang:null,srcSet:null,start:N,step:null,style:null,tabIndex:N,target:null,title:null,translate:null,type:null,typeMustMatch:j,useMap:null,value:A,width:N,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:L,axis:null,background:null,bgColor:null,border:N,borderColor:null,bottomMargin:N,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:j,declare:j,event:null,face:null,frame:null,frameBorder:null,hSpace:N,leftMargin:N,link:null,longDesc:null,lowSrc:null,marginHeight:N,marginWidth:N,noResize:j,noHref:j,noShade:j,noWrap:j,object:null,profile:null,prompt:null,rev:null,rightMargin:N,rules:null,scheme:null,scrolling:A,standby:null,summary:null,text:null,topMargin:N,valueType:null,version:null,vAlign:null,vLink:null,vSpace:N,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:j,disableRemotePlayback:j,prefix:null,property:null,results:N,security:null,unselectable:null},space:"html",transform:K}),Z=W({attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},properties:{about:M,accentHeight:N,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:N,amplitude:N,arabicForm:null,ascent:N,attributeName:null,attributeType:null,azimuth:N,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:N,by:null,calcMode:null,capHeight:N,className:L,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:N,diffuseConstant:N,direction:null,display:null,dur:null,divisor:N,dominantBaseline:null,download:j,dx:null,dy:null,edgeMode:null,editable:null,elevation:N,enableBackground:null,end:null,event:null,exponent:N,externalResourcesRequired:null,fill:null,fillOpacity:N,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:D,g2:D,glyphName:D,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:N,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:N,horizOriginX:N,horizOriginY:N,id:null,ideographic:N,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:N,k:N,k1:N,k2:N,k3:N,k4:N,kernelMatrix:M,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:N,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:N,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:N,overlineThickness:N,paintOrder:null,panose1:null,path:null,pathLength:N,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:L,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:N,pointsAtY:N,pointsAtZ:N,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:M,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:M,rev:M,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:M,requiredFeatures:M,requiredFonts:M,requiredFormats:M,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:N,specularExponent:N,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:N,strikethroughThickness:N,string:null,stroke:null,strokeDashArray:M,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:N,strokeOpacity:N,strokeWidth:null,style:null,surfaceScale:N,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:M,tabIndex:N,tableValues:null,target:null,targetX:N,targetY:N,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:M,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:N,underlineThickness:N,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:N,values:null,vAlphabetic:N,vMathematical:N,vectorEffect:null,vHanging:N,vIdeographic:N,version:null,vertAdvY:N,vertOriginX:N,vertOriginY:N,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:N,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:J}),G=W({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform:(e,t)=>"xlink:"+t.slice(5).toLowerCase()}),Y=W({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:K}),ee=W({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform:(e,t)=>"xml:"+t.slice(3).toLowerCase()}),et=V([Q,X,G,Y,ee],"html"),en=V([Q,Z,G,Y,ee],"svg");var er=e.i(15511);let ei=ea("end"),el=ea("start");function ea(e){return function(t){let n=t&&t.position&&t.position[e]||{};if("number"==typeof n.line&&n.line>0&&"number"==typeof n.column&&n.column>0)return{line:n.line,column:n.column,offset:"number"==typeof n.offset&&n.offset>-1?n.offset:void 0}}}function eo(e){return e&&"object"==typeof e?"position"in e||"type"in e?eu(e.position):"start"in e||"end"in e?eu(e):"line"in e||"column"in e?es(e):"":""}function es(e){return ec(e&&e.line)+":"+ec(e&&e.column)}function eu(e){return es(e&&e.start)+"-"+es(e&&e.end)}function ec(e){return e&&"number"==typeof e?e:1}class ed extends Error{constructor(e,t,n){super(),"string"==typeof t&&(n=t,t=void 0);let r="",i={},l=!1;if(t&&(i="line"in t&&"column"in t||"start"in t&&"end"in t?{place:t}:"type"in t?{ancestors:[t],place:t.position}:{...t}),"string"==typeof e?r=e:!i.cause&&e&&(l=!0,r=e.message,i.cause=e),!i.ruleId&&!i.source&&"string"==typeof n){let e=n.indexOf(":");-1===e?i.ruleId=n:(i.source=n.slice(0,e),i.ruleId=n.slice(e+1))}if(!i.place&&i.ancestors&&i.ancestors){let e=i.ancestors[i.ancestors.length-1];e&&(i.place=e.position)}let a=i.place&&"start"in i.place?i.place.start:i.place;this.ancestors=i.ancestors||void 0,this.cause=i.cause||void 0,this.column=a?a.column:void 0,this.fatal=void 0,this.file="",this.message=r,this.line=a?a.line:void 0,this.name=eo(i.place)||"1:1",this.place=i.place||void 0,this.reason=this.message,this.ruleId=i.ruleId||void 0,this.source=i.source||void 0,this.stack=l&&i.cause&&"string"==typeof i.cause.stack?i.cause.stack:"",this.actual=void 0,this.expected=void 0,this.note=void 0,this.url=void 0}}ed.prototype.file="",ed.prototype.name="",ed.prototype.reason="",ed.prototype.message="",ed.prototype.stack="",ed.prototype.column=void 0,ed.prototype.line=void 0,ed.prototype.ancestors=void 0,ed.prototype.cause=void 0,ed.prototype.fatal=void 0,ed.prototype.place=void 0,ed.prototype.ruleId=void 0,ed.prototype.source=void 0;let ef={}.hasOwnProperty,ep=new Map,eh=/[A-Z]/g,em=new Set(["table","tbody","thead","tfoot","tr"]),eg=new Set(["td","th"]),ex="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function ey(e,t,n){var r,i,l,a,o,s,u,c,d;let f,p,h,m,x,y,v,b,k,w,E;return"element"===t.type?(r=e,i=t,l=n,p=f=r.schema,"svg"===i.tagName.toLowerCase()&&"html"===f.space&&(r.schema=en),r.ancestors.push(i),h=ew(r,i.tagName,!1),m=function(e,t){let n,r,i={};for(r in t.properties)if("children"!==r&&ef.call(t.properties,r)){let l=function(e,t,n){let r=function(e,t){let n=F(t),r=t,i=C;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&"data"===n.slice(0,4)&&B.test(t)){if("-"===t.charAt(4)){let e=t.slice(5).replace(_,$);r="data"+e.charAt(0).toUpperCase()+e.slice(1)}else{let e=t.slice(4);if(!_.test(e)){let n=e.replace(O,H);"-"!==n.charAt(0)&&(n="-"+n),t="data"+n}}i=R}return new i(r,t)}(e.schema,t);if(!(null==n||"number"==typeof n&&Number.isNaN(n))){var i;let t;if(Array.isArray(n)&&(n=r.commaSeparated?(t={},(""===(i=n)[i.length-1]?[...i,""]:i).join((t.padRight?" ":"")+","+(!1===t.padLeft?"":" ")).trim()):n.join(" ").trim()),"style"===r.property){let t="object"==typeof n?n:function(e,t){try{return(0,er.default)(t,{reactCompat:!0})}catch(n){if(e.ignoreInvalidStyle)return{};let t=new ed("Cannot parse `style` attribute",{ancestors:e.ancestors,cause:n,ruleId:"style",source:"hast-util-to-jsx-runtime"});throw t.file=e.filePath||void 0,t.url=ex+"#cannot-parse-style-attribute",t}}(e,String(n));return"css"===e.stylePropertyNameCase&&(t=function(e){let t,n={};for(t in e)ef.call(e,t)&&(n[function(e){let t=e.replace(eh,eC);return"ms-"===t.slice(0,3)&&(t="-"+t),t}(t)]=e[t]);return n}(t)),["style",t]}return["react"===e.elementAttributeNameCase&&r.space?U[r.property]||r.property:r.attribute,n]}}(e,r,t.properties[r]);if(l){let[r,a]=l;e.tableCellAlignToStyle&&"align"===r&&"string"==typeof a&&eg.has(t.tagName)?n=a:i[r]=a}}return n&&((i.style||(i.style={}))["css"===e.stylePropertyNameCase?"text-align":"textAlign"]=n),i}(r,i),x=ek(r,i),em.has(i.tagName)&&(x=x.filter(function(e){return"string"!=typeof e||!("object"==typeof e?"text"===e.type&&S(e.value):S(e))})),ev(r,m,h,i),eb(m,x),r.ancestors.pop(),r.schema=f,r.create(i,h,m,l)):"mdxFlowExpression"===t.type||"mdxTextExpression"===t.type?function(e,t){if(t.data&&t.data.estree&&e.evaluater){let n=t.data.estree.body[0];return g(n.type),e.evaluater.evaluateExpression(n.expression)}eS(e,t.position)}(e,t):"mdxJsxFlowElement"===t.type||"mdxJsxTextElement"===t.type?(a=e,o=t,s=n,v=y=a.schema,"svg"===o.name&&"html"===y.space&&(a.schema=en),a.ancestors.push(o),b=null===o.name?a.Fragment:ew(a,o.name,!0),k=function(e,t){let n={};for(let r of t.attributes)if("mdxJsxExpressionAttribute"===r.type)if(r.data&&r.data.estree&&e.evaluater){let t=r.data.estree.body[0];g(t.type);let i=t.expression;g(i.type);let l=i.properties[0];g(l.type),Object.assign(n,e.evaluater.evaluateExpression(l.argument))}else eS(e,t.position);else{let i,l=r.name;if(r.value&&"object"==typeof r.value)if(r.value.data&&r.value.data.estree&&e.evaluater){let t=r.value.data.estree.body[0];g(t.type),i=e.evaluater.evaluateExpression(t.expression)}else eS(e,t.position);else i=null===r.value||r.value;n[l]=i}return n}(a,o),w=ek(a,o),ev(a,k,b,o),eb(k,w),a.ancestors.pop(),a.schema=y,a.create(o,b,k,s)):"mdxjsEsm"===t.type?function(e,t){if(t.data&&t.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(t.data.estree);eS(e,t.position)}(e,t):"root"===t.type?(u=e,c=t,d=n,eb(E={},ek(u,c)),u.create(c,u.Fragment,E,d)):"text"===t.type?t.value:void 0}function ev(e,t,n,r){"string"!=typeof n&&n!==e.Fragment&&e.passNode&&(t.node=r)}function eb(e,t){if(t.length>0){let n=t.length>1?t:t[0];n&&(e.children=n)}}function ek(e,t){let n=[],r=-1,i=e.passKeys?new Map:ep;for(;++r<t.children.length;){let l,a=t.children[r];if(e.passKeys){let e="element"===a.type?a.tagName:"mdxJsxFlowElement"===a.type||"mdxJsxTextElement"===a.type?a.name:void 0;if(e){let t=i.get(e)||0;l=e+"-"+t,i.set(e,t+1)}}let o=ey(e,a,l);void 0!==o&&n.push(o)}return n}function ew(e,t,n){let r;if(n)if(t.includes(".")){let e,n=t.split("."),i=-1;for(;++i<n.length;){let t=k(n[i])?{type:"Identifier",name:n[i]}:{type:"Literal",value:n[i]};e=e?{type:"MemberExpression",object:e,property:t,computed:!!(i&&"Literal"===t.type),optional:!1}:t}g(),r=e}else r=k(t)&&!/^[a-z]/.test(t)?{type:"Identifier",name:t}:{type:"Literal",value:t};else r={type:"Literal",value:t};if("Literal"===r.type){let t=r.value;return ef.call(e.components,t)?e.components[t]:t}if(e.evaluater)return e.evaluater.evaluateExpression(r);eS(e)}function eS(e,t){let n=new ed("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=ex+"#cannot-handle-mdx-estrees-without-createevaluater",n}function eC(e){return"-"+e.toLowerCase()}let eE={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"]},ej={};function eA(e,t){let n=t||ej;return eT(e,"boolean"!=typeof n.includeImageAlt||n.includeImageAlt,"boolean"!=typeof n.includeHtml||n.includeHtml)}function eT(e,t,n){var r;if((r=e)&&"object"==typeof r){if("value"in e)return"html"!==e.type||n?e.value:"";if(t&&"alt"in e&&e.alt)return e.alt;if("children"in e)return eN(e.children,t,n)}return Array.isArray(e)?eN(e,t,n):""}function eN(e,t,n){let r=[],i=-1;for(;++i<e.length;)r[i]=eT(e[i],t,n);return r.join("")}function eL(e,t,n,r){let i,l=e.length,a=0;if(t=t<0?-t>l?0:l+t:t>l?l:t,n=n>0?n:0,r.length<1e4)(i=Array.from(r)).unshift(t,n),e.splice(...i);else for(n&&e.splice(t,n);a<r.length;)(i=r.slice(a,a+1e4)).unshift(t,0),e.splice(...i),a+=1e4,t+=1e4}function eD(e,t){return e.length>0?(eL(e,e.length,0,t),e):t}let eM={}.hasOwnProperty;function ez(e){let t={},n=-1;for(;++n<e.length;)!function(e,t){let n;for(n in t){let r,i=(eM.call(e,n)?e[n]:void 0)||(e[n]={}),l=t[n];if(l)for(r in l){eM.call(i,r)||(i[r]=[]);let e=l[r];!function(e,t){let n=-1,r=[];for(;++n<t.length;)("after"===t[n].add?e:r).push(t[n]);eL(e,0,0,r)}(i[r],Array.isArray(e)?e:e?[e]:[])}}}(t,e[n]);return t}let eI=eW(/[A-Za-z]/),eP=eW(/[\dA-Za-z]/),eR=eW(/[#-'*+\--9=?A-Z^-~]/);function eF(e){return null!==e&&(e<32||127===e)}let eO=eW(/\d/),e_=eW(/[\dA-Fa-f]/),eB=eW(/[!-/:-@[-`{-~]/);function eH(e){return null!==e&&e<-2}function e$(e){return null!==e&&(e<0||32===e)}function eU(e){return -2===e||-1===e||32===e}let eq=eW(/\p{P}|\p{S}/u),eV=eW(/\s/);function eW(e){return function(t){return null!==t&&t>-1&&e.test(String.fromCharCode(t))}}function eQ(e,t,n,r){let i=r?r-1:1/0,l=0;return function(r){return eU(r)?(e.enter(n),function r(a){return eU(a)&&l++<i?(e.consume(a),r):(e.exit(n),t(a))}(r)):t(r)}}let eJ={tokenize:function(e){let t,n=e.attempt(this.parser.constructs.contentInitial,function(t){return null===t?void e.consume(t):(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),eQ(e,n,"linePrefix"))},function(n){return e.enter("paragraph"),function n(r){let i=e.enter("chunkText",{contentType:"text",previous:t});return t&&(t.next=i),t=i,function t(r){if(null===r){e.exit("chunkText"),e.exit("paragraph"),e.consume(r);return}return eH(r)?(e.consume(r),e.exit("chunkText"),n):(e.consume(r),t)}(r)}(n)});return n}},eK={tokenize:function(e){let t,n,r,i=this,l=[],a=0;return o;function o(t){if(a<l.length){let n=l[a];return i.containerState=n[1],e.attempt(n[0].continuation,s,u)(t)}return u(t)}function s(e){if(a++,i.containerState._closeFlow){let n;i.containerState._closeFlow=void 0,t&&x();let r=i.events.length,l=r;for(;l--;)if("exit"===i.events[l][0]&&"chunkFlow"===i.events[l][1].type){n=i.events[l][1].end;break}g(a);let o=r;for(;o<i.events.length;)i.events[o][1].end={...n},o++;return eL(i.events,l+1,0,i.events.slice(r)),i.events.length=o,u(e)}return o(e)}function u(n){if(a===l.length){if(!t)return f(n);if(t.currentConstruct&&t.currentConstruct.concrete)return h(n);i.interrupt=!!(t.currentConstruct&&!t._gfmTableDynamicInterruptHack)}return i.containerState={},e.check(eX,c,d)(n)}function c(e){return t&&x(),g(a),f(e)}function d(e){return i.parser.lazy[i.now().line]=a!==l.length,r=i.now().offset,h(e)}function f(t){return i.containerState={},e.attempt(eX,p,h)(t)}function p(e){return a++,l.push([i.currentConstruct,i.containerState]),f(e)}function h(r){if(null===r){t&&x(),g(0),e.consume(r);return}return t=t||i.parser.flow(i.now()),e.enter("chunkFlow",{_tokenizer:t,contentType:"flow",previous:n}),function t(n){if(null===n){m(e.exit("chunkFlow"),!0),g(0),e.consume(n);return}return eH(n)?(e.consume(n),m(e.exit("chunkFlow")),a=0,i.interrupt=void 0,o):(e.consume(n),t)}(r)}function m(e,l){let o=i.sliceStream(e);if(l&&o.push(null),e.previous=n,n&&(n.next=e),n=e,t.defineSkip(e.start),t.write(o),i.parser.lazy[e.start.line]){let e,n,l=t.events.length;for(;l--;)if(t.events[l][1].start.offset<r&&(!t.events[l][1].end||t.events[l][1].end.offset>r))return;let o=i.events.length,s=o;for(;s--;)if("exit"===i.events[s][0]&&"chunkFlow"===i.events[s][1].type){if(e){n=i.events[s][1].end;break}e=!0}for(g(a),l=o;l<i.events.length;)i.events[l][1].end={...n},l++;eL(i.events,s+1,0,i.events.slice(o)),i.events.length=l}}function g(t){let n=l.length;for(;n-- >t;){let t=l[n];i.containerState=t[1],t[0].exit.call(i,e)}l.length=t}function x(){t.write([null]),n=void 0,t=void 0,i.containerState._closeFlow=void 0}}},eX={tokenize:function(e,t,n){return eQ(e,e.attempt(this.parser.constructs.document,t,n),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}},eZ={partial:!0,tokenize:function(e,t,n){return function(t){return eU(t)?eQ(e,r,"linePrefix")(t):r(t)};function r(e){return null===e||eH(e)?t(e):n(e)}}};class eG{constructor(e){this.left=e?[...e]:[],this.right=[]}get(e){if(e<0||e>=this.left.length+this.right.length)throw RangeError("Cannot access index `"+e+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return e<this.left.length?this.left[e]:this.right[this.right.length-e+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(e,t){let n=null==t?1/0:t;return n<this.left.length?this.left.slice(e,n):e>this.left.length?this.right.slice(this.right.length-n+this.left.length,this.right.length-e+this.left.length).reverse():this.left.slice(e).concat(this.right.slice(this.right.length-n+this.left.length).reverse())}splice(e,t,n){this.setCursor(Math.trunc(e));let r=this.right.splice(this.right.length-(t||0),1/0);return n&&eY(this.left,n),r.reverse()}pop(){return this.setCursor(1/0),this.left.pop()}push(e){this.setCursor(1/0),this.left.push(e)}pushMany(e){this.setCursor(1/0),eY(this.left,e)}unshift(e){this.setCursor(0),this.right.push(e)}unshiftMany(e){this.setCursor(0),eY(this.right,e.reverse())}setCursor(e){if(e!==this.left.length&&(!(e>this.left.length)||0!==this.right.length)&&(!(e<0)||0!==this.left.length))if(e<this.left.length){let t=this.left.splice(e,1/0);eY(this.right,t.reverse())}else{let t=this.right.splice(this.left.length+this.right.length-e,1/0);eY(this.left,t.reverse())}}}function eY(e,t){let n=0;if(t.length<1e4)e.push(...t);else for(;n<t.length;)e.push(...t.slice(n,n+1e4)),n+=1e4}function e0(e){let t,n,r,i,l,a,o,s={},u=-1,c=new eG(e);for(;++u<c.length;){for(;u in s;)u=s[u];if(t=c.get(u),u&&"chunkFlow"===t[1].type&&"listItemPrefix"===c.get(u-1)[1].type&&((r=0)<(a=t[1]._tokenizer.events).length&&"lineEndingBlank"===a[r][1].type&&(r+=2),r<a.length&&"content"===a[r][1].type))for(;++r<a.length&&"content"!==a[r][1].type;)"chunkText"===a[r][1].type&&(a[r][1]._isInFirstContentOfListItem=!0,r++);if("enter"===t[0])t[1].contentType&&(Object.assign(s,function(e,t){let n,r,i=e.get(t)[1],l=e.get(t)[2],a=t-1,o=[],s=i._tokenizer;!s&&(s=l.parser[i.contentType](i.start),i._contentTypeTextTrailing&&(s._contentTypeTextTrailing=!0));let u=s.events,c=[],d={},f=-1,p=i,h=0,m=0,g=[0];for(;p;){for(;e.get(++a)[1]!==p;);o.push(a),!p._tokenizer&&(n=l.sliceStream(p),p.next||n.push(null),r&&s.defineSkip(p.start),p._isInFirstContentOfListItem&&(s._gfmTasklistFirstContentOfListItem=!0),s.write(n),p._isInFirstContentOfListItem&&(s._gfmTasklistFirstContentOfListItem=void 0)),r=p,p=p.next}for(p=i;++f<u.length;)"exit"===u[f][0]&&"enter"===u[f-1][0]&&u[f][1].type===u[f-1][1].type&&u[f][1].start.line!==u[f][1].end.line&&(m=f+1,g.push(m),p._tokenizer=void 0,p.previous=void 0,p=p.next);for(s.events=[],p?(p._tokenizer=void 0,p.previous=void 0):g.pop(),f=g.length;f--;){let t=u.slice(g[f],g[f+1]),n=o.pop();c.push([n,n+t.length-1]),e.splice(n,2,t)}for(c.reverse(),f=-1;++f<c.length;)d[h+c[f][0]]=h+c[f][1],h+=c[f][1]-c[f][0]-1;return d}(c,u)),u=s[u],o=!0);else if(t[1]._container){for(r=u,n=void 0;r--;)if("lineEnding"===(i=c.get(r))[1].type||"lineEndingBlank"===i[1].type)"enter"===i[0]&&(n&&(c.get(n)[1].type="lineEndingBlank"),i[1].type="lineEnding",n=r);else if("linePrefix"===i[1].type||"listItemIndent"===i[1].type);else break;n&&(t[1].end={...c.get(n)[1].start},(l=c.slice(n,u)).unshift(t),c.splice(n,u-n+1,l))}}return eL(e,0,1/0,c.slice(0)),!o}let e1={resolve:function(e){return e0(e),e},tokenize:function(e,t){let n;return function(t){return e.enter("content"),n=e.enter("chunkContent",{contentType:"content"}),r(t)};function r(t){return null===t?i(t):eH(t)?e.check(e2,l,i)(t):(e.consume(t),r)}function i(n){return e.exit("chunkContent"),e.exit("content"),t(n)}function l(t){return e.consume(t),e.exit("chunkContent"),n.next=e.enter("chunkContent",{contentType:"content",previous:n}),n=n.next,r}}},e2={partial:!0,tokenize:function(e,t,n){let r=this;return function(t){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),eQ(e,i,"linePrefix")};function i(i){if(null===i||eH(i))return n(i);let l=r.events[r.events.length-1];return!r.parser.constructs.disable.null.includes("codeIndented")&&l&&"linePrefix"===l[1].type&&l[2].sliceSerialize(l[1],!0).length>=4?t(i):e.interrupt(r.parser.constructs.flow,n,t)(i)}}},e4={tokenize:function(e){let t=this,n=e.attempt(eZ,function(r){return null===r?void e.consume(r):(e.enter("lineEndingBlank"),e.consume(r),e.exit("lineEndingBlank"),t.currentConstruct=void 0,n)},e.attempt(this.parser.constructs.flowInitial,r,eQ(e,e.attempt(this.parser.constructs.flow,r,e.attempt(e1,r)),"linePrefix")));return n;function r(r){return null===r?void e.consume(r):(e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),t.currentConstruct=void 0,n)}}},e3={resolveAll:e8()},e6=e9("string"),e5=e9("text");function e9(e){return{resolveAll:e8("text"===e?e7:void 0),tokenize:function(t){let n=this,r=this.parser.constructs[e],i=t.attempt(r,l,a);return l;function l(e){return s(e)?i(e):a(e)}function a(e){return null===e?void t.consume(e):(t.enter("data"),t.consume(e),o)}function o(e){return s(e)?(t.exit("data"),i(e)):(t.consume(e),o)}function s(e){if(null===e)return!0;let t=r[e],i=-1;if(t)for(;++i<t.length;){let e=t[i];if(!e.previous||e.previous.call(n,n.previous))return!0}return!1}}}}function e8(e){return function(t,n){let r,i=-1;for(;++i<=t.length;)void 0===r?t[i]&&"data"===t[i][1].type&&(r=i,i++):t[i]&&"data"===t[i][1].type||(i!==r+2&&(t[r][1].end=t[i-1][1].end,t.splice(r+2,i-r-2),i=r+2),r=void 0);return e?e(t,n):t}}function e7(e,t){let n=0;for(;++n<=e.length;)if((n===e.length||"lineEnding"===e[n][1].type)&&"data"===e[n-1][1].type){let r,i=e[n-1][1],l=t.sliceStream(i),a=l.length,o=-1,s=0;for(;a--;){let e=l[a];if("string"==typeof e){for(o=e.length;32===e.charCodeAt(o-1);)s++,o--;if(o)break;o=-1}else if(-2===e)r=!0,s++;else if(-1===e);else{a++;break}}if(t._contentTypeTextTrailing&&n===e.length&&(s=0),s){let l={type:n===e.length||r||s<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:a?o:i.start._bufferIndex+o,_index:i.start._index+a,line:i.end.line,column:i.end.column-s,offset:i.end.offset-s},end:{...i.end}};i.end={...l.start},i.start.offset===i.end.offset?Object.assign(i,l):(e.splice(n,0,["enter",l,t],["exit",l,t]),n+=2)}n++}return e}function te(e){return null===e||e$(e)||eV(e)?1:eq(e)?2:void 0}function tt(e,t,n){let r=[],i=-1;for(;++i<e.length;){let l=e[i].resolveAll;l&&!r.includes(l)&&(t=l(t,n),r.push(l))}return t}let tn={name:"attention",resolveAll:function(e,t){let n,r,i,l,a,o,s,u,c=-1;for(;++c<e.length;)if("enter"===e[c][0]&&"attentionSequence"===e[c][1].type&&e[c][1]._close){for(n=c;n--;)if("exit"===e[n][0]&&"attentionSequence"===e[n][1].type&&e[n][1]._open&&t.sliceSerialize(e[n][1]).charCodeAt(0)===t.sliceSerialize(e[c][1]).charCodeAt(0)){if((e[n][1]._close||e[c][1]._open)&&(e[c][1].end.offset-e[c][1].start.offset)%3&&!((e[n][1].end.offset-e[n][1].start.offset+e[c][1].end.offset-e[c][1].start.offset)%3))continue;o=e[n][1].end.offset-e[n][1].start.offset>1&&e[c][1].end.offset-e[c][1].start.offset>1?2:1;let d={...e[n][1].end},f={...e[c][1].start};tr(d,-o),tr(f,o),l={type:o>1?"strongSequence":"emphasisSequence",start:d,end:{...e[n][1].end}},a={type:o>1?"strongSequence":"emphasisSequence",start:{...e[c][1].start},end:f},i={type:o>1?"strongText":"emphasisText",start:{...e[n][1].end},end:{...e[c][1].start}},r={type:o>1?"strong":"emphasis",start:{...l.start},end:{...a.end}},e[n][1].end={...l.start},e[c][1].start={...a.end},s=[],e[n][1].end.offset-e[n][1].start.offset&&(s=eD(s,[["enter",e[n][1],t],["exit",e[n][1],t]])),s=eD(s,[["enter",r,t],["enter",l,t],["exit",l,t],["enter",i,t]]),s=eD(s,tt(t.parser.constructs.insideSpan.null,e.slice(n+1,c),t)),s=eD(s,[["exit",i,t],["enter",a,t],["exit",a,t],["exit",r,t]]),e[c][1].end.offset-e[c][1].start.offset?(u=2,s=eD(s,[["enter",e[c][1],t],["exit",e[c][1],t]])):u=0,eL(e,n-1,c-n+3,s),c=n+s.length-u-2;break}}for(c=-1;++c<e.length;)"attentionSequence"===e[c][1].type&&(e[c][1].type="data");return e},tokenize:function(e,t){let n,r=this.parser.constructs.attentionMarkers.null,i=this.previous,l=te(i);return function(a){return n=a,e.enter("attentionSequence"),function a(o){if(o===n)return e.consume(o),a;let s=e.exit("attentionSequence"),u=te(o),c=!u||2===u&&l||r.includes(o),d=!l||2===l&&u||r.includes(i);return s._open=!!(42===n?c:c&&(l||!d)),s._close=!!(42===n?d:d&&(u||!c)),t(o)}(a)}}};function tr(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}let ti={continuation:{tokenize:function(e,t,n){let r=this;return function(t){return eU(t)?eQ(e,i,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t):i(t)};function i(r){return e.attempt(ti,t,n)(r)}}},exit:function(e){e.exit("blockQuote")},name:"blockQuote",tokenize:function(e,t,n){let r=this;return function(t){if(62===t){let n=r.containerState;return n.open||(e.enter("blockQuote",{_container:!0}),n.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(t),e.exit("blockQuoteMarker"),i}return n(t)};function i(n){return eU(n)?(e.enter("blockQuotePrefixWhitespace"),e.consume(n),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),t):(e.exit("blockQuotePrefix"),t(n))}}},tl={name:"characterEscape",tokenize:function(e,t,n){return function(t){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(t),e.exit("escapeMarker"),r};function r(r){return eB(r)?(e.enter("characterEscapeValue"),e.consume(r),e.exit("characterEscapeValue"),e.exit("characterEscape"),t):n(r)}}},ta=document.createElement("i");function to(e){let t="&"+e+";";ta.innerHTML=t;let n=ta.textContent;return(59!==n.charCodeAt(n.length-1)||"semi"===e)&&n!==t&&n}let ts={name:"characterReference",tokenize:function(e,t,n){let r,i,l=this,a=0;return function(t){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(t),e.exit("characterReferenceMarker"),o};function o(t){return 35===t?(e.enter("characterReferenceMarkerNumeric"),e.consume(t),e.exit("characterReferenceMarkerNumeric"),s):(e.enter("characterReferenceValue"),r=31,i=eP,u(t))}function s(t){return 88===t||120===t?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(t),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),r=6,i=e_,u):(e.enter("characterReferenceValue"),r=7,i=eO,u(t))}function u(o){if(59===o&&a){let r=e.exit("characterReferenceValue");return i!==eP||to(l.sliceSerialize(r))?(e.enter("characterReferenceMarker"),e.consume(o),e.exit("characterReferenceMarker"),e.exit("characterReference"),t):n(o)}return i(o)&&a++<r?(e.consume(o),u):n(o)}}},tu={partial:!0,tokenize:function(e,t,n){let r=this;return function(t){return null===t?n(t):(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),i)};function i(e){return r.parser.lazy[r.now().line]?n(e):t(e)}}},tc={concrete:!0,name:"codeFenced",tokenize:function(e,t,n){let r,i=this,l={partial:!0,tokenize:function(e,t,n){let l=0;return function(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),a};function a(t){return e.enter("codeFencedFence"),eU(t)?eQ(e,s,"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t):s(t)}function s(t){return t===r?(e.enter("codeFencedFenceSequence"),function t(i){return i===r?(l++,e.consume(i),t):l>=o?(e.exit("codeFencedFenceSequence"),eU(i)?eQ(e,u,"whitespace")(i):u(i)):n(i)}(t)):n(t)}function u(r){return null===r||eH(r)?(e.exit("codeFencedFence"),t(r)):n(r)}}},a=0,o=0;return function(t){var l;let u;return l=t,a=(u=i.events[i.events.length-1])&&"linePrefix"===u[1].type?u[2].sliceSerialize(u[1],!0).length:0,r=l,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),function t(i){return i===r?(o++,e.consume(i),t):o<3?n(i):(e.exit("codeFencedFenceSequence"),eU(i)?eQ(e,s,"whitespace")(i):s(i))}(l)};function s(l){return null===l||eH(l)?(e.exit("codeFencedFence"),i.interrupt?t(l):e.check(tu,c,h)(l)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),function t(i){return null===i||eH(i)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),s(i)):eU(i)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),eQ(e,u,"whitespace")(i)):96===i&&i===r?n(i):(e.consume(i),t)}(l))}function u(t){return null===t||eH(t)?s(t):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),function t(i){return null===i||eH(i)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),s(i)):96===i&&i===r?n(i):(e.consume(i),t)}(t))}function c(t){return e.attempt(l,h,d)(t)}function d(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),f}function f(t){return a>0&&eU(t)?eQ(e,p,"linePrefix",a+1)(t):p(t)}function p(t){return null===t||eH(t)?e.check(tu,c,h)(t):(e.enter("codeFlowValue"),function t(n){return null===n||eH(n)?(e.exit("codeFlowValue"),p(n)):(e.consume(n),t)}(t))}function h(n){return e.exit("codeFenced"),t(n)}}},td={name:"codeIndented",tokenize:function(e,t,n){let r=this;return function(t){return e.enter("codeIndented"),eQ(e,i,"linePrefix",5)(t)};function i(t){let i=r.events[r.events.length-1];return i&&"linePrefix"===i[1].type&&i[2].sliceSerialize(i[1],!0).length>=4?function t(n){return null===n?l(n):eH(n)?e.attempt(tf,t,l)(n):(e.enter("codeFlowValue"),function n(r){return null===r||eH(r)?(e.exit("codeFlowValue"),t(r)):(e.consume(r),n)}(n))}(t):n(t)}function l(n){return e.exit("codeIndented"),t(n)}}},tf={partial:!0,tokenize:function(e,t,n){let r=this;return i;function i(t){return r.parser.lazy[r.now().line]?n(t):eH(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),i):eQ(e,l,"linePrefix",5)(t)}function l(e){let l=r.events[r.events.length-1];return l&&"linePrefix"===l[1].type&&l[2].sliceSerialize(l[1],!0).length>=4?t(e):eH(e)?i(e):n(e)}}};function tp(e,t,n,r,i,l,a,o,s){let u=s||1/0,c=0;return function(t){return 60===t?(e.enter(r),e.enter(i),e.enter(l),e.consume(t),e.exit(l),d):null===t||32===t||41===t||eF(t)?n(t):(e.enter(r),e.enter(a),e.enter(o),e.enter("chunkString",{contentType:"string"}),h(t))};function d(n){return 62===n?(e.enter(l),e.consume(n),e.exit(l),e.exit(i),e.exit(r),t):(e.enter(o),e.enter("chunkString",{contentType:"string"}),f(n))}function f(t){return 62===t?(e.exit("chunkString"),e.exit(o),d(t)):null===t||60===t||eH(t)?n(t):(e.consume(t),92===t?p:f)}function p(t){return 60===t||62===t||92===t?(e.consume(t),f):f(t)}function h(i){return!c&&(null===i||41===i||e$(i))?(e.exit("chunkString"),e.exit(o),e.exit(a),e.exit(r),t(i)):c<u&&40===i?(e.consume(i),c++,h):41===i?(e.consume(i),c--,h):null===i||32===i||40===i||eF(i)?n(i):(e.consume(i),92===i?m:h)}function m(t){return 40===t||41===t||92===t?(e.consume(t),h):h(t)}}function th(e,t,n,r,i,l){let a,o=this,s=0;return function(t){return e.enter(r),e.enter(i),e.consume(t),e.exit(i),e.enter(l),u};function u(d){return s>999||null===d||91===d||93===d&&!a||94===d&&!s&&"_hiddenFootnoteSupport"in o.parser.constructs?n(d):93===d?(e.exit(l),e.enter(i),e.consume(d),e.exit(i),e.exit(r),t):eH(d)?(e.enter("lineEnding"),e.consume(d),e.exit("lineEnding"),u):(e.enter("chunkString",{contentType:"string"}),c(d))}function c(t){return null===t||91===t||93===t||eH(t)||s++>999?(e.exit("chunkString"),u(t)):(e.consume(t),a||(a=!eU(t)),92===t?d:c)}function d(t){return 91===t||92===t||93===t?(e.consume(t),s++,c):c(t)}}function tm(e,t,n,r,i,l){let a;return function(t){return 34===t||39===t||40===t?(e.enter(r),e.enter(i),e.consume(t),e.exit(i),a=40===t?41:t,o):n(t)};function o(n){return n===a?(e.enter(i),e.consume(n),e.exit(i),e.exit(r),t):(e.enter(l),s(n))}function s(t){return t===a?(e.exit(l),o(a)):null===t?n(t):eH(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),eQ(e,s,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),u(t))}function u(t){return t===a||null===t||eH(t)?(e.exit("chunkString"),s(t)):(e.consume(t),92===t?c:u)}function c(t){return t===a||92===t?(e.consume(t),u):u(t)}}function tg(e,t){let n;return function r(i){return eH(i)?(e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),n=!0,r):eU(i)?eQ(e,r,n?"linePrefix":"lineSuffix")(i):t(i)}}function tx(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}let ty={partial:!0,tokenize:function(e,t,n){return function(t){return e$(t)?tg(e,r)(t):n(t)};function r(t){return tm(e,i,n,"definitionTitle","definitionTitleMarker","definitionTitleString")(t)}function i(t){return eU(t)?eQ(e,l,"whitespace")(t):l(t)}function l(e){return null===e||eH(e)?t(e):n(e)}}},tv=["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"],tb=["pre","script","style","textarea"],tk={partial:!0,tokenize:function(e,t,n){return function(r){return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),e.attempt(eZ,t,n)}}},tw={partial:!0,tokenize:function(e,t,n){let r=this;return function(t){return eH(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),i):n(t)};function i(e){return r.parser.lazy[r.now().line]?n(e):t(e)}}},tS={name:"labelEnd",resolveAll:function(e){let t=-1,n=[];for(;++t<e.length;){let r=e[t][1];if(n.push(e[t]),"labelImage"===r.type||"labelLink"===r.type||"labelEnd"===r.type){let e="labelImage"===r.type?4:2;r.type="data",t+=e}}return e.length!==n.length&&eL(e,0,e.length,n),e},resolveTo:function(e,t){let n,r,i,l,a=e.length,o=0;for(;a--;)if(n=e[a][1],r){if("link"===n.type||"labelLink"===n.type&&n._inactive)break;"enter"===e[a][0]&&"labelLink"===n.type&&(n._inactive=!0)}else if(i){if("enter"===e[a][0]&&("labelImage"===n.type||"labelLink"===n.type)&&!n._balanced&&(r=a,"labelLink"!==n.type)){o=2;break}}else"labelEnd"===n.type&&(i=a);let s={type:"labelLink"===e[r][1].type?"link":"image",start:{...e[r][1].start},end:{...e[e.length-1][1].end}},u={type:"label",start:{...e[r][1].start},end:{...e[i][1].end}},c={type:"labelText",start:{...e[r+o+2][1].end},end:{...e[i-2][1].start}};return l=eD(l=[["enter",s,t],["enter",u,t]],e.slice(r+1,r+o+3)),l=eD(l,[["enter",c,t]]),l=eD(l,tt(t.parser.constructs.insideSpan.null,e.slice(r+o+4,i-3),t)),l=eD(l,[["exit",c,t],e[i-2],e[i-1],["exit",u,t]]),l=eD(l,e.slice(i+1)),l=eD(l,[["exit",s,t]]),eL(e,r,e.length,l),e},tokenize:function(e,t,n){let r,i,l=this,a=l.events.length;for(;a--;)if(("labelImage"===l.events[a][1].type||"labelLink"===l.events[a][1].type)&&!l.events[a][1]._balanced){r=l.events[a][1];break}return function(t){return r?r._inactive?c(t):(i=l.parser.defined.includes(tx(l.sliceSerialize({start:r.end,end:l.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(t),e.exit("labelMarker"),e.exit("labelEnd"),o):n(t)};function o(t){return 40===t?e.attempt(tC,u,i?u:c)(t):91===t?e.attempt(tE,u,i?s:c)(t):i?u(t):c(t)}function s(t){return e.attempt(tj,u,c)(t)}function u(e){return t(e)}function c(e){return r._balanced=!0,n(e)}}},tC={tokenize:function(e,t,n){return function(t){return e.enter("resource"),e.enter("resourceMarker"),e.consume(t),e.exit("resourceMarker"),r};function r(t){return e$(t)?tg(e,i)(t):i(t)}function i(t){return 41===t?u(t):tp(e,l,a,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(t)}function l(t){return e$(t)?tg(e,o)(t):u(t)}function a(e){return n(e)}function o(t){return 34===t||39===t||40===t?tm(e,s,n,"resourceTitle","resourceTitleMarker","resourceTitleString")(t):u(t)}function s(t){return e$(t)?tg(e,u)(t):u(t)}function u(r){return 41===r?(e.enter("resourceMarker"),e.consume(r),e.exit("resourceMarker"),e.exit("resource"),t):n(r)}}},tE={tokenize:function(e,t,n){let r=this;return function(t){return th.call(r,e,i,l,"reference","referenceMarker","referenceString")(t)};function i(e){return r.parser.defined.includes(tx(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)))?t(e):n(e)}function l(e){return n(e)}}},tj={tokenize:function(e,t,n){return function(t){return e.enter("reference"),e.enter("referenceMarker"),e.consume(t),e.exit("referenceMarker"),r};function r(r){return 93===r?(e.enter("referenceMarker"),e.consume(r),e.exit("referenceMarker"),e.exit("reference"),t):n(r)}}},tA={name:"labelStartImage",resolveAll:tS.resolveAll,tokenize:function(e,t,n){let r=this;return function(t){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(t),e.exit("labelImageMarker"),i};function i(t){return 91===t?(e.enter("labelMarker"),e.consume(t),e.exit("labelMarker"),e.exit("labelImage"),l):n(t)}function l(e){return 94===e&&"_hiddenFootnoteSupport"in r.parser.constructs?n(e):t(e)}}},tT={name:"labelStartLink",resolveAll:tS.resolveAll,tokenize:function(e,t,n){let r=this;return function(t){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(t),e.exit("labelMarker"),e.exit("labelLink"),i};function i(e){return 94===e&&"_hiddenFootnoteSupport"in r.parser.constructs?n(e):t(e)}}},tN={name:"lineEnding",tokenize:function(e,t){return function(n){return e.enter("lineEnding"),e.consume(n),e.exit("lineEnding"),eQ(e,t,"linePrefix")}}},tL={name:"thematicBreak",tokenize:function(e,t,n){let r,i=0;return function(l){var a;return e.enter("thematicBreak"),r=a=l,function l(a){return a===r?(e.enter("thematicBreakSequence"),function t(n){return n===r?(e.consume(n),i++,t):(e.exit("thematicBreakSequence"),eU(n)?eQ(e,l,"whitespace")(n):l(n))}(a)):i>=3&&(null===a||eH(a))?(e.exit("thematicBreak"),t(a)):n(a)}(a)}}},tD={continuation:{tokenize:function(e,t,n){let r=this;return r.containerState._closeFlow=void 0,e.check(eZ,function(n){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,eQ(e,t,"listItemIndent",r.containerState.size+1)(n)},function(n){return r.containerState.furtherBlankLines||!eU(n)?(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,i(n)):(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,e.attempt(tz,t,i)(n))});function i(i){return r.containerState._closeFlow=!0,r.interrupt=void 0,eQ(e,e.attempt(tD,t,n),"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(i)}}},exit:function(e){e.exit(this.containerState.type)},name:"list",tokenize:function(e,t,n){let r=this,i=r.events[r.events.length-1],l=i&&"linePrefix"===i[1].type?i[2].sliceSerialize(i[1],!0).length:0,a=0;return function(t){let i=r.containerState.type||(42===t||43===t||45===t?"listUnordered":"listOrdered");if("listUnordered"===i?!r.containerState.marker||t===r.containerState.marker:eO(t)){if(r.containerState.type||(r.containerState.type=i,e.enter(i,{_container:!0})),"listUnordered"===i)return e.enter("listItemPrefix"),42===t||45===t?e.check(tL,n,o)(t):o(t);if(!r.interrupt||49===t)return e.enter("listItemPrefix"),e.enter("listItemValue"),function t(i){return eO(i)&&++a<10?(e.consume(i),t):(!r.interrupt||a<2)&&(r.containerState.marker?i===r.containerState.marker:41===i||46===i)?(e.exit("listItemValue"),o(i)):n(i)}(t)}return n(t)};function o(t){return e.enter("listItemMarker"),e.consume(t),e.exit("listItemMarker"),r.containerState.marker=r.containerState.marker||t,e.check(eZ,r.interrupt?n:s,e.attempt(tM,c,u))}function s(e){return r.containerState.initialBlankLine=!0,l++,c(e)}function u(t){return eU(t)?(e.enter("listItemPrefixWhitespace"),e.consume(t),e.exit("listItemPrefixWhitespace"),c):n(t)}function c(n){return r.containerState.size=l+r.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(n)}}},tM={partial:!0,tokenize:function(e,t,n){let r=this;return eQ(e,function(e){let i=r.events[r.events.length-1];return!eU(e)&&i&&"listItemPrefixWhitespace"===i[1].type?t(e):n(e)},"listItemPrefixWhitespace",r.parser.constructs.disable.null.includes("codeIndented")?void 0:5)}},tz={partial:!0,tokenize:function(e,t,n){let r=this;return eQ(e,function(e){let i=r.events[r.events.length-1];return i&&"listItemIndent"===i[1].type&&i[2].sliceSerialize(i[1],!0).length===r.containerState.size?t(e):n(e)},"listItemIndent",r.containerState.size+1)}},tI={name:"setextUnderline",resolveTo:function(e,t){let n,r,i,l=e.length;for(;l--;)if("enter"===e[l][0]){if("content"===e[l][1].type){n=l;break}"paragraph"===e[l][1].type&&(r=l)}else"content"===e[l][1].type&&e.splice(l,1),i||"definition"!==e[l][1].type||(i=l);let a={type:"setextHeading",start:{...e[n][1].start},end:{...e[e.length-1][1].end}};return e[r][1].type="setextHeadingText",i?(e.splice(r,0,["enter",a,t]),e.splice(i+1,0,["exit",e[n][1],t]),e[n][1].end={...e[i][1].end}):e[n][1]=a,e.push(["exit",a,t]),e},tokenize:function(e,t,n){let r,i=this;return function(t){var a;let o,s=i.events.length;for(;s--;)if("lineEnding"!==i.events[s][1].type&&"linePrefix"!==i.events[s][1].type&&"content"!==i.events[s][1].type){o="paragraph"===i.events[s][1].type;break}return!i.parser.lazy[i.now().line]&&(i.interrupt||o)?(e.enter("setextHeadingLine"),r=t,a=t,e.enter("setextHeadingLineSequence"),function t(n){return n===r?(e.consume(n),t):(e.exit("setextHeadingLineSequence"),eU(n)?eQ(e,l,"lineSuffix")(n):l(n))}(a)):n(t)};function l(r){return null===r||eH(r)?(e.exit("setextHeadingLine"),t(r)):n(r)}}};e.s(["attentionMarkers",0,{null:[42,95]},"contentInitial",0,{91:{name:"definition",tokenize:function(e,t,n){let r,i=this;return function(t){var r;return e.enter("definition"),r=t,th.call(i,e,l,n,"definitionLabel","definitionLabelMarker","definitionLabelString")(r)};function l(t){return(r=tx(i.sliceSerialize(i.events[i.events.length-1][1]).slice(1,-1)),58===t)?(e.enter("definitionMarker"),e.consume(t),e.exit("definitionMarker"),a):n(t)}function a(t){return e$(t)?tg(e,o)(t):o(t)}function o(t){return tp(e,s,n,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(t)}function s(t){return e.attempt(ty,u,u)(t)}function u(t){return eU(t)?eQ(e,c,"whitespace")(t):c(t)}function c(l){return null===l||eH(l)?(e.exit("definition"),i.parser.defined.push(r),t(l)):n(l)}}}},"disable",0,{null:[]},"document",0,{42:tD,43:tD,45:tD,48:tD,49:tD,50:tD,51:tD,52:tD,53:tD,54:tD,55:tD,56:tD,57:tD,62:ti},"flow",0,{35:{name:"headingAtx",resolve:function(e,t){let n,r,i=e.length-2,l=3;return"whitespace"===e[3][1].type&&(l+=2),i-2>l&&"whitespace"===e[i][1].type&&(i-=2),"atxHeadingSequence"===e[i][1].type&&(l===i-1||i-4>l&&"whitespace"===e[i-2][1].type)&&(i-=l+1===i?2:4),i>l&&(n={type:"atxHeadingText",start:e[l][1].start,end:e[i][1].end},r={type:"chunkText",start:e[l][1].start,end:e[i][1].end,contentType:"text"},eL(e,l,i-l+1,[["enter",n,t],["enter",r,t],["exit",r,t],["exit",n,t]])),e},tokenize:function(e,t,n){let r=0;return function(i){var l;return e.enter("atxHeading"),l=i,e.enter("atxHeadingSequence"),function i(l){return 35===l&&r++<6?(e.consume(l),i):null===l||e$(l)?(e.exit("atxHeadingSequence"),function n(r){return 35===r?(e.enter("atxHeadingSequence"),function t(r){return 35===r?(e.consume(r),t):(e.exit("atxHeadingSequence"),n(r))}(r)):null===r||eH(r)?(e.exit("atxHeading"),t(r)):eU(r)?eQ(e,n,"whitespace")(r):(e.enter("atxHeadingText"),function t(r){return null===r||35===r||e$(r)?(e.exit("atxHeadingText"),n(r)):(e.consume(r),t)}(r))}(l)):n(l)}(l)}}},42:tL,45:[tI,tL],60:{concrete:!0,name:"htmlFlow",resolveTo:function(e){let t=e.length;for(;t--&&("enter"!==e[t][0]||"htmlFlow"!==e[t][1].type););return t>1&&"linePrefix"===e[t-2][1].type&&(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},tokenize:function(e,t,n){let r,i,l,a,o,s=this;return function(t){var n;return n=t,e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(n),u};function u(a){return 33===a?(e.consume(a),c):47===a?(e.consume(a),i=!0,p):63===a?(e.consume(a),r=3,s.interrupt?t:M):eI(a)?(e.consume(a),l=String.fromCharCode(a),h):n(a)}function c(i){return 45===i?(e.consume(i),r=2,d):91===i?(e.consume(i),r=5,a=0,f):eI(i)?(e.consume(i),r=4,s.interrupt?t:M):n(i)}function d(r){return 45===r?(e.consume(r),s.interrupt?t:M):n(r)}function f(r){let i="CDATA[";return r===i.charCodeAt(a++)?(e.consume(r),a===i.length)?s.interrupt?t:C:f:n(r)}function p(t){return eI(t)?(e.consume(t),l=String.fromCharCode(t),h):n(t)}function h(a){if(null===a||47===a||62===a||e$(a)){let o=47===a,u=l.toLowerCase();return!o&&!i&&tb.includes(u)?(r=1,s.interrupt?t(a):C(a)):tv.includes(l.toLowerCase())?(r=6,o)?(e.consume(a),m):s.interrupt?t(a):C(a):(r=7,s.interrupt&&!s.parser.lazy[s.now().line]?n(a):i?function t(n){return eU(n)?(e.consume(n),t):w(n)}(a):g(a))}return 45===a||eP(a)?(e.consume(a),l+=String.fromCharCode(a),h):n(a)}function m(r){return 62===r?(e.consume(r),s.interrupt?t:C):n(r)}function g(t){return 47===t?(e.consume(t),w):58===t||95===t||eI(t)?(e.consume(t),x):eU(t)?(e.consume(t),g):w(t)}function x(t){return 45===t||46===t||58===t||95===t||eP(t)?(e.consume(t),x):y(t)}function y(t){return 61===t?(e.consume(t),v):eU(t)?(e.consume(t),y):g(t)}function v(t){return null===t||60===t||61===t||62===t||96===t?n(t):34===t||39===t?(e.consume(t),o=t,b):eU(t)?(e.consume(t),v):function t(n){return null===n||34===n||39===n||47===n||60===n||61===n||62===n||96===n||e$(n)?y(n):(e.consume(n),t)}(t)}function b(t){return t===o?(e.consume(t),o=null,k):null===t||eH(t)?n(t):(e.consume(t),b)}function k(e){return 47===e||62===e||eU(e)?g(e):n(e)}function w(t){return 62===t?(e.consume(t),S):n(t)}function S(t){return null===t||eH(t)?C(t):eU(t)?(e.consume(t),S):n(t)}function C(t){return 45===t&&2===r?(e.consume(t),T):60===t&&1===r?(e.consume(t),N):62===t&&4===r?(e.consume(t),z):63===t&&3===r?(e.consume(t),M):93===t&&5===r?(e.consume(t),D):eH(t)&&(6===r||7===r)?(e.exit("htmlFlowData"),e.check(tk,I,E)(t)):null===t||eH(t)?(e.exit("htmlFlowData"),E(t)):(e.consume(t),C)}function E(t){return e.check(tw,j,I)(t)}function j(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),A}function A(t){return null===t||eH(t)?E(t):(e.enter("htmlFlowData"),C(t))}function T(t){return 45===t?(e.consume(t),M):C(t)}function N(t){return 47===t?(e.consume(t),l="",L):C(t)}function L(t){if(62===t){let n=l.toLowerCase();return tb.includes(n)?(e.consume(t),z):C(t)}return eI(t)&&l.length<8?(e.consume(t),l+=String.fromCharCode(t),L):C(t)}function D(t){return 93===t?(e.consume(t),M):C(t)}function M(t){return 62===t?(e.consume(t),z):45===t&&2===r?(e.consume(t),M):C(t)}function z(t){return null===t||eH(t)?(e.exit("htmlFlowData"),I(t)):(e.consume(t),z)}function I(n){return e.exit("htmlFlow"),t(n)}}},61:tI,95:tL,96:tc,126:tc},"flowInitial",0,{[-2]:td,[-1]:td,32:td},"insideSpan",0,{null:[tn,e3]},"string",0,{38:ts,92:tl},"text",0,{[-5]:tN,[-4]:tN,[-3]:tN,33:tA,38:ts,42:tn,60:[{name:"autolink",tokenize:function(e,t,n){let r=0;return function(t){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(t),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),i};function i(t){return eI(t)?(e.consume(t),l):64===t?n(t):o(t)}function l(t){return 43===t||45===t||46===t||eP(t)?(r=1,function t(n){return 58===n?(e.consume(n),r=0,a):(43===n||45===n||46===n||eP(n))&&r++<32?(e.consume(n),t):(r=0,o(n))}(t)):o(t)}function a(r){return 62===r?(e.exit("autolinkProtocol"),e.enter("autolinkMarker"),e.consume(r),e.exit("autolinkMarker"),e.exit("autolink"),t):null===r||32===r||60===r||eF(r)?n(r):(e.consume(r),a)}function o(t){return 64===t?(e.consume(t),s):eR(t)?(e.consume(t),o):n(t)}function s(i){return eP(i)?function i(l){return 46===l?(e.consume(l),r=0,s):62===l?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(l),e.exit("autolinkMarker"),e.exit("autolink"),t):function t(l){if((45===l||eP(l))&&r++<63){let n=45===l?t:i;return e.consume(l),n}return n(l)}(l)}(i):n(i)}}},{name:"htmlText",tokenize:function(e,t,n){let r,i,l,a=this;return function(t){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(t),o};function o(t){return 33===t?(e.consume(t),s):47===t?(e.consume(t),b):63===t?(e.consume(t),y):eI(t)?(e.consume(t),w):n(t)}function s(t){return 45===t?(e.consume(t),u):91===t?(e.consume(t),i=0,p):eI(t)?(e.consume(t),x):n(t)}function u(t){return 45===t?(e.consume(t),f):n(t)}function c(t){return null===t?n(t):45===t?(e.consume(t),d):eH(t)?(l=c,L(t)):(e.consume(t),c)}function d(t){return 45===t?(e.consume(t),f):c(t)}function f(e){return 62===e?N(e):45===e?d(e):c(e)}function p(t){let r="CDATA[";return t===r.charCodeAt(i++)?(e.consume(t),i===r.length?h:p):n(t)}function h(t){return null===t?n(t):93===t?(e.consume(t),m):eH(t)?(l=h,L(t)):(e.consume(t),h)}function m(t){return 93===t?(e.consume(t),g):h(t)}function g(t){return 62===t?N(t):93===t?(e.consume(t),g):h(t)}function x(t){return null===t||62===t?N(t):eH(t)?(l=x,L(t)):(e.consume(t),x)}function y(t){return null===t?n(t):63===t?(e.consume(t),v):eH(t)?(l=y,L(t)):(e.consume(t),y)}function v(e){return 62===e?N(e):y(e)}function b(t){return eI(t)?(e.consume(t),k):n(t)}function k(t){return 45===t||eP(t)?(e.consume(t),k):function t(n){return eH(n)?(l=t,L(n)):eU(n)?(e.consume(n),t):N(n)}(t)}function w(t){return 45===t||eP(t)?(e.consume(t),w):47===t||62===t||e$(t)?S(t):n(t)}function S(t){return 47===t?(e.consume(t),N):58===t||95===t||eI(t)?(e.consume(t),C):eH(t)?(l=S,L(t)):eU(t)?(e.consume(t),S):N(t)}function C(t){return 45===t||46===t||58===t||95===t||eP(t)?(e.consume(t),C):function t(n){return 61===n?(e.consume(n),E):eH(n)?(l=t,L(n)):eU(n)?(e.consume(n),t):S(n)}(t)}function E(t){return null===t||60===t||61===t||62===t||96===t?n(t):34===t||39===t?(e.consume(t),r=t,j):eH(t)?(l=E,L(t)):eU(t)?(e.consume(t),E):(e.consume(t),A)}function j(t){return t===r?(e.consume(t),r=void 0,T):null===t?n(t):eH(t)?(l=j,L(t)):(e.consume(t),j)}function A(t){return null===t||34===t||39===t||60===t||61===t||96===t?n(t):47===t||62===t||e$(t)?S(t):(e.consume(t),A)}function T(e){return 47===e||62===e||e$(e)?S(e):n(e)}function N(r){return 62===r?(e.consume(r),e.exit("htmlTextData"),e.exit("htmlText"),t):n(r)}function L(t){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),D}function D(t){return eU(t)?eQ(e,M,"linePrefix",a.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t):M(t)}function M(t){return e.enter("htmlTextData"),l(t)}}}],91:tT,92:[{name:"hardBreakEscape",tokenize:function(e,t,n){return function(t){return e.enter("hardBreakEscape"),e.consume(t),r};function r(r){return eH(r)?(e.exit("hardBreakEscape"),t(r)):n(r)}}},tl],93:tS,95:tn,96:{name:"codeText",previous:function(e){return 96!==e||"characterEscape"===this.events[this.events.length-1][1].type},resolve:function(e){let t,n,r=e.length-4,i=3;if(("lineEnding"===e[3][1].type||"space"===e[i][1].type)&&("lineEnding"===e[r][1].type||"space"===e[r][1].type)){for(t=i;++t<r;)if("codeTextData"===e[t][1].type){e[i][1].type="codeTextPadding",e[r][1].type="codeTextPadding",i+=2,r-=2;break}}for(t=i-1,r++;++t<=r;)void 0===n?t!==r&&"lineEnding"!==e[t][1].type&&(n=t):(t===r||"lineEnding"===e[t][1].type)&&(e[n][1].type="codeTextData",t!==n+2&&(e[n][1].end=e[t-1][1].end,e.splice(n+2,t-n-2),r-=t-n-2,t=n+2),n=void 0);return e},tokenize:function(e,t,n){let r,i,l=0;return function(t){return e.enter("codeText"),e.enter("codeTextSequence"),function t(n){return 96===n?(e.consume(n),l++,t):(e.exit("codeTextSequence"),a(n))}(t)};function a(s){return null===s?n(s):32===s?(e.enter("space"),e.consume(s),e.exit("space"),a):96===s?(i=e.enter("codeTextSequence"),r=0,function n(a){return 96===a?(e.consume(a),r++,n):r===l?(e.exit("codeTextSequence"),e.exit("codeText"),t(a)):(i.type="codeTextData",o(a))}(s)):eH(s)?(e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),a):(e.enter("codeTextData"),o(s))}function o(t){return null===t||32===t||96===t||eH(t)?(e.exit("codeTextData"),a(t)):(e.consume(t),o)}}}}],4127);var tP=e.i(4127);let tR=/[\0\t\n\r]/g;function tF(e,t){let n=Number.parseInt(e,t);return n<9||11===n||n>13&&n<32||n>126&&n<160||n>55295&&n<57344||n>64975&&n<65008||(65535&n)==65535||(65535&n)==65534||n>1114111?"�":String.fromCodePoint(n)}let tO=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function t_(e,t,n){if(t)return t;if(35===n.charCodeAt(0)){let e=n.charCodeAt(1),t=120===e||88===e;return tF(n.slice(t?2:1),t?16:10)}return to(n)||e}let tB={}.hasOwnProperty;function tH(e){return{line:e.line,column:e.column,offset:e.offset}}function t$(e,t){if(e)throw Error("Cannot close `"+e.type+"` ("+eo({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+eo({start:t.start,end:t.end})+") is open");throw Error("Cannot close document, a token (`"+t.type+"`, "+eo({start:t.start,end:t.end})+") is still open")}function tU(e){let t=this;t.parser=function(n){var r,i;let l,a,o,s;return"object"==typeof(r={...t.data("settings"),...e,extensions:t.data("micromarkExtensions")||[],mdastExtensions:t.data("fromMarkdownExtensions")||[]})&&(i=r,r=void 0),(function(e){let t={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:r(x),autolinkProtocol:u,autolinkEmail:u,atxHeading:r(h),blockQuote:r(function(){return{type:"blockquote",children:[]}}),characterEscape:u,characterReference:u,codeFenced:r(p),codeFencedFenceInfo:i,codeFencedFenceMeta:i,codeIndented:r(p,i),codeText:r(function(){return{type:"inlineCode",value:""}},i),codeTextData:u,data:u,codeFlowValue:u,definition:r(function(){return{type:"definition",identifier:"",label:null,title:null,url:""}}),definitionDestinationString:i,definitionLabelString:i,definitionTitleString:i,emphasis:r(function(){return{type:"emphasis",children:[]}}),hardBreakEscape:r(m),hardBreakTrailing:r(m),htmlFlow:r(g,i),htmlFlowData:u,htmlText:r(g,i),htmlTextData:u,image:r(function(){return{type:"image",title:null,url:"",alt:null}}),label:i,link:r(x),listItem:r(function(e){return{type:"listItem",spread:e._spread,checked:null,children:[]}}),listItemValue:function(e){this.data.expectingFirstListItemValue&&(this.stack[this.stack.length-2].start=Number.parseInt(this.sliceSerialize(e),10),this.data.expectingFirstListItemValue=void 0)},listOrdered:r(y,function(){this.data.expectingFirstListItemValue=!0}),listUnordered:r(y),paragraph:r(function(){return{type:"paragraph",children:[]}}),reference:function(){this.data.referenceType="collapsed"},referenceString:i,resourceDestinationString:i,resourceTitleString:i,setextHeading:r(h),strong:r(function(){return{type:"strong",children:[]}}),thematicBreak:r(function(){return{type:"thematicBreak"}})},exit:{atxHeading:a(),atxHeadingSequence:function(e){let t=this.stack[this.stack.length-1];t.depth||(t.depth=this.sliceSerialize(e).length)},autolink:a(),autolinkEmail:function(e){c.call(this,e),this.stack[this.stack.length-1].url="mailto:"+this.sliceSerialize(e)},autolinkProtocol:function(e){c.call(this,e),this.stack[this.stack.length-1].url=this.sliceSerialize(e)},blockQuote:a(),characterEscapeValue:c,characterReferenceMarkerHexadecimal:f,characterReferenceMarkerNumeric:f,characterReferenceValue:function(e){let t,n=this.sliceSerialize(e),r=this.data.characterReferenceType;r?(t=tF(n,"characterReferenceMarkerNumeric"===r?10:16),this.data.characterReferenceType=void 0):t=to(n);let i=this.stack[this.stack.length-1];i.value+=t},characterReference:function(e){this.stack.pop().position.end=tH(e.end)},codeFenced:a(function(){let e=this.resume();this.stack[this.stack.length-1].value=e.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}),codeFencedFence:function(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)},codeFencedFenceInfo:function(){let e=this.resume();this.stack[this.stack.length-1].lang=e},codeFencedFenceMeta:function(){let e=this.resume();this.stack[this.stack.length-1].meta=e},codeFlowValue:c,codeIndented:a(function(){let e=this.resume();this.stack[this.stack.length-1].value=e.replace(/(\r?\n|\r)$/g,"")}),codeText:a(function(){let e=this.resume();this.stack[this.stack.length-1].value=e}),codeTextData:c,data:c,definition:a(),definitionDestinationString:function(){let e=this.resume();this.stack[this.stack.length-1].url=e},definitionLabelString:function(e){let t=this.resume(),n=this.stack[this.stack.length-1];n.label=t,n.identifier=tx(this.sliceSerialize(e)).toLowerCase()},definitionTitleString:function(){let e=this.resume();this.stack[this.stack.length-1].title=e},emphasis:a(),hardBreakEscape:a(d),hardBreakTrailing:a(d),htmlFlow:a(function(){let e=this.resume();this.stack[this.stack.length-1].value=e}),htmlFlowData:c,htmlText:a(function(){let e=this.resume();this.stack[this.stack.length-1].value=e}),htmlTextData:c,image:a(function(){let e=this.stack[this.stack.length-1];if(this.data.inReference){let t=this.data.referenceType||"shortcut";e.type+="Reference",e.referenceType=t,delete e.url,delete e.title}else delete e.identifier,delete e.label;this.data.referenceType=void 0}),label:function(){let e=this.stack[this.stack.length-1],t=this.resume(),n=this.stack[this.stack.length-1];this.data.inReference=!0,"link"===n.type?n.children=e.children:n.alt=t},labelText:function(e){let t=this.sliceSerialize(e),n=this.stack[this.stack.length-2];n.label=t.replace(tO,t_),n.identifier=tx(t).toLowerCase()},lineEnding:function(e){let n=this.stack[this.stack.length-1];if(this.data.atHardBreak){n.children[n.children.length-1].position.end=tH(e.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&t.canContainEols.includes(n.type)&&(u.call(this,e),c.call(this,e))},link:a(function(){let e=this.stack[this.stack.length-1];if(this.data.inReference){let t=this.data.referenceType||"shortcut";e.type+="Reference",e.referenceType=t,delete e.url,delete e.title}else delete e.identifier,delete e.label;this.data.referenceType=void 0}),listItem:a(),listOrdered:a(),listUnordered:a(),paragraph:a(),referenceString:function(e){let t=this.resume(),n=this.stack[this.stack.length-1];n.label=t,n.identifier=tx(this.sliceSerialize(e)).toLowerCase(),this.data.referenceType="full"},resourceDestinationString:function(){let e=this.resume();this.stack[this.stack.length-1].url=e},resourceTitleString:function(){let e=this.resume();this.stack[this.stack.length-1].title=e},resource:function(){this.data.inReference=void 0},setextHeading:a(function(){this.data.setextHeadingSlurpLineEnding=void 0}),setextHeadingLineSequence:function(e){this.stack[this.stack.length-1].depth=61===this.sliceSerialize(e).codePointAt(0)?1:2},setextHeadingText:function(){this.data.setextHeadingSlurpLineEnding=!0},strong:a(),thematicBreak:a()}};!function e(t,n){let r=-1;for(;++r<n.length;){let i=n[r];Array.isArray(i)?e(t,i):function(e,t){let n;for(n in t)if(tB.call(t,n))switch(n){case"canContainEols":{let r=t[n];r&&e[n].push(...r);break}case"transforms":{let r=t[n];r&&e[n].push(...r);break}case"enter":case"exit":{let r=t[n];r&&Object.assign(e[n],r)}}}(t,i)}}(t,(e||{}).mdastExtensions||[]);let n={};return function(e){let r={type:"root",children:[]},a={stack:[r],tokenStack:[],config:t,enter:l,exit:o,buffer:i,resume:s,data:n},u=[],c=-1;for(;++c<e.length;)("listOrdered"===e[c][1].type||"listUnordered"===e[c][1].type)&&("enter"===e[c][0]?u.push(c):c=function(e,t,n){let r,i,l,a,o=t-1,s=-1,u=!1;for(;++o<=n;){let t=e[o];switch(t[1].type){case"listUnordered":case"listOrdered":case"blockQuote":"enter"===t[0]?s++:s--,a=void 0;break;case"lineEndingBlank":"enter"===t[0]&&(!r||a||s||l||(l=o),a=void 0);break;case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:a=void 0}if(!s&&"enter"===t[0]&&"listItemPrefix"===t[1].type||-1===s&&"exit"===t[0]&&("listUnordered"===t[1].type||"listOrdered"===t[1].type)){if(r){let a=o;for(i=void 0;a--;){let t=e[a];if("lineEnding"===t[1].type||"lineEndingBlank"===t[1].type){if("exit"===t[0])continue;i&&(e[i][1].type="lineEndingBlank",u=!0),t[1].type="lineEnding",i=a}else if("linePrefix"===t[1].type||"blockQuotePrefix"===t[1].type||"blockQuotePrefixWhitespace"===t[1].type||"blockQuoteMarker"===t[1].type||"listItemIndent"===t[1].type);else break}l&&(!i||l<i)&&(r._spread=!0),r.end=Object.assign({},i?e[i][1].start:t[1].end),e.splice(i||o,0,["exit",r,t[2]]),o++,n++}if("listItemPrefix"===t[1].type){let i={type:"listItem",_spread:!1,start:Object.assign({},t[1].start),end:void 0};r=i,e.splice(o,0,["enter",i,t[2]]),o++,n++,l=void 0,a=!0}}}return e[t][1]._spread=u,n}(e,u.pop(),c));for(c=-1;++c<e.length;){let n=t[e[c][0]];tB.call(n,e[c][1].type)&&n[e[c][1].type].call(Object.assign({sliceSerialize:e[c][2].sliceSerialize},a),e[c][1])}if(a.tokenStack.length>0){let e=a.tokenStack[a.tokenStack.length-1];(e[1]||t$).call(a,void 0,e[0])}for(r.position={start:tH(e.length>0?e[0][1].start:{line:1,column:1,offset:0}),end:tH(e.length>0?e[e.length-2][1].end:{line:1,column:1,offset:0})},c=-1;++c<t.transforms.length;)r=t.transforms[c](r)||r;return r};function r(e,t){return function(n){l.call(this,e(n),n),t&&t.call(this,n)}}function i(){this.stack.push({type:"fragment",children:[]})}function l(e,t,n){this.stack[this.stack.length-1].children.push(e),this.stack.push(e),this.tokenStack.push([t,n||void 0]),e.position={start:tH(t.start),end:void 0}}function a(e){return function(t){e&&e.call(this,t),o.call(this,t)}}function o(e,t){let n=this.stack.pop(),r=this.tokenStack.pop();if(r)r[0].type!==e.type&&(t?t.call(this,e,r[0]):(r[1]||t$).call(this,e,r[0]));else throw Error("Cannot close `"+e.type+"` ("+eo({start:e.start,end:e.end})+"): it’s not open");n.position.end=tH(e.end)}function s(){return eA(this.stack.pop())}function u(e){let t=this.stack[this.stack.length-1].children,n=t[t.length-1];n&&"text"===n.type||((n={type:"text",value:""}).position={start:tH(e.start),end:void 0},t.push(n)),this.stack.push(n)}function c(e){let t=this.stack.pop();t.value+=this.sliceSerialize(e),t.position.end=tH(e.end)}function d(){this.data.atHardBreak=!0}function f(e){this.data.characterReferenceType=e.type}function p(){return{type:"code",lang:null,meta:null,value:""}}function h(){return{type:"heading",depth:0,children:[]}}function m(){return{type:"break"}}function g(){return{type:"html",value:""}}function x(){return{type:"link",title:null,url:"",children:[]}}function y(e){return{type:"list",ordered:"listOrdered"===e.type,start:null,spread:e._spread,children:[]}}})(i)(function(e){for(;!e0(e););return e}((function(e){let t={constructs:ez([tP,...(e||{}).extensions||[]]),content:n(eJ),defined:[],document:n(eK),flow:n(e4),lazy:{},string:n(e6),text:n(e5)};return t;function n(e){return function(n){return function(e,t,n){let r={_bufferIndex:-1,_index:0,line:n&&n.line||1,column:n&&n.column||1,offset:n&&n.offset||0},i={},l=[],a=[],o=[],s={attempt:h(function(e,t){m(e,t.from)}),check:h(p),consume:function(e){eH(e)?(r.line++,r.column=1,r.offset+=-3===e?2:1,g()):-1!==e&&(r.column++,r.offset++),r._bufferIndex<0?r._index++:(r._bufferIndex++,r._bufferIndex===a[r._index].length&&(r._bufferIndex=-1,r._index++)),u.previous=e},enter:function(e,t){let n=t||{};return n.type=e,n.start=f(),u.events.push(["enter",n,u]),o.push(n),n},exit:function(e){let t=o.pop();return t.end=f(),u.events.push(["exit",t,u]),t},interrupt:h(p,{interrupt:!0})},u={code:null,containerState:{},defineSkip:function(e){i[e.line]=e.column,g()},events:[],now:f,parser:e,previous:null,sliceSerialize:function(e,t){return function(e,t){let n,r=-1,i=[];for(;++r<e.length;){let l,a=e[r];if("string"==typeof a)l=a;else switch(a){case -5:l="\r";break;case -4:l="\n";break;case -3:l="\r\n";break;case -2:l=t?" ":" ";break;case -1:if(!t&&n)continue;l=" ";break;default:l=String.fromCharCode(a)}n=-2===a,i.push(l)}return i.join("")}(d(e),t)},sliceStream:d,write:function(e){return(a=eD(a,e),function(){let e;for(;r._index<a.length;){let n=a[r._index];if("string"==typeof n)for(e=r._index,r._bufferIndex<0&&(r._bufferIndex=0);r._index===e&&r._bufferIndex<n.length;){var t;t=n.charCodeAt(r._bufferIndex),c=c(t)}else c=c(n)}}(),null!==a[a.length-1])?[]:(m(t,0),u.events=tt(l,u.events,u),u.events)}},c=t.tokenize.call(u,s);return t.resolveAll&&l.push(t),u;function d(e){return function(e,t){let n,r=t.start._index,i=t.start._bufferIndex,l=t.end._index,a=t.end._bufferIndex;if(r===l)n=[e[r].slice(i,a)];else{if(n=e.slice(r,l),i>-1){let e=n[0];"string"==typeof e?n[0]=e.slice(i):n.shift()}a>0&&n.push(e[l].slice(0,a))}return n}(a,e)}function f(){let{_bufferIndex:e,_index:t,line:n,column:i,offset:l}=r;return{_bufferIndex:e,_index:t,line:n,column:i,offset:l}}function p(e,t){t.restore()}function h(e,t){return function(n,i,l){var a;let c,d,p,h;return Array.isArray(n)?m(n):"tokenize"in n?m([n]):(a=n,function(e){let t=null!==e&&a[e],n=null!==e&&a.null;return m([...Array.isArray(t)?t:t?[t]:[],...Array.isArray(n)?n:n?[n]:[]])(e)});function m(e){return(c=e,d=0,0===e.length)?l:x(e[d])}function x(e){return function(n){let i,l,a,c,d;return(i=f(),l=u.previous,a=u.currentConstruct,c=u.events.length,d=Array.from(o),h={from:c,restore:function(){r=i,u.previous=l,u.currentConstruct=a,u.events.length=c,o=d,g()}},p=e,e.partial||(u.currentConstruct=e),e.name&&u.parser.constructs.disable.null.includes(e.name))?v(n):e.tokenize.call(t?Object.assign(Object.create(u),t):u,s,y,v)(n)}}function y(t){return e(p,h),i}function v(e){return(h.restore(),++d<c.length)?x(c[d]):l}}}function m(e,t){e.resolveAll&&!l.includes(e)&&l.push(e),e.resolve&&eL(u.events,t,u.events.length-t,e.resolve(u.events.slice(t),u)),e.resolveTo&&(u.events=e.resolveTo(u.events,u))}function g(){r.line in i&&r.column<2&&(r.column=i[r.line],r.offset+=i[r.line]-1)}}(t,e,n)}}})(i).document().write((a=1,o="",s=!0,function(e,t,n){let r,i,u,c,d,f=[];for(e=o+("string"==typeof e?e.toString():new TextDecoder(t||void 0).decode(e)),u=0,o="",s&&(65279===e.charCodeAt(0)&&u++,s=void 0);u<e.length;){if(tR.lastIndex=u,c=(r=tR.exec(e))&&void 0!==r.index?r.index:e.length,d=e.charCodeAt(c),!r){o=e.slice(u);break}if(10===d&&u===c&&l)f.push(-3),l=void 0;else switch(l&&(f.push(-5),l=void 0),u<c&&(f.push(e.slice(u,c)),a+=c-u),d){case 0:f.push(65533),a++;break;case 9:for(i=4*Math.ceil(a/4),f.push(-2);a++<i;)f.push(-1);break;case 10:f.push(-4),a=1;break;default:l=!0,a=1}u=c+1}return n&&(l&&f.push(-5),o&&f.push(o),f.push(null)),f})(n,r,!0))))}}let tq="object"==typeof self?self:globalThis,tV=e=>{var t;let n,r;return(t=new Map,n=(e,n)=>(t.set(n,e),e),r=i=>{if(t.has(i))return t.get(i);let[l,a]=e[i];switch(l){case 0:case -1:return n(a,i);case 1:{let e=n([],i);for(let t of a)e.push(r(t));return e}case 2:{let e=n({},i);for(let[t,n]of a)e[r(t)]=r(n);return e}case 3:return n(new Date(a),i);case 4:{let{source:e,flags:t}=a;return n(new RegExp(e,t),i)}case 5:{let e=n(new Map,i);for(let[t,n]of a)e.set(r(t),r(n));return e}case 6:{let e=n(new Set,i);for(let t of a)e.add(r(t));return e}case 7:{let{name:e,message:t}=a;return n(new tq[e](t),i)}case 8:return n(BigInt(a),i);case"BigInt":return n(Object(BigInt(a)),i);case"ArrayBuffer":return n(new Uint8Array(a).buffer,a);case"DataView":{let{buffer:e}=new Uint8Array(a);return n(new DataView(e),a)}}return n(new tq[l](a),i)})(0)},{toString:tW}={},{keys:tQ}=Object,tJ=e=>{let t=typeof e;if("object"!==t||!e)return[0,t];let n=tW.call(e).slice(8,-1);switch(n){case"Array":return[1,""];case"Object":return[2,""];case"Date":return[3,""];case"RegExp":return[4,""];case"Map":return[5,""];case"Set":return[6,""];case"DataView":return[1,n]}return n.includes("Array")?[1,n]:n.includes("Error")?[7,n]:[2,n]},tK=([e,t])=>0===e&&("function"===t||"symbol"===t),tX=(e,{json:t,lossy:n}={})=>{var r,i,l;let a,o,s=[];return(r=!(t||n),i=!!t,l=new Map,a=(e,t)=>{let n=s.push(e)-1;return l.set(t,n),n},o=e=>{if(l.has(e))return l.get(e);let[t,n]=tJ(e);switch(t){case 0:{let i=e;switch(n){case"bigint":t=8,i=e.toString();break;case"function":case"symbol":if(r)throw TypeError("unable to serialize "+n);i=null;break;case"undefined":return a([-1],e)}return a([t,i],e)}case 1:{if(n){let t=e;return"DataView"===n?t=new Uint8Array(e.buffer):"ArrayBuffer"===n&&(t=new Uint8Array(e)),a([n,[...t]],e)}let r=[],i=a([t,r],e);for(let t of e)r.push(o(t));return i}case 2:{if(n)switch(n){case"BigInt":return a([n,e.toString()],e);case"Boolean":case"Number":case"String":return a([n,e.valueOf()],e)}if(i&&"toJSON"in e)return o(e.toJSON());let l=[],s=a([t,l],e);for(let t of tQ(e))(r||!tK(tJ(e[t])))&&l.push([o(t),o(e[t])]);return s}case 3:return a([t,e.toISOString()],e);case 4:{let{source:n,flags:r}=e;return a([t,{source:n,flags:r}],e)}case 5:{let n=[],i=a([t,n],e);for(let[t,i]of e)(r||!(tK(tJ(t))||tK(tJ(i))))&&n.push([o(t),o(i)]);return i}case 6:{let n=[],i=a([t,n],e);for(let t of e)(r||!tK(tJ(t)))&&n.push(o(t));return i}}let{message:s}=e;return a([t,{name:n,message:s}],e)})(e),s},tZ="function"==typeof structuredClone?(e,t)=>t&&("json"in t||"lossy"in t)?tV(tX(e,t)):structuredClone(e):(e,t)=>tV(tX(e,t));function tG(e){let t=[],n=-1,r=0,i=0;for(;++n<e.length;){let l=e.charCodeAt(n),a="";if(37===l&&eP(e.charCodeAt(n+1))&&eP(e.charCodeAt(n+2)))i=2;else if(l<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(l))||(a=String.fromCharCode(l));else if(l>55295&&l<57344){let t=e.charCodeAt(n+1);l<56320&&t>56319&&t<57344?(a=String.fromCharCode(l,t),i=1):a="�"}else a=String.fromCharCode(l);a&&(t.push(e.slice(r,n),encodeURIComponent(a)),r=n+i+1,a=""),i&&(n+=i,i=0)}return t.join("")+e.slice(r)}function tY(e,t){let n=[{type:"text",value:"↩"}];return t>1&&n.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(t)}]}),n}function t0(e,t){return"Back to reference "+(e+1)+(t>1?"-"+t:"")}let t1=function(e){var t,n;if(null==e)return t4;if("function"==typeof e)return t2(e);if("object"==typeof e){return Array.isArray(e)?function(e){let t=[],n=-1;for(;++n<e.length;)t[n]=t1(e[n]);return t2(function(...e){let n=-1;for(;++n<t.length;)if(t[n].apply(this,e))return!0;return!1})}(e):(t=e,t2(function(e){let n;for(n in t)if(e[n]!==t[n])return!1;return!0}))}if("string"==typeof e){return n=e,t2(function(e){return e&&e.type===n})}throw Error("Expected function, string, or object as test")};function t2(e){return function(t,n,r){return!!(function(e){return null!==e&&"object"==typeof e&&"type"in e}(t)&&e.call(this,t,"number"==typeof n?n:void 0,r||void 0))}}function t4(){return!0}let t3=[];function t6(e,t,n,r){let i;"function"==typeof t&&"function"!=typeof n?(r=n,n=t):i=t;let l=t1(i),a=r?-1:1;(function e(i,o,s){let u=i&&"object"==typeof i?i:{};if("string"==typeof u.type){let e="string"==typeof u.tagName?u.tagName:"string"==typeof u.name?u.name:void 0;Object.defineProperty(c,"name",{value:"node ("+i.type+(e?"<"+e+">":"")+")"})}return c;function c(){var u;let c,d,f,p=t3;if((!t||l(i,o,s[s.length-1]||void 0))&&!1===(p=Array.isArray(u=n(i,s))?u:"number"==typeof u?[!0,u]:null==u?t3:[u])[0])return p;if("children"in i&&i.children&&i.children&&"skip"!==p[0])for(d=(r?i.children.length:-1)+a,f=s.concat(i);d>-1&&d<i.children.length;){if(!1===(c=e(i.children[d],d,f)())[0])return c;d="number"==typeof c[1]?c[1]:d+a}return p}})(e,void 0,[])()}function t5(e,t,n,r){let i,l,a;"function"==typeof t&&"function"!=typeof n?(l=void 0,a=t,i=n):(l=t,a=n,i=r),t6(e,l,function(e,t){let n=t[t.length-1],r=n?n.children.indexOf(e):void 0;return a(e,r,n)},i)}function t9(e,t){let n=t.referenceType,r="]";if("collapsed"===n?r+="[]":"full"===n&&(r+="["+(t.label||t.identifier)+"]"),"imageReference"===t.type)return[{type:"text",value:"!["+t.alt+r}];let i=e.all(t),l=i[0];l&&"text"===l.type?l.value="["+l.value:i.unshift({type:"text",value:"["});let a=i[i.length-1];return a&&"text"===a.type?a.value+=r:i.push({type:"text",value:r}),i}function t8(e){let t=e.spread;return null==t?e.children.length>1:t}function t7(e,t,n){let r=0,i=e.length;if(t){let t=e.codePointAt(r);for(;9===t||32===t;)r++,t=e.codePointAt(r)}if(n){let t=e.codePointAt(i-1);for(;9===t||32===t;)i--,t=e.codePointAt(i-1)}return i>r?e.slice(r,i):""}let ne={blockquote:function(e,t){let n={type:"element",tagName:"blockquote",properties:{},children:e.wrap(e.all(t),!0)};return e.patch(t,n),e.applyData(t,n)},break:function(e,t){let n={type:"element",tagName:"br",properties:{},children:[]};return e.patch(t,n),[e.applyData(t,n),{type:"text",value:"\n"}]},code:function(e,t){let n=t.value?t.value+"\n":"",r={},i=t.lang?t.lang.split(/\s+/):[];i.length>0&&(r.className=["language-"+i[0]]);let l={type:"element",tagName:"code",properties:r,children:[{type:"text",value:n}]};return t.meta&&(l.data={meta:t.meta}),e.patch(t,l),l={type:"element",tagName:"pre",properties:{},children:[l=e.applyData(t,l)]},e.patch(t,l),l},delete:function(e,t){let n={type:"element",tagName:"del",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},emphasis:function(e,t){let n={type:"element",tagName:"em",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},footnoteReference:function(e,t){let n,r="string"==typeof e.options.clobberPrefix?e.options.clobberPrefix:"user-content-",i=String(t.identifier).toUpperCase(),l=tG(i.toLowerCase()),a=e.footnoteOrder.indexOf(i),o=e.footnoteCounts.get(i);void 0===o?(o=0,e.footnoteOrder.push(i),n=e.footnoteOrder.length):n=a+1,o+=1,e.footnoteCounts.set(i,o);let s={type:"element",tagName:"a",properties:{href:"#"+r+"fn-"+l,id:r+"fnref-"+l+(o>1?"-"+o:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(n)}]};e.patch(t,s);let u={type:"element",tagName:"sup",properties:{},children:[s]};return e.patch(t,u),e.applyData(t,u)},heading:function(e,t){let n={type:"element",tagName:"h"+t.depth,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},html:function(e,t){if(e.options.allowDangerousHtml){let n={type:"raw",value:t.value};return e.patch(t,n),e.applyData(t,n)}},imageReference:function(e,t){let n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return t9(e,t);let i={src:tG(r.url||""),alt:t.alt};null!==r.title&&void 0!==r.title&&(i.title=r.title);let l={type:"element",tagName:"img",properties:i,children:[]};return e.patch(t,l),e.applyData(t,l)},image:function(e,t){let n={src:tG(t.url)};null!==t.alt&&void 0!==t.alt&&(n.alt=t.alt),null!==t.title&&void 0!==t.title&&(n.title=t.title);let r={type:"element",tagName:"img",properties:n,children:[]};return e.patch(t,r),e.applyData(t,r)},inlineCode:function(e,t){let n={type:"text",value:t.value.replace(/\r?\n|\r/g," ")};e.patch(t,n);let r={type:"element",tagName:"code",properties:{},children:[n]};return e.patch(t,r),e.applyData(t,r)},linkReference:function(e,t){let n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return t9(e,t);let i={href:tG(r.url||"")};null!==r.title&&void 0!==r.title&&(i.title=r.title);let l={type:"element",tagName:"a",properties:i,children:e.all(t)};return e.patch(t,l),e.applyData(t,l)},link:function(e,t){let n={href:tG(t.url)};null!==t.title&&void 0!==t.title&&(n.title=t.title);let r={type:"element",tagName:"a",properties:n,children:e.all(t)};return e.patch(t,r),e.applyData(t,r)},listItem:function(e,t,n){let r=e.all(t),i=n?function(e){let t=!1;if("list"===e.type){t=e.spread||!1;let n=e.children,r=-1;for(;!t&&++r<n.length;)t=t8(n[r])}return t}(n):t8(t),l={},a=[];if("boolean"==typeof t.checked){let e,n=r[0];n&&"element"===n.type&&"p"===n.tagName?e=n:(e={type:"element",tagName:"p",properties:{},children:[]},r.unshift(e)),e.children.length>0&&e.children.unshift({type:"text",value:" "}),e.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:t.checked,disabled:!0},children:[]}),l.className=["task-list-item"]}let o=-1;for(;++o<r.length;){let e=r[o];(i||0!==o||"element"!==e.type||"p"!==e.tagName)&&a.push({type:"text",value:"\n"}),"element"!==e.type||"p"!==e.tagName||i?a.push(e):a.push(...e.children)}let s=r[r.length-1];s&&(i||"element"!==s.type||"p"!==s.tagName)&&a.push({type:"text",value:"\n"});let u={type:"element",tagName:"li",properties:l,children:a};return e.patch(t,u),e.applyData(t,u)},list:function(e,t){let n={},r=e.all(t),i=-1;for("number"==typeof t.start&&1!==t.start&&(n.start=t.start);++i<r.length;){let e=r[i];if("element"===e.type&&"li"===e.tagName&&e.properties&&Array.isArray(e.properties.className)&&e.properties.className.includes("task-list-item")){n.className=["contains-task-list"];break}}let l={type:"element",tagName:t.ordered?"ol":"ul",properties:n,children:e.wrap(r,!0)};return e.patch(t,l),e.applyData(t,l)},paragraph:function(e,t){let n={type:"element",tagName:"p",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},root:function(e,t){let n={type:"root",children:e.wrap(e.all(t))};return e.patch(t,n),e.applyData(t,n)},strong:function(e,t){let n={type:"element",tagName:"strong",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},table:function(e,t){let n=e.all(t),r=n.shift(),i=[];if(r){let n={type:"element",tagName:"thead",properties:{},children:e.wrap([r],!0)};e.patch(t.children[0],n),i.push(n)}if(n.length>0){let r={type:"element",tagName:"tbody",properties:{},children:e.wrap(n,!0)},l=el(t.children[1]),a=ei(t.children[t.children.length-1]);l&&a&&(r.position={start:l,end:a}),i.push(r)}let l={type:"element",tagName:"table",properties:{},children:e.wrap(i,!0)};return e.patch(t,l),e.applyData(t,l)},tableCell:function(e,t){let n={type:"element",tagName:"td",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},tableRow:function(e,t,n){let r=n?n.children:void 0,i=0===(r?r.indexOf(t):1)?"th":"td",l=n&&"table"===n.type?n.align:void 0,a=l?l.length:t.children.length,o=-1,s=[];for(;++o<a;){let n=t.children[o],r={},a=l?l[o]:void 0;a&&(r.align=a);let u={type:"element",tagName:i,properties:r,children:[]};n&&(u.children=e.all(n),e.patch(n,u),u=e.applyData(n,u)),s.push(u)}let u={type:"element",tagName:"tr",properties:{},children:e.wrap(s,!0)};return e.patch(t,u),e.applyData(t,u)},text:function(e,t){let n={type:"text",value:function(e){let t=String(e),n=/\r?\n|\r/g,r=n.exec(t),i=0,l=[];for(;r;)l.push(t7(t.slice(i,r.index),i>0,!0),r[0]),i=r.index+r[0].length,r=n.exec(t);return l.push(t7(t.slice(i),i>0,!1)),l.join("")}(String(t.value))};return e.patch(t,n),e.applyData(t,n)},thematicBreak:function(e,t){let n={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(t,n),e.applyData(t,n)},toml:nt,yaml:nt,definition:nt,footnoteDefinition:nt};function nt(){}let nn={}.hasOwnProperty,nr={};function ni(e,t){e.position&&(t.position=function(e){let t=el(e),n=ei(e);if(t&&n)return{start:t,end:n}}(e))}function nl(e,t){let n=t;if(e&&e.data){let t=e.data.hName,r=e.data.hChildren,i=e.data.hProperties;"string"==typeof t&&("element"===n.type?n.tagName=t:n={type:"element",tagName:t,properties:{},children:"children"in n?n.children:[n]}),"element"===n.type&&i&&Object.assign(n.properties,tZ(i)),"children"in n&&n.children&&null!=r&&(n.children=r)}return n}function na(e,t){let n=[],r=-1;for(t&&n.push({type:"text",value:"\n"});++r<e.length;)r&&n.push({type:"text",value:"\n"}),n.push(e[r]);return t&&e.length>0&&n.push({type:"text",value:"\n"}),n}function no(e){let t=0,n=e.charCodeAt(t);for(;9===n||32===n;)t++,n=e.charCodeAt(t);return e.slice(t)}function ns(e,t){let n,r,i,l,a=(n=t||nr,r=new Map,i=new Map,l={all:function(e){let t=[];if("children"in e){let n=e.children,r=-1;for(;++r<n.length;){let i=l.one(n[r],e);if(i){if(r&&"break"===n[r-1].type&&(Array.isArray(i)||"text"!==i.type||(i.value=no(i.value)),!Array.isArray(i)&&"element"===i.type)){let e=i.children[0];e&&"text"===e.type&&(e.value=no(e.value))}Array.isArray(i)?t.push(...i):t.push(i)}}}return t},applyData:nl,definitionById:r,footnoteById:i,footnoteCounts:new Map,footnoteOrder:[],handlers:{...ne,...n.handlers},one:function(e,t){let n=e.type,r=l.handlers[n];if(nn.call(l.handlers,n)&&r)return r(l,e,t);if(l.options.passThrough&&l.options.passThrough.includes(n)){if("children"in e){let{children:t,...n}=e,r=tZ(n);return r.children=l.all(e),r}return tZ(e)}return(l.options.unknownHandler||function(e,t){let n=t.data||{},r="value"in t&&!(nn.call(n,"hProperties")||nn.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)})(l,e,t)},options:n,patch:ni,wrap:na},t5(e,function(e){if("definition"===e.type||"footnoteDefinition"===e.type){let t="definition"===e.type?r:i,n=String(e.identifier).toUpperCase();t.has(n)||t.set(n,e)}}),l),o=a.one(e,void 0),s=function(e){let t="string"==typeof e.options.clobberPrefix?e.options.clobberPrefix:"user-content-",n=e.options.footnoteBackContent||tY,r=e.options.footnoteBackLabel||t0,i=e.options.footnoteLabel||"Footnotes",l=e.options.footnoteLabelTagName||"h2",a=e.options.footnoteLabelProperties||{className:["sr-only"]},o=[],s=-1;for(;++s<e.footnoteOrder.length;){let i=e.footnoteById.get(e.footnoteOrder[s]);if(!i)continue;let l=e.all(i),a=String(i.identifier).toUpperCase(),u=tG(a.toLowerCase()),c=0,d=[],f=e.footnoteCounts.get(a);for(;void 0!==f&&++c<=f;){d.length>0&&d.push({type:"text",value:" "});let e="string"==typeof n?n:n(s,c);"string"==typeof e&&(e={type:"text",value:e}),d.push({type:"element",tagName:"a",properties:{href:"#"+t+"fnref-"+u+(c>1?"-"+c:""),dataFootnoteBackref:"",ariaLabel:"string"==typeof r?r:r(s,c),className:["data-footnote-backref"]},children:Array.isArray(e)?e:[e]})}let p=l[l.length-1];if(p&&"element"===p.type&&"p"===p.tagName){let e=p.children[p.children.length-1];e&&"text"===e.type?e.value+=" ":p.children.push({type:"text",value:" "}),p.children.push(...d)}else l.push(...d);let h={type:"element",tagName:"li",properties:{id:t+"fn-"+u},children:e.wrap(l,!0)};e.patch(i,h),o.push(h)}if(0!==o.length)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:l,properties:{...tZ(a),id:"footnote-label"},children:[{type:"text",value:i}]},{type:"text",value:"\n"},{type:"element",tagName:"ol",properties:{},children:e.wrap(o,!0)},{type:"text",value:"\n"}]}}(a),u=Array.isArray(o)?{type:"root",children:o}:o||{type:"root",children:[]};return s&&(g(),u.children.push({type:"text",value:"\n"},s)),u}function nu(e,t){return e&&"run"in e?async function(n,r){let i=ns(n,{file:r,...t});await e.run(i,r)}:function(n,r){return ns(n,{file:r,...e||t})}}function nc(e){if(e)throw e}var nd=e.i(4100);function nf(e){if("object"!=typeof e||null===e)return!1;let t=Object.getPrototypeOf(e);return(null===t||t===Object.prototype||null===Object.getPrototypeOf(t))&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}let np=function(e,t){let n;if(void 0!==t&&"string"!=typeof t)throw TypeError('"ext" argument must be a string');nx(e);let r=0,i=-1,l=e.length;if(void 0===t||0===t.length||t.length>e.length){for(;l--;)if(47===e.codePointAt(l)){if(n){r=l+1;break}}else i<0&&(n=!0,i=l+1);return i<0?"":e.slice(r,i)}if(t===e)return"";let a=-1,o=t.length-1;for(;l--;)if(47===e.codePointAt(l)){if(n){r=l+1;break}}else a<0&&(n=!0,a=l+1),o>-1&&(e.codePointAt(l)===t.codePointAt(o--)?o<0&&(i=l):(o=-1,i=a));return r===i?i=a:i<0&&(i=e.length),e.slice(r,i)},nh=function(e){let t;if(nx(e),0===e.length)return".";let n=-1,r=e.length;for(;--r;)if(47===e.codePointAt(r)){if(t){n=r;break}}else t||(t=!0);return n<0?47===e.codePointAt(0)?"/":".":1===n&&47===e.codePointAt(0)?"//":e.slice(0,n)},nm=function(e){let t;nx(e);let n=e.length,r=-1,i=0,l=-1,a=0;for(;n--;){let o=e.codePointAt(n);if(47===o){if(t){i=n+1;break}continue}r<0&&(t=!0,r=n+1),46===o?l<0?l=n:1!==a&&(a=1):l>-1&&(a=-1)}return l<0||r<0||0===a||1===a&&l===r-1&&l===i+1?"":e.slice(l,r)},ng=function(...e){var t;let n,r,i,l=-1;for(;++l<e.length;)nx(e[l]),e[l]&&(i=void 0===i?e[l]:i+"/"+e[l]);return void 0===i?".":(nx(t=i),n=47===t.codePointAt(0),0!==(r=function(e,t){let n,r,i="",l=0,a=-1,o=0,s=-1;for(;++s<=e.length;){if(s<e.length)n=e.codePointAt(s);else if(47===n)break;else n=47;if(47===n){if(a===s-1||1===o);else if(a!==s-1&&2===o){if(i.length<2||2!==l||46!==i.codePointAt(i.length-1)||46!==i.codePointAt(i.length-2)){if(i.length>2){if((r=i.lastIndexOf("/"))!==i.length-1){r<0?(i="",l=0):l=(i=i.slice(0,r)).length-1-i.lastIndexOf("/"),a=s,o=0;continue}}else if(i.length>0){i="",l=0,a=s,o=0;continue}}t&&(i=i.length>0?i+"/..":"..",l=2)}else i.length>0?i+="/"+e.slice(a+1,s):i=e.slice(a+1,s),l=s-a-1;a=s,o=0}else 46===n&&o>-1?o++:o=-1}return i}(t,!n)).length||n||(r="."),r.length>0&&47===t.codePointAt(t.length-1)&&(r+="/"),n?"/"+r:r)};function nx(e){if("string"!=typeof e)throw TypeError("Path must be a string. Received "+JSON.stringify(e))}function ny(e){return!!(null!==e&&"object"==typeof e&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&void 0===e.auth)}let nv=["history","path","basename","stem","extname","dirname"];class nb{constructor(e){var t;let n,r;n=e?ny(e)?{path:e}:"string"==typeof e||(t=e)&&"object"==typeof t&&"byteLength"in t&&"byteOffset"in t?{value:e}:e:{},this.cwd="cwd"in n?"":"/",this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let i=-1;for(;++i<nv.length;){let e=nv[i];e in n&&void 0!==n[e]&&null!==n[e]&&(this[e]="history"===e?[...n[e]]:n[e])}for(r in n)nv.includes(r)||(this[r]=n[r])}get basename(){return"string"==typeof this.path?np(this.path):void 0}set basename(e){nw(e,"basename"),nk(e,"basename"),this.path=ng(this.dirname||"",e)}get dirname(){return"string"==typeof this.path?nh(this.path):void 0}set dirname(e){nS(this.basename,"dirname"),this.path=ng(e||"",this.basename)}get extname(){return"string"==typeof this.path?nm(this.path):void 0}set extname(e){if(nk(e,"extname"),nS(this.dirname,"extname"),e){if(46!==e.codePointAt(0))throw Error("`extname` must start with `.`");if(e.includes(".",1))throw Error("`extname` cannot contain multiple dots")}this.path=ng(this.dirname,this.stem+(e||""))}get path(){return this.history[this.history.length-1]}set path(e){ny(e)&&(e=function(e){if("string"==typeof e)e=new URL(e);else if(!ny(e)){let t=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("file:"!==e.protocol){let e=TypeError("The URL must be of scheme file");throw e.code="ERR_INVALID_URL_SCHEME",e}return function(e){if(""!==e.hostname){let e=TypeError('File URL host must be "localhost" or empty on darwin');throw e.code="ERR_INVALID_FILE_URL_HOST",e}let t=e.pathname,n=-1;for(;++n<t.length;)if(37===t.codePointAt(n)&&50===t.codePointAt(n+1)){let e=t.codePointAt(n+2);if(70===e||102===e){let e=TypeError("File URL path must not include encoded / characters");throw e.code="ERR_INVALID_FILE_URL_PATH",e}}return decodeURIComponent(t)}(e)}(e)),nw(e,"path"),this.path!==e&&this.history.push(e)}get stem(){return"string"==typeof this.path?np(this.path,this.extname):void 0}set stem(e){nw(e,"stem"),nk(e,"stem"),this.path=ng(this.dirname||"",e+(this.extname||""))}fail(e,t,n){let r=this.message(e,t,n);throw r.fatal=!0,r}info(e,t,n){let r=this.message(e,t,n);return r.fatal=void 0,r}message(e,t,n){let r=new ed(e,t,n);return this.path&&(r.name=this.path+":"+r.name,r.file=this.path),r.fatal=!1,this.messages.push(r),r}toString(e){return void 0===this.value?"":"string"==typeof this.value?this.value:new TextDecoder(e||void 0).decode(this.value)}}function nk(e,t){if(e&&e.includes("/"))throw Error("`"+t+"` cannot be a path: did not expect `/`")}function nw(e,t){if(!e)throw Error("`"+t+"` cannot be empty")}function nS(e,t){if(!e)throw Error("Setting `"+t+"` requires `path` to be set too")}let nC=function(e){let t=this.constructor.prototype,n=t[e],r=function(){return n.apply(r,arguments)};return Object.setPrototypeOf(r,t),r},nE={}.hasOwnProperty,nj=new class e extends nC{constructor(){let e,t;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=(e=[],t={run:function(...t){let n=-1,r=t.pop();if("function"!=typeof r)throw TypeError("Expected function as last argument, not "+r);!function i(l,...a){let o=e[++n],s=-1;if(l)return void r(l);for(;++s<t.length;)(null===a[s]||void 0===a[s])&&(a[s]=t[s]);t=a,o?(function(e,t){let n;return function(...t){let l,a=e.length>t.length;a&&t.push(r);try{l=e.apply(this,t)}catch(e){if(a&&n)throw e;return r(e)}a||(l&&l.then&&"function"==typeof l.then?l.then(i,r):l instanceof Error?r(l):i(l))};function r(e,...i){n||(n=!0,t(e,...i))}function i(e){r(null,e)}})(o,i)(...a):r(null,...a)}(null,...t)},use:function(n){if("function"!=typeof n)throw TypeError("Expected `middelware` to be a function, not "+n);return e.push(n),t}})}copy(){let t=new e,n=-1;for(;++n<this.attachers.length;){let e=this.attachers[n];t.use(...e)}return t.data((0,nd.default)(!0,{},this.namespace)),t}data(e,t){return"string"==typeof e?2==arguments.length?(nN("data",this.frozen),this.namespace[e]=t,this):nE.call(this.namespace,e)&&this.namespace[e]||void 0:e?(nN("data",this.frozen),this.namespace=e,this):this.namespace}freeze(){if(this.frozen)return this;for(;++this.freezeIndex<this.attachers.length;){let[e,...t]=this.attachers[this.freezeIndex];if(!1===t[0])continue;!0===t[0]&&(t[0]=void 0);let n=e.call(this,...t);"function"==typeof n&&this.transformers.use(n)}return this.frozen=!0,this.freezeIndex=1/0,this}parse(e){this.freeze();let t=nM(e),n=this.parser||this.Parser;return nA("parse",n),n(String(t),t)}process(e,t){let n=this;return this.freeze(),nA("process",this.parser||this.Parser),nT("process",this.compiler||this.Compiler),t?r(void 0,t):new Promise(r);function r(r,i){let l=nM(e),a=n.parse(l);function o(e,n){e||!n?i(e):r?r(n):(g(),t(void 0,n))}n.run(a,l,function(e,t,r){var i,l;if(e||!t||!r)return o(e);let a=n.stringify(t,r);"string"==typeof(i=a)||(l=i)&&"object"==typeof l&&"byteLength"in l&&"byteOffset"in l?r.value=a:r.result=a,o(e,r)})}}processSync(e){let t,n=!1;return this.freeze(),nA("processSync",this.parser||this.Parser),nT("processSync",this.compiler||this.Compiler),this.process(e,function(e,r){n=!0,nc(e),t=r}),nD("processSync","process",n),g(),t}run(e,t,n){nL(e),this.freeze();let r=this.transformers;return n||"function"!=typeof t||(n=t,t=void 0),n?i(void 0,n):new Promise(i);function i(i,l){g();let a=nM(t);r.run(e,a,function(t,r,a){let o=r||e;t?l(t):i?i(o):(g(),n(void 0,o,a))})}}runSync(e,t){let n,r=!1;return this.run(e,t,function(e,t){nc(e),n=t,r=!0}),nD("runSync","run",r),g(),n}stringify(e,t){this.freeze();let n=nM(t),r=this.compiler||this.Compiler;return nT("stringify",r),nL(e),r(e,n)}use(e,...t){let n=this.attachers,r=this.namespace;if(nN("use",this.frozen),null==e);else if("function"==typeof e)a(e,t);else if("object"==typeof e)Array.isArray(e)?l(e):i(e);else throw TypeError("Expected usable value, not `"+e+"`");return this;function i(e){if(!("plugins"in e)&&!("settings"in e))throw 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(e.plugins),e.settings&&(r.settings=(0,nd.default)(!0,r.settings,e.settings))}function l(e){let t=-1;if(null==e);else if(Array.isArray(e))for(;++t<e.length;)!function(e){if("function"==typeof e)a(e,[]);else if("object"==typeof e)if(Array.isArray(e)){let[t,...n]=e;a(t,n)}else i(e);else throw TypeError("Expected usable value, not `"+e+"`")}(e[t]);else throw TypeError("Expected a list of plugins, not `"+e+"`")}function a(e,t){let r=-1,i=-1;for(;++r<n.length;)if(n[r][0]===e){i=r;break}if(-1===i)n.push([e,...t]);else if(t.length>0){let[r,...l]=t,a=n[i][1];nf(a)&&nf(r)&&(r=(0,nd.default)(!0,a,r)),n[i]=[e,r,...l]}}}}().freeze();function nA(e,t){if("function"!=typeof t)throw TypeError("Cannot `"+e+"` without `parser`")}function nT(e,t){if("function"!=typeof t)throw TypeError("Cannot `"+e+"` without `compiler`")}function nN(e,t){if(t)throw Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function nL(e){if(!nf(e)||"string"!=typeof e.type)throw TypeError("Expected node, got `"+e+"`")}function nD(e,t,n){if(!n)throw Error("`"+e+"` finished async. Use `"+t+"` instead")}function nM(e){var t;return(t=e)&&"object"==typeof t&&"message"in t&&"messages"in t?e:new nb(e)}let nz=[],nI={allowDangerousHtml:!0},nP=/^(https?|ircs?|mailto|xmpp)$/i,nR=[{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 nF(e){var n;let r,i,l,a,o,s=(r=(n=e).rehypePlugins||nz,i=n.remarkPlugins||nz,l=n.remarkRehypeOptions?{...n.remarkRehypeOptions,...nI}:nI,nj().use(tU).use(i).use(nu,l).use(r)),u=(a=e.children||"",o=new nb,"string"==typeof a?o.value=a:x(),o);return function(e,n){let r=n.allowedElements,i=n.allowElement,l=n.components,a=n.disallowedElements,o=n.skipHtml,s=n.unwrapDisallowed,u=n.urlTransform||nO;for(let e of nR)Object.hasOwn(n,e.from)&&x((e.from,e.to&&e.to,e.id));return r&&a&&x(),t5(e,function(e,t,n){if("raw"===e.type&&n&&"number"==typeof t)return o?n.children.splice(t,1):n.children[t]={type:"text",value:e.value},t;if("element"===e.type){let t;for(t in eE)if(Object.hasOwn(eE,t)&&Object.hasOwn(e.properties,t)){let n=e.properties[t],r=eE[t];(null===r||r.includes(e.tagName))&&(e.properties[t]=u(String(n||""),t,e))}}if("element"===e.type){let l=r?!r.includes(e.tagName):!!a&&a.includes(e.tagName);if(!l&&i&&"number"==typeof t&&(l=!i(e,t,n)),l&&n&&"number"==typeof t)return s&&e.children?n.children.splice(t,1,...e.children):n.children.splice(t,1),t}}),function(e,t){var n,r,i,l;let a;if(!t||void 0===t.Fragment)throw TypeError("Expected `Fragment` in options");let o=t.filePath||void 0;if(t.development){if("function"!=typeof t.jsxDEV)throw TypeError("Expected `jsxDEV` in options when `development: true`");n=o,r=t.jsxDEV,a=function(e,t,i,l){let a=Array.isArray(i.children),o=el(e);return r(t,i,l,a,{columnNumber:o?o.column-1:void 0,fileName:n,lineNumber:o?o.line:void 0},void 0)}}else{if("function"!=typeof t.jsx)throw TypeError("Expected `jsx` in production options");if("function"!=typeof t.jsxs)throw TypeError("Expected `jsxs` in production options");i=t.jsx,l=t.jsxs,a=function(e,t,n,r){let a=Array.isArray(n.children)?l:i;return r?a(t,n,r):a(t,n)}}let s={Fragment:t.Fragment,ancestors:[],components:t.components||{},create:a,elementAttributeNameCase:t.elementAttributeNameCase||"react",evaluater:t.createEvaluater?t.createEvaluater():void 0,filePath:o,ignoreInvalidStyle:t.ignoreInvalidStyle||!1,passKeys:!1!==t.passKeys,passNode:t.passNode||!1,schema:"svg"===t.space?en:et,stylePropertyNameCase:t.stylePropertyNameCase||"dom",tableCellAlignToStyle:!1!==t.tableCellAlignToStyle},u=ey(s,e,void 0);return u&&"string"!=typeof u?u:s.create(e,s.Fragment,{children:u||void 0},void 0)}(e,{Fragment:t.Fragment,components:l,ignoreInvalidStyle:!0,jsx:t.jsx,jsxs:t.jsxs,passKeys:!0,passNode:!0})}(s.runSync(s.parse(u),u),e)}function nO(e){let t=e.indexOf(":"),n=e.indexOf("?"),r=e.indexOf("#"),i=e.indexOf("/");return -1===t||-1!==i&&t>i||-1!==n&&t>n||-1!==r&&t>r||nP.test(e.slice(0,t))?e:""}function n_(e,t){let n=String(e);if("string"!=typeof t)throw TypeError("Expected character");let r=0,i=n.indexOf(t);for(;-1!==i;)r++,i=n.indexOf(t,i+t.length);return r}let nB="phrasing",nH=["autolink","link","image","label"];function n$(e){this.enter({type:"link",title:null,url:"",children:[]},e)}function nU(e){this.config.enter.autolinkProtocol.call(this,e)}function nq(e){this.config.exit.autolinkProtocol.call(this,e)}function nV(e){this.config.exit.data.call(this,e);let t=this.stack[this.stack.length-1];g(t.type),t.url="http://"+this.sliceSerialize(e)}function nW(e){this.config.exit.autolinkEmail.call(this,e)}function nQ(e){this.exit(e)}function nJ(e){!function(e,t,n){let r=t1((n||{}).ignore||[]),i=function(e){let t=[];if(!Array.isArray(e))throw TypeError("Expected find and replace tuple or list of tuples");let n=!e[0]||Array.isArray(e[0])?e:[e],r=-1;for(;++r<n.length;){var i;let e=n[r];t.push(["string"==typeof(i=e[0])?RegExp(function(e){if("string"!=typeof e)throw TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}(i),"g"):i,function(e){return"function"==typeof e?e:function(){return e}}(e[1])])}return t}(t),l=-1;for(;++l<i.length;)t6(e,"text",a);function a(e,t){let n,a=-1;for(;++a<t.length;){let e=t[a],i=n?n.children:void 0;if(r(e,i?i.indexOf(e):void 0,n))return;n=e}if(n)return function(e,t){let n=t[t.length-1],r=i[l][0],a=i[l][1],o=0,s=n.children.indexOf(e),u=!1,c=[];r.lastIndex=0;let d=r.exec(e.value);for(;d;){let n=d.index,i={index:d.index,input:d.input,stack:[...t,e]},l=a(...d,i);if("string"==typeof l&&(l=l.length>0?{type:"text",value:l}:void 0),!1===l?r.lastIndex=n+1:(o!==n&&c.push({type:"text",value:e.value.slice(o,n)}),Array.isArray(l)?c.push(...l):l&&c.push(l),o=n+d[0].length,u=!0),!r.global)break;d=r.exec(e.value)}return u?(o<e.value.length&&c.push({type:"text",value:e.value.slice(o)}),n.children.splice(s,1,...c)):c=[e],s+c.length}(e,t)}}(e,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,nK],[/(?<=^|\s|\p{P}|\p{S})([-.\w+]+)@([-\w]+(?:\.[-\w]+)+)/gu,nX]],{ignore:["link","linkReference"]})}function nK(e,t,n,r,i){let l,a="";if(!nZ(i))return!1;if(/^w/i.test(t)&&(n=t+n,t="",a="http://"),(l=n.split(".")).length<2||l[l.length-1]&&(/_/.test(l[l.length-1])||!/[a-zA-Z\d]/.test(l[l.length-1]))||l[l.length-2]&&(/_/.test(l[l.length-2])||!/[a-zA-Z\d]/.test(l[l.length-2])))return!1;let o=function(e){let t=/[!"&'),.:;<>?\]}]+$/.exec(e);if(!t)return[e,void 0];e=e.slice(0,t.index);let n=t[0],r=n.indexOf(")"),i=n_(e,"("),l=n_(e,")");for(;-1!==r&&i>l;)e+=n.slice(0,r+1),r=(n=n.slice(r+1)).indexOf(")"),l++;return[e,n]}(n+r);if(!o[0])return!1;let s={type:"link",title:null,url:a+t+o[0],children:[{type:"text",value:t+o[0]}]};return o[1]?[s,{type:"text",value:o[1]}]:s}function nX(e,t,n,r){return!(!nZ(r,!0)||/[-\d_]$/.test(n))&&{type:"link",title:null,url:"mailto:"+t+"@"+n,children:[{type:"text",value:t+"@"+n}]}}function nZ(e,t){let n=e.input.charCodeAt(e.index-1);return(0===e.index||eV(n)||eq(n))&&(!t||47!==n)}function nG(){this.buffer()}function nY(e){this.enter({type:"footnoteReference",identifier:"",label:""},e)}function n0(){this.buffer()}function n1(e){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},e)}function n2(e){let t=this.resume(),n=this.stack[this.stack.length-1];g(n.type),n.identifier=tx(this.sliceSerialize(e)).toLowerCase(),n.label=t}function n4(e){this.exit(e)}function n3(e){let t=this.resume(),n=this.stack[this.stack.length-1];g(n.type),n.identifier=tx(this.sliceSerialize(e)).toLowerCase(),n.label=t}function n6(e){this.exit(e)}function n5(e,t,n,r){let i=n.createTracker(r),l=i.move("[^"),a=n.enter("footnoteReference"),o=n.enter("reference");return l+=i.move(n.safe(n.associationId(e),{after:"]",before:l})),o(),a(),l+=i.move("]")}function n9(e,t,n){return 0===t?e:n8(e,t,n)}function n8(e,t,n){return(n?"":" ")+e}n5.peek=function(){return"["};let n7=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];function re(e){this.enter({type:"delete",children:[]},e)}function rt(e){this.exit(e)}function rn(e,t,n,r){let i=n.createTracker(r),l=n.enter("strikethrough"),a=i.move("~~");return a+=n.containerPhrasing(e,{...i.current(),before:a,after:"~"}),a+=i.move("~~"),l(),a}function rr(e){return e.length}function ri(e){let t="string"==typeof e?e.codePointAt(0):0;return 67===t||99===t?99:76===t||108===t?108:114*(82===t||114===t)}rn.peek=function(){return"~"};function rl(e,t,n){let r=e.value||"",i="`",l=-1;for(;RegExp("(^|[^`])"+i+"([^`]|$)").test(r);)i+="`";for(/[^ \r\n]/.test(r)&&(/^[ \r\n]/.test(r)&&/[ \r\n]$/.test(r)||/^`|`$/.test(r))&&(r=" "+r+" ");++l<n.unsafe.length;){let e,t=n.unsafe[l],i=n.compilePattern(t);if(t.atBreak)for(;e=i.exec(r);){let t=e.index;10===r.charCodeAt(t)&&13===r.charCodeAt(t-1)&&t--,r=r.slice(0,t)+" "+r.slice(e.index+1)}}return i+r+i}rl.peek=function(){return"`"};t1(["break","delete","emphasis","footnote","footnoteReference","image","imageReference","inlineCode","inlineMath","link","linkReference","mdxJsxTextElement","mdxTextExpression","strong","text","textDirective"]);let ra=function(e,t,n,r){let i=function(e){let t=e.options.listItemIndent||"one";if("tab"!==t&&"one"!==t&&"mixed"!==t)throw Error("Cannot serialize items with `"+t+"` for `options.listItemIndent`, expected `tab`, `one`, or `mixed`");return t}(n),l=n.bulletCurrent||function(e){let t=e.options.bullet||"*";if("*"!==t&&"+"!==t&&"-"!==t)throw Error("Cannot serialize items with `"+t+"` for `options.bullet`, expected `*`, `+`, or `-`");return t}(n);t&&"list"===t.type&&t.ordered&&(l=("number"==typeof t.start&&t.start>-1?t.start:1)+(!1===n.options.incrementListMarker?0:t.children.indexOf(e))+l);let a=l.length+1;("tab"===i||"mixed"===i&&(t&&"list"===t.type&&t.spread||e.spread))&&(a=4*Math.ceil(a/4));let o=n.createTracker(r);o.move(l+" ".repeat(a-l.length)),o.shift(a);let s=n.enter("listItem"),u=n.indentLines(n.containerFlow(e,o.current()),function(e,t,n){return t?(n?"":" ".repeat(a))+e:(n?l:l+" ".repeat(a-l.length))+e});return s(),u};function ro(e){let t=e._align;g(),this.enter({type:"table",align:t.map(function(e){return"none"===e?null:e}),children:[]},e),this.data.inTable=!0}function rs(e){this.exit(e),this.data.inTable=void 0}function ru(e){this.enter({type:"tableRow",children:[]},e)}function rc(e){this.exit(e)}function rd(e){this.enter({type:"tableCell",children:[]},e)}function rf(e){let t=this.resume();this.data.inTable&&(t=t.replace(/\\([\\|])/g,rp));let n=this.stack[this.stack.length-1];g(n.type),n.value=t,this.exit(e)}function rp(e,t){return"|"===t?t:e}function rh(e){let t=this.stack[this.stack.length-2];g(t.type),t.checked="taskListCheckValueChecked"===e.type}function rm(e){let t=this.stack[this.stack.length-2];if(t&&"listItem"===t.type&&"boolean"==typeof t.checked){let e=this.stack[this.stack.length-1];g(e.type);let n=e.children[0];if(n&&"text"===n.type){let r,i=t.children,l=-1;for(;++l<i.length;){let e=i[l];if("paragraph"===e.type){r=e;break}}r===e&&(n.value=n.value.slice(1),0===n.value.length?e.children.shift():e.position&&n.position&&"number"==typeof n.position.start.offset&&(n.position.start.column++,n.position.start.offset++,e.position.start=Object.assign({},n.position.start)))}}this.exit(e)}function rg(e,t,n,r){let i=e.children[0],l="boolean"==typeof e.checked&&i&&"paragraph"===i.type,a="["+(e.checked?"x":" ")+"] ",o=n.createTracker(r);l&&o.move(a);let s=ra(e,t,n,{...r,...o.current()});return l&&(s=s.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,function(e){return e+a})),s}let rx={tokenize:function(e,t,n){let r=0;return function t(l){return(87===l||119===l)&&r<3?(r++,e.consume(l),t):46===l&&3===r?(e.consume(l),i):n(l)};function i(e){return null===e?n(e):t(e)}},partial:!0},ry={tokenize:function(e,t,n){let r,i,l;return a;function a(t){return 46===t||95===t?e.check(rb,s,o)(t):null===t||e$(t)||eV(t)||45!==t&&eq(t)?s(t):(l=!0,e.consume(t),a)}function o(t){return 95===t?r=!0:(i=r,r=void 0),e.consume(t),a}function s(e){return i||r||!l?n(e):t(e)}},partial:!0},rv={tokenize:function(e,t){let n=0,r=0;return i;function i(a){return 40===a?(n++,e.consume(a),i):41===a&&r<n?l(a):33===a||34===a||38===a||39===a||41===a||42===a||44===a||46===a||58===a||59===a||60===a||63===a||93===a||95===a||126===a?e.check(rb,t,l)(a):null===a||e$(a)||eV(a)?t(a):(e.consume(a),i)}function l(t){return 41===t&&r++,e.consume(t),i}},partial:!0},rb={tokenize:function(e,t,n){return r;function r(a){return 33===a||34===a||39===a||41===a||42===a||44===a||46===a||58===a||59===a||63===a||95===a||126===a?(e.consume(a),r):38===a?(e.consume(a),l):93===a?(e.consume(a),i):60===a||null===a||e$(a)||eV(a)?t(a):n(a)}function i(e){return null===e||40===e||91===e||e$(e)||eV(e)?t(e):r(e)}function l(t){return eI(t)?function t(i){return 59===i?(e.consume(i),r):eI(i)?(e.consume(i),t):n(i)}(t):n(t)}},partial:!0},rk={tokenize:function(e,t,n){return function(t){return e.consume(t),r};function r(e){return eP(e)?n(e):t(e)}},partial:!0},rw={name:"wwwAutolink",tokenize:function(e,t,n){let r=this;return function(t){return 87!==t&&119!==t||!rA.call(r,r.previous)||rD(r.events)?n(t):(e.enter("literalAutolink"),e.enter("literalAutolinkWww"),e.check(rx,e.attempt(ry,e.attempt(rv,i),n),n)(t))};function i(n){return e.exit("literalAutolinkWww"),e.exit("literalAutolink"),t(n)}},previous:rA},rS={name:"protocolAutolink",tokenize:function(e,t,n){let r=this,i="",l=!1;return function(t){return(72===t||104===t)&&rT.call(r,r.previous)&&!rD(r.events)?(e.enter("literalAutolink"),e.enter("literalAutolinkHttp"),i+=String.fromCodePoint(t),e.consume(t),a):n(t)};function a(t){if(eI(t)&&i.length<5)return i+=String.fromCodePoint(t),e.consume(t),a;if(58===t){let n=i.toLowerCase();if("http"===n||"https"===n)return e.consume(t),o}return n(t)}function o(t){return 47===t?(e.consume(t),l)?s:(l=!0,o):n(t)}function s(t){return null===t||eF(t)||e$(t)||eV(t)||eq(t)?n(t):e.attempt(ry,e.attempt(rv,u),n)(t)}function u(n){return e.exit("literalAutolinkHttp"),e.exit("literalAutolink"),t(n)}},previous:rT},rC={name:"emailAutolink",tokenize:function(e,t,n){let r,i,l=this;return function(t){return!rL(t)||!rN.call(l,l.previous)||rD(l.events)?n(t):(e.enter("literalAutolink"),e.enter("literalAutolinkEmail"),function t(r){return rL(r)?(e.consume(r),t):64===r?(e.consume(r),a):n(r)}(t))};function a(t){return 46===t?e.check(rk,s,o)(t):45===t||95===t||eP(t)?(i=!0,e.consume(t),a):s(t)}function o(t){return e.consume(t),r=!0,a}function s(a){return i&&r&&eI(l.previous)?(e.exit("literalAutolinkEmail"),e.exit("literalAutolink"),t(a)):n(a)}},previous:rN},rE={},rj=48;for(;rj<123;)rE[rj]=rC,58==++rj?rj=65:91===rj&&(rj=97);function rA(e){return null===e||40===e||42===e||95===e||91===e||93===e||126===e||e$(e)}function rT(e){return!eI(e)}function rN(e){return!(47===e||rL(e))}function rL(e){return 43===e||45===e||46===e||95===e||eP(e)}function rD(e){let t=e.length,n=!1;for(;t--;){let r=e[t][1];if(("labelLink"===r.type||"labelImage"===r.type)&&!r._balanced){n=!0;break}if(r._gfmAutolinkLiteralWalkedInto){n=!1;break}}return e.length>0&&!n&&(e[e.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),n}rE[43]=rC,rE[45]=rC,rE[46]=rC,rE[95]=rC,rE[72]=[rC,rS],rE[104]=[rC,rS],rE[87]=[rC,rw],rE[119]=[rC,rw];let rM={tokenize:function(e,t,n){let r=this;return eQ(e,function(e){let i=r.events[r.events.length-1];return i&&"gfmFootnoteDefinitionIndent"===i[1].type&&4===i[2].sliceSerialize(i[1],!0).length?t(e):n(e)},"gfmFootnoteDefinitionIndent",5)},partial:!0};function rz(e,t,n){let r,i=this,l=i.events.length,a=i.parser.gfmFootnotes||(i.parser.gfmFootnotes=[]);for(;l--;){let e=i.events[l][1];if("labelImage"===e.type){r=e;break}if("gfmFootnoteCall"===e.type||"labelLink"===e.type||"label"===e.type||"image"===e.type||"link"===e.type)break}return function(l){if(!r||!r._balanced)return n(l);let o=tx(i.sliceSerialize({start:r.end,end:i.now()}));return 94===o.codePointAt(0)&&a.includes(o.slice(1))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(l),e.exit("gfmFootnoteCallLabelMarker"),t(l)):n(l)}}function rI(e,t){let n=e.length;for(;n--;)if("labelImage"===e[n][1].type&&"enter"===e[n][0]){e[n][1];break}e[n+1][1].type="data",e[n+3][1].type="gfmFootnoteCallLabelMarker";let r={type:"gfmFootnoteCall",start:Object.assign({},e[n+3][1].start),end:Object.assign({},e[e.length-1][1].end)},i={type:"gfmFootnoteCallMarker",start:Object.assign({},e[n+3][1].end),end:Object.assign({},e[n+3][1].end)};i.end.column++,i.end.offset++,i.end._bufferIndex++;let l={type:"gfmFootnoteCallString",start:Object.assign({},i.end),end:Object.assign({},e[e.length-1][1].start)},a={type:"chunkString",contentType:"string",start:Object.assign({},l.start),end:Object.assign({},l.end)},o=[e[n+1],e[n+2],["enter",r,t],e[n+3],e[n+4],["enter",i,t],["exit",i,t],["enter",l,t],["enter",a,t],["exit",a,t],["exit",l,t],e[e.length-2],e[e.length-1],["exit",r,t]];return e.splice(n,e.length-n+1,...o),e}function rP(e,t,n){let r,i=this,l=i.parser.gfmFootnotes||(i.parser.gfmFootnotes=[]),a=0;return function(t){return e.enter("gfmFootnoteCall"),e.enter("gfmFootnoteCallLabelMarker"),e.consume(t),e.exit("gfmFootnoteCallLabelMarker"),o};function o(t){return 94!==t?n(t):(e.enter("gfmFootnoteCallMarker"),e.consume(t),e.exit("gfmFootnoteCallMarker"),e.enter("gfmFootnoteCallString"),e.enter("chunkString").contentType="string",s)}function s(o){if(a>999||93===o&&!r||null===o||91===o||e$(o))return n(o);if(93===o){e.exit("chunkString");let r=e.exit("gfmFootnoteCallString");return l.includes(tx(i.sliceSerialize(r)))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(o),e.exit("gfmFootnoteCallLabelMarker"),e.exit("gfmFootnoteCall"),t):n(o)}return e$(o)||(r=!0),a++,e.consume(o),92===o?u:s}function u(t){return 91===t||92===t||93===t?(e.consume(t),a++,s):s(t)}}function rR(e,t,n){let r,i,l=this,a=l.parser.gfmFootnotes||(l.parser.gfmFootnotes=[]),o=0;return function(t){return e.enter("gfmFootnoteDefinition")._container=!0,e.enter("gfmFootnoteDefinitionLabel"),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(t),e.exit("gfmFootnoteDefinitionLabelMarker"),s};function s(t){return 94===t?(e.enter("gfmFootnoteDefinitionMarker"),e.consume(t),e.exit("gfmFootnoteDefinitionMarker"),e.enter("gfmFootnoteDefinitionLabelString"),e.enter("chunkString").contentType="string",u):n(t)}function u(t){if(o>999||93===t&&!i||null===t||91===t||e$(t))return n(t);if(93===t){e.exit("chunkString");let n=e.exit("gfmFootnoteDefinitionLabelString");return r=tx(l.sliceSerialize(n)),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(t),e.exit("gfmFootnoteDefinitionLabelMarker"),e.exit("gfmFootnoteDefinitionLabel"),d}return e$(t)||(i=!0),o++,e.consume(t),92===t?c:u}function c(t){return 91===t||92===t||93===t?(e.consume(t),o++,u):u(t)}function d(t){return 58===t?(e.enter("definitionMarker"),e.consume(t),e.exit("definitionMarker"),a.includes(r)||a.push(r),eQ(e,f,"gfmFootnoteDefinitionWhitespace")):n(t)}function f(e){return t(e)}}function rF(e,t,n){return e.check(eZ,t,e.attempt(rM,t,n))}function rO(e){e.exit("gfmFootnoteDefinition")}class r_{constructor(){this.map=[]}add(e,t,n){!function(e,t,n,r){let i=0;if(0!==n||0!==r.length){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])}}(this,e,t,n)}consume(e){if(this.map.sort(function(e,t){return e[0]-t[0]}),0===this.map.length)return;let t=this.map.length,n=[];for(;t>0;)t-=1,n.push(e.slice(this.map[t][0]+this.map[t][1]),this.map[t][2]),e.length=this.map[t][0];n.push(e.slice()),e.length=0;let r=n.pop();for(;r;){for(let t of r)e.push(t);r=n.pop()}this.map.length=0}}function rB(e,t,n){let r,i=this,l=0,a=0;return function(e){let t=i.events.length-1;for(;t>-1;){let e=i.events[t][1].type;if("lineEnding"===e||"linePrefix"===e)t--;else break}let r=t>-1?i.events[t][1].type:null,l="tableHead"===r||"tableRow"===r?y:o;return l===y&&i.parser.lazy[i.now().line]?n(e):l(e)};function o(t){var n;return e.enter("tableHead"),e.enter("tableRow"),124===(n=t)||(r=!0,a+=1),s(n)}function s(t){return null===t?n(t):eH(t)?a>1?(a=0,i.interrupt=!0,e.exit("tableRow"),e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),d):n(t):eU(t)?eQ(e,s,"whitespace")(t):(a+=1,r&&(r=!1,l+=1),124===t)?(e.enter("tableCellDivider"),e.consume(t),e.exit("tableCellDivider"),r=!0,s):(e.enter("data"),u(t))}function u(t){return null===t||124===t||e$(t)?(e.exit("data"),s(t)):(e.consume(t),92===t?c:u)}function c(t){return 92===t||124===t?(e.consume(t),u):u(t)}function d(t){return(i.interrupt=!1,i.parser.lazy[i.now().line])?n(t):(e.enter("tableDelimiterRow"),r=!1,eU(t))?eQ(e,f,"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t):f(t)}function f(t){return 45===t||58===t?h(t):124===t?(r=!0,e.enter("tableCellDivider"),e.consume(t),e.exit("tableCellDivider"),p):n(t)}function p(t){return eU(t)?eQ(e,h,"whitespace")(t):h(t)}function h(t){return 58===t?(a+=1,r=!0,e.enter("tableDelimiterMarker"),e.consume(t),e.exit("tableDelimiterMarker"),m):45===t?(a+=1,m(t)):null===t||eH(t)?x(t):n(t)}function m(t){return 45===t?(e.enter("tableDelimiterFiller"),function t(n){return 45===n?(e.consume(n),t):58===n?(r=!0,e.exit("tableDelimiterFiller"),e.enter("tableDelimiterMarker"),e.consume(n),e.exit("tableDelimiterMarker"),g):(e.exit("tableDelimiterFiller"),g(n))}(t)):n(t)}function g(t){return eU(t)?eQ(e,x,"whitespace")(t):x(t)}function x(i){if(124===i)return f(i);if(null===i||eH(i))return r&&l===a?(e.exit("tableDelimiterRow"),e.exit("tableHead"),t(i)):n(i);return n(i)}function y(t){return e.enter("tableRow"),v(t)}function v(n){return 124===n?(e.enter("tableCellDivider"),e.consume(n),e.exit("tableCellDivider"),v):null===n||eH(n)?(e.exit("tableRow"),t(n)):eU(n)?eQ(e,v,"whitespace")(n):(e.enter("data"),b(n))}function b(t){return null===t||124===t||e$(t)?(e.exit("data"),v(t)):(e.consume(t),92===t?k:b)}function k(t){return 92===t||124===t?(e.consume(t),b):b(t)}}function rH(e,t){let n,r,i,l=-1,a=!0,o=0,s=[0,0,0,0],u=[0,0,0,0],c=!1,d=0,f=new r_;for(;++l<e.length;){let p=e[l],h=p[1];"enter"===p[0]?"tableHead"===h.type?(c=!1,0!==d&&(rU(f,t,d,n,r),r=void 0,d=0),n={type:"table",start:Object.assign({},h.start),end:Object.assign({},h.end)},f.add(l,0,[["enter",n,t]])):"tableRow"===h.type||"tableDelimiterRow"===h.type?(a=!0,i=void 0,s=[0,0,0,0],u=[0,l+1,0,0],c&&(c=!1,r={type:"tableBody",start:Object.assign({},h.start),end:Object.assign({},h.end)},f.add(l,0,[["enter",r,t]])),o="tableDelimiterRow"===h.type?2:r?3:1):o&&("data"===h.type||"tableDelimiterMarker"===h.type||"tableDelimiterFiller"===h.type)?(a=!1,0===u[2]&&(0!==s[1]&&(u[0]=u[1],i=r$(f,t,s,o,void 0,i),s=[0,0,0,0]),u[2]=l)):"tableCellDivider"===h.type&&(a?a=!1:(0!==s[1]&&(u[0]=u[1],i=r$(f,t,s,o,void 0,i)),u=[(s=u)[1],l,0,0])):"tableHead"===h.type?(c=!0,d=l):"tableRow"===h.type||"tableDelimiterRow"===h.type?(d=l,0!==s[1]?(u[0]=u[1],i=r$(f,t,s,o,l,i)):0!==u[1]&&(i=r$(f,t,u,o,l,i)),o=0):o&&("data"===h.type||"tableDelimiterMarker"===h.type||"tableDelimiterFiller"===h.type)&&(u[3]=l)}for(0!==d&&rU(f,t,d,n,r),f.consume(t.events),l=-1;++l<t.events.length;){let e=t.events[l];"enter"===e[0]&&"table"===e[1].type&&(e[1]._align=function(e,t){let n=!1,r=[];for(;t<e.length;){let i=e[t];if(n){if("enter"===i[0])"tableContent"===i[1].type&&r.push("tableDelimiterMarker"===e[t+1][1].type?"left":"none");else if("tableContent"===i[1].type){if("tableDelimiterMarker"===e[t-1][1].type){let e=r.length-1;r[e]="left"===r[e]?"center":"right"}}else if("tableDelimiterRow"===i[1].type)break}else"enter"===i[0]&&"tableDelimiterRow"===i[1].type&&(n=!0);t+=1}return r}(t.events,l))}return e}function r$(e,t,n,r,i,l){0!==n[0]&&(l.end=Object.assign({},rq(t.events,n[0])),e.add(n[0],0,[["exit",l,t]]));let a=rq(t.events,n[1]);if(l={type:1===r?"tableHeader":2===r?"tableDelimiter":"tableData",start:Object.assign({},a),end:Object.assign({},a)},e.add(n[1],0,[["enter",l,t]]),0!==n[2]){let i=rq(t.events,n[2]),l=rq(t.events,n[3]),a={type:"tableContent",start:Object.assign({},i),end:Object.assign({},l)};if(e.add(n[2],0,[["enter",a,t]]),2!==r){let r=t.events[n[2]],i=t.events[n[3]];if(r[1].end=Object.assign({},i[1].end),r[1].type="chunkText",r[1].contentType="text",n[3]>n[2]+1){let t=n[2]+1,r=n[3]-n[2]-1;e.add(t,r,[])}}e.add(n[3]+1,0,[["exit",a,t]])}return void 0!==i&&(l.end=Object.assign({},rq(t.events,i)),e.add(i,0,[["exit",l,t]]),l=void 0),l}function rU(e,t,n,r,i){let l=[],a=rq(t.events,n);i&&(i.end=Object.assign({},a),l.push(["exit",i,t])),r.end=Object.assign({},a),l.push(["exit",r,t]),e.add(n+1,0,l)}function rq(e,t){let n=e[t],r="enter"===n[0]?"start":"end";return n[1][r]}let rV={name:"tasklistCheck",tokenize:function(e,t,n){let r=this;return function(t){return null===r.previous&&r._gfmTasklistFirstContentOfListItem?(e.enter("taskListCheck"),e.enter("taskListCheckMarker"),e.consume(t),e.exit("taskListCheckMarker"),i):n(t)};function i(t){return e$(t)?(e.enter("taskListCheckValueUnchecked"),e.consume(t),e.exit("taskListCheckValueUnchecked"),l):88===t||120===t?(e.enter("taskListCheckValueChecked"),e.consume(t),e.exit("taskListCheckValueChecked"),l):n(t)}function l(t){return 93===t?(e.enter("taskListCheckMarker"),e.consume(t),e.exit("taskListCheckMarker"),e.exit("taskListCheck"),a):n(t)}function a(r){return eH(r)?t(r):eU(r)?e.check({tokenize:rW},t,n)(r):n(r)}}};function rW(e,t,n){return eQ(e,function(e){return null===e?n(e):t(e)},"whitespace")}let rQ={};function rJ(e){let t,n,r,i=e||rQ,l=this.data(),a=l.micromarkExtensions||(l.micromarkExtensions=[]),o=l.fromMarkdownExtensions||(l.fromMarkdownExtensions=[]),s=l.toMarkdownExtensions||(l.toMarkdownExtensions=[]);a.push(ez([{text:rE},{document:{91:{name:"gfmFootnoteDefinition",tokenize:rR,continuation:{tokenize:rF},exit:rO}},text:{91:{name:"gfmFootnoteCall",tokenize:rP},93:{name:"gfmPotentialFootnoteCall",add:"after",tokenize:rz,resolveTo:rI}}},(t=(i||{}).singleTilde,n={name:"strikethrough",tokenize:function(e,n,r){let i=this.previous,l=this.events,a=0;return function(o){return 126===i&&"characterEscape"!==l[l.length-1][1].type?r(o):(e.enter("strikethroughSequenceTemporary"),function l(o){let s=te(i);if(126===o)return a>1?r(o):(e.consume(o),a++,l);if(a<2&&!t)return r(o);let u=e.exit("strikethroughSequenceTemporary"),c=te(o);return u._open=!c||2===c&&!!s,u._close=!s||2===s&&!!c,n(o)}(o))}},resolveAll:function(e,t){let n=-1;for(;++n<e.length;)if("enter"===e[n][0]&&"strikethroughSequenceTemporary"===e[n][1].type&&e[n][1]._close){let r=n;for(;r--;)if("exit"===e[r][0]&&"strikethroughSequenceTemporary"===e[r][1].type&&e[r][1]._open&&e[n][1].end.offset-e[n][1].start.offset==e[r][1].end.offset-e[r][1].start.offset){e[n][1].type="strikethroughSequence",e[r][1].type="strikethroughSequence";let i={type:"strikethrough",start:Object.assign({},e[r][1].start),end:Object.assign({},e[n][1].end)},l={type:"strikethroughText",start:Object.assign({},e[r][1].end),end:Object.assign({},e[n][1].start)},a=[["enter",i,t],["enter",e[r][1],t],["exit",e[r][1],t],["enter",l,t]],o=t.parser.constructs.insideSpan.null;o&&eL(a,a.length,0,tt(o,e.slice(r+1,n),t)),eL(a,a.length,0,[["exit",l,t],["enter",e[n][1],t],["exit",e[n][1],t],["exit",i,t]]),eL(e,r-1,n-r+3,a),n=r+a.length-2;break}}for(n=-1;++n<e.length;)"strikethroughSequenceTemporary"===e[n][1].type&&(e[n][1].type="data");return e}},null==t&&(t=!0),{text:{126:n},insideSpan:{null:[n]},attentionMarkers:{null:[126]}}),{flow:{null:{name:"table",tokenize:rB,resolveAll:rH}}},{text:{91:rV}}])),o.push([{transforms:[nJ],enter:{literalAutolink:n$,literalAutolinkEmail:nU,literalAutolinkHttp:nU,literalAutolinkWww:nU},exit:{literalAutolink:nQ,literalAutolinkEmail:nW,literalAutolinkHttp:nq,literalAutolinkWww:nV}},{enter:{gfmFootnoteCallString:nG,gfmFootnoteCall:nY,gfmFootnoteDefinitionLabelString:n0,gfmFootnoteDefinition:n1},exit:{gfmFootnoteCallString:n2,gfmFootnoteCall:n4,gfmFootnoteDefinitionLabelString:n3,gfmFootnoteDefinition:n6}},{canContainEols:["delete"],enter:{strikethrough:re},exit:{strikethrough:rt}},{enter:{table:ro,tableData:rd,tableHeader:rd,tableRow:ru},exit:{codeText:rf,table:rs,tableData:rc,tableHeader:rc,tableRow:rc}},{exit:{taskListCheckValueChecked:rh,taskListCheckValueUnchecked:rh,paragraph:rm}}]),s.push({extensions:[{unsafe:[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:nB,notInConstruct:nH},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct:nB,notInConstruct:nH},{character:":",before:"[ps]",after:"\\/",inConstruct:nB,notInConstruct:nH}]},(r=!1,i&&i.firstLineBlank&&(r=!0),{handlers:{footnoteDefinition:function(e,t,n,i){let l=n.createTracker(i),a=l.move("[^"),o=n.enter("footnoteDefinition"),s=n.enter("label");return a+=l.move(n.safe(n.associationId(e),{before:a,after:"]"})),s(),a+=l.move("]:"),e.children&&e.children.length>0&&(l.shift(4),a+=l.move((r?"\n":" ")+n.indentLines(n.containerFlow(e,l.current()),r?n8:n9))),o(),a},footnoteReference:n5},unsafe:[{character:"[",inConstruct:["label","phrasing","reference"]}]}),{unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:n7}],handlers:{delete:rn}},function(e){let t=e||{},n=t.tableCellPadding,r=t.tablePipeAlign,i=t.stringLength,l=n?" ":"|";return{unsafe:[{character:"\r",inConstruct:"tableCell"},{character:"\n",inConstruct:"tableCell"},{atBreak:!0,character:"|",after:"[ :-]"},{character:"|",inConstruct:"tableCell"},{atBreak:!0,character:":",after:"-"},{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{inlineCode:function(e,t,n){let r=rl(e,t,n);return n.stack.includes("tableCell")&&(r=r.replace(/\|/g,"\\$&")),r},table:function(e,t,n,r){return o(function(e,t,n){let r=e.children,i=-1,l=[],a=t.enter("table");for(;++i<r.length;)l[i]=s(r[i],t,n);return a(),l}(e,n,r),e.align)},tableCell:a,tableRow:function(e,t,n,r){let i=o([s(e,n,r)]);return i.slice(0,i.indexOf("\n"))}}};function a(e,t,n,r){let i=n.enter("tableCell"),a=n.enter("phrasing"),o=n.containerPhrasing(e,{...r,before:l,after:l});return a(),i(),o}function o(e,t){return function(e,t){let n=t||{},r=(n.align||[]).concat(),i=n.stringLength||rr,l=[],a=[],o=[],s=[],u=0,c=-1;for(;++c<e.length;){let t=[],r=[],l=-1;for(e[c].length>u&&(u=e[c].length);++l<e[c].length;){var d;let a=null==(d=e[c][l])?"":String(d);if(!1!==n.alignDelimiters){let e=i(a);r[l]=e,(void 0===s[l]||e>s[l])&&(s[l]=e)}t.push(a)}a[c]=t,o[c]=r}let f=-1;if("object"==typeof r&&"length"in r)for(;++f<u;)l[f]=ri(r[f]);else{let e=ri(r);for(;++f<u;)l[f]=e}f=-1;let p=[],h=[];for(;++f<u;){let e=l[f],t="",r="";99===e?(t=":",r=":"):108===e?t=":":114===e&&(r=":");let i=!1===n.alignDelimiters?1:Math.max(1,s[f]-t.length-r.length),a=t+"-".repeat(i)+r;!1!==n.alignDelimiters&&((i=t.length+i+r.length)>s[f]&&(s[f]=i),h[f]=i),p[f]=a}a.splice(1,0,p),o.splice(1,0,h),c=-1;let m=[];for(;++c<a.length;){let e=a[c],t=o[c];f=-1;let r=[];for(;++f<u;){let i=e[f]||"",a="",o="";if(!1!==n.alignDelimiters){let e=s[f]-(t[f]||0),n=l[f];114===n?a=" ".repeat(e):99===n?e%2?(a=" ".repeat(e/2+.5),o=" ".repeat(e/2-.5)):o=a=" ".repeat(e/2):o=" ".repeat(e)}!1===n.delimiterStart||f||r.push("|"),!1!==n.padding&&(!1!==n.alignDelimiters||""!==i)&&(!1!==n.delimiterStart||f)&&r.push(" "),!1!==n.alignDelimiters&&r.push(a),r.push(i),!1!==n.alignDelimiters&&r.push(o),!1!==n.padding&&r.push(" "),(!1!==n.delimiterEnd||f!==u-1)&&r.push("|")}m.push(!1===n.delimiterEnd?r.join("").replace(/ +$/,""):r.join(""))}return m.join("\n")}(e,{align:t,alignDelimiters:r,padding:n,stringLength:i})}function s(e,t,n){let r=e.children,i=-1,l=[],o=t.enter("tableRow");for(;++i<r.length;)l[i]=a(r[i],e,t,n);return o(),l}}(i),{unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:rg}}]})}let rK=s("link-2",[["path",{d:"M9 17H7A5 5 0 0 1 7 7h2",key:"8i5ue5"}],["path",{d:"M15 7h2a5 5 0 1 1 0 10h-2",key:"1b9ql8"}],["line",{x1:"8",x2:"16",y1:"12",y2:"12",key:"1jonct"}]]),rX=s("check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]);var rZ=e.i(72003),rG=e.i(30007),rY=e.i(25133);e.i(36420),e.i(7744),e.i(43595),e.i(84411),e.i(18688),e.i(69786);var r0=e.i(41130),r1=e.i(19886),r2=e.i(6961),r4=e.i(8324),r3=e.i(19524),r6=e.i(40524);e.i(47716);var r5=e.i(23685),r9="comm",r8="rule",r7="decl",ie="@keyframes",it="@layer",ir=Math.abs,ii=String.fromCharCode;function il(e,t,n){return e.replace(t,n)}function ia(e,t){return 0|e.charCodeAt(t)}function io(e,t,n){return e.slice(t,n)}function is(e){return e.length}function iu(e,t){return t.push(e),e}var ic=1,id=1,ip=0,ih=0,im=0,ig="";function ix(e,t,n,r,i,l,a,o){return{value:e,root:t,parent:n,type:r,props:i,children:l,line:ic,column:id,length:a,return:"",siblings:o}}function iy(){return im=ih<ip?ia(ig,ih++):0,id++,10===im&&(id=1,ic++),im}function iv(){return ia(ig,ih)}function ib(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function ik(e){var t,n;return(t=ih-1,n=function e(t){for(;iy();)switch(im){case t:return ih;case 34:case 39:34!==t&&39!==t&&e(im);break;case 40:41===t&&e(t);break;case 92:iy()}return ih}(91===e?e+2:40===e?e+1:e),io(ig,t,n)).trim()}function iw(e,t,n,r,i,l,a,o,s,u,c,d){for(var f=i-1,p=0===i?l:[""],h=p.length,m=0,g=0,x=0;m<r;++m)for(var y=0,v=io(e,f+1,f=ir(g=a[m])),b=e;y<h;++y)(b=(g>0?p[y]+" "+v:il(v,/&\f/g,p[y])).trim())&&(s[x++]=b);return ix(e,t,n,0===i?r8:o,s,u,c,d)}function iS(e,t,n,r,i){return ix(e,t,n,r7,io(e,0,r),io(e,r+1,-1),r,i)}function iC(e,t){for(var n="",r=0;r<e.length;r++)n+=t(e[r],r,e,t)||"";return n}function iE(e,t,n,r){switch(e.type){case it:if(e.children.length)break;case"@import":case"@namespace":case r7:return e.return=e.return||e.value;case r9:return"";case ie:return e.return=e.value+"{"+iC(e.children,r)+"}";case r8:if(!is(e.value=e.props.join(",")))return""}return is(n=iC(e.children,r))?e.return=e.value+"{"+n+"}":""}var ij=e.i(24154),iA=e.i(47608),iT=e.i(32780),iN=e.i(68482),iL=e.i(38489);function iD(e){if(null==e)return!0;if((0,iT.f)(e))return("function"==typeof e.splice||"string"==typeof e||!!(0,iA.f)(e)||!!(0,iL.f)(e)||!!(0,iN.f)(e))&&0===e.length;if("object"==typeof e||"function"==typeof e){let t;if(e instanceof Map||e instanceof Set)return 0===e.size;let n=Object.keys(e);return(t=e?.constructor,e===("function"==typeof t?t.prototype:Object.prototype))?0===n.filter(e=>"constructor"!==e).length:0===n.length}return!0}var iM={id:"c4",detector:(0,r3.p)(e=>/^\s*C4Context|C4Container|C4Component|C4Dynamic|C4Deployment/.test(e),"detector"),loader:(0,r3.p)(async()=>{let{diagram:t}=await e.A(77184);return{id:"c4",diagram:t}},"loader")},iz="flowchart",iI=(0,r3.p)((e,t)=>t?.flowchart?.defaultRenderer!=="dagre-wrapper"&&t?.flowchart?.defaultRenderer!=="elk"&&/^\s*graph/.test(e),"detector"),iP=(0,r3.p)(async()=>{let{diagram:t}=await e.A(23057);return{id:iz,diagram:t}},"loader"),iR={id:iz,detector:iI,loader:iP},iF="flowchart-v2",iO=(0,r3.p)((e,t)=>t?.flowchart?.defaultRenderer!=="dagre-d3"&&(t?.flowchart?.defaultRenderer==="elk"&&(t.layout="elk"),!!/^\s*graph/.test(e)&&t?.flowchart?.defaultRenderer==="dagre-wrapper"||/^\s*flowchart/.test(e)),"detector"),i_=(0,r3.p)(async()=>{let{diagram:t}=await e.A(23057);return{id:iF,diagram:t}},"loader"),iB={id:iF,detector:iO,loader:i_},iH="swimlane",i$=(0,r3.p)(e=>/^\s*swimlane-beta\b/.test(e),"detector"),iU=(0,r3.p)(async()=>{let{diagram:t}=await e.A(72624);return{id:iH,diagram:t}},"loader"),iq={id:iH,detector:i$,loader:iU},iV={id:"er",detector:(0,r3.p)(e=>/^\s*erDiagram/.test(e),"detector"),loader:(0,r3.p)(async()=>{let{diagram:t}=await e.A(35924);return{id:"er",diagram:t}},"loader")},iW="gitGraph",iQ=(0,r3.p)(e=>/^\s*gitGraph/.test(e),"detector"),iJ=(0,r3.p)(async()=>{let{diagram:t}=await e.A(13639);return{id:iW,diagram:t}},"loader"),iK={id:iW,detector:iQ,loader:iJ},iX="gantt",iZ=(0,r3.p)(e=>/^\s*gantt/.test(e),"detector"),iG=(0,r3.p)(async()=>{let{diagram:t}=await e.A(9613);return{id:iX,diagram:t}},"loader"),iY={id:iX,detector:iZ,loader:iG},i0="info",i1=(0,r3.p)(e=>/^\s*info/.test(e),"detector"),i2=(0,r3.p)(async()=>{let{diagram:t}=await e.A(82566);return{id:i0,diagram:t}},"loader"),i4={id:i0,detector:i1,loader:i2},i3={id:"pie",detector:(0,r3.p)(e=>/^\s*pie/.test(e),"detector"),loader:(0,r3.p)(async()=>{let{diagram:t}=await e.A(77817);return{id:"pie",diagram:t}},"loader")},i6="quadrantChart",i5=(0,r3.p)(e=>/^\s*quadrantChart/.test(e),"detector"),i9=(0,r3.p)(async()=>{let{diagram:t}=await e.A(14619);return{id:i6,diagram:t}},"loader"),i8={id:i6,detector:i5,loader:i9},i7="xychart",le=(0,r3.p)(e=>/^\s*xychart(-beta)?/.test(e),"detector"),lt=(0,r3.p)(async()=>{let{diagram:t}=await e.A(8874);return{id:i7,diagram:t}},"loader"),ln={id:i7,detector:le,loader:lt},lr="requirement",li=(0,r3.p)(e=>/^\s*requirement(Diagram)?/.test(e),"detector"),ll=(0,r3.p)(async()=>{let{diagram:t}=await e.A(33485);return{id:lr,diagram:t}},"loader"),la={id:lr,detector:li,loader:ll},lo="sequence",ls=(0,r3.p)(e=>/^\s*sequenceDiagram/.test(e),"detector"),lu=(0,r3.p)(async()=>{let{diagram:t}=await e.A(46986);return{id:lo,diagram:t}},"loader"),lc={id:lo,detector:ls,loader:lu},ld="class",lf=(0,r3.p)((e,t)=>t?.class?.defaultRenderer!=="dagre-wrapper"&&/^\s*classDiagram/.test(e),"detector"),lp=(0,r3.p)(async()=>{let{diagram:t}=await e.A(90784);return{id:ld,diagram:t}},"loader"),lh={id:ld,detector:lf,loader:lp},lm="classDiagram",lg=(0,r3.p)((e,t)=>!!/^\s*classDiagram/.test(e)&&t?.class?.defaultRenderer==="dagre-wrapper"||/^\s*classDiagram-v2/.test(e),"detector"),lx=(0,r3.p)(async()=>{let{diagram:t}=await e.A(43552);return{id:lm,diagram:t}},"loader"),ly={id:lm,detector:lg,loader:lx},lv="state",lb=(0,r3.p)((e,t)=>t?.state?.defaultRenderer!=="dagre-wrapper"&&/^\s*stateDiagram/.test(e),"detector"),lk=(0,r3.p)(async()=>{let{diagram:t}=await e.A(52785);return{id:lv,diagram:t}},"loader"),lw={id:lv,detector:lb,loader:lk},lS="stateDiagram",lC=(0,r3.p)((e,t)=>!!(/^\s*stateDiagram-v2/.test(e)||/^\s*stateDiagram/.test(e)&&t?.state?.defaultRenderer==="dagre-wrapper"),"detector"),lE=(0,r3.p)(async()=>{let{diagram:t}=await e.A(9063);return{id:lS,diagram:t}},"loader"),lj={id:lS,detector:lC,loader:lE},lA="journey",lT=(0,r3.p)(e=>/^\s*journey/.test(e),"detector"),lN=(0,r3.p)(async()=>{let{diagram:t}=await e.A(67890);return{id:lA,diagram:t}},"loader"),lL={id:lA,detector:lT,loader:lN},lD={draw:(0,r3.p)((e,t,n)=>{r4.d.debug("rendering svg for syntax error\n");let r=(0,rZ.f)(t),i=r.append("g");r.attr("viewBox","0 0 2412 512"),(0,r2.m)(r,100,512,!0),i.append("path").attr("class","error-icon").attr("d","m411.313,123.313c6.25-6.25 6.25-16.375 0-22.625s-16.375-6.25-22.625,0l-32,32-9.375,9.375-20.688-20.688c-12.484-12.5-32.766-12.5-45.25,0l-16,16c-1.261,1.261-2.304,2.648-3.31,4.051-21.739-8.561-45.324-13.426-70.065-13.426-105.867,0-192,86.133-192,192s86.133,192 192,192 192-86.133 192-192c0-24.741-4.864-48.327-13.426-70.065 1.402-1.007 2.79-2.049 4.051-3.31l16-16c12.5-12.492 12.5-32.758 0-45.25l-20.688-20.688 9.375-9.375 32.001-31.999zm-219.313,100.687c-52.938,0-96,43.063-96,96 0,8.836-7.164,16-16,16s-16-7.164-16-16c0-70.578 57.422-128 128-128 8.836,0 16,7.164 16,16s-7.164,16-16,16z"),i.append("path").attr("class","error-icon").attr("d","m459.02,148.98c-6.25-6.25-16.375-6.25-22.625,0s-6.25,16.375 0,22.625l16,16c3.125,3.125 7.219,4.688 11.313,4.688 4.094,0 8.188-1.563 11.313-4.688 6.25-6.25 6.25-16.375 0-22.625l-16.001-16z"),i.append("path").attr("class","error-icon").attr("d","m340.395,75.605c3.125,3.125 7.219,4.688 11.313,4.688 4.094,0 8.188-1.563 11.313-4.688 6.25-6.25 6.25-16.375 0-22.625l-16-16c-6.25-6.25-16.375-6.25-22.625,0s-6.25,16.375 0,22.625l15.999,16z"),i.append("path").attr("class","error-icon").attr("d","m400,64c8.844,0 16-7.164 16-16v-32c0-8.836-7.156-16-16-16-8.844,0-16,7.164-16,16v32c0,8.836 7.156,16 16,16z"),i.append("path").attr("class","error-icon").attr("d","m496,96.586h-32c-8.844,0-16,7.164-16,16 0,8.836 7.156,16 16,16h32c8.844,0 16-7.164 16-16 0-8.836-7.156-16-16-16z"),i.append("path").attr("class","error-icon").attr("d","m436.98,75.605c3.125,3.125 7.219,4.688 11.313,4.688 4.094,0 8.188-1.563 11.313-4.688l32-32c6.25-6.25 6.25-16.375 0-22.625s-16.375-6.25-22.625,0l-32,32c-6.251,6.25-6.251,16.375-0.001,22.625z"),i.append("text").attr("class","error-text").attr("x",1440).attr("y",250).attr("font-size","150px").style("text-anchor","middle").text("Syntax error in text"),i.append("text").attr("class","error-text").attr("x",1250).attr("y",400).attr("font-size","100px").style("text-anchor","middle").text(`mermaid version ${n}`)},"draw")},lM={db:{},renderer:lD,parser:{parse:(0,r3.p)(()=>{},"parse")}},lz="flowchart-elk",lI=(0,r3.p)((e,t={})=>!!(/^\s*flowchart-elk/.test(e)||/^\s*(flowchart|graph)/.test(e)&&t?.flowchart?.defaultRenderer==="elk")&&(t.layout="elk",!0),"detector"),lP=(0,r3.p)(async()=>{let{diagram:t}=await e.A(23057);return{id:lz,diagram:t}},"loader"),lR={id:lz,detector:lI,loader:lP},lF="timeline",lO=(0,r3.p)(e=>/^\s*timeline/.test(e),"detector"),l_=(0,r3.p)(async()=>{let{diagram:t}=await e.A(8288);return{id:lF,diagram:t}},"loader"),lB={id:lF,detector:lO,loader:l_},lH="mindmap",l$=(0,r3.p)(e=>/^\s*mindmap/.test(e),"detector"),lU=(0,r3.p)(async()=>{let{diagram:t}=await e.A(12897);return{id:lH,diagram:t}},"loader"),lq={id:lH,detector:l$,loader:lU},lV="kanban",lW=(0,r3.p)(e=>/^\s*kanban/.test(e),"detector"),lQ=(0,r3.p)(async()=>{let{diagram:t}=await e.A(40492);return{id:lV,diagram:t}},"loader"),lJ={id:lV,detector:lW,loader:lQ},lK="sankey",lX=(0,r3.p)(e=>/^\s*sankey(-beta)?/.test(e),"detector"),lZ=(0,r3.p)(async()=>{let{diagram:t}=await e.A(37976);return{id:lK,diagram:t}},"loader"),lG={id:lK,detector:lX,loader:lZ},lY="packet",l0=(0,r3.p)(e=>/^\s*packet(-beta)?/.test(e),"detector"),l1=(0,r3.p)(async()=>{let{diagram:t}=await e.A(39490);return{id:lY,diagram:t}},"loader"),l2={id:lY,detector:l0,loader:l1},l4="radar",l3=(0,r3.p)(e=>/^\s*radar-beta/.test(e),"detector"),l6=(0,r3.p)(async()=>{let{diagram:t}=await e.A(59577);return{id:l4,diagram:t}},"loader"),l5={id:l4,detector:l3,loader:l6},l9="block",l8=(0,r3.p)(e=>/^\s*block(-beta)?/.test(e),"detector"),l7=(0,r3.p)(async()=>{let{diagram:t}=await e.A(68602);return{id:l9,diagram:t}},"loader"),ae={id:l9,detector:l8,loader:l7},at="treeView",an=(0,r3.p)(e=>/^\s*treeView-beta/.test(e),"detector"),ar=(0,r3.p)(async()=>{let{diagram:t}=await e.A(99499);return{id:at,diagram:t}},"loader"),ai={id:at,detector:an,loader:ar},al="architecture",aa=(0,r3.p)(e=>/^\s*architecture/.test(e),"detector"),ao=(0,r3.p)(async()=>{let{diagram:t}=await e.A(99073);return{id:al,diagram:t}},"loader"),as={id:al,detector:aa,loader:ao},au="eventmodeling",ac=(0,r3.p)(e=>/^\s*eventmodeling/.test(e),"detector"),ad=(0,r3.p)(async()=>{let{diagram:t}=await e.A(36959);return{id:au,diagram:t}},"loader"),af={id:au,detector:ac,loader:ad},ap="ishikawa",ah=(0,r3.p)(e=>/^\s*ishikawa(-beta)?\b/i.test(e),"detector"),am=(0,r3.p)(async()=>{let{diagram:t}=await e.A(31219);return{id:ap,diagram:t}},"loader"),ag={id:ap,detector:ah,loader:am},ax="venn",ay=(0,r3.p)(e=>/^\s*venn-beta/.test(e),"detector"),av=(0,r3.p)(async()=>{let{diagram:t}=await e.A(31733);return{id:ax,diagram:t}},"loader"),ab={id:ax,detector:ay,loader:av},ak="treemap",aw=(0,r3.p)(e=>/^\s*treemap/.test(e),"detector"),aS=(0,r3.p)(async()=>{let{diagram:t}=await e.A(36896);return{id:ak,diagram:t}},"loader"),aC={id:ak,detector:aw,loader:aS},aE="wardley",aj=(0,r3.p)(e=>/^\s*wardley-beta/i.test(e),"detector"),aA=(0,r3.p)(async()=>{let{diagram:t}=await e.A(99089);return{id:aE,diagram:t}},"loader"),aT={id:aE,detector:aj,loader:aA},aN="cynefin",aL=(0,r3.p)(e=>/^\s*cynefin-beta(?:[\s:]|$)/.test(e),"detector"),aD=(0,r3.p)(async()=>{let{diagram:t}=await e.A(49451);return{id:aN,diagram:t}},"loader"),aM={id:aN,detector:aL,loader:aD},az="railroad",aI=(0,r3.p)(e=>/^\s*railroad-beta/i.test(e),"detector"),aP=(0,r3.p)(async()=>{let{diagram:t}=await e.A(59065);return{id:az,diagram:t}},"loader"),aR={id:az,detector:aI,loader:aP},aF="railroadEbnf",aO=(0,r3.p)(e=>/^\s*railroad-ebnf-beta/i.test(e),"detector"),a_=(0,r3.p)(async()=>{let{diagram:t}=await e.A(92339);return{id:aF,diagram:t}},"loader"),aB={id:aF,detector:aO,loader:a_},aH="railroadAbnf",a$=(0,r3.p)(e=>/^\s*railroad-abnf-beta/i.test(e),"detector"),aU=(0,r3.p)(async()=>{let{diagram:t}=await e.A(53634);return{id:aH,diagram:t}},"loader"),aq={id:aH,detector:a$,loader:aU},aV="railroadPeg",aW=(0,r3.p)(e=>/^\s*railroad-peg-beta/i.test(e),"detector"),aQ=(0,r3.p)(async()=>{let{diagram:t}=await e.A(89544);return{id:aV,diagram:t}},"loader"),aJ={id:aV,detector:aW,loader:aQ},aK=!1,aX=(0,r3.p)(()=>{aK||(aK=!0,(0,r2.U)("error",lM,e=>"error"===e.toLowerCase().trim()),(0,r2.U)("---",{db:{clear:(0,r3.p)(()=>{},"clear")},styles:{},renderer:{draw:(0,r3.p)(()=>{},"draw")},parser:{parse:(0,r3.p)(()=>{throw Error("Diagrams beginning with --- are not valid. If you were trying to use a YAML front-matter, please ensure that you've correctly opened and closed the YAML front-matter with un-indented `---` blocks")},"parse")},init:(0,r3.p)(()=>null,"init")},e=>e.toLowerCase().trimStart().startsWith("---")),(0,r2.$)(lR,lq,as),(0,r2.$)(iM,lJ,ly,lh,iV,iY,i4,i3,la,lc,iq,iB,iR,lB,iK,lj,lw,lL,i8,lG,l2,ln,ae,af,ai,l5,ag,aC,aR,aB,aq,aJ,ab,aT,aM))},"addDiagrams"),aZ=(0,r3.p)(async()=>{r4.d.debug("Loading registered diagrams");let e=(await Promise.allSettled(Object.entries(r2.k).map(async([e,{detector:t,loader:n}])=>{if(n)try{(0,r2.e)(e)}catch{try{let{diagram:e,id:r}=await n();(0,r2.U)(r,e,t)}catch(t){throw r4.d.error(`Failed to load external diagram with key ${e}. Removing from detectors.`),delete r2.k[e],t}}}))).filter(e=>"rejected"===e.status);if(e.length>0){for(let t of(r4.d.error(`Failed to load ${e.length} external diagrams`),e))r4.d.error(t);throw Error(`Failed to load ${e.length} external diagrams`)}},"loadRegisteredDiagrams");function aG(e,t){e.attr("role","graphics-document document"),""!==t&&e.attr("aria-roledescription",t)}function aY(e,t,n,r){if(void 0!==e.insert){if(n){let t=`chart-desc-${r}`;e.attr("aria-describedby",t),e.insert("desc",":first-child").attr("id",t).text(n)}if(t){let n=`chart-title-${r}`;e.attr("aria-labelledby",n),e.insert("title",":first-child").attr("id",n).text(t)}}}(0,r3.p)(aG,"setA11yDiagramInfo"),(0,r3.p)(aY,"addSVGa11yTitleDescription");var a0=class e{constructor(e,t,n,r,i){this.type=e,this.text=t,this.db=n,this.parser=r,this.renderer=i}static{(0,r3.p)(this,"Diagram")}static async fromText(t,n={}){let r=(0,r2.N)(),i=(0,r2.n)(t,r);t=(0,r1.S)(t)+"\n";try{(0,r2.e)(i)}catch{let e=(0,r2.x)(i);if(!e)throw new r2.y(`Diagram ${i} not found.`);let{id:t,diagram:n}=await e();(0,r2.U)(t,n)}let{db:l,parser:a,renderer:o,init:s}=(0,r2.e)(i);return a.parser&&(a.parser.yy=l),l.clear?.(),s?.(r),n.title&&l.setDiagramTitle?.(n.title),await a.parse(t),new e(i,t,l,a,o)}async render(e,t){await this.renderer.draw(this.text,e,t,this)}getParser(){return this.parser}getType(){return this.type}},a1=[],a2=(0,r3.p)(()=>{a1.forEach(e=>{e()}),a1=[]},"attachFunctions"),a4=(0,r3.p)(e=>e.replace(/^\s*%%(?!{)[^\n]+\n?/gm,"").trimStart(),"cleanupComments");function a3(e){let t=e.match(r2.c);if(!t)return{text:e,metadata:{}};let n=t[1],r=n?t[2].split("\n").map(e=>e.startsWith(n)?e.slice(n.length):e).join("\n"):t[2],i=(0,rG.z)(r,{schema:rG.Q})??{};i="object"!=typeof i||Array.isArray(i)?{}:i;let l={};return i.displayMode&&(l.displayMode=i.displayMode.toString()),i.title&&(l.title=i.title.toString()),i.config&&(l.config=i.config),{text:e.slice(t[0].length),metadata:l}}(0,r3.p)(a3,"extractFrontMatter");var a6=(0,r3.p)(e=>e.replace(/\r\n?/g,"\n").replace(/<(\w+)([^>]*)>/g,(e,t,n)=>"<"+t+n.replace(/="([^"]*)"/g,"='$1'")+">"),"cleanupText"),a5=(0,r3.p)(e=>{let{text:t,metadata:n}=a3(e),{displayMode:r,title:i,config:l={}}=n;return r&&(l.gantt||(l.gantt={}),l.gantt.displayMode=r),{title:i,config:l,text:t}},"processFrontmatter"),a9=(0,r3.p)(e=>{let t=r1.u.detectInit(e)??{},n=r1.u.detectDirective(e,"wrap");return Array.isArray(n)?t.wrap=n.some(({type:e})=>"wrap"===e):n?.type==="wrap"&&(t.wrap=!0),{text:(0,r1.k)(e),directive:t}},"processDirectives");function a8(e){let t=a5(a6(e)),n=a9(t.text),r=(0,r1.z)(t.config,n.directive);return{code:e=a4(n.text),title:t.title,config:r}}function a7(e){return btoa(Array.from(new TextEncoder().encode(e),e=>String.fromCodePoint(e)).join(""))}(0,r3.p)(a8,"preprocessDiagram"),(0,r3.p)(a7,"toBase64");var oe=["foreignobject"],ot=["dominant-baseline"];function on(e){let t=a8(e);return(0,r2.X)(),(0,r2.h)(t.config??{}),t}async function or(e,t){aX();try{let{code:t,config:n}=on(e);return{diagramType:(await om(t)).type,config:n}}catch(e){if(t?.suppressErrors)return!1;throw e}}(0,r3.p)(on,"processAndSetConfigs"),(0,r3.p)(or,"parse");var oi=(0,r3.p)((e,t,n=[])=>{let r=(0,r2.u)(`{ ${n.join(" !important; ")} !important; }`);return`.${e} ${t} ${r}`},"cssImportantStyles"),ol=(0,r3.p)((e,t=new Map)=>{let n=new CSSStyleSheet;if(void 0!==e.fontFamily&&n.insertRule(`:root { --mermaid-font-family: ${e.fontFamily}}`,n.cssRules.length),void 0!==e.altFontFamily&&n.insertRule(`:root { --mermaid-alt-font-family: ${e.altFontFamily}}`,n.cssRules.length),t instanceof Map){let r=(0,r2.o)(e)?["> *","span"]:["rect","polygon","ellipse","circle","path"];t.forEach(e=>{iD(e.styles)||r.forEach(t=>{n.insertRule(oi(e.id,t,e.styles),n.cssRules.length)}),iD(e.textStyles)||n.insertRule(oi(e.id,"tspan",(e?.textStyles||[]).map(e=>e.replace("color","fill"))),n.cssRules.length)})}let r="";if(void 0!==e.themeCSS)if("function"==typeof n.replaceSync){let t=new CSSStyleSheet;t.replaceSync(e.themeCSS),r=(0,r2.I)(t)+"\n"}else r+=`${e.themeCSS}
6
6
  `;return r+(0,r2.I)(n)},"createCssStyles"),oa=(0,r3.p)((e,t)=>{var n,r,i,l,a;return iC((i=function e(t,n,r,i,l,a,o,s,u){for(var c,d,f,p,h,m,g=0,x=0,y=o,v=0,b=0,k=0,w=1,S=1,C=1,E=0,j="",A=l,T=a,N=i,L=j;S;)switch(k=E,E=iy()){case 40:if(108!=k&&58==ia(L,y-1)){-1!=(h=L+=il(ik(E),"&","&\f"),m=ir(g?s[g-1]:0),h.indexOf("&\f",m))&&(C=-1);break}case 34:case 39:case 91:L+=ik(E);break;case 9:case 10:case 13:case 32:L+=function(e){for(;im=iv();)if(im<33)iy();else break;return ib(e)>2||ib(im)>3?"":" "}(k);break;case 92:L+=function(e,t){for(var n;--t&&iy()&&!(im<48)&&!(im>102)&&(!(im>57)||!(im<65))&&(!(im>70)||!(im<97)););return n=ih+(t<6&&32==iv()&&32==iy()),io(ig,e,n)}(ih-1,7);continue;case 47:switch(iv()){case 42:case 47:iu((c=function(e,t){for(;iy();)if(e+im===57)break;else if(e+im===84&&47===iv())break;return"/*"+io(ig,t,ih-1)+"*"+ii(47===e?e:iy())}(iy(),ih),d=n,f=r,p=u,ix(c,d,f,r9,ii(im),io(c,2,-2),0,p)),u),(5==ib(k||1)||5==ib(iv()||1))&&is(L)&&" "!==io(L,-1,void 0)&&(L+=" ");break;default:L+="/"}break;case 123*w:s[g++]=is(L)*C;case 125*w:case 59:case 0:switch(E){case 0:case 125:S=0;case 59+x:-1==C&&(L=il(L,/\f/g,"")),b>0&&(is(L)-y||0===w&&47===k)&&iu(b>32?iS(L+";",i,r,y-1,u):iS(il(L," ","")+";",i,r,y-2,u),u);break;case 59:L+=";";default:if(iu(N=iw(L,n,r,g,x,l,s,j,A=[],T=[],y,a),a),123===E)if(0===x)e(L,n,N,N,A,a,y,s,T);else{switch(v){case 99:if(110===ia(L,3))break;case 108:if(97===ia(L,2))break;default:x=0;case 100:case 109:case 115:}x?e(t,N,N,i&&iu(iw(t,N,N,0,0,l,s,j,l,A=[],y,T),T),l,T,y,s,i?A:T):e(L,N,N,N,[""],T,0,s,T)}}g=x=b=0,w=C=1,j=L="",y=o;break;case 58:y=1+is(L),b=k;default:if(w<1){if(123==E)--w;else if(125==E&&0==w++&&125==(im=ih>0?ia(ig,--ih):0,id--,10===im&&(id=1,ic--),im))continue}switch(L+=ii(E),E*w){case 38:C=x>0?1:(L+="\f",-1);break;case 44:s[g++]=(is(L)-1)*C,C=1;break;case 64:45===iv()&&(L+=ik(iy())),v=iv(),x=y=is(j=L+=function(e){for(;!ib(iv());)iy();return io(ig,e,ih)}(ih)),E++;break;case 45:45===k&&2==is(L)&&(w=0)}}return a}("",null,null,null,[""],(r=n=`${e}{${t}}`,ic=id=1,ip=is(ig=r),ih=0,n=[]),0,[0],n),ig="",i),(a=(l=[(0,r3.p)(function(t,n,r,i){"rule"===t.type&&Array.isArray(t.props)?t.parent&&t.parent.type===ie||(t.props=t.props.map(n=>n===e&&Array.isArray(t.children)&&t.children.every(e=>"decl"===e.type&&(new Set(["font-family","font-size","fill"])).has(e.props))||(n.startsWith(`${e} `)||n.startsWith(`${e}>`))&&!n.startsWith(`${e} ||`)?n:`${e} ${n}`)):t.type.startsWith("@")&&(["@media","@supports",it,"@scope","@container","@starting-style",ie].includes(t.type)||(r4.d.warn(`Removing unsupported at-rule ${t.type} from CSS`),t.type=r9))},"addNamespace"),iE]).length,function(e,t,n,r){for(var i="",o=0;o<a;o++)i+=l[o](e,t,n,r)||"";return i}))},"compileCSS"),oo=(0,r3.p)((e,t,n,r)=>{let i=ol(e,n),l=(0,r2.K)(t,i,{...e.themeVariables,theme:e.theme,look:e.look},r);return oa(r,l)},"createUserStyles"),os=(0,r3.p)((e="",t,n)=>{let r=e;return n||t||(r=r.replace(/marker-end="url\([\d+./:=?A-Za-z-]*?#/g,'marker-end="url(#')),r=(r=(0,r1.Q)(r)).replace(/<br>/g,"<br/>")},"cleanUpSvgCode"),ou=(0,r3.p)((e="",t)=>{let n=t?.viewBox?.baseVal?.height?t.viewBox.baseVal.height+"px":"100%",r=a7(`<body style="margin:0">${e}</body>`);return`<iframe style="width:100%;height:${n};border:0;margin:0;" src="data:text/html;charset=UTF-8;base64,${r}" sandbox="allow-top-navigation-by-user-activation allow-popups">
7
7
  The "iframe" tag is not supported by your browser.
8
- </iframe>`},"putIntoIFrame"),oc=(0,r3.p)((e,t,n,r,i)=>{let l=e.append("div");l.attr("id",n),r&&l.attr("style",r);let a=l.append("svg").attr("id",t).attr("width","100%").attr("xmlns","http://www.w3.org/2000/svg");return i&&a.attr("xmlns:xlink",i),a.append("g"),e},"appendDivSvgG");function od(e,t){return e.append("iframe").attr("id",t).attr("style","width: 100%; height: 100%;").attr("sandbox","")}(0,r3.p)(od,"sandboxedIframe");var of=(0,r3.p)((e,t,n,r)=>{e.getElementById(t)?.remove(),e.getElementById(n)?.remove(),e.getElementById(r)?.remove()},"removeExistingElements"),op=(0,r3.p)(async function(e,t,n){let r,i;aX();let l=on(t);t=l.code;let a=(0,r2.N)();r4.d.debug(a),t.length>(a?.maxTextSize??5e4)&&(t="graph TB;a[Maximum text size in diagram exceeded];style a fill:#faa");let o=`#${e}`,s="i"+e,u="#"+s,c="d"+e,d="#"+c,f=(0,r3.p)(()=>{let e=h?u:d,t=(0,r5.f)(e).node();t&&"remove"in t&&t.remove()},"removeTempElements"),p=(0,r5.f)(document.body),h="sandbox"===a.securityLevel,m="loose"===a.securityLevel,g=a.fontFamily;if(void 0!==n){if(n&&(n.innerHTML=""),h){let e=od((0,r5.f)(n),s);(p=(0,r5.f)(e.nodes()[0].contentDocument.body)).node().style.margin="0"}else p=(0,r5.f)(n);oc(p,e,c,`font-family: ${g}`,"http://www.w3.org/1999/xlink")}else{if(of(document,e,c,s),h){let e=od((0,r5.f)(document.body),s);(p=(0,r5.f)(e.nodes()[0].contentDocument.body)).node().style.margin="0"}else p=(0,r5.f)("body");oc(p,e,c)}try{r=await a0.fromText(t,{title:l.title})}catch(e){if(a.suppressErrorRendering)throw f(),e;r=await a0.fromText("error"),i=e}let x=p.select(d).node(),y=r.type,v=x.firstChild,b=v.firstChild,k=oo(a,y,r.renderer.getClasses?.(t,r),o),w=document.createElement("style");w.innerHTML=k,v.insertBefore(w,b);try{await r.renderer.draw(t,e,"11.16.1",r)}catch(n){throw a.suppressErrorRendering?f():lD.draw(t,e,"11.16.1"),n}og(y,p.select(`${d} svg`),r.db.getAccTitle?.(),r.db.getAccDescription?.()),p.select(`[id="${e}"]`).selectAll("foreignobject > *").attr("xmlns","http://www.w3.org/1999/xhtml");let S=p.select(d).node().innerHTML;if(r4.d.debug("config.arrowMarkerAbsolute",a.arrowMarkerAbsolute),S=os(S,h,(0,r2.i)(a.arrowMarkerAbsolute)),h?S=ou(S,p.select(d+" svg").node()):m||(S=ij.f.sanitize(S,{ADD_TAGS:oe,ADD_ATTR:ot,HTML_INTEGRATION_POINTS:{foreignobject:!0}})),a2(),i)throw i;return f(),{diagramType:y,svg:S,bindFunctions:r.db.bindFunctions}},"render");function oh(e={}){let t=(0,r2.L)({},e);t?.fontFamily&&!t.themeVariables?.fontFamily&&(t.themeVariables||(t.themeVariables={}),t.themeVariables.fontFamily=t.fontFamily),(0,r2.B)(t),t?.theme&&t.theme in r2.Q?t.themeVariables=r2.Q[t.theme].getThemeVariables(t.themeVariables):t&&(t.themeVariables=r2.Q.default.getThemeVariables(t.themeVariables));let n="object"==typeof t?(0,r2.J)(t):(0,r2._)();(0,r4.O)(n.logLevel),aX()}(0,r3.p)(oh,"initialize");var om=(0,r3.p)((e,t={})=>{let{code:n}=a8(e);return a0.fromText(n,t)},"getDiagramFromText");function og(e,t,n,r){aG(t,e),aY(t,n,r,t.attr("id"))}(0,r3.p)(og,"addA11yInfo");var ox=Object.freeze({render:op,parse:or,getDiagramFromText:om,initialize:oh,getConfig:r2.N,setConfig:r2.H,getSiteConfig:r2._,updateSiteConfig:r2.S,reset:(0,r3.p)(()=>{(0,r2.X)()},"reset"),globalReset:(0,r3.p)(()=>{(0,r2.X)(r2.t)},"globalReset"),defaultConfig:r2.t});(0,r4.O)((0,r2.N)().logLevel),(0,r2.X)((0,r2.N)());var oy=(0,r3.p)((e,t,n)=>{r4.d.warn(e),(0,r1.b)(e)?(n&&n(e.str,e.hash),t.push({...e,message:e.str,error:e})):(n&&n(e),e instanceof Error&&t.push({str:e.message,message:e.message,hash:e.name,error:e}))},"handleError"),ov=(0,r3.p)(async function(e={querySelector:".mermaid"}){try{await ob(e)}catch(t){if((0,r1.b)(t)&&r4.d.error(t.str),oz.parseError&&oz.parseError(t),!e.suppressErrors)throw r4.d.error("Use the suppressErrors option to suppress these errors"),t}},"run"),ob=(0,r3.p)(async function({postRenderCallback:e,querySelector:t,nodes:n}={querySelector:".mermaid"}){let r,i,l=ox.getConfig();if(r4.d.debug(`${!e?"No ":""}Callback function found`),n)r=n;else if(t)r=document.querySelectorAll(t);else throw Error("Nodes and querySelector are both undefined");r4.d.debug(`Found ${r.length} diagrams`),l?.startOnLoad!==void 0&&(r4.d.debug("Start On Load: "+l?.startOnLoad),ox.updateSiteConfig({startOnLoad:l?.startOnLoad}));let a=new r1.u.InitIDGenerator(l.deterministicIds,l.deterministicIDSeed),o=[];for(let t of Array.from(r)){if(r4.d.info("Rendering diagram: "+t.id),t.getAttribute("data-processed"))continue;t.setAttribute("data-processed","true");let n=`mermaid-${a.next()}`;i=t.innerHTML,i=(0,r6.f)(r1.u.entityDecode(i)).trim().replace(/<br\s*\/?>/gi,"<br/>");let r=r1.u.detectInit(i);r&&r4.d.debug("Detected early reinit: ",r);try{let{svg:r,bindFunctions:l}=await oL(n,i,t);t.innerHTML=r,e&&await e(n),l&&l(t)}catch(e){oy(e,o,oz.parseError)}}if(o.length>0)throw o[0]},"runThrowsErrors"),ok=(0,r3.p)(function(e){ox.initialize(e)},"initialize"),ow=(0,r3.p)(async function(e,t,n){r4.d.warn("mermaid.init is deprecated. Please use run instead."),e&&ok(e);let r={postRenderCallback:n,querySelector:".mermaid"};"string"==typeof t?r.querySelector=t:t&&(t instanceof HTMLElement?r.nodes=[t]:r.nodes=t),await ov(r)},"init"),oS=(0,r3.p)(async(e,{lazyLoad:t=!0}={})=>{aX(),(0,r2.$)(...e),!1===t&&await aZ()},"registerExternalDiagrams"),oC=(0,r3.p)(function(){if(oz.startOnLoad){let{startOnLoad:e}=ox.getConfig();e&&oz.run().catch(e=>r4.d.error("Mermaid failed to initialize",e))}},"contentLoaded");"u">typeof document&&window.addEventListener("load",oC,!1);var oE=(0,r3.p)(function(e){oz.parseError=e},"setParseErrorHandler"),oj=[],oA=!1,oT=(0,r3.p)(async()=>{if(!oA){for(oA=!0;oj.length>0;){let e=oj.shift();if(e)try{await e()}catch(e){r4.d.error("Error executing queue",e)}}oA=!1}},"executeQueue"),oN=(0,r3.p)(async(e,t)=>new Promise((n,r)=>{let i=(0,r3.p)(()=>new Promise((i,l)=>{ox.parse(e,t).then(e=>{i(e),n(e)},e=>{r4.d.error("Error parsing",e),oz.parseError?.(e),l(e),r(e)})}),"performCall");oj.push(i),oT().catch(r)}),"parse"),oL=(0,r3.p)((e,t,n)=>new Promise((r,i)=>{let l=(0,r3.p)(()=>new Promise((l,a)=>{ox.render(e,t,n).then(e=>{l(e),r(e)},e=>{r4.d.error("Error parsing",e),oz.parseError?.(e),a(e),i(e)})}),"performCall");oj.push(l),oT().catch(i)}),"render"),oD=(0,r3.p)(()=>Object.keys(r2.k).map(e=>({id:e})),"getRegisteredDiagramsMetadata"),oz={startOnLoad:!0,mermaidAPI:ox,parse:oN,render:oL,init:ow,run:ov,registerExternalDiagrams:oS,registerLayoutLoaders:rY.F,initialize:ok,parseError:void 0,contentLoaded:oC,setParseErrorHandler:oE,detectType:r2.n,registerIconPacks:r0.z,getRegisteredDiagramsMetadata:oD};let oM=!1,oI=0;function oP({code:e}){let r=(0,n.useRef)(null),[i,l]=(0,n.useState)(null),[a,o]=(0,n.useState)(null),s=(0,n.useRef)(`mermaid-${++oI}`);return((0,n.useEffect)(()=>{let t=!1;return oM||(oM=!0,oz.initialize({startOnLoad:!1,theme:"default",securityLevel:"loose",fontFamily:"system-ui, sans-serif"})),(async()=>{try{let{svg:n}=await oz.render(s.current,e);t||(l(n),o(null))}catch(n){t||(o(n instanceof Error?n.message:"Mermaid render error"),l(null));let e=document.getElementById("d"+s.current);e?.remove()}})(),()=>{t=!0}},[e]),a)?(0,t.jsxs)("div",{className:"border border-red-200 bg-red-50 rounded p-3 text-xs text-red-700",children:[(0,t.jsx)("div",{className:"font-medium mb-1",children:"Mermaid エラー"}),(0,t.jsx)("pre",{className:"whitespace-pre-wrap",children:e})]}):i?(0,t.jsx)("div",{ref:r,className:"my-2 overflow-x-auto",dangerouslySetInnerHTML:{__html:i}}):(0,t.jsx)("div",{className:"text-xs text-[var(--text-muted)] py-2",children:"図を描画中..."})}var oR=e.i(47167);let oF=oR.default.env.NEXT_PUBLIC_BASE_PATH?.trim(),oO=oF&&"/"!==oF&&""!==oF?oF.replace(/\/$/,""):"";function o_(e){return e.startsWith("/")?oO+e:e}let oB=/^[ \t]*(`{3,}|~{3,})(.*)$/;function oH(e){return e.toLowerCase().replace(/[^\p{L}\p{N}\s-]/gu,"").replace(/\s+/g,"-").replace(/-+/g,"-").trim()}function oU(e){let t,n=document.createElement("textarea");n.value=e,n.setAttribute("readonly",""),n.style.position="fixed",n.style.top="0",n.style.left="0",n.style.opacity="0",document.body.appendChild(n),n.select();try{t=document.execCommand("copy")}catch{t=!1}return document.body.removeChild(n),t}function o$({id:e}){let[r,i]=(0,n.useState)(!1);return(0,t.jsx)("a",{href:`#${e}`,onClick:t=>{t.preventDefault();let n=new URL(window.location.href);n.hash=e;let r=n.toString();window.history.replaceState(null,"",r);let l=()=>{i(!0),window.setTimeout(()=>i(!1),1500)};window.isSecureContext&&navigator.clipboard?.writeText?navigator.clipboard.writeText(r).then(l).catch(()=>{oU(r)&&l()}):oU(r)&&l()},className:"ml-2 inline-flex items-center align-middle text-[var(--text-muted)] no-underline opacity-0 group-hover:opacity-100 focus:opacity-100 hover:text-[var(--brand-primary)] transition-opacity",title:r?"リンクをコピーしました":"このヘッダーへのリンクをコピー","aria-label":"このヘッダーへのリンクをコピー",children:r?(0,t.jsx)(rX,{size:13}):(0,t.jsx)(rK,{size:13})})}function oq({children:e,onHeadingsExtracted:r,fileRefs:i,currentPath:l,onNavigate:a,onPreviewShow:o,onPreviewHide:s,enableHeadingLinks:u=!1}){let c=(0,n.useMemo)(()=>(function(e){let t=[],n=new Map,r=/^(#{1,4})\s+(.+)$/,i=e.split("\n"),l=function(e){let t=Array(e.length).fill(!1),n=null;for(let r=0;r<e.length;r++){let i=oB.exec(e[r]);if(!i){t[r]=null!==n;continue}let l=i[1],a=l[0],o=i[2];if(null===n){if("`"===a&&o.includes("`"))continue;n={char:a,length:l.length},t[r]=!0;continue}a===n.char&&l.length>=n.length&&""===o.trim()&&(n=null),t[r]=!0}return t}(i);for(let e=0;e<i.length;e++){if(l[e])continue;let a=r.exec(i[e]);if(!a)continue;let o=a[1].length,s=a[2].replace(/[#*_`[\]]/g,"").trim(),u=oH(s)||"heading",c=n.get(u)??0;n.set(u,c+1);let d=0===c?u:`${u}-${c}`;t.push({id:d,text:s,level:o})}return t})(e),[e]),d=(0,n.useMemo)(()=>{let e=new Map;for(let t of c){let n=e.get(t.text)??[];n.push(t.id),e.set(t.text,n)}return e},[c]),f=(0,n.useMemo)(()=>new Map,[c]);(0,n.useEffect)(()=>{r?.(c)},[c,r]);let p=(0,n.useMemo)(()=>new Set((i??[]).map(e=>e.path)),[i]);function h(e){return function({children:n,className:r,...i}){let l=function(e){let t=d.get(e);if(!t)return oH(e)||"heading";let n=f.get(e)??0;return f.set(e,n+1),t[n%t.length]}("string"==typeof n?n:function e(t){return"string"==typeof t?t:"number"==typeof t?String(t):Array.isArray(t)?t.map(e).join(""):t&&"object"==typeof t&&"props"in t?e(t.props.children):""}(n)),a=u?`group scroll-mt-4${r?` ${r}`:""}`:r,o={...i,id:l,className:a},s=(0,t.jsxs)(t.Fragment,{children:[n,u&&(0,t.jsx)(o$,{id:l})]});switch(e){case 1:return(0,t.jsx)("h1",{...o,children:s});case 2:return(0,t.jsx)("h2",{...o,children:s});case 3:return(0,t.jsx)("h3",{...o,children:s});default:return(0,t.jsx)("h4",{...o,children:s})}}}let m={h1:h(1),h2:h(2),h3:h(3),h4:h(4),code:({className:e,children:n,...r})=>{if(/language-mermaid/.exec(e||"")){let e=String(n).replace(/\n$/,"");return(0,t.jsx)(oP,{code:e})}return(0,t.jsx)("code",{className:e,...r,children:n})},pre:({children:e})=>e&&"object"==typeof e&&"type"in e&&e.type===oP?(0,t.jsx)(t.Fragment,{children:e}):(0,t.jsx)("pre",{children:e}),a:({href:e,children:n,...r})=>{let i=e?function(e){let t,n=e.split("#")[0].split("?")[0].trim();if(!n||/^[a-z][a-z0-9+.-]*:/i.test(n)||n.startsWith("//"))return null;try{t=decodeURI(n)}catch{t=n}let r=l&&l.includes("/")?l.slice(0,l.lastIndexOf("/")):"",i=(t.startsWith("/")?t.slice(1):r?r+"/"+t:t).split("/"),a=[];for(let e of i)if(""!==e&&"."!==e){if(".."===e){a.pop();continue}a.push(e)}let o=a.join("/");return o?p.has(o)?o:p.has(o+"/README.md")?o+"/README.md":!/\.md$/i.test(o)&&p.has(o+".md")?o+".md":null:null}(e):null;return i?(0,t.jsx)("span",{className:"text-[var(--brand-primary)] font-medium cursor-pointer hover:underline transition-colors",onClick:e=>{e.preventDefault(),s?.(),a?.(i)},onMouseEnter:e=>{let t=e.target.getBoundingClientRect();o?.(i,t)},onMouseLeave:()=>s?.(),children:n}):(0,t.jsx)("a",{href:e,...r,children:n})},img:({src:e,alt:n,...r})=>{if("string"!=typeof e)return(0,t.jsx)("img",{src:e,alt:n,...r});let i=function(e){let t,n=e.split("#")[0].split("?")[0].trim();if(!n||/^[a-z][a-z0-9+.-]*:/i.test(n)||n.startsWith("//"))return null;try{t=decodeURI(n)}catch{t=n}let r=l&&l.includes("/")?l.slice(0,l.lastIndexOf("/")):"",i=(t.startsWith("/")?t.slice(1):r?r+"/"+t:t).split("/"),a=[];for(let e of i)if(""!==e&&"."!==e){if(".."===e){a.pop();continue}a.push(e)}return a.join("/")||null}(e);if(!i)return(0,t.jsx)("img",{src:e,alt:n,...r});let a=o_(`/api/asset?path=${encodeURIComponent(i)}`);return(0,t.jsx)("img",{src:a,alt:n,...r})}};return(0,t.jsx)("div",{className:"prose prose-sm max-w-none\n prose-headings:font-semibold prose-headings:tracking-tight prose-headings:text-[var(--text-primary)]\n prose-h1:text-lg prose-h1:leading-snug prose-h1:mb-4\n prose-h2:text-[15px] prose-h2:leading-snug prose-h2:border-b prose-h2:border-[var(--border-default)] prose-h2:pb-2 prose-h2:mt-8 prose-h2:mb-3\n prose-h3:text-[13px] prose-h3:leading-snug prose-h3:mt-6 prose-h3:mb-2\n prose-p:text-[var(--text-secondary)] prose-p:text-[13px] prose-p:leading-[1.75]\n prose-li:text-[var(--text-secondary)] prose-li:text-[13px] prose-li:leading-[1.75]\n prose-strong:text-[var(--text-primary)] prose-strong:font-semibold\n prose-a:text-[var(--brand-primary)] prose-a:font-medium prose-a:no-underline hover:prose-a:underline\n prose-code:text-xs prose-code:text-[var(--text-primary)] prose-code:bg-[var(--bg-muted)] prose-code:px-1 prose-code:py-0.5 prose-code:rounded prose-code:before:content-none prose-code:after:content-none\n prose-pre:bg-[var(--bg-muted)] prose-pre:text-xs prose-pre:text-[var(--text-primary)]\n prose-table:text-[12px]\n prose-th:bg-[var(--bg-muted)] prose-th:text-[var(--text-primary)] prose-th:font-semibold prose-th:px-3 prose-th:py-1.5 prose-th:text-left\n prose-td:px-3 prose-td:py-1.5 prose-td:border-[var(--border-default)] prose-td:text-[var(--text-secondary)]\n prose-hr:border-[var(--border-default)]\n prose-blockquote:border-l-[var(--brand-primary)] prose-blockquote:text-[var(--text-muted)] prose-blockquote:not-italic\n prose-img:rounded-lg\n ",children:(0,t.jsx)(nF,{remarkPlugins:[rJ],components:m,children:e})})}let oV=s("git-commit-horizontal",[["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}],["line",{x1:"3",x2:"9",y1:"12",y2:"12",key:"1dyftd"}],["line",{x1:"15",x2:"21",y1:"12",y2:"12",key:"oup4p8"}]]);function oW({filePath:e,hash:r}){let[i,l]=(0,n.useState)(null);return((0,n.useEffect)(()=>{l(null),fetch(o_(`/api/diff?path=${encodeURIComponent(e)}&hash=${r}`)).then(e=>e.json()).then(e=>l(e.diff)).catch(()=>l("(差分を取得できませんでした)"))},[e,r]),null===i)?(0,t.jsx)("div",{className:"text-[12px] text-[var(--text-muted)] py-2",children:"差分を読み込み中..."}):(0,t.jsx)("pre",{className:"text-[11px] font-[var(--font-mono)] bg-[var(--bg-muted)] rounded-lg p-3 overflow-x-auto leading-[1.7] border border-[var(--border-default)]",children:i.split("\n").filter(e=>!e.startsWith("diff --git")&&!e.startsWith("index ")&&!e.startsWith("new file")&&!e.startsWith("deleted file")&&!e.startsWith("similarity")&&!e.startsWith("rename ")&&!e.startsWith("old mode")&&!e.startsWith("new mode")).map((e,n)=>{let r="var(--text-secondary)",i="transparent";return e.startsWith("+")&&!e.startsWith("+++")?(r="var(--add-color)",i="var(--add-bg)"):e.startsWith("-")&&!e.startsWith("---")?(r="var(--del-color)",i="var(--del-bg)"):e.startsWith("@@")&&(r="var(--brand-primary)"),(0,t.jsx)("div",{style:{color:r,backgroundColor:i},className:"px-1 -mx-1 rounded-sm",children:e},n)})})}let oQ=0,oJ=new Set,oK=null,oX=null;function oZ(){for(let e of(oQ++,oJ))e(oQ)}function oG(){let[e,t]=(0,n.useState)(oQ);return(0,n.useEffect)(()=>{!function(){if(!oK){try{oK=new EventSource(o_("/api/watch"))}catch{return}oK.addEventListener("change",()=>{oX&&clearTimeout(oX),oX=setTimeout(oZ,150)})}}();let e=e=>t(e);return oJ.add(e),()=>{oJ.delete(e)}},[]),e}function oY({filePath:e}){let[r,i]=(0,n.useState)([]),[l,a]=(0,n.useState)(!0),[o,s]=(0,n.useState)(null),d=oG();return((0,n.useEffect)(()=>{a(!0),s(null),fetch(o_(`/api/history?path=${encodeURIComponent(e)}`)).then(e=>e.json()).then(e=>{i(e),a(!1)}).catch(()=>a(!1))},[e,d]),l)?(0,t.jsx)("div",{className:"p-4 text-[var(--text-muted)] text-[13px]",children:"読み込み中..."}):0===r.length?(0,t.jsx)("div",{className:"p-4 text-[var(--text-muted)] text-[13px]",children:"変更履歴がありません(git 管理外の可能性)"}):(0,t.jsx)("div",{className:"divide-y divide-[var(--border-default)]",children:r.map(n=>{let r=o===n.hash;return(0,t.jsxs)("div",{children:[(0,t.jsx)("button",{onClick:()=>s(r?null:n.hash),className:"w-full text-left px-4 py-3 hover:bg-[var(--bg-hover)] transition-colors",children:(0,t.jsxs)("div",{className:"flex items-start gap-2.5",children:[(0,t.jsx)(oV,{size:13,className:"text-[var(--text-muted)] mt-0.5 shrink-0"}),(0,t.jsxs)("div",{className:"min-w-0 flex-1",children:[(0,t.jsxs)("div",{className:"flex items-center gap-2",children:[(0,t.jsx)("span",{className:"text-[11px] font-[var(--font-mono)] text-[var(--brand-primary)] leading-none",children:n.hashShort}),(0,t.jsx)("span",{className:"text-[11px] text-[var(--text-muted)] leading-none",children:new Date(n.date).toLocaleString("ja-JP",{year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit"})}),n.author&&(0,t.jsx)("span",{className:"text-[11px] text-[var(--text-muted)] leading-none",children:n.author})]}),(0,t.jsx)("p",{className:"text-[12px] text-[var(--text-secondary)] mt-1 leading-snug line-clamp-2",children:n.message})]}),(0,t.jsx)("span",{className:"text-[var(--text-muted)] shrink-0 mt-0.5",children:r?(0,t.jsx)(u,{size:13}):(0,t.jsx)(c,{size:13})})]})}),r&&(0,t.jsx)("div",{className:"px-4 pb-3",children:(0,t.jsx)(oW,{filePath:e,hash:n.hash})})]},n.hash)})})}function o0({headings:e,scrollContainer:r}){let[i,l]=(0,n.useState)(null),a=(0,n.useRef)(null);(0,n.useEffect)(()=>{if(!r||0===e.length)return;a.current?.disconnect();let t=new IntersectionObserver(e=>{for(let t of e)t.isIntersecting&&l(t.target.id)},{root:r,rootMargin:"0px 0px -70% 0px",threshold:.1});for(let n of(a.current=t,e)){let e=document.getElementById(n.id);e&&t.observe(e)}return()=>t.disconnect()},[e,r]);let o=(0,n.useCallback)(e=>{let t=document.getElementById(e);if(t){t.scrollIntoView({behavior:"smooth",block:"start"}),l(e);{let t=new URL(window.location.href);t.hash=e,window.history.replaceState(null,"",t.toString())}}},[]);return 0===e.length?null:(0,t.jsxs)("nav",{className:"py-3 px-2 space-y-px",children:[(0,t.jsx)("div",{className:"text-[10px] font-medium text-[var(--text-muted)] tracking-wider uppercase px-1.5 mb-1.5",children:"目次"}),e.map(e=>(0,t.jsx)("button",{onClick:()=>o(e.id),className:`block w-full text-left text-[11px] leading-relaxed py-0.5 truncate transition-colors rounded px-1.5 ${i===e.id?"text-[var(--brand-primary)] font-medium bg-blue-50":"text-[var(--text-muted)] hover:text-[var(--text-secondary)] hover:bg-[var(--bg-hover)]"}`,style:{paddingLeft:`${(e.level-1)*10+6}px`},title:e.text,children:e.text},e.id))]})}let o1=s("external-link",[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"M10 14 21 3",key:"gplh6r"}],["path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6",key:"a6xqqp"}]]);function o2({path:e,position:r,onNavigate:i,onMouseEnter:l,onMouseLeave:a,fileRefs:o,depth:s=0}){let[u,c]=(0,n.useState)(null),[d,f]=(0,n.useState)(!1),p=(0,n.useRef)(null),[h,m]=(0,n.useState)(null),[g,x]=(0,n.useState)(null),[y,v]=(0,n.useState)(null),b=(0,n.useRef)(null),k=(0,n.useRef)(null),w=oG();(0,n.useEffect)(()=>{if(b.current&&clearTimeout(b.current),k.current&&clearTimeout(k.current),!e){c(null),x(null),v(null);return}f(!0),c(null),x(null),v(null),fetch(o_(`/api/file?path=${encodeURIComponent(e)}`)).then(e=>e.json()).then(e=>c(e.content??null)).catch(()=>c(null)).finally(()=>f(!1))},[e,w]),(0,n.useEffect)(()=>{if(!r||!p.current)return void m(r);let e=p.current.getBoundingClientRect(),t=window.innerWidth,n=window.innerHeight,{x:i,y:l}=r;i+e.width>t-16&&(i=t-e.width-16),i<16&&(i=16),l+e.height>n-16&&(l=r.y-e.height-8),m({x:i,y:l})},[r,u]);let S=(0,n.useCallback)((e,t)=>{s>=3||(k.current&&clearTimeout(k.current),b.current&&clearTimeout(b.current),b.current=setTimeout(()=>{x(e),v({x:t.right+8,y:t.top})},200))},[s]),C=(0,n.useCallback)(()=>{b.current&&clearTimeout(b.current),k.current&&clearTimeout(k.current),k.current=setTimeout(()=>{x(null),v(null)},300)},[]),E=(0,n.useCallback)(()=>{k.current&&clearTimeout(k.current),l()},[l]),j=(0,n.useCallback)(()=>{C(),a()},[C,a]);if(!e||!r)return null;let A=e.split("/").pop()?.replace(/\.md$/i,"")||e;return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("div",{ref:p,onMouseEnter:l,onMouseLeave:()=>{a(),C()},className:"fixed bg-[var(--bg-surface)] border border-[var(--border-default)] rounded-lg shadow-xl w-[min(480px,30vw)] max-h-[min(420px,30vh)] overflow-y-auto",style:{left:h?.x??r.x,top:h?.y??r.y,zIndex:50+s},children:[(0,t.jsx)("div",{className:"sticky top-0 bg-[var(--bg-surface)] border-b border-[var(--border-default)] px-3 py-2 flex items-center gap-2",children:(0,t.jsxs)("button",{onClick:()=>i(e),className:"text-xs font-medium text-[var(--brand-primary)] hover:underline truncate flex items-center gap-1",children:[A,(0,t.jsx)(o1,{size:10})]})}),(0,t.jsx)("div",{className:"p-3",children:d?(0,t.jsx)("div",{className:"text-xs text-[var(--text-muted)]",children:"読み込み中..."}):u?(0,t.jsx)("div",{className:"text-[11px]",children:(0,t.jsx)(oq,{fileRefs:o,currentPath:e,onNavigate:i,onPreviewShow:S,onPreviewHide:C,children:u})}):(0,t.jsx)("div",{className:"text-xs text-[var(--text-muted)]",children:"プレビューを表示できません"})})]}),(0,t.jsx)(o2,{path:g,position:y,onNavigate:i,onMouseEnter:E,onMouseLeave:j,fileRefs:o,depth:s+1})]})}var o4=e.i(77871);let o3=s("funnel",[["path",{d:"M10 20a1 1 0 0 0 .553.895l2 1A1 1 0 0 0 14 21v-7a2 2 0 0 1 .517-1.341L21.74 4.67A1 1 0 0 0 21 3H3a1 1 0 0 0-.742 1.67l7.225 7.989A2 2 0 0 1 10 14z",key:"sc7q7i"}]]),o6="markshelf:linkGraphDepth",o5="markshelf:linkGraphExclude",o9="markshelf:linkGraphZoom",o8=[{value:1,label:"1階層"},{value:2,label:"2階層"},{value:3,label:"3階層"},{value:1/0,label:"全階層"}];function o7({currentPath:e,folders:r,onNavigate:i,onPreviewShow:l,onPreviewHide:a}){let o=(0,n.useRef)(null),s=(0,n.useRef)(null),u=(0,n.useRef)(null),[c,d]=(0,n.useState)(!0),[f,p]=(0,n.useState)(!1),[h,m]=(0,n.useState)(!1),[g,x]=(0,n.useState)(1),[y,v]=(0,n.useState)([]),[b,k]=(0,n.useState)(!1),w=oG();(0,n.useEffect)(()=>{let e=localStorage.getItem(o6);if(null===e)return;let t="all"===e?1/0:Number(e);(Number.isFinite(t)||1/0===t)&&x(t)},[]),(0,n.useEffect)(()=>{let e=localStorage.getItem(o5);if(e)try{let t=JSON.parse(e);Array.isArray(t)&&v(t.filter(e=>"string"==typeof e))}catch{}},[]),(0,n.useEffect)(()=>{if(0===r.length)return;let e=new Set(r.map(e=>e.path));v(t=>{let n=t.filter(t=>e.has(t));return n.length===t.length?t:(localStorage.setItem(o5,JSON.stringify(n)),n)})},[r]),(0,n.useEffect)(()=>{if(!b)return;let e=e=>{u.current&&!u.current.contains(e.target)&&k(!1)};return document.addEventListener("mousedown",e),()=>document.removeEventListener("mousedown",e)},[b]);let S=(0,n.useMemo)(()=>{let t=y.map(e=>e+"/"),n=y.some(t=>e===t||e.startsWith(t+"/"));return r=>!n&&r!==e&&t.some(e=>r.startsWith(e))},[y,e]),C=(0,n.useRef)(i),E=(0,n.useRef)(l),j=(0,n.useRef)(a);return(0,n.useEffect)(()=>{C.current=i,E.current=l,j.current=a}),(0,n.useEffect)(()=>{let t=!1;return d(!0),p(!1),m(!1),fetch(o_("/api/graph")).then(e=>e.json()).then(n=>{if(t||!o.current)return;let r=n.nodes.filter(e=>!S(e.id)),i=n.edges.filter(e=>!S(e.source)&&!S(e.target)),l=new Map;for(let e of i)(l.get(e.source)??l.set(e.source,[]).get(e.source)).push(e.target),(l.get(e.target)??l.set(e.target,[]).get(e.target)).push(e.source);let a=new Set([e]),u=[[e,0]];for(;u.length>0;){let[e,t]=u.shift();if(!(t>=g))for(let n of l.get(e)??[])a.has(n)||(a.add(n),u.push([n,t+1]))}let c=r.filter(e=>a.has(e.id)),f=i.filter(e=>a.has(e.source)&&a.has(e.target)),h=new Set;for(let e of f)h.add(e.target);let x=c.map(e=>e.id).filter(e=>!h.has(e));if(0===c.length){p(!0),d(!1);return}s.current?.destroy();let y=(0,o4.f)({container:o.current,elements:[...c.map(t=>({data:{id:t.id,label:t.label,isCurrent:t.id===e}})),...f.map((e,t)=>({data:{id:`e${t}`,source:e.source,target:e.target}}))],style:[{selector:"node",style:{label:"data(label)","text-valign":"bottom","text-halign":"center","font-size":"11px","font-family":"var(--font-sans)",color:"#4a5060","text-margin-y":6,"background-color":"#e8f0fe","border-width":2,"border-color":"#3b7ddb",width:28,height:28,"text-max-width":"180px","text-wrap":"ellipsis",cursor:"pointer"}},{selector:"node[?isCurrent]",style:{"background-color":"#2563eb","border-color":"#1d4ed8",color:"#1a1d23","font-weight":"bold",width:36,height:36}},{selector:"edge",style:{width:1.5,"line-color":"#c8ccd3","target-arrow-color":"#c8ccd3","target-arrow-shape":"triangle","curve-style":"bezier","arrow-scale":.8}},{selector:"node:active",style:{"overlay-opacity":0}}],layout:{name:"breadthfirst",animate:!1,padding:50,spacingFactor:1.2,directed:!0,grid:!1,roots:x.length>0?x:[e],transform:(e,t)=>({x:t.x,y:-t.y})},userZoomingEnabled:!0,userPanningEnabled:!0,boxSelectionEnabled:!1,autoungrabify:!1});requestAnimationFrame(()=>{y.resize();let e=Number(localStorage.getItem(o9));Number.isFinite(e)&&e>0?y.zoom({level:e,renderedPosition:{x:o.current.clientWidth/2,y:o.current.clientHeight/2}}):(y.fit(void 0,50),y.zoom()>.9&&y.zoom({level:.9,renderedPosition:{x:o.current.clientWidth/2,y:o.current.clientHeight/2}})),y.center(y.nodes("[?isCurrent]")),m(!0)});let v=null;y.on("zoom",()=>{v&&clearTimeout(v),v=setTimeout(()=>{localStorage.setItem(o9,String(y.zoom()))},200)}),y.on("mouseover","node",e=>{let t=e.target;t.data("isCurrent")||t.style({"background-color":"#dbeafe","border-color":"#2563eb",color:"#1a1d23"}),o.current.style.cursor="pointer";let n=t.id();if(E.current&&o.current){let e=t.renderedBoundingBox(),r=o.current.getBoundingClientRect(),i=r.left+e.x1,l=r.top+e.y1,a={left:i,top:l,right:r.left+e.x2,bottom:r.top+e.y2,width:e.w,height:e.h,x:i,y:l,toJSON:()=>({})};E.current(n,a)}}),y.on("mouseout","node",e=>{let t=e.target;t.data("isCurrent")||t.style({"background-color":"#e8f0fe","border-color":"#3b7ddb",color:"#4a5060"}),o.current.style.cursor="default",j.current?.()}),y.on("tap","node",t=>{let n=t.target.id();n!==e&&C.current(n)}),s.current=y,d(!1)}).catch(()=>{t||(p(!0),d(!1))}),()=>{t=!0,s.current?.destroy(),s.current=null}},[e,g,S,w]),(0,t.jsxs)("div",{className:"h-full flex flex-col relative",children:[(0,t.jsxs)("div",{className:"flex items-center gap-1.5 px-3 py-2 shrink-0",children:[(0,t.jsx)("span",{className:"text-[11px] text-[var(--text-muted)] mr-1",children:"表示範囲"}),o8.map(e=>{let n=g===e.value;return(0,t.jsx)("button",{onClick:()=>{var t;x(t=e.value),localStorage.setItem(o6,1/0===t?"all":String(t))},className:`px-2 py-0.5 rounded-md text-[11px] font-medium transition-colors ${n?"bg-[var(--brand-primary)] text-white":"text-[var(--text-muted)] hover:bg-[var(--bg-muted)] hover:text-[var(--text-secondary)]"}`,children:e.label},e.label)}),(0,t.jsxs)("div",{className:"ml-auto relative",ref:u,children:[(0,t.jsxs)("button",{onClick:()=>k(e=>!e),className:`flex items-center gap-1 px-2 py-0.5 rounded-md text-[11px] font-medium transition-colors ${y.length>0?"bg-[var(--brand-primary)] text-white":"text-[var(--text-muted)] hover:bg-[var(--bg-muted)] hover:text-[var(--text-secondary)]"}`,title:"フォルダを除外",children:[(0,t.jsx)(o3,{size:11}),"除外",y.length>0&&(0,t.jsxs)("span",{className:"ml-0.5",children:["(",y.length,")"]})]}),b&&(0,t.jsx)("div",{className:"absolute right-0 top-full mt-1 w-56 max-h-72 overflow-y-auto bg-[var(--bg-surface)] border border-[var(--border-default)] rounded-md shadow-lg z-20 py-1",children:0===r.length?(0,t.jsx)("div",{className:"px-3 py-2 text-[11px] text-[var(--text-muted)]",children:"フォルダがありません"}):r.map(e=>{let n=y.includes(e.path);return(0,t.jsxs)("label",{className:"flex items-center gap-2 px-3 py-1 text-[12px] cursor-pointer hover:bg-[var(--bg-muted)]",style:{paddingLeft:`${12+12*e.depth}px`},children:[(0,t.jsx)("input",{type:"checkbox",checked:n,onChange:()=>{var t;return t=e.path,void v(e=>{let n=e.includes(t)?e.filter(e=>e!==t):[...e,t];return localStorage.setItem(o5,JSON.stringify(n)),n})},className:"shrink-0"}),(0,t.jsx)("span",{className:"truncate text-[var(--text-secondary)]",children:e.displayName})]},e.path)})})]})]}),(c||f)&&(0,t.jsx)("div",{className:"absolute inset-0 flex items-center justify-center text-[13px] text-[var(--text-muted)] z-10 bg-[var(--bg-surface)]",children:c?"グラフを構築中...":"このドキュメントへのリンクはありません"}),(0,t.jsx)("div",{ref:o,className:"flex-1 min-h-0 transition-opacity duration-150",style:{opacity:+!!h}})]})}let se=s("history",[["path",{d:"M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"1357e3"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}],["path",{d:"M12 7v5l4 2",key:"1fdv2h"}]]),st=s("network",[["rect",{x:"16",y:"16",width:"6",height:"6",rx:"1",key:"4q2zg0"}],["rect",{x:"2",y:"16",width:"6",height:"6",rx:"1",key:"8cvhb9"}],["rect",{x:"9",y:"2",width:"6",height:"6",rx:"1",key:"1egb70"}],["path",{d:"M5 16v-3a1 1 0 0 1 1-1h12a1 1 0 0 1 1 1v3",key:"1jsf9p"}],["path",{d:"M12 12V8",key:"2874zd"}]]),sn=s("arrow-left",[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]]),sr=s("arrow-right",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]]);function si({filePath:e,fileRefs:r,folders:i,onNavigate:l,onGoBack:a,onGoForward:o,canGoBack:s,canGoForward:u}){let[c,d]=(0,n.useState)(null),[p,h]=(0,n.useState)("content"),[m,g]=(0,n.useState)([]),[x,y]=(0,n.useState)(()=>{{let e=localStorage.getItem("markshelf:tocWidth");return e&&Number(e)||176}}),v=(0,n.useRef)(null),b=(0,n.useRef)(null),[k,w]=(0,n.useState)(null),[S,C]=(0,n.useState)(null),E=(0,n.useRef)(null),j=(0,n.useRef)(null),A=oG();(0,n.useEffect)(()=>{d(null),g([]),E.current&&clearTimeout(E.current),j.current&&clearTimeout(j.current),w(null),C(null)},[e]),(0,n.useEffect)(()=>{fetch(o_(`/api/file?path=${encodeURIComponent(e)}`)).then(e=>e.json()).then(e=>d(e.content??null)).catch(()=>d(null))},[e,A]);let T=(0,n.useRef)(null);(0,n.useEffect)(()=>{T.current=null},[e]),(0,n.useEffect)(()=>{if("content"!==p||null===c||0===m.length)return;let t=window.location.hash.replace(/^#/,"");if(!t)return;let n=t;try{n=decodeURIComponent(t)}catch{}let r=`${e}#${n}`;if(T.current===r||!m.some(e=>e.id===n))return;let i=requestAnimationFrame(()=>{let e=v.current,t=document.getElementById(n);if(!e||!t)return;let i=e.getBoundingClientRect(),l=t.getBoundingClientRect();e.scrollTop+=l.top-i.top-16,T.current=r});return()=>cancelAnimationFrame(i)},[p,c,m,e]);let N=(0,n.useCallback)((e,t)=>{j.current&&clearTimeout(j.current),E.current&&clearTimeout(E.current),E.current=setTimeout(()=>{w(e),C({x:t.left,y:t.bottom+4})},200)},[]),L=(0,n.useCallback)(()=>{E.current&&clearTimeout(E.current),j.current&&clearTimeout(j.current),j.current=setTimeout(()=>{w(null),C(null)},300)},[]),D=(0,n.useCallback)(()=>{j.current&&clearTimeout(j.current)},[]),z=(0,n.useCallback)(()=>{L()},[L]),M=(0,n.useCallback)(e=>{e.preventDefault(),document.body.style.userSelect="none",document.body.style.cursor="col-resize";let t=b.current?.parentElement,n=e=>{if(!t)return;let n=Math.max(120,Math.min(400,t.getBoundingClientRect().right-e.clientX));y(n),localStorage.setItem("markshelf:tocWidth",String(n))},r=()=>{document.body.style.userSelect="",document.body.style.cursor="",document.removeEventListener("mousemove",n),document.removeEventListener("mouseup",r)};document.addEventListener("mousemove",n),document.addEventListener("mouseup",r)},[]),I=e.split("/").pop()?.replace(/\.md$/i,"")||e;return(0,t.jsxs)("div",{className:"flex flex-col h-full",children:[(0,t.jsxs)("div",{className:"border-b border-[var(--border-default)] px-4 py-2.5 shrink-0",children:[(0,t.jsxs)("div",{className:"flex items-center gap-2 mb-2",children:[s&&(0,t.jsx)("button",{onClick:a,className:"shrink-0 p-0.5 rounded hover:bg-[var(--bg-muted)] text-[var(--text-muted)] hover:text-[var(--text-secondary)] transition-colors",title:"戻る",children:(0,t.jsx)(sn,{size:14})}),u&&(0,t.jsx)("button",{onClick:o,className:"shrink-0 p-0.5 rounded hover:bg-[var(--bg-muted)] text-[var(--text-muted)] hover:text-[var(--text-secondary)] transition-colors",title:"進む",children:(0,t.jsx)(sr,{size:14})}),(0,t.jsx)("h2",{className:"font-semibold text-[14px] leading-snug truncate text-[var(--text-primary)]",children:I})]}),(0,t.jsxs)("div",{className:"flex gap-1",children:[(0,t.jsxs)("button",{onClick:()=>h("content"),className:`flex items-center gap-1.5 px-2.5 py-1 rounded-md text-[12px] font-medium transition-colors ${"content"===p?"bg-[var(--brand-primary)] text-white":"text-[var(--text-muted)] hover:bg-[var(--bg-muted)] hover:text-[var(--text-secondary)]"}`,children:[(0,t.jsx)(f,{size:12}),"内容"]}),(0,t.jsxs)("button",{onClick:()=>h("history"),className:`flex items-center gap-1.5 px-2.5 py-1 rounded-md text-[12px] font-medium transition-colors ${"history"===p?"bg-[var(--brand-primary)] text-white":"text-[var(--text-muted)] hover:bg-[var(--bg-muted)] hover:text-[var(--text-secondary)]"}`,children:[(0,t.jsx)(se,{size:12}),"変更履歴"]}),(0,t.jsxs)("button",{onClick:()=>h("links"),className:`flex items-center gap-1.5 px-2.5 py-1 rounded-md text-[12px] font-medium transition-colors ${"links"===p?"bg-[var(--brand-primary)] text-white":"text-[var(--text-muted)] hover:bg-[var(--bg-muted)] hover:text-[var(--text-secondary)]"}`,children:[(0,t.jsx)(st,{size:12}),"リンク"]})]})]}),"content"===p?null!==c?(0,t.jsxs)("div",{className:"flex-1 flex overflow-hidden",children:[(0,t.jsx)("div",{className:"flex-1 overflow-y-auto",ref:v,children:(0,t.jsx)("div",{className:"p-4",children:(0,t.jsx)(oq,{enableHeadingLinks:!0,onHeadingsExtracted:g,fileRefs:r,currentPath:e,onNavigate:e=>{h("content"),l?.(e)},onPreviewShow:N,onPreviewHide:L,children:c})})}),m.length>0&&(0,t.jsxs)("div",{className:"flex shrink-0",ref:b,children:[(0,t.jsx)("div",{className:"w-1 hover:bg-[var(--brand-primary)] bg-[var(--border-default)] cursor-col-resize shrink-0 transition-colors duration-150",onMouseDown:M}),(0,t.jsx)("div",{className:"overflow-y-auto border-l border-[var(--border-default)]",style:{width:x},children:(0,t.jsx)(o0,{headings:m,scrollContainer:v.current})})]})]}):(0,t.jsx)("div",{className:"flex-1 p-4 text-[var(--text-muted)] text-sm",children:"読み込み中..."}):"history"===p?(0,t.jsx)("div",{className:"flex-1 overflow-y-auto",ref:v,children:(0,t.jsx)(oY,{filePath:e})}):(0,t.jsx)("div",{className:"flex-1 overflow-hidden",children:(0,t.jsx)(o7,{currentPath:e,folders:i??[],onNavigate:e=>l?.(e),onPreviewShow:N,onPreviewHide:L})}),(0,t.jsx)(o2,{path:k,position:S,onNavigate:e=>{w(null),C(null),h("content"),l?.(e)},onMouseEnter:D,onMouseLeave:z,fileRefs:r})]})}let sl=s("search",[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]]),sa=s("x",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]);function so({onSelect:e}){let[r,i]=(0,n.useState)(""),[l,a]=(0,n.useState)([]),[o,s]=(0,n.useState)(!1),[u,c]=(0,n.useState)(!1),d=(0,n.useRef)(null),f=(0,n.useRef)(null),p=(0,n.useRef)(null),h=(0,n.useCallback)(e=>{if(!e.trim()){a([]),c(!1);return}s(!0),fetch(o_(`/api/search?q=${encodeURIComponent(e.trim())}`)).then(e=>e.json()).then(e=>{a(e.results??[]),c(!0)}).catch(()=>a([])).finally(()=>s(!1))},[]);return(0,n.useEffect)(()=>{let e=e=>{"Escape"===e.key&&(c(!1),f.current?.blur())},t=e=>{p.current&&!p.current.contains(e.target)&&c(!1)};return window.addEventListener("keydown",e),document.addEventListener("mousedown",t),()=>{window.removeEventListener("keydown",e),document.removeEventListener("mousedown",t)}},[]),(0,t.jsxs)("div",{ref:p,className:"relative px-4 pt-4 pb-2",children:[(0,t.jsxs)("div",{className:"relative",children:[(0,t.jsx)(sl,{size:14,className:"absolute left-2.5 top-1/2 -translate-y-1/2 text-[var(--text-muted)]"}),(0,t.jsx)("input",{ref:f,type:"text",value:r,onChange:e=>{var t;i(t=e.target.value),d.current&&clearTimeout(d.current),d.current=setTimeout(()=>h(t),300)},onFocus:()=>{l.length>0&&c(!0)},placeholder:"ドキュメントを検索...",className:"w-full pl-8 pr-8 py-1.5 text-[12px] leading-normal rounded-md border border-[var(--border-default)] bg-[var(--bg-surface)] text-[var(--text-primary)] placeholder:text-[var(--text-muted)] focus:outline-none focus:ring-1 focus:ring-[var(--brand-primary)] focus:border-[var(--brand-primary)] transition-shadow"}),r&&(0,t.jsx)("button",{onClick:()=>{i(""),a([]),c(!1),f.current?.focus()},className:"absolute right-2 top-1/2 -translate-y-1/2 text-[var(--text-muted)] hover:text-[var(--text-secondary)]",children:(0,t.jsx)(sa,{size:14})})]}),u&&(0,t.jsx)("div",{className:"absolute left-4 right-4 top-full mt-1 z-40 bg-[var(--bg-surface)] border border-[var(--border-default)] rounded-lg shadow-lg max-h-80 overflow-y-auto",children:o?(0,t.jsx)("div",{className:"p-3 text-xs text-[var(--text-muted)] text-center",children:"検索中..."}):0===l.length?(0,t.jsx)("div",{className:"p-3 text-xs text-[var(--text-muted)] text-center",children:"該当するドキュメントが見つかりません"}):l.map(n=>(0,t.jsxs)("button",{onClick:()=>{e(n.path),c(!1)},className:"w-full text-left px-3 py-2 hover:bg-[var(--bg-muted)] border-b border-[var(--border-default)] last:border-b-0 transition-colors",children:[(0,t.jsx)("div",{className:"text-[12px] font-medium text-[var(--text-primary)] truncate leading-snug",children:n.displayName}),(0,t.jsx)("div",{className:"text-[10px] text-[var(--text-muted)] font-[var(--font-mono)] truncate mb-1 leading-normal",children:n.path}),n.matches.slice(0,2).map(e=>(0,t.jsxs)("div",{className:"text-[10px] text-[var(--text-secondary)] truncate leading-relaxed",children:[(0,t.jsxs)("span",{className:"text-[var(--text-muted)] mr-1",children:["L",e.line]}),(0,t.jsx)(ss,{text:e.text,query:r})]},e.line))]},n.path))})]})}function ss({text:e,query:n}){if(!n.trim())return(0,t.jsx)(t.Fragment,{children:e});let r=e.toLowerCase().indexOf(n.toLowerCase());if(-1===r)return(0,t.jsx)(t.Fragment,{children:e});let i=e.slice(0,r),l=e.slice(r,r+n.length),a=e.slice(r+n.length);return(0,t.jsxs)(t.Fragment,{children:[i,(0,t.jsx)("span",{className:"bg-yellow-200 text-yellow-900 rounded px-0.5",children:l}),a]})}let su=s("clock",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 6v6l4 2",key:"mmk7yg"}]]);function sc({onNavigate:e,onClose:r}){let[i,l]=(0,n.useState)([]),[a,o]=(0,n.useState)(!0),[s,d]=(0,n.useState)(null),[p,h]=(0,n.useState)(null),m=oG();(0,n.useEffect)(()=>{o(!0),fetch(o_("/api/timeline")).then(e=>e.json()).then(e=>{l(e.entries??[]),o(!1)}).catch(()=>o(!1))},[m]),(0,n.useEffect)(()=>{let e=e=>{"Escape"===e.key&&r()};return window.addEventListener("keydown",e),()=>window.removeEventListener("keydown",e)},[r]);let g=new Map;for(let e of i){let t=new Date(e.date).toLocaleDateString("ja-JP",{year:"numeric",month:"2-digit",day:"2-digit"}),n=g.get(t)??[];n.push(e),g.set(t,n)}return(0,t.jsx)("div",{className:"fixed inset-0 z-[100] flex items-center justify-center bg-black/40 backdrop-blur-sm",onClick:r,children:(0,t.jsxs)("div",{className:"bg-[var(--bg-surface)] rounded-lg shadow-2xl w-[90vw] max-w-4xl h-[85vh] flex flex-col overflow-hidden border border-[var(--border-default)]",onClick:e=>e.stopPropagation(),children:[(0,t.jsxs)("div",{className:"flex items-center gap-2 px-5 py-3 border-b border-[var(--border-default)] shrink-0",children:[(0,t.jsx)(su,{size:14,className:"text-[var(--brand-primary)]"}),(0,t.jsx)("h2",{className:"font-semibold text-[14px] text-[var(--text-primary)]",children:"変更タイムライン"}),(0,t.jsx)("span",{className:"text-[11px] text-[var(--text-muted)]",children:"リポジトリ全体の変更履歴"}),(0,t.jsx)("button",{onClick:r,className:"ml-auto p-1 rounded hover:bg-[var(--bg-muted)] text-[var(--text-muted)] hover:text-[var(--text-secondary)] transition-colors",title:"閉じる (Esc)",children:(0,t.jsx)(sa,{size:16})})]}),(0,t.jsx)("div",{className:"flex-1 overflow-y-auto",children:a?(0,t.jsx)("div",{className:"h-full flex items-center justify-center text-[13px] text-[var(--text-muted)]",children:"タイムラインを読み込み中..."}):0===i.length?(0,t.jsx)("div",{className:"h-full flex items-center justify-center text-[13px] text-[var(--text-muted)]",children:"変更履歴がありません"}):Array.from(g.entries()).map(([n,r])=>(0,t.jsxs)("div",{children:[(0,t.jsx)("div",{className:"sticky top-0 z-10 bg-[var(--bg-base)] border-b border-[var(--border-default)] px-4 py-1.5",children:(0,t.jsx)("span",{className:"text-[11px] font-medium text-[var(--text-muted)] tracking-wide",children:n})}),r.map(n=>{let r=s===n.hash;return(0,t.jsxs)("div",{className:"border-b border-[var(--border-default)]",children:[(0,t.jsx)("button",{onClick:()=>d(r?null:n.hash),className:"w-full text-left px-4 py-2.5 hover:bg-[var(--bg-hover)] transition-colors",children:(0,t.jsxs)("div",{className:"flex items-start gap-2.5",children:[(0,t.jsx)(oV,{size:13,className:"text-[var(--text-muted)] mt-0.5 shrink-0"}),(0,t.jsxs)("div",{className:"min-w-0 flex-1",children:[(0,t.jsxs)("div",{className:"flex items-center gap-2",children:[(0,t.jsx)("span",{className:"text-[11px] font-[var(--font-mono)] text-[var(--brand-primary)] leading-none",children:n.hashShort}),(0,t.jsx)("span",{className:"text-[11px] text-[var(--text-muted)] leading-none",children:new Date(n.date).toLocaleTimeString("ja-JP",{hour:"2-digit",minute:"2-digit"})}),n.author&&(0,t.jsx)("span",{className:"text-[11px] text-[var(--text-muted)] leading-none",children:n.author})]}),(0,t.jsx)("p",{className:"text-[12px] text-[var(--text-secondary)] mt-1 leading-snug line-clamp-2",children:n.message}),(0,t.jsx)("div",{className:"flex items-center gap-1 mt-1.5",children:(0,t.jsxs)("span",{className:"text-[10px] text-[var(--text-muted)]",children:[n.files.length,"件のドキュメント変更"]})})]}),(0,t.jsx)("span",{className:"text-[var(--text-muted)] shrink-0 mt-0.5",children:r?(0,t.jsx)(u,{size:13}):(0,t.jsx)(c,{size:13})})]})}),r&&(0,t.jsx)("div",{className:"px-4 pb-3",children:(0,t.jsx)("div",{className:"space-y-1",children:n.files.map(r=>{let i=(r.split("/").pop()||r).replace(/^\d+[_\-.\s]/,"").replace(/\.md$/i,""),l=p?.hash===n.hash&&p?.file===r;return(0,t.jsxs)("div",{children:[(0,t.jsxs)("div",{className:"flex items-center gap-1.5 py-1 px-2 rounded hover:bg-[var(--bg-muted)] group",children:[(0,t.jsx)("button",{onClick:()=>h(l?null:{hash:n.hash,file:r}),className:"shrink-0 text-[var(--text-muted)] hover:text-[var(--text-primary)]",children:l?(0,t.jsx)(u,{size:12}):(0,t.jsx)(c,{size:12})}),(0,t.jsx)(f,{size:12,className:"shrink-0",style:{color:"var(--file-border)"}}),(0,t.jsx)("button",{onClick:()=>e(r),className:"text-[11px] text-[var(--text-secondary)] hover:text-[var(--brand-primary)] truncate text-left",title:r,children:i}),(0,t.jsx)("span",{className:"text-[10px] text-[var(--text-muted)] truncate ml-auto opacity-0 group-hover:opacity-100 transition-opacity",children:r})]}),l&&(0,t.jsx)("div",{className:"ml-6 mt-1 mb-2",children:(0,t.jsx)(oW,{filePath:r,hash:n.hash})})]},r)})})})]},n.hash)})]},n))})]})})}let sd="file";e.s(["default",0,function(){let[e,r]=(0,n.useState)([]),[i,l]=(0,n.useState)(""),[a,o]=(0,n.useState)(null),[s,u]=(0,n.useState)(260),[c,d]=(0,n.useState)(!1),[f,p]=(0,n.useState)([]),[m,g]=(0,n.useState)([]);(0,n.useEffect)(()=>{let e,t=(e=new URL(window.location.href).searchParams.get(sd))?decodeURIComponent(e):null;t&&o(t)},[]),(0,n.useEffect)(()=>{let e=new URL(window.location.href);a?e.searchParams.set(sd,a):e.searchParams.delete(sd);let t=e.pathname+(e.search?e.search:"")+e.hash;t!==window.location.pathname+window.location.search+window.location.hash&&window.history.replaceState(null,"",t)},[a]);let x=(0,n.useCallback)(e=>{a&&e!==a&&(p(e=>[...e,a]),g([])),e!==a&&window.location.hash&&window.history.replaceState(null,"",window.location.pathname+window.location.search),o(e)},[a]),y=(0,n.useCallback)(()=>{if(0===f.length)return;let e=f[f.length-1];a&&g(e=>[...e,a]),p(e=>e.slice(0,-1)),o(e)},[f,a]),v=(0,n.useCallback)(()=>{if(0===m.length)return;let e=m[m.length-1];a&&p(e=>[...e,a]),g(e=>e.slice(0,-1)),o(e)},[m,a]),b=f.length>0,k=m.length>0,w=oG();(0,n.useEffect)(()=>{fetch(o_("/api/tree")).then(e=>e.json()).then(e=>{r(e.tree??[]),l(e.root??"")})},[w]),(0,n.useEffect)(()=>{let e=localStorage.getItem("markshelf:treeWidth");e&&u(Number(e)||260)},[]);let S=(0,n.useMemo)(()=>(function e(t){let n=[];for(let r of t)"file"===r.type&&n.push({path:r.path,displayName:r.displayName}),"folder"===r.type&&(r.hasReadme&&n.push({path:r.path+"/README.md",displayName:r.displayName}),r.children&&n.push(...e(r.children)));return n})(e),[e]),C=(0,n.useMemo)(()=>{let t=[];return!function e(n,r){for(let i of n)"folder"===i.type&&(t.push({path:i.path,displayName:i.displayName,depth:r}),i.children&&e(i.children,r+1))}(e,0),t},[e]),E=(0,n.useCallback)(e=>{e.preventDefault(),document.body.style.userSelect="none",document.body.style.cursor="col-resize";let t=e=>{let t=Math.max(180,Math.min(.4*window.innerWidth,e.clientX));u(t),localStorage.setItem("markshelf:treeWidth",String(t))},n=()=>{document.body.style.userSelect="",document.body.style.cursor="",document.removeEventListener("mousemove",t),document.removeEventListener("mouseup",n)};document.addEventListener("mousemove",t),document.addEventListener("mouseup",n)},[]);return(0,t.jsxs)("div",{className:"h-screen flex flex-col",children:[(0,t.jsxs)("header",{className:"h-11 border-b border-[var(--border-default)] bg-[var(--bg-surface)] flex items-center px-5 shrink-0 gap-3",children:[(0,t.jsxs)("span",{className:"font-semibold text-[15px] tracking-tight leading-none",children:["Mark",(0,t.jsx)("span",{className:"text-[var(--brand-primary)]",children:"Shelf"})]}),i&&(0,t.jsx)("span",{className:"text-[11px] text-[var(--text-muted)] font-[var(--font-mono)] truncate leading-none",children:i}),(0,t.jsx)("div",{className:"ml-auto",children:(0,t.jsxs)("button",{onClick:()=>d(!c),className:`flex items-center gap-1.5 px-2.5 py-1 rounded-md text-[12px] font-medium transition-colors ${c?"bg-[var(--brand-primary)] text-white":"text-[var(--text-muted)] hover:bg-[var(--bg-muted)] hover:text-[var(--text-secondary)]"}`,children:[(0,t.jsx)(su,{size:12}),"タイムライン"]})})]}),(0,t.jsxs)("div",{className:"flex flex-1 overflow-hidden",children:[(0,t.jsxs)("div",{className:"overflow-hidden flex flex-col shrink-0",style:{width:s},children:[(0,t.jsx)(so,{onSelect:x}),(0,t.jsx)("div",{className:"flex-1 overflow-hidden",children:(0,t.jsx)(h,{entries:e,selectedPath:a,onSelect:x})})]}),(0,t.jsx)("div",{className:"w-1.5 hover:bg-[var(--brand-primary)] bg-[var(--border-default)] cursor-col-resize shrink-0 transition-colors duration-150",onMouseDown:E}),(0,t.jsx)("div",{className:"flex-1 border-l border-[var(--border-default)] bg-[var(--bg-surface)] overflow-hidden flex flex-col",children:a?(0,t.jsx)(si,{filePath:a,fileRefs:S,folders:C,onNavigate:x,onGoBack:y,onGoForward:v,canGoBack:b,canGoForward:k}):(0,t.jsx)("div",{className:"p-6 text-[var(--text-muted)] text-sm flex items-center justify-center h-full",children:"ファイルをクリックして内容を表示"})})]}),c&&(0,t.jsx)(sc,{onNavigate:e=>{x(e),d(!1)},onClose:()=>d(!1)})]})}],52683)}])})();
8
+ </iframe>`},"putIntoIFrame"),oc=(0,r3.p)((e,t,n,r,i)=>{let l=e.append("div");l.attr("id",n),r&&l.attr("style",r);let a=l.append("svg").attr("id",t).attr("width","100%").attr("xmlns","http://www.w3.org/2000/svg");return i&&a.attr("xmlns:xlink",i),a.append("g"),e},"appendDivSvgG");function od(e,t){return e.append("iframe").attr("id",t).attr("style","width: 100%; height: 100%;").attr("sandbox","")}(0,r3.p)(od,"sandboxedIframe");var of=(0,r3.p)((e,t,n,r)=>{e.getElementById(t)?.remove(),e.getElementById(n)?.remove(),e.getElementById(r)?.remove()},"removeExistingElements"),op=(0,r3.p)(async function(e,t,n){let r,i;aX();let l=on(t);t=l.code;let a=(0,r2.N)();r4.d.debug(a),t.length>(a?.maxTextSize??5e4)&&(t="graph TB;a[Maximum text size in diagram exceeded];style a fill:#faa");let o=`#${e}`,s="i"+e,u="#"+s,c="d"+e,d="#"+c,f=(0,r3.p)(()=>{let e=h?u:d,t=(0,r5.f)(e).node();t&&"remove"in t&&t.remove()},"removeTempElements"),p=(0,r5.f)(document.body),h="sandbox"===a.securityLevel,m="loose"===a.securityLevel,g=a.fontFamily;if(void 0!==n){if(n&&(n.innerHTML=""),h){let e=od((0,r5.f)(n),s);(p=(0,r5.f)(e.nodes()[0].contentDocument.body)).node().style.margin="0"}else p=(0,r5.f)(n);oc(p,e,c,`font-family: ${g}`,"http://www.w3.org/1999/xlink")}else{if(of(document,e,c,s),h){let e=od((0,r5.f)(document.body),s);(p=(0,r5.f)(e.nodes()[0].contentDocument.body)).node().style.margin="0"}else p=(0,r5.f)("body");oc(p,e,c)}try{r=await a0.fromText(t,{title:l.title})}catch(e){if(a.suppressErrorRendering)throw f(),e;r=await a0.fromText("error"),i=e}let x=p.select(d).node(),y=r.type,v=x.firstChild,b=v.firstChild,k=oo(a,y,r.renderer.getClasses?.(t,r),o),w=document.createElement("style");w.innerHTML=k,v.insertBefore(w,b);try{await r.renderer.draw(t,e,"11.16.1",r)}catch(n){throw a.suppressErrorRendering?f():lD.draw(t,e,"11.16.1"),n}og(y,p.select(`${d} svg`),r.db.getAccTitle?.(),r.db.getAccDescription?.()),p.select(`[id="${e}"]`).selectAll("foreignobject > *").attr("xmlns","http://www.w3.org/1999/xhtml");let S=p.select(d).node().innerHTML;if(r4.d.debug("config.arrowMarkerAbsolute",a.arrowMarkerAbsolute),S=os(S,h,(0,r2.i)(a.arrowMarkerAbsolute)),h?S=ou(S,p.select(d+" svg").node()):m||(S=ij.f.sanitize(S,{ADD_TAGS:oe,ADD_ATTR:ot,HTML_INTEGRATION_POINTS:{foreignobject:!0}})),a2(),i)throw i;return f(),{diagramType:y,svg:S,bindFunctions:r.db.bindFunctions}},"render");function oh(e={}){let t=(0,r2.L)({},e);t?.fontFamily&&!t.themeVariables?.fontFamily&&(t.themeVariables||(t.themeVariables={}),t.themeVariables.fontFamily=t.fontFamily),(0,r2.B)(t),t?.theme&&t.theme in r2.Q?t.themeVariables=r2.Q[t.theme].getThemeVariables(t.themeVariables):t&&(t.themeVariables=r2.Q.default.getThemeVariables(t.themeVariables));let n="object"==typeof t?(0,r2.J)(t):(0,r2._)();(0,r4.O)(n.logLevel),aX()}(0,r3.p)(oh,"initialize");var om=(0,r3.p)((e,t={})=>{let{code:n}=a8(e);return a0.fromText(n,t)},"getDiagramFromText");function og(e,t,n,r){aG(t,e),aY(t,n,r,t.attr("id"))}(0,r3.p)(og,"addA11yInfo");var ox=Object.freeze({render:op,parse:or,getDiagramFromText:om,initialize:oh,getConfig:r2.N,setConfig:r2.H,getSiteConfig:r2._,updateSiteConfig:r2.S,reset:(0,r3.p)(()=>{(0,r2.X)()},"reset"),globalReset:(0,r3.p)(()=>{(0,r2.X)(r2.t)},"globalReset"),defaultConfig:r2.t});(0,r4.O)((0,r2.N)().logLevel),(0,r2.X)((0,r2.N)());var oy=(0,r3.p)((e,t,n)=>{r4.d.warn(e),(0,r1.b)(e)?(n&&n(e.str,e.hash),t.push({...e,message:e.str,error:e})):(n&&n(e),e instanceof Error&&t.push({str:e.message,message:e.message,hash:e.name,error:e}))},"handleError"),ov=(0,r3.p)(async function(e={querySelector:".mermaid"}){try{await ob(e)}catch(t){if((0,r1.b)(t)&&r4.d.error(t.str),oM.parseError&&oM.parseError(t),!e.suppressErrors)throw r4.d.error("Use the suppressErrors option to suppress these errors"),t}},"run"),ob=(0,r3.p)(async function({postRenderCallback:e,querySelector:t,nodes:n}={querySelector:".mermaid"}){let r,i,l=ox.getConfig();if(r4.d.debug(`${!e?"No ":""}Callback function found`),n)r=n;else if(t)r=document.querySelectorAll(t);else throw Error("Nodes and querySelector are both undefined");r4.d.debug(`Found ${r.length} diagrams`),l?.startOnLoad!==void 0&&(r4.d.debug("Start On Load: "+l?.startOnLoad),ox.updateSiteConfig({startOnLoad:l?.startOnLoad}));let a=new r1.u.InitIDGenerator(l.deterministicIds,l.deterministicIDSeed),o=[];for(let t of Array.from(r)){if(r4.d.info("Rendering diagram: "+t.id),t.getAttribute("data-processed"))continue;t.setAttribute("data-processed","true");let n=`mermaid-${a.next()}`;i=t.innerHTML,i=(0,r6.f)(r1.u.entityDecode(i)).trim().replace(/<br\s*\/?>/gi,"<br/>");let r=r1.u.detectInit(i);r&&r4.d.debug("Detected early reinit: ",r);try{let{svg:r,bindFunctions:l}=await oL(n,i,t);t.innerHTML=r,e&&await e(n),l&&l(t)}catch(e){oy(e,o,oM.parseError)}}if(o.length>0)throw o[0]},"runThrowsErrors"),ok=(0,r3.p)(function(e){ox.initialize(e)},"initialize"),ow=(0,r3.p)(async function(e,t,n){r4.d.warn("mermaid.init is deprecated. Please use run instead."),e&&ok(e);let r={postRenderCallback:n,querySelector:".mermaid"};"string"==typeof t?r.querySelector=t:t&&(t instanceof HTMLElement?r.nodes=[t]:r.nodes=t),await ov(r)},"init"),oS=(0,r3.p)(async(e,{lazyLoad:t=!0}={})=>{aX(),(0,r2.$)(...e),!1===t&&await aZ()},"registerExternalDiagrams"),oC=(0,r3.p)(function(){if(oM.startOnLoad){let{startOnLoad:e}=ox.getConfig();e&&oM.run().catch(e=>r4.d.error("Mermaid failed to initialize",e))}},"contentLoaded");"u">typeof document&&window.addEventListener("load",oC,!1);var oE=(0,r3.p)(function(e){oM.parseError=e},"setParseErrorHandler"),oj=[],oA=!1,oT=(0,r3.p)(async()=>{if(!oA){for(oA=!0;oj.length>0;){let e=oj.shift();if(e)try{await e()}catch(e){r4.d.error("Error executing queue",e)}}oA=!1}},"executeQueue"),oN=(0,r3.p)(async(e,t)=>new Promise((n,r)=>{let i=(0,r3.p)(()=>new Promise((i,l)=>{ox.parse(e,t).then(e=>{i(e),n(e)},e=>{r4.d.error("Error parsing",e),oM.parseError?.(e),l(e),r(e)})}),"performCall");oj.push(i),oT().catch(r)}),"parse"),oL=(0,r3.p)((e,t,n)=>new Promise((r,i)=>{let l=(0,r3.p)(()=>new Promise((l,a)=>{ox.render(e,t,n).then(e=>{l(e),r(e)},e=>{r4.d.error("Error parsing",e),oM.parseError?.(e),a(e),i(e)})}),"performCall");oj.push(l),oT().catch(i)}),"render"),oD=(0,r3.p)(()=>Object.keys(r2.k).map(e=>({id:e})),"getRegisteredDiagramsMetadata"),oM={startOnLoad:!0,mermaidAPI:ox,parse:oN,render:oL,init:ow,run:ov,registerExternalDiagrams:oS,registerLayoutLoaders:rY.F,initialize:ok,parseError:void 0,contentLoaded:oC,setParseErrorHandler:oE,detectType:r2.n,registerIconPacks:r0.z,getRegisteredDiagramsMetadata:oD};let oz=!1,oI=0;function oP({code:e}){let r=(0,n.useRef)(null),[i,l]=(0,n.useState)(null),[a,o]=(0,n.useState)(null),s=(0,n.useRef)(`mermaid-${++oI}`);return((0,n.useEffect)(()=>{let t=!1;return oz||(oz=!0,oM.initialize({startOnLoad:!1,theme:"default",securityLevel:"loose",fontFamily:"system-ui, sans-serif"})),(async()=>{try{let{svg:n}=await oM.render(s.current,e);t||(l(n),o(null))}catch(n){t||(o(n instanceof Error?n.message:"Mermaid render error"),l(null));let e=document.getElementById("d"+s.current);e?.remove()}})(),()=>{t=!0}},[e]),a)?(0,t.jsxs)("div",{className:"border border-red-200 bg-red-50 rounded p-3 text-xs text-red-700",children:[(0,t.jsx)("div",{className:"font-medium mb-1",children:"Mermaid エラー"}),(0,t.jsx)("pre",{className:"whitespace-pre-wrap",children:e})]}):i?(0,t.jsx)("div",{ref:r,className:"my-2 overflow-x-auto",dangerouslySetInnerHTML:{__html:i}}):(0,t.jsx)("div",{className:"text-xs text-[var(--text-muted)] py-2",children:"図を描画中..."})}var oR=e.i(47167);let oF=oR.default.env.NEXT_PUBLIC_BASE_PATH?.trim(),oO=oF&&"/"!==oF&&""!==oF?oF.replace(/\/$/,""):"";function o_(e){return e.startsWith("/")?oO+e:e}let oB=/^[ \t]*(`{3,}|~{3,})(.*)$/;function oH(e){return e.toLowerCase().replace(/[^\p{L}\p{N}\s-]/gu,"").replace(/\s+/g,"-").replace(/-+/g,"-").trim()}function o$(e){let t,n=document.createElement("textarea");n.value=e,n.setAttribute("readonly",""),n.style.position="fixed",n.style.top="0",n.style.left="0",n.style.opacity="0",document.body.appendChild(n),n.select();try{t=document.execCommand("copy")}catch{t=!1}return document.body.removeChild(n),t}function oU({id:e}){let[r,i]=(0,n.useState)(!1);return(0,t.jsx)("a",{href:`#${e}`,onClick:t=>{t.preventDefault();let n=new URL(window.location.href);n.hash=e;let r=n.toString();window.history.replaceState(null,"",r);let l=()=>{i(!0),window.setTimeout(()=>i(!1),1500)};window.isSecureContext&&navigator.clipboard?.writeText?navigator.clipboard.writeText(r).then(l).catch(()=>{o$(r)&&l()}):o$(r)&&l()},className:"ml-2 inline-flex items-center align-middle text-[var(--text-muted)] no-underline opacity-0 group-hover:opacity-100 focus:opacity-100 hover:text-[var(--brand-primary)] transition-opacity",title:r?"リンクをコピーしました":"このヘッダーへのリンクをコピー","aria-label":"このヘッダーへのリンクをコピー",children:r?(0,t.jsx)(rX,{size:13}):(0,t.jsx)(rK,{size:13})})}function oq({children:e,onHeadingsExtracted:r,fileRefs:i,currentPath:l,onNavigate:a,onPreviewShow:o,onPreviewHide:s,enableHeadingLinks:u=!1}){let c=(0,n.useMemo)(()=>(function(e){let t=[],n=new Map,r=/^(#{1,4})\s+(.+)$/,i=e.split("\n"),l=function(e){let t=Array(e.length).fill(!1),n=null;for(let r=0;r<e.length;r++){let i=oB.exec(e[r]);if(!i){t[r]=null!==n;continue}let l=i[1],a=l[0],o=i[2];if(null===n){if("`"===a&&o.includes("`"))continue;n={char:a,length:l.length},t[r]=!0;continue}a===n.char&&l.length>=n.length&&""===o.trim()&&(n=null),t[r]=!0}return t}(i);for(let e=0;e<i.length;e++){if(l[e])continue;let a=r.exec(i[e]);if(!a)continue;let o=a[1].length,s=a[2].replace(/[#*_`[\]]/g,"").trim(),u=oH(s)||"heading",c=n.get(u)??0;n.set(u,c+1);let d=0===c?u:`${u}-${c}`;t.push({id:d,text:s,level:o})}return t})(e),[e]),d=(0,n.useMemo)(()=>{let e=new Map;for(let t of c){let n=e.get(t.text)??[];n.push(t.id),e.set(t.text,n)}return e},[c]),f=(0,n.useMemo)(()=>new Map,[c]);(0,n.useEffect)(()=>{r?.(c)},[c,r]);let p=(0,n.useMemo)(()=>new Set((i??[]).map(e=>e.path)),[i]);function h(e){return function({children:n,className:r,...i}){let l=function(e){let t=d.get(e);if(!t)return oH(e)||"heading";let n=f.get(e)??0;return f.set(e,n+1),t[n%t.length]}("string"==typeof n?n:function e(t){return"string"==typeof t?t:"number"==typeof t?String(t):Array.isArray(t)?t.map(e).join(""):t&&"object"==typeof t&&"props"in t?e(t.props.children):""}(n)),a=u?`group scroll-mt-4${r?` ${r}`:""}`:r,o={...i,id:l,className:a},s=(0,t.jsxs)(t.Fragment,{children:[n,u&&(0,t.jsx)(oU,{id:l})]});switch(e){case 1:return(0,t.jsx)("h1",{...o,children:s});case 2:return(0,t.jsx)("h2",{...o,children:s});case 3:return(0,t.jsx)("h3",{...o,children:s});default:return(0,t.jsx)("h4",{...o,children:s})}}}let m={h1:h(1),h2:h(2),h3:h(3),h4:h(4),code:({className:e,children:n,...r})=>{if(/language-mermaid/.exec(e||"")){let e=String(n).replace(/\n$/,"");return(0,t.jsx)(oP,{code:e})}return(0,t.jsx)("code",{className:e,...r,children:n})},pre:({children:e})=>e&&"object"==typeof e&&"type"in e&&e.type===oP?(0,t.jsx)(t.Fragment,{children:e}):(0,t.jsx)("pre",{children:e}),a:({href:e,children:n,...r})=>{let i=e?function(e){let t,n=e.split("#")[0].split("?")[0].trim();if(!n||/^[a-z][a-z0-9+.-]*:/i.test(n)||n.startsWith("//"))return null;try{t=decodeURI(n)}catch{t=n}let r=l&&l.includes("/")?l.slice(0,l.lastIndexOf("/")):"",i=(t.startsWith("/")?t.slice(1):r?r+"/"+t:t).split("/"),a=[];for(let e of i)if(""!==e&&"."!==e){if(".."===e){a.pop();continue}a.push(e)}let o=a.join("/");return o?p.has(o)?o:p.has(o+"/README.md")?o+"/README.md":!/\.md$/i.test(o)&&p.has(o+".md")?o+".md":null:null}(e):null;return i?(0,t.jsx)("span",{className:"text-[var(--brand-primary)] font-medium cursor-pointer hover:underline transition-colors",onClick:e=>{e.preventDefault(),s?.(),a?.(i)},onMouseEnter:e=>{let t=e.target.getBoundingClientRect();o?.(i,t)},onMouseLeave:()=>s?.(),children:n}):(0,t.jsx)("a",{href:e,...r,children:n})},img:({src:e,alt:n,...r})=>{if("string"!=typeof e)return(0,t.jsx)("img",{src:e,alt:n,...r});let i=function(e){let t,n=e.split("#")[0].split("?")[0].trim();if(!n||/^[a-z][a-z0-9+.-]*:/i.test(n)||n.startsWith("//"))return null;try{t=decodeURI(n)}catch{t=n}let r=l&&l.includes("/")?l.slice(0,l.lastIndexOf("/")):"",i=(t.startsWith("/")?t.slice(1):r?r+"/"+t:t).split("/"),a=[];for(let e of i)if(""!==e&&"."!==e){if(".."===e){a.pop();continue}a.push(e)}return a.join("/")||null}(e);if(!i)return(0,t.jsx)("img",{src:e,alt:n,...r});let a=o_(`/api/asset?path=${encodeURIComponent(i)}`);return(0,t.jsx)("img",{src:a,alt:n,...r})}};return(0,t.jsx)("div",{className:"prose prose-sm max-w-none\n prose-headings:font-semibold prose-headings:tracking-tight prose-headings:text-[var(--text-primary)]\n prose-h1:text-lg prose-h1:leading-snug prose-h1:mb-4\n prose-h2:text-[15px] prose-h2:leading-snug prose-h2:border-b prose-h2:border-[var(--border-default)] prose-h2:pb-2 prose-h2:mt-8 prose-h2:mb-3\n prose-h3:text-[13px] prose-h3:leading-snug prose-h3:mt-6 prose-h3:mb-2\n prose-p:text-[var(--text-secondary)] prose-p:text-[13px] prose-p:leading-[1.75]\n prose-li:text-[var(--text-secondary)] prose-li:text-[13px] prose-li:leading-[1.75]\n prose-strong:text-[var(--text-primary)] prose-strong:font-semibold\n prose-a:text-[var(--brand-primary)] prose-a:font-medium prose-a:no-underline hover:prose-a:underline\n prose-code:text-xs prose-code:text-[var(--text-primary)] prose-code:bg-[var(--bg-muted)] prose-code:px-1 prose-code:py-0.5 prose-code:rounded prose-code:before:content-none prose-code:after:content-none\n prose-pre:bg-[var(--bg-muted)] prose-pre:text-xs prose-pre:text-[var(--text-primary)]\n prose-table:text-[12px]\n prose-th:bg-[var(--bg-muted)] prose-th:text-[var(--text-primary)] prose-th:font-semibold prose-th:px-3 prose-th:py-1.5 prose-th:text-left\n prose-td:px-3 prose-td:py-1.5 prose-td:border-[var(--border-default)] prose-td:text-[var(--text-secondary)]\n prose-hr:border-[var(--border-default)]\n prose-blockquote:border-l-[var(--brand-primary)] prose-blockquote:text-[var(--text-muted)] prose-blockquote:not-italic\n prose-img:rounded-lg\n ",children:(0,t.jsx)(nF,{remarkPlugins:[rJ],components:m,children:e})})}let oV=s("git-commit-horizontal",[["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}],["line",{x1:"3",x2:"9",y1:"12",y2:"12",key:"1dyftd"}],["line",{x1:"15",x2:"21",y1:"12",y2:"12",key:"oup4p8"}]]);function oW({filePath:e,hash:r}){let[i,l]=(0,n.useState)(null);return((0,n.useEffect)(()=>{l(null),fetch(o_(`/api/diff?path=${encodeURIComponent(e)}&hash=${r}`)).then(e=>e.json()).then(e=>l(e.diff)).catch(()=>l("(差分を取得できませんでした)"))},[e,r]),null===i)?(0,t.jsx)("div",{className:"text-[12px] text-[var(--text-muted)] py-2",children:"差分を読み込み中..."}):(0,t.jsx)("pre",{className:"text-[11px] font-[var(--font-mono)] bg-[var(--bg-muted)] rounded-lg p-3 overflow-x-auto leading-[1.7] border border-[var(--border-default)]",children:i.split("\n").filter(e=>!e.startsWith("diff --git")&&!e.startsWith("index ")&&!e.startsWith("new file")&&!e.startsWith("deleted file")&&!e.startsWith("similarity")&&!e.startsWith("rename ")&&!e.startsWith("old mode")&&!e.startsWith("new mode")).map((e,n)=>{let r="var(--text-secondary)",i="transparent";return e.startsWith("+")&&!e.startsWith("+++")?(r="var(--add-color)",i="var(--add-bg)"):e.startsWith("-")&&!e.startsWith("---")?(r="var(--del-color)",i="var(--del-bg)"):e.startsWith("@@")&&(r="var(--brand-primary)"),(0,t.jsx)("div",{style:{color:r,backgroundColor:i},className:"px-1 -mx-1 rounded-sm",children:e},n)})})}let oQ=0,oJ=new Set,oK=null,oX=null;function oZ(){for(let e of(oQ++,oJ))e(oQ)}function oG(){let[e,t]=(0,n.useState)(oQ);return(0,n.useEffect)(()=>{!function(){if(!oK){try{oK=new EventSource(o_("/api/watch"))}catch{return}oK.addEventListener("change",()=>{oX&&clearTimeout(oX),oX=setTimeout(oZ,150)})}}();let e=e=>t(e);return oJ.add(e),()=>{oJ.delete(e)}},[]),e}function oY({filePath:e}){let[r,i]=(0,n.useState)([]),[l,a]=(0,n.useState)(!0),[o,s]=(0,n.useState)(null),d=oG();return((0,n.useEffect)(()=>{a(!0),s(null),fetch(o_(`/api/history?path=${encodeURIComponent(e)}`)).then(e=>e.json()).then(e=>{i(e),a(!1)}).catch(()=>a(!1))},[e,d]),l)?(0,t.jsx)("div",{className:"p-4 text-[var(--text-muted)] text-[13px]",children:"読み込み中..."}):0===r.length?(0,t.jsx)("div",{className:"p-4 text-[var(--text-muted)] text-[13px]",children:"変更履歴がありません(git 管理外の可能性)"}):(0,t.jsx)("div",{className:"divide-y divide-[var(--border-default)]",children:r.map(n=>{let r=o===n.hash;return(0,t.jsxs)("div",{children:[(0,t.jsx)("button",{onClick:()=>s(r?null:n.hash),className:"w-full text-left px-4 py-3 hover:bg-[var(--bg-hover)] transition-colors",children:(0,t.jsxs)("div",{className:"flex items-start gap-2.5",children:[(0,t.jsx)(oV,{size:13,className:"text-[var(--text-muted)] mt-0.5 shrink-0"}),(0,t.jsxs)("div",{className:"min-w-0 flex-1",children:[(0,t.jsxs)("div",{className:"flex items-center gap-2",children:[(0,t.jsx)("span",{className:"text-[11px] font-[var(--font-mono)] text-[var(--brand-primary)] leading-none",children:n.hashShort}),(0,t.jsx)("span",{className:"text-[11px] text-[var(--text-muted)] leading-none",children:new Date(n.date).toLocaleString("ja-JP",{year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit"})}),n.author&&(0,t.jsx)("span",{className:"text-[11px] text-[var(--text-muted)] leading-none",children:n.author})]}),(0,t.jsx)("p",{className:"text-[12px] text-[var(--text-secondary)] mt-1 leading-snug line-clamp-2",children:n.message})]}),(0,t.jsx)("span",{className:"text-[var(--text-muted)] shrink-0 mt-0.5",children:r?(0,t.jsx)(u,{size:13}):(0,t.jsx)(c,{size:13})})]})}),r&&(0,t.jsx)("div",{className:"px-4 pb-3",children:(0,t.jsx)(oW,{filePath:e,hash:n.hash})})]},n.hash)})})}function o0({headings:e,scrollContainer:r}){let[i,l]=(0,n.useState)(null),a=(0,n.useRef)(null);(0,n.useEffect)(()=>{if(!r||0===e.length)return;a.current?.disconnect();let t=new IntersectionObserver(e=>{for(let t of e)t.isIntersecting&&l(t.target.id)},{root:r,rootMargin:"0px 0px -70% 0px",threshold:.1});for(let n of(a.current=t,e)){let e=document.getElementById(n.id);e&&t.observe(e)}return()=>t.disconnect()},[e,r]);let o=(0,n.useCallback)(e=>{let t=document.getElementById(e);if(t){t.scrollIntoView({behavior:"smooth",block:"start"}),l(e);{let t=new URL(window.location.href);t.hash=e,window.history.replaceState(null,"",t.toString())}}},[]);return 0===e.length?null:(0,t.jsxs)("nav",{className:"py-3 px-2 space-y-px",children:[(0,t.jsx)("div",{className:"text-[10px] font-medium text-[var(--text-muted)] tracking-wider uppercase px-1.5 mb-1.5",children:"目次"}),e.map(e=>(0,t.jsx)("button",{onClick:()=>o(e.id),className:`block w-full text-left text-[11px] leading-relaxed py-0.5 truncate transition-colors rounded px-1.5 ${i===e.id?"text-[var(--brand-primary)] font-medium bg-blue-50":"text-[var(--text-muted)] hover:text-[var(--text-secondary)] hover:bg-[var(--bg-hover)]"}`,style:{paddingLeft:`${(e.level-1)*10+6}px`},title:e.text,children:e.text},e.id))]})}let o1=s("external-link",[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"M10 14 21 3",key:"gplh6r"}],["path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6",key:"a6xqqp"}]]);function o2({path:e,position:r,onNavigate:i,onMouseEnter:l,onMouseLeave:a,fileRefs:o,depth:s=0}){let[u,c]=(0,n.useState)(null),[d,f]=(0,n.useState)(!1),p=(0,n.useRef)(null),[h,m]=(0,n.useState)(null),[g,x]=(0,n.useState)(null),[y,v]=(0,n.useState)(null),b=(0,n.useRef)(null),k=(0,n.useRef)(null),w=oG();(0,n.useEffect)(()=>{if(b.current&&clearTimeout(b.current),k.current&&clearTimeout(k.current),!e){c(null),x(null),v(null);return}f(!0),c(null),x(null),v(null),fetch(o_(`/api/file?path=${encodeURIComponent(e)}`)).then(e=>e.json()).then(e=>c(e.content??null)).catch(()=>c(null)).finally(()=>f(!1))},[e,w]),(0,n.useEffect)(()=>{if(!r||!p.current)return void m(r);let e=p.current.getBoundingClientRect(),t=window.innerWidth,n=window.innerHeight,{x:i,y:l}=r;i+e.width>t-16&&(i=t-e.width-16),i<16&&(i=16),l+e.height>n-16&&(l=r.y-e.height-8),m({x:i,y:l})},[r,u]);let S=(0,n.useCallback)((e,t)=>{s>=3||(k.current&&clearTimeout(k.current),b.current&&clearTimeout(b.current),b.current=setTimeout(()=>{x(e),v({x:t.right+8,y:t.top})},200))},[s]),C=(0,n.useCallback)(()=>{b.current&&clearTimeout(b.current),k.current&&clearTimeout(k.current),k.current=setTimeout(()=>{x(null),v(null)},300)},[]),E=(0,n.useCallback)(()=>{k.current&&clearTimeout(k.current),l()},[l]),j=(0,n.useCallback)(()=>{C(),a()},[C,a]);if(!e||!r)return null;let A=e.split("/").pop()?.replace(/\.md$/i,"")||e;return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("div",{ref:p,onMouseEnter:l,onMouseLeave:()=>{a(),C()},className:"fixed bg-[var(--bg-surface)] border border-[var(--border-default)] rounded-lg shadow-xl w-[min(480px,30vw)] max-h-[min(420px,30vh)] overflow-y-auto",style:{left:h?.x??r.x,top:h?.y??r.y,zIndex:50+s},children:[(0,t.jsx)("div",{className:"sticky top-0 bg-[var(--bg-surface)] border-b border-[var(--border-default)] px-3 py-2 flex items-center gap-2",children:(0,t.jsxs)("button",{onClick:()=>i(e),className:"text-xs font-medium text-[var(--brand-primary)] hover:underline truncate flex items-center gap-1",children:[A,(0,t.jsx)(o1,{size:10})]})}),(0,t.jsx)("div",{className:"p-3",children:d?(0,t.jsx)("div",{className:"text-xs text-[var(--text-muted)]",children:"読み込み中..."}):u?(0,t.jsx)("div",{className:"text-[11px]",children:(0,t.jsx)(oq,{fileRefs:o,currentPath:e,onNavigate:i,onPreviewShow:S,onPreviewHide:C,children:u})}):(0,t.jsx)("div",{className:"text-xs text-[var(--text-muted)]",children:"プレビューを表示できません"})})]}),(0,t.jsx)(o2,{path:g,position:y,onNavigate:i,onMouseEnter:E,onMouseLeave:j,fileRefs:o,depth:s+1})]})}var o4=e.i(77871),o3=e.i(45108);let o6=s("funnel",[["path",{d:"M10 20a1 1 0 0 0 .553.895l2 1A1 1 0 0 0 14 21v-7a2 2 0 0 1 .517-1.341L21.74 4.67A1 1 0 0 0 21 3H3a1 1 0 0 0-.742 1.67l7.225 7.989A2 2 0 0 1 10 14z",key:"sc7q7i"}]]);o4.f.use(o3.default);let o5="markshelf:linkGraphDepth",o9="markshelf:linkGraphExclude",o8="markshelf:linkGraphZoom",o7=[{value:1,label:"1階層"},{value:2,label:"2階層"},{value:3,label:"3階層"},{value:1/0,label:"全階層"}];function se({currentPath:e,folders:r,onNavigate:i,onPreviewShow:l,onPreviewHide:a}){let o=(0,n.useRef)(null),s=(0,n.useRef)(null),u=(0,n.useRef)(null),[c,d]=(0,n.useState)(!0),[f,p]=(0,n.useState)(!1),[h,m]=(0,n.useState)(!1),[g,x]=(0,n.useState)(1),[y,v]=(0,n.useState)([]),[b,k]=(0,n.useState)(!1),w=oG();(0,n.useEffect)(()=>{let e=localStorage.getItem(o5);if(null===e)return;let t="all"===e?1/0:Number(e);(Number.isFinite(t)||1/0===t)&&x(t)},[]),(0,n.useEffect)(()=>{let e=localStorage.getItem(o9);if(e)try{let t=JSON.parse(e);Array.isArray(t)&&v(t.filter(e=>"string"==typeof e))}catch{}},[]),(0,n.useEffect)(()=>{if(0===r.length)return;let e=new Set(r.map(e=>e.path));v(t=>{let n=t.filter(t=>e.has(t));return n.length===t.length?t:(localStorage.setItem(o9,JSON.stringify(n)),n)})},[r]),(0,n.useEffect)(()=>{if(!b)return;let e=e=>{u.current&&!u.current.contains(e.target)&&k(!1)};return document.addEventListener("mousedown",e),()=>document.removeEventListener("mousedown",e)},[b]);let S=(0,n.useMemo)(()=>{let t=y.map(e=>e+"/"),n=y.some(t=>e===t||e.startsWith(t+"/"));return r=>!n&&r!==e&&t.some(e=>r.startsWith(e))},[y,e]),C=(0,n.useRef)(i),E=(0,n.useRef)(l),j=(0,n.useRef)(a);return(0,n.useEffect)(()=>{C.current=i,E.current=l,j.current=a}),(0,n.useEffect)(()=>{let t=!1;return d(!0),p(!1),m(!1),fetch(o_("/api/graph")).then(e=>e.json()).then(n=>{let r;if(t||!o.current)return;let i=n.nodes.filter(e=>!S(e.id)),l=n.edges.filter(e=>!S(e.source)&&!S(e.target)),a=new Map;for(let e of l)(a.get(e.source)??a.set(e.source,[]).get(e.source)).push(e.target),(a.get(e.target)??a.set(e.target,[]).get(e.target)).push(e.source);let u=new Set([e]),c=[[e,0]];for(;c.length>0;){let[e,t]=c.shift();if(!(t>=g))for(let n of a.get(e)??[])u.has(n)||(u.add(n),c.push([n,t+1]))}let f=i.filter(e=>u.has(e.id)),h=l.filter(e=>u.has(e.source)&&u.has(e.target)),x=new Set(h.map(e=>`${e.source}\0${e.target}`)),y=new Set,v=[];for(let e of h){let t=e.source<e.target?`${e.source}\0${e.target}`:`${e.target}\0${e.source}`,n=x.has(`${e.target}\0${e.source}`),r=n?t:`${e.source}\0${e.target}`;y.has(r)||(y.add(r),v.push({source:e.source,target:e.target,mutual:n}))}if(0===f.length){p(!0),d(!1);return}s.current?.destroy();let b=Math.random;Math.random=function(e){let t=0x811c9dc5;for(let n=0;n<e.length;n++)t=Math.imul(t^e.charCodeAt(n),0x1000193);return()=>{let e=Math.imul((t=t+0x6d2b79f5|0)^t>>>15,1|t);return(((e=e+Math.imul(e^e>>>7,61|e)^e)^e>>>14)>>>0)/0x100000000}}(e);try{r=(0,o4.f)({container:o.current,elements:[...f.map(t=>({data:{id:t.id,label:t.label,isCurrent:t.id===e}})),...v.map((e,t)=>({data:{id:`e${t}`,source:e.source,target:e.target,mutual:e.mutual}}))],style:[{selector:"node",style:{label:"data(label)","text-valign":"bottom","text-halign":"center","font-size":"11px","font-family":"var(--font-sans)",color:"#4a5060","text-margin-y":6,"background-color":"#e8f0fe","border-width":2,"border-color":"#3b7ddb",width:28,height:28,"text-max-width":"180px","text-wrap":"ellipsis",cursor:"pointer"}},{selector:"node[?isCurrent]",style:{"background-color":"#2563eb","border-color":"#1d4ed8",color:"#1a1d23","font-weight":"bold",width:36,height:36}},{selector:"edge",style:{width:1.5,"line-color":"#c8ccd3","target-arrow-color":"#c8ccd3","target-arrow-shape":"triangle","curve-style":"bezier","arrow-scale":.8}},{selector:"edge[?mutual]",style:{width:2,"line-color":"#8fb0e8","target-arrow-color":"#8fb0e8","source-arrow-color":"#8fb0e8","source-arrow-shape":"triangle"}},{selector:"node:active",style:{"overlay-opacity":0}}],layout:{name:"fcose",animate:!1,randomize:!0,quality:"proof",padding:50,nodeDimensionsIncludeLabels:!0,idealEdgeLength:120,nodeRepulsion:12e3,nodeSeparation:100},userZoomingEnabled:!0,userPanningEnabled:!0,boxSelectionEnabled:!1,autoungrabify:!1})}finally{Math.random=b}requestAnimationFrame(()=>{r.resize();let e=Number(localStorage.getItem(o8));Number.isFinite(e)&&e>0?r.zoom({level:e,renderedPosition:{x:o.current.clientWidth/2,y:o.current.clientHeight/2}}):(r.fit(void 0,50),r.zoom()>.9&&r.zoom({level:.9,renderedPosition:{x:o.current.clientWidth/2,y:o.current.clientHeight/2}})),r.center(r.nodes("[?isCurrent]")),m(!0)});let k=null;r.on("zoom",()=>{k&&clearTimeout(k),k=setTimeout(()=>{localStorage.setItem(o8,String(r.zoom()))},200)}),r.on("mouseover","node",e=>{let t=e.target;t.data("isCurrent")||t.style({"background-color":"#dbeafe","border-color":"#2563eb",color:"#1a1d23"}),o.current.style.cursor="pointer";let n=t.id();if(E.current&&o.current){let e=t.renderedBoundingBox(),r=o.current.getBoundingClientRect(),i=r.left+e.x1,l=r.top+e.y1,a={left:i,top:l,right:r.left+e.x2,bottom:r.top+e.y2,width:e.w,height:e.h,x:i,y:l,toJSON:()=>({})};E.current(n,a)}}),r.on("mouseout","node",e=>{let t=e.target;t.data("isCurrent")||t.style({"background-color":"#e8f0fe","border-color":"#3b7ddb",color:"#4a5060"}),o.current.style.cursor="default",j.current?.()}),r.on("tap","node",t=>{let n=t.target.id();n!==e&&C.current(n)}),s.current=r,d(!1)}).catch(()=>{t||(p(!0),d(!1))}),()=>{t=!0,s.current?.destroy(),s.current=null}},[e,g,S,w]),(0,t.jsxs)("div",{className:"h-full flex flex-col relative",children:[(0,t.jsxs)("div",{className:"flex items-center gap-1.5 px-3 py-2 shrink-0",children:[(0,t.jsx)("span",{className:"text-[11px] text-[var(--text-muted)] mr-1",children:"表示範囲"}),o7.map(e=>{let n=g===e.value;return(0,t.jsx)("button",{onClick:()=>{var t;x(t=e.value),localStorage.setItem(o5,1/0===t?"all":String(t))},className:`px-2 py-0.5 rounded-md text-[11px] font-medium transition-colors ${n?"bg-[var(--brand-primary)] text-white":"text-[var(--text-muted)] hover:bg-[var(--bg-muted)] hover:text-[var(--text-secondary)]"}`,children:e.label},e.label)}),(0,t.jsxs)("div",{className:"ml-auto relative",ref:u,children:[(0,t.jsxs)("button",{onClick:()=>k(e=>!e),className:`flex items-center gap-1 px-2 py-0.5 rounded-md text-[11px] font-medium transition-colors ${y.length>0?"bg-[var(--brand-primary)] text-white":"text-[var(--text-muted)] hover:bg-[var(--bg-muted)] hover:text-[var(--text-secondary)]"}`,title:"フォルダを除外",children:[(0,t.jsx)(o6,{size:11}),"除外",y.length>0&&(0,t.jsxs)("span",{className:"ml-0.5",children:["(",y.length,")"]})]}),b&&(0,t.jsx)("div",{className:"absolute right-0 top-full mt-1 w-56 max-h-72 overflow-y-auto bg-[var(--bg-surface)] border border-[var(--border-default)] rounded-md shadow-lg z-20 py-1",children:0===r.length?(0,t.jsx)("div",{className:"px-3 py-2 text-[11px] text-[var(--text-muted)]",children:"フォルダがありません"}):r.map(e=>{let n=y.includes(e.path);return(0,t.jsxs)("label",{className:"flex items-center gap-2 px-3 py-1 text-[12px] cursor-pointer hover:bg-[var(--bg-muted)]",style:{paddingLeft:`${12+12*e.depth}px`},children:[(0,t.jsx)("input",{type:"checkbox",checked:n,onChange:()=>{var t;return t=e.path,void v(e=>{let n=e.includes(t)?e.filter(e=>e!==t):[...e,t];return localStorage.setItem(o9,JSON.stringify(n)),n})},className:"shrink-0"}),(0,t.jsx)("span",{className:"truncate text-[var(--text-secondary)]",children:e.displayName})]},e.path)})})]})]}),(c||f)&&(0,t.jsx)("div",{className:"absolute inset-0 flex items-center justify-center text-[13px] text-[var(--text-muted)] z-10 bg-[var(--bg-surface)]",children:c?"グラフを構築中...":"このドキュメントへのリンクはありません"}),(0,t.jsx)("div",{ref:o,className:"flex-1 min-h-0 transition-opacity duration-150",style:{opacity:+!!h}})]})}let st=s("history",[["path",{d:"M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"1357e3"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}],["path",{d:"M12 7v5l4 2",key:"1fdv2h"}]]),sn=s("network",[["rect",{x:"16",y:"16",width:"6",height:"6",rx:"1",key:"4q2zg0"}],["rect",{x:"2",y:"16",width:"6",height:"6",rx:"1",key:"8cvhb9"}],["rect",{x:"9",y:"2",width:"6",height:"6",rx:"1",key:"1egb70"}],["path",{d:"M5 16v-3a1 1 0 0 1 1-1h12a1 1 0 0 1 1 1v3",key:"1jsf9p"}],["path",{d:"M12 12V8",key:"2874zd"}]]),sr=s("arrow-left",[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]]),si=s("arrow-right",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]]);function sl({filePath:e,fileRefs:r,folders:i,onNavigate:l,onGoBack:a,onGoForward:o,canGoBack:s,canGoForward:u}){let[c,d]=(0,n.useState)(null),[p,h]=(0,n.useState)("content"),[m,g]=(0,n.useState)([]),[x,y]=(0,n.useState)(()=>{{let e=localStorage.getItem("markshelf:tocWidth");return e&&Number(e)||176}}),v=(0,n.useRef)(null),b=(0,n.useRef)(null),[k,w]=(0,n.useState)(null),[S,C]=(0,n.useState)(null),E=(0,n.useRef)(null),j=(0,n.useRef)(null),A=oG();(0,n.useEffect)(()=>{d(null),g([]),E.current&&clearTimeout(E.current),j.current&&clearTimeout(j.current),w(null),C(null)},[e]),(0,n.useEffect)(()=>{fetch(o_(`/api/file?path=${encodeURIComponent(e)}`)).then(e=>e.json()).then(e=>d(e.content??null)).catch(()=>d(null))},[e,A]);let T=(0,n.useRef)(null);(0,n.useEffect)(()=>{T.current=null},[e]),(0,n.useEffect)(()=>{if("content"!==p||null===c||0===m.length)return;let t=window.location.hash.replace(/^#/,"");if(!t)return;let n=t;try{n=decodeURIComponent(t)}catch{}let r=`${e}#${n}`;if(T.current===r||!m.some(e=>e.id===n))return;let i=requestAnimationFrame(()=>{let e=v.current,t=document.getElementById(n);if(!e||!t)return;let i=e.getBoundingClientRect(),l=t.getBoundingClientRect();e.scrollTop+=l.top-i.top-16,T.current=r});return()=>cancelAnimationFrame(i)},[p,c,m,e]);let N=(0,n.useCallback)((e,t)=>{j.current&&clearTimeout(j.current),E.current&&clearTimeout(E.current),E.current=setTimeout(()=>{w(e),C({x:t.left,y:t.bottom+4})},200)},[]),L=(0,n.useCallback)(()=>{E.current&&clearTimeout(E.current),j.current&&clearTimeout(j.current),j.current=setTimeout(()=>{w(null),C(null)},300)},[]),D=(0,n.useCallback)(()=>{j.current&&clearTimeout(j.current)},[]),M=(0,n.useCallback)(()=>{L()},[L]),z=(0,n.useCallback)(e=>{e.preventDefault(),document.body.style.userSelect="none",document.body.style.cursor="col-resize";let t=b.current?.parentElement,n=e=>{if(!t)return;let n=Math.max(120,Math.min(400,t.getBoundingClientRect().right-e.clientX));y(n),localStorage.setItem("markshelf:tocWidth",String(n))},r=()=>{document.body.style.userSelect="",document.body.style.cursor="",document.removeEventListener("mousemove",n),document.removeEventListener("mouseup",r)};document.addEventListener("mousemove",n),document.addEventListener("mouseup",r)},[]),I=e.split("/").pop()?.replace(/\.md$/i,"")||e;return(0,t.jsxs)("div",{className:"flex flex-col h-full",children:[(0,t.jsxs)("div",{className:"border-b border-[var(--border-default)] px-4 py-2.5 shrink-0",children:[(0,t.jsxs)("div",{className:"flex items-center gap-2 mb-2",children:[s&&(0,t.jsx)("button",{onClick:a,className:"shrink-0 p-0.5 rounded hover:bg-[var(--bg-muted)] text-[var(--text-muted)] hover:text-[var(--text-secondary)] transition-colors",title:"戻る",children:(0,t.jsx)(sr,{size:14})}),u&&(0,t.jsx)("button",{onClick:o,className:"shrink-0 p-0.5 rounded hover:bg-[var(--bg-muted)] text-[var(--text-muted)] hover:text-[var(--text-secondary)] transition-colors",title:"進む",children:(0,t.jsx)(si,{size:14})}),(0,t.jsx)("h2",{className:"font-semibold text-[14px] leading-snug truncate text-[var(--text-primary)]",children:I})]}),(0,t.jsxs)("div",{className:"flex gap-1",children:[(0,t.jsxs)("button",{onClick:()=>h("content"),className:`flex items-center gap-1.5 px-2.5 py-1 rounded-md text-[12px] font-medium transition-colors ${"content"===p?"bg-[var(--brand-primary)] text-white":"text-[var(--text-muted)] hover:bg-[var(--bg-muted)] hover:text-[var(--text-secondary)]"}`,children:[(0,t.jsx)(f,{size:12}),"内容"]}),(0,t.jsxs)("button",{onClick:()=>h("history"),className:`flex items-center gap-1.5 px-2.5 py-1 rounded-md text-[12px] font-medium transition-colors ${"history"===p?"bg-[var(--brand-primary)] text-white":"text-[var(--text-muted)] hover:bg-[var(--bg-muted)] hover:text-[var(--text-secondary)]"}`,children:[(0,t.jsx)(st,{size:12}),"変更履歴"]}),(0,t.jsxs)("button",{onClick:()=>h("links"),className:`flex items-center gap-1.5 px-2.5 py-1 rounded-md text-[12px] font-medium transition-colors ${"links"===p?"bg-[var(--brand-primary)] text-white":"text-[var(--text-muted)] hover:bg-[var(--bg-muted)] hover:text-[var(--text-secondary)]"}`,children:[(0,t.jsx)(sn,{size:12}),"リンク"]})]})]}),"content"===p?null!==c?(0,t.jsxs)("div",{className:"flex-1 flex overflow-hidden",children:[(0,t.jsx)("div",{className:"flex-1 overflow-y-auto",ref:v,children:(0,t.jsx)("div",{className:"p-4",children:(0,t.jsx)(oq,{enableHeadingLinks:!0,onHeadingsExtracted:g,fileRefs:r,currentPath:e,onNavigate:e=>{h("content"),l?.(e)},onPreviewShow:N,onPreviewHide:L,children:c})})}),m.length>0&&(0,t.jsxs)("div",{className:"flex shrink-0",ref:b,children:[(0,t.jsx)("div",{className:"w-1 hover:bg-[var(--brand-primary)] bg-[var(--border-default)] cursor-col-resize shrink-0 transition-colors duration-150",onMouseDown:z}),(0,t.jsx)("div",{className:"overflow-y-auto border-l border-[var(--border-default)]",style:{width:x},children:(0,t.jsx)(o0,{headings:m,scrollContainer:v.current})})]})]}):(0,t.jsx)("div",{className:"flex-1 p-4 text-[var(--text-muted)] text-sm",children:"読み込み中..."}):"history"===p?(0,t.jsx)("div",{className:"flex-1 overflow-y-auto",ref:v,children:(0,t.jsx)(oY,{filePath:e})}):(0,t.jsx)("div",{className:"flex-1 overflow-hidden",children:(0,t.jsx)(se,{currentPath:e,folders:i??[],onNavigate:e=>l?.(e),onPreviewShow:N,onPreviewHide:L})}),(0,t.jsx)(o2,{path:k,position:S,onNavigate:e=>{w(null),C(null),h("content"),l?.(e)},onMouseEnter:D,onMouseLeave:M,fileRefs:r})]})}let sa=s("search",[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]]),so=s("x",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]);function ss({onSelect:e}){let[r,i]=(0,n.useState)(""),[l,a]=(0,n.useState)([]),[o,s]=(0,n.useState)(!1),[u,c]=(0,n.useState)(!1),d=(0,n.useRef)(null),f=(0,n.useRef)(null),p=(0,n.useRef)(null),h=(0,n.useCallback)(e=>{if(!e.trim()){a([]),c(!1);return}s(!0),fetch(o_(`/api/search?q=${encodeURIComponent(e.trim())}`)).then(e=>e.json()).then(e=>{a(e.results??[]),c(!0)}).catch(()=>a([])).finally(()=>s(!1))},[]);return(0,n.useEffect)(()=>{let e=e=>{"Escape"===e.key&&(c(!1),f.current?.blur())},t=e=>{p.current&&!p.current.contains(e.target)&&c(!1)};return window.addEventListener("keydown",e),document.addEventListener("mousedown",t),()=>{window.removeEventListener("keydown",e),document.removeEventListener("mousedown",t)}},[]),(0,t.jsxs)("div",{ref:p,className:"relative px-4 pt-4 pb-2",children:[(0,t.jsxs)("div",{className:"relative",children:[(0,t.jsx)(sa,{size:14,className:"absolute left-2.5 top-1/2 -translate-y-1/2 text-[var(--text-muted)]"}),(0,t.jsx)("input",{ref:f,type:"text",value:r,onChange:e=>{var t;i(t=e.target.value),d.current&&clearTimeout(d.current),d.current=setTimeout(()=>h(t),300)},onFocus:()=>{l.length>0&&c(!0)},placeholder:"ドキュメントを検索...",className:"w-full pl-8 pr-8 py-1.5 text-[12px] leading-normal rounded-md border border-[var(--border-default)] bg-[var(--bg-surface)] text-[var(--text-primary)] placeholder:text-[var(--text-muted)] focus:outline-none focus:ring-1 focus:ring-[var(--brand-primary)] focus:border-[var(--brand-primary)] transition-shadow"}),r&&(0,t.jsx)("button",{onClick:()=>{i(""),a([]),c(!1),f.current?.focus()},className:"absolute right-2 top-1/2 -translate-y-1/2 text-[var(--text-muted)] hover:text-[var(--text-secondary)]",children:(0,t.jsx)(so,{size:14})})]}),u&&(0,t.jsx)("div",{className:"absolute left-4 right-4 top-full mt-1 z-40 bg-[var(--bg-surface)] border border-[var(--border-default)] rounded-lg shadow-lg max-h-80 overflow-y-auto",children:o?(0,t.jsx)("div",{className:"p-3 text-xs text-[var(--text-muted)] text-center",children:"検索中..."}):0===l.length?(0,t.jsx)("div",{className:"p-3 text-xs text-[var(--text-muted)] text-center",children:"該当するドキュメントが見つかりません"}):l.map(n=>(0,t.jsxs)("button",{onClick:()=>{e(n.path),c(!1)},className:"w-full text-left px-3 py-2 hover:bg-[var(--bg-muted)] border-b border-[var(--border-default)] last:border-b-0 transition-colors",children:[(0,t.jsx)("div",{className:"text-[12px] font-medium text-[var(--text-primary)] truncate leading-snug",children:n.displayName}),(0,t.jsx)("div",{className:"text-[10px] text-[var(--text-muted)] font-[var(--font-mono)] truncate mb-1 leading-normal",children:n.path}),n.matches.slice(0,2).map(e=>(0,t.jsxs)("div",{className:"text-[10px] text-[var(--text-secondary)] truncate leading-relaxed",children:[(0,t.jsxs)("span",{className:"text-[var(--text-muted)] mr-1",children:["L",e.line]}),(0,t.jsx)(su,{text:e.text,query:r})]},e.line))]},n.path))})]})}function su({text:e,query:n}){if(!n.trim())return(0,t.jsx)(t.Fragment,{children:e});let r=e.toLowerCase().indexOf(n.toLowerCase());if(-1===r)return(0,t.jsx)(t.Fragment,{children:e});let i=e.slice(0,r),l=e.slice(r,r+n.length),a=e.slice(r+n.length);return(0,t.jsxs)(t.Fragment,{children:[i,(0,t.jsx)("span",{className:"bg-yellow-200 text-yellow-900 rounded px-0.5",children:l}),a]})}let sc=s("clock",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 6v6l4 2",key:"mmk7yg"}]]);function sd({onNavigate:e,onClose:r}){let[i,l]=(0,n.useState)([]),[a,o]=(0,n.useState)(!0),[s,d]=(0,n.useState)(null),[p,h]=(0,n.useState)(null),m=oG();(0,n.useEffect)(()=>{o(!0),fetch(o_("/api/timeline")).then(e=>e.json()).then(e=>{l(e.entries??[]),o(!1)}).catch(()=>o(!1))},[m]),(0,n.useEffect)(()=>{let e=e=>{"Escape"===e.key&&r()};return window.addEventListener("keydown",e),()=>window.removeEventListener("keydown",e)},[r]);let g=new Map;for(let e of i){let t=new Date(e.date).toLocaleDateString("ja-JP",{year:"numeric",month:"2-digit",day:"2-digit"}),n=g.get(t)??[];n.push(e),g.set(t,n)}return(0,t.jsx)("div",{className:"fixed inset-0 z-[100] flex items-center justify-center bg-black/40 backdrop-blur-sm",onClick:r,children:(0,t.jsxs)("div",{className:"bg-[var(--bg-surface)] rounded-lg shadow-2xl w-[90vw] max-w-4xl h-[85vh] flex flex-col overflow-hidden border border-[var(--border-default)]",onClick:e=>e.stopPropagation(),children:[(0,t.jsxs)("div",{className:"flex items-center gap-2 px-5 py-3 border-b border-[var(--border-default)] shrink-0",children:[(0,t.jsx)(sc,{size:14,className:"text-[var(--brand-primary)]"}),(0,t.jsx)("h2",{className:"font-semibold text-[14px] text-[var(--text-primary)]",children:"変更タイムライン"}),(0,t.jsx)("span",{className:"text-[11px] text-[var(--text-muted)]",children:"リポジトリ全体の変更履歴"}),(0,t.jsx)("button",{onClick:r,className:"ml-auto p-1 rounded hover:bg-[var(--bg-muted)] text-[var(--text-muted)] hover:text-[var(--text-secondary)] transition-colors",title:"閉じる (Esc)",children:(0,t.jsx)(so,{size:16})})]}),(0,t.jsx)("div",{className:"flex-1 overflow-y-auto",children:a?(0,t.jsx)("div",{className:"h-full flex items-center justify-center text-[13px] text-[var(--text-muted)]",children:"タイムラインを読み込み中..."}):0===i.length?(0,t.jsx)("div",{className:"h-full flex items-center justify-center text-[13px] text-[var(--text-muted)]",children:"変更履歴がありません"}):Array.from(g.entries()).map(([n,r])=>(0,t.jsxs)("div",{children:[(0,t.jsx)("div",{className:"sticky top-0 z-10 bg-[var(--bg-base)] border-b border-[var(--border-default)] px-4 py-1.5",children:(0,t.jsx)("span",{className:"text-[11px] font-medium text-[var(--text-muted)] tracking-wide",children:n})}),r.map(n=>{let r=s===n.hash;return(0,t.jsxs)("div",{className:"border-b border-[var(--border-default)]",children:[(0,t.jsx)("button",{onClick:()=>d(r?null:n.hash),className:"w-full text-left px-4 py-2.5 hover:bg-[var(--bg-hover)] transition-colors",children:(0,t.jsxs)("div",{className:"flex items-start gap-2.5",children:[(0,t.jsx)(oV,{size:13,className:"text-[var(--text-muted)] mt-0.5 shrink-0"}),(0,t.jsxs)("div",{className:"min-w-0 flex-1",children:[(0,t.jsxs)("div",{className:"flex items-center gap-2",children:[(0,t.jsx)("span",{className:"text-[11px] font-[var(--font-mono)] text-[var(--brand-primary)] leading-none",children:n.hashShort}),(0,t.jsx)("span",{className:"text-[11px] text-[var(--text-muted)] leading-none",children:new Date(n.date).toLocaleTimeString("ja-JP",{hour:"2-digit",minute:"2-digit"})}),n.author&&(0,t.jsx)("span",{className:"text-[11px] text-[var(--text-muted)] leading-none",children:n.author})]}),(0,t.jsx)("p",{className:"text-[12px] text-[var(--text-secondary)] mt-1 leading-snug line-clamp-2",children:n.message}),(0,t.jsx)("div",{className:"flex items-center gap-1 mt-1.5",children:(0,t.jsxs)("span",{className:"text-[10px] text-[var(--text-muted)]",children:[n.files.length,"件のドキュメント変更"]})})]}),(0,t.jsx)("span",{className:"text-[var(--text-muted)] shrink-0 mt-0.5",children:r?(0,t.jsx)(u,{size:13}):(0,t.jsx)(c,{size:13})})]})}),r&&(0,t.jsx)("div",{className:"px-4 pb-3",children:(0,t.jsx)("div",{className:"space-y-1",children:n.files.map(r=>{let i=(r.split("/").pop()||r).replace(/^\d+[_\-.\s]/,"").replace(/\.md$/i,""),l=p?.hash===n.hash&&p?.file===r;return(0,t.jsxs)("div",{children:[(0,t.jsxs)("div",{className:"flex items-center gap-1.5 py-1 px-2 rounded hover:bg-[var(--bg-muted)] group",children:[(0,t.jsx)("button",{onClick:()=>h(l?null:{hash:n.hash,file:r}),className:"shrink-0 text-[var(--text-muted)] hover:text-[var(--text-primary)]",children:l?(0,t.jsx)(u,{size:12}):(0,t.jsx)(c,{size:12})}),(0,t.jsx)(f,{size:12,className:"shrink-0",style:{color:"var(--file-border)"}}),(0,t.jsx)("button",{onClick:()=>e(r),className:"text-[11px] text-[var(--text-secondary)] hover:text-[var(--brand-primary)] truncate text-left",title:r,children:i}),(0,t.jsx)("span",{className:"text-[10px] text-[var(--text-muted)] truncate ml-auto opacity-0 group-hover:opacity-100 transition-opacity",children:r})]}),l&&(0,t.jsx)("div",{className:"ml-6 mt-1 mb-2",children:(0,t.jsx)(oW,{filePath:r,hash:n.hash})})]},r)})})})]},n.hash)})]},n))})]})})}let sf="file";e.s(["default",0,function(){let[e,r]=(0,n.useState)([]),[i,l]=(0,n.useState)(""),[a,o]=(0,n.useState)(null),[s,u]=(0,n.useState)(260),[c,d]=(0,n.useState)(!1),[f,p]=(0,n.useState)([]),[m,g]=(0,n.useState)([]);(0,n.useEffect)(()=>{let e,t=(e=new URL(window.location.href).searchParams.get(sf))?decodeURIComponent(e):null;t&&o(t)},[]),(0,n.useEffect)(()=>{let e=new URL(window.location.href);a?e.searchParams.set(sf,a):e.searchParams.delete(sf);let t=e.pathname+(e.search?e.search:"")+e.hash;t!==window.location.pathname+window.location.search+window.location.hash&&window.history.replaceState(null,"",t)},[a]);let x=(0,n.useCallback)(e=>{a&&e!==a&&(p(e=>[...e,a]),g([])),e!==a&&window.location.hash&&window.history.replaceState(null,"",window.location.pathname+window.location.search),o(e)},[a]),y=(0,n.useCallback)(()=>{if(0===f.length)return;let e=f[f.length-1];a&&g(e=>[...e,a]),p(e=>e.slice(0,-1)),o(e)},[f,a]),v=(0,n.useCallback)(()=>{if(0===m.length)return;let e=m[m.length-1];a&&p(e=>[...e,a]),g(e=>e.slice(0,-1)),o(e)},[m,a]),b=f.length>0,k=m.length>0,w=oG();(0,n.useEffect)(()=>{fetch(o_("/api/tree")).then(e=>e.json()).then(e=>{r(e.tree??[]),l(e.root??"")})},[w]),(0,n.useEffect)(()=>{let e=localStorage.getItem("markshelf:treeWidth");e&&u(Number(e)||260)},[]);let S=(0,n.useMemo)(()=>(function e(t){let n=[];for(let r of t)"file"===r.type&&n.push({path:r.path,displayName:r.displayName}),"folder"===r.type&&(r.hasReadme&&n.push({path:r.path+"/README.md",displayName:r.displayName}),r.children&&n.push(...e(r.children)));return n})(e),[e]),C=(0,n.useMemo)(()=>{let t=[];return!function e(n,r){for(let i of n)"folder"===i.type&&(t.push({path:i.path,displayName:i.displayName,depth:r}),i.children&&e(i.children,r+1))}(e,0),t},[e]),E=(0,n.useCallback)(e=>{e.preventDefault(),document.body.style.userSelect="none",document.body.style.cursor="col-resize";let t=e=>{let t=Math.max(180,Math.min(.4*window.innerWidth,e.clientX));u(t),localStorage.setItem("markshelf:treeWidth",String(t))},n=()=>{document.body.style.userSelect="",document.body.style.cursor="",document.removeEventListener("mousemove",t),document.removeEventListener("mouseup",n)};document.addEventListener("mousemove",t),document.addEventListener("mouseup",n)},[]);return(0,t.jsxs)("div",{className:"h-screen flex flex-col",children:[(0,t.jsxs)("header",{className:"h-11 border-b border-[var(--border-default)] bg-[var(--bg-surface)] flex items-center px-5 shrink-0 gap-3",children:[(0,t.jsxs)("span",{className:"font-semibold text-[15px] tracking-tight leading-none",children:["Mark",(0,t.jsx)("span",{className:"text-[var(--brand-primary)]",children:"Shelf"})]}),i&&(0,t.jsx)("span",{className:"text-[11px] text-[var(--text-muted)] font-[var(--font-mono)] truncate leading-none",children:i}),(0,t.jsx)("div",{className:"ml-auto",children:(0,t.jsxs)("button",{onClick:()=>d(!c),className:`flex items-center gap-1.5 px-2.5 py-1 rounded-md text-[12px] font-medium transition-colors ${c?"bg-[var(--brand-primary)] text-white":"text-[var(--text-muted)] hover:bg-[var(--bg-muted)] hover:text-[var(--text-secondary)]"}`,children:[(0,t.jsx)(sc,{size:12}),"タイムライン"]})})]}),(0,t.jsxs)("div",{className:"flex flex-1 overflow-hidden",children:[(0,t.jsxs)("div",{className:"overflow-hidden flex flex-col shrink-0",style:{width:s},children:[(0,t.jsx)(ss,{onSelect:x}),(0,t.jsx)("div",{className:"flex-1 overflow-hidden",children:(0,t.jsx)(h,{entries:e,selectedPath:a,onSelect:x})})]}),(0,t.jsx)("div",{className:"w-1.5 hover:bg-[var(--brand-primary)] bg-[var(--border-default)] cursor-col-resize shrink-0 transition-colors duration-150",onMouseDown:E}),(0,t.jsx)("div",{className:"flex-1 border-l border-[var(--border-default)] bg-[var(--bg-surface)] overflow-hidden flex flex-col",children:a?(0,t.jsx)(sl,{filePath:a,fileRefs:S,folders:C,onNavigate:x,onGoBack:y,onGoForward:v,canGoBack:b,canGoForward:k}):(0,t.jsx)("div",{className:"p-6 text-[var(--text-muted)] text-sm flex items-center justify-center h-full",children:"ファイルをクリックして内容を表示"})})]}),c&&(0,t.jsx)(sd,{onNavigate:e=>{x(e),d(!1)},onClose:()=>d(!1)})]})}],52683)}])})();